@usefragments/ui 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/assets/fragments-wordmark.cjs +2 -2
- package/dist/assets/fragments-wordmark.d.ts.map +1 -1
- package/dist/assets/fragments-wordmark.js +2 -2
- package/dist/assets/ui.css +4720 -4159
- package/dist/chart.cjs +24 -6
- package/dist/chart.js +24 -6
- package/dist/codeblock.cjs +55 -29
- package/dist/codeblock.js +55 -29
- package/dist/colorpicker.cjs +3 -1
- package/dist/colorpicker.js +3 -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 +15 -12
- package/dist/components/Alert/Alert.module.scss.js +15 -12
- package/dist/components/Alert/index.cjs +7 -1
- package/dist/components/Alert/index.d.ts +12 -6
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +7 -1
- package/dist/components/AppShell/AppShell.module.scss.cjs +14 -14
- package/dist/components/AppShell/AppShell.module.scss.js +14 -14
- package/dist/components/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 +19 -19
- package/dist/components/Badge/Badge.module.scss.js +19 -19
- package/dist/components/BentoGrid/BentoGrid.module.scss.cjs +14 -14
- package/dist/components/BentoGrid/BentoGrid.module.scss.js +14 -14
- package/dist/components/Box/Box.module.scss.cjs +152 -152
- package/dist/components/Box/Box.module.scss.js +152 -152
- package/dist/components/Box/index.cjs +64 -75
- package/dist/components/Box/index.d.ts +16 -16
- package/dist/components/Box/index.d.ts.map +1 -1
- package/dist/components/Box/index.js +64 -75
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +8 -8
- package/dist/components/Button/Button.module.scss.cjs +14 -14
- package/dist/components/Button/Button.module.scss.js +14 -14
- package/dist/components/Card/Card.module.scss.cjs +29 -17
- package/dist/components/Card/Card.module.scss.js +30 -18
- package/dist/components/Card/index.cjs +8 -0
- package/dist/components/Card/index.d.ts +12 -2
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +8 -0
- package/dist/components/Chart/Chart.module.scss.cjs +15 -15
- package/dist/components/Chart/Chart.module.scss.js +15 -15
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +9 -9
- package/dist/components/Checkbox/Checkbox.module.scss.js +9 -9
- package/dist/components/Checkbox/index.cjs +2 -2
- 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 +15 -15
- package/dist/components/Chip/Chip.module.scss.js +15 -15
- package/dist/components/Chip/index.cjs +2 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/index.js +2 -1
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +26 -23
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +26 -23
- package/dist/components/CodeBlock/css-variables-theme.cjs +98 -0
- package/dist/components/CodeBlock/css-variables-theme.d.ts +27 -0
- package/dist/components/CodeBlock/css-variables-theme.d.ts.map +1 -0
- package/dist/components/CodeBlock/css-variables-theme.js +98 -0
- package/dist/components/CodeBlock/index.d.ts +17 -3
- package/dist/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +9 -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 +17 -1
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +17 -1
- package/dist/components/Command/Command.module.scss.cjs +11 -11
- package/dist/components/Command/Command.module.scss.js +11 -11
- package/dist/components/Command/index.cjs +26 -15
- package/dist/components/Command/index.d.ts +2 -2
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +26 -15
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
- package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
- package/dist/components/DataTable/DataTable.icons.cjs +6 -33
- package/dist/components/DataTable/DataTable.icons.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.icons.js +6 -33
- package/dist/components/DataTable/DataTable.module.scss.cjs +27 -27
- package/dist/components/DataTable/DataTable.module.scss.js +27 -27
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +33 -33
- package/dist/components/DatePicker/DatePicker.module.scss.js +33 -33
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.module.scss.cjs +14 -14
- package/dist/components/Dialog/Dialog.module.scss.js +14 -14
- package/dist/components/Dialog/index.cjs +11 -14
- package/dist/components/Dialog/index.d.ts +7 -7
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +11 -14
- package/dist/components/Drawer/Drawer.module.scss.cjs +29 -29
- package/dist/components/Drawer/Drawer.module.scss.js +29 -29
- package/dist/components/Editor/Editor.module.scss.cjs +17 -17
- package/dist/components/Editor/Editor.module.scss.js +17 -17
- package/dist/components/Editor/index.d.ts +10 -10
- package/dist/components/Editor/index.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +11 -8
- package/dist/components/EmptyState/EmptyState.module.scss.js +11 -8
- package/dist/components/EmptyState/index.cjs +8 -6
- package/dist/components/EmptyState/index.d.ts +9 -4
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +8 -6
- package/dist/components/Field/Field.module.scss.cjs +5 -5
- package/dist/components/Field/Field.module.scss.js +5 -5
- package/dist/components/Field/index.cjs +9 -1
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/index.js +9 -1
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Grid/index.cjs +1 -1
- package/dist/components/Grid/index.js +1 -1
- 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 +17 -38
- package/dist/components/Header/index.d.ts +15 -11
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +17 -38
- package/dist/components/Icon/Icon.module.scss.cjs +15 -15
- package/dist/components/Icon/Icon.module.scss.js +15 -15
- package/dist/components/IconButton/IconButton.module.scss.cjs +8 -8
- package/dist/components/IconButton/IconButton.module.scss.js +8 -8
- package/dist/components/IconButton/index.cjs +2 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.js +2 -1
- package/dist/components/Image/Image.module.scss.cjs +27 -27
- package/dist/components/Image/Image.module.scss.js +27 -27
- package/dist/components/Input/Input.module.scss.cjs +17 -17
- package/dist/components/Input/Input.module.scss.js +17 -17
- package/dist/components/Link/Link.module.scss.cjs +14 -10
- package/dist/components/Link/Link.module.scss.js +14 -10
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/List/List.module.scss.cjs +19 -19
- package/dist/components/List/List.module.scss.js +19 -19
- package/dist/components/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 +34 -34
- package/dist/components/Loading/Loading.module.scss.js +34 -34
- package/dist/components/Loading/index.cjs +1 -1
- package/dist/components/Loading/index.js +1 -1
- package/dist/components/Markdown/Markdown.module.scss.cjs +1 -1
- package/dist/components/Markdown/Markdown.module.scss.js +1 -1
- package/dist/components/Markdown/index.d.ts +2 -2
- package/dist/components/Markdown/index.d.ts.map +1 -1
- package/dist/components/Menu/Menu.module.scss.cjs +14 -14
- package/dist/components/Menu/Menu.module.scss.js +14 -14
- package/dist/components/Message/Message.module.scss.cjs +18 -18
- package/dist/components/Message/Message.module.scss.js +18 -18
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +34 -31
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +34 -31
- package/dist/components/NavigationMenu/index.cjs +32 -15
- package/dist/components/NavigationMenu/index.d.ts +12 -6
- package/dist/components/NavigationMenu/index.d.ts.map +1 -1
- package/dist/components/NavigationMenu/index.js +32 -15
- package/dist/components/Pagination/Pagination.module.scss.cjs +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 +25 -25
- package/dist/components/Progress/Progress.module.scss.js +25 -25
- package/dist/components/Prompt/Prompt.module.scss.cjs +28 -28
- package/dist/components/Prompt/Prompt.module.scss.js +28 -28
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +15 -15
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +15 -15
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +5 -5
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +5 -5
- package/dist/components/ScrollArea/index.d.ts +4 -4
- package/dist/components/ScrollArea/index.d.ts.map +1 -1
- package/dist/components/ScrollArea/scroll-state.d.ts +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/Separator/Separator.module.scss.cjs +11 -11
- package/dist/components/Separator/Separator.module.scss.js +11 -11
- 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 +12 -35
- package/dist/components/Sidebar/index.d.ts +19 -19
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +12 -35
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +50 -46
- package/dist/components/Skeleton/Skeleton.module.scss.js +50 -46
- 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 -25
- package/dist/components/Stack/Stack.module.scss.js +25 -25
- package/dist/components/Stack/index.cjs +1 -1
- package/dist/components/Stack/index.js +1 -1
- 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 +19 -19
- package/dist/components/Table/Table.module.scss.js +19 -19
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/TableOfContents/index.cjs +13 -9
- package/dist/components/TableOfContents/index.d.ts +5 -3
- package/dist/components/TableOfContents/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/index.js +13 -9
- package/dist/components/Tabs/Tabs.module.scss.cjs +12 -12
- package/dist/components/Tabs/Tabs.module.scss.js +12 -12
- package/dist/components/Tabs/index.cjs +26 -6
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +26 -6
- package/dist/components/Text/Text.module.scss.cjs +87 -75
- package/dist/components/Text/Text.module.scss.js +87 -75
- package/dist/components/Text/index.cjs +49 -41
- package/dist/components/Text/index.d.ts +12 -11
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +49 -41
- package/dist/components/Textarea/Textarea.module.scss.cjs +24 -24
- package/dist/components/Textarea/Textarea.module.scss.js +24 -24
- package/dist/components/Theme/index.cjs +2 -1
- package/dist/components/Theme/index.d.ts.map +1 -1
- package/dist/components/Theme/index.js +2 -1
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.cjs +9 -6
- package/dist/components/ThemeToggle/ThemeToggle.module.scss.js +9 -6
- package/dist/components/ThemeToggle/index.cjs +31 -6
- package/dist/components/ThemeToggle/index.d.ts +7 -2
- package/dist/components/ThemeToggle/index.d.ts.map +1 -1
- package/dist/components/ThemeToggle/index.js +32 -7
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +13 -13
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +13 -13
- package/dist/components/Toast/Toast.module.scss.cjs +20 -20
- package/dist/components/Toast/Toast.module.scss.js +20 -20
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +17 -17
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +17 -17
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
- package/dist/components/Tooltip/index.cjs +24 -40
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +24 -40
- package/dist/components/VisuallyHidden/index.d.ts +2 -2
- package/dist/data-table.cjs +2 -1
- package/dist/data-table.js +2 -1
- package/dist/datepicker.cjs +3 -2
- package/dist/datepicker.js +3 -2
- package/dist/editor.cjs +68 -28
- package/dist/editor.js +68 -28
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/markdown.cjs +21 -29
- package/dist/markdown.js +21 -29
- package/dist/measurements/generated.cjs +9 -1
- package/dist/measurements/generated.d.ts +7 -0
- package/dist/measurements/generated.d.ts.map +1 -1
- package/dist/measurements/generated.js +9 -1
- package/dist/utils/a11y.cjs +5 -2
- package/dist/utils/a11y.d.ts +5 -5
- package/dist/utils/a11y.d.ts.map +1 -1
- package/dist/utils/a11y.js +5 -2
- package/dist/utils/canonical-stamp.cjs +2 -8
- package/dist/utils/canonical-stamp.d.ts.map +1 -1
- package/dist/utils/canonical-stamp.js +1 -7
- package/dist/utils/css-warning.cjs +1 -1
- package/dist/utils/css-warning.js +1 -1
- package/dist/utils/env.cjs +17 -0
- package/dist/utils/env.d.ts +3 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +17 -0
- package/dist/utils/keyboard-shortcuts.cjs +3 -10
- package/dist/utils/keyboard-shortcuts.d.ts +4 -4
- package/dist/utils/keyboard-shortcuts.d.ts.map +1 -1
- package/dist/utils/keyboard-shortcuts.js +3 -10
- package/dist/utils/seed-derivation.cjs +10 -6
- package/dist/utils/seed-derivation.d.ts.map +1 -1
- package/dist/utils/seed-derivation.js +10 -6
- package/fragments.json +1 -1
- package/package.json +6 -4
- package/src/assets/fragments-logo.tsx +2 -2
- package/src/assets/fragments-wordmark.tsx +4 -2
- package/src/components/Accordion/Accordion.contract.json +24 -48
- package/src/components/Alert/Alert.contract.json +37 -53
- package/src/components/Alert/Alert.module.scss +24 -0
- package/src/components/Alert/index.tsx +55 -29
- package/src/components/AppShell/AppShell.contract.json +34 -51
- package/src/components/AppShell/AppShell.module.scss +53 -40
- package/src/components/Avatar/Avatar.contract.json +31 -48
- package/src/components/Avatar/Avatar.module.scss +4 -1
- package/src/components/Badge/Badge.contract.json +37 -42
- package/src/components/Badge/Badge.module.scss +9 -2
- package/src/components/BentoGrid/BentoGrid.contract.json +21 -45
- package/src/components/Box/Box.contract.json +40 -148
- package/src/components/Box/index.tsx +92 -99
- package/src/components/Breadcrumbs/Breadcrumbs.contract.json +21 -34
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +12 -7
- package/src/components/Button/Button.module.scss +8 -7
- package/src/components/ButtonGroup/ButtonGroup.contract.json +32 -47
- package/src/components/Card/Card.module.scss +82 -1
- package/src/components/Card/index.tsx +21 -2
- package/src/components/Chart/Chart.contract.json +21 -29
- package/src/components/Chart/index.tsx +36 -6
- package/src/components/Checkbox/Checkbox.contract.json +24 -24
- package/src/components/Checkbox/Checkbox.module.scss +32 -23
- package/src/components/Checkbox/index.tsx +4 -2
- package/src/components/Chip/Chip.contract.json +33 -40
- package/src/components/Chip/Chip.module.scss +2 -2
- package/src/components/Chip/index.tsx +2 -1
- package/src/components/CodeBlock/CodeBlock.contract.json +46 -76
- package/src/components/CodeBlock/CodeBlock.module.scss +40 -15
- package/src/components/CodeBlock/css-variables-theme.ts +102 -0
- package/src/components/CodeBlock/index.tsx +91 -35
- package/src/components/Collapsible/Collapsible.contract.json +21 -36
- package/src/components/ColorPicker/ColorPicker.contract.json +29 -48
- package/src/components/ColorPicker/ColorPicker.module.scss +15 -12
- package/src/components/ColorPicker/index.tsx +5 -1
- package/src/components/Combobox/Combobox.contract.json +36 -37
- package/src/components/Combobox/Combobox.module.scss +1 -1
- package/src/components/Combobox/index.tsx +31 -5
- package/src/components/Command/Command.contract.json +21 -43
- package/src/components/Command/index.tsx +58 -47
- package/src/components/ConversationList/ConversationList.contract.json +27 -32
- package/src/components/DataTable/DataTable.icons.tsx +4 -21
- package/src/components/DataTable/DataTable.module.scss +12 -8
- package/src/components/DataTable/index.tsx +8 -7
- package/src/components/DatePicker/DatePicker.contract.json +27 -28
- package/src/components/DatePicker/DatePicker.module.scss +12 -5
- package/src/components/DatePicker/index.tsx +5 -2
- package/src/components/Dialog/Dialog.module.scss +3 -3
- package/src/components/Dialog/index.tsx +47 -37
- package/src/components/Drawer/Drawer.contract.json +22 -36
- package/src/components/Editor/Editor.contract.json +31 -48
- package/src/components/Editor/Editor.module.scss +36 -14
- package/src/components/Editor/index.tsx +240 -179
- package/src/components/EmptyState/EmptyState.contract.json +31 -43
- package/src/components/EmptyState/EmptyState.module.scss +8 -0
- package/src/components/EmptyState/index.tsx +48 -23
- package/src/components/Field/Field.contract.json +28 -46
- package/src/components/Field/index.tsx +5 -1
- package/src/components/Fieldset/Fieldset.contract.json +21 -38
- package/src/components/Fieldset/Fieldset.module.scss +10 -3
- package/src/components/Form/Form.contract.json +20 -20
- package/src/components/Grid/Grid.contract.json +28 -64
- package/src/components/Grid/index.tsx +10 -10
- package/src/components/Header/Header.contract.json +31 -67
- package/src/components/Header/Header.module.scss +36 -21
- package/src/components/Header/index.tsx +134 -122
- package/src/components/Icon/Icon.contract.json +22 -62
- package/src/components/IconButton/IconButton.contract.json +34 -18
- package/src/components/IconButton/IconButton.module.scss +6 -7
- package/src/components/IconButton/index.tsx +2 -1
- package/src/components/Image/Image.contract.json +23 -56
- package/src/components/Input/Input.contract.json +26 -32
- package/src/components/Input/Input.module.scss +3 -2
- package/src/components/Link/Link.contract.json +32 -52
- package/src/components/Link/Link.module.scss +23 -6
- package/src/components/Link/index.tsx +1 -1
- package/src/components/List/List.contract.json +23 -52
- package/src/components/List/List.module.scss +1 -1
- package/src/components/Listbox/Listbox.contract.json +21 -37
- package/src/components/Loading/Loading.contract.json +37 -61
- package/src/components/Loading/Loading.module.scss +10 -7
- package/src/components/Loading/index.tsx +2 -2
- package/src/components/Main/Main.contract.json +17 -9
- package/src/components/Markdown/Markdown.contract.json +22 -43
- package/src/components/Markdown/Markdown.module.scss +43 -5
- package/src/components/Markdown/index.tsx +48 -49
- package/src/components/Menu/Menu.contract.json +25 -41
- package/src/components/Menu/Menu.module.scss +23 -8
- package/src/components/Message/Message.contract.json +29 -52
- package/src/components/Message/Message.module.scss +12 -5
- package/src/components/NavigationMenu/NavigationMenu.contract.json +36 -45
- package/src/components/NavigationMenu/NavigationMenu.module.scss +64 -19
- package/src/components/NavigationMenu/index.tsx +105 -81
- package/src/components/Pagination/Pagination.contract.json +22 -40
- package/src/components/Pagination/Pagination.module.scss +2 -2
- package/src/components/Popover/Popover.contract.json +24 -46
- package/src/components/Popover/Popover.module.scss +6 -5
- package/src/components/Progress/Progress.contract.json +32 -28
- package/src/components/Progress/Progress.module.scss +3 -2
- package/src/components/Prompt/Prompt.contract.json +31 -47
- package/src/components/Prompt/Prompt.module.scss +13 -5
- package/src/components/RadioGroup/RadioGroup.contract.json +23 -24
- package/src/components/RadioGroup/RadioGroup.module.scss +13 -14
- package/src/components/ScrollArea/ScrollArea.contract.json +18 -19
- package/src/components/ScrollArea/ScrollArea.module.scss +15 -15
- package/src/components/ScrollArea/index.tsx +16 -16
- package/src/components/ScrollArea/scroll-state.ts +24 -24
- package/src/components/Select/Select.module.scss +2 -2
- package/src/components/Separator/Separator.contract.json +24 -48
- package/src/components/Sidebar/Sidebar.contract.json +35 -67
- package/src/components/Sidebar/Sidebar.module.scss +22 -13
- package/src/components/Sidebar/index.tsx +164 -164
- package/src/components/Skeleton/Skeleton.contract.json +28 -54
- package/src/components/Skeleton/Skeleton.module.scss +27 -10
- package/src/components/Slider/Slider.contract.json +27 -39
- package/src/components/Slider/Slider.module.scss +3 -3
- package/src/components/Stack/Stack.contract.json +29 -56
- package/src/components/Stack/Stack.module.scss +13 -12
- package/src/components/Stack/index.tsx +3 -3
- package/src/components/Switch/Switch.contract.json +33 -46
- package/src/components/Switch/Switch.module.scss +64 -26
- package/src/components/Table/Table.contract.json +28 -46
- package/src/components/Table/Table.module.scss +15 -3
- package/src/components/TableOfContents/TableOfContents.contract.json +34 -21
- package/src/components/TableOfContents/TableOfContents.module.scss +15 -5
- package/src/components/TableOfContents/index.tsx +26 -9
- package/src/components/Tabs/Tabs.contract.json +24 -45
- package/src/components/Tabs/Tabs.module.scss +1 -1
- package/src/components/Tabs/index.tsx +15 -3
- package/src/components/Text/Text.contract.json +30 -72
- package/src/components/Text/Text.module.scss +21 -4
- package/src/components/Text/index.tsx +113 -75
- package/src/components/Textarea/Textarea.contract.json +25 -43
- package/src/components/Textarea/Textarea.module.scss +2 -4
- package/src/components/Theme/Theme.contract.json +32 -51
- package/src/components/Theme/index.tsx +2 -1
- package/src/components/ThemeToggle/ThemeToggle.module.scss +23 -7
- package/src/components/ThemeToggle/index.tsx +43 -7
- package/src/components/ThinkingIndicator/ThinkingIndicator.contract.json +23 -40
- package/src/components/Toast/Toast.contract.json +30 -40
- package/src/components/Toast/Toast.module.scss +1 -1
- package/src/components/ToggleGroup/ToggleGroup.contract.json +29 -30
- package/src/components/ToggleGroup/ToggleGroup.module.scss +38 -5
- package/src/components/Tooltip/Tooltip.contract.json +31 -52
- package/src/components/Tooltip/index.tsx +19 -24
- package/src/components/VisuallyHidden/VisuallyHidden.contract.json +22 -44
- package/src/components/VisuallyHidden/index.tsx +5 -5
- package/src/index.ts +2 -2
- package/src/measurements/generated.ts +9 -2
- package/src/measurements/measurements.json +7 -0
- package/src/recipes/_boolean-range.scss +3 -11
- package/src/recipes/_field.scss +5 -1
- package/src/recipes/_layout.scss +14 -7
- package/src/recipes/_popup.scss +12 -2
- package/src/recipes/_prose.scss +13 -5
- package/src/recipes/_table-chrome.scss +16 -2
- package/src/scss.d.ts +1 -1
- package/src/styles/globals.scss +20 -19
- package/src/tokens/_computed.scss +5 -16
- package/src/tokens/_derive.scss +112 -210
- package/src/tokens/_measurements.catalog.generated.css +6 -1
- package/src/tokens/_measurements.generated.scss +14 -1
- package/src/tokens/_mixins.scss +7 -8
- package/src/tokens/_palettes.scss +39 -167
- package/src/tokens/_seeds.scss +20 -20
- package/src/tokens/_variables.scss +183 -38
- package/src/utils/a11y.tsx +69 -69
- package/src/utils/aria.ts +3 -3
- package/src/utils/canonical-stamp.ts +2 -12
- package/src/utils/css-warning.ts +7 -7
- package/src/utils/env.ts +25 -0
- package/src/utils/keyboard-shortcuts.ts +131 -126
- package/src/utils/seed-derivation.ts +10 -6
- package/src/components/Button/Button.contract.json +0 -218
- package/src/components/Card/Card.contract.json +0 -175
- package/src/components/DataTable/DataTable.contract.json +0 -302
- package/src/components/Dialog/Dialog.contract.json +0 -159
- package/src/components/Select/Select.contract.json +0 -259
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
const loading = "
|
|
2
|
-
const sm = "
|
|
3
|
-
const md = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const xl = "
|
|
6
|
-
const colorAccent = "_color-
|
|
7
|
-
const colorCurrent = "_color-
|
|
8
|
-
const colorMuted = "_color-
|
|
9
|
-
const centered = "
|
|
10
|
-
const fill = "
|
|
11
|
-
const spinnerIcon = "
|
|
12
|
-
const spin = "
|
|
13
|
-
const
|
|
14
|
-
const dot = "
|
|
15
|
-
const bounce = "
|
|
16
|
-
const
|
|
17
|
-
const pulseRing = "
|
|
18
|
-
const pulseDot = "
|
|
19
|
-
const overlayBackdrop = "
|
|
20
|
-
const inline = "
|
|
21
|
-
const inlineSm = "_inline-
|
|
22
|
-
const inlineMd = "_inline-
|
|
23
|
-
const inlineSpinner = "
|
|
24
|
-
const screen = "
|
|
25
|
-
const screenLabel = "
|
|
1
|
+
const loading = "_loading_7x0gi_1";
|
|
2
|
+
const sm = "_sm_7x0gi_8";
|
|
3
|
+
const md = "_md_7x0gi_18";
|
|
4
|
+
const lg = "_lg_7x0gi_28";
|
|
5
|
+
const xl = "_xl_7x0gi_38";
|
|
6
|
+
const colorAccent = "_color-accent_7x0gi_48";
|
|
7
|
+
const colorCurrent = "_color-current_7x0gi_52";
|
|
8
|
+
const colorMuted = "_color-muted_7x0gi_56";
|
|
9
|
+
const centered = "_centered_7x0gi_60";
|
|
10
|
+
const fill = "_fill_7x0gi_66";
|
|
11
|
+
const spinnerIcon = "_spinnerIcon_7x0gi_74";
|
|
12
|
+
const spin = "_spin_7x0gi_74";
|
|
13
|
+
const dotsTrack = "_dotsTrack_7x0gi_94";
|
|
14
|
+
const dot = "_dot_7x0gi_94";
|
|
15
|
+
const bounce = "_bounce_7x0gi_1";
|
|
16
|
+
const pulseTrack = "_pulseTrack_7x0gi_135";
|
|
17
|
+
const pulseRing = "_pulseRing_7x0gi_144";
|
|
18
|
+
const pulseDot = "_pulseDot_7x0gi_160";
|
|
19
|
+
const overlayBackdrop = "_overlayBackdrop_7x0gi_178";
|
|
20
|
+
const inline = "_inline_7x0gi_188";
|
|
21
|
+
const inlineSm = "_inline-sm_7x0gi_194";
|
|
22
|
+
const inlineMd = "_inline-md_7x0gi_198";
|
|
23
|
+
const inlineSpinner = "_inlineSpinner_7x0gi_202";
|
|
24
|
+
const screen = "_screen_7x0gi_215";
|
|
25
|
+
const screenLabel = "_screenLabel_7x0gi_227";
|
|
26
26
|
const styles = {
|
|
27
27
|
loading,
|
|
28
28
|
sm,
|
|
29
29
|
md,
|
|
30
30
|
lg,
|
|
31
31
|
xl,
|
|
32
|
-
"color-accent": "_color-
|
|
32
|
+
"color-accent": "_color-accent_7x0gi_48",
|
|
33
33
|
colorAccent,
|
|
34
|
-
"color-current": "_color-
|
|
34
|
+
"color-current": "_color-current_7x0gi_52",
|
|
35
35
|
colorCurrent,
|
|
36
|
-
"color-muted": "_color-
|
|
36
|
+
"color-muted": "_color-muted_7x0gi_56",
|
|
37
37
|
colorMuted,
|
|
38
38
|
centered,
|
|
39
39
|
fill,
|
|
40
40
|
spinnerIcon,
|
|
41
41
|
spin,
|
|
42
|
-
|
|
42
|
+
dotsTrack,
|
|
43
43
|
dot,
|
|
44
44
|
bounce,
|
|
45
|
-
|
|
45
|
+
pulseTrack,
|
|
46
46
|
pulseRing,
|
|
47
47
|
pulseDot,
|
|
48
48
|
overlayBackdrop,
|
|
49
49
|
inline,
|
|
50
|
-
"inline-sm": "_inline-
|
|
50
|
+
"inline-sm": "_inline-sm_7x0gi_194",
|
|
51
51
|
inlineSm,
|
|
52
|
-
"inline-md": "_inline-
|
|
52
|
+
"inline-md": "_inline-md_7x0gi_198",
|
|
53
53
|
inlineMd,
|
|
54
54
|
inlineSpinner,
|
|
55
55
|
screen,
|
|
@@ -63,7 +63,7 @@ export {
|
|
|
63
63
|
colorMuted,
|
|
64
64
|
styles as default,
|
|
65
65
|
dot,
|
|
66
|
-
|
|
66
|
+
dotsTrack,
|
|
67
67
|
fill,
|
|
68
68
|
inline,
|
|
69
69
|
inlineMd,
|
|
@@ -73,9 +73,9 @@ export {
|
|
|
73
73
|
loading,
|
|
74
74
|
md,
|
|
75
75
|
overlayBackdrop,
|
|
76
|
-
pulse,
|
|
77
76
|
pulseDot,
|
|
78
77
|
pulseRing,
|
|
78
|
+
pulseTrack,
|
|
79
79
|
screen,
|
|
80
80
|
screenLabel,
|
|
81
81
|
sm,
|
|
@@ -72,7 +72,7 @@ const LoadingRoot = React__namespace.forwardRef(function LoadingRoot2({
|
|
|
72
72
|
overlay && Loading_module.default.overlay,
|
|
73
73
|
className
|
|
74
74
|
].filter(Boolean).join(" ");
|
|
75
|
-
const animation = variant === "dots" ? /* @__PURE__ */ jsxRuntime.jsx(DotsAnimation, { className: Loading_module.default.
|
|
75
|
+
const animation = variant === "dots" ? /* @__PURE__ */ jsxRuntime.jsx(DotsAnimation, { className: Loading_module.default.dotsTrack }) : variant === "pulse" ? /* @__PURE__ */ jsxRuntime.jsx(PulseAnimation, { className: Loading_module.default.pulseTrack }) : /* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, { className: Loading_module.default.spinnerIcon });
|
|
76
76
|
const content = /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
@@ -53,7 +53,7 @@ const LoadingRoot = React.forwardRef(function LoadingRoot2({
|
|
|
53
53
|
overlay && styles.overlay,
|
|
54
54
|
className
|
|
55
55
|
].filter(Boolean).join(" ");
|
|
56
|
-
const animation = variant === "dots" ? /* @__PURE__ */ jsx(DotsAnimation, { className: styles.
|
|
56
|
+
const animation = variant === "dots" ? /* @__PURE__ */ jsx(DotsAnimation, { className: styles.dotsTrack }) : variant === "pulse" ? /* @__PURE__ */ jsx(PulseAnimation, { className: styles.pulseTrack }) : /* @__PURE__ */ jsx(SpinnerIcon, { className: styles.spinnerIcon });
|
|
57
57
|
const content = /* @__PURE__ */ jsx(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type MarkdownComponentMap = Record<string, React.ComponentType<any>>;
|
|
3
|
-
export interface MarkdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
3
|
+
export interface MarkdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
4
|
/** Markdown string to render */
|
|
5
5
|
content: string;
|
|
6
6
|
/** Override map for markdown element components */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD;;;;;;;;GAQG;AACH,iBAAS,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA2BjC;AA+DD,eAAO,MAAM,QAAQ;;IAEnB;;;;OAIG;;CAEH,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const viewport = "
|
|
6
|
-
const item = "
|
|
7
|
-
const itemDanger = "
|
|
8
|
-
const itemIcon = "
|
|
9
|
-
const checkIndicator = "
|
|
10
|
-
const radioIndicator = "
|
|
11
|
-
const itemLabel = "
|
|
12
|
-
const itemShortcut = "
|
|
13
|
-
const radioItem = "
|
|
14
|
-
const separator = "
|
|
15
|
-
const groupLabel = "
|
|
16
|
-
const submenuTrigger = "
|
|
3
|
+
const positioner = "_positioner_13yql_1";
|
|
4
|
+
const popup = "_popup_13yql_9";
|
|
5
|
+
const viewport = "_viewport_13yql_59";
|
|
6
|
+
const item = "_item_13yql_66";
|
|
7
|
+
const itemDanger = "_itemDanger_13yql_90";
|
|
8
|
+
const itemIcon = "_itemIcon_13yql_98";
|
|
9
|
+
const checkIndicator = "_checkIndicator_13yql_99";
|
|
10
|
+
const radioIndicator = "_radioIndicator_13yql_100";
|
|
11
|
+
const itemLabel = "_itemLabel_13yql_120";
|
|
12
|
+
const itemShortcut = "_itemShortcut_13yql_125";
|
|
13
|
+
const radioItem = "_radioItem_13yql_151";
|
|
14
|
+
const separator = "_separator_13yql_156";
|
|
15
|
+
const groupLabel = "_groupLabel_13yql_162";
|
|
16
|
+
const submenuTrigger = "_submenuTrigger_13yql_176";
|
|
17
17
|
const styles = {
|
|
18
18
|
positioner,
|
|
19
19
|
popup,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const viewport = "
|
|
4
|
-
const item = "
|
|
5
|
-
const itemDanger = "
|
|
6
|
-
const itemIcon = "
|
|
7
|
-
const checkIndicator = "
|
|
8
|
-
const radioIndicator = "
|
|
9
|
-
const itemLabel = "
|
|
10
|
-
const itemShortcut = "
|
|
11
|
-
const radioItem = "
|
|
12
|
-
const separator = "
|
|
13
|
-
const groupLabel = "
|
|
14
|
-
const submenuTrigger = "
|
|
1
|
+
const positioner = "_positioner_13yql_1";
|
|
2
|
+
const popup = "_popup_13yql_9";
|
|
3
|
+
const viewport = "_viewport_13yql_59";
|
|
4
|
+
const item = "_item_13yql_66";
|
|
5
|
+
const itemDanger = "_itemDanger_13yql_90";
|
|
6
|
+
const itemIcon = "_itemIcon_13yql_98";
|
|
7
|
+
const checkIndicator = "_checkIndicator_13yql_99";
|
|
8
|
+
const radioIndicator = "_radioIndicator_13yql_100";
|
|
9
|
+
const itemLabel = "_itemLabel_13yql_120";
|
|
10
|
+
const itemShortcut = "_itemShortcut_13yql_125";
|
|
11
|
+
const radioItem = "_radioItem_13yql_151";
|
|
12
|
+
const separator = "_separator_13yql_156";
|
|
13
|
+
const groupLabel = "_groupLabel_13yql_162";
|
|
14
|
+
const submenuTrigger = "_submenuTrigger_13yql_176";
|
|
15
15
|
const styles = {
|
|
16
16
|
positioner,
|
|
17
17
|
popup,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const message = "
|
|
4
|
-
const actions = "
|
|
5
|
-
const withoutAvatar = "
|
|
6
|
-
const assistant = "
|
|
7
|
-
const content = "
|
|
8
|
-
const user = "
|
|
9
|
-
const body = "
|
|
10
|
-
const system = "
|
|
11
|
-
const avatar = "
|
|
12
|
-
const error = "
|
|
13
|
-
const sending = "
|
|
14
|
-
const avatarUser = "
|
|
15
|
-
const avatarAssistant = "
|
|
16
|
-
const avatarSystem = "
|
|
17
|
-
const avatarImage = "
|
|
18
|
-
const streaming = "
|
|
19
|
-
const blink = "
|
|
20
|
-
const timestamp = "
|
|
3
|
+
const message = "_message_1iumw_2";
|
|
4
|
+
const actions = "_actions_1iumw_9";
|
|
5
|
+
const withoutAvatar = "_withoutAvatar_1iumw_13";
|
|
6
|
+
const assistant = "_assistant_1iumw_13";
|
|
7
|
+
const content = "_content_1iumw_13";
|
|
8
|
+
const user = "_user_1iumw_17";
|
|
9
|
+
const body = "_body_1iumw_22";
|
|
10
|
+
const system = "_system_1iumw_35";
|
|
11
|
+
const avatar = "_avatar_1iumw_44";
|
|
12
|
+
const error = "_error_1iumw_48";
|
|
13
|
+
const sending = "_sending_1iumw_54";
|
|
14
|
+
const avatarUser = "_avatarUser_1iumw_62";
|
|
15
|
+
const avatarAssistant = "_avatarAssistant_1iumw_63";
|
|
16
|
+
const avatarSystem = "_avatarSystem_1iumw_68";
|
|
17
|
+
const avatarImage = "_avatarImage_1iumw_73";
|
|
18
|
+
const streaming = "_streaming_1iumw_231";
|
|
19
|
+
const blink = "_blink_1iumw_1";
|
|
20
|
+
const timestamp = "_timestamp_1iumw_257";
|
|
21
21
|
const styles = {
|
|
22
22
|
message,
|
|
23
23
|
actions,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const message = "
|
|
2
|
-
const actions = "
|
|
3
|
-
const withoutAvatar = "
|
|
4
|
-
const assistant = "
|
|
5
|
-
const content = "
|
|
6
|
-
const user = "
|
|
7
|
-
const body = "
|
|
8
|
-
const system = "
|
|
9
|
-
const avatar = "
|
|
10
|
-
const error = "
|
|
11
|
-
const sending = "
|
|
12
|
-
const avatarUser = "
|
|
13
|
-
const avatarAssistant = "
|
|
14
|
-
const avatarSystem = "
|
|
15
|
-
const avatarImage = "
|
|
16
|
-
const streaming = "
|
|
17
|
-
const blink = "
|
|
18
|
-
const timestamp = "
|
|
1
|
+
const message = "_message_1iumw_2";
|
|
2
|
+
const actions = "_actions_1iumw_9";
|
|
3
|
+
const withoutAvatar = "_withoutAvatar_1iumw_13";
|
|
4
|
+
const assistant = "_assistant_1iumw_13";
|
|
5
|
+
const content = "_content_1iumw_13";
|
|
6
|
+
const user = "_user_1iumw_17";
|
|
7
|
+
const body = "_body_1iumw_22";
|
|
8
|
+
const system = "_system_1iumw_35";
|
|
9
|
+
const avatar = "_avatar_1iumw_44";
|
|
10
|
+
const error = "_error_1iumw_48";
|
|
11
|
+
const sending = "_sending_1iumw_54";
|
|
12
|
+
const avatarUser = "_avatarUser_1iumw_62";
|
|
13
|
+
const avatarAssistant = "_avatarAssistant_1iumw_63";
|
|
14
|
+
const avatarSystem = "_avatarSystem_1iumw_68";
|
|
15
|
+
const avatarImage = "_avatarImage_1iumw_73";
|
|
16
|
+
const streaming = "_streaming_1iumw_231";
|
|
17
|
+
const blink = "_blink_1iumw_1";
|
|
18
|
+
const timestamp = "_timestamp_1iumw_257";
|
|
19
19
|
const styles = {
|
|
20
20
|
message,
|
|
21
21
|
actions,
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const drawerBackdrop = "
|
|
22
|
-
const drawer = "
|
|
23
|
-
const drawerHeader = "
|
|
24
|
-
const drawerClose = "
|
|
25
|
-
const drawerBody = "
|
|
26
|
-
const drawerNav = "
|
|
27
|
-
const drawerLink = "
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
3
|
+
const root = "_root_5ym48_1";
|
|
4
|
+
const list = "_list_5ym48_23";
|
|
5
|
+
const viewport = "_viewport_5ym48_24";
|
|
6
|
+
const hamburger = "_hamburger_5ym48_27";
|
|
7
|
+
const rootVertical = "_rootVertical_5ym48_31";
|
|
8
|
+
const listVertical = "_listVertical_5ym48_50";
|
|
9
|
+
const trigger = "_trigger_5ym48_55";
|
|
10
|
+
const triggerChevron = "_triggerChevron_5ym48_121";
|
|
11
|
+
const content = "_content_5ym48_129";
|
|
12
|
+
const link = "_link_5ym48_192";
|
|
13
|
+
const linkActive = "_linkActive_5ym48_218";
|
|
14
|
+
const linkStructured = "_linkStructured_5ym48_224";
|
|
15
|
+
const linkIcon = "_linkIcon_5ym48_236";
|
|
16
|
+
const linkBody = "_linkBody_5ym48_247";
|
|
17
|
+
const linkTitle = "_linkTitle_5ym48_254";
|
|
18
|
+
const linkDescription = "_linkDescription_5ym48_263";
|
|
19
|
+
const linkFeatured = "_linkFeatured_5ym48_272";
|
|
20
|
+
const indicator = "_indicator_5ym48_281";
|
|
21
|
+
const drawerBackdrop = "_drawerBackdrop_5ym48_426";
|
|
22
|
+
const drawer = "_drawer_5ym48_426";
|
|
23
|
+
const drawerHeader = "_drawerHeader_5ym48_460";
|
|
24
|
+
const drawerClose = "_drawerClose_5ym48_469";
|
|
25
|
+
const drawerBody = "_drawerBody_5ym48_534";
|
|
26
|
+
const drawerNav = "_drawerNav_5ym48_555";
|
|
27
|
+
const drawerLink = "_drawerLink_5ym48_560";
|
|
28
|
+
const drawerLinkActive = "_drawerLinkActive_5ym48_612";
|
|
29
|
+
const drawerSectionLabel = "_drawerSectionLabel_5ym48_622";
|
|
30
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_5ym48_652";
|
|
31
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_5ym48_714";
|
|
31
32
|
const styles = {
|
|
32
33
|
root,
|
|
33
|
-
rootVertical,
|
|
34
34
|
list,
|
|
35
|
+
viewport,
|
|
36
|
+
hamburger,
|
|
37
|
+
rootVertical,
|
|
35
38
|
listVertical,
|
|
36
39
|
trigger,
|
|
37
40
|
triggerChevron,
|
|
@@ -45,8 +48,6 @@ const styles = {
|
|
|
45
48
|
linkDescription,
|
|
46
49
|
linkFeatured,
|
|
47
50
|
indicator,
|
|
48
|
-
viewport,
|
|
49
|
-
hamburger,
|
|
50
51
|
drawerBackdrop,
|
|
51
52
|
drawer,
|
|
52
53
|
drawerHeader,
|
|
@@ -54,6 +55,7 @@ const styles = {
|
|
|
54
55
|
drawerBody,
|
|
55
56
|
drawerNav,
|
|
56
57
|
drawerLink,
|
|
58
|
+
drawerLinkActive,
|
|
57
59
|
drawerSectionLabel,
|
|
58
60
|
drawerCollapsibleTrigger,
|
|
59
61
|
drawerCollapsibleContent
|
|
@@ -68,6 +70,7 @@ exports.drawerCollapsibleContent = drawerCollapsibleContent;
|
|
|
68
70
|
exports.drawerCollapsibleTrigger = drawerCollapsibleTrigger;
|
|
69
71
|
exports.drawerHeader = drawerHeader;
|
|
70
72
|
exports.drawerLink = drawerLink;
|
|
73
|
+
exports.drawerLinkActive = drawerLinkActive;
|
|
71
74
|
exports.drawerNav = drawerNav;
|
|
72
75
|
exports.drawerSectionLabel = drawerSectionLabel;
|
|
73
76
|
exports.hamburger = hamburger;
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const drawerBackdrop = "
|
|
20
|
-
const drawer = "
|
|
21
|
-
const drawerHeader = "
|
|
22
|
-
const drawerClose = "
|
|
23
|
-
const drawerBody = "
|
|
24
|
-
const drawerNav = "
|
|
25
|
-
const drawerLink = "
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
1
|
+
const root = "_root_5ym48_1";
|
|
2
|
+
const list = "_list_5ym48_23";
|
|
3
|
+
const viewport = "_viewport_5ym48_24";
|
|
4
|
+
const hamburger = "_hamburger_5ym48_27";
|
|
5
|
+
const rootVertical = "_rootVertical_5ym48_31";
|
|
6
|
+
const listVertical = "_listVertical_5ym48_50";
|
|
7
|
+
const trigger = "_trigger_5ym48_55";
|
|
8
|
+
const triggerChevron = "_triggerChevron_5ym48_121";
|
|
9
|
+
const content = "_content_5ym48_129";
|
|
10
|
+
const link = "_link_5ym48_192";
|
|
11
|
+
const linkActive = "_linkActive_5ym48_218";
|
|
12
|
+
const linkStructured = "_linkStructured_5ym48_224";
|
|
13
|
+
const linkIcon = "_linkIcon_5ym48_236";
|
|
14
|
+
const linkBody = "_linkBody_5ym48_247";
|
|
15
|
+
const linkTitle = "_linkTitle_5ym48_254";
|
|
16
|
+
const linkDescription = "_linkDescription_5ym48_263";
|
|
17
|
+
const linkFeatured = "_linkFeatured_5ym48_272";
|
|
18
|
+
const indicator = "_indicator_5ym48_281";
|
|
19
|
+
const drawerBackdrop = "_drawerBackdrop_5ym48_426";
|
|
20
|
+
const drawer = "_drawer_5ym48_426";
|
|
21
|
+
const drawerHeader = "_drawerHeader_5ym48_460";
|
|
22
|
+
const drawerClose = "_drawerClose_5ym48_469";
|
|
23
|
+
const drawerBody = "_drawerBody_5ym48_534";
|
|
24
|
+
const drawerNav = "_drawerNav_5ym48_555";
|
|
25
|
+
const drawerLink = "_drawerLink_5ym48_560";
|
|
26
|
+
const drawerLinkActive = "_drawerLinkActive_5ym48_612";
|
|
27
|
+
const drawerSectionLabel = "_drawerSectionLabel_5ym48_622";
|
|
28
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_5ym48_652";
|
|
29
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_5ym48_714";
|
|
29
30
|
const styles = {
|
|
30
31
|
root,
|
|
31
|
-
rootVertical,
|
|
32
32
|
list,
|
|
33
|
+
viewport,
|
|
34
|
+
hamburger,
|
|
35
|
+
rootVertical,
|
|
33
36
|
listVertical,
|
|
34
37
|
trigger,
|
|
35
38
|
triggerChevron,
|
|
@@ -43,8 +46,6 @@ const styles = {
|
|
|
43
46
|
linkDescription,
|
|
44
47
|
linkFeatured,
|
|
45
48
|
indicator,
|
|
46
|
-
viewport,
|
|
47
|
-
hamburger,
|
|
48
49
|
drawerBackdrop,
|
|
49
50
|
drawer,
|
|
50
51
|
drawerHeader,
|
|
@@ -52,6 +53,7 @@ const styles = {
|
|
|
52
53
|
drawerBody,
|
|
53
54
|
drawerNav,
|
|
54
55
|
drawerLink,
|
|
56
|
+
drawerLinkActive,
|
|
55
57
|
drawerSectionLabel,
|
|
56
58
|
drawerCollapsibleTrigger,
|
|
57
59
|
drawerCollapsibleContent
|
|
@@ -67,6 +69,7 @@ export {
|
|
|
67
69
|
drawerCollapsibleTrigger,
|
|
68
70
|
drawerHeader,
|
|
69
71
|
drawerLink,
|
|
72
|
+
drawerLinkActive,
|
|
70
73
|
drawerNav,
|
|
71
74
|
drawerSectionLabel,
|
|
72
75
|
hamburger,
|
|
@@ -35,16 +35,17 @@ function composeNavMenuClickHandlers(childHandler, internalHandler) {
|
|
|
35
35
|
internalHandler(event);
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function useIsMobile() {
|
|
38
|
+
function useIsMobile(breakpoint) {
|
|
39
39
|
const [isMobile, setIsMobile] = React__namespace.useState(false);
|
|
40
40
|
React__namespace.useEffect(() => {
|
|
41
41
|
if (typeof window === "undefined") return;
|
|
42
|
-
const
|
|
42
|
+
const maxWidth = breakpoint === "lg" ? 1023 : 767;
|
|
43
|
+
const mq = window.matchMedia(`(max-width: ${maxWidth}px)`);
|
|
43
44
|
setIsMobile(mq.matches);
|
|
44
45
|
const handler = (e) => setIsMobile(e.matches);
|
|
45
46
|
mq.addEventListener("change", handler);
|
|
46
47
|
return () => mq.removeEventListener("change", handler);
|
|
47
|
-
}, []);
|
|
48
|
+
}, [breakpoint]);
|
|
48
49
|
return isMobile;
|
|
49
50
|
}
|
|
50
51
|
function renderNavigationMenuIcon(slot, state) {
|
|
@@ -60,12 +61,13 @@ function NavigationMenuRoot({
|
|
|
60
61
|
delayDuration = 200,
|
|
61
62
|
skipDelayDuration = 300,
|
|
62
63
|
icons,
|
|
64
|
+
mobileBreakpoint = "md",
|
|
63
65
|
className,
|
|
64
66
|
"aria-label": ariaLabel = "Main navigation",
|
|
65
67
|
...htmlProps
|
|
66
68
|
}) {
|
|
67
69
|
const rootId = React__namespace.useId();
|
|
68
|
-
const isMobile = useIsMobile();
|
|
70
|
+
const isMobile = useIsMobile(mobileBreakpoint);
|
|
69
71
|
const state = useNavigationMenu.useNavigationMenu({
|
|
70
72
|
value: controlledValue,
|
|
71
73
|
defaultValue,
|
|
@@ -84,11 +86,21 @@ function NavigationMenuRoot({
|
|
|
84
86
|
}),
|
|
85
87
|
[state, orientation, isMobile, rootId, icons]
|
|
86
88
|
);
|
|
87
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContext.NavigationMenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContext.NavigationMenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
90
|
+
"nav",
|
|
91
|
+
{
|
|
92
|
+
...htmlProps,
|
|
93
|
+
className: classes,
|
|
94
|
+
"aria-label": ariaLabel,
|
|
95
|
+
"data-orientation": orientation,
|
|
96
|
+
"data-mobile": isMobile || void 0,
|
|
97
|
+
children: [
|
|
98
|
+
children,
|
|
99
|
+
isMobile && /* @__PURE__ */ jsxRuntime.jsx(MobileHamburger, {}),
|
|
100
|
+
isMobile && state.mobileOpen && /* @__PURE__ */ jsxRuntime.jsx(MobileDrawer, {})
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
) });
|
|
92
104
|
}
|
|
93
105
|
function NavigationMenuList({ children, className }) {
|
|
94
106
|
const { orientation, triggerOrder, triggerRefs, value } = NavigationMenuContext.useNavigationMenuContext();
|
|
@@ -375,12 +387,13 @@ function NavigationMenuLink({
|
|
|
375
387
|
ctx.setValue("");
|
|
376
388
|
}
|
|
377
389
|
};
|
|
390
|
+
const inMobileDrawer = Boolean((ctx == null ? void 0 : ctx.isMobile) && (ctx == null ? void 0 : ctx.mobileOpen));
|
|
378
391
|
if (isStructured) {
|
|
379
392
|
const classes2 = [
|
|
380
|
-
NavigationMenu_module.default.link,
|
|
381
|
-
NavigationMenu_module.default.linkStructured,
|
|
382
|
-
active && NavigationMenu_module.default.linkActive,
|
|
383
|
-
featured && NavigationMenu_module.default.linkFeatured,
|
|
393
|
+
inMobileDrawer ? NavigationMenu_module.default.drawerLink : NavigationMenu_module.default.link,
|
|
394
|
+
!inMobileDrawer && NavigationMenu_module.default.linkStructured,
|
|
395
|
+
active && (inMobileDrawer ? NavigationMenu_module.default.drawerLinkActive : NavigationMenu_module.default.linkActive),
|
|
396
|
+
!inMobileDrawer && featured && NavigationMenu_module.default.linkFeatured,
|
|
384
397
|
className
|
|
385
398
|
].filter(Boolean).join(" ");
|
|
386
399
|
const linkProps2 = {
|
|
@@ -413,7 +426,11 @@ function NavigationMenuLink({
|
|
|
413
426
|
] })
|
|
414
427
|
] });
|
|
415
428
|
}
|
|
416
|
-
const classes = [
|
|
429
|
+
const classes = [
|
|
430
|
+
inMobileDrawer ? NavigationMenu_module.default.drawerLink : NavigationMenu_module.default.link,
|
|
431
|
+
active && (inMobileDrawer ? NavigationMenu_module.default.drawerLinkActive : NavigationMenu_module.default.linkActive),
|
|
432
|
+
className
|
|
433
|
+
].filter(Boolean).join(" ");
|
|
417
434
|
const linkProps = {
|
|
418
435
|
...htmlProps,
|
|
419
436
|
className: classes,
|
|
@@ -602,7 +619,7 @@ function MobileDrawer() {
|
|
|
602
619
|
}
|
|
603
620
|
)
|
|
604
621
|
] }),
|
|
605
|
-
/* @__PURE__ */ jsxRuntime.jsx(index.ScrollArea, { orientation: "vertical", className: NavigationMenu_module.default.drawerBody, children: ctx.mobileContentChildren ? ctx.mobileContentChildren : /* @__PURE__ */ jsxRuntime.jsx("div", { className: NavigationMenu_module.default.drawerNav, children: autoItems.map(
|
|
622
|
+
/* @__PURE__ */ jsxRuntime.jsx(index.ScrollArea, { orientation: "vertical", showFades: true, className: NavigationMenu_module.default.drawerBody, children: ctx.mobileContentChildren ? ctx.mobileContentChildren : /* @__PURE__ */ jsxRuntime.jsx("div", { className: NavigationMenu_module.default.drawerNav, children: autoItems.map(
|
|
606
623
|
(item) => item.contentChildren ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
607
624
|
MobileCollapsibleSection,
|
|
608
625
|
{
|