@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,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const header = "
|
|
4
|
-
const fixed = "
|
|
5
|
-
const sticky = "
|
|
6
|
-
const elevatedOnScroll = "
|
|
7
|
-
const scrolled = "
|
|
8
|
-
const containerPage = "
|
|
9
|
-
const container = "
|
|
10
|
-
const navCentered = "
|
|
11
|
-
const nav = "
|
|
12
|
-
const brand = "
|
|
13
|
-
const navList = "
|
|
14
|
-
const navItem = "
|
|
15
|
-
const navItemActive = "
|
|
16
|
-
const navMenuTrigger = "
|
|
17
|
-
const navMenuChevron = "
|
|
18
|
-
const navMenuPositioner = "
|
|
19
|
-
const navMenuPopup = "
|
|
20
|
-
const navMenuItem = "
|
|
21
|
-
const navMenuItemActive = "
|
|
22
|
-
const search = "
|
|
23
|
-
const searchExpandable = "
|
|
24
|
-
const actions = "
|
|
25
|
-
const trigger = "
|
|
26
|
-
const spacer = "
|
|
27
|
-
const mobileNavBackdrop = "
|
|
28
|
-
const mobileNavDrawer = "
|
|
29
|
-
const mobileNavHeader = "
|
|
30
|
-
const mobileNavClose = "
|
|
31
|
-
const mobileNavBody = "
|
|
32
|
-
const mobileNavLink = "
|
|
33
|
-
const mobileNavLinkActive = "
|
|
34
|
-
const mobileNavActions = "
|
|
35
|
-
const skipLink = "
|
|
3
|
+
const header = "_header_3qgjx_1";
|
|
4
|
+
const fixed = "_fixed_3qgjx_23";
|
|
5
|
+
const sticky = "_sticky_3qgjx_30";
|
|
6
|
+
const elevatedOnScroll = "_elevatedOnScroll_3qgjx_35";
|
|
7
|
+
const scrolled = "_scrolled_3qgjx_40";
|
|
8
|
+
const containerPage = "_containerPage_3qgjx_44";
|
|
9
|
+
const container = "_container_3qgjx_44";
|
|
10
|
+
const navCentered = "_navCentered_3qgjx_65";
|
|
11
|
+
const nav = "_nav_3qgjx_65";
|
|
12
|
+
const brand = "_brand_3qgjx_77";
|
|
13
|
+
const navList = "_navList_3qgjx_105";
|
|
14
|
+
const navItem = "_navItem_3qgjx_114";
|
|
15
|
+
const navItemActive = "_navItemActive_3qgjx_178";
|
|
16
|
+
const navMenuTrigger = "_navMenuTrigger_3qgjx_188";
|
|
17
|
+
const navMenuChevron = "_navMenuChevron_3qgjx_193";
|
|
18
|
+
const navMenuPositioner = "_navMenuPositioner_3qgjx_201";
|
|
19
|
+
const navMenuPopup = "_navMenuPopup_3qgjx_206";
|
|
20
|
+
const navMenuItem = "_navMenuItem_3qgjx_249";
|
|
21
|
+
const navMenuItemActive = "_navMenuItemActive_3qgjx_294";
|
|
22
|
+
const search = "_search_3qgjx_316";
|
|
23
|
+
const searchExpandable = "_searchExpandable_3qgjx_328";
|
|
24
|
+
const actions = "_actions_3qgjx_332";
|
|
25
|
+
const trigger = "_trigger_3qgjx_339";
|
|
26
|
+
const spacer = "_spacer_3qgjx_408";
|
|
27
|
+
const mobileNavBackdrop = "_mobileNavBackdrop_3qgjx_412";
|
|
28
|
+
const mobileNavDrawer = "_mobileNavDrawer_3qgjx_420";
|
|
29
|
+
const mobileNavHeader = "_mobileNavHeader_3qgjx_466";
|
|
30
|
+
const mobileNavClose = "_mobileNavClose_3qgjx_474";
|
|
31
|
+
const mobileNavBody = "_mobileNavBody_3qgjx_538";
|
|
32
|
+
const mobileNavLink = "_mobileNavLink_3qgjx_544";
|
|
33
|
+
const mobileNavLinkActive = "_mobileNavLinkActive_3qgjx_593";
|
|
34
|
+
const mobileNavActions = "_mobileNavActions_3qgjx_603";
|
|
35
|
+
const skipLink = "_skipLink_3qgjx_632";
|
|
36
36
|
const styles = {
|
|
37
37
|
header,
|
|
38
38
|
fixed,
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const header = "
|
|
2
|
-
const fixed = "
|
|
3
|
-
const sticky = "
|
|
4
|
-
const elevatedOnScroll = "
|
|
5
|
-
const scrolled = "
|
|
6
|
-
const containerPage = "
|
|
7
|
-
const container = "
|
|
8
|
-
const navCentered = "
|
|
9
|
-
const nav = "
|
|
10
|
-
const brand = "
|
|
11
|
-
const navList = "
|
|
12
|
-
const navItem = "
|
|
13
|
-
const navItemActive = "
|
|
14
|
-
const navMenuTrigger = "
|
|
15
|
-
const navMenuChevron = "
|
|
16
|
-
const navMenuPositioner = "
|
|
17
|
-
const navMenuPopup = "
|
|
18
|
-
const navMenuItem = "
|
|
19
|
-
const navMenuItemActive = "
|
|
20
|
-
const search = "
|
|
21
|
-
const searchExpandable = "
|
|
22
|
-
const actions = "
|
|
23
|
-
const trigger = "
|
|
24
|
-
const spacer = "
|
|
25
|
-
const mobileNavBackdrop = "
|
|
26
|
-
const mobileNavDrawer = "
|
|
27
|
-
const mobileNavHeader = "
|
|
28
|
-
const mobileNavClose = "
|
|
29
|
-
const mobileNavBody = "
|
|
30
|
-
const mobileNavLink = "
|
|
31
|
-
const mobileNavLinkActive = "
|
|
32
|
-
const mobileNavActions = "
|
|
33
|
-
const skipLink = "
|
|
1
|
+
const header = "_header_3qgjx_1";
|
|
2
|
+
const fixed = "_fixed_3qgjx_23";
|
|
3
|
+
const sticky = "_sticky_3qgjx_30";
|
|
4
|
+
const elevatedOnScroll = "_elevatedOnScroll_3qgjx_35";
|
|
5
|
+
const scrolled = "_scrolled_3qgjx_40";
|
|
6
|
+
const containerPage = "_containerPage_3qgjx_44";
|
|
7
|
+
const container = "_container_3qgjx_44";
|
|
8
|
+
const navCentered = "_navCentered_3qgjx_65";
|
|
9
|
+
const nav = "_nav_3qgjx_65";
|
|
10
|
+
const brand = "_brand_3qgjx_77";
|
|
11
|
+
const navList = "_navList_3qgjx_105";
|
|
12
|
+
const navItem = "_navItem_3qgjx_114";
|
|
13
|
+
const navItemActive = "_navItemActive_3qgjx_178";
|
|
14
|
+
const navMenuTrigger = "_navMenuTrigger_3qgjx_188";
|
|
15
|
+
const navMenuChevron = "_navMenuChevron_3qgjx_193";
|
|
16
|
+
const navMenuPositioner = "_navMenuPositioner_3qgjx_201";
|
|
17
|
+
const navMenuPopup = "_navMenuPopup_3qgjx_206";
|
|
18
|
+
const navMenuItem = "_navMenuItem_3qgjx_249";
|
|
19
|
+
const navMenuItemActive = "_navMenuItemActive_3qgjx_294";
|
|
20
|
+
const search = "_search_3qgjx_316";
|
|
21
|
+
const searchExpandable = "_searchExpandable_3qgjx_328";
|
|
22
|
+
const actions = "_actions_3qgjx_332";
|
|
23
|
+
const trigger = "_trigger_3qgjx_339";
|
|
24
|
+
const spacer = "_spacer_3qgjx_408";
|
|
25
|
+
const mobileNavBackdrop = "_mobileNavBackdrop_3qgjx_412";
|
|
26
|
+
const mobileNavDrawer = "_mobileNavDrawer_3qgjx_420";
|
|
27
|
+
const mobileNavHeader = "_mobileNavHeader_3qgjx_466";
|
|
28
|
+
const mobileNavClose = "_mobileNavClose_3qgjx_474";
|
|
29
|
+
const mobileNavBody = "_mobileNavBody_3qgjx_538";
|
|
30
|
+
const mobileNavLink = "_mobileNavLink_3qgjx_544";
|
|
31
|
+
const mobileNavLinkActive = "_mobileNavLinkActive_3qgjx_593";
|
|
32
|
+
const mobileNavActions = "_mobileNavActions_3qgjx_603";
|
|
33
|
+
const skipLink = "_skipLink_3qgjx_632";
|
|
34
34
|
const styles = {
|
|
35
35
|
header,
|
|
36
36
|
fixed,
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const icon = "
|
|
4
|
-
const xs = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const md = "
|
|
7
|
-
const lg = "
|
|
8
|
-
const xl = "
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const error = "_error_vwqu6_73";
|
|
3
|
+
const icon = "_icon_8ze26_1";
|
|
4
|
+
const xs = "_xs_8ze26_13";
|
|
5
|
+
const sm = "_sm_8ze26_19";
|
|
6
|
+
const md = "_md_8ze26_25";
|
|
7
|
+
const lg = "_lg_8ze26_31";
|
|
8
|
+
const xl = "_xl_8ze26_37";
|
|
9
|
+
const colorPrimary = "_colorPrimary_8ze26_43";
|
|
10
|
+
const colorSecondary = "_colorSecondary_8ze26_47";
|
|
11
|
+
const colorTertiary = "_colorTertiary_8ze26_51";
|
|
12
|
+
const toneAccent = "_toneAccent_8ze26_55";
|
|
13
|
+
const toneInfo = "_toneInfo_8ze26_59";
|
|
14
|
+
const toneSuccess = "_toneSuccess_8ze26_63";
|
|
15
|
+
const toneWarning = "_toneWarning_8ze26_67";
|
|
16
|
+
const toneDanger = "_toneDanger_8ze26_71";
|
|
18
17
|
const styles = {
|
|
19
18
|
icon,
|
|
20
19
|
xs,
|
|
@@ -22,29 +21,27 @@ const styles = {
|
|
|
22
21
|
md,
|
|
23
22
|
lg,
|
|
24
23
|
xl,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
error
|
|
24
|
+
colorPrimary,
|
|
25
|
+
colorSecondary,
|
|
26
|
+
colorTertiary,
|
|
27
|
+
toneAccent,
|
|
28
|
+
toneInfo,
|
|
29
|
+
toneSuccess,
|
|
30
|
+
toneWarning,
|
|
31
|
+
toneDanger
|
|
34
32
|
};
|
|
35
|
-
exports.
|
|
33
|
+
exports.colorPrimary = colorPrimary;
|
|
34
|
+
exports.colorSecondary = colorSecondary;
|
|
35
|
+
exports.colorTertiary = colorTertiary;
|
|
36
36
|
exports.default = styles;
|
|
37
|
-
exports.error = error;
|
|
38
37
|
exports.icon = icon;
|
|
39
38
|
exports.lg = lg;
|
|
40
39
|
exports.md = md;
|
|
41
|
-
exports.primary = primary;
|
|
42
|
-
exports.secondary = secondary;
|
|
43
|
-
exports.size2Xl = size2Xl;
|
|
44
|
-
exports.size2xl = size2xl;
|
|
45
40
|
exports.sm = sm;
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
41
|
+
exports.toneAccent = toneAccent;
|
|
42
|
+
exports.toneDanger = toneDanger;
|
|
43
|
+
exports.toneInfo = toneInfo;
|
|
44
|
+
exports.toneSuccess = toneSuccess;
|
|
45
|
+
exports.toneWarning = toneWarning;
|
|
49
46
|
exports.xl = xl;
|
|
50
47
|
exports.xs = xs;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
const icon = "
|
|
2
|
-
const xs = "
|
|
3
|
-
const sm = "
|
|
4
|
-
const md = "
|
|
5
|
-
const lg = "
|
|
6
|
-
const xl = "
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const error = "_error_vwqu6_73";
|
|
1
|
+
const icon = "_icon_8ze26_1";
|
|
2
|
+
const xs = "_xs_8ze26_13";
|
|
3
|
+
const sm = "_sm_8ze26_19";
|
|
4
|
+
const md = "_md_8ze26_25";
|
|
5
|
+
const lg = "_lg_8ze26_31";
|
|
6
|
+
const xl = "_xl_8ze26_37";
|
|
7
|
+
const colorPrimary = "_colorPrimary_8ze26_43";
|
|
8
|
+
const colorSecondary = "_colorSecondary_8ze26_47";
|
|
9
|
+
const colorTertiary = "_colorTertiary_8ze26_51";
|
|
10
|
+
const toneAccent = "_toneAccent_8ze26_55";
|
|
11
|
+
const toneInfo = "_toneInfo_8ze26_59";
|
|
12
|
+
const toneSuccess = "_toneSuccess_8ze26_63";
|
|
13
|
+
const toneWarning = "_toneWarning_8ze26_67";
|
|
14
|
+
const toneDanger = "_toneDanger_8ze26_71";
|
|
16
15
|
const styles = {
|
|
17
16
|
icon,
|
|
18
17
|
xs,
|
|
@@ -20,31 +19,29 @@ const styles = {
|
|
|
20
19
|
md,
|
|
21
20
|
lg,
|
|
22
21
|
xl,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
error
|
|
22
|
+
colorPrimary,
|
|
23
|
+
colorSecondary,
|
|
24
|
+
colorTertiary,
|
|
25
|
+
toneAccent,
|
|
26
|
+
toneInfo,
|
|
27
|
+
toneSuccess,
|
|
28
|
+
toneWarning,
|
|
29
|
+
toneDanger
|
|
32
30
|
};
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
colorPrimary,
|
|
33
|
+
colorSecondary,
|
|
34
|
+
colorTertiary,
|
|
35
35
|
styles as default,
|
|
36
|
-
error,
|
|
37
36
|
icon,
|
|
38
37
|
lg,
|
|
39
38
|
md,
|
|
40
|
-
primary,
|
|
41
|
-
secondary,
|
|
42
|
-
size2Xl,
|
|
43
|
-
size2xl,
|
|
44
39
|
sm,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
toneAccent,
|
|
41
|
+
toneDanger,
|
|
42
|
+
toneInfo,
|
|
43
|
+
toneSuccess,
|
|
44
|
+
toneWarning,
|
|
48
45
|
xl,
|
|
49
46
|
xs
|
|
50
47
|
};
|
|
@@ -23,22 +23,23 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
}
|
|
24
24
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
25
25
|
const iconTargets = generated.MEASUREMENT_PROFILES.targets.icon;
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
const TONE_CLASS = {
|
|
27
|
+
accent: Icon_module.default.toneAccent,
|
|
28
|
+
info: Icon_module.default.toneInfo,
|
|
29
|
+
success: Icon_module.default.toneSuccess,
|
|
30
|
+
warning: Icon_module.default.toneWarning,
|
|
31
|
+
danger: Icon_module.default.toneDanger
|
|
32
|
+
};
|
|
33
|
+
const COLOR_CLASS = {
|
|
34
|
+
primary: Icon_module.default.colorPrimary,
|
|
35
|
+
secondary: Icon_module.default.colorSecondary,
|
|
36
|
+
tertiary: Icon_module.default.colorTertiary
|
|
37
|
+
};
|
|
38
|
+
const IconRoot = React__namespace.forwardRef(function Icon2({ icon: IconComponent, size = "md", weight = "regular", tone, color, iconProps, className, style, ...htmlProps }, ref) {
|
|
38
39
|
const classes = [
|
|
39
40
|
Icon_module.default.icon,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
Icon_module.default[size],
|
|
42
|
+
tone ? TONE_CLASS[tone] : color ? COLOR_CLASS[color] : void 0,
|
|
42
43
|
className
|
|
43
44
|
].filter(Boolean).join(" ");
|
|
44
45
|
const resolvedIconProps = {
|
|
@@ -1,31 +1,42 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
type AnyIconComponent = React.ComponentType<any>;
|
|
3
3
|
type IconComponentProps<TIcon extends AnyIconComponent> = React.ComponentPropsWithoutRef<TIcon>;
|
|
4
|
+
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
export type IconTone = "accent" | "info" | "success" | "warning" | "danger";
|
|
6
|
+
export type IconColor = "primary" | "secondary" | "tertiary";
|
|
4
7
|
export type IconProps<TIcon extends AnyIconComponent = AnyIconComponent> = Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
5
8
|
/** The icon component to render */
|
|
6
9
|
icon: TIcon;
|
|
7
|
-
/** Size of the icon
|
|
8
|
-
|
|
10
|
+
/** Size of the icon. `xl` is the largest step (24px); the glyph inherits
|
|
11
|
+
* `currentColor` and the surrounding line height.
|
|
12
|
+
* @default "md" */
|
|
13
|
+
size?: IconSize;
|
|
9
14
|
/** Optional style/weight hint forwarded when the icon component supports a `weight` prop */
|
|
10
15
|
weight?: string;
|
|
11
|
-
/** Semantic
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
/** Semantic colour. Reserve `success`, `warning` and `danger` for real
|
|
17
|
+
* state; `accent` is the brand spend. Omit to inherit `currentColor`. */
|
|
18
|
+
tone?: IconTone;
|
|
19
|
+
/** Text-hierarchy colour, the same axis as Text's `color`. `tone` wins when
|
|
20
|
+
* both are set. Omit to inherit `currentColor`. */
|
|
21
|
+
color?: IconColor;
|
|
15
22
|
/** Additional props forwarded to the underlying icon component (typed from `icon`) */
|
|
16
23
|
iconProps?: Partial<IconComponentProps<TIcon>>;
|
|
17
24
|
};
|
|
18
25
|
declare const IconRoot: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
19
26
|
/** The icon component to render */
|
|
20
27
|
icon: AnyIconComponent;
|
|
21
|
-
/** Size of the icon
|
|
22
|
-
|
|
28
|
+
/** Size of the icon. `xl` is the largest step (24px); the glyph inherits
|
|
29
|
+
* `currentColor` and the surrounding line height.
|
|
30
|
+
* @default "md" */
|
|
31
|
+
size?: IconSize;
|
|
23
32
|
/** Optional style/weight hint forwarded when the icon component supports a `weight` prop */
|
|
24
33
|
weight?: string;
|
|
25
|
-
/** Semantic
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
/** Semantic colour. Reserve `success`, `warning` and `danger` for real
|
|
35
|
+
* state; `accent` is the brand spend. Omit to inherit `currentColor`. */
|
|
36
|
+
tone?: IconTone;
|
|
37
|
+
/** Text-hierarchy colour, the same axis as Text's `color`. `tone` wins when
|
|
38
|
+
* both are set. Omit to inherit `currentColor`. */
|
|
39
|
+
color?: IconColor;
|
|
29
40
|
/** Additional props forwarded to the underlying icon component (typed from `icon`) */
|
|
30
41
|
iconProps?: Partial<Omit<any, "ref">> | undefined;
|
|
31
42
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACjD,KAAK,kBAAkB,CAAC,KAAK,SAAS,gBAAgB,IAAI,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEhG,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,IAAI,CAC7E,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EACrC,OAAO,CACR,GAAG;IACF,mCAAmC;IACnC,IAAI,EAAE,KAAK,CAAC;IACZ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACjD,KAAK,kBAAkB,CAAC,KAAK,SAAS,gBAAgB,IAAI,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEhG,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5E,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AAE7D,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,IAAI,CAC7E,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EACrC,OAAO,CACR,GAAG;IACF,mCAAmC;IACnC,IAAI,EAAE,KAAK,CAAC;IACZ;;uBAEmB;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;6EACyE;IACzE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;uDACmD;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;CAChD,CAAC;AAkBF,QAAA,MAAM,QAAQ;IAlCZ,mCAAmC;;IAEnC;;uBAEmB;WACZ,QAAQ;IACf,4FAA4F;aACnF,MAAM;IACf;6EACyE;WAClE,QAAQ;IACf;uDACmD;YAC3C,SAAS;IACjB,sFAAsF;;yCAkDtF,CAAC;AAEH,KAAK,sBAAsB,GAAG,CAAC,KAAK,SAAS,gBAAgB,GAAG,gBAAgB,EAC9E,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,KAC3D,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAE/B,eAAO,MAAM,IAAI,EAEX,OAAO,QAAQ,GACnB,sBAAsB,GAAG;IACvB,IAAI,EAAE,OAAO,QAAQ,CAAC;CACvB,CAAC"}
|
|
@@ -4,22 +4,23 @@ import * as React from "react";
|
|
|
4
4
|
import { measurementPx, MEASUREMENT_PROFILES } from "../../measurements/generated.js";
|
|
5
5
|
import styles from "./Icon.module.scss.js";
|
|
6
6
|
const iconTargets = MEASUREMENT_PROFILES.targets.icon;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
const TONE_CLASS = {
|
|
8
|
+
accent: styles.toneAccent,
|
|
9
|
+
info: styles.toneInfo,
|
|
10
|
+
success: styles.toneSuccess,
|
|
11
|
+
warning: styles.toneWarning,
|
|
12
|
+
danger: styles.toneDanger
|
|
13
|
+
};
|
|
14
|
+
const COLOR_CLASS = {
|
|
15
|
+
primary: styles.colorPrimary,
|
|
16
|
+
secondary: styles.colorSecondary,
|
|
17
|
+
tertiary: styles.colorTertiary
|
|
18
|
+
};
|
|
19
|
+
const IconRoot = React.forwardRef(function Icon2({ icon: IconComponent, size = "md", weight = "regular", tone, color, iconProps, className, style, ...htmlProps }, ref) {
|
|
19
20
|
const classes = [
|
|
20
21
|
styles.icon,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
styles[size],
|
|
23
|
+
tone ? TONE_CLASS[tone] : color ? COLOR_CLASS[color] : void 0,
|
|
23
24
|
className
|
|
24
25
|
].filter(Boolean).join(" ");
|
|
25
26
|
const resolvedIconProps = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const iconButton = "
|
|
4
|
-
const sm = "
|
|
5
|
-
const md = "
|
|
6
|
-
const lg = "
|
|
7
|
-
const ghost = "
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const pressed = "
|
|
3
|
+
const iconButton = "_iconButton_1w3xn_1";
|
|
4
|
+
const sm = "_sm_1w3xn_67";
|
|
5
|
+
const md = "_md_1w3xn_100";
|
|
6
|
+
const lg = "_lg_1w3xn_121";
|
|
7
|
+
const ghost = "_ghost_1w3xn_142";
|
|
8
|
+
const soft = "_soft_1w3xn_149";
|
|
9
|
+
const outline = "_outline_1w3xn_159";
|
|
10
|
+
const pressed = "_pressed_1w3xn_170";
|
|
11
11
|
const styles = {
|
|
12
12
|
iconButton,
|
|
13
13
|
sm,
|
|
14
14
|
md,
|
|
15
15
|
lg,
|
|
16
16
|
ghost,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
soft,
|
|
18
|
+
outline,
|
|
19
19
|
pressed
|
|
20
20
|
};
|
|
21
21
|
exports.default = styles;
|
|
@@ -23,7 +23,7 @@ exports.ghost = ghost;
|
|
|
23
23
|
exports.iconButton = iconButton;
|
|
24
24
|
exports.lg = lg;
|
|
25
25
|
exports.md = md;
|
|
26
|
-
exports.
|
|
26
|
+
exports.outline = outline;
|
|
27
27
|
exports.pressed = pressed;
|
|
28
28
|
exports.sm = sm;
|
|
29
|
-
exports.
|
|
29
|
+
exports.soft = soft;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const iconButton = "
|
|
2
|
-
const sm = "
|
|
3
|
-
const md = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const ghost = "
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const pressed = "
|
|
1
|
+
const iconButton = "_iconButton_1w3xn_1";
|
|
2
|
+
const sm = "_sm_1w3xn_67";
|
|
3
|
+
const md = "_md_1w3xn_100";
|
|
4
|
+
const lg = "_lg_1w3xn_121";
|
|
5
|
+
const ghost = "_ghost_1w3xn_142";
|
|
6
|
+
const soft = "_soft_1w3xn_149";
|
|
7
|
+
const outline = "_outline_1w3xn_159";
|
|
8
|
+
const pressed = "_pressed_1w3xn_170";
|
|
9
9
|
const styles = {
|
|
10
10
|
iconButton,
|
|
11
11
|
sm,
|
|
12
12
|
md,
|
|
13
13
|
lg,
|
|
14
14
|
ghost,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
soft,
|
|
16
|
+
outline,
|
|
17
17
|
pressed
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
@@ -22,8 +22,8 @@ export {
|
|
|
22
22
|
iconButton,
|
|
23
23
|
lg,
|
|
24
24
|
md,
|
|
25
|
-
|
|
25
|
+
outline,
|
|
26
26
|
pressed,
|
|
27
27
|
sm,
|
|
28
|
-
|
|
28
|
+
soft
|
|
29
29
|
};
|
|
@@ -18,12 +18,12 @@ export interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLBut
|
|
|
18
18
|
*
|
|
19
19
|
* - `ghost` (default): transparent at rest, subtle hover. Fits inside
|
|
20
20
|
* dense topbars and row affordances.
|
|
21
|
-
* - `
|
|
21
|
+
* - `soft`: painted with the tertiary surface; use when the affordance
|
|
22
22
|
* sits on a matching surface and needs a touch more weight.
|
|
23
|
-
* - `
|
|
24
|
-
*
|
|
23
|
+
* - `outline`: hairline border; use as a secondary control alongside a
|
|
24
|
+
* solid `Button`.
|
|
25
25
|
* @default "ghost" */
|
|
26
|
-
variant?: "ghost" | "
|
|
26
|
+
variant?: "ghost" | "soft" | "outline";
|
|
27
27
|
/** Button size. Uses the same height ladder as Button so icon-only
|
|
28
28
|
* affordances align with toolbar actions and adjacent fields.
|
|
29
29
|
* @default "md" */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,CACX;IACC,iEAAiE;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;;0BAQsB;IACtB,OAAO,CAAC,EAAE,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,CACX;IACC,iEAAiE;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;;0BAQsB;IACtB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC;;uBAEmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;iDAC6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAgDD,eAAO,MAAM,UAAU;;CAErB,CAAC"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const wrapper = "
|
|
4
|
-
const label = "
|
|
5
|
-
const required = "
|
|
6
|
-
const helper = "
|
|
7
|
-
const helperError = "
|
|
8
|
-
const errorMessage = "
|
|
9
|
-
const input = "
|
|
10
|
-
const sm = "
|
|
11
|
-
const md = "
|
|
12
|
-
const lg = "
|
|
13
|
-
const error = "
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const shortcut = "_shortcut_2s7a9_144";
|
|
19
|
-
const adornment = "_adornment_2s7a9_238";
|
|
3
|
+
const wrapper = "_wrapper_ydgym_1";
|
|
4
|
+
const label = "_label_ydgym_8";
|
|
5
|
+
const required = "_required_ydgym_17";
|
|
6
|
+
const helper = "_helper_ydgym_22";
|
|
7
|
+
const helperError = "_helperError_ydgym_32";
|
|
8
|
+
const errorMessage = "_errorMessage_ydgym_33";
|
|
9
|
+
const input = "_input_ydgym_43";
|
|
10
|
+
const sm = "_sm_ydgym_81";
|
|
11
|
+
const md = "_md_ydgym_92";
|
|
12
|
+
const lg = "_lg_ydgym_104";
|
|
13
|
+
const error = "_error_ydgym_33";
|
|
14
|
+
const inputContainer = "_inputContainer_ydgym_131";
|
|
15
|
+
const hasAdornment = "_hasAdornment_ydgym_138";
|
|
16
|
+
const shortcut = "_shortcut_ydgym_139";
|
|
17
|
+
const adornment = "_adornment_ydgym_226";
|
|
20
18
|
const styles = {
|
|
21
19
|
wrapper,
|
|
22
20
|
label,
|
|
@@ -29,8 +27,6 @@ const styles = {
|
|
|
29
27
|
md,
|
|
30
28
|
lg,
|
|
31
29
|
error,
|
|
32
|
-
success,
|
|
33
|
-
helperSuccess,
|
|
34
30
|
inputContainer,
|
|
35
31
|
hasAdornment,
|
|
36
32
|
shortcut,
|
|
@@ -43,7 +39,6 @@ exports.errorMessage = errorMessage;
|
|
|
43
39
|
exports.hasAdornment = hasAdornment;
|
|
44
40
|
exports.helper = helper;
|
|
45
41
|
exports.helperError = helperError;
|
|
46
|
-
exports.helperSuccess = helperSuccess;
|
|
47
42
|
exports.input = input;
|
|
48
43
|
exports.inputContainer = inputContainer;
|
|
49
44
|
exports.label = label;
|
|
@@ -52,5 +47,4 @@ exports.md = md;
|
|
|
52
47
|
exports.required = required;
|
|
53
48
|
exports.shortcut = shortcut;
|
|
54
49
|
exports.sm = sm;
|
|
55
|
-
exports.success = success;
|
|
56
50
|
exports.wrapper = wrapper;
|