lawgic-dev-kit 0.2.4 → 0.3.4
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/_commonjsHelpers.js +8 -0
- package/dist/_virtual/client.js +5 -0
- package/dist/_virtual/client2.js +4 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index5.js +7 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/_virtual/jsx-runtime2.js +4 -0
- package/dist/_virtual/lodash.js +5 -0
- package/dist/_virtual/lodash2.js +4 -0
- package/dist/_virtual/react-dom-client.development.js +4 -0
- package/dist/_virtual/react-dom-client.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.js +4 -0
- package/dist/_virtual/scheduler.development.js +4 -0
- package/dist/_virtual/scheduler.production.js +4 -0
- package/dist/components/atoms/ActionButton/ActionButton.js +51 -0
- package/dist/components/atoms/AsyncToast/index.js +33 -0
- package/dist/components/atoms/Avatar/Avatar.js +100 -0
- package/dist/components/atoms/BoxContainer/BoxContainer.js +18 -0
- package/dist/components/atoms/Button/Button.js +25 -0
- package/dist/components/atoms/Button/Button.styles.js +43 -0
- package/dist/components/atoms/CenterModal/CenterModal.js +79 -0
- package/dist/components/atoms/CountrySelectInput/CountryDropdown.js +256 -0
- package/dist/components/atoms/Divider/Divider.js +5 -0
- package/dist/components/atoms/FullLogo/FullLogo.js +21 -0
- package/dist/components/atoms/IconButton/IconButton.js +35 -0
- package/dist/components/atoms/IconButton/IconButton.styles.js +34 -0
- package/dist/components/atoms/ImageProfileInput/ImageProfileInput.js +115 -0
- package/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +8 -0
- package/dist/components/atoms/InfoCard/InfoCard.js +17 -0
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +20 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.js +91 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.js +23 -0
- package/dist/components/atoms/SearchBar/index.js +44 -0
- package/dist/components/atoms/SectionButton/SectionButton.js +10 -0
- package/dist/components/atoms/SectionButton/desktop/SectionButton.js +60 -0
- package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.js +11 -0
- package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +19 -0
- package/dist/components/atoms/SectionButton/mobile/SectionButton.js +59 -0
- package/dist/components/atoms/SelectDropdown/SelectDropdown.js +178 -0
- package/dist/components/atoms/Tab/Tab.js +23 -0
- package/dist/components/atoms/Tab/Tab.styles.js +15 -0
- package/dist/components/atoms/TextButton/TextButton.js +23 -0
- package/dist/components/atoms/TextButton/TextButton.styles.js +13 -0
- package/dist/components/atoms/TextInput/TextInput.js +81 -0
- package/dist/components/atoms/Toast/Toast.js +113 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +58 -0
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +80 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.js +115 -0
- package/dist/components/molecules/AlertModal/AlertModal.js +112 -0
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +221 -0
- package/dist/components/molecules/CalendarSelector/PeriodToggle.js +51 -0
- package/dist/components/molecules/CalendarSelector/TimeDisplay.js +16 -0
- package/dist/components/molecules/DateInput/DateInput.js +73 -0
- package/dist/components/molecules/DialogModal/DialogModal.js +125 -0
- package/dist/components/molecules/Dropdown/Dropdown.js +77 -0
- package/dist/components/molecules/FileUpload/FileUpload.js +121 -0
- package/dist/components/molecules/FileUpload/FileUpload.types.js +8 -0
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +82 -0
- package/dist/components/molecules/SearchModal/SearchModal.js +64 -0
- package/dist/components/molecules/Stepper/Stepper.js +225 -0
- package/dist/components/molecules/Tabs/Tabs.js +36 -0
- package/dist/components/organisms/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +106 -0
- package/dist/lawgic-dev-kit.css +1 -0
- package/dist/lawgic-dev-kit.umd.js +136 -136
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +428 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +393 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +586 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +55 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +199 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +23 -0
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +73 -0
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +13 -0
- package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +28 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/date-fns/constants.js +6 -0
- package/dist/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/date-fns/constructNow.js +8 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js +17 -0
- package/dist/node_modules/date-fns/endOfMonth.js +9 -0
- package/dist/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isSameDay.js +14 -0
- package/dist/node_modules/date-fns/isSameMonth.js +13 -0
- package/dist/node_modules/date-fns/isToday.js +13 -0
- package/dist/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
- package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
- package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
- package/dist/node_modules/date-fns/locale/es.js +21 -0
- package/dist/node_modules/date-fns/setHours.js +9 -0
- package/dist/node_modules/date-fns/setMinutes.js +9 -0
- package/dist/node_modules/date-fns/setSeconds.js +9 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/date-fns/subMonths.js +8 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/lodash/lodash.js +3677 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +204 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.js +82 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/index.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/index.js +91 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.js +46 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.js +45 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-none.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/cubic-bezier.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/event-info.js +14 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/index.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/hover.js +21 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/PanSession.js +84 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/index.js +43 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/press.js +23 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/definitions.js +27 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +74 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/load-features.js +11 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/index.js +59 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.js +64 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/animation/mix-values.js +32 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +607 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/shared/stack.js +58 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/VisualElement.js +228 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-factory.js +20 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-proxy.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/create.js +15 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/use-render.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/config-motion.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/render.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/store.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.js +47 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/config-motion.js +43 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/path.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.js +76 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/animation-state.js +128 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/flat-tree.js +19 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/motion-values.js +26 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/setters.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/delay.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/interpolate.js +41 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/complex.js +52 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/default.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/fill.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/pipe.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/resolve-value.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/shallow-compare.js +14 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/is.js +7 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/Group.js +9 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/linear.js +11 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/batcher.js +26 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/frame.js +9 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/order.js +17 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/render-step.js +42 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/sync-time.js +15 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/index.js +32 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/stats/buffer.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/resolve-elements.js +14 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/memo.js +12 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion/dist/es/motion-dom/dist/es/value/index.js +201 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/array.js +11 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion/dist/es/motion-utils/dist/es/warn-once.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
- package/dist/node_modules/object-assign/index.js +54 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/property-expr/index.js +82 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
- package/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +15314 -0
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +9408 -0
- package/dist/node_modules/react-dom/client.js +23 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +203 -0
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +236 -0
- package/dist/node_modules/scheduler/cjs/scheduler.production.js +233 -0
- package/dist/node_modules/scheduler/index.js +10 -0
- package/dist/node_modules/tiny-case/index.js +22 -0
- package/dist/node_modules/toposort/index.js +66 -0
- package/dist/node_modules/yup/index.esm.js +1359 -0
- package/dist/providers/ThemeProvider.js +19 -0
- package/dist/themes/default.js +9 -0
- package/dist/utils/dates.js +14 -0
- package/dist/utils/files.js +29 -0
- package/dist/utils/images.js +4 -0
- package/dist/utils/modal.js +87 -0
- package/dist/utils/renderContentOptions.js +15 -0
- package/dist/utils/strings.js +16 -0
- package/dist/utils/toast.js +114 -0
- package/package.json +15 -14
- package/dist/lawgic-dev-kit.es.js +0 -50777
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { constructFrom as a } from "./constructFrom.js";
|
|
2
|
+
import { getISOWeekYear as f } from "./getISOWeekYear.js";
|
|
3
|
+
import { startOfISOWeek as s } from "./startOfISOWeek.js";
|
|
4
|
+
function O(t, e) {
|
|
5
|
+
const o = f(t, e), r = a(t, 0);
|
|
6
|
+
return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
O as default,
|
|
10
|
+
O as startOfISOWeekYear
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { toDate as w } from "./toDate.js";
|
|
3
|
+
function m(u, e) {
|
|
4
|
+
var c, O, l, k;
|
|
5
|
+
const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
|
|
6
|
+
return t.setDate(t.getDate() - d), t.setHours(0, 0, 0, 0), t;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default,
|
|
10
|
+
m as startOfWeek
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getDefaultOptions as W } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as n } from "./constructFrom.js";
|
|
3
|
+
import { getWeekYear as u } from "./getWeekYear.js";
|
|
4
|
+
import { startOfWeek as D } from "./startOfWeek.js";
|
|
5
|
+
function g(r, e) {
|
|
6
|
+
var f, s, c, k;
|
|
7
|
+
const a = W(), l = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((k = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, m = u(r, e), t = n((e == null ? void 0 : e.in) || r, 0);
|
|
8
|
+
return t.setFullYear(m, 0, l), t.setHours(0, 0, 0, 0), D(t, e);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
g as default,
|
|
12
|
+
g as startOfWeekYear
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { motionValue as m } from "../../../../../motion-dom/dist/es/value/index.js";
|
|
3
|
+
import { isMotionValue as r } from "../../value/utils/is-motion-value.js";
|
|
4
|
+
import { animateMotionValue as a } from "../interfaces/motion-value.js";
|
|
5
|
+
function f(o, i, n) {
|
|
6
|
+
const t = r(o) ? o : m(o);
|
|
7
|
+
return t.start(a("", t, i, n)), t.animation;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
f as animateSingleValue
|
|
11
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { noop as y } from "../../../../../motion-utils/dist/es/noop.js";
|
|
3
|
+
import { millisecondsToSeconds as g, secondsToMilliseconds as T } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
4
|
+
import { isGenerator as V } from "../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
|
|
5
|
+
import { attachTimeline as w } from "../../../../../motion-dom/dist/es/animation/waapi/utils/attach-timeline.js";
|
|
6
|
+
import { isWaapiSupportedEasing as F } from "../../../../../motion-dom/dist/es/animation/waapi/utils/easing.js";
|
|
7
|
+
import { supportsLinearEasing as K } from "../../../../../motion-dom/dist/es/utils/supports/linear-easing.js";
|
|
8
|
+
import { anticipate as E } from "../../easing/anticipate.js";
|
|
9
|
+
import { backInOut as R } from "../../easing/back.js";
|
|
10
|
+
import { circInOut as b } from "../../easing/circ.js";
|
|
11
|
+
import { DOMKeyframesResolver as D } from "../../render/dom/DOMKeyframesResolver.js";
|
|
12
|
+
import { BaseAnimation as M } from "./BaseAnimation.js";
|
|
13
|
+
import { MainThreadAnimation as S } from "./MainThreadAnimation.js";
|
|
14
|
+
import { acceleratedValues as U } from "./utils/accelerated-values.js";
|
|
15
|
+
import { startWaapiAnimation as W } from "./waapi/index.js";
|
|
16
|
+
import { getFinalKeyframe as x } from "./waapi/utils/get-final-keyframe.js";
|
|
17
|
+
import { supportsWaapi as C } from "./waapi/utils/supports-waapi.js";
|
|
18
|
+
const f = 10, G = 2e4;
|
|
19
|
+
function O(r) {
|
|
20
|
+
return V(r.type) || r.type === "spring" || !F(r.ease);
|
|
21
|
+
}
|
|
22
|
+
function k(r, e) {
|
|
23
|
+
const t = new S({
|
|
24
|
+
...e,
|
|
25
|
+
keyframes: r,
|
|
26
|
+
repeat: 0,
|
|
27
|
+
delay: 0,
|
|
28
|
+
isGenerator: !0
|
|
29
|
+
});
|
|
30
|
+
let i = { done: !1, value: r[0] };
|
|
31
|
+
const s = [];
|
|
32
|
+
let n = 0;
|
|
33
|
+
for (; !i.done && n < G; )
|
|
34
|
+
i = t.sample(n), s.push(i.value), n += f;
|
|
35
|
+
return {
|
|
36
|
+
times: void 0,
|
|
37
|
+
keyframes: s,
|
|
38
|
+
duration: n - f,
|
|
39
|
+
ease: "linear"
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const A = {
|
|
43
|
+
anticipate: E,
|
|
44
|
+
backInOut: R,
|
|
45
|
+
circInOut: b
|
|
46
|
+
};
|
|
47
|
+
function I(r) {
|
|
48
|
+
return r in A;
|
|
49
|
+
}
|
|
50
|
+
class ne extends M {
|
|
51
|
+
constructor(e) {
|
|
52
|
+
super(e);
|
|
53
|
+
const { name: t, motionValue: i, element: s, keyframes: n } = this.options;
|
|
54
|
+
this.resolver = new D(n, (a, o) => this.onKeyframesResolved(a, o), t, i, s), this.resolver.scheduleResolve();
|
|
55
|
+
}
|
|
56
|
+
initPlayback(e, t) {
|
|
57
|
+
let { duration: i = 300, times: s, ease: n, type: a, motionValue: o, name: p, startTime: m } = this.options;
|
|
58
|
+
if (!o.owner || !o.owner.current)
|
|
59
|
+
return !1;
|
|
60
|
+
if (typeof n == "string" && K() && I(n) && (n = A[n]), O(this.options)) {
|
|
61
|
+
const { onComplete: c, onUpdate: P, motionValue: v, element: h, ...u } = this.options, d = k(e, u);
|
|
62
|
+
e = d.keyframes, e.length === 1 && (e[1] = e[0]), i = d.duration, s = d.times, n = d.ease, a = "keyframes";
|
|
63
|
+
}
|
|
64
|
+
const l = W(o.owner.current, p, e, { ...this.options, duration: i, times: s, ease: n });
|
|
65
|
+
return l.startTime = m ?? this.calcStartTime(), this.pendingTimeline ? (w(l, this.pendingTimeline), this.pendingTimeline = void 0) : l.onfinish = () => {
|
|
66
|
+
const { onComplete: c } = this.options;
|
|
67
|
+
o.set(x(e, this.options, t)), c && c(), this.cancel(), this.resolveFinishedPromise();
|
|
68
|
+
}, {
|
|
69
|
+
animation: l,
|
|
70
|
+
duration: i,
|
|
71
|
+
times: s,
|
|
72
|
+
type: a,
|
|
73
|
+
ease: n,
|
|
74
|
+
keyframes: e
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
get duration() {
|
|
78
|
+
const { resolved: e } = this;
|
|
79
|
+
if (!e)
|
|
80
|
+
return 0;
|
|
81
|
+
const { duration: t } = e;
|
|
82
|
+
return g(t);
|
|
83
|
+
}
|
|
84
|
+
get time() {
|
|
85
|
+
const { resolved: e } = this;
|
|
86
|
+
if (!e)
|
|
87
|
+
return 0;
|
|
88
|
+
const { animation: t } = e;
|
|
89
|
+
return g(t.currentTime || 0);
|
|
90
|
+
}
|
|
91
|
+
set time(e) {
|
|
92
|
+
const { resolved: t } = this;
|
|
93
|
+
if (!t)
|
|
94
|
+
return;
|
|
95
|
+
const { animation: i } = t;
|
|
96
|
+
i.currentTime = T(e);
|
|
97
|
+
}
|
|
98
|
+
get speed() {
|
|
99
|
+
const { resolved: e } = this;
|
|
100
|
+
if (!e)
|
|
101
|
+
return 1;
|
|
102
|
+
const { animation: t } = e;
|
|
103
|
+
return t.playbackRate;
|
|
104
|
+
}
|
|
105
|
+
set speed(e) {
|
|
106
|
+
const { resolved: t } = this;
|
|
107
|
+
if (!t)
|
|
108
|
+
return;
|
|
109
|
+
const { animation: i } = t;
|
|
110
|
+
i.playbackRate = e;
|
|
111
|
+
}
|
|
112
|
+
get state() {
|
|
113
|
+
const { resolved: e } = this;
|
|
114
|
+
if (!e)
|
|
115
|
+
return "idle";
|
|
116
|
+
const { animation: t } = e;
|
|
117
|
+
return t.playState;
|
|
118
|
+
}
|
|
119
|
+
get startTime() {
|
|
120
|
+
const { resolved: e } = this;
|
|
121
|
+
if (!e)
|
|
122
|
+
return null;
|
|
123
|
+
const { animation: t } = e;
|
|
124
|
+
return t.startTime;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Replace the default DocumentTimeline with another AnimationTimeline.
|
|
128
|
+
* Currently used for scroll animations.
|
|
129
|
+
*/
|
|
130
|
+
attachTimeline(e) {
|
|
131
|
+
if (!this._resolved)
|
|
132
|
+
this.pendingTimeline = e;
|
|
133
|
+
else {
|
|
134
|
+
const { resolved: t } = this;
|
|
135
|
+
if (!t)
|
|
136
|
+
return y;
|
|
137
|
+
const { animation: i } = t;
|
|
138
|
+
w(i, e);
|
|
139
|
+
}
|
|
140
|
+
return y;
|
|
141
|
+
}
|
|
142
|
+
play() {
|
|
143
|
+
if (this.isStopped)
|
|
144
|
+
return;
|
|
145
|
+
const { resolved: e } = this;
|
|
146
|
+
if (!e)
|
|
147
|
+
return;
|
|
148
|
+
const { animation: t } = e;
|
|
149
|
+
t.playState === "finished" && this.updateFinishedPromise(), t.play();
|
|
150
|
+
}
|
|
151
|
+
pause() {
|
|
152
|
+
const { resolved: e } = this;
|
|
153
|
+
if (!e)
|
|
154
|
+
return;
|
|
155
|
+
const { animation: t } = e;
|
|
156
|
+
t.pause();
|
|
157
|
+
}
|
|
158
|
+
stop() {
|
|
159
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
160
|
+
return;
|
|
161
|
+
this.resolveFinishedPromise(), this.updateFinishedPromise();
|
|
162
|
+
const { resolved: e } = this;
|
|
163
|
+
if (!e)
|
|
164
|
+
return;
|
|
165
|
+
const { animation: t, keyframes: i, duration: s, type: n, ease: a, times: o } = e;
|
|
166
|
+
if (t.playState === "idle" || t.playState === "finished")
|
|
167
|
+
return;
|
|
168
|
+
if (this.time) {
|
|
169
|
+
const { motionValue: m, onUpdate: l, onComplete: c, element: P, ...v } = this.options, h = new S({
|
|
170
|
+
...v,
|
|
171
|
+
keyframes: i,
|
|
172
|
+
duration: s,
|
|
173
|
+
type: n,
|
|
174
|
+
ease: a,
|
|
175
|
+
times: o,
|
|
176
|
+
isGenerator: !0
|
|
177
|
+
}), u = T(this.time);
|
|
178
|
+
m.setWithVelocity(h.sample(u - f).value, h.sample(u).value, f);
|
|
179
|
+
}
|
|
180
|
+
const { onStop: p } = this.options;
|
|
181
|
+
p && p(), this.cancel();
|
|
182
|
+
}
|
|
183
|
+
complete() {
|
|
184
|
+
const { resolved: e } = this;
|
|
185
|
+
e && e.animation.finish();
|
|
186
|
+
}
|
|
187
|
+
cancel() {
|
|
188
|
+
const { resolved: e } = this;
|
|
189
|
+
e && e.animation.cancel();
|
|
190
|
+
}
|
|
191
|
+
static supports(e) {
|
|
192
|
+
const { motionValue: t, name: i, repeatDelay: s, repeatType: n, damping: a, type: o } = e;
|
|
193
|
+
if (!t || !t.owner || !(t.owner.current instanceof HTMLElement))
|
|
194
|
+
return !1;
|
|
195
|
+
const { onUpdate: p, transformTemplate: m } = t.owner.getProps();
|
|
196
|
+
return C() && i && U.has(i) && (i !== "transform" || !m) && /**
|
|
197
|
+
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
198
|
+
* no way to read the value from WAAPI every frame.
|
|
199
|
+
*/
|
|
200
|
+
!p && !s && n !== "mirror" && a !== 0 && o !== "inertia";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
export {
|
|
204
|
+
ne as AcceleratedAnimation
|
|
205
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { time as a } from "../../../../../motion-dom/dist/es/frameloop/sync-time.js";
|
|
3
|
+
import { flushKeyframeResolvers as m } from "../../render/utils/KeyframesResolver.js";
|
|
4
|
+
import { canAnimate as p } from "./utils/can-animate.js";
|
|
5
|
+
import { getFinalKeyframe as v } from "./waapi/utils/get-final-keyframe.js";
|
|
6
|
+
const c = 40;
|
|
7
|
+
class y {
|
|
8
|
+
constructor({ autoplay: e = !0, delay: t = 0, type: i = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: n = "loop", ...s }) {
|
|
9
|
+
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = a.now(), this.options = {
|
|
10
|
+
autoplay: e,
|
|
11
|
+
delay: t,
|
|
12
|
+
type: i,
|
|
13
|
+
repeat: o,
|
|
14
|
+
repeatDelay: r,
|
|
15
|
+
repeatType: n,
|
|
16
|
+
...s
|
|
17
|
+
}, this.updateFinishedPromise();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* This method uses the createdAt and resolvedAt to calculate the
|
|
21
|
+
* animation startTime. *Ideally*, we would use the createdAt time as t=0
|
|
22
|
+
* as the following frame would then be the first frame of the animation in
|
|
23
|
+
* progress, which would feel snappier.
|
|
24
|
+
*
|
|
25
|
+
* However, if there's a delay (main thread work) between the creation of
|
|
26
|
+
* the animation and the first commited frame, we prefer to use resolvedAt
|
|
27
|
+
* to avoid a sudden jump into the animation.
|
|
28
|
+
*/
|
|
29
|
+
calcStartTime() {
|
|
30
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > c ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
34
|
+
* this.resolved will synchronously flush all pending keyframe resolvers.
|
|
35
|
+
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
36
|
+
*/
|
|
37
|
+
get resolved() {
|
|
38
|
+
return !this._resolved && !this.hasAttemptedResolve && m(), this._resolved;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A method to be called when the keyframes resolver completes. This method
|
|
42
|
+
* will check if its possible to run the animation and, if not, skip it.
|
|
43
|
+
* Otherwise, it will call initPlayback on the implementing class.
|
|
44
|
+
*/
|
|
45
|
+
onKeyframesResolved(e, t) {
|
|
46
|
+
this.resolvedAt = a.now(), this.hasAttemptedResolve = !0;
|
|
47
|
+
const { name: i, type: o, velocity: r, delay: n, onComplete: s, onUpdate: h, isGenerator: d } = this.options;
|
|
48
|
+
if (!d && !p(e, i, o, r))
|
|
49
|
+
if (n)
|
|
50
|
+
this.options.duration = 0;
|
|
51
|
+
else {
|
|
52
|
+
h && h(v(e, this.options, t)), s && s(), this.resolveFinishedPromise();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const l = this.initPlayback(e, t);
|
|
56
|
+
l !== !1 && (this._resolved = {
|
|
57
|
+
keyframes: e,
|
|
58
|
+
finalKeyframe: t,
|
|
59
|
+
...l
|
|
60
|
+
}, this.onPostResolved());
|
|
61
|
+
}
|
|
62
|
+
onPostResolved() {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
66
|
+
* resolves when the animation finishes at all but in a future update could/should
|
|
67
|
+
* reject if its cancels.
|
|
68
|
+
*/
|
|
69
|
+
then(e, t) {
|
|
70
|
+
return this.currentFinishedPromise.then(e, t);
|
|
71
|
+
}
|
|
72
|
+
flatten() {
|
|
73
|
+
this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear");
|
|
74
|
+
}
|
|
75
|
+
updateFinishedPromise() {
|
|
76
|
+
this.currentFinishedPromise = new Promise((e) => {
|
|
77
|
+
this.resolveFinishedPromise = e;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
y as BaseAnimation
|
|
83
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { invariant as w } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { millisecondsToSeconds as g, secondsToMilliseconds as x } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
import { calcGeneratorDuration as G } from "../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
|
|
4
|
+
import { isGenerator as O } from "../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
|
|
5
|
+
import { KeyframeResolver as I } from "../../render/utils/KeyframesResolver.js";
|
|
6
|
+
import { clamp as A } from "../../utils/clamp.js";
|
|
7
|
+
import { mix as B } from "../../utils/mix/index.js";
|
|
8
|
+
import { pipe as C } from "../../utils/pipe.js";
|
|
9
|
+
import { inertia as _ } from "../generators/inertia.js";
|
|
10
|
+
import { keyframes as p } from "../generators/keyframes.js";
|
|
11
|
+
import { spring as E } from "../generators/spring/index.js";
|
|
12
|
+
import { BaseAnimation as N } from "./BaseAnimation.js";
|
|
13
|
+
import { frameloopDriver as V } from "./drivers/driver-frameloop.js";
|
|
14
|
+
import { getFinalKeyframe as j } from "./waapi/utils/get-final-keyframe.js";
|
|
15
|
+
const U = {
|
|
16
|
+
decay: _,
|
|
17
|
+
inertia: _,
|
|
18
|
+
tween: p,
|
|
19
|
+
keyframes: p,
|
|
20
|
+
spring: E
|
|
21
|
+
}, W = (P) => P / 100;
|
|
22
|
+
class nt extends N {
|
|
23
|
+
constructor(t) {
|
|
24
|
+
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
25
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
26
|
+
return;
|
|
27
|
+
this.teardown();
|
|
28
|
+
const { onStop: n } = this.options;
|
|
29
|
+
n && n();
|
|
30
|
+
};
|
|
31
|
+
const { name: i, motionValue: r, element: e, keyframes: a } = this.options, u = (e == null ? void 0 : e.KeyframeResolver) || I, o = (n, l) => this.onKeyframesResolved(n, l);
|
|
32
|
+
this.resolver = new u(a, o, i, r, e), this.resolver.scheduleResolve();
|
|
33
|
+
}
|
|
34
|
+
flatten() {
|
|
35
|
+
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
36
|
+
}
|
|
37
|
+
initPlayback(t) {
|
|
38
|
+
const { type: i = "keyframes", repeat: r = 0, repeatDelay: e = 0, repeatType: a, velocity: u = 0 } = this.options, o = O(i) ? i : U[i] || p;
|
|
39
|
+
let n, l;
|
|
40
|
+
process.env.NODE_ENV !== "production" && o !== p && w(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), o !== p && typeof t[0] != "number" && (n = C(W, B(t[0], t[1])), t = [0, 100]);
|
|
41
|
+
const s = o({ ...this.options, keyframes: t });
|
|
42
|
+
a === "mirror" && (l = o({
|
|
43
|
+
...this.options,
|
|
44
|
+
keyframes: [...t].reverse(),
|
|
45
|
+
velocity: -u
|
|
46
|
+
})), s.calculatedDuration === null && (s.calculatedDuration = G(s));
|
|
47
|
+
const { calculatedDuration: d } = s, f = d + e, T = f * (r + 1) - e;
|
|
48
|
+
return {
|
|
49
|
+
generator: s,
|
|
50
|
+
mirroredGenerator: l,
|
|
51
|
+
mapPercentToKeyframes: n,
|
|
52
|
+
calculatedDuration: d,
|
|
53
|
+
resolvedDuration: f,
|
|
54
|
+
totalDuration: T
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
onPostResolved() {
|
|
58
|
+
const { autoplay: t = !0 } = this.options;
|
|
59
|
+
this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
|
|
60
|
+
}
|
|
61
|
+
tick(t, i = !1) {
|
|
62
|
+
const { resolved: r } = this;
|
|
63
|
+
if (!r) {
|
|
64
|
+
const { keyframes: c } = this.options;
|
|
65
|
+
return { done: !0, value: c[c.length - 1] };
|
|
66
|
+
}
|
|
67
|
+
const { finalKeyframe: e, generator: a, mirroredGenerator: u, mapPercentToKeyframes: o, keyframes: n, calculatedDuration: l, totalDuration: s, resolvedDuration: d } = r;
|
|
68
|
+
if (this.startTime === null)
|
|
69
|
+
return a.next(0);
|
|
70
|
+
const { delay: f, repeat: T, repeatType: D, repeatDelay: S, onUpdate: k } = this.options;
|
|
71
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - s / this.speed, this.startTime)), i ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
72
|
+
const y = this.currentTime - f * (this.speed >= 0 ? 1 : -1), M = this.speed >= 0 ? y < 0 : y > s;
|
|
73
|
+
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
74
|
+
let b = this.currentTime, K = a;
|
|
75
|
+
if (T) {
|
|
76
|
+
const c = Math.min(this.currentTime, s) / d;
|
|
77
|
+
let v = Math.floor(c), h = c % 1;
|
|
78
|
+
!h && c >= 1 && (h = 1), h === 1 && v--, v = Math.min(v, T + 1), !!(v % 2) && (D === "reverse" ? (h = 1 - h, S && (h -= S / d)) : D === "mirror" && (K = u)), b = A(0, 1, h) * d;
|
|
79
|
+
}
|
|
80
|
+
const m = M ? { done: !1, value: n[0] } : K.next(b);
|
|
81
|
+
o && (m.value = o(m.value));
|
|
82
|
+
let { done: F } = m;
|
|
83
|
+
!M && l !== null && (F = this.speed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
84
|
+
const R = this.holdTime === null && (this.state === "finished" || this.state === "running" && F);
|
|
85
|
+
return R && e !== void 0 && (m.value = j(n, this.options, e)), k && k(m.value), R && this.finish(), m;
|
|
86
|
+
}
|
|
87
|
+
get duration() {
|
|
88
|
+
const { resolved: t } = this;
|
|
89
|
+
return t ? g(t.calculatedDuration) : 0;
|
|
90
|
+
}
|
|
91
|
+
get time() {
|
|
92
|
+
return g(this.currentTime);
|
|
93
|
+
}
|
|
94
|
+
set time(t) {
|
|
95
|
+
t = x(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
|
|
96
|
+
}
|
|
97
|
+
get speed() {
|
|
98
|
+
return this.playbackSpeed;
|
|
99
|
+
}
|
|
100
|
+
set speed(t) {
|
|
101
|
+
const i = this.playbackSpeed !== t;
|
|
102
|
+
this.playbackSpeed = t, i && (this.time = g(this.currentTime));
|
|
103
|
+
}
|
|
104
|
+
play() {
|
|
105
|
+
if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
|
|
106
|
+
this.pendingPlayState = "running";
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (this.isStopped)
|
|
110
|
+
return;
|
|
111
|
+
const { driver: t = V, onPlay: i, startTime: r } = this.options;
|
|
112
|
+
this.driver || (this.driver = t((a) => this.tick(a))), i && i();
|
|
113
|
+
const e = this.driver.now();
|
|
114
|
+
this.holdTime !== null ? this.startTime = e - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = e) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
115
|
+
}
|
|
116
|
+
pause() {
|
|
117
|
+
var t;
|
|
118
|
+
if (!this._resolved) {
|
|
119
|
+
this.pendingPlayState = "paused";
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.state = "paused", this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0;
|
|
123
|
+
}
|
|
124
|
+
complete() {
|
|
125
|
+
this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null;
|
|
126
|
+
}
|
|
127
|
+
finish() {
|
|
128
|
+
this.teardown(), this.state = "finished";
|
|
129
|
+
const { onComplete: t } = this.options;
|
|
130
|
+
t && t();
|
|
131
|
+
}
|
|
132
|
+
cancel() {
|
|
133
|
+
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
134
|
+
}
|
|
135
|
+
teardown() {
|
|
136
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel();
|
|
137
|
+
}
|
|
138
|
+
stopDriver() {
|
|
139
|
+
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
140
|
+
}
|
|
141
|
+
sample(t) {
|
|
142
|
+
return this.startTime = 0, this.tick(t, !0);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
nt as MainThreadAnimation
|
|
147
|
+
};
|
package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { frameData as t, cancelFrame as o, frame as a } from "../../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
3
|
+
import { time as s } from "../../../../../../motion-dom/dist/es/frameloop/sync-time.js";
|
|
4
|
+
const c = (e) => {
|
|
5
|
+
const r = ({ timestamp: m }) => e(m);
|
|
6
|
+
return {
|
|
7
|
+
start: () => a.update(r, !0),
|
|
8
|
+
stop: () => o(r),
|
|
9
|
+
/**
|
|
10
|
+
* If we're processing this frame we can use the
|
|
11
|
+
* framelocked timestamp to keep things in sync.
|
|
12
|
+
*/
|
|
13
|
+
now: () => t.isProcessing ? t.timestamp : s.now()
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as frameloopDriver
|
|
18
|
+
};
|
package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set([
|
|
2
|
+
"opacity",
|
|
3
|
+
"clipPath",
|
|
4
|
+
"filter",
|
|
5
|
+
"transform"
|
|
6
|
+
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
7
|
+
// or until we implement support for linear() easing.
|
|
8
|
+
// "background-color"
|
|
9
|
+
]);
|
|
10
|
+
export {
|
|
11
|
+
e as acceleratedValues
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { warning as s } from "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { isGenerator as f } from "../../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
|
|
3
|
+
import { isAnimatable as l } from "../../utils/is-animatable.js";
|
|
4
|
+
function g(t) {
|
|
5
|
+
const i = t[0];
|
|
6
|
+
if (t.length === 1)
|
|
7
|
+
return !0;
|
|
8
|
+
for (let n = 0; n < t.length; n++)
|
|
9
|
+
if (t[n] !== i)
|
|
10
|
+
return !0;
|
|
11
|
+
}
|
|
12
|
+
function h(t, i, n, u) {
|
|
13
|
+
const r = t[0];
|
|
14
|
+
if (r === null)
|
|
15
|
+
return !1;
|
|
16
|
+
if (i === "display" || i === "visibility")
|
|
17
|
+
return !0;
|
|
18
|
+
const a = t[t.length - 1], e = l(r, i), o = l(a, i);
|
|
19
|
+
return s(e === o, `You are trying to animate ${i} from "${r}" to "${a}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${a} via the \`style\` property.`), !e || !o ? !1 : g(t) || (n === "spring" || f(n)) && u;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as canAnimate
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { mapEasingToNativeEasing as l } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/easing.js";
|
|
3
|
+
function A(t, e, o, { delay: s = 0, duration: n = 300, repeat: m = 0, repeatType: f = "loop", ease: p = "easeInOut", times: r } = {}) {
|
|
4
|
+
const i = { [e]: o };
|
|
5
|
+
r && (i.offset = r);
|
|
6
|
+
const a = l(p, n);
|
|
7
|
+
return Array.isArray(a) && (i.easing = a), t.animate(i, {
|
|
8
|
+
delay: s,
|
|
9
|
+
duration: n,
|
|
10
|
+
easing: Array.isArray(a) ? "linear" : a,
|
|
11
|
+
fill: "both",
|
|
12
|
+
iterations: m + 1,
|
|
13
|
+
direction: f === "reverse" ? "alternate" : "normal"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
A as startWaapiAnimation
|
|
18
|
+
};
|
package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { memo as t } from "../../../../../../../motion-utils/dist/es/memo.js";
|
|
3
|
+
const e = /* @__PURE__ */ t(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
4
|
+
export {
|
|
5
|
+
e as supportsWaapi
|
|
6
|
+
};
|