@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
package/src/tokens/_mixins.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// ============================================
|
|
4
4
|
|
|
5
5
|
@use "variables" as *;
|
|
6
|
+
@use "measurements.generated" as measurements;
|
|
6
7
|
|
|
7
8
|
// Focus ring for keyboard accessibility
|
|
8
9
|
@mixin focus-ring {
|
|
@@ -16,8 +17,8 @@
|
|
|
16
17
|
appearance: none;
|
|
17
18
|
background: transparent;
|
|
18
19
|
border: none;
|
|
19
|
-
padding: 0;
|
|
20
|
-
margin: 0;
|
|
20
|
+
padding: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
21
|
+
margin: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
21
22
|
font: inherit;
|
|
22
23
|
color: inherit;
|
|
23
24
|
cursor: pointer;
|
|
@@ -31,13 +32,21 @@
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
// The one disabled treatment. Form controls keep `:disabled`; non-form
|
|
36
|
+
// pressables carry `aria-disabled` and read this through `[aria-disabled]`.
|
|
37
|
+
@mixin disabled-state {
|
|
38
|
+
opacity: var(--fui-opacity-disabled, #{$fui-opacity-disabled});
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
// Base interactive element
|
|
35
43
|
@mixin interactive-base {
|
|
36
44
|
transition:
|
|
37
45
|
background-color var(--fui-transition-fast, #{$fui-transition-fast}),
|
|
38
46
|
border-color var(--fui-transition-fast, #{$fui-transition-fast}),
|
|
39
47
|
box-shadow var(--fui-transition-fast, #{$fui-transition-fast}),
|
|
40
|
-
opacity var(--fui-transition-fast, #{$fui-transition-fast})
|
|
48
|
+
opacity var(--fui-transition-fast, #{$fui-transition-fast}),
|
|
49
|
+
scale var(--fui-transition-fast, #{$fui-transition-fast});
|
|
41
50
|
|
|
42
51
|
&:focus-visible {
|
|
43
52
|
@include focus-ring;
|
|
@@ -45,7 +54,8 @@
|
|
|
45
54
|
|
|
46
55
|
&:disabled,
|
|
47
56
|
&[data-disabled] {
|
|
48
|
-
|
|
57
|
+
@include disabled-state;
|
|
58
|
+
|
|
49
59
|
pointer-events: none;
|
|
50
60
|
}
|
|
51
61
|
}
|
|
@@ -53,14 +63,25 @@
|
|
|
53
63
|
// Card surface
|
|
54
64
|
@mixin surface-elevated {
|
|
55
65
|
background-color: var(--fui-bg-elevated, #{$fui-bg-elevated});
|
|
56
|
-
border:
|
|
57
|
-
|
|
66
|
+
border: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid
|
|
67
|
+
var(--fui-border, #{$fui-border});
|
|
68
|
+
border-radius: var(--fui-radius-l1, #{$fui-radius-l1});
|
|
58
69
|
}
|
|
59
70
|
|
|
60
71
|
@mixin form-group-surface {
|
|
61
72
|
background-color: var(--fui-form-group-bg, var(--fui-bg-secondary, #{$fui-bg-secondary}));
|
|
62
|
-
border:
|
|
63
|
-
|
|
73
|
+
border: var(--fui-stroke-hairline, #{$fui-stroke-hairline}) solid
|
|
74
|
+
var(--fui-form-group-border, var(--fui-border, #{$fui-border}));
|
|
75
|
+
border-radius: var(--fui-radius-l1, #{$fui-radius-l1});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// The shared selected treatment for segmented controls: Tabs pills, ToggleGroup
|
|
79
|
+
// items, Prompt mode buttons. One surface, one hairline, one ink.
|
|
80
|
+
@mixin segmented-selection {
|
|
81
|
+
color: var(--fui-text-primary, #{$fui-text-primary});
|
|
82
|
+
background-color: var(--fui-control-selected-bg, #{$fui-bg-active});
|
|
83
|
+
box-shadow: inset 0 0 0 var(--fui-stroke-hairline, #{$fui-stroke-hairline})
|
|
84
|
+
var(--fui-control-selected-border, #{$fui-control-selected-border});
|
|
64
85
|
}
|
|
65
86
|
|
|
66
87
|
// Responsive breakpoint mixins (mobile-first, min-width)
|
|
@@ -153,13 +174,14 @@
|
|
|
153
174
|
}
|
|
154
175
|
}
|
|
155
176
|
|
|
156
|
-
// Visually hidden (for screen readers)
|
|
177
|
+
// Visually hidden (for screen readers). The clipping box is one CSS pixel by
|
|
178
|
+
// spec, not by design: it borrows the hairline stroke so no bare px lives here.
|
|
157
179
|
@mixin visually-hidden {
|
|
158
180
|
position: absolute;
|
|
159
|
-
width:
|
|
160
|
-
height:
|
|
161
|
-
padding: 0;
|
|
162
|
-
margin: -
|
|
181
|
+
width: var(--fui-stroke-hairline, #{$fui-stroke-hairline});
|
|
182
|
+
height: var(--fui-stroke-hairline, #{$fui-stroke-hairline});
|
|
183
|
+
padding: var(--fui-raw-space-0, #{measurements.raw-space(0)});
|
|
184
|
+
margin: calc(-1 * var(--fui-stroke-hairline, #{$fui-stroke-hairline}));
|
|
163
185
|
overflow: hidden;
|
|
164
186
|
clip: rect(0, 0, 0, 0);
|
|
165
187
|
white-space: nowrap;
|
|
@@ -177,10 +199,14 @@
|
|
|
177
199
|
}
|
|
178
200
|
}
|
|
179
201
|
|
|
180
|
-
//
|
|
181
|
-
|
|
202
|
+
// The one high-contrast treatment: a default-weight outline in the ink colour,
|
|
203
|
+
// drawn inside the box so geometry does not shift. Components include this on
|
|
204
|
+
// the element that carries their border; no hand-written `prefers-contrast`
|
|
205
|
+
// blocks elsewhere.
|
|
206
|
+
@mixin high-contrast-outline($color: var(--fui-text-primary, #{$fui-text-primary})) {
|
|
182
207
|
@media (prefers-contrast: more) {
|
|
183
|
-
|
|
208
|
+
outline: var(--fui-stroke-default, #{$fui-stroke-default}) solid $color;
|
|
209
|
+
outline-offset: calc(-1 * var(--fui-stroke-default, #{$fui-stroke-default}));
|
|
184
210
|
}
|
|
185
211
|
}
|
|
186
212
|
|
|
@@ -203,27 +229,3 @@
|
|
|
203
229
|
animation: none;
|
|
204
230
|
}
|
|
205
231
|
}
|
|
206
|
-
|
|
207
|
-
// Focus ring for success states (e.g., validated form fields)
|
|
208
|
-
@mixin focus-ring-success {
|
|
209
|
-
outline: none;
|
|
210
|
-
box-shadow:
|
|
211
|
-
0 0 0 1px
|
|
212
|
-
color-mix(in srgb, var(--fui-color-success-text, #{$fui-color-success-text}) 42%, transparent),
|
|
213
|
-
0 0 0 calc(var(--fui-focus-ring-width, #{$fui-focus-ring-width}) + 1px)
|
|
214
|
-
color-mix(in srgb, var(--fui-color-success-text, #{$fui-color-success-text}) 14%, transparent),
|
|
215
|
-
0 10px 24px -16px
|
|
216
|
-
color-mix(in srgb, var(--fui-color-success-text, #{$fui-color-success-text}) 28%, transparent);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Focus ring for error states (e.g., invalid form fields)
|
|
220
|
-
@mixin focus-ring-error {
|
|
221
|
-
outline: none;
|
|
222
|
-
box-shadow:
|
|
223
|
-
0 0 0 1px
|
|
224
|
-
color-mix(in srgb, var(--fui-color-danger-text, #{$fui-color-danger-text}) 42%, transparent),
|
|
225
|
-
0 0 0 calc(var(--fui-focus-ring-width, #{$fui-focus-ring-width}) + 1px)
|
|
226
|
-
color-mix(in srgb, var(--fui-color-danger-text, #{$fui-color-danger-text}) 14%, transparent),
|
|
227
|
-
0 10px 24px -16px
|
|
228
|
-
color-mix(in srgb, var(--fui-color-danger-text, #{$fui-color-danger-text}) 28%, transparent);
|
|
229
|
-
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// ============================================
|
|
4
4
|
//
|
|
5
5
|
// One neutral ramp with 11 shades (50-950) powering one light theme and one
|
|
6
|
-
// dark theme. Theme variation comes from the seeds ($fui-brand,
|
|
6
|
+
// dark theme. Theme variation comes from the seeds ($fui-brand,
|
|
7
7
|
// $fui-radius-style) — not from alternative neutral ramps.
|
|
8
8
|
//
|
|
9
9
|
// ============================================
|
|
@@ -160,6 +160,7 @@
|
|
|
160
160
|
@include register-length("radius-lg", $fui-radius-lg);
|
|
161
161
|
@include register-length("radius-xl", $fui-radius-xl);
|
|
162
162
|
@include register-length("radius-full", $fui-radius-full);
|
|
163
|
+
@include register-length("radius-none", $fui-radius-none);
|
|
163
164
|
|
|
164
165
|
// ------------------------------------------
|
|
165
166
|
// Component Heights — Lengths
|
|
@@ -219,4 +220,12 @@
|
|
|
219
220
|
// --fui-transition-fast/normal (shorthand timing)
|
|
220
221
|
// --fui-backdrop, --fui-dark-backdrop (rgba — registered above as <color>)
|
|
221
222
|
// ------------------------------------------
|
|
223
|
+
|
|
224
|
+
// ------------------------------------------
|
|
225
|
+
// Runtime dials — one value each, animatable
|
|
226
|
+
// ------------------------------------------
|
|
227
|
+
@include register-number("opacity-disabled", $fui-opacity-disabled);
|
|
228
|
+
@include register-number("opacity-muted", $fui-opacity-muted);
|
|
229
|
+
@include register-number("opacity-faint", $fui-opacity-faint);
|
|
230
|
+
@include register-number("scale", $fui-scale);
|
|
222
231
|
}
|
package/src/tokens/_seeds.scss
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
// Example:
|
|
12
12
|
// @use '@usefragments/ui/styles' with (
|
|
13
13
|
// $fui-brand: #0066ff,
|
|
14
|
-
// $fui-density: "compact",
|
|
15
14
|
// $fui-radius-style: "rounded"
|
|
16
15
|
// );
|
|
17
16
|
//
|
|
@@ -34,11 +33,6 @@ $fui-brand: #f56138 !default;
|
|
|
34
33
|
/// @type String
|
|
35
34
|
$fui-neutral: "paper" !default;
|
|
36
35
|
|
|
37
|
-
/// Density preset controlling spacing scale
|
|
38
|
-
/// Options: "compact" | "default" | "relaxed"
|
|
39
|
-
/// @type String
|
|
40
|
-
$fui-density: "default" !default;
|
|
41
|
-
|
|
42
36
|
/// Radius style for borders and corners
|
|
43
37
|
/// Options: "sharp" | "subtle" | "default" | "rounded" | "pill"
|
|
44
38
|
/// @type String
|
|
@@ -49,16 +43,11 @@ $fui-radius-style: "default" !default;
|
|
|
49
43
|
// --------------------------------------------
|
|
50
44
|
// Fail fast at compile time if invalid seed values are provided.
|
|
51
45
|
|
|
52
|
-
$_valid-neutrals: ("paper"
|
|
46
|
+
$_valid-neutrals: ("paper");
|
|
53
47
|
@if not list.index($_valid-neutrals, $fui-neutral) {
|
|
54
48
|
@error "Invalid $fui-neutral: '#{$fui-neutral}'. Must be one of: #{$_valid-neutrals}";
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
$_valid-densities: measurements.$density-profile-names;
|
|
58
|
-
@if not list.index($_valid-densities, $fui-density) {
|
|
59
|
-
@error "Invalid $fui-density: '#{$fui-density}'. Must be one of: #{$_valid-densities}";
|
|
60
|
-
}
|
|
61
|
-
|
|
62
51
|
$_valid-radii: measurements.$radius-profile-names;
|
|
63
52
|
@if not list.index($_valid-radii, $fui-radius-style) {
|
|
64
53
|
@error "Invalid $fui-radius-style: '#{$fui-radius-style}'. Must be one of: #{$_valid-radii}";
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
// @use '@usefragments/ui/styles' with (
|
|
15
15
|
// $fui-brand: #0066ff,
|
|
16
16
|
// $fui-neutral: "ice",
|
|
17
|
-
// $fui-density: "compact"
|
|
18
17
|
// );
|
|
19
18
|
//
|
|
20
19
|
// 2. CSS CUSTOM PROPERTIES (Runtime theming):
|
|
@@ -40,7 +39,10 @@ $fui-base-unit: computed.$computed-base-unit !default;
|
|
|
40
39
|
// Helper function to convert base units to rem
|
|
41
40
|
// Usage: fui-unit(2) = 2 * 7px = 14px = 1rem (when base is 14px)
|
|
42
41
|
@function fui-unit($multiplier) {
|
|
43
|
-
@return calc(
|
|
42
|
+
@return calc(
|
|
43
|
+
#{$multiplier} * #{$fui-base-unit} / #{$fui-base-font-size} * 1rem *
|
|
44
|
+
var(--fui-scale, #{$fui-scale})
|
|
45
|
+
);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
// --------------------------------------------
|
|
@@ -147,7 +149,7 @@ $fui-letter-spacing-wide: map.get(
|
|
|
147
149
|
) !default;
|
|
148
150
|
|
|
149
151
|
// --------------------------------------------
|
|
150
|
-
// Spacing (derived from
|
|
152
|
+
// Spacing (derived from the measurement spacing record)
|
|
151
153
|
// --------------------------------------------
|
|
152
154
|
// Micro-spacing for small internal alignments (margins, thumb offsets)
|
|
153
155
|
$fui-space-px: computed.$computed-space-px !default;
|
|
@@ -187,6 +189,16 @@ $fui-radius-md: computed.$computed-radius-md !default;
|
|
|
187
189
|
$fui-radius-lg: computed.$computed-radius-lg !default;
|
|
188
190
|
$fui-radius-xl: computed.$computed-radius-xl !default;
|
|
189
191
|
$fui-radius-full: computed.$computed-radius-full !default;
|
|
192
|
+
/// Square corners where a shape must not follow the radius profile (joined
|
|
193
|
+
/// segments, skeleton blocks, code gutters).
|
|
194
|
+
$fui-radius-none: 0px !default;
|
|
195
|
+
|
|
196
|
+
// Radius nesting levels. A surface (l1) holds controls (l2) which hold marks
|
|
197
|
+
// (l3); each level maps onto the active radius profile, so concentric corners
|
|
198
|
+
// stay concentric when a consumer switches `sharp`, `rounded`, or `pill`.
|
|
199
|
+
$fui-radius-l1: $fui-radius-lg !default;
|
|
200
|
+
$fui-radius-l2: $fui-radius-md !default;
|
|
201
|
+
$fui-radius-l3: $fui-radius-sm !default;
|
|
190
202
|
|
|
191
203
|
// --------------------------------------------
|
|
192
204
|
// Strokes + control tracks (mirror the measurement CSS vars for SCSS fallbacks)
|
|
@@ -194,6 +206,19 @@ $fui-radius-full: computed.$computed-radius-full !default;
|
|
|
194
206
|
$fui-stroke-hairline: measurements.target-value("stroke", "hairline") !default;
|
|
195
207
|
$fui-stroke-default: measurements.target-value("stroke", "default") !default;
|
|
196
208
|
$fui-stroke-strong: measurements.target-value("stroke", "strong") !default;
|
|
209
|
+
|
|
210
|
+
// The one disabled treatment: every disabled control fades by this amount.
|
|
211
|
+
$fui-opacity-disabled: 0.5 !default;
|
|
212
|
+
/// Dimmed-but-live: secondary glyphs, collapsed rails, decorative rules.
|
|
213
|
+
$fui-opacity-muted: 0.7 !default;
|
|
214
|
+
/// Barely-there: pulse rings and glow tracks that animate up from almost nothing.
|
|
215
|
+
$fui-opacity-faint: 0.3 !default;
|
|
216
|
+
/// Hairline drawn around a selected segmented item (transparent unless a theme wants it).
|
|
217
|
+
$fui-control-selected-border: transparent !default;
|
|
218
|
+
|
|
219
|
+
// Runtime multiplier on the base unit. `fui-unit()` reads it so a consumer can
|
|
220
|
+
// scale the whole measurement system from one custom property.
|
|
221
|
+
$fui-scale: 1 !default;
|
|
197
222
|
$fui-control-track-micro: measurements.target-value("controlTrack", "micro") !default;
|
|
198
223
|
$fui-control-track-sm: measurements.target-value("controlTrack", "sm") !default;
|
|
199
224
|
$fui-control-track-md: measurements.target-value("controlTrack", "md") !default;
|
|
@@ -382,8 +407,8 @@ $fui-breakpoint-xl: 1280px !default;
|
|
|
382
407
|
// Component-specific tokens
|
|
383
408
|
// --------------------------------------------
|
|
384
409
|
|
|
385
|
-
// Interactive control heights are fixed geometry
|
|
386
|
-
//
|
|
410
|
+
// Interactive control heights are fixed geometry; the spacing scale cannot
|
|
411
|
+
// resize a named control.
|
|
387
412
|
$fui-control-height-xs: measurements.target-value("controlTrack", "micro") !default;
|
|
388
413
|
$fui-control-height-sm: measurements.target-value("controlTrack", "sm") !default;
|
|
389
414
|
$fui-control-height-md: measurements.target-value("controlTrack", "md") !default;
|
|
@@ -400,7 +425,7 @@ $fui-input-height-sm: measurements.target-value("fieldTrack", "sm") !default;
|
|
|
400
425
|
$fui-input-height: measurements.target-value("fieldTrack", "md") !default;
|
|
401
426
|
$fui-input-height-lg: measurements.target-value("fieldTrack", "lg") !default;
|
|
402
427
|
|
|
403
|
-
// Touch targets (
|
|
428
|
+
// Touch targets (from the measurement spacing record)
|
|
404
429
|
$fui-touch-sm: computed.$computed-touch-sm !default;
|
|
405
430
|
$fui-touch-md: computed.$computed-touch-md !default;
|
|
406
431
|
$fui-touch-lg: computed.$computed-touch-lg !default;
|
|
@@ -436,10 +461,11 @@ $fui-overlay-layer-swipe: 49 !default;
|
|
|
436
461
|
$fui-overlay-layer-backdrop: 50 !default;
|
|
437
462
|
$fui-overlay-layer-modal: 51 !default;
|
|
438
463
|
$fui-overlay-layer-anchored: 52 !default;
|
|
464
|
+
$fui-overlay-layer-toast: 55 !default;
|
|
439
465
|
$fui-overlay-layer-tooltip: 60 !default;
|
|
440
466
|
|
|
441
467
|
// Sidebar (multi-consumer — used by Sidebar, NavigationMenu, Theme)
|
|
442
|
-
$fui-sidebar-item-height: computed.$computed-sidebar-item-height !default;
|
|
468
|
+
$fui-sidebar-item-height: computed.$computed-sidebar-item-height !default;
|
|
443
469
|
|
|
444
470
|
// AppShell Layout
|
|
445
471
|
$fui-appshell-header-height: map.get(
|
|
@@ -554,19 +580,19 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
554
580
|
|
|
555
581
|
// Spacing (micro)
|
|
556
582
|
--fui-space-px: #{$fui-space-px};
|
|
557
|
-
--fui-space-0-5: #{$fui-space-0-5};
|
|
558
|
-
--fui-space-0-75: #{$fui-space-0-75};
|
|
583
|
+
--fui-space-0-5: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-0-5});
|
|
584
|
+
--fui-space-0-75: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-0-75});
|
|
559
585
|
|
|
560
586
|
// Spacing
|
|
561
|
-
--fui-space-1: #{$fui-space-1};
|
|
562
|
-
--fui-space-2: #{$fui-space-2};
|
|
563
|
-
--fui-space-3: #{$fui-space-3};
|
|
564
|
-
--fui-space-4: #{$fui-space-4};
|
|
565
|
-
--fui-space-5: #{$fui-space-5};
|
|
566
|
-
--fui-space-6: #{$fui-space-6};
|
|
567
|
-
--fui-space-8: #{$fui-space-8};
|
|
568
|
-
--fui-space-10: #{$fui-space-10};
|
|
569
|
-
--fui-space-12: #{$fui-space-12};
|
|
587
|
+
--fui-space-1: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-1});
|
|
588
|
+
--fui-space-2: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-2});
|
|
589
|
+
--fui-space-3: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-3});
|
|
590
|
+
--fui-space-4: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-4});
|
|
591
|
+
--fui-space-5: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-5});
|
|
592
|
+
--fui-space-6: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-6});
|
|
593
|
+
--fui-space-8: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-8});
|
|
594
|
+
--fui-space-10: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-10});
|
|
595
|
+
--fui-space-12: calc(var(--fui-scale, #{$fui-scale}) * #{$fui-space-12});
|
|
570
596
|
|
|
571
597
|
// Popup geometry — the numbers Select/Listbox/Combobox derive their scroll
|
|
572
598
|
// viewport from. Override these and the peek height follows.
|
|
@@ -581,9 +607,17 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
581
607
|
--fui-radius-lg: #{$fui-radius-lg};
|
|
582
608
|
--fui-radius-xl: #{$fui-radius-xl};
|
|
583
609
|
--fui-radius-full: #{$fui-radius-full};
|
|
610
|
+
--fui-radius-none: #{$fui-radius-none};
|
|
611
|
+
--fui-radius-l1: var(--fui-radius-lg);
|
|
612
|
+
--fui-radius-l2: var(--fui-radius-md);
|
|
613
|
+
--fui-radius-l3: var(--fui-radius-sm);
|
|
584
614
|
|
|
585
615
|
// Transitions
|
|
586
616
|
--fui-transition-fast: #{$fui-transition-fast};
|
|
617
|
+
--fui-opacity-disabled: #{$fui-opacity-disabled};
|
|
618
|
+
--fui-opacity-muted: #{$fui-opacity-muted};
|
|
619
|
+
--fui-opacity-faint: #{$fui-opacity-faint};
|
|
620
|
+
--fui-scale: #{$fui-scale};
|
|
587
621
|
--fui-transition-normal: #{$fui-transition-normal};
|
|
588
622
|
|
|
589
623
|
// Motion primitives
|
|
@@ -598,6 +632,7 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
598
632
|
--fui-overlay-layer-backdrop: #{$fui-overlay-layer-backdrop};
|
|
599
633
|
--fui-overlay-layer-modal: #{$fui-overlay-layer-modal};
|
|
600
634
|
--fui-overlay-layer-anchored: #{$fui-overlay-layer-anchored};
|
|
635
|
+
--fui-overlay-layer-toast: #{$fui-overlay-layer-toast};
|
|
601
636
|
--fui-overlay-layer-tooltip: #{$fui-overlay-layer-tooltip};
|
|
602
637
|
|
|
603
638
|
// Colors — Accent (light-dark for automatic dark mode)
|
|
@@ -721,6 +756,7 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
721
756
|
// pointer-down state; selected must remain visible without dominating its
|
|
722
757
|
// surrounding surface.
|
|
723
758
|
--fui-control-selected-bg: color-mix(in srgb, var(--fui-text-primary) 9%, transparent);
|
|
759
|
+
--fui-control-selected-border: #{$fui-control-selected-border};
|
|
724
760
|
|
|
725
761
|
// Checked/value controls carry product meaning, so they follow the accent
|
|
726
762
|
// rather than button chrome. This keeps Checkbox, RadioGroup, and Switch
|
|
@@ -731,17 +767,8 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
731
767
|
--fui-control-checked-border-hover: var(--fui-color-accent-hover);
|
|
732
768
|
--fui-control-checked-color: var(--fui-color-on-accent);
|
|
733
769
|
|
|
734
|
-
//
|
|
735
|
-
//
|
|
736
|
-
--fui-field-bg: color-mix(in srgb, var(--fui-bg-elevated) 72%, transparent);
|
|
737
|
-
--fui-field-bg-disabled: color-mix(in srgb, var(--fui-bg-tertiary) 78%, var(--fui-bg-primary));
|
|
738
|
-
--fui-field-border: var(--fui-border-strong);
|
|
739
|
-
--fui-field-border-hover: color-mix(
|
|
740
|
-
in srgb,
|
|
741
|
-
var(--fui-text-tertiary) 46%,
|
|
742
|
-
var(--fui-border-strong)
|
|
743
|
-
);
|
|
744
|
-
--fui-field-border-focus: var(--fui-text-primary);
|
|
770
|
+
// Field shells take their edge and ground from --fui-border / --fui-bg-primary
|
|
771
|
+
// through the field recipe; only selection chrome needs its own hooks.
|
|
745
772
|
--fui-field-selection-bg: var(--fui-control-selected-bg);
|
|
746
773
|
--fui-field-selection-bg-hover: color-mix(in srgb, var(--fui-text-primary) 11%, transparent);
|
|
747
774
|
--fui-field-selection-border: var(--fui-border-strong);
|
|
@@ -880,6 +907,8 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
880
907
|
--fui-sidebar-border: var(--fui-border-default);
|
|
881
908
|
--fui-sidebar-item-color: var(--fui-text-secondary);
|
|
882
909
|
--fui-sidebar-item-icon-color: var(--fui-text-tertiary);
|
|
910
|
+
--fui-sidebar-item-radius: var(--fui-radius-full);
|
|
911
|
+
--fui-sidebar-section-label-size: var(--fui-font-size-xs);
|
|
883
912
|
--fui-sidebar-item-hover-bg: var(--fui-bg-hover);
|
|
884
913
|
--fui-sidebar-item-hover-color: var(--fui-text-primary);
|
|
885
914
|
--fui-sidebar-item-active-bg: var(--fui-control-selected-bg);
|
|
@@ -938,12 +967,6 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
938
967
|
--fui-tabs-pills-bg: color-mix(in srgb, var(--fui-text-primary) 5%, transparent);
|
|
939
968
|
--fui-tabs-pills-border: var(--fui-border-default);
|
|
940
969
|
--fui-tabs-pill-hover-bg: transparent;
|
|
941
|
-
--fui-tabs-pill-active-bg: var(--fui-control-selected-bg);
|
|
942
|
-
--fui-tabs-pill-active-border: transparent;
|
|
943
|
-
--fui-tabs-pill-active-shadow: none;
|
|
944
|
-
--fui-toggle-group-selected-bg: var(--fui-control-selected-bg);
|
|
945
|
-
--fui-toggle-group-selected-border: transparent;
|
|
946
|
-
--fui-toggle-group-selected-shadow: none;
|
|
947
970
|
|
|
948
971
|
// Header search is persistent shell chrome rather than a ghost action.
|
|
949
972
|
// One surface step above divided card headers keeps this global affordance
|
|
@@ -982,13 +1005,13 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
982
1005
|
--fui-input-height: var(--fui-field-track-md);
|
|
983
1006
|
--fui-input-height-lg: var(--fui-field-track-lg);
|
|
984
1007
|
|
|
985
|
-
// Touch targets (
|
|
1008
|
+
// Touch targets (Fragments control floor: ≥32px)
|
|
986
1009
|
--fui-touch-sm: #{$fui-touch-sm};
|
|
987
1010
|
--fui-touch-md: #{$fui-touch-md};
|
|
988
1011
|
--fui-touch-lg: #{$fui-touch-lg};
|
|
989
1012
|
--fui-target-size-min: #{$fui-target-size-min};
|
|
990
1013
|
|
|
991
|
-
// Sidebar
|
|
1014
|
+
// Sidebar
|
|
992
1015
|
--fui-sidebar-item-height: #{$fui-sidebar-item-height};
|
|
993
1016
|
|
|
994
1017
|
// AppShell Layout
|
|
@@ -1000,12 +1023,6 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
1000
1023
|
// Sass seeds. Attribute specificity intentionally matches :root so these
|
|
1001
1024
|
// later rules can override the compiled default on either the document root
|
|
1002
1025
|
// or a scoped provider without inline numeric maps.
|
|
1003
|
-
@each $density in measurements.$density-profile-names {
|
|
1004
|
-
[data-fui-density="#{$density}"] {
|
|
1005
|
-
@include measurements.emit-density-profile($density);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
1026
|
@each $radius-style in measurements.$radius-profile-names {
|
|
1010
1027
|
[data-fui-radius-style="#{$radius-style}"] {
|
|
1011
1028
|
@include measurements.emit-radius-profile($radius-style);
|
|
@@ -1159,31 +1176,32 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
1159
1176
|
* {
|
|
1160
1177
|
// Firefox
|
|
1161
1178
|
scrollbar-width: thin;
|
|
1162
|
-
scrollbar-color: var(--fui-scrollbar-thumb
|
|
1179
|
+
scrollbar-color: var(--fui-scrollbar-thumb, #{$fui-scrollbar-thumb})
|
|
1180
|
+
var(--fui-scrollbar-track, #{$fui-scrollbar-track});
|
|
1163
1181
|
}
|
|
1164
1182
|
|
|
1165
1183
|
// Webkit browsers (Chrome, Safari, Edge)
|
|
1166
1184
|
*::-webkit-scrollbar {
|
|
1167
|
-
width: var(--fui-scrollbar-width);
|
|
1168
|
-
height: var(--fui-scrollbar-width);
|
|
1185
|
+
width: var(--fui-scrollbar-width, #{$fui-scrollbar-width});
|
|
1186
|
+
height: var(--fui-scrollbar-width, #{$fui-scrollbar-width});
|
|
1169
1187
|
}
|
|
1170
1188
|
|
|
1171
1189
|
*::-webkit-scrollbar-track {
|
|
1172
|
-
background: var(--fui-scrollbar-track);
|
|
1173
|
-
border-radius: calc(var(--fui-scrollbar-width) / 2);
|
|
1190
|
+
background: var(--fui-scrollbar-track, #{$fui-scrollbar-track});
|
|
1191
|
+
border-radius: calc(var(--fui-scrollbar-width, #{$fui-scrollbar-width}) / 2);
|
|
1174
1192
|
}
|
|
1175
1193
|
|
|
1176
1194
|
*::-webkit-scrollbar-thumb {
|
|
1177
|
-
background: var(--fui-scrollbar-thumb);
|
|
1178
|
-
border-radius: calc(var(--fui-scrollbar-width) / 2);
|
|
1195
|
+
background: var(--fui-scrollbar-thumb, #{$fui-scrollbar-thumb});
|
|
1196
|
+
border-radius: calc(var(--fui-scrollbar-width, #{$fui-scrollbar-width}) / 2);
|
|
1179
1197
|
|
|
1180
1198
|
&:hover {
|
|
1181
|
-
background: var(--fui-scrollbar-thumb-hover);
|
|
1199
|
+
background: var(--fui-scrollbar-thumb-hover, #{$fui-scrollbar-thumb-hover});
|
|
1182
1200
|
}
|
|
1183
1201
|
}
|
|
1184
1202
|
|
|
1185
1203
|
*::-webkit-scrollbar-corner {
|
|
1186
|
-
background: var(--fui-scrollbar-track);
|
|
1204
|
+
background: var(--fui-scrollbar-track, #{$fui-scrollbar-track});
|
|
1187
1205
|
}
|
|
1188
1206
|
}
|
|
1189
1207
|
|
|
@@ -1199,16 +1217,10 @@ $fui-dark-link-ink: $fui-dark-color-accent !default;
|
|
|
1199
1217
|
// Ensure minimum contrast on interactive elements
|
|
1200
1218
|
--fui-bg-hover: rgba(0, 0, 0, 0.12);
|
|
1201
1219
|
--fui-bg-active: rgba(0, 0, 0, 0.18);
|
|
1202
|
-
--fui-field-border: var(--fui-text-primary);
|
|
1203
|
-
--fui-field-border-hover: var(--fui-text-primary);
|
|
1204
|
-
--fui-field-border-focus: var(--fui-color-accent);
|
|
1205
1220
|
--fui-field-selection-border: var(--fui-color-accent);
|
|
1206
1221
|
--fui-form-group-border: var(--fui-text-primary);
|
|
1207
1222
|
--fui-sidebar-item-active-border: var(--fui-text-primary);
|
|
1208
|
-
--fui-
|
|
1209
|
-
--fui-tabs-pill-active-shadow: inset 0 0 0 1px var(--fui-tabs-pill-active-border);
|
|
1210
|
-
--fui-toggle-group-selected-border: var(--fui-text-primary);
|
|
1211
|
-
--fui-toggle-group-selected-shadow: inset 0 0 0 1px var(--fui-toggle-group-selected-border);
|
|
1223
|
+
--fui-control-selected-border: var(--fui-text-primary);
|
|
1212
1224
|
}
|
|
1213
1225
|
|
|
1214
1226
|
// Private mixin for dark mode token values
|
|
@@ -9,24 +9,18 @@
|
|
|
9
9
|
* the @usefragments/ui barrel export.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
MEASUREMENT_PROFILES,
|
|
14
|
-
type MeasurementDensity,
|
|
15
|
-
type MeasurementRadiusStyle,
|
|
16
|
-
} from "../measurements";
|
|
12
|
+
import { MEASUREMENT_PROFILES, type MeasurementRadiusStyle } from "../measurements";
|
|
17
13
|
|
|
18
14
|
// ============================================
|
|
19
15
|
// Types
|
|
20
16
|
// ============================================
|
|
21
17
|
|
|
22
18
|
export type NeutralPalette = "stone" | "ice" | "sand" | "earth" | "fire" | "fragments";
|
|
23
|
-
export type DensityPreset = MeasurementDensity;
|
|
24
19
|
export type RadiusStyle = MeasurementRadiusStyle;
|
|
25
20
|
|
|
26
21
|
export interface SeedConfig {
|
|
27
22
|
brand: string;
|
|
28
23
|
neutral: NeutralPalette;
|
|
29
|
-
density: DensityPreset;
|
|
30
24
|
radiusStyle: RadiusStyle;
|
|
31
25
|
danger?: string;
|
|
32
26
|
success?: string;
|
|
@@ -666,7 +660,6 @@ export function deriveSemanticHover(color: string): string {
|
|
|
666
660
|
export const DEFAULT_SEEDS: SeedConfig = {
|
|
667
661
|
brand: "#18181b",
|
|
668
662
|
neutral: "stone",
|
|
669
|
-
density: "default",
|
|
670
663
|
radiusStyle: "default",
|
|
671
664
|
// Semantic colors omitted - will use palette defaults from PALETTE_SEMANTIC_COLORS
|
|
672
665
|
};
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
type SeedConfig,
|
|
11
|
-
type DensityPreset,
|
|
12
11
|
type RadiusStyle,
|
|
13
12
|
PALETTES,
|
|
14
13
|
RADIUS_STYLES,
|
|
@@ -110,7 +109,6 @@ export interface ThemeConfig {
|
|
|
110
109
|
radius?: ThemeRadius;
|
|
111
110
|
shadows?: ThemeShadows;
|
|
112
111
|
dark?: ThemeDarkMode;
|
|
113
|
-
density?: DensityPreset;
|
|
114
112
|
radiusStyle?: RadiusStyle;
|
|
115
113
|
}
|
|
116
114
|
|
|
@@ -161,7 +159,6 @@ export function seedsToTheme(seeds: SeedConfig): ThemeConfig {
|
|
|
161
159
|
|
|
162
160
|
return {
|
|
163
161
|
name: "Custom",
|
|
164
|
-
density: seeds.density,
|
|
165
162
|
radiusStyle: seeds.radiusStyle,
|
|
166
163
|
colors: {
|
|
167
164
|
accent: seeds.brand,
|
|
@@ -262,15 +259,15 @@ export interface PresetDefinition {
|
|
|
262
259
|
const PRESET_DEFINITIONS: Record<string, PresetDefinition> = {
|
|
263
260
|
default: {
|
|
264
261
|
name: "Default",
|
|
265
|
-
seeds: { brand: "#18181b", neutral: "stone",
|
|
262
|
+
seeds: { brand: "#18181b", neutral: "stone", radiusStyle: "default" },
|
|
266
263
|
},
|
|
267
264
|
neutral: {
|
|
268
265
|
name: "Neutral",
|
|
269
|
-
seeds: { brand: "#71717a", neutral: "stone",
|
|
266
|
+
seeds: { brand: "#71717a", neutral: "stone", radiusStyle: "default" },
|
|
270
267
|
},
|
|
271
268
|
slate: {
|
|
272
269
|
name: "Slate",
|
|
273
|
-
seeds: { brand: "#64748b", neutral: "stone",
|
|
270
|
+
seeds: { brand: "#64748b", neutral: "stone", radiusStyle: "default" },
|
|
274
271
|
overrides: {
|
|
275
272
|
surfaces: { bgSecondary: "#f1f5f9", bgTertiary: "#e2e8f0" },
|
|
276
273
|
dark: { surfaces: { bgSecondary: "#1e293b", bgTertiary: "#334155" } },
|
|
@@ -278,18 +275,17 @@ const PRESET_DEFINITIONS: Record<string, PresetDefinition> = {
|
|
|
278
275
|
},
|
|
279
276
|
emerald: {
|
|
280
277
|
name: "Emerald",
|
|
281
|
-
seeds: { brand: "#10b981", neutral: "stone",
|
|
278
|
+
seeds: { brand: "#10b981", neutral: "stone", radiusStyle: "default" },
|
|
282
279
|
},
|
|
283
280
|
rose: {
|
|
284
281
|
name: "Rose",
|
|
285
|
-
seeds: { brand: "#f43f5e", neutral: "stone",
|
|
282
|
+
seeds: { brand: "#f43f5e", neutral: "stone", radiusStyle: "default" },
|
|
286
283
|
},
|
|
287
284
|
classic: {
|
|
288
285
|
name: "Classic",
|
|
289
286
|
seeds: {
|
|
290
287
|
brand: "#1e40af",
|
|
291
288
|
neutral: "stone",
|
|
292
|
-
density: "default",
|
|
293
289
|
radiusStyle: "default",
|
|
294
290
|
danger: "#b91c1c",
|
|
295
291
|
success: "#15803d",
|
|
@@ -302,7 +298,6 @@ const PRESET_DEFINITIONS: Record<string, PresetDefinition> = {
|
|
|
302
298
|
seeds: {
|
|
303
299
|
brand: "#7c3aed",
|
|
304
300
|
neutral: "stone",
|
|
305
|
-
density: "default",
|
|
306
301
|
radiusStyle: "default",
|
|
307
302
|
danger: "#dc2626",
|
|
308
303
|
success: "#16a34a",
|
|
@@ -315,7 +310,6 @@ const PRESET_DEFINITIONS: Record<string, PresetDefinition> = {
|
|
|
315
310
|
seeds: {
|
|
316
311
|
brand: "#06b6d4",
|
|
317
312
|
neutral: "stone",
|
|
318
|
-
density: "default",
|
|
319
313
|
radiusStyle: "default",
|
|
320
314
|
danger: "#f43f5e",
|
|
321
315
|
success: "#4ade80",
|
|
@@ -328,7 +322,6 @@ const PRESET_DEFINITIONS: Record<string, PresetDefinition> = {
|
|
|
328
322
|
seeds: {
|
|
329
323
|
brand: "#525252",
|
|
330
324
|
neutral: "stone",
|
|
331
|
-
density: "default",
|
|
332
325
|
radiusStyle: "default",
|
|
333
326
|
danger: "#78716c",
|
|
334
327
|
success: "#65a30d",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSettings.block.d.ts","sourceRoot":"","sources":["../../src/blocks/AccountSettings.block.ts"],"names":[],"mappings":";AAEA,wBA4CG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityFeedSkeleton.block.d.ts","sourceRoot":"","sources":["../../src/blocks/ActivityFeedSkeleton.block.ts"],"names":[],"mappings":";AAEA,wBA0BG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlogEditor.block.d.ts","sourceRoot":"","sources":["../../src/blocks/BlogEditor.block.ts"],"names":[],"mappings":";AAEA,wBA+BG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInterface.block.d.ts","sourceRoot":"","sources":["../../src/blocks/ChatInterface.block.ts"],"names":[],"mappings":";AAEA,wBAwCG"}
|