@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,14 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface GridProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
columnGap?:
|
|
11
|
-
rowGap?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
columnGap?: SystemProperties["gap"]
|
|
11
|
+
rowGap?: SystemProperties["gap"]
|
|
12
12
|
columns?: ConditionalValue<number>
|
|
13
13
|
minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
|
|
14
14
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const gridConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const getValue = (v) => regex.test(v) ? v : `token(sizes.${v}, ${v})`;
|
|
5
|
+
transform(props, { map, isCssUnit }) {
|
|
6
|
+
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
|
|
7
|
+
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
9
8
|
return {
|
|
10
9
|
display: "grid",
|
|
11
10
|
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
@@ -14,9 +13,15 @@ transform(props, { map }) {
|
|
|
14
13
|
rowGap,
|
|
15
14
|
...rest
|
|
16
15
|
};
|
|
16
|
+
},
|
|
17
|
+
defaultValues(props) {
|
|
18
|
+
return { gap: props.columnGap || props.rowGap ? void 0 : "10px" };
|
|
17
19
|
}}
|
|
18
20
|
|
|
19
|
-
export const getGridStyle = (styles = {}) =>
|
|
21
|
+
export const getGridStyle = (styles = {}) => {
|
|
22
|
+
const _styles = getPatternStyles(gridConfig, styles)
|
|
23
|
+
return gridConfig.transform(_styles, patternFns)
|
|
24
|
+
}
|
|
20
25
|
|
|
21
26
|
export const grid = (styles) => css(getGridStyle(styles))
|
|
22
27
|
grid.raw = getGridStyle
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface HstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const hstackConfig = {
|
|
5
5
|
transform(props) {
|
|
6
|
-
const { justify, gap
|
|
6
|
+
const { justify, gap, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
@@ -12,9 +12,13 @@ transform(props) {
|
|
|
12
12
|
flexDirection: "row",
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
defaultValues:{gap:'10px'}}
|
|
16
17
|
|
|
17
|
-
export const getHstackStyle = (styles = {}) =>
|
|
18
|
+
export const getHstackStyle = (styles = {}) => {
|
|
19
|
+
const _styles = getPatternStyles(hstackConfig, styles)
|
|
20
|
+
return hstackConfig.transform(_styles, patternFns)
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
export const hstack = (styles) => css(getHstackStyle(styles))
|
|
20
24
|
hstack.raw = getHstackStyle
|
|
@@ -8,7 +8,6 @@ export * from './spacer.d.mts';
|
|
|
8
8
|
export * from './square.d.mts';
|
|
9
9
|
export * from './circle.d.mts';
|
|
10
10
|
export * from './center.d.mts';
|
|
11
|
-
export * from './link-box.d.mts';
|
|
12
11
|
export * from './link-overlay.d.mts';
|
|
13
12
|
export * from './aspect-ratio.d.mts';
|
|
14
13
|
export * from './grid.d.mts';
|
|
@@ -18,4 +17,5 @@ export * from './container.d.mts';
|
|
|
18
17
|
export * from './divider.d.mts';
|
|
19
18
|
export * from './float.d.mts';
|
|
20
19
|
export * from './bleed.d.mts';
|
|
21
|
-
export * from './visually-hidden.d.mts';
|
|
20
|
+
export * from './visually-hidden.d.mts';
|
|
21
|
+
export * from './cq.d.mts';
|
|
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
|
|
|
7
7
|
export * from './square.mjs';
|
|
8
8
|
export * from './circle.mjs';
|
|
9
9
|
export * from './center.mjs';
|
|
10
|
-
export * from './link-box.mjs';
|
|
11
10
|
export * from './link-overlay.mjs';
|
|
12
11
|
export * from './aspect-ratio.mjs';
|
|
13
12
|
export * from './grid.mjs';
|
|
@@ -17,4 +16,5 @@ export * from './container.mjs';
|
|
|
17
16
|
export * from './divider.mjs';
|
|
18
17
|
export * from './float.mjs';
|
|
19
18
|
export * from './bleed.mjs';
|
|
20
|
-
export * from './visually-hidden.mjs';
|
|
19
|
+
export * from './visually-hidden.mjs';
|
|
20
|
+
export * from './cq.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const linkOverlayConfig = {
|
|
5
5
|
transform(props) {
|
|
6
6
|
return {
|
|
7
|
-
position: "static",
|
|
8
7
|
_before: {
|
|
9
8
|
content: '""',
|
|
10
|
-
display: "block",
|
|
11
9
|
position: "absolute",
|
|
12
|
-
cursor: "inherit",
|
|
13
10
|
inset: "0",
|
|
14
11
|
zIndex: "0",
|
|
15
12
|
...props["_before"]
|
|
@@ -18,7 +15,10 @@ transform(props) {
|
|
|
18
15
|
};
|
|
19
16
|
}}
|
|
20
17
|
|
|
21
|
-
export const getLinkOverlayStyle = (styles = {}) =>
|
|
18
|
+
export const getLinkOverlayStyle = (styles = {}) => {
|
|
19
|
+
const _styles = getPatternStyles(linkOverlayConfig, styles)
|
|
20
|
+
return linkOverlayConfig.transform(_styles, patternFns)
|
|
21
|
+
}
|
|
22
22
|
|
|
23
23
|
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
|
|
24
24
|
linkOverlay.raw = getLinkOverlayStyle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const spacerConfig = {
|
|
@@ -12,7 +12,10 @@ transform(props, { map }) {
|
|
|
12
12
|
};
|
|
13
13
|
}}
|
|
14
14
|
|
|
15
|
-
export const getSpacerStyle = (styles = {}) =>
|
|
15
|
+
export const getSpacerStyle = (styles = {}) => {
|
|
16
|
+
const _styles = getPatternStyles(spacerConfig, styles)
|
|
17
|
+
return spacerConfig.transform(_styles, patternFns)
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
export const spacer = (styles) => css(getSpacerStyle(styles))
|
|
18
21
|
spacer.raw = getSpacerStyle
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface SquareProperties {
|
|
9
|
-
size?:
|
|
9
|
+
size?: SystemProperties["width"]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const squareConfig = {
|
|
@@ -15,7 +15,10 @@ transform(props) {
|
|
|
15
15
|
};
|
|
16
16
|
}}
|
|
17
17
|
|
|
18
|
-
export const getSquareStyle = (styles = {}) =>
|
|
18
|
+
export const getSquareStyle = (styles = {}) => {
|
|
19
|
+
const _styles = getPatternStyles(squareConfig, styles)
|
|
20
|
+
return squareConfig.transform(_styles, patternFns)
|
|
21
|
+
}
|
|
19
22
|
|
|
20
23
|
export const square = (styles) => css(getSquareStyle(styles))
|
|
21
24
|
square.raw = getSquareStyle
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface StackProperties {
|
|
9
|
-
align?:
|
|
10
|
-
justify?:
|
|
11
|
-
direction?:
|
|
12
|
-
gap?:
|
|
9
|
+
align?: SystemProperties["alignItems"]
|
|
10
|
+
justify?: SystemProperties["justifyContent"]
|
|
11
|
+
direction?: SystemProperties["flexDirection"]
|
|
12
|
+
gap?: SystemProperties["gap"]
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const stackConfig = {
|
|
5
5
|
transform(props) {
|
|
6
|
-
const { align, justify, direction
|
|
6
|
+
const { align, justify, direction, gap, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: direction,
|
|
@@ -12,9 +12,13 @@ transform(props) {
|
|
|
12
12
|
gap,
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
defaultValues:{direction:'column',gap:'10px'}}
|
|
16
17
|
|
|
17
|
-
export const getStackStyle = (styles = {}) =>
|
|
18
|
+
export const getStackStyle = (styles = {}) => {
|
|
19
|
+
const _styles = getPatternStyles(stackConfig, styles)
|
|
20
|
+
return stackConfig.transform(_styles, patternFns)
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
export const stack = (styles) => css(getStackStyle(styles))
|
|
20
24
|
stack.raw = getStackStyle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const visuallyHiddenConfig = {
|
|
@@ -9,7 +9,10 @@ transform(props) {
|
|
|
9
9
|
};
|
|
10
10
|
}}
|
|
11
11
|
|
|
12
|
-
export const getVisuallyHiddenStyle = (styles = {}) =>
|
|
12
|
+
export const getVisuallyHiddenStyle = (styles = {}) => {
|
|
13
|
+
const _styles = getPatternStyles(visuallyHiddenConfig, styles)
|
|
14
|
+
return visuallyHiddenConfig.transform(_styles, patternFns)
|
|
15
|
+
}
|
|
13
16
|
|
|
14
17
|
export const visuallyHidden = (styles) => css(getVisuallyHiddenStyle(styles))
|
|
15
18
|
visuallyHidden.raw = getVisuallyHiddenStyle
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface VstackProperties {
|
|
9
|
-
justify?:
|
|
10
|
-
gap?:
|
|
9
|
+
justify?: SystemProperties["justifyContent"]
|
|
10
|
+
gap?: SystemProperties["gap"]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const vstackConfig = {
|
|
5
5
|
transform(props) {
|
|
6
|
-
const { justify, gap
|
|
6
|
+
const { justify, gap, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
@@ -12,9 +12,13 @@ transform(props) {
|
|
|
12
12
|
flexDirection: "column",
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
defaultValues:{gap:'10px'}}
|
|
16
17
|
|
|
17
|
-
export const getVstackStyle = (styles = {}) =>
|
|
18
|
+
export const getVstackStyle = (styles = {}) => {
|
|
19
|
+
const _styles = getPatternStyles(vstackConfig, styles)
|
|
20
|
+
return vstackConfig.transform(_styles, patternFns)
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
export const vstack = (styles) => css(getVstackStyle(styles))
|
|
20
24
|
vstack.raw = getVstackStyle
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
3
|
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SystemProperties } from '../types/style-props.d.mts';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
6
|
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
7
|
|
|
8
8
|
export interface WrapProperties {
|
|
9
|
-
gap?:
|
|
10
|
-
rowGap?:
|
|
11
|
-
columnGap?:
|
|
12
|
-
align?:
|
|
13
|
-
justify?:
|
|
9
|
+
gap?: SystemProperties["gap"]
|
|
10
|
+
rowGap?: SystemProperties["gap"]
|
|
11
|
+
columnGap?: SystemProperties["gap"]
|
|
12
|
+
align?: SystemProperties["alignItems"]
|
|
13
|
+
justify?: SystemProperties["justifyContent"]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const wrapConfig = {
|
|
@@ -16,7 +16,10 @@ transform(props) {
|
|
|
16
16
|
};
|
|
17
17
|
}}
|
|
18
18
|
|
|
19
|
-
export const getWrapStyle = (styles = {}) =>
|
|
19
|
+
export const getWrapStyle = (styles = {}) => {
|
|
20
|
+
const _styles = getPatternStyles(wrapConfig, styles)
|
|
21
|
+
return wrapConfig.transform(_styles, patternFns)
|
|
22
|
+
}
|
|
20
23
|
|
|
21
24
|
export const wrap = (styles) => css(getWrapStyle(styles))
|
|
22
25
|
wrap.raw = getWrapStyle
|
|
@@ -21,7 +21,12 @@ export interface AccordionRecipe {
|
|
|
21
21
|
variantMap: AccordionVariantMap
|
|
22
22
|
variantKeys: Array<keyof AccordionVariant>
|
|
23
23
|
splitVariantProps<Props extends AccordionVariantProps>(props: Props): [AccordionVariantProps, Pretty<DistributiveOmit<Props, keyof AccordionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AccordionVariantProps) => AccordionVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Accordion component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const accordion: AccordionRecipe
|
|
@@ -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 accordionDefaultVariants = {}
|
|
@@ -48,11 +48,12 @@ const accordionSlotNames = [
|
|
|
48
48
|
]
|
|
49
49
|
const accordionSlotFns = /* @__PURE__ */ accordionSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, accordionDefaultVariants, getSlotCompoundVariant(accordionCompoundVariants, slotName))])
|
|
50
50
|
|
|
51
|
-
const accordionFn = (props = {}) => {
|
|
52
|
-
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
-
}
|
|
51
|
+
const accordionFn = memo((props = {}) => {
|
|
52
|
+
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
53
|
+
})
|
|
54
54
|
|
|
55
55
|
const accordionVariantKeys = []
|
|
56
|
+
const getVariantProps = (variants) => ({ ...accordionDefaultVariants, ...compact(variants) })
|
|
56
57
|
|
|
57
58
|
export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
58
59
|
__recipe__: false,
|
|
@@ -63,4 +64,5 @@ export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
|
63
64
|
splitVariantProps(props) {
|
|
64
65
|
return splitProps(props, accordionVariantKeys)
|
|
65
66
|
},
|
|
67
|
+
getVariantProps
|
|
66
68
|
})
|
|
@@ -21,7 +21,12 @@ export interface AlertDescriptionRecipe {
|
|
|
21
21
|
variantMap: AlertDescriptionVariantMap
|
|
22
22
|
variantKeys: Array<keyof AlertDescriptionVariant>
|
|
23
23
|
splitVariantProps<Props extends AlertDescriptionVariantProps>(props: Props): [AlertDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof AlertDescriptionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AlertDescriptionVariantProps) => AlertDescriptionVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the AlertDescription component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const alertDescription: AlertDescriptionRecipe
|
|
@@ -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 alertDescriptionFn = /* @__PURE__ */ createRecipe('alertDescription', {}, [])
|
|
@@ -7,9 +7,10 @@ const alertDescriptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const alertDescriptionVariantKeys = Object.keys(alertDescriptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const alertDescription = /* @__PURE__ */ Object.assign(alertDescriptionFn, {
|
|
10
|
+
export const alertDescription = /* @__PURE__ */ Object.assign(memo(alertDescriptionFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'alertDescription',
|
|
13
|
+
__getCompoundVariantCss__: alertDescriptionFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: alertDescriptionVariantKeys,
|
|
15
16
|
variantMap: alertDescriptionVariantMap,
|
|
@@ -19,4 +20,5 @@ export const alertDescription = /* @__PURE__ */ Object.assign(alertDescriptionFn
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, alertDescriptionVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: alertDescriptionFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -21,7 +21,12 @@ export interface AlertDialogRecipe {
|
|
|
21
21
|
variantMap: AlertDialogVariantMap
|
|
22
22
|
variantKeys: Array<keyof AlertDialogVariant>
|
|
23
23
|
splitVariantProps<Props extends AlertDialogVariantProps>(props: Props): [AlertDialogVariantProps, Pretty<DistributiveOmit<Props, keyof AlertDialogVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AlertDialogVariantProps) => AlertDialogVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the AlertDialog component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const alertDialog: AlertDialogRecipe
|
|
@@ -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 alertDialogDefaultVariants = {}
|
|
@@ -96,11 +96,12 @@ const alertDialogSlotNames = [
|
|
|
96
96
|
]
|
|
97
97
|
const alertDialogSlotFns = /* @__PURE__ */ alertDialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, alertDialogDefaultVariants, getSlotCompoundVariant(alertDialogCompoundVariants, slotName))])
|
|
98
98
|
|
|
99
|
-
const alertDialogFn = (props = {}) => {
|
|
100
|
-
return Object.fromEntries(alertDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
101
|
-
}
|
|
99
|
+
const alertDialogFn = memo((props = {}) => {
|
|
100
|
+
return Object.fromEntries(alertDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
101
|
+
})
|
|
102
102
|
|
|
103
103
|
const alertDialogVariantKeys = []
|
|
104
|
+
const getVariantProps = (variants) => ({ ...alertDialogDefaultVariants, ...compact(variants) })
|
|
104
105
|
|
|
105
106
|
export const alertDialog = /* @__PURE__ */ Object.assign(alertDialogFn, {
|
|
106
107
|
__recipe__: false,
|
|
@@ -111,4 +112,5 @@ export const alertDialog = /* @__PURE__ */ Object.assign(alertDialogFn, {
|
|
|
111
112
|
splitVariantProps(props) {
|
|
112
113
|
return splitProps(props, alertDialogVariantKeys)
|
|
113
114
|
},
|
|
115
|
+
getVariantProps
|
|
114
116
|
})
|
|
@@ -21,7 +21,12 @@ export interface AlertTitleRecipe {
|
|
|
21
21
|
variantMap: AlertTitleVariantMap
|
|
22
22
|
variantKeys: Array<keyof AlertTitleVariant>
|
|
23
23
|
splitVariantProps<Props extends AlertTitleVariantProps>(props: Props): [AlertTitleVariantProps, Pretty<DistributiveOmit<Props, keyof AlertTitleVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AlertTitleVariantProps) => AlertTitleVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the AlertTitle component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const alertTitle: AlertTitleRecipe
|
|
@@ -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 alertTitleFn = /* @__PURE__ */ createRecipe('alertTitle', {}, [])
|
|
@@ -7,9 +7,10 @@ const alertTitleVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const alertTitleVariantKeys = Object.keys(alertTitleVariantMap)
|
|
9
9
|
|
|
10
|
-
export const alertTitle = /* @__PURE__ */ Object.assign(alertTitleFn, {
|
|
10
|
+
export const alertTitle = /* @__PURE__ */ Object.assign(memo(alertTitleFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'alertTitle',
|
|
13
|
+
__getCompoundVariantCss__: alertTitleFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: alertTitleVariantKeys,
|
|
15
16
|
variantMap: alertTitleVariantMap,
|
|
@@ -19,4 +20,5 @@ export const alertTitle = /* @__PURE__ */ Object.assign(alertTitleFn, {
|
|
|
19
20
|
splitVariantProps(props) {
|
|
20
21
|
return splitProps(props, alertTitleVariantKeys)
|
|
21
22
|
},
|
|
23
|
+
getVariantProps: alertTitleFn.getVariantProps,
|
|
22
24
|
})
|
|
@@ -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 AlertVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "default"
|
|
8
|
+
*/
|
|
9
|
+
variant: "default" | "destructive"
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
type AlertVariantMap = {
|
|
@@ -21,7 +24,12 @@ export interface AlertRecipe {
|
|
|
21
24
|
variantMap: AlertVariantMap
|
|
22
25
|
variantKeys: Array<keyof AlertVariant>
|
|
23
26
|
splitVariantProps<Props extends AlertVariantProps>(props: Props): [AlertVariantProps, Pretty<DistributiveOmit<Props, keyof AlertVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: AlertVariantProps) => AlertVariantProps
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the Alert component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
27
35
|
export declare const alert: AlertRecipe
|
|
@@ -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 alertFn = /* @__PURE__ */ createRecipe('alert', {
|
|
@@ -14,9 +14,10 @@ const alertVariantMap = {
|
|
|
14
14
|
|
|
15
15
|
const alertVariantKeys = Object.keys(alertVariantMap)
|
|
16
16
|
|
|
17
|
-
export const alert = /* @__PURE__ */ Object.assign(alertFn, {
|
|
17
|
+
export const alert = /* @__PURE__ */ Object.assign(memo(alertFn.recipeFn), {
|
|
18
18
|
__recipe__: true,
|
|
19
19
|
__name__: 'alert',
|
|
20
|
+
__getCompoundVariantCss__: alertFn.__getCompoundVariantCss__,
|
|
20
21
|
raw: (props) => props,
|
|
21
22
|
variantKeys: alertVariantKeys,
|
|
22
23
|
variantMap: alertVariantMap,
|
|
@@ -26,4 +27,5 @@ export const alert = /* @__PURE__ */ Object.assign(alertFn, {
|
|
|
26
27
|
splitVariantProps(props) {
|
|
27
28
|
return splitProps(props, alertVariantKeys)
|
|
28
29
|
},
|
|
30
|
+
getVariantProps: alertFn.getVariantProps,
|
|
29
31
|
})
|
|
@@ -21,7 +21,12 @@ export interface AvatarRecipe {
|
|
|
21
21
|
variantMap: AvatarVariantMap
|
|
22
22
|
variantKeys: Array<keyof AvatarVariant>
|
|
23
23
|
splitVariantProps<Props extends AvatarVariantProps>(props: Props): [AvatarVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: AvatarVariantProps) => AvatarVariantProps
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Avatar component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
27
32
|
export declare const avatar: AvatarRecipe
|