@atelier-ui/vue 0.2.13 → 0.2.15

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 (40) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/index.css +1 -1
  3. package/index.mjs +628 -670
  4. package/lib/accordion/atl-accordion-item.vue.d.ts +1 -1
  5. package/lib/accordion/atl-accordion-item.vue.d.ts.map +1 -1
  6. package/lib/alert/atl-alert.vue.d.ts.map +1 -1
  7. package/lib/avatar/atl-avatar.vue.d.ts.map +1 -1
  8. package/lib/chat/atl-chat-header.vue.d.ts.map +1 -1
  9. package/lib/chat/atl-chat-input.vue.d.ts +1 -1
  10. package/lib/chat/atl-chat-input.vue.d.ts.map +1 -1
  11. package/lib/checkbox/atl-checkbox.vue.d.ts +1 -3
  12. package/lib/checkbox/atl-checkbox.vue.d.ts.map +1 -1
  13. package/lib/code-block/atl-code-block.vue.d.ts.map +1 -1
  14. package/lib/combobox/atl-combobox.vue.d.ts +2 -2
  15. package/lib/combobox/atl-combobox.vue.d.ts.map +1 -1
  16. package/lib/dialog/atl-dialog-header.vue.d.ts.map +1 -1
  17. package/lib/drawer/atl-drawer-header.vue.d.ts.map +1 -1
  18. package/lib/icon/atl-icon.vue.d.ts.map +1 -1
  19. package/lib/icons.d.ts +39 -0
  20. package/lib/icons.d.ts.map +1 -0
  21. package/lib/input/atl-input.vue.d.ts +3 -3
  22. package/lib/input/atl-input.vue.d.ts.map +1 -1
  23. package/lib/progress/atl-progress.vue.d.ts +1 -1
  24. package/lib/progress/atl-progress.vue.d.ts.map +1 -1
  25. package/lib/radio/atl-radio.vue.d.ts.map +1 -1
  26. package/lib/radio-group/atl-radio-group.vue.d.ts +2 -2
  27. package/lib/radio-group/atl-radio-group.vue.d.ts.map +1 -1
  28. package/lib/select/atl-select.vue.d.ts +1 -3
  29. package/lib/select/atl-select.vue.d.ts.map +1 -1
  30. package/lib/spec.d.ts +20 -6
  31. package/lib/spec.d.ts.map +1 -1
  32. package/lib/stepper/atl-stepper.vue.d.ts.map +1 -1
  33. package/lib/table/atl-th.vue.d.ts.map +1 -1
  34. package/lib/textarea/atl-textarea.vue.d.ts +5 -5
  35. package/lib/textarea/atl-textarea.vue.d.ts.map +1 -1
  36. package/lib/toast/atl-toast-item.vue.d.ts.map +1 -1
  37. package/lib/toggle/atl-toggle.vue.d.ts +1 -3
  38. package/lib/toggle/atl-toggle.vue.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/styles/tokens.css +24 -0
package/index.mjs CHANGED
@@ -35,7 +35,166 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
35
35
  let l = t(() => ["atl-accordion-group", `variant-${n.variant}`]);
36
36
  return (e, t) => (g(), i("div", { class: d(l.value) }, [b(e.$slots, "default")], 2));
37
37
  }
38
- }), N = ["aria-expanded", "disabled"], P = /* @__PURE__ */ c({
38
+ }), N = "0 0 24 24", P = {
39
+ success: {
40
+ kind: "stroke",
41
+ paths: ["M12 3A9 9 0 1 0 12 21A9 9 0 1 0 12 3", "M8 12L11 15L16 9"]
42
+ },
43
+ check: {
44
+ kind: "stroke",
45
+ paths: ["M20 6L9 17L4 12"]
46
+ },
47
+ warning: {
48
+ kind: "stroke",
49
+ paths: [
50
+ "M12 3L22 20H2L12 3Z",
51
+ "M12 9V14",
52
+ "M12 17.5V17.6"
53
+ ]
54
+ },
55
+ danger: {
56
+ kind: "stroke",
57
+ paths: [
58
+ "M12 3A9 9 0 1 0 12 21A9 9 0 1 0 12 3",
59
+ "M15 9L9 15",
60
+ "M9 9L15 15"
61
+ ]
62
+ },
63
+ error: {
64
+ kind: "stroke",
65
+ paths: [
66
+ "M12 3A9 9 0 1 0 12 21A9 9 0 1 0 12 3",
67
+ "M12 7V13",
68
+ "M12 16.5V16.6"
69
+ ]
70
+ },
71
+ info: {
72
+ kind: "stroke",
73
+ paths: [
74
+ "M12 3A9 9 0 1 0 12 21A9 9 0 1 0 12 3",
75
+ "M12 11V17",
76
+ "M12 7.5V7.6"
77
+ ]
78
+ },
79
+ "chevron-up": {
80
+ kind: "stroke",
81
+ paths: ["M6 15L12 9L18 15"]
82
+ },
83
+ "chevron-down": {
84
+ kind: "stroke",
85
+ paths: ["M6 9L12 15L18 9"]
86
+ },
87
+ "chevron-left": {
88
+ kind: "stroke",
89
+ paths: ["M15 6L9 12L15 18"]
90
+ },
91
+ "chevron-right": {
92
+ kind: "stroke",
93
+ paths: ["M9 6L15 12L9 18"]
94
+ },
95
+ "arrow-left": {
96
+ kind: "stroke",
97
+ paths: ["M19 12H5", "M11 6L5 12L11 18"]
98
+ },
99
+ "arrow-right": {
100
+ kind: "stroke",
101
+ paths: ["M5 12H19", "M13 6L19 12L13 18"]
102
+ },
103
+ "sort-asc": {
104
+ kind: "fill",
105
+ paths: ["M12 4L19 13H5L12 4Z"]
106
+ },
107
+ "sort-desc": {
108
+ kind: "fill",
109
+ paths: ["M12 20L5 11H19L12 20Z"]
110
+ },
111
+ close: {
112
+ kind: "stroke",
113
+ paths: ["M18 6L6 18", "M6 6L18 18"]
114
+ },
115
+ add: {
116
+ kind: "stroke",
117
+ paths: ["M12 5V19", "M5 12H19"]
118
+ },
119
+ more: {
120
+ kind: "fill",
121
+ paths: [
122
+ "M6 10A2 2 0 1 0 6 14A2 2 0 1 0 6 10",
123
+ "M12 10A2 2 0 1 0 12 14A2 2 0 1 0 12 10",
124
+ "M18 10A2 2 0 1 0 18 14A2 2 0 1 0 18 10"
125
+ ]
126
+ },
127
+ copy: {
128
+ kind: "stroke",
129
+ paths: ["M9 9H20V20H9V9Z", "M15 5H4V16H5"]
130
+ },
131
+ paste: {
132
+ kind: "stroke",
133
+ paths: ["M8 4H16V7H8V4Z", "M6 6H5V20H19V6H18"]
134
+ },
135
+ edit: {
136
+ kind: "stroke",
137
+ paths: ["M4 20H8L19 9L15 5L4 16V20Z", "M14 6L18 10"]
138
+ },
139
+ delete: {
140
+ kind: "stroke",
141
+ paths: [
142
+ "M4 7H20",
143
+ "M6 7V20H18V7",
144
+ "M10 4H14",
145
+ "M10 11V16",
146
+ "M14 11V16"
147
+ ]
148
+ },
149
+ person: {
150
+ kind: "fill",
151
+ paths: ["M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.314 0-10 1.343-10 4v2h20v-2c0-2.657-6.686-4-10-4z"]
152
+ },
153
+ "default-toast": {
154
+ kind: "stroke",
155
+ paths: ["M4 5H20V16H13L8 20V16H4V5Z"]
156
+ }
157
+ }, F = [
158
+ "role",
159
+ "aria-label",
160
+ "aria-hidden"
161
+ ], I = [
162
+ "viewBox",
163
+ "fill",
164
+ "stroke",
165
+ "stroke-width",
166
+ "stroke-linecap",
167
+ "stroke-linejoin"
168
+ ], ee = ["d"], L = /* @__PURE__ */ c({
169
+ name: "AtlIcon",
170
+ __name: "atl-icon",
171
+ props: {
172
+ name: {},
173
+ size: { default: "md" },
174
+ label: { default: void 0 }
175
+ },
176
+ setup(n) {
177
+ let r = n, a = t(() => ["atl-icon", `size-${r.size}`]), o = t(() => P[r.name]), s = t(() => o.value.kind === "stroke");
178
+ return (t, r) => (g(), i("span", {
179
+ class: d(a.value),
180
+ role: n.label ? "img" : void 0,
181
+ "aria-label": n.label || void 0,
182
+ "aria-hidden": n.label ? void 0 : "true"
183
+ }, [(g(), i("svg", {
184
+ viewBox: w(N),
185
+ fill: s.value ? "none" : "currentColor",
186
+ stroke: s.value ? "currentColor" : void 0,
187
+ "stroke-width": s.value ? w(2) : void 0,
188
+ "stroke-linecap": s.value ? "round" : void 0,
189
+ "stroke-linejoin": s.value ? "round" : void 0,
190
+ "aria-hidden": "true",
191
+ focusable: "false"
192
+ }, [(g(!0), i(e, null, y(o.value.paths, (e) => (g(), i("path", {
193
+ key: e,
194
+ d: e
195
+ }, null, 8, ee))), 128))], 8, I))], 10, F));
196
+ }
197
+ }), te = ["aria-expanded", "disabled"], ne = /* @__PURE__ */ c({
39
198
  name: "AtlAccordionItem",
40
199
  __name: "atl-accordion-item",
41
200
  props: {
@@ -51,73 +210,64 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
51
210
  },
52
211
  emits: ["update:expanded"],
53
212
  setup(e, { emit: r }) {
54
- let o = e, s = t(() => `h${o.headingLevel}`), c = r, u = T(), f = `atl-accordion-trigger-${u}`, h = `atl-accordion-panel-${u}`, _ = l(j, null), y = v(null), S = t(() => _ ? _.openItems.value.has(u) : o.expanded ?? !1);
55
- function C() {
56
- o.disabled || (_ ? _.toggleItem(u) : c("update:expanded", !S.value));
213
+ let o = e, c = t(() => `h${o.headingLevel}`), u = r, f = T(), h = `atl-accordion-trigger-${f}`, _ = `atl-accordion-panel-${f}`, y = l(j, null), S = v(null), C = t(() => y ? y.openItems.value.has(f) : o.expanded ?? !1);
214
+ function w() {
215
+ o.disabled || (y ? y.toggleItem(f) : u("update:expanded", !C.value));
57
216
  }
58
- function w(e) {
59
- if (!_) return;
217
+ function E(e) {
218
+ if (!y) return;
60
219
  let t = Array.from(document.querySelectorAll(".atl-accordion-item:not(.is-disabled) .accordion-trigger")), n = t.indexOf(e.currentTarget);
61
220
  e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t[t.length - 1]?.focus());
62
221
  }
63
222
  m(() => {
64
- _ && y.value && _.registerItem(u, y.value), !_ && o.expanded;
223
+ y && S.value && y.registerItem(f, S.value), !y && o.expanded;
65
224
  }), O(() => o.expanded, (e) => {
66
- if (!_ || e === void 0) return;
67
- let t = _.openItems.value.has(u);
68
- (e && !t || !e && t) && _.toggleItem(u);
225
+ if (!y || e === void 0) return;
226
+ let t = y.openItems.value.has(f);
227
+ (e && !t || !e && t) && y.toggleItem(f);
69
228
  }, { immediate: !0 }), p(() => {
70
- _ && _.unregisterItem(u);
229
+ y && y.unregisterItem(f);
71
230
  });
72
- let E = t(() => [
231
+ let D = t(() => [
73
232
  "atl-accordion-item",
74
- S.value && "is-expanded",
233
+ C.value && "is-expanded",
75
234
  o.disabled && "is-disabled"
76
- ]), D = t(() => ["chevron", S.value && "is-expanded"]);
77
- return (t, r) => (g(), i("div", { class: d(E.value) }, [(g(), n(x(s.value), { class: "accordion-heading" }, {
235
+ ]), A = t(() => ["chevron", C.value && "is-expanded"]);
236
+ return (t, r) => (g(), i("div", { class: d(D.value) }, [(g(), n(x(c.value), { class: "accordion-heading" }, {
78
237
  default: k(() => [a("button", {
79
- id: f,
238
+ id: h,
80
239
  ref_key: "triggerRef",
81
- ref: y,
240
+ ref: S,
82
241
  class: "accordion-trigger",
83
242
  type: "button",
84
- "aria-expanded": S.value,
85
- "aria-controls": h,
243
+ "aria-expanded": C.value,
244
+ "aria-controls": _,
86
245
  disabled: e.disabled,
87
- onClick: C,
88
- onKeydown: w
89
- }, [b(t.$slots, "header"), (g(), i("svg", {
90
- class: d(D.value),
91
- width: "16",
92
- height: "16",
93
- viewBox: "0 0 16 16",
94
- fill: "none",
95
- "aria-hidden": "true"
96
- }, [...r[0] ||= [a("path", {
97
- d: "M4 6L8 10L12 6",
98
- stroke: "currentColor",
99
- "stroke-width": "1.5",
100
- "stroke-linecap": "round",
101
- "stroke-linejoin": "round"
102
- }, null, -1)]], 2))], 40, N)]),
246
+ onClick: w,
247
+ onKeydown: E
248
+ }, [b(t.$slots, "header"), s(L, {
249
+ name: "chevron-down",
250
+ size: "sm",
251
+ class: d(A.value)
252
+ }, null, 8, ["class"])], 40, te)]),
103
253
  _: 3
104
- })), a("div", { class: d(["accordion-panel-wrapper", S.value && "is-expanded"]) }, [a("div", {
105
- id: h,
254
+ })), a("div", { class: d(["accordion-panel-wrapper", C.value && "is-expanded"]) }, [a("div", {
255
+ id: _,
106
256
  role: "region",
107
- "aria-labelledby": f,
257
+ "aria-labelledby": h,
108
258
  class: "accordion-panel"
109
259
  }, [b(t.$slots, "default")])], 2)], 2));
110
260
  }
111
- }), F = { class: "accordion-header-content" }, ee = /* @__PURE__ */ c({
261
+ }), re = { class: "accordion-header-content" }, ie = /* @__PURE__ */ c({
112
262
  name: "AtlAccordionHeader",
113
263
  __name: "atl-accordion-header",
114
264
  setup(e) {
115
- return (e, t) => (g(), i("span", F, [b(e.$slots, "default")]));
265
+ return (e, t) => (g(), i("span", re, [b(e.$slots, "default")]));
116
266
  }
117
- }), te = ["aria-live"], ne = { class: "content" }, re = {
267
+ }), ae = ["aria-live"], oe = { class: "content" }, se = {
118
268
  class: "variant-icon",
119
269
  "aria-hidden": "true"
120
- }, ie = /* @__PURE__ */ c({
270
+ }, ce = /* @__PURE__ */ c({
121
271
  name: "AtlAlert",
122
272
  __name: "atl-alert",
123
273
  props: {
@@ -134,51 +284,26 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
134
284
  success: "✓",
135
285
  warning: "⚠",
136
286
  danger: "✕"
137
- }, s = e, c = n, l = t(() => ["atl-alert", `variant-${s.variant}`]), u = t(() => s.variant === "danger" || s.variant === "warning" ? "assertive" : "polite"), f = t(() => o[s.variant]);
287
+ }, c = e, l = n, u = t(() => ["atl-alert", `variant-${c.variant}`]), f = t(() => c.variant === "danger" || c.variant === "warning" ? "assertive" : "polite"), p = t(() => o[c.variant]);
138
288
  return (t, n) => (g(), i("div", {
139
- class: d(l.value),
289
+ class: d(u.value),
140
290
  role: "alert",
141
- "aria-live": u.value
142
- }, [a("span", ne, [a("span", re, S(f.value), 1), b(t.$slots, "default")]), e.dismissible ? (g(), i("button", {
291
+ "aria-live": f.value
292
+ }, [a("span", oe, [a("span", se, S(p.value), 1), b(t.$slots, "default")]), e.dismissible ? (g(), i("button", {
143
293
  key: 0,
144
294
  class: "dismiss",
145
295
  type: "button",
146
296
  "aria-label": "Dismiss",
147
- onClick: n[0] ||= (e) => c("dismissed")
148
- }, [...n[1] ||= [a("svg", {
149
- xmlns: "http://www.w3.org/2000/svg",
150
- width: "16",
151
- height: "16",
152
- viewBox: "0 0 24 24",
153
- fill: "none",
154
- stroke: "currentColor",
155
- "stroke-width": "2",
156
- "stroke-linecap": "round",
157
- "stroke-linejoin": "round",
158
- "aria-hidden": "true"
159
- }, [a("line", {
160
- x1: "18",
161
- y1: "6",
162
- x2: "6",
163
- y2: "18"
164
- }), a("line", {
165
- x1: "6",
166
- y1: "6",
167
- x2: "18",
168
- y2: "18"
169
- })], -1)]])) : r("", !0)], 10, te));
297
+ onClick: n[0] ||= (e) => l("dismissed")
298
+ }, [s(L, {
299
+ name: "close",
300
+ size: "sm"
301
+ })])) : r("", !0)], 10, ae));
170
302
  }
171
- }), ae = ["aria-label"], oe = ["src", "alt"], se = {
303
+ }), le = ["aria-label"], ue = ["src", "alt"], de = {
172
304
  key: 1,
173
305
  class: "initials"
174
- }, ce = {
175
- key: 2,
176
- class: "icon",
177
- xmlns: "http://www.w3.org/2000/svg",
178
- viewBox: "0 0 24 24",
179
- fill: "currentColor",
180
- "aria-hidden": "true"
181
- }, le = /* @__PURE__ */ c({
306
+ }, R = /* @__PURE__ */ c({
182
307
  name: "AtlAvatar",
183
308
  __name: "atl-avatar",
184
309
  props: {
@@ -190,14 +315,14 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
190
315
  status: { default: "" }
191
316
  },
192
317
  setup(e) {
193
- let n = e, o = v(!1);
318
+ let n = e, a = v(!1);
194
319
  O(() => n.src, () => {
195
- o.value = !1;
320
+ a.value = !1;
196
321
  });
197
- function s(e) {
322
+ function o(e) {
198
323
  return e.split(" ").filter(Boolean).slice(0, 2).map((e) => e[0].toUpperCase()).join("");
199
324
  }
200
- let c = t(() => n.name ? s(n.name) : ""), l = t(() => n.alt || n.name || "Avatar"), u = t(() => [
325
+ let c = t(() => n.name ? o(n.name) : ""), l = t(() => n.alt || n.name || "Avatar"), u = t(() => [
201
326
  "atl-avatar",
202
327
  `size-${n.size}`,
203
328
  `shape-${n.shape}`
@@ -206,18 +331,26 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
206
331
  class: d(u.value),
207
332
  "aria-label": l.value,
208
333
  role: "img"
209
- }, [e.src && !o.value ? (g(), i("img", {
210
- key: 0,
211
- src: e.src,
212
- alt: e.alt || e.name,
213
- onError: n[0] ||= (e) => o.value = !0
214
- }, null, 40, oe)) : c.value ? (g(), i("span", se, S(c.value), 1)) : (g(), i("svg", ce, [...n[1] ||= [a("path", { d: "M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.314 0-10 1.343-10 4v2h20v-2c0-2.657-6.686-4-10-4z" }, null, -1)]])), e.status ? (g(), i("span", {
215
- key: 3,
216
- class: d(`status-dot status-${e.status}`),
217
- "aria-hidden": "true"
218
- }, null, 2)) : r("", !0)], 10, ae));
334
+ }, [
335
+ e.src && !a.value ? (g(), i("img", {
336
+ key: 0,
337
+ src: e.src,
338
+ alt: e.alt || e.name,
339
+ onError: n[0] ||= (e) => a.value = !0
340
+ }, null, 40, ue)) : c.value ? (g(), i("span", de, S(c.value), 1)) : r("", !0),
341
+ s(L, {
342
+ name: "person",
343
+ size: "sm",
344
+ class: "icon"
345
+ }),
346
+ e.status ? (g(), i("span", {
347
+ key: 2,
348
+ class: d(`status-dot status-${e.status}`),
349
+ "aria-hidden": "true"
350
+ }, null, 2)) : r("", !0)
351
+ ], 10, le));
219
352
  }
220
- }), ue = ["aria-label"], de = /* @__PURE__ */ c({
353
+ }), z = ["aria-label"], B = /* @__PURE__ */ c({
221
354
  name: "AtlAvatarGroup",
222
355
  __name: "atl-avatar-group",
223
356
  props: {
@@ -230,13 +363,13 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
230
363
  key: 0,
231
364
  class: d(`overflow-badge size-${a.size}`),
232
365
  "aria-label": `+${u.value} more`
233
- }, " +" + S(u.value), 11, ue)) : r("", !0)], 2));
366
+ }, " +" + S(u.value), 11, z)) : r("", !0)], 2));
234
367
  }
