@mkbabb/glass-ui 3.12.0 → 4.0.0
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/CardAction-XH4YBVEK.js +158 -0
- package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-DdtWXxOK.js} +58 -53
- package/dist/{ContextMenuSubContent-Bhg4f5jX.js → ContextMenuSubContent-B0Vs6atR.js} +4 -4
- package/dist/{DataTable-CUHMukiQ.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-8eZbdmPc.js} +2 -2
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{IconTooltip-Cus0fvK0.js → IconTooltip-DSjasZIt.js} +1 -1
- package/dist/MetricBadge-BpC0R_Ec.js +79 -0
- package/dist/{Notification-DLMhblXR.js → Notification-DKjKsQq8.js} +10 -10
- package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-1VtwDSgf.js} +3 -3
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-iEuD9pxG.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-C1jb3b3K.js} +24 -8
- package/dist/{Switch-Ch-k3Rv-.js → Switch-Dr--uLGH.js} +2 -2
- package/dist/{Toaster-1rYWrmAm.js → Toaster-Bm_HQSpc.js} +55 -52
- package/dist/{ToggleGroupItem-COu_4IW4.js → ToggleGroupItem-Dzk9hWsF.js} +18 -22
- package/dist/animated-digit.js +3 -3
- package/dist/api/index.d.ts +10 -4
- package/dist/api.js +1 -1
- package/dist/aurora.js +113 -98
- package/dist/{badge-CaoFJzRb.js → badge-UILT_3pZ.js} +1 -1
- package/dist/badge.js +1 -1
- package/dist/{button-DN39cGqL.js → button-BNDWhAZb.js} +12 -12
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +101 -145
- package/dist/{check-BBKKKSTf.js → check-njhk-vfu.js} +1 -1
- package/dist/{chevron-down-BSkTP2aL.js → chevron-down-DKkxb4VV.js} +1 -1
- package/dist/{chevron-right-sDM0Yvrf.js → chevron-right-CPXbqQQz.js} +1 -1
- package/dist/{chevron-up-CCOD_FTz.js → chevron-up-n_24SqI-.js} +1 -1
- package/dist/coalesceMetric-5qIeZnTx.js +13 -0
- package/dist/collapsible.js +1 -1
- package/dist/{color-C5ls_QF7.js → color-DweYl7pE.js} +9 -7
- 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/components/custom/animated-digit/AnimatedDigit.vue.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +16 -45
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -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/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/configurator/ConfiguratorRow.vue.d.ts +16 -0
- package/dist/components/custom/constellation/Constellation.vue.d.ts +23 -143
- package/dist/components/custom/constellation/composables/createConstellationField.d.ts +41 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
- package/dist/components/custom/constellation/constants.d.ts +61 -0
- package/dist/components/custom/constellation/constellationDraw.d.ts +30 -0
- package/dist/components/custom/constellation/constellationField.d.ts +3 -403
- package/dist/components/custom/constellation/constellationInteraction.d.ts +132 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +5 -2
- package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
- package/dist/components/custom/dock/DockRail.vue.d.ts +89 -0
- 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 -6
- package/dist/components/custom/dock/GlassDock.vue.d.ts +5 -118
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
- package/dist/components/custom/dock/composables/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useDockClickIntegrity.d.ts +23 -0
- package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
- package/dist/components/custom/dock/composables/useDockOrientationMorph.d.ts +44 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +165 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
- package/dist/components/custom/dock/constants.d.ts +83 -0
- package/dist/components/custom/dock/index.d.ts +5 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +15 -37
- 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 +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +34 -0
- package/dist/components/custom/fourier-field/presets.d.ts +54 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
- package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
- package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +21 -8
- package/dist/components/custom/goo-blob/constants.d.ts +57 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
- package/dist/components/custom/handmark/brush.d.ts +33 -6
- package/dist/components/custom/handmark/{useHandMark.d.ts → composables/useHandMark.d.ts} +6 -4
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/geometry.d.ts +14 -12
- package/dist/components/custom/handmark/index.d.ts +8 -2
- package/dist/components/custom/handmark/types.d.ts +9 -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 +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +37 -0
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +6 -0
- package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +11 -18
- package/dist/components/custom/metric-badge/index.d.ts +1 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +15 -4
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +6 -4
- 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/tabs/SegmentedTabs.vue.d.ts +20 -25
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +18 -0
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
- 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/card/Card.vue.d.ts +16 -4
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/metric-pill/MetricPill.vue.d.ts +6 -3
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- 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/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/components/ui/slider/index.d.ts +22 -19
- package/dist/components/ui/tabs/TabsIndicator.vue.d.ts +4 -1
- package/dist/components/ui/toast/use-toast.d.ts +2 -2
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -7
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +1 -3
- package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +0 -13
- package/dist/composables/color/index.d.ts +12 -0
- package/dist/composables/dark/useGlobalDark.d.ts +14 -12
- package/dist/composables/glass/index.d.ts +0 -1
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +59 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
- package/dist/composables/motion/core/index.d.ts +1 -1
- package/dist/composables/motion/curves.d.ts +48 -0
- package/dist/composables/motion/index.d.ts +2 -0
- package/dist/composables/motion/springPresets.d.ts +33 -0
- package/dist/composables/motion/suite.d.ts +2 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +85 -0
- package/dist/composables/motion/useSpringMount.d.ts +1 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.js +373 -261
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +48 -14
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +901 -372
- package/dist/dockContext-Bu1Avy-a.js +17 -0
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-BJ7E9js_.js} +11 -8
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +44 -81
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +5 -5
- package/dist/fourier-field.js +140 -104
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +90 -21
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +230 -236
- package/dist/goo-blob.js +264 -228
- package/dist/handmark.js +203 -159
- 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 -5
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +28 -18
- package/dist/{math-DTpRVC0e.js → math-DeuJwLFx.js} +26 -2
- package/dist/{menuItemVariants-CCoBNkU5.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +29 -22
- package/dist/metric-stack.js +35 -34
- package/dist/{minimize-2-lcXOuc6V.js → minimize-2-BV31Ob_h.js} +1 -1
- package/dist/motion-core.js +32 -136
- package/dist/motion-curves.d.ts +1 -0
- package/dist/motion-curves.js +130 -0
- package/dist/motion.js +38 -37
- 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/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-nbkvr2dC.js → search-BSGrf2Sk.js} +1 -1
- package/dist/search.js +10 -10
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet-CquRYOAw.js +218 -0
- package/dist/sheet.js +1 -1
- package/dist/{slider-ClgpP7EB.js → slider-DQ95MET2.js} +8 -8
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/springPresets-WXaLbu8u.js +40 -0
- package/dist/stacked-icons.js +6 -6
- package/dist/styles/animations.css +25 -125
- package/dist/styles/cards.css +55 -0
- package/dist/styles/components.css +4 -1
- package/dist/styles/configurator.css +77 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/layer-group.css +83 -25
- package/dist/styles/dock/layers.css +23 -1
- package/dist/styles/dock/morph-bridge.css +123 -0
- package/dist/styles/dock/morph.css +175 -45
- package/dist/styles/dock/overflow.css +66 -1
- package/dist/styles/dock/rail-extend.css +397 -0
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +97 -110
- package/dist/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/dist/styles/dock-controls/icon-button.css +143 -0
- package/dist/styles/dock-controls/tab-button.css +143 -0
- package/dist/styles/dock-controls/touch-floor.css +94 -0
- package/dist/styles/dock-controls/triggers.css +135 -0
- package/dist/styles/dock-controls.css +30 -595
- package/dist/styles/dock.css +8 -3
- package/dist/styles/drawer.css +48 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/floating-panel.css +17 -0
- package/dist/styles/glass/a11y-fallback.css +245 -0
- package/dist/styles/glass/ladder.css +383 -0
- package/dist/styles/glass/material.css +238 -0
- package/dist/styles/glass/progress-rail.css +78 -0
- package/dist/styles/glass/squircle.css +66 -0
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +382 -0
- package/dist/styles/glass-refract.css +2 -0
- package/dist/styles/glass.css +34 -1188
- package/dist/styles/hover-popover.css +2 -0
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +94 -18
- package/dist/styles/instrument-chassis.css +46 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/paper.css +2 -68
- package/dist/styles/segmented-tabs.css +346 -0
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +347 -0
- package/dist/styles/theme/dark.css +7 -0
- package/dist/styles/theme/literals.css +94 -0
- package/dist/styles/theme/radius.css +95 -0
- package/dist/styles/theme.css +26 -529
- package/dist/styles/tokens/color-radius.css +287 -0
- package/dist/styles/tokens/dark-arm.css +308 -0
- package/dist/styles/tokens/glass.css +500 -0
- package/dist/styles/tokens/light-dark.css +187 -0
- package/dist/styles/tokens/offsets-sizing.css +562 -0
- package/dist/styles/tokens/property-regs.css +162 -0
- package/dist/styles/tokens/scale-paper.css +409 -0
- package/dist/styles/tokens/scheme-motion.css +352 -0
- package/dist/styles/tokens/shadow.css +166 -0
- package/dist/styles/tokens.css +22 -2360
- 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 +159 -0
- package/dist/styles/typography.css +23 -453
- package/dist/styles/utilities/a11y-overrides.css +169 -0
- package/dist/styles/utilities/animate.css +26 -0
- package/dist/styles/utilities/base.css +541 -0
- package/dist/styles/utilities/btn.css +218 -0
- package/dist/styles/utilities/components.css +317 -0
- package/dist/styles/utilities.css +19 -1318
- package/dist/styles/view-transition.css +4 -52
- package/dist/switch.js +1 -1
- package/dist/tabs.js +161 -181
- 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-Bcpy5Etf.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/useLiquidFlex-C12hXwOZ.js +30 -0
- package/dist/useRAFLoop-CdwJ7284.js +109 -0
- package/dist/{useScrollProgress-CffFGLa5.js → useScrollProgress-D7bYU2RK.js} +1 -1
- package/dist/useSpecularTracking-Bo5su68i.js +32 -0
- package/dist/useSpringMount-CvopqiFr.js +108 -0
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-WFyJYsth.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/useViewTransition-COsPjQVZ.js +47 -0
- package/dist/utils/coalesceMetric.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +22 -13
- package/dist/{x-Dfsegz9Y.js → x-BUwTKe50.js} +1 -1
- package/package.json +134 -50
- package/src/styles/animations.css +25 -125
- package/src/styles/cards.css +53 -0
- package/src/styles/configurator.css +77 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/layer-group.css +83 -25
- package/src/styles/dock/layers.css +23 -1
- package/src/styles/dock/morph-bridge.css +123 -0
- package/src/styles/dock/morph.css +175 -45
- package/src/styles/dock/overflow.css +66 -1
- package/src/styles/dock/rail-extend.css +397 -0
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +97 -110
- package/src/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/src/styles/dock-controls/icon-button.css +143 -0
- package/src/styles/dock-controls/tab-button.css +143 -0
- package/src/styles/dock-controls/touch-floor.css +94 -0
- package/src/styles/dock-controls/triggers.css +135 -0
- package/src/styles/dock-controls.css +30 -595
- package/src/styles/dock.css +8 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/floating-panel.css +15 -0
- package/src/styles/glass/a11y-fallback.css +245 -0
- package/src/styles/glass/ladder.css +383 -0
- package/src/styles/glass/material.css +238 -0
- package/src/styles/glass/progress-rail.css +78 -0
- package/src/styles/glass/squircle.css +66 -0
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +382 -0
- package/src/styles/glass.css +34 -1188
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +93 -17
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/paper.css +2 -68
- package/src/styles/segmented-tabs.css +340 -0
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +347 -0
- package/src/styles/theme/dark.css +7 -0
- package/src/styles/theme/literals.css +94 -0
- package/src/styles/theme/radius.css +95 -0
- package/src/styles/theme.css +26 -529
- package/src/styles/tokens/color-radius.css +287 -0
- package/src/styles/tokens/dark-arm.css +308 -0
- package/src/styles/tokens/glass.css +500 -0
- package/src/styles/tokens/light-dark.css +187 -0
- package/src/styles/tokens/offsets-sizing.css +562 -0
- package/src/styles/tokens/property-regs.css +162 -0
- package/src/styles/tokens/scale-paper.css +409 -0
- package/src/styles/tokens/scheme-motion.css +352 -0
- package/src/styles/tokens/shadow.css +166 -0
- package/src/styles/tokens.css +22 -2360
- 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 +159 -0
- package/src/styles/typography.css +23 -453
- package/src/styles/utilities/a11y-overrides.css +169 -0
- package/src/styles/utilities/animate.css +26 -0
- package/src/styles/utilities/base.css +541 -0
- package/src/styles/utilities/btn.css +218 -0
- package/src/styles/utilities/components.css +317 -0
- package/src/styles/utilities.css +19 -1318
- package/src/styles/view-transition.css +4 -52
- package/dist/CardAction-DuArVky-.js +0 -157
- package/dist/DeckProgress-Dmk4_AKN.js +0 -23
- package/dist/DialogContent-BRkT1cjP.js +0 -100
- package/dist/InstrumentRail-CUJ05YVG.js +0 -44
- package/dist/MetricBadge-BZVWIxNy.js +0 -80
- package/dist/PopoverContent-BId6ggf_.js +0 -121
- package/dist/TabsList-B8CVOQPC.js +0 -101
- package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
- package/dist/components/custom/deck-progress/index.d.ts +0 -2
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
- package/dist/components/custom/dialog-native/index.d.ts +0 -1
- package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
- package/dist/components/custom/instrument-rail/index.d.ts +0 -2
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/composables/motion/useRouteTransition.d.ts +0 -42
- package/dist/deck-progress.d.ts +0 -1
- package/dist/deck-progress.js +0 -2
- package/dist/dockContext-BKeIMmNk.js +0 -9
- package/dist/instrument-rail.d.ts +0 -1
- package/dist/instrument-rail.js +0 -2
- package/dist/sheet-VZEtNFvO.js +0 -214
- package/dist/styles/instrument-rail.css +0 -127
- package/dist/useConfiguratorState-DxAqksK6.js +0 -287
- package/dist/useGlassRenderer-D7YGOYiM.js +0 -69
- package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
- package/dist/useSpringMount-BJSHcLl3.js +0 -113
- package/dist/useViewTransition-DaN5Zrox.js +0 -21
- package/dist/vReveal-zUIQk-rJ.js +0 -53
- package/src/styles/instrument-rail.css +0 -127
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-DDa0v27s.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-B6CcQ8He.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{Input-xuDwALQR.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{InstrumentChassis-C2f6cBaQ.js → InstrumentChassis-UUJX0-mW.js} +0 -0
- /package/dist/{Label-zRfbQdCn.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-B1GkAjNb.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-CqwjnfLv.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-BFiod7X2.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-C4Ql0gzV.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-D7sD7RKj.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{TooltipProvider-CmZzCuaG.js → TooltipProvider-B3MkB_8P.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{compile-BOXjLUxu.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-yKeKnE84.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-B44Sah_H.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{createLucideIcon-B6uNAU9G.js → createLucideIcon-DydS2qgk.js} +0 -0
- /package/dist/{presets-BP_ALM0m.js → presets-BW2b-fr1.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{supportsCssTimeline-C5oe0lnD.js → supportsCssTimeline-BWenxvHU.js} +0 -0
- /package/dist/{useGlobalDark-CAhOXNLO.js → useGlobalDark-C28t0VWJ.js} +0 -0
- /package/dist/{useIntersectionPause-Cck5Uxk8.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-Dsmqwi03.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CyIYrndH.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-CWCbk5Px.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-r9pnNjqK.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useSortable-C8ReQ50P.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-3xqf_54b.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-DoJKMZ3s.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-RIr5Wgkh.js → useViewportReady-CvBcCYDf.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-CBt_VvXa.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(--secondary))]", 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(--secondary))] 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
|
|
@@ -89,8 +89,8 @@ var x = /* @__PURE__ */ l({
|
|
|
89
89
|
}), [["__scopeId", "data-v-f29a8e97"]]);
|
|
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-CBt_VvXa.js";
|
|
3
|
+
import { t as n } from "./useResizeObserver-V6nq5gJb.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,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./chevron-down-
|
|
3
|
-
import { t as n } from "./chevron-up-
|
|
4
|
-
import { t as r } from "./menuItemVariants-
|
|
5
|
-
import { i } from "./dockContext-
|
|
2
|
+
import { t } from "./chevron-down-DKkxb4VV.js";
|
|
3
|
+
import { t as n } from "./chevron-up-n_24SqI-.js";
|
|
4
|
+
import { t as r } from "./menuItemVariants-DWRQXBxJ.js";
|
|
5
|
+
import { i } from "./dockContext-Bu1Avy-a.js";
|
|
6
6
|
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
7
|
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
8
|
//#endregion
|
|
@@ -65,14 +65,30 @@ var P = /* @__PURE__ */ d({
|
|
|
65
65
|
let r = n, i = M(a(() => {
|
|
66
66
|
let { class: e, variant: t, size: n, ...i } = r;
|
|
67
67
|
return i;
|
|
68
|
-
})), s = a(() => r.variant === "ghost" ? "bg-transparent border-none shadow-none" : "
|
|
69
|
-
|
|
68
|
+
})), s = a(() => r.variant === "ghost" ? "bg-transparent border-none shadow-none" : "control-surface"), c = a(() => {
|
|
69
|
+
switch (r.size) {
|
|
70
|
+
case "sm": return "h-(--control-h-sm)";
|
|
71
|
+
case "display":
|
|
72
|
+
case "audacious": return "h-(--control-h-lg)";
|
|
73
|
+
default: return "h-(--control-h-md)";
|
|
74
|
+
}
|
|
75
|
+
}), l = a(() => {
|
|
76
|
+
let e = r.size === "display" ? "var(--type-heading)" : r.size === "audacious" ? "var(--type-display-1)" : void 0;
|
|
77
|
+
if (e) return {
|
|
78
|
+
"--dropdown-text": e,
|
|
79
|
+
"--text-dropdown": e
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
return (n, a) => (g(), o(v(k), p({ "data-slot": "select-trigger" }, v(i), {
|
|
83
|
+
style: l.value,
|
|
84
|
+
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) aria-invalid:shadow-[0_0_0_var(--focus-ring-width)_color-mix(in_srgb,var(--destructive)_35%,transparent)]", r.class)
|
|
85
|
+
}), {
|
|
70
86
|
default: y(() => [_(n.$slots, "default"), u(v(x), { "as-child": "" }, {
|
|
71
87
|
default: y(() => [u(v(t), { class: "transition-transform duration-200 ease-standard [&[data-state=open]]:rotate-180 h-4 w-4 shrink-0 opacity-50" })]),
|
|
72
88
|
_: 1
|
|
73
89
|
})]),
|
|
74
90
|
_: 3
|
|
75
|
-
}, 16, ["class"]));
|
|
91
|
+
}, 16, ["style", "class"]));
|
|
76
92
|
}
|
|
77
93
|
}), L = /* @__PURE__ */ d({
|
|
78
94
|
inheritAttrs: !1,
|
|
@@ -128,7 +144,7 @@ var P = /* @__PURE__ */ d({
|
|
|
128
144
|
"data-glass-dock-portal": v(l)?.id ? "" : void 0,
|
|
129
145
|
"data-glass-dock-owner": v(l)?.id,
|
|
130
146
|
"data-slot": "select-content",
|
|
131
|
-
class: v(e)("relative z-popover min-w-32 overflow-y-auto rounded-panel border text-popover-foreground
|
|
147
|
+
class: v(e)("relative z-popover min-w-32 overflow-y-auto rounded-panel border text-popover-foreground popover-animate 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
148
|
}), {
|
|
133
149
|
default: y(() => [
|
|
134
150
|
u(v(V)),
|
|
@@ -31,12 +31,12 @@ var p = /* @__PURE__ */ i({
|
|
|
31
31
|
let { class: e, ...t } = m;
|
|
32
32
|
return t;
|
|
33
33
|
}), h);
|
|
34
|
-
return (t, i) => (s(), n(c(u), a({ "data-slot": "switch" }, c(g), { class: c(e)("glass-wash glass-specular-track focus-ring peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-pill border-2 border-transparent transition-control disabled:cursor-not-allowed disabled:opacity-disabled data-[state=checked]:bg-primary data-[state=unchecked]:bg-
|
|
34
|
+
return (t, i) => (s(), n(c(u), a({ "data-slot": "switch" }, c(g), { class: c(e)("glass-wash glass-specular-track focus-ring peer relative touch-hit-area inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-pill border-2 border-transparent transition-control disabled:cursor-not-allowed disabled:opacity-disabled data-[state=checked]:bg-primary data-[state=unchecked]:bg-(--glass-bg-wash)", m.class) }), {
|
|
35
35
|
default: l(() => [r(c(d), {
|
|
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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./x-
|
|
2
|
+
import { t } from "./x-BUwTKe50.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
4
|
-
import { ToastAction as b, ToastClose as x, ToastDescription as S,
|
|
4
|
+
import { ToastAction as b, ToastClose as x, ToastDescription as S, ToastPortal as C, ToastProvider as w, ToastRoot as T, ToastTitle as E, ToastViewport as D, useForwardPropsEmits as O } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/ui/toast/Toast.vue
|
|
7
|
-
var
|
|
7
|
+
var k = /* @__PURE__ */ u({
|
|
8
8
|
__name: "Toast",
|
|
9
9
|
props: {
|
|
10
10
|
class: { type: [
|
|
@@ -34,25 +34,25 @@ var O = /* @__PURE__ */ u({
|
|
|
34
34
|
"update:open"
|
|
35
35
|
],
|
|
36
36
|
setup(t, { emit: n }) {
|
|
37
|
-
let a = t, o = n, s =
|
|
37
|
+
let a = t, o = n, s = O(r(() => {
|
|
38
38
|
let { class: e, variant: t, ...n } = a;
|
|
39
39
|
return n;
|
|
40
40
|
}), o);
|
|
41
|
-
return (n, r) => (p(), i(v(
|
|
41
|
+
return (n, r) => (p(), i(v(T), d({
|
|
42
42
|
"data-slot": "toast",
|
|
43
43
|
"data-variant": t.variant
|
|
44
|
-
}, v(s), { class: v(e)("glass-floating group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel p-6 pr-8 transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-
|
|
45
|
-
"text-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
44
|
+
}, v(s), { class: v(e)("glass-floating group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel p-6 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", {
|
|
45
|
+
"feedback-tone [&_svg]:text-(--tone)": t.variant !== "default",
|
|
46
|
+
"feedback-tone-destructive": t.variant === "destructive",
|
|
47
|
+
"feedback-tone-success": t.variant === "success",
|
|
48
|
+
"feedback-tone-warning": t.variant === "warning",
|
|
49
|
+
"feedback-tone-info": t.variant === "info"
|
|
50
50
|
}, a.class) }), {
|
|
51
51
|
default: y(() => [g(n.$slots, "default")]),
|
|
52
52
|
_: 3
|
|
53
53
|
}, 16, ["data-variant", "class"]));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), A = /* @__PURE__ */ u({
|
|
56
56
|
__name: "ToastAction",
|
|
57
57
|
props: {
|
|
58
58
|
class: { type: [
|
|
@@ -76,7 +76,7 @@ var O = /* @__PURE__ */ u({
|
|
|
76
76
|
_: 3
|
|
77
77
|
}, 16, ["class"]));
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), j = /* @__PURE__ */ u({
|
|
80
80
|
__name: "ToastClose",
|
|
81
81
|
props: {
|
|
82
82
|
class: { type: [
|
|
@@ -99,7 +99,7 @@ var O = /* @__PURE__ */ u({
|
|
|
99
99
|
_: 1
|
|
100
100
|
}, 16, ["class"]));
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
102
|
+
}), M = /* @__PURE__ */ u({
|
|
103
103
|
__name: "ToastDescription",
|
|
104
104
|
props: {
|
|
105
105
|
class: { type: [
|
|
@@ -122,7 +122,7 @@ var O = /* @__PURE__ */ u({
|
|
|
122
122
|
_: 3
|
|
123
123
|
}, 16, ["class"]));
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
125
|
+
}), N = /* @__PURE__ */ u({
|
|
126
126
|
__name: "ToastTitle",
|
|
127
127
|
props: {
|
|
128
128
|
class: { type: [
|
|
@@ -140,71 +140,71 @@ var O = /* @__PURE__ */ u({
|
|
|
140
140
|
let { class: e, ...t } = n;
|
|
141
141
|
return t;
|
|
142
142
|
});
|
|
143
|
-
return (t, r) => (p(), i(v(
|
|
143
|
+
return (t, r) => (p(), i(v(E), d(a.value, { class: v(e)("text-sm font-semibold", n.class) }), {
|
|
144
144
|
default: y(() => [g(t.$slots, "default")]),
|
|
145
145
|
_: 3
|
|
146
146
|
}, 16, ["class"]));
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
148
|
+
}), P = 5, F = 1e6, I = /* @__PURE__ */ new Map();
|
|
149
|
+
function L(e) {
|
|
150
|
+
if (I.has(e)) return;
|
|
151
151
|
let t = setTimeout(() => {
|
|
152
|
-
|
|
152
|
+
I.delete(e), z({
|
|
153
153
|
type: "REMOVE_TOAST",
|
|
154
154
|
toastId: e
|
|
155
155
|
});
|
|
156
|
-
},
|
|
157
|
-
|
|
156
|
+
}, F);
|
|
157
|
+
I.set(e, t);
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
159
|
+
var R = m([]);
|
|
160
|
+
function z(e) {
|
|
161
161
|
switch (e.type) {
|
|
162
162
|
case "ADD_TOAST":
|
|
163
|
-
|
|
163
|
+
R.value = [e.toast, ...R.value].slice(0, P);
|
|
164
164
|
break;
|
|
165
165
|
case "UPDATE_TOAST":
|
|
166
|
-
|
|
166
|
+
R.value = R.value.map((t) => t.id === e.toast.id ? {
|
|
167
167
|
...t,
|
|
168
168
|
...e.toast
|
|
169
169
|
} : t);
|
|
170
170
|
break;
|
|
171
171
|
case "DISMISS_TOAST": {
|
|
172
172
|
let { toastId: t } = e;
|
|
173
|
-
t ?
|
|
174
|
-
|
|
175
|
-
}),
|
|
173
|
+
t ? L(t) : R.value.forEach((e) => {
|
|
174
|
+
L(e.id);
|
|
175
|
+
}), R.value = R.value.map((e) => e.id === t || t === void 0 ? {
|
|
176
176
|
...e,
|
|
177
177
|
open: !1
|
|
178
178
|
} : e);
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
case "REMOVE_TOAST":
|
|
182
|
-
e.toastId === void 0 ?
|
|
182
|
+
e.toastId === void 0 ? R.value = [] : R.value = R.value.filter((t) => t.id !== e.toastId);
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
var
|
|
187
|
-
function
|
|
188
|
-
return
|
|
186
|
+
var B = 0;
|
|
187
|
+
function V() {
|
|
188
|
+
return B = (B + 1) % Number.MAX_VALUE, B.toString();
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
let t =
|
|
190
|
+
function H(e) {
|
|
191
|
+
let t = V(), n = (e) => z({
|
|
192
192
|
type: "UPDATE_TOAST",
|
|
193
193
|
toast: {
|
|
194
194
|
...e,
|
|
195
195
|
id: t
|
|
196
196
|
}
|
|
197
|
-
}), r = () =>
|
|
197
|
+
}), r = () => z({
|
|
198
198
|
type: "DISMISS_TOAST",
|
|
199
199
|
toastId: t
|
|
200
200
|
});
|
|
201
|
-
return
|
|
201
|
+
return z({
|
|
202
202
|
type: "ADD_TOAST",
|
|
203
203
|
toast: {
|
|
204
204
|
...e,
|
|
205
205
|
id: t,
|
|
206
206
|
open: !0,
|
|
207
|
-
|
|
207
|
+
"onUpdate:open": (e) => {
|
|
208
208
|
e || r();
|
|
209
209
|
}
|
|
210
210
|
}
|
|
@@ -214,11 +214,11 @@ function V(e) {
|
|
|
214
214
|
update: n
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function U() {
|
|
218
218
|
return {
|
|
219
|
-
toasts: r(() =>
|
|
220
|
-
toast:
|
|
221
|
-
dismiss: (e) =>
|
|
219
|
+
toasts: r(() => R.value),
|
|
220
|
+
toast: H,
|
|
221
|
+
dismiss: (e) => z({
|
|
222
222
|
type: "DISMISS_TOAST",
|
|
223
223
|
toastId: e
|
|
224
224
|
})
|
|
@@ -226,11 +226,11 @@ function H() {
|
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/components/ui/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
229
|
-
var
|
|
229
|
+
var W = { class: "grid gap-1" }, G = "fixed top-0 z-toast flex max-h-screen w-full", K = "p-4", q = "md:max-w-[420px]", J = /* @__PURE__ */ u({
|
|
230
230
|
__name: "Toaster",
|
|
231
231
|
props: { position: { default: "bottom-right" } },
|
|
232
232
|
setup(t) {
|
|
233
|
-
let u = t, { toasts: m } =
|
|
233
|
+
let u = t, { toasts: m } = U(), g = {
|
|
234
234
|
"bottom-right": ["flex-col-reverse", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col"],
|
|
235
235
|
"bottom-left": ["flex-col-reverse", "sm:bottom-0 sm:left-0 sm:top-auto sm:flex-col"],
|
|
236
236
|
"bottom-center": ["flex-col-reverse", "sm:bottom-0 sm:left-1/2 sm:top-auto sm:-translate-x-1/2 sm:flex-col"],
|
|
@@ -239,22 +239,25 @@ var U = { class: "grid gap-1" }, W = "fixed top-0 z-toast flex max-h-screen w-fu
|
|
|
239
239
|
"top-center": ["left-1/2 -translate-x-1/2 flex-col", ""]
|
|
240
240
|
}, b = r(() => {
|
|
241
241
|
let [t, n] = g[u.position];
|
|
242
|
-
return e(
|
|
242
|
+
return e(G, t, K, n, q);
|
|
243
243
|
});
|
|
244
|
-
return (e, t) => (p(), i(v(
|
|
245
|
-
default: y(() => [(p(!0), o(n, null, h(v(m), (e) => (p(), i(
|
|
246
|
-
default: y(() => [s("div",
|
|
244
|
+
return (e, t) => (p(), i(v(w), null, {
|
|
245
|
+
default: y(() => [(p(!0), o(n, null, h(v(m), (e) => (p(), i(k, d({ key: e.id }, { ref_for: !0 }, e), {
|
|
246
|
+
default: y(() => [s("div", W, [e.title ? (p(), i(N, { key: 0 }, {
|
|
247
247
|
default: y(() => [c(_(e.title), 1)]),
|
|
248
248
|
_: 2
|
|
249
|
-
}, 1024)) : a("", !0), e.description ? (p(), i(
|
|
249
|
+
}, 1024)) : a("", !0), e.description ? (p(), i(M, { key: 1 }, {
|
|
250
250
|
default: y(() => [c(_(e.description), 1)]),
|
|
251
251
|
_: 2
|
|
252
|
-
}, 1024)) : a("", !0)]), l(
|
|
252
|
+
}, 1024)) : a("", !0)]), l(j)]),
|
|
253
253
|
_: 2
|
|
254
|
-
}, 1040))), 128)), l(v(
|
|
254
|
+
}, 1040))), 128)), l(v(C), null, {
|
|
255
|
+
default: y(() => [l(v(D), { class: f(b.value) }, null, 8, ["class"])]),
|
|
256
|
+
_: 1
|
|
257
|
+
})]),
|
|
255
258
|
_: 1
|
|
256
259
|
}));
|
|
257
260
|
}
|
|
258
261
|
});
|
|
259
262
|
//#endregion
|
|
260
|
-
export {
|
|
263
|
+
export { M as a, k as c, N as i, H as n, j as o, U as r, A as s, J as t };
|