sit-onyx 1.0.0-beta.2 → 1.0.0-beta.21

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 (60) hide show
  1. package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +2 -2
  2. package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +2 -2
  3. package/dist/components/OnyxCheckboxGroup/types.d.ts +3 -2
  4. package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +11 -1
  5. package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +9 -2
  6. package/dist/components/OnyxFormElement/types.d.ts +6 -0
  7. package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +2 -2
  8. package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
  9. package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +9 -3
  10. package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +1 -1
  11. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +9 -1
  12. package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +10 -4
  13. package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +2 -2
  14. package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +2 -2
  15. package/dist/components/OnyxRadioGroup/types.d.ts +1 -1
  16. package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +5 -5
  17. package/dist/components/OnyxSelect/types.d.ts +21 -5
  18. package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +2 -2
  19. package/dist/components/OnyxSelectInput/types.d.ts +5 -12
  20. package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +1 -1
  21. package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +50 -0
  22. package/dist/components/OnyxStepper/types.d.ts +56 -0
  23. package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +1 -1
  24. package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +1 -1
  25. package/dist/components/OnyxTooltip/types.d.ts +2 -1
  26. package/dist/composables/useCustomValidity.d.ts +13 -1
  27. package/dist/index.cjs +5 -4
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.js +1682 -1417
  30. package/dist/style.css +1 -1
  31. package/dist/utils/attrs.d.ts +3 -3
  32. package/package.json +5 -8
  33. package/src/i18n/locales/de-DE.json +6 -1
  34. package/src/i18n/locales/en-US.json +6 -1
  35. package/src/styles/global.css +1 -1
  36. package/src/styles/index.scss +7 -4
  37. package/src/styles/mixins/checkbox.scss +1 -13
  38. package/src/styles/mixins/input.scss +49 -5
  39. package/src/styles/mixins/list.scss +2 -11
  40. package/src/styles/required.scss +1 -1
  41. package/src/styles/{dark.css → variables/dark.css} +1 -13
  42. package/src/styles/variables/density-compact.css +17 -0
  43. package/src/styles/variables/density-cozy.css +17 -0
  44. package/src/styles/variables/density-default.css +18 -0
  45. package/src/styles/{light.css → variables/light.css} +1 -13
  46. package/src/styles/variables/spacing.css +20 -0
  47. package/src/styles/{themes → variables/themes}/kaufland.css +2 -2
  48. package/src/styles/{themes → variables/themes}/lidl.css +2 -2
  49. package/src/styles/{themes → variables/themes}/onyx.css +2 -2
  50. package/src/styles/{themes → variables/themes}/onyx.json +1 -1
  51. package/src/styles/{themes → variables/themes}/twogo.css +2 -2
  52. package/src/styles/density.scss +0 -41
  53. package/src/types/breakpoints.ts +0 -14
  54. package/src/types/colors.ts +0 -10
  55. package/src/types/components.ts +0 -59
  56. package/src/types/fonts.ts +0 -7
  57. package/src/types/i18n.ts +0 -68
  58. package/src/types/index.ts +0 -10
  59. package/src/types/themes.ts +0 -1
  60. package/src/types/utils.ts +0 -4
