@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.
- package/README.md +27 -18
- package/dist/lib/charts/ChartFrame.js +5 -0
- package/dist/lib/charts/ChartFrame.vue.d.ts +69 -0
- package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/lib/charts/index.d.ts +7 -0
- package/dist/lib/charts/index.js +5 -0
- package/dist/lib/charts/shared.d.ts +60 -0
- package/dist/lib/charts/shared.js +114 -0
- package/dist/lib/charts/xy.d.ts +65 -0
- package/dist/lib/charts/xy.js +92 -0
- package/dist/lib/compat.css +1707 -1042
- package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcAccordionItem.vue.d.ts +1 -1
- package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/lib/components/AcAlert.vue.d.ts +1 -1
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +19 -25
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/lib/components/AcAreaChart.js +5 -0
- package/dist/lib/components/AcAreaChart.vue.d.ts +44 -0
- package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +215 -0
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcBadge.vue.d.ts +16 -7
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +59 -43
- package/dist/lib/components/AcBanner.vue.d.ts +1 -1
- package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/lib/components/AcBarChart.js +5 -0
- package/dist/lib/components/AcBarChart.vue.d.ts +43 -0
- package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +217 -0
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +27 -26
- package/dist/lib/components/AcBulkActionBar.js +5 -0
- package/dist/lib/components/AcBulkActionBar.vue.d.ts +43 -0
- package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/lib/components/AcButton.vue.d.ts +3 -3
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +42 -34
- package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcCard.vue.d.ts +10 -2
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +37 -11
- package/dist/lib/components/AcCellValue.vue.d.ts +4 -1
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +214 -179
- package/dist/lib/components/AcCheckBox.vue.d.ts +17 -3
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +126 -29
- package/dist/lib/components/AcCheckRadio.vue.d.ts +1 -1
- package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +33 -21
- package/dist/lib/components/AcCircularProgress.js +5 -0
- package/dist/lib/components/AcCircularProgress.vue.d.ts +44 -0
- package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +111 -0
- package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +142 -167
- package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/lib/components/AcColorInput.js +5 -0
- package/dist/lib/components/AcColorInput.vue.d.ts +54 -0
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/lib/components/AcConfirmModal.js +5 -0
- package/dist/lib/components/AcConfirmModal.vue.d.ts +56 -0
- package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/lib/components/AcContentHeader.vue.d.ts +1 -1
- package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcCopyButton.js +5 -0
- package/dist/lib/components/AcCopyButton.vue.d.ts +43 -0
- package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/lib/components/AcDatePicker.vue.d.ts +5 -5
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +204 -213
- package/dist/lib/components/AcDeleteModal.vue.d.ts +4 -4
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +37 -46
- package/dist/lib/components/AcDonutChart.js +5 -0
- package/dist/lib/components/AcDonutChart.vue.d.ts +73 -0
- package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +210 -0
- package/dist/lib/components/AcDropdown.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/lib/components/AcEmptyState.vue.d.ts +4 -1
- package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +50 -39
- package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +14 -13
- package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/lib/components/AcFileUpload.vue.d.ts +2 -2
- package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +55 -53
- package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcFooter.js +5 -0
- package/dist/lib/components/AcFooter.vue.d.ts +37 -0
- package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/lib/components/AcForm.vue.d.ts +3 -0
- package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/lib/components/AcFormArray.vue.d.ts +2 -2
- package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +149 -147
- package/dist/lib/components/AcFormFooter.vue.d.ts +2 -2
- package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcFormSection.vue.d.ts +7 -0
- package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +31 -21
- package/dist/lib/components/AcHeader.vue.d.ts +3 -3
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +22 -22
- package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +17 -13
- package/dist/lib/components/AcInput.vue.d.ts +3 -3
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +98 -87
- package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcKeyValueInput.js +5 -0
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +114 -0
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +320 -0
- package/dist/lib/components/AcLineChart.js +5 -0
- package/dist/lib/components/AcLineChart.vue.d.ts +38 -0
- package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/lib/components/AcLocaleSwitcher.js +5 -0
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +46 -0
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/lib/components/AcNavbarItem.vue.d.ts +1 -1
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +22 -22
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +26 -26
- package/dist/lib/components/AcNumberInput.js +5 -0
- package/dist/lib/components/AcNumberInput.vue.d.ts +79 -0
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +251 -0
- package/dist/lib/components/AcPage.vue.d.ts +2 -2
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcPagination.vue.d.ts +20 -3
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +81 -53
- package/dist/lib/components/AcPreloader.vue.d.ts +1 -1
- package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/lib/components/AcProgress.vue.d.ts +2 -2
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcResourceCard.vue.d.ts +2 -2
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/lib/components/AcSectionContent.vue.d.ts +2 -2
- package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcSegmentedControl.vue.d.ts +1 -1
- package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcSelect.vue.d.ts +4 -4
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +230 -227
- package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +31 -31
- package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
- package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/lib/components/AcSidebar.vue.d.ts +3 -3
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +75 -75
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +33 -32
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcSlider.vue.d.ts +1 -1
- package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +174 -172
- package/dist/lib/components/AcStatCard.vue.d.ts +3 -3
- package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +90 -85
- package/dist/lib/components/AcStatusBar.vue.d.ts +1 -1
- package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +39 -34
- package/dist/lib/components/AcSwitchCard.js +5 -0
- package/dist/lib/components/AcSwitchCard.vue.d.ts +59 -0
- package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +87 -87
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcTag.vue.d.ts +1 -1
- package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +22 -22
- package/dist/lib/components/AcTagInput.js +5 -0
- package/dist/lib/components/AcTagInput.vue.d.ts +74 -0
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +291 -0
- package/dist/lib/components/AcTextarea.vue.d.ts +3 -3
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +89 -64
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/lib/components/AcTimePicker.js +5 -0
- package/dist/lib/components/AcTimePicker.vue.d.ts +65 -0
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +463 -0
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +65 -71
- package/dist/lib/components/AcTooltip.vue.d.ts +1 -1
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +77 -67
- package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +111 -103
- package/dist/lib/components/index.d.ts +14 -2
- package/dist/lib/components/status.d.ts +26 -0
- package/dist/lib/components/status.js +110 -0
- package/dist/lib/composables/copyText.d.ts +2 -1
- package/dist/lib/composables/copyText.js +2 -2
- package/dist/lib/composables/useApiPagination.d.ts +55 -0
- package/dist/lib/composables/useApiPagination.js +58 -0
- package/dist/lib/composables/useBulkSelection.d.ts +44 -0
- package/dist/lib/composables/useBulkSelection.js +41 -0
- package/dist/lib/composables/useFormValidation.d.ts +65 -0
- package/dist/lib/composables/useFormValidation.js +148 -0
- package/dist/lib/composables/useTablePagination.d.ts +49 -0
- package/dist/lib/composables/useTablePagination.js +41 -0
- package/dist/lib/editor/theme.js +65 -62
- package/dist/lib/index.d.ts +14 -0
- package/dist/lib/index.js +95 -78
- package/dist/lib/theme.css +391 -272
- package/package.json +11 -4
|
@@ -5,14 +5,14 @@ var te = [
|
|
|
5
5
|
"role",
|
|
6
6
|
"aria-modal",
|
|
7
7
|
"aria-label"
|
|
8
|
-
],
|
|
8
|
+
], D = ["aria-label"], ne = {
|
|
9
9
|
role: "list",
|
|
10
|
-
class: "flex flex-col gap-
|
|
11
|
-
},
|
|
10
|
+
class: "flex flex-col gap-1"
|
|
11
|
+
}, re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "list",
|
|
14
|
-
class: "flex flex-col gap-
|
|
15
|
-
},
|
|
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
|
|
53
|
-
function
|
|
54
|
-
|
|
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
|
|
57
|
-
|
|
56
|
+
function J() {
|
|
57
|
+
G = !0, clearTimeout(K), V.value = !1, N.value = !N.value;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function ae() {
|
|
60
|
+
G = !1, q(!1);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function oe(e) {
|
|
63
|
+
F.value?.contains(e.relatedTarget) || q(!1);
|
|
64
64
|
}
|
|
65
|
-
let
|
|
66
|
-
top:
|
|
67
|
-
height: `calc(100dvh - ${
|
|
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 =
|
|
70
|
-
return
|
|
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
|
-
|
|
73
|
-
"inset-y-0 left-0 z-[80] w-
|
|
74
|
-
|
|
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
|
-
|
|
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
|
-
|
|
79
|
+
U.value ? "w-14" : "w-64"
|
|
80
80
|
];
|
|
81
81
|
});
|
|
82
82
|
function X() {
|
|
83
|
-
return `(max-width: ${
|
|
83
|
+
return `(max-width: ${M.breakpoint - .02}px)`;
|
|
84
84
|
}
|
|
85
85
|
function ue() {
|
|
86
|
-
|
|
86
|
+
L.value ? P.value = !P.value : N.value = !N.value;
|
|
87
87
|
}
|
|
88
88
|
function de() {
|
|
89
|
-
|
|
89
|
+
N.value = !1;
|
|
90
90
|
}
|
|
91
91
|
function fe() {
|
|
92
|
-
|
|
92
|
+
L.value && (P.value = !1);
|
|
93
93
|
}
|
|
94
94
|
function Z() {
|
|
95
|
-
|
|
95
|
+
P.value = !1;
|
|
96
96
|
}
|
|
97
97
|
function pe(e) {
|
|
98
|
-
if (
|
|
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 = [...
|
|
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
|
-
|
|
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 =
|
|
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:
|
|
123
|
-
isMobile:
|
|
124
|
-
dark:
|
|
122
|
+
rail: U,
|
|
123
|
+
isMobile: L,
|
|
124
|
+
dark: se,
|
|
125
125
|
expand: de,
|
|
126
126
|
navigate: fe
|
|
127
|
-
}), S(
|
|
128
|
-
e ? (
|
|
129
|
-
}), S(
|
|
130
|
-
e || (
|
|
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 (
|
|
133
|
-
let e =
|
|
134
|
-
e && (
|
|
135
|
-
} else
|
|
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(
|
|
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(() => [
|
|
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
|
-
|
|
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:
|
|
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:
|
|
169
|
-
"aria-modal":
|
|
170
|
-
"aria-label":
|
|
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) =>
|
|
175
|
-
onMouseleave:
|
|
176
|
-
onFocusin: l[1] ||= (e) =>
|
|
177
|
-
onFocusout:
|
|
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 ||
|
|
179
|
+
n.$slots.header || L.value ? (m(), a("div", {
|
|
180
180
|
key: 0,
|
|
181
|
-
class: d(["flex h-
|
|
182
|
-
}, [o("div", { class: d(["flex min-w-0 flex-1 items-center",
|
|
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:
|
|
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-
|
|
191
|
+
class: "size-5",
|
|
192
192
|
"aria-hidden": "true"
|
|
193
|
-
})]
|
|
193
|
+
})])) : i("", !0)], 2)) : i("", !0),
|
|
194
194
|
o("nav", {
|
|
195
195
|
ref_key: "nav",
|
|
196
|
-
ref:
|
|
196
|
+
ref: I,
|
|
197
197
|
"aria-label": c.label,
|
|
198
|
-
class: d(["ac-scrollbar min-h-0 flex-1 overflow-x-hidden py-
|
|
199
|
-
}, [o("ul",
|
|
200
|
-
n.$slots.footer || c.collapsible && !
|
|
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-
|
|
203
|
-
}, [n.$slots.footer ? (m(), a("ul",
|
|
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
|
|
207
|
-
"aria-label":
|
|
208
|
-
title:
|
|
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:
|
|
212
|
-
}, [(m(), r(v(
|
|
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
|
-
})),
|
|
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 {
|
|
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
|
|
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: "
|
|
51
|
-
primary: "bg-primary
|
|
52
|
-
info: "bg-
|
|
53
|
-
success: "bg-
|
|
54
|
-
warning: "bg-
|
|
55
|
-
danger: "bg-
|
|
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-
|
|
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(() =>
|
|
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
|
|
66
|
-
}),
|
|
67
|
-
function
|
|
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
|
|
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-
|
|
92
|
-
q.value ? "h-9 justify-center" : "
|
|
93
|
-
q.value && W.value ? "bg-primary
|
|
94
|
-
o.disabled ? "cursor-not-allowed opacity-50" :
|
|
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:
|
|
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
|
|
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
|
-
|
|
114
|
+
X.value && !q.value ? (m(), i("span", {
|
|
114
115
|
key: 1,
|
|
115
|
-
class: d(["inline-flex h-
|
|
116
|
-
}, y(
|
|
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-
|
|
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-
|
|
128
|
-
}, [_(t.$slots, "default")], 10, M)], 64)) : (m(), n(v(
|
|
129
|
-
class: ["group relative flex w-full items-center gap-
|
|
130
|
-
title: q.value ?
|
|
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:
|
|
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
|
-
|
|
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-
|
|
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-
|
|
148
|
-
}, y(
|
|
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 {
|
|
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: "
|
|
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-
|
|
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: "
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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
|
-
/**
|
|
36
|
+
/** Help text between the label and the slider. */
|
|
37
37
|
hint?: string;
|
|
38
38
|
}
|
|
39
39
|
type __VLS_Props = Props;
|