235
- }), I = {
368
+ }), V = {
236
369
  key: 0,
237
370
  class: "variant-icon",
238
371
  "aria-hidden": "true"
239
- }, L = /* @__PURE__ */ c({
372
+ }, H = /* @__PURE__ */ c({
240
373
  name: "AtlBadge",
241
374
  __name: "atl-badge",
242
375
  props: {
@@ -258,52 +391,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
258
391
  return (e, t) => (g(), i("span", {
259
392
  class: d(o.value),
260
393
  role: "status"
261
- }, [s.value ? (g(), i("span", I, S(s.value), 1)) : r("", !0), b(e.$slots, "default")], 2));
394
+ }, [s.value ? (g(), i("span", V, S(s.value), 1)) : r("", !0), b(e.$slots, "default")], 2));
262
395
  }
263
- }), R = [
264
- "role",
265
- "aria-label",
266
- "aria-hidden"
267
- ], z = /* @__PURE__ */ c({
268
- name: "AtlIcon",
269
- __name: "atl-icon",
270
- props: {
271
- name: {},
272
- size: { default: "md" },
273
- label: { default: void 0 }
274
- },
275
- setup(e) {
276
- let n = e, r = {
277
- success: "✓",
278
- warning: "⚠",
279
- danger: "✕",
280
- info: "ℹ",
281
- error: "!",
282
- "chevron-up": "▲",
283
- "chevron-down": "▼",
284
- "chevron-left": "‹",
285
- "chevron-right": "›",
286
- "sort-asc": "↑",
287
- "sort-desc": "↓",
288
- "arrow-right": "→",
289
- "arrow-left": "←",
290
- copy: "⎘",
291
- paste: "⎗",
292
- add: "⊕",
293
- edit: "✏",
294
- delete: "🗑",
295
- close: "×",
296
- more: "…",
297
- "default-toast": "💬"
298
- }, a = t(() => ["atl-icon", `size-${n.size}`]), o = t(() => r[n.name]);
299
- return (t, n) => (g(), i("span", {
300
- class: d(a.value),
301
- role: e.label ? "img" : void 0,
302
- "aria-label": e.label || void 0,
303
- "aria-hidden": e.label ? void 0 : "true"
304
- }, S(o.value), 11, R));
305
- }
306
- }), B = { class: "breadcrumbs-list" }, V = /* @__PURE__ */ c({
396
+ }), fe = { class: "breadcrumbs-list" }, pe = /* @__PURE__ */ c({
307
397
  name: "AtlBreadcrumbs",
308
398
  __name: "atl-breadcrumbs",
309
399
  props: { separator: { default: "/" } },
@@ -313,9 +403,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
313
403
  class: "atl-breadcrumbs",
314
404
  "aria-label": "Breadcrumb",
315
405
  style: f({ "--atl-separator": `'${t.separator}'` })
316
- }, [a("ol", B, [b(e.$slots, "default")])], 4));
406
+ }, [a("ol", fe, [b(e.$slots, "default")])], 4));
317
407
  }
318
- }), H = ["href"], fe = ["aria-current"], pe = /* @__PURE__ */ c({
408
+ }), me = ["href"], he = ["aria-current"], ge = /* @__PURE__ */ c({
319
409
  name: "AtlBreadcrumbItem",
320
410
  __name: "atl-breadcrumb-item",
321
411
  props: {
@@ -331,21 +421,21 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
331
421
  key: 0,
332
422
  href: e.href,
333
423
  class: "breadcrumb-link"
334
- }, [b(t.$slots, "default")], 8, H)) : (g(), i("span", {
424
+ }, [b(t.$slots, "default")], 8, me)) : (g(), i("span", {
335
425
  key: 1,
336
426
  class: "breadcrumb-current",
337
427
  "aria-current": e.current ? "page" : void 0
338
- }, [b(t.$slots, "default")], 8, fe))], 2));
428
+ }, [b(t.$slots, "default")], 8, he))], 2));
339
429
  }
340
- }), me = [
430
+ }), _e = [
341
431
  "type",
342
432
  "disabled",
343
433
  "aria-disabled"
344
- ], he = {
434
+ ], ve = {
345
435
  key: 0,
346
436
  class: "spinner",
347
437
  "aria-hidden": "true"
348
- }, ge = /* @__PURE__ */ c({
438
+ }, ye = /* @__PURE__ */ c({
349
439
  name: "AtlButton",
350
440
  __name: "atl-button",
351
441
  props: {
@@ -376,9 +466,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
376
466
  type: e.type,
377
467
  disabled: a.value,
378
468
  "aria-disabled": a.value || void 0
379
- }, [e.loading ? (g(), i("span", he)) : r("", !0), b(t.$slots, "default")], 10, me));
469
+ }, [e.loading ? (g(), i("span", ve)) : r("", !0), b(t.$slots, "default")], 10, _e));
380
470
  }
381
- }), _e = ["role"], ve = /* @__PURE__ */ c({
471
+ }), be = ["role"], xe = /* @__PURE__ */ c({
382
472
  name: "AtlCard",
383
473
  __name: "atl-card",
384
474
  props: {
@@ -395,35 +485,34 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
395
485
  return (t, n) => (g(), i("div", {
396
486
  class: d(r.value),
397
487
  role: e.role
398
- }, [b(t.$slots, "default")], 10, _e));
488
+ }, [b(t.$slots, "default")], 10, be));
399
489
  }
400
- }), ye = { class: "atl-card-header" }, be = /* @__PURE__ */ c({
490
+ }), Se = { class: "atl-card-header" }, Ce = /* @__PURE__ */ c({
401
491
  name: "AtlCardHeader",
402
492
  __name: "atl-card-header",
403
493
  setup(e) {
404
- return (e, t) => (g(), i("div", ye, [b(e.$slots, "default")]));
494
+ return (e, t) => (g(), i("div", Se, [b(e.$slots, "default")]));
405
495
  }
406
- }), xe = { class: "atl-card-content" }, Se = /* @__PURE__ */ c({
496
+ }), we = { class: "atl-card-content" }, Te = /* @__PURE__ */ c({
407
497
  name: "AtlCardContent",
408
498
  __name: "atl-card-content",
409
499
  setup(e) {
410
- return (e, t) => (g(), i("div", xe, [b(e.$slots, "default")]));
500
+ return (e, t) => (g(), i("div", we, [b(e.$slots, "default")]));
411
501
  }
412
- }), Ce = { class: "atl-card-footer" }, we = /* @__PURE__ */ c({
502
+ }), Ee = { class: "atl-card-footer" }, De = /* @__PURE__ */ c({
413
503
  name: "AtlCardFooter",
414
504
  __name: "atl-card-footer",
415
505
  setup(e) {
416
- return (e, t) => (g(), i("div", Ce, [b(e.$slots, "default")]));
506
+ return (e, t) => (g(), i("div", Ee, [b(e.$slots, "default")]));
417
507
  }
418
- }), Te = ["for"], Ee = [
508
+ }), Oe = ["for"], ke = [
419
509
  "id",
420
510
  "checked",
421
511
  "disabled",
422
- "readonly",
423
512
  "required",
424
513
  "name",
425
514
  "aria-invalid"
426
- ], De = {
515
+ ], Ae = {
427
516
  key: 0,
428
517
  class: "errors",
429
518
  "aria-live": "polite"
@@ -448,10 +537,6 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
448
537
  type: Boolean,
449
538
  default: !1
450
539
  },
