@pibit.ai/cure-design-system 0.3.4 → 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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -28
- 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/table/TableWrapper.d.ts +82 -0
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -0
- package/dist/patterns/table/TableWrapper.js +141 -0
- package/dist/patterns/table/index.d.ts +1 -0
- package/dist/patterns/table/index.d.ts.map +1 -1
- 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/dist/styles/components.css +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as g, useRef as S, useEffect as O } from "react";
|
|
3
|
+
import { createPortal as j } from "react-dom";
|
|
4
|
+
import { TableCard as H, Table as f } from "./table.js";
|
|
5
|
+
import { cx as x } from "../../utils/cn.js";
|
|
6
|
+
const F = E(function({
|
|
7
|
+
data: d,
|
|
8
|
+
columns: a,
|
|
9
|
+
renderRowCell: i,
|
|
10
|
+
onRowClick: l,
|
|
11
|
+
arialabel: c,
|
|
12
|
+
size: n = "sm",
|
|
13
|
+
allowDefaultRowClass: y = !1,
|
|
14
|
+
centeredHeaders: h = [],
|
|
15
|
+
rootClassName: o,
|
|
16
|
+
removeBorders: k,
|
|
17
|
+
headerClassName: W,
|
|
18
|
+
isRowExpandable: w,
|
|
19
|
+
renderExpandedContent: v
|
|
20
|
+
}, u) {
|
|
21
|
+
return /* @__PURE__ */ t(H.Root, { ref: u, className: x("overflow-x-auto", o), size: n, children: /* @__PURE__ */ m(f, { "aria-label": c, size: n, children: [
|
|
22
|
+
/* @__PURE__ */ t(f.Header, { className: x("sticky top-0", W), children: a.map((e, p) => /* @__PURE__ */ t(
|
|
23
|
+
f.Head,
|
|
24
|
+
{
|
|
25
|
+
sticky: e.sticky,
|
|
26
|
+
stickyOffset: e.stickyOffset,
|
|
27
|
+
id: e.key,
|
|
28
|
+
label: e.label,
|
|
29
|
+
isRowHeader: !0,
|
|
30
|
+
allowsSorting: e.allowsSorting,
|
|
31
|
+
headerCellClass: h.includes(e.key) ? "justify-center" : "",
|
|
32
|
+
style: {
|
|
33
|
+
maxWidth: e.maxWidth,
|
|
34
|
+
minWidth: e.maxWidth,
|
|
35
|
+
width: e.maxWidth
|
|
36
|
+
},
|
|
37
|
+
className: "overflow-hidde"
|
|
38
|
+
},
|
|
39
|
+
p
|
|
40
|
+
)) }),
|
|
41
|
+
/* @__PURE__ */ t(f.Body, { items: d, children: (e) => {
|
|
42
|
+
const p = w ? w(e) : !1, b = e.id || e.rule_id || String(e);
|
|
43
|
+
return /* @__PURE__ */ t(
|
|
44
|
+
f.Row,
|
|
45
|
+
{
|
|
46
|
+
onAction: () => l == null ? void 0 : l(e),
|
|
47
|
+
id: b,
|
|
48
|
+
isExpandable: p,
|
|
49
|
+
renderExpandedContent: p ? v : void 0,
|
|
50
|
+
columns: a,
|
|
51
|
+
className: x(
|
|
52
|
+
l && "cursor-pointer",
|
|
53
|
+
y ? "prose" : "",
|
|
54
|
+
k && "[&>td]:after:hidden"
|
|
55
|
+
// Remove row borders
|
|
56
|
+
),
|
|
57
|
+
children: a.map((s, T) => /* @__PURE__ */ t(
|
|
58
|
+
f.Cell,
|
|
59
|
+
{
|
|
60
|
+
sticky: s.sticky,
|
|
61
|
+
stickyOffset: s.stickyOffset,
|
|
62
|
+
style: {
|
|
63
|
+
maxWidth: s.maxWidth,
|
|
64
|
+
minWidth: s.maxWidth,
|
|
65
|
+
width: s.maxWidth
|
|
66
|
+
},
|
|
67
|
+
className: "overflow-x-hidden text-left",
|
|
68
|
+
children: T === 0 && p ? /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: i(s.key, e[s.key], e) }) : i(s.key, e[s.key], e)
|
|
69
|
+
},
|
|
70
|
+
s.key
|
|
71
|
+
))
|
|
72
|
+
},
|
|
73
|
+
b
|
|
74
|
+
);
|
|
75
|
+
} })
|
|
76
|
+
] }) });
|
|
77
|
+
}), $ = ({
|
|
78
|
+
content: r,
|
|
79
|
+
className: d = "",
|
|
80
|
+
link: a = !1,
|
|
81
|
+
tooltipPosition: i = "center"
|
|
82
|
+
}) => {
|
|
83
|
+
const [l, c] = g(!1), [n, y] = g({ top: 0, left: 0 }), h = S(null);
|
|
84
|
+
return O(() => {
|
|
85
|
+
if (l && h.current) {
|
|
86
|
+
const o = h.current.getBoundingClientRect();
|
|
87
|
+
y({
|
|
88
|
+
top: o.top - 8,
|
|
89
|
+
// 8px above the element (accounts for tooltip height + margin)
|
|
90
|
+
left: i === "start" ? o.left : o.left + o.width / 2
|
|
91
|
+
// start: left align; center: center horizontally
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}, [l, i]), /* @__PURE__ */ m(N, { children: [
|
|
95
|
+
/* @__PURE__ */ t(
|
|
96
|
+
"span",
|
|
97
|
+
{
|
|
98
|
+
ref: h,
|
|
99
|
+
className: x(
|
|
100
|
+
"whitespace-nowrap overflow-hidden text-ellipsis w-full text-left text-secondary block",
|
|
101
|
+
d,
|
|
102
|
+
a ? "!text-[var(--color-brand-600)]" : ""
|
|
103
|
+
),
|
|
104
|
+
onMouseEnter: () => c(!0),
|
|
105
|
+
onMouseLeave: () => c(!1),
|
|
106
|
+
children: a ? /* @__PURE__ */ t("a", { href: r, target: "_blank", children: r }) : r
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
l && j(
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
className: x(
|
|
114
|
+
"fixed px-3 py-2 text-xs font-semibold text-white bg-primary-solid rounded-lg shadow-lg pointer-events-none -translate-y-full z-999 max-w-2xs lg:max-w-xs xl:max-w-sm break-words whitespace-normal",
|
|
115
|
+
i === "center" && "-translate-x-1/2",
|
|
116
|
+
d
|
|
117
|
+
),
|
|
118
|
+
style: {
|
|
119
|
+
top: `${n.top}px`,
|
|
120
|
+
left: `${n.left}px`
|
|
121
|
+
},
|
|
122
|
+
children: r
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
document.body
|
|
126
|
+
)
|
|
127
|
+
] });
|
|
128
|
+
}, I = (r, d = "", a, i) => r === "" || r === "-" ? /* @__PURE__ */ t("span", { className: `text-left ${d}`, children: r || "-" }) : /* @__PURE__ */ t(
|
|
129
|
+
$,
|
|
130
|
+
{
|
|
131
|
+
content: r,
|
|
132
|
+
className: d,
|
|
133
|
+
link: a,
|
|
134
|
+
tooltipPosition: i
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
export {
|
|
138
|
+
$ as EllipsisContentWithTooltip,
|
|
139
|
+
F as TableWrapper,
|
|
140
|
+
I as createEllipsisContent
|
|
141
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -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"}
|