@usefragments/ui 1.5.3 → 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
|
@@ -79,131 +79,113 @@ function getContrastTextColor(bgColor) {
|
|
|
79
79
|
/light-dark\(\s*hsl\((\d+)\s+(\d+)%\s+(\d+)%\)\s*,\s*hsl\((\d+)\s+(\d+)%\s+(\d+)%\)\s*\)/
|
|
80
80
|
);
|
|
81
81
|
if (ld) {
|
|
82
|
-
const lightText = contrastForHsl(
|
|
83
|
-
|
|
84
|
-
parseInt(ld[2]) / 100,
|
|
85
|
-
parseInt(ld[3]) / 100
|
|
86
|
-
);
|
|
87
|
-
const darkText = contrastForHsl(
|
|
88
|
-
parseInt(ld[4]),
|
|
89
|
-
parseInt(ld[5]) / 100,
|
|
90
|
-
parseInt(ld[6]) / 100
|
|
91
|
-
);
|
|
82
|
+
const lightText = contrastForHsl(parseInt(ld[1]), parseInt(ld[2]) / 100, parseInt(ld[3]) / 100);
|
|
83
|
+
const darkText = contrastForHsl(parseInt(ld[4]), parseInt(ld[5]) / 100, parseInt(ld[6]) / 100);
|
|
92
84
|
return lightText === darkText ? lightText : `light-dark(${lightText}, ${darkText})`;
|
|
93
85
|
}
|
|
94
86
|
const match = bgColor.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
95
87
|
if (!match) return void 0;
|
|
96
|
-
return contrastForHsl(
|
|
97
|
-
parseInt(match[1]),
|
|
98
|
-
parseInt(match[2]) / 100,
|
|
99
|
-
parseInt(match[3]) / 100
|
|
100
|
-
);
|
|
88
|
+
return contrastForHsl(parseInt(match[1]), parseInt(match[2]) / 100, parseInt(match[3]) / 100);
|
|
101
89
|
}
|
|
102
|
-
const AvatarBase = React__namespace.forwardRef(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
size = "md",
|
|
109
|
-
customSize,
|
|
110
|
-
shape = "circle",
|
|
111
|
-
color,
|
|
112
|
-
imageStyle,
|
|
113
|
-
imageProps,
|
|
114
|
-
className,
|
|
115
|
-
style: styleProp,
|
|
116
|
-
...htmlProps
|
|
117
|
-
}, ref) {
|
|
118
|
-
const imgRef = React__namespace.useRef(null);
|
|
119
|
-
const [imageError, setImageError] = React__namespace.useState(false);
|
|
120
|
-
React__namespace.useEffect(() => {
|
|
121
|
-
setImageError(false);
|
|
122
|
-
const img = imgRef.current;
|
|
123
|
-
if (img && img.complete && img.naturalWidth === 0) {
|
|
124
|
-
setImageError(true);
|
|
125
|
-
}
|
|
126
|
-
}, [src]);
|
|
127
|
-
const showFallback = !src || imageError;
|
|
128
|
-
const displayInitials = initials || (name ? getInitials(name) : "");
|
|
129
|
-
const fallbackColor = color || (name ? stringToColor(name) : void 0);
|
|
130
|
-
const fallbackLabel = alt || name;
|
|
131
|
-
const hasFallbackLabel = showFallback && Boolean(fallbackLabel && fallbackLabel.trim().length > 0);
|
|
132
|
-
const avatarClasses = [
|
|
133
|
-
Avatar_module.default.avatar,
|
|
134
|
-
Avatar_module.default[size],
|
|
135
|
-
shape === "square" && Avatar_module.default.square,
|
|
136
|
-
className
|
|
137
|
-
].filter(Boolean).join(" ");
|
|
138
|
-
const style = { ...styleProp };
|
|
139
|
-
if (customSize !== void 0) {
|
|
140
|
-
const resolvedSize = typeof customSize === "number" ? `${customSize}px` : customSize;
|
|
141
|
-
style.width = resolvedSize;
|
|
142
|
-
style.height = resolvedSize;
|
|
143
|
-
if (style.fontSize === void 0) {
|
|
144
|
-
style.fontSize = `calc(${resolvedSize} * 0.4)`;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
if (showFallback && fallbackColor) {
|
|
148
|
-
style.backgroundColor = fallbackColor;
|
|
149
|
-
const textColor = getContrastTextColor(fallbackColor);
|
|
150
|
-
if (textColor) {
|
|
151
|
-
style["--avatar-initials-color"] = textColor;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
155
|
-
"div",
|
|
156
|
-
{
|
|
157
|
-
ref,
|
|
158
|
-
...htmlProps,
|
|
159
|
-
className: avatarClasses,
|
|
160
|
-
style,
|
|
161
|
-
role: hasFallbackLabel ? "img" : void 0,
|
|
162
|
-
"aria-label": hasFallbackLabel ? fallbackLabel : void 0,
|
|
163
|
-
"aria-hidden": showFallback && !hasFallbackLabel ? true : void 0,
|
|
164
|
-
children: [
|
|
165
|
-
!showFallback && /* @__PURE__ */ jsxRuntime.jsx(
|
|
166
|
-
"img",
|
|
167
|
-
{
|
|
168
|
-
ref: imgRef,
|
|
169
|
-
...imageProps,
|
|
170
|
-
src,
|
|
171
|
-
alt,
|
|
172
|
-
className: Avatar_module.default.image,
|
|
173
|
-
onError: (event) => {
|
|
174
|
-
var _a;
|
|
175
|
-
(_a = imageProps == null ? void 0 : imageProps.onError) == null ? void 0 : _a.call(imageProps, event);
|
|
176
|
-
if (!event.defaultPrevented) {
|
|
177
|
-
setImageError(true);
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
style: { ...imageStyle }
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
showFallback && displayInitials && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Avatar_module.default.initials, children: displayInitials }),
|
|
184
|
-
showFallback && !displayInitials && /* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
-
"svg",
|
|
186
|
-
{
|
|
187
|
-
className: Avatar_module.default.fallbackIcon,
|
|
188
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
189
|
-
viewBox: "0 0 24 24",
|
|
190
|
-
fill: "currentColor",
|
|
191
|
-
"aria-hidden": "true",
|
|
192
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
);
|
|
200
|
-
function AvatarGroup({
|
|
201
|
-
max,
|
|
90
|
+
const AvatarBase = React__namespace.forwardRef(function AvatarBase2({
|
|
91
|
+
src,
|
|
92
|
+
alt = "",
|
|
93
|
+
initials,
|
|
94
|
+
name,
|
|
95
|
+
fallback,
|
|
202
96
|
size = "md",
|
|
203
|
-
|
|
97
|
+
customSize,
|
|
98
|
+
shape = "circle",
|
|
99
|
+
color,
|
|
100
|
+
imageStyle,
|
|
101
|
+
imageProps,
|
|
204
102
|
className,
|
|
103
|
+
style: styleProp,
|
|
205
104
|
...htmlProps
|
|
206
|
-
}) {
|
|
105
|
+
}, ref) {
|
|
106
|
+
const imgRef = React__namespace.useRef(null);
|
|
107
|
+
const [imageError, setImageError] = React__namespace.useState(false);
|
|
108
|
+
React__namespace.useEffect(() => {
|
|
109
|
+
setImageError(false);
|
|
110
|
+
const img = imgRef.current;
|
|
111
|
+
if (img && img.complete && img.naturalWidth === 0) {
|
|
112
|
+
setImageError(true);
|
|
113
|
+
}
|
|
114
|
+
}, [src]);
|
|
115
|
+
const showFallback = !src || imageError;
|
|
116
|
+
const displayInitials = initials || (name ? getInitials(name) : "");
|
|
117
|
+
const fallbackColor = color || (name ? stringToColor(name) : void 0);
|
|
118
|
+
const fallbackLabel = alt || name;
|
|
119
|
+
const hasFallbackLabel = showFallback && Boolean(fallbackLabel && fallbackLabel.trim().length > 0);
|
|
120
|
+
const avatarClasses = [
|
|
121
|
+
Avatar_module.default.avatar,
|
|
122
|
+
Avatar_module.default[size],
|
|
123
|
+
shape === "square" && Avatar_module.default.square,
|
|
124
|
+
className
|
|
125
|
+
].filter(Boolean).join(" ");
|
|
126
|
+
const style = { ...styleProp };
|
|
127
|
+
if (customSize !== void 0) {
|
|
128
|
+
const resolvedSize = typeof customSize === "number" ? `${customSize}px` : customSize;
|
|
129
|
+
style.width = resolvedSize;
|
|
130
|
+
style.height = resolvedSize;
|
|
131
|
+
if (style.fontSize === void 0) {
|
|
132
|
+
style.fontSize = `calc(${resolvedSize} * 0.4)`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (showFallback && fallbackColor) {
|
|
136
|
+
style.backgroundColor = fallbackColor;
|
|
137
|
+
const textColor = getContrastTextColor(fallbackColor);
|
|
138
|
+
if (textColor) {
|
|
139
|
+
style["--avatar-initials-color"] = textColor;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
ref,
|
|
146
|
+
...htmlProps,
|
|
147
|
+
className: avatarClasses,
|
|
148
|
+
style,
|
|
149
|
+
role: hasFallbackLabel ? "img" : void 0,
|
|
150
|
+
"aria-label": hasFallbackLabel ? fallbackLabel : void 0,
|
|
151
|
+
"aria-hidden": showFallback && !hasFallbackLabel ? true : void 0,
|
|
152
|
+
children: [
|
|
153
|
+
!showFallback && /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
"img",
|
|
155
|
+
{
|
|
156
|
+
ref: imgRef,
|
|
157
|
+
...imageProps,
|
|
158
|
+
src,
|
|
159
|
+
alt,
|
|
160
|
+
className: Avatar_module.default.image,
|
|
161
|
+
onError: (event) => {
|
|
162
|
+
var _a;
|
|
163
|
+
(_a = imageProps == null ? void 0 : imageProps.onError) == null ? void 0 : _a.call(imageProps, event);
|
|
164
|
+
if (!event.defaultPrevented) {
|
|
165
|
+
setImageError(true);
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
style: { ...imageStyle }
|
|
169
|
+
}
|
|
170
|
+
),
|
|
171
|
+
showFallback && displayInitials && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Avatar_module.default.initials, children: displayInitials }),
|
|
172
|
+
showFallback && !displayInitials && fallback !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Avatar_module.default.fallback, children: fallback }),
|
|
173
|
+
showFallback && !displayInitials && fallback === void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
174
|
+
"svg",
|
|
175
|
+
{
|
|
176
|
+
className: Avatar_module.default.fallbackIcon,
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
viewBox: "0 0 24 24",
|
|
179
|
+
fill: "currentColor",
|
|
180
|
+
"aria-hidden": "true",
|
|
181
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
});
|
|
188
|
+
function AvatarGroup({ max, size = "md", children, className, ...htmlProps }) {
|
|
207
189
|
const childArray = React__namespace.Children.toArray(children);
|
|
208
190
|
const displayCount = max && max < childArray.length ? max : childArray.length;
|
|
209
191
|
const overflowCount = max && childArray.length > max ? childArray.length - max : 0;
|
|
@@ -222,7 +204,7 @@ function AvatarGroup({
|
|
|
222
204
|
overflowCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
223
205
|
"div",
|
|
224
206
|
{
|
|
225
|
-
className: [Avatar_module.default.avatar, Avatar_module.default[size], Avatar_module.default.overflow].join(" "),
|
|
207
|
+
className: [Avatar_module.default.avatar, Avatar_module.default[size], Avatar_module.default.groupItem, Avatar_module.default.overflow].join(" "),
|
|
226
208
|
role: "img",
|
|
227
209
|
"aria-label": `${overflowCount} more ${overflowCount === 1 ? "person" : "people"}`,
|
|
228
210
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: Avatar_module.default.initials, "aria-hidden": "true", children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
export type AvatarSize =
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
3
|
/**
|
|
4
4
|
* Avatar for user photos, initials, or placeholder icons.
|
|
5
5
|
* @see https://usefragments.com/components/avatar
|
|
6
6
|
*/
|
|
7
|
-
export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
7
|
+
export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
|
|
8
8
|
/** Image source URL */
|
|
9
9
|
src?: string;
|
|
10
10
|
/** Alt text for the image */
|
|
@@ -13,18 +13,20 @@ export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
13
13
|
initials?: string;
|
|
14
14
|
/** Full name - used to generate initials if not provided */
|
|
15
15
|
name?: string;
|
|
16
|
+
/** Visual fallback rendered after initials/name and before the generic icon */
|
|
17
|
+
fallback?: React.ReactNode;
|
|
16
18
|
/** Size variant */
|
|
17
19
|
size?: AvatarSize;
|
|
18
20
|
/** Custom avatar size (overrides size width/height) */
|
|
19
21
|
customSize?: number | string;
|
|
20
22
|
/** Shape variant */
|
|
21
|
-
shape?:
|
|
23
|
+
shape?: "circle" | "square";
|
|
22
24
|
/** Custom background color for fallback */
|
|
23
25
|
color?: string;
|
|
24
26
|
/** Inline style for the underlying image element */
|
|
25
27
|
imageStyle?: React.CSSProperties;
|
|
26
28
|
/** Additional props for the underlying img element */
|
|
27
|
-
imageProps?: Omit<React.ImgHTMLAttributes<HTMLImageElement>,
|
|
29
|
+
imageProps?: Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "className" | "style">;
|
|
28
30
|
}
|
|
29
31
|
export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
32
|
/** Maximum number of avatars to display */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACtF,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,oBAAoB;IACpB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,sDAAsD;IACtD,UAAU,CAAC,EAAE,IAAI,CACf,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EACzC,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,OAAO,CACtC,CAAC;CACH;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACtF,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mBAAmB;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,oBAAoB;IACpB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,sDAAsD;IACtD,UAAU,CAAC,EAAE,IAAI,CACf,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EACzC,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,OAAO,CACtC,CAAC;CACH;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,mCAAmC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAkOD,iBAAS,WAAW,CAAC,EAAE,GAAG,EAAE,IAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,gBAAgB,2CAgC7F;AAMD,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
|
|
@@ -60,131 +60,113 @@ function getContrastTextColor(bgColor) {
|
|
|
60
60
|
/light-dark\(\s*hsl\((\d+)\s+(\d+)%\s+(\d+)%\)\s*,\s*hsl\((\d+)\s+(\d+)%\s+(\d+)%\)\s*\)/
|
|
61
61
|
);
|
|
62
62
|
if (ld) {
|
|
63
|
-
const lightText = contrastForHsl(
|
|
64
|
-
|
|
65
|
-
parseInt(ld[2]) / 100,
|
|
66
|
-
parseInt(ld[3]) / 100
|
|
67
|
-
);
|
|
68
|
-
const darkText = contrastForHsl(
|
|
69
|
-
parseInt(ld[4]),
|
|
70
|
-
parseInt(ld[5]) / 100,
|
|
71
|
-
parseInt(ld[6]) / 100
|
|
72
|
-
);
|
|
63
|
+
const lightText = contrastForHsl(parseInt(ld[1]), parseInt(ld[2]) / 100, parseInt(ld[3]) / 100);
|
|
64
|
+
const darkText = contrastForHsl(parseInt(ld[4]), parseInt(ld[5]) / 100, parseInt(ld[6]) / 100);
|
|
73
65
|
return lightText === darkText ? lightText : `light-dark(${lightText}, ${darkText})`;
|
|
74
66
|
}
|
|
75
67
|
const match = bgColor.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
76
68
|
if (!match) return void 0;
|
|
77
|
-
return contrastForHsl(
|
|
78
|
-
parseInt(match[1]),
|
|
79
|
-
parseInt(match[2]) / 100,
|
|
80
|
-
parseInt(match[3]) / 100
|
|
81
|
-
);
|
|
69
|
+
return contrastForHsl(parseInt(match[1]), parseInt(match[2]) / 100, parseInt(match[3]) / 100);
|
|
82
70
|
}
|
|
83
|
-
const AvatarBase = React.forwardRef(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
size = "md",
|
|
90
|
-
customSize,
|
|
91
|
-
shape = "circle",
|
|
92
|
-
color,
|
|
93
|
-
imageStyle,
|
|
94
|
-
imageProps,
|
|
95
|
-
className,
|
|
96
|
-
style: styleProp,
|
|
97
|
-
...htmlProps
|
|
98
|
-
}, ref) {
|
|
99
|
-
const imgRef = React.useRef(null);
|
|
100
|
-
const [imageError, setImageError] = React.useState(false);
|
|
101
|
-
React.useEffect(() => {
|
|
102
|
-
setImageError(false);
|
|
103
|
-
const img = imgRef.current;
|
|
104
|
-
if (img && img.complete && img.naturalWidth === 0) {
|
|
105
|
-
setImageError(true);
|
|
106
|
-
}
|
|
107
|
-
}, [src]);
|
|
108
|
-
const showFallback = !src || imageError;
|
|
109
|
-
const displayInitials = initials || (name ? getInitials(name) : "");
|
|
110
|
-
const fallbackColor = color || (name ? stringToColor(name) : void 0);
|
|
111
|
-
const fallbackLabel = alt || name;
|
|
112
|
-
const hasFallbackLabel = showFallback && Boolean(fallbackLabel && fallbackLabel.trim().length > 0);
|
|
113
|
-
const avatarClasses = [
|
|
114
|
-
styles.avatar,
|
|
115
|
-
styles[size],
|
|
116
|
-
shape === "square" && styles.square,
|
|
117
|
-
className
|
|
118
|
-
].filter(Boolean).join(" ");
|
|
119
|
-
const style = { ...styleProp };
|
|
120
|
-
if (customSize !== void 0) {
|
|
121
|
-
const resolvedSize = typeof customSize === "number" ? `${customSize}px` : customSize;
|
|
122
|
-
style.width = resolvedSize;
|
|
123
|
-
style.height = resolvedSize;
|
|
124
|
-
if (style.fontSize === void 0) {
|
|
125
|
-
style.fontSize = `calc(${resolvedSize} * 0.4)`;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
if (showFallback && fallbackColor) {
|
|
129
|
-
style.backgroundColor = fallbackColor;
|
|
130
|
-
const textColor = getContrastTextColor(fallbackColor);
|
|
131
|
-
if (textColor) {
|
|
132
|
-
style["--avatar-initials-color"] = textColor;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return /* @__PURE__ */ jsxs(
|
|
136
|
-
"div",
|
|
137
|
-
{
|
|
138
|
-
ref,
|
|
139
|
-
...htmlProps,
|
|
140
|
-
className: avatarClasses,
|
|
141
|
-
style,
|
|
142
|
-
role: hasFallbackLabel ? "img" : void 0,
|
|
143
|
-
"aria-label": hasFallbackLabel ? fallbackLabel : void 0,
|
|
144
|
-
"aria-hidden": showFallback && !hasFallbackLabel ? true : void 0,
|
|
145
|
-
children: [
|
|
146
|
-
!showFallback && /* @__PURE__ */ jsx(
|
|
147
|
-
"img",
|
|
148
|
-
{
|
|
149
|
-
ref: imgRef,
|
|
150
|
-
...imageProps,
|
|
151
|
-
src,
|
|
152
|
-
alt,
|
|
153
|
-
className: styles.image,
|
|
154
|
-
onError: (event) => {
|
|
155
|
-
var _a;
|
|
156
|
-
(_a = imageProps == null ? void 0 : imageProps.onError) == null ? void 0 : _a.call(imageProps, event);
|
|
157
|
-
if (!event.defaultPrevented) {
|
|
158
|
-
setImageError(true);
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
style: { ...imageStyle }
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
showFallback && displayInitials && /* @__PURE__ */ jsx("span", { className: styles.initials, children: displayInitials }),
|
|
165
|
-
showFallback && !displayInitials && /* @__PURE__ */ jsx(
|
|
166
|
-
"svg",
|
|
167
|
-
{
|
|
168
|
-
className: styles.fallbackIcon,
|
|
169
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
170
|
-
viewBox: "0 0 24 24",
|
|
171
|
-
fill: "currentColor",
|
|
172
|
-
"aria-hidden": "true",
|
|
173
|
-
children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
function AvatarGroup({
|
|
182
|
-
max,
|
|
71
|
+
const AvatarBase = React.forwardRef(function AvatarBase2({
|
|
72
|
+
src,
|
|
73
|
+
alt = "",
|
|
74
|
+
initials,
|
|
75
|
+
name,
|
|
76
|
+
fallback,
|
|
183
77
|
size = "md",
|
|
184
|
-
|
|
78
|
+
customSize,
|
|
79
|
+
shape = "circle",
|
|
80
|
+
color,
|
|
81
|
+
imageStyle,
|
|
82
|
+
imageProps,
|
|
185
83
|
className,
|
|
84
|
+
style: styleProp,
|
|
186
85
|
...htmlProps
|
|
187
|
-
}) {
|
|
86
|
+
}, ref) {
|
|
87
|
+
const imgRef = React.useRef(null);
|
|
88
|
+
const [imageError, setImageError] = React.useState(false);
|
|
89
|
+
React.useEffect(() => {
|
|
90
|
+
setImageError(false);
|
|
91
|
+
const img = imgRef.current;
|
|
92
|
+
if (img && img.complete && img.naturalWidth === 0) {
|
|
93
|
+
setImageError(true);
|
|
94
|
+
}
|
|
95
|
+
}, [src]);
|
|
96
|
+
const showFallback = !src || imageError;
|
|
97
|
+
const displayInitials = initials || (name ? getInitials(name) : "");
|
|
98
|
+
const fallbackColor = color || (name ? stringToColor(name) : void 0);
|
|
99
|
+
const fallbackLabel = alt || name;
|
|
100
|
+
const hasFallbackLabel = showFallback && Boolean(fallbackLabel && fallbackLabel.trim().length > 0);
|
|
101
|
+
const avatarClasses = [
|
|
102
|
+
styles.avatar,
|
|
103
|
+
styles[size],
|
|
104
|
+
shape === "square" && styles.square,
|
|
105
|
+
className
|
|
106
|
+
].filter(Boolean).join(" ");
|
|
107
|
+
const style = { ...styleProp };
|
|
108
|
+
if (customSize !== void 0) {
|
|
109
|
+
const resolvedSize = typeof customSize === "number" ? `${customSize}px` : customSize;
|
|
110
|
+
style.width = resolvedSize;
|
|
111
|
+
style.height = resolvedSize;
|
|
112
|
+
if (style.fontSize === void 0) {
|
|
113
|
+
style.fontSize = `calc(${resolvedSize} * 0.4)`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (showFallback && fallbackColor) {
|
|
117
|
+
style.backgroundColor = fallbackColor;
|
|
118
|
+
const textColor = getContrastTextColor(fallbackColor);
|
|
119
|
+
if (textColor) {
|
|
120
|
+
style["--avatar-initials-color"] = textColor;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return /* @__PURE__ */ jsxs(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
ref,
|
|
127
|
+
...htmlProps,
|
|
128
|
+
className: avatarClasses,
|
|
129
|
+
style,
|
|
130
|
+
role: hasFallbackLabel ? "img" : void 0,
|
|
131
|
+
"aria-label": hasFallbackLabel ? fallbackLabel : void 0,
|
|
132
|
+
"aria-hidden": showFallback && !hasFallbackLabel ? true : void 0,
|
|
133
|
+
children: [
|
|
134
|
+
!showFallback && /* @__PURE__ */ jsx(
|
|
135
|
+
"img",
|
|
136
|
+
{
|
|
137
|
+
ref: imgRef,
|
|
138
|
+
...imageProps,
|
|
139
|
+
src,
|
|
140
|
+
alt,
|
|
141
|
+
className: styles.image,
|
|
142
|
+
onError: (event) => {
|
|
143
|
+
var _a;
|
|
144
|
+
(_a = imageProps == null ? void 0 : imageProps.onError) == null ? void 0 : _a.call(imageProps, event);
|
|
145
|
+
if (!event.defaultPrevented) {
|
|
146
|
+
setImageError(true);
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
style: { ...imageStyle }
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
showFallback && displayInitials && /* @__PURE__ */ jsx("span", { className: styles.initials, children: displayInitials }),
|
|
153
|
+
showFallback && !displayInitials && fallback !== void 0 && /* @__PURE__ */ jsx("span", { className: styles.fallback, children: fallback }),
|
|
154
|
+
showFallback && !displayInitials && fallback === void 0 && /* @__PURE__ */ jsx(
|
|
155
|
+
"svg",
|
|
156
|
+
{
|
|
157
|
+
className: styles.fallbackIcon,
|
|
158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
+
viewBox: "0 0 24 24",
|
|
160
|
+
fill: "currentColor",
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
});
|
|
169
|
+
function AvatarGroup({ max, size = "md", children, className, ...htmlProps }) {
|
|
188
170
|
const childArray = React.Children.toArray(children);
|
|
189
171
|
const displayCount = max && max < childArray.length ? max : childArray.length;
|
|
190
172
|
const overflowCount = max && childArray.length > max ? childArray.length - max : 0;
|
|
@@ -203,7 +185,7 @@ function AvatarGroup({
|
|
|
203
185
|
overflowCount > 0 && /* @__PURE__ */ jsx(
|
|
204
186
|
"div",
|
|
205
187
|
{
|
|
206
|
-
className: [styles.avatar, styles[size], styles.overflow].join(" "),
|
|
188
|
+
className: [styles.avatar, styles[size], styles.groupItem, styles.overflow].join(" "),
|
|
207
189
|
role: "img",
|
|
208
190
|
"aria-label": `${overflowCount} more ${overflowCount === 1 ? "person" : "people"}`,
|
|
209
191
|
children: /* @__PURE__ */ jsxs("span", { className: styles.initials, "aria-hidden": "true", children: [
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const badge = "
|
|
4
|
-
const sm = "
|
|
5
|
-
const md = "
|
|
6
|
-
const lg = "
|
|
7
|
-
const success = "
|
|
8
|
-
const warning = "
|
|
9
|
-
const error = "
|
|
10
|
-
const info = "
|
|
11
|
-
const outline = "
|
|
12
|
-
const label = "
|
|
13
|
-
const dim = "
|
|
14
|
-
const active = "
|
|
15
|
-
const dot = "
|
|
16
|
-
const dotPulse = "
|
|
17
|
-
const fuiBadgeDotPulse = "_fui-badge-dot-
|
|
18
|
-
const icon = "
|
|
19
|
-
const remove = "
|
|
3
|
+
const badge = "_badge_15ow6_1";
|
|
4
|
+
const sm = "_sm_15ow6_13";
|
|
5
|
+
const md = "_md_15ow6_23";
|
|
6
|
+
const lg = "_lg_15ow6_33";
|
|
7
|
+
const success = "_success_15ow6_48";
|
|
8
|
+
const warning = "_warning_15ow6_53";
|
|
9
|
+
const error = "_error_15ow6_58";
|
|
10
|
+
const info = "_info_15ow6_63";
|
|
11
|
+
const outline = "_outline_15ow6_68";
|
|
12
|
+
const label = "_label_15ow6_74";
|
|
13
|
+
const dim = "_dim_15ow6_81";
|
|
14
|
+
const active = "_active_15ow6_88";
|
|
15
|
+
const dot = "_dot_15ow6_94";
|
|
16
|
+
const dotPulse = "_dotPulse_15ow6_106";
|
|
17
|
+
const fuiBadgeDotPulse = "_fui-badge-dot-pulse_15ow6_1";
|
|
18
|
+
const icon = "_icon_15ow6_120";
|
|
19
|
+
const remove = "_remove_15ow6_144";
|
|
20
20
|
const styles = {
|
|
21
21
|
badge,
|
|
22
22
|
sm,
|
|
23
23
|
md,
|
|
24
24
|
lg,
|
|
25
|
-
"default": "
|
|
25
|
+
"default": "_default_15ow6_43",
|
|
26
26
|
success,
|
|
27
27
|
warning,
|
|
28
28
|
error,
|
|
@@ -33,7 +33,7 @@ const styles = {
|
|
|
33
33
|
active,
|
|
34
34
|
dot,
|
|
35
35
|
dotPulse,
|
|
36
|
-
"fui-badge-dot-pulse": "_fui-badge-dot-
|
|
36
|
+
"fui-badge-dot-pulse": "_fui-badge-dot-pulse_15ow6_1",
|
|
37
37
|
fuiBadgeDotPulse,
|
|
38
38
|
icon,
|
|
39
39
|
remove
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
const badge = "
|
|
2
|
-
const sm = "
|
|
3
|
-
const md = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const success = "
|
|
6
|
-
const warning = "
|
|
7
|
-
const error = "
|
|
8
|
-
const info = "
|
|
9
|
-
const outline = "
|
|
10
|
-
const label = "
|
|
11
|
-
const dim = "
|
|
12
|
-
const active = "
|
|
13
|
-
const dot = "
|
|
14
|
-
const dotPulse = "
|
|
15
|
-
const fuiBadgeDotPulse = "_fui-badge-dot-
|
|
16
|
-
const icon = "
|
|
17
|
-
const remove = "
|
|
1
|
+
const badge = "_badge_15ow6_1";
|
|
2
|
+
const sm = "_sm_15ow6_13";
|
|
3
|
+
const md = "_md_15ow6_23";
|
|
4
|
+
const lg = "_lg_15ow6_33";
|
|
5
|
+
const success = "_success_15ow6_48";
|
|
6
|
+
const warning = "_warning_15ow6_53";
|
|
7
|
+
const error = "_error_15ow6_58";
|
|
8
|
+
const info = "_info_15ow6_63";
|
|
9
|
+
const outline = "_outline_15ow6_68";
|
|
10
|
+
const label = "_label_15ow6_74";
|
|
11
|
+
const dim = "_dim_15ow6_81";
|
|
12
|
+
const active = "_active_15ow6_88";
|
|
13
|
+
const dot = "_dot_15ow6_94";
|
|
14
|
+
const dotPulse = "_dotPulse_15ow6_106";
|
|
15
|
+
const fuiBadgeDotPulse = "_fui-badge-dot-pulse_15ow6_1";
|
|
16
|
+
const icon = "_icon_15ow6_120";
|
|
17
|
+
const remove = "_remove_15ow6_144";
|
|
18
18
|
const styles = {
|
|
19
19
|
badge,
|
|
20
20
|
sm,
|
|
21
21
|
md,
|
|
22
22
|
lg,
|
|
23
|
-
"default": "
|
|
23
|
+
"default": "_default_15ow6_43",
|
|
24
24
|
success,
|
|
25
25
|
warning,
|
|
26
26
|
error,
|
|
@@ -31,7 +31,7 @@ const styles = {
|
|
|
31
31
|
active,
|
|
32
32
|
dot,
|
|
33
33
|
dotPulse,
|
|
34
|
-
"fui-badge-dot-pulse": "_fui-badge-dot-
|
|
34
|
+
"fui-badge-dot-pulse": "_fui-badge-dot-pulse_15ow6_1",
|
|
35
35
|
fuiBadgeDotPulse,
|
|
36
36
|
icon,
|
|
37
37
|
remove
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const grid = "
|
|
4
|
-
const columns2 = "
|
|
5
|
-
const columns3 = "
|
|
6
|
-
const columns4 = "
|
|
7
|
-
const gapNone = "
|
|
8
|
-
const gapXs = "
|
|
9
|
-
const gapSm = "
|
|
10
|
-
const gapMd = "
|
|
11
|
-
const gapLg = "
|
|
12
|
-
const gapXl = "
|
|
13
|
-
const item = "
|
|
14
|
-
const subgridRows = "
|
|
15
|
-
const subgridColumns = "
|
|
16
|
-
const subgridBoth = "
|
|
3
|
+
const grid = "_grid_qr1ks_1";
|
|
4
|
+
const columns2 = "_columns2_qr1ks_7";
|
|
5
|
+
const columns3 = "_columns3_qr1ks_11";
|
|
6
|
+
const columns4 = "_columns4_qr1ks_15";
|
|
7
|
+
const gapNone = "_gapNone_qr1ks_32";
|
|
8
|
+
const gapXs = "_gapXs_qr1ks_36";
|
|
9
|
+
const gapSm = "_gapSm_qr1ks_40";
|
|
10
|
+
const gapMd = "_gapMd_qr1ks_44";
|
|
11
|
+
const gapLg = "_gapLg_qr1ks_48";
|
|
12
|
+
const gapXl = "_gapXl_qr1ks_52";
|
|
13
|
+
const item = "_item_qr1ks_56";
|
|
14
|
+
const subgridRows = "_subgridRows_qr1ks_117";
|
|
15
|
+
const subgridColumns = "_subgridColumns_qr1ks_122";
|
|
16
|
+
const subgridBoth = "_subgridBoth_qr1ks_127";
|
|
17
17
|
const styles = {
|
|
18
18
|
grid,
|
|
19
19
|
columns2,
|