@mks2508/mks-ui 0.1.4 → 0.2.1
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/README.md +38 -11
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/types.d.ts +79 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/index.d.ts +19 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -72
- package/dist/react-ui/components/MorphingPopover/MorphingPopover.types.d.ts +44 -0
- package/dist/react-ui/components/MorphingPopover/MorphingPopover.types.d.ts.map +1 -0
- package/dist/react-ui/components/MorphingPopover/index.d.ts +46 -0
- package/dist/react-ui/components/MorphingPopover/index.d.ts.map +1 -0
- package/dist/{components/ui/morphing-popover/morphing-popover.js → react-ui/components/MorphingPopover/index.js} +46 -6
- package/dist/react-ui/components/MorphingPopover/morphing-popover.module.js +5 -0
- package/dist/react-ui/components/index.d.ts +9 -0
- package/dist/react-ui/components/index.d.ts.map +1 -0
- package/dist/react-ui/components/index.js +1 -0
- package/dist/react-ui/hooks/Animation/UseAutoHeight.d.ts +30 -0
- package/dist/react-ui/hooks/Animation/UseAutoHeight.d.ts.map +1 -0
- package/dist/{hooks/use-auto-height.js → react-ui/hooks/Animation/UseAutoHeight.js} +15 -1
- package/dist/react-ui/hooks/DOM/UseIsInView.d.ts +32 -0
- package/dist/react-ui/hooks/DOM/UseIsInView.d.ts.map +1 -0
- package/dist/react-ui/hooks/DOM/UseIsInView.js +33 -0
- package/dist/react-ui/hooks/State/UseControlledState.d.ts +31 -0
- package/dist/react-ui/hooks/State/UseControlledState.d.ts.map +1 -0
- package/dist/react-ui/hooks/State/UseControlledState.js +34 -0
- package/dist/react-ui/hooks/State/UseDataState.d.ts +21 -0
- package/dist/react-ui/hooks/State/UseDataState.d.ts.map +1 -0
- package/dist/{hooks/use-data-state.js → react-ui/hooks/State/UseDataState.js} +22 -1
- package/dist/react-ui/hooks/index.d.ts +14 -0
- package/dist/react-ui/hooks/index.d.ts.map +1 -0
- package/dist/react-ui/hooks/index.js +4 -0
- package/dist/react-ui/icons/index.d.ts +8 -0
- package/dist/react-ui/icons/index.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/activity.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/activity.js +1 -1
- package/dist/react-ui/icons/lucide-animated/arrow-down-to-line.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/arrow-down-to-line.js +1 -1
- package/dist/react-ui/icons/lucide-animated/arrow-up.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/arrow-up.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bell-electric.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/bell-electric.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bell.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/bell.js +1 -1
- package/dist/react-ui/icons/lucide-animated/bot.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/bot.js +1 -1
- package/dist/react-ui/icons/lucide-animated/box.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/box.js +1 -1
- package/dist/react-ui/icons/lucide-animated/check.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/check.js +1 -1
- package/dist/react-ui/icons/lucide-animated/circle-check.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/circle-check.js +1 -1
- package/dist/react-ui/icons/lucide-animated/delete.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/delete.js +1 -1
- package/dist/react-ui/icons/lucide-animated/download.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/download.js +1 -1
- package/dist/react-ui/icons/lucide-animated/edit-2.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/edit-2.js +1 -1
- package/dist/react-ui/icons/lucide-animated/globe.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/globe.js +1 -1
- package/dist/react-ui/icons/lucide-animated/home.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/home.js +1 -1
- package/dist/react-ui/icons/lucide-animated/index.d.ts +38 -0
- package/dist/react-ui/icons/lucide-animated/index.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/layers.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/layers.js +1 -1
- package/dist/react-ui/icons/lucide-animated/layout-panel-top.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/layout-panel-top.js +1 -1
- package/dist/react-ui/icons/lucide-animated/list.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/list.js +1 -1
- package/dist/react-ui/icons/lucide-animated/package.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/package.js +1 -1
- package/dist/react-ui/icons/lucide-animated/palette.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/palette.js +1 -1
- package/dist/react-ui/icons/lucide-animated/plus.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/plus.js +1 -1
- package/dist/react-ui/icons/lucide-animated/refresh-cw.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/refresh-cw.js +1 -1
- package/dist/react-ui/icons/lucide-animated/rocket.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/rocket.js +1 -1
- package/dist/react-ui/icons/lucide-animated/save.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/save.js +1 -1
- package/dist/react-ui/icons/lucide-animated/search.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/search.js +1 -1
- package/dist/react-ui/icons/lucide-animated/settings.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/settings.js +1 -1
- package/dist/react-ui/icons/lucide-animated/terminal.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/terminal.js +1 -1
- package/dist/react-ui/icons/lucide-animated/trash-2.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/trash-2.js +1 -1
- package/dist/react-ui/icons/lucide-animated/trending-down.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/trending-down.js +1 -1
- package/dist/react-ui/icons/lucide-animated/trending-up.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/trending-up.js +1 -1
- package/dist/react-ui/icons/lucide-animated/type.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/type.js +1 -1
- package/dist/react-ui/icons/lucide-animated/upload.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/upload.js +1 -1
- package/dist/react-ui/icons/lucide-animated/x.d.ts.map +1 -0
- package/dist/{icons → react-ui/icons}/lucide-animated/x.js +1 -1
- package/dist/react-ui/index.d.ts +19 -0
- package/dist/react-ui/index.d.ts.map +1 -0
- package/dist/react-ui/index.js +88 -0
- package/dist/react-ui/lib/get-strict-context.d.ts +30 -0
- package/dist/react-ui/lib/get-strict-context.d.ts.map +1 -0
- package/dist/react-ui/lib/get-strict-context.js +40 -0
- package/dist/react-ui/lib/index.d.ts +8 -0
- package/dist/react-ui/lib/index.d.ts.map +1 -0
- package/dist/react-ui/lib/index.js +2 -0
- package/dist/{lib → react-ui/lib}/utils.d.ts +2 -2
- package/dist/react-ui/lib/utils.d.ts.map +1 -0
- package/dist/{lib → react-ui/lib}/utils.js +3 -3
- package/dist/react-ui/primitives/AutoHeight/index.d.ts +31 -0
- package/dist/react-ui/primitives/AutoHeight/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/AutoHeight/index.js +52 -0
- package/dist/react-ui/primitives/CountingNumber/index.d.ts +44 -0
- package/dist/react-ui/primitives/CountingNumber/index.d.ts.map +1 -0
- package/dist/{components/animate-ui/primitives/texts/counting-number.js → react-ui/primitives/CountingNumber/index.js} +21 -2
- package/dist/react-ui/primitives/Highlight/Highlight.types.d.ts +113 -0
- package/dist/react-ui/primitives/Highlight/Highlight.types.d.ts.map +1 -0
- package/dist/react-ui/primitives/Highlight/index.d.ts +48 -0
- package/dist/react-ui/primitives/Highlight/index.d.ts.map +1 -0
- package/dist/{components/animate-ui/primitives/effects/highlight.js → react-ui/primitives/Highlight/index.js} +42 -2
- package/dist/react-ui/primitives/Slot/index.d.ts +53 -0
- package/dist/react-ui/primitives/Slot/index.d.ts.map +1 -0
- package/dist/{components/animate-ui/primitives/animate/slot.js → react-ui/primitives/Slot/index.js} +25 -2
- package/dist/react-ui/primitives/index.d.ts +12 -0
- package/dist/react-ui/primitives/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/index.js +4 -0
- package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts +47 -0
- package/dist/react-ui/ui/Accordion/Accordion.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Accordion/Accordion.styles.js +54 -0
- package/dist/react-ui/ui/Accordion/Accordion.types.d.ts +160 -0
- package/dist/react-ui/ui/Accordion/Accordion.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Accordion/index.d.ts +105 -0
- package/dist/react-ui/ui/Accordion/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Accordion/index.js +266 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts +28 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.js +29 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts +235 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts.map +1 -0
- package/dist/react-ui/ui/AlertDialog/index.d.ts +194 -0
- package/dist/react-ui/ui/AlertDialog/index.d.ts.map +1 -0
- package/dist/react-ui/ui/AlertDialog/index.js +319 -0
- package/dist/react-ui/ui/Badge/Badge.styles.d.ts +16 -0
- package/dist/react-ui/ui/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/{components/ui/badge/badge.styles.js → react-ui/ui/Badge/Badge.styles.js} +2 -6
- package/dist/react-ui/ui/Badge/Badge.types.d.ts +21 -0
- package/dist/react-ui/ui/Badge/Badge.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Badge/index.d.ts +20 -0
- package/dist/react-ui/ui/Badge/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Badge/index.js +34 -0
- package/dist/react-ui/ui/Button/Button.styles.d.ts +21 -0
- package/dist/react-ui/ui/Button/Button.styles.d.ts.map +1 -0
- package/dist/{components/ui/button/button.styles.js → react-ui/ui/Button/Button.styles.js} +3 -9
- package/dist/react-ui/ui/Button/Button.types.d.ts +45 -0
- package/dist/react-ui/ui/Button/Button.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Button/index.d.ts +22 -0
- package/dist/react-ui/ui/Button/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Button/index.js +103 -0
- package/dist/react-ui/ui/Card/Card.styles.d.ts +11 -0
- package/dist/react-ui/ui/Card/Card.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Card/Card.styles.js +24 -0
- package/dist/react-ui/ui/Card/Card.types.d.ts +22 -0
- package/dist/react-ui/ui/Card/Card.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Card/index.d.ts +36 -0
- package/dist/react-ui/ui/Card/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Card/index.js +82 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts +25 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.js +34 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts +88 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Checkbox/index.d.ts +59 -0
- package/dist/react-ui/ui/Checkbox/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Checkbox/index.js +158 -0
- package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts +7 -0
- package/dist/react-ui/ui/Combobox/Combobox.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Combobox/Combobox.styles.js +17 -0
- package/dist/react-ui/ui/Combobox/Combobox.types.d.ts +49 -0
- package/dist/react-ui/ui/Combobox/Combobox.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Combobox/index.d.ts +60 -0
- package/dist/react-ui/ui/Combobox/index.d.ts.map +1 -0
- package/dist/{components/ui/combobox.js → react-ui/ui/Combobox/index.js} +53 -15
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts +18 -0
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/CornerBracket/CornerBracket.styles.js +30 -0
- package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts +12 -0
- package/dist/react-ui/ui/CornerBracket/CornerBracket.types.d.ts.map +1 -0
- package/dist/react-ui/ui/CornerBracket/index.d.ts +23 -0
- package/dist/react-ui/ui/CornerBracket/index.d.ts.map +1 -0
- package/dist/react-ui/ui/CornerBracket/index.js +42 -0
- package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts +24 -0
- package/dist/react-ui/ui/Dialog/Dialog.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Dialog/Dialog.styles.js +29 -0
- package/dist/react-ui/ui/Dialog/Dialog.types.d.ts +221 -0
- package/dist/react-ui/ui/Dialog/Dialog.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Dialog/index.d.ts +138 -0
- package/dist/react-ui/ui/Dialog/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Dialog/index.js +265 -0
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts +7 -0
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.styles.js +16 -0
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts +50 -0
- package/dist/react-ui/ui/DropdownMenu/DropdownMenu.types.d.ts.map +1 -0
- package/dist/react-ui/ui/DropdownMenu/index.d.ts +50 -0
- package/dist/react-ui/ui/DropdownMenu/index.d.ts.map +1 -0
- package/dist/{components/ui/dropdown-menu.js → react-ui/ui/DropdownMenu/index.js} +43 -13
- package/dist/react-ui/ui/Field/Field.styles.d.ts +11 -0
- package/dist/react-ui/ui/Field/Field.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Field/Field.styles.js +27 -0
- package/dist/react-ui/ui/Field/Field.types.d.ts +39 -0
- package/dist/react-ui/ui/Field/Field.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Field/index.d.ts +56 -0
- package/dist/react-ui/ui/Field/index.d.ts.map +1 -0
- package/dist/{components/ui/field.js → react-ui/ui/Field/index.js} +54 -22
- package/dist/react-ui/ui/Input/Input.styles.d.ts +7 -0
- package/dist/react-ui/ui/Input/Input.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Input/Input.styles.js +5 -0
- package/dist/react-ui/ui/Input/Input.types.d.ts +9 -0
- package/dist/react-ui/ui/Input/Input.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Input/index.d.ts +17 -0
- package/dist/react-ui/ui/Input/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Input/index.js +29 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts +15 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.js +34 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts +28 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts.map +1 -0
- package/dist/react-ui/ui/InputGroup/index.d.ts +28 -0
- package/dist/react-ui/ui/InputGroup/index.d.ts.map +1 -0
- package/dist/react-ui/ui/InputGroup/index.js +81 -0
- package/dist/react-ui/ui/Label/Label.styles.d.ts +6 -0
- package/dist/react-ui/ui/Label/Label.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Label/Label.styles.js +5 -0
- package/dist/react-ui/ui/Label/Label.types.d.ts +8 -0
- package/dist/react-ui/ui/Label/Label.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Label/index.d.ts +14 -0
- package/dist/react-ui/ui/Label/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Label/index.js +24 -0
- package/dist/react-ui/ui/Menu/Menu.styles.d.ts +42 -0
- package/dist/react-ui/ui/Menu/Menu.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Menu/Menu.styles.js +32 -0
- package/dist/react-ui/ui/Menu/Menu.types.d.ts +328 -0
- package/dist/react-ui/ui/Menu/Menu.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Menu/index.d.ts +354 -0
- package/dist/react-ui/ui/Menu/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Menu/index.js +636 -0
- package/dist/react-ui/ui/Popover/Popover.styles.d.ts +23 -0
- package/dist/react-ui/ui/Popover/Popover.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Popover/Popover.styles.js +26 -0
- package/dist/react-ui/ui/Popover/Popover.types.d.ts +204 -0
- package/dist/react-ui/ui/Popover/Popover.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Popover/index.d.ts +133 -0
- package/dist/react-ui/ui/Popover/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Popover/index.js +237 -0
- package/dist/react-ui/ui/Progress/Progress.styles.d.ts +28 -0
- package/dist/react-ui/ui/Progress/Progress.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Progress/Progress.styles.js +30 -0
- package/dist/react-ui/ui/Progress/Progress.types.d.ts +148 -0
- package/dist/react-ui/ui/Progress/Progress.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Progress/index.d.ts +111 -0
- package/dist/react-ui/ui/Progress/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Progress/index.js +170 -0
- package/dist/react-ui/ui/Select/Select.styles.d.ts +7 -0
- package/dist/react-ui/ui/Select/Select.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Select/Select.styles.js +15 -0
- package/dist/react-ui/ui/Select/Select.types.d.ts +28 -0
- package/dist/react-ui/ui/Select/Select.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Select/index.d.ts +38 -0
- package/dist/react-ui/ui/Select/index.d.ts.map +1 -0
- package/dist/{components/ui/select.js → react-ui/ui/Select/index.js} +34 -12
- package/dist/react-ui/ui/Separator/Separator.styles.d.ts +6 -0
- package/dist/react-ui/ui/Separator/Separator.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Separator/Separator.styles.js +5 -0
- package/dist/react-ui/ui/Separator/Separator.types.d.ts +9 -0
- package/dist/react-ui/ui/Separator/Separator.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Separator/index.d.ts +16 -0
- package/dist/react-ui/ui/Separator/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Separator/index.js +29 -0
- package/dist/react-ui/ui/Switch/Switch.styles.d.ts +26 -0
- package/dist/react-ui/ui/Switch/Switch.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Switch/Switch.styles.js +41 -0
- package/dist/react-ui/ui/Switch/Switch.types.d.ts +130 -0
- package/dist/react-ui/ui/Switch/Switch.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Switch/index.d.ts +79 -0
- package/dist/react-ui/ui/Switch/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Switch/index.js +199 -0
- package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts +43 -0
- package/dist/react-ui/ui/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Tabs/Tabs.styles.js +26 -0
- package/dist/react-ui/ui/Tabs/Tabs.types.d.ts +201 -0
- package/dist/react-ui/ui/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Tabs/index.d.ts +141 -0
- package/dist/react-ui/ui/Tabs/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Tabs/index.js +308 -0
- package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts +6 -0
- package/dist/react-ui/ui/Textarea/Textarea.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Textarea/Textarea.styles.js +5 -0
- package/dist/react-ui/ui/Textarea/Textarea.types.d.ts +8 -0
- package/dist/react-ui/ui/Textarea/Textarea.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Textarea/index.d.ts +14 -0
- package/dist/react-ui/ui/Textarea/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Textarea/index.js +24 -0
- package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts +23 -0
- package/dist/react-ui/ui/Tooltip/Tooltip.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/Tooltip/Tooltip.styles.js +26 -0
- package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts +203 -0
- package/dist/react-ui/ui/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/dist/react-ui/ui/Tooltip/index.d.ts +110 -0
- package/dist/react-ui/ui/Tooltip/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Tooltip/index.js +219 -0
- package/dist/react-ui/ui/index.d.ts +31 -0
- package/dist/react-ui/ui/index.d.ts.map +1 -0
- package/dist/react-ui/ui/index.js +37 -0
- package/package.json +12 -9
- package/src/core/index.ts +7 -0
- package/src/core/types.ts +82 -0
- package/src/index.ts +20 -14
- package/src/react-ui/components/MorphingPopover/MorphingPopover.types.ts +49 -0
- package/src/react-ui/components/MorphingPopover/index.tsx +186 -0
- package/src/react-ui/components/index.ts +9 -0
- package/src/{hooks/use-auto-height.tsx → react-ui/hooks/Animation/UseAutoHeight.tsx} +24 -3
- package/src/react-ui/hooks/DOM/UseIsInView.tsx +44 -0
- package/src/{hooks/use-controlled-state.tsx → react-ui/hooks/State/UseControlledState.tsx} +26 -2
- package/src/{hooks/use-data-state.tsx → react-ui/hooks/State/UseDataState.tsx} +22 -0
- package/src/react-ui/hooks/index.ts +17 -0
- package/src/react-ui/icons/index.ts +12 -0
- package/src/{icons → react-ui/icons}/lucide-animated/activity.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/bell-electric.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/bell.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/bot.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/box.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/circle-check.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/delete.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/download.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/home.tsx +1 -1
- package/src/react-ui/icons/lucide-animated/index.ts +38 -0
- package/src/{icons → react-ui/icons}/lucide-animated/layout-panel-top.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/plus.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/search.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/settings.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/trending-down.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/trending-up.tsx +1 -1
- package/src/{icons → react-ui/icons}/lucide-animated/x.tsx +1 -1
- package/src/react-ui/index.ts +30 -0
- package/src/{lib → react-ui/lib}/get-strict-context.tsx +20 -0
- package/src/react-ui/lib/index.ts +8 -0
- package/src/{lib → react-ui/lib}/utils.ts +2 -2
- package/src/{components/animate-ui/primitives/effects/auto-height.tsx → react-ui/primitives/AutoHeight/index.tsx} +24 -5
- package/src/{components/animate-ui/primitives/texts/counting-number.tsx → react-ui/primitives/CountingNumber/index.tsx} +35 -7
- package/src/react-ui/primitives/Highlight/Highlight.types.ts +136 -0
- package/src/{components/animate-ui/primitives/effects/highlight.tsx → react-ui/primitives/Highlight/index.tsx} +60 -123
- package/src/{components/animate-ui/primitives/animate/slot.tsx → react-ui/primitives/Slot/index.tsx} +43 -11
- package/src/react-ui/primitives/index.ts +13 -0
- package/src/react-ui/ui/Accordion/Accordion.styles.ts +72 -0
- package/src/react-ui/ui/Accordion/Accordion.types.ts +199 -0
- package/src/react-ui/ui/Accordion/index.tsx +362 -0
- package/src/react-ui/ui/AlertDialog/AlertDialog.styles.ts +38 -0
- package/src/react-ui/ui/AlertDialog/AlertDialog.types.ts +296 -0
- package/src/react-ui/ui/AlertDialog/index.tsx +540 -0
- package/src/react-ui/ui/Badge/Badge.styles.ts +43 -0
- package/src/react-ui/ui/Badge/Badge.types.ts +26 -0
- package/src/react-ui/ui/Badge/index.tsx +34 -0
- package/src/react-ui/ui/Button/Button.styles.ts +57 -0
- package/src/react-ui/ui/Button/Button.types.ts +63 -0
- package/src/react-ui/ui/Button/index.tsx +155 -0
- package/src/react-ui/ui/Card/Card.styles.ts +32 -0
- package/src/react-ui/ui/Card/Card.types.ts +39 -0
- package/src/react-ui/ui/Card/index.tsx +130 -0
- package/src/react-ui/ui/Checkbox/Checkbox.styles.ts +40 -0
- package/src/react-ui/ui/Checkbox/Checkbox.types.ts +98 -0
- package/src/react-ui/ui/Checkbox/index.tsx +233 -0
- package/src/react-ui/ui/Combobox/Combobox.styles.ts +34 -0
- package/src/react-ui/ui/Combobox/Combobox.types.ts +89 -0
- package/src/react-ui/ui/Combobox/index.tsx +331 -0
- package/src/react-ui/ui/CornerBracket/CornerBracket.styles.ts +38 -0
- package/src/react-ui/ui/CornerBracket/CornerBracket.types.ts +15 -0
- package/src/react-ui/ui/CornerBracket/index.tsx +49 -0
- package/src/react-ui/ui/Dialog/Dialog.styles.ts +59 -0
- package/src/react-ui/ui/Dialog/Dialog.types.ts +284 -0
- package/src/react-ui/ui/Dialog/index.tsx +452 -0
- package/src/react-ui/ui/DropdownMenu/DropdownMenu.styles.ts +35 -0
- package/src/react-ui/ui/DropdownMenu/DropdownMenu.types.ts +81 -0
- package/src/react-ui/ui/DropdownMenu/index.tsx +300 -0
- package/src/react-ui/ui/Field/Field.styles.ts +47 -0
- package/src/react-ui/ui/Field/Field.types.ts +60 -0
- package/src/react-ui/ui/Field/index.tsx +254 -0
- package/src/{components/ui/input.tsx → react-ui/ui/Input/Input.styles.ts} +8 -17
- package/src/react-ui/ui/Input/Input.types.ts +10 -0
- package/src/react-ui/ui/Input/index.tsx +32 -0
- package/src/react-ui/ui/InputGroup/InputGroup.styles.ts +53 -0
- package/src/react-ui/ui/InputGroup/InputGroup.types.ts +44 -0
- package/src/react-ui/ui/InputGroup/index.tsx +147 -0
- package/src/react-ui/ui/Label/Label.styles.ts +10 -0
- package/src/react-ui/ui/Label/Label.types.ts +9 -0
- package/src/react-ui/ui/Label/index.tsx +27 -0
- package/src/react-ui/ui/Menu/Menu.styles.ts +71 -0
- package/src/react-ui/ui/Menu/Menu.types.ts +425 -0
- package/src/react-ui/ui/Menu/index.tsx +900 -0
- package/src/react-ui/ui/Popover/Popover.styles.ts +55 -0
- package/src/react-ui/ui/Popover/Popover.types.ts +261 -0
- package/src/react-ui/ui/Popover/index.tsx +422 -0
- package/src/react-ui/ui/Progress/Progress.styles.ts +36 -0
- package/src/react-ui/ui/Progress/Progress.types.ts +162 -0
- package/src/react-ui/ui/Progress/index.tsx +254 -0
- package/src/react-ui/ui/Select/Select.styles.ts +30 -0
- package/src/react-ui/ui/Select/Select.types.ts +51 -0
- package/src/react-ui/ui/Select/index.tsx +225 -0
- package/src/react-ui/ui/Separator/Separator.styles.ts +10 -0
- package/src/react-ui/ui/Separator/Separator.types.ts +10 -0
- package/src/react-ui/ui/Separator/index.tsx +37 -0
- package/src/react-ui/ui/Switch/Switch.styles.ts +50 -0
- package/src/react-ui/ui/Switch/Switch.types.ts +155 -0
- package/src/react-ui/ui/Switch/index.tsx +253 -0
- package/src/react-ui/ui/Tabs/Tabs.styles.ts +60 -0
- package/src/react-ui/ui/Tabs/Tabs.types.ts +250 -0
- package/src/react-ui/ui/Tabs/index.tsx +421 -0
- package/src/{components/ui/textarea.tsx → react-ui/ui/Textarea/Textarea.styles.ts} +7 -15
- package/src/react-ui/ui/Textarea/Textarea.types.ts +9 -0
- package/src/react-ui/ui/Textarea/index.tsx +27 -0
- package/src/react-ui/ui/Tooltip/Tooltip.styles.ts +43 -0
- package/src/react-ui/ui/Tooltip/Tooltip.types.ts +253 -0
- package/src/react-ui/ui/Tooltip/index.tsx +394 -0
- package/src/react-ui/ui/index.ts +34 -0
- package/dist/components/animate-ui/primitives/animate/slot.d.ts +0 -18
- package/dist/components/animate-ui/primitives/animate/slot.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/accordion.d.ts +0 -22
- package/dist/components/animate-ui/primitives/base/accordion.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/accordion.js +0 -132
- package/dist/components/animate-ui/primitives/base/alert-dialog.d.ts +0 -33
- package/dist/components/animate-ui/primitives/base/alert-dialog.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/alert-dialog.js +0 -132
- package/dist/components/animate-ui/primitives/base/checkbox.d.ts +0 -15
- package/dist/components/animate-ui/primitives/base/checkbox.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/checkbox.js +0 -101
- package/dist/components/animate-ui/primitives/base/dialog.d.ts +0 -33
- package/dist/components/animate-ui/primitives/base/dialog.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/dialog.js +0 -132
- package/dist/components/animate-ui/primitives/base/menu.d.ts +0 -60
- package/dist/components/animate-ui/primitives/base/menu.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/menu.js +0 -266
- package/dist/components/animate-ui/primitives/base/popover.d.ts +0 -30
- package/dist/components/animate-ui/primitives/base/popover.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/popover.js +0 -109
- package/dist/components/animate-ui/primitives/base/progress.d.ts +0 -297
- package/dist/components/animate-ui/primitives/base/progress.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/progress.js +0 -63
- package/dist/components/animate-ui/primitives/base/switch.d.ts +0 -23
- package/dist/components/animate-ui/primitives/base/switch.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/switch.js +0 -90
- package/dist/components/animate-ui/primitives/base/tabs.d.ts +0 -33
- package/dist/components/animate-ui/primitives/base/tabs.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/tabs.js +0 -132
- package/dist/components/animate-ui/primitives/base/tooltip.d.ts +0 -31
- package/dist/components/animate-ui/primitives/base/tooltip.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/base/tooltip.js +0 -116
- package/dist/components/animate-ui/primitives/effects/auto-height.d.ts +0 -12
- package/dist/components/animate-ui/primitives/effects/auto-height.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/effects/auto-height.js +0 -37
- package/dist/components/animate-ui/primitives/effects/highlight.d.ts +0 -92
- package/dist/components/animate-ui/primitives/effects/highlight.d.ts.map +0 -1
- package/dist/components/animate-ui/primitives/texts/counting-number.d.ts +0 -16
- package/dist/components/animate-ui/primitives/texts/counting-number.d.ts.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -9
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -9
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -1
- package/dist/components/ui/auto-height.d.ts +0 -9
- package/dist/components/ui/auto-height.d.ts.map +0 -1
- package/dist/components/ui/auto-height.js +0 -1
- package/dist/components/ui/badge/badge.d.ts +0 -37
- package/dist/components/ui/badge/badge.d.ts.map +0 -1
- package/dist/components/ui/badge/badge.js +0 -52
- package/dist/components/ui/badge/badge.styles.d.ts +0 -23
- package/dist/components/ui/badge/badge.styles.d.ts.map +0 -1
- package/dist/components/ui/badge/badge.types.d.ts +0 -38
- package/dist/components/ui/badge/badge.types.d.ts.map +0 -1
- package/dist/components/ui/badge/index.d.ts +0 -8
- package/dist/components/ui/badge/index.d.ts.map +0 -1
- package/dist/components/ui/badge/index.js +0 -2
- package/dist/components/ui/button/button.d.ts +0 -79
- package/dist/components/ui/button/button.d.ts.map +0 -1
- package/dist/components/ui/button/button.js +0 -161
- package/dist/components/ui/button/button.styles.d.ts +0 -33
- package/dist/components/ui/button/button.styles.d.ts.map +0 -1
- package/dist/components/ui/button/button.types.d.ts +0 -103
- package/dist/components/ui/button/button.types.d.ts.map +0 -1
- package/dist/components/ui/button/index.d.ts +0 -7
- package/dist/components/ui/button/index.d.ts.map +0 -1
- package/dist/components/ui/button/index.js +0 -2
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -67
- package/dist/components/ui/checkbox.d.ts +0 -9
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/checkbox.js +0 -1
- package/dist/components/ui/combobox.d.ts +0 -25
- package/dist/components/ui/combobox.d.ts.map +0 -1
- package/dist/components/ui/corner-bracket.d.ts +0 -34
- package/dist/components/ui/corner-bracket.d.ts.map +0 -1
- package/dist/components/ui/corner-bracket.js +0 -70
- package/dist/components/ui/counting-number.d.ts +0 -9
- package/dist/components/ui/counting-number.d.ts.map +0 -1
- package/dist/components/ui/counting-number.js +0 -1
- package/dist/components/ui/dialog.d.ts +0 -9
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/field.d.ts +0 -25
- package/dist/components/ui/field.d.ts.map +0 -1
- package/dist/components/ui/highlight.d.ts +0 -9
- package/dist/components/ui/highlight.d.ts.map +0 -1
- package/dist/components/ui/highlight.js +0 -1
- package/dist/components/ui/index.d.ts +0 -36
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -47
- package/dist/components/ui/input-group.d.ts +0 -19
- package/dist/components/ui/input-group.d.ts.map +0 -1
- package/dist/components/ui/input-group.js +0 -84
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -17
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -15
- package/dist/components/ui/menu.d.ts +0 -9
- package/dist/components/ui/menu.d.ts.map +0 -1
- package/dist/components/ui/menu.js +0 -1
- package/dist/components/ui/morphing-popover/index.d.ts +0 -10
- package/dist/components/ui/morphing-popover/index.d.ts.map +0 -1
- package/dist/components/ui/morphing-popover/index.js +0 -1
- package/dist/components/ui/morphing-popover/morphing-popover.d.ts +0 -54
- package/dist/components/ui/morphing-popover/morphing-popover.d.ts.map +0 -1
- package/dist/components/ui/morphing-popover/morphing-popover.module.js +0 -5
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/popover.js +0 -1
- package/dist/components/ui/progress.d.ts +0 -9
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/progress.js +0 -1
- package/dist/components/ui/select.d.ts +0 -16
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -18
- package/dist/components/ui/slot.d.ts +0 -9
- package/dist/components/ui/slot.d.ts.map +0 -1
- package/dist/components/ui/slot.js +0 -1
- package/dist/components/ui/switch.d.ts +0 -9
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -1
- package/dist/components/ui/tabs.d.ts +0 -9
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -1
- package/dist/components/ui/textarea.d.ts +0 -4
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -15
- package/dist/components/ui/tooltip.d.ts +0 -9
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -1
- package/dist/hooks/index.d.ts +0 -10
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -4
- package/dist/hooks/use-auto-height.d.ts +0 -11
- package/dist/hooks/use-auto-height.d.ts.map +0 -1
- package/dist/hooks/use-controlled-state.d.ts +0 -9
- package/dist/hooks/use-controlled-state.d.ts.map +0 -1
- package/dist/hooks/use-controlled-state.js +0 -17
- package/dist/hooks/use-data-state.d.ts +0 -5
- package/dist/hooks/use-data-state.d.ts.map +0 -1
- package/dist/hooks/use-is-in-view.d.ts +0 -13
- package/dist/hooks/use-is-in-view.d.ts.map +0 -1
- package/dist/hooks/use-is-in-view.js +0 -20
- package/dist/icons/index.d.ts +0 -8
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/icons/lucide-animated/activity.d.ts.map +0 -1
- package/dist/icons/lucide-animated/arrow-down-to-line.d.ts.map +0 -1
- package/dist/icons/lucide-animated/arrow-up.d.ts.map +0 -1
- package/dist/icons/lucide-animated/bell-electric.d.ts.map +0 -1
- package/dist/icons/lucide-animated/bell.d.ts.map +0 -1
- package/dist/icons/lucide-animated/bot.d.ts.map +0 -1
- package/dist/icons/lucide-animated/box.d.ts.map +0 -1
- package/dist/icons/lucide-animated/check.d.ts.map +0 -1
- package/dist/icons/lucide-animated/circle-check.d.ts.map +0 -1
- package/dist/icons/lucide-animated/delete.d.ts.map +0 -1
- package/dist/icons/lucide-animated/download.d.ts.map +0 -1
- package/dist/icons/lucide-animated/edit-2.d.ts.map +0 -1
- package/dist/icons/lucide-animated/globe.d.ts.map +0 -1
- package/dist/icons/lucide-animated/home.d.ts.map +0 -1
- package/dist/icons/lucide-animated/index.d.ts +0 -38
- package/dist/icons/lucide-animated/index.d.ts.map +0 -1
- package/dist/icons/lucide-animated/layers.d.ts.map +0 -1
- package/dist/icons/lucide-animated/layout-panel-top.d.ts.map +0 -1
- package/dist/icons/lucide-animated/list.d.ts.map +0 -1
- package/dist/icons/lucide-animated/package.d.ts.map +0 -1
- package/dist/icons/lucide-animated/palette.d.ts.map +0 -1
- package/dist/icons/lucide-animated/plus.d.ts.map +0 -1
- package/dist/icons/lucide-animated/refresh-cw.d.ts.map +0 -1
- package/dist/icons/lucide-animated/rocket.d.ts.map +0 -1
- package/dist/icons/lucide-animated/save.d.ts.map +0 -1
- package/dist/icons/lucide-animated/search.d.ts.map +0 -1
- package/dist/icons/lucide-animated/settings.d.ts.map +0 -1
- package/dist/icons/lucide-animated/terminal.d.ts.map +0 -1
- package/dist/icons/lucide-animated/trash-2.d.ts.map +0 -1
- package/dist/icons/lucide-animated/trending-down.d.ts.map +0 -1
- package/dist/icons/lucide-animated/trending-up.d.ts.map +0 -1
- package/dist/icons/lucide-animated/type.d.ts.map +0 -1
- package/dist/icons/lucide-animated/upload.d.ts.map +0 -1
- package/dist/icons/lucide-animated/x.d.ts.map +0 -1
- package/dist/lib/get-strict-context.d.ts +0 -10
- package/dist/lib/get-strict-context.d.ts.map +0 -1
- package/dist/lib/get-strict-context.js +0 -20
- package/dist/lib/utils.d.ts.map +0 -1
- package/src/components/animate-ui/primitives/base/accordion.tsx +0 -179
- package/src/components/animate-ui/primitives/base/alert-dialog.tsx +0 -218
- package/src/components/animate-ui/primitives/base/checkbox.tsx +0 -153
- package/src/components/animate-ui/primitives/base/dialog.tsx +0 -203
- package/src/components/animate-ui/primitives/base/menu.tsx +0 -463
- package/src/components/animate-ui/primitives/base/popover.tsx +0 -167
- package/src/components/animate-ui/primitives/base/progress.tsx +0 -103
- package/src/components/animate-ui/primitives/base/switch.tsx +0 -158
- package/src/components/animate-ui/primitives/base/tabs.tsx +0 -202
- package/src/components/animate-ui/primitives/base/tooltip.tsx +0 -209
- package/src/components/ui/accordion.tsx +0 -9
- package/src/components/ui/alert-dialog.tsx +0 -9
- package/src/components/ui/auto-height.tsx +0 -9
- package/src/components/ui/badge/badge.styles.ts +0 -46
- package/src/components/ui/badge/badge.tsx +0 -52
- package/src/components/ui/badge/badge.types.ts +0 -41
- package/src/components/ui/badge/index.ts +0 -8
- package/src/components/ui/button/button.styles.ts +0 -66
- package/src/components/ui/button/button.tsx +0 -209
- package/src/components/ui/button/button.types.ts +0 -125
- package/src/components/ui/button/index.ts +0 -7
- package/src/components/ui/card.tsx +0 -108
- package/src/components/ui/checkbox.tsx +0 -9
- package/src/components/ui/combobox.tsx +0 -293
- package/src/components/ui/corner-bracket.tsx +0 -85
- package/src/components/ui/counting-number.tsx +0 -9
- package/src/components/ui/dialog.tsx +0 -9
- package/src/components/ui/dropdown-menu.tsx +0 -261
- package/src/components/ui/field.tsx +0 -227
- package/src/components/ui/highlight.tsx +0 -9
- package/src/components/ui/index.ts +0 -43
- package/src/components/ui/input-group.tsx +0 -149
- package/src/components/ui/label.tsx +0 -18
- package/src/components/ui/menu.tsx +0 -9
- package/src/components/ui/morphing-popover/index.ts +0 -10
- package/src/components/ui/morphing-popover/morphing-popover.tsx +0 -183
- package/src/components/ui/popover.tsx +0 -9
- package/src/components/ui/progress.tsx +0 -9
- package/src/components/ui/select.tsx +0 -190
- package/src/components/ui/separator.tsx +0 -25
- package/src/components/ui/slot.tsx +0 -9
- package/src/components/ui/switch.tsx +0 -9
- package/src/components/ui/tabs.tsx +0 -9
- package/src/components/ui/tooltip.tsx +0 -9
- package/src/hooks/index.ts +0 -10
- package/src/hooks/use-is-in-view.tsx +0 -25
- package/src/icons/index.ts +0 -12
- package/src/icons/lucide-animated/index.ts +0 -38
- /package/dist/{components/ui/morphing-popover/morphing-popover.module-CE9GIgKo.css → react-ui/components/MorphingPopover/morphing-popover.module-CgbYV_HS.css} +0 -0
- /package/dist/{icons → react-ui/icons}/index.js +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/activity.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/arrow-down-to-line.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/arrow-up.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/bell-electric.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/bell.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/bot.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/box.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/check.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/circle-check.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/delete.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/download.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/edit-2.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/globe.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/home.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/index.js +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/layers.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/layout-panel-top.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/list.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/package.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/palette.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/plus.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/refresh-cw.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/rocket.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/save.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/search.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/settings.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/terminal.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/trash-2.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/trending-down.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/trending-up.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/type.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/upload.d.ts +0 -0
- /package/dist/{icons → react-ui/icons}/lucide-animated/x.d.ts +0 -0
- /package/src/{components/ui/morphing-popover → react-ui/components/MorphingPopover}/morphing-popover.module.css +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/arrow-down-to-line.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/arrow-up.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/check.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/edit-2.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/globe.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/layers.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/list.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/package.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/palette.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/refresh-cw.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/rocket.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/save.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/terminal.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/trash-2.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/type.tsx +0 -0
- /package/src/{icons → react-ui/icons}/lucide-animated/upload.tsx +0 -0
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Accordion as AccordionPrimitive } from '@base-ui-components/react/accordion';
|
|
5
|
-
import { AnimatePresence, motion, type HTMLMotionProps } from 'motion/react';
|
|
6
|
-
|
|
7
|
-
import { getStrictContext } from '@/lib/get-strict-context';
|
|
8
|
-
import { useControlledState } from '@/hooks/use-controlled-state';
|
|
9
|
-
|
|
10
|
-
type AccordionContextType = {
|
|
11
|
-
value: string | string[] | undefined;
|
|
12
|
-
setValue: (value: string | string[] | undefined) => void;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
type AccordionItemContextType = {
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
setIsOpen: (open: boolean) => void;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const [AccordionProvider, useAccordion] =
|
|
21
|
-
getStrictContext<AccordionContextType>('AccordionContext');
|
|
22
|
-
|
|
23
|
-
const [AccordionItemProvider, useAccordionItem] =
|
|
24
|
-
getStrictContext<AccordionItemContextType>('AccordionItemContext');
|
|
25
|
-
|
|
26
|
-
type AccordionProps = React.ComponentProps<typeof AccordionPrimitive.Root>;
|
|
27
|
-
|
|
28
|
-
function Accordion(props: AccordionProps) {
|
|
29
|
-
const [value, setValue] = useControlledState<string | string[] | undefined>({
|
|
30
|
-
value: props?.value,
|
|
31
|
-
defaultValue: props?.defaultValue,
|
|
32
|
-
onChange: props?.onValueChange as (
|
|
33
|
-
value: string | string[] | undefined,
|
|
34
|
-
) => void,
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<AccordionProvider value={{ value, setValue }}>
|
|
39
|
-
<AccordionPrimitive.Root
|
|
40
|
-
data-slot="accordion"
|
|
41
|
-
{...props}
|
|
42
|
-
onValueChange={setValue}
|
|
43
|
-
/>
|
|
44
|
-
</AccordionProvider>
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type AccordionItemProps = React.ComponentProps<typeof AccordionPrimitive.Item>;
|
|
49
|
-
|
|
50
|
-
function AccordionItem(props: AccordionItemProps) {
|
|
51
|
-
const { value } = useAccordion();
|
|
52
|
-
const [isOpen, setIsOpen] = React.useState(
|
|
53
|
-
value?.includes(props?.value) ?? false,
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
React.useEffect(() => {
|
|
57
|
-
setIsOpen(value?.includes(props?.value) ?? false);
|
|
58
|
-
}, [value, props?.value]);
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<AccordionItemProvider value={{ isOpen, setIsOpen }}>
|
|
62
|
-
<AccordionPrimitive.Item data-slot="accordion-item" {...props} />
|
|
63
|
-
</AccordionItemProvider>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type AccordionHeaderProps = React.ComponentProps<
|
|
68
|
-
typeof AccordionPrimitive.Header
|
|
69
|
-
>;
|
|
70
|
-
|
|
71
|
-
function AccordionHeader(props: AccordionHeaderProps) {
|
|
72
|
-
return <AccordionPrimitive.Header data-slot="accordion-header" {...props} />;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type AccordionTriggerProps = React.ComponentProps<
|
|
76
|
-
typeof AccordionPrimitive.Trigger
|
|
77
|
-
>;
|
|
78
|
-
|
|
79
|
-
function AccordionTrigger(props: AccordionTriggerProps) {
|
|
80
|
-
return (
|
|
81
|
-
<AccordionPrimitive.Trigger data-slot="accordion-trigger" {...props} />
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
type AccordionPanelProps = Omit<
|
|
86
|
-
React.ComponentProps<typeof AccordionPrimitive.Panel>,
|
|
87
|
-
'keepMounted' | 'render'
|
|
88
|
-
> &
|
|
89
|
-
HTMLMotionProps<'div'> & {
|
|
90
|
-
keepRendered?: boolean;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
function AccordionPanel({
|
|
94
|
-
transition = { duration: 0.35, ease: 'easeInOut' },
|
|
95
|
-
hiddenUntilFound,
|
|
96
|
-
keepRendered = false,
|
|
97
|
-
...props
|
|
98
|
-
}: AccordionPanelProps) {
|
|
99
|
-
const { isOpen } = useAccordionItem();
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<AnimatePresence>
|
|
103
|
-
{keepRendered ? (
|
|
104
|
-
<AccordionPrimitive.Panel
|
|
105
|
-
hidden={false}
|
|
106
|
-
hiddenUntilFound={hiddenUntilFound}
|
|
107
|
-
keepMounted
|
|
108
|
-
render={
|
|
109
|
-
<motion.div
|
|
110
|
-
key="accordion-panel"
|
|
111
|
-
data-slot="accordion-panel"
|
|
112
|
-
initial={{ height: 0, opacity: 0, '--mask-stop': '0%', y: 20 }}
|
|
113
|
-
animate={
|
|
114
|
-
isOpen
|
|
115
|
-
? { height: 'auto', opacity: 1, '--mask-stop': '100%', y: 0 }
|
|
116
|
-
: { height: 0, opacity: 0, '--mask-stop': '0%', y: 20 }
|
|
117
|
-
}
|
|
118
|
-
transition={transition}
|
|
119
|
-
style={{
|
|
120
|
-
maskImage:
|
|
121
|
-
'linear-gradient(black var(--mask-stop), transparent var(--mask-stop))',
|
|
122
|
-
WebkitMaskImage:
|
|
123
|
-
'linear-gradient(black var(--mask-stop), transparent var(--mask-stop))',
|
|
124
|
-
overflow: 'hidden',
|
|
125
|
-
}}
|
|
126
|
-
{...props}
|
|
127
|
-
/>
|
|
128
|
-
}
|
|
129
|
-
/>
|
|
130
|
-
) : (
|
|
131
|
-
isOpen && (
|
|
132
|
-
<AccordionPrimitive.Panel
|
|
133
|
-
hidden={false}
|
|
134
|
-
hiddenUntilFound={hiddenUntilFound}
|
|
135
|
-
keepMounted
|
|
136
|
-
render={
|
|
137
|
-
<motion.div
|
|
138
|
-
key="accordion-panel"
|
|
139
|
-
data-slot="accordion-panel"
|
|
140
|
-
initial={{ height: 0, opacity: 0, '--mask-stop': '0%', y: 20 }}
|
|
141
|
-
animate={{
|
|
142
|
-
height: 'auto',
|
|
143
|
-
opacity: 1,
|
|
144
|
-
'--mask-stop': '100%',
|
|
145
|
-
y: 0,
|
|
146
|
-
}}
|
|
147
|
-
exit={{ height: 0, opacity: 0, '--mask-stop': '0%', y: 20 }}
|
|
148
|
-
transition={transition}
|
|
149
|
-
style={{
|
|
150
|
-
maskImage:
|
|
151
|
-
'linear-gradient(black var(--mask-stop), transparent var(--mask-stop))',
|
|
152
|
-
WebkitMaskImage:
|
|
153
|
-
'linear-gradient(black var(--mask-stop), transparent var(--mask-stop))',
|
|
154
|
-
overflow: 'hidden',
|
|
155
|
-
}}
|
|
156
|
-
{...props}
|
|
157
|
-
/>
|
|
158
|
-
}
|
|
159
|
-
/>
|
|
160
|
-
)
|
|
161
|
-
)}
|
|
162
|
-
</AnimatePresence>
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export {
|
|
167
|
-
Accordion,
|
|
168
|
-
AccordionItem,
|
|
169
|
-
AccordionHeader,
|
|
170
|
-
AccordionTrigger,
|
|
171
|
-
AccordionPanel,
|
|
172
|
-
useAccordionItem,
|
|
173
|
-
type AccordionProps,
|
|
174
|
-
type AccordionItemProps,
|
|
175
|
-
type AccordionHeaderProps,
|
|
176
|
-
type AccordionTriggerProps,
|
|
177
|
-
type AccordionPanelProps,
|
|
178
|
-
type AccordionItemContextType,
|
|
179
|
-
};
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { AlertDialog as AlertDialogPrimitive } from '@base-ui-components/react/alert-dialog';
|
|
5
|
-
import { AnimatePresence, motion, type HTMLMotionProps } from 'motion/react';
|
|
6
|
-
|
|
7
|
-
import { useControlledState } from '@/hooks/use-controlled-state';
|
|
8
|
-
import { getStrictContext } from '@/lib/get-strict-context';
|
|
9
|
-
|
|
10
|
-
type AlertDialogContextType = {
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
setIsOpen: AlertDialogProps['onOpenChange'];
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const [AlertDialogProvider, useAlertDialog] =
|
|
16
|
-
getStrictContext<AlertDialogContextType>('AlertDialogContext');
|
|
17
|
-
|
|
18
|
-
type AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;
|
|
19
|
-
|
|
20
|
-
function AlertDialog(props: AlertDialogProps) {
|
|
21
|
-
const [isOpen, setIsOpen] = useControlledState({
|
|
22
|
-
value: props?.open,
|
|
23
|
-
defaultValue: props?.defaultOpen,
|
|
24
|
-
onChange: props?.onOpenChange,
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<AlertDialogProvider value={{ isOpen, setIsOpen }}>
|
|
29
|
-
<AlertDialogPrimitive.Root
|
|
30
|
-
data-slot="alert-dialog"
|
|
31
|
-
{...props}
|
|
32
|
-
onOpenChange={setIsOpen}
|
|
33
|
-
/>
|
|
34
|
-
</AlertDialogProvider>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type AlertDialogTriggerProps = React.ComponentProps<
|
|
39
|
-
typeof AlertDialogPrimitive.Trigger
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
function AlertDialogTrigger(props: AlertDialogTriggerProps) {
|
|
43
|
-
return (
|
|
44
|
-
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type AlertDialogPortalProps = Omit<
|
|
49
|
-
React.ComponentProps<typeof AlertDialogPrimitive.Portal>,
|
|
50
|
-
'keepMounted'
|
|
51
|
-
>;
|
|
52
|
-
|
|
53
|
-
function AlertDialogPortal(props: AlertDialogPortalProps) {
|
|
54
|
-
const { isOpen } = useAlertDialog();
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<AnimatePresence>
|
|
58
|
-
{isOpen && (
|
|
59
|
-
<AlertDialogPrimitive.Portal
|
|
60
|
-
data-slot="alert-dialog-portal"
|
|
61
|
-
keepMounted
|
|
62
|
-
{...props}
|
|
63
|
-
/>
|
|
64
|
-
)}
|
|
65
|
-
</AnimatePresence>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
type AlertDialogBackdropProps = Omit<
|
|
70
|
-
React.ComponentProps<typeof AlertDialogPrimitive.Backdrop>,
|
|
71
|
-
'render'
|
|
72
|
-
> &
|
|
73
|
-
HTMLMotionProps<'div'>;
|
|
74
|
-
|
|
75
|
-
function AlertDialogBackdrop({
|
|
76
|
-
transition = { duration: 0.2, ease: 'easeInOut' },
|
|
77
|
-
...props
|
|
78
|
-
}: AlertDialogBackdropProps) {
|
|
79
|
-
return (
|
|
80
|
-
<AlertDialogPrimitive.Backdrop
|
|
81
|
-
data-slot="alert-dialog-backdrop"
|
|
82
|
-
render={
|
|
83
|
-
<motion.div
|
|
84
|
-
key="alert-dialog-backdrop"
|
|
85
|
-
initial={{ opacity: 0, filter: 'blur(4px)' }}
|
|
86
|
-
animate={{ opacity: 1, filter: 'blur(0px)' }}
|
|
87
|
-
exit={{ opacity: 0, filter: 'blur(4px)' }}
|
|
88
|
-
transition={transition}
|
|
89
|
-
{...props}
|
|
90
|
-
/>
|
|
91
|
-
}
|
|
92
|
-
/>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type AlertDialogFlipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
97
|
-
|
|
98
|
-
type AlertDialogPopupProps = Omit<
|
|
99
|
-
React.ComponentProps<typeof AlertDialogPrimitive.Popup>,
|
|
100
|
-
'render'
|
|
101
|
-
> &
|
|
102
|
-
HTMLMotionProps<'div'> & {
|
|
103
|
-
from?: AlertDialogFlipDirection;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
function AlertDialogPopup({
|
|
107
|
-
from = 'top',
|
|
108
|
-
initialFocus,
|
|
109
|
-
finalFocus,
|
|
110
|
-
transition = { type: 'spring', stiffness: 150, damping: 25 },
|
|
111
|
-
...props
|
|
112
|
-
}: AlertDialogPopupProps) {
|
|
113
|
-
const initialRotation =
|
|
114
|
-
from === 'bottom' || from === 'left' ? '20deg' : '-20deg';
|
|
115
|
-
const isVertical = from === 'top' || from === 'bottom';
|
|
116
|
-
const rotateAxis = isVertical ? 'rotateX' : 'rotateY';
|
|
117
|
-
|
|
118
|
-
return (
|
|
119
|
-
<AlertDialogPrimitive.Popup
|
|
120
|
-
initialFocus={initialFocus}
|
|
121
|
-
finalFocus={finalFocus}
|
|
122
|
-
render={
|
|
123
|
-
<motion.div
|
|
124
|
-
key="alert-dialog-popup"
|
|
125
|
-
data-slot="alert-dialog-popup"
|
|
126
|
-
initial={{
|
|
127
|
-
opacity: 0,
|
|
128
|
-
filter: 'blur(4px)',
|
|
129
|
-
transform: `perspective(500px) ${rotateAxis}(${initialRotation}) scale(0.8)`,
|
|
130
|
-
}}
|
|
131
|
-
animate={{
|
|
132
|
-
opacity: 1,
|
|
133
|
-
filter: 'blur(0px)',
|
|
134
|
-
transform: `perspective(500px) ${rotateAxis}(0deg) scale(1)`,
|
|
135
|
-
}}
|
|
136
|
-
exit={{
|
|
137
|
-
opacity: 0,
|
|
138
|
-
filter: 'blur(4px)',
|
|
139
|
-
transform: `perspective(500px) ${rotateAxis}(${initialRotation}) scale(0.8)`,
|
|
140
|
-
}}
|
|
141
|
-
transition={transition}
|
|
142
|
-
{...props}
|
|
143
|
-
/>
|
|
144
|
-
}
|
|
145
|
-
/>
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
type AlertDialogCloseProps = React.ComponentProps<
|
|
150
|
-
typeof AlertDialogPrimitive.Close
|
|
151
|
-
>;
|
|
152
|
-
|
|
153
|
-
function AlertDialogClose(props: AlertDialogCloseProps) {
|
|
154
|
-
return (
|
|
155
|
-
<AlertDialogPrimitive.Close data-slot="alert-dialog-close" {...props} />
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
type AlertDialogHeaderProps = React.ComponentProps<'div'>;
|
|
160
|
-
|
|
161
|
-
function AlertDialogHeader(props: AlertDialogHeaderProps) {
|
|
162
|
-
return <div data-slot="alert-dialog-header" {...props} />;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
type AlertDialogFooterProps = React.ComponentProps<'div'>;
|
|
166
|
-
|
|
167
|
-
function AlertDialogFooter(props: AlertDialogFooterProps) {
|
|
168
|
-
return <div data-slot="alert-dialog-footer" {...props} />;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
type AlertDialogTitleProps = React.ComponentProps<
|
|
172
|
-
typeof AlertDialogPrimitive.Title
|
|
173
|
-
>;
|
|
174
|
-
|
|
175
|
-
function AlertDialogTitle(props: AlertDialogTitleProps) {
|
|
176
|
-
return (
|
|
177
|
-
<AlertDialogPrimitive.Title data-slot="alert-dialog-title" {...props} />
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
type AlertDialogDescriptionProps = React.ComponentProps<
|
|
182
|
-
typeof AlertDialogPrimitive.Description
|
|
183
|
-
>;
|
|
184
|
-
|
|
185
|
-
function AlertDialogDescription(props: AlertDialogDescriptionProps) {
|
|
186
|
-
return (
|
|
187
|
-
<AlertDialogPrimitive.Description
|
|
188
|
-
data-slot="alert-dialog-description"
|
|
189
|
-
{...props}
|
|
190
|
-
/>
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export {
|
|
195
|
-
AlertDialog,
|
|
196
|
-
AlertDialogPortal,
|
|
197
|
-
AlertDialogBackdrop,
|
|
198
|
-
AlertDialogClose,
|
|
199
|
-
AlertDialogTrigger,
|
|
200
|
-
AlertDialogPopup,
|
|
201
|
-
AlertDialogHeader,
|
|
202
|
-
AlertDialogFooter,
|
|
203
|
-
AlertDialogTitle,
|
|
204
|
-
AlertDialogDescription,
|
|
205
|
-
useAlertDialog,
|
|
206
|
-
type AlertDialogProps,
|
|
207
|
-
type AlertDialogTriggerProps,
|
|
208
|
-
type AlertDialogPortalProps,
|
|
209
|
-
type AlertDialogCloseProps,
|
|
210
|
-
type AlertDialogBackdropProps,
|
|
211
|
-
type AlertDialogPopupProps,
|
|
212
|
-
type AlertDialogHeaderProps,
|
|
213
|
-
type AlertDialogFooterProps,
|
|
214
|
-
type AlertDialogTitleProps,
|
|
215
|
-
type AlertDialogDescriptionProps,
|
|
216
|
-
type AlertDialogContextType,
|
|
217
|
-
type AlertDialogFlipDirection,
|
|
218
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Checkbox as CheckboxPrimitive } from '@base-ui-components/react/checkbox';
|
|
5
|
-
import {
|
|
6
|
-
motion,
|
|
7
|
-
type HTMLMotionProps,
|
|
8
|
-
type SVGMotionProps,
|
|
9
|
-
} from 'motion/react';
|
|
10
|
-
|
|
11
|
-
import { getStrictContext } from '@/lib/get-strict-context';
|
|
12
|
-
import { useControlledState } from '@/hooks/use-controlled-state';
|
|
13
|
-
|
|
14
|
-
type CheckboxContextType = {
|
|
15
|
-
isChecked: boolean;
|
|
16
|
-
setIsChecked: CheckboxProps['onCheckedChange'];
|
|
17
|
-
isIndeterminate: boolean | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const [CheckboxProvider, useCheckbox] =
|
|
21
|
-
getStrictContext<CheckboxContextType>('CheckboxContext');
|
|
22
|
-
|
|
23
|
-
type CheckboxProps = Omit<
|
|
24
|
-
React.ComponentProps<typeof CheckboxPrimitive.Root>,
|
|
25
|
-
'render'
|
|
26
|
-
> &
|
|
27
|
-
HTMLMotionProps<'button'>;
|
|
28
|
-
|
|
29
|
-
function Checkbox({
|
|
30
|
-
name,
|
|
31
|
-
checked,
|
|
32
|
-
defaultChecked,
|
|
33
|
-
onCheckedChange,
|
|
34
|
-
indeterminate,
|
|
35
|
-
value,
|
|
36
|
-
nativeButton,
|
|
37
|
-
parent,
|
|
38
|
-
disabled,
|
|
39
|
-
readOnly,
|
|
40
|
-
required,
|
|
41
|
-
inputRef,
|
|
42
|
-
id,
|
|
43
|
-
...props
|
|
44
|
-
}: CheckboxProps) {
|
|
45
|
-
const [isChecked, setIsChecked] = useControlledState({
|
|
46
|
-
value: checked,
|
|
47
|
-
defaultValue: defaultChecked,
|
|
48
|
-
onChange: onCheckedChange,
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<CheckboxProvider
|
|
53
|
-
value={{ isChecked, setIsChecked, isIndeterminate: indeterminate }}
|
|
54
|
-
>
|
|
55
|
-
<CheckboxPrimitive.Root
|
|
56
|
-
name={name}
|
|
57
|
-
defaultChecked={defaultChecked}
|
|
58
|
-
checked={checked}
|
|
59
|
-
onCheckedChange={setIsChecked}
|
|
60
|
-
indeterminate={indeterminate}
|
|
61
|
-
value={value}
|
|
62
|
-
nativeButton={nativeButton}
|
|
63
|
-
parent={parent}
|
|
64
|
-
disabled={disabled}
|
|
65
|
-
readOnly={readOnly}
|
|
66
|
-
required={required}
|
|
67
|
-
inputRef={inputRef}
|
|
68
|
-
id={id}
|
|
69
|
-
render={
|
|
70
|
-
<motion.button
|
|
71
|
-
data-slot="checkbox"
|
|
72
|
-
whileTap={{ scale: 0.95 }}
|
|
73
|
-
whileHover={{ scale: 1.05 }}
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
}
|
|
77
|
-
/>
|
|
78
|
-
</CheckboxProvider>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type CheckboxIndicatorProps = SVGMotionProps<SVGSVGElement>;
|
|
83
|
-
|
|
84
|
-
function CheckboxIndicator(props: CheckboxIndicatorProps) {
|
|
85
|
-
const { isChecked, isIndeterminate } = useCheckbox();
|
|
86
|
-
|
|
87
|
-
return (
|
|
88
|
-
<CheckboxPrimitive.Indicator
|
|
89
|
-
keepMounted
|
|
90
|
-
render={
|
|
91
|
-
<motion.svg
|
|
92
|
-
data-slot="checkbox-indicator"
|
|
93
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
94
|
-
fill="none"
|
|
95
|
-
viewBox="0 0 24 24"
|
|
96
|
-
strokeWidth="3.5"
|
|
97
|
-
stroke="currentColor"
|
|
98
|
-
initial="unchecked"
|
|
99
|
-
animate={isChecked ? 'checked' : 'unchecked'}
|
|
100
|
-
{...props}
|
|
101
|
-
>
|
|
102
|
-
{isIndeterminate ? (
|
|
103
|
-
<motion.line
|
|
104
|
-
x1="5"
|
|
105
|
-
y1="12"
|
|
106
|
-
x2="19"
|
|
107
|
-
y2="12"
|
|
108
|
-
strokeLinecap="round"
|
|
109
|
-
initial={{ pathLength: 0, opacity: 0 }}
|
|
110
|
-
animate={{
|
|
111
|
-
pathLength: 1,
|
|
112
|
-
opacity: 1,
|
|
113
|
-
transition: { duration: 0.2 },
|
|
114
|
-
}}
|
|
115
|
-
/>
|
|
116
|
-
) : (
|
|
117
|
-
<motion.path
|
|
118
|
-
strokeLinecap="round"
|
|
119
|
-
strokeLinejoin="round"
|
|
120
|
-
d="M4.5 12.75l6 6 9-13.5"
|
|
121
|
-
variants={{
|
|
122
|
-
checked: {
|
|
123
|
-
pathLength: 1,
|
|
124
|
-
opacity: 1,
|
|
125
|
-
transition: {
|
|
126
|
-
duration: 0.2,
|
|
127
|
-
delay: 0.2,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
unchecked: {
|
|
131
|
-
pathLength: 0,
|
|
132
|
-
opacity: 0,
|
|
133
|
-
transition: {
|
|
134
|
-
duration: 0.2,
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
}}
|
|
138
|
-
/>
|
|
139
|
-
)}
|
|
140
|
-
</motion.svg>
|
|
141
|
-
}
|
|
142
|
-
></CheckboxPrimitive.Indicator>
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export {
|
|
147
|
-
Checkbox,
|
|
148
|
-
CheckboxIndicator,
|
|
149
|
-
useCheckbox,
|
|
150
|
-
type CheckboxProps,
|
|
151
|
-
type CheckboxIndicatorProps,
|
|
152
|
-
type CheckboxContextType,
|
|
153
|
-
};
|