@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 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA6BzD,QAAA,MAAM,UAAU,+NAAkC,CAAC;AACnD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,UAAU,EAAE,OAAO,SAAS,CAAoC,CAAC;AACzG,QAAA,MAAM,cAAc,+KAAkC,CAAC;AACvD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,OAAO,cAAc,CAAuC,CAAC;AAChG,QAAA,MAAM,iBAAiB,2OAAkB,CAAC;AAC1C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,OAAO,iBAAiB,CAA6C,CAAC;AAC5G,QAAA,MAAM,iBAAiB,qOAAkB,CAAC;AAC1C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,OAAO,iBAAiB,CAA6C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ChevronDown } from 'lucide-react';
|
|
5
|
+
import { createStyleContext } from '@shadow-panda/style-context';
|
|
6
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
7
|
+
import { accordion } from '../../styled-system/recipes/accordion.mjs';
|
|
8
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
9
|
+
const { withProvider, withContext } = createStyleContext(accordion);
|
|
10
|
+
const Header = withContext(styled(AccordionPrimitive.Header), 'header');
|
|
11
|
+
const Trigger = React.forwardRef(({ children, ...props }, ref) => (_jsx(Header, { children: _jsxs(AccordionPrimitive.Trigger, { ref: ref, ...props, children: [children, _jsx(ChevronDown, {})] }) })));
|
|
12
|
+
Trigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
13
|
+
const Content = React.forwardRef(({ children, ...props }, ref) => (_jsx(AccordionPrimitive.Content, { ref: ref, ...props, children: children })));
|
|
14
|
+
Content.displayName = AccordionPrimitive.Content.displayName;
|
|
15
|
+
const _Accordion = styled(AccordionPrimitive.Root);
|
|
16
|
+
export const Accordion = withProvider(_Accordion, 'root');
|
|
17
|
+
const _AccordionItem = styled(AccordionPrimitive.Item);
|
|
18
|
+
export const AccordionItem = withContext(_AccordionItem, 'item');
|
|
19
|
+
const _AccordionTrigger = styled(Trigger);
|
|
20
|
+
export const AccordionTrigger = withContext(_AccordionTrigger, 'trigger');
|
|
21
|
+
const _AccordionContent = styled(Content);
|
|
22
|
+
export const AccordionContent = withContext(_AccordionContent, 'content');
|
|
23
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Accordion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAA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AW,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAChG,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAqC,WAAW,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AAC5G,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAqC,WAAW,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import { avatar } from '../../styled-system/recipes/avatar.mjs';
|
|
3
|
+
import type { Nested, Provider } from '../../helpers.js';
|
|
4
|
+
declare const _Avatar: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<AvatarPrimitive.AvatarProps & import("react").RefAttributes<HTMLSpanElement>>, {}>;
|
|
5
|
+
export declare const Avatar: Provider<typeof _Avatar, typeof avatar>;
|
|
6
|
+
declare const _AvatarImage: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<AvatarPrimitive.AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>, {}>;
|
|
7
|
+
export declare const AvatarImage: Nested<typeof _AvatarImage>;
|
|
8
|
+
declare const _AvatarFallback: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<AvatarPrimitive.AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>, {}>;
|
|
9
|
+
export declare const AvatarFallback: Nested<typeof _AvatarFallback>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKzD,QAAA,MAAM,OAAO,0LAA+B,CAAC;AAC7C,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,OAAO,OAAO,EAAE,OAAO,MAAM,CAAiC,CAAC;AAC7F,QAAA,MAAM,YAAY,gMAAgC,CAAC;AACnD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,YAAY,CAAsC,CAAC;AAC3F,QAAA,MAAM,eAAe,kMAAmC,CAAC;AACzD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,OAAO,eAAe,CAA4C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createStyleContext } from '@shadow-panda/style-context';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { avatar } from '../../styled-system/recipes/avatar.mjs';
|
|
5
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
6
|
+
const { withProvider, withContext } = createStyleContext(avatar);
|
|
7
|
+
// TODO: Use Circle, remove Avatar component
|
|
8
|
+
const _Avatar = styled(AvatarPrimitive.Root);
|
|
9
|
+
export const Avatar = withProvider(_Avatar, 'root');
|
|
10
|
+
const _AvatarImage = styled(AvatarPrimitive.Image);
|
|
11
|
+
export const AvatarImage = withContext(_AvatarImage, 'image');
|
|
12
|
+
const _AvatarFallback = styled(AvatarPrimitive.Fallback);
|
|
13
|
+
export const AvatarFallback = withContext(_AvatarFallback, 'fallback');
|
|
14
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Avatar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAG7D,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAEjE,4CAA4C;AAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,MAAM,GAA4C,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC7F,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,WAAW,GAAgC,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC3F,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAAmC,WAAW,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { dropdownMenu } from '../../styled-system/recipes/dropdown-menu.mjs';
|
|
4
|
+
import type { Nested, Provider } from '../../helpers.js';
|
|
5
|
+
declare const _DropdownMenu: import("../../styled-system/types/jsx.mjs").StyledComponent<React.FC<DropdownMenuPrimitive.DropdownMenuProps>, {}>;
|
|
6
|
+
export declare const DropdownMenu: Provider<typeof _DropdownMenu, typeof dropdownMenu>;
|
|
7
|
+
declare const _DropdownMenuTrigger: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>, {}>;
|
|
8
|
+
export declare const DropdownMenuTrigger: Nested<typeof _DropdownMenuTrigger>;
|
|
9
|
+
declare const _DropdownMenuGroup: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const DropdownMenuGroup: Nested<typeof _DropdownMenuGroup>;
|
|
11
|
+
declare const _DropdownMenuPortal: import("../../styled-system/types/jsx.mjs").StyledComponent<React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>, {}>;
|
|
12
|
+
export declare const DropdownMenuPortal: Nested<typeof _DropdownMenuPortal>;
|
|
13
|
+
declare const _DropdownMenuSub: import("../../styled-system/types/jsx.mjs").StyledComponent<React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>, {}>;
|
|
14
|
+
export declare const DropdownMenuSub: Nested<typeof _DropdownMenuSub>;
|
|
15
|
+
declare const _DropdownMenuRadioGroup: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const DropdownMenuRadioGroup: Nested<typeof _DropdownMenuRadioGroup>;
|
|
17
|
+
declare const _DropdownMenuSubTrigger: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
18
|
+
insetLeft?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
20
|
+
export declare const DropdownMenuSubTrigger: Nested<typeof _DropdownMenuSubTrigger>;
|
|
21
|
+
declare const _DropdownMenuSubContent: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
22
|
+
export declare const DropdownMenuSubContent: Nested<typeof _DropdownMenuSubContent>;
|
|
23
|
+
declare const __DropdownMenuContent: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
24
|
+
export declare const _DropdownMenuContent: Nested<typeof __DropdownMenuContent>;
|
|
25
|
+
declare const __DropdownMenuItem: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
|
+
insetLeft?: boolean;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
28
|
+
export declare const _DropdownMenuItem: Nested<typeof __DropdownMenuItem>;
|
|
29
|
+
declare const _DropdownMenuCheckboxItem: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
30
|
+
export declare const DropdownMenuCheckboxItem: Nested<typeof _DropdownMenuCheckboxItem>;
|
|
31
|
+
declare const _DropdownMenuRadioItem: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
32
|
+
export declare const DropdownMenuRadioItem: Nested<typeof _DropdownMenuRadioItem>;
|
|
33
|
+
declare const _DropdownMenuLabel: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
34
|
+
insetLeft?: boolean;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
36
|
+
export declare const DropdownMenuLabel: Nested<typeof _DropdownMenuLabel>;
|
|
37
|
+
declare const _DropdownMenuSeparator: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
38
|
+
export declare const DropdownMenuSeparator: Nested<typeof _DropdownMenuSeparator>;
|
|
39
|
+
declare const _DropdownMenuShortcut: import("../../styled-system/types/jsx.mjs").StyledComponent<"span", {}>;
|
|
40
|
+
export declare const DropdownMenuShortcut: Nested<typeof _DropdownMenuShortcut>;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=DropdownMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/DropdownMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAGvE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAI7E,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA+EzD,QAAA,MAAM,aAAa,oHAAqC,CAAC;AACzD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,OAAO,aAAa,EAAE,OAAO,YAAY,CAAuC,CAAC;AACrH,QAAA,MAAM,oBAAoB,2LAAwC,CAAC;AACnE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,OAAO,oBAAoB,CAAgD,CAAC;AACrH,QAAA,MAAM,kBAAkB,sLAAsC,CAAC;AAC/D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,OAAO,kBAAkB,CAA4C,CAAC;AAC7G,QAAA,MAAM,mBAAmB,0HAAuC,CAAC;AACjE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,OA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,CAAC;AAC7C,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,OAAO,qBAAqB,CAGrE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Check, ChevronRight, Circle } from 'lucide-react';
|
|
5
|
+
import { createStyleContext } from '@shadow-panda/style-context';
|
|
6
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
+
import { icon } from '../../styled-system/recipes/icon.mjs';
|
|
8
|
+
import { dropdownMenu } from '../../styled-system/recipes/dropdown-menu.mjs';
|
|
9
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
10
|
+
import { cx } from '../../styled-system/css/cx.mjs';
|
|
11
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
12
|
+
const { withProvider, withContext } = createStyleContext(dropdownMenu);
|
|
13
|
+
const SubTrigger = React.forwardRef(({ className, insetLeft, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.SubTrigger, { ref: ref, className: cx(insetLeft && css({ pl: '8' }), className), ...props, children: [children, _jsx(ChevronRight, { className: icon({ left: 'auto' }) })] })));
|
|
14
|
+
SubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
15
|
+
const Content = React.forwardRef(({ sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, ...props }) })));
|
|
16
|
+
Content.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
17
|
+
const Item = React.forwardRef(({ className, insetLeft, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cx(insetLeft && css({ pl: '8' }), className), ...props })));
|
|
18
|
+
Item.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
19
|
+
const ItemIndicator = withContext(styled(DropdownMenuPrimitive.ItemIndicator), 'itemIndicator');
|
|
20
|
+
const CheckboxItem = React.forwardRef(({ children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.CheckboxItem, { ref: ref, ...props, children: [_jsx(ItemIndicator, { children: _jsx(Check, { className: icon() }) }), children] })));
|
|
21
|
+
CheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
22
|
+
const RadioItem = React.forwardRef(({ children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.RadioItem, { ref: ref, ...props, children: [_jsx(ItemIndicator, { children: _jsx(Circle, { className: icon({ size: 'xs', fillCurrent: true }) }) }), children] })));
|
|
23
|
+
RadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
24
|
+
const Label = React.forwardRef(({ className, insetLeft, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Label, { ref: ref, className: cx(insetLeft && css({ pl: '8' }), className), ...props })));
|
|
25
|
+
Label.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
26
|
+
const _DropdownMenu = styled(DropdownMenuPrimitive.Root);
|
|
27
|
+
export const DropdownMenu = withProvider(_DropdownMenu, 'root');
|
|
28
|
+
const _DropdownMenuTrigger = styled(DropdownMenuPrimitive.Trigger);
|
|
29
|
+
export const DropdownMenuTrigger = withContext(_DropdownMenuTrigger, 'trigger');
|
|
30
|
+
const _DropdownMenuGroup = styled(DropdownMenuPrimitive.Group);
|
|
31
|
+
export const DropdownMenuGroup = withContext(_DropdownMenuGroup, 'group');
|
|
32
|
+
const _DropdownMenuPortal = styled(DropdownMenuPrimitive.Portal);
|
|
33
|
+
export const DropdownMenuPortal = withContext(_DropdownMenuPortal, 'portal');
|
|
34
|
+
const _DropdownMenuSub = styled(DropdownMenuPrimitive.Sub);
|
|
35
|
+
export const DropdownMenuSub = withContext(_DropdownMenuSub, 'sub');
|
|
36
|
+
const _DropdownMenuRadioGroup = styled(DropdownMenuPrimitive.RadioGroup);
|
|
37
|
+
export const DropdownMenuRadioGroup = withContext(_DropdownMenuRadioGroup, 'radioGroup');
|
|
38
|
+
const _DropdownMenuSubTrigger = styled(SubTrigger);
|
|
39
|
+
export const DropdownMenuSubTrigger = withContext(_DropdownMenuSubTrigger, 'subTrigger');
|
|
40
|
+
const _DropdownMenuSubContent = styled(DropdownMenuPrimitive.SubContent);
|
|
41
|
+
export const DropdownMenuSubContent = withContext(_DropdownMenuSubContent, 'subContent');
|
|
42
|
+
const __DropdownMenuContent = styled(Content);
|
|
43
|
+
export const _DropdownMenuContent = withContext(__DropdownMenuContent, 'content');
|
|
44
|
+
const __DropdownMenuItem = styled(Item);
|
|
45
|
+
export const _DropdownMenuItem = withContext(__DropdownMenuItem, 'item');
|
|
46
|
+
const _DropdownMenuCheckboxItem = styled(CheckboxItem);
|
|
47
|
+
export const DropdownMenuCheckboxItem = withContext(_DropdownMenuCheckboxItem, 'checkboxItem');
|
|
48
|
+
const _DropdownMenuRadioItem = styled(RadioItem);
|
|
49
|
+
export const DropdownMenuRadioItem = withContext(_DropdownMenuRadioItem, 'radioItem');
|
|
50
|
+
const _DropdownMenuLabel = styled(Label);
|
|
51
|
+
export const DropdownMenuLabel = withContext(_DropdownMenuLabel, 'label');
|
|
52
|
+
const _DropdownMenuSeparator = styled(DropdownMenuPrimitive.Separator);
|
|
53
|
+
export const DropdownMenuSeparator = withContext(_DropdownMenuSeparator, 'separator');
|
|
54
|
+
const _DropdownMenuShortcut = styled('span');
|
|
55
|
+
export const DropdownMenuShortcut = withContext(_DropdownMenuShortcut, 'shortcut');
|
|
56
|
+
//# sourceMappingURL=DropdownMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc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AAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AAC7G,MAAM,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,qBAAqB,GAA0C,WAAW,CACrF,sBAAsB,EACtB,WAAW,CACZ,CAAC;AACF,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAyC,WAAW,CACnF,qBAAqB,EACrB,UAAU,CACX,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { _LabelProps } from './_Label.js';
|
|
4
|
+
export declare const useFormField: () => {
|
|
5
|
+
invalid: boolean;
|
|
6
|
+
isDirty: boolean;
|
|
7
|
+
isTouched: boolean;
|
|
8
|
+
error?: import("react-hook-form").FieldError;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
formItemId: string;
|
|
12
|
+
formDescriptionId: string;
|
|
13
|
+
formMessageId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const _Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
16
|
+
export declare const _FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const FormLabel: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<_LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>, import("../../styled-system/recipes/form-label.mjs").FormLabelVariantProps>;
|
|
18
|
+
export declare const FormItem: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>, import("../../styled-system/recipes/form-item.mjs").FormItemVariantProps>;
|
|
19
|
+
export declare const FormControl: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>, import("../../styled-system/recipes/form-control.mjs").FormControlVariantProps>;
|
|
20
|
+
export declare const FormDescription: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>, import("../../styled-system/recipes/form-description.mjs").FormDescriptionVariantProps>;
|
|
21
|
+
export declare const FormMessage: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>, import("../../styled-system/recipes/form-message.mjs").FormMessageVariantProps>;
|
|
22
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Form.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAgB/C,eAAO,MAAM,YAAY;;;;;;;;;;CAqBxB,CAAC;AAkFF,eAAO,MAAM,KAAK,gOAAe,CAAC;AAClC,eAAO,MAAM,UAAU,GAhFrB,YAAY,SAAS,WAAW,gBAChC,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,0CAGpC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CA4EA,CAAC;AACxC,eAAO,MAAM,SAAS,4OAAmC,CAAC;AAC1D,eAAO,MAAM,QAAQ,oPAAiC,CAAC;AACvD,eAAO,MAAM,WAAW,2SAAuC,CAAC;AAChE,eAAO,MAAM,eAAe,8QAA+C,CAAC;AAC5E,eAAO,MAAM,WAAW,sQAAuC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Controller, FormProvider, useFormContext } from 'react-hook-form';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
6
|
+
import { formMessage } from '../../styled-system/recipes/form-message.mjs';
|
|
7
|
+
import { formLabel } from '../../styled-system/recipes/form-label.mjs';
|
|
8
|
+
import { formItem } from '../../styled-system/recipes/form-item.mjs';
|
|
9
|
+
import { formDescription } from '../../styled-system/recipes/form-description.mjs';
|
|
10
|
+
import { formControl } from '../../styled-system/recipes/form-control.mjs';
|
|
11
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
12
|
+
import { cx } from '../../styled-system/css/cx.mjs';
|
|
13
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
14
|
+
import { _Label } from './_Label.js';
|
|
15
|
+
const FormFieldContext = React.createContext({});
|
|
16
|
+
const FormItemContext = React.createContext({});
|
|
17
|
+
export const useFormField = () => {
|
|
18
|
+
const fieldContext = React.useContext(FormFieldContext);
|
|
19
|
+
const itemContext = React.useContext(FormItemContext);
|
|
20
|
+
const { getFieldState, formState } = useFormContext();
|
|
21
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
22
|
+
if (!fieldContext) {
|
|
23
|
+
throw new Error('useFormField should be used within <FormField>');
|
|
24
|
+
}
|
|
25
|
+
const { id } = itemContext;
|
|
26
|
+
return {
|
|
27
|
+
id,
|
|
28
|
+
name: fieldContext.name,
|
|
29
|
+
formItemId: `${id}-form-item`,
|
|
30
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
31
|
+
formMessageId: `${id}-form-item-message`,
|
|
32
|
+
...fieldState,
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const BaseFormField = ({ ...props }) => (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, { ...props }) }));
|
|
36
|
+
const BaseFormItem = React.forwardRef((props, ref) => {
|
|
37
|
+
const id = React.useId();
|
|
38
|
+
return (_jsx(FormItemContext.Provider, { value: { id }, children: _jsx("div", { ref: ref, ...props }) }));
|
|
39
|
+
});
|
|
40
|
+
BaseFormItem.displayName = 'FormItem';
|
|
41
|
+
const BaseFormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
42
|
+
const { error, formItemId } = useFormField();
|
|
43
|
+
return (_jsx(_Label, { ref: ref, className: cx(error && css({ color: 'destructive' }), className), htmlFor: formItemId, ...props }));
|
|
44
|
+
});
|
|
45
|
+
BaseFormLabel.displayName = 'FormLabel';
|
|
46
|
+
const BaseFormControl = React.forwardRef(({ ...props }, ref) => {
|
|
47
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
48
|
+
return (_jsx(Slot, { ref: ref, id: formItemId, "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`, "aria-invalid": !!error, ...props }));
|
|
49
|
+
});
|
|
50
|
+
BaseFormControl.displayName = 'FormControl';
|
|
51
|
+
const BaseFormDescription = React.forwardRef((props, ref) => {
|
|
52
|
+
const { formDescriptionId } = useFormField();
|
|
53
|
+
return _jsx("p", { ref: ref, id: formDescriptionId, ...props });
|
|
54
|
+
});
|
|
55
|
+
BaseFormDescription.displayName = 'FormDescription';
|
|
56
|
+
const BaseFormMessage = React.forwardRef(({ children, ...props }, ref) => {
|
|
57
|
+
const { error, formMessageId } = useFormField();
|
|
58
|
+
const body = error ? String(error?.message) : children;
|
|
59
|
+
if (!body) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return (_jsx("p", { ref: ref, id: formMessageId, ...props, children: body }));
|
|
63
|
+
});
|
|
64
|
+
BaseFormMessage.displayName = 'FormMessage';
|
|
65
|
+
export const _Form = FormProvider;
|
|
66
|
+
export const _FormField = BaseFormField;
|
|
67
|
+
export const FormLabel = styled(BaseFormLabel, formLabel);
|
|
68
|
+
export const FormItem = styled(BaseFormItem, formItem);
|
|
69
|
+
export const FormControl = styled(BaseFormControl, formControl);
|
|
70
|
+
export const FormDescription = styled(BaseFormDescription, formDescription);
|
|
71
|
+
export const FormMessage = styled(BaseFormMessage, formMessage);
|
|
72
|
+
//# sourceMappingURL=Form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Form.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAuB,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAcrC,MAAM,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAwB,EAA2B,CAAC,CAAC;AACjG,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,CAAuB,EAA0B,CAAC,CAA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C3D,CAAC,CACF,CAAC;AACF,mBAAmB,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEpD,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CACtC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC9B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE,CAAC;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEvD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,YAAG,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,aAAa,KAAM,KAAK,YACtC,IAAI,GACH,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AACF,eAAe,CAAC,WAAW,GAAG,aAAa,CAAC;AAE5C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC;AAClC,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;AAC1D,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
export declare const Progress: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAwB9D,eAAO,MAAM,QAAQ,4NAAuB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
5
|
+
import { progress } from '../../styled-system/recipes/progress.mjs';
|
|
6
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
7
|
+
import { cx } from '../../styled-system/css/cx.mjs';
|
|
8
|
+
const BaseProgress = React.forwardRef(({ className, value, ...props }, ref) => {
|
|
9
|
+
const styles = progress();
|
|
10
|
+
return (_jsx(ProgressPrimitive.Root, { ref: ref, className: cx(styles.root, className), ...props, children: _jsx(ProgressPrimitive.Indicator, { className: styles.indicator, style: { transform: `translateX(-${100 - (value || 0)}%)` } }) }));
|
|
11
|
+
});
|
|
12
|
+
BaseProgress.displayName = ProgressPrimitive.Root.displayName;
|
|
13
|
+
export const Progress = styled(BaseProgress);
|
|
14
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Progress.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAInC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACxC,MAAM,MAAM,GAAG,QAAQ,EAAE,CAAC;IAE1B,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,KAAM,KAAK,YAChF,KAAC,iBAAiB,CAAC,SAAS,IAC1B,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE,GAC3D,GACqB,CAC1B,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
export declare const Separator: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAqBhE,eAAO,MAAM,SAAS,8NAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
+
import { separator } from '../../styled-system/recipes/separator.mjs';
|
|
6
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
7
|
+
import { cx } from '../../styled-system/css/cx.mjs';
|
|
8
|
+
const BaseSeparator = React.forwardRef(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (_jsx(SeparatorPrimitive.Root, { ref: ref, decorative: decorative, orientation: orientation, className: cx(separator({ orientation }), className), ...props })));
|
|
9
|
+
BaseSeparator.displayName = SeparatorPrimitive.Root.displayName;
|
|
10
|
+
export const Separator = styled(BaseSeparator);
|
|
11
|
+
//# sourceMappingURL=Separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Separator.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAIpC,CAAC,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACjF,KAAC,kBAAkB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,CAAC,KAChD,KAAK,GACT,CACH,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEhE,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Skeleton.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,6IAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const _Table: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>, import("../../styled-system/recipes/table.mjs").TableVariantProps>;
|
|
3
|
+
export declare const _TableHeader: import("../../styled-system/types/jsx.mjs").StyledComponent<"thead", import("../../styled-system/recipes/table-header.mjs").TableHeaderVariantProps>;
|
|
4
|
+
export declare const TableBody: import("../../styled-system/types/jsx.mjs").StyledComponent<"tbody", import("../../styled-system/recipes/table-body.mjs").TableBodyVariantProps>;
|
|
5
|
+
export declare const TableFooter: import("../../styled-system/types/jsx.mjs").StyledComponent<"tfoot", import("../../styled-system/recipes/table-footer.mjs").TableFooterVariantProps>;
|
|
6
|
+
export declare const _TableHead: import("../../styled-system/types/jsx.mjs").StyledComponent<"th", import("../../styled-system/recipes/table-head.mjs").TableHeadVariantProps>;
|
|
7
|
+
export declare const _TableRow: import("../../styled-system/types/jsx.mjs").StyledComponent<"tr", import("../../styled-system/recipes/table-row.mjs").TableRowVariantProps>;
|
|
8
|
+
export declare const TableCell: import("../../styled-system/types/jsx.mjs").StyledComponent<"td", import("../../styled-system/recipes/table-cell.mjs").TableCellVariantProps>;
|
|
9
|
+
export declare const TableCaption: import("../../styled-system/types/jsx.mjs").StyledComponent<"caption", import("../../styled-system/recipes/table-caption.mjs").TableCaptionVariantProps>;
|
|
10
|
+
export type TableCellProps = React.ComponentProps<typeof TableCell>;
|
|
11
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,eAAO,MAAM,MAAM,iPAA2B,CAAC;AAC/C,eAAO,MAAM,YAAY,sJAA+B,CAAC;AACzD,eAAO,MAAM,SAAS,kJAA6B,CAAC;AACpD,eAAO,MAAM,WAAW,sJAA+B,CAAC;AACxD,eAAO,MAAM,UAAU,+IAA0B,CAAC;AAClD,eAAO,MAAM,SAAS,6IAAyB,CAAC;AAChD,eAAO,MAAM,SAAS,+IAA0B,CAAC;AACjD,eAAO,MAAM,YAAY,0JAAkC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { table } from '../../styled-system/recipes/table.mjs';
|
|
4
|
+
import { tableRow } from '../../styled-system/recipes/table-row.mjs';
|
|
5
|
+
import { tableHeader } from '../../styled-system/recipes/table-header.mjs';
|
|
6
|
+
import { tableHead } from '../../styled-system/recipes/table-head.mjs';
|
|
7
|
+
import { tableFooter } from '../../styled-system/recipes/table-footer.mjs';
|
|
8
|
+
import { tableContainer } from '../../styled-system/recipes/table-container.mjs';
|
|
9
|
+
import { tableCell } from '../../styled-system/recipes/table-cell.mjs';
|
|
10
|
+
import { tableCaption } from '../../styled-system/recipes/table-caption.mjs';
|
|
11
|
+
import { tableBody } from '../../styled-system/recipes/table-body.mjs';
|
|
12
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
13
|
+
const TableContainer = styled('div', tableContainer);
|
|
14
|
+
const BaseTable = React.forwardRef((props, ref) => (_jsx(TableContainer, { children: _jsx("table", { ref: ref, ...props }) })));
|
|
15
|
+
BaseTable.displayName = 'Table';
|
|
16
|
+
export const _Table = styled(BaseTable, table);
|
|
17
|
+
export const _TableHeader = styled('thead', tableHeader);
|
|
18
|
+
export const TableBody = styled('tbody', tableBody);
|
|
19
|
+
export const TableFooter = styled('tfoot', tableFooter);
|
|
20
|
+
export const _TableHead = styled('th', tableHead);
|
|
21
|
+
export const _TableRow = styled('tr', tableRow);
|
|
22
|
+
export const TableCell = styled('td', tableCell);
|
|
23
|
+
export const TableCaption = styled('caption', tableCaption);
|
|
24
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAA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,CAAC;AACjD,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
import { tabs } from '../../styled-system/recipes/tabs.mjs';
|
|
3
|
+
import type { Nested, Provider } from '../../helpers.js';
|
|
4
|
+
declare const _Tabs: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const Tabs: Provider<typeof _Tabs, typeof tabs>;
|
|
6
|
+
declare const _TabsList: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<TabsPrimitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const TabsList: Nested<typeof _TabsList>;
|
|
8
|
+
declare const _TabsTrigger: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<TabsPrimitive.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, {}>;
|
|
9
|
+
export declare const TabsTrigger: Nested<typeof _TabsTrigger>;
|
|
10
|
+
declare const _TabsContent: import("../../styled-system/types/jsx.mjs").StyledComponent<import("react").ForwardRefExoticComponent<TabsPrimitive.TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, {}>;
|
|
11
|
+
export declare const TabsContent: Nested<typeof _TabsContent>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Tabs.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIzD,QAAA,MAAM,KAAK,qLAA6B,CAAC;AACzC,eAAO,MAAM,IAAI,EAAE,QAAQ,CAAC,OAAO,KAAK,EAAE,OAAO,IAAI,CAA+B,CAAC;AACrF,QAAA,MAAM,SAAS,yLAA6B,CAAC;AAC7C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,OAAO,SAAS,CAAkC,CAAC;AACjF,QAAA,MAAM,YAAY,+LAAgC,CAAC;AACnD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,YAAY,CAAwC,CAAC;AAC7F,QAAA,MAAM,YAAY,4LAAgC,CAAC;AACnD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,YAAY,CAAwC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createStyleContext } from '@shadow-panda/style-context';
|
|
3
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
+
import { tabs } from '../../styled-system/recipes/tabs.mjs';
|
|
5
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
6
|
+
const { withProvider, withContext } = createStyleContext(tabs);
|
|
7
|
+
// TODO: Make custom component to match sane routing
|
|
8
|
+
const _Tabs = styled(TabsPrimitive.Root);
|
|
9
|
+
export const Tabs = withProvider(_Tabs, 'root');
|
|
10
|
+
const _TabsList = styled(TabsPrimitive.List);
|
|
11
|
+
export const TabsList = withContext(_TabsList, 'list');
|
|
12
|
+
const _TabsTrigger = styled(TabsPrimitive.Trigger);
|
|
13
|
+
export const TabsTrigger = withContext(_TabsTrigger, 'trigger');
|
|
14
|
+
const _TabsContent = styled(TabsPrimitive.Content);
|
|
15
|
+
export const TabsContent = withContext(_TabsContent, 'content');
|
|
16
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAG7D,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC/D,oDAAoD;AACpD,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,IAAI,GAAwC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACrF,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,QAAQ,GAA6B,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjF,MAAM,YAAY,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,WAAW,GAAgC,WAAW,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAC7F,MAAM,YAAY,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,WAAW,GAAgC,WAAW,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLStyledProps } from '../../styled-system/types/jsx.mjs';
|
|
3
|
+
export declare const _Textarea: import("../../styled-system/types/jsx.mjs").StyledComponent<"textarea", import("../../styled-system/recipes/textarea.mjs").TextareaVariantProps>;
|
|
4
|
+
export type _TextareaProps = Omit<HTMLStyledProps<typeof _Textarea>, 'value'> & {
|
|
5
|
+
value?: string | null;
|
|
6
|
+
autoResize?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const Textarea: React.ForwardRefExoticComponent<Omit<_TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,eAAO,MAAM,SAAS,kJAA+B,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,SAAS,CAAC,EAAE,OAAO,CAAC,GAAG;IAC9E,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,QAAQ,yGAcnB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useRef } from 'react';
|
|
3
|
+
import { textarea } from '../../styled-system/recipes/textarea.mjs';
|
|
4
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
5
|
+
export const _Textarea = styled('textarea', textarea);
|
|
6
|
+
export const Textarea = React.forwardRef((props, ref) => {
|
|
7
|
+
const { value = '', autoResize, ...rest } = props;
|
|
8
|
+
// TODO: use forwardRef
|
|
9
|
+
const textareaRef = useRef(null);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (autoResize && textareaRef.current) {
|
|
12
|
+
textareaRef.current.style.height = 'auto';
|
|
13
|
+
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
|
|
14
|
+
}
|
|
15
|
+
}, [value, autoResize]);
|
|
16
|
+
return _jsx(_Textarea, { ref: textareaRef || ref, value: value === null ? undefined : value, ...rest });
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Textarea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAMtD,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3F,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAElD,uBAAuB;IACvB,MAAM,WAAW,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACtC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;YAC1C,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC;QAC7E,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAExB,OAAO,KAAC,SAAS,IAAC,GAAG,EAAE,WAAW,IAAI,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,KAAM,IAAI,GAAI,CAAC;AACrG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Toaster.tsx"],"names":[],"mappings":"AAMA,wBAAgB,OAAO,4CAwBtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from '../custom/Toast.js';
|
|
4
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
5
|
+
import { useToast } from '../../hooks/use-toast.js';
|
|
6
|
+
export function Toaster() {
|
|
7
|
+
const { toasts } = useToast();
|
|
8
|
+
const toastStyles = css({
|
|
9
|
+
top: 0, // Move toasts to the top
|
|
10
|
+
pointerEvents: 'none', // Fix unresponsive UI while toast is active
|
|
11
|
+
gap: 'sm',
|
|
12
|
+
});
|
|
13
|
+
return (_jsxs(ToastProvider, { children: [toasts.map(({ id, title, description, action, ...props }) => (_jsxs(Toast, { ...props, children: [_jsxs("div", { className: "grid gap-1", children: [title && _jsx(ToastTitle, { children: title }), description && _jsx(ToastDescription, { children: description })] }), action, _jsx(ToastClose, {})] }, id))), _jsx(ToastViewport, { className: toastStyles })] }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Toaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Toaster.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,UAAU,OAAO;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE9B,MAAM,WAAW,GAAG,GAAG,CAAC;QACtB,GAAG,EAAE,CAAC,EAAE,yBAAyB;QACjC,aAAa,EAAE,MAAM,EAAE,4CAA4C;QACnE,GAAG,EAAE,IAAI;KACV,CAAC,CAAC;IAEH,OAAO,CACL,MAAC,aAAa,eACX,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5D,MAAC,KAAK,OAAc,KAAK,aACvB,eAAK,SAAS,EAAC,YAAY,aACxB,KAAK,IAAI,KAAC,UAAU,cAAE,KAAK,GAAc,EACzC,WAAW,IAAI,KAAC,gBAAgB,cAAE,WAAW,GAAoB,IAC9D,EACL,MAAM,EACP,KAAC,UAAU,KAAG,KANJ,EAAE,CAON,CACT,CAAC,EACF,KAAC,aAAa,IAAC,SAAS,EAAE,WAAW,GAAI,IAC3B,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wrap.js","sourceRoot":"","sources":["../../../src/components/shadow-panda/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const _BaseAlert: (props: React.HTMLAttributes<HTMLDivElement>, ref: React.ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const _Alert: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>, import("../../styled-system/recipes/alert.mjs").AlertVariantProps>;
|
|
4
|
+
export declare const _AlertTitle: import("../../styled-system/types/jsx.mjs").StyledComponent<"h5", import("../../styled-system/recipes/alert-title.mjs").AlertTitleVariantProps>;
|
|
5
|
+
export declare const _AlertDescription: import("../../styled-system/types/jsx.mjs").StyledComponent<"div", import("../../styled-system/recipes/alert-description.mjs").AlertDescriptionVariantProps>;
|
|
6
|
+
//# sourceMappingURL=_Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Alert.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/_Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,UAAU,UAAW,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,4CAE9G,CAAC;AAEF,eAAO,MAAM,MAAM,6OAAoG,CAAC;AACxH,eAAO,MAAM,WAAW,iJAA2B,CAAC;AACpD,eAAO,MAAM,iBAAiB,8JAAkC,CAAC"}
|