@code0-tech/pictor 1.0.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 +9 -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 +33 -41
- package/dist/components/aurora/Aurora.js +26 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +57 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -21
- package/dist/components/button/Button.js +23 -31
- package/dist/components/button-group/ButtonGroup.js +28 -31
- package/dist/components/card/Card.js +28 -43
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +74 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +18 -29
- package/dist/components/command/Command.js +100 -134
- package/dist/components/container/Container.js +18 -23
- package/dist/components/context-menu/ContextMenu.js +118 -112
- package/dist/components/data-table/DataTable.js +53 -64
- package/dist/components/data-table/DataTableColumn.js +17 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
- package/dist/components/data-table/DataTableHeader.js +33 -38
- package/dist/components/data-table/DataTablePagination.js +61 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +106 -97
- package/dist/components/editor/Editor.js +352 -323
- package/dist/components/file-tabs/FileTabs.js +77 -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 +18 -23
- package/dist/components/form/CheckboxInput.js +72 -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 +92 -123
- package/dist/components/form/Input.js +64 -58
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +10 -11
- package/dist/components/form/InputLabel.js +17 -22
- package/dist/components/form/InputMessage.js +16 -17
- package/dist/components/form/InputWrapper.js +55 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +49 -65
- package/dist/components/form/RadioGroup.js +41 -50
- package/dist/components/form/RadioInput.js +30 -29
- package/dist/components/form/SelectInput.js +68 -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 +27 -27
- package/dist/components/gantt/Gantt.js +99 -98
- package/dist/components/gantt/GanttGroup.js +210 -195
- package/dist/components/gantt/GanttHeader.js +78 -81
- package/dist/components/gantt/GanttItem.js +18 -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 +119 -109
- package/dist/components/layout/Layout.js +100 -78
- package/dist/components/menu/Menu.js +134 -128
- package/dist/components/progress/ProgressCircle.js +60 -49
- package/dist/components/progress/ProgressLinear.js +39 -43
- package/dist/components/quote/Quote.js +51 -43
- package/dist/components/resizable/Resizable.js +35 -33
- package/dist/components/row/Row.js +18 -23
- package/dist/components/scroll-area/ScrollArea.js +65 -76
- package/dist/components/segmented-control/SegmentedControl.js +46 -50
- package/dist/components/spacing/Spacing.js +15 -23
- package/dist/components/tab/Tab.js +73 -66
- package/dist/components/text/Text.js +18 -25
- package/dist/components/toast/Toast.js +104 -82
- package/dist/components/tooltip/Tooltip.js +65 -55
- package/dist/index.js +76 -272
- 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/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/utils/arrayService.js +0 -1
- package/dist/utils/color.js +46 -41
- package/dist/utils/component.js +60 -129
- package/dist/utils/contextStore.js +47 -58
- package/dist/utils/index.js +7 -29
- package/dist/utils/motion.js +84 -113
- 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 +28 -23
- 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/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 -34
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- 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 -37
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
- 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 -18
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- 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 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- 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 -51
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- 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 -14
- package/dist/node_modules/react/compiler-runtime.js +0 -10
- /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,543 +1,312 @@
|
|
|
1
|
-
import { NodeProp
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
let a = new b(t);
|
|
40
|
-
return (i) => i.modified.indexOf(a) > -1 ? i : b.get(i.base || i, i.modified.concat(a).sort((n, r) => n.id - r.id));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
let I = 0;
|
|
44
|
-
class b {
|
|
45
|
-
constructor(t) {
|
|
46
|
-
this.name = t, this.instances = [], this.id = I++;
|
|
47
|
-
}
|
|
48
|
-
static get(t, a) {
|
|
49
|
-
if (!a.length)
|
|
50
|
-
return t;
|
|
51
|
-
let i = a[0].instances.find((g) => g.base == t && j(a, g.modified));
|
|
52
|
-
if (i)
|
|
53
|
-
return i;
|
|
54
|
-
let n = [], r = new l(t.name, n, t, a);
|
|
55
|
-
for (let g of a)
|
|
56
|
-
g.instances.push(r);
|
|
57
|
-
let f = B(a);
|
|
58
|
-
for (let g of t.set)
|
|
59
|
-
if (!g.modified.length)
|
|
60
|
-
for (let w of f)
|
|
61
|
-
n.push(b.get(g, w));
|
|
62
|
-
return r;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function j(s, t) {
|
|
66
|
-
return s.length == t.length && s.every((a, i) => a == t[i]);
|
|
67
|
-
}
|
|
68
|
-
function B(s) {
|
|
69
|
-
let t = [[]];
|
|
70
|
-
for (let a = 0; a < s.length; a++)
|
|
71
|
-
for (let i = 0, n = t.length; i < n; i++)
|
|
72
|
-
t.push(t[i].concat(s[a]));
|
|
73
|
-
return t.sort((a, i) => i.length - a.length);
|
|
1
|
+
import { NodeProp } from "../../common/dist/index.js";
|
|
2
|
+
var nextTagID = 0, Tag = class n {
|
|
3
|
+
constructor(n, x, S, C) {
|
|
4
|
+
this.name = n, this.set = x, this.base = S, this.modified = C, this.id = nextTagID++;
|
|
5
|
+
}
|
|
6
|
+
toString() {
|
|
7
|
+
let { name: n } = this;
|
|
8
|
+
for (let b of this.modified) b.name && (n = `${b.name}(${n})`);
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
static define(b, x) {
|
|
12
|
+
let S = typeof b == "string" ? b : "?";
|
|
13
|
+
if (b instanceof n && (x = b), x?.base) throw Error("Can not derive from a modified tag");
|
|
14
|
+
let C = new n(S, [], null, []);
|
|
15
|
+
if (C.set.push(C), x) for (let n of x.set) C.set.push(n);
|
|
16
|
+
return C;
|
|
17
|
+
}
|
|
18
|
+
static defineModifier(n) {
|
|
19
|
+
let b = new Modifier(n);
|
|
20
|
+
return (n) => n.modified.indexOf(b) > -1 ? n : Modifier.get(n.base || n, n.modified.concat(b).sort((n, b) => n.id - b.id));
|
|
21
|
+
}
|
|
22
|
+
}, nextModifierID = 0, Modifier = class n {
|
|
23
|
+
constructor(n) {
|
|
24
|
+
this.name = n, this.instances = [], this.id = nextModifierID++;
|
|
25
|
+
}
|
|
26
|
+
static get(b, S) {
|
|
27
|
+
if (!S.length) return b;
|
|
28
|
+
let C = S[0].instances.find((n) => n.base == b && sameArray(S, n.modified));
|
|
29
|
+
if (C) return C;
|
|
30
|
+
let T = [], E = new Tag(b.name, T, b, S);
|
|
31
|
+
for (let n of S) n.instances.push(E);
|
|
32
|
+
let D = powerSet(S);
|
|
33
|
+
for (let x of b.set) if (!x.modified.length) for (let b of D) T.push(n.get(x, b));
|
|
34
|
+
return E;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function sameArray(n, b) {
|
|
38
|
+
return n.length == b.length && n.every((n, x) => n == b[x]);
|
|
74
39
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (!s || t && s.depth >= t.depth ? (n = t, t = t.next) : (n = s, s = s.next), a && a.mode == n.mode && !n.context && !a.context)
|
|
80
|
-
continue;
|
|
81
|
-
let r = new O(n.tags, n.mode, n.context);
|
|
82
|
-
a ? a.next = r : i = r, a = r;
|
|
83
|
-
}
|
|
84
|
-
return i;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
class O {
|
|
88
|
-
constructor(t, a, i, n) {
|
|
89
|
-
this.tags = t, this.mode = a, this.context = i, this.next = n;
|
|
90
|
-
}
|
|
91
|
-
get opaque() {
|
|
92
|
-
return this.mode == 0;
|
|
93
|
-
}
|
|
94
|
-
get inherit() {
|
|
95
|
-
return this.mode == 1;
|
|
96
|
-
}
|
|
97
|
-
sort(t) {
|
|
98
|
-
return !t || t.depth < this.depth ? (this.next = t, this) : (t.next = this.sort(t.next), t);
|
|
99
|
-
}
|
|
100
|
-
get depth() {
|
|
101
|
-
return this.context ? this.context.length : 0;
|
|
102
|
-
}
|
|
40
|
+
function powerSet(n) {
|
|
41
|
+
let b = [[]];
|
|
42
|
+
for (let x = 0; x < n.length; x++) for (let S = 0, C = b.length; S < C; S++) b.push(b[S].concat(n[x]));
|
|
43
|
+
return b.sort((n, b) => b.length - n.length);
|
|
103
44
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
45
|
+
var ruleNodeProp = new NodeProp({ combine(n, b) {
|
|
46
|
+
let x, S, C;
|
|
47
|
+
for (; n || b;) {
|
|
48
|
+
if (!n || b && n.depth >= b.depth ? (C = b, b = b.next) : (C = n, n = n.next), x && x.mode == C.mode && !C.context && !x.context) continue;
|
|
49
|
+
let w = new Rule(C.tags, C.mode, C.context);
|
|
50
|
+
x ? x.next = w : S = w, x = w;
|
|
51
|
+
}
|
|
52
|
+
return S;
|
|
53
|
+
} }), Rule = class {
|
|
54
|
+
constructor(n, b, x, S) {
|
|
55
|
+
this.tags = n, this.mode = b, this.context = x, this.next = S;
|
|
56
|
+
}
|
|
57
|
+
get opaque() {
|
|
58
|
+
return this.mode == 0;
|
|
59
|
+
}
|
|
60
|
+
get inherit() {
|
|
61
|
+
return this.mode == 1;
|
|
62
|
+
}
|
|
63
|
+
sort(n) {
|
|
64
|
+
return !n || n.depth < this.depth ? (this.next = n, this) : (n.next = this.sort(n.next), n);
|
|
65
|
+
}
|
|
66
|
+
get depth() {
|
|
67
|
+
return this.context ? this.context.length : 0;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
Rule.empty = new Rule([], 2, null);
|
|
71
|
+
function tagHighlighter(n, b) {
|
|
72
|
+
let x = Object.create(null);
|
|
73
|
+
for (let b of n) if (!Array.isArray(b.tag)) x[b.tag.id] = b.class;
|
|
74
|
+
else for (let n of b.tag) x[n.id] = b.class;
|
|
75
|
+
let { scope: S, all: C = null } = b || {};
|
|
76
|
+
return {
|
|
77
|
+
style: (n) => {
|
|
78
|
+
let b = C;
|
|
79
|
+
for (let S of n) for (let n of S.set) {
|
|
80
|
+
let S = x[n.id];
|
|
81
|
+
if (S) {
|
|
82
|
+
b = b ? b + " " + S : S;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return b;
|
|
87
|
+
},
|
|
88
|
+
scope: S
|
|
89
|
+
};
|
|
129
90
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return t || null;
|
|
91
|
+
function getStyleTags(n) {
|
|
92
|
+
let b = n.type.prop(ruleNodeProp);
|
|
93
|
+
for (; b && b.context && !n.matchContext(b.context);) b = b.next;
|
|
94
|
+
return b || null;
|
|
135
95
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
A floating-point [number](#highlight.tags.number) literal.
|
|
223
|
-
*/
|
|
224
|
-
float: e(M),
|
|
225
|
-
/**
|
|
226
|
-
A boolean [literal](#highlight.tags.literal).
|
|
227
|
-
*/
|
|
228
|
-
bool: e(u),
|
|
229
|
-
/**
|
|
230
|
-
Regular expression [literal](#highlight.tags.literal).
|
|
231
|
-
*/
|
|
232
|
-
regexp: e(u),
|
|
233
|
-
/**
|
|
234
|
-
An escape [literal](#highlight.tags.literal), for example a
|
|
235
|
-
backslash escape in a string.
|
|
236
|
-
*/
|
|
237
|
-
escape: e(u),
|
|
238
|
-
/**
|
|
239
|
-
A color [literal](#highlight.tags.literal).
|
|
240
|
-
*/
|
|
241
|
-
color: e(u),
|
|
242
|
-
/**
|
|
243
|
-
A URL [literal](#highlight.tags.literal).
|
|
244
|
-
*/
|
|
245
|
-
url: e(u),
|
|
246
|
-
/**
|
|
247
|
-
A language keyword.
|
|
248
|
-
*/
|
|
249
|
-
keyword: c,
|
|
250
|
-
/**
|
|
251
|
-
The [keyword](#highlight.tags.keyword) for the self or this
|
|
252
|
-
object.
|
|
253
|
-
*/
|
|
254
|
-
self: e(c),
|
|
255
|
-
/**
|
|
256
|
-
The [keyword](#highlight.tags.keyword) for null.
|
|
257
|
-
*/
|
|
258
|
-
null: e(c),
|
|
259
|
-
/**
|
|
260
|
-
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
261
|
-
*/
|
|
262
|
-
atom: e(c),
|
|
263
|
-
/**
|
|
264
|
-
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
265
|
-
*/
|
|
266
|
-
unit: e(c),
|
|
267
|
-
/**
|
|
268
|
-
A modifier [keyword](#highlight.tags.keyword).
|
|
269
|
-
*/
|
|
270
|
-
modifier: e(c),
|
|
271
|
-
/**
|
|
272
|
-
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
273
|
-
*/
|
|
274
|
-
operatorKeyword: e(c),
|
|
275
|
-
/**
|
|
276
|
-
A control-flow related [keyword](#highlight.tags.keyword).
|
|
277
|
-
*/
|
|
278
|
-
controlKeyword: e(c),
|
|
279
|
-
/**
|
|
280
|
-
A [keyword](#highlight.tags.keyword) that defines something.
|
|
281
|
-
*/
|
|
282
|
-
definitionKeyword: e(c),
|
|
283
|
-
/**
|
|
284
|
-
A [keyword](#highlight.tags.keyword) related to defining or
|
|
285
|
-
interfacing with modules.
|
|
286
|
-
*/
|
|
287
|
-
moduleKeyword: e(c),
|
|
288
|
-
/**
|
|
289
|
-
An operator.
|
|
290
|
-
*/
|
|
291
|
-
operator: d,
|
|
292
|
-
/**
|
|
293
|
-
An [operator](#highlight.tags.operator) that dereferences something.
|
|
294
|
-
*/
|
|
295
|
-
derefOperator: e(d),
|
|
296
|
-
/**
|
|
297
|
-
Arithmetic-related [operator](#highlight.tags.operator).
|
|
298
|
-
*/
|
|
299
|
-
arithmeticOperator: e(d),
|
|
300
|
-
/**
|
|
301
|
-
Logical [operator](#highlight.tags.operator).
|
|
302
|
-
*/
|
|
303
|
-
logicOperator: e(d),
|
|
304
|
-
/**
|
|
305
|
-
Bit [operator](#highlight.tags.operator).
|
|
306
|
-
*/
|
|
307
|
-
bitwiseOperator: e(d),
|
|
308
|
-
/**
|
|
309
|
-
Comparison [operator](#highlight.tags.operator).
|
|
310
|
-
*/
|
|
311
|
-
compareOperator: e(d),
|
|
312
|
-
/**
|
|
313
|
-
[Operator](#highlight.tags.operator) that updates its operand.
|
|
314
|
-
*/
|
|
315
|
-
updateOperator: e(d),
|
|
316
|
-
/**
|
|
317
|
-
[Operator](#highlight.tags.operator) that defines something.
|
|
318
|
-
*/
|
|
319
|
-
definitionOperator: e(d),
|
|
320
|
-
/**
|
|
321
|
-
Type-related [operator](#highlight.tags.operator).
|
|
322
|
-
*/
|
|
323
|
-
typeOperator: e(d),
|
|
324
|
-
/**
|
|
325
|
-
Control-flow [operator](#highlight.tags.operator).
|
|
326
|
-
*/
|
|
327
|
-
controlOperator: e(d),
|
|
328
|
-
/**
|
|
329
|
-
Program or markup punctuation.
|
|
330
|
-
*/
|
|
331
|
-
punctuation: C,
|
|
332
|
-
/**
|
|
333
|
-
[Punctuation](#highlight.tags.punctuation) that separates
|
|
334
|
-
things.
|
|
335
|
-
*/
|
|
336
|
-
separator: e(C),
|
|
337
|
-
/**
|
|
338
|
-
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
339
|
-
*/
|
|
340
|
-
bracket: k,
|
|
341
|
-
/**
|
|
342
|
-
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
343
|
-
tokens).
|
|
344
|
-
*/
|
|
345
|
-
angleBracket: e(k),
|
|
346
|
-
/**
|
|
347
|
-
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
348
|
-
tokens).
|
|
349
|
-
*/
|
|
350
|
-
squareBracket: e(k),
|
|
351
|
-
/**
|
|
352
|
-
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
353
|
-
[bracket](#highlight.tags.bracket).
|
|
354
|
-
*/
|
|
355
|
-
paren: e(k),
|
|
356
|
-
/**
|
|
357
|
-
Braces (usually `{` and `}` tokens). Subtag of
|
|
358
|
-
[bracket](#highlight.tags.bracket).
|
|
359
|
-
*/
|
|
360
|
-
brace: e(k),
|
|
361
|
-
/**
|
|
362
|
-
Content, for example plain text in XML or markup documents.
|
|
363
|
-
*/
|
|
364
|
-
content: m,
|
|
365
|
-
/**
|
|
366
|
-
[Content](#highlight.tags.content) that represents a heading.
|
|
367
|
-
*/
|
|
368
|
-
heading: h,
|
|
369
|
-
/**
|
|
370
|
-
A level 1 [heading](#highlight.tags.heading).
|
|
371
|
-
*/
|
|
372
|
-
heading1: e(h),
|
|
373
|
-
/**
|
|
374
|
-
A level 2 [heading](#highlight.tags.heading).
|
|
375
|
-
*/
|
|
376
|
-
heading2: e(h),
|
|
377
|
-
/**
|
|
378
|
-
A level 3 [heading](#highlight.tags.heading).
|
|
379
|
-
*/
|
|
380
|
-
heading3: e(h),
|
|
381
|
-
/**
|
|
382
|
-
A level 4 [heading](#highlight.tags.heading).
|
|
383
|
-
*/
|
|
384
|
-
heading4: e(h),
|
|
385
|
-
/**
|
|
386
|
-
A level 5 [heading](#highlight.tags.heading).
|
|
387
|
-
*/
|
|
388
|
-
heading5: e(h),
|
|
389
|
-
/**
|
|
390
|
-
A level 6 [heading](#highlight.tags.heading).
|
|
391
|
-
*/
|
|
392
|
-
heading6: e(h),
|
|
393
|
-
/**
|
|
394
|
-
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
395
|
-
*/
|
|
396
|
-
contentSeparator: e(m),
|
|
397
|
-
/**
|
|
398
|
-
[Content](#highlight.tags.content) that represents a list.
|
|
399
|
-
*/
|
|
400
|
-
list: e(m),
|
|
401
|
-
/**
|
|
402
|
-
[Content](#highlight.tags.content) that represents a quote.
|
|
403
|
-
*/
|
|
404
|
-
quote: e(m),
|
|
405
|
-
/**
|
|
406
|
-
[Content](#highlight.tags.content) that is emphasized.
|
|
407
|
-
*/
|
|
408
|
-
emphasis: e(m),
|
|
409
|
-
/**
|
|
410
|
-
[Content](#highlight.tags.content) that is styled strong.
|
|
411
|
-
*/
|
|
412
|
-
strong: e(m),
|
|
413
|
-
/**
|
|
414
|
-
[Content](#highlight.tags.content) that is part of a link.
|
|
415
|
-
*/
|
|
416
|
-
link: e(m),
|
|
417
|
-
/**
|
|
418
|
-
[Content](#highlight.tags.content) that is styled as code or
|
|
419
|
-
monospace.
|
|
420
|
-
*/
|
|
421
|
-
monospace: e(m),
|
|
422
|
-
/**
|
|
423
|
-
[Content](#highlight.tags.content) that has a strike-through
|
|
424
|
-
style.
|
|
425
|
-
*/
|
|
426
|
-
strikethrough: e(m),
|
|
427
|
-
/**
|
|
428
|
-
Inserted text in a change-tracking format.
|
|
429
|
-
*/
|
|
430
|
-
inserted: e(),
|
|
431
|
-
/**
|
|
432
|
-
Deleted text.
|
|
433
|
-
*/
|
|
434
|
-
deleted: e(),
|
|
435
|
-
/**
|
|
436
|
-
Changed text.
|
|
437
|
-
*/
|
|
438
|
-
changed: e(),
|
|
439
|
-
/**
|
|
440
|
-
An invalid or unsyntactic element.
|
|
441
|
-
*/
|
|
442
|
-
invalid: e(),
|
|
443
|
-
/**
|
|
444
|
-
Metadata or meta-instruction.
|
|
445
|
-
*/
|
|
446
|
-
meta: x,
|
|
447
|
-
/**
|
|
448
|
-
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
449
|
-
document.
|
|
450
|
-
*/
|
|
451
|
-
documentMeta: e(x),
|
|
452
|
-
/**
|
|
453
|
-
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
454
|
-
attributes to a given syntactic element.
|
|
455
|
-
*/
|
|
456
|
-
annotation: e(x),
|
|
457
|
-
/**
|
|
458
|
-
Processing instruction or preprocessor directive. Subtag of
|
|
459
|
-
[meta](#highlight.tags.meta).
|
|
460
|
-
*/
|
|
461
|
-
processingInstruction: e(x),
|
|
462
|
-
/**
|
|
463
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
464
|
-
given element is being defined. Expected to be used with the
|
|
465
|
-
various [name](#highlight.tags.name) tags.
|
|
466
|
-
*/
|
|
467
|
-
definition: l.defineModifier("definition"),
|
|
468
|
-
/**
|
|
469
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
470
|
-
something is constant. Mostly expected to be used with
|
|
471
|
-
[variable names](#highlight.tags.variableName).
|
|
472
|
-
*/
|
|
473
|
-
constant: l.defineModifier("constant"),
|
|
474
|
-
/**
|
|
475
|
-
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
476
|
-
a [variable](#highlight.tags.variableName) or [property
|
|
477
|
-
name](#highlight.tags.propertyName) is being called or defined
|
|
478
|
-
as a function.
|
|
479
|
-
*/
|
|
480
|
-
function: l.defineModifier("function"),
|
|
481
|
-
/**
|
|
482
|
-
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
483
|
-
[names](#highlight.tags.name) to indicate that they belong to
|
|
484
|
-
the language's standard environment.
|
|
485
|
-
*/
|
|
486
|
-
standard: l.defineModifier("standard"),
|
|
487
|
-
/**
|
|
488
|
-
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
489
|
-
[names](#highlight.tags.name) is local to some scope.
|
|
490
|
-
*/
|
|
491
|
-
local: l.defineModifier("local"),
|
|
492
|
-
/**
|
|
493
|
-
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
494
|
-
can be used to tag language-specific alternative variants of
|
|
495
|
-
some common tag. It is recommended for themes to define special
|
|
496
|
-
forms of at least the [string](#highlight.tags.string) and
|
|
497
|
-
[variable name](#highlight.tags.variableName) tags, since those
|
|
498
|
-
come up a lot.
|
|
499
|
-
*/
|
|
500
|
-
special: l.defineModifier("special")
|
|
96
|
+
var t = Tag.define, comment = t(), name = t(), typeName = t(name), propertyName = t(name), literal = t(), string = t(literal), number = t(literal), content = t(), heading = t(content), keyword = t(), operator = t(), punctuation = t(), bracket = t(punctuation), meta = t(), tags = {
|
|
97
|
+
comment,
|
|
98
|
+
lineComment: t(comment),
|
|
99
|
+
blockComment: t(comment),
|
|
100
|
+
docComment: t(comment),
|
|
101
|
+
name,
|
|
102
|
+
variableName: t(name),
|
|
103
|
+
typeName,
|
|
104
|
+
tagName: t(typeName),
|
|
105
|
+
propertyName,
|
|
106
|
+
attributeName: t(propertyName),
|
|
107
|
+
className: t(name),
|
|
108
|
+
labelName: t(name),
|
|
109
|
+
namespace: t(name),
|
|
110
|
+
macroName: t(name),
|
|
111
|
+
literal,
|
|
112
|
+
string,
|
|
113
|
+
docString: t(string),
|
|
114
|
+
character: t(string),
|
|
115
|
+
attributeValue: t(string),
|
|
116
|
+
number,
|
|
117
|
+
integer: t(number),
|
|
118
|
+
float: t(number),
|
|
119
|
+
bool: t(literal),
|
|
120
|
+
regexp: t(literal),
|
|
121
|
+
escape: t(literal),
|
|
122
|
+
color: t(literal),
|
|
123
|
+
url: t(literal),
|
|
124
|
+
keyword,
|
|
125
|
+
self: t(keyword),
|
|
126
|
+
null: t(keyword),
|
|
127
|
+
atom: t(keyword),
|
|
128
|
+
unit: t(keyword),
|
|
129
|
+
modifier: t(keyword),
|
|
130
|
+
operatorKeyword: t(keyword),
|
|
131
|
+
controlKeyword: t(keyword),
|
|
132
|
+
definitionKeyword: t(keyword),
|
|
133
|
+
moduleKeyword: t(keyword),
|
|
134
|
+
operator,
|
|
135
|
+
derefOperator: t(operator),
|
|
136
|
+
arithmeticOperator: t(operator),
|
|
137
|
+
logicOperator: t(operator),
|
|
138
|
+
bitwiseOperator: t(operator),
|
|
139
|
+
compareOperator: t(operator),
|
|
140
|
+
updateOperator: t(operator),
|
|
141
|
+
definitionOperator: t(operator),
|
|
142
|
+
typeOperator: t(operator),
|
|
143
|
+
controlOperator: t(operator),
|
|
144
|
+
punctuation,
|
|
145
|
+
separator: t(punctuation),
|
|
146
|
+
bracket,
|
|
147
|
+
angleBracket: t(bracket),
|
|
148
|
+
squareBracket: t(bracket),
|
|
149
|
+
paren: t(bracket),
|
|
150
|
+
brace: t(bracket),
|
|
151
|
+
content,
|
|
152
|
+
heading,
|
|
153
|
+
heading1: t(heading),
|
|
154
|
+
heading2: t(heading),
|
|
155
|
+
heading3: t(heading),
|
|
156
|
+
heading4: t(heading),
|
|
157
|
+
heading5: t(heading),
|
|
158
|
+
heading6: t(heading),
|
|
159
|
+
contentSeparator: t(content),
|
|
160
|
+
list: t(content),
|
|
161
|
+
quote: t(content),
|
|
162
|
+
emphasis: t(content),
|
|
163
|
+
strong: t(content),
|
|
164
|
+
link: t(content),
|
|
165
|
+
monospace: t(content),
|
|
166
|
+
strikethrough: t(content),
|
|
167
|
+
inserted: t(),
|
|
168
|
+
deleted: t(),
|
|
169
|
+
changed: t(),
|
|
170
|
+
invalid: t(),
|
|
171
|
+
meta,
|
|
172
|
+
documentMeta: t(meta),
|
|
173
|
+
annotation: t(meta),
|
|
174
|
+
processingInstruction: t(meta),
|
|
175
|
+
definition: Tag.defineModifier("definition"),
|
|
176
|
+
constant: Tag.defineModifier("constant"),
|
|
177
|
+
function: Tag.defineModifier("function"),
|
|
178
|
+
standard: Tag.defineModifier("standard"),
|
|
179
|
+
local: Tag.defineModifier("local"),
|
|
180
|
+
special: Tag.defineModifier("special")
|
|
501
181
|
};
|
|
502
|
-
for (let
|
|
503
|
-
|
|
504
|
-
|
|
182
|
+
for (let n in tags) {
|
|
183
|
+
let b = tags[n];
|
|
184
|
+
b instanceof Tag && (b.name = n);
|
|
505
185
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
186
|
+
tagHighlighter([
|
|
187
|
+
{
|
|
188
|
+
tag: tags.link,
|
|
189
|
+
class: "tok-link"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
tag: tags.heading,
|
|
193
|
+
class: "tok-heading"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
tag: tags.emphasis,
|
|
197
|
+
class: "tok-emphasis"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
tag: tags.strong,
|
|
201
|
+
class: "tok-strong"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
tag: tags.keyword,
|
|
205
|
+
class: "tok-keyword"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
tag: tags.atom,
|
|
209
|
+
class: "tok-atom"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
tag: tags.bool,
|
|
213
|
+
class: "tok-bool"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
tag: tags.url,
|
|
217
|
+
class: "tok-url"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
tag: tags.labelName,
|
|
221
|
+
class: "tok-labelName"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
tag: tags.inserted,
|
|
225
|
+
class: "tok-inserted"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
tag: tags.deleted,
|
|
229
|
+
class: "tok-deleted"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
tag: tags.literal,
|
|
233
|
+
class: "tok-literal"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
tag: tags.string,
|
|
237
|
+
class: "tok-string"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
tag: tags.number,
|
|
241
|
+
class: "tok-number"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
tag: [
|
|
245
|
+
tags.regexp,
|
|
246
|
+
tags.escape,
|
|
247
|
+
tags.special(tags.string)
|
|
248
|
+
],
|
|
249
|
+
class: "tok-string2"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
tag: tags.variableName,
|
|
253
|
+
class: "tok-variableName"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
tag: tags.local(tags.variableName),
|
|
257
|
+
class: "tok-variableName tok-local"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
tag: tags.definition(tags.variableName),
|
|
261
|
+
class: "tok-variableName tok-definition"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
tag: tags.special(tags.variableName),
|
|
265
|
+
class: "tok-variableName2"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
tag: tags.definition(tags.propertyName),
|
|
269
|
+
class: "tok-propertyName tok-definition"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
tag: tags.typeName,
|
|
273
|
+
class: "tok-typeName"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
tag: tags.namespace,
|
|
277
|
+
class: "tok-namespace"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
tag: tags.className,
|
|
281
|
+
class: "tok-className"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
tag: tags.macroName,
|
|
285
|
+
class: "tok-macroName"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
tag: tags.propertyName,
|
|
289
|
+
class: "tok-propertyName"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
tag: tags.operator,
|
|
293
|
+
class: "tok-operator"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
tag: tags.comment,
|
|
297
|
+
class: "tok-comment"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
tag: tags.meta,
|
|
301
|
+
class: "tok-meta"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
tag: tags.invalid,
|
|
305
|
+
class: "tok-invalid"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
tag: tags.punctuation,
|
|
309
|
+
class: "tok-punctuation"
|
|
310
|
+
}
|
|
537
311
|
]);
|
|
538
|
-
export {
|
|
539
|
-
l as Tag,
|
|
540
|
-
H as getStyleTags,
|
|
541
|
-
$ as tagHighlighter,
|
|
542
|
-
o as tags
|
|
543
|
-
};
|
|
312
|
+
export { getStyleTags, tags };
|