Skip to content

Commit d334873

Browse files
author
Matthias
committed
fix: final fixes for oxlint
1 parent a6c7e7b commit d334873

File tree

13 files changed

+373
-361
lines changed

13 files changed

+373
-361
lines changed

.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
"react/jsx-no-duplicate-props": "error",
255255
"react/jsx-no-target-blank": "off",
256256
"react/jsx-no-undef": "error",
257-
"react/jsx-no-useless-fragment": "error",
257+
"react/jsx-no-useless-fragment": "off",
258258
"react/no-children-prop": "error",
259259
"react/no-dangerously-set-inner-html": "error",
260260
"react/no-direct-mutation-state": "error",

packages/form/src/components/SelectInputField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ exports[`SelectInputField > should display right value on grouped options 1`] =
510510
class="emotion-2 emotion-3"
511511
>
512512
<div
513-
aria-controls="«rh»"
514-
aria-describedby="«rh»"
513+
aria-controls="«rl»"
514+
aria-describedby="«rl»"
515515
class="emotion-4 emotion-5"
516516
data-container-full-width="true"
517517
tabindex="-1"
@@ -520,8 +520,8 @@ exports[`SelectInputField > should display right value on grouped options 1`] =
520520
class="emotion-6 emotion-7"
521521
>
522522
<div
523+
aria-controls="«rl»"
523524
aria-expanded="true"
524-
aria-haspopup="listbox"
525525
aria-label=""
526526
class="emotion-8 emotion-9"
527527
data-disabled="false"
@@ -530,7 +530,7 @@ exports[`SelectInputField > should display right value on grouped options 1`] =
530530
data-size="large"
531531
data-state="neutral"
532532
data-testid="select-input-test"
533-
id="«rg»"
533+
id="«rk»"
534534
role="combobox"
535535
tabindex="0"
536536
>
@@ -560,7 +560,7 @@ exports[`SelectInputField > should display right value on grouped options 1`] =
560560
class="emotion-17 emotion-18 emotion-19"
561561
data-animated="false"
562562
data-has-arrow="false"
563-
id="«rh»"
563+
id="«rl»"
564564
role="dialog"
565565
style="opacity: 1;"
566566
>
@@ -1098,8 +1098,8 @@ exports[`SelectInputField > should render correctly 1`] = `
10981098
class="emotion-6 emotion-7"
10991099
>
11001100
<div
1101+
aria-controls="«r1»"
11011102
aria-expanded="false"
1102-
aria-haspopup="listbox"
11031103
aria-label=""
11041104
class="emotion-8 emotion-9"
11051105
data-disabled="false"
@@ -1352,8 +1352,8 @@ exports[`SelectInputField > should render correctly disabled 1`] = `
13521352
class="emotion-2 emotion-3"
13531353
>
13541354
<div
1355-
aria-controls="«r5»"
1356-
aria-describedby="«r5»"
1355+
aria-controls="«r6»"
1356+
aria-describedby="«r6»"
13571357
class="emotion-4 emotion-5"
13581358
data-container-full-width="true"
13591359
tabindex="-1"
@@ -1362,8 +1362,8 @@ exports[`SelectInputField > should render correctly disabled 1`] = `
13621362
class="emotion-6 emotion-7"
13631363
>
13641364
<div
1365+
aria-controls="«r6»"
13651366
aria-expanded="false"
1366-
aria-haspopup="listbox"
13671367
aria-label=""
13681368
class="emotion-8 emotion-9"
13691369
data-disabled="true"
@@ -1372,7 +1372,7 @@ exports[`SelectInputField > should render correctly disabled 1`] = `
13721372
data-size="large"
13731373
data-state="neutral"
13741374
data-testid="select-input-test"
1375-
id="«r4»"
1375+
id="«r5»"
13761376
role="combobox"
13771377
tabindex="0"
13781378
>
@@ -1616,8 +1616,8 @@ exports[`SelectInputField > should render correctly grouped 1`] = `
16161616
class="emotion-2 emotion-3"
16171617
>
16181618
<div
1619-
aria-controls="«rd»"
1620-
aria-describedby="«rd»"
1619+
aria-controls="«rg»"
1620+
aria-describedby="«rg»"
16211621
class="emotion-4 emotion-5"
16221622
data-container-full-width="true"
16231623
tabindex="-1"
@@ -1626,8 +1626,8 @@ exports[`SelectInputField > should render correctly grouped 1`] = `
16261626
class="emotion-6 emotion-7"
16271627
>
16281628
<div
1629+
aria-controls="«rg»"
16291630
aria-expanded="false"
1630-
aria-haspopup="listbox"
16311631
aria-label=""
16321632
class="emotion-8 emotion-9"
16331633
data-disabled="false"
@@ -1636,7 +1636,7 @@ exports[`SelectInputField > should render correctly grouped 1`] = `
16361636
data-size="large"
16371637
data-state="neutral"
16381638
data-testid="select-input-test"
1639-
id="«rc»"
1639+
id="«rf»"
16401640
role="combobox"
16411641
tabindex="0"
16421642
>
@@ -1880,8 +1880,8 @@ exports[`SelectInputField > should render correctly multiselect 1`] = `
18801880
class="emotion-2 emotion-3"
18811881
>
18821882
<div
1883-
aria-controls="«r9»"
1884-
aria-describedby="«r9»"
1883+
aria-controls="«rb»"
1884+
aria-describedby="«rb»"
18851885
class="emotion-4 emotion-5"
18861886
data-container-full-width="true"
18871887
tabindex="-1"
@@ -1890,8 +1890,8 @@ exports[`SelectInputField > should render correctly multiselect 1`] = `
18901890
class="emotion-6 emotion-7"
18911891
>
18921892
<div
1893+
aria-controls="«rb»"
18931894
aria-expanded="false"
1894-
aria-haspopup="listbox"
18951895
aria-label=""
18961896
class="emotion-8 emotion-9"
18971897
data-disabled="false"
@@ -1900,7 +1900,7 @@ exports[`SelectInputField > should render correctly multiselect 1`] = `
19001900
data-size="large"
19011901
data-state="neutral"
19021902
data-testid="select-input-test"
1903-
id="«r8»"
1903+
id="«ra»"
19041904
role="combobox"
19051905
tabindex="0"
19061906
>
@@ -2143,8 +2143,8 @@ exports[`SelectInputField > should trigger events 1`] = `
21432143
class="emotion-2 emotion-3"
21442144
>
21452145
<div
2146-
aria-controls="«r24»"
2147-
aria-describedby="«r24»"
2146+
aria-controls="«r29»"
2147+
aria-describedby="«r29»"
21482148
class="emotion-4 emotion-5"
21492149
data-container-full-width="true"
21502150
tabindex="-1"
@@ -2153,8 +2153,8 @@ exports[`SelectInputField > should trigger events 1`] = `
21532153
class="emotion-6 emotion-7"
21542154
>
21552155
<div
2156+
aria-controls="«r29»"
21562157
aria-expanded="false"
2157-
aria-haspopup="listbox"
21582158
aria-label=""
21592159
class="emotion-8 emotion-9"
21602160
data-disabled="false"
@@ -2163,7 +2163,7 @@ exports[`SelectInputField > should trigger events 1`] = `
21632163
data-size="large"
21642164
data-state="neutral"
21652165
data-testid="select-input-test"
2166-
id="«r23»"
2166+
id="«r28»"
21672167
role="combobox"
21682168
tabindex="0"
21692169
>

packages/form/src/components/SelectableCardOptionGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
884884
class="emotion-47 emotion-3"
885885
>
886886
<div
887+
aria-controls="«r7»"
887888
aria-expanded="false"
888-
aria-haspopup="listbox"
889889
class="emotion-49 emotion-50"
890890
data-disabled="false"
891891
data-dropdownvisible="false"
@@ -949,7 +949,7 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
949949
aria-disabled="false"
950950
aria-invalid="false"
951951
class="emotion-21 emotion-22"
952-
id="«ra»"
952+
id="«rb»"
953953
tabindex="-1"
954954
type="radio"
955955
value="debian"
@@ -1004,7 +1004,7 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
10041004
>
10051005
<label
10061006
class="emotion-8 emotion-85 emotion-10"
1007-
for="«ra»"
1007+
for="«rb»"
10081008
>
10091009
Debian
10101010
</label>
@@ -1015,8 +1015,8 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
10151015
class="emotion-42 emotion-43 emotion-44"
10161016
>
10171017
<div
1018-
aria-controls="«rg»"
1019-
aria-describedby="«rg»"
1018+
aria-controls="«rh»"
1019+
aria-describedby="«rh»"
10201020
class="emotion-45 emotion-46"
10211021
data-container-full-width="true"
10221022
tabindex="-1"
@@ -1026,16 +1026,16 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
10261026
class="emotion-47 emotion-3"
10271027
>
10281028
<div
1029+
aria-controls="«rh»"
10291030
aria-expanded="false"
1030-
aria-haspopup="listbox"
10311031
class="emotion-49 emotion-50"
10321032
data-disabled="false"
10331033
data-dropdownvisible="false"
10341034
data-readonly="false"
10351035
data-size="medium"
10361036
data-state="neutral"
10371037
data-testid="select-input-selectable-card-option"
1038-
id="«rf»"
1038+
id="«rg»"
10391039
role="combobox"
10401040
tabindex="0"
10411041
>
@@ -1091,7 +1091,7 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
10911091
aria-disabled="false"
10921092
aria-invalid="false"
10931093
class="emotion-21 emotion-22"
1094-
id="«rj»"
1094+
id="«rl»"
10951095
tabindex="-1"
10961096
type="radio"
10971097
value="centos"
@@ -1146,7 +1146,7 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
11461146
>
11471147
<label
11481148
class="emotion-8 emotion-85 emotion-10"
1149-
for="«rj»"
1149+
for="«rl»"
11501150
>
11511151
CentOS
11521152
</label>
@@ -1157,8 +1157,8 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
11571157
class="emotion-42 emotion-43 emotion-44"
11581158
>
11591159
<div
1160-
aria-controls="«rp»"
1161-
aria-describedby="«rp»"
1160+
aria-controls="«rr»"
1161+
aria-describedby="«rr»"
11621162
class="emotion-45 emotion-46"
11631163
data-container-full-width="true"
11641164
tabindex="-1"
@@ -1168,16 +1168,16 @@ exports[`SelectableCardOptionGroupField > should render correctly 1`] = `
11681168
class="emotion-47 emotion-3"
11691169
>
11701170
<div
1171+
aria-controls="«rr»"
11711172
aria-expanded="false"
1172-
aria-haspopup="listbox"
11731173
class="emotion-49 emotion-50"
11741174
data-disabled="false"
11751175
data-dropdownvisible="false"
11761176
data-readonly="false"
11771177
data-size="medium"
11781178
data-state="neutral"
11791179
data-testid="select-input-selectable-card-option"
1180-
id="«ro»"
1180+
id="«rq»"
11811181
role="combobox"
11821182
tabindex="0"
11831183
>

