@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,11 +1,11 @@
|
|
|
1
|
-
const listbox = "
|
|
2
|
-
const item = "
|
|
3
|
-
const itemActive = "
|
|
4
|
-
const itemSelected = "
|
|
5
|
-
const itemDisabled = "
|
|
6
|
-
const group = "
|
|
7
|
-
const groupLabel = "
|
|
8
|
-
const empty = "
|
|
1
|
+
const listbox = "_listbox_10arb_1";
|
|
2
|
+
const item = "_item_10arb_44";
|
|
3
|
+
const itemActive = "_itemActive_10arb_70";
|
|
4
|
+
const itemSelected = "_itemSelected_10arb_74";
|
|
5
|
+
const itemDisabled = "_itemDisabled_10arb_79";
|
|
6
|
+
const group = "_group_10arb_85";
|
|
7
|
+
const groupLabel = "_groupLabel_10arb_93";
|
|
8
|
+
const empty = "_empty_10arb_107";
|
|
9
9
|
const styles = {
|
|
10
10
|
listbox,
|
|
11
11
|
item,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const loading = "
|
|
4
|
-
const sm = "
|
|
5
|
-
const md = "
|
|
6
|
-
const lg = "
|
|
7
|
-
const xl = "
|
|
8
|
-
const colorAccent = "_color-
|
|
9
|
-
const colorCurrent = "_color-
|
|
10
|
-
const colorMuted = "_color-
|
|
11
|
-
const centered = "
|
|
12
|
-
const fill = "
|
|
13
|
-
const spinnerIcon = "
|
|
14
|
-
const spin = "
|
|
15
|
-
const dotsTrack = "
|
|
16
|
-
const dot = "
|
|
17
|
-
const bounce = "
|
|
18
|
-
const pulseTrack = "
|
|
19
|
-
const pulseRing = "
|
|
20
|
-
const pulseDot = "
|
|
21
|
-
const overlayBackdrop = "
|
|
22
|
-
const inline = "
|
|
23
|
-
const inlineSm = "_inline-
|
|
24
|
-
const inlineMd = "_inline-
|
|
25
|
-
const inlineSpinner = "
|
|
26
|
-
const screen = "
|
|
27
|
-
const screenLabel = "
|
|
3
|
+
const loading = "_loading_pgvt8_1";
|
|
4
|
+
const sm = "_sm_pgvt8_8";
|
|
5
|
+
const md = "_md_pgvt8_18";
|
|
6
|
+
const lg = "_lg_pgvt8_28";
|
|
7
|
+
const xl = "_xl_pgvt8_38";
|
|
8
|
+
const colorAccent = "_color-accent_pgvt8_48";
|
|
9
|
+
const colorCurrent = "_color-current_pgvt8_52";
|
|
10
|
+
const colorMuted = "_color-muted_pgvt8_56";
|
|
11
|
+
const centered = "_centered_pgvt8_60";
|
|
12
|
+
const fill = "_fill_pgvt8_66";
|
|
13
|
+
const spinnerIcon = "_spinnerIcon_pgvt8_74";
|
|
14
|
+
const spin = "_spin_pgvt8_74";
|
|
15
|
+
const dotsTrack = "_dotsTrack_pgvt8_94";
|
|
16
|
+
const dot = "_dot_pgvt8_94";
|
|
17
|
+
const bounce = "_bounce_pgvt8_1";
|
|
18
|
+
const pulseTrack = "_pulseTrack_pgvt8_135";
|
|
19
|
+
const pulseRing = "_pulseRing_pgvt8_144";
|
|
20
|
+
const pulseDot = "_pulseDot_pgvt8_160";
|
|
21
|
+
const overlayBackdrop = "_overlayBackdrop_pgvt8_178";
|
|
22
|
+
const inline = "_inline_pgvt8_188";
|
|
23
|
+
const inlineSm = "_inline-sm_pgvt8_194";
|
|
24
|
+
const inlineMd = "_inline-md_pgvt8_198";
|
|
25
|
+
const inlineSpinner = "_inlineSpinner_pgvt8_202";
|
|
26
|
+
const screen = "_screen_pgvt8_215";
|
|
27
|
+
const screenLabel = "_screenLabel_pgvt8_227";
|
|
28
28
|
const styles = {
|
|
29
29
|
loading,
|
|
30
30
|
sm,
|
|
31
31
|
md,
|
|
32
32
|
lg,
|
|
33
33
|
xl,
|
|
34
|
-
"color-accent": "_color-
|
|
34
|
+
"color-accent": "_color-accent_pgvt8_48",
|
|
35
35
|
colorAccent,
|
|
36
|
-
"color-current": "_color-
|
|
36
|
+
"color-current": "_color-current_pgvt8_52",
|
|
37
37
|
colorCurrent,
|
|
38
|
-
"color-muted": "_color-
|
|
38
|
+
"color-muted": "_color-muted_pgvt8_56",
|
|
39
39
|
colorMuted,
|
|
40
40
|
centered,
|
|
41
41
|
fill,
|
|
@@ -49,9 +49,9 @@ const styles = {
|
|
|
49
49
|
pulseDot,
|
|
50
50
|
overlayBackdrop,
|
|
51
51
|
inline,
|
|
52
|
-
"inline-sm": "_inline-
|
|
52
|
+
"inline-sm": "_inline-sm_pgvt8_194",
|
|
53
53
|
inlineSm,
|
|
54
|
-
"inline-md": "_inline-
|
|
54
|
+
"inline-md": "_inline-md_pgvt8_198",
|
|
55
55
|
inlineMd,
|
|
56
56
|
inlineSpinner,
|
|
57
57
|
screen,
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
const loading = "
|
|
2
|
-
const sm = "
|
|
3
|
-
const md = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const xl = "
|
|
6
|
-
const colorAccent = "_color-
|
|
7
|
-
const colorCurrent = "_color-
|
|
8
|
-
const colorMuted = "_color-
|
|
9
|
-
const centered = "
|
|
10
|
-
const fill = "
|
|
11
|
-
const spinnerIcon = "
|
|
12
|
-
const spin = "
|
|
13
|
-
const dotsTrack = "
|
|
14
|
-
const dot = "
|
|
15
|
-
const bounce = "
|
|
16
|
-
const pulseTrack = "
|
|
17
|
-
const pulseRing = "
|
|
18
|
-
const pulseDot = "
|
|
19
|
-
const overlayBackdrop = "
|
|
20
|
-
const inline = "
|
|
21
|
-
const inlineSm = "_inline-
|
|
22
|
-
const inlineMd = "_inline-
|
|
23
|
-
const inlineSpinner = "
|
|
24
|
-
const screen = "
|
|
25
|
-
const screenLabel = "
|
|
1
|
+
const loading = "_loading_pgvt8_1";
|
|
2
|
+
const sm = "_sm_pgvt8_8";
|
|
3
|
+
const md = "_md_pgvt8_18";
|
|
4
|
+
const lg = "_lg_pgvt8_28";
|
|
5
|
+
const xl = "_xl_pgvt8_38";
|
|
6
|
+
const colorAccent = "_color-accent_pgvt8_48";
|
|
7
|
+
const colorCurrent = "_color-current_pgvt8_52";
|
|
8
|
+
const colorMuted = "_color-muted_pgvt8_56";
|
|
9
|
+
const centered = "_centered_pgvt8_60";
|
|
10
|
+
const fill = "_fill_pgvt8_66";
|
|
11
|
+
const spinnerIcon = "_spinnerIcon_pgvt8_74";
|
|
12
|
+
const spin = "_spin_pgvt8_74";
|
|
13
|
+
const dotsTrack = "_dotsTrack_pgvt8_94";
|
|
14
|
+
const dot = "_dot_pgvt8_94";
|
|
15
|
+
const bounce = "_bounce_pgvt8_1";
|
|
16
|
+
const pulseTrack = "_pulseTrack_pgvt8_135";
|
|
17
|
+
const pulseRing = "_pulseRing_pgvt8_144";
|
|
18
|
+
const pulseDot = "_pulseDot_pgvt8_160";
|
|
19
|
+
const overlayBackdrop = "_overlayBackdrop_pgvt8_178";
|
|
20
|
+
const inline = "_inline_pgvt8_188";
|
|
21
|
+
const inlineSm = "_inline-sm_pgvt8_194";
|
|
22
|
+
const inlineMd = "_inline-md_pgvt8_198";
|
|
23
|
+
const inlineSpinner = "_inlineSpinner_pgvt8_202";
|
|
24
|
+
const screen = "_screen_pgvt8_215";
|
|
25
|
+
const screenLabel = "_screenLabel_pgvt8_227";
|
|
26
26
|
const styles = {
|
|
27
27
|
loading,
|
|
28
28
|
sm,
|
|
29
29
|
md,
|
|
30
30
|
lg,
|
|
31
31
|
xl,
|
|
32
|
-
"color-accent": "_color-
|
|
32
|
+
"color-accent": "_color-accent_pgvt8_48",
|
|
33
33
|
colorAccent,
|
|
34
|
-
"color-current": "_color-
|
|
34
|
+
"color-current": "_color-current_pgvt8_52",
|
|
35
35
|
colorCurrent,
|
|
36
|
-
"color-muted": "_color-
|
|
36
|
+
"color-muted": "_color-muted_pgvt8_56",
|
|
37
37
|
colorMuted,
|
|
38
38
|
centered,
|
|
39
39
|
fill,
|
|
@@ -47,9 +47,9 @@ const styles = {
|
|
|
47
47
|
pulseDot,
|
|
48
48
|
overlayBackdrop,
|
|
49
49
|
inline,
|
|
50
|
-
"inline-sm": "_inline-
|
|
50
|
+
"inline-sm": "_inline-sm_pgvt8_194",
|
|
51
51
|
inlineSm,
|
|
52
|
-
"inline-md": "_inline-
|
|
52
|
+
"inline-md": "_inline-md_pgvt8_198",
|
|
53
53
|
inlineMd,
|
|
54
54
|
inlineSpinner,
|
|
55
55
|
screen,
|
|
@@ -53,7 +53,7 @@ function PulseAnimation({ className }) {
|
|
|
53
53
|
}
|
|
54
54
|
const LoadingRoot = React__namespace.forwardRef(function LoadingRoot2({
|
|
55
55
|
size = "md",
|
|
56
|
-
|
|
56
|
+
kind = "spinner",
|
|
57
57
|
label = "Loading...",
|
|
58
58
|
centered = false,
|
|
59
59
|
fill = false,
|
|
@@ -65,14 +65,14 @@ const LoadingRoot = React__namespace.forwardRef(function LoadingRoot2({
|
|
|
65
65
|
const classes = [
|
|
66
66
|
Loading_module.default.loading,
|
|
67
67
|
Loading_module.default[size],
|
|
68
|
-
Loading_module.default[
|
|
68
|
+
Loading_module.default[kind],
|
|
69
69
|
Loading_module.default[`color-${color}`],
|
|
70
70
|
centered && Loading_module.default.centered,
|
|
71
71
|
fill && Loading_module.default.fill,
|
|
72
72
|
overlay && Loading_module.default.overlay,
|
|
73
73
|
className
|
|
74
74
|
].filter(Boolean).join(" ");
|
|
75
|
-
const animation =
|
|
75
|
+
const animation = kind === "dots" ? /* @__PURE__ */ jsxRuntime.jsx(DotsAnimation, { className: Loading_module.default.dotsTrack }) : kind === "pulse" ? /* @__PURE__ */ jsxRuntime.jsx(PulseAnimation, { className: Loading_module.default.pulseTrack }) : /* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, { className: Loading_module.default.spinnerIcon });
|
|
76
76
|
const content = /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
@@ -101,7 +101,7 @@ function LoadingInline({
|
|
|
101
101
|
}
|
|
102
102
|
function LoadingScreen({
|
|
103
103
|
size = "lg",
|
|
104
|
-
|
|
104
|
+
kind = "spinner",
|
|
105
105
|
label = "Loading...",
|
|
106
106
|
showLabel = false,
|
|
107
107
|
className,
|
|
@@ -109,7 +109,7 @@ function LoadingScreen({
|
|
|
109
109
|
}) {
|
|
110
110
|
const classes = [Loading_module.default.screen, className].filter(Boolean).join(" ");
|
|
111
111
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes, role: "status", "aria-label": label, "aria-live": "polite", ...htmlProps, children: [
|
|
112
|
-
/* @__PURE__ */ jsxRuntime.jsx(LoadingRoot, { size,
|
|
112
|
+
/* @__PURE__ */ jsxRuntime.jsx(LoadingRoot, { size, kind, label }),
|
|
113
113
|
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Loading_module.default.screenLabel, children: label })
|
|
114
114
|
] });
|
|
115
115
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export type LoadingSize = "sm" | "md" | "lg" | "xl";
|
|
3
|
-
export type
|
|
3
|
+
export type LoadingKind = "spinner" | "dots" | "pulse";
|
|
4
4
|
export interface LoadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/** Size of the loading indicator */
|
|
6
6
|
size?: LoadingSize;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Which animation plays. Not chrome, so it is `kind`, not `variant`.
|
|
8
|
+
* @default "spinner" */
|
|
9
|
+
kind?: LoadingKind;
|
|
9
10
|
/** Accessible label for screen readers */
|
|
10
11
|
label?: string;
|
|
11
12
|
/** Whether to center the loading indicator in its container */
|
|
@@ -14,7 +15,7 @@ export interface LoadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
14
15
|
fill?: boolean;
|
|
15
16
|
/** Whether to show the loading indicator with a backdrop overlay */
|
|
16
17
|
overlay?: boolean;
|
|
17
|
-
/**
|
|
18
|
+
/** Colour. `accent` by default; `current` inherits the surrounding text colour */
|
|
18
19
|
color?: "accent" | "current" | "muted";
|
|
19
20
|
}
|
|
20
21
|
export interface LoadingInlineProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
@@ -26,8 +27,8 @@ export interface LoadingInlineProps extends React.HTMLAttributes<HTMLSpanElement
|
|
|
26
27
|
export interface LoadingScreenProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
28
|
/** Loading indicator size */
|
|
28
29
|
size?: LoadingSize;
|
|
29
|
-
/**
|
|
30
|
-
|
|
30
|
+
/** Which animation plays */
|
|
31
|
+
kind?: LoadingKind;
|
|
31
32
|
/** Optional label text to display */
|
|
32
33
|
label?: string;
|
|
33
34
|
/** Whether to show the label text visually */
|
|
@@ -35,7 +36,7 @@ export interface LoadingScreenProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
35
36
|
}
|
|
36
37
|
declare const LoadingRoot: React.ForwardRefExoticComponent<LoadingProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
38
|
declare function LoadingInline({ size, label, className, ...htmlProps }: LoadingInlineProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
declare function LoadingScreen({ size,
|
|
39
|
+
declare function LoadingScreen({ size, kind, label, showLabel, className, ...htmlProps }: LoadingScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
export declare const Loading: React.ForwardRefExoticComponent<LoadingProps & React.RefAttributes<HTMLDivElement>> & {
|
|
40
41
|
Inline: typeof LoadingInline;
|
|
41
42
|
Screen: typeof LoadingScreen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACpD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE,oCAAoC;IACpC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;4BACwB;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC/E,oCAAoC;IACpC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,6BAA6B;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA+CD,QAAA,MAAM,WAAW,qFAsDf,CAAC;AAMH,iBAAS,aAAa,CAAC,EACrB,IAAW,EACX,KAAoB,EACpB,SAAS,EACT,GAAG,SAAS,EACb,EAAE,kBAAkB,2CAQpB;AAMD,iBAAS,aAAa,CAAC,EACrB,IAAW,EACX,IAAgB,EAChB,KAAoB,EACpB,SAAiB,EACjB,SAAS,EACT,GAAG,SAAS,EACb,EAAE,kBAAkB,2CASpB;AAMD,eAAO,MAAM,OAAO;;;CAGlB,CAAC;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -34,7 +34,7 @@ function PulseAnimation({ className }) {
|
|
|
34
34
|
}
|
|
35
35
|
const LoadingRoot = React.forwardRef(function LoadingRoot2({
|
|
36
36
|
size = "md",
|
|
37
|
-
|
|
37
|
+
kind = "spinner",
|
|
38
38
|
label = "Loading...",
|
|
39
39
|
centered = false,
|
|
40
40
|
fill = false,
|
|
@@ -46,14 +46,14 @@ const LoadingRoot = React.forwardRef(function LoadingRoot2({
|
|
|
46
46
|
const classes = [
|
|
47
47
|
styles.loading,
|
|
48
48
|
styles[size],
|
|
49
|
-
styles[
|
|
49
|
+
styles[kind],
|
|
50
50
|
styles[`color-${color}`],
|
|
51
51
|
centered && styles.centered,
|
|
52
52
|
fill && styles.fill,
|
|
53
53
|
overlay && styles.overlay,
|
|
54
54
|
className
|
|
55
55
|
].filter(Boolean).join(" ");
|
|
56
|
-
const animation =
|
|
56
|
+
const animation = kind === "dots" ? /* @__PURE__ */ jsx(DotsAnimation, { className: styles.dotsTrack }) : kind === "pulse" ? /* @__PURE__ */ jsx(PulseAnimation, { className: styles.pulseTrack }) : /* @__PURE__ */ jsx(SpinnerIcon, { className: styles.spinnerIcon });
|
|
57
57
|
const content = /* @__PURE__ */ jsx(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
@@ -82,7 +82,7 @@ function LoadingInline({
|
|
|
82
82
|
}
|
|
83
83
|
function LoadingScreen({
|
|
84
84
|
size = "lg",
|
|
85
|
-
|
|
85
|
+
kind = "spinner",
|
|
86
86
|
label = "Loading...",
|
|
87
87
|
showLabel = false,
|
|
88
88
|
className,
|
|
@@ -90,7 +90,7 @@ function LoadingScreen({
|
|
|
90
90
|
}) {
|
|
91
91
|
const classes = [styles.screen, className].filter(Boolean).join(" ");
|
|
92
92
|
return /* @__PURE__ */ jsxs("div", { className: classes, role: "status", "aria-label": label, "aria-live": "polite", ...htmlProps, children: [
|
|
93
|
-
/* @__PURE__ */ jsx(LoadingRoot, { size,
|
|
93
|
+
/* @__PURE__ */ jsx(LoadingRoot, { size, kind, label }),
|
|
94
94
|
showLabel && /* @__PURE__ */ jsx("span", { className: styles.screenLabel, children: label })
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const viewport = "
|
|
6
|
-
const item = "
|
|
7
|
-
const itemDanger = "
|
|
8
|
-
const itemIcon = "
|
|
9
|
-
const checkIndicator = "
|
|
10
|
-
const radioIndicator = "
|
|
11
|
-
const itemLabel = "
|
|
12
|
-
const itemShortcut = "
|
|
13
|
-
const radioItem = "
|
|
14
|
-
const separator = "
|
|
15
|
-
const groupLabel = "
|
|
16
|
-
const submenuTrigger = "
|
|
3
|
+
const positioner = "_positioner_xqdf3_1";
|
|
4
|
+
const popup = "_popup_xqdf3_9";
|
|
5
|
+
const viewport = "_viewport_xqdf3_54";
|
|
6
|
+
const item = "_item_xqdf3_61";
|
|
7
|
+
const itemDanger = "_itemDanger_xqdf3_87";
|
|
8
|
+
const itemIcon = "_itemIcon_xqdf3_95";
|
|
9
|
+
const checkIndicator = "_checkIndicator_xqdf3_96";
|
|
10
|
+
const radioIndicator = "_radioIndicator_xqdf3_97";
|
|
11
|
+
const itemLabel = "_itemLabel_xqdf3_117";
|
|
12
|
+
const itemShortcut = "_itemShortcut_xqdf3_122";
|
|
13
|
+
const radioItem = "_radioItem_xqdf3_148";
|
|
14
|
+
const separator = "_separator_xqdf3_153";
|
|
15
|
+
const groupLabel = "_groupLabel_xqdf3_159";
|
|
16
|
+
const submenuTrigger = "_submenuTrigger_xqdf3_173";
|
|
17
17
|
const styles = {
|
|
18
18
|
positioner,
|
|
19
19
|
popup,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const viewport = "
|
|
4
|
-
const item = "
|
|
5
|
-
const itemDanger = "
|
|
6
|
-
const itemIcon = "
|
|
7
|
-
const checkIndicator = "
|
|
8
|
-
const radioIndicator = "
|
|
9
|
-
const itemLabel = "
|
|
10
|
-
const itemShortcut = "
|
|
11
|
-
const radioItem = "
|
|
12
|
-
const separator = "
|
|
13
|
-
const groupLabel = "
|
|
14
|
-
const submenuTrigger = "
|
|
1
|
+
const positioner = "_positioner_xqdf3_1";
|
|
2
|
+
const popup = "_popup_xqdf3_9";
|
|
3
|
+
const viewport = "_viewport_xqdf3_54";
|
|
4
|
+
const item = "_item_xqdf3_61";
|
|
5
|
+
const itemDanger = "_itemDanger_xqdf3_87";
|
|
6
|
+
const itemIcon = "_itemIcon_xqdf3_95";
|
|
7
|
+
const checkIndicator = "_checkIndicator_xqdf3_96";
|
|
8
|
+
const radioIndicator = "_radioIndicator_xqdf3_97";
|
|
9
|
+
const itemLabel = "_itemLabel_xqdf3_117";
|
|
10
|
+
const itemShortcut = "_itemShortcut_xqdf3_122";
|
|
11
|
+
const radioItem = "_radioItem_xqdf3_148";
|
|
12
|
+
const separator = "_separator_xqdf3_153";
|
|
13
|
+
const groupLabel = "_groupLabel_xqdf3_159";
|
|
14
|
+
const submenuTrigger = "_submenuTrigger_xqdf3_173";
|
|
15
15
|
const styles = {
|
|
16
16
|
positioner,
|
|
17
17
|
popup,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const message = "
|
|
4
|
-
const actions = "
|
|
5
|
-
const withoutAvatar = "
|
|
6
|
-
const assistant = "
|
|
7
|
-
const content = "
|
|
8
|
-
const user = "
|
|
9
|
-
const body = "
|
|
10
|
-
const system = "
|
|
11
|
-
const avatar = "
|
|
12
|
-
const error = "
|
|
13
|
-
const
|
|
14
|
-
const avatarUser = "
|
|
15
|
-
const avatarAssistant = "
|
|
16
|
-
const avatarSystem = "
|
|
17
|
-
const avatarImage = "
|
|
18
|
-
const streaming = "
|
|
19
|
-
const blink = "
|
|
20
|
-
const timestamp = "
|
|
3
|
+
const message = "_message_1ygmd_2";
|
|
4
|
+
const actions = "_actions_1ygmd_9";
|
|
5
|
+
const withoutAvatar = "_withoutAvatar_1ygmd_13";
|
|
6
|
+
const assistant = "_assistant_1ygmd_13";
|
|
7
|
+
const content = "_content_1ygmd_13";
|
|
8
|
+
const user = "_user_1ygmd_17";
|
|
9
|
+
const body = "_body_1ygmd_22";
|
|
10
|
+
const system = "_system_1ygmd_35";
|
|
11
|
+
const avatar = "_avatar_1ygmd_44";
|
|
12
|
+
const error = "_error_1ygmd_48";
|
|
13
|
+
const pending = "_pending_1ygmd_54";
|
|
14
|
+
const avatarUser = "_avatarUser_1ygmd_62";
|
|
15
|
+
const avatarAssistant = "_avatarAssistant_1ygmd_63";
|
|
16
|
+
const avatarSystem = "_avatarSystem_1ygmd_68";
|
|
17
|
+
const avatarImage = "_avatarImage_1ygmd_73";
|
|
18
|
+
const streaming = "_streaming_1ygmd_239";
|
|
19
|
+
const blink = "_blink_1ygmd_1";
|
|
20
|
+
const timestamp = "_timestamp_1ygmd_265";
|
|
21
21
|
const styles = {
|
|
22
22
|
message,
|
|
23
23
|
actions,
|
|
@@ -29,7 +29,7 @@ const styles = {
|
|
|
29
29
|
system,
|
|
30
30
|
avatar,
|
|
31
31
|
error,
|
|
32
|
-
|
|
32
|
+
pending,
|
|
33
33
|
avatarUser,
|
|
34
34
|
avatarAssistant,
|
|
35
35
|
avatarSystem,
|
|
@@ -51,7 +51,7 @@ exports.content = content;
|
|
|
51
51
|
exports.default = styles;
|
|
52
52
|
exports.error = error;
|
|
53
53
|
exports.message = message;
|
|
54
|
-
exports.
|
|
54
|
+
exports.pending = pending;
|
|
55
55
|
exports.streaming = streaming;
|
|
56
56
|
exports.system = system;
|
|
57
57
|
exports.timestamp = timestamp;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const message = "
|
|
2
|
-
const actions = "
|
|
3
|
-
const withoutAvatar = "
|
|
4
|
-
const assistant = "
|
|
5
|
-
const content = "
|
|
6
|
-
const user = "
|
|
7
|
-
const body = "
|
|
8
|
-
const system = "
|
|
9
|
-
const avatar = "
|
|
10
|
-
const error = "
|
|
11
|
-
const
|
|
12
|
-
const avatarUser = "
|
|
13
|
-
const avatarAssistant = "
|
|
14
|
-
const avatarSystem = "
|
|
15
|
-
const avatarImage = "
|
|
16
|
-
const streaming = "
|
|
17
|
-
const blink = "
|
|
18
|
-
const timestamp = "
|
|
1
|
+
const message = "_message_1ygmd_2";
|
|
2
|
+
const actions = "_actions_1ygmd_9";
|
|
3
|
+
const withoutAvatar = "_withoutAvatar_1ygmd_13";
|
|
4
|
+
const assistant = "_assistant_1ygmd_13";
|
|
5
|
+
const content = "_content_1ygmd_13";
|
|
6
|
+
const user = "_user_1ygmd_17";
|
|
7
|
+
const body = "_body_1ygmd_22";
|
|
8
|
+
const system = "_system_1ygmd_35";
|
|
9
|
+
const avatar = "_avatar_1ygmd_44";
|
|
10
|
+
const error = "_error_1ygmd_48";
|
|
11
|
+
const pending = "_pending_1ygmd_54";
|
|
12
|
+
const avatarUser = "_avatarUser_1ygmd_62";
|
|
13
|
+
const avatarAssistant = "_avatarAssistant_1ygmd_63";
|
|
14
|
+
const avatarSystem = "_avatarSystem_1ygmd_68";
|
|
15
|
+
const avatarImage = "_avatarImage_1ygmd_73";
|
|
16
|
+
const streaming = "_streaming_1ygmd_239";
|
|
17
|
+
const blink = "_blink_1ygmd_1";
|
|
18
|
+
const timestamp = "_timestamp_1ygmd_265";
|
|
19
19
|
const styles = {
|
|
20
20
|
message,
|
|
21
21
|
actions,
|
|
@@ -27,7 +27,7 @@ const styles = {
|
|
|
27
27
|
system,
|
|
28
28
|
avatar,
|
|
29
29
|
error,
|
|
30
|
-
|
|
30
|
+
pending,
|
|
31
31
|
avatarUser,
|
|
32
32
|
avatarAssistant,
|
|
33
33
|
avatarSystem,
|
|
@@ -50,7 +50,7 @@ export {
|
|
|
50
50
|
styles as default,
|
|
51
51
|
error,
|
|
52
52
|
message,
|
|
53
|
-
|
|
53
|
+
pending,
|
|
54
54
|
streaming,
|
|
55
55
|
system,
|
|
56
56
|
timestamp,
|
|
@@ -161,7 +161,7 @@ function MessageRoot({
|
|
|
161
161
|
Message_module.default.message,
|
|
162
162
|
Message_module.default[role],
|
|
163
163
|
status === "error" && Message_module.default.error,
|
|
164
|
-
status === "
|
|
164
|
+
status === "pending" && Message_module.default.pending,
|
|
165
165
|
!showAvatar && Message_module.default.withoutAvatar,
|
|
166
166
|
className
|
|
167
167
|
].filter(Boolean).join(" ");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type MessageRole = 'user' | 'assistant' | 'system';
|
|
3
|
-
export type MessageStatus = '
|
|
3
|
+
export type MessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
|
|
4
4
|
export interface MessageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/** Message role determines styling and alignment */
|
|
6
6
|
role: MessageRole;
|
|
@@ -142,7 +142,7 @@ function MessageRoot({
|
|
|
142
142
|
styles.message,
|
|
143
143
|
styles[role],
|
|
144
144
|
status === "error" && styles.error,
|
|
145
|
-
status === "
|
|
145
|
+
status === "pending" && styles.pending,
|
|
146
146
|
!showAvatar && styles.withoutAvatar,
|
|
147
147
|
className
|
|
148
148
|
].filter(Boolean).join(" ");
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const list = "
|
|
5
|
-
const viewport = "
|
|
6
|
-
const hamburger = "
|
|
7
|
-
const rootVertical = "
|
|
8
|
-
const listVertical = "
|
|
9
|
-
const trigger = "
|
|
10
|
-
const triggerChevron = "
|
|
11
|
-
const content = "
|
|
12
|
-
const link = "
|
|
13
|
-
const linkActive = "
|
|
14
|
-
const linkStructured = "
|
|
15
|
-
const linkIcon = "
|
|
16
|
-
const linkBody = "
|
|
17
|
-
const linkTitle = "
|
|
18
|
-
const linkDescription = "
|
|
19
|
-
const linkFeatured = "
|
|
20
|
-
const indicator = "
|
|
21
|
-
const drawerBackdrop = "
|
|
22
|
-
const drawer = "
|
|
23
|
-
const drawerHeader = "
|
|
24
|
-
const drawerClose = "
|
|
25
|
-
const drawerBody = "
|
|
26
|
-
const drawerNav = "
|
|
27
|
-
const drawerLink = "
|
|
28
|
-
const drawerLinkActive = "
|
|
29
|
-
const drawerSectionLabel = "
|
|
30
|
-
const drawerCollapsibleTrigger = "
|
|
31
|
-
const drawerCollapsibleContent = "
|
|
3
|
+
const root = "_root_be6ds_1";
|
|
4
|
+
const list = "_list_be6ds_17";
|
|
5
|
+
const viewport = "_viewport_be6ds_18";
|
|
6
|
+
const hamburger = "_hamburger_be6ds_21";
|
|
7
|
+
const rootVertical = "_rootVertical_be6ds_25";
|
|
8
|
+
const listVertical = "_listVertical_be6ds_44";
|
|
9
|
+
const trigger = "_trigger_be6ds_49";
|
|
10
|
+
const triggerChevron = "_triggerChevron_be6ds_116";
|
|
11
|
+
const content = "_content_be6ds_124";
|
|
12
|
+
const link = "_link_be6ds_187";
|
|
13
|
+
const linkActive = "_linkActive_be6ds_214";
|
|
14
|
+
const linkStructured = "_linkStructured_be6ds_220";
|
|
15
|
+
const linkIcon = "_linkIcon_be6ds_232";
|
|
16
|
+
const linkBody = "_linkBody_be6ds_243";
|
|
17
|
+
const linkTitle = "_linkTitle_be6ds_250";
|
|
18
|
+
const linkDescription = "_linkDescription_be6ds_259";
|
|
19
|
+
const linkFeatured = "_linkFeatured_be6ds_268";
|
|
20
|
+
const indicator = "_indicator_be6ds_277";
|
|
21
|
+
const drawerBackdrop = "_drawerBackdrop_be6ds_416";
|
|
22
|
+
const drawer = "_drawer_be6ds_416";
|
|
23
|
+
const drawerHeader = "_drawerHeader_be6ds_470";
|
|
24
|
+
const drawerClose = "_drawerClose_be6ds_479";
|
|
25
|
+
const drawerBody = "_drawerBody_be6ds_543";
|
|
26
|
+
const drawerNav = "_drawerNav_be6ds_558";
|
|
27
|
+
const drawerLink = "_drawerLink_be6ds_563";
|
|
28
|
+
const drawerLinkActive = "_drawerLinkActive_be6ds_612";
|
|
29
|
+
const drawerSectionLabel = "_drawerSectionLabel_be6ds_622";
|
|
30
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_be6ds_646";
|
|
31
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_be6ds_701";
|
|
32
32
|
const styles = {
|
|
33
33
|
root,
|
|
34
34
|
list,
|