package/dist/index.js CHANGED
@@ -1,41 +1,41 @@
1
- import { defineComponent as k, useSlots as R, openBlock as n, createElementBlock as p, normalizeClass as g, renderSlot as b, createCommentVNode as _, createElementVNode as v, computed as h, ref as O, watch as K, createTextVNode as F, toDisplayString as M, unref as r, Fragment as z, createBlock as x, inject as se, watchEffect as X, createVNode as V, withDirectives as G, vModelCheckbox as Je, withCtx as $, mergeProps as B, renderList as W, withModifiers as Le, resolveDynamicComponent as re, onBeforeMount as Ae, onBeforeUnmount as pe, normalizeProps as te, guardReactiveProps as ae, vModelDynamic as $t, useAttrs as Mt, vModelText as Qe, Teleport as Vt, vShow as et, mergeModels as St, useModel as Bt, createSlots as me, provide as Ot, toRef as qe, nextTick as Et, normalizeStyle as Be } from "vue";
2
- const Tt = {
1
+ import { defineComponent as w, useSlots as G, openBlock as s, createElementBlock as p, normalizeClass as g, renderSlot as b, createCommentVNode as _, createElementVNode as f, computed as h, ref as T, watch as Y, createTextVNode as Z, toDisplayString as V, unref as r, Fragment as R, createBlock as x, inject as ue, watchEffect as Q, createVNode as M, withDirectives as K, vModelCheckbox as ot, resolveDynamicComponent as ce, withCtx as $, mergeProps as O, renderList as J, withModifiers as De, shallowRef as It, reactive as At, onBeforeMount as Ne, onBeforeUnmount as ye, normalizeProps as ee, guardReactiveProps as te, vModelDynamic as Ht, useAttrs as Pt, vModelText as ze, Teleport as Dt, mergeModels as he, useModel as ve, vShow as nt, createSlots as fe, toRef as Te, provide as Nt, nextTick as zt, normalizeStyle as Ee } from "vue";
2
+ const Rt = {
3
3
  key: 0,
4
4
  class: "onyx-app__nav"
5
- }, It = { class: "onyx-app__page" }, Lt = {
5
+ }, Ut = { class: "onyx-app__page" }, Ft = {
6
6
  key: 1,
7
7
  class: "onyx-app__page-overlay"
8
- }, At = {
8
+ }, qt = {
9
9
  key: 2,
10
10
  class: "onyx-app__app-overlay"
11
- }, xn = /* @__PURE__ */ k({
11
+ }, Dn = /* @__PURE__ */ w({
12
12
  __name: "OnyxAppLayout",
13
13
  props: {
14
14
  navBarAlignment: { default: "top" }
15
15
  },
16
16
  setup(t) {
17
- const a = t, e = R();
18
- return (l, s) => (n(), p("div", {
17
+ const a = t, e = G();
18
+ return (l, n) => (s(), p("div", {
19
19
  class: g(["onyx-app", { "onyx-app--horizontal": a.navBarAlignment === "left" }])
20
20
  }, [
21
- e.navBar ? (n(), p("div", Tt, [
21
+ e.navBar ? (s(), p("div", Rt, [
22
22
  b(l.$slots, "navBar")
23
23
  ])) : _("", !0),
24
- v("div", It, [
24
+ f("div", Ut, [
25
25
  b(l.$slots, "default")
26
26
  ]),
27
- e.pageOverlay ? (n(), p("div", Lt, [
27
+ e.pageOverlay ? (s(), p("div", Ft, [
28
28
  b(l.$slots, "pageOverlay")
29
29
  ])) : _("", !0),
30
- e.appOverlay ? (n(), p("div", At, [
30
+ e.appOverlay ? (s(), p("div", qt, [
31
31
  b(l.$slots, "appOverlay")
32
32
  ])) : _("", !0)
33
33
  ], 2));
34
34
  }
35
- }), Ht = ["title"], Pt = ["src", "alt"], Dt = {
35
+ }), Zt = ["title"], Gt = ["src", "alt"], Kt = {
36
36
  key: 1,
37
37
  class: "onyx-avatar__initials"
38
- }, Ze = /* @__PURE__ */ k({
38
+ }, Ye = /* @__PURE__ */ w({
39
39
  __name: "OnyxAvatar",
40
40
  props: {
41
41
  size: { default: "48px" },
@@ -43,40 +43,40 @@ const Tt = {
43
43
  src: {}
44
44
  },
45
45
  setup(t) {
46
- const a = t, e = R(), l = h(() => {
46
+ const a = t, e = G(), l = h(() => {
47
47
  const o = a.label.split(" ");
48
48
  return (o.length > 1 ? `${o[0].charAt(0)}${o[1].charAt(0)}` : o[0].substring(0, 2)).toUpperCase();
49
- }), s = O(!1);
50
- return K(
49
+ }), n = T(!1);
50
+ return Y(
51
51
  () => a.src,
52
- () => s.value = !1
53
- ), (o, i) => (n(), p("figure", {
52
+ () => n.value = !1
53
+ ), (o, u) => (s(), p("figure", {
54
54
  class: g(["onyx-avatar", [`onyx-avatar--${a.size}`, e.default ? "onyx-avatar--custom" : ""]]),
55
55
  title: a.label
56
56
  }, [
57
- a.src && !s.value ? (n(), p("img", {
57
+ a.src && !n.value ? (s(), p("img", {
58
58
  key: 0,
59
59
  class: "onyx-avatar__svg",
60
60
  src: a.src,
61
61
  alt: a.label,
62
- onError: i[0] || (i[0] = (u) => s.value = !0)
63
- }, null, 40, Pt)) : (n(), p("div", Dt, [
62
+ onError: u[0] || (u[0] = (c) => n.value = !0)
63
+ }, null, 40, Gt)) : (s(), p("div", Kt, [
64
64
  b(o.$slots, "default", {}, () => [
65
- F(M(l.value), 1)
65
+ Z(V(l.value), 1)
66
66
  ])
67
67
  ]))
68
- ], 10, Ht));
68
+ ], 10, Zt));
69
69
  }
70
- }), zt = { class: "onyx-avatar-stack" }, bn = /* @__PURE__ */ k({
70
+ }), jt = { class: "onyx-avatar-stack" }, Nn = /* @__PURE__ */ w({
71
71
  __name: "OnyxAvatarStack",
72
72
  setup(t) {
73
- return (a, e) => (n(), p("div", zt, [
73
+ return (a, e) => (s(), p("div", jt, [
74
74
  b(a.$slots, "default")
75
75
  ]));
76
76
  }
77
- }), gn = ["compact", "default", "cozy"], H = (t) => ({
77
+ }), zn = ["compact", "default", "cozy"], H = (t) => ({
78
78
  densityClass: h(() => ({ [`onyx-density-${t.density}`]: t.density }))
79
- }), Nt = ["innerHTML"], L = /* @__PURE__ */ k({
79
+ }), Yt = ["innerHTML"], A = /* @__PURE__ */ w({
80
80
  __name: "OnyxIcon",
81
81
  props: {
82
82
  size: {},
@@ -85,7 +85,7 @@ const Tt = {
85
85
  },
86
86
  setup(t) {
87
87
  const a = t;
88
- return (e, l) => (n(), p("figure", {
88
+ return (e, l) => (s(), p("figure", {
89
89
  class: g({
90
90
  "onyx-icon": !0,
91
91
  [`onyx-icon--${a.size}`]: a.size,
@@ -93,9 +93,9 @@ const Tt = {
93
93
  }),
94
94
  "aria-hidden": "true",
95
95
  innerHTML: a.icon
96
- }, null, 10, Nt));
96
+ }, null, 10, Yt));
97
97
  }
98
- }), Ut = /* @__PURE__ */ k({
98
+ }), Wt = /* @__PURE__ */ w({
99
99
  __name: "OnyxBadge",
100
100
  props: {
101
101
  density: {},
@@ -105,7 +105,7 @@ const Tt = {
105
105
  },
106
106
  setup(t) {
107
107
  const a = t, { densityClass: e } = H(a);
108
- return (l, s) => (n(), p("div", {
108
+ return (l, n) => (s(), p("div", {
109
109
  class: g(["onyx-badge", [
110
110
  "onyx-truncation-ellipsis",
111
111
  "onyx-text",
@@ -114,58 +114,57 @@ const Tt = {
114
114
  r(e)
115
115
  ]])
116
116
  }, [
117
- a.dot ? _("", !0) : (n(), p(z, { key: 0 }, [
118
- a.icon ? (n(), x(L, {
117
+ a.dot ? _("", !0) : (s(), p(R, { key: 0 }, [
118
+ a.icon ? (s(), x(A, {
119
119
  key: 0,
120
120
  class: "onyx-badge__icon",
121
- icon: a.icon,
122
- size: a.density === "cozy" ? "24px" : "16px"
123
- }, null, 8, ["icon", "size"])) : b(l.$slots, "default", { key: 1 })
121
+ icon: a.icon
122
+ }, null, 8, ["icon"])) : b(l.$slots, "default", { key: 1 })
124
123
  ], 64))
125
124
  ], 2));
126
125
  }
127
- }), He = (t, a) => {
126
+ }), Re = (t, a) => {
128
127
  const e = t.__vccOpts || t;
129
- for (const [l, s] of a)
130
- e[l] = s;
128
+ for (const [l, n] of a)
129
+ e[l] = n;
131
130
  return e;
132
- }, Ft = {}, Rt = {
131
+ }, Xt = {}, Jt = {
133
132
  class: "onyx-circle-spinner",
134
133
  viewBox: "0 0 50 50"
135
- }, qt = /* @__PURE__ */ v("circle", {
134
+ }, Qt = /* @__PURE__ */ f("circle", {
136
135
  class: "onyx-circle-spinner__circle",
137
136
  cx: "50%",
138
137
  cy: "50%",
139
138
  r: "45%"
140
- }, null, -1), Zt = [
141
- qt
139
+ }, null, -1), ea = [
140
+ Qt
142
141
  ];
143
- function Kt(t, a) {
144
- return n(), p("svg", Rt, Zt);
142
+ function ta(t, a) {
143
+ return s(), p("svg", Jt, ea);
145
144
  }
146
- const Gt = /* @__PURE__ */ He(Ft, [["render", Kt]]), jt = {}, Yt = { class: "onyx-loading-dots" }, Wt = /* @__PURE__ */ v("span", { class: "onyx-loading-dots__center" }, null, -1), Xt = [
147
- Wt
145
+ const aa = /* @__PURE__ */ Re(Xt, [["render", ta]]), la = {}, oa = { class: "onyx-loading-dots" }, na = /* @__PURE__ */ f("span", { class: "onyx-loading-dots__center" }, null, -1), sa = [
146
+ na
148
147
  ];
149
- function Jt(t, a) {
150
- return n(), p("div", Yt, Xt);
148
+ function ra(t, a) {
149
+ return s(), p("div", oa, sa);
151
150
  }
152
- const Qt = /* @__PURE__ */ He(jt, [["render", Jt]]), J = /* @__PURE__ */ k({
151
+ const ia = /* @__PURE__ */ Re(la, [["render", ra]]), X = /* @__PURE__ */ w({
153
152
  __name: "OnyxLoadingIndicator",
154
153
  props: {
155
154
  type: { default: "dots" }
156
155
  },
157
156
  setup(t) {
158
157
  const a = t;
159
- return (e, l) => a.type === "circle" ? (n(), x(Gt, { key: 0 })) : a.type === "dots" ? (n(), x(Qt, { key: 1 })) : _("", !0);
158
+ return (e, l) => a.type === "circle" ? (s(), x(aa, { key: 0 })) : a.type === "dots" ? (s(), x(ia, { key: 1 })) : _("", !0);
160
159
  }
161
- }), ea = {}, ta = {
160
+ }), ua = {}, ca = {
162
161
  "aria-hidden": "true",
163
162
  class: "onyx-skeleton"
164
163
  };
165
- function aa(t, a) {
166
- return n(), p("figure", ta);
164
+ function da(t, a) {
165
+ return s(), p("figure", ca);
167
166
  }
168
- const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "aria-label", "autofocus"], oa = { class: "onyx-button__label onyx-truncation-ellipsis" }, Oe = /* @__PURE__ */ k({
167
+ const U = /* @__PURE__ */ Re(ua, [["render", da]]), pa = ["disabled", "type", "aria-label", "autofocus"], ma = { class: "onyx-button__label onyx-truncation-ellipsis" }, Ie = /* @__PURE__ */ w({
169
168
  __name: "OnyxButton",
170
169
  props: {
171
170
  density: {},
@@ -181,11 +180,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
181
180
  },
182
181
  emits: ["click"],
183
182
  setup(t, { emit: a }) {
184
- const e = t, { densityClass: l } = H(e), s = a;
185
- return (o, i) => e.skeleton ? (n(), x(U, {
183
+ const e = t, { densityClass: l } = H(e), n = a;
184
+ return (o, u) => e.skeleton ? (s(), x(U, {
186
185
  key: 0,
187
186
  class: g(["onyx-button-skeleton", r(l)])
188
- }, null, 8, ["class"])) : (n(), p("button", {
187
+ }, null, 8, ["class"])) : (s(), p("button", {
189
188
  key: 1,
190
189
  class: g([
191
190
  "onyx-button",
@@ -198,20 +197,20 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
198
197
  type: e.type,
199
198
  "aria-label": e.loading ? e.label : void 0,
200
199
  autofocus: e.autofocus,
201
- onClick: i[0] || (i[0] = (u) => s("click"))
200
+ onClick: u[0] || (u[0] = (c) => n("click"))
202
201
  }, [
203
- e.icon && !e.loading ? (n(), x(L, {
202
+ e.icon && !e.loading ? (s(), x(A, {
204
203
  key: 0,
205
204
  icon: e.icon
206
205
  }, null, 8, ["icon"])) : _("", !0),
207
- e.loading ? (n(), x(J, {
206
+ e.loading ? (s(), x(X, {
208
207
  key: 1,
209
208
  class: "onyx-button__loading"
210
209
  })) : _("", !0),
211
- v("span", oa, M(e.label), 1)
212
- ], 10, la));
210
+ f("span", ma, V(e.label), 1)
211
+ ], 10, pa));
213
212
  }
214
- }), kn = ["button", "submit", "reset"], wn = ["primary", "neutral", "danger"], Cn = ["default", "outline", "plain"], ye = (t) => ({
213
+ }), Rn = ["button", "submit", "reset"], Un = ["primary", "neutral", "danger"], Fn = ["default", "outline", "plain"], _e = (t) => ({
215
214
  /**
216
215
  * Class that configures which type of required marker is used.
217
216
  */
@@ -222,7 +221,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
222
221
  "onyx-required-marker": t.required,
223
222
  "onyx-optional-marker": !t.required
224
223
  }))
225
- }), na = "(optional)", sa = "Cancel", ra = "Apply", ia = "Back", ca = "Close", ua = {
224
+ }), ya = "(optional)", ha = "Cancel", va = "Apply", fa = "Back", _a = "Close", xa = {
226
225
  tooShort: {
227
226
  preview: "Too short",
228
227
  fullError: "Please lengthen this text to {minLength} characters or more (you are currently using 1 character) | Please lengthen this text to {minLength} characters or more (you are currently using {n} characters)"
@@ -277,20 +276,24 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
277
276
  fullError: '"{value}" must a valid URL.'
278
277
  }
279
278
  }
280
- }, da = {
279
+ }, ba = {
281
280
  toggleDropDown: "Toggle selection popover",
282
281
  empty: "No data available",
283
282
  noMatch: "No item matches your search",
284
283
  searchInputLabel: "Filter the list items",
285
- clearSearch: "Clear search filter"
286
- }, pa = {
284
+ clearSearch: "Clear search filter",
285
+ searchPlaceholder: "Search"
286
+ }, ga = {
287
287
  selectAll: "Select all",
288
288
  currentSelection: "{n} selected"
289
- }, ma = {
289
+ }, ka = {
290
+ decrement: "Decrement by {stepSize}",
291
+ increment: "Increment by {stepSize}"
292
+ }, wa = {
290
293
  empty: "This table is empty."
291
- }, ya = {
294
+ }, Ca = {
292
295
  opensExternally: "Opens in a new tab."
293
- }, ha = "Subpages of {label}", va = {
296
+ }, $a = "Subpages of {label}", Ma = {
294
297
  appLogo: "App logo of {appName}",
295
298
  goToHome: "Go to home page",
296
299
  goBack: "Go back",
@@ -298,10 +301,10 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
298
301
  toggleBurgerMenu: "Toggle burger menu",
299
302
  toggleContextMenu: "Toggle context menu",
300
303
  navigationHeadline: "Navigation"
301
- }, fa = {
304
+ }, Ba = {
302
305
  info: "Show info tooltip",
303
306
  error: "Show error tooltip"
304
- }, _a = {
307
+ }, Va = {
305
308
  headline: "Change appearance",
306
309
  subtitle: "Select the appearance of the application:",
307
310
  appearance: "Appearance",
@@ -317,86 +320,91 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
317
320
  label: "Dark",
318
321
  description: "This color mode is optimized for darker environments."
319
322
  }
320
- }, Ee = {
321
- optional: na,
322
- cancel: sa,
323
- apply: ra,
324
- back: ia,
325
- close: ca,
326
- validations: ua,
327
- select: da,
328
- selections: pa,
329
- table: ma,
330
- link: ya,
331
- navItemOptionsLabel: ha,
332
- navigation: va,
333
- showTooltip: fa,
334
- colorScheme: _a
335
- }, tt = Symbol(), at = (t = {}) => {
323
+ }, Ae = {
324
+ optional: ya,
325
+ cancel: ha,
326
+ apply: va,
327
+ back: fa,
328
+ close: _a,
329
+ validations: xa,
330
+ select: ba,
331
+ selections: ga,
332
+ stepper: ka,
333
+ table: wa,
334
+ link: Ca,
335
+ navItemOptionsLabel: $a,
336
+ navigation: Ma,
337
+ showTooltip: Ba,
338
+ colorScheme: Va
339
+ }, st = Symbol(), rt = (t = {}) => {
336
340
  const a = h(() => r(t == null ? void 0 : t.locale) ?? "en-US");
337
341
  if (t.t)
338
342
  return { t: t.t, locale: a };
339
- const e = h(() => t != null && t.messages && a.value in t.messages ? t.messages[a.value] : Ee), l = h(() => (s, o = {}) => {
340
- let i = Ke(s, e.value) ?? Ke(s, Ee) ?? "";
341
- return i = ba(i, o.n), ga(i, o);
343
+ const e = h(() => t != null && t.messages && a.value in t.messages ? t.messages[a.value] : Ae), l = h(() => (n, o = {}) => {
344
+ let u = We(n, e.value) ?? We(n, Ae) ?? "";
345
+ return u = Oa(u, o.n), La(u, o);
342
346
  });
343
347
  return { locale: a, t: l };
344
- }, xa = (t, a) => {
345
- const e = at(a);
346
- return t.provide(tt, e), e;
347
- }, P = () => se(tt, () => at(), !0), Ke = (t, a) => {
348
- const e = t.split(".").reduce((l, s) => !l || typeof l == "string" ? l : l[s], a);
348
+ }, Sa = (t, a) => {
349
+ const e = rt(a);
350
+ return t.provide(st, e), e;
351
+ }, N = () => ue(st, () => rt(), !0), We = (t, a) => {
352
+ const e = t.split(".").reduce((l, n) => !l || typeof l == "string" ? l : l[n], a);
349
353
  return e && typeof e == "string" ? e : void 0;
350
- }, ba = (t, a) => {
351
- const e = t.split(" | ").map((s) => s.trim());
354
+ }, Oa = (t, a) => {
355
+ const e = t.split(" | ").map((n) => n.trim());
352
356
  if (e.length <= 1) return t;
353
357
  let l = 1;
354
358
  return a === 0 && (l = 0), a && (a <= 0 || a > 1) && (l = 2), e.length === 2 ? l === 1 ? e[0] : e[1] : e[l];
355
- }, ga = (t, a) => a ? Object.entries(a).reduce((l, [s, o]) => o === void 0 ? l : l.replace(new RegExp(`{${s}}`, "gi"), o.toString()), t).replace(/\s?{.*}\s?/gi, "") : t, ka = (t, a) => {
356
- const e = Object.entries(t).filter(([s, o]) => o !== void 0), l = Object.entries(a).filter(([s, o]) => o !== void 0);
357
- return e.length !== l.length ? !1 : e.every(([s, o]) => o === a[s]);
358
- }, wa = (t, a) => t.reduce(
359
+ }, La = (t, a) => a ? Object.entries(a).reduce((l, [n, o]) => o === void 0 ? l : l.replace(new RegExp(`{${n}}`, "gi"), o.toString()), t).replace(/\s?{.*}\s?/gi, "") : t, Ta = (t, a) => {
360
+ const e = Object.entries(t).filter(([n, o]) => o !== void 0), l = Object.entries(a).filter(([n, o]) => o !== void 0);
361
+ return e.length !== l.length ? !1 : e.every(([n, o]) => o === a[n]);
362
+ }, Ea = (t, a) => t.reduce(
359
363
  (e, l) => {
360
- const s = l[a] ?? "";
361
- return e[s] = e[s] || [], e[s].push(l), e;
364
+ const n = l[a] ?? "";
365
+ return e[n] = e[n] || [], e[n].push(l), e;
362
366
  },
363
367
  {}
364
- ), lt = () => Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([t, a]) => a.enumerable).map(([t]) => t), Ca = (t) => lt().reduce(
368
+ ), it = () => Object.entries(Object.getOwnPropertyDescriptors(ValidityState.prototype)).filter(([t, a]) => a.enumerable).map(([t]) => t), Ia = (t) => it().reduce(
365
369
  (a, e) => (a[e] = t[e], a),
366
370
  {}
367
- ), $a = (t) => {
371
+ ), Aa = (t) => {
368
372
  if (t.valueMissing) return "valueMissing";
369
- const a = lt().filter((e) => e !== "valid").sort();
373
+ const a = it().filter((e) => e !== "valid").sort();
370
374
  for (const e of a)
371
375
  if (e in t && t[e]) return e;
372
- }, Ma = Object.keys(
373
- Ee.validations.typeMismatch
374
- ), Va = (t) => {
376
+ }, Ha = Object.keys(
377
+ Ae.validations.typeMismatch
378
+ ), Pa = (t) => {
375
379
  if (t)
376
380
  return typeof t == "string" ? { shortMessage: t, longMessage: t } : t;
377
- }, ot = (t) => {
381
+ }, Xe = (t) => {
378
382
  if (!t) return;
379
383
  if (typeof t == "string")
380
384
  return t;
385
+ if (t.shortMessage === t.longMessage)
386
+ return t.shortMessage;
381
387
  const { shortMessage: a, longMessage: e } = t;
382
388
  return `${a}: ${e}`;
383
- }, le = (t) => {
384
- const { t: a } = P(), e = O(), l = O(!1);
385
- K(
389
+ }, ae = (t) => {
390
+ const { t: a } = N(), e = T(), l = T(!1);
391
+ Y(
386
392
  () => t.props.modelValue,
387
393
  () => l.value = !0,
388
394
  { once: !0 }
389
395
  );
390
- const s = {
391
- mounted: (i) => {
392
- X(() => i.setCustomValidity(ot(t.props.customError) ?? "")), K(
393
- [() => t.props.customError, () => t.props.modelValue],
396
+ const n = {
397
+ mounted: (c) => {
398
+ Q(() => c.setCustomValidity(Xe(t.props.customError) ?? "")), Y(
399
+ // we need to watch all props instead of only modelValue so the validity is re-checked
400
+ // when the validation rules change
401
+ [() => t.props],
394
402
  () => {
395
- const u = Ca(i.validity);
396
- !e.value && u.valid || e.value && ka(u, e.value) || (e.value = u);
403
+ const i = Ia(c.validity);
404
+ !e.value && i.valid || e.value && Ta(i, e.value) || (e.value = i);
397
405
  },
398
- { immediate: !0 }
399
- ), K(
406
+ { immediate: !0, deep: !0 }
407
+ ), Y(
400
408
  [() => t.props.customError, e, l],
401
409
  () => {
402
410
  !l.value || !e.value || t.emit("validityChange", e.value);
@@ -405,40 +413,55 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
405
413
  );
406
414
  }
407
415
  }, o = h(() => {
408
- var m, y, d;
416
+ var d, m, v;
409
417
  if (!e.value || e.value.valid) return;
410
- const i = $a(e.value), u = Va(t.props.customError);
411
- if (u || i === "customError")
412
- return u || void 0;
413
- if (!i) return;
414
- if (i === "typeMismatch") {
415
- const f = Ma.includes(t.props.type) ? t.props.type : "generic";
418
+ const c = Aa(e.value), i = Pa(t.props.customError);
419
+ if (i || c === "customError")
420
+ return i || void 0;
421
+ if (!c) return;
422
+ if (c === "typeMismatch") {
423
+ const k = Ha.includes(t.props.type) ? t.props.type : "generic";
416
424
  return {
417
- longMessage: a.value(`validations.typeMismatch.${f}.fullError`, {
418
- value: (m = t.props.modelValue) == null ? void 0 : m.toString()
425
+ longMessage: a.value(`validations.typeMismatch.${k}.fullError`, {
426
+ value: (d = t.props.modelValue) == null ? void 0 : d.toString()
419
427
  }),
420
- shortMessage: a.value(`validations.typeMismatch.${f}.preview`)
428
+ shortMessage: a.value(`validations.typeMismatch.${k}.preview`)
421
429
  };
422
430
  }
423
- const c = {
424
- value: (y = t.props.modelValue) == null ? void 0 : y.toString(),
425
- n: ((d = t.props.modelValue) == null ? void 0 : d.toString().length) ?? 0,
431
+ const y = {
432
+ value: (m = t.props.modelValue) == null ? void 0 : m.toString(),
433
+ n: ((v = t.props.modelValue) == null ? void 0 : v.toString().length) ?? 0,
426
434
  minLength: t.props.minlength,
427
- maxLength: t.props.maxlength
435
+ maxLength: t.props.maxlength,
436
+ min: t.props.min,
437
+ max: t.props.max,
438
+ step: t.props.step
428
439
  };
429
440
  return {
430
- longMessage: a.value(`validations.${i}.fullError`, c),
431
- shortMessage: a.value(`validations.${i}.preview`)
441
+ longMessage: a.value(`validations.${c}.fullError`, y),
442
+ shortMessage: a.value(`validations.${c}.preview`)
432
443
  };
444
+ }), u = h(() => {
445
+ const c = [];
446
+ return t.props.hideLabel && c.push(t.props.label), o.value && c.push(Xe(o.value)), c.length ? c.join(`
447
+ `) : void 0;
433
448
  });
434
449
  return {
435
450
  /**
436
451
  * Directive to set the custom error message and emit validityChange event.
437
452
  */
438
- vCustomValidity: s,
439
- errorMessages: o
453
+ vCustomValidity: n,
454
+ /**
455
+ * A custom error or the default translation of the first invalid state if one exists.
456
+ */
457
+ errorMessages: o,
458
+ /**
459
+ * A combination of a label (if it is hidden) and the error message (if an error exists).
460
+ * Usage e.g. on OnyxRadioButton, OnyxCheckbox, OnyxSwitch where no error message footer exists.
461
+ */
462
+ title: u
440
463
  };
441
- }, Sa = { class: "onyx-checkbox__container" }, Ba = ["aria-label", "title", "indeterminate", "disabled", "required", "value", "autofocus"], $e = /* @__PURE__ */ k({
464
+ }, Da = ["title"], Na = { class: "onyx-checkbox__container" }, za = ["aria-label", "indeterminate", "disabled", "required", "value", "autofocus"], Ve = /* @__PURE__ */ w({
442
465
  __name: "OnyxCheckbox",
443
466
  props: {
444
467
  density: {},
@@ -458,33 +481,33 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
458
481
  },
459
482
  emits: ["update:modelValue", "validityChange"],
460
483
  setup(t, { emit: a }) {
461
- const e = t, l = a, s = h({
484
+ const e = t, l = a, n = h({
462
485
  get: () => e.modelValue,
463
- set: (m) => l("update:modelValue", m)
464
- }), { requiredMarkerClass: o, requiredTypeClass: i } = ye(e), { densityClass: u } = H(e), { vCustomValidity: c } = le({ props: e, emit: l });
465
- return (m, y) => e.skeleton ? (n(), p("div", {
486
+ set: (d) => l("update:modelValue", d)
487
+ }), { requiredMarkerClass: o, requiredTypeClass: u } = _e(e), { densityClass: c } = H(e), { vCustomValidity: i, title: y } = ae({ props: e, emit: l });
488
+ return (d, m) => e.skeleton ? (s(), p("div", {
466
489
  key: 0,
467
- class: g(["onyx-checkbox-skeleton", r(u)])
490
+ class: g(["onyx-checkbox-skeleton", r(c)])
468
491
  }, [
469
- V(U, { class: "onyx-checkbox-skeleton__input" }),
470
- e.hideLabel ? _("", !0) : (n(), x(U, {
492
+ M(U, { class: "onyx-checkbox-skeleton__input" }),
493
+ e.hideLabel ? _("", !0) : (s(), x(U, {
471
494
  key: 0,
472
495
  class: "onyx-checkbox-skeleton__label"
473
496
  }))
474
- ], 2)) : (n(), p("label", {
497
+ ], 2)) : (s(), p("label", {
475
498
  key: 1,
476
- class: g(["onyx-checkbox", [r(i), r(u)]])
499
+ class: g(["onyx-checkbox", [r(u), r(c)]]),
500
+ title: r(y)
477
501
  }, [
478
- v("div", Sa, [
479
- e.loading ? (n(), x(r(J), {
502
+ f("div", Na, [
503
+ e.loading ? (s(), x(X, {
480
504
  key: 0,
481
505
  class: "onyx-checkbox__loading",
482
506
  type: "circle"
483
- })) : G((n(), p("input", {
507
+ })) : K((s(), p("input", {
484
508
  key: 1,
485
- "onUpdate:modelValue": y[0] || (y[0] = (d) => s.value = d),
509
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => n.value = v),
486
510
  "aria-label": e.hideLabel ? e.label : void 0,
487
- title: e.hideLabel ? e.label : void 0,
488
511
  class: "onyx-checkbox__input",
489
512
  type: "checkbox",
490
513
  indeterminate: e.indeterminate,
@@ -492,42 +515,42 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
492
515
  required: e.required,
493
516
  value: e.value,
494
517
  autofocus: e.autofocus
495
- }, null, 8, Ba)), [
496
- [Je, s.value],
497
- [r(c)]
518
+ }, null, 8, za)), [
519
+ [ot, n.value],
520
+ [r(i)]
498
521
  ])
499
522
  ]),
500
- e.hideLabel ? _("", !0) : (n(), p(z, { key: 0 }, [
501
- v("p", {
523
+ e.hideLabel ? _("", !0) : (s(), p(R, { key: 0 }, [
524
+ f("p", {
502
525
  class: g(["onyx-checkbox__label", [
503
526
  `onyx-truncation-${e.truncation}`,
504
527
  // shows the required marker inline for multiline labels
505
528
  e.truncation === "multiline" ? r(o) : void 0
506
529
  ]])
507
- }, M(e.label), 3),
508
- e.truncation === "ellipsis" ? (n(), p("div", {
530
+ }, V(e.label), 3),
531
+ e.truncation === "ellipsis" ? (s(), p("div", {
509
532
  key: 0,
510
533
  class: g(["onyx-checkbox__marker", [r(o)]])
511
534
  }, null, 2)) : _("", !0)
512
535
  ], 64))
513
- ], 2));
536
+ ], 10, Da));
514
537
  }
515
- }), Oa = (t, a) => h(() => {
538
+ }), Ra = (t, a) => h(() => {
516
539
  const e = a.value.filter(
517
- (s) => t.value.includes(s)
540
+ (n) => t.value.includes(n)
518
541
  ), l = e.length === t.value.length;
519
542
  return {
520
543
  modelValue: l,
521
544
  indeterminate: !l && t.value.length && e.length ? !0 : void 0
522
545
  };
523
- }), nt = (t, a, e) => ({
546
+ }), ut = (t, a, e) => ({
524
547
  /**
525
548
  * Current "select all" checkbox state.
526
549
  * - checked if all options are checked
527
550
  * - indeterminate if at least one but not all options are checked
528
551
  * - unchecked if no options are checked
529
552
  */
530
- state: Oa(t, a),
553
+ state: Ra(t, a),
531
554
  /**
532
555
  * Provides an update for the checkbox list with
533
556
  * - all option values if "select all" was checked
@@ -535,18 +558,35 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
535
558
  * Does not touch the state of disabled checkboxes
536
559
  */
537
560
  handleChange: (l) => {
538
- const s = a.value.filter(
539
- (i) => !t.value.includes(i)
540
- ), o = l ? s.concat(t.value) : s;
561
+ const n = a.value.filter(
562
+ (u) => !t.value.includes(u)
563
+ ), o = l ? n.concat(t.value) : n;
541
564
  e(o);
542
565
  }
543
- }), Ea = ["disabled"], Ta = {
566
+ }), ie = /* @__PURE__ */ w({
567
+ __name: "OnyxHeadline",
568
+ props: {
569
+ is: {}
570
+ },
571
+ setup(t) {
572
+ const a = t;
573
+ return (e, l) => (s(), x(ce(a.is), {
574
+ class: g(["onyx-headline", `onyx-headline--${a.is}`])
575
+ }, {
576
+ default: $(() => [
577
+ b(e.$slots, "default")
578
+ ]),
579
+ _: 3
580
+ }, 8, ["class"]));
581
+ }
582
+ }), Ua = ["disabled"], Fa = {
544
583
  key: 0,
545
584
  class: "onyx-checkbox-group__label"
546
- }, $n = /* @__PURE__ */ k({
585
+ }, qn = /* @__PURE__ */ w({
547
586
  __name: "OnyxCheckboxGroup",
548
587
  props: {
549
588
  density: {},
589
+ truncation: { default: "ellipsis" },
550
590
  options: {},
551
591
  modelValue: { default: () => [] },
552
592
  headline: {},
@@ -557,63 +597,64 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
557
597
  },
558
598
  emits: ["update:modelValue"],
559
599
  setup(t, { emit: a }) {
560
- const e = t, { densityClass: l } = H(e), s = a, { t: o } = P(), i = (y, d) => {
561
- const f = d ? [...e.modelValue, y] : e.modelValue.filter((C) => C !== y);
562
- s("update:modelValue", f);
563
- }, u = h(
564
- () => e.options.filter((y) => !y.disabled && !y.skeleton).map(({ value: y }) => y)
565
- ), c = nt(
566
- u,
600
+ const e = t, { densityClass: l } = H(e), n = a, { t: o } = N(), u = (d, m) => {
601
+ const v = m ? [...e.modelValue, d] : e.modelValue.filter((k) => k !== d);
602
+ n("update:modelValue", v);
603
+ }, c = h(
604
+ () => e.options.filter((d) => !d.disabled && !d.skeleton).map(({ value: d }) => d)
605
+ ), i = ut(
606
+ c,
567
607
  h(() => e.modelValue),
568
- (y) => s("update:modelValue", y)
569
- ), m = h(() => {
570
- var d;
571
- const y = o.value("selections.selectAll");
572
- return typeof e.withCheckAll == "boolean" ? y : ((d = e.withCheckAll) == null ? void 0 : d.label) ?? y;
608
+ (d) => n("update:modelValue", d)
609
+ ), y = h(() => {
610
+ var m;
611
+ const d = o.value("selections.selectAll");
612
+ return typeof e.withCheckAll == "boolean" ? d : ((m = e.withCheckAll) == null ? void 0 : m.label) ?? d;
573
613
  });
574
- return (y, d) => (n(), p("fieldset", {
614
+ return (d, m) => (s(), p("fieldset", {
575
615
  class: g(["onyx-checkbox-group", r(l)]),
576
616
  disabled: e.disabled
577
617
  }, [
578
- e.headline ? (n(), p("legend", Ta, [
579
- V(r(ne), { is: "h3" }, {
618
+ e.headline ? (s(), p("legend", Fa, [
619
+ M(ie, { is: "h3" }, {
580
620
  default: $(() => [
581
- F(M(e.headline), 1)
621
+ Z(V(e.headline), 1)
582
622
  ]),
583
623
  _: 1
584
624
  })
585
625
  ])) : _("", !0),
586
- v("div", {
626
+ f("div", {
587
627
  class: g(["onyx-checkbox-group__content", {
588
628
  "onyx-checkbox-group__content--horizontal": e.direction === "horizontal",
589
629
  "onyx-checkbox-group__content--vertical": e.direction === "vertical"
590
630
  }])
591
631
  }, [
592
- e.skeleton === void 0 ? (n(), p(z, { key: 0 }, [
593
- e.withCheckAll ? (n(), x($e, B({ key: 0 }, r(c).state.value, {
594
- label: m.value,
632
+ e.skeleton === void 0 ? (s(), p(R, { key: 0 }, [
633
+ e.withCheckAll ? (s(), x(Ve, O({ key: 0 }, r(i).state.value, {
634
+ label: y.value,
595
635
  value: "all",
596
636
  class: "onyx-checkbox-group__option onyx-checkbox-group__check-all",
597
- "onUpdate:modelValue": r(c).handleChange
637
+ "onUpdate:modelValue": r(i).handleChange
598
638
  }), null, 16, ["label", "onUpdate:modelValue"])) : _("", !0),
599
- (n(!0), p(z, null, W(e.options, (f) => (n(), x($e, B({
600
- key: f.value.toString(),
639
+ (s(!0), p(R, null, J(e.options, (v) => (s(), x(Ve, O({
640
+ key: v.value.toString(),
601
641
  ref_for: !0
602
- }, f, {
603
- "model-value": e.modelValue.includes(f.value),
642
+ }, v, {
643
+ truncation: v.truncation ?? e.truncation,
644
+ "model-value": e.modelValue.includes(v.value),
604
645
  class: "onyx-checkbox-group__option",
605
- "onUpdate:modelValue": (C) => i(f.value, C)
606
- }), null, 16, ["model-value", "onUpdate:modelValue"]))), 128))
607
- ], 64)) : (n(!0), p(z, { key: 1 }, W(e.skeleton, (f) => (n(), x($e, {
608
- key: f,
609
- label: `Skeleton ${f}`,
610
- value: `skeleton-${f}`,
646
+ "onUpdate:modelValue": (k) => u(v.value, k)
647
+ }), null, 16, ["truncation", "model-value", "onUpdate:modelValue"]))), 128))
648
+ ], 64)) : (s(!0), p(R, { key: 1 }, J(e.skeleton, (v) => (s(), x(Ve, {
649
+ key: v,
650
+ label: `Skeleton ${v}`,
651
+ value: `skeleton-${v}`,
611
652
  skeleton: ""
612
653
  }, null, 8, ["label", "value"]))), 128))
613
654
  ], 2)
614
- ], 10, Ea));
655
+ ], 10, Ua));
615
656
  }
616
- }), Ia = ["aria-modal", "aria-label", "role"], La = /* @__PURE__ */ k({
657
+ }), qa = ["aria-modal", "aria-label", "role"], Za = /* @__PURE__ */ w({
617
658
  __name: "OnyxDialog",
618
659
  props: {
619
660
  density: {},
@@ -624,48 +665,54 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
624
665
  },
625
666
  emits: ["close"],
626
667
  setup(t, { emit: a }) {
627
- const e = t, l = a, s = O(), { densityClass: o } = H(e), i = () => {
628
- var u, c;
629
- e.modal ? (u = s.value) == null || u.showModal() : (c = s.value) == null || c.show();
668
+ const e = t, l = a, n = T(), { densityClass: o } = H(e), u = () => {
669
+ var c, i;
670
+ e.modal ? (c = n.value) == null || c.showModal() : (i = n.value) == null || i.show();
630
671
  };
631
- return K([s, () => e.open], () => {
632
- var u;
633
- e.open ? i() : (u = s.value) == null || u.close();
634
- }), K(
672
+ return Y([n, () => e.open], () => {
673
+ var c;
674
+ e.open ? u() : (c = n.value) == null || c.close();
675
+ }), Y(
635
676
  () => e.modal,
636
677
  () => {
637
- var u;
638
- (u = s.value) != null && u.open && (s.value.close(), i());
678
+ var c;
679
+ (c = n.value) != null && c.open && (n.value.close(), u());
639
680
  }
640
- ), (u, c) => e.open ? (n(), p("dialog", {
681
+ ), (c, i) => e.open ? (s(), p("dialog", {
641
682
  key: 0,
642
683
  ref_key: "dialogRef",
643
- ref: s,
684
+ ref: n,
644
685
  class: g(["onyx-dialog", r(o), "onyx-truncation-multiline"]),
645
686
  "aria-modal": e.modal,
646
687
  "aria-label": e.label,
647
688
  role: e.alert ? "alertdialog" : void 0,
648
- onCancel: c[0] || (c[0] = Le((m) => l("close"), ["prevent"]))
689
+ onCancel: i[0] || (i[0] = De((y) => l("close"), ["prevent"]))
649
690
  }, [
650
- b(u.$slots, "default")
651
- ], 42, Ia)) : _("", !0);
691
+ b(c.$slots, "default")
692
+ ], 42, qa)) : _("", !0);
652
693
  }
653
- }), st = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>', Aa = { class: "onyx-empty" }, Ha = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, rt = /* @__PURE__ */ k({
694
+ }), ct = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M25.899 6.1C23.166 3.367 19.583 2 16 2S8.834 3.367 6.101 6.1c-5.467 5.467-5.467 14.332 0 19.799C8.834 28.633 12.417 30 16 30s7.166-1.367 9.899-4.101c5.468-5.467 5.468-14.331 0-19.799m-1.414 18.385C22.219 26.752 19.205 28 16 28s-6.219-1.248-8.485-3.515C5.248 22.219 4 19.205 4 16s1.248-6.219 3.515-8.485C9.781 5.248 12.795 4 16 4s6.219 1.248 8.485 3.515S28 12.795 28 16s-1.248 6.219-3.515 8.485"/><path d="M20.814 9.771 16 14.586l-4.814-4.815-1.415 1.414L14.586 16l-4.815 4.814 1.415 1.415L16 17.414l4.814 4.815 1.415-1.415L17.414 16l4.815-4.815z"/></svg>', Ga = { class: "onyx-empty__label onyx-text onyx-truncation-multiline" }, dt = /* @__PURE__ */ w({
654
695
  __name: "OnyxEmpty",
696
+ props: {
697
+ density: {}
698
+ },
655
699
  setup(t) {
656
- return (a, e) => (n(), p("div", Aa, [
657
- b(a.$slots, "icon", {}, () => [
658
- V(L, {
659
- icon: r(st),
700
+ const a = t, { densityClass: e } = H(a);
701
+ return (l, n) => (s(), p("div", {
702
+ class: g(["onyx-empty", r(e)])
703
+ }, [
704
+ b(l.$slots, "icon", {}, () => [
705
+ M(A, {
706
+ icon: r(ct),
660
707
  size: "48px"
661
708
  }, null, 8, ["icon"])
662
709
  ]),
663
- v("div", Ha, [
664
- b(a.$slots, "default")
710
+ f("div", Ga, [
711
+ b(l.$slots, "default")
665
712
  ])
666
- ]));
713
+ ], 2));
667
714
  }
668
- }), Pa = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>', Da = (t) => /^http(s?):\/\//.test(t), Pe = /* @__PURE__ */ k({
715
+ }), Ka = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M12.2 10.55v2h5.836l-8.193 8.193 1.414 1.414 8.193-8.193V19.8h2v-9.25z"/></svg>', ja = (t) => /^http(s?):\/\//.test(t), Ue = /* @__PURE__ */ w({
669
716
  __name: "OnyxExternalLinkIcon",
670
717
  props: {
671
718
  href: {},
@@ -674,32 +721,16 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
674
721
  setup(t) {
675
722
  const a = t, e = h(() => {
676
723
  const l = a.withExternalIcon;
677
- return l !== "auto" ? l : Da(a.href ?? "");
724
+ return l !== "auto" ? l : ja(a.href ?? "");
678
725
  });
679
- return (l, s) => e.value ? (n(), x(L, {
726
+ return (l, n) => e.value ? (s(), x(A, {
680
727
  key: 0,
681
728
  class: "onyx-external-link-icon",
682
- icon: r(Pa),
729
+ icon: r(Ka),
683
730
  size: "16px"
684
731
  }, null, 8, ["icon"])) : _("", !0);
685
732
  }
686
- }), ne = /* @__PURE__ */ k({
687
- __name: "OnyxHeadline",
688
- props: {
689
- is: {}
690
- },
691
- setup(t) {
692
- const a = t;
693
- return (e, l) => (n(), x(re(a.is), {
694
- class: g(["onyx-headline", `onyx-headline--${a.is}`])
695
- }, {
696
- default: $(() => [
697
- b(e.$slots, "default")
698
- ]),
699
- _: 3
700
- }, 8, ["class"]));
701
- }
702
- }), Mn = ["h1", "h2", "h3", "h4", "h5", "h6"], Vn = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"], za = ["aria-label", "title", "type", "disabled", "autofocus"], Na = /* @__PURE__ */ k({
733
+ }), Zn = ["h1", "h2", "h3", "h4", "h5", "h6"], Gn = ["12px", "16px", "24px", "32px", "48px", "64px", "96px"], Ya = ["aria-label", "title", "type", "disabled", "autofocus"], Wa = /* @__PURE__ */ w({
703
734
  __name: "OnyxIconButton",
704
735
  props: {
705
736
  density: {},
@@ -714,11 +745,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
714
745
  },
715
746
  emits: ["click"],
716
747
  setup(t, { emit: a }) {
717
- const e = t, { densityClass: l } = H(e), s = a;
718
- return (o, i) => e.skeleton ? (n(), x(U, {
748
+ const e = t, { densityClass: l } = H(e), n = a;
749
+ return (o, u) => e.skeleton ? (s(), x(U, {
719
750
  key: 0,
720
751
  class: g(["onyx-icon-button-skeleton", r(l)])
721
- }, null, 8, ["class"])) : (n(), p("button", {
752
+ }, null, 8, ["class"])) : (s(), p("button", {
722
753
  key: 1,
723
754
  class: g(["onyx-icon-button", [
724
755
  `onyx-icon-button--${e.color}`,
@@ -730,26 +761,36 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
730
761
  type: e.type,
731
762
  disabled: e.disabled || e.loading,
732
763
  autofocus: e.autofocus,
733
- onClick: i[0] || (i[0] = (u) => s("click"))
764
+ onClick: u[0] || (u[0] = (c) => n("click"))
734
765
  }, [
735
- e.loading ? (n(), x(J, {
766
+ e.loading ? (s(), x(X, {
736
767
  key: 0,
737
768
  type: "circle"
738
- })) : e.icon ? (n(), x(L, {
769
+ })) : e.icon ? (s(), x(A, {
739
770
  key: 1,
740
771
  icon: e.icon
741
772
  }, null, 8, ["icon"])) : b(o.$slots, "default", { key: 2 })
742
- ], 10, za));
773
+ ], 10, Ya));
743
774
  }
744
- }), it = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>', ie = (t) => t, Ua = /* @__PURE__ */ (() => {
775
+ }), pt = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="M15 8h2v2h-2zm0 5h2v11h-2z"/></svg>', oe = (t) => t;
776
+ function mt() {
777
+ const t = It();
778
+ return h({
779
+ set: (a) => {
780
+ t.value = a != null && "$el" in a ? a.$el : a;
781
+ },
782
+ get: () => t.value
783
+ });
784
+ }
785
+ const Xa = /* @__PURE__ */ (() => {
745
786
  let t = 1;
746
787
  return () => t++;
747
- })(), ee = (t) => `${t}-${Ua()}`, Fa = (t, a) => Object.entries(t).every(
788
+ })(), W = (t) => `${t}-${Xa()}`, Ja = (t, a) => Object.entries(t).every(
748
789
  ([e, l]) => a[e] === l
749
- ), Ra = (t, a) => typeof a == "string" ? t.key === a : Fa(
790
+ ), Qa = (t, a) => typeof a == "string" ? t.key === a : Ja(
750
791
  { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1, ...a },
751
792
  t
752
- ), Te = (t) => !Za.has(t), qa = [
793
+ ), He = (t) => !tl.has(t), el = [
753
794
  "Unidentified",
754
795
  "Alt",
755
796
  "AltGraph",
@@ -1057,58 +1098,89 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1057
1098
  "MediaPreviousTrack",
1058
1099
  "Power",
1059
1100
  "Unidentified"
1060
- ], Za = new Set(qa), ct = (t, a) => {
1101
+ ], tl = new Set(el), le = At(/* @__PURE__ */ new Map()), al = (t, a) => {
1102
+ if (a != null && a.size) {
1103
+ le.set(t, a);
1104
+ return;
1105
+ }
1106
+ le.delete(t), document.removeEventListener(t, yt);
1107
+ }, Je = (t, a) => {
1108
+ const e = le.get(t);
1109
+ e == null || e.delete(a), al(t, e);
1110
+ }, ll = (t, a) => {
1111
+ const e = le.get(t) ?? /* @__PURE__ */ new Set();
1112
+ e.add(a), le.set(t, e), document.addEventListener(t, yt);
1113
+ }, yt = (t) => {
1114
+ var e;
1115
+ const a = t.type;
1116
+ (e = le.get(a)) == null || e.forEach((l) => l(t));
1117
+ }, ht = ({
1118
+ type: t,
1119
+ listener: a,
1120
+ disabled: e
1121
+ }) => {
1122
+ Ne(
1123
+ () => Q(
1124
+ () => e != null && e.value ? Je(t, a) : ll(t, a)
1125
+ )
1126
+ ), ye(() => Je(t, a));
1127
+ }, vt = ({ element: t, onOutsideClick: a, disabled: e }) => {
1128
+ ht({ type: "click", listener: ({ target: n }) => {
1129
+ var u;
1130
+ !((u = t.value) != null && u.contains(n)) && a();
1131
+ }, disabled: e });
1132
+ }, ft = (t, a) => {
1061
1133
  let e;
1062
1134
  return (...l) => {
1063
1135
  clearTimeout(e), e = setTimeout(() => t(...l), a);
1064
1136
  };
1065
- }, ut = (t, a = 500) => {
1137
+ }, _t = (t, a = 500) => {
1066
1138
  let e = "";
1067
- const l = ct(() => e = "", a);
1068
- return (s) => {
1069
- Te(s.key) && (l(), e = `${e}${s.key}`, t(e));
1139
+ const l = ft(() => e = "", a);
1140
+ return (n) => {
1141
+ He(n.key) && (l(), e = `${e}${n.key}`, t(e));
1070
1142
  };
1071
- }, Ka = ie(
1143
+ }, ol = oe(
1072
1144
  (t) => {
1073
- const a = h(() => r(t.multiple) ?? !1), e = /* @__PURE__ */ new Map(), l = (c) => (e.has(c) || e.set(c, ee("listbox-option")), e.get(c)), s = O(!1);
1074
- X(() => {
1075
- var m;
1076
- if (t.activeOption.value == null || !s.value && !t.controlled)
1145
+ const a = h(() => r(t.multiple) ?? !1), e = /* @__PURE__ */ new Map(), l = (i) => (e.has(i) || e.set(i, W("listbox-option")), e.get(i)), n = T(!1);
1146
+ Q(() => {
1147
+ var y;
1148
+ if (t.activeOption.value == null || !n.value && !t.controlled)
1077
1149
  return;
1078
- const c = l(t.activeOption.value);
1079
- (m = document.getElementById(c)) == null || m.scrollIntoView({ block: "nearest", inline: "nearest" });
1150
+ const i = l(t.activeOption.value);
1151
+ (y = document.getElementById(i)) == null || y.scrollIntoView({ block: "nearest", inline: "nearest" });
1080
1152
  });
1081
- const o = ut((c) => {
1082
- var m;
1083
- return (m = t.onTypeAhead) == null ? void 0 : m.call(t, c);
1084
- }), i = (c) => {
1085
- var m, y, d, f, C, T, N;
1086
- switch (c.key) {
1153
+ const o = _t((i) => {
1154
+ var y;
1155
+ return (y = t.onTypeAhead) == null ? void 0 : y.call(t, i);
1156
+ }), u = (i) => {
1157
+ var y, d, m, v, k, S, B;
1158
+ switch (i.key) {
1087
1159
  case " ":
1088
- c.preventDefault(), t.activeOption.value != null && ((m = t.onSelect) == null || m.call(t, t.activeOption.value));
1160
+ i.preventDefault(), t.activeOption.value != null && ((y = t.onSelect) == null || y.call(t, t.activeOption.value));
1089
1161
  break;
1090
1162
  case "ArrowUp":
1091
- if (c.preventDefault(), t.activeOption.value == null) {
1092
- (y = t.onActivateLast) == null || y.call(t);
1163
+ if (i.preventDefault(), t.activeOption.value == null) {
1164
+ (d = t.onActivateLast) == null || d.call(t);
1093
1165
  return;
1094
1166
  }
1095
- (d = t.onActivatePrevious) == null || d.call(t, t.activeOption.value);
1167
+ (m = t.onActivatePrevious) == null || m.call(t, t.activeOption.value);
1096
1168
  break;
1097
1169
  case "ArrowDown":
1098
- if (c.preventDefault(), t.activeOption.value == null) {
1099
- (f = t.onActivateFirst) == null || f.call(t);
1170
+ if (i.preventDefault(), t.activeOption.value == null) {
1171
+ (v = t.onActivateFirst) == null || v.call(t);
1100
1172
  return;
1101
1173
  }
1102
- (C = t.onActivateNext) == null || C.call(t, t.activeOption.value);
1174
+ (k = t.onActivateNext) == null || k.call(t, t.activeOption.value);
1103
1175
  break;
1104
1176
  case "Home":
1105
- c.preventDefault(), (T = t.onActivateFirst) == null || T.call(t);
1177
+ i.preventDefault(), (S = t.onActivateFirst) == null || S.call(t);
1106
1178
  break;
1107
1179
  case "End":
1108
- c.preventDefault(), (N = t.onActivateLast) == null || N.call(t);
1180
+ i.preventDefault(), (B = t.onActivateLast) == null || B.call(t);
1109
1181
  break;
1110
1182
  default:
1111
- o(c);
1183
+ o(i);
1112
1184
  }
1113
1185
  };
1114
1186
  return {
@@ -1125,251 +1197,247 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1125
1197
  "aria-label": r(t.label),
1126
1198
  tabindex: "0",
1127
1199
  "aria-activedescendant": t.activeOption.value != null ? l(t.activeOption.value) : void 0,
1128
- onFocus: () => s.value = !0,
1129
- onBlur: () => s.value = !1,
1130
- onKeydown: i
1200
+ onFocus: () => n.value = !0,
1201
+ onBlur: () => n.value = !1,
1202
+ onKeydown: u
1131
1203
  }
1132
1204
  ),
1133
- group: h(() => (c) => ({
1205
+ group: h(() => (i) => ({
1134
1206
  role: "group",
1135
- "aria-label": c.label
1207
+ "aria-label": i.label
1136
1208
  })),
1137
- option: h(() => (c) => {
1138
- const m = c.selected ?? !1;
1209
+ option: h(() => (i) => {
1210
+ const y = i.selected ?? !1;
1139
1211
  return {
1140
- id: l(c.value),
1212
+ id: l(i.value),
1141
1213
  role: "option",
1142
- "aria-label": c.label,
1143
- "aria-disabled": c.disabled,
1144
- "aria-checked": a.value ? m : void 0,
1145
- "aria-selected": a.value ? void 0 : m,
1214
+ "aria-label": i.label,
1215
+ "aria-disabled": i.disabled,
1216
+ "aria-checked": a.value ? y : void 0,
1217
+ "aria-selected": a.value ? void 0 : y,
1146
1218
  onClick: () => {
1147
- var y;
1148
- return !c.disabled && ((y = t.onSelect) == null ? void 0 : y.call(t, c.value));
1219
+ var d;
1220
+ return !i.disabled && ((d = t.onSelect) == null ? void 0 : d.call(t, i.value));
1149
1221
  }
1150
1222
  };
1151
1223
  })
1152
1224
  },
1153
1225
  state: {
1154
- isFocused: s
1226
+ isFocused: n
1155
1227
  },
1156
1228
  internals: {
1157
1229
  getOptionId: l
1158
1230
  }
1159
1231
  };
1160
1232
  }
1161
- ), dt = (t) => {
1162
- const a = (e) => {
1163
- const l = t.queryComponent();
1164
- if (!l || !(e.target instanceof Node)) return;
1165
- !l.contains(e.target) && t.onOutsideClick();
1166
- };
1167
- Ae(() => {
1168
- X(() => {
1169
- var e;
1170
- (e = t.disabled) != null && e.value ? document.removeEventListener("click", a) : document.addEventListener("click", a);
1171
- });
1172
- }), pe(() => {
1173
- document.removeEventListener("click", a);
1174
- });
1175
- }, pt = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], mt = [
1233
+ ), xt = ["ArrowDown", "ArrowUp", " ", "Enter", "Home", "End"], bt = [
1176
1234
  "Escape",
1177
1235
  { key: "ArrowUp", altKey: !0 },
1178
1236
  "Enter",
1179
1237
  "Tab"
1180
- ], Ga = ["Enter", " "], ja = ["Enter"], Ya = (t, a) => Ie(t, a ? ja : Ga), Ie = (t, a) => a.some((e) => Ra(t, e)), Wa = ie(
1238
+ ], nl = ["Enter", " "], sl = ["Enter"], rl = (t, a) => Pe(t, a ? sl : nl), Pe = (t, a) => a.some((e) => Qa(t, e)), il = oe(
1181
1239
  ({
1182
- inputValue: t,
1183
- autocomplete: a,
1184
- onAutocomplete: e,
1185
- onTypeAhead: l,
1186
- multiple: s,
1187
- label: o,
1188
- listLabel: i,
1240
+ autocomplete: t,
1241
+ onAutocomplete: a,
1242
+ onTypeAhead: e,
1243
+ multiple: l,
1244
+ label: n,
1245
+ listLabel: o,
1189
1246
  isExpanded: u,
1190
1247
  activeOption: c,
1191
- onToggle: m,
1248
+ onToggle: i,
1192
1249
  onSelect: y,
1193
1250
  onActivateFirst: d,
1194
- onActivateLast: f,
1195
- onActivateNext: C,
1196
- onActivatePrevious: T,
1197
- templateRef: N
1251
+ onActivateLast: m,
1252
+ onActivateNext: v,
1253
+ onActivatePrevious: k,
1254
+ templateRef: S
1198
1255
  }) => {
1199
- const Q = ee("comboBox-control"), I = h(() => r(a)), A = h(() => r(u)), j = h(() => r(s)), ve = (S) => {
1200
- const we = S.target;
1201
- I.value !== "none" && (e == null || e(we.value));
1202
- }, fe = ut((S) => l == null ? void 0 : l(S)), ce = (S) => {
1203
- y == null || y(S), r(j) || m == null || m();
1204
- }, _e = (S) => {
1205
- switch (S.key) {
1256
+ const B = W("comboBox-control"), P = h(() => r(t)), E = h(() => r(u)), z = h(() => r(l)), ne = (L) => {
1257
+ const Me = L.target;
1258
+ P.value !== "none" && (a == null || a(Me.value));
1259
+ }, se = _t((L) => e == null ? void 0 : e(L)), de = (L) => {
1260
+ y == null || y(L), r(z) || i == null || i();
1261
+ }, ge = (L) => {
1262
+ switch (L.key) {
1206
1263
  case "ArrowUp":
1207
- if (S.preventDefault(), c.value == null)
1208
- return f == null ? void 0 : f();
1209
- T == null || T(c.value);
1264
+ if (L.preventDefault(), c.value == null)
1265
+ return m == null ? void 0 : m();
1266
+ k == null || k(c.value);
1210
1267
  break;
1211
1268
  case "ArrowDown":
1212
- if (S.preventDefault(), c.value == null)
1269
+ if (L.preventDefault(), c.value == null)
1213
1270
  return d == null ? void 0 : d();
1214
- C == null || C(c.value);
1271
+ v == null || v(c.value);
1215
1272
  break;
1216
1273
  case "Home":
1217
- S.preventDefault(), d == null || d();
1274
+ L.preventDefault(), d == null || d();
1218
1275
  break;
1219
1276
  case "End":
1220
- S.preventDefault(), f == null || f();
1277
+ L.preventDefault(), m == null || m();
1221
1278
  break;
1222
1279
  }
1223
- }, xe = (S) => {
1224
- if (S.key === "Enter" && S.preventDefault(), !A.value && Ie(S, pt))
1225
- return m == null || m(), S.key === " " && S.preventDefault(), S.key === "End" ? f == null ? void 0 : f() : d == null ? void 0 : d();
1226
- if (Ya(S, j.value))
1227
- return ce(c.value);
1228
- if (A.value && Ie(S, mt))
1229
- return m == null ? void 0 : m();
1230
- if (I.value === "none" && Te(S.key))
1231
- return !A.value && (m == null || m()), fe(S);
1232
- if (I.value !== "none" && Te(S.key)) {
1233
- !A.value && (m == null || m());
1280
+ }, ke = (L) => {
1281
+ if (L.key === "Enter" && L.preventDefault(), !E.value && Pe(L, xt))
1282
+ return i == null || i(), L.key === " " && L.preventDefault(), L.key === "End" ? m == null ? void 0 : m() : d == null ? void 0 : d();
1283
+ if (rl(L, z.value))
1284
+ return de(c.value);
1285
+ if (E.value && Pe(L, bt))
1286
+ return i == null ? void 0 : i();
1287
+ if (P.value === "none" && He(L.key))
1288
+ return !E.value && (i == null || i()), se(L);
1289
+ if (P.value !== "none" && He(L.key)) {
1290
+ !E.value && (i == null || i());
1234
1291
  return;
1235
1292
  }
1236
- return _e(S);
1237
- }, oe = I.value !== "none" ? {
1238
- "aria-autocomplete": I.value,
1293
+ return ge(L);
1294
+ }, we = P.value !== "none" ? {
1295
+ "aria-autocomplete": P.value,
1239
1296
  type: "text"
1240
1297
  } : null, {
1241
- elements: { option: ue, group: be, listbox: ge },
1242
- internals: { getOptionId: ke }
1243
- } = Ka({
1244
- label: i,
1245
- multiple: j,
1298
+ elements: { option: Ce, group: $e, listbox: re },
1299
+ internals: { getOptionId: pe }
1300
+ } = ol({
1301
+ label: o,
1302
+ multiple: z,
1246
1303
  controlled: !0,
1247
1304
  activeOption: c,
1248
- onSelect: ce
1305
+ onSelect: de
1249
1306
  });
1250
- return dt({
1251
- queryComponent: () => N.value,
1307
+ return vt({
1308
+ element: S,
1252
1309
  onOutsideClick() {
1253
- A.value && (m == null || m(!0));
1310
+ E.value && (i == null || i(!0));
1254
1311
  }
1255
1312
  }), {
1256
1313
  elements: {
1257
- option: ue,
1258
- group: be,
1314
+ option: Ce,
1315
+ group: $e,
1259
1316
  /**
1260
1317
  * The listbox associated with the combobox.
1261
1318
  */
1262
1319
  listbox: h(() => ({
1263
- ...ge.value,
1264
- id: Q,
1320
+ ...re.value,
1321
+ id: B,
1265
1322
  // preventDefault to not lose focus of the combobox
1266
- onMousedown: (S) => S.preventDefault()
1323
+ onMousedown: (L) => L.preventDefault()
1267
1324
  })),
1268
1325
  /**
1269
1326
  * An input that controls another element, that can dynamically pop-up to help the user set the value of the input.
1270
1327
  * The input MAY be either a single-line text field that supports editing and typing or an element that only displays the current value of the combobox.
1271
1328
  */
1272
1329
  input: h(() => ({
1273
- value: t.value,
1274
1330
  role: "combobox",
1275
- "aria-expanded": A.value,
1276
- "aria-controls": Q,
1277
- "aria-label": r(o),
1278
- "aria-activedescendant": c.value != null ? ke(c.value) : void 0,
1279
- onInput: ve,
1280
- onKeydown: xe,
1281
- ...oe
1331
+ "aria-expanded": E.value,
1332
+ "aria-controls": B,
1333
+ "aria-label": r(n),
1334
+ "aria-activedescendant": c.value != null ? pe(c.value) : void 0,
1335
+ onInput: ne,
1336
+ onKeydown: ke,
1337
+ ...we
1282
1338
  })),
1283
1339
  /**
1284
1340
  * An optional button to control the visibility of the popup.
1285
1341
  */
1286
1342
  button: h(() => ({
1287
1343
  tabindex: "-1",
1288
- onClick: () => m == null ? void 0 : m()
1344
+ onClick: () => i == null ? void 0 : i()
1289
1345
  }))
1290
1346
  }
1291
1347
  };
1292
1348
  }
1293
- ), Xa = ie(() => {
1294
- const t = ee("menu"), a = ee("menu-button"), e = O(!1), l = ct(
1295
- (u) => e.value = u,
1296
- 200
1297
- ), s = h(() => ({
1298
- onMouseover: () => l(!0),
1299
- onMouseout: () => l(!1),
1300
- onFocusin: () => e.value = !0,
1301
- onFocusout: () => e.value = !1
1302
- })), o = (u) => {
1303
- const c = document.activeElement, m = (c == null ? void 0 : c.closest('[role="menu"]')) || document.getElementById(t);
1304
- if (!m) return;
1305
- const y = [...m.querySelectorAll('[role="menuitem"]')];
1306
- let d = 0;
1307
- if (c) {
1308
- const C = y.indexOf(c);
1309
- switch (u) {
1310
- case "next":
1311
- d = C + 1;
1312
- break;
1313
- case "prev":
1314
- d = C - 1;
1315
- break;
1316
- case "first":
1317
- d = 0;
1318
- break;
1319
- case "last":
1320
- d = y.length - 1;
1321
- break;
1349
+ ), ul = oe(
1350
+ ({ isExpanded: t, onToggle: a }) => {
1351
+ const e = W("menu-button-root"), l = W("menu-button-list"), n = mt(), o = W("menu-button-button");
1352
+ ht({
1353
+ type: "keydown",
1354
+ listener: (y) => y.key === "Escape" && t.value && a(),
1355
+ disabled: h(() => !t.value)
1356
+ });
1357
+ const u = ft(
1358
+ (y) => t.value !== y && a(),
1359
+ 200
1360
+ ), c = (y) => {
1361
+ const d = document.activeElement, m = (d == null ? void 0 : d.closest('[role="menu"]')) || n.value;
1362
+ if (!m) return;
1363
+ const v = [...m.querySelectorAll('[role="menuitem"]')];
1364
+ let k = 0;
1365
+ if (d) {
1366
+ const B = v.indexOf(d);
1367
+ switch (y) {
1368
+ case "next":
1369
+ k = B + 1;
1370
+ break;
1371
+ case "prev":
1372
+ k = B - 1;
1373
+ break;
1374
+ case "first":
1375
+ k = 0;
1376
+ break;
1377
+ case "last":
1378
+ k = v.length - 1;
1379
+ break;
1380
+ }
1322
1381
  }
1323
- }
1324
- const f = y[d];
1325
- f == null || f.focus();
1326
- }, i = (u) => {
1327
- switch (u.key) {
1328
- case "ArrowDown":
1329
- case "ArrowRight":
1330
- u.preventDefault(), o("next");
1331
- break;
1332
- case "ArrowUp":
1333
- case "ArrowLeft":
1334
- u.preventDefault(), o("prev");
1335
- break;
1336
- case "Home":
1337
- u.preventDefault(), o("first");
1338
- break;
1339
- case "End":
1340
- u.preventDefault(), o("last");
1341
- break;
1342
- case " ":
1343
- u.preventDefault(), u.target.click();
1344
- break;
1345
- }
1346
- };
1347
- return {
1348
- state: { isExpanded: e },
1349
- elements: {
1350
- button: h(
1351
- () => ({
1352
- "aria-controls": t,
1353
- "aria-expanded": e.value,
1354
- "aria-haspopup": !0,
1355
- id: a,
1356
- ...s.value,
1357
- onKeydown: i
1358
- })
1359
- ),
1360
- flyout: {
1361
- ...s.value
1362
- },
1363
- menu: {
1364
- id: t,
1365
- role: "menu",
1366
- "aria-labelledby": a,
1367
- onKeydown: i
1368
- },
1369
- ...yt({}).elements
1370
- }
1371
- };
1372
- }), yt = ie(() => ({
1382
+ const S = v[k];
1383
+ S == null || S.focus();
1384
+ };
1385
+ return {
1386
+ elements: {
1387
+ root: {
1388
+ id: e,
1389
+ onKeydown: (y) => {
1390
+ switch (y.key) {
1391
+ case "ArrowDown":
1392
+ case "ArrowRight":
1393
+ y.preventDefault(), c("next");
1394
+ break;
1395
+ case "ArrowUp":
1396
+ case "ArrowLeft":
1397
+ y.preventDefault(), c("prev");
1398
+ break;
1399
+ case "Home":
1400
+ y.preventDefault(), c("first");
1401
+ break;
1402
+ case "End":
1403
+ y.preventDefault(), c("last");
1404
+ break;
1405
+ case " ":
1406
+ y.preventDefault(), y.target.click();
1407
+ break;
1408
+ case "Escape":
1409
+ y.preventDefault(), t.value && a();
1410
+ break;
1411
+ }
1412
+ },
1413
+ onMouseover: () => u(!0),
1414
+ onMouseout: () => u(!1),
1415
+ onFocusout: (y) => {
1416
+ var d;
1417
+ (d = document.getElementById(e)) != null && d.contains(y.relatedTarget) || t.value && a();
1418
+ }
1419
+ },
1420
+ button: h(
1421
+ () => ({
1422
+ "aria-controls": l,
1423
+ "aria-expanded": t.value,
1424
+ "aria-haspopup": !0,
1425
+ onFocus: () => !t.value && a(),
1426
+ id: o
1427
+ })
1428
+ ),
1429
+ menu: {
1430
+ id: l,
1431
+ ref: n,
1432
+ role: "menu",
1433
+ "aria-labelledby": o,
1434
+ onClick: () => t.value && a()
1435
+ },
1436
+ ...gt().elements
1437
+ }
1438
+ };
1439
+ }
1440
+ ), gt = oe(() => ({
1373
1441
  elements: {
1374
1442
  listItem: {
1375
1443
  role: "none"
@@ -1380,67 +1448,105 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1380
1448
  role: "menuitem"
1381
1449
  })
1382
1450
  }
1383
- })), Ja = ie((t) => {
1384
- const a = ee("tooltip"), e = O(!1);
1385
- let l;
1386
- const s = h(() => {
1387
- const d = r(t.open);
1388
- return typeof d != "object" ? 200 : d.debounce;
1389
- }), o = h(() => {
1390
- const d = r(t.open);
1391
- return typeof d != "object" ? d : d.type;
1392
- }), i = h({
1393
- get: () => e.value,
1394
- set: (d) => {
1395
- clearTimeout(l), l = setTimeout(() => {
1396
- e.value = d;
1397
- }, s.value);
1451
+ })), cl = {
1452
+ /**
1453
+ * Ensures that a given `number` is or is between a given `min` and `max`.
1454
+ */
1455
+ clamp: (t, a, e) => Math.max(Math.min(t, e), a)
1456
+ }, dl = oe(({ navigationName: t }) => {
1457
+ const a = W("nav"), e = () => {
1458
+ const n = document.getElementById(a);
1459
+ return n ? [...n.querySelectorAll("button[aria-expanded][aria-controls]")] : [];
1460
+ }, l = (n, o) => {
1461
+ const u = e(), c = u.indexOf(n);
1462
+ if (c === -1) return;
1463
+ const i = cl.clamp(
1464
+ c + (o === "next" ? 1 : -1),
1465
+ 0,
1466
+ u.length - 1
1467
+ );
1468
+ u[i].focus();
1469
+ };
1470
+ return {
1471
+ elements: {
1472
+ nav: {
1473
+ "aria-label": r(t),
1474
+ id: a,
1475
+ onKeydown: (n) => {
1476
+ switch (n.key) {
1477
+ case "ArrowRight":
1478
+ l(n.target, "next");
1479
+ break;
1480
+ case "ArrowLeft":
1481
+ l(n.target, "previous");
1482
+ break;
1483
+ }
1484
+ }
1485
+ }
1486
+ }
1487
+ };
1488
+ }), pl = oe((t) => {
1489
+ const a = mt(), e = W("tooltip"), l = T(!1);
1490
+ let n;
1491
+ const o = h(() => {
1492
+ const v = r(t.open);
1493
+ return typeof v != "object" ? 200 : v.debounce;
1494
+ }), u = h(() => {
1495
+ const v = r(t.open);
1496
+ return typeof v != "object" ? v : v.type;
1497
+ }), c = h({
1498
+ get: () => l.value,
1499
+ set: (v) => {
1500
+ clearTimeout(n), n = setTimeout(() => {
1501
+ l.value = v;
1502
+ }, o.value);
1398
1503
  }
1399
- }), u = h(() => typeof o.value == "boolean" ? o.value : i.value), c = () => {
1400
- e.value = !e.value;
1401
- }, m = h(() => {
1402
- if (o.value === "hover")
1504
+ }), i = h(() => typeof u.value == "boolean" ? u.value : c.value), y = () => {
1505
+ l.value = !l.value;
1506
+ }, d = h(() => {
1507
+ if (u.value === "hover")
1403
1508
  return {
1404
- onMouseover: () => i.value = !0,
1405
- onMouseout: () => i.value = !1,
1406
- onFocusin: () => e.value = !0,
1407
- onFocusout: () => e.value = !1
1509
+ onMouseover: () => c.value = !0,
1510
+ onMouseout: () => c.value = !1,
1511
+ onFocusin: () => l.value = !0,
1512
+ onFocusout: () => l.value = !1
1408
1513
  };
1409
- }), y = (d) => {
1410
- d.key === "Escape" && (e.value = !1);
1514
+ }), m = (v) => {
1515
+ v.key === "Escape" && (l.value = !1);
1411
1516
  };
1412
- return dt({
1413
- queryComponent: () => {
1414
- var d;
1415
- return (d = document.getElementById(a)) == null ? void 0 : d.parentElement;
1416
- },
1417
- onOutsideClick: () => e.value = !1,
1418
- disabled: h(() => o.value !== "click")
1419
- }), Ae(() => {
1420
- document.addEventListener("keydown", y);
1421
- }), pe(() => {
1422
- document.removeEventListener("keydown", y);
1517
+ return vt({
1518
+ element: a,
1519
+ onOutsideClick: () => l.value = !1,
1520
+ disabled: h(() => u.value !== "click")
1521
+ }), Ne(() => {
1522
+ document.addEventListener("keydown", m);
1523
+ }), ye(() => {
1524
+ document.removeEventListener("keydown", m);
1423
1525
  }), {
1424
1526
  elements: {
1527
+ root: {
1528
+ ref: a
1529
+ },
1425
1530
  trigger: h(() => ({
1426
- "aria-describedby": a,
1427
- onClick: o.value === "click" ? c : void 0,
1428
- ...m.value
1531
+ "aria-describedby": e,
1532
+ onClick: u.value === "click" ? y : void 0,
1533
+ ...d.value
1429
1534
  })),
1430
1535
  tooltip: h(() => ({
1431
1536
  role: "tooltip",
1432
- id: a,
1537
+ id: e,
1433
1538
  tabindex: "-1",
1434
- ...m.value
1539
+ ...d.value
1435
1540
  }))
1436
1541
  },
1437
1542
  state: {
1438
- isVisible: u
1543
+ isVisible: i
1439
1544
  }
1440
1545
  };
1441
- }), Qa = { class: "onyx-tooltip-wrapper" }, ht = /* @__PURE__ */ k({
1546
+ }), kt = /* @__PURE__ */ w({
1442
1547
  __name: "OnyxTooltip",
1443
1548
  props: {
1549
+ density: {},
1444
1550
  text: {},
1445
1551
  icon: {},
1446
1552
  color: { default: "neutral" },
@@ -1450,35 +1556,37 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1450
1556
  },
1451
1557
  setup(t) {
1452
1558
  const a = t, {
1453
- elements: { trigger: e, tooltip: l },
1454
- state: { isVisible: s }
1455
- } = Ja({
1559
+ elements: { root: e, trigger: l, tooltip: n },
1560
+ state: { isVisible: o }
1561
+ } = pl({
1456
1562
  open: h(() => a.open)
1457
- });
1458
- return (o, i) => (n(), p("div", Qa, [
1459
- v("div", B(r(l), {
1563
+ }), { densityClass: u } = H(a);
1564
+ return (c, i) => (s(), p("div", O({
1565
+ class: ["onyx-tooltip-wrapper", r(u)]
1566
+ }, r(e)), [
1567
+ f("div", O(r(n), {
1460
1568
  class: ["onyx-tooltip onyx-text--small onyx-truncation-multiline", {
1461
1569
  "onyx-tooltip--danger": a.color === "danger",
1462
1570
  "onyx-tooltip--bottom": a.position === "bottom",
1463
1571
  "onyx-tooltip--fit-parent": a.fitParent,
1464
- "onyx-tooltip--hidden": !r(s)
1572
+ "onyx-tooltip--hidden": !r(o)
1465
1573
  }]
1466
1574
  }), [
1467
- a.icon ? (n(), x(L, {
1575
+ a.icon ? (s(), x(A, {
1468
1576
  key: 0,
1469
1577
  icon: a.icon,
1470
1578
  size: "16px"
1471
1579
  }, null, 8, ["icon"])) : _("", !0),
1472
- b(o.$slots, "tooltip", {}, () => [
1473
- v("span", null, M(a.text), 1)
1580
+ b(c.$slots, "tooltip", {}, () => [
1581
+ f("span", null, V(a.text), 1)
1474
1582
  ])
1475
1583
  ], 16),
1476
- v("div", te(ae(r(e))), [
1477
- b(o.$slots, "default")
1584
+ f("div", ee(te(r(l))), [
1585
+ b(c.$slots, "default")
1478
1586
  ], 16)
1479
- ]));
1587
+ ], 16));
1480
1588
  }
1481
- }), el = ["aria-label"], Me = /* @__PURE__ */ k({
1589
+ }), ml = ["aria-label"], Se = /* @__PURE__ */ w({
1482
1590
  __name: "OnyxInfoTooltip",
1483
1591
  props: {
1484
1592
  text: {},
@@ -1486,44 +1594,45 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1486
1594
  label: {}
1487
1595
  },
1488
1596
  setup(t) {
1489
- const a = t, { t: e } = P();
1490
- return (l, s) => (n(), x(ht, {
1597
+ const a = t, { t: e } = N();
1598
+ return (l, n) => (s(), x(kt, {
1491
1599
  class: "onyx-info-tooltip",
1492
1600
  text: a.text,
1493
1601
  position: a.position
1494
1602
  }, {
1495
1603
  default: $(() => [
1496
- v("button", {
1604
+ f("button", {
1497
1605
  type: "button",
1498
1606
  "aria-label": a.label || r(e)("showTooltip.info"),
1499
1607
  class: "onyx-info-tooltip__trigger"
1500
1608
  }, [
1501
- V(L, { icon: r(it) }, null, 8, ["icon"])
1502
- ], 8, el)
1609
+ M(A, { icon: r(pt) }, null, 8, ["icon"])
1610
+ ], 8, ml)
1503
1611
  ]),
1504
1612
  _: 1
1505
1613
  }, 8, ["text", "position"]));
1506
1614
  }
1507
- }), tl = { class: "onyx-form-element__header" }, al = { class: "onyx-truncation-ellipsis" }, ll = {
1508
- key: 2,
1509
- class: "onyx-form-element__optional"
1510
- }, ol = {
1615
+ }), yl = {
1511
1616
  key: 0,
1617
+ class: "onyx-form-element__label onyx-text--small"
1618
+ }, hl = ["for"], vl = {
1619
+ key: 1,
1512
1620
  class: "onyx-form-element__footer onyx-text--small"
1513
- }, nl = {
1621
+ }, fl = {
1514
1622
  key: 0,
1515
1623
  class: "onyx-form-element__error-message onyx-truncation-ellipsis"
1516
- }, sl = {
1624
+ }, _l = {
1517
1625
  key: 2,
1518
1626
  class: "onyx-form-element__message onyx-truncation-ellipsis"
1519
- }, rl = {
1627
+ }, xl = {
1520
1628
  key: 4,
1521
1629
  class: "onyx-form-element__counter"
1522
- }, De = /* @__PURE__ */ k({
1630
+ }, xe = /* @__PURE__ */ w({
1523
1631
  __name: "OnyxFormElement",
1524
1632
  props: {
1525
1633
  required: { type: Boolean, default: !1 },
1526
1634
  requiredMarker: {},
1635
+ id: { default: W("onyx-form-element") },
1527
1636
  modelValue: {},
1528
1637
  label: {},
1529
1638
  labelTooltip: {},
@@ -1535,66 +1644,68 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1535
1644
  withCounter: { type: Boolean }
1536
1645
  },
1537
1646
  setup(t) {
1538
- const a = t, { t: e } = P(), { requiredMarkerClass: l, requiredTypeClass: s } = ye(a), o = h(() => {
1539
- var i;
1647
+ const a = t, { t: e } = N(), { requiredMarkerClass: l, requiredTypeClass: n } = _e(a), o = h(() => {
1648
+ var u;
1540
1649
  if (a.withCounter && a.maxlength)
1541
- return `${(((i = a.modelValue) == null ? void 0 : i.toString()) || "").length}/${a.maxlength}`;
1650
+ return `${(((u = a.modelValue) == null ? void 0 : u.toString()) || "").length}/${a.maxlength}`;
1542
1651
  });
1543
- return (i, u) => {
1544
- var c, m;
1545
- return n(), p("div", {
1546
- class: g(["onyx-form-element", r(s)])
1652
+ return (u, c) => {
1653
+ var i, y;
1654
+ return s(), p("div", {
1655
+ class: g(["onyx-form-element", r(n)])
1547
1656
  }, [
1548
- v("label", null, [
1549
- a.hideLabel ? _("", !0) : (n(), p("div", {
1657
+ a.hideLabel ? _("", !0) : (s(), p("div", yl, [
1658
+ f("label", {
1659
+ for: a.id,
1660
+ class: "onyx-truncation-ellipsis"
1661
+ }, V(a.label), 9, hl),
1662
+ a.required ? (s(), p("span", {
1550
1663
  key: 0,
1551
- class: g(["onyx-form-element__label onyx-text--small", [a.required ? void 0 : r(l)]])
1552
- }, [
1553
- v("div", tl, [
1554
- v("span", al, M(a.label), 1),
1555
- a.required ? (n(), p("span", {
1556
- key: 0,
1557
- class: g([a.required ? r(l) : void 0])
1558
- }, null, 2)) : _("", !0),
1559
- a.labelTooltip ? (n(), x(Me, {
1560
- key: 1,
1561
- class: "onyx-form-element__label-tooltip",
1562
- text: a.labelTooltip
1563
- }, null, 8, ["text"])) : _("", !0),
1564
- a.required ? _("", !0) : (n(), p("span", ll, M(r(e)("optional")), 1))
1565
- ])
1566
- ], 2)),
1567
- b(i.$slots, "default")
1568
- ]),
1569
- a.message || (c = i.errorMessages) != null && c.shortMessage || o.value ? (n(), p("div", ol, [
1570
- i.errorMessages ? (n(), p("span", nl, M(i.errorMessages.shortMessage), 1)) : _("", !0),
1571
- (m = i.errorMessages) != null && m.longMessage ? (n(), x(Me, {
1664
+ class: g([a.required ? r(l) : void 0])
1665
+ }, null, 2)) : _("", !0),
1666
+ a.labelTooltip ? (s(), x(Se, {
1667
+ key: 1,
1668
+ class: "onyx-form-element__label-tooltip",
1669
+ text: a.labelTooltip
1670
+ }, null, 8, ["text"])) : _("", !0),
1671
+ a.required ? _("", !0) : (s(), p("span", {
1672
+ key: 2,
1673
+ class: g([a.required ? void 0 : r(l)])
1674
+ }, null, 2))
1675
+ ])),
1676
+ b(u.$slots, "default", {
1677
+ id: a.id
1678
+ }),
1679
+ a.message || (i = u.errorMessages) != null && i.shortMessage || o.value ? (s(), p("div", vl, [
1680
+ u.errorMessages ? (s(), p("span", fl, V(u.errorMessages.shortMessage), 1)) : _("", !0),
1681
+ (y = u.errorMessages) != null && y.longMessage ? (s(), x(Se, {
1572
1682
  key: 1,
1573
1683
  class: "onyx-form-element__error-tooltip",
1574
1684
  color: "danger",
1575
1685
  position: "bottom",
1576
1686
  label: r(e)("showTooltip.error"),
1577
- text: i.errorMessages.longMessage
1687
+ text: u.errorMessages.longMessage
1578
1688
  }, null, 8, ["label", "text"])) : _("", !0),
1579
- a.message ? (n(), p("span", sl, M(a.message), 1)) : _("", !0),
1580
- a.messageTooltip ? (n(), x(Me, {
1689
+ a.message ? (s(), p("span", _l, V(a.message), 1)) : _("", !0),
1690
+ a.messageTooltip ? (s(), x(Se, {
1581
1691
  key: 3,
1582
1692
  class: "onyx-form-element__message-tooltip",
1583
1693
  position: "bottom",
1584
1694
  text: a.messageTooltip
1585
1695
  }, null, 8, ["text"])) : _("", !0),
1586
- o.value ? (n(), p("span", rl, M(o.value), 1)) : _("", !0)
1696
+ o.value ? (s(), p("span", xl, V(o.value), 1)) : _("", !0)
1587
1697
  ])) : _("", !0)
1588
1698
  ], 2);
1589
1699
  };
1590
1700
  }
1591
- }), il = { class: "onyx-input__wrapper" }, cl = ["placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], Sn = /* @__PURE__ */ k({
1701
+ }), bl = { class: "onyx-input__wrapper" }, gl = ["id", "placeholder", "type", "required", "autocapitalize", "autocomplete", "autofocus", "name", "pattern", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], Kn = /* @__PURE__ */ w({
1592
1702
  __name: "OnyxInput",
1593
1703
  props: {
1594
1704
  density: {},
1595
1705
  required: { type: Boolean, default: !1 },
1596
1706
  requiredMarker: {},
1597
1707
  customError: {},
1708
+ id: {},
1598
1709
  label: {},
1599
1710
  labelTooltip: {},
1600
1711
  hideLabel: { type: Boolean },
@@ -1618,57 +1729,58 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1618
1729
  },
1619
1730
  emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
1620
1731
  setup(t, { emit: a }) {
1621
- const e = t, l = a, { vCustomValidity: s, errorMessages: o } = le({ props: e, emit: l }), { densityClass: i } = H(e), u = h({
1732
+ const e = t, l = a, { vCustomValidity: n, errorMessages: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = h({
1622
1733
  get: () => e.modelValue,
1623
- set: (y) => l("update:modelValue", y)
1624
- }), c = (y) => {
1625
- const d = y.target.value;
1626
- l("change", d);
1627
- }, m = h(() => e.pattern instanceof RegExp ? e.pattern.source : e.pattern);
1628
- return (y, d) => e.skeleton ? (n(), p("div", {
1734
+ set: (d) => l("update:modelValue", d)
1735
+ }), i = (d) => {
1736
+ const m = d.target.value;
1737
+ l("change", m);
1738
+ }, y = h(() => e.pattern instanceof RegExp ? e.pattern.source : e.pattern);
1739
+ return (d, m) => e.skeleton ? (s(), p("div", {
1629
1740
  key: 0,
1630
- class: g(["onyx-input-skeleton", r(i)])
1741
+ class: g(["onyx-input-skeleton", r(u)])
1631
1742
  }, [
1632
- e.hideLabel ? _("", !0) : (n(), x(U, {
1743
+ e.hideLabel ? _("", !0) : (s(), x(U, {
1633
1744
  key: 0,
1634
1745
  class: "onyx-input-skeleton__label"
1635
1746
  })),
1636
- V(U, { class: "onyx-input-skeleton__input" })
1637
- ], 2)) : (n(), p("div", {
1747
+ M(U, { class: "onyx-input-skeleton__input" })
1748
+ ], 2)) : (s(), p("div", {
1638
1749
  key: 1,
1639
- class: g(["onyx-input", r(i)])
1750
+ class: g(["onyx-input", r(u)])
1640
1751
  }, [
1641
- V(De, B(e, { "error-messages": r(o) }), {
1642
- default: $(() => [
1643
- v("div", il, [
1644
- e.loading ? (n(), x(J, {
1752
+ M(xe, O(e, { "error-messages": r(o) }), {
1753
+ default: $(({ id: v }) => [
1754
+ f("div", bl, [
1755
+ e.loading ? (s(), x(X, {
1645
1756
  key: 0,
1646
1757
  class: "onyx-input__loading",
1647
1758
  type: "circle"
1648
1759
  })) : _("", !0),
1649
- G(v("input", {
1650
- "onUpdate:modelValue": d[0] || (d[0] = (f) => u.value = f),
1651
- class: "onyx-input__native",
1760
+ K(f("input", {
1761
+ id: v,
1762
+ "onUpdate:modelValue": m[0] || (m[0] = (k) => c.value = k),
1652
1763
  placeholder: e.placeholder,
1764
+ class: "onyx-input__native",
1653
1765
  type: e.type,
1654
1766
  required: e.required,
1655
1767
  autocapitalize: e.autocapitalize,
1656
1768
  autocomplete: e.autocomplete,
1657
1769
  autofocus: e.autofocus,
1658
1770
  name: e.name,
1659
- pattern: m.value,
1771
+ pattern: y.value,
1660
1772
  readonly: e.readonly,
1661
1773
  disabled: e.disabled || e.loading,
1662
1774
  minlength: e.minlength,
1663
1775
  maxlength: e.maxlength,
1664
1776
  "aria-label": e.hideLabel ? e.label : void 0,
1665
1777
  title: e.hideLabel ? e.label : void 0,
1666
- onChange: c,
1667
- onFocus: d[1] || (d[1] = (f) => l("focus")),
1668
- onBlur: d[2] || (d[2] = (f) => l("blur"))
1669
- }, null, 40, cl), [
1670
- [$t, u.value],
1671
- [r(s)]
1778
+ onChange: i,
1779
+ onFocus: m[1] || (m[1] = (k) => l("focus")),
1780
+ onBlur: m[2] || (m[2] = (k) => l("blur"))
1781
+ }, null, 40, gl), [
1782
+ [Ht, c.value],
1783
+ [r(n)]
1672
1784
  ])
1673
1785
  ])
1674
1786
  ]),
@@ -1676,21 +1788,21 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1676
1788
  }, 16, ["error-messages"])
1677
1789
  ], 2));
1678
1790
  }
1679
- }), Bn = ["email", "password", "search", "tel", "text", "url"], On = ["none", "sentences", "words", "characters"], vt = /* @__PURE__ */ k({
1791
+ }), jn = ["email", "password", "search", "tel", "text", "url"], Yn = ["none", "sentences", "words", "characters"], wt = /* @__PURE__ */ w({
1680
1792
  __name: "OnyxVisuallyHidden",
1681
1793
  props: {
1682
1794
  is: { default: "span" }
1683
1795
  },
1684
1796
  setup(t) {
1685
1797
  const a = t;
1686
- return (e, l) => (n(), x(re(a.is), { class: "onyx-visually-hidden" }, {
1798
+ return (e, l) => (s(), x(ce(a.is), { class: "onyx-visually-hidden" }, {
1687
1799
  default: $(() => [
1688
1800
  b(e.$slots, "default")
1689
1801
  ]),
1690
1802
  _: 3
1691
1803
  }));
1692
1804
  }
1693
- }), ul = ["href", "target", "rel"], En = /* @__PURE__ */ k({
1805
+ }), kl = ["href", "target", "rel"], Wn = /* @__PURE__ */ w({
1694
1806
  __name: "OnyxLink",
1695
1807
  props: {
1696
1808
  href: {},
@@ -1699,25 +1811,25 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1699
1811
  },
1700
1812
  emits: ["click"],
1701
1813
  setup(t, { emit: a }) {
1702
- const e = t, l = a, { t: s } = P();
1703
- return (o, i) => (n(), p("a", {
1814
+ const e = t, l = a, { t: n } = N();
1815
+ return (o, u) => (s(), p("a", {
1704
1816
  class: "onyx-link",
1705
1817
  href: e.href,
1706
1818
  target: e.target,
1707
1819
  rel: e.target === "_blank" ? "noreferrer" : void 0,
1708
- onClick: i[0] || (i[0] = (u) => l("click"))
1820
+ onClick: u[0] || (u[0] = (c) => l("click"))
1709
1821
  }, [
1710
1822
  b(o.$slots, "default"),
1711
- e.target === "_blank" ? (n(), x(vt, { key: 0 }, {
1823
+ e.target === "_blank" ? (s(), x(wt, { key: 0 }, {
1712
1824
  default: $(() => [
1713
- F(M(r(s)("link.opensExternally")), 1)
1825
+ Z(V(r(n)("link.opensExternally")), 1)
1714
1826
  ]),
1715
1827
  _: 1
1716
1828
  })) : _("", !0),
1717
- V(Pe, te(ae(e)), null, 16)
1718
- ], 8, ul));
1829
+ M(Ue, ee(te(e)), null, 16)
1830
+ ], 8, kl));
1719
1831
  }
1720
- }), Tn = ["_self", "_blank", "_parent", "_top"], ft = /* @__PURE__ */ k({
1832
+ }), Xn = ["_self", "_blank", "_parent", "_top"], Fe = /* @__PURE__ */ w({
1721
1833
  __name: "OnyxListItem",
1722
1834
  props: {
1723
1835
  density: {},
@@ -1729,7 +1841,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1729
1841
  },
1730
1842
  setup(t) {
1731
1843
  const a = t, { densityClass: e } = H(a);
1732
- return (l, s) => (n(), p("li", {
1844
+ return (l, n) => (s(), p("li", {
1733
1845
  class: g({
1734
1846
  "onyx-list-item": !0,
1735
1847
  ...r(e),
@@ -1743,8 +1855,8 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1743
1855
  b(l.$slots, "default")
1744
1856
  ], 2));
1745
1857
  }
1746
- }), dl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>', ze = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>', _t = () => {
1747
- const t = Mt(), a = h(
1858
+ }), wl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m28.707 27.293-7.969-7.969A9.95 9.95 0 0 0 23 13c0-5.514-4.486-10-10-10S3 7.486 3 13s4.486 10 10 10c2.397 0 4.599-.85 6.324-2.262l7.969 7.969zM5 13c0-4.411 3.589-8 8-8s8 3.589 8 8-3.589 8-8 8-8-3.589-8-8"/></svg>', qe = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m22.707 10.707-1.414-1.414L16 14.586l-5.293-5.293-1.414 1.414L14.586 16l-5.293 5.293 1.414 1.414L16 17.414l5.293 5.293 1.414-1.414L17.414 16z"/></svg>', Ct = () => {
1859
+ const t = Pt(), a = h(
1748
1860
  () => ({ class: t.class, style: t.style })
1749
1861
  ), e = h(() => {
1750
1862
  const l = { ...t };
@@ -1760,7 +1872,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1760
1872
  */
1761
1873
  restAttrs: e
1762
1874
  };
1763
- }, pl = ["aria-label"], ml = ["aria-label"], yl = /* @__PURE__ */ k({
1875
+ }, Cl = ["placeholder", "aria-label"], $l = ["aria-label"], Ml = /* @__PURE__ */ w({
1764
1876
  inheritAttrs: !1,
1765
1877
  __name: "OnyxMiniSearch",
1766
1878
  props: {
@@ -1770,90 +1882,100 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1770
1882
  },
1771
1883
  emits: ["update:modelValue", "clear"],
1772
1884
  setup(t, { expose: a, emit: e }) {
1773
- const l = t, s = e, { rootAttrs: o, restAttrs: i } = _t(), { densityClass: u } = H(l), { t: c } = P(), m = O(), y = h({
1885
+ const l = t, n = e, { rootAttrs: o, restAttrs: u } = Ct(), { densityClass: c } = H(l), { t: i } = N(), y = T(), d = h({
1774
1886
  get: () => l.modelValue,
1775
- set: (d) => s("update:modelValue", d ?? "")
1887
+ set: (m) => n("update:modelValue", m ?? "")
1776
1888
  });
1777
1889
  return a({
1778
1890
  /**
1779
1891
  * Focuses the input.
1780
1892
  */
1781
1893
  focus: () => {
1782
- var d;
1783
- return (d = m.value) == null ? void 0 : d.focus();
1894
+ var m;
1895
+ return (m = y.value) == null ? void 0 : m.focus();
1784
1896
  }
1785
- }), (d, f) => (n(), p("div", B({
1786
- class: ["onyx-mini-search", r(u)]
1897
+ }), (m, v) => (s(), p("div", O({
1898
+ class: ["onyx-mini-search", r(c)]
1787
1899
  }, r(o)), [
1788
- G(v("input", B({
1900
+ K(f("input", O({
1789
1901
  ref_key: "input",
1790
- ref: m,
1791
- "onUpdate:modelValue": f[0] || (f[0] = (C) => y.value = C),
1792
- class: "onyx-mini-search__input",
1793
- placeholder: "Search",
1902
+ ref: y,
1903
+ "onUpdate:modelValue": v[0] || (v[0] = (k) => d.value = k),
1904
+ class: "onyx-mini-search__input onyx-text",
1905
+ placeholder: r(i)("select.searchPlaceholder"),
1794
1906
  type: "text"
1795
- }, r(i), {
1907
+ }, r(u), {
1796
1908
  "aria-label": l.label
1797
- }), null, 16, pl), [
1798
- [Qe, y.value]
1909
+ }), null, 16, Cl), [
1910
+ [ze, d.value]
1799
1911
  ]),
1800
- v("button", {
1912
+ f("button", {
1801
1913
  type: "button",
1802
1914
  class: "onyx-mini-search__clear",
1803
- "aria-label": r(c)("select.clearSearch"),
1915
+ "aria-label": r(i)("select.clearSearch"),
1804
1916
  tabindex: "-1",
1805
- onMousedown: f[1] || (f[1] = Le(() => {
1917
+ onMousedown: v[1] || (v[1] = De(() => {
1806
1918
  }, ["prevent"])),
1807
- onClick: f[2] || (f[2] = (C) => s("clear"))
1919
+ onClick: v[2] || (v[2] = (k) => n("clear"))
1808
1920
  }, [
1809
- V(L, { icon: r(ze) }, null, 8, ["icon"])
1810
- ], 40, ml),
1811
- V(L, {
1921
+ M(A, { icon: r(qe) }, null, 8, ["icon"])
1922
+ ], 40, $l),
1923
+ M(A, {
1812
1924
  class: "onyx-mini-search__icon",
1813
- icon: r(dl)
1925
+ icon: r(wl)
1814
1926
  }, null, 8, ["icon"])
1815
1927
  ], 16));
1816
1928
  }
1817
- }), hl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>', vl = ["aria-label"], fl = {
1818
- key: 0,
1819
- class: "onyx-mobile-nav-button__menu"
1820
- }, _l = { class: "onyx-mobile-nav-button__content" }, Ge = /* @__PURE__ */ k({
1929
+ }), Bl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m27.707 5.707-1.414-1.414L16 14.586 5.707 4.293 4.293 5.707 14.586 16 4.293 26.293l1.414 1.414L16 17.414l10.293 10.293 1.414-1.414L17.414 16z"/></svg>', Vl = { class: "onyx-mobile-nav-button" }, Sl = ["aria-label"], Ol = { class: "onyx-mobile-nav-button__flyout" }, Ll = { class: "onyx-mobile-nav-button__menu" }, Qe = /* @__PURE__ */ w({
1821
1930
  __name: "OnyxMobileNavButton",
1822
1931
  props: {
1823
1932
  label: {},
1824
1933
  icon: {},
1825
- open: { type: Boolean, default: !1 }
1934
+ open: { type: Boolean, default: !1 },
1935
+ headline: {}
1826
1936
  },
1827
1937
  emits: ["update:open"],
1828
1938
  setup(t, { emit: a }) {
1829
1939
  const e = t, l = a;
1830
- return (s, o) => (n(), p("div", null, [
1831
- v("button", {
1940
+ return (n, o) => (s(), p("div", Vl, [
1941
+ f("button", {
1832
1942
  type: "button",
1833
- class: g(["onyx-mobile-nav-button", { "onyx-mobile-nav-button--active": e.open }]),
1943
+ class: g(["onyx-mobile-nav-button__trigger", { "onyx-mobile-nav-button__trigger--active": e.open }]),
1834
1944
  "aria-label": e.label,
1835
- onClick: o[0] || (o[0] = (i) => l("update:open", !e.open))
1945
+ onClick: o[0] || (o[0] = (u) => l("update:open", !e.open))
1836
1946
  }, [
1837
- V(L, {
1838
- icon: e.open ? r(hl) : e.icon
1947
+ M(A, {
1948
+ icon: e.open ? r(Bl) : e.icon
1839
1949
  }, null, 8, ["icon"])
1840
- ], 10, vl),
1841
- e.open ? (n(), p("div", fl, [
1842
- v("div", _l, [
1843
- b(s.$slots, "default")
1950
+ ], 10, Sl),
1951
+ e.open ? (s(), p(R, { key: 0 }, [
1952
+ f("div", Ol, [
1953
+ f("div", Ll, [
1954
+ e.headline ? (s(), x(ie, {
1955
+ key: 0,
1956
+ is: "h2",
1957
+ class: "onyx-mobile-nav-button__headline"
1958
+ }, {
1959
+ default: $(() => [
1960
+ Z(V(e.headline), 1)
1961
+ ]),
1962
+ _: 1
1963
+ })) : _("", !0),
1964
+ b(n.$slots, "default")
1965
+ ])
1844
1966
  ]),
1845
- v("div", {
1967
+ f("div", {
1846
1968
  class: "onyx-mobile-nav-button__backdrop",
1847
1969
  role: "presentation",
1848
- onClick: o[1] || (o[1] = (i) => l("update:open", !1))
1970
+ onClick: o[1] || (o[1] = (u) => l("update:open", !1))
1849
1971
  })
1850
- ])) : _("", !0)
1972
+ ], 64)) : _("", !0)
1851
1973
  ]));
1852
1974
  }
1853
- }), xl = ["aria-label"], bl = ["src", "alt"], gl = {
1975
+ }), Tl = ["aria-label"], El = ["src", "alt"], Il = {
1854
1976
  key: 1,
1855
- class: "onyx-text-small"
1856
- }, kl = /* @__PURE__ */ k({
1977
+ class: "onyx-text-small onyx-truncation-ellipsis"
1978
+ }, Al = /* @__PURE__ */ w({
1857
1979
  __name: "OnyxNavAppArea",
1858
1980
  props: {
1859
1981
  logoUrl: {},
@@ -1862,27 +1984,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1862
1984
  },
1863
1985
  emits: ["click"],
1864
1986
  setup(t, { emit: a }) {
1865
- const e = t, l = a, { t: s } = P(), o = h(() => e.label ?? s.value("navigation.goToHome"));
1866
- return (i, u) => (n(), p("button", {
1987
+ const e = t, l = a, { t: n } = N(), o = h(() => e.label ?? n.value("navigation.goToHome"));
1988
+ return (u, c) => (s(), p("button", {
1867
1989
  type: "button",
1868
1990
  class: "onyx-nav-app-area",
1869
1991
  "aria-label": o.value,
1870
- onClick: u[0] || (u[0] = (c) => l("click"))
1992
+ onClick: c[0] || (c[0] = (i) => l("click"))
1871
1993
  }, [
1872
- b(i.$slots, "default", {}, () => [
1873
- e.logoUrl ? (n(), p("img", {
1994
+ b(u.$slots, "default", {}, () => [
1995
+ e.logoUrl ? (s(), p("img", {
1874
1996
  key: 0,
1875
1997
  src: e.logoUrl,
1876
- alt: r(s)("navigation.appLogo", { appName: e.appName }),
1998
+ alt: r(n)("navigation.appLogo", { appName: e.appName }),
1877
1999
  class: "onyx-nav-app-area__logo",
1878
2000
  width: "24",
1879
2001
  height: "24"
1880
- }, null, 8, bl)) : _("", !0),
1881
- e.appName ? (n(), p("span", gl, M(e.appName), 1)) : _("", !0)
2002
+ }, null, 8, El)) : _("", !0),
2003
+ e.appName ? (s(), p("span", Il, V(e.appName), 1)) : _("", !0)
1882
2004
  ])
1883
- ], 8, xl));
2005
+ ], 8, Tl));
1884
2006
  }
1885
- }), wl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2007
+ }), Hl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
1886
2008
  <g clip-path="url(#clip0_4499_144781)">
1887
2009
  <mask id="mask0_4499_144781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="83" height="104">
1888
2010
  <rect width="83" height="104" fill="#D9D9D9"/>
@@ -1970,7 +2092,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
1970
2092
  </clipPath>
1971
2093
  </defs>
1972
2094
  </svg>
1973
- `, Cl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2095
+ `, Pl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
1974
2096
  <g clip-path="url(#clip0_4499_144833)">
1975
2097
  <path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="var(--onyx-color-themed-neutral-1100)"/>
1976
2098
  <g filter="url(#filter0_d_4499_144833)">
@@ -2017,7 +2139,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2017
2139
  </clipPath>
2018
2140
  </defs>
2019
2141
  </svg>
2020
- `, $l = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2142
+ `, Dl = `<svg width="166" height="104" viewBox="0 0 166 104" fill="none" xmlns="http://www.w3.org/2000/svg">
2021
2143
  <g clip-path="url(#clip0_4499_144816)">
2022
2144
  <path d="M0 4C0 1.79086 1.79086 0 4 0H162C164.209 0 166 1.79086 166 4V100C166 102.209 164.209 104 162 104H4C1.79086 104 0 102.209 0 100V4Z" fill="white"/>
2023
2145
  <g filter="url(#filter0_d_4499_144816)">
@@ -2064,7 +2186,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2064
2186
  </clipPath>
2065
2187
  </defs>
2066
2188
  </svg>
2067
- `, Ml = { class: "onyx-color-scheme-dialog__subtitle onyx-text" }, Vl = ["innerHTML"], Sl = ["autofocus", "value", "checked", "aria-label"], Bl = { class: "onyx-text--small" }, Ol = { class: "onyx-color-scheme-dialog__actions" }, El = /* @__PURE__ */ k({
2189
+ `, Nl = { class: "onyx-color-scheme-dialog__subtitle onyx-text" }, zl = ["innerHTML"], Rl = ["autofocus", "value", "checked", "aria-label"], Ul = { class: "onyx-text--small" }, Fl = { class: "onyx-color-scheme-dialog__actions" }, ql = /* @__PURE__ */ w({
2068
2190
  __name: "OnyxColorSchemeDialog",
2069
2191
  props: {
2070
2192
  open: { type: Boolean, default: !1 },
@@ -2073,100 +2195,100 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2073
2195
  },
2074
2196
  emits: ["update:modelValue", "close"],
2075
2197
  setup(t, { emit: a }) {
2076
- const e = t, l = a, s = O(e.modelValue);
2077
- X(() => s.value = e.modelValue);
2078
- const { t: o } = P(), i = h(() => [
2198
+ const e = t, l = a, n = T(e.modelValue);
2199
+ Q(() => n.value = e.modelValue);
2200
+ const { t: o } = N(), u = h(() => [
2079
2201
  {
2080
2202
  value: "auto",
2081
- image: wl,
2203
+ image: Hl,
2082
2204
  label: o.value("colorScheme.auto.label"),
2083
2205
  description: o.value("colorScheme.auto.description")
2084
2206
  },
2085
2207
  {
2086
2208
  value: "light",
2087
- image: $l,
2209
+ image: Dl,
2088
2210
  label: o.value("colorScheme.light.label"),
2089
2211
  description: o.value("colorScheme.light.description")
2090
2212
  },
2091
2213
  {
2092
2214
  value: "dark",
2093
- image: Cl,
2215
+ image: Pl,
2094
2216
  label: o.value("colorScheme.dark.label"),
2095
2217
  description: o.value("colorScheme.dark.description")
2096
2218
  }
2097
- ]), u = (m) => {
2098
- const y = m.target;
2099
- s.value = y.value;
2100
- }, c = () => {
2101
- s.value && (l("update:modelValue", s.value), l("close"));
2219
+ ]), c = (y) => {
2220
+ const d = y.target;
2221
+ n.value = d.value;
2222
+ }, i = () => {
2223
+ n.value && (l("update:modelValue", n.value), l("close"));
2102
2224
  };
2103
- return (m, y) => (n(), x(La, B({ class: "onyx-color-scheme-dialog" }, e, {
2225
+ return (y, d) => (s(), x(Za, O({ class: "onyx-color-scheme-dialog" }, e, {
2104
2226
  label: r(o)("colorScheme.headline"),
2105
2227
  modal: "",
2106
- onClose: y[1] || (y[1] = (d) => l("close"))
2228
+ onClose: d[1] || (d[1] = (m) => l("close"))
2107
2229
  }), {
2108
2230
  default: $(() => [
2109
- v("form", {
2231
+ f("form", {
2110
2232
  class: "onyx-color-scheme-dialog__form",
2111
- onSubmit: Le(c, ["prevent"])
2233
+ onSubmit: De(i, ["prevent"])
2112
2234
  }, [
2113
- v("div", null, [
2114
- V(ne, { is: "h2" }, {
2235
+ f("div", null, [
2236
+ M(ie, { is: "h2" }, {
2115
2237
  default: $(() => [
2116
- F(M(r(o)("colorScheme.headline")), 1)
2238
+ Z(V(r(o)("colorScheme.headline")), 1)
2117
2239
  ]),
2118
2240
  _: 1
2119
2241
  }),
2120
- v("span", Ml, M(r(o)("colorScheme.subtitle")), 1)
2242
+ f("span", Nl, V(r(o)("colorScheme.subtitle")), 1)
2121
2243
  ]),
2122
- v("fieldset", {
2244
+ f("fieldset", {
2123
2245
  class: "onyx-color-scheme-dialog__list",
2124
- onChange: u
2246
+ onChange: c
2125
2247
  }, [
2126
- (n(!0), p(z, null, W(i.value, (d) => (n(), p("label", {
2127
- key: d.value,
2248
+ (s(!0), p(R, null, J(u.value, (m) => (s(), p("label", {
2249
+ key: m.value,
2128
2250
  class: "onyx-color-scheme-dialog__option"
2129
2251
  }, [
2130
- v("figure", {
2252
+ f("figure", {
2131
2253
  class: "onyx-color-scheme-dialog__image",
2132
- innerHTML: d.image
2133
- }, null, 8, Vl),
2134
- v("div", null, [
2135
- V(vt, { is: "div" }, {
2254
+ innerHTML: m.image
2255
+ }, null, 8, zl),
2256
+ f("div", null, [
2257
+ M(wt, { is: "div" }, {
2136
2258
  default: $(() => [
2137
- v("input", {
2259
+ f("input", {
2138
2260
  type: "radio",
2139
2261
  name: "color-scheme",
2140
- autofocus: e.modelValue === d.value,
2141
- value: d.value,
2142
- checked: e.modelValue === d.value,
2143
- "aria-label": d.label,
2262
+ autofocus: e.modelValue === m.value,
2263
+ value: m.value,
2264
+ checked: e.modelValue === m.value,
2265
+ "aria-label": m.label,
2144
2266
  required: ""
2145
- }, null, 8, Sl)
2267
+ }, null, 8, Rl)
2146
2268
  ]),
2147
2269
  _: 2
2148
2270
  }, 1024),
2149
- V(ne, {
2271
+ M(ie, {
2150
2272
  is: "h3",
2151
2273
  class: "onyx-color-scheme-dialog__label"
2152
2274
  }, {
2153
2275
  default: $(() => [
2154
- F(M(d.label), 1)
2276
+ Z(V(m.label), 1)
2155
2277
  ]),
2156
2278
  _: 2
2157
2279
  }, 1024),
2158
- v("p", Bl, M(d.description), 1)
2280
+ f("p", Ul, V(m.description), 1)
2159
2281
  ])
2160
2282
  ]))), 128))
2161
2283
  ], 32),
2162
- v("div", Ol, [
2163
- V(Oe, {
2284
+ f("div", Fl, [
2285
+ M(Ie, {
2164
2286
  label: r(o)("cancel"),
2165
2287
  mode: "plain",
2166
2288
  color: "neutral",
2167
- onClick: y[0] || (y[0] = (d) => l("close"))
2289
+ onClick: d[0] || (d[0] = (m) => l("close"))
2168
2290
  }, null, 8, ["label"]),
2169
- V(Oe, {
2291
+ M(Ie, {
2170
2292
  label: r(o)("apply"),
2171
2293
  type: "submit"
2172
2294
  }, null, 8, ["label"])
@@ -2176,7 +2298,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2176
2298
  _: 1
2177
2299
  }, 16, ["label"]));
2178
2300
  }
2179
- }), Tl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>', xt = /* @__PURE__ */ k({
2301
+ }), Zl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M15.99 2C8.28 2 2 8.27 2 15.99s6.27 13.99 13.99 13.99 13.99-6.27 13.99-13.99S23.7 2 15.99 2m5.96 3.6c.76.44 1.47.96 2.12 1.55v17.66c-.65.59-1.35 1.11-2.12 1.55zm-2 21.69c-.63.22-1.29.39-1.96.51V4.18c.67.11 1.33.28 1.96.51zm6.11-17.77c1.2 1.87 1.91 4.08 1.91 6.47s-.71 4.6-1.91 6.47V9.53ZM4 15.99C4 9.38 9.38 4 15.99 4v23.97C9.38 27.97 4 22.59 4 15.98Z" style="stroke-width:0"/></svg>', $t = /* @__PURE__ */ w({
2180
2302
  __name: "OnyxMenuItem",
2181
2303
  props: {
2182
2304
  href: {},
@@ -2187,17 +2309,17 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2187
2309
  emits: ["click"],
2188
2310
  setup(t, { emit: a }) {
2189
2311
  const e = t, l = a, {
2190
- elements: { listItem: s, menuItem: o }
2191
- } = yt({});
2192
- return (i, u) => (n(), x(ft, B({
2312
+ elements: { listItem: n, menuItem: o }
2313
+ } = gt();
2314
+ return (u, c) => (s(), x(Fe, O({
2193
2315
  selected: e.active,
2194
2316
  active: e.active,
2195
2317
  color: e.color,
2196
2318
  disabled: e.disabled,
2197
2319
  class: "onyx-menu-item"
2198
- }, r(s)), {
2320
+ }, r(n)), {
2199
2321
  default: $(() => [
2200
- (n(), x(re(e.href ? "a" : "button"), B(
2322
+ (s(), x(ce(e.href ? "a" : "button"), O(
2201
2323
  {
2202
2324
  class: "onyx-menu-item__trigger",
2203
2325
  disabled: !e.href && e.disabled,
@@ -2208,11 +2330,11 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2208
2330
  disabled: !e.href && e.disabled
2209
2331
  }),
2210
2332
  {
2211
- onClick: u[0] || (u[0] = (c) => l("click"))
2333
+ onClick: c[0] || (c[0] = (i) => l("click"))
2212
2334
  }
2213
2335
  ), {
2214
2336
  default: $(() => [
2215
- b(i.$slots, "default")
2337
+ b(u.$slots, "default")
2216
2338
  ]),
2217
2339
  _: 3
2218
2340
  }, 16, ["disabled", "href"]))
@@ -2220,87 +2342,94 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2220
2342
  _: 3
2221
2343
  }, 16, ["selected", "active", "color", "disabled"]));
2222
2344
  }
2223
- }), Il = { class: "onyx-color-scheme-menu-item__value" }, In = /* @__PURE__ */ k({
2345
+ }), Gl = { class: "onyx-color-scheme-menu-item__value" }, Jn = /* @__PURE__ */ w({
2224
2346
  __name: "OnyxColorSchemeMenuItem",
2225
2347
  props: {
2226
2348
  modelValue: {}
2227
2349
  },
2228
2350
  emits: ["update:modelValue"],
2229
2351
  setup(t, { emit: a }) {
2230
- const e = t, l = a, { t: s } = P(), o = O(!1);
2231
- return (i, u) => (n(), x(xt, {
2352
+ const e = t, l = a, { t: n } = N(), o = T(!1);
2353
+ return (u, c) => (s(), x($t, {
2232
2354
  class: "onyx-color-scheme-menu-item",
2233
- onClick: u[2] || (u[2] = (c) => o.value = !0)
2355
+ onClick: c[2] || (c[2] = (i) => o.value = !0)
2234
2356
  }, {
2235
2357
  default: $(() => [
2236
- V(L, { icon: r(Tl) }, null, 8, ["icon"]),
2237
- v("div", null, [
2238
- F(M(r(s)("colorScheme.appearance")) + ": ", 1),
2239
- v("span", Il, M(r(s)(`colorScheme.${e.modelValue}.label`)), 1)
2358
+ M(A, { icon: r(Zl) }, null, 8, ["icon"]),
2359
+ f("div", null, [
2360
+ Z(V(r(n)("colorScheme.appearance")) + ": ", 1),
2361
+ f("span", Gl, V(r(n)(`colorScheme.${e.modelValue}.label`)), 1)
2240
2362
  ]),
2241
- (n(), x(Vt, { to: "body" }, [
2242
- V(El, {
2363
+ (s(), x(Dt, { to: "body" }, [
2364
+ M(ql, {
2243
2365
  "model-value": e.modelValue,
2244
2366
  open: o.value,
2245
- onClose: u[0] || (u[0] = (c) => o.value = !1),
2246
- "onUpdate:modelValue": u[1] || (u[1] = (c) => l("update:modelValue", c))
2367
+ onClose: c[0] || (c[0] = (i) => o.value = !1),
2368
+ "onUpdate:modelValue": c[1] || (c[1] = (i) => l("update:modelValue", i))
2247
2369
  }, null, 8, ["model-value", "open"])
2248
2370
  ]))
2249
2371
  ]),
2250
2372
  _: 1
2251
2373
  }));
2252
2374
  }
2253
- }), Ll = { class: "onyx-flyout-menu" }, Al = ["aria-label"], bt = /* @__PURE__ */ k({
2375
+ }), Kl = ["aria-label"], Mt = /* @__PURE__ */ w({
2254
2376
  __name: "OnyxFlyoutMenu",
2255
- props: {
2377
+ props: /* @__PURE__ */ he({
2256
2378
  label: {}
2257
- },
2379
+ }, {
2380
+ open: { type: Boolean, default: !1 },
2381
+ openModifiers: {}
2382
+ }),
2383
+ emits: ["update:open"],
2258
2384
  setup(t) {
2259
- const a = t, e = R(), {
2260
- elements: { button: l, flyout: s, menu: o },
2261
- state: { isExpanded: i }
2262
- } = Xa({}), u = h(() => {
2263
- var m;
2264
- if (!e.default) return;
2265
- const c = e.default().at(0);
2266
- return (c == null ? void 0 : c.type.toString()) === "Symbol(v-fgt)" ? Array.isArray(c == null ? void 0 : c.children) ? (m = c == null ? void 0 : c.children) == null ? void 0 : m.at(0) : void 0 : c;
2385
+ const a = t, e = ve(t, "open"), l = G(), {
2386
+ elements: { root: n, button: o, menu: u }
2387
+ } = ul({
2388
+ isExpanded: e,
2389
+ onToggle: () => e.value = !e.value
2390
+ }), c = h(() => {
2391
+ var y;
2392
+ if (!l.default) return;
2393
+ const i = l.default().at(0);
2394
+ return (i == null ? void 0 : i.type.toString()) === "Symbol(v-fgt)" ? Array.isArray(i == null ? void 0 : i.children) ? (y = i == null ? void 0 : i.children) == null ? void 0 : y.at(0) : void 0 : i;
2267
2395
  });
2268
- return (c, m) => (n(), p("div", Ll, [
2269
- (n(), x(re(u.value), te(ae(r(l))), null, 16)),
2270
- e.options || e.header || e.footer ? G((n(), p("div", B({ key: 0 }, r(s), {
2396
+ return (i, y) => (s(), p("div", O({ class: "onyx-flyout-menu" }, r(n)), [
2397
+ (s(), x(ce(c.value), ee(te(r(o))), null, 16)),
2398
+ l.options || l.header || l.footer ? K((s(), p("div", {
2399
+ key: 0,
2271
2400
  "aria-label": a.label,
2272
- class: {
2273
- "onyx-flyout-menu__list--with-header": !!e.header,
2274
- "onyx-flyout-menu__list--with-footer": !!e.footer,
2401
+ class: g({
2402
+ "onyx-flyout-menu__list--with-header": !!l.header,
2403
+ "onyx-flyout-menu__list--with-footer": !!l.footer,
2275
2404
  "onyx-flyout-menu__list": !0
2276
- }
2277
- }), [
2278
- b(c.$slots, "header"),
2279
- e.options ? (n(), p("ul", B({ key: 0 }, r(o), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }), [
2280
- b(c.$slots, "options")
2405
+ })
2406
+ }, [
2407
+ b(i.$slots, "header"),
2408
+ l.options ? (s(), p("ul", O({ key: 0 }, r(u), { class: "onyx-flyout-menu__wrapper onyx-flyout-menu__group" }), [
2409
+ b(i.$slots, "options")
2281
2410
  ], 16)) : _("", !0),
2282
- b(c.$slots, "footer")
2283
- ], 16, Al)), [
2284
- [et, r(i)]
2411
+ b(i.$slots, "footer")
2412
+ ], 10, Kl)), [
2413
+ [nt, e.value]
2285
2414
  ]) : _("", !0)
2286
- ]));
2415
+ ], 16));
2287
2416
  }
2288
- }), Hl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>', he = Symbol(), Pl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>', Dl = ["aria-orientation"], zl = /* @__PURE__ */ k({
2417
+ }), jl = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m13.207 8.293-1.414 1.414L18.086 16l-6.293 6.293 1.414 1.414L20.914 16z"/></svg>', be = Symbol(), Yl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.04 32.04"><path d="M23.52 15.52H11.93l4.13-4.13-1.42-1.41-6.54 6.54 6.54 6.54 1.42-1.42-4.13-4.12h11.59z"/></svg>', Wl = ["aria-orientation"], Xl = /* @__PURE__ */ w({
2289
2418
  __name: "OnyxNavSeparator",
2290
2419
  props: {
2291
2420
  orientation: { default: "vertical" }
2292
2421
  },
2293
2422
  setup(t) {
2294
- const a = t, e = se(he);
2295
- return (l, s) => (n(), p("div", {
2423
+ const a = t, e = ue(be);
2424
+ return (l, n) => (s(), p("div", {
2296
2425
  class: g(["onyx-nav-separator", { "onyx-nav-separator--horizontal": a.orientation === "horizontal" || r(e) }]),
2297
2426
  role: "separator",
2298
2427
  "aria-orientation": a.orientation
2299
- }, null, 10, Dl));
2428
+ }, null, 10, Wl));
2300
2429
  }
2301
- }), Nl = { role: "presentation" }, Ul = /* @__PURE__ */ k({
2430
+ }), Jl = { role: "presentation" }, Ql = /* @__PURE__ */ w({
2302
2431
  __name: "NavButtonLayout",
2303
- props: /* @__PURE__ */ St({
2432
+ props: /* @__PURE__ */ he({
2304
2433
  href: {},
2305
2434
  withExternalIcon: { type: [Boolean, String] },
2306
2435
  label: {},
@@ -2312,34 +2441,34 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2312
2441
  }),
2313
2442
  emits: ["update:mobileChildrenOpen"],
2314
2443
  setup(t) {
2315
- const a = t, e = R(), { t: l } = P(), s = Bt(t, "mobileChildrenOpen");
2316
- return (o, i) => (n(), p("li", Nl, [
2317
- a.isMobile ? (n(), p(z, { key: 0 }, [
2318
- a.isMobile && s.value ? (n(), x(Oe, {
2444
+ const a = t, e = G(), { t: l } = N(), n = ve(t, "mobileChildrenOpen");
2445
+ return (o, u) => (s(), p("li", Jl, [
2446
+ a.isMobile ? (s(), p(R, { key: 0 }, [
2447
+ a.isMobile && n.value ? (s(), x(Ie, {
2319
2448
  key: 0,
2320
2449
  label: r(l)("back"),
2321
2450
  mode: "plain",
2322
2451
  color: "neutral",
2323
- icon: r(Pl),
2324
- onClick: i[0] || (i[0] = (u) => s.value = !1)
2452
+ icon: r(Yl),
2453
+ onClick: u[0] || (u[0] = (c) => n.value = !1)
2325
2454
  }, null, 8, ["label", "icon"])) : _("", !0),
2326
- !s.value || a.href ? b(o.$slots, "button", { key: 1 }) : _("", !0),
2327
- s.value && a.href ? (n(), x(zl, {
2455
+ !n.value || a.href ? b(o.$slots, "button", { key: 1 }) : _("", !0),
2456
+ n.value && a.href ? (s(), x(Xl, {
2328
2457
  key: 2,
2329
2458
  orientation: "horizontal"
2330
2459
  })) : _("", !0),
2331
- G(v("ul", {
2460
+ K(f("ul", {
2332
2461
  role: "menu",
2333
- class: g(["onyx-nav-button__mobile-children", { "onyx-nav-button__mobile-children--open": s.value }])
2462
+ class: g(["onyx-nav-button__mobile-children", { "onyx-nav-button__mobile-children--open": n.value }])
2334
2463
  }, [
2335
2464
  b(o.$slots, "options")
2336
2465
  ], 2), [
2337
- [et, s.value]
2466
+ [nt, n.value]
2338
2467
  ])
2339
- ], 64)) : (n(), x(bt, {
2468
+ ], 64)) : (s(), x(Mt, {
2340
2469
  key: 1,
2341
2470
  label: r(l)("navItemOptionsLabel", { label: a.label })
2342
- }, me({
2471
+ }, fe({
2343
2472
  default: $(() => [
2344
2473
  b(o.$slots, "button")
2345
2474
  ]),
@@ -2355,7 +2484,7 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2355
2484
  ]), 1032, ["label"]))
2356
2485
  ]));
2357
2486
  }
2358
- }), Fl = ["aria-label"], Ln = /* @__PURE__ */ k({
2487
+ }), eo = ["aria-label"], to = { class: "onyx-truncation-ellipsis" }, Qn = /* @__PURE__ */ w({
2359
2488
  __name: "OnyxNavButton",
2360
2489
  props: {
2361
2490
  href: {},
@@ -2365,49 +2494,49 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2365
2494
  },
2366
2495
  emits: ["click"],
2367
2496
  setup(t, { emit: a }) {
2368
- const e = t, l = a, s = R(), o = se(he), i = O(!1), u = h(() => !!s.children), c = () => {
2369
- o != null && o.value && u.value && !i.value ? i.value = !0 : e.href && l("click", e.href);
2497
+ const e = t, l = a, n = G(), o = ue(be), u = T(!1), c = h(() => !!n.children), i = () => {
2498
+ o != null && o.value && c.value && !u.value ? u.value = !0 : e.href && l("click", e.href);
2370
2499
  };
2371
- return (m, y) => (n(), x(Ul, B({
2372
- "mobile-children-open": i.value,
2373
- "onUpdate:mobileChildrenOpen": y[0] || (y[0] = (d) => i.value = d),
2500
+ return (y, d) => (s(), x(Ql, O({
2501
+ "mobile-children-open": u.value,
2502
+ "onUpdate:mobileChildrenOpen": d[0] || (d[0] = (m) => u.value = m),
2374
2503
  class: ["onyx-nav-button", {
2375
2504
  "onyx-nav-button--mobile": r(o),
2376
- "onyx-nav-button--active": e.active || i.value
2505
+ "onyx-nav-button--active": e.active
2377
2506
  }],
2378
2507
  "is-mobile": r(o) ?? !1
2379
- }, e), me({
2508
+ }, e), fe({
2380
2509
  button: $(() => [
2381
- v("button", {
2510
+ f("button", {
2382
2511
  class: "onyx-nav-button__trigger onyx-text",
2383
2512
  role: "menuitem",
2384
2513
  "aria-label": e.label,
2385
2514
  type: "button",
2386
- onClick: c
2515
+ onClick: i
2387
2516
  }, [
2388
- b(m.$slots, "default", {}, () => [
2389
- v("span", null, M(e.label), 1),
2390
- V(Pe, te(ae(e)), null, 16)
2517
+ b(y.$slots, "default", {}, () => [
2518
+ f("span", to, V(e.label), 1),
2519
+ M(Ue, ee(te(e)), null, 16)
2391
2520
  ]),
2392
- r(o) && u.value && !i.value ? (n(), x(L, {
2521
+ r(o) && c.value && !u.value ? (s(), x(A, {
2393
2522
  key: 0,
2394
2523
  class: "onyx-nav-button__mobile-chevron",
2395
- icon: r(Hl)
2524
+ icon: r(jl)
2396
2525
  }, null, 8, ["icon"])) : _("", !0)
2397
- ], 8, Fl)
2526
+ ], 8, eo)
2398
2527
  ]),
2399
2528
  _: 2
2400
2529
  }, [
2401
- s.children ? {
2530
+ n.children ? {
2402
2531
  name: "options",
2403
2532
  fn: $(() => [
2404
- b(m.$slots, "children")
2533
+ b(y.$slots, "children")
2405
2534
  ]),
2406
2535
  key: "0"
2407
2536
  } : void 0
2408
2537
  ]), 1040, ["mobile-children-open", "class", "is-mobile"]));
2409
2538
  }
2410
- }), An = /* @__PURE__ */ k({
2539
+ }), es = /* @__PURE__ */ w({
2411
2540
  __name: "OnyxNavItem",
2412
2541
  props: {
2413
2542
  href: {},
@@ -2418,34 +2547,34 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2418
2547
  emits: ["click"],
2419
2548
  setup(t, { emit: a }) {
2420
2549
  const e = t, l = a;
2421
- return (s, o) => (n(), x(xt, {
2550
+ return (n, o) => (s(), x($t, {
2422
2551
  class: "onyx-nav-item",
2423
2552
  active: e.active,
2424
2553
  href: e.href ?? "javascript:void(0)",
2425
- onClick: o[0] || (o[0] = (i) => e.href && l("click", e.href))
2554
+ onClick: o[0] || (o[0] = (u) => e.href && l("click", e.href))
2426
2555
  }, {
2427
2556
  default: $(() => [
2428
- b(s.$slots, "default", {}, () => [
2429
- v("span", null, M(e.label), 1),
2430
- V(Pe, te(ae(e)), null, 16)
2557
+ b(n.$slots, "default", {}, () => [
2558
+ f("span", null, V(e.label), 1),
2559
+ M(Ue, ee(te(e)), null, 16)
2431
2560
  ])
2432
2561
  ]),
2433
2562
  _: 3
2434
2563
  }, 8, ["active", "href"]));
2435
2564
  }
2436
- }), Rl = (t) => {
2437
- const a = O(), e = O(Ve(new Date(t.value).getTime())), l = h(() => e.value === 0);
2438
- return K(
2565
+ }), ao = (t) => {
2566
+ const a = T(), e = T(Oe(new Date(t.value).getTime())), l = h(() => e.value === 0);
2567
+ return Y(
2439
2568
  t,
2440
- (s) => {
2569
+ (n) => {
2441
2570
  clearInterval(a.value);
2442
- const o = new Date(s).getTime();
2443
- e.value = Ve(o), a.value = setInterval(() => {
2444
- e.value = Ve(o), l.value && clearInterval(a.value);
2571
+ const o = new Date(n).getTime();
2572
+ e.value = Oe(o), a.value = setInterval(() => {
2573
+ e.value = Oe(o), l.value && clearInterval(a.value);
2445
2574
  }, 1e3);
2446
2575
  },
2447
2576
  { immediate: !0 }
2448
- ), pe(() => clearInterval(a.value)), {
2577
+ ), ye(() => clearInterval(a.value)), {
2449
2578
  /**
2450
2579
  * Time (in milliseconds) that the timer has left.
2451
2580
  */
@@ -2455,26 +2584,26 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2455
2584
  */
2456
2585
  isEnded: l
2457
2586
  };
2458
- }, Ve = (t) => {
2587
+ }, Oe = (t) => {
2459
2588
  const a = t - Date.now();
2460
2589
  return Math.max(a, 0);
2461
- }, gt = (t) => {
2590
+ }, Bt = (t) => {
2462
2591
  const a = Math.floor(t / 6e4 / 60), e = Math.floor(t / 6e4 % 60), l = Math.floor(t % 6e4 / 1e3);
2463
2592
  return { hours: a, minutes: e, seconds: l };
2464
- }, ql = (t, a) => {
2465
- const { hours: e, minutes: l, seconds: s } = gt(t), o = (c) => c.toString().padStart(2, "0");
2466
- let i = "", u = Se(a.formatToParts(t, "seconds"));
2467
- return l > 0 && (u = Se(a.formatToParts(t, "minutes"))), e > 0 && (u = Se(a.formatToParts(t, "hours")), i = `${o(e)}:`), `${i}${o(l)}:${o(s)} ${u}`;
2468
- }, Se = (t) => {
2593
+ }, lo = (t, a) => {
2594
+ const { hours: e, minutes: l, seconds: n } = Bt(t), o = (i) => i.toString().padStart(2, "0");
2595
+ let u = "", c = Le(a.formatToParts(t, "seconds"));
2596
+ return l > 0 && (c = Le(a.formatToParts(t, "minutes"))), e > 0 && (c = Le(a.formatToParts(t, "hours")), u = `${o(e)}:`), `${u}${o(l)}:${o(n)} ${c}`;
2597
+ }, Le = (t) => {
2469
2598
  var a;
2470
2599
  return ((a = t.at(-1)) == null ? void 0 : a.value.replace(".", "").trim()) ?? "";
2471
- }, Zl = (t) => {
2472
- const { hours: a, minutes: e, seconds: l } = gt(t);
2600
+ }, oo = (t) => {
2601
+ const { hours: a, minutes: e, seconds: l } = Bt(t);
2473
2602
  return `PT${a}H${e}M${l}S`;
2474
- }, Kl = ["aria-label"], Gl = {
2603
+ }, no = ["aria-label"], so = {
2475
2604
  key: 0,
2476
2605
  class: "onyx-timer__label"
2477
- }, jl = ["datetime"], Hn = /* @__PURE__ */ k({
2606
+ }, ro = ["datetime"], ts = /* @__PURE__ */ w({
2478
2607
  __name: "OnyxTimer",
2479
2608
  props: {
2480
2609
  endTime: {},
@@ -2483,135 +2612,155 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2483
2612
  },
2484
2613
  emits: ["timerEnded"],
2485
2614
  setup(t, { emit: a }) {
2486
- const e = t, l = a, { locale: s } = P(), { timeLeft: o, isEnded: i } = Rl(h(() => e.endTime)), u = h(
2487
- () => new Intl.RelativeTimeFormat(s.value, { numeric: "always", style: "short" })
2488
- ), c = h(() => ql(o.value, u.value));
2489
- return X(() => i.value && l("timerEnded")), (m, y) => (n(), p("div", {
2615
+ const e = t, l = a, { locale: n } = N(), { timeLeft: o, isEnded: u } = ao(h(() => e.endTime)), c = h(
2616
+ () => new Intl.RelativeTimeFormat(n.value, { numeric: "always", style: "short" })
2617
+ ), i = h(() => lo(o.value, c.value));
2618
+ return Q(() => u.value && l("timerEnded")), (y, d) => (s(), p("div", {
2490
2619
  class: "onyx-timer onyx-text onyx-truncation-ellipsis",
2491
2620
  role: "timer",
2492
2621
  "aria-label": e.hideLabel ? e.label : void 0
2493
2622
  }, [
2494
- e.hideLabel ? _("", !0) : (n(), p("span", Gl, M(e.label), 1)),
2495
- v("time", {
2496
- datetime: r(Zl)(r(o)),
2623
+ e.hideLabel ? _("", !0) : (s(), p("span", so, V(e.label), 1)),
2624
+ f("time", {
2625
+ datetime: r(oo)(r(o)),
2497
2626
  class: "onyx-timer__time"
2498
- }, M(c.value), 9, jl)
2499
- ], 8, Kl));
2627
+ }, V(i.value), 9, ro)
2628
+ ], 8, no));
2500
2629
  }
2501
- }), Yl = /* @__PURE__ */ k({
2630
+ }), io = { class: "onyx-user-menu__footer onyx-text--small" }, uo = /* @__PURE__ */ w({
2502
2631
  __name: "UserMenuLayout",
2503
- props: {
2632
+ props: /* @__PURE__ */ he({
2504
2633
  isMobile: { type: Boolean }
2505
- },
2634
+ }, {
2635
+ flyoutOpen: { type: Boolean, default: !1 },
2636
+ flyoutOpenModifiers: {}
2637
+ }),
2638
+ emits: ["update:flyoutOpen"],
2506
2639
  setup(t) {
2507
- const a = t, e = R(), { t: l } = P();
2508
- return (s, o) => (n(), p("div", null, [
2509
- a.isMobile ? (n(), p(z, { key: 0 }, [
2510
- b(s.$slots, "header"),
2511
- b(s.$slots, "options"),
2512
- b(s.$slots, "footer")
2513
- ], 64)) : (n(), x(bt, {
2640
+ const a = t, e = ve(t, "flyoutOpen"), l = G(), { t: n } = N();
2641
+ return (o, u) => (s(), p("div", null, [
2642
+ a.isMobile ? (s(), p(R, { key: 0 }, [
2643
+ b(o.$slots, "header"),
2644
+ b(o.$slots, "options"),
2645
+ l.footer ? (s(), x(Fe, {
2646
+ key: 0,
2647
+ class: "onyx-user-menu__mobile-footer",
2648
+ disabled: ""
2649
+ }, {
2650
+ default: $(() => [
2651
+ b(o.$slots, "footer")
2652
+ ]),
2653
+ _: 3
2654
+ })) : _("", !0)
2655
+ ], 64)) : (s(), x(Mt, {
2514
2656
  key: 1,
2515
- class: "onyx-user-menu__flyout",
2516
- label: r(l)("navigation.userMenuLabel")
2517
- }, me({
2657
+ label: r(n)("navigation.userMenuLabel"),
2658
+ open: e.value
2659
+ }, fe({
2518
2660
  header: $(() => [
2519
- b(s.$slots, "header")
2661
+ b(o.$slots, "header")
2520
2662
  ]),
2521
2663
  options: $(() => [
2522
- b(s.$slots, "options")
2664
+ b(o.$slots, "options")
2523
2665
  ]),
2524
2666
  default: $(() => [
2525
- b(s.$slots, "button")
2667
+ b(o.$slots, "button")
2526
2668
  ]),
2527
2669
  _: 2
2528
2670
  }, [
2529
- e.footer ? {
2671
+ l.footer ? {
2530
2672
  name: "footer",
2531
2673
  fn: $(() => [
2532
- b(s.$slots, "footer")
2674
+ f("div", io, [
2675
+ b(o.$slots, "footer")
2676
+ ])
2533
2677
  ]),
2534
2678
  key: "0"
2535
2679
  } : void 0
2536
- ]), 1032, ["label"]))
2680
+ ]), 1032, ["label", "open"]))
2537
2681
  ]));
2538
2682
  }
2539
- }), Wl = {
2683
+ }), co = {
2540
2684
  class: "onyx-user-menu__trigger onyx-text",
2541
2685
  type: "button"
2542
- }, Xl = { class: "onyx-truncation-ellipsis" }, Jl = { class: "onyx-user-menu__header" }, Ql = { class: "onyx-truncation-ellipsis" }, eo = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" }, to = {
2686
+ }, po = { class: "onyx-truncation-ellipsis" }, mo = { class: "onyx-user-menu__header" }, yo = { class: "onyx-truncation-ellipsis" }, ho = { class: "onyx-user-menu__username onyx-text onyx-truncation-ellipsis" }, vo = {
2543
2687
  key: 0,
2544
2688
  class: "onyx-user-menu__description onyx-text--small onyx-truncation-ellipsis"
2545
- }, ao = { class: "onyx-user-menu__footer onyx-text--small" }, Pn = /* @__PURE__ */ k({
2689
+ }, fo = { class: "onyx-user-menu__options" }, as = /* @__PURE__ */ w({
2546
2690
  __name: "OnyxUserMenu",
2547
- props: {
2691
+ props: /* @__PURE__ */ he({
2548
2692
  username: {},
2549
2693
  avatar: {},
2550
2694
  description: {}
2551
- },
2695
+ }, {
2696
+ flyoutOpen: { type: Boolean, default: !1 },
2697
+ flyoutOpenModifiers: {}
2698
+ }),
2699
+ emits: ["update:flyoutOpen"],
2552
2700
  setup(t) {
2553
- const a = t, e = R(), l = h(() => ({ src: a.avatar, label: a.username })), s = se(
2554
- he,
2701
+ const a = t, e = ve(t, "flyoutOpen"), l = G(), n = h(() => ({ src: a.avatar, label: a.username })), o = ue(
2702
+ be,
2555
2703
  h(() => !1)
2556
2704
  );
2557
- return (o, i) => (n(), x(Yl, {
2558
- class: g(["onyx-user-menu", { "onyx-user-menu--mobile": r(s) }]),
2559
- "is-mobile": r(s) ?? !1
2560
- }, me({
2705
+ return (u, c) => (s(), x(uo, {
2706
+ class: g(["onyx-user-menu", { "onyx-user-menu--mobile": r(o) }]),
2707
+ "is-mobile": r(o),
2708
+ "flyout-open": e.value
2709
+ }, fe({
2561
2710
  button: $(() => [
2562
- v("button", Wl, [
2563
- V(Ze, B(l.value, { size: "24px" }), null, 16),
2564
- v("span", Xl, M(a.username), 1)
2711
+ f("button", co, [
2712
+ M(Ye, O(n.value, { size: "24px" }), null, 16),
2713
+ f("span", po, V(a.username), 1)
2565
2714
  ])
2566
2715
  ]),
2567
2716
  header: $(() => [
2568
- v("div", Jl, [
2569
- V(Ze, te(ae(l.value)), null, 16),
2570
- v("div", Ql, [
2571
- v("div", eo, M(a.username), 1),
2572
- a.description ? (n(), p("div", to, M(a.description), 1)) : _("", !0)
2717
+ f("div", mo, [
2718
+ M(Ye, ee(te(n.value)), null, 16),
2719
+ f("div", yo, [
2720
+ f("div", ho, V(a.username), 1),
2721
+ a.description ? (s(), p("div", vo, V(a.description), 1)) : _("", !0)
2573
2722
  ])
2574
2723
  ])
2575
2724
  ]),
2576
2725
  options: $(() => [
2577
- b(o.$slots, "default")
2726
+ f("div", fo, [
2727
+ b(u.$slots, "default")
2728
+ ])
2578
2729
  ]),
2579
2730
  _: 2
2580
2731
  }, [
2581
- e.footer ? {
2732
+ l.footer ? {
2582
2733
  name: "footer",
2583
2734
  fn: $(() => [
2584
- v("div", ao, [
2585
- b(o.$slots, "footer")
2586
- ])
2735
+ b(u.$slots, "footer")
2587
2736
  ]),
2588
2737
  key: "0"
2589
2738
  } : void 0
2590
- ]), 1032, ["class", "is-mobile"]));
2739
+ ]), 1032, ["class", "is-mobile", "flyout-open"]));
2591
2740
  }
2592
- }), lo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>', oo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>', no = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>', so = (t, a) => {
2593
- const e = "content-box", l = O(0), s = O(0), o = (i) => {
2594
- const u = i[0].contentBoxSize;
2595
- l.value = u.reduce((c, { inlineSize: m }) => c + m, 0), s.value = u.reduce((c, { blockSize: m }) => c + m, 0);
2741
+ }), _o = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m20.207 9.707-1.414-1.414L11.086 16l7.707 7.707 1.414-1.414L13.914 16z"/></svg>', xo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M2 15h28v2H2zm0-7h28v2H2zm0 14h28v2H2z"/></svg>', bo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><circle cx="16" cy="5" r="3"/><circle cx="16" cy="16" r="3"/><circle cx="16" cy="27" r="3"/></svg>', go = (t, a) => {
2742
+ const e = "content-box", l = T(0), n = T(0), o = (u) => {
2743
+ const c = u[0].contentBoxSize;
2744
+ l.value = c.reduce((i, { inlineSize: y }) => i + y, 0), n.value = c.reduce((i, { blockSize: y }) => i + y, 0);
2596
2745
  };
2597
- return Ae(() => {
2598
- const i = new ResizeObserver(o);
2599
- K(
2746
+ return Ne(() => {
2747
+ const u = new ResizeObserver(o);
2748
+ Y(
2600
2749
  t,
2601
- (u, c) => {
2602
- c && (i == null || i.unobserve(c)), u && (i == null || i.observe(u, { box: e }));
2750
+ (c, i) => {
2751
+ i && (u == null || u.unobserve(i)), c && (u == null || u.observe(c, { box: e }));
2603
2752
  },
2604
2753
  { immediate: !0 }
2605
- ), pe(() => i.disconnect());
2606
- }), { width: l, height: s };
2607
- }, ro = {
2754
+ ), ye(() => u.disconnect());
2755
+ }), { width: l, height: n };
2756
+ }, ko = {
2608
2757
  "2xs": 320,
2609
2758
  xs: 576,
2610
2759
  sm: 768,
2611
2760
  md: 992,
2612
2761
  lg: 1440,
2613
2762
  xl: 1920
2614
- }, Dn = [
2763
+ }, ls = [
2615
2764
  "primary",
2616
2765
  "secondary",
2617
2766
  "neutral",
@@ -2619,22 +2768,19 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2619
2768
  "warning",
2620
2769
  "success",
2621
2770
  "info"
2622
- ], zn = ["small", "default", "large"], Nn = ["ellipsis", "multiline"], Un = ["horizontal", "vertical"], io = { class: "onyx-nav-bar__content" }, co = {
2771
+ ], os = ["small", "default", "large"], ns = ["ellipsis", "multiline"], ss = ["horizontal", "vertical"], wo = { class: "onyx-nav-bar__content" }, Co = {
2623
2772
  key: 0,
2624
- class: "onyx-nav-bar__mobile-page"
2625
- }, uo = { class: "onyx-nav-bar__nav--mobile" }, po = { role: "menubar" }, mo = {
2626
- key: 1,
2627
- class: "onyx-nav-bar__nav"
2628
- }, yo = { role: "menubar" }, ho = {
2773
+ class: "onyx-nav-bar__mobile-page onyx-truncation-ellipsis"
2774
+ }, $o = { role: "menubar" }, Mo = { role: "menubar" }, Bo = {
2629
2775
  key: 0,
2630
2776
  class: "onyx-nav-bar__mobile-context"
2631
- }, vo = {
2777
+ }, Vo = {
2632
2778
  key: 0,
2633
2779
  class: "onyx-nav-bar__mobile-global-context"
2634
- }, fo = { class: "onyx-nav-bar__mobile-context-content" }, _o = {
2780
+ }, So = { class: "onyx-nav-bar__mobile-context-content" }, Oo = {
2635
2781
  key: 1,
2636
2782
  class: "onyx-nav-bar__context"
2637
- }, Fn = /* @__PURE__ */ k({
2783
+ }, rs = /* @__PURE__ */ w({
2638
2784
  __name: "OnyxNavBar",
2639
2785
  props: {
2640
2786
  logoUrl: {},
@@ -2645,11 +2791,13 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2645
2791
  },
2646
2792
  emits: ["appAreaClick", "backButtonClick"],
2647
2793
  setup(t, { expose: a, emit: e }) {
2648
- const l = t, s = e, o = R(), i = O(), { width: u } = so(i), { t: c } = P(), m = O(!1), y = O(!1), d = h(() => {
2649
- const f = typeof l.mobileBreakpoint == "number" ? l.mobileBreakpoint : ro[l.mobileBreakpoint];
2650
- return u.value !== 0 && u.value < f;
2794
+ const l = t, n = e, o = G(), u = T(), { width: c } = go(u), { t: i } = N(), {
2795
+ elements: { nav: y }
2796
+ } = dl({ navigationName: Te(() => l.appName) }), d = T(!1), m = T(!1), v = h(() => {
2797
+ const k = typeof l.mobileBreakpoint == "number" ? l.mobileBreakpoint : ko[l.mobileBreakpoint];
2798
+ return c.value !== 0 && c.value < k;
2651
2799
  });
2652
- return Ot(he, d), a({
2800
+ return Nt(be, v), a({
2653
2801
  /**
2654
2802
  * Closes the mobile burger and context menu.
2655
2803
  * Useful if you want to e.g. close them when a nav item is clicked.
@@ -2664,133 +2812,128 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2664
2812
  * ```
2665
2813
  */
2666
2814
  closeMobileMenus: () => {
2667
- m.value = !1, y.value = !1;
2815
+ d.value = !1, m.value = !1;
2668
2816
  }
2669
- }), (f, C) => (n(), p("header", {
2817
+ }), (k, S) => (s(), p("header", {
2670
2818
  ref_key: "navBarRef",
2671
- ref: i,
2672
- class: g(["onyx-nav-bar", { "onyx-nav-bar--mobile": d.value }])
2819
+ ref: u,
2820
+ class: g(["onyx-nav-bar", { "onyx-nav-bar--mobile": v.value }])
2673
2821
  }, [
2674
- v("div", io, [
2675
- d.value && !m.value && o.mobileActivePage ? (n(), p("span", co, [
2676
- b(f.$slots, "mobileActivePage")
2677
- ])) : l.appName || l.logoUrl || o.appArea ? (n(), x(kl, {
2822
+ f("div", wo, [
2823
+ v.value && o.mobileActivePage && !d.value && !m.value ? (s(), p("span", Co, [
2824
+ b(k.$slots, "mobileActivePage")
2825
+ ])) : l.appName || l.logoUrl || o.appArea ? (s(), x(Al, {
2678
2826
  key: 1,
2679
2827
  class: "onyx-nav-bar__app",
2680
2828
  "app-name": l.appName,
2681
2829
  "logo-url": l.logoUrl,
2682
2830
  label: l.appAreaLabel,
2683
- onClick: C[0] || (C[0] = (T) => {
2684
- s("appAreaClick"), m.value = !1;
2831
+ onClick: S[0] || (S[0] = (B) => {
2832
+ n("appAreaClick"), d.value = !1;
2685
2833
  })
2686
2834
  }, {
2687
2835
  default: $(() => [
2688
- b(f.$slots, "appArea")
2836
+ b(k.$slots, "appArea")
2689
2837
  ]),
2690
2838
  _: 3
2691
2839
  }, 8, ["app-name", "logo-url", "label"])) : _("", !0),
2692
- l.withBackButton ? (n(), x(Na, {
2840
+ l.withBackButton ? (s(), x(Wa, {
2693
2841
  key: 2,
2694
2842
  class: "onyx-nav-bar__back",
2695
- label: r(c)("navigation.goBack"),
2696
- icon: r(lo),
2843
+ label: r(i)("navigation.goBack"),
2844
+ icon: r(_o),
2697
2845
  color: "neutral",
2698
- onClick: C[1] || (C[1] = (T) => s("backButtonClick"))
2846
+ onClick: S[1] || (S[1] = (B) => n("backButtonClick"))
2699
2847
  }, null, 8, ["label", "icon"])) : _("", !0),
2700
- o.default ? (n(), p(z, { key: 3 }, [
2701
- d.value ? (n(), x(Ge, {
2848
+ o.default ? (s(), p(R, { key: 3 }, [
2849
+ v.value ? (s(), x(Qe, {
2702
2850
  key: 0,
2703
- open: m.value,
2851
+ open: d.value,
2704
2852
  "onUpdate:open": [
2705
- C[2] || (C[2] = (T) => m.value = T),
2706
- C[3] || (C[3] = (T) => y.value = !1)
2853
+ S[2] || (S[2] = (B) => d.value = B),
2854
+ S[3] || (S[3] = (B) => m.value = !1)
2707
2855
  ],
2708
2856
  class: "onyx-nav-bar__burger",
2709
- icon: r(oo),
2710
- label: r(c)("navigation.toggleBurgerMenu")
2857
+ icon: r(xo),
2858
+ label: r(i)("navigation.toggleBurgerMenu"),
2859
+ headline: r(i)("navigation.navigationHeadline")
2711
2860
  }, {
2712
2861
  default: $(() => [
2713
- V(ne, {
2714
- is: "h2",
2715
- class: "onyx-nav-bar__mobile-headline"
2716
- }, {
2717
- default: $(() => [
2718
- F(M(r(c)("navigation.navigationHeadline")), 1)
2719
- ]),
2720
- _: 1
2721
- }),
2722
- v("nav", uo, [
2723
- v("ul", po, [
2724
- b(f.$slots, "default")
2862
+ f("nav", O({ class: "onyx-nav-bar__nav--mobile" }, r(y)), [
2863
+ f("ul", $o, [
2864
+ b(k.$slots, "default")
2725
2865
  ])
2726
- ])
2866
+ ], 16)
2727
2867
  ]),
2728
2868
  _: 3
2729
- }, 8, ["open", "icon", "label"])) : (n(), p("nav", mo, [
2730
- v("ul", yo, [
2731
- b(f.$slots, "default")
2869
+ }, 8, ["open", "icon", "label", "headline"])) : (s(), p("nav", O({
2870
+ key: 1,
2871
+ class: "onyx-nav-bar__nav"
2872
+ }, r(y)), [
2873
+ f("ul", Mo, [
2874
+ b(k.$slots, "default")
2732
2875
  ])
2733
- ]))
2876
+ ], 16))
2734
2877
  ], 64)) : _("", !0),
2735
- o.contextArea || o.globalContextArea ? (n(), p(z, { key: 4 }, [
2736
- d.value ? (n(), p("div", ho, [
2737
- o.globalContextArea ? (n(), p("div", vo, [
2738
- b(f.$slots, "globalContextArea")
2878
+ o.contextArea || o.globalContextArea ? (s(), p(R, { key: 4 }, [
2879
+ v.value ? (s(), p("div", Bo, [
2880
+ o.globalContextArea ? (s(), p("div", Vo, [
2881
+ b(k.$slots, "globalContextArea")
2739
2882
  ])) : _("", !0),
2740
- o.contextArea ? (n(), x(Ge, {
2883
+ o.contextArea ? (s(), x(Qe, {
2741
2884
  key: 1,
2742
- open: y.value,
2885
+ open: m.value,
2743
2886
  "onUpdate:open": [
2744
- C[4] || (C[4] = (T) => y.value = T),
2745
- C[5] || (C[5] = (T) => m.value = !1)
2887
+ S[4] || (S[4] = (B) => m.value = B),
2888
+ S[5] || (S[5] = (B) => d.value = !1)
2746
2889
  ],
2747
- icon: r(no),
2748
- label: r(c)("navigation.toggleContextMenu")
2890
+ icon: r(bo),
2891
+ label: r(i)("navigation.toggleContextMenu")
2749
2892
  }, {
2750
2893
  default: $(() => [
2751
- v("div", fo, [
2752
- b(f.$slots, "contextArea")
2894
+ f("div", So, [
2895
+ b(k.$slots, "contextArea")
2753
2896
  ])
2754
2897
  ]),
2755
2898
  _: 3
2756
2899
  }, 8, ["open", "icon", "label"])) : _("", !0)
2757
- ])) : (n(), p("div", _o, [
2758
- o.globalContextArea ? b(f.$slots, "globalContextArea", { key: 0 }) : _("", !0),
2759
- o.contextArea ? b(f.$slots, "contextArea", { key: 1 }) : _("", !0)
2900
+ ])) : (s(), p("div", Oo, [
2901
+ o.globalContextArea ? b(k.$slots, "globalContextArea", { key: 0 }) : _("", !0),
2902
+ o.contextArea ? b(k.$slots, "contextArea", { key: 1 }) : _("", !0)
2760
2903
  ]))
2761
2904
  ], 64)) : _("", !0)
2762
2905
  ])
2763
2906
  ], 2));
2764
2907
  }
2765
- }), xo = {
2908
+ }), Lo = {
2766
2909
  key: 0,
2767
2910
  class: "onyx-page__sidebar"
2768
- }, bo = { class: "onyx-page__main" }, go = {
2911
+ }, To = { class: "onyx-page__main" }, Eo = {
2769
2912
  key: 1,
2770
2913
  class: "onyx-page__footer"
2771
- }, Rn = /* @__PURE__ */ k({
2914
+ }, is = /* @__PURE__ */ w({
2772
2915
  __name: "OnyxPageLayout",
2773
2916
  props: {
2774
2917
  footerAsideSidebar: { type: Boolean },
2775
2918
  hideSidebar: { type: Boolean }
2776
2919
  },
2777
2920
  setup(t) {
2778
- const a = t, e = R(), l = h(() => a.footerAsideSidebar ? "onyx-page--footer-partial" : "onyx-page--footer-full");
2779
- return (s, o) => (n(), p("div", {
2921
+ const a = t, e = G(), l = h(() => a.footerAsideSidebar ? "onyx-page--footer-partial" : "onyx-page--footer-full");
2922
+ return (n, o) => (s(), p("div", {
2780
2923
  class: g(["onyx-page", l.value])
2781
2924
  }, [
2782
- e.sidebar && !a.hideSidebar ? (n(), p("aside", xo, [
2783
- b(s.$slots, "sidebar")
2925
+ e.sidebar && !a.hideSidebar ? (s(), p("aside", Lo, [
2926
+ b(n.$slots, "sidebar")
2784
2927
  ])) : _("", !0),
2785
- v("main", bo, [
2786
- b(s.$slots, "default")
2928
+ f("main", To, [
2929
+ b(n.$slots, "default")
2787
2930
  ]),
2788
- e.footer ? (n(), p("footer", go, [
2789
- b(s.$slots, "footer")
2931
+ e.footer ? (s(), p("footer", Eo, [
2932
+ b(n.$slots, "footer")
2790
2933
  ])) : _("", !0)
2791
2934
  ], 2));
2792
2935
  }
2793
- }), ko = ["title"], wo = ["required", "name", "value", "checked", "disabled", "autofocus"], je = /* @__PURE__ */ k({
2936
+ }), Io = ["title"], Ao = ["required", "name", "value", "checked", "disabled", "autofocus"], et = /* @__PURE__ */ w({
2794
2937
  __name: "OnyxRadioButton",
2795
2938
  props: {
2796
2939
  density: {},
@@ -2808,26 +2951,26 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2808
2951
  },
2809
2952
  emits: ["change", "validityChange"],
2810
2953
  setup(t, { emit: a }) {
2811
- const e = t, l = a, { vCustomValidity: s } = le({ props: e, emit: l }), { densityClass: o } = H(e), i = (u) => {
2812
- const c = u.target.checked;
2813
- l("change", c);
2954
+ const e = t, l = a, { vCustomValidity: n, title: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = (i) => {
2955
+ const y = i.target.checked;
2956
+ l("change", y);
2814
2957
  };
2815
- return (u, c) => e.skeleton ? (n(), p("div", {
2958
+ return (i, y) => e.skeleton ? (s(), p("div", {
2816
2959
  key: 0,
2817
- class: g(["onyx-radio-button-skeleton", r(o)])
2960
+ class: g(["onyx-radio-button-skeleton", r(u)])
2818
2961
  }, [
2819
- V(U, { class: "onyx-radio-button-skeleton__input" }),
2820
- V(U, { class: "onyx-radio-button-skeleton__label" })
2821
- ], 2)) : (n(), p("label", {
2962
+ M(U, { class: "onyx-radio-button-skeleton__input" }),
2963
+ M(U, { class: "onyx-radio-button-skeleton__label" })
2964
+ ], 2)) : (s(), p("label", {
2822
2965
  key: 1,
2823
- class: g(["onyx-radio-button", r(o)]),
2824
- title: r(ot)(e.customError)
2966
+ class: g(["onyx-radio-button", r(u)]),
2967
+ title: r(o)
2825
2968
  }, [
2826
- e.loading ? (n(), x(J, {
2969
+ e.loading ? (s(), x(X, {
2827
2970
  key: 0,
2828
2971
  class: "onyx-radio-button__loading",
2829
2972
  type: "circle"
2830
- })) : G((n(), p("input", {
2973
+ })) : K((s(), p("input", {
2831
2974
  key: 1,
2832
2975
  class: "onyx-radio-button__selector",
2833
2976
  type: "radio",
@@ -2837,27 +2980,28 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2837
2980
  checked: e.checked,
2838
2981
  disabled: e.disabled,
2839
2982
  autofocus: e.autofocus,
2840
- onChange: i
2841
- }, null, 40, wo)), [
2842
- [r(s)]
2983
+ onChange: c
2984
+ }, null, 40, Ao)), [
2985
+ [r(n)]
2843
2986
  ]),
2844
- v("span", {
2987
+ f("span", {
2845
2988
  class: g(["onyx-radio-button__label", [`onyx-truncation-${e.truncation}`]])
2846
- }, M(e.label), 3)
2847
- ], 10, ko));
2989
+ }, V(e.label), 3)
2990
+ ], 10, Io));
2848
2991
  }
2849
- }), Co = ["disabled"], $o = {
2992
+ }), Ho = ["disabled"], Po = {
2850
2993
  key: 0,
2851
2994
  class: "onyx-radio-button-group__headline"
2852
- }, qn = /* @__PURE__ */ k({
2995
+ }, us = /* @__PURE__ */ w({
2853
2996
  __name: "OnyxRadioGroup",
2854
2997
  props: {
2855
2998
  density: {},
2856
2999
  required: { type: Boolean, default: !1 },
2857
3000
  requiredMarker: {},
2858
3001
  customError: {},
3002
+ truncation: { default: "ellipsis" },
2859
3003
  options: {},
2860
- name: { default: () => ee("radio-button-group-name") },
3004
+ name: { default: () => W("radio-button-group-name") },
2861
3005
  modelValue: {},
2862
3006
  headline: { default: "" },
2863
3007
  disabled: { type: Boolean, default: !1 },
@@ -2866,73 +3010,77 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2866
3010
  },
2867
3011
  emits: ["update:modelValue", "validityChange"],
2868
3012
  setup(t, { emit: a }) {
2869
- const e = t, { densityClass: l } = H(e), { requiredMarkerClass: s, requiredTypeClass: o } = ye(e), i = a, u = (c, m) => {
2870
- c && i("update:modelValue", m);
3013
+ const e = t, { densityClass: l } = H(e), { requiredMarkerClass: n, requiredTypeClass: o } = _e(e), u = a, c = (i, y) => {
3014
+ i && u("update:modelValue", y);
2871
3015
  };
2872
- return (c, m) => (n(), p("fieldset", {
3016
+ return (i, y) => (s(), p("fieldset", {
2873
3017
  class: g(["onyx-radio-button-group", r(l), r(o)]),
2874
3018
  disabled: e.disabled,
2875
3019
  role: "radiogroup"
2876
3020
  }, [
2877
- e.headline ? (n(), p("legend", $o, [
2878
- V(ne, {
3021
+ e.headline ? (s(), p("legend", Po, [
3022
+ M(ie, {
2879
3023
  is: "h3",
2880
- class: g(r(s))
3024
+ class: g(r(n))
2881
3025
  }, {
2882
3026
  default: $(() => [
2883
- F(M(e.headline), 1)
3027
+ Z(V(e.headline), 1)
2884
3028
  ]),
2885
3029
  _: 1
2886
3030
  }, 8, ["class"])
2887
3031
  ])) : _("", !0),
2888
- v("div", {
3032
+ f("div", {
2889
3033
  class: g(["onyx-radio-button-group__content", { "onyx-radio-button-group__content--horizontal": e.direction === "horizontal" }])
2890
3034
  }, [
2891
- e.skeleton === void 0 ? (n(!0), p(z, { key: 0 }, W(e.options, (y, d) => (n(), x(je, B({
2892
- key: y.value.toString(),
3035
+ e.skeleton === void 0 ? (s(!0), p(R, { key: 0 }, J(e.options, (d, m) => (s(), x(et, O({
3036
+ key: d.value.toString(),
2893
3037
  ref_for: !0
2894
- }, y, {
3038
+ }, d, {
2895
3039
  name: e.name,
2896
3040
  "custom-error": e.customError,
2897
- checked: y.value === e.modelValue,
3041
+ checked: d.value === e.modelValue,
2898
3042
  required: e.required,
2899
- onValidityChange: (f) => d === 0 && i("validityChange", f),
2900
- onChange: (f) => u(f, y.value)
2901
- }), null, 16, ["name", "custom-error", "checked", "required", "onValidityChange", "onChange"]))), 128)) : (n(!0), p(z, { key: 1 }, W(e.skeleton, (y) => (n(), x(je, {
2902
- id: `skeleton-${y}`,
2903
- key: y,
2904
- value: `skeleton-${y}`,
3043
+ truncation: d.truncation ?? e.truncation,
3044
+ onValidityChange: (v) => m === 0 && u("validityChange", v),
3045
+ onChange: (v) => c(v, d.value)
3046
+ }), null, 16, ["name", "custom-error", "checked", "required", "truncation", "onValidityChange", "onChange"]))), 128)) : (s(!0), p(R, { key: 1 }, J(e.skeleton, (d) => (s(), x(et, {
3047
+ id: `skeleton-${d}`,
3048
+ key: d,
3049
+ value: `skeleton-${d}`,
2905
3050
  label: "Skeleton ${i}",
2906
3051
  name: e.name,
2907
3052
  skeleton: ""
2908
3053
  }, null, 8, ["id", "value", "name"]))), 128))
2909
3054
  ], 2)
2910
- ], 10, Co));
3055
+ ], 10, Ho));
2911
3056
  }
2912
- }), Mo = (t) => {
2913
- const e = O(!1), l = (o) => {
2914
- const i = o.target;
2915
- if (!(i instanceof Element)) return;
2916
- const u = r(t.offset) ?? 0;
2917
- e.value = Math.abs(i.scrollTop) + i.clientHeight >= i.scrollHeight - u - 1;
3057
+ }), Do = (t) => {
3058
+ const e = T(!1), l = (o) => {
3059
+ const u = o.target;
3060
+ if (!(u instanceof Element)) return;
3061
+ const c = r(t.offset) ?? 0;
3062
+ e.value = Math.abs(u.scrollTop) + u.clientHeight >= u.scrollHeight - c - 1;
2918
3063
  };
2919
3064
  return { vScrollEnd: {
2920
3065
  mounted: (o) => {
2921
- X(() => {
2922
- var u;
2923
- (((u = t.enabled) == null ? void 0 : u.value) ?? !0) && !t.loading.value ? o.addEventListener("scroll", l) : o.removeEventListener("scroll", l);
3066
+ Q(() => {
3067
+ var c;
3068
+ (((c = t.enabled) == null ? void 0 : c.value) ?? !0) && !t.loading.value ? o.addEventListener("scroll", l) : o.removeEventListener("scroll", l);
2924
3069
  });
2925
3070
  }
2926
3071
  }, isScrollEnd: e };
2927
- }, Ye = (t, a, e) => {
2928
- const l = h(() => t.value === void 0), s = O(l.value ? a : t.value);
3072
+ }, tt = (t, a, e) => {
3073
+ const l = h(() => t.value === void 0), n = T(l.value ? a : t.value);
2929
3074
  return h({
2930
3075
  set: (o) => {
2931
- s.value = o, e(o);
3076
+ n.value = o, e(o);
2932
3077
  },
2933
- get: () => l.value ? s.value : t.value
3078
+ get: () => l.value ? n.value : t.value
2934
3079
  });
2935
- }, Vo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>', So = { class: "onyx-select-input__wrapper" }, Bo = ["readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"], Oo = ["aria-label", "disabled"], Eo = /* @__PURE__ */ k({
3080
+ }, No = (t, a) => {
3081
+ const e = at(t.toLowerCase()), l = at(a.toLowerCase());
3082
+ return e.includes(l);
3083
+ }, at = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), zo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m22.29 18.83 1.41 1.41-7.71 7.71-7.71-7.71 1.41-1.41 6.29 6.29 6.29-6.29ZM16 6.87l6.29 6.29 1.41-1.41-7.71-7.71-7.71 7.71 1.41 1.41 6.29-6.29Z"/></svg>', Ro = { class: "onyx-select-input__wrapper" }, Uo = ["id", "readonly", "placeholder", "required", "disabled", "aria-label", "title", "value", "autofocus"], Fo = ["aria-label", "disabled"], qo = /* @__PURE__ */ w({
2936
3084
  inheritAttrs: !1,
2937
3085
  __name: "OnyxSelectInput",
2938
3086
  props: {
@@ -2940,15 +3088,16 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2940
3088
  required: { type: Boolean },
2941
3089
  requiredMarker: {},
2942
3090
  customError: {},
2943
- modelValue: {},
2944
- textMode: {},
2945
3091
  autofocus: { type: Boolean },
3092
+ id: {},
2946
3093
  label: {},
2947
3094
  labelTooltip: {},
2948
3095
  hideLabel: { type: Boolean, default: !1 },
2949
3096
  message: {},
2950
3097
  messageTooltip: {},
2951
3098
  errorMessages: {},
3099
+ modelValue: {},
3100
+ textMode: {},
2952
3101
  disabled: { type: Boolean },
2953
3102
  skeleton: { type: Boolean, default: !1 },
2954
3103
  readonly: { type: Boolean, default: !1 },
@@ -2958,66 +3107,67 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
2958
3107
  },
2959
3108
  emits: ["click", "validityChange"],
2960
3109
  setup(t, { expose: a, emit: e }) {
2961
- const { rootAttrs: l, restAttrs: s } = _t(), o = t, i = e, { t: u } = P(), { vCustomValidity: c, errorMessages: m } = le({ props: o, emit: i }), y = h(() => o.modelValue ? o.modelValue.length : 0), d = h(() => {
2962
- var A;
2963
- const I = (A = o.modelValue) == null ? void 0 : A.length;
2964
- if (!o.modelValue || !I) return "";
2965
- if (I === 1) return o.modelValue[0].label;
3110
+ const { rootAttrs: l, restAttrs: n } = Ct(), o = t, u = e, { t: c } = N(), { vCustomValidity: i, errorMessages: y } = ae({ props: o, emit: u }), d = h(() => o.modelValue ? o.modelValue.length : 0), m = h(() => {
3111
+ var z;
3112
+ const E = (z = o.modelValue) == null ? void 0 : z.length;
3113
+ if (!o.modelValue || !E) return "";
3114
+ if (E === 1) return o.modelValue[0];
2966
3115
  switch (o.textMode) {
2967
3116
  case "preview":
2968
- return o.modelValue.map(({ label: j }) => j).join(", ");
3117
+ return o.modelValue.join(", ");
2969
3118
  case "summary":
2970
3119
  default:
2971
- return u.value("selections.currentSelection", { n: I });
3120
+ return c.value("selections.currentSelection", { n: E });
2972
3121
  }
2973
- }), f = O(!1), { densityClass: C } = H(o), T = O();
3122
+ }), v = T(!1), { densityClass: k } = H(o), S = T();
2974
3123
  a({ focus: () => {
2975
- var I;
2976
- return (I = T.value) == null ? void 0 : I.focus();
2977
- } }), K(
3124
+ var E;
3125
+ return (E = S.value) == null ? void 0 : E.focus();
3126
+ } }), Y(
2978
3127
  () => o.showFocus,
2979
- (I, A) => {
2980
- f.value || A && I === !1 && (f.value = !0);
3128
+ (E, z) => {
3129
+ v.value || z && E === !1 && (v.value = !0);
2981
3130
  }
2982
3131
  );
2983
- const N = pt.concat(mt), Q = (I) => {
2984
- N.includes(I.key) || I.preventDefault();
3132
+ const B = xt.concat(bt), P = (E) => {
3133
+ B.includes(E.key) || E.preventDefault();
2985
3134
  };
2986
- return (I, A) => o.skeleton ? (n(), p("div", B({
3135
+ return (E, z) => o.skeleton ? (s(), p("div", O({
2987
3136
  key: 0,
2988
- class: ["onyx-select-input-skeleton", r(C)]
3137
+ class: ["onyx-select-input-skeleton", r(k)]
2989
3138
  }, r(l)), [
2990
- o.hideLabel ? _("", !0) : (n(), x(U, {
3139
+ o.hideLabel ? _("", !0) : (s(), x(U, {
2991
3140
  key: 0,
2992
3141
  class: "onyx-select-input-skeleton__label"
2993
3142
  })),
2994
- V(U, { class: "onyx-select-input-skeleton__input" })
2995
- ], 16)) : (n(), p("div", B({
3143
+ M(U, { class: "onyx-select-input-skeleton__input" })
3144
+ ], 16)) : (s(), p("div", O({
2996
3145
  key: 1,
2997
3146
  class: [
2998
3147
  "onyx-select-input",
2999
- r(C),
3148
+ r(k),
3000
3149
  o.readonly ? "onyx-select-input--readonly" : "onyx-select-input--editable"
3001
3150
  ]
3002
3151
  }, r(l)), [
3003
- V(De, B(o, { "error-messages": r(m) }), {
3004
- default: $(() => [
3005
- v("div", So, [
3006
- o.loading ? (n(), x(J, {
3152
+ M(xe, O(o, { "error-messages": r(y) }), {
3153
+ default: $(({ id: ne }) => [
3154
+ f("div", Ro, [
3155
+ o.loading ? (s(), x(X, {
3007
3156
  key: 0,
3008
3157
  class: "onyx-select-input__loading",
3009
3158
  type: "circle"
3010
3159
  })) : _("", !0),
3011
- G(v("input", B({
3160
+ K(f("input", O({
3161
+ id: ne,
3012
3162
  ref_key: "input",
3013
- ref: T,
3163
+ ref: S,
3014
3164
  class: {
3015
3165
  "onyx-select-input__native": !0,
3016
3166
  "onyx-select-input__native--show-focus": o.showFocus,
3017
3167
  "onyx-truncation-ellipsis": !0,
3018
- "onyx-select-input__native--force-invalid": r(m) && f.value
3168
+ "onyx-select-input__native--force-invalid": r(y) && v.value
3019
3169
  }
3020
- }, r(s), {
3170
+ }, r(n), {
3021
3171
  type: "text",
3022
3172
  readonly: o.readonly,
3023
3173
  placeholder: o.placeholder,
@@ -3025,48 +3175,49 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3025
3175
  disabled: o.disabled || o.loading,
3026
3176
  "aria-label": o.hideLabel ? o.label : void 0,
3027
3177
  title: o.hideLabel ? o.label : void 0,
3028
- value: d.value,
3178
+ value: m.value,
3029
3179
  autofocus: o.autofocus,
3030
- onClick: A[0] || (A[0] = (j) => i("click")),
3031
- onKeydown: Q
3032
- }), null, 16, Bo), [
3033
- [r(c)]
3180
+ autocomplete: "off",
3181
+ onClick: z[0] || (z[0] = (se) => u("click")),
3182
+ onKeydown: P
3183
+ }), null, 16, Uo), [
3184
+ [r(i)]
3034
3185
  ]),
3035
- o.textMode === "preview" && y.value > 0 ? (n(), x(ht, {
3186
+ o.textMode === "preview" && d.value > 0 ? (s(), x(kt, {
3036
3187
  key: 1,
3037
- text: d.value,
3188
+ text: m.value,
3038
3189
  position: "bottom"
3039
3190
  }, {
3040
3191
  default: $(() => [
3041
- V(Ut, {
3192
+ M(Wt, {
3042
3193
  class: "onyx-select-input__badge",
3043
3194
  color: "neutral"
3044
3195
  }, {
3045
3196
  default: $(() => [
3046
- F(M(y.value), 1)
3197
+ Z(V(d.value), 1)
3047
3198
  ]),
3048
3199
  _: 1
3049
3200
  })
3050
3201
  ]),
3051
3202
  _: 1
3052
3203
  }, 8, ["text"])) : _("", !0),
3053
- v("button", {
3204
+ f("button", {
3054
3205
  class: "onyx-select-input__button",
3055
3206
  type: "button",
3056
- "aria-label": r(u)("select.toggleDropDown"),
3207
+ "aria-label": r(c)("select.toggleDropDown"),
3057
3208
  tabindex: "-1",
3058
3209
  disabled: o.readonly || o.disabled || o.loading,
3059
- onClick: A[1] || (A[1] = (j) => i("click"))
3210
+ onClick: z[1] || (z[1] = (se) => u("click"))
3060
3211
  }, [
3061
- V(L, { icon: r(Vo) }, null, 8, ["icon"])
3062
- ], 8, Oo)
3212
+ M(A, { icon: r(zo) }, null, 8, ["icon"])
3213
+ ], 8, Fo)
3063
3214
  ])
3064
3215
  ]),
3065
3216
  _: 1
3066
3217
  }, 16, ["error-messages"])
3067
3218
  ], 16));
3068
3219
  }
3069
- }), To = ["checked", "aria-labelledby", "disabled", "indeterminate"], We = /* @__PURE__ */ k({
3220
+ }), Zo = ["checked", "aria-labelledby", "disabled", "indeterminate"], lt = /* @__PURE__ */ w({
3070
3221
  __name: "OnyxSelectOption",
3071
3222
  props: {
3072
3223
  active: { type: Boolean, default: !1 },
@@ -3078,13 +3229,13 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3078
3229
  },
3079
3230
  setup(t) {
3080
3231
  const a = t;
3081
- return (e, l) => (n(), x(ft, B({ class: "onyx-select-option" }, a, {
3232
+ return (e, l) => (s(), x(Fe, O({ class: "onyx-select-option" }, a, {
3082
3233
  checked: !!e.$attrs["aria-checked"],
3083
3234
  selected: !!e.$attrs["aria-selected"],
3084
3235
  disabled: !!e.$attrs["aria-disabled"]
3085
3236
  }), {
3086
3237
  default: $(() => [
3087
- a.multiple ? (n(), p("input", {
3238
+ a.multiple ? (s(), p("input", {
3088
3239
  key: 0,
3089
3240
  checked: !!e.$attrs["aria-checked"],
3090
3241
  "aria-labelledby": e.$attrs.id,
@@ -3094,12 +3245,12 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3094
3245
  tabindex: "-1",
3095
3246
  class: "onyx-select-option__checkbox",
3096
3247
  type: "checkbox"
3097
- }, null, 8, To)) : _("", !0),
3098
- a.icon ? (n(), x(L, {
3248
+ }, null, 8, Zo)) : _("", !0),
3249
+ a.icon ? (s(), x(A, {
3099
3250
  key: 1,
3100
3251
  icon: a.icon
3101
3252
  }, null, 8, ["icon"])) : _("", !0),
3102
- v("span", {
3253
+ f("span", {
3103
3254
  class: g([`onyx-truncation-${a.truncation}`])
3104
3255
  }, [
3105
3256
  b(e.$slots, "default")
@@ -3108,27 +3259,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3108
3259
  _: 3
3109
3260
  }, 16, ["checked", "selected", "disabled"]));
3110
3261
  }
3111
- }), Io = ["inert", "aria-busy"], Lo = {
3262
+ }), Go = ["inert"], Ko = {
3112
3263
  class: "onyx-select__wrapper",
3113
3264
  tabindex: "-1"
3114
- }, Ao = {
3265
+ }, jo = {
3115
3266
  key: 0,
3116
3267
  role: "group",
3117
3268
  class: "onyx-select__group"
3118
- }, Ho = {
3269
+ }, Yo = {
3119
3270
  role: "option",
3120
3271
  "aria-selected": "false"
3121
- }, Po = {
3272
+ }, Wo = {
3122
3273
  key: 0,
3123
3274
  role: "presentation",
3124
3275
  class: "onyx-select__group-name onyx-text--small"
3125
- }, Do = {
3276
+ }, Xo = {
3126
3277
  key: 1,
3127
3278
  class: "onyx-select__slot"
3128
- }, zo = {
3279
+ }, Jo = {
3129
3280
  key: 2,
3130
3281
  class: "onyx-select__slot"
3131
- }, Zn = /* @__PURE__ */ k({
3282
+ }, cs = /* @__PURE__ */ w({
3132
3283
  __name: "OnyxSelect",
3133
3284
  props: {
3134
3285
  density: {},
@@ -3137,23 +3288,27 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3137
3288
  withCheckAll: { type: [Boolean, Object] },
3138
3289
  withSearch: { type: Boolean },
3139
3290
  searchTerm: { default: void 0 },
3291
+ manualSearch: { type: Boolean },
3140
3292
  required: { type: Boolean },
3141
3293
  requiredMarker: {},
3142
3294
  customError: {},
3143
- textMode: {},
3144
3295
  autofocus: { type: Boolean },
3296
+ id: {},
3145
3297
  label: {},
3146
3298
  labelTooltip: {},
3147
3299
  hideLabel: { type: Boolean },
3148
3300
  message: {},
3149
3301
  messageTooltip: {},
3150
3302
  errorMessages: {},
3303
+ textMode: {},
3151
3304
  disabled: { type: Boolean },
3152
3305
  skeleton: { type: Boolean },
3153
3306
  readonly: { type: Boolean },
3154
3307
  loading: { type: Boolean, default: !1 },
3155
3308
  placeholder: {},
3156
3309
  showFocus: { type: Boolean },
3310
+ truncation: { default: "ellipsis" },
3311
+ valueLabel: { default: void 0 },
3157
3312
  open: { type: Boolean, default: void 0 },
3158
3313
  listLabel: {},
3159
3314
  options: {},
@@ -3161,213 +3316,213 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3161
3316
  },
3162
3317
  emits: ["update:modelValue", "update:searchTerm", "update:open", "lazyLoad", "validityChange"],
3163
3318
  setup(t, { emit: a }) {
3164
- const e = t, l = a, { densityClass: s } = H(e), o = R(), { t: i } = P(), u = Ye(
3165
- qe(() => e.searchTerm),
3319
+ const e = t, l = a, { densityClass: n } = H(e), o = G(), { t: u } = N(), c = tt(
3320
+ Te(() => e.searchTerm),
3166
3321
  "",
3167
- (w) => l("update:searchTerm", w)
3168
- ), c = Ye(
3169
- qe(() => e.open),
3322
+ (C) => l("update:searchTerm", C)
3323
+ ), i = tt(
3324
+ Te(() => e.open),
3170
3325
  !1,
3171
- (w) => l("update:open", w)
3172
- ), m = O(), y = O(), d = h(() => e.modelValue ? e.multiple && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : []), f = O(), C = O();
3173
- K(
3174
- d,
3326
+ (C) => l("update:open", C)
3327
+ ), y = T(), d = T(), m = h(() => e.modelValue === void 0 ? [] : e.multiple && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]), v = h(() => e.valueLabel !== void 0 ? Array.isArray(e.valueLabel) ? e.valueLabel : [e.valueLabel] : m.value.reduce((C, I) => {
3328
+ var q;
3329
+ const D = (q = e.options.find(({ value: F }) => F === I)) == null ? void 0 : q.label;
3330
+ return D && C.push(D), C;
3331
+ }, [])), k = T(), S = T(), B = h(() => e.manualSearch ? e.options : c.value ? e.options.filter(({ label: C }) => No(C, c.value)) : e.options);
3332
+ Y(
3333
+ m,
3175
3334
  () => {
3176
- var w;
3177
- e.multiple || (y.value = (w = d.value.at(0)) == null ? void 0 : w.value);
3335
+ e.multiple || (d.value = m.value.at(0));
3178
3336
  },
3179
3337
  { immediate: !0 }
3180
3338
  );
3181
- const T = ee("ONYX_CHECK_ALL"), N = h(() => (e.multiple && e.withCheckAll && !u.value ? [T] : []).concat(
3182
- Ne.value
3183
- )), Q = async (w) => {
3184
- var E, D;
3339
+ const P = W("ONYX_CHECK_ALL"), E = h(() => (e.multiple && e.withCheckAll && !c.value ? [P] : []).concat(
3340
+ Ze.value
3341
+ )), z = async (C) => {
3342
+ var I, D;
3185
3343
  if (e.readonly) {
3186
- c.value = !1;
3344
+ i.value = !1;
3187
3345
  return;
3188
3346
  }
3189
- c.value = !c.value, c.value ? (await Et(), (D = f.value) == null || D.focus()) : (u.value && (u.value = ""), w || (E = C.value) == null || E.focus());
3190
- }, I = () => y.value = N.value.at(0), A = () => y.value = N.value.at(-1), j = (w) => {
3191
- const E = N.value.findIndex((D) => D === w);
3192
- E < N.value.length - 1 && (y.value = N.value[E + 1]);
3193
- }, ve = (w) => {
3194
- const E = N.value.findIndex((D) => D === w);
3195
- E > 0 && (y.value = N.value[E - 1]);
3196
- }, fe = (w) => {
3197
- const E = e.options.find((D) => D.label.toLowerCase().trim().startsWith(w.toLowerCase()));
3198
- E && (y.value = E.value);
3199
- }, ce = (w) => u.value = w, _e = (w) => {
3200
- var Y;
3201
- if (w === T) {
3202
- (Y = de.value) == null || Y.handleChange(!de.value.state.value.modelValue);
3347
+ i.value = !i.value, i.value ? (await zt(), (D = k.value) == null || D.focus()) : (c.value && (c.value = ""), C || (I = S.value) == null || I.focus());
3348
+ }, ne = () => d.value = E.value.at(0), se = () => d.value = E.value.at(-1), de = (C) => {
3349
+ const I = E.value.findIndex((D) => D === C);
3350
+ I < E.value.length - 1 && (d.value = E.value[I + 1]);
3351
+ }, ge = (C) => {
3352
+ const I = E.value.findIndex((D) => D === C);
3353
+ I > 0 && (d.value = E.value[I - 1]);
3354
+ }, ke = (C) => {
3355
+ const I = B.value.find((D) => D.label.toLowerCase().trim().startsWith(C.toLowerCase()));
3356
+ I && (d.value = I.value);
3357
+ }, we = (C) => c.value = C, Ce = (C) => {
3358
+ var q;
3359
+ if (C === P) {
3360
+ (q = me.value) == null || q.handleChange(!me.value.state.value.modelValue);
3203
3361
  return;
3204
3362
  }
3205
- const E = e.options.find(({ value: q }) => q === w);
3206
- if (!E)
3363
+ if (!B.value.find(({ value: F }) => F === C))
3207
3364
  return;
3208
3365
  if (!e.multiple)
3209
- return l("update:modelValue", E);
3210
- d.value.some(({ value: q }) => q === w) ? l(
3366
+ return l("update:modelValue", C);
3367
+ m.value.some((F) => F === C) ? l(
3211
3368
  "update:modelValue",
3212
- d.value.filter(({ value: q }) => q !== w)
3213
- ) : l("update:modelValue", [...d.value, E]);
3214
- }, xe = h(() => e.withSearch ? "list" : "none"), {
3215
- elements: { input: oe, option: ue, group: be, listbox: ge }
3216
- } = Wa({
3217
- autocomplete: xe,
3369
+ m.value.filter((F) => F !== C)
3370
+ ) : l("update:modelValue", [...m.value, C]);
3371
+ }, $e = h(() => e.withSearch ? "list" : "none"), {
3372
+ elements: { input: re, option: pe, group: L, listbox: Me }
3373
+ } = il({
3374
+ autocomplete: $e,
3218
3375
  label: e.label,
3219
3376
  listLabel: e.listLabel,
3220
- inputValue: h(() => e.withSearch && u.value || ""),
3221
- activeOption: h(() => y.value),
3377
+ activeOption: h(() => d.value),
3222
3378
  multiple: h(() => e.multiple),
3223
- isExpanded: c,
3224
- templateRef: m,
3225
- onToggle: Q,
3226
- onActivateFirst: I,
3227
- onActivateLast: A,
3228
- onActivateNext: j,
3229
- onActivatePrevious: ve,
3230
- onTypeAhead: fe,
3231
- onAutocomplete: ce,
3232
- onSelect: _e
3233
- }), ke = h(() => wa(e.options, "group")), { vScrollEnd: S, isScrollEnd: we } = Mo({
3379
+ isExpanded: i,
3380
+ templateRef: y,
3381
+ onToggle: z,
3382
+ onActivateFirst: ne,
3383
+ onActivateLast: se,
3384
+ onActivateNext: de,
3385
+ onActivatePrevious: ge,
3386
+ onTypeAhead: ke,
3387
+ onAutocomplete: we,
3388
+ onSelect: Ce
3389
+ }), St = h(() => Ea(B.value, "group")), { vScrollEnd: Ot, isScrollEnd: Lt } = Do({
3234
3390
  enabled: h(() => {
3235
- var w;
3236
- return ((w = e.lazyLoading) == null ? void 0 : w.enabled) ?? !1;
3391
+ var C;
3392
+ return ((C = e.lazyLoading) == null ? void 0 : C.enabled) ?? !1;
3237
3393
  }),
3238
3394
  loading: h(() => e.loading),
3239
3395
  offset: h(() => {
3240
- var w;
3241
- return (w = e.lazyLoading) == null ? void 0 : w.scrollOffset;
3396
+ var C;
3397
+ return (C = e.lazyLoading) == null ? void 0 : C.scrollOffset;
3242
3398
  })
3243
- }), Ce = h(() => {
3244
- if (!e.options.length)
3245
- return e.withSearch && u.value ? i.value("select.noMatch") : i.value("select.empty");
3246
- }), Ne = h(
3247
- () => e.options.filter((w) => !w.disabled).map(({ value: w }) => w)
3248
- ), de = h(() => {
3399
+ }), Be = h(() => {
3400
+ if (!B.value.length)
3401
+ return e.withSearch && c.value ? u.value("select.noMatch") : u.value("select.empty");
3402
+ }), Ze = h(
3403
+ () => B.value.filter((C) => !C.disabled).map(({ value: C }) => C)
3404
+ ), me = h(() => {
3249
3405
  if (!(!e.multiple || !e.withCheckAll))
3250
- return nt(
3251
- Ne,
3252
- h(() => d.value.map(({ value: w }) => w)),
3253
- (w) => {
3254
- const E = w.map((D) => e.options.find(({ value: Y }) => Y === D)).filter((D) => D != null);
3255
- l("update:modelValue", E);
3256
- }
3257
- );
3258
- }), Ue = h(() => {
3259
- var E;
3406
+ return ut(Ze, m, (C) => {
3407
+ const I = C.map((D) => {
3408
+ var q;
3409
+ return (q = e.options.find(({ value: F }) => F === D)) == null ? void 0 : q.value;
3410
+ }).filter((D) => D != null);
3411
+ l("update:modelValue", I);
3412
+ });
3413
+ }), Ge = h(() => {
3414
+ var I;
3260
3415
  if (!e.multiple)
3261
3416
  return "";
3262
- const w = i.value("selections.selectAll");
3263
- return typeof e.withCheckAll == "boolean" ? w : ((E = e.withCheckAll) == null ? void 0 : E.label) ?? w;
3417
+ const C = u.value("selections.selectAll");
3418
+ return typeof e.withCheckAll == "boolean" ? C : ((I = e.withCheckAll) == null ? void 0 : I.label) ?? C;
3264
3419
  });
3265
- X(() => {
3266
- we.value && l("lazyLoad");
3420
+ Q(() => {
3421
+ Lt.value && l("lazyLoad");
3267
3422
  });
3268
- const wt = h(() => {
3269
- const w = {
3423
+ const Tt = h(() => {
3424
+ const C = {
3270
3425
  ...e,
3271
- modelValue: d.value
3426
+ modelValue: v.value
3272
3427
  };
3273
- return e.withSearch ? { ...w, onKeydown: oe.value.onKeydown } : { ...w, ...oe.value };
3428
+ return e.withSearch ? { ...C, onKeydown: re.value.onKeydown } : { ...C, ...re.value };
3274
3429
  });
3275
- return (w, E) => {
3430
+ return (C, I) => {
3276
3431
  var D;
3277
- return n(), p("div", {
3432
+ return s(), p("div", {
3278
3433
  ref_key: "selectRef",
3279
- ref: m,
3434
+ ref: y,
3280
3435
  class: "onyx-select-wrapper"
3281
3436
  }, [
3282
- V(Eo, B({
3437
+ M(qo, O({
3283
3438
  ref_key: "selectInput",
3284
- ref: C
3285
- }, wt.value, {
3286
- "show-focus": r(c),
3439
+ ref: S
3440
+ }, Tt.value, {
3441
+ "show-focus": r(i),
3287
3442
  autofocus: e.autofocus,
3288
- onClick: Q,
3289
- onValidityChange: E[0] || (E[0] = (Y) => l("validityChange", Y))
3443
+ onClick: z,
3444
+ onValidityChange: I[0] || (I[0] = (q) => l("validityChange", q))
3290
3445
  }), null, 16, ["show-focus", "autofocus"]),
3291
- v("div", {
3292
- class: g(["onyx-select", r(s), r(c) ? "onyx-select--open" : ""]),
3293
- inert: !r(c),
3294
- "aria-busy": e.loading
3446
+ f("div", {
3447
+ class: g(["onyx-select", r(n), r(i) ? "onyx-select--open" : ""]),
3448
+ inert: !r(i)
3295
3449
  }, [
3296
- G((n(), p("div", Lo, [
3297
- e.withSearch ? (n(), x(yl, B({
3450
+ K((s(), p("div", Ko, [
3451
+ e.withSearch ? (s(), x(Ml, O({
3298
3452
  key: 0,
3299
3453
  ref_key: "miniSearch",
3300
- ref: f
3301
- }, r(oe), {
3302
- label: r(i)("select.searchInputLabel"),
3454
+ ref: k,
3455
+ "model-value": r(c)
3456
+ }, r(re), {
3457
+ label: r(u)("select.searchInputLabel"),
3303
3458
  class: "onyx-select__search",
3304
- onClear: E[1] || (E[1] = (Y) => u.value = "")
3305
- }), null, 16, ["label"])) : _("", !0),
3306
- v("div", te(ae(r(ge))), [
3307
- Ce.value ? (n(), p("ul", Ao, [
3308
- v("li", Ho, [
3309
- b(w.$slots, "empty", { defaultMessage: Ce.value }, () => [
3310
- V(rt, null, {
3459
+ onClear: I[1] || (I[1] = (q) => c.value = "")
3460
+ }), null, 16, ["model-value", "label"])) : _("", !0),
3461
+ f("div", ee(te(r(Me))), [
3462
+ Be.value ? (s(), p("ul", jo, [
3463
+ f("li", Yo, [
3464
+ b(C.$slots, "empty", { defaultMessage: Be.value }, () => [
3465
+ M(dt, null, {
3311
3466
  default: $(() => [
3312
- F(M(Ce.value), 1)
3467
+ Z(V(Be.value), 1)
3313
3468
  ]),
3314
3469
  _: 1
3315
3470
  })
3316
3471
  ])
3317
3472
  ])
3318
- ])) : (n(!0), p(z, { key: 1 }, W(ke.value, (Y, q) => {
3319
- var Fe, Re;
3320
- return n(), p("ul", B({
3321
- key: q,
3473
+ ])) : (s(!0), p(R, { key: 1 }, J(St.value, (q, F) => {
3474
+ var Ke, je;
3475
+ return s(), p("ul", O({
3476
+ key: F,
3322
3477
  class: "onyx-select__group",
3323
3478
  ref_for: !0
3324
- }, r(be)({ label: q })), [
3325
- q != "" ? (n(), p("li", Po, M(q), 1)) : _("", !0),
3326
- e.multiple && e.withCheckAll && !r(u) ? (n(), x(We, B(
3479
+ }, r(L)({ label: F })), [
3480
+ F != "" ? (s(), p("li", Wo, V(F), 1)) : _("", !0),
3481
+ e.multiple && e.withCheckAll && !r(c) ? (s(), x(lt, O(
3327
3482
  {
3328
3483
  key: 1,
3329
3484
  ref_for: !0
3330
3485
  },
3331
- r(ue)({
3332
- value: r(T),
3333
- label: Ue.value,
3334
- selected: (Fe = de.value) == null ? void 0 : Fe.state.value.modelValue
3486
+ r(pe)({
3487
+ value: r(P),
3488
+ label: Ge.value,
3489
+ selected: (Ke = me.value) == null ? void 0 : Ke.state.value.modelValue
3335
3490
  }),
3336
3491
  {
3337
3492
  multiple: "",
3338
- active: r(T) === y.value,
3339
- indeterminate: (Re = de.value) == null ? void 0 : Re.state.value.indeterminate,
3493
+ active: r(P) === d.value,
3494
+ indeterminate: (je = me.value) == null ? void 0 : je.state.value.indeterminate,
3340
3495
  density: e.density,
3341
3496
  class: "onyx-select__check-all"
3342
3497
  }
3343
3498
  ), {
3344
3499
  default: $(() => [
3345
- F(M(Ue.value), 1)
3500
+ Z(V(Ge.value), 1)
3346
3501
  ]),
3347
3502
  _: 1
3348
3503
  }, 16, ["active", "indeterminate", "density"])) : _("", !0),
3349
- (n(!0), p(z, null, W(Y, (Z) => (n(), x(We, B(
3504
+ (s(!0), p(R, null, J(q, (j) => (s(), x(lt, O(
3350
3505
  {
3351
- key: Z.value.toString(),
3506
+ key: j.value.toString(),
3352
3507
  ref_for: !0
3353
3508
  },
3354
- r(ue)({
3355
- value: Z.value,
3356
- label: Z.label,
3357
- disabled: Z.disabled,
3358
- selected: d.value.some(({ value: Ct }) => Ct === Z.value)
3509
+ r(pe)({
3510
+ value: j.value,
3511
+ label: j.label,
3512
+ disabled: j.disabled,
3513
+ selected: m.value.some((Et) => Et === j.value)
3359
3514
  }),
3360
3515
  {
3361
3516
  multiple: e.multiple,
3362
- active: Z.value === y.value,
3363
- icon: Z.icon,
3517
+ active: j.value === d.value,
3518
+ icon: j.icon,
3364
3519
  density: e.density,
3365
- truncation: Z.truncation
3520
+ truncation: j.truncation ?? e.truncation
3366
3521
  }
3367
3522
  ), {
3368
3523
  default: $(() => [
3369
- b(w.$slots, "option", B({ ref_for: !0 }, Z), () => [
3370
- F(M(Z.label), 1)
3524
+ b(C.$slots, "option", O({ ref_for: !0 }, j), () => [
3525
+ Z(V(j.label), 1)
3371
3526
  ])
3372
3527
  ]),
3373
3528
  _: 2
@@ -3375,20 +3530,131 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3375
3530
  ], 16);
3376
3531
  }), 128))
3377
3532
  ], 16),
3378
- (D = e.lazyLoading) != null && D.loading ? (n(), p("div", Do, [
3379
- V(J, { class: "onyx-select__loading" })
3533
+ (D = e.lazyLoading) != null && D.loading ? (s(), p("div", Xo, [
3534
+ M(X, { class: "onyx-select__loading" })
3380
3535
  ])) : _("", !0),
3381
- o.optionsEnd ? (n(), p("div", zo, [
3382
- b(w.$slots, "optionsEnd")
3536
+ o.optionsEnd ? (s(), p("div", Jo, [
3537
+ b(C.$slots, "optionsEnd")
3383
3538
  ])) : _("", !0)
3384
3539
  ])), [
3385
- [r(S)]
3540
+ [r(Ot)]
3386
3541
  ])
3387
- ], 10, Io)
3542
+ ], 10, Go)
3388
3543
  ], 512);
3389
3544
  };
3390
3545
  }
3391
- }), Kn = ["summary", "preview"], No = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>', Uo = { class: "onyx-switch-skeleton__click-area" }, Fo = ["title"], Ro = ["aria-label", "disabled", "required", "autofocus"], qo = { class: "onyx-switch__click-area" }, Zo = { class: "onyx-switch__container" }, Ko = { class: "onyx-switch__icon" }, Go = /* @__PURE__ */ v("div", { class: "onyx-switch__frame" }, null, -1), Gn = /* @__PURE__ */ k({
3546
+ }), ds = ["summary", "preview"], Qo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M4 15h24v2H4z"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M17 15V4h-2v11H4v2h11v11h2V17h11v-2z"/></svg>', tn = { class: "onyx-stepper__wrapper" }, an = ["disabled", "aria-label"], ln = ["aria-label", "autofocus", "disabled", "min", "max", "name", "placeholder", "readonly", "required", "step", "title"], on = ["disabled", "aria-label"], ps = /* @__PURE__ */ w({
3547
+ __name: "OnyxStepper",
3548
+ props: {
3549
+ density: {},
3550
+ customError: {},
3551
+ required: { type: Boolean },
3552
+ requiredMarker: {},
3553
+ id: {},
3554
+ label: {},
3555
+ labelTooltip: {},
3556
+ hideLabel: { type: Boolean },
3557
+ message: {},
3558
+ messageTooltip: {},
3559
+ autofocus: { type: Boolean },
3560
+ modelValue: {},
3561
+ name: {},
3562
+ placeholder: {},
3563
+ min: {},
3564
+ max: {},
3565
+ step: { default: 1 },
3566
+ autocomplete: {},
3567
+ disabled: { type: Boolean, default: !1 },
3568
+ readonly: { type: Boolean, default: !1 },
3569
+ loading: { type: Boolean, default: !1 },
3570
+ skeleton: { type: Boolean, default: !1 }
3571
+ },
3572
+ emits: ["update:modelValue", "focus", "blur", "validityChange"],
3573
+ setup(t, { emit: a }) {
3574
+ const e = t, { t: l } = N(), n = T(), o = a, { densityClass: u } = H(e), { vCustomValidity: c, errorMessages: i } = ae({ props: e, emit: o }), y = T(!1), d = h({
3575
+ get: () => e.modelValue,
3576
+ set: (S) => o("update:modelValue", S)
3577
+ }), m = (S) => {
3578
+ if (!n.value) return;
3579
+ n.value[`${S}`]();
3580
+ const B = n.value.valueAsNumber;
3581
+ d.value = isNaN(B) ? void 0 : B;
3582
+ }, v = h(() => l.value("stepper.increment", { stepSize: e.step })), k = h(() => l.value("stepper.decrement", { stepSize: e.step }));
3583
+ return (S, B) => e.skeleton ? (s(), p("div", {
3584
+ key: 0,
3585
+ class: g(["onyx-stepper-skeleton", r(u)])
3586
+ }, [
3587
+ e.hideLabel ? _("", !0) : (s(), x(U, {
3588
+ key: 0,
3589
+ class: "onyx-stepper-skeleton__label"
3590
+ })),
3591
+ M(U, { class: "onyx-stepper-skeleton__input" })
3592
+ ], 2)) : (s(), p("div", {
3593
+ key: 1,
3594
+ class: g(["onyx-stepper", r(u)])
3595
+ }, [
3596
+ M(xe, O(e, { "error-messages": r(i) }), {
3597
+ default: $(() => [
3598
+ f("div", tn, [
3599
+ f("button", {
3600
+ type: "button",
3601
+ class: "onyx-stepper__counter",
3602
+ disabled: e.min && e.min === d.value || e.disabled || e.readonly || e.loading,
3603
+ "aria-label": k.value,
3604
+ onClick: B[0] || (B[0] = (P) => m("stepDown"))
3605
+ }, [
3606
+ M(A, { icon: r(Qo) }, null, 8, ["icon"])
3607
+ ], 8, an),
3608
+ e.loading ? (s(), x(X, {
3609
+ key: 0,
3610
+ class: "onyx-stepper__loading",
3611
+ type: "circle"
3612
+ })) : K((s(), p("input", {
3613
+ key: 1,
3614
+ ref_key: "inputRef",
3615
+ ref: n,
3616
+ "onUpdate:modelValue": B[1] || (B[1] = (P) => d.value = P),
3617
+ class: g(["onyx-stepper__native", { "onyx-stepper__native--force-invalid": r(i) && y.value }]),
3618
+ type: "number",
3619
+ "aria-label": e.label,
3620
+ autofocus: e.autofocus,
3621
+ disabled: e.disabled || e.loading,
3622
+ min: e.min,
3623
+ max: e.max,
3624
+ name: e.name,
3625
+ placeholder: e.placeholder,
3626
+ readonly: e.readonly,
3627
+ required: e.required,
3628
+ step: e.step,
3629
+ title: e.hideLabel ? e.label : void 0,
3630
+ onChange: B[2] || (B[2] = (P) => y.value = !0),
3631
+ onFocus: B[3] || (B[3] = (P) => o("focus")),
3632
+ onBlur: B[4] || (B[4] = (P) => o("blur"))
3633
+ }, null, 42, ln)), [
3634
+ [
3635
+ ze,
3636
+ d.value,
3637
+ void 0,
3638
+ { number: !0 }
3639
+ ],
3640
+ [r(c)]
3641
+ ]),
3642
+ f("button", {
3643
+ type: "button",
3644
+ class: "onyx-stepper__counter",
3645
+ disabled: e.max && e.max === d.value || e.disabled || e.readonly || e.loading,
3646
+ "aria-label": v.value,
3647
+ onClick: B[5] || (B[5] = (P) => m("stepUp"))
3648
+ }, [
3649
+ M(A, { icon: r(en) }, null, 8, ["icon"])
3650
+ ], 8, on)
3651
+ ])
3652
+ ]),
3653
+ _: 1
3654
+ }, 16, ["error-messages"])
3655
+ ], 2));
3656
+ }
3657
+ }), nn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="m21.311 10.793-8.293 8.293-3.291-3.292-1.415 1.415 4.706 4.705 9.707-9.707z"/></svg>', sn = { class: "onyx-switch-skeleton__click-area" }, rn = ["title"], un = ["aria-label", "disabled", "required", "autofocus"], cn = { class: "onyx-switch__click-area" }, dn = { class: "onyx-switch__container" }, pn = { class: "onyx-switch__icon" }, mn = /* @__PURE__ */ f("div", { class: "onyx-switch__frame" }, null, -1), ms = /* @__PURE__ */ w({
3392
3658
  __name: "OnyxSwitch",
3393
3659
  props: {
3394
3660
  density: {},
@@ -3406,30 +3672,30 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3406
3672
  },
3407
3673
  emits: ["update:modelValue", "validityChange"],
3408
3674
  setup(t, { emit: a }) {
3409
- const e = t, l = a, { requiredMarkerClass: s, requiredTypeClass: o } = ye(e), { densityClass: i } = H(e), { vCustomValidity: u } = le({ props: e, emit: l }), c = h({
3675
+ const e = t, l = a, { requiredMarkerClass: n, requiredTypeClass: o } = _e(e), { densityClass: u } = H(e), { vCustomValidity: c, title: i } = ae({ props: e, emit: l }), y = h({
3410
3676
  get: () => e.modelValue,
3411
- set: (m) => {
3412
- l("update:modelValue", m);
3677
+ set: (d) => {
3678
+ l("update:modelValue", d);
3413
3679
  }
3414
3680
  });
3415
- return (m, y) => e.skeleton ? (n(), p("div", {
3681
+ return (d, m) => e.skeleton ? (s(), p("div", {
3416
3682
  key: 0,
3417
- class: g(["onyx-switch-skeleton", r(i)])
3683
+ class: g(["onyx-switch-skeleton", r(u)])
3418
3684
  }, [
3419
- v("span", Uo, [
3420
- V(U, { class: "onyx-switch-skeleton__input" })
3685
+ f("span", sn, [
3686
+ M(U, { class: "onyx-switch-skeleton__input" })
3421
3687
  ]),
3422
- e.hideLabel ? _("", !0) : (n(), x(U, {
3688
+ e.hideLabel ? _("", !0) : (s(), x(U, {
3423
3689
  key: 0,
3424
3690
  class: "onyx-switch-skeleton__label"
3425
3691
  }))
3426
- ], 2)) : (n(), p("label", {
3692
+ ], 2)) : (s(), p("label", {
3427
3693
  key: 1,
3428
- class: g(["onyx-switch", [r(o), r(i)]]),
3429
- title: e.hideLabel ? e.label : void 0
3694
+ class: g(["onyx-switch", [r(o), r(u)]]),
3695
+ title: r(i)
3430
3696
  }, [
3431
- G(v("input", {
3432
- "onUpdate:modelValue": y[0] || (y[0] = (d) => c.value = d),
3697
+ K(f("input", {
3698
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => y.value = v),
3433
3699
  type: "checkbox",
3434
3700
  role: "switch",
3435
3701
  class: g({ "onyx-switch__input": !0, "onyx-switch__loading": e.loading }),
@@ -3437,43 +3703,43 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3437
3703
  disabled: e.disabled || e.loading,
3438
3704
  required: e.required,
3439
3705
  autofocus: e.autofocus
3440
- }, null, 10, Ro), [
3441
- [Je, c.value],
3442
- [r(u)]
3706
+ }, null, 10, un), [
3707
+ [ot, y.value],
3708
+ [r(c)]
3443
3709
  ]),
3444
- v("span", qo, [
3445
- v("span", Zo, [
3446
- v("span", Ko, [
3447
- e.loading ? (n(), x(r(J), {
3710
+ f("span", cn, [
3711
+ f("span", dn, [
3712
+ f("span", pn, [
3713
+ e.loading ? (s(), x(X, {
3448
3714
  key: 0,
3449
3715
  class: "onyx-switch__spinner",
3450
3716
  type: "circle"
3451
- })) : (n(), x(r(L), {
3717
+ })) : (s(), x(A, {
3452
3718
  key: 1,
3453
- icon: c.value ? r(No) : r(ze)
3719
+ icon: y.value ? r(nn) : r(qe)
3454
3720
  }, null, 8, ["icon"]))
3455
3721
  ]),
3456
- Go
3722
+ mn
3457
3723
  ])
3458
3724
  ]),
3459
- e.hideLabel ? _("", !0) : (n(), p("span", {
3725
+ e.hideLabel ? _("", !0) : (s(), p("span", {
3460
3726
  key: 0,
3461
3727
  class: g(["onyx-switch__label", [
3462
3728
  `onyx-truncation-${e.truncation}`,
3463
3729
  // shows the required marker inline for multiline labels
3464
- e.truncation === "multiline" ? r(s) : void 0
3730
+ e.truncation === "multiline" ? r(n) : void 0
3465
3731
  ]])
3466
- }, M(e.label), 3)),
3467
- e.truncation === "ellipsis" ? (n(), p("div", {
3732
+ }, V(e.label), 3)),
3733
+ !e.hideLabel && e.truncation === "ellipsis" ? (s(), p("div", {
3468
3734
  key: 1,
3469
- class: g(["onyx-switch__marker", [r(s)]])
3735
+ class: g(["onyx-switch__marker", [r(n)]])
3470
3736
  }, null, 2)) : _("", !0)
3471
- ], 10, Fo));
3737
+ ], 10, rn));
3472
3738
  }
3473
- }), jo = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>', Yo = { class: "onyx-table-wrapper" }, Wo = ["tabindex"], Xo = {
3739
+ }), yn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 24 24"><path d="M8.25 17.25h-4.5V6.008h4.5zm-3-1.5h1.5V7.508h-1.5zm14.273 1.958c.457-.668.727-1.47.727-2.333 0-.127-.008-.255-.023-.375V4.508h-4.5v6.765a4.3 4.3 0 0 0-1.5.442V8.258h-4.5v8.992h2.716a4.13 4.13 0 0 0 3.667 2.25c.863 0 1.672-.27 2.332-.727l2.76 2.76 1.058-1.058-2.76-2.76zm-.788-11.7v6.18a4.1 4.1 0 0 0-1.492-.773v-5.4h1.492zm-7.492 9.742V9.758h1.5v3.292a4.1 4.1 0 0 0-.735 2.325c0 .127.007.255.022.375zM16.124 18a2.643 2.643 0 0 1-2.625-2.625 2.643 2.643 0 0 1 2.625-2.625 2.643 2.643 0 0 1 2.625 2.625A2.64 2.64 0 0 1 16.125 18" style="fill-rule:nonzero"/></svg>', hn = { class: "onyx-table-wrapper" }, vn = ["tabindex"], fn = {
3474
3740
  key: 0,
3475
3741
  class: "onyx-table__header"
3476
- }, Jo = { class: "onyx-table__empty" }, Qo = { colspan: "100%" }, en = { class: "onyx-table__empty-content" }, jn = /* @__PURE__ */ k({
3742
+ }, _n = { class: "onyx-table__empty" }, xn = { colspan: "100%" }, bn = { class: "onyx-table__empty-content" }, ys = /* @__PURE__ */ w({
3477
3743
  __name: "OnyxTable",
3478
3744
  props: {
3479
3745
  density: {},
@@ -3482,37 +3748,37 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3482
3748
  withPageScrolling: { type: Boolean, default: !1 }
3483
3749
  },
3484
3750
  setup(t) {
3485
- const a = t, e = R(), { t: l } = P(), { densityClass: s } = H(a), o = h(() => l.value("table.empty"));
3486
- return (i, u) => (n(), p("div", Yo, [
3487
- v("div", {
3751
+ const a = t, e = G(), { t: l } = N(), { densityClass: n } = H(a), o = h(() => l.value("table.empty"));
3752
+ return (u, c) => (s(), p("div", hn, [
3753
+ f("div", {
3488
3754
  class: g({ "onyx-table-wrapper__scroll-container": !a.withPageScrolling }),
3489
3755
  tabindex: a.withPageScrolling ? void 0 : 0
3490
3756
  }, [
3491
- v("table", {
3757
+ f("table", {
3492
3758
  class: g(["onyx-table onyx-text", [
3493
3759
  a.striped ? "onyx-table--striped" : "",
3494
3760
  a.withVerticalBorders ? "onyx-table--vertical-borders" : "",
3495
- r(s)
3761
+ r(n)
3496
3762
  ]])
3497
3763
  }, [
3498
- e.head ? (n(), p("thead", Xo, [
3499
- b(i.$slots, "head")
3764
+ e.head ? (s(), p("thead", fn, [
3765
+ b(u.$slots, "head")
3500
3766
  ])) : _("", !0),
3501
- v("tbody", null, [
3502
- b(i.$slots, "default", {}, () => [
3503
- v("tr", Jo, [
3504
- v("td", Qo, [
3505
- v("div", en, [
3506
- b(i.$slots, "empty", { defaultMessage: o.value }, () => [
3507
- V(rt, null, {
3767
+ f("tbody", null, [
3768
+ b(u.$slots, "default", {}, () => [
3769
+ f("tr", _n, [
3770
+ f("td", xn, [
3771
+ f("div", bn, [
3772
+ b(u.$slots, "empty", { defaultMessage: o.value }, () => [
3773
+ M(dt, null, {
3508
3774
  icon: $(() => [
3509
- V(L, {
3510
- icon: r(jo),
3775
+ M(A, {
3776
+ icon: r(yn),
3511
3777
  size: "48px"
3512
3778
  }, null, 8, ["icon"])
3513
3779
  ]),
3514
3780
  default: $(() => [
3515
- F(" " + M(o.value), 1)
3781
+ Z(" " + V(o.value), 1)
3516
3782
  ]),
3517
3783
  _: 1
3518
3784
  })
@@ -3523,10 +3789,10 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3523
3789
  ])
3524
3790
  ])
3525
3791
  ], 2)
3526
- ], 10, Wo)
3792
+ ], 10, vn)
3527
3793
  ]));
3528
3794
  }
3529
- }), tn = { class: "onyx-text onyx-truncation-ellipsis" }, Yn = /* @__PURE__ */ k({
3795
+ }), gn = { class: "onyx-text onyx-truncation-ellipsis" }, hs = /* @__PURE__ */ w({
3530
3796
  __name: "OnyxTag",
3531
3797
  props: {
3532
3798
  density: {},
@@ -3536,18 +3802,18 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3536
3802
  },
3537
3803
  setup(t) {
3538
3804
  const a = t, { densityClass: e } = H(a);
3539
- return (l, s) => (n(), p("div", {
3805
+ return (l, n) => (s(), p("div", {
3540
3806
  class: g(["onyx-tag", `onyx-tag--${a.color}`, r(e)])
3541
3807
  }, [
3542
- a.icon ? (n(), x(L, {
3808
+ a.icon ? (s(), x(A, {
3543
3809
  key: 0,
3544
3810
  icon: a.icon,
3545
3811
  size: "16px"
3546
3812
  }, null, 8, ["icon"])) : _("", !0),
3547
- v("span", tn, M(a.label), 1)
3813
+ f("span", gn, V(a.label), 1)
3548
3814
  ], 2));
3549
3815
  }
3550
- }), an = ["data-autosize-value"], ln = ["placeholder", "required", "autocapitalize", "autofocus", "name", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], Wn = /* @__PURE__ */ k({
3816
+ }), kn = ["data-autosize-value"], wn = ["id", "placeholder", "required", "autocapitalize", "autofocus", "name", "readonly", "disabled", "minlength", "maxlength", "aria-label", "title"], vs = /* @__PURE__ */ w({
3551
3817
  __name: "OnyxTextarea",
3552
3818
  props: {
3553
3819
  density: {},
@@ -3575,44 +3841,45 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3575
3841
  },
3576
3842
  emits: ["update:modelValue", "change", "focus", "blur", "validityChange"],
3577
3843
  setup(t, { emit: a }) {
3578
- const e = t, l = a, { vCustomValidity: s, errorMessages: o } = le({ props: e, emit: l }), { densityClass: i } = H(e), u = h({
3844
+ const e = t, l = a, { vCustomValidity: n, errorMessages: o } = ae({ props: e, emit: l }), { densityClass: u } = H(e), c = h({
3579
3845
  get: () => e.modelValue,
3580
- set: (d) => l("update:modelValue", d)
3581
- }), c = (d) => {
3582
- const f = d.target.value;
3583
- l("change", f);
3584
- }, m = h(() => {
3846
+ set: (m) => l("update:modelValue", m)
3847
+ }), i = (m) => {
3848
+ const v = m.target.value;
3849
+ l("change", v);
3850
+ }, y = h(() => {
3585
3851
  if (!e.autosize) return;
3586
- const d = e.autosize.min ? Math.max(e.autosize.min, 2) : void 0, f = e.autosize.max;
3587
- return [d ? `--min-autosize-rows: ${d}` : "", `--max-autosize-rows: ${f ?? "unset"}`];
3588
- }), y = (d) => {
3589
- var C;
3590
- const f = d.target;
3591
- (C = f.parentElement) == null || C.setAttribute("data-autosize-value", f.value);
3852
+ const m = e.autosize.min ? Math.max(e.autosize.min, 2) : void 0, v = e.autosize.max;
3853
+ return [m ? `--min-autosize-rows: ${m}` : "", `--max-autosize-rows: ${v ?? "unset"}`];
3854
+ }), d = (m) => {
3855
+ var k;
3856
+ const v = m.target;
3857
+ (k = v.parentElement) == null || k.setAttribute("data-autosize-value", v.value);
3592
3858
  };
3593
- return (d, f) => e.skeleton ? (n(), p("div", {
3859
+ return (m, v) => e.skeleton ? (s(), p("div", {
3594
3860
  key: 0,
3595
- class: g(["onyx-textarea-skeleton", r(i)]),
3596
- style: Be(m.value)
3861
+ class: g(["onyx-textarea-skeleton", r(u)]),
3862
+ style: Ee(y.value)
3597
3863
  }, [
3598
- e.hideLabel ? _("", !0) : (n(), x(U, {
3864
+ e.hideLabel ? _("", !0) : (s(), x(U, {
3599
3865
  key: 0,
3600
3866
  class: "onyx-textarea-skeleton__label"
3601
3867
  })),
3602
- V(U, { class: "onyx-textarea-skeleton__input" })
3603
- ], 6)) : (n(), p("div", {
3868
+ M(U, { class: "onyx-textarea-skeleton__input" })
3869
+ ], 6)) : (s(), p("div", {
3604
3870
  key: 1,
3605
- class: g(["onyx-textarea", r(i)]),
3606
- style: Be(m.value)
3871
+ class: g(["onyx-textarea", r(u)]),
3872
+ style: Ee(y.value)
3607
3873
  }, [
3608
- V(De, B(e, { "error-messages": r(o) }), {
3609
- default: $(() => [
3610
- v("div", {
3874
+ M(xe, O(e, { "error-messages": r(o) }), {
3875
+ default: $(({ id: k }) => [
3876
+ f("div", {
3611
3877
  class: "onyx-textarea__wrapper",
3612
- "data-autosize-value": u.value
3878
+ "data-autosize-value": c.value
3613
3879
  }, [
3614
- G(v("textarea", {
3615
- "onUpdate:modelValue": f[0] || (f[0] = (C) => u.value = C),
3880
+ K(f("textarea", {
3881
+ id: k,
3882
+ "onUpdate:modelValue": v[0] || (v[0] = (S) => c.value = S),
3616
3883
  class: g(["onyx-textarea__native", { "onyx-textarea__native--no-resize": e.disableManualResize }]),
3617
3884
  placeholder: e.placeholder,
3618
3885
  required: e.required,
@@ -3625,25 +3892,25 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3625
3892
  maxlength: e.maxlength,
3626
3893
  "aria-label": e.hideLabel ? e.label : void 0,
3627
3894
  title: e.hideLabel ? e.label : void 0,
3628
- onInput: y,
3629
- onChange: c,
3630
- onFocus: f[1] || (f[1] = (C) => l("focus")),
3631
- onBlur: f[2] || (f[2] = (C) => l("blur"))
3632
- }, null, 42, ln), [
3633
- [Qe, u.value],
3634
- [r(s)]
3895
+ onInput: d,
3896
+ onChange: i,
3897
+ onFocus: v[1] || (v[1] = (S) => l("focus")),
3898
+ onBlur: v[2] || (v[2] = (S) => l("blur"))
3899
+ }, null, 42, wn), [
3900
+ [ze, c.value],
3901
+ [r(n)]
3635
3902
  ])
3636
- ], 8, an)
3903
+ ], 8, kn)
3637
3904
  ]),
3638
3905
  _: 1
3639
3906
  }, 16, ["error-messages"])
3640
3907
  ], 6));
3641
3908
  }
3642
- }), on = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>', sn = { class: "onyx-toast-message__wrapper" }, rn = { class: "onyx-toast-message__content onyx-truncation-ellipsis" }, cn = { class: "onyx-toast-message__headline onyx-text" }, un = { class: "onyx-truncation-ellipsis" }, dn = ["aria-label"], pn = {
3909
+ }), Cn = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m8.485 22.485A11.92 11.92 0 0 1 16 28C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12c0 3.205-1.248 6.219-3.515 8.485"/><path d="M15 22h2v2h-2zm0-14h2v11h-2z"/></svg>', $n = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 32 32"><path d="M16 2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14S23.732 2 16 2m0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12"/><path d="m12.987 19.063-3.291-3.292-1.414 1.415 4.705 4.706 9.707-9.708-1.414-1.414z"/></svg>', Mn = { class: "onyx-toast-message__wrapper" }, Bn = { class: "onyx-toast-message__content onyx-truncation-ellipsis" }, Vn = { class: "onyx-toast-message__headline onyx-text" }, Sn = { class: "onyx-truncation-ellipsis" }, On = ["aria-label"], Ln = {
3643
3910
  key: 0,
3644
3911
  class: "onyx-toast-message__description onyx-text--small onyx-truncation-multiline",
3645
3912
  tabindex: "0"
3646
- }, mn = /* @__PURE__ */ k({
3913
+ }, Tn = /* @__PURE__ */ w({
3647
3914
  __name: "OnyxToastMessage",
3648
3915
  props: {
3649
3916
  density: {},
@@ -3656,65 +3923,65 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3656
3923
  },
3657
3924
  emits: ["click", "close"],
3658
3925
  setup(t, { emit: a }) {
3659
- const e = t, l = a, { t: s } = P(), { densityClass: o } = H(e), i = h(() => e.duration > 0), u = {
3660
- neutral: it,
3661
- danger: st,
3662
- warning: on,
3663
- success: nn
3664
- }, c = h(() => {
3926
+ const e = t, l = a, { t: n } = N(), { densityClass: o } = H(e), u = h(() => e.duration > 0), c = {
3927
+ neutral: pt,
3928
+ danger: ct,
3929
+ warning: Cn,
3930
+ success: $n
3931
+ }, i = h(() => {
3665
3932
  if (e.icon !== !1)
3666
- return e.icon || u[e.color];
3933
+ return e.icon || c[e.color];
3667
3934
  });
3668
- return (m, y) => (n(), x(re(e.clickable ? "button" : "div"), {
3935
+ return (y, d) => (s(), x(ce(e.clickable ? "button" : "div"), {
3669
3936
  class: g(["onyx-toast-message", [`onyx-toast-message--${e.color}`, r(o)]]),
3670
3937
  role: e.color === "danger" || e.color === "warning" ? "alert" : "status",
3671
3938
  "aria-label": e.clickable ? e.headline : void 0,
3672
- onClick: y[2] || (y[2] = (d) => e.clickable && l("click"))
3939
+ onClick: d[2] || (d[2] = (m) => e.clickable && l("click"))
3673
3940
  }, {
3674
3941
  default: $(() => [
3675
- v("div", sn, [
3676
- c.value ? (n(), x(L, {
3942
+ f("div", Mn, [
3943
+ i.value ? (s(), x(A, {
3677
3944
  key: 0,
3678
- icon: c.value
3945
+ icon: i.value
3679
3946
  }, null, 8, ["icon"])) : _("", !0),
3680
- v("div", rn, [
3681
- v("div", cn, [
3682
- v("span", un, M(e.headline), 1),
3683
- e.clickable ? _("", !0) : (n(), p("button", {
3947
+ f("div", Bn, [
3948
+ f("div", Vn, [
3949
+ f("span", Sn, V(e.headline), 1),
3950
+ e.clickable ? _("", !0) : (s(), p("button", {
3684
3951
  key: 0,
3685
3952
  type: "button",
3686
- "aria-label": r(s)("close"),
3953
+ "aria-label": r(n)("close"),
3687
3954
  class: "onyx-toast-message__close",
3688
- onClick: y[0] || (y[0] = (d) => l("close"))
3955
+ onClick: d[0] || (d[0] = (m) => l("close"))
3689
3956
  }, [
3690
- V(L, { icon: r(ze) }, null, 8, ["icon"])
3691
- ], 8, dn))
3957
+ M(A, { icon: r(qe) }, null, 8, ["icon"])
3958
+ ], 8, On))
3692
3959
  ]),
3693
- e.description ? (n(), p("p", pn, M(e.description), 1)) : _("", !0)
3960
+ e.description ? (s(), p("p", Ln, V(e.description), 1)) : _("", !0)
3694
3961
  ])
3695
3962
  ]),
3696
- i.value ? (n(), p("time", {
3963
+ u.value ? (s(), p("time", {
3697
3964
  key: e.duration,
3698
3965
  "aria-hidden": "true",
3699
3966
  class: "onyx-toast-message__progress-bar",
3700
- style: Be({ animationDuration: `${e.duration}ms` }),
3701
- onAnimationend: y[1] || (y[1] = (d) => l("close"))
3967
+ style: Ee({ animationDuration: `${e.duration}ms` }),
3968
+ onAnimationend: d[1] || (d[1] = (m) => l("close"))
3702
3969
  }, null, 36)) : _("", !0)
3703
3970
  ]),
3704
3971
  _: 1
3705
3972
  }, 8, ["class", "role", "aria-label"]));
3706
3973
  }
3707
- }), kt = Symbol(), yn = () => {
3974
+ }), Vt = Symbol(), En = () => {
3708
3975
  let t = 1;
3709
- const a = O([]), e = (s) => {
3976
+ const a = T([]), e = (n) => {
3710
3977
  const o = t++;
3711
3978
  a.value.unshift({
3712
- ...s,
3979
+ ...n,
3713
3980
  id: o,
3714
3981
  onClose: () => l(o)
3715
3982
  });
3716
- }, l = (s) => {
3717
- a.value = a.value.filter((o) => o.id !== s);
3983
+ }, l = (n) => {
3984
+ a.value = a.value.filter((o) => o.id !== n);
3718
3985
  };
3719
3986
  return {
3720
3987
  // make toasts readonly so they can not be modified from the outside
@@ -3722,14 +3989,14 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3722
3989
  show: e,
3723
3990
  remove: l
3724
3991
  };
3725
- }, hn = () => {
3992
+ }, In = () => {
3726
3993
  const t = () => {
3727
3994
  console.warn(
3728
3995
  'Trying to use "useToast()" before the toast provider has been provided. Make sure to "provide" it first.'
3729
3996
  );
3730
3997
  };
3731
- return se(
3732
- kt,
3998
+ return ue(
3999
+ Vt,
3733
4000
  // provide fallback so "useToast()" does not return "undefined"
3734
4001
  () => ({
3735
4002
  toasts: h(() => []),
@@ -3738,106 +4005,104 @@ const U = /* @__PURE__ */ He(ea, [["render", aa]]), la = ["disabled", "type", "a
3738
4005
  }),
3739
4006
  !0
3740
4007
  );
3741
- }, vn = {
4008
+ }, An = {
3742
4009
  key: 0,
3743
4010
  class: "onyx-toast",
3744
4011
  role: "presentation",
3745
4012
  "aria-live": "polite",
3746
4013
  open: ""
3747
- }, Xn = /* @__PURE__ */ k({
4014
+ }, fs = /* @__PURE__ */ w({
3748
4015
  __name: "OnyxToast",
3749
4016
  setup(t) {
3750
- const a = hn();
3751
- return (e, l) => r(a).toasts.value.length ? (n(), p("dialog", vn, [
3752
- (n(!0), p(z, null, W(r(a).toasts.value, ({ id: s, ...o }) => (n(), x(mn, B({
3753
- key: s,
4017
+ const a = In();
4018
+ return (e, l) => r(a).toasts.value.length ? (s(), p("dialog", An, [
4019
+ (s(!0), p(R, null, J(r(a).toasts.value, ({ id: n, ...o }) => (s(), x(Tn, O({
4020
+ key: n,
3754
4021
  ref_for: !0
3755
4022
  }, o), null, 16))), 128))
3756
4023
  ])) : _("", !0);
3757
4024
  }
3758
- }), Jn = ["top", "bottom"], Qn = (t = {}) => ({
4025
+ }), _s = ["top", "bottom"], xs = (t = {}) => ({
3759
4026
  install: (a) => {
3760
- xa(a, t.i18n);
3761
- const e = a.runWithContext(() => P());
3762
- X(() => fn(e.t.value("optional"))), a.provide(kt, yn());
4027
+ Sa(a, t.i18n);
4028
+ const e = a.runWithContext(() => N());
4029
+ Q(() => Hn(e.t.value("optional"))), a.provide(Vt, En());
3763
4030
  }
3764
- }), fn = (t) => {
4031
+ }), Hn = (t) => {
3765
4032
  globalThis.document.body.style.setProperty("--onyx-global-optional-text", t);
3766
- }, es = (t, a) => {
3767
- const e = Xe(t.toLowerCase()), l = Xe(a.toLowerCase());
3768
- return e.includes(l);
3769
- }, Xe = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
4033
+ };
3770
4034
  export {
3771
- On as AUTOCAPITALIZE,
3772
- wn as BUTTON_COLORS,
3773
- Cn as BUTTON_MODES,
3774
- kn as BUTTON_TYPES,
3775
- gn as DENSITIES,
3776
- Un as DIRECTIONS,
3777
- Mn as HEADLINE_TYPES,
3778
- Vn as ICON_SIZES,
3779
- Bn as INPUT_TYPES,
3780
- Tn as LINK_TARGETS,
3781
- he as MOBILE_NAV_BAR_INJECTION_KEY,
3782
- Kn as MULTISELECT_TEXT_MODE,
3783
- ro as ONYX_BREAKPOINTS,
3784
- Dn as ONYX_COLORS,
3785
- xn as OnyxAppLayout,
3786
- Ze as OnyxAvatar,
3787
- bn as OnyxAvatarStack,
3788
- Ut as OnyxBadge,
3789
- Oe as OnyxButton,
3790
- $e as OnyxCheckbox,
3791
- $n as OnyxCheckboxGroup,
3792
- El as OnyxColorSchemeDialog,
3793
- In as OnyxColorSchemeMenuItem,
3794
- La as OnyxDialog,
3795
- rt as OnyxEmpty,
3796
- Pe as OnyxExternalLinkIcon,
3797
- bt as OnyxFlyoutMenu,
3798
- ne as OnyxHeadline,
3799
- L as OnyxIcon,
3800
- Na as OnyxIconButton,
3801
- Me as OnyxInfoTooltip,
3802
- Sn as OnyxInput,
3803
- En as OnyxLink,
3804
- ft as OnyxListItem,
3805
- J as OnyxLoadingIndicator,
3806
- xt as OnyxMenuItem,
3807
- yl as OnyxMiniSearch,
3808
- Ge as OnyxMobileNavButton,
3809
- kl as OnyxNavAppArea,
3810
- Fn as OnyxNavBar,
3811
- Ln as OnyxNavButton,
3812
- An as OnyxNavItem,
3813
- zl as OnyxNavSeparator,
3814
- Rn as OnyxPageLayout,
3815
- je as OnyxRadioButton,
3816
- qn as OnyxRadioGroup,
3817
- Zn as OnyxSelect,
3818
- Eo as OnyxSelectInput,
3819
- We as OnyxSelectOption,
4035
+ Yn as AUTOCAPITALIZE,
4036
+ Un as BUTTON_COLORS,
4037
+ Fn as BUTTON_MODES,
4038
+ Rn as BUTTON_TYPES,
4039
+ zn as DENSITIES,
4040
+ ss as DIRECTIONS,
4041
+ Zn as HEADLINE_TYPES,
4042
+ Gn as ICON_SIZES,
4043
+ jn as INPUT_TYPES,
4044
+ Xn as LINK_TARGETS,
4045
+ be as MOBILE_NAV_BAR_INJECTION_KEY,
4046
+ ds as MULTISELECT_TEXT_MODE,
4047
+ ko as ONYX_BREAKPOINTS,
4048
+ ls as ONYX_COLORS,
4049
+ Dn as OnyxAppLayout,
4050
+ Ye as OnyxAvatar,
4051
+ Nn as OnyxAvatarStack,
4052
+ Wt as OnyxBadge,
4053
+ Ie as OnyxButton,
4054
+ Ve as OnyxCheckbox,
4055
+ qn as OnyxCheckboxGroup,
4056
+ ql as OnyxColorSchemeDialog,
4057
+ Jn as OnyxColorSchemeMenuItem,
4058
+ Za as OnyxDialog,
4059
+ dt as OnyxEmpty,
4060
+ Ue as OnyxExternalLinkIcon,
4061
+ Mt as OnyxFlyoutMenu,
4062
+ ie as OnyxHeadline,
4063
+ A as OnyxIcon,
4064
+ Wa as OnyxIconButton,
4065
+ Se as OnyxInfoTooltip,
4066
+ Kn as OnyxInput,
4067
+ Wn as OnyxLink,
4068
+ Fe as OnyxListItem,
4069
+ X as OnyxLoadingIndicator,
4070
+ $t as OnyxMenuItem,
4071
+ Ml as OnyxMiniSearch,
4072
+ Qe as OnyxMobileNavButton,
4073
+ Al as OnyxNavAppArea,
4074
+ rs as OnyxNavBar,
4075
+ Qn as OnyxNavButton,
4076
+ es as OnyxNavItem,
4077
+ Xl as OnyxNavSeparator,
4078
+ is as OnyxPageLayout,
4079
+ et as OnyxRadioButton,
4080
+ us as OnyxRadioGroup,
4081
+ cs as OnyxSelect,
4082
+ qo as OnyxSelectInput,
4083
+ lt as OnyxSelectOption,
3820
4084
  U as OnyxSkeleton,
3821
- Gn as OnyxSwitch,
3822
- jn as OnyxTable,
3823
- Yn as OnyxTag,
3824
- Wn as OnyxTextarea,
3825
- Hn as OnyxTimer,
3826
- Xn as OnyxToast,
3827
- mn as OnyxToastMessage,
3828
- ht as OnyxTooltip,
3829
- Pn as OnyxUserMenu,
3830
- vt as OnyxVisuallyHidden,
3831
- zn as TEXT_SIZES,
3832
- kt as TOAST_PROVIDER_INJECTION_KEY,
3833
- Jn as TOOLTIP_POSITIONS,
3834
- Nn as TRUNCATION_TYPES,
3835
- Qn as createOnyx,
3836
- yn as createToastProvider,
3837
- es as normalizedIncludes,
3838
- xa as provideI18n,
3839
- fn as syncGlobalOptionalText,
4085
+ ps as OnyxStepper,
4086
+ ms as OnyxSwitch,
4087
+ ys as OnyxTable,
4088
+ hs as OnyxTag,
4089
+ vs as OnyxTextarea,
4090
+ ts as OnyxTimer,
4091
+ fs as OnyxToast,
4092
+ Tn as OnyxToastMessage,
4093
+ kt as OnyxTooltip,
4094
+ as as OnyxUserMenu,
4095
+ wt as OnyxVisuallyHidden,
4096
+ os as TEXT_SIZES,
4097
+ Vt as TOAST_PROVIDER_INJECTION_KEY,
4098
+ _s as TOOLTIP_POSITIONS,
4099
+ ns as TRUNCATION_TYPES,
4100
+ xs as createOnyx,
4101
+ En as createToastProvider,
4102
+ No as normalizedIncludes,
4103
+ Sa as provideI18n,
4104
+ Hn as syncGlobalOptionalText,
3840
4105
  H as useDensity,
3841
- Mo as useScrollEnd,
3842
- hn as useToast
4106
+ Do as useScrollEnd,
4107
+ In as useToast
3843
4108
  };