@ac-design/design-system 1.0.2 → 2.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.
Files changed (186) hide show
  1. package/README.md +27 -18
  2. package/dist/lib/charts/ChartFrame.js +5 -0
  3. package/dist/lib/charts/ChartFrame.vue.d.ts +69 -0
  4. package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +168 -0
  5. package/dist/lib/charts/index.d.ts +7 -0
  6. package/dist/lib/charts/index.js +5 -0
  7. package/dist/lib/charts/shared.d.ts +60 -0
  8. package/dist/lib/charts/shared.js +114 -0
  9. package/dist/lib/charts/xy.d.ts +65 -0
  10. package/dist/lib/charts/xy.js +92 -0
  11. package/dist/lib/compat.css +1707 -1042
  12. package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +2 -2
  13. package/dist/lib/components/AcAccordionItem.vue.d.ts +1 -1
  14. package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +5 -5
  15. package/dist/lib/components/AcAlert.vue.d.ts +1 -1
  16. package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +19 -25
  17. package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +19 -19
  18. package/dist/lib/components/AcAreaChart.js +5 -0
  19. package/dist/lib/components/AcAreaChart.vue.d.ts +44 -0
  20. package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +215 -0
  21. package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +8 -8
  22. package/dist/lib/components/AcBadge.vue.d.ts +16 -7
  23. package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +59 -43
  24. package/dist/lib/components/AcBanner.vue.d.ts +1 -1
  25. package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +30 -30
  26. package/dist/lib/components/AcBarChart.js +5 -0
  27. package/dist/lib/components/AcBarChart.vue.d.ts +43 -0
  28. package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +217 -0
  29. package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +27 -26
  30. package/dist/lib/components/AcBulkActionBar.js +5 -0
  31. package/dist/lib/components/AcBulkActionBar.vue.d.ts +43 -0
  32. package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +84 -0
  33. package/dist/lib/components/AcButton.vue.d.ts +3 -3
  34. package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +42 -34
  35. package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/dist/lib/components/AcCard.vue.d.ts +10 -2
  37. package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +37 -11
  38. package/dist/lib/components/AcCellValue.vue.d.ts +4 -1
  39. package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +214 -179
  40. package/dist/lib/components/AcCheckBox.vue.d.ts +17 -3
  41. package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +126 -29
  42. package/dist/lib/components/AcCheckRadio.vue.d.ts +1 -1
  43. package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +33 -21
  44. package/dist/lib/components/AcCircularProgress.js +5 -0
  45. package/dist/lib/components/AcCircularProgress.vue.d.ts +44 -0
  46. package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +111 -0
  47. package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +142 -167
  48. package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +9 -9
  49. package/dist/lib/components/AcColorInput.js +5 -0
  50. package/dist/lib/components/AcColorInput.vue.d.ts +54 -0
  51. package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +187 -0
  52. package/dist/lib/components/AcConfirmModal.js +5 -0
  53. package/dist/lib/components/AcConfirmModal.vue.d.ts +56 -0
  54. package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +92 -0
  55. package/dist/lib/components/AcContentHeader.vue.d.ts +1 -1
  56. package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +5 -4
  57. package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +2 -2
  58. package/dist/lib/components/AcCopyButton.js +5 -0
  59. package/dist/lib/components/AcCopyButton.vue.d.ts +43 -0
  60. package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +92 -0
  61. package/dist/lib/components/AcDatePicker.vue.d.ts +5 -5
  62. package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +204 -213
  63. package/dist/lib/components/AcDeleteModal.vue.d.ts +4 -4
  64. package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +37 -46
  65. package/dist/lib/components/AcDonutChart.js +5 -0
  66. package/dist/lib/components/AcDonutChart.vue.d.ts +73 -0
  67. package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +210 -0
  68. package/dist/lib/components/AcDropdown.vue.d.ts +1 -1
  69. package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +9 -9
  70. package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +2 -2
  71. package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
  72. package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +3 -3
  73. package/dist/lib/components/AcEmptyState.vue.d.ts +4 -1
  74. package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +50 -39
  75. package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +14 -13
  76. package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +16 -16
  77. package/dist/lib/components/AcFileUpload.vue.d.ts +2 -2
  78. package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +55 -53
  79. package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +2 -2
  80. package/dist/lib/components/AcFooter.js +5 -0
  81. package/dist/lib/components/AcFooter.vue.d.ts +37 -0
  82. package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +107 -0
  83. package/dist/lib/components/AcForm.vue.d.ts +3 -0
  84. package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +4 -2
  85. package/dist/lib/components/AcFormArray.vue.d.ts +2 -2
  86. package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +149 -147
  87. package/dist/lib/components/AcFormFooter.vue.d.ts +2 -2
  88. package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +2 -2
  89. package/dist/lib/components/AcFormSection.vue.d.ts +7 -0
  90. package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +31 -21
  91. package/dist/lib/components/AcHeader.vue.d.ts +3 -3
  92. package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +22 -22
  93. package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +17 -13
  94. package/dist/lib/components/AcInput.vue.d.ts +3 -3
  95. package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +98 -87
  96. package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +1 -1
  97. package/dist/lib/components/AcKeyValueInput.js +5 -0
  98. package/dist/lib/components/AcKeyValueInput.vue.d.ts +114 -0
  99. package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +320 -0
  100. package/dist/lib/components/AcLineChart.js +5 -0
  101. package/dist/lib/components/AcLineChart.vue.d.ts +38 -0
  102. package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +187 -0
  103. package/dist/lib/components/AcLocaleSwitcher.js +5 -0
  104. package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +46 -0
  105. package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +103 -0
  106. package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +23 -23
  107. package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +6 -6
  108. package/dist/lib/components/AcNavbarItem.vue.d.ts +1 -1
  109. package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +22 -22
  110. package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +26 -26
  111. package/dist/lib/components/AcNumberInput.js +5 -0
  112. package/dist/lib/components/AcNumberInput.vue.d.ts +79 -0
  113. package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +251 -0
  114. package/dist/lib/components/AcPage.vue.d.ts +2 -2
  115. package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +2 -2
  116. package/dist/lib/components/AcPagination.vue.d.ts +20 -3
  117. package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +81 -53
  118. package/dist/lib/components/AcPreloader.vue.d.ts +1 -1
  119. package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +3 -3
  120. package/dist/lib/components/AcProgress.vue.d.ts +2 -2
  121. package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +4 -4
  122. package/dist/lib/components/AcResourceCard.vue.d.ts +2 -2
  123. package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +13 -13
  124. package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
  125. package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +9 -8
  126. package/dist/lib/components/AcSectionContent.vue.d.ts +2 -2
  127. package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +8 -8
  128. package/dist/lib/components/AcSegmentedControl.vue.d.ts +1 -1
  129. package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +4 -4
  130. package/dist/lib/components/AcSelect.vue.d.ts +4 -4
  131. package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +230 -227
  132. package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +31 -31
  133. package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
  134. package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +37 -37
  135. package/dist/lib/components/AcSidebar.vue.d.ts +3 -3
  136. package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +75 -75
  137. package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +33 -32
  138. package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +6 -6
  139. package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +8 -8
  140. package/dist/lib/components/AcSlider.vue.d.ts +1 -1
  141. package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +174 -172
  142. package/dist/lib/components/AcStatCard.vue.d.ts +3 -3
  143. package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +90 -85
  144. package/dist/lib/components/AcStatusBar.vue.d.ts +1 -1
  145. package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +6 -6
  146. package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +28 -28
  147. package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +39 -34
  148. package/dist/lib/components/AcSwitchCard.js +5 -0
  149. package/dist/lib/components/AcSwitchCard.vue.d.ts +59 -0
  150. package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +119 -0
  151. package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +87 -87
  152. package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +4 -4
  153. package/dist/lib/components/AcTag.vue.d.ts +1 -1
  154. package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +22 -22
  155. package/dist/lib/components/AcTagInput.js +5 -0
  156. package/dist/lib/components/AcTagInput.vue.d.ts +74 -0
  157. package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +291 -0
  158. package/dist/lib/components/AcTextarea.vue.d.ts +3 -3
  159. package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +89 -64
  160. package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +3 -3
  161. package/dist/lib/components/AcTimePicker.js +5 -0
  162. package/dist/lib/components/AcTimePicker.vue.d.ts +65 -0
  163. package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +463 -0
  164. package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +65 -71
  165. package/dist/lib/components/AcTooltip.vue.d.ts +1 -1
  166. package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +77 -67
  167. package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +27 -27
  168. package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +111 -103
  169. package/dist/lib/components/index.d.ts +14 -2
  170. package/dist/lib/components/status.d.ts +26 -0
  171. package/dist/lib/components/status.js +110 -0
  172. package/dist/lib/composables/copyText.d.ts +2 -1
  173. package/dist/lib/composables/copyText.js +2 -2
  174. package/dist/lib/composables/useApiPagination.d.ts +55 -0
  175. package/dist/lib/composables/useApiPagination.js +58 -0
  176. package/dist/lib/composables/useBulkSelection.d.ts +44 -0
  177. package/dist/lib/composables/useBulkSelection.js +41 -0
  178. package/dist/lib/composables/useFormValidation.d.ts +65 -0
  179. package/dist/lib/composables/useFormValidation.js +148 -0
  180. package/dist/lib/composables/useTablePagination.d.ts +49 -0
  181. package/dist/lib/composables/useTablePagination.js +41 -0
  182. package/dist/lib/editor/theme.js +65 -62
  183. package/dist/lib/index.d.ts +14 -0
  184. package/dist/lib/index.js +95 -78
  185. package/dist/lib/theme.css +391 -272
  186. package/package.json +11 -4
