@primer/react 37.32.0-rc.97555af75 → 37.32.0-rc.ac9dc8093

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.
@@ -2161,19 +2161,19 @@
2161
2161
  },
2162
2162
  {
2163
2163
  "id": "components-checkbox-features--with-leading-visual",
2164
- "code": "() => {\n return (\n <Box as=\"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 </Box>\n )\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 <Box as=\"form\">\n <FormControl disabled>\n <Checkbox value=\"default\" />\n <FormControl.Label>Default label</FormControl.Label>\n </FormControl>\n </Box>\n )\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 <Box as=\"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 </Box>\n )\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 <Box as=\"form\">\n <FormControl>\n <Checkbox value=\"default\" indeterminate />\n <FormControl.Label>Default label</FormControl.Label>\n </FormControl>\n </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Select\n sx={{\n borderRadius: '12px',\n border: '1px dashed #000000',\n }}\n >\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 </Box>\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 <Box as=\"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 </Box>\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 <Box\n sx={{\n alignItems: 'center',\n display: 'flex',\n gap: '0.25rem',\n }}\n >\n <Spinner size=\"small\" srText={null} />\n <AriaStatus>Loading...</AriaStatus>\n </Box>\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\n as=\"h2\"\n sx={{\n fontSize: 4,\n fontWeight: 'normal',\n color: 'danger.fg',\n mb: 2,\n }}\n >\n Danger zone\n </Heading>\n <Box\n sx={{\n border: '1px solid',\n borderColor: 'danger.emphasis',\n borderRadius: 2,\n p: 3,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n }}\n >\n <Box\n sx={{\n display: 'grid',\n gap: 1,\n }}\n >\n <Text\n sx={{\n fontSize: 1,\n fontWeight: 'bold',\n color: 'danger.fg',\n }}\n >\n Delete account\n </Text>\n <Text\n sx={{\n fontSize: 1,\n color: 'fg.muted',\n }}\n >\n Are you sure you don&apos;t want to just downgrade your account to a\n free account? We won&apos;t charge your credit card anymore.\n </Text>\n </Box>\n <Button variant=\"danger\">Delete account</Button>\n </Box>\n </SplitPageLayout.Content>\n </SplitPageLayout>\n)"
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&apos;t want to just downgrade your account to a\n free account? We won&apos;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 <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n }}\n >\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 </Box>\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\n as=\"p\"\n sx={{\n color: 'fg.onEmphasis',\n bg: 'neutral.emphasis',\n p: 2,\n }}\n size=\"small\"\n >\n Stylized text\n </Text>\n)"
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",
@@ -7851,39 +7851,39 @@
7851
7851
  "stories": [
7852
7852
  {
7853
7853
  "id": "components-textarea--default",
7854
- "code": "() => (\n <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea />\n </FormControl>\n </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea disabled />\n </FormControl>\n </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <FormControl.Caption>This is a caption</FormControl.Caption>\n <Textarea />\n </FormControl>\n </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"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 </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea />\n <FormControl.Validation variant=\"success\">Success</FormControl.Validation>\n </FormControl>\n </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea block />\n </FormControl>\n </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea rows={3} />\n </FormControl>\n </Box>\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 <Box as=\"form\">\n <FormControl>\n <FormControl.Label>Default label</FormControl.Label>\n <Textarea cols={60} />\n </FormControl>\n </Box>\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",
@@ -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(39);
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
- const t1 = validationStatus === "error" ? "true" : "false";
129
- const t2 = disabled && Select_module.Disabled;
130
- let t3;
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] = t2;
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
- t3 = $[15];
144
+ t4 = $[16];
138
145
  }
