@code0-tech/pictor 0.18.3 → 1.1.0
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/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +6 -0
- package/dist/_virtual/rolldown_runtime.js +18 -0
- package/dist/assets/Alert.style.css +1 -0
- package/dist/assets/Aurora.style.css +1 -0
- package/dist/assets/Avatar.style.css +1 -0
- package/dist/assets/Badge.style.css +1 -0
- package/dist/assets/Breadcrumb.style.css +1 -0
- package/dist/assets/Button.style.css +1 -0
- package/dist/assets/ButtonGroup.style.css +1 -0
- package/dist/assets/Card.style.css +1 -0
- package/dist/assets/Chart.style.css +1 -0
- package/dist/assets/Col.style.css +1 -0
- package/dist/assets/ColorInput.style.css +1 -0
- package/dist/assets/Command.style.css +1 -0
- package/dist/assets/Container.style.css +1 -0
- package/dist/assets/ContextMenu.style.css +1 -0
- package/dist/assets/DataTable.style.css +1 -0
- package/dist/assets/DateInput.style.css +1 -0
- package/dist/assets/Dialog.style.css +1 -0
- package/dist/assets/Editor.styles.css +1 -0
- package/dist/assets/EditorInput.style.css +1 -0
- package/dist/assets/FileInput.style.css +1 -0
- package/dist/assets/FileTabs.style.css +1 -0
- package/dist/assets/FullScreen.style.css +1 -0
- package/dist/assets/Gantt.style.css +1 -0
- package/dist/assets/Icon.style.css +1 -0
- package/dist/assets/Input.style.css +1 -0
- package/dist/assets/InputWrapper.style.css +1 -0
- package/dist/assets/JsonView.style.css +1 -0
- package/dist/assets/Layout.style.css +1 -0
- package/dist/assets/Menu.style.css +1 -0
- package/dist/assets/Progress.style.css +1 -0
- package/dist/assets/Quote.style.css +1 -0
- package/dist/assets/Resizable.style.css +1 -0
- package/dist/assets/Row.style.css +1 -0
- package/dist/assets/ScrollArea.style.css +1 -0
- package/dist/assets/SegmentedControl.style.css +1 -0
- package/dist/assets/SelectInput.style.css +1 -0
- package/dist/assets/Tab.style.css +1 -0
- package/dist/assets/Text.style.css +1 -0
- package/dist/assets/Toast.style.css +1 -0
- package/dist/assets/Tooltip.style.css +1 -0
- package/dist/components/alert/Alert.js +34 -41
- package/dist/components/aurora/Aurora.js +27 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +58 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -20
- package/dist/components/button/Button.js +24 -31
- package/dist/components/button-group/ButtonGroup.js +29 -31
- package/dist/components/card/Card.js +30 -44
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +75 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +19 -29
- package/dist/components/command/Command.js +101 -134
- package/dist/components/container/Container.js +19 -23
- package/dist/components/context-menu/ContextMenu.d.ts +1 -1
- package/dist/components/context-menu/ContextMenu.js +119 -125
- package/dist/components/data-table/DataTable.js +53 -63
- package/dist/components/data-table/DataTableColumn.js +18 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +59 -48
- package/dist/components/data-table/DataTableHeader.js +34 -38
- package/dist/components/data-table/DataTablePagination.js +62 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +107 -102
- package/dist/components/editor/Editor.js +352 -322
- package/dist/components/file-tabs/FileTabs.js +78 -73
- package/dist/components/file-tabs/FileTabs.service.js +85 -87
- package/dist/components/file-tabs/FileTabs.view.js +0 -1
- package/dist/components/file-tabs/index.js +3 -9
- package/dist/components/flex/Flex.js +19 -23
- package/dist/components/form/CheckboxInput.js +73 -76
- package/dist/components/form/ColorInput.js +378 -353
- package/dist/components/form/DateInput.js +315 -265
- package/dist/components/form/EditorInput.js +597 -579
- package/dist/components/form/EmailInput.js +30 -23
- package/dist/components/form/FileInput.js +93 -123
- package/dist/components/form/Input.js +64 -57
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +11 -11
- package/dist/components/form/InputLabel.js +18 -22
- package/dist/components/form/InputMessage.js +17 -17
- package/dist/components/form/InputWrapper.js +56 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +50 -65
- package/dist/components/form/RadioGroup.js +42 -50
- package/dist/components/form/RadioInput.js +31 -29
- package/dist/components/form/SelectInput.js +69 -92
- package/dist/components/form/SwitchInput.js +17 -18
- package/dist/components/form/TagInput.js +108 -122
- package/dist/components/form/TextAreaInput.js +24 -21
- package/dist/components/form/TextInput.js +30 -22
- package/dist/components/form/index.js +22 -87
- package/dist/components/form/useForm.js +87 -88
- package/dist/components/fullscreen/FullScreen.js +28 -27
- package/dist/components/gantt/Gantt.js +100 -98
- package/dist/components/gantt/GanttGroup.js +210 -194
- package/dist/components/gantt/GanttHeader.js +79 -81
- package/dist/components/gantt/GanttItem.js +19 -22
- package/dist/components/icon/Icon.d.ts +6 -4
- package/dist/components/icon/Icon.js +53 -42
- package/dist/components/icon/codezero/codezero.js +10 -0
- package/dist/components/icon/codezero/gls.js +9 -0
- package/dist/components/icon/codezero/index.js +17 -13
- package/dist/components/json-view/JsonView.js +120 -109
- package/dist/components/layout/Layout.js +101 -78
- package/dist/components/menu/Menu.js +135 -141
- package/dist/components/progress/ProgressCircle.js +60 -48
- package/dist/components/progress/ProgressLinear.js +39 -42
- package/dist/components/quote/Quote.js +52 -43
- package/dist/components/resizable/Resizable.js +36 -33
- package/dist/components/row/Row.js +19 -23
- package/dist/components/scroll-area/ScrollArea.js +66 -76
- package/dist/components/segmented-control/SegmentedControl.d.ts +2 -2
- package/dist/components/segmented-control/SegmentedControl.js +46 -26
- package/dist/components/spacing/Spacing.js +16 -23
- package/dist/components/tab/Tab.js +73 -40
- package/dist/components/text/Text.js +19 -25
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +104 -83
- package/dist/components/tooltip/Tooltip.js +66 -60
- package/dist/index.js +76 -261
- package/dist/node_modules/@lezer/common/dist/index.js +778 -143
- package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +55 -55
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -32
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +57 -46
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -16
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +8 -11
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +7 -8
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -11
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +12 -14
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +8 -13
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +252 -281
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +57 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +24 -27
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +16 -19
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -124
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +39 -42
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +22 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +22 -32
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +6 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +47 -37
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +12 -16
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +10 -20
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +58 -59
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +7 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +42 -43
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +19 -18
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +64 -58
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -20
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +53 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +45 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +4 -38
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +7 -17
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +10 -12
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -15
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +14 -18
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +4 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +20 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +6 -8
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +27 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +23 -21
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +5 -8
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +3 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +20 -25
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +6 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +5 -6
- package/dist/node_modules/motion/dist/es/react.js +196 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +104 -111
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +126 -143
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +81 -105
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +25 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +7 -9
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +10 -16
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +18 -28
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +156 -170
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +6 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +42 -45
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +52 -57
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +58 -67
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +61 -70
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +15 -15
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +32 -35
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +19 -26
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +14 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +21 -29
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +25 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +3 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +4 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +15 -19
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +32 -14
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +16 -20
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +21 -32
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -26
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +4 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +29 -42
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +8 -10
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +32 -36
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -32
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +16 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +23 -24
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +13 -11
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +20 -29
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -22
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +41 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +28 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +23 -21
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +18 -26
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +19 -24
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +554 -592
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +4 -14
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +48 -52
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +11 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +14 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +9 -12
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +11 -15
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +198 -260
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +49 -60
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +35 -35
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +25 -28
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +33 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +5 -11
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +8 -12
- package/dist/node_modules/motion-dom/dist/es/render/store.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +37 -39
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +18 -30
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +6 -10
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +128 -138
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +16 -19
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +5 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +20 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +18 -24
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +8 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +2 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +14 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +7 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +31 -35
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +29 -40
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +26 -27
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +44 -45
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +4 -7
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +89 -211
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +17 -20
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +12 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +13 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +22 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +43 -44
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +14 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +61 -69
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +12 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +10 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +10 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/array.js +6 -9
- package/dist/node_modules/motion-utils/dist/es/clamp.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +5 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +4 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +14 -17
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +3 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +28 -31
- package/dist/node_modules/motion-utils/dist/es/errors.js +7 -13
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/global-config.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +5 -7
- package/dist/node_modules/motion-utils/dist/es/noop.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +23 -28
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +2 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +5 -7
- package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
- package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
- package/dist/node_modules/prettier/standalone.js +3444 -2415
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +18 -14
- package/dist/node_modules/react/compiler-runtime.js +8 -10
- package/dist/utils/arrayService.js +0 -1
- package/dist/utils/color.js +46 -41
- package/dist/utils/component.js +60 -129
- package/dist/utils/contextStore.js +48 -58
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +7 -18
- package/dist/utils/motion.d.ts +55 -0
- package/dist/utils/motion.js +87 -0
- package/dist/utils/reactiveArrayService.js +80 -76
- package/dist/utils/size.js +14 -26
- package/dist/utils/utils.js +0 -1
- package/dist/utils/view.js +27 -24
- package/dist/vite-env.d.js +0 -1
- package/package.json +30 -25
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/assets/components/alert/Alert.style.css +0 -1
- package/dist/assets/components/aurora/Aurora.style.css +0 -1
- package/dist/assets/components/avatar/Avatar.style.css +0 -1
- package/dist/assets/components/badge/Badge.style.css +0 -1
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
- package/dist/assets/components/button/Button.style.css +0 -1
- package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
- package/dist/assets/components/card/Card.style.css +0 -1
- package/dist/assets/components/chart/Chart.style.css +0 -1
- package/dist/assets/components/col/Col.style.css +0 -1
- package/dist/assets/components/command/Command.style.css +0 -1
- package/dist/assets/components/container/Container.style.css +0 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
- package/dist/assets/components/data-table/DataTable.style.css +0 -1
- package/dist/assets/components/dialog/Dialog.style.css +0 -1
- package/dist/assets/components/editor/Editor.styles.css +0 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
- package/dist/assets/components/form/ColorInput.style.css +0 -1
- package/dist/assets/components/form/DateInput.style.css +0 -1
- package/dist/assets/components/form/EditorInput.style.css +0 -1
- package/dist/assets/components/form/FileInput.style.css +0 -1
- package/dist/assets/components/form/Input.style.css +0 -1
- package/dist/assets/components/form/InputWrapper.style.css +0 -1
- package/dist/assets/components/form/SelectInput.style.css +0 -1
- package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
- package/dist/assets/components/gantt/Gantt.style.css +0 -1
- package/dist/assets/components/icon/Icon.style.css +0 -1
- package/dist/assets/components/json-view/JsonView.style.css +0 -1
- package/dist/assets/components/layout/Layout.style.css +0 -1
- package/dist/assets/components/menu/Menu.style.css +0 -1
- package/dist/assets/components/progress/Progress.style.css +0 -1
- package/dist/assets/components/quote/Quote.style.css +0 -1
- package/dist/assets/components/resizable/Resizable.style.css +0 -1
- package/dist/assets/components/row/Row.style.css +0 -1
- package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
- package/dist/assets/components/tab/Tab.style.css +0 -1
- package/dist/assets/components/text/Text.style.css +0 -1
- package/dist/assets/components/toast/Toast.style.css +0 -1
- package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
- package/dist/components/icon/codezero/codezero.svg.js +0 -5
- package/dist/components/icon/codezero/gls.svg.js +0 -5
- /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
- /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
|
@@ -1,87 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { SwitchInput
|
|
18
|
-
import { TagInput
|
|
19
|
-
import { TextAreaInput
|
|
20
|
-
import { TextInput
|
|
21
|
-
import { useForm
|
|
22
|
-
export {
|
|
23
|
-
r as CheckboxInput,
|
|
24
|
-
p as ColorInput,
|
|
25
|
-
n as ColorInputContent,
|
|
26
|
-
u as ColorInputControl,
|
|
27
|
-
I as ColorInputSwatch,
|
|
28
|
-
i as ColorInputTrigger,
|
|
29
|
-
l as ColorInputValueText,
|
|
30
|
-
a as DateInput,
|
|
31
|
-
x as DateInputContent,
|
|
32
|
-
g as DateInputControl,
|
|
33
|
-
f as DateInputField,
|
|
34
|
-
T as DateInputNextTrigger,
|
|
35
|
-
d as DateInputPrevTrigger,
|
|
36
|
-
F as DateInputTrigger,
|
|
37
|
-
S as EditorInput,
|
|
38
|
-
c as EditorInputMenu,
|
|
39
|
-
D as EditorInputMenuItem,
|
|
40
|
-
s as EditorInputSubMenu,
|
|
41
|
-
P as EditorInputTrigger,
|
|
42
|
-
w as EditorInputValue,
|
|
43
|
-
M as EmailInput,
|
|
44
|
-
h as FileInput,
|
|
45
|
-
v as FileInputContext,
|
|
46
|
-
N as FileInputDropzone,
|
|
47
|
-
z as FileInputHiddenInput,
|
|
48
|
-
G as FileInputItem,
|
|
49
|
-
H as FileInputItemDeleteTrigger,
|
|
50
|
-
R as FileInputItemGroup,
|
|
51
|
-
k as FileInputItemName,
|
|
52
|
-
A as FileInputItemPreview,
|
|
53
|
-
L as FileInputItemPreviewImage,
|
|
54
|
-
j as FileInputItemSizeText,
|
|
55
|
-
q as FileInputTrigger,
|
|
56
|
-
B as Input,
|
|
57
|
-
K as InputDescription,
|
|
58
|
-
Q as InputLabel,
|
|
59
|
-
W as InputMessage,
|
|
60
|
-
Y as NumberInput,
|
|
61
|
-
_ as PasswordInput,
|
|
62
|
-
et as PinInput,
|
|
63
|
-
rt as PinInputField,
|
|
64
|
-
ot as PinInputHiddenField,
|
|
65
|
-
nt as RadioGroup,
|
|
66
|
-
It as RadioInput,
|
|
67
|
-
lt as SelectContent,
|
|
68
|
-
mt as SelectInput,
|
|
69
|
-
at as SelectItem,
|
|
70
|
-
xt as SelectItemText,
|
|
71
|
-
gt as SelectPortal,
|
|
72
|
-
ft as SelectTrigger,
|
|
73
|
-
Tt as SelectValue,
|
|
74
|
-
dt as SelectViewport,
|
|
75
|
-
Ct as SwitchInput,
|
|
76
|
-
ct as TagInput,
|
|
77
|
-
Dt as TagInputMenu,
|
|
78
|
-
st as TagInputMenuItem,
|
|
79
|
-
Pt as TagInputSubMenu,
|
|
80
|
-
wt as TagInputTrigger,
|
|
81
|
-
Et as TagInputValue,
|
|
82
|
-
Vt as TextAreaInput,
|
|
83
|
-
ht as TextInput,
|
|
84
|
-
V as emailValidation,
|
|
85
|
-
$ as passwordValidation,
|
|
86
|
-
Nt as useForm
|
|
87
|
-
};
|
|
1
|
+
import { InputLabel } from "./InputLabel.js";
|
|
2
|
+
import { InputDescription } from "./InputDescription.js";
|
|
3
|
+
import { InputMessage } from "./InputMessage.js";
|
|
4
|
+
import { CheckboxInput } from "./CheckboxInput.js";
|
|
5
|
+
import { ColorInput, ColorInputContent, ColorInputControl, ColorInputSwatch, ColorInputTrigger, ColorInputValueText } from "./ColorInput.js";
|
|
6
|
+
import { SelectContent, SelectInput, SelectItem, SelectItemText, SelectPortal, SelectTrigger, SelectValue, SelectViewport } from "./SelectInput.js";
|
|
7
|
+
import { DateInput, DateInputContent, DateInputControl, DateInputField, DateInputNextTrigger, DateInputPrevTrigger, DateInputTrigger } from "./DateInput.js";
|
|
8
|
+
import { EditorInput, EditorInputMenu, EditorInputMenuItem, EditorInputSubMenu, EditorInputTrigger, EditorInputValue } from "./EditorInput.js";
|
|
9
|
+
import { Input } from "./Input.js";
|
|
10
|
+
import { EmailInput, emailValidation } from "./EmailInput.js";
|
|
11
|
+
import { FileInput, FileInputContext, FileInputDropzone, FileInputHiddenInput, FileInputItem, FileInputItemDeleteTrigger, FileInputItemGroup, FileInputItemName, FileInputItemPreview, FileInputItemPreviewImage, FileInputItemSizeText, FileInputTrigger } from "./FileInput.js";
|
|
12
|
+
import { NumberInput } from "./NumberInput.js";
|
|
13
|
+
import { PasswordInput, passwordValidation } from "./PasswordInput.js";
|
|
14
|
+
import { PinInput, PinInputField, PinInputHiddenField } from "./PinInput.js";
|
|
15
|
+
import { RadioGroup } from "./RadioGroup.js";
|
|
16
|
+
import { RadioInput } from "./RadioInput.js";
|
|
17
|
+
import { SwitchInput } from "./SwitchInput.js";
|
|
18
|
+
import { TagInput, TagInputMenu, TagInputMenuItem, TagInputSubMenu, TagInputTrigger, TagInputValue } from "./TagInput.js";
|
|
19
|
+
import { TextAreaInput } from "./TextAreaInput.js";
|
|
20
|
+
import { TextInput } from "./TextInput.js";
|
|
21
|
+
import { useForm } from "./useForm.js";
|
|
22
|
+
export { CheckboxInput, ColorInput, ColorInputContent, ColorInputControl, ColorInputSwatch, ColorInputTrigger, ColorInputValueText, DateInput, DateInputContent, DateInputControl, DateInputField, DateInputNextTrigger, DateInputPrevTrigger, DateInputTrigger, EditorInput, EditorInputMenu, EditorInputMenuItem, EditorInputSubMenu, EditorInputTrigger, EditorInputValue, EmailInput, FileInput, FileInputContext, FileInputDropzone, FileInputHiddenInput, FileInputItem, FileInputItemDeleteTrigger, FileInputItemGroup, FileInputItemName, FileInputItemPreview, FileInputItemPreviewImage, FileInputItemSizeText, FileInputTrigger, Input, InputDescription, InputLabel, InputMessage, NumberInput, PasswordInput, PinInput, PinInputField, PinInputHiddenField, RadioGroup, RadioInput, SelectContent, SelectInput, SelectItem, SelectItemText, SelectPortal, SelectTrigger, SelectValue, SelectViewport, SwitchInput, TagInput, TagInputMenu, TagInputMenuItem, TagInputSubMenu, TagInputTrigger, TagInputValue, TextAreaInput, TextInput, emailValidation, passwordValidation, useForm };
|
|
@@ -1,93 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
function _defineProperty(e, t, n) {
|
|
4
|
+
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5
|
+
value: n,
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0
|
|
9
|
+
}) : e[t] = n, e;
|
|
4
10
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
function _toPropertyKey(e) {
|
|
12
|
+
var t = _toPrimitive(e, "string");
|
|
13
|
+
return typeof t == "symbol" ? t : t + "";
|
|
8
14
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
function _toPrimitive(e, t) {
|
|
16
|
+
if (typeof e != "object" || !e) return e;
|
|
17
|
+
var n = e[Symbol.toPrimitive];
|
|
18
|
+
if (n !== void 0) {
|
|
19
|
+
var r = n.call(e, t || "default");
|
|
20
|
+
if (typeof r != "object") return r;
|
|
21
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
22
|
+
}
|
|
23
|
+
return (t === "string" ? String : Number)(e);
|
|
18
24
|
}
|
|
19
|
-
class
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
value: n,
|
|
61
|
-
message: r,
|
|
62
|
-
required: a,
|
|
63
|
-
props: p
|
|
64
|
-
}), p;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const N = (s) => {
|
|
68
|
-
const {
|
|
69
|
-
initialValues: e,
|
|
70
|
-
validate: t = {},
|
|
71
|
-
truthyValidationBeforeSubmit: n = !0,
|
|
72
|
-
useInitialValidation: V = !0,
|
|
73
|
-
onSubmit: l
|
|
74
|
-
} = s, r = y.useMemo(() => e, [e]), [a, u] = P(r), c = v(/* @__PURE__ */ new Map()), p = v(/* @__PURE__ */ new Map()), d = v(/* @__PURE__ */ new Map()), o = v(a);
|
|
75
|
-
o.current = a;
|
|
76
|
-
const g = j((i, m) => {
|
|
77
|
-
o.current = {
|
|
78
|
-
...o.current,
|
|
79
|
-
[i]: m
|
|
80
|
-
}, u(o.current);
|
|
81
|
-
}, []), [O, M] = P(() => new w(g, a, t, V ? new Map(Object.keys(r).map((i) => [i, !0])) : /* @__PURE__ */ new Map(), c.current, p.current, d.current)), b = v(!1);
|
|
82
|
-
I(() => {
|
|
83
|
-
o.current = r, u(r), b.current && d.current.clear(), b.current = !0, M(new w(g, r, t, V ? new Map(Object.keys(r).map((i) => [i, !0])) : /* @__PURE__ */ new Map(), c.current, p.current, d.current));
|
|
84
|
-
}, [r]);
|
|
85
|
-
const R = j((i, m = !0) => {
|
|
86
|
-
const f = o.current, F = i && new Set(Object.keys(f)).has(String(i)) ? /* @__PURE__ */ new Map([[i, !0]]) : new Map(Object.keys(f).map((q) => [String(q), !0])), S = new w(g, f, t, F, c.current, p.current, d.current);
|
|
87
|
-
M(S), m && !new Set(Object.keys(f)).has(String(i)) && l && (!n || S.isValid()) && l(f);
|
|
88
|
-
}, [g, t, l, n]);
|
|
89
|
-
return [O, R, a];
|
|
25
|
+
var Validation = class {
|
|
26
|
+
constructor(e, t, n, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map()) {
|
|
27
|
+
_defineProperty(this, "changeValue", void 0), _defineProperty(this, "currentValues", void 0), _defineProperty(this, "currentValidations", void 0), _defineProperty(this, "shouldValidate", void 0), _defineProperty(this, "cachedMessages", void 0), _defineProperty(this, "cachedSetters", void 0), _defineProperty(this, "cachedProps", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = n, this.shouldValidate = r, this.cachedMessages = i, this.cachedSetters = o, this.cachedProps = s;
|
|
28
|
+
}
|
|
29
|
+
isValid() {
|
|
30
|
+
if (!this.currentValidations) return !0;
|
|
31
|
+
for (let e in this.currentValidations) {
|
|
32
|
+
let t = this.currentValidations[e];
|
|
33
|
+
if (t && t(this.currentValues[e], this.currentValues) !== null) return !1;
|
|
34
|
+
}
|
|
35
|
+
return !0;
|
|
36
|
+
}
|
|
37
|
+
getInputProps(e) {
|
|
38
|
+
let t = this.currentValues[e], n = t ?? null, r = e, i = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (e) => null, a = null;
|
|
39
|
+
this.shouldValidate.has(e) ? (a = i(t, this.currentValues), this.cachedMessages.set(e, a)) : a = this.cachedMessages.get(e) ?? null;
|
|
40
|
+
let o = !!(this.currentValidations && this.currentValidations[e]), s = this.cachedProps.get(e);
|
|
41
|
+
if (s && Object.is(s.value, n) && s.message === a && s.required === o) return s.props;
|
|
42
|
+
let c = this.cachedSetters.get(e);
|
|
43
|
+
if (!c) {
|
|
44
|
+
let t = this.changeValue;
|
|
45
|
+
c = (e) => {
|
|
46
|
+
t(r, e);
|
|
47
|
+
}, this.cachedSetters.set(e, c);
|
|
48
|
+
}
|
|
49
|
+
let l = {
|
|
50
|
+
defaultValue: n ?? void 0,
|
|
51
|
+
initialValue: n ?? void 0,
|
|
52
|
+
formValidation: {
|
|
53
|
+
setValue: c,
|
|
54
|
+
notValidMessage: a,
|
|
55
|
+
valid: a === null
|
|
56
|
+
},
|
|
57
|
+
...o ? { required: !0 } : {}
|
|
58
|
+
};
|
|
59
|
+
return this.cachedProps.set(e, {
|
|
60
|
+
value: n,
|
|
61
|
+
message: a,
|
|
62
|
+
required: o,
|
|
63
|
+
props: l
|
|
64
|
+
}), l;
|
|
65
|
+
}
|
|
90
66
|
};
|
|
91
|
-
|
|
92
|
-
|
|
67
|
+
const useForm = (a) => {
|
|
68
|
+
let { initialValues: o, validate: s = {}, truthyValidationBeforeSubmit: l = !0, useInitialValidation: u = !0, onSubmit: d } = a, f = React.useMemo(() => o, [o]), [p, m] = useState(f), h = useRef(/* @__PURE__ */ new Map()), g = useRef(/* @__PURE__ */ new Map()), _ = useRef(/* @__PURE__ */ new Map()), v = useRef(p);
|
|
69
|
+
v.current = p;
|
|
70
|
+
let y = useCallback((e, t) => {
|
|
71
|
+
v.current = {
|
|
72
|
+
...v.current,
|
|
73
|
+
[e]: t
|
|
74
|
+
}, m(v.current);
|
|
75
|
+
}, []), [b, x] = useState(() => new Validation(y, p, s, u ? new Map(Object.keys(f).map((e) => [e, !0])) : /* @__PURE__ */ new Map(), h.current, g.current, _.current)), S = useRef(!1);
|
|
76
|
+
return useEffect(() => {
|
|
77
|
+
v.current = f, m(f), S.current && _.current.clear(), S.current = !0, x(new Validation(y, f, s, u ? new Map(Object.keys(f).map((e) => [e, !0])) : /* @__PURE__ */ new Map(), h.current, g.current, _.current));
|
|
78
|
+
}, [f]), [
|
|
79
|
+
b,
|
|
80
|
+
useCallback((e, t = !0) => {
|
|
81
|
+
let n = v.current, r = new Validation(y, n, s, e && new Set(Object.keys(n)).has(String(e)) ? new Map([[e, !0]]) : new Map(Object.keys(n).map((e) => [String(e), !0])), h.current, g.current, _.current);
|
|
82
|
+
x(r), t && !new Set(Object.keys(n)).has(String(e)) && d && (!l || r.isValid()) && d(n);
|
|
83
|
+
}, [
|
|
84
|
+
y,
|
|
85
|
+
s,
|
|
86
|
+
d,
|
|
87
|
+
l
|
|
88
|
+
]),
|
|
89
|
+
p
|
|
90
|
+
];
|
|
93
91
|
};
|
|
92
|
+
export { useForm };
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import "../../utils/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
3
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
4
|
+
import "../../utils/index.js";
|
|
5
|
+
import '../../assets/FullScreen.style.css';/* empty css */
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
9
|
+
const FullScreen = (e) => {
|
|
10
|
+
let a = (0, import_compiler_runtime.c)(7), o = React.useRef(null), s, c;
|
|
11
|
+
a[0] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
|
|
12
|
+
if (!o.current) return;
|
|
13
|
+
window.addEventListener("resize", () => {
|
|
14
|
+
let e = Math.round(window.visualViewport?.width ?? window.innerWidth), i = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
15
|
+
o.current.style.height = i + "px", o.current.style.width = e + "px";
|
|
16
|
+
});
|
|
17
|
+
let e = Math.round(window.visualViewport?.width ?? window.innerWidth), i = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
18
|
+
o.current.style.height = i + "px", o.current.style.width = e + "px";
|
|
19
|
+
}, c = [o], a[0] = s, a[1] = c) : (s = a[0], c = a[1]), React.useEffect(s, c);
|
|
20
|
+
let l;
|
|
21
|
+
a[2] === e ? l = a[3] : (l = mergeComponentProps("d-full-screen", e), a[2] = e, a[3] = l);
|
|
22
|
+
let u;
|
|
23
|
+
return a[4] !== e.children || a[5] !== l ? (u = /* @__PURE__ */ jsx("div", {
|
|
24
|
+
...l,
|
|
25
|
+
ref: o,
|
|
26
|
+
children: e.children
|
|
27
|
+
}), a[4] = e.children, a[5] = l, a[6] = u) : u = a[6], u;
|
|
28
28
|
};
|
|
29
|
+
export { FullScreen };
|
|
@@ -1,100 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../../utils/
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
1
|
+
import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
+
import { hashToColor } from "../../utils/color.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import { ScrollArea, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "../scroll-area/ScrollArea.js";
|
|
5
|
+
import '../../assets/Gantt.style.css';/* empty css */
|
|
6
|
+
import { GanttGroup } from "./GanttGroup.js";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
10
|
+
const Gantt = (e) => {
|
|
11
|
+
let d = (0, import_compiler_runtime.c)(18), { items: f, stepWidth: p, rowHeight: m, step: h, children: g } = e, _ = p === void 0 ? "50px" : p, v = m === void 0 ? "50px" : m, y = h === void 0 ? 1 : h, b;
|
|
12
|
+
d[0] !== f || d[1] !== y ? (b = [], f?.forEach((e) => {
|
|
13
|
+
let a = e.end - e.start, o = !1;
|
|
14
|
+
if (b.length <= 0) {
|
|
15
|
+
b.push({
|
|
16
|
+
step: a,
|
|
17
|
+
items: [e]
|
|
18
|
+
});
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
for (let s = 0; s < b.length; s++) {
|
|
22
|
+
let c = b[s], l = (c.step + a) / 1.75, u = c.step / 2, d = c.step * 2;
|
|
23
|
+
if (u < a && a < d) {
|
|
24
|
+
c.step = l, c.items.push(e), o = !0;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
o || b.push({
|
|
29
|
+
step: a,
|
|
30
|
+
items: [e]
|
|
31
|
+
});
|
|
32
|
+
}), b.sort(_temp).forEach((e, o) => {
|
|
33
|
+
if (o > 0) {
|
|
34
|
+
let s = Infinity, c = -Infinity;
|
|
35
|
+
for (let a = 0; a < e.items.length; a++) {
|
|
36
|
+
let o = e.items[a];
|
|
37
|
+
o.start < s && (s = o.start), o.end > c && (c = o.end);
|
|
38
|
+
}
|
|
39
|
+
b[0].items.push({
|
|
40
|
+
start: s,
|
|
41
|
+
end: c + b[0].step * y / 6,
|
|
42
|
+
id: `group-source-${o}`,
|
|
43
|
+
type: "group",
|
|
44
|
+
data: {
|
|
45
|
+
items: e.items,
|
|
46
|
+
step: y,
|
|
47
|
+
firstGroupStep: b[0].step,
|
|
48
|
+
groupStep: e.step,
|
|
49
|
+
displayMessage: `${o}`,
|
|
50
|
+
color: hashToColor(`group-source-${o}`)
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}), d[0] = f, d[1] = y, d[2] = b) : b = d[2];
|
|
55
|
+
let x = Infinity, S = b[0].items;
|
|
56
|
+
for (let e = 0; e < S.length; e++) S[e].start < x && (x = S[e].start);
|
|
57
|
+
let C;
|
|
58
|
+
d[3] !== S || d[4] !== b[0].step || d[5] !== x ? (C = {
|
|
59
|
+
targetItems: S,
|
|
60
|
+
targetStep: b[0].step,
|
|
61
|
+
minStart: x
|
|
62
|
+
}, d[3] = S, d[4] = b[0].step, d[5] = x, d[6] = C) : C = d[6];
|
|
63
|
+
let { targetItems: w, targetStep: T, minStart: E } = C, D = E - E / (T * y) * (T * y), O = T * y, k;
|
|
64
|
+
d[7] !== g || d[8] !== v || d[9] !== _ || d[10] !== D || d[11] !== O || d[12] !== w ? (k = /* @__PURE__ */ jsx(ScrollAreaViewport, { children: /* @__PURE__ */ jsx(GanttGroup, {
|
|
65
|
+
children: g,
|
|
66
|
+
id: "group-target",
|
|
67
|
+
hideScaling: !1,
|
|
68
|
+
start: D,
|
|
69
|
+
step: O,
|
|
70
|
+
stepWidth: _,
|
|
71
|
+
rowHeight: v,
|
|
72
|
+
items: w
|
|
73
|
+
}, "group-target") }), d[7] = g, d[8] = v, d[9] = _, d[10] = D, d[11] = O, d[12] = w, d[13] = k) : k = d[13];
|
|
74
|
+
let A;
|
|
75
|
+
d[14] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
|
|
76
|
+
orientation: "horizontal",
|
|
77
|
+
children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
|
|
78
|
+
}), d[14] = A) : A = d[14];
|
|
79
|
+
let j;
|
|
80
|
+
d[15] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
|
|
81
|
+
orientation: "vertical",
|
|
82
|
+
children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
|
|
83
|
+
}), d[15] = j) : j = d[15];
|
|
84
|
+
let M;
|
|
85
|
+
return d[16] === k ? M = d[17] : (M = /* @__PURE__ */ jsxs(ScrollArea, {
|
|
86
|
+
w: "100%",
|
|
87
|
+
h: "100%",
|
|
88
|
+
type: "hover",
|
|
89
|
+
children: [
|
|
90
|
+
k,
|
|
91
|
+
A,
|
|
92
|
+
j
|
|
93
|
+
]
|
|
94
|
+
}), d[16] = k, d[17] = M), M;
|
|
95
|
+
}, getRelativeValue = (e) => {
|
|
96
|
+
let a = e > 5e5 ? e / 1e6 : e > 500 ? e / 1e3 : e, o = e > 5e5 ? "s" : e > 500 ? "ms" : "μs";
|
|
97
|
+
return `${Math.round(a * 10) / 10}${o}`;
|
|
93
98
|
};
|
|
94
|
-
function
|
|
95
|
-
|
|
99
|
+
function _temp(e, a) {
|
|
100
|
+
return a.step - e.step;
|
|
96
101
|
}
|
|
97
|
-
export {
|
|
98
|
-
U as Gantt,
|
|
99
|
-
X as getRelativeValue
|
|
100
|
-
};
|
|
102
|
+
export { Gantt, getRelativeValue };
|