@luxonis/common-fe-components 1.9.5
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/LICENSE.md +1 -0
- package/README.md +4 -0
- package/dist/components/custom/Alert.d.ts +11 -0
- package/dist/components/custom/Alert.d.ts.map +1 -0
- package/dist/components/custom/Alert.js +11 -0
- package/dist/components/custom/Alert.js.map +1 -0
- package/dist/components/custom/Badge.d.ts +71 -0
- package/dist/components/custom/Badge.d.ts.map +1 -0
- package/dist/components/custom/Badge.js +82 -0
- package/dist/components/custom/Badge.js.map +1 -0
- package/dist/components/custom/BadgeLine.d.ts +11 -0
- package/dist/components/custom/BadgeLine.d.ts.map +1 -0
- package/dist/components/custom/BadgeLine.js +25 -0
- package/dist/components/custom/BadgeLine.js.map +1 -0
- package/dist/components/custom/Button.d.ts +51 -0
- package/dist/components/custom/Button.d.ts.map +1 -0
- package/dist/components/custom/Button.js +71 -0
- package/dist/components/custom/Button.js.map +1 -0
- package/dist/components/custom/Card.d.ts +17 -0
- package/dist/components/custom/Card.d.ts.map +1 -0
- package/dist/components/custom/Card.js +19 -0
- package/dist/components/custom/Card.js.map +1 -0
- package/dist/components/custom/CardList.d.ts +68 -0
- package/dist/components/custom/CardList.d.ts.map +1 -0
- package/dist/components/custom/CardList.js +72 -0
- package/dist/components/custom/CardList.js.map +1 -0
- package/dist/components/custom/Checkbox.d.ts +17 -0
- package/dist/components/custom/Checkbox.d.ts.map +1 -0
- package/dist/components/custom/Checkbox.js +31 -0
- package/dist/components/custom/Checkbox.js.map +1 -0
- package/dist/components/custom/Circle.d.ts +56 -0
- package/dist/components/custom/Circle.d.ts.map +1 -0
- package/dist/components/custom/Circle.js +73 -0
- package/dist/components/custom/Circle.js.map +1 -0
- package/dist/components/custom/Command.d.ts +4 -0
- package/dist/components/custom/Command.d.ts.map +1 -0
- package/dist/components/custom/Command.js +6 -0
- package/dist/components/custom/Command.js.map +1 -0
- package/dist/components/custom/DropdownMenu.d.ts +1111 -0
- package/dist/components/custom/DropdownMenu.d.ts.map +1 -0
- package/dist/components/custom/DropdownMenu.js +12 -0
- package/dist/components/custom/DropdownMenu.js.map +1 -0
- package/dist/components/custom/Dropzone.d.ts +16 -0
- package/dist/components/custom/Dropzone.d.ts.map +1 -0
- package/dist/components/custom/Dropzone.js +158 -0
- package/dist/components/custom/Dropzone.js.map +1 -0
- package/dist/components/custom/EmptyView.d.ts +10 -0
- package/dist/components/custom/EmptyView.d.ts.map +1 -0
- package/dist/components/custom/EmptyView.js +10 -0
- package/dist/components/custom/EmptyView.js.map +1 -0
- package/dist/components/custom/ErrorView.d.ts +11 -0
- package/dist/components/custom/ErrorView.d.ts.map +1 -0
- package/dist/components/custom/ErrorView.js +55 -0
- package/dist/components/custom/ErrorView.js.map +1 -0
- package/dist/components/custom/ExternalLink.d.ts +12 -0
- package/dist/components/custom/ExternalLink.d.ts.map +1 -0
- package/dist/components/custom/ExternalLink.js +26 -0
- package/dist/components/custom/ExternalLink.js.map +1 -0
- package/dist/components/custom/FilterDropdown.d.ts +21 -0
- package/dist/components/custom/FilterDropdown.d.ts.map +1 -0
- package/dist/components/custom/FilterDropdown.js +81 -0
- package/dist/components/custom/FilterDropdown.js.map +1 -0
- package/dist/components/custom/Flex.d.ts +15 -0
- package/dist/components/custom/Flex.d.ts.map +1 -0
- package/dist/components/custom/Flex.js +19 -0
- package/dist/components/custom/Flex.js.map +1 -0
- package/dist/components/custom/Form.d.ts +39 -0
- package/dist/components/custom/Form.d.ts.map +1 -0
- package/dist/components/custom/Form.js +91 -0
- package/dist/components/custom/Form.js.map +1 -0
- package/dist/components/custom/Grid.d.ts +16 -0
- package/dist/components/custom/Grid.d.ts.map +1 -0
- package/dist/components/custom/Grid.js +29 -0
- package/dist/components/custom/Grid.js.map +1 -0
- package/dist/components/custom/Icon.d.ts +92 -0
- package/dist/components/custom/Icon.d.ts.map +1 -0
- package/dist/components/custom/Icon.js +77 -0
- package/dist/components/custom/Icon.js.map +1 -0
- package/dist/components/custom/Input.d.ts +9 -0
- package/dist/components/custom/Input.d.ts.map +1 -0
- package/dist/components/custom/Input.js +41 -0
- package/dist/components/custom/Input.js.map +1 -0
- package/dist/components/custom/KpiDisplay.d.ts +11 -0
- package/dist/components/custom/KpiDisplay.d.ts.map +1 -0
- package/dist/components/custom/KpiDisplay.js +10 -0
- package/dist/components/custom/KpiDisplay.js.map +1 -0
- package/dist/components/custom/LabelledProgress.d.ts +11 -0
- package/dist/components/custom/LabelledProgress.d.ts.map +1 -0
- package/dist/components/custom/LabelledProgress.js +44 -0
- package/dist/components/custom/LabelledProgress.js.map +1 -0
- package/dist/components/custom/Markdown.d.ts +9 -0
- package/dist/components/custom/Markdown.d.ts.map +1 -0
- package/dist/components/custom/Markdown.js +36 -0
- package/dist/components/custom/Markdown.js.map +1 -0
- package/dist/components/custom/Modal.d.ts +50 -0
- package/dist/components/custom/Modal.d.ts.map +1 -0
- package/dist/components/custom/Modal.js +83 -0
- package/dist/components/custom/Modal.js.map +1 -0
- package/dist/components/custom/MonospaceBlock.d.ts +9 -0
- package/dist/components/custom/MonospaceBlock.d.ts.map +1 -0
- package/dist/components/custom/MonospaceBlock.js +23 -0
- package/dist/components/custom/MonospaceBlock.js.map +1 -0
- package/dist/components/custom/PasswordInput.d.ts +9 -0
- package/dist/components/custom/PasswordInput.d.ts.map +1 -0
- package/dist/components/custom/PasswordInput.js +15 -0
- package/dist/components/custom/PasswordInput.js.map +1 -0
- package/dist/components/custom/ProgressTicker.d.ts +9 -0
- package/dist/components/custom/ProgressTicker.d.ts.map +1 -0
- package/dist/components/custom/ProgressTicker.js +32 -0
- package/dist/components/custom/ProgressTicker.js.map +1 -0
- package/dist/components/custom/RadioGroup.d.ts +2178 -0
- package/dist/components/custom/RadioGroup.d.ts.map +1 -0
- package/dist/components/custom/RadioGroup.js +128 -0
- package/dist/components/custom/RadioGroup.js.map +1 -0
- package/dist/components/custom/Select.d.ts +20 -0
- package/dist/components/custom/Select.d.ts.map +1 -0
- package/dist/components/custom/Select.js +10 -0
- package/dist/components/custom/Select.js.map +1 -0
- package/dist/components/custom/SelectCards.d.ts +16 -0
- package/dist/components/custom/SelectCards.d.ts.map +1 -0
- package/dist/components/custom/SelectCards.js +25 -0
- package/dist/components/custom/SelectCards.js.map +1 -0
- package/dist/components/custom/Slider.d.ts +2189 -0
- package/dist/components/custom/Slider.d.ts.map +1 -0
- package/dist/components/custom/Slider.js +12 -0
- package/dist/components/custom/Slider.js.map +1 -0
- package/dist/components/custom/SourceCode.d.ts +18 -0
- package/dist/components/custom/SourceCode.d.ts.map +1 -0
- package/dist/components/custom/SourceCode.js +29 -0
- package/dist/components/custom/SourceCode.js.map +1 -0
- package/dist/components/custom/StatusBar.d.ts +8 -0
- package/dist/components/custom/StatusBar.d.ts.map +1 -0
- package/dist/components/custom/StatusBar.js +10 -0
- package/dist/components/custom/StatusBar.js.map +1 -0
- package/dist/components/custom/Stepper.d.ts +20 -0
- package/dist/components/custom/Stepper.d.ts.map +1 -0
- package/dist/components/custom/Stepper.js +33 -0
- package/dist/components/custom/Stepper.js.map +1 -0
- package/dist/components/custom/Switch.d.ts +12 -0
- package/dist/components/custom/Switch.d.ts.map +1 -0
- package/dist/components/custom/Switch.js +9 -0
- package/dist/components/custom/Switch.js.map +1 -0
- package/dist/components/custom/Table.d.ts +18 -0
- package/dist/components/custom/Table.d.ts.map +1 -0
- package/dist/components/custom/Table.js +29 -0
- package/dist/components/custom/Table.js.map +1 -0
- package/dist/components/custom/Text.d.ts +143 -0
- package/dist/components/custom/Text.d.ts.map +1 -0
- package/dist/components/custom/Text.js +84 -0
- package/dist/components/custom/Text.js.map +1 -0
- package/dist/components/custom/TimePicker.d.ts +15 -0
- package/dist/components/custom/TimePicker.d.ts.map +1 -0
- package/dist/components/custom/TimePicker.js +37 -0
- package/dist/components/custom/TimePicker.js.map +1 -0
- package/dist/components/custom/Toast.d.ts +18 -0
- package/dist/components/custom/Toast.d.ts.map +1 -0
- package/dist/components/custom/Toast.js +26 -0
- package/dist/components/custom/Toast.js.map +1 -0
- package/dist/components/custom/Tooltip.d.ts +10 -0
- package/dist/components/custom/Tooltip.d.ts.map +1 -0
- package/dist/components/custom/Tooltip.js +16 -0
- package/dist/components/custom/Tooltip.js.map +1 -0
- package/dist/components/custom/TurnstileWidget.d.ts +26 -0
- package/dist/components/custom/TurnstileWidget.d.ts.map +1 -0
- package/dist/components/custom/TurnstileWidget.js +37 -0
- package/dist/components/custom/TurnstileWidget.js.map +1 -0
- package/dist/components/custom/VideoPlayer.d.ts +71 -0
- package/dist/components/custom/VideoPlayer.d.ts.map +1 -0
- package/dist/components/custom/VideoPlayer.js +287 -0
- package/dist/components/custom/VideoPlayer.js.map +1 -0
- package/dist/components/custom/index.d.ts +43 -0
- package/dist/components/custom/index.d.ts.map +1 -0
- package/dist/components/custom/index.js +43 -0
- package/dist/components/custom/index.js.map +1 -0
- package/dist/components/shadow-panda/Accordion.d.ts +14 -0
- package/dist/components/shadow-panda/Accordion.d.ts.map +1 -0
- package/dist/components/shadow-panda/Accordion.js +23 -0
- package/dist/components/shadow-panda/Accordion.js.map +1 -0
- package/dist/components/shadow-panda/Avatar.d.ts +11 -0
- package/dist/components/shadow-panda/Avatar.d.ts.map +1 -0
- package/dist/components/shadow-panda/Avatar.js +14 -0
- package/dist/components/shadow-panda/Avatar.js.map +1 -0
- package/dist/components/shadow-panda/DropdownMenu.d.ts +42 -0
- package/dist/components/shadow-panda/DropdownMenu.d.ts.map +1 -0
- package/dist/components/shadow-panda/DropdownMenu.js +56 -0
- package/dist/components/shadow-panda/DropdownMenu.js.map +1 -0
- package/dist/components/shadow-panda/Form.d.ts +22 -0
- package/dist/components/shadow-panda/Form.d.ts.map +1 -0
- package/dist/components/shadow-panda/Form.js +72 -0
- package/dist/components/shadow-panda/Form.js.map +1 -0
- package/dist/components/shadow-panda/Progress.d.ts +4 -0
- package/dist/components/shadow-panda/Progress.d.ts.map +1 -0
- package/dist/components/shadow-panda/Progress.js +14 -0
- package/dist/components/shadow-panda/Progress.js.map +1 -0
- package/dist/components/shadow-panda/Separator.d.ts +4 -0
- package/dist/components/shadow-panda/Separator.d.ts.map +1 -0
- package/dist/components/shadow-panda/Separator.js +11 -0
- package/dist/components/shadow-panda/Separator.js.map +1 -0
- package/dist/components/shadow-panda/Skeleton.d.ts +2 -0
- package/dist/components/shadow-panda/Skeleton.d.ts.map +1 -0
- package/dist/components/shadow-panda/Skeleton.js +4 -0
- package/dist/components/shadow-panda/Skeleton.js.map +1 -0
- package/dist/components/shadow-panda/Table.d.ts +11 -0
- package/dist/components/shadow-panda/Table.d.ts.map +1 -0
- package/dist/components/shadow-panda/Table.js +24 -0
- package/dist/components/shadow-panda/Table.js.map +1 -0
- package/dist/components/shadow-panda/Tabs.d.ts +13 -0
- package/dist/components/shadow-panda/Tabs.d.ts.map +1 -0
- package/dist/components/shadow-panda/Tabs.js +16 -0
- package/dist/components/shadow-panda/Tabs.js.map +1 -0
- package/dist/components/shadow-panda/Textarea.d.ts +9 -0
- package/dist/components/shadow-panda/Textarea.d.ts.map +1 -0
- package/dist/components/shadow-panda/Textarea.js +18 -0
- package/dist/components/shadow-panda/Textarea.js.map +1 -0
- package/dist/components/shadow-panda/Toaster.d.ts +2 -0
- package/dist/components/shadow-panda/Toaster.d.ts.map +1 -0
- package/dist/components/shadow-panda/Toaster.js +15 -0
- package/dist/components/shadow-panda/Toaster.js.map +1 -0
- package/dist/components/shadow-panda/Wrap.d.ts +2 -0
- package/dist/components/shadow-panda/Wrap.d.ts.map +1 -0
- package/dist/components/shadow-panda/Wrap.js +2 -0
- package/dist/components/shadow-panda/Wrap.js.map +1 -0
- package/dist/components/shadow-panda/_Alert.d.ts +6 -0
- package/dist/components/shadow-panda/_Alert.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Alert.js +9 -0
- package/dist/components/shadow-panda/_Alert.js.map +1 -0
- package/dist/components/shadow-panda/_Badge.d.ts +4 -0
- package/dist/components/shadow-panda/_Badge.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Badge.js +4 -0
- package/dist/components/shadow-panda/_Badge.js.map +1 -0
- package/dist/components/shadow-panda/_Button.d.ts +6 -0
- package/dist/components/shadow-panda/_Button.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Button.js +12 -0
- package/dist/components/shadow-panda/_Button.js.map +1 -0
- package/dist/components/shadow-panda/_Card.d.ts +7 -0
- package/dist/components/shadow-panda/_Card.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Card.js +14 -0
- package/dist/components/shadow-panda/_Card.js.map +1 -0
- package/dist/components/shadow-panda/_Checkbox.d.ts +4 -0
- package/dist/components/shadow-panda/_Checkbox.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Checkbox.js +16 -0
- package/dist/components/shadow-panda/_Checkbox.js.map +1 -0
- package/dist/components/shadow-panda/_Command.d.ts +80 -0
- package/dist/components/shadow-panda/_Command.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Command.js +38 -0
- package/dist/components/shadow-panda/_Command.js.map +1 -0
- package/dist/components/shadow-panda/_Dialog.d.ts +20 -0
- package/dist/components/shadow-panda/_Dialog.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Dialog.js +27 -0
- package/dist/components/shadow-panda/_Dialog.js.map +1 -0
- package/dist/components/shadow-panda/_Input.d.ts +4 -0
- package/dist/components/shadow-panda/_Input.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Input.js +4 -0
- package/dist/components/shadow-panda/_Input.js.map +1 -0
- package/dist/components/shadow-panda/_Label.d.ts +4 -0
- package/dist/components/shadow-panda/_Label.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Label.js +4 -0
- package/dist/components/shadow-panda/_Label.js.map +1 -0
- package/dist/components/shadow-panda/_RadioGroup.d.ts +10 -0
- package/dist/components/shadow-panda/_RadioGroup.d.ts.map +1 -0
- package/dist/components/shadow-panda/_RadioGroup.js +20 -0
- package/dist/components/shadow-panda/_RadioGroup.js.map +1 -0
- package/dist/components/shadow-panda/_Select.d.ts +22 -0
- package/dist/components/shadow-panda/_Select.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Select.js +35 -0
- package/dist/components/shadow-panda/_Select.js.map +1 -0
- package/dist/components/shadow-panda/_Slider.d.ts +12 -0
- package/dist/components/shadow-panda/_Slider.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Slider.js +41 -0
- package/dist/components/shadow-panda/_Slider.js.map +1 -0
- package/dist/components/shadow-panda/_Toast.d.ts +7 -0
- package/dist/components/shadow-panda/_Toast.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Toast.js +9 -0
- package/dist/components/shadow-panda/_Toast.js.map +1 -0
- package/dist/components/shadow-panda/_Tooltip.d.ts +12 -0
- package/dist/components/shadow-panda/_Tooltip.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Tooltip.js +16 -0
- package/dist/components/shadow-panda/_Tooltip.js.map +1 -0
- package/dist/components/shadow-panda/index.d.ts +12 -0
- package/dist/components/shadow-panda/index.d.ts.map +1 -0
- package/dist/components/shadow-panda/index.js +12 -0
- package/dist/components/shadow-panda/index.js.map +1 -0
- package/dist/components/skeletons/Button.d.ts +3 -0
- package/dist/components/skeletons/Button.d.ts.map +1 -0
- package/dist/components/skeletons/Button.js +13 -0
- package/dist/components/skeletons/Button.js.map +1 -0
- package/dist/components/skeletons/Grid.d.ts +30 -0
- package/dist/components/skeletons/Grid.d.ts.map +1 -0
- package/dist/components/skeletons/Grid.js +29 -0
- package/dist/components/skeletons/Grid.js.map +1 -0
- package/dist/components/skeletons/Input.d.ts +3 -0
- package/dist/components/skeletons/Input.d.ts.map +1 -0
- package/dist/components/skeletons/Input.js +13 -0
- package/dist/components/skeletons/Input.js.map +1 -0
- package/dist/components/skeletons/Table.d.ts +7 -0
- package/dist/components/skeletons/Table.d.ts.map +1 -0
- package/dist/components/skeletons/Table.js +16 -0
- package/dist/components/skeletons/Table.js.map +1 -0
- package/dist/components/skeletons/Textarea.d.ts +3 -0
- package/dist/components/skeletons/Textarea.d.ts.map +1 -0
- package/dist/components/skeletons/Textarea.js +13 -0
- package/dist/components/skeletons/Textarea.js.map +1 -0
- package/dist/components/skeletons/index.d.ts +6 -0
- package/dist/components/skeletons/index.d.ts.map +1 -0
- package/dist/components/skeletons/index.js +6 -0
- package/dist/components/skeletons/index.js.map +1 -0
- package/dist/helpers.d.ts +38 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +20 -0
- package/dist/helpers.js.map +1 -0
- package/dist/hooks/copy.d.ts +8 -0
- package/dist/hooks/copy.d.ts.map +1 -0
- package/dist/hooks/copy.js +14 -0
- package/dist/hooks/copy.js.map +1 -0
- package/dist/hooks/dropzone.d.ts +16 -0
- package/dist/hooks/dropzone.d.ts.map +1 -0
- package/dist/hooks/dropzone.js +23 -0
- package/dist/hooks/dropzone.js.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/modal.d.ts +25 -0
- package/dist/hooks/modal.d.ts.map +1 -0
- package/dist/hooks/modal.js +50 -0
- package/dist/hooks/modal.js.map +1 -0
- package/dist/hooks/use-toast.d.ts +51 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +153 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/hooks/use-translations.d.ts +10 -0
- package/dist/hooks/use-translations.d.ts.map +1 -0
- package/dist/hooks/use-translations.js +14 -0
- package/dist/hooks/use-translations.js.map +1 -0
- package/dist/hooks/use-window-width.d.ts +2 -0
- package/dist/hooks/use-window-width.d.ts.map +1 -0
- package/dist/hooks/use-window-width.js +11 -0
- package/dist/hooks/use-window-width.js.map +1 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +5 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/react-icons.d.ts +12 -0
- package/dist/icons/react-icons.d.ts.map +1 -0
- package/dist/icons/react-icons.js +12 -0
- package/dist/icons/react-icons.js.map +1 -0
- package/dist/icons/style-provider.d.ts +3 -0
- package/dist/icons/style-provider.d.ts.map +1 -0
- package/dist/icons/style-provider.js +10 -0
- package/dist/icons/style-provider.js.map +1 -0
- package/dist/icons/svg/AccessDenied.d.ts +3 -0
- package/dist/icons/svg/AccessDenied.d.ts.map +1 -0
- package/dist/icons/svg/AccessDenied.js +6 -0
- package/dist/icons/svg/AccessDenied.js.map +1 -0
- package/dist/icons/svg/Empty.d.ts +3 -0
- package/dist/icons/svg/Empty.d.ts.map +1 -0
- package/dist/icons/svg/Empty.js +6 -0
- package/dist/icons/svg/Empty.js.map +1 -0
- package/dist/icons/svg/Error.d.ts +5 -0
- package/dist/icons/svg/Error.d.ts.map +1 -0
- package/dist/icons/svg/Error.js +6 -0
- package/dist/icons/svg/Error.js.map +1 -0
- package/dist/icons/svg/Logo.d.ts +9 -0
- package/dist/icons/svg/Logo.d.ts.map +1 -0
- package/dist/icons/svg/Logo.js +7 -0
- package/dist/icons/svg/Logo.js.map +1 -0
- package/dist/icons/svg/index.d.ts +5 -0
- package/dist/icons/svg/index.d.ts.map +1 -0
- package/dist/icons/svg/index.js +5 -0
- package/dist/icons/svg/index.js.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/panda.buildinfo.json +371 -0
- package/dist/panda.css +3400 -0
- package/dist/panda.d.ts +2 -0
- package/dist/panda.d.ts.map +1 -0
- package/dist/panda.js +289 -0
- package/dist/panda.js.map +1 -0
- package/dist/recipes/colors.d.ts +44 -0
- package/dist/recipes/colors.d.ts.map +1 -0
- package/dist/recipes/colors.js +228 -0
- package/dist/recipes/colors.js.map +1 -0
- package/dist/recipes/hover.d.ts +30 -0
- package/dist/recipes/hover.d.ts.map +1 -0
- package/dist/recipes/hover.js +177 -0
- package/dist/recipes/hover.js.map +1 -0
- package/dist/recipes/index.d.ts +3 -0
- package/dist/recipes/index.d.ts.map +1 -0
- package/dist/recipes/index.js +3 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/styled-system/css/conditions.mjs +34 -0
- package/dist/styled-system/css/css.d.mts +9 -0
- package/dist/styled-system/css/css.mjs +44 -0
- package/dist/styled-system/css/cva.d.mts +6 -0
- package/dist/styled-system/css/cva.mjs +85 -0
- package/dist/styled-system/css/cx.d.mts +5 -0
- package/dist/styled-system/css/cx.mjs +15 -0
- package/dist/styled-system/css/index.d.mts +5 -0
- package/dist/styled-system/css/index.mjs +4 -0
- package/dist/styled-system/css/sva.d.mts +4 -0
- package/dist/styled-system/css/sva.mjs +35 -0
- package/dist/styled-system/helpers.mjs +300 -0
- package/dist/styled-system/jsx/aspect-ratio.d.mts +10 -0
- package/dist/styled-system/jsx/aspect-ratio.mjs +14 -0
- package/dist/styled-system/jsx/bleed.d.mts +10 -0
- package/dist/styled-system/jsx/bleed.mjs +14 -0
- package/dist/styled-system/jsx/box.d.mts +10 -0
- package/dist/styled-system/jsx/box.mjs +14 -0
- package/dist/styled-system/jsx/center.d.mts +10 -0
- package/dist/styled-system/jsx/center.mjs +14 -0
- package/dist/styled-system/jsx/circle.d.mts +10 -0
- package/dist/styled-system/jsx/circle.mjs +14 -0
- package/dist/styled-system/jsx/container.d.mts +10 -0
- package/dist/styled-system/jsx/container.mjs +14 -0
- package/dist/styled-system/jsx/divider.d.mts +10 -0
- package/dist/styled-system/jsx/divider.mjs +14 -0
- package/dist/styled-system/jsx/factory-helper.mjs +22 -0
- package/dist/styled-system/jsx/factory.d.mts +3 -0
- package/dist/styled-system/jsx/factory.mjs +79 -0
- package/dist/styled-system/jsx/flex.d.mts +10 -0
- package/dist/styled-system/jsx/flex.mjs +14 -0
- package/dist/styled-system/jsx/float.d.mts +10 -0
- package/dist/styled-system/jsx/float.mjs +14 -0
- package/dist/styled-system/jsx/grid-item.d.mts +10 -0
- package/dist/styled-system/jsx/grid-item.mjs +14 -0
- package/dist/styled-system/jsx/grid.d.mts +10 -0
- package/dist/styled-system/jsx/grid.mjs +14 -0
- package/dist/styled-system/jsx/hstack.d.mts +10 -0
- package/dist/styled-system/jsx/hstack.mjs +14 -0
- package/dist/styled-system/jsx/index.d.mts +24 -0
- package/dist/styled-system/jsx/index.mjs +22 -0
- package/dist/styled-system/jsx/is-valid-prop.d.mts +5 -0
- package/dist/styled-system/jsx/is-valid-prop.mjs +17 -0
- package/dist/styled-system/jsx/link-box.d.mts +10 -0
- package/dist/styled-system/jsx/link-box.mjs +14 -0
- package/dist/styled-system/jsx/link-overlay.d.mts +10 -0
- package/dist/styled-system/jsx/link-overlay.mjs +14 -0
- package/dist/styled-system/jsx/spacer.d.mts +10 -0
- package/dist/styled-system/jsx/spacer.mjs +14 -0
- package/dist/styled-system/jsx/square.d.mts +10 -0
- package/dist/styled-system/jsx/square.mjs +14 -0
- package/dist/styled-system/jsx/stack.d.mts +10 -0
- package/dist/styled-system/jsx/stack.mjs +14 -0
- package/dist/styled-system/jsx/visually-hidden.d.mts +10 -0
- package/dist/styled-system/jsx/visually-hidden.mjs +14 -0
- package/dist/styled-system/jsx/vstack.d.mts +10 -0
- package/dist/styled-system/jsx/vstack.mjs +14 -0
- package/dist/styled-system/jsx/wrap.d.mts +10 -0
- package/dist/styled-system/jsx/wrap.mjs +14 -0
- package/dist/styled-system/patterns/aspect-ratio.d.mts +21 -0
- package/dist/styled-system/patterns/aspect-ratio.mjs +35 -0
- package/dist/styled-system/patterns/bleed.d.mts +22 -0
- package/dist/styled-system/patterns/bleed.mjs +19 -0
- package/dist/styled-system/patterns/box.d.mts +21 -0
- package/dist/styled-system/patterns/box.mjs +12 -0
- package/dist/styled-system/patterns/center.d.mts +21 -0
- package/dist/styled-system/patterns/center.mjs +18 -0
- package/dist/styled-system/patterns/circle.d.mts +21 -0
- package/dist/styled-system/patterns/circle.mjs +22 -0
- package/dist/styled-system/patterns/container.d.mts +21 -0
- package/dist/styled-system/patterns/container.mjs +18 -0
- package/dist/styled-system/patterns/divider.d.mts +23 -0
- package/dist/styled-system/patterns/divider.mjs +21 -0
- package/dist/styled-system/patterns/flex.d.mts +27 -0
- package/dist/styled-system/patterns/flex.mjs +23 -0
- package/dist/styled-system/patterns/float.d.mts +24 -0
- package/dist/styled-system/patterns/float.mjs +45 -0
- package/dist/styled-system/patterns/grid-item.d.mts +26 -0
- package/dist/styled-system/patterns/grid-item.mjs +22 -0
- package/dist/styled-system/patterns/grid.d.mts +25 -0
- package/dist/styled-system/patterns/grid.mjs +22 -0
- package/dist/styled-system/patterns/hstack.d.mts +22 -0
- package/dist/styled-system/patterns/hstack.mjs +20 -0
- package/dist/styled-system/patterns/index.d.mts +21 -0
- package/dist/styled-system/patterns/index.mjs +20 -0
- package/dist/styled-system/patterns/link-box.d.mts +21 -0
- package/dist/styled-system/patterns/link-box.mjs +19 -0
- package/dist/styled-system/patterns/link-overlay.d.mts +21 -0
- package/dist/styled-system/patterns/link-overlay.mjs +24 -0
- package/dist/styled-system/patterns/spacer.d.mts +21 -0
- package/dist/styled-system/patterns/spacer.mjs +18 -0
- package/dist/styled-system/patterns/square.d.mts +21 -0
- package/dist/styled-system/patterns/square.mjs +21 -0
- package/dist/styled-system/patterns/stack.d.mts +24 -0
- package/dist/styled-system/patterns/stack.mjs +20 -0
- package/dist/styled-system/patterns/visually-hidden.d.mts +21 -0
- package/dist/styled-system/patterns/visually-hidden.mjs +15 -0
- package/dist/styled-system/patterns/vstack.d.mts +22 -0
- package/dist/styled-system/patterns/vstack.mjs +20 -0
- package/dist/styled-system/patterns/wrap.d.mts +25 -0
- package/dist/styled-system/patterns/wrap.mjs +22 -0
- package/dist/styled-system/recipes/accordion.d.mts +27 -0
- package/dist/styled-system/recipes/accordion.mjs +66 -0
- package/dist/styled-system/recipes/alert-description.d.mts +27 -0
- package/dist/styled-system/recipes/alert-description.mjs +22 -0
- package/dist/styled-system/recipes/alert-dialog.d.mts +27 -0
- package/dist/styled-system/recipes/alert-dialog.mjs +114 -0
- package/dist/styled-system/recipes/alert-title.d.mts +27 -0
- package/dist/styled-system/recipes/alert-title.mjs +22 -0
- package/dist/styled-system/recipes/alert.d.mts +27 -0
- package/dist/styled-system/recipes/alert.mjs +29 -0
- package/dist/styled-system/recipes/avatar.d.mts +27 -0
- package/dist/styled-system/recipes/avatar.mjs +50 -0
- package/dist/styled-system/recipes/badge.d.mts +27 -0
- package/dist/styled-system/recipes/badge.mjs +31 -0
- package/dist/styled-system/recipes/blockquote.d.mts +27 -0
- package/dist/styled-system/recipes/blockquote.mjs +22 -0
- package/dist/styled-system/recipes/button.d.mts +28 -0
- package/dist/styled-system/recipes/button.mjs +40 -0
- package/dist/styled-system/recipes/calendar.d.mts +27 -0
- package/dist/styled-system/recipes/calendar.mjs +210 -0
- package/dist/styled-system/recipes/card-content.d.mts +27 -0
- package/dist/styled-system/recipes/card-content.mjs +22 -0
- package/dist/styled-system/recipes/card-description.d.mts +27 -0
- package/dist/styled-system/recipes/card-description.mjs +22 -0
- package/dist/styled-system/recipes/card-footer.d.mts +27 -0
- package/dist/styled-system/recipes/card-footer.mjs +22 -0
- package/dist/styled-system/recipes/card-header.d.mts +27 -0
- package/dist/styled-system/recipes/card-header.mjs +22 -0
- package/dist/styled-system/recipes/card-title.d.mts +27 -0
- package/dist/styled-system/recipes/card-title.mjs +22 -0
- package/dist/styled-system/recipes/card.d.mts +27 -0
- package/dist/styled-system/recipes/card.mjs +22 -0
- package/dist/styled-system/recipes/checkbox.d.mts +27 -0
- package/dist/styled-system/recipes/checkbox.mjs +42 -0
- package/dist/styled-system/recipes/collapsible.d.mts +27 -0
- package/dist/styled-system/recipes/collapsible.mjs +50 -0
- package/dist/styled-system/recipes/command-dialog.d.mts +27 -0
- package/dist/styled-system/recipes/command-dialog.mjs +42 -0
- package/dist/styled-system/recipes/command.d.mts +27 -0
- package/dist/styled-system/recipes/command.mjs +106 -0
- package/dist/styled-system/recipes/context-menu.d.mts +27 -0
- package/dist/styled-system/recipes/context-menu.mjs +162 -0
- package/dist/styled-system/recipes/create-recipe.d.mts +1 -0
- package/dist/styled-system/recipes/create-recipe.mjs +79 -0
- package/dist/styled-system/recipes/dialog.d.mts +27 -0
- package/dist/styled-system/recipes/dialog.mjs +106 -0
- package/dist/styled-system/recipes/dropdown-menu.d.mts +27 -0
- package/dist/styled-system/recipes/dropdown-menu.mjs +154 -0
- package/dist/styled-system/recipes/form-control.d.mts +27 -0
- package/dist/styled-system/recipes/form-control.mjs +22 -0
- package/dist/styled-system/recipes/form-description.d.mts +27 -0
- package/dist/styled-system/recipes/form-description.mjs +22 -0
- package/dist/styled-system/recipes/form-item.d.mts +27 -0
- package/dist/styled-system/recipes/form-item.mjs +22 -0
- package/dist/styled-system/recipes/form-label.d.mts +27 -0
- package/dist/styled-system/recipes/form-label.mjs +22 -0
- package/dist/styled-system/recipes/form-message.d.mts +27 -0
- package/dist/styled-system/recipes/form-message.mjs +22 -0
- package/dist/styled-system/recipes/h1.d.mts +27 -0
- package/dist/styled-system/recipes/h1.mjs +22 -0
- package/dist/styled-system/recipes/h2.d.mts +27 -0
- package/dist/styled-system/recipes/h2.mjs +22 -0
- package/dist/styled-system/recipes/h3.d.mts +27 -0
- package/dist/styled-system/recipes/h3.mjs +22 -0
- package/dist/styled-system/recipes/h4.d.mts +27 -0
- package/dist/styled-system/recipes/h4.mjs +22 -0
- package/dist/styled-system/recipes/hover-card.d.mts +27 -0
- package/dist/styled-system/recipes/hover-card.mjs +50 -0
- package/dist/styled-system/recipes/icon.d.mts +31 -0
- package/dist/styled-system/recipes/icon.mjs +52 -0
- package/dist/styled-system/recipes/index.d.mts +74 -0
- package/dist/styled-system/recipes/index.mjs +73 -0
- package/dist/styled-system/recipes/inline-code.d.mts +27 -0
- package/dist/styled-system/recipes/inline-code.mjs +22 -0
- package/dist/styled-system/recipes/input.d.mts +27 -0
- package/dist/styled-system/recipes/input.mjs +22 -0
- package/dist/styled-system/recipes/label.d.mts +27 -0
- package/dist/styled-system/recipes/label.mjs +22 -0
- package/dist/styled-system/recipes/large.d.mts +27 -0
- package/dist/styled-system/recipes/large.mjs +22 -0
- package/dist/styled-system/recipes/lead.d.mts +27 -0
- package/dist/styled-system/recipes/lead.mjs +22 -0
- package/dist/styled-system/recipes/link.d.mts +27 -0
- package/dist/styled-system/recipes/link.mjs +22 -0
- package/dist/styled-system/recipes/list.d.mts +27 -0
- package/dist/styled-system/recipes/list.mjs +22 -0
- package/dist/styled-system/recipes/menubar.d.mts +27 -0
- package/dist/styled-system/recipes/menubar.mjs +162 -0
- package/dist/styled-system/recipes/muted.d.mts +27 -0
- package/dist/styled-system/recipes/muted.mjs +22 -0
- package/dist/styled-system/recipes/navigation-menu.d.mts +27 -0
- package/dist/styled-system/recipes/navigation-menu.mjs +98 -0
- package/dist/styled-system/recipes/p.d.mts +27 -0
- package/dist/styled-system/recipes/p.mjs +22 -0
- package/dist/styled-system/recipes/popover.d.mts +27 -0
- package/dist/styled-system/recipes/popover.mjs +58 -0
- package/dist/styled-system/recipes/progress.d.mts +27 -0
- package/dist/styled-system/recipes/progress.mjs +42 -0
- package/dist/styled-system/recipes/radio-group.d.mts +27 -0
- package/dist/styled-system/recipes/radio-group.mjs +58 -0
- package/dist/styled-system/recipes/scroll-area.d.mts +27 -0
- package/dist/styled-system/recipes/scroll-area.mjs +66 -0
- package/dist/styled-system/recipes/select.d.mts +27 -0
- package/dist/styled-system/recipes/select.mjs +106 -0
- package/dist/styled-system/recipes/separator.d.mts +27 -0
- package/dist/styled-system/recipes/separator.mjs +29 -0
- package/dist/styled-system/recipes/sheet.d.mts +27 -0
- package/dist/styled-system/recipes/sheet.mjs +125 -0
- package/dist/styled-system/recipes/skeleton.d.mts +27 -0
- package/dist/styled-system/recipes/skeleton.mjs +22 -0
- package/dist/styled-system/recipes/slider.d.mts +27 -0
- package/dist/styled-system/recipes/slider.mjs +58 -0
- package/dist/styled-system/recipes/small.d.mts +27 -0
- package/dist/styled-system/recipes/small.mjs +22 -0
- package/dist/styled-system/recipes/switch-recipe.d.mts +27 -0
- package/dist/styled-system/recipes/switch-recipe.mjs +42 -0
- package/dist/styled-system/recipes/table-body.d.mts +27 -0
- package/dist/styled-system/recipes/table-body.mjs +22 -0
- package/dist/styled-system/recipes/table-caption.d.mts +27 -0
- package/dist/styled-system/recipes/table-caption.mjs +22 -0
- package/dist/styled-system/recipes/table-cell.d.mts +27 -0
- package/dist/styled-system/recipes/table-cell.mjs +22 -0
- package/dist/styled-system/recipes/table-container.d.mts +27 -0
- package/dist/styled-system/recipes/table-container.mjs +22 -0
- package/dist/styled-system/recipes/table-footer.d.mts +27 -0
- package/dist/styled-system/recipes/table-footer.mjs +22 -0
- package/dist/styled-system/recipes/table-head.d.mts +27 -0
- package/dist/styled-system/recipes/table-head.mjs +22 -0
- package/dist/styled-system/recipes/table-header.d.mts +27 -0
- package/dist/styled-system/recipes/table-header.mjs +22 -0
- package/dist/styled-system/recipes/table-row.d.mts +27 -0
- package/dist/styled-system/recipes/table-row.mjs +22 -0
- package/dist/styled-system/recipes/table.d.mts +27 -0
- package/dist/styled-system/recipes/table.mjs +22 -0
- package/dist/styled-system/recipes/tabs.d.mts +27 -0
- package/dist/styled-system/recipes/tabs.mjs +58 -0
- package/dist/styled-system/recipes/textarea.d.mts +27 -0
- package/dist/styled-system/recipes/textarea.mjs +22 -0
- package/dist/styled-system/recipes/toast-viewport.d.mts +27 -0
- package/dist/styled-system/recipes/toast-viewport.mjs +22 -0
- package/dist/styled-system/recipes/toast.d.mts +27 -0
- package/dist/styled-system/recipes/toast.mjs +83 -0
- package/dist/styled-system/recipes/toggle.d.mts +28 -0
- package/dist/styled-system/recipes/toggle.mjs +35 -0
- package/dist/styled-system/recipes/tooltip.d.mts +27 -0
- package/dist/styled-system/recipes/tooltip.mjs +50 -0
- package/dist/styled-system/recipes/typography-table-container.d.mts +27 -0
- package/dist/styled-system/recipes/typography-table-container.mjs +22 -0
- package/dist/styled-system/recipes/typography-table.d.mts +27 -0
- package/dist/styled-system/recipes/typography-table.mjs +22 -0
- package/dist/styled-system/tokens/index.d.mts +9 -0
- package/dist/styled-system/tokens/index.mjs +2680 -0
- package/dist/styled-system/tokens/tokens.d.mts +63 -0
- package/dist/styled-system/types/composition.d.mts +111 -0
- package/dist/styled-system/types/conditions.d.mts +268 -0
- package/dist/styled-system/types/csstype.d.mts +21298 -0
- package/dist/styled-system/types/global.d.mts +19 -0
- package/dist/styled-system/types/index.d.mts +8 -0
- package/dist/styled-system/types/jsx.d.mts +52 -0
- package/dist/styled-system/types/parts.d.mts +8 -0
- package/dist/styled-system/types/pattern.d.mts +63 -0
- package/dist/styled-system/types/prop-type.d.mts +437 -0
- package/dist/styled-system/types/recipe.d.mts +158 -0
- package/dist/styled-system/types/selectors.d.mts +59 -0
- package/dist/styled-system/types/static-css.d.mts +47 -0
- package/dist/styled-system/types/style-props.d.mts +687 -0
- package/dist/styled-system/types/system-types.d.mts +93 -0
- package/dist/translations/en/common/common.d.ts +7 -0
- package/dist/translations/en/common/common.d.ts.map +1 -0
- package/dist/translations/en/common/common.js +7 -0
- package/dist/translations/en/common/common.js.map +1 -0
- package/dist/translations/en/index.d.ts +7 -0
- package/dist/translations/en/index.d.ts.map +1 -0
- package/dist/translations/en/index.js +6 -0
- package/dist/translations/en/index.js.map +1 -0
- package/dist/translations/formatters.d.ts +4 -0
- package/dist/translations/formatters.d.ts.map +1 -0
- package/dist/translations/formatters.js +7 -0
- package/dist/translations/formatters.js.map +1 -0
- package/dist/translations/i18n-react.d.ts +11 -0
- package/dist/translations/i18n-react.d.ts.map +1 -0
- package/dist/translations/i18n-react.js +10 -0
- package/dist/translations/i18n-react.js.map +1 -0
- package/dist/translations/i18n-types.d.ts +25 -0
- package/dist/translations/i18n-types.d.ts.map +1 -0
- package/dist/translations/i18n-types.js +2 -0
- package/dist/translations/i18n-types.js.map +1 -0
- package/dist/translations/i18n-util.async.d.ts +6 -0
- package/dist/translations/i18n-util.async.d.ts.map +1 -0
- package/dist/translations/i18n-util.async.js +16 -0
- package/dist/translations/i18n-util.async.js.map +1 -0
- package/dist/translations/i18n-util.d.ts +18 -0
- package/dist/translations/i18n-util.d.ts.map +1 -0
- package/dist/translations/i18n-util.js +18 -0
- package/dist/translations/i18n-util.js.map +1 -0
- package/dist/translations/i18n-util.sync.d.ts +5 -0
- package/dist/translations/i18n-util.sync.d.ts.map +1 -0
- package/dist/translations/i18n-util.sync.js +17 -0
- package/dist/translations/i18n-util.sync.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface CollapsibleVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CollapsibleVariantMap = {
|
|
10
|
+
[key in keyof CollapsibleVariant]: Array<CollapsibleVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CollapsibleVariantProps = {
|
|
14
|
+
[key in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CollapsibleRecipe {
|
|
18
|
+
__type: CollapsibleVariantProps
|
|
19
|
+
(props?: CollapsibleVariantProps): Pretty<Record<"root" | "trigger" | "content" | "root" | "trigger" | "content", string>>
|
|
20
|
+
raw: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
|
|
21
|
+
variantMap: CollapsibleVariantMap
|
|
22
|
+
variantKeys: Array<keyof CollapsibleVariant>
|
|
23
|
+
splitVariantProps<Props extends CollapsibleVariantProps>(props: Props): [CollapsibleVariantProps, Pretty<DistributiveOmit<Props, keyof CollapsibleVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Styles for the Collapsible component */
|
|
27
|
+
export declare const collapsible: CollapsibleRecipe
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const collapsibleDefaultVariants = {}
|
|
5
|
+
const collapsibleCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const collapsibleSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"collapsible__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"collapsible__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"content",
|
|
18
|
+
"collapsible__content"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"root",
|
|
22
|
+
"collapsible__root"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"trigger",
|
|
26
|
+
"collapsible__trigger"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"content",
|
|
30
|
+
"collapsible__content"
|
|
31
|
+
]
|
|
32
|
+
]
|
|
33
|
+
const collapsibleSlotFns = /* @__PURE__ */ collapsibleSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, collapsibleDefaultVariants, getSlotCompoundVariant(collapsibleCompoundVariants, slotName))])
|
|
34
|
+
|
|
35
|
+
const collapsibleFn = (props = {}) => {
|
|
36
|
+
return Object.fromEntries(collapsibleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const collapsibleVariantKeys = []
|
|
40
|
+
|
|
41
|
+
export const collapsible = /* @__PURE__ */ Object.assign(collapsibleFn, {
|
|
42
|
+
__recipe__: false,
|
|
43
|
+
__name__: 'collapsible',
|
|
44
|
+
raw: (props) => props,
|
|
45
|
+
variantKeys: collapsibleVariantKeys,
|
|
46
|
+
variantMap: {},
|
|
47
|
+
splitVariantProps(props) {
|
|
48
|
+
return splitProps(props, collapsibleVariantKeys)
|
|
49
|
+
},
|
|
50
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface CommandDialogVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CommandDialogVariantMap = {
|
|
10
|
+
[key in keyof CommandDialogVariant]: Array<CommandDialogVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CommandDialogVariantProps = {
|
|
14
|
+
[key in keyof CommandDialogVariant]?: ConditionalValue<CommandDialogVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CommandDialogRecipe {
|
|
18
|
+
__type: CommandDialogVariantProps
|
|
19
|
+
(props?: CommandDialogVariantProps): Pretty<Record<"content" | "command" | "content" | "command", string>>
|
|
20
|
+
raw: (props?: CommandDialogVariantProps) => CommandDialogVariantProps
|
|
21
|
+
variantMap: CommandDialogVariantMap
|
|
22
|
+
variantKeys: Array<keyof CommandDialogVariant>
|
|
23
|
+
splitVariantProps<Props extends CommandDialogVariantProps>(props: Props): [CommandDialogVariantProps, Pretty<DistributiveOmit<Props, keyof CommandDialogVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Styles for the CommandDialog component */
|
|
27
|
+
export declare const commandDialog: CommandDialogRecipe
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const commandDialogDefaultVariants = {}
|
|
5
|
+
const commandDialogCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const commandDialogSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"content",
|
|
10
|
+
"command-dialog__content"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"command",
|
|
14
|
+
"command-dialog__command"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"content",
|
|
18
|
+
"command-dialog__content"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"command",
|
|
22
|
+
"command-dialog__command"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const commandDialogSlotFns = /* @__PURE__ */ commandDialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDialogDefaultVariants, getSlotCompoundVariant(commandDialogCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const commandDialogFn = (props = {}) => {
|
|
28
|
+
return Object.fromEntries(commandDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const commandDialogVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const commandDialog = /* @__PURE__ */ Object.assign(commandDialogFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'commandDialog',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: commandDialogVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, commandDialogVariantKeys)
|
|
41
|
+
},
|
|
42
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface CommandVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CommandVariantMap = {
|
|
10
|
+
[key in keyof CommandVariant]: Array<CommandVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CommandVariantProps = {
|
|
14
|
+
[key in keyof CommandVariant]?: ConditionalValue<CommandVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CommandRecipe {
|
|
18
|
+
__type: CommandVariantProps
|
|
19
|
+
(props?: CommandVariantProps): Pretty<Record<"root" | "inputWrapper" | "inputSearch" | "input" | "list" | "empty" | "group" | "separator" | "item" | "shortcut" | "root" | "inputWrapper" | "inputSearch" | "input" | "list" | "empty" | "group" | "separator" | "item" | "shortcut", string>>
|
|
20
|
+
raw: (props?: CommandVariantProps) => CommandVariantProps
|
|
21
|
+
variantMap: CommandVariantMap
|
|
22
|
+
variantKeys: Array<keyof CommandVariant>
|
|
23
|
+
splitVariantProps<Props extends CommandVariantProps>(props: Props): [CommandVariantProps, Pretty<DistributiveOmit<Props, keyof CommandVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Styles for the Command component */
|
|
27
|
+
export declare const command: CommandRecipe
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const commandDefaultVariants = {}
|
|
5
|
+
const commandCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const commandSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"command__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"inputWrapper",
|
|
14
|
+
"command__inputWrapper"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"inputSearch",
|
|
18
|
+
"command__inputSearch"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"input",
|
|
22
|
+
"command__input"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"list",
|
|
26
|
+
"command__list"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"empty",
|
|
30
|
+
"command__empty"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"group",
|
|
34
|
+
"command__group"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"separator",
|
|
38
|
+
"command__separator"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"item",
|
|
42
|
+
"command__item"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"shortcut",
|
|
46
|
+
"command__shortcut"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"root",
|
|
50
|
+
"command__root"
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"inputWrapper",
|
|
54
|
+
"command__inputWrapper"
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"inputSearch",
|
|
58
|
+
"command__inputSearch"
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"input",
|
|
62
|
+
"command__input"
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"list",
|
|
66
|
+
"command__list"
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"empty",
|
|
70
|
+
"command__empty"
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"group",
|
|
74
|
+
"command__group"
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
"separator",
|
|
78
|
+
"command__separator"
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"item",
|
|
82
|
+
"command__item"
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
"shortcut",
|
|
86
|
+
"command__shortcut"
|
|
87
|
+
]
|
|
88
|
+
]
|
|
89
|
+
const commandSlotFns = /* @__PURE__ */ commandSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDefaultVariants, getSlotCompoundVariant(commandCompoundVariants, slotName))])
|
|
90
|
+
|
|
91
|
+
const commandFn = (props = {}) => {
|
|
92
|
+
return Object.fromEntries(commandSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const commandVariantKeys = []
|
|
96
|
+
|
|
97
|
+
export const command = /* @__PURE__ */ Object.assign(commandFn, {
|
|
98
|
+
__recipe__: false,
|
|
99
|
+
__name__: 'command',
|
|
100
|
+
raw: (props) => props,
|
|
101
|
+
variantKeys: commandVariantKeys,
|
|
102
|
+
variantMap: {},
|
|
103
|
+
splitVariantProps(props) {
|
|
104
|
+
return splitProps(props, commandVariantKeys)
|
|
105
|
+
},
|
|
106
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface ContextMenuVariant {
|
|
6
|
+
inset: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ContextMenuVariantMap = {
|
|
10
|
+
[key in keyof ContextMenuVariant]: Array<ContextMenuVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ContextMenuVariantProps = {
|
|
14
|
+
[key in keyof ContextMenuVariant]?: ConditionalValue<ContextMenuVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ContextMenuRecipe {
|
|
18
|
+
__type: ContextMenuVariantProps
|
|
19
|
+
(props?: ContextMenuVariantProps): Pretty<Record<"root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut" | "itemIndicator" | "root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut" | "itemIndicator", string>>
|
|
20
|
+
raw: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
|
|
21
|
+
variantMap: ContextMenuVariantMap
|
|
22
|
+
variantKeys: Array<keyof ContextMenuVariant>
|
|
23
|
+
splitVariantProps<Props extends ContextMenuVariantProps>(props: Props): [ContextMenuVariantProps, Pretty<DistributiveOmit<Props, keyof ContextMenuVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Styles for the ContextMenu component */
|
|
27
|
+
export declare const contextMenu: ContextMenuRecipe
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const contextMenuDefaultVariants = {
|
|
5
|
+
"inset": false
|
|
6
|
+
}
|
|
7
|
+
const contextMenuCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const contextMenuSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"contextMenu__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"trigger",
|
|
16
|
+
"contextMenu__trigger"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"group",
|
|
20
|
+
"contextMenu__group"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"portal",
|
|
24
|
+
"contextMenu__portal"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"sub",
|
|
28
|
+
"contextMenu__sub"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"radioGroup",
|
|
32
|
+
"contextMenu__radioGroup"
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"subTrigger",
|
|
36
|
+
"contextMenu__subTrigger"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"subContent",
|
|
40
|
+
"contextMenu__subContent"
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"content",
|
|
44
|
+
"contextMenu__content"
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"item",
|
|
48
|
+
"contextMenu__item"
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"checkboxItem",
|
|
52
|
+
"contextMenu__checkboxItem"
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
"radioItem",
|
|
56
|
+
"contextMenu__radioItem"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"label",
|
|
60
|
+
"contextMenu__label"
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
"separator",
|
|
64
|
+
"contextMenu__separator"
|
|
65
|
+
],
|
|
66
|
+
[
|
|
67
|
+
"shortcut",
|
|
68
|
+
"contextMenu__shortcut"
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"itemIndicator",
|
|
72
|
+
"contextMenu__itemIndicator"
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"root",
|
|
76
|
+
"contextMenu__root"
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
"trigger",
|
|
80
|
+
"contextMenu__trigger"
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
"group",
|
|
84
|
+
"contextMenu__group"
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
"portal",
|
|
88
|
+
"contextMenu__portal"
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"sub",
|
|
92
|
+
"contextMenu__sub"
|
|
93
|
+
],
|
|
94
|
+
[
|
|
95
|
+
"radioGroup",
|
|
96
|
+
"contextMenu__radioGroup"
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"subTrigger",
|
|
100
|
+
"contextMenu__subTrigger"
|
|
101
|
+
],
|
|
102
|
+
[
|
|
103
|
+
"subContent",
|
|
104
|
+
"contextMenu__subContent"
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"content",
|
|
108
|
+
"contextMenu__content"
|
|
109
|
+
],
|
|
110
|
+
[
|
|
111
|
+
"item",
|
|
112
|
+
"contextMenu__item"
|
|
113
|
+
],
|
|
114
|
+
[
|
|
115
|
+
"checkboxItem",
|
|
116
|
+
"contextMenu__checkboxItem"
|
|
117
|
+
],
|
|
118
|
+
[
|
|
119
|
+
"radioItem",
|
|
120
|
+
"contextMenu__radioItem"
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"label",
|
|
124
|
+
"contextMenu__label"
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
"separator",
|
|
128
|
+
"contextMenu__separator"
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
"shortcut",
|
|
132
|
+
"contextMenu__shortcut"
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
"itemIndicator",
|
|
136
|
+
"contextMenu__itemIndicator"
|
|
137
|
+
]
|
|
138
|
+
]
|
|
139
|
+
const contextMenuSlotFns = /* @__PURE__ */ contextMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, contextMenuDefaultVariants, getSlotCompoundVariant(contextMenuCompoundVariants, slotName))])
|
|
140
|
+
|
|
141
|
+
const contextMenuFn = (props = {}) => {
|
|
142
|
+
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const contextMenuVariantKeys = [
|
|
146
|
+
"inset"
|
|
147
|
+
]
|
|
148
|
+
|
|
149
|
+
export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
150
|
+
__recipe__: false,
|
|
151
|
+
__name__: 'contextMenu',
|
|
152
|
+
raw: (props) => props,
|
|
153
|
+
variantKeys: contextMenuVariantKeys,
|
|
154
|
+
variantMap: {
|
|
155
|
+
"inset": [
|
|
156
|
+
"true"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
splitVariantProps(props) {
|
|
160
|
+
return splitProps(props, contextMenuVariantKeys)
|
|
161
|
+
},
|
|
162
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { finalizeConditions, sortConditions } from '../css/conditions.mjs';
|
|
2
|
+
import { css } from '../css/css.mjs';
|
|
3
|
+
import { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';
|
|
4
|
+
import { cx } from '../css/cx.mjs';
|
|
5
|
+
import { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';
|
|
6
|
+
|
|
7
|
+
export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
8
|
+
const getRecipeStyles = (variants) => {
|
|
9
|
+
return {
|
|
10
|
+
[name]: '__ignore__',
|
|
11
|
+
...defaultVariants,
|
|
12
|
+
...compact(variants),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const recipeFn = (variants, withCompoundVariants = true) => {
|
|
17
|
+
const transform = (prop, value) => {
|
|
18
|
+
assertCompoundVariant(name, compoundVariants, variants, prop)
|
|
19
|
+
|
|
20
|
+
if (value === '__ignore__') {
|
|
21
|
+
return { className: name }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
value = withoutSpace(value)
|
|
25
|
+
return { className: `${name}--${prop}_${value}` }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const recipeCss = createCss({
|
|
29
|
+
|
|
30
|
+
conditions: {
|
|
31
|
+
shift: sortConditions,
|
|
32
|
+
finalize: finalizeConditions,
|
|
33
|
+
breakpoints: { keys: ["base","sm","md","lg","2lg","xl","2xl"] }
|
|
34
|
+
},
|
|
35
|
+
utility: {
|
|
36
|
+
|
|
37
|
+
transform,
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const recipeStyles = getRecipeStyles(variants)
|
|
42
|
+
|
|
43
|
+
if (withCompoundVariants) {
|
|
44
|
+
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
45
|
+
return cx(recipeCss(recipeStyles), css(compoundVariantStyles))
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return recipeCss(recipeStyles)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return Object.assign(recipeFn, {
|
|
52
|
+
__getCompoundVariantCss__: (variants) => {
|
|
53
|
+
return getCompoundVariantCss(compoundVariants, getRecipeStyles(variants));
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const mergeRecipes = (recipeA, recipeB) => {
|
|
59
|
+
if (recipeA && !recipeB) return recipeA
|
|
60
|
+
if (!recipeA && recipeB) return recipeB
|
|
61
|
+
|
|
62
|
+
const recipeFn = (...args) => cx(recipeA(...args), recipeB(...args))
|
|
63
|
+
const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys)
|
|
64
|
+
const variantMap = variantKeys.reduce((acc, key) => {
|
|
65
|
+
acc[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key])
|
|
66
|
+
return acc
|
|
67
|
+
}, {})
|
|
68
|
+
|
|
69
|
+
return Object.assign(recipeFn, {
|
|
70
|
+
__recipe__: true,
|
|
71
|
+
__name__: `${recipeA.__name__} ${recipeB.__name__}`,
|
|
72
|
+
raw: (props) => props,
|
|
73
|
+
variantKeys,
|
|
74
|
+
variantMap,
|
|
75
|
+
splitVariantProps(props) {
|
|
76
|
+
return splitProps(props, variantKeys)
|
|
77
|
+
},
|
|
78
|
+
})
|
|
79
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
+
|
|
5
|
+
interface DialogVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DialogVariantMap = {
|
|
10
|
+
[key in keyof DialogVariant]: Array<DialogVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DialogVariantProps = {
|
|
14
|
+
[key in keyof DialogVariant]?: ConditionalValue<DialogVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DialogRecipe {
|
|
18
|
+
__type: DialogVariantProps
|
|
19
|
+
(props?: DialogVariantProps): Pretty<Record<"root" | "trigger" | "portal" | "overlay" | "close" | "content" | "header" | "footer" | "title" | "description" | "root" | "trigger" | "portal" | "overlay" | "close" | "content" | "header" | "footer" | "title" | "description", string>>
|
|
20
|
+
raw: (props?: DialogVariantProps) => DialogVariantProps
|
|
21
|
+
variantMap: DialogVariantMap
|
|
22
|
+
variantKeys: Array<keyof DialogVariant>
|
|
23
|
+
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Styles for the Dialog component */
|
|
27
|
+
export declare const dialog: DialogRecipe
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dialogDefaultVariants = {}
|
|
5
|
+
const dialogCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const dialogSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"dialog__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"dialog__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"portal",
|
|
18
|
+
"dialog__portal"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"overlay",
|
|
22
|
+
"dialog__overlay"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"close",
|
|
26
|
+
"dialog__close"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"content",
|
|
30
|
+
"dialog__content"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"header",
|
|
34
|
+
"dialog__header"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"footer",
|
|
38
|
+
"dialog__footer"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"title",
|
|
42
|
+
"dialog__title"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"description",
|
|
46
|
+
"dialog__description"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"root",
|
|
50
|
+
"dialog__root"
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"trigger",
|
|
54
|
+
"dialog__trigger"
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"portal",
|
|
58
|
+
"dialog__portal"
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"overlay",
|
|
62
|
+
"dialog__overlay"
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"close",
|
|
66
|
+
"dialog__close"
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"content",
|
|
70
|
+
"dialog__content"
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"header",
|
|
74
|
+
"dialog__header"
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
"footer",
|
|
78
|
+
"dialog__footer"
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"title",
|
|
82
|
+
"dialog__title"
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
"description",
|
|
86
|
+
"dialog__description"
|
|
87
|
+
]
|
|
88
|
+
]
|
|
89
|
+
const dialogSlotFns = /* @__PURE__ */ dialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dialogDefaultVariants, getSlotCompoundVariant(dialogCompoundVariants, slotName))])
|
|
90
|
+
|
|
91
|
+
const dialogFn = (props = {}) => {
|
|
92
|
+
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const dialogVariantKeys = []
|
|
96
|
+
|
|
97
|
+
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
98
|
+
__recipe__: false,
|
|
99
|
+
__name__: 'dialog',
|
|
100
|
+
raw: (props) => props,
|
|
101
|
+
variantKeys: dialogVariantKeys,
|
|
102
|
+
variantMap: {},
|
|
103
|
+
splitVariantProps(props) {
|
|
104
|
+
return splitProps(props, dialogVariantKeys)
|
|
105
|
+
},
|
|
106
|
+
})
|