451
- readonly: {
452
- type: Boolean,
453
- default: !1
454
- },
455
540
  required: {
456
541
  type: Boolean,
457
542
  default: !1
@@ -484,17 +569,16 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
484
569
  type: "checkbox",
485
570
  checked: n.checked,
486
571
  disabled: n.disabled,
487
- readonly: n.readonly,
488
572
  required: n.required,
489
573
  name: n.name,
490
574
  "aria-invalid": n.invalid || void 0,
491
575
  onChange: f
492
- }, null, 40, Ee), b(t.$slots, "default")], 8, Te), n.errors.length ? (g(), i("ul", De, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
576
+ }, null, 40, ke), b(t.$slots, "default")], 8, Oe), n.errors.length ? (g(), i("ul", Ae, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
493
577
  key: t,
494
578
  class: "error"
495
579
  }, S(e), 1))), 128))])) : r("", !0)], 2));
496
580
  }
497
- }), Oe = ["aria-label", "aria-labelledby"], W = Symbol("AtlDialog"), ke = /* @__PURE__ */ c({
581
+ }), je = ["aria-label", "aria-labelledby"], W = Symbol("AtlDialog"), Me = /* @__PURE__ */ c({
498
582
  name: "AtlDialog",
499
583
  __name: "atl-dialog",
500
584
  props: {
@@ -547,9 +631,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
547
631
  }, [a("div", {
548
632
  class: d(h.value),
549
633
  onClick: n[0] ||= A(() => {}, ["stop"])
550
- }, [b(t.$slots, "default")], 2)], 40, Oe));
634
+ }, [b(t.$slots, "default")], 2)], 40, je));
551
635
  }
552
- }), Ae = ["id"], je = { class: "header-content" }, Me = /* @__PURE__ */ c({
636
+ }), Ne = ["id"], Pe = { class: "header-content" }, Fe = /* @__PURE__ */ c({
553
637
  name: "AtlDialogHeader",
554
638
  __name: "atl-dialog-header",
555
639
  setup(e) {
@@ -560,47 +644,29 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
560
644
  return (e, n) => (g(), i("div", {
561
645
  id: w(t).headerId,
562
646
  class: "atl-dialog-header"
563
- }, [a("span", je, [b(e.$slots, "default")]), a("button", {
647
+ }, [a("span", Pe, [b(e.$slots, "default")]), a("button", {
564
648
  class: "close-btn",
565
649
  type: "button",
566
650
  "aria-label": "Close dialog",
567
651
  onClick: n[0] ||= (e) => w(t).close()
568
- }, [...n[1] ||= [a("svg", {
569
- xmlns: "http://www.w3.org/2000/svg",
570
- width: "14",
571
- height: "14",
572
- viewBox: "0 0 24 24",
573
- fill: "none",
574
- stroke: "currentColor",
575
- "stroke-width": "2.5",
576
- "stroke-linecap": "round",
577
- "stroke-linejoin": "round",
578
- "aria-hidden": "true"
579
- }, [a("line", {
580
- x1: "18",
581
- y1: "6",
582
- x2: "6",
583
- y2: "18"
584
- }), a("line", {
585
- x1: "6",
586
- y1: "6",
587
- x2: "18",
588
- y2: "18"
589
- })], -1)]])], 8, Ae));
652
+ }, [s(L, {
653
+ name: "close",
654
+ size: "sm"
655
+ })])], 8, Ne));
590
656
  }
591
- }), Ne = { class: "atl-dialog-content" }, Pe = /* @__PURE__ */ c({
657
+ }), Ie = { class: "atl-dialog-content" }, Le = /* @__PURE__ */ c({
592
658
  name: "AtlDialogContent",
593
659
  __name: "atl-dialog-content",
594
660
  setup(e) {
595
- return (e, t) => (g(), i("div", Ne, [b(e.$slots, "default")]));
661
+ return (e, t) => (g(), i("div", Ie, [b(e.$slots, "default")]));
596
662
  }
597
- }), Fe = { class: "atl-dialog-footer" }, Ie = /* @__PURE__ */ c({
663
+ }), Re = { class: "atl-dialog-footer" }, ze = /* @__PURE__ */ c({
598
664
  name: "AtlDialogFooter",
599
665
  __name: "atl-dialog-footer",
600
666
  setup(e) {
601
- return (e, t) => (g(), i("div", Fe, [b(e.$slots, "default")]));
667
+ return (e, t) => (g(), i("div", Re, [b(e.$slots, "default")]));
602
668
  }
603
- }), Le = ["aria-labelledby"], G = Symbol("AtlDrawer"), Re = /* @__PURE__ */ c({
669
+ }), Be = ["aria-labelledby"], G = Symbol("AtlDrawer"), Ve = /* @__PURE__ */ c({
604
670
  name: "AtlDrawer",
605
671
  __name: "atl-drawer",
606
672
  props: {
@@ -657,9 +723,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
657
723
  }, [a("div", {
658
724
  class: "panel",
659
725
  onClick: t[0] ||= A(() => {}, ["stop"])
660
- }, [b(e.$slots, "default")])], 42, Le));
726
+ }, [b(e.$slots, "default")])], 42, Be));
661
727
  }
662
- }), ze = ["id"], Be = { class: "header-content" }, Ve = /* @__PURE__ */ c({
728
+ }), He = ["id"], Ue = { class: "header-content" }, We = /* @__PURE__ */ c({
663
729
  name: "AtlDrawerHeader",
664
730
  __name: "atl-drawer-header",
665
731
  setup(e) {
@@ -670,47 +736,29 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
670
736
  return (e, n) => (g(), i("div", {
671
737
  id: w(t).headerId,
672
738
  class: "atl-drawer-header"
673
- }, [a("span", Be, [b(e.$slots, "default")]), a("button", {
739
+ }, [a("span", Ue, [b(e.$slots, "default")]), a("button", {
674
740
  class: "close-btn",
675
741
  type: "button",
676
742
  "aria-label": "Close drawer",
677
743
  onClick: n[0] ||= (e) => w(t).close()
678
- }, [...n[1] ||= [a("svg", {
679
- xmlns: "http://www.w3.org/2000/svg",
680
- width: "14",
681
- height: "14",
682
- viewBox: "0 0 24 24",
683
- fill: "none",
684
- stroke: "currentColor",
685
- "stroke-width": "2.5",
686
- "stroke-linecap": "round",
687
- "stroke-linejoin": "round",
688
- "aria-hidden": "true"
689
- }, [a("line", {
690
- x1: "18",
691
- y1: "6",
692
- x2: "6",
693
- y2: "18"
694
- }), a("line", {
695
- x1: "6",
696
- y1: "6",
697
- x2: "18",
698
- y2: "18"
699
- })], -1)]])], 8, ze));
744
+ }, [s(L, {
745
+ name: "close",
746
+ size: "sm"
747
+ })])], 8, He));
700
748
  }
701
- }), He = { class: "atl-drawer-content" }, Ue = /* @__PURE__ */ c({
749
+ }), Ge = { class: "atl-drawer-content" }, Ke = /* @__PURE__ */ c({
702
750
  name: "AtlDrawerContent",
703
751
  __name: "atl-drawer-content",
704
752
  setup(e) {
705
- return (e, t) => (g(), i("div", He, [b(e.$slots, "default")]));
753
+ return (e, t) => (g(), i("div", Ge, [b(e.$slots, "default")]));
706
754
  }
707
- }), We = { class: "atl-drawer-footer" }, Ge = /* @__PURE__ */ c({
755
+ }), qe = { class: "atl-drawer-footer" }, Je = /* @__PURE__ */ c({
708
756
  name: "AtlDrawerFooter",
709
757
  __name: "atl-drawer-footer",
710
758
  setup(e) {
711
- return (e, t) => (g(), i("div", We, [b(e.$slots, "default")]));
759
+ return (e, t) => (g(), i("div", qe, [b(e.$slots, "default")]));
712
760
  }
713
- }), Ke = ["for"], qe = { class: "input-field" }, Je = [
761
+ }), Ye = ["for"], Xe = { class: "input-field" }, Ze = [
714
762
  "id",
715
763
  "type",
716
764
  "value",
@@ -721,11 +769,11 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
721
769
  "name",
722
770
  "aria-invalid",
723
771
  "aria-required"
724
- ], Ye = {
772
+ ], Qe = {
725
773
  key: 1,
726
774
  class: "errors",
727
775
  "aria-live": "polite"
728
- }, Xe = /* @__PURE__ */ c({
776
+ }, $e = /* @__PURE__ */ c({
729
777
  name: "AtlInput",
730
778
  __name: "atl-input",
731
779
  props: {
@@ -754,40 +802,45 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
754
802
  id: { default: "" }
755
803
  },
756
804
  emits: ["update:value"],
757
- setup(n, { emit: o }) {
758
- let s = n, c = o, l = t(() => s.id || (s.label ? `input-${Math.random().toString(36).slice(2)}` : void 0));
759
- function u(e) {
760
- c("update:value", e.target.value);
805
+ setup(o, { emit: s }) {
806
+ let c = o, l = s, u = t(() => c.id || (c.label ? `input-${Math.random().toString(36).slice(2)}` : void 0));
807
+ function f(e) {
808
+ l("update:value", e.target.value);
761
809
  }
762
- return (t, o) => (g(), i("div", { class: d(["atl-input", {
763
- "is-invalid": n.invalid,
764
- "is-disabled": n.disabled
810
+ return (t, s) => (g(), i("div", { class: d(["atl-input", {
811
+ "is-invalid": o.invalid,
812
+ "is-disabled": o.disabled
765
813
  }]) }, [
766
- n.label ? (g(), i("label", {
814
+ o.label ? (g(), i("label", {
767
815
  key: 0,
768
- for: l.value,
816
+ for: u.value,
769
817
  class: "input-label"
770
- }, S(n.label), 9, Ke)) : r("", !0),
771
- a("div", qe, [a("input", {
772
- id: l.value,
773
- type: n.type,
774
- value: n.value,
775
- placeholder: n.placeholder,
776
- disabled: n.disabled,
777
- readonly: n.readonly,
778
- required: n.required,
779
- name: n.name,
780
- "aria-invalid": n.invalid || void 0,
781
- "aria-required": n.required || void 0,
782
- onInput: u
783
- }, null, 40, Je)]),
784
- n.errors.length ? (g(), i("ul", Ye, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
818
+ }, S(o.label), 9, Ye)) : r("", !0),
819
+ a("div", Xe, [a("input", {
820
+ id: u.value,
821
+ type: o.type,
822
+ value: o.value,
823
+ placeholder: o.placeholder,
824
+ disabled: o.disabled,
825
+ readonly: o.readonly,
826
+ required: o.required,
827
+ name: o.name,
828
+ "aria-invalid": o.invalid || void 0,
829
+ "aria-required": o.required || void 0,
830
+ onInput: f
831
+ }, null, 40, Ze), o.invalid ? (g(), n(L, {
832
+ key: 0,
833
+ name: "danger",
834
+ size: "sm",
835
+ class: "invalid-icon"
836
+ })) : r("", !0)]),
837
+ o.errors.length ? (g(), i("ul", Qe, [(g(!0), i(e, null, y(o.errors, (e, t) => (g(), i("li", {
785
838
  key: t,
786
839
  class: "error"
787
840
  }, S(e), 1))), 128))])) : r("", !0)
788
841
  ], 2));
789
842
  }
790
- }), Ze = { class: "atl-menu-trigger-wrapper" }, K = Symbol("AtlMenuTrigger"), Qe = /* @__PURE__ */ c({
843
+ }), et = { class: "atl-menu-trigger-wrapper" }, K = Symbol("AtlMenuTrigger"), tt = /* @__PURE__ */ c({
791
844
  name: "AtlMenuTrigger",
792
845
  __name: "atl-menu-trigger",
793
846
  setup(e) {
@@ -818,7 +871,7 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
818
871
  document.addEventListener("mousedown", l), document.addEventListener("keydown", u);
819
872
  }), p(() => {
820
873
  document.removeEventListener("mousedown", l), document.removeEventListener("keydown", u);
821
- }), (e, c) => (g(), i("div", Ze, [a("span", {
874
+ }), (e, c) => (g(), i("div", et, [a("span", {
822
875
  ref_key: "triggerRef",
823
876
  ref: n,
824
877
  onClick: s
@@ -829,7 +882,7 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
829
882
  class: "atl-menu-panel"
830
883
  }, [b(e.$slots, "menu")], 512)) : r("", !0)]));
831
884
  }
832
- }), $e = /* @__PURE__ */ c({
885
+ }), nt = /* @__PURE__ */ c({
833
886
  name: "AtlMenu",
834
887
  __name: "atl-menu",
835
888
  props: { variant: { default: "default" } },
@@ -840,7 +893,7 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
840
893
  role: "menu"
841
894
  }, [b(e.$slots, "default")], 2));
842
895
  }
843
- }), et = ["disabled"], tt = /* @__PURE__ */ c({
896
+ }), rt = ["disabled"], it = /* @__PURE__ */ c({
844
897
  name: "AtlMenuItem",
845
898
  __name: "atl-menu-item",
846
899
  props: { disabled: {
@@ -860,25 +913,25 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
860
913
  type: "button",
861
914
  disabled: e.disabled,
862
915
  onClick: s
863
- }, [b(t.$slots, "default")], 10, et));
916
+ }, [b(t.$slots, "default")], 10, rt));
864
917
  }
865
- }), nt = {
918
+ }), at = {
866
919
  class: "atl-menu-separator",
867
920
  role: "separator"
868
- }, rt = /* @__PURE__ */ c({
921
+ }, ot = /* @__PURE__ */ c({
869
922
  name: "AtlMenuSeparator",
870
923
  __name: "atl-menu-separator",
871
924
  setup(e) {
872
- return (e, t) => (g(), i("hr", nt));
925
+ return (e, t) => (g(), i("hr", at));
873
926
  }
874
- }), it = {
927
+ }), st = {
875
928
  class: "atl-pagination",
876
929
  "aria-label": "Pagination"
877
- }, at = { class: "page-list" }, ot = { key: 0 }, st = ["disabled"], ct = ["disabled"], lt = { key: 0 }, ut = { key: 1 }, dt = [
930
+ }, ct = { class: "page-list" }, lt = { key: 0 }, ut = ["disabled"], dt = ["disabled"], ft = { key: 0 }, pt = { key: 1 }, mt = [
878
931
  "aria-label",
879
932
  "aria-current",
880
933
  "onClick"
881
- ], ft = ["disabled"], pt = { key: 1 }, mt = ["disabled"], ht = /* @__PURE__ */ c({
934
+ ], ht = ["disabled"], gt = { key: 1 }, _t = ["disabled"], vt = /* @__PURE__ */ c({
882
935
  name: "AtlPagination",
883
936
  __name: "atl-pagination",
884
937
  props: {
@@ -925,47 +978,47 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
925
978
  let t = Math.min(Math.max(e, 1), s.pageCount);
926
979
  t !== s.page && c("pageChange", t);
927
980
  }
928
- return (t, o) => (g(), i("nav", it, [a("ul", at, [
929
- n.showFirstLast ? (g(), i("li", ot, [a("button", {
981
+ return (t, o) => (g(), i("nav", st, [a("ul", ct, [
982
+ n.showFirstLast ? (g(), i("li", lt, [a("button", {
930
983
  class: "page-btn nav-btn",
931
984
  disabled: n.page <= 1,
932
985
  "aria-label": "First page",
933
986
  onClick: o[0] ||= (e) => f(1)
934
- }, " « ", 8, st)])) : r("", !0),
987
+ }, " « ", 8, ut)])) : r("", !0),
935
988
  a("li", null, [a("button", {
936
989
  class: "page-btn nav-btn",
937
990
  disabled: n.page <= 1,
938
991
  "aria-label": "Previous page",
939
992
  onClick: o[1] ||= (e) => f(n.page - 1)
940
- }, " ‹ ", 8, ct)]),
941
- (g(!0), i(e, null, y(u.value, (t) => (g(), i(e, { key: t.type === "page" ? t.page : t.key }, [t.type === "ellipsis" ? (g(), i("li", lt, [...o[4] ||= [a("span", {
993
+ }, " ‹ ", 8, dt)]),
994
+ (g(!0), i(e, null, y(u.value, (t) => (g(), i(e, { key: t.type === "page" ? t.page : t.key }, [t.type === "ellipsis" ? (g(), i("li", ft, [...o[4] ||= [a("span", {
942
995
  class: "ellipsis",
943
996
  "aria-hidden": "true"
944
- }, "…", -1)]])) : (g(), i("li", ut, [a("button", {
997
+ }, "…", -1)]])) : (g(), i("li", pt, [a("button", {
945
998
  class: d(["page-btn", { active: t.page === n.page }]),
946
999
  "aria-label": `Page ${t.page}`,
947
1000
  "aria-current": t.page === n.page ? "page" : void 0,
948
1001
  onClick: (e) => f(t.page)
949
- }, S(t.page), 11, dt)]))], 64))), 128)),
1002
+ }, S(t.page), 11, mt)]))], 64))), 128)),
950
1003
  a("li", null, [a("button", {
951
1004
  class: "page-btn nav-btn",
952
1005
  disabled: n.page >= n.pageCount,
953
1006
  "aria-label": "Next page",
954
1007
  onClick: o[2] ||= (e) => f(n.page + 1)
955
- }, " › ", 8, ft)]),
956
- n.showFirstLast ? (g(), i("li", pt, [a("button", {
1008
+ }, " › ", 8, ht)]),
1009
+ n.showFirstLast ? (g(), i("li", gt, [a("button", {
957
1010
  class: "page-btn nav-btn",
958
1011
  disabled: n.page >= n.pageCount,
959
1012
  "aria-label": "Last page",
960
1013
  onClick: o[3] ||= (e) => f(n.pageCount)
961
- }, " » ", 8, mt)])) : r("", !0)
1014
+ }, " » ", 8, _t)])) : r("", !0)
962
1015
  ])]));
963
1016
  }
