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,60 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { Primitive as L } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import { Presence as
|
|
4
|
+
import { Presence as I } 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 A } from "../../react-compose-refs/dist/index.js";
|
|
7
|
+
import { useCallbackRef as C } 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 ce } from "../../number/dist/index.js";
|
|
11
|
-
import { composeEventHandlers as
|
|
12
|
-
import {
|
|
13
|
-
function
|
|
11
|
+
import { composeEventHandlers as R } from "../../primitive/dist/index.js";
|
|
12
|
+
import { jsx as b, jsxs as ie, Fragment as se } from "react/jsx-runtime";
|
|
13
|
+
function ae(e, t) {
|
|
14
14
|
return c.useReducer((r, l) => t[r][l] ?? r, e);
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var V = "ScrollArea", [j, He] = te(V), [de, v] = j(V), q = c.forwardRef(
|
|
17
17
|
(e, t) => {
|
|
18
18
|
const {
|
|
19
19
|
__scopeScrollArea: r,
|
|
20
20
|
type: l = "hover",
|
|
21
21
|
dir: o,
|
|
22
22
|
scrollHideDelay: n = 600,
|
|
23
|
-
...
|
|
24
|
-
} = e, [
|
|
25
|
-
return /* @__PURE__ */ b
|
|
26
|
-
|
|
23
|
+
...i
|
|
24
|
+
} = e, [s, a] = c.useState(null), [f, d] = c.useState(null), [h, u] = c.useState(null), [S, p] = c.useState(null), [y, M] = c.useState(null), [P, _] = c.useState(0), [U, D] = c.useState(0), [W, x] = c.useState(!1), [H, z] = c.useState(!1), m = A(t, (E) => a(E)), w = ne(o);
|
|
25
|
+
return /* @__PURE__ */ b(
|
|
26
|
+
de,
|
|
27
27
|
{
|
|
28
28
|
scope: r,
|
|
29
29
|
type: l,
|
|
30
30
|
dir: w,
|
|
31
31
|
scrollHideDelay: n,
|
|
32
|
-
scrollArea:
|
|
32
|
+
scrollArea: s,
|
|
33
33
|
viewport: f,
|
|
34
34
|
onViewportChange: d,
|
|
35
35
|
content: h,
|
|
36
36
|
onContentChange: u,
|
|
37
37
|
scrollbarX: S,
|
|
38
38
|
onScrollbarXChange: p,
|
|
39
|
-
scrollbarXEnabled:
|
|
40
|
-
onScrollbarXEnabledChange:
|
|
41
|
-
scrollbarY:
|
|
42
|
-
onScrollbarYChange:
|
|
43
|
-
scrollbarYEnabled:
|
|
44
|
-
onScrollbarYEnabledChange:
|
|
39
|
+
scrollbarXEnabled: W,
|
|
40
|
+
onScrollbarXEnabledChange: x,
|
|
41
|
+
scrollbarY: y,
|
|
42
|
+
onScrollbarYChange: M,
|
|
43
|
+
scrollbarYEnabled: H,
|
|
44
|
+
onScrollbarYEnabledChange: z,
|
|
45
45
|
onCornerWidthChange: _,
|
|
46
46
|
onCornerHeightChange: D,
|
|
47
|
-
children: /* @__PURE__ */ b
|
|
47
|
+
children: /* @__PURE__ */ b(
|
|
48
48
|
L.div,
|
|
49
49
|
{
|
|
50
50
|
dir: w,
|
|
51
|
-
...
|
|
51
|
+
...i,
|
|
52
52
|
ref: m,
|
|
53
53
|
style: {
|
|
54
54
|
position: "relative",
|
|
55
55
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
56
56
|
"--radix-scroll-area-corner-width": P + "px",
|
|
57
|
-
"--radix-scroll-area-corner-height":
|
|
57
|
+
"--radix-scroll-area-corner-height": U + "px",
|
|
58
58
|
...e.style
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -63,12 +63,12 @@ var U = "ScrollArea", [F, De] = te(U), [ie, v] = F(U), q = c.forwardRef(
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
q.displayName =
|
|
66
|
+
q.displayName = V;
|
|
67
67
|
var $ = "ScrollAreaViewport", G = c.forwardRef(
|
|
68
68
|
(e, t) => {
|
|
69
|
-
const { __scopeScrollArea: r, children: l, nonce: o, ...n } = e,
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */ b
|
|
69
|
+
const { __scopeScrollArea: r, children: l, nonce: o, ...n } = e, i = v($, r), s = c.useRef(null), a = A(t, s, i.onViewportChange);
|
|
70
|
+
return /* @__PURE__ */ ie(se, { children: [
|
|
71
|
+
/* @__PURE__ */ b(
|
|
72
72
|
"style",
|
|
73
73
|
{
|
|
74
74
|
dangerouslySetInnerHTML: {
|
|
@@ -77,7 +77,7 @@ var $ = "ScrollAreaViewport", G = c.forwardRef(
|
|
|
77
77
|
nonce: o
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
/* @__PURE__ */ b
|
|
80
|
+
/* @__PURE__ */ b(
|
|
81
81
|
L.div,
|
|
82
82
|
{
|
|
83
83
|
"data-radix-scroll-area-viewport": "",
|
|
@@ -95,42 +95,42 @@ var $ = "ScrollAreaViewport", G = c.forwardRef(
|
|
|
95
95
|
* the browser from having to work out whether to render native scrollbars or not,
|
|
96
96
|
* we tell it to with the intention of hiding them in CSS.
|
|
97
97
|
*/
|
|
98
|
-
overflowX:
|
|
99
|
-
overflowY:
|
|
98
|
+
overflowX: i.scrollbarXEnabled ? "scroll" : "hidden",
|
|
99
|
+
overflowY: i.scrollbarYEnabled ? "scroll" : "hidden",
|
|
100
100
|
...e.style
|
|
101
101
|
},
|
|
102
|
-
children: /* @__PURE__ */ b
|
|
102
|
+
children: /* @__PURE__ */ b("div", { ref: i.onContentChange, style: { minWidth: "100%", display: "table" }, children: l })
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
] });
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
G.displayName = $;
|
|
109
|
-
var g = "ScrollAreaScrollbar",
|
|
109
|
+
var g = "ScrollAreaScrollbar", ue = c.forwardRef(
|
|
110
110
|
(e, t) => {
|
|
111
|
-
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange:
|
|
112
|
-
return c.useEffect(() => (
|
|
113
|
-
|
|
114
|
-
}), [
|
|
111
|
+
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: i } = o, s = e.orientation === "horizontal";
|
|
112
|
+
return c.useEffect(() => (s ? n(!0) : i(!0), () => {
|
|
113
|
+
s ? n(!1) : i(!1);
|
|
114
|
+
}), [s, n, i]), o.type === "hover" ? /* @__PURE__ */ b(fe, { ...l, ref: t, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ b(he, { ...l, ref: t, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ b(J, { ...l, ref: t, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ b(k, { ...l, ref: t }) : null;
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
|
|
118
|
-
var
|
|
119
|
-
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), [n,
|
|
117
|
+
ue.displayName = g;
|
|
118
|
+
var fe = c.forwardRef((e, t) => {
|
|
119
|
+
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), [n, i] = c.useState(!1);
|
|
120
120
|
return c.useEffect(() => {
|
|
121
|
-
const
|
|
121
|
+
const s = o.scrollArea;
|
|
122
122
|
let a = 0;
|
|
123
|
-
if (
|
|
123
|
+
if (s) {
|
|
124
124
|
const f = () => {
|
|
125
|
-
window.clearTimeout(a),
|
|
125
|
+
window.clearTimeout(a), i(!0);
|
|
126
126
|
}, d = () => {
|
|
127
|
-
a = window.setTimeout(() =>
|
|
127
|
+
a = window.setTimeout(() => i(!1), o.scrollHideDelay);
|
|
128
128
|
};
|
|
129
|
-
return
|
|
130
|
-
window.clearTimeout(a),
|
|
129
|
+
return s.addEventListener("pointerenter", f), s.addEventListener("pointerleave", d), () => {
|
|
130
|
+
window.clearTimeout(a), s.removeEventListener("pointerenter", f), s.removeEventListener("pointerleave", d);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ b
|
|
133
|
+
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ b(I, { present: r || n, children: /* @__PURE__ */ b(
|
|
134
134
|
J,
|
|
135
135
|
{
|
|
136
136
|
"data-state": n ? "visible" : "hidden",
|
|
@@ -138,8 +138,8 @@ var de = c.forwardRef((e, t) => {
|
|
|
138
138
|
ref: t
|
|
139
139
|
}
|
|
140
140
|
) });
|
|
141
|
-
}),
|
|
142
|
-
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), n = e.orientation === "horizontal",
|
|
141
|
+
}), he = c.forwardRef((e, t) => {
|
|
142
|
+
const { forceMount: r, ...l } = e, o = v(g, e.__scopeScrollArea), n = e.orientation === "horizontal", i = Y(() => a("SCROLL_END"), 100), [s, a] = ae("hidden", {
|
|
143
143
|
hidden: {
|
|
144
144
|
SCROLL: "scrolling"
|
|
145
145
|
},
|
|
@@ -158,70 +158,70 @@ var de = c.forwardRef((e, t) => {
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
return c.useEffect(() => {
|
|
161
|
-
if (
|
|
161
|
+
if (s === "idle") {
|
|
162
162
|
const f = window.setTimeout(() => a("HIDE"), o.scrollHideDelay);
|
|
163
163
|
return () => window.clearTimeout(f);
|
|
164
164
|
}
|
|
165
|
-
}, [
|
|
165
|
+
}, [s, o.scrollHideDelay, a]), c.useEffect(() => {
|
|
166
166
|
const f = o.viewport, d = n ? "scrollLeft" : "scrollTop";
|
|
167
167
|
if (f) {
|
|
168
168
|
let h = f[d];
|
|
169
169
|
const u = () => {
|
|
170
170
|
const S = f[d];
|
|
171
|
-
h !== S && (a("SCROLL"),
|
|
171
|
+
h !== S && (a("SCROLL"), i()), h = S;
|
|
172
172
|
};
|
|
173
173
|
return f.addEventListener("scroll", u), () => f.removeEventListener("scroll", u);
|
|
174
174
|
}
|
|
175
|
-
}, [o.viewport, n, a,
|
|
176
|
-
|
|
175
|
+
}, [o.viewport, n, a, i]), /* @__PURE__ */ b(I, { present: r || s !== "hidden", children: /* @__PURE__ */ b(
|
|
176
|
+
k,
|
|
177
177
|
{
|
|
178
|
-
"data-state":
|
|
178
|
+
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
179
179
|
...l,
|
|
180
180
|
ref: t,
|
|
181
|
-
onPointerEnter:
|
|
182
|
-
onPointerLeave:
|
|
181
|
+
onPointerEnter: R(e.onPointerEnter, () => a("POINTER_ENTER")),
|
|
182
|
+
onPointerLeave: R(e.onPointerLeave, () => a("POINTER_LEAVE"))
|
|
183
183
|
}
|
|
184
184
|
) });
|
|
185
185
|
}), J = c.forwardRef((e, t) => {
|
|
186
|
-
const r = v(g, e.__scopeScrollArea), { forceMount: l, ...o } = e, [n,
|
|
186
|
+
const r = v(g, e.__scopeScrollArea), { forceMount: l, ...o } = e, [n, i] = c.useState(!1), s = e.orientation === "horizontal", a = Y(() => {
|
|
187
187
|
if (r.viewport) {
|
|
188
188
|
const f = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
189
|
-
s
|
|
189
|
+
i(s ? f : d);
|
|
190
190
|
}
|
|
191
191
|
}, 10);
|
|
192
|
-
return
|
|
193
|
-
|
|
192
|
+
return T(r.viewport, a), T(r.content, a), /* @__PURE__ */ b(I, { present: l || n, children: /* @__PURE__ */ b(
|
|
193
|
+
k,
|
|
194
194
|
{
|
|
195
195
|
"data-state": n ? "visible" : "hidden",
|
|
196
196
|
...o,
|
|
197
197
|
ref: t
|
|
198
198
|
}
|
|
199
199
|
) });
|
|
200
|
-
}),
|
|
201
|
-
const { orientation: r = "vertical", ...l } = e, o = v(g, e.__scopeScrollArea), n = c.useRef(null),
|
|
200
|
+
}), k = c.forwardRef((e, t) => {
|
|
201
|
+
const { orientation: r = "vertical", ...l } = e, o = v(g, e.__scopeScrollArea), n = c.useRef(null), i = c.useRef(0), [s, a] = c.useState({
|
|
202
202
|
content: 0,
|
|
203
203
|
viewport: 0,
|
|
204
204
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
205
|
-
}), f = ee(
|
|
205
|
+
}), f = ee(s.viewport, s.content), d = {
|
|
206
206
|
...l,
|
|
207
|
-
sizes:
|
|
207
|
+
sizes: s,
|
|
208
208
|
onSizesChange: a,
|
|
209
209
|
hasThumb: f > 0 && f < 1,
|
|
210
210
|
onThumbChange: (u) => n.current = u,
|
|
211
|
-
onThumbPointerUp: () =>
|
|
212
|
-
onThumbPointerDown: (u) =>
|
|
211
|
+
onThumbPointerUp: () => i.current = 0,
|
|
212
|
+
onThumbPointerDown: (u) => i.current = u
|
|
213
213
|
};
|
|
214
214
|
function h(u, S) {
|
|
215
|
-
return
|
|
215
|
+
return ge(u, i.current, s, S);
|
|
216
216
|
}
|
|
217
|
-
return r === "horizontal" ? /* @__PURE__ */ b
|
|
218
|
-
|
|
217
|
+
return r === "horizontal" ? /* @__PURE__ */ b(
|
|
218
|
+
be,
|
|
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, S =
|
|
224
|
+
const u = o.viewport.scrollLeft, S = F(u, s, o.dir);
|
|
225
225
|
n.current.style.transform = `translate3d(${S}px, 0, 0)`;
|
|
226
226
|
}
|
|
227
227
|
},
|
|
@@ -232,14 +232,14 @@ var de = c.forwardRef((e, t) => {
|
|
|
232
232
|
o.viewport && (o.viewport.scrollLeft = h(u, o.dir));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
) : r === "vertical" ? /* @__PURE__ */ b
|
|
236
|
-
|
|
235
|
+
) : r === "vertical" ? /* @__PURE__ */ b(
|
|
236
|
+
Se,
|
|
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, S =
|
|
242
|
+
const u = o.viewport.scrollTop, S = F(u, s);
|
|
243
243
|
n.current.style.transform = `translate3d(0, ${S}px, 0)`;
|
|
244
244
|
}
|
|
245
245
|
},
|
|
@@ -251,11 +251,11 @@ var de = c.forwardRef((e, t) => {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
) : null;
|
|
254
|
-
}),
|
|
255
|
-
const { sizes: r, onSizesChange: l, ...o } = e, n = v(g, e.__scopeScrollArea), [
|
|
254
|
+
}), be = c.forwardRef((e, t) => {
|
|
255
|
+
const { sizes: r, onSizesChange: l, ...o } = e, n = v(g, e.__scopeScrollArea), [i, s] = c.useState(), a = c.useRef(null), f = A(t, a, n.onScrollbarXChange);
|
|
256
256
|
return c.useEffect(() => {
|
|
257
|
-
a.current &&
|
|
258
|
-
}, [a]), /* @__PURE__ */ b
|
|
257
|
+
a.current && s(getComputedStyle(a.current));
|
|
258
|
+
}, [a]), /* @__PURE__ */ b(
|
|
259
259
|
Q,
|
|
260
260
|
{
|
|
261
261
|
"data-orientation": "horizontal",
|
|
@@ -266,7 +266,7 @@ var de = c.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": X(r) + "px",
|
|
270
270
|
...e.style
|
|
271
271
|
},
|
|
272
272
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
|
|
@@ -278,23 +278,23 @@ var de = c.forwardRef((e, t) => {
|
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
onResize: () => {
|
|
281
|
-
a.current && n.viewport &&
|
|
281
|
+
a.current && n.viewport && i && l({
|
|
282
282
|
content: n.viewport.scrollWidth,
|
|
283
283
|
viewport: n.viewport.offsetWidth,
|
|
284
284
|
scrollbar: {
|
|
285
285
|
size: a.current.clientWidth,
|
|
286
|
-
paddingStart:
|
|
287
|
-
paddingEnd:
|
|
286
|
+
paddingStart: O(i.paddingLeft),
|
|
287
|
+
paddingEnd: O(i.paddingRight)
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
|
-
}),
|
|
294
|
-
const { sizes: r, onSizesChange: l, ...o } = e, n = v(g, e.__scopeScrollArea), [
|
|
293
|
+
}), Se = c.forwardRef((e, t) => {
|
|
294
|
+
const { sizes: r, onSizesChange: l, ...o } = e, n = v(g, e.__scopeScrollArea), [i, s] = c.useState(), a = c.useRef(null), f = A(t, a, n.onScrollbarYChange);
|
|
295
295
|
return c.useEffect(() => {
|
|
296
|
-
a.current &&
|
|
297
|
-
}, [a]), /* @__PURE__ */ b
|
|
296
|
+
a.current && s(getComputedStyle(a.current));
|
|
297
|
+
}, [a]), /* @__PURE__ */ b(
|
|
298
298
|
Q,
|
|
299
299
|
{
|
|
300
300
|
"data-orientation": "vertical",
|
|
@@ -306,7 +306,7 @@ var de = c.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": X(r) + "px",
|
|
310
310
|
...e.style
|
|
311
311
|
},
|
|
312
312
|
onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
|
|
@@ -318,65 +318,65 @@ var de = c.forwardRef((e, t) => {
|
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
onResize: () => {
|
|
321
|
-
a.current && n.viewport &&
|
|
321
|
+
a.current && n.viewport && i && l({
|
|
322
322
|
content: n.viewport.scrollHeight,
|
|
323
323
|
viewport: n.viewport.offsetHeight,
|
|
324
324
|
scrollbar: {
|
|
325
325
|
size: a.current.clientHeight,
|
|
326
|
-
paddingStart:
|
|
327
|
-
paddingEnd:
|
|
326
|
+
paddingStart: O(i.paddingTop),
|
|
327
|
+
paddingEnd: O(i.paddingBottom)
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
|
-
}), [
|
|
333
|
+
}), [me, K] = j(g), Q = c.forwardRef((e, t) => {
|
|
334
334
|
const {
|
|
335
335
|
__scopeScrollArea: r,
|
|
336
336
|
sizes: l,
|
|
337
337
|
hasThumb: o,
|
|
338
338
|
onThumbChange: n,
|
|
339
|
-
onThumbPointerUp:
|
|
340
|
-
onThumbPointerDown:
|
|
339
|
+
onThumbPointerUp: i,
|
|
340
|
+
onThumbPointerDown: s,
|
|
341
341
|
onThumbPositionChange: a,
|
|
342
342
|
onDragScroll: f,
|
|
343
343
|
onWheelScroll: d,
|
|
344
344
|
onResize: h,
|
|
345
345
|
...u
|
|
346
|
-
} = e, S = v(g, r), [p,
|
|
347
|
-
function
|
|
346
|
+
} = e, S = v(g, r), [p, y] = c.useState(null), M = A(t, (m) => y(m)), P = c.useRef(null), _ = c.useRef(""), U = S.viewport, D = l.content - l.viewport, W = C(d), x = C(a), H = Y(h, 10);
|
|
347
|
+
function z(m) {
|
|
348
348
|
if (P.current) {
|
|
349
|
-
const w = m.clientX - P.current.left,
|
|
350
|
-
f({ x: w, y:
|
|
349
|
+
const w = m.clientX - P.current.left, E = m.clientY - P.current.top;
|
|
350
|
+
f({ x: w, y: E });
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
return c.useEffect(() => {
|
|
354
354
|
const m = (w) => {
|
|
355
|
-
const
|
|
356
|
-
(p == null ? void 0 : p.contains(
|
|
355
|
+
const E = w.target;
|
|
356
|
+
(p == null ? void 0 : p.contains(E)) && W(w, D);
|
|
357
357
|
};
|
|
358
358
|
return document.addEventListener("wheel", m, { passive: !1 }), () => document.removeEventListener("wheel", m, { passive: !1 });
|
|
359
|
-
}, [
|
|
360
|
-
|
|
359
|
+
}, [U, p, D, W]), c.useEffect(x, [l, x]), T(p, H), T(S.content, H), /* @__PURE__ */ b(
|
|
360
|
+
me,
|
|
361
361
|
{
|
|
362
362
|
scope: r,
|
|
363
363
|
scrollbar: p,
|
|
364
364
|
hasThumb: o,
|
|
365
|
-
onThumbChange:
|
|
366
|
-
onThumbPointerUp:
|
|
367
|
-
onThumbPositionChange:
|
|
368
|
-
onThumbPointerDown:
|
|
369
|
-
children: /* @__PURE__ */ b
|
|
365
|
+
onThumbChange: C(n),
|
|
366
|
+
onThumbPointerUp: C(i),
|
|
367
|
+
onThumbPositionChange: x,
|
|
368
|
+
onThumbPointerDown: C(s),
|
|
369
|
+
children: /* @__PURE__ */ b(
|
|
370
370
|
L.div,
|
|
371
371
|
{
|
|
372
372
|
...u,
|
|
373
|
-
ref:
|
|
373
|
+
ref: M,
|
|
374
374
|
style: { position: "absolute", ...u.style },
|
|
375
|
-
onPointerDown:
|
|
376
|
-
m.button === 0 && (m.target.setPointerCapture(m.pointerId), P.current = p.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", S.viewport && (S.viewport.style.scrollBehavior = "auto"),
|
|
375
|
+
onPointerDown: R(e.onPointerDown, (m) => {
|
|
376
|
+
m.button === 0 && (m.target.setPointerCapture(m.pointerId), P.current = p.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", S.viewport && (S.viewport.style.scrollBehavior = "auto"), z(m));
|
|
377
377
|
}),
|
|
378
|
-
onPointerMove:
|
|
379
|
-
onPointerUp:
|
|
378
|
+
onPointerMove: R(e.onPointerMove, z),
|
|
379
|
+
onPointerUp: R(e.onPointerUp, (m) => {
|
|
380
380
|
const w = m.target;
|
|
381
381
|
w.hasPointerCapture(m.pointerId) && w.releasePointerCapture(m.pointerId), document.body.style.webkitUserSelect = _.current, S.viewport && (S.viewport.style.scrollBehavior = ""), P.current = null;
|
|
382
382
|
})
|
|
@@ -384,17 +384,17 @@ var de = c.forwardRef((e, t) => {
|
|
|
384
384
|
)
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
|
-
}),
|
|
387
|
+
}), N = "ScrollAreaThumb", pe = c.forwardRef(
|
|
388
388
|
(e, t) => {
|
|
389
|
-
const { forceMount: r, ...l } = e, o = K(
|
|
390
|
-
return /* @__PURE__ */ b
|
|
389
|
+
const { forceMount: r, ...l } = e, o = K(N, e.__scopeScrollArea);
|
|
390
|
+
return /* @__PURE__ */ b(I, { present: r || o.hasThumb, children: /* @__PURE__ */ b(ve, { ref: t, ...l }) });
|
|
391
391
|
}
|
|
392
|
-
),
|
|
392
|
+
), ve = c.forwardRef(
|
|
393
393
|
(e, t) => {
|
|
394
|
-
const { __scopeScrollArea: r, style: l, ...o } = e, n = v(
|
|
394
|
+
const { __scopeScrollArea: r, style: l, ...o } = e, n = v(N, r), i = K(N, r), { onThumbPositionChange: s } = i, a = A(
|
|
395
395
|
t,
|
|
396
|
-
(h) =>
|
|
397
|
-
), f = c.useRef(void 0), d =
|
|
396
|
+
(h) => i.onThumbChange(h)
|
|
397
|
+
), f = c.useRef(void 0), d = Y(() => {
|
|
398
398
|
f.current && (f.current(), f.current = void 0);
|
|
399
399
|
}, 100);
|
|
400
400
|
return c.useEffect(() => {
|
|
@@ -402,16 +402,16 @@ var de = c.forwardRef((e, t) => {
|
|
|
402
402
|
if (h) {
|
|
403
403
|
const u = () => {
|
|
404
404
|
if (d(), !f.current) {
|
|
405
|
-
const S =
|
|
406
|
-
f.current = S,
|
|
405
|
+
const S = Pe(h, s);
|
|
406
|
+
f.current = S, s();
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
return
|
|
409
|
+
return s(), h.addEventListener("scroll", u), () => h.removeEventListener("scroll", u);
|
|
410
410
|
}
|
|
411
|
-
}, [n.viewport, d,
|
|
411
|
+
}, [n.viewport, d, s]), /* @__PURE__ */ b(
|
|
412
412
|
L.div,
|
|
413
413
|
{
|
|
414
|
-
"data-state":
|
|
414
|
+
"data-state": i.hasThumb ? "visible" : "hidden",
|
|
415
415
|
...o,
|
|
416
416
|
ref: a,
|
|
417
417
|
style: {
|
|
@@ -419,41 +419,41 @@ var de = c.forwardRef((e, t) => {
|
|
|
419
419
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
420
420
|
...l
|
|
421
421
|
},
|
|
422
|
-
onPointerDownCapture:
|
|
423
|
-
const S = h.target.getBoundingClientRect(), p = h.clientX - S.left,
|
|
424
|
-
|
|
422
|
+
onPointerDownCapture: R(e.onPointerDownCapture, (h) => {
|
|
423
|
+
const S = h.target.getBoundingClientRect(), p = h.clientX - S.left, y = h.clientY - S.top;
|
|
424
|
+
i.onThumbPointerDown({ x: p, y });
|
|
425
425
|
}),
|
|
426
|
-
onPointerUp:
|
|
426
|
+
onPointerUp: R(e.onPointerUp, i.onThumbPointerUp)
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
|
-
|
|
432
|
-
var
|
|
431
|
+
pe.displayName = N;
|
|
432
|
+
var B = "ScrollAreaCorner", Z = c.forwardRef(
|
|
433
433
|
(e, t) => {
|
|
434
|
-
const r = v(
|
|
435
|
-
return r.type !== "scroll" && l ? /* @__PURE__ */ b
|
|
434
|
+
const r = v(B, e.__scopeScrollArea), l = !!(r.scrollbarX && r.scrollbarY);
|
|
435
|
+
return r.type !== "scroll" && l ? /* @__PURE__ */ b(we, { ...e, ref: t }) : null;
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
|
-
Z.displayName =
|
|
439
|
-
var
|
|
440
|
-
const { __scopeScrollArea: r, ...l } = e, o = v(
|
|
441
|
-
return
|
|
438
|
+
Z.displayName = B;
|
|
439
|
+
var we = c.forwardRef((e, t) => {
|
|
440
|
+
const { __scopeScrollArea: r, ...l } = e, o = v(B, r), [n, i] = c.useState(0), [s, a] = c.useState(0), f = !!(n && s);
|
|
441
|
+
return T(o.scrollbarX, () => {
|
|
442
442
|
var h;
|
|
443
443
|
const d = ((h = o.scrollbarX) == null ? void 0 : h.offsetHeight) || 0;
|
|
444
444
|
o.onCornerHeightChange(d), a(d);
|
|
445
|
-
}),
|
|
445
|
+
}), T(o.scrollbarY, () => {
|
|
446
446
|
var h;
|
|
447
447
|
const d = ((h = o.scrollbarY) == null ? void 0 : h.offsetWidth) || 0;
|
|
448
|
-
o.onCornerWidthChange(d),
|
|
449
|
-
}), f ? /* @__PURE__ */ b
|
|
448
|
+
o.onCornerWidthChange(d), i(d);
|
|
449
|
+
}), f ? /* @__PURE__ */ b(
|
|
450
450
|
L.div,
|
|
451
451
|
{
|
|
452
452
|
...l,
|
|
453
453
|
ref: t,
|
|
454
454
|
style: {
|
|
455
455
|
width: n,
|
|
456
|
-
height:
|
|
456
|
+
height: s,
|
|
457
457
|
position: "absolute",
|
|
458
458
|
right: o.dir === "ltr" ? 0 : void 0,
|
|
459
459
|
left: o.dir === "rtl" ? 0 : void 0,
|
|
@@ -463,24 +463,24 @@ var pe = c.forwardRef((e, t) => {
|
|
|
463
463
|
}
|
|
464
464
|
) : null;
|
|
465
465
|
});
|
|
466
|
-
function
|
|
466
|
+
function O(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 X(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 = X(r), n = o / 2, i = t || n, s = o - i, a = r.scrollbar.paddingStart + i, f = r.scrollbar.size - r.scrollbar.paddingEnd - s, d = r.content - r.viewport, h = l === "ltr" ? [0, d] : [d * -1, 0];
|
|
479
479
|
return re([a, f], h)(e);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const l =
|
|
483
|
-
return re([0,
|
|
481
|
+
function F(e, t, r = "ltr") {
|
|
482
|
+
const l = X(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, n = t.scrollbar.size - o, i = t.content - t.viewport, s = n - l, a = r === "ltr" ? [0, i] : [i * -1, 0], f = ce(e, a);
|
|
483
|
+
return re([0, i], [0, s])(f);
|
|
484
484
|
}
|
|
485
485
|
function re(e, t) {
|
|
486
486
|
return (r) => {
|
|
@@ -492,22 +492,22 @@ function re(e, t) {
|
|
|
492
492
|
function oe(e, t) {
|
|
493
493
|
return e > 0 && e < t;
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var Pe = (e, t = () => {
|
|
496
496
|
}) => {
|
|
497
497
|
let r = { left: e.scrollLeft, top: e.scrollTop }, l = 0;
|
|
498
498
|
return function o() {
|
|
499
|
-
const n = { left: e.scrollLeft, top: e.scrollTop },
|
|
500
|
-
(
|
|
499
|
+
const n = { left: e.scrollLeft, top: e.scrollTop }, i = r.left !== n.left, s = r.top !== n.top;
|
|
500
|
+
(i || s) && t(), r = n, l = window.requestAnimationFrame(o);
|
|
501
501
|
}(), () => window.cancelAnimationFrame(l);
|
|
502
502
|
};
|
|
503
|
-
function
|
|
504
|
-
const r =
|
|
503
|
+
function Y(e, t) {
|
|
504
|
+
const r = C(e), l = c.useRef(0);
|
|
505
505
|
return c.useEffect(() => () => window.clearTimeout(l.current), []), c.useCallback(() => {
|
|
506
506
|
window.clearTimeout(l.current), l.current = window.setTimeout(r, t);
|
|
507
507
|
}, [r, t]);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
const r =
|
|
509
|
+
function T(e, t) {
|
|
510
|
+
const r = C(t);
|
|
511
511
|
le(() => {
|
|
512
512
|
let l = 0;
|
|
513
513
|
if (e) {
|
|
@@ -520,15 +520,15 @@ function E(e, t) {
|
|
|
520
520
|
}
|
|
521
521
|
}, [e, r]);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var ze = q, Ne = G, Oe = Z;
|
|
524
524
|
export {
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
Oe as Corner,
|
|
526
|
+
ze as Root,
|
|
527
527
|
q as ScrollArea,
|
|
528
528
|
Z as ScrollAreaCorner,
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
ue as ScrollAreaScrollbar,
|
|
530
|
+
pe as ScrollAreaThumb,
|
|
531
531
|
G as ScrollAreaViewport,
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
Ne as Viewport,
|
|
533
|
+
He as createScrollAreaScope
|
|
534
534
|
};
|