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,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { composeEventHandlers as
|
|
4
|
-
import { useComposedRefs as
|
|
5
|
-
import { createContextScope as
|
|
6
|
-
import { Primitive as
|
|
7
|
-
import { createRovingFocusGroupScope as
|
|
8
|
-
import { useControllableState as
|
|
9
|
-
import { useDirection as
|
|
10
|
-
import { useSize as
|
|
11
|
-
import { usePrevious as
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { composeEventHandlers as y } from "../../primitive/dist/index.js";
|
|
4
|
+
import { useComposedRefs as P } from "../../react-compose-refs/dist/index.js";
|
|
5
|
+
import { createContextScope as w } from "../../react-context/dist/index.js";
|
|
6
|
+
import { Primitive as k } from "../../react-primitive/dist/index.js";
|
|
7
|
+
import { createRovingFocusGroupScope as E, Root as L, Item as q } from "../../react-roving-focus/dist/index.js";
|
|
8
|
+
import { useControllableState as K } from "../../react-use-controllable-state/dist/index.js";
|
|
9
|
+
import { useDirection as V } from "../../react-direction/dist/index.js";
|
|
10
|
+
import { useSize as T } from "../../react-use-size/dist/index.js";
|
|
11
|
+
import { usePrevious as j } from "../../react-use-previous/dist/index.js";
|
|
12
12
|
import { Presence as U } from "../../react-presence/dist/index.js";
|
|
13
|
-
import {
|
|
14
|
-
var
|
|
15
|
-
(t,
|
|
13
|
+
import { jsx as p, jsxs as z } from "react/jsx-runtime";
|
|
14
|
+
var C = "Radio", [B, G] = w(C), [H, W] = B(C), S = s.forwardRef(
|
|
15
|
+
(t, c) => {
|
|
16
16
|
const {
|
|
17
17
|
__scopeRadio: e,
|
|
18
18
|
name: n,
|
|
@@ -20,33 +20,33 @@ var k = "Radio", [z, w] = I(k), [B, H] = z(k), G = i.forwardRef(
|
|
|
20
20
|
required: r,
|
|
21
21
|
disabled: a,
|
|
22
22
|
value: l = "on",
|
|
23
|
-
onCheck:
|
|
23
|
+
onCheck: d,
|
|
24
24
|
form: f,
|
|
25
|
-
...
|
|
26
|
-
} = t, [
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
25
|
+
...R
|
|
26
|
+
} = t, [u, m] = s.useState(null), i = P(c, (b) => m(b)), v = s.useRef(!1), h = u ? f || !!u.closest("form") : !0;
|
|
27
|
+
return /* @__PURE__ */ z(H, { scope: e, checked: o, disabled: a, children: [
|
|
28
|
+
/* @__PURE__ */ p(
|
|
29
|
+
k.button,
|
|
30
30
|
{
|
|
31
31
|
type: "button",
|
|
32
32
|
role: "radio",
|
|
33
33
|
"aria-checked": o,
|
|
34
|
-
"data-state":
|
|
34
|
+
"data-state": A(o),
|
|
35
35
|
"data-disabled": a ? "" : void 0,
|
|
36
36
|
disabled: a,
|
|
37
37
|
value: l,
|
|
38
|
-
...
|
|
39
|
-
ref:
|
|
40
|
-
onClick:
|
|
41
|
-
o ||
|
|
38
|
+
...R,
|
|
39
|
+
ref: i,
|
|
40
|
+
onClick: y(t.onClick, (b) => {
|
|
41
|
+
o || d == null || d(), h && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
|
|
42
42
|
})
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
h && /* @__PURE__ */
|
|
46
|
-
|
|
45
|
+
h && /* @__PURE__ */ p(
|
|
46
|
+
X,
|
|
47
47
|
{
|
|
48
|
-
control:
|
|
49
|
-
bubbles: !
|
|
48
|
+
control: u,
|
|
49
|
+
bubbles: !v.current,
|
|
50
50
|
name: n,
|
|
51
51
|
value: l,
|
|
52
52
|
checked: o,
|
|
@@ -59,31 +59,31 @@ var k = "Radio", [z, w] = I(k), [B, H] = z(k), G = i.forwardRef(
|
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
(t,
|
|
65
|
-
const { __scopeRadio: e, forceMount: n, ...o } = t, r =
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
|
|
62
|
+
S.displayName = C;
|
|
63
|
+
var g = "RadioIndicator", _ = s.forwardRef(
|
|
64
|
+
(t, c) => {
|
|
65
|
+
const { __scopeRadio: e, forceMount: n, ...o } = t, r = W(g, e);
|
|
66
|
+
return /* @__PURE__ */ p(U, { present: n || r.checked, children: /* @__PURE__ */ p(
|
|
67
|
+
k.span,
|
|
68
68
|
{
|
|
69
|
-
"data-state":
|
|
69
|
+
"data-state": A(r.checked),
|
|
70
70
|
"data-disabled": r.disabled ? "" : void 0,
|
|
71
71
|
...o,
|
|
72
|
-
ref:
|
|
72
|
+
ref: c
|
|
73
73
|
}
|
|
74
74
|
) });
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
|
|
78
|
-
var
|
|
79
|
-
const { control:
|
|
80
|
-
return
|
|
81
|
-
const
|
|
82
|
-
if (a !== e &&
|
|
77
|
+
_.displayName = g;
|
|
78
|
+
var X = (t) => {
|
|
79
|
+
const { control: c, checked: e, bubbles: n = !0, ...o } = t, r = s.useRef(null), a = j(e), l = T(c);
|
|
80
|
+
return s.useEffect(() => {
|
|
81
|
+
const d = r.current, f = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
82
|
+
if (a !== e && u) {
|
|
83
83
|
const m = new Event("click", { bubbles: n });
|
|
84
|
-
|
|
84
|
+
u.call(d, e), d.dispatchEvent(m);
|
|
85
85
|
}
|
|
86
|
-
}, [a, e, n]), /* @__PURE__ */
|
|
86
|
+
}, [a, e, n]), /* @__PURE__ */ p(
|
|
87
87
|
"input",
|
|
88
88
|
{
|
|
89
89
|
type: "radio",
|
|
@@ -103,14 +103,14 @@ var W = (t) => {
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function A(t) {
|
|
107
107
|
return t ? "checked" : "unchecked";
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
]),
|
|
113
|
-
(t,
|
|
109
|
+
var Y = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], I = "RadioGroup", [J, pe] = w(I, [
|
|
110
|
+
E,
|
|
111
|
+
G
|
|
112
|
+
]), N = E(), x = G(), [Q, Z] = J(I), D = s.forwardRef(
|
|
113
|
+
(t, c) => {
|
|
114
114
|
const {
|
|
115
115
|
__scopeRadioGroup: e,
|
|
116
116
|
name: n,
|
|
@@ -118,18 +118,18 @@ var X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], C = "RadioGroup", [
|
|
|
118
118
|
value: r,
|
|
119
119
|
required: a = !1,
|
|
120
120
|
disabled: l = !1,
|
|
121
|
-
orientation:
|
|
121
|
+
orientation: d,
|
|
122
122
|
dir: f,
|
|
123
|
-
loop:
|
|
124
|
-
onValueChange:
|
|
123
|
+
loop: R = !0,
|
|
124
|
+
onValueChange: u,
|
|
125
125
|
...m
|
|
126
|
-
} = t,
|
|
126
|
+
} = t, i = N(e), v = V(f), [h, b] = K({
|
|
127
127
|
prop: r,
|
|
128
128
|
defaultProp: o,
|
|
129
|
-
onChange:
|
|
129
|
+
onChange: u
|
|
130
130
|
});
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
|
|
131
|
+
return /* @__PURE__ */ p(
|
|
132
|
+
Q,
|
|
133
133
|
{
|
|
134
134
|
scope: e,
|
|
135
135
|
name: n,
|
|
@@ -137,24 +137,24 @@ var X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], C = "RadioGroup", [
|
|
|
137
137
|
disabled: l,
|
|
138
138
|
value: h,
|
|
139
139
|
onValueChange: b,
|
|
140
|
-
children: /* @__PURE__ */
|
|
141
|
-
|
|
140
|
+
children: /* @__PURE__ */ p(
|
|
141
|
+
L,
|
|
142
142
|
{
|
|
143
143
|
asChild: !0,
|
|
144
|
-
...
|
|
145
|
-
orientation:
|
|
146
|
-
dir:
|
|
147
|
-
loop:
|
|
148
|
-
children: /* @__PURE__ */
|
|
149
|
-
|
|
144
|
+
...i,
|
|
145
|
+
orientation: d,
|
|
146
|
+
dir: v,
|
|
147
|
+
loop: R,
|
|
148
|
+
children: /* @__PURE__ */ p(
|
|
149
|
+
k.div,
|
|
150
150
|
{
|
|
151
151
|
role: "radiogroup",
|
|
152
152
|
"aria-required": a,
|
|
153
|
-
"aria-orientation":
|
|
153
|
+
"aria-orientation": d,
|
|
154
154
|
"data-disabled": l ? "" : void 0,
|
|
155
|
-
dir:
|
|
155
|
+
dir: v,
|
|
156
156
|
...m,
|
|
157
|
-
ref:
|
|
157
|
+
ref: c
|
|
158
158
|
}
|
|
159
159
|
)
|
|
160
160
|
}
|
|
@@ -163,41 +163,41 @@ var X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], C = "RadioGroup", [
|
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
|
-
|
|
167
|
-
var
|
|
168
|
-
(t,
|
|
169
|
-
const { __scopeRadioGroup: e, disabled: n, ...o } = t, r =
|
|
170
|
-
return
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
return document.addEventListener("keydown",
|
|
175
|
-
document.removeEventListener("keydown",
|
|
166
|
+
D.displayName = I;
|
|
167
|
+
var M = "RadioGroupItem", O = s.forwardRef(
|
|
168
|
+
(t, c) => {
|
|
169
|
+
const { __scopeRadioGroup: e, disabled: n, ...o } = t, r = Z(M, e), a = r.disabled || n, l = N(e), d = x(e), f = s.useRef(null), R = P(c, f), u = r.value === o.value, m = s.useRef(!1);
|
|
170
|
+
return s.useEffect(() => {
|
|
171
|
+
const i = (h) => {
|
|
172
|
+
Y.includes(h.key) && (m.current = !0);
|
|
173
|
+
}, v = () => m.current = !1;
|
|
174
|
+
return document.addEventListener("keydown", i), document.addEventListener("keyup", v), () => {
|
|
175
|
+
document.removeEventListener("keydown", i), document.removeEventListener("keyup", v);
|
|
176
176
|
};
|
|
177
|
-
}, []), /* @__PURE__ */
|
|
178
|
-
|
|
177
|
+
}, []), /* @__PURE__ */ p(
|
|
178
|
+
q,
|
|
179
179
|
{
|
|
180
180
|
asChild: !0,
|
|
181
181
|
...l,
|
|
182
182
|
focusable: !a,
|
|
183
|
-
active:
|
|
184
|
-
children: /* @__PURE__ */
|
|
185
|
-
|
|
183
|
+
active: u,
|
|
184
|
+
children: /* @__PURE__ */ p(
|
|
185
|
+
S,
|
|
186
186
|
{
|
|
187
187
|
disabled: a,
|
|
188
188
|
required: r.required,
|
|
189
|
-
checked:
|
|
190
|
-
...
|
|
189
|
+
checked: u,
|
|
190
|
+
...d,
|
|
191
191
|
...o,
|
|
192
192
|
name: r.name,
|
|
193
|
-
ref:
|
|
193
|
+
ref: R,
|
|
194
194
|
onCheck: () => r.onValueChange(o.value),
|
|
195
|
-
onKeyDown:
|
|
196
|
-
|
|
195
|
+
onKeyDown: y((i) => {
|
|
196
|
+
i.key === "Enter" && i.preventDefault();
|
|
197
197
|
}),
|
|
198
|
-
onFocus:
|
|
199
|
-
var
|
|
200
|
-
m.current && ((
|
|
198
|
+
onFocus: y(o.onFocus, () => {
|
|
199
|
+
var i;
|
|
200
|
+
m.current && ((i = f.current) == null || i.click());
|
|
201
201
|
})
|
|
202
202
|
}
|
|
203
203
|
)
|
|
@@ -205,21 +205,21 @@ var D = "RadioGroupItem", M = i.forwardRef(
|
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
);
|
|
208
|
-
|
|
209
|
-
var
|
|
210
|
-
(t,
|
|
211
|
-
const { __scopeRadioGroup: e, ...n } = t, o =
|
|
212
|
-
return /* @__PURE__ */
|
|
208
|
+
O.displayName = M;
|
|
209
|
+
var $ = "RadioGroupIndicator", F = s.forwardRef(
|
|
210
|
+
(t, c) => {
|
|
211
|
+
const { __scopeRadioGroup: e, ...n } = t, o = x(e);
|
|
212
|
+
return /* @__PURE__ */ p(_, { ...o, ...n, ref: c });
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
|
|
216
|
-
var
|
|
215
|
+
F.displayName = $;
|
|
216
|
+
var le = D, fe = O, me = F;
|
|
217
217
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
me as Indicator,
|
|
219
|
+
fe as Item,
|
|
220
|
+
D as RadioGroup,
|
|
221
|
+
F as RadioGroupIndicator,
|
|
222
|
+
O as RadioGroupItem,
|
|
223
|
+
le as Root,
|
|
224
|
+
pe as createRadioGroupScope
|
|
225
225
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { composeEventHandlers as p } from "../../primitive/dist/index.js";
|
|
4
|
-
import { createCollection as
|
|
5
|
-
import { useComposedRefs as
|
|
4
|
+
import { createCollection as V } from "../../react-collection/dist/index.js";
|
|
5
|
+
import { useComposedRefs as j } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { createContextScope as z } from "../../react-context/dist/index.js";
|
|
7
7
|
import { useId as q } from "../../react-id/dist/index.js";
|
|
8
|
-
import { Primitive as
|
|
8
|
+
import { Primitive as x } from "../../react-primitive/dist/index.js";
|
|
9
9
|
import { useCallbackRef as J } from "../../react-use-callback-ref/dist/index.js";
|
|
10
10
|
import { useControllableState as Q } from "../../react-use-controllable-state/dist/index.js";
|
|
11
11
|
import { useDirection as W } from "../../react-direction/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
12
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
+
var h = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [y, G, Z] = V(b), [$, Fe] = z(
|
|
14
14
|
b,
|
|
15
15
|
[Z]
|
|
16
16
|
), [ee, oe] = $(b), N = s.forwardRef(
|
|
17
|
-
(e, r) => /* @__PURE__ */ d
|
|
17
|
+
(e, r) => /* @__PURE__ */ d(y.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(y.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(te, { ...e, ref: r }) }) })
|
|
18
18
|
);
|
|
19
19
|
N.displayName = b;
|
|
20
20
|
var te = s.forwardRef((e, r) => {
|
|
@@ -29,16 +29,16 @@ var te = s.forwardRef((e, r) => {
|
|
|
29
29
|
onEntryFocus: u,
|
|
30
30
|
preventScrollOnEntryFocus: w = !1,
|
|
31
31
|
...C
|
|
32
|
-
} = e, v = s.useRef(null), I =
|
|
32
|
+
} = e, v = s.useRef(null), I = j(r, v), t = W(g), [l = null, T] = Q({
|
|
33
33
|
prop: R,
|
|
34
34
|
defaultProp: E,
|
|
35
35
|
onChange: m
|
|
36
|
-
}), [a, i] = s.useState(!1), S = J(u),
|
|
36
|
+
}), [a, i] = s.useState(!1), S = J(u), k = G(c), A = s.useRef(!1), [L, D] = s.useState(0);
|
|
37
37
|
return s.useEffect(() => {
|
|
38
38
|
const n = v.current;
|
|
39
39
|
if (n)
|
|
40
|
-
return n.addEventListener(
|
|
41
|
-
}, [S]), /* @__PURE__ */ d
|
|
40
|
+
return n.addEventListener(h, S), () => n.removeEventListener(h, S);
|
|
41
|
+
}, [S]), /* @__PURE__ */ d(
|
|
42
42
|
ee,
|
|
43
43
|
{
|
|
44
44
|
scope: c,
|
|
@@ -52,36 +52,36 @@ var te = s.forwardRef((e, r) => {
|
|
|
52
52
|
),
|
|
53
53
|
onItemShiftTab: s.useCallback(() => i(!0), []),
|
|
54
54
|
onFocusableItemAdd: s.useCallback(
|
|
55
|
-
() =>
|
|
55
|
+
() => D((n) => n + 1),
|
|
56
56
|
[]
|
|
57
57
|
),
|
|
58
58
|
onFocusableItemRemove: s.useCallback(
|
|
59
|
-
() =>
|
|
59
|
+
() => D((n) => n - 1),
|
|
60
60
|
[]
|
|
61
61
|
),
|
|
62
|
-
children: /* @__PURE__ */ d
|
|
63
|
-
|
|
62
|
+
children: /* @__PURE__ */ d(
|
|
63
|
+
x.div,
|
|
64
64
|
{
|
|
65
|
-
tabIndex: a ||
|
|
65
|
+
tabIndex: a || L === 0 ? -1 : 0,
|
|
66
66
|
"data-orientation": o,
|
|
67
67
|
...C,
|
|
68
68
|
ref: I,
|
|
69
69
|
style: { outline: "none", ...e.style },
|
|
70
70
|
onMouseDown: p(e.onMouseDown, () => {
|
|
71
|
-
|
|
71
|
+
A.current = !0;
|
|
72
72
|
}),
|
|
73
73
|
onFocus: p(e.onFocus, (n) => {
|
|
74
|
-
const
|
|
75
|
-
if (n.target === n.currentTarget &&
|
|
76
|
-
const
|
|
77
|
-
if (n.currentTarget.dispatchEvent(
|
|
78
|
-
const
|
|
74
|
+
const U = !A.current;
|
|
75
|
+
if (n.target === n.currentTarget && U && !a) {
|
|
76
|
+
const P = new CustomEvent(h, X);
|
|
77
|
+
if (n.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
78
|
+
const _ = k().filter((f) => f.focusable), B = _.find((f) => f.active), Y = _.find((f) => f.id === l), H = [B, Y, ..._].filter(
|
|
79
79
|
Boolean
|
|
80
80
|
).map((f) => f.ref.current);
|
|
81
|
-
|
|
81
|
+
M(H, w);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
A.current = !1;
|
|
85
85
|
}),
|
|
86
86
|
onBlur: p(e.onBlur, () => i(!1))
|
|
87
87
|
}
|
|
@@ -100,15 +100,15 @@ var te = s.forwardRef((e, r) => {
|
|
|
100
100
|
return s.useEffect(() => {
|
|
101
101
|
if (o)
|
|
102
102
|
return v(), () => I();
|
|
103
|
-
}, [o, v, I]), /* @__PURE__ */ d
|
|
104
|
-
|
|
103
|
+
}, [o, v, I]), /* @__PURE__ */ d(
|
|
104
|
+
y.ItemSlot,
|
|
105
105
|
{
|
|
106
106
|
scope: c,
|
|
107
107
|
id: m,
|
|
108
108
|
focusable: o,
|
|
109
109
|
active: F,
|
|
110
|
-
children: /* @__PURE__ */ d
|
|
111
|
-
|
|
110
|
+
children: /* @__PURE__ */ d(
|
|
111
|
+
x.span,
|
|
112
112
|
{
|
|
113
113
|
tabIndex: w ? 0 : -1,
|
|
114
114
|
"data-orientation": u.orientation,
|
|
@@ -135,7 +135,7 @@ var te = s.forwardRef((e, r) => {
|
|
|
135
135
|
const i = a.indexOf(t.currentTarget);
|
|
136
136
|
a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
|
|
137
137
|
}
|
|
138
|
-
setTimeout(() =>
|
|
138
|
+
setTimeout(() => M(a));
|
|
139
139
|
}
|
|
140
140
|
})
|
|
141
141
|
}
|
|
@@ -163,7 +163,7 @@ function se(e, r, c) {
|
|
|
163
163
|
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
164
164
|
return re[o];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function M(e, r = !1) {
|
|
167
167
|
const c = document.activeElement;
|
|
168
168
|
for (const o of e)
|
|
169
169
|
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|