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,53 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { warning as S } from "../../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { secondsToMilliseconds as g, millisecondsToSeconds as N } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
4
|
-
import { clamp as h } from "../../../utils/clamp.js";
|
|
5
|
-
import { springDefaults as n } from "./defaults.js";
|
|
6
|
-
const D = 1e-3;
|
|
7
|
-
function v({ duration: t = n.duration, bounce: p = n.bounce, velocity: i = n.velocity, mass: o = n.mass }) {
|
|
8
|
-
let a, f;
|
|
9
|
-
S(t <= g(n.maxDuration), "Spring duration must be 10 seconds or less");
|
|
10
|
-
let e = 1 - p;
|
|
11
|
-
e = h(n.minDamping, n.maxDamping, e), t = h(n.minDuration, n.maxDuration, N(t)), e < 1 ? (a = (s) => {
|
|
12
|
-
const r = s * e, c = r * t, l = r - i, m = b(s, e), x = Math.exp(-c);
|
|
13
|
-
return D - l / m * x;
|
|
14
|
-
}, f = (s) => {
|
|
15
|
-
const c = s * e * t, l = c * i + i, m = Math.pow(e, 2) * Math.pow(s, 2) * t, x = Math.exp(-c), u = b(Math.pow(s, 2), e);
|
|
16
|
-
return (-a(s) + D > 0 ? -1 : 1) * ((l - m) * x) / u;
|
|
17
|
-
}) : (a = (s) => {
|
|
18
|
-
const r = Math.exp(-s * t), c = (s - i) * t + 1;
|
|
19
|
-
return -1e-3 + r * c;
|
|
20
|
-
}, f = (s) => {
|
|
21
|
-
const r = Math.exp(-s * t), c = (i - s) * (t * t);
|
|
22
|
-
return r * c;
|
|
23
|
-
});
|
|
24
|
-
const w = 5 / t, M = A(a, f, w);
|
|
25
|
-
if (t = g(t), isNaN(M))
|
|
26
|
-
return {
|
|
27
|
-
stiffness: n.stiffness,
|
|
28
|
-
damping: n.damping,
|
|
29
|
-
duration: t
|
|
30
|
-
};
|
|
31
|
-
{
|
|
32
|
-
const s = Math.pow(M, 2) * o;
|
|
33
|
-
return {
|
|
34
|
-
stiffness: s,
|
|
35
|
-
damping: e * 2 * Math.sqrt(o * s),
|
|
36
|
-
duration: t
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
const T = 12;
|
|
41
|
-
function A(t, p, i) {
|
|
42
|
-
let o = i;
|
|
43
|
-
for (let a = 1; a < T; a++)
|
|
44
|
-
o = o - t(o) / p(o);
|
|
45
|
-
return o;
|
|
46
|
-
}
|
|
47
|
-
function b(t, p) {
|
|
48
|
-
return t * Math.sqrt(1 - p * p);
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
b as calcAngularFreq,
|
|
52
|
-
v as findSpring
|
|
53
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { millisecondsToSeconds as b, secondsToMilliseconds as R } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
4
|
-
import { calcGeneratorDuration as A, maxGeneratorDuration as w } from "../../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
|
|
5
|
-
import { generateLinearEasing as B } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/linear.js";
|
|
6
|
-
import { clamp as K } from "../../../utils/clamp.js";
|
|
7
|
-
import { calcGeneratorVelocity as V } from "../utils/velocity.js";
|
|
8
|
-
import { springDefaults as r } from "./defaults.js";
|
|
9
|
-
import { findSpring as j, calcAngularFreq as E } from "./find.js";
|
|
10
|
-
const I = ["duration", "bounce"], L = ["stiffness", "damping", "mass"];
|
|
11
|
-
function x(t, a) {
|
|
12
|
-
return a.some((s) => t[s] !== void 0);
|
|
13
|
-
}
|
|
14
|
-
function P(t) {
|
|
15
|
-
let a = {
|
|
16
|
-
velocity: r.velocity,
|
|
17
|
-
stiffness: r.stiffness,
|
|
18
|
-
damping: r.damping,
|
|
19
|
-
mass: r.mass,
|
|
20
|
-
isResolvedFromDuration: !1,
|
|
21
|
-
...t
|
|
22
|
-
};
|
|
23
|
-
if (!x(t, L) && x(t, I))
|
|
24
|
-
if (t.visualDuration) {
|
|
25
|
-
const s = t.visualDuration, u = 2 * Math.PI / (s * 1.2), m = u * u, g = 2 * K(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(m);
|
|
26
|
-
a = {
|
|
27
|
-
...a,
|
|
28
|
-
mass: r.mass,
|
|
29
|
-
stiffness: m,
|
|
30
|
-
damping: g
|
|
31
|
-
};
|
|
32
|
-
} else {
|
|
33
|
-
const s = j(t);
|
|
34
|
-
a = {
|
|
35
|
-
...a,
|
|
36
|
-
...s,
|
|
37
|
-
mass: r.mass
|
|
38
|
-
}, a.isResolvedFromDuration = !0;
|
|
39
|
-
}
|
|
40
|
-
return a;
|
|
41
|
-
}
|
|
42
|
-
function W(t = r.visualDuration, a = r.bounce) {
|
|
43
|
-
const s = typeof t != "object" ? {
|
|
44
|
-
visualDuration: t,
|
|
45
|
-
keyframes: [0, 1],
|
|
46
|
-
bounce: a
|
|
47
|
-
} : t;
|
|
48
|
-
let { restSpeed: u, restDelta: m } = s;
|
|
49
|
-
const g = s.keyframes[0], f = s.keyframes[s.keyframes.length - 1], d = { done: !1, value: g }, { stiffness: M, damping: T, mass: D, duration: S, velocity: k, isResolvedFromDuration: q } = P({
|
|
50
|
-
...s,
|
|
51
|
-
velocity: -b(s.velocity || 0)
|
|
52
|
-
}), h = k || 0, o = T / (2 * Math.sqrt(M * D)), c = f - g, i = b(Math.sqrt(M / D)), F = Math.abs(c) < 5;
|
|
53
|
-
u || (u = F ? r.restSpeed.granular : r.restSpeed.default), m || (m = F ? r.restDelta.granular : r.restDelta.default);
|
|
54
|
-
let p;
|
|
55
|
-
if (o < 1) {
|
|
56
|
-
const e = E(i, o);
|
|
57
|
-
p = (n) => {
|
|
58
|
-
const l = Math.exp(-o * i * n);
|
|
59
|
-
return f - l * ((h + o * i * c) / e * Math.sin(e * n) + c * Math.cos(e * n));
|
|
60
|
-
};
|
|
61
|
-
} else if (o === 1)
|
|
62
|
-
p = (e) => f - Math.exp(-i * e) * (c + (h + i * c) * e);
|
|
63
|
-
else {
|
|
64
|
-
const e = i * Math.sqrt(o * o - 1);
|
|
65
|
-
p = (n) => {
|
|
66
|
-
const l = Math.exp(-o * i * n), v = Math.min(e * n, 300);
|
|
67
|
-
return f - l * ((h + o * i * c) * Math.sinh(v) + e * c * Math.cosh(v)) / e;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
const y = {
|
|
71
|
-
calculatedDuration: q && S || null,
|
|
72
|
-
next: (e) => {
|
|
73
|
-
const n = p(e);
|
|
74
|
-
if (q)
|
|
75
|
-
d.done = e >= S;
|
|
76
|
-
else {
|
|
77
|
-
let l = 0;
|
|
78
|
-
o < 1 && (l = e === 0 ? R(h) : V(p, e, n));
|
|
79
|
-
const v = Math.abs(l) <= u, G = Math.abs(f - n) <= m;
|
|
80
|
-
d.done = v && G;
|
|
81
|
-
}
|
|
82
|
-
return d.value = d.done ? f : n, d;
|
|
83
|
-
},
|
|
84
|
-
toString: () => {
|
|
85
|
-
const e = Math.min(A(y), w), n = B((l) => y.next(e * l).value, e, 30);
|
|
86
|
-
return e + "ms " + n;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
return y;
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
W as spring
|
|
93
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { GroupPlaybackControls as c } from "../../../../../motion-dom/dist/es/animation/controls/Group.js";
|
|
3
|
-
import { getValueTransition as D } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
4
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
5
|
-
import { secondsToMilliseconds as f } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
6
|
-
import { frame as T } from "../../frameloop/frame.js";
|
|
7
|
-
import { AcceleratedAnimation as d } from "../animators/AcceleratedAnimation.js";
|
|
8
|
-
import { MainThreadAnimation as k } from "../animators/MainThreadAnimation.js";
|
|
9
|
-
import { getFinalKeyframe as A } from "../animators/waapi/utils/get-final-keyframe.js";
|
|
10
|
-
import { getDefaultTransition as C } from "../utils/default-transitions.js";
|
|
11
|
-
import { isTransitionDefined as U } from "../utils/is-transition-defined.js";
|
|
12
|
-
const O = (i, r, n, a = {}, s, l) => (u) => {
|
|
13
|
-
const o = D(a, i) || {}, y = o.delay || a.delay || 0;
|
|
14
|
-
let { elapsed: m = 0 } = a;
|
|
15
|
-
m = m - f(y);
|
|
16
|
-
let e = {
|
|
17
|
-
keyframes: Array.isArray(n) ? n : [null, n],
|
|
18
|
-
ease: "easeOut",
|
|
19
|
-
velocity: r.getVelocity(),
|
|
20
|
-
...o,
|
|
21
|
-
delay: -m,
|
|
22
|
-
onUpdate: (t) => {
|
|
23
|
-
r.set(t), o.onUpdate && o.onUpdate(t);
|
|
24
|
-
},
|
|
25
|
-
onComplete: () => {
|
|
26
|
-
u(), o.onComplete && o.onComplete();
|
|
27
|
-
},
|
|
28
|
-
name: i,
|
|
29
|
-
motionValue: r,
|
|
30
|
-
element: l ? void 0 : s
|
|
31
|
-
};
|
|
32
|
-
U(o) || (e = {
|
|
33
|
-
...e,
|
|
34
|
-
...C(i, e)
|
|
35
|
-
}), e.duration && (e.duration = f(e.duration)), e.repeatDelay && (e.repeatDelay = f(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
|
|
36
|
-
let p = !1;
|
|
37
|
-
if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (e.duration = 0, e.delay === 0 && (p = !0)), p && !l && r.get() !== void 0) {
|
|
38
|
-
const t = A(e.keyframes, o);
|
|
39
|
-
if (t !== void 0)
|
|
40
|
-
return T.update(() => {
|
|
41
|
-
e.onUpdate(t), e.onComplete();
|
|
42
|
-
}), new c([]);
|
|
43
|
-
}
|
|
44
|
-
return !l && d.supports(e) ? new d(e) : new k(e);
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
O as animateMotionValue
|
|
48
|
-
};
|
package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { getValueTransition as M } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
4
|
-
import { positionalKeys as S } from "../../render/html/utils/keys-position.js";
|
|
5
|
-
import { setTarget as A } from "../../render/utils/setters.js";
|
|
6
|
-
import { addValueToWillChange as H } from "../../value/use-will-change/add-will-change.js";
|
|
7
|
-
import { getOptimisedAppearId as y } from "../optimized-appear/get-appear-id.js";
|
|
8
|
-
import { animateMotionValue as B } from "./motion-value.js";
|
|
9
|
-
import { frame as V } from "../../frameloop/frame.js";
|
|
10
|
-
function I({ protectedKeys: t, needsAnimating: a }, n) {
|
|
11
|
-
const i = t.hasOwnProperty(n) && a[n] !== !0;
|
|
12
|
-
return a[n] = !1, i;
|
|
13
|
-
}
|
|
14
|
-
function W(t, a, { delay: n = 0, transitionOverride: i, type: m } = {}) {
|
|
15
|
-
var r;
|
|
16
|
-
let { transition: p = t.getDefaultTransition(), transitionEnd: e, ...u } = a;
|
|
17
|
-
i && (p = i);
|
|
18
|
-
const f = [], c = m && t.animationState && t.animationState.getState()[m];
|
|
19
|
-
for (const o in u) {
|
|
20
|
-
const s = t.getValue(o, (r = t.latestValues[o]) !== null && r !== void 0 ? r : null), d = u[o];
|
|
21
|
-
if (d === void 0 || c && I(c, o))
|
|
22
|
-
continue;
|
|
23
|
-
const l = {
|
|
24
|
-
delay: n,
|
|
25
|
-
...M(p || {}, o)
|
|
26
|
-
};
|
|
27
|
-
let T = !1;
|
|
28
|
-
if (window.MotionHandoffAnimation) {
|
|
29
|
-
const h = y(t);
|
|
30
|
-
if (h) {
|
|
31
|
-
const w = window.MotionHandoffAnimation(h, o, V);
|
|
32
|
-
w !== null && (l.startTime = w, T = !0);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
H(t, o), s.start(B(o, s, d, t.shouldReduceMotion && S.has(o) ? { type: !1 } : l, t, T));
|
|
36
|
-
const g = s.animation;
|
|
37
|
-
g && f.push(g);
|
|
38
|
-
}
|
|
39
|
-
return e && Promise.all(f).then(() => {
|
|
40
|
-
V.update(() => {
|
|
41
|
-
e && A(t, e);
|
|
42
|
-
});
|
|
43
|
-
}), f;
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
W as animateTarget
|
|
47
|
-
};
|
package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { resolveVariant as h } from "../../render/utils/resolve-dynamic-variants.js";
|
|
3
|
-
import { animateTarget as g } from "./visual-element-target.js";
|
|
4
|
-
function u(r, t, n = {}) {
|
|
5
|
-
var i;
|
|
6
|
-
const a = h(r, t, n.type === "exit" ? (i = r.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
|
|
7
|
-
let { transition: s = r.getDefaultTransition() || {} } = a || {};
|
|
8
|
-
n.transitionOverride && (s = n.transitionOverride);
|
|
9
|
-
const o = a ? () => Promise.all(g(r, a, n)) : () => Promise.resolve(), d = r.variantChildren && r.variantChildren.size ? (e = 0) => {
|
|
10
|
-
const { delayChildren: c = 0, staggerChildren: m, staggerDirection: l } = s;
|
|
11
|
-
return C(r, t, c + e, m, l, n);
|
|
12
|
-
} : () => Promise.resolve(), { when: f } = s;
|
|
13
|
-
if (f) {
|
|
14
|
-
const [e, c] = f === "beforeChildren" ? [o, d] : [d, o];
|
|
15
|
-
return e().then(() => c());
|
|
16
|
-
} else
|
|
17
|
-
return Promise.all([o(), d(n.delay)]);
|
|
18
|
-
}
|
|
19
|
-
function C(r, t, n = 0, i = 0, a = 1, s) {
|
|
20
|
-
const o = [], d = (r.variantChildren.size - 1) * i, f = a === 1 ? (e = 0) => e * i : (e = 0) => d - e * i;
|
|
21
|
-
return Array.from(r.variantChildren).sort(y).forEach((e, c) => {
|
|
22
|
-
e.notify("AnimationStart", t), o.push(u(e, t, {
|
|
23
|
-
...s,
|
|
24
|
-
delay: n + f(c)
|
|
25
|
-
}).then(() => e.notify("AnimationComplete", t)));
|
|
26
|
-
}), Promise.all(o);
|
|
27
|
-
}
|
|
28
|
-
function y(r, t) {
|
|
29
|
-
return r.sortNodePosition(t);
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
u as animateVariant,
|
|
33
|
-
y as sortByTreeOrder
|
|
34
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { resolveVariant as s } from "../../render/utils/resolve-dynamic-variants.js";
|
|
3
|
-
import { animateTarget as y } from "./visual-element-target.js";
|
|
4
|
-
import { animateVariant as e } from "./visual-element-variant.js";
|
|
5
|
-
function A(a, r, t = {}) {
|
|
6
|
-
a.notify("AnimationStart", r);
|
|
7
|
-
let m;
|
|
8
|
-
if (Array.isArray(r)) {
|
|
9
|
-
const o = r.map((c) => e(a, c, t));
|
|
10
|
-
m = Promise.all(o);
|
|
11
|
-
} else if (typeof r == "string")
|
|
12
|
-
m = e(a, r, t);
|
|
13
|
-
else {
|
|
14
|
-
const o = typeof r == "function" ? s(a, r, t.custom) : r;
|
|
15
|
-
m = Promise.all(y(a, o, t));
|
|
16
|
-
}
|
|
17
|
-
return m.then(() => {
|
|
18
|
-
a.notify("AnimationComplete", r);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
A as animateVisualElement
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { transformProps as s } from "../../render/html/utils/keys-transform.js";
|
|
3
|
-
const r = {
|
|
4
|
-
type: "spring",
|
|
5
|
-
stiffness: 500,
|
|
6
|
-
damping: 25,
|
|
7
|
-
restSpeed: 10
|
|
8
|
-
}, n = (e) => ({
|
|
9
|
-
type: "spring",
|
|
10
|
-
stiffness: 550,
|
|
11
|
-
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
12
|
-
restSpeed: 10
|
|
13
|
-
}), i = {
|
|
14
|
-
type: "keyframes",
|
|
15
|
-
duration: 0.8
|
|
16
|
-
}, a = {
|
|
17
|
-
type: "keyframes",
|
|
18
|
-
ease: [0.25, 0.1, 0.35, 1],
|
|
19
|
-
duration: 0.3
|
|
20
|
-
}, o = (e, { keyframes: t }) => t.length > 2 ? i : s.has(e) ? e.startsWith("scale") ? n(t[1]) : r : a;
|
|
21
|
-
export {
|
|
22
|
-
o as getDefaultTransition
|
|
23
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { complex as e } from "../../value/types/complex/index.js";
|
|
3
|
-
const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
|
|
4
|
-
(e.test(r) || r === "0") && // And it contains numbers and/or colors
|
|
5
|
-
!r.startsWith("url("));
|
|
6
|
-
export {
|
|
7
|
-
n as isAnimatable
|
|
8
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as m } from "../../../../../../_virtual/jsx-runtime.js";
|
|
3
|
-
import * as c from "react";
|
|
4
|
-
import { useId as u, useRef as h, useContext as a, useInsertionEffect as x } from "react";
|
|
5
|
-
import { MotionConfigContext as C } from "../../context/MotionConfigContext.js";
|
|
6
|
-
class R extends c.Component {
|
|
7
|
-
getSnapshotBeforeUpdate(o) {
|
|
8
|
-
const e = this.props.childRef.current;
|
|
9
|
-
if (e && o.isPresent && !this.props.isPresent) {
|
|
10
|
-
const t = this.props.sizeRef.current;
|
|
11
|
-
t.height = e.offsetHeight || 0, t.width = e.offsetWidth || 0, t.top = e.offsetTop, t.left = e.offsetLeft;
|
|
12
|
-
}
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
17
|
-
*/
|
|
18
|
-
componentDidUpdate() {
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return this.props.children;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function z({ children: i, isPresent: o }) {
|
|
25
|
-
const e = u(), t = h(null), r = h({
|
|
26
|
-
width: 0,
|
|
27
|
-
height: 0,
|
|
28
|
-
top: 0,
|
|
29
|
-
left: 0
|
|
30
|
-
}), { nonce: s } = a(C);
|
|
31
|
-
return x(() => {
|
|
32
|
-
const { width: p, height: f, top: d, left: l } = r.current;
|
|
33
|
-
if (o || !t.current || !p || !f)
|
|
34
|
-
return;
|
|
35
|
-
t.current.dataset.motionPopId = e;
|
|
36
|
-
const n = document.createElement("style");
|
|
37
|
-
return s && (n.nonce = s), document.head.appendChild(n), n.sheet && n.sheet.insertRule(`
|
|
38
|
-
[data-motion-pop-id="${e}"] {
|
|
39
|
-
position: absolute !important;
|
|
40
|
-
width: ${p}px !important;
|
|
41
|
-
height: ${f}px !important;
|
|
42
|
-
top: ${d}px !important;
|
|
43
|
-
left: ${l}px !important;
|
|
44
|
-
}
|
|
45
|
-
`), () => {
|
|
46
|
-
document.head.removeChild(n);
|
|
47
|
-
};
|
|
48
|
-
}, [o]), m.jsx(R, { isPresent: o, childRef: t, sizeRef: r, children: c.cloneElement(i, { ref: t }) });
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
z as PopChild
|
|
52
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as f } from "../../../../../../_virtual/jsx-runtime.js";
|
|
3
|
-
import * as C from "react";
|
|
4
|
-
import { useId as h, useCallback as x, useMemo as m } from "react";
|
|
5
|
-
import { PresenceContext as j } from "../../context/PresenceContext.js";
|
|
6
|
-
import { useConstant as M } from "../../utils/use-constant.js";
|
|
7
|
-
import { PopChild as v } from "./PopChild.js";
|
|
8
|
-
const y = ({ children: s, initial: u, isPresent: r, onExitComplete: o, custom: c, presenceAffectsLayout: i, mode: p }) => {
|
|
9
|
-
const e = M(w), l = h(), n = x((t) => {
|
|
10
|
-
e.set(t, !0);
|
|
11
|
-
for (const a of e.values())
|
|
12
|
-
if (!a)
|
|
13
|
-
return;
|
|
14
|
-
o && o();
|
|
15
|
-
}, [e, o]), d = m(
|
|
16
|
-
() => ({
|
|
17
|
-
id: l,
|
|
18
|
-
initial: u,
|
|
19
|
-
isPresent: r,
|
|
20
|
-
custom: c,
|
|
21
|
-
onExitComplete: n,
|
|
22
|
-
register: (t) => (e.set(t, !1), () => e.delete(t))
|
|
23
|
-
}),
|
|
24
|
-
/**
|
|
25
|
-
* If the presence of a child affects the layout of the components around it,
|
|
26
|
-
* we want to make a new context value to ensure they get re-rendered
|
|
27
|
-
* so they can detect that layout change.
|
|
28
|
-
*/
|
|
29
|
-
i ? [Math.random(), n] : [r, n]
|
|
30
|
-
);
|
|
31
|
-
return m(() => {
|
|
32
|
-
e.forEach((t, a) => e.set(a, !1));
|
|
33
|
-
}, [r]), C.useEffect(() => {
|
|
34
|
-
!r && !e.size && o && o();
|
|
35
|
-
}, [r]), p === "popLayout" && (s = f.jsx(v, { isPresent: r, children: s })), f.jsx(j.Provider, { value: d, children: s });
|
|
36
|
-
};
|
|
37
|
-
function w() {
|
|
38
|
-
return /* @__PURE__ */ new Map();
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
y as PresenceChild
|
|
42
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as h } from "../../../../../../_virtual/jsx-runtime.js";
|
|
3
|
-
import { useMemo as I, useRef as g, useState as w, useContext as K } from "react";
|
|
4
|
-
import { LayoutGroupContext as M } from "../../context/LayoutGroupContext.js";
|
|
5
|
-
import { useConstant as N } from "../../utils/use-constant.js";
|
|
6
|
-
import { PresenceChild as T } from "./PresenceChild.js";
|
|
7
|
-
import { usePresence as F } from "./use-presence.js";
|
|
8
|
-
import { onlyElements as R, getChildKey as c } from "./utils.js";
|
|
9
|
-
import { useIsomorphicLayoutEffect as G } from "../../utils/use-isomorphic-effect.js";
|
|
10
|
-
const H = ({ children: p, custom: j, initial: k = !0, onExitComplete: C, presenceAffectsLayout: A = !0, mode: u = "sync", propagate: l = !1 }) => {
|
|
11
|
-
const [x, d] = F(l), n = I(() => R(p), [p]), o = l && !x ? [] : n.map(c), y = g(!0), v = g(n), r = N(() => /* @__PURE__ */ new Map()), [L, b] = w(n), [i, E] = w(n);
|
|
12
|
-
G(() => {
|
|
13
|
-
y.current = !1, v.current = n;
|
|
14
|
-
for (let t = 0; t < i.length; t++) {
|
|
15
|
-
const e = c(i[t]);
|
|
16
|
-
o.includes(e) ? r.delete(e) : r.get(e) !== !0 && r.set(e, !1);
|
|
17
|
-
}
|
|
18
|
-
}, [i, o.length, o.join("-")]);
|
|
19
|
-
const f = [];
|
|
20
|
-
if (n !== L) {
|
|
21
|
-
let t = [...n];
|
|
22
|
-
for (let e = 0; e < i.length; e++) {
|
|
23
|
-
const s = i[e], a = c(s);
|
|
24
|
-
o.includes(a) || (t.splice(e, 0, s), f.push(s));
|
|
25
|
-
}
|
|
26
|
-
u === "wait" && f.length && (t = f), E(R(t)), b(n);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
process.env.NODE_ENV !== "production" && u === "wait" && i.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
30
|
-
const { forceRender: m } = K(M);
|
|
31
|
-
return h.jsx(h.Fragment, { children: i.map((t) => {
|
|
32
|
-
const e = c(t), s = l && !x ? !1 : n === i || o.includes(e), a = () => {
|
|
33
|
-
if (r.has(e))
|
|
34
|
-
r.set(e, !0);
|
|
35
|
-
else
|
|
36
|
-
return;
|
|
37
|
-
let P = !0;
|
|
38
|
-
r.forEach((D) => {
|
|
39
|
-
D || (P = !1);
|
|
40
|
-
}), P && (m == null || m(), E(v.current), l && (d == null || d()), C && C());
|
|
41
|
-
};
|
|
42
|
-
return h.jsx(T, { isPresent: s, initial: !y.current || k ? void 0 : !1, custom: s ? void 0 : j, presenceAffectsLayout: A, mode: u, onExitComplete: s ? void 0 : a, children: t }, e);
|
|
43
|
-
}) });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
H as AnimatePresence
|
|
47
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext as f, useId as l, useEffect as c, useCallback as i } from "react";
|
|
3
|
-
import { PresenceContext as m } from "../../context/PresenceContext.js";
|
|
4
|
-
function p(e = !0) {
|
|
5
|
-
const o = f(m);
|
|
6
|
-
if (o === null)
|
|
7
|
-
return [!0, null];
|
|
8
|
-
const { isPresent: r, onExitComplete: t, register: s } = o, n = l();
|
|
9
|
-
c(() => {
|
|
10
|
-
e && s(n);
|
|
11
|
-
}, [e]);
|
|
12
|
-
const u = i(() => e && t && t(n), [n, t, e]);
|
|
13
|
-
return !r && t ? [!1, u] : [!0];
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
p as usePresence
|
|
17
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Children as i, isValidElement as o } from "react";
|
|
3
|
-
const l = (e) => e.key || "";
|
|
4
|
-
function s(e) {
|
|
5
|
-
const t = [];
|
|
6
|
-
return i.forEach(e, (n) => {
|
|
7
|
-
o(n) && t.push(n);
|
|
8
|
-
}), t;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
l as getChildKey,
|
|
12
|
-
s as onlyElements
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext as o, useMemo as i } from "react";
|
|
3
|
-
import { MotionContext as a } from "./index.js";
|
|
4
|
-
import { getCurrentTreeVariants as s } from "./utils.js";
|
|
5
|
-
function f(t) {
|
|
6
|
-
const { initial: e, animate: n } = s(t, o(a));
|
|
7
|
-
return i(() => ({ initial: e, animate: n }), [r(e), r(n)]);
|
|
8
|
-
}
|
|
9
|
-
function r(t) {
|
|
10
|
-
return Array.isArray(t) ? t.join(" ") : t;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
f as useCreateMotionContext
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isVariantLabel as t } from "../../render/utils/is-variant-label.js";
|
|
3
|
-
import { isControllingVariants as r } from "../../render/utils/is-controlling-variants.js";
|
|
4
|
-
function o(i, a) {
|
|
5
|
-
if (r(i)) {
|
|
6
|
-
const { initial: n, animate: e } = i;
|
|
7
|
-
return {
|
|
8
|
-
initial: n === !1 || t(n) ? n : void 0,
|
|
9
|
-
animate: t(e) ? e : void 0
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
return i.inherit !== !1 ? a : {};
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
o as getCurrentTreeVariants
|
|
16
|
-
};
|