@luxonis/common-fe-components 1.19.0 → 1.20.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 +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 +1 -0
- package/dist/components/custom/Form.d.ts.map +1 -1
- package/dist/components/custom/Form.js +2 -2
- package/dist/components/custom/Form.js.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 +2 -0
- package/dist/components/custom/Tooltip.d.ts.map +1 -1
- package/dist/components/custom/Tooltip.js +14 -2
- 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 +8 -8
- 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 { 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 separatorFn = /* @__PURE__ */ createRecipe('separator', {
|
|
@@ -14,9 +14,10 @@ const separatorVariantMap = {
|
|
|
14
14
|
|
|
15
15
|
const separatorVariantKeys = Object.keys(separatorVariantMap)
|
|
16
16
|
|
|
17
|
-
export const separator = /* @__PURE__ */ Object.assign(separatorFn, {
|
|
17
|
+
export const separator = /* @__PURE__ */ Object.assign(memo(separatorFn.recipeFn), {
|
|
18
18
|
__recipe__: true,
|
|
19
19
|
__name__: 'separator',
|
|
20
|
+
__getCompoundVariantCss__: separatorFn.__getCompoundVariantCss__,
|
|
20
21
|
raw: (props) => props,
|
|
21
22
|
variantKeys: separatorVariantKeys,
|
|
22
23
|
variantMap: separatorVariantMap,
|
|
@@ -26,4 +27,5 @@ export const separator = /* @__PURE__ */ Object.assign(separatorFn, {
|
|
|
26
27
|
splitVariantProps(props) {
|
|
27
28
|
return splitProps(props, separatorVariantKeys)
|
|
28
29
|
},
|
|
30
|
+
getVariantProps: separatorFn.getVariantProps,
|
|
29
31
|
})
|
|
@@ -3,7 +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 SheetVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "right"
|
|
8
|
+
*/
|
|
9
|
+
side: "top" | "bottom" | "left" | "right"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type SheetVariantMap = {
|
|
@@ -21,7 +24,12 @@ export interface SheetRecipe {
|
|
|
21
24
|
variantMap: SheetVariantMap
|
|
22
25
|
variantKeys: Array<keyof SheetVariant>
|
|
23
26
|
splitVariantProps<Props extends SheetVariantProps>(props: Props): [SheetVariantProps, Pretty<DistributiveOmit<Props, keyof SheetVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: SheetVariantProps) => SheetVariantProps
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the Sheet component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
27
35
|
export declare const sheet: SheetRecipe
|
|
@@ -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 sheetDefaultVariants = {
|
|
@@ -98,13 +98,14 @@ const sheetSlotNames = [
|
|
|
98
98
|
]
|
|
99
99
|
const sheetSlotFns = /* @__PURE__ */ sheetSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sheetDefaultVariants, getSlotCompoundVariant(sheetCompoundVariants, slotName))])
|
|
100
100
|
|
|
101
|
-
const sheetFn = (props = {}) => {
|
|
102
|
-
return Object.fromEntries(sheetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
103
|
-
}
|
|
101
|
+
const sheetFn = memo((props = {}) => {
|
|
102
|
+
return Object.fromEntries(sheetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
103
|
+
})
|
|
104
104
|
|
|
105
105
|
const sheetVariantKeys = [
|
|
106
106
|
"side"
|
|
107
107
|
]
|
|
108
|
+
const getVariantProps = (variants) => ({ ...sheetDefaultVariants, ...compact(variants) })
|
|
108
109
|
|
|
109
110
|
export const sheet = /* @__PURE__ */ Object.assign(sheetFn, {
|
|
110
111
|
__recipe__: false,
|
|
@@ -122,4 +123,5 @@ export const sheet = /* @__PURE__ */ Object.assign(sheetFn, {
|
|
|
122
123
|
splitVariantProps(props) {
|
|
123
124
|
return splitProps(props, sheetVariantKeys)
|
|
124
125
|
},
|
|
126
|
+
getVariantProps
|
|
125
127
|
})
|
|
@@ -21,7 +21,12 @@ export interface SkeletonRecipe {
|
|
|
21
21
|
variantMap: SkeletonVariantMap
|
|
22
22
|
variantKeys: Array<keyof SkeletonVariant>
|
|
23
23
|
splitVariantProps<Props extends SkeletonVariantProps>(props: Props): [SkeletonVariantProps, Pretty<DistributiveOmit<Props, keyof SkeletonVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SkeletonVariantProps) => SkeletonVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Skeleton component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const skeleton: SkeletonRecipe
|
|
@@ -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 skeletonFn = /* @__PURE__ */ createRecipe('skeleton', {}, [])
|
|
@@ -7,9 +7,10 @@ const skeletonVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const skeletonVariantKeys = Object.keys(skeletonVariantMap)
|
|
9
9
|
|
|
10
|
-
export const skeleton = /* @__PURE__ */ Object.assign(skeletonFn, {
|
|
10
|
+
export const skeleton = /* @__PURE__ */ Object.assign(memo(skeletonFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'skeleton',
|
|
13
|
+
__getCompoundVariantCss__: skeletonFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: skeletonVariantKeys,
|
|
15
16
|
variantMap: skeletonVariantMap,
|
|
@@ -19,4 +20,5 @@ export const skeleton = /* @__PURE__ */ Object.assign(skeletonFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, skeletonVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: skeletonFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface SliderRecipe {
|
|
|
21
21
|
variantMap: SliderVariantMap
|
|
22
22
|
variantKeys: Array<keyof SliderVariant>
|
|
23
23
|
splitVariantProps<Props extends SliderVariantProps>(props: Props): [SliderVariantProps, Pretty<DistributiveOmit<Props, keyof SliderVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SliderVariantProps) => SliderVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Slider component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const slider: SliderRecipe
|
|
@@ -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 sliderDefaultVariants = {}
|
|
@@ -40,11 +40,12 @@ const sliderSlotNames = [
|
|
|
40
40
|
]
|
|
41
41
|
const sliderSlotFns = /* @__PURE__ */ sliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderDefaultVariants, getSlotCompoundVariant(sliderCompoundVariants, slotName))])
|
|
42
42
|
|
|
43
|
-
const sliderFn = (props = {}) => {
|
|
44
|
-
return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
45
|
-
}
|
|
43
|
+
const sliderFn = memo((props = {}) => {
|
|
44
|
+
return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
45
|
+
})
|
|
46
46
|
|
|
47
47
|
const sliderVariantKeys = []
|
|
48
|
+
const getVariantProps = (variants) => ({ ...sliderDefaultVariants, ...compact(variants) })
|
|
48
49
|
|
|
49
50
|
export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
|
|
50
51
|
__recipe__: false,
|
|
@@ -55,4 +56,5 @@ export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
|
|
|
55
56
|
splitVariantProps(props) {
|
|
56
57
|
return splitProps(props, sliderVariantKeys)
|
|
57
58
|
},
|
|
59
|
+
getVariantProps
|
|
58
60
|
})
|
|
@@ -21,7 +21,12 @@ export interface SmallRecipe {
|
|
|
21
21
|
variantMap: SmallVariantMap
|
|
22
22
|
variantKeys: Array<keyof SmallVariant>
|
|
23
23
|
splitVariantProps<Props extends SmallVariantProps>(props: Props): [SmallVariantProps, Pretty<DistributiveOmit<Props, keyof SmallVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SmallVariantProps) => SmallVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - Small style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const small: SmallRecipe
|
|
@@ -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 smallFn = /* @__PURE__ */ createRecipe('small', {}, [])
|
|
@@ -7,9 +7,10 @@ const smallVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const smallVariantKeys = Object.keys(smallVariantMap)
|
|
9
9
|
|
|
10
|
-
export const small = /* @__PURE__ */ Object.assign(smallFn, {
|
|
10
|
+
export const small = /* @__PURE__ */ Object.assign(memo(smallFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'small',
|
|
13
|
+
__getCompoundVariantCss__: smallFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: smallVariantKeys,
|
|
15
16
|
variantMap: smallVariantMap,
|
|
@@ -19,4 +20,5 @@ export const small = /* @__PURE__ */ Object.assign(smallFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, smallVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: smallFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface SwitchRecipeRecipe {
|
|
|
21
21
|
variantMap: SwitchRecipeVariantMap
|
|
22
22
|
variantKeys: Array<keyof SwitchRecipeVariant>
|
|
23
23
|
splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Switch component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const switchRecipe: SwitchRecipeRecipe
|
|
@@ -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 switchRecipeDefaultVariants = {}
|
|
@@ -24,11 +24,12 @@ const switchRecipeSlotNames = [
|
|
|
24
24
|
]
|
|
25
25
|
const switchRecipeSlotFns = /* @__PURE__ */ switchRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, switchRecipeDefaultVariants, getSlotCompoundVariant(switchRecipeCompoundVariants, slotName))])
|
|
26
26
|
|
|
27
|
-
const switchRecipeFn = (props = {}) => {
|
|
28
|
-
return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
-
}
|
|
27
|
+
const switchRecipeFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
30
|
|
|
31
31
|
const switchRecipeVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...switchRecipeDefaultVariants, ...compact(variants) })
|
|
32
33
|
|
|
33
34
|
export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, {
|
|
34
35
|
__recipe__: false,
|
|
@@ -39,4 +40,5 @@ export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, {
|
|
|
39
40
|
splitVariantProps(props) {
|
|
40
41
|
return splitProps(props, switchRecipeVariantKeys)
|
|
41
42
|
},
|
|
43
|
+
getVariantProps
|
|
42
44
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableBodyRecipe {
|
|
|
21
21
|
variantMap: TableBodyVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableBodyVariant>
|
|
23
23
|
splitVariantProps<Props extends TableBodyVariantProps>(props: Props): [TableBodyVariantProps, Pretty<DistributiveOmit<Props, keyof TableBodyVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableBodyVariantProps) => TableBodyVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableBody component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableBody: TableBodyRecipe
|
|
@@ -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 tableBodyFn = /* @__PURE__ */ createRecipe('tableBody', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableBodyVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableBodyVariantKeys = Object.keys(tableBodyVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableBody = /* @__PURE__ */ Object.assign(tableBodyFn, {
|
|
10
|
+
export const tableBody = /* @__PURE__ */ Object.assign(memo(tableBodyFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableBody',
|
|
13
|
+
__getCompoundVariantCss__: tableBodyFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableBodyVariantKeys,
|
|
15
16
|
variantMap: tableBodyVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableBody = /* @__PURE__ */ Object.assign(tableBodyFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableBodyVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableBodyFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableCaptionRecipe {
|
|
|
21
21
|
variantMap: TableCaptionVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableCaptionVariant>
|
|
23
23
|
splitVariantProps<Props extends TableCaptionVariantProps>(props: Props): [TableCaptionVariantProps, Pretty<DistributiveOmit<Props, keyof TableCaptionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableCaptionVariantProps) => TableCaptionVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableCaption component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableCaption: TableCaptionRecipe
|
|
@@ -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 tableCaptionFn = /* @__PURE__ */ createRecipe('tableCaption', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableCaptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableCaptionVariantKeys = Object.keys(tableCaptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableCaption = /* @__PURE__ */ Object.assign(tableCaptionFn, {
|
|
10
|
+
export const tableCaption = /* @__PURE__ */ Object.assign(memo(tableCaptionFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableCaption',
|
|
13
|
+
__getCompoundVariantCss__: tableCaptionFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableCaptionVariantKeys,
|
|
15
16
|
variantMap: tableCaptionVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableCaption = /* @__PURE__ */ Object.assign(tableCaptionFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableCaptionVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableCaptionFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableCellRecipe {
|
|
|
21
21
|
variantMap: TableCellVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableCellVariant>
|
|
23
23
|
splitVariantProps<Props extends TableCellVariantProps>(props: Props): [TableCellVariantProps, Pretty<DistributiveOmit<Props, keyof TableCellVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableCellVariantProps) => TableCellVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableCell component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableCell: TableCellRecipe
|
|
@@ -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 tableCellFn = /* @__PURE__ */ createRecipe('tableCell', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableCellVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableCellVariantKeys = Object.keys(tableCellVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableCell = /* @__PURE__ */ Object.assign(tableCellFn, {
|
|
10
|
+
export const tableCell = /* @__PURE__ */ Object.assign(memo(tableCellFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableCell',
|
|
13
|
+
__getCompoundVariantCss__: tableCellFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableCellVariantKeys,
|
|
15
16
|
variantMap: tableCellVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableCell = /* @__PURE__ */ Object.assign(tableCellFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableCellVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableCellFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableContainerRecipe {
|
|
|
21
21
|
variantMap: TableContainerVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableContainerVariant>
|
|
23
23
|
splitVariantProps<Props extends TableContainerVariantProps>(props: Props): [TableContainerVariantProps, Pretty<DistributiveOmit<Props, keyof TableContainerVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableContainer component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableContainer: TableContainerRecipe
|
|
@@ -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 tableContainerFn = /* @__PURE__ */ createRecipe('tableContainer', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableContainerVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableContainerVariantKeys = Object.keys(tableContainerVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableContainer = /* @__PURE__ */ Object.assign(tableContainerFn, {
|
|
10
|
+
export const tableContainer = /* @__PURE__ */ Object.assign(memo(tableContainerFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableContainer',
|
|
13
|
+
__getCompoundVariantCss__: tableContainerFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableContainerVariantKeys,
|
|
15
16
|
variantMap: tableContainerVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableContainer = /* @__PURE__ */ Object.assign(tableContainerFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableContainerVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableContainerFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableFooterRecipe {
|
|
|
21
21
|
variantMap: TableFooterVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableFooterVariant>
|
|
23
23
|
splitVariantProps<Props extends TableFooterVariantProps>(props: Props): [TableFooterVariantProps, Pretty<DistributiveOmit<Props, keyof TableFooterVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableFooterVariantProps) => TableFooterVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableFooter component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableFooter: TableFooterRecipe
|
|
@@ -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 tableFooterFn = /* @__PURE__ */ createRecipe('tableFooter', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableFooterVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableFooterVariantKeys = Object.keys(tableFooterVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableFooter = /* @__PURE__ */ Object.assign(tableFooterFn, {
|
|
10
|
+
export const tableFooter = /* @__PURE__ */ Object.assign(memo(tableFooterFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableFooter',
|
|
13
|
+
__getCompoundVariantCss__: tableFooterFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableFooterVariantKeys,
|
|
15
16
|
variantMap: tableFooterVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableFooter = /* @__PURE__ */ Object.assign(tableFooterFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableFooterVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableFooterFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableHeadRecipe {
|
|
|
21
21
|
variantMap: TableHeadVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableHeadVariant>
|
|
23
23
|
splitVariantProps<Props extends TableHeadVariantProps>(props: Props): [TableHeadVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeadVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableHeadVariantProps) => TableHeadVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableHead component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableHead: TableHeadRecipe
|
|
@@ -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 tableHeadFn = /* @__PURE__ */ createRecipe('tableHead', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableHeadVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableHeadVariantKeys = Object.keys(tableHeadVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableHead = /* @__PURE__ */ Object.assign(tableHeadFn, {
|
|
10
|
+
export const tableHead = /* @__PURE__ */ Object.assign(memo(tableHeadFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableHead',
|
|
13
|
+
__getCompoundVariantCss__: tableHeadFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableHeadVariantKeys,
|
|
15
16
|
variantMap: tableHeadVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableHead = /* @__PURE__ */ Object.assign(tableHeadFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableHeadVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableHeadFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableHeaderRecipe {
|
|
|
21
21
|
variantMap: TableHeaderVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableHeaderVariant>
|
|
23
23
|
splitVariantProps<Props extends TableHeaderVariantProps>(props: Props): [TableHeaderVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeaderVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableHeaderVariantProps) => TableHeaderVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableHeader component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableHeader: TableHeaderRecipe
|
|
@@ -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 tableHeaderFn = /* @__PURE__ */ createRecipe('tableHeader', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableHeaderVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableHeaderVariantKeys = Object.keys(tableHeaderVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableHeader = /* @__PURE__ */ Object.assign(tableHeaderFn, {
|
|
10
|
+
export const tableHeader = /* @__PURE__ */ Object.assign(memo(tableHeaderFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableHeader',
|
|
13
|
+
__getCompoundVariantCss__: tableHeaderFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableHeaderVariantKeys,
|
|
15
16
|
variantMap: tableHeaderVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableHeader = /* @__PURE__ */ Object.assign(tableHeaderFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableHeaderVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableHeaderFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableRowRecipe {
|
|
|
21
21
|
variantMap: TableRowVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableRowVariant>
|
|
23
23
|
splitVariantProps<Props extends TableRowVariantProps>(props: Props): [TableRowVariantProps, Pretty<DistributiveOmit<Props, keyof TableRowVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableRowVariantProps) => TableRowVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableRow component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tableRow: TableRowRecipe
|
|
@@ -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 tableRowFn = /* @__PURE__ */ createRecipe('tableRow', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableRowVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableRowVariantKeys = Object.keys(tableRowVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableRow = /* @__PURE__ */ Object.assign(tableRowFn, {
|
|
10
|
+
export const tableRow = /* @__PURE__ */ Object.assign(memo(tableRowFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableRow',
|
|
13
|
+
__getCompoundVariantCss__: tableRowFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableRowVariantKeys,
|
|
15
16
|
variantMap: tableRowVariantMap,
|
|
@@ -19,4 +20,5 @@ export const tableRow = /* @__PURE__ */ Object.assign(tableRowFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableRowVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableRowFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TableRecipe {
|
|
|
21
21
|
variantMap: TableVariantMap
|
|
22
22
|
variantKeys: Array<keyof TableVariant>
|
|
23
23
|
splitVariantProps<Props extends TableVariantProps>(props: Props): [TableVariantProps, Pretty<DistributiveOmit<Props, keyof TableVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableVariantProps) => TableVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Table component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const table: TableRecipe
|
|
@@ -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 tableFn = /* @__PURE__ */ createRecipe('table', {}, [])
|
|
@@ -7,9 +7,10 @@ const tableVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableVariantKeys = Object.keys(tableVariantMap)
|
|
9
9
|
|
|
10
|
-
export const table = /* @__PURE__ */ Object.assign(tableFn, {
|
|
10
|
+
export const table = /* @__PURE__ */ Object.assign(memo(tableFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'table',
|
|
13
|
+
__getCompoundVariantCss__: tableFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableVariantKeys,
|
|
15
16
|
variantMap: tableVariantMap,
|
|
@@ -19,4 +20,5 @@ export const table = /* @__PURE__ */ Object.assign(tableFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, tableVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: tableFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface TabsRecipe {
|
|
|
21
21
|
variantMap: TabsVariantMap
|
|
22
22
|
variantKeys: Array<keyof TabsVariant>
|
|
23
23
|
splitVariantProps<Props extends TabsVariantProps>(props: Props): [TabsVariantProps, Pretty<DistributiveOmit<Props, keyof TabsVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TabsVariantProps) => TabsVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Tabs component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const tabs: TabsRecipe
|
|
@@ -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 tabsDefaultVariants = {}
|
|
@@ -40,11 +40,12 @@ const tabsSlotNames = [
|
|
|
40
40
|
]
|
|
41
41
|
const tabsSlotFns = /* @__PURE__ */ tabsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tabsDefaultVariants, getSlotCompoundVariant(tabsCompoundVariants, slotName))])
|
|
42
42
|
|
|
43
|
-
const tabsFn = (props = {}) => {
|
|
44
|
-
return Object.fromEntries(tabsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
45
|
-
}
|
|
43
|
+
const tabsFn = memo((props = {}) => {
|
|
44
|
+
return Object.fromEntries(tabsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
45
|
+
})
|
|
46
46
|
|
|
47
47
|
const tabsVariantKeys = []
|
|
48
|
+
const getVariantProps = (variants) => ({ ...tabsDefaultVariants, ...compact(variants) })
|
|
48
49
|
|
|
49
50
|
export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
|
|
50
51
|
__recipe__: false,
|
|
@@ -55,4 +56,5 @@ export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
|
|
|
55
56
|
splitVariantProps(props) {
|
|
56
57
|
return splitProps(props, tabsVariantKeys)
|
|
57
58
|
},
|
|
59
|
+
getVariantProps
|
|
58
60
|
})
|