@mgdis/stencil-helpers 1.1.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@ This package centralizes helper functions for your [Stencil](https://stenciljs.c
5
5
  - **Components**: Centralizes all component utilities.
6
6
  - **Locale**: Centralizes all necessary locale utilities for managing content translation.
7
7
  - **Storybook**: Centralizes all Storybook helpers useful for building your own Storybook.
8
- - **Test**: Centralizes all test utilities to simplify testing your components.
8
+ - **Tests**: Centralizes all test utilities to simplify testing your components.
9
9
 
10
10
  ## Installation
11
11
 
@@ -15,4 +15,4 @@ pnpm i @mgdis/stencil-helpers
15
15
 
16
16
  ## Documentation
17
17
 
18
- Read the full [documentation](./doc/README.md)
18
+ Read the full [documentation](./docs/README.md)
@@ -75,7 +75,13 @@ export declare const getParentWindows: (localWindow: Window, windows?: Window[])
75
75
  * @param value - value to check
76
76
  * @returns `true` if string is valid
77
77
  */
78
- export declare const isValidString: (value: unknown) => boolean;
78
+ export declare const isValidString: (value: unknown) => value is string;
79
+ /**
80
+ * Value to stringify
81
+ * @param value
82
+ * @returns stringified value
83
+ */
84
+ export declare const toString: (value: unknown) => string;
79
85
  /**
80
86
  * Cleans string characters by removing special characters and converting to lowercase.
81
87
  * @param text - text to clean
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAA+B,MAWnD,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,SAAS,GAAE,MAAM,EAAO;IAIpC;;;OAGG;IACH,GAAG,cAAe,MAAM,KAAG,IAAI,CAI7B;IAEF;;;OAGG;IACH,MAAM,cAAe,MAAM,KAAG,IAAI,CAKhC;IAEF;;;;OAIG;IACH,GAAG,cAAe,MAAM,KAAG,OAAO,CAEhC;IAEF;;;OAGG;IACH,IAAI,QAAO,MAAM,CAEf;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,MAAM,EAA2E,CAAC;AAE9I;;;;;GAKG;AACH,eAAO,MAAM,SAAS,YAAa,OAAO,YAAY,MAAM,EAAE,KAAG,OAEhE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,kHAAgH,CAAC;AAE/I;;;;GAIG;AACH,eAAO,MAAM,UAAU,gBAAiB,MAAM,KAAG,MAAM,EAItD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,YAAW,MAAM,EAAE,KAAQ,MAAM,EAgBpF,CAAC;AAkBF;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,OAA2D,CAAC;AAE3G;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAMjC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,QAAQ,aAAoB,MAAM,IAAI,KAAG,OAAO,CAAC,IAAI,CAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAA+B,MAWnD,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,SAAS,GAAE,MAAM,EAAO;IAIpC;;;OAGG;IACH,GAAG,cAAe,MAAM,KAAG,IAAI,CAI7B;IAEF;;;OAGG;IACH,MAAM,cAAe,MAAM,KAAG,IAAI,CAKhC;IAEF;;;;OAIG;IACH,GAAG,cAAe,MAAM,KAAG,OAAO,CAEhC;IAEF;;;OAGG;IACH,IAAI,QAAO,MAAM,CAEf;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,sBAA6F,CAAC;AAE9I;;;;;GAKG;AACH,eAAO,MAAM,SAAS,YAAa,OAAO,YAAY,MAAM,EAAE,KAAG,OAEhE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,kHAAgH,CAAC;AAE/I;;;;GAIG;AACH,eAAO,MAAM,UAAU,gBAAiB,MAAM,KAAG,MAAM,EAItD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,YAAW,MAAM,EAAE,KAAQ,MAAM,EAgBpF,CAAC;AAkBF;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,oBAAsE,CAAC;AAEnH;;;;GAIG;AACH,eAAO,MAAM,QAAQ,UAAW,OAAO,KAAG,MAGzC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAMjC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,QAAQ,aAAoB,MAAM,IAAI,KAAG,QAAQ,IAAI,CAAe,CAAC"}
@@ -49,23 +49,28 @@ export declare const webTypesGenerator: (name: string, version: string, jsonDocs
49
49
  description: string;
50
50
  }[];
51
51
  };
52
+ css: {
53
+ properties: {
54
+ name: string;
55
+ description: string;
56
+ }[];
57
+ };
52
58
  }[];
53
59
  };
54
60
  };
55
61
  };
56
62
  /**
57
63
  * Generate custom HTML datasets for VS Code
58
- * @param version - Library version
59
64
  * @param jsonDocs - Stencil JSON doc
60
65
  * @param storybookBaseUrl - Storybook Base Url
61
66
  * @returns custom HTML datasets
62
67
  * @example
63
68
  * ```ts
64
- * const customDataJson = vsCodeGenerator('1.0.0', jsonDocs, 'https://storybook.example.com', 'https://sources.example.com');
69
+ * const customDataJson = vsCodeGenerator(jsonDocs, 'https://storybook.example.com', 'https://sources.example.com');
65
70
  * ```
66
71
  */
67
- export declare const vsCodeGenerator: (version: string, jsonDocs: JsonDocs, storybookBaseUrl: string, sourceBaseUrl: string) => {
68
- version: string;
72
+ export declare const vsCodeGenerator: (jsonDocs: JsonDocs, storybookBaseUrl: string, sourceBaseUrl: string) => {
73
+ version: number;
69
74
  tags: {
70
75
  name: string;
71
76
  description: string;
@@ -86,4 +91,20 @@ export declare const vsCodeGenerator: (version: string, jsonDocs: JsonDocs, stor
86
91
  globalAttributes: never[];
87
92
  valueSets: never[];
88
93
  };
94
+ /**
95
+ * Generate custom CSS datasets for VS Code
96
+ * @param jsonDocs - Stencil JSON doc
97
+ * @returns custom CSS datasets
98
+ * @example
99
+ * ```ts
100
+ * const customDataJson = vsCodeCssGenerator(jsonDocs);
101
+ * ```
102
+ */
103
+ export declare const vsCodeCssGenerator: (jsonDocs: JsonDocs) => {
104
+ version: number;
105
+ properties: {
106
+ name: string;
107
+ description: string;
108
+ }[];
109
+ };
89
110
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ide/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AA2EnF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAAW,MAAM,YAAY,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C3G,CAAC;AA4BH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAa,MAAM,YAAY,QAAQ,oBAAoB,MAAM,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;CAkBlH,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ide/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AA2EnF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAAW,MAAM,YAAY,QAAQ,oBAAoB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD3G,CAAC;AA4BH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,aAAc,QAAQ,oBAAoB,MAAM,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;CAkBjG,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,aAAc,QAAQ;;;;;;CAQnD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from './components';
2
2
  export * from './ide';
3
3
  export * from './locale';
4
4
  export * from './storybook';
5
- export * from './test';
5
+ export * from './tests';
6
+ export * from './types';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
package/dist/index.es.js CHANGED
@@ -46,7 +46,7 @@ class Ie {
46
46
  this.classes = t;
47
47
  }
48
48
  }
49
- const Ge = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Xe = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Ke = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Qe = (e) => {
49
+ const Ge = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Xe = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Je = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Ke = (e) => {
50
50
  const t = te(e), s = se(e);
51
51
  return [e, ...t, ...s];
52
52
  }, te = (e, t = []) => {
@@ -63,7 +63,7 @@ const Ge = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Xe =
63
63
  for (const s of Array.from(e.frames))
64
64
  t.push(s), se(s, t);
65
65
  return t;
66
- }, Ze = (e) => typeof e == "string" && e.trim() !== "", Je = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Ye = async (e) => e();
66
+ }, Qe = (e) => typeof e == "string" && e.trim() !== "", Ze = (e) => typeof e == "object" ? JSON.stringify(e) : `${e}`, Ye = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Ve = async (e) => e();
67
67
  var E = {
68
68
  allRenderFn: !1,
69
69
  cmpDidLoad: !0,
@@ -156,7 +156,7 @@ var E = {
156
156
  }, me = Object.defineProperty, be = (e, t) => {
157
157
  for (var s in t)
158
158
  me(e, s, { get: t[s], enumerable: !0 });
159
- }, K = (e, t) => t in e, Q = "http://www.w3.org/1999/xlink", q = typeof window < "u" ? window : {}, _ = q.document || { head: {} };
159
+ }, J = (e, t) => t in e, K = "http://www.w3.org/1999/xlink", q = typeof window < "u" ? window : {}, _ = q.document || { head: {} };
160
160
  q.HTMLElement;
161
161
  var L = {
162
162
  $flags$: 0,
@@ -166,7 +166,7 @@ var L = {
166
166
  ael: (e, t, s, r) => e.addEventListener(t, s, r),
167
167
  rel: (e, t, s, r) => e.removeEventListener(t, s, r),
168
168
  ce: (e, t) => new CustomEvent(e, t)
169
- }, Z = {}, Se = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml", ke = (e) => e != null, re = (e) => (e = typeof e, e === "object" || e === "function"), xe = {};
169
+ }, Q = {}, Se = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml", ke = (e) => e != null, re = (e) => (e = typeof e, e === "object" || e === "function"), xe = {};
170
170
  be(xe, {
171
171
  err: () => oe,
172
172
  map: () => Ae,
@@ -220,9 +220,9 @@ var Ee = (e) => {
220
220
  $children$: null
221
221
  };
222
222
  return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
223
- }, Re = {}, Oe = (e) => e && e.$tag$ === Re, J = (e, t, s, r, o, n) => {
223
+ }, Re = {}, Oe = (e) => e && e.$tag$ === Re, Z = (e, t, s, r, o, n) => {
224
224
  if (s !== r) {
225
- let l = K(e, t), a = t.toLowerCase();
225
+ let l = J(e, t), a = t.toLowerCase();
226
226
  if (t === "class") {
227
227
  const c = e.classList, d = Y(s), f = Y(r);
228
228
  c.remove(...d.filter((i) => i && !f.includes(i))), c.add(...f.filter((i) => i && !d.includes(i)));
@@ -234,7 +234,7 @@ var Ee = (e) => {
234
234
  } else if (t !== "key") if (t === "ref")
235
235
  r && r(e);
236
236
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
237
- if (t[2] === "-" ? t = t.slice(3) : K(q, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || r) {
237
+ if (t[2] === "-" ? t = t.slice(3) : J(q, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || r) {
238
238
  const c = t.endsWith(ne);
239
239
  t = t.replace(_e, ""), s && L.rel(e, t, s, c), r && L.ael(e, t, r, c);
240
240
  }
@@ -251,15 +251,15 @@ var Ee = (e) => {
251
251
  } catch {
252
252
  }
253
253
  let d = !1;
254
- a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (d ? e.removeAttributeNS(Q, t) : e.removeAttribute(t)) : (!l || n & 4 || o) && !c && (r = r === !0 ? "" : r, d ? e.setAttributeNS(Q, t, r) : e.setAttribute(t, r));
254
+ a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (d ? e.removeAttributeNS(K, t) : e.removeAttribute(t)) : (!l || n & 4 || o) && !c && (r = r === !0 ? "" : r, d ? e.setAttributeNS(K, t, r) : e.setAttribute(t, r));
255
255
  }
256
256
  }
257
257
  }, Me = /\s/, Y = (e) => e ? e.split(Me) : [], ne = "Capture", _e = new RegExp(ne + "$"), le = (e, t, s) => {
258
- const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || Z, n = t.$attrs$ || Z;
258
+ const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || Q, n = t.$attrs$ || Q;
259
259
  for (const l of V(Object.keys(o)))
260
- l in n || J(r, l, o[l], void 0, s, t.$flags$);
260
+ l in n || Z(r, l, o[l], void 0, s, t.$flags$);
261
261
  for (const l of V(Object.keys(n)))
262
- J(r, l, o[l], n[l], s, t.$flags$);
262
+ Z(r, l, o[l], n[l], s, t.$flags$);
263
263
  };
264
264
  function V(e) {
265
265
  return e.includes("ref") ? (
@@ -498,7 +498,7 @@ const Ce = (e, t, s) => {
498
498
  }), s != null && s.innerHTML && (n.innerHTML = s.innerHTML), e.appendChild(n);
499
499
  }
500
500
  o && (e.innerHTML = o);
501
- }, Ve = (e, t) => {
501
+ }, et = (e, t) => {
502
502
  const s = {};
503
503
  if (typeof e != "object")
504
504
  throw new Error("filterArgs - args isn't an object.");
@@ -508,7 +508,7 @@ const Ce = (e, t, s) => {
508
508
  (!t || !Object.keys(t).includes(r) || t[r] !== o) && (s[n] = o);
509
509
  }
510
510
  return s;
511
- }, et = (e, t) => {
511
+ }, tt = (e, t) => {
512
512
  var r, o;
513
513
  const s = document.getElementById("storybook-root");
514
514
  if (s !== null)
@@ -525,7 +525,7 @@ const Ce = (e, t, s) => {
525
525
  },
526
526
  e(t)
527
527
  ), s.children[s.children.length - 1];
528
- }, tt = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {
528
+ }, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {
529
529
  const o = document.createElement("div");
530
530
  return pe(o, e, t, s, r), o.innerHTML;
531
531
  }, D = (e, t) => {
@@ -535,7 +535,7 @@ const Ce = (e, t, s) => {
535
535
  return `${e}${s.slice(2, s.length - 1).join("-")}--docs`;
536
536
  };
537
537
  var S, w;
538
- class st {
538
+ class rt {
539
539
  constructor(t) {
540
540
  /**
541
541
  * JsonDocs
@@ -714,7 +714,7 @@ const De = (e, t) => {
714
714
  `), t;
715
715
  }, B = (e) => `${e.docs}
716
716
 
717
- Type: \`${e.type}\``, rt = (e, t, s, r) => ({
717
+ Type: \`${e.type}\``, ot = (e, t, s, r) => ({
718
718
  $schema: "https://json.schemastore.org/web-types",
719
719
  name: e,
720
720
  version: t,
@@ -752,6 +752,12 @@ Type: \`${e.type}\``, rt = (e, t, s, r) => ({
752
752
  name: l.event,
753
753
  description: l.docs
754
754
  }))
755
+ },
756
+ css: {
757
+ properties: o.styles.map((l) => ({
758
+ name: l.name,
759
+ description: l.docs
760
+ }))
755
761
  }
756
762
  };
757
763
  })
@@ -763,34 +769,42 @@ Type: \`${e.type}\``, rt = (e, t, s, r) => ({
763
769
  ], Pe = (e) => {
764
770
  if (!e.values.some(({ value: t }) => t === void 0))
765
771
  return e.values.map(({ value: t }) => ({ name: t }));
766
- }, ot = (e, t, s, r) => ({
767
- version: e,
768
- tags: t.components.map((o) => {
769
- const n = we(s, r, o.filePath);
772
+ }, nt = (e, t, s) => ({
773
+ version: 1.1,
774
+ tags: e.components.map((r) => {
775
+ const o = we(t, s, r.filePath);
770
776
  return {
771
- name: o.tag,
772
- description: ge(o),
773
- attributes: o.props.map((l) => ({
774
- name: l.attr || l.name,
775
- description: B(l),
776
- values: Pe(l),
777
- references: n
777
+ name: r.tag,
778
+ description: ge(r),
779
+ attributes: r.props.map((n) => ({
780
+ name: n.attr || n.name,
781
+ description: B(n),
782
+ values: Pe(n),
783
+ references: o
778
784
  })),
779
- references: n
785
+ references: o
780
786
  };
781
787
  }),
782
788
  globalAttributes: [],
783
789
  valueSets: []
784
- }), nt = (e) => {
790
+ }), lt = (e) => ({
791
+ version: 1.1,
792
+ properties: e.components.flatMap(
793
+ (t) => t.styles.map((s) => ({
794
+ name: s.name,
795
+ description: s.docs
796
+ }))
797
+ )
798
+ }), it = (e) => {
785
799
  const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
786
800
  return He([t.value, s.value, r.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
787
- }, lt = (e) => e.toISOString().split("T")[0], Ue = (e, t, s) => {
801
+ }, at = (e) => e.toISOString().split("T")[0], Ue = (e, t, s) => {
788
802
  const r = e.closest("[lang]"), o = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), n = o.length > 0 && typeof o[0] == "string" ? o[0] : navigator.language || s, l = n.split("-").shift();
789
803
  return {
790
804
  locale: n,
791
805
  messages: t[l] || t[s]
792
806
  };
793
- }, it = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), at = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), We = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, He = (e, t, s) => typeof e != "string" || e === "" || !We.test(e) ? "" : new Intl.DateTimeFormat(t, s).format(new Date(e)), ct = (e, t) => (s) => Ue(s, e, t), ft = ({ disconnect: e, observe: t, takeRecords: s }) => {
807
+ }, ct = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), ft = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), We = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, He = (e, t, s) => typeof e != "string" || e === "" || !We.test(e) ? "" : new Intl.DateTimeFormat(t, s).format(new Date(e)), ut = (e, t) => (s) => Ue(s, e, t), $t = ({ disconnect: e, observe: t, takeRecords: s }) => {
794
808
  class r {
795
809
  constructor(n) {
796
810
  /**
@@ -819,7 +833,7 @@ Type: \`${e.type}\``, rt = (e, t, s, r) => ({
819
833
  value: r
820
834
  });
821
835
  }), r;
822
- }, ut = ({ disconnect: e, observe: t }) => {
836
+ }, dt = ({ disconnect: e, observe: t }) => {
823
837
  class s {
824
838
  constructor(o) {
825
839
  /**
@@ -859,7 +873,7 @@ class Be extends Event {
859
873
  g(this, "detail");
860
874
  }
861
875
  }
862
- const $t = () => {
876
+ const pt = () => {
863
877
  class e extends Be {
864
878
  }
865
879
  return [window, global].forEach((t) => {
@@ -872,31 +886,33 @@ const $t = () => {
872
886
  };
873
887
  export {
874
888
  Ie as ClassList,
875
- st as StorybookPreview,
889
+ rt as StorybookPreview,
876
890
  Ge as allItemsAreString,
877
- Je as cleanString,
891
+ Ye as cleanString,
878
892
  ze as createID,
879
893
  We as dateRegExp,
880
- lt as dateToString,
881
- ct as defineLocales,
882
- Ve as filterArgs,
883
- Ke as focusableElements,
884
- nt as getLocaleDatePattern,
894
+ at as dateToString,
895
+ ut as defineLocales,
896
+ et as filterArgs,
897
+ Je as focusableElements,
898
+ it as getLocaleDatePattern,
885
899
  te as getParentWindows,
886
- tt as getStoryHTML,
900
+ st as getStoryHTML,
887
901
  D as getStorybookUrl,
888
- Qe as getWindows,
902
+ Ke as getWindows,
889
903
  Xe as isTagName,
890
- Ze as isValidString,
891
- it as localeCurrency,
904
+ Qe as isValidString,
905
+ ct as localeCurrency,
892
906
  He as localeDate,
893
- at as localeNumber,
894
- Ye as nextTick,
895
- ft as setupMutationObserverMock,
896
- ut as setupResizeObserverMock,
897
- $t as setupSubmitEventMock,
898
- et as stencilWrapper,
899
- ot as vsCodeGenerator,
900
- rt as webTypesGenerator
907
+ ft as localeNumber,
908
+ Ve as nextTick,
909
+ $t as setupMutationObserverMock,
910
+ dt as setupResizeObserverMock,
911
+ pt as setupSubmitEventMock,
912
+ tt as stencilWrapper,
913
+ Ze as toString,
914
+ lt as vsCodeCssGenerator,
915
+ nt as vsCodeGenerator,
916
+ ot as webTypesGenerator
901
917
  };
902
918
  //# sourceMappingURL=index.es.js.map