laif-ds 0.1.9 → 0.1.11
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useMemo as m } from "react";
|
|
3
|
-
import { copyRawValuesOnly as i } from "../html/use-props.js";
|
|
4
|
-
import { buildSVGAttrs as l } from "./utils/build-attrs.js";
|
|
5
|
-
import { createSvgRenderState as n } from "./utils/create-render-state.js";
|
|
6
|
-
import { isSVGTag as a } from "./utils/is-svg-tag.js";
|
|
7
|
-
function V(e, s, y, o) {
|
|
8
|
-
const r = m(() => {
|
|
9
|
-
const t = n();
|
|
10
|
-
return l(t, s, a(o), e.transformTemplate), {
|
|
11
|
-
...t.attrs,
|
|
12
|
-
style: { ...t.style }
|
|
13
|
-
};
|
|
14
|
-
}, [s]);
|
|
15
|
-
if (e.style) {
|
|
16
|
-
const t = {};
|
|
17
|
-
i(t, e.style, e), r.style = { ...t, ...r.style };
|
|
18
|
-
}
|
|
19
|
-
return r;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
V as useSVGProps
|
|
23
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { buildHTMLStyles as b } from "../../html/utils/build-styles.js";
|
|
3
|
-
import { buildSVGPath as p } from "./path.js";
|
|
4
|
-
import { calcSVGTransformOrigin as v } from "./transform-origin.js";
|
|
5
|
-
function S(f, {
|
|
6
|
-
attrX: o,
|
|
7
|
-
attrY: s,
|
|
8
|
-
attrScale: m,
|
|
9
|
-
originX: e,
|
|
10
|
-
originY: i,
|
|
11
|
-
pathLength: u,
|
|
12
|
-
pathSpacing: l = 1,
|
|
13
|
-
pathOffset: t = 0,
|
|
14
|
-
// This is object creation, which we try to avoid per-frame.
|
|
15
|
-
...y
|
|
16
|
-
}, c, x) {
|
|
17
|
-
if (b(f, y, x), c) {
|
|
18
|
-
f.style.viewBox && (f.attrs.viewBox = f.style.viewBox);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
f.attrs = f.style, f.style = {};
|
|
22
|
-
const { attrs: n, style: r, dimensions: d } = f;
|
|
23
|
-
n.transform && (d && (r.transform = n.transform), delete n.transform), d && (e !== void 0 || i !== void 0 || r.transform) && (r.transformOrigin = v(d, e !== void 0 ? e : 0.5, i !== void 0 ? i : 0.5)), o !== void 0 && (n.x = o), s !== void 0 && (n.y = s), m !== void 0 && (n.scale = m), u !== void 0 && p(n, u, l, t, !1);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
S as buildSVGAttrs
|
|
27
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const e = /* @__PURE__ */ new Set([
|
|
3
|
-
"baseFrequency",
|
|
4
|
-
"diffuseConstant",
|
|
5
|
-
"kernelMatrix",
|
|
6
|
-
"kernelUnitLength",
|
|
7
|
-
"keySplines",
|
|
8
|
-
"keyTimes",
|
|
9
|
-
"limitingConeAngle",
|
|
10
|
-
"markerHeight",
|
|
11
|
-
"markerWidth",
|
|
12
|
-
"numOctaves",
|
|
13
|
-
"targetX",
|
|
14
|
-
"targetY",
|
|
15
|
-
"surfaceScale",
|
|
16
|
-
"specularConstant",
|
|
17
|
-
"specularExponent",
|
|
18
|
-
"stdDeviation",
|
|
19
|
-
"tableValues",
|
|
20
|
-
"viewBox",
|
|
21
|
-
"gradientTransform",
|
|
22
|
-
"pathLength",
|
|
23
|
-
"startOffset",
|
|
24
|
-
"textLength",
|
|
25
|
-
"lengthAdjust"
|
|
26
|
-
]);
|
|
27
|
-
export {
|
|
28
|
-
e as camelCaseAttributes
|
|
29
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { px as t } from "../../../value/types/numbers/units.js";
|
|
3
|
-
const c = {
|
|
4
|
-
offset: "stroke-dashoffset",
|
|
5
|
-
array: "stroke-dasharray"
|
|
6
|
-
}, y = {
|
|
7
|
-
offset: "strokeDashoffset",
|
|
8
|
-
array: "strokeDasharray"
|
|
9
|
-
};
|
|
10
|
-
function m(s, r, o = 1, e = 0, f = !0) {
|
|
11
|
-
s.pathLength = 1;
|
|
12
|
-
const a = f ? c : y;
|
|
13
|
-
s[a.offset] = t.transform(-e);
|
|
14
|
-
const n = t.transform(r), h = t.transform(o);
|
|
15
|
-
s[a.array] = `${n} ${h}`;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
m as buildSVGPath
|
|
19
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { camelToDash as i } from "../../dom/utils/camel-to-dash.js";
|
|
3
|
-
import { renderHTML as e } from "../../html/utils/render.js";
|
|
4
|
-
import { camelCaseAttributes as m } from "./camel-case-attrs.js";
|
|
5
|
-
function p(o, r, f, s) {
|
|
6
|
-
e(o, r, void 0, s);
|
|
7
|
-
for (const t in r.attrs)
|
|
8
|
-
o.setAttribute(m.has(t) ? t : i(t), r.attrs[t]);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
p as renderSVG
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
|
|
3
|
-
import { transformPropOrder as i } from "../../html/utils/keys-transform.js";
|
|
4
|
-
import { scrapeMotionValuesFromProps as m } from "../../html/utils/scrape-motion-values.js";
|
|
5
|
-
function l(r, t, s) {
|
|
6
|
-
const e = m(r, t, s);
|
|
7
|
-
for (const o in r)
|
|
8
|
-
if (n(r[o]) || n(t[o])) {
|
|
9
|
-
const a = i.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
|
|
10
|
-
e[a] = r[o];
|
|
11
|
-
}
|
|
12
|
-
return e;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
l as scrapeMotionValuesFromProps
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { px as i } from "../../../value/types/numbers/units.js";
|
|
3
|
-
function n(r, t, c) {
|
|
4
|
-
return typeof r == "string" ? r : i.transform(t + c * r);
|
|
5
|
-
}
|
|
6
|
-
function u(r, t, c) {
|
|
7
|
-
const f = n(t, r.x, r.width), p = n(c, r.y, r.height);
|
|
8
|
-
return `${f} ${p}`;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
u as calcSVGTransformOrigin
|
|
12
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { removeNonTranslationalTransform as y } from "../dom/utils/unit-conversion.js";
|
|
3
|
-
import { frame as m } from "../../frameloop/frame.js";
|
|
4
|
-
const n = /* @__PURE__ */ new Set();
|
|
5
|
-
let d = !1, u = !1;
|
|
6
|
-
function c() {
|
|
7
|
-
if (u) {
|
|
8
|
-
const r = Array.from(n).filter((e) => e.needsMeasurement), s = new Set(r.map((e) => e.element)), l = /* @__PURE__ */ new Map();
|
|
9
|
-
s.forEach((e) => {
|
|
10
|
-
const t = y(e);
|
|
11
|
-
t.length && (l.set(e, t), e.render());
|
|
12
|
-
}), r.forEach((e) => e.measureInitialState()), s.forEach((e) => {
|
|
13
|
-
e.render();
|
|
14
|
-
const t = l.get(e);
|
|
15
|
-
t && t.forEach(([a, i]) => {
|
|
16
|
-
var o;
|
|
17
|
-
(o = e.getValue(a)) === null || o === void 0 || o.set(i);
|
|
18
|
-
});
|
|
19
|
-
}), r.forEach((e) => e.measureEndState()), r.forEach((e) => {
|
|
20
|
-
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
u = !1, d = !1, n.forEach((r) => r.complete()), n.clear();
|
|
24
|
-
}
|
|
25
|
-
function h() {
|
|
26
|
-
n.forEach((r) => {
|
|
27
|
-
r.readKeyframes(), r.needsMeasurement && (u = !0);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function K() {
|
|
31
|
-
h(), c();
|
|
32
|
-
}
|
|
33
|
-
class S {
|
|
34
|
-
constructor(s, l, e, t, a, i = !1) {
|
|
35
|
-
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...s], this.onComplete = l, this.name = e, this.motionValue = t, this.element = a, this.isAsync = i;
|
|
36
|
-
}
|
|
37
|
-
scheduleResolve() {
|
|
38
|
-
this.isScheduled = !0, this.isAsync ? (n.add(this), d || (d = !0, m.read(h), m.resolveKeyframes(c))) : (this.readKeyframes(), this.complete());
|
|
39
|
-
}
|
|
40
|
-
readKeyframes() {
|
|
41
|
-
const { unresolvedKeyframes: s, name: l, element: e, motionValue: t } = this;
|
|
42
|
-
for (let a = 0; a < s.length; a++)
|
|
43
|
-
if (s[a] === null)
|
|
44
|
-
if (a === 0) {
|
|
45
|
-
const i = t == null ? void 0 : t.get(), o = s[s.length - 1];
|
|
46
|
-
if (i !== void 0)
|
|
47
|
-
s[0] = i;
|
|
48
|
-
else if (e && l) {
|
|
49
|
-
const f = e.readValue(l, o);
|
|
50
|
-
f != null && (s[0] = f);
|
|
51
|
-
}
|
|
52
|
-
s[0] === void 0 && (s[0] = o), t && i === void 0 && t.set(s[0]);
|
|
53
|
-
} else
|
|
54
|
-
s[a] = s[a - 1];
|
|
55
|
-
}
|
|
56
|
-
setFinalKeyframe() {
|
|
57
|
-
}
|
|
58
|
-
measureInitialState() {
|
|
59
|
-
}
|
|
60
|
-
renderEndStyles() {
|
|
61
|
-
}
|
|
62
|
-
measureEndState() {
|
|
63
|
-
}
|
|
64
|
-
complete() {
|
|
65
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), n.delete(this);
|
|
66
|
-
}
|
|
67
|
-
cancel() {
|
|
68
|
-
this.isComplete || (this.isScheduled = !1, n.delete(this));
|
|
69
|
-
}
|
|
70
|
-
resume() {
|
|
71
|
-
this.isComplete || this.scheduleResolve();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export {
|
|
75
|
-
S as KeyframeResolver,
|
|
76
|
-
K as flushKeyframeResolvers
|
|
77
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isAnimationControls as z } from "../../animation/utils/is-animation-controls.js";
|
|
3
|
-
import { isKeyframesTarget as D } from "../../animation/utils/is-keyframes-target.js";
|
|
4
|
-
import { shallowCompare as _ } from "../../utils/shallow-compare.js";
|
|
5
|
-
import { isVariantLabel as j } from "./is-variant-label.js";
|
|
6
|
-
import { resolveVariant as q } from "./resolve-dynamic-variants.js";
|
|
7
|
-
import { variantPriorityOrder as k } from "./variant-props.js";
|
|
8
|
-
import { animateVisualElement as G } from "../../animation/interfaces/visual-element.js";
|
|
9
|
-
import { getVariantContext as J } from "./get-variant-context.js";
|
|
10
|
-
const N = [...k].reverse(), Q = k.length;
|
|
11
|
-
function U(e) {
|
|
12
|
-
return (f) => Promise.all(f.map(({ animation: c, options: v }) => G(e, c, v)));
|
|
13
|
-
}
|
|
14
|
-
function re(e) {
|
|
15
|
-
let f = U(e), c = L(), v = !0;
|
|
16
|
-
const B = (s) => (i, m) => {
|
|
17
|
-
var l;
|
|
18
|
-
const a = q(e, m, s === "exit" ? (l = e.presenceContext) === null || l === void 0 ? void 0 : l.custom : void 0);
|
|
19
|
-
if (a) {
|
|
20
|
-
const { transition: u, transitionEnd: y, ...g } = a;
|
|
21
|
-
i = { ...i, ...g, ...y };
|
|
22
|
-
}
|
|
23
|
-
return i;
|
|
24
|
-
};
|
|
25
|
-
function F(s) {
|
|
26
|
-
f = s(e);
|
|
27
|
-
}
|
|
28
|
-
function T(s) {
|
|
29
|
-
const { props: i } = e, m = J(e.parent) || {}, l = [], a = /* @__PURE__ */ new Set();
|
|
30
|
-
let u = {}, y = 1 / 0;
|
|
31
|
-
for (let p = 0; p < Q; p++) {
|
|
32
|
-
const o = N[p], t = c[o], r = i[o] !== void 0 ? i[o] : m[o], w = j(r), P = o === s ? t.isActive : null;
|
|
33
|
-
P === !1 && (y = p);
|
|
34
|
-
let V = r === m[o] && r !== i[o] && w;
|
|
35
|
-
if (V && v && e.manuallyAnimateOnMount && (V = !1), t.protectedKeys = { ...u }, // If it isn't active and hasn't *just* been set as inactive
|
|
36
|
-
!t.isActive && P === null || // If we didn't and don't have any defined prop for this animation type
|
|
37
|
-
!r && !t.prevProp || // Or if the prop doesn't define an animation
|
|
38
|
-
z(r) || typeof r == "boolean")
|
|
39
|
-
continue;
|
|
40
|
-
const I = W(t.prevProp, r);
|
|
41
|
-
let C = I || // If we're making this variant active, we want to always make it active
|
|
42
|
-
o === s && t.isActive && !V && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
43
|
-
p > y && w, b = !1;
|
|
44
|
-
const R = Array.isArray(r) ? r : [r];
|
|
45
|
-
let h = R.reduce(B(o), {});
|
|
46
|
-
P === !1 && (h = {});
|
|
47
|
-
const { prevResolvedValues: x = {} } = t, M = {
|
|
48
|
-
...x,
|
|
49
|
-
...h
|
|
50
|
-
}, O = (n) => {
|
|
51
|
-
C = !0, a.has(n) && (b = !0, a.delete(n)), t.needsAnimating[n] = !0;
|
|
52
|
-
const d = e.getValue(n);
|
|
53
|
-
d && (d.liveStyle = !1);
|
|
54
|
-
};
|
|
55
|
-
for (const n in M) {
|
|
56
|
-
const d = h[n], S = x[n];
|
|
57
|
-
if (u.hasOwnProperty(n))
|
|
58
|
-
continue;
|
|
59
|
-
let K = !1;
|
|
60
|
-
D(d) && D(S) ? K = !_(d, S) : K = d !== S, K ? d != null ? O(n) : a.add(n) : d !== void 0 && a.has(n) ? O(n) : t.protectedKeys[n] = !0;
|
|
61
|
-
}
|
|
62
|
-
t.prevProp = r, t.prevResolvedValues = h, t.isActive && (u = { ...u, ...h }), v && e.blockInitialAnimation && (C = !1), C && (!(V && I) || b) && l.push(...R.map((n) => ({
|
|
63
|
-
animation: n,
|
|
64
|
-
options: { type: o }
|
|
65
|
-
})));
|
|
66
|
-
}
|
|
67
|
-
if (a.size) {
|
|
68
|
-
const p = {};
|
|
69
|
-
a.forEach((o) => {
|
|
70
|
-
const t = e.getBaseTarget(o), r = e.getValue(o);
|
|
71
|
-
r && (r.liveStyle = !0), p[o] = t ?? null;
|
|
72
|
-
}), l.push({ animation: p });
|
|
73
|
-
}
|
|
74
|
-
let g = !!l.length;
|
|
75
|
-
return v && (i.initial === !1 || i.initial === i.animate) && !e.manuallyAnimateOnMount && (g = !1), v = !1, g ? f(l) : Promise.resolve();
|
|
76
|
-
}
|
|
77
|
-
function H(s, i) {
|
|
78
|
-
var m;
|
|
79
|
-
if (c[s].isActive === i)
|
|
80
|
-
return Promise.resolve();
|
|
81
|
-
(m = e.variantChildren) === null || m === void 0 || m.forEach((a) => {
|
|
82
|
-
var u;
|
|
83
|
-
return (u = a.animationState) === null || u === void 0 ? void 0 : u.setActive(s, i);
|
|
84
|
-
}), c[s].isActive = i;
|
|
85
|
-
const l = T(s);
|
|
86
|
-
for (const a in c)
|
|
87
|
-
c[a].protectedKeys = {};
|
|
88
|
-
return l;
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
animateChanges: T,
|
|
92
|
-
setActive: H,
|
|
93
|
-
setAnimateFunction: F,
|
|
94
|
-
getState: () => c,
|
|
95
|
-
reset: () => {
|
|
96
|
-
c = L(), v = !0;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function W(e, f) {
|
|
101
|
-
return typeof f == "string" ? f !== e : Array.isArray(f) ? !_(f, e) : !1;
|
|
102
|
-
}
|
|
103
|
-
function A(e = !1) {
|
|
104
|
-
return {
|
|
105
|
-
isActive: e,
|
|
106
|
-
protectedKeys: {},
|
|
107
|
-
needsAnimating: {},
|
|
108
|
-
prevResolvedValues: {}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function L() {
|
|
112
|
-
return {
|
|
113
|
-
animate: A(!0),
|
|
114
|
-
whileInView: A(),
|
|
115
|
-
whileHover: A(),
|
|
116
|
-
whileTap: A(),
|
|
117
|
-
whileDrag: A(),
|
|
118
|
-
whileFocus: A(),
|
|
119
|
-
exit: A()
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
export {
|
|
123
|
-
W as checkVariantsDidChange,
|
|
124
|
-
re as createAnimationState
|
|
125
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { addUniqueItem as t, removeItem as r } from "../../utils/array.js";
|
|
3
|
-
import { compareByDepth as e } from "./compare-by-depth.js";
|
|
4
|
-
class c {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.children = [], this.isDirty = !1;
|
|
7
|
-
}
|
|
8
|
-
add(i) {
|
|
9
|
-
t(this.children, i), this.isDirty = !0;
|
|
10
|
-
}
|
|
11
|
-
remove(i) {
|
|
12
|
-
r(this.children, i), this.isDirty = !0;
|
|
13
|
-
}
|
|
14
|
-
forEach(i) {
|
|
15
|
-
this.isDirty && this.children.sort(e), this.isDirty = !1, this.children.forEach(i);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
c as FlatTree
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isVariantLabel as a } from "./is-variant-label.js";
|
|
3
|
-
import { variantProps as p } from "./variant-props.js";
|
|
4
|
-
const f = p.length;
|
|
5
|
-
function c(n) {
|
|
6
|
-
if (!n)
|
|
7
|
-
return;
|
|
8
|
-
if (!n.isControllingVariants) {
|
|
9
|
-
const t = n.parent ? c(n.parent) || {} : {};
|
|
10
|
-
return n.props.initial !== void 0 && (t.initial = n.props.initial), t;
|
|
11
|
-
}
|
|
12
|
-
const o = {};
|
|
13
|
-
for (let t = 0; t < f; t++) {
|
|
14
|
-
const i = p[t], r = n.props[i];
|
|
15
|
-
(a(r) || r === !1) && (o[i] = r);
|
|
16
|
-
}
|
|
17
|
-
return o;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
c as getVariantContext
|
|
21
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isAnimationControls as t } from "../../animation/utils/is-animation-controls.js";
|
|
3
|
-
import { isVariantLabel as o } from "./is-variant-label.js";
|
|
4
|
-
import { variantProps as r } from "./variant-props.js";
|
|
5
|
-
function a(i) {
|
|
6
|
-
return t(i.animate) || r.some((n) => o(i[n]));
|
|
7
|
-
}
|
|
8
|
-
function l(i) {
|
|
9
|
-
return !!(a(i) || i.variants);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
a as isControllingVariants,
|
|
13
|
-
l as isVariantNode
|
|
14
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { warnOnce as f } from "../../utils/warn-once.js";
|
|
3
|
-
import { motionValue as r } from "../../value/index.js";
|
|
4
|
-
import { isMotionValue as u } from "../../value/utils/is-motion-value.js";
|
|
5
|
-
function c(e, a, s) {
|
|
6
|
-
for (const o in a) {
|
|
7
|
-
const i = a[o], n = s[o];
|
|
8
|
-
if (u(i))
|
|
9
|
-
e.addValue(o, i), process.env.NODE_ENV === "development" && f(i.version === "11.18.2", `Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);
|
|
10
|
-
else if (u(n))
|
|
11
|
-
e.addValue(o, r(i, { owner: e }));
|
|
12
|
-
else if (n !== i)
|
|
13
|
-
if (e.hasValue(o)) {
|
|
14
|
-
const t = e.getValue(o);
|
|
15
|
-
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
16
|
-
} else {
|
|
17
|
-
const t = e.getStaticValue(o);
|
|
18
|
-
e.addValue(o, r(t !== void 0 ? t : i, { owner: e }));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
for (const o in s)
|
|
22
|
-
a[o] === void 0 && e.removeValue(o);
|
|
23
|
-
return a;
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
c as updateMotionValuesFromProps
|
|
27
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function o(r) {
|
|
3
|
-
const t = [{}, {}];
|
|
4
|
-
return r == null || r.values.forEach((c, e) => {
|
|
5
|
-
t[0][e] = c.get(), t[1][e] = c.getVelocity();
|
|
6
|
-
}), t;
|
|
7
|
-
}
|
|
8
|
-
function y(r, t, c, e) {
|
|
9
|
-
if (typeof t == "function") {
|
|
10
|
-
const [u, a] = o(e);
|
|
11
|
-
t = t(c !== void 0 ? c : r.custom, u, a);
|
|
12
|
-
}
|
|
13
|
-
if (typeof t == "string" && (t = r.variants && r.variants[t]), typeof t == "function") {
|
|
14
|
-
const [u, a] = o(e);
|
|
15
|
-
t = t(c !== void 0 ? c : r.custom, u, a);
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
y as resolveVariantFromProps
|
|
21
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { resolveFinalValueInKeyframes as s } from "../../utils/resolve-value.js";
|
|
3
|
-
import { motionValue as f } from "../../value/index.js";
|
|
4
|
-
import { resolveVariant as l } from "./resolve-dynamic-variants.js";
|
|
5
|
-
function V(o, t, e) {
|
|
6
|
-
o.hasValue(t) ? o.getValue(t).set(e) : o.addValue(t, f(e));
|
|
7
|
-
}
|
|
8
|
-
function p(o, t) {
|
|
9
|
-
const e = l(o, t);
|
|
10
|
-
let { transitionEnd: a = {}, transition: c = {}, ...r } = e || {};
|
|
11
|
-
r = { ...r, ...a };
|
|
12
|
-
for (const n in r) {
|
|
13
|
-
const i = s(r[n]);
|
|
14
|
-
V(o, n, i);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
p as setTarget
|
|
19
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { time as m } from "../frameloop/sync-time.js";
|
|
4
|
-
import { frame as s, cancelFrame as o } from "../frameloop/frame.js";
|
|
5
|
-
function l(c, r) {
|
|
6
|
-
const n = m.now(), e = ({ timestamp: a }) => {
|
|
7
|
-
const t = a - n;
|
|
8
|
-
t >= r && (o(e), c(t - r));
|
|
9
|
-
};
|
|
10
|
-
return s.read(e, !0), () => o(e);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
l as delay
|
|
14
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function b(e, f, r) {
|
|
3
|
-
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (f - e) * 6 * r : r < 1 / 2 ? f : r < 2 / 3 ? e + (f - e) * (2 / 3 - r) * 6 : e;
|
|
4
|
-
}
|
|
5
|
-
function l({ hue: e, saturation: f, lightness: r, alpha: M }) {
|
|
6
|
-
e /= 360, f /= 100, r /= 100;
|
|
7
|
-
let u = 0, o = 0, c = 0;
|
|
8
|
-
if (!f)
|
|
9
|
-
u = o = c = r;
|
|
10
|
-
else {
|
|
11
|
-
const n = r < 0.5 ? r * (1 + f) : r + f - r * f, d = 2 * r - n;
|
|
12
|
-
u = b(d, n, e + 1 / 3), o = b(d, n, e), c = b(d, n, e - 1 / 3);
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
red: Math.round(u * 255),
|
|
16
|
-
green: Math.round(o * 255),
|
|
17
|
-
blue: Math.round(c * 255),
|
|
18
|
-
alpha: M
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
l as hslaToRgba
|
|
23
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { invariant as h } from "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as x } from "../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
import { progress as y } from "../../../../motion-utils/dist/es/progress.js";
|
|
5
|
-
import { clamp as M } from "./clamp.js";
|
|
6
|
-
import { mix as b } from "./mix/index.js";
|
|
7
|
-
import { pipe as A } from "./pipe.js";
|
|
8
|
-
function F(r, e, c) {
|
|
9
|
-
const t = [], f = c || b, n = r.length - 1;
|
|
10
|
-
for (let o = 0; o < n; o++) {
|
|
11
|
-
let s = f(r[o], r[o + 1]);
|
|
12
|
-
if (e) {
|
|
13
|
-
const a = Array.isArray(e) ? e[o] || x : e;
|
|
14
|
-
s = A(a, s);
|
|
15
|
-
}
|
|
16
|
-
t.push(s);
|
|
17
|
-
}
|
|
18
|
-
return t;
|
|
19
|
-
}
|
|
20
|
-
function I(r, e, { clamp: c = !0, ease: t, mixer: f } = {}) {
|
|
21
|
-
const n = r.length;
|
|
22
|
-
if (h(n === e.length, "Both input and output ranges must be the same length"), n === 1)
|
|
23
|
-
return () => e[0];
|
|
24
|
-
if (n === 2 && e[0] === e[1])
|
|
25
|
-
return () => e[1];
|
|
26
|
-
const o = r[0] === r[1];
|
|
27
|
-
r[0] > r[n - 1] && (r = [...r].reverse(), e = [...e].reverse());
|
|
28
|
-
const s = F(e, t, f), a = s.length, l = (m) => {
|
|
29
|
-
if (o && m < r[0])
|
|
30
|
-
return e[0];
|
|
31
|
-
let i = 0;
|
|
32
|
-
if (a > 1)
|
|
33
|
-
for (; i < r.length - 2 && !(m < r[i + 1]); i++)
|
|
34
|
-
;
|
|
35
|
-
const g = y(r[i], r[i + 1], m);
|
|
36
|
-
return s[i](g);
|
|
37
|
-
};
|
|
38
|
-
return c ? (m) => l(M(r[0], r[n - 1], m)) : l;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
I as interpolate
|
|
42
|
-
};
|