@usefragments/ui 1.7.0 → 2.0.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 +54 -66
- package/dist/assets/nav-glyph.cjs +139 -0
- package/dist/assets/nav-glyph.d.ts +28 -0
- package/dist/assets/nav-glyph.d.ts.map +1 -0
- package/dist/assets/nav-glyph.js +139 -0
- package/dist/assets/nav-glyph.module.scss.cjs +71 -0
- package/dist/assets/nav-glyph.module.scss.js +71 -0
- package/dist/assets/ui.css +4975 -4959
- package/dist/blocks/components/StatsCard.d.ts +1 -1
- package/dist/blocks/components/StatsCard.d.ts.map +1 -1
- package/dist/codeblock.cjs +23 -16
- package/dist/codeblock.js +16 -9
- package/dist/colorpicker.cjs +1 -0
- package/dist/colorpicker.js +1 -0
- package/dist/components/Accordion/Accordion.module.scss.cjs +8 -8
- package/dist/components/Accordion/Accordion.module.scss.js +8 -8
- package/dist/components/Alert/Alert.module.scss.cjs +21 -21
- package/dist/components/Alert/Alert.module.scss.js +21 -21
- package/dist/components/Alert/index.cjs +14 -8
- package/dist/components/Alert/index.d.ts +9 -9
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +14 -8
- package/dist/components/AppShell/AppShell.module.scss.cjs +14 -14
- package/dist/components/AppShell/AppShell.module.scss.js +14 -14
- package/dist/components/AppShell/index.cjs +2 -2
- package/dist/components/AppShell/index.js +2 -2
- package/dist/components/Avatar/Avatar.module.scss.cjs +14 -14
- package/dist/components/Avatar/Avatar.module.scss.js +14 -14
- package/dist/components/Badge/Badge.module.scss.cjs +33 -31
- package/dist/components/Badge/Badge.module.scss.js +33 -31
- package/dist/components/Badge/index.cjs +13 -3
- package/dist/components/Badge/index.d.ts +18 -13
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +13 -3
- 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 +11 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +11 -8
- package/dist/components/Breadcrumbs/index.cjs +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/Button.module.scss.cjs +36 -27
- package/dist/components/Button/Button.module.scss.js +36 -27
- package/dist/components/Button/index.cjs +20 -4
- package/dist/components/Button/index.d.ts +18 -10
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +20 -4
- package/dist/components/ButtonGroup/ButtonGroup.module.scss.cjs +15 -15
- package/dist/components/ButtonGroup/ButtonGroup.module.scss.js +15 -15
- package/dist/components/Card/Card.module.scss.cjs +27 -34
- package/dist/components/Card/Card.module.scss.js +27 -34
- package/dist/components/Card/index.cjs +13 -8
- package/dist/components/Card/index.d.ts +23 -25
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +13 -8
- 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/Checkbox/index.cjs +2 -2
- package/dist/components/Checkbox/index.d.ts +4 -6
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Chip/Chip.module.scss.cjs +19 -19
- package/dist/components/Chip/Chip.module.scss.js +19 -19
- package/dist/components/Chip/index.cjs +1 -2
- package/dist/components/Chip/index.d.ts +8 -3
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/index.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +22 -22
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +22 -22
- package/dist/components/CodeBlock/index.d.ts +3 -2
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +9 -9
- package/dist/components/Collapsible/Collapsible.module.scss.js +9 -9
- package/dist/components/ColorPicker/ColorPicker.module.scss.cjs +14 -14
- package/dist/components/ColorPicker/ColorPicker.module.scss.js +14 -14
- package/dist/components/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.module.scss.cjs +21 -21
- package/dist/components/Combobox/Combobox.module.scss.js +21 -21
- package/dist/components/Combobox/index.cjs +9 -5
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +9 -5
- package/dist/components/Command/Command.module.scss.cjs +14 -11
- package/dist/components/Command/Command.module.scss.js +14 -11
- package/dist/components/Command/index.cjs +2 -1
- package/dist/components/Command/index.d.ts +6 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +2 -1
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
- package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
- package/dist/components/ConversationList/index.cjs +2 -2
- package/dist/components/ConversationList/index.js +2 -2
- package/dist/components/DataTable/DataTable.module.scss.cjs +31 -28
- package/dist/components/DataTable/DataTable.module.scss.js +31 -28
- package/dist/components/DataTable/DataTable.virtual.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.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/Dialog/index.cjs +2 -2
- package/dist/components/Dialog/index.d.ts +5 -4
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/Drawer/Drawer.module.scss.cjs +39 -39
- package/dist/components/Drawer/Drawer.module.scss.js +40 -40
- package/dist/components/Drawer/index.cjs +2 -2
- package/dist/components/Drawer/index.d.ts +5 -4
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +2 -2
- 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 +11 -11
- package/dist/components/EmptyState/EmptyState.module.scss.js +11 -11
- package/dist/components/EmptyState/index.cjs +9 -4
- package/dist/components/EmptyState/index.d.ts +8 -5
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +9 -4
- package/dist/components/Field/Field.module.scss.cjs +5 -5
- package/dist/components/Field/Field.module.scss.js +5 -5
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Grid/Grid.module.scss.cjs +54 -54
- package/dist/components/Grid/Grid.module.scss.js +54 -54
- package/dist/components/Header/Header.module.scss.cjs +33 -33
- package/dist/components/Header/Header.module.scss.js +33 -33
- package/dist/components/Icon/Icon.module.scss.cjs +30 -33
- package/dist/components/Icon/Icon.module.scss.js +30 -33
- package/dist/components/Icon/index.cjs +15 -14
- package/dist/components/Icon/index.d.ts +23 -12
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +15 -14
- package/dist/components/IconButton/IconButton.module.scss.cjs +12 -12
- package/dist/components/IconButton/IconButton.module.scss.js +12 -12
- package/dist/components/IconButton/index.d.ts +4 -4
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Input/Input.module.scss.cjs +15 -21
- package/dist/components/Input/Input.module.scss.js +15 -21
- package/dist/components/Input/index.cjs +2 -14
- package/dist/components/Input/index.d.ts +0 -2
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +2 -14
- package/dist/components/Link/Link.module.scss.cjs +24 -16
- package/dist/components/Link/Link.module.scss.js +24 -16
- package/dist/components/Link/index.cjs +13 -2
- package/dist/components/Link/index.d.ts +10 -3
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +13 -2
- package/dist/components/List/List.module.scss.cjs +23 -19
- package/dist/components/List/List.module.scss.js +23 -19
- package/dist/components/List/index.cjs +7 -7
- package/dist/components/List/index.d.ts +10 -7
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +7 -7
- 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/Loading/index.cjs +5 -5
- package/dist/components/Loading/index.d.ts +8 -7
- package/dist/components/Loading/index.d.ts.map +1 -1
- package/dist/components/Loading/index.js +5 -5
- 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 +20 -20
- package/dist/components/Message/Message.module.scss.js +20 -20
- package/dist/components/Message/index.cjs +1 -1
- package/dist/components/Message/index.d.ts +1 -1
- package/dist/components/Message/index.js +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +29 -29
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +29 -29
- package/dist/components/Pagination/Pagination.module.scss.cjs +10 -10
- package/dist/components/Pagination/Pagination.module.scss.js +10 -10
- package/dist/components/Popover/Popover.module.scss.cjs +10 -10
- package/dist/components/Popover/Popover.module.scss.js +10 -10
- package/dist/components/Progress/Progress.module.scss.cjs +28 -25
- package/dist/components/Progress/Progress.module.scss.js +28 -25
- package/dist/components/Progress/index.cjs +21 -12
- package/dist/components/Progress/index.d.ts +10 -6
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +21 -12
- package/dist/components/Prompt/Prompt.module.scss.cjs +30 -30
- package/dist/components/Prompt/Prompt.module.scss.js +30 -30
- package/dist/components/Prompt/index.cjs +7 -7
- package/dist/components/Prompt/index.d.ts +11 -9
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +7 -7
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +20 -17
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +20 -17
- package/dist/components/RadioGroup/index.cjs +10 -5
- package/dist/components/RadioGroup/index.d.ts +11 -7
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +10 -5
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +5 -5
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +5 -5
- package/dist/components/Select/Select.module.scss.cjs +21 -21
- package/dist/components/Select/Select.module.scss.js +21 -21
- package/dist/components/Select/index.cjs +26 -20
- package/dist/components/Select/index.d.ts +5 -5
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +26 -20
- package/dist/components/Separator/Separator.module.scss.cjs +25 -19
- package/dist/components/Separator/Separator.module.scss.js +25 -19
- package/dist/components/Separator/index.cjs +10 -8
- package/dist/components/Separator/index.d.ts +4 -2
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +10 -8
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +43 -43
- package/dist/components/Sidebar/Sidebar.module.scss.js +43 -43
- package/dist/components/Sidebar/index.cjs +3 -3
- package/dist/components/Sidebar/index.js +3 -3
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +46 -46
- package/dist/components/Skeleton/Skeleton.module.scss.js +46 -46
- package/dist/components/Skeleton/index.cjs +7 -7
- package/dist/components/Skeleton/index.d.ts +8 -7
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +7 -7
- package/dist/components/Slider/Slider.module.scss.cjs +12 -12
- package/dist/components/Slider/Slider.module.scss.js +12 -12
- package/dist/components/Switch/Switch.module.scss.cjs +9 -9
- package/dist/components/Switch/Switch.module.scss.js +9 -9
- package/dist/components/Table/Table.module.scss.cjs +15 -15
- package/dist/components/Table/Table.module.scss.js +15 -15
- 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 +1 -1
- package/dist/components/TableOfContents/index.js +1 -1
- package/dist/components/Tabs/Tabs.module.scss.cjs +18 -18
- package/dist/components/Tabs/Tabs.module.scss.js +18 -18
- package/dist/components/Tabs/index.cjs +5 -6
- package/dist/components/Tabs/index.d.ts +8 -6
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +5 -6
- package/dist/components/Text/Text.module.scss.cjs +105 -105
- package/dist/components/Text/Text.module.scss.js +105 -105
- package/dist/components/Text/index.cjs +5 -9
- package/dist/components/Text/index.d.ts +15 -11
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +5 -9
- package/dist/components/Textarea/Textarea.module.scss.cjs +22 -28
- package/dist/components/Textarea/Textarea.module.scss.js +22 -28
- package/dist/components/Textarea/index.cjs +3 -10
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +3 -10
- package/dist/components/Theme/index.cjs +20 -4
- package/dist/components/Theme/index.d.ts +6 -12
- package/dist/components/Theme/index.d.ts.map +1 -1
- package/dist/components/Theme/index.js +20 -4
- package/dist/components/ThemeToggle/ThemeButton.cjs +51 -0
- package/dist/components/ThemeToggle/ThemeButton.d.ts +16 -0
- package/dist/components/ThemeToggle/ThemeButton.d.ts.map +1 -0
- package/dist/components/ThemeToggle/ThemeButton.js +34 -0
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.cjs +6 -9
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.js +6 -9
- package/dist/components/ThemeToggle/icons.cjs +48 -0
- package/dist/components/ThemeToggle/icons.d.ts +10 -0
- package/dist/components/ThemeToggle/icons.d.ts.map +1 -0
- package/dist/components/ThemeToggle/icons.js +48 -0
- package/dist/components/ThemeToggle/index.cjs +5 -74
- package/dist/components/ThemeToggle/index.d.ts +5 -8
- package/dist/components/ThemeToggle/index.d.ts.map +1 -1
- package/dist/components/ThemeToggle/index.js +3 -72
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +18 -15
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +18 -15
- package/dist/components/ThinkingIndicator/index.cjs +7 -8
- package/dist/components/ThinkingIndicator/index.d.ts +6 -5
- package/dist/components/ThinkingIndicator/index.d.ts.map +1 -1
- package/dist/components/ThinkingIndicator/index.js +7 -8
- package/dist/components/Toast/Toast.module.scss.cjs +28 -29
- package/dist/components/Toast/Toast.module.scss.js +29 -30
- package/dist/components/Toast/index.cjs +28 -30
- package/dist/components/Toast/index.d.ts +9 -8
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +28 -30
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +21 -19
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +22 -20
- package/dist/components/ToggleGroup/index.cjs +4 -5
- package/dist/components/ToggleGroup/index.d.ts +7 -6
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +4 -5
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.cjs +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.js +1 -1
- package/dist/data-table-virtual.cjs +3 -2
- package/dist/data-table-virtual.js +3 -2
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.js +1 -1
- package/dist/datepicker.cjs +23 -11
- package/dist/datepicker.js +23 -11
- package/dist/index.cjs +5 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/measurements/generated.cjs +37 -93
- package/dist/measurements/generated.d.ts +37 -92
- package/dist/measurements/generated.d.ts.map +1 -1
- package/dist/measurements/generated.js +37 -93
- package/dist/measurements/index.d.ts +1 -1
- package/dist/measurements/index.d.ts.map +1 -1
- package/dist/utils/seed-derivation.cjs +0 -1
- package/dist/utils/seed-derivation.d.ts +1 -3
- package/dist/utils/seed-derivation.d.ts.map +1 -1
- package/dist/utils/seed-derivation.js +0 -1
- package/dist/utils/theme-presets.cjs +5 -10
- package/dist/utils/theme-presets.d.ts +1 -2
- package/dist/utils/theme-presets.d.ts.map +1 -1
- package/dist/utils/theme-presets.js +5 -10
- package/fragments.json +1 -1
- package/package.json +5 -8
- package/src/assets/nav-glyph.module.scss +166 -0
- package/src/assets/nav-glyph.tsx +188 -0
- package/src/components/Accordion/Accordion.module.scss +5 -3
- package/src/components/Alert/Alert.contract.json +18 -18
- package/src/components/Alert/Alert.module.scss +50 -64
- package/src/components/Alert/index.tsx +24 -17
- package/src/components/AppShell/AppShell.contract.json +7 -7
- package/src/components/AppShell/AppShell.module.scss +49 -17
- package/src/components/AppShell/index.tsx +2 -2
- package/src/components/Avatar/Avatar.module.scss +0 -1
- package/src/components/Badge/Badge.contract.json +58 -22
- package/src/components/Badge/Badge.module.scss +72 -47
- package/src/components/Badge/index.tsx +34 -17
- package/src/components/BentoGrid/BentoGrid.module.scss +4 -8
- package/src/components/Box/Box.module.scss +7 -6
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +15 -5
- package/src/components/Breadcrumbs/index.tsx +5 -1
- package/src/components/Button/Button.module.scss +261 -186
- package/src/components/Button/index.tsx +41 -28
- package/src/components/ButtonGroup/ButtonGroup.contract.json +5 -5
- package/src/components/ButtonGroup/ButtonGroup.module.scss +8 -6
- package/src/components/Card/Card.consumer-fixture.module.scss +5 -2
- package/src/components/Card/Card.module.scss +73 -133
- package/src/components/Card/index.tsx +41 -36
- package/src/components/Chart/Chart.module.scss +6 -5
- package/src/components/Checkbox/Checkbox.contract.json +4 -3
- package/src/components/Checkbox/Checkbox.module.scss +16 -32
- package/src/components/Checkbox/index.tsx +6 -8
- package/src/components/Chip/Chip.contract.json +10 -10
- package/src/components/Chip/Chip.module.scss +23 -22
- package/src/components/Chip/index.tsx +10 -6
- package/src/components/CodeBlock/CodeBlock.module.scss +47 -70
- package/src/components/CodeBlock/index.tsx +23 -16
- package/src/components/Collapsible/Collapsible.module.scss +1 -7
- package/src/components/ColorPicker/ColorPicker.module.scss +20 -13
- package/src/components/ColorPicker/index.tsx +1 -0
- package/src/components/Combobox/Combobox.module.scss +16 -19
- package/src/components/Combobox/index.tsx +10 -1
- package/src/components/Command/Command.contract.json +7 -1
- package/src/components/Command/Command.module.scss +19 -21
- package/src/components/Command/index.tsx +7 -1
- package/src/components/ComponentDefaults/ComponentDefaults.contract.json +91 -0
- package/src/components/ConversationList/ConversationList.module.scss +2 -3
- package/src/components/ConversationList/index.tsx +2 -2
- package/src/components/DataTable/DataTable.module.scss +12 -9
- package/src/components/DataTable/DataTable.virtual.tsx +3 -2
- package/src/components/DataTable/index.tsx +1 -1
- package/src/components/DatePicker/DatePicker.module.scss +32 -42
- package/src/components/DatePicker/index.tsx +18 -7
- package/src/components/Dialog/Dialog.module.scss +23 -29
- package/src/components/Dialog/index.tsx +7 -5
- package/src/components/Drawer/Drawer.contract.json +6 -6
- package/src/components/Drawer/Drawer.module.scss +123 -64
- package/src/components/Drawer/index.tsx +7 -5
- package/src/components/Editor/Editor.contract.json +1 -1
- package/src/components/Editor/Editor.module.scss +26 -13
- package/src/components/EmptyState/EmptyState.contract.json +6 -6
- package/src/components/EmptyState/EmptyState.module.scss +31 -23
- package/src/components/EmptyState/index.tsx +17 -9
- package/src/components/Field/Field.module.scss +2 -1
- package/src/components/Fieldset/Fieldset.module.scss +5 -4
- package/src/components/Form/Form.contract.json +4 -4
- package/src/components/Grid/Grid.module.scss +2 -2
- package/src/components/Header/Header.contract.json +2 -2
- package/src/components/Header/Header.module.scss +24 -36
- package/src/components/Icon/Icon.contract.json +19 -23
- package/src/components/Icon/Icon.module.scss +13 -12
- package/src/components/Icon/index.tsx +31 -31
- package/src/components/IconButton/IconButton.contract.json +8 -8
- package/src/components/IconButton/IconButton.module.scss +13 -4
- package/src/components/IconButton/index.tsx +4 -4
- package/src/components/Input/Input.contract.json +0 -13
- package/src/components/Input/Input.module.scss +4 -54
- package/src/components/Input/index.tsx +2 -18
- package/src/components/Link/Link.contract.json +19 -11
- package/src/components/Link/Link.module.scss +24 -10
- package/src/components/Link/index.tsx +26 -5
- package/src/components/List/List.contract.json +11 -11
- package/src/components/List/List.module.scss +10 -5
- package/src/components/List/index.tsx +17 -13
- package/src/components/Listbox/Listbox.module.scss +14 -20
- package/src/components/Loading/Loading.contract.json +6 -6
- package/src/components/Loading/Loading.module.scss +29 -26
- package/src/components/Loading/index.tsx +13 -12
- package/src/components/Markdown/Markdown.module.scss +2 -1
- package/src/components/Menu/Menu.contract.json +5 -5
- package/src/components/Menu/Menu.module.scss +11 -10
- package/src/components/Message/Message.contract.json +5 -5
- package/src/components/Message/Message.module.scss +8 -6
- package/src/components/Message/index.tsx +2 -2
- package/src/components/NavigationMenu/NavigationMenu.module.scss +22 -67
- package/src/components/Pagination/Pagination.module.scss +7 -14
- package/src/components/Popover/Popover.contract.json +4 -4
- package/src/components/Popover/Popover.module.scss +24 -23
- package/src/components/Progress/Progress.contract.json +11 -11
- package/src/components/Progress/Progress.module.scss +13 -8
- package/src/components/Progress/index.tsx +34 -16
- package/src/components/Prompt/Prompt.contract.json +12 -12
- package/src/components/Prompt/Prompt.module.scss +40 -47
- package/src/components/Prompt/index.tsx +17 -15
- package/src/components/RadioGroup/RadioGroup.contract.json +6 -4
- package/src/components/RadioGroup/RadioGroup.module.scss +38 -32
- package/src/components/RadioGroup/index.tsx +23 -10
- package/src/components/ScrollArea/ScrollArea.module.scss +30 -33
- package/src/components/Select/Select.module.scss +19 -18
- package/src/components/Select/index.tsx +26 -24
- package/src/components/Separator/Separator.contract.json +10 -10
- package/src/components/Separator/Separator.module.scss +24 -40
- package/src/components/Separator/index.tsx +16 -11
- package/src/components/Sidebar/Sidebar.contract.json +1 -1
- package/src/components/Sidebar/Sidebar.module.scss +92 -95
- package/src/components/Sidebar/index.tsx +3 -3
- package/src/components/Skeleton/Skeleton.contract.json +9 -9
- package/src/components/Skeleton/Skeleton.module.scss +23 -16
- package/src/components/Skeleton/index.tsx +16 -15
- package/src/components/Slider/Slider.module.scss +6 -19
- package/src/components/Stack/Stack.contract.json +1 -1
- package/src/components/Stack/Stack.module.scss +13 -12
- package/src/components/Switch/Switch.module.scss +44 -35
- package/src/components/Table/Table.module.scss +9 -13
- package/src/components/TableOfContents/TableOfContents.module.scss +12 -18
- package/src/components/TableOfContents/index.tsx +1 -1
- package/src/components/Tabs/Tabs.contract.json +14 -14
- package/src/components/Tabs/Tabs.module.scss +27 -31
- package/src/components/Tabs/index.tsx +15 -12
- package/src/components/Text/Text.contract.json +36 -14
- package/src/components/Text/Text.module.scss +19 -20
- package/src/components/Text/index.tsx +23 -21
- package/src/components/Textarea/Textarea.contract.json +0 -13
- package/src/components/Textarea/Textarea.module.scss +24 -52
- package/src/components/Textarea/index.tsx +3 -14
- package/src/components/Theme/Theme.contract.json +9 -8
- package/src/components/Theme/index.tsx +39 -12
- package/src/components/ThemeToggle/ThemeButton.tsx +49 -0
- package/src/components/ThemeToggle/ThemeToggle.module.scss +21 -44
- package/src/components/ThemeToggle/icons.tsx +46 -0
- package/src/components/ThemeToggle/index.tsx +8 -90
- package/src/components/ThinkingIndicator/ThinkingIndicator.contract.json +11 -10
- package/src/components/ThinkingIndicator/ThinkingIndicator.module.scss +9 -7
- package/src/components/ThinkingIndicator/index.tsx +12 -14
- package/src/components/Toast/Toast.contract.json +29 -13
- package/src/components/Toast/Toast.module.scss +49 -104
- package/src/components/Toast/index.tsx +39 -34
- package/src/components/ToggleGroup/ToggleGroup.contract.json +13 -13
- package/src/components/ToggleGroup/ToggleGroup.module.scss +16 -46
- package/src/components/ToggleGroup/index.tsx +11 -11
- package/src/components/Tooltip/Tooltip.contract.json +3 -3
- package/src/components/Tooltip/Tooltip.module.scss +16 -10
- package/src/components/VisuallyHidden/VisuallyHidden.module.scss +4 -14
- package/src/index.ts +14 -10
- package/src/measurements/MeasurementTargets.module.scss +6 -7
- package/src/measurements/generated.ts +38 -96
- package/src/measurements/index.ts +0 -1
- package/src/measurements/measurements.json +37 -116
- package/src/recipes/_action.scss +4 -4
- package/src/recipes/_boolean-range.scss +9 -5
- package/src/recipes/_feedback.scss +17 -16
- package/src/recipes/_field.scss +28 -20
- package/src/recipes/_navigation.scss +84 -29
- package/src/recipes/_overlay.scss +143 -43
- package/src/recipes/_popup.scss +46 -36
- package/src/recipes/_prose.scss +35 -23
- package/src/recipes/_representation.scss +10 -9
- package/src/recipes/_segmented.scss +1 -1
- package/src/recipes/_table-chrome.scss +27 -16
- package/src/recipes/_target.scss +2 -4
- package/src/recipes/_typography.scss +10 -0
- package/src/styles/globals.scss +14 -9
- package/src/tokens/_component-properties.scss +19 -1
- package/src/tokens/_computed.scss +27 -33
- package/src/tokens/_measurements.catalog.generated.css +58 -45
- package/src/tokens/_measurements.generated.scss +107 -250
- package/src/tokens/_mixins.scss +42 -40
- package/src/tokens/_palettes.scss +1 -1
- package/src/tokens/_property-registrations.scss +9 -0
- package/src/tokens/_seeds.scss +1 -12
- package/src/tokens/_variables.scss +71 -59
- package/src/utils/seed-derivation.ts +1 -8
- package/src/utils/theme-presets.ts +5 -12
- package/dist/blocks/AccountSettings.block.d.ts +0 -3
- package/dist/blocks/AccountSettings.block.d.ts.map +0 -1
- package/dist/blocks/ActivityFeedSkeleton.block.d.ts +0 -3
- package/dist/blocks/ActivityFeedSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/BlogEditor.block.d.ts +0 -3
- package/dist/blocks/BlogEditor.block.d.ts.map +0 -1
- package/dist/blocks/ChatInterface.block.d.ts +0 -3
- package/dist/blocks/ChatInterface.block.d.ts.map +0 -1
- package/dist/blocks/ChatMessages.block.d.ts +0 -3
- package/dist/blocks/ChatMessages.block.d.ts.map +0 -1
- package/dist/blocks/CheckoutForm.block.d.ts +0 -3
- package/dist/blocks/CheckoutForm.block.d.ts.map +0 -1
- package/dist/blocks/CommandPalette.block.d.ts +0 -3
- package/dist/blocks/CommandPalette.block.d.ts.map +0 -1
- package/dist/blocks/ContactForm.block.d.ts +0 -3
- package/dist/blocks/ContactForm.block.d.ts.map +0 -1
- package/dist/blocks/DashboardPage.block.d.ts +0 -3
- package/dist/blocks/DashboardPage.block.d.ts.map +0 -1
- package/dist/blocks/DashboardSkeleton.block.d.ts +0 -3
- package/dist/blocks/DashboardSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/DataTable.block.d.ts +0 -3
- package/dist/blocks/DataTable.block.d.ts.map +0 -1
- package/dist/blocks/EmptyState.block.d.ts +0 -3
- package/dist/blocks/EmptyState.block.d.ts.map +0 -1
- package/dist/blocks/FAQSection.block.d.ts +0 -3
- package/dist/blocks/FAQSection.block.d.ts.map +0 -1
- package/dist/blocks/FeatureGrid.block.d.ts +0 -3
- package/dist/blocks/FeatureGrid.block.d.ts.map +0 -1
- package/dist/blocks/HeroSection.block.d.ts +0 -3
- package/dist/blocks/HeroSection.block.d.ts.map +0 -1
- package/dist/blocks/NavigationHeader.block.d.ts +0 -3
- package/dist/blocks/NavigationHeader.block.d.ts.map +0 -1
- package/dist/blocks/PaginatedTable.block.d.ts +0 -3
- package/dist/blocks/PaginatedTable.block.d.ts.map +0 -1
- package/dist/blocks/PricingComparison.block.d.ts +0 -3
- package/dist/blocks/PricingComparison.block.d.ts.map +0 -1
- package/dist/blocks/ProductCard.block.d.ts +0 -3
- package/dist/blocks/ProductCard.block.d.ts.map +0 -1
- package/dist/blocks/RegistrationForm.block.d.ts +0 -3
- package/dist/blocks/RegistrationForm.block.d.ts.map +0 -1
- package/dist/blocks/SettingsDrawer.block.d.ts +0 -3
- package/dist/blocks/SettingsDrawer.block.d.ts.map +0 -1
- package/dist/blocks/SettingsPanel.block.d.ts +0 -3
- package/dist/blocks/SettingsPanel.block.d.ts.map +0 -1
- package/dist/blocks/ShoppingCart.block.d.ts +0 -3
- package/dist/blocks/ShoppingCart.block.d.ts.map +0 -1
- package/dist/blocks/StatsCardSkeleton.block.d.ts +0 -3
- package/dist/blocks/StatsCardSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/TableSkeleton.block.d.ts +0 -3
- package/dist/blocks/TableSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/ThinkingStates.block.d.ts +0 -3
- package/dist/blocks/ThinkingStates.block.d.ts.map +0 -1
- package/dist/components/Toggle/index.d.ts +0 -3
- package/dist/components/Toggle/index.d.ts.map +0 -1
- package/src/components/Toggle/index.ts +0 -7
- package/src/tokens/_density.scss +0 -85
|
@@ -8,11 +8,14 @@ import styles from "./Separator.module.scss";
|
|
|
8
8
|
// Types
|
|
9
9
|
// ============================================
|
|
10
10
|
|
|
11
|
+
export type SeparatorGap = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
|
|
11
13
|
export interface SeparatorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
12
14
|
/** Orientation of the separator */
|
|
13
15
|
orientation?: "horizontal" | "vertical";
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
+
/** Breathing room around the rule
|
|
17
|
+
* @default "none" */
|
|
18
|
+
gap?: SeparatorGap;
|
|
16
19
|
/** Softer visual appearance */
|
|
17
20
|
soft?: boolean;
|
|
18
21
|
/** Optional label text (creates a labeled divider) */
|
|
@@ -20,14 +23,16 @@ export interface SeparatorProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
// ============================================
|
|
23
|
-
//
|
|
26
|
+
// Gap class map
|
|
24
27
|
// ============================================
|
|
25
28
|
|
|
26
|
-
const
|
|
27
|
-
none: styles.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const GAP_CLASS: Record<SeparatorGap, string> = {
|
|
30
|
+
none: styles.gapNone,
|
|
31
|
+
xs: styles.gapXs,
|
|
32
|
+
sm: styles.gapSm,
|
|
33
|
+
md: styles.gapMd,
|
|
34
|
+
lg: styles.gapLg,
|
|
35
|
+
xl: styles.gapXl,
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
// ============================================
|
|
@@ -37,7 +42,7 @@ const spacingClasses = {
|
|
|
37
42
|
const SeparatorRoot = React.forwardRef<HTMLDivElement, SeparatorProps>(function Separator(
|
|
38
43
|
{
|
|
39
44
|
orientation = "horizontal",
|
|
40
|
-
|
|
45
|
+
gap = "none",
|
|
41
46
|
soft = false,
|
|
42
47
|
label,
|
|
43
48
|
className,
|
|
@@ -51,7 +56,7 @@ const SeparatorRoot = React.forwardRef<HTMLDivElement, SeparatorProps>(function
|
|
|
51
56
|
const classes = [
|
|
52
57
|
styles.separator,
|
|
53
58
|
styles.withLabel,
|
|
54
|
-
|
|
59
|
+
GAP_CLASS[gap],
|
|
55
60
|
soft && styles.soft,
|
|
56
61
|
className,
|
|
57
62
|
]
|
|
@@ -76,7 +81,7 @@ const SeparatorRoot = React.forwardRef<HTMLDivElement, SeparatorProps>(function
|
|
|
76
81
|
const classes = [
|
|
77
82
|
styles.separator,
|
|
78
83
|
orientation === "horizontal" ? styles.horizontal : styles.vertical,
|
|
79
|
-
|
|
84
|
+
GAP_CLASS[gap],
|
|
80
85
|
soft && styles.soft,
|
|
81
86
|
className,
|
|
82
87
|
]
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
{
|
|
158
158
|
"name": "With Provider & External Trigger",
|
|
159
159
|
"description": "useSidebar drives the sidebar from anywhere, plus Cmd/Ctrl+B.",
|
|
160
|
-
"code": "function App() {\n return (\n <SidebarProvider>\n <Stack direction=\"row\" gap=\"lg\" align=\"start\">\n <Sidebar>\n <Sidebar.Header>\n <Logo />\n <span>Acme App</span>\n </Sidebar.Header>\n <Sidebar.Nav>\n <Sidebar.Section>\n <Sidebar.Item icon={<HomeIcon />} active>Dashboard</Sidebar.Item>\n <Sidebar.Item icon={<ChartIcon />}>Analytics</Sidebar.Item>\n </Sidebar.Section>\n </Sidebar.Nav>\n </Sidebar>\n <MainContent />\n </Stack>\n </SidebarProvider>\n );\n}\n\nfunction MainContent() {\n const { toggleSidebar, state } = useSidebar();\n\n return (\n <Stack gap=\"sm\" align=\"start\">\n <Text
|
|
160
|
+
"code": "function App() {\n return (\n <SidebarProvider>\n <Stack direction=\"row\" gap=\"lg\" align=\"start\">\n <Sidebar>\n <Sidebar.Header>\n <Logo />\n <span>Acme App</span>\n </Sidebar.Header>\n <Sidebar.Nav>\n <Sidebar.Section>\n <Sidebar.Item icon={<HomeIcon />} active>Dashboard</Sidebar.Item>\n <Sidebar.Item icon={<ChartIcon />}>Analytics</Sidebar.Item>\n </Sidebar.Section>\n </Sidebar.Nav>\n </Sidebar>\n <MainContent />\n </Stack>\n </SidebarProvider>\n );\n}\n\nfunction MainContent() {\n const { toggleSidebar, state } = useSidebar();\n\n return (\n <Stack gap=\"sm\" align=\"start\">\n <Text scale=\"sm\" color=\"secondary\">State: {state}</Text>\n <Button size=\"sm\" variant=\"soft\" onClick={toggleSidebar}>\n Toggle sidebar\n </Button>\n </Stack>\n );\n}"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "With asChild (Polymorphic)",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
@use "../../tokens/measurements.generated" as measurements;
|
|
1
2
|
@use "../../tokens/variables" as *;
|
|
2
3
|
@use "../../tokens/mixins" as *;
|
|
3
4
|
@use "../../recipes/action" as action;
|
|
4
5
|
@use "../../recipes/navigation" as navigation;
|
|
6
|
+
@use "../../recipes/overlay" as overlay;
|
|
5
7
|
@use "../../recipes/target" as target;
|
|
6
8
|
|
|
9
|
+
$_gutter: navigation.gutter();
|
|
10
|
+
$_leading-box: navigation.leading-box();
|
|
11
|
+
$_active-rail: navigation.active-rail();
|
|
12
|
+
|
|
7
13
|
.root {
|
|
8
14
|
@include navigation.properties;
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
--fui-sidebar-gutter: var(--fui-navigation-gutter);
|
|
13
|
-
--fui-sidebar-row-gap: var(--fui-navigation-content-gap);
|
|
14
|
-
--fui-sidebar-row-padding-x: var(--fui-navigation-inline-inset);
|
|
15
|
-
--fui-sidebar-icon-size: var(--fui-icon-md, #{$fui-icon-md});
|
|
16
|
-
--fui-sidebar-leading-size: var(--fui-navigation-leading-box);
|
|
17
|
-
--fui-sidebar-active-dot-size: var(--fui-navigation-active-dot);
|
|
16
|
+
// Folded reads of the public `--fui-sidebar-item-*` hooks (declared in
|
|
17
|
+
// tokens/_variables.scss); every read below carries the Sass twin.
|
|
18
18
|
--fui-sidebar-muted: var(
|
|
19
19
|
--fui-sidebar-item-color,
|
|
20
20
|
var(--fui-text-secondary, #{$fui-text-secondary})
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
width: var(--sidebar-width);
|
|
37
37
|
height: 100%;
|
|
38
38
|
background: var(--fui-sidebar-bg, var(--fui-bg-primary, #{$fui-bg-primary}));
|
|
39
|
-
border-inline-end: var(--fui-stroke-hairline,
|
|
39
|
+
border-inline-end: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid
|
|
40
40
|
var(--fui-sidebar-border, var(--fui-border-default, #{$fui-border-default}));
|
|
41
41
|
transition: width var(--fui-transition-normal, $fui-transition-normal);
|
|
42
42
|
overflow: hidden;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.positionRight {
|
|
55
|
-
border-inline-start: var(--fui-stroke-hairline,
|
|
55
|
+
border-inline-start: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid
|
|
56
56
|
var(--fui-sidebar-border, var(--fui-border-default, #{$fui-border-default}));
|
|
57
57
|
border-inline-end: 0;
|
|
58
58
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
.header,
|
|
64
64
|
.nav,
|
|
65
65
|
.footer {
|
|
66
|
-
padding: var(--fui-navigation-gutter);
|
|
66
|
+
padding: var(--fui-navigation-gutter, #{$_gutter});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.header,
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
|
|
84
84
|
.item {
|
|
85
85
|
justify-content: center;
|
|
86
|
-
padding: 0;
|
|
87
|
-
min-height: var(--fui-
|
|
86
|
+
padding: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
87
|
+
min-height: var(--fui-navigation-row-track, #{navigation.row-track()});
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.itemIcon {
|
|
91
|
-
margin: 0;
|
|
91
|
+
margin: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
92
92
|
}
|
|
93
93
|
.collapseToggle {
|
|
94
94
|
margin: 0 auto;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
position: fixed;
|
|
129
129
|
top: 0;
|
|
130
130
|
left: 0;
|
|
131
|
-
z-index:
|
|
131
|
+
z-index: var(--fui-overlay-layer-modal, #{$fui-overlay-layer-modal});
|
|
132
132
|
transform: translateX(-100%);
|
|
133
133
|
transition: transform var(--fui-transition-normal, $fui-transition-normal);
|
|
134
134
|
box-shadow: var(--fui-shadow-md, $fui-shadow-md);
|
|
@@ -147,8 +147,7 @@
|
|
|
147
147
|
.header {
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
|
-
|
|
151
|
-
padding: var(--fui-sidebar-gutter) var(--fui-sidebar-gutter) 0;
|
|
150
|
+
padding: var(--fui-navigation-gutter, #{$_gutter}) var(--fui-navigation-gutter, #{$_gutter}) 0;
|
|
152
151
|
flex-shrink: 0;
|
|
153
152
|
min-height: 0;
|
|
154
153
|
}
|
|
@@ -159,7 +158,8 @@
|
|
|
159
158
|
display: flex;
|
|
160
159
|
flex-direction: column;
|
|
161
160
|
overflow: hidden;
|
|
162
|
-
padding: var(--fui-
|
|
161
|
+
padding: var(--fui-navigation-gutter, #{$_gutter}) var(--fui-navigation-gutter, #{$_gutter})
|
|
162
|
+
var(--fui-space-3, $fui-space-3);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.navScrollArea {
|
|
@@ -168,9 +168,7 @@
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.section:not(:first-child) {
|
|
171
|
-
|
|
172
|
-
// this up via --fui-sidebar-section-gap without touching the raw scale.
|
|
173
|
-
margin-top: var(--fui-sidebar-section-gap, var(--fui-raw-space-16, 16px));
|
|
171
|
+
margin-top: var(--fui-raw-space-16, #{measurements.raw-space(16)});
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
.sectionHeader {
|
|
@@ -178,28 +176,31 @@
|
|
|
178
176
|
|
|
179
177
|
display: flex;
|
|
180
178
|
align-items: center;
|
|
181
|
-
|
|
179
|
+
// Items carry a hairline border inside the same inset; the header mirrors
|
|
180
|
+
// it so the group label and the item glyphs below share one left edge.
|
|
181
|
+
padding-inline: calc(
|
|
182
|
+
var(--fui-navigation-inline-inset, #{$_gutter}) +
|
|
183
|
+
var(--fui-stroke-hairline, #{$fui-stroke-hairline})
|
|
184
|
+
);
|
|
185
|
+
padding-block-end: var(--fui-raw-space-4, #{measurements.raw-space(4)});
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
.sectionTrigger {
|
|
185
189
|
flex: 1;
|
|
186
190
|
}
|
|
187
191
|
|
|
188
|
-
//
|
|
189
|
-
//
|
|
190
|
-
//
|
|
191
|
-
// from the nav items beneath them, so groups can't be mistaken for links.
|
|
192
|
+
// A group name is not a row: it is heavier and fainter than the items
|
|
193
|
+
// beneath it, sits on a shorter track with no hover surface, carries no
|
|
194
|
+
// glyph, and keeps its natural case.
|
|
192
195
|
.sectionLabel {
|
|
193
196
|
flex: 1;
|
|
194
197
|
min-width: 0;
|
|
195
|
-
font-size: var(--fui-sidebar-section-label-size,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
var(--fui-font-weight-medium, #{$fui-font-weight-medium})
|
|
202
|
-
);
|
|
198
|
+
font-size: var(--fui-sidebar-section-label-size, #{$fui-font-size-xs});
|
|
199
|
+
font-weight: var(--fui-font-weight-semibold, #{$fui-font-weight-semibold});
|
|
200
|
+
color: var(--fui-sidebar-faint, #{$fui-text-tertiary});
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
overflow: hidden;
|
|
203
|
+
text-overflow: ellipsis;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
.sectionActionWrapper {
|
|
@@ -213,11 +214,11 @@
|
|
|
213
214
|
@include action.icon-only("micro");
|
|
214
215
|
@include target.hit-area("compact");
|
|
215
216
|
|
|
216
|
-
border-radius: var(--fui-
|
|
217
|
-
color: var(--fui-sidebar-faint);
|
|
217
|
+
border-radius: var(--fui-radius-full, #{$fui-radius-full});
|
|
218
|
+
color: var(--fui-sidebar-faint, #{$fui-text-tertiary});
|
|
218
219
|
|
|
219
220
|
&:hover {
|
|
220
|
-
background-color: var(--fui-sidebar-hover-bg);
|
|
221
|
+
background-color: var(--fui-sidebar-hover-bg, #{$fui-bg-hover});
|
|
221
222
|
color: var(--fui-text-secondary, $fui-text-secondary);
|
|
222
223
|
}
|
|
223
224
|
|
|
@@ -229,11 +230,11 @@
|
|
|
229
230
|
.sectionList,
|
|
230
231
|
.submenu {
|
|
231
232
|
list-style: none;
|
|
232
|
-
margin: 0;
|
|
233
|
-
padding: 0;
|
|
233
|
+
margin: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
234
|
+
padding: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
234
235
|
display: flex;
|
|
235
236
|
flex-direction: column;
|
|
236
|
-
gap: var(--fui-
|
|
237
|
+
gap: var(--fui-raw-space-2, #{measurements.raw-space(2)});
|
|
237
238
|
}
|
|
238
239
|
|
|
239
240
|
.sectionCollapsible .sectionTrigger {
|
|
@@ -243,8 +244,8 @@
|
|
|
243
244
|
align-items: center;
|
|
244
245
|
justify-content: flex-start;
|
|
245
246
|
width: 100%;
|
|
246
|
-
padding: 0;
|
|
247
|
-
border-radius: var(--fui-
|
|
247
|
+
padding: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
248
|
+
border-radius: var(--fui-radius-full, #{$fui-radius-full});
|
|
248
249
|
background: transparent;
|
|
249
250
|
|
|
250
251
|
&:hover {
|
|
@@ -261,9 +262,9 @@
|
|
|
261
262
|
|
|
262
263
|
// Trailing caret reads as a quiet disclosure twistie.
|
|
263
264
|
svg {
|
|
264
|
-
width: var(--fui-raw-space-10,
|
|
265
|
-
height: var(--fui-raw-space-10,
|
|
266
|
-
color: var(--fui-sidebar-faint);
|
|
265
|
+
width: var(--fui-raw-space-10, #{measurements.raw-space(10)});
|
|
266
|
+
height: var(--fui-raw-space-10, #{measurements.raw-space(10)});
|
|
267
|
+
color: var(--fui-sidebar-faint, #{$fui-text-tertiary});
|
|
267
268
|
}
|
|
268
269
|
}
|
|
269
270
|
|
|
@@ -286,27 +287,25 @@
|
|
|
286
287
|
display: flex;
|
|
287
288
|
align-items: center;
|
|
288
289
|
width: 100%;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
border-radius: var(--fui-sidebar-row-radius);
|
|
293
|
-
color: var(--fui-sidebar-muted);
|
|
290
|
+
border: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid transparent;
|
|
291
|
+
border-radius: var(--fui-sidebar-item-radius, #{$fui-radius-full});
|
|
292
|
+
color: var(--fui-sidebar-muted, #{$fui-text-secondary});
|
|
294
293
|
text-decoration: none;
|
|
295
294
|
font-weight: var(--fui-font-weight-normal, $fui-font-weight-normal);
|
|
296
|
-
outline-offset: calc(-1 * var(--fui-stroke-hairline,
|
|
295
|
+
outline-offset: calc(-1 * var(--fui-stroke-hairline, #{$fui-stroke-hairline}));
|
|
297
296
|
transition:
|
|
298
297
|
background-color var(--fui-transition-fast, $fui-transition-fast),
|
|
299
298
|
border-color var(--fui-transition-fast, $fui-transition-fast),
|
|
300
299
|
color var(--fui-transition-fast, $fui-transition-fast);
|
|
301
300
|
|
|
302
301
|
&:hover:not(.itemDisabled) {
|
|
303
|
-
background-color: var(--fui-sidebar-hover-bg);
|
|
302
|
+
background-color: var(--fui-sidebar-hover-bg, #{$fui-bg-hover});
|
|
304
303
|
color: var(--fui-sidebar-item-hover-color, var(--fui-text-primary, #{$fui-text-primary}));
|
|
305
304
|
text-decoration: none;
|
|
306
305
|
}
|
|
307
306
|
|
|
308
307
|
&:active:not(.itemDisabled) {
|
|
309
|
-
background-color: var(--fui-sidebar-active-bg);
|
|
308
|
+
background-color: var(--fui-sidebar-active-bg, #{$fui-bg-active});
|
|
310
309
|
}
|
|
311
310
|
}
|
|
312
311
|
|
|
@@ -315,14 +314,14 @@
|
|
|
315
314
|
.itemActive {
|
|
316
315
|
@include navigation.active-indicator("start");
|
|
317
316
|
|
|
318
|
-
background-color: var(--fui-sidebar-active-bg);
|
|
319
|
-
border-color: var(--fui-sidebar-active-border);
|
|
317
|
+
background-color: var(--fui-sidebar-active-bg, #{$fui-bg-active});
|
|
318
|
+
border-color: var(--fui-sidebar-active-border, transparent);
|
|
320
319
|
color: var(--fui-sidebar-item-active-color, var(--fui-text-primary, #{$fui-text-primary}));
|
|
321
320
|
font-weight: var(--fui-font-weight-medium, $fui-font-weight-medium);
|
|
322
321
|
|
|
323
322
|
&::before {
|
|
324
|
-
border-start-end-radius: var(--fui-navigation-active-rail);
|
|
325
|
-
border-end-end-radius: var(--fui-navigation-active-rail);
|
|
323
|
+
border-start-end-radius: var(--fui-navigation-active-rail, #{$_active-rail});
|
|
324
|
+
border-end-end-radius: var(--fui-navigation-active-rail, #{$_active-rail});
|
|
326
325
|
background: var(
|
|
327
326
|
--fui-sidebar-item-active-indicator,
|
|
328
327
|
var(--fui-color-accent, #{$fui-color-accent})
|
|
@@ -331,8 +330,8 @@
|
|
|
331
330
|
|
|
332
331
|
&.item:hover,
|
|
333
332
|
&.item:active {
|
|
334
|
-
background-color: var(--fui-sidebar-active-bg);
|
|
335
|
-
border-color: var(--fui-sidebar-active-border);
|
|
333
|
+
background-color: var(--fui-sidebar-active-bg, #{$fui-bg-active});
|
|
334
|
+
border-color: var(--fui-sidebar-active-border, transparent);
|
|
336
335
|
color: var(--fui-sidebar-item-active-color, var(--fui-text-primary, #{$fui-text-primary}));
|
|
337
336
|
text-decoration: none;
|
|
338
337
|
}
|
|
@@ -348,7 +347,8 @@
|
|
|
348
347
|
@include navigation.active-indicator("end");
|
|
349
348
|
|
|
350
349
|
padding-inline-end: calc(
|
|
351
|
-
var(--fui-navigation-inline-inset) * 2 +
|
|
350
|
+
var(--fui-navigation-inline-inset, #{$_gutter}) * 2 +
|
|
351
|
+
var(--fui-navigation-active-dot, #{navigation.active-dot()})
|
|
352
352
|
);
|
|
353
353
|
|
|
354
354
|
&::before {
|
|
@@ -365,8 +365,7 @@
|
|
|
365
365
|
|
|
366
366
|
.itemDisabled,
|
|
367
367
|
.subItemDisabled {
|
|
368
|
-
|
|
369
|
-
cursor: not-allowed;
|
|
368
|
+
@include disabled-state;
|
|
370
369
|
}
|
|
371
370
|
|
|
372
371
|
.itemIcon {
|
|
@@ -375,15 +374,15 @@
|
|
|
375
374
|
display: flex;
|
|
376
375
|
align-items: center;
|
|
377
376
|
justify-content: center;
|
|
378
|
-
color: var(--fui-sidebar-faint);
|
|
377
|
+
color: var(--fui-sidebar-faint, #{$fui-text-tertiary});
|
|
379
378
|
|
|
380
379
|
svg {
|
|
381
|
-
width: var(--fui-
|
|
382
|
-
height: var(--fui-
|
|
380
|
+
width: var(--fui-navigation-leading-box, #{$_leading-box});
|
|
381
|
+
height: var(--fui-navigation-leading-box, #{$_leading-box});
|
|
383
382
|
}
|
|
384
383
|
|
|
385
384
|
.item:hover:not(.itemDisabled) & {
|
|
386
|
-
color: var(--fui-sidebar-muted);
|
|
385
|
+
color: var(--fui-sidebar-muted, #{$fui-text-secondary});
|
|
387
386
|
}
|
|
388
387
|
|
|
389
388
|
.itemActive & {
|
|
@@ -397,7 +396,7 @@
|
|
|
397
396
|
white-space: nowrap;
|
|
398
397
|
overflow: hidden;
|
|
399
398
|
text-overflow: ellipsis;
|
|
400
|
-
transform: translateY(var(--fui-navigation-label-optical-y));
|
|
399
|
+
transform: translateY(var(--fui-navigation-label-optical-y, #{navigation.label-optical-y()}));
|
|
401
400
|
}
|
|
402
401
|
|
|
403
402
|
// A row whose label is a block rather than a link: a title over a status line,
|
|
@@ -422,14 +421,14 @@
|
|
|
422
421
|
display: flex;
|
|
423
422
|
align-items: center;
|
|
424
423
|
justify-content: center;
|
|
425
|
-
width: var(--fui-
|
|
426
|
-
height: var(--fui-
|
|
424
|
+
width: var(--fui-icon-md, #{$fui-icon-md});
|
|
425
|
+
height: var(--fui-icon-md, #{$fui-icon-md});
|
|
427
426
|
flex-shrink: 0;
|
|
428
427
|
transition: transform var(--fui-transition-fast, $fui-transition-fast);
|
|
429
428
|
|
|
430
429
|
svg {
|
|
431
|
-
width: var(--fui-
|
|
432
|
-
height: var(--fui-
|
|
430
|
+
width: var(--fui-icon-md, #{$fui-icon-md});
|
|
431
|
+
height: var(--fui-icon-md, #{$fui-icon-md});
|
|
433
432
|
}
|
|
434
433
|
}
|
|
435
434
|
|
|
@@ -438,7 +437,7 @@
|
|
|
438
437
|
}
|
|
439
438
|
|
|
440
439
|
.submenu {
|
|
441
|
-
padding-inline-start: var(--fui-raw-space-24,
|
|
440
|
+
padding-inline-start: var(--fui-raw-space-24, #{measurements.raw-space(24)});
|
|
442
441
|
min-height: 0;
|
|
443
442
|
overflow: hidden;
|
|
444
443
|
}
|
|
@@ -460,8 +459,8 @@
|
|
|
460
459
|
|
|
461
460
|
display: inline-flex;
|
|
462
461
|
align-items: center;
|
|
463
|
-
border-radius: var(--fui-sidebar-
|
|
464
|
-
color: var(--fui-sidebar-muted);
|
|
462
|
+
border-radius: var(--fui-sidebar-item-radius, #{$fui-radius-full});
|
|
463
|
+
color: var(--fui-sidebar-muted, #{$fui-text-secondary});
|
|
465
464
|
text-decoration: none;
|
|
466
465
|
position: relative;
|
|
467
466
|
|
|
@@ -471,21 +470,21 @@
|
|
|
471
470
|
inset-inline-start: 0;
|
|
472
471
|
top: 50%;
|
|
473
472
|
transform: translateY(-50%);
|
|
474
|
-
width: var(--fui-navigation-active-rail);
|
|
475
|
-
height: var(--fui-navigation-leading-box);
|
|
473
|
+
width: var(--fui-navigation-active-rail, #{$_active-rail});
|
|
474
|
+
height: var(--fui-navigation-leading-box, #{$_leading-box});
|
|
476
475
|
background-color: transparent;
|
|
477
476
|
border-radius: var(--fui-radius-full, $fui-radius-full);
|
|
478
477
|
transition: background-color var(--fui-transition-fast, $fui-transition-fast);
|
|
479
478
|
}
|
|
480
479
|
|
|
481
480
|
&:hover:not(.subItemDisabled) {
|
|
482
|
-
background-color: var(--fui-sidebar-hover-bg);
|
|
481
|
+
background-color: var(--fui-sidebar-hover-bg, #{$fui-bg-hover});
|
|
483
482
|
color: var(--fui-sidebar-item-hover-color, var(--fui-text-primary, #{$fui-text-primary}));
|
|
484
483
|
text-decoration: none;
|
|
485
484
|
}
|
|
486
485
|
|
|
487
486
|
&:active:not(.subItemDisabled) {
|
|
488
|
-
background-color: var(--fui-sidebar-active-bg);
|
|
487
|
+
background-color: var(--fui-sidebar-active-bg, #{$fui-bg-active});
|
|
489
488
|
}
|
|
490
489
|
}
|
|
491
490
|
|
|
@@ -504,11 +503,11 @@
|
|
|
504
503
|
.footer {
|
|
505
504
|
display: flex;
|
|
506
505
|
flex-direction: column;
|
|
507
|
-
gap: var(--fui-
|
|
508
|
-
padding: var(--fui-
|
|
506
|
+
gap: var(--fui-navigation-content-gap, #{$_gutter});
|
|
507
|
+
padding: var(--fui-navigation-gutter, #{$_gutter});
|
|
509
508
|
margin-top: auto;
|
|
510
509
|
flex-shrink: 0;
|
|
511
|
-
border-top: var(--fui-stroke-hairline,
|
|
510
|
+
border-top: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid
|
|
512
511
|
var(
|
|
513
512
|
--fui-sidebar-footer-border,
|
|
514
513
|
color-mix(in srgb, var(--fui-border-default, #{$fui-border-default}) 58%, transparent)
|
|
@@ -537,10 +536,8 @@
|
|
|
537
536
|
}
|
|
538
537
|
|
|
539
538
|
.overlay {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
z-index: 50;
|
|
543
|
-
background-color: var(--fui-backdrop, $fui-backdrop);
|
|
539
|
+
@include overlay.backdrop;
|
|
540
|
+
|
|
544
541
|
opacity: 0;
|
|
545
542
|
transition: opacity var(--fui-transition-normal, $fui-transition-normal);
|
|
546
543
|
|
|
@@ -576,10 +573,10 @@
|
|
|
576
573
|
position: absolute;
|
|
577
574
|
top: var(--fui-space-3, $fui-space-3);
|
|
578
575
|
left: calc(100% + var(--fui-space-2, $fui-space-2));
|
|
579
|
-
z-index:
|
|
580
|
-
margin: 0;
|
|
576
|
+
z-index: 2;
|
|
577
|
+
margin: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
581
578
|
background-color: var(--fui-bg-primary, $fui-bg-primary);
|
|
582
|
-
border: var(--fui-stroke-hairline,
|
|
579
|
+
border: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid var(--fui-border, $fui-border);
|
|
583
580
|
box-shadow: var(--fui-shadow-sm, $fui-shadow-sm);
|
|
584
581
|
|
|
585
582
|
.positionRight & {
|
|
@@ -594,9 +591,9 @@
|
|
|
594
591
|
position: absolute;
|
|
595
592
|
top: 0;
|
|
596
593
|
right: 0;
|
|
597
|
-
width: var(--fui-navigation-leading-box);
|
|
594
|
+
width: var(--fui-navigation-leading-box, #{$_leading-box});
|
|
598
595
|
height: 100%;
|
|
599
|
-
z-index:
|
|
596
|
+
z-index: 1;
|
|
600
597
|
|
|
601
598
|
.positionRight & {
|
|
602
599
|
right: auto;
|
|
@@ -608,8 +605,8 @@
|
|
|
608
605
|
position: absolute;
|
|
609
606
|
top: 50%;
|
|
610
607
|
transform: translateY(-50%);
|
|
611
|
-
right: var(--fui-raw-space-4,
|
|
612
|
-
width: var(--fui-raw-space-4,
|
|
608
|
+
right: var(--fui-raw-space-4, #{measurements.raw-space(4)});
|
|
609
|
+
width: var(--fui-raw-space-4, #{measurements.raw-space(4)});
|
|
613
610
|
height: #{action.track("lg")};
|
|
614
611
|
border-radius: var(--fui-radius-full, $fui-radius-full);
|
|
615
612
|
background-color: var(--fui-border, $fui-border);
|
|
@@ -621,7 +618,7 @@
|
|
|
621
618
|
|
|
622
619
|
.positionRight & {
|
|
623
620
|
right: auto;
|
|
624
|
-
left: var(--fui-raw-space-4,
|
|
621
|
+
left: var(--fui-raw-space-4, #{measurements.raw-space(4)});
|
|
625
622
|
}
|
|
626
623
|
}
|
|
627
624
|
|
|
@@ -632,12 +629,12 @@
|
|
|
632
629
|
}
|
|
633
630
|
|
|
634
631
|
&:hover::before {
|
|
635
|
-
height:
|
|
632
|
+
height: #{navigation.collapsed-width()};
|
|
636
633
|
}
|
|
637
634
|
}
|
|
638
635
|
|
|
639
636
|
.railCollapsed::before {
|
|
640
|
-
opacity:
|
|
637
|
+
opacity: var(--fui-opacity-muted, #{$fui-opacity-muted});
|
|
641
638
|
}
|
|
642
639
|
|
|
643
640
|
.menuSkeleton {
|
|
@@ -35,7 +35,7 @@ function renderSidebarBadge(badge: React.ReactNode) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<Badge
|
|
38
|
+
<Badge tone="neutral" size="sm">
|
|
39
39
|
{badge}
|
|
40
40
|
</Badge>
|
|
41
41
|
);
|
|
@@ -1122,10 +1122,10 @@ function SidebarMenuSkeleton({
|
|
|
1122
1122
|
<div {...htmlProps} className={classes} aria-hidden="true">
|
|
1123
1123
|
{Array.from({ length: count }).map((_, i) => (
|
|
1124
1124
|
<div key={i} className={styles.skeletonItem}>
|
|
1125
|
-
{showIcon && <Skeleton
|
|
1125
|
+
{showIcon && <Skeleton shape="avatar" size="sm" />}
|
|
1126
1126
|
{!isCollapsed && (
|
|
1127
1127
|
<Skeleton
|
|
1128
|
-
|
|
1128
|
+
shape="text"
|
|
1129
1129
|
className={styles.skeletonLabel}
|
|
1130
1130
|
width={labelWidths[i % labelWidths.length]}
|
|
1131
1131
|
/>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sourcePath": "src/components/Skeleton/index.tsx",
|
|
9
9
|
"exportName": "Skeleton",
|
|
10
10
|
"propsSummary": [
|
|
11
|
-
"
|
|
11
|
+
"shape: text|heading|avatar|button|input|rect (default: rect)",
|
|
12
12
|
"size: sm|md|lg (default: md)",
|
|
13
13
|
"width: union",
|
|
14
14
|
"height: union",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"static: boolean (default: false)"
|
|
18
18
|
],
|
|
19
19
|
"props": {
|
|
20
|
-
"
|
|
20
|
+
"shape": {
|
|
21
21
|
"type": "enum",
|
|
22
|
-
"description": "Semantic
|
|
22
|
+
"description": "Semantic shape that auto-sizes",
|
|
23
23
|
"default": "rect",
|
|
24
24
|
"required": false,
|
|
25
25
|
"values": ["text", "heading", "avatar", "button", "input", "rect"]
|
|
26
26
|
},
|
|
27
27
|
"size": {
|
|
28
28
|
"type": "enum",
|
|
29
|
-
"description": "Size for avatar/button
|
|
29
|
+
"description": "Size for avatar/button shapes",
|
|
30
30
|
"default": "md",
|
|
31
31
|
"required": false,
|
|
32
32
|
"values": ["sm", "md", "lg"]
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
],
|
|
74
74
|
"guidelines": [
|
|
75
75
|
"Match the shape and size of the real content",
|
|
76
|
-
"Prefer the text, heading, and avatar
|
|
76
|
+
"Prefer the text, heading, and avatar shapes over hand-rolled boxes",
|
|
77
77
|
"Give Skeleton.Text an ancestor with a real width — percentage lines collapse without one",
|
|
78
78
|
"A few big shapes beat many small ones",
|
|
79
79
|
"Skeleton and Skeleton.Text forward id, aria-*, data-* and handlers"
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"code": "<div style={{ width: 260 }}>\n <Skeleton.Text lines={3} />\n</div>"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"name": "Semantic
|
|
99
|
+
"name": "Semantic Shapes",
|
|
100
100
|
"description": "Heading sits taller than the body lines under it.",
|
|
101
|
-
"code": "<div\n style={{\n width: 260,\n display: 'flex',\n flexDirection: 'column',\n gap: 'var(--fui-space-2)',\n }}\n>\n <Skeleton
|
|
101
|
+
"code": "<div\n style={{\n width: 260,\n display: 'flex',\n flexDirection: 'column',\n gap: 'var(--fui-space-2)',\n }}\n>\n <Skeleton shape=\"heading\" width={200} />\n <Skeleton shape=\"text\" width=\"100%\" />\n <Skeleton shape=\"text\" width=\"80%\" />\n</div>"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "Avatar Skeleton",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
{
|
|
109
109
|
"name": "Card Skeleton",
|
|
110
110
|
"description": "Media, title, then body — the card before it loads.",
|
|
111
|
-
"code": "<div\n style={{\n width: 300,\n padding: 'var(--fui-space-2)',\n border: '1px solid var(--fui-border)',\n borderRadius: 'var(--fui-radius-lg)',\n }}\n>\n <Skeleton
|
|
111
|
+
"code": "<div\n style={{\n width: 300,\n padding: 'var(--fui-space-2)',\n border: '1px solid var(--fui-border)',\n borderRadius: 'var(--fui-radius-lg)',\n }}\n>\n <Skeleton shape=\"rect\" height={120} radius=\"md\" />\n <div style={{ marginTop: 'var(--fui-space-2)' }}>\n <Skeleton shape=\"heading\" width=\"60%\" />\n </div>\n <div style={{ marginTop: 'var(--fui-space-1)' }}>\n <Skeleton.Text lines={2} />\n </div>\n</div>"
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"relations": [
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
],
|
|
121
121
|
"contract": {
|
|
122
122
|
"propsSummary": [
|
|
123
|
-
"
|
|
123
|
+
"shape: text|heading|avatar|button|input|rect",
|
|
124
124
|
"size: sm|md|lg (for avatar/button)",
|
|
125
125
|
"width/height: custom dimensions",
|
|
126
126
|
"fill: boolean - fill parent",
|