964
- }), gt = [
1017
+ }), yt = [
965
1018
  "aria-label",
966
1019
  "aria-valuenow",
967
1020
  "aria-valuemax"
968
- ], _t = { class: "track" }, vt = /* @__PURE__ */ c({
1021
+ ], bt = { class: "track" }, xt = /* @__PURE__ */ c({
969
1022
  name: "AtlProgress",
970
1023
  __name: "atl-progress",
971
1024
  props: {
@@ -993,12 +1046,12 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
993
1046
  "aria-valuemin": 0,
994
1047
  "aria-valuenow": e.indeterminate ? void 0 : r.value,
995
1048
  "aria-valuemax": e.indeterminate ? void 0 : e.max
996
- }, [a("div", _t, [a("div", {
1049
+ }, [a("div", bt, [a("div", {
997
1050
  class: "fill",
998
1051
  style: f({ width: o.value })
999
- }, null, 4)])], 10, gt));
1052
+ }, null, 4)])], 10, yt));
1000
1053
  }
1001
- }), yt = { class: "atl-combobox-wrapper" }, bt = [
1054
+ }), St = { class: "atl-combobox-wrapper" }, Ct = [
1002
1055
  "aria-expanded",
1003
1056
  "aria-activedescendant",
1004
1057
  "aria-invalid",
@@ -1008,31 +1061,26 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1008
1061
  "name",
1009
1062
  "placeholder",
1010
1063
  "value"
1011
- ], xt = [
1064
+ ], wt = {
1065
+ class: "atl-combobox-icon",
1066
+ "aria-hidden": "true"
1067
+ }, Tt = [
1012
1068
  "id",
1013
1069
  "aria-selected",
1014
1070
  "aria-disabled",
1015
1071
  "onMousedown",
1016
1072
  "onMouseenter"
1017
- ], St = {
1018
- key: 0,
1019
- class: "atl-combobox-check",
1020
- width: "14",
1021
- height: "14",
1022
- viewBox: "0 0 14 14",
1023
- fill: "none",
1024
- "aria-hidden": "true"
1025
- }, Ct = {
1073
+ ], Et = {
1026
1074
  key: 1,
1027
1075
  class: "atl-combobox-no-results",
1028
1076
  role: "option",
1029
1077
  "aria-disabled": "true"
1030
- }, wt = {
1078
+ }, Dt = {
1031
1079
  key: 1,
1032
1080
  class: "atl-combobox-errors",
1033
1081
  role: "alert",
1034
1082
  "aria-live": "polite"
1035
- }, Tt = /* @__PURE__ */ c({
1083
+ }, Ot = /* @__PURE__ */ c({
1036
1084
  name: "AtlCombobox",
1037
1085
  __name: "atl-combobox",
1038
1086
  props: {
@@ -1060,159 +1108,147 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1060
1108
  },
1061
1109
  emits: ["update:value"],
1062
1110
  setup(n, { emit: o }) {
1063
- let s = n, c = o, l = v(null), u = v(null), f = v(""), p = v(!1), m = v(-1), _ = Math.random().toString(36).slice(2), b = `atl-combobox-input-${_}`, x = `atl-combobox-panel-${_}`, C = t(() => s.options.find((e) => e.value === s.value)?.label ?? ""), w = t(() => {
1064
- let e = f.value.toLowerCase();
1065
- return e ? s.options.filter((t) => t.label.toLowerCase().includes(e)) : s.options;
1066
- }), T = t(() => m.value >= 0 ? `${x}-option-${m.value}` : void 0), E = t(() => [
1111
+ let c = n, l = o, u = v(null), f = v(null), p = v(""), m = v(!1), _ = v(-1), b = Math.random().toString(36).slice(2), x = `atl-combobox-input-${b}`, C = `atl-combobox-panel-${b}`, w = t(() => c.options.find((e) => e.value === c.value)?.label ?? ""), T = t(() => {
1112
+ let e = p.value.toLowerCase();
1113
+ return e ? c.options.filter((t) => t.label.toLowerCase().includes(e)) : c.options;
1114
+ }), E = t(() => _.value >= 0 ? `${C}-option-${_.value}` : void 0), D = t(() => [
1067
1115
  "atl-combobox",
1068
- p.value && "is-open",
1069
- s.disabled && "is-disabled",
1070
- s.invalid && "is-invalid"
1116
+ m.value && "is-open",
1117
+ c.disabled && "is-disabled",
1118
+ c.readonly && "is-readonly",
1119
+ c.invalid && "is-invalid"
1071
1120
  ]);
1072
- O(() => s.value, () => {
1073
- p.value || (f.value = C.value);
1121
+ O(() => c.value, () => {
1122
+ m.value || (p.value = w.value);
1074
1123
  }, { immediate: !0 });
1075
- function D() {
1076
- s.disabled || s.readonly || p.value || (p.value = !0, m.value = -1, document.addEventListener("click", A));
1077
- }
1078
1124
  function k() {
1079
- p.value && (p.value = !1, m.value = -1, document.removeEventListener("click", A));
1125
+ c.disabled || c.readonly || m.value || (m.value = !0, _.value = -1, document.addEventListener("click", j));
1080
1126
  }
1081
- function A(e) {
1082
- u.value?.contains(e.target) || (f.value = C.value, k());
1127
+ function A() {
1128
+ m.value && (m.value = !1, _.value = -1, document.removeEventListener("click", j));
1083
1129
  }
1084
- h(() => {
1085
- document.removeEventListener("click", A);
1086
- });
1087
1130
  function j(e) {
1088
- e.disabled || s.disabled || s.readonly || (c("update:value", e.value), f.value = e.label, k(), l.value?.focus());
1131
+ f.value?.contains(e.target) || (p.value = w.value, A());
1089
1132
  }
1133
+ h(() => {
1134
+ document.removeEventListener("click", j);
1135
+ });
1090
1136
  function M(e) {
1091
- let t = e.target.value;
1092
- f.value = t, m.value = -1, t === "" && c("update:value", ""), p.value || D();
1137
+ e.disabled || c.disabled || c.readonly || (l("update:value", e.value), p.value = e.label, A(), u.value?.focus());
1093
1138
  }
1094
- function N() {
1095
- D();
1139
+ function N(e) {
1140
+ let t = e.target.value;
1141
+ p.value = t, _.value = -1, t === "" && l("update:value", ""), m.value || k();
1096
1142
  }
1097
1143
  function P() {
1098
- f.value = C.value;
1144
+ k();
1145
+ }
1146
+ function F() {
1147
+ p.value = w.value;
1099
1148
  }
1100
- function F(e) {
1101
- let t = w.value;
1149
+ function I(e) {
1150
+ let t = T.value;
1102
1151
  switch (e.key) {
1103
1152
  case "ArrowDown": {
1104
- if (e.preventDefault(), !p.value) {
1105
- D();
1153
+ if (e.preventDefault(), !m.value) {
1154
+ k();
1106
1155
  return;
1107
1156
  }
1108
- let n = m.value + 1;
1109
- m.value = n >= t.length ? 0 : n;
1157
+ let n = _.value + 1;
1158
+ _.value = n >= t.length ? 0 : n;
1110
1159
  break;
1111
1160
  }
1112
1161
  case "ArrowUp": {
1113
- if (e.preventDefault(), !p.value) {
1114
- D();
1162
+ if (e.preventDefault(), !m.value) {
1163
+ k();
1115
1164
  return;
1116
1165
  }
1117
- let n = m.value - 1;
1118
- m.value = n < 0 ? t.length - 1 : n;
1166
+ let n = _.value - 1;
1167
+ _.value = n < 0 ? t.length - 1 : n;
1119
1168
  break;
1120
1169
  }
1121
1170
  case "Enter": {
1122
1171
  e.preventDefault();
1123
- let n = m.value;
1124
- p.value && n >= 0 && n < t.length && j(t[n]);
1172
+ let n = _.value;
1173
+ m.value && n >= 0 && n < t.length && M(t[n]);
1125
1174
  break;
1126
1175
  }
1127
1176
  case "Escape":
1128
- e.preventDefault(), f.value = C.value, k();
1177
+ e.preventDefault(), p.value = w.value, A();
1129
1178
  break;
1130
1179
  case "Tab":
1131
- k();
1180
+ A();
1132
1181
  break;
1133
1182
  }
1134
1183
  }
1135
1184
  return (t, o) => (g(), i("div", {
1136
1185
  ref_key: "containerRef",
1137
- ref: u,
1138
- class: d(E.value)
1186
+ ref: f,
1187
+ class: d(D.value)
1139
1188
  }, [
1140
- a("div", yt, [a("input", {
1189
+ a("div", St, [a("input", {
1141
1190
  ref_key: "inputRef",
1142
- ref: l,
1191
+ ref: u,
1143
1192
  class: "atl-combobox-input",
1144
1193
  type: "text",
1145
1194
  autocomplete: "off",
1146
1195
  role: "combobox",
1147
- id: b,
1148
- "aria-expanded": p.value,
1149
- "aria-controls": x,
1196
+ id: x,
1197
+ "aria-expanded": m.value,
1198
+ "aria-controls": C,
1150
1199
  "aria-autocomplete": "list",
1151
- "aria-activedescendant": T.value,
1200
+ "aria-activedescendant": E.value,
1152
1201
  "aria-invalid": n.invalid || void 0,
1153
1202
  disabled: n.disabled,
1154
1203
  readonly: n.readonly,
1155
1204
  required: n.required,
1156
1205
  name: n.name || void 0,
1157
1206
  placeholder: n.placeholder,
1158
- value: f.value,
1159
- onInput: M,
1160
- onFocus: N,
1161
- onBlur: P,
1162
- onKeydown: F
1163
- }, null, 40, bt), o[0] ||= a("span", {
1164
- class: "atl-combobox-icon",
1165
- "aria-hidden": "true"
1166
- }, [a("svg", {
1167
- width: "12",
1168
- height: "12",
1169
- viewBox: "0 0 12 12",
1170
- fill: "none"
1171
- }, [a("path", {
1172
- d: "M2 4l4 4 4-4",
1173
- stroke: "currentColor",
1174
- "stroke-width": "1.5",
1175
- "stroke-linecap": "round",
1176
- "stroke-linejoin": "round"
1177
- })])], -1)]),
1178
- p.value ? (g(), i("ul", {
1207
+ value: p.value,
1208
+ onInput: N,
1209
+ onFocus: P,
1210
+ onBlur: F,
1211
+ onKeydown: I
1212
+ }, null, 40, Ct), a("span", wt, [s(L, {
1213
+ name: "chevron-down",
1214
+ size: "sm"
1215
+ })])]),
1216
+ m.value ? (g(), i("ul", {
1179
1217
  key: 0,
1180
- id: x,
1218
+ id: C,
1181
1219
  class: "atl-combobox-panel",
1182
1220
  role: "listbox",
1183
- "aria-labelledby": b
1184
- }, [w.value.length > 0 ? (g(!0), i(e, { key: 0 }, y(w.value, (e, t) => (g(), i("li", {
1221
+ "aria-labelledby": x
1222
+ }, [T.value.length > 0 ? (g(!0), i(e, { key: 0 }, y(T.value, (e, t) => (g(), i("li", {
1185
1223
  key: e.value,
1186
- id: `${x}-option-${t}`,
1224
+ id: `${C}-option-${t}`,
1187
1225
  role: "option",
1188
1226
  class: d([
1189
1227
  "atl-combobox-option",
1190
- m.value === t && "is-active",
1228
+ _.value === t && "is-active",
1191
1229
  e.value === n.value && "is-selected",
1192
1230
  e.disabled && "is-disabled"
1193
1231
  ]),
1194
1232
  "aria-selected": e.value === n.value,
1195
1233
  "aria-disabled": e.disabled || void 0,
1196
- onMousedown: (t) => j(e),
1197
- onMouseenter: (e) => m.value = t
1198
- }, [a("span", null, S(e.label), 1), e.value === n.value ? (g(), i("svg", St, [...o[1] ||= [a("path", {
1199
- d: "M2 7l4 4 6-7",
1200
- stroke: "currentColor",
1201
- "stroke-width": "2",
1202
- "stroke-linecap": "round",
1203
- "stroke-linejoin": "round"
1204
- }, null, -1)]])) : r("", !0)], 42, xt))), 128)) : (g(), i("li", Ct, " No results found. "))])) : r("", !0),
1205
- n.invalid && n.errors.length > 0 ? (g(), i("div", wt, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("p", {
1234
+ onMousedown: (t) => M(e),
1235
+ onMouseenter: (e) => _.value = t
1236
+ }, [a("span", null, S(e.label), 1), s(L, {
1237
+ name: "check",
1238
+ size: "sm",
1239
+ class: "atl-combobox-check"
1240
+ })], 42, Tt))), 128)) : (g(), i("li", Et, " No results found. "))])) : r("", !0),
1241
+ n.invalid && n.errors.length > 0 ? (g(), i("div", Dt, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("p", {
1206
1242
  key: t,
1207
1243
  class: "atl-combobox-error-message"
1208
1244
  }, S(e), 1))), 128))])) : r("", !0)
1209
1245
  ], 2));
1210
1246
  }
1211
- }), Et = ["aria-invalid", "aria-required"], Dt = {
1247
+ }), kt = ["aria-invalid", "aria-required"], At = {
1212
1248
  key: 0,
1213
1249
  class: "errors",
1214
1250
  role: "alert"
1215
- }, q = Symbol("AtlRadioGroup"), Ot = /* @__PURE__ */ c({
1251
+ }, q = Symbol("AtlRadioGroup"), jt = /* @__PURE__ */ c({
1216
1252
  name: "AtlRadioGroup",
1217
1253
  __name: "atl-radio-group",
1218
1254
  props: {
@@ -1262,7 +1298,8 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1262
1298
  let c = t(() => [
1263
1299
  "atl-radio-group",
1264
1300
  o.invalid && "is-invalid",
1265
- o.disabled && "is-disabled"
1301
+ o.disabled && "is-disabled",
1302
+ o.readonly && "is-readonly"
1266
1303
  ]), l = v(null);
1267
1304
  function u(e) {
1268
1305
  if (o.disabled || o.readonly) return;
@@ -1282,20 +1319,20 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1282
1319
  "aria-invalid": n.invalid || void 0,
1283
1320
  "aria-required": n.required || void 0,
1284
1321
  onKeydown: u
1285
- }, [b(t.$slots, "default"), n.errors.length > 0 ? (g(), i("div", Dt, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("p", {
1322
+ }, [b(t.$slots, "default"), n.errors.length > 0 ? (g(), i("div", At, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("p", {
1286
1323
  key: t,
1287
1324
  class: "error-message"
1288
- }, S(e), 1))), 128))])) : r("", !0)], 42, Et));
1325
+ }, S(e), 1))), 128))])) : r("", !0)], 42, kt));
1289
1326
  }
