@mks2508/mks-ui 0.2.0 → 0.3.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/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/react-ui/components/MorphingPopover/index.js +119 -0
- package/dist/react-ui/components/MorphingPopover/morphing-popover.module.js +5 -0
- package/dist/react-ui/components/index.d.ts.map +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/react-ui/hooks/Animation/UseAutoHeight.js +80 -0
- 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/Formatting/UseListFormat.d.ts +49 -0
- package/dist/react-ui/hooks/Formatting/UseListFormat.d.ts.map +1 -0
- package/dist/react-ui/hooks/Formatting/UseListFormat.js +105 -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/react-ui/hooks/State/UseDataState.js +63 -0
- package/dist/react-ui/hooks/index.d.ts +16 -0
- package/dist/react-ui/hooks/index.d.ts.map +1 -0
- package/dist/react-ui/hooks/index.js +5 -0
- package/dist/react-ui/icons/index.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/activity.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/activity.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/activity.js +75 -0
- package/dist/react-ui/icons/lucide-animated/arrow-down-to-line.d.ts +23 -0
- package/dist/react-ui/icons/lucide-animated/arrow-down-to-line.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/arrow-down-to-line.js +45 -0
- package/dist/react-ui/icons/lucide-animated/arrow-up.d.ts +23 -0
- package/dist/react-ui/icons/lucide-animated/arrow-up.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/arrow-up.js +41 -0
- package/dist/react-ui/icons/lucide-animated/bell-electric.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/bell-electric.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/bell-electric.js +202 -0
- package/dist/react-ui/icons/lucide-animated/bell.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/bell.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/bell.js +65 -0
- package/dist/react-ui/icons/lucide-animated/bot.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/bot.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/bot.js +118 -0
- package/dist/react-ui/icons/lucide-animated/box.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/box.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/box.js +86 -0
- package/dist/react-ui/icons/lucide-animated/check.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/check.js +23 -0
- package/dist/react-ui/icons/lucide-animated/circle-check.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/circle-check.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/circle-check.js +76 -0
- package/dist/react-ui/icons/lucide-animated/delete.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/delete.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/delete.js +110 -0
- package/dist/react-ui/icons/lucide-animated/download.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/download.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/download.js +70 -0
- package/dist/react-ui/icons/lucide-animated/edit-2.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/edit-2.js +23 -0
- package/dist/react-ui/icons/lucide-animated/globe.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/globe.js +31 -0
- package/dist/react-ui/icons/lucide-animated/home.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/home.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/home.js +68 -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/react-ui/icons/lucide-animated/layers.js +27 -0
- package/dist/react-ui/icons/lucide-animated/layout-panel-top.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/layout-panel-top.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/layout-panel-top.js +130 -0
- package/dist/react-ui/icons/lucide-animated/list.d.ts +23 -0
- package/dist/react-ui/icons/lucide-animated/list.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/list.js +78 -0
- package/dist/react-ui/icons/lucide-animated/package.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/package.js +28 -0
- package/dist/react-ui/icons/lucide-animated/palette.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/palette.js +49 -0
- package/dist/react-ui/icons/lucide-animated/plus.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/plus.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/plus.js +59 -0
- package/dist/react-ui/icons/lucide-animated/refresh-cw.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/refresh-cw.js +28 -0
- package/dist/react-ui/icons/lucide-animated/rocket.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/rocket.js +28 -0
- package/dist/react-ui/icons/lucide-animated/save.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/save.js +27 -0
- package/dist/react-ui/icons/lucide-animated/search.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/search.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/search.js +78 -0
- package/dist/react-ui/icons/lucide-animated/settings.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/settings.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/settings.js +63 -0
- package/dist/react-ui/icons/lucide-animated/terminal.d.ts +24 -0
- package/dist/react-ui/icons/lucide-animated/terminal.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/terminal.js +36 -0
- package/dist/react-ui/icons/lucide-animated/trash-2.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/trash-2.js +39 -0
- package/dist/react-ui/icons/lucide-animated/trending-down.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/trending-down.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/trending-down.js +123 -0
- package/dist/react-ui/icons/lucide-animated/trending-up.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/trending-up.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/trending-up.js +123 -0
- package/dist/react-ui/icons/lucide-animated/type.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/type.js +37 -0
- package/dist/react-ui/icons/lucide-animated/upload.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/upload.js +32 -0
- package/dist/react-ui/icons/lucide-animated/x.d.ts +11 -0
- package/dist/react-ui/icons/lucide-animated/x.d.ts.map +1 -0
- package/dist/react-ui/icons/lucide-animated/x.js +68 -0
- package/dist/react-ui/index.d.ts.map +1 -0
- package/dist/react-ui/index.js +108 -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.map +1 -0
- package/dist/react-ui/lib/utils.d.ts.map +1 -0
- package/dist/react-ui/lib/utils.js +27 -0
- 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/react-ui/primitives/CountingNumber/index.js +97 -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/react-ui/primitives/Highlight/index.js +396 -0
- 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/react-ui/primitives/Slot/index.js +65 -0
- package/dist/react-ui/primitives/index.d.ts +13 -0
- package/dist/react-ui/primitives/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/index.js +22 -0
- package/dist/react-ui/primitives/waapi/Morph/Morph.types.d.ts +76 -0
- package/dist/react-ui/primitives/waapi/Morph/Morph.types.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/MorphContext.d.ts +11 -0
- package/dist/react-ui/primitives/waapi/Morph/MorphContext.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/MorphContext.js +19 -0
- package/dist/react-ui/primitives/waapi/Morph/index.d.ts +23 -0
- package/dist/react-ui/primitives/waapi/Morph/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/index.js +45 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/index.d.ts +12 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.d.ts +38 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.js +78 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.d.ts +23 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.js +140 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.d.ts +28 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.js +77 -0
- package/dist/react-ui/primitives/waapi/Morph/useMorph.d.ts +27 -0
- package/dist/react-ui/primitives/waapi/Morph/useMorph.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Morph/useMorph.js +86 -0
- package/dist/react-ui/primitives/waapi/Reorder/Reorder.types.d.ts +168 -0
- package/dist/react-ui/primitives/waapi/Reorder/Reorder.types.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Reorder/index.d.ts +25 -0
- package/dist/react-ui/primitives/waapi/Reorder/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Reorder/index.js +186 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorder.d.ts +26 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorder.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorder.js +48 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.d.ts +33 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Reorder/useReorderPresence.js +137 -0
- package/dist/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.d.ts +47 -0
- package/dist/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.js +72 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts +10 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.types.d.ts +74 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.types.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/index.d.ts +33 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingNumber/index.js +354 -0
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts +25 -0
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.styles.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.types.d.ts +57 -0
- package/dist/react-ui/primitives/waapi/SlidingText/SlidingText.types.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingText/index.d.ts +26 -0
- package/dist/react-ui/primitives/waapi/SlidingText/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/SlidingText/index.js +105 -0
- package/dist/react-ui/primitives/waapi/core/animationConstants.d.ts +156 -0
- package/dist/react-ui/primitives/waapi/core/animationConstants.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/animationConstants.js +180 -0
- package/dist/react-ui/primitives/waapi/core/index.d.ts +16 -0
- package/dist/react-ui/primitives/waapi/core/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/index.js +5 -0
- package/dist/react-ui/primitives/waapi/core/types.d.ts +143 -0
- package/dist/react-ui/primitives/waapi/core/types.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.d.ts +32 -0
- package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/useAnimationOrchestrator.js +322 -0
- package/dist/react-ui/primitives/waapi/core/useElementRegistry.d.ts +21 -0
- package/dist/react-ui/primitives/waapi/core/useElementRegistry.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/useElementRegistry.js +65 -0
- package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.d.ts +20 -0
- package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/useFLIPAnimation.js +99 -0
- package/dist/react-ui/primitives/waapi/core/usePositionCapture.d.ts +24 -0
- package/dist/react-ui/primitives/waapi/core/usePositionCapture.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/core/usePositionCapture.js +75 -0
- package/dist/react-ui/primitives/waapi/index.d.ts +33 -0
- package/dist/react-ui/primitives/waapi/index.d.ts.map +1 -0
- package/dist/react-ui/primitives/waapi/index.js +18 -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.map +1 -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.map +1 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.styles.js +29 -0
- package/dist/react-ui/ui/AlertDialog/AlertDialog.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Badge/Badge.styles.js +30 -0
- package/dist/react-ui/ui/Badge/Badge.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Button/Button.styles.js +40 -0
- package/dist/react-ui/ui/Button/Button.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Card/Card.styles.js +24 -0
- package/dist/react-ui/ui/Card/Card.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.styles.js +34 -0
- package/dist/react-ui/ui/Checkbox/Checkbox.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Combobox/Combobox.styles.js +17 -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/react-ui/ui/Combobox/index.js +216 -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.map +1 -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/DataCard/DataCard.styles.d.ts +35 -0
- package/dist/react-ui/ui/DataCard/DataCard.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/DataCard/DataCard.styles.js +114 -0
- package/dist/react-ui/ui/DataCard/DataCard.types.d.ts +135 -0
- package/dist/react-ui/ui/DataCard/DataCard.types.d.ts.map +1 -0
- package/dist/react-ui/ui/DataCard/index.d.ts +129 -0
- package/dist/react-ui/ui/DataCard/index.d.ts.map +1 -0
- package/dist/react-ui/ui/DataCard/index.js +276 -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.map +1 -0
- package/dist/react-ui/ui/Dialog/index.js +265 -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.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/react-ui/ui/DropdownMenu/index.js +181 -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.map +1 -0
- package/dist/react-ui/ui/Field/index.d.ts.map +1 -0
- package/dist/react-ui/ui/Field/index.js +145 -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.map +1 -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.map +1 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.styles.js +34 -0
- package/dist/react-ui/ui/InputGroup/InputGroup.types.d.ts.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Label/Label.styles.js +5 -0
- package/dist/react-ui/ui/Label/Label.types.d.ts.map +1 -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.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.map +1 -0
- package/dist/react-ui/ui/Menu/index.js +636 -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.map +1 -0
- package/dist/react-ui/ui/Popover/index.js +237 -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.map +1 -0
- package/dist/react-ui/ui/Progress/index.js +170 -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.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/react-ui/ui/Select/index.js +136 -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.map +1 -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.map +1 -0
- package/dist/react-ui/ui/Switch/Switch.styles.js +41 -0
- package/dist/react-ui/ui/Switch/Switch.types.d.ts.map +1 -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.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.map +1 -0
- package/dist/react-ui/ui/Tabs/index.js +308 -0
- package/dist/react-ui/ui/TextFlow/TextFlow.styles.d.ts +16 -0
- package/dist/react-ui/ui/TextFlow/TextFlow.styles.d.ts.map +1 -0
- package/dist/react-ui/ui/TextFlow/TextFlow.types.d.ts +101 -0
- package/dist/react-ui/ui/TextFlow/TextFlow.types.d.ts.map +1 -0
- package/dist/react-ui/ui/TextFlow/index.d.ts +26 -0
- package/dist/react-ui/ui/TextFlow/index.d.ts.map +1 -0
- package/dist/react-ui/ui/TextFlow/index.js +187 -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.map +1 -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.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.map +1 -0
- package/dist/react-ui/ui/Tooltip/index.js +219 -0
- package/dist/react-ui/ui/index.d.ts +32 -0
- package/dist/react-ui/ui/index.d.ts.map +1 -0
- package/dist/react-ui/ui/index.js +39 -0
- package/package.json +14 -10
- package/src/react-ui/components/MorphingPopover/index.tsx +186 -0
- package/src/react-ui/hooks/Formatting/UseListFormat.ts +134 -0
- package/src/react-ui/hooks/index.ts +20 -0
- package/src/react-ui/icons/lucide-animated/activity.tsx +109 -0
- package/src/react-ui/icons/lucide-animated/bell-electric.tsx +124 -0
- package/src/react-ui/icons/lucide-animated/bell.tsx +93 -0
- package/src/react-ui/icons/lucide-animated/bot.tsx +122 -0
- package/src/react-ui/icons/lucide-animated/box.tsx +117 -0
- package/src/react-ui/icons/lucide-animated/circle-check.tsx +107 -0
- package/src/react-ui/icons/lucide-animated/delete.tsx +133 -0
- package/src/react-ui/icons/lucide-animated/download.tsx +99 -0
- package/src/react-ui/icons/lucide-animated/home.tsx +103 -0
- package/src/react-ui/icons/lucide-animated/layout-panel-top.tsx +143 -0
- package/src/react-ui/icons/lucide-animated/plus.tsx +92 -0
- package/src/react-ui/icons/lucide-animated/search.tsx +94 -0
- package/src/react-ui/icons/lucide-animated/settings.tsx +92 -0
- package/src/react-ui/icons/lucide-animated/trending-down.tsx +151 -0
- package/src/react-ui/icons/lucide-animated/trending-up.tsx +150 -0
- package/src/react-ui/icons/lucide-animated/x.tsx +102 -0
- package/src/react-ui/primitives/AutoHeight/index.tsx +74 -0
- package/src/react-ui/primitives/CountingNumber/index.tsx +147 -0
- package/src/react-ui/primitives/Highlight/index.tsx +577 -0
- package/src/react-ui/primitives/Slot/index.tsx +128 -0
- package/src/react-ui/primitives/index.ts +16 -0
- package/src/react-ui/primitives/waapi/Morph/Morph.types.ts +106 -0
- package/src/react-ui/primitives/waapi/Morph/MorphContext.tsx +21 -0
- package/src/react-ui/primitives/waapi/Morph/index.tsx +56 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/index.ts +12 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useCSSGridMorph.ts +88 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useFLIPClipPath.ts +175 -0
- package/src/react-ui/primitives/waapi/Morph/techniques/useViewTransitions.ts +86 -0
- package/src/react-ui/primitives/waapi/Morph/useMorph.ts +100 -0
- package/src/react-ui/primitives/waapi/Reorder/Reorder.types.ts +177 -0
- package/src/react-ui/primitives/waapi/Reorder/index.tsx +260 -0
- package/src/react-ui/primitives/waapi/Reorder/useReorder.ts +46 -0
- package/src/react-ui/primitives/waapi/Reorder/useReorderPresence.ts +208 -0
- package/src/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.ts +104 -0
- package/src/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.ts +14 -0
- package/src/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.types.ts +84 -0
- package/src/react-ui/primitives/waapi/SlidingNumber/index.tsx +474 -0
- package/src/react-ui/primitives/waapi/SlidingText/SlidingText.styles.ts +32 -0
- package/src/react-ui/primitives/waapi/SlidingText/SlidingText.types.ts +69 -0
- package/src/react-ui/primitives/waapi/SlidingText/index.tsx +140 -0
- package/src/react-ui/primitives/waapi/core/animationConstants.ts +215 -0
- package/src/react-ui/primitives/waapi/core/index.ts +53 -0
- package/src/react-ui/primitives/waapi/core/types.ts +200 -0
- package/src/react-ui/primitives/waapi/core/useAnimationOrchestrator.ts +429 -0
- package/src/react-ui/primitives/waapi/core/useElementRegistry.ts +80 -0
- package/src/react-ui/primitives/waapi/core/useFLIPAnimation.ts +137 -0
- package/src/react-ui/primitives/waapi/core/usePositionCapture.ts +105 -0
- package/src/react-ui/primitives/waapi/index.ts +116 -0
- package/src/react-ui/styles/animations.css +369 -0
- package/src/react-ui/ui/Accordion/index.tsx +362 -0
- package/src/react-ui/ui/AlertDialog/index.tsx +540 -0
- package/src/react-ui/ui/Badge/index.tsx +34 -0
- package/src/react-ui/ui/Button/index.tsx +155 -0
- package/src/react-ui/ui/Card/index.tsx +130 -0
- package/src/react-ui/ui/Checkbox/index.tsx +233 -0
- package/src/react-ui/ui/Combobox/index.tsx +331 -0
- package/src/react-ui/ui/CornerBracket/index.tsx +49 -0
- package/src/react-ui/ui/DataCard/DataCard.styles.ts +150 -0
- package/src/react-ui/ui/DataCard/DataCard.types.ts +146 -0
- package/src/react-ui/ui/DataCard/index.tsx +406 -0
- package/src/react-ui/ui/Dialog/index.tsx +452 -0
- package/src/react-ui/ui/DropdownMenu/index.tsx +300 -0
- package/src/react-ui/ui/Field/index.tsx +254 -0
- package/src/react-ui/ui/Input/index.tsx +32 -0
- package/src/react-ui/ui/InputGroup/index.tsx +147 -0
- package/src/react-ui/ui/Label/index.tsx +27 -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/index.tsx +422 -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/index.tsx +225 -0
- package/src/react-ui/ui/Separator/index.tsx +37 -0
- package/src/react-ui/ui/Switch/index.tsx +253 -0
- package/src/react-ui/ui/Tabs/Tabs.types.ts +250 -0
- package/src/react-ui/ui/Tabs/index.tsx +421 -0
- package/src/react-ui/ui/TextFlow/TextFlow.styles.ts +36 -0
- package/src/react-ui/ui/TextFlow/TextFlow.types.ts +118 -0
- package/src/react-ui/ui/TextFlow/index.tsx +276 -0
- package/src/react-ui/ui/Textarea/index.tsx +27 -0
- package/src/react-ui/ui/Tooltip/index.tsx +394 -0
- package/src/react-ui/ui/index.ts +37 -0
- package/dist/react/components/MorphingPopover/MorphingPopover.types.d.ts.map +0 -1
- package/dist/react/components/MorphingPopover/index.d.ts +0 -46
- package/dist/react/components/MorphingPopover/index.d.ts.map +0 -1
- package/dist/react/components/MorphingPopover/index.js +0 -119
- package/dist/react/components/MorphingPopover/morphing-popover.module.js +0 -5
- package/dist/react/components/index.d.ts.map +0 -1
- package/dist/react/hooks/Animation/UseAutoHeight.d.ts +0 -30
- package/dist/react/hooks/Animation/UseAutoHeight.d.ts.map +0 -1
- package/dist/react/hooks/Animation/UseAutoHeight.js +0 -80
- package/dist/react/hooks/DOM/UseIsInView.d.ts +0 -32
- package/dist/react/hooks/DOM/UseIsInView.d.ts.map +0 -1
- package/dist/react/hooks/DOM/UseIsInView.js +0 -33
- package/dist/react/hooks/State/UseControlledState.d.ts.map +0 -1
- package/dist/react/hooks/State/UseControlledState.js +0 -34
- package/dist/react/hooks/State/UseDataState.d.ts +0 -21
- package/dist/react/hooks/State/UseDataState.d.ts.map +0 -1
- package/dist/react/hooks/State/UseDataState.js +0 -63
- package/dist/react/hooks/index.d.ts +0 -14
- package/dist/react/hooks/index.d.ts.map +0 -1
- package/dist/react/hooks/index.js +0 -4
- package/dist/react/icons/index.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/activity.d.ts +0 -11
- package/dist/react/icons/lucide-animated/activity.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/activity.js +0 -75
- package/dist/react/icons/lucide-animated/arrow-down-to-line.d.ts +0 -23
- package/dist/react/icons/lucide-animated/arrow-down-to-line.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/arrow-down-to-line.js +0 -45
- package/dist/react/icons/lucide-animated/arrow-up.d.ts +0 -23
- package/dist/react/icons/lucide-animated/arrow-up.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/arrow-up.js +0 -41
- package/dist/react/icons/lucide-animated/bell-electric.d.ts +0 -11
- package/dist/react/icons/lucide-animated/bell-electric.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/bell-electric.js +0 -202
- package/dist/react/icons/lucide-animated/bell.d.ts +0 -11
- package/dist/react/icons/lucide-animated/bell.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/bell.js +0 -65
- package/dist/react/icons/lucide-animated/bot.d.ts +0 -11
- package/dist/react/icons/lucide-animated/bot.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/bot.js +0 -118
- package/dist/react/icons/lucide-animated/box.d.ts +0 -11
- package/dist/react/icons/lucide-animated/box.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/box.js +0 -86
- package/dist/react/icons/lucide-animated/check.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/check.js +0 -23
- package/dist/react/icons/lucide-animated/circle-check.d.ts +0 -11
- package/dist/react/icons/lucide-animated/circle-check.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/circle-check.js +0 -76
- package/dist/react/icons/lucide-animated/delete.d.ts +0 -11
- package/dist/react/icons/lucide-animated/delete.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/delete.js +0 -110
- package/dist/react/icons/lucide-animated/download.d.ts +0 -11
- package/dist/react/icons/lucide-animated/download.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/download.js +0 -70
- package/dist/react/icons/lucide-animated/edit-2.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/edit-2.js +0 -23
- package/dist/react/icons/lucide-animated/globe.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/globe.js +0 -31
- package/dist/react/icons/lucide-animated/home.d.ts +0 -11
- package/dist/react/icons/lucide-animated/home.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/home.js +0 -68
- package/dist/react/icons/lucide-animated/index.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/layers.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/layers.js +0 -27
- package/dist/react/icons/lucide-animated/layout-panel-top.d.ts +0 -11
- package/dist/react/icons/lucide-animated/layout-panel-top.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/layout-panel-top.js +0 -130
- package/dist/react/icons/lucide-animated/list.d.ts +0 -23
- package/dist/react/icons/lucide-animated/list.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/list.js +0 -78
- package/dist/react/icons/lucide-animated/package.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/package.js +0 -28
- package/dist/react/icons/lucide-animated/palette.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/palette.js +0 -49
- package/dist/react/icons/lucide-animated/plus.d.ts +0 -11
- package/dist/react/icons/lucide-animated/plus.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/plus.js +0 -59
- package/dist/react/icons/lucide-animated/refresh-cw.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/refresh-cw.js +0 -28
- package/dist/react/icons/lucide-animated/rocket.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/rocket.js +0 -28
- package/dist/react/icons/lucide-animated/save.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/save.js +0 -27
- package/dist/react/icons/lucide-animated/search.d.ts +0 -11
- package/dist/react/icons/lucide-animated/search.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/search.js +0 -78
- package/dist/react/icons/lucide-animated/settings.d.ts +0 -11
- package/dist/react/icons/lucide-animated/settings.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/settings.js +0 -63
- package/dist/react/icons/lucide-animated/terminal.d.ts +0 -24
- package/dist/react/icons/lucide-animated/terminal.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/terminal.js +0 -36
- package/dist/react/icons/lucide-animated/trash-2.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/trash-2.js +0 -39
- package/dist/react/icons/lucide-animated/trending-down.d.ts +0 -11
- package/dist/react/icons/lucide-animated/trending-down.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/trending-down.js +0 -123
- package/dist/react/icons/lucide-animated/trending-up.d.ts +0 -11
- package/dist/react/icons/lucide-animated/trending-up.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/trending-up.js +0 -123
- package/dist/react/icons/lucide-animated/type.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/type.js +0 -37
- package/dist/react/icons/lucide-animated/upload.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/upload.js +0 -32
- package/dist/react/icons/lucide-animated/x.d.ts +0 -11
- package/dist/react/icons/lucide-animated/x.d.ts.map +0 -1
- package/dist/react/icons/lucide-animated/x.js +0 -68
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/lib/get-strict-context.d.ts +0 -30
- package/dist/react/lib/get-strict-context.d.ts.map +0 -1
- package/dist/react/lib/get-strict-context.js +0 -40
- package/dist/react/lib/index.d.ts.map +0 -1
- package/dist/react/lib/utils.d.ts.map +0 -1
- package/dist/react/lib/utils.js +0 -27
- package/dist/react/primitives/AutoHeight/index.d.ts +0 -31
- package/dist/react/primitives/AutoHeight/index.d.ts.map +0 -1
- package/dist/react/primitives/AutoHeight/index.js +0 -52
- package/dist/react/primitives/CountingNumber/index.d.ts +0 -44
- package/dist/react/primitives/CountingNumber/index.d.ts.map +0 -1
- package/dist/react/primitives/CountingNumber/index.js +0 -97
- package/dist/react/primitives/Highlight/Highlight.types.d.ts.map +0 -1
- package/dist/react/primitives/Highlight/index.d.ts +0 -48
- package/dist/react/primitives/Highlight/index.d.ts.map +0 -1
- package/dist/react/primitives/Highlight/index.js +0 -396
- package/dist/react/primitives/Slot/index.d.ts +0 -53
- package/dist/react/primitives/Slot/index.d.ts.map +0 -1
- package/dist/react/primitives/Slot/index.js +0 -65
- package/dist/react/primitives/index.d.ts +0 -12
- package/dist/react/primitives/index.d.ts.map +0 -1
- package/dist/react/primitives/index.js +0 -4
- package/dist/react/ui/Accordion/Accordion.styles.d.ts.map +0 -1
- package/dist/react/ui/Accordion/Accordion.styles.js +0 -54
- package/dist/react/ui/Accordion/Accordion.types.d.ts.map +0 -1
- package/dist/react/ui/Accordion/index.d.ts.map +0 -1
- package/dist/react/ui/Accordion/index.js +0 -266
- package/dist/react/ui/AlertDialog/AlertDialog.styles.d.ts.map +0 -1
- package/dist/react/ui/AlertDialog/AlertDialog.styles.js +0 -29
- package/dist/react/ui/AlertDialog/AlertDialog.types.d.ts.map +0 -1
- package/dist/react/ui/AlertDialog/index.d.ts.map +0 -1
- package/dist/react/ui/AlertDialog/index.js +0 -319
- package/dist/react/ui/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/react/ui/Badge/Badge.styles.js +0 -30
- package/dist/react/ui/Badge/Badge.types.d.ts.map +0 -1
- package/dist/react/ui/Badge/index.d.ts.map +0 -1
- package/dist/react/ui/Badge/index.js +0 -34
- package/dist/react/ui/Button/Button.styles.d.ts.map +0 -1
- package/dist/react/ui/Button/Button.styles.js +0 -40
- package/dist/react/ui/Button/Button.types.d.ts.map +0 -1
- package/dist/react/ui/Button/index.d.ts.map +0 -1
- package/dist/react/ui/Button/index.js +0 -103
- package/dist/react/ui/Card/Card.styles.d.ts.map +0 -1
- package/dist/react/ui/Card/Card.styles.js +0 -24
- package/dist/react/ui/Card/Card.types.d.ts.map +0 -1
- package/dist/react/ui/Card/index.d.ts.map +0 -1
- package/dist/react/ui/Card/index.js +0 -82
- package/dist/react/ui/Checkbox/Checkbox.styles.d.ts.map +0 -1
- package/dist/react/ui/Checkbox/Checkbox.styles.js +0 -34
- package/dist/react/ui/Checkbox/Checkbox.types.d.ts.map +0 -1
- package/dist/react/ui/Checkbox/index.d.ts.map +0 -1
- package/dist/react/ui/Checkbox/index.js +0 -158
- package/dist/react/ui/Combobox/Combobox.styles.d.ts.map +0 -1
- package/dist/react/ui/Combobox/Combobox.styles.js +0 -17
- package/dist/react/ui/Combobox/Combobox.types.d.ts.map +0 -1
- package/dist/react/ui/Combobox/index.d.ts +0 -60
- package/dist/react/ui/Combobox/index.d.ts.map +0 -1
- package/dist/react/ui/Combobox/index.js +0 -216
- package/dist/react/ui/CornerBracket/CornerBracket.styles.d.ts.map +0 -1
- package/dist/react/ui/CornerBracket/CornerBracket.styles.js +0 -30
- package/dist/react/ui/CornerBracket/CornerBracket.types.d.ts.map +0 -1
- package/dist/react/ui/CornerBracket/index.d.ts.map +0 -1
- package/dist/react/ui/CornerBracket/index.js +0 -42
- package/dist/react/ui/Dialog/Dialog.styles.d.ts.map +0 -1
- package/dist/react/ui/Dialog/Dialog.styles.js +0 -29
- package/dist/react/ui/Dialog/Dialog.types.d.ts +0 -221
- package/dist/react/ui/Dialog/Dialog.types.d.ts.map +0 -1
- package/dist/react/ui/Dialog/index.d.ts.map +0 -1
- package/dist/react/ui/Dialog/index.js +0 -265
- package/dist/react/ui/DropdownMenu/DropdownMenu.styles.d.ts.map +0 -1
- package/dist/react/ui/DropdownMenu/DropdownMenu.styles.js +0 -16
- package/dist/react/ui/DropdownMenu/DropdownMenu.types.d.ts.map +0 -1
- package/dist/react/ui/DropdownMenu/index.d.ts +0 -50
- package/dist/react/ui/DropdownMenu/index.d.ts.map +0 -1
- package/dist/react/ui/DropdownMenu/index.js +0 -181
- package/dist/react/ui/Field/Field.styles.d.ts.map +0 -1
- package/dist/react/ui/Field/Field.styles.js +0 -27
- package/dist/react/ui/Field/Field.types.d.ts.map +0 -1
- package/dist/react/ui/Field/index.d.ts.map +0 -1
- package/dist/react/ui/Field/index.js +0 -145
- package/dist/react/ui/Input/Input.styles.d.ts.map +0 -1
- package/dist/react/ui/Input/Input.styles.js +0 -5
- package/dist/react/ui/Input/Input.types.d.ts.map +0 -1
- package/dist/react/ui/Input/index.d.ts.map +0 -1
- package/dist/react/ui/Input/index.js +0 -29
- package/dist/react/ui/InputGroup/InputGroup.styles.d.ts.map +0 -1
- package/dist/react/ui/InputGroup/InputGroup.styles.js +0 -34
- package/dist/react/ui/InputGroup/InputGroup.types.d.ts.map +0 -1
- package/dist/react/ui/InputGroup/index.d.ts.map +0 -1
- package/dist/react/ui/InputGroup/index.js +0 -81
- package/dist/react/ui/Label/Label.styles.d.ts.map +0 -1
- package/dist/react/ui/Label/Label.styles.js +0 -5
- package/dist/react/ui/Label/Label.types.d.ts.map +0 -1
- package/dist/react/ui/Label/index.d.ts.map +0 -1
- package/dist/react/ui/Label/index.js +0 -24
- package/dist/react/ui/Menu/Menu.styles.d.ts.map +0 -1
- package/dist/react/ui/Menu/Menu.styles.js +0 -32
- package/dist/react/ui/Menu/Menu.types.d.ts +0 -328
- package/dist/react/ui/Menu/Menu.types.d.ts.map +0 -1
- package/dist/react/ui/Menu/index.d.ts.map +0 -1
- package/dist/react/ui/Menu/index.js +0 -636
- package/dist/react/ui/Popover/Popover.styles.d.ts.map +0 -1
- package/dist/react/ui/Popover/Popover.styles.js +0 -26
- package/dist/react/ui/Popover/Popover.types.d.ts +0 -204
- package/dist/react/ui/Popover/Popover.types.d.ts.map +0 -1
- package/dist/react/ui/Popover/index.d.ts.map +0 -1
- package/dist/react/ui/Popover/index.js +0 -237
- package/dist/react/ui/Progress/Progress.styles.d.ts.map +0 -1
- package/dist/react/ui/Progress/Progress.styles.js +0 -30
- package/dist/react/ui/Progress/Progress.types.d.ts +0 -148
- package/dist/react/ui/Progress/Progress.types.d.ts.map +0 -1
- package/dist/react/ui/Progress/index.d.ts.map +0 -1
- package/dist/react/ui/Progress/index.js +0 -170
- package/dist/react/ui/Select/Select.styles.d.ts.map +0 -1
- package/dist/react/ui/Select/Select.styles.js +0 -15
- package/dist/react/ui/Select/Select.types.d.ts.map +0 -1
- package/dist/react/ui/Select/index.d.ts +0 -38
- package/dist/react/ui/Select/index.d.ts.map +0 -1
- package/dist/react/ui/Select/index.js +0 -136
- package/dist/react/ui/Separator/Separator.styles.d.ts.map +0 -1
- package/dist/react/ui/Separator/Separator.styles.js +0 -5
- package/dist/react/ui/Separator/Separator.types.d.ts.map +0 -1
- package/dist/react/ui/Separator/index.d.ts.map +0 -1
- package/dist/react/ui/Separator/index.js +0 -29
- package/dist/react/ui/Switch/Switch.styles.d.ts.map +0 -1
- package/dist/react/ui/Switch/Switch.styles.js +0 -41
- package/dist/react/ui/Switch/Switch.types.d.ts.map +0 -1
- package/dist/react/ui/Switch/index.d.ts.map +0 -1
- package/dist/react/ui/Switch/index.js +0 -199
- package/dist/react/ui/Tabs/Tabs.styles.d.ts.map +0 -1
- package/dist/react/ui/Tabs/Tabs.styles.js +0 -26
- package/dist/react/ui/Tabs/Tabs.types.d.ts +0 -201
- package/dist/react/ui/Tabs/Tabs.types.d.ts.map +0 -1
- package/dist/react/ui/Tabs/index.d.ts.map +0 -1
- package/dist/react/ui/Tabs/index.js +0 -308
- package/dist/react/ui/Textarea/Textarea.styles.d.ts.map +0 -1
- package/dist/react/ui/Textarea/Textarea.styles.js +0 -5
- package/dist/react/ui/Textarea/Textarea.types.d.ts.map +0 -1
- package/dist/react/ui/Textarea/index.d.ts.map +0 -1
- package/dist/react/ui/Textarea/index.js +0 -24
- package/dist/react/ui/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/dist/react/ui/Tooltip/Tooltip.styles.js +0 -26
- package/dist/react/ui/Tooltip/Tooltip.types.d.ts +0 -203
- package/dist/react/ui/Tooltip/Tooltip.types.d.ts.map +0 -1
- package/dist/react/ui/Tooltip/index.d.ts.map +0 -1
- package/dist/react/ui/Tooltip/index.js +0 -219
- package/dist/react/ui/index.d.ts +0 -31
- package/dist/react/ui/index.d.ts.map +0 -1
- package/dist/react/ui/index.js +0 -37
- package/dist/react.js +0 -88
- package/src/react/components/MorphingPopover/index.tsx +0 -186
- package/src/react/hooks/index.ts +0 -17
- package/src/react/icons/lucide-animated/activity.tsx +0 -109
- package/src/react/icons/lucide-animated/bell-electric.tsx +0 -124
- package/src/react/icons/lucide-animated/bell.tsx +0 -93
- package/src/react/icons/lucide-animated/bot.tsx +0 -122
- package/src/react/icons/lucide-animated/box.tsx +0 -117
- package/src/react/icons/lucide-animated/circle-check.tsx +0 -107
- package/src/react/icons/lucide-animated/delete.tsx +0 -133
- package/src/react/icons/lucide-animated/download.tsx +0 -99
- package/src/react/icons/lucide-animated/home.tsx +0 -103
- package/src/react/icons/lucide-animated/layout-panel-top.tsx +0 -143
- package/src/react/icons/lucide-animated/plus.tsx +0 -92
- package/src/react/icons/lucide-animated/search.tsx +0 -94
- package/src/react/icons/lucide-animated/settings.tsx +0 -92
- package/src/react/icons/lucide-animated/trending-down.tsx +0 -151
- package/src/react/icons/lucide-animated/trending-up.tsx +0 -150
- package/src/react/icons/lucide-animated/x.tsx +0 -102
- package/src/react/primitives/AutoHeight/index.tsx +0 -74
- package/src/react/primitives/CountingNumber/index.tsx +0 -147
- package/src/react/primitives/Highlight/index.tsx +0 -577
- package/src/react/primitives/Slot/index.tsx +0 -128
- package/src/react/primitives/index.ts +0 -13
- package/src/react/ui/Accordion/index.tsx +0 -362
- package/src/react/ui/AlertDialog/index.tsx +0 -540
- package/src/react/ui/Badge/index.tsx +0 -34
- package/src/react/ui/Button/index.tsx +0 -155
- package/src/react/ui/Card/index.tsx +0 -130
- package/src/react/ui/Checkbox/index.tsx +0 -233
- package/src/react/ui/Combobox/index.tsx +0 -331
- package/src/react/ui/CornerBracket/index.tsx +0 -49
- package/src/react/ui/Dialog/index.tsx +0 -452
- package/src/react/ui/DropdownMenu/index.tsx +0 -300
- package/src/react/ui/Field/index.tsx +0 -254
- package/src/react/ui/Input/index.tsx +0 -32
- package/src/react/ui/InputGroup/index.tsx +0 -147
- package/src/react/ui/Label/index.tsx +0 -27
- package/src/react/ui/Menu/Menu.types.ts +0 -425
- package/src/react/ui/Menu/index.tsx +0 -900
- package/src/react/ui/Popover/index.tsx +0 -422
- package/src/react/ui/Progress/Progress.types.ts +0 -162
- package/src/react/ui/Progress/index.tsx +0 -254
- package/src/react/ui/Select/index.tsx +0 -225
- package/src/react/ui/Separator/index.tsx +0 -37
- package/src/react/ui/Switch/index.tsx +0 -253
- package/src/react/ui/Tabs/Tabs.types.ts +0 -250
- package/src/react/ui/Tabs/index.tsx +0 -421
- package/src/react/ui/Textarea/index.tsx +0 -27
- package/src/react/ui/Tooltip/index.tsx +0 -394
- package/src/react/ui/index.ts +0 -34
- /package/dist/{react → react-ui}/components/MorphingPopover/MorphingPopover.types.d.ts +0 -0
- /package/dist/{react/components/MorphingPopover/morphing-popover.module-BkcZcmVy.css → react-ui/components/MorphingPopover/morphing-popover.module-BycNI8nU.css} +0 -0
- /package/dist/{react → react-ui}/components/index.d.ts +0 -0
- /package/dist/{react → react-ui}/components/index.js +0 -0
- /package/dist/{react → react-ui}/hooks/State/UseControlledState.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/index.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/index.js +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/check.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/edit-2.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/globe.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/index.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/index.js +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/layers.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/package.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/palette.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/refresh-cw.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/rocket.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/save.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/trash-2.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/type.d.ts +0 -0
- /package/dist/{react → react-ui}/icons/lucide-animated/upload.d.ts +0 -0
- /package/dist/{react → react-ui}/index.d.ts +0 -0
- /package/dist/{react → react-ui}/lib/index.d.ts +0 -0
- /package/dist/{react → react-ui}/lib/index.js +0 -0
- /package/dist/{react → react-ui}/lib/utils.d.ts +0 -0
- /package/dist/{react → react-ui}/primitives/Highlight/Highlight.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Accordion/Accordion.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Accordion/Accordion.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Accordion/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/AlertDialog/AlertDialog.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/AlertDialog/AlertDialog.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/AlertDialog/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Badge/Badge.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Badge/Badge.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Badge/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Button/Button.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Button/Button.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Button/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Card/Card.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Card/Card.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Card/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Checkbox/Checkbox.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Checkbox/Checkbox.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Checkbox/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Combobox/Combobox.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Combobox/Combobox.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/CornerBracket/CornerBracket.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/CornerBracket/CornerBracket.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/CornerBracket/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Dialog/Dialog.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Dialog/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/DropdownMenu/DropdownMenu.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/DropdownMenu/DropdownMenu.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Field/Field.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Field/Field.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Field/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Input/Input.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Input/Input.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Input/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/InputGroup/InputGroup.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/InputGroup/InputGroup.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/InputGroup/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Label/Label.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Label/Label.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Label/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Menu/Menu.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Menu/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Popover/Popover.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Popover/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Progress/Progress.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Progress/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Select/Select.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Select/Select.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Separator/Separator.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Separator/Separator.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Separator/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Switch/Switch.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Switch/Switch.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Switch/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Tabs/Tabs.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Tabs/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Textarea/Textarea.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Textarea/Textarea.types.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Textarea/index.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Tooltip/Tooltip.styles.d.ts +0 -0
- /package/dist/{react → react-ui}/ui/Tooltip/index.d.ts +0 -0
- /package/src/{react → react-ui}/components/MorphingPopover/MorphingPopover.types.ts +0 -0
- /package/src/{react → react-ui}/components/MorphingPopover/morphing-popover.module.css +0 -0
- /package/src/{react → react-ui}/components/index.ts +0 -0
- /package/src/{react → react-ui}/hooks/Animation/UseAutoHeight.tsx +0 -0
- /package/src/{react → react-ui}/hooks/DOM/UseIsInView.tsx +0 -0
- /package/src/{react → react-ui}/hooks/State/UseControlledState.tsx +0 -0
- /package/src/{react → react-ui}/hooks/State/UseDataState.tsx +0 -0
- /package/src/{react → react-ui}/icons/index.ts +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/arrow-down-to-line.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/arrow-up.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/check.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/edit-2.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/globe.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/index.ts +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/layers.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/list.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/package.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/palette.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/refresh-cw.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/rocket.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/save.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/terminal.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/trash-2.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/type.tsx +0 -0
- /package/src/{react → react-ui}/icons/lucide-animated/upload.tsx +0 -0
- /package/src/{react → react-ui}/index.ts +0 -0
- /package/src/{react → react-ui}/lib/get-strict-context.tsx +0 -0
- /package/src/{react → react-ui}/lib/index.ts +0 -0
- /package/src/{react → react-ui}/lib/utils.ts +0 -0
- /package/src/{react → react-ui}/primitives/Highlight/Highlight.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Accordion/Accordion.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Accordion/Accordion.types.ts +0 -0
- /package/src/{react → react-ui}/ui/AlertDialog/AlertDialog.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/AlertDialog/AlertDialog.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Badge/Badge.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Badge/Badge.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Button/Button.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Button/Button.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Card/Card.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Card/Card.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Checkbox/Checkbox.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Checkbox/Checkbox.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Combobox/Combobox.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Combobox/Combobox.types.ts +0 -0
- /package/src/{react → react-ui}/ui/CornerBracket/CornerBracket.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/CornerBracket/CornerBracket.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Dialog/Dialog.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Dialog/Dialog.types.ts +0 -0
- /package/src/{react → react-ui}/ui/DropdownMenu/DropdownMenu.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/DropdownMenu/DropdownMenu.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Field/Field.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Field/Field.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Input/Input.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Input/Input.types.ts +0 -0
- /package/src/{react → react-ui}/ui/InputGroup/InputGroup.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/InputGroup/InputGroup.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Label/Label.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Label/Label.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Menu/Menu.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Popover/Popover.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Popover/Popover.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Progress/Progress.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Select/Select.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Select/Select.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Separator/Separator.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Separator/Separator.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Switch/Switch.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Switch/Switch.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Tabs/Tabs.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Textarea/Textarea.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Textarea/Textarea.types.ts +0 -0
- /package/src/{react → react-ui}/ui/Tooltip/Tooltip.styles.ts +0 -0
- /package/src/{react → react-ui}/ui/Tooltip/Tooltip.types.ts +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for separator animation coordination.
|
|
3
|
+
*
|
|
4
|
+
* When a token exits, determines which separators should animate:
|
|
5
|
+
* 1. The exiting token's own separator (if it has one)
|
|
6
|
+
* 2. If the exiting token is the last visible, the previous token's separator
|
|
7
|
+
*
|
|
8
|
+
* @module primitives/waapi/Reorder/utils/separatorCoordination
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Calculate which separator IDs should animate along with an exiting item.
|
|
12
|
+
*
|
|
13
|
+
* Logic:
|
|
14
|
+
* - If the exiting item is NOT the last in the list, animate its own separator
|
|
15
|
+
* - If the exiting item IS the last in the list, animate the previous item's separator
|
|
16
|
+
* (because the previous item will become the new last and shouldn't have a separator)
|
|
17
|
+
*
|
|
18
|
+
* @param exitingId - The ID of the item being removed
|
|
19
|
+
* @param currentKeys - Set of all current (non-exiting) item keys
|
|
20
|
+
* @param exitingIds - Set of all currently exiting item IDs
|
|
21
|
+
* @param orderedKeys - Array of keys in render order
|
|
22
|
+
* @returns Array of separator IDs to animate
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* // Items: [A, B, C, D] with separators after A, B, C
|
|
27
|
+
* // Removing C (not last):
|
|
28
|
+
* calculateSeparatorCoordination('C', {'A','B','D'}, {'C'}, ['A','B','C','D'])
|
|
29
|
+
* // Returns: ['C'] - animate C's separator
|
|
30
|
+
*
|
|
31
|
+
* // Removing D (last item):
|
|
32
|
+
* calculateSeparatorCoordination('D', {'A','B','C'}, {'D'}, ['A','B','C','D'])
|
|
33
|
+
* // Returns: ['C'] - animate C's separator (C becomes new last)
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function calculateSeparatorCoordination(exitingId: string, currentKeys: Set<string>, exitingIds: Set<string>, orderedKeys: string[]): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Determine if a separator should be visible based on position and animation state.
|
|
39
|
+
*
|
|
40
|
+
* @param _tokenId - The token ID to check (unused, kept for API compatibility)
|
|
41
|
+
* @param tokenIndex - Index of the token in the visible list
|
|
42
|
+
* @param totalVisible - Total number of visible tokens
|
|
43
|
+
* @param separatorPhase - Current animation phase of the separator
|
|
44
|
+
* @returns Whether the separator should be rendered
|
|
45
|
+
*/
|
|
46
|
+
export declare function shouldShowSeparator(_tokenId: string, tokenIndex: number, totalVisible: number, separatorPhase?: 'idle' | 'exit-coordinated' | 'flip-coordinated' | 'completed'): boolean;
|
|
47
|
+
//# sourceMappingURL=separatorCoordination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separatorCoordination.d.ts","sourceRoot":"","sources":["../../../../../../src/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EACxB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,WAAW,EAAE,MAAM,EAAE,GACpB,MAAM,EAAE,CA2BV;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,WAAW,GAC9E,OAAO,CAmBT"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region src/react-ui/primitives/waapi/Reorder/utils/separatorCoordination.ts
|
|
2
|
+
/**
|
|
3
|
+
* Utility functions for separator animation coordination.
|
|
4
|
+
*
|
|
5
|
+
* When a token exits, determines which separators should animate:
|
|
6
|
+
* 1. The exiting token's own separator (if it has one)
|
|
7
|
+
* 2. If the exiting token is the last visible, the previous token's separator
|
|
8
|
+
*
|
|
9
|
+
* @module primitives/waapi/Reorder/utils/separatorCoordination
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Calculate which separator IDs should animate along with an exiting item.
|
|
13
|
+
*
|
|
14
|
+
* Logic:
|
|
15
|
+
* - If the exiting item is NOT the last in the list, animate its own separator
|
|
16
|
+
* - If the exiting item IS the last in the list, animate the previous item's separator
|
|
17
|
+
* (because the previous item will become the new last and shouldn't have a separator)
|
|
18
|
+
*
|
|
19
|
+
* @param exitingId - The ID of the item being removed
|
|
20
|
+
* @param currentKeys - Set of all current (non-exiting) item keys
|
|
21
|
+
* @param exitingIds - Set of all currently exiting item IDs
|
|
22
|
+
* @param orderedKeys - Array of keys in render order
|
|
23
|
+
* @returns Array of separator IDs to animate
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Items: [A, B, C, D] with separators after A, B, C
|
|
28
|
+
* // Removing C (not last):
|
|
29
|
+
* calculateSeparatorCoordination('C', {'A','B','D'}, {'C'}, ['A','B','C','D'])
|
|
30
|
+
* // Returns: ['C'] - animate C's separator
|
|
31
|
+
*
|
|
32
|
+
* // Removing D (last item):
|
|
33
|
+
* calculateSeparatorCoordination('D', {'A','B','C'}, {'D'}, ['A','B','C','D'])
|
|
34
|
+
* // Returns: ['C'] - animate C's separator (C becomes new last)
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
function calculateSeparatorCoordination(exitingId, currentKeys, exitingIds, orderedKeys) {
|
|
38
|
+
const additionalSeparators = [];
|
|
39
|
+
const visibleKeys = orderedKeys.filter((key) => currentKeys.has(key) || exitingIds.has(key));
|
|
40
|
+
const indexInVisible = visibleKeys.indexOf(exitingId);
|
|
41
|
+
if (indexInVisible === -1) return additionalSeparators;
|
|
42
|
+
const isLastVisible = indexInVisible === visibleKeys.length - 1;
|
|
43
|
+
if (indexInVisible < visibleKeys.length - 1) additionalSeparators.push(exitingId);
|
|
44
|
+
if (isLastVisible && indexInVisible > 0) {
|
|
45
|
+
const previousKey = visibleKeys[indexInVisible - 1];
|
|
46
|
+
if (previousKey && !exitingIds.has(previousKey)) additionalSeparators.push(previousKey);
|
|
47
|
+
}
|
|
48
|
+
return additionalSeparators;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Determine if a separator should be visible based on position and animation state.
|
|
52
|
+
*
|
|
53
|
+
* @param _tokenId - The token ID to check (unused, kept for API compatibility)
|
|
54
|
+
* @param tokenIndex - Index of the token in the visible list
|
|
55
|
+
* @param totalVisible - Total number of visible tokens
|
|
56
|
+
* @param separatorPhase - Current animation phase of the separator
|
|
57
|
+
* @returns Whether the separator should be rendered
|
|
58
|
+
*/
|
|
59
|
+
function shouldShowSeparator(_tokenId, tokenIndex, totalVisible, separatorPhase) {
|
|
60
|
+
if (tokenIndex >= totalVisible - 1) return false;
|
|
61
|
+
if (!separatorPhase) return true;
|
|
62
|
+
switch (separatorPhase) {
|
|
63
|
+
case "idle":
|
|
64
|
+
case "exit-coordinated":
|
|
65
|
+
case "flip-coordinated": return true;
|
|
66
|
+
case "completed": return false;
|
|
67
|
+
default: return true;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { calculateSeparatorCoordination, shouldShowSeparator };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleSlots } from '../../../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Style slots for SlidingNumber component
|
|
4
|
+
*/
|
|
5
|
+
export type SlidingNumberSlot = 'root';
|
|
6
|
+
/**
|
|
7
|
+
* Base styles for SlidingNumber component
|
|
8
|
+
*/
|
|
9
|
+
export declare const slidingNumberBaseStyles: StyleSlots<SlidingNumberSlot>;
|
|
10
|
+
//# sourceMappingURL=SlidingNumber.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingNumber.styles.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,iBAAiB,CAEjE,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format options for number display using Intl.NumberFormat
|
|
3
|
+
*/
|
|
4
|
+
export interface IFormatOptions {
|
|
5
|
+
/** Number formatting style */
|
|
6
|
+
style?: 'decimal' | 'currency' | 'percent';
|
|
7
|
+
/** Currency code (required when style is 'currency') */
|
|
8
|
+
currency?: string;
|
|
9
|
+
/** Locale for formatting (e.g., 'en-US', 'es-ES') */
|
|
10
|
+
locale?: string;
|
|
11
|
+
/** Minimum fraction digits */
|
|
12
|
+
minimumFractionDigits?: number;
|
|
13
|
+
/** Maximum fraction digits */
|
|
14
|
+
maximumFractionDigits?: number;
|
|
15
|
+
/** Whether to use grouping separators */
|
|
16
|
+
useGrouping?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for SlidingNumber component
|
|
20
|
+
*
|
|
21
|
+
* Animated number transitions with format preservation using WAAPI slot-machine-style animation.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Basic counter
|
|
26
|
+
* <SlidingNumber value={1234} duration={700} />
|
|
27
|
+
*
|
|
28
|
+
* // Currency
|
|
29
|
+
* <SlidingNumber
|
|
30
|
+
* value={99.99}
|
|
31
|
+
* format={{ style: 'currency', currency: 'USD' }}
|
|
32
|
+
* />
|
|
33
|
+
*
|
|
34
|
+
* // With motion blur
|
|
35
|
+
* <SlidingNumber value={500} motionBlur={true} digitHeight={60} />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export interface ISlidingNumberProps {
|
|
39
|
+
/** The numeric value to display */
|
|
40
|
+
value: number;
|
|
41
|
+
/** Animation duration in milliseconds */
|
|
42
|
+
duration?: number;
|
|
43
|
+
/** Font size for the number display */
|
|
44
|
+
fontSize?: string;
|
|
45
|
+
/** Font weight for the number display */
|
|
46
|
+
fontWeight?: string;
|
|
47
|
+
/** Text color */
|
|
48
|
+
color?: string;
|
|
49
|
+
/** Height of each digit row in pixels */
|
|
50
|
+
digitHeight?: number;
|
|
51
|
+
/** Delay between digit animations in milliseconds */
|
|
52
|
+
stagger?: number;
|
|
53
|
+
/** Enable motion blur effect during animation */
|
|
54
|
+
motionBlur?: boolean;
|
|
55
|
+
/** Number formatting options */
|
|
56
|
+
format?: IFormatOptions;
|
|
57
|
+
/**
|
|
58
|
+
* Animation direction trend
|
|
59
|
+
* - 1: Always animate upward (increasing)
|
|
60
|
+
* - -1: Always animate downward (decreasing)
|
|
61
|
+
* - 0: Auto (shorter path)
|
|
62
|
+
*/
|
|
63
|
+
trend?: -1 | 0 | 1;
|
|
64
|
+
/** Physics-based animation configuration */
|
|
65
|
+
animationConfig?: {
|
|
66
|
+
/** Overshoot amount (higher = more bounce) */
|
|
67
|
+
overshoot?: number;
|
|
68
|
+
/** Mass of the animated object */
|
|
69
|
+
mass?: number;
|
|
70
|
+
/** Spring stiffness */
|
|
71
|
+
stiffness?: number;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=SlidingNumber.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingNumber.types.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/primitives/waapi/SlidingNumber/SlidingNumber.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,8BAA8B;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IAEd,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,gCAAgC;IAChC,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEnB,4CAA4C;IAC5C,eAAe,CAAC,EAAE;QAChB,8CAA8C;QAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,kCAAkC;QAClC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,uBAAuB;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ISlidingNumberProps, IFormatOptions } from './SlidingNumber.types';
|
|
3
|
+
/**
|
|
4
|
+
* SlidingNumber - Animated number transitions with format preservation
|
|
5
|
+
*
|
|
6
|
+
* Uses WAAPI slot-machine-style animation with optional motion blur.
|
|
7
|
+
* Supports Intl.NumberFormat for currency, percentage, and decimal formatting.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // Basic counter
|
|
12
|
+
* <SlidingNumber value={1234} />
|
|
13
|
+
*
|
|
14
|
+
* // Currency with animation
|
|
15
|
+
* <SlidingNumber
|
|
16
|
+
* value={99.99}
|
|
17
|
+
* format={{ style: 'currency', currency: 'USD' }}
|
|
18
|
+
* duration={700}
|
|
19
|
+
* />
|
|
20
|
+
*
|
|
21
|
+
* // Percentage
|
|
22
|
+
* <SlidingNumber
|
|
23
|
+
* value={75.5}
|
|
24
|
+
* format={{ style: 'percent' }}
|
|
25
|
+
* />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const SlidingNumber: {
|
|
29
|
+
({ value, duration, fontSize, fontWeight, color, digitHeight, stagger, motionBlur, format, trend, animationConfig, }: ISlidingNumberProps): React.ReactElement;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
export type { ISlidingNumberProps, IFormatOptions };
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/primitives/waapi/SlidingNumber/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGjF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,aAAa;0HAYvB,mBAAmB,GAAG,KAAK,CAAC,YAAY;;CA4E1C,CAAC;AAkWF,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import React, { useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/react-ui/primitives/waapi/SlidingNumber/index.tsx
|
|
8
|
+
/**
|
|
9
|
+
* SlidingNumber - Animated number transitions with format preservation
|
|
10
|
+
*
|
|
11
|
+
* Uses WAAPI slot-machine-style animation with optional motion blur.
|
|
12
|
+
* Supports Intl.NumberFormat for currency, percentage, and decimal formatting.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* // Basic counter
|
|
17
|
+
* <SlidingNumber value={1234} />
|
|
18
|
+
*
|
|
19
|
+
* // Currency with animation
|
|
20
|
+
* <SlidingNumber
|
|
21
|
+
* value={99.99}
|
|
22
|
+
* format={{ style: 'currency', currency: 'USD' }}
|
|
23
|
+
* duration={700}
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
* // Percentage
|
|
27
|
+
* <SlidingNumber
|
|
28
|
+
* value={75.5}
|
|
29
|
+
* format={{ style: 'percent' }}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
const SlidingNumber = ({ value, duration = 700, fontSize = "3rem", fontWeight = "700", color = "#000", digitHeight = 60, stagger = 30, motionBlur = true, format, trend = 0, animationConfig }) => {
|
|
34
|
+
const computedEasing = useMemo(() => {
|
|
35
|
+
if (animationConfig) {
|
|
36
|
+
const { overshoot = 1, stiffness = 1, mass = 1 } = animationConfig;
|
|
37
|
+
const p1 = .34 * stiffness;
|
|
38
|
+
const p2 = 1 + .56 * overshoot;
|
|
39
|
+
const p3 = .64 / mass;
|
|
40
|
+
return `cubic-bezier(${Math.min(p1, 1).toFixed(2)}, ${Math.min(p2, 2).toFixed(2)}, ${Math.min(p3, 1).toFixed(2)}, 1)`;
|
|
41
|
+
}
|
|
42
|
+
return "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
43
|
+
}, [animationConfig]);
|
|
44
|
+
const currentChars = useMemo(() => parseNumberToChars(value, format), [value, format]);
|
|
45
|
+
const prevKeysRef = useRef(/* @__PURE__ */ new Set());
|
|
46
|
+
const isFirstRenderRef = useRef(true);
|
|
47
|
+
const enteringKeys = useMemo(() => {
|
|
48
|
+
if (isFirstRenderRef.current) return /* @__PURE__ */ new Set();
|
|
49
|
+
const entering = /* @__PURE__ */ new Set();
|
|
50
|
+
currentChars.forEach((c) => {
|
|
51
|
+
if (!prevKeysRef.current.has(c.key)) entering.add(c.key);
|
|
52
|
+
});
|
|
53
|
+
return entering;
|
|
54
|
+
}, [currentChars]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
isFirstRenderRef.current = false;
|
|
57
|
+
prevKeysRef.current = new Set(currentChars.map((c) => c.key));
|
|
58
|
+
}, [currentChars]);
|
|
59
|
+
const getDelay = (position) => {
|
|
60
|
+
return (Math.abs(position) - 1) * stagger;
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: cn("waapi-sliding-number"),
|
|
64
|
+
style: {
|
|
65
|
+
display: "inline-flex",
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
fontSize,
|
|
68
|
+
fontWeight,
|
|
69
|
+
color,
|
|
70
|
+
fontVariantNumeric: "tabular-nums",
|
|
71
|
+
fontFamily: "system-ui, -apple-system, sans-serif",
|
|
72
|
+
overflow: "hidden"
|
|
73
|
+
},
|
|
74
|
+
children: currentChars.map((item) => {
|
|
75
|
+
const isEntering = enteringKeys.has(item.key);
|
|
76
|
+
if (item.isDigit) return /* @__PURE__ */ jsx(Digit, {
|
|
77
|
+
digit: Number.parseInt(item.char),
|
|
78
|
+
duration,
|
|
79
|
+
digitHeight,
|
|
80
|
+
delay: getDelay(item.position),
|
|
81
|
+
motionBlur,
|
|
82
|
+
easing: computedEasing,
|
|
83
|
+
isEntering,
|
|
84
|
+
trend
|
|
85
|
+
}, item.key);
|
|
86
|
+
return /* @__PURE__ */ jsx(Symbol, {
|
|
87
|
+
char: item.char,
|
|
88
|
+
isEntering,
|
|
89
|
+
duration,
|
|
90
|
+
easing: computedEasing
|
|
91
|
+
}, item.key);
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
SlidingNumber.displayName = "SlidingNumber";
|
|
96
|
+
function parseNumberToChars(value, format) {
|
|
97
|
+
const locale = format?.locale || "en-US";
|
|
98
|
+
const options = {
|
|
99
|
+
style: format?.style || "decimal",
|
|
100
|
+
minimumFractionDigits: format?.minimumFractionDigits,
|
|
101
|
+
maximumFractionDigits: format?.maximumFractionDigits,
|
|
102
|
+
useGrouping: format?.useGrouping ?? true
|
|
103
|
+
};
|
|
104
|
+
if (format?.style === "currency" && format?.currency) options.currency = format.currency;
|
|
105
|
+
const parts = new Intl.NumberFormat(locale, options).formatToParts(value);
|
|
106
|
+
const result = [];
|
|
107
|
+
let integerDigitCount = 0;
|
|
108
|
+
parts.forEach((part) => {
|
|
109
|
+
if (part.type === "integer") integerDigitCount += part.value.length;
|
|
110
|
+
});
|
|
111
|
+
let integerIndex = integerDigitCount;
|
|
112
|
+
let fractionIndex = 0;
|
|
113
|
+
let groupCount = 0;
|
|
114
|
+
parts.forEach((part, partIdx) => {
|
|
115
|
+
if (part.type === "integer") for (const char of part.value) {
|
|
116
|
+
result.push({
|
|
117
|
+
char,
|
|
118
|
+
key: `int-${integerIndex}`,
|
|
119
|
+
isDigit: true,
|
|
120
|
+
position: integerIndex
|
|
121
|
+
});
|
|
122
|
+
integerIndex--;
|
|
123
|
+
}
|
|
124
|
+
else if (part.type === "fraction") for (const char of part.value) {
|
|
125
|
+
fractionIndex++;
|
|
126
|
+
result.push({
|
|
127
|
+
char,
|
|
128
|
+
key: `frac-${fractionIndex}`,
|
|
129
|
+
isDigit: true,
|
|
130
|
+
position: -fractionIndex
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
else if (part.type === "decimal") result.push({
|
|
134
|
+
char: part.value,
|
|
135
|
+
key: "decimal",
|
|
136
|
+
isDigit: false,
|
|
137
|
+
position: 0
|
|
138
|
+
});
|
|
139
|
+
else if (part.type === "group") {
|
|
140
|
+
groupCount++;
|
|
141
|
+
result.push({
|
|
142
|
+
char: part.value,
|
|
143
|
+
key: `group-${groupCount}`,
|
|
144
|
+
isDigit: false,
|
|
145
|
+
position: 0
|
|
146
|
+
});
|
|
147
|
+
} else if (part.type === "currency") result.push({
|
|
148
|
+
char: part.value,
|
|
149
|
+
key: `currency-${partIdx}`,
|
|
150
|
+
isDigit: false,
|
|
151
|
+
position: 0
|
|
152
|
+
});
|
|
153
|
+
else if (part.type === "percentSign") result.push({
|
|
154
|
+
char: part.value,
|
|
155
|
+
key: "percent",
|
|
156
|
+
isDigit: false,
|
|
157
|
+
position: 0
|
|
158
|
+
});
|
|
159
|
+
else result.push({
|
|
160
|
+
char: part.value,
|
|
161
|
+
key: `symbol-${partIdx}`,
|
|
162
|
+
isDigit: false,
|
|
163
|
+
position: 0
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
168
|
+
function Symbol({ char, isEntering, duration, easing }) {
|
|
169
|
+
const ref = useRef(null);
|
|
170
|
+
const hasAnimatedRef = useRef(false);
|
|
171
|
+
useLayoutEffect(() => {
|
|
172
|
+
if (!ref.current || !isEntering || hasAnimatedRef.current) return;
|
|
173
|
+
hasAnimatedRef.current = true;
|
|
174
|
+
ref.current.animate([{
|
|
175
|
+
opacity: 0,
|
|
176
|
+
transform: "scale(0.8)"
|
|
177
|
+
}, {
|
|
178
|
+
opacity: 1,
|
|
179
|
+
transform: "scale(1)"
|
|
180
|
+
}], {
|
|
181
|
+
duration: duration * .3,
|
|
182
|
+
easing,
|
|
183
|
+
fill: "forwards"
|
|
184
|
+
});
|
|
185
|
+
}, [
|
|
186
|
+
isEntering,
|
|
187
|
+
duration,
|
|
188
|
+
easing
|
|
189
|
+
]);
|
|
190
|
+
return /* @__PURE__ */ jsx("span", {
|
|
191
|
+
ref,
|
|
192
|
+
style: {
|
|
193
|
+
display: "inline-block",
|
|
194
|
+
whiteSpace: "pre",
|
|
195
|
+
opacity: isEntering ? 0 : 1
|
|
196
|
+
},
|
|
197
|
+
children: char
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function Digit({ digit, duration, digitHeight, delay, motionBlur, easing, isEntering, trend }) {
|
|
201
|
+
const columnRef = useRef(null);
|
|
202
|
+
const containerRef = useRef(null);
|
|
203
|
+
const animationRef = useRef(null);
|
|
204
|
+
const filterId = useRef(`blur-${Math.random().toString(36).slice(2, 9)}`).current;
|
|
205
|
+
const currentOffsetRef = useRef(null);
|
|
206
|
+
const targetDigitRef = useRef(digit);
|
|
207
|
+
const hasInitializedRef = useRef(false);
|
|
208
|
+
const sequence = useMemo(() => {
|
|
209
|
+
const seq = [];
|
|
210
|
+
for (let cycle = -1; cycle <= 1; cycle++) for (let d = 0; d <= 9; d++) seq.push(d);
|
|
211
|
+
return seq;
|
|
212
|
+
}, []);
|
|
213
|
+
useLayoutEffect(() => {
|
|
214
|
+
if (!hasInitializedRef.current) {
|
|
215
|
+
hasInitializedRef.current = true;
|
|
216
|
+
const offset = -(digit + 10) * digitHeight;
|
|
217
|
+
currentOffsetRef.current = offset;
|
|
218
|
+
targetDigitRef.current = digit;
|
|
219
|
+
if (columnRef.current) columnRef.current.style.transform = `translateY(${offset}px)`;
|
|
220
|
+
}
|
|
221
|
+
}, [digit, digitHeight]);
|
|
222
|
+
useLayoutEffect(() => {
|
|
223
|
+
if (!containerRef.current || !isEntering) return;
|
|
224
|
+
containerRef.current.animate([{
|
|
225
|
+
opacity: 0,
|
|
226
|
+
transform: "scale(0.5) translateY(-20px)"
|
|
227
|
+
}, {
|
|
228
|
+
opacity: 1,
|
|
229
|
+
transform: "scale(1) translateY(0)"
|
|
230
|
+
}], {
|
|
231
|
+
duration: duration * .4,
|
|
232
|
+
easing,
|
|
233
|
+
fill: "forwards"
|
|
234
|
+
});
|
|
235
|
+
}, [
|
|
236
|
+
isEntering,
|
|
237
|
+
duration,
|
|
238
|
+
easing
|
|
239
|
+
]);
|
|
240
|
+
useEffect(() => {
|
|
241
|
+
targetDigitRef.current = digit;
|
|
242
|
+
if (!hasInitializedRef.current) return;
|
|
243
|
+
if (digit === (currentOffsetRef.current !== null ? ((Math.round(-currentOffsetRef.current / digitHeight) - 10) % 10 + 10) % 10 : digit) && currentOffsetRef.current !== null) return;
|
|
244
|
+
animateToDigit(digit);
|
|
245
|
+
}, [digit, digitHeight]);
|
|
246
|
+
const animateToDigit = (target) => {
|
|
247
|
+
if (!columnRef.current || !containerRef.current) return;
|
|
248
|
+
if (animationRef.current) {
|
|
249
|
+
const computedStyle = getComputedStyle(columnRef.current);
|
|
250
|
+
currentOffsetRef.current = new DOMMatrix(computedStyle.transform).m42;
|
|
251
|
+
animationRef.current.cancel();
|
|
252
|
+
animationRef.current = null;
|
|
253
|
+
columnRef.current.style.transform = `translateY(${currentOffsetRef.current}px)`;
|
|
254
|
+
}
|
|
255
|
+
const rawIndex = currentOffsetRef.current !== null ? -currentOffsetRef.current / digitHeight : target + 10;
|
|
256
|
+
const from = ((Math.round(rawIndex) - 10) % 10 + 10) % 10;
|
|
257
|
+
if (target === from && currentOffsetRef.current !== null) {
|
|
258
|
+
const normalizedOffset = -(target + 10) * digitHeight;
|
|
259
|
+
if (columnRef.current) {
|
|
260
|
+
const currentAnim = animationRef.current;
|
|
261
|
+
if (currentAnim) currentAnim.cancel();
|
|
262
|
+
columnRef.current.style.transform = `translateY(${normalizedOffset}px)`;
|
|
263
|
+
}
|
|
264
|
+
currentOffsetRef.current = normalizedOffset;
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
let diff;
|
|
268
|
+
if (trend === 1) diff = target >= from ? target - from : 10 - from + target;
|
|
269
|
+
else if (trend === -1) diff = target <= from ? target - from : target - from - 10;
|
|
270
|
+
else {
|
|
271
|
+
diff = target - from;
|
|
272
|
+
if (diff > 5) diff -= 10;
|
|
273
|
+
else if (diff < -5) diff += 10;
|
|
274
|
+
}
|
|
275
|
+
const startOffset = currentOffsetRef.current ?? -(from + 10) * digitHeight;
|
|
276
|
+
const endOffset = startOffset - diff * digitHeight;
|
|
277
|
+
const blurEl = document.getElementById(filterId)?.querySelector("feGaussianBlur");
|
|
278
|
+
if (motionBlur && blurEl) {
|
|
279
|
+
const intensity = Math.min(Math.abs(diff) * 1.2, 6);
|
|
280
|
+
blurEl.setAttribute("stdDeviation", `0,${intensity}`);
|
|
281
|
+
containerRef.current.style.filter = `url(#${filterId})`;
|
|
282
|
+
}
|
|
283
|
+
const anim = columnRef.current.animate([{ transform: `translateY(${startOffset}px)` }, { transform: `translateY(${endOffset}px)` }], {
|
|
284
|
+
duration,
|
|
285
|
+
delay,
|
|
286
|
+
easing,
|
|
287
|
+
fill: "forwards"
|
|
288
|
+
});
|
|
289
|
+
animationRef.current = anim;
|
|
290
|
+
anim.onfinish = () => {
|
|
291
|
+
const normalizedOffset = -(target + 10) * digitHeight;
|
|
292
|
+
if (columnRef.current) {
|
|
293
|
+
anim.cancel();
|
|
294
|
+
columnRef.current.style.transform = `translateY(${normalizedOffset}px)`;
|
|
295
|
+
}
|
|
296
|
+
currentOffsetRef.current = normalizedOffset;
|
|
297
|
+
if (containerRef.current) containerRef.current.style.filter = "none";
|
|
298
|
+
if (blurEl) blurEl.setAttribute("stdDeviation", "0,0");
|
|
299
|
+
animationRef.current = null;
|
|
300
|
+
if (targetDigitRef.current !== target) requestAnimationFrame(() => {
|
|
301
|
+
animateToDigit(targetDigitRef.current);
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
anim.oncancel = () => {
|
|
305
|
+
animationRef.current = null;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("svg", {
|
|
309
|
+
style: {
|
|
310
|
+
position: "absolute",
|
|
311
|
+
width: 0,
|
|
312
|
+
height: 0
|
|
313
|
+
},
|
|
314
|
+
"aria-hidden": "true",
|
|
315
|
+
children: /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("filter", {
|
|
316
|
+
id: filterId,
|
|
317
|
+
children: /* @__PURE__ */ jsx("feGaussianBlur", {
|
|
318
|
+
in: "SourceGraphic",
|
|
319
|
+
stdDeviation: "0,0"
|
|
320
|
+
})
|
|
321
|
+
}) })
|
|
322
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
323
|
+
ref: containerRef,
|
|
324
|
+
style: {
|
|
325
|
+
position: "relative",
|
|
326
|
+
height: `${digitHeight}px`,
|
|
327
|
+
overflow: "hidden",
|
|
328
|
+
width: "0.65em",
|
|
329
|
+
textAlign: "center",
|
|
330
|
+
opacity: isEntering ? 0 : 1
|
|
331
|
+
},
|
|
332
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
333
|
+
ref: columnRef,
|
|
334
|
+
style: {
|
|
335
|
+
position: "absolute",
|
|
336
|
+
left: 0,
|
|
337
|
+
right: 0,
|
|
338
|
+
willChange: "transform"
|
|
339
|
+
},
|
|
340
|
+
children: sequence.map((d, i) => /* @__PURE__ */ jsx("div", {
|
|
341
|
+
style: {
|
|
342
|
+
height: `${digitHeight}px`,
|
|
343
|
+
display: "flex",
|
|
344
|
+
alignItems: "center",
|
|
345
|
+
justifyContent: "center"
|
|
346
|
+
},
|
|
347
|
+
children: d
|
|
348
|
+
}, i))
|
|
349
|
+
})
|
|
350
|
+
})] });
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
//#endregion
|
|
354
|
+
export { SlidingNumber };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StyleSlots } from '../../../../core/types';
|
|
2
|
+
/**
|
|
3
|
+
* Style slots for SlidingText component
|
|
4
|
+
*/
|
|
5
|
+
export type SlidingTextSlot = 'root' | 'content' | 'token';
|
|
6
|
+
/**
|
|
7
|
+
* Base styles for SlidingText component
|
|
8
|
+
*/
|
|
9
|
+
export declare const slidingTextBaseStyles: StyleSlots<SlidingTextSlot>;
|
|
10
|
+
/**
|
|
11
|
+
* CSS classes for animation states
|
|
12
|
+
*/
|
|
13
|
+
export declare const slidingTextAnimationClasses: {
|
|
14
|
+
readonly enterFrom: "enter-from";
|
|
15
|
+
readonly enterTo: "enter-to";
|
|
16
|
+
readonly exitActive: "exit-active";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* CSS classes for direction variants
|
|
20
|
+
*/
|
|
21
|
+
export declare const slidingTextDirectionClasses: {
|
|
22
|
+
readonly vertical: "waapi-direction-vertical";
|
|
23
|
+
readonly horizontal: "waapi-direction-horizontal";
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SlidingText.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlidingText.styles.d.ts","sourceRoot":"","sources":["../../../../../src/react-ui/primitives/waapi/SlidingText/SlidingText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,CAI7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC"}
|