@edwardguerra/design-system 1.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.
Files changed (131) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/dist/css/main.css +132 -0
  4. package/dist/css/tokens.css +318 -0
  5. package/dist/index.cjs +31 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.mjs +1188 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/dist/style.css +1 -0
  10. package/dist/tokens/_variables.scss +296 -0
  11. package/dist/tokens/tokens.d.ts +338 -0
  12. package/dist/tokens/tokens.js +297 -0
  13. package/dist/tokens/tokens.json +294 -0
  14. package/dist/tokens/variables.css +318 -0
  15. package/dist/types/components/Accordion/Accordion.d.ts +30 -0
  16. package/dist/types/components/Accordion/Accordion.stories.d.ts +15 -0
  17. package/dist/types/components/Accordion/Accordion.test.d.ts +1 -0
  18. package/dist/types/components/Accordion/index.d.ts +2 -0
  19. package/dist/types/components/Article/Article.d.ts +21 -0
  20. package/dist/types/components/Article/Article.stories.d.ts +13 -0
  21. package/dist/types/components/Article/Article.test.d.ts +1 -0
  22. package/dist/types/components/Article/index.d.ts +2 -0
  23. package/dist/types/components/Badge/Badge.d.ts +20 -0
  24. package/dist/types/components/Badge/Badge.stories.d.ts +20 -0
  25. package/dist/types/components/Badge/Badge.test.d.ts +1 -0
  26. package/dist/types/components/Badge/index.d.ts +2 -0
  27. package/dist/types/components/Button/Button.d.ts +49 -0
  28. package/dist/types/components/Button/Button.stories.d.ts +43 -0
  29. package/dist/types/components/Button/Button.test.d.ts +1 -0
  30. package/dist/types/components/Button/index.d.ts +2 -0
  31. package/dist/types/components/Card/Card.d.ts +43 -0
  32. package/dist/types/components/Card/Card.stories.d.ts +31 -0
  33. package/dist/types/components/Card/Card.test.d.ts +1 -0
  34. package/dist/types/components/Card/index.d.ts +2 -0
  35. package/dist/types/components/Carousel/Carousel.d.ts +27 -0
  36. package/dist/types/components/Carousel/Carousel.stories.d.ts +12 -0
  37. package/dist/types/components/Carousel/Carousel.test.d.ts +1 -0
  38. package/dist/types/components/Carousel/index.d.ts +2 -0
  39. package/dist/types/components/DescriptionList/DescriptionList.d.ts +31 -0
  40. package/dist/types/components/DescriptionList/DescriptionList.stories.d.ts +12 -0
  41. package/dist/types/components/DescriptionList/DescriptionList.test.d.ts +1 -0
  42. package/dist/types/components/DescriptionList/index.d.ts +2 -0
  43. package/dist/types/components/Feature/Feature.d.ts +25 -0
  44. package/dist/types/components/Feature/Feature.stories.d.ts +19 -0
  45. package/dist/types/components/Feature/Feature.test.d.ts +1 -0
  46. package/dist/types/components/Feature/index.d.ts +2 -0
  47. package/dist/types/components/Icon/Icon.d.ts +24 -0
  48. package/dist/types/components/Icon/Icon.stories.d.ts +21 -0
  49. package/dist/types/components/Icon/Icon.test.d.ts +1 -0
  50. package/dist/types/components/Icon/index.d.ts +2 -0
  51. package/dist/types/components/Input/Input.d.ts +40 -0
  52. package/dist/types/components/Input/Input.stories.d.ts +30 -0
  53. package/dist/types/components/Input/Input.test.d.ts +1 -0
  54. package/dist/types/components/Input/index.d.ts +2 -0
  55. package/dist/types/components/Link/Link.d.ts +45 -0
  56. package/dist/types/components/Link/Link.stories.d.ts +19 -0
  57. package/dist/types/components/Link/Link.test.d.ts +1 -0
  58. package/dist/types/components/Link/index.d.ts +2 -0
  59. package/dist/types/components/List/List.d.ts +35 -0
  60. package/dist/types/components/List/List.stories.d.ts +14 -0
  61. package/dist/types/components/List/List.test.d.ts +1 -0
  62. package/dist/types/components/List/index.d.ts +2 -0
  63. package/dist/types/components/Menu/Menu.d.ts +44 -0
  64. package/dist/types/components/Menu/Menu.stories.d.ts +19 -0
  65. package/dist/types/components/Menu/Menu.test.d.ts +1 -0
  66. package/dist/types/components/Menu/index.d.ts +2 -0
  67. package/dist/types/components/Modal/Modal.d.ts +44 -0
  68. package/dist/types/components/Modal/Modal.stories.d.ts +26 -0
  69. package/dist/types/components/Modal/Modal.test.d.ts +1 -0
  70. package/dist/types/components/Modal/index.d.ts +2 -0
  71. package/dist/types/components/Nav/Nav.d.ts +43 -0
  72. package/dist/types/components/Nav/Nav.stories.d.ts +19 -0
  73. package/dist/types/components/Nav/Nav.test.d.ts +1 -0
  74. package/dist/types/components/Nav/index.d.ts +2 -0
  75. package/dist/types/components/Pagination/Pagination.d.ts +36 -0
  76. package/dist/types/components/Pagination/Pagination.stories.d.ts +15 -0
  77. package/dist/types/components/Pagination/Pagination.test.d.ts +1 -0
  78. package/dist/types/components/Pagination/index.d.ts +2 -0
  79. package/dist/types/components/Radio/Radio.d.ts +30 -0
  80. package/dist/types/components/Radio/Radio.stories.d.ts +15 -0
  81. package/dist/types/components/Radio/Radio.test.d.ts +1 -0
  82. package/dist/types/components/Radio/index.d.ts +2 -0
  83. package/dist/types/components/Slider/Slider.d.ts +44 -0
  84. package/dist/types/components/Slider/Slider.stories.d.ts +14 -0
  85. package/dist/types/components/Slider/Slider.test.d.ts +1 -0
  86. package/dist/types/components/Slider/index.d.ts +2 -0
  87. package/dist/types/components/Switch/Switch.d.ts +29 -0
  88. package/dist/types/components/Switch/Switch.stories.d.ts +16 -0
  89. package/dist/types/components/Switch/Switch.test.d.ts +1 -0
  90. package/dist/types/components/Switch/index.d.ts +2 -0
  91. package/dist/types/components/TOC/TOC.d.ts +37 -0
  92. package/dist/types/components/TOC/TOC.stories.d.ts +17 -0
  93. package/dist/types/components/TOC/TOC.test.d.ts +1 -0
  94. package/dist/types/components/TOC/index.d.ts +2 -0
  95. package/dist/types/components/Table/Table.d.ts +34 -0
  96. package/dist/types/components/Table/Table.stories.d.ts +13 -0
  97. package/dist/types/components/Table/Table.test.d.ts +1 -0
  98. package/dist/types/components/Table/index.d.ts +2 -0
  99. package/dist/types/components/Tabs/Tabs.d.ts +26 -0
  100. package/dist/types/components/Tabs/Tabs.stories.d.ts +14 -0
  101. package/dist/types/components/Tabs/Tabs.test.d.ts +1 -0
  102. package/dist/types/components/Tabs/index.d.ts +2 -0
  103. package/dist/types/components/ThemeProvider/ThemeContext.d.ts +8 -0
  104. package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +9 -0
  105. package/dist/types/components/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
  106. package/dist/types/components/ThemeProvider/ThemeProvider.test.d.ts +1 -0
  107. package/dist/types/components/ThemeProvider/ThemeSwitcher.d.ts +13 -0
  108. package/dist/types/components/ThemeProvider/index.d.ts +6 -0
  109. package/dist/types/components/Timeline/Timeline.d.ts +31 -0
  110. package/dist/types/components/Timeline/Timeline.stories.d.ts +12 -0
  111. package/dist/types/components/Timeline/Timeline.test.d.ts +1 -0
  112. package/dist/types/components/Timeline/index.d.ts +2 -0
  113. package/dist/types/components/Tooltip/Tooltip.d.ts +25 -0
  114. package/dist/types/components/Tooltip/Tooltip.stories.d.ts +26 -0
  115. package/dist/types/components/Tooltip/Tooltip.test.d.ts +1 -0
  116. package/dist/types/components/Tooltip/index.d.ts +2 -0
  117. package/dist/types/components/index.d.ts +25 -0
  118. package/dist/types/index.d.ts +1 -0
  119. package/dist/types/test/setup.d.ts +1 -0
  120. package/package.json +85 -0
  121. package/tokens/brands/edward-guerra.json +9 -0
  122. package/tokens/brands/materialandhome.json +9 -0
  123. package/tokens/brands/midwest-husbands.json +9 -0
  124. package/tokens/config.json +45 -0
  125. package/tokens/core/breakpoints.json +9 -0
  126. package/tokens/core/colors.json +217 -0
  127. package/tokens/core/effects.json +37 -0
  128. package/tokens/core/spacing.json +24 -0
  129. package/tokens/core/typography.json +45 -0
  130. package/tokens/semantic/button.json +37 -0
  131. package/tokens/semantic/theme.json +26 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,1188 @@
