laif-ds 0.1.9 → 0.1.11
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/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- 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 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- 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 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- 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/create.js +0 -16
- 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/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- 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-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- 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 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import { Primitive as
|
|
4
|
-
import {
|
|
5
|
-
var
|
|
3
|
+
import { Primitive as v } from "../../react-primitive/dist/index.js";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
var m = "Separator", a = "horizontal", d = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
|
|
6
6
|
const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
7
|
+
return /* @__PURE__ */ l(
|
|
8
|
+
v.div,
|
|
9
9
|
{
|
|
10
10
|
"data-orientation": o,
|
|
11
11
|
...c,
|
|
@@ -14,7 +14,7 @@ var l = "Separator", a = "horizontal", d = ["horizontal", "vertical"], i = p.for
|
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
});
|
|
17
|
-
i.displayName =
|
|
17
|
+
i.displayName = m;
|
|
18
18
|
function f(r) {
|
|
19
19
|
return d.includes(r);
|
|
20
20
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { composeRefs as y } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx as p, Fragment as S } from "react/jsx-runtime";
|
|
5
5
|
// @__NO_SIDE_EFFECTS__
|
|
6
|
-
function
|
|
7
|
-
const t = /* @__PURE__ */
|
|
8
|
-
const { children: i, ...a } = n, s = l.Children.toArray(i),
|
|
9
|
-
if (
|
|
10
|
-
const c =
|
|
11
|
-
return /* @__PURE__ */
|
|
6
|
+
function g(e) {
|
|
7
|
+
const t = /* @__PURE__ */ E(e), o = l.forwardRef((n, r) => {
|
|
8
|
+
const { children: i, ...a } = n, s = l.Children.toArray(i), f = s.find(C);
|
|
9
|
+
if (f) {
|
|
10
|
+
const c = f.props.children, m = s.map((u) => u === f ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
|
11
|
+
return /* @__PURE__ */ p(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
|
|
12
12
|
}
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ p(t, { ...a, ref: r, children: i });
|
|
14
14
|
});
|
|
15
15
|
return o.displayName = `${e}.Slot`, o;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
17
|
+
var x = /* @__PURE__ */ g("Slot");
|
|
18
18
|
// @__NO_SIDE_EFFECTS__
|
|
19
|
-
function
|
|
19
|
+
function E(e) {
|
|
20
20
|
const t = l.forwardRef((o, n) => {
|
|
21
21
|
const { children: r, ...i } = o;
|
|
22
22
|
if (l.isValidElement(r)) {
|
|
23
|
-
const a =
|
|
23
|
+
const a = b(r), s = R(i, r.props);
|
|
24
24
|
return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
|
|
25
25
|
}
|
|
26
26
|
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
|
@@ -29,11 +29,11 @@ function g(e) {
|
|
|
29
29
|
}
|
|
30
30
|
var d = Symbol("radix.slottable");
|
|
31
31
|
// @__NO_SIDE_EFFECTS__
|
|
32
|
-
function
|
|
33
|
-
const t = ({ children: o }) => /* @__PURE__ */
|
|
32
|
+
function I(e) {
|
|
33
|
+
const t = ({ children: o }) => /* @__PURE__ */ p(S, { children: o });
|
|
34
34
|
return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function C(e) {
|
|
37
37
|
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
|
38
38
|
}
|
|
39
39
|
function R(e, t) {
|
|
@@ -46,14 +46,14 @@ function R(e, t) {
|
|
|
46
46
|
}
|
|
47
47
|
return { ...e, ...o };
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function b(e) {
|
|
50
50
|
var n, r;
|
|
51
51
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
52
52
|
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
x as Root,
|
|
56
|
+
x as Slot,
|
|
57
|
+
g as createSlot,
|
|
58
|
+
I as createSlottable
|
|
59
59
|
};
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { composeEventHandlers as
|
|
4
|
-
import { useComposedRefs as
|
|
5
|
-
import { createContextScope as
|
|
6
|
-
import { useControllableState as
|
|
7
|
-
import { usePrevious as
|
|
8
|
-
import { useSize as
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { composeEventHandlers as _ } from "../../primitive/dist/index.js";
|
|
4
|
+
import { useComposedRefs as H } from "../../react-compose-refs/dist/index.js";
|
|
5
|
+
import { createContextScope as I } from "../../react-context/dist/index.js";
|
|
6
|
+
import { useControllableState as M } from "../../react-use-controllable-state/dist/index.js";
|
|
7
|
+
import { usePrevious as N } from "../../react-use-previous/dist/index.js";
|
|
8
|
+
import { useSize as j } from "../../react-use-size/dist/index.js";
|
|
9
9
|
import { Primitive as w } from "../../react-primitive/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
var S = "Switch", [
|
|
12
|
-
(e,
|
|
10
|
+
import { jsxs as B, jsx as m } from "react/jsx-runtime";
|
|
11
|
+
var S = "Switch", [q, K] = I(S), [z, A] = q(S), C = n.forwardRef(
|
|
12
|
+
(e, s) => {
|
|
13
13
|
const {
|
|
14
14
|
__scopeSwitch: t,
|
|
15
15
|
name: o,
|
|
16
16
|
checked: r,
|
|
17
|
-
defaultChecked:
|
|
17
|
+
defaultChecked: p,
|
|
18
18
|
required: a,
|
|
19
19
|
disabled: c,
|
|
20
20
|
value: i = "on",
|
|
21
21
|
onCheckedChange: f,
|
|
22
22
|
form: b,
|
|
23
|
-
...
|
|
24
|
-
} = e, [d, R] =
|
|
23
|
+
...u
|
|
24
|
+
} = e, [d, R] = n.useState(null), g = H(s, (h) => R(h)), v = n.useRef(!1), k = d ? b || !!d.closest("form") : !0, [l = !1, E] = M({
|
|
25
25
|
prop: r,
|
|
26
|
-
defaultProp:
|
|
26
|
+
defaultProp: p,
|
|
27
27
|
onChange: f
|
|
28
28
|
});
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ B(z, { scope: t, checked: l, disabled: c, children: [
|
|
30
|
+
/* @__PURE__ */ m(
|
|
31
31
|
w.button,
|
|
32
32
|
{
|
|
33
33
|
type: "button",
|
|
34
34
|
role: "switch",
|
|
35
|
-
"aria-checked":
|
|
35
|
+
"aria-checked": l,
|
|
36
36
|
"aria-required": a,
|
|
37
|
-
"data-state":
|
|
37
|
+
"data-state": x(l),
|
|
38
38
|
"data-disabled": c ? "" : void 0,
|
|
39
39
|
disabled: c,
|
|
40
40
|
value: i,
|
|
41
|
-
...
|
|
42
|
-
ref:
|
|
43
|
-
onClick:
|
|
44
|
-
|
|
41
|
+
...u,
|
|
42
|
+
ref: g,
|
|
43
|
+
onClick: _(e.onClick, (h) => {
|
|
44
|
+
E((T) => !T), k && (v.current = h.isPropagationStopped(), v.current || h.stopPropagation());
|
|
45
45
|
})
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
k && /* @__PURE__ */
|
|
49
|
-
|
|
48
|
+
k && /* @__PURE__ */ m(
|
|
49
|
+
O,
|
|
50
50
|
{
|
|
51
51
|
control: d,
|
|
52
52
|
bubbles: !v.current,
|
|
53
53
|
name: o,
|
|
54
54
|
value: i,
|
|
55
|
-
checked:
|
|
55
|
+
checked: l,
|
|
56
56
|
required: a,
|
|
57
57
|
disabled: c,
|
|
58
58
|
form: b,
|
|
@@ -63,30 +63,30 @@ var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
C.displayName = S;
|
|
66
|
-
var
|
|
67
|
-
(e,
|
|
68
|
-
const { __scopeSwitch: t, ...o } = e, r =
|
|
69
|
-
return /* @__PURE__ */
|
|
66
|
+
var P = "SwitchThumb", y = n.forwardRef(
|
|
67
|
+
(e, s) => {
|
|
68
|
+
const { __scopeSwitch: t, ...o } = e, r = A(P, t);
|
|
69
|
+
return /* @__PURE__ */ m(
|
|
70
70
|
w.span,
|
|
71
71
|
{
|
|
72
|
-
"data-state":
|
|
72
|
+
"data-state": x(r.checked),
|
|
73
73
|
"data-disabled": r.disabled ? "" : void 0,
|
|
74
74
|
...o,
|
|
75
|
-
ref:
|
|
75
|
+
ref: s
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
|
|
81
|
-
var
|
|
82
|
-
const { control:
|
|
83
|
-
return
|
|
84
|
-
const i =
|
|
85
|
-
if (a !== t &&
|
|
80
|
+
y.displayName = P;
|
|
81
|
+
var O = (e) => {
|
|
82
|
+
const { control: s, checked: t, bubbles: o = !0, ...r } = e, p = n.useRef(null), a = N(t), c = j(s);
|
|
83
|
+
return n.useEffect(() => {
|
|
84
|
+
const i = p.current, f = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
85
|
+
if (a !== t && u) {
|
|
86
86
|
const d = new Event("click", { bubbles: o });
|
|
87
|
-
|
|
87
|
+
u.call(i, t), i.dispatchEvent(d);
|
|
88
88
|
}
|
|
89
|
-
}, [a, t, o]), /* @__PURE__ */
|
|
89
|
+
}, [a, t, o]), /* @__PURE__ */ m(
|
|
90
90
|
"input",
|
|
91
91
|
{
|
|
92
92
|
type: "checkbox",
|
|
@@ -94,7 +94,7 @@ var A = (e) => {
|
|
|
94
94
|
defaultChecked: t,
|
|
95
95
|
...r,
|
|
96
96
|
tabIndex: -1,
|
|
97
|
-
ref:
|
|
97
|
+
ref: p,
|
|
98
98
|
style: {
|
|
99
99
|
...e.style,
|
|
100
100
|
...c,
|
|
@@ -106,14 +106,14 @@ var A = (e) => {
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
};
|
|
109
|
-
function
|
|
109
|
+
function x(e) {
|
|
110
110
|
return e ? "checked" : "unchecked";
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var Q = C, V = y;
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
Q as Root,
|
|
115
115
|
C as Switch,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
y as SwitchThumb,
|
|
117
|
+
V as Thumb,
|
|
118
|
+
K as createSwitchScope
|
|
119
119
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as v from "react";
|
|
3
|
-
import { composeEventHandlers as
|
|
4
|
-
import { createContextScope as
|
|
5
|
-
import { createRovingFocusGroupScope as
|
|
6
|
-
import { Presence as
|
|
7
|
-
import { Primitive as
|
|
8
|
-
import { useDirection as
|
|
9
|
-
import { useControllableState as
|
|
10
|
-
import { useId as
|
|
11
|
-
import {
|
|
12
|
-
var g = "Tabs", [
|
|
13
|
-
|
|
14
|
-
]),
|
|
3
|
+
import { composeEventHandlers as p } from "../../primitive/dist/index.js";
|
|
4
|
+
import { createContextScope as x } from "../../react-context/dist/index.js";
|
|
5
|
+
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "../../react-roving-focus/dist/index.js";
|
|
6
|
+
import { Presence as w } from "../../react-presence/dist/index.js";
|
|
7
|
+
import { Primitive as b } from "../../react-primitive/dist/index.js";
|
|
8
|
+
import { useDirection as D } from "../../react-direction/dist/index.js";
|
|
9
|
+
import { useControllableState as V } from "../../react-use-controllable-state/dist/index.js";
|
|
10
|
+
import { useId as G } from "../../react-id/dist/index.js";
|
|
11
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
12
|
+
var g = "Tabs", [L, Q] = x(g, [
|
|
13
|
+
C
|
|
14
|
+
]), h = C(), [$, T] = L(g), I = v.forwardRef(
|
|
15
15
|
(e, r) => {
|
|
16
16
|
const {
|
|
17
17
|
__scopeTabs: s,
|
|
@@ -22,23 +22,23 @@ var g = "Tabs", [G, Q] = M(g, [
|
|
|
22
22
|
dir: d,
|
|
23
23
|
activationMode: f = "automatic",
|
|
24
24
|
...m
|
|
25
|
-
} = e, i =
|
|
25
|
+
} = e, i = D(d), [a, l] = V({
|
|
26
26
|
prop: t,
|
|
27
27
|
onChange: n,
|
|
28
28
|
defaultProp: c
|
|
29
29
|
});
|
|
30
|
-
return /* @__PURE__ */ u
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ u(
|
|
31
|
+
$,
|
|
32
32
|
{
|
|
33
33
|
scope: s,
|
|
34
|
-
baseId:
|
|
34
|
+
baseId: G(),
|
|
35
35
|
value: a,
|
|
36
36
|
onValueChange: l,
|
|
37
37
|
orientation: o,
|
|
38
38
|
dir: i,
|
|
39
39
|
activationMode: f,
|
|
40
|
-
children: /* @__PURE__ */ u
|
|
41
|
-
|
|
40
|
+
children: /* @__PURE__ */ u(
|
|
41
|
+
b.div,
|
|
42
42
|
{
|
|
43
43
|
dir: i,
|
|
44
44
|
"data-orientation": o,
|
|
@@ -50,20 +50,20 @@ var g = "Tabs", [G, Q] = M(g, [
|
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
|
|
54
|
-
var
|
|
53
|
+
I.displayName = g;
|
|
54
|
+
var R = "TabsList", _ = v.forwardRef(
|
|
55
55
|
(e, r) => {
|
|
56
|
-
const { __scopeTabs: s, loop: t = !0, ...n } = e, c = T(
|
|
57
|
-
return /* @__PURE__ */ u
|
|
58
|
-
|
|
56
|
+
const { __scopeTabs: s, loop: t = !0, ...n } = e, c = T(R, s), o = h(s);
|
|
57
|
+
return /* @__PURE__ */ u(
|
|
58
|
+
E,
|
|
59
59
|
{
|
|
60
60
|
asChild: !0,
|
|
61
61
|
...o,
|
|
62
62
|
orientation: c.orientation,
|
|
63
63
|
dir: c.dir,
|
|
64
64
|
loop: t,
|
|
65
|
-
children: /* @__PURE__ */ u
|
|
66
|
-
|
|
65
|
+
children: /* @__PURE__ */ u(
|
|
66
|
+
b.div,
|
|
67
67
|
{
|
|
68
68
|
role: "tablist",
|
|
69
69
|
"aria-orientation": c.orientation,
|
|
@@ -75,19 +75,19 @@ var I = "TabsList", R = v.forwardRef(
|
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
|
|
79
|
-
var
|
|
78
|
+
_.displayName = R;
|
|
79
|
+
var y = "TabsTrigger", A = v.forwardRef(
|
|
80
80
|
(e, r) => {
|
|
81
|
-
const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, o = T(
|
|
82
|
-
return /* @__PURE__ */ u
|
|
83
|
-
|
|
81
|
+
const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, o = T(y, s), d = h(s), f = N(o.baseId, t), m = P(o.baseId, t), i = t === o.value;
|
|
82
|
+
return /* @__PURE__ */ u(
|
|
83
|
+
F,
|
|
84
84
|
{
|
|
85
85
|
asChild: !0,
|
|
86
86
|
...d,
|
|
87
87
|
focusable: !n,
|
|
88
88
|
active: i,
|
|
89
|
-
children: /* @__PURE__ */ u
|
|
90
|
-
|
|
89
|
+
children: /* @__PURE__ */ u(
|
|
90
|
+
b.button,
|
|
91
91
|
{
|
|
92
92
|
type: "button",
|
|
93
93
|
role: "tab",
|
|
@@ -99,13 +99,13 @@ var _ = "TabsTrigger", y = v.forwardRef(
|
|
|
99
99
|
id: f,
|
|
100
100
|
...c,
|
|
101
101
|
ref: r,
|
|
102
|
-
onMouseDown:
|
|
102
|
+
onMouseDown: p(e.onMouseDown, (a) => {
|
|
103
103
|
!n && a.button === 0 && a.ctrlKey === !1 ? o.onValueChange(t) : a.preventDefault();
|
|
104
104
|
}),
|
|
105
|
-
onKeyDown:
|
|
105
|
+
onKeyDown: p(e.onKeyDown, (a) => {
|
|
106
106
|
[" ", "Enter"].includes(a.key) && o.onValueChange(t);
|
|
107
107
|
}),
|
|
108
|
-
onFocus:
|
|
108
|
+
onFocus: p(e.onFocus, () => {
|
|
109
109
|
const a = o.activationMode !== "manual";
|
|
110
110
|
!i && !n && a && o.onValueChange(t);
|
|
111
111
|
})
|
|
@@ -115,15 +115,15 @@ var _ = "TabsTrigger", y = v.forwardRef(
|
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
|
-
|
|
119
|
-
var
|
|
118
|
+
A.displayName = y;
|
|
119
|
+
var S = "TabsContent", M = v.forwardRef(
|
|
120
120
|
(e, r) => {
|
|
121
|
-
const { __scopeTabs: s, value: t, forceMount: n, children: c, ...o } = e, d = T(
|
|
121
|
+
const { __scopeTabs: s, value: t, forceMount: n, children: c, ...o } = e, d = T(S, s), f = N(d.baseId, t), m = P(d.baseId, t), i = t === d.value, a = v.useRef(i);
|
|
122
122
|
return v.useEffect(() => {
|
|
123
123
|
const l = requestAnimationFrame(() => a.current = !1);
|
|
124
124
|
return () => cancelAnimationFrame(l);
|
|
125
|
-
}, []), /* @__PURE__ */ u
|
|
126
|
-
|
|
125
|
+
}, []), /* @__PURE__ */ u(w, { present: n || i, children: ({ present: l }) => /* @__PURE__ */ u(
|
|
126
|
+
b.div,
|
|
127
127
|
{
|
|
128
128
|
"data-state": i ? "active" : "inactive",
|
|
129
129
|
"data-orientation": d.orientation,
|
|
@@ -143,22 +143,22 @@ var A = "TabsContent", S = v.forwardRef(
|
|
|
143
143
|
) });
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
|
-
|
|
147
|
-
function
|
|
146
|
+
M.displayName = S;
|
|
147
|
+
function N(e, r) {
|
|
148
148
|
return `${e}-trigger-${r}`;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function P(e, r) {
|
|
151
151
|
return `${e}-content-${r}`;
|
|
152
152
|
}
|
|
153
|
-
var U =
|
|
153
|
+
var U = I, W = _, X = A, Y = M;
|
|
154
154
|
export {
|
|
155
155
|
Y as Content,
|
|
156
156
|
W as List,
|
|
157
157
|
U as Root,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
I as Tabs,
|
|
159
|
+
M as TabsContent,
|
|
160
|
+
_ as TabsList,
|
|
161
|
+
A as TabsTrigger,
|
|
162
162
|
X as Trigger,
|
|
163
163
|
Q as createTabsScope
|
|
164
164
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as n from "react";
|
|
3
3
|
import { composeEventHandlers as f } from "../../primitive/dist/index.js";
|
|
4
4
|
import { useControllableState as m } from "../../react-use-controllable-state/dist/index.js";
|
|
5
5
|
import { Primitive as p } from "../../react-primitive/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
var b = "Toggle",
|
|
8
|
-
const { pressed: s, defaultPressed: a = !1, onPressedChange: d, ...i } = e, [o = !1,
|
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
7
|
+
var b = "Toggle", r = n.forwardRef((e, t) => {
|
|
8
|
+
const { pressed: s, defaultPressed: a = !1, onPressedChange: d, ...i } = e, [o = !1, l] = m({
|
|
9
9
|
prop: s,
|
|
10
10
|
onChange: d,
|
|
11
11
|
defaultProp: a
|
|
12
12
|
});
|
|
13
|
-
return /* @__PURE__ */ u
|
|
13
|
+
return /* @__PURE__ */ u(
|
|
14
14
|
p.button,
|
|
15
15
|
{
|
|
16
16
|
type: "button",
|
|
@@ -18,16 +18,16 @@ var b = "Toggle", t = l.forwardRef((e, r) => {
|
|
|
18
18
|
"data-state": o ? "on" : "off",
|
|
19
19
|
"data-disabled": e.disabled ? "" : void 0,
|
|
20
20
|
...i,
|
|
21
|
-
ref:
|
|
21
|
+
ref: t,
|
|
22
22
|
onClick: f(e.onClick, () => {
|
|
23
|
-
e.disabled ||
|
|
23
|
+
e.disabled || l(!o);
|
|
24
24
|
})
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
var C =
|
|
28
|
+
r.displayName = b;
|
|
29
|
+
var C = r;
|
|
30
30
|
export {
|
|
31
31
|
C as Root,
|
|
32
|
-
|
|
32
|
+
r as Toggle
|
|
33
33
|
};
|