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,141 +1,137 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import p from "react";
|
|
3
|
-
import { createContextScope as
|
|
3
|
+
import { createContextScope as S } from "../../react-context/dist/index.js";
|
|
4
4
|
import { Primitive as G } from "../../react-primitive/dist/index.js";
|
|
5
|
-
import { createRovingFocusGroupScope as
|
|
6
|
-
import { Toggle as
|
|
7
|
-
import { useControllableState as
|
|
8
|
-
import { useDirection as
|
|
9
|
-
import {
|
|
10
|
-
var v = "ToggleGroup", [
|
|
11
|
-
|
|
12
|
-
]),
|
|
5
|
+
import { createRovingFocusGroupScope as P, Item as V, Root as A } from "../../react-roving-focus/dist/index.js";
|
|
6
|
+
import { Toggle as F } from "../../react-toggle/dist/index.js";
|
|
7
|
+
import { useControllableState as _ } from "../../react-use-controllable-state/dist/index.js";
|
|
8
|
+
import { useDirection as M } from "../../react-direction/dist/index.js";
|
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
10
|
+
var v = "ToggleGroup", [C, z] = S(v, [
|
|
11
|
+
P
|
|
12
|
+
]), I = P(), f = p.forwardRef((e, r) => {
|
|
13
13
|
const { type: a, ...t } = e;
|
|
14
|
-
if (a === "single")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (a === "multiple") {
|
|
19
|
-
const l = t;
|
|
20
|
-
return /* @__PURE__ */ s.jsx(M, { ...l, ref: r });
|
|
21
|
-
}
|
|
14
|
+
if (a === "single")
|
|
15
|
+
return /* @__PURE__ */ l(w, { ...t, ref: r });
|
|
16
|
+
if (a === "multiple")
|
|
17
|
+
return /* @__PURE__ */ l(D, { ...t, ref: r });
|
|
22
18
|
throw new Error(`Missing prop \`type\` expected on \`${v}\``);
|
|
23
19
|
});
|
|
24
20
|
f.displayName = v;
|
|
25
|
-
var [
|
|
21
|
+
var [h, x] = C(v), w = p.forwardRef((e, r) => {
|
|
26
22
|
const {
|
|
27
23
|
value: a,
|
|
28
24
|
defaultValue: t,
|
|
29
|
-
onValueChange:
|
|
25
|
+
onValueChange: u = () => {
|
|
30
26
|
},
|
|
31
|
-
...
|
|
32
|
-
} = e, [
|
|
27
|
+
...n
|
|
28
|
+
} = e, [s, o] = _({
|
|
33
29
|
prop: a,
|
|
34
30
|
defaultProp: t,
|
|
35
|
-
onChange:
|
|
31
|
+
onChange: u
|
|
36
32
|
});
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
33
|
+
return /* @__PURE__ */ l(
|
|
34
|
+
h,
|
|
39
35
|
{
|
|
40
36
|
scope: e.__scopeToggleGroup,
|
|
41
37
|
type: "single",
|
|
42
|
-
value:
|
|
38
|
+
value: s ? [s] : [],
|
|
43
39
|
onItemActivate: o,
|
|
44
40
|
onItemDeactivate: p.useCallback(() => o(""), [o]),
|
|
45
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ l(R, { ...n, ref: r })
|
|
46
42
|
}
|
|
47
43
|
);
|
|
48
|
-
}),
|
|
44
|
+
}), D = p.forwardRef((e, r) => {
|
|
49
45
|
const {
|
|
50
46
|
value: a,
|
|
51
47
|
defaultValue: t,
|
|
52
|
-
onValueChange:
|
|
48
|
+
onValueChange: u = () => {
|
|
53
49
|
},
|
|
54
|
-
...
|
|
55
|
-
} = e, [
|
|
50
|
+
...n
|
|
51
|
+
} = e, [s = [], o] = _({
|
|
56
52
|
prop: a,
|
|
57
53
|
defaultProp: t,
|
|
58
|
-
onChange:
|
|
59
|
-
}),
|
|
60
|
-
(
|
|
54
|
+
onChange: u
|
|
55
|
+
}), i = p.useCallback(
|
|
56
|
+
(c) => o((g = []) => [...g, c]),
|
|
61
57
|
[o]
|
|
62
58
|
), d = p.useCallback(
|
|
63
|
-
(
|
|
59
|
+
(c) => o((g = []) => g.filter((y) => y !== c)),
|
|
64
60
|
[o]
|
|
65
61
|
);
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
|
|
62
|
+
return /* @__PURE__ */ l(
|
|
63
|
+
h,
|
|
68
64
|
{
|
|
69
65
|
scope: e.__scopeToggleGroup,
|
|
70
66
|
type: "multiple",
|
|
71
|
-
value:
|
|
72
|
-
onItemActivate:
|
|
67
|
+
value: s,
|
|
68
|
+
onItemActivate: i,
|
|
73
69
|
onItemDeactivate: d,
|
|
74
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ l(R, { ...n, ref: r })
|
|
75
71
|
}
|
|
76
72
|
);
|
|
77
73
|
});
|
|
78
74
|
f.displayName = v;
|
|
79
|
-
var [
|
|
75
|
+
var [E, N] = C(v), R = p.forwardRef(
|
|
80
76
|
(e, r) => {
|
|
81
77
|
const {
|
|
82
78
|
__scopeToggleGroup: a,
|
|
83
79
|
disabled: t = !1,
|
|
84
|
-
rovingFocus:
|
|
85
|
-
orientation:
|
|
86
|
-
dir:
|
|
80
|
+
rovingFocus: u = !0,
|
|
81
|
+
orientation: n,
|
|
82
|
+
dir: s,
|
|
87
83
|
loop: o = !0,
|
|
88
|
-
...
|
|
89
|
-
} = e, d =
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
-
|
|
84
|
+
...i
|
|
85
|
+
} = e, d = I(a), c = M(s), g = { role: "group", dir: c, ...i };
|
|
86
|
+
return /* @__PURE__ */ l(E, { scope: a, rovingFocus: u, disabled: t, children: u ? /* @__PURE__ */ l(
|
|
87
|
+
A,
|
|
92
88
|
{
|
|
93
89
|
asChild: !0,
|
|
94
90
|
...d,
|
|
95
|
-
orientation:
|
|
96
|
-
dir:
|
|
91
|
+
orientation: n,
|
|
92
|
+
dir: c,
|
|
97
93
|
loop: o,
|
|
98
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ l(G.div, { ...g, ref: r })
|
|
99
95
|
}
|
|
100
|
-
) : /* @__PURE__ */
|
|
96
|
+
) : /* @__PURE__ */ l(G.div, { ...g, ref: r }) });
|
|
101
97
|
}
|
|
102
|
-
), m = "ToggleGroupItem",
|
|
98
|
+
), m = "ToggleGroupItem", b = p.forwardRef(
|
|
103
99
|
(e, r) => {
|
|
104
|
-
const a =
|
|
105
|
-
return t.rovingFocus ? /* @__PURE__ */
|
|
106
|
-
|
|
100
|
+
const a = x(m, e.__scopeToggleGroup), t = N(m, e.__scopeToggleGroup), u = I(e.__scopeToggleGroup), n = a.value.includes(e.value), s = t.disabled || e.disabled, o = { ...e, pressed: n, disabled: s }, i = p.useRef(null);
|
|
101
|
+
return t.rovingFocus ? /* @__PURE__ */ l(
|
|
102
|
+
V,
|
|
107
103
|
{
|
|
108
104
|
asChild: !0,
|
|
109
|
-
...
|
|
110
|
-
focusable: !
|
|
111
|
-
active:
|
|
112
|
-
ref:
|
|
113
|
-
children: /* @__PURE__ */
|
|
105
|
+
...u,
|
|
106
|
+
focusable: !s,
|
|
107
|
+
active: n,
|
|
108
|
+
ref: i,
|
|
109
|
+
children: /* @__PURE__ */ l(T, { ...o, ref: r })
|
|
114
110
|
}
|
|
115
|
-
) : /* @__PURE__ */
|
|
111
|
+
) : /* @__PURE__ */ l(T, { ...o, ref: r });
|
|
116
112
|
}
|
|
117
113
|
);
|
|
118
|
-
|
|
119
|
-
var
|
|
114
|
+
b.displayName = m;
|
|
115
|
+
var T = p.forwardRef(
|
|
120
116
|
(e, r) => {
|
|
121
|
-
const { __scopeToggleGroup: a, value: t, ...
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
|
|
117
|
+
const { __scopeToggleGroup: a, value: t, ...u } = e, n = x(m, a), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, o = n.type === "single" ? s : void 0;
|
|
118
|
+
return /* @__PURE__ */ l(
|
|
119
|
+
F,
|
|
124
120
|
{
|
|
125
121
|
...o,
|
|
126
|
-
...
|
|
122
|
+
...u,
|
|
127
123
|
ref: r,
|
|
128
|
-
onPressedChange: (
|
|
129
|
-
|
|
124
|
+
onPressedChange: (i) => {
|
|
125
|
+
i ? n.onItemActivate(t) : n.onItemDeactivate(t);
|
|
130
126
|
}
|
|
131
127
|
}
|
|
132
128
|
);
|
|
133
129
|
}
|
|
134
|
-
), H = f, J =
|
|
130
|
+
), H = f, J = b;
|
|
135
131
|
export {
|
|
136
132
|
J as Item,
|
|
137
133
|
H as Root,
|
|
138
134
|
f as ToggleGroup,
|
|
139
|
-
|
|
135
|
+
b as ToggleGroupItem,
|
|
140
136
|
z as createToggleGroupScope
|
|
141
137
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { composeEventHandlers as g } from "../../primitive/dist/index.js";
|
|
4
|
-
import { useComposedRefs as
|
|
4
|
+
import { useComposedRefs as N } from "../../react-compose-refs/dist/index.js";
|
|
5
5
|
import { createContextScope as W } from "../../react-context/dist/index.js";
|
|
6
6
|
import { DismissableLayer as $ } from "../../react-dismissable-layer/dist/index.js";
|
|
7
7
|
import { useId as z } from "../../react-id/dist/index.js";
|
|
8
|
-
import { createPopperScope as
|
|
8
|
+
import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "../../react-popper/dist/index.js";
|
|
9
9
|
import { Portal as te } from "../../react-portal/dist/index.js";
|
|
10
|
-
import { Presence as
|
|
10
|
+
import { Presence as G } from "../../react-presence/dist/index.js";
|
|
11
11
|
import { Primitive as oe } from "../../react-primitive/dist/index.js";
|
|
12
12
|
import { createSlottable as re } from "../../react-slot/dist/index.js";
|
|
13
13
|
import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
|
|
14
14
|
import { Root as se } from "../../react-visually-hidden/dist/index.js";
|
|
15
|
-
import {
|
|
16
|
-
var [_,
|
|
17
|
-
|
|
18
|
-
]), A =
|
|
15
|
+
import { jsx as p, jsxs as ie } from "react/jsx-runtime";
|
|
16
|
+
var [_, He] = W("Tooltip", [
|
|
17
|
+
S
|
|
18
|
+
]), A = S(), F = "TooltipProvider", ae = 700, O = "tooltip.open", [le, k] = _(F), j = (t) => {
|
|
19
19
|
const {
|
|
20
20
|
__scopeTooltip: o,
|
|
21
|
-
delayDuration: e =
|
|
21
|
+
delayDuration: e = ae,
|
|
22
22
|
skipDelayDuration: r = 300,
|
|
23
23
|
disableHoverableContent: n = !1,
|
|
24
24
|
children: a
|
|
@@ -26,8 +26,8 @@ var [_, Me] = W("Tooltip", [
|
|
|
26
26
|
return s.useEffect(() => {
|
|
27
27
|
const d = i.current;
|
|
28
28
|
return () => window.clearTimeout(d);
|
|
29
|
-
}, []), /* @__PURE__ */ p
|
|
30
|
-
|
|
29
|
+
}, []), /* @__PURE__ */ p(
|
|
30
|
+
le,
|
|
31
31
|
{
|
|
32
32
|
scope: o,
|
|
33
33
|
isOpenDelayedRef: l,
|
|
@@ -50,8 +50,8 @@ var [_, Me] = W("Tooltip", [
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
var D = "Tooltip", [
|
|
53
|
+
j.displayName = F;
|
|
54
|
+
var D = "Tooltip", [ce, R] = _(D), B = (t) => {
|
|
55
55
|
const {
|
|
56
56
|
__scopeTooltip: o,
|
|
57
57
|
children: e,
|
|
@@ -60,35 +60,35 @@ var D = "Tooltip", [le, R] = _(D), B = (t) => {
|
|
|
60
60
|
onOpenChange: a,
|
|
61
61
|
disableHoverableContent: l,
|
|
62
62
|
delayDuration: v
|
|
63
|
-
} = t, i =
|
|
63
|
+
} = t, i = k(D, t.__scopeTooltip), d = A(o), [c, f] = s.useState(null), m = z(), u = s.useRef(0), h = l ?? i.disableHoverableContent, C = v ?? i.delayDuration, T = s.useRef(!1), [x = !1, y] = ne({
|
|
64
64
|
prop: r,
|
|
65
65
|
defaultProp: n,
|
|
66
|
-
onChange: (
|
|
67
|
-
|
|
66
|
+
onChange: (H) => {
|
|
67
|
+
H ? (i.onOpen(), document.dispatchEvent(new CustomEvent(O))) : i.onClose(), a == null || a(H);
|
|
68
68
|
}
|
|
69
|
-
}), w = s.useMemo(() =>
|
|
70
|
-
window.clearTimeout(u.current), u.current = 0,
|
|
71
|
-
}, [
|
|
72
|
-
window.clearTimeout(u.current), u.current = 0,
|
|
73
|
-
}, [
|
|
69
|
+
}), w = s.useMemo(() => x ? T.current ? "delayed-open" : "instant-open" : "closed", [x]), P = s.useCallback(() => {
|
|
70
|
+
window.clearTimeout(u.current), u.current = 0, T.current = !1, y(!0);
|
|
71
|
+
}, [y]), E = s.useCallback(() => {
|
|
72
|
+
window.clearTimeout(u.current), u.current = 0, y(!1);
|
|
73
|
+
}, [y]), I = s.useCallback(() => {
|
|
74
74
|
window.clearTimeout(u.current), u.current = window.setTimeout(() => {
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
}, [
|
|
75
|
+
T.current = !0, y(!0), u.current = 0;
|
|
76
|
+
}, C);
|
|
77
|
+
}, [C, y]);
|
|
78
78
|
return s.useEffect(() => () => {
|
|
79
79
|
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
80
|
-
}, []), /* @__PURE__ */ p
|
|
81
|
-
|
|
80
|
+
}, []), /* @__PURE__ */ p(J, { ...d, children: /* @__PURE__ */ p(
|
|
81
|
+
ce,
|
|
82
82
|
{
|
|
83
83
|
scope: o,
|
|
84
|
-
contentId:
|
|
85
|
-
open:
|
|
84
|
+
contentId: m,
|
|
85
|
+
open: x,
|
|
86
86
|
stateAttribute: w,
|
|
87
87
|
trigger: c,
|
|
88
88
|
onTriggerChange: f,
|
|
89
89
|
onTriggerEnter: s.useCallback(() => {
|
|
90
|
-
i.isOpenDelayedRef.current ?
|
|
91
|
-
}, [i.isOpenDelayedRef,
|
|
90
|
+
i.isOpenDelayedRef.current ? I() : P();
|
|
91
|
+
}, [i.isOpenDelayedRef, I, P]),
|
|
92
92
|
onTriggerLeave: s.useCallback(() => {
|
|
93
93
|
h ? E() : (window.clearTimeout(u.current), u.current = 0);
|
|
94
94
|
}, [E, h]),
|
|
@@ -102,16 +102,16 @@ var D = "Tooltip", [le, R] = _(D), B = (t) => {
|
|
|
102
102
|
B.displayName = D;
|
|
103
103
|
var L = "TooltipTrigger", U = s.forwardRef(
|
|
104
104
|
(t, o) => {
|
|
105
|
-
const { __scopeTooltip: e, ...r } = t, n = R(L, e), a =
|
|
106
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p
|
|
105
|
+
const { __scopeTooltip: e, ...r } = t, n = R(L, e), a = k(L, e), l = A(e), v = s.useRef(null), i = N(o, v, n.onTriggerChange), d = s.useRef(!1), c = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
|
|
106
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(Q, { asChild: !0, ...l, children: /* @__PURE__ */ p(
|
|
107
107
|
oe.button,
|
|
108
108
|
{
|
|
109
109
|
"aria-describedby": n.open ? n.contentId : void 0,
|
|
110
110
|
"data-state": n.stateAttribute,
|
|
111
111
|
...r,
|
|
112
112
|
ref: i,
|
|
113
|
-
onPointerMove: g(t.onPointerMove, (
|
|
114
|
-
|
|
113
|
+
onPointerMove: g(t.onPointerMove, (m) => {
|
|
114
|
+
m.pointerType !== "touch" && !c.current && !a.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
|
|
115
115
|
}),
|
|
116
116
|
onPointerLeave: g(t.onPointerLeave, () => {
|
|
117
117
|
n.onTriggerLeave(), c.current = !1;
|
|
@@ -129,45 +129,45 @@ var L = "TooltipTrigger", U = s.forwardRef(
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
U.displayName = L;
|
|
132
|
-
var
|
|
132
|
+
var M = "TooltipPortal", [ue, pe] = _(M, {
|
|
133
133
|
forceMount: void 0
|
|
134
134
|
}), V = (t) => {
|
|
135
|
-
const { __scopeTooltip: o, forceMount: e, children: r, container: n } = t, a = R(
|
|
136
|
-
return /* @__PURE__ */ p
|
|
135
|
+
const { __scopeTooltip: o, forceMount: e, children: r, container: n } = t, a = R(M, o);
|
|
136
|
+
return /* @__PURE__ */ p(ue, { scope: o, forceMount: e, children: /* @__PURE__ */ p(G, { present: e || a.open, children: /* @__PURE__ */ p(te, { asChild: !0, container: n, children: r }) }) });
|
|
137
137
|
};
|
|
138
|
-
V.displayName =
|
|
138
|
+
V.displayName = M;
|
|
139
139
|
var b = "TooltipContent", Y = s.forwardRef(
|
|
140
140
|
(t, o) => {
|
|
141
|
-
const e =
|
|
142
|
-
return /* @__PURE__ */ p
|
|
141
|
+
const e = pe(b, t.__scopeTooltip), { forceMount: r = e.forceMount, side: n = "top", ...a } = t, l = R(b, t.__scopeTooltip);
|
|
142
|
+
return /* @__PURE__ */ p(G, { present: r || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ p(q, { side: n, ...a, ref: o }) : /* @__PURE__ */ p(de, { side: n, ...a, ref: o }) });
|
|
143
143
|
}
|
|
144
|
-
),
|
|
145
|
-
const e = R(b, t.__scopeTooltip), r =
|
|
144
|
+
), de = s.forwardRef((t, o) => {
|
|
145
|
+
const e = R(b, t.__scopeTooltip), r = k(b, t.__scopeTooltip), n = s.useRef(null), a = N(o, n), [l, v] = s.useState(null), { trigger: i, onClose: d } = e, c = n.current, { onPointerInTransitChange: f } = r, m = s.useCallback(() => {
|
|
146
146
|
v(null), f(!1);
|
|
147
147
|
}, [f]), u = s.useCallback(
|
|
148
|
-
(h,
|
|
149
|
-
const
|
|
148
|
+
(h, C) => {
|
|
149
|
+
const T = h.currentTarget, x = { x: h.clientX, y: h.clientY }, y = me(x, T.getBoundingClientRect()), w = Te(x, y), P = Ce(C.getBoundingClientRect()), E = xe([...w, ...P]);
|
|
150
150
|
v(E), f(!0);
|
|
151
151
|
},
|
|
152
152
|
[f]
|
|
153
153
|
);
|
|
154
|
-
return s.useEffect(() => () =>
|
|
154
|
+
return s.useEffect(() => () => m(), [m]), s.useEffect(() => {
|
|
155
155
|
if (i && c) {
|
|
156
|
-
const h = (
|
|
157
|
-
return i.addEventListener("pointerleave", h), c.addEventListener("pointerleave",
|
|
158
|
-
i.removeEventListener("pointerleave", h), c.removeEventListener("pointerleave",
|
|
156
|
+
const h = (T) => u(T, c), C = (T) => u(T, i);
|
|
157
|
+
return i.addEventListener("pointerleave", h), c.addEventListener("pointerleave", C), () => {
|
|
158
|
+
i.removeEventListener("pointerleave", h), c.removeEventListener("pointerleave", C);
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
}, [i, c, u,
|
|
161
|
+
}, [i, c, u, m]), s.useEffect(() => {
|
|
162
162
|
if (l) {
|
|
163
|
-
const h = (
|
|
164
|
-
const
|
|
165
|
-
|
|
163
|
+
const h = (C) => {
|
|
164
|
+
const T = C.target, x = { x: C.clientX, y: C.clientY }, y = (i == null ? void 0 : i.contains(T)) || (c == null ? void 0 : c.contains(T)), w = !ye(x, l);
|
|
165
|
+
y ? m() : w && (m(), d());
|
|
166
166
|
};
|
|
167
167
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
168
168
|
}
|
|
169
|
-
}, [i, c, l, d,
|
|
170
|
-
}), [
|
|
169
|
+
}, [i, c, l, d, m]), /* @__PURE__ */ p(q, { ...t, ref: a });
|
|
170
|
+
}), [fe, ve] = _(D, { isInside: !1 }), he = re("TooltipContent"), q = s.forwardRef(
|
|
171
171
|
(t, o) => {
|
|
172
172
|
const {
|
|
173
173
|
__scopeTooltip: e,
|
|
@@ -179,13 +179,13 @@ var b = "TooltipContent", Y = s.forwardRef(
|
|
|
179
179
|
} = t, i = R(b, e), d = A(e), { onClose: c } = i;
|
|
180
180
|
return s.useEffect(() => (document.addEventListener(O, c), () => document.removeEventListener(O, c)), [c]), s.useEffect(() => {
|
|
181
181
|
if (i.trigger) {
|
|
182
|
-
const f = (
|
|
183
|
-
const u =
|
|
182
|
+
const f = (m) => {
|
|
183
|
+
const u = m.target;
|
|
184
184
|
u != null && u.contains(i.trigger) && c();
|
|
185
185
|
};
|
|
186
186
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
187
187
|
}
|
|
188
|
-
}, [i.trigger, c]), /* @__PURE__ */ p
|
|
188
|
+
}, [i.trigger, c]), /* @__PURE__ */ p(
|
|
189
189
|
$,
|
|
190
190
|
{
|
|
191
191
|
asChild: !0,
|
|
@@ -194,7 +194,7 @@ var b = "TooltipContent", Y = s.forwardRef(
|
|
|
194
194
|
onPointerDownOutside: l,
|
|
195
195
|
onFocusOutside: (f) => f.preventDefault(),
|
|
196
196
|
onDismiss: c,
|
|
197
|
-
children: /* @__PURE__ */
|
|
197
|
+
children: /* @__PURE__ */ ie(
|
|
198
198
|
ee,
|
|
199
199
|
{
|
|
200
200
|
"data-state": i.stateAttribute,
|
|
@@ -210,8 +210,8 @@ var b = "TooltipContent", Y = s.forwardRef(
|
|
|
210
210
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
211
211
|
},
|
|
212
212
|
children: [
|
|
213
|
-
/* @__PURE__ */ p
|
|
214
|
-
/* @__PURE__ */ p
|
|
213
|
+
/* @__PURE__ */ p(he, { children: r }),
|
|
214
|
+
/* @__PURE__ */ p(fe, { scope: e, isInside: !0, children: /* @__PURE__ */ p(se, { id: i.contentId, role: "tooltip", children: n || r }) })
|
|
215
215
|
]
|
|
216
216
|
}
|
|
217
217
|
)
|
|
@@ -223,14 +223,14 @@ Y.displayName = b;
|
|
|
223
223
|
var X = "TooltipArrow", K = s.forwardRef(
|
|
224
224
|
(t, o) => {
|
|
225
225
|
const { __scopeTooltip: e, ...r } = t, n = A(e);
|
|
226
|
-
return
|
|
226
|
+
return ve(
|
|
227
227
|
X,
|
|
228
228
|
e
|
|
229
|
-
).isInside ? null : /* @__PURE__ */ p
|
|
229
|
+
).isInside ? null : /* @__PURE__ */ p(Z, { ...n, ...r, ref: o });
|
|
230
230
|
}
|
|
231
231
|
);
|
|
232
232
|
K.displayName = X;
|
|
233
|
-
function
|
|
233
|
+
function me(t, o) {
|
|
234
234
|
const e = Math.abs(o.top - t.y), r = Math.abs(o.bottom - t.y), n = Math.abs(o.right - t.x), a = Math.abs(o.left - t.x);
|
|
235
235
|
switch (Math.min(e, r, n, a)) {
|
|
236
236
|
case a:
|
|
@@ -245,7 +245,7 @@ function he(t, o) {
|
|
|
245
245
|
throw new Error("unreachable");
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Te(t, o, e = 5) {
|
|
249
249
|
const r = [];
|
|
250
250
|
switch (o) {
|
|
251
251
|
case "top":
|
|
@@ -275,7 +275,7 @@ function xe(t, o, e = 5) {
|
|
|
275
275
|
}
|
|
276
276
|
return r;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Ce(t) {
|
|
279
279
|
const { top: o, right: e, bottom: r, left: n } = t;
|
|
280
280
|
return [
|
|
281
281
|
{ x: n, y: o },
|
|
@@ -284,7 +284,7 @@ function me(t) {
|
|
|
284
284
|
{ x: n, y: r }
|
|
285
285
|
];
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function ye(t, o) {
|
|
288
288
|
const { x: e, y: r } = t;
|
|
289
289
|
let n = !1;
|
|
290
290
|
for (let a = 0, l = o.length - 1; a < o.length; l = a++) {
|
|
@@ -293,11 +293,11 @@ function Te(t, o) {
|
|
|
293
293
|
}
|
|
294
294
|
return n;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function xe(t) {
|
|
297
297
|
const o = t.slice();
|
|
298
|
-
return o.sort((e, r) => e.x < r.x ? -1 : e.x > r.x ? 1 : e.y < r.y ? -1 : e.y > r.y ? 1 : 0),
|
|
298
|
+
return o.sort((e, r) => e.x < r.x ? -1 : e.x > r.x ? 1 : e.y < r.y ? -1 : e.y > r.y ? 1 : 0), ge(o);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function ge(t) {
|
|
301
301
|
if (t.length <= 1) return t.slice();
|
|
302
302
|
const o = [];
|
|
303
303
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -322,19 +322,19 @@ function ye(t) {
|
|
|
322
322
|
}
|
|
323
323
|
return e.pop(), o.length === 1 && e.length === 1 && o[0].x === e[0].x && o[0].y === e[0].y ? o : o.concat(e);
|
|
324
324
|
}
|
|
325
|
-
var
|
|
325
|
+
var Ne = j, Se = B, Ge = U, Fe = V, je = Y, Be = K;
|
|
326
326
|
export {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
Be as Arrow,
|
|
328
|
+
je as Content,
|
|
329
|
+
Fe as Portal,
|
|
330
|
+
Ne as Provider,
|
|
331
|
+
Se as Root,
|
|
332
332
|
B as Tooltip,
|
|
333
333
|
K as TooltipArrow,
|
|
334
334
|
Y as TooltipContent,
|
|
335
335
|
V as TooltipPortal,
|
|
336
|
-
|
|
336
|
+
j as TooltipProvider,
|
|
337
337
|
U as TooltipTrigger,
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
Ge as Trigger,
|
|
339
|
+
He as createTooltipScope
|
|
340
340
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { Primitive as o } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
var d = "VisuallyHidden", e = a.forwardRef(
|
|
6
|
-
(r, i) => /* @__PURE__ */ t
|
|
6
|
+
(r, i) => /* @__PURE__ */ t(
|
|
7
7
|
o.span,
|
|
8
8
|
{
|
|
9
9
|
...r,
|
|
@@ -26,8 +26,8 @@ var d = "VisuallyHidden", e = a.forwardRef(
|
|
|
26
26
|
)
|
|
27
27
|
);
|
|
28
28
|
e.displayName = d;
|
|
29
|
-
var
|
|
29
|
+
var m = e;
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
m as Root,
|
|
32
32
|
e as VisuallyHidden
|
|
33
33
|
};
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index2.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|