1
+ import re, { useRef as vr, useEffect as Se, useState as te, createContext as hr, useContext as pr } from "react";
2
+ var ee = { exports: {} }, A = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Ce;
13
+ function _r() {
14
+ if (Ce) return A;
15
+ Ce = 1;
16
+ var a = re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function v(j, c, _) {
18
+ var b, x = {}, N = null, k = null;
19
+ _ !== void 0 && (N = "" + _), c.key !== void 0 && (N = "" + c.key), c.ref !== void 0 && (k = c.ref);
20
+ for (b in c) i.call(c, b) && !o.hasOwnProperty(b) && (x[b] = c[b]);
21
+ if (j && j.defaultProps) for (b in c = j.defaultProps, c) x[b] === void 0 && (x[b] = c[b]);
22
+ return { $$typeof: t, type: j, key: N, ref: k, props: x, _owner: u.current };
23
+ }
24
+ return A.Fragment = n, A.jsx = v, A.jsxs = v, A;
25
+ }
26
+ var L = {};
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var ke;
37
+ function br() {
38
+ return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var a = re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), j = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), M = Symbol.iterator, q = "@@iterator";
40
+ function Pe(e) {
41
+ if (e === null || typeof e != "object")
42
+ return null;
43
+ var s = M && e[M] || e[q];
44
+ return typeof s == "function" ? s : null;
45
+ }
46
+ var P = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function E(e) {
48
+ {
49
+ for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), d = 1; d < s; d++)
50
+ l[d - 1] = arguments[d];
51
+ $e("error", e, l);
52
+ }
53
+ }
54
+ function $e(e, s, l) {
55
+ {
56
+ var d = P.ReactDebugCurrentFrame, h = d.getStackAddendum();
57
+ h !== "" && (s += "%s", l = l.concat([h]));
58
+ var p = l.map(function(m) {
59
+ return String(m);
60
+ });
61
+ p.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, p);
62
+ }
63
+ }
64
+ var Ie = !1, Fe = !1, De = !1, Be = !1, Ae = !1, ae;
65
+ ae = Symbol.for("react.module.reference");
66
+ function Le(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === o || Ae || e === u || e === _ || e === b || Be || e === k || Ie || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === x || e.$$typeof === v || e.$$typeof === j || e.$$typeof === c || // This needs to include all possible module reference object
68
+ // types supported by any Flight configuration anywhere since
69
+ // we don't know which Flight build this will end up being used
70
+ // with.
71
+ e.$$typeof === ae || e.getModuleId !== void 0));
72
+ }
73
+ function Me(e, s, l) {
74
+ var d = e.displayName;
75
+ if (d)
76
+ return d;
77
+ var h = s.displayName || s.name || "";
78
+ return h !== "" ? l + "(" + h + ")" : l;
79
+ }
80
+ function se(e) {
81
+ return e.displayName || "Context";
82
+ }
83
+ function C(e) {
84
+ if (e == null)
85
+ return null;
86
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
+ return e.displayName || e.name || null;
88
+ if (typeof e == "string")
89
+ return e;
90
+ switch (e) {
91
+ case i:
92
+ return "Fragment";
93
+ case n:
94
+ return "Portal";
95
+ case o:
96
+ return "Profiler";
97
+ case u:
98
+ return "StrictMode";
99
+ case _:
100
+ return "Suspense";
101
+ case b:
102
+ return "SuspenseList";
103
+ }
104
+ if (typeof e == "object")
105
+ switch (e.$$typeof) {
106
+ case j:
107
+ var s = e;
108
+ return se(s) + ".Consumer";
109
+ case v:
110
+ var l = e;
111
+ return se(l._context) + ".Provider";
112
+ case c:
113
+ return Me(e, e.render, "ForwardRef");
114
+ case x:
115
+ var d = e.displayName || null;
116
+ return d !== null ? d : C(e.type) || "Memo";
117
+ case N: {
118
+ var h = e, p = h._payload, m = h._init;
119
+ try {
120
+ return C(m(p));
121
+ } catch {
122
+ return null;
123
+ }
124
+ }
125
+ }
126
+ return null;
127
+ }
128
+ var S = Object.assign, D = 0, ne, ie, le, oe, ce, ue, de;
129
+ function fe() {
130
+ }
131
+ fe.__reactDisabledLog = !0;
132
+ function We() {
133
+ {
134
+ if (D === 0) {
135
+ ne = console.log, ie = console.info, le = console.warn, oe = console.error, ce = console.group, ue = console.groupCollapsed, de = console.groupEnd;
136
+ var e = {
137
+ configurable: !0,
138
+ enumerable: !0,
139
+ value: fe,
140
+ writable: !0
141
+ };
142
+ Object.defineProperties(console, {
143
+ info: e,
144
+ log: e,
145
+ warn: e,
146
+ error: e,
147
+ group: e,
148
+ groupCollapsed: e,
149
+ groupEnd: e
150
+ });
151
+ }
152
+ D++;
153
+ }
154
+ }
155
+ function Ye() {
156
+ {
157
+ if (D--, D === 0) {
158
+ var e = {
159
+ configurable: !0,
160
+ enumerable: !0,
161
+ writable: !0
162
+ };
163
+ Object.defineProperties(console, {
164
+ log: S({}, e, {
165
+ value: ne
166
+ }),
167
+ info: S({}, e, {
168
+ value: ie
169
+ }),
170
+ warn: S({}, e, {
171
+ value: le
172
+ }),
173
+ error: S({}, e, {
174
+ value: oe
175
+ }),
176
+ group: S({}, e, {
177
+ value: ce
178
+ }),
179
+ groupCollapsed: S({}, e, {
180
+ value: ue
181
+ }),
182
+ groupEnd: S({}, e, {
183
+ value: de
184
+ })
185
+ });
186
+ }
187
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ }
189
+ }
190
+ var J = P.ReactCurrentDispatcher, G;
191
+ function W(e, s, l) {
192
+ {
193
+ if (G === void 0)
194
+ try {
195
+ throw Error();
196
+ } catch (h) {
197
+ var d = h.stack.trim().match(/\n( *(at )?)/);
198
+ G = d && d[1] || "";
199
+ }
200
+ return `
201
+ ` + G + e;
202
+ }
203
+ }
204
+ var K = !1, Y;
205
+ {
206
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
207
+ Y = new Ve();
208
+ }
209
+ function me(e, s) {
210
+ if (!e || K)
211
+ return "";
212
+ {
213
+ var l = Y.get(e);
214
+ if (l !== void 0)
215
+ return l;
216
+ }
217
+ var d;
218
+ K = !0;
219
+ var h = Error.prepareStackTrace;
220
+ Error.prepareStackTrace = void 0;
221
+ var p;
222
+ p = J.current, J.current = null, We();
223
+ try {
224
+ if (s) {
225
+ var m = function() {
226
+ throw Error();
227
+ };
228
+ if (Object.defineProperty(m.prototype, "props", {
229
+ set: function() {
230
+ throw Error();
231
+ }
232
+ }), typeof Reflect == "object" && Reflect.construct) {
233
+ try {
234
+ Reflect.construct(m, []);
235
+ } catch (w) {
236
+ d = w;
237
+ }
238
+ Reflect.construct(e, [], m);
239
+ } else {
240
+ try {
241
+ m.call();
242
+ } catch (w) {
243
+ d = w;
244
+ }
245
+ e.call(m.prototype);
246
+ }
247
+ } else {
248
+ try {
249
+ throw Error();
250
+ } catch (w) {
251
+ d = w;
252
+ }
253
+ e();
254
+ }
255
+ } catch (w) {
256
+ if (w && d && typeof w.stack == "string") {
257
+ for (var f = w.stack.split(`
258
+ `), R = d.stack.split(`
259
+ `), g = f.length - 1, y = R.length - 1; g >= 1 && y >= 0 && f[g] !== R[y]; )
260
+ y--;
261
+ for (; g >= 1 && y >= 0; g--, y--)
262
+ if (f[g] !== R[y]) {
263
+ if (g !== 1 || y !== 1)
264
+ do
265
+ if (g--, y--, y < 0 || f[g] !== R[y]) {
266
+ var T = `
267
+ ` + f[g].replace(" at new ", " at ");
268
+ return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, T), T;
269
+ }
270
+ while (g >= 1 && y >= 0);
271
+ break;
272
+ }
273
+ }
274
+ } finally {
275
+ K = !1, J.current = p, Ye(), Error.prepareStackTrace = h;
276
+ }
277
+ var I = e ? e.displayName || e.name : "", O = I ? W(I) : "";
278
+ return typeof e == "function" && Y.set(e, O), O;
279
+ }
280
+ function Ue(e, s, l) {
281
+ return me(e, !1);
282
+ }
283
+ function qe(e) {
284
+ var s = e.prototype;
285
+ return !!(s && s.isReactComponent);
286
+ }
287
+ function V(e, s, l) {
288
+ if (e == null)
289
+ return "";
290
+ if (typeof e == "function")
291
+ return me(e, qe(e));
292
+ if (typeof e == "string")
293
+ return W(e);
294
+ switch (e) {
295
+ case _:
296
+ return W("Suspense");
297
+ case b:
298
+ return W("SuspenseList");
299
+ }
300
+ if (typeof e == "object")
301
+ switch (e.$$typeof) {
302
+ case c:
303
+ return Ue(e.render);
304
+ case x:
305
+ return V(e.type, s, l);
306
+ case N: {
307
+ var d = e, h = d._payload, p = d._init;
308
+ try {
309
+ return V(p(h), s, l);
310
+ } catch {
311
+ }
312
+ }
313
+ }
314
+ return "";
315
+ }
316
+ var B = Object.prototype.hasOwnProperty, ve = {}, he = P.ReactDebugCurrentFrame;
317
+ function U(e) {
318
+ if (e) {
319
+ var s = e._owner, l = V(e.type, e._source, s ? s.type : null);
320
+ he.setExtraStackFrame(l);
321
+ } else
322
+ he.setExtraStackFrame(null);
323
+ }
324
+ function Je(e, s, l, d, h) {
325
+ {
326
+ var p = Function.call.bind(B);
327
+ for (var m in e)
328
+ if (p(e, m)) {
329
+ var f = void 0;
330
+ try {
331
+ if (typeof e[m] != "function") {
332
+ var R = Error((d || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw R.name = "Invariant Violation", R;
334
+ }
335
+ f = e[m](s, m, d, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (g) {
337
+ f = g;
338
+ }
339
+ f && !(f instanceof Error) && (U(h), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", d || "React class", l, m, typeof f), U(null)), f instanceof Error && !(f.message in ve) && (ve[f.message] = !0, U(h), E("Failed %s type: %s", l, f.message), U(null));
340
+ }
341
+ }
342
+ }
343
+ var Ge = Array.isArray;
344
+ function H(e) {
345
+ return Ge(e);
346
+ }
347
+ function Ke(e) {
348
+ {
349
+ var s = typeof Symbol == "function" && Symbol.toStringTag, l = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return l;
351
+ }
352
+ }
353
+ function He(e) {
354
+ try {
355
+ return pe(e), !1;
356
+ } catch {
357
+ return !0;
358
+ }
359
+ }
360
+ function pe(e) {
361
+ return "" + e;
362
+ }
363
+ function _e(e) {
364
+ if (He(e))
365
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), pe(e);
366
+ }
367
+ var be = P.ReactCurrentOwner, ze = {
368
+ key: !0,
369
+ ref: !0,
370
+ __self: !0,
371
+ __source: !0
372
+ }, je, xe;
373
+ function Xe(e) {
374
+ if (B.call(e, "ref")) {
375
+ var s = Object.getOwnPropertyDescriptor(e, "ref").get;
376
+ if (s && s.isReactWarning)
377
+ return !1;
378
+ }
379
+ return e.ref !== void 0;
380
+ }
381
+ function Ze(e) {
382
+ if (B.call(e, "key")) {
383
+ var s = Object.getOwnPropertyDescriptor(e, "key").get;
384
+ if (s && s.isReactWarning)
385
+ return !1;
386
+ }
387
+ return e.key !== void 0;
388
+ }
389
+ function Qe(e, s) {
390
+ typeof e.ref == "string" && be.current;
391
+ }
392
+ function er(e, s) {
393
+ {
394
+ var l = function() {
395
+ je || (je = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
396
+ };
397
+ l.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: l,
399
+ configurable: !0
400
+ });
401
+ }
402
+ }
403
+ function rr(e, s) {
404
+ {
405
+ var l = function() {
406
+ xe || (xe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
407
+ };
408
+ l.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: l,
410
+ configurable: !0
411
+ });
412
+ }
413
+ }
414
+ var tr = function(e, s, l, d, h, p, m) {
415
+ var f = {
416
+ // This tag allows us to uniquely identify this as a React Element
417
+ $$typeof: t,
418
+ // Built-in properties that belong on the element
419
+ type: e,
420
+ key: s,
421
+ ref: l,
422
+ props: m,
423
+ // Record the component responsible for creating this element.
424
+ _owner: p
425
+ };
426
+ return f._store = {}, Object.defineProperty(f._store, "validated", {
427
+ configurable: !1,
428
+ enumerable: !1,
429
+ writable: !0,
430
+ value: !1
431
+ }), Object.defineProperty(f, "_self", {
432
+ configurable: !1,
433
+ enumerable: !1,
434
+ writable: !1,
435
+ value: d
436
+ }), Object.defineProperty(f, "_source", {
437
+ configurable: !1,
438
+ enumerable: !1,
439
+ writable: !1,
440
+ value: h
441
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
442
+ };
443
+ function ar(e, s, l, d, h) {
444
+ {
445
+ var p, m = {}, f = null, R = null;
446
+ l !== void 0 && (_e(l), f = "" + l), Ze(s) && (_e(s.key), f = "" + s.key), Xe(s) && (R = s.ref, Qe(s, h));
447
+ for (p in s)
448
+ B.call(s, p) && !ze.hasOwnProperty(p) && (m[p] = s[p]);
449
+ if (e && e.defaultProps) {
450
+ var g = e.defaultProps;
451
+ for (p in g)
452
+ m[p] === void 0 && (m[p] = g[p]);
453
+ }
454
+ if (f || R) {
455
+ var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ f && er(m, y), R && rr(m, y);
457
+ }
458
+ return tr(e, f, R, h, d, be.current, m);
459
+ }
460
+ }
461
+ var z = P.ReactCurrentOwner, ge = P.ReactDebugCurrentFrame;
462
+ function $(e) {
463
+ if (e) {
464
+ var s = e._owner, l = V(e.type, e._source, s ? s.type : null);
465
+ ge.setExtraStackFrame(l);
466
+ } else
467
+ ge.setExtraStackFrame(null);
468
+ }
469
+ var X;
470
+ X = !1;
471
+ function Z(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === t;
473
+ }
474
+ function ye() {
475
+ {
476
+ if (z.current) {
477
+ var e = C(z.current.type);
478
+ if (e)
479
+ return `
480
+
481
+ Check the render method of \`` + e + "`.";
482
+ }
483
+ return "";
484
+ }
485
+ }
486
+ function sr(e) {
487
+ return "";
488
+ }
489
+ var Ne = {};
490
+ function nr(e) {
491
+ {
492
+ var s = ye();
493
+ if (!s) {
494
+ var l = typeof e == "string" ? e : e.displayName || e.name;
495
+ l && (s = `
496
+
497
+ Check the top-level render call using <` + l + ">.");
498
+ }
499
+ return s;
500
+ }
501
+ }
502
+ function Ee(e, s) {
503
+ {
504
+ if (!e._store || e._store.validated || e.key != null)
505
+ return;
506
+ e._store.validated = !0;
507
+ var l = nr(s);
508
+ if (Ne[l])
509
+ return;
510
+ Ne[l] = !0;
511
+ var d = "";
512
+ e && e._owner && e._owner !== z.current && (d = " It was passed a child from " + C(e._owner.type) + "."), $(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, d), $(null);
513
+ }
514
+ }
515
+ function Re(e, s) {
516
+ {
517
+ if (typeof e != "object")
518
+ return;
519
+ if (H(e))
520
+ for (var l = 0; l < e.length; l++) {
521
+ var d = e[l];
522
+ Z(d) && Ee(d, s);
523
+ }
524
+ else if (Z(e))
525
+ e._store && (e._store.validated = !0);
526
+ else if (e) {
527
+ var h = Pe(e);
528
+ if (typeof h == "function" && h !== e.entries)
529
+ for (var p = h.call(e), m; !(m = p.next()).done; )
530
+ Z(m.value) && Ee(m.value, s);
531
+ }
532
+ }
533
+ }
534
+ function ir(e) {
535
+ {
536
+ var s = e.type;
537
+ if (s == null || typeof s == "string")
538
+ return;
539
+ var l;
540
+ if (typeof s == "function")
541
+ l = s.propTypes;
542
+ else if (typeof s == "object" && (s.$$typeof === c || // Note: Memo only checks outer props here.
543
+ // Inner props are checked in the reconciler.
544
+ s.$$typeof === x))
545
+ l = s.propTypes;
546
+ else
547
+ return;
548
+ if (l) {
549
+ var d = C(s);
550
+ Je(l, e.props, "prop", d, e);
551
+ } else if (s.PropTypes !== void 0 && !X) {
552
+ X = !0;
553
+ var h = C(s);
554
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
555
+ }
556
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ }
558
+ }
559
+ function lr(e) {
560
+ {
561
+ for (var s = Object.keys(e.props), l = 0; l < s.length; l++) {
562
+ var d = s[l];
563
+ if (d !== "children" && d !== "key") {
564
+ $(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), $(null);
565
+ break;
566
+ }
567
+ }
568
+ e.ref !== null && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
569
+ }
570
+ }
571
+ var we = {};
572
+ function Te(e, s, l, d, h, p) {
573
+ {
574
+ var m = Le(e);
575
+ if (!m) {
576
+ var f = "";
577
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
+ var R = sr();
579
+ R ? f += R : f += ye();
580
+ var g;
581
+ e === null ? g = "null" : H(e) ? g = "array" : e !== void 0 && e.$$typeof === t ? (g = "<" + (C(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, f);
582
+ }
583
+ var y = ar(e, s, l, h, p);
584
+ if (y == null)
585
+ return y;
586
+ if (m) {
587
+ var T = s.children;
588
+ if (T !== void 0)
589
+ if (d)
590
+ if (H(T)) {
591
+ for (var I = 0; I < T.length; I++)
592
+ Re(T[I], e);
593
+ Object.freeze && Object.freeze(T);
594
+ } else
595
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ else
597
+ Re(T, e);
598
+ }
599
+ if (B.call(s, "key")) {
600
+ var O = C(e), w = Object.keys(s).filter(function(mr) {
601
+ return mr !== "key";
602
+ }), Q = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!we[O + Q]) {
604
+ var fr = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
605
+ E(`A props object containing a "key" prop is being spread into JSX:
606
+ let props = %s;
607
+ <%s {...props} />
608
+ React keys must be passed directly to JSX without using spread:
609
+ let props = %s;
610
+ <%s key={someKey} {...props} />`, Q, O, fr, O), we[O + Q] = !0;
611
+ }
612
+ }
613
+ return e === i ? lr(y) : ir(y), y;
614
+ }
615
+ }
616
+ function or(e, s, l) {
617
+ return Te(e, s, l, !0);
618
+ }
619
+ function cr(e, s, l) {
620
+ return Te(e, s, l, !1);
621
+ }
622
+ var ur = cr, dr = or;
623
+ L.Fragment = i, L.jsx = ur, L.jsxs = dr;
624
+ }()), L;
625
+ }
626
+ process.env.NODE_ENV === "production" ? ee.exports = _r() : ee.exports = br();
627
+ var r = ee.exports;
628
+ const yr = ({
629
+ variant: a = "primary",
630
+ filled: t = !1,
631
+ iconOnly: n = !1,
632
+ disabled: i = !1,
633
+ loading: u = !1,
634
+ children: o,
635
+ onClick: v,
636
+ fullWidth: j = !1,
637
+ iconBefore: c,
638
+ iconAfter: _,
639
+ className: b = ""
640
+ }) => {
641
+ const x = [
642
+ "ds-button",
643
+ a && `ds-button--${a}`,
644
+ t && "ds-button--filled",
645
+ n && "ds-button--icon-only",
646
+ j && "ds-button--full-width",
647
+ u && "ds-button--loading",
648
+ b
649
+ ].filter(Boolean).join(" ");
650
+ return /* @__PURE__ */ r.jsxs(
651
+ "button",
652
+ {
653
+ type: "button",
654
+ className: x,
655
+ disabled: i || u,
656
+ onClick: v,
657
+ children: [
658
+ c && /* @__PURE__ */ r.jsx("span", { className: "ds-button__icon-before", children: c }),
659
+ /* @__PURE__ */ r.jsx("span", { className: "ds-button__content", children: o }),
660
+ _ && /* @__PURE__ */ r.jsx("span", { className: "ds-button__icon-after", children: _ })
661
+ ]
662
+ }
663
+ );
664
+ }, Nr = ({
665
+ variant: a = "elevated",
666
+ padding: t = "md",
667
+ children: n,
668
+ onClick: i,
669
+ className: u = ""
670
+ }) => {
671
+ const o = [
672
+ "ds-card",
673
+ `ds-card--${a}`,
674
+ `ds-card--padding-${t}`,
675
+ i && "ds-card--interactive",
676
+ u
677
+ ].filter(Boolean).join(" "), v = i ? "button" : "div";
678
+ return /* @__PURE__ */ r.jsx(v, { className: o, onClick: i, children: n });
679
+ }, Er = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("div", { className: `ds-card__header ${t}`, children: a }), Rr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("div", { className: `ds-card__body ${t}`, children: a }), wr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("div", { className: `ds-card__footer ${t}`, children: a }), jr = re.forwardRef(
680
+ ({
681
+ label: a,
682
+ size: t = "md",
683
+ error: n,
684
+ helperText: i,
685
+ required: u,
686
+ iconBefore: o,
687
+ iconAfter: v,
688
+ fullWidth: j = !1,
689
+ className: c = "",
690
+ id: _,
691
+ ...b
692
+ }, x) => {
693
+ const N = _ || `input-${Math.random().toString(36).substr(2, 9)}`, k = !!n, M = [
694
+ "ds-input-wrapper",
695
+ j && "ds-input-wrapper--full-width"
696
+ ].filter(Boolean).join(" "), q = [
697
+ "ds-input-container",
698
+ `ds-input-container--${t}`,
699
+ k && "ds-input-container--error",
700
+ b.disabled && "ds-input-container--disabled",
701
+ c
702
+ ].filter(Boolean).join(" ");
703
+ return /* @__PURE__ */ r.jsxs("div", { className: M, children: [
704
+ a && /* @__PURE__ */ r.jsxs("label", { htmlFor: N, className: "ds-input-label", children: [
705
+ a,
706
+ u && /* @__PURE__ */ r.jsx("span", { className: "ds-input-label__required", children: "*" })
707
+ ] }),
708
+ /* @__PURE__ */ r.jsxs("div", { className: q, children: [
709
+ o && /* @__PURE__ */ r.jsx("span", { className: "ds-input__icon-before", children: o }),
710
+ /* @__PURE__ */ r.jsx(
711
+ "input",
712
+ {
713
+ ref: x,
714
+ id: N,
715
+ className: "ds-input",
716
+ "aria-invalid": k,
717
+ "aria-describedby": n ? `${N}-error` : i ? `${N}-helper` : void 0,
718
+ ...b
719
+ }
720
+ ),
721
+ v && /* @__PURE__ */ r.jsx("span", { className: "ds-input__icon-after", children: v })
722
+ ] }),
723
+ n && /* @__PURE__ */ r.jsx("span", { id: `${N}-error`, className: "ds-input-message ds-input-message--error", children: n }),
724
+ i && !n && /* @__PURE__ */ r.jsx("span", { id: `${N}-helper`, className: "ds-input-message ds-input-message--helper", children: i })
725
+ ] });
726
+ }
727
+ );
728
+ jr.displayName = "Input";
729
+ const Tr = ({
730
+ children: a,
731
+ variant: t = "default",
732
+ className: n = ""
733
+ }) => {
734
+ const i = [
735
+ "ds-badge",
736
+ t !== "default" && `ds-badge--${t}`,
737
+ n
738
+ ].filter(Boolean).join(" ");
739
+ return /* @__PURE__ */ r.jsx("span", { className: i, children: a });
740
+ }, Cr = ({
741
+ open: a,
742
+ onClose: t,
743
+ title: n,
744
+ children: i,
745
+ size: u = "md",
746
+ showCloseButton: o = !0,
747
+ closeOnBackdrop: v = !0,
748
+ closeOnEscape: j = !0,
749
+ footer: c
750
+ }) => {
751
+ const _ = vr(null);
752
+ Se(() => {
753
+ const x = (N) => {
754
+ j && N.key === "Escape" && t();
755
+ };
756
+ return a && (document.addEventListener("keydown", x), document.body.style.overflow = "hidden"), () => {
757
+ document.removeEventListener("keydown", x), document.body.style.overflow = "";
758
+ };
759
+ }, [a, j, t]);
760
+ const b = (x) => {
761
+ v && x.target === x.currentTarget && t();
762
+ };
763
+ return a ? /* @__PURE__ */ r.jsx(
764
+ "div",
765
+ {
766
+ className: "ds-modal-overlay",
767
+ onClick: b,
768
+ role: "dialog",
769
+ "aria-modal": "true",
770
+ "aria-labelledby": n ? "modal-title" : void 0,
771
+ children: /* @__PURE__ */ r.jsxs(
772
+ "div",
773
+ {
774
+ ref: _,
775
+ className: `ds-modal ds-modal--${u}`,
776
+ children: [
777
+ (n || o) && /* @__PURE__ */ r.jsxs("div", { className: "ds-modal__header", children: [
778
+ n && /* @__PURE__ */ r.jsx("h2", { id: "modal-title", className: "ds-modal__title", children: n }),
779
+ o && /* @__PURE__ */ r.jsx(
780
+ "button",
781
+ {
782
+ className: "ds-modal__close",
783
+ onClick: t,
784
+ "aria-label": "Close modal",
785
+ children: /* @__PURE__ */ r.jsxs(
786
+ "svg",
787
+ {
788
+ width: "24",
789
+ height: "24",
790
+ viewBox: "0 0 24 24",
791
+ fill: "none",
792
+ stroke: "currentColor",
793
+ strokeWidth: "2",
794
+ strokeLinecap: "round",
795
+ strokeLinejoin: "round",
796
+ children: [
797
+ /* @__PURE__ */ r.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
798
+ /* @__PURE__ */ r.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
799
+ ]
800
+ }
801
+ )
802
+ }
803
+ )
804
+ ] }),
805
+ /* @__PURE__ */ r.jsx("div", { className: "ds-modal__body", children: i }),
806
+ c && /* @__PURE__ */ r.jsx("div", { className: "ds-modal__footer", children: c })
807
+ ]
808
+ }
809
+ )
810
+ }
811
+ ) : null;
812
+ }, kr = ({
813
+ tabs: a,
814
+ defaultActiveId: t,
815
+ onChange: n,
816
+ className: i = ""
817
+ }) => {
818
+ var j;
819
+ const [u, o] = te(t || ((j = a[0]) == null ? void 0 : j.id)), v = (c) => {
820
+ o(c), n == null || n(c);
821
+ };
822
+ return /* @__PURE__ */ r.jsxs("div", { className: `tab-container ${i}`, children: [
823
+ /* @__PURE__ */ r.jsx("div", { className: "tab-list", role: "tablist", children: /* @__PURE__ */ r.jsx("ul", { children: a.map((c) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
824
+ "a",
825
+ {
826
+ href: `#${c.id}`,
827
+ role: "tab",
828
+ "aria-selected": u === c.id,
829
+ "aria-controls": `panel-${c.id}`,
830
+ className: u === c.id ? "selected" : "",
831
+ onClick: (_) => {
832
+ _.preventDefault(), v(c.id);
833
+ },
834
+ children: c.label
835
+ }
836
+ ) }, c.id)) }) }),
837
+ a.map((c) => /* @__PURE__ */ r.jsx(
838
+ "div",
839
+ {
840
+ id: `panel-${c.id}`,
841
+ role: "tabpanel",
842
+ "aria-labelledby": c.id,
843
+ className: `tab-panel ${u === c.id ? "selected" : ""}`,
844
+ children: c.content
845
+ },
846
+ c.id
847
+ ))
848
+ ] });
849
+ }, Sr = ({
850
+ items: a,
851
+ allowMultiple: t = !1,
852
+ defaultOpenIds: n = [],
853
+ small: i = !1,
854
+ className: u = ""
855
+ }) => {
856
+ const [o, v] = te(n), j = (c) => {
857
+ v(
858
+ t ? (_) => _.includes(c) ? _.filter((b) => b !== c) : [..._, c] : (_) => _.includes(c) ? [] : [c]
859
+ );
860
+ };
861
+ return /* @__PURE__ */ r.jsx("div", { className: `accordion ${u}`, children: a.map((c) => /* @__PURE__ */ r.jsxs(
862
+ "details",
863
+ {
864
+ className: i ? "small" : "",
865
+ open: o.includes(c.id),
866
+ children: [
867
+ /* @__PURE__ */ r.jsx("summary", { onClick: (_) => {
868
+ _.preventDefault(), j(c.id);
869
+ }, children: c.title }),
870
+ /* @__PURE__ */ r.jsx("div", { className: "panel", children: /* @__PURE__ */ r.jsx("div", { className: "spaced", children: c.content }) })
871
+ ]
872
+ },
873
+ c.id
874
+ )) });
875
+ }, Or = ({
876
+ checked: a = !1,
877
+ onChange: t,
878
+ disabled: n = !1,
879
+ label: i,
880
+ id: u,
881
+ className: o = ""
882
+ }) => {
883
+ const v = u || `switch-${Math.random().toString(36).substr(2, 9)}`;
884
+ return /* @__PURE__ */ r.jsxs("div", { className: `ds-switch-wrapper ${o}`, children: [
885
+ /* @__PURE__ */ r.jsxs("label", { className: "switch", children: [
886
+ /* @__PURE__ */ r.jsx(
887
+ "input",
888
+ {
889
+ id: v,
890
+ type: "checkbox",
891
+ checked: a,
892
+ onChange: (j) => t == null ? void 0 : t(j.target.checked),
893
+ disabled: n
894
+ }
895
+ ),
896
+ /* @__PURE__ */ r.jsx("span", { className: "slider round" })
897
+ ] }),
898
+ i && /* @__PURE__ */ r.jsx("label", { htmlFor: v, className: "ds-switch-label", children: i })
899
+ ] });
900
+ }, Pr = ({
901
+ name: a,
902
+ options: t,
903
+ value: n,
904
+ onChange: i,
905
+ className: u = ""
906
+ }) => /* @__PURE__ */ r.jsx("div", { className: `ds-radio-group ${u}`, children: t.map((o) => /* @__PURE__ */ r.jsxs("div", { className: "form-control", children: [
907
+ /* @__PURE__ */ r.jsx(
908
+ "input",
909
+ {
910
+ type: "radio",
911
+ id: `${a}-${o.value}`,
912
+ name: a,
913
+ value: o.value,
914
+ checked: n === o.value,
915
+ disabled: o.disabled,
916
+ onChange: (v) => i == null ? void 0 : i(v.target.value)
917
+ }
918
+ ),
919
+ /* @__PURE__ */ r.jsx("label", { htmlFor: `${a}-${o.value}`, children: o.label })
920
+ ] }, o.value)) }), Oe = hr(void 0), xr = () => {
921
+ const a = pr(Oe);
922
+ if (!a)
923
+ throw new Error("useTheme must be used within a ThemeProvider");
924
+ return a;
925
+ }, $r = ({
926
+ children: a,
927
+ defaultTheme: t = "eg",
928
+ forceTheme: n = !1
929
+ }) => {
930
+ const [i, u] = te(() => n ? t : localStorage.getItem("theme") || t);
931
+ return Se(() => {
932
+ document.documentElement.setAttribute("data-color-theme", i), n || localStorage.setItem("theme", i);
933
+ }, [i, n]), /* @__PURE__ */ r.jsx(Oe.Provider, { value: { theme: i, setTheme: u }, children: a });
934
+ }, F = [
935
+ { value: "eg", label: "Edward Guerra", color: "#05679f" },
936
+ { value: "materialandhome", label: "Material and Home", color: "#b25d3e" },
937
+ { value: "midwest-husbands", label: "Midwest Husbands", color: "#2d5856" }
938
+ ], Ir = ({
939
+ variant: a = "slider",
940
+ className: t = ""
941
+ }) => {
942
+ var u;
943
+ const { theme: n, setTheme: i } = xr();
944
+ if (a === "dropdown")
945
+ return /* @__PURE__ */ r.jsxs("div", { className: `theme-switcher theme-switcher--dropdown ${t}`, children: [
946
+ /* @__PURE__ */ r.jsx("label", { htmlFor: "theme-select", className: "theme-switcher__label", children: "Theme:" }),
947
+ /* @__PURE__ */ r.jsx(
948
+ "select",
949
+ {
950
+ id: "theme-select",
951
+ className: "theme-switcher__select",
952
+ value: n,
953
+ onChange: (o) => i(o.target.value),
954
+ children: F.map((o) => /* @__PURE__ */ r.jsx("option", { value: o.value, children: o.label }, o.value))
955
+ }
956
+ )
957
+ ] });
958
+ if (a === "slider") {
959
+ const o = F.findIndex((v) => v.value === n);
960
+ return /* @__PURE__ */ r.jsxs("div", { className: `theme-switcher theme-switcher--slider ${t}`, children: [
961
+ /* @__PURE__ */ r.jsxs("label", { htmlFor: "theme-slider", className: "theme-switcher__label", children: [
962
+ "Theme: ",
963
+ /* @__PURE__ */ r.jsx("strong", { children: ((u = F[o]) == null ? void 0 : u.label) || "Edward Guerra" })
964
+ ] }),
965
+ /* @__PURE__ */ r.jsx(
966
+ "input",
967
+ {
968
+ type: "range",
969
+ id: "theme-slider",
970
+ className: "theme-switcher__slider",
971
+ min: "0",
972
+ max: F.length - 1,
973
+ value: o,
974
+ onChange: (v) => i(F[parseInt(v.target.value)].value)
975
+ }
976
+ )
977
+ ] });
978
+ }
979
+ return /* @__PURE__ */ r.jsxs("div", { className: `theme-switcher theme-switcher--buttons ${t}`, children: [
980
+ /* @__PURE__ */ r.jsx("span", { className: "theme-switcher__label", children: "Theme:" }),
981
+ /* @__PURE__ */ r.jsx("div", { className: "theme-switcher__buttons", children: F.map((o) => /* @__PURE__ */ r.jsxs(
982
+ "button",
983
+ {
984
+ className: `theme-switcher__button ${n === o.value ? "active" : ""}`,
985
+ onClick: () => i(o.value),
986
+ style: { "--theme-color": o.color },
987
+ "aria-pressed": n === o.value,
988
+ title: o.label,
989
+ children: [
990
+ /* @__PURE__ */ r.jsx("span", { className: "theme-switcher__color", style: { backgroundColor: o.color } }),
991
+ o.label
992
+ ]
993
+ },
994
+ o.value
995
+ )) })
996
+ ] });
997
+ }, Fr = ({
998
+ previousLabel: a = "Previous",
999
+ nextLabel: t = "Next",
1000
+ onPrevious: n,
1001
+ onNext: i,
1002
+ previousDisabled: u = !1,
1003
+ nextDisabled: o = !1,
1004
+ className: v = ""
1005
+ }) => /* @__PURE__ */ r.jsxs("nav", { className: ["ds-pagination", v].filter(Boolean).join(" "), "aria-label": "Pagination", children: [
1006
+ /* @__PURE__ */ r.jsx(
1007
+ "button",
1008
+ {
1009
+ type: "button",
1010
+ className: "ds-pagination__link ds-pagination__link--previous",
1011
+ onClick: n,
1012
+ disabled: u,
1013
+ children: a
1014
+ }
1015
+ ),
1016
+ /* @__PURE__ */ r.jsx(
1017
+ "button",
1018
+ {
1019
+ type: "button",
1020
+ className: "ds-pagination__link ds-pagination__link--next",
1021
+ onClick: i,
1022
+ disabled: o,
1023
+ children: t
1024
+ }
1025
+ )
1026
+ ] }), Dr = ({
1027
+ children: a,
1028
+ size: t = "md",
1029
+ stroke: n = !1,
1030
+ className: i = ""
1031
+ }) => {
1032
+ const u = [
1033
+ "ds-icon",
1034
+ `ds-icon--${t}`,
1035
+ n && "ds-icon--stroke",
1036
+ i
1037
+ ].filter(Boolean).join(" ");
1038
+ return /* @__PURE__ */ r.jsx("span", { className: u, children: a });
1039
+ }, Br = ({
1040
+ content: a,
1041
+ children: t,
1042
+ position: n = "top",
1043
+ className: i = ""
1044
+ }) => /* @__PURE__ */ r.jsxs("span", { className: ["ds-tooltip", i].filter(Boolean).join(" "), children: [
1045
+ t,
1046
+ /* @__PURE__ */ r.jsx("span", { className: `ds-tooltip__bubble ds-tooltip__bubble--${n}`, role: "tooltip", children: a })
1047
+ ] }), Ar = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("dl", { className: ["ds-description-list", t].filter(Boolean).join(" "), children: a }), Lr = ({
1048
+ term: a,
1049
+ children: t,
1050
+ className: n = ""
1051
+ }) => /* @__PURE__ */ r.jsxs("div", { className: ["ds-description-list__row", n].filter(Boolean).join(" "), children: [
1052
+ /* @__PURE__ */ r.jsx("dt", { className: "ds-description-list__term", children: a }),
1053
+ /* @__PURE__ */ r.jsx("dd", { className: "ds-description-list__description", children: t })
1054
+ ] }), Mr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("ul", { className: ["ds-timeline", t].filter(Boolean).join(" "), children: a }), Wr = ({ children: a, timestamp: t, className: n = "" }) => /* @__PURE__ */ r.jsxs("li", { className: ["ds-timeline__item", n].filter(Boolean).join(" "), children: [
1055
+ /* @__PURE__ */ r.jsx("span", { className: "ds-timeline__marker", "aria-hidden": "true" }),
1056
+ /* @__PURE__ */ r.jsx("div", { className: "ds-timeline__content", children: a }),
1057
+ t && /* @__PURE__ */ r.jsx("div", { className: "ds-timeline__timestamp", children: t })
1058
+ ] }), Yr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("div", { className: ["ds-carousel", t].filter(Boolean).join(" "), children: a }), Vr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("div", { className: ["ds-carousel__slide", t].filter(Boolean).join(" "), children: a }), Ur = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("ul", { className: ["ds-list", t].filter(Boolean).join(" "), children: a }), qr = ({
1059
+ children: a,
1060
+ marker: t = "default",
1061
+ row: n = !1,
1062
+ className: i = ""
1063
+ }) => {
1064
+ const u = [
1065
+ "ds-list__item",
1066
+ t !== "none" && `ds-list__item--${t}`,
1067
+ n && "ds-list__item--row",
1068
+ i
1069
+ ].filter(Boolean).join(" ");
1070
+ return /* @__PURE__ */ r.jsx("li", { className: u, children: a });
1071
+ }, Jr = ({ children: a, variant: t = "inline", className: n = "" }) => {
1072
+ const i = ["ds-nav", t === "side" && "ds-nav--side", n].filter(Boolean).join(" ");
1073
+ return /* @__PURE__ */ r.jsx("nav", { className: i, children: /* @__PURE__ */ r.jsx("ul", { className: "ds-nav__list", children: a }) });
1074
+ }, Gr = ({
1075
+ children: a,
1076
+ href: t,
1077
+ onClick: n,
1078
+ active: i = !1,
1079
+ className: u = ""
1080
+ }) => {
1081
+ const o = ["ds-nav__link", i && "ds-nav__link--active"].filter(Boolean).join(" ");
1082
+ return /* @__PURE__ */ r.jsx("li", { className: ["ds-nav__item", u].filter(Boolean).join(" "), children: t ? /* @__PURE__ */ r.jsx("a", { href: t, className: o, "aria-current": i ? "page" : void 0, children: a }) : /* @__PURE__ */ r.jsx("button", { type: "button", className: o, onClick: n, "aria-current": i ? "page" : void 0, children: a }) });
1083
+ }, Kr = ({ children: a, thumbnail: t, className: n = "" }) => /* @__PURE__ */ r.jsxs("article", { className: ["ds-article", n].filter(Boolean).join(" "), children: [
1084
+ /* @__PURE__ */ r.jsx("div", { className: "ds-article__content", children: a }),
1085
+ t && /* @__PURE__ */ r.jsx("div", { className: "ds-article__thumb", children: t })
1086
+ ] }), Hr = ({
1087
+ children: a,
1088
+ layout: t = "column",
1089
+ bordered: n = !1,
1090
+ className: i = ""
1091
+ }) => {
1092
+ const u = [
1093
+ "ds-feature",
1094
+ `ds-feature--${t}`,
1095
+ n && "ds-feature--bordered",
1096
+ i
1097
+ ].filter(Boolean).join(" ");
1098
+ return /* @__PURE__ */ r.jsx("div", { className: u, children: /* @__PURE__ */ r.jsx("div", { className: "ds-feature__content", children: a }) });
1099
+ }, zr = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("nav", { className: ["ds-toc", t].filter(Boolean).join(" "), "aria-label": "Table of contents", children: /* @__PURE__ */ r.jsx("ul", { className: "ds-toc__list", children: a }) }), Xr = ({ href: a, children: t, active: n = !1, className: i = "" }) => /* @__PURE__ */ r.jsx("li", { className: ["ds-toc__item", n && "ds-toc__item--active", i].filter(Boolean).join(" "), children: /* @__PURE__ */ r.jsx("a", { href: a, "aria-current": n ? "true" : void 0, children: t }) }), Zr = ({
1100
+ min: a = 0,
1101
+ max: t = 10,
1102
+ step: n = 1,
1103
+ value: i,
1104
+ onChange: u,
1105
+ ticks: o,
1106
+ label: v,
1107
+ id: j,
1108
+ className: c = ""
1109
+ }) => {
1110
+ const _ = j || `slider-${Math.random().toString(36).substr(2, 9)}`;
1111
+ return /* @__PURE__ */ r.jsxs("div", { className: ["ds-slider", c].filter(Boolean).join(" "), children: [
1112
+ v && /* @__PURE__ */ r.jsx("label", { htmlFor: _, className: "ds-slider__label", children: v }),
1113
+ /* @__PURE__ */ r.jsx(
1114
+ "input",
1115
+ {
1116
+ id: _,
1117
+ type: "range",
1118
+ className: "ds-slider__input",
1119
+ min: a,
1120
+ max: t,
1121
+ step: n,
1122
+ value: i,
1123
+ onChange: (b) => u(Number(b.target.value))
1124
+ }
1125
+ ),
1126
+ o && o > 1 && /* @__PURE__ */ r.jsx("div", { className: "ds-slider__ticks", "aria-hidden": "true", children: Array.from({ length: o }).map((b, x) => /* @__PURE__ */ r.jsx("span", { className: "ds-slider__tick" }, x)) })
1127
+ ] });
1128
+ }, Qr = ({ children: a, quarters: t = !1, className: n = "" }) => {
1129
+ const i = ["ds-table", t && "ds-table--quarters", n].filter(Boolean).join(" ");
1130
+ return /* @__PURE__ */ r.jsx("table", { className: i, children: a });
1131
+ }, et = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("tr", { className: t || void 0, children: a }), rt = ({
1132
+ children: a,
1133
+ scope: t = "col",
1134
+ className: n = ""
1135
+ }) => /* @__PURE__ */ r.jsx("th", { scope: t, className: n || void 0, children: a }), tt = ({ children: a, className: t = "" }) => /* @__PURE__ */ r.jsx("td", { className: t || void 0, children: a }), at = ({ open: a, children: t, align: n = "right", className: i = "" }) => {
1136
+ const u = ["ds-menu", `ds-menu--${n}`, a && "ds-menu--open", i].filter(Boolean).join(" ");
1137
+ return /* @__PURE__ */ r.jsx("div", { className: u, "aria-hidden": !a, role: "menu", children: t });
1138
+ }, st = ({ children: a, onClick: t, active: n = !1, className: i = "" }) => {
1139
+ const u = ["ds-menu__item", n && "ds-menu__item--active", i].filter(Boolean).join(" ");
1140
+ return /* @__PURE__ */ r.jsx("button", { type: "button", role: "menuitem", className: u, onClick: t, children: a });
1141
+ }, nt = ({ href: a, children: t, variant: n = "default", className: i = "" }) => {
1142
+ const u = ["ds-link", n === "dotted" && "ds-link--dotted", i].filter(Boolean).join(" ");
1143
+ return /* @__PURE__ */ r.jsx("a", { href: a, className: u, children: t });
1144
+ }, it = ({ href: a, children: t, className: n = "" }) => /* @__PURE__ */ r.jsx("a", { href: a, className: ["ds-skip-link", n].filter(Boolean).join(" "), children: t });
1145
+ export {
1146
+ Sr as Accordion,
1147
+ Kr as Article,
1148
+ Tr as Badge,
1149
+ yr as Button,
1150
+ Nr as Card,
1151
+ Rr as CardBody,
1152
+ wr as CardFooter,
1153
+ Er as CardHeader,
1154
+ Yr as Carousel,
1155
+ Vr as CarouselSlide,
1156
+ Ar as DescriptionList,
1157
+ Lr as DescriptionListItem,
1158
+ Hr as Feature,
1159
+ Dr as Icon,
1160
+ jr as Input,
1161
+ nt as Link,
1162
+ Ur as List,
1163
+ qr as ListItem,
1164
+ at as Menu,
1165
+ st as MenuItem,
1166
+ Cr as Modal,
1167
+ Jr as Nav,
1168
+ Gr as NavItem,
1169
+ Fr as Pagination,
1170
+ Pr as Radio,
1171
+ it as SkipLink,
1172
+ Zr as Slider,
1173
+ Or as Switch,
1174
+ zr as TOC,
1175
+ Xr as TOCItem,
1176
+ Qr as Table,
1177
+ tt as TableCell,
1178
+ rt as TableHeaderCell,
1179
+ et as TableRow,
1180
+ kr as Tabs,
1181
+ $r as ThemeProvider,
1182
+ Ir as ThemeSwitcher,
1183
+ Mr as Timeline,
1184
+ Wr as TimelineItem,
1185
+ Br as Tooltip,
1186
+ xr as useTheme
1187
+ };
1188
+ //# sourceMappingURL=index.mjs.map