@usefragments/ui 1.0.2 → 1.2.0
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/README.md +16 -16
- package/dist/assets/fragments-wordmark.cjs +30 -0
- package/dist/assets/fragments-wordmark.d.ts +13 -0
- package/dist/assets/fragments-wordmark.d.ts.map +1 -0
- package/dist/assets/fragments-wordmark.js +30 -0
- package/dist/assets/ui.css +3234 -3116
- package/dist/components/Accordion/Accordion.module.scss.cjs +8 -8
- package/dist/components/Accordion/Accordion.module.scss.js +8 -8
- package/dist/components/Accordion/index.cjs +22 -10
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +22 -10
- package/dist/components/Alert/Alert.module.scss.cjs +13 -13
- package/dist/components/Alert/Alert.module.scss.js +13 -13
- package/dist/components/AppShell/AppShell.module.scss.cjs +22 -10
- package/dist/components/AppShell/AppShell.module.scss.js +22 -10
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/Avatar/Avatar.module.scss.cjs +13 -13
- package/dist/components/Avatar/Avatar.module.scss.js +13 -13
- package/dist/components/Badge/Badge.module.scss.cjs +16 -16
- package/dist/components/Badge/Badge.module.scss.js +16 -16
- package/dist/components/BentoGrid/BentoGrid.module.scss.cjs +14 -14
- package/dist/components/BentoGrid/BentoGrid.module.scss.js +14 -14
- package/dist/components/Box/Box.module.scss.cjs +152 -152
- package/dist/components/Box/Box.module.scss.js +152 -152
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +8 -8
- package/dist/components/Button/Button.module.scss.cjs +13 -13
- package/dist/components/Button/Button.module.scss.js +13 -13
- package/dist/components/Card/Card.module.scss.cjs +17 -17
- package/dist/components/Card/Card.module.scss.js +17 -17
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Chart/Chart.module.scss.cjs +15 -15
- package/dist/components/Chart/Chart.module.scss.js +15 -15
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +11 -11
- package/dist/components/Checkbox/Checkbox.module.scss.js +11 -11
- package/dist/components/Chip/Chip.module.scss.cjs +15 -15
- package/dist/components/Chip/Chip.module.scss.js +15 -15
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +21 -21
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +21 -21
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +10 -10
- package/dist/components/Collapsible/Collapsible.module.scss.js +10 -10
- package/dist/components/ColorPicker/ColorPicker.module.scss.cjs +14 -14
- package/dist/components/ColorPicker/ColorPicker.module.scss.js +14 -14
- package/dist/components/Combobox/Combobox.module.scss.cjs +23 -23
- package/dist/components/Combobox/Combobox.module.scss.js +23 -23
- package/dist/components/Combobox/index.cjs +106 -9
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +106 -9
- package/dist/components/Command/Command.module.scss.cjs +11 -11
- package/dist/components/Command/Command.module.scss.js +11 -11
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
- package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
- package/dist/components/DataTable/DataTable.module.scss.cjs +37 -34
- package/dist/components/DataTable/DataTable.module.scss.js +37 -34
- package/dist/components/DataTable/index.d.ts +3 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +33 -33
- package/dist/components/DatePicker/DatePicker.module.scss.js +33 -33
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.module.scss.cjs +14 -14
- package/dist/components/Dialog/Dialog.module.scss.js +14 -14
- package/dist/components/Drawer/Drawer.module.scss.cjs +28 -28
- package/dist/components/Drawer/Drawer.module.scss.js +28 -28
- package/dist/components/Drawer/index.cjs +20 -3
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +20 -3
- package/dist/components/Editor/Editor.module.scss.cjs +17 -17
- package/dist/components/Editor/Editor.module.scss.js +17 -17
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +8 -8
- package/dist/components/EmptyState/EmptyState.module.scss.js +8 -8
- package/dist/components/Field/Field.module.scss.cjs +4 -4
- package/dist/components/Field/Field.module.scss.js +4 -4
- package/dist/components/Field/index.cjs +10 -9
- package/dist/components/Field/index.d.ts +7 -7
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/index.js +10 -9
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Header/Header.module.scss.cjs +44 -29
- package/dist/components/Header/Header.module.scss.js +44 -29
- package/dist/components/Header/index.cjs +56 -3
- package/dist/components/Header/index.d.ts +25 -3
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +56 -3
- package/dist/components/Icon/Icon.module.scss.cjs +8 -8
- package/dist/components/Icon/Icon.module.scss.js +8 -8
- package/dist/components/IconButton/IconButton.module.scss.cjs +8 -8
- package/dist/components/IconButton/IconButton.module.scss.js +8 -8
- package/dist/components/Image/Image.module.scss.cjs +27 -27
- package/dist/components/Image/Image.module.scss.js +27 -27
- package/dist/components/Input/Input.module.scss.cjs +19 -19
- package/dist/components/Input/Input.module.scss.js +19 -19
- package/dist/components/Link/Link.module.scss.cjs +10 -10
- package/dist/components/Link/Link.module.scss.js +10 -10
- package/dist/components/List/List.module.scss.cjs +19 -19
- package/dist/components/List/List.module.scss.js +19 -19
- package/dist/components/Listbox/Listbox.module.scss.cjs +8 -8
- package/dist/components/Listbox/Listbox.module.scss.js +8 -8
- package/dist/components/Loading/Loading.module.scss.cjs +30 -30
- package/dist/components/Loading/Loading.module.scss.js +30 -30
- package/dist/components/Main/Main.module.scss.cjs +26 -0
- package/dist/components/Main/Main.module.scss.js +26 -0
- package/dist/components/Main/index.cjs +128 -0
- package/dist/components/Main/index.d.ts +22 -0
- package/dist/components/Main/index.d.ts.map +1 -0
- package/dist/components/Main/index.js +111 -0
- package/dist/components/Markdown/Markdown.module.scss.cjs +1 -1
- package/dist/components/Markdown/Markdown.module.scss.js +1 -1
- package/dist/components/Menu/Menu.module.scss.cjs +14 -14
- package/dist/components/Menu/Menu.module.scss.js +14 -14
- package/dist/components/Message/Message.module.scss.cjs +18 -18
- package/dist/components/Message/Message.module.scss.js +18 -18
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +28 -28
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +28 -28
- package/dist/components/Pagination/Pagination.module.scss.cjs +7 -7
- package/dist/components/Pagination/Pagination.module.scss.js +7 -7
- package/dist/components/Popover/Popover.module.scss.cjs +10 -10
- package/dist/components/Popover/Popover.module.scss.js +10 -10
- package/dist/components/Popover/index.cjs +27 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +27 -2
- package/dist/components/Progress/Progress.module.scss.cjs +25 -25
- package/dist/components/Progress/Progress.module.scss.js +25 -25
- package/dist/components/Prompt/Prompt.module.scss.cjs +18 -18
- package/dist/components/Prompt/Prompt.module.scss.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +17 -17
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +17 -17
- package/dist/components/RadioGroup/index.cjs +2 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +10 -10
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +10 -10
- package/dist/components/Select/Select.module.scss.cjs +17 -17
- package/dist/components/Select/Select.module.scss.js +17 -17
- package/dist/components/Separator/Separator.module.scss.cjs +10 -10
- package/dist/components/Separator/Separator.module.scss.js +10 -10
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +42 -42
- package/dist/components/Sidebar/Sidebar.module.scss.js +42 -42
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +38 -38
- package/dist/components/Skeleton/Skeleton.module.scss.js +38 -38
- package/dist/components/Slider/Slider.module.scss.cjs +12 -12
- package/dist/components/Slider/Slider.module.scss.js +12 -12
- package/dist/components/Table/Table.module.scss.cjs +19 -19
- package/dist/components/Table/Table.module.scss.js +19 -19
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/TableOfContents/index.cjs +22 -42
- package/dist/components/TableOfContents/index.d.ts +3 -3
- package/dist/components/TableOfContents/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/index.js +22 -42
- package/dist/components/Tabs/Tabs.module.scss.cjs +12 -12
- package/dist/components/Tabs/Tabs.module.scss.js +12 -12
- package/dist/components/Text/Text.module.scss.cjs +51 -51
- package/dist/components/Text/Text.module.scss.js +51 -51
- package/dist/components/Textarea/Textarea.module.scss.cjs +23 -23
- package/dist/components/Textarea/Textarea.module.scss.js +23 -23
- package/dist/components/Theme/ThemeToggle.module.scss.cjs +6 -6
- package/dist/components/Theme/ThemeToggle.module.scss.js +6 -6
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +13 -13
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +13 -13
- package/dist/components/Toast/Toast.module.scss.cjs +21 -21
- package/dist/components/Toast/Toast.module.scss.js +21 -21
- package/dist/components/Toggle/Toggle.module.scss.cjs +13 -13
- package/dist/components/Toggle/Toggle.module.scss.js +13 -13
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +17 -17
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +17 -17
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
- package/dist/data-table.cjs +58 -41
- package/dist/data-table.js +59 -41
- package/dist/datepicker.cjs +32 -72
- package/dist/datepicker.js +32 -72
- package/dist/index.cjs +89 -85
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/fragments.json +1 -1
- package/package.json +9 -8
- package/src/assets/fragments-wordmark.tsx +47 -0
- package/src/components/Accordion/index.tsx +13 -3
- package/src/components/Alert/Alert.module.scss +15 -2
- package/src/components/AppShell/AppShell.module.scss +73 -15
- package/src/components/AppShell/index.tsx +1 -1
- package/src/components/Button/Button.module.scss +19 -20
- package/src/components/Card/Card.module.scss +3 -3
- package/src/components/Card/index.tsx +3 -3
- package/src/components/Checkbox/Checkbox.contract.json +5 -24
- package/src/components/Checkbox/Checkbox.module.scss +4 -2
- package/src/components/Chip/Chip.contract.json +11 -28
- package/src/components/Chip/Chip.module.scss +21 -45
- package/src/components/CodeBlock/CodeBlock.module.scss +2 -7
- package/src/components/Combobox/Combobox.contract.json +6 -24
- package/src/components/Combobox/Combobox.module.scss +3 -2
- package/src/components/Combobox/index.tsx +132 -6
- package/src/components/DataTable/DataTable.contract.json +16 -23
- package/src/components/DataTable/DataTable.module.scss +31 -8
- package/src/components/DataTable/index.tsx +25 -4
- package/src/components/DatePicker/index.tsx +32 -84
- package/src/components/Drawer/index.tsx +38 -12
- package/src/components/Field/index.tsx +35 -35
- package/src/components/Header/Header.contract.json +41 -1
- package/src/components/Header/Header.module.scss +40 -0
- package/src/components/Header/index.tsx +88 -2
- package/src/components/IconButton/IconButton.contract.json +120 -0
- package/src/components/Listbox/Listbox.module.scss +5 -4
- package/src/components/Main/Main.contract.json +79 -0
- package/src/components/Main/Main.module.scss +31 -0
- package/src/components/Main/index.tsx +124 -0
- package/src/components/Menu/Menu.module.scss +8 -10
- package/src/components/Popover/index.tsx +34 -2
- package/src/components/RadioGroup/RadioGroup.contract.json +13 -27
- package/src/components/RadioGroup/index.tsx +4 -0
- package/src/components/Select/Select.module.scss +13 -12
- package/src/components/Table/Table.module.scss +22 -5
- package/src/components/TableOfContents/TableOfContents.contract.json +6 -16
- package/src/components/TableOfContents/TableOfContents.module.scss +20 -14
- package/src/components/TableOfContents/index.tsx +27 -38
- package/src/components/Toast/Toast.module.scss +15 -2
- package/src/components/ToggleGroup/ToggleGroup.module.scss +4 -1
- package/src/index.ts +4 -0
- package/src/styles/globals.scss +13 -10
- package/src/tokens/_component-properties.scss +26 -0
- package/src/tokens/_computed.scss +22 -4
- package/src/tokens/_derive.scss +55 -6
- package/src/tokens/_palettes.scss +24 -0
- package/src/tokens/_seeds.scss +20 -12
- package/src/tokens/_variables.scss +110 -63
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts +0 -33
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts.map +0 -1
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts +0 -11
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts +0 -5
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts +0 -4
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts +0 -3
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts +0 -86
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts +0 -2
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts.map +0 -1
- package/src/components/Accordion/Accordion.stories.tsx +0 -106
- package/src/components/Alert/Alert.stories.tsx +0 -119
- package/src/components/AppShell/AppShell.stories.tsx +0 -156
- package/src/components/Avatar/Avatar.stories.tsx +0 -74
- package/src/components/Badge/Badge.stories.tsx +0 -92
- package/src/components/BentoGrid/BentoGrid.stories.tsx +0 -98
- package/src/components/Box/Box.stories.tsx +0 -150
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -87
- package/src/components/Button/Button.stories.tsx +0 -103
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -97
- package/src/components/Card/Card.stories.tsx +0 -144
- package/src/components/Chart/Chart.stories.tsx +0 -119
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -68
- package/src/components/Chip/Chip.stories.tsx +0 -70
- package/src/components/Cloud/CloudGovernanceShell.module.scss +0 -88
- package/src/components/Cloud/CloudGovernanceShell.stories.tsx +0 -446
- package/src/components/Cloud/ControlSizing.module.scss +0 -49
- package/src/components/Cloud/ControlSizing.stories.tsx +0 -238
- package/src/components/Cloud/DashboardLayoutPrototypes.module.scss +0 -462
- package/src/components/Cloud/DashboardLayoutPrototypes.shared.tsx +0 -375
- package/src/components/Cloud/DashboardLayoutPrototypes.shell.tsx +0 -147
- package/src/components/Cloud/DashboardLayoutPrototypes.stories.tsx +0 -328
- package/src/components/Cloud/PullRequestsPrototypes.content.tsx +0 -283
- package/src/components/Cloud/PullRequestsPrototypes.detail-panels.tsx +0 -381
- package/src/components/Cloud/PullRequestsPrototypes.detail.tsx +0 -204
- package/src/components/Cloud/PullRequestsPrototypes.id-data.ts +0 -395
- package/src/components/Cloud/PullRequestsPrototypes.id-page.tsx +0 -349
- package/src/components/Cloud/PullRequestsPrototypes.stories.tsx +0 -81
- package/src/components/CodeBlock/CodeBlock.stories.tsx +0 -147
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -94
- package/src/components/ColorPicker/ColorPicker.stories.tsx +0 -74
- package/src/components/Combobox/Combobox.stories.tsx +0 -133
- package/src/components/Command/Command.stories.tsx +0 -102
- package/src/components/ConversationList/ConversationList.stories.tsx +0 -93
- package/src/components/DataTable/DataTable.stories.tsx +0 -129
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -129
- package/src/components/Dialog/Dialog.stories.tsx +0 -154
- package/src/components/Drawer/Drawer.stories.tsx +0 -144
- package/src/components/Editor/Editor.stories.tsx +0 -99
- package/src/components/EmptyState/EmptyState.stories.tsx +0 -97
- package/src/components/Field/Field.stories.tsx +0 -109
- package/src/components/Fieldset/Fieldset.stories.tsx +0 -116
- package/src/components/Form/Form.stories.tsx +0 -142
- package/src/components/Grid/Grid.stories.tsx +0 -125
- package/src/components/Header/Header.stories.tsx +0 -133
- package/src/components/Icon/Icon.stories.tsx +0 -80
- package/src/components/IconButton/IconButton.stories.tsx +0 -78
- package/src/components/Image/Image.stories.tsx +0 -109
- package/src/components/Input/Input.stories.tsx +0 -104
- package/src/components/Link/Link.stories.tsx +0 -67
- package/src/components/List/List.stories.tsx +0 -95
- package/src/components/Listbox/Listbox.stories.tsx +0 -81
- package/src/components/Loading/Loading.stories.tsx +0 -69
- package/src/components/Markdown/Markdown.stories.tsx +0 -75
- package/src/components/Menu/Menu.stories.tsx +0 -113
- package/src/components/Message/Message.stories.tsx +0 -85
- package/src/components/NavigationMenu/NavigationMenu.stories.tsx +0 -161
- package/src/components/Pagination/Pagination.stories.tsx +0 -81
- package/src/components/Popover/Popover.stories.tsx +0 -152
- package/src/components/Progress/Progress.stories.tsx +0 -64
- package/src/components/Prompt/Prompt.stories.tsx +0 -93
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -107
- package/src/components/ScrollArea/ScrollArea.stories.tsx +0 -97
- package/src/components/Select/Select.stories.tsx +0 -127
- package/src/components/Separator/Separator.stories.tsx +0 -84
- package/src/components/Sidebar/Sidebar.stories.tsx +0 -122
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -80
- package/src/components/Slider/Slider.stories.tsx +0 -73
- package/src/components/Stack/Stack.stories.tsx +0 -73
- package/src/components/Switch/Switch.stories.tsx +0 -59
- package/src/components/Table/Table.stories.tsx +0 -219
- package/src/components/TableOfContents/TableOfContents.stories.tsx +0 -120
- package/src/components/Tabs/Tabs.stories.tsx +0 -136
- package/src/components/Text/Text.stories.tsx +0 -133
- package/src/components/Textarea/Textarea.stories.tsx +0 -107
- package/src/components/Theme/Theme.stories.tsx +0 -95
- package/src/components/ThinkingIndicator/ThinkingIndicator.stories.tsx +0 -85
- package/src/components/Toast/Toast.stories.tsx +0 -91
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +0 -114
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -95
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +0 -78
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PullRequestsPrototypes.detail.d.ts","sourceRoot":"","sources":["../../../src/components/Cloud/PullRequestsPrototypes.detail.tsx"],"names":[],"mappings":"AAgCA,wBAAgB,0BAA0B,4CAuBzC;AAED,wBAAgB,iBAAiB,4CA2BhC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { StateVariant } from "./DashboardLayoutPrototypes.shared";
|
|
2
|
-
export type CheckState = "failed" | "passed" | "warning";
|
|
3
|
-
export type GithubCheck = {
|
|
4
|
-
name: string;
|
|
5
|
-
state: CheckState;
|
|
6
|
-
label: string;
|
|
7
|
-
variant: StateVariant;
|
|
8
|
-
summary: string;
|
|
9
|
-
duration: string;
|
|
10
|
-
};
|
|
11
|
-
export type GithubComment = {
|
|
12
|
-
id: string;
|
|
13
|
-
author: string;
|
|
14
|
-
status: string;
|
|
15
|
-
variant: StateVariant;
|
|
16
|
-
file: string;
|
|
17
|
-
line: number;
|
|
18
|
-
body: string;
|
|
19
|
-
designerSignal: string;
|
|
20
|
-
};
|
|
21
|
-
export type ImpactArea = {
|
|
22
|
-
area: string;
|
|
23
|
-
criticality: string;
|
|
24
|
-
coverage: string;
|
|
25
|
-
findings: string;
|
|
26
|
-
owner: string;
|
|
27
|
-
review: string;
|
|
28
|
-
variant: StateVariant;
|
|
29
|
-
};
|
|
30
|
-
export type FindingSeverity = "Blocking" | "Safe fix" | "Review";
|
|
31
|
-
/** How a finding can be remediated — drives the per-row action verb. */
|
|
32
|
-
export type FixKind = "Deterministic" | "Proposed" | "Manual";
|
|
33
|
-
export type PrFinding = {
|
|
34
|
-
id: string;
|
|
35
|
-
/** Versioned diagnostic code (FUI####). */
|
|
36
|
-
code: string;
|
|
37
|
-
/** Rule family the finding belongs to. */
|
|
38
|
-
rule: string;
|
|
39
|
-
severity: FindingSeverity;
|
|
40
|
-
variant: StateVariant;
|
|
41
|
-
/** Introduced by this PR (gates merge) vs. pre-existing legacy debt (never gates). */
|
|
42
|
-
origin: "Introduced" | "Legacy";
|
|
43
|
-
file: string;
|
|
44
|
-
line: number;
|
|
45
|
-
area: string;
|
|
46
|
-
/** Call-sites this single finding-family touches in the PR — the bulk-action rationale. */
|
|
47
|
-
occurrences: number;
|
|
48
|
-
fix: FixKind;
|
|
49
|
-
suggestion: string;
|
|
50
|
-
body: string;
|
|
51
|
-
designerSignal?: string;
|
|
52
|
-
/** Surfaced as a human-readable review thread in the Conversation tab. */
|
|
53
|
-
thread?: boolean;
|
|
54
|
-
};
|
|
55
|
-
export type Reviewer = {
|
|
56
|
-
name: string;
|
|
57
|
-
status: string;
|
|
58
|
-
variant: StateVariant;
|
|
59
|
-
};
|
|
60
|
-
export type ChangedFile = {
|
|
61
|
-
path: string;
|
|
62
|
-
area: string;
|
|
63
|
-
additions: number;
|
|
64
|
-
deletions: number;
|
|
65
|
-
findings: number;
|
|
66
|
-
};
|
|
67
|
-
export declare const prIdPagePullRequest: {
|
|
68
|
-
number: number;
|
|
69
|
-
title: string;
|
|
70
|
-
branch: string;
|
|
71
|
-
author: string;
|
|
72
|
-
coverageBefore: number;
|
|
73
|
-
coverageAfter: number;
|
|
74
|
-
comments: number;
|
|
75
|
-
safeFixes: number;
|
|
76
|
-
};
|
|
77
|
-
export declare const githubChecks: GithubCheck[];
|
|
78
|
-
export declare const impactAreas: ImpactArea[];
|
|
79
|
-
export declare const prFindings: PrFinding[];
|
|
80
|
-
export declare const blockingFindings: PrFinding[];
|
|
81
|
-
export declare const introducedFindings: PrFinding[];
|
|
82
|
-
export declare const threadFindings: PrFinding[];
|
|
83
|
-
export declare const githubComments: GithubComment[];
|
|
84
|
-
export declare const reviewers: Reviewer[];
|
|
85
|
-
export declare const changedFiles: ChangedFile[];
|
|
86
|
-
//# sourceMappingURL=PullRequestsPrototypes.id-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PullRequestsPrototypes.id-data.d.ts","sourceRoot":"","sources":["../../../src/components/Cloud/PullRequestsPrototypes.id-data.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PullRequestsPrototypes.id-page.d.ts","sourceRoot":"","sources":["../../../src/components/Cloud/PullRequestsPrototypes.id-page.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,iBAAiB,4CAWhC"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Accordion } from '.';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Accordion presents vertically stacked, collapsible content sections for
|
|
6
|
-
* progressive disclosure. It is a compound component: compose Accordion.Item,
|
|
7
|
-
* Accordion.Trigger, and Accordion.Content inside the root.
|
|
8
|
-
*/
|
|
9
|
-
const meta = {
|
|
10
|
-
title: 'Layout/Accordion',
|
|
11
|
-
component: Accordion,
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component:
|
|
17
|
-
'Vertically stacked, collapsible content sections for progressive disclosure.',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
argTypes: {
|
|
22
|
-
type: {
|
|
23
|
-
control: 'select',
|
|
24
|
-
options: ['single', 'multiple'],
|
|
25
|
-
description: 'Whether one or multiple items can be open',
|
|
26
|
-
},
|
|
27
|
-
collapsible: {
|
|
28
|
-
control: 'boolean',
|
|
29
|
-
description: 'Whether all items can be closed (single mode only)',
|
|
30
|
-
},
|
|
31
|
-
headingLevel: {
|
|
32
|
-
control: 'select',
|
|
33
|
-
options: ['2', '3', '4', '5', '6'],
|
|
34
|
-
description: 'Semantic heading level for accordion triggers',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
args: {
|
|
38
|
-
type: 'single',
|
|
39
|
-
collapsible: true,
|
|
40
|
-
children: (
|
|
41
|
-
<Accordion.Item value="item-1">
|
|
42
|
-
<Accordion.Trigger>Section</Accordion.Trigger>
|
|
43
|
-
<Accordion.Content>Collapsible content.</Accordion.Content>
|
|
44
|
-
</Accordion.Item>
|
|
45
|
-
),
|
|
46
|
-
},
|
|
47
|
-
} satisfies Meta<typeof Accordion>;
|
|
48
|
-
|
|
49
|
-
export default meta;
|
|
50
|
-
|
|
51
|
-
type Story = StoryObj<typeof meta>;
|
|
52
|
-
|
|
53
|
-
export const Single: Story = {
|
|
54
|
-
render: () => (
|
|
55
|
-
<Accordion type="single" collapsible defaultValue="item-1">
|
|
56
|
-
<Accordion.Item value="item-1">
|
|
57
|
-
<Accordion.Trigger>What is Fragments UI?</Accordion.Trigger>
|
|
58
|
-
<Accordion.Content>
|
|
59
|
-
A React component library built on Base UI primitives.
|
|
60
|
-
</Accordion.Content>
|
|
61
|
-
</Accordion.Item>
|
|
62
|
-
<Accordion.Item value="item-2">
|
|
63
|
-
<Accordion.Trigger>How do I install it?</Accordion.Trigger>
|
|
64
|
-
<Accordion.Content>Install via pnpm add @usefragments/ui.</Accordion.Content>
|
|
65
|
-
</Accordion.Item>
|
|
66
|
-
<Accordion.Item value="item-3">
|
|
67
|
-
<Accordion.Trigger>Is it accessible?</Accordion.Trigger>
|
|
68
|
-
<Accordion.Content>Yes, all components follow WAI-ARIA guidelines.</Accordion.Content>
|
|
69
|
-
</Accordion.Item>
|
|
70
|
-
</Accordion>
|
|
71
|
-
),
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export const Multiple: Story = {
|
|
75
|
-
render: () => (
|
|
76
|
-
<Accordion type="multiple" defaultValue={['features', 'pricing']}>
|
|
77
|
-
<Accordion.Item value="features">
|
|
78
|
-
<Accordion.Trigger>Features</Accordion.Trigger>
|
|
79
|
-
<Accordion.Content>Comprehensive components with theming support.</Accordion.Content>
|
|
80
|
-
</Accordion.Item>
|
|
81
|
-
<Accordion.Item value="pricing">
|
|
82
|
-
<Accordion.Trigger>Pricing</Accordion.Trigger>
|
|
83
|
-
<Accordion.Content>Free and open source, MIT licensed.</Accordion.Content>
|
|
84
|
-
</Accordion.Item>
|
|
85
|
-
<Accordion.Item value="support">
|
|
86
|
-
<Accordion.Trigger>Support</Accordion.Trigger>
|
|
87
|
-
<Accordion.Content>Community support via GitHub.</Accordion.Content>
|
|
88
|
-
</Accordion.Item>
|
|
89
|
-
</Accordion>
|
|
90
|
-
),
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export const WithDisabledItem: Story = {
|
|
94
|
-
render: () => (
|
|
95
|
-
<Accordion type="single" collapsible>
|
|
96
|
-
<Accordion.Item value="available">
|
|
97
|
-
<Accordion.Trigger>Available Section</Accordion.Trigger>
|
|
98
|
-
<Accordion.Content>This section can be expanded and collapsed.</Accordion.Content>
|
|
99
|
-
</Accordion.Item>
|
|
100
|
-
<Accordion.Item value="disabled" disabled>
|
|
101
|
-
<Accordion.Trigger>Disabled Section</Accordion.Trigger>
|
|
102
|
-
<Accordion.Content>This content is not accessible.</Accordion.Content>
|
|
103
|
-
</Accordion.Item>
|
|
104
|
-
</Accordion>
|
|
105
|
-
),
|
|
106
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Alert } from '.';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Alert surfaces contextual feedback messages tied to user actions or system
|
|
6
|
-
* status. It is a compound component: compose Alert.Icon, Alert.Body,
|
|
7
|
-
* Alert.Title, Alert.Content, Alert.Actions, Alert.Action, and Alert.Close.
|
|
8
|
-
*/
|
|
9
|
-
const meta = {
|
|
10
|
-
title: 'Feedback/Alert',
|
|
11
|
-
component: Alert,
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component:
|
|
17
|
-
'Contextual feedback messages for user actions or system status with severity levels.',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
argTypes: {
|
|
22
|
-
severity: {
|
|
23
|
-
control: 'select',
|
|
24
|
-
options: ['info', 'success', 'warning', 'error'],
|
|
25
|
-
description: 'Visual severity level',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
severity: 'info',
|
|
30
|
-
children: (
|
|
31
|
-
<>
|
|
32
|
-
<Alert.Icon />
|
|
33
|
-
<Alert.Body>
|
|
34
|
-
<Alert.Content>Your session will expire in 15 minutes.</Alert.Content>
|
|
35
|
-
</Alert.Body>
|
|
36
|
-
</>
|
|
37
|
-
),
|
|
38
|
-
},
|
|
39
|
-
} satisfies Meta<typeof Alert>;
|
|
40
|
-
|
|
41
|
-
export default meta;
|
|
42
|
-
|
|
43
|
-
type Story = StoryObj<typeof meta>;
|
|
44
|
-
|
|
45
|
-
export const Info: Story = {
|
|
46
|
-
render: () => (
|
|
47
|
-
<Alert severity="info">
|
|
48
|
-
<Alert.Icon />
|
|
49
|
-
<Alert.Body>
|
|
50
|
-
<Alert.Content>
|
|
51
|
-
Your session will expire in 15 minutes. Save your work to avoid losing changes.
|
|
52
|
-
</Alert.Content>
|
|
53
|
-
</Alert.Body>
|
|
54
|
-
</Alert>
|
|
55
|
-
),
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const Success: Story = {
|
|
59
|
-
render: () => (
|
|
60
|
-
<Alert severity="success">
|
|
61
|
-
<Alert.Icon />
|
|
62
|
-
<Alert.Body>
|
|
63
|
-
<Alert.Title>Payment processed</Alert.Title>
|
|
64
|
-
<Alert.Content>Your order #12345 has been confirmed.</Alert.Content>
|
|
65
|
-
</Alert.Body>
|
|
66
|
-
</Alert>
|
|
67
|
-
),
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const Warning: Story = {
|
|
71
|
-
render: () => (
|
|
72
|
-
<Alert severity="warning">
|
|
73
|
-
<Alert.Icon />
|
|
74
|
-
<Alert.Body>
|
|
75
|
-
<Alert.Title>Storage almost full</Alert.Title>
|
|
76
|
-
<Alert.Content>You have used 90% of your storage quota.</Alert.Content>
|
|
77
|
-
</Alert.Body>
|
|
78
|
-
</Alert>
|
|
79
|
-
),
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export const Error: Story = {
|
|
83
|
-
render: () => (
|
|
84
|
-
<Alert severity="error">
|
|
85
|
-
<Alert.Icon />
|
|
86
|
-
<Alert.Body>
|
|
87
|
-
<Alert.Title>Upload failed</Alert.Title>
|
|
88
|
-
<Alert.Content>The file could not be uploaded. Try again.</Alert.Content>
|
|
89
|
-
</Alert.Body>
|
|
90
|
-
</Alert>
|
|
91
|
-
),
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const WithAction: Story = {
|
|
95
|
-
render: () => (
|
|
96
|
-
<Alert severity="warning">
|
|
97
|
-
<Alert.Icon />
|
|
98
|
-
<Alert.Body>
|
|
99
|
-
<Alert.Title>Update available</Alert.Title>
|
|
100
|
-
<Alert.Content>A new version is available with security fixes.</Alert.Content>
|
|
101
|
-
<Alert.Actions>
|
|
102
|
-
<Alert.Action onClick={() => {}}>Update now</Alert.Action>
|
|
103
|
-
</Alert.Actions>
|
|
104
|
-
</Alert.Body>
|
|
105
|
-
</Alert>
|
|
106
|
-
),
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const Dismissible: Story = {
|
|
110
|
-
render: () => (
|
|
111
|
-
<Alert severity="info">
|
|
112
|
-
<Alert.Icon />
|
|
113
|
-
<Alert.Body>
|
|
114
|
-
<Alert.Content>You can customize notification preferences in Settings.</Alert.Content>
|
|
115
|
-
</Alert.Body>
|
|
116
|
-
<Alert.Close />
|
|
117
|
-
</Alert>
|
|
118
|
-
),
|
|
119
|
-
};
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { AppShell } from ".";
|
|
3
|
-
import { Header } from "../Header";
|
|
4
|
-
import { Sidebar } from "../Sidebar";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* AppShell is the full application layout wrapper integrating header, sidebar,
|
|
8
|
-
* main content, and an optional aside panel. It is a compound component:
|
|
9
|
-
* compose AppShell.Header, AppShell.Sidebar, AppShell.Main, and AppShell.Aside.
|
|
10
|
-
*/
|
|
11
|
-
const meta = {
|
|
12
|
-
title: "Layout/AppShell",
|
|
13
|
-
component: AppShell,
|
|
14
|
-
tags: ["autodocs"],
|
|
15
|
-
parameters: {
|
|
16
|
-
docs: {
|
|
17
|
-
description: {
|
|
18
|
-
component:
|
|
19
|
-
"Full layout wrapper integrating sidebar, header, main content, and optional aside panel.",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
layout: {
|
|
25
|
-
control: "select",
|
|
26
|
-
options: ["default", "sidebar", "sidebar-floating", "floating"],
|
|
27
|
-
description: "Structural layout for CSS grid areas",
|
|
28
|
-
},
|
|
29
|
-
bg: {
|
|
30
|
-
control: "text",
|
|
31
|
-
description: "Background color override for the shell container",
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
args: {
|
|
35
|
-
layout: "default",
|
|
36
|
-
children: (
|
|
37
|
-
<>
|
|
38
|
-
<AppShell.Header>
|
|
39
|
-
<Header>
|
|
40
|
-
<Header.Brand>MyApp</Header.Brand>
|
|
41
|
-
</Header>
|
|
42
|
-
</AppShell.Header>
|
|
43
|
-
<AppShell.Sidebar width="200px">
|
|
44
|
-
<Sidebar.Nav>
|
|
45
|
-
<Sidebar.Section label="Menu">
|
|
46
|
-
<Sidebar.Item active>Home</Sidebar.Item>
|
|
47
|
-
</Sidebar.Section>
|
|
48
|
-
</Sidebar.Nav>
|
|
49
|
-
</AppShell.Sidebar>
|
|
50
|
-
<AppShell.Main padding="md">Content</AppShell.Main>
|
|
51
|
-
</>
|
|
52
|
-
),
|
|
53
|
-
},
|
|
54
|
-
} satisfies Meta<typeof AppShell>;
|
|
55
|
-
|
|
56
|
-
export default meta;
|
|
57
|
-
|
|
58
|
-
type Story = StoryObj<typeof meta>;
|
|
59
|
-
|
|
60
|
-
export const DefaultLayout: Story = {
|
|
61
|
-
render: () => (
|
|
62
|
-
<div style={{ height: "360px", overflow: "hidden" }}>
|
|
63
|
-
<AppShell layout="default">
|
|
64
|
-
<AppShell.Header>
|
|
65
|
-
<Header>
|
|
66
|
-
<Header.Brand>MyApp</Header.Brand>
|
|
67
|
-
</Header>
|
|
68
|
-
</AppShell.Header>
|
|
69
|
-
<AppShell.Sidebar width="200px" collapsible="offcanvas">
|
|
70
|
-
<Sidebar.Nav>
|
|
71
|
-
<Sidebar.Section label="Menu">
|
|
72
|
-
<Sidebar.Item active>Home</Sidebar.Item>
|
|
73
|
-
<Sidebar.Item>Analytics</Sidebar.Item>
|
|
74
|
-
<Sidebar.Item>Settings</Sidebar.Item>
|
|
75
|
-
</Sidebar.Section>
|
|
76
|
-
</Sidebar.Nav>
|
|
77
|
-
</AppShell.Sidebar>
|
|
78
|
-
<AppShell.Main padding="md">Header spans full width. Logo is in the header.</AppShell.Main>
|
|
79
|
-
</AppShell>
|
|
80
|
-
</div>
|
|
81
|
-
),
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const SidebarLayout: Story = {
|
|
85
|
-
render: () => (
|
|
86
|
-
<div style={{ height: "360px", overflow: "hidden" }}>
|
|
87
|
-
<AppShell layout="sidebar">
|
|
88
|
-
<AppShell.Header>
|
|
89
|
-
<Header>
|
|
90
|
-
<Header.Trigger />
|
|
91
|
-
</Header>
|
|
92
|
-
</AppShell.Header>
|
|
93
|
-
<AppShell.Sidebar width="200px" collapsible="offcanvas">
|
|
94
|
-
<Sidebar.Header>MyApp</Sidebar.Header>
|
|
95
|
-
<Sidebar.Nav>
|
|
96
|
-
<Sidebar.Section label="Menu">
|
|
97
|
-
<Sidebar.Item active>Home</Sidebar.Item>
|
|
98
|
-
<Sidebar.Item>Analytics</Sidebar.Item>
|
|
99
|
-
</Sidebar.Section>
|
|
100
|
-
</Sidebar.Nav>
|
|
101
|
-
</AppShell.Sidebar>
|
|
102
|
-
<AppShell.Main padding="md">Sidebar is full height. Logo is in the sidebar.</AppShell.Main>
|
|
103
|
-
</AppShell>
|
|
104
|
-
</div>
|
|
105
|
-
),
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const WithAside: Story = {
|
|
109
|
-
render: () => (
|
|
110
|
-
<div style={{ height: "360px", overflow: "hidden" }}>
|
|
111
|
-
<AppShell layout="default">
|
|
112
|
-
<AppShell.Header>
|
|
113
|
-
<Header>
|
|
114
|
-
<Header.Brand>App</Header.Brand>
|
|
115
|
-
</Header>
|
|
116
|
-
</AppShell.Header>
|
|
117
|
-
<AppShell.Sidebar width="180px" collapsible="offcanvas">
|
|
118
|
-
<Sidebar.Nav>
|
|
119
|
-
<Sidebar.Section>
|
|
120
|
-
<Sidebar.Item active>Home</Sidebar.Item>
|
|
121
|
-
</Sidebar.Section>
|
|
122
|
-
</Sidebar.Nav>
|
|
123
|
-
</AppShell.Sidebar>
|
|
124
|
-
<AppShell.Main padding="md">Content with an aside panel on the right.</AppShell.Main>
|
|
125
|
-
<AppShell.Aside width="180px">
|
|
126
|
-
Additional context, filters, or quick actions.
|
|
127
|
-
</AppShell.Aside>
|
|
128
|
-
</AppShell>
|
|
129
|
-
</div>
|
|
130
|
-
),
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export const FloatingMain: Story = {
|
|
134
|
-
render: () => (
|
|
135
|
-
<div style={{ height: "360px", overflow: "hidden" }}>
|
|
136
|
-
<AppShell layout="sidebar">
|
|
137
|
-
<AppShell.Header>
|
|
138
|
-
<Header>
|
|
139
|
-
<Header.Trigger />
|
|
140
|
-
</Header>
|
|
141
|
-
</AppShell.Header>
|
|
142
|
-
<AppShell.Sidebar width="200px" collapsible="offcanvas" variant="floating">
|
|
143
|
-
<Sidebar.Header>MyApp</Sidebar.Header>
|
|
144
|
-
<Sidebar.Nav>
|
|
145
|
-
<Sidebar.Section label="Menu">
|
|
146
|
-
<Sidebar.Item active>Home</Sidebar.Item>
|
|
147
|
-
</Sidebar.Section>
|
|
148
|
-
</Sidebar.Nav>
|
|
149
|
-
</AppShell.Sidebar>
|
|
150
|
-
<AppShell.Main padding="md" variant="floating">
|
|
151
|
-
Main content has rounded corners and visual separation from the sidebar.
|
|
152
|
-
</AppShell.Main>
|
|
153
|
-
</AppShell>
|
|
154
|
-
</div>
|
|
155
|
-
),
|
|
156
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Avatar } from '.';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Avatar is the visual representation of a user or entity. It renders an image
|
|
6
|
-
* when available and falls back to initials or a placeholder icon. Use
|
|
7
|
-
* Avatar.Group to stack multiple avatars in a row.
|
|
8
|
-
*/
|
|
9
|
-
const meta = {
|
|
10
|
-
title: 'Display/Avatar',
|
|
11
|
-
component: Avatar,
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: { component: 'Visual representation of a user or entity.' },
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
argTypes: {
|
|
19
|
-
size: {
|
|
20
|
-
control: 'select',
|
|
21
|
-
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
22
|
-
description: 'Size variant',
|
|
23
|
-
},
|
|
24
|
-
shape: {
|
|
25
|
-
control: 'select',
|
|
26
|
-
options: ['circle', 'square'],
|
|
27
|
-
description: 'Shape variant',
|
|
28
|
-
},
|
|
29
|
-
src: { control: 'text', description: 'Image source URL' },
|
|
30
|
-
name: { control: 'text', description: 'Full name - used to generate initials' },
|
|
31
|
-
initials: { control: 'text', description: 'Fallback initials (1-2 characters)' },
|
|
32
|
-
},
|
|
33
|
-
args: {
|
|
34
|
-
name: 'Jane Doe',
|
|
35
|
-
size: 'md',
|
|
36
|
-
shape: 'circle',
|
|
37
|
-
},
|
|
38
|
-
} satisfies Meta<typeof Avatar>;
|
|
39
|
-
|
|
40
|
-
export default meta;
|
|
41
|
-
|
|
42
|
-
type Story = StoryObj<typeof meta>;
|
|
43
|
-
|
|
44
|
-
export const WithImage: Story = {
|
|
45
|
-
args: {
|
|
46
|
-
src: 'https://i.pravatar.cc/150?u=jane',
|
|
47
|
-
alt: 'Jane Doe',
|
|
48
|
-
name: 'Jane Doe',
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const WithInitials: Story = {
|
|
53
|
-
args: { name: 'John Smith' },
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const Large: Story = {
|
|
57
|
-
args: { name: 'Conan McNicholl', size: 'xl' },
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const Square: Story = {
|
|
61
|
-
args: { name: 'App', shape: 'square' },
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const Group: Story = {
|
|
65
|
-
render: () => (
|
|
66
|
-
<Avatar.Group max={3} size="md">
|
|
67
|
-
<Avatar name="Alice Johnson" />
|
|
68
|
-
<Avatar name="Bob Smith" />
|
|
69
|
-
<Avatar name="Carol Williams" />
|
|
70
|
-
<Avatar name="David Brown" />
|
|
71
|
-
<Avatar name="Eve Davis" />
|
|
72
|
-
</Avatar.Group>
|
|
73
|
-
),
|
|
74
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Badge } from ".";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Badge is a compact label for status, counts, or categorization. It draws
|
|
6
|
-
* attention to metadata without dominating the layout and supports semantic
|
|
7
|
-
* variants, an optional status dot, and a removable affordance.
|
|
8
|
-
*/
|
|
9
|
-
const meta = {
|
|
10
|
-
title: "Display/Badge",
|
|
11
|
-
component: Badge,
|
|
12
|
-
tags: ["autodocs"],
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component: "Compact label for status, counts, or categorization.",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
variant: {
|
|
22
|
-
control: "select",
|
|
23
|
-
options: ["default", "success", "warning", "error", "info", "outline"],
|
|
24
|
-
description: "Visual style indicating severity or category",
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
control: "select",
|
|
28
|
-
options: ["sm", "md", "lg"],
|
|
29
|
-
description: "Badge size",
|
|
30
|
-
},
|
|
31
|
-
dot: {
|
|
32
|
-
control: "boolean",
|
|
33
|
-
description: "Show a colored dot indicator before the label",
|
|
34
|
-
},
|
|
35
|
-
announce: {
|
|
36
|
-
control: "boolean",
|
|
37
|
-
description: 'Opt into role="status" live announcement semantics',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
args: {
|
|
41
|
-
variant: "default",
|
|
42
|
-
size: "md",
|
|
43
|
-
children: "Default",
|
|
44
|
-
},
|
|
45
|
-
} satisfies Meta<typeof Badge>;
|
|
46
|
-
|
|
47
|
-
export default meta;
|
|
48
|
-
|
|
49
|
-
type Story = StoryObj<typeof meta>;
|
|
50
|
-
|
|
51
|
-
export const Default: Story = {
|
|
52
|
-
args: { variant: "default", children: "Default" },
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const Success: Story = {
|
|
56
|
-
args: { variant: "success", children: "Active" },
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const Error: Story = {
|
|
60
|
-
args: { variant: "error", children: "Failed" },
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const SemanticStatus: Story = {
|
|
64
|
-
render: () => (
|
|
65
|
-
<div style={{ display: "flex", gap: "var(--fui-space-2)", alignItems: "center" }}>
|
|
66
|
-
<Badge variant="success" size="lg">
|
|
67
|
-
Delivered
|
|
68
|
-
</Badge>
|
|
69
|
-
<Badge variant="error" size="lg">
|
|
70
|
-
Bounced
|
|
71
|
-
</Badge>
|
|
72
|
-
<Badge variant="warning" size="lg">
|
|
73
|
-
Delayed
|
|
74
|
-
</Badge>
|
|
75
|
-
<Badge variant="info" size="lg">
|
|
76
|
-
Queued
|
|
77
|
-
</Badge>
|
|
78
|
-
</div>
|
|
79
|
-
),
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export const WithDot: Story = {
|
|
83
|
-
args: { variant: "success", dot: true, children: "Online" },
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const Outline: Story = {
|
|
87
|
-
args: { variant: "outline", children: "Outline" },
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export const Removable: Story = {
|
|
91
|
-
args: { variant: "info", children: "React", onRemove: () => {} },
|
|
92
|
-
};
|