@usefragments/ui 1.7.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -66
- package/dist/assets/nav-glyph.cjs +139 -0
- package/dist/assets/nav-glyph.d.ts +28 -0
- package/dist/assets/nav-glyph.d.ts.map +1 -0
- package/dist/assets/nav-glyph.js +139 -0
- package/dist/assets/nav-glyph.module.scss.cjs +71 -0
- package/dist/assets/nav-glyph.module.scss.js +71 -0
- package/dist/assets/ui.css +4975 -4959
- package/dist/blocks/components/StatsCard.d.ts +1 -1
- package/dist/blocks/components/StatsCard.d.ts.map +1 -1
- package/dist/codeblock.cjs +23 -16
- package/dist/codeblock.js +16 -9
- package/dist/colorpicker.cjs +1 -0
- package/dist/colorpicker.js +1 -0
- package/dist/components/Accordion/Accordion.module.scss.cjs +8 -8
- package/dist/components/Accordion/Accordion.module.scss.js +8 -8
- package/dist/components/Alert/Alert.module.scss.cjs +21 -21
- package/dist/components/Alert/Alert.module.scss.js +21 -21
- package/dist/components/Alert/index.cjs +14 -8
- package/dist/components/Alert/index.d.ts +9 -9
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +14 -8
- package/dist/components/AppShell/AppShell.module.scss.cjs +14 -14
- package/dist/components/AppShell/AppShell.module.scss.js +14 -14
- package/dist/components/AppShell/index.cjs +2 -2
- package/dist/components/AppShell/index.js +2 -2
- package/dist/components/Avatar/Avatar.module.scss.cjs +14 -14
- package/dist/components/Avatar/Avatar.module.scss.js +14 -14
- package/dist/components/Badge/Badge.module.scss.cjs +33 -31
- package/dist/components/Badge/Badge.module.scss.js +33 -31
- package/dist/components/Badge/index.cjs +13 -3
- package/dist/components/Badge/index.d.ts +18 -13
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +13 -3
- package/dist/components/BentoGrid/BentoGrid.module.scss.cjs +14 -14
- package/dist/components/BentoGrid/BentoGrid.module.scss.js +14 -14
- package/dist/components/Box/Box.module.scss.cjs +152 -152
- package/dist/components/Box/Box.module.scss.js +152 -152
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs +11 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +11 -8
- package/dist/components/Breadcrumbs/index.cjs +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/Button.module.scss.cjs +36 -27
- package/dist/components/Button/Button.module.scss.js +36 -27
- package/dist/components/Button/index.cjs +20 -4
- package/dist/components/Button/index.d.ts +18 -10
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +20 -4
- package/dist/components/ButtonGroup/ButtonGroup.module.scss.cjs +15 -15
- package/dist/components/ButtonGroup/ButtonGroup.module.scss.js +15 -15
- package/dist/components/Card/Card.module.scss.cjs +27 -34
- package/dist/components/Card/Card.module.scss.js +27 -34
- package/dist/components/Card/index.cjs +13 -8
- package/dist/components/Card/index.d.ts +23 -25
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +13 -8
- package/dist/components/Chart/Chart.module.scss.cjs +15 -15
- package/dist/components/Chart/Chart.module.scss.js +15 -15
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +11 -11
- package/dist/components/Checkbox/Checkbox.module.scss.js +11 -11
- package/dist/components/Checkbox/index.cjs +2 -2
- package/dist/components/Checkbox/index.d.ts +4 -6
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Chip/Chip.module.scss.cjs +19 -19
- package/dist/components/Chip/Chip.module.scss.js +19 -19
- package/dist/components/Chip/index.cjs +1 -2
- package/dist/components/Chip/index.d.ts +8 -3
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/index.js +1 -2
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +22 -22
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +22 -22
- package/dist/components/CodeBlock/index.d.ts +3 -2
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +9 -9
- package/dist/components/Collapsible/Collapsible.module.scss.js +9 -9
- package/dist/components/ColorPicker/ColorPicker.module.scss.cjs +14 -14
- package/dist/components/ColorPicker/ColorPicker.module.scss.js +14 -14
- package/dist/components/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.module.scss.cjs +21 -21
- package/dist/components/Combobox/Combobox.module.scss.js +21 -21
- package/dist/components/Combobox/index.cjs +9 -5
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +9 -5
- package/dist/components/Command/Command.module.scss.cjs +14 -11
- package/dist/components/Command/Command.module.scss.js +14 -11
- package/dist/components/Command/index.cjs +2 -1
- package/dist/components/Command/index.d.ts +6 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +2 -1
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
- package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
- package/dist/components/ConversationList/index.cjs +2 -2
- package/dist/components/ConversationList/index.js +2 -2
- package/dist/components/DataTable/DataTable.module.scss.cjs +31 -28
- package/dist/components/DataTable/DataTable.module.scss.js +31 -28
- package/dist/components/DataTable/DataTable.virtual.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +33 -33
- package/dist/components/DatePicker/DatePicker.module.scss.js +33 -33
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.module.scss.cjs +14 -14
- package/dist/components/Dialog/Dialog.module.scss.js +14 -14
- package/dist/components/Dialog/index.cjs +2 -2
- package/dist/components/Dialog/index.d.ts +5 -4
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/Drawer/Drawer.module.scss.cjs +39 -39
- package/dist/components/Drawer/Drawer.module.scss.js +40 -40
- package/dist/components/Drawer/index.cjs +2 -2
- package/dist/components/Drawer/index.d.ts +5 -4
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Editor/Editor.module.scss.cjs +17 -17
- package/dist/components/Editor/Editor.module.scss.js +17 -17
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +11 -11
- package/dist/components/EmptyState/EmptyState.module.scss.js +11 -11
- package/dist/components/EmptyState/index.cjs +9 -4
- package/dist/components/EmptyState/index.d.ts +8 -5
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +9 -4
- package/dist/components/Field/Field.module.scss.cjs +5 -5
- package/dist/components/Field/Field.module.scss.js +5 -5
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Grid/Grid.module.scss.cjs +54 -54
- package/dist/components/Grid/Grid.module.scss.js +54 -54
- package/dist/components/Header/Header.module.scss.cjs +33 -33
- package/dist/components/Header/Header.module.scss.js +33 -33
- package/dist/components/Icon/Icon.module.scss.cjs +30 -33
- package/dist/components/Icon/Icon.module.scss.js +30 -33
- package/dist/components/Icon/index.cjs +15 -14
- package/dist/components/Icon/index.d.ts +23 -12
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +15 -14
- package/dist/components/IconButton/IconButton.module.scss.cjs +12 -12
- package/dist/components/IconButton/IconButton.module.scss.js +12 -12
- package/dist/components/IconButton/index.d.ts +4 -4
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Input/Input.module.scss.cjs +15 -21
- package/dist/components/Input/Input.module.scss.js +15 -21
- package/dist/components/Input/index.cjs +2 -14
- package/dist/components/Input/index.d.ts +0 -2
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +2 -14
- package/dist/components/Link/Link.module.scss.cjs +24 -16
- package/dist/components/Link/Link.module.scss.js +24 -16
- package/dist/components/Link/index.cjs +13 -2
- package/dist/components/Link/index.d.ts +10 -3
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +13 -2
- package/dist/components/List/List.module.scss.cjs +23 -19
- package/dist/components/List/List.module.scss.js +23 -19
- package/dist/components/List/index.cjs +7 -7
- package/dist/components/List/index.d.ts +10 -7
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +7 -7
- package/dist/components/Listbox/Listbox.module.scss.cjs +8 -8
- package/dist/components/Listbox/Listbox.module.scss.js +8 -8
- package/dist/components/Loading/Loading.module.scss.cjs +30 -30
- package/dist/components/Loading/Loading.module.scss.js +30 -30
- package/dist/components/Loading/index.cjs +5 -5
- package/dist/components/Loading/index.d.ts +8 -7
- package/dist/components/Loading/index.d.ts.map +1 -1
- package/dist/components/Loading/index.js +5 -5
- package/dist/components/Markdown/Markdown.module.scss.cjs +1 -1
- package/dist/components/Markdown/Markdown.module.scss.js +1 -1
- package/dist/components/Menu/Menu.module.scss.cjs +14 -14
- package/dist/components/Menu/Menu.module.scss.js +14 -14
- package/dist/components/Message/Message.module.scss.cjs +20 -20
- package/dist/components/Message/Message.module.scss.js +20 -20
- package/dist/components/Message/index.cjs +1 -1
- package/dist/components/Message/index.d.ts +1 -1
- package/dist/components/Message/index.js +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +29 -29
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +29 -29
- package/dist/components/Pagination/Pagination.module.scss.cjs +10 -10
- package/dist/components/Pagination/Pagination.module.scss.js +10 -10
- package/dist/components/Popover/Popover.module.scss.cjs +10 -10
- package/dist/components/Popover/Popover.module.scss.js +10 -10
- package/dist/components/Progress/Progress.module.scss.cjs +28 -25
- package/dist/components/Progress/Progress.module.scss.js +28 -25
- package/dist/components/Progress/index.cjs +21 -12
- package/dist/components/Progress/index.d.ts +10 -6
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +21 -12
- package/dist/components/Prompt/Prompt.module.scss.cjs +30 -30
- package/dist/components/Prompt/Prompt.module.scss.js +30 -30
- package/dist/components/Prompt/index.cjs +7 -7
- package/dist/components/Prompt/index.d.ts +11 -9
- package/dist/components/Prompt/index.d.ts.map +1 -1
- package/dist/components/Prompt/index.js +7 -7
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +20 -17
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +20 -17
- package/dist/components/RadioGroup/index.cjs +10 -5
- package/dist/components/RadioGroup/index.d.ts +11 -7
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +10 -5
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +5 -5
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +5 -5
- package/dist/components/Select/Select.module.scss.cjs +21 -21
- package/dist/components/Select/Select.module.scss.js +21 -21
- package/dist/components/Select/index.cjs +26 -20
- package/dist/components/Select/index.d.ts +5 -5
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +26 -20
- package/dist/components/Separator/Separator.module.scss.cjs +25 -19
- package/dist/components/Separator/Separator.module.scss.js +25 -19
- package/dist/components/Separator/index.cjs +10 -8
- package/dist/components/Separator/index.d.ts +4 -2
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +10 -8
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +43 -43
- package/dist/components/Sidebar/Sidebar.module.scss.js +43 -43
- package/dist/components/Sidebar/index.cjs +3 -3
- package/dist/components/Sidebar/index.js +3 -3
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +46 -46
- package/dist/components/Skeleton/Skeleton.module.scss.js +46 -46
- package/dist/components/Skeleton/index.cjs +7 -7
- package/dist/components/Skeleton/index.d.ts +8 -7
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +7 -7
- package/dist/components/Slider/Slider.module.scss.cjs +12 -12
- package/dist/components/Slider/Slider.module.scss.js +12 -12
- package/dist/components/Switch/Switch.module.scss.cjs +9 -9
- package/dist/components/Switch/Switch.module.scss.js +9 -9
- package/dist/components/Table/Table.module.scss.cjs +15 -15
- package/dist/components/Table/Table.module.scss.js +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/TableOfContents/index.cjs +1 -1
- package/dist/components/TableOfContents/index.js +1 -1
- package/dist/components/Tabs/Tabs.module.scss.cjs +18 -18
- package/dist/components/Tabs/Tabs.module.scss.js +18 -18
- package/dist/components/Tabs/index.cjs +5 -6
- package/dist/components/Tabs/index.d.ts +8 -6
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +5 -6
- package/dist/components/Text/Text.module.scss.cjs +105 -105
- package/dist/components/Text/Text.module.scss.js +105 -105
- package/dist/components/Text/index.cjs +5 -9
- package/dist/components/Text/index.d.ts +15 -11
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +5 -9
- package/dist/components/Textarea/Textarea.module.scss.cjs +22 -28
- package/dist/components/Textarea/Textarea.module.scss.js +22 -28
- package/dist/components/Textarea/index.cjs +3 -10
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +3 -10
- package/dist/components/Theme/index.cjs +20 -4
- package/dist/components/Theme/index.d.ts +6 -12
- package/dist/components/Theme/index.d.ts.map +1 -1
- package/dist/components/Theme/index.js +20 -4
- package/dist/components/ThemeToggle/ThemeButton.cjs +51 -0
- package/dist/components/ThemeToggle/ThemeButton.d.ts +16 -0
- package/dist/components/ThemeToggle/ThemeButton.d.ts.map +1 -0
- package/dist/components/ThemeToggle/ThemeButton.js +34 -0
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.cjs +6 -9
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.js +6 -9
- package/dist/components/ThemeToggle/icons.cjs +48 -0
- package/dist/components/ThemeToggle/icons.d.ts +10 -0
- package/dist/components/ThemeToggle/icons.d.ts.map +1 -0
- package/dist/components/ThemeToggle/icons.js +48 -0
- package/dist/components/ThemeToggle/index.cjs +5 -74
- package/dist/components/ThemeToggle/index.d.ts +5 -8
- package/dist/components/ThemeToggle/index.d.ts.map +1 -1
- package/dist/components/ThemeToggle/index.js +3 -72
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +18 -15
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +18 -15
- package/dist/components/ThinkingIndicator/index.cjs +7 -8
- package/dist/components/ThinkingIndicator/index.d.ts +6 -5
- package/dist/components/ThinkingIndicator/index.d.ts.map +1 -1
- package/dist/components/ThinkingIndicator/index.js +7 -8
- package/dist/components/Toast/Toast.module.scss.cjs +28 -29
- package/dist/components/Toast/Toast.module.scss.js +29 -30
- package/dist/components/Toast/index.cjs +28 -30
- package/dist/components/Toast/index.d.ts +9 -8
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +28 -30
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +21 -19
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +22 -20
- package/dist/components/ToggleGroup/index.cjs +4 -5
- package/dist/components/ToggleGroup/index.d.ts +7 -6
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +4 -5
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.cjs +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.module.scss.js +1 -1
- package/dist/data-table-virtual.cjs +3 -2
- package/dist/data-table-virtual.js +3 -2
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.js +1 -1
- package/dist/datepicker.cjs +23 -11
- package/dist/datepicker.js +23 -11
- package/dist/index.cjs +5 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/measurements/generated.cjs +37 -93
- package/dist/measurements/generated.d.ts +37 -92
- package/dist/measurements/generated.d.ts.map +1 -1
- package/dist/measurements/generated.js +37 -93
- package/dist/measurements/index.d.ts +1 -1
- package/dist/measurements/index.d.ts.map +1 -1
- package/dist/utils/seed-derivation.cjs +0 -1
- package/dist/utils/seed-derivation.d.ts +1 -3
- package/dist/utils/seed-derivation.d.ts.map +1 -1
- package/dist/utils/seed-derivation.js +0 -1
- package/dist/utils/theme-presets.cjs +5 -10
- package/dist/utils/theme-presets.d.ts +1 -2
- package/dist/utils/theme-presets.d.ts.map +1 -1
- package/dist/utils/theme-presets.js +5 -10
- package/fragments.json +1 -1
- package/package.json +5 -8
- package/src/assets/nav-glyph.module.scss +166 -0
- package/src/assets/nav-glyph.tsx +188 -0
- package/src/components/Accordion/Accordion.module.scss +5 -3
- package/src/components/Alert/Alert.contract.json +18 -18
- package/src/components/Alert/Alert.module.scss +50 -64
- package/src/components/Alert/index.tsx +24 -17
- package/src/components/AppShell/AppShell.contract.json +7 -7
- package/src/components/AppShell/AppShell.module.scss +49 -17
- package/src/components/AppShell/index.tsx +2 -2
- package/src/components/Avatar/Avatar.module.scss +0 -1
- package/src/components/Badge/Badge.contract.json +58 -22
- package/src/components/Badge/Badge.module.scss +72 -47
- package/src/components/Badge/index.tsx +34 -17
- package/src/components/BentoGrid/BentoGrid.module.scss +4 -8
- package/src/components/Box/Box.module.scss +7 -6
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +15 -5
- package/src/components/Breadcrumbs/index.tsx +5 -1
- package/src/components/Button/Button.module.scss +261 -186
- package/src/components/Button/index.tsx +41 -28
- package/src/components/ButtonGroup/ButtonGroup.contract.json +5 -5
- package/src/components/ButtonGroup/ButtonGroup.module.scss +8 -6
- package/src/components/Card/Card.consumer-fixture.module.scss +5 -2
- package/src/components/Card/Card.module.scss +73 -133
- package/src/components/Card/index.tsx +41 -36
- package/src/components/Chart/Chart.module.scss +6 -5
- package/src/components/Checkbox/Checkbox.contract.json +4 -3
- package/src/components/Checkbox/Checkbox.module.scss +16 -32
- package/src/components/Checkbox/index.tsx +6 -8
- package/src/components/Chip/Chip.contract.json +10 -10
- package/src/components/Chip/Chip.module.scss +23 -22
- package/src/components/Chip/index.tsx +10 -6
- package/src/components/CodeBlock/CodeBlock.module.scss +47 -70
- package/src/components/CodeBlock/index.tsx +23 -16
- package/src/components/Collapsible/Collapsible.module.scss +1 -7
- package/src/components/ColorPicker/ColorPicker.module.scss +20 -13
- package/src/components/ColorPicker/index.tsx +1 -0
- package/src/components/Combobox/Combobox.module.scss +16 -19
- package/src/components/Combobox/index.tsx +10 -1
- package/src/components/Command/Command.contract.json +7 -1
- package/src/components/Command/Command.module.scss +19 -21
- package/src/components/Command/index.tsx +7 -1
- package/src/components/ComponentDefaults/ComponentDefaults.contract.json +91 -0
- package/src/components/ConversationList/ConversationList.module.scss +2 -3
- package/src/components/ConversationList/index.tsx +2 -2
- package/src/components/DataTable/DataTable.module.scss +12 -9
- package/src/components/DataTable/DataTable.virtual.tsx +3 -2
- package/src/components/DataTable/index.tsx +1 -1
- package/src/components/DatePicker/DatePicker.module.scss +32 -42
- package/src/components/DatePicker/index.tsx +18 -7
- package/src/components/Dialog/Dialog.module.scss +23 -29
- package/src/components/Dialog/index.tsx +7 -5
- package/src/components/Drawer/Drawer.contract.json +6 -6
- package/src/components/Drawer/Drawer.module.scss +123 -64
- package/src/components/Drawer/index.tsx +7 -5
- package/src/components/Editor/Editor.contract.json +1 -1
- package/src/components/Editor/Editor.module.scss +26 -13
- package/src/components/EmptyState/EmptyState.contract.json +6 -6
- package/src/components/EmptyState/EmptyState.module.scss +31 -23
- package/src/components/EmptyState/index.tsx +17 -9
- package/src/components/Field/Field.module.scss +2 -1
- package/src/components/Fieldset/Fieldset.module.scss +5 -4
- package/src/components/Form/Form.contract.json +4 -4
- package/src/components/Grid/Grid.module.scss +2 -2
- package/src/components/Header/Header.contract.json +2 -2
- package/src/components/Header/Header.module.scss +24 -36
- package/src/components/Icon/Icon.contract.json +19 -23
- package/src/components/Icon/Icon.module.scss +13 -12
- package/src/components/Icon/index.tsx +31 -31
- package/src/components/IconButton/IconButton.contract.json +8 -8
- package/src/components/IconButton/IconButton.module.scss +13 -4
- package/src/components/IconButton/index.tsx +4 -4
- package/src/components/Input/Input.contract.json +0 -13
- package/src/components/Input/Input.module.scss +4 -54
- package/src/components/Input/index.tsx +2 -18
- package/src/components/Link/Link.contract.json +19 -11
- package/src/components/Link/Link.module.scss +24 -10
- package/src/components/Link/index.tsx +26 -5
- package/src/components/List/List.contract.json +11 -11
- package/src/components/List/List.module.scss +10 -5
- package/src/components/List/index.tsx +17 -13
- package/src/components/Listbox/Listbox.module.scss +14 -20
- package/src/components/Loading/Loading.contract.json +6 -6
- package/src/components/Loading/Loading.module.scss +29 -26
- package/src/components/Loading/index.tsx +13 -12
- package/src/components/Markdown/Markdown.module.scss +2 -1
- package/src/components/Menu/Menu.contract.json +5 -5
- package/src/components/Menu/Menu.module.scss +11 -10
- package/src/components/Message/Message.contract.json +5 -5
- package/src/components/Message/Message.module.scss +8 -6
- package/src/components/Message/index.tsx +2 -2
- package/src/components/NavigationMenu/NavigationMenu.module.scss +22 -67
- package/src/components/Pagination/Pagination.module.scss +7 -14
- package/src/components/Popover/Popover.contract.json +4 -4
- package/src/components/Popover/Popover.module.scss +24 -23
- package/src/components/Progress/Progress.contract.json +11 -11
- package/src/components/Progress/Progress.module.scss +13 -8
- package/src/components/Progress/index.tsx +34 -16
- package/src/components/Prompt/Prompt.contract.json +12 -12
- package/src/components/Prompt/Prompt.module.scss +40 -47
- package/src/components/Prompt/index.tsx +17 -15
- package/src/components/RadioGroup/RadioGroup.contract.json +6 -4
- package/src/components/RadioGroup/RadioGroup.module.scss +38 -32
- package/src/components/RadioGroup/index.tsx +23 -10
- package/src/components/ScrollArea/ScrollArea.module.scss +30 -33
- package/src/components/Select/Select.module.scss +19 -18
- package/src/components/Select/index.tsx +26 -24
- package/src/components/Separator/Separator.contract.json +10 -10
- package/src/components/Separator/Separator.module.scss +24 -40
- package/src/components/Separator/index.tsx +16 -11
- package/src/components/Sidebar/Sidebar.contract.json +1 -1
- package/src/components/Sidebar/Sidebar.module.scss +92 -95
- package/src/components/Sidebar/index.tsx +3 -3
- package/src/components/Skeleton/Skeleton.contract.json +9 -9
- package/src/components/Skeleton/Skeleton.module.scss +23 -16
- package/src/components/Skeleton/index.tsx +16 -15
- package/src/components/Slider/Slider.module.scss +6 -19
- package/src/components/Stack/Stack.contract.json +1 -1
- package/src/components/Stack/Stack.module.scss +13 -12
- package/src/components/Switch/Switch.module.scss +44 -35
- package/src/components/Table/Table.module.scss +9 -13
- package/src/components/TableOfContents/TableOfContents.module.scss +12 -18
- package/src/components/TableOfContents/index.tsx +1 -1
- package/src/components/Tabs/Tabs.contract.json +14 -14
- package/src/components/Tabs/Tabs.module.scss +27 -31
- package/src/components/Tabs/index.tsx +15 -12
- package/src/components/Text/Text.contract.json +36 -14
- package/src/components/Text/Text.module.scss +19 -20
- package/src/components/Text/index.tsx +23 -21
- package/src/components/Textarea/Textarea.contract.json +0 -13
- package/src/components/Textarea/Textarea.module.scss +24 -52
- package/src/components/Textarea/index.tsx +3 -14
- package/src/components/Theme/Theme.contract.json +9 -8
- package/src/components/Theme/index.tsx +39 -12
- package/src/components/ThemeToggle/ThemeButton.tsx +49 -0
- package/src/components/ThemeToggle/ThemeToggle.module.scss +21 -44
- package/src/components/ThemeToggle/icons.tsx +46 -0
- package/src/components/ThemeToggle/index.tsx +8 -90
- package/src/components/ThinkingIndicator/ThinkingIndicator.contract.json +11 -10
- package/src/components/ThinkingIndicator/ThinkingIndicator.module.scss +9 -7
- package/src/components/ThinkingIndicator/index.tsx +12 -14
- package/src/components/Toast/Toast.contract.json +29 -13
- package/src/components/Toast/Toast.module.scss +49 -104
- package/src/components/Toast/index.tsx +39 -34
- package/src/components/ToggleGroup/ToggleGroup.contract.json +13 -13
- package/src/components/ToggleGroup/ToggleGroup.module.scss +16 -46
- package/src/components/ToggleGroup/index.tsx +11 -11
- package/src/components/Tooltip/Tooltip.contract.json +3 -3
- package/src/components/Tooltip/Tooltip.module.scss +16 -10
- package/src/components/VisuallyHidden/VisuallyHidden.module.scss +4 -14
- package/src/index.ts +14 -10
- package/src/measurements/MeasurementTargets.module.scss +6 -7
- package/src/measurements/generated.ts +38 -96
- package/src/measurements/index.ts +0 -1
- package/src/measurements/measurements.json +37 -116
- package/src/recipes/_action.scss +4 -4
- package/src/recipes/_boolean-range.scss +9 -5
- package/src/recipes/_feedback.scss +17 -16
- package/src/recipes/_field.scss +28 -20
- package/src/recipes/_navigation.scss +84 -29
- package/src/recipes/_overlay.scss +143 -43
- package/src/recipes/_popup.scss +46 -36
- package/src/recipes/_prose.scss +35 -23
- package/src/recipes/_representation.scss +10 -9
- package/src/recipes/_segmented.scss +1 -1
- package/src/recipes/_table-chrome.scss +27 -16
- package/src/recipes/_target.scss +2 -4
- package/src/recipes/_typography.scss +10 -0
- package/src/styles/globals.scss +14 -9
- package/src/tokens/_component-properties.scss +19 -1
- package/src/tokens/_computed.scss +27 -33
- package/src/tokens/_measurements.catalog.generated.css +58 -45
- package/src/tokens/_measurements.generated.scss +107 -250
- package/src/tokens/_mixins.scss +42 -40
- package/src/tokens/_palettes.scss +1 -1
- package/src/tokens/_property-registrations.scss +9 -0
- package/src/tokens/_seeds.scss +1 -12
- package/src/tokens/_variables.scss +71 -59
- package/src/utils/seed-derivation.ts +1 -8
- package/src/utils/theme-presets.ts +5 -12
- package/dist/blocks/AccountSettings.block.d.ts +0 -3
- package/dist/blocks/AccountSettings.block.d.ts.map +0 -1
- package/dist/blocks/ActivityFeedSkeleton.block.d.ts +0 -3
- package/dist/blocks/ActivityFeedSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/BlogEditor.block.d.ts +0 -3
- package/dist/blocks/BlogEditor.block.d.ts.map +0 -1
- package/dist/blocks/ChatInterface.block.d.ts +0 -3
- package/dist/blocks/ChatInterface.block.d.ts.map +0 -1
- package/dist/blocks/ChatMessages.block.d.ts +0 -3
- package/dist/blocks/ChatMessages.block.d.ts.map +0 -1
- package/dist/blocks/CheckoutForm.block.d.ts +0 -3
- package/dist/blocks/CheckoutForm.block.d.ts.map +0 -1
- package/dist/blocks/CommandPalette.block.d.ts +0 -3
- package/dist/blocks/CommandPalette.block.d.ts.map +0 -1
- package/dist/blocks/ContactForm.block.d.ts +0 -3
- package/dist/blocks/ContactForm.block.d.ts.map +0 -1
- package/dist/blocks/DashboardPage.block.d.ts +0 -3
- package/dist/blocks/DashboardPage.block.d.ts.map +0 -1
- package/dist/blocks/DashboardSkeleton.block.d.ts +0 -3
- package/dist/blocks/DashboardSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/DataTable.block.d.ts +0 -3
- package/dist/blocks/DataTable.block.d.ts.map +0 -1
- package/dist/blocks/EmptyState.block.d.ts +0 -3
- package/dist/blocks/EmptyState.block.d.ts.map +0 -1
- package/dist/blocks/FAQSection.block.d.ts +0 -3
- package/dist/blocks/FAQSection.block.d.ts.map +0 -1
- package/dist/blocks/FeatureGrid.block.d.ts +0 -3
- package/dist/blocks/FeatureGrid.block.d.ts.map +0 -1
- package/dist/blocks/HeroSection.block.d.ts +0 -3
- package/dist/blocks/HeroSection.block.d.ts.map +0 -1
- package/dist/blocks/NavigationHeader.block.d.ts +0 -3
- package/dist/blocks/NavigationHeader.block.d.ts.map +0 -1
- package/dist/blocks/PaginatedTable.block.d.ts +0 -3
- package/dist/blocks/PaginatedTable.block.d.ts.map +0 -1
- package/dist/blocks/PricingComparison.block.d.ts +0 -3
- package/dist/blocks/PricingComparison.block.d.ts.map +0 -1
- package/dist/blocks/ProductCard.block.d.ts +0 -3
- package/dist/blocks/ProductCard.block.d.ts.map +0 -1
- package/dist/blocks/RegistrationForm.block.d.ts +0 -3
- package/dist/blocks/RegistrationForm.block.d.ts.map +0 -1
- package/dist/blocks/SettingsDrawer.block.d.ts +0 -3
- package/dist/blocks/SettingsDrawer.block.d.ts.map +0 -1
- package/dist/blocks/SettingsPanel.block.d.ts +0 -3
- package/dist/blocks/SettingsPanel.block.d.ts.map +0 -1
- package/dist/blocks/ShoppingCart.block.d.ts +0 -3
- package/dist/blocks/ShoppingCart.block.d.ts.map +0 -1
- package/dist/blocks/StatsCardSkeleton.block.d.ts +0 -3
- package/dist/blocks/StatsCardSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/TableSkeleton.block.d.ts +0 -3
- package/dist/blocks/TableSkeleton.block.d.ts.map +0 -1
- package/dist/blocks/ThinkingStates.block.d.ts +0 -3
- package/dist/blocks/ThinkingStates.block.d.ts.map +0 -1
- package/dist/components/Toggle/index.d.ts +0 -3
- package/dist/components/Toggle/index.d.ts.map +0 -1
- package/src/components/Toggle/index.ts +0 -7
- package/src/tokens/_density.scss +0 -85
|
@@ -7,7 +7,7 @@ export interface StatsCardProps {
|
|
|
7
7
|
/** Change indicator text (e.g., "+12.5%") */
|
|
8
8
|
change?: string;
|
|
9
9
|
/** Semantic variant for the change badge */
|
|
10
|
-
|
|
10
|
+
changeTone?: 'success' | 'warning' | 'danger';
|
|
11
11
|
/** Optional icon rendered in the top-right corner */
|
|
12
12
|
icon?: React.ReactNode;
|
|
13
13
|
/** Additional CSS class name */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsCard.d.ts","sourceRoot":"","sources":["../../../src/blocks/components/StatsCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,
|
|
1
|
+
{"version":3,"file":"StatsCard.d.ts","sourceRoot":"","sources":["../../../src/blocks/components/StatsCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC9C,qDAAqD;IACrD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,eAAO,MAAM,SAAS,uFA8CrB,CAAC"}
|
package/dist/codeblock.cjs
CHANGED
|
@@ -25,7 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
26
26
|
const jsxRuntime = require("react/jsx-runtime");
|
|
27
27
|
const React = require("react");
|
|
28
|
-
const index = require("./components/
|
|
28
|
+
const index$1 = require("./components/Button/index.cjs");
|
|
29
|
+
const index = require("./components/IconButton/index.cjs");
|
|
30
|
+
const index$2 = require("./components/Tabs/index.cjs");
|
|
29
31
|
const cssVariablesTheme = require("./components/CodeBlock/css-variables-theme.cjs");
|
|
30
32
|
const CodeBlock_module = require("./components/CodeBlock/CodeBlock.module.scss.cjs");
|
|
31
33
|
const env = require("./utils/env.cjs");
|
|
@@ -506,9 +508,10 @@ const CodeBlockBase = React__namespace.forwardRef(function CodeBlock2({
|
|
|
506
508
|
shouldRenderHeader && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: CodeBlock_module.default.header, children: [
|
|
507
509
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: CodeBlock_module.default.filename, children: filename ?? "" }),
|
|
508
510
|
shouldShowHeaderCopy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
509
|
-
|
|
511
|
+
index.IconButton,
|
|
510
512
|
{
|
|
511
|
-
|
|
513
|
+
variant: "ghost",
|
|
514
|
+
size: "sm",
|
|
512
515
|
onClick: handleCopy,
|
|
513
516
|
className: `${CodeBlock_module.default.copyButton} ${copied ? CodeBlock_module.default.copied : ""}`,
|
|
514
517
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -517,9 +520,10 @@ const CodeBlockBase = React__namespace.forwardRef(function CodeBlock2({
|
|
|
517
520
|
)
|
|
518
521
|
] }),
|
|
519
522
|
shouldShowOverlayCopy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
520
|
-
|
|
523
|
+
index.IconButton,
|
|
521
524
|
{
|
|
522
|
-
|
|
525
|
+
variant: "ghost",
|
|
526
|
+
size: "sm",
|
|
523
527
|
onClick: handleCopy,
|
|
524
528
|
className: `${CodeBlock_module.default.copyButton} ${CodeBlock_module.default.copyOverlay} ${copied ? CodeBlock_module.default.copied : ""}`,
|
|
525
529
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -535,9 +539,10 @@ const CodeBlockBase = React__namespace.forwardRef(function CodeBlock2({
|
|
|
535
539
|
}
|
|
536
540
|
),
|
|
537
541
|
persistentCopy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
538
|
-
|
|
542
|
+
index.IconButton,
|
|
539
543
|
{
|
|
540
|
-
|
|
544
|
+
variant: "ghost",
|
|
545
|
+
size: "sm",
|
|
541
546
|
onClick: handleCopy,
|
|
542
547
|
className: `${CodeBlock_module.default.persistentCopy} ${CodeBlock_module.default.copyButton} ${CodeBlock_module.default.copyOverlay} ${copied ? CodeBlock_module.default.copied : ""}`,
|
|
543
548
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -545,9 +550,11 @@ const CodeBlockBase = React__namespace.forwardRef(function CodeBlock2({
|
|
|
545
550
|
}
|
|
546
551
|
),
|
|
547
552
|
shouldShowCollapse && /* @__PURE__ */ jsxRuntime.jsx(
|
|
548
|
-
|
|
553
|
+
index$1.Button,
|
|
549
554
|
{
|
|
550
|
-
|
|
555
|
+
variant: "ghost",
|
|
556
|
+
size: "sm",
|
|
557
|
+
fullWidth: true,
|
|
551
558
|
onClick: toggleCollapsed,
|
|
552
559
|
className: collapseAction === "expand" ? `${CodeBlock_module.default.collapseButton} ${CodeBlock_module.default.collapseExpand}` : CodeBlock_module.default.collapseButton,
|
|
553
560
|
"aria-expanded": !isCollapsed,
|
|
@@ -578,7 +585,7 @@ function TabbedCodeBlock({
|
|
|
578
585
|
copyPlacement = "auto",
|
|
579
586
|
showLineNumbers = false,
|
|
580
587
|
theme,
|
|
581
|
-
tabsVariant = "
|
|
588
|
+
tabsVariant = "soft",
|
|
582
589
|
wordWrap,
|
|
583
590
|
maxHeight,
|
|
584
591
|
collapsible,
|
|
@@ -590,15 +597,15 @@ function TabbedCodeBlock({
|
|
|
590
597
|
}) {
|
|
591
598
|
var _a, _b;
|
|
592
599
|
const defaultValue = defaultTab || ((_a = tabs[0]) == null ? void 0 : _a.value) || ((_b = tabs[0]) == null ? void 0 : _b.label) || "";
|
|
593
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsxs(index.TabsRoot, { defaultValue, value, onValueChange, children: [
|
|
594
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.TabsList, { variant: tabsVariant, children: tabs.map((tab,
|
|
600
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsxs(index$2.TabsRoot, { defaultValue, value, onValueChange, children: [
|
|
601
|
+
/* @__PURE__ */ jsxRuntime.jsx(index$2.TabsList, { variant: tabsVariant, children: tabs.map((tab, index2) => {
|
|
595
602
|
const tabValue = tab.value ?? tab.label;
|
|
596
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Tab, { value: tabValue, children: tab.label }, `${tabValue}-${
|
|
603
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$2.Tab, { value: tabValue, children: tab.label }, `${tabValue}-${index2}`);
|
|
597
604
|
}) }),
|
|
598
|
-
tabs.map((tab,
|
|
605
|
+
tabs.map((tab, index2) => {
|
|
599
606
|
const tabValue = tab.value ?? tab.label;
|
|
600
607
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
601
|
-
index.TabsPanel,
|
|
608
|
+
index$2.TabsPanel,
|
|
602
609
|
{
|
|
603
610
|
value: tabValue,
|
|
604
611
|
flush: true,
|
|
@@ -622,7 +629,7 @@ function TabbedCodeBlock({
|
|
|
622
629
|
}
|
|
623
630
|
)
|
|
624
631
|
},
|
|
625
|
-
`${tabValue}-panel-${
|
|
632
|
+
`${tabValue}-panel-${index2}`
|
|
626
633
|
);
|
|
627
634
|
})
|
|
628
635
|
] }) });
|
package/dist/codeblock.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { useState, useMemo, useEffect, useCallback } from "react";
|
|
5
|
+
import { Button } from "./components/Button/index.js";
|
|
6
|
+
import { IconButton } from "./components/IconButton/index.js";
|
|
5
7
|
import { TabsRoot, TabsList, Tab, TabsPanel } from "./components/Tabs/index.js";
|
|
6
8
|
import { FUI_CSS_VARIABLES_THEME } from "./components/CodeBlock/css-variables-theme.js";
|
|
7
9
|
import styles from "./components/CodeBlock/CodeBlock.module.scss.js";
|
|
@@ -466,9 +468,10 @@ const CodeBlockBase = React.forwardRef(function CodeBlock2({
|
|
|
466
468
|
shouldRenderHeader && /* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
467
469
|
/* @__PURE__ */ jsx("span", { className: styles.filename, children: filename ?? "" }),
|
|
468
470
|
shouldShowHeaderCopy && /* @__PURE__ */ jsx(
|
|
469
|
-
|
|
471
|
+
IconButton,
|
|
470
472
|
{
|
|
471
|
-
|
|
473
|
+
variant: "ghost",
|
|
474
|
+
size: "sm",
|
|
472
475
|
onClick: handleCopy,
|
|
473
476
|
className: `${styles.copyButton} ${copied ? styles.copied : ""}`,
|
|
474
477
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -477,9 +480,10 @@ const CodeBlockBase = React.forwardRef(function CodeBlock2({
|
|
|
477
480
|
)
|
|
478
481
|
] }),
|
|
479
482
|
shouldShowOverlayCopy && /* @__PURE__ */ jsx(
|
|
480
|
-
|
|
483
|
+
IconButton,
|
|
481
484
|
{
|
|
482
|
-
|
|
485
|
+
variant: "ghost",
|
|
486
|
+
size: "sm",
|
|
483
487
|
onClick: handleCopy,
|
|
484
488
|
className: `${styles.copyButton} ${styles.copyOverlay} ${copied ? styles.copied : ""}`,
|
|
485
489
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -495,9 +499,10 @@ const CodeBlockBase = React.forwardRef(function CodeBlock2({
|
|
|
495
499
|
}
|
|
496
500
|
),
|
|
497
501
|
persistentCopy && /* @__PURE__ */ jsx(
|
|
498
|
-
|
|
502
|
+
IconButton,
|
|
499
503
|
{
|
|
500
|
-
|
|
504
|
+
variant: "ghost",
|
|
505
|
+
size: "sm",
|
|
501
506
|
onClick: handleCopy,
|
|
502
507
|
className: `${styles.persistentCopy} ${styles.copyButton} ${styles.copyOverlay} ${copied ? styles.copied : ""}`,
|
|
503
508
|
"aria-label": copied ? "Copied!" : "Copy code",
|
|
@@ -505,9 +510,11 @@ const CodeBlockBase = React.forwardRef(function CodeBlock2({
|
|
|
505
510
|
}
|
|
506
511
|
),
|
|
507
512
|
shouldShowCollapse && /* @__PURE__ */ jsx(
|
|
508
|
-
|
|
513
|
+
Button,
|
|
509
514
|
{
|
|
510
|
-
|
|
515
|
+
variant: "ghost",
|
|
516
|
+
size: "sm",
|
|
517
|
+
fullWidth: true,
|
|
511
518
|
onClick: toggleCollapsed,
|
|
512
519
|
className: collapseAction === "expand" ? `${styles.collapseButton} ${styles.collapseExpand}` : styles.collapseButton,
|
|
513
520
|
"aria-expanded": !isCollapsed,
|
|
@@ -538,7 +545,7 @@ function TabbedCodeBlock({
|
|
|
538
545
|
copyPlacement = "auto",
|
|
539
546
|
showLineNumbers = false,
|
|
540
547
|
theme,
|
|
541
|
-
tabsVariant = "
|
|
548
|
+
tabsVariant = "soft",
|
|
542
549
|
wordWrap,
|
|
543
550
|
maxHeight,
|
|
544
551
|
collapsible,
|
package/dist/colorpicker.cjs
CHANGED
|
@@ -151,6 +151,7 @@ const ColorPickerRoot = React__namespace.forwardRef(function ColorPicker2({
|
|
|
151
151
|
className: ColorPicker_module.default.swatch,
|
|
152
152
|
style: { backgroundColor: displayValue },
|
|
153
153
|
disabled,
|
|
154
|
+
"aria-invalid": error || void 0,
|
|
154
155
|
"aria-label": label ? `Edit ${label} color` : "Edit color"
|
|
155
156
|
}
|
|
156
157
|
),
|
package/dist/colorpicker.js
CHANGED
|
@@ -110,6 +110,7 @@ const ColorPickerRoot = React.forwardRef(function ColorPicker2({
|
|
|
110
110
|
className: styles.swatch,
|
|
111
111
|
style: { backgroundColor: displayValue },
|
|
112
112
|
disabled,
|
|
113
|
+
"aria-invalid": error || void 0,
|
|
113
114
|
"aria-label": label ? `Edit ${label} color` : "Edit color"
|
|
114
115
|
}
|
|
115
116
|
),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const accordion = "
|
|
4
|
-
const item = "
|
|
5
|
-
const heading = "
|
|
6
|
-
const trigger = "
|
|
7
|
-
const triggerContent = "
|
|
8
|
-
const chevron = "
|
|
9
|
-
const content = "
|
|
10
|
-
const contentInner = "
|
|
3
|
+
const accordion = "_accordion_5sec0_1";
|
|
4
|
+
const item = "_item_5sec0_11";
|
|
5
|
+
const heading = "_heading_5sec0_17";
|
|
6
|
+
const trigger = "_trigger_5sec0_22";
|
|
7
|
+
const triggerContent = "_triggerContent_5sec0_76";
|
|
8
|
+
const chevron = "_chevron_5sec0_81";
|
|
9
|
+
const content = "_content_5sec0_92";
|
|
10
|
+
const contentInner = "_contentInner_5sec0_104";
|
|
11
11
|
const styles = {
|
|
12
12
|
accordion,
|
|
13
13
|
item,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const accordion = "
|
|
2
|
-
const item = "
|
|
3
|
-
const heading = "
|
|
4
|
-
const trigger = "
|
|
5
|
-
const triggerContent = "
|
|
6
|
-
const chevron = "
|
|
7
|
-
const content = "
|
|
8
|
-
const contentInner = "
|
|
1
|
+
const accordion = "_accordion_5sec0_1";
|
|
2
|
+
const item = "_item_5sec0_11";
|
|
3
|
+
const heading = "_heading_5sec0_17";
|
|
4
|
+
const trigger = "_trigger_5sec0_22";
|
|
5
|
+
const triggerContent = "_triggerContent_5sec0_76";
|
|
6
|
+
const chevron = "_chevron_5sec0_81";
|
|
7
|
+
const content = "_content_5sec0_92";
|
|
8
|
+
const contentInner = "_contentInner_5sec0_104";
|
|
9
9
|
const styles = {
|
|
10
10
|
accordion,
|
|
11
11
|
item,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const alert = "
|
|
4
|
-
const title = "
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const surface = "
|
|
10
|
-
const icon = "
|
|
11
|
-
const body = "
|
|
12
|
-
const content = "
|
|
13
|
-
const actions = "
|
|
14
|
-
const close = "
|
|
15
|
-
const action = "
|
|
3
|
+
const alert = "_alert_1b772_1";
|
|
4
|
+
const title = "_title_1b772_29";
|
|
5
|
+
const toneInfo = "_toneInfo_1b772_33";
|
|
6
|
+
const toneSuccess = "_toneSuccess_1b772_39";
|
|
7
|
+
const toneWarning = "_toneWarning_1b772_45";
|
|
8
|
+
const toneDanger = "_toneDanger_1b772_51";
|
|
9
|
+
const surface = "_surface_1b772_57";
|
|
10
|
+
const icon = "_icon_1b772_65";
|
|
11
|
+
const body = "_body_1b772_82";
|
|
12
|
+
const content = "_content_1b772_97";
|
|
13
|
+
const actions = "_actions_1b772_106";
|
|
14
|
+
const close = "_close_1b772_112";
|
|
15
|
+
const action = "_action_1b772_106";
|
|
16
16
|
const styles = {
|
|
17
17
|
alert,
|
|
18
18
|
title,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
toneInfo,
|
|
20
|
+
toneSuccess,
|
|
21
|
+
toneWarning,
|
|
22
|
+
toneDanger,
|
|
23
23
|
surface,
|
|
24
24
|
icon,
|
|
25
25
|
body,
|
|
@@ -35,10 +35,10 @@ exports.body = body;
|
|
|
35
35
|
exports.close = close;
|
|
36
36
|
exports.content = content;
|
|
37
37
|
exports.default = styles;
|
|
38
|
-
exports.error = error;
|
|
39
38
|
exports.icon = icon;
|
|
40
|
-
exports.info = info;
|
|
41
|
-
exports.success = success;
|
|
42
39
|
exports.surface = surface;
|
|
43
40
|
exports.title = title;
|
|
44
|
-
exports.
|
|
41
|
+
exports.toneDanger = toneDanger;
|
|
42
|
+
exports.toneInfo = toneInfo;
|
|
43
|
+
exports.toneSuccess = toneSuccess;
|
|
44
|
+
exports.toneWarning = toneWarning;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const alert = "
|
|
2
|
-
const title = "
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const surface = "
|
|
8
|
-
const icon = "
|
|
9
|
-
const body = "
|
|
10
|
-
const content = "
|
|
11
|
-
const actions = "
|
|
12
|
-
const close = "
|
|
13
|
-
const action = "
|
|
1
|
+
const alert = "_alert_1b772_1";
|
|
2
|
+
const title = "_title_1b772_29";
|
|
3
|
+
const toneInfo = "_toneInfo_1b772_33";
|
|
4
|
+
const toneSuccess = "_toneSuccess_1b772_39";
|
|
5
|
+
const toneWarning = "_toneWarning_1b772_45";
|
|
6
|
+
const toneDanger = "_toneDanger_1b772_51";
|
|
7
|
+
const surface = "_surface_1b772_57";
|
|
8
|
+
const icon = "_icon_1b772_65";
|
|
9
|
+
const body = "_body_1b772_82";
|
|
10
|
+
const content = "_content_1b772_97";
|
|
11
|
+
const actions = "_actions_1b772_106";
|
|
12
|
+
const close = "_close_1b772_112";
|
|
13
|
+
const action = "_action_1b772_106";
|
|
14
14
|
const styles = {
|
|
15
15
|
alert,
|
|
16
16
|
title,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
toneInfo,
|
|
18
|
+
toneSuccess,
|
|
19
|
+
toneWarning,
|
|
20
|
+
toneDanger,
|
|
21
21
|
surface,
|
|
22
22
|
icon,
|
|
23
23
|
body,
|
|
@@ -34,11 +34,11 @@ export {
|
|
|
34
34
|
close,
|
|
35
35
|
content,
|
|
36
36
|
styles as default,
|
|
37
|
-
error,
|
|
38
37
|
icon,
|
|
39
|
-
info,
|
|
40
|
-
success,
|
|
41
38
|
surface,
|
|
42
39
|
title,
|
|
43
|
-
|
|
40
|
+
toneDanger,
|
|
41
|
+
toneInfo,
|
|
42
|
+
toneSuccess,
|
|
43
|
+
toneWarning
|
|
44
44
|
};
|
|
@@ -37,15 +37,21 @@ function composeEventHandlers(userHandler, internalHandler) {
|
|
|
37
37
|
internalHandler == null ? void 0 : internalHandler(event);
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const toneIcons = {
|
|
41
41
|
info: "i",
|
|
42
42
|
success: "✓",
|
|
43
43
|
warning: "!",
|
|
44
|
-
|
|
44
|
+
danger: "✗"
|
|
45
|
+
};
|
|
46
|
+
const TONE_CLASS = {
|
|
47
|
+
info: Alert_module.default.toneInfo,
|
|
48
|
+
success: Alert_module.default.toneSuccess,
|
|
49
|
+
warning: Alert_module.default.toneWarning,
|
|
50
|
+
danger: Alert_module.default.toneDanger
|
|
45
51
|
};
|
|
46
52
|
function AlertRoot({
|
|
47
53
|
children,
|
|
48
|
-
|
|
54
|
+
tone = "info",
|
|
49
55
|
emphasis = "tint",
|
|
50
56
|
className,
|
|
51
57
|
...htmlProps
|
|
@@ -59,13 +65,13 @@ function AlertRoot({
|
|
|
59
65
|
if (dismissed) return null;
|
|
60
66
|
const classes = [
|
|
61
67
|
Alert_module.default.alert,
|
|
62
|
-
|
|
68
|
+
TONE_CLASS[tone],
|
|
63
69
|
emphasis === "surface" ? Alert_module.default.surface : null,
|
|
64
70
|
className
|
|
65
71
|
].filter(Boolean).join(" ");
|
|
66
|
-
const role =
|
|
72
|
+
const role = tone === "warning" || tone === "danger" ? "alert" : "status";
|
|
67
73
|
const contextValue = {
|
|
68
|
-
|
|
74
|
+
tone,
|
|
69
75
|
titleId,
|
|
70
76
|
descId,
|
|
71
77
|
dismiss
|
|
@@ -83,9 +89,9 @@ function AlertRoot({
|
|
|
83
89
|
) });
|
|
84
90
|
}
|
|
85
91
|
function AlertIcon({ children, className, ...htmlProps }) {
|
|
86
|
-
const {
|
|
92
|
+
const { tone } = useAlertContext();
|
|
87
93
|
const classes = [Alert_module.default.icon, className].filter(Boolean).join(" ");
|
|
88
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { ...htmlProps, className: classes, "aria-hidden": "true", children: children ??
|
|
94
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { ...htmlProps, className: classes, "aria-hidden": "true", children: children ?? toneIcons[tone] });
|
|
89
95
|
}
|
|
90
96
|
function AlertBody({ children, className, ...htmlProps }) {
|
|
91
97
|
const classes = [Alert_module.default.body, className].filter(Boolean).join(" ");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type
|
|
2
|
+
export type AlertTone = "info" | "success" | "warning" | "danger";
|
|
3
3
|
/**
|
|
4
|
-
* Alert for contextual feedback messages (info, success, warning,
|
|
4
|
+
* Alert for contextual feedback messages (info, success, warning, danger).
|
|
5
5
|
* @see https://usefragments.com/components/alert
|
|
6
6
|
*/
|
|
7
7
|
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
/**
|
|
9
|
+
/** Tone. Controls color and default icon.
|
|
10
10
|
* @default "info"
|
|
11
|
-
* @see https://usefragments.com/components/alert#
|
|
12
|
-
|
|
13
|
-
/** How much surface the
|
|
14
|
-
*
|
|
11
|
+
* @see https://usefragments.com/components/alert#tones */
|
|
12
|
+
tone?: AlertTone;
|
|
13
|
+
/** How much surface the tone claims. `tint` washes the whole card in the
|
|
14
|
+
* tone colour. `surface` keeps the card on the page's own background and
|
|
15
15
|
* spends the colour only on the hairline and the title — for a standing
|
|
16
16
|
* failure that owns the view, where a full wash would read as a red page.
|
|
17
17
|
* @default "tint" */
|
|
@@ -40,13 +40,13 @@ export interface AlertBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
40
40
|
children: React.ReactNode;
|
|
41
41
|
}
|
|
42
42
|
interface AlertContextValue {
|
|
43
|
-
|
|
43
|
+
tone: AlertTone;
|
|
44
44
|
titleId: string;
|
|
45
45
|
descId: string;
|
|
46
46
|
dismiss: () => void;
|
|
47
47
|
}
|
|
48
48
|
declare function useAlertContext(): AlertContextValue;
|
|
49
|
-
declare function AlertRoot({ children,
|
|
49
|
+
declare function AlertRoot({ children, tone, emphasis, className, ...htmlProps }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
50
|
declare function AlertIcon({ children, className, ...htmlProps }: AlertIconProps): import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
declare function AlertBody({ children, className, ...htmlProps }: AlertBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
52
52
|
declare function AlertTitle({ children, className, ...htmlProps }: AlertTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;8DAE0D;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;yBAIqB;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC3E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,SAAS,CACV;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,CACX;IACC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAMD,UAAU,iBAAiB;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAID,iBAAS,eAAe,sBAMvB;AAmCD,iBAAS,SAAS,CAAC,EACjB,QAAQ,EACR,IAAa,EACb,QAAiB,EACjB,SAAS,EACT,GAAG,SAAS,EACb,EAAE,UAAU,kDAyCZ;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,cAAc,2CASvE;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,cAAc,2CAOvE;AAED,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,eAAe,2CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,iBAAiB,2CAQ7E;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,iBAAiB,2CAO7E;AAED,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,IAAe,EACf,SAAS,EACT,GAAG,SAAS,EACb,EAAE,gBAAgB,2CAOlB;AAED,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,IAAe,EACf,YAAY,EAAE,SAA2B,EACzC,GAAG,SAAS,EACb,EAAE,eAAe,2CAejB;AAMD,eAAO,MAAM,KAAK;;;;;;;;CAQhB,CAAC;AAGH,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,GAChB,CAAC"}
|
|
@@ -18,15 +18,21 @@ function composeEventHandlers(userHandler, internalHandler) {
|
|
|
18
18
|
internalHandler == null ? void 0 : internalHandler(event);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const toneIcons = {
|
|
22
22
|
info: "i",
|
|
23
23
|
success: "✓",
|
|
24
24
|
warning: "!",
|
|
25
|
-
|
|
25
|
+
danger: "✗"
|
|
26
|
+
};
|
|
27
|
+
const TONE_CLASS = {
|
|
28
|
+
info: styles.toneInfo,
|
|
29
|
+
success: styles.toneSuccess,
|
|
30
|
+
warning: styles.toneWarning,
|
|
31
|
+
danger: styles.toneDanger
|
|
26
32
|
};
|
|
27
33
|
function AlertRoot({
|
|
28
34
|
children,
|
|
29
|
-
|
|
35
|
+
tone = "info",
|
|
30
36
|
emphasis = "tint",
|
|
31
37
|
className,
|
|
32
38
|
...htmlProps
|
|
@@ -40,13 +46,13 @@ function AlertRoot({
|
|
|
40
46
|
if (dismissed) return null;
|
|
41
47
|
const classes = [
|
|
42
48
|
styles.alert,
|
|
43
|
-
|
|
49
|
+
TONE_CLASS[tone],
|
|
44
50
|
emphasis === "surface" ? styles.surface : null,
|
|
45
51
|
className
|
|
46
52
|
].filter(Boolean).join(" ");
|
|
47
|
-
const role =
|
|
53
|
+
const role = tone === "warning" || tone === "danger" ? "alert" : "status";
|
|
48
54
|
const contextValue = {
|
|
49
|
-
|
|
55
|
+
tone,
|
|
50
56
|
titleId,
|
|
51
57
|
descId,
|
|
52
58
|
dismiss
|
|
@@ -64,9 +70,9 @@ function AlertRoot({
|
|
|
64
70
|
) });
|
|
65
71
|
}
|
|
66
72
|
function AlertIcon({ children, className, ...htmlProps }) {
|
|
67
|
-
const {
|
|
73
|
+
const { tone } = useAlertContext();
|
|
68
74
|
const classes = [styles.icon, className].filter(Boolean).join(" ");
|
|
69
|
-
return /* @__PURE__ */ jsx("span", { ...htmlProps, className: classes, "aria-hidden": "true", children: children ??
|
|
75
|
+
return /* @__PURE__ */ jsx("span", { ...htmlProps, className: classes, "aria-hidden": "true", children: children ?? toneIcons[tone] });
|
|
70
76
|
}
|
|
71
77
|
function AlertBody({ children, className, ...htmlProps }) {
|
|
72
78
|
const classes = [styles.body, className].filter(Boolean).join(" ");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const sidebarLayout = "
|
|
5
|
-
const header = "
|
|
6
|
-
const sidebar = "
|
|
7
|
-
const sidebarFullHeight = "
|
|
8
|
-
const sidebarFloating = "
|
|
9
|
-
const main = "
|
|
10
|
-
const mainFloating = "
|
|
11
|
-
const paddingNone = "
|
|
12
|
-
const paddingSm = "
|
|
13
|
-
const paddingMd = "
|
|
14
|
-
const paddingLg = "
|
|
15
|
-
const aside = "
|
|
16
|
-
const asideFloating = "
|
|
3
|
+
const root = "_root_1syrl_1";
|
|
4
|
+
const sidebarLayout = "_sidebarLayout_1syrl_41";
|
|
5
|
+
const header = "_header_1syrl_57";
|
|
6
|
+
const sidebar = "_sidebar_1syrl_41";
|
|
7
|
+
const sidebarFullHeight = "_sidebarFullHeight_1syrl_110";
|
|
8
|
+
const sidebarFloating = "_sidebarFloating_1syrl_119";
|
|
9
|
+
const main = "_main_1syrl_123";
|
|
10
|
+
const mainFloating = "_mainFloating_1syrl_130";
|
|
11
|
+
const paddingNone = "_paddingNone_1syrl_152";
|
|
12
|
+
const paddingSm = "_paddingSm_1syrl_156";
|
|
13
|
+
const paddingMd = "_paddingMd_1syrl_160";
|
|
14
|
+
const paddingLg = "_paddingLg_1syrl_164";
|
|
15
|
+
const aside = "_aside_1syrl_168";
|
|
16
|
+
const asideFloating = "_asideFloating_1syrl_189";
|
|
17
17
|
const styles = {
|
|
18
18
|
root,
|
|
19
19
|
sidebarLayout,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const sidebarLayout = "
|
|
3
|
-
const header = "
|
|
4
|
-
const sidebar = "
|
|
5
|
-
const sidebarFullHeight = "
|
|
6
|
-
const sidebarFloating = "
|
|
7
|
-
const main = "
|
|
8
|
-
const mainFloating = "
|
|
9
|
-
const paddingNone = "
|
|
10
|
-
const paddingSm = "
|
|
11
|
-
const paddingMd = "
|
|
12
|
-
const paddingLg = "
|
|
13
|
-
const aside = "
|
|
14
|
-
const asideFloating = "
|
|
1
|
+
const root = "_root_1syrl_1";
|
|
2
|
+
const sidebarLayout = "_sidebarLayout_1syrl_41";
|
|
3
|
+
const header = "_header_1syrl_57";
|
|
4
|
+
const sidebar = "_sidebar_1syrl_41";
|
|
5
|
+
const sidebarFullHeight = "_sidebarFullHeight_1syrl_110";
|
|
6
|
+
const sidebarFloating = "_sidebarFloating_1syrl_119";
|
|
7
|
+
const main = "_main_1syrl_123";
|
|
8
|
+
const mainFloating = "_mainFloating_1syrl_130";
|
|
9
|
+
const paddingNone = "_paddingNone_1syrl_152";
|
|
10
|
+
const paddingSm = "_paddingSm_1syrl_156";
|
|
11
|
+
const paddingMd = "_paddingMd_1syrl_160";
|
|
12
|
+
const paddingLg = "_paddingLg_1syrl_164";
|
|
13
|
+
const aside = "_aside_1syrl_168";
|
|
14
|
+
const asideFloating = "_asideFloating_1syrl_189";
|
|
15
15
|
const styles = {
|
|
16
16
|
root,
|
|
17
17
|
sidebarLayout,
|
|
@@ -37,7 +37,7 @@ function resolveSlotVariant(explicit, layout, slot) {
|
|
|
37
37
|
const AppShellContext = React__namespace.createContext({
|
|
38
38
|
layout: "default",
|
|
39
39
|
structure: "default",
|
|
40
|
-
headerHeight: "56px",
|
|
40
|
+
headerHeight: "var(--fui-appshell-header-height, 56px)",
|
|
41
41
|
sidebarWidth: "240px",
|
|
42
42
|
sidebarCollapsedWidth: "var(--fui-navigation-sidebar-collapsed-width, 56px)",
|
|
43
43
|
asideWidth: "280px",
|
|
@@ -60,7 +60,7 @@ function useIsMobile() {
|
|
|
60
60
|
}
|
|
61
61
|
function extractConfigFromChildren(children) {
|
|
62
62
|
const config = {
|
|
63
|
-
headerHeight: "56px",
|
|
63
|
+
headerHeight: "var(--fui-appshell-header-height, 56px)",
|
|
64
64
|
sidebarWidth: "240px",
|
|
65
65
|
sidebarCollapsedWidth: "var(--fui-navigation-sidebar-collapsed-width, 56px)",
|
|
66
66
|
sidebarCollapsible: "icon",
|
|
@@ -18,7 +18,7 @@ function resolveSlotVariant(explicit, layout, slot) {
|
|
|
18
18
|
const AppShellContext = React.createContext({
|
|
19
19
|
layout: "default",
|
|
20
20
|
structure: "default",
|
|
21
|
-
headerHeight: "56px",
|
|
21
|
+
headerHeight: "var(--fui-appshell-header-height, 56px)",
|
|
22
22
|
sidebarWidth: "240px",
|
|
23
23
|
sidebarCollapsedWidth: "var(--fui-navigation-sidebar-collapsed-width, 56px)",
|
|
24
24
|
asideWidth: "280px",
|
|
@@ -41,7 +41,7 @@ function useIsMobile() {
|
|
|
41
41
|
}
|
|
42
42
|
function extractConfigFromChildren(children) {
|
|
43
43
|
const config = {
|
|
44
|
-
headerHeight: "56px",
|
|
44
|
+
headerHeight: "var(--fui-appshell-header-height, 56px)",
|
|
45
45
|
sidebarWidth: "240px",
|
|
46
46
|
sidebarCollapsedWidth: "var(--fui-navigation-sidebar-collapsed-width, 56px)",
|
|
47
47
|
sidebarCollapsible: "icon",
|