@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
|
@@ -5,7 +5,7 @@ import { cx } from '../css/cx.mjs';
|
|
|
5
5
|
import { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';
|
|
6
6
|
|
|
7
7
|
export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
8
|
-
const
|
|
8
|
+
const getRecipeStyles = (variants) => {
|
|
9
9
|
return {
|
|
10
10
|
[name]: '__ignore__',
|
|
11
11
|
...defaultVariants,
|
|
@@ -34,12 +34,11 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
34
34
|
},
|
|
35
35
|
utility: {
|
|
36
36
|
|
|
37
|
-
toHash: (path, hashFn) => hashFn(path.join(":")),
|
|
38
37
|
transform,
|
|
39
38
|
}
|
|
40
39
|
})
|
|
41
40
|
|
|
42
|
-
const recipeStyles =
|
|
41
|
+
const recipeStyles = getRecipeStyles(variants)
|
|
43
42
|
|
|
44
43
|
if (withCompoundVariants) {
|
|
45
44
|
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
@@ -49,13 +48,11 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
49
48
|
return recipeCss(recipeStyles)
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
return {
|
|
53
|
-
recipeFn,
|
|
54
|
-
getVariantProps,
|
|
51
|
+
return Object.assign(recipeFn, {
|
|
55
52
|
__getCompoundVariantCss__: (variants) => {
|
|
56
|
-
return getCompoundVariantCss(compoundVariants,
|
|
53
|
+
return getCompoundVariantCss(compoundVariants, getRecipeStyles(variants));
|
|
57
54
|
},
|
|
58
|
-
}
|
|
55
|
+
})
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
export const mergeRecipes = (recipeA, recipeB) => {
|
|
@@ -21,12 +21,7 @@ export interface DialogRecipe {
|
|
|
21
21
|
variantMap: DialogVariantMap
|
|
22
22
|
variantKeys: Array<keyof DialogVariant>
|
|
23
23
|
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: DialogVariantProps) => DialogVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Dialog component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the Dialog component */
|
|
32
27
|
export declare const dialog: DialogRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dialogDefaultVariants = {}
|
|
@@ -88,12 +88,11 @@ const dialogSlotNames = [
|
|
|
88
88
|
]
|
|
89
89
|
const dialogSlotFns = /* @__PURE__ */ dialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dialogDefaultVariants, getSlotCompoundVariant(dialogCompoundVariants, slotName))])
|
|
90
90
|
|
|
91
|
-
const dialogFn =
|
|
92
|
-
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn
|
|
93
|
-
}
|
|
91
|
+
const dialogFn = (props = {}) => {
|
|
92
|
+
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
93
|
+
}
|
|
94
94
|
|
|
95
95
|
const dialogVariantKeys = []
|
|
96
|
-
const getVariantProps = (variants) => ({ ...dialogDefaultVariants, ...compact(variants) })
|
|
97
96
|
|
|
98
97
|
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
99
98
|
__recipe__: false,
|
|
@@ -104,5 +103,4 @@ export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
|
104
103
|
splitVariantProps(props) {
|
|
105
104
|
return splitProps(props, dialogVariantKeys)
|
|
106
105
|
},
|
|
107
|
-
getVariantProps
|
|
108
106
|
})
|
|
@@ -21,12 +21,7 @@ export interface DropdownMenuRecipe {
|
|
|
21
21
|
variantMap: DropdownMenuVariantMap
|
|
22
22
|
variantKeys: Array<keyof DropdownMenuVariant>
|
|
23
23
|
splitVariantProps<Props extends DropdownMenuVariantProps>(props: Props): [DropdownMenuVariantProps, Pretty<DistributiveOmit<Props, keyof DropdownMenuVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: DropdownMenuVariantProps) => DropdownMenuVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the DropdownMenu component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the DropdownMenu component */
|
|
32
27
|
export declare const dropdownMenu: DropdownMenuRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dropdownMenuDefaultVariants = {}
|
|
@@ -136,12 +136,11 @@ const dropdownMenuSlotNames = [
|
|
|
136
136
|
]
|
|
137
137
|
const dropdownMenuSlotFns = /* @__PURE__ */ dropdownMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropdownMenuDefaultVariants, getSlotCompoundVariant(dropdownMenuCompoundVariants, slotName))])
|
|
138
138
|
|
|
139
|
-
const dropdownMenuFn =
|
|
140
|
-
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn
|
|
141
|
-
}
|
|
139
|
+
const dropdownMenuFn = (props = {}) => {
|
|
140
|
+
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
141
|
+
}
|
|
142
142
|
|
|
143
143
|
const dropdownMenuVariantKeys = []
|
|
144
|
-
const getVariantProps = (variants) => ({ ...dropdownMenuDefaultVariants, ...compact(variants) })
|
|
145
144
|
|
|
146
145
|
export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
147
146
|
__recipe__: false,
|
|
@@ -152,5 +151,4 @@ export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
|
152
151
|
splitVariantProps(props) {
|
|
153
152
|
return splitProps(props, dropdownMenuVariantKeys)
|
|
154
153
|
},
|
|
155
|
-
getVariantProps
|
|
156
154
|
})
|
|
@@ -21,12 +21,7 @@ export interface FormControlRecipe {
|
|
|
21
21
|
variantMap: FormControlVariantMap
|
|
22
22
|
variantKeys: Array<keyof FormControlVariant>
|
|
23
23
|
splitVariantProps<Props extends FormControlVariantProps>(props: Props): [FormControlVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormControl component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the FormControl component */
|
|
32
27
|
export declare const formControl: FormControlRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formControlFn = /* @__PURE__ */ createRecipe('formControl', {}, [])
|
|
@@ -7,10 +7,9 @@ const formControlVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formControl = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const formControl = /* @__PURE__ */ Object.assign(formControlFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formControl',
|
|
13
|
-
__getCompoundVariantCss__: formControlFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: formControlVariantKeys,
|
|
16
15
|
variantMap: formControlVariantMap,
|
|
@@ -20,5 +19,4 @@ export const formControl = /* @__PURE__ */ Object.assign(memo(formControlFn.reci
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, formControlVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: formControlFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface FormDescriptionRecipe {
|
|
|
21
21
|
variantMap: FormDescriptionVariantMap
|
|
22
22
|
variantKeys: Array<keyof FormDescriptionVariant>
|
|
23
23
|
splitVariantProps<Props extends FormDescriptionVariantProps>(props: Props): [FormDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof FormDescriptionVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormDescriptionVariantProps) => FormDescriptionVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormDescription component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the FormDescription component */
|
|
32
27
|
export declare const formDescription: FormDescriptionRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formDescriptionFn = /* @__PURE__ */ createRecipe('formDescription', {}, [])
|
|
@@ -7,10 +7,9 @@ const formDescriptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formDescriptionVariantKeys = Object.keys(formDescriptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formDescription = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const formDescription = /* @__PURE__ */ Object.assign(formDescriptionFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formDescription',
|
|
13
|
-
__getCompoundVariantCss__: formDescriptionFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: formDescriptionVariantKeys,
|
|
16
15
|
variantMap: formDescriptionVariantMap,
|
|
@@ -20,5 +19,4 @@ export const formDescription = /* @__PURE__ */ Object.assign(memo(formDescriptio
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, formDescriptionVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: formDescriptionFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface FormItemRecipe {
|
|
|
21
21
|
variantMap: FormItemVariantMap
|
|
22
22
|
variantKeys: Array<keyof FormItemVariant>
|
|
23
23
|
splitVariantProps<Props extends FormItemVariantProps>(props: Props): [FormItemVariantProps, Pretty<DistributiveOmit<Props, keyof FormItemVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormItemVariantProps) => FormItemVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormItem component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the FormItem component */
|
|
32
27
|
export declare const formItem: FormItemRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formItemFn = /* @__PURE__ */ createRecipe('formItem', {}, [])
|
|
@@ -7,10 +7,9 @@ const formItemVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formItemVariantKeys = Object.keys(formItemVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formItem = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const formItem = /* @__PURE__ */ Object.assign(formItemFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formItem',
|
|
13
|
-
__getCompoundVariantCss__: formItemFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: formItemVariantKeys,
|
|
16
15
|
variantMap: formItemVariantMap,
|
|
@@ -20,5 +19,4 @@ export const formItem = /* @__PURE__ */ Object.assign(memo(formItemFn.recipeFn),
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, formItemVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: formItemFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface FormLabelRecipe {
|
|
|
21
21
|
variantMap: FormLabelVariantMap
|
|
22
22
|
variantKeys: Array<keyof FormLabelVariant>
|
|
23
23
|
splitVariantProps<Props extends FormLabelVariantProps>(props: Props): [FormLabelVariantProps, Pretty<DistributiveOmit<Props, keyof FormLabelVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormLabel component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the FormLabel component */
|
|
32
27
|
export declare const formLabel: FormLabelRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formLabelFn = /* @__PURE__ */ createRecipe('formLabel', {}, [])
|
|
@@ -7,10 +7,9 @@ const formLabelVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formLabelVariantKeys = Object.keys(formLabelVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formLabel = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formLabel',
|
|
13
|
-
__getCompoundVariantCss__: formLabelFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: formLabelVariantKeys,
|
|
16
15
|
variantMap: formLabelVariantMap,
|
|
@@ -20,5 +19,4 @@ export const formLabel = /* @__PURE__ */ Object.assign(memo(formLabelFn.recipeFn
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, formLabelVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: formLabelFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface FormMessageRecipe {
|
|
|
21
21
|
variantMap: FormMessageVariantMap
|
|
22
22
|
variantKeys: Array<keyof FormMessageVariant>
|
|
23
23
|
splitVariantProps<Props extends FormMessageVariantProps>(props: Props): [FormMessageVariantProps, Pretty<DistributiveOmit<Props, keyof FormMessageVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormMessageVariantProps) => FormMessageVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormMessage component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the FormMessage component */
|
|
32
27
|
export declare const formMessage: FormMessageRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formMessageFn = /* @__PURE__ */ createRecipe('formMessage', {}, [])
|
|
@@ -7,10 +7,9 @@ const formMessageVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formMessageVariantKeys = Object.keys(formMessageVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formMessage = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const formMessage = /* @__PURE__ */ Object.assign(formMessageFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formMessage',
|
|
13
|
-
__getCompoundVariantCss__: formMessageFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: formMessageVariantKeys,
|
|
16
15
|
variantMap: formMessageVariantMap,
|
|
@@ -20,5 +19,4 @@ export const formMessage = /* @__PURE__ */ Object.assign(memo(formMessageFn.reci
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, formMessageVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: formMessageFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface H1Recipe {
|
|
|
21
21
|
variantMap: H1VariantMap
|
|
22
22
|
variantKeys: Array<keyof H1Variant>
|
|
23
23
|
splitVariantProps<Props extends H1VariantProps>(props: Props): [H1VariantProps, Pretty<DistributiveOmit<Props, keyof H1VariantProps>>]
|
|
24
|
-
getVariantProps: (props?: H1VariantProps) => H1VariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Typography - h1 style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Typography - h1 style */
|
|
32
27
|
export declare const h1: H1Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h1Fn = /* @__PURE__ */ createRecipe('h1', {}, [])
|
|
@@ -7,10 +7,9 @@ const h1VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h1VariantKeys = Object.keys(h1VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h1 = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const h1 = /* @__PURE__ */ Object.assign(h1Fn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h1',
|
|
13
|
-
__getCompoundVariantCss__: h1Fn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: h1VariantKeys,
|
|
16
15
|
variantMap: h1VariantMap,
|
|
@@ -20,5 +19,4 @@ export const h1 = /* @__PURE__ */ Object.assign(memo(h1Fn.recipeFn), {
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, h1VariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: h1Fn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface H2Recipe {
|
|
|
21
21
|
variantMap: H2VariantMap
|
|
22
22
|
variantKeys: Array<keyof H2Variant>
|
|
23
23
|
splitVariantProps<Props extends H2VariantProps>(props: Props): [H2VariantProps, Pretty<DistributiveOmit<Props, keyof H2VariantProps>>]
|
|
24
|
-
getVariantProps: (props?: H2VariantProps) => H2VariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Typography - h2 style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Typography - h2 style */
|
|
32
27
|
export declare const h2: H2Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h2Fn = /* @__PURE__ */ createRecipe('h2', {}, [])
|
|
@@ -7,10 +7,9 @@ const h2VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h2VariantKeys = Object.keys(h2VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h2 = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const h2 = /* @__PURE__ */ Object.assign(h2Fn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h2',
|
|
13
|
-
__getCompoundVariantCss__: h2Fn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: h2VariantKeys,
|
|
16
15
|
variantMap: h2VariantMap,
|
|
@@ -20,5 +19,4 @@ export const h2 = /* @__PURE__ */ Object.assign(memo(h2Fn.recipeFn), {
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, h2VariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: h2Fn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface H3Recipe {
|
|
|
21
21
|
variantMap: H3VariantMap
|
|
22
22
|
variantKeys: Array<keyof H3Variant>
|
|
23
23
|
splitVariantProps<Props extends H3VariantProps>(props: Props): [H3VariantProps, Pretty<DistributiveOmit<Props, keyof H3VariantProps>>]
|
|
24
|
-
getVariantProps: (props?: H3VariantProps) => H3VariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Typography - h3 style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Typography - h3 style */
|
|
32
27
|
export declare const h3: H3Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h3Fn = /* @__PURE__ */ createRecipe('h3', {}, [])
|
|
@@ -7,10 +7,9 @@ const h3VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h3VariantKeys = Object.keys(h3VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h3 = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const h3 = /* @__PURE__ */ Object.assign(h3Fn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h3',
|
|
13
|
-
__getCompoundVariantCss__: h3Fn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: h3VariantKeys,
|
|
16
15
|
variantMap: h3VariantMap,
|
|
@@ -20,5 +19,4 @@ export const h3 = /* @__PURE__ */ Object.assign(memo(h3Fn.recipeFn), {
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, h3VariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: h3Fn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface H4Recipe {
|
|
|
21
21
|
variantMap: H4VariantMap
|
|
22
22
|
variantKeys: Array<keyof H4Variant>
|
|
23
23
|
splitVariantProps<Props extends H4VariantProps>(props: Props): [H4VariantProps, Pretty<DistributiveOmit<Props, keyof H4VariantProps>>]
|
|
24
|
-
getVariantProps: (props?: H4VariantProps) => H4VariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Typography - h4 style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Typography - h4 style */
|
|
32
27
|
export declare const h4: H4Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h4Fn = /* @__PURE__ */ createRecipe('h4', {}, [])
|
|
@@ -7,10 +7,9 @@ const h4VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h4VariantKeys = Object.keys(h4VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h4 = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const h4 = /* @__PURE__ */ Object.assign(h4Fn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h4',
|
|
13
|
-
__getCompoundVariantCss__: h4Fn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: h4VariantKeys,
|
|
16
15
|
variantMap: h4VariantMap,
|
|
@@ -20,5 +19,4 @@ export const h4 = /* @__PURE__ */ Object.assign(memo(h4Fn.recipeFn), {
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, h4VariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: h4Fn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface HoverCardRecipe {
|
|
|
21
21
|
variantMap: HoverCardVariantMap
|
|
22
22
|
variantKeys: Array<keyof HoverCardVariant>
|
|
23
23
|
splitVariantProps<Props extends HoverCardVariantProps>(props: Props): [HoverCardVariantProps, Pretty<DistributiveOmit<Props, keyof HoverCardVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: HoverCardVariantProps) => HoverCardVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the HoverCard component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the HoverCard component */
|
|
32
27
|
export declare const hoverCard: HoverCardRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const hoverCardDefaultVariants = {}
|
|
@@ -32,12 +32,11 @@ const hoverCardSlotNames = [
|
|
|
32
32
|
]
|
|
33
33
|
const hoverCardSlotFns = /* @__PURE__ */ hoverCardSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, hoverCardDefaultVariants, getSlotCompoundVariant(hoverCardCompoundVariants, slotName))])
|
|
34
34
|
|
|
35
|
-
const hoverCardFn =
|
|
36
|
-
return Object.fromEntries(hoverCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn
|
|
37
|
-
}
|
|
35
|
+
const hoverCardFn = (props = {}) => {
|
|
36
|
+
return Object.fromEntries(hoverCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
37
|
+
}
|
|
38
38
|
|
|
39
39
|
const hoverCardVariantKeys = []
|
|
40
|
-
const getVariantProps = (variants) => ({ ...hoverCardDefaultVariants, ...compact(variants) })
|
|
41
40
|
|
|
42
41
|
export const hoverCard = /* @__PURE__ */ Object.assign(hoverCardFn, {
|
|
43
42
|
__recipe__: false,
|
|
@@ -48,5 +47,4 @@ export const hoverCard = /* @__PURE__ */ Object.assign(hoverCardFn, {
|
|
|
48
47
|
splitVariantProps(props) {
|
|
49
48
|
return splitProps(props, hoverCardVariantKeys)
|
|
50
49
|
},
|
|
51
|
-
getVariantProps
|
|
52
50
|
})
|
|
@@ -3,25 +3,10 @@ import type { ConditionalValue } from '../types/index.d.mts';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
4
|
|
|
5
5
|
interface IconVariant {
|
|
6
|
-
|
|
7
|
-
* @default "md"
|
|
8
|
-
*/
|
|
9
|
-
size: "xl" | "lg" | "md" | "sm" | "xs"
|
|
10
|
-
/**
|
|
11
|
-
* @default "none"
|
|
12
|
-
*/
|
|
6
|
+
size: "xl" | "lg" | "md" | "sm" | "xs"
|
|
13
7
|
left: "none" | "sm" | "auto"
|
|
14
|
-
/**
|
|
15
|
-
* @default "none"
|
|
16
|
-
*/
|
|
17
8
|
right: "none" | "sm" | "auto"
|
|
18
|
-
/**
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
9
|
fillCurrent: boolean
|
|
22
|
-
/**
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
10
|
dimmed: boolean
|
|
26
11
|
}
|
|
27
12
|
|
|
@@ -40,12 +25,7 @@ export interface IconRecipe {
|
|
|
40
25
|
variantMap: IconVariantMap
|
|
41
26
|
variantKeys: Array<keyof IconVariant>
|
|
42
27
|
splitVariantProps<Props extends IconVariantProps>(props: Props): [IconVariantProps, Pretty<DistributiveOmit<Props, keyof IconVariantProps>>]
|
|
43
|
-
getVariantProps: (props?: IconVariantProps) => IconVariantProps
|
|
44
28
|
}
|
|
45
29
|
|
|
46
|
-
/**
|
|
47
|
-
* Styles for the icons
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*/
|
|
30
|
+
/** Styles for the icons */
|
|
51
31
|
export declare const icon: IconRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const iconFn = /* @__PURE__ */ createRecipe('icon', {
|
|
@@ -37,10 +37,9 @@ const iconVariantMap = {
|
|
|
37
37
|
|
|
38
38
|
const iconVariantKeys = Object.keys(iconVariantMap)
|
|
39
39
|
|
|
40
|
-
export const icon = /* @__PURE__ */ Object.assign(
|
|
40
|
+
export const icon = /* @__PURE__ */ Object.assign(iconFn, {
|
|
41
41
|
__recipe__: true,
|
|
42
42
|
__name__: 'icon',
|
|
43
|
-
__getCompoundVariantCss__: iconFn.__getCompoundVariantCss__,
|
|
44
43
|
raw: (props) => props,
|
|
45
44
|
variantKeys: iconVariantKeys,
|
|
46
45
|
variantMap: iconVariantMap,
|
|
@@ -50,5 +49,4 @@ export const icon = /* @__PURE__ */ Object.assign(memo(iconFn.recipeFn), {
|
|
|
50
49
|
splitVariantProps(props) {
|
|
51
50
|
return splitProps(props, iconVariantKeys)
|
|
52
51
|
},
|
|
53
|
-
getVariantProps: iconFn.getVariantProps,
|
|
54
52
|
})
|
|
@@ -21,12 +21,7 @@ export interface InlineCodeRecipe {
|
|
|
21
21
|
variantMap: InlineCodeVariantMap
|
|
22
22
|
variantKeys: Array<keyof InlineCodeVariant>
|
|
23
23
|
splitVariantProps<Props extends InlineCodeVariantProps>(props: Props): [InlineCodeVariantProps, Pretty<DistributiveOmit<Props, keyof InlineCodeVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: InlineCodeVariantProps) => InlineCodeVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Typography - InlineCode style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Typography - InlineCode style */
|
|
32
27
|
export declare const inlineCode: InlineCodeRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const inlineCodeFn = /* @__PURE__ */ createRecipe('inlineCode', {}, [])
|
|
@@ -7,10 +7,9 @@ const inlineCodeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const inlineCodeVariantKeys = Object.keys(inlineCodeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const inlineCode = /* @__PURE__ */ Object.assign(
|
|
10
|
+
export const inlineCode = /* @__PURE__ */ Object.assign(inlineCodeFn, {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'inlineCode',
|
|
13
|
-
__getCompoundVariantCss__: inlineCodeFn.__getCompoundVariantCss__,
|
|
14
13
|
raw: (props) => props,
|
|
15
14
|
variantKeys: inlineCodeVariantKeys,
|
|
16
15
|
variantMap: inlineCodeVariantMap,
|
|
@@ -20,5 +19,4 @@ export const inlineCode = /* @__PURE__ */ Object.assign(memo(inlineCodeFn.recipe
|
|
|
20
19
|
splitVariantProps(props) {
|
|
21
20
|
return splitProps(props, inlineCodeVariantKeys)
|
|
22
21
|
},
|
|
23
|
-
getVariantProps: inlineCodeFn.getVariantProps,
|
|
24
22
|
})
|
|
@@ -21,12 +21,7 @@ export interface InputRecipe {
|
|
|
21
21
|
variantMap: InputVariantMap
|
|
22
22
|
variantKeys: Array<keyof InputVariant>
|
|
23
23
|
splitVariantProps<Props extends InputVariantProps>(props: Props): [InputVariantProps, Pretty<DistributiveOmit<Props, keyof InputVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: InputVariantProps) => InputVariantProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Input component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
26
|
+
/** Styles for the Input component */
|
|
32
27
|
export declare const input: InputRecipe
|