@pibit.ai/cure-design-system 0.3.5 → 0.3.6
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -21
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +47 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +277 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +131 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +106 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +133 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +98 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +49 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +75 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +33 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +623 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +247 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +141 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +215 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +49 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +18 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +15 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
- package/dist/patterns/tree/TreeStructure.js +110 -0
- package/dist/patterns/tree/helper.js +21 -0
- package/dist/patterns/tree/index.d.ts +4 -0
- package/dist/patterns/tree/index.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { int as t } from "../int.js";
|
|
2
|
+
import { alpha as n } from "../numbers/index.js";
|
|
3
|
+
import { px as i } from "../numbers/units.js";
|
|
4
|
+
import { transformValueTypes as o } from "./transform.js";
|
|
5
|
+
const g = {
|
|
6
|
+
// Border props
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
borderTopWidth: i,
|
|
9
|
+
borderRightWidth: i,
|
|
10
|
+
borderBottomWidth: i,
|
|
11
|
+
borderLeftWidth: i,
|
|
12
|
+
borderRadius: i,
|
|
13
|
+
borderTopLeftRadius: i,
|
|
14
|
+
borderTopRightRadius: i,
|
|
15
|
+
borderBottomRightRadius: i,
|
|
16
|
+
borderBottomLeftRadius: i,
|
|
17
|
+
// Positioning props
|
|
18
|
+
width: i,
|
|
19
|
+
maxWidth: i,
|
|
20
|
+
height: i,
|
|
21
|
+
maxHeight: i,
|
|
22
|
+
top: i,
|
|
23
|
+
right: i,
|
|
24
|
+
bottom: i,
|
|
25
|
+
left: i,
|
|
26
|
+
inset: i,
|
|
27
|
+
insetBlock: i,
|
|
28
|
+
insetBlockStart: i,
|
|
29
|
+
insetBlockEnd: i,
|
|
30
|
+
insetInline: i,
|
|
31
|
+
insetInlineStart: i,
|
|
32
|
+
insetInlineEnd: i,
|
|
33
|
+
// Spacing props
|
|
34
|
+
padding: i,
|
|
35
|
+
paddingTop: i,
|
|
36
|
+
paddingRight: i,
|
|
37
|
+
paddingBottom: i,
|
|
38
|
+
paddingLeft: i,
|
|
39
|
+
paddingBlock: i,
|
|
40
|
+
paddingBlockStart: i,
|
|
41
|
+
paddingBlockEnd: i,
|
|
42
|
+
paddingInline: i,
|
|
43
|
+
paddingInlineStart: i,
|
|
44
|
+
paddingInlineEnd: i,
|
|
45
|
+
margin: i,
|
|
46
|
+
marginTop: i,
|
|
47
|
+
marginRight: i,
|
|
48
|
+
marginBottom: i,
|
|
49
|
+
marginLeft: i,
|
|
50
|
+
marginBlock: i,
|
|
51
|
+
marginBlockStart: i,
|
|
52
|
+
marginBlockEnd: i,
|
|
53
|
+
marginInline: i,
|
|
54
|
+
marginInlineStart: i,
|
|
55
|
+
marginInlineEnd: i,
|
|
56
|
+
// Typography
|
|
57
|
+
fontSize: i,
|
|
58
|
+
// Misc
|
|
59
|
+
backgroundPositionX: i,
|
|
60
|
+
backgroundPositionY: i,
|
|
61
|
+
...o,
|
|
62
|
+
zIndex: t,
|
|
63
|
+
// SVG
|
|
64
|
+
fillOpacity: n,
|
|
65
|
+
strokeOpacity: n,
|
|
66
|
+
numOctaves: t
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
g as numberValueTypes
|
|
70
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { alpha as s, scale as t } from "../numbers/index.js";
|
|
2
|
+
import { px as e, progressPercentage as a, degrees as r } from "../numbers/units.js";
|
|
3
|
+
const n = {
|
|
4
|
+
rotate: r,
|
|
5
|
+
rotateX: r,
|
|
6
|
+
rotateY: r,
|
|
7
|
+
rotateZ: r,
|
|
8
|
+
scale: t,
|
|
9
|
+
scaleX: t,
|
|
10
|
+
scaleY: t,
|
|
11
|
+
scaleZ: t,
|
|
12
|
+
skew: r,
|
|
13
|
+
skewX: r,
|
|
14
|
+
skewY: r,
|
|
15
|
+
distance: e,
|
|
16
|
+
translateX: e,
|
|
17
|
+
translateY: e,
|
|
18
|
+
translateZ: e,
|
|
19
|
+
x: e,
|
|
20
|
+
y: e,
|
|
21
|
+
z: e,
|
|
22
|
+
perspective: e,
|
|
23
|
+
transformPerspective: e,
|
|
24
|
+
opacity: s,
|
|
25
|
+
originX: a,
|
|
26
|
+
originY: a,
|
|
27
|
+
originZ: e
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
n as transformValueTypes
|
|
31
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clamp as a } from "../../../../../../motion-utils/dist/es/clamp.js";
|
|
2
|
+
const r = {
|
|
3
|
+
test: (t) => typeof t == "number",
|
|
4
|
+
parse: parseFloat,
|
|
5
|
+
transform: (t) => t
|
|
6
|
+
}, e = {
|
|
7
|
+
...r,
|
|
8
|
+
transform: (t) => a(0, 1, t)
|
|
9
|
+
}, s = {
|
|
10
|
+
...r,
|
|
11
|
+
default: 1
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as alpha,
|
|
15
|
+
r as number,
|
|
16
|
+
s as scale
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const s = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
2
|
+
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
3
|
+
parse: parseFloat,
|
|
4
|
+
transform: (t) => `${t}${e}`
|
|
5
|
+
}), n = /* @__PURE__ */ s("deg"), r = /* @__PURE__ */ s("%"), o = /* @__PURE__ */ s("px"), p = /* @__PURE__ */ s("vh"), a = /* @__PURE__ */ s("vw"), c = {
|
|
6
|
+
...r,
|
|
7
|
+
parse: (e) => r.parse(e) / 100,
|
|
8
|
+
transform: (e) => r.transform(e * 100)
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as degrees,
|
|
12
|
+
r as percent,
|
|
13
|
+
c as progressPercentage,
|
|
14
|
+
o as px,
|
|
15
|
+
p as vh,
|
|
16
|
+
a as vw
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { complex as n } from "../complex/index.js";
|
|
2
|
+
import { filter as a } from "../complex/filter.js";
|
|
3
|
+
import { getDefaultValueType as i } from "../maps/defaults.js";
|
|
4
|
+
function f(t, o) {
|
|
5
|
+
let e = i(t);
|
|
6
|
+
return e !== a && (e = n), e.getAnimatableNone ? e.getAnimatableNone(o) : void 0;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as getAnimatableNone
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { color as e } from "../color/index.js";
|
|
2
|
+
import { complex as m } from "../complex/index.js";
|
|
3
|
+
import { dimensionValueTypes as p } from "../dimensions.js";
|
|
4
|
+
import { testValueType as r } from "../test.js";
|
|
5
|
+
const t = [...p, e, m], s = (o) => t.find(r(o));
|
|
6
|
+
export {
|
|
7
|
+
s as findValueType
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isWillChangeMotionValue as o } from "./is.js";
|
|
2
|
+
import { MotionGlobalConfig as i } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
3
|
+
function C(a, n) {
|
|
4
|
+
const l = a.getValue("willChange");
|
|
5
|
+
if (o(l))
|
|
6
|
+
return l.add(n);
|
|
7
|
+
if (!l && i.WillChange) {
|
|
8
|
+
const e = new i.WillChange("auto");
|
|
9
|
+
a.addValue("willChange", e), e.add(n);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
C as addValueToWillChange
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { cubicBezier as r } from "./cubic-bezier.js";
|
|
2
|
+
import { mirrorEasing as o } from "./modifiers/mirror.js";
|
|
3
|
+
import { reverseEasing as t } from "./modifiers/reverse.js";
|
|
4
|
+
const c = /* @__PURE__ */ r(0.33, 1.53, 0.69, 0.99), i = /* @__PURE__ */ t(c), s = /* @__PURE__ */ o(i);
|
|
5
|
+
export {
|
|
6
|
+
i as backIn,
|
|
7
|
+
s as backInOut,
|
|
8
|
+
c as backOut
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { noop as b } from "../noop.js";
|
|
2
|
+
const s = (n, i, r) => (((1 - 3 * r + 3 * i) * n + (3 * r - 6 * i)) * n + 3 * i) * n, f = 1e-7, l = 12;
|
|
3
|
+
function a(n, i, r, c, o) {
|
|
4
|
+
let e, t, u = 0;
|
|
5
|
+
do
|
|
6
|
+
t = i + (r - i) / 2, e = s(t, c, o) - n, e > 0 ? r = t : i = t;
|
|
7
|
+
while (Math.abs(e) > f && ++u < l);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function d(n, i, r, c) {
|
|
11
|
+
if (n === i && r === c)
|
|
12
|
+
return b;
|
|
13
|
+
const o = (e) => a(e, 0, 1, n, r);
|
|
14
|
+
return (e) => e === 0 || e === 1 ? e : s(o(e), i, c);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as cubicBezier
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { invariant as e } from "../../errors.js";
|
|
2
|
+
import { noop as c } from "../../noop.js";
|
|
3
|
+
import { anticipate as u } from "../anticipate.js";
|
|
4
|
+
import { backOut as s, backInOut as m, backIn as p } from "../back.js";
|
|
5
|
+
import { circOut as l, circInOut as b, circIn as f } from "../circ.js";
|
|
6
|
+
import { cubicBezier as g } from "../cubic-bezier.js";
|
|
7
|
+
import { easeOut as I, easeInOut as y, easeIn as O } from "../ease.js";
|
|
8
|
+
import { isBezierDefinition as k } from "./is-bezier-definition.js";
|
|
9
|
+
const t = {
|
|
10
|
+
linear: c,
|
|
11
|
+
easeIn: O,
|
|
12
|
+
easeInOut: y,
|
|
13
|
+
easeOut: I,
|
|
14
|
+
circIn: f,
|
|
15
|
+
circInOut: b,
|
|
16
|
+
circOut: l,
|
|
17
|
+
backIn: p,
|
|
18
|
+
backInOut: m,
|
|
19
|
+
backOut: s,
|
|
20
|
+
anticipate: u
|
|
21
|
+
}, v = (r) => typeof r == "string", L = (r) => {
|
|
22
|
+
if (k(r)) {
|
|
23
|
+
e(r.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
24
|
+
const [i, n, o, a] = r;
|
|
25
|
+
return g(i, n, o, a);
|
|
26
|
+
} else if (v(r))
|
|
27
|
+
return e(t[r] !== void 0, `Invalid easing type '${r}'`, "invalid-easing-type"), t[r];
|
|
28
|
+
return r;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
L as easingDefinitionToFunction
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { formatErrorMessage as n } from "./format-error-message.js";
|
|
2
|
+
let t = () => {
|
|
3
|
+
}, f = () => {
|
|
4
|
+
};
|
|
5
|
+
var i;
|
|
6
|
+
typeof process < "u" && ((i = process.env) == null ? void 0 : i.NODE_ENV) !== "production" && (t = (e, o, r) => {
|
|
7
|
+
!e && typeof console < "u" && console.warn(n(o, r));
|
|
8
|
+
}, f = (e, o, r) => {
|
|
9
|
+
if (!e)
|
|
10
|
+
throw new Error(n(o, r));
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
f as invariant,
|
|
14
|
+
t as warning
|
|
15
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { addUniqueItem as e, removeItem as u } from "./array.js";
|
|
2
|
+
class h {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.subscriptions = [];
|
|
5
|
+
}
|
|
6
|
+
add(s) {
|
|
7
|
+
return e(this.subscriptions, s), () => u(this.subscriptions, s);
|
|
8
|
+
}
|
|
9
|
+
notify(s, r, n) {
|
|
10
|
+
const i = this.subscriptions.length;
|
|
11
|
+
if (i)
|
|
12
|
+
if (i === 1)
|
|
13
|
+
this.subscriptions[0](s, r, n);
|
|
14
|
+
else
|
|
15
|
+
for (let t = 0; t < i; t++) {
|
|
16
|
+
const o = this.subscriptions[t];
|
|
17
|
+
o && o(s, r, n);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getSize() {
|
|
21
|
+
return this.subscriptions.length;
|
|
22
|
+
}
|
|
23
|
+
clear() {
|
|
24
|
+
this.subscriptions.length = 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
h as SubscriptionManager
|
|
29
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as O, useEffect as C } from "react";
|
|
3
|
+
import { ChevronRight as b } from "@untitledui/icons";
|
|
4
|
+
import { buildTree as g } from "./helper.js";
|
|
5
|
+
import { motion as x } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
6
|
+
import { AnimatePresence as T } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
7
|
+
const S = ({ data: i, config: r, onNodeClick: o, CustomLeaf: s }) => {
|
|
8
|
+
const [c, n] = O(() => g(i, r));
|
|
9
|
+
C(() => {
|
|
10
|
+
n(g(i, r));
|
|
11
|
+
}, [i, r]);
|
|
12
|
+
function p(t, a) {
|
|
13
|
+
const d = structuredClone(c), l = a.split("-"), m = Number(l[0]);
|
|
14
|
+
l.shift();
|
|
15
|
+
let u = d[m];
|
|
16
|
+
l && (u = l.reduce((v, N) => v = v.children[Number(N)], d[m])), u.isOpen = !u.isOpen, n(d);
|
|
17
|
+
}
|
|
18
|
+
function h(t) {
|
|
19
|
+
o && o(t);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: c.map((t, a) => /* @__PURE__ */ e(
|
|
22
|
+
y,
|
|
23
|
+
{
|
|
24
|
+
element: t,
|
|
25
|
+
parentId: String(a),
|
|
26
|
+
handleClick: p,
|
|
27
|
+
onNodeClick: h,
|
|
28
|
+
CustomLeaf: s
|
|
29
|
+
},
|
|
30
|
+
t.id || a
|
|
31
|
+
)) }) });
|
|
32
|
+
}, y = ({
|
|
33
|
+
element: i,
|
|
34
|
+
parentId: r,
|
|
35
|
+
handleClick: o,
|
|
36
|
+
onNodeClick: s,
|
|
37
|
+
CustomLeaf: c
|
|
38
|
+
}) => {
|
|
39
|
+
const n = i.children.length > 0, p = (t) => {
|
|
40
|
+
t.stopPropagation(), n && o(i, r);
|
|
41
|
+
}, h = (t) => {
|
|
42
|
+
t.stopPropagation(), s && s(i);
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ f("div", { className: "relative", children: [
|
|
45
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-2 py-0.5", children: [
|
|
46
|
+
/* @__PURE__ */ e("div", { className: "w-4 h-4 flex-shrink-0", onClick: p, children: n && /* @__PURE__ */ e(
|
|
47
|
+
x.div,
|
|
48
|
+
{
|
|
49
|
+
initial: !1,
|
|
50
|
+
animate: { rotate: i.isOpen ? 90 : 0 },
|
|
51
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
52
|
+
children: /* @__PURE__ */ e(b, { className: "w-4 h-4 text-[var(--color-gray-400)]" })
|
|
53
|
+
}
|
|
54
|
+
) }),
|
|
55
|
+
/* @__PURE__ */ e("div", { className: i.type === "JSON" ? "cursor-pointer" : "", onClick: h, children: /* @__PURE__ */ e(c, { data: i, type: i.type }) })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ e(T, { initial: !1, children: n && (i == null ? void 0 : i.isOpen) && /* @__PURE__ */ e(
|
|
58
|
+
x.div,
|
|
59
|
+
{
|
|
60
|
+
initial: { opacity: 0, height: 0 },
|
|
61
|
+
animate: {
|
|
62
|
+
opacity: 1,
|
|
63
|
+
height: "auto",
|
|
64
|
+
transition: {
|
|
65
|
+
height: {
|
|
66
|
+
duration: 0.1,
|
|
67
|
+
ease: "easeOut"
|
|
68
|
+
},
|
|
69
|
+
opacity: {
|
|
70
|
+
duration: 0.1,
|
|
71
|
+
ease: "easeOut"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
exit: {
|
|
76
|
+
opacity: 0,
|
|
77
|
+
height: 0,
|
|
78
|
+
transition: {
|
|
79
|
+
height: {
|
|
80
|
+
duration: 0.3,
|
|
81
|
+
ease: "easeIn"
|
|
82
|
+
},
|
|
83
|
+
opacity: {
|
|
84
|
+
duration: 0.2,
|
|
85
|
+
ease: "easeIn"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
style: { overflow: "clip" },
|
|
90
|
+
children: /* @__PURE__ */ f("div", { className: "ml-6 relative", children: [
|
|
91
|
+
/* @__PURE__ */ e("div", { className: "absolute left-[-17px] top-[-6px] bottom-0 w-px bg-[var(--color-gray-200)]" }),
|
|
92
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: i.children.map((t, a) => /* @__PURE__ */ e(
|
|
93
|
+
y,
|
|
94
|
+
{
|
|
95
|
+
element: t,
|
|
96
|
+
parentId: `${r}-${a}`,
|
|
97
|
+
handleClick: o,
|
|
98
|
+
onNodeClick: s,
|
|
99
|
+
CustomLeaf: c
|
|
100
|
+
},
|
|
101
|
+
t.id || `${r}-${a}`
|
|
102
|
+
)) })
|
|
103
|
+
] })
|
|
104
|
+
}
|
|
105
|
+
) })
|
|
106
|
+
] });
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
S as TreeEngine
|
|
110
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const h = (n, s, i = "") => (Array.isArray(n) ? n : Object.values(n)).map((t, d) => {
|
|
2
|
+
const l = t.field_identifier ?? t.id ?? String(d), c = i ? `${i}.${l}` : l;
|
|
3
|
+
let r = [];
|
|
4
|
+
return s.childrenPaths.forEach((y) => {
|
|
5
|
+
const a = y.split(".").reduce((e, u) => e == null ? void 0 : e[u], t);
|
|
6
|
+
if (a) {
|
|
7
|
+
const e = Array.isArray(a) ? a : Object.values(a);
|
|
8
|
+
r = [...r, ...e];
|
|
9
|
+
}
|
|
10
|
+
}), {
|
|
11
|
+
id: c,
|
|
12
|
+
label: t[s.labelKey] ?? "Untitled",
|
|
13
|
+
type: t.data_type ?? t.type ?? "Untitled",
|
|
14
|
+
isOpen: !1,
|
|
15
|
+
children: r.length > 0 ? h(r, s, c) : [],
|
|
16
|
+
metadata: { ...t }
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
h as buildTree
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvF,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
|