@primer/react 38.0.0-rc.3 → 38.0.0-rc.4
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 +66 -0
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +6 -2
- package/dist/ActionList/Description.d.ts.map +1 -1
- package/dist/ActionList/Description.js +0 -1
- package/dist/ActionList/Visuals.js +2 -2
- package/dist/Autocomplete/AutocompleteMenu.js +2 -2
- package/dist/BaseStyles.d.ts +1 -2
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/BaseStyles.js +1 -3
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +34 -48
- package/dist/Button/ButtonBase.js +6 -6
- package/dist/Button/LinkButton.d.ts +3 -3
- package/dist/Button/LinkButton.d.ts.map +1 -1
- package/dist/Button/LinkButton.js +0 -3
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +41 -36
- package/dist/Checkbox/Checkbox.d.ts +1 -2
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +48 -79
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.d.ts +2 -3
- package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.js +1 -3
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +2 -0
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts +2 -3
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +10 -9
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.js +12 -29
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.d.ts.map +1 -1
- package/dist/Flash/Flash.js +38 -45
- package/dist/Header/Header.d.ts +3 -4
- package/dist/Header/Header.d.ts.map +1 -1
- package/dist/Header/Header.js +10 -13
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
- package/dist/InlineMessage/InlineMessage.js +49 -65
- package/dist/PageHeader/PageHeader.d.ts +5 -5
- package/dist/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/PageHeader/PageHeader.js +330 -507
- package/dist/Pagehead/Pagehead.d.ts +2 -3
- package/dist/Pagehead/Pagehead.d.ts.map +1 -1
- package/dist/Pagehead/Pagehead.js +2 -2
- package/dist/ProgressBar/{ProgressBar-181186d4.css → ProgressBar-d27aca1d.css} +2 -2
- package/dist/ProgressBar/ProgressBar-d27aca1d.css.map +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +4 -9
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +9 -14
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.d.ts.map +1 -1
- package/dist/Radio/Radio.js +1 -3
- package/dist/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/RelativeTime/RelativeTime.d.ts +1 -3
- package/dist/RelativeTime/RelativeTime.d.ts.map +1 -1
- package/dist/Spinner/Spinner.d.ts +4 -5
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +49 -81
- package/dist/Timeline/Timeline.d.ts +11 -18
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Timeline/Timeline.js +5 -6
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +4 -0
- package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/ToggleSwitch/ToggleSwitch.js +195 -182
- package/dist/TreeView/TreeView-bdf34914.css +2 -0
- package/dist/TreeView/TreeView-bdf34914.css.map +1 -0
- package/dist/TreeView/TreeView.d.ts +15 -0
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +241 -10
- package/dist/TreeView/TreeView.module.css.js +2 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.d.ts.map +1 -1
- package/dist/Truncate/Truncate.js +2 -6
- package/dist/UnderlineNav/UnderlineNav-78db938f.css +2 -0
- package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNav.d.ts +0 -3
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +8 -25
- package/dist/UnderlineNav/UnderlineNav.module.css.js +5 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNavItem.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNavItem.js +49 -69
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -0
- package/dist/UnderlineNav/styles.d.ts +1 -1
- package/dist/UnderlineNav/styles.js +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css +2 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css.map +1 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +3 -4
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts.map +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +48 -7
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -0
- package/dist/deprecated/index.d.ts +0 -2
- package/dist/deprecated/index.d.ts.map +1 -1
- package/dist/deprecated/index.js +0 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
- package/dist/experimental/index.d.ts +2 -3
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/experimental/index.js +1 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
- package/dist/utils/create-component.d.ts +1 -3
- package/dist/utils/create-component.d.ts.map +1 -1
- package/dist/utils/create-component.js +3 -8
- package/generated/components.json +35 -242
- package/package.json +1 -1
- package/dist/DropdownStyles.d.ts +0 -4
- package/dist/DropdownStyles.d.ts.map +0 -1
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css +0 -2
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css.map +0 -1
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css +0 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css.map +0 -1
- package/dist/PointerBox/PointerBox.d.ts +0 -28
- package/dist/PointerBox/PointerBox.d.ts.map +0 -1
- package/dist/PointerBox/PointerBox.js +0 -65
- package/dist/PointerBox/index.d.ts +0 -3
- package/dist/PointerBox/index.d.ts.map +0 -1
- package/dist/ProgressBar/ProgressBar-181186d4.css.map +0 -1
- package/dist/TreeView/TreeView-cd08cabc.css +0 -2
- package/dist/TreeView/TreeView-cd08cabc.css.map +0 -1
- package/dist/internal/components/Caret-e686f04c.css +0 -2
- package/dist/internal/components/Caret-e686f04c.css.map +0 -1
- package/dist/internal/components/Caret.js +0 -87
- package/dist/internal/components/Caret.module.css.js +0 -5
|
@@ -1359,7 +1359,7 @@
|
|
|
1359
1359
|
},
|
|
1360
1360
|
{
|
|
1361
1361
|
"id": "components-banner-examples--with-announcement",
|
|
1362
|
-
"code": "() => {\n type Choice = 'one' | 'two' | 'three'\n const messages: Map<Choice, string> = new Map([\n ['one', 'This is a message for choice one'],\n ['two', 'This is a message for choice two'],\n ['three', 'This is a message for choice three'],\n ])\n const [selected, setSelected] = React.useState<Choice>('one')\n return (\n <>\n <Banner\n title=\"Info\"\n description={<AriaStatus>{messages.get(selected)}</AriaStatus>}\n onDismiss={action('onDismiss')}\n primaryAction={<Banner.PrimaryAction>Button</Banner.PrimaryAction>}\n secondaryAction={\n <Banner.SecondaryAction>Button</Banner.SecondaryAction>\n }\n />\n <RadioGroup\n
|
|
1362
|
+
"code": "() => {\n type Choice = 'one' | 'two' | 'three'\n const messages: Map<Choice, string> = new Map([\n ['one', 'This is a message for choice one'],\n ['two', 'This is a message for choice two'],\n ['three', 'This is a message for choice three'],\n ])\n const [selected, setSelected] = React.useState<Choice>('one')\n return (\n <>\n <Banner\n title=\"Info\"\n description={<AriaStatus>{messages.get(selected)}</AriaStatus>}\n onDismiss={action('onDismiss')}\n primaryAction={<Banner.PrimaryAction>Button</Banner.PrimaryAction>}\n secondaryAction={\n <Banner.SecondaryAction>Button</Banner.SecondaryAction>\n }\n />\n <RadioGroup\n name=\"options\"\n onChange={(selected) => {\n setSelected(selected as Choice)\n }}\n className={classes.RadioGroupWithTopMargin}\n >\n <RadioGroup.Label>Choices</RadioGroup.Label>\n <FormControl>\n <Radio value=\"one\" defaultChecked />\n <FormControl.Label>Choice one</FormControl.Label>\n </FormControl>\n <FormControl>\n <Radio value=\"two\" />\n <FormControl.Label>Choice two</FormControl.Label>\n </FormControl>\n <FormControl>\n <Radio value=\"three\" />\n <FormControl.Label>Choice three</FormControl.Label>\n </FormControl>\n </RadioGroup>\n </>\n )\n}"
|
|
1363
1363
|
}
|
|
1364
1364
|
],
|
|
1365
1365
|
"props": [
|
|
@@ -2151,11 +2151,6 @@
|
|
|
2151
2151
|
],
|
|
2152
2152
|
"importPath": "@primer/react",
|
|
2153
2153
|
"props": [
|
|
2154
|
-
{
|
|
2155
|
-
"name": "sx",
|
|
2156
|
-
"type": "SystemStyleObject",
|
|
2157
|
-
"deprecated": true
|
|
2158
|
-
},
|
|
2159
2154
|
{
|
|
2160
2155
|
"name": "ref",
|
|
2161
2156
|
"type": "React.RefObject<HTMLDivElement>"
|
|
@@ -2243,11 +2238,6 @@
|
|
|
2243
2238
|
"name": "as",
|
|
2244
2239
|
"type": "React.ElementType",
|
|
2245
2240
|
"defaultValue": "\"input\""
|
|
2246
|
-
},
|
|
2247
|
-
{
|
|
2248
|
-
"name": "sx",
|
|
2249
|
-
"type": "SystemStyleObject",
|
|
2250
|
-
"deprecated": true
|
|
2251
2241
|
}
|
|
2252
2242
|
],
|
|
2253
2243
|
"subcomponents": []
|
|
@@ -2322,11 +2312,6 @@
|
|
|
2322
2312
|
"type": "boolean",
|
|
2323
2313
|
"defaultValue": "false",
|
|
2324
2314
|
"description": "If true, the user must make a selection before the owning form can be submitted"
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
"name": "sx",
|
|
2328
|
-
"type": "SystemStyleObject",
|
|
2329
|
-
"deprecated": true
|
|
2330
2315
|
}
|
|
2331
2316
|
],
|
|
2332
2317
|
"subcomponents": [
|
|
@@ -2338,11 +2323,6 @@
|
|
|
2338
2323
|
"type": "boolean",
|
|
2339
2324
|
"defaultValue": "false",
|
|
2340
2325
|
"description": "If true, the fieldset legend will be visually hidden"
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
"name": "sx",
|
|
2344
|
-
"type": "SystemStyleObject",
|
|
2345
|
-
"deprecated": true
|
|
2346
2326
|
}
|
|
2347
2327
|
]
|
|
2348
2328
|
},
|
|
@@ -2354,11 +2334,6 @@
|
|
|
2354
2334
|
"type": "React.ReactNode",
|
|
2355
2335
|
"defaultValue": "",
|
|
2356
2336
|
"description": "The caption content"
|
|
2357
|
-
},
|
|
2358
|
-
{
|
|
2359
|
-
"name": "sx",
|
|
2360
|
-
"type": "SystemStyleObject",
|
|
2361
|
-
"deprecated": true
|
|
2362
2337
|
}
|
|
2363
2338
|
]
|
|
2364
2339
|
},
|
|
@@ -2377,11 +2352,6 @@
|
|
|
2377
2352
|
"defaultValue": "",
|
|
2378
2353
|
"required": true,
|
|
2379
2354
|
"description": "Changes the visual style to match the validation status"
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
"name": "sx",
|
|
2383
|
-
"type": "SystemStyleObject",
|
|
2384
|
-
"deprecated": true
|
|
2385
2355
|
}
|
|
2386
2356
|
]
|
|
2387
2357
|
}
|
|
@@ -2564,11 +2534,6 @@
|
|
|
2564
2534
|
"type": "string",
|
|
2565
2535
|
"description": "Class name(s) for custom styling.",
|
|
2566
2536
|
"defaultValue": ""
|
|
2567
|
-
},
|
|
2568
|
-
{
|
|
2569
|
-
"name": "sx",
|
|
2570
|
-
"type": "BetterSystemStyleObject",
|
|
2571
|
-
"deprecated": true
|
|
2572
2537
|
}
|
|
2573
2538
|
],
|
|
2574
2539
|
"subcomponents": []
|
|
@@ -3342,27 +3307,27 @@
|
|
|
3342
3307
|
},
|
|
3343
3308
|
{
|
|
3344
3309
|
"id": "components-flash-features--success",
|
|
3345
|
-
"code": "() => (\n <Flash\n variant=\"success\"\n
|
|
3310
|
+
"code": "() => (\n <Flash\n variant=\"success\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <CheckCircleIcon aria-label=\"Success\" />\n </div>\n <div className={classes.Message}>Success</div>\n </Flash>\n)"
|
|
3346
3311
|
},
|
|
3347
3312
|
{
|
|
3348
3313
|
"id": "components-flash-features--danger",
|
|
3349
|
-
"code": "() => (\n <Flash\n variant=\"danger\"\n
|
|
3314
|
+
"code": "() => (\n <Flash\n variant=\"danger\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Danger\" />\n </div>\n <div className={classes.Message}>Danger</div>\n </Flash>\n)"
|
|
3350
3315
|
},
|
|
3351
3316
|
{
|
|
3352
3317
|
"id": "components-flash-features--warning",
|
|
3353
|
-
"code": "() => (\n <Flash\n variant=\"warning\"\n
|
|
3318
|
+
"code": "() => (\n <Flash\n variant=\"warning\"\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <AlertIcon aria-label=\"Warning\" />\n </div>\n <div className={classes.Message}>Warning</div>\n </Flash>\n)"
|
|
3354
3319
|
},
|
|
3355
3320
|
{
|
|
3356
3321
|
"id": "components-flash-features--full",
|
|
3357
|
-
"code": "() => (\n <Flash\n full\n
|
|
3322
|
+
"code": "() => (\n <Flash\n full\n style={{\n display: 'grid',\n gridTemplateColumns: 'min-content 1fr minmax(0, auto)',\n gridTemplateAreas: `'visual message actions'`,\n }}\n >\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>Full</div>\n </Flash>\n)"
|
|
3358
3323
|
},
|
|
3359
3324
|
{
|
|
3360
3325
|
"id": "components-flash-features--with-icon-and-action",
|
|
3361
|
-
"code": "() => (\n <Flash
|
|
3326
|
+
"code": "() => (\n <Flash className={classes.WithIconAndAction}>\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>\n This is a flash message with an icon and an action.\n <Link href=\"/\"> Learn more.</Link>\n </div>\n <div className={classes.ActionsResponsive}>\n <Button>Join waitlist</Button>\n </div>\n </Flash>\n)"
|
|
3362
3327
|
},
|
|
3363
3328
|
{
|
|
3364
3329
|
"id": "components-flash-features--with-icon-action-dismiss",
|
|
3365
|
-
"code": "() => (\n <Flash
|
|
3330
|
+
"code": "() => (\n <Flash className={classes.WithIconActionDismiss}>\n <div className={classes.Visual}>\n <InfoIcon aria-label=\"Info\" />\n </div>\n <div className={classes.Message}>\n This is a flash message with an icon and an action.\n <Link href=\"/\"> Learn more.</Link>\n </div>\n <div className={classes.ActionsResponsive}>\n <Button>Join waitlist</Button>\n </div>\n <div className={classes.Close}>\n <IconButton variant=\"invisible\" icon={XIcon} aria-label=\"Dismiss\" />\n </div>\n </Flash>\n)"
|
|
3366
3331
|
}
|
|
3367
3332
|
],
|
|
3368
3333
|
"importPath": "@primer/react",
|
|
@@ -3387,11 +3352,6 @@
|
|
|
3387
3352
|
"name": "as",
|
|
3388
3353
|
"type": "React.ElementType",
|
|
3389
3354
|
"defaultValue": "\"div\""
|
|
3390
|
-
},
|
|
3391
|
-
{
|
|
3392
|
-
"name": "sx",
|
|
3393
|
-
"type": "SystemStyleObject",
|
|
3394
|
-
"deprecated": true
|
|
3395
3355
|
}
|
|
3396
3356
|
],
|
|
3397
3357
|
"subcomponents": []
|
|
@@ -3653,11 +3613,11 @@
|
|
|
3653
3613
|
"stories": [
|
|
3654
3614
|
{
|
|
3655
3615
|
"id": "components-header--default",
|
|
3656
|
-
"code": "() => (\n <Header>\n <Header.Item>\n <Header.Link
|
|
3616
|
+
"code": "() => (\n <Header>\n <Header.Item>\n <Header.Link href=\"#\" className={classes.HeaderLink}>\n <MarkGithubIcon className={classes.Icon} size={32} />\n <span>GitHub</span>\n </Header.Link>\n </Header.Item>\n <Header.Item full>Menu</Header.Item>\n <Header.Item className={classes.AvatarContainer}>\n <Avatar\n src=\"https://github.com/octocat.png\"\n size={20}\n square\n alt=\"@octocat\"\n />\n </Header.Item>\n </Header>\n)"
|
|
3657
3617
|
},
|
|
3658
3618
|
{
|
|
3659
3619
|
"id": "components-header-features--with-full-size-item",
|
|
3660
|
-
"code": "() => (\n <Header>\n <Header.Item>Item 1</Header.Item>\n <Header.Item full>Item 2</Header.Item>\n <Header.Item
|
|
3620
|
+
"code": "() => (\n <Header>\n <Header.Item>Item 1</Header.Item>\n <Header.Item full>Item 2</Header.Item>\n <Header.Item className={classes.LastItem}>Item 3</Header.Item>\n </Header>\n)"
|
|
3661
3621
|
},
|
|
3662
3622
|
{
|
|
3663
3623
|
"id": "components-header-features--with-links",
|
|
@@ -3665,17 +3625,11 @@
|
|
|
3665
3625
|
},
|
|
3666
3626
|
{
|
|
3667
3627
|
"id": "components-header-features--with-many-items",
|
|
3668
|
-
"code": "() => (\n <Header>\n <Header.Item>\n <Header.Link
|
|
3628
|
+
"code": "() => (\n <Header>\n <Header.Item>\n <Header.Link className={classes.Logo} href=\"#\">\n <MarkGithubIcon className={classes.Icon} size={32} />\n <span>GitHub</span>\n </Header.Link>\n </Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item>Item</Header.Item>\n <Header.Item className={classes.LastItem}>\n <Avatar\n src=\"https://github.com/octocat.png\"\n size={20}\n square\n alt=\"@octocat\"\n />\n </Header.Item>\n </Header>\n)"
|
|
3669
3629
|
}
|
|
3670
3630
|
],
|
|
3671
3631
|
"importPath": "@primer/react",
|
|
3672
|
-
"props": [
|
|
3673
|
-
{
|
|
3674
|
-
"name": "sx",
|
|
3675
|
-
"type": "SystemStyleObject",
|
|
3676
|
-
"deprecated": true
|
|
3677
|
-
}
|
|
3678
|
-
],
|
|
3632
|
+
"props": [],
|
|
3679
3633
|
"subcomponents": [
|
|
3680
3634
|
{
|
|
3681
3635
|
"name": "Header.Item",
|
|
@@ -3685,11 +3639,6 @@
|
|
|
3685
3639
|
"type": "string",
|
|
3686
3640
|
"defaultValue": "",
|
|
3687
3641
|
"description": "Stretches item to fill the available space"
|
|
3688
|
-
},
|
|
3689
|
-
{
|
|
3690
|
-
"name": "sx",
|
|
3691
|
-
"type": "SystemStyleObject",
|
|
3692
|
-
"deprecated": true
|
|
3693
3642
|
}
|
|
3694
3643
|
]
|
|
3695
3644
|
},
|
|
@@ -3706,11 +3655,6 @@
|
|
|
3706
3655
|
"name": "as",
|
|
3707
3656
|
"type": "React.ElementType",
|
|
3708
3657
|
"defaultValue": "\"a\""
|
|
3709
|
-
},
|
|
3710
|
-
{
|
|
3711
|
-
"name": "sx",
|
|
3712
|
-
"type": "SystemStyleObject",
|
|
3713
|
-
"deprecated": true
|
|
3714
3658
|
}
|
|
3715
3659
|
],
|
|
3716
3660
|
"passthrough": {
|
|
@@ -4660,11 +4604,6 @@
|
|
|
4660
4604
|
"type": "AriaRole",
|
|
4661
4605
|
"description": "The ARIA role to assign to the top-level node of this component."
|
|
4662
4606
|
},
|
|
4663
|
-
{
|
|
4664
|
-
"name": "sx",
|
|
4665
|
-
"type": "SystemStyleObject",
|
|
4666
|
-
"deprecated": true
|
|
4667
|
-
},
|
|
4668
4607
|
{
|
|
4669
4608
|
"name": "as",
|
|
4670
4609
|
"type": "React.ElementType",
|
|
@@ -4691,11 +4630,6 @@
|
|
|
4691
4630
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4692
4631
|
"defaultValue": "false",
|
|
4693
4632
|
"description": "Whether the content is hidden."
|
|
4694
|
-
},
|
|
4695
|
-
{
|
|
4696
|
-
"name": "sx",
|
|
4697
|
-
"type": "SystemStyleObject",
|
|
4698
|
-
"deprecated": true
|
|
4699
4633
|
}
|
|
4700
4634
|
]
|
|
4701
4635
|
},
|
|
@@ -4725,11 +4659,6 @@
|
|
|
4725
4659
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4726
4660
|
"defaultValue": "`{ narrow: false regular: true wide: true }`",
|
|
4727
4661
|
"description": "Whether the parent link is hidden."
|
|
4728
|
-
},
|
|
4729
|
-
{
|
|
4730
|
-
"name": "sx",
|
|
4731
|
-
"type": "SystemStyleObject",
|
|
4732
|
-
"deprecated": true
|
|
4733
4662
|
}
|
|
4734
4663
|
]
|
|
4735
4664
|
},
|
|
@@ -4747,11 +4676,6 @@
|
|
|
4747
4676
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4748
4677
|
"defaultValue": "false",
|
|
4749
4678
|
"description": "Whether the content is hidden."
|
|
4750
|
-
},
|
|
4751
|
-
{
|
|
4752
|
-
"name": "sx",
|
|
4753
|
-
"type": "SystemStyleObject",
|
|
4754
|
-
"deprecated": true
|
|
4755
4679
|
}
|
|
4756
4680
|
]
|
|
4757
4681
|
},
|
|
@@ -4769,11 +4693,6 @@
|
|
|
4769
4693
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4770
4694
|
"defaultValue": "false",
|
|
4771
4695
|
"description": "Whether the content is hidden."
|
|
4772
|
-
},
|
|
4773
|
-
{
|
|
4774
|
-
"name": "sx",
|
|
4775
|
-
"type": "SystemStyleObject",
|
|
4776
|
-
"deprecated": true
|
|
4777
4696
|
}
|
|
4778
4697
|
]
|
|
4779
4698
|
},
|
|
@@ -4797,11 +4716,6 @@
|
|
|
4797
4716
|
"type": "| 'subtitle' | 'medium' | 'large' | { narrow?: | 'subtitle' | 'medium' | 'large' regular?: | 'subtitle' | 'medium' | 'large' wide?: | 'subtitle' | 'medium' | 'large' }",
|
|
4798
4717
|
"defaultValue": "medium",
|
|
4799
4718
|
"description": "Default title (medium) is the most common page title size. Use for static titles in most situations.\nLarge variant should be used for user-generated content such as issues, pull requests, or discussions.\nSubtitle variant can be used when a PageHeader.Title is already present in the page, such as in a SplitPageLayout."
|
|
4800
|
-
},
|
|
4801
|
-
{
|
|
4802
|
-
"name": "sx",
|
|
4803
|
-
"type": "SystemStyleObject",
|
|
4804
|
-
"deprecated": true
|
|
4805
4719
|
}
|
|
4806
4720
|
]
|
|
4807
4721
|
},
|
|
@@ -4819,11 +4733,6 @@
|
|
|
4819
4733
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4820
4734
|
"defaultValue": "false",
|
|
4821
4735
|
"description": "Whether the content is hidden."
|
|
4822
|
-
},
|
|
4823
|
-
{
|
|
4824
|
-
"name": "sx",
|
|
4825
|
-
"type": "SystemStyleObject",
|
|
4826
|
-
"deprecated": true
|
|
4827
4736
|
}
|
|
4828
4737
|
]
|
|
4829
4738
|
},
|
|
@@ -4841,11 +4750,6 @@
|
|
|
4841
4750
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4842
4751
|
"defaultValue": "false",
|
|
4843
4752
|
"description": "Whether the content is hidden."
|
|
4844
|
-
},
|
|
4845
|
-
{
|
|
4846
|
-
"name": "sx",
|
|
4847
|
-
"type": "SystemStyleObject",
|
|
4848
|
-
"deprecated": true
|
|
4849
4753
|
}
|
|
4850
4754
|
]
|
|
4851
4755
|
},
|
|
@@ -4864,11 +4768,6 @@
|
|
|
4864
4768
|
"defaultValue": "false",
|
|
4865
4769
|
"description": "Whether the content is hidden."
|
|
4866
4770
|
},
|
|
4867
|
-
{
|
|
4868
|
-
"name": "sx",
|
|
4869
|
-
"type": "SystemStyleObject",
|
|
4870
|
-
"deprecated": true
|
|
4871
|
-
},
|
|
4872
4771
|
{
|
|
4873
4772
|
"name": "as",
|
|
4874
4773
|
"type": "React.ElementType",
|
|
@@ -4890,11 +4789,6 @@
|
|
|
4890
4789
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4891
4790
|
"defaultValue": "false",
|
|
4892
4791
|
"description": "Whether the content is hidden."
|
|
4893
|
-
},
|
|
4894
|
-
{
|
|
4895
|
-
"name": "sx",
|
|
4896
|
-
"type": "SystemStyleObject",
|
|
4897
|
-
"deprecated": true
|
|
4898
4792
|
}
|
|
4899
4793
|
]
|
|
4900
4794
|
},
|
|
@@ -4912,11 +4806,6 @@
|
|
|
4912
4806
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4913
4807
|
"defaultValue": "false",
|
|
4914
4808
|
"description": "Whether the content is hidden."
|
|
4915
|
-
},
|
|
4916
|
-
{
|
|
4917
|
-
"name": "sx",
|
|
4918
|
-
"type": "SystemStyleObject",
|
|
4919
|
-
"deprecated": true
|
|
4920
4809
|
}
|
|
4921
4810
|
]
|
|
4922
4811
|
},
|
|
@@ -4934,11 +4823,6 @@
|
|
|
4934
4823
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4935
4824
|
"defaultValue": "false",
|
|
4936
4825
|
"description": "Whether the content is hidden."
|
|
4937
|
-
},
|
|
4938
|
-
{
|
|
4939
|
-
"name": "sx",
|
|
4940
|
-
"type": "SystemStyleObject",
|
|
4941
|
-
"deprecated": true
|
|
4942
4826
|
}
|
|
4943
4827
|
]
|
|
4944
4828
|
},
|
|
@@ -4956,11 +4840,6 @@
|
|
|
4956
4840
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4957
4841
|
"defaultValue": "false",
|
|
4958
4842
|
"description": "Whether the content is hidden."
|
|
4959
|
-
},
|
|
4960
|
-
{
|
|
4961
|
-
"name": "sx",
|
|
4962
|
-
"type": "SystemStyleObject",
|
|
4963
|
-
"deprecated": true
|
|
4964
4843
|
}
|
|
4965
4844
|
]
|
|
4966
4845
|
},
|
|
@@ -4978,11 +4857,6 @@
|
|
|
4978
4857
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
4979
4858
|
"defaultValue": "false",
|
|
4980
4859
|
"description": "Whether the content is hidden."
|
|
4981
|
-
},
|
|
4982
|
-
{
|
|
4983
|
-
"name": "sx",
|
|
4984
|
-
"type": "SystemStyleObject",
|
|
4985
|
-
"deprecated": true
|
|
4986
4860
|
}
|
|
4987
4861
|
]
|
|
4988
4862
|
},
|
|
@@ -5016,11 +4890,6 @@
|
|
|
5016
4890
|
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
|
|
5017
4891
|
"defaultValue": "false",
|
|
5018
4892
|
"description": "Whether the content is hidden."
|
|
5019
|
-
},
|
|
5020
|
-
{
|
|
5021
|
-
"name": "sx",
|
|
5022
|
-
"type": "SystemStyleObject",
|
|
5023
|
-
"deprecated": true
|
|
5024
4893
|
}
|
|
5025
4894
|
]
|
|
5026
4895
|
}
|
|
@@ -5349,11 +5218,6 @@
|
|
|
5349
5218
|
"type": "string",
|
|
5350
5219
|
"defaultValue": "div",
|
|
5351
5220
|
"description": "Sets the underlying HTML tag for the component"
|
|
5352
|
-
},
|
|
5353
|
-
{
|
|
5354
|
-
"name": "sx",
|
|
5355
|
-
"type": "SystemStyleObject",
|
|
5356
|
-
"deprecated": true
|
|
5357
5221
|
}
|
|
5358
5222
|
],
|
|
5359
5223
|
"subcomponents": []
|
|
@@ -5441,47 +5305,6 @@
|
|
|
5441
5305
|
],
|
|
5442
5306
|
"subcomponents": []
|
|
5443
5307
|
},
|
|
5444
|
-
"pointer_box": {
|
|
5445
|
-
"source": "https://github.com/primer/react/tree/main/packages/react/src/PointerBox",
|
|
5446
|
-
"id": "pointer_box",
|
|
5447
|
-
"name": "PointerBox",
|
|
5448
|
-
"status": "deprecated",
|
|
5449
|
-
"a11yReviewed": "2025-01-08",
|
|
5450
|
-
"stories": [
|
|
5451
|
-
{
|
|
5452
|
-
"id": "deprecated-components-pointerbox--default",
|
|
5453
|
-
"code": "() => <PointerBox>Pointer box content</PointerBox>"
|
|
5454
|
-
}
|
|
5455
|
-
],
|
|
5456
|
-
"importPath": "@primer/react/deprecated",
|
|
5457
|
-
"props": [
|
|
5458
|
-
{
|
|
5459
|
-
"name": "bg",
|
|
5460
|
-
"type": "string | string & (string | number | symbol | null)[] | string & { [x: string]: string | number | symbol | undefined; [x: number]: string | number | symbol | undefined; }",
|
|
5461
|
-
"description": "Background color of the box\nThe color utility parses a component's `color` and `bg` props and converts them into CSS declarations.\nBy default the raw value of the prop is returned.\n\nColor palettes can be configured with the ThemeProvider to use keys as prop values, with support for dot notation.\nArray values are converted into responsive values.\n\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)",
|
|
5462
|
-
"defaultValue": ""
|
|
5463
|
-
},
|
|
5464
|
-
{
|
|
5465
|
-
"name": "border",
|
|
5466
|
-
"type": "string | number | string & (Border<TLengthStyledSystem> | null)[] | string & { [x: string]: Border<TLengthStyledSystem> | undefined; [x: number]: Border<TLengthStyledSystem> | undefined; } | number & (Border<TLengthStyledSystem> | null)[] | number & { [x: string]: Border<TLengthStyledSystem> | undefined; [x: number]: Border<TLengthStyledSystem> | undefined; }",
|
|
5467
|
-
"description": "Width of the border around the box\nThe border CSS property sets an element's border. It's a shorthand for border-width, border-style,\nand border-color.\n\n[MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS/border)",
|
|
5468
|
-
"defaultValue": ""
|
|
5469
|
-
},
|
|
5470
|
-
{
|
|
5471
|
-
"name": "borderColor",
|
|
5472
|
-
"type": "string | string & (string | number | symbol | null)[] | string & { [x: string]: string | number | symbol | undefined; [x: number]: string | number | symbol | undefined; }",
|
|
5473
|
-
"description": "Color of the border around the box\nThe border-color shorthand CSS property sets the color of all sides of an element's border.\n\n[MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color)",
|
|
5474
|
-
"defaultValue": ""
|
|
5475
|
-
},
|
|
5476
|
-
{
|
|
5477
|
-
"name": "caret",
|
|
5478
|
-
"type": "| 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom'",
|
|
5479
|
-
"defaultValue": "'bottom'",
|
|
5480
|
-
"description": "Sets the location of the caret. The format is [edge]-[position on edge]. For example, right-top will position the caret on the top of the right edge of the box. Use top"
|
|
5481
|
-
}
|
|
5482
|
-
],
|
|
5483
|
-
"subcomponents": []
|
|
5484
|
-
},
|
|
5485
5308
|
"popover": {
|
|
5486
5309
|
"source": "https://github.com/primer/react/tree/main/packages/react/src/Popover",
|
|
5487
5310
|
"id": "popover",
|
|
@@ -5786,16 +5609,6 @@
|
|
|
5786
5609
|
{
|
|
5787
5610
|
"name": "ref",
|
|
5788
5611
|
"type": "React.RefObject<HTMLInputElement>"
|
|
5789
|
-
},
|
|
5790
|
-
{
|
|
5791
|
-
"name": "as",
|
|
5792
|
-
"type": "React.ElementType",
|
|
5793
|
-
"defaultValue": "\"input\""
|
|
5794
|
-
},
|
|
5795
|
-
{
|
|
5796
|
-
"name": "sx",
|
|
5797
|
-
"type": "SystemStyleObject",
|
|
5798
|
-
"deprecated": true
|
|
5799
5612
|
}
|
|
5800
5613
|
],
|
|
5801
5614
|
"subcomponents": []
|
|
@@ -6097,11 +5910,6 @@
|
|
|
6097
5910
|
"name": "as",
|
|
6098
5911
|
"type": "React.ElementType",
|
|
6099
5912
|
"defaultValue": "\"relative-time\""
|
|
6100
|
-
},
|
|
6101
|
-
{
|
|
6102
|
-
"name": "sx",
|
|
6103
|
-
"type": "SystemStyleObject",
|
|
6104
|
-
"deprecated": true
|
|
6105
5913
|
}
|
|
6106
5914
|
],
|
|
6107
5915
|
"subcomponents": []
|
|
@@ -6829,11 +6637,6 @@
|
|
|
6829
6637
|
{
|
|
6830
6638
|
"name": "data-*",
|
|
6831
6639
|
"type": "string"
|
|
6832
|
-
},
|
|
6833
|
-
{
|
|
6834
|
-
"name": "sx",
|
|
6835
|
-
"type": "SystemStyleObject",
|
|
6836
|
-
"deprecated": true
|
|
6837
6640
|
}
|
|
6838
6641
|
],
|
|
6839
6642
|
"subcomponents": []
|
|
@@ -7233,11 +7036,6 @@
|
|
|
7233
7036
|
"name": "aria-label",
|
|
7234
7037
|
"type": "string",
|
|
7235
7038
|
"description": "Used to set the `aria-label` on the top level `<nav>` element."
|
|
7236
|
-
},
|
|
7237
|
-
{
|
|
7238
|
-
"name": "sx",
|
|
7239
|
-
"type": "SystemStyleObject",
|
|
7240
|
-
"deprecated": true
|
|
7241
7039
|
}
|
|
7242
7040
|
],
|
|
7243
7041
|
"subcomponents": [
|
|
@@ -7262,23 +7060,12 @@
|
|
|
7262
7060
|
"name": "to",
|
|
7263
7061
|
"type": "string | Partial<Path>",
|
|
7264
7062
|
"description": "Used when the item is rendered using a component like React Router's `Link`. The path to navigate to."
|
|
7265
|
-
},
|
|
7266
|
-
{
|
|
7267
|
-
"name": "sx",
|
|
7268
|
-
"type": "SystemStyleObject",
|
|
7269
|
-
"deprecated": true
|
|
7270
7063
|
}
|
|
7271
7064
|
]
|
|
7272
7065
|
},
|
|
7273
7066
|
{
|
|
7274
7067
|
"name": "SubNav.Links",
|
|
7275
|
-
"props": [
|
|
7276
|
-
{
|
|
7277
|
-
"name": "sx",
|
|
7278
|
-
"type": "SystemStyleObject",
|
|
7279
|
-
"deprecated": true
|
|
7280
|
-
}
|
|
7281
|
-
]
|
|
7068
|
+
"props": []
|
|
7282
7069
|
}
|
|
7283
7070
|
]
|
|
7284
7071
|
},
|
|
@@ -7879,11 +7666,6 @@
|
|
|
7879
7666
|
"type": "React.ElementType",
|
|
7880
7667
|
"defaultValue": "\"input\""
|
|
7881
7668
|
},
|
|
7882
|
-
{
|
|
7883
|
-
"name": "sx",
|
|
7884
|
-
"type": "SystemStyleObject",
|
|
7885
|
-
"deprecated": true
|
|
7886
|
-
},
|
|
7887
7669
|
{
|
|
7888
7670
|
"name": "className",
|
|
7889
7671
|
"type": "string | undefined",
|
|
@@ -7923,11 +7705,11 @@
|
|
|
7923
7705
|
},
|
|
7924
7706
|
{
|
|
7925
7707
|
"id": "components-timeline-features--timeline-break",
|
|
7926
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge
|
|
7708
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge className={classes.BadgeWithDoneBackground}>\n <Octicon\n icon={GitMergeIcon}\n color=\"fg.onEmphasis\"\n aria-label=\"Merged\"\n />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n <Timeline.Break />\n <Timeline.Item>\n <Timeline.Badge>\n <Octicon icon={GitBranchIcon} aria-label=\"Branch\" />\n </Timeline.Badge>\n <Timeline.Body>This is a message</Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
7927
7709
|
},
|
|
7928
7710
|
{
|
|
7929
7711
|
"id": "components-timeline-features--with-inline-links",
|
|
7930
|
-
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <Octicon icon={GitCommitIcon} aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>\n <Link
|
|
7712
|
+
"code": "() => (\n <Timeline>\n <Timeline.Item>\n <Timeline.Badge>\n <Octicon icon={GitCommitIcon} aria-label=\"Commit\" />\n </Timeline.Badge>\n <Timeline.Body>\n <Link href=\"#\" className={classes.LinkWithBoldStyle} muted>\n Monalisa\n </Link>\n enabled auto-merge (squash)\n </Timeline.Body>\n </Timeline.Item>\n </Timeline>\n)"
|
|
7931
7713
|
}
|
|
7932
7714
|
],
|
|
7933
7715
|
"importPath": "@primer/react",
|
|
@@ -8033,6 +7815,10 @@
|
|
|
8033
7815
|
{
|
|
8034
7816
|
"id": "components-toggleswitch-features--controlled",
|
|
8035
7817
|
"code": "() => {\n const [isOn, setIsOn] = React.useState(false)\n const onClick = React.useCallback(() => {\n setIsOn(!isOn)\n }, [setIsOn, isOn])\n const handleSwitchChange = (on: boolean) => {\n action(`new switch \"on\" state: ${on}`)\n }\n return (\n <>\n <div\n className={styles.Row}\n style={{\n maxWidth: '300px',\n }}\n >\n <span\n className={clsx(styles.ColGrow, styles.SwitchLabel)}\n id=\"switchLabel\"\n >\n Notifications\n </span>\n <ToggleSwitch\n onClick={onClick}\n onChange={handleSwitchChange}\n checked={isOn}\n aria-labelledby=\"switchLabel\"\n />\n </div>\n <p>The switch is {isOn ? 'on' : 'off'}</p>\n </>\n )\n}"
|
|
7818
|
+
},
|
|
7819
|
+
{
|
|
7820
|
+
"id": "components-toggleswitch-features--with-custom-labels",
|
|
7821
|
+
"code": "() => (\n <ToggleSwitchStoryWrapper>\n <span id=\"toggle\" className={styles.ToggleLabel}>\n Toggle label\n </span>\n <ToggleSwitch\n buttonLabelOn=\"Active\"\n buttonLabelOff=\"Inactive\"\n aria-labelledby=\"toggle\"\n />\n </ToggleSwitchStoryWrapper>\n)"
|
|
8036
7822
|
}
|
|
8037
7823
|
],
|
|
8038
7824
|
"importPath": "@primer/react",
|
|
@@ -8115,6 +7901,18 @@
|
|
|
8115
7901
|
"type": "'button' | 'submit' | 'reset'",
|
|
8116
7902
|
"defaultValue": "'button'",
|
|
8117
7903
|
"description": "As it’s part of form behavior, this controls whether the button is of type `button`, `submit`, or `reset`."
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"name": "buttonLabelOn",
|
|
7907
|
+
"type": "string",
|
|
7908
|
+
"defaultValue": "'On'",
|
|
7909
|
+
"description": "The text to display when the toggle switch is turned on. Only customize this label if there is a more specific label for the context. For example, you might use 'Show' if the setting is 'Show images'."
|
|
7910
|
+
},
|
|
7911
|
+
{
|
|
7912
|
+
"name": "buttonLabelOff",
|
|
7913
|
+
"type": "string",
|
|
7914
|
+
"defaultValue": "'Off'",
|
|
7915
|
+
"description": "The text to display when the toggle switch is turned off. Only customize this label if there is a more specific label for the context. For example, you might use 'Hide' if the setting is 'Show images'."
|
|
8118
7916
|
}
|
|
8119
7917
|
],
|
|
8120
7918
|
"subcomponents": []
|
|
@@ -8530,6 +8328,11 @@
|
|
|
8530
8328
|
"type": "boolean",
|
|
8531
8329
|
"description": "The controlled expanded state of item. Must be used in conjunction with onExpandedChange."
|
|
8532
8330
|
},
|
|
8331
|
+
{
|
|
8332
|
+
"name": "secondaryActions",
|
|
8333
|
+
"type": "TreeViewSecondaryActions[]",
|
|
8334
|
+
"description": "An array of secondary actions to render in as a trailing action. Each action should have a 'label', 'icon', and 'onClick' handler."
|
|
8335
|
+
},
|
|
8533
8336
|
{
|
|
8534
8337
|
"name": "containIntrinsicSize",
|
|
8535
8338
|
"type": "string",
|
|
@@ -8762,11 +8565,6 @@
|
|
|
8762
8565
|
"type": "'inset' | 'flush'",
|
|
8763
8566
|
"defaultValue": "'inset'",
|
|
8764
8567
|
"description": "`inset` children are offset horizontally from container edges. `flush` children are flush horizontally with container edges"
|
|
8765
|
-
},
|
|
8766
|
-
{
|
|
8767
|
-
"name": "sx",
|
|
8768
|
-
"type": "SystemStyleObject",
|
|
8769
|
-
"deprecated": true
|
|
8770
8568
|
}
|
|
8771
8569
|
],
|
|
8772
8570
|
"subcomponents": [
|
|
@@ -8807,11 +8605,6 @@
|
|
|
8807
8605
|
"name": "as",
|
|
8808
8606
|
"type": "React.ElementType",
|
|
8809
8607
|
"defaultValue": "\"a\""
|
|
8810
|
-
},
|
|
8811
|
-
{
|
|
8812
|
-
"name": "sx",
|
|
8813
|
-
"type": "SystemStyleObject",
|
|
8814
|
-
"deprecated": true
|
|
8815
8608
|
}
|
|
8816
8609
|
],
|
|
8817
8610
|
"passthrough": {
|
package/package.json
CHANGED
package/dist/DropdownStyles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownStyles.d.ts","sourceRoot":"","sources":["../src/DropdownStyles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAA;AAE1C,QAAA,MAAM,kBAAkB,GAAI,OAAO,KAAK,EAAE,WAAW,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,WA0HxF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-FilteredActionList-Root-S5E74{display:flex;flex-direction:column;overflow:hidden}.prc-FilteredActionList-Container-2A9NQ{display:flex;flex-grow:1;height:100%;overflow:auto}.prc-FilteredActionList-ActionListItem-39lnB:focus{background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}.prc-FilteredActionList-ActionListItem-39lnB:focus:after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - var(--base-size-12,.75rem));width:var(--base-size-4,.25rem)}.prc-FilteredActionList-ActionListItem-39lnB:where([data-input-focused]):where([data-first-child]){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}.prc-FilteredActionList-ActionListItem-39lnB:where([data-input-focused]):where([data-first-child]):after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - var(--base-size-12,.75rem));width:var(--base-size-4,.25rem)}@media screen and (max-width:calc(48rem - 0.02px)){@supports (-webkit-touch-callout:none){.prc-FilteredActionList-FullScreenTextInput-rCAiq{font-size:var(--text-title-size-small,1rem)}}}.prc-FilteredActionList-SelectAllContainer-w5otq{align-items:center;background:var(--bgColor-muted,var(--color-canvas-subtle));border-bottom:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,var(--color-border-default));display:flex;padding-block:var(--base-size-4,.25rem);padding-inline:var(--base-size-16,1rem)}.prc-FilteredActionList-SelectAllCheckbox-dq2yL{margin:var(--base-size-4,.25rem) var(--base-size-8,.5rem) calc(var(--base-size-4,.25rem) - 1px) 0}.prc-FilteredActionList-SelectAllLabel-l34LA{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-medium,.875rem)}
|
|
2
|
-
/*# sourceMappingURL=FilteredActionList-96b126d7.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/FilteredActionList/FilteredActionList.module.css","../../postcss-preset-primer/src/mixins/activeIndicatorLine.css"],"names":[],"mappings":"AAAA,mCACE,YAAa,CACb,qBAAsB,CACtB,eACF,CAEA,wCACE,YAAa,CAGb,WAAY,CAFZ,WAAY,CACZ,aAEF,CAEA,mDACE,wGAKF,CAHE,yDCRA,0EAA8C,CAC9C,gDAAyC,CAHzC,UAAW,CADX,iCAA2B,CAF3B,sCAAmC,CAFnC,iBAAkB,CAClB,0CAAoC,CAEpC,+BDcA,CAGF,mGACE,wGAKF,CAHE,yGChBA,0EAA8C,CAC9C,gDAAyC,CAHzC,UAAW,CADX,iCAA2B,CAF3B,sCAAmC,CAFnC,iBAAkB,CAClB,0CAAoC,CAEpC,+BDsBA,CAIA,mDAEE,uCAHJ,kDAIM,2CAGN,CAFI,CACF,CAGF,iDAEE,kBAAmB,CAGnB,0DAAgC,CAChC,2GAAuE,CALvE,YAAa,CAEb,uCAAiC,CACjC,uCAGF,CAEA,gDAGE,iGACF,CAEA,6CAEE,gDAA2B,CAD3B,8CAEF","file":"FilteredActionList-96b126d7.css","sourcesContent":[".Root {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.Container {\n display: flex;\n height: 100%;\n overflow: auto;\n flex-grow: 1;\n}\n\n.ActionListItem:focus {\n background: var(--control-transparent-bgColor-selected);\n\n &::after {\n @mixin activeIndicatorLine;\n }\n}\n\n.ActionListItem:where([data-input-focused]):where([data-first-child]) {\n background: var(--control-transparent-bgColor-selected);\n\n &::after {\n @mixin activeIndicatorLine;\n }\n}\n\n.FullScreenTextInput {\n @media screen and (--viewportRange-narrow) {\n /* Ensures inputs don't zoom on mobile iPhone but are body-font size on iPad */\n @supports (-webkit-touch-callout: none) {\n font-size: var(--text-title-size-small);\n }\n }\n}\n\n.SelectAllContainer {\n display: flex;\n align-items: center;\n padding-block: var(--base-size-4);\n padding-inline: var(--base-size-16);\n background: var(--bgColor-muted);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);\n}\n\n.SelectAllCheckbox {\n /* -1px hack to offset 1px border-bottom causing uneven alignment */\n /* stylelint-disable-next-line primer/spacing */\n margin: var(--base-size-4) var(--base-size-8) calc(var(--base-size-4) - 1px) 0;\n}\n\n.SelectAllLabel {\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n}\n","@define-mixin activeIndicatorLine {\n position: absolute;\n top: calc(50% - var(--base-size-12));\n left: calc(-1 * var(--base-size-8));\n width: var(--base-size-4);\n height: var(--base-size-24);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-accent-emphasis);\n border-radius: var(--borderRadius-medium);\n}\n"]}
|