@mkbabb/glass-ui 3.13.0 → 4.0.1
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/README.md +3 -1
- package/dist/CardAction-CW7a0m8M.js +253 -0
- package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DvZNQ_HF.js} +58 -53
- package/dist/ConfiguratorRow-BR4l-ixA.js +143 -0
- package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-uWnVxDab.js} +1 -1
- package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-xol4sD2q.js} +32 -37
- package/dist/{DataTable-BCddn3T3.js → DataTable-CuKwF7wr.js} +99 -97
- package/dist/DialogContent-DcKK8k9i.js +103 -0
- package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-BZNX5aVr.js} +3 -3
- package/dist/FadingScroll-DI6hQhT9.js +76 -0
- package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-b2uaAMRR.js} +1 -1
- package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-CbqbNwgU.js} +2 -2
- package/dist/IconChip-BTD-nay5.js +55 -0
- package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-Bl8gFZ8d.js} +1 -1
- package/dist/{Input-DWQQIOC4.js → Input-h9v5LeXf.js} +1 -1
- package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-RHdBP72w.js} +1 -1
- package/dist/Notification-VUwexFUf.js +43 -0
- package/dist/NumberFieldContent-Cq7EzX-U.js +138 -0
- package/dist/PopoverContent-DL7E6vJP.js +127 -0
- package/dist/{Progress-DwlUKGbr.js → Progress-DctG61iZ.js} +98 -78
- package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-yOpBzFYq.js} +2 -2
- package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-CrA8F0iV.js} +35 -20
- package/dist/{Switch-CsIuYP_e.js → Switch-CwYNf8bo.js} +1 -1
- package/dist/Toaster-Bw4xR8xV.js +274 -0
- package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-pEM9vIhs.js} +50 -37
- package/dist/{TooltipProvider-B3MkB_8P.js → TooltipProvider-rzvnXz60.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +16 -8
- package/dist/api/types-extra.d.ts +6 -0
- package/dist/api.js +2 -2
- package/dist/aurora.js +888 -230
- package/dist/badge.js +1 -1
- package/dist/border-progress.d.ts +1 -0
- package/dist/border-progress.js +106 -0
- package/dist/button-DYCUa-tH.js +126 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -2
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +90 -151
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/compile-CQEFRTmx.js +19 -0
- package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
- package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +19 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +51 -0
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +29 -0
- package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +30 -2
- package/dist/components/custom/aurora/constants/renderMode.d.ts +63 -10
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +3 -2
- package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
- package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +22 -0
- package/dist/components/custom/border-progress/constants.d.ts +59 -0
- package/dist/components/custom/border-progress/index.d.ts +4 -0
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +11 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
- package/dist/components/custom/concentric/composables/ringField.d.ts +44 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +13 -0
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
- package/dist/components/custom/concentric/constants.d.ts +43 -0
- package/dist/components/custom/concentric/index.d.ts +5 -0
- package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
- package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/constellationField.d.ts +2 -369
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +1 -1
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +13 -4
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
- package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +75 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
- package/dist/components/custom/dock/constants.d.ts +35 -0
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +38 -0
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +41 -0
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +24 -0
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +34 -0
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -0
- package/dist/components/custom/dot-flow-field/constants.d.ts +48 -0
- package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +20 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
- package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
- package/dist/components/custom/easing/composables/useEasingPicker.d.ts +75 -0
- package/dist/components/custom/easing/constants.d.ts +28 -0
- package/dist/components/custom/easing/index.d.ts +3 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +19 -2
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +39 -0
- package/dist/components/custom/fourier-field/constants.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +17 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +9 -1
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +4 -2
- package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +29 -12
- package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
- package/dist/components/custom/goo-blob/constants.d.ts +6 -1
- package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +269 -0
- package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +52 -0
- package/dist/components/custom/handmark/index.d.ts +27 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +62 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +82 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -2
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
- package/dist/components/custom/spa-view/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +29 -24
- package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +9 -3
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +15 -1
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/button/Button.vue.d.ts +5 -2
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/card/Card.vue.d.ts +34 -4
- package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
- package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
- package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
- package/dist/components/ui/card/index.d.ts +2 -0
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +4 -1
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +12 -8
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
- package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
- package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
- package/dist/components/ui/drawer/constants.d.ts +45 -0
- package/dist/components/ui/drawer/index.d.ts +23 -15
- package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
- package/dist/components/ui/focus-scope/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
- package/dist/components/ui/toast/use-toast.d.ts +14 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +23 -1
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
- package/dist/composables/glass/index.d.ts +5 -2
- package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
- package/dist/composables/glass/vSpecular.d.ts +2 -0
- package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
- package/dist/composables/glass/webgpu/index.d.ts +2 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +54 -0
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +84 -0
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/composables/motion/index.d.ts +4 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +59 -0
- package/dist/composables/motion/useDragMorph.d.ts +77 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
- package/dist/composables/motion/useLiquidPress.d.ts +71 -0
- package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
- package/dist/composables/motion/useNumericTransition.d.ts +3 -3
- package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/concentric.d.ts +1 -0
- package/dist/concentric.js +562 -0
- package/dist/configurator.js +3 -2
- package/dist/confirm-dialog.js +22 -24
- package/dist/constellation.js +93 -95
- package/dist/context-menu.js +3 -3
- package/dist/controls.js +10 -4
- package/dist/createCanvasLifecycle-CHD5XrDW.js +82 -0
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +738 -442
- package/dist/{dockContext-BegmJVmx.js → dockContext-BNfyPLe9.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/dot-flow-field.d.ts +1 -0
- package/dist/dot-flow-field.js +604 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.js +380 -0
- package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-CofSZuk8.js} +14 -15
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.d.ts +1 -0
- package/dist/easing.js +463 -0
- package/dist/expandable-container.js +45 -38
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/focus-scope.d.ts +1 -0
- package/dist/focus-scope.js +23 -0
- package/dist/forms.js +7 -7
- package/dist/fourier-field.js +135 -122
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +39 -36
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +154 -362
- package/dist/goo-blob.js +838 -227
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +707 -0
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/{math-U6-RrLmV.js → math-BINYmg5z.js} +11 -3
- package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-D8VNHq22.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +25 -22
- package/dist/metric-stack.js +4 -8
- package/dist/motion-core.js +36 -35
- package/dist/motion-curves.js +1 -1
- package/dist/motion.js +157 -55
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
- package/dist/{compile-B7NGOBcP.js → procedural-color.glsl-CIFsJhwI.js} +1 -155
- package/dist/procedural-color.wgsl-CToRHugY.js +224 -0
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +10 -12
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet-tZMg0E0w.js +218 -0
- package/dist/sheet.js +1 -1
- package/dist/{slider-B-JP2JlI.js → slider-DVb4HXU-.js} +7 -7
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/spa-view.d.ts +1 -0
- package/dist/spa-view.js +46 -0
- package/dist/styles/animations.css +40 -31
- package/dist/styles/border-progress.css +109 -0
- package/dist/styles/cards.css +76 -0
- package/dist/styles/components.css +1 -1
- package/dist/styles/configurator.css +35 -0
- package/dist/styles/critical-partition.mjs +140 -0
- package/dist/styles/critical.css +12 -0
- package/dist/styles/deferred.css +31 -0
- package/dist/styles/dock/density.css +64 -0
- package/dist/styles/dock/layers.css +54 -30
- package/dist/styles/dock/morph.css +124 -7
- package/dist/styles/dock/overflow.css +31 -2
- package/dist/styles/dock/rail-extend.css +168 -71
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +83 -16
- package/dist/styles/dock-controls/icon-button.css +11 -1
- package/dist/styles/dock-controls/tab-button.css +24 -83
- package/dist/styles/dock-controls/triggers.css +7 -0
- package/dist/styles/dock.css +38 -3
- package/dist/styles/drawer.css +127 -35
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/glass/deep.css +44 -0
- package/dist/styles/glass/ladder.css +154 -52
- package/dist/styles/glass/material.css +78 -15
- package/dist/styles/glass/reveal.css +136 -0
- package/dist/styles/glass/rim.css +100 -0
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +189 -15
- package/dist/styles/glass-refract.css +96 -44
- package/dist/styles/glass-specular-track.css +7 -0
- package/dist/styles/glass.css +8 -2
- package/dist/styles/hover-popover.css +7 -6
- package/dist/styles/icon-chip.css +211 -0
- package/dist/styles/index.css +78 -4
- package/dist/styles/instrument-chassis.css +107 -2
- package/dist/styles/menu.css +127 -0
- package/dist/styles/scroll-choreography.css +300 -0
- package/dist/styles/segmented-tabs.css +188 -86
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +22 -1
- package/dist/styles/theme/literals.css +11 -2
- package/dist/styles/theme/radius.css +6 -1
- package/dist/styles/tokens/color-radius.css +40 -13
- package/dist/styles/tokens/dark-arm.css +200 -20
- package/dist/styles/tokens/glass-deep.css +75 -0
- package/dist/styles/tokens/glass-fx.css +333 -0
- package/dist/styles/tokens/glass.css +95 -315
- package/dist/styles/tokens/light-dark.css +64 -22
- package/dist/styles/tokens/offsets.css +116 -0
- package/dist/styles/tokens/on-glass-fg.css +39 -0
- package/dist/styles/tokens/property-regs.css +130 -10
- package/dist/styles/tokens/scale-paper.css +155 -84
- package/dist/styles/tokens/scheme-motion.css +102 -46
- package/dist/styles/tokens/scroll-tokens.css +123 -0
- package/dist/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
- package/dist/styles/tokens.css +9 -3
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +174 -0
- package/dist/styles/typography.css +23 -507
- package/dist/styles/utilities/a11y-overrides.css +33 -4
- package/dist/styles/utilities/animate.css +27 -24
- package/dist/styles/utilities/base-misc.css +255 -0
- package/dist/styles/utilities/base.css +100 -138
- package/dist/styles/utilities/btn.css +21 -202
- package/dist/styles/utilities/metal.css +189 -0
- package/dist/styles/utilities.css +14 -7
- package/dist/styles/view-transition.css +4 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +275 -191
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-BfUq2bUM.js} +1 -1
- package/dist/useCanvas2D-B8w_E3Rr.js +83 -0
- package/dist/useConfiguratorState-DNlOh6c8.js +161 -0
- package/dist/useDragMorph-DgxnsVJz.js +102 -0
- package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
- package/dist/useLiquidPress-kfb4KX79.js +39 -0
- package/dist/usePointerVelocityField-JbRd5CrM.js +137 -0
- package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-UYa4zoiN.js} +1 -1
- package/dist/useSpring-C0jyvEJB.js +40 -0
- package/dist/useSpringMount-q1amq1SJ.js +71 -0
- package/dist/useSpringPress-BsqPr7FJ.js +34 -0
- package/dist/useSurfaceAxis-g0NloYEF.js +7 -0
- package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-CBZTD4SD.js} +1 -1
- package/dist/vReveal-Czsb7zQC.js +10 -0
- package/dist/vSpecular-CQFmLNzA.js +68 -0
- package/dist/vendor-CKmzio-i.js +226 -0
- package/dist/watercolor-dot.js +12 -5
- package/package.json +193 -25
- package/src/styles/animations.css +40 -31
- package/src/styles/border-progress.css +109 -0
- package/src/styles/cards.css +76 -0
- package/src/styles/configurator.css +35 -0
- package/src/styles/critical-partition.mjs +140 -0
- package/src/styles/dock/density.css +64 -0
- package/src/styles/dock/layers.css +54 -30
- package/src/styles/dock/morph.css +124 -7
- package/src/styles/dock/overflow.css +31 -2
- package/src/styles/dock/rail-extend.css +168 -71
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +83 -16
- package/src/styles/dock-controls/icon-button.css +11 -1
- package/src/styles/dock-controls/tab-button.css +24 -83
- package/src/styles/dock-controls/triggers.css +7 -0
- package/src/styles/dock.css +38 -3
- package/src/styles/drawer.css +123 -35
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/glass/deep.css +44 -0
- package/src/styles/glass/ladder.css +154 -52
- package/src/styles/glass/material.css +78 -15
- package/src/styles/glass/reveal.css +136 -0
- package/src/styles/glass/rim.css +100 -0
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +189 -15
- package/src/styles/glass-refract.css +96 -44
- package/src/styles/glass-specular-track.css +7 -0
- package/src/styles/glass.css +8 -2
- package/src/styles/hover-popover.css +7 -6
- package/src/styles/icon-chip.css +211 -0
- package/src/styles/index.css +78 -4
- package/src/styles/instrument-chassis.css +107 -2
- package/src/styles/menu.css +127 -0
- package/src/styles/scroll-choreography.css +300 -0
- package/src/styles/segmented-tabs.css +184 -84
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +22 -1
- package/src/styles/theme/literals.css +11 -2
- package/src/styles/theme/radius.css +6 -1
- package/src/styles/tokens/color-radius.css +40 -13
- package/src/styles/tokens/dark-arm.css +200 -20
- package/src/styles/tokens/glass-deep.css +75 -0
- package/src/styles/tokens/glass-fx.css +333 -0
- package/src/styles/tokens/glass.css +95 -315
- package/src/styles/tokens/light-dark.css +64 -22
- package/src/styles/tokens/offsets.css +116 -0
- package/src/styles/tokens/on-glass-fg.css +39 -0
- package/src/styles/tokens/property-regs.css +130 -10
- package/src/styles/tokens/scale-paper.css +155 -84
- package/src/styles/tokens/scheme-motion.css +102 -46
- package/src/styles/tokens/scroll-tokens.css +123 -0
- package/src/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
- package/src/styles/tokens.css +9 -3
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +174 -0
- package/src/styles/typography.css +23 -507
- package/src/styles/utilities/a11y-overrides.css +33 -4
- package/src/styles/utilities/animate.css +27 -24
- package/src/styles/utilities/base-misc.css +255 -0
- package/src/styles/utilities/base.css +100 -138
- package/src/styles/utilities/btn.css +21 -202
- package/src/styles/utilities/metal.css +189 -0
- package/src/styles/utilities.css +14 -7
- package/src/styles/view-transition.css +4 -1
- package/dist/CardAction-Cj2eycQ2.js +0 -157
- package/dist/DialogContent-Dl9WkAoS.js +0 -100
- package/dist/Notification-DdwNxIrI.js +0 -100
- package/dist/NumberFieldContent-CqaN-SvN.js +0 -145
- package/dist/PopoverContent-BYwt2-4x.js +0 -121
- package/dist/TabsList-Dttss653.js +0 -105
- package/dist/Toaster-D6q4HtXu.js +0 -263
- package/dist/button-ChXMfsud.js +0 -81
- package/dist/check-njhk-vfu.js +0 -7
- package/dist/chevron-down-DKkxb4VV.js +0 -7
- package/dist/chevron-right-CPXbqQQz.js +0 -7
- package/dist/chevron-up-n_24SqI-.js +0 -7
- package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
- package/dist/components/custom/underline/index.d.ts +0 -2
- package/dist/components/custom/underline/types.d.ts +0 -56
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/createLucideIcon-DydS2qgk.js +0 -43
- package/dist/minimize-2-BV31Ob_h.js +0 -38
- package/dist/search-BSGrf2Sk.js +0 -12
- package/dist/sheet-1fChZjtw.js +0 -214
- package/dist/underline.d.ts +0 -1
- package/dist/underline.js +0 -85
- package/dist/useCanvas2D-ClrQuZtp.js +0 -96
- package/dist/useConfiguratorState-DAoeHVue.js +0 -287
- package/dist/useSpecularTracking-Bo5su68i.js +0 -32
- package/dist/useSpringMount-CI2jOstM.js +0 -108
- package/dist/vReveal-CqaCz_mC.js +0 -44
- package/dist/x-BUwTKe50.js +0 -10
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-68dEXIAl.js} +0 -0
- /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-Bx0F_q5g.js} +0 -0
- /package/dist/{Label-r3WzWrsj.js → Label-C2ejNWeC.js} +0 -0
- /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-D1VrWyoi.js} +0 -0
- /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-Vf3tlpvd.js} +0 -0
- /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-DwwjicPY.js} +0 -0
- /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DXswVdRz.js} +0 -0
- /package/dist/{Separator-0JE6LtNu.js → Separator-pKF0oA4M.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
- /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
- /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-BM46COQ-.js → createContext-CpBNTRMI.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Za0Rmgag.js} +0 -0
- /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CUyHr5Uu.js} +0 -0
- /package/dist/{springPresets--YdWTHtm.js → springPresets-CFQGQfdl.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-iHludrxk.js → useInterval-CvK1mL92.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-mZPMiNXh.js} +0 -0
- /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-Bpoi7tRE.js} +0 -0
- /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
- /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-DHjtZSEd.js} +0 -0
- /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-CWEi25hf.js} +0 -0
- /package/dist/{useTimer-Dzarvzuk.js → useTimer-BHJOKr35.js} +0 -0
- /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-y5namzeE.js} +0 -0
- /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-anbac3m6.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import {
|
|
4
|
-
import { ProgressIndicator as
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, toRef as p, unref as m, watchEffect as h, withCtx as g } from "vue";
|
|
4
|
+
import { ProgressIndicator as _, ProgressRoot as v } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/ui/progress/ProgressDefault.vue
|
|
7
|
-
var
|
|
7
|
+
var y = /* @__PURE__ */ c({
|
|
8
8
|
__name: "ProgressDefault",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: {},
|
|
@@ -22,19 +22,19 @@ var x = /* @__PURE__ */ l({
|
|
|
22
22
|
] }
|
|
23
23
|
},
|
|
24
24
|
setup(t) {
|
|
25
|
-
let
|
|
26
|
-
let { class: e, ...t } =
|
|
25
|
+
let i = t, a = n(() => {
|
|
26
|
+
let { class: e, ...t } = i;
|
|
27
27
|
return t;
|
|
28
28
|
});
|
|
29
|
-
return (t,
|
|
30
|
-
default:
|
|
29
|
+
return (t, n) => (f(), r(m(v), l({ "data-slot": "progress" }, a.value, { class: m(e)("relative h-4 w-full overflow-hidden rounded-pill bg-[var(--progress-track,var(--progress-track-on-glass))]", i.class) }), {
|
|
30
|
+
default: g(() => [s(m(_), {
|
|
31
31
|
class: "h-full w-full flex-1 rounded-pill [background:var(--progress-fill,var(--primary))] transition-transform",
|
|
32
|
-
style:
|
|
32
|
+
style: d({ transform: `translateX(-${100 - (i.modelValue ?? 0)}%)` })
|
|
33
33
|
}, null, 8, ["style"])]),
|
|
34
34
|
_: 1
|
|
35
35
|
}, 16, ["class"]));
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), b = /* @__PURE__ */ t(/* @__PURE__ */ c({
|
|
38
38
|
__name: "ProgressGradient",
|
|
39
39
|
props: {
|
|
40
40
|
modelValue: {},
|
|
@@ -53,30 +53,30 @@ var x = /* @__PURE__ */ l({
|
|
|
53
53
|
indeterminate: { type: Boolean }
|
|
54
54
|
},
|
|
55
55
|
setup(t) {
|
|
56
|
-
let
|
|
57
|
-
let { class: e, indeterminate: t, ...
|
|
58
|
-
return
|
|
59
|
-
}), o =
|
|
60
|
-
if (
|
|
61
|
-
let e =
|
|
56
|
+
let i = t, a = n(() => {
|
|
57
|
+
let { class: e, indeterminate: t, ...n } = i;
|
|
58
|
+
return n;
|
|
59
|
+
}), o = n(() => {
|
|
60
|
+
if (i.indeterminate) return "idle";
|
|
61
|
+
let e = i.modelValue ?? 0;
|
|
62
62
|
return e <= 0 ? "idle" : e >= 100 ? "complete" : e < 5 ? "loading" : "progressing";
|
|
63
|
-
}),
|
|
64
|
-
if (
|
|
65
|
-
let e =
|
|
63
|
+
}), c = n(() => {
|
|
64
|
+
if (i.indeterminate) return;
|
|
65
|
+
let e = i.modelValue ?? 0;
|
|
66
66
|
if (e < 85) return { "--progress-crescendo": "0%" };
|
|
67
67
|
let t = (e - 85) / 15 * 100;
|
|
68
68
|
return { "--progress-crescendo": `${Math.min(100, Math.max(0, t))}%` };
|
|
69
69
|
});
|
|
70
|
-
return (
|
|
71
|
-
class:
|
|
70
|
+
return (n, u) => (f(), r(m(v), l({ "data-slot": "progress" }, a.value, {
|
|
71
|
+
class: m(e)("relative h-4 w-full overflow-hidden rounded-pill bg-[var(--progress-track,var(--progress-track-on-glass))] progress-gradient-rail", i.class),
|
|
72
72
|
"data-lifecycle": o.value,
|
|
73
73
|
"data-indeterminate": t.indeterminate || void 0
|
|
74
74
|
}), {
|
|
75
|
-
default:
|
|
75
|
+
default: g(() => [s(m(_), {
|
|
76
76
|
class: "h-full w-full flex-1 rounded-pill [background:var(--progress-fill,var(--primary))] transition-transform",
|
|
77
|
-
style:
|
|
78
|
-
transform: `translateX(-${100 - (
|
|
79
|
-
...
|
|
77
|
+
style: d({
|
|
78
|
+
transform: `translateX(-${100 - (i.modelValue ?? 0)}%)`,
|
|
79
|
+
...c.value ?? {}
|
|
80
80
|
})
|
|
81
81
|
}, null, 8, ["style"])]),
|
|
82
82
|
_: 1
|
|
@@ -86,11 +86,11 @@ var x = /* @__PURE__ */ l({
|
|
|
86
86
|
"data-indeterminate"
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
|
-
}), [["__scopeId", "data-v-
|
|
89
|
+
}), [["__scopeId", "data-v-971dff91"]]);
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/ui/progress/useProgressGeometry.ts
|
|
92
|
-
function
|
|
93
|
-
let t =
|
|
92
|
+
function x(e) {
|
|
93
|
+
let t = n(() => {
|
|
94
94
|
let t = e.segments.value;
|
|
95
95
|
if (t.length === 0) return [];
|
|
96
96
|
let n = t.map((e) => e.weight ?? 1), r = n.reduce((e, t) => e + t, 0) || 1, i = t.findIndex((t) => t.key === e.currentSegmentKey.value), a = 0;
|
|
@@ -112,7 +112,7 @@ function C(e) {
|
|
|
112
112
|
});
|
|
113
113
|
return {
|
|
114
114
|
cells: t,
|
|
115
|
-
aggregateValue:
|
|
115
|
+
aggregateValue: n(() => {
|
|
116
116
|
if (t.value.length === 0) return 0;
|
|
117
117
|
let e = 0;
|
|
118
118
|
for (let n of t.value) e += n.fill * n.widthPct;
|
|
@@ -122,11 +122,11 @@ function C(e) {
|
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/components/ui/progress/ProgressSectioned.vue?vue&type=script&setup=true&lang.ts
|
|
125
|
-
var
|
|
125
|
+
var S = {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "progress-sectioned-sweep",
|
|
128
128
|
"aria-hidden": "true"
|
|
129
|
-
},
|
|
129
|
+
}, C = 3.2, w = "14%", T = /* @__PURE__ */ t(/* @__PURE__ */ c({
|
|
130
130
|
__name: "ProgressSectioned",
|
|
131
131
|
props: {
|
|
132
132
|
max: {},
|
|
@@ -146,50 +146,70 @@ var w = ["data-state", "data-index"], T = {
|
|
|
146
146
|
activeProgress: { default: 0 }
|
|
147
147
|
},
|
|
148
148
|
setup(t) {
|
|
149
|
-
let
|
|
150
|
-
let { class: e, segments: t, currentSegmentKey: n, activeProgress: r, ...i } =
|
|
149
|
+
let c = t, u = n(() => {
|
|
150
|
+
let { class: e, segments: t, currentSegmentKey: n, activeProgress: r, ...i } = c;
|
|
151
151
|
return i;
|
|
152
|
-
}), { cells:
|
|
153
|
-
segments:
|
|
154
|
-
currentSegmentKey:
|
|
155
|
-
activeProgress:
|
|
152
|
+
}), { cells: h, aggregateValue: y } = x({
|
|
153
|
+
segments: p(c, "segments"),
|
|
154
|
+
currentSegmentKey: p(c, "currentSegmentKey"),
|
|
155
|
+
activeProgress: p(c, "activeProgress")
|
|
156
|
+
}), b = n(() => {
|
|
157
|
+
let e = 0;
|
|
158
|
+
for (let t of h.value) {
|
|
159
|
+
let n = t.startPct + t.widthPct * t.fill;
|
|
160
|
+
n > e && (e = n);
|
|
161
|
+
}
|
|
162
|
+
return Math.max(0, Math.min(100, e));
|
|
163
|
+
}), T = n(() => h.value.find((e) => e.resolvedState === "active") ?? null), E = n(() => {
|
|
164
|
+
let e = b.value;
|
|
165
|
+
if (e <= 0) return "none";
|
|
166
|
+
let t = [];
|
|
167
|
+
for (let n of h.value) {
|
|
168
|
+
let r = n.startPct + n.widthPct * n.fill;
|
|
169
|
+
if (r <= n.startPct) continue;
|
|
170
|
+
let i = n.startPct / e * 100, a = r / e * 100;
|
|
171
|
+
t.push({
|
|
172
|
+
from: Math.max(0, i),
|
|
173
|
+
to: Math.min(100, a),
|
|
174
|
+
color: n.color
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
if (t.length === 0) return "none";
|
|
178
|
+
let n = [];
|
|
179
|
+
return t.forEach((e, r) => {
|
|
180
|
+
let i = t[r - 1], a = t[r + 1], o = i ? e.from + C : e.from, s = a ? e.to - C : e.to;
|
|
181
|
+
n.push(`${e.color} ${o.toFixed(2)}%`), n.push(`${e.color} ${Math.max(o, s).toFixed(2)}%`);
|
|
182
|
+
}), `linear-gradient(90deg, ${n.join(", ")})`;
|
|
183
|
+
}), D = n(() => {
|
|
184
|
+
let e = [];
|
|
185
|
+
for (let t of h.value) {
|
|
186
|
+
if (t.resolvedState === "completed" || t.resolvedState === "active" && t.fill >= 1) continue;
|
|
187
|
+
let n = `color-mix(in srgb, ${t.color} ${w}, transparent)`;
|
|
188
|
+
e.push(`${n} ${t.startPct.toFixed(2)}%`), e.push(`${n} ${t.endPct.toFixed(2)}%`);
|
|
189
|
+
}
|
|
190
|
+
return e.length === 0 ? "none" : `linear-gradient(90deg, ${e.join(", ")})`;
|
|
156
191
|
});
|
|
157
|
-
return (t,
|
|
158
|
-
"model-value":
|
|
159
|
-
class:
|
|
192
|
+
return (t, n) => (f(), r(m(v), l({ "data-slot": "progress" }, u.value, {
|
|
193
|
+
"model-value": m(y),
|
|
194
|
+
class: m(e)("relative h-[var(--progress-sectioned-height,0.875rem)] w-full overflow-hidden rounded-pill progress-sectioned-rail", c.class),
|
|
195
|
+
style: { "--progress-track-ghost": D.value }
|
|
160
196
|
}), {
|
|
161
|
-
default:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
left: e.startPct + "%",
|
|
170
|
-
width: e.widthPct + "%",
|
|
171
|
-
"--cell-color": e.color,
|
|
172
|
-
"--cell-fill": e.fill
|
|
173
|
-
})
|
|
174
|
-
}, [s("span", {
|
|
175
|
-
class: "progress-sectioned-fill",
|
|
176
|
-
style: f({ width: e.fill * 100 + "%" })
|
|
177
|
-
}, null, 4), e.resolvedState === "active" ? (p(), o("span", T)) : a("", !0)], 12, w))), 128)),
|
|
178
|
-
(p(!0), o(n, null, m(g(_), (e, t) => (p(), o(n, { key: `seam-${e.key}` }, [t < g(_).length - 1 ? (p(), o("span", {
|
|
179
|
-
key: 0,
|
|
180
|
-
class: "progress-sectioned-seam",
|
|
181
|
-
style: f({
|
|
182
|
-
left: e.endPct + "%",
|
|
183
|
-
"--seam-from": e.color,
|
|
184
|
-
"--seam-to": g(_)[t + 1].color
|
|
185
|
-
}),
|
|
186
|
-
"aria-hidden": "true"
|
|
187
|
-
}, null, 4)) : a("", !0)], 64))), 128))
|
|
188
|
-
]),
|
|
197
|
+
default: g(() => [s(m(_), { class: "absolute inset-0 pointer-events-none opacity-0" }), o("div", {
|
|
198
|
+
class: "progress-sectioned-flow",
|
|
199
|
+
style: d({
|
|
200
|
+
width: b.value + "%",
|
|
201
|
+
"--flow-gradient": E.value,
|
|
202
|
+
"--front-color": T.value ? T.value.color : "transparent"
|
|
203
|
+
})
|
|
204
|
+
}, [T.value ? (f(), a("span", S)) : i("", !0)], 4)]),
|
|
189
205
|
_: 1
|
|
190
|
-
}, 16, [
|
|
206
|
+
}, 16, [
|
|
207
|
+
"model-value",
|
|
208
|
+
"class",
|
|
209
|
+
"style"
|
|
210
|
+
]));
|
|
191
211
|
}
|
|
192
|
-
}), [["__scopeId", "data-v-
|
|
212
|
+
}), [["__scopeId", "data-v-a54cba00"]]), E = /* @__PURE__ */ c({
|
|
193
213
|
__name: "Progress",
|
|
194
214
|
props: {
|
|
195
215
|
modelValue: { default: 0 },
|
|
@@ -220,35 +240,35 @@ var w = ["data-state", "data-index"], T = {
|
|
|
220
240
|
let t = `[glass-ui] Progress: ${e}`;
|
|
221
241
|
console.error(t);
|
|
222
242
|
}
|
|
223
|
-
return
|
|
243
|
+
return h(() => {
|
|
224
244
|
let e = t.variant === "sectioned";
|
|
225
245
|
!e && t.segments.length > 0 && n(`\`segments\` is only valid on variant="sectioned" (got variant="${t.variant}"). The default/gradient variants are driven by \`modelValue\`.`), e && (t.modelValue ?? 0) !== 0 && n("variant=\"sectioned\" ignores `modelValue` — its value derives from the per-cell state map (segments + currentSegmentKey + activeProgress). Drive the fill via `activeProgress`/`currentSegmentKey`, not `modelValue`."), e && t.indeterminate && n("`indeterminate` is not compatible with variant=\"sectioned\". The sectioned variant's living motion is the active-cell sweep.");
|
|
226
|
-
}), (e, n) => t.variant === "sectioned" ? (
|
|
246
|
+
}), (e, n) => t.variant === "sectioned" ? (f(), r(T, {
|
|
227
247
|
key: 0,
|
|
228
248
|
segments: t.segments,
|
|
229
249
|
"current-segment-key": t.currentSegmentKey,
|
|
230
250
|
"active-progress": t.activeProgress,
|
|
231
|
-
class:
|
|
251
|
+
class: u(t.class)
|
|
232
252
|
}, null, 8, [
|
|
233
253
|
"segments",
|
|
234
254
|
"current-segment-key",
|
|
235
255
|
"active-progress",
|
|
236
256
|
"class"
|
|
237
|
-
])) : t.variant === "gradient" ? (
|
|
257
|
+
])) : t.variant === "gradient" ? (f(), r(b, {
|
|
238
258
|
key: 1,
|
|
239
259
|
"model-value": t.modelValue,
|
|
240
260
|
indeterminate: t.indeterminate,
|
|
241
|
-
class:
|
|
261
|
+
class: u(t.class)
|
|
242
262
|
}, null, 8, [
|
|
243
263
|
"model-value",
|
|
244
264
|
"indeterminate",
|
|
245
265
|
"class"
|
|
246
|
-
])) : (
|
|
266
|
+
])) : (f(), r(y, {
|
|
247
267
|
key: 2,
|
|
248
268
|
"model-value": t.modelValue,
|
|
249
|
-
class:
|
|
269
|
+
class: u(t.class)
|
|
250
270
|
}, null, 8, ["model-value", "class"]));
|
|
251
271
|
}
|
|
252
272
|
});
|
|
253
273
|
//#endregion
|
|
254
|
-
export {
|
|
274
|
+
export { y as a, b as i, T as n, x as r, E as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { t as n } from "./useResizeObserver-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
|
+
import { t as n } from "./useResizeObserver-Bpoi7tRE.js";
|
|
4
4
|
import { createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderSlot as u, toDisplayString as d, unref as f, useTemplateRef as p, watchEffect as m } from "vue";
|
|
5
5
|
//#region src/components/custom/scrolling-text/ScrollingText.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var h = ["data-overflows"], g = /* @__PURE__ */ t(/* @__PURE__ */ o({
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { i } from "./dockContext-BegmJVmx.js";
|
|
2
|
+
import { _ as t, b as n } from "./vendor-CKmzio-i.js";
|
|
3
|
+
import { t as r } from "./menuItemVariants-D8VNHq22.js";
|
|
4
|
+
import { i } from "./dockContext-BNfyPLe9.js";
|
|
6
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, renderSlot as _, unref as v, withCtx as y } from "vue";
|
|
7
6
|
import { SelectContent as b, SelectIcon as x, SelectItem as S, SelectItemIndicator as C, SelectItemText as w, SelectPortal as T, SelectRoot as E, SelectScrollDownButton as D, SelectScrollUpButton as O, SelectTrigger as k, SelectValue as A, SelectViewport as j, useForwardProps as M, useForwardPropsEmits as N } from "reka-ui";
|
|
8
7
|
//#endregion
|
|
@@ -61,18 +60,34 @@ var P = /* @__PURE__ */ d({
|
|
|
61
60
|
variant: { default: "default" },
|
|
62
61
|
size: { default: "default" }
|
|
63
62
|
},
|
|
64
|
-
setup(
|
|
65
|
-
let r =
|
|
63
|
+
setup(t) {
|
|
64
|
+
let r = t, i = M(a(() => {
|
|
66
65
|
let { class: e, variant: t, size: n, ...i } = r;
|
|
67
66
|
return i;
|
|
68
|
-
})), s = a(() => r.variant === "ghost" ? "bg-transparent border-none shadow-none" : "
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
})), s = a(() => r.variant === "ghost" ? "bg-transparent border-none shadow-none" : "control-surface"), c = a(() => {
|
|
68
|
+
switch (r.size) {
|
|
69
|
+
case "sm": return "h-(--control-h-sm)";
|
|
70
|
+
case "display":
|
|
71
|
+
case "audacious": return "h-(--control-h-lg)";
|
|
72
|
+
default: return "h-(--control-h-md)";
|
|
73
|
+
}
|
|
74
|
+
}), l = a(() => {
|
|
75
|
+
let e = r.size === "display" ? "var(--type-heading)" : r.size === "audacious" ? "var(--type-display-1)" : void 0;
|
|
76
|
+
if (e) return {
|
|
77
|
+
"--dropdown-text": e,
|
|
78
|
+
"--text-dropdown": e
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
return (t, a) => (g(), o(v(k), p({ "data-slot": "select-trigger" }, v(i), {
|
|
82
|
+
style: l.value,
|
|
83
|
+
class: v(e)(s.value, c.value, "tap-squish focus-ring flex w-full items-center justify-between rounded-pill px-3 py-2 text-dropdown placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled [&>span]:line-clamp-1 transition-control aria-invalid:border-(--destructive) user-invalid:border-(--destructive) focus-visible:aria-invalid:shadow-(--invalid-ring) focus-visible:user-invalid:shadow-(--invalid-ring)", r.class)
|
|
84
|
+
}), {
|
|
85
|
+
default: y(() => [_(t.$slots, "default"), u(v(x), { "as-child": "" }, {
|
|
86
|
+
default: y(() => [u(v(n), { class: "transition-transform duration-200 ease-standard [&[data-state=open]]:rotate-180 h-4 w-4 shrink-0 opacity-50" })]),
|
|
72
87
|
_: 1
|
|
73
88
|
})]),
|
|
74
89
|
_: 3
|
|
75
|
-
}, 16, ["class"]));
|
|
90
|
+
}, 16, ["style", "class"]));
|
|
76
91
|
}
|
|
77
92
|
}), L = /* @__PURE__ */ d({
|
|
78
93
|
inheritAttrs: !1,
|
|
@@ -128,7 +143,7 @@ var P = /* @__PURE__ */ d({
|
|
|
128
143
|
"data-glass-dock-portal": v(l)?.id ? "" : void 0,
|
|
129
144
|
"data-glass-dock-owner": v(l)?.id,
|
|
130
145
|
"data-slot": "select-content",
|
|
131
|
-
class: v(e)("relative z-popover min-w-32 overflow-y-auto rounded-panel border text-popover-foreground
|
|
146
|
+
class: v(e)("relative z-popover min-w-32 overflow-y-auto rounded-panel border text-popover-foreground glass-reveal origin-(--reka-select-content-transform-origin)", t.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", "glass-floating", r.class)
|
|
132
147
|
}), {
|
|
133
148
|
default: y(() => [
|
|
134
149
|
u(v(V)),
|
|
@@ -199,13 +214,13 @@ var P = /* @__PURE__ */ d({
|
|
|
199
214
|
Array
|
|
200
215
|
] }
|
|
201
216
|
},
|
|
202
|
-
setup(
|
|
203
|
-
let r =
|
|
217
|
+
setup(n) {
|
|
218
|
+
let r = n, i = M(a(() => {
|
|
204
219
|
let { class: e, ...t } = r;
|
|
205
220
|
return t;
|
|
206
221
|
}));
|
|
207
|
-
return (
|
|
208
|
-
default: y(() => [_(
|
|
222
|
+
return (n, a) => (g(), o(v(O), p(v(i), { class: v(e)("flex cursor-default items-center justify-center py-1", r.class) }), {
|
|
223
|
+
default: y(() => [_(n.$slots, "default", {}, () => [u(v(t), { class: "h-4 w-4" })])]),
|
|
209
224
|
_: 3
|
|
210
225
|
}, 16, ["class"]));
|
|
211
226
|
}
|
|
@@ -222,13 +237,13 @@ var P = /* @__PURE__ */ d({
|
|
|
222
237
|
Array
|
|
223
238
|
] }
|
|
224
239
|
},
|
|
225
|
-
setup(
|
|
226
|
-
let r =
|
|
240
|
+
setup(t) {
|
|
241
|
+
let r = t, i = M(a(() => {
|
|
227
242
|
let { class: e, ...t } = r;
|
|
228
243
|
return t;
|
|
229
244
|
}));
|
|
230
|
-
return (
|
|
231
|
-
default: y(() => [_(
|
|
245
|
+
return (t, a) => (g(), o(v(D), p(v(i), { class: v(e)("flex cursor-default items-center justify-center py-1", r.class) }), {
|
|
246
|
+
default: y(() => [_(t.$slots, "default", {}, () => [u(v(n), { class: "h-4 w-4" })])]),
|
|
232
247
|
_: 3
|
|
233
248
|
}, 16, ["class"]));
|
|
234
249
|
}
|
|
@@ -36,7 +36,7 @@ var p = /* @__PURE__ */ i({
|
|
|
36
36
|
class: o(c(e)("pointer-events-none block h-5 w-5 rounded-pill bg-background ring-0 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")),
|
|
37
37
|
style: {
|
|
38
38
|
"box-shadow": "var(--shadow-md), var(--glass-highlight)",
|
|
39
|
-
transition: "translate var(--duration
|
|
39
|
+
transition: "translate var(--spring-snappy-duration) var(--spring-snappy)"
|
|
40
40
|
}
|
|
41
41
|
}, null, 8, ["class"])]),
|
|
42
42
|
_: 1
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./vendor-CKmzio-i.js";
|
|
3
|
+
import { t as n } from "./useSurfaceAxis-g0NloYEF.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
5
|
+
import { ToastAction as x, ToastClose as S, ToastDescription as C, ToastPortal as w, ToastProvider as T, ToastRoot as E, ToastTitle as D, ToastViewport as O, useForwardPropsEmits as k } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/ui/toast/Toast.vue
|
|
8
|
+
var A = /* @__PURE__ */ d({
|
|
9
|
+
__name: "Toast",
|
|
10
|
+
props: {
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] },
|
|
18
|
+
variant: { default: "default" },
|
|
19
|
+
surface: { default: "glass" },
|
|
20
|
+
defaultOpen: { type: Boolean },
|
|
21
|
+
forceMount: { type: Boolean },
|
|
22
|
+
type: {},
|
|
23
|
+
open: { type: Boolean },
|
|
24
|
+
duration: {},
|
|
25
|
+
asChild: { type: Boolean },
|
|
26
|
+
as: {}
|
|
27
|
+
},
|
|
28
|
+
emits: [
|
|
29
|
+
"escapeKeyDown",
|
|
30
|
+
"pause",
|
|
31
|
+
"resume",
|
|
32
|
+
"swipeStart",
|
|
33
|
+
"swipeMove",
|
|
34
|
+
"swipeCancel",
|
|
35
|
+
"swipeEnd",
|
|
36
|
+
"update:open"
|
|
37
|
+
],
|
|
38
|
+
setup(t, { emit: r }) {
|
|
39
|
+
let o = t, s = r, c = k(i(() => {
|
|
40
|
+
let { class: e, variant: t, surface: n, ...r } = o;
|
|
41
|
+
return r;
|
|
42
|
+
}), s);
|
|
43
|
+
return (r, i) => (m(), a(y(E), f({
|
|
44
|
+
"data-slot": "toast",
|
|
45
|
+
"data-variant": t.variant,
|
|
46
|
+
"data-surface": t.surface
|
|
47
|
+
}, y(c), { class: y(e)(y(n)(t.surface, "floating"), "[--overlay-pad-inline:--spacing(6)] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel px-(--overlay-pad-inline) py-(--overlay-pad-block) pr-8 transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", "text-foreground", {
|
|
48
|
+
"feedback-tone [&_svg]:text-(--tone)": t.variant !== "default",
|
|
49
|
+
"feedback-tone-destructive": t.variant === "destructive",
|
|
50
|
+
"feedback-tone-success": t.variant === "success",
|
|
51
|
+
"feedback-tone-warning": t.variant === "warning",
|
|
52
|
+
"feedback-tone-info": t.variant === "info"
|
|
53
|
+
}, o.class) }), {
|
|
54
|
+
default: b(() => [_(r.$slots, "default")]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 16, [
|
|
57
|
+
"data-variant",
|
|
58
|
+
"data-surface",
|
|
59
|
+
"class"
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
}), j = /* @__PURE__ */ d({
|
|
63
|
+
__name: "ToastAction",
|
|
64
|
+
props: {
|
|
65
|
+
class: { type: [
|
|
66
|
+
Boolean,
|
|
67
|
+
null,
|
|
68
|
+
String,
|
|
69
|
+
Object,
|
|
70
|
+
Array
|
|
71
|
+
] },
|
|
72
|
+
altText: {},
|
|
73
|
+
asChild: { type: Boolean },
|
|
74
|
+
as: {}
|
|
75
|
+
},
|
|
76
|
+
setup(t) {
|
|
77
|
+
let n = t, r = i(() => {
|
|
78
|
+
let { class: e, ...t } = n;
|
|
79
|
+
return t;
|
|
80
|
+
});
|
|
81
|
+
return (t, i) => (m(), a(y(x), f(r.value, { class: y(e)("focus-ring inline-flex h-[calc(2rem*var(--ui-scale))] shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
|
|
82
|
+
default: b(() => [_(t.$slots, "default")]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 16, ["class"]));
|
|
85
|
+
}
|
|
86
|
+
}), M = /* @__PURE__ */ d({
|
|
87
|
+
__name: "ToastClose",
|
|
88
|
+
props: {
|
|
89
|
+
class: { type: [
|
|
90
|
+
Boolean,
|
|
91
|
+
null,
|
|
92
|
+
String,
|
|
93
|
+
Object,
|
|
94
|
+
Array
|
|
95
|
+
] },
|
|
96
|
+
asChild: { type: Boolean },
|
|
97
|
+
as: {}
|
|
98
|
+
},
|
|
99
|
+
setup(n) {
|
|
100
|
+
let r = n, o = i(() => {
|
|
101
|
+
let { class: e, ...t } = r;
|
|
102
|
+
return t;
|
|
103
|
+
});
|
|
104
|
+
return (n, i) => (m(), a(y(S), f(o.value, { class: y(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", r.class) }), {
|
|
105
|
+
default: b(() => [u(y(t), { class: "h-4 w-4" })]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 16, ["class"]));
|
|
108
|
+
}
|
|
109
|
+
}), N = /* @__PURE__ */ d({
|
|
110
|
+
__name: "ToastDescription",
|
|
111
|
+
props: {
|
|
112
|
+
class: { type: [
|
|
113
|
+
Boolean,
|
|
114
|
+
null,
|
|
115
|
+
String,
|
|
116
|
+
Object,
|
|
117
|
+
Array
|
|
118
|
+
] },
|
|
119
|
+
asChild: { type: Boolean },
|
|
120
|
+
as: {}
|
|
121
|
+
},
|
|
122
|
+
setup(t) {
|
|
123
|
+
let n = t, r = i(() => {
|
|
124
|
+
let { class: e, ...t } = n;
|
|
125
|
+
return t;
|
|
126
|
+
});
|
|
127
|
+
return (t, i) => (m(), a(y(C), f(r.value, { class: y(e)("text-sm opacity-90", n.class) }), {
|
|
128
|
+
default: b(() => [_(t.$slots, "default")]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 16, ["class"]));
|
|
131
|
+
}
|
|
132
|
+
}), P = /* @__PURE__ */ d({
|
|
133
|
+
__name: "ToastTitle",
|
|
134
|
+
props: {
|
|
135
|
+
class: { type: [
|
|
136
|
+
Boolean,
|
|
137
|
+
null,
|
|
138
|
+
String,
|
|
139
|
+
Object,
|
|
140
|
+
Array
|
|
141
|
+
] },
|
|
142
|
+
asChild: { type: Boolean },
|
|
143
|
+
as: {}
|
|
144
|
+
},
|
|
145
|
+
setup(t) {
|
|
146
|
+
let n = t, r = i(() => {
|
|
147
|
+
let { class: e, ...t } = n;
|
|
148
|
+
return t;
|
|
149
|
+
});
|
|
150
|
+
return (t, i) => (m(), a(y(D), f(r.value, { class: y(e)("text-sm font-semibold", n.class) }), {
|
|
151
|
+
default: b(() => [_(t.$slots, "default")]),
|
|
152
|
+
_: 3
|
|
153
|
+
}, 16, ["class"]));
|
|
154
|
+
}
|
|
155
|
+
}), F = 5, I = 1e6, L = /* @__PURE__ */ new Map();
|
|
156
|
+
function R(e) {
|
|
157
|
+
if (L.has(e)) return;
|
|
158
|
+
let t = setTimeout(() => {
|
|
159
|
+
L.delete(e), B({
|
|
160
|
+
type: "REMOVE_TOAST",
|
|
161
|
+
toastId: e
|
|
162
|
+
});
|
|
163
|
+
}, I);
|
|
164
|
+
L.set(e, t);
|
|
165
|
+
}
|
|
166
|
+
var z = h([]);
|
|
167
|
+
function B(e) {
|
|
168
|
+
switch (e.type) {
|
|
169
|
+
case "ADD_TOAST":
|
|
170
|
+
z.value = [e.toast, ...z.value].slice(0, F);
|
|
171
|
+
break;
|
|
172
|
+
case "UPDATE_TOAST":
|
|
173
|
+
z.value = z.value.map((t) => t.id === e.toast.id ? {
|
|
174
|
+
...t,
|
|
175
|
+
...e.toast
|
|
176
|
+
} : t);
|
|
177
|
+
break;
|
|
178
|
+
case "DISMISS_TOAST": {
|
|
179
|
+
let { toastId: t } = e;
|
|
180
|
+
t ? R(t) : z.value.forEach((e) => {
|
|
181
|
+
R(e.id);
|
|
182
|
+
}), z.value = z.value.map((e) => e.id === t || t === void 0 ? {
|
|
183
|
+
...e,
|
|
184
|
+
open: !1
|
|
185
|
+
} : e);
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
case "REMOVE_TOAST":
|
|
189
|
+
e.toastId === void 0 ? z.value = [] : z.value = z.value.filter((t) => t.id !== e.toastId);
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
var V = 0;
|
|
194
|
+
function H() {
|
|
195
|
+
return V = (V + 1) % Number.MAX_VALUE, V.toString();
|
|
196
|
+
}
|
|
197
|
+
function U(e) {
|
|
198
|
+
let t = H(), n = (e) => B({
|
|
199
|
+
type: "UPDATE_TOAST",
|
|
200
|
+
toast: {
|
|
201
|
+
...e,
|
|
202
|
+
id: t
|
|
203
|
+
}
|
|
204
|
+
}), r = () => B({
|
|
205
|
+
type: "DISMISS_TOAST",
|
|
206
|
+
toastId: t
|
|
207
|
+
});
|
|
208
|
+
return B({
|
|
209
|
+
type: "ADD_TOAST",
|
|
210
|
+
toast: {
|
|
211
|
+
...e,
|
|
212
|
+
id: t,
|
|
213
|
+
open: !0,
|
|
214
|
+
"onUpdate:open": (e) => {
|
|
215
|
+
e || r();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}), {
|
|
219
|
+
id: t,
|
|
220
|
+
dismiss: r,
|
|
221
|
+
update: n
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function W() {
|
|
225
|
+
return {
|
|
226
|
+
toasts: i(() => z.value),
|
|
227
|
+
toast: U,
|
|
228
|
+
dismiss: (e) => B({
|
|
229
|
+
type: "DISMISS_TOAST",
|
|
230
|
+
toastId: e
|
|
231
|
+
})
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/components/ui/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
236
|
+
var G = { class: "grid gap-1" }, K = "fixed top-0 z-toast flex max-h-screen w-full", q = "p-4", J = "md:max-w-[420px]", Y = /* @__PURE__ */ d({
|
|
237
|
+
__name: "Toaster",
|
|
238
|
+
props: { position: { default: "bottom-right" } },
|
|
239
|
+
setup(t) {
|
|
240
|
+
let n = t, { toasts: d } = W(), h = {
|
|
241
|
+
"bottom-right": ["flex-col-reverse", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col"],
|
|
242
|
+
"bottom-left": ["flex-col-reverse", "sm:bottom-0 sm:left-0 sm:top-auto sm:flex-col"],
|
|
243
|
+
"bottom-center": ["flex-col-reverse", "sm:bottom-0 sm:left-1/2 sm:top-auto sm:-translate-x-1/2 sm:flex-col"],
|
|
244
|
+
"top-right": ["right-0 flex-col", ""],
|
|
245
|
+
"top-left": ["left-0 flex-col", ""],
|
|
246
|
+
"top-center": ["left-1/2 -translate-x-1/2 flex-col", ""]
|
|
247
|
+
}, _ = i(() => {
|
|
248
|
+
let [t, r] = h[n.position];
|
|
249
|
+
return e(K, t, q, r, J);
|
|
250
|
+
});
|
|
251
|
+
return (e, t) => (m(), a(y(T), null, {
|
|
252
|
+
default: b(() => [(m(!0), s(r, null, g(y(d), (e) => (m(), a(A, f({ key: e.id }, { ref_for: !0 }, e), {
|
|
253
|
+
default: b(() => [c("div", G, [e.title ? (m(), a(P, { key: 0 }, {
|
|
254
|
+
default: b(() => [l(v(e.title), 1)]),
|
|
255
|
+
_: 2
|
|
256
|
+
}, 1024)) : o("", !0), e.description ? (m(), a(N, { key: 1 }, {
|
|
257
|
+
default: b(() => [l(v(e.description), 1)]),
|
|
258
|
+
_: 2
|
|
259
|
+
}, 1024)) : o("", !0)]), u(M)]),
|
|
260
|
+
_: 2
|
|
261
|
+
}, 1040))), 128)), u(y(w), null, {
|
|
262
|
+
default: b(() => [u(y(O), {
|
|
263
|
+
class: p(_.value),
|
|
264
|
+
"aria-live": "polite",
|
|
265
|
+
"aria-atomic": "false"
|
|
266
|
+
}, null, 8, ["class"])]),
|
|
267
|
+
_: 1
|
|
268
|
+
})]),
|
|
269
|
+
_: 1
|
|
270
|
+
}));
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
//#endregion
|
|
274
|
+
export { N as a, A as c, P as i, U as n, M as o, W as r, j as s, Y as t };
|