@luxonis/common-fe-components 1.18.2 → 1.19.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/dist/components/custom/Alert.d.ts +0 -1
- package/dist/components/custom/Alert.d.ts.map +1 -1
- package/dist/components/custom/Badge.d.ts +0 -1
- package/dist/components/custom/Badge.d.ts.map +1 -1
- package/dist/components/custom/Button.d.ts +2 -2
- package/dist/components/custom/CardList.d.ts.map +1 -1
- package/dist/components/custom/CardList.js +1 -1
- package/dist/components/custom/CardList.js.map +1 -1
- package/dist/components/custom/Checkbox.d.ts.map +1 -1
- package/dist/components/custom/Command.d.ts.map +1 -1
- package/dist/components/custom/Command.js.map +1 -1
- package/dist/components/custom/DropdownMenu.d.ts +819 -915
- package/dist/components/custom/DropdownMenu.d.ts.map +1 -1
- package/dist/components/custom/Dropzone.d.ts +1 -1
- package/dist/components/custom/Dropzone.d.ts.map +1 -1
- package/dist/components/custom/EmptyView.d.ts +0 -1
- package/dist/components/custom/EmptyView.d.ts.map +1 -1
- package/dist/components/custom/ErrorView.d.ts.map +1 -1
- package/dist/components/custom/FilterDropdown.d.ts.map +1 -1
- package/dist/components/custom/Form.d.ts.map +1 -1
- package/dist/components/custom/Grid.d.ts +1 -0
- package/dist/components/custom/Grid.d.ts.map +1 -1
- package/dist/components/custom/Grid.js +11 -3
- package/dist/components/custom/Grid.js.map +1 -1
- package/dist/components/custom/Icon.d.ts +0 -1
- package/dist/components/custom/Icon.d.ts.map +1 -1
- package/dist/components/custom/IconHelp.d.ts +0 -1
- package/dist/components/custom/IconHelp.d.ts.map +1 -1
- package/dist/components/custom/KpiDisplay.d.ts +0 -1
- package/dist/components/custom/KpiDisplay.d.ts.map +1 -1
- package/dist/components/custom/Markdown.d.ts +0 -1
- package/dist/components/custom/Markdown.d.ts.map +1 -1
- package/dist/components/custom/Modal.d.ts +2 -2
- package/dist/components/custom/Modal.d.ts.map +1 -1
- package/dist/components/custom/ProgressTicker.d.ts +0 -1
- package/dist/components/custom/ProgressTicker.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +1642 -1834
- package/dist/components/custom/RadioGroup.d.ts.map +1 -1
- package/dist/components/custom/SelectCards.d.ts.map +1 -1
- package/dist/components/custom/Slider.d.ts +1635 -1827
- package/dist/components/custom/Slider.d.ts.map +1 -1
- package/dist/components/custom/SourceCode.d.ts +0 -1
- package/dist/components/custom/SourceCode.d.ts.map +1 -1
- package/dist/components/custom/StatusBar.d.ts +0 -1
- package/dist/components/custom/StatusBar.d.ts.map +1 -1
- package/dist/components/custom/Stepper.d.ts.map +1 -1
- package/dist/components/custom/Text.d.ts.map +1 -1
- package/dist/components/custom/TimePicker.d.ts +0 -1
- package/dist/components/custom/TimePicker.d.ts.map +1 -1
- package/dist/components/custom/Toast.d.ts.map +1 -1
- package/dist/components/custom/Toast.js +1 -1
- package/dist/components/custom/Toast.js.map +1 -1
- package/dist/components/custom/Tooltip.d.ts.map +1 -1
- package/dist/components/custom/Tooltip.js.map +1 -1
- package/dist/components/custom/TurnstileWidget.d.ts +0 -1
- package/dist/components/custom/TurnstileWidget.d.ts.map +1 -1
- package/dist/components/custom/VideoPlayer.d.ts.map +1 -1
- package/dist/components/custom/devices/devices.d.ts.map +1 -1
- package/dist/components/shadow-panda/Accordion.js +1 -1
- package/dist/components/shadow-panda/Accordion.js.map +1 -1
- package/dist/components/shadow-panda/Avatar.d.ts +0 -1
- package/dist/components/shadow-panda/Avatar.d.ts.map +1 -1
- package/dist/components/shadow-panda/Avatar.js +1 -1
- package/dist/components/shadow-panda/Avatar.js.map +1 -1
- package/dist/components/shadow-panda/DropdownMenu.d.ts +3 -3
- package/dist/components/shadow-panda/DropdownMenu.d.ts.map +1 -1
- package/dist/components/shadow-panda/DropdownMenu.js +1 -1
- package/dist/components/shadow-panda/DropdownMenu.js.map +1 -1
- package/dist/components/shadow-panda/Form.d.ts +1 -1
- package/dist/components/shadow-panda/Form.d.ts.map +1 -1
- package/dist/components/shadow-panda/Tabs.d.ts +0 -1
- package/dist/components/shadow-panda/Tabs.d.ts.map +1 -1
- package/dist/components/shadow-panda/Tabs.js +1 -1
- package/dist/components/shadow-panda/Tabs.js.map +1 -1
- package/dist/components/shadow-panda/_Alert.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Button.d.ts +1 -1
- package/dist/components/shadow-panda/_Button.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Command.d.ts +23 -23
- package/dist/components/shadow-panda/_Command.js +1 -1
- package/dist/components/shadow-panda/_Command.js.map +1 -1
- package/dist/components/shadow-panda/_Dialog.js +1 -1
- package/dist/components/shadow-panda/_Dialog.js.map +1 -1
- package/dist/components/shadow-panda/_RadioGroup.js +1 -1
- package/dist/components/shadow-panda/_RadioGroup.js.map +1 -1
- package/dist/components/shadow-panda/_Select.js +1 -1
- package/dist/components/shadow-panda/_Select.js.map +1 -1
- package/dist/components/shadow-panda/_Slider.d.ts +6 -6
- package/dist/components/shadow-panda/_Slider.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Toast.d.ts +0 -1
- package/dist/components/shadow-panda/_Toast.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Tooltip.d.ts +0 -1
- package/dist/components/shadow-panda/_Tooltip.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Tooltip.js +1 -1
- package/dist/components/shadow-panda/_Tooltip.js.map +1 -1
- package/dist/components/skeletons/Button.d.ts.map +1 -1
- package/dist/components/skeletons/Grid.d.ts +5 -5
- package/dist/components/skeletons/Grid.d.ts.map +1 -1
- package/dist/components/skeletons/Grid.js +9 -12
- package/dist/components/skeletons/Grid.js.map +1 -1
- package/dist/components/skeletons/Input.d.ts.map +1 -1
- package/dist/components/skeletons/Table.d.ts.map +1 -1
- package/dist/components/skeletons/Textarea.d.ts.map +1 -1
- package/dist/hooks/dropzone.d.ts.map +1 -1
- package/dist/hooks/modal.d.ts.map +1 -1
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-translations.d.ts +0 -1
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/icons/style-provider.d.ts.map +1 -1
- package/dist/icons/svg/AccessDenied.d.ts +0 -1
- package/dist/icons/svg/AccessDenied.d.ts.map +1 -1
- package/dist/icons/svg/Empty.d.ts +0 -1
- package/dist/icons/svg/Empty.d.ts.map +1 -1
- package/dist/icons/svg/Error.d.ts +0 -1
- package/dist/icons/svg/Error.d.ts.map +1 -1
- package/dist/icons/svg/Logo.d.ts +1 -1
- package/dist/icons/svg/Logo.d.ts.map +1 -1
- package/dist/panda.buildinfo.json +15 -24
- package/dist/panda.css +1675 -1736
- package/dist/panda.d.ts.map +1 -1
- package/dist/panda.js +1 -2
- package/dist/panda.js.map +1 -1
- package/dist/styled-system/css/conditions.mjs +2 -4
- package/dist/styled-system/css/css.d.mts +2 -15
- package/dist/styled-system/css/css.mjs +1 -2
- package/dist/styled-system/css/cva.d.mts +1 -1
- package/dist/styled-system/css/cva.mjs +3 -5
- package/dist/styled-system/css/sva.mjs +3 -9
- package/dist/styled-system/helpers.mjs +54 -90
- package/dist/styled-system/jsx/aspect-ratio.mjs +1 -1
- package/dist/styled-system/jsx/bleed.mjs +1 -1
- package/dist/styled-system/jsx/box.mjs +1 -1
- package/dist/styled-system/jsx/center.mjs +1 -1
- package/dist/styled-system/jsx/circle.mjs +1 -1
- package/dist/styled-system/jsx/container.mjs +1 -1
- package/dist/styled-system/jsx/divider.mjs +1 -1
- package/dist/styled-system/jsx/factory.mjs +7 -8
- package/dist/styled-system/jsx/flex.mjs +1 -1
- package/dist/styled-system/jsx/float.mjs +1 -1
- package/dist/styled-system/jsx/grid-item.mjs +1 -1
- package/dist/styled-system/jsx/grid.mjs +1 -1
- package/dist/styled-system/jsx/hstack.mjs +1 -1
- package/dist/styled-system/jsx/index.d.mts +1 -1
- package/dist/styled-system/jsx/index.mjs +2 -2
- package/dist/styled-system/jsx/is-valid-prop.d.mts +1 -7
- package/dist/styled-system/jsx/is-valid-prop.mjs +3 -3
- package/dist/styled-system/jsx/link-box.d.mts +10 -0
- package/dist/styled-system/jsx/link-box.mjs +14 -0
- package/dist/styled-system/jsx/link-overlay.mjs +1 -1
- package/dist/styled-system/jsx/spacer.mjs +1 -1
- package/dist/styled-system/jsx/square.mjs +1 -1
- package/dist/styled-system/jsx/stack.mjs +1 -1
- package/dist/styled-system/jsx/visually-hidden.mjs +1 -1
- package/dist/styled-system/jsx/vstack.mjs +1 -1
- package/dist/styled-system/jsx/wrap.mjs +1 -1
- package/dist/styled-system/patterns/aspect-ratio.d.mts +1 -1
- package/dist/styled-system/patterns/aspect-ratio.mjs +2 -5
- package/dist/styled-system/patterns/bleed.d.mts +3 -3
- package/dist/styled-system/patterns/bleed.mjs +7 -12
- package/dist/styled-system/patterns/box.d.mts +1 -1
- package/dist/styled-system/patterns/box.mjs +2 -5
- package/dist/styled-system/patterns/center.d.mts +1 -1
- package/dist/styled-system/patterns/center.mjs +2 -5
- package/dist/styled-system/patterns/circle.d.mts +2 -2
- package/dist/styled-system/patterns/circle.mjs +2 -5
- package/dist/styled-system/patterns/container.d.mts +1 -1
- package/dist/styled-system/patterns/container.mjs +2 -5
- package/dist/styled-system/patterns/divider.d.mts +1 -1
- package/dist/styled-system/patterns/divider.mjs +4 -8
- package/dist/styled-system/patterns/flex.d.mts +8 -8
- package/dist/styled-system/patterns/flex.mjs +2 -5
- package/dist/styled-system/patterns/float.d.mts +1 -1
- package/dist/styled-system/patterns/float.mjs +3 -10
- package/dist/styled-system/patterns/grid-item.d.mts +1 -1
- package/dist/styled-system/patterns/grid-item.mjs +2 -5
- package/dist/styled-system/patterns/grid.d.mts +4 -4
- package/dist/styled-system/patterns/grid.mjs +6 -11
- package/dist/styled-system/patterns/hstack.d.mts +3 -3
- package/dist/styled-system/patterns/hstack.mjs +4 -8
- package/dist/styled-system/patterns/index.d.mts +2 -2
- package/dist/styled-system/patterns/index.mjs +2 -2
- package/dist/styled-system/patterns/link-box.d.mts +21 -0
- package/dist/styled-system/patterns/link-box.mjs +19 -0
- package/dist/styled-system/patterns/link-overlay.d.mts +1 -1
- package/dist/styled-system/patterns/link-overlay.mjs +5 -5
- package/dist/styled-system/patterns/spacer.d.mts +1 -1
- package/dist/styled-system/patterns/spacer.mjs +2 -5
- package/dist/styled-system/patterns/square.d.mts +2 -2
- package/dist/styled-system/patterns/square.mjs +2 -5
- package/dist/styled-system/patterns/stack.d.mts +5 -5
- package/dist/styled-system/patterns/stack.mjs +4 -8
- package/dist/styled-system/patterns/visually-hidden.d.mts +1 -1
- package/dist/styled-system/patterns/visually-hidden.mjs +2 -5
- package/dist/styled-system/patterns/vstack.d.mts +3 -3
- package/dist/styled-system/patterns/vstack.mjs +4 -8
- package/dist/styled-system/patterns/wrap.d.mts +6 -6
- package/dist/styled-system/patterns/wrap.mjs +2 -5
- package/dist/styled-system/recipes/accordion.d.mts +1 -6
- package/dist/styled-system/recipes/accordion.mjs +4 -6
- package/dist/styled-system/recipes/alert-description.d.mts +1 -6
- package/dist/styled-system/recipes/alert-description.mjs +2 -4
- package/dist/styled-system/recipes/alert-dialog.d.mts +1 -6
- package/dist/styled-system/recipes/alert-dialog.mjs +4 -6
- package/dist/styled-system/recipes/alert-title.d.mts +1 -6
- package/dist/styled-system/recipes/alert-title.mjs +2 -4
- package/dist/styled-system/recipes/alert.d.mts +2 -10
- package/dist/styled-system/recipes/alert.mjs +2 -4
- package/dist/styled-system/recipes/avatar.d.mts +1 -6
- package/dist/styled-system/recipes/avatar.mjs +4 -6
- package/dist/styled-system/recipes/badge.d.mts +2 -10
- package/dist/styled-system/recipes/badge.mjs +2 -4
- package/dist/styled-system/recipes/blockquote.d.mts +1 -6
- package/dist/styled-system/recipes/blockquote.mjs +2 -4
- package/dist/styled-system/recipes/button.d.mts +2 -13
- package/dist/styled-system/recipes/button.mjs +2 -4
- package/dist/styled-system/recipes/calendar.d.mts +1 -6
- package/dist/styled-system/recipes/calendar.mjs +4 -6
- package/dist/styled-system/recipes/card-content.d.mts +1 -6
- package/dist/styled-system/recipes/card-content.mjs +2 -4
- package/dist/styled-system/recipes/card-description.d.mts +1 -6
- package/dist/styled-system/recipes/card-description.mjs +2 -4
- package/dist/styled-system/recipes/card-footer.d.mts +1 -6
- package/dist/styled-system/recipes/card-footer.mjs +2 -4
- package/dist/styled-system/recipes/card-header.d.mts +1 -6
- package/dist/styled-system/recipes/card-header.mjs +2 -4
- package/dist/styled-system/recipes/card-title.d.mts +1 -6
- package/dist/styled-system/recipes/card-title.mjs +2 -4
- package/dist/styled-system/recipes/card.d.mts +1 -6
- package/dist/styled-system/recipes/card.mjs +2 -4
- package/dist/styled-system/recipes/checkbox.d.mts +1 -6
- package/dist/styled-system/recipes/checkbox.mjs +4 -6
- package/dist/styled-system/recipes/collapsible.d.mts +1 -6
- package/dist/styled-system/recipes/collapsible.mjs +4 -6
- package/dist/styled-system/recipes/command-dialog.d.mts +1 -6
- package/dist/styled-system/recipes/command-dialog.mjs +4 -6
- package/dist/styled-system/recipes/command.d.mts +1 -6
- package/dist/styled-system/recipes/command.mjs +4 -6
- package/dist/styled-system/recipes/context-menu.d.mts +2 -10
- package/dist/styled-system/recipes/context-menu.mjs +4 -6
- package/dist/styled-system/recipes/create-recipe.d.mts +1 -0
- package/dist/styled-system/recipes/create-recipe.mjs +5 -8
- package/dist/styled-system/recipes/dialog.d.mts +1 -6
- package/dist/styled-system/recipes/dialog.mjs +4 -6
- package/dist/styled-system/recipes/dropdown-menu.d.mts +1 -6
- package/dist/styled-system/recipes/dropdown-menu.mjs +4 -6
- package/dist/styled-system/recipes/form-control.d.mts +1 -6
- package/dist/styled-system/recipes/form-control.mjs +2 -4
- package/dist/styled-system/recipes/form-description.d.mts +1 -6
- package/dist/styled-system/recipes/form-description.mjs +2 -4
- package/dist/styled-system/recipes/form-item.d.mts +1 -6
- package/dist/styled-system/recipes/form-item.mjs +2 -4
- package/dist/styled-system/recipes/form-label.d.mts +1 -6
- package/dist/styled-system/recipes/form-label.mjs +2 -4
- package/dist/styled-system/recipes/form-message.d.mts +1 -6
- package/dist/styled-system/recipes/form-message.mjs +2 -4
- package/dist/styled-system/recipes/h1.d.mts +1 -6
- package/dist/styled-system/recipes/h1.mjs +2 -4
- package/dist/styled-system/recipes/h2.d.mts +1 -6
- package/dist/styled-system/recipes/h2.mjs +2 -4
- package/dist/styled-system/recipes/h3.d.mts +1 -6
- package/dist/styled-system/recipes/h3.mjs +2 -4
- package/dist/styled-system/recipes/h4.d.mts +1 -6
- package/dist/styled-system/recipes/h4.mjs +2 -4
- package/dist/styled-system/recipes/hover-card.d.mts +1 -6
- package/dist/styled-system/recipes/hover-card.mjs +4 -6
- package/dist/styled-system/recipes/icon.d.mts +2 -22
- package/dist/styled-system/recipes/icon.mjs +2 -4
- package/dist/styled-system/recipes/inline-code.d.mts +1 -6
- package/dist/styled-system/recipes/inline-code.mjs +2 -4
- package/dist/styled-system/recipes/input.d.mts +1 -6
- package/dist/styled-system/recipes/input.mjs +2 -4
- package/dist/styled-system/recipes/label.d.mts +1 -6
- package/dist/styled-system/recipes/label.mjs +2 -4
- package/dist/styled-system/recipes/large.d.mts +1 -6
- package/dist/styled-system/recipes/large.mjs +2 -4
- package/dist/styled-system/recipes/lead.d.mts +1 -6
- package/dist/styled-system/recipes/lead.mjs +2 -4
- package/dist/styled-system/recipes/link.d.mts +1 -6
- package/dist/styled-system/recipes/link.mjs +2 -4
- package/dist/styled-system/recipes/list.d.mts +1 -6
- package/dist/styled-system/recipes/list.mjs +2 -4
- package/dist/styled-system/recipes/menubar.d.mts +1 -6
- package/dist/styled-system/recipes/menubar.mjs +4 -6
- package/dist/styled-system/recipes/muted.d.mts +1 -6
- package/dist/styled-system/recipes/muted.mjs +2 -4
- package/dist/styled-system/recipes/navigation-menu.d.mts +1 -6
- package/dist/styled-system/recipes/navigation-menu.mjs +4 -6
- package/dist/styled-system/recipes/p.d.mts +1 -6
- package/dist/styled-system/recipes/p.mjs +2 -4
- package/dist/styled-system/recipes/popover.d.mts +1 -6
- package/dist/styled-system/recipes/popover.mjs +4 -6
- package/dist/styled-system/recipes/progress.d.mts +1 -6
- package/dist/styled-system/recipes/progress.mjs +4 -6
- package/dist/styled-system/recipes/radio-group.d.mts +1 -6
- package/dist/styled-system/recipes/radio-group.mjs +4 -6
- package/dist/styled-system/recipes/scroll-area.d.mts +1 -6
- package/dist/styled-system/recipes/scroll-area.mjs +4 -6
- package/dist/styled-system/recipes/select.d.mts +1 -6
- package/dist/styled-system/recipes/select.mjs +4 -6
- package/dist/styled-system/recipes/separator.d.mts +2 -10
- package/dist/styled-system/recipes/separator.mjs +2 -4
- package/dist/styled-system/recipes/sheet.d.mts +2 -10
- package/dist/styled-system/recipes/sheet.mjs +4 -6
- package/dist/styled-system/recipes/skeleton.d.mts +1 -6
- package/dist/styled-system/recipes/skeleton.mjs +2 -4
- package/dist/styled-system/recipes/slider.d.mts +1 -6
- package/dist/styled-system/recipes/slider.mjs +4 -6
- package/dist/styled-system/recipes/small.d.mts +1 -6
- package/dist/styled-system/recipes/small.mjs +2 -4
- package/dist/styled-system/recipes/switch-recipe.d.mts +1 -6
- package/dist/styled-system/recipes/switch-recipe.mjs +4 -6
- package/dist/styled-system/recipes/table-body.d.mts +1 -6
- package/dist/styled-system/recipes/table-body.mjs +2 -4
- package/dist/styled-system/recipes/table-caption.d.mts +1 -6
- package/dist/styled-system/recipes/table-caption.mjs +2 -4
- package/dist/styled-system/recipes/table-cell.d.mts +1 -6
- package/dist/styled-system/recipes/table-cell.mjs +2 -4
- package/dist/styled-system/recipes/table-container.d.mts +1 -6
- package/dist/styled-system/recipes/table-container.mjs +2 -4
- package/dist/styled-system/recipes/table-footer.d.mts +1 -6
- package/dist/styled-system/recipes/table-footer.mjs +2 -4
- package/dist/styled-system/recipes/table-head.d.mts +1 -6
- package/dist/styled-system/recipes/table-head.mjs +2 -4
- package/dist/styled-system/recipes/table-header.d.mts +1 -6
- package/dist/styled-system/recipes/table-header.mjs +2 -4
- package/dist/styled-system/recipes/table-row.d.mts +1 -6
- package/dist/styled-system/recipes/table-row.mjs +2 -4
- package/dist/styled-system/recipes/table.d.mts +1 -6
- package/dist/styled-system/recipes/table.mjs +2 -4
- package/dist/styled-system/recipes/tabs.d.mts +1 -6
- package/dist/styled-system/recipes/tabs.mjs +4 -6
- package/dist/styled-system/recipes/textarea.d.mts +1 -6
- package/dist/styled-system/recipes/textarea.mjs +2 -4
- package/dist/styled-system/recipes/toast-viewport.d.mts +1 -6
- package/dist/styled-system/recipes/toast-viewport.mjs +2 -4
- package/dist/styled-system/recipes/toast.d.mts +2 -10
- package/dist/styled-system/recipes/toast.mjs +4 -6
- package/dist/styled-system/recipes/toggle.d.mts +2 -13
- package/dist/styled-system/recipes/toggle.mjs +2 -4
- package/dist/styled-system/recipes/tooltip.d.mts +1 -6
- package/dist/styled-system/recipes/tooltip.mjs +4 -6
- package/dist/styled-system/recipes/typography-table-container.d.mts +1 -6
- package/dist/styled-system/recipes/typography-table-container.mjs +2 -4
- package/dist/styled-system/recipes/typography-table.d.mts +1 -6
- package/dist/styled-system/recipes/typography-table.mjs +2 -4
- package/dist/styled-system/tokens/index.mjs +1683 -1711
- package/dist/styled-system/tokens/tokens.d.mts +20 -20
- package/dist/styled-system/types/composition.d.mts +12 -65
- package/dist/styled-system/types/conditions.d.mts +44 -98
- package/dist/styled-system/types/global.d.mts +0 -1
- package/dist/styled-system/types/jsx.d.mts +1 -1
- package/dist/styled-system/types/pattern.d.mts +2 -17
- package/dist/styled-system/types/prop-type.d.mts +231 -58
- package/dist/styled-system/types/recipe.d.mts +10 -33
- package/dist/styled-system/types/selectors.d.mts +1 -1
- package/dist/styled-system/types/static-css.d.mts +4 -13
- package/dist/styled-system/types/style-props.d.mts +678 -7541
- package/dist/styled-system/types/system-types.d.mts +11 -111
- package/dist/translations/i18n-react.d.ts +0 -1
- package/dist/translations/i18n-react.d.ts.map +1 -1
- package/dist/translations/i18n-util.async.d.ts.map +1 -1
- package/dist/translations/i18n-util.d.ts +2 -2
- package/dist/translations/i18n-util.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/styled-system/jsx/cq.d.mts +0 -10
- package/dist/styled-system/jsx/cq.mjs +0 -14
- package/dist/styled-system/patterns/cq.d.mts +0 -22
- package/dist/styled-system/patterns/cq.mjs +0 -21
|
@@ -3,24 +3,31 @@ import type { ConditionalValue } from './conditions.d.mts';
|
|
|
3
3
|
import type { CssProperties } from './system-types.d.mts';
|
|
4
4
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
aspectRatio:
|
|
6
|
+
interface PropertyValueTypes {
|
|
7
|
+
aspectRatio: "auto" | "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden";
|
|
8
|
+
zIndex: Tokens["zIndex"];
|
|
8
9
|
top: Tokens["spacing"];
|
|
9
10
|
left: Tokens["spacing"];
|
|
10
|
-
inset: "auto" | Tokens["spacing"];
|
|
11
11
|
insetInline: Tokens["spacing"];
|
|
12
12
|
insetBlock: Tokens["spacing"];
|
|
13
|
+
inset: "auto" | Tokens["spacing"];
|
|
13
14
|
insetBlockEnd: Tokens["spacing"];
|
|
14
15
|
insetBlockStart: Tokens["spacing"];
|
|
15
16
|
insetInlineEnd: Tokens["spacing"];
|
|
16
17
|
insetInlineStart: Tokens["spacing"];
|
|
17
18
|
right: Tokens["spacing"];
|
|
18
19
|
bottom: Tokens["spacing"];
|
|
19
|
-
|
|
20
|
+
insetX: Tokens["spacing"] | CssProperties["insetInline"];
|
|
21
|
+
insetY: Tokens["spacing"] | CssProperties["insetBlock"];
|
|
22
|
+
float: "left" | "right" | "start" | "end";
|
|
20
23
|
hideFrom: Tokens["breakpoints"];
|
|
21
24
|
hideBelow: Tokens["breakpoints"];
|
|
22
|
-
flexBasis: Tokens["
|
|
25
|
+
flexBasis: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
|
|
23
26
|
flex: "1" | "auto" | "initial" | "none";
|
|
27
|
+
gridTemplateColumns: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
28
|
+
gridTemplateRows: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
29
|
+
gridColumn: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
30
|
+
gridRow: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
24
31
|
gridAutoColumns: "min" | "max" | "fr";
|
|
25
32
|
gridAutoRows: "min" | "max" | "fr";
|
|
26
33
|
gap: Tokens["spacing"];
|
|
@@ -51,11 +58,12 @@ export interface UtilityValues {
|
|
|
51
58
|
marginInline: "auto" | Tokens["spacing"];
|
|
52
59
|
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
53
60
|
marginInlineStart: "auto" | Tokens["spacing"];
|
|
54
|
-
|
|
55
|
-
spaceY: Tokens["spacing"] | CssProperties["marginBlockStart"];
|
|
61
|
+
outlineWidth: Tokens["borderWidths"];
|
|
56
62
|
outlineColor: Tokens["colors"];
|
|
57
63
|
outline: Tokens["borders"];
|
|
58
64
|
outlineOffset: Tokens["spacing"];
|
|
65
|
+
divideX: string;
|
|
66
|
+
divideY: string;
|
|
59
67
|
divideColor: Tokens["colors"];
|
|
60
68
|
divideStyle: CssProperties["borderStyle"];
|
|
61
69
|
width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
@@ -81,13 +89,14 @@ export interface UtilityValues {
|
|
|
81
89
|
textEmphasisColor: Tokens["colors"];
|
|
82
90
|
textIndent: Tokens["spacing"];
|
|
83
91
|
textShadow: Tokens["shadows"];
|
|
84
|
-
textShadowColor: Tokens["colors"];
|
|
85
92
|
textWrap: "wrap" | "balance" | "nowrap";
|
|
86
93
|
truncate: boolean;
|
|
94
|
+
listStyleImage: Tokens["assets"];
|
|
87
95
|
background: Tokens["colors"];
|
|
88
96
|
backgroundColor: Tokens["colors"];
|
|
89
|
-
|
|
90
|
-
|
|
97
|
+
backgroundImage: Tokens["assets"];
|
|
98
|
+
backgroundGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
99
|
+
textGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
91
100
|
gradientFrom: Tokens["colors"];
|
|
92
101
|
gradientTo: Tokens["colors"];
|
|
93
102
|
gradientVia: Tokens["colors"];
|
|
@@ -107,18 +116,27 @@ export interface UtilityValues {
|
|
|
107
116
|
borderEndEndRadius: Tokens["radii"];
|
|
108
117
|
borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
109
118
|
border: Tokens["borders"];
|
|
119
|
+
borderWidth: Tokens["borderWidths"];
|
|
120
|
+
borderTopWidth: Tokens["borderWidths"];
|
|
121
|
+
borderLeftWidth: Tokens["borderWidths"];
|
|
122
|
+
borderRightWidth: Tokens["borderWidths"];
|
|
123
|
+
borderBottomWidth: Tokens["borderWidths"];
|
|
110
124
|
borderColor: Tokens["colors"];
|
|
111
125
|
borderInline: Tokens["borders"];
|
|
126
|
+
borderInlineWidth: Tokens["borderWidths"];
|
|
112
127
|
borderInlineColor: Tokens["colors"];
|
|
113
128
|
borderBlock: Tokens["borders"];
|
|
129
|
+
borderBlockWidth: Tokens["borderWidths"];
|
|
114
130
|
borderBlockColor: Tokens["colors"];
|
|
115
131
|
borderLeft: Tokens["borders"];
|
|
116
132
|
borderLeftColor: Tokens["colors"];
|
|
117
133
|
borderInlineStart: Tokens["borders"];
|
|
134
|
+
borderInlineStartWidth: Tokens["borderWidths"];
|
|
118
135
|
borderInlineStartColor: Tokens["colors"];
|
|
119
136
|
borderRight: Tokens["borders"];
|
|
120
137
|
borderRightColor: Tokens["colors"];
|
|
121
138
|
borderInlineEnd: Tokens["borders"];
|
|
139
|
+
borderInlineEndWidth: Tokens["borderWidths"];
|
|
122
140
|
borderInlineEndColor: Tokens["colors"];
|
|
123
141
|
borderTop: Tokens["borders"];
|
|
124
142
|
borderTopColor: Tokens["colors"];
|
|
@@ -132,10 +150,11 @@ export interface UtilityValues {
|
|
|
132
150
|
boxShadow: Tokens["shadows"];
|
|
133
151
|
boxShadowColor: Tokens["colors"];
|
|
134
152
|
filter: "auto";
|
|
153
|
+
dropShadow: Tokens["dropShadows"];
|
|
135
154
|
blur: Tokens["blurs"];
|
|
136
155
|
backdropFilter: "auto";
|
|
137
156
|
backdropBlur: "none" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | CssProperties["backdropFilter"];
|
|
138
|
-
borderSpacing: Tokens["spacing"]
|
|
157
|
+
borderSpacing: Tokens["spacing"];
|
|
139
158
|
borderSpacingX: Tokens["spacing"];
|
|
140
159
|
borderSpacingY: Tokens["spacing"];
|
|
141
160
|
transitionTimingFunction: Tokens["easings"];
|
|
@@ -143,25 +162,18 @@ export interface UtilityValues {
|
|
|
143
162
|
transitionDuration: Tokens["durations"];
|
|
144
163
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
145
164
|
animation: Tokens["animations"];
|
|
146
|
-
animationName: "
|
|
147
|
-
animationTimingFunction: Tokens["easings"];
|
|
148
|
-
animationDuration: Tokens["durations"];
|
|
165
|
+
animationName: Tokens["animationName"];
|
|
149
166
|
animationDelay: Tokens["durations"];
|
|
150
|
-
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|
|
151
|
-
rotateX: CssProperties["rotate"];
|
|
152
|
-
rotateY: CssProperties["rotate"];
|
|
153
|
-
rotateZ: CssProperties["rotate"];
|
|
154
167
|
scale: "auto" | CssProperties["scale"];
|
|
155
168
|
translate: Tokens["spacing"] | CssProperties["translate"];
|
|
156
169
|
translateX: Tokens["spacing"];
|
|
157
170
|
translateY: Tokens["spacing"];
|
|
158
|
-
translateZ: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
159
171
|
accentColor: Tokens["colors"];
|
|
160
172
|
caretColor: Tokens["colors"];
|
|
161
173
|
scrollbar: "visible" | "hidden";
|
|
162
|
-
scrollbarColor: Tokens["colors"];
|
|
163
|
-
scrollbarWidth: Tokens["sizes"];
|
|
164
174
|
scrollMargin: Tokens["spacing"];
|
|
175
|
+
scrollMarginX: Tokens["spacing"] | CssProperties["scrollMarginInline"];
|
|
176
|
+
scrollMarginY: Tokens["spacing"] | CssProperties["scrollMarginBlock"];
|
|
165
177
|
scrollMarginLeft: Tokens["spacing"];
|
|
166
178
|
scrollMarginRight: Tokens["spacing"];
|
|
167
179
|
scrollMarginTop: Tokens["spacing"];
|
|
@@ -179,6 +191,8 @@ export interface UtilityValues {
|
|
|
179
191
|
scrollPaddingInline: Tokens["spacing"];
|
|
180
192
|
scrollPaddingInlineEnd: Tokens["spacing"];
|
|
181
193
|
scrollPaddingInlineStart: Tokens["spacing"];
|
|
194
|
+
scrollPaddingX: Tokens["spacing"] | CssProperties["scrollPaddingInline"];
|
|
195
|
+
scrollPaddingY: Tokens["spacing"] | CssProperties["scrollPaddingBlock"];
|
|
182
196
|
scrollPaddingLeft: Tokens["spacing"];
|
|
183
197
|
scrollPaddingRight: Tokens["spacing"];
|
|
184
198
|
scrollPaddingTop: Tokens["spacing"];
|
|
@@ -192,10 +206,9 @@ export interface UtilityValues {
|
|
|
192
206
|
scrollSnapMarginRight: Tokens["spacing"];
|
|
193
207
|
fill: Tokens["colors"];
|
|
194
208
|
stroke: Tokens["colors"];
|
|
209
|
+
strokeWidth: Tokens["borderWidths"];
|
|
195
210
|
srOnly: boolean;
|
|
196
211
|
debug: boolean;
|
|
197
|
-
container: boolean;
|
|
198
|
-
containerName: CssProperties["containerName"];
|
|
199
212
|
animateIn: boolean;
|
|
200
213
|
animateOut: boolean;
|
|
201
214
|
fadeIn: Tokens["opacity"];
|
|
@@ -212,53 +225,213 @@ export interface UtilityValues {
|
|
|
212
225
|
gradientFromAlpha: string;
|
|
213
226
|
gradientToAlpha: string;
|
|
214
227
|
borderAlpha: CssProperties["borderColor"];
|
|
228
|
+
container: boolean;
|
|
215
229
|
focusRingWidth: "0" | "1" | "2" | "4" | "8" | "base";
|
|
216
230
|
focusRingColor: Tokens["colors"];
|
|
217
231
|
focusRingOffsetWidth: "0" | "1" | "2" | "4" | "8";
|
|
218
232
|
focusRingOffsetColor: Tokens["colors"];
|
|
219
233
|
focusRingInset: boolean;
|
|
234
|
+
spaceY: Tokens["spacing"];
|
|
235
|
+
spaceX: Tokens["spacing"];
|
|
220
236
|
textAlpha: CssProperties["color"];
|
|
221
|
-
colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "
|
|
237
|
+
colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "hover" | "hover.light" | "hover.dark" | "light" | "dark" | "text" | "decoration" | "grayscale" | "background" | "foreground" | "muted" | "card" | "popover" | "border" | "input" | "primary" | "secondary" | "accent" | "destructive" | "ring";
|
|
222
238
|
textStyle: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "large" | "small";
|
|
239
|
+
layerStyle: string;
|
|
223
240
|
}
|
|
224
241
|
|
|
225
242
|
|
|
226
243
|
|
|
227
|
-
type
|
|
244
|
+
type CssValue<T> = T extends keyof CssProperties ? CssProperties[T] : never
|
|
228
245
|
|
|
229
|
-
type
|
|
230
|
-
type WhitespaceImportant = ` ${ImportantMark}`
|
|
231
|
-
type Important = ImportantMark | WhitespaceImportant
|
|
232
|
-
type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
|
|
246
|
+
type Shorthand<T> = T extends keyof PropertyValueTypes ? PropertyValueTypes[T] | CssValue<T> : CssValue<T>
|
|
233
247
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
export interface PropertyTypes extends PropertyValueTypes {
|
|
249
|
+
|
|
250
|
+
pos: Shorthand<"position">;
|
|
251
|
+
insetEnd: Shorthand<"insetInlineEnd">;
|
|
252
|
+
end: Shorthand<"insetInlineEnd">;
|
|
253
|
+
insetStart: Shorthand<"insetInlineStart">;
|
|
254
|
+
start: Shorthand<"insetInlineStart">;
|
|
255
|
+
flexDir: Shorthand<"flexDirection">;
|
|
256
|
+
p: Shorthand<"padding">;
|
|
257
|
+
pl: Shorthand<"paddingLeft">;
|
|
258
|
+
pr: Shorthand<"paddingRight">;
|
|
259
|
+
pt: Shorthand<"paddingTop">;
|
|
260
|
+
pb: Shorthand<"paddingBottom">;
|
|
261
|
+
py: Shorthand<"paddingBlock">;
|
|
262
|
+
paddingY: Shorthand<"paddingBlock">;
|
|
263
|
+
paddingX: Shorthand<"paddingInline">;
|
|
264
|
+
px: Shorthand<"paddingInline">;
|
|
265
|
+
pe: Shorthand<"paddingInlineEnd">;
|
|
266
|
+
paddingEnd: Shorthand<"paddingInlineEnd">;
|
|
267
|
+
ps: Shorthand<"paddingInlineStart">;
|
|
268
|
+
paddingStart: Shorthand<"paddingInlineStart">;
|
|
269
|
+
ml: Shorthand<"marginLeft">;
|
|
270
|
+
mr: Shorthand<"marginRight">;
|
|
271
|
+
mt: Shorthand<"marginTop">;
|
|
272
|
+
mb: Shorthand<"marginBottom">;
|
|
273
|
+
m: Shorthand<"margin">;
|
|
274
|
+
my: Shorthand<"marginBlock">;
|
|
275
|
+
marginY: Shorthand<"marginBlock">;
|
|
276
|
+
mx: Shorthand<"marginInline">;
|
|
277
|
+
marginX: Shorthand<"marginInline">;
|
|
278
|
+
me: Shorthand<"marginInlineEnd">;
|
|
279
|
+
marginEnd: Shorthand<"marginInlineEnd">;
|
|
280
|
+
ms: Shorthand<"marginInlineStart">;
|
|
281
|
+
marginStart: Shorthand<"marginInlineStart">;
|
|
282
|
+
ringWidth: Shorthand<"outlineWidth">;
|
|
283
|
+
ringColor: Shorthand<"outlineColor">;
|
|
284
|
+
ring: Shorthand<"outline">;
|
|
285
|
+
ringOffset: Shorthand<"outlineOffset">;
|
|
286
|
+
w: Shorthand<"width">;
|
|
287
|
+
minW: Shorthand<"minWidth">;
|
|
288
|
+
maxW: Shorthand<"maxWidth">;
|
|
289
|
+
h: Shorthand<"height">;
|
|
290
|
+
minH: Shorthand<"minHeight">;
|
|
291
|
+
maxH: Shorthand<"maxHeight">;
|
|
292
|
+
tracking: Shorthand<"letterSpacing">;
|
|
293
|
+
leading: Shorthand<"lineHeight">;
|
|
294
|
+
bgPosition: Shorthand<"backgroundPosition">;
|
|
295
|
+
bgPositionX: Shorthand<"backgroundPositionX">;
|
|
296
|
+
bgPositionY: Shorthand<"backgroundPositionY">;
|
|
297
|
+
bgAttachment: Shorthand<"backgroundAttachment">;
|
|
298
|
+
bgClip: Shorthand<"backgroundClip">;
|
|
299
|
+
bg: Shorthand<"background">;
|
|
300
|
+
bgColor: Shorthand<"backgroundColor">;
|
|
301
|
+
bgOrigin: Shorthand<"backgroundOrigin">;
|
|
302
|
+
bgImage: Shorthand<"backgroundImage">;
|
|
303
|
+
bgRepeat: Shorthand<"backgroundRepeat">;
|
|
304
|
+
bgBlendMode: Shorthand<"backgroundBlendMode">;
|
|
305
|
+
bgSize: Shorthand<"backgroundSize">;
|
|
306
|
+
bgGradient: Shorthand<"backgroundGradient">;
|
|
307
|
+
rounded: Shorthand<"borderRadius">;
|
|
308
|
+
roundedTopLeft: Shorthand<"borderTopLeftRadius">;
|
|
309
|
+
roundedTopRight: Shorthand<"borderTopRightRadius">;
|
|
310
|
+
roundedBottomRight: Shorthand<"borderBottomRightRadius">;
|
|
311
|
+
roundedBottomLeft: Shorthand<"borderBottomLeftRadius">;
|
|
312
|
+
roundedTop: Shorthand<"borderTopRadius">;
|
|
313
|
+
roundedRight: Shorthand<"borderRightRadius">;
|
|
314
|
+
roundedBottom: Shorthand<"borderBottomRadius">;
|
|
315
|
+
roundedLeft: Shorthand<"borderLeftRadius">;
|
|
316
|
+
roundedStartStart: Shorthand<"borderStartStartRadius">;
|
|
317
|
+
roundedStartEnd: Shorthand<"borderStartEndRadius">;
|
|
318
|
+
roundedStart: Shorthand<"borderStartRadius">;
|
|
319
|
+
roundedEndStart: Shorthand<"borderEndStartRadius">;
|
|
320
|
+
roundedEndEnd: Shorthand<"borderEndEndRadius">;
|
|
321
|
+
roundedEnd: Shorthand<"borderEndRadius">;
|
|
322
|
+
borderX: Shorthand<"borderInline">;
|
|
323
|
+
borderXWidth: Shorthand<"borderInlineWidth">;
|
|
324
|
+
borderXColor: Shorthand<"borderInlineColor">;
|
|
325
|
+
borderY: Shorthand<"borderBlock">;
|
|
326
|
+
borderYWidth: Shorthand<"borderBlockWidth">;
|
|
327
|
+
borderYColor: Shorthand<"borderBlockColor">;
|
|
328
|
+
borderStart: Shorthand<"borderInlineStart">;
|
|
329
|
+
borderStartWidth: Shorthand<"borderInlineStartWidth">;
|
|
330
|
+
borderStartColor: Shorthand<"borderInlineStartColor">;
|
|
331
|
+
borderEnd: Shorthand<"borderInlineEnd">;
|
|
332
|
+
borderEndWidth: Shorthand<"borderInlineEndWidth">;
|
|
333
|
+
borderEndColor: Shorthand<"borderInlineEndColor">;
|
|
334
|
+
shadow: Shorthand<"boxShadow">;
|
|
335
|
+
shadowColor: Shorthand<"boxShadowColor">;
|
|
336
|
+
x: Shorthand<"translateX">;
|
|
337
|
+
y: Shorthand<"translateY">;
|
|
338
|
+
bga: Shorthand<"backgroundAlpha">;
|
|
339
|
+
bca: Shorthand<"borderAlpha">;
|
|
340
|
+
ca: Shorthand<"textAlpha">;
|
|
341
|
+
}
|
|
251
342
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
343
|
+
type StrictableProps =
|
|
344
|
+
| 'alignContent'
|
|
345
|
+
| 'alignItems'
|
|
346
|
+
| 'alignSelf'
|
|
347
|
+
| 'all'
|
|
348
|
+
| 'animationComposition'
|
|
349
|
+
| 'animationDirection'
|
|
350
|
+
| 'animationFillMode'
|
|
351
|
+
| 'appearance'
|
|
352
|
+
| 'backfaceVisibility'
|
|
353
|
+
| 'backgroundAttachment'
|
|
354
|
+
| 'backgroundClip'
|
|
355
|
+
| 'borderCollapse'
|
|
356
|
+
| 'border'
|
|
357
|
+
| 'borderBlock'
|
|
358
|
+
| 'borderBlockEnd'
|
|
359
|
+
| 'borderBlockStart'
|
|
360
|
+
| 'borderBottom'
|
|
361
|
+
| 'borderInline'
|
|
362
|
+
| 'borderInlineEnd'
|
|
363
|
+
| 'borderInlineStart'
|
|
364
|
+
| 'borderLeft'
|
|
365
|
+
| 'borderRight'
|
|
366
|
+
| 'borderTop'
|
|
367
|
+
| 'borderBlockEndStyle'
|
|
368
|
+
| 'borderBlockStartStyle'
|
|
369
|
+
| 'borderBlockStyle'
|
|
370
|
+
| 'borderBottomStyle'
|
|
371
|
+
| 'borderInlineEndStyle'
|
|
372
|
+
| 'borderInlineStartStyle'
|
|
373
|
+
| 'borderInlineStyle'
|
|
374
|
+
| 'borderLeftStyle'
|
|
375
|
+
| 'borderRightStyle'
|
|
376
|
+
| 'borderTopStyle'
|
|
377
|
+
| 'boxDecorationBreak'
|
|
378
|
+
| 'boxSizing'
|
|
379
|
+
| 'breakAfter'
|
|
380
|
+
| 'breakBefore'
|
|
381
|
+
| 'breakInside'
|
|
382
|
+
| 'captionSide'
|
|
383
|
+
| 'clear'
|
|
384
|
+
| 'columnFill'
|
|
385
|
+
| 'columnRuleStyle'
|
|
386
|
+
| 'contentVisibility'
|
|
387
|
+
| 'direction'
|
|
388
|
+
| 'display'
|
|
389
|
+
| 'emptyCells'
|
|
390
|
+
| 'flexDirection'
|
|
391
|
+
| 'flexWrap'
|
|
392
|
+
| 'float'
|
|
393
|
+
| 'fontKerning'
|
|
394
|
+
| 'forcedColorAdjust'
|
|
395
|
+
| 'isolation'
|
|
396
|
+
| 'lineBreak'
|
|
397
|
+
| 'mixBlendMode'
|
|
398
|
+
| 'objectFit'
|
|
399
|
+
| 'outlineStyle'
|
|
400
|
+
| 'overflow'
|
|
401
|
+
| 'overflowX'
|
|
402
|
+
| 'overflowY'
|
|
403
|
+
| 'overflowBlock'
|
|
404
|
+
| 'overflowInline'
|
|
405
|
+
| 'overflowWrap'
|
|
406
|
+
| 'pointerEvents'
|
|
407
|
+
| 'position'
|
|
408
|
+
| 'resize'
|
|
409
|
+
| 'scrollBehavior'
|
|
410
|
+
| 'touchAction'
|
|
411
|
+
| 'transformBox'
|
|
412
|
+
| 'transformStyle'
|
|
413
|
+
| 'userSelect'
|
|
414
|
+
| 'visibility'
|
|
415
|
+
| 'wordBreak'
|
|
416
|
+
| 'writingMode'
|
|
417
|
+
type WithEscapeHatch<T> = T | `[${string}]`
|
|
418
|
+
type FilterVagueString<Key, Value> = Value extends boolean
|
|
263
419
|
? Value
|
|
264
|
-
:
|
|
420
|
+
: Key extends StrictableProps
|
|
421
|
+
? Value extends `${infer _}` ? Value : never
|
|
422
|
+
: Value
|
|
423
|
+
type PropOrCondition<Key, Value> = ConditionalValue<Value | (string & {})>
|
|
424
|
+
|
|
425
|
+
type PropertyTypeValue<T extends string> = T extends keyof PropertyTypes
|
|
426
|
+
? PropOrCondition<T, PropertyTypes[T] | CssValue<T>>
|
|
427
|
+
: never;
|
|
428
|
+
|
|
429
|
+
type CssPropertyValue<T extends string> = T extends keyof CssProperties
|
|
430
|
+
? PropOrCondition<T, CssProperties[T]>
|
|
431
|
+
: never;
|
|
432
|
+
|
|
433
|
+
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
434
|
+
? PropertyTypeValue<T>
|
|
435
|
+
: T extends keyof CssProperties
|
|
436
|
+
? CssPropertyValue<T>
|
|
437
|
+
: PropOrCondition<T, string | number>
|
|
@@ -14,21 +14,10 @@ export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends k
|
|
|
14
14
|
|
|
15
15
|
export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Extract the variant as optional props from a `cva` function.
|
|
19
|
-
* Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
|
|
20
|
-
*/
|
|
21
17
|
export type RecipeVariantProps<
|
|
22
18
|
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
23
19
|
> = Pretty<Parameters<T>[0]>
|
|
24
20
|
|
|
25
|
-
/**
|
|
26
|
-
* Extract the variants from a `cva` function.
|
|
27
|
-
*/
|
|
28
|
-
export type RecipeVariant<
|
|
29
|
-
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
30
|
-
> = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
|
|
31
|
-
|
|
32
21
|
type RecipeVariantMap<T extends RecipeVariantRecord> = {
|
|
33
22
|
[K in keyof T]: Array<keyof T[K]>
|
|
34
23
|
}
|
|
@@ -46,7 +35,6 @@ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVa
|
|
|
46
35
|
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
47
36
|
props: Props,
|
|
48
37
|
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
49
|
-
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
50
38
|
}
|
|
51
39
|
|
|
52
40
|
type OneOrMore<T> = T | Array<T>
|
|
@@ -64,10 +52,6 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
64
52
|
* The base styles of the recipe.
|
|
65
53
|
*/
|
|
66
54
|
base?: SystemStyleObject
|
|
67
|
-
/**
|
|
68
|
-
* Whether the recipe is deprecated.
|
|
69
|
-
*/
|
|
70
|
-
deprecated?: boolean | string
|
|
71
55
|
/**
|
|
72
56
|
* The multi-variant styles of the recipe.
|
|
73
57
|
*/
|
|
@@ -80,13 +64,17 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
80
64
|
* The styles to apply when a combination of variants is selected.
|
|
81
65
|
*/
|
|
82
66
|
compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
|
|
67
|
+
/**
|
|
68
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
69
|
+
*/
|
|
70
|
+
staticCss?: RecipeRule[]
|
|
83
71
|
}
|
|
84
72
|
|
|
85
73
|
export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
|
|
86
74
|
|
|
87
75
|
interface RecipeConfigMeta {
|
|
88
76
|
/**
|
|
89
|
-
* The
|
|
77
|
+
* The name of the recipe.
|
|
90
78
|
*/
|
|
91
79
|
className: string
|
|
92
80
|
/**
|
|
@@ -100,10 +88,6 @@ interface RecipeConfigMeta {
|
|
|
100
88
|
* @example ['Button', 'Link', /Button$/]
|
|
101
89
|
*/
|
|
102
90
|
jsx?: Array<string | RegExp>
|
|
103
|
-
/**
|
|
104
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
105
|
-
*/
|
|
106
|
-
staticCss?: RecipeRule[]
|
|
107
91
|
}
|
|
108
92
|
|
|
109
93
|
export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
|
|
@@ -127,10 +111,7 @@ export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVaria
|
|
|
127
111
|
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
128
112
|
variantKeys: (keyof T)[]
|
|
129
113
|
variantMap: RecipeVariantMap<T>
|
|
130
|
-
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
131
|
-
props: Props,
|
|
132
|
-
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
133
|
-
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
114
|
+
splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]
|
|
134
115
|
}
|
|
135
116
|
|
|
136
117
|
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|
|
@@ -141,14 +122,6 @@ export interface SlotRecipeDefinition<
|
|
|
141
122
|
S extends string = string,
|
|
142
123
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
143
124
|
> {
|
|
144
|
-
/**
|
|
145
|
-
* An optional class name that can be used to target slots in the DOM.
|
|
146
|
-
*/
|
|
147
|
-
className?: string
|
|
148
|
-
/**
|
|
149
|
-
* Whether the recipe is deprecated.
|
|
150
|
-
*/
|
|
151
|
-
deprecated?: boolean | string
|
|
152
125
|
/**
|
|
153
126
|
* The parts/slots of the recipe.
|
|
154
127
|
*/
|
|
@@ -169,6 +142,10 @@ export interface SlotRecipeDefinition<
|
|
|
169
142
|
* The styles to apply when a combination of variants is selected.
|
|
170
143
|
*/
|
|
171
144
|
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
145
|
+
/**
|
|
146
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
147
|
+
*/
|
|
148
|
+
staticCss?: RecipeRule[]
|
|
172
149
|
}
|
|
173
150
|
|
|
174
151
|
export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
|
|
@@ -53,7 +53,7 @@ type DataAttributes =
|
|
|
53
53
|
type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
54
54
|
type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
55
55
|
|
|
56
|
-
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
56
|
+
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
57
57
|
|
|
58
58
|
export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
59
59
|
export type Selectors = AttributeSelector | ParentSelector
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
interface
|
|
2
|
+
interface WithConditions {
|
|
3
3
|
/**
|
|
4
|
-
* The conditions to generate for the rule.
|
|
4
|
+
* The css conditions to generate for the rule.
|
|
5
5
|
* @example ['hover', 'focus']
|
|
6
6
|
*/
|
|
7
7
|
conditions?: string[]
|
|
8
|
-
/**
|
|
9
|
-
* Whether to generate responsive styles for the rule.
|
|
10
|
-
*/
|
|
11
8
|
responsive?: boolean
|
|
12
9
|
}
|
|
13
10
|
|
|
14
|
-
export interface CssRule extends
|
|
11
|
+
export interface CssRule extends WithConditions {
|
|
15
12
|
/**
|
|
16
13
|
* The css properties to generate utilities for.
|
|
17
14
|
* @example ['margin', 'padding']
|
|
@@ -25,9 +22,7 @@ interface RecipeRuleVariants {
|
|
|
25
22
|
[variant: string]: boolean | string[]
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
export type
|
|
29
|
-
export type RecipeRule = '*' | RecipeRuleObject
|
|
30
|
-
|
|
25
|
+
export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions)
|
|
31
26
|
export type PatternRule = '*' | CssRule
|
|
32
27
|
|
|
33
28
|
export interface StaticCssOptions {
|
|
@@ -49,8 +44,4 @@ export interface StaticCssOptions {
|
|
|
49
44
|
patterns?: {
|
|
50
45
|
[pattern: string]: PatternRule[]
|
|
51
46
|
}
|
|
52
|
-
/**
|
|
53
|
-
* The CSS themes to generate
|
|
54
|
-
*/
|
|
55
|
-
themes?: string[]
|
|
56
47
|
}
|