@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,122 +1,132 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const text = "
|
|
4
|
-
const variantSectionLabel = "_variant-section-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
3
|
+
const text = "_text_1bltq_1";
|
|
4
|
+
const variantSectionLabel = "_variant-section-label_1bltq_7";
|
|
5
|
+
const variantEyebrow = "_variant-eyebrow_1bltq_15";
|
|
6
|
+
const roleCaption = "_role-caption_1bltq_27";
|
|
7
|
+
const roleUiCompact = "_role-ui-compact_1bltq_35";
|
|
8
|
+
const roleUiStandard = "_role-ui-standard_1bltq_43";
|
|
9
|
+
const roleBodyCompact = "_role-body-compact_1bltq_51";
|
|
10
|
+
const roleBodyRelaxed = "_role-body-relaxed_1bltq_59";
|
|
11
|
+
const roleTitleSm = "_role-title-sm_1bltq_67";
|
|
12
|
+
const roleTitleMd = "_role-title-md_1bltq_75";
|
|
13
|
+
const roleTitleLg = "_role-title-lg_1bltq_83";
|
|
14
|
+
const roleDisplay = "_role-display_1bltq_91";
|
|
15
|
+
const roleCode = "_role-code_1bltq_99";
|
|
16
|
+
const size2Xs = "_size-2xs_1bltq_107";
|
|
17
|
+
const sizeXs = "_size-xs_1bltq_111";
|
|
18
|
+
const sizeSm = "_size-sm_1bltq_115";
|
|
19
|
+
const sizeBase = "_size-base_1bltq_119";
|
|
20
|
+
const sizeMd = "_size-md_1bltq_123";
|
|
21
|
+
const sizeLg = "_size-lg_1bltq_127";
|
|
22
|
+
const sizeXl = "_size-xl_1bltq_131";
|
|
23
|
+
const size2Xl = "_size-2xl_1bltq_135";
|
|
24
|
+
const size3Xl = "_size-3xl_1bltq_139";
|
|
25
|
+
const size4Xl = "_size-4xl_1bltq_145";
|
|
26
|
+
const weightNormal = "_weight-normal_1bltq_151";
|
|
27
|
+
const weightMedium = "_weight-medium_1bltq_155";
|
|
28
|
+
const weightSemibold = "_weight-semibold_1bltq_159";
|
|
29
|
+
const weightBold = "_weight-bold_1bltq_163";
|
|
30
|
+
const colorPrimary = "_color-primary_1bltq_167";
|
|
31
|
+
const colorSecondary = "_color-secondary_1bltq_171";
|
|
32
|
+
const colorTertiary = "_color-tertiary_1bltq_175";
|
|
33
|
+
const colorMuted = "_color-muted_1bltq_176";
|
|
34
|
+
const colorAccent = "_color-accent_1bltq_180";
|
|
35
|
+
const colorSuccess = "_color-success_1bltq_184";
|
|
36
|
+
const colorWarning = "_color-warning_1bltq_188";
|
|
37
|
+
const colorDanger = "_color-danger_1bltq_192";
|
|
38
|
+
const mono = "_mono_1bltq_196";
|
|
39
|
+
const truncate = "_truncate_1bltq_200";
|
|
40
|
+
const lineClamp = "_lineClamp_1bltq_206";
|
|
41
|
+
const trackingNormal = "_tracking-normal_1bltq_214";
|
|
42
|
+
const trackingTight = "_tracking-tight_1bltq_218";
|
|
43
|
+
const trackingTighter = "_tracking-tighter_1bltq_222";
|
|
44
|
+
const trackingTightest = "_tracking-tightest_1bltq_226";
|
|
45
|
+
const tabularNums = "_tabularNums_1bltq_230";
|
|
43
46
|
const styles = {
|
|
44
47
|
text,
|
|
45
|
-
"variant-section-label": "_variant-section-
|
|
48
|
+
"variant-section-label": "_variant-section-label_1bltq_7",
|
|
46
49
|
variantSectionLabel,
|
|
47
|
-
"
|
|
50
|
+
"variant-eyebrow": "_variant-eyebrow_1bltq_15",
|
|
51
|
+
variantEyebrow,
|
|
52
|
+
"role-caption": "_role-caption_1bltq_27",
|
|
48
53
|
roleCaption,
|
|
49
|
-
"role-ui-compact": "_role-ui-
|
|
54
|
+
"role-ui-compact": "_role-ui-compact_1bltq_35",
|
|
50
55
|
roleUiCompact,
|
|
51
|
-
"role-ui-standard": "_role-ui-
|
|
56
|
+
"role-ui-standard": "_role-ui-standard_1bltq_43",
|
|
52
57
|
roleUiStandard,
|
|
53
|
-
"role-body-compact": "_role-body-
|
|
58
|
+
"role-body-compact": "_role-body-compact_1bltq_51",
|
|
54
59
|
roleBodyCompact,
|
|
55
|
-
"role-body-relaxed": "_role-body-
|
|
60
|
+
"role-body-relaxed": "_role-body-relaxed_1bltq_59",
|
|
56
61
|
roleBodyRelaxed,
|
|
57
|
-
"role-title-sm": "_role-title-
|
|
62
|
+
"role-title-sm": "_role-title-sm_1bltq_67",
|
|
58
63
|
roleTitleSm,
|
|
59
|
-
"role-title-md": "_role-title-
|
|
64
|
+
"role-title-md": "_role-title-md_1bltq_75",
|
|
60
65
|
roleTitleMd,
|
|
61
|
-
"role-title-lg": "_role-title-
|
|
66
|
+
"role-title-lg": "_role-title-lg_1bltq_83",
|
|
62
67
|
roleTitleLg,
|
|
63
|
-
"role-
|
|
68
|
+
"role-display": "_role-display_1bltq_91",
|
|
69
|
+
roleDisplay,
|
|
70
|
+
"role-code": "_role-code_1bltq_99",
|
|
64
71
|
roleCode,
|
|
65
|
-
"size-2xs": "_size-
|
|
72
|
+
"size-2xs": "_size-2xs_1bltq_107",
|
|
66
73
|
size2Xs,
|
|
67
|
-
"size-xs": "_size-
|
|
74
|
+
"size-xs": "_size-xs_1bltq_111",
|
|
68
75
|
sizeXs,
|
|
69
|
-
"size-sm": "_size-
|
|
76
|
+
"size-sm": "_size-sm_1bltq_115",
|
|
70
77
|
sizeSm,
|
|
71
|
-
"size-base": "_size-
|
|
78
|
+
"size-base": "_size-base_1bltq_119",
|
|
72
79
|
sizeBase,
|
|
73
|
-
"size-md": "_size-
|
|
80
|
+
"size-md": "_size-md_1bltq_123",
|
|
74
81
|
sizeMd,
|
|
75
|
-
"size-lg": "_size-
|
|
82
|
+
"size-lg": "_size-lg_1bltq_127",
|
|
76
83
|
sizeLg,
|
|
77
|
-
"size-xl": "_size-
|
|
84
|
+
"size-xl": "_size-xl_1bltq_131",
|
|
78
85
|
sizeXl,
|
|
79
|
-
"size-2xl": "_size-
|
|
86
|
+
"size-2xl": "_size-2xl_1bltq_135",
|
|
80
87
|
size2Xl,
|
|
81
|
-
"size-3xl": "_size-
|
|
88
|
+
"size-3xl": "_size-3xl_1bltq_139",
|
|
82
89
|
size3Xl,
|
|
83
|
-
"size-4xl": "_size-
|
|
90
|
+
"size-4xl": "_size-4xl_1bltq_145",
|
|
84
91
|
size4Xl,
|
|
85
|
-
"weight-normal": "_weight-
|
|
92
|
+
"weight-normal": "_weight-normal_1bltq_151",
|
|
86
93
|
weightNormal,
|
|
87
|
-
"weight-medium": "_weight-
|
|
94
|
+
"weight-medium": "_weight-medium_1bltq_155",
|
|
88
95
|
weightMedium,
|
|
89
|
-
"weight-semibold": "_weight-
|
|
96
|
+
"weight-semibold": "_weight-semibold_1bltq_159",
|
|
90
97
|
weightSemibold,
|
|
91
|
-
"weight-bold": "_weight-
|
|
98
|
+
"weight-bold": "_weight-bold_1bltq_163",
|
|
92
99
|
weightBold,
|
|
93
|
-
"color-primary": "_color-
|
|
100
|
+
"color-primary": "_color-primary_1bltq_167",
|
|
94
101
|
colorPrimary,
|
|
95
|
-
"color-secondary": "_color-
|
|
102
|
+
"color-secondary": "_color-secondary_1bltq_171",
|
|
96
103
|
colorSecondary,
|
|
97
|
-
"color-tertiary": "_color-
|
|
104
|
+
"color-tertiary": "_color-tertiary_1bltq_175",
|
|
98
105
|
colorTertiary,
|
|
99
|
-
"color-muted": "_color-
|
|
106
|
+
"color-muted": "_color-muted_1bltq_176",
|
|
100
107
|
colorMuted,
|
|
101
|
-
"color-
|
|
108
|
+
"color-accent": "_color-accent_1bltq_180",
|
|
109
|
+
colorAccent,
|
|
110
|
+
"color-success": "_color-success_1bltq_184",
|
|
102
111
|
colorSuccess,
|
|
103
|
-
"color-warning": "_color-
|
|
112
|
+
"color-warning": "_color-warning_1bltq_188",
|
|
104
113
|
colorWarning,
|
|
105
|
-
"color-danger": "_color-
|
|
114
|
+
"color-danger": "_color-danger_1bltq_192",
|
|
106
115
|
colorDanger,
|
|
107
116
|
mono,
|
|
108
117
|
truncate,
|
|
109
118
|
lineClamp,
|
|
110
|
-
"tracking-normal": "_tracking-
|
|
119
|
+
"tracking-normal": "_tracking-normal_1bltq_214",
|
|
111
120
|
trackingNormal,
|
|
112
|
-
"tracking-tight": "_tracking-
|
|
121
|
+
"tracking-tight": "_tracking-tight_1bltq_218",
|
|
113
122
|
trackingTight,
|
|
114
|
-
"tracking-tighter": "_tracking-
|
|
123
|
+
"tracking-tighter": "_tracking-tighter_1bltq_222",
|
|
115
124
|
trackingTighter,
|
|
116
|
-
"tracking-tightest": "_tracking-
|
|
125
|
+
"tracking-tightest": "_tracking-tightest_1bltq_226",
|
|
117
126
|
trackingTightest,
|
|
118
127
|
tabularNums
|
|
119
128
|
};
|
|
129
|
+
exports.colorAccent = colorAccent;
|
|
120
130
|
exports.colorDanger = colorDanger;
|
|
121
131
|
exports.colorMuted = colorMuted;
|
|
122
132
|
exports.colorPrimary = colorPrimary;
|
|
@@ -131,6 +141,7 @@ exports.roleBodyCompact = roleBodyCompact;
|
|
|
131
141
|
exports.roleBodyRelaxed = roleBodyRelaxed;
|
|
132
142
|
exports.roleCaption = roleCaption;
|
|
133
143
|
exports.roleCode = roleCode;
|
|
144
|
+
exports.roleDisplay = roleDisplay;
|
|
134
145
|
exports.roleTitleLg = roleTitleLg;
|
|
135
146
|
exports.roleTitleMd = roleTitleMd;
|
|
136
147
|
exports.roleTitleSm = roleTitleSm;
|
|
@@ -153,6 +164,7 @@ exports.trackingTight = trackingTight;
|
|
|
153
164
|
exports.trackingTighter = trackingTighter;
|
|
154
165
|
exports.trackingTightest = trackingTightest;
|
|
155
166
|
exports.truncate = truncate;
|
|
167
|
+
exports.variantEyebrow = variantEyebrow;
|
|
156
168
|
exports.variantSectionLabel = variantSectionLabel;
|
|
157
169
|
exports.weightBold = weightBold;
|
|
158
170
|
exports.weightMedium = weightMedium;
|
|
@@ -1,121 +1,131 @@
|
|
|
1
|
-
const text = "
|
|
2
|
-
const variantSectionLabel = "_variant-section-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
1
|
+
const text = "_text_1bltq_1";
|
|
2
|
+
const variantSectionLabel = "_variant-section-label_1bltq_7";
|
|
3
|
+
const variantEyebrow = "_variant-eyebrow_1bltq_15";
|
|
4
|
+
const roleCaption = "_role-caption_1bltq_27";
|
|
5
|
+
const roleUiCompact = "_role-ui-compact_1bltq_35";
|
|
6
|
+
const roleUiStandard = "_role-ui-standard_1bltq_43";
|
|
7
|
+
const roleBodyCompact = "_role-body-compact_1bltq_51";
|
|
8
|
+
const roleBodyRelaxed = "_role-body-relaxed_1bltq_59";
|
|
9
|
+
const roleTitleSm = "_role-title-sm_1bltq_67";
|
|
10
|
+
const roleTitleMd = "_role-title-md_1bltq_75";
|
|
11
|
+
const roleTitleLg = "_role-title-lg_1bltq_83";
|
|
12
|
+
const roleDisplay = "_role-display_1bltq_91";
|
|
13
|
+
const roleCode = "_role-code_1bltq_99";
|
|
14
|
+
const size2Xs = "_size-2xs_1bltq_107";
|
|
15
|
+
const sizeXs = "_size-xs_1bltq_111";
|
|
16
|
+
const sizeSm = "_size-sm_1bltq_115";
|
|
17
|
+
const sizeBase = "_size-base_1bltq_119";
|
|
18
|
+
const sizeMd = "_size-md_1bltq_123";
|
|
19
|
+
const sizeLg = "_size-lg_1bltq_127";
|
|
20
|
+
const sizeXl = "_size-xl_1bltq_131";
|
|
21
|
+
const size2Xl = "_size-2xl_1bltq_135";
|
|
22
|
+
const size3Xl = "_size-3xl_1bltq_139";
|
|
23
|
+
const size4Xl = "_size-4xl_1bltq_145";
|
|
24
|
+
const weightNormal = "_weight-normal_1bltq_151";
|
|
25
|
+
const weightMedium = "_weight-medium_1bltq_155";
|
|
26
|
+
const weightSemibold = "_weight-semibold_1bltq_159";
|
|
27
|
+
const weightBold = "_weight-bold_1bltq_163";
|
|
28
|
+
const colorPrimary = "_color-primary_1bltq_167";
|
|
29
|
+
const colorSecondary = "_color-secondary_1bltq_171";
|
|
30
|
+
const colorTertiary = "_color-tertiary_1bltq_175";
|
|
31
|
+
const colorMuted = "_color-muted_1bltq_176";
|
|
32
|
+
const colorAccent = "_color-accent_1bltq_180";
|
|
33
|
+
const colorSuccess = "_color-success_1bltq_184";
|
|
34
|
+
const colorWarning = "_color-warning_1bltq_188";
|
|
35
|
+
const colorDanger = "_color-danger_1bltq_192";
|
|
36
|
+
const mono = "_mono_1bltq_196";
|
|
37
|
+
const truncate = "_truncate_1bltq_200";
|
|
38
|
+
const lineClamp = "_lineClamp_1bltq_206";
|
|
39
|
+
const trackingNormal = "_tracking-normal_1bltq_214";
|
|
40
|
+
const trackingTight = "_tracking-tight_1bltq_218";
|
|
41
|
+
const trackingTighter = "_tracking-tighter_1bltq_222";
|
|
42
|
+
const trackingTightest = "_tracking-tightest_1bltq_226";
|
|
43
|
+
const tabularNums = "_tabularNums_1bltq_230";
|
|
41
44
|
const styles = {
|
|
42
45
|
text,
|
|
43
|
-
"variant-section-label": "_variant-section-
|
|
46
|
+
"variant-section-label": "_variant-section-label_1bltq_7",
|
|
44
47
|
variantSectionLabel,
|
|
45
|
-
"
|
|
48
|
+
"variant-eyebrow": "_variant-eyebrow_1bltq_15",
|
|
49
|
+
variantEyebrow,
|
|
50
|
+
"role-caption": "_role-caption_1bltq_27",
|
|
46
51
|
roleCaption,
|
|
47
|
-
"role-ui-compact": "_role-ui-
|
|
52
|
+
"role-ui-compact": "_role-ui-compact_1bltq_35",
|
|
48
53
|
roleUiCompact,
|
|
49
|
-
"role-ui-standard": "_role-ui-
|
|
54
|
+
"role-ui-standard": "_role-ui-standard_1bltq_43",
|
|
50
55
|
roleUiStandard,
|
|
51
|
-
"role-body-compact": "_role-body-
|
|
56
|
+
"role-body-compact": "_role-body-compact_1bltq_51",
|
|
52
57
|
roleBodyCompact,
|
|
53
|
-
"role-body-relaxed": "_role-body-
|
|
58
|
+
"role-body-relaxed": "_role-body-relaxed_1bltq_59",
|
|
54
59
|
roleBodyRelaxed,
|
|
55
|
-
"role-title-sm": "_role-title-
|
|
60
|
+
"role-title-sm": "_role-title-sm_1bltq_67",
|
|
56
61
|
roleTitleSm,
|
|
57
|
-
"role-title-md": "_role-title-
|
|
62
|
+
"role-title-md": "_role-title-md_1bltq_75",
|
|
58
63
|
roleTitleMd,
|
|
59
|
-
"role-title-lg": "_role-title-
|
|
64
|
+
"role-title-lg": "_role-title-lg_1bltq_83",
|
|
60
65
|
roleTitleLg,
|
|
61
|
-
"role-
|
|
66
|
+
"role-display": "_role-display_1bltq_91",
|
|
67
|
+
roleDisplay,
|
|
68
|
+
"role-code": "_role-code_1bltq_99",
|
|
62
69
|
roleCode,
|
|
63
|
-
"size-2xs": "_size-
|
|
70
|
+
"size-2xs": "_size-2xs_1bltq_107",
|
|
64
71
|
size2Xs,
|
|
65
|
-
"size-xs": "_size-
|
|
72
|
+
"size-xs": "_size-xs_1bltq_111",
|
|
66
73
|
sizeXs,
|
|
67
|
-
"size-sm": "_size-
|
|
74
|
+
"size-sm": "_size-sm_1bltq_115",
|
|
68
75
|
sizeSm,
|
|
69
|
-
"size-base": "_size-
|
|
76
|
+
"size-base": "_size-base_1bltq_119",
|
|
70
77
|
sizeBase,
|
|
71
|
-
"size-md": "_size-
|
|
78
|
+
"size-md": "_size-md_1bltq_123",
|
|
72
79
|
sizeMd,
|
|
73
|
-
"size-lg": "_size-
|
|
80
|
+
"size-lg": "_size-lg_1bltq_127",
|
|
74
81
|
sizeLg,
|
|
75
|
-
"size-xl": "_size-
|
|
82
|
+
"size-xl": "_size-xl_1bltq_131",
|
|
76
83
|
sizeXl,
|
|
77
|
-
"size-2xl": "_size-
|
|
84
|
+
"size-2xl": "_size-2xl_1bltq_135",
|
|
78
85
|
size2Xl,
|
|
79
|
-
"size-3xl": "_size-
|
|
86
|
+
"size-3xl": "_size-3xl_1bltq_139",
|
|
80
87
|
size3Xl,
|
|
81
|
-
"size-4xl": "_size-
|
|
88
|
+
"size-4xl": "_size-4xl_1bltq_145",
|
|
82
89
|
size4Xl,
|
|
83
|
-
"weight-normal": "_weight-
|
|
90
|
+
"weight-normal": "_weight-normal_1bltq_151",
|
|
84
91
|
weightNormal,
|
|
85
|
-
"weight-medium": "_weight-
|
|
92
|
+
"weight-medium": "_weight-medium_1bltq_155",
|
|
86
93
|
weightMedium,
|
|
87
|
-
"weight-semibold": "_weight-
|
|
94
|
+
"weight-semibold": "_weight-semibold_1bltq_159",
|
|
88
95
|
weightSemibold,
|
|
89
|
-
"weight-bold": "_weight-
|
|
96
|
+
"weight-bold": "_weight-bold_1bltq_163",
|
|
90
97
|
weightBold,
|
|
91
|
-
"color-primary": "_color-
|
|
98
|
+
"color-primary": "_color-primary_1bltq_167",
|
|
92
99
|
colorPrimary,
|
|
93
|
-
"color-secondary": "_color-
|
|
100
|
+
"color-secondary": "_color-secondary_1bltq_171",
|
|
94
101
|
colorSecondary,
|
|
95
|
-
"color-tertiary": "_color-
|
|
102
|
+
"color-tertiary": "_color-tertiary_1bltq_175",
|
|
96
103
|
colorTertiary,
|
|
97
|
-
"color-muted": "_color-
|
|
104
|
+
"color-muted": "_color-muted_1bltq_176",
|
|
98
105
|
colorMuted,
|
|
99
|
-
"color-
|
|
106
|
+
"color-accent": "_color-accent_1bltq_180",
|
|
107
|
+
colorAccent,
|
|
108
|
+
"color-success": "_color-success_1bltq_184",
|
|
100
109
|
colorSuccess,
|
|
101
|
-
"color-warning": "_color-
|
|
110
|
+
"color-warning": "_color-warning_1bltq_188",
|
|
102
111
|
colorWarning,
|
|
103
|
-
"color-danger": "_color-
|
|
112
|
+
"color-danger": "_color-danger_1bltq_192",
|
|
104
113
|
colorDanger,
|
|
105
114
|
mono,
|
|
106
115
|
truncate,
|
|
107
116
|
lineClamp,
|
|
108
|
-
"tracking-normal": "_tracking-
|
|
117
|
+
"tracking-normal": "_tracking-normal_1bltq_214",
|
|
109
118
|
trackingNormal,
|
|
110
|
-
"tracking-tight": "_tracking-
|
|
119
|
+
"tracking-tight": "_tracking-tight_1bltq_218",
|
|
111
120
|
trackingTight,
|
|
112
|
-
"tracking-tighter": "_tracking-
|
|
121
|
+
"tracking-tighter": "_tracking-tighter_1bltq_222",
|
|
113
122
|
trackingTighter,
|
|
114
|
-
"tracking-tightest": "_tracking-
|
|
123
|
+
"tracking-tightest": "_tracking-tightest_1bltq_226",
|
|
115
124
|
trackingTightest,
|
|
116
125
|
tabularNums
|
|
117
126
|
};
|
|
118
127
|
export {
|
|
128
|
+
colorAccent,
|
|
119
129
|
colorDanger,
|
|
120
130
|
colorMuted,
|
|
121
131
|
colorPrimary,
|
|
@@ -130,6 +140,7 @@ export {
|
|
|
130
140
|
roleBodyRelaxed,
|
|
131
141
|
roleCaption,
|
|
132
142
|
roleCode,
|
|
143
|
+
roleDisplay,
|
|
133
144
|
roleTitleLg,
|
|
134
145
|
roleTitleMd,
|
|
135
146
|
roleTitleSm,
|
|
@@ -152,6 +163,7 @@ export {
|
|
|
152
163
|
trackingTighter,
|
|
153
164
|
trackingTightest,
|
|
154
165
|
truncate,
|
|
166
|
+
variantEyebrow,
|
|
155
167
|
variantSectionLabel,
|
|
156
168
|
weightBold,
|
|
157
169
|
weightMedium,
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const Text_module = require("./Text.module.scss.cjs");
|
|
6
|
+
const env = require("../../utils/env.cjs");
|
|
6
7
|
function _interopNamespaceDefault(e) {
|
|
7
8
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
9
|
if (e) {
|
|
@@ -20,48 +21,55 @@ function _interopNamespaceDefault(e) {
|
|
|
20
21
|
return Object.freeze(n);
|
|
21
22
|
}
|
|
22
23
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
-
const TextRoot = React__namespace.forwardRef(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
const classes = [
|
|
48
|
-
Text_module.default.text,
|
|
49
|
-
role && Text_module.default[`role-${role}`],
|
|
50
|
-
!role && variant && Text_module.default[`variant-${variant}`],
|
|
51
|
-
!role && size && Text_module.default[`size-${size}`],
|
|
52
|
-
!role && weight && Text_module.default[`weight-${weight}`],
|
|
53
|
-
color && Text_module.default[`color-${color}`],
|
|
54
|
-
!role && font === "mono" && Text_module.default.mono,
|
|
55
|
-
truncate && Text_module.default.truncate,
|
|
56
|
-
lineClamp && Text_module.default.lineClamp,
|
|
57
|
-
!role && letterSpacing && Text_module.default[`tracking-${letterSpacing}`],
|
|
58
|
-
tabularNums && Text_module.default.tabularNums,
|
|
59
|
-
className
|
|
60
|
-
].filter(Boolean).join(" ");
|
|
61
|
-
const lineClampStyle = lineClamp ? { "--fui-line-clamp": lineClamp, ...style } : style;
|
|
62
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Component, { ref, className: classes, style: lineClampStyle, ...htmlProps, children });
|
|
24
|
+
const TextRoot = React__namespace.forwardRef(function Text2({
|
|
25
|
+
children,
|
|
26
|
+
as: Component = "span",
|
|
27
|
+
role,
|
|
28
|
+
variant,
|
|
29
|
+
size,
|
|
30
|
+
weight,
|
|
31
|
+
color,
|
|
32
|
+
font,
|
|
33
|
+
truncate,
|
|
34
|
+
lineClamp,
|
|
35
|
+
letterSpacing,
|
|
36
|
+
tabularNums,
|
|
37
|
+
className,
|
|
38
|
+
style,
|
|
39
|
+
...htmlProps
|
|
40
|
+
}, ref) {
|
|
41
|
+
const ignoredLegacyProps = role ? [size, variant, weight, font, letterSpacing].some((value) => value !== void 0) : false;
|
|
42
|
+
if (!env.isProductionBuild() && ignoredLegacyProps) {
|
|
43
|
+
console.warn(
|
|
44
|
+
"[Text] Semantic role takes precedence over size, variant, weight, font, and letterSpacing."
|
|
45
|
+
);
|
|
63
46
|
}
|
|
64
|
-
|
|
47
|
+
const classes = [
|
|
48
|
+
Text_module.default.text,
|
|
49
|
+
role && Text_module.default[`role-${role}`],
|
|
50
|
+
!role && variant && Text_module.default[`variant-${variant}`],
|
|
51
|
+
!role && size && Text_module.default[`size-${size}`],
|
|
52
|
+
!role && weight && Text_module.default[`weight-${weight}`],
|
|
53
|
+
color && Text_module.default[`color-${color}`],
|
|
54
|
+
!role && font === "mono" && Text_module.default.mono,
|
|
55
|
+
truncate && Text_module.default.truncate,
|
|
56
|
+
lineClamp && Text_module.default.lineClamp,
|
|
57
|
+
!role && letterSpacing && Text_module.default[`tracking-${letterSpacing}`],
|
|
58
|
+
tabularNums && Text_module.default.tabularNums,
|
|
59
|
+
className
|
|
60
|
+
].filter(Boolean).join(" ");
|
|
61
|
+
const lineClampStyle = lineClamp ? { "--fui-line-clamp": lineClamp, ...style } : style;
|
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
63
|
+
Component,
|
|
64
|
+
{
|
|
65
|
+
ref,
|
|
66
|
+
className: classes,
|
|
67
|
+
style: lineClampStyle,
|
|
68
|
+
...htmlProps,
|
|
69
|
+
children
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
});
|
|
65
73
|
const Text = Object.assign(TextRoot, {
|
|
66
74
|
Root: TextRoot
|
|
67
75
|
});
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Typography component for rendering text with consistent styling.
|
|
4
4
|
* @see https://usefragments.com/components/text
|
|
5
5
|
*/
|
|
6
|
-
export type TextRole =
|
|
7
|
-
export type TextSize =
|
|
8
|
-
export type TextWeight =
|
|
9
|
-
export type TextFont =
|
|
10
|
-
export type TextTracking =
|
|
11
|
-
type TextSharedProps = Omit<React.HTMLAttributes<HTMLElement>,
|
|
6
|
+
export type TextRole = "caption" | "ui-compact" | "ui-standard" | "body-compact" | "body-relaxed" | "title-sm" | "title-md" | "title-lg" | "display" | "code";
|
|
7
|
+
export type TextSize = "2xs" | "xs" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
8
|
+
export type TextWeight = "normal" | "medium" | "semibold" | "bold";
|
|
9
|
+
export type TextFont = "sans" | "mono";
|
|
10
|
+
export type TextTracking = "normal" | "tight" | "tighter" | "tightest";
|
|
11
|
+
type TextSharedProps = Omit<React.HTMLAttributes<HTMLElement>, "color" | "role"> & {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
/** HTML element to render.
|
|
14
14
|
* @default "span" */
|
|
15
|
-
as?:
|
|
16
|
-
/** Text color. `"muted"` is an alias for `"tertiary"`. `"
|
|
15
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "label" | "div" | "strong" | "em" | "small" | "mark" | "del" | "ins" | "sub" | "sup" | "time" | "address" | "blockquote" | "cite" | "code" | "abbr";
|
|
16
|
+
/** Text color. `"muted"` is an alias for `"tertiary"`. `"accent"` is the brand
|
|
17
|
+
* spend for one word inside a line (a repo name). `"success" | "warning" | "danger"`
|
|
17
18
|
* are for a run of text that carries a state on its own; prefer Badge or Alert when the
|
|
18
19
|
* state deserves a container.
|
|
19
20
|
* @default "primary" */
|
|
20
|
-
color?:
|
|
21
|
+
color?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "success" | "warning" | "danger";
|
|
21
22
|
/** Truncate text with ellipsis when it overflows */
|
|
22
23
|
truncate?: boolean;
|
|
23
24
|
/** Number of lines before truncating (requires truncate=true) */
|
|
@@ -40,7 +41,7 @@ type TextRoleProps = {
|
|
|
40
41
|
type TextLegacyScaleProps = {
|
|
41
42
|
role?: never;
|
|
42
43
|
size?: TextSize;
|
|
43
|
-
variant?:
|
|
44
|
+
variant?: "section-label" | "eyebrow";
|
|
44
45
|
weight?: TextWeight;
|
|
45
46
|
font?: TextFont;
|
|
46
47
|
letterSpacing?: TextTracking;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,YAAY,GACZ,aAAa,GACb,cAAc,GACd,cAAc,GACd,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,MAAM,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACjG,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvE,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IACjF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;yBACqB;IACrB,EAAE,CAAC,EACC,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,SAAS,GACT,YAAY,GACZ,MAAM,GACN,MAAM,GACN,MAAM,CAAC;IACX;;;;4BAIwB;IACxB,KAAK,CAAC,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;4EAEwE;IACxE;mEAC+D;IAC/D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,CAAC,aAAa,GAAG,oBAAoB,CAAC,CAAC;AAiEjF,eAAO,MAAM,IAAI;;CAEf,CAAC"}
|