@mkbabb/glass-ui 3.13.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-RowNEO6i.js → CommandShortcut-DdtWXxOK.js} +57 -52
- package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-B0Vs6atR.js} +1 -1
- package/dist/{DataTable-BCddn3T3.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-8eZbdmPc.js} +1 -1
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-BpC0R_Ec.js} +1 -1
- package/dist/{Notification-DdwNxIrI.js → Notification-DKjKsQq8.js} +8 -8
- package/dist/{NumberFieldContent-CqaN-SvN.js → NumberFieldContent-1VtwDSgf.js} +1 -1
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-DwlUKGbr.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-C1jb3b3K.js} +22 -6
- package/dist/{Switch-CsIuYP_e.js → Switch-Dr--uLGH.js} +1 -1
- package/dist/{Toaster-D6q4HtXu.js → Toaster-Bm_HQSpc.js} +6 -6
- package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-Dzk9hWsF.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +8 -5
- package/dist/api.js +2 -2
- package/dist/aurora.js +132 -117
- package/dist/{button-ChXMfsud.js → button-BNDWhAZb.js} +2 -2
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +97 -141
- 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/components/custom/aurora/constants/presets.d.ts +28 -0
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/index.d.ts +1 -1
- 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/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/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/constants.d.ts +35 -0
- package/dist/components/custom/dock/index.d.ts +2 -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 +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 +8 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +11 -1
- package/dist/components/custom/goo-blob/constants.d.ts +6 -1
- 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 +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +15 -2
- 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 +9 -3
- 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 +1 -1
- 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/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/index.d.ts +0 -1
- 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/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +23 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +2 -2
- package/dist/constellation.js +92 -94
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +10 -4
- 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 +510 -321
- package/dist/{dockContext-BegmJVmx.js → dockContext-Bu1Avy-a.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-BJ7E9js_.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +42 -38
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +3 -3
- package/dist/fourier-field.js +38 -37
- 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 +129 -145
- package/dist/goo-blob.js +86 -81
- 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 +2 -2
- 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-DeuJwLFx.js} +11 -3
- package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +25 -22
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +33 -32
- package/dist/motion-curves.js +1 -1
- package/dist/motion.js +4 -4
- 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/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 +5 -5
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-1fChZjtw.js → sheet-CquRYOAw.js} +59 -55
- package/dist/sheet.js +1 -1
- package/dist/{slider-B-JP2JlI.js → slider-DQ95MET2.js} +7 -7
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/animations.css +11 -26
- package/dist/styles/components.css +1 -1
- package/dist/styles/configurator.css +35 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/overflow.css +15 -0
- package/dist/styles/dock/rail-extend.css +168 -71
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +34 -5
- 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 +6 -3
- package/dist/styles/drawer.css +46 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/glass/ladder.css +68 -22
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +88 -12
- package/dist/styles/glass.css +5 -2
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +67 -5
- package/dist/styles/instrument-chassis.css +42 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/segmented-tabs.css +160 -89
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +11 -1
- package/dist/styles/tokens/color-radius.css +40 -13
- package/dist/styles/tokens/dark-arm.css +124 -16
- package/dist/styles/tokens/glass.css +83 -23
- package/dist/styles/tokens/light-dark.css +48 -19
- package/dist/styles/tokens/offsets-sizing.css +62 -0
- package/dist/styles/tokens/property-regs.css +3 -10
- package/dist/styles/tokens/scale-paper.css +45 -2
- package/dist/styles/tokens/scheme-motion.css +32 -14
- 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 -507
- package/dist/styles/utilities/a11y-overrides.css +33 -4
- package/dist/styles/utilities/base.css +177 -1
- package/dist/styles/utilities/btn.css +18 -201
- package/dist/styles/view-transition.css +4 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +154 -183
- 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/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
- package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-CdwJ7284.js} +1 -1
- package/dist/{useSpringMount-CI2jOstM.js → useSpringMount-CvopqiFr.js} +1 -1
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/{vReveal-CqaCz_mC.js → useViewTransition-COsPjQVZ.js} +15 -12
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +12 -5
- package/package.json +71 -7
- package/src/styles/animations.css +11 -26
- package/src/styles/configurator.css +35 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/overflow.css +15 -0
- package/src/styles/dock/rail-extend.css +168 -71
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +34 -5
- 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 +6 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/glass/ladder.css +68 -22
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +88 -12
- package/src/styles/glass.css +5 -2
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +66 -4
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/segmented-tabs.css +156 -87
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +11 -1
- package/src/styles/tokens/color-radius.css +40 -13
- package/src/styles/tokens/dark-arm.css +124 -16
- package/src/styles/tokens/glass.css +83 -23
- package/src/styles/tokens/light-dark.css +48 -19
- package/src/styles/tokens/offsets-sizing.css +62 -0
- package/src/styles/tokens/property-regs.css +3 -10
- package/src/styles/tokens/scale-paper.css +45 -2
- package/src/styles/tokens/scheme-motion.css +32 -14
- 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 -507
- package/src/styles/utilities/a11y-overrides.css +33 -4
- package/src/styles/utilities/base.css +177 -1
- package/src/styles/utilities/btn.css +18 -201
- package/src/styles/view-transition.css +4 -1
- package/dist/CardAction-Cj2eycQ2.js +0 -157
- package/dist/DialogContent-Dl9WkAoS.js +0 -100
- package/dist/PopoverContent-BYwt2-4x.js +0 -121
- package/dist/TabsList-Dttss653.js +0 -105
- 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/underline.d.ts +0 -1
- package/dist/underline.js +0 -85
- package/dist/useConfiguratorState-DAoeHVue.js +0 -287
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-DSjasZIt.js} +0 -0
- /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{Label-r3WzWrsj.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-0JE6LtNu.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
- /package/dist/{compile-B7NGOBcP.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-BM46COQ-.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{springPresets--YdWTHtm.js → springPresets-WXaLbu8u.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-iHludrxk.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-C12hXwOZ.js} +0 -0
- /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-Dzarvzuk.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-CvBcCYDf.js} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as e } from "./supportsCssTimeline-BWenxvHU.js";
|
|
2
|
+
import { t } from "./useResizeObserver-V6nq5gJb.js";
|
|
3
|
+
import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, renderSlot as l, unref as u } from "vue";
|
|
4
|
+
//#region src/components/custom/fading-scroll/constants.ts
|
|
5
|
+
var d = e();
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/custom/fading-scroll/composables/useFadingScroll.ts
|
|
8
|
+
function f(e, n = {}) {
|
|
9
|
+
let { axis: r = "x", fadeStart: i = !0, fadeEnd: s = !0 } = n, l = c(!d), f = 0, p = null;
|
|
10
|
+
function m(t, n) {
|
|
11
|
+
let r = u(e);
|
|
12
|
+
r && (r.style.setProperty("--fade-start", t ? "var(--fade-scroll-width)" : "0px"), r.style.setProperty("--fade-end", n ? "var(--fade-scroll-width)" : "0px"));
|
|
13
|
+
}
|
|
14
|
+
function h() {
|
|
15
|
+
let t = u(e);
|
|
16
|
+
if (!t) return;
|
|
17
|
+
let n = r === "x" ? t.scrollLeft : t.scrollTop, a = r === "x" ? t.scrollWidth - t.clientWidth : t.scrollHeight - t.clientHeight, o = n <= 12, c = n >= a - 12;
|
|
18
|
+
m(i && !o, s && !c);
|
|
19
|
+
}
|
|
20
|
+
function g() {
|
|
21
|
+
f ||= requestAnimationFrame(() => {
|
|
22
|
+
f = 0, h();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function _() {
|
|
26
|
+
let n = u(e);
|
|
27
|
+
n && (n.addEventListener("scroll", g, { passive: !0 }), p = t(e, h).stop, h());
|
|
28
|
+
}
|
|
29
|
+
function v() {
|
|
30
|
+
u(e)?.removeEventListener("scroll", g), p?.(), p = null, f &&= (cancelAnimationFrame(f), 0);
|
|
31
|
+
}
|
|
32
|
+
return o(() => {
|
|
33
|
+
l.value && _();
|
|
34
|
+
}), a(v), {
|
|
35
|
+
active: l,
|
|
36
|
+
measure: h,
|
|
37
|
+
stop: v
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/custom/fading-scroll/FadingScroll.vue?vue&type=script&setup=true&lang.ts
|
|
42
|
+
var p = [
|
|
43
|
+
"data-fade-axis",
|
|
44
|
+
"data-fade-start",
|
|
45
|
+
"data-fade-end"
|
|
46
|
+
], m = /* @__PURE__ */ r({
|
|
47
|
+
__name: "FadingScroll",
|
|
48
|
+
props: {
|
|
49
|
+
axis: { default: "x" },
|
|
50
|
+
fadeStart: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
fadeEnd: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !0
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
setup(e) {
|
|
60
|
+
let t = e, r = c(null);
|
|
61
|
+
return f(r, {
|
|
62
|
+
axis: t.axis,
|
|
63
|
+
fadeStart: t.fadeStart,
|
|
64
|
+
fadeEnd: t.fadeEnd
|
|
65
|
+
}), (t, a) => (s(), n("div", {
|
|
66
|
+
ref_key: "rootRef",
|
|
67
|
+
ref: r,
|
|
68
|
+
class: i(["fading-scroll", e.axis === "y" ? "fading-scroll--y" : "fading-scroll--x"]),
|
|
69
|
+
"data-fade-axis": e.axis,
|
|
70
|
+
"data-fade-start": e.fadeStart ? "" : void 0,
|
|
71
|
+
"data-fade-end": e.fadeEnd ? "" : void 0
|
|
72
|
+
}, [l(t.$slots, "default")], 10, p));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
export { f as n, m as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { i as t } from "./dockContext-
|
|
2
|
+
import { i as t } from "./dockContext-Bu1Avy-a.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useId as h, useModel as g, watch as _, withCtx as v } from "vue";
|
|
4
4
|
import { HoverCardContent as y, HoverCardPortal as b, HoverCardRoot as x, HoverCardTrigger as S } from "reka-ui";
|
|
5
5
|
//#region src/components/custom/hover-popover/HoverPopover.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./vReveal-D9k0jADx.js";
|
|
3
|
+
import { computed as n, createBlock as r, createElementBlock as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, resolveDynamicComponent as l, unref as u, withDirectives as d } from "vue";
|
|
4
|
+
//#region src/components/custom/icon-chip/IconChip.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var f = ["data-duotone"], p = 48, m = 22, h = /* @__PURE__ */ a({
|
|
6
|
+
name: "IconChip",
|
|
7
|
+
__name: "IconChip",
|
|
8
|
+
props: {
|
|
9
|
+
icon: { type: [Function, Object] },
|
|
10
|
+
section: {},
|
|
11
|
+
tone: {},
|
|
12
|
+
size: {},
|
|
13
|
+
glyphSize: {},
|
|
14
|
+
strokeWidth: {},
|
|
15
|
+
bare: { type: Boolean },
|
|
16
|
+
duotone: { type: Boolean },
|
|
17
|
+
bloom: { type: Boolean },
|
|
18
|
+
reveal: { type: [Boolean, Number] },
|
|
19
|
+
class: { type: [
|
|
20
|
+
Boolean,
|
|
21
|
+
null,
|
|
22
|
+
String,
|
|
23
|
+
Object,
|
|
24
|
+
Array
|
|
25
|
+
] }
|
|
26
|
+
},
|
|
27
|
+
setup(a) {
|
|
28
|
+
let h = a, g = n(() => h.tone == null ? h.section == null ? "var(--muted-foreground)" : `var(--section-color-${h.section}, var(--muted-foreground))` : h.tone), _ = n(() => h.tone == null ? h.section == null ? "var(--muted)" : `var(--section-color-${h.section}, var(--muted))` : h.tone), v = n(() => void 0), y = n(() => h.reveal != null && h.reveal !== !1), b = n(() => h.reveal === !0 ? 0 : typeof h.reveal == "number" ? h.reveal : 0), x = n(() => {
|
|
29
|
+
let e = h.glyphSize ?? m;
|
|
30
|
+
return {
|
|
31
|
+
"--icon-chip-event-color": g.value,
|
|
32
|
+
"--icon-chip-plate-color": _.value,
|
|
33
|
+
"--icon-chip-glyph-size": `${e}px`,
|
|
34
|
+
"--icon-chip-size": `${h.size ?? p}px`
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return (n, a) => d((c(), i("span", {
|
|
38
|
+
class: o(["icon-chip", u(e)(h.bare && "icon-chip--bare", h.duotone && "icon-chip--duotone", h.bloom && "icon-chip--bloom", y.value && "icon-chip--reveal", h.class)]),
|
|
39
|
+
"data-duotone": h.duotone ? "" : void 0,
|
|
40
|
+
style: s(x.value)
|
|
41
|
+
}, [(c(), r(l(h.icon), {
|
|
42
|
+
class: "icon-chip__glyph",
|
|
43
|
+
size: h.glyphSize ?? 22,
|
|
44
|
+
"stroke-width": h.strokeWidth ?? 1.75,
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}, null, 8, ["size", "stroke-width"]))], 14, f)), [[
|
|
47
|
+
u(t),
|
|
48
|
+
b.value,
|
|
49
|
+
v.value
|
|
50
|
+
]]);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { h as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { n as t } from "./coalesceMetric-5qIeZnTx.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
|
|
4
4
|
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, toDisplayString as f, unref as p } from "vue";
|
|
5
5
|
//#region src/components/custom/metric-badge/MetricBadge.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var m = ["data-size"], h = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./createLucideIcon-DydS2qgk.js";
|
|
2
2
|
import { t } from "./x-BUwTKe50.js";
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
|
|
4
4
|
import { Fragment as r, TransitionGroup as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
5
|
var _ = e("circle-alert", [
|
|
6
6
|
["circle", {
|
|
@@ -65,10 +65,10 @@ var _ = e("circle-alert", [
|
|
|
65
65
|
emits: ["remove"],
|
|
66
66
|
setup(e) {
|
|
67
67
|
let n = {
|
|
68
|
-
success: "
|
|
69
|
-
error: "
|
|
70
|
-
warning: "
|
|
71
|
-
info: "
|
|
68
|
+
success: "feedback-tone-success",
|
|
69
|
+
error: "feedback-tone-destructive",
|
|
70
|
+
warning: "feedback-tone-warning",
|
|
71
|
+
info: "feedback-tone-info"
|
|
72
72
|
}, l = {
|
|
73
73
|
success: v,
|
|
74
74
|
error: y,
|
|
@@ -83,9 +83,9 @@ var _ = e("circle-alert", [
|
|
|
83
83
|
}, {
|
|
84
84
|
default: g(() => [(d(!0), o(r, null, f(e.notifications, (e) => (d(), o("div", {
|
|
85
85
|
key: e.id,
|
|
86
|
-
class: u(["glass-floating flex items-center gap-3 rounded-panel px-4 py-3", [n[e.type], "min-w-[300px] max-w-[500px]"]])
|
|
86
|
+
class: u(["glass-floating feedback-tone flex items-center gap-3 rounded-panel px-4 py-3 text-foreground", [n[e.type], "min-w-[300px] max-w-[500px]"]])
|
|
87
87
|
}, [
|
|
88
|
-
(d(), a(p(l[e.type]), { class: "h-5 w-5 flex-shrink-0" })),
|
|
88
|
+
(d(), a(p(l[e.type]), { class: "feedback-tone-glyph h-5 w-5 flex-shrink-0" })),
|
|
89
89
|
s("p", x, m(e.message), 1),
|
|
90
90
|
s("button", {
|
|
91
91
|
onClick: (t) => _.$emit("remove", e.id),
|
|
@@ -95,6 +95,6 @@ var _ = e("circle-alert", [
|
|
|
95
95
|
_: 1
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
98
|
-
}), [["__scopeId", "data-v-
|
|
98
|
+
}), [["__scopeId", "data-v-cec8742e"]]);
|
|
99
99
|
//#endregion
|
|
100
100
|
export { C as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./createLucideIcon-DydS2qgk.js";
|
|
3
|
-
import { n } from "./button-
|
|
3
|
+
import { n } from "./button-BNDWhAZb.js";
|
|
4
4
|
import { computed as r, createBlock as i, createElementBlock as a, createVNode as o, defineComponent as s, mergeProps as c, normalizeClass as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
5
5
|
import { NumberFieldDecrement as m, NumberFieldIncrement as h, NumberFieldInput as g, NumberFieldRoot as _, useForwardProps as v, useForwardPropsEmits as y } from "reka-ui";
|
|
6
6
|
var b = t("minus", [["path", {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./useSurfaceAxis-CMnF2zHb.js";
|
|
3
|
+
import { i as n } from "./dockContext-Bu1Avy-a.js";
|
|
4
|
+
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, guardReactiveProps as s, mergeProps as c, normalizeProps as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
5
|
+
import { PopoverContent as m, PopoverPortal as h, PopoverRoot as g, PopoverTrigger as _, useForwardPropsEmits as v } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/ui/popover/Popover.vue
|
|
8
|
+
var y = /* @__PURE__ */ o({
|
|
9
|
+
__name: "Popover",
|
|
10
|
+
props: {
|
|
11
|
+
defaultOpen: { type: Boolean },
|
|
12
|
+
open: { type: Boolean },
|
|
13
|
+
modal: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:open"],
|
|
16
|
+
setup(e, { emit: t }) {
|
|
17
|
+
let n = v(e, t);
|
|
18
|
+
return (e, t) => (u(), i(f(g), c({ "data-slot": "popover" }, f(n)), {
|
|
19
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16));
|
|
22
|
+
}
|
|
23
|
+
}), b = /* @__PURE__ */ o({
|
|
24
|
+
__name: "PopoverTrigger",
|
|
25
|
+
props: {
|
|
26
|
+
asChild: { type: Boolean },
|
|
27
|
+
as: {}
|
|
28
|
+
},
|
|
29
|
+
setup(e) {
|
|
30
|
+
let t = e;
|
|
31
|
+
return (e, n) => (u(), i(f(_), l(s(t)), {
|
|
32
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16));
|
|
35
|
+
}
|
|
36
|
+
}), x = /* @__PURE__ */ o({
|
|
37
|
+
inheritAttrs: !1,
|
|
38
|
+
__name: "PopoverContent",
|
|
39
|
+
props: {
|
|
40
|
+
forceMount: { type: Boolean },
|
|
41
|
+
side: {},
|
|
42
|
+
sideOffset: { default: 4 },
|
|
43
|
+
sideFlip: { type: Boolean },
|
|
44
|
+
align: { default: "center" },
|
|
45
|
+
alignOffset: {},
|
|
46
|
+
alignFlip: { type: Boolean },
|
|
47
|
+
avoidCollisions: { type: Boolean },
|
|
48
|
+
collisionBoundary: {},
|
|
49
|
+
collisionPadding: {},
|
|
50
|
+
arrowPadding: {},
|
|
51
|
+
hideShiftedArrow: { type: Boolean },
|
|
52
|
+
sticky: {},
|
|
53
|
+
hideWhenDetached: { type: Boolean },
|
|
54
|
+
positionStrategy: {},
|
|
55
|
+
updatePositionStrategy: {},
|
|
56
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
57
|
+
prioritizePosition: { type: Boolean },
|
|
58
|
+
reference: {},
|
|
59
|
+
asChild: { type: Boolean },
|
|
60
|
+
as: {},
|
|
61
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
62
|
+
class: { type: [
|
|
63
|
+
Boolean,
|
|
64
|
+
null,
|
|
65
|
+
String,
|
|
66
|
+
Object,
|
|
67
|
+
Array
|
|
68
|
+
] },
|
|
69
|
+
portal: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !0
|
|
72
|
+
},
|
|
73
|
+
surface: { default: "glass" }
|
|
74
|
+
},
|
|
75
|
+
emits: [
|
|
76
|
+
"escapeKeyDown",
|
|
77
|
+
"pointerDownOutside",
|
|
78
|
+
"focusOutside",
|
|
79
|
+
"interactOutside",
|
|
80
|
+
"openAutoFocus",
|
|
81
|
+
"closeAutoFocus"
|
|
82
|
+
],
|
|
83
|
+
setup(o, { emit: s }) {
|
|
84
|
+
let l = o, g = s, _ = v(r(() => {
|
|
85
|
+
let { class: e, portal: t, surface: n, ...r } = l;
|
|
86
|
+
return r;
|
|
87
|
+
}), g), y = n(), b = r(() => t(l.surface).replace(/^glass-\w+\s*/, ""));
|
|
88
|
+
return (t, n) => o.portal ? (u(), i(f(h), { key: 0 }, {
|
|
89
|
+
default: p(() => [a(f(m), c({
|
|
90
|
+
...f(_),
|
|
91
|
+
...t.$attrs
|
|
92
|
+
}, {
|
|
93
|
+
"data-glass-dock-portal": f(y)?.id ? "" : void 0,
|
|
94
|
+
"data-glass-dock-owner": f(y)?.id,
|
|
95
|
+
"data-surface": l.surface,
|
|
96
|
+
class: f(e)("popover-content z-popover w-72 glass-floating p-4 popover-animate slide-in-from-side", b.value, l.class)
|
|
97
|
+
}), {
|
|
98
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16, [
|
|
101
|
+
"data-glass-dock-portal",
|
|
102
|
+
"data-glass-dock-owner",
|
|
103
|
+
"data-surface",
|
|
104
|
+
"class"
|
|
105
|
+
])]),
|
|
106
|
+
_: 3
|
|
107
|
+
})) : (u(), i(f(m), c({ key: 1 }, {
|
|
108
|
+
...f(_),
|
|
109
|
+
...t.$attrs
|
|
110
|
+
}, {
|
|
111
|
+
"data-glass-dock-portal": f(y)?.id ? "" : void 0,
|
|
112
|
+
"data-glass-dock-owner": f(y)?.id,
|
|
113
|
+
"data-surface": l.surface,
|
|
114
|
+
class: f(e)("popover-content z-popover w-72 glass-floating p-4 popover-animate slide-in-from-side", b.value, l.class)
|
|
115
|
+
}), {
|
|
116
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 16, [
|
|
119
|
+
"data-glass-dock-portal",
|
|
120
|
+
"data-glass-dock-owner",
|
|
121
|
+
"data-surface",
|
|
122
|
+
"class"
|
|
123
|
+
]));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
//#endregion
|
|
127
|
+
export { b as n, y as r, x as t };
|
|
@@ -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({
|