@proximus/lavender-common 2.0.0-alpha.228 → 2.0.0-alpha.229

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,33 +1,23 @@
1
- //#region src/common.css?inline
2
- var e = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
3
- //#endregion
4
- //#region src/common.ts
5
- function t(e) {
6
- let t = document.createElement(e), n = Object.getPrototypeOf(t);
7
- return Object.getOwnPropertyNames(n);
8
- }
9
- function n(e) {
10
- let t = document.createElement(e), n = Object.getPrototypeOf(t);
11
- return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
12
- }
13
- var r = new CSSStyleSheet();
14
- r.replaceSync(e);
15
- var i = {
1
+ //#region src/debug.ts
2
+ var e = {
16
3
  BASE_URL: "/",
17
4
  DEV: !0,
18
5
  MODE: "production",
19
6
  PROD: !1,
20
7
  SSR: !1,
21
8
  VITE_COMPONENT_DEBUG: "true"
22
- }, a = i?.VITE_COMPONENT_DEBUG === "true" || i?.DEV === !0;
23
- typeof window < "u" && (window.isComponentDebug = o);
24
- function o() {
25
- return a;
9
+ }, t = e?.VITE_COMPONENT_DEBUG === "true" || e?.DEV === !0;
10
+ typeof window < "u" && (window.isComponentDebug = n);
11
+ function n() {
12
+ return t;
26
13
  }
27
- function s(e) {
28
- o() && console.error(e);
14
+ function r(e) {
15
+ n() && console.error(e);
29
16
  }
30
- var c = class {
17
+ typeof window < "u" && (window.isComponentDebug = n);
18
+ //#endregion
19
+ //#region src/WrappedInteractiveStateController.ts
20
+ var i = class {
31
21
  #e;
32
22
  #t;
33
23
  #n;
@@ -53,19 +43,245 @@ var c = class {
53
43
  }) : t.forEach((e) => e.removeAttribute("interactive-state"));
54
44
  }
55
45
  get #a() {
56
- return Array.from(this.#e.querySelectorAll("*")).filter(l);
46
+ return Array.from(this.#e.querySelectorAll("*")).filter(a);
57
47
  }
58
48
  };
59
- function l(e) {
49
+ function a(e) {
60
50
  return e.hasAttribute("interactive-state") ? !0 : customElements.get(e.localName)?.observedAttributes?.includes("interactive-state") ?? !1;
61
51
  }
62
- typeof window < "u" && (window.isComponentDebug = o);
63
- var u = class e extends HTMLElement {
52
+ //#endregion
53
+ //#region src/common.css?inline
54
+ var o = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
55
+ //#endregion
56
+ //#region src/attributeSetters.ts
57
+ function s(e, t, n) {
58
+ n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
59
+ }
60
+ function c(e, t, n) {
61
+ n ? e.setAttribute(t, "") : e.removeAttribute(t);
62
+ }
63
+ //#endregion
64
+ //#region src/values.ts
65
+ var ee = [
66
+ "",
67
+ "default",
68
+ "none",
69
+ "l"
70
+ ], l = [
71
+ "",
72
+ "default",
73
+ "auto",
74
+ "flex-start",
75
+ "start",
76
+ "flex-end",
77
+ "end",
78
+ "center",
79
+ "baseline",
80
+ "stretch"
81
+ ], u = [
82
+ "",
83
+ "default",
84
+ "start",
85
+ "end",
86
+ "center",
87
+ "stretch"
88
+ ], d = [
89
+ "",
90
+ "default",
91
+ "start",
92
+ "end",
93
+ "center",
94
+ "stretch"
95
+ ], f = [
96
+ "",
97
+ "1",
98
+ "2",
99
+ "3",
100
+ "4",
101
+ "5",
102
+ "6",
103
+ "7",
104
+ "8",
105
+ "9",
106
+ "10",
107
+ "11",
108
+ "12"
109
+ ], p = [
110
+ "",
111
+ "-1",
112
+ "0",
113
+ "1",
114
+ "2",
115
+ "3",
116
+ "4",
117
+ "5",
118
+ "6",
119
+ "7",
120
+ "8",
121
+ "9",
122
+ "10",
123
+ "11",
124
+ "12"
125
+ ], m = [
126
+ "",
127
+ "default",
128
+ "auto",
129
+ "start",
130
+ "end",
131
+ "center",
132
+ "stretch"
133
+ ], h = [
134
+ "",
135
+ "default",
136
+ "inherit",
137
+ "body-l",
138
+ "body-m",
139
+ "body-s",
140
+ "body-xs",
141
+ "heading-5xl",
142
+ "heading-4xl",
143
+ "heading-3xl",
144
+ "heading-2xl",
145
+ "heading-xl",
146
+ "heading-l",
147
+ "heading-m",
148
+ "heading-s"
149
+ ], g = [
150
+ "",
151
+ "default",
152
+ "inherit",
153
+ "brand",
154
+ "neutral",
155
+ "dimmed",
156
+ "purpose-success",
157
+ "purpose-warning",
158
+ "purpose-error",
159
+ "purpose-unlimited",
160
+ "purpose-promo",
161
+ "state-hover",
162
+ "state-active",
163
+ "state-disabled"
164
+ ], _ = [
165
+ "",
166
+ "default",
167
+ "inherit",
168
+ "body",
169
+ "title",
170
+ "title-large",
171
+ "subtitle"
172
+ ], v = [
173
+ "Xs",
174
+ "S",
175
+ "M",
176
+ "L",
177
+ "Xl"
178
+ ], y = [
179
+ "",
180
+ "default",
181
+ ...v.map((e) => e.toLowerCase())
182
+ ], te = [
183
+ "",
184
+ "default",
185
+ "left",
186
+ "center",
187
+ "right"
188
+ ], ne = [
189
+ "",
190
+ "none",
191
+ "3xs",
192
+ "2xs",
193
+ "xs",
194
+ "s",
195
+ "m",
196
+ "l",
197
+ "xl"
198
+ ], re = [
199
+ "",
200
+ "none",
201
+ "s",
202
+ "m",
203
+ "l"
204
+ ], ie = [
205
+ "",
206
+ "none",
207
+ "main",
208
+ "pill"
209
+ ], b = [
210
+ "none",
211
+ "main",
212
+ "brand",
213
+ "state-hover",
214
+ "state-active",
215
+ "neutral",
216
+ "purpose-success",
217
+ "purpose-warning",
218
+ "purpose-error",
219
+ "purpose-unlimited"
220
+ ], x = [
221
+ "",
222
+ "all",
223
+ "top",
224
+ "right",
225
+ "bottom",
226
+ "left",
227
+ "block",
228
+ "inline"
229
+ ], S = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), C = [
230
+ "",
231
+ "cover",
232
+ "contain",
233
+ "default"
234
+ ], w = [
235
+ "",
236
+ "none",
237
+ "s",
238
+ "m",
239
+ "l",
240
+ "xl"
241
+ ], T = [
242
+ "",
243
+ "default",
244
+ "title-4xl",
245
+ "title-3xl",
246
+ "title-2xl",
247
+ "title-xl",
248
+ "title-l",
249
+ "title-m",
250
+ "title-s",
251
+ "subtitle"
252
+ ], E = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), D = [
253
+ "none",
254
+ "2xs",
255
+ "xs",
256
+ "s",
257
+ "default",
258
+ "l",
259
+ "heading-to-subtitle",
260
+ "heading-to-content",
261
+ "page-layout-between-sections"
262
+ ], O = [
263
+ "",
264
+ "all",
265
+ "top",
266
+ "right",
267
+ "bottom",
268
+ "left"
269
+ ], k = [
270
+ "",
271
+ "default",
272
+ "xs",
273
+ "s",
274
+ "m",
275
+ "l",
276
+ "xl"
277
+ ], A = new CSSStyleSheet();
278
+ A.replaceSync(o);
279
+ var j = class e extends HTMLElement {
64
280
  static get observedAttributes() {
65
281
  return /* @__PURE__ */ "grow.grow--mobile.grow--tablet.grow--laptop.grow--desktop.shrink.shrink--mobile.shrink--tablet.shrink--laptop.shrink--desktop.basis.basis--mobile.basis--tablet.basis--laptop.basis--desktop.align-self.align-self--mobile.align-self--tablet.align-self--laptop.align-self--desktop.justify-self.justify-self--mobile.justify-self--tablet.justify-self--laptop.justify-self--desktop.hidden.hidden--mobile.hidden--tablet.hidden--laptop.hidden--desktop.shown--sr.shown--sr--mobile.shown--sr--tablet.shown--sr--laptop.shown--sr--desktop.col-span.col-span--mobile.col-span--tablet.col-span--laptop.col-span--desktop.order.order--mobile.order--tablet.order--laptop.order--desktop.sticky-top.sticky-bottom.word-break-all.word-break-all--mobile.word-break-all--tablet.word-break-all--laptop.word-break-all--desktop".split(".");
66
282
  }
67
283
  constructor(...e) {
68
- super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [r, ...e];
284
+ super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [A, ...e];
69
285
  }
70
286
  attributeChangedCallback(t, n, r) {
71
287
  if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
@@ -91,36 +307,36 @@ var u = class e extends HTMLElement {
91
307
  case "align-self--tablet":
92
308
  case "align-self--laptop":
93
309
  case "align-self--desktop":
94
- this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? h : m);
310
+ this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? u : l);
95
311
  break;
96
312
  case "justify-self":
97
313
  case "justify-self--mobile":
98
314
  case "justify-self--tablet":
99
315
  case "justify-self--laptop":
100
316
  case "justify-self--desktop":
101
- this.updateProperties(t, n, r, g);
317
+ this.updateProperties(t, n, r, d);
102
318
  break;
103
319
  case "col-span":
104
320
  case "col-span--mobile":
105
321
  case "col-span--tablet":
106
322
  case "col-span--laptop":
107
323
  case "col-span--desktop":
108
- this.updateProperties(t, n, r, _);
324
+ this.updateProperties(t, n, r, f);
109
325
  break;
110
326
  case "order":
111
327
  case "order--mobile":
112
328
  case "order--tablet":
113
329
  case "order--laptop":
114
- case "order--desktop": this.updateProperties(t, n, r, v);
330
+ case "order--desktop": this.updateProperties(t, n, r, p);
115
331
  }
116
332
  }
117
- updateProperties(e, t, n, r) {
118
- r && (this.checkName(r, n) || s(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`));
119
- let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e;
120
- if (!i) this.style.setProperty(`--${a}-value`, t), this.style.setProperty(`--${a}-value`, n);
333
+ updateProperties(e, t, n, i) {
334
+ i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
335
+ let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
336
+ if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
121
337
  else {
122
338
  let r = e.split("--")[1];
123
- this.style.setProperty(`--${a}--${r}-value`, t), this.style.setProperty(`--${a}--${r}-value`, n);
339
+ this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
124
340
  }
125
341
  }
126
342
  updateStyle(e, t, n) {
@@ -148,523 +364,512 @@ var u = class e extends HTMLElement {
148
364
  return this.getAttribute("grow");
149
365
  }
150
366
  set grow(e) {
151
- G(this, "grow", e);
367
+ s(this, "grow", e);
152
368
  }
153
369
  get growMobile() {
154
370
  return this.getAttribute("grow--mobile");
155
371
  }
156
372
  set growMobile(e) {
157
- G(this, "grow--mobile", e);
373
+ s(this, "grow--mobile", e);
158
374
  }
159
375
  get growTablet() {
160
376
  return this.getAttribute("grow--tablet");
161
377
  }
162
378
  set growTablet(e) {
163
- G(this, "grow--tablet", e);
379
+ s(this, "grow--tablet", e);
164
380
  }
165
381
  get growLaptop() {
166
382
  return this.getAttribute("grow--laptop");
167
383
  }
168
384
  set growLaptop(e) {
169
- G(this, "grow--laptop", e);
385
+ s(this, "grow--laptop", e);
170
386
  }
171
387
  get growDesktop() {
172
388
  return this.getAttribute("grow--desktop");
173
389
  }
174
390
  set growDesktop(e) {
175
- G(this, "grow--desktop", e);
391
+ s(this, "grow--desktop", e);
176
392
  }
177
393
  get shrink() {
178
394
  return this.getAttribute("shrink");
179
395
  }
180
396
  set shrink(e) {
181
- G(this, "shrink", e);
397
+ s(this, "shrink", e);
182
398
  }
183
399
  get shrinkMobile() {
184
400
  return this.getAttribute("shrink--mobile");
185
401
  }
186
402
  set shrinkMobile(e) {
187
- G(this, "shrink--mobile", e);
403
+ s(this, "shrink--mobile", e);
188
404
  }
189
405
  get shrinkTablet() {
190
406
  return this.getAttribute("shrink--tablet");
191
407
  }
192
408
  set shrinkTablet(e) {
193
- G(this, "shrink--tablet", e);
409
+ s(this, "shrink--tablet", e);
194
410
  }
195
411
  get shrinkLaptop() {
196
412
  return this.getAttribute("shrink--laptop");
197
413
  }
198
414
  set shrinkLaptop(e) {
199
- G(this, "shrink--laptop", e);
415
+ s(this, "shrink--laptop", e);
200
416
  }
201
417
  get shrinkDesktop() {
202
418
  return this.getAttribute("shrink--desktop");
203
419
  }
204
420
  set shrinkDesktop(e) {
205
- G(this, "shrink--desktop", e);
421
+ s(this, "shrink--desktop", e);
206
422
  }
207
423
  get basis() {
208
424
  return this.getAttribute("basis");
209
425
  }
210
426
  set basis(e) {
211
- G(this, "basis", e);
427
+ s(this, "basis", e);
212
428
  }
213
429
  get basisMobile() {
214
430
  return this.getAttribute("basis--mobile");
215
431
  }
216
432
  set basisMobile(e) {
217
- G(this, "basis--mobile", e);
433
+ s(this, "basis--mobile", e);
218
434
  }
219
435
  get basisTablet() {
220
436
  return this.getAttribute("basis--tablet");
221
437
  }
222
438
  set basisTablet(e) {
223
- G(this, "basis--tablet", e);
439
+ s(this, "basis--tablet", e);
224
440
  }
225
441
  get basisLaptop() {
226
442
  return this.getAttribute("basis--laptop");
227
443
  }
228
444
  set basisLaptop(e) {
229
- G(this, "basis--laptop", e);
445
+ s(this, "basis--laptop", e);
230
446
  }
231
447
  get basisDesktop() {
232
448
  return this.getAttribute("basis--desktop");
233
449
  }
234
450
  set basisDesktop(e) {
235
- G(this, "basis--desktop", e);
451
+ s(this, "basis--desktop", e);
236
452
  }
237
453
  get alignSelf() {
238
454
  return this.getAttribute("align-self");
239
455
  }
240
456
  set alignSelf(e) {
241
- G(this, "align-self", e);
457
+ s(this, "align-self", e);
242
458
  }
243
459
  get alignSelfMobile() {
244
460
  return this.getAttribute("align-self--mobile");
245
461
  }
246
462
  set alignSelfMobile(e) {
247
- G(this, "align-self--mobile", e);
463
+ s(this, "align-self--mobile", e);
248
464
  }
249
465
  get alignSelfTablet() {
250
466
  return this.getAttribute("align-self--tablet");
251
467
  }
252
468
  set alignSelfTablet(e) {
253
- G(this, "align-self--tablet", e);
469
+ s(this, "align-self--tablet", e);
254
470
  }
255
471
  get alignSelfLaptop() {
256
472
  return this.getAttribute("align-self--laptop");
257
473
  }
258
474
  set alignSelfLaptop(e) {
259
- G(this, "align-self--laptop", e);
475
+ s(this, "align-self--laptop", e);
260
476
  }
261
477
  get alignSelfDesktop() {
262
478
  return this.getAttribute("align-self--desktop");
263
479
  }
264
480
  set alignSelfDesktop(e) {
265
- G(this, "align-self--desktop", e);
481
+ s(this, "align-self--desktop", e);
266
482
  }
267
483
  get justifySelf() {
268
484
  return this.getAttribute("justify-self");
269
485
  }
270
486
  set justifySelf(e) {
271
- G(this, "justify-self", e);
487
+ s(this, "justify-self", e);
272
488
  }
273
489
  get justifySelfMobile() {
274
490
  return this.getAttribute("justify-self--mobile");
275
491
  }
276
492
  set justifySelfMobile(e) {
277
- G(this, "justify-self--mobile", e);
493
+ s(this, "justify-self--mobile", e);
278
494
  }
279
495
  get justifySelfTablet() {
280
496
  return this.getAttribute("justify-self--tablet");
281
497
  }
282
498
  set justifySelfTablet(e) {
283
- G(this, "justify-self--tablet", e);
499
+ s(this, "justify-self--tablet", e);
284
500
  }
285
501
  get justifySelfLaptop() {
286
502
  return this.getAttribute("justify-self--laptop");
287
503
  }
288
504
  set justifySelfLaptop(e) {
289
- G(this, "justify-self--laptop", e);
505
+ s(this, "justify-self--laptop", e);
290
506
  }
291
507
  get justifySelfDesktop() {
292
508
  return this.getAttribute("justify-self--desktop");
293
509
  }
294
510
  set justifySelfDesktop(e) {
295
- G(this, "justify-self--desktop", e);
511
+ s(this, "justify-self--desktop", e);
296
512
  }
297
513
  get hiddenMobile() {
298
514
  return this.hasAttribute("hidden--mobile");
299
515
  }
300
516
  set hiddenMobile(e) {
301
- K(this, "hidden--mobile", e);
517
+ c(this, "hidden--mobile", e);
302
518
  }
303
519
  get hiddenTablet() {
304
520
  return this.hasAttribute("hidden--tablet");
305
521
  }
306
522
  set hiddenTablet(e) {
307
- K(this, "hidden--tablet", e);
523
+ c(this, "hidden--tablet", e);
308
524
  }
309
525
  get hiddenLaptop() {
310
526
  return this.hasAttribute("hidden--laptop");
311
527
  }
312
528
  set hiddenLaptop(e) {
313
- K(this, "hidden--laptop", e);
529
+ c(this, "hidden--laptop", e);
314
530
  }
315
531
  get hiddenDesktop() {
316
532
  return this.hasAttribute("hidden--desktop");
317
533
  }
318
534
  set hiddenDesktop(e) {
319
- K(this, "hidden--desktop", e);
535
+ c(this, "hidden--desktop", e);
320
536
  }
321
537
  get colSpan() {
322
538
  return this.getAttribute("col-span");
323
539
  }
324
540
  set colSpan(e) {
325
- G(this, "col-span", e);
541
+ s(this, "col-span", e);
326
542
  }
327
543
  get colSpanMobile() {
328
544
  return this.getAttribute("col-span--mobile");
329
545
  }
330
546
  set colSpanMobile(e) {
331
- G(this, "col-span--mobile", e);
547
+ s(this, "col-span--mobile", e);
332
548
  }
333
549
  get colSpanTablet() {
334
550
  return this.getAttribute("col-span--tablet");
335
551
  }
336
552
  set colSpanTablet(e) {
337
- G(this, "col-span--tablet", e);
553
+ s(this, "col-span--tablet", e);
338
554
  }
339
555
  get colSpanLaptop() {
340
556
  return this.getAttribute("col-span--laptop");
341
557
  }
342
558
  set colSpanLaptop(e) {
343
- G(this, "col-span--laptop", e);
559
+ s(this, "col-span--laptop", e);
344
560
  }
345
561
  get colSpanDesktop() {
346
562
  return this.getAttribute("col-span--desktop");
347
563
  }
348
564
  set colSpanDesktop(e) {
349
- G(this, "col-span--desktop", e);
565
+ s(this, "col-span--desktop", e);
350
566
  }
351
567
  get order() {
352
568
  return this.getAttribute("order");
353
569
  }
354
570
  set order(e) {
355
- G(this, "order", e);
571
+ s(this, "order", e);
356
572
  }
357
573
  get orderMobile() {
358
574
  return this.getAttribute("order--mobile");
359
575
  }
360
576
  set orderMobile(e) {
361
- G(this, "order--mobile", e);
577
+ s(this, "order--mobile", e);
362
578
  }
363
579
  get orderTablet() {
364
580
  return this.getAttribute("order--tablet");
365
581
  }
366
582
  set orderTablet(e) {
367
- G(this, "order--tablet", e);
583
+ s(this, "order--tablet", e);
368
584
  }
369
585
  get orderLaptop() {
370
586
  return this.getAttribute("order--laptop");
371
587
  }
372
588
  set orderLaptop(e) {
373
- G(this, "order--laptop", e);
589
+ s(this, "order--laptop", e);
374
590
  }
375
591
  get orderDesktop() {
376
592
  return this.getAttribute("order--desktop");
377
593
  }
378
594
  set orderDesktop(e) {
379
- G(this, "order--desktop", e);
595
+ s(this, "order--desktop", e);
380
596
  }
381
- }, d = class extends u {
597
+ }, M = class extends j {
382
598
  static {
383
- this.accessorExclusions = [];
599
+ this.nativeAttributes = {};
600
+ }
601
+ static {
602
+ this.nativeProperties = {};
603
+ }
604
+ static {
605
+ this.nativeMethods = [];
384
606
  }
385
607
  static get observedAttributes() {
386
- return [...super.observedAttributes, ...n(this.nativeName)];
608
+ return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
387
609
  }
388
610
  attributeChangedCallback(e, t, n) {
389
- super.attributeChangedCallback(e, t, n), n === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, n);
611
+ super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
390
612
  }
391
613
  get ctor() {
392
614
  return Object.getPrototypeOf(this).constructor;
393
615
  }
394
616
  constructor(...e) {
395
- super(...e), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = t(this.ctor.nativeName)), this.enhanceWithNativeProperties();
617
+ super(...e), this.enhanceWithNativeProperties();
618
+ }
619
+ getNativePropertyMetadata() {
620
+ let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
621
+ for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
622
+ let n = new Map(Object.entries(this.ctor.nativeProperties));
623
+ for (let t of e.keys()) n.set(t, "writable");
624
+ return {
625
+ reflectedProperties: e,
626
+ properties: n
627
+ };
628
+ }
629
+ setNativeProperty(e, t, n) {
630
+ let r = n.get(e);
631
+ if (r !== void 0) {
632
+ this.$el[e] = t;
633
+ let n = this.$el.getAttribute(r);
634
+ this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
635
+ } else this.$el[e] !== t && (this.$el[e] = t);
396
636
  }
397
637
  enhanceWithNativeProperties() {
398
- for (let e of this.ctor.supportedPropertyNames) if (!(e === "constructor" || (this.ctor?.accessorExclusions ?? []).includes(e))) try {
399
- Object.defineProperty(this, e, {
400
- get() {
401
- return this.$el[e];
402
- },
403
- set(t) {
404
- this.$el[e] !== t && (this.$el[e] = t);
405
- }
638
+ let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
639
+ for (let [n, r] of t) {
640
+ let t = n;
641
+ Object.defineProperty(this, t, {
642
+ get: () => this.$el[t],
643
+ set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
406
644
  });
407
- } catch (t) {
408
- console.warn(`Could not create property ${e} for`, this.$el, t);
409
645
  }
646
+ for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
647
+ let n = this.$el, r = Reflect.get(n, e);
648
+ if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
649
+ return Reflect.apply(r, n, t);
650
+ } });
410
651
  }
411
652
  get $el() {
412
653
  return this.shadowRoot.querySelector(this.ctor.nativeName);
413
654
  }
655
+ _forwardNativeAttribute(e, t) {
656
+ this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
657
+ }
414
658
  _updateAttribute(e, t) {
415
- G(this, e, t);
659
+ s(this, e, t);
416
660
  }
417
661
  _updateBooleanAttribute(e, t) {
418
- K(this, e, t);
662
+ c(this, e, t);
419
663
  }
420
- }, f = class extends d {
664
+ }, N = class extends M {
421
665
  connectedCallback() {
422
666
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
423
667
  }
424
- }, p = [
425
- "",
426
- "default",
427
- "none",
428
- "l"
429
- ], m = [
430
- "",
431
- "default",
432
- "auto",
433
- "flex-start",
434
- "start",
435
- "flex-end",
436
- "end",
437
- "center",
438
- "baseline",
439
- "stretch"
440
- ], h = [
441
- "",
442
- "default",
443
- "start",
444
- "end",
445
- "center",
446
- "stretch"
447
- ], g = [
448
- "",
449
- "default",
450
- "start",
451
- "end",
452
- "center",
453
- "stretch"
454
- ], _ = [
455
- "",
456
- "1",
457
- "2",
458
- "3",
459
- "4",
460
- "5",
461
- "6",
462
- "7",
463
- "8",
464
- "9",
465
- "10",
466
- "11",
467
- "12"
468
- ], v = [
469
- "",
470
- "-1",
471
- "0",
472
- "1",
473
- "2",
474
- "3",
475
- "4",
476
- "5",
477
- "6",
478
- "7",
479
- "8",
480
- "9",
481
- "10",
482
- "11",
483
- "12"
484
- ], y = [
485
- "",
486
- "default",
487
- "auto",
488
- "start",
489
- "end",
490
- "center",
491
- "stretch"
492
- ], b = [
493
- "",
494
- "default",
495
- "inherit",
496
- "body-l",
497
- "body-m",
498
- "body-s",
499
- "body-xs",
500
- "heading-5xl",
501
- "heading-4xl",
502
- "heading-3xl",
503
- "heading-2xl",
504
- "heading-xl",
505
- "heading-l",
506
- "heading-m",
507
- "heading-s"
508
- ], x = [
509
- "",
510
- "default",
511
- "inherit",
512
- "brand",
513
- "neutral",
514
- "dimmed",
515
- "purpose-success",
516
- "purpose-warning",
517
- "purpose-error",
518
- "purpose-unlimited",
519
- "purpose-promo",
520
- "state-hover",
521
- "state-active",
522
- "state-disabled"
523
- ], S = [
524
- "",
525
- "default",
526
- "inherit",
527
- "body",
528
- "title",
529
- "title-large",
530
- "subtitle"
531
- ], C = [
532
- "Xs",
533
- "S",
534
- "M",
535
- "L",
536
- "Xl"
537
- ], w = [
538
- "",
539
- "default",
540
- ...C.map((e) => e.toLowerCase())
541
- ], T = [
542
- "",
543
- "default",
544
- "left",
545
- "center",
546
- "right"
547
- ], E = [
548
- "",
549
- "none",
550
- "3xs",
551
- "2xs",
552
- "xs",
553
- "s",
554
- "m",
555
- "l",
556
- "xl"
557
- ], D = [
558
- "",
559
- "none",
560
- "s",
561
- "m",
562
- "l"
563
- ], O = [
564
- "",
565
- "none",
566
- "main",
567
- "pill"
568
- ], k = [
569
- "none",
570
- "main",
571
- "brand",
572
- "state-hover",
573
- "state-active",
574
- "neutral",
575
- "purpose-success",
576
- "purpose-warning",
577
- "purpose-error",
578
- "purpose-unlimited"
579
- ], A = [
580
- "",
581
- "all",
582
- "top",
583
- "right",
584
- "bottom",
585
- "left",
586
- "block",
587
- "inline"
588
- ], j = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), M = [
589
- "",
590
- "cover",
591
- "contain",
592
- "default"
593
- ], N = [
594
- "",
595
- "none",
596
- "s",
597
- "m",
598
- "l",
599
- "xl"
600
- ], P = [
601
- "",
602
- "default",
603
- "title-4xl",
604
- "title-3xl",
605
- "title-2xl",
606
- "title-xl",
607
- "title-l",
608
- "title-m",
609
- "title-s",
610
- "subtitle"
611
- ], F = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), I = [
612
- "none",
613
- "2xs",
614
- "xs",
615
- "s",
616
- "default",
617
- "l",
618
- "heading-to-subtitle",
619
- "heading-to-content",
620
- "page-layout-between-sections"
621
- ], L = [
622
- "",
623
- "all",
624
- "top",
625
- "right",
626
- "bottom",
627
- "left"
628
- ], R = [
629
- "",
630
- "default",
631
- "xs",
632
- "s",
633
- "m",
634
- "l",
635
- "xl"
636
- ];
637
- function z(e) {
668
+ };
669
+ //#endregion
670
+ //#region src/utilities.ts
671
+ function P(e, ...t) {
672
+ let n = { ...e };
673
+ for (let e of t) delete n[e];
674
+ return n;
675
+ }
676
+ function F(e) {
638
677
  let t = document.createElement("style");
639
678
  t.innerHTML = e, document.head.appendChild(t);
640
679
  }
641
- function B(e) {
680
+ function I(e) {
642
681
  return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
643
682
  }
644
- function V() {
683
+ function L() {
645
684
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
646
685
  }
647
- function H(e, t) {
686
+ function R(e, t) {
648
687
  return t !== null && e.includes(t);
649
688
  }
650
- var U = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
651
- function W(e, t, n = !1) {
652
- if (U.forEach((n) => {
689
+ //#endregion
690
+ //#region src/accessibility.ts
691
+ var z = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
692
+ function B(e, t, n = !1) {
693
+ if (z.forEach((n) => {
653
694
  e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
654
695
  }), n && !e.getAttribute("aria-labelledby")) {
655
696
  let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
656
697
  t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
657
698
  }
658
699
  }
659
- function G(e, t, n) {
660
- n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
661
- }
662
- function K(e, t, n) {
663
- n ? e.setAttribute(t, "") : e.removeAttribute(t);
664
- }
700
+ //#endregion
701
+ //#region src/nativeAttributes.ts
702
+ var V = {
703
+ disabled: ["disabled"],
704
+ name: ["name"],
705
+ value: ["value"],
706
+ type: ["type"],
707
+ formaction: ["formAction"],
708
+ formenctype: ["formEnctype"],
709
+ formmethod: ["formMethod"],
710
+ formnovalidate: ["formNoValidate"],
711
+ formtarget: ["formTarget"],
712
+ form: [],
713
+ autofocus: ["autofocus"],
714
+ title: ["title"],
715
+ popovertarget: [],
716
+ popovertargetaction: ["popoverTargetAction"],
717
+ command: ["command"],
718
+ commandfor: []
719
+ }, H = {
720
+ href: [
721
+ "href",
722
+ "protocol",
723
+ "username",
724
+ "password",
725
+ "host",
726
+ "hostname",
727
+ "port",
728
+ "pathname",
729
+ "search",
730
+ "hash"
731
+ ],
732
+ target: ["target"],
733
+ rel: ["rel", "relList"],
734
+ download: ["download"],
735
+ hreflang: ["hreflang"],
736
+ type: ["type"],
737
+ ping: ["ping"],
738
+ referrerpolicy: ["referrerPolicy"],
739
+ title: ["title"],
740
+ charset: ["charset"],
741
+ coords: ["coords"],
742
+ name: ["name"],
743
+ rev: ["rev"]
744
+ }, U = {
745
+ accept: ["accept"],
746
+ alt: ["alt"],
747
+ autocomplete: ["autocomplete"],
748
+ autofocus: ["autofocus"],
749
+ capture: ["capture"],
750
+ checked: ["defaultChecked"],
751
+ dirname: ["dirName"],
752
+ disabled: ["disabled"],
753
+ form: [],
754
+ formaction: ["formAction"],
755
+ formenctype: ["formEnctype"],
756
+ formmethod: ["formMethod"],
757
+ formnovalidate: ["formNoValidate"],
758
+ formtarget: ["formTarget"],
759
+ height: ["height"],
760
+ inputmode: ["inputMode"],
761
+ enterkeyhint: ["enterKeyHint"],
762
+ list: [],
763
+ max: ["max"],
764
+ maxlength: ["maxLength"],
765
+ min: ["min"],
766
+ minlength: ["minLength"],
767
+ multiple: ["multiple"],
768
+ name: ["name"],
769
+ pattern: ["pattern"],
770
+ placeholder: ["placeholder"],
771
+ popovertarget: [],
772
+ popovertargetaction: ["popoverTargetAction"],
773
+ readonly: ["readOnly"],
774
+ required: ["required"],
775
+ size: ["size"],
776
+ src: ["src"],
777
+ step: ["step"],
778
+ title: ["title"],
779
+ type: ["type"],
780
+ usemap: ["useMap"],
781
+ value: ["defaultValue", "value"],
782
+ webkitdirectory: ["webkitdirectory"],
783
+ width: ["width"]
784
+ }, W = {
785
+ validity: "readonly",
786
+ validationMessage: "readonly",
787
+ willValidate: "readonly"
788
+ }, G = [
789
+ "checkValidity",
790
+ "reportValidity",
791
+ "setCustomValidity"
792
+ ], K = {
793
+ ...W,
794
+ form: "readonly",
795
+ labels: "readonly",
796
+ popoverTargetElement: "writable",
797
+ commandForElement: "writable"
798
+ }, q = [...G], J = {
799
+ text: "writable",
800
+ shape: "writable",
801
+ origin: "readonly"
802
+ }, Y = ["toString"], ae = {
803
+ ...W,
804
+ checked: "writable",
805
+ indeterminate: "writable",
806
+ files: "writable",
807
+ selectionStart: "writable",
808
+ selectionEnd: "writable",
809
+ selectionDirection: "writable",
810
+ valueAsDate: "writable",
811
+ valueAsNumber: "writable",
812
+ form: "readonly",
813
+ list: "readonly",
814
+ labels: "readonly",
815
+ webkitEntries: "readonly",
816
+ popoverTargetElement: "writable"
817
+ }, oe = [
818
+ ...G,
819
+ "select",
820
+ "setRangeText",
821
+ "setSelectionRange",
822
+ "showPicker",
823
+ "stepDown",
824
+ "stepUp"
825
+ ], se = {
826
+ ...W,
827
+ value: "writable",
828
+ defaultValue: "writable",
829
+ selectionStart: "writable",
830
+ selectionEnd: "writable",
831
+ selectionDirection: "writable",
832
+ textLength: "readonly",
833
+ type: "readonly",
834
+ form: "readonly",
835
+ labels: "readonly"
836
+ }, ce = [
837
+ ...G,
838
+ "select",
839
+ "setRangeText",
840
+ "setSelectionRange"
841
+ ], le = {
842
+ ...W,
843
+ value: "writable",
844
+ selectedIndex: "writable",
845
+ length: "writable",
846
+ options: "readonly",
847
+ selectedOptions: "readonly",
848
+ type: "readonly",
849
+ form: "readonly",
850
+ labels: "readonly"
851
+ }, ue = [
852
+ ...G,
853
+ "add",
854
+ "item",
855
+ "namedItem",
856
+ "showPicker"
857
+ ], de = {
858
+ currentSrc: "readonly",
859
+ naturalWidth: "readonly",
860
+ naturalHeight: "readonly",
861
+ complete: "readonly",
862
+ x: "readonly",
863
+ y: "readonly"
864
+ }, fe = ["decode"], pe = {
865
+ ...W,
866
+ form: "readonly",
867
+ elements: "readonly",
868
+ type: "readonly"
869
+ }, me = [...G];
665
870
  //#endregion
666
871
  //#region src/breakpoints.ts
667
- function q(e, t, n, r = "", i, a = e) {
872
+ function he(e, t, n, r = "", i, a = e) {
668
873
  let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
669
874
  ${t(a, o)} {
670
875
  ${e}: var(--${r}-${o}-desktop);
@@ -707,7 +912,7 @@ function q(e, t, n, r = "", i, a = e) {
707
912
  }`, "");
708
913
  return o.replaceSync(s), o;
709
914
  }
710
- var J = class {
915
+ var ge = class {
711
916
  constructor(e, t, n, r) {
712
917
  this.component = e, this.attributeName = t, this.cssVariable = r, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = n, Object.defineProperty(this.component, this.toCamelCase(this.attributeName), {
713
918
  get: () => this.component.getAttribute(this.attributeName),
@@ -753,7 +958,7 @@ var J = class {
753
958
  set attributeValue(e) {
754
959
  this._attributeValue = e, this.setCSSProperties();
755
960
  }
756
- }, Y = /* @__PURE__ */ new Map(), X = 500;
961
+ }, X = /* @__PURE__ */ new Map(), _e = 500;
757
962
  function Z(e) {
758
963
  let t = document.createElement("template");
759
964
  return t.innerHTML = e, t;
@@ -762,12 +967,12 @@ function Q(e) {
762
967
  return Z(e);
763
968
  }
764
969
  function $(e) {
765
- let t = Y.get(e);
766
- return t || (t = Z(e), Y.size < X && Y.set(e, t)), t;
970
+ let t = X.get(e);
971
+ return t || (t = Z(e), X.size < _e && X.set(e, t)), t;
767
972
  }
768
- function ee(e, t) {
973
+ function ve(e, t) {
769
974
  let n = typeof t == "string" ? $(t) : t;
770
975
  e.replaceChildren(document.importNode(n.content, !0));
771
976
  }
772
977
  //#endregion
773
- export { J as AttributeBreakpointHandlerDelegate, d as PxElement, f as VerticallyExtendedElement, u as WithExtraAttributes, c as WrappedInteractiveStateController, U as accessibilityAttributes, z as addGlobalStylesheet, R as assetContainerImgWidthValues, j as backgroundColorValues, M as backgroundSizeValues, K as booleanPropertyToAttributeSetter, k as borderColorValues, O as borderRadiusValues, A as borderSideValues, D as borderValues, N as boxShadowValues, H as checkName, x as colorValues, Q as createTemplate, h as cssGridAlignSelfValues, _ as cssGridColSpanValues, g as cssGridJustifySelfValues, v as cssGridOrderValues, y as cssGridPlaceSelfValues, q as cssTokenBreakpoints, m as flexboxAlignSelfValues, b as fontsizeValues, S as fontweightValues, I as gapValues, n as getSupportedAttributeNames, t as getSupportedPropertyNames, $ as getTemplate, V as getViewportFormat, F as gradientValues, p as gridGapValues, P as headingValues, C as iconSizeValues, w as iconSizeValuesKC, o as isComponentDebug, B as isFalsy, s as log, L as noBorderRadiusValues, E as paddingValues, G as propertyToAttributeSetter, ee as renderTemplate, T as textalignValues, W as transferAccessibilityAttributes };
978
+ export { ge as AttributeBreakpointHandlerDelegate, M as PxElement, N as VerticallyExtendedElement, j as WithExtraAttributes, i as WrappedInteractiveStateController, z as accessibilityAttributes, F as addGlobalStylesheet, k as assetContainerImgWidthValues, S as backgroundColorValues, C as backgroundSizeValues, c as booleanPropertyToAttributeSetter, b as borderColorValues, ie as borderRadiusValues, x as borderSideValues, re as borderValues, w as boxShadowValues, R as checkName, g as colorValues, Q as createTemplate, u as cssGridAlignSelfValues, f as cssGridColSpanValues, d as cssGridJustifySelfValues, p as cssGridOrderValues, m as cssGridPlaceSelfValues, he as cssTokenBreakpoints, l as flexboxAlignSelfValues, h as fontsizeValues, _ as fontweightValues, D as gapValues, $ as getTemplate, L as getViewportFormat, E as gradientValues, ee as gridGapValues, T as headingValues, v as iconSizeValues, y as iconSizeValuesKC, n as isComponentDebug, I as isFalsy, r as log, H as nativeAnchorAttributes, Y as nativeAnchorMethods, J as nativeAnchorProperties, V as nativeButtonAttributes, q as nativeButtonMethods, K as nativeButtonProperties, me as nativeFieldsetMethods, pe as nativeFieldsetProperties, fe as nativeImageMethods, de as nativeImageProperties, U as nativeInputAttributes, oe as nativeInputMethods, ae as nativeInputProperties, ue as nativeSelectMethods, le as nativeSelectProperties, ce as nativeTextAreaMethods, se as nativeTextAreaProperties, O as noBorderRadiusValues, P as omitKeys, ne as paddingValues, s as propertyToAttributeSetter, ve as renderTemplate, te as textalignValues, B as transferAccessibilityAttributes };