@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
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const list = "
|
|
3
|
-
const viewport = "
|
|
4
|
-
const hamburger = "
|
|
5
|
-
const rootVertical = "
|
|
6
|
-
const listVertical = "
|
|
7
|
-
const trigger = "
|
|
8
|
-
const triggerChevron = "
|
|
9
|
-
const content = "
|
|
10
|
-
const link = "
|
|
11
|
-
const linkActive = "
|
|
12
|
-
const linkStructured = "
|
|
13
|
-
const linkIcon = "
|
|
14
|
-
const linkBody = "
|
|
15
|
-
const linkTitle = "
|
|
16
|
-
const linkDescription = "
|
|
17
|
-
const linkFeatured = "
|
|
18
|
-
const indicator = "
|
|
19
|
-
const drawerBackdrop = "
|
|
20
|
-
const drawer = "
|
|
21
|
-
const drawerHeader = "
|
|
22
|
-
const drawerClose = "
|
|
23
|
-
const drawerBody = "
|
|
24
|
-
const drawerNav = "
|
|
25
|
-
const drawerLink = "
|
|
26
|
-
const drawerLinkActive = "
|
|
27
|
-
const drawerSectionLabel = "
|
|
28
|
-
const drawerCollapsibleTrigger = "
|
|
29
|
-
const drawerCollapsibleContent = "
|
|
1
|
+
const root = "_root_be6ds_1";
|
|
2
|
+
const list = "_list_be6ds_17";
|
|
3
|
+
const viewport = "_viewport_be6ds_18";
|
|
4
|
+
const hamburger = "_hamburger_be6ds_21";
|
|
5
|
+
const rootVertical = "_rootVertical_be6ds_25";
|
|
6
|
+
const listVertical = "_listVertical_be6ds_44";
|
|
7
|
+
const trigger = "_trigger_be6ds_49";
|
|
8
|
+
const triggerChevron = "_triggerChevron_be6ds_116";
|
|
9
|
+
const content = "_content_be6ds_124";
|
|
10
|
+
const link = "_link_be6ds_187";
|
|
11
|
+
const linkActive = "_linkActive_be6ds_214";
|
|
12
|
+
const linkStructured = "_linkStructured_be6ds_220";
|
|
13
|
+
const linkIcon = "_linkIcon_be6ds_232";
|
|
14
|
+
const linkBody = "_linkBody_be6ds_243";
|
|
15
|
+
const linkTitle = "_linkTitle_be6ds_250";
|
|
16
|
+
const linkDescription = "_linkDescription_be6ds_259";
|
|
17
|
+
const linkFeatured = "_linkFeatured_be6ds_268";
|
|
18
|
+
const indicator = "_indicator_be6ds_277";
|
|
19
|
+
const drawerBackdrop = "_drawerBackdrop_be6ds_416";
|
|
20
|
+
const drawer = "_drawer_be6ds_416";
|
|
21
|
+
const drawerHeader = "_drawerHeader_be6ds_470";
|
|
22
|
+
const drawerClose = "_drawerClose_be6ds_479";
|
|
23
|
+
const drawerBody = "_drawerBody_be6ds_543";
|
|
24
|
+
const drawerNav = "_drawerNav_be6ds_558";
|
|
25
|
+
const drawerLink = "_drawerLink_be6ds_563";
|
|
26
|
+
const drawerLinkActive = "_drawerLinkActive_be6ds_612";
|
|
27
|
+
const drawerSectionLabel = "_drawerSectionLabel_be6ds_622";
|
|
28
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_be6ds_646";
|
|
29
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_be6ds_701";
|
|
30
30
|
const styles = {
|
|
31
31
|
root,
|
|
32
32
|
list,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const pagination = "
|
|
4
|
-
const list = "
|
|
5
|
-
const item = "
|
|
6
|
-
const itemActive = "
|
|
7
|
-
const itemDisabled = "
|
|
8
|
-
const ellipsis = "
|
|
9
|
-
const sm = "
|
|
10
|
-
const md = "
|
|
11
|
-
const lg = "
|
|
12
|
-
const navButton = "
|
|
3
|
+
const pagination = "_pagination_1ss0a_1";
|
|
4
|
+
const list = "_list_1ss0a_7";
|
|
5
|
+
const item = "_item_1ss0a_16";
|
|
6
|
+
const itemActive = "_itemActive_1ss0a_57";
|
|
7
|
+
const itemDisabled = "_itemDisabled_1ss0a_72";
|
|
8
|
+
const ellipsis = "_ellipsis_1ss0a_78";
|
|
9
|
+
const sm = "_sm_1ss0a_95";
|
|
10
|
+
const md = "_md_1ss0a_111";
|
|
11
|
+
const lg = "_lg_1ss0a_127";
|
|
12
|
+
const navButton = "_navButton_1ss0a_143";
|
|
13
13
|
const styles = {
|
|
14
14
|
pagination,
|
|
15
15
|
list,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const pagination = "
|
|
2
|
-
const list = "
|
|
3
|
-
const item = "
|
|
4
|
-
const itemActive = "
|
|
5
|
-
const itemDisabled = "
|
|
6
|
-
const ellipsis = "
|
|
7
|
-
const sm = "
|
|
8
|
-
const md = "
|
|
9
|
-
const lg = "
|
|
10
|
-
const navButton = "
|
|
1
|
+
const pagination = "_pagination_1ss0a_1";
|
|
2
|
+
const list = "_list_1ss0a_7";
|
|
3
|
+
const item = "_item_1ss0a_16";
|
|
4
|
+
const itemActive = "_itemActive_1ss0a_57";
|
|
5
|
+
const itemDisabled = "_itemDisabled_1ss0a_72";
|
|
6
|
+
const ellipsis = "_ellipsis_1ss0a_78";
|
|
7
|
+
const sm = "_sm_1ss0a_95";
|
|
8
|
+
const md = "_md_1ss0a_111";
|
|
9
|
+
const lg = "_lg_1ss0a_127";
|
|
10
|
+
const navButton = "_navButton_1ss0a_143";
|
|
11
11
|
const styles = {
|
|
12
12
|
pagination,
|
|
13
13
|
list,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const lg = "
|
|
7
|
-
const title = "
|
|
8
|
-
const description = "
|
|
9
|
-
const close = "
|
|
10
|
-
const arrow = "
|
|
11
|
-
const body = "
|
|
12
|
-
const footer = "
|
|
3
|
+
const positioner = "_positioner_1ltdu_1";
|
|
4
|
+
const popup = "_popup_1ltdu_6";
|
|
5
|
+
const sm = "_sm_1ltdu_50";
|
|
6
|
+
const lg = "_lg_1ltdu_55";
|
|
7
|
+
const title = "_title_1ltdu_60";
|
|
8
|
+
const description = "_description_1ltdu_70";
|
|
9
|
+
const close = "_close_1ltdu_81";
|
|
10
|
+
const arrow = "_arrow_1ltdu_168";
|
|
11
|
+
const body = "_body_1ltdu_192";
|
|
12
|
+
const footer = "_footer_1ltdu_196";
|
|
13
13
|
const styles = {
|
|
14
14
|
positioner,
|
|
15
15
|
popup,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const sm = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const title = "
|
|
6
|
-
const description = "
|
|
7
|
-
const close = "
|
|
8
|
-
const arrow = "
|
|
9
|
-
const body = "
|
|
10
|
-
const footer = "
|
|
1
|
+
const positioner = "_positioner_1ltdu_1";
|
|
2
|
+
const popup = "_popup_1ltdu_6";
|
|
3
|
+
const sm = "_sm_1ltdu_50";
|
|
4
|
+
const lg = "_lg_1ltdu_55";
|
|
5
|
+
const title = "_title_1ltdu_60";
|
|
6
|
+
const description = "_description_1ltdu_70";
|
|
7
|
+
const close = "_close_1ltdu_81";
|
|
8
|
+
const arrow = "_arrow_1ltdu_168";
|
|
9
|
+
const body = "_body_1ltdu_192";
|
|
10
|
+
const footer = "_footer_1ltdu_196";
|
|
11
11
|
const styles = {
|
|
12
12
|
positioner,
|
|
13
13
|
popup,
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const header = "
|
|
5
|
-
const label = "
|
|
6
|
-
const value = "
|
|
7
|
-
const track = "
|
|
8
|
-
const trackSm = "
|
|
9
|
-
const trackMd = "
|
|
10
|
-
const trackLg = "
|
|
11
|
-
const indicator = "
|
|
12
|
-
const indicatorNeutral = "
|
|
13
|
-
const indicatorSuccess = "
|
|
14
|
-
const indicatorWarning = "
|
|
15
|
-
const indicatorDanger = "
|
|
16
|
-
const indicatorIndeterminate = "
|
|
17
|
-
const circular = "
|
|
18
|
-
const circularSvg = "
|
|
19
|
-
const circularTrack = "
|
|
20
|
-
const circularIndicator = "
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
3
|
+
const root = "_root_157pr_1";
|
|
4
|
+
const header = "_header_157pr_8";
|
|
5
|
+
const label = "_label_157pr_20";
|
|
6
|
+
const value = "_value_157pr_24";
|
|
7
|
+
const track = "_track_157pr_29";
|
|
8
|
+
const trackSm = "_trackSm_157pr_38";
|
|
9
|
+
const trackMd = "_trackMd_157pr_45";
|
|
10
|
+
const trackLg = "_trackLg_157pr_52";
|
|
11
|
+
const indicator = "_indicator_157pr_59";
|
|
12
|
+
const indicatorNeutral = "_indicatorNeutral_157pr_66";
|
|
13
|
+
const indicatorSuccess = "_indicatorSuccess_157pr_70";
|
|
14
|
+
const indicatorWarning = "_indicatorWarning_157pr_74";
|
|
15
|
+
const indicatorDanger = "_indicatorDanger_157pr_78";
|
|
16
|
+
const indicatorIndeterminate = "_indicatorIndeterminate_157pr_82";
|
|
17
|
+
const circular = "_circular_157pr_98";
|
|
18
|
+
const circularSvg = "_circularSvg_157pr_107";
|
|
19
|
+
const circularTrack = "_circularTrack_157pr_113";
|
|
20
|
+
const circularIndicator = "_circularIndicator_157pr_118";
|
|
21
|
+
const circularIndicatorNeutral = "_circularIndicatorNeutral_157pr_126";
|
|
22
|
+
const circularIndicatorSuccess = "_circularIndicatorSuccess_157pr_130";
|
|
23
|
+
const circularIndicatorWarning = "_circularIndicatorWarning_157pr_134";
|
|
24
|
+
const circularIndicatorDanger = "_circularIndicatorDanger_157pr_138";
|
|
25
|
+
const circularIndicatorIndeterminate = "_circularIndicatorIndeterminate_157pr_142";
|
|
26
|
+
const circularValue = "_circularValue_157pr_159";
|
|
27
|
+
const circularValueCompact = "_circularValueCompact_157pr_165";
|
|
28
|
+
const circularValueStandard = "_circularValueStandard_157pr_173";
|
|
28
29
|
const styles = {
|
|
29
30
|
root,
|
|
30
31
|
header,
|
|
@@ -44,6 +45,7 @@ const styles = {
|
|
|
44
45
|
circularSvg,
|
|
45
46
|
circularTrack,
|
|
46
47
|
circularIndicator,
|
|
48
|
+
circularIndicatorNeutral,
|
|
47
49
|
circularIndicatorSuccess,
|
|
48
50
|
circularIndicatorWarning,
|
|
49
51
|
circularIndicatorDanger,
|
|
@@ -56,6 +58,7 @@ exports.circular = circular;
|
|
|
56
58
|
exports.circularIndicator = circularIndicator;
|
|
57
59
|
exports.circularIndicatorDanger = circularIndicatorDanger;
|
|
58
60
|
exports.circularIndicatorIndeterminate = circularIndicatorIndeterminate;
|
|
61
|
+
exports.circularIndicatorNeutral = circularIndicatorNeutral;
|
|
59
62
|
exports.circularIndicatorSuccess = circularIndicatorSuccess;
|
|
60
63
|
exports.circularIndicatorWarning = circularIndicatorWarning;
|
|
61
64
|
exports.circularSvg = circularSvg;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const header = "
|
|
3
|
-
const label = "
|
|
4
|
-
const value = "
|
|
5
|
-
const track = "
|
|
6
|
-
const trackSm = "
|
|
7
|
-
const trackMd = "
|
|
8
|
-
const trackLg = "
|
|
9
|
-
const indicator = "
|
|
10
|
-
const indicatorNeutral = "
|
|
11
|
-
const indicatorSuccess = "
|
|
12
|
-
const indicatorWarning = "
|
|
13
|
-
const indicatorDanger = "
|
|
14
|
-
const indicatorIndeterminate = "
|
|
15
|
-
const circular = "
|
|
16
|
-
const circularSvg = "
|
|
17
|
-
const circularTrack = "
|
|
18
|
-
const circularIndicator = "
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
1
|
+
const root = "_root_157pr_1";
|
|
2
|
+
const header = "_header_157pr_8";
|
|
3
|
+
const label = "_label_157pr_20";
|
|
4
|
+
const value = "_value_157pr_24";
|
|
5
|
+
const track = "_track_157pr_29";
|
|
6
|
+
const trackSm = "_trackSm_157pr_38";
|
|
7
|
+
const trackMd = "_trackMd_157pr_45";
|
|
8
|
+
const trackLg = "_trackLg_157pr_52";
|
|
9
|
+
const indicator = "_indicator_157pr_59";
|
|
10
|
+
const indicatorNeutral = "_indicatorNeutral_157pr_66";
|
|
11
|
+
const indicatorSuccess = "_indicatorSuccess_157pr_70";
|
|
12
|
+
const indicatorWarning = "_indicatorWarning_157pr_74";
|
|
13
|
+
const indicatorDanger = "_indicatorDanger_157pr_78";
|
|
14
|
+
const indicatorIndeterminate = "_indicatorIndeterminate_157pr_82";
|
|
15
|
+
const circular = "_circular_157pr_98";
|
|
16
|
+
const circularSvg = "_circularSvg_157pr_107";
|
|
17
|
+
const circularTrack = "_circularTrack_157pr_113";
|
|
18
|
+
const circularIndicator = "_circularIndicator_157pr_118";
|
|
19
|
+
const circularIndicatorNeutral = "_circularIndicatorNeutral_157pr_126";
|
|
20
|
+
const circularIndicatorSuccess = "_circularIndicatorSuccess_157pr_130";
|
|
21
|
+
const circularIndicatorWarning = "_circularIndicatorWarning_157pr_134";
|
|
22
|
+
const circularIndicatorDanger = "_circularIndicatorDanger_157pr_138";
|
|
23
|
+
const circularIndicatorIndeterminate = "_circularIndicatorIndeterminate_157pr_142";
|
|
24
|
+
const circularValue = "_circularValue_157pr_159";
|
|
25
|
+
const circularValueCompact = "_circularValueCompact_157pr_165";
|
|
26
|
+
const circularValueStandard = "_circularValueStandard_157pr_173";
|
|
26
27
|
const styles = {
|
|
27
28
|
root,
|
|
28
29
|
header,
|
|
@@ -42,6 +43,7 @@ const styles = {
|
|
|
42
43
|
circularSvg,
|
|
43
44
|
circularTrack,
|
|
44
45
|
circularIndicator,
|
|
46
|
+
circularIndicatorNeutral,
|
|
45
47
|
circularIndicatorSuccess,
|
|
46
48
|
circularIndicatorWarning,
|
|
47
49
|
circularIndicatorDanger,
|
|
@@ -55,6 +57,7 @@ export {
|
|
|
55
57
|
circularIndicator,
|
|
56
58
|
circularIndicatorDanger,
|
|
57
59
|
circularIndicatorIndeterminate,
|
|
60
|
+
circularIndicatorNeutral,
|
|
58
61
|
circularIndicatorSuccess,
|
|
59
62
|
circularIndicatorWarning,
|
|
60
63
|
circularSvg,
|
|
@@ -5,12 +5,26 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const progress = require("@base-ui/react/progress");
|
|
6
6
|
const geometry = require("./geometry.cjs");
|
|
7
7
|
const Progress_module = require("./Progress.module.scss.cjs");
|
|
8
|
+
const INDICATOR_TONE_CLASS = {
|
|
9
|
+
accent: void 0,
|
|
10
|
+
neutral: Progress_module.default.indicatorNeutral,
|
|
11
|
+
success: Progress_module.default.indicatorSuccess,
|
|
12
|
+
warning: Progress_module.default.indicatorWarning,
|
|
13
|
+
danger: Progress_module.default.indicatorDanger
|
|
14
|
+
};
|
|
15
|
+
const CIRCULAR_TONE_CLASS = {
|
|
16
|
+
accent: void 0,
|
|
17
|
+
neutral: Progress_module.default.circularIndicatorNeutral,
|
|
18
|
+
success: Progress_module.default.circularIndicatorSuccess,
|
|
19
|
+
warning: Progress_module.default.circularIndicatorWarning,
|
|
20
|
+
danger: Progress_module.default.circularIndicatorDanger
|
|
21
|
+
};
|
|
8
22
|
function ProgressRoot({
|
|
9
23
|
value = null,
|
|
10
24
|
min = 0,
|
|
11
25
|
max = 100,
|
|
12
26
|
size = "md",
|
|
13
|
-
|
|
27
|
+
tone = "accent",
|
|
14
28
|
label,
|
|
15
29
|
showValue = false,
|
|
16
30
|
formatValue,
|
|
@@ -33,10 +47,7 @@ function ProgressRoot({
|
|
|
33
47
|
].filter(Boolean).join(" ");
|
|
34
48
|
const indicatorClasses = [
|
|
35
49
|
Progress_module.default.indicator,
|
|
36
|
-
|
|
37
|
-
variant === "success" && Progress_module.default.indicatorSuccess,
|
|
38
|
-
variant === "warning" && Progress_module.default.indicatorWarning,
|
|
39
|
-
variant === "danger" && Progress_module.default.indicatorDanger,
|
|
50
|
+
INDICATOR_TONE_CLASS[tone],
|
|
40
51
|
isIndeterminate && Progress_module.default.indicatorIndeterminate
|
|
41
52
|
].filter(Boolean).join(" ");
|
|
42
53
|
const rootClasses = [Progress_module.default.root, className].filter(Boolean).join(" ");
|
|
@@ -73,7 +84,7 @@ function ProgressRoot({
|
|
|
73
84
|
function CircularProgressRoot({
|
|
74
85
|
value = null,
|
|
75
86
|
size = "md",
|
|
76
|
-
|
|
87
|
+
tone = "accent",
|
|
77
88
|
showValue = false,
|
|
78
89
|
strokeWidth: customStrokeWidth,
|
|
79
90
|
className,
|
|
@@ -92,17 +103,15 @@ function CircularProgressRoot({
|
|
|
92
103
|
const offset = circumference - percentage / 100 * circumference;
|
|
93
104
|
const indicatorClasses = [
|
|
94
105
|
Progress_module.default.circularIndicator,
|
|
95
|
-
|
|
96
|
-
variant === "warning" && Progress_module.default.circularIndicatorWarning,
|
|
97
|
-
variant === "danger" && Progress_module.default.circularIndicatorDanger,
|
|
106
|
+
CIRCULAR_TONE_CLASS[tone],
|
|
98
107
|
isIndeterminate && Progress_module.default.circularIndicatorIndeterminate
|
|
99
108
|
].filter(Boolean).join(" ");
|
|
100
109
|
const rootClasses = [Progress_module.default.circular, className].filter(Boolean).join(" ");
|
|
101
110
|
const effectiveValueText = ariaValueText || (isIndeterminate ? "Loading" : `${Math.round(percentage)} percent`);
|
|
102
111
|
const circularStyle = {
|
|
103
|
-
"--
|
|
104
|
-
"--
|
|
105
|
-
"--
|
|
112
|
+
"--fui-progress-diameter": `${geometry$1.diameter}px`,
|
|
113
|
+
"--fui-progress-dash-full": circumference,
|
|
114
|
+
"--fui-progress-dash-quarter": circumference / 4,
|
|
106
115
|
...styleProp
|
|
107
116
|
};
|
|
108
117
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type ProgressSize } from "./geometry";
|
|
3
|
+
export type ProgressTone = "accent" | "neutral" | "success" | "warning" | "danger";
|
|
3
4
|
export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
4
5
|
/** Current progress value (0-100). Null for indeterminate. */
|
|
5
6
|
value?: number | null;
|
|
@@ -9,8 +10,10 @@ export interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
9
10
|
max?: number;
|
|
10
11
|
/** Size of the progress bar */
|
|
11
12
|
size?: ProgressSize;
|
|
12
|
-
/**
|
|
13
|
-
|
|
13
|
+
/** Colour. `accent` is the plain bar; `neutral` reads as a meter whose
|
|
14
|
+
* maximum is not a success; the semantic tones carry state.
|
|
15
|
+
* @default "accent" */
|
|
16
|
+
tone?: ProgressTone;
|
|
14
17
|
/** Label text */
|
|
15
18
|
label?: string;
|
|
16
19
|
/** Show percentage value */
|
|
@@ -23,15 +26,16 @@ export interface CircularProgressProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
23
26
|
value?: number | null;
|
|
24
27
|
/** Size of the circular progress */
|
|
25
28
|
size?: ProgressSize;
|
|
26
|
-
/**
|
|
27
|
-
|
|
29
|
+
/** Colour, same axis as the bar.
|
|
30
|
+
* @default "accent" */
|
|
31
|
+
tone?: ProgressTone;
|
|
28
32
|
/** Show percentage in center */
|
|
29
33
|
showValue?: boolean;
|
|
30
34
|
/** Stroke width */
|
|
31
35
|
strokeWidth?: number;
|
|
32
36
|
}
|
|
33
|
-
declare function ProgressRoot({ value, min, max, size,
|
|
34
|
-
declare function CircularProgressRoot({ value, size,
|
|
37
|
+
declare function ProgressRoot({ value, min, max, size, tone, label, showValue, formatValue, className, role, "aria-label": ariaLabel, "aria-valuetext": ariaValueText, ...htmlProps }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function CircularProgressRoot({ value, size, tone, showValue, strokeWidth: customStrokeWidth, className, style: styleProp, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-valuetext": ariaValueText, ...htmlProps }: CircularProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
35
39
|
export declare const CircularProgress: typeof CircularProgressRoot;
|
|
36
40
|
export declare const Progress: typeof ProgressRoot & {
|
|
37
41
|
Root: typeof ProgressRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IAC/F,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAC;AAOpB,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnF,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IAC/F,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;2BAEuB;IACvB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oCAAoC;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;2BACuB;IACvB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAsBD,iBAAS,YAAY,CAAC,EACpB,KAAY,EACZ,GAAO,EACP,GAAS,EACT,IAAW,EACX,IAAe,EACf,KAAK,EACL,SAAiB,EACjB,WAAW,EACX,SAAS,EACT,IAAI,EACJ,YAAY,EAAE,SAAS,EACvB,gBAAgB,EAAE,aAAa,EAC/B,GAAG,SAAS,EACb,EAAE,aAAa,2CAiEf;AAMD,iBAAS,oBAAoB,CAAC,EAC5B,KAAY,EACZ,IAAW,EACX,IAAe,EACf,SAAiB,EACjB,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EACT,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,gBAAgB,EAAE,aAAa,EAC/B,GAAG,SAAS,EACb,EAAE,qBAAqB,2CAuFvB;AAED,eAAO,MAAM,gBAAgB,6BAAuB,CAAC;AAErD,eAAO,MAAM,QAAQ;;;CAGnB,CAAC"}
|
|
@@ -3,12 +3,26 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
4
4
|
import { CIRCULAR_PROGRESS_GEOMETRY, resolveCircularStrokeWidth } from "./geometry.js";
|
|
5
5
|
import styles from "./Progress.module.scss.js";
|
|
6
|
+
const INDICATOR_TONE_CLASS = {
|
|
7
|
+
accent: void 0,
|
|
8
|
+
neutral: styles.indicatorNeutral,
|
|
9
|
+
success: styles.indicatorSuccess,
|
|
10
|
+
warning: styles.indicatorWarning,
|
|
11
|
+
danger: styles.indicatorDanger
|
|
12
|
+
};
|
|
13
|
+
const CIRCULAR_TONE_CLASS = {
|
|
14
|
+
accent: void 0,
|
|
15
|
+
neutral: styles.circularIndicatorNeutral,
|
|
16
|
+
success: styles.circularIndicatorSuccess,
|
|
17
|
+
warning: styles.circularIndicatorWarning,
|
|
18
|
+
danger: styles.circularIndicatorDanger
|
|
19
|
+
};
|
|
6
20
|
function ProgressRoot({
|
|
7
21
|
value = null,
|
|
8
22
|
min = 0,
|
|
9
23
|
max = 100,
|
|
10
24
|
size = "md",
|
|
11
|
-
|
|
25
|
+
tone = "accent",
|
|
12
26
|
label,
|
|
13
27
|
showValue = false,
|
|
14
28
|
formatValue,
|
|
@@ -31,10 +45,7 @@ function ProgressRoot({
|
|
|
31
45
|
].filter(Boolean).join(" ");
|
|
32
46
|
const indicatorClasses = [
|
|
33
47
|
styles.indicator,
|
|
34
|
-
|
|
35
|
-
variant === "success" && styles.indicatorSuccess,
|
|
36
|
-
variant === "warning" && styles.indicatorWarning,
|
|
37
|
-
variant === "danger" && styles.indicatorDanger,
|
|
48
|
+
INDICATOR_TONE_CLASS[tone],
|
|
38
49
|
isIndeterminate && styles.indicatorIndeterminate
|
|
39
50
|
].filter(Boolean).join(" ");
|
|
40
51
|
const rootClasses = [styles.root, className].filter(Boolean).join(" ");
|
|
@@ -71,7 +82,7 @@ function ProgressRoot({
|
|
|
71
82
|
function CircularProgressRoot({
|
|
72
83
|
value = null,
|
|
73
84
|
size = "md",
|
|
74
|
-
|
|
85
|
+
tone = "accent",
|
|
75
86
|
showValue = false,
|
|
76
87
|
strokeWidth: customStrokeWidth,
|
|
77
88
|
className,
|
|
@@ -90,17 +101,15 @@ function CircularProgressRoot({
|
|
|
90
101
|
const offset = circumference - percentage / 100 * circumference;
|
|
91
102
|
const indicatorClasses = [
|
|
92
103
|
styles.circularIndicator,
|
|
93
|
-
|
|
94
|
-
variant === "warning" && styles.circularIndicatorWarning,
|
|
95
|
-
variant === "danger" && styles.circularIndicatorDanger,
|
|
104
|
+
CIRCULAR_TONE_CLASS[tone],
|
|
96
105
|
isIndeterminate && styles.circularIndicatorIndeterminate
|
|
97
106
|
].filter(Boolean).join(" ");
|
|
98
107
|
const rootClasses = [styles.circular, className].filter(Boolean).join(" ");
|
|
99
108
|
const effectiveValueText = ariaValueText || (isIndeterminate ? "Loading" : `${Math.round(percentage)} percent`);
|
|
100
109
|
const circularStyle = {
|
|
101
|
-
"--
|
|
102
|
-
"--
|
|
103
|
-
"--
|
|
110
|
+
"--fui-progress-diameter": `${geometry.diameter}px`,
|
|
111
|
+
"--fui-progress-dash-full": circumference,
|
|
112
|
+
"--fui-progress-dash-quarter": circumference / 4,
|
|
104
113
|
...styleProp
|
|
105
114
|
};
|
|
106
115
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const prompt = "
|
|
4
|
-
const fixed = "
|
|
5
|
-
const sticky = "
|
|
6
|
-
const
|
|
7
|
-
const toolbar = "
|
|
8
|
-
const textarea = "
|
|
9
|
-
const attachments = "
|
|
10
|
-
const tabs = "
|
|
11
|
-
const tabsInner = "
|
|
12
|
-
const attach = "
|
|
13
|
-
const select = "
|
|
14
|
-
const modeButton = "
|
|
15
|
-
const submit = "
|
|
16
|
-
const tabButton = "
|
|
17
|
-
const tabButtonActive = "
|
|
18
|
-
const actions = "
|
|
19
|
-
const info = "
|
|
20
|
-
const actionButton = "
|
|
21
|
-
const modeButtonActive = "
|
|
22
|
-
const attachment = "
|
|
23
|
-
const attachmentThumb = "
|
|
24
|
-
const attachmentName = "
|
|
25
|
-
const attachmentSize = "
|
|
26
|
-
const attachmentRemove = "
|
|
27
|
-
const dragging = "
|
|
28
|
-
const usage = "
|
|
29
|
-
const submitLoading = "
|
|
30
|
-
const submitSpinner = "
|
|
3
|
+
const prompt = "_prompt_11mxt_1";
|
|
4
|
+
const fixed = "_fixed_11mxt_61";
|
|
5
|
+
const sticky = "_sticky_11mxt_72";
|
|
6
|
+
const ghost = "_ghost_11mxt_87";
|
|
7
|
+
const toolbar = "_toolbar_11mxt_100";
|
|
8
|
+
const textarea = "_textarea_11mxt_105";
|
|
9
|
+
const attachments = "_attachments_11mxt_108";
|
|
10
|
+
const tabs = "_tabs_11mxt_113";
|
|
11
|
+
const tabsInner = "_tabsInner_11mxt_121";
|
|
12
|
+
const attach = "_attach_11mxt_108";
|
|
13
|
+
const select = "_select_11mxt_139";
|
|
14
|
+
const modeButton = "_modeButton_11mxt_140";
|
|
15
|
+
const submit = "_submit_11mxt_171";
|
|
16
|
+
const tabButton = "_tabButton_11mxt_236";
|
|
17
|
+
const tabButtonActive = "_tabButtonActive_11mxt_286";
|
|
18
|
+
const actions = "_actions_11mxt_302";
|
|
19
|
+
const info = "_info_11mxt_309";
|
|
20
|
+
const actionButton = "_actionButton_11mxt_316";
|
|
21
|
+
const modeButtonActive = "_modeButtonActive_11mxt_460";
|
|
22
|
+
const attachment = "_attachment_11mxt_108";
|
|
23
|
+
const attachmentThumb = "_attachmentThumb_11mxt_575";
|
|
24
|
+
const attachmentName = "_attachmentName_11mxt_583";
|
|
25
|
+
const attachmentSize = "_attachmentSize_11mxt_591";
|
|
26
|
+
const attachmentRemove = "_attachmentRemove_11mxt_597";
|
|
27
|
+
const dragging = "_dragging_11mxt_679";
|
|
28
|
+
const usage = "_usage_11mxt_687";
|
|
29
|
+
const submitLoading = "_submitLoading_11mxt_766";
|
|
30
|
+
const submitSpinner = "_submitSpinner_11mxt_770";
|
|
31
31
|
const styles = {
|
|
32
32
|
prompt,
|
|
33
33
|
fixed,
|
|
34
34
|
sticky,
|
|
35
|
-
|
|
35
|
+
ghost,
|
|
36
36
|
toolbar,
|
|
37
37
|
textarea,
|
|
38
38
|
attachments,
|
|
@@ -70,11 +70,11 @@ exports.attachments = attachments;
|
|
|
70
70
|
exports.default = styles;
|
|
71
71
|
exports.dragging = dragging;
|
|
72
72
|
exports.fixed = fixed;
|
|
73
|
+
exports.ghost = ghost;
|
|
73
74
|
exports.info = info;
|
|
74
75
|
exports.modeButton = modeButton;
|
|
75
76
|
exports.modeButtonActive = modeButtonActive;
|
|
76
77
|
exports.prompt = prompt;
|
|
77
|
-
exports.seamless = seamless;
|
|
78
78
|
exports.select = select;
|
|
79
79
|
exports.sticky = sticky;
|
|
80
80
|
exports.submit = submit;
|