139
- const t4 = Boolean(placeholder);
140
- const t5 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
141
- let t6;
142
- if ($[16] !== placeholder || $[17] !== required) {
143
- t6 = placeholder && /*#__PURE__*/jsxRuntime.jsx("option", {
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
- $[16] = placeholder;
150
- $[17] = required;
151
- $[18] = t6;
156
+ $[17] = placeholder;
157
+ $[18] = required;
158
+ $[19] = t7;
152
159
  } else {
153
- t6 = $[18];
160
+ t7 = $[19];
154
161
  }
155
- let t7;
156
- if ($[19] !== children || $[20] !== disabled || $[21] !== ref || $[22] !== required || $[23] !== rest || $[24] !== t1 || $[25] !== t3 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6) {
157
- t7 = /*#__PURE__*/jsxRuntime.jsxs("select", {
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": t1,
163
- className: t3,
164
- "data-hasplaceholder": t4,
165
- defaultValue: t5,
166
- children: [t6, children]
169
+ "aria-invalid": t2,
170
+ className: t4,
171
+ "data-hasplaceholder": t5,
172
+ defaultValue: t6,
173
+ children: [t7, children]
167
174
  });
168
- $[19] = children;
169
- $[20] = disabled;
170
- $[21] = ref;
171
- $[22] = required;
172
- $[23] = rest;
173
- $[24] = t1;
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
- t7 = $[29];
187
+ t8 = $[30];
181
188
  }
182
- let t8;
183
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
184
- t8 = /*#__PURE__*/jsxRuntime.jsx(ArrowIndicator, {
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
- $[30] = t8;
194
+ $[31] = t9;
188
195
  } else {
189
- t8 = $[30];
196
+ t9 = $[31];
190
197
  }
191
- let t9;
192
- if ($[31] !== block || $[32] !== contrast || $[33] !== disabled || $[34] !== size || $[35] !== sx || $[36] !== t7 || $[37] !== validationStatus) {
193
- t9 = /*#__PURE__*/jsxRuntime.jsxs(TextInputWrapper.TextInputWrapper, {
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: Select_module.TextInputWrapper,
206
+ className: t1,
200
207
  sx: sx,
201
- children: [t7, t8]
208
+ children: [t8, t9]
202
209
  });
203
- $[31] = block;
204
- $[32] = contrast;
205
- $[33] = disabled;
206
- $[34] = size;
207
- $[35] = sx;
208
- $[36] = t7;
209
- $[37] = validationStatus;
210
- $[38] = t9;
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
- t9 = $[38];
220
+ t10 = $[40];
213
221
  }
214
- return t9;
222
+ return t10;
215
223
  });
216
224
  const Option = props => {
217
225
  const $ = reactCompilerRuntime.c(2);
@@ -64,7 +64,7 @@ const ArrowIndicator = t0 => {
64
64
  };
65
65
  const Select = /*#__PURE__*/React.forwardRef((t0, ref) => {
66
66
  var _ref, _defaultValue;
67
- const $ = c(39);
67
+ const $ = c(41);
68
68
  let block;
69
69
  let children;
70
70
  let className;
@@ -119,93 +119,101 @@ const Select = /*#__PURE__*/React.forwardRef((t0, ref) => {
119
119
  sx = $[11];
120
120
  validationStatus = $[12];
121
121
  }
122
- const t1 = validationStatus === "error" ? "true" : "false";
123
- const t2 = disabled && classes.Disabled;
124
- let t3;
125
- if ($[13] !== className || $[14] !== t2) {
126
- t3 = clsx(className, classes.Select, t2);
122
+ let t1;
123
+ if ($[13] !== className) {
124
+ t1 = clsx(classes.TextInputWrapper, className);
127
125
  $[13] = className;
128
- $[14] = t2;
126
+ $[14] = t1;
127
+ } else {
128
+ t1 = $[14];
129
+ }
130
+ const t2 = validationStatus === "error" ? "true" : "false";
131
+ const t3 = disabled && classes.Disabled;
132
+ let t4;
133
+ if ($[15] !== t3) {
134
+ t4 = clsx(classes.Select, t3);
129
135
  $[15] = t3;
136
+ $[16] = t4;
130
137
  } else {
131
- t3 = $[15];
138
+ t4 = $[16];
132
139
  }
133
- const t4 = Boolean(placeholder);
134
- const t5 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
135
- let t6;
136
- if ($[16] !== placeholder || $[17] !== required) {
137
- t6 = placeholder && /*#__PURE__*/jsx("option", {
140
+ const t5 = Boolean(placeholder);
141
+ const t6 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : undefined;
142
+ let t7;
143
+ if ($[17] !== placeholder || $[18] !== required) {
144
+ t7 = placeholder && /*#__PURE__*/jsx("option", {
138
145
  value: "",
139
146
  disabled: required,
140
147
  hidden: required,
141
148
  children: placeholder
142
149
  });
143
- $[16] = placeholder;
144
- $[17] = required;
145
- $[18] = t6;
150
+ $[17] = placeholder;
151
+ $[18] = required;
152
+ $[19] = t7;
146
153
  } else {
147
- t6 = $[18];
154
+ t7 = $[19];
148
155
  }
149
- let t7;
150
- if ($[19] !== children || $[20] !== disabled || $[21] !== ref || $[22] !== required || $[23] !== rest || $[24] !== t1 || $[25] !== t3 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6) {
151
- t7 = /*#__PURE__*/jsxs("select", {
156
+ let t8;
157
+ if ($[20] !== children || $[21] !== disabled || $[22] !== ref || $[23] !== required || $[24] !== rest || $[25] !== t2 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6 || $[29] !== t7) {
158
+ t8 = /*#__PURE__*/jsxs("select", {
152
159
  ...rest,
153
160
  ref: ref,
154
161
  required: required,
155
162
  disabled: disabled,
156
- "aria-invalid": t1,
157
- className: t3,
158
- "data-hasplaceholder": t4,
159
- defaultValue: t5,
160
- children: [t6, children]
163
+ "aria-invalid": t2,
164
+ className: t4,
165
+ "data-hasplaceholder": t5,
166
+ defaultValue: t6,
167
+ children: [t7, children]
161
168
  });
162
- $[19] = children;
163
- $[20] = disabled;
164
- $[21] = ref;
165
- $[22] = required;
166
- $[23] = rest;
167
- $[24] = t1;
168
- $[25] = t3;
169
+ $[20] = children;
170
+ $[21] = disabled;
171
+ $[22] = ref;
172
+ $[23] = required;
173
+ $[24] = rest;
174
+ $[25] = t2;
169
175
  $[26] = t4;
170
176
  $[27] = t5;
171
177
  $[28] = t6;
172
178
  $[29] = t7;
179
+ $[30] = t8;
173
180
  } else {
174
- t7 = $[29];
181
+ t8 = $[30];
175
182
  }
176
- let t8;
177
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
178
- t8 = /*#__PURE__*/jsx(ArrowIndicator, {
183
+ let t9;
184
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
185
+ t9 = /*#__PURE__*/jsx(ArrowIndicator, {
179
186
  className: classes.ArrowIndicator
180
187
  });
181
- $[30] = t8;
188
+ $[31] = t9;
182
189
  } else {
183
- t8 = $[30];
190
+ t9 = $[31];
184
191
  }
185
- let t9;
186
- if ($[31] !== block || $[32] !== contrast || $[33] !== disabled || $[34] !== size || $[35] !== sx || $[36] !== t7 || $[37] !== validationStatus) {
187
- t9 = /*#__PURE__*/jsxs(TextInputWrapper, {
192
+ let t10;
193
+ if ($[32] !== block || $[33] !== contrast || $[34] !== disabled || $[35] !== size || $[36] !== sx || $[37] !== t1 || $[38] !== t8 || $[39] !== validationStatus) {
194
+ t10 = /*#__PURE__*/jsxs(TextInputWrapper, {
188
195
  block: block,
189
196
  contrast: contrast,
190
197
  disabled: disabled,
191
198
  size: size,
192
199
  validationStatus: validationStatus,
193
- className: classes.TextInputWrapper,
200
+ className: t1,
194
201
  sx: sx,
195
- children: [t7, t8]
202
+ children: [t8, t9]
196
203
  });
197
- $[31] = block;
198
- $[32] = contrast;
199
- $[33] = disabled;
200
- $[34] = size;
201
- $[35] = sx;
202
- $[36] = t7;
203
- $[37] = validationStatus;
204
- $[38] = t9;
204
+ $[32] = block;
205
+ $[33] = contrast;
206
+ $[34] = disabled;
207
+ $[35] = size;
208
+ $[36] = sx;
209
+ $[37] = t1;
210
+ $[38] = t8;
211
+ $[39] = validationStatus;
212
+ $[40] = t10;
205
213
  } else {
206
- t9 = $[38];
214
+ t10 = $[40];
207
215
  }
208
- return t9;
216
+ return t10;
209
217
  });
210
218
  const Option = props => {
211
219
  const $ = c(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/react",
3
- "version": "37.32.0-rc.97555af75",
3
+ "version": "37.32.0-rc.ac9dc8093",
4
4
  "description": "An implementation of GitHub's Primer Design System using React",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",