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
|
@@ -1,124 +1,184 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { faChevronRight as
|
|
3
|
-
import { faChevronLeft as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { FontAwesomeIcon as
|
|
2
|
+
import { faChevronRight as oe } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
3
|
+
import { faChevronLeft as ne } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
|
|
4
|
+
import { useState as d, useEffect as $, useRef as H } from "react";
|
|
5
|
+
import { FontAwesomeIcon as se } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
6
|
import "../../../_virtual/lodash.js";
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { faChevronDown as
|
|
7
|
+
import { useTheme as ie } from "../../../hooks/useTheme.js";
|
|
8
|
+
import Y from "../FloatingMenu/FloatingMenu.js";
|
|
9
|
+
import ae from "./PeriodToggle.js";
|
|
10
|
+
import le from "./TimeDisplay.js";
|
|
11
|
+
import { faChevronDown as me } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
12
12
|
import "react-hook-form";
|
|
13
|
+
import "../../../_virtual/client.js";
|
|
14
|
+
import "../../../dist/_virtual/jsx-runtime.js";
|
|
15
|
+
import "../../../dist/node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
16
|
+
import "../../../dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js";
|
|
17
|
+
import "../../../dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js";
|
|
18
|
+
import "../../../dist/node_modules/motion-utils/dist/es/errors.js";
|
|
19
|
+
import "../../../dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js";
|
|
20
|
+
import "../../../dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js";
|
|
21
|
+
import "../../../dist/node_modules/framer-motion/dist/es/value/types/color/hex.js";
|
|
22
|
+
import "../../../dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js";
|
|
23
|
+
import "../../../dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js";
|
|
24
|
+
import "../../../dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js";
|
|
25
|
+
import "../../../dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js";
|
|
26
|
+
import "../../../dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
27
|
+
import "../../../dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
28
|
+
import "../../../dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js";
|
|
29
|
+
import "../../../dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
30
|
+
import "../../../dist/node_modules/framer-motion/dist/es/context/LazyContext.js";
|
|
31
|
+
import "../../../dist/node_modules/framer-motion/dist/es/motion/features/definitions.js";
|
|
32
|
+
import "../../../dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
33
|
+
import "../../../dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
34
|
+
import "../../../dist/_virtual/lodash.js";
|
|
35
|
+
import "../../../dist/contexts/themeContext.js";
|
|
36
|
+
import "../../../dist/constants/countries.js";
|
|
37
|
+
import "../../../dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
13
38
|
import "react-dom";
|
|
39
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js";
|
|
40
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js";
|
|
41
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js";
|
|
42
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js";
|
|
43
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js";
|
|
44
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js";
|
|
45
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js";
|
|
46
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js";
|
|
47
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js";
|
|
48
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js";
|
|
49
|
+
import "../../../dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js";
|
|
50
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js";
|
|
51
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js";
|
|
52
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js";
|
|
53
|
+
import "../../../dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js";
|
|
54
|
+
import "../../../dist/node_modules/@floating-ui/react/dist/floating-ui.react.js";
|
|
14
55
|
import "../../../constants/countries.js";
|
|
15
|
-
import
|
|
56
|
+
import I from "../../atoms/IconButton/IconButton.js";
|
|
16
57
|
import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
|
|
17
|
-
import { AnimatePresence as
|
|
18
|
-
import { motion as
|
|
19
|
-
import { startOfWeek as
|
|
20
|
-
import { startOfMonth as
|
|
21
|
-
import { endOfWeek as
|
|
22
|
-
import { endOfMonth as
|
|
23
|
-
import { eachDayOfInterval as
|
|
24
|
-
import { isSameDay as
|
|
25
|
-
import { isSameMonth as
|
|
26
|
-
import { isToday as
|
|
27
|
-
import { subMonths as
|
|
28
|
-
import { addMonths as
|
|
29
|
-
import { setHours as
|
|
30
|
-
import { setMinutes as
|
|
31
|
-
import { setSeconds as
|
|
32
|
-
import { formatDate as
|
|
33
|
-
import { es as
|
|
34
|
-
const
|
|
35
|
-
date:
|
|
36
|
-
onDateChange:
|
|
37
|
-
showTimeSelector:
|
|
38
|
-
maxDate:
|
|
58
|
+
import { AnimatePresence as ce } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
59
|
+
import { motion as B } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
60
|
+
import { startOfWeek as pe } from "../../../node_modules/date-fns/startOfWeek.js";
|
|
61
|
+
import { startOfMonth as de } from "../../../node_modules/date-fns/startOfMonth.js";
|
|
62
|
+
import { endOfWeek as ue } from "../../../node_modules/date-fns/endOfWeek.js";
|
|
63
|
+
import { endOfMonth as fe } from "../../../node_modules/date-fns/endOfMonth.js";
|
|
64
|
+
import { eachDayOfInterval as xe } from "../../../node_modules/date-fns/eachDayOfInterval.js";
|
|
65
|
+
import { isSameDay as he } from "../../../node_modules/date-fns/isSameDay.js";
|
|
66
|
+
import { isSameMonth as ge } from "../../../node_modules/date-fns/isSameMonth.js";
|
|
67
|
+
import { isToday as Me } from "../../../node_modules/date-fns/isToday.js";
|
|
68
|
+
import { subMonths as ye } from "../../../node_modules/date-fns/subMonths.js";
|
|
69
|
+
import { addMonths as ve } from "../../../node_modules/date-fns/addMonths.js";
|
|
70
|
+
import { setHours as U } from "../../../node_modules/date-fns/setHours.js";
|
|
71
|
+
import { setMinutes as R } from "../../../node_modules/date-fns/setMinutes.js";
|
|
72
|
+
import { setSeconds as L } from "../../../node_modules/date-fns/setSeconds.js";
|
|
73
|
+
import { formatDate as u } from "../../../node_modules/date-fns/format.js";
|
|
74
|
+
import { es as h } from "../../../node_modules/date-fns/locale/es.js";
|
|
75
|
+
const Lt = ({
|
|
76
|
+
date: m,
|
|
77
|
+
onDateChange: S,
|
|
78
|
+
showTimeSelector: _ = !0,
|
|
79
|
+
maxDate: g
|
|
39
80
|
}) => {
|
|
40
|
-
const [i,
|
|
41
|
-
|
|
42
|
-
), [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, [
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
81
|
+
const [i, M] = d(m), [E, w] = d(m), [y, k] = d(m.getHours() % 12 || 12), [b, A] = d(
|
|
82
|
+
m.getHours() >= 12 ? "PM" : "AM"
|
|
83
|
+
), [C, O] = d(0), { t: W } = ie(), [P, j] = d(!1), [T, N] = d(!1);
|
|
84
|
+
$(() => {
|
|
85
|
+
M(m), w(m), k(m.getHours() % 12 || 12), A(m.getHours() >= 12 ? "PM" : "AM");
|
|
86
|
+
}, [m]);
|
|
87
|
+
const q = () => {
|
|
88
|
+
O(-1), setTimeout(() => {
|
|
89
|
+
M(ye(i));
|
|
49
90
|
}, 10);
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
91
|
+
}, z = () => {
|
|
92
|
+
O(1), setTimeout(() => {
|
|
93
|
+
M(ve(i, 1));
|
|
53
94
|
}, 10);
|
|
54
|
-
},
|
|
55
|
-
if (
|
|
95
|
+
}, G = (t) => {
|
|
96
|
+
if (g && t > g)
|
|
56
97
|
return;
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
98
|
+
const s = U(
|
|
99
|
+
R(L(t, 0), 0),
|
|
100
|
+
b === "AM" ? y % 12 : y % 12 + 12
|
|
60
101
|
);
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
102
|
+
w(s), S(s);
|
|
103
|
+
}, J = (t) => {
|
|
104
|
+
k(t);
|
|
105
|
+
const s = U(
|
|
106
|
+
R(L(E, 0), 0),
|
|
107
|
+
b === "AM" ? t % 12 : t % 12 + 12
|
|
67
108
|
);
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
),
|
|
80
|
-
index: s.getMonth(),
|
|
81
|
-
year: s.getFullYear(),
|
|
82
|
-
displayName: `${m(s, "MMMM", { locale: j }).replace(
|
|
109
|
+
w(s), S(s), j(!1);
|
|
110
|
+
}, K = (t) => {
|
|
111
|
+
A(t);
|
|
112
|
+
}, Q = () => {
|
|
113
|
+
const t = /* @__PURE__ */ new Date(), s = 20, c = 5, [n, D] = d(() => Array.from({ length: s + 1 }, (r, l) => {
|
|
114
|
+
const o = new Date(t.getFullYear(), t.getMonth() - l, 1);
|
|
115
|
+
return {
|
|
116
|
+
name: u(o, "MMMM", { locale: h }).replace(/^./, (f) => f.toUpperCase()),
|
|
117
|
+
index: o.getMonth(),
|
|
118
|
+
year: o.getFullYear(),
|
|
119
|
+
displayName: `${u(o, "MMMM", { locale: h }).replace(
|
|
83
120
|
/^./,
|
|
84
|
-
(
|
|
85
|
-
)} ${
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
121
|
+
(f) => f.toUpperCase()
|
|
122
|
+
)} ${o.getFullYear()}`
|
|
123
|
+
};
|
|
124
|
+
})), a = H(null), p = H(null);
|
|
125
|
+
$(() => {
|
|
126
|
+
a.current && a.current.disconnect(), a.current = new IntersectionObserver((r) => {
|
|
127
|
+
r[0].isIntersecting && D((l) => {
|
|
128
|
+
const o = l[l.length - 1], f = new Date(o.year, o.index - 1, 1), te = Array.from({ length: c }, (we, re) => {
|
|
129
|
+
const x = new Date(f.getFullYear(), f.getMonth() - re, 1);
|
|
130
|
+
return {
|
|
131
|
+
name: u(x, "MMMM", { locale: h }).replace(/^./, (F) => F.toUpperCase()),
|
|
132
|
+
index: x.getMonth(),
|
|
133
|
+
year: x.getFullYear(),
|
|
134
|
+
displayName: `${u(x, "MMMM", { locale: h }).replace(
|
|
135
|
+
/^./,
|
|
136
|
+
(F) => F.toUpperCase()
|
|
137
|
+
)} ${x.getFullYear()}`
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
return [...l, ...te];
|
|
141
|
+
});
|
|
142
|
+
}), p.current && a.current.observe(p.current);
|
|
143
|
+
}, [n]);
|
|
144
|
+
const v = (r, l) => {
|
|
145
|
+
const o = new Date(i);
|
|
146
|
+
o.setMonth(r), o.setFullYear(l), M(o), N(!1);
|
|
91
147
|
};
|
|
92
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4", children: n.map((
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
148
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4", children: n.map((r, l) => {
|
|
149
|
+
const o = l === n.length - 1;
|
|
150
|
+
return /* @__PURE__ */ e.jsx(
|
|
151
|
+
"button",
|
|
152
|
+
{
|
|
153
|
+
ref: o ? p : null,
|
|
154
|
+
onClick: () => v(r.index, r.year),
|
|
155
|
+
className: `text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${i.getMonth() === r.index && i.getFullYear() === r.year ? "bg-blue-100" : ""}`,
|
|
156
|
+
children: r.displayName
|
|
157
|
+
},
|
|
158
|
+
`${r.name}-${r.year}-${l}`
|
|
159
|
+
);
|
|
160
|
+
}) });
|
|
161
|
+
}, V = () => /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-8", children: [
|
|
102
162
|
/* @__PURE__ */ e.jsx(
|
|
103
|
-
|
|
163
|
+
Y,
|
|
104
164
|
{
|
|
105
|
-
open:
|
|
106
|
-
onClose: () =>
|
|
107
|
-
component:
|
|
165
|
+
open: T,
|
|
166
|
+
onClose: () => N(!1),
|
|
167
|
+
component: Q,
|
|
108
168
|
placement: "bottom",
|
|
109
169
|
className: "!p-0 overflow-hidden bg-light",
|
|
110
170
|
strategy: "fixed",
|
|
111
171
|
children: /* @__PURE__ */ e.jsxs(
|
|
112
172
|
"button",
|
|
113
173
|
{
|
|
114
|
-
onClick: () =>
|
|
174
|
+
onClick: () => N(!T),
|
|
115
175
|
className: "hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",
|
|
116
176
|
children: [
|
|
117
|
-
/* @__PURE__ */ e.jsx("h4", { className: "text-header-4", children:
|
|
177
|
+
/* @__PURE__ */ e.jsx("h4", { className: "text-header-4", children: u(i, "MMMM yyyy", { locale: h }).replace(
|
|
118
178
|
/^./,
|
|
119
|
-
(
|
|
179
|
+
(t) => t.toUpperCase()
|
|
120
180
|
) }),
|
|
121
|
-
/* @__PURE__ */ e.jsx(
|
|
181
|
+
/* @__PURE__ */ e.jsx(se, { icon: me, className: "w-12 h-12" })
|
|
122
182
|
]
|
|
123
183
|
}
|
|
124
184
|
)
|
|
@@ -126,41 +186,41 @@ const ze = ({
|
|
|
126
186
|
),
|
|
127
187
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
128
188
|
/* @__PURE__ */ e.jsx(
|
|
129
|
-
|
|
189
|
+
I,
|
|
130
190
|
{
|
|
131
191
|
variant: "transparent",
|
|
132
192
|
color: "gray",
|
|
133
|
-
icon:
|
|
134
|
-
onClick:
|
|
193
|
+
icon: ne,
|
|
194
|
+
onClick: q
|
|
135
195
|
}
|
|
136
196
|
),
|
|
137
197
|
/* @__PURE__ */ e.jsx(
|
|
138
|
-
|
|
198
|
+
I,
|
|
139
199
|
{
|
|
140
200
|
variant: "transparent",
|
|
141
201
|
color: "gray",
|
|
142
|
-
icon:
|
|
143
|
-
onClick:
|
|
202
|
+
icon: oe,
|
|
203
|
+
onClick: z
|
|
144
204
|
}
|
|
145
205
|
)
|
|
146
206
|
] })
|
|
147
|
-
] }),
|
|
148
|
-
const
|
|
149
|
-
return /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-7 gap-2", children:
|
|
150
|
-
const
|
|
207
|
+
] }), X = () => {
|
|
208
|
+
const t = pe(de(i)), s = ue(fe(i)), c = xe({ start: t, end: s });
|
|
209
|
+
return /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-7 gap-2", children: c.map((n, D) => {
|
|
210
|
+
const a = he(n, E), p = ge(n, i), v = Me(n), r = g ? n > g : !1;
|
|
151
211
|
return /* @__PURE__ */ e.jsx(
|
|
152
|
-
|
|
212
|
+
B.div,
|
|
153
213
|
{
|
|
154
214
|
className: `
|
|
155
215
|
p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
|
|
156
|
-
${!
|
|
157
|
-
${
|
|
216
|
+
${!p || r ? "text-gray-400 pointer-events-none" : "cursor-pointer"}
|
|
217
|
+
${v && !a ? "text-blue-600" : ""}
|
|
158
218
|
`,
|
|
159
|
-
onClick: () =>
|
|
219
|
+
onClick: () => G(n),
|
|
160
220
|
initial: !1,
|
|
161
221
|
animate: {
|
|
162
|
-
backgroundColor:
|
|
163
|
-
color:
|
|
222
|
+
backgroundColor: a ? "#93C5FD" : "transparent",
|
|
223
|
+
color: a ? "#FFFFFF" : v ? "#2563EB" : p && !r ? "#000000" : "#9CA3AF"
|
|
164
224
|
},
|
|
165
225
|
transition: {
|
|
166
226
|
duration: 0.2,
|
|
@@ -170,62 +230,62 @@ const ze = ({
|
|
|
170
230
|
ease: "easeOut"
|
|
171
231
|
}
|
|
172
232
|
},
|
|
173
|
-
whileHover:
|
|
233
|
+
whileHover: p && !a && !r ? {
|
|
174
234
|
backgroundColor: "#E5E7EB"
|
|
175
235
|
} : {},
|
|
176
|
-
whileTap:
|
|
177
|
-
backgroundColor:
|
|
236
|
+
whileTap: p && !r ? {
|
|
237
|
+
backgroundColor: a ? "#7AA5E0" : "#D1D5DB"
|
|
178
238
|
} : {},
|
|
179
|
-
children:
|
|
239
|
+
children: u(n, "d")
|
|
180
240
|
},
|
|
181
|
-
|
|
241
|
+
D
|
|
182
242
|
);
|
|
183
243
|
}) });
|
|
184
|
-
},
|
|
185
|
-
const
|
|
244
|
+
}, Z = () => {
|
|
245
|
+
const t = Array.from({ length: 12 }, (c, n) => n + 1), s = () => /* @__PURE__ */ e.jsx("div", { className: "bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4", children: t.map((c) => /* @__PURE__ */ e.jsxs(
|
|
186
246
|
"button",
|
|
187
247
|
{
|
|
188
|
-
onClick: () =>
|
|
189
|
-
className: `w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${
|
|
248
|
+
onClick: () => J(c),
|
|
249
|
+
className: `w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${c === y ? "text-blue-500 font-medium" : ""}`,
|
|
190
250
|
children: [
|
|
191
|
-
String(
|
|
251
|
+
String(c).padStart(2, "0"),
|
|
192
252
|
":00"
|
|
193
253
|
]
|
|
194
254
|
},
|
|
195
|
-
|
|
255
|
+
c
|
|
196
256
|
)) });
|
|
197
257
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mt-4 mb-4", children: [
|
|
198
|
-
/* @__PURE__ */ e.jsx("h4", { className: "text-body-m font-medium", children:
|
|
258
|
+
/* @__PURE__ */ e.jsx("h4", { className: "text-body-m font-medium", children: W("time") }),
|
|
199
259
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-6", children: [
|
|
200
260
|
/* @__PURE__ */ e.jsx(
|
|
201
|
-
|
|
261
|
+
Y,
|
|
202
262
|
{
|
|
203
|
-
open:
|
|
204
|
-
onClose: () =>
|
|
205
|
-
component:
|
|
263
|
+
open: P,
|
|
264
|
+
onClose: () => j(!1),
|
|
265
|
+
component: s,
|
|
206
266
|
placement: "bottom",
|
|
207
267
|
className: "!p-0 overflow-hidden",
|
|
208
268
|
strategy: "fixed",
|
|
209
269
|
children: /* @__PURE__ */ e.jsx(
|
|
210
|
-
|
|
270
|
+
le,
|
|
211
271
|
{
|
|
212
|
-
setHourMenuOpen:
|
|
213
|
-
hourMenuOpen:
|
|
214
|
-
selectedHour:
|
|
272
|
+
setHourMenuOpen: j,
|
|
273
|
+
hourMenuOpen: P,
|
|
274
|
+
selectedHour: y
|
|
215
275
|
}
|
|
216
276
|
)
|
|
217
277
|
}
|
|
218
278
|
),
|
|
219
279
|
/* @__PURE__ */ e.jsx(
|
|
220
|
-
|
|
280
|
+
ae,
|
|
221
281
|
{
|
|
222
|
-
selectedPeriod:
|
|
223
|
-
handlePeriodChange:
|
|
282
|
+
selectedPeriod: b,
|
|
283
|
+
handlePeriodChange: K
|
|
224
284
|
}
|
|
225
285
|
)
|
|
226
286
|
] })
|
|
227
287
|
] });
|
|
228
|
-
},
|
|
288
|
+
}, ee = {
|
|
229
289
|
slideNextEnter: {
|
|
230
290
|
x: 300,
|
|
231
291
|
opacity: 0
|
|
@@ -260,22 +320,22 @@ const ze = ({
|
|
|
260
320
|
}
|
|
261
321
|
};
|
|
262
322
|
return /* @__PURE__ */ e.jsxs("div", { className: "rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden", children: [
|
|
263
|
-
|
|
264
|
-
/* @__PURE__ */ e.jsx(
|
|
265
|
-
|
|
323
|
+
V(),
|
|
324
|
+
/* @__PURE__ */ e.jsx(ce, { initial: !1, mode: "popLayout", children: /* @__PURE__ */ e.jsx(
|
|
325
|
+
B.div,
|
|
266
326
|
{
|
|
267
|
-
variants:
|
|
268
|
-
initial:
|
|
327
|
+
variants: ee,
|
|
328
|
+
initial: C === 1 ? "slideNextEnter" : C === -1 ? "slidePrevEnter" : !1,
|
|
269
329
|
animate: "center",
|
|
270
|
-
exit:
|
|
330
|
+
exit: C === 1 ? "slideNextExit" : "slidePrevExit",
|
|
271
331
|
className: "w-full",
|
|
272
|
-
children:
|
|
332
|
+
children: X()
|
|
273
333
|
},
|
|
274
|
-
|
|
334
|
+
u(i, "yyyy-MM")
|
|
275
335
|
) }),
|
|
276
|
-
|
|
336
|
+
_ && Z()
|
|
277
337
|
] });
|
|
278
338
|
};
|
|
279
339
|
export {
|
|
280
|
-
|
|
340
|
+
Lt as default
|
|
281
341
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
2
|
export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
4
3
|
control: Control<T>;
|
|
@@ -6,6 +5,7 @@ export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
|
6
5
|
label?: string;
|
|
7
6
|
placeholder?: string;
|
|
8
7
|
showTimeSelector?: boolean;
|
|
8
|
+
translateKey?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, placeholder }: DateInputProps<T>) => React.ReactElement;
|
|
10
|
+
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder }: DateInputProps<T>) => React.ReactElement;
|
|
11
11
|
export default DateInput;
|
|
@@ -1,66 +1,79 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useController as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useTheme as
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { j as m } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useState as C, useEffect as F } from "react";
|
|
3
|
+
import { useController as M } from "react-hook-form";
|
|
4
|
+
import { faX as E } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
5
|
+
import { FontAwesomeIcon as V } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
6
|
+
import k from "../FloatingMenu/FloatingMenu.js";
|
|
7
|
+
import A from "../CalendarSelector/CalendarSelector.js";
|
|
8
|
+
import B from "../../atoms/UncontrolledTextInput/UncontrolledTextInput.js";
|
|
9
|
+
import { useTheme as K } from "../../../hooks/useTheme.js";
|
|
10
|
+
import { formatDate as O } from "../../../node_modules/date-fns/format.js";
|
|
11
|
+
const D = (a) => O(a, "dd/MM/yyyy"), N = (a) => {
|
|
12
|
+
const [t, n, o] = a.split("/");
|
|
13
|
+
if ((t == null ? void 0 : t.length) === 2 && (n == null ? void 0 : n.length) === 2 && (o == null ? void 0 : o.length) === 4) {
|
|
14
|
+
const l = new Date(Number(o), Number(n) - 1, Number(t));
|
|
15
|
+
return isNaN(l.getTime()) ? null : l;
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}, Q = ({ control: a, name: t, showTimeSelector: n = !1, label: o, translateKey: l = "", placeholder: j }) => {
|
|
16
19
|
const {
|
|
17
|
-
field: { value:
|
|
18
|
-
fieldState: { error:
|
|
19
|
-
} =
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
field: { value: i, onChange: p, onBlur: I },
|
|
21
|
+
fieldState: { error: u }
|
|
22
|
+
} = M({ name: t, control: a }), { t: g } = K(), b = g(t), S = g(l), [T, c] = C(!1), [h, r] = C("");
|
|
23
|
+
F(() => {
|
|
24
|
+
i instanceof Date && !isNaN(i.getTime()) ? r(D(i)) : r("");
|
|
25
|
+
}, [i]);
|
|
26
|
+
const x = N(h), v = (e) => {
|
|
27
|
+
const s = e.replace(/\D/g, "").slice(0, 8), f = [];
|
|
28
|
+
s.length > 0 && f.push(s.slice(0, 2)), s.length > 2 && f.push(s.slice(2, 4)), s.length > 4 && f.push(s.slice(4, 8));
|
|
29
|
+
const d = f.join("/");
|
|
30
|
+
if (r(d), c(!1), d.length === 10) {
|
|
31
|
+
const y = N(d);
|
|
32
|
+
p(y);
|
|
33
|
+
}
|
|
34
|
+
}, w = () => {
|
|
35
|
+
p(null), r("");
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ m.jsx(
|
|
38
|
+
k,
|
|
22
39
|
{
|
|
23
|
-
open:
|
|
40
|
+
open: T,
|
|
24
41
|
strategy: "fixed",
|
|
25
42
|
padding: 0,
|
|
26
43
|
offset: 0,
|
|
27
|
-
onClose: () =>
|
|
28
|
-
className: "
|
|
29
|
-
component: /* @__PURE__ */
|
|
30
|
-
|
|
44
|
+
onClose: () => c(!1),
|
|
45
|
+
className: "p-0!",
|
|
46
|
+
component: /* @__PURE__ */ m.jsx(
|
|
47
|
+
A,
|
|
31
48
|
{
|
|
32
|
-
date:
|
|
33
|
-
onDateChange: (
|
|
34
|
-
|
|
49
|
+
date: x || /* @__PURE__ */ new Date(),
|
|
50
|
+
onDateChange: (e) => {
|
|
51
|
+
r(D(e)), p(e), c(!1);
|
|
35
52
|
},
|
|
36
|
-
showTimeSelector:
|
|
53
|
+
showTimeSelector: n,
|
|
54
|
+
maxDate: /* @__PURE__ */ new Date()
|
|
37
55
|
}
|
|
38
56
|
),
|
|
39
|
-
children: /* @__PURE__ */
|
|
40
|
-
|
|
57
|
+
children: /* @__PURE__ */ m.jsx(
|
|
58
|
+
B,
|
|
41
59
|
{
|
|
42
|
-
onBlur:
|
|
43
|
-
name:
|
|
44
|
-
label:
|
|
45
|
-
|
|
46
|
-
|
|
60
|
+
onBlur: I,
|
|
61
|
+
name: S || b,
|
|
62
|
+
label: o,
|
|
63
|
+
value: h,
|
|
64
|
+
onFocus: (e) => {
|
|
65
|
+
e.preventDefault(), c(!0);
|
|
47
66
|
},
|
|
48
|
-
value: e && v(e) || "",
|
|
49
67
|
disabledInput: !0,
|
|
50
|
-
onChange: () =>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
placeholder: i,
|
|
57
|
-
error: o == null ? void 0 : o.message,
|
|
58
|
-
rightSide: e && /* @__PURE__ */ t.jsx(
|
|
59
|
-
D,
|
|
68
|
+
onChange: (e) => v(e),
|
|
69
|
+
placeholder: j,
|
|
70
|
+
error: u == null ? void 0 : u.message,
|
|
71
|
+
rightSide: !!x && /* @__PURE__ */ m.jsx(
|
|
72
|
+
V,
|
|
60
73
|
{
|
|
61
|
-
icon:
|
|
74
|
+
icon: E,
|
|
62
75
|
className: "text-gray-500 cursor-pointer",
|
|
63
|
-
onClick:
|
|
76
|
+
onClick: w
|
|
64
77
|
}
|
|
65
78
|
)
|
|
66
79
|
}
|
|
@@ -69,5 +82,5 @@ const O = ({ control: l, name: n, showTimeSelector: m = !1, label: p, placeholde
|
|
|
69
82
|
);
|
|
70
83
|
};
|
|
71
84
|
export {
|
|
72
|
-
|
|
85
|
+
Q as default
|
|
73
86
|
};
|