@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,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import type * as Panda from '@pandacss/dev'
|
|
4
|
+
import type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe.d.mts';
|
|
5
|
+
import type { Parts } from './parts.d.mts';
|
|
6
|
+
import type { PatternConfig, PatternProperties } from './pattern.d.mts';
|
|
7
|
+
import type { GlobalStyleObject, SystemStyleObject } from './system-types.d.mts';
|
|
8
|
+
import type { CompositionStyles } from './composition.d.mts';
|
|
9
|
+
|
|
10
|
+
declare module '@pandacss/dev' {
|
|
11
|
+
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
|
|
12
|
+
export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
|
|
13
|
+
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
14
|
+
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
15
|
+
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
16
|
+
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
17
|
+
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
18
|
+
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
19
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
|
|
3
|
+
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe.d.mts';
|
|
4
|
+
import type { Assign, DistributiveOmit, DistributiveUnion, JsxHTMLProps, JsxStyleProps, Pretty } from './system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface Dict {
|
|
7
|
+
[k: string]: unknown
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
11
|
+
ref?: Ref<ElementRef<T>>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
15
|
+
(props: JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>): JSX.Element
|
|
16
|
+
displayName?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface RecipeFn {
|
|
20
|
+
__type: any
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface JsxFactoryOptions<TProps extends Dict> {
|
|
24
|
+
dataAttr?: boolean
|
|
25
|
+
defaultProps?: TProps
|
|
26
|
+
shouldForwardProp?(prop: string, variantKeys: string[]): boolean
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T>, P>;
|
|
30
|
+
|
|
31
|
+
export type JsxElement<T extends ElementType, P extends Dict> = T extends StyledComponent<infer A, infer B>
|
|
32
|
+
? StyledComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
33
|
+
: StyledComponent<T, P>
|
|
34
|
+
|
|
35
|
+
export interface JsxFactory {
|
|
36
|
+
<T extends ElementType>(component: T): StyledComponent<T, {}>
|
|
37
|
+
<T extends ElementType, P extends RecipeVariantRecord>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P>>>): JsxElement<
|
|
38
|
+
T,
|
|
39
|
+
RecipeSelection<P>
|
|
40
|
+
>
|
|
41
|
+
<T extends ElementType, P extends RecipeFn>(component: T, recipeFn: P, options?: JsxFactoryOptions<JsxRecipeProps<T, P['__type']>>): JsxElement<T, P['__type']>
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type JsxElements = {
|
|
45
|
+
[K in keyof JSX.IntrinsicElements]: StyledComponent<K, {}>
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Styled = JsxFactory & JsxElements
|
|
49
|
+
|
|
50
|
+
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
51
|
+
|
|
52
|
+
export type StyledVariantProps<T extends StyledComponent<any, any>> = T extends StyledComponent<any, infer Props> ? Props : never
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { CssProperty, SystemStyleObject } from './system-types.d.mts';
|
|
3
|
+
import type { TokenCategory } from '../tokens/index.d.mts';
|
|
4
|
+
|
|
5
|
+
type Primitive = string | number | boolean | null | undefined
|
|
6
|
+
type LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)
|
|
7
|
+
|
|
8
|
+
export type PatternProperty =
|
|
9
|
+
| { type: 'property'; value: CssProperty }
|
|
10
|
+
| { type: 'enum'; value: string[] }
|
|
11
|
+
| { type: 'token'; value: TokenCategory; property?: CssProperty }
|
|
12
|
+
| { type: 'string' | 'boolean' | 'number' }
|
|
13
|
+
|
|
14
|
+
export interface PatternHelpers {
|
|
15
|
+
map: (value: any, fn: (value: string) => string | undefined) => any
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface PatternProperties {
|
|
19
|
+
[key: string]: PatternProperty
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type Props<T> = Record<LiteralUnion<keyof T>, any>
|
|
23
|
+
|
|
24
|
+
export interface PatternConfig<T extends PatternProperties = PatternProperties> {
|
|
25
|
+
/**
|
|
26
|
+
* The description of the pattern. This will be used in the JSDoc comment.
|
|
27
|
+
*/
|
|
28
|
+
description?: string
|
|
29
|
+
/**
|
|
30
|
+
* The JSX element rendered by the pattern
|
|
31
|
+
* @default 'div'
|
|
32
|
+
*/
|
|
33
|
+
jsxElement?: string
|
|
34
|
+
/**
|
|
35
|
+
* The properties of the pattern.
|
|
36
|
+
*/
|
|
37
|
+
properties?: T
|
|
38
|
+
/**
|
|
39
|
+
* The css object this pattern will generate.
|
|
40
|
+
*/
|
|
41
|
+
transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject
|
|
42
|
+
/**
|
|
43
|
+
* The jsx element name this pattern will generate.
|
|
44
|
+
*/
|
|
45
|
+
jsxName?: string
|
|
46
|
+
/**
|
|
47
|
+
* The jsx elements to track for this pattern. Can be string or Regexp.
|
|
48
|
+
*
|
|
49
|
+
* @default capitalize(pattern.name)
|
|
50
|
+
* @example ['Button', 'Link', /Button$/]
|
|
51
|
+
*/
|
|
52
|
+
jsx?: Array<string | RegExp>
|
|
53
|
+
/**
|
|
54
|
+
* Whether to only generate types for the specified properties.
|
|
55
|
+
* This will disallow css properties
|
|
56
|
+
*/
|
|
57
|
+
strict?: boolean
|
|
58
|
+
/**
|
|
59
|
+
* @experimental
|
|
60
|
+
* Disallow certain css properties for this pattern
|
|
61
|
+
*/
|
|
62
|
+
blocklist?: LiteralUnion<CssProperty>[]
|
|
63
|
+
}
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from './conditions.d.mts';
|
|
3
|
+
import type { CssProperties } from './system-types.d.mts';
|
|
4
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
5
|
+
|
|
6
|
+
interface PropertyValueTypes {
|
|
7
|
+
aspectRatio: "auto" | "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden";
|
|
8
|
+
zIndex: Tokens["zIndex"];
|
|
9
|
+
top: Tokens["spacing"];
|
|
10
|
+
left: Tokens["spacing"];
|
|
11
|
+
insetInline: Tokens["spacing"];
|
|
12
|
+
insetBlock: Tokens["spacing"];
|
|
13
|
+
inset: "auto" | Tokens["spacing"];
|
|
14
|
+
insetBlockEnd: Tokens["spacing"];
|
|
15
|
+
insetBlockStart: Tokens["spacing"];
|
|
16
|
+
insetInlineEnd: Tokens["spacing"];
|
|
17
|
+
insetInlineStart: Tokens["spacing"];
|
|
18
|
+
right: Tokens["spacing"];
|
|
19
|
+
bottom: Tokens["spacing"];
|
|
20
|
+
insetX: Tokens["spacing"] | CssProperties["insetInline"];
|
|
21
|
+
insetY: Tokens["spacing"] | CssProperties["insetBlock"];
|
|
22
|
+
float: "left" | "right" | "start" | "end";
|
|
23
|
+
hideFrom: Tokens["breakpoints"];
|
|
24
|
+
hideBelow: Tokens["breakpoints"];
|
|
25
|
+
flexBasis: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
|
|
26
|
+
flex: "1" | "auto" | "initial" | "none";
|
|
27
|
+
gridTemplateColumns: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
28
|
+
gridTemplateRows: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
29
|
+
gridColumn: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
30
|
+
gridRow: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
31
|
+
gridAutoColumns: "min" | "max" | "fr";
|
|
32
|
+
gridAutoRows: "min" | "max" | "fr";
|
|
33
|
+
gap: Tokens["spacing"];
|
|
34
|
+
gridGap: Tokens["spacing"];
|
|
35
|
+
gridRowGap: Tokens["spacing"];
|
|
36
|
+
gridColumnGap: Tokens["spacing"];
|
|
37
|
+
rowGap: Tokens["spacing"];
|
|
38
|
+
columnGap: Tokens["spacing"];
|
|
39
|
+
padding: Tokens["spacing"];
|
|
40
|
+
paddingLeft: Tokens["spacing"];
|
|
41
|
+
paddingRight: Tokens["spacing"];
|
|
42
|
+
paddingTop: Tokens["spacing"];
|
|
43
|
+
paddingBottom: Tokens["spacing"];
|
|
44
|
+
paddingBlock: Tokens["spacing"];
|
|
45
|
+
paddingBlockEnd: Tokens["spacing"];
|
|
46
|
+
paddingBlockStart: Tokens["spacing"];
|
|
47
|
+
paddingInline: Tokens["spacing"];
|
|
48
|
+
paddingInlineEnd: Tokens["spacing"];
|
|
49
|
+
paddingInlineStart: Tokens["spacing"];
|
|
50
|
+
marginLeft: "auto" | Tokens["spacing"];
|
|
51
|
+
marginRight: "auto" | Tokens["spacing"];
|
|
52
|
+
marginTop: "auto" | Tokens["spacing"];
|
|
53
|
+
marginBottom: "auto" | Tokens["spacing"];
|
|
54
|
+
margin: "auto" | Tokens["spacing"];
|
|
55
|
+
marginBlock: "auto" | Tokens["spacing"];
|
|
56
|
+
marginBlockEnd: "auto" | Tokens["spacing"];
|
|
57
|
+
marginBlockStart: "auto" | Tokens["spacing"];
|
|
58
|
+
marginInline: "auto" | Tokens["spacing"];
|
|
59
|
+
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
60
|
+
marginInlineStart: "auto" | Tokens["spacing"];
|
|
61
|
+
outlineWidth: Tokens["borderWidths"];
|
|
62
|
+
outlineColor: Tokens["colors"];
|
|
63
|
+
outline: Tokens["borders"];
|
|
64
|
+
outlineOffset: Tokens["spacing"];
|
|
65
|
+
divideX: string;
|
|
66
|
+
divideY: string;
|
|
67
|
+
divideColor: Tokens["colors"];
|
|
68
|
+
divideStyle: CssProperties["borderStyle"];
|
|
69
|
+
width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
70
|
+
inlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
71
|
+
minWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
72
|
+
minInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
73
|
+
maxWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
74
|
+
maxInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
75
|
+
height: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
76
|
+
blockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
77
|
+
minHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
78
|
+
minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
79
|
+
maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
80
|
+
maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
81
|
+
color: Tokens["colors"];
|
|
82
|
+
fontFamily: Tokens["fonts"];
|
|
83
|
+
fontSize: Tokens["fontSizes"];
|
|
84
|
+
fontWeight: Tokens["fontWeights"];
|
|
85
|
+
fontSmoothing: "antialiased" | "subpixel-antialiased";
|
|
86
|
+
letterSpacing: Tokens["letterSpacings"];
|
|
87
|
+
lineHeight: Tokens["lineHeights"];
|
|
88
|
+
textDecorationColor: Tokens["colors"];
|
|
89
|
+
textEmphasisColor: Tokens["colors"];
|
|
90
|
+
textIndent: Tokens["spacing"];
|
|
91
|
+
textShadow: Tokens["shadows"];
|
|
92
|
+
textWrap: "wrap" | "balance" | "nowrap";
|
|
93
|
+
truncate: boolean;
|
|
94
|
+
listStyleImage: Tokens["assets"];
|
|
95
|
+
background: Tokens["colors"];
|
|
96
|
+
backgroundColor: Tokens["colors"];
|
|
97
|
+
backgroundImage: Tokens["assets"];
|
|
98
|
+
backgroundGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
99
|
+
textGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
100
|
+
gradientFrom: Tokens["colors"];
|
|
101
|
+
gradientTo: Tokens["colors"];
|
|
102
|
+
gradientVia: Tokens["colors"];
|
|
103
|
+
borderRadius: Tokens["radii"];
|
|
104
|
+
borderTopLeftRadius: Tokens["radii"];
|
|
105
|
+
borderTopRightRadius: Tokens["radii"];
|
|
106
|
+
borderBottomRightRadius: Tokens["radii"];
|
|
107
|
+
borderBottomLeftRadius: Tokens["radii"];
|
|
108
|
+
borderTopRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
109
|
+
borderRightRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
110
|
+
borderBottomRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
111
|
+
borderLeftRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
112
|
+
borderStartStartRadius: Tokens["radii"];
|
|
113
|
+
borderStartEndRadius: Tokens["radii"];
|
|
114
|
+
borderStartRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
115
|
+
borderEndStartRadius: Tokens["radii"];
|
|
116
|
+
borderEndEndRadius: Tokens["radii"];
|
|
117
|
+
borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
118
|
+
border: Tokens["borders"];
|
|
119
|
+
borderWidth: Tokens["borderWidths"];
|
|
120
|
+
borderTopWidth: Tokens["borderWidths"];
|
|
121
|
+
borderLeftWidth: Tokens["borderWidths"];
|
|
122
|
+
borderRightWidth: Tokens["borderWidths"];
|
|
123
|
+
borderBottomWidth: Tokens["borderWidths"];
|
|
124
|
+
borderColor: Tokens["colors"];
|
|
125
|
+
borderInline: Tokens["borders"];
|
|
126
|
+
borderInlineWidth: Tokens["borderWidths"];
|
|
127
|
+
borderInlineColor: Tokens["colors"];
|
|
128
|
+
borderBlock: Tokens["borders"];
|
|
129
|
+
borderBlockWidth: Tokens["borderWidths"];
|
|
130
|
+
borderBlockColor: Tokens["colors"];
|
|
131
|
+
borderLeft: Tokens["borders"];
|
|
132
|
+
borderLeftColor: Tokens["colors"];
|
|
133
|
+
borderInlineStart: Tokens["borders"];
|
|
134
|
+
borderInlineStartWidth: Tokens["borderWidths"];
|
|
135
|
+
borderInlineStartColor: Tokens["colors"];
|
|
136
|
+
borderRight: Tokens["borders"];
|
|
137
|
+
borderRightColor: Tokens["colors"];
|
|
138
|
+
borderInlineEnd: Tokens["borders"];
|
|
139
|
+
borderInlineEndWidth: Tokens["borderWidths"];
|
|
140
|
+
borderInlineEndColor: Tokens["colors"];
|
|
141
|
+
borderTop: Tokens["borders"];
|
|
142
|
+
borderTopColor: Tokens["colors"];
|
|
143
|
+
borderBottom: Tokens["borders"];
|
|
144
|
+
borderBottomColor: Tokens["colors"];
|
|
145
|
+
borderBlockEnd: Tokens["borders"];
|
|
146
|
+
borderBlockEndColor: Tokens["colors"];
|
|
147
|
+
borderBlockStart: Tokens["borders"];
|
|
148
|
+
borderBlockStartColor: Tokens["colors"];
|
|
149
|
+
opacity: Tokens["opacity"];
|
|
150
|
+
boxShadow: Tokens["shadows"];
|
|
151
|
+
boxShadowColor: Tokens["colors"];
|
|
152
|
+
filter: "auto";
|
|
153
|
+
dropShadow: Tokens["dropShadows"];
|
|
154
|
+
blur: Tokens["blurs"];
|
|
155
|
+
backdropFilter: "auto";
|
|
156
|
+
backdropBlur: "none" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | CssProperties["backdropFilter"];
|
|
157
|
+
borderSpacing: Tokens["spacing"];
|
|
158
|
+
borderSpacingX: Tokens["spacing"];
|
|
159
|
+
borderSpacingY: Tokens["spacing"];
|
|
160
|
+
transitionTimingFunction: Tokens["easings"];
|
|
161
|
+
transitionDelay: Tokens["durations"];
|
|
162
|
+
transitionDuration: Tokens["durations"];
|
|
163
|
+
transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
164
|
+
animation: Tokens["animations"];
|
|
165
|
+
animationName: Tokens["animationName"];
|
|
166
|
+
animationDelay: Tokens["durations"];
|
|
167
|
+
scale: "auto" | CssProperties["scale"];
|
|
168
|
+
translate: Tokens["spacing"] | CssProperties["translate"];
|
|
169
|
+
translateX: Tokens["spacing"];
|
|
170
|
+
translateY: Tokens["spacing"];
|
|
171
|
+
accentColor: Tokens["colors"];
|
|
172
|
+
caretColor: Tokens["colors"];
|
|
173
|
+
scrollbar: "visible" | "hidden";
|
|
174
|
+
scrollMargin: Tokens["spacing"];
|
|
175
|
+
scrollMarginX: Tokens["spacing"] | CssProperties["scrollMarginInline"];
|
|
176
|
+
scrollMarginY: Tokens["spacing"] | CssProperties["scrollMarginBlock"];
|
|
177
|
+
scrollMarginLeft: Tokens["spacing"];
|
|
178
|
+
scrollMarginRight: Tokens["spacing"];
|
|
179
|
+
scrollMarginTop: Tokens["spacing"];
|
|
180
|
+
scrollMarginBottom: Tokens["spacing"];
|
|
181
|
+
scrollMarginBlock: Tokens["spacing"];
|
|
182
|
+
scrollMarginBlockEnd: Tokens["spacing"];
|
|
183
|
+
scrollMarginBlockStart: Tokens["spacing"];
|
|
184
|
+
scrollMarginInline: Tokens["spacing"];
|
|
185
|
+
scrollMarginInlineEnd: Tokens["spacing"];
|
|
186
|
+
scrollMarginInlineStart: Tokens["spacing"];
|
|
187
|
+
scrollPadding: Tokens["spacing"];
|
|
188
|
+
scrollPaddingBlock: Tokens["spacing"];
|
|
189
|
+
scrollPaddingBlockStart: Tokens["spacing"];
|
|
190
|
+
scrollPaddingBlockEnd: Tokens["spacing"];
|
|
191
|
+
scrollPaddingInline: Tokens["spacing"];
|
|
192
|
+
scrollPaddingInlineEnd: Tokens["spacing"];
|
|
193
|
+
scrollPaddingInlineStart: Tokens["spacing"];
|
|
194
|
+
scrollPaddingX: Tokens["spacing"] | CssProperties["scrollPaddingInline"];
|
|
195
|
+
scrollPaddingY: Tokens["spacing"] | CssProperties["scrollPaddingBlock"];
|
|
196
|
+
scrollPaddingLeft: Tokens["spacing"];
|
|
197
|
+
scrollPaddingRight: Tokens["spacing"];
|
|
198
|
+
scrollPaddingTop: Tokens["spacing"];
|
|
199
|
+
scrollPaddingBottom: Tokens["spacing"];
|
|
200
|
+
scrollSnapType: "none" | "x" | "y" | "both";
|
|
201
|
+
scrollSnapStrictness: "mandatory" | "proximity";
|
|
202
|
+
scrollSnapMargin: Tokens["spacing"];
|
|
203
|
+
scrollSnapMarginTop: Tokens["spacing"];
|
|
204
|
+
scrollSnapMarginBottom: Tokens["spacing"];
|
|
205
|
+
scrollSnapMarginLeft: Tokens["spacing"];
|
|
206
|
+
scrollSnapMarginRight: Tokens["spacing"];
|
|
207
|
+
fill: Tokens["colors"];
|
|
208
|
+
stroke: Tokens["colors"];
|
|
209
|
+
strokeWidth: Tokens["borderWidths"];
|
|
210
|
+
srOnly: boolean;
|
|
211
|
+
debug: boolean;
|
|
212
|
+
animateIn: boolean;
|
|
213
|
+
animateOut: boolean;
|
|
214
|
+
fadeIn: Tokens["opacity"];
|
|
215
|
+
fadeOut: Tokens["opacity"];
|
|
216
|
+
slideInFromTop: Tokens["spacing"];
|
|
217
|
+
slideInFromBottom: Tokens["spacing"];
|
|
218
|
+
slideInFromLeft: Tokens["spacing"];
|
|
219
|
+
slideInFromRight: Tokens["spacing"];
|
|
220
|
+
slideOutToTop: Tokens["spacing"];
|
|
221
|
+
slideOutToBottom: Tokens["spacing"];
|
|
222
|
+
slideOutToLeft: Tokens["spacing"];
|
|
223
|
+
slideOutToRight: Tokens["spacing"];
|
|
224
|
+
backgroundAlpha: string;
|
|
225
|
+
gradientFromAlpha: string;
|
|
226
|
+
gradientToAlpha: string;
|
|
227
|
+
borderAlpha: CssProperties["borderColor"];
|
|
228
|
+
container: boolean;
|
|
229
|
+
focusRingWidth: "0" | "1" | "2" | "4" | "8" | "base";
|
|
230
|
+
focusRingColor: Tokens["colors"];
|
|
231
|
+
focusRingOffsetWidth: "0" | "1" | "2" | "4" | "8";
|
|
232
|
+
focusRingOffsetColor: Tokens["colors"];
|
|
233
|
+
focusRingInset: boolean;
|
|
234
|
+
spaceY: Tokens["spacing"];
|
|
235
|
+
spaceX: Tokens["spacing"];
|
|
236
|
+
textAlpha: CssProperties["color"];
|
|
237
|
+
colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "hover" | "hover.light" | "hover.dark" | "light" | "dark" | "text" | "decoration" | "grayscale" | "background" | "foreground" | "muted" | "card" | "popover" | "border" | "input" | "primary" | "secondary" | "accent" | "destructive" | "ring";
|
|
238
|
+
textStyle: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "large" | "small";
|
|
239
|
+
layerStyle: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
type CssValue<T> = T extends keyof CssProperties ? CssProperties[T] : never
|
|
245
|
+
|
|
246
|
+
type Shorthand<T> = T extends keyof PropertyValueTypes ? PropertyValueTypes[T] | CssValue<T> : CssValue<T>
|
|
247
|
+
|
|
248
|
+
export interface PropertyTypes extends PropertyValueTypes {
|
|
249
|
+
|
|
250
|
+
pos: Shorthand<"position">;
|
|
251
|
+
insetEnd: Shorthand<"insetInlineEnd">;
|
|
252
|
+
end: Shorthand<"insetInlineEnd">;
|
|
253
|
+
insetStart: Shorthand<"insetInlineStart">;
|
|
254
|
+
start: Shorthand<"insetInlineStart">;
|
|
255
|
+
flexDir: Shorthand<"flexDirection">;
|
|
256
|
+
p: Shorthand<"padding">;
|
|
257
|
+
pl: Shorthand<"paddingLeft">;
|
|
258
|
+
pr: Shorthand<"paddingRight">;
|
|
259
|
+
pt: Shorthand<"paddingTop">;
|
|
260
|
+
pb: Shorthand<"paddingBottom">;
|
|
261
|
+
py: Shorthand<"paddingBlock">;
|
|
262
|
+
paddingY: Shorthand<"paddingBlock">;
|
|
263
|
+
paddingX: Shorthand<"paddingInline">;
|
|
264
|
+
px: Shorthand<"paddingInline">;
|
|
265
|
+
pe: Shorthand<"paddingInlineEnd">;
|
|
266
|
+
paddingEnd: Shorthand<"paddingInlineEnd">;
|
|
267
|
+
ps: Shorthand<"paddingInlineStart">;
|
|
268
|
+
paddingStart: Shorthand<"paddingInlineStart">;
|
|
269
|
+
ml: Shorthand<"marginLeft">;
|
|
270
|
+
mr: Shorthand<"marginRight">;
|
|
271
|
+
mt: Shorthand<"marginTop">;
|
|
272
|
+
mb: Shorthand<"marginBottom">;
|
|
273
|
+
m: Shorthand<"margin">;
|
|
274
|
+
my: Shorthand<"marginBlock">;
|
|
275
|
+
marginY: Shorthand<"marginBlock">;
|
|
276
|
+
mx: Shorthand<"marginInline">;
|
|
277
|
+
marginX: Shorthand<"marginInline">;
|
|
278
|
+
me: Shorthand<"marginInlineEnd">;
|
|
279
|
+
marginEnd: Shorthand<"marginInlineEnd">;
|
|
280
|
+
ms: Shorthand<"marginInlineStart">;
|
|
281
|
+
marginStart: Shorthand<"marginInlineStart">;
|
|
282
|
+
ringWidth: Shorthand<"outlineWidth">;
|
|
283
|
+
ringColor: Shorthand<"outlineColor">;
|
|
284
|
+
ring: Shorthand<"outline">;
|
|
285
|
+
ringOffset: Shorthand<"outlineOffset">;
|
|
286
|
+
w: Shorthand<"width">;
|
|
287
|
+
minW: Shorthand<"minWidth">;
|
|
288
|
+
maxW: Shorthand<"maxWidth">;
|
|
289
|
+
h: Shorthand<"height">;
|
|
290
|
+
minH: Shorthand<"minHeight">;
|
|
291
|
+
maxH: Shorthand<"maxHeight">;
|
|
292
|
+
tracking: Shorthand<"letterSpacing">;
|
|
293
|
+
leading: Shorthand<"lineHeight">;
|
|
294
|
+
bgPosition: Shorthand<"backgroundPosition">;
|
|
295
|
+
bgPositionX: Shorthand<"backgroundPositionX">;
|
|
296
|
+
bgPositionY: Shorthand<"backgroundPositionY">;
|
|
297
|
+
bgAttachment: Shorthand<"backgroundAttachment">;
|
|
298
|
+
bgClip: Shorthand<"backgroundClip">;
|
|
299
|
+
bg: Shorthand<"background">;
|
|
300
|
+
bgColor: Shorthand<"backgroundColor">;
|
|
301
|
+
bgOrigin: Shorthand<"backgroundOrigin">;
|
|
302
|
+
bgImage: Shorthand<"backgroundImage">;
|
|
303
|
+
bgRepeat: Shorthand<"backgroundRepeat">;
|
|
304
|
+
bgBlendMode: Shorthand<"backgroundBlendMode">;
|
|
305
|
+
bgSize: Shorthand<"backgroundSize">;
|
|
306
|
+
bgGradient: Shorthand<"backgroundGradient">;
|
|
307
|
+
rounded: Shorthand<"borderRadius">;
|
|
308
|
+
roundedTopLeft: Shorthand<"borderTopLeftRadius">;
|
|
309
|
+
roundedTopRight: Shorthand<"borderTopRightRadius">;
|
|
310
|
+
roundedBottomRight: Shorthand<"borderBottomRightRadius">;
|
|
311
|
+
roundedBottomLeft: Shorthand<"borderBottomLeftRadius">;
|
|
312
|
+
roundedTop: Shorthand<"borderTopRadius">;
|
|
313
|
+
roundedRight: Shorthand<"borderRightRadius">;
|
|
314
|
+
roundedBottom: Shorthand<"borderBottomRadius">;
|
|
315
|
+
roundedLeft: Shorthand<"borderLeftRadius">;
|
|
316
|
+
roundedStartStart: Shorthand<"borderStartStartRadius">;
|
|
317
|
+
roundedStartEnd: Shorthand<"borderStartEndRadius">;
|
|
318
|
+
roundedStart: Shorthand<"borderStartRadius">;
|
|
319
|
+
roundedEndStart: Shorthand<"borderEndStartRadius">;
|
|
320
|
+
roundedEndEnd: Shorthand<"borderEndEndRadius">;
|
|
321
|
+
roundedEnd: Shorthand<"borderEndRadius">;
|
|
322
|
+
borderX: Shorthand<"borderInline">;
|
|
323
|
+
borderXWidth: Shorthand<"borderInlineWidth">;
|
|
324
|
+
borderXColor: Shorthand<"borderInlineColor">;
|
|
325
|
+
borderY: Shorthand<"borderBlock">;
|
|
326
|
+
borderYWidth: Shorthand<"borderBlockWidth">;
|
|
327
|
+
borderYColor: Shorthand<"borderBlockColor">;
|
|
328
|
+
borderStart: Shorthand<"borderInlineStart">;
|
|
329
|
+
borderStartWidth: Shorthand<"borderInlineStartWidth">;
|
|
330
|
+
borderStartColor: Shorthand<"borderInlineStartColor">;
|
|
331
|
+
borderEnd: Shorthand<"borderInlineEnd">;
|
|
332
|
+
borderEndWidth: Shorthand<"borderInlineEndWidth">;
|
|
333
|
+
borderEndColor: Shorthand<"borderInlineEndColor">;
|
|
334
|
+
shadow: Shorthand<"boxShadow">;
|
|
335
|
+
shadowColor: Shorthand<"boxShadowColor">;
|
|
336
|
+
x: Shorthand<"translateX">;
|
|
337
|
+
y: Shorthand<"translateY">;
|
|
338
|
+
bga: Shorthand<"backgroundAlpha">;
|
|
339
|
+
bca: Shorthand<"borderAlpha">;
|
|
340
|
+
ca: Shorthand<"textAlpha">;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
type StrictableProps =
|
|
344
|
+
| 'alignContent'
|
|
345
|
+
| 'alignItems'
|
|
346
|
+
| 'alignSelf'
|
|
347
|
+
| 'all'
|
|
348
|
+
| 'animationComposition'
|
|
349
|
+
| 'animationDirection'
|
|
350
|
+
| 'animationFillMode'
|
|
351
|
+
| 'appearance'
|
|
352
|
+
| 'backfaceVisibility'
|
|
353
|
+
| 'backgroundAttachment'
|
|
354
|
+
| 'backgroundClip'
|
|
355
|
+
| 'borderCollapse'
|
|
356
|
+
| 'border'
|
|
357
|
+
| 'borderBlock'
|
|
358
|
+
| 'borderBlockEnd'
|
|
359
|
+
| 'borderBlockStart'
|
|
360
|
+
| 'borderBottom'
|
|
361
|
+
| 'borderInline'
|
|
362
|
+
| 'borderInlineEnd'
|
|
363
|
+
| 'borderInlineStart'
|
|
364
|
+
| 'borderLeft'
|
|
365
|
+
| 'borderRight'
|
|
366
|
+
| 'borderTop'
|
|
367
|
+
| 'borderBlockEndStyle'
|
|
368
|
+
| 'borderBlockStartStyle'
|
|
369
|
+
| 'borderBlockStyle'
|
|
370
|
+
| 'borderBottomStyle'
|
|
371
|
+
| 'borderInlineEndStyle'
|
|
372
|
+
| 'borderInlineStartStyle'
|
|
373
|
+
| 'borderInlineStyle'
|
|
374
|
+
| 'borderLeftStyle'
|
|
375
|
+
| 'borderRightStyle'
|
|
376
|
+
| 'borderTopStyle'
|
|
377
|
+
| 'boxDecorationBreak'
|
|
378
|
+
| 'boxSizing'
|
|
379
|
+
| 'breakAfter'
|
|
380
|
+
| 'breakBefore'
|
|
381
|
+
| 'breakInside'
|
|
382
|
+
| 'captionSide'
|
|
383
|
+
| 'clear'
|
|
384
|
+
| 'columnFill'
|
|
385
|
+
| 'columnRuleStyle'
|
|
386
|
+
| 'contentVisibility'
|
|
387
|
+
| 'direction'
|
|
388
|
+
| 'display'
|
|
389
|
+
| 'emptyCells'
|
|
390
|
+
| 'flexDirection'
|
|
391
|
+
| 'flexWrap'
|
|
392
|
+
| 'float'
|
|
393
|
+
| 'fontKerning'
|
|
394
|
+
| 'forcedColorAdjust'
|
|
395
|
+
| 'isolation'
|
|
396
|
+
| 'lineBreak'
|
|
397
|
+
| 'mixBlendMode'
|
|
398
|
+
| 'objectFit'
|
|
399
|
+
| 'outlineStyle'
|
|
400
|
+
| 'overflow'
|
|
401
|
+
| 'overflowX'
|
|
402
|
+
| 'overflowY'
|
|
403
|
+
| 'overflowBlock'
|
|
404
|
+
| 'overflowInline'
|
|
405
|
+
| 'overflowWrap'
|
|
406
|
+
| 'pointerEvents'
|
|
407
|
+
| 'position'
|
|
408
|
+
| 'resize'
|
|
409
|
+
| 'scrollBehavior'
|
|
410
|
+
| 'touchAction'
|
|
411
|
+
| 'transformBox'
|
|
412
|
+
| 'transformStyle'
|
|
413
|
+
| 'userSelect'
|
|
414
|
+
| 'visibility'
|
|
415
|
+
| 'wordBreak'
|
|
416
|
+
| 'writingMode'
|
|
417
|
+
type WithEscapeHatch<T> = T | `[${string}]`
|
|
418
|
+
type FilterVagueString<Key, Value> = Value extends boolean
|
|
419
|
+
? Value
|
|
420
|
+
: Key extends StrictableProps
|
|
421
|
+
? Value extends `${infer _}` ? Value : never
|
|
422
|
+
: Value
|
|
423
|
+
type PropOrCondition<Key, Value> = ConditionalValue<Value | (string & {})>
|
|
424
|
+
|
|
425
|
+
type PropertyTypeValue<T extends string> = T extends keyof PropertyTypes
|
|
426
|
+
? PropOrCondition<T, PropertyTypes[T] | CssValue<T>>
|
|
427
|
+
: never;
|
|
428
|
+
|
|
429
|
+
type CssPropertyValue<T extends string> = T extends keyof CssProperties
|
|
430
|
+
? PropOrCondition<T, CssProperties[T]>
|
|
431
|
+
: never;
|
|
432
|
+
|
|
433
|
+
export type PropertyValue<T extends string> = T extends keyof PropertyTypes
|
|
434
|
+
? PropertyTypeValue<T>
|
|
435
|
+
: T extends keyof CssProperties
|
|
436
|
+
? CssPropertyValue<T>
|
|
437
|
+
: PropOrCondition<T, string | number>
|