@luxonis/common-fe-components 1.19.0 → 1.19.1
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 +1 -0
- package/dist/components/custom/Alert.d.ts.map +1 -1
- package/dist/components/custom/Badge.d.ts +1 -0
- 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 +918 -822
- 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/FilterDropdown.js +5 -0
- package/dist/components/custom/FilterDropdown.js.map +1 -1
- package/dist/components/custom/Form.d.ts.map +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/ProgressTicker.d.ts +1 -0
- package/dist/components/custom/ProgressTicker.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +1840 -1648
- 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 +1835 -1643
- 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/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 +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 +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 +24 -15
- package/dist/panda.css +1682 -1621
- package/dist/panda.d.ts.map +1 -1
- package/dist/panda.js +3 -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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const contextMenuDefaultVariants = {
|
|
@@ -138,13 +138,14 @@ const contextMenuSlotNames = [
|
|
|
138
138
|
]
|
|
139
139
|
const contextMenuSlotFns = /* @__PURE__ */ contextMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, contextMenuDefaultVariants, getSlotCompoundVariant(contextMenuCompoundVariants, slotName))])
|
|
140
140
|
|
|
141
|
-
const contextMenuFn = (props = {}) => {
|
|
142
|
-
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
143
|
-
}
|
|
141
|
+
const contextMenuFn = memo((props = {}) => {
|
|
142
|
+
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
143
|
+
})
|
|
144
144
|
|
|
145
145
|
const contextMenuVariantKeys = [
|
|
146
146
|
"inset"
|
|
147
147
|
]
|
|
148
|
+
const getVariantProps = (variants) => ({ ...contextMenuDefaultVariants, ...compact(variants) })
|
|
148
149
|
|
|
149
150
|
export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
150
151
|
__recipe__: false,
|
|
@@ -159,4 +160,5 @@ export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
|
159
160
|
splitVariantProps(props) {
|
|
160
161
|
return splitProps(props, contextMenuVariantKeys)
|
|
161
162
|
},
|
|
163
|
+
getVariantProps
|
|
162
164
|
})
|
|
@@ -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 getVariantProps = (variants) => {
|
|
9
9
|
return {
|
|
10
10
|
[name]: '__ignore__',
|
|
11
11
|
...defaultVariants,
|
|
@@ -34,11 +34,12 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
34
34
|
},
|
|
35
35
|
utility: {
|
|
36
36
|
|
|
37
|
+
toHash: (path, hashFn) => hashFn(path.join(":")),
|
|
37
38
|
transform,
|
|
38
39
|
}
|
|
39
40
|
})
|
|
40
41
|
|
|
41
|
-
const recipeStyles =
|
|
42
|
+
const recipeStyles = getVariantProps(variants)
|
|
42
43
|
|
|
43
44
|
if (withCompoundVariants) {
|
|
44
45
|
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
@@ -48,11 +49,13 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
48
49
|
return recipeCss(recipeStyles)
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
return
|
|
52
|
+
return {
|
|
53
|
+
recipeFn,
|
|
54
|
+
getVariantProps,
|
|
52
55
|
__getCompoundVariantCss__: (variants) => {
|
|
53
|
-
return getCompoundVariantCss(compoundVariants,
|
|
56
|
+
return getCompoundVariantCss(compoundVariants, getVariantProps(variants));
|
|
54
57
|
},
|
|
55
|
-
}
|
|
58
|
+
}
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
export const mergeRecipes = (recipeA, recipeB) => {
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Dialog component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const dialog: DialogRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dialogDefaultVariants = {}
|
|
@@ -88,11 +88,12 @@ 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 = (props = {}) => {
|
|
92
|
-
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
93
|
-
}
|
|
91
|
+
const dialogFn = memo((props = {}) => {
|
|
92
|
+
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
93
|
+
})
|
|
94
94
|
|
|
95
95
|
const dialogVariantKeys = []
|
|
96
|
+
const getVariantProps = (variants) => ({ ...dialogDefaultVariants, ...compact(variants) })
|
|
96
97
|
|
|
97
98
|
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
98
99
|
__recipe__: false,
|
|
@@ -103,4 +104,5 @@ export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
|
103
104
|
splitVariantProps(props) {
|
|
104
105
|
return splitProps(props, dialogVariantKeys)
|
|
105
106
|
},
|
|
107
|
+
getVariantProps
|
|
106
108
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the DropdownMenu component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const dropdownMenu: DropdownMenuRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dropdownMenuDefaultVariants = {}
|
|
@@ -136,11 +136,12 @@ 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 = (props = {}) => {
|
|
140
|
-
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
141
|
-
}
|
|
139
|
+
const dropdownMenuFn = memo((props = {}) => {
|
|
140
|
+
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
141
|
+
})
|
|
142
142
|
|
|
143
143
|
const dropdownMenuVariantKeys = []
|
|
144
|
+
const getVariantProps = (variants) => ({ ...dropdownMenuDefaultVariants, ...compact(variants) })
|
|
144
145
|
|
|
145
146
|
export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
146
147
|
__recipe__: false,
|
|
@@ -151,4 +152,5 @@ export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
|
151
152
|
splitVariantProps(props) {
|
|
152
153
|
return splitProps(props, dropdownMenuVariantKeys)
|
|
153
154
|
},
|
|
155
|
+
getVariantProps
|
|
154
156
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormControl component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const formControl: FormControlRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formControlFn = /* @__PURE__ */ createRecipe('formControl', {}, [])
|
|
@@ -7,9 +7,10 @@ const formControlVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formControl = /* @__PURE__ */ Object.assign(formControlFn, {
|
|
10
|
+
export const formControl = /* @__PURE__ */ Object.assign(memo(formControlFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formControl',
|
|
13
|
+
__getCompoundVariantCss__: formControlFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formControlVariantKeys,
|
|
15
16
|
variantMap: formControlVariantMap,
|
|
@@ -19,4 +20,5 @@ export const formControl = /* @__PURE__ */ Object.assign(formControlFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, formControlVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: formControlFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormDescription component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const formDescription: FormDescriptionRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formDescriptionFn = /* @__PURE__ */ createRecipe('formDescription', {}, [])
|
|
@@ -7,9 +7,10 @@ const formDescriptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formDescriptionVariantKeys = Object.keys(formDescriptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formDescription = /* @__PURE__ */ Object.assign(formDescriptionFn, {
|
|
10
|
+
export const formDescription = /* @__PURE__ */ Object.assign(memo(formDescriptionFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formDescription',
|
|
13
|
+
__getCompoundVariantCss__: formDescriptionFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formDescriptionVariantKeys,
|
|
15
16
|
variantMap: formDescriptionVariantMap,
|
|
@@ -19,4 +20,5 @@ export const formDescription = /* @__PURE__ */ Object.assign(formDescriptionFn,
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, formDescriptionVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: formDescriptionFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormItem component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const formItem: FormItemRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formItemFn = /* @__PURE__ */ createRecipe('formItem', {}, [])
|
|
@@ -7,9 +7,10 @@ const formItemVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formItemVariantKeys = Object.keys(formItemVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formItem = /* @__PURE__ */ Object.assign(formItemFn, {
|
|
10
|
+
export const formItem = /* @__PURE__ */ Object.assign(memo(formItemFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formItem',
|
|
13
|
+
__getCompoundVariantCss__: formItemFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formItemVariantKeys,
|
|
15
16
|
variantMap: formItemVariantMap,
|
|
@@ -19,4 +20,5 @@ export const formItem = /* @__PURE__ */ Object.assign(formItemFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, formItemVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: formItemFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormLabel component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const formLabel: FormLabelRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formLabelFn = /* @__PURE__ */ createRecipe('formLabel', {}, [])
|
|
@@ -7,9 +7,10 @@ const formLabelVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formLabelVariantKeys = Object.keys(formLabelVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
10
|
+
export const formLabel = /* @__PURE__ */ Object.assign(memo(formLabelFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formLabel',
|
|
13
|
+
__getCompoundVariantCss__: formLabelFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formLabelVariantKeys,
|
|
15
16
|
variantMap: formLabelVariantMap,
|
|
@@ -19,4 +20,5 @@ export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, formLabelVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: formLabelFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormMessage component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const formMessage: FormMessageRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formMessageFn = /* @__PURE__ */ createRecipe('formMessage', {}, [])
|
|
@@ -7,9 +7,10 @@ const formMessageVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formMessageVariantKeys = Object.keys(formMessageVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formMessage = /* @__PURE__ */ Object.assign(formMessageFn, {
|
|
10
|
+
export const formMessage = /* @__PURE__ */ Object.assign(memo(formMessageFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formMessage',
|
|
13
|
+
__getCompoundVariantCss__: formMessageFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formMessageVariantKeys,
|
|
15
16
|
variantMap: formMessageVariantMap,
|
|
@@ -19,4 +20,5 @@ export const formMessage = /* @__PURE__ */ Object.assign(formMessageFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, formMessageVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: formMessageFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h1 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const h1: H1Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h1Fn = /* @__PURE__ */ createRecipe('h1', {}, [])
|
|
@@ -7,9 +7,10 @@ const h1VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h1VariantKeys = Object.keys(h1VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h1 = /* @__PURE__ */ Object.assign(h1Fn, {
|
|
10
|
+
export const h1 = /* @__PURE__ */ Object.assign(memo(h1Fn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h1',
|
|
13
|
+
__getCompoundVariantCss__: h1Fn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: h1VariantKeys,
|
|
15
16
|
variantMap: h1VariantMap,
|
|
@@ -19,4 +20,5 @@ export const h1 = /* @__PURE__ */ Object.assign(h1Fn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, h1VariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: h1Fn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h2 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const h2: H2Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h2Fn = /* @__PURE__ */ createRecipe('h2', {}, [])
|
|
@@ -7,9 +7,10 @@ const h2VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h2VariantKeys = Object.keys(h2VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h2 = /* @__PURE__ */ Object.assign(h2Fn, {
|
|
10
|
+
export const h2 = /* @__PURE__ */ Object.assign(memo(h2Fn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h2',
|
|
13
|
+
__getCompoundVariantCss__: h2Fn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: h2VariantKeys,
|
|
15
16
|
variantMap: h2VariantMap,
|
|
@@ -19,4 +20,5 @@ export const h2 = /* @__PURE__ */ Object.assign(h2Fn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, h2VariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: h2Fn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h3 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const h3: H3Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h3Fn = /* @__PURE__ */ createRecipe('h3', {}, [])
|
|
@@ -7,9 +7,10 @@ const h3VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h3VariantKeys = Object.keys(h3VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h3 = /* @__PURE__ */ Object.assign(h3Fn, {
|
|
10
|
+
export const h3 = /* @__PURE__ */ Object.assign(memo(h3Fn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h3',
|
|
13
|
+
__getCompoundVariantCss__: h3Fn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: h3VariantKeys,
|
|
15
16
|
variantMap: h3VariantMap,
|
|
@@ -19,4 +20,5 @@ export const h3 = /* @__PURE__ */ Object.assign(h3Fn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, h3VariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: h3Fn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h4 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const h4: H4Recipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h4Fn = /* @__PURE__ */ createRecipe('h4', {}, [])
|
|
@@ -7,9 +7,10 @@ const h4VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h4VariantKeys = Object.keys(h4VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h4 = /* @__PURE__ */ Object.assign(h4Fn, {
|
|
10
|
+
export const h4 = /* @__PURE__ */ Object.assign(memo(h4Fn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h4',
|
|
13
|
+
__getCompoundVariantCss__: h4Fn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: h4VariantKeys,
|
|
15
16
|
variantMap: h4VariantMap,
|
|
@@ -19,4 +20,5 @@ export const h4 = /* @__PURE__ */ Object.assign(h4Fn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, h4VariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: h4Fn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the HoverCard component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const hoverCard: HoverCardRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const hoverCardDefaultVariants = {}
|
|
@@ -32,11 +32,12 @@ 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 = (props = {}) => {
|
|
36
|
-
return Object.fromEntries(hoverCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
37
|
-
}
|
|
35
|
+
const hoverCardFn = memo((props = {}) => {
|
|
36
|
+
return Object.fromEntries(hoverCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
37
|
+
})
|
|
38
38
|
|
|
39
39
|
const hoverCardVariantKeys = []
|
|
40
|
+
const getVariantProps = (variants) => ({ ...hoverCardDefaultVariants, ...compact(variants) })
|
|
40
41
|
|
|
41
42
|
export const hoverCard = /* @__PURE__ */ Object.assign(hoverCardFn, {
|
|
42
43
|
__recipe__: false,
|
|
@@ -47,4 +48,5 @@ export const hoverCard = /* @__PURE__ */ Object.assign(hoverCardFn, {
|
|
|
47
48
|
splitVariantProps(props) {
|
|
48
49
|
return splitProps(props, hoverCardVariantKeys)
|
|
49
50
|
},
|
|
51
|
+
getVariantProps
|
|
50
52
|
})
|
|
@@ -3,10 +3,25 @@ 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
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "xl" | "lg" | "md" | "sm" | "xs"
|
|
10
|
+
/**
|
|
11
|
+
* @default "none"
|
|
12
|
+
*/
|
|
7
13
|
left: "none" | "sm" | "auto"
|
|
14
|
+
/**
|
|
15
|
+
* @default "none"
|
|
16
|
+
*/
|
|
8
17
|
right: "none" | "sm" | "auto"
|
|
18
|
+
/**
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
9
21
|
fillCurrent: boolean
|
|
22
|
+
/**
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
10
25
|
dimmed: boolean
|
|
11
26
|
}
|
|
12
27
|
|
|
@@ -25,7 +40,12 @@ export interface IconRecipe {
|
|
|
25
40
|
variantMap: IconVariantMap
|
|
26
41
|
variantKeys: Array<keyof IconVariant>
|
|
27
42
|
splitVariantProps<Props extends IconVariantProps>(props: Props): [IconVariantProps, Pretty<DistributiveOmit<Props, keyof IconVariantProps>>]
|
|
43
|
+
getVariantProps: (props?: IconVariantProps) => IconVariantProps
|
|
28
44
|
}
|
|
29
45
|
|
|
30
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Styles for the icons
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
*/
|
|
31
51
|
export declare const icon: IconRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const iconFn = /* @__PURE__ */ createRecipe('icon', {
|
|
@@ -37,9 +37,10 @@ const iconVariantMap = {
|
|
|
37
37
|
|
|
38
38
|
const iconVariantKeys = Object.keys(iconVariantMap)
|
|
39
39
|
|
|
40
|
-
export const icon = /* @__PURE__ */ Object.assign(iconFn, {
|
|
40
|
+
export const icon = /* @__PURE__ */ Object.assign(memo(iconFn.recipeFn), {
|
|
41
41
|
__recipe__: true,
|
|
42
42
|
__name__: 'icon',
|
|
43
|
+
__getCompoundVariantCss__: iconFn.__getCompoundVariantCss__,
|
|
43
44
|
raw: (props) => props,
|
|
44
45
|
variantKeys: iconVariantKeys,
|
|
45
46
|
variantMap: iconVariantMap,
|
|
@@ -49,4 +50,5 @@ export const icon = /* @__PURE__ */ Object.assign(iconFn, {
|
|
|
49
50
|
splitVariantProps(props) {
|
|
50
51
|
return splitProps(props, iconVariantKeys)
|
|
51
52
|
},
|
|
53
|
+
getVariantProps: iconFn.getVariantProps,
|
|
52
54
|
})
|
|
@@ -21,7 +21,12 @@ 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
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - InlineCode style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const inlineCode: InlineCodeRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const inlineCodeFn = /* @__PURE__ */ createRecipe('inlineCode', {}, [])
|
|
@@ -7,9 +7,10 @@ const inlineCodeVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const inlineCodeVariantKeys = Object.keys(inlineCodeVariantMap)
|
|
9
9
|
|
|
10
|
-
export const inlineCode = /* @__PURE__ */ Object.assign(inlineCodeFn, {
|
|
10
|
+
export const inlineCode = /* @__PURE__ */ Object.assign(memo(inlineCodeFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'inlineCode',
|
|
13
|
+
__getCompoundVariantCss__: inlineCodeFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: inlineCodeVariantKeys,
|
|
15
16
|
variantMap: inlineCodeVariantMap,
|
|
@@ -19,4 +20,5 @@ export const inlineCode = /* @__PURE__ */ Object.assign(inlineCodeFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, inlineCodeVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: inlineCodeFn.getVariantProps,
|
|
22
24
|
})
|