lawgic-dev-kit 0.12.8 → 0.12.9
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 +22 -3
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +31 -73
- package/dist/components/atoms/UploadContainer/UploadContainer.js +47 -89
- package/dist/components/molecules/AlertModal/AlertModal.js +26 -68
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +45 -87
- package/dist/components/molecules/DialogModal/DialogModal.js +37 -79
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +25 -67
- package/dist/components/molecules/Tabs/Tabs.js +41 -83
- package/dist/lawgic-dev-kit.umd.js +243 -884
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/utils/modal.js +59 -101
- package/dist/utils/toast.js +73 -106
- package/package.json +1 -1
- package/dist/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/dist/_virtual/index.js +0 -7
- package/dist/dist/_virtual/index3.js +0 -5
- package/dist/dist/_virtual/index4.js +0 -5
- package/dist/dist/_virtual/index5.js +0 -7
- package/dist/dist/_virtual/index6.js +0 -4
- package/dist/dist/_virtual/index7.js +0 -4
- package/dist/dist/_virtual/index8.js +0 -4
- package/dist/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/dist/_virtual/lodash.js +0 -2
- package/dist/dist/_virtual/lodash2.js +0 -4
- package/dist/dist/_virtual/react-is.development.js +0 -4
- package/dist/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/dist/components/atoms/AsyncToast/index.js +0 -33
- package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +0 -5
- package/dist/dist/components/atoms/Toast/Toast.js +0 -113
- package/dist/dist/constants/countries.js +0 -8
- package/dist/dist/contexts/themeContext.js +0 -3
- package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -4
- package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -2661
- package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +0 -33
- package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +0 -266
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -205
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -147
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -23
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -37
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -92
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -47
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -46
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -33
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -53
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -45
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -32
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -68
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -85
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -59
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -53
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -14
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -34
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -608
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -229
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -66
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -37
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +0 -64
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -48
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -26
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -128
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -29
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -49
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -9
- package/dist/dist/node_modules/lodash/lodash.js +0 -3677
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +0 -12
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -9
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -5
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +0 -19
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +0 -12
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +0 -11
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +0 -16
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +0 -18
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +0 -49
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +0 -16
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +0 -11
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +0 -1
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -74
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -9
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -10
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -17
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -16
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -32
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -14
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +0 -202
- package/dist/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/dist/node_modules/motion-utils/dist/es/errors.js +0 -12
- package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +0 -6
- package/dist/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -7
- package/dist/dist/node_modules/object-assign/index.js +0 -54
- package/dist/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/dist/node_modules/prop-types/index.js +0 -17
- package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/dist/node_modules/property-expr/index.js +0 -82
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -10
- package/dist/dist/node_modules/tiny-case/index.js +0 -22
- package/dist/dist/node_modules/toposort/index.js +0 -66
- package/dist/dist/node_modules/yup/index.esm.js +0 -1359
- package/dist/dist/themes/default.js +0 -9
- package/dist/src/utils/toast.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index5.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
package/dist/utils/modal.js
CHANGED
|
@@ -1,129 +1,87 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { l as
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
1
|
+
import { j as i } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import { l as u } from "../_virtual/lodash.js";
|
|
3
|
+
import { useState as l, useRef as a, useCallback as d, useEffect as f } from "react";
|
|
4
|
+
import M from "../components/molecules/AlertModal/AlertModal.js";
|
|
5
5
|
import "../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
|
-
import "../_virtual/client.js";
|
|
7
|
-
import "../dist/_virtual/jsx-runtime.js";
|
|
8
|
-
import "../dist/node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
9
|
-
import "../dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js";
|
|
10
|
-
import "../dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js";
|
|
11
|
-
import "../dist/node_modules/motion-utils/dist/es/errors.js";
|
|
12
|
-
import "../dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js";
|
|
13
|
-
import "../dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js";
|
|
14
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/color/hex.js";
|
|
15
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js";
|
|
16
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js";
|
|
17
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js";
|
|
18
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js";
|
|
19
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
20
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
21
|
-
import "../dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js";
|
|
22
|
-
import "../dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
23
|
-
import "../dist/node_modules/framer-motion/dist/es/context/LazyContext.js";
|
|
24
|
-
import "../dist/node_modules/framer-motion/dist/es/motion/features/definitions.js";
|
|
25
|
-
import "../dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
26
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
27
|
-
import "../dist/_virtual/lodash.js";
|
|
28
|
-
import "../dist/contexts/themeContext.js";
|
|
29
|
-
import "react-hook-form";
|
|
30
|
-
import "../dist/constants/countries.js";
|
|
31
|
-
import "../dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
32
|
-
import "react-dom";
|
|
33
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js";
|
|
34
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js";
|
|
35
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js";
|
|
36
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js";
|
|
37
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js";
|
|
38
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js";
|
|
39
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js";
|
|
40
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js";
|
|
41
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
42
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
43
|
-
import "../dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js";
|
|
44
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
45
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
46
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js";
|
|
47
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
48
|
-
import "../dist/node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
49
6
|
import "../contexts/themeContext.js";
|
|
50
|
-
import
|
|
7
|
+
import w from "../components/atoms/CenterModal/CenterModal.js";
|
|
8
|
+
import "react-hook-form";
|
|
51
9
|
import "../constants/countries.js";
|
|
52
10
|
import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
53
|
-
import
|
|
54
|
-
const
|
|
55
|
-
const [
|
|
56
|
-
const
|
|
57
|
-
...
|
|
58
|
-
id: (
|
|
11
|
+
import m from "../components/molecules/DialogModal/DialogModal.js";
|
|
12
|
+
const b = () => {
|
|
13
|
+
const [p, n] = l([]), t = a([]), s = d((e) => {
|
|
14
|
+
const r = {
|
|
15
|
+
...e,
|
|
16
|
+
id: (e == null ? void 0 : e.id) || u.uniqueId(),
|
|
59
17
|
open: !0,
|
|
60
|
-
type: (
|
|
18
|
+
type: (e == null ? void 0 : e.type) || "center",
|
|
61
19
|
props: {
|
|
62
|
-
...
|
|
20
|
+
...e.props,
|
|
63
21
|
open: !0,
|
|
64
|
-
onClose: () =>
|
|
22
|
+
onClose: () => o(e.id || u.uniqueId())
|
|
65
23
|
}
|
|
66
24
|
};
|
|
67
|
-
|
|
68
|
-
}, []),
|
|
69
|
-
|
|
70
|
-
(
|
|
71
|
-
),
|
|
72
|
-
|
|
73
|
-
(
|
|
74
|
-
),
|
|
25
|
+
t.current = [...t.current, r], n(t.current);
|
|
26
|
+
}, []), o = d((e) => {
|
|
27
|
+
t.current = t.current.map(
|
|
28
|
+
(r) => r.id === e ? { ...r, open: !1 } : r
|
|
29
|
+
), n(t.current), setTimeout(() => {
|
|
30
|
+
t.current = t.current.filter(
|
|
31
|
+
(r) => r.id !== e
|
|
32
|
+
), n(t.current);
|
|
75
33
|
}, 150);
|
|
76
34
|
}, []);
|
|
77
|
-
return
|
|
78
|
-
window.openModal =
|
|
79
|
-
}, [
|
|
80
|
-
if (
|
|
81
|
-
const { props:
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
35
|
+
return f(() => {
|
|
36
|
+
window.openModal = s, window.closeModal = o;
|
|
37
|
+
}, [s, o]), /* @__PURE__ */ i.jsx(i.Fragment, { children: p.map((e) => {
|
|
38
|
+
if (e.type === "dialog") {
|
|
39
|
+
const { props: c } = e;
|
|
40
|
+
return /* @__PURE__ */ i.jsx(
|
|
41
|
+
m,
|
|
84
42
|
{
|
|
85
|
-
...
|
|
86
|
-
open:
|
|
87
|
-
onClose: () =>
|
|
43
|
+
...c,
|
|
44
|
+
open: e.open,
|
|
45
|
+
onClose: () => o(e.id)
|
|
88
46
|
},
|
|
89
|
-
|
|
47
|
+
e.id
|
|
90
48
|
);
|
|
91
49
|
}
|
|
92
|
-
if (
|
|
93
|
-
const { props:
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
-
|
|
50
|
+
if (e.type === "alert") {
|
|
51
|
+
const { props: c } = e;
|
|
52
|
+
return /* @__PURE__ */ i.jsx(
|
|
53
|
+
M,
|
|
96
54
|
{
|
|
97
|
-
...
|
|
98
|
-
open:
|
|
99
|
-
onClose: () =>
|
|
55
|
+
...c,
|
|
56
|
+
open: e.open,
|
|
57
|
+
onClose: () => o(e.id)
|
|
100
58
|
},
|
|
101
|
-
|
|
59
|
+
e.id
|
|
102
60
|
);
|
|
103
61
|
}
|
|
104
|
-
const { props:
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
|
|
62
|
+
const { props: r } = e;
|
|
63
|
+
return /* @__PURE__ */ i.jsx(
|
|
64
|
+
w,
|
|
107
65
|
{
|
|
108
|
-
...
|
|
109
|
-
open:
|
|
110
|
-
onClose: () =>
|
|
111
|
-
children: typeof
|
|
66
|
+
...r,
|
|
67
|
+
open: e.open,
|
|
68
|
+
onClose: () => o(e.id),
|
|
69
|
+
children: typeof r.children == "function" ? r.children(() => o(e.id)) : r.children
|
|
112
70
|
},
|
|
113
|
-
|
|
71
|
+
e.id
|
|
114
72
|
);
|
|
115
73
|
}) });
|
|
116
74
|
};
|
|
117
|
-
function
|
|
118
|
-
var
|
|
119
|
-
(
|
|
75
|
+
function k(p) {
|
|
76
|
+
var n;
|
|
77
|
+
(n = window == null ? void 0 : window.openModal) == null || n.call(window, p);
|
|
120
78
|
}
|
|
121
|
-
function
|
|
122
|
-
var
|
|
123
|
-
(
|
|
79
|
+
function A(p) {
|
|
80
|
+
var n;
|
|
81
|
+
(n = window == null ? void 0 : window.closeModal) == null || n.call(window, p);
|
|
124
82
|
}
|
|
125
83
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
84
|
+
b as ModalContainer,
|
|
85
|
+
A as closeModal,
|
|
86
|
+
k as openModal
|
|
129
87
|
};
|
package/dist/utils/toast.js
CHANGED
|
@@ -1,54 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import "../
|
|
4
|
-
import "../dist/node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
5
|
-
import { AsyncToast as u } from "../dist/components/atoms/AsyncToast/index.js";
|
|
1
|
+
import { j as d } from "../_virtual/jsx-runtime.js";
|
|
2
|
+
import "../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
3
|
+
import { AsyncToast as u } from "../components/atoms/AsyncToast/index.js";
|
|
6
4
|
import "react";
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
5
|
+
import "../_virtual/lodash.js";
|
|
6
|
+
import "../contexts/themeContext.js";
|
|
9
7
|
import "react-hook-form";
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js";
|
|
18
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js";
|
|
19
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js";
|
|
20
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js";
|
|
21
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
22
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
23
|
-
import "../dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js";
|
|
24
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
25
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
26
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js";
|
|
27
|
-
import "../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
28
|
-
import "../dist/node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
29
|
-
import b from "../dist/components/atoms/Toast/Toast.js";
|
|
30
|
-
import "../dist/node_modules/motion-utils/dist/es/errors.js";
|
|
31
|
-
import "../dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js";
|
|
32
|
-
import "../dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js";
|
|
33
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/color/hex.js";
|
|
34
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js";
|
|
35
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js";
|
|
36
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js";
|
|
37
|
-
import "../dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js";
|
|
38
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
39
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
40
|
-
import "../dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js";
|
|
41
|
-
import "../dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
42
|
-
import "../dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js";
|
|
43
|
-
import "../dist/node_modules/framer-motion/dist/es/context/LazyContext.js";
|
|
44
|
-
import "../dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js";
|
|
45
|
-
import "../dist/node_modules/framer-motion/dist/es/motion/features/definitions.js";
|
|
46
|
-
import "../dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
47
|
-
import "../dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
48
|
-
const a = [];
|
|
49
|
-
function d(o = "bottom-center") {
|
|
50
|
-
var e;
|
|
51
|
-
if (!a.find((t) => t.id === o)) {
|
|
8
|
+
import "../constants/countries.js";
|
|
9
|
+
import "../components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
10
|
+
import h from "../components/atoms/Toast/Toast.js";
|
|
11
|
+
const m = [];
|
|
12
|
+
function l(e = "bottom-center") {
|
|
13
|
+
var o;
|
|
14
|
+
if (!m.find((t) => t.id === e)) {
|
|
52
15
|
const t = document.createElement("div");
|
|
53
16
|
switch (t.classList.add(
|
|
54
17
|
"fixed",
|
|
@@ -58,7 +21,7 @@ function d(o = "bottom-center") {
|
|
|
58
21
|
"items-center",
|
|
59
22
|
"w-fit",
|
|
60
23
|
"min-w-[18rem]"
|
|
61
|
-
),
|
|
24
|
+
), e) {
|
|
62
25
|
case "top-left":
|
|
63
26
|
t.classList.add("top-8", "left-8");
|
|
64
27
|
break;
|
|
@@ -82,70 +45,74 @@ function d(o = "bottom-center") {
|
|
|
82
45
|
"-translate-x-1/2"
|
|
83
46
|
);
|
|
84
47
|
}
|
|
85
|
-
|
|
48
|
+
m.push({ id: e, element: t }), document.body.appendChild(t);
|
|
86
49
|
}
|
|
87
|
-
return (
|
|
50
|
+
return (o = m.find((t) => t.id === e)) == null ? void 0 : o.element;
|
|
88
51
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
52
|
+
function i(e, o = "success", { position: t = "top-right", duration: a = 3e3 } = {}) {
|
|
53
|
+
import("../_virtual/client.js").then((n) => n.c).then(({ createRoot: n }) => {
|
|
54
|
+
const s = l(t);
|
|
55
|
+
if (!s) return;
|
|
56
|
+
const r = document.createElement("div"), c = n(r), f = () => {
|
|
57
|
+
c.unmount(), s.removeChild(r);
|
|
58
|
+
};
|
|
59
|
+
c.render(
|
|
60
|
+
/* @__PURE__ */ d.jsx(
|
|
61
|
+
h,
|
|
62
|
+
{
|
|
63
|
+
content: e,
|
|
64
|
+
type: o,
|
|
65
|
+
duration: a,
|
|
66
|
+
onClose: f
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
), s.prepend(r), setTimeout(() => {
|
|
70
|
+
r.classList.add("mt-[0.5rem]");
|
|
71
|
+
}, 10);
|
|
72
|
+
});
|
|
108
73
|
}
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
},
|
|
74
|
+
const p = (e, o, t = {}) => {
|
|
75
|
+
import("../_virtual/client.js").then((a) => a.c).then(({ createRoot: a }) => {
|
|
76
|
+
const n = l(t.position);
|
|
77
|
+
if (!n) return;
|
|
78
|
+
const s = document.createElement("div"), r = a(s), c = () => {
|
|
79
|
+
r.unmount(), n.removeChild(s);
|
|
80
|
+
};
|
|
81
|
+
r.render(
|
|
82
|
+
/* @__PURE__ */ d.jsx(
|
|
83
|
+
u,
|
|
84
|
+
{
|
|
85
|
+
promise: e,
|
|
86
|
+
messages: o,
|
|
87
|
+
options: t,
|
|
88
|
+
onClose: c
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
), n.prepend(s), setTimeout(() => {
|
|
92
|
+
s.classList.add("mt-[0.5rem]");
|
|
93
|
+
}, 10);
|
|
94
|
+
});
|
|
95
|
+
}, b = (e, o = {}) => {
|
|
129
96
|
let t = () => {
|
|
130
|
-
},
|
|
97
|
+
}, a = () => {
|
|
131
98
|
};
|
|
132
|
-
const
|
|
133
|
-
t =
|
|
99
|
+
const n = new Promise((s, r) => {
|
|
100
|
+
t = s, a = r;
|
|
134
101
|
});
|
|
135
|
-
return
|
|
102
|
+
return p(n, e, o), {
|
|
136
103
|
resolve: t,
|
|
137
|
-
reject:
|
|
104
|
+
reject: a
|
|
138
105
|
};
|
|
139
|
-
},
|
|
140
|
-
success: (
|
|
141
|
-
error: (
|
|
142
|
-
warning: (
|
|
143
|
-
info: (
|
|
144
|
-
async: (
|
|
145
|
-
loading: (
|
|
106
|
+
}, y = {
|
|
107
|
+
success: (e, o = {}) => i(e, "success", o),
|
|
108
|
+
error: (e, o = {}) => i(e, "error", o),
|
|
109
|
+
warning: (e, o = {}) => i(e, "warning", o),
|
|
110
|
+
info: (e, o = {}) => i(e, "info", o),
|
|
111
|
+
async: (e, o, t = {}) => p(e, o, t),
|
|
112
|
+
loading: (e, o = {}) => b(e, o)
|
|
146
113
|
};
|
|
147
114
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
115
|
+
p as showToastAsync,
|
|
116
|
+
b as showToastLoading,
|
|
117
|
+
y as toast
|
|
151
118
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function t(o) {
|
|
3
|
-
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
l as commonjsGlobal,
|
|
7
|
-
t as getDefaultExportFromCjs
|
|
8
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useState as i, useEffect as m } from "react";
|
|
3
|
-
import p from "../Toast/Toast.js";
|
|
4
|
-
const g = ({
|
|
5
|
-
promise: e,
|
|
6
|
-
messages: o,
|
|
7
|
-
options: s,
|
|
8
|
-
onClose: r
|
|
9
|
-
}) => {
|
|
10
|
-
const [l, n] = i("loading"), [c, t] = i(o.loading);
|
|
11
|
-
return m(() => {
|
|
12
|
-
e.then(() => {
|
|
13
|
-
console.log("promise resolved"), n("success"), t(o.success);
|
|
14
|
-
}).catch(() => {
|
|
15
|
-
console.log("promise rejected"), n("error"), t(o.error);
|
|
16
|
-
}).finally(() => {
|
|
17
|
-
console.log("promise finally"), setTimeout(() => {
|
|
18
|
-
r();
|
|
19
|
-
}, (s == null ? void 0 : s.duration) || 3e3);
|
|
20
|
-
});
|
|
21
|
-
}, [e]), /* @__PURE__ */ a.jsx(
|
|
22
|
-
p,
|
|
23
|
-
{
|
|
24
|
-
content: c,
|
|
25
|
-
type: l,
|
|
26
|
-
duration: s.duration,
|
|
27
|
-
onClose: r
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
g as AsyncToast
|
|
33
|
-
};
|