@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
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { getStrictContext } from "../../lib/get-strict-context.js";
|
|
5
|
+
import { useControlledState } from "../../hooks/State/UseControlledState.js";
|
|
6
|
+
import { AccordionStyles, accordionVariants } from "./Accordion.styles.js";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { Accordion } from "@base-ui/react/accordion";
|
|
11
|
+
|
|
12
|
+
//#region src/react-ui/ui/Accordion/index.tsx
|
|
13
|
+
/**
|
|
14
|
+
* Accordion component with animated expand/collapse panels.
|
|
15
|
+
*
|
|
16
|
+
* Built on top of Base UI's Accordion primitive with Motion (Framer Motion)
|
|
17
|
+
* animations. Supports controlled and uncontrolled modes, multiple expanded
|
|
18
|
+
* items, and the StyleSlots pattern for granular style overrides.
|
|
19
|
+
*
|
|
20
|
+
* @module @mks2508/mks-ui/react/ui/Accordion
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import {
|
|
25
|
+
* Accordion,
|
|
26
|
+
* AccordionItem,
|
|
27
|
+
* AccordionHeader,
|
|
28
|
+
* AccordionTrigger,
|
|
29
|
+
* AccordionPanel,
|
|
30
|
+
* } from '@mks2508/mks-ui';
|
|
31
|
+
*
|
|
32
|
+
* function FAQ() {
|
|
33
|
+
* return (
|
|
34
|
+
* <Accordion variant="bordered" defaultValue={['q1']}>
|
|
35
|
+
* <AccordionItem value="q1">
|
|
36
|
+
* <AccordionHeader>
|
|
37
|
+
* <AccordionTrigger>What is mks-ui?</AccordionTrigger>
|
|
38
|
+
* </AccordionHeader>
|
|
39
|
+
* <AccordionPanel>
|
|
40
|
+
* A modern React component library with animations.
|
|
41
|
+
* </AccordionPanel>
|
|
42
|
+
* </AccordionItem>
|
|
43
|
+
* </Accordion>
|
|
44
|
+
* );
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
const [AccordionProvider, useAccordion] = getStrictContext("AccordionContext");
|
|
49
|
+
const [AccordionItemProvider, useAccordionItem] = getStrictContext("AccordionItemContext");
|
|
50
|
+
/**
|
|
51
|
+
* Root Accordion container. Manages which items are expanded and
|
|
52
|
+
* provides context to child components.
|
|
53
|
+
*
|
|
54
|
+
* Supports both controlled (`value` + `onValueChange`) and uncontrolled
|
|
55
|
+
* (`defaultValue`) usage patterns.
|
|
56
|
+
*
|
|
57
|
+
* @param props - {@link IAccordionProps}
|
|
58
|
+
* @returns The rendered accordion container
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* // Uncontrolled with default expansion
|
|
63
|
+
* <Accordion defaultValue={['item-1']}>
|
|
64
|
+
* <AccordionItem value="item-1">...</AccordionItem>
|
|
65
|
+
* <AccordionItem value="item-2">...</AccordionItem>
|
|
66
|
+
* </Accordion>
|
|
67
|
+
*
|
|
68
|
+
* // Controlled
|
|
69
|
+
* const [value, setValue] = useState<string[]>(['item-1']);
|
|
70
|
+
* <Accordion value={value} onValueChange={setValue} variant="bordered">
|
|
71
|
+
* ...
|
|
72
|
+
* </Accordion>
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
function Accordion$1({ variant, className, slots, config: _config, ...props }) {
|
|
76
|
+
const [value, setValue] = useControlledState({
|
|
77
|
+
value: props?.value,
|
|
78
|
+
defaultValue: props?.defaultValue,
|
|
79
|
+
onChange: props?.onValueChange
|
|
80
|
+
});
|
|
81
|
+
return /* @__PURE__ */ jsx(AccordionProvider, {
|
|
82
|
+
value: {
|
|
83
|
+
value,
|
|
84
|
+
setValue
|
|
85
|
+
},
|
|
86
|
+
children: /* @__PURE__ */ jsx(Accordion.Root, {
|
|
87
|
+
"data-slot": "accordion",
|
|
88
|
+
className: cn(accordionVariants({ variant }), slots?.root, className),
|
|
89
|
+
...props,
|
|
90
|
+
onValueChange: setValue
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Individual collapsible section within an Accordion.
|
|
96
|
+
* Tracks its own open/closed state derived from the parent context.
|
|
97
|
+
*
|
|
98
|
+
* @param props - {@link IAccordionItemProps}
|
|
99
|
+
* @returns The rendered accordion item
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```tsx
|
|
103
|
+
* <AccordionItem value="section-1" className="border-primary/20">
|
|
104
|
+
* <AccordionHeader>
|
|
105
|
+
* <AccordionTrigger>Section Title</AccordionTrigger>
|
|
106
|
+
* </AccordionHeader>
|
|
107
|
+
* <AccordionPanel>Section content</AccordionPanel>
|
|
108
|
+
* </AccordionItem>
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
function AccordionItem({ slots, className, ...props }) {
|
|
112
|
+
const { value } = useAccordion();
|
|
113
|
+
const [isOpen, setIsOpen] = React.useState(value?.includes(props?.value) ?? false);
|
|
114
|
+
React.useEffect(() => {
|
|
115
|
+
setIsOpen(value?.includes(props?.value) ?? false);
|
|
116
|
+
}, [value, props?.value]);
|
|
117
|
+
return /* @__PURE__ */ jsx(AccordionItemProvider, {
|
|
118
|
+
value: {
|
|
119
|
+
isOpen,
|
|
120
|
+
setIsOpen
|
|
121
|
+
},
|
|
122
|
+
children: /* @__PURE__ */ jsx(Accordion.Item, {
|
|
123
|
+
"data-slot": "accordion-item",
|
|
124
|
+
className: cn(AccordionStyles.item, slots?.item, className),
|
|
125
|
+
...props
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Header wrapper for an accordion trigger. Provides semantic structure
|
|
131
|
+
* and consistent spacing around the trigger element.
|
|
132
|
+
*
|
|
133
|
+
* @param props - {@link IAccordionHeaderProps}
|
|
134
|
+
* @returns The rendered accordion header
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```tsx
|
|
138
|
+
* <AccordionHeader className="bg-muted/10">
|
|
139
|
+
* <AccordionTrigger>Section Title</AccordionTrigger>
|
|
140
|
+
* </AccordionHeader>
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
function AccordionHeader({ slots, className, ...props }) {
|
|
144
|
+
return /* @__PURE__ */ jsx(Accordion.Header, {
|
|
145
|
+
"data-slot": "accordion-header",
|
|
146
|
+
className: cn(AccordionStyles.header, slots?.header, className),
|
|
147
|
+
...props
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Clickable trigger that toggles the associated AccordionPanel.
|
|
152
|
+
* Rendered as a button for accessibility.
|
|
153
|
+
*
|
|
154
|
+
* @param props - {@link IAccordionTriggerProps}
|
|
155
|
+
* @returns The rendered accordion trigger
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```tsx
|
|
159
|
+
* <AccordionTrigger className="text-foreground hover:text-primary">
|
|
160
|
+
* Click to expand
|
|
161
|
+
* </AccordionTrigger>
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
function AccordionTrigger({ slots, className, ...props }) {
|
|
165
|
+
return /* @__PURE__ */ jsx(Accordion.Trigger, {
|
|
166
|
+
"data-slot": "accordion-trigger",
|
|
167
|
+
className: cn(AccordionStyles.trigger, slots?.trigger, className),
|
|
168
|
+
...props
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Animated collapsible panel that shows/hides content with a smooth
|
|
173
|
+
* height transition powered by Motion (Framer Motion).
|
|
174
|
+
*
|
|
175
|
+
* Uses a mask-image technique for a polished reveal/hide effect.
|
|
176
|
+
* When `keepRendered` is `true`, the panel stays in the DOM even when
|
|
177
|
+
* collapsed (useful for preserving form state).
|
|
178
|
+
*
|
|
179
|
+
* @param props - {@link IAccordionPanelProps}
|
|
180
|
+
* @returns The rendered animated accordion panel
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```tsx
|
|
184
|
+
* // Standard panel (unmounts on collapse)
|
|
185
|
+
* <AccordionPanel>
|
|
186
|
+
* <p>Content revealed on expand</p>
|
|
187
|
+
* </AccordionPanel>
|
|
188
|
+
*
|
|
189
|
+
* // Persistent panel (stays mounted)
|
|
190
|
+
* <AccordionPanel keepRendered transition={{ duration: 0.5 }}>
|
|
191
|
+
* <form>...</form>
|
|
192
|
+
* </AccordionPanel>
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
195
|
+
function AccordionPanel({ transition = {
|
|
196
|
+
duration: .35,
|
|
197
|
+
ease: "easeInOut"
|
|
198
|
+
}, hiddenUntilFound, keepRendered = false, slots, className, ...props }) {
|
|
199
|
+
const { isOpen } = useAccordionItem();
|
|
200
|
+
const maskStyle = {
|
|
201
|
+
maskImage: "linear-gradient(black var(--mask-stop), transparent var(--mask-stop))",
|
|
202
|
+
WebkitMaskImage: "linear-gradient(black var(--mask-stop), transparent var(--mask-stop))",
|
|
203
|
+
overflow: "hidden"
|
|
204
|
+
};
|
|
205
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: keepRendered ? /* @__PURE__ */ jsx(Accordion.Panel, {
|
|
206
|
+
hidden: false,
|
|
207
|
+
hiddenUntilFound,
|
|
208
|
+
keepMounted: true,
|
|
209
|
+
render: /* @__PURE__ */ jsx(motion.div, {
|
|
210
|
+
"data-slot": "accordion-panel",
|
|
211
|
+
className: cn(AccordionStyles.panel, slots?.panel, className),
|
|
212
|
+
initial: {
|
|
213
|
+
height: 0,
|
|
214
|
+
opacity: 0,
|
|
215
|
+
"--mask-stop": "0%",
|
|
216
|
+
y: 20
|
|
217
|
+
},
|
|
218
|
+
animate: isOpen ? {
|
|
219
|
+
height: "auto",
|
|
220
|
+
opacity: 1,
|
|
221
|
+
"--mask-stop": "100%",
|
|
222
|
+
y: 0
|
|
223
|
+
} : {
|
|
224
|
+
height: 0,
|
|
225
|
+
opacity: 0,
|
|
226
|
+
"--mask-stop": "0%",
|
|
227
|
+
y: 20
|
|
228
|
+
},
|
|
229
|
+
transition,
|
|
230
|
+
style: maskStyle,
|
|
231
|
+
...props
|
|
232
|
+
}, "accordion-panel")
|
|
233
|
+
}) : isOpen && /* @__PURE__ */ jsx(Accordion.Panel, {
|
|
234
|
+
hidden: false,
|
|
235
|
+
hiddenUntilFound,
|
|
236
|
+
keepMounted: true,
|
|
237
|
+
render: /* @__PURE__ */ jsx(motion.div, {
|
|
238
|
+
"data-slot": "accordion-panel",
|
|
239
|
+
className: cn(AccordionStyles.panel, slots?.panel, className),
|
|
240
|
+
initial: {
|
|
241
|
+
height: 0,
|
|
242
|
+
opacity: 0,
|
|
243
|
+
"--mask-stop": "0%",
|
|
244
|
+
y: 20
|
|
245
|
+
},
|
|
246
|
+
animate: {
|
|
247
|
+
height: "auto",
|
|
248
|
+
opacity: 1,
|
|
249
|
+
"--mask-stop": "100%",
|
|
250
|
+
y: 0
|
|
251
|
+
},
|
|
252
|
+
exit: {
|
|
253
|
+
height: 0,
|
|
254
|
+
opacity: 0,
|
|
255
|
+
"--mask-stop": "0%",
|
|
256
|
+
y: 20
|
|
257
|
+
},
|
|
258
|
+
transition,
|
|
259
|
+
style: maskStyle,
|
|
260
|
+
...props
|
|
261
|
+
}, "accordion-panel")
|
|
262
|
+
}) });
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
//#endregion
|
|
266
|
+
export { Accordion$1 as Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionTrigger, useAccordionItem };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style slots for the AlertDialog component.
|
|
3
|
+
*
|
|
4
|
+
* Defines the visual regions (slots) available for style overrides.
|
|
5
|
+
* AlertDialog does not use CVA variants since its visual appearance
|
|
6
|
+
* is primarily controlled by the `from` flip direction prop.
|
|
7
|
+
*
|
|
8
|
+
* @module @mks2508/mks-ui/react/ui/AlertDialog/AlertDialog.styles
|
|
9
|
+
*/
|
|
10
|
+
import type { StyleSlots } from '../../../core/types';
|
|
11
|
+
import type { AlertDialogSlot } from './AlertDialog.types';
|
|
12
|
+
/**
|
|
13
|
+
* Default Tailwind classes for each visual region of the AlertDialog.
|
|
14
|
+
*
|
|
15
|
+
* These classes are applied as base styles and can be overridden
|
|
16
|
+
* via the `slots` prop on individual sub-components.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import { AlertDialogStyles } from '@mks2508/mks-ui';
|
|
21
|
+
*
|
|
22
|
+
* // Access individual slot defaults
|
|
23
|
+
* console.log(AlertDialogStyles.backdrop); // backdrop base classes
|
|
24
|
+
* console.log(AlertDialogStyles.popup); // popup container classes
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const AlertDialogStyles: StyleSlots<AlertDialogSlot>;
|
|
28
|
+
//# sourceMappingURL=AlertDialog.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/react-ui/ui/AlertDialog/AlertDialog.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eAAe,CASzD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/react-ui/ui/AlertDialog/AlertDialog.styles.ts
|
|
2
|
+
/**
|
|
3
|
+
* Default Tailwind classes for each visual region of the AlertDialog.
|
|
4
|
+
*
|
|
5
|
+
* These classes are applied as base styles and can be overridden
|
|
6
|
+
* via the `slots` prop on individual sub-components.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { AlertDialogStyles } from '@mks2508/mks-ui';
|
|
11
|
+
*
|
|
12
|
+
* // Access individual slot defaults
|
|
13
|
+
* console.log(AlertDialogStyles.backdrop); // backdrop base classes
|
|
14
|
+
* console.log(AlertDialogStyles.popup); // popup container classes
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const AlertDialogStyles = {
|
|
18
|
+
root: "",
|
|
19
|
+
backdrop: "fixed inset-0 z-50 bg-black/80",
|
|
20
|
+
popup: "fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-border bg-background p-6 shadow-lg sm:rounded-lg",
|
|
21
|
+
header: "flex flex-col space-y-2 text-center sm:text-left",
|
|
22
|
+
footer: "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
23
|
+
title: "text-lg font-semibold",
|
|
24
|
+
description: "text-sm text-muted-foreground",
|
|
25
|
+
close: ""
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { AlertDialogStyles };
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for the AlertDialog component.
|
|
3
|
+
*
|
|
4
|
+
* All interfaces follow the IPrefix convention. Type aliases do not.
|
|
5
|
+
* Slot types define the visual regions available for style overrides.
|
|
6
|
+
*
|
|
7
|
+
* @module @mks2508/mks-ui/react/ui/AlertDialog/AlertDialog.types
|
|
8
|
+
*/
|
|
9
|
+
import type { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
10
|
+
import type { HTMLMotionProps } from 'motion/react';
|
|
11
|
+
import type { IBaseConfig, SlotOverrides } from '../../../core/types';
|
|
12
|
+
/**
|
|
13
|
+
* Named visual regions of the AlertDialog that can be styled via the `slots` prop.
|
|
14
|
+
*
|
|
15
|
+
* | Slot | Element |
|
|
16
|
+
* |---------------|------------------------------------------------|
|
|
17
|
+
* | `root` | Logical root (no DOM element by default) |
|
|
18
|
+
* | `backdrop` | Semi-transparent overlay behind the dialog |
|
|
19
|
+
* | `popup` | Main dialog container with flip animation |
|
|
20
|
+
* | `header` | Header area containing title and description |
|
|
21
|
+
* | `footer` | Footer area for action buttons |
|
|
22
|
+
* | `title` | Dialog title text |
|
|
23
|
+
* | `description` | Descriptive text below the title |
|
|
24
|
+
* | `close` | Close/cancel button |
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <AlertDialogPopup slots={{ popup: 'bg-zinc-950 border-cyan-500/20' }}>
|
|
29
|
+
* ...
|
|
30
|
+
* </AlertDialogPopup>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export type AlertDialogSlot = 'root' | 'backdrop' | 'popup' | 'header' | 'footer' | 'title' | 'description' | 'close';
|
|
34
|
+
/**
|
|
35
|
+
* Direction from which the AlertDialog flips into view.
|
|
36
|
+
* Controls the 3D perspective rotation axis and initial angle.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <AlertDialogPopup from="bottom">...</AlertDialogPopup>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export type AlertDialogFlipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
44
|
+
/**
|
|
45
|
+
* Internal context for the AlertDialog root, tracks open state.
|
|
46
|
+
*/
|
|
47
|
+
export type AlertDialogContextType = {
|
|
48
|
+
/** Whether the dialog is currently open. */
|
|
49
|
+
isOpen: boolean;
|
|
50
|
+
/** Callback to update open state. */
|
|
51
|
+
setIsOpen: IAlertDialogProps['onOpenChange'];
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Behavioral configuration for the AlertDialog component.
|
|
55
|
+
* Extends {@link IBaseConfig} with alert-dialog-specific options.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```tsx
|
|
59
|
+
* <AlertDialog config={{ from: 'bottom', animation: { duration: 0.3 } }} />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export interface IAlertDialogConfig extends IBaseConfig {
|
|
63
|
+
/**
|
|
64
|
+
* Direction from which the dialog popup flips into view.
|
|
65
|
+
* Passed down to AlertDialogPopup if not set directly on the popup.
|
|
66
|
+
*
|
|
67
|
+
* @default 'top'
|
|
68
|
+
*/
|
|
69
|
+
from?: AlertDialogFlipDirection;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Props for the root AlertDialog component.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```tsx
|
|
76
|
+
* <AlertDialog defaultOpen={false} onOpenChange={(open) => console.log(open)}>
|
|
77
|
+
* <AlertDialogTrigger>Open</AlertDialogTrigger>
|
|
78
|
+
* <AlertDialogPortal>
|
|
79
|
+
* <AlertDialogBackdrop />
|
|
80
|
+
* <AlertDialogPopup>...</AlertDialogPopup>
|
|
81
|
+
* </AlertDialogPortal>
|
|
82
|
+
* </AlertDialog>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export interface IAlertDialogProps extends React.ComponentProps<typeof AlertDialogPrimitive.Root> {
|
|
86
|
+
/** Style overrides for individual visual regions. */
|
|
87
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
88
|
+
/** Behavioral configuration. */
|
|
89
|
+
config?: IAlertDialogConfig;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Props for the AlertDialogTrigger button.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <AlertDialogTrigger className="bg-destructive text-white">
|
|
97
|
+
* Delete Account
|
|
98
|
+
* </AlertDialogTrigger>
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export interface IAlertDialogTriggerProps extends React.ComponentProps<typeof AlertDialogPrimitive.Trigger> {
|
|
102
|
+
/** Style overrides for individual visual regions. */
|
|
103
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Props for the AlertDialogPortal.
|
|
107
|
+
* The `keepMounted` prop is omitted because it is managed internally
|
|
108
|
+
* by the AnimatePresence animation logic.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```tsx
|
|
112
|
+
* <AlertDialogPortal>
|
|
113
|
+
* <AlertDialogBackdrop />
|
|
114
|
+
* <AlertDialogPopup>...</AlertDialogPopup>
|
|
115
|
+
* </AlertDialogPortal>
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export interface IAlertDialogPortalProps extends Omit<React.ComponentProps<typeof AlertDialogPrimitive.Portal>, 'keepMounted'> {
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Props for the AlertDialogBackdrop overlay.
|
|
122
|
+
*
|
|
123
|
+
* Extends Motion's HTMLMotionProps for full animation control.
|
|
124
|
+
* The `render` prop from the base primitive is omitted because
|
|
125
|
+
* it is managed internally by the motion wrapper.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```tsx
|
|
129
|
+
* <AlertDialogBackdrop
|
|
130
|
+
* transition={{ duration: 0.3 }}
|
|
131
|
+
* className="bg-black/60 backdrop-blur-sm"
|
|
132
|
+
* />
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
export interface IAlertDialogBackdropProps extends Omit<Omit<React.ComponentProps<typeof AlertDialogPrimitive.Backdrop>, 'render'>, keyof HTMLMotionProps<'div'>>, HTMLMotionProps<'div'> {
|
|
136
|
+
/** Style overrides for individual visual regions. */
|
|
137
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Props for the AlertDialogPopup container.
|
|
141
|
+
*
|
|
142
|
+
* Extends Motion's HTMLMotionProps for full animation control.
|
|
143
|
+
* The `render` prop from the base primitive is omitted because
|
|
144
|
+
* it is managed internally by the motion wrapper.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```tsx
|
|
148
|
+
* <AlertDialogPopup from="bottom" className="max-w-md">
|
|
149
|
+
* <AlertDialogHeader>...</AlertDialogHeader>
|
|
150
|
+
* <AlertDialogFooter>...</AlertDialogFooter>
|
|
151
|
+
* </AlertDialogPopup>
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
export interface IAlertDialogPopupProps extends Omit<Omit<React.ComponentProps<typeof AlertDialogPrimitive.Popup>, 'render'>, keyof HTMLMotionProps<'div'>>, HTMLMotionProps<'div'> {
|
|
155
|
+
/**
|
|
156
|
+
* Direction from which the popup flips into view.
|
|
157
|
+
* Controls 3D perspective rotation.
|
|
158
|
+
*
|
|
159
|
+
* @default 'top'
|
|
160
|
+
*/
|
|
161
|
+
from?: AlertDialogFlipDirection;
|
|
162
|
+
/** Style overrides for individual visual regions. */
|
|
163
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Props for the AlertDialogClose button.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```tsx
|
|
170
|
+
* <AlertDialogClose className="border-border">Cancel</AlertDialogClose>
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
export interface IAlertDialogCloseProps extends React.ComponentProps<typeof AlertDialogPrimitive.Close> {
|
|
174
|
+
/** Style overrides for individual visual regions. */
|
|
175
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Props for the AlertDialogHeader layout wrapper.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```tsx
|
|
182
|
+
* <AlertDialogHeader>
|
|
183
|
+
* <AlertDialogTitle>Are you sure?</AlertDialogTitle>
|
|
184
|
+
* <AlertDialogDescription>This cannot be undone.</AlertDialogDescription>
|
|
185
|
+
* </AlertDialogHeader>
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
export interface IAlertDialogHeaderProps extends React.ComponentProps<'div'> {
|
|
189
|
+
/** Style overrides for individual visual regions. */
|
|
190
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Props for the AlertDialogFooter layout wrapper.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```tsx
|
|
197
|
+
* <AlertDialogFooter>
|
|
198
|
+
* <AlertDialogClose>Cancel</AlertDialogClose>
|
|
199
|
+
* <Button variant="destructive">Delete</Button>
|
|
200
|
+
* </AlertDialogFooter>
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
203
|
+
export interface IAlertDialogFooterProps extends React.ComponentProps<'div'> {
|
|
204
|
+
/** Style overrides for individual visual regions. */
|
|
205
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Props for the AlertDialogTitle text element.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```tsx
|
|
212
|
+
* <AlertDialogTitle className="text-destructive">
|
|
213
|
+
* Confirm Deletion
|
|
214
|
+
* </AlertDialogTitle>
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
export interface IAlertDialogTitleProps extends React.ComponentProps<typeof AlertDialogPrimitive.Title> {
|
|
218
|
+
/** Style overrides for individual visual regions. */
|
|
219
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Props for the AlertDialogDescription text element.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```tsx
|
|
226
|
+
* <AlertDialogDescription>
|
|
227
|
+
* This action is permanent and cannot be reversed.
|
|
228
|
+
* </AlertDialogDescription>
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
export interface IAlertDialogDescriptionProps extends React.ComponentProps<typeof AlertDialogPrimitive.Description> {
|
|
232
|
+
/** Style overrides for individual visual regions. */
|
|
233
|
+
slots?: SlotOverrides<AlertDialogSlot>;
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=AlertDialog.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.types.d.ts","sourceRoot":"","sources":["../../../../src/react-ui/ui/AlertDialog/AlertDialog.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAM/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,aAAa,GACb,OAAO,CAAC;AAMZ;;;;;;;;GAQG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAM3E;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC9C,CAAC;AAMF;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;CACjC;AAMD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC;IAC9D,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACvC,gCAAgC;IAChC,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,wBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC;IACjE,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,EACxD,aAAa,CACd;CAAG;AAEN;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,yBACf,SAAQ,IAAI,CACR,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,EAC1E,MAAM,eAAe,CAAC,KAAK,CAAC,CAC7B,EACD,eAAe,CAAC,KAAK,CAAC;IACxB,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,sBACf,SAAQ,IAAI,CACR,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,EACvE,MAAM,eAAe,CAAC,KAAK,CAAC,CAC7B,EACD,eAAe,CAAC,KAAK,CAAC;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC;IAC/D,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC1E,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC1E,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC;IAC/D,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,4BACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC;IACrE,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACxC"}
|