@usefragments/ui 1.5.4 → 1.7.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 +4 -4
- package/dist/assets/fragments-wordmark.cjs +2 -2
- package/dist/assets/fragments-wordmark.d.ts.map +1 -1
- package/dist/assets/fragments-wordmark.js +2 -2
- package/dist/assets/ui.css +10468 -6909
- package/dist/chart.cjs +31 -26
- package/dist/chart.js +31 -26
- package/dist/codeblock.cjs +55 -29
- package/dist/codeblock.js +55 -29
- package/dist/colorpicker.cjs +5 -2
- package/dist/colorpicker.js +5 -2
- 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 +15 -12
- package/dist/components/Alert/Alert.module.scss.js +15 -12
- package/dist/components/Alert/index.cjs +7 -1
- package/dist/components/Alert/index.d.ts +12 -6
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +7 -1
- 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/Box/index.cjs +64 -75
- package/dist/components/Box/index.d.ts +16 -16
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +64 -75
- 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 +30 -18
- package/dist/components/Card/Card.module.scss.js +31 -19
- package/dist/components/Card/index.cjs +8 -0
- package/dist/components/Card/index.d.ts +12 -2
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +8 -0
- 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 +6 -8
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +6 -8
- 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 +6 -6
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.js +4 -4
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +27 -24
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +27 -24
- package/dist/components/CodeBlock/css-variables-theme.cjs +98 -0
- package/dist/components/CodeBlock/css-variables-theme.d.ts +27 -0
- package/dist/components/CodeBlock/css-variables-theme.d.ts.map +1 -0
- package/dist/components/CodeBlock/css-variables-theme.js +98 -0
- package/dist/components/CodeBlock/index.d.ts +17 -3
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- 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 +21 -5
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +21 -5
- package/dist/components/Command/Command.module.scss.cjs +11 -11
- package/dist/components/Command/Command.module.scss.js +11 -11
- package/dist/components/Command/index.cjs +26 -15
- package/dist/components/Command/index.d.ts +2 -2
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +26 -15
- 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.icons.cjs +6 -33
- package/dist/components/DataTable/DataTable.icons.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.icons.js +6 -33
- 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/Dialog/index.cjs +11 -14
- package/dist/components/Dialog/index.d.ts +7 -7
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +11 -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/Editor/index.d.ts +10 -10
- package/dist/components/Editor/index.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +15 -12
- package/dist/components/EmptyState/EmptyState.module.scss.js +15 -12
- package/dist/components/EmptyState/index.cjs +8 -6
- package/dist/components/EmptyState/index.d.ts +9 -4
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +8 -6
- 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 +18 -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 +18 -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 +18 -38
- package/dist/components/Header/index.d.ts +15 -11
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +18 -38
- 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/IconButton/index.cjs +2 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.js +2 -1
- package/dist/components/Image/Image.module.scss.cjs +27 -27
- package/dist/components/Image/Image.module.scss.js +27 -27
- 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 +14 -10
- package/dist/components/Link/Link.module.scss.js +14 -10
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- 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 +34 -34
- package/dist/components/Loading/Loading.module.scss.js +34 -34
- 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/Markdown/index.d.ts +2 -2
- package/dist/components/Markdown/index.d.ts.map +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 +34 -31
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +34 -31
- package/dist/components/NavigationMenu/index.cjs +32 -15
- package/dist/components/NavigationMenu/index.d.ts +12 -6
- package/dist/components/NavigationMenu/index.d.ts.map +1 -1
- package/dist/components/NavigationMenu/index.js +32 -15
- 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 +6 -5
- 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 +17 -38
- package/dist/components/Sidebar/index.d.ts +23 -18
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +17 -38
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +56 -40
- package/dist/components/Skeleton/Skeleton.module.scss.js +56 -40
- 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 +21 -30
- package/dist/components/Table/Table.module.scss.js +21 -30
- 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/TableOfContents/index.cjs +13 -9
- package/dist/components/TableOfContents/index.d.ts +5 -3
- package/dist/components/TableOfContents/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/index.js +13 -9
- 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 +28 -8
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +28 -8
- package/dist/components/Text/Text.module.scss.cjs +105 -57
- package/dist/components/Text/Text.module.scss.js +105 -57
- package/dist/components/Text/index.cjs +49 -33
- package/dist/components/Text/index.d.ts +30 -19
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +49 -33
- 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 +16 -210
- 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 +11 -205
- package/dist/components/{Theme → ThemeToggle}/ThemeToggle.module.scss.cjs +9 -6
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.js +26 -0
- package/dist/components/ThemeToggle/index.cjs +140 -0
- package/dist/components/ThemeToggle/index.d.ts +26 -0
- package/dist/components/ThemeToggle/index.d.ts.map +1 -0
- package/dist/components/ThemeToggle/index.js +140 -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/Tooltip/index.cjs +24 -40
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +24 -40
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.cjs +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.js +1 -1
- package/dist/components/VisuallyHidden/index.d.ts +2 -2
- package/dist/data-table.cjs +14 -10
- package/dist/data-table.js +14 -10
- package/dist/datepicker.cjs +5 -3
- package/dist/datepicker.js +5 -3
- package/dist/editor.cjs +68 -28
- package/dist/editor.js +68 -28
- package/dist/index.cjs +101 -99
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/markdown.cjs +21 -29
- package/dist/markdown.js +22 -30
- package/dist/measurements/generated.cjs +304 -0
- package/dist/measurements/generated.d.ts +268 -0
- package/dist/measurements/generated.d.ts.map +1 -0
- package/dist/measurements/generated.js +304 -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/a11y.cjs +5 -2
- package/dist/utils/a11y.d.ts +5 -5
- package/dist/utils/a11y.d.ts.map +1 -1
- package/dist/utils/a11y.js +5 -2
- package/dist/utils/canonical-stamp.cjs +2 -8
- package/dist/utils/canonical-stamp.d.ts.map +1 -1
- package/dist/utils/canonical-stamp.js +1 -7
- package/dist/utils/css-warning.cjs +1 -1
- package/dist/utils/css-warning.js +1 -1
- package/dist/utils/env.cjs +17 -0
- package/dist/utils/env.d.ts +3 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +17 -0
- package/dist/utils/keyboard-shortcuts.cjs +3 -10
- package/dist/utils/keyboard-shortcuts.d.ts +4 -4
- package/dist/utils/keyboard-shortcuts.d.ts.map +1 -1
- package/dist/utils/keyboard-shortcuts.js +3 -10
- 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 +14 -48
- 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 +14 -48
- 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 +25 -4
- package/src/assets/fragments-logo.tsx +2 -2
- package/src/assets/fragments-wordmark.tsx +4 -2
- package/src/components/Accordion/Accordion.contract.json +24 -48
- package/src/components/Accordion/Accordion.module.scss +31 -52
- package/src/components/Alert/Alert.contract.json +37 -53
- package/src/components/Alert/Alert.module.scss +52 -44
- package/src/components/Alert/index.tsx +55 -29
- package/src/components/AppShell/AppShell.contract.json +34 -51
- package/src/components/AppShell/AppShell.module.scss +59 -43
- package/src/components/AppShell/index.tsx +8 -4
- package/src/components/Avatar/Avatar.contract.json +31 -48
- package/src/components/Avatar/Avatar.module.scss +25 -60
- package/src/components/Avatar/index.tsx +152 -146
- package/src/components/Badge/Badge.contract.json +37 -42
- package/src/components/Badge/Badge.module.scss +59 -47
- package/src/components/BentoGrid/BentoGrid.contract.json +21 -45
- package/src/components/BentoGrid/BentoGrid.module.scss +11 -32
- package/src/components/Box/Box.contract.json +40 -148
- package/src/components/Box/Box.module.scss +253 -81
- package/src/components/Box/index.tsx +92 -99
- package/src/components/Breadcrumbs/Breadcrumbs.contract.json +21 -34
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +19 -15
- package/src/components/Button/Button.module.scss +60 -64
- package/src/components/ButtonGroup/ButtonGroup.contract.json +32 -47
- 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 +284 -167
- package/src/components/Card/index.tsx +21 -2
- package/src/components/Chart/Chart.contract.json +21 -29
- package/src/components/Chart/Chart.module.scss +28 -29
- package/src/components/Chart/index.tsx +72 -55
- package/src/components/Checkbox/Checkbox.contract.json +24 -24
- package/src/components/Checkbox/Checkbox.module.scss +75 -87
- package/src/components/Checkbox/index.tsx +8 -11
- package/src/components/Chip/Chip.contract.json +36 -42
- package/src/components/Chip/Chip.module.scss +25 -36
- package/src/components/Chip/index.tsx +5 -5
- package/src/components/CodeBlock/CodeBlock.contract.json +46 -76
- package/src/components/CodeBlock/CodeBlock.module.scss +129 -217
- package/src/components/CodeBlock/css-variables-theme.ts +102 -0
- package/src/components/CodeBlock/index.tsx +91 -35
- package/src/components/Collapsible/Collapsible.contract.json +21 -36
- package/src/components/Collapsible/Collapsible.module.scss +29 -63
- package/src/components/Collapsible/index.tsx +22 -26
- package/src/components/ColorPicker/ColorPicker.contract.json +29 -48
- package/src/components/ColorPicker/ColorPicker.module.scss +54 -33
- package/src/components/ColorPicker/index.tsx +7 -2
- package/src/components/Combobox/Combobox.contract.json +36 -37
- package/src/components/Combobox/Combobox.module.scss +61 -74
- package/src/components/Combobox/index.tsx +34 -6
- package/src/components/Command/Command.contract.json +21 -43
- package/src/components/Command/Command.module.scss +47 -77
- package/src/components/Command/index.tsx +58 -47
- package/src/components/ConversationList/ConversationList.contract.json +27 -32
- package/src/components/ConversationList/ConversationList.module.scss +20 -78
- package/src/components/ConversationList/index.tsx +55 -59
- package/src/components/DataTable/DataTable.icons.tsx +4 -21
- package/src/components/DataTable/DataTable.module.scss +81 -217
- package/src/components/DataTable/index.tsx +28 -32
- package/src/components/DatePicker/DatePicker.contract.json +27 -28
- package/src/components/DatePicker/DatePicker.module.scss +66 -38
- package/src/components/DatePicker/index.tsx +7 -3
- package/src/components/Dialog/Dialog.module.scss +45 -69
- package/src/components/Dialog/index.tsx +47 -37
- package/src/components/Drawer/Drawer.contract.json +22 -36
- package/src/components/Drawer/Drawer.module.scss +93 -99
- package/src/components/Drawer/index.tsx +1 -1
- package/src/components/Editor/Editor.contract.json +31 -48
- package/src/components/Editor/Editor.module.scss +137 -220
- package/src/components/Editor/index.tsx +240 -179
- package/src/components/EmptyState/EmptyState.contract.json +31 -43
- package/src/components/EmptyState/EmptyState.module.scss +45 -84
- package/src/components/EmptyState/index.tsx +48 -23
- package/src/components/Field/Field.contract.json +28 -45
- package/src/components/Field/Field.module.scss +9 -11
- package/src/components/Field/index.tsx +31 -1
- package/src/components/Fieldset/Fieldset.contract.json +21 -38
- package/src/components/Fieldset/Fieldset.module.scss +23 -8
- package/src/components/Form/Form.contract.json +27 -40
- package/src/components/Form/Form.module.scss +9 -4
- package/src/components/Form/index.tsx +22 -7
- package/src/components/Grid/Grid.contract.json +28 -64
- package/src/components/Grid/Grid.module.scss +159 -63
- package/src/components/Grid/index.tsx +114 -133
- package/src/components/Header/Header.contract.json +31 -67
- package/src/components/Header/Header.module.scss +56 -48
- package/src/components/Header/index.tsx +134 -121
- package/src/components/Icon/Icon.contract.json +22 -62
- package/src/components/Icon/Icon.module.scss +16 -0
- package/src/components/Icon/index.tsx +74 -86
- package/src/components/IconButton/IconButton.contract.json +34 -18
- package/src/components/IconButton/IconButton.module.scss +15 -26
- package/src/components/IconButton/index.tsx +2 -1
- package/src/components/Image/Image.contract.json +23 -56
- package/src/components/Input/Input.contract.json +26 -32
- package/src/components/Input/Input.module.scss +69 -56
- package/src/components/Input/index.tsx +1 -2
- package/src/components/Link/Link.contract.json +32 -52
- package/src/components/Link/Link.module.scss +29 -13
- package/src/components/Link/index.tsx +1 -1
- package/src/components/List/List.contract.json +23 -52
- package/src/components/List/List.module.scss +16 -21
- package/src/components/List/index.tsx +4 -10
- package/src/components/Listbox/Listbox.contract.json +21 -37
- package/src/components/Listbox/Listbox.module.scss +26 -54
- package/src/components/Loading/Loading.contract.json +37 -61
- package/src/components/Loading/Loading.module.scss +33 -40
- package/src/components/Loading/index.tsx +68 -97
- package/src/components/Main/Main.contract.json +17 -9
- package/src/components/Main/Main.module.scss +3 -5
- package/src/components/Markdown/Markdown.contract.json +22 -43
- package/src/components/Markdown/Markdown.module.scss +72 -182
- package/src/components/Markdown/index.tsx +50 -51
- package/src/components/Menu/Menu.contract.json +25 -41
- package/src/components/Menu/Menu.module.scss +63 -133
- package/src/components/Menu/index.tsx +57 -89
- package/src/components/Message/Message.contract.json +29 -52
- package/src/components/Message/Message.module.scss +60 -143
- package/src/components/Message/index.tsx +16 -6
- package/src/components/NavigationMenu/NavigationMenu.contract.json +36 -45
- package/src/components/NavigationMenu/NavigationMenu.module.scss +123 -71
- package/src/components/NavigationMenu/index.tsx +105 -81
- package/src/components/Pagination/Pagination.contract.json +22 -40
- package/src/components/Pagination/Pagination.module.scss +34 -27
- package/src/components/Pagination/index.tsx +7 -2
- package/src/components/Popover/Popover.contract.json +24 -46
- package/src/components/Popover/Popover.module.scss +43 -78
- package/src/components/Progress/Progress.contract.json +32 -28
- package/src/components/Progress/Progress.module.scss +64 -43
- package/src/components/Progress/geometry.ts +41 -0
- package/src/components/Progress/index.tsx +44 -30
- package/src/components/Prompt/Prompt.contract.json +31 -47
- package/src/components/Prompt/Prompt.module.scss +58 -87
- package/src/components/Prompt/index.tsx +6 -5
- package/src/components/RadioGroup/RadioGroup.contract.json +23 -24
- package/src/components/RadioGroup/RadioGroup.module.scss +63 -83
- package/src/components/RadioGroup/index.tsx +7 -9
- package/src/components/ScrollArea/ScrollArea.contract.json +23 -40
- package/src/components/ScrollArea/ScrollArea.module.scss +123 -97
- package/src/components/ScrollArea/index.tsx +85 -67
- package/src/components/ScrollArea/scroll-state.ts +87 -0
- package/src/components/Select/Select.module.scss +55 -43
- package/src/components/Select/index.tsx +6 -2
- package/src/components/Separator/Separator.contract.json +24 -48
- package/src/components/Separator/Separator.module.scss +29 -19
- package/src/components/Separator/index.tsx +55 -51
- package/src/components/Sidebar/Sidebar.contract.json +42 -62
- package/src/components/Sidebar/Sidebar.module.scss +117 -106
- package/src/components/Sidebar/index.tsx +169 -162
- package/src/components/Skeleton/Skeleton.contract.json +28 -54
- package/src/components/Skeleton/Skeleton.module.scss +51 -34
- package/src/components/Skeleton/index.tsx +65 -72
- package/src/components/Slider/Slider.contract.json +27 -39
- package/src/components/Slider/Slider.module.scss +33 -27
- package/src/components/Stack/Stack.contract.json +29 -56
- package/src/components/Stack/Stack.module.scss +110 -38
- package/src/components/Stack/index.tsx +157 -127
- package/src/components/{Toggle/Toggle.contract.json → Switch/Switch.contract.json} +34 -47
- package/src/components/Switch/Switch.module.scss +255 -0
- package/src/components/{Toggle → Switch}/index.tsx +5 -21
- package/src/components/Table/Table.contract.json +28 -46
- package/src/components/Table/Table.module.scss +50 -129
- package/src/components/Table/index.tsx +13 -6
- package/src/components/TableOfContents/TableOfContents.contract.json +34 -21
- package/src/components/TableOfContents/TableOfContents.module.scss +35 -182
- package/src/components/TableOfContents/index.tsx +26 -9
- package/src/components/Tabs/Tabs.contract.json +24 -45
- package/src/components/Tabs/Tabs.module.scss +28 -23
- package/src/components/Tabs/index.tsx +17 -5
- package/src/components/Text/Text.contract.json +30 -72
- package/src/components/Text/Text.module.scss +43 -7
- package/src/components/Text/index.tsx +136 -63
- package/src/components/Textarea/Textarea.contract.json +25 -43
- package/src/components/Textarea/Textarea.module.scss +58 -40
- package/src/components/Textarea/index.tsx +5 -12
- package/src/components/Theme/Theme.contract.json +32 -51
- package/src/components/Theme/context.ts +42 -0
- package/src/components/Theme/index.tsx +16 -310
- package/src/components/ThemeToggle/ThemeToggle.module.scss +89 -0
- package/src/components/ThemeToggle/index.tsx +180 -0
- package/src/components/ThinkingIndicator/ThinkingIndicator.contract.json +23 -40
- package/src/components/ThinkingIndicator/ThinkingIndicator.module.scss +24 -19
- package/src/components/ThinkingIndicator/index.tsx +44 -54
- package/src/components/Toast/Toast.contract.json +35 -61
- package/src/components/Toast/Toast.module.scss +62 -139
- package/src/components/Toggle/index.ts +7 -0
- package/src/components/ToggleGroup/ToggleGroup.contract.json +40 -68
- package/src/components/ToggleGroup/ToggleGroup.module.scss +166 -89
- package/src/components/ToggleGroup/index.tsx +5 -3
- package/src/components/Tooltip/Tooltip.contract.json +31 -52
- package/src/components/Tooltip/Tooltip.module.scss +23 -39
- package/src/components/Tooltip/index.tsx +19 -24
- package/src/components/VisuallyHidden/VisuallyHidden.contract.json +22 -44
- package/src/components/VisuallyHidden/VisuallyHidden.module.scss +3 -0
- package/src/components/VisuallyHidden/index.tsx +5 -5
- package/src/index.ts +4 -3
- package/src/measurements/MeasurementTargets.module.scss +229 -0
- package/src/measurements/generated.ts +324 -0
- package/src/measurements/index.ts +8 -0
- package/src/measurements/measurements.json +368 -0
- package/src/recipes/_action.scss +138 -0
- package/src/recipes/_boolean-range.scss +116 -0
- package/src/recipes/_feedback.scss +171 -0
- package/src/recipes/_field.scss +102 -0
- package/src/recipes/_layout.scss +74 -0
- package/src/recipes/_navigation.scss +110 -0
- package/src/recipes/_overlay.scss +191 -0
- package/src/recipes/_popup.scss +102 -0
- package/src/recipes/_prose.scss +182 -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 +119 -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/scss.d.ts +1 -1
- package/src/styles/globals.scss +21 -20
- package/src/tokens/_component-properties.scss +2 -2
- package/src/tokens/_computed.scss +14 -25
- package/src/tokens/_density.scss +41 -132
- package/src/tokens/_derive.scss +112 -210
- package/src/tokens/_measurements.catalog.generated.css +96 -0
- package/src/tokens/_measurements.generated.scss +617 -0
- package/src/tokens/_mixins.scss +7 -284
- package/src/tokens/_palettes.scss +39 -167
- package/src/tokens/_property-registrations.scss +96 -92
- package/src/tokens/_radius.scss +16 -70
- package/src/tokens/_seeds.scss +24 -23
- package/src/tokens/_variables.scss +338 -178
- package/src/utils/a11y.tsx +69 -69
- package/src/utils/aria.ts +3 -3
- package/src/utils/canonical-stamp.ts +2 -12
- package/src/utils/css-warning.ts +7 -7
- package/src/utils/env.ts +25 -0
- package/src/utils/keyboard-shortcuts.ts +131 -126
- package/src/utils/layout-spacing.ts +31 -0
- package/src/utils/seed-derivation.ts +144 -178
- 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/Button/Button.contract.json +0 -218
- package/src/components/Card/Card.contract.json +0 -175
- package/src/components/DataTable/DataTable.contract.json +0 -302
- package/src/components/Dialog/Dialog.contract.json +0 -159
- package/src/components/Select/Select.contract.json +0 -259
- package/src/components/Switch/index.ts +0 -3
- package/src/components/Theme/ThemeToggle.module.scss +0 -91
- package/src/components/Toggle/Toggle.module.scss +0 -244
|
@@ -4,81 +4,70 @@ import styles from "./Box.module.scss.js";
|
|
|
4
4
|
function toCss(value) {
|
|
5
5
|
return typeof value === "number" ? `${value}px` : value;
|
|
6
6
|
}
|
|
7
|
-
const BoxRoot = React.forwardRef(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Component,
|
|
72
|
-
{
|
|
73
|
-
ref,
|
|
74
|
-
...htmlProps,
|
|
75
|
-
className: classes,
|
|
76
|
-
style: mergedStyle,
|
|
77
|
-
children
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
);
|
|
7
|
+
const BoxRoot = React.forwardRef(function Box2({
|
|
8
|
+
children,
|
|
9
|
+
as: Component = "div",
|
|
10
|
+
padding,
|
|
11
|
+
paddingX,
|
|
12
|
+
paddingY,
|
|
13
|
+
margin,
|
|
14
|
+
marginX,
|
|
15
|
+
marginY,
|
|
16
|
+
background,
|
|
17
|
+
rounded,
|
|
18
|
+
border,
|
|
19
|
+
borderTop,
|
|
20
|
+
borderBottom,
|
|
21
|
+
borderLeft,
|
|
22
|
+
borderRight,
|
|
23
|
+
borderColor,
|
|
24
|
+
shadow,
|
|
25
|
+
overflow,
|
|
26
|
+
color,
|
|
27
|
+
display,
|
|
28
|
+
width,
|
|
29
|
+
minWidth,
|
|
30
|
+
maxWidth,
|
|
31
|
+
height,
|
|
32
|
+
minHeight,
|
|
33
|
+
maxHeight,
|
|
34
|
+
className,
|
|
35
|
+
style,
|
|
36
|
+
...htmlProps
|
|
37
|
+
}, ref) {
|
|
38
|
+
const classes = [
|
|
39
|
+
styles.box,
|
|
40
|
+
padding && styles[`p-${padding}`],
|
|
41
|
+
paddingX && styles[`px-${paddingX}`],
|
|
42
|
+
paddingY && styles[`py-${paddingY}`],
|
|
43
|
+
margin && styles[`m-${margin}`],
|
|
44
|
+
marginX && styles[`mx-${marginX}`],
|
|
45
|
+
marginY && styles[`my-${marginY}`],
|
|
46
|
+
background && styles[`bg-${background}`],
|
|
47
|
+
rounded && styles[`rounded-${rounded}`],
|
|
48
|
+
border && styles.border,
|
|
49
|
+
borderTop && styles.borderTop,
|
|
50
|
+
borderBottom && styles.borderBottom,
|
|
51
|
+
borderLeft && styles.borderLeft,
|
|
52
|
+
borderRight && styles.borderRight,
|
|
53
|
+
borderColor && styles[`borderColor-${borderColor}`],
|
|
54
|
+
shadow && styles[`shadow-${shadow}`],
|
|
55
|
+
overflow && styles[`overflow-${overflow}`],
|
|
56
|
+
color && styles[`color-${color}`],
|
|
57
|
+
display && styles[`display-${display}`],
|
|
58
|
+
className
|
|
59
|
+
].filter(Boolean).join(" ");
|
|
60
|
+
const sizingStyle = {};
|
|
61
|
+
if (width != null) sizingStyle.width = toCss(width);
|
|
62
|
+
if (minWidth != null) sizingStyle.minWidth = toCss(minWidth);
|
|
63
|
+
if (maxWidth != null) sizingStyle.maxWidth = toCss(maxWidth);
|
|
64
|
+
if (height != null) sizingStyle.height = toCss(height);
|
|
65
|
+
if (minHeight != null) sizingStyle.minHeight = toCss(minHeight);
|
|
66
|
+
if (maxHeight != null) sizingStyle.maxHeight = toCss(maxHeight);
|
|
67
|
+
const hasSizing = Object.keys(sizingStyle).length > 0;
|
|
68
|
+
const mergedStyle = hasSizing ? { ...sizingStyle, ...style } : style;
|
|
69
|
+
return /* @__PURE__ */ jsx(Component, { ref, ...htmlProps, className: classes, style: mergedStyle, children });
|
|
70
|
+
});
|
|
82
71
|
const Box = Object.assign(BoxRoot, {
|
|
83
72
|
Root: BoxRoot
|
|
84
73
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const list = "
|
|
5
|
-
const item = "
|
|
6
|
-
const link = "
|
|
7
|
-
const current = "
|
|
8
|
-
const separator = "
|
|
9
|
-
const ellipsis = "
|
|
10
|
-
const icon = "
|
|
3
|
+
const root = "_root_1flbo_1";
|
|
4
|
+
const list = "_list_1flbo_9";
|
|
5
|
+
const item = "_item_1flbo_19";
|
|
6
|
+
const link = "_link_1flbo_26";
|
|
7
|
+
const current = "_current_1flbo_63";
|
|
8
|
+
const separator = "_separator_1flbo_75";
|
|
9
|
+
const ellipsis = "_ellipsis_1flbo_84";
|
|
10
|
+
const icon = "_icon_1flbo_144";
|
|
11
11
|
const styles = {
|
|
12
12
|
root,
|
|
13
13
|
list,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const list = "
|
|
3
|
-
const item = "
|
|
4
|
-
const link = "
|
|
5
|
-
const current = "
|
|
6
|
-
const separator = "
|
|
7
|
-
const ellipsis = "
|
|
8
|
-
const icon = "
|
|
1
|
+
const root = "_root_1flbo_1";
|
|
2
|
+
const list = "_list_1flbo_9";
|
|
3
|
+
const item = "_item_1flbo_19";
|
|
4
|
+
const link = "_link_1flbo_26";
|
|
5
|
+
const current = "_current_1flbo_63";
|
|
6
|
+
const separator = "_separator_1flbo_75";
|
|
7
|
+
const ellipsis = "_ellipsis_1flbo_84";
|
|
8
|
+
const icon = "_icon_1flbo_144";
|
|
9
9
|
const styles = {
|
|
10
10
|
root,
|
|
11
11
|
list,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const button = "
|
|
4
|
-
const xs = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const md = "
|
|
7
|
-
const lg = "
|
|
8
|
-
const icon = "
|
|
9
|
-
const primary = "
|
|
10
|
-
const secondary = "
|
|
11
|
-
const ghost = "
|
|
12
|
-
const link = "
|
|
13
|
-
const quiet = "
|
|
14
|
-
const danger = "
|
|
15
|
-
const outlined = "
|
|
16
|
-
const fullWidth = "
|
|
3
|
+
const button = "_button_lljfc_1";
|
|
4
|
+
const xs = "_xs_lljfc_78";
|
|
5
|
+
const sm = "_sm_lljfc_95";
|
|
6
|
+
const md = "_md_lljfc_112";
|
|
7
|
+
const lg = "_lg_lljfc_129";
|
|
8
|
+
const icon = "_icon_lljfc_146";
|
|
9
|
+
const primary = "_primary_lljfc_178";
|
|
10
|
+
const secondary = "_secondary_lljfc_193";
|
|
11
|
+
const ghost = "_ghost_lljfc_205";
|
|
12
|
+
const link = "_link_lljfc_217";
|
|
13
|
+
const quiet = "_quiet_lljfc_237";
|
|
14
|
+
const danger = "_danger_lljfc_260";
|
|
15
|
+
const outlined = "_outlined_lljfc_288";
|
|
16
|
+
const fullWidth = "_fullWidth_lljfc_307";
|
|
17
17
|
const styles = {
|
|
18
18
|
button,
|
|
19
19
|
xs,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const button = "
|
|
2
|
-
const xs = "
|
|
3
|
-
const sm = "
|
|
4
|
-
const md = "
|
|
5
|
-
const lg = "
|
|
6
|
-
const icon = "
|
|
7
|
-
const primary = "
|
|
8
|
-
const secondary = "
|
|
9
|
-
const ghost = "
|
|
10
|
-
const link = "
|
|
11
|
-
const quiet = "
|
|
12
|
-
const danger = "
|
|
13
|
-
const outlined = "
|
|
14
|
-
const fullWidth = "
|
|
1
|
+
const button = "_button_lljfc_1";
|
|
2
|
+
const xs = "_xs_lljfc_78";
|
|
3
|
+
const sm = "_sm_lljfc_95";
|
|
4
|
+
const md = "_md_lljfc_112";
|
|
5
|
+
const lg = "_lg_lljfc_129";
|
|
6
|
+
const icon = "_icon_lljfc_146";
|
|
7
|
+
const primary = "_primary_lljfc_178";
|
|
8
|
+
const secondary = "_secondary_lljfc_193";
|
|
9
|
+
const ghost = "_ghost_lljfc_205";
|
|
10
|
+
const link = "_link_lljfc_217";
|
|
11
|
+
const quiet = "_quiet_lljfc_237";
|
|
12
|
+
const danger = "_danger_lljfc_260";
|
|
13
|
+
const outlined = "_outlined_lljfc_288";
|
|
14
|
+
const fullWidth = "_fullWidth_lljfc_307";
|
|
15
15
|
const styles = {
|
|
16
16
|
button,
|
|
17
17
|
xs,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const group = "
|
|
4
|
-
const gapNone = "
|
|
5
|
-
const gapXs = "_gap-
|
|
6
|
-
const gapSm = "_gap-
|
|
7
|
-
const gapMd = "_gap-
|
|
8
|
-
const wrap = "
|
|
9
|
-
const alignStart = "_align-
|
|
10
|
-
const alignCenter = "_align-
|
|
11
|
-
const alignEnd = "_align-
|
|
3
|
+
const group = "_group_1xl7m_1";
|
|
4
|
+
const gapNone = "_gapNone_1xl7m_6";
|
|
5
|
+
const gapXs = "_gap-xs_1xl7m_26";
|
|
6
|
+
const gapSm = "_gap-sm_1xl7m_30";
|
|
7
|
+
const gapMd = "_gap-md_1xl7m_34";
|
|
8
|
+
const wrap = "_wrap_1xl7m_38";
|
|
9
|
+
const alignStart = "_align-start_1xl7m_42";
|
|
10
|
+
const alignCenter = "_align-center_1xl7m_46";
|
|
11
|
+
const alignEnd = "_align-end_1xl7m_50";
|
|
12
12
|
const styles = {
|
|
13
13
|
group,
|
|
14
14
|
gapNone,
|
|
15
|
-
"gap-xs": "_gap-
|
|
15
|
+
"gap-xs": "_gap-xs_1xl7m_26",
|
|
16
16
|
gapXs,
|
|
17
|
-
"gap-sm": "_gap-
|
|
17
|
+
"gap-sm": "_gap-sm_1xl7m_30",
|
|
18
18
|
gapSm,
|
|
19
|
-
"gap-md": "_gap-
|
|
19
|
+
"gap-md": "_gap-md_1xl7m_34",
|
|
20
20
|
gapMd,
|
|
21
21
|
wrap,
|
|
22
|
-
"align-start": "_align-
|
|
22
|
+
"align-start": "_align-start_1xl7m_42",
|
|
23
23
|
alignStart,
|
|
24
|
-
"align-center": "_align-
|
|
24
|
+
"align-center": "_align-center_1xl7m_46",
|
|
25
25
|
alignCenter,
|
|
26
|
-
"align-end": "_align-
|
|
26
|
+
"align-end": "_align-end_1xl7m_50",
|
|
27
27
|
alignEnd
|
|
28
28
|
};
|
|
29
29
|
exports.alignCenter = alignCenter;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
const group = "
|
|
2
|
-
const gapNone = "
|
|
3
|
-
const gapXs = "_gap-
|
|
4
|
-
const gapSm = "_gap-
|
|
5
|
-
const gapMd = "_gap-
|
|
6
|
-
const wrap = "
|
|
7
|
-
const alignStart = "_align-
|
|
8
|
-
const alignCenter = "_align-
|
|
9
|
-
const alignEnd = "_align-
|
|
1
|
+
const group = "_group_1xl7m_1";
|
|
2
|
+
const gapNone = "_gapNone_1xl7m_6";
|
|
3
|
+
const gapXs = "_gap-xs_1xl7m_26";
|
|
4
|
+
const gapSm = "_gap-sm_1xl7m_30";
|
|
5
|
+
const gapMd = "_gap-md_1xl7m_34";
|
|
6
|
+
const wrap = "_wrap_1xl7m_38";
|
|
7
|
+
const alignStart = "_align-start_1xl7m_42";
|
|
8
|
+
const alignCenter = "_align-center_1xl7m_46";
|
|
9
|
+
const alignEnd = "_align-end_1xl7m_50";
|
|
10
10
|
const styles = {
|
|
11
11
|
group,
|
|
12
12
|
gapNone,
|
|
13
|
-
"gap-xs": "_gap-
|
|
13
|
+
"gap-xs": "_gap-xs_1xl7m_26",
|
|
14
14
|
gapXs,
|
|
15
|
-
"gap-sm": "_gap-
|
|
15
|
+
"gap-sm": "_gap-sm_1xl7m_30",
|
|
16
16
|
gapSm,
|
|
17
|
-
"gap-md": "_gap-
|
|
17
|
+
"gap-md": "_gap-md_1xl7m_34",
|
|
18
18
|
gapMd,
|
|
19
19
|
wrap,
|
|
20
|
-
"align-start": "_align-
|
|
20
|
+
"align-start": "_align-start_1xl7m_42",
|
|
21
21
|
alignStart,
|
|
22
|
-
"align-center": "_align-
|
|
22
|
+
"align-center": "_align-center_1xl7m_46",
|
|
23
23
|
alignCenter,
|
|
24
|
-
"align-end": "_align-
|
|
24
|
+
"align-end": "_align-end_1xl7m_50",
|
|
25
25
|
alignEnd
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const card = "
|
|
4
|
-
const outlined = "
|
|
5
|
-
const elevated = "
|
|
6
|
-
const stat = "
|
|
7
|
-
const panel = "
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
3
|
+
const card = "_card_vzj3k_14";
|
|
4
|
+
const outlined = "_outlined_vzj3k_36";
|
|
5
|
+
const elevated = "_elevated_vzj3k_41";
|
|
6
|
+
const stat = "_stat_vzj3k_46";
|
|
7
|
+
const panel = "_panel_vzj3k_51";
|
|
8
|
+
const accent = "_accent_vzj3k_58";
|
|
9
|
+
const toneDanger = "_toneDanger_vzj3k_73";
|
|
10
|
+
const toneWarning = "_toneWarning_vzj3k_79";
|
|
11
|
+
const toneNeutral = "_toneNeutral_vzj3k_85";
|
|
12
|
+
const paddingNone = "_paddingNone_vzj3k_91";
|
|
13
|
+
const paddingSm = "_paddingSm_vzj3k_94";
|
|
14
|
+
const paddingMd = "_paddingMd_vzj3k_97";
|
|
15
|
+
const paddingLg = "_paddingLg_vzj3k_100";
|
|
16
|
+
const interactive = "_interactive_vzj3k_103";
|
|
17
|
+
const header = "_header_vzj3k_131";
|
|
18
|
+
const headerDivided = "_headerDivided_vzj3k_136";
|
|
19
|
+
const description = "_description_vzj3k_147";
|
|
20
|
+
const title = "_title_vzj3k_150";
|
|
21
|
+
const body = "_body_vzj3k_168";
|
|
22
|
+
const footer = "_footer_vzj3k_189";
|
|
19
23
|
const styles = {
|
|
20
24
|
card,
|
|
21
|
-
"default": "
|
|
25
|
+
"default": "_default_vzj3k_31",
|
|
22
26
|
outlined,
|
|
23
27
|
elevated,
|
|
24
28
|
stat,
|
|
25
29
|
panel,
|
|
30
|
+
accent,
|
|
31
|
+
toneDanger,
|
|
32
|
+
toneWarning,
|
|
33
|
+
toneNeutral,
|
|
26
34
|
paddingNone,
|
|
27
35
|
paddingSm,
|
|
28
36
|
paddingMd,
|
|
@@ -30,11 +38,12 @@ const styles = {
|
|
|
30
38
|
interactive,
|
|
31
39
|
header,
|
|
32
40
|
headerDivided,
|
|
33
|
-
title,
|
|
34
41
|
description,
|
|
42
|
+
title,
|
|
35
43
|
body,
|
|
36
44
|
footer
|
|
37
45
|
};
|
|
46
|
+
exports.accent = accent;
|
|
38
47
|
exports.body = body;
|
|
39
48
|
exports.card = card;
|
|
40
49
|
exports.default = styles;
|
|
@@ -52,3 +61,6 @@ exports.paddingSm = paddingSm;
|
|
|
52
61
|
exports.panel = panel;
|
|
53
62
|
exports.stat = stat;
|
|
54
63
|
exports.title = title;
|
|
64
|
+
exports.toneDanger = toneDanger;
|
|
65
|
+
exports.toneNeutral = toneNeutral;
|
|
66
|
+
exports.toneWarning = toneWarning;
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
const card = "
|
|
2
|
-
const outlined = "
|
|
3
|
-
const elevated = "
|
|
4
|
-
const stat = "
|
|
5
|
-
const panel = "
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
1
|
+
const card = "_card_vzj3k_14";
|
|
2
|
+
const outlined = "_outlined_vzj3k_36";
|
|
3
|
+
const elevated = "_elevated_vzj3k_41";
|
|
4
|
+
const stat = "_stat_vzj3k_46";
|
|
5
|
+
const panel = "_panel_vzj3k_51";
|
|
6
|
+
const accent = "_accent_vzj3k_58";
|
|
7
|
+
const toneDanger = "_toneDanger_vzj3k_73";
|
|
8
|
+
const toneWarning = "_toneWarning_vzj3k_79";
|
|
9
|
+
const toneNeutral = "_toneNeutral_vzj3k_85";
|
|
10
|
+
const paddingNone = "_paddingNone_vzj3k_91";
|
|
11
|
+
const paddingSm = "_paddingSm_vzj3k_94";
|
|
12
|
+
const paddingMd = "_paddingMd_vzj3k_97";
|
|
13
|
+
const paddingLg = "_paddingLg_vzj3k_100";
|
|
14
|
+
const interactive = "_interactive_vzj3k_103";
|
|
15
|
+
const header = "_header_vzj3k_131";
|
|
16
|
+
const headerDivided = "_headerDivided_vzj3k_136";
|
|
17
|
+
const description = "_description_vzj3k_147";
|
|
18
|
+
const title = "_title_vzj3k_150";
|
|
19
|
+
const body = "_body_vzj3k_168";
|
|
20
|
+
const footer = "_footer_vzj3k_189";
|
|
17
21
|
const styles = {
|
|
18
22
|
card,
|
|
19
|
-
"default": "
|
|
23
|
+
"default": "_default_vzj3k_31",
|
|
20
24
|
outlined,
|
|
21
25
|
elevated,
|
|
22
26
|
stat,
|
|
23
27
|
panel,
|
|
28
|
+
accent,
|
|
29
|
+
toneDanger,
|
|
30
|
+
toneWarning,
|
|
31
|
+
toneNeutral,
|
|
24
32
|
paddingNone,
|
|
25
33
|
paddingSm,
|
|
26
34
|
paddingMd,
|
|
@@ -28,12 +36,13 @@ const styles = {
|
|
|
28
36
|
interactive,
|
|
29
37
|
header,
|
|
30
38
|
headerDivided,
|
|
31
|
-
title,
|
|
32
39
|
description,
|
|
40
|
+
title,
|
|
33
41
|
body,
|
|
34
42
|
footer
|
|
35
43
|
};
|
|
36
44
|
export {
|
|
45
|
+
accent,
|
|
37
46
|
body,
|
|
38
47
|
card,
|
|
39
48
|
styles as default,
|
|
@@ -50,5 +59,8 @@ export {
|
|
|
50
59
|
paddingSm,
|
|
51
60
|
panel,
|
|
52
61
|
stat,
|
|
53
|
-
title
|
|
62
|
+
title,
|
|
63
|
+
toneDanger,
|
|
64
|
+
toneNeutral,
|
|
65
|
+
toneWarning
|
|
54
66
|
};
|
|
@@ -35,9 +35,16 @@ function composeEventHandlers(userHandler, internalHandler) {
|
|
|
35
35
|
internalHandler(event);
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
+
const toneMap = {
|
|
39
|
+
accent: void 0,
|
|
40
|
+
danger: Card_module.default.toneDanger,
|
|
41
|
+
warning: Card_module.default.toneWarning,
|
|
42
|
+
neutral: Card_module.default.toneNeutral
|
|
43
|
+
};
|
|
38
44
|
function CardRoot({
|
|
39
45
|
children,
|
|
40
46
|
variant: variantProp = "default",
|
|
47
|
+
tone = "accent",
|
|
41
48
|
padding = "md",
|
|
42
49
|
as: Component = "article",
|
|
43
50
|
className,
|
|
@@ -52,6 +59,7 @@ function CardRoot({
|
|
|
52
59
|
const classes = [
|
|
53
60
|
Card_module.default.card,
|
|
54
61
|
Card_module.default[variant],
|
|
62
|
+
variant === "accent" && tone !== "accent" && toneMap[tone],
|
|
55
63
|
paddingMap[padding],
|
|
56
64
|
isInteractive && Card_module.default.interactive,
|
|
57
65
|
className
|
|
@@ -13,9 +13,19 @@ export interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "chil
|
|
|
13
13
|
* - `panel`: hairline-bordered panel with zero own padding, designed for
|
|
14
14
|
* compound use with `Card.Header divided` + `Card.Body` so each region
|
|
15
15
|
* manages its own spacing.
|
|
16
|
+
* - `accent`: the earned-moment capsule — accent-tinted hairline, radial
|
|
17
|
+
* accent wash, soft fixed radius. Reserve for the few surfaces that earn
|
|
18
|
+
* emphasis (demo banner, upgrade panel, onboarding resume), never for
|
|
19
|
+
* routine content.
|
|
16
20
|
* @default "default"
|
|
17
21
|
* @see https://usefragments.com/components/card#variants */
|
|
18
|
-
variant?: "default" | "outlined" | "outline" | "elevated" | "stat" | "panel";
|
|
22
|
+
variant?: "default" | "outlined" | "outline" | "elevated" | "stat" | "panel" | "accent";
|
|
23
|
+
/** Semantic tone of the `accent` capsule. The wash and hairline follow the
|
|
24
|
+
* tone so the same earned-moment idiom can carry state: `danger` (a merge is
|
|
25
|
+
* held), `warning` (enforcement lapsed), `neutral` (waiting — ink hairline,
|
|
26
|
+
* no wash). Ignored for other variants.
|
|
27
|
+
* @default "accent" */
|
|
28
|
+
tone?: "accent" | "danger" | "warning" | "neutral";
|
|
19
29
|
/** Inner padding.
|
|
20
30
|
* @default "md" */
|
|
21
31
|
padding?: "none" | "sm" | "md" | "lg";
|
|
@@ -48,7 +58,7 @@ export interface CardBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
48
58
|
export interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
49
59
|
children: React.ReactNode;
|
|
50
60
|
}
|
|
51
|
-
declare function CardRoot({ children, variant: variantProp, padding, as: Component, className, style, ...htmlProps }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare function CardRoot({ children, variant: variantProp, tone, padding, as: Component, className, style, ...htmlProps }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
52
62
|
declare function CardHeader({ children, divided, className, ...htmlProps }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
53
63
|
declare function CardTitle({ children, as: Component, className, ...htmlProps }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
54
64
|
declare function CardDescription({ children, className, ...htmlProps }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACpF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACpF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;;;;;;;gEAa4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxF;;;;2BAIuB;IACvB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACnD;uBACmB;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACtC;4BACwB;IACxB,EAAE,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;8DAE0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAC9E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;uBACmB;IACnB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IACtF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;uDACmD;IACnD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA+CD,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,OAAO,EAAE,WAAuB,EAChC,IAAe,EACf,OAAc,EACd,EAAE,EAAE,SAAqB,EACzB,SAAS,EACT,KAAK,EACL,GAAG,SAAS,EACb,EAAE,SAAS,2CA8DX;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,eAAe,2CASlF;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAgB,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,cAAc,2CAO7F;AAED,iBAAS,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,oBAAoB,2CAOnF;AAED,iBAAS,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,2CAS9E;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,eAAe,2CAOzE;AAMD,eAAO,MAAM,IAAI;;;;;;CAMf,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -16,9 +16,16 @@ function composeEventHandlers(userHandler, internalHandler) {
|
|
|
16
16
|
internalHandler(event);
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
+
const toneMap = {
|
|
20
|
+
accent: void 0,
|
|
21
|
+
danger: styles.toneDanger,
|
|
22
|
+
warning: styles.toneWarning,
|
|
23
|
+
neutral: styles.toneNeutral
|
|
24
|
+
};
|
|
19
25
|
function CardRoot({
|
|
20
26
|
children,
|
|
21
27
|
variant: variantProp = "default",
|
|
28
|
+
tone = "accent",
|
|
22
29
|
padding = "md",
|
|
23
30
|
as: Component = "article",
|
|
24
31
|
className,
|
|
@@ -33,6 +40,7 @@ function CardRoot({
|
|
|
33
40
|
const classes = [
|
|
34
41
|
styles.card,
|
|
35
42
|
styles[variant],
|
|
43
|
+
variant === "accent" && tone !== "accent" && toneMap[tone],
|
|
36
44
|
paddingMap[padding],
|
|
37
45
|
isInteractive && styles.interactive,
|
|
38
46
|
className
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const container = "
|
|
4
|
-
const srOnly = "
|
|
5
|
-
const tooltip = "
|
|
6
|
-
const tooltipLabel = "
|
|
7
|
-
const tooltipItems = "
|
|
8
|
-
const tooltipItem = "
|
|
9
|
-
const tooltipIndicator = "
|
|
10
|
-
const tooltipIndicatorLine = "
|
|
11
|
-
const tooltipIndicatorDashed = "
|
|
12
|
-
const tooltipItemLabel = "
|
|
13
|
-
const tooltipItemValue = "
|
|
14
|
-
const legend = "
|
|
15
|
-
const legendItem = "
|
|
16
|
-
const legendDot = "
|
|
17
|
-
const legendLabel = "
|
|
3
|
+
const container = "_container_48r1l_1";
|
|
4
|
+
const srOnly = "_srOnly_48r1l_24";
|
|
5
|
+
const tooltip = "_tooltip_48r1l_36";
|
|
6
|
+
const tooltipLabel = "_tooltipLabel_48r1l_52";
|
|
7
|
+
const tooltipItems = "_tooltipItems_48r1l_62";
|
|
8
|
+
const tooltipItem = "_tooltipItem_48r1l_62";
|
|
9
|
+
const tooltipIndicator = "_tooltipIndicator_48r1l_75";
|
|
10
|
+
const tooltipIndicatorLine = "_tooltipIndicatorLine_48r1l_81";
|
|
11
|
+
const tooltipIndicatorDashed = "_tooltipIndicatorDashed_48r1l_86";
|
|
12
|
+
const tooltipItemLabel = "_tooltipItemLabel_48r1l_94";
|
|
13
|
+
const tooltipItemValue = "_tooltipItemValue_48r1l_98";
|
|
14
|
+
const legend = "_legend_48r1l_105";
|
|
15
|
+
const legendItem = "_legendItem_48r1l_114";
|
|
16
|
+
const legendDot = "_legendDot_48r1l_120";
|
|
17
|
+
const legendLabel = "_legendLabel_48r1l_127";
|
|
18
18
|
const styles = {
|
|
19
19
|
container,
|
|
20
20
|
srOnly,
|