@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,59 +1,58 @@
|
|
|
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";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { Fragment
|
|
6
|
-
var import_compiler_runtime = require_compiler_runtime();
|
|
5
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
7
6
|
const DataTablePaginationContext = React.createContext(null), useDataTablePagination = () => {
|
|
8
7
|
let e = React.useContext(DataTablePaginationContext);
|
|
9
8
|
if (!e) throw Error("DataTablePagination components must be rendered inside a paginated <DataTable/>");
|
|
10
9
|
return e;
|
|
11
|
-
}, DataTablePagination = (
|
|
12
|
-
let i =
|
|
13
|
-
i[0] ===
|
|
14
|
-
let
|
|
15
|
-
return i[2] === a ?
|
|
10
|
+
}, DataTablePagination = (r) => {
|
|
11
|
+
let i = c(4), a;
|
|
12
|
+
i[0] === r ? a = i[1] : (a = mergeComponentProps("data-table__pagination", r), i[0] = r, i[1] = a);
|
|
13
|
+
let o;
|
|
14
|
+
return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx("div", { ...a }), i[2] = a, i[3] = o), o;
|
|
16
15
|
}, DataTablePaginationValue = () => {
|
|
17
|
-
let e =
|
|
18
|
-
return e[0] ===
|
|
16
|
+
let e = c(2), { page: r } = useDataTablePagination(), a = r + 1, s;
|
|
17
|
+
return e[0] === a ? s = e[1] : (s = /* @__PURE__ */ jsx(Fragment, { children: a }), e[0] = a, e[1] = s), s;
|
|
19
18
|
}, DataTableMaxPaginationValue = () => {
|
|
20
|
-
let e =
|
|
21
|
-
return e[0] === r ?
|
|
19
|
+
let e = c(2), { pageCount: r } = useDataTablePagination(), a;
|
|
20
|
+
return e[0] === r ? a = e[1] : (a = /* @__PURE__ */ jsx(Fragment, { children: r }), e[0] = r, e[1] = a), a;
|
|
22
21
|
};
|
|
23
|
-
var PaginationTrigger = React.forwardRef((e,
|
|
24
|
-
let { page:
|
|
25
|
-
|
|
22
|
+
var PaginationTrigger = React.forwardRef((e, n) => {
|
|
23
|
+
let { page: i, pageCount: a, setPage: s } = useDataTablePagination(), { direction: l, asChild: u, onClick: d, disabled: f, children: p, ...m } = e, h = l === "forward" ? i >= a - 1 : i <= 0, g = f ?? h, _ = () => {
|
|
24
|
+
g || s((e) => l === "forward" ? Math.min(a - 1, e + 1) : Math.max(0, e - 1));
|
|
26
25
|
};
|
|
27
|
-
if (
|
|
28
|
-
let e =
|
|
26
|
+
if (u && React.isValidElement(p)) {
|
|
27
|
+
let e = p;
|
|
29
28
|
return React.cloneElement(e, {
|
|
30
|
-
ref:
|
|
31
|
-
disabled: e.props.disabled ??
|
|
32
|
-
onClick: (
|
|
33
|
-
e.props.onClick?.(
|
|
29
|
+
ref: n,
|
|
30
|
+
disabled: e.props.disabled ?? g,
|
|
31
|
+
onClick: (n) => {
|
|
32
|
+
e.props.onClick?.(n), d?.(n), _();
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
36
|
return /* @__PURE__ */ jsx("button", {
|
|
38
|
-
...
|
|
39
|
-
ref:
|
|
37
|
+
...m,
|
|
38
|
+
ref: n,
|
|
40
39
|
type: "button",
|
|
41
|
-
disabled:
|
|
40
|
+
disabled: g,
|
|
42
41
|
onClick: (e) => {
|
|
43
|
-
|
|
42
|
+
d?.(e), _();
|
|
44
43
|
},
|
|
45
|
-
children:
|
|
44
|
+
children: p
|
|
46
45
|
});
|
|
47
46
|
});
|
|
48
47
|
const DataTablePaginationForwardTrigger = React.forwardRef((e, r) => {
|
|
49
|
-
let i =
|
|
48
|
+
let i = c(3), a;
|
|
50
49
|
return i[0] !== e || i[1] !== r ? (a = /* @__PURE__ */ jsx(PaginationTrigger, {
|
|
51
50
|
...e,
|
|
52
51
|
direction: "forward",
|
|
53
52
|
ref: r
|
|
54
53
|
}), i[0] = e, i[1] = r, i[2] = a) : a = i[2], a;
|
|
55
54
|
}), DataTablePaginationBackwardsTrigger = React.forwardRef((e, r) => {
|
|
56
|
-
let i =
|
|
55
|
+
let i = c(3), a;
|
|
57
56
|
return i[0] !== e || i[1] !== r ? (a = /* @__PURE__ */ jsx(PaginationTrigger, {
|
|
58
57
|
...e,
|
|
59
58
|
direction: "backward",
|
|
@@ -1,77 +1,76 @@
|
|
|
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 { useObservedOpen, useScrimMotion, useSurfaceMotion } from "../../utils/motion.js";
|
|
6
3
|
import "../../utils/index.js";
|
|
7
4
|
import { Button } from "../button/Button.js";
|
|
8
5
|
import '../../assets/Dialog.style.css';/* empty css */
|
|
9
6
|
import { Flex } from "../flex/Flex.js";
|
|
10
7
|
import { Text } from "../text/Text.js";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
11
9
|
import React from "react";
|
|
12
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
13
12
|
import { IconX } from "@tabler/icons-react";
|
|
14
13
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
15
|
-
var
|
|
16
|
-
const Dialog = (
|
|
17
|
-
let v =
|
|
18
|
-
v[0] ===
|
|
19
|
-
let C =
|
|
20
|
-
v[2] !==
|
|
14
|
+
var DialogOpenContext = React.createContext(!1);
|
|
15
|
+
const Dialog = (_) => {
|
|
16
|
+
let v = c(8), [y, b] = useObservedOpen(_.open, _.defaultOpen, _.onOpenChange), x;
|
|
17
|
+
v[0] === _ ? x = v[1] : (x = mergeComponentProps("dialog", _), v[0] = _, v[1] = x);
|
|
18
|
+
let C = x, w;
|
|
19
|
+
v[2] !== b || v[3] !== C ? (w = /* @__PURE__ */ jsx(DialogPrimitive.Root, {
|
|
21
20
|
...C,
|
|
22
|
-
onOpenChange:
|
|
23
|
-
}), v[2] =
|
|
21
|
+
onOpenChange: b
|
|
22
|
+
}), v[2] = b, v[3] = C, v[4] = w) : w = v[4];
|
|
24
23
|
let T;
|
|
25
24
|
return v[5] !== y || v[6] !== w ? (T = /* @__PURE__ */ jsx(DialogOpenContext.Provider, {
|
|
26
25
|
value: y,
|
|
27
26
|
children: w
|
|
28
27
|
}), v[5] = y, v[6] = w, v[7] = T) : T = v[7], T;
|
|
29
|
-
}, DialogTrigger = (
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
let
|
|
33
|
-
return
|
|
34
|
-
}, DialogPortal = (
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
return
|
|
28
|
+
}, DialogTrigger = (g) => {
|
|
29
|
+
let _ = c(4), v;
|
|
30
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__trigger", g), _[0] = g, _[1] = v);
|
|
31
|
+
let y = v, b;
|
|
32
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...y }), _[2] = y, _[3] = b), b;
|
|
33
|
+
}, DialogPortal = (g) => {
|
|
34
|
+
let _ = c(4), v;
|
|
35
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__portal", g), _[0] = g, _[1] = v);
|
|
36
|
+
let y = v, b;
|
|
37
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx(DialogPrimitive.Portal, {
|
|
39
38
|
forceMount: !0,
|
|
40
|
-
...
|
|
41
|
-
}),
|
|
42
|
-
}, DialogClose = (
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
}, DialogOverlay = (
|
|
48
|
-
let
|
|
39
|
+
...y
|
|
40
|
+
}), _[2] = y, _[3] = b), b;
|
|
41
|
+
}, DialogClose = (g) => {
|
|
42
|
+
let _ = c(4), v;
|
|
43
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__close", g), _[0] = g, _[1] = v);
|
|
44
|
+
let y = v, b;
|
|
45
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...y }), _[2] = y, _[3] = b), b;
|
|
46
|
+
}, DialogOverlay = (g) => {
|
|
47
|
+
let v = React.useContext(DialogOpenContext), y = React.useRef(v), b = useScrimMotion();
|
|
49
48
|
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
50
|
-
initial: !
|
|
51
|
-
children:
|
|
49
|
+
initial: !y.current,
|
|
50
|
+
children: v && /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
52
51
|
forceMount: !0,
|
|
53
52
|
asChild: !0,
|
|
54
|
-
...mergeComponentProps("dialog__overlay",
|
|
55
|
-
children: /* @__PURE__ */ jsx(motion.div, { ...
|
|
53
|
+
...mergeComponentProps("dialog__overlay", g),
|
|
54
|
+
children: /* @__PURE__ */ jsx(motion.div, { ...b })
|
|
56
55
|
}, "dialog__overlay")
|
|
57
56
|
});
|
|
58
|
-
}, DialogContent = (
|
|
59
|
-
let
|
|
57
|
+
}, DialogContent = (g) => {
|
|
58
|
+
let _ = React.useContext(DialogOpenContext), S = React.useRef(_), E = useSurfaceMotion();
|
|
60
59
|
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
61
|
-
initial: !
|
|
62
|
-
children:
|
|
60
|
+
initial: !S.current,
|
|
61
|
+
children: _ && /* @__PURE__ */ jsx(DialogPrimitive.Content, {
|
|
63
62
|
forceMount: !0,
|
|
64
63
|
asChild: !0,
|
|
65
|
-
...mergeComponentProps("dialog__content",
|
|
64
|
+
...mergeComponentProps("dialog__content", g),
|
|
66
65
|
children: /* @__PURE__ */ jsxs(motion.div, {
|
|
67
66
|
...E,
|
|
68
|
-
children: [
|
|
67
|
+
children: [g.showCloseButton && /* @__PURE__ */ jsxs(Flex, {
|
|
69
68
|
align: "center",
|
|
70
69
|
justify: "space-between",
|
|
71
70
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
72
71
|
hierarchy: "primary",
|
|
73
72
|
size: "xl",
|
|
74
|
-
children:
|
|
73
|
+
children: g.title
|
|
75
74
|
}), /* @__PURE__ */ jsx(DialogClose, {
|
|
76
75
|
asChild: !0,
|
|
77
76
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -80,29 +79,29 @@ const Dialog = (t) => {
|
|
|
80
79
|
children: /* @__PURE__ */ jsx(IconX, { size: 16 })
|
|
81
80
|
})
|
|
82
81
|
})]
|
|
83
|
-
}),
|
|
82
|
+
}), g.children]
|
|
84
83
|
})
|
|
85
84
|
}, "dialog__content")
|
|
86
85
|
});
|
|
87
|
-
}, DialogTitle = (
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
let
|
|
91
|
-
return
|
|
92
|
-
}, DialogDescription = (
|
|
93
|
-
let
|
|
94
|
-
|
|
95
|
-
let
|
|
96
|
-
return
|
|
97
|
-
}, DialogHeader = (
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
-
let
|
|
101
|
-
return
|
|
102
|
-
}, DialogFooter = (
|
|
103
|
-
let
|
|
104
|
-
|
|
105
|
-
let
|
|
106
|
-
return
|
|
86
|
+
}, DialogTitle = (g) => {
|
|
87
|
+
let _ = c(4), v;
|
|
88
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__title", g), _[0] = g, _[1] = v);
|
|
89
|
+
let y = v, b;
|
|
90
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...y }), _[2] = y, _[3] = b), b;
|
|
91
|
+
}, DialogDescription = (g) => {
|
|
92
|
+
let _ = c(4), v;
|
|
93
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__description", g), _[0] = g, _[1] = v);
|
|
94
|
+
let y = v, b;
|
|
95
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...y }), _[2] = y, _[3] = b), b;
|
|
96
|
+
}, DialogHeader = (g) => {
|
|
97
|
+
let _ = c(4), v;
|
|
98
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__header", g), _[0] = g, _[1] = v);
|
|
99
|
+
let y = v, b;
|
|
100
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx("div", { ...y }), _[2] = y, _[3] = b), b;
|
|
101
|
+
}, DialogFooter = (g) => {
|
|
102
|
+
let _ = c(4), v;
|
|
103
|
+
_[0] === g ? v = _[1] : (v = mergeComponentProps("dialog__footer", g), _[0] = g, _[1] = v);
|
|
104
|
+
let y = v, b;
|
|
105
|
+
return _[2] === y ? b = _[3] : (b = /* @__PURE__ */ jsx("div", { ...y }), _[2] = y, _[3] = b), b;
|
|
107
106
|
};
|
|
108
107
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,79 +1,78 @@
|
|
|
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 { ScrollArea, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "../scroll-area/ScrollArea.js";
|
|
5
4
|
import '../../assets/FileTabs.style.css';/* empty css */
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { IconX } from "@tabler/icons-react";
|
|
9
9
|
import { Content, List, Tabs, Trigger } from "@radix-ui/react-tabs";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
a[0] === e ? o = a[1] : (o = mergeComponentProps("file-tabs", e), a[0] = e, a[1] = o);
|
|
10
|
+
const FileTabs = (i) => {
|
|
11
|
+
let a = c(4), o;
|
|
12
|
+
a[0] === i ? o = a[1] : (o = mergeComponentProps("file-tabs", i), a[0] = i, a[1] = o);
|
|
14
13
|
let s;
|
|
15
14
|
return a[2] === o ? s = a[3] : (s = /* @__PURE__ */ jsx(Tabs, {
|
|
16
15
|
"data-slot": "tabs",
|
|
17
16
|
...o
|
|
18
17
|
}), a[2] = o, a[3] = s), s;
|
|
19
|
-
}, FileTabsList = (
|
|
20
|
-
let a =
|
|
21
|
-
a[0] ===
|
|
18
|
+
}, FileTabsList = (i) => {
|
|
19
|
+
let a = c(10), o;
|
|
20
|
+
a[0] === i ? o = a[1] : (o = mergeComponentProps("file-tabs__list", i), a[0] = i, a[1] = o);
|
|
22
21
|
let s;
|
|
23
|
-
a[2] ===
|
|
22
|
+
a[2] === i.children ? s = a[3] : (s = /* @__PURE__ */ jsxs("div", {
|
|
24
23
|
className: "file-tabs__list-content",
|
|
25
|
-
children: [" ",
|
|
26
|
-
}), a[2] =
|
|
27
|
-
let c;
|
|
28
|
-
a[4] === e.controls ? c = a[5] : (c = e.controls ? /* @__PURE__ */ jsx("div", {
|
|
29
|
-
className: "file-tabs__list-controls",
|
|
30
|
-
children: e.controls
|
|
31
|
-
}) : null, a[4] = e.controls, a[5] = c);
|
|
24
|
+
children: [" ", i.children]
|
|
25
|
+
}), a[2] = i.children, a[3] = s);
|
|
32
26
|
let l;
|
|
33
|
-
|
|
27
|
+
a[4] === i.controls ? l = a[5] : (l = i.controls ? /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "file-tabs__list-controls",
|
|
29
|
+
children: i.controls
|
|
30
|
+
}) : null, a[4] = i.controls, a[5] = l);
|
|
31
|
+
let u;
|
|
32
|
+
return a[6] !== o || a[7] !== s || a[8] !== l ? (u = /* @__PURE__ */ jsxs(List, {
|
|
34
33
|
"data-slot": "tabs",
|
|
35
34
|
...o,
|
|
36
|
-
children: [s,
|
|
37
|
-
}), a[6] = o, a[7] = s, a[8] =
|
|
38
|
-
}, FileTabsTrigger = (
|
|
39
|
-
let a =
|
|
40
|
-
a[0] ===
|
|
41
|
-
let
|
|
42
|
-
a[2] !==
|
|
35
|
+
children: [s, l]
|
|
36
|
+
}), a[6] = o, a[7] = s, a[8] = l, a[9] = u) : u = a[9], u;
|
|
37
|
+
}, FileTabsTrigger = (i) => {
|
|
38
|
+
let a = c(10), o = i.value, s;
|
|
39
|
+
a[0] === i ? s = a[1] : (s = mergeComponentProps("file-tabs__trigger", i), a[0] = i, a[1] = s);
|
|
40
|
+
let l = s, d;
|
|
41
|
+
a[2] !== i.closable || a[3] !== i.onClose ? (d = i.closable ? /* @__PURE__ */ jsx("div", {
|
|
43
42
|
className: "file-tabs__trigger-icon",
|
|
44
|
-
onClick:
|
|
43
|
+
onClick: i.onClose,
|
|
45
44
|
children: /* @__PURE__ */ jsx(IconX, { size: 12 })
|
|
46
|
-
}) : null, a[2] =
|
|
47
|
-
let
|
|
48
|
-
return a[5] !==
|
|
45
|
+
}) : null, a[2] = i.closable, a[3] = i.onClose, a[4] = d) : d = a[4];
|
|
46
|
+
let f;
|
|
47
|
+
return a[5] !== i.children || a[6] !== i.value || a[7] !== l || a[8] !== d ? (f = /* @__PURE__ */ jsxs(Trigger, {
|
|
49
48
|
"data-slot": "tabs",
|
|
50
49
|
"data-value": o,
|
|
51
|
-
...
|
|
52
|
-
children: [
|
|
53
|
-
}), a[5] =
|
|
54
|
-
}, FileTabsContent = (
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
let { children:
|
|
58
|
-
|
|
59
|
-
} else
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
let
|
|
63
|
-
|
|
50
|
+
...l,
|
|
51
|
+
children: [i.children, d]
|
|
52
|
+
}), a[5] = i.children, a[6] = i.value, a[7] = l, a[8] = d, a[9] = f) : f = a[9], f;
|
|
53
|
+
}, FileTabsContent = (l) => {
|
|
54
|
+
let u = c(15), f, p, m, h;
|
|
55
|
+
if (u[0] !== l) {
|
|
56
|
+
let { children: i, ...a } = l;
|
|
57
|
+
p = i, f = Content, h = "tabs", m = mergeComponentProps("file-tabs__content", a), u[0] = l, u[1] = f, u[2] = p, u[3] = m, u[4] = h;
|
|
58
|
+
} else f = u[1], p = u[2], m = u[3], h = u[4];
|
|
59
|
+
let g = m, _;
|
|
60
|
+
u[5] === p ? _ = u[6] : (_ = /* @__PURE__ */ jsx(ScrollAreaViewport, { children: p }), u[5] = p, u[6] = _);
|
|
61
|
+
let v;
|
|
62
|
+
u[7] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
|
|
64
63
|
orientation: "vertical",
|
|
65
64
|
children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
|
|
66
|
-
}),
|
|
67
|
-
let v;
|
|
68
|
-
l[8] === g ? v = l[9] : (v = /* @__PURE__ */ jsxs(ScrollArea, {
|
|
69
|
-
h: "100%",
|
|
70
|
-
children: [g, _]
|
|
71
|
-
}), l[8] = g, l[9] = v);
|
|
65
|
+
}), u[7] = v) : v = u[7];
|
|
72
66
|
let y;
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
u[8] === _ ? y = u[9] : (y = /* @__PURE__ */ jsxs(ScrollArea, {
|
|
68
|
+
h: "100%",
|
|
69
|
+
children: [_, v]
|
|
70
|
+
}), u[8] = _, u[9] = y);
|
|
71
|
+
let b;
|
|
72
|
+
return u[10] !== f || u[11] !== h || u[12] !== g || u[13] !== y ? (b = /* @__PURE__ */ jsx(f, {
|
|
73
|
+
"data-slot": h,
|
|
74
|
+
...g,
|
|
75
|
+
children: y
|
|
76
|
+
}), u[10] = f, u[11] = h, u[12] = g, u[13] = y, u[14] = b) : b = u[14], b;
|
|
78
77
|
};
|
|
79
78
|
export { FileTabs, FileTabsContent, FileTabsList, FileTabsTrigger };
|
|
@@ -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/Flex.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 Flex = (n) => {
|
|
8
|
+
let i = c(6), a, o;
|
|
9
|
+
if (i[0] !== n) {
|
|
10
|
+
let { children: t, ...r } = n;
|
|
11
|
+
a = t, o = mergeComponentProps("flex", r), 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("div", {
|
|
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 { Flex };
|
|
@@ -1,75 +1,74 @@
|
|
|
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 { InputLabel } from "./InputLabel.js";
|
|
5
4
|
import { InputDescription } from "./InputDescription.js";
|
|
6
5
|
import { InputMessage } from "./InputMessage.js";
|
|
7
6
|
import '../../assets/Input.style.css';/* empty css */
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
8
|
import React from "react";
|
|
9
|
-
import { Fragment
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { IconCheck, IconMinus } from "@tabler/icons-react";
|
|
11
11
|
import { Checkbox, CheckboxIndicator } from "@radix-ui/react-checkbox";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
g[0] === y ? x = g[1] : (x = y === void 0 ? {
|
|
12
|
+
const CheckboxInput = (g) => {
|
|
13
|
+
let _ = c(40), { title: v, description: y, formValidation: b, ...x } = g, S;
|
|
14
|
+
_[0] === b ? S = _[1] : (S = b === void 0 ? {
|
|
16
15
|
valid: !0,
|
|
17
16
|
notValidMessage: null,
|
|
18
17
|
setValue: _temp
|
|
19
|
-
} :
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
let E;
|
|
25
|
-
g[5] === C ? E = g[6] : (E = [C], g[5] = C, g[6] = E), React.useEffect(T, E);
|
|
18
|
+
} : b, _[0] = b, _[1] = S);
|
|
19
|
+
let C = S, [w, T] = React.useState(g.initialValue ?? "indeterminate"), E;
|
|
20
|
+
_[2] !== w || _[3] !== C ? (E = () => {
|
|
21
|
+
C.setValue?.(w);
|
|
22
|
+
}, _[2] = w, _[3] = C, _[4] = E) : E = _[4];
|
|
26
23
|
let D;
|
|
27
|
-
|
|
24
|
+
_[5] === w ? D = _[6] : (D = [w], _[5] = w, _[6] = D), React.useEffect(E, D);
|
|
28
25
|
let O;
|
|
29
|
-
|
|
30
|
-
let k
|
|
31
|
-
|
|
32
|
-
let j;
|
|
33
|
-
|
|
34
|
-
let M
|
|
35
|
-
|
|
36
|
-
let F;
|
|
37
|
-
|
|
26
|
+
_[7] === v ? O = _[8] : (O = v ? /* @__PURE__ */ jsx(InputLabel, { children: v }) : null, _[7] = v, _[8] = O);
|
|
27
|
+
let k;
|
|
28
|
+
_[9] === y ? k = _[10] : (k = y ? /* @__PURE__ */ jsx(InputDescription, { children: y }) : null, _[9] = y, _[10] = k);
|
|
29
|
+
let A = `input ${C?.valid ? "" : "input--not-valid"} checkbox-input`, j;
|
|
30
|
+
_[11] === A ? j = _[12] : (j = mergeComponentProps(A, {}), _[11] = A, _[12] = j);
|
|
31
|
+
let M;
|
|
32
|
+
_[13] === Symbol.for("react.memo_cache_sentinel") ? (M = () => T(_temp2), _[13] = M) : M = _[13];
|
|
33
|
+
let N = Checkbox, P = mergeComponentProps("checkbox-input__button", x), F;
|
|
34
|
+
_[14] === w ? F = _[15] : (F = w === "indeterminate" && /* @__PURE__ */ jsx(IconMinus, { size: 16 }), _[14] = w, _[15] = F);
|
|
38
35
|
let I;
|
|
39
|
-
|
|
40
|
-
className: "checkbox-input__indicator",
|
|
41
|
-
children: [P, F]
|
|
42
|
-
}), g[18] = P, g[19] = F, g[20] = I) : I = g[20];
|
|
36
|
+
_[16] === w ? I = _[17] : (I = w === !0 && /* @__PURE__ */ jsx(IconCheck, { size: 16 }), _[16] = w, _[17] = I);
|
|
43
37
|
let L;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
children: I
|
|
49
|
-
}), g[21] = M, g[22] = C, g[23] = I, g[24] = N, g[25] = L) : L = g[25];
|
|
38
|
+
_[18] !== F || _[19] !== I ? (L = /* @__PURE__ */ jsxs(CheckboxIndicator, {
|
|
39
|
+
className: "checkbox-input__indicator",
|
|
40
|
+
children: [F, I]
|
|
41
|
+
}), _[18] = F, _[19] = I, _[20] = L) : L = _[20];
|
|
50
42
|
let R;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
_[21] !== N || _[22] !== w || _[23] !== L || _[24] !== P ? (R = /* @__PURE__ */ jsx(N, {
|
|
44
|
+
checked: w,
|
|
45
|
+
defaultChecked: w,
|
|
46
|
+
...P,
|
|
47
|
+
children: L
|
|
48
|
+
}), _[21] = N, _[22] = w, _[23] = L, _[24] = P, _[25] = R) : R = _[25];
|
|
55
49
|
let z;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}), g[28] = L, g[29] = R, g[30] = A, g[31] = j, g[32] = z) : z = g[32];
|
|
50
|
+
_[26] === g.label ? z = _[27] : (z = /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: "input__right input__right--action}",
|
|
52
|
+
children: g.label
|
|
53
|
+
}), _[26] = g.label, _[27] = z);
|
|
61
54
|
let B;
|
|
62
|
-
|
|
55
|
+
_[28] !== R || _[29] !== z || _[30] !== j || _[31] !== M ? (B = /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
...j,
|
|
57
|
+
onClick: M,
|
|
58
|
+
children: [R, z]
|
|
59
|
+
}), _[28] = R, _[29] = z, _[30] = j, _[31] = M, _[32] = B) : B = _[32];
|
|
63
60
|
let V;
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
_[33] === C ? V = _[34] : (V = !C?.valid && C?.notValidMessage ? /* @__PURE__ */ jsx(InputMessage, { children: C.notValidMessage }) : null, _[33] = C, _[34] = V);
|
|
62
|
+
let H;
|
|
63
|
+
return _[35] !== B || _[36] !== V || _[37] !== O || _[38] !== k ? (H = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
64
|
O,
|
|
67
|
-
|
|
68
|
-
B
|
|
69
|
-
|
|
65
|
+
k,
|
|
66
|
+
B,
|
|
67
|
+
V
|
|
68
|
+
] }), _[35] = B, _[36] = V, _[37] = O, _[38] = k, _[39] = H) : H = _[39], H;
|
|
70
69
|
};
|
|
71
|
-
function _temp(
|
|
72
|
-
function _temp2(
|
|
73
|
-
return !
|
|
70
|
+
function _temp(n) {}
|
|
71
|
+
function _temp2(n) {
|
|
72
|
+
return !n;
|
|
74
73
|
}
|
|
75
74
|
export { CheckboxInput };
|