packages/form/src/components/UnitInputField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ exports[`UnitInputField > should handles onChange and selection 1`] = `
547547
>
548548
<label
549549
class="emotion-6 emotion-7 emotion-8"
550-
for="«r6»"
550+
for="«r7»"
551551
>
552552
Test
553553
</label>
@@ -569,7 +569,7 @@ exports[`UnitInputField > should handles onChange and selection 1`] = `
569569
class="emotion-16 emotion-17"
570570
data-size="large"
571571
data-testid="unit-input"
572-
id="«r6»"
572+
id="«r7»"
573573
max="9007199254740991"
574574
min="0"
575575
name="test-value"
@@ -585,8 +585,8 @@ exports[`UnitInputField > should handles onChange and selection 1`] = `
585585
class="emotion-18 emotion-19 emotion-20"
586586
>
587587
<div
588-
aria-controls="«ra»"
589-
aria-describedby="«ra»"
588+
aria-controls="«rb»"
589+
aria-describedby="«rb»"
590590
class="emotion-21 emotion-22"
591591
data-container-full-width="true"
592592
tabindex="-1"
@@ -595,8 +595,8 @@ exports[`UnitInputField > should handles onChange and selection 1`] = `
595595
class="emotion-2 emotion-3"
596596
>
597597
<div
598+
aria-controls="«rb»"
598599
aria-expanded="false"
599-
aria-haspopup="listbox"
600600
class="emotion-25 emotion-26"
601601
data-disabled="false"
602602
data-dropdownvisible="false"
@@ -1136,8 +1136,8 @@ exports[`UnitInputField > should render correctly 1`] = `
11361136
class="emotion-2 emotion-3"
11371137
>
11381138
<div
1139+
aria-controls="«r3»"
11391140
aria-expanded="false"
1140-
aria-haspopup="listbox"
11411141
class="emotion-21 emotion-22"
11421142
data-disabled="false"
11431143
data-dropdownvisible="false"

packages/form/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export {
1111
useWatch,
1212
} from 'react-hook-form'
1313
export * from './components'
14+
1415
export { Form } from './components'
1516
export { useOnFieldChange } from './hooks'
1617
export { ErrorProvider, useErrors } from './providers/ErrorContext'

0 commit comments

Comments
 (0)