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,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { composeEventHandlers as p } from "../../primitive/dist/index.js";
|
|
4
|
-
import { useComposedRefs as
|
|
5
|
-
import { createContextScope as
|
|
6
|
-
import { useId as
|
|
7
|
-
import { useControllableState as
|
|
8
|
-
import { DismissableLayer as
|
|
9
|
-
import { FocusScope as
|
|
10
|
-
import { Portal as
|
|
11
|
-
import { Presence as
|
|
4
|
+
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
5
|
+
import { createContextScope as V, createContext as q } from "../../react-context/dist/index.js";
|
|
6
|
+
import { useId as C } from "../../react-id/dist/index.js";
|
|
7
|
+
import { useControllableState as K } from "../../react-use-controllable-state/dist/index.js";
|
|
8
|
+
import { DismissableLayer as U } from "../../react-dismissable-layer/dist/index.js";
|
|
9
|
+
import { FocusScope as Y } from "../../react-focus-scope/dist/index.js";
|
|
10
|
+
import { Portal as Z } from "../../react-portal/dist/index.js";
|
|
11
|
+
import { Presence as _ } from "../../react-presence/dist/index.js";
|
|
12
12
|
import { Primitive as m } from "../../react-primitive/dist/index.js";
|
|
13
|
-
import { useFocusGuards as
|
|
14
|
-
import
|
|
15
|
-
import { hideOthers as
|
|
16
|
-
import { createSlot as
|
|
17
|
-
import {
|
|
18
|
-
var
|
|
13
|
+
import { useFocusGuards as z } from "../../react-focus-guards/dist/index.js";
|
|
14
|
+
import J from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
15
|
+
import { hideOthers as Q } from "../../../aria-hidden/dist/es2015/index.js";
|
|
16
|
+
import { createSlot as X } from "../../react-slot/dist/index.js";
|
|
17
|
+
import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
|
|
18
|
+
var h = "Dialog", [I, Ne] = V(h), [ee, u] = I(h), x = (e) => {
|
|
19
19
|
const {
|
|
20
20
|
__scopeDialog: o,
|
|
21
21
|
children: n,
|
|
@@ -23,40 +23,40 @@ var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
|
|
23
23
|
defaultOpen: r,
|
|
24
24
|
onOpenChange: t,
|
|
25
25
|
modal: c = !0
|
|
26
|
-
} = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] =
|
|
26
|
+
} = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = K({
|
|
27
27
|
prop: a,
|
|
28
28
|
defaultProp: r,
|
|
29
29
|
onChange: t
|
|
30
30
|
});
|
|
31
|
-
return /* @__PURE__ */ i
|
|
32
|
-
|
|
31
|
+
return /* @__PURE__ */ i(
|
|
32
|
+
ee,
|
|
33
33
|
{
|
|
34
34
|
scope: o,
|
|
35
35
|
triggerRef: l,
|
|
36
36
|
contentRef: d,
|
|
37
|
-
contentId:
|
|
38
|
-
titleId:
|
|
39
|
-
descriptionId:
|
|
37
|
+
contentId: C(),
|
|
38
|
+
titleId: C(),
|
|
39
|
+
descriptionId: C(),
|
|
40
40
|
open: g,
|
|
41
41
|
onOpenChange: v,
|
|
42
|
-
onOpenToggle: s.useCallback(() => v((
|
|
42
|
+
onOpenToggle: s.useCallback(() => v((H) => !H), [v]),
|
|
43
43
|
modal: c,
|
|
44
44
|
children: n
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
};
|
|
48
|
-
|
|
49
|
-
var
|
|
48
|
+
x.displayName = h;
|
|
49
|
+
var A = "DialogTrigger", T = s.forwardRef(
|
|
50
50
|
(e, o) => {
|
|
51
|
-
const { __scopeDialog: n, ...a } = e, r = u(
|
|
52
|
-
return /* @__PURE__ */ i
|
|
51
|
+
const { __scopeDialog: n, ...a } = e, r = u(A, n), t = R(o, r.triggerRef);
|
|
52
|
+
return /* @__PURE__ */ i(
|
|
53
53
|
m.button,
|
|
54
54
|
{
|
|
55
55
|
type: "button",
|
|
56
56
|
"aria-haspopup": "dialog",
|
|
57
57
|
"aria-expanded": r.open,
|
|
58
58
|
"aria-controls": r.contentId,
|
|
59
|
-
"data-state":
|
|
59
|
+
"data-state": N(r.open),
|
|
60
60
|
...a,
|
|
61
61
|
ref: t,
|
|
62
62
|
onClick: p(e.onClick, r.onOpenToggle)
|
|
@@ -64,31 +64,31 @@ var O = "DialogTrigger", I = s.forwardRef(
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
|
|
68
|
-
var
|
|
67
|
+
T.displayName = A;
|
|
68
|
+
var E = "DialogPortal", [te, b] = I(E, {
|
|
69
69
|
forceMount: void 0
|
|
70
|
-
}),
|
|
71
|
-
const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(
|
|
72
|
-
return /* @__PURE__ */ i
|
|
70
|
+
}), M = (e) => {
|
|
71
|
+
const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(E, o);
|
|
72
|
+
return /* @__PURE__ */ i(te, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i(_, { present: n || t.open, children: /* @__PURE__ */ i(Z, { asChild: !0, container: r, children: c }) })) });
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
var D = "DialogOverlay",
|
|
74
|
+
M.displayName = E;
|
|
75
|
+
var D = "DialogOverlay", w = s.forwardRef(
|
|
76
76
|
(e, o) => {
|
|
77
|
-
const n =
|
|
78
|
-
return t.modal ? /* @__PURE__ */ i
|
|
77
|
+
const n = b(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
|
|
78
|
+
return t.modal ? /* @__PURE__ */ i(_, { present: a || t.open, children: /* @__PURE__ */ i(re, { ...r, ref: o }) }) : null;
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
|
|
82
|
-
var
|
|
81
|
+
w.displayName = D;
|
|
82
|
+
var oe = X("DialogOverlay.RemoveScroll"), re = s.forwardRef(
|
|
83
83
|
(e, o) => {
|
|
84
84
|
const { __scopeDialog: n, ...a } = e, r = u(D, n);
|
|
85
85
|
return (
|
|
86
86
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
87
87
|
// ie. when `Overlay` and `Content` are siblings
|
|
88
|
-
/* @__PURE__ */ i
|
|
88
|
+
/* @__PURE__ */ i(J, { as: oe, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
89
89
|
m.div,
|
|
90
90
|
{
|
|
91
|
-
"data-state":
|
|
91
|
+
"data-state": N(r.open),
|
|
92
92
|
...a,
|
|
93
93
|
ref: o,
|
|
94
94
|
style: { pointerEvents: "auto", ...a.style }
|
|
@@ -96,21 +96,21 @@ var ee = J("DialogOverlay.RemoveScroll"), te = s.forwardRef(
|
|
|
96
96
|
) })
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
|
-
), f = "DialogContent",
|
|
99
|
+
), f = "DialogContent", S = s.forwardRef(
|
|
100
100
|
(e, o) => {
|
|
101
|
-
const n =
|
|
102
|
-
return /* @__PURE__ */ i
|
|
101
|
+
const n = b(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
|
|
102
|
+
return /* @__PURE__ */ i(_, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(ne, { ...r, ref: o }) : /* @__PURE__ */ i(ae, { ...r, ref: o }) });
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
|
-
|
|
106
|
-
var
|
|
105
|
+
S.displayName = f;
|
|
106
|
+
var ne = s.forwardRef(
|
|
107
107
|
(e, o) => {
|
|
108
|
-
const n = u(f, e.__scopeDialog), a = s.useRef(null), r =
|
|
108
|
+
const n = u(f, e.__scopeDialog), a = s.useRef(null), r = R(o, n.contentRef, a);
|
|
109
109
|
return s.useEffect(() => {
|
|
110
110
|
const t = a.current;
|
|
111
|
-
if (t) return
|
|
112
|
-
}, []), /* @__PURE__ */ i
|
|
113
|
-
|
|
111
|
+
if (t) return Q(t);
|
|
112
|
+
}, []), /* @__PURE__ */ i(
|
|
113
|
+
F,
|
|
114
114
|
{
|
|
115
115
|
...e,
|
|
116
116
|
ref: r,
|
|
@@ -131,11 +131,11 @@ var oe = s.forwardRef(
|
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
),
|
|
134
|
+
), ae = s.forwardRef(
|
|
135
135
|
(e, o) => {
|
|
136
136
|
const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
137
|
-
return /* @__PURE__ */ i
|
|
138
|
-
|
|
137
|
+
return /* @__PURE__ */ i(
|
|
138
|
+
F,
|
|
139
139
|
{
|
|
140
140
|
...e,
|
|
141
141
|
ref: o,
|
|
@@ -154,26 +154,26 @@ var oe = s.forwardRef(
|
|
|
154
154
|
}
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
|
-
),
|
|
157
|
+
), F = s.forwardRef(
|
|
158
158
|
(e, o) => {
|
|
159
|
-
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g =
|
|
160
|
-
return
|
|
161
|
-
/* @__PURE__ */ i
|
|
162
|
-
|
|
159
|
+
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = R(o, d);
|
|
160
|
+
return z(), /* @__PURE__ */ P(O, { children: [
|
|
161
|
+
/* @__PURE__ */ i(
|
|
162
|
+
Y,
|
|
163
163
|
{
|
|
164
164
|
asChild: !0,
|
|
165
165
|
loop: !0,
|
|
166
166
|
trapped: a,
|
|
167
167
|
onMountAutoFocus: r,
|
|
168
168
|
onUnmountAutoFocus: t,
|
|
169
|
-
children: /* @__PURE__ */ i
|
|
170
|
-
|
|
169
|
+
children: /* @__PURE__ */ i(
|
|
170
|
+
U,
|
|
171
171
|
{
|
|
172
172
|
role: "dialog",
|
|
173
173
|
id: l.contentId,
|
|
174
174
|
"aria-describedby": l.descriptionId,
|
|
175
175
|
"aria-labelledby": l.titleId,
|
|
176
|
-
"data-state":
|
|
176
|
+
"data-state": N(l.open),
|
|
177
177
|
...c,
|
|
178
178
|
ref: g,
|
|
179
179
|
onDismiss: () => l.onOpenChange(!1)
|
|
@@ -181,30 +181,30 @@ var oe = s.forwardRef(
|
|
|
181
181
|
)
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */ i
|
|
186
|
-
/* @__PURE__ */ i
|
|
184
|
+
/* @__PURE__ */ P(O, { children: [
|
|
185
|
+
/* @__PURE__ */ i(ie, { titleId: l.titleId }),
|
|
186
|
+
/* @__PURE__ */ i(ce, { contentRef: d, descriptionId: l.descriptionId })
|
|
187
187
|
] })
|
|
188
188
|
] });
|
|
189
189
|
}
|
|
190
|
-
),
|
|
190
|
+
), y = "DialogTitle", W = s.forwardRef(
|
|
191
191
|
(e, o) => {
|
|
192
|
-
const { __scopeDialog: n, ...a } = e, r = u(
|
|
193
|
-
return /* @__PURE__ */ i
|
|
192
|
+
const { __scopeDialog: n, ...a } = e, r = u(y, n);
|
|
193
|
+
return /* @__PURE__ */ i(m.h2, { id: r.titleId, ...a, ref: o });
|
|
194
194
|
}
|
|
195
195
|
);
|
|
196
|
-
|
|
197
|
-
var
|
|
196
|
+
W.displayName = y;
|
|
197
|
+
var k = "DialogDescription", G = s.forwardRef(
|
|
198
198
|
(e, o) => {
|
|
199
|
-
const { __scopeDialog: n, ...a } = e, r = u(
|
|
200
|
-
return /* @__PURE__ */ i
|
|
199
|
+
const { __scopeDialog: n, ...a } = e, r = u(k, n);
|
|
200
|
+
return /* @__PURE__ */ i(m.p, { id: r.descriptionId, ...a, ref: o });
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
|
|
204
|
-
var
|
|
203
|
+
G.displayName = k;
|
|
204
|
+
var L = "DialogClose", $ = s.forwardRef(
|
|
205
205
|
(e, o) => {
|
|
206
|
-
const { __scopeDialog: n, ...a } = e, r = u(
|
|
207
|
-
return /* @__PURE__ */ i
|
|
206
|
+
const { __scopeDialog: n, ...a } = e, r = u(L, n);
|
|
207
|
+
return /* @__PURE__ */ i(
|
|
208
208
|
m.button,
|
|
209
209
|
{
|
|
210
210
|
type: "button",
|
|
@@ -215,16 +215,16 @@ var W = "DialogClose", k = s.forwardRef(
|
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
|
-
|
|
219
|
-
function
|
|
218
|
+
$.displayName = L;
|
|
219
|
+
function N(e) {
|
|
220
220
|
return e ? "open" : "closed";
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var B = "DialogTitleWarning", [Pe, j] = q(B, {
|
|
223
223
|
contentName: f,
|
|
224
|
-
titleName:
|
|
224
|
+
titleName: y,
|
|
225
225
|
docsSlug: "dialog"
|
|
226
|
-
}),
|
|
227
|
-
const o =
|
|
226
|
+
}), ie = ({ titleId: e }) => {
|
|
227
|
+
const o = j(B), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
228
228
|
|
|
229
229
|
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
230
230
|
|
|
@@ -232,31 +232,31 @@ For more information, see https://radix-ui.com/primitives/docs/components/${o.do
|
|
|
232
232
|
return s.useEffect(() => {
|
|
233
233
|
e && (document.getElementById(e) || console.error(n));
|
|
234
234
|
}, [n, e]), null;
|
|
235
|
-
},
|
|
236
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
235
|
+
}, se = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: o }) => {
|
|
236
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j(se).contentName}}.`;
|
|
237
237
|
return s.useEffect(() => {
|
|
238
238
|
var t;
|
|
239
239
|
const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
240
240
|
o && r && (document.getElementById(o) || console.warn(a));
|
|
241
241
|
}, [a, e, o]), null;
|
|
242
|
-
},
|
|
242
|
+
}, Oe = x, Ie = T, xe = M, Ae = w, Te = S, be = W, Me = G, we = $;
|
|
243
243
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
244
|
+
we as Close,
|
|
245
|
+
Te as Content,
|
|
246
|
+
Me as Description,
|
|
247
|
+
x as Dialog,
|
|
248
|
+
$ as DialogClose,
|
|
249
|
+
S as DialogContent,
|
|
250
|
+
G as DialogDescription,
|
|
251
|
+
w as DialogOverlay,
|
|
252
|
+
M as DialogPortal,
|
|
253
|
+
W as DialogTitle,
|
|
254
|
+
T as DialogTrigger,
|
|
255
|
+
Ae as Overlay,
|
|
256
|
+
xe as Portal,
|
|
257
|
+
Oe as Root,
|
|
258
|
+
be as Title,
|
|
259
|
+
Ie as Trigger,
|
|
260
|
+
Pe as WarningProvider,
|
|
261
|
+
Ne as createDialogScope
|
|
262
262
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { composeEventHandlers as m } from "../../primitive/dist/index.js";
|
|
4
|
-
import { Primitive as
|
|
5
|
-
import { useComposedRefs as
|
|
4
|
+
import { Primitive as g, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.js";
|
|
5
|
+
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { useCallbackRef as w } from "../../react-use-callback-ref/dist/index.js";
|
|
7
7
|
import { useEscapeKeydown as U } from "../../react-use-escape-keydown/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
var
|
|
8
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
9
|
+
var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", L, B = n.createContext({
|
|
10
10
|
layers: /* @__PURE__ */ new Set(),
|
|
11
11
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12
12
|
branches: /* @__PURE__ */ new Set()
|
|
13
|
-
}),
|
|
13
|
+
}), j = n.forwardRef(
|
|
14
14
|
(r, e) => {
|
|
15
15
|
const {
|
|
16
16
|
disableOutsidePointerEvents: i = !1,
|
|
@@ -20,7 +20,7 @@ var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer
|
|
|
20
20
|
onInteractOutside: l,
|
|
21
21
|
onDismiss: d,
|
|
22
22
|
...v
|
|
23
|
-
} = r, c = n.useContext(
|
|
23
|
+
} = r, c = n.useContext(B), [u, S] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, F] = n.useState({}), W = R(e, (s) => S(s)), p = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = p.indexOf(A), b = u ? p.indexOf(u) : -1, I = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= N, _ = q((s) => {
|
|
24
24
|
const E = s.target, C = [...c.branches].some((h) => h.contains(E));
|
|
25
25
|
!P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
|
|
26
26
|
}, f), D = G((s) => {
|
|
@@ -38,9 +38,9 @@ var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer
|
|
|
38
38
|
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
|
|
39
39
|
}, [u, c]), n.useEffect(() => {
|
|
40
40
|
const s = () => F({});
|
|
41
|
-
return document.addEventListener(
|
|
42
|
-
}, []), /* @__PURE__ */
|
|
43
|
-
|
|
41
|
+
return document.addEventListener(y, s), () => document.removeEventListener(y, s);
|
|
42
|
+
}, []), /* @__PURE__ */ T(
|
|
43
|
+
g.div,
|
|
44
44
|
{
|
|
45
45
|
...v,
|
|
46
46
|
ref: W,
|
|
@@ -58,16 +58,16 @@ var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer
|
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
j.displayName = z;
|
|
62
62
|
var X = "DismissableLayerBranch", Y = n.forwardRef((r, e) => {
|
|
63
|
-
const i = n.useContext(
|
|
63
|
+
const i = n.useContext(B), o = n.useRef(null), t = R(e, o);
|
|
64
64
|
return n.useEffect(() => {
|
|
65
65
|
const a = o.current;
|
|
66
66
|
if (a)
|
|
67
67
|
return i.branches.add(a), () => {
|
|
68
68
|
i.branches.delete(a);
|
|
69
69
|
};
|
|
70
|
-
}, [i.branches]), /* @__PURE__ */
|
|
70
|
+
}, [i.branches]), /* @__PURE__ */ T(g.div, { ...r, ref: t });
|
|
71
71
|
});
|
|
72
72
|
Y.displayName = X;
|
|
73
73
|
function q(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -77,8 +77,8 @@ function q(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
77
77
|
const a = (d) => {
|
|
78
78
|
if (d.target && !o.current) {
|
|
79
79
|
let v = function() {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
x(
|
|
81
|
+
H,
|
|
82
82
|
i,
|
|
83
83
|
c,
|
|
84
84
|
{ discrete: !0 }
|
|
@@ -104,7 +104,7 @@ function G(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
104
104
|
const i = w(r), o = n.useRef(!1);
|
|
105
105
|
return n.useEffect(() => {
|
|
106
106
|
const t = (a) => {
|
|
107
|
-
a.target && !o.current &&
|
|
107
|
+
a.target && !o.current && x(M, i, { originalEvent: a }, {
|
|
108
108
|
discrete: !1
|
|
109
109
|
});
|
|
110
110
|
};
|
|
@@ -115,14 +115,14 @@ function G(r, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
function O() {
|
|
118
|
-
const r = new CustomEvent(
|
|
118
|
+
const r = new CustomEvent(y);
|
|
119
119
|
document.dispatchEvent(r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function x(r, e, i, { discrete: o }) {
|
|
122
122
|
const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
|
|
123
123
|
e && t.addEventListener(r, e, { once: !0 }), o ? k(t, a) : t.dispatchEvent(a);
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
j as DismissableLayer,
|
|
127
127
|
Y as DismissableLayerBranch
|
|
128
128
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { useComposedRefs as
|
|
3
|
+
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
4
4
|
import { Primitive as M } from "../../react-primitive/dist/index.js";
|
|
5
5
|
import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
7
7
|
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
|
|
8
8
|
const {
|
|
9
9
|
loop: t = !1,
|
|
@@ -11,7 +11,7 @@ var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N =
|
|
|
11
11
|
onMountAutoFocus: p,
|
|
12
12
|
onUnmountAutoFocus: L,
|
|
13
13
|
...g
|
|
14
|
-
} = e, [o,
|
|
14
|
+
} = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(n, (s) => U(s)), a = d.useRef({
|
|
15
15
|
paused: !1,
|
|
16
16
|
pause() {
|
|
17
17
|
this.paused = !0;
|
|
@@ -47,7 +47,7 @@ var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N =
|
|
|
47
47
|
const s = document.activeElement;
|
|
48
48
|
if (!o.contains(s)) {
|
|
49
49
|
const r = new CustomEvent(F, N);
|
|
50
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(
|
|
50
|
+
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
|
51
51
|
}
|
|
52
52
|
return () => {
|
|
53
53
|
o.removeEventListener(F, E), setTimeout(() => {
|
|
@@ -57,7 +57,7 @@ var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N =
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
}, [o, E, v, a]);
|
|
60
|
-
const
|
|
60
|
+
const P = d.useCallback(
|
|
61
61
|
(s) => {
|
|
62
62
|
if (!t && !u || a.paused) return;
|
|
63
63
|
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
|
@@ -68,7 +68,7 @@ var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N =
|
|
|
68
68
|
},
|
|
69
69
|
[t, u, a.paused]
|
|
70
70
|
);
|
|
71
|
-
return /* @__PURE__ */ _
|
|
71
|
+
return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
|
|
72
72
|
});
|
|
73
73
|
k.displayName = K;
|
|
74
74
|
function w(e, { select: n = !1 } = {}) {
|
|
@@ -112,8 +112,8 @@ function f(e, { select: n = !1 } = {}) {
|
|
|
112
112
|
e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
var S =
|
|
116
|
-
function
|
|
115
|
+
var S = V();
|
|
116
|
+
function V() {
|
|
117
117
|
let e = [];
|
|
118
118
|
return {
|
|
119
119
|
add(n) {
|
|
@@ -130,7 +130,7 @@ function C(e, n) {
|
|
|
130
130
|
const t = [...e], u = t.indexOf(n);
|
|
131
131
|
return u !== -1 && t.splice(u, 1), t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function W(e) {
|
|
134
134
|
return e.filter((n) => n.tagName !== "A");
|
|
135
135
|
}
|
|
136
136
|
export {
|