@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,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getGridItemStyle } from '../patterns/grid-item.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const GridItem = /* @__PURE__ */ forwardRef(function GridItem(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["colSpan","rowSpan","colStart","rowStart","colEnd","rowEnd"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getGridItemStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { GridProperties } from '../patterns/grid.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface GridProps extends GridProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof GridProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Grid: FunctionComponent<GridProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getGridStyle } from '../patterns/grid.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const Grid = /* @__PURE__ */ forwardRef(function Grid(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["gap","columnGap","rowGap","columns","minChildWidth"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getGridStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { HstackProperties } from '../patterns/hstack.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof HstackProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const HStack: FunctionComponent<HstackProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getHstackStyle } from '../patterns/hstack.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["justify","gap"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getHstackStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export * from './factory.d.mts';
|
|
3
|
+
export * from './is-valid-prop.d.mts';
|
|
4
|
+
export * from './box.d.mts';
|
|
5
|
+
export * from './flex.d.mts';
|
|
6
|
+
export * from './stack.d.mts';
|
|
7
|
+
export * from './vstack.d.mts';
|
|
8
|
+
export * from './hstack.d.mts';
|
|
9
|
+
export * from './spacer.d.mts';
|
|
10
|
+
export * from './square.d.mts';
|
|
11
|
+
export * from './circle.d.mts';
|
|
12
|
+
export * from './center.d.mts';
|
|
13
|
+
export * from './link-box.d.mts';
|
|
14
|
+
export * from './link-overlay.d.mts';
|
|
15
|
+
export * from './aspect-ratio.d.mts';
|
|
16
|
+
export * from './grid.d.mts';
|
|
17
|
+
export * from './grid-item.d.mts';
|
|
18
|
+
export * from './wrap.d.mts';
|
|
19
|
+
export * from './container.d.mts';
|
|
20
|
+
export * from './divider.d.mts';
|
|
21
|
+
export * from './float.d.mts';
|
|
22
|
+
export * from './bleed.d.mts';
|
|
23
|
+
export * from './visually-hidden.d.mts';
|
|
24
|
+
export type { HTMLStyledProps, StyledComponent } from '../types/jsx.d.mts';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './factory.mjs';
|
|
2
|
+
export * from './is-valid-prop.mjs';
|
|
3
|
+
export * from './box.mjs';
|
|
4
|
+
export * from './flex.mjs';
|
|
5
|
+
export * from './stack.mjs';
|
|
6
|
+
export * from './vstack.mjs';
|
|
7
|
+
export * from './hstack.mjs';
|
|
8
|
+
export * from './spacer.mjs';
|
|
9
|
+
export * from './square.mjs';
|
|
10
|
+
export * from './circle.mjs';
|
|
11
|
+
export * from './center.mjs';
|
|
12
|
+
export * from './link-box.mjs';
|
|
13
|
+
export * from './link-overlay.mjs';
|
|
14
|
+
export * from './aspect-ratio.mjs';
|
|
15
|
+
export * from './grid.mjs';
|
|
16
|
+
export * from './grid-item.mjs';
|
|
17
|
+
export * from './wrap.mjs';
|
|
18
|
+
export * from './container.mjs';
|
|
19
|
+
export * from './divider.mjs';
|
|
20
|
+
export * from './float.mjs';
|
|
21
|
+
export * from './bleed.mjs';
|
|
22
|
+
export * from './visually-hidden.mjs';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { memo } from '../helpers.mjs';
|
|
3
|
+
// src/index.ts
|
|
4
|
+
var userGeneratedStr = "css,pos,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,tracking,leading,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,bga,bca,ca,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,insetInline,insetBlock,inset,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,insetX,insetY,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,outlineWidth,outlineColor,outline,outlineOffset,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,color,fontFamily,fontSize,fontWeight,fontSmoothing,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,textGradient,gradientFrom,gradientTo,gradientVia,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationDelay,transformOrigin,scale,scaleX,scaleY,translate,translateX,translateY,accentColor,caretColor,scrollBehavior,scrollbar,scrollMargin,scrollMarginX,scrollMarginY,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingX,scrollPaddingY,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,touchAction,userSelect,fill,stroke,strokeWidth,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,animateIn,animateOut,fadeIn,fadeOut,zoomIn,zoomOut,spinIn,spinOut,slideInFromTop,slideInFromBottom,slideInFromLeft,slideInFromRight,slideOutToTop,slideOutToBottom,slideOutToLeft,slideOutToRight,backgroundAlpha,gradientFromAlpha,gradientToAlpha,borderAlpha,container,focusRingWidth,focusRingColor,focusRingOffsetWidth,focusRingOffsetColor,focusRingInset,spaceY,spaceX,textAlpha,colorPalette,textStyle,layerStyle,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_default,_optional,_open,_closed,_fullscreen,_loading,_currentPage,_currentStep,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,2lg,2lgOnly,2lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,smToMd,smToLg,smTo2lg,smToXl,smTo2xl,mdToLg,mdTo2lg,mdToXl,mdTo2xl,lgTo2lg,lgToXl,lgTo2xl,2lgToXl,2lgTo2xl,xlTo2xl"
|
|
5
|
+
var userGenerated = userGeneratedStr.split(",");
|
|
6
|
+
var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect";
|
|
7
|
+
var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
|
|
8
|
+
var properties = new Map(allCssProperties.map((prop) => [prop, true]));
|
|
9
|
+
var cssPropertySelectorRegex = /&|@/;
|
|
10
|
+
var isCssProperty = /* @__PURE__ */ memo((prop) => {
|
|
11
|
+
return properties.has(prop) || prop.startsWith("--") || cssPropertySelectorRegex.test(prop);
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
allCssProperties,
|
|
15
|
+
isCssProperty
|
|
16
|
+
};
|
|
17
|
+
export const splitCssProps = /* @__PURE__ */ (props) => splitProps(props, isCssProperty)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { LinkBoxProperties } from '../patterns/link-box.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const LinkBox: FunctionComponent<LinkBoxProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getLinkBoxStyle } from '../patterns/link-box.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const LinkBox = /* @__PURE__ */ forwardRef(function LinkBox(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
+
|
|
10
|
+
const styleProps = getLinkBoxStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { LinkOverlayProperties } from '../patterns/link-overlay.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<HTMLStyledProps<'a'>, keyof LinkOverlayProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const LinkOverlay: FunctionComponent<LinkOverlayProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const LinkOverlay = /* @__PURE__ */ forwardRef(function LinkOverlay(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
+
|
|
10
|
+
const styleProps = getLinkOverlayStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.a, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { SpacerProperties } from '../patterns/spacer.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface SpacerProps extends SpacerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SpacerProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Spacer: FunctionComponent<SpacerProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getSpacerStyle } from '../patterns/spacer.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["size"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getSpacerStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { SquareProperties } from '../patterns/square.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface SquareProps extends SquareProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SquareProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Square: FunctionComponent<SquareProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getSquareStyle } from '../patterns/square.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const Square = /* @__PURE__ */ forwardRef(function Square(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["size"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getSquareStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { StackProperties } from '../patterns/stack.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface StackProps extends StackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof StackProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Stack: FunctionComponent<StackProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getStackStyle } from '../patterns/stack.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const Stack = /* @__PURE__ */ forwardRef(function Stack(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["align","justify","direction","gap"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getStackStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { VisuallyHiddenProperties } from '../patterns/visually-hidden.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface VisuallyHiddenProps extends VisuallyHiddenProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof VisuallyHiddenProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const VisuallyHidden: FunctionComponent<VisuallyHiddenProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, [])
|
|
9
|
+
|
|
10
|
+
const styleProps = getVisuallyHiddenStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { VstackProperties } from '../patterns/vstack.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface VstackProps extends VstackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof VstackProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const VStack: FunctionComponent<VstackProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getVstackStyle } from '../patterns/vstack.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const VStack = /* @__PURE__ */ forwardRef(function VStack(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["justify","gap"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getVstackStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { FunctionComponent } from 'react'
|
|
3
|
+
import type { WrapProperties } from '../patterns/wrap.d.mts';
|
|
4
|
+
import type { HTMLStyledProps } from '../types/jsx.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
|
|
7
|
+
export interface WrapProps extends WrapProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof WrapProperties > {}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export declare const Wrap: FunctionComponent<WrapProps>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react'
|
|
2
|
+
import { mergeCss } from '../css/css.mjs';
|
|
3
|
+
import { splitProps } from '../helpers.mjs';
|
|
4
|
+
import { getWrapStyle } from '../patterns/wrap.mjs';
|
|
5
|
+
import { styled } from './factory.mjs';
|
|
6
|
+
|
|
7
|
+
export const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) {
|
|
8
|
+
const [patternProps, restProps] = splitProps(props, ["gap","rowGap","columnGap","align","justify"])
|
|
9
|
+
|
|
10
|
+
const styleProps = getWrapStyle(patternProps)
|
|
11
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
12
|
+
|
|
13
|
+
return createElement(styled.div, mergedProps)
|
|
14
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface AspectRatioProperties {
|
|
9
|
+
ratio?: ConditionalValue<number>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface AspectRatioStyles extends AspectRatioProperties, DistributiveOmit<SystemStyleObject, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
14
|
+
|
|
15
|
+
interface AspectRatioPatternFn {
|
|
16
|
+
(styles?: AspectRatioStyles): string
|
|
17
|
+
raw: (styles?: AspectRatioStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const aspectRatio: AspectRatioPatternFn;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const aspectRatioConfig = {
|
|
5
|
+
transform(props, { map }) {
|
|
6
|
+
const { ratio = 4 / 3, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
position: "relative",
|
|
9
|
+
_before: {
|
|
10
|
+
content: `""`,
|
|
11
|
+
display: "block",
|
|
12
|
+
height: "0",
|
|
13
|
+
paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
|
|
14
|
+
},
|
|
15
|
+
"&>*": {
|
|
16
|
+
display: "flex",
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
overflow: "hidden",
|
|
20
|
+
position: "absolute",
|
|
21
|
+
inset: "0",
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "100%"
|
|
24
|
+
},
|
|
25
|
+
"&>img, &>video": {
|
|
26
|
+
objectFit: "cover"
|
|
27
|
+
},
|
|
28
|
+
...rest
|
|
29
|
+
};
|
|
30
|
+
}}
|
|
31
|
+
|
|
32
|
+
export const getAspectRatioStyle = (styles = {}) => aspectRatioConfig.transform(styles, { map: mapObject })
|
|
33
|
+
|
|
34
|
+
export const aspectRatio = (styles) => css(getAspectRatioStyle(styles))
|
|
35
|
+
aspectRatio.raw = getAspectRatioStyle
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface BleedProperties {
|
|
9
|
+
inline?: PropertyValue<'marginInline'>
|
|
10
|
+
block?: PropertyValue<'marginBlock'>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
interface BleedStyles extends BleedProperties, DistributiveOmit<SystemStyleObject, keyof BleedProperties > {}
|
|
15
|
+
|
|
16
|
+
interface BleedPatternFn {
|
|
17
|
+
(styles?: BleedStyles): string
|
|
18
|
+
raw: (styles?: BleedStyles) => SystemStyleObject
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export declare const bleed: BleedPatternFn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const bleedConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { inline = "0", block = "0", ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
"--bleed-x": `spacing.${inline}`,
|
|
9
|
+
"--bleed-y": `spacing.${block}`,
|
|
10
|
+
marginInline: "calc(var(--bleed-x, 0) * -1)",
|
|
11
|
+
marginBlock: "calc(var(--bleed-y, 0) * -1)",
|
|
12
|
+
...rest
|
|
13
|
+
};
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
export const getBleedStyle = (styles = {}) => bleedConfig.transform(styles, { map: mapObject })
|
|
17
|
+
|
|
18
|
+
export const bleed = (styles) => css(getBleedStyle(styles))
|
|
19
|
+
bleed.raw = getBleedStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface BoxProperties {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface BoxStyles extends BoxProperties, DistributiveOmit<SystemStyleObject, keyof BoxProperties > {}
|
|
14
|
+
|
|
15
|
+
interface BoxPatternFn {
|
|
16
|
+
(styles?: BoxStyles): string
|
|
17
|
+
raw: (styles?: BoxStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const box: BoxPatternFn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const boxConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
return props;
|
|
7
|
+
}}
|
|
8
|
+
|
|
9
|
+
export const getBoxStyle = (styles = {}) => boxConfig.transform(styles, { map: mapObject })
|
|
10
|
+
|
|
11
|
+
export const box = (styles) => css(getBoxStyle(styles))
|
|
12
|
+
box.raw = getBoxStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface CenterProperties {
|
|
9
|
+
inline?: ConditionalValue<boolean>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface CenterStyles extends CenterProperties, DistributiveOmit<SystemStyleObject, keyof CenterProperties > {}
|
|
14
|
+
|
|
15
|
+
interface CenterPatternFn {
|
|
16
|
+
(styles?: CenterStyles): string
|
|
17
|
+
raw: (styles?: CenterStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const center: CenterPatternFn;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const centerConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { inline, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: inline ? "inline-flex" : "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
}}
|
|
14
|
+
|
|
15
|
+
export const getCenterStyle = (styles = {}) => centerConfig.transform(styles, { map: mapObject })
|
|
16
|
+
|
|
17
|
+
export const center = (styles) => css(getCenterStyle(styles))
|
|
18
|
+
center.raw = getCenterStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface CircleProperties {
|
|
9
|
+
size?: PropertyValue<'width'>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface CircleStyles extends CircleProperties, DistributiveOmit<SystemStyleObject, keyof CircleProperties > {}
|
|
14
|
+
|
|
15
|
+
interface CirclePatternFn {
|
|
16
|
+
(styles?: CircleStyles): string
|
|
17
|
+
raw: (styles?: CircleStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const circle: CirclePatternFn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const circleConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { size, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
flex: "0 0 auto",
|
|
12
|
+
width: size,
|
|
13
|
+
height: size,
|
|
14
|
+
borderRadius: "9999px",
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
}}
|
|
18
|
+
|
|
19
|
+
export const getCircleStyle = (styles = {}) => circleConfig.transform(styles, { map: mapObject })
|
|
20
|
+
|
|
21
|
+
export const circle = (styles) => css(getCircleStyle(styles))
|
|
22
|
+
circle.raw = getCircleStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Properties } from '../types/csstype.d.mts';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type.d.mts';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
6
|
+
import type { Tokens } from '../tokens/index.d.mts';
|
|
7
|
+
|
|
8
|
+
export interface ContainerProperties {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface ContainerStyles extends ContainerProperties, DistributiveOmit<SystemStyleObject, keyof ContainerProperties > {}
|
|
14
|
+
|
|
15
|
+
interface ContainerPatternFn {
|
|
16
|
+
(styles?: ContainerStyles): string
|
|
17
|
+
raw: (styles?: ContainerStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const container: ContainerPatternFn;
|