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,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import s from "react";
|
|
3
3
|
import { createContextScope as X } from "../../react-context/dist/index.js";
|
|
4
4
|
import { createCollection as Z } from "../../react-collection/dist/index.js";
|
|
5
5
|
import { useComposedRefs as $ } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { composeEventHandlers as ee } from "../../primitive/dist/index.js";
|
|
7
|
-
import { useControllableState as
|
|
8
|
-
import { Primitive as
|
|
9
|
-
import { createCollapsibleScope as
|
|
7
|
+
import { useControllableState as M } from "../../react-use-controllable-state/dist/index.js";
|
|
8
|
+
import { Primitive as V } from "../../react-primitive/dist/index.js";
|
|
9
|
+
import { createCollapsibleScope as H, Root as oe, Trigger as re, Content as te } from "../../react-collapsible/dist/index.js";
|
|
10
10
|
import { useId as ne } from "../../react-id/dist/index.js";
|
|
11
11
|
import { useDirection as ce } from "../../react-direction/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
var f = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
]),
|
|
12
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
13
|
+
var f = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [y, ae, le] = Z(f), [b, Pe] = X(f, [
|
|
14
|
+
le,
|
|
15
|
+
H
|
|
16
|
+
]), E = H(), K = s.forwardRef(
|
|
17
17
|
(o, c) => {
|
|
18
18
|
const { type: e, ...t } = o, i = t, r = t;
|
|
19
|
-
return /* @__PURE__ */ n
|
|
19
|
+
return /* @__PURE__ */ n(y.Provider, { scope: o.__scopeAccordion, children: e === "multiple" ? /* @__PURE__ */ n(fe, { ...r, ref: c }) : /* @__PURE__ */ n(pe, { ...i, ref: c }) });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
|
|
23
|
-
var [
|
|
22
|
+
K.displayName = f;
|
|
23
|
+
var [L, se] = b(f), [z, de] = b(
|
|
24
24
|
f,
|
|
25
25
|
{ collapsible: !1 }
|
|
26
|
-
), pe =
|
|
26
|
+
), pe = s.forwardRef(
|
|
27
27
|
(o, c) => {
|
|
28
28
|
const {
|
|
29
29
|
value: e,
|
|
@@ -32,125 +32,125 @@ var [K, le] = g(f), [L, de] = g(
|
|
|
32
32
|
},
|
|
33
33
|
collapsible: r = !1,
|
|
34
34
|
...a
|
|
35
|
-
} = o, [
|
|
35
|
+
} = o, [l, d] = M({
|
|
36
36
|
prop: e,
|
|
37
37
|
defaultProp: t,
|
|
38
38
|
onChange: i
|
|
39
39
|
});
|
|
40
|
-
return /* @__PURE__ */ n
|
|
41
|
-
|
|
40
|
+
return /* @__PURE__ */ n(
|
|
41
|
+
L,
|
|
42
42
|
{
|
|
43
43
|
scope: o.__scopeAccordion,
|
|
44
|
-
value:
|
|
44
|
+
value: l ? [l] : [],
|
|
45
45
|
onItemOpen: d,
|
|
46
|
-
onItemClose:
|
|
47
|
-
children: /* @__PURE__ */ n
|
|
46
|
+
onItemClose: s.useCallback(() => r && d(""), [r, d]),
|
|
47
|
+
children: /* @__PURE__ */ n(z, { scope: o.__scopeAccordion, collapsible: r, children: /* @__PURE__ */ n(G, { ...a, ref: c }) })
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
), fe =
|
|
51
|
+
), fe = s.forwardRef((o, c) => {
|
|
52
52
|
const {
|
|
53
53
|
value: e,
|
|
54
54
|
defaultValue: t,
|
|
55
55
|
onValueChange: i = () => {
|
|
56
56
|
},
|
|
57
57
|
...r
|
|
58
|
-
} = o, [a = [],
|
|
58
|
+
} = o, [a = [], l] = M({
|
|
59
59
|
prop: e,
|
|
60
60
|
defaultProp: t,
|
|
61
61
|
onChange: i
|
|
62
|
-
}), d =
|
|
63
|
-
(v) =>
|
|
64
|
-
[
|
|
65
|
-
), m =
|
|
66
|
-
(v) =>
|
|
67
|
-
[
|
|
62
|
+
}), d = s.useCallback(
|
|
63
|
+
(v) => l((u = []) => [...u, v]),
|
|
64
|
+
[l]
|
|
65
|
+
), m = s.useCallback(
|
|
66
|
+
(v) => l((u = []) => u.filter((h) => h !== v)),
|
|
67
|
+
[l]
|
|
68
68
|
);
|
|
69
|
-
return /* @__PURE__ */ n
|
|
70
|
-
|
|
69
|
+
return /* @__PURE__ */ n(
|
|
70
|
+
L,
|
|
71
71
|
{
|
|
72
72
|
scope: o.__scopeAccordion,
|
|
73
73
|
value: a,
|
|
74
74
|
onItemOpen: d,
|
|
75
75
|
onItemClose: m,
|
|
76
|
-
children: /* @__PURE__ */ n
|
|
76
|
+
children: /* @__PURE__ */ n(z, { scope: o.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ n(G, { ...r, ref: c }) })
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
|
-
}), [ue,
|
|
79
|
+
}), [ue, I] = b(f), G = s.forwardRef(
|
|
80
80
|
(o, c) => {
|
|
81
|
-
const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...a } = o,
|
|
82
|
-
var
|
|
81
|
+
const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...a } = o, l = s.useRef(null), d = $(l, c), m = ae(e), u = ce(i) === "ltr", h = ee(o.onKeyDown, (A) => {
|
|
82
|
+
var O;
|
|
83
83
|
if (!ie.includes(A.key)) return;
|
|
84
|
-
const Q = A.target,
|
|
85
|
-
var
|
|
86
|
-
return !((
|
|
87
|
-
}), C =
|
|
84
|
+
const Q = A.target, x = m().filter((N) => {
|
|
85
|
+
var T;
|
|
86
|
+
return !((T = N.ref.current) != null && T.disabled);
|
|
87
|
+
}), C = x.findIndex((N) => N.ref.current === Q), D = x.length;
|
|
88
88
|
if (C === -1) return;
|
|
89
89
|
A.preventDefault();
|
|
90
90
|
let p = C;
|
|
91
|
-
const _ = 0,
|
|
92
|
-
p = C + 1, p >
|
|
91
|
+
const _ = 0, w = D - 1, R = () => {
|
|
92
|
+
p = C + 1, p > w && (p = _);
|
|
93
93
|
}, P = () => {
|
|
94
|
-
p = C - 1, p < _ && (p =
|
|
94
|
+
p = C - 1, p < _ && (p = w);
|
|
95
95
|
};
|
|
96
96
|
switch (A.key) {
|
|
97
97
|
case "Home":
|
|
98
98
|
p = _;
|
|
99
99
|
break;
|
|
100
100
|
case "End":
|
|
101
|
-
p =
|
|
101
|
+
p = w;
|
|
102
102
|
break;
|
|
103
103
|
case "ArrowRight":
|
|
104
|
-
r === "horizontal" && (u ?
|
|
104
|
+
r === "horizontal" && (u ? R() : P());
|
|
105
105
|
break;
|
|
106
106
|
case "ArrowDown":
|
|
107
|
-
r === "vertical" &&
|
|
107
|
+
r === "vertical" && R();
|
|
108
108
|
break;
|
|
109
109
|
case "ArrowLeft":
|
|
110
|
-
r === "horizontal" && (u ? P() :
|
|
110
|
+
r === "horizontal" && (u ? P() : R());
|
|
111
111
|
break;
|
|
112
112
|
case "ArrowUp":
|
|
113
113
|
r === "vertical" && P();
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
|
-
const W = p %
|
|
117
|
-
(
|
|
116
|
+
const W = p % D;
|
|
117
|
+
(O = x[W].ref.current) == null || O.focus();
|
|
118
118
|
});
|
|
119
|
-
return /* @__PURE__ */ n
|
|
119
|
+
return /* @__PURE__ */ n(
|
|
120
120
|
ue,
|
|
121
121
|
{
|
|
122
122
|
scope: e,
|
|
123
123
|
disabled: t,
|
|
124
124
|
direction: i,
|
|
125
125
|
orientation: r,
|
|
126
|
-
children: /* @__PURE__ */ n
|
|
127
|
-
|
|
126
|
+
children: /* @__PURE__ */ n(y.Slot, { scope: e, children: /* @__PURE__ */ n(
|
|
127
|
+
V.div,
|
|
128
128
|
{
|
|
129
129
|
...a,
|
|
130
130
|
"data-orientation": r,
|
|
131
131
|
ref: d,
|
|
132
|
-
onKeyDown: t ? void 0 :
|
|
132
|
+
onKeyDown: t ? void 0 : h
|
|
133
133
|
}
|
|
134
134
|
) })
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
|
-
),
|
|
138
|
+
), g = "AccordionItem", [me, k] = b(g), U = s.forwardRef(
|
|
139
139
|
(o, c) => {
|
|
140
|
-
const { __scopeAccordion: e, value: t, ...i } = o, r =
|
|
141
|
-
return /* @__PURE__ */ n
|
|
140
|
+
const { __scopeAccordion: e, value: t, ...i } = o, r = I(g, e), a = se(g, e), l = E(e), d = ne(), m = t && a.value.includes(t) || !1, v = r.disabled || o.disabled;
|
|
141
|
+
return /* @__PURE__ */ n(
|
|
142
142
|
me,
|
|
143
143
|
{
|
|
144
144
|
scope: e,
|
|
145
145
|
open: m,
|
|
146
146
|
disabled: v,
|
|
147
147
|
triggerId: d,
|
|
148
|
-
children: /* @__PURE__ */ n
|
|
148
|
+
children: /* @__PURE__ */ n(
|
|
149
149
|
oe,
|
|
150
150
|
{
|
|
151
151
|
"data-orientation": r.orientation,
|
|
152
152
|
"data-state": J(m),
|
|
153
|
-
...
|
|
153
|
+
...l,
|
|
154
154
|
...i,
|
|
155
155
|
ref: c,
|
|
156
156
|
disabled: v,
|
|
@@ -164,12 +164,12 @@ var [K, le] = g(f), [L, de] = g(
|
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
|
-
|
|
168
|
-
var
|
|
167
|
+
U.displayName = g;
|
|
168
|
+
var j = "AccordionHeader", Y = s.forwardRef(
|
|
169
169
|
(o, c) => {
|
|
170
|
-
const { __scopeAccordion: e, ...t } = o, i =
|
|
171
|
-
return /* @__PURE__ */ n
|
|
172
|
-
|
|
170
|
+
const { __scopeAccordion: e, ...t } = o, i = I(f, e), r = k(j, e);
|
|
171
|
+
return /* @__PURE__ */ n(
|
|
172
|
+
V.h3,
|
|
173
173
|
{
|
|
174
174
|
"data-orientation": i.orientation,
|
|
175
175
|
"data-state": J(r.open),
|
|
@@ -180,28 +180,28 @@ var U = "AccordionHeader", Y = l.forwardRef(
|
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
|
-
Y.displayName =
|
|
184
|
-
var
|
|
183
|
+
Y.displayName = j;
|
|
184
|
+
var S = "AccordionTrigger", q = s.forwardRef(
|
|
185
185
|
(o, c) => {
|
|
186
|
-
const { __scopeAccordion: e, ...t } = o, i =
|
|
187
|
-
return /* @__PURE__ */ n
|
|
186
|
+
const { __scopeAccordion: e, ...t } = o, i = I(f, e), r = k(S, e), a = de(S, e), l = E(e);
|
|
187
|
+
return /* @__PURE__ */ n(y.ItemSlot, { scope: e, children: /* @__PURE__ */ n(
|
|
188
188
|
re,
|
|
189
189
|
{
|
|
190
190
|
"aria-disabled": r.open && !a.collapsible || void 0,
|
|
191
191
|
"data-orientation": i.orientation,
|
|
192
192
|
id: r.triggerId,
|
|
193
|
-
...
|
|
193
|
+
...l,
|
|
194
194
|
...t,
|
|
195
195
|
ref: c
|
|
196
196
|
}
|
|
197
197
|
) });
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
|
-
q.displayName =
|
|
201
|
-
var B = "AccordionContent", F =
|
|
200
|
+
q.displayName = S;
|
|
201
|
+
var B = "AccordionContent", F = s.forwardRef(
|
|
202
202
|
(o, c) => {
|
|
203
|
-
const { __scopeAccordion: e, ...t } = o, i =
|
|
204
|
-
return /* @__PURE__ */ n
|
|
203
|
+
const { __scopeAccordion: e, ...t } = o, i = I(f, e), r = k(B, e), a = E(e);
|
|
204
|
+
return /* @__PURE__ */ n(
|
|
205
205
|
te,
|
|
206
206
|
{
|
|
207
207
|
role: "region",
|
|
@@ -223,17 +223,17 @@ F.displayName = B;
|
|
|
223
223
|
function J(o) {
|
|
224
224
|
return o ? "open" : "closed";
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var Ne = K, Se = U, ye = Y, Ee = q, ke = F;
|
|
227
227
|
export {
|
|
228
|
-
|
|
228
|
+
K as Accordion,
|
|
229
229
|
F as AccordionContent,
|
|
230
230
|
Y as AccordionHeader,
|
|
231
|
-
|
|
231
|
+
U as AccordionItem,
|
|
232
232
|
q as AccordionTrigger,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
233
|
+
ke as Content,
|
|
234
|
+
ye as Header,
|
|
235
|
+
Se as Item,
|
|
236
|
+
Ne as Root,
|
|
237
|
+
Ee as Trigger,
|
|
238
238
|
Pe as createAccordionScope
|
|
239
239
|
};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { createContextScope as
|
|
3
|
+
import { createContextScope as w } from "../../react-context/dist/index.js";
|
|
4
4
|
import { useComposedRefs as A } from "../../react-compose-refs/dist/index.js";
|
|
5
|
-
import { createDialogScope as v, Root as
|
|
5
|
+
import { createDialogScope as v, Root as M, Trigger as x, WarningProvider as I, Content as L, Title as $, Description as F, Close as f, Portal as G, Overlay as j } from "../../react-dialog/dist/index.js";
|
|
6
6
|
import { composeEventHandlers as W } from "../../primitive/dist/index.js";
|
|
7
7
|
import { createSlottable as Y } from "../../react-slot/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
var D = "AlertDialog", [
|
|
8
|
+
import { jsx as i, jsxs as q } from "react/jsx-runtime";
|
|
9
|
+
var D = "AlertDialog", [B, ae] = w(D, [
|
|
10
10
|
v
|
|
11
|
-
]),
|
|
12
|
-
const { __scopeAlertDialog: o, ...r } = e, t =
|
|
13
|
-
return /* @__PURE__ */ i
|
|
11
|
+
]), n = v(), m = (e) => {
|
|
12
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
13
|
+
return /* @__PURE__ */ i(M, { ...t, ...r, modal: !0 });
|
|
14
14
|
};
|
|
15
15
|
m.displayName = D;
|
|
16
|
-
var
|
|
16
|
+
var H = "AlertDialogTrigger", y = l.forwardRef(
|
|
17
17
|
(e, o) => {
|
|
18
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
19
|
-
return /* @__PURE__ */ i
|
|
18
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
19
|
+
return /* @__PURE__ */ i(x, { ...a, ...t, ref: o });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
y.displayName =
|
|
23
|
-
var
|
|
24
|
-
const { __scopeAlertDialog: o, ...r } = e, t =
|
|
25
|
-
return /* @__PURE__ */ i
|
|
22
|
+
y.displayName = H;
|
|
23
|
+
var V = "AlertDialogPortal", _ = (e) => {
|
|
24
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
25
|
+
return /* @__PURE__ */ i(G, { ...t, ...r });
|
|
26
26
|
};
|
|
27
|
-
_.displayName =
|
|
28
|
-
var
|
|
27
|
+
_.displayName = V;
|
|
28
|
+
var k = "AlertDialogOverlay", N = l.forwardRef(
|
|
29
29
|
(e, o) => {
|
|
30
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
31
|
-
return /* @__PURE__ */ i
|
|
30
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
31
|
+
return /* @__PURE__ */ i(j, { ...a, ...t, ref: o });
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
N.displayName =
|
|
35
|
-
var
|
|
34
|
+
N.displayName = k;
|
|
35
|
+
var s = "AlertDialogContent", [z, J] = B(s), K = Y("AlertDialogContent"), R = l.forwardRef(
|
|
36
36
|
(e, o) => {
|
|
37
|
-
const { __scopeAlertDialog: r, children: t, ...a } = e, g =
|
|
38
|
-
return /* @__PURE__ */ i
|
|
39
|
-
|
|
37
|
+
const { __scopeAlertDialog: r, children: t, ...a } = e, g = n(r), p = l.useRef(null), b = A(o, p), d = l.useRef(null);
|
|
38
|
+
return /* @__PURE__ */ i(
|
|
39
|
+
I,
|
|
40
40
|
{
|
|
41
|
-
contentName:
|
|
42
|
-
titleName:
|
|
41
|
+
contentName: s,
|
|
42
|
+
titleName: C,
|
|
43
43
|
docsSlug: "alert-dialog",
|
|
44
|
-
children: /* @__PURE__ */ i
|
|
45
|
-
|
|
44
|
+
children: /* @__PURE__ */ i(z, { scope: r, cancelRef: d, children: /* @__PURE__ */ q(
|
|
45
|
+
L,
|
|
46
46
|
{
|
|
47
47
|
role: "alertdialog",
|
|
48
48
|
...g,
|
|
49
49
|
...a,
|
|
50
|
-
ref:
|
|
50
|
+
ref: b,
|
|
51
51
|
onOpenAutoFocus: W(a.onOpenAutoFocus, (c) => {
|
|
52
52
|
var u;
|
|
53
53
|
c.preventDefault(), (u = d.current) == null || u.focus({ preventScroll: !0 });
|
|
@@ -55,8 +55,8 @@ var n = "AlertDialogContent", [k, z] = q(n), J = Y("AlertDialogContent"), R = l.
|
|
|
55
55
|
onPointerDownOutside: (c) => c.preventDefault(),
|
|
56
56
|
onInteractOutside: (c) => c.preventDefault(),
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */ i
|
|
59
|
-
/* @__PURE__ */ i
|
|
58
|
+
/* @__PURE__ */ i(K, { children: t }),
|
|
59
|
+
/* @__PURE__ */ i(U, { contentRef: p })
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
) })
|
|
@@ -64,39 +64,39 @@ var n = "AlertDialogContent", [k, z] = q(n), J = Y("AlertDialogContent"), R = l.
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
R.displayName =
|
|
68
|
-
var
|
|
67
|
+
R.displayName = s;
|
|
68
|
+
var C = "AlertDialogTitle", h = l.forwardRef(
|
|
69
69
|
(e, o) => {
|
|
70
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
71
|
-
return /* @__PURE__ */ i
|
|
70
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
71
|
+
return /* @__PURE__ */ i($, { ...a, ...t, ref: o });
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
|
|
75
|
-
var E = "AlertDialogDescription",
|
|
76
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
77
|
-
return /* @__PURE__ */ i
|
|
74
|
+
h.displayName = C;
|
|
75
|
+
var E = "AlertDialogDescription", S = l.forwardRef((e, o) => {
|
|
76
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
77
|
+
return /* @__PURE__ */ i(F, { ...a, ...t, ref: o });
|
|
78
78
|
});
|
|
79
|
-
|
|
80
|
-
var
|
|
79
|
+
S.displayName = E;
|
|
80
|
+
var Q = "AlertDialogAction", P = l.forwardRef(
|
|
81
81
|
(e, o) => {
|
|
82
|
-
const { __scopeAlertDialog: r, ...t } = e, a =
|
|
83
|
-
return /* @__PURE__ */ i
|
|
82
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
83
|
+
return /* @__PURE__ */ i(f, { ...a, ...t, ref: o });
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
-
|
|
87
|
-
var
|
|
86
|
+
P.displayName = Q;
|
|
87
|
+
var T = "AlertDialogCancel", O = l.forwardRef(
|
|
88
88
|
(e, o) => {
|
|
89
|
-
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } =
|
|
90
|
-
return /* @__PURE__ */ i
|
|
89
|
+
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = J(T, r), g = n(r), p = A(o, a);
|
|
90
|
+
return /* @__PURE__ */ i(f, { ...g, ...t, ref: p });
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
const o = `\`${
|
|
93
|
+
O.displayName = T;
|
|
94
|
+
var U = ({ contentRef: e }) => {
|
|
95
|
+
const o = `\`${s}\` requires a description for the component to be accessible for screen reader users.
|
|
96
96
|
|
|
97
|
-
You can add a description to the \`${
|
|
97
|
+
You can add a description to the \`${s}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
98
98
|
|
|
99
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${
|
|
99
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${s}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
100
100
|
|
|
101
101
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
102
102
|
return l.useEffect(() => {
|
|
@@ -105,25 +105,25 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
105
105
|
(t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
|
|
106
106
|
) || console.warn(o);
|
|
107
107
|
}, [o, e]), null;
|
|
108
|
-
},
|
|
108
|
+
}, ie = m, le = y, ne = _, se = N, ce = R, pe = P, ge = O, de = h, ue = S;
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
pe as Action,
|
|
111
111
|
m as AlertDialog,
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
P as AlertDialogAction,
|
|
113
|
+
O as AlertDialogCancel,
|
|
114
114
|
R as AlertDialogContent,
|
|
115
|
-
|
|
115
|
+
S as AlertDialogDescription,
|
|
116
116
|
N as AlertDialogOverlay,
|
|
117
117
|
_ as AlertDialogPortal,
|
|
118
|
-
|
|
118
|
+
h as AlertDialogTitle,
|
|
119
119
|
y as AlertDialogTrigger,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
ge as Cancel,
|
|
121
|
+
ce as Content,
|
|
122
|
+
ue as Description,
|
|
123
123
|
se as Overlay,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
ne as Portal,
|
|
125
|
+
ie as Root,
|
|
126
|
+
de as Title,
|
|
127
|
+
le as Trigger,
|
|
128
|
+
ae as createAlertDialogScope
|
|
129
129
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { Primitive as p } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
5
5
|
var v = "Arrow", e = m.forwardRef((r, i) => {
|
|
6
|
-
const { children: t, width:
|
|
7
|
-
return /* @__PURE__ */ o
|
|
6
|
+
const { children: t, width: a = 10, height: s = 5, ...n } = r;
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
8
|
p.svg,
|
|
9
9
|
{
|
|
10
10
|
...n,
|
|
11
11
|
ref: i,
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
12
|
+
width: a,
|
|
13
|
+
height: s,
|
|
14
14
|
viewBox: "0 0 30 10",
|
|
15
15
|
preserveAspectRatio: "none",
|
|
16
|
-
children: r.asChild ? t : /* @__PURE__ */ o
|
|
16
|
+
children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { Primitive as
|
|
4
|
-
import {
|
|
5
|
-
var
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Primitive as d } from "../../react-primitive/dist/index.js";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
var m = "AspectRatio", o = s.forwardRef(
|
|
6
6
|
(i, r) => {
|
|
7
|
-
const { ratio: a = 1 / 1, style: e, ...
|
|
8
|
-
return /* @__PURE__ */ t
|
|
7
|
+
const { ratio: a = 1 / 1, style: e, ...p } = i;
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
style: {
|
|
@@ -16,10 +16,10 @@ var d = "AspectRatio", o = p.forwardRef(
|
|
|
16
16
|
paddingBottom: `${100 / a}%`
|
|
17
17
|
},
|
|
18
18
|
"data-radix-aspect-ratio-wrapper": "",
|
|
19
|
-
children: /* @__PURE__ */ t
|
|
20
|
-
|
|
19
|
+
children: /* @__PURE__ */ t(
|
|
20
|
+
d.div,
|
|
21
21
|
{
|
|
22
|
-
...
|
|
22
|
+
...p,
|
|
23
23
|
ref: r,
|
|
24
24
|
style: {
|
|
25
25
|
...e,
|
|
@@ -36,9 +36,9 @@ var d = "AspectRatio", o = p.forwardRef(
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
o.displayName =
|
|
40
|
-
var
|
|
39
|
+
o.displayName = m;
|
|
40
|
+
var f = o;
|
|
41
41
|
export {
|
|
42
42
|
o as AspectRatio,
|
|
43
|
-
|
|
43
|
+
f as Root
|
|
44
44
|
};
|