1290
- }), kt = [
1327
+ }), Mt = [
1291
1328
  "name",
1292
1329
  "value",
1293
1330
  "checked",
1294
1331
  "disabled"
1295
- ], At = {
1332
+ ], Nt = {
1296
1333
  key: 0,
1297
1334
  class: "radio-text"
1298
- }, jt = /* @__PURE__ */ c({
1335
+ }, Pt = /* @__PURE__ */ c({
1299
1336
  name: "AtlRadio",
1300
1337
  __name: "atl-radio",
1301
1338
  props: {
@@ -1322,6 +1359,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1322
1359
  function f() {
1323
1360
  !s.value && !o.readonly && o.onSelect(n.radioValue);
1324
1361
  }
1362
+ function p(e) {
1363
+ o.readonly && e.preventDefault();
1364
+ }
1325
1365
  return (t, n) => (g(), i("label", { class: d(u.value) }, [
1326
1366
  a("input", {
1327
1367
  type: "radio",
@@ -1329,17 +1369,18 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1329
1369
  value: e.radioValue,
1330
1370
  checked: c.value,
1331
1371
  disabled: s.value,
1372
+ onClick: p,
1332
1373
  class: "radio-input",
1333
1374
  onChange: f
1334
- }, null, 40, kt),
1375
+ }, null, 40, Mt),
1335
1376
  n[0] ||= a("span", {
1336
1377
  class: "radio-indicator",
1337
1378
  "aria-hidden": "true"
1338
1379
  }, null, -1),
1339
- t.$slots.default ? (g(), i("span", At, [b(t.$slots, "default")])) : r("", !0)
1380
+ t.$slots.default ? (g(), i("span", Nt, [b(t.$slots, "default")])) : r("", !0)
1340
1381
  ], 2));
1341
1382
  }
1342
- }), Mt = ["for"], Nt = { class: "select-wrapper" }, Pt = [
1383
+ }), Ft = ["for"], It = { class: "select-wrapper" }, Lt = [
1343
1384
  "id",
1344
1385
  "name",
1345
1386
  "value",
@@ -1347,12 +1388,12 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1347
1388
  "required",
1348
1389
  "aria-invalid",
1349
1390
  "aria-describedby"
1350
- ], Ft = {
1391
+ ], Rt = {
1351
1392
  key: 0,
1352
1393
  value: "",
1353
1394
  disabled: "",
1354
1395
  hidden: ""
1355
- }, It = ["id"], Lt = /* @__PURE__ */ c({
1396
+ }, zt = ["id"], Bt = /* @__PURE__ */ c({
1356
1397
  name: "AtlSelect",
1357
1398
  __name: "atl-select",
1358
1399
  props: {
@@ -1367,10 +1408,6 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1367
1408
  type: Boolean,
1368
1409
  default: !1
1369
1410
  },
1370
- readonly: {
1371
- type: Boolean,
1372
- default: !1
1373
- },
1374
1411
  required: {
1375
1412
  type: Boolean,
1376
1413
  default: !1
@@ -1386,15 +1423,15 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1386
1423
  s.disabled && "is-disabled"
1387
1424
  ]);
1388
1425
  function p(e) {
1389
- s.readonly || s.disabled || c("update:value", e.target.value);
1426
+ s.disabled || c("update:value", e.target.value);
1390
1427
  }
1391
1428
  return (t, o) => (g(), i("div", { class: d(f.value) }, [
1392
1429
  n.label ? (g(), i("label", {
1393
1430
  key: 0,
1394
1431
  for: w(l),
1395
1432
  class: "select-label"
1396
- }, S(n.label), 9, Mt)) : r("", !0),
1397
- a("div", Nt, [a("select", {
1433
+ }, S(n.label), 9, Ft)) : r("", !0),
1434
+ a("div", It, [a("select", {
1398
1435
  id: w(l),
1399
1436
  name: n.name,
1400
1437
  value: n.value,
@@ -1404,7 +1441,7 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1404
1441
  "aria-describedby": n.errors.length > 0 ? w(u) : void 0,
1405
1442
  class: "select-native",
1406
1443
  onChange: p
1407
- }, [n.placeholder ? (g(), i("option", Ft, S(n.placeholder), 1)) : r("", !0), b(t.$slots, "default")], 40, Pt), o[0] ||= a("span", {
1444
+ }, [n.placeholder ? (g(), i("option", Rt, S(n.placeholder), 1)) : r("", !0), b(t.$slots, "default")], 40, Lt), o[0] ||= a("span", {
1408
1445
  class: "select-arrow",
1409
1446
  "aria-hidden": "true"
1410
1447
  }, "▾", -1)]),
@@ -1416,10 +1453,10 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1416
1453
  }, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("p", {
1417
1454
  key: t,
1418
1455
  class: "error-message"
1419
- }, S(e), 1))), 128))], 8, It)) : r("", !0)
1456
+ }, S(e), 1))), 128))], 8, zt)) : r("", !0)
1420
1457
  ], 2));
1421
1458
  }
1422
- }), Rt = ["value", "disabled"], zt = /* @__PURE__ */ c({
1459
+ }), Vt = ["value", "disabled"], Ht = /* @__PURE__ */ c({
1423
1460
  name: "AtlOption",
1424
1461
  __name: "atl-option",
1425
1462
  props: {
@@ -1433,9 +1470,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1433
1470
  return (t, n) => (g(), i("option", {
1434
1471
  value: e.optionValue,
1435
1472
  disabled: e.disabled
1436
- }, [b(t.$slots, "default")], 8, Rt));
1473
+ }, [b(t.$slots, "default")], 8, Vt));
1437
1474
  }
1438
- }), Bt = /* @__PURE__ */ c({
1475
+ }), Ut = /* @__PURE__ */ c({
1439
1476
  name: "AtlSkeleton",
1440
1477
  __name: "atl-skeleton",
1441
1478
  props: {
@@ -1472,10 +1509,10 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1472
1509
  "aria-hidden": "true"
1473
1510
  }, null, 6));
1474
1511
  }
