@primer/react 37.32.0-rc.528af41bb → 37.32.0-rc.6c9ce56d4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/browser.esm.js +1 -1
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -1
- package/dist/browser.umd.js.map +1 -1
- package/generated/components.json +53 -53
- package/lib/Select/Select.js +61 -53
- package/lib-esm/Select/Select.js +61 -53
- package/package.json +1 -1
|
@@ -989,7 +989,7 @@
|
|
|
989
989
|
"stories": [
|
|
990
990
|
{
|
|
991
991
|
"id": "components-autocomplete--default",
|
|
992
|
-
"code": "() => {\n return (\n <
|
|
992
|
+
"code": "() => {\n return (\n <form\n className={classes.DefaultForm}\n onSubmit={(event) => event.preventDefault()}\n >\n <FormControl>\n <FormControl.Label id=\"autocompleteLabel-default\">\n Label\n </FormControl.Label>\n <Autocomplete>\n <Autocomplete.Input />\n <Autocomplete.Overlay>\n <Autocomplete.Menu\n selectedItemIds={[]}\n aria-labelledby=\"autocompleteLabel-default\"\n items={items}\n />\n </Autocomplete.Overlay>\n </Autocomplete>\n </FormControl>\n </form>\n )\n}"
|
|
993
993
|
},
|
|
994
994
|
{
|
|
995
995
|
"id": "components-autocomplete-features--with-token-input",
|
|
@@ -2161,19 +2161,19 @@
|
|
|
2161
2161
|
},
|
|
2162
2162
|
{
|
|
2163
2163
|
"id": "components-checkbox-features--with-leading-visual",
|
|
2164
|
-
"code": "() => {\n return (\n <
|
|
2164
|
+
"code": "() => {\n return (\n <form>\n <FormControl>\n <FormControl.LeadingVisual>\n <MarkGithubIcon />\n </FormControl.LeadingVisual>\n <Checkbox value=\"default\" />\n <FormControl.Label>Default label</FormControl.Label>\n </FormControl>\n </form>\n )\n}"
|
|
2165
2165
|
},
|
|
2166
2166
|
{
|
|
2167
2167
|
"id": "components-checkbox-features--disabled",
|
|
2168
|
-
"code": "() => {\n return (\n <
|
|
2168
|
+
"code": "() => {\n return (\n <form>\n <FormControl disabled>\n <Checkbox value=\"default\" />\n <FormControl.Label>Default label</FormControl.Label>\n </FormControl>\n </form>\n )\n}"
|
|
2169
2169
|
},
|
|
2170
2170
|
{
|
|
2171
2171
|
"id": "components-checkbox-features--with-caption",
|
|
2172
|
-
"code": "() => {\n return (\n <
|
|
2172
|
+
"code": "() => {\n return (\n <form>\n <FormControl>\n <Checkbox value=\"default\" />\n <FormControl.Label>Default label</FormControl.Label>\n <FormControl.Caption>This is a caption</FormControl.Caption>\n </FormControl>\n </form>\n )\n}"
|
|
2173
2173
|
},
|
|
2174
2174
|
{
|
|
2175
2175
|
"id": "components-checkbox-features--indeterminate",
|
|
2176
|
-
"code": "() => (\n <
|
|
2176
|
+
"code": "() => (\n <form>\n <FormControl>\n <Checkbox value=\"default\" indeterminate />\n <FormControl.Label>Default label</FormControl.Label>\n </FormControl>\n </form>\n)"
|
|
2177
2177
|
}
|
|
2178
2178
|
],
|
|
2179
2179
|
"importPath": "@primer/react",
|
|
@@ -6334,51 +6334,51 @@
|
|
|
6334
6334
|
"stories": [
|
|
6335
6335
|
{
|
|
6336
6336
|
"id": "components-select--default",
|
|
6337
|
-
"code": "() => (\n <
|
|
6337
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6338
6338
|
},
|
|
6339
6339
|
{
|
|
6340
6340
|
"id": "components-select-features--with-option-groups",
|
|
6341
|
-
"code": "() => (\n <
|
|
6341
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select>\n <Select.OptGroup label=\"Group one\">\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n </Select.OptGroup>\n <Select.OptGroup disabled label=\"Group two\">\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select.OptGroup>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6342
6342
|
},
|
|
6343
6343
|
{
|
|
6344
6344
|
"id": "components-select-features--disabled",
|
|
6345
|
-
"code": "() => (\n <
|
|
6345
|
+
"code": "() => (\n <form>\n <FormControl disabled>\n <FormControl.Label>Default label</FormControl.Label>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6346
6346
|
},
|
|
6347
6347
|
{
|
|
6348
6348
|
"id": "components-select-features--with-caption",
|
|
6349
|
-
"code": "() => (\n <
|
|
6349
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <FormControl.Caption>This is a caption</FormControl.Caption>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6350
6350
|
},
|
|
6351
6351
|
{
|
|
6352
6352
|
"id": "components-select-features--visually-hidden-label",
|
|
6353
|
-
"code": "() => (\n <
|
|
6353
|
+
"code": "() => (\n <form>\n <Heading as=\"h2\" variant=\"small\">\n Primer form title\n </Heading>\n <FormControl>\n <FormControl.Label visuallyHidden>Primer form label</FormControl.Label>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n <FormControl.Caption>\n Label is visually hidden; the title describes the purpose visually\n </FormControl.Caption>\n </FormControl>\n </form>\n)"
|
|
6354
6354
|
},
|
|
6355
6355
|
{
|
|
6356
6356
|
"id": "components-select-features--error",
|
|
6357
|
-
"code": "() => (\n <
|
|
6357
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n <FormControl.Validation variant=\"error\">\n Something went wrong\n </FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
6358
6358
|
},
|
|
6359
6359
|
{
|
|
6360
6360
|
"id": "components-select-features--success",
|
|
6361
|
-
"code": "() => (\n <
|
|
6361
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n <FormControl.Validation variant=\"success\">Success</FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
6362
6362
|
},
|
|
6363
6363
|
{
|
|
6364
6364
|
"id": "components-select-features--block",
|
|
6365
|
-
"code": "() => (\n <
|
|
6365
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select block>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6366
6366
|
},
|
|
6367
6367
|
{
|
|
6368
6368
|
"id": "components-select-features--small",
|
|
6369
|
-
"code": "() => (\n <
|
|
6369
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select size=\"small\">\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6370
6370
|
},
|
|
6371
6371
|
{
|
|
6372
6372
|
"id": "components-select-features--large",
|
|
6373
|
-
"code": "() => (\n <
|
|
6373
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select size=\"large\">\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6374
6374
|
},
|
|
6375
6375
|
{
|
|
6376
6376
|
"id": "components-select-features--with-custom-styling",
|
|
6377
|
-
"code": "() => (\n <
|
|
6377
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select className={classes.CustomSelect}>\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6378
6378
|
},
|
|
6379
6379
|
{
|
|
6380
6380
|
"id": "components-select-features--with-placeholder-option",
|
|
6381
|
-
"code": "() => (\n <
|
|
6381
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select placeholder=\"No choice selected\">\n <Select.Option value=\"one\">Choice one</Select.Option>\n <Select.Option value=\"two\">Choice two</Select.Option>\n <Select.Option value=\"three\">Choice three</Select.Option>\n <Select.Option value=\"four\">Choice four</Select.Option>\n <Select.Option value=\"five\">Choice five</Select.Option>\n <Select.Option value=\"six\">Choice six</Select.Option>\n </Select>\n </FormControl>\n </form>\n)"
|
|
6382
6382
|
}
|
|
6383
6383
|
],
|
|
6384
6384
|
"importPath": "@primer/react",
|
|
@@ -6836,7 +6836,7 @@
|
|
|
6836
6836
|
},
|
|
6837
6837
|
{
|
|
6838
6838
|
"id": "components-spinner-features--suppress-screen-reader-text",
|
|
6839
|
-
"code": "() => (\n <
|
|
6839
|
+
"code": "() => (\n <Stack direction=\"horizontal\" className={classes.SuppressScreenReaderText}>\n <Spinner size=\"small\" srText={null} />\n <AriaStatus>Loading...</AriaStatus>\n </Stack>\n)"
|
|
6840
6840
|
}
|
|
6841
6841
|
],
|
|
6842
6842
|
"importPath": "@primer/react",
|
|
@@ -6889,7 +6889,7 @@
|
|
|
6889
6889
|
},
|
|
6890
6890
|
{
|
|
6891
6891
|
"id": "components-splitpagelayout-features--settings-page",
|
|
6892
|
-
"code": "() => (\n <SplitPageLayout>\n <SplitPageLayout.Pane position=\"start\" aria-label=\"Navigation Pane\">\n <NavList aria-label=\"Main navigation\">\n <NavList.Item href=\"#\">Profile</NavList.Item>\n <NavList.Item href=\"#\" aria-current=\"page\">\n Account\n </NavList.Item>\n <NavList.Item href=\"#\">Emails</NavList.Item>\n <NavList.Item href=\"#\">Notifications</NavList.Item>\n </NavList>\n </SplitPageLayout.Pane>\n <SplitPageLayout.Content>\n <Heading
|
|
6892
|
+
"code": "() => (\n <SplitPageLayout>\n <SplitPageLayout.Pane position=\"start\" aria-label=\"Navigation Pane\">\n <NavList aria-label=\"Main navigation\">\n <NavList.Item href=\"#\">Profile</NavList.Item>\n <NavList.Item href=\"#\" aria-current=\"page\">\n Account\n </NavList.Item>\n <NavList.Item href=\"#\">Emails</NavList.Item>\n <NavList.Item href=\"#\">Notifications</NavList.Item>\n </NavList>\n </SplitPageLayout.Pane>\n <SplitPageLayout.Content>\n <Heading as=\"h2\" className={classes.SectionHeading}>\n Danger zone\n </Heading>\n <div className={classes.DeleteAccountContainer}>\n <div className={classes.DeleteAccountTextContainer}>\n <Text className={classes.DeleteAccountTitle}>Delete account</Text>\n <Text className={classes.DeleteAccountDescription}>\n Are you sure you don't want to just downgrade your account to a\n free account? We won't charge your credit card anymore.\n </Text>\n </div>\n <Button variant=\"danger\">Delete account</Button>\n </div>\n </SplitPageLayout.Content>\n </SplitPageLayout>\n)"
|
|
6893
6893
|
}
|
|
6894
6894
|
],
|
|
6895
6895
|
"importPath": "@primer/react",
|
|
@@ -7419,11 +7419,11 @@
|
|
|
7419
7419
|
},
|
|
7420
7420
|
{
|
|
7421
7421
|
"id": "components-text-features--polymorphism",
|
|
7422
|
-
"code": "() => (\n <
|
|
7422
|
+
"code": "() => (\n <div className={classes.PolymorphismContainer}>\n <Text as=\"em\">Emphasized text</Text>\n <Text as=\"i\">Italicized text</Text>\n <Text as=\"strong\">Strong text</Text>\n <Text as=\"small\">Small text</Text>\n <Text as=\"u\">Text with underline</Text>\n </div>\n)"
|
|
7423
7423
|
},
|
|
7424
7424
|
{
|
|
7425
7425
|
"id": "components-text-features--styled-text",
|
|
7426
|
-
"code": "() => (\n <Text
|
|
7426
|
+
"code": "() => (\n <Text as=\"p\" className={classes.StyledText} size=\"small\">\n Stylized text\n </Text>\n)"
|
|
7427
7427
|
},
|
|
7428
7428
|
{
|
|
7429
7429
|
"id": "components-text-features--size-small",
|
|
@@ -7490,67 +7490,67 @@
|
|
|
7490
7490
|
"stories": [
|
|
7491
7491
|
{
|
|
7492
7492
|
"id": "components-textinput--default",
|
|
7493
|
-
"code": "() => (\n <
|
|
7493
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput />\n </FormControl>\n </form>\n)"
|
|
7494
7494
|
},
|
|
7495
7495
|
{
|
|
7496
7496
|
"id": "components-textinput-features--disabled",
|
|
7497
|
-
"code": "() => (\n <
|
|
7497
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput disabled />\n </FormControl>\n </form>\n)"
|
|
7498
7498
|
},
|
|
7499
7499
|
{
|
|
7500
7500
|
"id": "components-textinput-features--with-caption",
|
|
7501
|
-
"code": "() => (\n <
|
|
7501
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <FormControl.Caption>This is a caption</FormControl.Caption>\n <TextInput />\n </FormControl>\n </form>\n)"
|
|
7502
7502
|
},
|
|
7503
7503
|
{
|
|
7504
7504
|
"id": "components-textinput-features--visually-hidden-label",
|
|
7505
|
-
"code": "() => (\n <
|
|
7505
|
+
"code": "() => (\n <form>\n <Heading as=\"h2\" variant=\"small\">\n Primer form title\n </Heading>\n <FormControl>\n <FormControl.Label visuallyHidden>Primer form label</FormControl.Label>\n <TextInput />\n <FormControl.Caption>\n Label is visually hidden; the title describes the purpose visually\n </FormControl.Caption>\n </FormControl>\n </form>\n)"
|
|
7506
7506
|
},
|
|
7507
7507
|
{
|
|
7508
7508
|
"id": "components-textinput-features--error",
|
|
7509
|
-
"code": "() => (\n <
|
|
7509
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput />\n <FormControl.Validation variant=\"error\">\n Something went wrong\n </FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
7510
7510
|
},
|
|
7511
7511
|
{
|
|
7512
7512
|
"id": "components-textinput-features--success",
|
|
7513
|
-
"code": "() => (\n <
|
|
7513
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput />\n <FormControl.Validation variant=\"success\">\n Something went wrong\n </FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
7514
7514
|
},
|
|
7515
7515
|
{
|
|
7516
7516
|
"id": "components-textinput-features--block",
|
|
7517
|
-
"code": "() => (\n <
|
|
7517
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput block />\n </FormControl>\n </form>\n)"
|
|
7518
7518
|
},
|
|
7519
7519
|
{
|
|
7520
7520
|
"id": "components-textinput-features--small",
|
|
7521
|
-
"code": "() => (\n <
|
|
7521
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput size=\"small\" />\n </FormControl>\n </form>\n)"
|
|
7522
7522
|
},
|
|
7523
7523
|
{
|
|
7524
7524
|
"id": "components-textinput-features--large",
|
|
7525
|
-
"code": "() => (\n <
|
|
7525
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput size=\"large\" />\n </FormControl>\n </form>\n)"
|
|
7526
7526
|
},
|
|
7527
7527
|
{
|
|
7528
7528
|
"id": "components-textinput-features--required",
|
|
7529
|
-
"code": "() => (\n <
|
|
7529
|
+
"code": "() => (\n <form>\n <FormControl required>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput size=\"large\" />\n </FormControl>\n </form>\n)"
|
|
7530
7530
|
},
|
|
7531
7531
|
{
|
|
7532
7532
|
"id": "components-textinput-features--with-leading-visual",
|
|
7533
|
-
"code": "() => {\n const Checkmark = () => <CheckIcon aria-label=\"Checkmark\" />\n return (\n <
|
|
7533
|
+
"code": "() => {\n const Checkmark = () => <CheckIcon aria-label=\"Checkmark\" />\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput leadingVisual={Checkmark} />\n </FormControl>\n <FormControl>\n <FormControl.Label>Enter monies</FormControl.Label>\n <TextInput leadingVisual=\"$\" />\n </FormControl>\n </form>\n )\n}"
|
|
7534
7534
|
},
|
|
7535
7535
|
{
|
|
7536
7536
|
"id": "components-textinput-features--with-trailing-icon",
|
|
7537
|
-
"code": "() => {\n const Checkmark = () => <CheckIcon aria-label=\"Checkmark\" />\n return (\n <
|
|
7537
|
+
"code": "() => {\n const Checkmark = () => <CheckIcon aria-label=\"Checkmark\" />\n return (\n <div>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput trailingVisual={Checkmark} />\n </FormControl>\n <FormControl>\n <FormControl.Label>Enter monies</FormControl.Label>\n <TextInput trailingVisual=\"minutes\" placeholder=\"200\" />\n </FormControl>\n </div>\n )\n}"
|
|
7538
7538
|
},
|
|
7539
7539
|
{
|
|
7540
7540
|
"id": "components-textinput-features--with-trailing-action",
|
|
7541
|
-
"code": "() => {\n const [value, setValue] = useState('sample text')\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value)\n }\n return (\n <
|
|
7541
|
+
"code": "() => {\n const [value, setValue] = useState('sample text')\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value)\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n value={value}\n onChange={handleChange}\n trailingAction={\n <Stack\n justify=\"center\"\n style={{\n minWidth: '34px',\n }}\n >\n {value.length ? (\n <TextInput.Action\n onClick={() => setValue('')}\n icon={XCircleFillIcon}\n aria-label=\"Clear input\"\n />\n ) : undefined}\n </Stack>\n }\n />\n </FormControl>\n </form>\n )\n}"
|
|
7542
7542
|
},
|
|
7543
7543
|
{
|
|
7544
7544
|
"id": "components-textinput-features--with-tooltip-direction",
|
|
7545
|
-
"code": "() => {\n const [value, setValue] = useState('sample text')\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value)\n }\n return (\n <
|
|
7545
|
+
"code": "() => {\n const [value, setValue] = useState('sample text')\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value)\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n value={value}\n onChange={handleChange}\n trailingAction={\n <Stack\n justify=\"center\"\n style={{\n minWidth: '34px',\n }}\n >\n {value.length ? (\n <TextInput.Action\n onClick={() => setValue('')}\n icon={XCircleFillIcon}\n aria-label=\"Clear input\"\n tooltipDirection=\"nw\"\n />\n ) : undefined}\n </Stack>\n }\n />\n </FormControl>\n </form>\n )\n}"
|
|
7546
7546
|
},
|
|
7547
7547
|
{
|
|
7548
7548
|
"id": "components-textinput-features--with-loading-indicator",
|
|
7549
|
-
"code": "(args: FormControlArgs<TextInputProps>) => {\n return (\n <
|
|
7549
|
+
"code": "(args: FormControlArgs<TextInputProps>) => {\n return (\n <div>\n <h3>No visual</h3>\n\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput value=\"auto\" {...args} />\n </FormControl>\n </div>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput value=\"leading\" {...args} loaderPosition=\"leading\" />\n </FormControl>\n </div>\n <div className={classes.MarginBottomLarge}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput value=\"trailing\" {...args} loaderPosition=\"trailing\" />\n </FormControl>\n </div>\n\n <h3>Leading visual</h3>\n\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput leadingVisual={Calendar} {...args} value=\"auto\" />\n </FormControl>\n </div>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n leadingVisual={Calendar}\n {...args}\n loaderPosition=\"leading\"\n value=\"leading\"\n />\n </FormControl>\n </div>\n <div className={classes.MarginBottomLarge}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n leadingVisual={Calendar}\n {...args}\n loaderPosition=\"trailing\"\n value=\"trailing\"\n />\n </FormControl>\n </div>\n\n <h3>Trailing visual</h3>\n <FormControl>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput trailingVisual={Calendar} {...args} value=\"auto\" />\n </FormControl>\n </div>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n trailingVisual={Calendar}\n {...args}\n loaderPosition=\"leading\"\n value=\"leading\"\n />\n </FormControl>\n </div>\n <div className={classes.MarginBottomLarge}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n trailingVisual={Calendar}\n {...args}\n loaderPosition=\"trailing\"\n value=\"trailing\"\n />\n </FormControl>\n </div>\n </FormControl>\n\n <h3>Both visuals</h3>\n\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n size=\"small\"\n leadingVisual={Calendar}\n trailingVisual={Calendar}\n {...args}\n value=\"auto\"\n />\n </FormControl>\n </div>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n leadingVisual={Calendar}\n trailingVisual={Calendar}\n {...args}\n loaderPosition=\"leading\"\n value=\"leading\"\n />\n </FormControl>\n </div>\n <div className={classes.MarginBottom}>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInput\n size=\"large\"\n leadingVisual={Calendar}\n trailingVisual={Calendar}\n {...args}\n loaderPosition=\"trailing\"\n value=\"trailing\"\n />\n </FormControl>\n </div>\n </div>\n )\n}"
|
|
7550
7550
|
},
|
|
7551
7551
|
{
|
|
7552
7552
|
"id": "components-textinput-features--with-autocomplete-attribute",
|
|
7553
|
-
"code": "() => (\n <
|
|
7553
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>First name</FormControl.Label>\n <TextInput autoComplete=\"given-name\" />\n </FormControl>\n <FormControl>\n <FormControl.Label>Last name</FormControl.Label>\n <TextInput autoComplete=\"family-name\" />\n </FormControl>\n </form>\n)"
|
|
7554
7554
|
}
|
|
7555
7555
|
],
|
|
7556
7556
|
"importPath": "@primer/react",
|
|
@@ -7750,31 +7750,31 @@
|
|
|
7750
7750
|
},
|
|
7751
7751
|
{
|
|
7752
7752
|
"id": "components-textinputwithtokens-features--with-loading-indicator",
|
|
7753
|
-
"code": "(args: FormControlArgs<TextInputWithTokensProps>) => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7753
|
+
"code": "(args: FormControlArgs<TextInputWithTokensProps>) => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form className={classes.Grid}>\n <FormControl>\n <FormControl.Label>No visual</FormControl.Label>\n <TextInputWithTokens\n {...args}\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n />\n </FormControl>\n\n <FormControl>\n <FormControl.Label>Leading visual</FormControl.Label>\n <TextInputWithTokens\n {...args}\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n leadingVisual={NumberIcon}\n />\n </FormControl>\n\n <FormControl>\n <FormControl.Label>Both visuals</FormControl.Label>\n <TextInputWithTokens\n {...args}\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n leadingVisual={NumberIcon}\n trailingVisual={CheckIcon}\n />\n </FormControl>\n </form>\n )\n}"
|
|
7754
7754
|
},
|
|
7755
7755
|
{
|
|
7756
7756
|
"id": "components-textinputwithtokens-features--using-issue-label-tokens",
|
|
7757
|
-
"code": "() => {\n const [tokens, setTokens] = useState([\n {\n text: 'enhancement',\n id: 1,\n fillColor: '#a2eeef',\n },\n {\n text: 'bug',\n id: 2,\n fillColor: '#d73a4a',\n },\n {\n text: 'good first issue',\n id: 3,\n fillColor: '#0cf478',\n },\n ])\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7757
|
+
"code": "() => {\n const [tokens, setTokens] = useState([\n {\n text: 'enhancement',\n id: 1,\n fillColor: '#a2eeef',\n },\n {\n text: 'bug',\n id: 2,\n fillColor: '#d73a4a',\n },\n {\n text: 'good first issue',\n id: 3,\n fillColor: '#0cf478',\n },\n ])\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInputWithTokens\n tokenComponent={IssueLabelToken}\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n />\n </FormControl>\n </form>\n )\n}"
|
|
7758
7758
|
},
|
|
7759
7759
|
{
|
|
7760
7760
|
"id": "components-textinputwithtokens-features--unstyled",
|
|
7761
|
-
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 2))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7761
|
+
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 2))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label visuallyHidden>Default label</FormControl.Label>\n <TextInputWithTokens\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n className={classes.Unstyled}\n />\n </FormControl>\n </form>\n )\n}"
|
|
7762
7762
|
},
|
|
7763
7763
|
{
|
|
7764
7764
|
"id": "components-textinputwithtokens-features--prevent-tokens-from-wrapping",
|
|
7765
|
-
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7765
|
+
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInputWithTokens\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n preventTokenWrapping\n />\n </FormControl>\n </form>\n )\n}"
|
|
7766
7766
|
},
|
|
7767
7767
|
{
|
|
7768
7768
|
"id": "components-textinputwithtokens-features--max-height",
|
|
7769
|
-
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 7))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7769
|
+
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 7))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <div className={classes.MaxWidth}>\n {/* Setting max-width to force tokens to wrap and demo `maxHeight` behavior */}\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInputWithTokens\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n maxHeight={70}\n block // `block` only needed to fill parent width without overflowing\n />\n </FormControl>\n </div>\n )\n}"
|
|
7770
7770
|
},
|
|
7771
7771
|
{
|
|
7772
7772
|
"id": "components-textinputwithtokens-features--size",
|
|
7773
|
-
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7773
|
+
"code": "() => {\n const [tokens, setTokens] = useState([...mockTokens].slice(0, 3))\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInputWithTokens\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n size=\"small\"\n />\n </FormControl>\n </form>\n )\n}"
|
|
7774
7774
|
},
|
|
7775
7775
|
{
|
|
7776
7776
|
"id": "components-textinputwithtokens-features--truncated",
|
|
7777
|
-
"code": "() => {\n const [tokens, setTokens] = useState(mockTokens)\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <
|
|
7777
|
+
"code": "() => {\n const [tokens, setTokens] = useState(mockTokens)\n const onTokenRemove: (tokenId: string | number) => void = (tokenId) => {\n setTokens(tokens.filter((token) => token.id !== tokenId))\n }\n return (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <TextInputWithTokens\n tokens={tokens}\n onTokenRemove={onTokenRemove}\n visibleTokenCount={5}\n />\n </FormControl>\n </form>\n )\n}"
|
|
7778
7778
|
}
|
|
7779
7779
|
],
|
|
7780
7780
|
"importPath": "@primer/react",
|
|
@@ -7851,39 +7851,39 @@
|
|
|
7851
7851
|
"stories": [
|
|
7852
7852
|
{
|
|
7853
7853
|
"id": "components-textarea--default",
|
|
7854
|
-
"code": "() => (\n <
|
|
7854
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea />\n </FormControl>\n </form>\n)"
|
|
7855
7855
|
},
|
|
7856
7856
|
{
|
|
7857
7857
|
"id": "components-textarea-features--disabled",
|
|
7858
|
-
"code": "() => (\n <
|
|
7858
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea disabled />\n </FormControl>\n </form>\n)"
|
|
7859
7859
|
},
|
|
7860
7860
|
{
|
|
7861
7861
|
"id": "components-textarea-features--with-caption",
|
|
7862
|
-
"code": "() => (\n <
|
|
7862
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <FormControl.Caption>This is a caption</FormControl.Caption>\n <Textarea />\n </FormControl>\n </form>\n)"
|
|
7863
7863
|
},
|
|
7864
7864
|
{
|
|
7865
7865
|
"id": "components-textarea-features--visually-hidden-label",
|
|
7866
|
-
"code": "() => (\n <
|
|
7866
|
+
"code": "() => (\n <form>\n <Heading as=\"h2\" variant=\"small\">\n Primer form title\n </Heading>\n <FormControl>\n <FormControl.Label visuallyHidden>Primer form label</FormControl.Label>\n <Textarea />\n <FormControl.Caption>\n Label is visually hidden; the title describes the purpose visually\n </FormControl.Caption>\n </FormControl>\n </form>\n)"
|
|
7867
7867
|
},
|
|
7868
7868
|
{
|
|
7869
7869
|
"id": "components-textarea-features--error",
|
|
7870
|
-
"code": "() => (\n <
|
|
7870
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea />\n <FormControl.Validation variant=\"error\">\n Something went wrong\n </FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
7871
7871
|
},
|
|
7872
7872
|
{
|
|
7873
7873
|
"id": "components-textarea-features--success",
|
|
7874
|
-
"code": "() => (\n <
|
|
7874
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea />\n <FormControl.Validation variant=\"success\">Success</FormControl.Validation>\n </FormControl>\n </form>\n)"
|
|
7875
7875
|
},
|
|
7876
7876
|
{
|
|
7877
7877
|
"id": "components-textarea-features--block",
|
|
7878
|
-
"code": "() => (\n <
|
|
7878
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea block />\n </FormControl>\n </form>\n)"
|
|
7879
7879
|
},
|
|
7880
7880
|
{
|
|
7881
7881
|
"id": "components-textarea-features--custom-height",
|
|
7882
|
-
"code": "() => (\n <
|
|
7882
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea rows={3} />\n </FormControl>\n </form>\n)"
|
|
7883
7883
|
},
|
|
7884
7884
|
{
|
|
7885
7885
|
"id": "components-textarea-features--custom-width",
|
|
7886
|
-
"code": "() => (\n <
|
|
7886
|
+
"code": "() => (\n <form>\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea cols={60} />\n </FormControl>\n </form>\n)"
|
|
7887
7887
|
},
|
|
7888
7888
|
{
|
|
7889
7889
|
"id": "components-textarea-features--custom-resize-behavior",
|
package/lib/Select/Select.js
CHANGED
|
@@ -70,7 +70,7 @@ const ArrowIndicator = t0 => {
|
|
|
70
70
|
};
|
|
71
71
|
const Select = /*#__PURE__*/React__default.default.forwardRef((t0, ref) => {
|
|
72
72
|
var _ref, _defaultValue;
|
|
73
|
-
const $ = reactCompilerRuntime.c(
|
|
73
|
+
const $ = reactCompilerRuntime.c(41);
|
|
74
74
|
let block;
|
|
75
75
|
let children;
|
|
76
76
|
let className;
|
|
@@ -125,93 +125,101 @@ const Select = /*#__PURE__*/React__default.default.forwardRef((t0, ref) => {
|
|
|
125
125
|
sx = $[11];
|
|
126
126
|
validationStatus = $[12];
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if ($[13] !== className || $[14] !== t2) {
|
|
132
|
-
t3 = clsx.clsx(className, Select_module.Select, t2);
|
|
128
|
+
let t1;
|
|
129
|
+
if ($[13] !== className) {
|
|
130
|
+
t1 = clsx.clsx(Select_module.TextInputWrapper, className);
|
|
133
131
|
$[13] = className;
|
|
134
|
-
$[14] =
|
|
132
|
+
$[14] = t1;
|
|
133
|
+
} else {
|
|
134
|
+
t1 = $[14];
|
|
135
|
+
}
|
|
136
|
+
const t2 = validationStatus === "error" ? "true" : "false";
|
|
137
|
+
const t3 = disabled && Select_module.Disabled;
|
|
138
|
+
let t4;
|
|
139
|
+
if ($[15] !== t3) {
|
|
140
|
+
t4 = clsx.clsx(Select_module.Select, t3);
|
|
135
141
|
$[15] = t3;
|
|
142
|
+
$[16] = t4;
|
|
136
143
|
} else {
|
|
137
|
-
|
|
144
|
+
t4 = $[16];
|
|
138
145
|
}
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
if ($[
|
|
143
|
-
|
|
146
|
+
const t5 = Boolean(placeholder);
|
|
147
|
+
const t6 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
|
|
148
|
+
let t7;
|
|
149
|
+
if ($[17] !== placeholder || $[18] !== required) {
|
|
150
|
+
t7 = placeholder && /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
144
151
|
value: "",
|
|
145
152
|
disabled: required,
|
|
146
153
|
hidden: required,
|
|
147
154
|
children: placeholder
|
|
148
155
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
156
|
+
$[17] = placeholder;
|
|
157
|
+
$[18] = required;
|
|
158
|
+
$[19] = t7;
|
|
152
159
|
} else {
|
|
153
|
-
|
|
160
|
+
t7 = $[19];
|
|
154
161
|
}
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
162
|
+
let t8;
|
|
163
|
+
if ($[20] !== children || $[21] !== disabled || $[22] !== ref || $[23] !== required || $[24] !== rest || $[25] !== t2 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6 || $[29] !== t7) {
|
|
164
|
+
t8 = /*#__PURE__*/jsxRuntime.jsxs("select", {
|
|
158
165
|
...rest,
|
|
159
166
|
ref: ref,
|
|
160
167
|
required: required,
|
|
161
168
|
disabled: disabled,
|
|
162
|
-
"aria-invalid":
|
|
163
|
-
className:
|
|
164
|
-
"data-hasplaceholder":
|
|
165
|
-
defaultValue:
|
|
166
|
-
children: [
|
|
169
|
+
"aria-invalid": t2,
|
|
170
|
+
className: t4,
|
|
171
|
+
"data-hasplaceholder": t5,
|
|
172
|
+
defaultValue: t6,
|
|
173
|
+
children: [t7, children]
|
|
167
174
|
});
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[25] = t3;
|
|
175
|
+
$[20] = children;
|
|
176
|
+
$[21] = disabled;
|
|
177
|
+
$[22] = ref;
|
|
178
|
+
$[23] = required;
|
|
179
|
+
$[24] = rest;
|
|
180
|
+
$[25] = t2;
|
|
175
181
|
$[26] = t4;
|
|
176
182
|
$[27] = t5;
|
|
177
183
|
$[28] = t6;
|
|
178
184
|
$[29] = t7;
|
|
185
|
+
$[30] = t8;
|
|
179
186
|
} else {
|
|
180
|
-
|
|
187
|
+
t8 = $[30];
|
|
181
188
|
}
|
|
182
|
-
let
|
|
183
|
-
if ($[
|
|
184
|
-
|
|
189
|
+
let t9;
|
|
190
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
191
|
+
t9 = /*#__PURE__*/jsxRuntime.jsx(ArrowIndicator, {
|
|
185
192
|
className: Select_module.ArrowIndicator
|
|
186
193
|
});
|
|
187
|
-
$[
|
|
194
|
+
$[31] = t9;
|
|
188
195
|
} else {
|
|
189
|
-
|
|
196
|
+
t9 = $[31];
|
|
190
197
|
}
|
|
191
|
-
let
|
|
192
|
-
if ($[
|
|
193
|
-
|
|
198
|
+
let t10;
|
|
199
|
+
if ($[32] !== block || $[33] !== contrast || $[34] !== disabled || $[35] !== size || $[36] !== sx || $[37] !== t1 || $[38] !== t8 || $[39] !== validationStatus) {
|
|
200
|
+
t10 = /*#__PURE__*/jsxRuntime.jsxs(TextInputWrapper.TextInputWrapper, {
|
|
194
201
|
block: block,
|
|
195
202
|
contrast: contrast,
|
|
196
203
|
disabled: disabled,
|
|
197
204
|
size: size,
|
|
198
205
|
validationStatus: validationStatus,
|
|
199
|
-
className:
|
|
206
|
+
className: t1,
|
|
200
207
|
sx: sx,
|
|
201
|
-
children: [
|
|
208
|
+
children: [t8, t9]
|
|
202
209
|
});
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
210
|
+
$[32] = block;
|
|
211
|
+
$[33] = contrast;
|
|
212
|
+
$[34] = disabled;
|
|
213
|
+
$[35] = size;
|
|
214
|
+
$[36] = sx;
|
|
215
|
+
$[37] = t1;
|
|
216
|
+
$[38] = t8;
|
|
217
|
+
$[39] = validationStatus;
|
|
218
|
+
$[40] = t10;
|
|
211
219
|
} else {
|
|
212
|
-
|
|
220
|
+
t10 = $[40];
|
|
213
221
|
}
|
|
214
|
-
return
|
|
222
|
+
return t10;
|
|
215
223
|
});
|
|
216
224
|
const Option = props => {
|
|
217
225
|
const $ = reactCompilerRuntime.c(2);
|