@usefragments/ui 1.5.4 → 1.6.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 +1 -1
- package/dist/assets/ui.css +8808 -5810
- package/dist/chart.cjs +7 -20
- package/dist/chart.js +7 -20
- package/dist/colorpicker.cjs +2 -1
- package/dist/colorpicker.js +2 -1
- 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 +12 -12
- package/dist/components/Alert/Alert.module.scss.js +12 -12
- 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 +5 -3
- package/dist/components/AppShell/index.d.ts +4 -2
- package/dist/components/AppShell/index.d.ts.map +1 -1
- package/dist/components/AppShell/index.js +5 -3
- package/dist/components/Avatar/Avatar.module.scss.cjs +17 -14
- package/dist/components/Avatar/Avatar.module.scss.js +17 -14
- package/dist/components/Avatar/index.cjs +100 -118
- package/dist/components/Avatar/index.d.ts +7 -5
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +100 -118
- package/dist/components/Badge/Badge.module.scss.cjs +19 -19
- package/dist/components/Badge/Badge.module.scss.js +19 -19
- 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 +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +8 -8
- package/dist/components/Button/Button.module.scss.cjs +14 -14
- package/dist/components/Button/Button.module.scss.js +14 -14
- 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 +18 -18
- package/dist/components/Card/Card.module.scss.js +18 -18
- package/dist/components/Chart/Chart.module.scss.cjs +15 -15
- package/dist/components/Chart/Chart.module.scss.js +15 -15
- package/dist/components/Chart/index.d.ts +7 -7
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +9 -15
- package/dist/components/Checkbox/Checkbox.module.scss.js +9 -15
- package/dist/components/Checkbox/index.cjs +4 -6
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +4 -6
- package/dist/components/Chip/Chip.module.scss.cjs +15 -15
- package/dist/components/Chip/Chip.module.scss.js +15 -15
- package/dist/components/Chip/index.cjs +4 -5
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/index.js +2 -3
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +22 -22
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +22 -22
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +9 -12
- package/dist/components/Collapsible/Collapsible.module.scss.js +9 -12
- package/dist/components/Collapsible/index.cjs +3 -2
- package/dist/components/Collapsible/index.d.ts +3 -3
- package/dist/components/Collapsible/index.d.ts.map +1 -1
- package/dist/components/Collapsible/index.js +3 -2
- package/dist/components/ColorPicker/ColorPicker.module.scss.cjs +16 -16
- package/dist/components/ColorPicker/ColorPicker.module.scss.js +16 -16
- package/dist/components/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.module.scss.cjs +21 -27
- package/dist/components/Combobox/Combobox.module.scss.js +21 -27
- package/dist/components/Combobox/index.cjs +4 -4
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +4 -4
- package/dist/components/Command/Command.module.scss.cjs +11 -11
- package/dist/components/Command/Command.module.scss.js +11 -11
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +11 -14
- package/dist/components/ConversationList/ConversationList.module.scss.js +11 -14
- package/dist/components/ConversationList/index.cjs +40 -44
- package/dist/components/ConversationList/index.d.ts +3 -3
- package/dist/components/ConversationList/index.d.ts.map +1 -1
- package/dist/components/ConversationList/index.js +40 -44
- package/dist/components/DataTable/DataTable.module.scss.cjs +32 -56
- package/dist/components/DataTable/DataTable.module.scss.js +32 -56
- package/dist/components/DataTable/index.d.ts +5 -4
- package/dist/components/DataTable/index.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/Drawer/Drawer.module.scss.cjs +31 -28
- package/dist/components/Drawer/Drawer.module.scss.js +31 -28
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Editor/Editor.module.scss.cjs +23 -23
- package/dist/components/Editor/Editor.module.scss.js +23 -23
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +12 -12
- package/dist/components/EmptyState/EmptyState.module.scss.js +12 -12
- package/dist/components/Field/Field.module.scss.cjs +8 -5
- package/dist/components/Field/Field.module.scss.js +8 -5
- package/dist/components/Field/index.cjs +10 -1
- package/dist/components/Field/index.d.ts +9 -2
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/index.js +10 -1
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Form/Form.module.scss.cjs +5 -2
- package/dist/components/Form/Form.module.scss.js +5 -2
- package/dist/components/Form/index.cjs +6 -1
- package/dist/components/Form/index.d.ts +8 -3
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Form/index.js +6 -1
- package/dist/components/Grid/Grid.module.scss.cjs +54 -72
- package/dist/components/Grid/Grid.module.scss.js +54 -72
- package/dist/components/Grid/index.cjs +57 -77
- package/dist/components/Grid/index.d.ts +11 -11
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/index.js +57 -77
- package/dist/components/Header/Header.module.scss.cjs +33 -33
- package/dist/components/Header/Header.module.scss.js +33 -33
- package/dist/components/Header/index.cjs +2 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +2 -1
- package/dist/components/Icon/Icon.module.scss.cjs +29 -8
- package/dist/components/Icon/Icon.module.scss.js +30 -9
- package/dist/components/Icon/index.cjs +30 -48
- package/dist/components/Icon/index.d.ts +6 -6
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +30 -48
- package/dist/components/IconButton/IconButton.module.scss.cjs +8 -8
- package/dist/components/IconButton/IconButton.module.scss.js +8 -8
- package/dist/components/Input/Input.module.scss.cjs +19 -25
- package/dist/components/Input/Input.module.scss.js +19 -25
- package/dist/components/Input/index.cjs +1 -2
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -2
- package/dist/components/Link/Link.module.scss.cjs +10 -10
- package/dist/components/Link/Link.module.scss.js +10 -10
- package/dist/components/List/List.module.scss.cjs +19 -19
- package/dist/components/List/List.module.scss.js +19 -19
- package/dist/components/List/index.cjs +4 -7
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +4 -7
- package/dist/components/Listbox/Listbox.module.scss.cjs +9 -9
- package/dist/components/Listbox/Listbox.module.scss.js +9 -9
- 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 +39 -67
- package/dist/components/Loading/index.d.ts +6 -6
- package/dist/components/Loading/index.d.ts.map +1 -1
- package/dist/components/Loading/index.js +39 -67
- package/dist/components/Main/Main.module.scss.cjs +7 -7
- package/dist/components/Main/Main.module.scss.js +7 -7
- 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 +16 -16
- package/dist/components/Menu/Menu.module.scss.js +16 -16
- package/dist/components/Menu/index.cjs +19 -61
- package/dist/components/Menu/index.d.ts +10 -10
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +19 -61
- package/dist/components/Message/Message.module.scss.cjs +18 -21
- package/dist/components/Message/Message.module.scss.js +18 -21
- package/dist/components/Message/index.cjs +15 -2
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +15 -2
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +28 -28
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +28 -28
- package/dist/components/Pagination/Pagination.module.scss.cjs +18 -9
- package/dist/components/Pagination/Pagination.module.scss.js +19 -10
- package/dist/components/Pagination/index.cjs +5 -2
- package/dist/components/Pagination/index.d.ts +3 -1
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +5 -2
- 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 +29 -32
- package/dist/components/Progress/Progress.module.scss.js +29 -32
- package/dist/components/Progress/geometry.cjs +30 -0
- package/dist/components/Progress/geometry.d.ts +8 -0
- package/dist/components/Progress/geometry.d.ts.map +1 -0
- package/dist/components/Progress/geometry.js +30 -0
- package/dist/components/Progress/index.cjs +40 -29
- package/dist/components/Progress/index.d.ts +4 -3
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +40 -29
- package/dist/components/Prompt/Prompt.module.scss.cjs +29 -29
- package/dist/components/Prompt/Prompt.module.scss.js +29 -29
- package/dist/components/Prompt/index.cjs +5 -4
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +5 -4
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +15 -21
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +15 -21
- package/dist/components/RadioGroup/index.cjs +7 -6
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +7 -6
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +7 -22
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +7 -22
- package/dist/components/ScrollArea/index.cjs +66 -42
- package/dist/components/ScrollArea/index.d.ts +3 -2
- package/dist/components/ScrollArea/index.d.ts.map +1 -1
- package/dist/components/ScrollArea/index.js +66 -42
- package/dist/components/ScrollArea/scroll-state.cjs +58 -0
- package/dist/components/ScrollArea/scroll-state.d.ts +16 -0
- package/dist/components/ScrollArea/scroll-state.d.ts.map +1 -0
- package/dist/components/ScrollArea/scroll-state.js +58 -0
- 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 +3 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +3 -2
- package/dist/components/Separator/Separator.module.scss.cjs +13 -10
- package/dist/components/Separator/Separator.module.scss.js +13 -10
- package/dist/components/Separator/index.cjs +37 -38
- package/dist/components/Separator/index.d.ts +4 -4
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +37 -38
- 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 +5 -3
- package/dist/components/Sidebar/index.d.ts +6 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +5 -3
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +50 -38
- package/dist/components/Skeleton/Skeleton.module.scss.js +50 -38
- package/dist/components/Skeleton/index.cjs +41 -55
- package/dist/components/Skeleton/index.d.ts +7 -7
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +41 -55
- package/dist/components/Slider/Slider.module.scss.cjs +12 -12
- package/dist/components/Slider/Slider.module.scss.js +12 -12
- package/dist/components/Stack/Stack.module.scss.cjs +25 -45
- package/dist/components/Stack/Stack.module.scss.js +25 -45
- package/dist/components/Stack/index.cjs +106 -101
- package/dist/components/Stack/index.d.ts +7 -7
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +106 -101
- package/dist/components/Switch/Switch.module.scss.cjs +32 -0
- package/dist/components/Switch/Switch.module.scss.js +32 -0
- package/dist/components/{Toggle → Switch}/index.cjs +9 -14
- package/dist/components/Switch/index.d.ts +37 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/{Toggle → Switch}/index.js +5 -10
- package/dist/components/Table/Table.module.scss.cjs +18 -27
- package/dist/components/Table/Table.module.scss.js +18 -27
- package/dist/components/Table/index.d.ts +6 -5
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/Tabs/Tabs.module.scss.cjs +12 -12
- package/dist/components/Tabs/Tabs.module.scss.js +12 -12
- package/dist/components/Tabs/index.cjs +2 -2
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Text/Text.module.scss.cjs +93 -57
- package/dist/components/Text/Text.module.scss.js +93 -57
- package/dist/components/Text/index.cjs +14 -6
- package/dist/components/Text/index.d.ts +25 -15
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +14 -6
- package/dist/components/Textarea/Textarea.module.scss.cjs +26 -23
- package/dist/components/Textarea/Textarea.module.scss.js +26 -23
- package/dist/components/Textarea/index.cjs +5 -10
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +5 -10
- package/dist/components/Theme/context.cjs +39 -0
- package/dist/components/Theme/context.d.ts +21 -0
- package/dist/components/Theme/context.d.ts.map +1 -0
- package/dist/components/Theme/context.js +22 -0
- package/dist/components/Theme/index.cjs +14 -209
- package/dist/components/Theme/index.d.ts +4 -37
- package/dist/components/Theme/index.d.ts.map +1 -1
- package/dist/components/Theme/index.js +9 -204
- package/dist/components/{Theme → ThemeToggle}/ThemeToggle.module.scss.cjs +6 -6
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.js +23 -0
- package/dist/components/ThemeToggle/index.cjs +115 -0
- package/dist/components/ThemeToggle/index.d.ts +21 -0
- package/dist/components/ThemeToggle/index.d.ts.map +1 -0
- package/dist/components/ThemeToggle/index.js +115 -0
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +13 -13
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +13 -13
- package/dist/components/ThinkingIndicator/index.cjs +34 -41
- package/dist/components/ThinkingIndicator/index.d.ts +4 -4
- package/dist/components/ThinkingIndicator/index.d.ts.map +1 -1
- package/dist/components/ThinkingIndicator/index.js +34 -41
- package/dist/components/Toast/Toast.module.scss.cjs +20 -20
- package/dist/components/Toast/Toast.module.scss.js +20 -20
- package/dist/components/Toggle/index.d.ts +2 -42
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +20 -20
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +20 -20
- package/dist/components/ToggleGroup/index.cjs +3 -2
- package/dist/components/ToggleGroup/index.d.ts +2 -1
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +3 -2
- 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.cjs +12 -9
- package/dist/data-table.js +12 -9
- package/dist/datepicker.cjs +2 -1
- package/dist/datepicker.js +2 -1
- package/dist/index.cjs +100 -98
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.js +2 -2
- package/dist/measurements/generated.cjs +296 -0
- package/dist/measurements/generated.d.ts +261 -0
- package/dist/measurements/generated.d.ts.map +1 -0
- package/dist/measurements/generated.js +296 -0
- package/dist/measurements/index.d.ts +2 -0
- package/dist/measurements/index.d.ts.map +1 -0
- package/dist/measurements.cjs +6 -0
- package/dist/measurements.js +6 -0
- package/dist/recipes/popup.cjs +14 -0
- package/dist/recipes/popup.d.ts +4 -0
- package/dist/recipes/popup.d.ts.map +1 -0
- package/dist/recipes/popup.js +14 -0
- package/dist/recipes/table-chrome.cjs +18 -0
- package/dist/recipes/table-chrome.d.ts +10 -0
- package/dist/recipes/table-chrome.d.ts.map +1 -0
- package/dist/recipes/table-chrome.js +18 -0
- package/dist/table.cjs +5 -2
- package/dist/table.js +5 -2
- package/dist/utils/layout-spacing.cjs +27 -0
- package/dist/utils/layout-spacing.d.ts +5 -0
- package/dist/utils/layout-spacing.d.ts.map +1 -0
- package/dist/utils/layout-spacing.js +27 -0
- package/dist/utils/seed-derivation.cjs +4 -42
- package/dist/utils/seed-derivation.d.ts +4 -3
- package/dist/utils/seed-derivation.d.ts.map +1 -1
- package/dist/utils/seed-derivation.js +4 -42
- package/dist/utils/theme-presets.cjs +1 -0
- package/dist/utils/theme-presets.d.ts +3 -2
- package/dist/utils/theme-presets.d.ts.map +1 -1
- package/dist/utils/theme-presets.js +1 -0
- package/fragments.json +1 -1
- package/package.json +23 -4
- package/src/components/Accordion/Accordion.module.scss +31 -52
- package/src/components/Alert/Alert.module.scss +28 -44
- package/src/components/AppShell/AppShell.module.scss +6 -3
- package/src/components/AppShell/index.tsx +8 -4
- package/src/components/Avatar/Avatar.module.scss +22 -60
- package/src/components/Avatar/index.tsx +152 -146
- package/src/components/Badge/Badge.module.scss +51 -46
- package/src/components/BentoGrid/BentoGrid.module.scss +11 -32
- package/src/components/Box/Box.module.scss +253 -81
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +10 -11
- package/src/components/Button/Button.module.scss +52 -57
- package/src/components/ButtonGroup/ButtonGroup.module.scss +5 -5
- package/src/components/Card/Card.consumer-fixture.module.scss +8 -0
- package/src/components/Card/Card.module.scss +211 -175
- package/src/components/Chart/Chart.module.scss +28 -29
- package/src/components/Chart/index.tsx +40 -53
- package/src/components/Checkbox/Checkbox.module.scss +43 -64
- package/src/components/Checkbox/index.tsx +4 -9
- package/src/components/Chip/Chip.contract.json +4 -3
- package/src/components/Chip/Chip.module.scss +23 -34
- package/src/components/Chip/index.tsx +3 -4
- package/src/components/CodeBlock/CodeBlock.module.scss +102 -215
- package/src/components/Collapsible/Collapsible.module.scss +29 -63
- package/src/components/Collapsible/index.tsx +22 -26
- package/src/components/ColorPicker/ColorPicker.module.scss +42 -24
- package/src/components/ColorPicker/index.tsx +2 -1
- package/src/components/Combobox/Combobox.module.scss +60 -73
- package/src/components/Combobox/index.tsx +7 -5
- package/src/components/Command/Command.module.scss +47 -77
- package/src/components/ConversationList/ConversationList.module.scss +20 -78
- package/src/components/ConversationList/index.tsx +55 -59
- package/src/components/DataTable/DataTable.module.scss +76 -216
- package/src/components/DataTable/index.tsx +20 -25
- package/src/components/DatePicker/DatePicker.module.scss +54 -33
- package/src/components/DatePicker/index.tsx +2 -1
- package/src/components/Dialog/Dialog.module.scss +42 -66
- package/src/components/Drawer/Drawer.module.scss +93 -99
- package/src/components/Drawer/index.tsx +1 -1
- package/src/components/Editor/Editor.module.scss +115 -220
- package/src/components/EmptyState/EmptyState.module.scss +38 -85
- package/src/components/Field/Field.contract.json +2 -1
- package/src/components/Field/Field.module.scss +9 -11
- package/src/components/Field/index.tsx +27 -1
- package/src/components/Fieldset/Fieldset.module.scss +14 -6
- package/src/components/Form/Form.contract.json +10 -23
- package/src/components/Form/Form.module.scss +9 -4
- package/src/components/Form/index.tsx +22 -7
- package/src/components/Grid/Grid.module.scss +159 -63
- package/src/components/Grid/index.tsx +107 -126
- package/src/components/Header/Header.module.scss +25 -32
- package/src/components/Header/index.tsx +2 -1
- package/src/components/Icon/Icon.module.scss +16 -0
- package/src/components/Icon/index.tsx +74 -86
- package/src/components/IconButton/IconButton.module.scss +11 -21
- package/src/components/Input/Input.module.scss +67 -55
- package/src/components/Input/index.tsx +1 -2
- package/src/components/Link/Link.module.scss +8 -9
- package/src/components/List/List.module.scss +16 -21
- package/src/components/List/index.tsx +4 -10
- package/src/components/Listbox/Listbox.module.scss +26 -54
- package/src/components/Loading/Loading.module.scss +23 -33
- package/src/components/Loading/index.tsx +68 -97
- package/src/components/Main/Main.module.scss +3 -5
- package/src/components/Markdown/Markdown.module.scss +36 -184
- package/src/components/Markdown/index.tsx +2 -2
- package/src/components/Menu/Menu.module.scss +48 -133
- package/src/components/Menu/index.tsx +57 -89
- package/src/components/Message/Message.module.scss +52 -142
- package/src/components/Message/index.tsx +16 -6
- package/src/components/NavigationMenu/NavigationMenu.module.scss +59 -52
- package/src/components/Pagination/Pagination.module.scss +32 -25
- package/src/components/Pagination/index.tsx +7 -2
- package/src/components/Popover/Popover.module.scss +37 -73
- package/src/components/Progress/Progress.module.scss +61 -41
- package/src/components/Progress/geometry.ts +41 -0
- package/src/components/Progress/index.tsx +44 -30
- package/src/components/Prompt/Prompt.module.scss +45 -82
- package/src/components/Prompt/index.tsx +6 -5
- package/src/components/RadioGroup/RadioGroup.module.scss +50 -69
- package/src/components/RadioGroup/index.tsx +7 -9
- package/src/components/ScrollArea/ScrollArea.contract.json +8 -24
- package/src/components/ScrollArea/ScrollArea.module.scss +122 -96
- package/src/components/ScrollArea/index.tsx +78 -60
- package/src/components/ScrollArea/scroll-state.ts +87 -0
- package/src/components/Select/Select.module.scss +53 -41
- package/src/components/Select/index.tsx +6 -2
- package/src/components/Separator/Separator.module.scss +29 -19
- package/src/components/Separator/index.tsx +55 -51
- package/src/components/Sidebar/Sidebar.contract.json +12 -0
- package/src/components/Sidebar/Sidebar.module.scss +101 -99
- package/src/components/Sidebar/index.tsx +10 -3
- package/src/components/Skeleton/Skeleton.module.scss +26 -26
- package/src/components/Skeleton/index.tsx +65 -72
- package/src/components/Slider/Slider.module.scss +31 -25
- package/src/components/Stack/Stack.module.scss +101 -30
- package/src/components/Stack/index.tsx +157 -127
- package/src/components/{Toggle/Toggle.contract.json → Switch/Switch.contract.json} +1 -1
- package/src/components/{Toggle/Toggle.module.scss → Switch/Switch.module.scss} +55 -82
- package/src/components/{Toggle → Switch}/index.tsx +5 -21
- package/src/components/Table/Table.module.scss +38 -129
- package/src/components/Table/index.tsx +13 -6
- package/src/components/TableOfContents/TableOfContents.module.scss +20 -177
- package/src/components/Tabs/Tabs.module.scss +27 -22
- package/src/components/Tabs/index.tsx +2 -2
- package/src/components/Text/Text.module.scss +22 -3
- package/src/components/Text/index.tsx +56 -21
- package/src/components/Textarea/Textarea.module.scss +59 -39
- package/src/components/Textarea/index.tsx +5 -12
- package/src/components/Theme/context.ts +42 -0
- package/src/components/Theme/index.tsx +14 -309
- package/src/components/ThemeToggle/ThemeToggle.module.scss +73 -0
- package/src/components/ThemeToggle/index.tsx +144 -0
- package/src/components/ThinkingIndicator/ThinkingIndicator.module.scss +24 -19
- package/src/components/ThinkingIndicator/index.tsx +44 -54
- package/src/components/Toast/Toast.contract.json +5 -21
- package/src/components/Toast/Toast.module.scss +61 -138
- package/src/components/Toggle/index.ts +7 -0
- package/src/components/ToggleGroup/ToggleGroup.contract.json +12 -39
- package/src/components/ToggleGroup/ToggleGroup.module.scss +132 -88
- package/src/components/ToggleGroup/index.tsx +5 -3
- package/src/components/Tooltip/Tooltip.module.scss +23 -39
- package/src/components/VisuallyHidden/VisuallyHidden.module.scss +3 -0
- package/src/index.ts +2 -1
- package/src/measurements/MeasurementTargets.module.scss +229 -0
- package/src/measurements/generated.ts +317 -0
- package/src/measurements/index.ts +8 -0
- package/src/measurements/measurements.json +361 -0
- package/src/recipes/_action.scss +138 -0
- package/src/recipes/_boolean-range.scss +124 -0
- package/src/recipes/_feedback.scss +171 -0
- package/src/recipes/_field.scss +98 -0
- package/src/recipes/_layout.scss +67 -0
- package/src/recipes/_navigation.scss +110 -0
- package/src/recipes/_overlay.scss +191 -0
- package/src/recipes/_popup.scss +92 -0
- package/src/recipes/_prose.scss +174 -0
- package/src/recipes/_representation.scss +193 -0
- package/src/recipes/_segmented.scss +26 -0
- package/src/recipes/_surface.scss +13 -0
- package/src/recipes/_table-chrome.scss +105 -0
- package/src/recipes/_target.scss +31 -0
- package/src/recipes/_typography.scss +38 -0
- package/src/recipes/popup.ts +12 -0
- package/src/recipes/table-chrome.ts +30 -0
- package/src/styles/globals.scss +2 -2
- package/src/tokens/_component-properties.scss +2 -2
- package/src/tokens/_computed.scss +9 -9
- package/src/tokens/_density.scss +41 -132
- package/src/tokens/_measurements.catalog.generated.css +91 -0
- package/src/tokens/_measurements.generated.scss +604 -0
- package/src/tokens/_mixins.scss +0 -276
- package/src/tokens/_property-registrations.scss +96 -92
- package/src/tokens/_radius.scss +16 -70
- package/src/tokens/_seeds.scss +8 -7
- package/src/tokens/_variables.scss +163 -148
- package/src/utils/layout-spacing.ts +31 -0
- package/src/utils/seed-derivation.ts +134 -172
- package/src/utils/theme-presets.ts +58 -30
- package/dist/components/Theme/ThemeToggle.module.scss.js +0 -23
- package/dist/components/Toggle/Toggle.module.scss.cjs +0 -44
- package/dist/components/Toggle/Toggle.module.scss.js +0 -44
- package/src/components/Switch/index.ts +0 -3
- package/src/components/Theme/ThemeToggle.module.scss +0 -91
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const title = "
|
|
3
|
-
const list = "
|
|
4
|
-
const item = "
|
|
5
|
-
const groupHeaderRow = "
|
|
6
|
-
const link = "
|
|
7
|
-
const linkLabel = "
|
|
8
|
-
const leading = "
|
|
9
|
-
const trailing = "
|
|
10
|
-
const active = "
|
|
11
|
-
const groupHeader = "
|
|
12
|
-
const groupHeaderInteractive = "
|
|
13
|
-
const groupHeaderActive = "
|
|
14
|
-
const groupChevron = "
|
|
15
|
-
const groupLabel = "
|
|
1
|
+
const root = "_root_16mr3_1";
|
|
2
|
+
const title = "_title_16mr3_25";
|
|
3
|
+
const list = "_list_16mr3_30";
|
|
4
|
+
const item = "_item_16mr3_40";
|
|
5
|
+
const groupHeaderRow = "_groupHeaderRow_16mr3_41";
|
|
6
|
+
const link = "_link_16mr3_46";
|
|
7
|
+
const linkLabel = "_linkLabel_16mr3_92";
|
|
8
|
+
const leading = "_leading_16mr3_100";
|
|
9
|
+
const trailing = "_trailing_16mr3_101";
|
|
10
|
+
const active = "_active_16mr3_143";
|
|
11
|
+
const groupHeader = "_groupHeader_16mr3_41";
|
|
12
|
+
const groupHeaderInteractive = "_groupHeaderInteractive_16mr3_186";
|
|
13
|
+
const groupHeaderActive = "_groupHeaderActive_16mr3_199";
|
|
14
|
+
const groupChevron = "_groupChevron_16mr3_203";
|
|
15
|
+
const groupLabel = "_groupLabel_16mr3_221";
|
|
16
16
|
const styles = {
|
|
17
17
|
root,
|
|
18
18
|
title,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const list = "
|
|
5
|
-
const listPills = "
|
|
6
|
-
const tab = "
|
|
7
|
-
const tabSm = "
|
|
8
|
-
const tabMd = "
|
|
9
|
-
const tabLg = "
|
|
10
|
-
const tabUnderline = "
|
|
11
|
-
const tabPills = "
|
|
12
|
-
const indicator = "
|
|
13
|
-
const panel = "
|
|
14
|
-
const panelFlush = "
|
|
3
|
+
const root = "_root_1vdrf_1";
|
|
4
|
+
const list = "_list_1vdrf_10";
|
|
5
|
+
const listPills = "_listPills_1vdrf_27";
|
|
6
|
+
const tab = "_tab_1vdrf_38";
|
|
7
|
+
const tabSm = "_tabSm_1vdrf_79";
|
|
8
|
+
const tabMd = "_tabMd_1vdrf_108";
|
|
9
|
+
const tabLg = "_tabLg_1vdrf_137";
|
|
10
|
+
const tabUnderline = "_tabUnderline_1vdrf_166";
|
|
11
|
+
const tabPills = "_tabPills_1vdrf_173";
|
|
12
|
+
const indicator = "_indicator_1vdrf_187";
|
|
13
|
+
const panel = "_panel_1vdrf_208";
|
|
14
|
+
const panelFlush = "_panelFlush_1vdrf_222";
|
|
15
15
|
const styles = {
|
|
16
16
|
root,
|
|
17
17
|
list,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const list = "
|
|
3
|
-
const listPills = "
|
|
4
|
-
const tab = "
|
|
5
|
-
const tabSm = "
|
|
6
|
-
const tabMd = "
|
|
7
|
-
const tabLg = "
|
|
8
|
-
const tabUnderline = "
|
|
9
|
-
const tabPills = "
|
|
10
|
-
const indicator = "
|
|
11
|
-
const panel = "
|
|
12
|
-
const panelFlush = "
|
|
1
|
+
const root = "_root_1vdrf_1";
|
|
2
|
+
const list = "_list_1vdrf_10";
|
|
3
|
+
const listPills = "_listPills_1vdrf_27";
|
|
4
|
+
const tab = "_tab_1vdrf_38";
|
|
5
|
+
const tabSm = "_tabSm_1vdrf_79";
|
|
6
|
+
const tabMd = "_tabMd_1vdrf_108";
|
|
7
|
+
const tabLg = "_tabLg_1vdrf_137";
|
|
8
|
+
const tabUnderline = "_tabUnderline_1vdrf_166";
|
|
9
|
+
const tabPills = "_tabPills_1vdrf_173";
|
|
10
|
+
const indicator = "_indicator_1vdrf_187";
|
|
11
|
+
const panel = "_panel_1vdrf_208";
|
|
12
|
+
const panelFlush = "_panelFlush_1vdrf_222";
|
|
13
13
|
const styles = {
|
|
14
14
|
root,
|
|
15
15
|
list,
|
|
@@ -24,7 +24,7 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
26
|
const TabsVariantContext = React__namespace.createContext("underline");
|
|
27
|
-
const TabsSizeContext = React__namespace.createContext("
|
|
27
|
+
const TabsSizeContext = React__namespace.createContext("md");
|
|
28
28
|
function TabsRoot({
|
|
29
29
|
children,
|
|
30
30
|
defaultValue,
|
|
@@ -36,7 +36,7 @@ function TabsRoot({
|
|
|
36
36
|
className,
|
|
37
37
|
...htmlProps
|
|
38
38
|
}) {
|
|
39
|
-
const size = index.useResolvedControlSize(sizeProp
|
|
39
|
+
const size = index.useResolvedControlSize(sizeProp);
|
|
40
40
|
const classes = [Tabs_module.default.root, className].filter(Boolean).join(" ");
|
|
41
41
|
return /* @__PURE__ */ jsxRuntime.jsx(TabsVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsxRuntime.jsx(TabsSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
42
|
tabs.Tabs.Root,
|
|
@@ -5,7 +5,7 @@ import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
|
5
5
|
import { useResolvedControlSize } from "../ComponentDefaults/index.js";
|
|
6
6
|
import styles from "./Tabs.module.scss.js";
|
|
7
7
|
const TabsVariantContext = React.createContext("underline");
|
|
8
|
-
const TabsSizeContext = React.createContext("
|
|
8
|
+
const TabsSizeContext = React.createContext("md");
|
|
9
9
|
function TabsRoot({
|
|
10
10
|
children,
|
|
11
11
|
defaultValue,
|
|
@@ -17,7 +17,7 @@ function TabsRoot({
|
|
|
17
17
|
className,
|
|
18
18
|
...htmlProps
|
|
19
19
|
}) {
|
|
20
|
-
const size = useResolvedControlSize(sizeProp
|
|
20
|
+
const size = useResolvedControlSize(sizeProp);
|
|
21
21
|
const classes = [styles.root, className].filter(Boolean).join(" ");
|
|
22
22
|
return /* @__PURE__ */ jsx(TabsVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsx(TabsSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx(
|
|
23
23
|
Tabs$1.Root,
|
|
@@ -1,92 +1,119 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const text = "
|
|
4
|
-
const variantSectionLabel = "_variant-section-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
3
|
+
const text = "_text_sa0f4_1";
|
|
4
|
+
const variantSectionLabel = "_variant-section-label_sa0f4_7";
|
|
5
|
+
const roleCaption = "_role-caption_sa0f4_15";
|
|
6
|
+
const roleUiCompact = "_role-ui-compact_sa0f4_23";
|
|
7
|
+
const roleUiStandard = "_role-ui-standard_sa0f4_31";
|
|
8
|
+
const roleBodyCompact = "_role-body-compact_sa0f4_39";
|
|
9
|
+
const roleBodyRelaxed = "_role-body-relaxed_sa0f4_47";
|
|
10
|
+
const roleTitleSm = "_role-title-sm_sa0f4_55";
|
|
11
|
+
const roleTitleMd = "_role-title-md_sa0f4_63";
|
|
12
|
+
const roleTitleLg = "_role-title-lg_sa0f4_71";
|
|
13
|
+
const roleCode = "_role-code_sa0f4_79";
|
|
14
|
+
const size2Xs = "_size-2xs_sa0f4_87";
|
|
15
|
+
const sizeXs = "_size-xs_sa0f4_91";
|
|
16
|
+
const sizeSm = "_size-sm_sa0f4_95";
|
|
17
|
+
const sizeBase = "_size-base_sa0f4_99";
|
|
18
|
+
const sizeMd = "_size-md_sa0f4_103";
|
|
19
|
+
const sizeLg = "_size-lg_sa0f4_107";
|
|
20
|
+
const sizeXl = "_size-xl_sa0f4_111";
|
|
21
|
+
const size2Xl = "_size-2xl_sa0f4_115";
|
|
22
|
+
const size3Xl = "_size-3xl_sa0f4_119";
|
|
23
|
+
const size4Xl = "_size-4xl_sa0f4_125";
|
|
24
|
+
const weightNormal = "_weight-normal_sa0f4_131";
|
|
25
|
+
const weightMedium = "_weight-medium_sa0f4_135";
|
|
26
|
+
const weightSemibold = "_weight-semibold_sa0f4_139";
|
|
27
|
+
const weightBold = "_weight-bold_sa0f4_143";
|
|
28
|
+
const colorPrimary = "_color-primary_sa0f4_147";
|
|
29
|
+
const colorSecondary = "_color-secondary_sa0f4_151";
|
|
30
|
+
const colorTertiary = "_color-tertiary_sa0f4_155";
|
|
31
|
+
const colorMuted = "_color-muted_sa0f4_156";
|
|
32
|
+
const colorSuccess = "_color-success_sa0f4_160";
|
|
33
|
+
const colorWarning = "_color-warning_sa0f4_164";
|
|
34
|
+
const colorDanger = "_color-danger_sa0f4_168";
|
|
35
|
+
const mono = "_mono_sa0f4_172";
|
|
36
|
+
const truncate = "_truncate_sa0f4_176";
|
|
37
|
+
const lineClamp = "_lineClamp_sa0f4_182";
|
|
38
|
+
const trackingNormal = "_tracking-normal_sa0f4_190";
|
|
39
|
+
const trackingTight = "_tracking-tight_sa0f4_194";
|
|
40
|
+
const trackingTighter = "_tracking-tighter_sa0f4_198";
|
|
41
|
+
const trackingTightest = "_tracking-tightest_sa0f4_202";
|
|
42
|
+
const tabularNums = "_tabularNums_sa0f4_206";
|
|
34
43
|
const styles = {
|
|
35
44
|
text,
|
|
36
|
-
"variant-section-label": "_variant-section-
|
|
45
|
+
"variant-section-label": "_variant-section-label_sa0f4_7",
|
|
37
46
|
variantSectionLabel,
|
|
38
|
-
"
|
|
47
|
+
"role-caption": "_role-caption_sa0f4_15",
|
|
48
|
+
roleCaption,
|
|
49
|
+
"role-ui-compact": "_role-ui-compact_sa0f4_23",
|
|
50
|
+
roleUiCompact,
|
|
51
|
+
"role-ui-standard": "_role-ui-standard_sa0f4_31",
|
|
52
|
+
roleUiStandard,
|
|
53
|
+
"role-body-compact": "_role-body-compact_sa0f4_39",
|
|
54
|
+
roleBodyCompact,
|
|
55
|
+
"role-body-relaxed": "_role-body-relaxed_sa0f4_47",
|
|
56
|
+
roleBodyRelaxed,
|
|
57
|
+
"role-title-sm": "_role-title-sm_sa0f4_55",
|
|
58
|
+
roleTitleSm,
|
|
59
|
+
"role-title-md": "_role-title-md_sa0f4_63",
|
|
60
|
+
roleTitleMd,
|
|
61
|
+
"role-title-lg": "_role-title-lg_sa0f4_71",
|
|
62
|
+
roleTitleLg,
|
|
63
|
+
"role-code": "_role-code_sa0f4_79",
|
|
64
|
+
roleCode,
|
|
65
|
+
"size-2xs": "_size-2xs_sa0f4_87",
|
|
39
66
|
size2Xs,
|
|
40
|
-
"size-xs": "_size-
|
|
67
|
+
"size-xs": "_size-xs_sa0f4_91",
|
|
41
68
|
sizeXs,
|
|
42
|
-
"size-sm": "_size-
|
|
69
|
+
"size-sm": "_size-sm_sa0f4_95",
|
|
43
70
|
sizeSm,
|
|
44
|
-
"size-base": "_size-
|
|
71
|
+
"size-base": "_size-base_sa0f4_99",
|
|
45
72
|
sizeBase,
|
|
46
|
-
"size-md": "_size-
|
|
73
|
+
"size-md": "_size-md_sa0f4_103",
|
|
47
74
|
sizeMd,
|
|
48
|
-
"size-lg": "_size-
|
|
75
|
+
"size-lg": "_size-lg_sa0f4_107",
|
|
49
76
|
sizeLg,
|
|
50
|
-
"size-xl": "_size-
|
|
77
|
+
"size-xl": "_size-xl_sa0f4_111",
|
|
51
78
|
sizeXl,
|
|
52
|
-
"size-2xl": "_size-
|
|
79
|
+
"size-2xl": "_size-2xl_sa0f4_115",
|
|
53
80
|
size2Xl,
|
|
54
|
-
"size-3xl": "_size-
|
|
81
|
+
"size-3xl": "_size-3xl_sa0f4_119",
|
|
55
82
|
size3Xl,
|
|
56
|
-
"size-4xl": "_size-
|
|
83
|
+
"size-4xl": "_size-4xl_sa0f4_125",
|
|
57
84
|
size4Xl,
|
|
58
|
-
"weight-normal": "_weight-
|
|
85
|
+
"weight-normal": "_weight-normal_sa0f4_131",
|
|
59
86
|
weightNormal,
|
|
60
|
-
"weight-medium": "_weight-
|
|
87
|
+
"weight-medium": "_weight-medium_sa0f4_135",
|
|
61
88
|
weightMedium,
|
|
62
|
-
"weight-semibold": "_weight-
|
|
89
|
+
"weight-semibold": "_weight-semibold_sa0f4_139",
|
|
63
90
|
weightSemibold,
|
|
64
|
-
"weight-bold": "_weight-
|
|
91
|
+
"weight-bold": "_weight-bold_sa0f4_143",
|
|
65
92
|
weightBold,
|
|
66
|
-
"color-primary": "_color-
|
|
93
|
+
"color-primary": "_color-primary_sa0f4_147",
|
|
67
94
|
colorPrimary,
|
|
68
|
-
"color-secondary": "_color-
|
|
95
|
+
"color-secondary": "_color-secondary_sa0f4_151",
|
|
69
96
|
colorSecondary,
|
|
70
|
-
"color-tertiary": "_color-
|
|
97
|
+
"color-tertiary": "_color-tertiary_sa0f4_155",
|
|
71
98
|
colorTertiary,
|
|
72
|
-
"color-muted": "_color-
|
|
99
|
+
"color-muted": "_color-muted_sa0f4_156",
|
|
73
100
|
colorMuted,
|
|
74
|
-
"color-success": "_color-
|
|
101
|
+
"color-success": "_color-success_sa0f4_160",
|
|
75
102
|
colorSuccess,
|
|
76
|
-
"color-warning": "_color-
|
|
103
|
+
"color-warning": "_color-warning_sa0f4_164",
|
|
77
104
|
colorWarning,
|
|
78
|
-
"color-danger": "_color-
|
|
105
|
+
"color-danger": "_color-danger_sa0f4_168",
|
|
79
106
|
colorDanger,
|
|
80
107
|
mono,
|
|
81
108
|
truncate,
|
|
82
109
|
lineClamp,
|
|
83
|
-
"tracking-normal": "_tracking-
|
|
110
|
+
"tracking-normal": "_tracking-normal_sa0f4_190",
|
|
84
111
|
trackingNormal,
|
|
85
|
-
"tracking-tight": "_tracking-
|
|
112
|
+
"tracking-tight": "_tracking-tight_sa0f4_194",
|
|
86
113
|
trackingTight,
|
|
87
|
-
"tracking-tighter": "_tracking-
|
|
114
|
+
"tracking-tighter": "_tracking-tighter_sa0f4_198",
|
|
88
115
|
trackingTighter,
|
|
89
|
-
"tracking-tightest": "_tracking-
|
|
116
|
+
"tracking-tightest": "_tracking-tightest_sa0f4_202",
|
|
90
117
|
trackingTightest,
|
|
91
118
|
tabularNums
|
|
92
119
|
};
|
|
@@ -100,6 +127,15 @@ exports.colorWarning = colorWarning;
|
|
|
100
127
|
exports.default = styles;
|
|
101
128
|
exports.lineClamp = lineClamp;
|
|
102
129
|
exports.mono = mono;
|
|
130
|
+
exports.roleBodyCompact = roleBodyCompact;
|
|
131
|
+
exports.roleBodyRelaxed = roleBodyRelaxed;
|
|
132
|
+
exports.roleCaption = roleCaption;
|
|
133
|
+
exports.roleCode = roleCode;
|
|
134
|
+
exports.roleTitleLg = roleTitleLg;
|
|
135
|
+
exports.roleTitleMd = roleTitleMd;
|
|
136
|
+
exports.roleTitleSm = roleTitleSm;
|
|
137
|
+
exports.roleUiCompact = roleUiCompact;
|
|
138
|
+
exports.roleUiStandard = roleUiStandard;
|
|
103
139
|
exports.size2Xl = size2Xl;
|
|
104
140
|
exports.size2Xs = size2Xs;
|
|
105
141
|
exports.size3Xl = size3Xl;
|
|
@@ -1,90 +1,117 @@
|
|
|
1
|
-
const text = "
|
|
2
|
-
const variantSectionLabel = "_variant-section-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
1
|
+
const text = "_text_sa0f4_1";
|
|
2
|
+
const variantSectionLabel = "_variant-section-label_sa0f4_7";
|
|
3
|
+
const roleCaption = "_role-caption_sa0f4_15";
|
|
4
|
+
const roleUiCompact = "_role-ui-compact_sa0f4_23";
|
|
5
|
+
const roleUiStandard = "_role-ui-standard_sa0f4_31";
|
|
6
|
+
const roleBodyCompact = "_role-body-compact_sa0f4_39";
|
|
7
|
+
const roleBodyRelaxed = "_role-body-relaxed_sa0f4_47";
|
|
8
|
+
const roleTitleSm = "_role-title-sm_sa0f4_55";
|
|
9
|
+
const roleTitleMd = "_role-title-md_sa0f4_63";
|
|
10
|
+
const roleTitleLg = "_role-title-lg_sa0f4_71";
|
|
11
|
+
const roleCode = "_role-code_sa0f4_79";
|
|
12
|
+
const size2Xs = "_size-2xs_sa0f4_87";
|
|
13
|
+
const sizeXs = "_size-xs_sa0f4_91";
|
|
14
|
+
const sizeSm = "_size-sm_sa0f4_95";
|
|
15
|
+
const sizeBase = "_size-base_sa0f4_99";
|
|
16
|
+
const sizeMd = "_size-md_sa0f4_103";
|
|
17
|
+
const sizeLg = "_size-lg_sa0f4_107";
|
|
18
|
+
const sizeXl = "_size-xl_sa0f4_111";
|
|
19
|
+
const size2Xl = "_size-2xl_sa0f4_115";
|
|
20
|
+
const size3Xl = "_size-3xl_sa0f4_119";
|
|
21
|
+
const size4Xl = "_size-4xl_sa0f4_125";
|
|
22
|
+
const weightNormal = "_weight-normal_sa0f4_131";
|
|
23
|
+
const weightMedium = "_weight-medium_sa0f4_135";
|
|
24
|
+
const weightSemibold = "_weight-semibold_sa0f4_139";
|
|
25
|
+
const weightBold = "_weight-bold_sa0f4_143";
|
|
26
|
+
const colorPrimary = "_color-primary_sa0f4_147";
|
|
27
|
+
const colorSecondary = "_color-secondary_sa0f4_151";
|
|
28
|
+
const colorTertiary = "_color-tertiary_sa0f4_155";
|
|
29
|
+
const colorMuted = "_color-muted_sa0f4_156";
|
|
30
|
+
const colorSuccess = "_color-success_sa0f4_160";
|
|
31
|
+
const colorWarning = "_color-warning_sa0f4_164";
|
|
32
|
+
const colorDanger = "_color-danger_sa0f4_168";
|
|
33
|
+
const mono = "_mono_sa0f4_172";
|
|
34
|
+
const truncate = "_truncate_sa0f4_176";
|
|
35
|
+
const lineClamp = "_lineClamp_sa0f4_182";
|
|
36
|
+
const trackingNormal = "_tracking-normal_sa0f4_190";
|
|
37
|
+
const trackingTight = "_tracking-tight_sa0f4_194";
|
|
38
|
+
const trackingTighter = "_tracking-tighter_sa0f4_198";
|
|
39
|
+
const trackingTightest = "_tracking-tightest_sa0f4_202";
|
|
40
|
+
const tabularNums = "_tabularNums_sa0f4_206";
|
|
32
41
|
const styles = {
|
|
33
42
|
text,
|
|
34
|
-
"variant-section-label": "_variant-section-
|
|
43
|
+
"variant-section-label": "_variant-section-label_sa0f4_7",
|
|
35
44
|
variantSectionLabel,
|
|
36
|
-
"
|
|
45
|
+
"role-caption": "_role-caption_sa0f4_15",
|
|
46
|
+
roleCaption,
|
|
47
|
+
"role-ui-compact": "_role-ui-compact_sa0f4_23",
|
|
48
|
+
roleUiCompact,
|
|
49
|
+
"role-ui-standard": "_role-ui-standard_sa0f4_31",
|
|
50
|
+
roleUiStandard,
|
|
51
|
+
"role-body-compact": "_role-body-compact_sa0f4_39",
|
|
52
|
+
roleBodyCompact,
|
|
53
|
+
"role-body-relaxed": "_role-body-relaxed_sa0f4_47",
|
|
54
|
+
roleBodyRelaxed,
|
|
55
|
+
"role-title-sm": "_role-title-sm_sa0f4_55",
|
|
56
|
+
roleTitleSm,
|
|
57
|
+
"role-title-md": "_role-title-md_sa0f4_63",
|
|
58
|
+
roleTitleMd,
|
|
59
|
+
"role-title-lg": "_role-title-lg_sa0f4_71",
|
|
60
|
+
roleTitleLg,
|
|
61
|
+
"role-code": "_role-code_sa0f4_79",
|
|
62
|
+
roleCode,
|
|
63
|
+
"size-2xs": "_size-2xs_sa0f4_87",
|
|
37
64
|
size2Xs,
|
|
38
|
-
"size-xs": "_size-
|
|
65
|
+
"size-xs": "_size-xs_sa0f4_91",
|
|
39
66
|
sizeXs,
|
|
40
|
-
"size-sm": "_size-
|
|
67
|
+
"size-sm": "_size-sm_sa0f4_95",
|
|
41
68
|
sizeSm,
|
|
42
|
-
"size-base": "_size-
|
|
69
|
+
"size-base": "_size-base_sa0f4_99",
|
|
43
70
|
sizeBase,
|
|
44
|
-
"size-md": "_size-
|
|
71
|
+
"size-md": "_size-md_sa0f4_103",
|
|
45
72
|
sizeMd,
|
|
46
|
-
"size-lg": "_size-
|
|
73
|
+
"size-lg": "_size-lg_sa0f4_107",
|
|
47
74
|
sizeLg,
|
|
48
|
-
"size-xl": "_size-
|
|
75
|
+
"size-xl": "_size-xl_sa0f4_111",
|
|
49
76
|
sizeXl,
|
|
50
|
-
"size-2xl": "_size-
|
|
77
|
+
"size-2xl": "_size-2xl_sa0f4_115",
|
|
51
78
|
size2Xl,
|
|
52
|
-
"size-3xl": "_size-
|
|
79
|
+
"size-3xl": "_size-3xl_sa0f4_119",
|
|
53
80
|
size3Xl,
|
|
54
|
-
"size-4xl": "_size-
|
|
81
|
+
"size-4xl": "_size-4xl_sa0f4_125",
|
|
55
82
|
size4Xl,
|
|
56
|
-
"weight-normal": "_weight-
|
|
83
|
+
"weight-normal": "_weight-normal_sa0f4_131",
|
|
57
84
|
weightNormal,
|
|
58
|
-
"weight-medium": "_weight-
|
|
85
|
+
"weight-medium": "_weight-medium_sa0f4_135",
|
|
59
86
|
weightMedium,
|
|
60
|
-
"weight-semibold": "_weight-
|
|
87
|
+
"weight-semibold": "_weight-semibold_sa0f4_139",
|
|
61
88
|
weightSemibold,
|
|
62
|
-
"weight-bold": "_weight-
|
|
89
|
+
"weight-bold": "_weight-bold_sa0f4_143",
|
|
63
90
|
weightBold,
|
|
64
|
-
"color-primary": "_color-
|
|
91
|
+
"color-primary": "_color-primary_sa0f4_147",
|
|
65
92
|
colorPrimary,
|
|
66
|
-
"color-secondary": "_color-
|
|
93
|
+
"color-secondary": "_color-secondary_sa0f4_151",
|
|
67
94
|
colorSecondary,
|
|
68
|
-
"color-tertiary": "_color-
|
|
95
|
+
"color-tertiary": "_color-tertiary_sa0f4_155",
|
|
69
96
|
colorTertiary,
|
|
70
|
-
"color-muted": "_color-
|
|
97
|
+
"color-muted": "_color-muted_sa0f4_156",
|
|
71
98
|
colorMuted,
|
|
72
|
-
"color-success": "_color-
|
|
99
|
+
"color-success": "_color-success_sa0f4_160",
|
|
73
100
|
colorSuccess,
|
|
74
|
-
"color-warning": "_color-
|
|
101
|
+
"color-warning": "_color-warning_sa0f4_164",
|
|
75
102
|
colorWarning,
|
|
76
|
-
"color-danger": "_color-
|
|
103
|
+
"color-danger": "_color-danger_sa0f4_168",
|
|
77
104
|
colorDanger,
|
|
78
105
|
mono,
|
|
79
106
|
truncate,
|
|
80
107
|
lineClamp,
|
|
81
|
-
"tracking-normal": "_tracking-
|
|
108
|
+
"tracking-normal": "_tracking-normal_sa0f4_190",
|
|
82
109
|
trackingNormal,
|
|
83
|
-
"tracking-tight": "_tracking-
|
|
110
|
+
"tracking-tight": "_tracking-tight_sa0f4_194",
|
|
84
111
|
trackingTight,
|
|
85
|
-
"tracking-tighter": "_tracking-
|
|
112
|
+
"tracking-tighter": "_tracking-tighter_sa0f4_198",
|
|
86
113
|
trackingTighter,
|
|
87
|
-
"tracking-tightest": "_tracking-
|
|
114
|
+
"tracking-tightest": "_tracking-tightest_sa0f4_202",
|
|
88
115
|
trackingTightest,
|
|
89
116
|
tabularNums
|
|
90
117
|
};
|
|
@@ -99,6 +126,15 @@ export {
|
|
|
99
126
|
styles as default,
|
|
100
127
|
lineClamp,
|
|
101
128
|
mono,
|
|
129
|
+
roleBodyCompact,
|
|
130
|
+
roleBodyRelaxed,
|
|
131
|
+
roleCaption,
|
|
132
|
+
roleCode,
|
|
133
|
+
roleTitleLg,
|
|
134
|
+
roleTitleMd,
|
|
135
|
+
roleTitleSm,
|
|
136
|
+
roleUiCompact,
|
|
137
|
+
roleUiStandard,
|
|
102
138
|
size2Xl,
|
|
103
139
|
size2Xs,
|
|
104
140
|
size3Xl,
|
|
@@ -24,11 +24,12 @@ const TextRoot = React__namespace.forwardRef(
|
|
|
24
24
|
function Text2({
|
|
25
25
|
children,
|
|
26
26
|
as: Component = "span",
|
|
27
|
+
role,
|
|
27
28
|
variant,
|
|
28
29
|
size,
|
|
29
30
|
weight,
|
|
30
31
|
color,
|
|
31
|
-
font
|
|
32
|
+
font,
|
|
32
33
|
truncate,
|
|
33
34
|
lineClamp,
|
|
34
35
|
letterSpacing,
|
|
@@ -37,16 +38,23 @@ const TextRoot = React__namespace.forwardRef(
|
|
|
37
38
|
style,
|
|
38
39
|
...htmlProps
|
|
39
40
|
}, ref) {
|
|
41
|
+
const ignoredLegacyProps = role ? [size, variant, weight, font, letterSpacing].some((value) => value !== void 0) : false;
|
|
42
|
+
if (process.env.NODE_ENV !== "production" && ignoredLegacyProps) {
|
|
43
|
+
console.warn(
|
|
44
|
+
"[Text] Semantic role takes precedence over size, variant, weight, font, and letterSpacing."
|
|
45
|
+
);
|
|
46
|
+
}
|
|
40
47
|
const classes = [
|
|
41
48
|
Text_module.default.text,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
role && Text_module.default[`role-${role}`],
|
|
50
|
+
!role && variant && Text_module.default[`variant-${variant}`],
|
|
51
|
+
!role && size && Text_module.default[`size-${size}`],
|
|
52
|
+
!role && weight && Text_module.default[`weight-${weight}`],
|
|
45
53
|
color && Text_module.default[`color-${color}`],
|
|
46
|
-
font === "mono" && Text_module.default.mono,
|
|
54
|
+
!role && font === "mono" && Text_module.default.mono,
|
|
47
55
|
truncate && Text_module.default.truncate,
|
|
48
56
|
lineClamp && Text_module.default.lineClamp,
|
|
49
|
-
letterSpacing && Text_module.default[`tracking-${letterSpacing}`],
|
|
57
|
+
!role && letterSpacing && Text_module.default[`tracking-${letterSpacing}`],
|
|
50
58
|
tabularNums && Text_module.default.tabularNums,
|
|
51
59
|
className
|
|
52
60
|
].filter(Boolean).join(" ");
|
|
@@ -3,28 +3,21 @@ import * as React from 'react';
|
|
|
3
3
|
* Typography component for rendering text with consistent styling.
|
|
4
4
|
* @see https://usefragments.com/components/text
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type TextRole = 'caption' | 'ui-compact' | 'ui-standard' | 'body-compact' | 'body-relaxed' | 'title-sm' | 'title-md' | 'title-lg' | 'code';
|
|
7
|
+
export type TextSize = '2xs' | 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
8
|
+
export type TextWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
9
|
+
export type TextFont = 'sans' | 'mono';
|
|
10
|
+
export type TextTracking = 'normal' | 'tight' | 'tighter' | 'tightest';
|
|
11
|
+
type TextSharedProps = Omit<React.HTMLAttributes<HTMLElement>, 'color' | 'role'> & {
|
|
7
12
|
children: React.ReactNode;
|
|
8
13
|
/** HTML element to render.
|
|
9
14
|
* @default "span" */
|
|
10
15
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'div' | 'strong' | 'em' | 'small' | 'mark' | 'del' | 'ins' | 'sub' | 'sup' | 'time' | 'address' | 'blockquote' | 'cite' | 'code' | 'abbr';
|
|
11
|
-
/** Preset text variant */
|
|
12
|
-
variant?: 'section-label';
|
|
13
|
-
/** Font size. Steps up the scale: 2xs (10), xs (12), sm/base (14), md (15 prose body),
|
|
14
|
-
* lg (20), xl (24), 2xl (30), 3xl (36 page title), 4xl (48 hero).
|
|
15
|
-
* @see https://usefragments.com/components/text#sizes */
|
|
16
|
-
size?: '2xs' | 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
17
|
-
/** Font weight.
|
|
18
|
-
* @default "normal" */
|
|
19
|
-
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
20
16
|
/** Text color. `"muted"` is an alias for `"tertiary"`. `"success" | "warning" | "danger"`
|
|
21
17
|
* are for a run of text that carries a state on its own; prefer Badge or Alert when the
|
|
22
18
|
* state deserves a container.
|
|
23
19
|
* @default "primary" */
|
|
24
20
|
color?: 'primary' | 'secondary' | 'tertiary' | 'muted' | 'success' | 'warning' | 'danger';
|
|
25
|
-
/** Font family.
|
|
26
|
-
* @default "sans" */
|
|
27
|
-
font?: 'sans' | 'mono';
|
|
28
21
|
/** Truncate text with ellipsis when it overflows */
|
|
29
22
|
truncate?: boolean;
|
|
30
23
|
/** Number of lines before truncating (requires truncate=true) */
|
|
@@ -32,12 +25,29 @@ export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'colo
|
|
|
32
25
|
/** Letter-spacing preset. `"tight"` suits dense UI chrome labels (-0.01em);
|
|
33
26
|
* `"tighter"` suits headings and stat values (-0.02em); `"tightest"` suits
|
|
34
27
|
* display numerics (-0.025em). Omit for the font's default tracking. */
|
|
35
|
-
letterSpacing?: 'normal' | 'tight' | 'tighter' | 'tightest';
|
|
36
28
|
/** Use tabular (fixed-width) numerals so digits align in columns. Ideal for
|
|
37
29
|
* stat values, tables, timestamps, and any updating number. */
|
|
38
30
|
tabularNums?: boolean;
|
|
39
|
-
}
|
|
31
|
+
};
|
|
32
|
+
type TextRoleProps = {
|
|
33
|
+
role: TextRole;
|
|
34
|
+
size?: never;
|
|
35
|
+
variant?: never;
|
|
36
|
+
weight?: never;
|
|
37
|
+
font?: never;
|
|
38
|
+
letterSpacing?: never;
|
|
39
|
+
};
|
|
40
|
+
type TextLegacyScaleProps = {
|
|
41
|
+
role?: never;
|
|
42
|
+
size?: TextSize;
|
|
43
|
+
variant?: 'section-label';
|
|
44
|
+
weight?: TextWeight;
|
|
45
|
+
font?: TextFont;
|
|
46
|
+
letterSpacing?: TextTracking;
|
|
47
|
+
};
|
|
48
|
+
export type TextProps = TextSharedProps & (TextRoleProps | TextLegacyScaleProps);
|
|
40
49
|
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>> & {
|
|
41
50
|
Root: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
42
51
|
};
|
|
52
|
+
export {};
|
|
43
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;GAGG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,UAAU,GACV,UAAU,GACV,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACjG,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvE,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IACjF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;yBACqB;IACrB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClN;;;4BAGwB;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC1F,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;4EAEwE;IACxE;mEAC+D;IAC/D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,CAAC,aAAa,GAAG,oBAAoB,CAAC,CAAC;AA8DjF,eAAO,MAAM,IAAI;;CAEf,CAAC"}
|