@mkbabb/glass-ui 2.1.0 → 3.1.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.
Files changed (194) hide show
  1. package/dist/{CardFooter-Yi0xtLLd.js → CardFooter-CSGcJkqa.js} +1 -1
  2. package/dist/{CommandShortcut-_INFUMu6.js → CommandShortcut-DWT19a2Y.js} +3 -3
  3. package/dist/{ContextMenuSubContent-DCkweFW9.js → ContextMenuSubContent-gAFxJ-qi.js} +1 -1
  4. package/dist/{DataTable-Ce00dbHD.js → DataTable-R8-Zidms.js} +3 -3
  5. package/dist/{DialogContent-CmCijgX9.js → DialogContent-2fALDSvc.js} +3 -3
  6. package/dist/{DialogFooter-DRdaCok0.js → DialogFooter-ClrNEOVU.js} +2 -2
  7. package/dist/{DiscoGlyph-wRA02zAJ.js → DiscoGlyph-C3JfMnRV.js} +1 -1
  8. package/dist/{GlyphFace-BnPMUZ16.js → GlyphFace-BRS8vUb7.js} +1 -1
  9. package/dist/HoverPopover-CWFCfLx3.js +96 -0
  10. package/dist/{IconTooltip-ge_mBSWR.js → IconTooltip-BkaA7tZ2.js} +1 -1
  11. package/dist/{Input-CbakTe3B.js → Input-DDpFn568.js} +3 -5
  12. package/dist/Label-DJty89bp.js +36 -0
  13. package/dist/{MetricBadge-DRBB18Xq.js → MetricBadge-DmAihkXd.js} +1 -1
  14. package/dist/{Notification-DrI1DT2v.js → Notification-OqIpADml.js} +2 -2
  15. package/dist/NumberFieldContent-DTH9gb_N.js +141 -0
  16. package/dist/{PopoverContent-BCH4eYs8.js → PopoverContent-EiklFrna.js} +1 -1
  17. package/dist/{Progress-CCH-2UBR.js → Progress-FApA9fm_.js} +1 -1
  18. package/dist/{ScrollingText-7P8skg5W.js → ScrollingText-BFd0i2zJ.js} +2 -2
  19. package/dist/{SelectScrollDownButton-yu8EYUnu.js → SelectScrollDownButton-Dth8-wXQ.js} +2 -2
  20. package/dist/{Toaster-DY8_jtHv.js → Toaster-Bjlunvq4.js} +69 -58
  21. package/dist/UnderlineTabs-DAWMLmJG.js +37 -0
  22. package/dist/animated-digit.js +2 -2
  23. package/dist/api/index.d.ts +2 -0
  24. package/dist/api.js +1 -1
  25. package/dist/aurora.js +103 -90
  26. package/dist/badge.js +1 -1
  27. package/dist/{button-BlOW34DT.js → button-C0aHmBbt.js} +2 -0
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/carousel.js +1 -1
  31. package/dist/collapsible.js +1 -1
  32. package/dist/command.js +1 -1
  33. package/dist/components/custom/aurora/composables/runtime.d.ts +24 -1
  34. package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +57 -0
  35. package/dist/components/custom/dialog-native/index.d.ts +1 -0
  36. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +20 -10
  37. package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +26 -4
  38. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +16 -2
  39. package/dist/components/custom/labeled-field/LabeledInput.vue.d.ts +17 -1
  40. package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -0
  41. package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +2 -0
  42. package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +2 -0
  43. package/dist/components/custom/toggle-chip/ToggleChip.vue.d.ts +6 -4
  44. package/dist/components/ui/input/Input.vue.d.ts +10 -7
  45. package/dist/components/ui/label/Label.vue.d.ts +8 -0
  46. package/dist/components/ui/textarea/Textarea.vue.d.ts +45 -8
  47. package/dist/components/ui/toast/Toaster.vue.d.ts +7 -1
  48. package/dist/components/ui/toast/index.d.ts +1 -0
  49. package/dist/composables/dark/index.d.ts +1 -0
  50. package/dist/composables/dom/index.d.ts +2 -0
  51. package/dist/composables/dom/useIdleReady.d.ts +63 -0
  52. package/dist/composables/dom/useUserInvalidAria.d.ts +32 -0
  53. package/dist/composables/index.d.ts +1 -0
  54. package/dist/composables/motion/core/index.d.ts +8 -0
  55. package/dist/composables/motion/index.d.ts +0 -7
  56. package/dist/composables/motion/supportsCssTimeline.d.ts +8 -0
  57. package/dist/composables/motion/useRAFLoop.d.ts +7 -0
  58. package/dist/composables/motion/useScrollProgress.d.ts +6 -2
  59. package/dist/composables/motion/useStaggerReveal.d.ts +6 -0
  60. package/dist/composables/motion/useViewTransition.d.ts +31 -0
  61. package/dist/composables/motion/useYieldToMain.d.ts +29 -0
  62. package/dist/configurator.js +1 -1
  63. package/dist/confirm-dialog.js +2 -2
  64. package/dist/constants-DwBwnG8N.js +13 -0
  65. package/dist/context-menu.js +2 -2
  66. package/dist/controls.js +2 -2
  67. package/dist/dark.d.ts +1 -1
  68. package/dist/dark.js +13 -2
  69. package/dist/data-table.js +1 -1
  70. package/dist/dialog.js +2 -2
  71. package/dist/disco-glyph.js +1 -1
  72. package/dist/dock.js +195 -176
  73. package/dist/dom.js +5 -4
  74. package/dist/{dropdown-menu-2K-SGkZU.js → dropdown-menu-BvRUamNs.js} +2 -2
  75. package/dist/dropdown-menu.js +1 -1
  76. package/dist/expandable-container.js +3 -3
  77. package/dist/forms.d.ts +1 -0
  78. package/dist/forms.js +47 -42
  79. package/dist/glass-carousel.js +1 -1
  80. package/dist/glass-panel.js +2 -2
  81. package/dist/glass-ui.css +1 -1
  82. package/dist/glass-ui.js +156 -275
  83. package/dist/glyph-face.js +2 -2
  84. package/dist/header-ribbon.js +1 -1
  85. package/dist/hover-card.js +1 -1
  86. package/dist/hover-popover.js +1 -1
  87. package/dist/icon-tooltip.js +1 -1
  88. package/dist/index.d.ts +1 -0
  89. package/dist/instrument-chassis.js +1 -1
  90. package/dist/instrument-rail.js +1 -1
  91. package/dist/keyboard.js +1 -1
  92. package/dist/label.js +1 -1
  93. package/dist/labeled-field.js +96 -57
  94. package/dist/metric-badge.js +1 -1
  95. package/dist/metric-stack.js +1 -1
  96. package/dist/motion-core.d.ts +1 -0
  97. package/dist/motion-core.js +229 -0
  98. package/dist/motion.js +26 -228
  99. package/dist/notification.js +1 -1
  100. package/dist/number-field.d.ts +1 -0
  101. package/dist/number-field.js +2 -0
  102. package/dist/paper-backdrop.js +1 -1
  103. package/dist/popover.js +1 -1
  104. package/dist/progress.js +1 -1
  105. package/dist/pulse.js +1 -1
  106. package/dist/reactive.js +2 -2
  107. package/dist/responsive-tabs.js +3 -3
  108. package/dist/scrolling-text.js +1 -1
  109. package/dist/search.js +6 -6
  110. package/dist/select.js +3 -3
  111. package/dist/separator.js +1 -1
  112. package/dist/{sheet-CLVkb3AO.js → sheet-CukNDezz.js} +53 -53
  113. package/dist/sheet.js +1 -1
  114. package/dist/{slider-BQaLYFLh.js → slider-DJvHkTRe.js} +3 -3
  115. package/dist/slider.js +1 -1
  116. package/dist/sortable-list.js +2 -2
  117. package/dist/styles/animations.css +77 -0
  118. package/dist/styles/cards.css +6 -2
  119. package/dist/styles/dock.css +109 -109
  120. package/dist/styles/drawer.css +2 -2
  121. package/dist/styles/glass.css +89 -6
  122. package/dist/styles/index.css +10 -1
  123. package/dist/styles/instrument-chassis.css +28 -1
  124. package/dist/styles/scroll-driven.css +72 -0
  125. package/dist/styles/theme.css +6 -0
  126. package/dist/styles/tokens.css +345 -289
  127. package/dist/styles/typography.css +65 -131
  128. package/dist/styles/utilities.css +199 -81
  129. package/dist/styles/view-transition.css +62 -0
  130. package/dist/switch.d.ts +1 -0
  131. package/dist/switch.js +2 -0
  132. package/dist/tabs.js +40 -36
  133. package/dist/timeline.js +2 -2
  134. package/dist/toast.js +1 -1
  135. package/dist/toggle-group.js +1 -1
  136. package/dist/tooltip.js +1 -1
  137. package/dist/typewriter.js +1 -1
  138. package/dist/{useAnimatedNumber-DcvTR9B4.js → useAnimatedNumber-DKQYVB7s.js} +9 -20
  139. package/dist/{useConfiguratorState-BlaevW0S.js → useConfiguratorState-BR5vUDL8.js} +5 -5
  140. package/dist/{useBreakpoint-BHlX-MhR.js → useIdleReady-Cmkhm03v.js} +30 -2
  141. package/dist/{useTouchGate-BhhEMlwJ.js → useTouchGate-D9Zvrzyc.js} +1 -1
  142. package/dist/useUserInvalidAria-DVu1eTXG.js +29 -0
  143. package/dist/useViewTransition-DYIK6Gzb.js +16 -0
  144. package/dist/utils/index.d.ts +1 -0
  145. package/dist/utils/moveBefore.d.ts +15 -0
  146. package/package.json +27 -6
  147. package/src/styles/animations.css +77 -0
  148. package/src/styles/cards.css +6 -2
  149. package/src/styles/dock.css +109 -109
  150. package/src/styles/drawer.css +2 -2
  151. package/src/styles/glass.css +89 -6
  152. package/src/styles/index.css +10 -1
  153. package/src/styles/instrument-chassis.css +28 -1
  154. package/src/styles/scroll-driven.css +72 -0
  155. package/src/styles/theme.css +6 -0
  156. package/src/styles/tokens.css +345 -289
  157. package/src/styles/typography.css +65 -131
  158. package/src/styles/utilities.css +199 -81
  159. package/src/styles/view-transition.css +62 -0
  160. package/dist/HoverPopover-Btv4RQfv.js +0 -80
  161. package/dist/Label-C8QMJSsf.js +0 -32
  162. package/dist/UnderlineTabs-BtrUcXn-.js +0 -64
  163. package/dist/composables/motion/useSpringOrchestrator.d.ts +0 -15
  164. /package/dist/{CollapsibleContent-DHRuXE3P.js → CollapsibleContent-CVMOcYlV.js} +0 -0
  165. /package/dist/{ContextMenuContent-CvXfU5qz.js → ContextMenuContent-otjFIu8v.js} +0 -0
  166. /package/dist/{HoverCardContent-4nN5-5bz.js → HoverCardContent-DaGrgJBO.js} +0 -0
  167. /package/dist/{InstrumentChassis-DOaVYyWq.js → InstrumentChassis-CnHTMxds.js} +0 -0
  168. /package/dist/{InstrumentRail-jHDqXj70.js → InstrumentRail-C6dEbi8E.js} +0 -0
  169. /package/dist/{ModalOverlay-DKLVY-cj.js → ModalOverlay-iWiAgbYH.js} +0 -0
  170. /package/dist/{PaperBackdrop-Bc2drCqJ.js → PaperBackdrop-CeZ-w0R0.js} +0 -0
  171. /package/dist/{SelectGroup-O69GTQ77.js → SelectGroup-DdR4tdDY.js} +0 -0
  172. /package/dist/{SelectSeparator-GTHxKO0a.js → SelectSeparator-CXm_hlqA.js} +0 -0
  173. /package/dist/{Separator-_NCypg_C.js → Separator-D8AUMhxY.js} +0 -0
  174. /package/dist/{Switch-CL0uxu8F.js → Switch-Cr1t_F_U.js} +0 -0
  175. /package/dist/{ToggleGroupItem-BYG_8M9M.js → ToggleGroupItem-OesUouE7.js} +0 -0
  176. /package/dist/{TooltipProvider-C5QLSPto.js → TooltipProvider-DE78vbEP.js} +0 -0
  177. /package/dist/{_plugin-vue_export-helper-n-_DRHWS.js → _plugin-vue_export-helper-Dq1MygBL.js} +0 -0
  178. /package/dist/{badge-BbxVKZfw.js → badge-x46my_Fo.js} +0 -0
  179. /package/dist/composables/{motion → dark}/installDarkModeSync.d.ts +0 -0
  180. /package/dist/{dockContext-BDGSrwsV.js → dockContext-D5NZCWJs.js} +0 -0
  181. /package/dist/{keys-DVkcUktU.js → keys-CaTQS-vx.js} +0 -0
  182. /package/dist/{menuItemVariants-B2nDL7zH.js → menuItemVariants-BsbGNq9C.js} +0 -0
  183. /package/dist/{presets-BMzCDrmR.js → presets-a-D93K1S.js} +0 -0
  184. /package/dist/{search-ocd8tmL9.js → search-DBAiUABx.js} +0 -0
  185. /package/dist/{useGlassRenderer-DMDdMH55.js → useGlassRenderer-Ds-nmrGz.js} +0 -0
  186. /package/dist/{useGlobalDark-PMiP5Jku.js → useGlobalDark-B0WvLJE3.js} +0 -0
  187. /package/dist/{useIntersectionPause-CXYfYg_C.js → useIntersectionPause-IY2CwPQb.js} +0 -0
  188. /package/dist/{useInterval-COlTCeVa.js → useInterval-DVgGUf_y.js} +0 -0
  189. /package/dist/{useKeyboardShortcuts-B1ev1YEC.js → useKeyboardShortcuts-Dpw_RUcB.js} +0 -0
  190. /package/dist/{useResizeObserver-F4aRR4Cj.js → useResizeObserver-Cg9npuM3.js} +0 -0
  191. /package/dist/{useSortable-Ck0rBJ4g.js → useSortable-Cq2Y1JLO.js} +0 -0
  192. /package/dist/{useSpringMount-BTRBNzXP.js → useSpringMount-Cfk1XK1R.js} +0 -0
  193. /package/dist/{useTimer-lp5NlH4w.js → useTimer-NAaj9zNq.js} +0 -0
  194. /package/dist/{x-cdWAmO-q.js → x-q7pJa83X.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./x-cdWAmO-q.js";
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, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
4
- import { ToastAction as y, ToastClose as b, ToastDescription as x, ToastProvider as S, ToastRoot as C, ToastTitle as w, ToastViewport as T } from "reka-ui";
2
+ import { t } from "./x-q7pJa83X.js";
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, ToastProvider as C, ToastRoot as w, ToastTitle as T, ToastViewport as E } from "reka-ui";
5
5
  //#endregion
