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,65 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext as f, useRef as C, useInsertionEffect as j, useEffect as I } from "react";
|
|
3
|
-
import { PresenceContext as h } from "../../context/PresenceContext.js";
|
|
4
|
-
import { MotionContext as A } from "../../context/MotionContext/index.js";
|
|
5
|
-
import { useIsomorphicLayoutEffect as S } from "../../utils/use-isomorphic-effect.js";
|
|
6
|
-
import { LazyContext as b } from "../../context/LazyContext.js";
|
|
7
|
-
import { MotionConfigContext as v } from "../../context/MotionConfigContext.js";
|
|
8
|
-
import { optimizedAppearDataAttribute as L } from "../../animation/optimized-appear/data-id.js";
|
|
9
|
-
import { microtask as k } from "../../frameloop/microtask.js";
|
|
10
|
-
import { isRefObject as H } from "../../utils/is-ref-object.js";
|
|
11
|
-
import { SwitchLayoutGroupContext as R } from "../../context/SwitchLayoutGroupContext.js";
|
|
12
|
-
function J(o, u, e, i, c) {
|
|
13
|
-
var n, a;
|
|
14
|
-
const { visualElement: s } = f(A), l = f(b), r = f(h), g = f(v).reducedMotion, d = C(null);
|
|
15
|
-
i = i || l.renderer, !d.current && i && (d.current = i(o, {
|
|
16
|
-
visualState: u,
|
|
17
|
-
parent: s,
|
|
18
|
-
props: e,
|
|
19
|
-
presenceContext: r,
|
|
20
|
-
blockInitialAnimation: r ? r.initial === !1 : !1,
|
|
21
|
-
reducedMotionConfig: g
|
|
22
|
-
}));
|
|
23
|
-
const t = d.current, x = f(R);
|
|
24
|
-
t && !t.projection && c && (t.type === "html" || t.type === "svg") && z(d.current, e, c, x);
|
|
25
|
-
const y = C(!1);
|
|
26
|
-
j(() => {
|
|
27
|
-
t && y.current && t.update(e, r);
|
|
28
|
-
});
|
|
29
|
-
const m = e[L], p = C(!!m && !(!((n = window.MotionHandoffIsComplete) === null || n === void 0) && n.call(window, m)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, m)));
|
|
30
|
-
return S(() => {
|
|
31
|
-
t && (y.current = !0, window.MotionIsMounted = !0, t.updateFeatures(), k.render(t.render), p.current && t.animationState && t.animationState.animateChanges());
|
|
32
|
-
}), I(() => {
|
|
33
|
-
t && (!p.current && t.animationState && t.animationState.animateChanges(), p.current && (queueMicrotask(() => {
|
|
34
|
-
var w;
|
|
35
|
-
(w = window.MotionHandoffMarkAsComplete) === null || w === void 0 || w.call(window, m);
|
|
36
|
-
}), p.current = !1));
|
|
37
|
-
}), t;
|
|
38
|
-
}
|
|
39
|
-
function z(o, u, e, i) {
|
|
40
|
-
const { layoutId: c, layout: n, drag: a, dragConstraints: s, layoutScroll: l, layoutRoot: r } = u;
|
|
41
|
-
o.projection = new e(o.latestValues, u["data-framer-portal-id"] ? void 0 : M(o.parent)), o.projection.setOptions({
|
|
42
|
-
layoutId: c,
|
|
43
|
-
layout: n,
|
|
44
|
-
alwaysMeasureLayout: !!a || s && H(s),
|
|
45
|
-
visualElement: o,
|
|
46
|
-
/**
|
|
47
|
-
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
48
|
-
* to update by the time layout animations run.
|
|
49
|
-
* We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
|
|
50
|
-
* ensuring it gets called if there's no potential layout animations.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
animationType: typeof n == "string" ? n : "both",
|
|
54
|
-
initialPromotionConfig: i,
|
|
55
|
-
layoutScroll: l,
|
|
56
|
-
layoutRoot: r
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function M(o) {
|
|
60
|
-
if (o)
|
|
61
|
-
return o.options.allowProjection !== !1 ? o.projection : M(o.parent);
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
J as useVisualElement
|
|
65
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext as C } from "react";
|
|
3
|
-
import { isAnimationControls as x } from "../../animation/utils/is-animation-controls.js";
|
|
4
|
-
import { MotionContext as S } from "../../context/MotionContext/index.js";
|
|
5
|
-
import { PresenceContext as h } from "../../context/PresenceContext.js";
|
|
6
|
-
import { isControllingVariants as M, isVariantNode as N } from "../../render/utils/is-controlling-variants.js";
|
|
7
|
-
import { resolveVariantFromProps as P } from "../../render/utils/resolve-variants.js";
|
|
8
|
-
import { useConstant as T } from "../../utils/use-constant.js";
|
|
9
|
-
import { resolveMotionValue as $ } from "../../value/utils/resolve-motion-value.js";
|
|
10
|
-
function b({ scrapeMotionValuesFromProps: t, createRenderState: o, onUpdate: i }, s, e, r) {
|
|
11
|
-
const n = {
|
|
12
|
-
latestValues: B(s, e, r, t),
|
|
13
|
-
renderState: o()
|
|
14
|
-
};
|
|
15
|
-
return i && (n.onMount = (a) => i({ props: s, current: a, ...n }), n.onUpdate = (a) => i(a)), n;
|
|
16
|
-
}
|
|
17
|
-
const G = (t) => (o, i) => {
|
|
18
|
-
const s = C(S), e = C(h), r = () => b(t, o, s, e);
|
|
19
|
-
return i ? r() : T(r);
|
|
20
|
-
};
|
|
21
|
-
function B(t, o, i, s) {
|
|
22
|
-
const e = {}, r = s(t, {});
|
|
23
|
-
for (const m in r)
|
|
24
|
-
e[m] = $(r[m]);
|
|
25
|
-
let { initial: n, animate: a } = t;
|
|
26
|
-
const g = M(t), v = N(t);
|
|
27
|
-
o && v && !g && t.inherit !== !1 && (n === void 0 && (n = o.initial), a === void 0 && (a = o.animate));
|
|
28
|
-
let u = i ? i.initial === !1 : !1;
|
|
29
|
-
u = u || n === !1;
|
|
30
|
-
const l = u ? a : n;
|
|
31
|
-
if (l && typeof l != "boolean" && !x(l)) {
|
|
32
|
-
const m = Array.isArray(l) ? l : [l];
|
|
33
|
-
for (let d = 0; d < m.length; d++) {
|
|
34
|
-
const V = P(t, m[d]);
|
|
35
|
-
if (V) {
|
|
36
|
-
const { transitionEnd: k, transition: E, ...y } = V;
|
|
37
|
-
for (const c in y) {
|
|
38
|
-
let f = y[c];
|
|
39
|
-
if (Array.isArray(f)) {
|
|
40
|
-
const A = u ? f.length - 1 : 0;
|
|
41
|
-
f = f[A];
|
|
42
|
-
}
|
|
43
|
-
f !== null && (e[c] = f);
|
|
44
|
-
}
|
|
45
|
-
for (const c in k)
|
|
46
|
-
e[c] = k[c];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return e;
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
G as makeUseVisualState
|
|
54
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const a = /* @__PURE__ */ new Set([
|
|
3
|
-
"animate",
|
|
4
|
-
"exit",
|
|
5
|
-
"variants",
|
|
6
|
-
"initial",
|
|
7
|
-
"style",
|
|
8
|
-
"values",
|
|
9
|
-
"variants",
|
|
10
|
-
"transition",
|
|
11
|
-
"transformTemplate",
|
|
12
|
-
"custom",
|
|
13
|
-
"inherit",
|
|
14
|
-
"onBeforeLayoutMeasure",
|
|
15
|
-
"onAnimationStart",
|
|
16
|
-
"onAnimationComplete",
|
|
17
|
-
"onUpdate",
|
|
18
|
-
"onDragStart",
|
|
19
|
-
"onDrag",
|
|
20
|
-
"onDragEnd",
|
|
21
|
-
"onMeasureDragConstraints",
|
|
22
|
-
"onDirectionLock",
|
|
23
|
-
"onDragTransitionEnd",
|
|
24
|
-
"_dragX",
|
|
25
|
-
"_dragY",
|
|
26
|
-
"onHoverStart",
|
|
27
|
-
"onHoverEnd",
|
|
28
|
-
"onViewportEnter",
|
|
29
|
-
"onViewportLeave",
|
|
30
|
-
"globalTapTarget",
|
|
31
|
-
"ignoreStrict",
|
|
32
|
-
"viewport"
|
|
33
|
-
]);
|
|
34
|
-
function n(t) {
|
|
35
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || a.has(t);
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
n as isValidMotionProp
|
|
39
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { noop as R } from "../../../../../motion-utils/dist/es/noop.js";
|
|
4
|
-
import { progress as h } from "../../../../../motion-utils/dist/es/progress.js";
|
|
5
|
-
import { circOut as B } from "../../easing/circ.js";
|
|
6
|
-
import { mixNumber as f } from "../../utils/mix/number.js";
|
|
7
|
-
import { px as L, percent as u } from "../../value/types/numbers/units.js";
|
|
8
|
-
const a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], M = a.length, p = (t) => typeof t == "string" ? parseFloat(t) : t, d = (t) => typeof t == "number" || L.test(t);
|
|
9
|
-
function $(t, i, o, e, b, x) {
|
|
10
|
-
b ? (t.opacity = f(
|
|
11
|
-
0,
|
|
12
|
-
// TODO Reinstate this if only child
|
|
13
|
-
o.opacity !== void 0 ? o.opacity : 1,
|
|
14
|
-
C(e)
|
|
15
|
-
), t.opacityExit = f(i.opacity !== void 0 ? i.opacity : 1, 0, O(e))) : x && (t.opacity = f(i.opacity !== void 0 ? i.opacity : 1, o.opacity !== void 0 ? o.opacity : 1, e));
|
|
16
|
-
for (let s = 0; s < M; s++) {
|
|
17
|
-
const c = `border${a[s]}Radius`;
|
|
18
|
-
let r = m(i, c), n = m(o, c);
|
|
19
|
-
if (r === void 0 && n === void 0)
|
|
20
|
-
continue;
|
|
21
|
-
r || (r = 0), n || (n = 0), r === 0 || n === 0 || d(r) === d(n) ? (t[c] = Math.max(f(p(r), p(n), e), 0), (u.test(n) || u.test(r)) && (t[c] += "%")) : t[c] = n;
|
|
22
|
-
}
|
|
23
|
-
(i.rotate || o.rotate) && (t.rotate = f(i.rotate || 0, o.rotate || 0, e));
|
|
24
|
-
}
|
|
25
|
-
function m(t, i) {
|
|
26
|
-
return t[i] !== void 0 ? t[i] : t.borderRadius;
|
|
27
|
-
}
|
|
28
|
-
const C = /* @__PURE__ */ y(0, 0.5, B), O = /* @__PURE__ */ y(0.5, 0.95, R);
|
|
29
|
-
function y(t, i, o) {
|
|
30
|
-
return (e) => e < t ? 0 : e > i ? 1 : o(h(t, i, e));
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
$ as mixValues
|
|
34
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function e({ top: t, left: o, right: n, bottom: x }) {
|
|
3
|
-
return {
|
|
4
|
-
x: { min: o, max: n },
|
|
5
|
-
y: { min: t, max: x }
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
function r({ x: t, y: o }) {
|
|
9
|
-
return { top: o.min, right: t.max, bottom: o.max, left: t.min };
|
|
10
|
-
}
|
|
11
|
-
function m(t, o) {
|
|
12
|
-
if (!o)
|
|
13
|
-
return t;
|
|
14
|
-
const n = o({ x: t.left, y: t.top }), x = o({ x: t.right, y: t.bottom });
|
|
15
|
-
return {
|
|
16
|
-
top: n.y,
|
|
17
|
-
left: n.x,
|
|
18
|
-
bottom: x.y,
|
|
19
|
-
right: x.x
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
e as convertBoundingBoxToBox,
|
|
24
|
-
r as convertBoxToBoundingBox,
|
|
25
|
-
m as transformBoxPoints
|
|
26
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function c(n, o) {
|
|
3
|
-
n.min = o.min, n.max = o.max;
|
|
4
|
-
}
|
|
5
|
-
function t(n, o) {
|
|
6
|
-
c(n.x, o.x), c(n.y, o.y);
|
|
7
|
-
}
|
|
8
|
-
function i(n, o) {
|
|
9
|
-
n.translate = o.translate, n.scale = o.scale, n.originPoint = o.originPoint, n.origin = o.origin;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as copyAxisDeltaInto,
|
|
13
|
-
c as copyAxisInto,
|
|
14
|
-
t as copyBoxInto
|
|
15
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { mixNumber as x } from "../../utils/mix/number.js";
|
|
3
|
-
import { hasTransform as E } from "../utils/has-transform.js";
|
|
4
|
-
function p(t, n, o) {
|
|
5
|
-
const i = t - o, s = n * i;
|
|
6
|
-
return o + s;
|
|
7
|
-
}
|
|
8
|
-
function y(t, n, o, i, s) {
|
|
9
|
-
return s !== void 0 && (t = p(t, s, i)), p(t, o, i) + n;
|
|
10
|
-
}
|
|
11
|
-
function e(t, n = 0, o = 1, i, s) {
|
|
12
|
-
t.min = y(t.min, n, o, i, s), t.max = y(t.max, n, o, i, s);
|
|
13
|
-
}
|
|
14
|
-
function _(t, { x: n, y: o }) {
|
|
15
|
-
e(t.x, n.translate, n.scale, n.originPoint), e(t.y, o.translate, o.scale, o.originPoint);
|
|
16
|
-
}
|
|
17
|
-
const m = 0.999999999999, a = 1.0000000000001;
|
|
18
|
-
function D(t, n, o, i = !1) {
|
|
19
|
-
const s = o.length;
|
|
20
|
-
if (!s)
|
|
21
|
-
return;
|
|
22
|
-
n.x = n.y = 1;
|
|
23
|
-
let l, c;
|
|
24
|
-
for (let f = 0; f < s; f++) {
|
|
25
|
-
l = o[f], c = l.projectionDelta;
|
|
26
|
-
const { visualElement: u } = l.options;
|
|
27
|
-
u && u.props.style && u.props.style.display === "contents" || (i && l.options.layoutScroll && l.scroll && l !== l.root && A(t, {
|
|
28
|
-
x: -l.scroll.offset.x,
|
|
29
|
-
y: -l.scroll.offset.y
|
|
30
|
-
}), c && (n.x *= c.x.scale, n.y *= c.y.scale, _(t, c)), i && E(l.latestValues) && A(t, l.latestValues));
|
|
31
|
-
}
|
|
32
|
-
n.x < a && n.x > m && (n.x = 1), n.y < a && n.y > m && (n.y = 1);
|
|
33
|
-
}
|
|
34
|
-
function N(t, n) {
|
|
35
|
-
t.min = t.min + n, t.max = t.max + n;
|
|
36
|
-
}
|
|
37
|
-
function r(t, n, o, i, s = 0.5) {
|
|
38
|
-
const l = x(t.min, t.max, s);
|
|
39
|
-
e(t, n, o, l, i);
|
|
40
|
-
}
|
|
41
|
-
function A(t, n) {
|
|
42
|
-
r(t.x, n.x, n.scaleX, n.scale, n.originX), r(t.y, n.y, n.scaleY, n.scale, n.originY);
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
e as applyAxisDelta,
|
|
46
|
-
_ as applyBoxDelta,
|
|
47
|
-
y as applyPointDelta,
|
|
48
|
-
D as applyTreeDeltas,
|
|
49
|
-
p as scalePoint,
|
|
50
|
-
r as transformAxis,
|
|
51
|
-
A as transformBox,
|
|
52
|
-
N as translateAxis
|
|
53
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { mixNumber as m } from "../../utils/mix/number.js";
|
|
3
|
-
const N = 1e-4, R = 1 - N, E = 1 + N, u = 0.01, S = 0 - u, a = 0 + u;
|
|
4
|
-
function s(n) {
|
|
5
|
-
return n.max - n.min;
|
|
6
|
-
}
|
|
7
|
-
function L(n, i, c) {
|
|
8
|
-
return Math.abs(n - i) <= c;
|
|
9
|
-
}
|
|
10
|
-
function x(n, i, c, o = 0.5) {
|
|
11
|
-
n.origin = o, n.originPoint = m(i.min, i.max, n.origin), n.scale = s(c) / s(i), n.translate = m(c.min, c.max, n.origin) - n.originPoint, (n.scale >= R && n.scale <= E || isNaN(n.scale)) && (n.scale = 1), (n.translate >= S && n.translate <= a || isNaN(n.translate)) && (n.translate = 0);
|
|
12
|
-
}
|
|
13
|
-
function I(n, i, c, o) {
|
|
14
|
-
x(n.x, i.x, c.x, o ? o.originX : void 0), x(n.y, i.y, c.y, o ? o.originY : void 0);
|
|
15
|
-
}
|
|
16
|
-
function A(n, i, c) {
|
|
17
|
-
n.min = c.min + i.min, n.max = n.min + s(i);
|
|
18
|
-
}
|
|
19
|
-
function P(n, i, c) {
|
|
20
|
-
A(n.x, i.x, c.x), A(n.y, i.y, c.y);
|
|
21
|
-
}
|
|
22
|
-
function f(n, i, c) {
|
|
23
|
-
n.min = i.min - c.min, n.max = n.min + s(i);
|
|
24
|
-
}
|
|
25
|
-
function T(n, i, c) {
|
|
26
|
-
f(n.x, i.x, c.x), f(n.y, i.y, c.y);
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
x as calcAxisDelta,
|
|
30
|
-
I as calcBoxDelta,
|
|
31
|
-
s as calcLength,
|
|
32
|
-
A as calcRelativeAxis,
|
|
33
|
-
f as calcRelativeAxisPosition,
|
|
34
|
-
P as calcRelativeBox,
|
|
35
|
-
T as calcRelativePosition,
|
|
36
|
-
L as isNear
|
|
37
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { mixNumber as v } from "../../utils/mix/number.js";
|
|
3
|
-
import { percent as p } from "../../value/types/numbers/units.js";
|
|
4
|
-
import { scalePoint as c } from "./delta-apply.js";
|
|
5
|
-
function r(e, m, f, n, d) {
|
|
6
|
-
return e -= m, e = c(e, 1 / f, n), d !== void 0 && (e = c(e, 1 / d, n)), e;
|
|
7
|
-
}
|
|
8
|
-
function D(e, m = 0, f = 1, n = 0.5, d, u = e, i = e) {
|
|
9
|
-
if (p.test(m) && (m = parseFloat(m), m = v(i.min, i.max, m / 100) - i.min), typeof m != "number")
|
|
10
|
-
return;
|
|
11
|
-
let y = v(u.min, u.max, n);
|
|
12
|
-
e === u && (y -= m), e.min = r(e.min, m, f, y, d), e.max = r(e.max, m, f, y, d);
|
|
13
|
-
}
|
|
14
|
-
function P(e, m, [f, n, d], u, i) {
|
|
15
|
-
D(e, m[f], m[n], m[d], m.scale, u, i);
|
|
16
|
-
}
|
|
17
|
-
const K = ["x", "scaleX", "originX"], T = ["y", "scaleY", "originY"];
|
|
18
|
-
function F(e, m, f, n) {
|
|
19
|
-
P(e.x, m, K, f ? f.x : void 0, n ? n.x : void 0), P(e.y, m, T, f ? f.y : void 0, n ? n.y : void 0);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
D as removeAxisDelta,
|
|
23
|
-
P as removeAxisTransforms,
|
|
24
|
-
F as removeBoxTransforms,
|
|
25
|
-
r as removePointDelta
|
|
26
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const e = () => ({
|
|
3
|
-
translate: 0,
|
|
4
|
-
scale: 1,
|
|
5
|
-
origin: 0,
|
|
6
|
-
originPoint: 0
|
|
7
|
-
}), a = () => ({
|
|
8
|
-
x: e(),
|
|
9
|
-
y: e()
|
|
10
|
-
}), t = () => ({ min: 0, max: 0 }), c = () => ({
|
|
11
|
-
x: t(),
|
|
12
|
-
y: t()
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
t as createAxis,
|
|
16
|
-
e as createAxisDelta,
|
|
17
|
-
c as createBox,
|
|
18
|
-
a as createDelta
|
|
19
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { calcLength as r } from "./delta-calc.js";
|
|
3
|
-
function u(n) {
|
|
4
|
-
return n.translate === 0 && n.scale === 1;
|
|
5
|
-
}
|
|
6
|
-
function a(n) {
|
|
7
|
-
return u(n.x) && u(n.y);
|
|
8
|
-
}
|
|
9
|
-
function i(n, t) {
|
|
10
|
-
return n.min === t.min && n.max === t.max;
|
|
11
|
-
}
|
|
12
|
-
function s(n, t) {
|
|
13
|
-
return i(n.x, t.x) && i(n.y, t.y);
|
|
14
|
-
}
|
|
15
|
-
function o(n, t) {
|
|
16
|
-
return Math.round(n.min) === Math.round(t.min) && Math.round(n.max) === Math.round(t.max);
|
|
17
|
-
}
|
|
18
|
-
function x(n, t) {
|
|
19
|
-
return o(n.x, t.x) && o(n.y, t.y);
|
|
20
|
-
}
|
|
21
|
-
function c(n) {
|
|
22
|
-
return r(n.x) / r(n.y);
|
|
23
|
-
}
|
|
24
|
-
function l(n, t) {
|
|
25
|
-
return n.translate === t.translate && n.scale === t.scale && n.originPoint === t.originPoint;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
c as aspectRatio,
|
|
29
|
-
l as axisDeltaEquals,
|
|
30
|
-
i as axisEquals,
|
|
31
|
-
o as axisEqualsRounded,
|
|
32
|
-
s as boxEquals,
|
|
33
|
-
x as boxEqualsRounded,
|
|
34
|
-
a as isDeltaZero
|
|
35
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createProjectionNode as t } from "./create-projection-node.js";
|
|
3
|
-
import { addDomEvent as c } from "../../events/add-dom-event.js";
|
|
4
|
-
const m = t({
|
|
5
|
-
attachResizeListener: (e, o) => c(e, "resize", o),
|
|
6
|
-
measureScroll: () => ({
|
|
7
|
-
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
8
|
-
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
9
|
-
}),
|
|
10
|
-
checkIsScrollRoot: () => !0
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
m as DocumentProjectionNode
|
|
14
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createProjectionNode as r } from "./create-projection-node.js";
|
|
3
|
-
import { DocumentProjectionNode as n } from "./DocumentProjectionNode.js";
|
|
4
|
-
const e = {
|
|
5
|
-
current: void 0
|
|
6
|
-
}, i = r({
|
|
7
|
-
measureScroll: (o) => ({
|
|
8
|
-
x: o.scrollLeft,
|
|
9
|
-
y: o.scrollTop
|
|
10
|
-
}),
|
|
11
|
-
defaultParent: () => {
|
|
12
|
-
if (!e.current) {
|
|
13
|
-
const o = new n({});
|
|
14
|
-
o.mount(window), o.setOptions({ layoutScroll: !0 }), e.current = o;
|
|
15
|
-
}
|
|
16
|
-
return e.current;
|
|
17
|
-
},
|
|
18
|
-
resetTransform: (o, t) => {
|
|
19
|
-
o.style.transform = t !== void 0 ? t : "none";
|
|
20
|
-
},
|
|
21
|
-
checkIsScrollRoot: (o) => window.getComputedStyle(o).position === "fixed"
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
i as HTMLProjectionNode,
|
|
25
|
-
e as rootProjectionNode
|
|
26
|
-
};
|