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,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Primitive as
|
|
4
|
-
import { Presence as
|
|
3
|
+
import { Primitive as L } from "../../react-primitive/dist/index.js";
|
|
4
|
+
import { Presence as X } from "../../react-presence/dist/index.js";
|
|
5
5
|
import { createContextScope as te } from "../../react-context/dist/index.js";
|
|
6
|
-
import { useComposedRefs as
|
|
7
|
-
import { useCallbackRef as
|
|
6
|
+
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
|
|
7
|
+
import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.js";
|
|
8
8
|
import { useDirection as ne } from "../../react-direction/dist/index.js";
|
|
9
9
|
import { useLayoutEffect as le } from "../../react-use-layout-effect/dist/index.js";
|
|
10
10
|
import { clamp as ie } from "../../number/dist/index.js";
|
|
11
11
|
import { composeEventHandlers as C } from "../../primitive/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
function
|
|
12
|
+
import { jsx as h, jsxs as ae, Fragment as se } from "react/jsx-runtime";
|
|
13
|
+
function ce(e, t) {
|
|
14
14
|
return i.useReducer((r, l) => t[r][l] ?? r, e);
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var I = "ScrollArea", [B, ze] = te(I), [de, b] = B(I), j = i.forwardRef(
|
|
17
17
|
(e, t) => {
|
|
18
18
|
const {
|
|
19
19
|
__scopeScrollArea: r,
|
|
@@ -21,9 +21,9 @@ var O = "ScrollArea", [F, Le] = te(O), [se, b] = F(O), B = i.forwardRef(
|
|
|
21
21
|
dir: o,
|
|
22
22
|
scrollHideDelay: n = 600,
|
|
23
23
|
...a
|
|
24
|
-
} = e, [s, c] = i.useState(null), [f, d] = i.useState(null), [p, u] = i.useState(null), [w, m] = i.useState(null), [
|
|
25
|
-
return /* @__PURE__ */ h
|
|
26
|
-
|
|
24
|
+
} = e, [s, c] = i.useState(null), [f, d] = i.useState(null), [p, u] = i.useState(null), [w, m] = i.useState(null), [O, U] = i.useState(null), [E, A] = i.useState(0), [$, D] = i.useState(0), [x, P] = i.useState(!1), [z, H] = i.useState(!1), v = R(t, (_) => c(_)), S = ne(o);
|
|
25
|
+
return /* @__PURE__ */ h(
|
|
26
|
+
de,
|
|
27
27
|
{
|
|
28
28
|
scope: r,
|
|
29
29
|
type: l,
|
|
@@ -36,16 +36,16 @@ var O = "ScrollArea", [F, Le] = te(O), [se, b] = F(O), B = i.forwardRef(
|
|
|
36
36
|
onContentChange: u,
|
|
37
37
|
scrollbarX: w,
|
|
38
38
|
onScrollbarXChange: m,
|
|
39
|
-
scrollbarXEnabled:
|
|
40
|
-
onScrollbarXEnabledChange:
|
|
41
|
-
scrollbarY:
|
|
42
|
-
onScrollbarYChange:
|
|
43
|
-
scrollbarYEnabled:
|
|
44
|
-
onScrollbarYEnabledChange:
|
|
39
|
+
scrollbarXEnabled: x,
|
|
40
|
+
onScrollbarXEnabledChange: P,
|
|
41
|
+
scrollbarY: O,
|
|
42
|
+
onScrollbarYChange: U,
|
|
43
|
+
scrollbarYEnabled: z,
|
|
44
|
+
onScrollbarYEnabledChange: H,
|
|
45
45
|
onCornerWidthChange: A,
|
|
46
|
-
onCornerHeightChange:
|
|
47
|
-
children: /* @__PURE__ */ h
|
|
48
|
-
|
|
46
|
+
onCornerHeightChange: D,
|
|
47
|
+
children: /* @__PURE__ */ h(
|
|
48
|
+
L.div,
|
|
49
49
|
{
|
|
50
50
|
dir: S,
|
|
51
51
|
...a,
|
|
@@ -53,8 +53,8 @@ var O = "ScrollArea", [F, Le] = te(O), [se, b] = F(O), B = i.forwardRef(
|
|
|
53
53
|
style: {
|
|
54
54
|
position: "relative",
|
|
55
55
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
56
|
-
"--radix-scroll-area-corner-width":
|
|
57
|
-
"--radix-scroll-area-corner-height":
|
|
56
|
+
"--radix-scroll-area-corner-width": E + "px",
|
|
57
|
+
"--radix-scroll-area-corner-height": $ + "px",
|
|
58
58
|
...e.style
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -63,12 +63,12 @@ var O = "ScrollArea", [F, Le] = te(O), [se, b] = F(O), B = i.forwardRef(
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
j.displayName = I;
|
|
67
67
|
var q = "ScrollAreaViewport", G = i.forwardRef(
|
|
68
68
|
(e, t) => {
|
|
69
|
-
const { __scopeScrollArea: r, children: l, nonce: o, ...n } = e, a = b(q, r), s = i.useRef(null), c =
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */ h
|
|
69
|
+
const { __scopeScrollArea: r, children: l, nonce: o, ...n } = e, a = b(q, r), s = i.useRef(null), c = R(t, s, a.onViewportChange);
|
|
70
|
+
return /* @__PURE__ */ ae(se, { children: [
|
|
71
|
+
/* @__PURE__ */ h(
|
|
72
72
|
"style",
|
|
73
73
|
{
|
|
74
74
|
dangerouslySetInnerHTML: {
|
|
@@ -77,8 +77,8 @@ var q = "ScrollAreaViewport", G = i.forwardRef(
|
|
|
77
77
|
nonce: o
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
/* @__PURE__ */ h
|
|
81
|
-
|
|
80
|
+
/* @__PURE__ */ h(
|
|
81
|
+
L.div,
|
|
82
82
|
{
|
|
83
83
|
"data-radix-scroll-area-viewport": "",
|
|
84
84
|
...n,
|
|
@@ -99,23 +99,23 @@ var q = "ScrollAreaViewport", G = i.forwardRef(
|
|
|
99
99
|
overflowY: a.scrollbarYEnabled ? "scroll" : "hidden",
|
|
100
100
|
...e.style
|
|
101
101
|
},
|
|
102
|
-
children: /* @__PURE__ */ h
|
|
102
|
+
children: /* @__PURE__ */ h("div", { ref: a.onContentChange, style: { minWidth: "100%", display: "table" }, children: l })
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
] });
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
G.displayName = q;
|
|
109
|
-
var g = "ScrollAreaScrollbar",
|
|
109
|
+
var g = "ScrollAreaScrollbar", ue = i.forwardRef(
|
|
110
110
|
(e, t) => {
|
|
111
111
|
const { forceMount: r, ...l } = e, o = b(g, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: a } = o, s = e.orientation === "horizontal";
|
|
112
112
|
return i.useEffect(() => (s ? n(!0) : a(!0), () => {
|
|
113
113
|
s ? n(!1) : a(!1);
|
|
114
|
-
}), [s, n, a]), o.type === "hover" ? /* @__PURE__ */ h
|
|
114
|
+
}), [s, n, a]), o.type === "hover" ? /* @__PURE__ */ h(fe, { ...l, ref: t, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ h(pe, { ...l, ref: t, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ h(J, { ...l, ref: t, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ h(k, { ...l, ref: t }) : null;
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
|
|
118
|
-
var
|
|
117
|
+
ue.displayName = g;
|
|
118
|
+
var fe = i.forwardRef((e, t) => {
|
|
119
119
|
const { forceMount: r, ...l } = e, o = b(g, e.__scopeScrollArea), [n, a] = i.useState(!1);
|
|
120
120
|
return i.useEffect(() => {
|
|
121
121
|
const s = o.scrollArea;
|
|
@@ -130,7 +130,7 @@ var de = i.forwardRef((e, t) => {
|
|
|
130
130
|
window.clearTimeout(c), s.removeEventListener("pointerenter", f), s.removeEventListener("pointerleave", d);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ h
|
|
133
|
+
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ h(X, { present: r || n, children: /* @__PURE__ */ h(
|
|
134
134
|
J,
|
|
135
135
|
{
|
|
136
136
|
"data-state": n ? "visible" : "hidden",
|
|
@@ -138,8 +138,8 @@ var de = i.forwardRef((e, t) => {
|
|
|
138
138
|
ref: t
|
|
139
139
|
}
|
|
140
140
|
) });
|
|
141
|
-
}),
|
|
142
|
-
const { forceMount: r, ...l } = e, o = b(g, e.__scopeScrollArea), n = e.orientation === "horizontal", a =
|
|
141
|
+
}), pe = i.forwardRef((e, t) => {
|
|
142
|
+
const { forceMount: r, ...l } = e, o = b(g, e.__scopeScrollArea), n = e.orientation === "horizontal", a = M(() => c("SCROLL_END"), 100), [s, c] = ce("hidden", {
|
|
143
143
|
hidden: {
|
|
144
144
|
SCROLL: "scrolling"
|
|
145
145
|
},
|
|
@@ -172,8 +172,8 @@ var de = i.forwardRef((e, t) => {
|
|
|
172
172
|
};
|
|
173
173
|
return f.addEventListener("scroll", u), () => f.removeEventListener("scroll", u);
|
|
174
174
|
}
|
|
175
|
-
}, [o.viewport, n, c, a]), /* @__PURE__ */ h
|
|
176
|
-
|
|
175
|
+
}, [o.viewport, n, c, a]), /* @__PURE__ */ h(X, { present: r || s !== "hidden", children: /* @__PURE__ */ h(
|
|
176
|
+
k,
|
|
177
177
|
{
|
|
178
178
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
179
179
|
...l,
|
|
@@ -183,21 +183,21 @@ var de = i.forwardRef((e, t) => {
|
|
|
183
183
|
}
|
|
184
184
|
) });
|
|
185
185
|
}), J = i.forwardRef((e, t) => {
|
|
186
|
-
const r = b(g, e.__scopeScrollArea), { forceMount: l, ...o } = e, [n, a] = i.useState(!1), s = e.orientation === "horizontal", c =
|
|
186
|
+
const r = b(g, e.__scopeScrollArea), { forceMount: l, ...o } = e, [n, a] = i.useState(!1), s = e.orientation === "horizontal", c = M(() => {
|
|
187
187
|
if (r.viewport) {
|
|
188
188
|
const f = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
189
189
|
a(s ? f : d);
|
|
190
190
|
}
|
|
191
191
|
}, 10);
|
|
192
|
-
return T(r.viewport, c), T(r.content, c), /* @__PURE__ */ h
|
|
193
|
-
|
|
192
|
+
return T(r.viewport, c), T(r.content, c), /* @__PURE__ */ h(X, { present: l || n, children: /* @__PURE__ */ h(
|
|
193
|
+
k,
|
|
194
194
|
{
|
|
195
195
|
"data-state": n ? "visible" : "hidden",
|
|
196
196
|
...o,
|
|
197
197
|
ref: t
|
|
198
198
|
}
|
|
199
199
|
) });
|
|
200
|
-
}),
|
|
200
|
+
}), k = i.forwardRef((e, t) => {
|
|
201
201
|
const { orientation: r = "vertical", ...l } = e, o = b(g, e.__scopeScrollArea), n = i.useRef(null), a = i.useRef(0), [s, c] = i.useState({
|
|
202
202
|
content: 0,
|
|
203
203
|
viewport: 0,
|
|
@@ -212,16 +212,16 @@ var de = i.forwardRef((e, t) => {
|
|
|
212
212
|
onThumbPointerDown: (u) => a.current = u
|
|
213
213
|
};
|
|
214
214
|
function p(u, w) {
|
|
215
|
-
return
|
|
215
|
+
return ge(u, a.current, s, w);
|
|
216
216
|
}
|
|
217
|
-
return r === "horizontal" ? /* @__PURE__ */ h
|
|
218
|
-
|
|
217
|
+
return r === "horizontal" ? /* @__PURE__ */ h(
|
|
218
|
+
he,
|
|
219
219
|
{
|
|
220
220
|
...d,
|
|
221
221
|
ref: t,
|
|
222
222
|
onThumbPositionChange: () => {
|
|
223
223
|
if (o.viewport && n.current) {
|
|
224
|
-
const u = o.viewport.scrollLeft, w =
|
|
224
|
+
const u = o.viewport.scrollLeft, w = F(u, s, o.dir);
|
|
225
225
|
n.current.style.transform = `translate3d(${w}px, 0, 0)`;
|
|
226
226
|
}
|
|
227
227
|
},
|
|
@@ -232,14 +232,14 @@ var de = i.forwardRef((e, t) => {
|
|
|
232
232
|
o.viewport && (o.viewport.scrollLeft = p(u, o.dir));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
) : r === "vertical" ? /* @__PURE__ */ h
|
|
236
|
-
|
|
235
|
+
) : r === "vertical" ? /* @__PURE__ */ h(
|
|
236
|
+
we,
|
|
237
237
|
{
|
|
238
238
|
...d,
|
|
239
239
|
ref: t,
|
|
240
240
|
onThumbPositionChange: () => {
|
|
241
241
|
if (o.viewport && n.current) {
|
|
242
|
-
const u = o.viewport.scrollTop, w =
|
|
242
|
+
const u = o.viewport.scrollTop, w = F(u, s);
|
|
243
243
|
n.current.style.transform = `translate3d(0, ${w}px, 0)`;
|
|
244
244
|
}
|
|
245
245
|
},
|
|
@@ -251,11 +251,11 @@ var de = i.forwardRef((e, t) => {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
) : null;
|
|
254
|
-
}),
|
|
255
|
-
const { sizes: r, onSizesChange: l, ...o } = e, n = b(g, e.__scopeScrollArea), [a, s] = i.useState(), c = i.useRef(null), f =
|
|
254
|
+
}), he = i.forwardRef((e, t) => {
|
|
255
|
+
const { sizes: r, onSizesChange: l, ...o } = e, n = b(g, e.__scopeScrollArea), [a, s] = i.useState(), c = i.useRef(null), f = R(t, c, n.onScrollbarXChange);
|
|
256
256
|
return i.useEffect(() => {
|
|
257
257
|
c.current && s(getComputedStyle(c.current));
|
|
258
|
-
}, [c]), /* @__PURE__ */ h
|
|
258
|
+
}, [c]), /* @__PURE__ */ h(
|
|
259
259
|
Q,
|
|
260
260
|
{
|
|
261
261
|
"data-orientation": "horizontal",
|
|
@@ -266,7 +266,7 @@ var de = i.forwardRef((e, t) => {
|
|
|
266
266
|
bottom: 0,
|
|
267
267
|
left: n.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
268
268
|
right: n.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
269
|
-
"--radix-scroll-area-thumb-width":
|
|
269
|
+
"--radix-scroll-area-thumb-width": Y(r) + "px",
|
|
270
270
|
...e.style
|
|
271
271
|
},
|
|
272
272
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
|
|
@@ -283,18 +283,18 @@ var de = i.forwardRef((e, t) => {
|
|
|
283
283
|
viewport: n.viewport.offsetWidth,
|
|
284
284
|
scrollbar: {
|
|
285
285
|
size: c.current.clientWidth,
|
|
286
|
-
paddingStart:
|
|
287
|
-
paddingEnd:
|
|
286
|
+
paddingStart: W(a.paddingLeft),
|
|
287
|
+
paddingEnd: W(a.paddingRight)
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
|
-
}),
|
|
294
|
-
const { sizes: r, onSizesChange: l, ...o } = e, n = b(g, e.__scopeScrollArea), [a, s] = i.useState(), c = i.useRef(null), f =
|
|
293
|
+
}), we = i.forwardRef((e, t) => {
|
|
294
|
+
const { sizes: r, onSizesChange: l, ...o } = e, n = b(g, e.__scopeScrollArea), [a, s] = i.useState(), c = i.useRef(null), f = R(t, c, n.onScrollbarYChange);
|
|
295
295
|
return i.useEffect(() => {
|
|
296
296
|
c.current && s(getComputedStyle(c.current));
|
|
297
|
-
}, [c]), /* @__PURE__ */ h
|
|
297
|
+
}, [c]), /* @__PURE__ */ h(
|
|
298
298
|
Q,
|
|
299
299
|
{
|
|
300
300
|
"data-orientation": "vertical",
|
|
@@ -306,7 +306,7 @@ var de = i.forwardRef((e, t) => {
|
|
|
306
306
|
right: n.dir === "ltr" ? 0 : void 0,
|
|
307
307
|
left: n.dir === "rtl" ? 0 : void 0,
|
|
308
308
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
309
|
-
"--radix-scroll-area-thumb-height":
|
|
309
|
+
"--radix-scroll-area-thumb-height": Y(r) + "px",
|
|
310
310
|
...e.style
|
|
311
311
|
},
|
|
312
312
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
|
|
@@ -323,14 +323,14 @@ var de = i.forwardRef((e, t) => {
|
|
|
323
323
|
viewport: n.viewport.offsetHeight,
|
|
324
324
|
scrollbar: {
|
|
325
325
|
size: c.current.clientHeight,
|
|
326
|
-
paddingStart:
|
|
327
|
-
paddingEnd:
|
|
326
|
+
paddingStart: W(a.paddingTop),
|
|
327
|
+
paddingEnd: W(a.paddingBottom)
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
|
-
}), [
|
|
333
|
+
}), [ve, K] = B(g), Q = i.forwardRef((e, t) => {
|
|
334
334
|
const {
|
|
335
335
|
__scopeScrollArea: r,
|
|
336
336
|
sizes: l,
|
|
@@ -343,58 +343,58 @@ var de = i.forwardRef((e, t) => {
|
|
|
343
343
|
onWheelScroll: d,
|
|
344
344
|
onResize: p,
|
|
345
345
|
...u
|
|
346
|
-
} = e, w = b(g, r), [m,
|
|
347
|
-
function
|
|
348
|
-
if (
|
|
349
|
-
const S = v.clientX -
|
|
350
|
-
f({ x: S, y:
|
|
346
|
+
} = e, w = b(g, r), [m, O] = i.useState(null), U = R(t, (v) => O(v)), E = i.useRef(null), A = i.useRef(""), $ = w.viewport, D = l.content - l.viewport, x = y(d), P = y(c), z = M(p, 10);
|
|
347
|
+
function H(v) {
|
|
348
|
+
if (E.current) {
|
|
349
|
+
const S = v.clientX - E.current.left, _ = v.clientY - E.current.top;
|
|
350
|
+
f({ x: S, y: _ });
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
return i.useEffect(() => {
|
|
354
354
|
const v = (S) => {
|
|
355
|
-
const
|
|
356
|
-
m != null && m.contains(
|
|
355
|
+
const _ = S.target;
|
|
356
|
+
m != null && m.contains(_) && x(S, D);
|
|
357
357
|
};
|
|
358
358
|
return document.addEventListener("wheel", v, { passive: !1 }), () => document.removeEventListener("wheel", v, { passive: !1 });
|
|
359
|
-
}, [
|
|
360
|
-
|
|
359
|
+
}, [$, m, D, x]), i.useEffect(P, [l, P]), T(m, z), T(w.content, z), /* @__PURE__ */ h(
|
|
360
|
+
ve,
|
|
361
361
|
{
|
|
362
362
|
scope: r,
|
|
363
363
|
scrollbar: m,
|
|
364
364
|
hasThumb: o,
|
|
365
|
-
onThumbChange:
|
|
366
|
-
onThumbPointerUp:
|
|
367
|
-
onThumbPositionChange:
|
|
368
|
-
onThumbPointerDown:
|
|
369
|
-
children: /* @__PURE__ */ h
|
|
370
|
-
|
|
365
|
+
onThumbChange: y(n),
|
|
366
|
+
onThumbPointerUp: y(a),
|
|
367
|
+
onThumbPositionChange: P,
|
|
368
|
+
onThumbPointerDown: y(s),
|
|
369
|
+
children: /* @__PURE__ */ h(
|
|
370
|
+
L.div,
|
|
371
371
|
{
|
|
372
372
|
...u,
|
|
373
|
-
ref:
|
|
373
|
+
ref: U,
|
|
374
374
|
style: { position: "absolute", ...u.style },
|
|
375
375
|
onPointerDown: C(e.onPointerDown, (v) => {
|
|
376
|
-
v.button === 0 && (v.target.setPointerCapture(v.pointerId),
|
|
376
|
+
v.button === 0 && (v.target.setPointerCapture(v.pointerId), E.current = m.getBoundingClientRect(), A.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", w.viewport && (w.viewport.style.scrollBehavior = "auto"), H(v));
|
|
377
377
|
}),
|
|
378
|
-
onPointerMove: C(e.onPointerMove,
|
|
378
|
+
onPointerMove: C(e.onPointerMove, H),
|
|
379
379
|
onPointerUp: C(e.onPointerUp, (v) => {
|
|
380
380
|
const S = v.target;
|
|
381
|
-
S.hasPointerCapture(v.pointerId) && S.releasePointerCapture(v.pointerId), document.body.style.webkitUserSelect = A.current, w.viewport && (w.viewport.style.scrollBehavior = ""),
|
|
381
|
+
S.hasPointerCapture(v.pointerId) && S.releasePointerCapture(v.pointerId), document.body.style.webkitUserSelect = A.current, w.viewport && (w.viewport.style.scrollBehavior = ""), E.current = null;
|
|
382
382
|
})
|
|
383
383
|
}
|
|
384
384
|
)
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
|
-
}),
|
|
387
|
+
}), N = "ScrollAreaThumb", be = i.forwardRef(
|
|
388
388
|
(e, t) => {
|
|
389
|
-
const { forceMount: r, ...l } = e, o = K(
|
|
390
|
-
return /* @__PURE__ */ h
|
|
389
|
+
const { forceMount: r, ...l } = e, o = K(N, e.__scopeScrollArea);
|
|
390
|
+
return /* @__PURE__ */ h(X, { present: r || o.hasThumb, children: /* @__PURE__ */ h(me, { ref: t, ...l }) });
|
|
391
391
|
}
|
|
392
|
-
),
|
|
392
|
+
), me = i.forwardRef(
|
|
393
393
|
(e, t) => {
|
|
394
|
-
const { __scopeScrollArea: r, style: l, ...o } = e, n = b(
|
|
394
|
+
const { __scopeScrollArea: r, style: l, ...o } = e, n = b(N, r), a = K(N, r), { onThumbPositionChange: s } = a, c = R(
|
|
395
395
|
t,
|
|
396
396
|
(p) => a.onThumbChange(p)
|
|
397
|
-
), f = i.useRef(void 0), d =
|
|
397
|
+
), f = i.useRef(void 0), d = M(() => {
|
|
398
398
|
f.current && (f.current(), f.current = void 0);
|
|
399
399
|
}, 100);
|
|
400
400
|
return i.useEffect(() => {
|
|
@@ -402,14 +402,14 @@ var de = i.forwardRef((e, t) => {
|
|
|
402
402
|
if (p) {
|
|
403
403
|
const u = () => {
|
|
404
404
|
if (d(), !f.current) {
|
|
405
|
-
const w =
|
|
405
|
+
const w = Ee(p, s);
|
|
406
406
|
f.current = w, s();
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
return s(), p.addEventListener("scroll", u), () => p.removeEventListener("scroll", u);
|
|
410
410
|
}
|
|
411
|
-
}, [n.viewport, d, s]), /* @__PURE__ */ h
|
|
412
|
-
|
|
411
|
+
}, [n.viewport, d, s]), /* @__PURE__ */ h(
|
|
412
|
+
L.div,
|
|
413
413
|
{
|
|
414
414
|
"data-state": a.hasThumb ? "visible" : "hidden",
|
|
415
415
|
...o,
|
|
@@ -428,16 +428,16 @@ var de = i.forwardRef((e, t) => {
|
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
|
-
|
|
432
|
-
var
|
|
431
|
+
be.displayName = N;
|
|
432
|
+
var V = "ScrollAreaCorner", Z = i.forwardRef(
|
|
433
433
|
(e, t) => {
|
|
434
|
-
const r = b(
|
|
435
|
-
return r.type !== "scroll" && l ? /* @__PURE__ */ h
|
|
434
|
+
const r = b(V, e.__scopeScrollArea), l = !!(r.scrollbarX && r.scrollbarY);
|
|
435
|
+
return r.type !== "scroll" && l ? /* @__PURE__ */ h(Se, { ...e, ref: t }) : null;
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
|
-
Z.displayName =
|
|
439
|
-
var
|
|
440
|
-
const { __scopeScrollArea: r, ...l } = e, o = b(
|
|
438
|
+
Z.displayName = V;
|
|
439
|
+
var Se = i.forwardRef((e, t) => {
|
|
440
|
+
const { __scopeScrollArea: r, ...l } = e, o = b(V, r), [n, a] = i.useState(0), [s, c] = i.useState(0), f = !!(n && s);
|
|
441
441
|
return T(o.scrollbarX, () => {
|
|
442
442
|
var d;
|
|
443
443
|
const p = ((d = o.scrollbarX) == null ? void 0 : d.offsetHeight) || 0;
|
|
@@ -446,8 +446,8 @@ var be = i.forwardRef((e, t) => {
|
|
|
446
446
|
var d;
|
|
447
447
|
const p = ((d = o.scrollbarY) == null ? void 0 : d.offsetWidth) || 0;
|
|
448
448
|
o.onCornerWidthChange(p), a(p);
|
|
449
|
-
}), f ? /* @__PURE__ */ h
|
|
450
|
-
|
|
449
|
+
}), f ? /* @__PURE__ */ h(
|
|
450
|
+
L.div,
|
|
451
451
|
{
|
|
452
452
|
...l,
|
|
453
453
|
ref: t,
|
|
@@ -463,23 +463,23 @@ var be = i.forwardRef((e, t) => {
|
|
|
463
463
|
}
|
|
464
464
|
) : null;
|
|
465
465
|
});
|
|
466
|
-
function
|
|
466
|
+
function W(e) {
|
|
467
467
|
return e ? parseInt(e, 10) : 0;
|
|
468
468
|
}
|
|
469
469
|
function ee(e, t) {
|
|
470
470
|
const r = e / t;
|
|
471
471
|
return isNaN(r) ? 0 : r;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Y(e) {
|
|
474
474
|
const t = ee(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, l = (e.scrollbar.size - r) * t;
|
|
475
475
|
return Math.max(l, 18);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
const o =
|
|
477
|
+
function ge(e, t, r, l = "ltr") {
|
|
478
|
+
const o = Y(r), n = o / 2, a = t || n, s = o - a, c = r.scrollbar.paddingStart + a, f = r.scrollbar.size - r.scrollbar.paddingEnd - s, d = r.content - r.viewport, p = l === "ltr" ? [0, d] : [d * -1, 0];
|
|
479
479
|
return re([c, f], p)(e);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const l =
|
|
481
|
+
function F(e, t, r = "ltr") {
|
|
482
|
+
const l = Y(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, n = t.scrollbar.size - o, a = t.content - t.viewport, s = n - l, c = r === "ltr" ? [0, a] : [a * -1, 0], f = ie(e, c);
|
|
483
483
|
return re([0, a], [0, s])(f);
|
|
484
484
|
}
|
|
485
485
|
function re(e, t) {
|
|
@@ -492,7 +492,7 @@ function re(e, t) {
|
|
|
492
492
|
function oe(e, t) {
|
|
493
493
|
return e > 0 && e < t;
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var Ee = (e, t = () => {
|
|
496
496
|
}) => {
|
|
497
497
|
let r = { left: e.scrollLeft, top: e.scrollTop }, l = 0;
|
|
498
498
|
return function o() {
|
|
@@ -500,14 +500,14 @@ var Se = (e, t = () => {
|
|
|
500
500
|
(a || s) && t(), r = n, l = window.requestAnimationFrame(o);
|
|
501
501
|
}(), () => window.cancelAnimationFrame(l);
|
|
502
502
|
};
|
|
503
|
-
function
|
|
504
|
-
const r =
|
|
503
|
+
function M(e, t) {
|
|
504
|
+
const r = y(e), l = i.useRef(0);
|
|
505
505
|
return i.useEffect(() => () => window.clearTimeout(l.current), []), i.useCallback(() => {
|
|
506
506
|
window.clearTimeout(l.current), l.current = window.setTimeout(r, t);
|
|
507
507
|
}, [r, t]);
|
|
508
508
|
}
|
|
509
509
|
function T(e, t) {
|
|
510
|
-
const r =
|
|
510
|
+
const r = y(t);
|
|
511
511
|
le(() => {
|
|
512
512
|
let l = 0;
|
|
513
513
|
if (e) {
|
|
@@ -520,15 +520,15 @@ function T(e, t) {
|
|
|
520
520
|
}
|
|
521
521
|
}, [e, r]);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var He = j, Ne = G, We = Z;
|
|
524
524
|
export {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
We as Corner,
|
|
526
|
+
He as Root,
|
|
527
|
+
j as ScrollArea,
|
|
528
528
|
Z as ScrollAreaCorner,
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
ue as ScrollAreaScrollbar,
|
|
530
|
+
be as ScrollAreaThumb,
|
|
531
531
|
G as ScrollAreaViewport,
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
Ne as Viewport,
|
|
533
|
+
ze as createScrollAreaScope
|
|
534
534
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { composeRefs as m } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
5
5
|
// @__NO_SIDE_EFFECTS__
|
|
6
|
-
function
|
|
6
|
+
function v(e) {
|
|
7
7
|
const i = /* @__PURE__ */ y(e), o = t.forwardRef((n, r) => {
|
|
8
|
-
const { children: l, ...s } = n, c = t.Children.toArray(l),
|
|
9
|
-
if (
|
|
10
|
-
const a =
|
|
11
|
-
return /* @__PURE__ */
|
|
8
|
+
const { children: l, ...s } = n, c = t.Children.toArray(l), f = c.find(g);
|
|
9
|
+
if (f) {
|
|
10
|
+
const a = f.props.children, u = c.map((d) => d === f ? t.Children.count(a) > 1 ? t.Children.only(null) : t.isValidElement(a) ? a.props.children : null : d);
|
|
11
|
+
return /* @__PURE__ */ p(i, { ...s, ref: r, children: t.isValidElement(a) ? t.cloneElement(a, void 0, u) : null });
|
|
12
12
|
}
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ p(i, { ...s, ref: r, children: l });
|
|
14
14
|
});
|
|
15
15
|
return o.displayName = `${e}.Slot`, o;
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ function y(e) {
|
|
|
19
19
|
const i = t.forwardRef((o, n) => {
|
|
20
20
|
const { children: r, ...l } = o;
|
|
21
21
|
if (t.isValidElement(r)) {
|
|
22
|
-
const s =
|
|
22
|
+
const s = C(r), c = R(l, r.props);
|
|
23
23
|
return r.type !== t.Fragment && (c.ref = n ? m(n, s) : s), t.cloneElement(r, c);
|
|
24
24
|
}
|
|
25
25
|
return t.Children.count(r) > 1 ? t.Children.only(null) : null;
|
|
@@ -40,11 +40,11 @@ function R(e, i) {
|
|
|
40
40
|
}
|
|
41
41
|
return { ...e, ...o };
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function C(e) {
|
|
44
44
|
var i, o;
|
|
45
45
|
let n = (i = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : i.get, r = n && "isReactWarning" in n && n.isReactWarning;
|
|
46
46
|
return r ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
47
47
|
}
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
v as createSlot
|
|
50
50
|
};
|