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,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { cubicBezier as r } from "./cubic-bezier.js";
|
|
3
|
-
import { mirrorEasing as o } from "./modifiers/mirror.js";
|
|
4
|
-
import { reverseEasing as t } from "./modifiers/reverse.js";
|
|
5
|
-
const c = /* @__PURE__ */ r(0.33, 1.53, 0.69, 0.99), i = /* @__PURE__ */ t(c), s = /* @__PURE__ */ o(i);
|
|
6
|
-
export {
|
|
7
|
-
i as backIn,
|
|
8
|
-
s as backInOut,
|
|
9
|
-
c as backOut
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { mirrorEasing as t } from "./modifiers/mirror.js";
|
|
3
|
-
import { reverseEasing as i } from "./modifiers/reverse.js";
|
|
4
|
-
const r = (c) => 1 - Math.sin(Math.acos(c)), s = i(r), e = t(r);
|
|
5
|
-
export {
|
|
6
|
-
r as circIn,
|
|
7
|
-
e as circInOut,
|
|
8
|
-
s as circOut
|
|
9
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as b } from "../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
const s = (n, i, r) => (((1 - 3 * r + 3 * i) * n + (3 * r - 6 * i)) * n + 3 * i) * n, f = 1e-7, l = 12;
|
|
5
|
-
function a(n, i, r, c, o) {
|
|
6
|
-
let e, t, u = 0;
|
|
7
|
-
do
|
|
8
|
-
t = i + (r - i) / 2, e = s(t, c, o) - n, e > 0 ? r = t : i = t;
|
|
9
|
-
while (Math.abs(e) > f && ++u < l);
|
|
10
|
-
return t;
|
|
11
|
-
}
|
|
12
|
-
function h(n, i, r, c) {
|
|
13
|
-
if (n === i && r === c)
|
|
14
|
-
return b;
|
|
15
|
-
const o = (e) => a(e, 0, 1, n, r);
|
|
16
|
-
return (e) => e === 0 || e === 1 ? e : s(o(e), i, c);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
h as cubicBezier
|
|
20
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { invariant as e } from "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as i } from "../../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
import { isBezierDefinition as u } from "../../../../../motion-dom/dist/es/utils/is-bezier-definition.js";
|
|
5
|
-
import { anticipate as m } from "../anticipate.js";
|
|
6
|
-
import { backOut as s, backInOut as p, backIn as f } from "../back.js";
|
|
7
|
-
import { circOut as l, circInOut as I, circIn as b } from "../circ.js";
|
|
8
|
-
import { cubicBezier as O } from "../cubic-bezier.js";
|
|
9
|
-
import { easeOut as g, easeInOut as y, easeIn as k } from "../ease.js";
|
|
10
|
-
const t = {
|
|
11
|
-
linear: i,
|
|
12
|
-
easeIn: k,
|
|
13
|
-
easeInOut: y,
|
|
14
|
-
easeOut: g,
|
|
15
|
-
circIn: b,
|
|
16
|
-
circInOut: I,
|
|
17
|
-
circOut: l,
|
|
18
|
-
backIn: f,
|
|
19
|
-
backInOut: p,
|
|
20
|
-
backOut: s,
|
|
21
|
-
anticipate: m
|
|
22
|
-
}, L = (r) => {
|
|
23
|
-
if (u(r)) {
|
|
24
|
-
e(r.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
25
|
-
const [o, n, a, c] = r;
|
|
26
|
-
return O(o, n, a, c);
|
|
27
|
-
} else if (typeof r == "string")
|
|
28
|
-
return e(t[r] !== void 0, `Invalid easing type '${r}'`), t[r];
|
|
29
|
-
return r;
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
L as easingDefinitionToFunction
|
|
33
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { isPrimaryPointer as t } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
|
|
4
|
-
function i(r) {
|
|
5
|
-
return {
|
|
6
|
-
point: {
|
|
7
|
-
x: r.pageX,
|
|
8
|
-
y: r.pageY
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const a = (r) => (o) => t(o) && r(o, i(o));
|
|
13
|
-
export {
|
|
14
|
-
a as addPointerInfo,
|
|
15
|
-
i as extractEventInfo
|
|
16
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createRenderStep as E } from "./render-step.js";
|
|
3
|
-
const a = [
|
|
4
|
-
"read",
|
|
5
|
-
// Read
|
|
6
|
-
"resolveKeyframes",
|
|
7
|
-
// Write/Read/Write/Read
|
|
8
|
-
"update",
|
|
9
|
-
// Compute
|
|
10
|
-
"preRender",
|
|
11
|
-
// Compute
|
|
12
|
-
"render",
|
|
13
|
-
// Write
|
|
14
|
-
"postRender"
|
|
15
|
-
// Compute
|
|
16
|
-
], F = 40;
|
|
17
|
-
function B(o, l) {
|
|
18
|
-
let t = !1, c = !0;
|
|
19
|
-
const e = {
|
|
20
|
-
delta: 0,
|
|
21
|
-
timestamp: 0,
|
|
22
|
-
isProcessing: !1
|
|
23
|
-
}, d = () => t = !0, n = a.reduce((s, r) => (s[r] = E(d), s), {}), { read: u, resolveKeyframes: i, update: f, preRender: m, render: R, postRender: g } = n, p = () => {
|
|
24
|
-
const s = performance.now();
|
|
25
|
-
t = !1, e.delta = c ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, F), 1), e.timestamp = s, e.isProcessing = !0, u.process(e), i.process(e), f.process(e), m.process(e), R.process(e), g.process(e), e.isProcessing = !1, t && l && (c = !1, o(p));
|
|
26
|
-
}, h = () => {
|
|
27
|
-
t = !0, c = !0, e.isProcessing || o(p);
|
|
28
|
-
};
|
|
29
|
-
return { schedule: a.reduce((s, r) => {
|
|
30
|
-
const x = n[r];
|
|
31
|
-
return s[r] = (P, v = !1, w = !1) => (t || h(), x.schedule(P, v, w)), s;
|
|
32
|
-
}, {}), cancel: (s) => {
|
|
33
|
-
for (let r = 0; r < a.length; r++)
|
|
34
|
-
n[a[r]].cancel(s);
|
|
35
|
-
}, state: e, steps: n };
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
B as createRenderBatcher,
|
|
39
|
-
a as stepsOrder
|
|
40
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as e } from "../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
import { createRenderBatcher as t } from "./batcher.js";
|
|
5
|
-
const { schedule: n, cancel: o, state: c, steps: i } = t(typeof requestAnimationFrame < "u" ? requestAnimationFrame : e, !0);
|
|
6
|
-
export {
|
|
7
|
-
o as cancelFrame,
|
|
8
|
-
n as frame,
|
|
9
|
-
c as frameData,
|
|
10
|
-
i as frameSteps
|
|
11
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function m(u) {
|
|
3
|
-
let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
|
|
4
|
-
const a = /* @__PURE__ */ new WeakSet();
|
|
5
|
-
let f = {
|
|
6
|
-
delta: 0,
|
|
7
|
-
timestamp: 0,
|
|
8
|
-
isProcessing: !1
|
|
9
|
-
};
|
|
10
|
-
function d(e) {
|
|
11
|
-
a.has(e) && (i.schedule(e), u()), e(f);
|
|
12
|
-
}
|
|
13
|
-
const i = {
|
|
14
|
-
/**
|
|
15
|
-
* Schedule a process to run on the next frame.
|
|
16
|
-
*/
|
|
17
|
-
schedule: (e, l = !1, c = !1) => {
|
|
18
|
-
const o = c && r ? t : s;
|
|
19
|
-
return l && a.add(e), o.has(e) || o.add(e), e;
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* Cancel the provided callback from running on the next frame.
|
|
23
|
-
*/
|
|
24
|
-
cancel: (e) => {
|
|
25
|
-
s.delete(e), a.delete(e);
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Execute all schedule callbacks.
|
|
29
|
-
*/
|
|
30
|
-
process: (e) => {
|
|
31
|
-
if (f = e, r) {
|
|
32
|
-
n = !0;
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
r = !0, [t, s] = [s, t], t.forEach(d), t.clear(), r = !1, n && (n = !1, i.process(e));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return i;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
m as createRenderStep
|
|
42
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { MotionGlobalConfig as o } from "../utils/GlobalConfig.js";
|
|
3
|
-
import { frameData as n } from "./frame.js";
|
|
4
|
-
let e;
|
|
5
|
-
function t() {
|
|
6
|
-
e = void 0;
|
|
7
|
-
}
|
|
8
|
-
const r = {
|
|
9
|
-
now: () => (e === void 0 && r.set(n.isProcessing || o.useManualTiming ? n.timestamp : performance.now()), e),
|
|
10
|
-
set: (i) => {
|
|
11
|
-
e = i, queueMicrotask(t);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
r as time
|
|
16
|
-
};
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { invariant as L } from "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { setDragLock as M } from "../../../../../motion-dom/dist/es/gestures/drag/state/set-active.js";
|
|
4
|
-
import { PanSession as S } from "../pan/PanSession.js";
|
|
5
|
-
import { isRefObject as D } from "../../utils/is-ref-object.js";
|
|
6
|
-
import { addPointerEvent as B } from "../../events/add-pointer-event.js";
|
|
7
|
-
import { applyConstraints as k, calcRelativeConstraints as j, resolveDragElastic as T, calcViewportConstraints as w, defaultElastic as b, rebaseAxisConstraints as R, calcOrigin as W } from "./utils/constraints.js";
|
|
8
|
-
import { createBox as _ } from "../../projection/geometry/models.js";
|
|
9
|
-
import { eachAxis as u } from "../../projection/utils/each-axis.js";
|
|
10
|
-
import { measurePageBox as O } from "../../projection/utils/measure.js";
|
|
11
|
-
import { extractEventInfo as U } from "../../events/event-info.js";
|
|
12
|
-
import { convertBoxToBoundingBox as z, convertBoundingBoxToBox as I } from "../../projection/geometry/conversion.js";
|
|
13
|
-
import { addDomEvent as F } from "../../events/add-dom-event.js";
|
|
14
|
-
import { calcLength as K } from "../../projection/geometry/delta-calc.js";
|
|
15
|
-
import { mixNumber as V } from "../../utils/mix/number.js";
|
|
16
|
-
import { percent as N } from "../../value/types/numbers/units.js";
|
|
17
|
-
import { animateMotionValue as $ } from "../../animation/interfaces/motion-value.js";
|
|
18
|
-
import { getContextWindow as q } from "../../utils/get-context-window.js";
|
|
19
|
-
import { addValueToWillChange as x } from "../../value/use-will-change/add-will-change.js";
|
|
20
|
-
import { frame as C } from "../../frameloop/frame.js";
|
|
21
|
-
const G = /* @__PURE__ */ new WeakMap();
|
|
22
|
-
class ft {
|
|
23
|
-
constructor(t) {
|
|
24
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = _(), this.visualElement = t;
|
|
25
|
-
}
|
|
26
|
-
start(t, { snapToCursor: s = !1 } = {}) {
|
|
27
|
-
const { presenceContext: i } = this.visualElement;
|
|
28
|
-
if (i && i.isPresent === !1)
|
|
29
|
-
return;
|
|
30
|
-
const n = (o) => {
|
|
31
|
-
const { dragSnapToOrigin: a } = this.getProps();
|
|
32
|
-
a ? this.pauseAnimation() : this.stopAnimation(), s && this.snapToCursor(U(o).point);
|
|
33
|
-
}, r = (o, a) => {
|
|
34
|
-
const { drag: f, dragPropagation: d, onDragStart: g } = this.getProps();
|
|
35
|
-
if (f && !d && (this.openDragLock && this.openDragLock(), this.openDragLock = M(f), !this.openDragLock))
|
|
36
|
-
return;
|
|
37
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), u((m) => {
|
|
38
|
-
let E = this.getAxisMotionValue(m).get() || 0;
|
|
39
|
-
if (N.test(E)) {
|
|
40
|
-
const { projection: A } = this.visualElement;
|
|
41
|
-
if (A && A.layout) {
|
|
42
|
-
const y = A.layout.layoutBox[m];
|
|
43
|
-
y && (E = K(y) * (parseFloat(E) / 100));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
this.originPoint[m] = E;
|
|
47
|
-
}), g && C.postRender(() => g(o, a)), x(this.visualElement, "transform");
|
|
48
|
-
const { animationState: v } = this.visualElement;
|
|
49
|
-
v && v.setActive("whileDrag", !0);
|
|
50
|
-
}, e = (o, a) => {
|
|
51
|
-
const { dragPropagation: f, dragDirectionLock: d, onDirectionLock: g, onDrag: v } = this.getProps();
|
|
52
|
-
if (!f && !this.openDragLock)
|
|
53
|
-
return;
|
|
54
|
-
const { offset: m } = a;
|
|
55
|
-
if (d && this.currentDirection === null) {
|
|
56
|
-
this.currentDirection = H(m), this.currentDirection !== null && g && g(this.currentDirection);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this.updateAxis("x", a.point, m), this.updateAxis("y", a.point, m), this.visualElement.render(), v && v(o, a);
|
|
60
|
-
}, l = (o, a) => this.stop(o, a), c = () => u((o) => {
|
|
61
|
-
var a;
|
|
62
|
-
return this.getAnimationState(o) === "paused" && ((a = this.getAxisMotionValue(o).animation) === null || a === void 0 ? void 0 : a.play());
|
|
63
|
-
}), { dragSnapToOrigin: h } = this.getProps();
|
|
64
|
-
this.panSession = new S(t, {
|
|
65
|
-
onSessionStart: n,
|
|
66
|
-
onStart: r,
|
|
67
|
-
onMove: e,
|
|
68
|
-
onSessionEnd: l,
|
|
69
|
-
resumeAnimation: c
|
|
70
|
-
}, {
|
|
71
|
-
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
72
|
-
dragSnapToOrigin: h,
|
|
73
|
-
contextWindow: q(this.visualElement)
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
stop(t, s) {
|
|
77
|
-
const i = this.isDragging;
|
|
78
|
-
if (this.cancel(), !i)
|
|
79
|
-
return;
|
|
80
|
-
const { velocity: n } = s;
|
|
81
|
-
this.startAnimation(n);
|
|
82
|
-
const { onDragEnd: r } = this.getProps();
|
|
83
|
-
r && C.postRender(() => r(t, s));
|
|
84
|
-
}
|
|
85
|
-
cancel() {
|
|
86
|
-
this.isDragging = !1;
|
|
87
|
-
const { projection: t, animationState: s } = this.visualElement;
|
|
88
|
-
t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;
|
|
89
|
-
const { dragPropagation: i } = this.getProps();
|
|
90
|
-
!i && this.openDragLock && (this.openDragLock(), this.openDragLock = null), s && s.setActive("whileDrag", !1);
|
|
91
|
-
}
|
|
92
|
-
updateAxis(t, s, i) {
|
|
93
|
-
const { drag: n } = this.getProps();
|
|
94
|
-
if (!i || !P(t, n, this.currentDirection))
|
|
95
|
-
return;
|
|
96
|
-
const r = this.getAxisMotionValue(t);
|
|
97
|
-
let e = this.originPoint[t] + i[t];
|
|
98
|
-
this.constraints && this.constraints[t] && (e = k(e, this.constraints[t], this.elastic[t])), r.set(e);
|
|
99
|
-
}
|
|
100
|
-
resolveConstraints() {
|
|
101
|
-
var t;
|
|
102
|
-
const { dragConstraints: s, dragElastic: i } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, r = this.constraints;
|
|
103
|
-
s && D(s) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : s && n ? this.constraints = j(n.layoutBox, s) : this.constraints = !1, this.elastic = T(i), r !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && u((e) => {
|
|
104
|
-
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = R(n.layoutBox[e], this.constraints[e]));
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
resolveRefConstraints() {
|
|
108
|
-
const { dragConstraints: t, onMeasureDragConstraints: s } = this.getProps();
|
|
109
|
-
if (!t || !D(t))
|
|
110
|
-
return !1;
|
|
111
|
-
const i = t.current;
|
|
112
|
-
L(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
113
|
-
const { projection: n } = this.visualElement;
|
|
114
|
-
if (!n || !n.layout)
|
|
115
|
-
return !1;
|
|
116
|
-
const r = O(i, n.root, this.visualElement.getTransformPagePoint());
|
|
117
|
-
let e = w(n.layout.layoutBox, r);
|
|
118
|
-
if (s) {
|
|
119
|
-
const l = s(z(e));
|
|
120
|
-
this.hasMutatedConstraints = !!l, l && (e = I(l));
|
|
121
|
-
}
|
|
122
|
-
return e;
|
|
123
|
-
}
|
|
124
|
-
startAnimation(t) {
|
|
125
|
-
const { drag: s, dragMomentum: i, dragElastic: n, dragTransition: r, dragSnapToOrigin: e, onDragTransitionEnd: l } = this.getProps(), c = this.constraints || {}, h = u((o) => {
|
|
126
|
-
if (!P(o, s, this.currentDirection))
|
|
127
|
-
return;
|
|
128
|
-
let a = c && c[o] || {};
|
|
129
|
-
e && (a = { min: 0, max: 0 });
|
|
130
|
-
const f = n ? 200 : 1e6, d = n ? 40 : 1e7, g = {
|
|
131
|
-
type: "inertia",
|
|
132
|
-
velocity: i ? t[o] : 0,
|
|
133
|
-
bounceStiffness: f,
|
|
134
|
-
bounceDamping: d,
|
|
135
|
-
timeConstant: 750,
|
|
136
|
-
restDelta: 1,
|
|
137
|
-
restSpeed: 10,
|
|
138
|
-
...r,
|
|
139
|
-
...a
|
|
140
|
-
};
|
|
141
|
-
return this.startAxisValueAnimation(o, g);
|
|
142
|
-
});
|
|
143
|
-
return Promise.all(h).then(l);
|
|
144
|
-
}
|
|
145
|
-
startAxisValueAnimation(t, s) {
|
|
146
|
-
const i = this.getAxisMotionValue(t);
|
|
147
|
-
return x(this.visualElement, t), i.start($(t, i, 0, s, this.visualElement, !1));
|
|
148
|
-
}
|
|
149
|
-
stopAnimation() {
|
|
150
|
-
u((t) => this.getAxisMotionValue(t).stop());
|
|
151
|
-
}
|
|
152
|
-
pauseAnimation() {
|
|
153
|
-
u((t) => {
|
|
154
|
-
var s;
|
|
155
|
-
return (s = this.getAxisMotionValue(t).animation) === null || s === void 0 ? void 0 : s.pause();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
getAnimationState(t) {
|
|
159
|
-
var s;
|
|
160
|
-
return (s = this.getAxisMotionValue(t).animation) === null || s === void 0 ? void 0 : s.state;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Drag works differently depending on which props are provided.
|
|
164
|
-
*
|
|
165
|
-
* - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
|
|
166
|
-
* - Otherwise, we apply the delta to the x/y motion values.
|
|
167
|
-
*/
|
|
168
|
-
getAxisMotionValue(t) {
|
|
169
|
-
const s = `_drag${t.toUpperCase()}`, i = this.visualElement.getProps(), n = i[s];
|
|
170
|
-
return n || this.visualElement.getValue(t, (i.initial ? i.initial[t] : void 0) || 0);
|
|
171
|
-
}
|
|
172
|
-
snapToCursor(t) {
|
|
173
|
-
u((s) => {
|
|
174
|
-
const { drag: i } = this.getProps();
|
|
175
|
-
if (!P(s, i, this.currentDirection))
|
|
176
|
-
return;
|
|
177
|
-
const { projection: n } = this.visualElement, r = this.getAxisMotionValue(s);
|
|
178
|
-
if (n && n.layout) {
|
|
179
|
-
const { min: e, max: l } = n.layout.layoutBox[s];
|
|
180
|
-
r.set(t[s] - V(e, l, 0.5));
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* When the viewport resizes we want to check if the measured constraints
|
|
186
|
-
* have changed and, if so, reposition the element within those new constraints
|
|
187
|
-
* relative to where it was before the resize.
|
|
188
|
-
*/
|
|
189
|
-
scalePositionWithinConstraints() {
|
|
190
|
-
if (!this.visualElement.current)
|
|
191
|
-
return;
|
|
192
|
-
const { drag: t, dragConstraints: s } = this.getProps(), { projection: i } = this.visualElement;
|
|
193
|
-
if (!D(s) || !i || !this.constraints)
|
|
194
|
-
return;
|
|
195
|
-
this.stopAnimation();
|
|
196
|
-
const n = { x: 0, y: 0 };
|
|
197
|
-
u((e) => {
|
|
198
|
-
const l = this.getAxisMotionValue(e);
|
|
199
|
-
if (l && this.constraints !== !1) {
|
|
200
|
-
const c = l.get();
|
|
201
|
-
n[e] = W({ min: c, max: c }, this.constraints[e]);
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
const { transformTemplate: r } = this.visualElement.getProps();
|
|
205
|
-
this.visualElement.current.style.transform = r ? r({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), u((e) => {
|
|
206
|
-
if (!P(e, t, null))
|
|
207
|
-
return;
|
|
208
|
-
const l = this.getAxisMotionValue(e), { min: c, max: h } = this.constraints[e];
|
|
209
|
-
l.set(V(c, h, n[e]));
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
addListeners() {
|
|
213
|
-
if (!this.visualElement.current)
|
|
214
|
-
return;
|
|
215
|
-
G.set(this.visualElement, this);
|
|
216
|
-
const t = this.visualElement.current, s = B(t, "pointerdown", (c) => {
|
|
217
|
-
const { drag: h, dragListener: o = !0 } = this.getProps();
|
|
218
|
-
h && o && this.start(c);
|
|
219
|
-
}), i = () => {
|
|
220
|
-
const { dragConstraints: c } = this.getProps();
|
|
221
|
-
D(c) && c.current && (this.constraints = this.resolveRefConstraints());
|
|
222
|
-
}, { projection: n } = this.visualElement, r = n.addEventListener("measure", i);
|
|
223
|
-
n && !n.layout && (n.root && n.root.updateScroll(), n.updateLayout()), C.read(i);
|
|
224
|
-
const e = F(window, "resize", () => this.scalePositionWithinConstraints()), l = n.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: h }) => {
|
|
225
|
-
this.isDragging && h && (u((o) => {
|
|
226
|
-
const a = this.getAxisMotionValue(o);
|
|
227
|
-
a && (this.originPoint[o] += c[o].translate, a.set(a.get() + c[o].translate));
|
|
228
|
-
}), this.visualElement.render());
|
|
229
|
-
});
|
|
230
|
-
return () => {
|
|
231
|
-
e(), s(), r(), l && l();
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
getProps() {
|
|
235
|
-
const t = this.visualElement.getProps(), { drag: s = !1, dragDirectionLock: i = !1, dragPropagation: n = !1, dragConstraints: r = !1, dragElastic: e = b, dragMomentum: l = !0 } = t;
|
|
236
|
-
return {
|
|
237
|
-
...t,
|
|
238
|
-
drag: s,
|
|
239
|
-
dragDirectionLock: i,
|
|
240
|
-
dragPropagation: n,
|
|
241
|
-
dragConstraints: r,
|
|
242
|
-
dragElastic: e,
|
|
243
|
-
dragMomentum: l
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function P(p, t, s) {
|
|
248
|
-
return (t === !0 || t === p) && (s === null || s === p);
|
|
249
|
-
}
|
|
250
|
-
function H(p, t = 10) {
|
|
251
|
-
let s = null;
|
|
252
|
-
return Math.abs(p.y) > t ? s = "y" : Math.abs(p.x) > t && (s = "x"), s;
|
|
253
|
-
}
|
|
254
|
-
export {
|
|
255
|
-
ft as VisualElementDragControls,
|
|
256
|
-
G as elementDragControls
|
|
257
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Feature as s } from "../../motion/features/Feature.js";
|
|
3
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
4
|
-
import { noop as r } from "../../../../../motion-utils/dist/es/noop.js";
|
|
5
|
-
import { VisualElementDragControls as t } from "./VisualElementDragControls.js";
|
|
6
|
-
class l extends s {
|
|
7
|
-
constructor(o) {
|
|
8
|
-
super(o), this.removeGroupControls = r, this.removeListeners = r, this.controls = new t(o);
|
|
9
|
-
}
|
|
10
|
-
mount() {
|
|
11
|
-
const { dragControls: o } = this.node.getProps();
|
|
12
|
-
o && (this.removeGroupControls = o.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || r;
|
|
13
|
-
}
|
|
14
|
-
unmount() {
|
|
15
|
-
this.removeGroupControls(), this.removeListeners();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
l as DragGesture
|
|
20
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { progress as r } from "../../../../../../motion-utils/dist/es/progress.js";
|
|
4
|
-
import { calcLength as t } from "../../../projection/geometry/delta-calc.js";
|
|
5
|
-
import { clamp as C } from "../../../utils/clamp.js";
|
|
6
|
-
import { mixNumber as u } from "../../../utils/mix/number.js";
|
|
7
|
-
function L(n, { min: e, max: m }, i) {
|
|
8
|
-
return e !== void 0 && n < e ? n = i ? u(e, n, i.min) : Math.max(n, e) : m !== void 0 && n > m && (n = i ? u(m, n, i.max) : Math.min(n, m)), n;
|
|
9
|
-
}
|
|
10
|
-
function o(n, e, m) {
|
|
11
|
-
return {
|
|
12
|
-
min: e !== void 0 ? n.min + e : void 0,
|
|
13
|
-
max: m !== void 0 ? n.max + m - (n.max - n.min) : void 0
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function w(n, { top: e, left: m, bottom: i, right: f }) {
|
|
17
|
-
return {
|
|
18
|
-
x: o(n.x, m, f),
|
|
19
|
-
y: o(n.y, e, i)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function c(n, e) {
|
|
23
|
-
let m = e.min - n.min, i = e.max - n.max;
|
|
24
|
-
return e.max - e.min < n.max - n.min && ([m, i] = [i, m]), { min: m, max: i };
|
|
25
|
-
}
|
|
26
|
-
function y(n, e) {
|
|
27
|
-
return {
|
|
28
|
-
x: c(n.x, e.x),
|
|
29
|
-
y: c(n.y, e.y)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function M(n, e) {
|
|
33
|
-
let m = 0.5;
|
|
34
|
-
const i = t(n), f = t(e);
|
|
35
|
-
return f > i ? m = r(e.min, e.max - i, n.min) : i > f && (m = r(n.min, n.max - f, e.min)), C(0, 1, m);
|
|
36
|
-
}
|
|
37
|
-
function R(n, e) {
|
|
38
|
-
const m = {};
|
|
39
|
-
return e.min !== void 0 && (m.min = e.min - n.min), e.max !== void 0 && (m.max = e.max - n.min), m;
|
|
40
|
-
}
|
|
41
|
-
const x = 0.35;
|
|
42
|
-
function V(n = x) {
|
|
43
|
-
return n === !1 ? n = 0 : n === !0 && (n = x), {
|
|
44
|
-
x: l(n, "left", "right"),
|
|
45
|
-
y: l(n, "top", "bottom")
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function l(n, e, m) {
|
|
49
|
-
return {
|
|
50
|
-
min: d(n, e),
|
|
51
|
-
max: d(n, m)
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function d(n, e) {
|
|
55
|
-
return typeof n == "number" ? n : n[e] || 0;
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
L as applyConstraints,
|
|
59
|
-
M as calcOrigin,
|
|
60
|
-
o as calcRelativeAxisConstraints,
|
|
61
|
-
w as calcRelativeConstraints,
|
|
62
|
-
c as calcViewportAxisConstraints,
|
|
63
|
-
y as calcViewportConstraints,
|
|
64
|
-
x as defaultElastic,
|
|
65
|
-
R as rebaseAxisConstraints,
|
|
66
|
-
l as resolveAxisElastic,
|
|
67
|
-
V as resolveDragElastic,
|
|
68
|
-
d as resolvePointElastic
|
|
69
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { addDomEvent as e } from "../events/add-dom-event.js";
|
|
3
|
-
import { Feature as i } from "../motion/features/Feature.js";
|
|
4
|
-
import { pipe as s } from "../utils/pipe.js";
|
|
5
|
-
class a extends i {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments), this.isActive = !1;
|
|
8
|
-
}
|
|
9
|
-
onFocus() {
|
|
10
|
-
let t = !1;
|
|
11
|
-
try {
|
|
12
|
-
t = this.node.current.matches(":focus-visible");
|
|
13
|
-
} catch {
|
|
14
|
-
t = !0;
|
|
15
|
-
}
|
|
16
|
-
!t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
17
|
-
}
|
|
18
|
-
onBlur() {
|
|
19
|
-
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
20
|
-
}
|
|
21
|
-
mount() {
|
|
22
|
-
this.unmount = s(e(this.node.current, "focus", () => this.onFocus()), e(this.node.current, "blur", () => this.onBlur()));
|
|
23
|
-
}
|
|
24
|
-
unmount() {
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
a as FocusGesture
|
|
29
|
-
};
|