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,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import
|
|
4
|
-
import { createContextScope as
|
|
5
|
-
import { composeEventHandlers as
|
|
6
|
-
import { Primitive as
|
|
7
|
-
import { useControllableState as
|
|
8
|
-
import { useComposedRefs as
|
|
9
|
-
import { useDirection as
|
|
10
|
-
import { Presence as
|
|
11
|
-
import { useId as
|
|
12
|
-
import { createCollection as
|
|
13
|
-
import { DismissableLayer as
|
|
14
|
-
import { usePrevious as
|
|
15
|
-
import { useLayoutEffect as
|
|
3
|
+
import Ie from "react-dom";
|
|
4
|
+
import { createContextScope as ye } from "../../react-context/dist/index.js";
|
|
5
|
+
import { composeEventHandlers as I } from "../../primitive/dist/index.js";
|
|
6
|
+
import { Primitive as _, dispatchDiscreteCustomEvent as J } from "../../react-primitive/dist/index.js";
|
|
7
|
+
import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
|
|
8
|
+
import { useComposedRefs as k, composeRefs as be } from "../../react-compose-refs/dist/index.js";
|
|
9
|
+
import { useDirection as _e } from "../../react-direction/dist/index.js";
|
|
10
|
+
import { Presence as K } from "../../react-presence/dist/index.js";
|
|
11
|
+
import { useId as oe } from "../../react-id/dist/index.js";
|
|
12
|
+
import { createCollection as re } from "../../react-collection/dist/index.js";
|
|
13
|
+
import { DismissableLayer as Pe } from "../../react-dismissable-layer/dist/index.js";
|
|
14
|
+
import { usePrevious as xe } from "../../react-use-previous/dist/index.js";
|
|
15
|
+
import { useLayoutEffect as G } from "../../react-use-layout-effect/dist/index.js";
|
|
16
16
|
import { useCallbackRef as D } from "../../react-use-callback-ref/dist/index.js";
|
|
17
|
-
import { Root as
|
|
18
|
-
import {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
[
|
|
22
|
-
), [
|
|
17
|
+
import { Root as Se } from "../../react-visually-hidden/dist/index.js";
|
|
18
|
+
import { jsx as l, jsxs as Q, Fragment as Z } from "react/jsx-runtime";
|
|
19
|
+
var O = "NavigationMenu", [W, ie, De] = re(O), [z, Ae, Oe] = re(O), [$, ut] = ye(
|
|
20
|
+
O,
|
|
21
|
+
[De, Oe]
|
|
22
|
+
), [ke, b] = $(O), [Le, Fe] = $(O), ae = a.forwardRef(
|
|
23
23
|
(e, t) => {
|
|
24
24
|
const {
|
|
25
25
|
__scopeNavigationMenu: r,
|
|
@@ -28,73 +28,73 @@ var A = "NavigationMenu", [B, oe, Pe] = ne(A), [G, Se, De] = ne(A), [W, st] = he
|
|
|
28
28
|
defaultValue: o,
|
|
29
29
|
delayDuration: s = 200,
|
|
30
30
|
skipDelayDuration: d = 300,
|
|
31
|
-
orientation:
|
|
31
|
+
orientation: c = "horizontal",
|
|
32
32
|
dir: R,
|
|
33
|
-
...
|
|
34
|
-
} = e, [g,
|
|
33
|
+
...u
|
|
34
|
+
} = e, [g, E] = a.useState(null), h = k(t, (w) => E(w)), C = _e(R), p = a.useRef(0), M = a.useRef(0), T = a.useRef(0), [P, f] = a.useState(!0), [m = "", v] = ne({
|
|
35
35
|
prop: i,
|
|
36
36
|
onChange: (w) => {
|
|
37
|
-
const S = w !== "",
|
|
38
|
-
S ? (window.clearTimeout(
|
|
37
|
+
const S = w !== "", V = d > 0;
|
|
38
|
+
S ? (window.clearTimeout(T.current), V && f(!1)) : (window.clearTimeout(T.current), T.current = window.setTimeout(
|
|
39
39
|
() => f(!0),
|
|
40
40
|
d
|
|
41
41
|
)), n == null || n(w);
|
|
42
42
|
},
|
|
43
43
|
defaultProp: o
|
|
44
|
-
}),
|
|
45
|
-
window.clearTimeout(
|
|
46
|
-
}, [v]),
|
|
44
|
+
}), N = a.useCallback(() => {
|
|
45
|
+
window.clearTimeout(M.current), M.current = window.setTimeout(() => v(""), 150);
|
|
46
|
+
}, [v]), y = a.useCallback(
|
|
47
47
|
(w) => {
|
|
48
|
-
window.clearTimeout(
|
|
48
|
+
window.clearTimeout(M.current), v(w);
|
|
49
49
|
},
|
|
50
50
|
[v]
|
|
51
|
-
),
|
|
51
|
+
), x = a.useCallback(
|
|
52
52
|
(w) => {
|
|
53
|
-
m === w ? window.clearTimeout(
|
|
54
|
-
window.clearTimeout(
|
|
53
|
+
m === w ? window.clearTimeout(M.current) : p.current = window.setTimeout(() => {
|
|
54
|
+
window.clearTimeout(M.current), v(w);
|
|
55
55
|
}, s);
|
|
56
56
|
},
|
|
57
57
|
[m, v, s]
|
|
58
58
|
);
|
|
59
59
|
return a.useEffect(() => () => {
|
|
60
|
-
window.clearTimeout(p.current), window.clearTimeout(
|
|
61
|
-
}, []), /* @__PURE__ */
|
|
62
|
-
|
|
60
|
+
window.clearTimeout(p.current), window.clearTimeout(M.current), window.clearTimeout(T.current);
|
|
61
|
+
}, []), /* @__PURE__ */ l(
|
|
62
|
+
ce,
|
|
63
63
|
{
|
|
64
64
|
scope: r,
|
|
65
65
|
isRootMenu: !0,
|
|
66
66
|
value: m,
|
|
67
67
|
dir: C,
|
|
68
|
-
orientation:
|
|
68
|
+
orientation: c,
|
|
69
69
|
rootNavigationMenu: g,
|
|
70
70
|
onTriggerEnter: (w) => {
|
|
71
|
-
window.clearTimeout(p.current),
|
|
71
|
+
window.clearTimeout(p.current), P ? x(w) : y(w);
|
|
72
72
|
},
|
|
73
73
|
onTriggerLeave: () => {
|
|
74
|
-
window.clearTimeout(p.current),
|
|
74
|
+
window.clearTimeout(p.current), N();
|
|
75
75
|
},
|
|
76
|
-
onContentEnter: () => window.clearTimeout(
|
|
77
|
-
onContentLeave:
|
|
76
|
+
onContentEnter: () => window.clearTimeout(M.current),
|
|
77
|
+
onContentLeave: N,
|
|
78
78
|
onItemSelect: (w) => {
|
|
79
79
|
v((S) => S === w ? "" : w);
|
|
80
80
|
},
|
|
81
81
|
onItemDismiss: () => v(""),
|
|
82
|
-
children: /* @__PURE__ */
|
|
83
|
-
|
|
82
|
+
children: /* @__PURE__ */ l(
|
|
83
|
+
_.nav,
|
|
84
84
|
{
|
|
85
85
|
"aria-label": "Main",
|
|
86
|
-
"data-orientation":
|
|
86
|
+
"data-orientation": c,
|
|
87
87
|
dir: C,
|
|
88
|
-
...
|
|
89
|
-
ref:
|
|
88
|
+
...u,
|
|
89
|
+
ref: h
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
|
|
97
|
-
var
|
|
96
|
+
ae.displayName = O;
|
|
97
|
+
var se = "NavigationMenuSub", Ke = a.forwardRef(
|
|
98
98
|
(e, t) => {
|
|
99
99
|
const {
|
|
100
100
|
__scopeNavigationMenu: r,
|
|
@@ -103,30 +103,30 @@ var ie = "NavigationMenuSub", ke = a.forwardRef(
|
|
|
103
103
|
defaultValue: o,
|
|
104
104
|
orientation: s = "horizontal",
|
|
105
105
|
...d
|
|
106
|
-
} = e,
|
|
106
|
+
} = e, c = b(se, r), [R = "", u] = ne({
|
|
107
107
|
prop: i,
|
|
108
108
|
onChange: n,
|
|
109
109
|
defaultProp: o
|
|
110
110
|
});
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
-
|
|
111
|
+
return /* @__PURE__ */ l(
|
|
112
|
+
ce,
|
|
113
113
|
{
|
|
114
114
|
scope: r,
|
|
115
115
|
isRootMenu: !1,
|
|
116
116
|
value: R,
|
|
117
|
-
dir:
|
|
117
|
+
dir: c.dir,
|
|
118
118
|
orientation: s,
|
|
119
|
-
rootNavigationMenu:
|
|
120
|
-
onTriggerEnter: (g) =>
|
|
121
|
-
onItemSelect: (g) =>
|
|
122
|
-
onItemDismiss: () =>
|
|
123
|
-
children: /* @__PURE__ */
|
|
119
|
+
rootNavigationMenu: c.rootNavigationMenu,
|
|
120
|
+
onTriggerEnter: (g) => u(g),
|
|
121
|
+
onItemSelect: (g) => u(g),
|
|
122
|
+
onItemDismiss: () => u(""),
|
|
123
|
+
children: /* @__PURE__ */ l(_.div, { "data-orientation": s, ...d, ref: t })
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
|
-
|
|
129
|
-
var
|
|
128
|
+
Ke.displayName = se;
|
|
129
|
+
var ce = (e) => {
|
|
130
130
|
const {
|
|
131
131
|
scope: t,
|
|
132
132
|
isRootMenu: r,
|
|
@@ -135,159 +135,159 @@ var ae = (e) => {
|
|
|
135
135
|
orientation: o,
|
|
136
136
|
children: s,
|
|
137
137
|
value: d,
|
|
138
|
-
onItemSelect:
|
|
138
|
+
onItemSelect: c,
|
|
139
139
|
onItemDismiss: R,
|
|
140
|
-
onTriggerEnter:
|
|
140
|
+
onTriggerEnter: u,
|
|
141
141
|
onTriggerLeave: g,
|
|
142
|
-
onContentEnter:
|
|
143
|
-
onContentLeave:
|
|
144
|
-
} = e, [C, p] = a.useState(null), [
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
|
|
142
|
+
onContentEnter: E,
|
|
143
|
+
onContentLeave: h
|
|
144
|
+
} = e, [C, p] = a.useState(null), [M, T] = a.useState(/* @__PURE__ */ new Map()), [P, f] = a.useState(null);
|
|
145
|
+
return /* @__PURE__ */ l(
|
|
146
|
+
ke,
|
|
147
147
|
{
|
|
148
148
|
scope: t,
|
|
149
149
|
isRootMenu: r,
|
|
150
150
|
rootNavigationMenu: i,
|
|
151
151
|
value: d,
|
|
152
|
-
previousValue:
|
|
153
|
-
baseId:
|
|
152
|
+
previousValue: xe(d),
|
|
153
|
+
baseId: oe(),
|
|
154
154
|
dir: n,
|
|
155
155
|
orientation: o,
|
|
156
156
|
viewport: C,
|
|
157
157
|
onViewportChange: p,
|
|
158
|
-
indicatorTrack:
|
|
158
|
+
indicatorTrack: P,
|
|
159
159
|
onIndicatorTrackChange: f,
|
|
160
|
-
onTriggerEnter: D(
|
|
160
|
+
onTriggerEnter: D(u),
|
|
161
161
|
onTriggerLeave: D(g),
|
|
162
|
-
onContentEnter: D(
|
|
163
|
-
onContentLeave: D(
|
|
164
|
-
onItemSelect: D(
|
|
162
|
+
onContentEnter: D(E),
|
|
163
|
+
onContentLeave: D(h),
|
|
164
|
+
onItemSelect: D(c),
|
|
165
165
|
onItemDismiss: D(R),
|
|
166
166
|
onViewportContentChange: a.useCallback((m, v) => {
|
|
167
|
-
|
|
167
|
+
T((N) => (N.set(m, v), new Map(N)));
|
|
168
168
|
}, []),
|
|
169
169
|
onViewportContentRemove: a.useCallback((m) => {
|
|
170
|
-
|
|
170
|
+
T((v) => v.has(m) ? (v.delete(m), new Map(v)) : v);
|
|
171
171
|
}, []),
|
|
172
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ l(W.Provider, { scope: t, children: /* @__PURE__ */ l(Le, { scope: t, items: M, children: s }) })
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
|
-
},
|
|
175
|
+
}, ue = "NavigationMenuList", le = a.forwardRef(
|
|
176
176
|
(e, t) => {
|
|
177
|
-
const { __scopeNavigationMenu: r, ...i } = e, n =
|
|
178
|
-
return /* @__PURE__ */
|
|
177
|
+
const { __scopeNavigationMenu: r, ...i } = e, n = b(ue, r), o = /* @__PURE__ */ l(_.ul, { "data-orientation": n.orientation, ...i, ref: t });
|
|
178
|
+
return /* @__PURE__ */ l(_.div, { style: { position: "relative" }, ref: n.onIndicatorTrackChange, children: /* @__PURE__ */ l(W.Slot, { scope: r, children: n.isRootMenu ? /* @__PURE__ */ l(Me, { asChild: !0, children: o }) : o }) });
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
|
-
|
|
182
|
-
var
|
|
181
|
+
le.displayName = ue;
|
|
182
|
+
var de = "NavigationMenuItem", [Ve, ve] = $(de), fe = a.forwardRef(
|
|
183
183
|
(e, t) => {
|
|
184
|
-
const { __scopeNavigationMenu: r, value: i, ...n } = e, o =
|
|
185
|
-
}), g = a.useRef(!1),
|
|
184
|
+
const { __scopeNavigationMenu: r, value: i, ...n } = e, o = oe(), s = i || o || "LEGACY_REACT_AUTO_VALUE", d = a.useRef(null), c = a.useRef(null), R = a.useRef(null), u = a.useRef(() => {
|
|
185
|
+
}), g = a.useRef(!1), E = a.useCallback((C = "start") => {
|
|
186
186
|
if (d.current) {
|
|
187
|
-
|
|
188
|
-
const p =
|
|
187
|
+
u.current();
|
|
188
|
+
const p = H(d.current);
|
|
189
189
|
p.length && q(C === "start" ? p : p.reverse());
|
|
190
190
|
}
|
|
191
|
-
}, []),
|
|
191
|
+
}, []), h = a.useCallback(() => {
|
|
192
192
|
if (d.current) {
|
|
193
|
-
const C =
|
|
194
|
-
C.length && (
|
|
193
|
+
const C = H(d.current);
|
|
194
|
+
C.length && (u.current = $e(C));
|
|
195
195
|
}
|
|
196
196
|
}, []);
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
|
|
197
|
+
return /* @__PURE__ */ l(
|
|
198
|
+
Ve,
|
|
199
199
|
{
|
|
200
200
|
scope: r,
|
|
201
201
|
value: s,
|
|
202
|
-
triggerRef:
|
|
202
|
+
triggerRef: c,
|
|
203
203
|
contentRef: d,
|
|
204
204
|
focusProxyRef: R,
|
|
205
205
|
wasEscapeCloseRef: g,
|
|
206
|
-
onEntryKeyDown:
|
|
207
|
-
onFocusProxyEnter:
|
|
208
|
-
onRootContentClose:
|
|
209
|
-
onContentFocusOutside:
|
|
210
|
-
children: /* @__PURE__ */
|
|
206
|
+
onEntryKeyDown: E,
|
|
207
|
+
onFocusProxyEnter: E,
|
|
208
|
+
onRootContentClose: h,
|
|
209
|
+
onContentFocusOutside: h,
|
|
210
|
+
children: /* @__PURE__ */ l(_.li, { ...n, ref: t })
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
|
|
216
|
-
var
|
|
217
|
-
const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o =
|
|
218
|
-
return /* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
|
|
215
|
+
fe.displayName = de;
|
|
216
|
+
var U = "NavigationMenuTrigger", me = a.forwardRef((e, t) => {
|
|
217
|
+
const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o = b(U, e.__scopeNavigationMenu), s = ve(U, e.__scopeNavigationMenu), d = a.useRef(null), c = k(d, s.triggerRef, t), R = Ee(o.baseId, s.value), u = he(o.baseId, s.value), g = a.useRef(!1), E = a.useRef(!1), h = s.value === o.value;
|
|
218
|
+
return /* @__PURE__ */ Q(Z, { children: [
|
|
219
|
+
/* @__PURE__ */ l(W.ItemSlot, { scope: r, value: s.value, children: /* @__PURE__ */ l(Ne, { asChild: !0, children: /* @__PURE__ */ l(
|
|
220
|
+
_.button,
|
|
221
221
|
{
|
|
222
222
|
id: R,
|
|
223
223
|
disabled: i,
|
|
224
224
|
"data-disabled": i ? "" : void 0,
|
|
225
|
-
"data-state": X(
|
|
226
|
-
"aria-expanded":
|
|
227
|
-
"aria-controls":
|
|
225
|
+
"data-state": X(h),
|
|
226
|
+
"aria-expanded": h,
|
|
227
|
+
"aria-controls": u,
|
|
228
228
|
...n,
|
|
229
|
-
ref:
|
|
230
|
-
onPointerEnter:
|
|
231
|
-
|
|
229
|
+
ref: c,
|
|
230
|
+
onPointerEnter: I(e.onPointerEnter, () => {
|
|
231
|
+
E.current = !1, s.wasEscapeCloseRef.current = !1;
|
|
232
232
|
}),
|
|
233
|
-
onPointerMove:
|
|
233
|
+
onPointerMove: I(
|
|
234
234
|
e.onPointerMove,
|
|
235
235
|
F(() => {
|
|
236
|
-
i ||
|
|
236
|
+
i || E.current || s.wasEscapeCloseRef.current || g.current || (o.onTriggerEnter(s.value), g.current = !0);
|
|
237
237
|
})
|
|
238
238
|
),
|
|
239
|
-
onPointerLeave:
|
|
239
|
+
onPointerLeave: I(
|
|
240
240
|
e.onPointerLeave,
|
|
241
241
|
F(() => {
|
|
242
242
|
i || (o.onTriggerLeave(), g.current = !1);
|
|
243
243
|
})
|
|
244
244
|
),
|
|
245
|
-
onClick:
|
|
246
|
-
o.onItemSelect(s.value),
|
|
245
|
+
onClick: I(e.onClick, () => {
|
|
246
|
+
o.onItemSelect(s.value), E.current = h;
|
|
247
247
|
}),
|
|
248
|
-
onKeyDown:
|
|
249
|
-
const
|
|
250
|
-
|
|
248
|
+
onKeyDown: I(e.onKeyDown, (C) => {
|
|
249
|
+
const M = { horizontal: "ArrowDown", vertical: o.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[o.orientation];
|
|
250
|
+
h && C.key === M && (s.onEntryKeyDown(), C.preventDefault());
|
|
251
251
|
})
|
|
252
252
|
}
|
|
253
253
|
) }) }),
|
|
254
|
-
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
|
|
254
|
+
h && /* @__PURE__ */ Q(Z, { children: [
|
|
255
|
+
/* @__PURE__ */ l(
|
|
256
|
+
Se,
|
|
257
257
|
{
|
|
258
258
|
"aria-hidden": !0,
|
|
259
259
|
tabIndex: 0,
|
|
260
260
|
ref: s.focusProxyRef,
|
|
261
261
|
onFocus: (C) => {
|
|
262
|
-
const p = s.contentRef.current,
|
|
263
|
-
(
|
|
262
|
+
const p = s.contentRef.current, M = C.relatedTarget, T = M === d.current, P = p == null ? void 0 : p.contains(M);
|
|
263
|
+
(T || !P) && s.onFocusProxyEnter(T ? "start" : "end");
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
),
|
|
267
|
-
o.viewport && /* @__PURE__ */
|
|
267
|
+
o.viewport && /* @__PURE__ */ l("span", { "aria-owns": u })
|
|
268
268
|
] })
|
|
269
269
|
] });
|
|
270
270
|
});
|
|
271
|
-
|
|
272
|
-
var
|
|
271
|
+
me.displayName = U;
|
|
272
|
+
var Ge = "NavigationMenuLink", ee = "navigationMenu.linkSelect", ge = a.forwardRef(
|
|
273
273
|
(e, t) => {
|
|
274
274
|
const { __scopeNavigationMenu: r, active: i, onSelect: n, ...o } = e;
|
|
275
|
-
return /* @__PURE__ */
|
|
276
|
-
|
|
275
|
+
return /* @__PURE__ */ l(Ne, { asChild: !0, children: /* @__PURE__ */ l(
|
|
276
|
+
_.a,
|
|
277
277
|
{
|
|
278
278
|
"data-active": i ? "" : void 0,
|
|
279
279
|
"aria-current": i ? "page" : void 0,
|
|
280
280
|
...o,
|
|
281
281
|
ref: t,
|
|
282
|
-
onClick:
|
|
282
|
+
onClick: I(
|
|
283
283
|
e.onClick,
|
|
284
284
|
(s) => {
|
|
285
|
-
const d = s.target,
|
|
285
|
+
const d = s.target, c = new CustomEvent(ee, {
|
|
286
286
|
bubbles: !0,
|
|
287
287
|
cancelable: !0
|
|
288
288
|
});
|
|
289
|
-
if (d.addEventListener(
|
|
290
|
-
const R = new CustomEvent(
|
|
289
|
+
if (d.addEventListener(ee, (R) => n == null ? void 0 : n(R), { once: !0 }), J(d, c), !c.defaultPrevented && !s.metaKey) {
|
|
290
|
+
const R = new CustomEvent(L, {
|
|
291
291
|
bubbles: !0,
|
|
292
292
|
cancelable: !0
|
|
293
293
|
});
|
|
@@ -300,32 +300,32 @@ var Le = "NavigationMenuLink", Q = "navigationMenu.linkSelect", fe = a.forwardRe
|
|
|
300
300
|
) });
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
|
-
|
|
304
|
-
var
|
|
305
|
-
const { forceMount: r, ...i } = e, n =
|
|
306
|
-
return n.indicatorTrack ?
|
|
307
|
-
/* @__PURE__ */
|
|
303
|
+
ge.displayName = Ge;
|
|
304
|
+
var Y = "NavigationMenuIndicator", pe = a.forwardRef((e, t) => {
|
|
305
|
+
const { forceMount: r, ...i } = e, n = b(Y, e.__scopeNavigationMenu), o = !!n.value;
|
|
306
|
+
return n.indicatorTrack ? Ie.createPortal(
|
|
307
|
+
/* @__PURE__ */ l(K, { present: r || o, children: /* @__PURE__ */ l(ze, { ...i, ref: t }) }),
|
|
308
308
|
n.indicatorTrack
|
|
309
309
|
) : null;
|
|
310
310
|
});
|
|
311
|
-
|
|
312
|
-
var
|
|
313
|
-
const { __scopeNavigationMenu: r, ...i } = e, n =
|
|
311
|
+
pe.displayName = Y;
|
|
312
|
+
var ze = a.forwardRef((e, t) => {
|
|
313
|
+
const { __scopeNavigationMenu: r, ...i } = e, n = b(Y, r), o = ie(r), [s, d] = a.useState(
|
|
314
314
|
null
|
|
315
|
-
), [
|
|
315
|
+
), [c, R] = a.useState(null), u = n.orientation === "horizontal", g = !!n.value;
|
|
316
316
|
a.useEffect(() => {
|
|
317
317
|
var p;
|
|
318
|
-
const C = (p = o().find((
|
|
318
|
+
const C = (p = o().find((M) => M.value === n.value)) == null ? void 0 : p.ref.current;
|
|
319
319
|
C && d(C);
|
|
320
320
|
}, [o, n.value]);
|
|
321
|
-
const
|
|
321
|
+
const E = () => {
|
|
322
322
|
s && R({
|
|
323
|
-
size:
|
|
324
|
-
offset:
|
|
323
|
+
size: u ? s.offsetWidth : s.offsetHeight,
|
|
324
|
+
offset: u ? s.offsetLeft : s.offsetTop
|
|
325
325
|
});
|
|
326
326
|
};
|
|
327
|
-
return
|
|
328
|
-
|
|
327
|
+
return B(s, E), B(n.indicatorTrack, E), c ? /* @__PURE__ */ l(
|
|
328
|
+
_.div,
|
|
329
329
|
{
|
|
330
330
|
"aria-hidden": !0,
|
|
331
331
|
"data-state": g ? "visible" : "hidden",
|
|
@@ -334,21 +334,21 @@ var Ke = a.forwardRef((e, t) => {
|
|
|
334
334
|
ref: t,
|
|
335
335
|
style: {
|
|
336
336
|
position: "absolute",
|
|
337
|
-
...
|
|
337
|
+
...u ? {
|
|
338
338
|
left: 0,
|
|
339
|
-
width:
|
|
340
|
-
transform: `translateX(${
|
|
339
|
+
width: c.size + "px",
|
|
340
|
+
transform: `translateX(${c.offset}px)`
|
|
341
341
|
} : {
|
|
342
342
|
top: 0,
|
|
343
|
-
height:
|
|
344
|
-
transform: `translateY(${
|
|
343
|
+
height: c.size + "px",
|
|
344
|
+
transform: `translateY(${c.offset}px)`
|
|
345
345
|
},
|
|
346
346
|
...i.style
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
) : null;
|
|
350
|
-
}),
|
|
351
|
-
const { forceMount: r, ...i } = e, n =
|
|
350
|
+
}), A = "NavigationMenuContent", we = a.forwardRef((e, t) => {
|
|
351
|
+
const { forceMount: r, ...i } = e, n = b(A, e.__scopeNavigationMenu), o = ve(A, e.__scopeNavigationMenu), s = k(o.contentRef, t), d = o.value === n.value, c = {
|
|
352
352
|
value: o.value,
|
|
353
353
|
triggerRef: o.triggerRef,
|
|
354
354
|
focusProxyRef: o.focusProxyRef,
|
|
@@ -357,35 +357,35 @@ var Ke = a.forwardRef((e, t) => {
|
|
|
357
357
|
onRootContentClose: o.onRootContentClose,
|
|
358
358
|
...i
|
|
359
359
|
};
|
|
360
|
-
return n.viewport ? /* @__PURE__ */
|
|
361
|
-
|
|
360
|
+
return n.viewport ? /* @__PURE__ */ l(Ue, { forceMount: r, ...c, ref: s }) : /* @__PURE__ */ l(K, { present: r || d, children: /* @__PURE__ */ l(
|
|
361
|
+
Ce,
|
|
362
362
|
{
|
|
363
363
|
"data-state": X(d),
|
|
364
|
-
...
|
|
364
|
+
...c,
|
|
365
365
|
ref: s,
|
|
366
|
-
onPointerEnter:
|
|
367
|
-
onPointerLeave:
|
|
366
|
+
onPointerEnter: I(e.onPointerEnter, n.onContentEnter),
|
|
367
|
+
onPointerLeave: I(
|
|
368
368
|
e.onPointerLeave,
|
|
369
369
|
F(n.onContentLeave)
|
|
370
370
|
),
|
|
371
371
|
style: {
|
|
372
372
|
// Prevent interaction when animating out
|
|
373
373
|
pointerEvents: !d && n.isRootMenu ? "none" : void 0,
|
|
374
|
-
...
|
|
374
|
+
...c.style
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
) });
|
|
378
378
|
});
|
|
379
|
-
|
|
380
|
-
var
|
|
381
|
-
const r =
|
|
382
|
-
return
|
|
379
|
+
we.displayName = A;
|
|
380
|
+
var Ue = a.forwardRef((e, t) => {
|
|
381
|
+
const r = b(A, e.__scopeNavigationMenu), { onViewportContentChange: i, onViewportContentRemove: n } = r;
|
|
382
|
+
return G(() => {
|
|
383
383
|
i(e.value, {
|
|
384
384
|
ref: t,
|
|
385
385
|
...e
|
|
386
386
|
});
|
|
387
|
-
}, [e, t, i]),
|
|
388
|
-
}),
|
|
387
|
+
}, [e, t, i]), G(() => () => n(e.value), [e.value, n]), null;
|
|
388
|
+
}), L = "navigationMenu.rootContentDismiss", Ce = a.forwardRef((e, t) => {
|
|
389
389
|
const {
|
|
390
390
|
__scopeNavigationMenu: r,
|
|
391
391
|
value: i,
|
|
@@ -393,92 +393,92 @@ var Ve = a.forwardRef((e, t) => {
|
|
|
393
393
|
focusProxyRef: o,
|
|
394
394
|
wasEscapeCloseRef: s,
|
|
395
395
|
onRootContentClose: d,
|
|
396
|
-
onContentFocusOutside:
|
|
396
|
+
onContentFocusOutside: c,
|
|
397
397
|
...R
|
|
398
|
-
} = e,
|
|
398
|
+
} = e, u = b(A, r), g = a.useRef(null), E = k(g, t), h = Ee(u.baseId, i), C = he(u.baseId, i), p = ie(r), M = a.useRef(null), { onItemDismiss: T } = u;
|
|
399
399
|
a.useEffect(() => {
|
|
400
400
|
const f = g.current;
|
|
401
|
-
if (
|
|
401
|
+
if (u.isRootMenu && f) {
|
|
402
402
|
const m = () => {
|
|
403
403
|
var v;
|
|
404
|
-
|
|
404
|
+
T(), d(), f.contains(document.activeElement) && ((v = n.current) == null || v.focus());
|
|
405
405
|
};
|
|
406
|
-
return f.addEventListener(
|
|
406
|
+
return f.addEventListener(L, m), () => f.removeEventListener(L, m);
|
|
407
407
|
}
|
|
408
|
-
}, [
|
|
409
|
-
const
|
|
408
|
+
}, [u.isRootMenu, e.value, n, T, d]);
|
|
409
|
+
const P = a.useMemo(() => {
|
|
410
410
|
const m = p().map((S) => S.value);
|
|
411
|
-
|
|
412
|
-
const v = m.indexOf(
|
|
413
|
-
if (!
|
|
411
|
+
u.dir === "rtl" && m.reverse();
|
|
412
|
+
const v = m.indexOf(u.value), N = m.indexOf(u.previousValue), y = i === u.value, x = N === m.indexOf(i);
|
|
413
|
+
if (!y && !x) return M.current;
|
|
414
414
|
const w = (() => {
|
|
415
|
-
if (v !==
|
|
416
|
-
if (
|
|
417
|
-
if (
|
|
415
|
+
if (v !== N) {
|
|
416
|
+
if (y && N !== -1) return v > N ? "from-end" : "from-start";
|
|
417
|
+
if (x && v !== -1) return v > N ? "to-start" : "to-end";
|
|
418
418
|
}
|
|
419
419
|
return null;
|
|
420
420
|
})();
|
|
421
|
-
return
|
|
422
|
-
}, [
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
|
|
421
|
+
return M.current = w, w;
|
|
422
|
+
}, [u.previousValue, u.value, u.dir, p, i]);
|
|
423
|
+
return /* @__PURE__ */ l(Me, { asChild: !0, children: /* @__PURE__ */ l(
|
|
424
|
+
Pe,
|
|
425
425
|
{
|
|
426
426
|
id: C,
|
|
427
|
-
"aria-labelledby":
|
|
428
|
-
"data-motion":
|
|
429
|
-
"data-orientation":
|
|
427
|
+
"aria-labelledby": h,
|
|
428
|
+
"data-motion": P,
|
|
429
|
+
"data-orientation": u.orientation,
|
|
430
430
|
...R,
|
|
431
|
-
ref:
|
|
431
|
+
ref: E,
|
|
432
432
|
disableOutsidePointerEvents: !1,
|
|
433
433
|
onDismiss: () => {
|
|
434
434
|
var m;
|
|
435
|
-
const f = new Event(
|
|
435
|
+
const f = new Event(L, {
|
|
436
436
|
bubbles: !0,
|
|
437
437
|
cancelable: !0
|
|
438
438
|
});
|
|
439
439
|
(m = g.current) == null || m.dispatchEvent(f);
|
|
440
440
|
},
|
|
441
|
-
onFocusOutside:
|
|
441
|
+
onFocusOutside: I(e.onFocusOutside, (f) => {
|
|
442
442
|
var v;
|
|
443
|
-
|
|
443
|
+
c();
|
|
444
444
|
const m = f.target;
|
|
445
|
-
(v =
|
|
445
|
+
(v = u.rootNavigationMenu) != null && v.contains(m) && f.preventDefault();
|
|
446
446
|
}),
|
|
447
|
-
onPointerDownOutside:
|
|
448
|
-
var
|
|
449
|
-
const m = f.target, v = p().some((
|
|
447
|
+
onPointerDownOutside: I(e.onPointerDownOutside, (f) => {
|
|
448
|
+
var y;
|
|
449
|
+
const m = f.target, v = p().some((x) => {
|
|
450
450
|
var w;
|
|
451
|
-
return (w =
|
|
452
|
-
}),
|
|
453
|
-
(v ||
|
|
451
|
+
return (w = x.ref.current) == null ? void 0 : w.contains(m);
|
|
452
|
+
}), N = u.isRootMenu && ((y = u.viewport) == null ? void 0 : y.contains(m));
|
|
453
|
+
(v || N || !u.isRootMenu) && f.preventDefault();
|
|
454
454
|
}),
|
|
455
|
-
onKeyDown:
|
|
456
|
-
var
|
|
455
|
+
onKeyDown: I(e.onKeyDown, (f) => {
|
|
456
|
+
var N;
|
|
457
457
|
const m = f.altKey || f.ctrlKey || f.metaKey;
|
|
458
458
|
if (f.key === "Tab" && !m) {
|
|
459
|
-
const
|
|
460
|
-
q(
|
|
459
|
+
const y = H(f.currentTarget), x = document.activeElement, w = y.findIndex((Te) => Te === x), V = f.shiftKey ? y.slice(0, w).reverse() : y.slice(w + 1, y.length);
|
|
460
|
+
q(V) ? f.preventDefault() : (N = o.current) == null || N.focus();
|
|
461
461
|
}
|
|
462
462
|
}),
|
|
463
|
-
onEscapeKeyDown:
|
|
463
|
+
onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
|
|
464
464
|
s.current = !0;
|
|
465
465
|
})
|
|
466
466
|
}
|
|
467
467
|
) });
|
|
468
|
-
}),
|
|
469
|
-
const { forceMount: r, ...i } = e, o = !!
|
|
470
|
-
return /* @__PURE__ */
|
|
468
|
+
}), j = "NavigationMenuViewport", Re = a.forwardRef((e, t) => {
|
|
469
|
+
const { forceMount: r, ...i } = e, o = !!b(j, e.__scopeNavigationMenu).value;
|
|
470
|
+
return /* @__PURE__ */ l(K, { present: r || o, children: /* @__PURE__ */ l(He, { ...i, ref: t }) });
|
|
471
471
|
});
|
|
472
|
-
|
|
473
|
-
var
|
|
474
|
-
const { __scopeNavigationMenu: r, children: i, ...n } = e, o =
|
|
475
|
-
|
|
472
|
+
Re.displayName = j;
|
|
473
|
+
var He = a.forwardRef((e, t) => {
|
|
474
|
+
const { __scopeNavigationMenu: r, children: i, ...n } = e, o = b(j, r), s = k(t, o.onViewportChange), d = Fe(
|
|
475
|
+
A,
|
|
476
476
|
e.__scopeNavigationMenu
|
|
477
|
-
), [
|
|
478
|
-
return
|
|
479
|
-
|
|
480
|
-
}), /* @__PURE__ */
|
|
481
|
-
|
|
477
|
+
), [c, R] = a.useState(null), [u, g] = a.useState(null), E = c ? (c == null ? void 0 : c.width) + "px" : void 0, h = c ? (c == null ? void 0 : c.height) + "px" : void 0, C = !!o.value, p = C ? o.value : o.previousValue;
|
|
478
|
+
return B(u, () => {
|
|
479
|
+
u && R({ width: u.offsetWidth, height: u.offsetHeight });
|
|
480
|
+
}), /* @__PURE__ */ l(
|
|
481
|
+
_.div,
|
|
482
482
|
{
|
|
483
483
|
"data-state": X(C),
|
|
484
484
|
"data-orientation": o.orientation,
|
|
@@ -487,54 +487,54 @@ var Ge = a.forwardRef((e, t) => {
|
|
|
487
487
|
style: {
|
|
488
488
|
// Prevent interaction when animating out
|
|
489
489
|
pointerEvents: !C && o.isRootMenu ? "none" : void 0,
|
|
490
|
-
"--radix-navigation-menu-viewport-width":
|
|
491
|
-
"--radix-navigation-menu-viewport-height":
|
|
490
|
+
"--radix-navigation-menu-viewport-width": E,
|
|
491
|
+
"--radix-navigation-menu-viewport-height": h,
|
|
492
492
|
...n.style
|
|
493
493
|
},
|
|
494
|
-
onPointerEnter:
|
|
495
|
-
onPointerLeave:
|
|
496
|
-
children: Array.from(d.items).map(([
|
|
497
|
-
const v = p ===
|
|
498
|
-
return /* @__PURE__ */
|
|
499
|
-
|
|
494
|
+
onPointerEnter: I(e.onPointerEnter, o.onContentEnter),
|
|
495
|
+
onPointerLeave: I(e.onPointerLeave, F(o.onContentLeave)),
|
|
496
|
+
children: Array.from(d.items).map(([T, { ref: P, forceMount: f, ...m }]) => {
|
|
497
|
+
const v = p === T;
|
|
498
|
+
return /* @__PURE__ */ l(K, { present: f || v, children: /* @__PURE__ */ l(
|
|
499
|
+
Ce,
|
|
500
500
|
{
|
|
501
501
|
...m,
|
|
502
|
-
ref:
|
|
503
|
-
v &&
|
|
502
|
+
ref: be(P, (N) => {
|
|
503
|
+
v && N && g(N);
|
|
504
504
|
})
|
|
505
505
|
}
|
|
506
|
-
) },
|
|
506
|
+
) }, T);
|
|
507
507
|
})
|
|
508
508
|
}
|
|
509
509
|
);
|
|
510
|
-
}),
|
|
510
|
+
}), Be = "FocusGroup", Me = a.forwardRef(
|
|
511
511
|
(e, t) => {
|
|
512
|
-
const { __scopeNavigationMenu: r, ...i } = e, n =
|
|
513
|
-
return /* @__PURE__ */
|
|
512
|
+
const { __scopeNavigationMenu: r, ...i } = e, n = b(Be, r);
|
|
513
|
+
return /* @__PURE__ */ l(z.Provider, { scope: r, children: /* @__PURE__ */ l(z.Slot, { scope: r, children: /* @__PURE__ */ l(_.div, { dir: n.dir, ...i, ref: t }) }) });
|
|
514
514
|
}
|
|
515
|
-
),
|
|
515
|
+
), te = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], We = "FocusGroupItem", Ne = a.forwardRef(
|
|
516
516
|
(e, t) => {
|
|
517
|
-
const { __scopeNavigationMenu: r, ...i } = e, n =
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
|
|
517
|
+
const { __scopeNavigationMenu: r, ...i } = e, n = Ae(r), o = b(We, r);
|
|
518
|
+
return /* @__PURE__ */ l(z.ItemSlot, { scope: r, children: /* @__PURE__ */ l(
|
|
519
|
+
_.button,
|
|
520
520
|
{
|
|
521
521
|
...i,
|
|
522
522
|
ref: t,
|
|
523
|
-
onKeyDown:
|
|
524
|
-
if (["Home", "End", ...
|
|
525
|
-
let
|
|
526
|
-
if ([o.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(s.key) &&
|
|
527
|
-
const g =
|
|
528
|
-
|
|
523
|
+
onKeyDown: I(e.onKeyDown, (s) => {
|
|
524
|
+
if (["Home", "End", ...te].includes(s.key)) {
|
|
525
|
+
let c = n().map((g) => g.ref.current);
|
|
526
|
+
if ([o.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(s.key) && c.reverse(), te.includes(s.key)) {
|
|
527
|
+
const g = c.indexOf(s.currentTarget);
|
|
528
|
+
c = c.slice(g + 1);
|
|
529
529
|
}
|
|
530
|
-
setTimeout(() => q(
|
|
530
|
+
setTimeout(() => q(c)), s.preventDefault();
|
|
531
531
|
}
|
|
532
532
|
})
|
|
533
533
|
}
|
|
534
534
|
) });
|
|
535
535
|
}
|
|
536
536
|
);
|
|
537
|
-
function
|
|
537
|
+
function H(e) {
|
|
538
538
|
const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
539
539
|
acceptNode: (i) => {
|
|
540
540
|
const n = i.tagName === "INPUT" && i.type === "hidden";
|
|
@@ -548,7 +548,7 @@ function q(e) {
|
|
|
548
548
|
const t = document.activeElement;
|
|
549
549
|
return e.some((r) => r === t ? !0 : (r.focus(), document.activeElement !== t));
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function $e(e) {
|
|
552
552
|
return e.forEach((t) => {
|
|
553
553
|
t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
|
|
554
554
|
}), () => {
|
|
@@ -558,9 +558,9 @@ function He(e) {
|
|
|
558
558
|
});
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function B(e, t) {
|
|
562
562
|
const r = D(t);
|
|
563
|
-
|
|
563
|
+
G(() => {
|
|
564
564
|
let i = 0;
|
|
565
565
|
if (e) {
|
|
566
566
|
const n = new ResizeObserver(() => {
|
|
@@ -575,33 +575,33 @@ function H(e, t) {
|
|
|
575
575
|
function X(e) {
|
|
576
576
|
return e ? "open" : "closed";
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Ee(e, t) {
|
|
579
579
|
return `${e}-trigger-${t}`;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function he(e, t) {
|
|
582
582
|
return `${e}-content-${t}`;
|
|
583
583
|
}
|
|
584
584
|
function F(e) {
|
|
585
585
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
587
|
+
var lt = ae, dt = le, vt = fe, ft = me, mt = ge, gt = pe, pt = we, wt = Re;
|
|
588
588
|
export {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
589
|
+
pt as Content,
|
|
590
|
+
gt as Indicator,
|
|
591
|
+
vt as Item,
|
|
592
|
+
mt as Link,
|
|
593
|
+
dt as List,
|
|
594
|
+
ae as NavigationMenu,
|
|
595
|
+
we as NavigationMenuContent,
|
|
596
|
+
pe as NavigationMenuIndicator,
|
|
597
|
+
fe as NavigationMenuItem,
|
|
598
|
+
ge as NavigationMenuLink,
|
|
599
|
+
le as NavigationMenuList,
|
|
600
|
+
Ke as NavigationMenuSub,
|
|
601
|
+
me as NavigationMenuTrigger,
|
|
602
|
+
Re as NavigationMenuViewport,
|
|
603
|
+
lt as Root,
|
|
604
|
+
ft as Trigger,
|
|
605
|
+
wt as Viewport,
|
|
606
|
+
ut as createNavigationMenuScope
|
|
607
607
|
};
|