@ac-design/design-system 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/lib/charts/ChartFrame.vue.d.ts +2 -0
  2. package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +42 -37
  3. package/dist/lib/charts/cartesian.d.ts +324 -0
  4. package/dist/lib/charts/cartesian.js +137 -0
  5. package/dist/lib/charts/echarts.d.ts +86 -0
  6. package/dist/lib/charts/echarts.js +173 -0
  7. package/dist/lib/charts/graph.d.ts +77 -0
  8. package/dist/lib/charts/graph.js +155 -0
  9. package/dist/lib/charts/index.d.ts +4 -0
  10. package/dist/lib/charts/index.js +3 -1
  11. package/dist/lib/charts/shared.d.ts +0 -7
  12. package/dist/lib/charts/shared.js +1 -19
  13. package/dist/lib/charts/xy.d.ts +11 -7
  14. package/dist/lib/charts/xy.js +53 -72
  15. package/dist/lib/compat.css +1322 -278
  16. package/dist/lib/components/AcAlert.vue.d.ts +9 -0
  17. package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -21
  18. package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +1 -1
  19. package/dist/lib/components/AcAreaChart.vue.d.ts +3 -0
  20. package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +132 -142
  21. package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
  22. package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +59 -54
  23. package/dist/lib/components/AcBadge.vue.d.ts +7 -3
  24. package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +35 -28
  25. package/dist/lib/components/AcBarChart.vue.d.ts +3 -0
  26. package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +142 -146
  27. package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
  28. package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +18 -17
  29. package/dist/lib/components/AcBulkActionBar.vue.d.ts +2 -0
  30. package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +1 -1
  31. package/dist/lib/components/AcButton.vue.d.ts +12 -6
  32. package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +85 -47
  33. package/dist/lib/components/AcCard.vue.d.ts +34 -3
  34. package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +169 -34
  35. package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
  36. package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +171 -165
  37. package/dist/lib/components/AcCheckBox.vue.d.ts +1 -1
  38. package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +58 -72
  39. package/dist/lib/components/AcCheckList.js +5 -0
  40. package/dist/lib/components/AcCheckList.vue.d.ts +45 -0
  41. package/dist/lib/components/AcCheckList.vue_vue_type_script_setup_true_lang.js +64 -0
  42. package/dist/lib/components/AcCheckRadio.vue.d.ts +30 -5
  43. package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +100 -36
  44. package/dist/lib/components/AcCircularProgress.vue.d.ts +4 -4
  45. package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +12 -9
  46. package/dist/lib/components/AcColorInput.vue.d.ts +5 -2
  47. package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +127 -97
  48. package/dist/lib/components/AcCommandBlock.js +5 -0
  49. package/dist/lib/components/AcCommandBlock.vue.d.ts +34 -0
  50. package/dist/lib/components/AcCommandBlock.vue_vue_type_script_setup_true_lang.js +88 -0
  51. package/dist/lib/components/AcConfirmModal.vue.d.ts +1 -1
  52. package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +7 -3
  53. package/dist/lib/components/AcCopyButton.vue.d.ts +2 -2
  54. package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +4 -4
  55. package/dist/lib/components/AcCostSummary.js +5 -0
  56. package/dist/lib/components/AcCostSummary.vue.d.ts +102 -0
  57. package/dist/lib/components/AcCostSummary.vue_vue_type_script_setup_true_lang.js +179 -0
  58. package/dist/lib/components/AcDatePicker.vue.d.ts +3 -3
  59. package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +606 -380
  60. package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +47 -41
  61. package/dist/lib/components/AcDonutChart.vue.d.ts +10 -0
  62. package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +116 -89
  63. package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
  64. package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +88 -75
  65. package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
  66. package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
  67. package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +17 -17
  68. package/dist/lib/components/AcEmptyState.vue.d.ts +1 -1
  69. package/dist/lib/components/AcErrorState.js +5 -0
  70. package/dist/lib/components/AcErrorState.vue.d.ts +46 -0
  71. package/dist/lib/components/AcErrorState.vue_vue_type_script_setup_true_lang.js +66 -0
  72. package/dist/lib/components/AcFeatureCard.vue.d.ts +6 -0
  73. package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +136 -114
  74. package/dist/lib/components/AcFooter.vue.d.ts +1 -1
  75. package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +1 -1
  76. package/dist/lib/components/AcFormFooter.vue.d.ts +1 -1
  77. package/dist/lib/components/AcFormSection.vue.d.ts +1 -1
  78. package/dist/lib/components/AcGraphChart.js +5 -0
  79. package/dist/lib/components/AcGraphChart.vue.d.ts +124 -0
  80. package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +578 -0
  81. package/dist/lib/components/AcHeader.vue.d.ts +20 -2
  82. package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +84 -26
  83. package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
  84. package/dist/lib/components/AcInput.vue.d.ts +1 -1
  85. package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +76 -79
  86. package/dist/lib/components/AcKeyValueInput.vue.d.ts +4 -4
  87. package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +199 -183
  88. package/dist/lib/components/AcLineChart.vue.d.ts +6 -0
  89. package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +113 -125
  90. package/dist/lib/components/AcLoader.js +5 -0
  91. package/dist/lib/components/AcLoader.vue.d.ts +15 -0
  92. package/dist/lib/components/AcLoader.vue_vue_type_script_setup_true_lang.js +66 -0
  93. package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +3 -1
  94. package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +44 -36
  95. package/dist/lib/components/AcMapChart.js +5 -0
  96. package/dist/lib/components/AcMapChart.vue.d.ts +136 -0
  97. package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +518 -0
  98. package/dist/lib/components/AcModal.vue.d.ts +6 -3
  99. package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +85 -61
  100. package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
  101. package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +25 -17
  102. package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
  103. package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +3 -4
  104. package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
  105. package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +133 -168
  106. package/dist/lib/components/AcNumberInput.vue.d.ts +2 -2
  107. package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +137 -147
  108. package/dist/lib/components/AcPage.vue.d.ts +2 -2
  109. package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +1 -1
  110. package/dist/lib/components/AcPagination.vue.d.ts +5 -5
  111. package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +59 -56
  112. package/dist/lib/components/AcPreloader.vue.d.ts +3 -3
  113. package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +15 -16
  114. package/dist/lib/components/AcProductHero.js +5 -0
  115. package/dist/lib/components/AcProductHero.vue.d.ts +56 -0
  116. package/dist/lib/components/AcProductHero.vue_vue_type_script_setup_true_lang.js +95 -0
  117. package/dist/lib/components/AcProgress.vue.d.ts +17 -2
  118. package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +83 -29
  119. package/dist/lib/components/AcResourceCard.vue.d.ts +1 -1
  120. package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +4 -4
  121. package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
  122. package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +8 -4
  123. package/dist/lib/components/AcSelect.vue.d.ts +3 -3
  124. package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +232 -243
  125. package/dist/lib/components/AcSettingsRow.js +5 -0
  126. package/dist/lib/components/AcSettingsRow.vue.d.ts +29 -0
  127. package/dist/lib/components/AcSettingsRow.vue_vue_type_script_setup_true_lang.js +37 -0
  128. package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +5 -5
  129. package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
  130. package/dist/lib/components/AcSidebar.vue.d.ts +4 -1
  131. package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +104 -94
  132. package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
  133. package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +42 -42
  134. package/dist/lib/components/AcSidebarSection.vue.d.ts +2 -2
  135. package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +23 -18
  136. package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +1 -1
  137. package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
  138. package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +46 -39
  139. package/dist/lib/components/AcSwitchCard.vue.d.ts +3 -3
  140. package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +9 -7
  141. package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +65 -65
  142. package/dist/lib/components/AcTabs.vue.d.ts +9 -2
  143. package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +42 -27
  144. package/dist/lib/components/AcTag.vue.d.ts +1 -1
  145. package/dist/lib/components/AcTagInput.vue.d.ts +5 -5
  146. package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +140 -142
  147. package/dist/lib/components/AcTextarea.vue.d.ts +1 -1
  148. package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +69 -72
  149. package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
  150. package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +54 -22
  151. package/dist/lib/components/AcTimePicker.vue.d.ts +1 -1
  152. package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +177 -185
  153. package/dist/lib/components/AcToaster.vue.d.ts +6 -3
  154. package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +103 -64
  155. package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
  156. package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +184 -70
  157. package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
  158. package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +181 -138
  159. package/dist/lib/components/index.d.ts +7 -0
  160. package/dist/lib/components/status.d.ts +3 -1
  161. package/dist/lib/components/status.js +20 -5
  162. package/dist/lib/composables/useToast.d.ts +17 -1
  163. package/dist/lib/composables/useToast.js +10 -2
  164. package/dist/lib/index.d.ts +7 -3
  165. package/dist/lib/index.js +80 -73
  166. package/dist/lib/theme.css +39 -54
  167. package/package.json +12 -3