6
6
  //#region src/components/ui/toast/Toast.vue
7
- var E = /* @__PURE__ */ u({
7
+ var D = /* @__PURE__ */ u({
8
8
  __name: "Toast",
9
9
  props: {
10
10
  class: { type: [
@@ -39,9 +39,9 @@ var E = /* @__PURE__ */ u({
39
39
  let { class: e, variant: t, ...n } = a;
40
40
  return n;
41
41
  });
42
- return (n, r) => (f(), i(_(S), null, {
43
- default: v(() => [l(_(C), d(s.value, {
44
- class: _(e)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel border p-6 pr-8 shadow-modal transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--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", {
42
+ return (n, r) => (p(), i(v(C), null, {
43
+ default: y(() => [l(v(w), d(s.value, {
44
+ class: v(e)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel border p-6 pr-8 shadow-modal transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--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", {
45
45
  "bg-background text-foreground border": t.variant === "default",
46
46
  "bg-destructive text-destructive-foreground border-destructive": t.variant === "destructive"
47
47
  }, a.class),
@@ -52,13 +52,13 @@ var E = /* @__PURE__ */ u({
52
52
  onSwipeEnd: r[4] ||= (e) => o("swipeEnd", e),
53
53
  onSwipeCancel: r[5] ||= (e) => o("swipeCancel", e)
54
54
  }), {
55
- default: v(() => [h(n.$slots, "default")]),
55
+ default: y(() => [g(n.$slots, "default")]),
56
56
  _: 3
57
- }, 16, ["class"]), l(_(T))]),
57
+ }, 16, ["class"]), l(v(E))]),
58
58
  _: 3
59
59
  }));
60
60
  }
61
- }), D = /* @__PURE__ */ u({
61
+ }), O = /* @__PURE__ */ u({
62
62
  __name: "ToastAction",
63
63
  props: {
64
64
  class: { type: [
@@ -77,12 +77,12 @@ var E = /* @__PURE__ */ u({
77
77
  let { class: e, ...t } = n;
78
78
  return t;
79
79
  });
80
- return (t, r) => (f(), i(_(y), d(a.value, { class: _(e)("focus-ring inline-flex h-8 shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
81
- default: v(() => [h(t.$slots, "default")]),
80
+ return (t, r) => (p(), i(v(b), d(a.value, { class: v(e)("focus-ring inline-flex h-8 shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
81
+ default: y(() => [g(t.$slots, "default")]),
82
82
  _: 3
83
83
  }, 16, ["class"]));
84
84
  }
85
- }), O = /* @__PURE__ */ u({
85
+ }), k = /* @__PURE__ */ u({
86
86
  __name: "ToastClose",
87
87
  props: {
88
88
  class: { type: [
@@ -100,12 +100,12 @@ var E = /* @__PURE__ */ u({
100
100
  let { class: e, ...t } = a;
101
101
  return t;
102
102
  });
103
- return (n, r) => (f(), i(_(b), d(o.value, { class: _(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", a.class) }), {
104
- default: v(() => [l(_(t), { class: "h-4 w-4" })]),
103
+ return (n, r) => (p(), i(v(x), d(o.value, { class: v(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", a.class) }), {
104
+ default: y(() => [l(v(t), { class: "h-4 w-4" })]),
105
105
  _: 1
106
106
  }, 16, ["class"]));
107
107
  }
108
- }), k = /* @__PURE__ */ u({
108
+ }), A = /* @__PURE__ */ u({
109
109
  __name: "ToastDescription",
110
110
  props: {
111
111
  class: { type: [
@@ -123,12 +123,12 @@ var E = /* @__PURE__ */ u({
123
123
  let { class: e, ...t } = n;
124
124
  return t;
125
125
  });
126
- return (t, r) => (f(), i(_(x), d(a.value, { class: _(e)("text-sm opacity-90", n.class) }), {
127
- default: v(() => [h(t.$slots, "default")]),
126
+ return (t, r) => (p(), i(v(S), d(a.value, { class: v(e)("text-sm opacity-90", n.class) }), {
127
+ default: y(() => [g(t.$slots, "default")]),
128
128
  _: 3
129
129
  }, 16, ["class"]));
130
130
  }
131
- }), A = /* @__PURE__ */ u({
131
+ }), j = /* @__PURE__ */ u({
132
132
  __name: "ToastTitle",
133
133
  props: {
134
134
  class: { type: [
@@ -146,65 +146,65 @@ var E = /* @__PURE__ */ u({
146
146
  let { class: e, ...t } = n;
147
147
  return t;
148
148
  });
149
- return (t, r) => (f(), i(_(w), d(a.value, { class: _(e)("text-sm font-semibold", n.class) }), {
150
- default: v(() => [h(t.$slots, "default")]),
149
+ return (t, r) => (p(), i(v(T), d(a.value, { class: v(e)("text-sm font-semibold", n.class) }), {
150
+ default: y(() => [g(t.$slots, "default")]),
151
151
  _: 3
152
152
  }, 16, ["class"]));
153
153
  }
154
- }), j = 5, M = 1e6, N = /* @__PURE__ */ new Map();
155
- function P(e) {
156
- if (N.has(e)) return;
154
+ }), M = 5, N = 1e6, P = /* @__PURE__ */ new Map();
155
+ function F(e) {
156
+ if (P.has(e)) return;
157
157
  let t = setTimeout(() => {
158
- N.delete(e), I({
158
+ P.delete(e), L({
159
159
  type: "REMOVE_TOAST",
160
160
  toastId: e
161
161
  });
162
- }, M);
163
- N.set(e, t);
162
+ }, N);
163
+ P.set(e, t);
164
164
  }
165
- var F = p([]);
166
- function I(e) {
165
+ var I = m([]);
166
+ function L(e) {
167
167
  switch (e.type) {
168
168
  case "ADD_TOAST":
169
- F.value = [e.toast, ...F.value].slice(0, j);
169
+ I.value = [e.toast, ...I.value].slice(0, M);
170
170
  break;
171
171
  case "UPDATE_TOAST":
172
- F.value = F.value.map((t) => t.id === e.toast.id ? {
172
+ I.value = I.value.map((t) => t.id === e.toast.id ? {
173
173
  ...t,
174
174
  ...e.toast
175
175
  } : t);
176
176
  break;
177
177
  case "DISMISS_TOAST": {
178
178
  let { toastId: t } = e;
179
- t ? P(t) : F.value.forEach((e) => {
180
- P(e.id);
181
- }), F.value = F.value.map((e) => e.id === t || t === void 0 ? {
179
+ t ? F(t) : I.value.forEach((e) => {
180
+ F(e.id);
181
+ }), I.value = I.value.map((e) => e.id === t || t === void 0 ? {
182
182
  ...e,
183
183
  open: !1
184
184
  } : e);
185
185
  break;
186
186
  }
187
187
  case "REMOVE_TOAST":
188
- e.toastId === void 0 ? F.value = [] : F.value = F.value.filter((t) => t.id !== e.toastId);
188
+ e.toastId === void 0 ? I.value = [] : I.value = I.value.filter((t) => t.id !== e.toastId);
189
189
  break;
190
190
  }
191
191
  }
192
- var L = 0;
193
- function R() {
194
- return L = (L + 1) % Number.MAX_VALUE, L.toString();
192
+ var R = 0;
193
+ function z() {
194
+ return R = (R + 1) % Number.MAX_VALUE, R.toString();
195
195
  }
196
- function z(e) {
197
- let t = R(), n = (e) => I({
196
+ function B(e) {
197
+ let t = z(), n = (e) => L({
198
198
  type: "UPDATE_TOAST",
199
199
  toast: {
200
200
  ...e,
201
201
  id: t
202
202
  }
203
- }), r = () => I({
203
+ }), r = () => L({
204
204
  type: "DISMISS_TOAST",
205
205
  toastId: t
206
206
  });
207
- return I({
207
+ return L({
208
208
  type: "ADD_TOAST",
209
209
  toast: {
210
210
  ...e,
@@ -220,11 +220,11 @@ function z(e) {
220
220
  update: n
221
221
  };
222
222
  }
223
- function B() {
223
+ function V() {
224
224
  return {
225
- toasts: r(() => F.value),
226
- toast: z,
227
- dismiss: (e) => I({
225
+ toasts: r(() => I.value),
226
+ toast: B,
227
+ dismiss: (e) => L({
228
228
  type: "DISMISS_TOAST",
229
229
  toastId: e
230
230
  })
@@ -232,24 +232,35 @@ function B() {
232
232
  }
233
233
  //#endregion
234
234
  //#region src/components/ui/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
235
- var V = { class: "grid gap-1" }, H = /* @__PURE__ */ u({
235
+ var H = { class: "grid gap-1" }, U = "fixed top-0 z-toast flex max-h-screen w-full", W = "p-4", G = "md:max-w-[420px]", K = /* @__PURE__ */ u({
236
236
  __name: "Toaster",
237
- setup(e) {
238
- let { toasts: t } = B();
239
- return (e, r) => (f(), i(_(S), null, {
240
- default: v(() => [(f(!0), o(n, null, m(_(t), (e) => (f(), i(E, d({ key: e.id }, { ref_for: !0 }, e), {
241
- default: v(() => [s("div", V, [e.title ? (f(), i(A, { key: 0 }, {
242
- default: v(() => [c(g(e.title), 1)]),
237
+ props: { position: { default: "bottom-right" } },
238
+ setup(t) {
239
+ let u = t, { toasts: m } = V(), g = {
240
+ "bottom-right": ["flex-col-reverse", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col"],
241
+ "bottom-left": ["flex-col-reverse", "sm:bottom-0 sm:left-0 sm:top-auto sm:flex-col"],
242
+ "bottom-center": ["flex-col-reverse", "sm:bottom-0 sm:left-1/2 sm:top-auto sm:-translate-x-1/2 sm:flex-col"],
243
+ "top-right": ["right-0 flex-col", ""],
244
+ "top-left": ["left-0 flex-col", ""],
245
+ "top-center": ["left-1/2 -translate-x-1/2 flex-col", ""]
246
+ }, b = r(() => {
247
+ let [t, n] = g[u.position];
248
+ return e(U, t, W, n, G);
249
+ });
250
+ return (e, t) => (p(), i(v(C), null, {
251
+ default: y(() => [(p(!0), o(n, null, h(v(m), (e) => (p(), i(D, d({ key: e.id }, { ref_for: !0 }, e), {
252
+ default: y(() => [s("div", H, [e.title ? (p(), i(j, { key: 0 }, {
253
+ default: y(() => [c(_(e.title), 1)]),
243
254
  _: 2
244
- }, 1024)) : a("", !0), e.description ? (f(), i(k, { key: 1 }, {
245
- default: v(() => [c(g(e.description), 1)]),
255
+ }, 1024)) : a("", !0), e.description ? (p(), i(A, { key: 1 }, {
256
+ default: y(() => [c(_(e.description), 1)]),
246
257
  _: 2
247
- }, 1024)) : a("", !0)]), l(O)]),
258
+ }, 1024)) : a("", !0)]), l(k)]),
248
259
  _: 2
249
- }, 1040))), 128)), l(_(T), { class: "fixed top-0 z-toast flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]" })]),
260
+ }, 1040))), 128)), l(v(E), { class: f(b.value) }, null, 8, ["class"])]),
250
261
  _: 1
251
262
  }));
252
263
  }
253
264
  });
254
265
  //#endregion
255
- export { k as a, E as c, A as i, z as n, O as o, B as r, D as s, H as t };
266
+ export { A as a, D as c, j as i, B as n, k as o, V as r, O as s, K as t };
@@ -0,0 +1,37 @@
1
+ import { t as e } from "./cn-DJXf4yaB.js";
2
+ import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
3
+ import { Fragment as n, createElementBlock as r, defineComponent as i, normalizeClass as a, openBlock as o, renderList as s, toDisplayString as c, unref as l } from "vue";
4
+ //#region src/components/custom/tabs/UnderlineTabs.vue?vue&type=script&setup=true&lang.ts
5
+ var u = ["aria-selected", "onClick"], d = /* @__PURE__ */ t(/* @__PURE__ */ i({
6
+ __name: "UnderlineTabs",
7
+ props: {
8
+ options: {},
9
+ modelValue: {},
10
+ class: { type: [
11
+ Boolean,
12
+ null,
13
+ String,
14
+ Object,
15
+ Array
16
+ ] }
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(t, { emit: i }) {
20
+ let d = t, f = i;
21
+ function p(e) {
22
+ f("update:modelValue", e);
23
+ }
24
+ return (i, f) => (o(), r("div", {
25
+ role: "tablist",
26
+ class: a(l(e)("underline-tabs", d.class))
27
+ }, [(o(!0), r(n, null, s(t.options, (e) => (o(), r("button", {
28
+ key: e.value,
29
+ class: "underline-tab",
30
+ role: "tab",
31
+ "aria-selected": t.modelValue === e.value ? "true" : "false",
32
+ onClick: (t) => p(e.value)
33
+ }, c(e.label), 9, u))), 128))], 2));
34
+ }
35
+ }), [["__scopeId", "data-v-93401bfa"]]);
36
+ //#endregion
37
+ export { d as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-n-_DRHWS.js";
3
- import { t as n } from "./useAnimatedNumber-DcvTR9B4.js";
2
+ import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
3
+ import { t as n } from "./useAnimatedNumber-DKQYVB7s.js";
4
4
  import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, toDisplayString as l, unref as u } from "vue";
5
5
  //#region src/components/custom/animated-digit/AnimatedDigit.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = ["data-is-animating"], f = /* @__PURE__ */ t(/* @__PURE__ */ a({
@@ -20,6 +20,8 @@ export type { FuzzySearchState, SearchableItem, SearchIndex, SearchResult, UseFu
20
20
  export type { GlassPanelProps } from "../components/custom/glass-panel";
21
21
  export type { ToastType } from "../components/ui/toast";
22
22
  export type { UseClipboardOptions, UseClipboardReturn, } from "../composables/dom/useClipboard";
23
+ export type { UseUserInvalidAriaOptions, UseUserInvalidAriaReturn, } from "../composables/dom/useUserInvalidAria";
24
+ export type { ViewTransitionResult } from "../composables/motion/useViewTransition";
23
25
  export type { HeaderRibbonPosition, HeaderRibbonProps, } from "../components/custom/header-ribbon";
24
26
  export type { MetricCellAppearance, MetricCellProps, } from "../components/custom/metric-cell";
25
27
  export type { MetricRowProps, MetricStackProps, } from "../components/custom/metric-stack";
package/dist/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./presets-BMzCDrmR.js";
1
+ import { n as e, r as t, t as n } from "./presets-a-D93K1S.js";
2
2
  export { n as DEFAULT_AURORA_CONFIG, e as MAX_NUCLEI, t as MAX_STOPS };