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 { Feature as m } from "../motion/features/Feature.js";
|
|
3
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
4
|
-
import { hover as s } from "../../../../motion-dom/dist/es/gestures/hover.js";
|
|
5
|
-
import { extractEventInfo as u } from "../events/event-info.js";
|
|
6
|
-
import { frame as c } from "../frameloop/frame.js";
|
|
7
|
-
function i(e, t, o) {
|
|
8
|
-
const { props: r } = e;
|
|
9
|
-
e.animationState && r.whileHover && e.animationState.setActive("whileHover", o === "Start");
|
|
10
|
-
const a = "onHover" + o, n = r[a];
|
|
11
|
-
n && c.postRender(() => n(t, u(t)));
|
|
12
|
-
}
|
|
13
|
-
class l extends m {
|
|
14
|
-
mount() {
|
|
15
|
-
const { current: t } = this.node;
|
|
16
|
-
t && (this.unmount = s(t, (o) => (i(this.node, o, "Start"), (r) => i(this.node, r, "End"))));
|
|
17
|
-
}
|
|
18
|
-
unmount() {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
l as HoverGesture
|
|
23
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { secondsToMilliseconds as w, millisecondsToSeconds as S } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
4
|
-
import { isPrimaryPointer as D } from "../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
|
|
5
|
-
import { addPointerEvent as d } from "../../events/add-pointer-event.js";
|
|
6
|
-
import { extractEventInfo as T } from "../../events/event-info.js";
|
|
7
|
-
import { distance2D as W } from "../../utils/distance.js";
|
|
8
|
-
import { pipe as L } from "../../utils/pipe.js";
|
|
9
|
-
import { frameData as x, frame as U, cancelFrame as O } from "../../frameloop/frame.js";
|
|
10
|
-
class C {
|
|
11
|
-
constructor(n, o, { transformPagePoint: e, contextWindow: r, dragSnapToOrigin: h = !1 } = {}) {
|
|
12
|
-
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
13
|
-
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
14
|
-
return;
|
|
15
|
-
const i = v(this.lastMoveEventInfo, this.history), a = this.startEvent !== null, c = W(i.offset, { x: 0, y: 0 }) >= 3;
|
|
16
|
-
if (!a && !c)
|
|
17
|
-
return;
|
|
18
|
-
const { point: f } = i, { timestamp: m } = x;
|
|
19
|
-
this.history.push({ ...f, timestamp: m });
|
|
20
|
-
const { onStart: l, onMove: E } = this.handlers;
|
|
21
|
-
a || (l && l(this.lastMoveEvent, i), this.startEvent = this.lastMoveEvent), E && E(this.lastMoveEvent, i);
|
|
22
|
-
}, this.handlePointerMove = (i, a) => {
|
|
23
|
-
this.lastMoveEvent = i, this.lastMoveEventInfo = p(a, this.transformPagePoint), U.update(this.updatePoint, !0);
|
|
24
|
-
}, this.handlePointerUp = (i, a) => {
|
|
25
|
-
this.end();
|
|
26
|
-
const { onEnd: c, onSessionEnd: f, resumeAnimation: m } = this.handlers;
|
|
27
|
-
if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
28
|
-
return;
|
|
29
|
-
const l = v(i.type === "pointercancel" ? this.lastMoveEventInfo : p(a, this.transformPagePoint), this.history);
|
|
30
|
-
this.startEvent && c && c(i, l), f && f(i, l);
|
|
31
|
-
}, !D(n))
|
|
32
|
-
return;
|
|
33
|
-
this.dragSnapToOrigin = h, this.handlers = o, this.transformPagePoint = e, this.contextWindow = r || window;
|
|
34
|
-
const s = T(n), u = p(s, this.transformPagePoint), { point: g } = u, { timestamp: I } = x;
|
|
35
|
-
this.history = [{ ...g, timestamp: I }];
|
|
36
|
-
const { onSessionStart: P } = o;
|
|
37
|
-
P && P(n, v(u, this.history)), this.removeListeners = L(d(this.contextWindow, "pointermove", this.handlePointerMove), d(this.contextWindow, "pointerup", this.handlePointerUp), d(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
38
|
-
}
|
|
39
|
-
updateHandlers(n) {
|
|
40
|
-
this.handlers = n;
|
|
41
|
-
}
|
|
42
|
-
end() {
|
|
43
|
-
this.removeListeners && this.removeListeners(), O(this.updatePoint);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function p(t, n) {
|
|
47
|
-
return n ? { point: n(t.point) } : t;
|
|
48
|
-
}
|
|
49
|
-
function y(t, n) {
|
|
50
|
-
return { x: t.x - n.x, y: t.y - n.y };
|
|
51
|
-
}
|
|
52
|
-
function v({ point: t }, n) {
|
|
53
|
-
return {
|
|
54
|
-
point: t,
|
|
55
|
-
delta: y(t, M(n)),
|
|
56
|
-
offset: y(t, V(n)),
|
|
57
|
-
velocity: b(n, 0.1)
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function V(t) {
|
|
61
|
-
return t[0];
|
|
62
|
-
}
|
|
63
|
-
function M(t) {
|
|
64
|
-
return t[t.length - 1];
|
|
65
|
-
}
|
|
66
|
-
function b(t, n) {
|
|
67
|
-
if (t.length < 2)
|
|
68
|
-
return { x: 0, y: 0 };
|
|
69
|
-
let o = t.length - 1, e = null;
|
|
70
|
-
const r = M(t);
|
|
71
|
-
for (; o >= 0 && (e = t[o], !(r.timestamp - e.timestamp > w(n))); )
|
|
72
|
-
o--;
|
|
73
|
-
if (!e)
|
|
74
|
-
return { x: 0, y: 0 };
|
|
75
|
-
const h = S(r.timestamp - e.timestamp);
|
|
76
|
-
if (h === 0)
|
|
77
|
-
return { x: 0, y: 0 };
|
|
78
|
-
const s = {
|
|
79
|
-
x: (r.x - e.x) / h,
|
|
80
|
-
y: (r.y - e.y) / h
|
|
81
|
-
};
|
|
82
|
-
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
C as PanSession
|
|
86
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { PanSession as m } from "./PanSession.js";
|
|
3
|
-
import { addPointerEvent as P } from "../../events/add-pointer-event.js";
|
|
4
|
-
import { Feature as p } from "../../motion/features/Feature.js";
|
|
5
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
6
|
-
import { noop as h } from "../../../../../motion-utils/dist/es/noop.js";
|
|
7
|
-
import { getContextWindow as u } from "../../utils/get-context-window.js";
|
|
8
|
-
import { frame as r } from "../../frameloop/frame.js";
|
|
9
|
-
const s = (e) => (n, t) => {
|
|
10
|
-
e && r.postRender(() => e(n, t));
|
|
11
|
-
};
|
|
12
|
-
class D extends p {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments), this.removePointerDownListener = h;
|
|
15
|
-
}
|
|
16
|
-
onPointerDown(n) {
|
|
17
|
-
this.session = new m(n, this.createPanHandlers(), {
|
|
18
|
-
transformPagePoint: this.node.getTransformPagePoint(),
|
|
19
|
-
contextWindow: u(this.node)
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
createPanHandlers() {
|
|
23
|
-
const { onPanSessionStart: n, onPanStart: t, onPan: i, onPanEnd: o } = this.node.getProps();
|
|
24
|
-
return {
|
|
25
|
-
onSessionStart: s(n),
|
|
26
|
-
onStart: s(t),
|
|
27
|
-
onMove: i,
|
|
28
|
-
onEnd: (a, d) => {
|
|
29
|
-
delete this.session, o && r.postRender(() => o(a, d));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
mount() {
|
|
34
|
-
this.removePointerDownListener = P(this.node.current, "pointerdown", (n) => this.onPointerDown(n));
|
|
35
|
-
}
|
|
36
|
-
update() {
|
|
37
|
-
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
38
|
-
}
|
|
39
|
-
unmount() {
|
|
40
|
-
this.removePointerDownListener(), this.session && this.session.end();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
D as PanGesture
|
|
45
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Feature as i } from "../motion/features/Feature.js";
|
|
3
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
4
|
-
import { press as m } from "../../../../motion-dom/dist/es/gestures/press/index.js";
|
|
5
|
-
import { extractEventInfo as p } from "../events/event-info.js";
|
|
6
|
-
import { frame as u } from "../frameloop/frame.js";
|
|
7
|
-
function s(n, t, e) {
|
|
8
|
-
const { props: r } = n;
|
|
9
|
-
n.animationState && r.whileTap && n.animationState.setActive("whileTap", e === "Start");
|
|
10
|
-
const o = "onTap" + (e === "End" ? "" : e), a = r[o];
|
|
11
|
-
a && u.postRender(() => a(t, p(t)));
|
|
12
|
-
}
|
|
13
|
-
class T extends i {
|
|
14
|
-
mount() {
|
|
15
|
-
const { current: t } = this.node;
|
|
16
|
-
t && (this.unmount = m(t, (e) => (s(this.node, e, "Start"), (r, { success: o }) => s(this.node, r, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
17
|
-
}
|
|
18
|
-
unmount() {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
T as PressGesture
|
|
23
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Feature as s } from "../Feature.js";
|
|
3
|
-
let o = 0;
|
|
4
|
-
class a extends s {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments), this.id = o++;
|
|
7
|
-
}
|
|
8
|
-
update() {
|
|
9
|
-
if (!this.node.presenceContext)
|
|
10
|
-
return;
|
|
11
|
-
const { isPresent: t, onExitComplete: e } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
|
|
12
|
-
if (!this.node.animationState || t === n)
|
|
13
|
-
return;
|
|
14
|
-
const i = this.node.animationState.setActive("exit", !t);
|
|
15
|
-
e && !t && i.then(() => e(this.id));
|
|
16
|
-
}
|
|
17
|
-
mount() {
|
|
18
|
-
const { register: t } = this.node.presenceContext || {};
|
|
19
|
-
t && (this.unmount = t(this.id));
|
|
20
|
-
}
|
|
21
|
-
unmount() {
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
a as ExitAnimationFeature
|
|
26
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isAnimationControls as n } from "../../../animation/utils/is-animation-controls.js";
|
|
3
|
-
import { createAnimationState as o } from "../../../render/utils/animation-state.js";
|
|
4
|
-
import { Feature as s } from "../Feature.js";
|
|
5
|
-
class u extends s {
|
|
6
|
-
/**
|
|
7
|
-
* We dynamically generate the AnimationState manager as it contains a reference
|
|
8
|
-
* to the underlying animation library. We only want to load that if we load this,
|
|
9
|
-
* so people can optionally code split it out using the `m` component.
|
|
10
|
-
*/
|
|
11
|
-
constructor(t) {
|
|
12
|
-
super(t), t.animationState || (t.animationState = o(t));
|
|
13
|
-
}
|
|
14
|
-
updateAnimationControlsSubscription() {
|
|
15
|
-
const { animate: t } = this.node.getProps();
|
|
16
|
-
n(t) && (this.unmountControls = t.subscribe(this.node));
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
20
|
-
*/
|
|
21
|
-
mount() {
|
|
22
|
-
this.updateAnimationControlsSubscription();
|
|
23
|
-
}
|
|
24
|
-
update() {
|
|
25
|
-
const { animate: t } = this.node.getProps(), { animate: i } = this.node.prevProps || {};
|
|
26
|
-
t !== i && this.updateAnimationControlsSubscription();
|
|
27
|
-
}
|
|
28
|
-
unmount() {
|
|
29
|
-
var t;
|
|
30
|
-
this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
u as AnimationFeature
|
|
35
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { AnimationFeature as t } from "./animation/index.js";
|
|
3
|
-
import { ExitAnimationFeature as i } from "./animation/exit.js";
|
|
4
|
-
const n = {
|
|
5
|
-
animation: {
|
|
6
|
-
Feature: t
|
|
7
|
-
},
|
|
8
|
-
exit: {
|
|
9
|
-
Feature: i
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
n as animations
|
|
14
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const n = {
|
|
3
|
-
animation: [
|
|
4
|
-
"animate",
|
|
5
|
-
"variants",
|
|
6
|
-
"whileHover",
|
|
7
|
-
"whileTap",
|
|
8
|
-
"exit",
|
|
9
|
-
"whileInView",
|
|
10
|
-
"whileFocus",
|
|
11
|
-
"whileDrag"
|
|
12
|
-
],
|
|
13
|
-
exit: ["exit"],
|
|
14
|
-
drag: ["drag", "dragControls"],
|
|
15
|
-
focus: ["whileFocus"],
|
|
16
|
-
hover: ["whileHover", "onHoverStart", "onHoverEnd"],
|
|
17
|
-
tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
|
|
18
|
-
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
19
|
-
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
20
|
-
layout: ["layout", "layoutId"]
|
|
21
|
-
}, t = {};
|
|
22
|
-
for (const e in n)
|
|
23
|
-
t[e] = {
|
|
24
|
-
isEnabled: (o) => n[e].some((a) => !!o[a])
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
t as featureDefinitions
|
|
28
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { DragGesture as r } from "../../gestures/drag/index.js";
|
|
3
|
-
import { PanGesture as e } from "../../gestures/pan/index.js";
|
|
4
|
-
import { MeasureLayout as o } from "./layout/MeasureLayout.js";
|
|
5
|
-
import { HTMLProjectionNode as t } from "../../projection/node/HTMLProjectionNode.js";
|
|
6
|
-
const n = {
|
|
7
|
-
pan: {
|
|
8
|
-
Feature: e
|
|
9
|
-
},
|
|
10
|
-
drag: {
|
|
11
|
-
Feature: r,
|
|
12
|
-
ProjectionNode: t,
|
|
13
|
-
MeasureLayout: o
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
n as drag
|
|
18
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { HoverGesture as e } from "../../gestures/hover.js";
|
|
3
|
-
import { FocusGesture as r } from "../../gestures/focus.js";
|
|
4
|
-
import { PressGesture as t } from "../../gestures/press.js";
|
|
5
|
-
import { InViewFeature as o } from "./viewport/index.js";
|
|
6
|
-
const a = {
|
|
7
|
-
inView: {
|
|
8
|
-
Feature: o
|
|
9
|
-
},
|
|
10
|
-
tap: {
|
|
11
|
-
Feature: t
|
|
12
|
-
},
|
|
13
|
-
focus: {
|
|
14
|
-
Feature: r
|
|
15
|
-
},
|
|
16
|
-
hover: {
|
|
17
|
-
Feature: e
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
a as gestureAnimations
|
|
22
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as m } from "../../../../../../../_virtual/jsx-runtime.js";
|
|
3
|
-
import { useContext as u, Component as d } from "react";
|
|
4
|
-
import { usePresence as c } from "../../../components/AnimatePresence/use-presence.js";
|
|
5
|
-
import { LayoutGroupContext as f } from "../../../context/LayoutGroupContext.js";
|
|
6
|
-
import { SwitchLayoutGroupContext as l } from "../../../context/SwitchLayoutGroupContext.js";
|
|
7
|
-
import { globalProjectionState as h } from "../../../projection/node/state.js";
|
|
8
|
-
import { correctBorderRadius as n } from "../../../projection/styles/scale-border-radius.js";
|
|
9
|
-
import { correctBoxShadow as R } from "../../../projection/styles/scale-box-shadow.js";
|
|
10
|
-
import { addScaleCorrector as g } from "../../../projection/styles/scale-correction.js";
|
|
11
|
-
import { microtask as y } from "../../../frameloop/microtask.js";
|
|
12
|
-
import { frame as v } from "../../../frameloop/frame.js";
|
|
13
|
-
class T extends d {
|
|
14
|
-
/**
|
|
15
|
-
* This only mounts projection nodes for components that
|
|
16
|
-
* need measuring, we might want to do it for all components
|
|
17
|
-
* in order to incorporate transforms
|
|
18
|
-
*/
|
|
19
|
-
componentDidMount() {
|
|
20
|
-
const { visualElement: o, layoutGroup: e, switchLayoutGroup: t, layoutId: s } = this.props, { projection: r } = o;
|
|
21
|
-
g(x), r && (e.group && e.group.add(r), t && t.register && s && t.register(r), r.root.didUpdate(), r.addEventListener("animationComplete", () => {
|
|
22
|
-
this.safeToRemove();
|
|
23
|
-
}), r.setOptions({
|
|
24
|
-
...r.options,
|
|
25
|
-
onExitComplete: () => this.safeToRemove()
|
|
26
|
-
})), h.hasEverUpdated = !0;
|
|
27
|
-
}
|
|
28
|
-
getSnapshotBeforeUpdate(o) {
|
|
29
|
-
const { layoutDependency: e, visualElement: t, drag: s, isPresent: r } = this.props, i = t.projection;
|
|
30
|
-
return i && (i.isPresent = r, s || o.layoutDependency !== e || e === void 0 ? i.willUpdate() : this.safeToRemove(), o.isPresent !== r && (r ? i.promote() : i.relegate() || v.postRender(() => {
|
|
31
|
-
const p = i.getStack();
|
|
32
|
-
(!p || !p.members.length) && this.safeToRemove();
|
|
33
|
-
}))), null;
|
|
34
|
-
}
|
|
35
|
-
componentDidUpdate() {
|
|
36
|
-
const { projection: o } = this.props.visualElement;
|
|
37
|
-
o && (o.root.didUpdate(), y.postRender(() => {
|
|
38
|
-
!o.currentAnimation && o.isLead() && this.safeToRemove();
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
componentWillUnmount() {
|
|
42
|
-
const { visualElement: o, layoutGroup: e, switchLayoutGroup: t } = this.props, { projection: s } = o;
|
|
43
|
-
s && (s.scheduleCheckAfterUnmount(), e && e.group && e.group.remove(s), t && t.deregister && t.deregister(s));
|
|
44
|
-
}
|
|
45
|
-
safeToRemove() {
|
|
46
|
-
const { safeToRemove: o } = this.props;
|
|
47
|
-
o && o();
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function k(a) {
|
|
54
|
-
const [o, e] = c(), t = u(f);
|
|
55
|
-
return m.jsx(T, { ...a, layoutGroup: t, switchLayoutGroup: u(l), isPresent: o, safeToRemove: e });
|
|
56
|
-
}
|
|
57
|
-
const x = {
|
|
58
|
-
borderRadius: {
|
|
59
|
-
...n,
|
|
60
|
-
applyTo: [
|
|
61
|
-
"borderTopLeftRadius",
|
|
62
|
-
"borderTopRightRadius",
|
|
63
|
-
"borderBottomLeftRadius",
|
|
64
|
-
"borderBottomRightRadius"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
borderTopLeftRadius: n,
|
|
68
|
-
borderTopRightRadius: n,
|
|
69
|
-
borderBottomLeftRadius: n,
|
|
70
|
-
borderBottomRightRadius: n,
|
|
71
|
-
boxShadow: R
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
k as MeasureLayout
|
|
75
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { HTMLProjectionNode as o } from "../../projection/node/HTMLProjectionNode.js";
|
|
3
|
-
import { MeasureLayout as t } from "./layout/MeasureLayout.js";
|
|
4
|
-
const i = {
|
|
5
|
-
layout: {
|
|
6
|
-
ProjectionNode: o,
|
|
7
|
-
MeasureLayout: t
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
i as layout
|
|
12
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Feature as m } from "../Feature.js";
|
|
3
|
-
import { observeIntersection as f } from "./observers.js";
|
|
4
|
-
const w = {
|
|
5
|
-
some: 0,
|
|
6
|
-
all: 1
|
|
7
|
-
};
|
|
8
|
-
class v extends m {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
11
|
-
}
|
|
12
|
-
startObserver() {
|
|
13
|
-
this.unmount();
|
|
14
|
-
const { viewport: n = {} } = this.node.getProps(), { root: t, margin: r, amount: s = "some", once: h } = n, u = {
|
|
15
|
-
root: t ? t.current : void 0,
|
|
16
|
-
rootMargin: r,
|
|
17
|
-
threshold: typeof s == "number" ? s : w[s]
|
|
18
|
-
}, c = (i) => {
|
|
19
|
-
const { isIntersecting: e } = i;
|
|
20
|
-
if (this.isInView === e || (this.isInView = e, h && !e && this.hasEnteredView))
|
|
21
|
-
return;
|
|
22
|
-
e && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", e);
|
|
23
|
-
const { onViewportEnter: p, onViewportLeave: d } = this.node.getProps(), a = e ? p : d;
|
|
24
|
-
a && a(i);
|
|
25
|
-
};
|
|
26
|
-
return f(this.node.current, u, c);
|
|
27
|
-
}
|
|
28
|
-
mount() {
|
|
29
|
-
this.startObserver();
|
|
30
|
-
}
|
|
31
|
-
update() {
|
|
32
|
-
if (typeof IntersectionObserver > "u")
|
|
33
|
-
return;
|
|
34
|
-
const { props: n, prevProps: t } = this.node;
|
|
35
|
-
["amount", "margin", "root"].some(l(n, t)) && this.startObserver();
|
|
36
|
-
}
|
|
37
|
-
unmount() {
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function l({ viewport: o = {} }, { viewport: n = {} } = {}) {
|
|
41
|
-
return (t) => o[t] !== n[t];
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
v as InViewFeature
|
|
45
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const c = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), a = (e) => {
|
|
3
|
-
const r = c.get(e.target);
|
|
4
|
-
r && r(e);
|
|
5
|
-
}, b = (e) => {
|
|
6
|
-
e.forEach(a);
|
|
7
|
-
};
|
|
8
|
-
function i({ root: e, ...r }) {
|
|
9
|
-
const t = e || document;
|
|
10
|
-
n.has(t) || n.set(t, {});
|
|
11
|
-
const s = n.get(t), o = JSON.stringify(r);
|
|
12
|
-
return s[o] || (s[o] = new IntersectionObserver(b, { root: e, ...r })), s[o];
|
|
13
|
-
}
|
|
14
|
-
function v(e, r, t) {
|
|
15
|
-
const s = i(r);
|
|
16
|
-
return c.set(e, t), s.observe(e), () => {
|
|
17
|
-
c.delete(e), s.unobserve(e);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
v as observeIntersection
|
|
22
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as M } from "../../../../../_virtual/jsx-runtime.js";
|
|
3
|
-
import { warning as E, invariant as g } from "../../../../motion-utils/dist/es/errors.js";
|
|
4
|
-
import { forwardRef as j, useContext as d } from "react";
|
|
5
|
-
import { LayoutGroupContext as L } from "../context/LayoutGroupContext.js";
|
|
6
|
-
import { LazyContext as N } from "../context/LazyContext.js";
|
|
7
|
-
import { MotionConfigContext as P } from "../context/MotionConfigContext.js";
|
|
8
|
-
import { MotionContext as b } from "../context/MotionContext/index.js";
|
|
9
|
-
import { useCreateMotionContext as w } from "../context/MotionContext/create.js";
|
|
10
|
-
import { isBrowser as C } from "../utils/is-browser.js";
|
|
11
|
-
import { featureDefinitions as S } from "./features/definitions.js";
|
|
12
|
-
import { loadFeatures as h } from "./features/load-features.js";
|
|
13
|
-
import { motionComponentSymbol as R } from "./utils/symbol.js";
|
|
14
|
-
import { useMotionRef as _ } from "./utils/use-motion-ref.js";
|
|
15
|
-
import { useVisualElement as k } from "./utils/use-visual-element.js";
|
|
16
|
-
function U({ preloadedFeatures: o, createVisualElement: t, useRender: e, useVisualState: n, Component: i }) {
|
|
17
|
-
var u, m;
|
|
18
|
-
o && h(o);
|
|
19
|
-
function v(a, x) {
|
|
20
|
-
let c;
|
|
21
|
-
const s = {
|
|
22
|
-
...d(P),
|
|
23
|
-
...a,
|
|
24
|
-
layoutId: z(a)
|
|
25
|
-
}, { isStatic: l } = s, r = w(a), f = n(a, l);
|
|
26
|
-
if (!l && C) {
|
|
27
|
-
D(s, o);
|
|
28
|
-
const p = G(s);
|
|
29
|
-
c = p.MeasureLayout, r.visualElement = k(i, f, s, t, p.ProjectionNode);
|
|
30
|
-
}
|
|
31
|
-
return M.jsxs(b.Provider, { value: r, children: [c && r.visualElement ? M.jsx(c, { visualElement: r.visualElement, ...s }) : null, e(i, a, _(f, r.visualElement, x), f, l, r.visualElement)] });
|
|
32
|
-
}
|
|
33
|
-
v.displayName = `motion.${typeof i == "string" ? i : `create(${(m = (u = i.displayName) !== null && u !== void 0 ? u : i.name) !== null && m !== void 0 ? m : ""})`}`;
|
|
34
|
-
const y = j(v);
|
|
35
|
-
return y[R] = i, y;
|
|
36
|
-
}
|
|
37
|
-
function z({ layoutId: o }) {
|
|
38
|
-
const t = d(L).id;
|
|
39
|
-
return t && o !== void 0 ? t + "-" + o : o;
|
|
40
|
-
}
|
|
41
|
-
function D(o, t) {
|
|
42
|
-
const e = d(N).strict;
|
|
43
|
-
if (process.env.NODE_ENV !== "production" && t && e) {
|
|
44
|
-
const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
45
|
-
o.ignoreStrict ? E(!1, n) : g(!1, n);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function G(o) {
|
|
49
|
-
const { drag: t, layout: e } = S;
|
|
50
|
-
if (!t && !e)
|
|
51
|
-
return {};
|
|
52
|
-
const n = { ...t, ...e };
|
|
53
|
-
return {
|
|
54
|
-
MeasureLayout: t != null && t.isEnabled(o) || e != null && e.isEnabled(o) ? n.MeasureLayout : void 0,
|
|
55
|
-
ProjectionNode: n.ProjectionNode
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
U as createRendererMotionComponent
|
|
60
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { scaleCorrectors as i } from "../../projection/styles/scale-correction.js";
|
|
3
|
-
import { transformProps as n } from "../../render/html/utils/keys-transform.js";
|
|
4
|
-
function a(r, { layout: o, layoutId: t }) {
|
|
5
|
-
return n.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!i[r] || r === "opacity");
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
a as isForcedMotionValue
|
|
9
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useCallback as i } from "react";
|
|
3
|
-
import { isRefObject as p } from "../../utils/is-ref-object.js";
|
|
4
|
-
function b(r, u, f) {
|
|
5
|
-
return i(
|
|
6
|
-
(o) => {
|
|
7
|
-
o && r.onMount && r.onMount(o), u && (o ? u.mount(o) : u.unmount()), f && (typeof f == "function" ? f(o) : p(f) && (f.current = o));
|
|
8
|
-
},
|
|
9
|
-
/**
|
|
10
|
-
* Only pass a new ref callback to React if we've received a visual element
|
|
11
|
-
* factory. Otherwise we'll be mounting/remounting every time externalRef
|
|
12
|
-
* or other dependencies change.
|
|
13
|
-
*/
|
|
14
|
-
[u]
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
b as useMotionRef
|
|
19
|
-
};
|