@code0-tech/pictor 1.1.0 → 1.1.1
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/rolldown_runtime.js +3 -12
- package/dist/components/alert/Alert.js +19 -20
- package/dist/components/aurora/Aurora.js +15 -16
- package/dist/components/avatar/Avatar.js +44 -44
- package/dist/components/badge/Badge.js +36 -37
- package/dist/components/button/Button.js +16 -17
- package/dist/components/button-group/ButtonGroup.js +15 -16
- package/dist/components/card/Card.js +21 -22
- package/dist/components/card/CardSection.js +15 -15
- package/dist/components/chart/Chart.js +82 -82
- package/dist/components/chart/LineChart.js +50 -51
- package/dist/components/col/Col.js +9 -10
- package/dist/components/command/Command.js +32 -33
- package/dist/components/container/Container.js +9 -10
- package/dist/components/context-menu/ContextMenu.js +76 -77
- package/dist/components/data-table/DataTableColumn.js +9 -10
- package/dist/components/data-table/DataTableFilterInput.js +83 -83
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +26 -27
- package/dist/components/data-table/DataTableHeader.js +20 -21
- package/dist/components/data-table/DataTablePagination.js +27 -28
- package/dist/components/dialog/Dialog.js +61 -62
- package/dist/components/file-tabs/FileTabs.js +51 -52
- package/dist/components/flex/Flex.js +9 -10
- package/dist/components/form/CheckboxInput.js +50 -51
- package/dist/components/form/ColorInput.js +242 -242
- package/dist/components/form/DateInput.js +55 -55
- package/dist/components/form/EditorInput.js +300 -300
- package/dist/components/form/FileInput.js +67 -68
- package/dist/components/form/InputDescription.js +3 -4
- package/dist/components/form/InputLabel.js +9 -10
- package/dist/components/form/InputMessage.js +6 -7
- package/dist/components/form/InputWrapper.js +37 -38
- package/dist/components/form/PasswordInput.js +2 -2
- package/dist/components/form/PinInput.js +30 -31
- package/dist/components/form/RadioGroup.js +22 -23
- package/dist/components/form/RadioInput.js +19 -20
- package/dist/components/form/SelectInput.js +55 -56
- package/dist/components/form/TagInput.js +44 -44
- package/dist/components/fullscreen/FullScreen.js +14 -15
- package/dist/components/gantt/Gantt.js +63 -64
- package/dist/components/gantt/GanttGroup.js +2 -2
- package/dist/components/gantt/GanttHeader.js +40 -41
- package/dist/components/gantt/GanttItem.js +11 -12
- package/dist/components/icon/Icon.js +22 -22
- package/dist/components/json-view/JsonView.js +37 -38
- package/dist/components/layout/Layout.js +64 -65
- package/dist/components/menu/Menu.js +91 -92
- package/dist/components/quote/Quote.js +29 -30
- package/dist/components/resizable/Resizable.js +22 -23
- package/dist/components/row/Row.js +9 -10
- package/dist/components/scroll-area/ScrollArea.js +46 -47
- package/dist/components/segmented-control/SegmentedControl.js +35 -35
- package/dist/components/spacing/Spacing.js +8 -9
- package/dist/components/tab/Tab.js +53 -53
- package/dist/components/text/Text.js +9 -10
- package/dist/components/toast/Toast.js +47 -47
- package/dist/components/tooltip/Tooltip.js +35 -36
- package/dist/utils/contextStore.js +31 -32
- package/dist/utils/motion.js +39 -40
- package/package.json +4 -4
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -51
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -58
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -57
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -136
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -68
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -56
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -5
- package/dist/node_modules/motion/dist/es/react.js +0 -196
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -105
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -127
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -82
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -164
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -59
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -580
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -201
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -35
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -50
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -90
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -62
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -16
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -24
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -6
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -18
- package/dist/node_modules/react/compiler-runtime.js +0 -8
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
1
|
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
2
|
import "../../utils/index.js";
|
|
4
3
|
import '../../assets/Spacing.style.css';/* empty css */
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} else a = n[1];
|
|
7
|
+
const Spacing = (n) => {
|
|
8
|
+
let i = c(4), a;
|
|
9
|
+
if (i[0] !== n) {
|
|
10
|
+
let { spacing: t, ...r } = n;
|
|
11
|
+
a = mergeComponentProps(`spacing spacing--${t}`, r), i[0] = n, i[1] = a;
|
|
12
|
+
} else a = i[1];
|
|
14
13
|
let o;
|
|
15
|
-
return
|
|
14
|
+
return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx("div", { ...a }), i[2] = a, i[3] = o), o;
|
|
16
15
|
};
|
|
17
16
|
export { Spacing };
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
1
|
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
|
-
import { motion } from "../../node_modules/motion/dist/es/react.js";
|
|
4
2
|
import { springs, useObservedValue, useReducedMotionSafe } from "../../utils/motion.js";
|
|
5
3
|
import "../../utils/index.js";
|
|
6
4
|
import '../../assets/Tab.style.css';/* empty css */
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
7
6
|
import React from "react";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { motion } from "motion/react";
|
|
9
9
|
import { Content, List, Tabs, Trigger } from "@radix-ui/react-tabs";
|
|
10
|
-
var
|
|
10
|
+
var TabValueContext = React.createContext({
|
|
11
11
|
layoutId: "tab__indicator",
|
|
12
12
|
orientation: "horizontal"
|
|
13
13
|
});
|
|
14
|
-
const Tab = (
|
|
15
|
-
let o =
|
|
16
|
-
o[0] !==
|
|
17
|
-
value:
|
|
18
|
-
layoutId:
|
|
19
|
-
orientation:
|
|
20
|
-
}, o[0] =
|
|
21
|
-
let m;
|
|
22
|
-
o[4] === e ? m = o[5] : (m = mergeComponentProps("tab", e), o[4] = e, o[5] = m);
|
|
14
|
+
const Tab = (i) => {
|
|
15
|
+
let o = c(12), [l, u] = useObservedValue(i.value, i.defaultValue, i.onValueChange), d = React.useId(), f = i.orientation ?? "horizontal", m;
|
|
16
|
+
o[0] !== d || o[1] !== f || o[2] !== l ? (m = {
|
|
17
|
+
value: l,
|
|
18
|
+
layoutId: d,
|
|
19
|
+
orientation: f
|
|
20
|
+
}, o[0] = d, o[1] = f, o[2] = l, o[3] = m) : m = o[3];
|
|
23
21
|
let h;
|
|
24
|
-
o[
|
|
25
|
-
"data-slot": "tabs",
|
|
26
|
-
...m,
|
|
27
|
-
onValueChange: l
|
|
28
|
-
}), o[6] = l, o[7] = m, o[8] = h) : h = o[8];
|
|
22
|
+
o[4] === i ? h = o[5] : (h = mergeComponentProps("tab", i), o[4] = i, o[5] = h);
|
|
29
23
|
let g;
|
|
30
|
-
|
|
31
|
-
value: f,
|
|
32
|
-
children: h
|
|
33
|
-
}), o[9] = f, o[10] = h, o[11] = g) : g = o[11], g;
|
|
34
|
-
}, TabList = (e) => {
|
|
35
|
-
let o = (0, import_compiler_runtime.c)(4), s;
|
|
36
|
-
o[0] === e ? s = o[1] : (s = mergeComponentProps("tab__list", e), o[0] = e, o[1] = s);
|
|
37
|
-
let c;
|
|
38
|
-
return o[2] === s ? c = o[3] : (c = /* @__PURE__ */ jsx(List, {
|
|
24
|
+
o[6] !== u || o[7] !== h ? (g = /* @__PURE__ */ jsx(Tabs, {
|
|
39
25
|
"data-slot": "tabs",
|
|
40
|
-
...
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
...h,
|
|
27
|
+
onValueChange: u
|
|
28
|
+
}), o[6] = u, o[7] = h, o[8] = g) : g = o[8];
|
|
29
|
+
let _;
|
|
30
|
+
return o[9] !== m || o[10] !== g ? (_ = /* @__PURE__ */ jsx(TabValueContext.Provider, {
|
|
31
|
+
value: m,
|
|
32
|
+
children: g
|
|
33
|
+
}), o[9] = m, o[10] = g, o[11] = _) : _ = o[11], _;
|
|
34
|
+
}, TabList = (i) => {
|
|
35
|
+
let a = c(4), o;
|
|
36
|
+
a[0] === i ? o = a[1] : (o = mergeComponentProps("tab__list", i), a[0] = i, a[1] = o);
|
|
37
|
+
let s;
|
|
38
|
+
return a[2] === o ? s = a[3] : (s = /* @__PURE__ */ jsx(List, {
|
|
39
|
+
"data-slot": "tabs",
|
|
40
|
+
...o
|
|
41
|
+
}), a[2] = o, a[3] = s), s;
|
|
42
|
+
}, TabTrigger = (a) => {
|
|
43
|
+
let d = c(13), { value: f, layoutId: p, orientation: h } = React.useContext(TabValueContext), g = useReducedMotionSafe(), _ = f !== void 0 && f === a.value, v = a.value, y;
|
|
44
|
+
d[0] === a ? y = d[1] : (y = mergeComponentProps("tab__trigger", a), d[0] = a, d[1] = y);
|
|
45
|
+
let b = y, x;
|
|
46
|
+
d[2] !== a.value || d[3] !== b ? (x = /* @__PURE__ */ jsx(Trigger, {
|
|
47
47
|
"data-slot": "tabs",
|
|
48
|
-
"data-value":
|
|
49
|
-
...
|
|
50
|
-
}),
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
layoutId:
|
|
48
|
+
"data-value": v,
|
|
49
|
+
...b
|
|
50
|
+
}), d[2] = a.value, d[3] = b, d[4] = x) : x = d[4];
|
|
51
|
+
let S;
|
|
52
|
+
d[5] !== p || d[6] !== g || d[7] !== _ ? (S = _ && /* @__PURE__ */ jsx(motion.span, {
|
|
53
|
+
layoutId: p,
|
|
54
54
|
className: "tab__indicator",
|
|
55
55
|
"aria-hidden": !0,
|
|
56
|
-
transition:
|
|
56
|
+
transition: g ? { duration: 0 } : springs.ui,
|
|
57
57
|
children: /* @__PURE__ */ jsx("span", { className: "tab__indicator-bar" })
|
|
58
|
-
}),
|
|
59
|
-
let
|
|
60
|
-
return
|
|
58
|
+
}), d[5] = p, d[6] = g, d[7] = _, d[8] = S) : S = d[8];
|
|
59
|
+
let C;
|
|
60
|
+
return d[9] !== h || d[10] !== x || d[11] !== S ? (C = /* @__PURE__ */ jsxs("span", {
|
|
61
61
|
className: "tab__trigger-wrapper",
|
|
62
|
-
"data-orientation":
|
|
63
|
-
children: [
|
|
64
|
-
}),
|
|
65
|
-
}, TabContent = (
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
let
|
|
69
|
-
return
|
|
62
|
+
"data-orientation": h,
|
|
63
|
+
children: [x, S]
|
|
64
|
+
}), d[9] = h, d[10] = x, d[11] = S, d[12] = C) : C = d[12], C;
|
|
65
|
+
}, TabContent = (i) => {
|
|
66
|
+
let a = c(4), o;
|
|
67
|
+
a[0] === i ? o = a[1] : (o = mergeComponentProps("tab__content", i), a[0] = i, a[1] = o);
|
|
68
|
+
let s = o, l;
|
|
69
|
+
return a[2] === s ? l = a[3] : (l = /* @__PURE__ */ jsx(Content, {
|
|
70
70
|
"data-slot": "tabs",
|
|
71
|
-
...
|
|
72
|
-
}),
|
|
71
|
+
...s
|
|
72
|
+
}), a[2] = s, a[3] = l), l;
|
|
73
73
|
};
|
|
74
74
|
export { Tab, TabContent, TabList, TabTrigger };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
1
|
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
2
|
import "../../utils/index.js";
|
|
4
3
|
import '../../assets/Text.style.css';/* empty css */
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} else a = n[1], o = n[2];
|
|
7
|
+
const Text = (n) => {
|
|
8
|
+
let i = c(6), a, o;
|
|
9
|
+
if (i[0] !== n) {
|
|
10
|
+
let { size: t, children: r, hierarchy: s, ...l } = n;
|
|
11
|
+
a = r, o = mergeComponentProps(`text text--${s === void 0 ? "secondary" : s} text--${t === void 0 ? "sm" : t}`, l), i[0] = n, i[1] = a, i[2] = o;
|
|
12
|
+
} else a = i[1], o = i[2];
|
|
14
13
|
let s;
|
|
15
|
-
return
|
|
14
|
+
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ jsx("span", {
|
|
16
15
|
...o,
|
|
17
16
|
children: a
|
|
18
|
-
}),
|
|
17
|
+
}), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
|
|
19
18
|
};
|
|
20
19
|
export { Text };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
3
2
|
import { mergeComponentProps } from "../../utils/component.js";
|
|
4
|
-
import { motion } from "../../node_modules/motion/dist/es/react.js";
|
|
5
3
|
import { usePopperMotion } from "../../utils/motion.js";
|
|
6
4
|
import "../../utils/index.js";
|
|
7
5
|
import { Flex } from "../flex/Flex.js";
|
|
8
6
|
import { Text } from "../text/Text.js";
|
|
9
7
|
import '../../assets/Toast.style.css';/* empty css */
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
10
9
|
import React from "react";
|
|
11
|
-
import { Fragment
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { motion } from "motion/react";
|
|
12
12
|
import { IconAlertCircle, IconCircleCheck, IconCircleDot, IconCircleX, IconInfoCircle } from "@tabler/icons-react";
|
|
13
13
|
import { toast as toast$1 } from "sonner";
|
|
14
|
-
var
|
|
14
|
+
var presetColors = [
|
|
15
15
|
"primary",
|
|
16
16
|
"secondary",
|
|
17
17
|
"tertiary",
|
|
@@ -19,61 +19,61 @@ var import_compiler_runtime = require_compiler_runtime(), presetColors = [
|
|
|
19
19
|
"success",
|
|
20
20
|
"warning",
|
|
21
21
|
"error"
|
|
22
|
-
], isPresetColor = (
|
|
23
|
-
function toast({ wrapper:
|
|
22
|
+
], isPresetColor = (t) => presetColors.includes(t);
|
|
23
|
+
function toast({ wrapper: t, ...s }) {
|
|
24
24
|
return toast$1.custom((l) => {
|
|
25
25
|
let u = /* @__PURE__ */ jsx(Toast, {
|
|
26
26
|
id: l,
|
|
27
|
-
...
|
|
28
|
-
children:
|
|
27
|
+
...s,
|
|
28
|
+
children: s.children
|
|
29
29
|
});
|
|
30
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
31
|
-
}, { duration:
|
|
30
|
+
return /* @__PURE__ */ jsx(Fragment, { children: t ? t(u) : u });
|
|
31
|
+
}, { duration: s.duration ?? 4e3 });
|
|
32
32
|
}
|
|
33
|
-
function Toast(
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
let
|
|
37
|
-
color:
|
|
38
|
-
...
|
|
39
|
-
} },
|
|
40
|
-
...
|
|
41
|
-
...
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
let
|
|
45
|
-
|
|
33
|
+
function Toast(d) {
|
|
34
|
+
let f = c(23), { color: p, icon: m, title: h, children: g, duration: _, ...v } = d, y = p === void 0 ? "secondary" : p, b;
|
|
35
|
+
f[0] === y ? b = f[1] : (b = isPresetColor(y), f[0] = y, f[1] = b);
|
|
36
|
+
let x = b, S = x ? {} : { style: {
|
|
37
|
+
color: y,
|
|
38
|
+
...v.style
|
|
39
|
+
} }, C = y === "error", { initial: w, animate: T, transition: E } = usePopperMotion(), D = motion, O = C ? "alert" : "status", k = C ? "assertive" : "polite", A = mergeComponentProps(`toast toast--${x ? y : "secondary"}`, {
|
|
40
|
+
...v,
|
|
41
|
+
...S
|
|
42
|
+
}), j;
|
|
43
|
+
f[2] !== y || f[3] !== m || f[4] !== x ? (j = m ?? (x && /* @__PURE__ */ jsx(ToastIcon, { color: y })), f[2] = y, f[3] = m, f[4] = x, f[5] = j) : j = f[5];
|
|
44
|
+
let M;
|
|
45
|
+
f[6] === h ? M = f[7] : (M = /* @__PURE__ */ jsx(Text, {
|
|
46
46
|
size: "md",
|
|
47
47
|
hierarchy: "primary",
|
|
48
|
-
children:
|
|
49
|
-
}),
|
|
50
|
-
let
|
|
51
|
-
|
|
48
|
+
children: h
|
|
49
|
+
}), f[6] = h, f[7] = M);
|
|
50
|
+
let N;
|
|
51
|
+
f[8] !== j || f[9] !== M ? (N = /* @__PURE__ */ jsx(Flex, {
|
|
52
52
|
className: "toast__header",
|
|
53
53
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
54
54
|
className: "toast__header-wrapper",
|
|
55
|
-
children: [
|
|
55
|
+
children: [j, M]
|
|
56
56
|
})
|
|
57
|
-
}),
|
|
58
|
-
let N;
|
|
59
|
-
d[11] === h ? N = d[12] : (N = h && /* @__PURE__ */ jsx("div", {
|
|
60
|
-
className: "toast__content",
|
|
61
|
-
children: h
|
|
62
|
-
}), d[11] = h, d[12] = N);
|
|
57
|
+
}), f[8] = j, f[9] = M, f[10] = N) : N = f[10];
|
|
63
58
|
let P;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
f[11] === g ? P = f[12] : (P = g && /* @__PURE__ */ jsx("div", {
|
|
60
|
+
className: "toast__content",
|
|
61
|
+
children: g
|
|
62
|
+
}), f[11] = g, f[12] = P);
|
|
63
|
+
let F;
|
|
64
|
+
return f[13] !== T || f[14] !== w || f[15] !== P || f[16] !== D.div || f[17] !== O || f[18] !== k || f[19] !== A || f[20] !== N || f[21] !== E ? (F = /* @__PURE__ */ jsxs(D.div, {
|
|
65
|
+
role: O,
|
|
66
|
+
"aria-live": k,
|
|
67
|
+
initial: w,
|
|
68
|
+
animate: T,
|
|
69
|
+
transition: E,
|
|
70
|
+
...A,
|
|
71
|
+
children: [N, P]
|
|
72
|
+
}), f[13] = T, f[14] = w, f[15] = P, f[16] = D.div, f[17] = O, f[18] = k, f[19] = A, f[20] = N, f[21] = E, f[22] = F) : F = f[22], F;
|
|
73
73
|
}
|
|
74
|
-
var ToastIcon = (
|
|
75
|
-
let
|
|
76
|
-
return
|
|
74
|
+
var ToastIcon = (t) => {
|
|
75
|
+
let s = c(1), { color: l } = t, u;
|
|
76
|
+
return s[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
77
77
|
primary: /* @__PURE__ */ jsx(IconCircleDot, {
|
|
78
78
|
className: "toast__icon",
|
|
79
79
|
size: 16
|
|
@@ -102,6 +102,6 @@ var ToastIcon = (r) => {
|
|
|
102
102
|
className: "toast__icon",
|
|
103
103
|
size: 16
|
|
104
104
|
})
|
|
105
|
-
},
|
|
105
|
+
}, s[0] = u) : u = s[0], u[l] ?? null;
|
|
106
106
|
};
|
|
107
107
|
export { Toast, toast };
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
1
|
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
|
-
import { AnimatePresence } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
4
|
-
import { motion } from "../../node_modules/motion/dist/es/react.js";
|
|
5
2
|
import { popperTransformOrigin, useObservedOpen, usePopperMotion } from "../../utils/motion.js";
|
|
6
3
|
import "../../utils/index.js";
|
|
7
4
|
import { AutoScrollArea } from "../scroll-area/ScrollArea.js";
|
|
8
5
|
import '../../assets/Tooltip.style.css';/* empty css */
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
9
7
|
import React from "react";
|
|
10
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
11
10
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
12
|
-
var
|
|
13
|
-
const Tooltip = (
|
|
14
|
-
let s =
|
|
15
|
-
s[0] ===
|
|
16
|
-
let
|
|
17
|
-
s[2] !==
|
|
18
|
-
...
|
|
19
|
-
onOpenChange:
|
|
20
|
-
}), s[2] =
|
|
11
|
+
var TooltipOpenContext = React.createContext(!1);
|
|
12
|
+
const Tooltip = (a) => {
|
|
13
|
+
let s = c(8), [l, d] = useObservedOpen(a.open, a.defaultOpen, a.onOpenChange), f;
|
|
14
|
+
s[0] === a ? f = s[1] : (f = mergeComponentProps("tooltip", a), s[0] = a, s[1] = f);
|
|
15
|
+
let p = f, m;
|
|
16
|
+
s[2] !== d || s[3] !== p ? (m = /* @__PURE__ */ jsx(RadixTooltip.Tooltip, {
|
|
17
|
+
...p,
|
|
18
|
+
onOpenChange: d
|
|
19
|
+
}), s[2] = d, s[3] = p, s[4] = m) : m = s[4];
|
|
21
20
|
let h;
|
|
22
|
-
return s[5] !==
|
|
21
|
+
return s[5] !== l || s[6] !== m ? (h = /* @__PURE__ */ jsx(RadixTooltip.TooltipProvider, {
|
|
23
22
|
delayDuration: 0,
|
|
24
23
|
children: /* @__PURE__ */ jsx(TooltipOpenContext.Provider, {
|
|
25
|
-
value:
|
|
26
|
-
children:
|
|
24
|
+
value: l,
|
|
25
|
+
children: m
|
|
27
26
|
})
|
|
28
|
-
}), s[5] =
|
|
29
|
-
}, TooltipTrigger = (
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
let l =
|
|
33
|
-
return
|
|
34
|
-
}, TooltipPortal = (
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let l =
|
|
38
|
-
return
|
|
27
|
+
}), s[5] = l, s[6] = m, s[7] = h) : h = s[7], h;
|
|
28
|
+
}, TooltipTrigger = (a) => {
|
|
29
|
+
let o = c(4), s;
|
|
30
|
+
o[0] === a ? s = o[1] : (s = mergeComponentProps("tooltip__trigger", a), o[0] = a, o[1] = s);
|
|
31
|
+
let l = s, d;
|
|
32
|
+
return o[2] === l ? d = o[3] : (d = /* @__PURE__ */ jsx(RadixTooltip.TooltipTrigger, { ...l }), o[2] = l, o[3] = d), d;
|
|
33
|
+
}, TooltipPortal = (a) => {
|
|
34
|
+
let o = c(4), s;
|
|
35
|
+
o[0] === a ? s = o[1] : (s = mergeComponentProps("tooltip__portal", a), o[0] = a, o[1] = s);
|
|
36
|
+
let l = s, d;
|
|
37
|
+
return o[2] === l ? d = o[3] : (d = /* @__PURE__ */ jsx(RadixTooltip.TooltipPortal, {
|
|
39
38
|
forceMount: !0,
|
|
40
39
|
...l
|
|
41
|
-
}),
|
|
42
|
-
}, TooltipContent = (
|
|
43
|
-
let { children: u, ...m } =
|
|
40
|
+
}), o[2] = l, o[3] = d), d;
|
|
41
|
+
}, TooltipContent = (o) => {
|
|
42
|
+
let { children: u, ...m } = o, h = React.useContext(TooltipOpenContext), g = React.useRef(h), _ = usePopperMotion();
|
|
44
43
|
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
45
44
|
initial: !g.current,
|
|
46
45
|
children: h && /* @__PURE__ */ jsx(RadixTooltip.TooltipContent, {
|
|
47
46
|
forceMount: !0,
|
|
48
47
|
asChild: !0,
|
|
49
|
-
align:
|
|
50
|
-
...mergeComponentProps(`tooltip__content tooltip__content--${
|
|
48
|
+
align: o.align,
|
|
49
|
+
...mergeComponentProps(`tooltip__content tooltip__content--${o.color ?? "tertiary"}`, m),
|
|
51
50
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
52
51
|
..._,
|
|
53
52
|
style: popperTransformOrigin("tooltip"),
|
|
@@ -58,10 +57,10 @@ const Tooltip = (e) => {
|
|
|
58
57
|
})
|
|
59
58
|
}, "tooltip__content")
|
|
60
59
|
});
|
|
61
|
-
}, TooltipArrow = (
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
let
|
|
65
|
-
return
|
|
60
|
+
}, TooltipArrow = (a) => {
|
|
61
|
+
let o = c(5), s = `tooltip__arrow tooltip__arrow--${a.color ?? "tertiary"}}`, l;
|
|
62
|
+
o[0] !== a || o[1] !== s ? (l = mergeComponentProps(s, a), o[0] = a, o[1] = s, o[2] = l) : l = o[2];
|
|
63
|
+
let d = l, f;
|
|
64
|
+
return o[3] === d ? f = o[4] : (f = /* @__PURE__ */ jsx(RadixTooltip.TooltipArrow, { ...d }), o[3] = d, o[4] = f), f;
|
|
66
65
|
};
|
|
67
66
|
export { Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipTrigger };
|
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
2
|
import React, { createContext, useContext } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var import_compiler_runtime = require_compiler_runtime();
|
|
5
4
|
const ContextStore = createContext(null);
|
|
6
5
|
function getPrototypeChainCtors(e) {
|
|
7
|
-
let
|
|
8
|
-
for (;
|
|
9
|
-
let e =
|
|
10
|
-
|
|
6
|
+
let n = [], r = Object.getPrototypeOf(e);
|
|
7
|
+
for (; r && r.constructor && r !== Object.prototype;) {
|
|
8
|
+
let e = r.constructor;
|
|
9
|
+
n.push(e), r = Object.getPrototypeOf(r);
|
|
11
10
|
}
|
|
12
|
-
return
|
|
11
|
+
return n;
|
|
13
12
|
}
|
|
14
|
-
const ContextStoreProvider = (
|
|
15
|
-
let r =
|
|
16
|
-
r[0] === i ?
|
|
17
|
-
let [
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
for (let e of
|
|
21
|
-
}), r[0] = i, r[1] =
|
|
22
|
-
let
|
|
23
|
-
return r[2] !==
|
|
24
|
-
value:
|
|
25
|
-
children:
|
|
26
|
-
}), r[2] =
|
|
27
|
-
}, useService = (
|
|
28
|
-
let r =
|
|
29
|
-
if (!
|
|
13
|
+
const ContextStoreProvider = (n) => {
|
|
14
|
+
let r = c(5), { services: i, children: s } = n, l;
|
|
15
|
+
r[0] === i ? l = r[1] : (l = /* @__PURE__ */ new Map(), i.forEach((e) => {
|
|
16
|
+
let [n, r] = e, i = r.constructor;
|
|
17
|
+
l.has(i) || l.set(i, [n, r]);
|
|
18
|
+
let a = getPrototypeChainCtors(r);
|
|
19
|
+
for (let e of a) l.has(e) || l.set(e, [n, r]);
|
|
20
|
+
}), r[0] = i, r[1] = l);
|
|
21
|
+
let u = l, d;
|
|
22
|
+
return r[2] !== s || r[3] !== u ? (d = /* @__PURE__ */ jsx(ContextStore.Provider, {
|
|
23
|
+
value: u,
|
|
24
|
+
children: s
|
|
25
|
+
}), r[2] = s, r[3] = u, r[4] = d) : d = r[4], d;
|
|
26
|
+
}, useService = (n) => {
|
|
27
|
+
let r = c(3), a = useContext(ContextStore);
|
|
28
|
+
if (!a) throw Error("ContextStore not found");
|
|
30
29
|
let o;
|
|
31
|
-
r[0] !==
|
|
30
|
+
r[0] !== n || r[1] !== a ? (o = a.get(n), r[0] = n, r[1] = a, r[2] = o) : o = r[2];
|
|
32
31
|
let s = o;
|
|
33
32
|
if (!s) {
|
|
34
|
-
let
|
|
35
|
-
throw Error(`Service not found for ${
|
|
33
|
+
let e = n?.name ?? "UnknownServiceClass";
|
|
34
|
+
throw Error(`Service not found for ${e}`);
|
|
36
35
|
}
|
|
37
36
|
return s[1];
|
|
38
|
-
}, useStore = (
|
|
39
|
-
let r =
|
|
40
|
-
if (!
|
|
37
|
+
}, useStore = (n) => {
|
|
38
|
+
let r = c(3), a = useContext(ContextStore);
|
|
39
|
+
if (!a) throw Error("ContextStore not found");
|
|
41
40
|
let o;
|
|
42
|
-
r[0] !==
|
|
41
|
+
r[0] !== n || r[1] !== a ? (o = a.get(n), r[0] = n, r[1] = a, r[2] = o) : o = r[2];
|
|
43
42
|
let s = o;
|
|
44
43
|
if (!s) {
|
|
45
|
-
let
|
|
46
|
-
throw Error(`Store not found for ${
|
|
44
|
+
let e = n?.name ?? "UnknownServiceClass";
|
|
45
|
+
throw Error(`Store not found for ${e}`);
|
|
47
46
|
}
|
|
48
47
|
return s[0];
|
|
49
48
|
};
|
package/dist/utils/motion.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useReducedMotion } from "../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
3
2
|
import React from "react";
|
|
4
|
-
|
|
5
|
-
const spring = (e,
|
|
3
|
+
import { useReducedMotion } from "motion/react";
|
|
4
|
+
const spring = (e, i) => ({
|
|
6
5
|
type: "spring",
|
|
7
6
|
bounce: Math.max(0, 1 - e),
|
|
8
|
-
duration:
|
|
7
|
+
duration: i
|
|
9
8
|
}), springs = {
|
|
10
9
|
ui: spring(1, .3),
|
|
11
10
|
surface: spring(1, .4),
|
|
@@ -15,11 +14,11 @@ const spring = (e, o) => ({
|
|
|
15
14
|
duration: .15,
|
|
16
15
|
ease: "easeOut"
|
|
17
16
|
}, useReducedMotionSafe = () => useReducedMotion() ?? !1;
|
|
18
|
-
var materialize = (e,
|
|
17
|
+
var materialize = (e, i, a) => ({
|
|
19
18
|
initial: {
|
|
20
19
|
opacity: 0,
|
|
21
20
|
scale: e,
|
|
22
|
-
filter: `blur(${
|
|
21
|
+
filter: `blur(${i}px)`
|
|
23
22
|
},
|
|
24
23
|
animate: {
|
|
25
24
|
opacity: 1,
|
|
@@ -29,9 +28,9 @@ var materialize = (e, o, s) => ({
|
|
|
29
28
|
exit: {
|
|
30
29
|
opacity: 0,
|
|
31
30
|
scale: e,
|
|
32
|
-
filter: `blur(${
|
|
31
|
+
filter: `blur(${i}px)`
|
|
33
32
|
},
|
|
34
|
-
transition:
|
|
33
|
+
transition: a
|
|
35
34
|
}), fade = {
|
|
36
35
|
initial: { opacity: 0 },
|
|
37
36
|
animate: { opacity: 1 },
|
|
@@ -39,49 +38,49 @@ var materialize = (e, o, s) => ({
|
|
|
39
38
|
transition: crossFade
|
|
40
39
|
};
|
|
41
40
|
const usePopperMotion = () => {
|
|
42
|
-
let
|
|
43
|
-
return
|
|
41
|
+
let i = c(2), a = useReducedMotionSafe(), o;
|
|
42
|
+
return i[0] === a ? o = i[1] : (o = a ? fade : materialize(.96, 4, springs.ui), i[0] = a, i[1] = o), o;
|
|
44
43
|
}, useSurfaceMotion = () => {
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
}, useScrimMotion = (
|
|
48
|
-
let
|
|
44
|
+
let i = c(2), a = useReducedMotionSafe(), o;
|
|
45
|
+
return i[0] === a ? o = i[1] : (o = a ? fade : materialize(.97, 6, springs.surface), i[0] = a, i[1] = o), o;
|
|
46
|
+
}, useScrimMotion = (i) => {
|
|
47
|
+
let a = c(6), o = i === void 0 ? 6 : i;
|
|
49
48
|
if (useReducedMotionSafe()) return fade;
|
|
50
|
-
let
|
|
51
|
-
|
|
49
|
+
let l;
|
|
50
|
+
a[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
52
51
|
opacity: 0,
|
|
53
52
|
backdropFilter: "blur(0px)"
|
|
54
|
-
},
|
|
55
|
-
let
|
|
56
|
-
|
|
53
|
+
}, a[0] = l) : l = a[0];
|
|
54
|
+
let d = `blur(${o}px)`, p;
|
|
55
|
+
a[1] === d ? p = a[2] : (p = {
|
|
57
56
|
opacity: 1,
|
|
58
|
-
backdropFilter:
|
|
59
|
-
},
|
|
57
|
+
backdropFilter: d
|
|
58
|
+
}, a[1] = d, a[2] = p);
|
|
60
59
|
let m;
|
|
61
|
-
|
|
60
|
+
a[3] === Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
62
61
|
opacity: 0,
|
|
63
62
|
backdropFilter: "blur(0px)"
|
|
64
|
-
},
|
|
63
|
+
}, a[3] = m) : m = a[3];
|
|
65
64
|
let h;
|
|
66
|
-
return
|
|
67
|
-
initial:
|
|
68
|
-
animate:
|
|
65
|
+
return a[4] === p ? h = a[5] : (h = {
|
|
66
|
+
initial: l,
|
|
67
|
+
animate: p,
|
|
69
68
|
exit: m,
|
|
70
69
|
transition: springs.surface
|
|
71
|
-
},
|
|
72
|
-
}, popperTransformOrigin = (e) => ({ transformOrigin: `var(--radix-${e}-content-transform-origin, center)` }), useObservedOpen = (
|
|
73
|
-
let l =
|
|
74
|
-
l[0] ===
|
|
75
|
-
d(e),
|
|
76
|
-
}, l[0] =
|
|
77
|
-
let p = f, m =
|
|
70
|
+
}, a[4] = p, a[5] = h), h;
|
|
71
|
+
}, popperTransformOrigin = (e) => ({ transformOrigin: `var(--radix-${e}-content-transform-origin, center)` }), useObservedOpen = (a, o, s) => {
|
|
72
|
+
let l = c(5), [u, d] = React.useState(a ?? o ?? !1), f;
|
|
73
|
+
l[0] === s ? f = l[1] : (f = (e) => {
|
|
74
|
+
d(e), s?.(e);
|
|
75
|
+
}, l[0] = s, l[1] = f);
|
|
76
|
+
let p = f, m = a ?? u, h;
|
|
78
77
|
return l[2] !== p || l[3] !== m ? (h = [m, p], l[2] = p, l[3] = m, l[4] = h) : h = l[4], h;
|
|
79
|
-
}, useObservedValue = (
|
|
80
|
-
let l =
|
|
81
|
-
l[0] ===
|
|
82
|
-
d(e),
|
|
83
|
-
}, l[0] =
|
|
84
|
-
let p = f, m =
|
|
78
|
+
}, useObservedValue = (a, o, s) => {
|
|
79
|
+
let l = c(5), [u, d] = React.useState(a ?? o), f;
|
|
80
|
+
l[0] === s ? f = l[1] : (f = (e) => {
|
|
81
|
+
d(e), s?.(e);
|
|
82
|
+
}, l[0] = s, l[1] = f);
|
|
83
|
+
let p = f, m = a ?? u, h;
|
|
85
84
|
return l[2] !== p || l[3] !== m ? (h = [m, p], l[2] = p, l[3] = m, l[4] = h) : h = l[4], h;
|
|
86
85
|
};
|
|
87
86
|
export { crossFade, popperTransformOrigin, spring, springs, useObservedOpen, useObservedValue, usePopperMotion, useReducedMotionSafe, useScrimMotion, useSurfaceMotion };
|