lawgic-dev-kit 0.12.4 → 0.12.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/_virtual/client.js +3 -22
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +71 -30
- package/dist/components/atoms/UploadContainer/UploadContainer.js +88 -47
- package/dist/components/molecules/AlertModal/AlertModal.js +67 -26
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +205 -145
- package/dist/components/molecules/DateInput/DateInput.d.ts +2 -2
- package/dist/components/molecules/DateInput/DateInput.js +63 -50
- package/dist/components/molecules/DialogModal/DialogModal.js +78 -37
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +74 -33
- package/dist/components/molecules/Tabs/Tabs.js +82 -41
- package/dist/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/dist/_virtual/index.js +7 -0
- package/dist/dist/_virtual/index3.js +5 -0
- package/dist/dist/_virtual/index4.js +5 -0
- package/dist/dist/_virtual/index5.js +7 -0
- package/dist/dist/_virtual/index6.js +4 -0
- package/dist/dist/_virtual/index7.js +4 -0
- package/dist/dist/_virtual/index8.js +4 -0
- package/dist/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/dist/_virtual/jsx-runtime2.js +4 -0
- package/dist/dist/_virtual/lodash.js +2 -0
- package/dist/dist/_virtual/lodash2.js +4 -0
- package/dist/dist/_virtual/react-is.development.js +4 -0
- package/dist/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.js +4 -0
- package/dist/dist/components/atoms/AsyncToast/index.js +33 -0
- package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +5 -0
- package/dist/dist/components/atoms/Toast/Toast.js +113 -0
- package/dist/dist/constants/countries.js +8 -0
- package/dist/dist/contexts/themeContext.js +3 -0
- package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +4 -0
- package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
- package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +33 -0
- package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/dist/node_modules/lodash/lodash.js +3677 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +12 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +9 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +5 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +16 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +11 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +1 -0
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
- package/dist/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
- package/dist/dist/node_modules/object-assign/index.js +54 -0
- package/dist/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/dist/node_modules/prop-types/index.js +17 -0
- package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/dist/node_modules/property-expr/index.js +82 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
- package/dist/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/dist/node_modules/tiny-case/index.js +22 -0
- package/dist/dist/node_modules/toposort/index.js +66 -0
- package/dist/dist/node_modules/yup/index.esm.js +1359 -0
- package/dist/dist/themes/default.js +9 -0
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +884 -243
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/utils/modal.js +98 -57
- package/dist/utils/toast.d.ts +1 -1
- package/dist/utils/toast.js +112 -98
- package/package.json +1 -1
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -37
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -37
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { lowercaseSVGElements as s } from "../../svg/lowercase-elements.js";
|
|
2
|
+
function n(e) {
|
|
3
|
+
return (
|
|
4
|
+
/**
|
|
5
|
+
* If it's not a string, it's a custom React component. Currently we only support
|
|
6
|
+
* HTML custom React components.
|
|
7
|
+
*/
|
|
8
|
+
typeof e != "string" || /**
|
|
9
|
+
* If it contains a dash, the element is a custom HTML webcomponent.
|
|
10
|
+
*/
|
|
11
|
+
e.includes("-") ? !1 : (
|
|
12
|
+
/**
|
|
13
|
+
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
14
|
+
*/
|
|
15
|
+
!!(s.indexOf(e) > -1 || /**
|
|
16
|
+
* If it contains a capital letter, it's an SVG component
|
|
17
|
+
*/
|
|
18
|
+
/[A-Z]/u.test(e))
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
n as isSVGComponent
|
|
24
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { number as n } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px as p } from "../../../value/types/numbers/units.js";
|
|
3
|
+
import { transformPropOrder as m } from "../../html/utils/keys-transform.js";
|
|
4
|
+
import { parseValueFromTransform as e } from "../../html/utils/parse-transform.js";
|
|
5
|
+
const g = (t) => t === n || t === p, i = /* @__PURE__ */ new Set(["x", "y", "z"]), l = m.filter((t) => !i.has(t));
|
|
6
|
+
function h(t) {
|
|
7
|
+
const a = [];
|
|
8
|
+
return l.forEach((r) => {
|
|
9
|
+
const s = t.getValue(r);
|
|
10
|
+
s !== void 0 && (a.push([r, s.get()]), s.set(r.startsWith("scale") ? 1 : 0));
|
|
11
|
+
}), a;
|
|
12
|
+
}
|
|
13
|
+
const o = {
|
|
14
|
+
// Dimensions
|
|
15
|
+
width: ({ x: t }, { paddingLeft: a = "0", paddingRight: r = "0" }) => t.max - t.min - parseFloat(a) - parseFloat(r),
|
|
16
|
+
height: ({ y: t }, { paddingTop: a = "0", paddingBottom: r = "0" }) => t.max - t.min - parseFloat(a) - parseFloat(r),
|
|
17
|
+
top: (t, { top: a }) => parseFloat(a),
|
|
18
|
+
left: (t, { left: a }) => parseFloat(a),
|
|
19
|
+
bottom: ({ y: t }, { top: a }) => parseFloat(a) + (t.max - t.min),
|
|
20
|
+
right: ({ x: t }, { left: a }) => parseFloat(a) + (t.max - t.min),
|
|
21
|
+
// Transform
|
|
22
|
+
x: (t, { transform: a }) => e(a, "x"),
|
|
23
|
+
y: (t, { transform: a }) => e(a, "y")
|
|
24
|
+
};
|
|
25
|
+
o.translateX = o.x;
|
|
26
|
+
o.translateY = o.y;
|
|
27
|
+
export {
|
|
28
|
+
g as isNumOrPxType,
|
|
29
|
+
o as positionalValues,
|
|
30
|
+
h as removeNonTranslationalTransform
|
|
31
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { complex as a } from "../../../value/types/complex/index.js";
|
|
2
|
+
import { filter as m } from "../../../value/types/complex/filter.js";
|
|
3
|
+
import { getDefaultValueType as r } from "./defaults.js";
|
|
4
|
+
function f(t, o) {
|
|
5
|
+
let e = r(t);
|
|
6
|
+
return e !== m && (e = a), e.getAnimatableNone ? e.getAnimatableNone(o) : void 0;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as getAnimatableNone
|
|
10
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { color as o } from "../../../value/types/color/index.js";
|
|
2
|
+
import { filter as r } from "../../../value/types/complex/filter.js";
|
|
3
|
+
import { numberValueTypes as l } from "./number.js";
|
|
4
|
+
const t = {
|
|
5
|
+
...l,
|
|
6
|
+
// Color props
|
|
7
|
+
color: o,
|
|
8
|
+
backgroundColor: o,
|
|
9
|
+
outlineColor: o,
|
|
10
|
+
fill: o,
|
|
11
|
+
stroke: o,
|
|
12
|
+
// Border props
|
|
13
|
+
borderColor: o,
|
|
14
|
+
borderTopColor: o,
|
|
15
|
+
borderRightColor: o,
|
|
16
|
+
borderBottomColor: o,
|
|
17
|
+
borderLeftColor: o,
|
|
18
|
+
filter: r,
|
|
19
|
+
WebkitFilter: r
|
|
20
|
+
}, f = (e) => t[e];
|
|
21
|
+
export {
|
|
22
|
+
t as defaultValueTypes,
|
|
23
|
+
f as getDefaultValueType
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { number as e } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px as a, percent as o, degrees as r, vw as m, vh as p } from "../../../value/types/numbers/units.js";
|
|
3
|
+
import { testValueType as i } from "./test.js";
|
|
4
|
+
import { auto as n } from "./type-auto.js";
|
|
5
|
+
const t = [e, a, o, r, m, p, n], y = (s) => t.find(i(s));
|
|
6
|
+
export {
|
|
7
|
+
t as dimensionValueTypes,
|
|
8
|
+
y as findDimensionValueType
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { color as s } from "../../../value/types/color/index.js";
|
|
2
|
+
import { complex as e } from "../../../value/types/complex/index.js";
|
|
3
|
+
import { dimensionValueTypes as m } from "./dimensions.js";
|
|
4
|
+
import { testValueType as p } from "./test.js";
|
|
5
|
+
const r = [...m, s, e], l = (o) => r.find(p(o));
|
|
6
|
+
export {
|
|
7
|
+
l as findValueType
|
|
8
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { px as o } from "../../../value/types/numbers/units.js";
|
|
2
|
+
const i = {
|
|
3
|
+
// Border props
|
|
4
|
+
borderWidth: o,
|
|
5
|
+
borderTopWidth: o,
|
|
6
|
+
borderRightWidth: o,
|
|
7
|
+
borderBottomWidth: o,
|
|
8
|
+
borderLeftWidth: o,
|
|
9
|
+
borderRadius: o,
|
|
10
|
+
radius: o,
|
|
11
|
+
borderTopLeftRadius: o,
|
|
12
|
+
borderTopRightRadius: o,
|
|
13
|
+
borderBottomRightRadius: o,
|
|
14
|
+
borderBottomLeftRadius: o,
|
|
15
|
+
// Positioning props
|
|
16
|
+
width: o,
|
|
17
|
+
maxWidth: o,
|
|
18
|
+
height: o,
|
|
19
|
+
maxHeight: o,
|
|
20
|
+
top: o,
|
|
21
|
+
right: o,
|
|
22
|
+
bottom: o,
|
|
23
|
+
left: o,
|
|
24
|
+
// Spacing props
|
|
25
|
+
padding: o,
|
|
26
|
+
paddingTop: o,
|
|
27
|
+
paddingRight: o,
|
|
28
|
+
paddingBottom: o,
|
|
29
|
+
paddingLeft: o,
|
|
30
|
+
margin: o,
|
|
31
|
+
marginTop: o,
|
|
32
|
+
marginRight: o,
|
|
33
|
+
marginBottom: o,
|
|
34
|
+
marginLeft: o,
|
|
35
|
+
// Misc
|
|
36
|
+
backgroundPositionX: o,
|
|
37
|
+
backgroundPositionY: o
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
i as browserNumberValueTypes
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { alpha as r } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px as a } from "../../../value/types/numbers/units.js";
|
|
3
|
+
import { browserNumberValueTypes as e } from "./number-browser.js";
|
|
4
|
+
import { transformValueTypes as s } from "./transform.js";
|
|
5
|
+
import { int as o } from "./type-int.js";
|
|
6
|
+
const l = {
|
|
7
|
+
...e,
|
|
8
|
+
...s,
|
|
9
|
+
zIndex: o,
|
|
10
|
+
size: a,
|
|
11
|
+
// SVG
|
|
12
|
+
fillOpacity: r,
|
|
13
|
+
strokeOpacity: r,
|
|
14
|
+
numOctaves: o
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as numberValueTypes
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { alpha as t, scale as s } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px as e, progressPercentage as r, degrees as a } from "../../../value/types/numbers/units.js";
|
|
3
|
+
const c = {
|
|
4
|
+
rotate: a,
|
|
5
|
+
rotateX: a,
|
|
6
|
+
rotateY: a,
|
|
7
|
+
rotateZ: a,
|
|
8
|
+
scale: s,
|
|
9
|
+
scaleX: s,
|
|
10
|
+
scaleY: s,
|
|
11
|
+
scaleZ: s,
|
|
12
|
+
skew: a,
|
|
13
|
+
skewX: a,
|
|
14
|
+
skewY: a,
|
|
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: t,
|
|
25
|
+
originX: r,
|
|
26
|
+
originY: r,
|
|
27
|
+
originZ: e
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
c as transformValueTypes
|
|
31
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { measureViewportBox as a } from "../../projection/utils/measure.js";
|
|
2
|
+
import { DOMVisualElement as m } from "../dom/DOMVisualElement.js";
|
|
3
|
+
import { isCSSVariableName as n } from "../dom/utils/is-css-variable.js";
|
|
4
|
+
import { buildHTMLStyles as i } from "./utils/build-styles.js";
|
|
5
|
+
import { transformProps as p } from "./utils/keys-transform.js";
|
|
6
|
+
import { readTransformValue as u } from "./utils/parse-transform.js";
|
|
7
|
+
import { renderHTML as l } from "./utils/render.js";
|
|
8
|
+
import { scrapeMotionValuesFromProps as f } from "./utils/scrape-motion-values.js";
|
|
9
|
+
function c(s) {
|
|
10
|
+
return window.getComputedStyle(s);
|
|
11
|
+
}
|
|
12
|
+
class T extends m {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.type = "html", this.renderInstance = l;
|
|
15
|
+
}
|
|
16
|
+
readValueFromInstance(e, r) {
|
|
17
|
+
if (p.has(r))
|
|
18
|
+
return u(e, r);
|
|
19
|
+
{
|
|
20
|
+
const t = c(e), o = (n(r) ? t.getPropertyValue(r) : t[r]) || 0;
|
|
21
|
+
return typeof o == "string" ? o.trim() : o;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
measureInstanceViewportBox(e, { transformPagePoint: r }) {
|
|
25
|
+
return a(e, r);
|
|
26
|
+
}
|
|
27
|
+
build(e, r, t) {
|
|
28
|
+
i(e, r, t.transformTemplate);
|
|
29
|
+
}
|
|
30
|
+
scrapeMotionValuesFromProps(e, r, t) {
|
|
31
|
+
return f(e, r, t);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
T as HTMLVisualElement,
|
|
36
|
+
c as getComputedStyle
|
|
37
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { makeUseVisualState as e } from "../../motion/utils/use-visual-state.js";
|
|
2
|
+
import { scrapeMotionValuesFromProps as t } from "./utils/scrape-motion-values.js";
|
|
3
|
+
import { createHtmlRenderState as o } from "./utils/create-render-state.js";
|
|
4
|
+
const m = {
|
|
5
|
+
useVisualState: e({
|
|
6
|
+
scrapeMotionValuesFromProps: t,
|
|
7
|
+
createRenderState: o
|
|
8
|
+
})
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
m as htmlMotionConfig
|
|
12
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useMemo as o } from "react";
|
|
2
|
+
import { isForcedMotionValue as a } from "../../motion/utils/is-forced-motion-value.js";
|
|
3
|
+
import { isMotionValue as s } from "../../value/utils/is-motion-value.js";
|
|
4
|
+
import { buildHTMLStyles as i } from "./utils/build-styles.js";
|
|
5
|
+
import { createHtmlRenderState as c } from "./utils/create-render-state.js";
|
|
6
|
+
function u(e, t, r) {
|
|
7
|
+
for (const n in t)
|
|
8
|
+
!s(t[n]) && !a(n, r) && (e[n] = t[n]);
|
|
9
|
+
}
|
|
10
|
+
function l({ transformTemplate: e }, t) {
|
|
11
|
+
return o(() => {
|
|
12
|
+
const r = c();
|
|
13
|
+
return i(r, t, e), Object.assign({}, r.vars, r.style);
|
|
14
|
+
}, [t]);
|
|
15
|
+
}
|
|
16
|
+
function f(e, t) {
|
|
17
|
+
const r = e.style || {}, n = {};
|
|
18
|
+
return u(n, r, e), Object.assign(n, l(e, t)), n;
|
|
19
|
+
}
|
|
20
|
+
function y(e, t) {
|
|
21
|
+
const r = {}, n = f(e, t);
|
|
22
|
+
return e.drag && e.dragListener !== !1 && (r.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (r.tabIndex = 0), r.style = n, r;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as copyRawValuesOnly,
|
|
26
|
+
y as useHTMLProps
|
|
27
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isCSSVariableName as u } from "../../dom/utils/is-css-variable.js";
|
|
2
|
+
import { getValueAsType as p } from "../../dom/value-types/get-as-type.js";
|
|
3
|
+
import { numberValueTypes as c } from "../../dom/value-types/number.js";
|
|
4
|
+
import { buildTransform as g } from "./build-transform.js";
|
|
5
|
+
import { transformProps as $ } from "./keys-transform.js";
|
|
6
|
+
function d(a, s, i) {
|
|
7
|
+
const { style: o, vars: l, transformOrigin: e } = a;
|
|
8
|
+
let m = !1, f = !1;
|
|
9
|
+
for (const r in s) {
|
|
10
|
+
const n = s[r];
|
|
11
|
+
if ($.has(r)) {
|
|
12
|
+
m = !0;
|
|
13
|
+
continue;
|
|
14
|
+
} else if (u(r)) {
|
|
15
|
+
l[r] = n;
|
|
16
|
+
continue;
|
|
17
|
+
} else {
|
|
18
|
+
const t = p(n, c[r]);
|
|
19
|
+
r.startsWith("origin") ? (f = !0, e[r] = t) : o[r] = t;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (s.transform || (m || i ? o.transform = g(s, a.transform, i) : o.transform && (o.transform = "none")), f) {
|
|
23
|
+
const { originX: r = "50%", originY: n = "50%", originZ: t = 0 } = e;
|
|
24
|
+
o.transformOrigin = `${r} ${n} ${t}`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
d as buildHTMLStyles
|
|
29
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getValueAsType as c } from "../../dom/value-types/get-as-type.js";
|
|
2
|
+
import { numberValueTypes as u } from "../../dom/value-types/number.js";
|
|
3
|
+
import { transformPropOrder as i } from "./keys-transform.js";
|
|
4
|
+
const y = {
|
|
5
|
+
x: "translateX",
|
|
6
|
+
y: "translateY",
|
|
7
|
+
z: "translateZ",
|
|
8
|
+
transformPerspective: "perspective"
|
|
9
|
+
}, v = i.length;
|
|
10
|
+
function T(m, f, o) {
|
|
11
|
+
let t = "", n = !0;
|
|
12
|
+
for (let s = 0; s < v; s++) {
|
|
13
|
+
const e = i[s], r = m[e];
|
|
14
|
+
if (r === void 0)
|
|
15
|
+
continue;
|
|
16
|
+
let a = !0;
|
|
17
|
+
if (typeof r == "number" ? a = r === (e.startsWith("scale") ? 1 : 0) : a = parseFloat(r) === 0, !a || o) {
|
|
18
|
+
const l = c(r, u[e]);
|
|
19
|
+
if (!a) {
|
|
20
|
+
n = !1;
|
|
21
|
+
const p = y[e] || e;
|
|
22
|
+
t += `${p}(${l}) `;
|
|
23
|
+
}
|
|
24
|
+
o && (f[e] = l);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return t = t.trim(), o ? t = o(f, n ? "" : t) : n && (t = "none"), t;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
T as buildTransform
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { analyseComplexValue as s } from "../../../value/types/complex/index.js";
|
|
2
|
+
import { getAnimatableNone as l } from "../../dom/value-types/animatable-none.js";
|
|
3
|
+
const m = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4
|
+
function g(e, f, a) {
|
|
5
|
+
let n = 0, o;
|
|
6
|
+
for (; n < e.length && !o; ) {
|
|
7
|
+
const t = e[n];
|
|
8
|
+
typeof t == "string" && !m.has(t) && s(t).values.length && (o = e[n]), n++;
|
|
9
|
+
}
|
|
10
|
+
if (o && a)
|
|
11
|
+
for (const t of f)
|
|
12
|
+
e[t] = l(a, o);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
g as makeNoneKeyframesAnimatable
|
|
16
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const e = (a) => a * 180 / Math.PI, c = (a) => {
|
|
2
|
+
const t = e(Math.atan2(a[1], a[0]));
|
|
3
|
+
return l(t);
|
|
4
|
+
}, p = {
|
|
5
|
+
x: 4,
|
|
6
|
+
y: 5,
|
|
7
|
+
translateX: 4,
|
|
8
|
+
translateY: 5,
|
|
9
|
+
scaleX: 0,
|
|
10
|
+
scaleY: 3,
|
|
11
|
+
scale: (a) => (Math.abs(a[0]) + Math.abs(a[3])) / 2,
|
|
12
|
+
rotate: c,
|
|
13
|
+
rotateZ: c,
|
|
14
|
+
skewX: (a) => e(Math.atan(a[1])),
|
|
15
|
+
skewY: (a) => e(Math.atan(a[2])),
|
|
16
|
+
skew: (a) => (Math.abs(a[1]) + Math.abs(a[2])) / 2
|
|
17
|
+
}, l = (a) => (a = a % 360, a < 0 && (a += 360), a), u = c, M = (a) => Math.sqrt(a[0] * a[0] + a[1] * a[1]), i = (a) => Math.sqrt(a[4] * a[4] + a[5] * a[5]), X = {
|
|
18
|
+
x: 12,
|
|
19
|
+
y: 13,
|
|
20
|
+
z: 14,
|
|
21
|
+
translateX: 12,
|
|
22
|
+
translateY: 13,
|
|
23
|
+
translateZ: 14,
|
|
24
|
+
scaleX: M,
|
|
25
|
+
scaleY: i,
|
|
26
|
+
scale: (a) => (M(a) + i(a)) / 2,
|
|
27
|
+
rotateX: (a) => l(e(Math.atan2(a[6], a[5]))),
|
|
28
|
+
rotateY: (a) => l(e(Math.atan2(-a[2], a[0]))),
|
|
29
|
+
rotateZ: u,
|
|
30
|
+
rotate: u,
|
|
31
|
+
skewX: (a) => e(Math.atan(a[4])),
|
|
32
|
+
skewY: (a) => e(Math.atan(a[1])),
|
|
33
|
+
skew: (a) => (Math.abs(a[1]) + Math.abs(a[4])) / 2
|
|
34
|
+
};
|
|
35
|
+
function f(a) {
|
|
36
|
+
return a.includes("scale") ? 1 : 0;
|
|
37
|
+
}
|
|
38
|
+
function b(a, t) {
|
|
39
|
+
if (!a || a === "none")
|
|
40
|
+
return f(t);
|
|
41
|
+
const s = a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
42
|
+
let r, n;
|
|
43
|
+
if (s)
|
|
44
|
+
r = X, n = s;
|
|
45
|
+
else {
|
|
46
|
+
const m = a.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
47
|
+
r = p, n = m;
|
|
48
|
+
}
|
|
49
|
+
if (!n)
|
|
50
|
+
return f(t);
|
|
51
|
+
const o = r[t], h = n[1].split(",").map(d);
|
|
52
|
+
return typeof o == "function" ? o(h) : h[o];
|
|
53
|
+
}
|
|
54
|
+
const Y = (a, t) => {
|
|
55
|
+
const { transform: s = "none" } = getComputedStyle(a);
|
|
56
|
+
return b(s, t);
|
|
57
|
+
};
|
|
58
|
+
function d(a) {
|
|
59
|
+
return parseFloat(a.trim());
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
b as parseValueFromTransform,
|
|
63
|
+
Y as readTransformValue
|
|
64
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isForcedMotionValue as a } from "../../../motion/utils/is-forced-motion-value.js";
|
|
2
|
+
import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
|
|
3
|
+
function v(r, e, s) {
|
|
4
|
+
var t;
|
|
5
|
+
const { style: i } = r, l = {};
|
|
6
|
+
for (const o in i)
|
|
7
|
+
(n(i[o]) || e.style && n(e.style[o]) || a(o, r) || ((t = s == null ? void 0 : s.getValue(o)) === null || t === void 0 ? void 0 : t.liveStyle) !== void 0) && (l[o] = i[o]);
|
|
8
|
+
return l;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
v as scrapeMotionValuesFromProps
|
|
12
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { frame as a } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
3
|
+
import { createBox as o } from "../../projection/geometry/models.js";
|
|
4
|
+
import { DOMVisualElement as i } from "../dom/DOMVisualElement.js";
|
|
5
|
+
import { camelToDash as m } from "../dom/utils/camel-to-dash.js";
|
|
6
|
+
import { getDefaultValueType as n } from "../dom/value-types/defaults.js";
|
|
7
|
+
import { transformProps as p } from "../html/utils/keys-transform.js";
|
|
8
|
+
import { buildSVGAttrs as u } from "./utils/build-attrs.js";
|
|
9
|
+
import { camelCaseAttributes as f } from "./utils/camel-case-attrs.js";
|
|
10
|
+
import { isSVGTag as l } from "./utils/is-svg-tag.js";
|
|
11
|
+
import { updateSVGDimensions as c } from "./utils/measure.js";
|
|
12
|
+
import { renderSVG as d } from "./utils/render.js";
|
|
13
|
+
import { scrapeMotionValuesFromProps as h } from "./utils/scrape-motion-values.js";
|
|
14
|
+
class I extends i {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = o, this.updateDimensions = () => {
|
|
17
|
+
this.current && !this.renderState.dimensions && c(this.current, this.renderState);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
getBaseTargetFromProps(t, e) {
|
|
21
|
+
return t[e];
|
|
22
|
+
}
|
|
23
|
+
readValueFromInstance(t, e) {
|
|
24
|
+
if (p.has(e)) {
|
|
25
|
+
const s = n(e);
|
|
26
|
+
return s && s.default || 0;
|
|
27
|
+
}
|
|
28
|
+
return e = f.has(e) ? e : m(e), t.getAttribute(e);
|
|
29
|
+
}
|
|
30
|
+
scrapeMotionValuesFromProps(t, e, s) {
|
|
31
|
+
return h(t, e, s);
|
|
32
|
+
}
|
|
33
|
+
onBindTransform() {
|
|
34
|
+
this.current && !this.renderState.dimensions && a.postRender(this.updateDimensions);
|
|
35
|
+
}
|
|
36
|
+
build(t, e, s) {
|
|
37
|
+
u(t, e, this.isSVGTag, s.transformTemplate);
|
|
38
|
+
}
|
|
39
|
+
renderInstance(t, e, s, r) {
|
|
40
|
+
d(t, e, s, r);
|
|
41
|
+
}
|
|
42
|
+
mount(t) {
|
|
43
|
+
this.isSVGTag = l(t.tagName), super.mount(t);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
I as SVGVisualElement
|
|
48
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { frame as n } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
3
|
+
import { makeUseVisualState as l } from "../../motion/utils/use-visual-state.js";
|
|
4
|
+
import { transformProps as u } from "../html/utils/keys-transform.js";
|
|
5
|
+
import { buildSVGAttrs as c } from "./utils/build-attrs.js";
|
|
6
|
+
import { createSvgRenderState as d } from "./utils/create-render-state.js";
|
|
7
|
+
import { isSVGTag as S } from "./utils/is-svg-tag.js";
|
|
8
|
+
import { updateSVGDimensions as V } from "./utils/measure.js";
|
|
9
|
+
import { renderSVG as g } from "./utils/render.js";
|
|
10
|
+
import { scrapeMotionValuesFromProps as h } from "./utils/scrape-motion-values.js";
|
|
11
|
+
const f = ["x", "y", "width", "height", "cx", "cy", "r"], R = {
|
|
12
|
+
useVisualState: l({
|
|
13
|
+
scrapeMotionValuesFromProps: h,
|
|
14
|
+
createRenderState: d,
|
|
15
|
+
onUpdate: ({ props: t, prevProps: o, current: e, renderState: a, latestValues: m }) => {
|
|
16
|
+
if (!e)
|
|
17
|
+
return;
|
|
18
|
+
let s = !!t.drag;
|
|
19
|
+
if (!s) {
|
|
20
|
+
for (const r in m)
|
|
21
|
+
if (u.has(r)) {
|
|
22
|
+
s = !0;
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (!s)
|
|
27
|
+
return;
|
|
28
|
+
let i = !o;
|
|
29
|
+
if (o)
|
|
30
|
+
for (let r = 0; r < f.length; r++) {
|
|
31
|
+
const p = f[r];
|
|
32
|
+
t[p] !== o[p] && (i = !0);
|
|
33
|
+
}
|
|
34
|
+
i && n.read(() => {
|
|
35
|
+
V(e, a), n.render(() => {
|
|
36
|
+
c(a, m, S(e.tagName), t.transformTemplate), g(e, a);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
R as svgMotionConfig
|
|
44
|
+
};
|