@@ -1,12 +1,11 @@
1
- import e from "./AcButton.js";
2
- import { Fragment as t, Teleport as n, Transition as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as ee, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as te, onBeforeUnmount as ne, onMounted as re, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useAttrs as ie, useId as ae, useModel as b, watch as oe, withCtx as se } from "vue";
3
- import { CircleAlert as ce, Clock as le, X as ue } from "@lucide/vue";
1
+ import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as ee, onBeforeUnmount as te, onMounted as ne, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, useAttrs as re, useId as ie, useModel as y, watch as ae, withCtx as oe } from "vue";
2
+ import { Clock as se, X as ce } from "@lucide/vue";
4
3
  //#region src/lib/components/AcTimePicker.vue?vue&type=script&setup=true&lang.ts
5
- var de = ["for"], fe = {
4
+ var le = ["for"], ue = {
6
5
  key: 0,
7
6
  class: "text-danger",
8
7
  "aria-hidden": "true"
9
- }, pe = { class: "relative" }, me = [
8
+ }, de = { class: "relative" }, fe = [
10
9
  "id",
11
10
  "disabled",
12
11
  "aria-expanded",
@@ -14,27 +13,27 @@ var de = ["for"], fe = {
14
13
  "aria-describedby",
15
14
  "aria-invalid",
16
15
  "aria-required"
17
- ], he = { class: "pointer-events-none absolute inset-y-0 right-1.5 flex items-center gap-0.5 text-muted" }, ge = ["aria-label"], _e = ["name", "value"], ve = ["aria-label"], ye = { class: "flex min-h-0 items-stretch justify-center gap-1 p-3" }, be = {
16
+ ], pe = ["aria-label"], me = ["name", "value"], he = ["aria-label"], ge = { class: "flex h-48 min-h-0 shrink-0 items-stretch justify-center gap-1" }, _e = {
18
17
  key: 0,
19
- class: "mx-1.5 mt-6 h-32 w-px shrink-0 self-center bg-border",
18
+ class: "mx-2 mt-6 h-32 w-px shrink-0 self-center bg-border",
20
19
  "aria-hidden": "true"
21
- }, xe = {
20
+ }, ve = {
22
21
  key: 1,
23
- class: "mt-6 self-center font-semibold text-muted",
22
+ class: "mt-6 self-center font-bold text-heading/50",
24
23
  "aria-hidden": "true"
25
- }, Se = ["data-col"], Ce = {
26
- class: "mb-2 text-sm font-semibold tracking-[0.08em] text-muted uppercase",
24
+ }, ye = ["data-col"], be = {
25
+ class: "mb-2 text-xm font-bold tracking-wider text-heading/50 uppercase",
27
26
  "aria-hidden": "true"
28
- }, we = ["aria-label", "onKeydown"], Te = { class: "flex flex-col items-center gap-0.5 py-[76px]" }, Ee = [
27
+ }, xe = ["aria-label", "onKeydown"], Se = { class: "flex w-full flex-col items-center py-20" }, Ce = [
29
28
  "data-value",
30
29
  "tabindex",
31
30
  "aria-selected",
32
31
  "aria-disabled",
33
32
  "onClick"
34
- ], De = { class: "flex items-center gap-2 border-t border-border px-3 py-3" }, Oe = ["disabled"], x = 86399, S = /*@__PURE__*/ u({
33
+ ], we = { class: "mt-4 flex shrink-0 justify-center gap-2 border-t border-border pt-4" }, Te = ["disabled"], b = 86399, x = /*@__PURE__*/ l({
35
34
  inheritAttrs: !1,
36
35
  __name: "AcTimePicker",
37
- props: /*@__PURE__*/ d({
36
+ props: /*@__PURE__*/ u({
38
37
  label: { default: "" },
39
38
  placeholder: { default: "Choose time" },
40
39
  hourCycle: { default: 24 },
@@ -71,18 +70,19 @@ var de = ["for"], fe = {
71
70
  openModifiers: {}
72
71
  }),
73
72
  emits: ["update:modelValue", "update:open"],
74
- setup(u, { expose: d }) {
75
- let S = u, C = b(u, "modelValue"), w = b(u, "open"), ke = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/, T = ae(), E = ie(), Ae = i(() => ({
76
- class: E.class,
77
- style: E.style
78
- })), je = i(() => {
79
- let { class: e, style: t, ...n } = E;
73
+ setup(l, { expose: u }) {
74
+ let x = l, S = y(l, "modelValue"), C = y(l, "open"), Ee = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/, w = ie(), T = re(), De = r(() => ({
75
+ class: T.class,
76
+ style: T.style
77
+ })), Oe = r(() => {
78
+ let { class: e, style: t, ...n } = T;
80
79
  return n;
81
- }), D = `${T}-label`, O = `${T}-value`, k = `${T}-msg`, A = `${T}-hint`, j = g(null), M = g(null), N = g(null), P = g({
80
+ }), E = `${w}-label`, D = `${w}-value`, O = `${w}-msg`, k = `${w}-hint`, A = h(null), j = h(null), M = h(null), N = h({
82
81
  left: 0,
83
- maxHeight: 400
84
- }), F = g(!1), I = i(() => w.value || F.value), L = i(() => G(C.value)), R = i(() => G(S.min) ?? 0), z = i(() => G(S.max) ?? x), B = i(() => L.value === null ? null : K(L.value)), V = i(() => S.hourCycle === 12), H = i(() => L.value === null ? "" : Le(L.value)), Me = i(() => [S.hint && A, S.errorMsg && k].filter(Boolean).join(" ") || void 0), Ne = i(() => S.label ? `${S.label}: choose time` : "Choose time"), Pe = i(() => q(ze())), Fe = i(() => {
85
- let e = B.value, t = e?.h ?? null, n = e?.m ?? null, r = t === null ? 0 : t >= 12 ? 12 : 0, i = [], a = V.value ? [
82
+ maxHeight: 400,
83
+ minWidth: 0
84
+ }), P = h(!1), F = r(() => C.value || P.value), I = r(() => G(S.value)), L = r(() => G(x.min) ?? 0), R = r(() => G(x.max) ?? b), z = r(() => I.value === null ? null : K(I.value)), B = r(() => x.hourCycle === 12), V = r(() => I.value === null ? "" : Ne(I.value)), ke = r(() => [x.hint && k, x.errorMsg && O].filter(Boolean).join(" ") || void 0), Ae = r(() => x.label ? `${x.label}: choose time` : "Choose time"), je = r(() => q(Fe())), H = r(() => {
85
+ let e = z.value, t = e?.h ?? null, n = e?.m ?? null, r = t === null ? 0 : t >= 12 ? 12 : 0, i = [], a = B.value ? [
86
86
  0,
87
87
  1,
88
88
  2,
@@ -103,25 +103,25 @@ var de = ["for"], fe = {
103
103
  selected: t,
104
104
  cells: a.map((e) => ({
105
105
  value: e,
106
- text: U(V.value ? e % 12 || 12 : e),
106
+ text: U(B.value ? e % 12 || 12 : e),
107
107
  disabled: !J(e * 3600, e * 3600 + 3599)
108
108
  }))
109
109
  });
110
- let o = t ?? Re();
110
+ let o = t ?? Pe();
111
111
  if (i.push({
112
112
  unit: "m",
113
113
  heading: "Min",
114
114
  name: "Minutes",
115
115
  selected: n,
116
- cells: W(0, 59, Math.max(1, S.minuteStep)).map((e) => {
116
+ cells: W(0, 59, Math.max(1, x.minuteStep)).map((e) => {
117
117
  let t = o * 3600 + e * 60;
118
118
  return {
119
119
  value: e,
120
120
  text: U(e),
121
- disabled: !J(t, S.showSeconds ? t + 59 : t)
121
+ disabled: !J(t, x.showSeconds ? t + 59 : t)
122
122
  };
123
123
  })
124
- }), S.showSeconds) {
124
+ }), x.showSeconds) {
125
125
  let t = n ?? 0;
126
126
  i.push({
127
127
  unit: "s",
@@ -135,7 +135,7 @@ var de = ["for"], fe = {
135
135
  }))
136
136
  });
137
137
  }
138
- return V.value && i.push({
138
+ return B.value && i.push({
139
139
  unit: "p",
140
140
  heading: "AM/PM",
141
141
  name: "AM or PM",
@@ -147,7 +147,7 @@ var de = ["for"], fe = {
147
147
  }, {
148
148
  value: 12,
149
149
  text: "PM",
150
- disabled: !J(43200, x)
150
+ disabled: !J(43200, b)
151
151
  }]
152
152
  }), i;
153
153
  });
@@ -160,7 +160,7 @@ var de = ["for"], fe = {
160
160
  return r;
161
161
  }
162
162
  function G(e) {
163
- let t = e ? ke.exec(e.trim()) : null;
163
+ let t = e ? Ee.exec(e.trim()) : null;
164
164
  if (!t) return null;
165
165
  let [n, r, i] = [
166
166
  Number(t[1]),
@@ -176,77 +176,79 @@ var de = ["for"], fe = {
176
176
  s: e % 60
177
177
  };
178
178
  }
179
- function Ie(e) {
179
+ function Me(e) {
180
180
  let { h: t, m: n, s: r } = K(e);
181
- return S.showSeconds ? `${U(t)}:${U(n)}:${U(r)}` : `${U(t)}:${U(n)}`;
181
+ return x.showSeconds ? `${U(t)}:${U(n)}:${U(r)}` : `${U(t)}:${U(n)}`;
182
182
  }
183
- function Le(e) {
184
- let { h: t, m: n, s: r } = K(e), i = S.showSeconds ? `${U(n)}:${U(r)}` : U(n);
185
- return V.value ? `${U(t % 12 || 12)}:${i} ${t >= 12 ? "PM" : "AM"}` : `${U(t)}:${i}`;
183
+ function Ne(e) {
184
+ let { h: t, m: n, s: r } = K(e), i = x.showSeconds ? `${U(n)}:${U(r)}` : U(n);
185
+ return B.value ? `${U(t % 12 || 12)}:${i} ${t >= 12 ? "PM" : "AM"}` : `${U(t)}:${i}`;
186
186
  }
187
187
  function q(e) {
188
- return e >= R.value && e <= z.value;
188
+ return e >= L.value && e <= R.value;
189
189
  }
190
190
  function J(e, t) {
191
- return t >= R.value && e <= z.value;
191
+ return t >= L.value && e <= R.value;
192
192
  }
193
- function Re() {
194
- return Math.floor(R.value / 3600);
193
+ function Pe() {
194
+ return Math.floor(L.value / 3600);
195
195
  }
196
- function ze() {
197
- let e = /* @__PURE__ */ new Date(), t = Math.max(1, S.minuteStep), n = Math.floor(e.getMinutes() / t) * t;
198
- return e.getHours() * 3600 + n * 60 + (S.showSeconds ? e.getSeconds() : 0);
196
+ function Fe() {
197
+ let e = /* @__PURE__ */ new Date(), t = Math.max(1, x.minuteStep), n = Math.floor(e.getMinutes() / t) * t;
198
+ return e.getHours() * 3600 + n * 60 + (x.showSeconds ? e.getSeconds() : 0);
199
199
  }
200
- function Be(e) {
201
- if (q(e) && Ve(e)) return e;
202
- let { h: t } = K(e), n = Math.max(1, S.minuteStep) * 60, r = [];
203
- for (let e = t * 3600; e < (t + 1) * 3600; e += n) if (S.showSeconds) for (let t = 0; t < 60; t++) r.push(e + t);
200
+ function Ie(e) {
201
+ if (q(e) && Le(e)) return e;
202
+ let { h: t } = K(e), n = Math.max(1, x.minuteStep) * 60, r = [];
203
+ for (let e = t * 3600; e < (t + 1) * 3600; e += n) if (x.showSeconds) for (let t = 0; t < 60; t++) r.push(e + t);
204
204
  else r.push(e);
205
205
  let i = r.filter(q);
206
206
  return i.length ? i.reduce((t, n) => Math.abs(n - e) < Math.abs(t - e) ? n : t) : null;
207
207
  }
208
- function Ve(e) {
208
+ function Le(e) {
209
209
  let { m: t, s: n } = K(e);
210
- return t % Math.max(1, S.minuteStep) === 0 && (S.showSeconds || n === 0);
210
+ return t % Math.max(1, x.minuteStep) === 0 && (x.showSeconds || n === 0);
211
211
  }
212
- function He(e, t) {
213
- let { h: n, m: r, s: i } = B.value ?? K(Be(R.value) ?? R.value);
212
+ function Re(e, t) {
213
+ let { h: n, m: r, s: i } = z.value ?? K(Ie(L.value) ?? L.value);
214
214
  e === "h" ? n = t : e === "m" ? r = t : e === "s" ? i = t : n = n % 12 + t;
215
- let a = Be(n * 3600 + r * 60 + (S.showSeconds ? i : 0));
216
- a !== null && (C.value = Ie(a));
215
+ let a = Ie(n * 3600 + r * 60 + (x.showSeconds ? i : 0));
216
+ a !== null && (S.value = Me(a));
217
217
  }
218
- function Ue() {
219
- C.value = Ie(ze()), p(() => Z("smooth"));
218
+ function ze() {
219
+ S.value = Me(Fe()), f(() => Z("smooth"));
220
220
  }
221
- function We() {
222
- C.value = null, M.value?.focus();
221
+ function Be() {
222
+ S.value = null, j.value?.focus();
223
223
  }
224
224
  function Y() {
225
- let e = M.value;
225
+ let e = j.value;
226
226
  if (!e) return;
227
- let t = e.getBoundingClientRect(), n = N.value?.offsetWidth ?? 240, r = N.value?.offsetHeight ?? 320, i = window.innerHeight - t.bottom - 6 - 8, a = t.top - 6 - 8, o = i < r && a > i, s = Math.max(8, Math.min(t.left, window.innerWidth - n - 8));
228
- P.value = o ? {
227
+ let t = e.getBoundingClientRect(), n = M.value?.offsetWidth ?? 240, r = M.value?.offsetHeight ?? 320, i = window.innerHeight - t.bottom - 6 - 8, a = t.top - 6 - 8, o = i < r && a > i, s = Math.max(8, Math.min(t.left, window.innerWidth - n - 8)), c = Math.min(t.width, 448);
228
+ N.value = o ? {
229
229
  bottom: window.innerHeight - t.top + 6,
230
230
  left: s,
231
- maxHeight: Math.max(200, a)
231
+ maxHeight: Math.max(200, a),
232
+ minWidth: c
232
233
  } : {
233
234
  top: t.bottom + 6,
234
235
  left: s,
235
- maxHeight: Math.max(200, i)
236
+ maxHeight: Math.max(200, i),
237
+ minWidth: c
236
238
  };
237
239
  }
238
- function Ge() {
239
- S.disabled || w.value || (w.value = !0);
240
+ function Ve() {
241
+ x.disabled || C.value || (C.value = !0);
240
242
  }
241
243
  function X(e = !0) {
242
- w.value && (w.value = !1, e && M.value?.focus());
244
+ C.value && (C.value = !1, e && j.value?.focus());
243
245
  }
244
- async function Ke() {
245
- Y(), tt(), await p(), Y(), Z("instant"), Je(0);
246
+ async function He() {
247
+ Y(), Ze(), await f(), Y(), Z("instant"), We(0);
246
248
  }
247
249
  function Z(e) {
248
250
  let t = e === "smooth" && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
249
- N.value?.querySelectorAll("[role=listbox]").forEach((e) => {
251
+ M.value?.querySelectorAll("[role=listbox]").forEach((e) => {
250
252
  let n = e.querySelector("[aria-selected=true]") ?? e.querySelector("[aria-disabled=false]");
251
253
  n && e.scrollTo({
252
254
  top: n.offsetTop - (e.clientHeight - n.offsetHeight) / 2,
@@ -254,22 +256,22 @@ var de = ["for"], fe = {
254
256
  });
255
257
  });
256
258
  }
257
- function qe(e) {
258
- return [...N.value?.querySelectorAll(`[data-col="${e}"] [role=option]`) ?? []];
259
+ function Ue(e) {
260
+ return [...M.value?.querySelectorAll(`[data-col="${e}"] [role=option]`) ?? []];
259
261
  }
260
- function Je(e) {
261
- let t = qe(e);
262
+ function We(e) {
263
+ let t = Ue(e);
262
264
  (t.find((e) => e.tabIndex === 0) ?? t[0])?.focus({ preventScroll: !0 });
263
265
  }
264
- function Ye(e, t) {
266
+ function Ge(e, t) {
265
267
  return (e.cells.find((t) => t.value === e.selected) ?? e.cells.find((e) => !e.disabled)) === t ? 0 : -1;
266
268
  }
267
- function Xe(e, t, n) {
268
- n.disabled || (He(t.unit, n.value), p(() => {
269
- Z("smooth"), qe(e).find((e) => e.tabIndex === 0)?.focus({ preventScroll: !0 });
269
+ function Ke(e, t, n) {
270
+ n.disabled || (Re(t.unit, n.value), f(() => {
271
+ Z("smooth"), Ue(e).find((e) => e.tabIndex === 0)?.focus({ preventScroll: !0 });
270
272
  }));
271
273
  }
272
- function Ze(e, t, n) {
274
+ function qe(e, t, n) {
273
275
  let r = n.cells.filter((e) => !e.disabled);
274
276
  if (!r.length) return;
275
277
  let i = r.findIndex((e) => e.value === n.selected), a = {
@@ -283,181 +285,171 @@ var de = ["for"], fe = {
283
285
  if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
284
286
  e.preventDefault();
285
287
  let n = t + (e.key === "ArrowRight" ? 1 : -1);
286
- n >= 0 && n < Fe.value.length && Je(n);
288
+ n >= 0 && n < H.value.length && We(n);
287
289
  return;
288
290
  }
289
291
  if (e.key === "Enter") {
290
292
  e.preventDefault();
291
293
  let t = n.cells.find((t) => String(t.value) === e.target.dataset.value);
292
- t && !t.disabled && He(n.unit, t.value), X();
294
+ t && !t.disabled && Re(n.unit, t.value), X();
293
295
  return;
294
296
  }
295
297
  if (!(e.key in a)) return;
296
298
  e.preventDefault();
297
299
  let o = r[Math.max(0, Math.min(r.length - 1, a[e.key]))];
298
- Xe(t, n, o);
300
+ Ke(t, n, o);
299
301
  }
300
- function Qe(e) {
302
+ function Je(e) {
301
303
  if (e.key === "Escape") {
302
304
  e.preventDefault(), e.stopPropagation(), X();
303
305
  return;
304
306
  }
305
- if (e.key !== "Tab" || !N.value) return;
306
- let t = [...N.value.querySelectorAll("button:not([disabled])")].filter((e) => e.tabIndex >= 0);
307
+ if (e.key !== "Tab" || !M.value) return;
308
+ let t = [...M.value.querySelectorAll("button:not([disabled])")].filter((e) => e.tabIndex >= 0);
307
309
  if (!t.length) return;
308
310
  let n = t[0], r = t[t.length - 1];
309
311
  e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
310
312
  }
311
- function $e(e) {
312
- (e.key === "ArrowDown" || e.key === "ArrowUp" && e.altKey) && (e.preventDefault(), Ge());
313
+ function Ye(e) {
314
+ (e.key === "ArrowDown" || e.key === "ArrowUp" && e.altKey) && (e.preventDefault(), Ve());
313
315
  }
314
- function et(e) {
316
+ function Xe(e) {
315
317
  let t = e.target;
316
- j.value?.contains(t) || N.value?.contains(t) || X(!1);
318
+ A.value?.contains(t) || M.value?.contains(t) || X(!1);
317
319
  }
318
320
  function Q(e) {
319
- e?.target instanceof Node && N.value?.contains(e.target) || Y();
321
+ e?.target instanceof Node && M.value?.contains(e.target) || Y();
320
322
  }
321
- function tt() {
322
- document.addEventListener("pointerdown", et, !0), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q);
323
+ function Ze() {
324
+ document.addEventListener("pointerdown", Xe, !0), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q);
323
325
  }
324
326
  function $() {
325
- document.removeEventListener("pointerdown", et, !0), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
327
+ document.removeEventListener("pointerdown", Xe, !0), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
326
328
  }
327
- return oe(w, (e) => e ? Ke() : $()), re(() => {
328
- w.value && Ke();
329
- }), ne($), d({ focus: () => M.value?.focus() }), (i, d) => (h(), s("div", f({
329
+ return ae(C, (e) => e ? He() : $()), ne(() => {
330
+ C.value && He();
331
+ }), te($), u({ focus: () => j.value?.focus() }), (r, u) => (m(), o("div", d({
330
332
  ref_key: "root",
331
- ref: j
332
- }, Ae.value, {
333
- class: ["w-full", u.disabled && "opacity-50"],
333
+ ref: A
334
+ }, De.value, {
335
+ class: ["w-full", l.disabled && "opacity-50"],
334
336
  "data-ac-ds": "",
335
337
  "data-testid": "ac-time-picker"
336
338
  }), [
337
- u.label ? (h(), s("label", {
339
+ l.label ? (m(), o("label", {
338
340
  key: 0,
339
- id: D,
340
- for: `${y(T)}-trigger`,
341
+ id: E,
342
+ for: `${v(w)}-trigger`,
341
343
  class: "mb-2 flex items-center gap-1 text-base font-medium text-heading"
342
- }, [c("span", null, v(u.label), 1), u.required ? (h(), s("span", fe, "*")) : o("", !0)], 8, de)) : o("", !0),
343
- u.hint ? (h(), s("p", {
344
+ }, [s("span", null, _(l.label), 1), l.required ? (m(), o("span", ue, "*")) : a("", !0)], 8, le)) : a("", !0),
345
+ l.hint ? (m(), o("p", {
344
346
  key: 1,
345
- id: A,
347
+ id: k,
346
348
  class: "mb-2 text-base text-muted"
347
- }, v(u.hint), 1)) : o("", !0),
348
- c("div", pe, [c("button", f({
349
- id: `${y(T)}-trigger`,
349
+ }, _(l.hint), 1)) : a("", !0),
350
+ s("div", de, [s("button", d({
351
+ id: `${v(w)}-trigger`,
350
352
  ref_key: "trigger",
351
- ref: M
352
- }, je.value, {
353
+ ref: j
354
+ }, Oe.value, {
353
355
  type: "button",
354
- disabled: u.disabled,
356
+ disabled: l.disabled,
355
357
  "aria-haspopup": "dialog",
356
- "aria-expanded": w.value,
357
- "aria-labelledby": u.label ? `${D} ${O}` : O,
358
- "aria-describedby": Me.value,
359
- "aria-invalid": !!u.errorMsg || void 0,
360
- "aria-required": u.required || void 0,
358
+ "aria-expanded": C.value,
359
+ "aria-labelledby": l.label ? `${E} ${D}` : D,
360
+ "aria-describedby": ke.value,
361
+ "aria-invalid": !!l.errorMsg || void 0,
362
+ "aria-required": l.required || void 0,
361
363
  class: ["flex w-full items-center rounded-10 border bg-background text-left text-base font-normal text-heading transition-[color,background-color,border-color,box-shadow] duration-200 outline-none disabled:cursor-not-allowed", [
362
- u.size === "small" ? "h-9 pl-3" : "h-10 pl-4",
363
- u.clearable && C.value ? "pr-16" : "pr-10",
364
- u.disabled ? "" : "cursor-pointer",
365
- u.errorMsg ? ["border-danger/60", I.value && "border-danger shadow-[0_0_0_2px_color-mix(in_srgb,var(--color-danger)_20%,transparent)]"] : I.value ? "focus-ring" : ["border-border", !u.disabled && "hover:border-accent-active"]
364
+ l.size === "small" ? "h-9 pl-3" : "h-10.5 pl-4",
365
+ l.clearable && S.value ? "pr-20" : "pr-10",
366
+ l.disabled ? "" : "cursor-pointer hover:bg-accent-hover",
367
+ l.errorMsg ? ["border-danger/60", F.value && "border-danger shadow-[0_0_0_2px_color-mix(in_srgb,var(--color-danger)_20%,transparent)]"] : F.value ? "focus-ring" : ["border-border", !l.disabled && "hover:border-accent-active"]
366
368
  ]],
367
- onClick: d[0] ||= (e) => w.value ? X() : Ge(),
368
- onKeydown: $e,
369
- onFocus: d[1] ||= (e) => F.value = !0,
370
- onBlur: d[2] ||= (e) => F.value = !1
371
- }), [c("span", {
372
- id: O,
373
- class: m(["truncate tabular-nums", !H.value && "text-muted/80"])
374
- }, v(H.value || C.value || u.placeholder), 3)], 16, me), c("span", he, [u.clearable && C.value && !u.disabled ? (h(), s("button", {
369
+ onClick: u[0] ||= (e) => C.value ? X() : Ve(),
370
+ onKeydown: Ye,
371
+ onFocus: u[1] ||= (e) => P.value = !0,
372
+ onBlur: u[2] ||= (e) => P.value = !1
373
+ }), [s("span", {
374
+ id: D,
375
+ class: p(["truncate tabular-nums", !V.value && "text-muted/80"])
376
+ }, _(V.value || S.value || l.placeholder), 3)], 16, fe), s("span", { class: p(["pointer-events-none absolute inset-y-0 flex items-center gap-4 text-muted", l.size === "small" ? "right-3" : "right-4"]) }, [l.clearable && S.value && !l.disabled ? (m(), o("button", {
375
377
  key: 0,
376
378
  type: "button",
377
- class: "pointer-events-auto inline-flex size-7 cursor-pointer items-center justify-center rounded-8 transition-colors duration-200 hover:bg-surface-sunken hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
378
- "aria-label": u.label ? `Clear ${u.label}` : "Clear",
379
- onClick: We
380
- }, [l(y(ue), {
379
+ class: "pointer-events-auto inline-flex cursor-pointer items-center justify-center rounded-full p-1 transition-colors duration-200 hover:bg-accent-hover hover:text-primary active:bg-accent-active focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
380
+ "aria-label": l.label ? `Clear ${l.label}` : "Clear",
381
+ onClick: Be
382
+ }, [c(v(ce), {
381
383
  class: "size-4",
382
384
  "aria-hidden": "true"
383
- })], 8, ge)) : o("", !0), l(y(le), {
384
- class: m(["mx-1.5 size-4", w.value && "text-heading"]),
385
+ })], 8, pe)) : a("", !0), c(v(se), {
386
+ class: p(["size-4", C.value && "text-heading"]),
385
387
  "aria-hidden": "true"
386
- }, null, 8, ["class"])])]),
387
- u.errorMsg ? (h(), s("p", {
388
+ }, null, 8, ["class"])], 2)]),
389
+ l.errorMsg ? (m(), o("p", {
388
390
  key: 2,
389
- id: k,
390
- class: "mt-1.5 flex items-center gap-1.5 text-base text-danger-strong",
391
+ id: O,
392
+ class: "mt-1 text-base text-danger-strong",
391
393
  role: "alert"
392
- }, [l(y(ce), {
393
- class: "size-4 shrink-0",
394
- "aria-hidden": "true"
395
- }), ee(" " + v(u.errorMsg), 1)])) : o("", !0),
396
- u.name ? (h(), s("input", {
394
+ }, _(l.errorMsg), 1)) : a("", !0),
395
+ l.name ? (m(), o("input", {
397
396
  key: 3,
398
397
  type: "hidden",
399
- name: u.name,
400
- value: C.value ?? ""
401
- }, null, 8, _e)) : o("", !0),
402
- (h(), a(n, { to: "body" }, [l(r, {
398
+ name: l.name,
399
+ value: S.value ?? ""
400
+ }, null, 8, me)) : a("", !0),
401
+ (m(), i(t, { to: "body" }, [c(n, {
403
402
  "enter-active-class": "transition duration-150 ease-out motion-reduce:transition-opacity",
404
403
  "enter-from-class": "opacity-0 scale-95",
405
404
  "leave-active-class": "transition duration-100 ease-in",
406
405
  "leave-to-class": "opacity-0"
407
406
  }, {
408
- default: se(() => [w.value ? (h(), s("div", {
407
+ default: oe(() => [C.value ? (m(), o("div", {
409
408
  key: 0,
410
409
  ref_key: "panel",
411
- ref: N,
410
+ ref: M,
412
411
  role: "dialog",
413
412
  "aria-modal": "true",
414
- "aria-label": Ne.value,
415
- class: "fixed z-[90] flex max-w-[calc(100vw-16px)] flex-col overflow-hidden rounded-14 border border-border bg-surface shadow-lg",
416
- style: te({
417
- top: P.value.top === void 0 ? void 0 : `${P.value.top}px`,
418
- bottom: P.value.bottom === void 0 ? void 0 : `${P.value.bottom}px`,
419
- left: `${P.value.left}px`,
420
- maxHeight: `${P.value.maxHeight}px`
413
+ "aria-label": Ae.value,
414
+ class: "fixed z-[90] flex max-w-[calc(100vw-16px)] flex-col overflow-hidden rounded-10 border border-border bg-surface p-3 shadow-sm",
415
+ style: ee({
416
+ top: N.value.top === void 0 ? void 0 : `${N.value.top}px`,
417
+ bottom: N.value.bottom === void 0 ? void 0 : `${N.value.bottom}px`,
418
+ left: `${N.value.left}px`,
419
+ maxHeight: `${N.value.maxHeight}px`,
420
+ minWidth: `${N.value.minWidth}px`
421
421
  }),
422
422
  "data-ac-ds": "",
423
423
  "data-testid": "ac-time-picker-panel",
424
- onKeydown: Qe
425
- }, [c("div", ye, [(h(!0), s(t, null, _(Fe.value, (e, n) => (h(), s(t, { key: e.unit }, [e.unit === "p" ? (h(), s("span", be)) : n > 0 ? (h(), s("span", xe, ":")) : o("", !0), c("div", {
426
- class: "flex w-14 shrink-0 flex-col items-center",
424
+ onKeydown: Je
425
+ }, [s("div", ge, [(m(!0), o(e, null, g(H.value, (t, n) => (m(), o(e, { key: t.unit }, [t.unit === "p" ? (m(), o("span", _e)) : n > 0 ? (m(), o("span", ve, ":")) : a("", !0), s("div", {
426
+ class: "flex h-full min-w-14 flex-1 flex-col items-center",
427
427
  "data-col": n
428
- }, [c("span", Ce, v(e.heading), 1), c("div", {
428
+ }, [s("span", be, _(t.heading), 1), s("div", {
429
429
  role: "listbox",
430
- "aria-label": e.name,
431
- class: "relative h-48 w-full overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
432
- onKeydown: (t) => Ze(t, n, e)
433
- }, [c("div", Te, [(h(!0), s(t, null, _(e.cells, (t) => (h(), s("button", {
434
- key: t.value,
430
+ "aria-label": t.name,
431
+ class: "relative min-h-0 w-full flex-1 scroll-smooth overflow-y-auto [scrollbar-width:none] motion-reduce:scroll-auto [&::-webkit-scrollbar]:hidden",
432
+ onKeydown: (e) => qe(e, n, t)
433
+ }, [s("div", Se, [(m(!0), o(e, null, g(t.cells, (e) => (m(), o("button", {
434
+ key: e.value,
435
435
  type: "button",
436
- "data-value": t.value,
436
+ "data-value": e.value,
437
437
  role: "option",
438
- tabindex: Ye(e, t),
439
- "aria-selected": t.value === e.selected,
440
- "aria-disabled": t.disabled,
441
- class: m(["inline-flex size-10 shrink-0 items-center justify-center rounded-8 text-base tabular-nums transition-colors duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface", [e.unit === "p" && "w-12 text-xs font-semibold", t.disabled ? "cursor-not-allowed text-muted/50 line-through" : t.value === e.selected ? "cursor-pointer bg-primary font-semibold text-white shadow-button" : "cursor-pointer text-heading hover:bg-accent-hover active:bg-accent-active"]]),
442
- onClick: (r) => Xe(n, e, t)
443
- }, v(t.text), 11, Ee))), 128))])], 40, we)], 8, Se)], 64))), 128))]), c("div", De, [
444
- c("button", {
445
- type: "button",
446
- class: "inline-flex h-8 cursor-pointer items-center rounded-8 px-2.5 text-base font-medium text-primary-strong transition-colors duration-200 hover:bg-primary/10 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
447
- disabled: !Pe.value,
448
- onClick: Ue
449
- }, " Now ", 8, Oe),
450
- d[4] ||= c("span", { class: "flex-1" }, null, -1),
451
- l(e, {
452
- title: "Done",
453
- size: "small",
454
- onClick: d[3] ||= (e) => X()
455
- })
456
- ])], 44, ve)) : o("", !0)]),
438
+ tabindex: Ge(t, e),
439
+ "aria-selected": e.value === t.selected,
440
+ "aria-disabled": e.disabled,
441
+ class: p(["inline-flex h-10 shrink-0 items-center justify-center rounded-8 tabular-nums transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset motion-reduce:transition-none", [t.unit === "p" ? "w-12 text-xs font-bold" : "w-10 text-base", e.disabled ? "cursor-not-allowed text-muted/50 line-through" : e.value === t.selected ? ["cursor-pointer bg-primary text-white", t.unit !== "p" && "scale-110 font-bold"] : "cursor-pointer text-heading hover:bg-accent-hover hover:font-bold active:bg-accent-active"]]),
442
+ onClick: (r) => Ke(n, t, e)
443
+ }, _(e.text), 11, Ce))), 128))])], 40, xe)], 8, ye)], 64))), 128))]), s("div", we, [s("button", {
444
+ type: "button",
445
+ class: "cursor-pointer rounded-8 bg-accent px-3 py-1.5 text-xs font-medium text-heading transition-colors duration-200 hover:bg-accent-hover active:bg-accent-active focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
446
+ disabled: !je.value,
447
+ onClick: ze
448
+ }, " Current time ", 8, Te)])], 44, he)) : a("", !0)]),
457
449
  _: 1
458
450
  })]))
459
451
  ], 16));
460
452
  }
461
453
  });
462
454
  //#endregion
463
- export { S as default };
455
+ export { x as default };
@@ -1,15 +1,18 @@
1
1
  export interface Props {
2
- /** Corner of the screen. On phones (under 640px) toasts span the width at the same top or bottom edge. */
3
- position?: "bottom-right" | "bottom-center" | "top-right" | "top-center";
2
+ /** Corner of the screen. `top-right` sits 80px from the top, under an app navbar, as cloud-ui. On phones (under 640px) toasts span the width at the same edge. */
3
+ position?: "top-right" | "top-center" | "bottom-right" | "bottom-center";
4
4
  /** How many toasts show at once (phones show at most 3). Newer ones queue behind and their timers wait until they're shown. */
5
5
  max?: number;
6
+ /** Shows the shrinking 2px time bar on every toast. A toast's own `progress` option wins. */
7
+ progress?: boolean;
6
8
  /** Accessible name of the notification region. */
7
9
  label?: string;
8
10
  }
9
11
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
10
12
  label: string;
13
+ progress: boolean;
11
14
  max: number;
12
- position: "bottom-right" | "bottom-center" | "top-right" | "top-center";
15
+ position: "top-right" | "top-center" | "bottom-right" | "bottom-center";
13
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
17
  declare const _default: typeof __VLS_export;
15
18
  export default _default;