1475
- }), Vt = {
1512
+ }), Wt = {
1476
1513
  class: "stepper-header",
1477
1514
  role: "tablist"
1478
- }, Ht = [
1515
+ }, Gt = [
1479
1516
  "id",
1480
1517
  "aria-label",
1481
1518
  "aria-selected",
@@ -1484,27 +1521,13 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1484
1521
  "tabindex",
1485
1522
  "disabled",
1486
1523
  "onClick"
1487
- ], Ut = {
1488
- key: 0,
1489
- width: "14",
1490
- height: "14",
1491
- viewBox: "0 0 14 14",
1492
- fill: "none",
1493
- "aria-hidden": "true"
1494
- }, Wt = {
1495
- key: 1,
1496
- width: "14",
1497
- height: "14",
1498
- viewBox: "0 0 14 14",
1499
- fill: "none",
1500
- "aria-hidden": "true"
1501
- }, Gt = { class: "step-text" }, Kt = { class: "step-label" }, qt = {
1524
+ ], Kt = { class: "step-text" }, qt = { class: "step-label" }, Jt = {
1502
1525
  key: 0,
1503
1526
  class: "step-description"
1504
- }, Jt = {
1527
+ }, Yt = {
1505
1528
  key: 1,
1506
1529
  class: "step-optional"
1507
- }, Yt = { class: "stepper-content" }, J = Symbol("AtlStepper"), Xt = /* @__PURE__ */ c({
1530
+ }, Xt = { class: "stepper-content" }, J = Symbol("AtlStepper"), Zt = /* @__PURE__ */ c({
1508
1531
  name: "AtlStepper",
1509
1532
  __name: "atl-stepper",
1510
1533
  props: {
@@ -1516,52 +1539,52 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1516
1539
  }
1517
1540
  },
1518
1541
  emits: ["update:activeStep"],
1519
- setup(n, { emit: s }) {
1520
- let c = n, l = s, u = v(c.activeStep), f = v([]), p = t(() => c.linear);
1521
- O(() => c.activeStep, (e) => {
1522
- u.value = e;
1542
+ setup(s, { emit: c }) {
1543
+ let l = s, u = c, f = v(l.activeStep), p = v([]), m = t(() => l.linear);
1544
+ O(() => l.activeStep, (e) => {
1545
+ f.value = e;
1523
1546
  });
1524
- function m(e) {
1525
- f.value.push(e);
1526
- }
1527
1547
  function h(e) {
1528
- f.value = f.value.filter((t) => t.id !== e);
1548
+ p.value.push(e);
1529
1549
  }
1530
- function x(e, t) {
1531
- let n = f.value.findIndex((t) => t.id === e);
1532
- n !== -1 && (f.value[n] = {
1533
- ...f.value[n],
1550
+ function x(e) {
1551
+ p.value = p.value.filter((t) => t.id !== e);
1552
+ }
1553
+ function C(e, t) {
1554
+ let n = p.value.findIndex((t) => t.id === e);
1555
+ n !== -1 && (p.value[n] = {
1556
+ ...p.value[n],
1534
1557
  ...t
1535
1558
  });
1536
1559
  }
1537
- function C(e) {
1538
- e < 0 || e >= f.value.length || f.value[e].disabled || c.linear && e > u.value && !f.value.slice(0, e).every((e) => e.completed || e.optional) || (u.value = e, l("update:activeStep", e));
1539
- }
1540
- function w() {
1541
- C(u.value + 1);
1560
+ function w(e) {
1561
+ e < 0 || e >= p.value.length || p.value[e].disabled || l.linear && e > f.value && !p.value.slice(0, e).every((e) => e.completed || e.optional) || (f.value = e, u("update:activeStep", e));
1542
1562
  }
1543
1563
  function T() {
1544
- let e = u.value - 1;
1545
- e >= 0 && !f.value[e]?.disabled && (u.value = e, l("update:activeStep", e));
1564
+ w(f.value + 1);
1565
+ }
1566
+ function E() {
1567
+ let e = f.value - 1;
1568
+ e >= 0 && !p.value[e]?.disabled && (f.value = e, u("update:activeStep", e));
1546
1569
  }
1547
1570
  _(J, {
1548
- activeStep: u,
1549
- steps: f,
1550
- linear: p,
1551
- registerStep: m,
1552
- unregisterStep: h,
1553
- updateStep: x,
1554
- goTo: C,
1555
- next: w,
1556
- prev: T
1571
+ activeStep: f,
1572
+ steps: p,
1573
+ linear: m,
1574
+ registerStep: h,
1575
+ unregisterStep: x,
1576
+ updateStep: C,
1577
+ goTo: w,
1578
+ next: T,
1579
+ prev: E
1557
1580
  });
1558
- let E = t(() => ["atl-stepper", `orientation-${c.orientation}`]);
1559
- function D(e) {
1560
- return u.value > e || f.value[e]?.completed;
1581
+ let D = t(() => ["atl-stepper", `orientation-${l.orientation}`]);
1582
+ function k(e) {
1583
+ return f.value > e || p.value[e]?.completed;
1561
1584
  }
1562
- return (t, n) => (g(), i("div", { class: d(E.value) }, [a("div", Vt, [(g(!0), i(e, null, y(f.value, (t, s) => (g(), i(e, { key: t.id }, [a("div", { class: d(["step-item", {
1563
- "is-active": u.value === s,
1564
- "is-completed": t.completed && u.value !== s,
1585
+ return (t, s) => (g(), i("div", { class: d(D.value) }, [a("div", Wt, [(g(!0), i(e, null, y(p.value, (t, s) => (g(), i(e, { key: t.id }, [a("div", { class: d(["step-item", {
1586
+ "is-active": f.value === s,
1587
+ "is-completed": t.completed && f.value !== s,
1565
1588
  "is-error": t.error,
1566
1589
  "is-disabled": t.disabled
1567
1590
  }]) }, [a("button", {
@@ -1570,37 +1593,34 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1570
1593
  class: "step-circle",
1571
1594
  id: `atl-step-${s}`,
1572
1595
  "aria-label": t.label,
1573
- "aria-selected": u.value === s,
1596
+ "aria-selected": f.value === s,
1574
1597
  "aria-controls": `atl-step-panel-${s}`,
1575
1598
  "aria-disabled": t.disabled || void 0,
1576
- tabindex: u.value === s ? 0 : -1,
1599
+ tabindex: f.value === s ? 0 : -1,
1577
1600
  disabled: t.disabled || void 0,
1578
- onClick: (e) => C(s)
1579
- }, [t.completed && !t.error ? (g(), i("svg", Ut, [...n[0] ||= [a("path", {
1580
- d: "M2 7L5.5 10.5L12 3.5",
1581
- stroke: "currentColor",
1582
- "stroke-width": "2",
1583
- "stroke-linecap": "round",
1584
- "stroke-linejoin": "round"
1585
- }, null, -1)]])) : t.error ? (g(), i("svg", Wt, [...n[1] ||= [a("path", {
1586
- d: "M3 3L11 11M11 3L3 11",
1587
- stroke: "currentColor",
1588
- "stroke-width": "2",
1589
- "stroke-linecap": "round"
1590
- }, null, -1)]])) : (g(), i(e, { key: 2 }, [o(S(s + 1), 1)], 64))], 8, Ht), a("div", Gt, [
1591
- a("span", Kt, S(t.label), 1),
1592
- t.description ? (g(), i("span", qt, S(t.description), 1)) : r("", !0),
1593
- t.optional && !t.completed ? (g(), i("span", Jt, "Optional")) : r("", !0)
1594
- ])], 2), s < f.value.length - 1 ? (g(), i("div", {
1601
+ onClick: (e) => w(s)
1602
+ }, [t.completed && !t.error ? (g(), n(L, {
1603
+ key: 0,
1604
+ name: "check",
1605
+ size: "sm"
1606
+ })) : t.error ? (g(), n(L, {
1607
+ key: 1,
1608
+ name: "close",
1609
+ size: "sm"
1610
+ })) : (g(), i(e, { key: 2 }, [o(S(s + 1), 1)], 64))], 8, Gt), a("div", Kt, [
1611
+ a("span", qt, S(t.label), 1),
1612
+ t.description ? (g(), i("span", Jt, S(t.description), 1)) : r("", !0),
1613
+ t.optional && !t.completed ? (g(), i("span", Yt, "Optional")) : r("", !0)
1614
+ ])], 2), s < p.value.length - 1 ? (g(), i("div", {
1595
1615
  key: 0,
1596
- class: d(["step-connector", { "is-active": D(s) }])
1597
- }, null, 2)) : r("", !0)], 64))), 128))]), a("div", Yt, [b(t.$slots, "default")])], 2));
1616
+ class: d(["step-connector", { "is-active": k(s) }])
1617
+ }, null, 2)) : r("", !0)], 64))), 128))]), a("div", Xt, [b(t.$slots, "default")])], 2));
1598
1618
  }
1599
- }), Zt = [
1619
+ }), Qt = [
1600
1620
  "id",
1601
1621
  "aria-labelledby",
1602
1622
  "hidden"
1603
- ], Qt = /* @__PURE__ */ c({
1623
+ ], $t = /* @__PURE__ */ c({
1604
1624
  name: "AtlStep",
1605
1625
  __name: "atl-step",
1606
1626
  props: {
@@ -1655,9 +1675,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1655
1675
  "aria-labelledby": `atl-step-${s.value}`,
1656
1676
  hidden: !c.value,
1657
1677
  tabindex: "0"
1658
- }, [b(e.$slots, "default")], 8, Zt)) : r("", !0);
1678
+ }, [b(e.$slots, "default")], 8, Qt)) : r("", !0);
1659
1679
  }
1660
- }), $t = ["aria-label"], en = /* @__PURE__ */ c({
1680
+ }), en = ["aria-label"], tn = /* @__PURE__ */ c({
1661
1681
  name: "AtlTable",
1662
1682
  __name: "atl-table",
1663
1683
  props: {
@@ -1681,15 +1701,15 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1681
1701
  tabindex: "0",
1682
1702
  role: "region",
1683
1703
  "aria-label": e.ariaLabel ?? "Table"
1684
- }, [a("table", null, [b(t.$slots, "default")])], 8, $t)], 2));
1704
+ }, [a("table", null, [b(t.$slots, "default")])], 8, en)], 2));
1685
1705
  }
1686
- }), tn = /* @__PURE__ */ c({
1706
+ }), nn = /* @__PURE__ */ c({
1687
1707
  name: "AtlThead",
1688
1708
  __name: "atl-thead",
1689
1709
  setup(e) {
1690
1710
  return (e, t) => (g(), i("thead", null, [b(e.$slots, "default")]));
1691
1711
  }
1692
- }), nn = { key: 1 }, rn = ["colspan"], an = /* @__PURE__ */ c({
1712
+ }), rn = { key: 1 }, an = ["colspan"], on = /* @__PURE__ */ c({
1693
1713
  name: "AtlTbody",
1694
1714
  __name: "atl-tbody",
1695
1715
  props: {
@@ -1700,15 +1720,15 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1700
1720
  colSpan: { default: 1 }
1701
1721
  },
1702
1722
  setup(e) {
1703
- return (t, n) => (g(), i("tbody", null, [e.empty ? (g(), i("tr", nn, [a("td", {
1723
+ return (t, n) => (g(), i("tbody", null, [e.empty ? (g(), i("tr", rn, [a("td", {
1704
1724
  colspan: e.colSpan,
1705
1725
  class: "atl-tbody-empty-cell"
1706
- }, [b(t.$slots, "empty")], 8, rn)])) : b(t.$slots, "default", {}, void 0, void 0, 0)]));
1726
+ }, [b(t.$slots, "empty")], 8, an)])) : b(t.$slots, "default", {}, void 0, void 0, 0)]));
1707
1727
  }
1708
- }), on = ["aria-selected"], sn = {
1728
+ }), sn = ["aria-selected"], cn = {
1709
1729
  key: 0,
1710
1730
  class: "atl-tr-select-cell"
1711
- }, cn = /* @__PURE__ */ c({
1731
+ }, ln = /* @__PURE__ */ c({
1712
1732
  name: "AtlTr",
1713
1733
  __name: "atl-tr",
1714
1734
  props: {
@@ -1727,12 +1747,15 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1727
1747
  return (t, a) => (g(), i("tr", {
1728
1748
  "aria-selected": e.selectable ? e.selected : void 0,
1729
1749
  class: d({ "is-selected": e.selected })
1730
- }, [e.selectable ? (g(), i("td", sn, [s(U, {
1750
+ }, [e.selectable ? (g(), i("td", cn, [s(U, {
1731
1751
  checked: e.selected,
1732
1752
  "onUpdate:checked": a[0] ||= (e) => n("update:selected", e)
1733
- }, null, 8, ["checked"])])) : r("", !0), b(t.$slots, "default")], 10, on));
1753
+ }, null, 8, ["checked"])])) : r("", !0), b(t.$slots, "default")], 10, sn));
1734
1754
  }
1735
- }), ln = ["aria-sort"], un = /* @__PURE__ */ c({
1755
+ }), un = ["aria-sort"], dn = {
1756
+ class: "atl-th-sort-icon",
1757
+ "aria-hidden": "true"
1758
+ }, fn = /* @__PURE__ */ c({
1736
1759
  name: "AtlTh",
1737
1760
  __name: "atl-th",
1738
1761
  props: {
@@ -1746,45 +1769,38 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1746
1769
  },
1747
1770
  emits: ["sort"],
1748
1771
  setup(e, { emit: n }) {
1749
- let r = e, o = n, s = t(() => [
1772
+ let r = e, o = n, c = t(() => [
1750
1773
  `align-${r.align}`,
1751
1774
  r.sortDirection && "is-sorted",
1752
1775
  r.sortDirection === "asc" && "sort-asc",
1753
1776
  r.sortDirection === "desc" && "sort-desc"
1754
- ].filter(Boolean)), c = t(() => {
1777
+ ].filter(Boolean)), l = t(() => {
1755
1778
  if (r.sortable) return r.sortDirection === "asc" ? "ascending" : r.sortDirection === "desc" ? "descending" : "none";
1756
1779
  });
1757
- function l() {
1780
+ function u() {
1758
1781
  let e = r.sortDirection === null ? "asc" : r.sortDirection === "asc" ? "desc" : null;
1759
1782
  o("sort", e);
1760
1783
  }
1761
1784
  return (t, n) => (g(), i("th", {
1762
- class: d(s.value),
1763
- "aria-sort": c.value,
1785
+ class: d(c.value),
1786
+ "aria-sort": l.value,
1764
1787
  style: f(e.width ? { width: e.width } : void 0)
1765
1788
  }, [e.sortable ? (g(), i("button", {
1766
1789
  key: 0,
1767
1790
  type: "button",
1768
1791
  class: "atl-th-sort-btn",
1769
- onClick: l
1770
- }, [b(t.$slots, "default"), n[0] ||= a("svg", {
1771
- class: "atl-th-sort-icon",
1772
- "aria-hidden": "true",
1773
- width: "12",
1774
- height: "16",
1775
- viewBox: "0 0 12 16",
1776
- fill: "none"
1777
- }, [a("path", {
1778
- class: "atl-th-sort-asc-arrow",
1779
- d: "M6 2L11 8H1L6 2Z",
1780
- fill: "currentColor"
1781
- }), a("path", {
1782
- class: "atl-th-sort-desc-arrow",
1783
- d: "M6 14L1 8H11L6 14Z",
1784
- fill: "currentColor"
1785
- })], -1)])) : b(t.$slots, "default", {}, void 0, void 0, 1)], 14, ln));
1792
+ onClick: u
1793
+ }, [b(t.$slots, "default"), a("span", dn, [s(L, {
1794
+ name: "sort-asc",
1795
+ size: "sm",
1796
+ class: "atl-th-sort-asc-arrow"
1797
+ }), s(L, {
1798
+ name: "sort-desc",
1799
+ size: "sm",
1800
+ class: "atl-th-sort-desc-arrow"
1801
+ })])])) : b(t.$slots, "default", {}, void 0, void 0, 1)], 14, un));
1786
1802
  }
1787
- }), dn = /* @__PURE__ */ c({
1803
+ }), pn = /* @__PURE__ */ c({
1788
1804
  name: "AtlTd",
1789
1805
  __name: "atl-td",
1790
1806
  props: { align: { default: "start" } },
@@ -1792,14 +1808,14 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1792
1808
  let n = e, r = t(() => [`align-${n.align}`]);
1793
1809
  return (e, t) => (g(), i("td", { class: d(r.value) }, [b(e.$slots, "default")], 2));
1794
1810
  }
1795
- }), fn = [
1811
+ }), mn = [
1796
1812
  "id",
1797
1813
  "aria-selected",
1798
1814
  "aria-controls",
1799
1815
  "tabindex",
1800
1816
  "disabled",
1801
1817
  "onClick"
1802
- ], pn = { class: "tab-panels" }, Y = Symbol("AtlTabGroup"), mn = /* @__PURE__ */ c({
1818
+ ], hn = { class: "tab-panels" }, Y = Symbol("AtlTabGroup"), gn = /* @__PURE__ */ c({
1803
1819
  name: "AtlTabGroup",
1804
1820
  __name: "atl-tab-group",
1805
1821
  props: {
@@ -1870,13 +1886,13 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1870
1886
  ]),
1871
1887
  type: "button",
1872
1888
  onClick: (n) => !e.disabled && p(t)
1873
- }, S(e.label), 11, fn))), 128))], 32), a("div", pn, [b(t.$slots, "default", { groupId: m })])], 2));
1889
+ }, S(e.label), 11, mn))), 128))], 32), a("div", hn, [b(t.$slots, "default", { groupId: m })])], 2));
1874
1890
  }
1875
- }), hn = [
1891
+ }), _n = [
1876
1892
  "id",
1877
1893
  "hidden",
1878
1894
  "aria-labelledby"
1879
- ], gn = /* @__PURE__ */ c({
1895
+ ], vn = /* @__PURE__ */ c({
1880
1896
  name: "AtlTab",
1881
1897
  __name: "atl-tab",
1882
1898
  props: {
@@ -1906,9 +1922,9 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1906
1922
  class: "tab-panel",
1907
1923
  "aria-labelledby": d.value,
1908
1924
  tabindex: "0"
1909
- }, [b(e.$slots, "default")], 8, hn)) : r("", !0);
1925
+ }, [b(e.$slots, "default")], 8, _n)) : r("", !0);
1910
1926
  }
