@pibit.ai/cure-design-system 0.3.6 → 0.3.8
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/foundations/dot-icon/index.d.ts +7 -0
- package/dist/foundations/dot-icon/index.d.ts.map +1 -0
- package/dist/foundations/dot-icon/index.js +10 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -36
- package/dist/patterns/table/TableWrapper.d.ts +6 -3
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +80 -76
- package/dist/patterns/table/table.d.ts +5 -3
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +195 -173
- package/dist/patterns/tree-view/index.d.ts +2 -0
- package/dist/patterns/tree-view/index.d.ts.map +1 -0
- package/dist/patterns/tree-view/tree-view.d.ts +61 -0
- package/dist/patterns/tree-view/tree-view.d.ts.map +1 -0
- package/dist/patterns/tree-view/tree-view.js +167 -0
- package/dist/primitives/badge/badge-types.d.ts +17 -0
- package/dist/primitives/badge/badge-types.d.ts.map +1 -0
- package/dist/primitives/badge/badge-types.js +8 -0
- package/dist/primitives/badge/badge.d.ts +115 -22
- package/dist/primitives/badge/badge.d.ts.map +1 -1
- package/dist/primitives/badge/badge.js +272 -38
- package/dist/primitives/badge/index.d.ts +2 -1
- package/dist/primitives/badge/index.d.ts.map +1 -1
- package/dist/primitives/heading/heading.d.ts +1 -1
- package/dist/primitives/text/text.d.ts +1 -1
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
- 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 -12
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -66
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- 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/feature-bundle.js +0 -13
- 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/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -109
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- 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 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- 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 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -215
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- package/dist/patterns/tree/TreeDemo.d.ts +0 -7
- package/dist/patterns/tree/TreeDemo.d.ts.map +0 -1
- package/dist/patterns/tree/TreeStructure.d.ts +0 -14
- package/dist/patterns/tree/TreeStructure.d.ts.map +0 -1
- package/dist/patterns/tree/TreeStructure.js +0 -110
- package/dist/patterns/tree/constants.d.ts +0 -18
- package/dist/patterns/tree/constants.d.ts.map +0 -1
- package/dist/patterns/tree/helper.d.ts +0 -6
- package/dist/patterns/tree/helper.d.ts.map +0 -1
- package/dist/patterns/tree/helper.js +0 -21
- package/dist/patterns/tree/index.d.ts +0 -4
- package/dist/patterns/tree/index.d.ts.map +0 -1
- package/dist/patterns/tree/interface.d.ts +0 -9
- package/dist/patterns/tree/interface.d.ts.map +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { getValueAsType as m } from "../../../value/types/utils/get-as-type.js";
|
|
2
|
-
import { numberValueTypes as p } from "../../../value/types/maps/number.js";
|
|
3
|
-
import { transformPropOrder as f } from "../../utils/keys-transform.js";
|
|
4
|
-
const y = {
|
|
5
|
-
x: "translateX",
|
|
6
|
-
y: "translateY",
|
|
7
|
-
z: "translateZ",
|
|
8
|
-
transformPerspective: "perspective"
|
|
9
|
-
}, d = f.length;
|
|
10
|
-
function h(u, l, n) {
|
|
11
|
-
let e = "", o = !0;
|
|
12
|
-
for (let i = 0; i < d; i++) {
|
|
13
|
-
const t = f[i], r = u[t];
|
|
14
|
-
if (r === void 0)
|
|
15
|
-
continue;
|
|
16
|
-
let a = !0;
|
|
17
|
-
if (typeof r == "number")
|
|
18
|
-
a = r === (t.startsWith("scale") ? 1 : 0);
|
|
19
|
-
else {
|
|
20
|
-
const s = parseFloat(r);
|
|
21
|
-
a = t.startsWith("scale") ? s === 1 : s === 0;
|
|
22
|
-
}
|
|
23
|
-
if (!a || n) {
|
|
24
|
-
const s = m(r, p[t]);
|
|
25
|
-
if (!a) {
|
|
26
|
-
o = !1;
|
|
27
|
-
const c = y[t] || t;
|
|
28
|
-
e += `${c}(${s}) `;
|
|
29
|
-
}
|
|
30
|
-
n && (l[t] = s);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return e = e.trim(), n ? e = n(l, o ? "" : e) : o && (e = "none"), e;
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
h as buildTransform
|
|
37
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isMotionValue as y } from "../../../value/utils/is-motion-value.js";
|
|
2
|
-
import { isForcedMotionValue as u } from "../../utils/is-forced-motion-value.js";
|
|
3
|
-
function d(c, n, e) {
|
|
4
|
-
var r;
|
|
5
|
-
const t = c.style, f = n == null ? void 0 : n.style, i = {};
|
|
6
|
-
if (!t)
|
|
7
|
-
return i;
|
|
8
|
-
for (const o in t)
|
|
9
|
-
(y(t[o]) || f && y(f[o]) || u(o, c) || ((r = e == null ? void 0 : e.getValue(o)) == null ? void 0 : r.liveStyle) !== void 0) && (i[o] = t[o]);
|
|
10
|
-
return i;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as scrapeMotionValuesFromProps
|
|
14
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { transformProps as s } from "../utils/keys-transform.js";
|
|
2
|
-
import { getDefaultValueType as a } from "../../value/types/maps/defaults.js";
|
|
3
|
-
import { createBox as m } from "../../projection/geometry/models.js";
|
|
4
|
-
import { DOMVisualElement as i } from "../dom/DOMVisualElement.js";
|
|
5
|
-
import { camelToDash as u } from "../dom/utils/camel-to-dash.js";
|
|
6
|
-
import { buildSVGAttrs as n } from "./utils/build-attrs.js";
|
|
7
|
-
import { camelCaseAttributes as p } from "./utils/camel-case-attrs.js";
|
|
8
|
-
import { isSVGTag as l } from "./utils/is-svg-tag.js";
|
|
9
|
-
import { renderSVG as f } from "./utils/render.js";
|
|
10
|
-
import { scrapeMotionValuesFromProps as V } from "./utils/scrape-motion-values.js";
|
|
11
|
-
class A extends i {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = m;
|
|
14
|
-
}
|
|
15
|
-
getBaseTargetFromProps(t, r) {
|
|
16
|
-
return t[r];
|
|
17
|
-
}
|
|
18
|
-
readValueFromInstance(t, r) {
|
|
19
|
-
if (s.has(r)) {
|
|
20
|
-
const e = a(r);
|
|
21
|
-
return e && e.default || 0;
|
|
22
|
-
}
|
|
23
|
-
return r = p.has(r) ? r : u(r), t.getAttribute(r);
|
|
24
|
-
}
|
|
25
|
-
scrapeMotionValuesFromProps(t, r, e) {
|
|
26
|
-
return V(t, r, e);
|
|
27
|
-
}
|
|
28
|
-
build(t, r, e) {
|
|
29
|
-
n(t, r, this.isSVGTag, e.transformTemplate, e.style);
|
|
30
|
-
}
|
|
31
|
-
renderInstance(t, r, e, o) {
|
|
32
|
-
f(t, r, e, o);
|
|
33
|
-
}
|
|
34
|
-
mount(t) {
|
|
35
|
-
this.isSVGTag = l(t.tagName), super.mount(t);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
A as SVGVisualElement
|
|
40
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { buildHTMLStyles as c } from "../../html/utils/build-styles.js";
|
|
2
|
-
import { buildSVGPath as B } from "./path.js";
|
|
3
|
-
const b = [
|
|
4
|
-
"offsetDistance",
|
|
5
|
-
"offsetPath",
|
|
6
|
-
"offsetRotate",
|
|
7
|
-
"offsetAnchor"
|
|
8
|
-
];
|
|
9
|
-
function g(r, {
|
|
10
|
-
attrX: e,
|
|
11
|
-
attrY: s,
|
|
12
|
-
attrScale: t,
|
|
13
|
-
pathLength: d,
|
|
14
|
-
pathSpacing: m = 1,
|
|
15
|
-
pathOffset: l = 0,
|
|
16
|
-
// This is object creation, which we try to avoid per-frame.
|
|
17
|
-
...a
|
|
18
|
-
}, u, x, n) {
|
|
19
|
-
if (c(r, a, x), u) {
|
|
20
|
-
r.style.viewBox && (r.attrs.viewBox = r.style.viewBox);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
r.attrs = r.style, r.style = {};
|
|
24
|
-
const { attrs: f, style: i } = r;
|
|
25
|
-
f.transform && (i.transform = f.transform, delete f.transform), (i.transform || f.transformOrigin) && (i.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), i.transform && (i.transformBox = (n == null ? void 0 : n.transformBox) ?? "fill-box", delete f.transformBox);
|
|
26
|
-
for (const o of b)
|
|
27
|
-
f[o] !== void 0 && (i[o] = f[o], delete f[o]);
|
|
28
|
-
e !== void 0 && (f.x = e), s !== void 0 && (f.y = s), t !== void 0 && (f.scale = t), d !== void 0 && B(f, d, m, l, !1);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
g as buildSVGAttrs
|
|
32
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const e = /* @__PURE__ */ new Set([
|
|
2
|
-
"baseFrequency",
|
|
3
|
-
"diffuseConstant",
|
|
4
|
-
"kernelMatrix",
|
|
5
|
-
"kernelUnitLength",
|
|
6
|
-
"keySplines",
|
|
7
|
-
"keyTimes",
|
|
8
|
-
"limitingConeAngle",
|
|
9
|
-
"markerHeight",
|
|
10
|
-
"markerWidth",
|
|
11
|
-
"numOctaves",
|
|
12
|
-
"targetX",
|
|
13
|
-
"targetY",
|
|
14
|
-
"surfaceScale",
|
|
15
|
-
"specularConstant",
|
|
16
|
-
"specularExponent",
|
|
17
|
-
"stdDeviation",
|
|
18
|
-
"tableValues",
|
|
19
|
-
"viewBox",
|
|
20
|
-
"gradientTransform",
|
|
21
|
-
"pathLength",
|
|
22
|
-
"startOffset",
|
|
23
|
-
"textLength",
|
|
24
|
-
"lengthAdjust"
|
|
25
|
-
]);
|
|
26
|
-
export {
|
|
27
|
-
e as camelCaseAttributes
|
|
28
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const f = {
|
|
2
|
-
offset: "stroke-dashoffset",
|
|
3
|
-
array: "stroke-dasharray"
|
|
4
|
-
}, h = {
|
|
5
|
-
offset: "strokeDashoffset",
|
|
6
|
-
array: "strokeDasharray"
|
|
7
|
-
};
|
|
8
|
-
function y(s, e, o = 1, r = 0, t = !0) {
|
|
9
|
-
s.pathLength = 1;
|
|
10
|
-
const a = t ? f : h;
|
|
11
|
-
s[a.offset] = `${-r}`, s[a.array] = `${e} ${o}`;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
y as buildSVGPath
|
|
15
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { camelToDash as i } from "../../dom/utils/camel-to-dash.js";
|
|
2
|
-
import { renderHTML as m } from "../../html/utils/render.js";
|
|
3
|
-
import { camelCaseAttributes as e } from "./camel-case-attrs.js";
|
|
4
|
-
function c(o, t, f, s) {
|
|
5
|
-
m(o, t, void 0, s);
|
|
6
|
-
for (const r in t.attrs)
|
|
7
|
-
o.setAttribute(e.has(r) ? r : i(r), t.attrs[r]);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
c as renderSVG
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
|
|
2
|
-
import { transformPropOrder as i } from "../../utils/keys-transform.js";
|
|
3
|
-
import { scrapeMotionValuesFromProps as m } from "../../html/utils/scrape-motion-values.js";
|
|
4
|
-
function l(r, t, s) {
|
|
5
|
-
const e = m(r, t, s);
|
|
6
|
-
for (const o in r)
|
|
7
|
-
if (n(r[o]) || n(t[o])) {
|
|
8
|
-
const a = i.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
|
|
9
|
-
e[a] = r[o];
|
|
10
|
-
}
|
|
11
|
-
return e;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
l as scrapeMotionValuesFromProps
|
|
15
|
-
};
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { animateVisualElement as J } from "../../animation/interfaces/visual-element.js";
|
|
2
|
-
import { calcChildStagger as N } from "../../animation/utils/calc-child-stagger.js";
|
|
3
|
-
import { getVariantContext as Q } from "./get-variant-context.js";
|
|
4
|
-
import { isAnimationControls as U } from "./is-animation-controls.js";
|
|
5
|
-
import { isKeyframesTarget as M } from "./is-keyframes-target.js";
|
|
6
|
-
import { isVariantLabel as W } from "./is-variant-label.js";
|
|
7
|
-
import { resolveVariant as K } from "./resolve-dynamic-variants.js";
|
|
8
|
-
import { shallowCompare as B } from "./shallow-compare.js";
|
|
9
|
-
import { variantPriorityOrder as H } from "./variant-props.js";
|
|
10
|
-
const X = [...H].reverse(), Y = H.length;
|
|
11
|
-
function Z(e) {
|
|
12
|
-
return (c) => Promise.all(c.map(({ animation: d, options: m }) => J(e, d, m)));
|
|
13
|
-
}
|
|
14
|
-
function le(e) {
|
|
15
|
-
let c = Z(e), d = k(), m = !0;
|
|
16
|
-
const L = (l) => (t, y) => {
|
|
17
|
-
var a;
|
|
18
|
-
const f = K(e, y, l === "exit" ? (a = e.presenceContext) == null ? void 0 : a.custom : void 0);
|
|
19
|
-
if (f) {
|
|
20
|
-
const { transition: p, transitionEnd: v, ...C } = f;
|
|
21
|
-
t = { ...t, ...C, ...v };
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
function z(l) {
|
|
26
|
-
c = l(e);
|
|
27
|
-
}
|
|
28
|
-
function b(l) {
|
|
29
|
-
const { props: t } = e, y = Q(e.parent) || {}, f = [], a = /* @__PURE__ */ new Set();
|
|
30
|
-
let p = {}, v = 1 / 0;
|
|
31
|
-
for (let u = 0; u < Y; u++) {
|
|
32
|
-
const n = X[u], r = d[n], o = t[n] !== void 0 ? t[n] : y[n], P = W(o), S = n === l ? r.isActive : null;
|
|
33
|
-
S === !1 && (v = u);
|
|
34
|
-
let w = o === y[n] && o !== t[n] && P;
|
|
35
|
-
if (w && m && e.manuallyAnimateOnMount && (w = !1), r.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
36
|
-
!r.isActive && S === null || // If we didn't and don't have any defined prop for this animation type
|
|
37
|
-
!o && !r.prevProp || // Or if the prop doesn't define an animation
|
|
38
|
-
U(o) || typeof o == "boolean")
|
|
39
|
-
continue;
|
|
40
|
-
const I = _(r.prevProp, o);
|
|
41
|
-
let T = I || // If we're making this variant active, we want to always make it active
|
|
42
|
-
n === l && r.isActive && !w && P || // If we removed a higher-priority variant (i is in reverse order)
|
|
43
|
-
u > v && P, O = !1;
|
|
44
|
-
const R = Array.isArray(o) ? o : [o];
|
|
45
|
-
let V = R.reduce(L(n), {});
|
|
46
|
-
S === !1 && (V = {});
|
|
47
|
-
const { prevResolvedValues: x = {} } = r, q = {
|
|
48
|
-
...x,
|
|
49
|
-
...V
|
|
50
|
-
}, D = (i) => {
|
|
51
|
-
T = !0, a.has(i) && (O = !0, a.delete(i)), r.needsAnimating[i] = !0;
|
|
52
|
-
const s = e.getValue(i);
|
|
53
|
-
s && (s.liveStyle = !1);
|
|
54
|
-
};
|
|
55
|
-
for (const i in q) {
|
|
56
|
-
const s = V[i], A = x[i];
|
|
57
|
-
if (p.hasOwnProperty(i))
|
|
58
|
-
continue;
|
|
59
|
-
let g = !1;
|
|
60
|
-
M(s) && M(A) ? g = !B(s, A) : g = s !== A, g ? s != null ? D(i) : a.add(i) : s !== void 0 && a.has(i) ? D(i) : r.protectedKeys[i] = !0;
|
|
61
|
-
}
|
|
62
|
-
r.prevProp = o, r.prevResolvedValues = V, r.isActive && (p = { ...p, ...V }), m && e.blockInitialAnimation && (T = !1);
|
|
63
|
-
const F = w && I;
|
|
64
|
-
T && (!F || O) && f.push(...R.map((i) => {
|
|
65
|
-
const s = { type: n };
|
|
66
|
-
if (typeof i == "string" && m && !F && e.manuallyAnimateOnMount && e.parent) {
|
|
67
|
-
const { parent: A } = e, g = K(A, i);
|
|
68
|
-
if (A.enteringChildren && g) {
|
|
69
|
-
const { delayChildren: G } = g.transition || {};
|
|
70
|
-
s.delay = N(A.enteringChildren, e, G);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
animation: i,
|
|
75
|
-
options: s
|
|
76
|
-
};
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
if (a.size) {
|
|
80
|
-
const u = {};
|
|
81
|
-
if (typeof t.initial != "boolean") {
|
|
82
|
-
const n = K(e, Array.isArray(t.initial) ? t.initial[0] : t.initial);
|
|
83
|
-
n && n.transition && (u.transition = n.transition);
|
|
84
|
-
}
|
|
85
|
-
a.forEach((n) => {
|
|
86
|
-
const r = e.getBaseTarget(n), o = e.getValue(n);
|
|
87
|
-
o && (o.liveStyle = !0), u[n] = r ?? null;
|
|
88
|
-
}), f.push({ animation: u });
|
|
89
|
-
}
|
|
90
|
-
let C = !!f.length;
|
|
91
|
-
return m && (t.initial === !1 || t.initial === t.animate) && !e.manuallyAnimateOnMount && (C = !1), m = !1, C ? c(f) : Promise.resolve();
|
|
92
|
-
}
|
|
93
|
-
function j(l, t) {
|
|
94
|
-
var f;
|
|
95
|
-
if (d[l].isActive === t)
|
|
96
|
-
return Promise.resolve();
|
|
97
|
-
(f = e.variantChildren) == null || f.forEach((a) => {
|
|
98
|
-
var p;
|
|
99
|
-
return (p = a.animationState) == null ? void 0 : p.setActive(l, t);
|
|
100
|
-
}), d[l].isActive = t;
|
|
101
|
-
const y = b(l);
|
|
102
|
-
for (const a in d)
|
|
103
|
-
d[a].protectedKeys = {};
|
|
104
|
-
return y;
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
animateChanges: b,
|
|
108
|
-
setActive: j,
|
|
109
|
-
setAnimateFunction: z,
|
|
110
|
-
getState: () => d,
|
|
111
|
-
reset: () => {
|
|
112
|
-
d = k();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function _(e, c) {
|
|
117
|
-
return typeof c == "string" ? c !== e : Array.isArray(c) ? !B(c, e) : !1;
|
|
118
|
-
}
|
|
119
|
-
function h(e = !1) {
|
|
120
|
-
return {
|
|
121
|
-
isActive: e,
|
|
122
|
-
protectedKeys: {},
|
|
123
|
-
needsAnimating: {},
|
|
124
|
-
prevResolvedValues: {}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function k() {
|
|
128
|
-
return {
|
|
129
|
-
animate: h(!0),
|
|
130
|
-
whileInView: h(),
|
|
131
|
-
whileHover: h(),
|
|
132
|
-
whileTap: h(),
|
|
133
|
-
whileDrag: h(),
|
|
134
|
-
whileFocus: h(),
|
|
135
|
-
exit: h()
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
export {
|
|
139
|
-
_ as checkVariantsDidChange,
|
|
140
|
-
le as createAnimationState
|
|
141
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isVariantLabel as a } from "./is-variant-label.js";
|
|
2
|
-
import { variantProps as p } from "./variant-props.js";
|
|
3
|
-
const f = p.length;
|
|
4
|
-
function c(n) {
|
|
5
|
-
if (!n)
|
|
6
|
-
return;
|
|
7
|
-
if (!n.isControllingVariants) {
|
|
8
|
-
const r = n.parent ? c(n.parent) || {} : {};
|
|
9
|
-
return n.props.initial !== void 0 && (r.initial = n.props.initial), r;
|
|
10
|
-
}
|
|
11
|
-
const o = {};
|
|
12
|
-
for (let r = 0; r < f; r++) {
|
|
13
|
-
const i = p[r], t = n.props[i];
|
|
14
|
-
(a(t) || t === !1) && (o[i] = t);
|
|
15
|
-
}
|
|
16
|
-
return o;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
c as getVariantContext
|
|
20
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { isAnimationControls as o } from "./is-animation-controls.js";
|
|
2
|
-
import { isVariantLabel as r } from "./is-variant-label.js";
|
|
3
|
-
import { variantProps as t } from "./variant-props.js";
|
|
4
|
-
function a(i) {
|
|
5
|
-
return o(i.animate) || t.some((n) => r(i[n]));
|
|
6
|
-
}
|
|
7
|
-
function f(i) {
|
|
8
|
-
return !!(a(i) || i.variants);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
a as isControllingVariants,
|
|
12
|
-
f as isVariantNode
|
|
13
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { transformProps as i } from "./keys-transform.js";
|
|
2
|
-
import { scaleCorrectors as n } from "../../projection/styles/scale-correction.js";
|
|
3
|
-
function c(r, { layout: o, layoutId: t }) {
|
|
4
|
-
return i.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!n[r] || r === "opacity");
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
c as isForcedMotionValue,
|
|
8
|
-
n as scaleCorrectors
|
|
9
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const t = [
|
|
2
|
-
"transformPerspective",
|
|
3
|
-
"x",
|
|
4
|
-
"y",
|
|
5
|
-
"z",
|
|
6
|
-
"translateX",
|
|
7
|
-
"translateY",
|
|
8
|
-
"translateZ",
|
|
9
|
-
"scale",
|
|
10
|
-
"scaleX",
|
|
11
|
-
"scaleY",
|
|
12
|
-
"rotate",
|
|
13
|
-
"rotateX",
|
|
14
|
-
"rotateY",
|
|
15
|
-
"rotateZ",
|
|
16
|
-
"skew",
|
|
17
|
-
"skewX",
|
|
18
|
-
"skewY"
|
|
19
|
-
], e = new Set(t);
|
|
20
|
-
export {
|
|
21
|
-
t as transformPropOrder,
|
|
22
|
-
e as transformProps
|
|
23
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { motionValue as r } from "../../value/index.js";
|
|
2
|
-
import { isMotionValue as f } from "../../value/utils/is-motion-value.js";
|
|
3
|
-
function d(a, e, s) {
|
|
4
|
-
for (const o in e) {
|
|
5
|
-
const i = e[o], t = s[o];
|
|
6
|
-
if (f(i))
|
|
7
|
-
a.addValue(o, i);
|
|
8
|
-
else if (f(t))
|
|
9
|
-
a.addValue(o, r(i, { owner: a }));
|
|
10
|
-
else if (t !== i)
|
|
11
|
-
if (a.hasValue(o)) {
|
|
12
|
-
const u = a.getValue(o);
|
|
13
|
-
u.liveStyle === !0 ? u.jump(i) : u.hasAnimated || u.set(i);
|
|
14
|
-
} else {
|
|
15
|
-
const u = a.getStaticValue(o);
|
|
16
|
-
a.addValue(o, r(u !== void 0 ? u : i, { owner: a }));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
for (const o in s)
|
|
20
|
-
e[o] === void 0 && a.removeValue(o);
|
|
21
|
-
return e;
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
d as updateMotionValuesFromProps
|
|
25
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { hasReducedMotionListener as t, prefersReducedMotion as r } from "./state.js";
|
|
2
|
-
const o = typeof window < "u";
|
|
3
|
-
function d() {
|
|
4
|
-
if (t.current = !0, !!o)
|
|
5
|
-
if (window.matchMedia) {
|
|
6
|
-
const e = window.matchMedia("(prefers-reduced-motion)"), n = () => r.current = e.matches;
|
|
7
|
-
e.addEventListener("change", n), n();
|
|
8
|
-
} else
|
|
9
|
-
r.current = !1;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
t as hasReducedMotionListener,
|
|
13
|
-
d as initPrefersReducedMotion,
|
|
14
|
-
r as prefersReducedMotion
|
|
15
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function y(t) {
|
|
2
|
-
const r = [{}, {}];
|
|
3
|
-
return t == null || t.values.forEach((c, a) => {
|
|
4
|
-
r[0][a] = c.get(), r[1][a] = c.getVelocity();
|
|
5
|
-
}), r;
|
|
6
|
-
}
|
|
7
|
-
function f(t, r, c, a) {
|
|
8
|
-
if (typeof r == "function") {
|
|
9
|
-
const [o, u] = y(a);
|
|
10
|
-
r = r(c !== void 0 ? c : t.custom, o, u);
|
|
11
|
-
}
|
|
12
|
-
if (typeof r == "string" && (r = t.variants && t.variants[r]), typeof r == "function") {
|
|
13
|
-
const [o, u] = y(a);
|
|
14
|
-
r = r(c !== void 0 ? c : t.custom, o, u);
|
|
15
|
-
}
|
|
16
|
-
return r;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
f as resolveVariantFromProps
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { motionValue as s } from "../../value/index.js";
|
|
2
|
-
import { resolveVariant as f } from "./resolve-dynamic-variants.js";
|
|
3
|
-
import { isKeyframesTarget as l } from "./is-keyframes-target.js";
|
|
4
|
-
function u(t, o, e) {
|
|
5
|
-
t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o, s(e));
|
|
6
|
-
}
|
|
7
|
-
function V(t) {
|
|
8
|
-
return l(t) ? t[t.length - 1] || 0 : t;
|
|
9
|
-
}
|
|
10
|
-
function p(t, o) {
|
|
11
|
-
const e = f(t, o);
|
|
12
|
-
let { transitionEnd: a = {}, transition: c = {}, ...r } = e || {};
|
|
13
|
-
r = { ...r, ...a };
|
|
14
|
-
for (const n in r) {
|
|
15
|
-
const i = V(r[n]);
|
|
16
|
-
u(t, n, i);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
p as setTarget
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { time as s } from "../frameloop/sync-time.js";
|
|
2
|
-
import { frame as m, cancelFrame as o } from "../frameloop/frame.js";
|
|
3
|
-
function i(c, r) {
|
|
4
|
-
const n = s.now(), e = ({ timestamp: a }) => {
|
|
5
|
-
const t = a - n;
|
|
6
|
-
t >= r && (o(e), c(t - r));
|
|
7
|
-
};
|
|
8
|
-
return m.setup(e, !0), () => o(e);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
i as delay
|
|
12
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { mix as h } from "./mix/index.js";
|
|
2
|
-
import { invariant as x } from "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { clamp as M } from "../../../../motion-utils/dist/es/clamp.js";
|
|
4
|
-
import { MotionGlobalConfig as b } from "../../../../motion-utils/dist/es/global-config.js";
|
|
5
|
-
import { noop as y } from "../../../../motion-utils/dist/es/noop.js";
|
|
6
|
-
import { pipe as A } from "../../../../motion-utils/dist/es/pipe.js";
|
|
7
|
-
import { progress as F } from "../../../../motion-utils/dist/es/progress.js";
|
|
8
|
-
function R(r, e, f) {
|
|
9
|
-
const t = [], a = f || b.mix || h, n = r.length - 1;
|
|
10
|
-
for (let o = 0; o < n; o++) {
|
|
11
|
-
let i = a(r[o], r[o + 1]);
|
|
12
|
-
if (e) {
|
|
13
|
-
const c = Array.isArray(e) ? e[o] || y : e;
|
|
14
|
-
i = A(c, i);
|
|
15
|
-
}
|
|
16
|
-
t.push(i);
|
|
17
|
-
}
|
|
18
|
-
return t;
|
|
19
|
-
}
|
|
20
|
-
function I(r, e, { clamp: f = !0, ease: t, mixer: a } = {}) {
|
|
21
|
-
const n = r.length;
|
|
22
|
-
if (x(n === e.length, "Both input and output ranges must be the same length", "range-length"), n === 1)
|
|
23
|
-
return () => e[0];
|
|
24
|
-
if (n === 2 && e[0] === e[1])
|
|
25
|
-
return () => e[1];
|
|
26
|
-
const o = r[0] === r[1];
|
|
27
|
-
r[0] > r[n - 1] && (r = [...r].reverse(), e = [...e].reverse());
|
|
28
|
-
const i = R(e, t, a), c = i.length, l = (s) => {
|
|
29
|
-
if (o && s < r[0])
|
|
30
|
-
return e[0];
|
|
31
|
-
let m = 0;
|
|
32
|
-
if (c > 1)
|
|
33
|
-
for (; m < r.length - 2 && !(s < r[m + 1]); m++)
|
|
34
|
-
;
|
|
35
|
-
const g = F(r[m], r[m + 1], s);
|
|
36
|
-
return i[m](g);
|
|
37
|
-
};
|
|
38
|
-
return f ? (s) => l(M(r[0], r[n - 1], s)) : l;
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
I as interpolate
|
|
42
|
-
};
|