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,32 @@
|
|
|
1
|
+
import { isDragActive as E } from "../drag/state/is-active.js";
|
|
2
|
+
import { isNodeOrChild as b } from "../utils/is-node-or-child.js";
|
|
3
|
+
import { isPrimaryPointer as L } from "../utils/is-primary-pointer.js";
|
|
4
|
+
import { setupGesture as g } from "../utils/setup.js";
|
|
5
|
+
import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
|
|
6
|
+
import { enableKeyboardPress as y } from "./utils/keyboard.js";
|
|
7
|
+
import { isPressing as o } from "./utils/state.js";
|
|
8
|
+
function p(s) {
|
|
9
|
+
return L(s) && !E();
|
|
10
|
+
}
|
|
11
|
+
function C(s, u, i = {}) {
|
|
12
|
+
const [f, r, l] = g(s, i), w = (e) => {
|
|
13
|
+
const t = e.currentTarget;
|
|
14
|
+
if (!p(e) || o.has(t))
|
|
15
|
+
return;
|
|
16
|
+
o.add(t);
|
|
17
|
+
const a = u(t, e), d = (n, v) => {
|
|
18
|
+
window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", m), !(!p(n) || !o.has(t)) && (o.delete(t), typeof a == "function" && a(n, { success: v }));
|
|
19
|
+
}, c = (n) => {
|
|
20
|
+
d(n, t === window || t === document || i.useGlobalTarget || b(t, n.target));
|
|
21
|
+
}, m = (n) => {
|
|
22
|
+
d(n, !1);
|
|
23
|
+
};
|
|
24
|
+
window.addEventListener("pointerup", c, r), window.addEventListener("pointercancel", m, r);
|
|
25
|
+
};
|
|
26
|
+
return f.forEach((e) => {
|
|
27
|
+
(i.useGlobalTarget ? window : e).addEventListener("pointerdown", w, r), e instanceof HTMLElement && (e.addEventListener("focus", (t) => y(t, r)), !h(e) && e.tabIndex === null && (e.tabIndex = 0));
|
|
28
|
+
}), l;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
C as press
|
|
32
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isPressing as a } from "./state.js";
|
|
2
|
+
function i(n) {
|
|
3
|
+
return (t) => {
|
|
4
|
+
t.key === "Enter" && n(t);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function r(n, t) {
|
|
8
|
+
n.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
|
|
9
|
+
}
|
|
10
|
+
const c = (n, t) => {
|
|
11
|
+
const e = n.currentTarget;
|
|
12
|
+
if (!e)
|
|
13
|
+
return;
|
|
14
|
+
const s = i(() => {
|
|
15
|
+
if (a.has(e))
|
|
16
|
+
return;
|
|
17
|
+
r(e, "down");
|
|
18
|
+
const o = i(() => {
|
|
19
|
+
r(e, "up");
|
|
20
|
+
}), d = () => r(e, "cancel");
|
|
21
|
+
e.addEventListener("keyup", o, t), e.addEventListener("blur", d, t);
|
|
22
|
+
});
|
|
23
|
+
e.addEventListener("keydown", s, t), e.addEventListener("blur", () => e.removeEventListener("keydown", s), t);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
c as enableKeyboardPress
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { resolveElements as n } from "../../utils/resolve-elements.js";
|
|
2
|
+
function l(r, t) {
|
|
3
|
+
const o = n(r), e = new AbortController(), s = {
|
|
4
|
+
passive: !0,
|
|
5
|
+
...t,
|
|
6
|
+
signal: e.signal
|
|
7
|
+
};
|
|
8
|
+
return [o, s, () => e.abort()];
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as setupGesture
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function l(e, o, f) {
|
|
2
|
+
var t;
|
|
3
|
+
if (e instanceof EventTarget)
|
|
4
|
+
return [e];
|
|
5
|
+
if (typeof e == "string") {
|
|
6
|
+
let n = document;
|
|
7
|
+
const r = (t = void 0) !== null && t !== void 0 ? t : n.querySelectorAll(e);
|
|
8
|
+
return r ? Array.from(r) : [];
|
|
9
|
+
}
|
|
10
|
+
return Array.from(e);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
l as resolveElements
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { memoSupports as e } from "./memo.js";
|
|
2
|
+
const r = /* @__PURE__ */ e(() => {
|
|
3
|
+
try {
|
|
4
|
+
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
5
|
+
} catch {
|
|
6
|
+
return !1;
|
|
7
|
+
}
|
|
8
|
+
return !0;
|
|
9
|
+
}, "linearEasing");
|
|
10
|
+
export {
|
|
11
|
+
r as supportsLinearEasing
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { memo as s } from "../../../../../motion-utils/dist/es/memo.js";
|
|
3
|
+
import { supportsFlags as p } from "./flags.js";
|
|
4
|
+
function e(r, t) {
|
|
5
|
+
const m = s(r);
|
|
6
|
+
return () => {
|
|
7
|
+
var o;
|
|
8
|
+
return (o = p[t]) !== null && o !== void 0 ? o : m();
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
e as memoSupports
|
|
13
|
+
};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import "../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { SubscriptionManager as o } from "../../../../motion-utils/dist/es/subscription-manager.js";
|
|
3
|
+
import { velocityPerSecond as c } from "../../../../motion-utils/dist/es/velocity-per-second.js";
|
|
4
|
+
import { warnOnce as p } from "../../../../motion-utils/dist/es/warn-once.js";
|
|
5
|
+
import { frame as u } from "../frameloop/frame.js";
|
|
6
|
+
import { time as n } from "../frameloop/sync-time.js";
|
|
7
|
+
const a = 30, v = (i) => !isNaN(parseFloat(i));
|
|
8
|
+
class d {
|
|
9
|
+
/**
|
|
10
|
+
* @param init - The initiating value
|
|
11
|
+
* @param config - Optional configuration options
|
|
12
|
+
*
|
|
13
|
+
* - `transformer`: A function to transform incoming values with.
|
|
14
|
+
*/
|
|
15
|
+
constructor(t, e = {}) {
|
|
16
|
+
this.version = "12.6.1", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s, r = !0) => {
|
|
17
|
+
const h = n.now();
|
|
18
|
+
this.updatedAt !== h && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), r && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
19
|
+
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
|
|
20
|
+
}
|
|
21
|
+
setCurrent(t) {
|
|
22
|
+
this.current = t, this.updatedAt = n.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = v(this.current));
|
|
23
|
+
}
|
|
24
|
+
setPrevFrameValue(t = this.current) {
|
|
25
|
+
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Adds a function that will be notified when the `MotionValue` is updated.
|
|
29
|
+
*
|
|
30
|
+
* It returns a function that, when called, will cancel the subscription.
|
|
31
|
+
*
|
|
32
|
+
* When calling `onChange` inside a React component, it should be wrapped with the
|
|
33
|
+
* `useEffect` hook. As it returns an unsubscribe function, this should be returned
|
|
34
|
+
* from the `useEffect` function to ensure you don't add duplicate subscribers..
|
|
35
|
+
*
|
|
36
|
+
* ```jsx
|
|
37
|
+
* export const MyComponent = () => {
|
|
38
|
+
* const x = useMotionValue(0)
|
|
39
|
+
* const y = useMotionValue(0)
|
|
40
|
+
* const opacity = useMotionValue(1)
|
|
41
|
+
*
|
|
42
|
+
* useEffect(() => {
|
|
43
|
+
* function updateOpacity() {
|
|
44
|
+
* const maxXY = Math.max(x.get(), y.get())
|
|
45
|
+
* const newOpacity = transform(maxXY, [0, 100], [1, 0])
|
|
46
|
+
* opacity.set(newOpacity)
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* const unsubscribeX = x.on("change", updateOpacity)
|
|
50
|
+
* const unsubscribeY = y.on("change", updateOpacity)
|
|
51
|
+
*
|
|
52
|
+
* return () => {
|
|
53
|
+
* unsubscribeX()
|
|
54
|
+
* unsubscribeY()
|
|
55
|
+
* }
|
|
56
|
+
* }, [])
|
|
57
|
+
*
|
|
58
|
+
* return <motion.div style={{ x }} />
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param subscriber - A function that receives the latest value.
|
|
63
|
+
* @returns A function that, when called, will cancel this subscription.
|
|
64
|
+
*
|
|
65
|
+
* @deprecated
|
|
66
|
+
*/
|
|
67
|
+
onChange(t) {
|
|
68
|
+
return process.env.NODE_ENV !== "production" && p(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
69
|
+
}
|
|
70
|
+
on(t, e) {
|
|
71
|
+
this.events[t] || (this.events[t] = new o());
|
|
72
|
+
const s = this.events[t].add(e);
|
|
73
|
+
return t === "change" ? () => {
|
|
74
|
+
s(), u.read(() => {
|
|
75
|
+
this.events.change.getSize() || this.stop();
|
|
76
|
+
});
|
|
77
|
+
} : s;
|
|
78
|
+
}
|
|
79
|
+
clearListeners() {
|
|
80
|
+
for (const t in this.events)
|
|
81
|
+
this.events[t].clear();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Attaches a passive effect to the `MotionValue`.
|
|
85
|
+
*/
|
|
86
|
+
attach(t, e) {
|
|
87
|
+
this.passiveEffect = t, this.stopPassiveEffect = e;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Sets the state of the `MotionValue`.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
*
|
|
94
|
+
* ```jsx
|
|
95
|
+
* const x = useMotionValue(0)
|
|
96
|
+
* x.set(10)
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @param latest - Latest value to set.
|
|
100
|
+
* @param render - Whether to notify render subscribers. Defaults to `true`
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
set(t, e = !0) {
|
|
105
|
+
!e || !this.passiveEffect ? this.updateAndNotify(t, e) : this.passiveEffect(t, this.updateAndNotify);
|
|
106
|
+
}
|
|
107
|
+
setWithVelocity(t, e, s) {
|
|
108
|
+
this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - s;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Set the state of the `MotionValue`, stopping any active animations,
|
|
112
|
+
* effects, and resets velocity to `0`.
|
|
113
|
+
*/
|
|
114
|
+
jump(t, e = !0) {
|
|
115
|
+
this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Returns the latest state of `MotionValue`
|
|
119
|
+
*
|
|
120
|
+
* @returns - The latest state of `MotionValue`
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
get() {
|
|
125
|
+
return this.current;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
getPrevious() {
|
|
131
|
+
return this.prev;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Returns the latest velocity of `MotionValue`
|
|
135
|
+
*
|
|
136
|
+
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
getVelocity() {
|
|
141
|
+
const t = n.now();
|
|
142
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > a)
|
|
143
|
+
return 0;
|
|
144
|
+
const e = Math.min(this.updatedAt - this.prevUpdatedAt, a);
|
|
145
|
+
return c(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Registers a new animation to control this `MotionValue`. Only one
|
|
149
|
+
* animation can drive a `MotionValue` at one time.
|
|
150
|
+
*
|
|
151
|
+
* ```jsx
|
|
152
|
+
* value.start()
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @param animation - A function that starts the provided animation
|
|
156
|
+
*/
|
|
157
|
+
start(t) {
|
|
158
|
+
return this.stop(), new Promise((e) => {
|
|
159
|
+
this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
|
|
160
|
+
}).then(() => {
|
|
161
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Stop the currently active animation.
|
|
166
|
+
*
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
stop() {
|
|
170
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Returns `true` if this value is currently animating.
|
|
174
|
+
*
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
isAnimating() {
|
|
178
|
+
return !!this.animation;
|
|
179
|
+
}
|
|
180
|
+
clearAnimation() {
|
|
181
|
+
delete this.animation;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Destroy and clean up subscribers to this `MotionValue`.
|
|
185
|
+
*
|
|
186
|
+
* The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
|
|
187
|
+
* handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
|
|
188
|
+
* created a `MotionValue` via the `motionValue` function.
|
|
189
|
+
*
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
destroy() {
|
|
193
|
+
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function g(i, t) {
|
|
197
|
+
return new d(i, t);
|
|
198
|
+
}
|
|
199
|
+
export {
|
|
200
|
+
d as MotionValue,
|
|
201
|
+
g as motionValue
|
|
202
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { noop as r } from "./noop.js";
|
|
2
|
+
let e = r, a = r;
|
|
3
|
+
process.env.NODE_ENV !== "production" && (e = (o, n) => {
|
|
4
|
+
!o && typeof console < "u" && console.warn(n);
|
|
5
|
+
}, a = (o, n) => {
|
|
6
|
+
if (!o)
|
|
7
|
+
throw new Error(n);
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
a as invariant,
|
|
11
|
+
e as warning
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { removeItem as e, addUniqueItem as c } from "./array.js";
|
|
2
|
+
class p {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.subscriptions = [];
|
|
5
|
+
}
|
|
6
|
+
add(s) {
|
|
7
|
+
return c(this.subscriptions, s), () => e(this.subscriptions, s);
|
|
8
|
+
}
|
|
9
|
+
notify(s, r, o) {
|
|
10
|
+
const t = this.subscriptions.length;
|
|
11
|
+
if (t)
|
|
12
|
+
if (t === 1)
|
|
13
|
+
this.subscriptions[0](s, r, o);
|
|
14
|
+
else
|
|
15
|
+
for (let i = 0; i < t; i++) {
|
|
16
|
+
const n = this.subscriptions[i];
|
|
17
|
+
n && n(s, r, o);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getSize() {
|
|
21
|
+
return this.subscriptions.length;
|
|
22
|
+
}
|
|
23
|
+
clear() {
|
|
24
|
+
this.subscriptions.length = 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
p as SubscriptionManager
|
|
29
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
var u, s;
|
|
7
|
+
function O() {
|
|
8
|
+
if (s) return u;
|
|
9
|
+
s = 1;
|
|
10
|
+
var f = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
function j(n) {
|
|
12
|
+
if (n == null)
|
|
13
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
14
|
+
return Object(n);
|
|
15
|
+
}
|
|
16
|
+
function p() {
|
|
17
|
+
try {
|
|
18
|
+
if (!Object.assign)
|
|
19
|
+
return !1;
|
|
20
|
+
var n = new String("abc");
|
|
21
|
+
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
|
22
|
+
return !1;
|
|
23
|
+
for (var o = {}, r = 0; r < 10; r++)
|
|
24
|
+
o["_" + String.fromCharCode(r)] = r;
|
|
25
|
+
var a = Object.getOwnPropertyNames(o).map(function(t) {
|
|
26
|
+
return o[t];
|
|
27
|
+
});
|
|
28
|
+
if (a.join("") !== "0123456789")
|
|
29
|
+
return !1;
|
|
30
|
+
var e = {};
|
|
31
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(t) {
|
|
32
|
+
e[t] = t;
|
|
33
|
+
}), Object.keys(Object.assign({}, e)).join("") === "abcdefghijklmnopqrst";
|
|
34
|
+
} catch {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return u = p() ? Object.assign : function(n, o) {
|
|
39
|
+
for (var r, a = j(n), e, t = 1; t < arguments.length; t++) {
|
|
40
|
+
r = Object(arguments[t]);
|
|
41
|
+
for (var c in r)
|
|
42
|
+
b.call(r, c) && (a[c] = r[c]);
|
|
43
|
+
if (f) {
|
|
44
|
+
e = f(r);
|
|
45
|
+
for (var i = 0; i < e.length; i++)
|
|
46
|
+
l.call(r, e[i]) && (a[e[i]] = r[e[i]]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return a;
|
|
50
|
+
}, u;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
O as __require
|
|
54
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { __require as E } from "./lib/ReactPropTypesSecret.js";
|
|
2
|
+
import { __require as d } from "./lib/has.js";
|
|
3
|
+
var c, y;
|
|
4
|
+
function O() {
|
|
5
|
+
if (y) return c;
|
|
6
|
+
y = 1;
|
|
7
|
+
var a = function() {
|
|
8
|
+
};
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10
|
+
var l = /* @__PURE__ */ E(), i = {}, v = /* @__PURE__ */ d();
|
|
11
|
+
a = function(r) {
|
|
12
|
+
var t = "Warning: " + r;
|
|
13
|
+
typeof console < "u" && console.error(t);
|
|
14
|
+
try {
|
|
15
|
+
throw new Error(t);
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function f(r, t, n, s, u) {
|
|
21
|
+
if (process.env.NODE_ENV !== "production") {
|
|
22
|
+
for (var o in r)
|
|
23
|
+
if (v(r, o)) {
|
|
24
|
+
var e;
|
|
25
|
+
try {
|
|
26
|
+
if (typeof r[o] != "function") {
|
|
27
|
+
var p = Error(
|
|
28
|
+
(s || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
29
|
+
);
|
|
30
|
+
throw p.name = "Invariant Violation", p;
|
|
31
|
+
}
|
|
32
|
+
e = r[o](t, o, s, n, null, l);
|
|
33
|
+
} catch (m) {
|
|
34
|
+
e = m;
|
|
35
|
+
}
|
|
36
|
+
if (e && !(e instanceof Error) && a(
|
|
37
|
+
(s || "React class") + ": type specification of " + n + " `" + o + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof e + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
38
|
+
), e instanceof Error && !(e.message in i)) {
|
|
39
|
+
i[e.message] = !0;
|
|
40
|
+
var h = u ? u() : "";
|
|
41
|
+
a(
|
|
42
|
+
"Failed " + n + " type: " + e.message + (h ?? "")
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return f.resetWarningCache = function() {
|
|
49
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
50
|
+
}, c = f, c;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
O as __require
|
|
54
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __require as f } from "./lib/ReactPropTypesSecret.js";
|
|
2
|
+
var t, p;
|
|
3
|
+
function g() {
|
|
4
|
+
if (p) return t;
|
|
5
|
+
p = 1;
|
|
6
|
+
var c = /* @__PURE__ */ f();
|
|
7
|
+
function o() {
|
|
8
|
+
}
|
|
9
|
+
function a() {
|
|
10
|
+
}
|
|
11
|
+
return a.resetWarningCache = o, t = function() {
|
|
12
|
+
function e(u, y, l, h, m, s) {
|
|
13
|
+
if (s !== c) {
|
|
14
|
+
var i = new Error(
|
|
15
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
16
|
+
);
|
|
17
|
+
throw i.name = "Invariant Violation", i;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
e.isRequired = e;
|
|
21
|
+
function r() {
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
var n = {
|
|
25
|
+
array: e,
|
|
26
|
+
bigint: e,
|
|
27
|
+
bool: e,
|
|
28
|
+
func: e,
|
|
29
|
+
number: e,
|
|
30
|
+
object: e,
|
|
31
|
+
string: e,
|
|
32
|
+
symbol: e,
|
|
33
|
+
any: e,
|
|
34
|
+
arrayOf: r,
|
|
35
|
+
element: e,
|
|
36
|
+
elementType: e,
|
|
37
|
+
instanceOf: r,
|
|
38
|
+
node: e,
|
|
39
|
+
objectOf: r,
|
|
40
|
+
oneOf: r,
|
|
41
|
+
oneOfType: r,
|
|
42
|
+
shape: r,
|
|
43
|
+
exact: r,
|
|
44
|
+
checkPropTypes: a,
|
|
45
|
+
resetWarningCache: o
|
|
46
|
+
};
|
|
47
|
+
return n.PropTypes = n, n;
|
|
48
|
+
}, t;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
g as __require
|
|
52
|
+
};
|