@luxonis/common-fe-components 1.18.0 → 1.18.2
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 +2 -0
- package/dist/components/custom/Alert.d.ts.map +1 -1
- package/dist/components/custom/Alert.js +2 -2
- package/dist/components/custom/Alert.js.map +1 -1
- package/dist/components/custom/Badge.d.ts +6 -0
- package/dist/components/custom/Badge.d.ts.map +1 -1
- package/dist/components/custom/Badge.js +5 -0
- package/dist/components/custom/Badge.js.map +1 -1
- package/dist/components/custom/Button.d.ts +2 -2
- package/dist/components/custom/Button.d.ts.map +1 -1
- package/dist/components/custom/Button.js +2 -2
- package/dist/components/custom/Button.js.map +1 -1
- 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 +927 -831
- 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 +1 -0
- 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 -1
- package/dist/components/custom/Icon.d.ts +1 -0
- package/dist/components/custom/Icon.d.ts.map +1 -1
- package/dist/components/custom/IconHelp.d.ts +1 -0
- package/dist/components/custom/IconHelp.d.ts.map +1 -1
- package/dist/components/custom/KpiDisplay.d.ts +1 -0
- package/dist/components/custom/KpiDisplay.d.ts.map +1 -1
- package/dist/components/custom/Markdown.d.ts +1 -0
- 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/Modal.js +2 -2
- package/dist/components/custom/Modal.js.map +1 -1
- package/dist/components/custom/ProgressTicker.d.ts +1 -0
- package/dist/components/custom/ProgressTicker.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +1844 -1652
- 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 +1837 -1645
- package/dist/components/custom/Slider.d.ts.map +1 -1
- package/dist/components/custom/SourceCode.d.ts +1 -0
- package/dist/components/custom/SourceCode.d.ts.map +1 -1
- package/dist/components/custom/StatusBar.d.ts +1 -0
- package/dist/components/custom/StatusBar.d.ts.map +1 -1
- package/dist/components/custom/Stepper.d.ts.map +1 -1
- package/dist/components/custom/Stepper.js +1 -1
- package/dist/components/custom/Stepper.js.map +1 -1
- package/dist/components/custom/Text.d.ts.map +1 -1
- package/dist/components/custom/TimePicker.d.ts +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +34 -34
- 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 +1 -0
- package/dist/components/shadow-panda/_Toast.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Tooltip.d.ts +1 -0
- 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 +12 -9
- 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 +1 -0
- 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 +1 -0
- package/dist/icons/svg/AccessDenied.d.ts.map +1 -1
- package/dist/icons/svg/Empty.d.ts +1 -0
- package/dist/icons/svg/Empty.d.ts.map +1 -1
- package/dist/icons/svg/Error.d.ts +1 -0
- 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 +25 -16
- package/dist/panda.css +1683 -1622
- package/dist/panda.d.ts.map +1 -1
- package/dist/panda.js +2 -1
- package/dist/panda.js.map +1 -1
- package/dist/styled-system/css/conditions.mjs +4 -2
- package/dist/styled-system/css/css.d.mts +15 -2
- package/dist/styled-system/css/css.mjs +2 -1
- package/dist/styled-system/css/cva.d.mts +1 -1
- package/dist/styled-system/css/cva.mjs +5 -3
- package/dist/styled-system/css/sva.mjs +9 -3
- package/dist/styled-system/helpers.mjs +90 -54
- 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/cq.d.mts +10 -0
- package/dist/styled-system/jsx/cq.mjs +14 -0
- package/dist/styled-system/jsx/divider.mjs +1 -1
- package/dist/styled-system/jsx/factory.mjs +8 -7
- 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 +7 -1
- package/dist/styled-system/jsx/is-valid-prop.mjs +3 -3
- 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 +5 -2
- package/dist/styled-system/patterns/bleed.d.mts +3 -3
- package/dist/styled-system/patterns/bleed.mjs +12 -7
- package/dist/styled-system/patterns/box.d.mts +1 -1
- package/dist/styled-system/patterns/box.mjs +5 -2
- package/dist/styled-system/patterns/center.d.mts +1 -1
- package/dist/styled-system/patterns/center.mjs +5 -2
- package/dist/styled-system/patterns/circle.d.mts +2 -2
- package/dist/styled-system/patterns/circle.mjs +5 -2
- package/dist/styled-system/patterns/container.d.mts +1 -1
- package/dist/styled-system/patterns/container.mjs +5 -2
- package/dist/styled-system/patterns/cq.d.mts +22 -0
- package/dist/styled-system/patterns/cq.mjs +21 -0
- package/dist/styled-system/patterns/divider.d.mts +1 -1
- package/dist/styled-system/patterns/divider.mjs +8 -4
- package/dist/styled-system/patterns/flex.d.mts +8 -8
- package/dist/styled-system/patterns/flex.mjs +5 -2
- package/dist/styled-system/patterns/float.d.mts +1 -1
- package/dist/styled-system/patterns/float.mjs +10 -3
- package/dist/styled-system/patterns/grid-item.d.mts +1 -1
- package/dist/styled-system/patterns/grid-item.mjs +5 -2
- package/dist/styled-system/patterns/grid.d.mts +4 -4
- package/dist/styled-system/patterns/grid.mjs +11 -6
- package/dist/styled-system/patterns/hstack.d.mts +3 -3
- package/dist/styled-system/patterns/hstack.mjs +8 -4
- 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-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 +5 -2
- package/dist/styled-system/patterns/square.d.mts +2 -2
- package/dist/styled-system/patterns/square.mjs +5 -2
- package/dist/styled-system/patterns/stack.d.mts +5 -5
- package/dist/styled-system/patterns/stack.mjs +8 -4
- package/dist/styled-system/patterns/visually-hidden.d.mts +1 -1
- package/dist/styled-system/patterns/visually-hidden.mjs +5 -2
- package/dist/styled-system/patterns/vstack.d.mts +3 -3
- package/dist/styled-system/patterns/vstack.mjs +8 -4
- package/dist/styled-system/patterns/wrap.d.mts +6 -6
- package/dist/styled-system/patterns/wrap.mjs +5 -2
- package/dist/styled-system/recipes/accordion.d.mts +6 -1
- package/dist/styled-system/recipes/accordion.mjs +6 -4
- package/dist/styled-system/recipes/alert-description.d.mts +6 -1
- package/dist/styled-system/recipes/alert-description.mjs +4 -2
- package/dist/styled-system/recipes/alert-dialog.d.mts +6 -1
- package/dist/styled-system/recipes/alert-dialog.mjs +6 -4
- package/dist/styled-system/recipes/alert-title.d.mts +6 -1
- package/dist/styled-system/recipes/alert-title.mjs +4 -2
- package/dist/styled-system/recipes/alert.d.mts +10 -2
- package/dist/styled-system/recipes/alert.mjs +4 -2
- package/dist/styled-system/recipes/avatar.d.mts +6 -1
- package/dist/styled-system/recipes/avatar.mjs +6 -4
- package/dist/styled-system/recipes/badge.d.mts +10 -2
- package/dist/styled-system/recipes/badge.mjs +4 -2
- package/dist/styled-system/recipes/blockquote.d.mts +6 -1
- package/dist/styled-system/recipes/blockquote.mjs +4 -2
- package/dist/styled-system/recipes/button.d.mts +13 -2
- package/dist/styled-system/recipes/button.mjs +4 -2
- package/dist/styled-system/recipes/calendar.d.mts +6 -1
- package/dist/styled-system/recipes/calendar.mjs +6 -4
- package/dist/styled-system/recipes/card-content.d.mts +6 -1
- package/dist/styled-system/recipes/card-content.mjs +4 -2
- package/dist/styled-system/recipes/card-description.d.mts +6 -1
- package/dist/styled-system/recipes/card-description.mjs +4 -2
- package/dist/styled-system/recipes/card-footer.d.mts +6 -1
- package/dist/styled-system/recipes/card-footer.mjs +4 -2
- package/dist/styled-system/recipes/card-header.d.mts +6 -1
- package/dist/styled-system/recipes/card-header.mjs +4 -2
- package/dist/styled-system/recipes/card-title.d.mts +6 -1
- package/dist/styled-system/recipes/card-title.mjs +4 -2
- package/dist/styled-system/recipes/card.d.mts +6 -1
- package/dist/styled-system/recipes/card.mjs +4 -2
- package/dist/styled-system/recipes/checkbox.d.mts +6 -1
- package/dist/styled-system/recipes/checkbox.mjs +6 -4
- package/dist/styled-system/recipes/collapsible.d.mts +6 -1
- package/dist/styled-system/recipes/collapsible.mjs +6 -4
- package/dist/styled-system/recipes/command-dialog.d.mts +6 -1
- package/dist/styled-system/recipes/command-dialog.mjs +6 -4
- package/dist/styled-system/recipes/command.d.mts +6 -1
- package/dist/styled-system/recipes/command.mjs +6 -4
- package/dist/styled-system/recipes/context-menu.d.mts +10 -2
- package/dist/styled-system/recipes/context-menu.mjs +6 -4
- package/dist/styled-system/recipes/create-recipe.mjs +8 -5
- package/dist/styled-system/recipes/dialog.d.mts +6 -1
- package/dist/styled-system/recipes/dialog.mjs +6 -4
- package/dist/styled-system/recipes/dropdown-menu.d.mts +6 -1
- package/dist/styled-system/recipes/dropdown-menu.mjs +6 -4
- package/dist/styled-system/recipes/form-control.d.mts +6 -1
- package/dist/styled-system/recipes/form-control.mjs +4 -2
- package/dist/styled-system/recipes/form-description.d.mts +6 -1
- package/dist/styled-system/recipes/form-description.mjs +4 -2
- package/dist/styled-system/recipes/form-item.d.mts +6 -1
- package/dist/styled-system/recipes/form-item.mjs +4 -2
- package/dist/styled-system/recipes/form-label.d.mts +6 -1
- package/dist/styled-system/recipes/form-label.mjs +4 -2
- package/dist/styled-system/recipes/form-message.d.mts +6 -1
- package/dist/styled-system/recipes/form-message.mjs +4 -2
- package/dist/styled-system/recipes/h1.d.mts +6 -1
- package/dist/styled-system/recipes/h1.mjs +4 -2
- package/dist/styled-system/recipes/h2.d.mts +6 -1
- package/dist/styled-system/recipes/h2.mjs +4 -2
- package/dist/styled-system/recipes/h3.d.mts +6 -1
- package/dist/styled-system/recipes/h3.mjs +4 -2
- package/dist/styled-system/recipes/h4.d.mts +6 -1
- package/dist/styled-system/recipes/h4.mjs +4 -2
- package/dist/styled-system/recipes/hover-card.d.mts +6 -1
- package/dist/styled-system/recipes/hover-card.mjs +6 -4
- package/dist/styled-system/recipes/icon.d.mts +22 -2
- package/dist/styled-system/recipes/icon.mjs +4 -2
- package/dist/styled-system/recipes/inline-code.d.mts +6 -1
- package/dist/styled-system/recipes/inline-code.mjs +4 -2
- package/dist/styled-system/recipes/input.d.mts +6 -1
- package/dist/styled-system/recipes/input.mjs +4 -2
- package/dist/styled-system/recipes/label.d.mts +6 -1
- package/dist/styled-system/recipes/label.mjs +4 -2
- package/dist/styled-system/recipes/large.d.mts +6 -1
- package/dist/styled-system/recipes/large.mjs +4 -2
- package/dist/styled-system/recipes/lead.d.mts +6 -1
- package/dist/styled-system/recipes/lead.mjs +4 -2
- package/dist/styled-system/recipes/link.d.mts +6 -1
- package/dist/styled-system/recipes/link.mjs +4 -2
- package/dist/styled-system/recipes/list.d.mts +6 -1
- package/dist/styled-system/recipes/list.mjs +4 -2
- package/dist/styled-system/recipes/menubar.d.mts +6 -1
- package/dist/styled-system/recipes/menubar.mjs +6 -4
- package/dist/styled-system/recipes/muted.d.mts +6 -1
- package/dist/styled-system/recipes/muted.mjs +4 -2
- package/dist/styled-system/recipes/navigation-menu.d.mts +6 -1
- package/dist/styled-system/recipes/navigation-menu.mjs +6 -4
- package/dist/styled-system/recipes/p.d.mts +6 -1
- package/dist/styled-system/recipes/p.mjs +4 -2
- package/dist/styled-system/recipes/popover.d.mts +6 -1
- package/dist/styled-system/recipes/popover.mjs +6 -4
- package/dist/styled-system/recipes/progress.d.mts +6 -1
- package/dist/styled-system/recipes/progress.mjs +6 -4
- package/dist/styled-system/recipes/radio-group.d.mts +6 -1
- package/dist/styled-system/recipes/radio-group.mjs +6 -4
- package/dist/styled-system/recipes/scroll-area.d.mts +6 -1
- package/dist/styled-system/recipes/scroll-area.mjs +6 -4
- package/dist/styled-system/recipes/select.d.mts +6 -1
- package/dist/styled-system/recipes/select.mjs +6 -4
- package/dist/styled-system/recipes/separator.d.mts +10 -2
- package/dist/styled-system/recipes/separator.mjs +4 -2
- package/dist/styled-system/recipes/sheet.d.mts +10 -2
- package/dist/styled-system/recipes/sheet.mjs +6 -4
- package/dist/styled-system/recipes/skeleton.d.mts +6 -1
- package/dist/styled-system/recipes/skeleton.mjs +4 -2
- package/dist/styled-system/recipes/slider.d.mts +6 -1
- package/dist/styled-system/recipes/slider.mjs +6 -4
- package/dist/styled-system/recipes/small.d.mts +6 -1
- package/dist/styled-system/recipes/small.mjs +4 -2
- package/dist/styled-system/recipes/switch-recipe.d.mts +6 -1
- package/dist/styled-system/recipes/switch-recipe.mjs +6 -4
- package/dist/styled-system/recipes/table-body.d.mts +6 -1
- package/dist/styled-system/recipes/table-body.mjs +4 -2
- package/dist/styled-system/recipes/table-caption.d.mts +6 -1
- package/dist/styled-system/recipes/table-caption.mjs +4 -2
- package/dist/styled-system/recipes/table-cell.d.mts +6 -1
- package/dist/styled-system/recipes/table-cell.mjs +4 -2
- package/dist/styled-system/recipes/table-container.d.mts +6 -1
- package/dist/styled-system/recipes/table-container.mjs +4 -2
- package/dist/styled-system/recipes/table-footer.d.mts +6 -1
- package/dist/styled-system/recipes/table-footer.mjs +4 -2
- package/dist/styled-system/recipes/table-head.d.mts +6 -1
- package/dist/styled-system/recipes/table-head.mjs +4 -2
- package/dist/styled-system/recipes/table-header.d.mts +6 -1
- package/dist/styled-system/recipes/table-header.mjs +4 -2
- package/dist/styled-system/recipes/table-row.d.mts +6 -1
- package/dist/styled-system/recipes/table-row.mjs +4 -2
- package/dist/styled-system/recipes/table.d.mts +6 -1
- package/dist/styled-system/recipes/table.mjs +4 -2
- package/dist/styled-system/recipes/tabs.d.mts +6 -1
- package/dist/styled-system/recipes/tabs.mjs +6 -4
- package/dist/styled-system/recipes/textarea.d.mts +6 -1
- package/dist/styled-system/recipes/textarea.mjs +4 -2
- package/dist/styled-system/recipes/toast-viewport.d.mts +6 -1
- package/dist/styled-system/recipes/toast-viewport.mjs +4 -2
- package/dist/styled-system/recipes/toast.d.mts +10 -2
- package/dist/styled-system/recipes/toast.mjs +6 -4
- package/dist/styled-system/recipes/toggle.d.mts +13 -2
- package/dist/styled-system/recipes/toggle.mjs +4 -2
- package/dist/styled-system/recipes/tooltip.d.mts +6 -1
- package/dist/styled-system/recipes/tooltip.mjs +6 -4
- package/dist/styled-system/recipes/typography-table-container.d.mts +6 -1
- package/dist/styled-system/recipes/typography-table-container.mjs +4 -2
- package/dist/styled-system/recipes/typography-table.d.mts +6 -1
- package/dist/styled-system/recipes/typography-table.mjs +4 -2
- package/dist/styled-system/tokens/index.mjs +1711 -1683
- package/dist/styled-system/tokens/tokens.d.mts +20 -20
- package/dist/styled-system/types/composition.d.mts +65 -12
- package/dist/styled-system/types/conditions.d.mts +98 -44
- package/dist/styled-system/types/global.d.mts +1 -0
- package/dist/styled-system/types/jsx.d.mts +1 -1
- package/dist/styled-system/types/pattern.d.mts +17 -2
- package/dist/styled-system/types/prop-type.d.mts +58 -231
- package/dist/styled-system/types/recipe.d.mts +33 -10
- package/dist/styled-system/types/selectors.d.mts +1 -1
- package/dist/styled-system/types/static-css.d.mts +13 -4
- package/dist/styled-system/types/style-props.d.mts +7541 -678
- package/dist/styled-system/types/system-types.d.mts +111 -11
- package/dist/translations/i18n-react.d.ts +1 -0
- 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 +7 -7
- package/dist/components/custom/oak4/oak4-device-info.d.ts +0 -13
- package/dist/components/custom/oak4/oak4-device-info.d.ts.map +0 -1
- package/dist/components/custom/oak4/oak4-device-info.js +0 -100
- package/dist/components/custom/oak4/oak4-device-info.js.map +0 -1
- package/dist/components/custom/oak4/oak4-model.d.ts +0 -4
- package/dist/components/custom/oak4/oak4-model.d.ts.map +0 -1
- package/dist/components/custom/oak4/oak4-model.js +0 -3
- package/dist/components/custom/oak4/oak4-model.js.map +0 -1
- package/dist/styled-system/jsx/link-box.d.mts +0 -10
- package/dist/styled-system/jsx/link-box.mjs +0 -14
- package/dist/styled-system/patterns/link-box.d.mts +0 -21
- package/dist/styled-system/patterns/link-box.mjs +0 -19
- package/dist/styled-system/recipes/create-recipe.d.mts +0 -1
|
@@ -3,31 +3,24 @@ 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
|
-
interface
|
|
7
|
-
aspectRatio: "
|
|
8
|
-
zIndex: Tokens["zIndex"];
|
|
6
|
+
export interface UtilityValues {
|
|
7
|
+
aspectRatio: Tokens["aspectRatios"];
|
|
9
8
|
top: Tokens["spacing"];
|
|
10
9
|
left: Tokens["spacing"];
|
|
10
|
+
inset: "auto" | Tokens["spacing"];
|
|
11
11
|
insetInline: Tokens["spacing"];
|
|
12
12
|
insetBlock: Tokens["spacing"];
|
|
13
|
-
inset: "auto" | Tokens["spacing"];
|
|
14
13
|
insetBlockEnd: Tokens["spacing"];
|
|
15
14
|
insetBlockStart: Tokens["spacing"];
|
|
16
15
|
insetInlineEnd: Tokens["spacing"];
|
|
17
16
|
insetInlineStart: Tokens["spacing"];
|
|
18
17
|
right: Tokens["spacing"];
|
|
19
18
|
bottom: Tokens["spacing"];
|
|
20
|
-
|
|
21
|
-
insetY: Tokens["spacing"] | CssProperties["insetBlock"];
|
|
22
|
-
float: "left" | "right" | "start" | "end";
|
|
19
|
+
float: "start" | "end" | CssProperties["float"];
|
|
23
20
|
hideFrom: Tokens["breakpoints"];
|
|
24
21
|
hideBelow: Tokens["breakpoints"];
|
|
25
|
-
flexBasis: Tokens["
|
|
22
|
+
flexBasis: 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" | "full";
|
|
26
23
|
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";
|
|
31
24
|
gridAutoColumns: "min" | "max" | "fr";
|
|
32
25
|
gridAutoRows: "min" | "max" | "fr";
|
|
33
26
|
gap: Tokens["spacing"];
|
|
@@ -58,12 +51,11 @@ interface PropertyValueTypes {
|
|
|
58
51
|
marginInline: "auto" | Tokens["spacing"];
|
|
59
52
|
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
60
53
|
marginInlineStart: "auto" | Tokens["spacing"];
|
|
61
|
-
|
|
54
|
+
spaceX: Tokens["spacing"] | CssProperties["marginInlineStart"];
|
|
55
|
+
spaceY: Tokens["spacing"] | CssProperties["marginBlockStart"];
|
|
62
56
|
outlineColor: Tokens["colors"];
|
|
63
57
|
outline: Tokens["borders"];
|
|
64
58
|
outlineOffset: Tokens["spacing"];
|
|
65
|
-
divideX: string;
|
|
66
|
-
divideY: string;
|
|
67
59
|
divideColor: Tokens["colors"];
|
|
68
60
|
divideStyle: CssProperties["borderStyle"];
|
|
69
61
|
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";
|
|
@@ -89,14 +81,13 @@ interface PropertyValueTypes {
|
|
|
89
81
|
textEmphasisColor: Tokens["colors"];
|
|
90
82
|
textIndent: Tokens["spacing"];
|
|
91
83
|
textShadow: Tokens["shadows"];
|
|
84
|
+
textShadowColor: Tokens["colors"];
|
|
92
85
|
textWrap: "wrap" | "balance" | "nowrap";
|
|
93
86
|
truncate: boolean;
|
|
94
|
-
listStyleImage: Tokens["assets"];
|
|
95
87
|
background: Tokens["colors"];
|
|
96
88
|
backgroundColor: Tokens["colors"];
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
textGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
89
|
+
backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
90
|
+
textGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
100
91
|
gradientFrom: Tokens["colors"];
|
|
101
92
|
gradientTo: Tokens["colors"];
|
|
102
93
|
gradientVia: Tokens["colors"];
|
|
@@ -116,27 +107,18 @@ interface PropertyValueTypes {
|
|
|
116
107
|
borderEndEndRadius: Tokens["radii"];
|
|
117
108
|
borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
118
109
|
border: Tokens["borders"];
|
|
119
|
-
borderWidth: Tokens["borderWidths"];
|
|
120
|
-
borderTopWidth: Tokens["borderWidths"];
|
|
121
|
-
borderLeftWidth: Tokens["borderWidths"];
|
|
122
|
-
borderRightWidth: Tokens["borderWidths"];
|
|
123
|
-
borderBottomWidth: Tokens["borderWidths"];
|
|
124
110
|
borderColor: Tokens["colors"];
|
|
125
111
|
borderInline: Tokens["borders"];
|
|
126
|
-
borderInlineWidth: Tokens["borderWidths"];
|
|
127
112
|
borderInlineColor: Tokens["colors"];
|
|
128
113
|
borderBlock: Tokens["borders"];
|
|
129
|
-
borderBlockWidth: Tokens["borderWidths"];
|
|
130
114
|
borderBlockColor: Tokens["colors"];
|
|
131
115
|
borderLeft: Tokens["borders"];
|
|
132
116
|
borderLeftColor: Tokens["colors"];
|
|
133
117
|
borderInlineStart: Tokens["borders"];
|
|
134
|
-
borderInlineStartWidth: Tokens["borderWidths"];
|
|
135
118
|
borderInlineStartColor: Tokens["colors"];
|
|
136
119
|
borderRight: Tokens["borders"];
|
|
137
120
|
borderRightColor: Tokens["colors"];
|
|
138
121
|
borderInlineEnd: Tokens["borders"];
|
|
139
|
-
borderInlineEndWidth: Tokens["borderWidths"];
|
|
140
122
|
borderInlineEndColor: Tokens["colors"];
|
|
141
123
|
borderTop: Tokens["borders"];
|
|
142
124
|
borderTopColor: Tokens["colors"];
|
|
@@ -150,11 +132,10 @@ interface PropertyValueTypes {
|
|
|
150
132
|
boxShadow: Tokens["shadows"];
|
|
151
133
|
boxShadowColor: Tokens["colors"];
|
|
152
134
|
filter: "auto";
|
|
153
|
-
dropShadow: Tokens["dropShadows"];
|
|
154
135
|
blur: Tokens["blurs"];
|
|
155
136
|
backdropFilter: "auto";
|
|
156
137
|
backdropBlur: "none" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | CssProperties["backdropFilter"];
|
|
157
|
-
borderSpacing: Tokens["spacing"];
|
|
138
|
+
borderSpacing: Tokens["spacing"] | "auto";
|
|
158
139
|
borderSpacingX: Tokens["spacing"];
|
|
159
140
|
borderSpacingY: Tokens["spacing"];
|
|
160
141
|
transitionTimingFunction: Tokens["easings"];
|
|
@@ -162,18 +143,25 @@ interface PropertyValueTypes {
|
|
|
162
143
|
transitionDuration: Tokens["durations"];
|
|
163
144
|
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
164
145
|
animation: Tokens["animations"];
|
|
165
|
-
animationName:
|
|
146
|
+
animationName: "spin" | "ping" | "pulse" | "bounce" | "enter" | "exit" | "accordion-down" | "accordion-up";
|
|
147
|
+
animationTimingFunction: Tokens["easings"];
|
|
148
|
+
animationDuration: Tokens["durations"];
|
|
166
149
|
animationDelay: Tokens["durations"];
|
|
150
|
+
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|
|
151
|
+
rotateX: CssProperties["rotate"];
|
|
152
|
+
rotateY: CssProperties["rotate"];
|
|
153
|
+
rotateZ: CssProperties["rotate"];
|
|
167
154
|
scale: "auto" | CssProperties["scale"];
|
|
168
155
|
translate: Tokens["spacing"] | CssProperties["translate"];
|
|
169
156
|
translateX: Tokens["spacing"];
|
|
170
157
|
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";
|
|
171
159
|
accentColor: Tokens["colors"];
|
|
172
160
|
caretColor: Tokens["colors"];
|
|
173
161
|
scrollbar: "visible" | "hidden";
|
|
162
|
+
scrollbarColor: Tokens["colors"];
|
|
163
|
+
scrollbarWidth: Tokens["sizes"];
|
|
174
164
|
scrollMargin: Tokens["spacing"];
|
|
175
|
-
scrollMarginX: Tokens["spacing"] | CssProperties["scrollMarginInline"];
|
|
176
|
-
scrollMarginY: Tokens["spacing"] | CssProperties["scrollMarginBlock"];
|
|
177
165
|
scrollMarginLeft: Tokens["spacing"];
|
|
178
166
|
scrollMarginRight: Tokens["spacing"];
|
|
179
167
|
scrollMarginTop: Tokens["spacing"];
|
|
@@ -191,8 +179,6 @@ interface PropertyValueTypes {
|
|
|
191
179
|
scrollPaddingInline: Tokens["spacing"];
|
|
192
180
|
scrollPaddingInlineEnd: Tokens["spacing"];
|
|
193
181
|
scrollPaddingInlineStart: Tokens["spacing"];
|
|
194
|
-
scrollPaddingX: Tokens["spacing"] | CssProperties["scrollPaddingInline"];
|
|
195
|
-
scrollPaddingY: Tokens["spacing"] | CssProperties["scrollPaddingBlock"];
|
|
196
182
|
scrollPaddingLeft: Tokens["spacing"];
|
|
197
183
|
scrollPaddingRight: Tokens["spacing"];
|
|
198
184
|
scrollPaddingTop: Tokens["spacing"];
|
|
@@ -206,9 +192,10 @@ interface PropertyValueTypes {
|
|
|
206
192
|
scrollSnapMarginRight: Tokens["spacing"];
|
|
207
193
|
fill: Tokens["colors"];
|
|
208
194
|
stroke: Tokens["colors"];
|
|
209
|
-
strokeWidth: Tokens["borderWidths"];
|
|
210
195
|
srOnly: boolean;
|
|
211
196
|
debug: boolean;
|
|
197
|
+
container: boolean;
|
|
198
|
+
containerName: CssProperties["containerName"];
|
|
212
199
|
animateIn: boolean;
|
|
213
200
|
animateOut: boolean;
|
|
214
201
|
fadeIn: Tokens["opacity"];
|
|
@@ -225,213 +212,53 @@ interface PropertyValueTypes {
|
|
|
225
212
|
gradientFromAlpha: string;
|
|
226
213
|
gradientToAlpha: string;
|
|
227
214
|
borderAlpha: CssProperties["borderColor"];
|
|
228
|
-
container: boolean;
|
|
229
215
|
focusRingWidth: "0" | "1" | "2" | "4" | "8" | "base";
|
|
230
216
|
focusRingColor: Tokens["colors"];
|
|
231
217
|
focusRingOffsetWidth: "0" | "1" | "2" | "4" | "8";
|
|
232
218
|
focusRingOffsetColor: Tokens["colors"];
|
|
233
219
|
focusRingInset: boolean;
|
|
234
|
-
spaceY: Tokens["spacing"];
|
|
235
|
-
spaceX: Tokens["spacing"];
|
|
236
220
|
textAlpha: CssProperties["color"];
|
|
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" | "
|
|
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" | "grayscale" | "hover" | "hover.light" | "hover.dark" | "light" | "dark" | "text" | "decoration" | "background" | "foreground" | "muted" | "card" | "popover" | "border" | "input" | "secondary" | "accent" | "destructive" | "ring" | "primary";
|
|
238
222
|
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;
|
|
240
223
|
}
|
|
241
224
|
|
|
242
225
|
|
|
243
226
|
|
|
244
|
-
|
|
227
|
+
type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
245
228
|
|
|
246
|
-
|
|
229
|
+
type ImportantMark = "!" | "!important"
|
|
230
|
+
type WhitespaceImportant = ` ${ImportantMark}`
|
|
231
|
+
type Important = ImportantMark | WhitespaceImportant
|
|
232
|
+
type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
|
|
247
233
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
-
}
|
|
234
|
+
/**
|
|
235
|
+
* Only relevant when using `strictTokens` or `strictPropertyValues` in your config.
|
|
236
|
+
* - Allows you to use an escape hatch (e.g. `[123px]`) to use any string as a value.
|
|
237
|
+
* - Allows you to use a color opacity modifier (e.g. `red/300`) with known color values.
|
|
238
|
+
* - Allows you to use an important mark (e.g. `!` or `!important`) in the value.
|
|
239
|
+
*
|
|
240
|
+
* This is useful when you want to use a value that is not defined in the config or want to opt-out of the defaults.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* css({
|
|
244
|
+
* fontSize: '[123px]', // ⚠️ will not throw even if you haven't defined 123px as a token
|
|
245
|
+
* })
|
|
246
|
+
*
|
|
247
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#stricttokens
|
|
248
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
249
|
+
*/
|
|
250
|
+
export type WithEscapeHatch<T> = T | `[${string}]` | WithColorOpacityModifier<T> | WithImportant<T>
|
|
342
251
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
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
|
|
252
|
+
/**
|
|
253
|
+
* Will restrict the value of properties that have predefined values to those values only.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* css({
|
|
257
|
+
* display: 'abc', // ❌ will throw
|
|
258
|
+
* })
|
|
259
|
+
*
|
|
260
|
+
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
261
|
+
*/
|
|
262
|
+
export type OnlyKnown<Key, Value> = Value extends boolean
|
|
419
263
|
? Value
|
|
420
|
-
:
|
|
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>
|
|
264
|
+
: Value extends `${infer _}` ? Value : never
|
|
@@ -14,10 +14,21 @@ 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
|
+
*/
|
|
17
21
|
export type RecipeVariantProps<
|
|
18
22
|
T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
|
|
19
23
|
> = Pretty<Parameters<T>[0]>
|
|
20
24
|
|
|
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
|
+
|
|
21
32
|
type RecipeVariantMap<T extends RecipeVariantRecord> = {
|
|
22
33
|
[K in keyof T]: Array<keyof T[K]>
|
|
23
34
|
}
|
|
@@ -35,6 +46,7 @@ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVa
|
|
|
35
46
|
splitVariantProps<Props extends RecipeSelection<T>>(
|
|
36
47
|
props: Props,
|
|
37
48
|
): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
|
|
49
|
+
getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
type OneOrMore<T> = T | Array<T>
|
|
@@ -52,6 +64,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
52
64
|
* The base styles of the recipe.
|
|
53
65
|
*/
|
|
54
66
|
base?: SystemStyleObject
|
|
67
|
+
/**
|
|
68
|
+
* Whether the recipe is deprecated.
|
|
69
|
+
*/
|
|
70
|
+
deprecated?: boolean | string
|
|
55
71
|
/**
|
|
56
72
|
* The multi-variant styles of the recipe.
|
|
57
73
|
*/
|
|
@@ -64,17 +80,13 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
|
|
|
64
80
|
* The styles to apply when a combination of variants is selected.
|
|
65
81
|
*/
|
|
66
82
|
compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
|
|
67
|
-
/**
|
|
68
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
69
|
-
*/
|
|
70
|
-
staticCss?: RecipeRule[]
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
|
|
74
86
|
|
|
75
87
|
interface RecipeConfigMeta {
|
|
76
88
|
/**
|
|
77
|
-
* The name of the recipe.
|
|
89
|
+
* The class name of the recipe.
|
|
78
90
|
*/
|
|
79
91
|
className: string
|
|
80
92
|
/**
|
|
@@ -88,6 +100,10 @@ interface RecipeConfigMeta {
|
|
|
88
100
|
* @example ['Button', 'Link', /Button$/]
|
|
89
101
|
*/
|
|
90
102
|
jsx?: Array<string | RegExp>
|
|
103
|
+
/**
|
|
104
|
+
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
105
|
+
*/
|
|
106
|
+
staticCss?: RecipeRule[]
|
|
91
107
|
}
|
|
92
108
|
|
|
93
109
|
export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
|
|
@@ -111,7 +127,10 @@ export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVaria
|
|
|
111
127
|
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
112
128
|
variantKeys: (keyof T)[]
|
|
113
129
|
variantMap: RecipeVariantMap<T>
|
|
114
|
-
splitVariantProps<Props extends RecipeSelection<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>
|
|
115
134
|
}
|
|
116
135
|
|
|
117
136
|
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|
|
@@ -122,6 +141,14 @@ export interface SlotRecipeDefinition<
|
|
|
122
141
|
S extends string = string,
|
|
123
142
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
124
143
|
> {
|
|
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
|
|
125
152
|
/**
|
|
126
153
|
* The parts/slots of the recipe.
|
|
127
154
|
*/
|
|
@@ -142,10 +169,6 @@ export interface SlotRecipeDefinition<
|
|
|
142
169
|
* The styles to apply when a combination of variants is selected.
|
|
143
170
|
*/
|
|
144
171
|
compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
|
|
145
|
-
/**
|
|
146
|
-
* Variants to pre-generate, will be include in the final `config.staticCss`
|
|
147
|
-
*/
|
|
148
|
-
staticCss?: RecipeRule[]
|
|
149
172
|
}
|
|
150
173
|
|
|
151
174
|
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' | 'scope' | 'starting-style'
|
|
57
57
|
|
|
58
58
|
export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
59
59
|
export type Selectors = AttributeSelector | ParentSelector
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
interface
|
|
2
|
+
interface ConditionOptions {
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The 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
|
+
*/
|
|
8
11
|
responsive?: boolean
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
export interface CssRule extends
|
|
14
|
+
export interface CssRule extends ConditionOptions {
|
|
12
15
|
/**
|
|
13
16
|
* The css properties to generate utilities for.
|
|
14
17
|
* @example ['margin', 'padding']
|
|
@@ -22,7 +25,9 @@ interface RecipeRuleVariants {
|
|
|
22
25
|
[variant: string]: boolean | string[]
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
export type
|
|
28
|
+
export type RecipeRuleObject = RecipeRuleVariants & ConditionOptions
|
|
29
|
+
export type RecipeRule = '*' | RecipeRuleObject
|
|
30
|
+
|
|
26
31
|
export type PatternRule = '*' | CssRule
|
|
27
32
|
|
|
28
33
|
export interface StaticCssOptions {
|
|
@@ -44,4 +49,8 @@ export interface StaticCssOptions {
|
|
|
44
49
|
patterns?: {
|
|
45
50
|
[pattern: string]: PatternRule[]
|
|
46
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* The CSS themes to generate
|
|
54
|
+
*/
|
|
55
|
+
themes?: string[]
|
|
47
56
|
}
|