@@ -5,14 +5,14 @@ var te = [
5
5
  "role",
6
6
  "aria-modal",
7
7
  "aria-label"
8
- ], ne = ["aria-label"], re = {
8
+ ], D = ["aria-label"], ne = {
9
9
  role: "list",
10
- class: "flex flex-col gap-0.5"
11
- }, ie = {
10
+ class: "flex flex-col gap-1"
11
+ }, re = {
12
12
  key: 0,
13
13
  role: "list",
14
- class: "flex flex-col gap-0.5"
15
- }, ae = ["aria-label", "title"], D = { key: 0 }, O = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", k = 120, A = 180, j = /*@__PURE__*/ c({
14
+ class: "flex flex-col gap-1"
15
+ }, ie = ["aria-label", "title"], O = { key: 0 }, k = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", A = 120, j = 180, M = /*@__PURE__*/ c({
16
16
  inheritAttrs: !1,
17
17
  __name: "AcSidebar",
18
18
  props: /*@__PURE__*/ l({
@@ -49,56 +49,56 @@ var te = [
49
49
  }),
50
50
  emits: ["update:collapsed", "update:mobileOpen"],
51
51
  setup(c, { expose: l }) {
52
- let j = c, M = x(c, "collapsed"), N = x(c, "mobileOpen"), P = g(null), F = g(null), I = g(!j.contained && typeof window < "u" && window.matchMedia(X()).matches), L = null, R = null, z = null, B = g(!1), V = n(() => j.hoverExpand && M.value && !I.value && B.value), H = n(() => M.value && !I.value && !V.value), U = n(() => M.value && !I.value), W = !1, G;
53
- function K(e) {
54
- j.hoverExpand && (e && W || (clearTimeout(G), G = setTimeout(() => B.value = e, e ? k : A)));
52
+ let M = c, N = x(c, "collapsed"), P = x(c, "mobileOpen"), F = g(null), I = g(null), L = g(!M.contained && typeof window < "u" && window.matchMedia(X()).matches), R = null, z = null, B = null, V = g(!1), H = n(() => M.hoverExpand && N.value && !L.value && V.value), U = n(() => N.value && !L.value && !H.value), W = n(() => N.value && !L.value), G = !1, K;
53
+ function q(e) {
54
+ M.hoverExpand && (e && G || (clearTimeout(K), K = setTimeout(() => V.value = e, e ? A : j)));
55
55
  }
56
- function q() {
57
- W = !0, clearTimeout(G), B.value = !1, M.value = !M.value;
56
+ function J() {
57
+ G = !0, clearTimeout(K), V.value = !1, N.value = !N.value;
58
58
  }
59
- function oe() {
60
- W = !1, K(!1);
59
+ function ae() {
60
+ G = !1, q(!1);
61
61
  }
62
- function se(e) {
63
- P.value?.contains(e.relatedTarget) || K(!1);
62
+ function oe(e) {
63
+ F.value?.contains(e.relatedTarget) || q(!1);
64
64
  }
65
- let J = n(() => I.value && N.value), Y = n(() => j.dark), ce = n(() => I.value || j.contained ? void 0 : {
66
- top: j.top,
67
- height: `calc(100dvh - ${j.top})`
65
+ let Y = n(() => L.value && P.value), se = n(() => M.dark), ce = n(() => L.value || M.contained ? void 0 : {
66
+ top: M.top,
67
+ height: `calc(100dvh - ${M.top})`
68
68
  }), le = n(() => {
69
- let e = j.dark ? "dark border-r border-border-light bg-sidebar text-body" : "border-r border-border-light bg-surface-muted text-body";
70
- return I.value ? [
69
+ let e = M.dark ? "dark border-r border-border bg-sidebar text-body" : "border-r border-border bg-surface-muted text-body";
70
+ return L.value ? [
71
71
  e,
72
- j.contained ? "absolute" : "fixed",
73
- "inset-y-0 left-0 z-[80] w-60 max-w-[85%] shadow-xl duration-200 ease-out-soft motion-reduce:transition-none",
74
- N.value ? "visible translate-x-0 transition-[translate]" : "invisible -translate-x-full transition-[translate,visibility]"
72
+ M.contained ? "absolute" : "fixed",
73
+ "inset-y-0 left-0 z-[80] w-64 max-w-[85%] shadow-xl duration-300 ease-out-soft motion-reduce:transition-none",
74
+ P.value ? "visible translate-x-0 transition-[translate]" : "invisible -translate-x-full transition-[translate,visibility]"
75
75
  ] : [
76
76
  e,
77
- V.value ? [j.contained ? "absolute inset-y-0 left-0" : "fixed left-0", "z-30 shadow-xl"] : j.contained ? "relative h-full" : "sticky",
77
+ H.value ? [M.contained ? "absolute inset-y-0 left-0" : "fixed left-0", "z-30 shadow-xl"] : M.contained ? "relative h-full" : "sticky",
78
78
  "transition-[width] duration-200 ease-out-soft motion-reduce:transition-none",
79
- H.value ? "w-14" : "w-60"
79
+ U.value ? "w-14" : "w-64"
80
80
  ];
81
81
  });
82
82
  function X() {
83
- return `(max-width: ${j.breakpoint - .02}px)`;
83
+ return `(max-width: ${M.breakpoint - .02}px)`;
84
84
  }
85
85
  function ue() {
86
- I.value ? N.value = !N.value : M.value = !M.value;
86
+ L.value ? P.value = !P.value : N.value = !N.value;
87
87
  }
88
88
  function de() {
89
- M.value = !1;
89
+ N.value = !1;
90
90
  }
91
91
  function fe() {
92
- I.value && (N.value = !1);
92
+ L.value && (P.value = !1);
93
93
  }
94
94
  function Z() {
95
- N.value = !1;
95
+ P.value = !1;
96
96
  }
97
97
  function pe(e) {
98
- if (J.value && P.value) {
98
+ if (Y.value && F.value) {
99
99
  if (e.key === "Escape") e.stopPropagation(), Z();
100
100
  else if (e.key === "Tab") {
101
- let t = [...P.value.querySelectorAll(O)].filter((e) => e.offsetParent !== null);
101
+ let t = [...F.value.querySelectorAll(k)].filter((e) => e.offsetParent !== null);
102
102
  if (!t.length) return;
103
103
  let n = t[0], r = t[t.length - 1];
104
104
  e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
@@ -106,36 +106,36 @@ var te = [
106
106
  }
107
107
  }
108
108
  function Q(e) {
109
- I.value = e.matches;
109
+ L.value = e.matches;
110
110
  }
111
111
  function $(e) {
112
112
  let t = document.body, n = Number(t.dataset.acModals ?? 0) + (e ? 1 : -1);
113
113
  t.dataset.acModals = String(Math.max(n, 0)), e && n === 1 ? t.style.overflow = "hidden" : !e && n <= 0 && (t.style.overflow = "");
114
114
  }
115
115
  function me() {
116
- let e = F.value, t = e?.querySelector("[aria-current=\"page\"]");
116
+ let e = I.value, t = e?.querySelector("[aria-current=\"page\"]");
117
117
  if (!e || !t) return;
118
118
  let n = t.getBoundingClientRect().top - e.getBoundingClientRect().top;
119
119
  (n < 0 || n > e.clientHeight - t.offsetHeight) && (e.scrollTop += n - e.clientHeight / 2);
120
120
  }
121
121
  return h("ac-sidebar", {
122
- rail: H,
123
- isMobile: I,
124
- dark: Y,
122
+ rail: U,
123
+ isMobile: L,
124
+ dark: se,
125
125
  expand: de,
126
126
  navigate: fe
127
- }), S(J, async (e, t) => {
128
- e ? (L = document.activeElement, j.contained || $(!0), await ee(), (P.value?.querySelector("[aria-current=\"page\"]") ?? P.value?.querySelector(O))?.focus()) : t && (j.contained || $(!1), L?.focus?.());
129
- }), S(I, (e) => {
130
- e || (N.value = !1);
127
+ }), S(Y, async (e, t) => {
128
+ e ? (R = document.activeElement, M.contained || $(!0), await ee(), (F.value?.querySelector("[aria-current=\"page\"]") ?? F.value?.querySelector(k))?.focus()) : t && (M.contained || $(!1), R?.focus?.());
129
+ }), S(L, (e) => {
130
+ e || (P.value = !1);
131
131
  }), p(() => {
132
- if (j.contained) {
133
- let e = P.value?.parentElement;
134
- e && (z = new ResizeObserver(([e]) => I.value = (e?.contentRect.width ?? 0) < j.breakpoint), z.observe(e));
135
- } else R = window.matchMedia(X()), I.value = R.matches, R.addEventListener("change", Q);
132
+ if (M.contained) {
133
+ let e = F.value?.parentElement;
134
+ e && (B = new ResizeObserver(([e]) => L.value = (e?.contentRect.width ?? 0) < M.breakpoint), B.observe(e));
135
+ } else z = window.matchMedia(X()), L.value = z.matches, z.addEventListener("change", Q);
136
136
  me();
137
137
  }), f(() => {
138
- clearTimeout(G), R?.removeEventListener("change", Q), z?.disconnect(), J.value && !j.contained && $(!1);
138
+ clearTimeout(K), z?.removeEventListener("change", Q), B?.disconnect(), Y.value && !M.contained && $(!1);
139
139
  }), l({ toggle: ue }), (n, l) => (m(), a(e, null, [
140
140
  s(t, {
141
141
  "enter-active-class": "transition-opacity duration-200",
@@ -143,7 +143,7 @@ var te = [
143
143
  "leave-active-class": "transition-opacity duration-150",
144
144
  "leave-to-class": "opacity-0"
145
145
  }, {
146
- default: C(() => [J.value ? (m(), a("div", {
146
+ default: C(() => [Y.value ? (m(), a("div", {
147
147
  key: 0,
148
148
  class: d(["inset-0 z-[79] bg-overlay", c.contained ? "absolute" : "fixed"]),
149
149
  "aria-hidden": "true",
@@ -153,7 +153,7 @@ var te = [
153
153
  }, null, 2)) : i("", !0)]),
154
154
  _: 1
155
155
  }),
156
- V.value ? (m(), a("div", {
156
+ H.value ? (m(), a("div", {
157
157
  key: 0,
158
158
  class: d(["w-14 shrink-0", c.contained && "h-full"]),
159
159
  "aria-hidden": "true",
@@ -161,61 +161,61 @@ var te = [
161
161
  }, null, 2)) : i("", !0),
162
162
  o("aside", u({
163
163
  ref_key: "root",
164
- ref: P
164
+ ref: F
165
165
  }, n.$attrs, {
166
166
  class: ["flex shrink-0 flex-col overflow-hidden", le.value],
167
167
  style: ce.value,
168
- role: J.value ? "dialog" : void 0,
169
- "aria-modal": J.value || void 0,
170
- "aria-label": J.value ? c.label : void 0,
168
+ role: Y.value ? "dialog" : void 0,
169
+ "aria-modal": Y.value || void 0,
170
+ "aria-label": Y.value ? c.label : void 0,
171
171
  "data-ac-ds": "",
172
172
  "data-testid": "ac-sidebar",
173
173
  onKeydown: pe,
174
- onMouseenter: l[0] ||= (e) => K(!0),
175
- onMouseleave: oe,
176
- onFocusin: l[1] ||= (e) => K(!0),
177
- onFocusout: se
174
+ onMouseenter: l[0] ||= (e) => q(!0),
175
+ onMouseleave: ae,
176
+ onFocusin: l[1] ||= (e) => q(!0),
177
+ onFocusout: oe
178
178
  }), [
179
- n.$slots.header || I.value ? (m(), a("div", {
179
+ n.$slots.header || L.value ? (m(), a("div", {
180
180
  key: 0,
181
- class: d(["flex h-14 shrink-0 items-center gap-2 overflow-hidden border-b border-border-light", H.value ? "justify-center px-2" : "px-4"])
182
- }, [o("div", { class: d(["flex min-w-0 flex-1 items-center", H.value && "justify-center"]) }, [_(n.$slots, "header", { collapsed: H.value })], 2), I.value ? (m(), a("button", {
181
+ class: d(["flex h-18 shrink-0 items-center gap-2 overflow-hidden border-b border-border", U.value ? "justify-center px-2" : "px-5"])
182
+ }, [o("div", { class: d(["flex min-w-0 flex-1 items-center", U.value && "justify-center"]) }, [_(n.$slots, "header", { collapsed: U.value })], 2), L.value ? (m(), a("button", {
183
183
  key: 0,
184
184
  type: "button",
185
- class: d(["-mr-1.5 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-6 text-muted transition hover:text-heading focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring", Y.value ? "hover:bg-white/8" : "hover:bg-slate-90"]),
185
+ class: "-mr-1.5 inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-10 border border-transparent text-muted transition-colors duration-200 hover:border-border hover:bg-surface-sunken/50 hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
186
186
  "aria-label": "Close navigation",
187
187
  "data-ac-ds": "",
188
188
  "data-testid": "ac-sidebar-close",
189
189
  onClick: Z
190
190
  }, [s(b(E), {
191
- class: "size-4",
191
+ class: "size-5",
192
192
  "aria-hidden": "true"
193
- })], 2)) : i("", !0)], 2)) : i("", !0),
193
+ })])) : i("", !0)], 2)) : i("", !0),
194
194
  o("nav", {
195
195
  ref_key: "nav",
196
- ref: F,
196
+ ref: I,
197
197
  "aria-label": c.label,
198
- class: d(["ac-scrollbar min-h-0 flex-1 overflow-x-hidden py-3", H.value ? "px-2" : "px-3"])
199
- }, [o("ul", re, [_(n.$slots, "default")])], 10, ne),
200
- n.$slots.footer || c.collapsible && !I.value ? (m(), a("div", {
198
+ class: d(["ac-scrollbar min-h-0 flex-1 overflow-x-hidden py-5", U.value ? "px-2" : "px-4"])
199
+ }, [o("ul", ne, [_(n.$slots, "default")])], 10, D),
200
+ n.$slots.footer || c.collapsible && !L.value ? (m(), a("div", {
201
201
  key: 1,
202
- class: d(["flex shrink-0 flex-col gap-0.5 border-t border-border-light py-2", H.value ? "px-2" : "px-3"])
203
- }, [n.$slots.footer ? (m(), a("ul", ie, [_(n.$slots, "footer", { collapsed: H.value })])) : i("", !0), c.collapsible && !I.value ? (m(), a("button", {
202
+ class: d(["flex shrink-0 flex-col gap-1 border-t border-border py-3", U.value ? "px-2" : "px-4"])
203
+ }, [n.$slots.footer ? (m(), a("ul", re, [_(n.$slots, "footer", { collapsed: U.value })])) : i("", !0), c.collapsible && !L.value ? (m(), a("button", {
204
204
  key: 1,
205
205
  type: "button",
206
- class: d(["flex h-8 w-full cursor-pointer items-center gap-2.5 rounded-6 text-base text-label transition-colors hover:text-heading focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring", [H.value ? "justify-center" : "px-2.5", Y.value ? "hover:bg-white/8" : "hover:bg-slate-90"]]),
207
- "aria-label": U.value ? "Expand sidebar" : "Collapse sidebar",
208
- title: H.value ? "Expand sidebar" : void 0,
206
+ class: d(["group flex w-full cursor-pointer items-center gap-3 rounded-10 border border-transparent py-2 text-base font-medium text-heading/80 transition-all duration-200 hover:border-border hover:bg-accent-hover hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none", U.value ? "justify-center" : "px-3"]),
207
+ "aria-label": W.value ? "Expand sidebar" : "Collapse sidebar",
208
+ title: U.value ? "Expand sidebar" : void 0,
209
209
  "data-ac-ds": "",
210
210
  "data-testid": "ac-sidebar-collapse",
211
- onClick: q
212
- }, [(m(), r(v(U.value ? b(T) : b(w)), {
213
- class: "size-4 shrink-0 text-muted",
211
+ onClick: J
212
+ }, [(m(), r(v(W.value ? b(T) : b(w)), {
213
+ class: "size-4 shrink-0 text-muted group-hover:text-heading",
214
214
  "aria-hidden": "true"
215
- })), H.value ? i("", !0) : (m(), a("span", D, y(U.value ? "Expand" : "Collapse"), 1))], 10, ae)) : i("", !0)], 2)) : i("", !0)
215
+ })), U.value ? i("", !0) : (m(), a("span", O, y(W.value ? "Expand" : "Collapse"), 1))], 10, ie)) : i("", !0)], 2)) : i("", !0)
216
216
  ], 16, te)
217
217
  ], 64));
218
218
  }
219
219
  });
220
220
  //#endregion
221
- export { j as default };
221
+ export { M as default };
@@ -7,7 +7,7 @@ var D = {
7
7
  "data-testid": "ac-sidebar-item"
8
8
  }, O = {
9
9
  key: 0,
10
- class: "inline-flex size-4 shrink-0 items-center justify-center text-muted transition-colors group-hover:text-heading group-aria-[current=page]:text-primary-30! [&>img]:size-4",
10
+ class: "inline-flex size-4 shrink-0 items-center justify-center text-muted transition-colors duration-200 group-hover:text-heading group-aria-[current=page]:text-primary! [&>img]:size-4",
11
11
  "aria-hidden": "true"
12
12
  }, k = {
13
13
  key: 1,
@@ -47,31 +47,31 @@ var D = {
47
47
  emits: /*@__PURE__*/ l(["click"], ["update:open"]),
48
48
  setup(o, { emit: l }) {
49
49
  let N = o, P = S(o, "open"), F = l, I = C(), L = {
50
- neutral: "bg-slate-90 text-label ring-1 ring-border ring-inset",
51
- primary: "bg-primary-95 text-primary-20",
52
- info: "bg-blue-95 text-blue-20",
53
- success: "bg-green-95 text-green-20",
54
- warning: "bg-yellow-95 text-yellow-20",
55
- danger: "bg-red-95 text-red-30"
50
+ neutral: "border border-border bg-surface-sunken text-muted",
51
+ primary: "bg-primary text-white",
52
+ info: "bg-info text-white",
53
+ success: "bg-success text-white",
54
+ warning: "bg-warning text-on-warning",
55
+ danger: "bg-danger text-white"
56
56
  }, R = {
57
- neutral: "bg-slate-60",
57
+ neutral: "bg-muted",
58
58
  primary: "bg-primary",
59
59
  info: "bg-info",
60
60
  success: "bg-success",
61
61
  warning: "bg-warning",
62
62
  danger: "bg-danger"
63
- }, z = c("ac-sidebar", null), B = c("ac-sidebar-depth", 0), V = s()?.appContext.components.RouterLink, H = x(), U = g(null), W = g(!1), G = null, K = t(() => !!I.default), q = t(() => (z?.rail.value ?? !1) && B === 0), J = t(() => z?.dark.value ? "not-aria-[current=page]:hover:bg-white/8 not-aria-[current=page]:hover:text-heading" : "not-aria-[current=page]:hover:bg-slate-90 not-aria-[current=page]:hover:text-heading"), Y = t(() => N.to && V && !N.disabled ? V : N.to || N.href ? "a" : "button"), X = t(() => {
63
+ }, z = c("ac-sidebar", null), B = c("ac-sidebar-depth", 0), V = s()?.appContext.components.RouterLink, H = x(), U = g(null), W = g(!1), G = null, K = t(() => !!I.default), q = t(() => (z?.rail.value ?? !1) && B === 0), J = t(() => N.to && V && !N.disabled ? V : N.to || N.href ? "a" : "button"), Y = t(() => {
64
64
  let e = {};
65
- return Y.value === V ? e.to = N.to : Y.value === "a" ? N.disabled ? (e.role = "link", e["aria-disabled"] = "true") : e.href = N.href ?? (typeof N.to == "string" ? N.to : void 0) : (e.type = "button", e.disabled = N.disabled || void 0), N.active && (e["aria-current"] = "page"), e;
66
- }), Z = t(() => N.badge === void 0 || N.badge === "" ? "" : String(N.badge));
67
- function Q(e) {
65
+ return J.value === V ? e.to = N.to : J.value === "a" ? N.disabled ? (e.role = "link", e["aria-disabled"] = "true") : e.href = N.href ?? (typeof N.to == "string" ? N.to : void 0) : (e.type = "button", e.disabled = N.disabled || void 0), N.active && (e["aria-current"] = "page"), e;
66
+ }), X = t(() => N.badge === void 0 || N.badge === "" ? "" : String(N.badge));
67
+ function Z(e) {
68
68
  if (N.disabled) {
69
69
  e.preventDefault();
70
70
  return;
71
71
  }
72
72
  F("click", e), z?.navigate();
73
73
  }
74
- function ee() {
74
+ function Q() {
75
75
  q.value ? (z?.expand(), P.value = !0) : P.value = !P.value;
76
76
  }
77
77
  function $() {
@@ -88,10 +88,11 @@ var D = {
88
88
  }));
89
89
  }), f(() => G?.disconnect()), (t, s) => (m(), i("li", D, [K.value ? (m(), i(e, { key: 1 }, [a("button", {
90
90
  type: "button",
91
- class: d(["group relative flex w-full items-center gap-2.5 rounded-6 text-left text-base transition-colors duration-100 select-none focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring", [
92
- q.value ? "h-9 justify-center" : "h-8 px-2.5",
93
- q.value && W.value ? "bg-primary-95 text-primary-20" : W.value ? "font-medium text-heading" : "text-body",
94
- o.disabled ? "cursor-not-allowed opacity-50" : ["cursor-pointer", J.value]
91
+ class: d(["group relative flex w-full items-center gap-3 rounded-10 border py-2 text-left text-base font-medium transition-all duration-200 select-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none", [
92
+ q.value ? "h-9.5 justify-center" : "px-3",
93
+ q.value && W.value ? "border-primary/35 bg-primary/10 text-heading shadow-xs shadow-primary/10" : ["border-transparent", W.value ? "text-heading" : "text-heading/80"],
94
+ o.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
95
+ !o.disabled && !(q.value && W.value) && "hover:border-border hover:bg-accent-hover hover:text-heading"
95
96
  ]]),
96
97
  disabled: o.disabled || void 0,
97
98
  "aria-expanded": q.value ? void 0 : P.value,
@@ -99,24 +100,24 @@ var D = {
99
100
  title: q.value ? o.label : void 0,
100
101
  "data-ac-ds": "",
101
102
  "data-testid": "ac-sidebar-group",
102
- onClick: ee
103
+ onClick: Q
103
104
  }, [
104
105
  t.$slots.icon || o.icon || q.value ? (m(), i("span", {
105
106
  key: 0,
106
- class: d(["inline-flex size-4 shrink-0 items-center justify-center transition-colors group-hover:text-heading [&>img]:size-4", W.value ? "text-primary-30" : "text-muted"]),
107
+ class: d(["inline-flex size-4 shrink-0 items-center justify-center transition-colors duration-200 [&>img]:size-4", W.value ? "text-primary" : "text-muted group-hover:text-heading"]),
107
108
  "aria-hidden": "true"
108
109
  }, [_(t.$slots, "icon", {}, () => [o.icon ? (m(), n(v(o.icon), {
109
110
  key: 0,
110
111
  class: "size-4"
111
112
  })) : (m(), i("span", j, y(o.label.charAt(0)), 1))])], 2)) : r("", !0),
112
113
  a("span", { class: d(q.value ? "sr-only" : "min-w-0 flex-1 truncate") }, y(o.label), 3),
113
- Z.value && !q.value ? (m(), i("span", {
114
+ X.value && !q.value ? (m(), i("span", {
114
115
  key: 1,
115
- class: d(["inline-flex h-4.5 min-w-4.5 shrink-0 items-center justify-center rounded-50 px-1.5 text-sm font-medium tabular-nums", L[o.badgeColor]])
116
- }, y(Z.value), 3)) : r("", !0),
116
+ class: d(["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-6 px-2 text-xs leading-none font-medium tabular-nums", L[o.badgeColor]])
117
+ }, y(X.value), 3)) : r("", !0),
117
118
  q.value ? r("", !0) : (m(), n(b(E), {
118
119
  key: 2,
119
- class: d(["size-3.5 shrink-0 text-muted transition-transform duration-150 motion-reduce:transition-none", P.value && "rotate-90"]),
120
+ class: d(["size-4 shrink-0 text-muted transition-transform duration-200 motion-reduce:transition-none", P.value && "rotate-90"]),
120
121
  "aria-hidden": "true"
121
122
  }, null, 8, ["class"]))
122
123
  ], 10, A), a("ul", {
@@ -124,13 +125,13 @@ var D = {
124
125
  ref_key: "list",
125
126
  ref: U,
126
127
  role: "list",
127
- class: d(["mt-0.5 ml-4.5 flex-col gap-0.5 border-l border-border pl-2", P.value && !q.value ? "flex" : "hidden"])
128
- }, [_(t.$slots, "default")], 10, M)], 64)) : (m(), n(v(Y.value), u({ key: 0 }, X.value, {
129
- class: ["group relative flex w-full items-center gap-2.5 rounded-6 text-left text-base font-normal text-body no-underline transition-colors duration-100 select-none focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring aria-[current=page]:bg-primary-95 aria-[current=page]:font-medium aria-[current=page]:text-primary-20", [q.value ? "h-9 justify-center" : "h-8 px-2.5", o.disabled ? "pointer-events-none cursor-not-allowed opacity-50" : ["cursor-pointer", J.value]]],
130
- title: q.value ? Z.value ? `${o.label} (${Z.value})` : o.label : void 0,
128
+ class: d(["mt-1 ml-5 flex-col gap-1 border-l border-border pl-2", P.value && !q.value ? "flex" : "hidden"])
129
+ }, [_(t.$slots, "default")], 10, M)], 64)) : (m(), n(v(J.value), u({ key: 0 }, Y.value, {
130
+ class: ["group relative flex w-full items-center gap-3 rounded-10 border border-transparent py-2 text-left text-base font-medium text-heading/80 no-underline transition-all duration-200 select-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none aria-[current=page]:border-primary/35 aria-[current=page]:bg-primary/10 aria-[current=page]:text-heading aria-[current=page]:shadow-xs aria-[current=page]:shadow-primary/10", [q.value ? "h-9.5 justify-center" : "px-3", o.disabled ? "pointer-events-none cursor-not-allowed opacity-50" : "cursor-pointer not-aria-[current=page]:hover:border-border not-aria-[current=page]:hover:bg-accent-hover not-aria-[current=page]:hover:text-heading"]],
131
+ title: q.value ? X.value ? `${o.label} (${X.value})` : o.label : void 0,
131
132
  "data-ac-ds": "",
132
133
  "data-testid": "ac-sidebar-link",
133
- onClick: Q
134
+ onClick: Z
134
135
  }), {
135
136
  default: T(() => [
136
137
  t.$slots.icon || o.icon || q.value ? (m(), i("span", O, [_(t.$slots, "icon", {}, () => [o.icon ? (m(), n(v(o.icon), {
@@ -138,14 +139,14 @@ var D = {
138
139
  class: "size-4"
139
140
  })) : (m(), i("span", k, y(o.label.charAt(0)), 1))])])) : r("", !0),
140
141
  a("span", { class: d(q.value ? "sr-only" : "min-w-0 flex-1 truncate") }, y(o.label), 3),
141
- Z.value ? (m(), i(e, { key: 1 }, [q.value ? (m(), i("span", {
142
+ X.value ? (m(), i(e, { key: 1 }, [q.value ? (m(), i("span", {
142
143
  key: 0,
143
- class: d(["absolute top-1 right-1 size-1.5 rounded-full", R[o.badgeColor]]),
144
+ class: d(["absolute top-1 right-1 size-2 rounded-full", R[o.badgeColor]]),
144
145
  "aria-hidden": "true"
145
146
  }, null, 2)) : (m(), i("span", {
146
147
  key: 1,
147
- class: d(["inline-flex h-4.5 min-w-4.5 shrink-0 items-center justify-center rounded-50 px-1.5 text-sm font-medium tabular-nums", L[o.badgeColor]])
148
- }, y(Z.value), 3))], 64)) : r("", !0)
148
+ class: d(["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-6 px-2 text-xs leading-none font-medium tabular-nums", L[o.badgeColor]])
149
+ }, y(X.value), 3))], 64)) : r("", !0)
149
150
  ]),
150
151
  _: 3
151
152
  }, 16, ["class", "title"]))]));
@@ -1,9 +1,9 @@
1
1
  import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, inject as s, mergeModels as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, useId as m, useModel as h } from "vue";
2
- import { ChevronDown as g } from "@lucide/vue";
2
+ import { ChevronRight as g } from "@lucide/vue";
3
3
  //#region src/lib/components/AcSidebarSection.vue?vue&type=script&setup=true&lang.ts
4
4
  var _ = ["aria-expanded", "aria-controls"], v = { class: "truncate" }, y = {
5
5
  key: 1,
6
- class: "h-7 truncate px-2.5 text-sm leading-7 font-medium tracking-wider text-muted uppercase"
6
+ class: "mb-2 truncate px-1 py-0.5 text-sm font-semibold tracking-[0.08em] text-muted uppercase"
7
7
  }, b = ["id", "aria-label"], x = /*@__PURE__*/ o({
8
8
  __name: "AcSidebarSection",
9
9
  props: /*@__PURE__*/ c({
@@ -23,24 +23,24 @@ var _ = ["aria-expanded", "aria-controls"], v = { class: "truncate" }, y = {
23
23
  setup(o) {
24
24
  let c = h(o, "open"), x = s("ac-sidebar", null), S = m(), C = t(() => x?.rail.value ?? !1);
25
25
  return (t, s) => (u(), r("li", {
26
- class: l(["list-none", C.value ? "mt-2 border-t border-border-light pt-2 first:mt-0 first:border-0 first:pt-0" : "mt-4 first:mt-0"]),
26
+ class: l(["list-none", C.value ? "mt-2 border-t border-muted/20 pt-2 first:mt-0 first:border-0 first:pt-0" : "mt-4 border-t border-muted/20 pt-4 first:mt-0 first:border-0 first:pt-0"]),
27
27
  "data-ac-ds": "",
28
28
  "data-testid": "ac-sidebar-section"
29
29
  }, [o.label && !C.value ? (u(), r(e, { key: 0 }, [o.collapsible ? (u(), r("button", {
30
30
  key: 0,
31
31
  type: "button",
32
- class: "group flex h-7 w-full cursor-pointer items-center justify-between gap-2 rounded-6 px-2.5 text-sm font-medium tracking-wider text-muted uppercase transition-colors hover:text-heading focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
32
+ class: "mb-2 flex w-full cursor-pointer items-center justify-between gap-2 rounded-8 px-1 py-0.5 text-left text-sm font-semibold tracking-[0.08em] text-muted uppercase transition-colors duration-200 hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset",
33
33
  "aria-expanded": c.value,
34
34
  "aria-controls": `${p(S)}-items`,
35
35
  onClick: s[0] ||= (e) => c.value = !c.value
36
36
  }, [i("span", v, f(o.label), 1), a(p(g), {
37
- class: l(["size-3.5 shrink-0 transition-transform duration-150 motion-reduce:transition-none", !c.value && "-rotate-90"]),
37
+ class: l(["size-4 shrink-0 text-muted transition-transform duration-200 motion-reduce:transition-none", c.value && "rotate-90"]),
38
38
  "aria-hidden": "true"
39
39
  }, null, 8, ["class"])], 8, _)) : (u(), r("p", y, f(o.label), 1))], 64)) : n("", !0), i("ul", {
40
40
  id: `${p(S)}-items`,
41
41
  role: "list",
42
42
  "aria-label": o.label || void 0,
43
- class: l(["flex-col gap-0.5", c.value || C.value || !o.collapsible ? "flex" : "hidden"])
43
+ class: l(["flex-col gap-1", c.value || C.value || !o.collapsible ? "flex" : "hidden"])
44
44
  }, [d(t.$slots, "default")], 10, b)], 2));
45
45
  }
46
46
  });
@@ -8,19 +8,19 @@ var d = ["aria-busy", "aria-hidden"], f = {
8
8
  key: 3,
9
9
  class: "w-full",
10
10
  "aria-hidden": "true"
11
- }, m = { class: "flex h-9 items-center gap-4 border-b border-border px-4" }, h = {
11
+ }, m = { class: "flex h-11 items-center gap-4 border-b border-border bg-surface-sunken/50 px-6" }, h = {
12
12
  key: 4,
13
- class: "flex size-full overflow-hidden rounded-10 border border-border bg-surface shadow-xs",
13
+ class: "flex size-full overflow-hidden rounded-10 border border-border bg-surface",
14
14
  "aria-hidden": "true"
15
- }, g = { class: "flex w-11 shrink-0 flex-col items-end gap-2 border-r border-border-light bg-surface-muted px-2.5 py-3" }, _ = { class: "flex min-w-0 flex-1 flex-col gap-2 px-3 py-3" }, v = {
15
+ }, g = { class: "flex w-11 shrink-0 flex-col items-end gap-2 border-r border-border bg-surface-muted px-2.5 py-3" }, _ = { class: "flex min-w-0 flex-1 flex-col gap-2 px-3 py-3" }, v = {
16
16
  key: 5,
17
- class: "rounded-10 border border-border bg-surface p-5 shadow-xs",
17
+ class: "rounded-14 border border-border bg-surface p-6",
18
18
  "aria-hidden": "true"
19
19
  }, y = { class: "mt-5 flex flex-col gap-2" }, b = {
20
20
  key: 6,
21
- class: "rounded-10 border border-border bg-surface p-4 shadow-xs",
21
+ class: "rounded-14 border border-border bg-surface p-5",
22
22
  "aria-hidden": "true"
23
- }, x = { class: "flex items-center gap-3" }, S = { class: "min-w-0 flex-1" }, C = { class: "mt-4 grid grid-cols-2 gap-x-4 gap-y-2.5 border-t border-border-light pt-4" }, w = {
23
+ }, x = { class: "flex items-center gap-3" }, S = { class: "min-w-0 flex-1" }, C = { class: "mt-4 grid grid-cols-2 gap-x-4 gap-y-2.5 border-t border-border pt-4" }, w = {
24
24
  key: 7,
25
25
  class: "sr-only"
26
26
  }, T = "ac-skeleton-bone block rounded-4", E = /*@__PURE__*/ a({
@@ -105,7 +105,7 @@ var d = ["aria-busy", "aria-hidden"], f = {
105
105
  class: "flex-1"
106
106
  }, [i("span", { class: o([T, "h-2.5 w-1/2 opacity-70"]) })]))), 128))]), (c(!0), r(e, null, l(a.rows, (t) => (c(), r("div", {
107
107
  key: t,
108
- class: "flex h-12 items-center gap-4 border-b border-border-light px-4 last:border-0"
108
+ class: "flex h-12 items-center gap-4 border-b border-border px-6 last:border-0"
109
109
  }, [(c(!0), r(e, null, l(a.cols, (e) => (c(), r("span", {
110
110
  key: e,
111
111
  class: "flex-1"
@@ -130,7 +130,7 @@ var d = ["aria-busy", "aria-hidden"], f = {
130
130
  i("span", { class: o([T, "h-3 w-full"]) }),
131
131
  i("span", { class: o([T, "h-3 w-3/5"]) })
132
132
  ])
133
- ])) : (c(), r("div", b, [i("div", x, [i("span", { class: o([T, "size-10 shrink-0 rounded-8"]) }), i("div", S, [i("span", { class: o([T, "h-3.5 w-1/2"]) }), i("span", { class: o([T, "mt-2 h-2.5 w-1/3"]) })])]), i("div", C, [
133
+ ])) : (c(), r("div", b, [i("div", x, [i("span", { class: o([T, "size-10 shrink-0 rounded-10"]) }), i("div", S, [i("span", { class: o([T, "h-3.5 w-1/2"]) }), i("span", { class: o([T, "mt-2 h-2.5 w-1/3"]) })])]), i("div", C, [
134
134
  i("span", { class: o([T, "h-2.5 w-3/5"]) }),
135
135
  i("span", { class: o([T, "h-2.5 w-2/5 justify-self-end"]) }),
136
136
  i("span", { class: o([T, "h-2.5 w-1/2"]) }),
@@ -33,7 +33,7 @@ export interface Props {
33
33
  required?: boolean;
34
34
  /** Error text under the slider. Turns the track red and sets `aria-invalid`. */
35
35
  errorMsg?: string;
36
- /** Helper text under the slider (hidden while `errorMsg` is set). */
36
+ /** Help text between the label and the slider. */
37
37
  hint?: string;
38
38
  }
39
39
  type __VLS_Props = Props;