1911
- }), _n = ["for"], vn = { class: "textarea-field" }, yn = [
1927
+ }), yn = ["for"], bn = { class: "textarea-field" }, xn = [
1912
1928
  "id",
1913
1929
  "value",
1914
1930
  "rows",
@@ -1918,11 +1934,11 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1918
1934
  "required",
1919
1935
  "name",
1920
1936
  "aria-invalid"
1921
- ], bn = {
1937
+ ], Sn = {
1922
1938
  key: 1,
1923
1939
  class: "errors",
1924
1940
  "aria-live": "polite"
1925
- }, xn = /* @__PURE__ */ c({
1941
+ }, Cn = /* @__PURE__ */ c({
1926
1942
  name: "AtlTextarea",
1927
1943
  __name: "atl-textarea",
1928
1944
  props: {
@@ -1955,48 +1971,53 @@ var j = Symbol("AtlAccordionGroup"), M = /* @__PURE__ */ c({
1955
1971
  id: { default: "" }
1956
1972
  },
1957
1973
  emits: ["update:value"],
1958
- setup(n, { emit: o }) {
1959
- let s = n, c = o, l = v(null), f = t(() => s.id || (s.label ? `textarea-${Math.random().toString(36).slice(2)}` : void 0));
1960
- function p() {
1961
- s.autoResize && l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`);
1974
+ setup(o, { emit: s }) {
1975
+ let c = o, l = s, f = v(null), p = t(() => c.id || (c.label ? `textarea-${Math.random().toString(36).slice(2)}` : void 0));
1976
+ function h() {
1977
+ c.autoResize && f.value && (f.value.style.height = "auto", f.value.style.height = `${f.value.scrollHeight}px`);
1962
1978
  }
1963
- O(() => s.value, async () => {
1964
- await u(), p();
1965
- }), m(() => p());
1966
- function h(e) {
1967
- c("update:value", e.target.value), p();
1979
+ O(() => c.value, async () => {
1980
+ await u(), h();
1981
+ }), m(() => h());
1982
+ function _(e) {
1983
+ l("update:value", e.target.value), h();
1968
1984
  }
1969
- return (t, o) => (g(), i("div", { class: d(["atl-textarea", {
1970
- "is-invalid": n.invalid,
1971
- "is-disabled": n.disabled
1985
+ return (t, s) => (g(), i("div", { class: d(["atl-textarea", {
1986
+ "is-invalid": o.invalid,
1987
+ "is-disabled": o.disabled
1972
1988
  }]) }, [
1973
- n.label ? (g(), i("label", {
1989
+ o.label ? (g(), i("label", {
1974
1990
  key: 0,
1975
- for: f.value,
1991
+ for: p.value,
1976
1992
  class: "textarea-label"
1977
- }, S(n.label), 9, _n)) : r("", !0),
1978
- a("div", vn, [a("textarea", {
1979
- id: f.value,
1993
+ }, S(o.label), 9, yn)) : r("", !0),
1994
+ a("div", bn, [a("textarea", {
1995
+ id: p.value,
1980
1996
  ref_key: "textareaRef",
1981
- ref: l,
1982
- value: n.value,
1983
- rows: n.rows,
1984
- placeholder: n.placeholder,
1985
- disabled: n.disabled,
1986
- readonly: n.readonly,
1987
- required: n.required,
1988
- name: n.name,
1989
- "aria-invalid": n.invalid || void 0,
1990
- onInput: h
1991
- }, null, 40, yn)]),
1992
- n.errors.length ? (g(), i("ul", bn, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
1997
+ ref: f,
1998
+ value: o.value,
1999
+ rows: o.rows,
2000
+ placeholder: o.placeholder,
2001
+ disabled: o.disabled,
2002
+ readonly: o.readonly,
2003
+ required: o.required,
2004
+ name: o.name,
2005
+ "aria-invalid": o.invalid || void 0,
2006
+ onInput: _
2007
+ }, null, 40, xn), o.invalid ? (g(), n(L, {
2008
+ key: 0,
2009
+ name: "danger",
2010
+ size: "sm",
2011
+ class: "invalid-icon"
2012
+ })) : r("", !0)]),
2013
+ o.errors.length ? (g(), i("ul", Sn, [(g(!0), i(e, null, y(o.errors, (e, t) => (g(), i("li", {
1993
2014
  key: t,
1994
2015
  class: "error"
1995
2016
  }, S(e), 1))), 128))])) : r("", !0)
1996
2017
  ], 2));
1997
2018
  }
1998
2019
  }), X = Symbol("AtlToast");
1999
- function Sn() {
2020
+ function wn() {
2000
2021
  let e = l(X);
2001
2022
  if (!e) throw Error("useAtlToast() must be called inside a component that is a descendant of AtlToastProvider.");
2002
2023
  return {
@@ -2007,7 +2028,7 @@ function Sn() {
2007
2028
  }
2008
2029
  //#endregion
2009
2030
  //#region libs/vue/src/lib/toast/atl-toast-provider.vue
2010
- var Cn = /* @__PURE__ */ c({
2031
+ var Tn = /* @__PURE__ */ c({
2011
2032
  name: "AtlToastProvider",
2012
2033
  __name: "atl-toast-provider",
2013
2034
  setup(e) {
@@ -2044,46 +2065,28 @@ var Cn = /* @__PURE__ */ c({
2044
2065
  clear: a
2045
2066
  }), (e, t) => b(e.$slots, "default");
2046
2067
  }
2047
- }), wn = { class: "message" }, Z = /* @__PURE__ */ c({
2068
+ }), En = { class: "message" }, Z = /* @__PURE__ */ c({
2048
2069
  name: "AtlToastItem",
2049
2070
  __name: "atl-toast-item",
2050
2071
  props: { data: {} },
2051
2072
  emits: ["dismiss"],
2052
2073
  setup(e, { emit: n }) {
2053
- let o = e, s = n, c = t(() => ["atl-toast", `variant-${o.data.variant}`]);
2074
+ let o = e, c = n, l = t(() => ["atl-toast", `variant-${o.data.variant}`]);
2054
2075
  return (t, n) => (g(), i("div", {
2055
- class: d(c.value),
2076
+ class: d(l.value),
2056
2077
  role: "status"
2057
- }, [a("span", wn, S(e.data.message), 1), e.data.dismissible ? (g(), i("button", {
2078
+ }, [a("span", En, S(e.data.message), 1), e.data.dismissible ? (g(), i("button", {
2058
2079
  key: 0,
2059
2080
  class: "dismiss",
2060
2081
  type: "button",
2061
2082
  "aria-label": "Dismiss",
2062
- onClick: n[0] ||= (t) => s("dismiss", e.data.id)
2063
- }, [...n[1] ||= [a("svg", {
2064
- xmlns: "http://www.w3.org/2000/svg",
2065
- width: "14",
2066
- height: "14",
2067
- viewBox: "0 0 24 24",
2068
- fill: "none",
2069
- stroke: "currentColor",
2070
- "stroke-width": "2.5",
2071
- "stroke-linecap": "round",
2072
- "stroke-linejoin": "round",
2073
- "aria-hidden": "true"
2074
- }, [a("line", {
2075
- x1: "18",
2076
- y1: "6",
2077
- x2: "6",
2078
- y2: "18"
2079
- }), a("line", {
2080
- x1: "6",
2081
- y1: "6",
2082
- x2: "18",
2083
- y2: "18"
2084
- })], -1)]])) : r("", !0)], 2));
2083
+ onClick: n[0] ||= (t) => c("dismiss", e.data.id)
2084
+ }, [s(L, {
2085
+ name: "close",
2086
+ size: "sm"
2087
+ })])) : r("", !0)], 2));
2085
2088
  }
2086
- }), Tn = /* @__PURE__ */ c({
2089
+ }), Dn = /* @__PURE__ */ c({
2087
2090
  name: "AtlToastContainer",
2088
2091
  __name: "atl-toast-container",
2089
2092
  props: { position: { default: "bottom-right" } },
@@ -2103,7 +2106,7 @@ var Cn = /* @__PURE__ */ c({
2103
2106
  onDismiss: r[0] ||= (e) => c(e)
2104
2107
  }, null, 8, ["data"]))), 128))], 2));
2105
2108
  }
2106
- }), En = ["for"], Dn = [
2109
+ }), On = ["for"], kn = [
2107
2110
  "id",
2108
2111
  "checked",
2109
2112
  "disabled",
@@ -2111,11 +2114,11 @@ var Cn = /* @__PURE__ */ c({
2111
2114
  "name",
2112
2115
  "aria-invalid",
2113
2116
  "aria-checked"
2114
- ], On = {
2117
+ ], An = {
2115
2118
  key: 0,
2116
2119
  class: "errors",
2117
2120
  "aria-live": "polite"
2118
- }, kn = /* @__PURE__ */ c({
2121
+ }, jn = /* @__PURE__ */ c({
2119
2122
  name: "AtlToggle",
2120
2123
  __name: "atl-toggle",
2121
2124
  props: {
@@ -2132,10 +2135,6 @@ var Cn = /* @__PURE__ */ c({
2132
2135
  type: Boolean,
2133
2136
  default: !1
2134
2137
  },
2135
- readonly: {
2136
- type: Boolean,
2137
- default: !1
2138
- },
2139
2138
  required: {
2140
2139
  type: Boolean,
2141
2140
  default: !1
@@ -2147,7 +2146,7 @@ var Cn = /* @__PURE__ */ c({
2147
2146
  setup(n, { emit: o }) {
2148
2147
  let s = n, c = o, l = t(() => s.id || `toggle-${Math.random().toString(36).slice(2)}`);
2149
2148
  function u(e) {
2150
- s.readonly || c("update:checked", e.target.checked);
2149
+ c("update:checked", e.target.checked);
2151
2150
  }
2152
2151
  return (t, o) => (g(), i("div", { class: d(["atl-toggle", {
2153
2152
  "is-invalid": n.invalid,
@@ -2167,15 +2166,15 @@ var Cn = /* @__PURE__ */ c({
2167
2166
  "aria-invalid": n.invalid || void 0,
2168
2167
  "aria-checked": n.checked,
2169
2168
  onChange: u
2170
- }, null, 40, Dn),
2169
+ }, null, 40, kn),
2171
2170
  o[0] ||= a("span", { class: "track" }, [a("span", { class: "thumb" })], -1),
2172
2171
  b(t.$slots, "default")
2173
- ], 8, En), n.errors.length ? (g(), i("ul", On, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
2172
+ ], 8, On), n.errors.length ? (g(), i("ul", An, [(g(!0), i(e, null, y(n.errors, (e, t) => (g(), i("li", {
2174
2173
  key: t,
2175
2174
  class: "error"
2176
2175
  }, S(e), 1))), 128))])) : r("", !0)], 2));
2177
2176
  }
2178
- }), An = /* @__PURE__ */ c({
2177
+ }), Mn = /* @__PURE__ */ c({
2179
2178
  name: "AtlTooltip",
2180
2179
  __name: "atl-tooltip",
2181
2180
  props: {
@@ -2219,7 +2218,7 @@ var Cn = /* @__PURE__ */ c({
2219
2218
  class: d(`atl-tooltip position-${e.atlTooltipPosition}`)
2220
2219
  }, S(e.atlTooltip), 3)) : r("", !0)], 32));
2221
2220
  }
2222
- }), jn = { class: "atl-code-block" }, Mn = { class: "code-block-header" }, Nn = { class: "code-block-label" }, Pn = ["aria-label"], Fn = { class: "code-block-body" }, In = { class: "code-block-pre" }, Ln = { class: "code-line-number" }, Rn = { class: "code-line-text" }, zn = /* @__PURE__ */ c({
2221
+ }), Nn = { class: "atl-code-block" }, Pn = { class: "code-block-header" }, Fn = { class: "code-block-label" }, In = ["aria-label"], Ln = { class: "code-block-body" }, Rn = { class: "code-block-pre" }, zn = { class: "code-line-number" }, Bn = { class: "code-line-text" }, Vn = /* @__PURE__ */ c({
2223
2222
  name: "AtlCodeBlock",
2224
2223
  __name: "atl-code-block",
2225
2224
  props: {
@@ -2236,55 +2235,32 @@ var Cn = /* @__PURE__ */ c({
2236
2235
  }
2237
2236
  },
2238
2237
  setup(n) {
2239
- let s = n, c = v(!1), l = t(() => s.filename || s.language), u = t(() => s.code.split("\n"));
2240
- function d() {
2241
- navigator.clipboard.writeText(s.code).then(() => {
2242
- c.value = !0, setTimeout(() => {
2243
- c.value = !1;
2238
+ let c = n, l = v(!1), u = t(() => c.filename || c.language), d = t(() => c.code.split("\n"));
2239
+ function f() {
2240
+ navigator.clipboard.writeText(c.code).then(() => {
2241
+ l.value = !0, setTimeout(() => {
2242
+ l.value = !1;
2244
2243
  }, 1800);
2245
2244
  });
2246
2245
  }
2247
- return (t, s) => (g(), i("div", jn, [a("div", Mn, [a("span", Nn, S(l.value), 1), n.copyable ? (g(), i("button", {
2246
+ return (t, c) => (g(), i("div", Nn, [a("div", Pn, [a("span", Fn, S(u.value), 1), n.copyable ? (g(), i("button", {
2248
2247
  key: 0,
2249
2248
  class: "code-block-copy",
2250
2249
  type: "button",
2251
- "aria-label": c.value ? "Copied" : "Copy code",
2252
- onClick: d
2253
- }, [c.value ? (g(), i(e, { key: 0 }, [s[0] ||= a("svg", {
2254
- xmlns: "http://www.w3.org/2000/svg",
2255
- width: "14",
2256
- height: "14",
2257
- viewBox: "0 0 24 24",
2258
- fill: "none",
2259
- stroke: "currentColor",
2260
- "stroke-width": "2.5",
2261
- "stroke-linecap": "round",
2262
- "stroke-linejoin": "round",
2263
- "aria-hidden": "true"
2264
- }, [a("polyline", { points: "20 6 9 17 4 12" })], -1), s[1] ||= o(" Copied ", -1)], 64)) : (g(), i(e, { key: 1 }, [s[2] ||= a("svg", {
2265
- xmlns: "http://www.w3.org/2000/svg",
2266
- width: "14",
2267
- height: "14",
2268
- viewBox: "0 0 24 24",
2269
- fill: "none",
2270
- stroke: "currentColor",
2271
- "stroke-width": "2",
2272
- "stroke-linecap": "round",
2273
- "stroke-linejoin": "round",
2274
- "aria-hidden": "true"
2275
- }, [a("rect", {
2276
- x: "9",
2277
- y: "9",
2278
- width: "13",
2279
- height: "13",
2280
- rx: "2",
2281
- ry: "2"
2282
- }), a("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })], -1), s[3] ||= o(" Copy ", -1)], 64))], 8, Pn)) : r("", !0)]), a("div", Fn, [a("pre", In, [a("code", null, [n.showLineNumbers ? (g(!0), i(e, { key: 0 }, y(u.value, (e, t) => (g(), i("span", {
2250
+ "aria-label": l.value ? "Copied" : "Copy code",
2251
+ onClick: f
2252
+ }, [l.value ? (g(), i(e, { key: 0 }, [s(L, {
2253
+ name: "check",
2254
+ size: "sm"
2255
+ }), c[0] ||= o(" Copied ", -1)], 64)) : (g(), i(e, { key: 1 }, [s(L, {
2256
+ name: "copy",
2257
+ size: "sm"
2258
+ }), c[1] ||= o(" Copy ", -1)], 64))], 8, In)) : r("", !0)]), a("div", Ln, [a("pre", Rn, [a("code", null, [n.showLineNumbers ? (g(!0), i(e, { key: 0 }, y(d.value, (e, t) => (g(), i("span", {
2283
2259
  key: t,
2284
2260
  class: "code-line"
2285
- }, [a("span", Ln, S(t + 1), 1), a("span", Rn, S(e), 1)]))), 128)) : (g(), i(e, { key: 1 }, [o(S(n.code), 1)], 64))])])])]));
2261
+ }, [a("span", zn, S(t + 1), 1), a("span", Bn, S(e), 1)]))), 128)) : (g(), i(e, { key: 1 }, [o(S(n.code), 1)], 64))])])])]));
2286
2262
  }
2287
- }), Bn = ["aria-labelledby"], Vn = ["aria-labelledby"], Q = ["aria-label", "aria-expanded"], Hn = ["aria-labelledby"], $ = Symbol("AtlChat"), Un = /* @__PURE__ */ c({
2263
+ }), Q = ["aria-labelledby"], Hn = ["aria-labelledby"], Un = ["aria-label", "aria-expanded"], Wn = ["aria-labelledby"], $ = Symbol("AtlChat"), Gn = /* @__PURE__ */ c({
2288
2264
  name: "AtlChat",
2289
2265
  __name: "atl-chat",
2290
2266
  props: {
@@ -2352,24 +2328,24 @@ var Cn = /* @__PURE__ */ c({
2352
2328
  }, [a("div", {
2353
2329
  class: "surface drawer-surface",
2354
2330
  onClick: o[0] ||= A(() => {}, ["stop"])
2355
- }, [b(t.$slots, "default")])], 40, Bn)) : n.variant === "popup" ? (g(), i(e, { key: 1 }, [n.open ? (g(), i("div", {
2331
+ }, [b(t.$slots, "default")])], 40, Q)) : n.variant === "popup" ? (g(), i(e, { key: 1 }, [n.open ? (g(), i("div", {
2356
2332
  key: 0,
2357
2333
  class: "surface popup-surface",
2358
2334
  role: "dialog",
2359
2335
  "aria-labelledby": w(p)
2360
- }, [b(t.$slots, "default")], 8, Vn)) : r("", !0), a("button", {
2336
+ }, [b(t.$slots, "default")], 8, Hn)) : r("", !0), a("button", {
2361
2337
  type: "button",
2362
2338
  class: "fab-bubble",
2363
2339
  "aria-label": n.open ? "Close AI assistant" : "Open AI assistant",
2364
2340
  "aria-expanded": n.open,
2365
2341
  onClick: y
2366
- }, [...o[1] ||= [a("span", { "aria-hidden": "true" }, "AI", -1)]], 8, Q)], 64)) : (g(), i("section", {
2342
+ }, [...o[1] ||= [a("span", { "aria-hidden": "true" }, "AI", -1)]], 8, Un)], 64)) : (g(), i("section", {
2367
2343
  key: 2,
2368
2344
  class: "surface inline-surface",
2369
2345
  "aria-labelledby": w(p)
2370
- }, [b(t.$slots, "default")], 8, Hn))], 2));
2346
+ }, [b(t.$slots, "default")], 8, Wn))], 2));
2371
2347
  }
2372
- }), Wn = ["id"], Gn = { class: "title-block" }, Kn = /* @__PURE__ */ c({
2348
+ }), Kn = ["id"], qn = { class: "title-block" }, Jn = /* @__PURE__ */ c({
2373
2349
  name: "AtlChatHeader",
2374
2350
  __name: "atl-chat-header",
2375
2351
  setup(e) {
@@ -2382,35 +2358,17 @@ var Cn = /* @__PURE__ */ c({
2382
2358
  return (e, n) => (g(), i("div", {
2383
2359
  id: w(t).headerId,
2384
2360
  class: "atl-chat-header"
2385
- }, [a("div", Gn, [b(e.$slots, "default")]), a("button", {
2361
+ }, [a("div", qn, [b(e.$slots, "default")]), a("button", {
2386
2362
  type: "button",
2387
2363
  class: "close-btn",
2388
2364
  "aria-label": "Close chat",
2389
2365
  onClick: n[0] ||= (e) => w(t).close()
2390
- }, [...n[1] ||= [a("svg", {
2391
- xmlns: "http://www.w3.org/2000/svg",
2392
- width: "14",
2393
- height: "14",
2394
- viewBox: "0 0 24 24",
2395
- fill: "none",
2396
- stroke: "currentColor",
2397
- "stroke-width": "2.5",
2398
- "stroke-linecap": "round",
2399
- "stroke-linejoin": "round",
2400
- "aria-hidden": "true"
2401
- }, [a("line", {
2402
- x1: "18",
2403
- y1: "6",
2404
- x2: "6",
2405
- y2: "18"
2406
- }), a("line", {
2407
- x1: "6",
2408
- y1: "6",
2409
- x2: "18",
2410
- y2: "18"
2411
- })], -1)]])], 8, Wn));
2366
+ }, [s(L, {
2367
+ name: "close",
2368
+ size: "sm"
2369
+ })])], 8, Kn));
2412
2370
  }
2413
- }), qn = /* @__PURE__ */ c({
2371
+ }), Yn = /* @__PURE__ */ c({
2414
2372
  name: "AtlChatMessages",
2415
2373
  __name: "atl-chat-messages",
2416
2374
  setup(e) {
@@ -2434,7 +2392,7 @@ var Cn = /* @__PURE__ */ c({
2434
2392
  class: "atl-chat-messages"
2435
2393
  }, [b(e.$slots, "default")], 512));
2436
2394
  }
2437
- }), Jn = /* @__PURE__ */ c({
2395
+ }), Xn = /* @__PURE__ */ c({
2438
2396
  name: "AtlChatMessage",
2439
2397
  __name: "atl-chat-message",
2440
2398
  props: {
@@ -2455,7 +2413,7 @@ var Cn = /* @__PURE__ */ c({
2455
2413
  class: d(r.value)
2456
2414
  }, [b(e.$slots, "default")], 2));
2457
2415
  }
2458
- }), Yn = /* @__PURE__ */ c({
2416
+ }), Zn = /* @__PURE__ */ c({
2459
2417
  name: "AtlChatTyping",
2460
2418
  __name: "atl-chat-typing",
2461
2419
  props: { inline: {
@@ -2475,10 +2433,10 @@ var Cn = /* @__PURE__ */ c({
2475
2433
  a("span", { class: "sr-only" }, "Assistant is typing", -1)
2476
2434
  ]], 2));
2477
2435
  }
2478
- }), Xn = { class: "atl-chat-suggestion" }, Zn = { class: "chip-label" }, Qn = {
2436
+ }), Qn = { class: "atl-chat-suggestion" }, $n = { class: "chip-label" }, er = {
2479
2437
  key: 0,
2480
2438
  class: "chip-hint"
2481
- }, $n = /* @__PURE__ */ c({
2439
+ }, tr = /* @__PURE__ */ c({
2482
2440
  name: "AtlChatSuggestion",
2483
2441
  __name: "atl-chat-suggestion",
2484
2442
  props: {
@@ -2488,18 +2446,18 @@ var Cn = /* @__PURE__ */ c({
2488
2446
  emits: ["selected"],
2489
2447
  setup(e, { emit: t }) {
2490
2448
  let n = e, o = t;
2491
- return (e, t) => (g(), i("div", Xn, [a("button", {
2449
+ return (e, t) => (g(), i("div", Qn, [a("button", {
2492
2450
  type: "button",
2493
2451
  class: "chip",
2494
2452
  onClick: t[0] ||= (e) => o("selected", n.label)
2495
- }, [a("span", Zn, S(n.label), 1), n.hint ? (g(), i("span", Qn, S(n.hint), 1)) : r("", !0)])]));
2453
+ }, [a("span", $n, S(n.label), 1), n.hint ? (g(), i("span", er, S(n.hint), 1)) : r("", !0)])]));
2496
2454
  }
2497
- }), er = { class: "atl-chat-input" }, tr = [
2455
+ }), nr = { class: "atl-chat-input" }, rr = [
2498
2456
  "value",
2499
2457
  "placeholder",
2500
2458
  "disabled",
2501
2459
  "aria-label"
2502
- ], nr = ["disabled"], rr = /* @__PURE__ */ c({
2460
+ ], ir = ["disabled"], ar = /* @__PURE__ */ c({
2503
2461
  name: "AtlChatInput",
2504
2462
  __name: "atl-chat-input",
2505
2463
  props: {
@@ -2542,7 +2500,7 @@ var Cn = /* @__PURE__ */ c({
2542
2500
  let t = e.target;
2543
2501
  d.value = t.value;
2544
2502
  }
2545
- return (e, t) => (g(), i("div", er, [a("textarea", {
2503
+ return (e, t) => (g(), i("div", nr, [a("textarea", {
2546
2504
  class: "field",
2547
2505
  rows: "1",
2548
2506
  value: d.value,
@@ -2551,7 +2509,7 @@ var Cn = /* @__PURE__ */ c({
2551
2509
  "aria-label": r.ariaLabel,
2552
2510
  onInput: _,
2553
2511
  onKeydown: h
2554
- }, null, 40, tr), f.value ? (g(), i("button", {
2512
+ }, null, 40, rr), f.value ? (g(), i("button", {
2555
2513
  key: 0,
2556
2514
  type: "button",
2557
2515
  class: "action-btn variant-danger size-md",
@@ -2562,8 +2520,8 @@ var Cn = /* @__PURE__ */ c({
2562
2520
  class: "action-btn variant-primary size-md",
2563
2521
  disabled: !d.value.trim(),
2564
2522
  onClick: m
2565
- }, " Send ", 8, nr))]));
2523
+ }, " Send ", 8, ir))]));
2566
2524
  }
2567
2525
  });
2568
2526
  //#endregion
2569
- export { M as AtlAccordionGroup, ee as AtlAccordionHeader, P as AtlAccordionItem, ie as AtlAlert, le as AtlAvatar, de as AtlAvatarGroup, L as AtlBadge, pe as AtlBreadcrumbItem, V as AtlBreadcrumbs, ge as AtlButton, ve as AtlCard, Se as AtlCardContent, we as AtlCardFooter, be as AtlCardHeader, Un as AtlChat, Kn as AtlChatHeader, rr as AtlChatInput, $ as AtlChatKey, Jn as AtlChatMessage, qn as AtlChatMessages, $n as AtlChatSuggestion, Yn as AtlChatTyping, U as AtlCheckbox, zn as AtlCodeBlock, Tt as AtlCombobox, ke as AtlDialog, Pe as AtlDialogContent, Ie as AtlDialogFooter, Me as AtlDialogHeader, Re as AtlDrawer, Ue as AtlDrawerContent, Ge as AtlDrawerFooter, Ve as AtlDrawerHeader, z as AtlIcon, Xe as AtlInput, $e as AtlMenu, tt as AtlMenuItem, rt as AtlMenuSeparator, Qe as AtlMenuTrigger, zt as AtlOption, ht as AtlPagination, vt as AtlProgress, jt as AtlRadio, Ot as AtlRadioGroup, Lt as AtlSelect, Bt as AtlSkeleton, Qt as AtlStep, Xt as AtlStepper, gn as AtlTab, mn as AtlTabGroup, en as AtlTable, an as AtlTbody, dn as AtlTd, xn as AtlTextarea, un as AtlTh, tn as AtlThead, Tn as AtlToastContainer, Z as AtlToastItem, Cn as AtlToastProvider, kn as AtlToggle, An as AtlTooltip, cn as AtlTr, Sn as useAtlToast };
2527
+ export { M as AtlAccordionGroup, ie as AtlAccordionHeader, ne as AtlAccordionItem, ce as AtlAlert, R as AtlAvatar, B as AtlAvatarGroup, H as AtlBadge, ge as AtlBreadcrumbItem, pe as AtlBreadcrumbs, ye as AtlButton, xe as AtlCard, Te as AtlCardContent, De as AtlCardFooter, Ce as AtlCardHeader, Gn as AtlChat, Jn as AtlChatHeader, ar as AtlChatInput, $ as AtlChatKey, Xn as AtlChatMessage, Yn as AtlChatMessages, tr as AtlChatSuggestion, Zn as AtlChatTyping, U as AtlCheckbox, Vn as AtlCodeBlock, Ot as AtlCombobox, Me as AtlDialog, Le as AtlDialogContent, ze as AtlDialogFooter, Fe as AtlDialogHeader, Ve as AtlDrawer, Ke as AtlDrawerContent, Je as AtlDrawerFooter, We as AtlDrawerHeader, L as AtlIcon, $e as AtlInput, nt as AtlMenu, it as AtlMenuItem, ot as AtlMenuSeparator, tt as AtlMenuTrigger, Ht as AtlOption, vt as AtlPagination, xt as AtlProgress, Pt as AtlRadio, jt as AtlRadioGroup, Bt as AtlSelect, Ut as AtlSkeleton, $t as AtlStep, Zt as AtlStepper, vn as AtlTab, gn as AtlTabGroup, tn as AtlTable, on as AtlTbody, pn as AtlTd, Cn as AtlTextarea, fn as AtlTh, nn as AtlThead, Dn as AtlToastContainer, Z as AtlToastItem, Tn as AtlToastProvider, jn as AtlToggle, Mn as AtlTooltip, ln as AtlTr, wn as useAtlToast };