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,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { createContextScope as
|
|
4
|
-
import { useCallbackRef as
|
|
3
|
+
import { createContextScope as C } from "../../react-context/dist/index.js";
|
|
4
|
+
import { useCallbackRef as h } from "../../react-use-callback-ref/dist/index.js";
|
|
5
5
|
import { useLayoutEffect as f } from "../../react-use-layout-effect/dist/index.js";
|
|
6
6
|
import { Primitive as v } from "../../react-primitive/dist/index.js";
|
|
7
|
-
import {
|
|
8
|
-
var m = "Avatar", [
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
var m = "Avatar", [y, H] = C(m), [_, A] = y(m), L = i.forwardRef(
|
|
9
9
|
(t, a) => {
|
|
10
10
|
const { __scopeAvatar: n, ...r } = t, [o, e] = i.useState("idle");
|
|
11
|
-
return /* @__PURE__ */ l
|
|
12
|
-
|
|
11
|
+
return /* @__PURE__ */ l(
|
|
12
|
+
_,
|
|
13
13
|
{
|
|
14
14
|
scope: n,
|
|
15
15
|
imageLoadingStatus: o,
|
|
16
16
|
onImageLoadingStatusChange: e,
|
|
17
|
-
children: /* @__PURE__ */ l
|
|
17
|
+
children: /* @__PURE__ */ l(v.span, { ...r, ref: a })
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
@@ -23,39 +23,39 @@ L.displayName = m;
|
|
|
23
23
|
var S = "AvatarImage", E = i.forwardRef(
|
|
24
24
|
(t, a) => {
|
|
25
25
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
26
|
-
}, ...e } = t, d = A(S, n), s =
|
|
26
|
+
}, ...e } = t, d = A(S, n), s = x(r, e), u = h((c) => {
|
|
27
27
|
o(c), d.onImageLoadingStatusChange(c);
|
|
28
28
|
});
|
|
29
29
|
return f(() => {
|
|
30
30
|
s !== "idle" && u(s);
|
|
31
|
-
}, [s, u]), s === "loaded" ? /* @__PURE__ */ l
|
|
31
|
+
}, [s, u]), s === "loaded" ? /* @__PURE__ */ l(v.img, { ...e, ref: a, src: r }) : null;
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
E.displayName = S;
|
|
35
|
-
var
|
|
35
|
+
var I = "AvatarFallback", R = i.forwardRef(
|
|
36
36
|
(t, a) => {
|
|
37
|
-
const { __scopeAvatar: n, delayMs: r, ...o } = t, e = A(
|
|
37
|
+
const { __scopeAvatar: n, delayMs: r, ...o } = t, e = A(I, n), [d, s] = i.useState(r === void 0);
|
|
38
38
|
return i.useEffect(() => {
|
|
39
39
|
if (r !== void 0) {
|
|
40
40
|
const u = window.setTimeout(() => s(!0), r);
|
|
41
41
|
return () => window.clearTimeout(u);
|
|
42
42
|
}
|
|
43
|
-
}, [r]), d && e.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l
|
|
43
|
+
}, [r]), d && e.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(v.span, { ...o, ref: a }) : null;
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
R.displayName =
|
|
46
|
+
R.displayName = I;
|
|
47
47
|
function p(t, a) {
|
|
48
48
|
return t ? a ? (t.src !== a && (t.src = a), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const r =
|
|
50
|
+
function x(t, { referrerPolicy: a, crossOrigin: n }) {
|
|
51
|
+
const r = N(), o = i.useRef(null), e = r ? (o.current || (o.current = new window.Image()), o.current) : null, [d, s] = i.useState(
|
|
52
52
|
() => p(e, t)
|
|
53
53
|
);
|
|
54
54
|
return f(() => {
|
|
55
55
|
s(p(e, t));
|
|
56
56
|
}, [e, t]), f(() => {
|
|
57
|
-
const u = (
|
|
58
|
-
s(
|
|
57
|
+
const u = (w) => () => {
|
|
58
|
+
s(w);
|
|
59
59
|
};
|
|
60
60
|
if (!e) return;
|
|
61
61
|
const c = u("loaded"), g = u("error");
|
|
@@ -68,20 +68,20 @@ function b() {
|
|
|
68
68
|
return () => {
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function N() {
|
|
72
72
|
return i.useSyncExternalStore(
|
|
73
73
|
b,
|
|
74
74
|
() => !0,
|
|
75
75
|
() => !1
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var j = L, B = E, G = R;
|
|
79
79
|
export {
|
|
80
80
|
L as Avatar,
|
|
81
81
|
R as AvatarFallback,
|
|
82
82
|
E as AvatarImage,
|
|
83
83
|
G as Fallback,
|
|
84
84
|
B as Image,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
j as Root,
|
|
86
|
+
H as createAvatarScope
|
|
87
87
|
};
|
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { useComposedRefs as
|
|
4
|
-
import { createContextScope as
|
|
3
|
+
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { createContextScope as O } from "../../react-context/dist/index.js";
|
|
5
5
|
import { composeEventHandlers as S } from "../../primitive/dist/index.js";
|
|
6
|
-
import { useControllableState as
|
|
6
|
+
import { useControllableState as j } from "../../react-use-controllable-state/dist/index.js";
|
|
7
7
|
import { usePrevious as A } from "../../react-use-previous/dist/index.js";
|
|
8
8
|
import { useSize as B } from "../../react-use-size/dist/index.js";
|
|
9
9
|
import { Presence as H } from "../../react-presence/dist/index.js";
|
|
10
|
-
import { Primitive as
|
|
11
|
-
import {
|
|
12
|
-
var
|
|
13
|
-
(e,
|
|
10
|
+
import { Primitive as I } from "../../react-primitive/dist/index.js";
|
|
11
|
+
import { jsxs as K, jsx as h } from "react/jsx-runtime";
|
|
12
|
+
var P = "Checkbox", [L, Z] = O(P), [q, z] = L(P), g = n.forwardRef(
|
|
13
|
+
(e, f) => {
|
|
14
14
|
const {
|
|
15
15
|
__scopeCheckbox: t,
|
|
16
16
|
name: i,
|
|
17
|
-
checked:
|
|
17
|
+
checked: l,
|
|
18
18
|
defaultChecked: r,
|
|
19
|
-
required:
|
|
19
|
+
required: p,
|
|
20
20
|
disabled: a,
|
|
21
21
|
value: k = "on",
|
|
22
22
|
onCheckedChange: b,
|
|
23
23
|
form: d,
|
|
24
|
-
...
|
|
25
|
-
} = e, [
|
|
26
|
-
prop:
|
|
24
|
+
...v
|
|
25
|
+
} = e, [c, C] = n.useState(null), x = M(f, (o) => C(o)), y = n.useRef(!1), R = c ? d || !!c.closest("form") : !0, [u = !1, E] = j({
|
|
26
|
+
prop: l,
|
|
27
27
|
defaultProp: r,
|
|
28
28
|
onChange: b
|
|
29
|
-
}),
|
|
29
|
+
}), N = n.useRef(u);
|
|
30
30
|
return n.useEffect(() => {
|
|
31
|
-
const o =
|
|
31
|
+
const o = c == null ? void 0 : c.form;
|
|
32
32
|
if (o) {
|
|
33
|
-
const
|
|
34
|
-
return o.addEventListener("reset",
|
|
33
|
+
const m = () => E(N.current);
|
|
34
|
+
return o.addEventListener("reset", m), () => o.removeEventListener("reset", m);
|
|
35
35
|
}
|
|
36
|
-
}, [
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
36
|
+
}, [c, E]), /* @__PURE__ */ K(q, { scope: t, state: u, disabled: a, children: [
|
|
37
|
+
/* @__PURE__ */ h(
|
|
38
|
+
I.button,
|
|
39
39
|
{
|
|
40
40
|
type: "button",
|
|
41
41
|
role: "checkbox",
|
|
42
|
-
"aria-checked":
|
|
43
|
-
"aria-required":
|
|
44
|
-
"data-state":
|
|
42
|
+
"aria-checked": s(u) ? "mixed" : u,
|
|
43
|
+
"aria-required": p,
|
|
44
|
+
"data-state": D(u),
|
|
45
45
|
"data-disabled": a ? "" : void 0,
|
|
46
46
|
disabled: a,
|
|
47
47
|
value: k,
|
|
48
|
-
...
|
|
49
|
-
ref:
|
|
48
|
+
...v,
|
|
49
|
+
ref: x,
|
|
50
50
|
onKeyDown: S(e.onKeyDown, (o) => {
|
|
51
51
|
o.key === "Enter" && o.preventDefault();
|
|
52
52
|
}),
|
|
53
53
|
onClick: S(e.onClick, (o) => {
|
|
54
|
-
E((
|
|
54
|
+
E((m) => s(m) ? !0 : !m), R && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
|
|
55
55
|
})
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
R && /* @__PURE__ */ h(
|
|
59
|
+
T,
|
|
60
60
|
{
|
|
61
|
-
control:
|
|
61
|
+
control: c,
|
|
62
62
|
bubbles: !y.current,
|
|
63
63
|
name: i,
|
|
64
64
|
value: k,
|
|
65
65
|
checked: u,
|
|
66
|
-
required:
|
|
66
|
+
required: p,
|
|
67
67
|
disabled: a,
|
|
68
68
|
form: d,
|
|
69
69
|
style: { transform: "translateX(-100%)" },
|
|
70
|
-
defaultChecked:
|
|
70
|
+
defaultChecked: s(r) ? !1 : r
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
] });
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
|
-
|
|
77
|
-
var
|
|
78
|
-
(e,
|
|
79
|
-
const { __scopeCheckbox: t, forceMount: i, ...
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
|
|
76
|
+
g.displayName = P;
|
|
77
|
+
var w = "CheckboxIndicator", _ = n.forwardRef(
|
|
78
|
+
(e, f) => {
|
|
79
|
+
const { __scopeCheckbox: t, forceMount: i, ...l } = e, r = z(w, t);
|
|
80
|
+
return /* @__PURE__ */ h(H, { present: i || s(r.state) || r.state === !0, children: /* @__PURE__ */ h(
|
|
81
|
+
I.span,
|
|
82
82
|
{
|
|
83
|
-
"data-state":
|
|
83
|
+
"data-state": D(r.state),
|
|
84
84
|
"data-disabled": r.disabled ? "" : void 0,
|
|
85
|
-
...
|
|
86
|
-
ref:
|
|
85
|
+
...l,
|
|
86
|
+
ref: f,
|
|
87
87
|
style: { pointerEvents: "none", ...e.style }
|
|
88
88
|
}
|
|
89
89
|
) });
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
|
|
93
|
-
var
|
|
94
|
-
const { control:
|
|
92
|
+
_.displayName = w;
|
|
93
|
+
var T = (e) => {
|
|
94
|
+
const { control: f, checked: t, bubbles: i = !0, defaultChecked: l, ...r } = e, p = n.useRef(null), a = A(t), k = B(f);
|
|
95
95
|
n.useEffect(() => {
|
|
96
|
-
const d =
|
|
96
|
+
const d = p.current, v = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(v, "checked").set;
|
|
97
97
|
if (a !== t && C) {
|
|
98
|
-
const
|
|
99
|
-
d.indeterminate =
|
|
98
|
+
const x = new Event("click", { bubbles: i });
|
|
99
|
+
d.indeterminate = s(t), C.call(d, s(t) ? !1 : t), d.dispatchEvent(x);
|
|
100
100
|
}
|
|
101
101
|
}, [a, t, i]);
|
|
102
|
-
const b = n.useRef(
|
|
103
|
-
return /* @__PURE__ */
|
|
102
|
+
const b = n.useRef(s(t) ? !1 : t);
|
|
103
|
+
return /* @__PURE__ */ h(
|
|
104
104
|
"input",
|
|
105
105
|
{
|
|
106
106
|
type: "checkbox",
|
|
107
107
|
"aria-hidden": !0,
|
|
108
|
-
defaultChecked:
|
|
108
|
+
defaultChecked: l ?? b.current,
|
|
109
109
|
...r,
|
|
110
110
|
tabIndex: -1,
|
|
111
|
-
ref:
|
|
111
|
+
ref: p,
|
|
112
112
|
style: {
|
|
113
113
|
...e.style,
|
|
114
114
|
...k,
|
|
@@ -120,17 +120,17 @@ var z = (e) => {
|
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function s(e) {
|
|
124
124
|
return e === "indeterminate";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return
|
|
126
|
+
function D(e) {
|
|
127
|
+
return s(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var $ = g, ee = _;
|
|
130
130
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
g as Checkbox,
|
|
132
|
+
_ as CheckboxIndicator,
|
|
133
|
+
ee as Indicator,
|
|
134
|
+
$ as Root,
|
|
135
|
+
Z as createCheckboxScope
|
|
136
136
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import { composeEventHandlers as
|
|
4
|
-
import { createContextScope as
|
|
5
|
-
import { useControllableState as
|
|
6
|
-
import { useLayoutEffect as
|
|
7
|
-
import { useComposedRefs as
|
|
3
|
+
import { composeEventHandlers as T } from "../../primitive/dist/index.js";
|
|
4
|
+
import { createContextScope as S } from "../../react-context/dist/index.js";
|
|
5
|
+
import { useControllableState as D } from "../../react-use-controllable-state/dist/index.js";
|
|
6
|
+
import { useLayoutEffect as L } from "../../react-use-layout-effect/dist/index.js";
|
|
7
|
+
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
8
8
|
import { Primitive as b } from "../../react-primitive/dist/index.js";
|
|
9
|
-
import { Presence as
|
|
10
|
-
import { useId as
|
|
11
|
-
import {
|
|
12
|
-
var v = "Collapsible", [
|
|
9
|
+
import { Presence as k } from "../../react-presence/dist/index.js";
|
|
10
|
+
import { useId as F } from "../../react-id/dist/index.js";
|
|
11
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
12
|
+
var v = "Collapsible", [B, W] = S(v), [G, g] = B(v), w = o.forwardRef(
|
|
13
13
|
(e, a) => {
|
|
14
14
|
const {
|
|
15
|
-
__scopeCollapsible:
|
|
15
|
+
__scopeCollapsible: i,
|
|
16
16
|
open: r,
|
|
17
17
|
defaultOpen: t,
|
|
18
18
|
disabled: l,
|
|
19
|
-
onOpenChange:
|
|
20
|
-
...
|
|
21
|
-
} = e, [d = !1, p] =
|
|
19
|
+
onOpenChange: s,
|
|
20
|
+
...u
|
|
21
|
+
} = e, [d = !1, p] = D({
|
|
22
22
|
prop: r,
|
|
23
23
|
defaultProp: t,
|
|
24
|
-
onChange:
|
|
24
|
+
onChange: s
|
|
25
25
|
});
|
|
26
|
-
return /* @__PURE__ */ c
|
|
27
|
-
|
|
26
|
+
return /* @__PURE__ */ c(
|
|
27
|
+
G,
|
|
28
28
|
{
|
|
29
|
-
scope:
|
|
29
|
+
scope: i,
|
|
30
30
|
disabled: l,
|
|
31
|
-
contentId:
|
|
31
|
+
contentId: F(),
|
|
32
32
|
open: d,
|
|
33
33
|
onOpenToggle: o.useCallback(() => p((m) => !m), [p]),
|
|
34
|
-
children: /* @__PURE__ */ c
|
|
34
|
+
children: /* @__PURE__ */ c(
|
|
35
35
|
b.div,
|
|
36
36
|
{
|
|
37
|
-
"data-state":
|
|
37
|
+
"data-state": h(d),
|
|
38
38
|
"data-disabled": l ? "" : void 0,
|
|
39
|
-
...
|
|
39
|
+
...u,
|
|
40
40
|
ref: a
|
|
41
41
|
}
|
|
42
42
|
)
|
|
@@ -44,60 +44,60 @@ var v = "Collapsible", [F, W] = T(v), [B, g] = F(v), j = o.forwardRef(
|
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
|
|
48
|
-
var
|
|
47
|
+
w.displayName = v;
|
|
48
|
+
var A = "CollapsibleTrigger", I = o.forwardRef(
|
|
49
49
|
(e, a) => {
|
|
50
|
-
const { __scopeCollapsible:
|
|
51
|
-
return /* @__PURE__ */ c
|
|
50
|
+
const { __scopeCollapsible: i, ...r } = e, t = g(A, i);
|
|
51
|
+
return /* @__PURE__ */ c(
|
|
52
52
|
b.button,
|
|
53
53
|
{
|
|
54
54
|
type: "button",
|
|
55
55
|
"aria-controls": t.contentId,
|
|
56
56
|
"aria-expanded": t.open || !1,
|
|
57
|
-
"data-state":
|
|
57
|
+
"data-state": h(t.open),
|
|
58
58
|
"data-disabled": t.disabled ? "" : void 0,
|
|
59
59
|
disabled: t.disabled,
|
|
60
60
|
...r,
|
|
61
61
|
ref: a,
|
|
62
|
-
onClick:
|
|
62
|
+
onClick: T(e.onClick, t.onOpenToggle)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
|
|
68
|
-
var R = "CollapsibleContent",
|
|
67
|
+
I.displayName = A;
|
|
68
|
+
var R = "CollapsibleContent", O = o.forwardRef(
|
|
69
69
|
(e, a) => {
|
|
70
|
-
const { forceMount:
|
|
71
|
-
return /* @__PURE__ */ c
|
|
70
|
+
const { forceMount: i, ...r } = e, t = g(R, e.__scopeCollapsible);
|
|
71
|
+
return /* @__PURE__ */ c(k, { present: i || t.open, children: ({ present: l }) => /* @__PURE__ */ c($, { ...r, ref: a, present: l }) });
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
const { __scopeCollapsible:
|
|
74
|
+
O.displayName = R;
|
|
75
|
+
var $ = o.forwardRef((e, a) => {
|
|
76
|
+
const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [u, d] = o.useState(r), p = o.useRef(null), m = M(a, p), y = o.useRef(0), x = y.current, N = o.useRef(0), P = N.current, C = s.open || u, _ = o.useRef(C), f = o.useRef(void 0);
|
|
77
77
|
return o.useEffect(() => {
|
|
78
|
-
const n = requestAnimationFrame(() =>
|
|
78
|
+
const n = requestAnimationFrame(() => _.current = !1);
|
|
79
79
|
return () => cancelAnimationFrame(n);
|
|
80
|
-
}, []),
|
|
80
|
+
}, []), L(() => {
|
|
81
81
|
const n = p.current;
|
|
82
82
|
if (n) {
|
|
83
|
-
|
|
83
|
+
f.current = f.current || {
|
|
84
84
|
transitionDuration: n.style.transitionDuration,
|
|
85
85
|
animationName: n.style.animationName
|
|
86
86
|
}, n.style.transitionDuration = "0s", n.style.animationName = "none";
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const E = n.getBoundingClientRect();
|
|
88
|
+
y.current = E.height, N.current = E.width, _.current || (n.style.transitionDuration = f.current.transitionDuration, n.style.animationName = f.current.animationName), d(r);
|
|
89
89
|
}
|
|
90
|
-
}, [
|
|
90
|
+
}, [s.open, r]), /* @__PURE__ */ c(
|
|
91
91
|
b.div,
|
|
92
92
|
{
|
|
93
|
-
"data-state":
|
|
94
|
-
"data-disabled":
|
|
95
|
-
id:
|
|
93
|
+
"data-state": h(s.open),
|
|
94
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
95
|
+
id: s.contentId,
|
|
96
96
|
hidden: !C,
|
|
97
97
|
...l,
|
|
98
98
|
ref: m,
|
|
99
99
|
style: {
|
|
100
|
-
"--radix-collapsible-content-height":
|
|
100
|
+
"--radix-collapsible-content-height": x ? `${x}px` : void 0,
|
|
101
101
|
"--radix-collapsible-content-width": P ? `${P}px` : void 0,
|
|
102
102
|
...e.style
|
|
103
103
|
},
|
|
@@ -105,14 +105,14 @@ var G = o.forwardRef((e, a) => {
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
});
|
|
108
|
-
function
|
|
108
|
+
function h(e) {
|
|
109
109
|
return e ? "open" : "closed";
|
|
110
110
|
}
|
|
111
|
-
var X =
|
|
111
|
+
var X = w, Y = I, Z = O;
|
|
112
112
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
w as Collapsible,
|
|
114
|
+
O as CollapsibleContent,
|
|
115
|
+
I as CollapsibleTrigger,
|
|
116
116
|
Z as Content,
|
|
117
117
|
X as Root,
|
|
118
118
|
Y as Trigger,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { createContextScope as y } from "../../react-context/dist/index.js";
|
|
4
|
-
import { useComposedRefs as
|
|
5
|
-
import { createSlot as
|
|
6
|
-
import {
|
|
7
|
-
function
|
|
8
|
-
const m = s + "CollectionProvider", [A,
|
|
4
|
+
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
5
|
+
import { createSlot as x } from "../../react-slot/dist/index.js";
|
|
6
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
7
|
+
function g(s) {
|
|
8
|
+
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
|
9
9
|
m,
|
|
10
10
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
11
11
|
), p = (c) => {
|
|
12
12
|
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
-
return /* @__PURE__ */ d
|
|
13
|
+
return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
14
14
|
};
|
|
15
15
|
p.displayName = m;
|
|
16
|
-
const u = s + "CollectionSlot",
|
|
16
|
+
const u = s + "CollectionSlot", E = x(u), C = r.forwardRef(
|
|
17
17
|
(c, e) => {
|
|
18
|
-
const { scope: l, children: o } = c, t = f(u, l), n =
|
|
19
|
-
return /* @__PURE__ */ d
|
|
18
|
+
const { scope: l, children: o } = c, t = f(u, l), n = M(e, t.collectionRef);
|
|
19
|
+
return /* @__PURE__ */ d(E, { ref: n, children: o });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
C.displayName = u;
|
|
23
|
-
const a = s + "CollectionItemSlot", R = "data-radix-collection-item", T =
|
|
23
|
+
const a = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(a), I = r.forwardRef(
|
|
24
24
|
(c, e) => {
|
|
25
|
-
const { scope: l, children: o, ...t } = c, n = r.useRef(null),
|
|
26
|
-
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d
|
|
25
|
+
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(a, l);
|
|
26
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
|
|
29
|
+
I.displayName = a;
|
|
30
30
|
function O(c) {
|
|
31
31
|
const e = f(s + "CollectionConsumer", c);
|
|
32
32
|
return r.useCallback(() => {
|
|
@@ -39,11 +39,11 @@ function D(s) {
|
|
|
39
39
|
}, [e.collectionRef, e.itemMap]);
|
|
40
40
|
}
|
|
41
41
|
return [
|
|
42
|
-
{ Provider: p, Slot: C, ItemSlot:
|
|
42
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
43
43
|
O,
|
|
44
|
-
|
|
44
|
+
N
|
|
45
45
|
];
|
|
46
46
|
}
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
g as createCollection
|
|
49
49
|
};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
4
|
+
function w(t, c) {
|
|
5
5
|
const o = u.createContext(c), a = (r) => {
|
|
6
|
-
const { children:
|
|
7
|
-
return /* @__PURE__ */ h
|
|
6
|
+
const { children: e, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
7
|
+
return /* @__PURE__ */ h(o.Provider, { value: s, children: e });
|
|
8
8
|
};
|
|
9
|
-
a.displayName =
|
|
9
|
+
a.displayName = t + "Provider";
|
|
10
10
|
function i(r) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const e = u.useContext(o);
|
|
12
|
+
if (e) return e;
|
|
13
13
|
if (c !== void 0) return c;
|
|
14
|
-
throw new Error(`\`${r}\` must be used within \`${
|
|
14
|
+
throw new Error(`\`${r}\` must be used within \`${t}\``);
|
|
15
15
|
}
|
|
16
16
|
return [a, i];
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _(t, c = []) {
|
|
19
19
|
let o = [];
|
|
20
|
-
function a(r,
|
|
21
|
-
const n = u.createContext(
|
|
22
|
-
o = [...o,
|
|
23
|
-
const
|
|
20
|
+
function a(r, e) {
|
|
21
|
+
const n = u.createContext(e), s = o.length;
|
|
22
|
+
o = [...o, e];
|
|
23
|
+
const p = (d) => {
|
|
24
24
|
var S;
|
|
25
|
-
const { scope: x, children: C, ...
|
|
26
|
-
return /* @__PURE__ */ h
|
|
25
|
+
const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[t]) == null ? void 0 : S[s]) || n, l = u.useMemo(() => m, Object.values(m));
|
|
26
|
+
return /* @__PURE__ */ h(v.Provider, { value: l, children: C });
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
function f(
|
|
28
|
+
p.displayName = r + "Provider";
|
|
29
|
+
function f(d, x) {
|
|
30
30
|
var v;
|
|
31
|
-
const C = ((v = x == null ? void 0 : x[
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
34
|
-
throw new Error(`\`${
|
|
31
|
+
const C = ((v = x == null ? void 0 : x[t]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
|
|
32
|
+
if (m) return m;
|
|
33
|
+
if (e !== void 0) return e;
|
|
34
|
+
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
35
35
|
}
|
|
36
|
-
return [
|
|
36
|
+
return [p, f];
|
|
37
37
|
}
|
|
38
38
|
const i = () => {
|
|
39
|
-
const r = o.map((
|
|
39
|
+
const r = o.map((e) => u.createContext(e));
|
|
40
40
|
return function(n) {
|
|
41
|
-
const s = (n == null ? void 0 : n[
|
|
41
|
+
const s = (n == null ? void 0 : n[t]) || r;
|
|
42
42
|
return u.useMemo(
|
|
43
|
-
() => ({ [`__scope${
|
|
43
|
+
() => ({ [`__scope${t}`]: { ...n, [t]: s } }),
|
|
44
44
|
[n, s]
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
return i.scopeName =
|
|
48
|
+
return i.scopeName = t, [a, P(i, ...c)];
|
|
49
49
|
}
|
|
50
|
-
function P(...
|
|
51
|
-
const c =
|
|
52
|
-
if (
|
|
50
|
+
function P(...t) {
|
|
51
|
+
const c = t[0];
|
|
52
|
+
if (t.length === 1) return c;
|
|
53
53
|
const o = () => {
|
|
54
|
-
const a =
|
|
54
|
+
const a = t.map((i) => ({
|
|
55
55
|
useScope: i(),
|
|
56
56
|
scopeName: i.scopeName
|
|
57
57
|
}));
|
|
58
58
|
return function(r) {
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
return { ...n, ...
|
|
59
|
+
const e = a.reduce((n, { useScope: s, scopeName: p }) => {
|
|
60
|
+
const d = s(r)[`__scope${p}`];
|
|
61
|
+
return { ...n, ...d };
|
|
62
62
|
}, {});
|
|
63
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]:
|
|
63
|
+
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
return o.scopeName = c.scopeName, o;
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
w as createContext,
|
|
70
|
+
_ as createContextScope
|
|
71
71
|
};
|