@rikstv/shared-components 1.1.96 → 2.0.1

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 (92) hide show
  1. package/dist/components/accordion/Accordion-4b8edd28.mjs +669 -0
  2. package/dist/components/breadcrumb/Breadcrumb-1b579cc3.mjs +21 -0
  3. package/dist/components/breadcrumb/Breadcrumb.d.ts +2 -2
  4. package/dist/components/button/ArrowButton-af5de307.mjs +48 -0
  5. package/dist/components/button/BaseButton-4f6e9dd4.mjs +46 -0
  6. package/dist/components/button/BaseButton.d.ts +2 -2
  7. package/dist/components/button/BaseDecoratedButton-c5799b0f.mjs +15 -0
  8. package/dist/components/button/BaseLinkButton-348be18c.mjs +42 -0
  9. package/dist/components/button/BaseLinkButton.d.ts +3 -3
  10. package/dist/components/button/Button-4e09c58d.mjs +17 -0
  11. package/dist/components/button/DecoratedButton-ab90a6bd.mjs +21 -0
  12. package/dist/components/button/IconButton-dd3478ff.mjs +15 -0
  13. package/dist/components/button/LinkButton-85fc759b.mjs +8 -0
  14. package/dist/components/button/LinkButton.d.ts +1 -1
  15. package/dist/components/checkbox/BaseCheckbox-6fed1663.mjs +41 -0
  16. package/dist/components/checkbox/Checkbox-cc58a275.mjs +22 -0
  17. package/dist/components/core/Core-ba0340f6.mjs +46 -0
  18. package/dist/components/core/Core.d.ts +3 -3
  19. package/dist/components/core/LightMode-b458f91d.mjs +9 -0
  20. package/dist/components/core/RiksTV-698a6154.mjs +6 -0
  21. package/dist/components/core/RiksTV.d.ts +2 -2
  22. package/dist/components/core/Strim-51ea8e08.mjs +6 -0
  23. package/dist/components/core/Strim.d.ts +2 -2
  24. package/dist/components/core/hooks/useBrowserPreferences.d.ts +1 -1
  25. package/dist/components/core/hooks/useIntersectionObserver.d.ts +2 -2
  26. package/dist/components/icons/{Arrow.js → Arrow-feb3e25e.mjs} +9 -10
  27. package/dist/components/icons/{Chevron.js → Chevron-ef147695.mjs} +9 -12
  28. package/dist/components/list/CheckmarkListItem-f9df7013.mjs +38 -0
  29. package/dist/components/list/CrossmarkListItem-348c226a.mjs +28 -0
  30. package/dist/components/list/List-86ad4810.mjs +27 -0
  31. package/dist/components/list/ListItem-4e47bb2e.mjs +5 -0
  32. package/dist/components/list/OrderedListItem-a70598a1.mjs +5 -0
  33. package/dist/components/loader/Loader-7ab4a8f0.mjs +21 -0
  34. package/dist/components/loader/RawLoader-7e00f143.mjs +47 -0
  35. package/dist/components/notificationDot/NotificationDot-b03fa811.mjs +26 -0
  36. package/dist/components/panel/{Info.js → Info-7fe85f53.mjs} +20 -12
  37. package/dist/components/panel/Panel-5cd1bda7.mjs +50 -0
  38. package/dist/components/panel/{Success.js → Success-c116cc05.mjs} +75 -23
  39. package/dist/components/panel/Warning-fa1839e3.mjs +11 -0
  40. package/dist/components/progress/CircularProgress-e4622fd6.mjs +52 -0
  41. package/dist/components/progress/Progress-ef42810b.mjs +26 -0
  42. package/dist/components/spacing/Gutter-32112716.mjs +5 -0
  43. package/dist/components/spacing/GutterPadding-6be6c9d9.mjs +5 -0
  44. package/dist/components/textfield/TextField-765a87bf.mjs +70 -0
  45. package/dist/components/toggle/FieldSet-4bdc4b7e.mjs +13 -0
  46. package/dist/components/toggle/RadioToggle-1528c002.mjs +17 -0
  47. package/dist/components/toggleButton/ToggleButton-a2d4302f.mjs +47 -0
  48. package/dist/components/toggleInlineButton/ToggleInlineButton-1e480eaa.mjs +40 -0
  49. package/dist/components/toggleLinkButton/ToggleLinkButton-08c60e4d.mjs +45 -0
  50. package/dist/components/typography/Typography-91af1c48.mjs +33 -0
  51. package/dist/components/typography/Typography.d.ts +2 -2
  52. package/dist/shared-components.mjs +199 -0
  53. package/dist/style.css +1 -1
  54. package/package.json +4 -5
  55. package/dist/components/accordion/Accordion.js +0 -34
  56. package/dist/components/breadcrumb/Breadcrumb.js +0 -39
  57. package/dist/components/button/ArrowButton.js +0 -44
  58. package/dist/components/button/BaseButton.js +0 -42
  59. package/dist/components/button/BaseDecoratedButton.js +0 -32
  60. package/dist/components/button/BaseLinkButton.js +0 -44
  61. package/dist/components/button/Button.js +0 -29
  62. package/dist/components/button/DecoratedButton.js +0 -23
  63. package/dist/components/button/IconButton.js +0 -24
  64. package/dist/components/button/LinkButton.js +0 -10
  65. package/dist/components/checkbox/BaseCheckbox.js +0 -35
  66. package/dist/components/checkbox/Checkbox.js +0 -26
  67. package/dist/components/core/Core.js +0 -76
  68. package/dist/components/core/LightMode.js +0 -14
  69. package/dist/components/core/RiksTV.js +0 -116
  70. package/dist/components/core/Strim.js +0 -10
  71. package/dist/components/list/CheckmarkListItem.js +0 -36
  72. package/dist/components/list/CrossmarkListItem.js +0 -27
  73. package/dist/components/list/List.js +0 -28
  74. package/dist/components/list/ListItem.js +0 -19
  75. package/dist/components/list/OrderedListItem.js +0 -19
  76. package/dist/components/loader/Loader.js +0 -31
  77. package/dist/components/loader/RawLoader.js +0 -30
  78. package/dist/components/notificationDot/NotificationDot.js +0 -22
  79. package/dist/components/panel/Panel.js +0 -55
  80. package/dist/components/panel/Warning.js +0 -14
  81. package/dist/components/progress/CircularProgress.js +0 -87
  82. package/dist/components/progress/Progress.js +0 -42
  83. package/dist/components/spacing/Gutter.js +0 -13
  84. package/dist/components/spacing/GutterPadding.js +0 -13
  85. package/dist/components/textfield/TextField.js +0 -63
  86. package/dist/components/toggle/FieldSet.js +0 -29
  87. package/dist/components/toggle/RadioToggle.js +0 -30
  88. package/dist/components/toggleButton/ToggleButton.js +0 -64
  89. package/dist/components/toggleInlineButton/ToggleInlineButton.js +0 -48
  90. package/dist/components/toggleLinkButton/ToggleLinkButton.js +0 -55
  91. package/dist/components/typography/Typography.js +0 -67
  92. package/dist/shared-components.es.js +0 -213
@@ -0,0 +1,669 @@
1
+ import Ce, { useRef as ir, useEffect as ur } from "react";
2
+ import { C as sr } from "../icons/Chevron-ef147695.mjs";
3
+ var k = {}, fr = {
4
+ get exports() {
5
+ return k;
6
+ },
7
+ set exports(m) {
8
+ k = m;
9
+ }
10
+ }, $ = {};
11
+ /**
12
+ * @license React
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ var Re;
21
+ function lr() {
22
+ if (Re)
23
+ return $;
24
+ Re = 1;
25
+ var m = Ce, b = Symbol.for("react.element"), D = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, R = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function h(T, l, P) {
27
+ var v, _ = {}, C = null, W = null;
28
+ P !== void 0 && (C = "" + P), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (W = l.ref);
29
+ for (v in l)
30
+ y.call(l, v) && !w.hasOwnProperty(v) && (_[v] = l[v]);
31
+ if (T && T.defaultProps)
32
+ for (v in l = T.defaultProps, l)
33
+ _[v] === void 0 && (_[v] = l[v]);
34
+ return { $$typeof: b, type: T, key: C, ref: W, props: _, _owner: R.current };
35
+ }
36
+ return $.Fragment = D, $.jsx = h, $.jsxs = h, $;
37
+ }
38
+ var I = {};
39
+ /**
40
+ * @license React
41
+ * react-jsx-runtime.development.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ var Te;
49
+ function cr() {
50
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
51
+ var m = Ce, b = Symbol.for("react.element"), D = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), T = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), X = Symbol.iterator, Oe = "@@iterator";
52
+ function we(e) {
53
+ if (e === null || typeof e != "object")
54
+ return null;
55
+ var r = X && e[X] || e[Oe];
56
+ return typeof r == "function" ? r : null;
57
+ }
58
+ var S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
+ function c(e) {
60
+ {
61
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
62
+ t[n - 1] = arguments[n];
63
+ Pe("error", e, t);
64
+ }
65
+ }
66
+ function Pe(e, r, t) {
67
+ {
68
+ var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
69
+ i !== "" && (r += "%s", t = t.concat([i]));
70
+ var u = t.map(function(o) {
71
+ return String(o);
72
+ });
73
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
74
+ }
75
+ }
76
+ var Se = !1, xe = !1, je = !1, ke = !1, De = !1, Z;
77
+ Z = Symbol.for("react.module.reference");
78
+ function Fe(e) {
79
+ return !!(typeof e == "string" || typeof e == "function" || e === y || e === w || De || e === R || e === P || e === v || ke || e === W || Se || xe || je || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === h || e.$$typeof === T || e.$$typeof === l || // This needs to include all possible module reference object
80
+ // types supported by any Flight configuration anywhere since
81
+ // we don't know which Flight build this will end up being used
82
+ // with.
83
+ e.$$typeof === Z || e.getModuleId !== void 0));
84
+ }
85
+ function Ae(e, r, t) {
86
+ var n = e.displayName;
87
+ if (n)
88
+ return n;
89
+ var i = r.displayName || r.name || "";
90
+ return i !== "" ? t + "(" + i + ")" : t;
91
+ }
92
+ function Q(e) {
93
+ return e.displayName || "Context";
94
+ }
95
+ function g(e) {
96
+ if (e == null)
97
+ return null;
98
+ if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
99
+ return e.displayName || e.name || null;
100
+ if (typeof e == "string")
101
+ return e;
102
+ switch (e) {
103
+ case y:
104
+ return "Fragment";
105
+ case D:
106
+ return "Portal";
107
+ case w:
108
+ return "Profiler";
109
+ case R:
110
+ return "StrictMode";
111
+ case P:
112
+ return "Suspense";
113
+ case v:
114
+ return "SuspenseList";
115
+ }
116
+ if (typeof e == "object")
117
+ switch (e.$$typeof) {
118
+ case T:
119
+ var r = e;
120
+ return Q(r) + ".Consumer";
121
+ case h:
122
+ var t = e;
123
+ return Q(t._context) + ".Provider";
124
+ case l:
125
+ return Ae(e, e.render, "ForwardRef");
126
+ case _:
127
+ var n = e.displayName || null;
128
+ return n !== null ? n : g(e.type) || "Memo";
129
+ case C: {
130
+ var i = e, u = i._payload, o = i._init;
131
+ try {
132
+ return g(o(u));
133
+ } catch {
134
+ return null;
135
+ }
136
+ }
137
+ }
138
+ return null;
139
+ }
140
+ var O = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
141
+ function ue() {
142
+ }
143
+ ue.__reactDisabledLog = !0;
144
+ function $e() {
145
+ {
146
+ if (F === 0) {
147
+ ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
148
+ var e = {
149
+ configurable: !0,
150
+ enumerable: !0,
151
+ value: ue,
152
+ writable: !0
153
+ };
154
+ Object.defineProperties(console, {
155
+ info: e,
156
+ log: e,
157
+ warn: e,
158
+ error: e,
159
+ group: e,
160
+ groupCollapsed: e,
161
+ groupEnd: e
162
+ });
163
+ }
164
+ F++;
165
+ }
166
+ }
167
+ function Ie() {
168
+ {
169
+ if (F--, F === 0) {
170
+ var e = {
171
+ configurable: !0,
172
+ enumerable: !0,
173
+ writable: !0
174
+ };
175
+ Object.defineProperties(console, {
176
+ log: O({}, e, {
177
+ value: ee
178
+ }),
179
+ info: O({}, e, {
180
+ value: re
181
+ }),
182
+ warn: O({}, e, {
183
+ value: te
184
+ }),
185
+ error: O({}, e, {
186
+ value: ne
187
+ }),
188
+ group: O({}, e, {
189
+ value: ae
190
+ }),
191
+ groupCollapsed: O({}, e, {
192
+ value: oe
193
+ }),
194
+ groupEnd: O({}, e, {
195
+ value: ie
196
+ })
197
+ });
198
+ }
199
+ F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
+ }
201
+ }
202
+ var U = S.ReactCurrentDispatcher, q;
203
+ function Y(e, r, t) {
204
+ {
205
+ if (q === void 0)
206
+ try {
207
+ throw Error();
208
+ } catch (i) {
209
+ var n = i.stack.trim().match(/\n( *(at )?)/);
210
+ q = n && n[1] || "";
211
+ }
212
+ return `
213
+ ` + q + e;
214
+ }
215
+ }
216
+ var B = !1, N;
217
+ {
218
+ var We = typeof WeakMap == "function" ? WeakMap : Map;
219
+ N = new We();
220
+ }
221
+ function se(e, r) {
222
+ if (!e || B)
223
+ return "";
224
+ {
225
+ var t = N.get(e);
226
+ if (t !== void 0)
227
+ return t;
228
+ }
229
+ var n;
230
+ B = !0;
231
+ var i = Error.prepareStackTrace;
232
+ Error.prepareStackTrace = void 0;
233
+ var u;
234
+ u = U.current, U.current = null, $e();
235
+ try {
236
+ if (r) {
237
+ var o = function() {
238
+ throw Error();
239
+ };
240
+ if (Object.defineProperty(o.prototype, "props", {
241
+ set: function() {
242
+ throw Error();
243
+ }
244
+ }), typeof Reflect == "object" && Reflect.construct) {
245
+ try {
246
+ Reflect.construct(o, []);
247
+ } catch (E) {
248
+ n = E;
249
+ }
250
+ Reflect.construct(e, [], o);
251
+ } else {
252
+ try {
253
+ o.call();
254
+ } catch (E) {
255
+ n = E;
256
+ }
257
+ e.call(o.prototype);
258
+ }
259
+ } else {
260
+ try {
261
+ throw Error();
262
+ } catch (E) {
263
+ n = E;
264
+ }
265
+ e();
266
+ }
267
+ } catch (E) {
268
+ if (E && n && typeof E.stack == "string") {
269
+ for (var a = E.stack.split(`
270
+ `), d = n.stack.split(`
271
+ `), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
272
+ f--;
273
+ for (; s >= 1 && f >= 0; s--, f--)
274
+ if (a[s] !== d[f]) {
275
+ if (s !== 1 || f !== 1)
276
+ do
277
+ if (s--, f--, f < 0 || a[s] !== d[f]) {
278
+ var p = `
279
+ ` + a[s].replace(" at new ", " at ");
280
+ return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, p), p;
281
+ }
282
+ while (s >= 1 && f >= 0);
283
+ break;
284
+ }
285
+ }
286
+ } finally {
287
+ B = !1, U.current = u, Ie(), Error.prepareStackTrace = i;
288
+ }
289
+ var j = e ? e.displayName || e.name : "", be = j ? Y(j) : "";
290
+ return typeof e == "function" && N.set(e, be), be;
291
+ }
292
+ function Ye(e, r, t) {
293
+ return se(e, !1);
294
+ }
295
+ function Ne(e) {
296
+ var r = e.prototype;
297
+ return !!(r && r.isReactComponent);
298
+ }
299
+ function L(e, r, t) {
300
+ if (e == null)
301
+ return "";
302
+ if (typeof e == "function")
303
+ return se(e, Ne(e));
304
+ if (typeof e == "string")
305
+ return Y(e);
306
+ switch (e) {
307
+ case P:
308
+ return Y("Suspense");
309
+ case v:
310
+ return Y("SuspenseList");
311
+ }
312
+ if (typeof e == "object")
313
+ switch (e.$$typeof) {
314
+ case l:
315
+ return Ye(e.render);
316
+ case _:
317
+ return L(e.type, r, t);
318
+ case C: {
319
+ var n = e, i = n._payload, u = n._init;
320
+ try {
321
+ return L(u(i), r, t);
322
+ } catch {
323
+ }
324
+ }
325
+ }
326
+ return "";
327
+ }
328
+ var V = Object.prototype.hasOwnProperty, fe = {}, le = S.ReactDebugCurrentFrame;
329
+ function M(e) {
330
+ if (e) {
331
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
332
+ le.setExtraStackFrame(t);
333
+ } else
334
+ le.setExtraStackFrame(null);
335
+ }
336
+ function Le(e, r, t, n, i) {
337
+ {
338
+ var u = Function.call.bind(V);
339
+ for (var o in e)
340
+ if (u(e, o)) {
341
+ var a = void 0;
342
+ try {
343
+ if (typeof e[o] != "function") {
344
+ var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
+ throw d.name = "Invariant Violation", d;
346
+ }
347
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
348
+ } catch (s) {
349
+ a = s;
350
+ }
351
+ a && !(a instanceof Error) && (M(i), c("%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).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), c("Failed %s type: %s", t, a.message), M(null));
352
+ }
353
+ }
354
+ }
355
+ var Ve = Array.isArray;
356
+ function J(e) {
357
+ return Ve(e);
358
+ }
359
+ function Me(e) {
360
+ {
361
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
362
+ return t;
363
+ }
364
+ }
365
+ function Ue(e) {
366
+ try {
367
+ return ce(e), !1;
368
+ } catch {
369
+ return !0;
370
+ }
371
+ }
372
+ function ce(e) {
373
+ return "" + e;
374
+ }
375
+ function de(e) {
376
+ if (Ue(e))
377
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), ce(e);
378
+ }
379
+ var A = S.ReactCurrentOwner, qe = {
380
+ key: !0,
381
+ ref: !0,
382
+ __self: !0,
383
+ __source: !0
384
+ }, ve, pe, G;
385
+ G = {};
386
+ function Be(e) {
387
+ if (V.call(e, "ref")) {
388
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
389
+ if (r && r.isReactWarning)
390
+ return !1;
391
+ }
392
+ return e.ref !== void 0;
393
+ }
394
+ function Je(e) {
395
+ if (V.call(e, "key")) {
396
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
397
+ if (r && r.isReactWarning)
398
+ return !1;
399
+ }
400
+ return e.key !== void 0;
401
+ }
402
+ function Ge(e, r) {
403
+ if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
404
+ var t = g(A.current.type);
405
+ G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', g(A.current.type), e.ref), G[t] = !0);
406
+ }
407
+ }
408
+ function ze(e, r) {
409
+ {
410
+ var t = function() {
411
+ ve || (ve = !0, c("%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)", r));
412
+ };
413
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
414
+ get: t,
415
+ configurable: !0
416
+ });
417
+ }
418
+ }
419
+ function Ke(e, r) {
420
+ {
421
+ var t = function() {
422
+ pe || (pe = !0, c("%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)", r));
423
+ };
424
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
425
+ get: t,
426
+ configurable: !0
427
+ });
428
+ }
429
+ }
430
+ var He = function(e, r, t, n, i, u, o) {
431
+ var a = {
432
+ // This tag allows us to uniquely identify this as a React Element
433
+ $$typeof: b,
434
+ // Built-in properties that belong on the element
435
+ type: e,
436
+ key: r,
437
+ ref: t,
438
+ props: o,
439
+ // Record the component responsible for creating this element.
440
+ _owner: u
441
+ };
442
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
443
+ configurable: !1,
444
+ enumerable: !1,
445
+ writable: !0,
446
+ value: !1
447
+ }), Object.defineProperty(a, "_self", {
448
+ configurable: !1,
449
+ enumerable: !1,
450
+ writable: !1,
451
+ value: n
452
+ }), Object.defineProperty(a, "_source", {
453
+ configurable: !1,
454
+ enumerable: !1,
455
+ writable: !1,
456
+ value: i
457
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
458
+ };
459
+ function Xe(e, r, t, n, i) {
460
+ {
461
+ var u, o = {}, a = null, d = null;
462
+ t !== void 0 && (de(t), a = "" + t), Je(r) && (de(r.key), a = "" + r.key), Be(r) && (d = r.ref, Ge(r, i));
463
+ for (u in r)
464
+ V.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
465
+ if (e && e.defaultProps) {
466
+ var s = e.defaultProps;
467
+ for (u in s)
468
+ o[u] === void 0 && (o[u] = s[u]);
469
+ }
470
+ if (a || d) {
471
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
+ a && ze(o, f), d && Ke(o, f);
473
+ }
474
+ return He(e, a, d, i, n, A.current, o);
475
+ }
476
+ }
477
+ var z = S.ReactCurrentOwner, me = S.ReactDebugCurrentFrame;
478
+ function x(e) {
479
+ if (e) {
480
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
481
+ me.setExtraStackFrame(t);
482
+ } else
483
+ me.setExtraStackFrame(null);
484
+ }
485
+ var K;
486
+ K = !1;
487
+ function H(e) {
488
+ return typeof e == "object" && e !== null && e.$$typeof === b;
489
+ }
490
+ function he() {
491
+ {
492
+ if (z.current) {
493
+ var e = g(z.current.type);
494
+ if (e)
495
+ return `
496
+
497
+ Check the render method of \`` + e + "`.";
498
+ }
499
+ return "";
500
+ }
501
+ }
502
+ function Ze(e) {
503
+ {
504
+ if (e !== void 0) {
505
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
506
+ return `
507
+
508
+ Check your code at ` + r + ":" + t + ".";
509
+ }
510
+ return "";
511
+ }
512
+ }
513
+ var _e = {};
514
+ function Qe(e) {
515
+ {
516
+ var r = he();
517
+ if (!r) {
518
+ var t = typeof e == "string" ? e : e.displayName || e.name;
519
+ t && (r = `
520
+
521
+ Check the top-level render call using <` + t + ">.");
522
+ }
523
+ return r;
524
+ }
525
+ }
526
+ function ge(e, r) {
527
+ {
528
+ if (!e._store || e._store.validated || e.key != null)
529
+ return;
530
+ e._store.validated = !0;
531
+ var t = Qe(r);
532
+ if (_e[t])
533
+ return;
534
+ _e[t] = !0;
535
+ var n = "";
536
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + g(e._owner.type) + "."), x(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), x(null);
537
+ }
538
+ }
539
+ function Ee(e, r) {
540
+ {
541
+ if (typeof e != "object")
542
+ return;
543
+ if (J(e))
544
+ for (var t = 0; t < e.length; t++) {
545
+ var n = e[t];
546
+ H(n) && ge(n, r);
547
+ }
548
+ else if (H(e))
549
+ e._store && (e._store.validated = !0);
550
+ else if (e) {
551
+ var i = we(e);
552
+ if (typeof i == "function" && i !== e.entries)
553
+ for (var u = i.call(e), o; !(o = u.next()).done; )
554
+ H(o.value) && ge(o.value, r);
555
+ }
556
+ }
557
+ }
558
+ function er(e) {
559
+ {
560
+ var r = e.type;
561
+ if (r == null || typeof r == "string")
562
+ return;
563
+ var t;
564
+ if (typeof r == "function")
565
+ t = r.propTypes;
566
+ else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
567
+ // Inner props are checked in the reconciler.
568
+ r.$$typeof === _))
569
+ t = r.propTypes;
570
+ else
571
+ return;
572
+ if (t) {
573
+ var n = g(r);
574
+ Le(t, e.props, "prop", n, e);
575
+ } else if (r.PropTypes !== void 0 && !K) {
576
+ K = !0;
577
+ var i = g(r);
578
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
579
+ }
580
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
581
+ }
582
+ }
583
+ function rr(e) {
584
+ {
585
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
586
+ var n = r[t];
587
+ if (n !== "children" && n !== "key") {
588
+ x(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
589
+ break;
590
+ }
591
+ }
592
+ e.ref !== null && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
593
+ }
594
+ }
595
+ function ye(e, r, t, n, i, u) {
596
+ {
597
+ var o = Fe(e);
598
+ if (!o) {
599
+ var a = "";
600
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
601
+ var d = Ze(i);
602
+ d ? a += d : a += he();
603
+ var s;
604
+ e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (s = "<" + (g(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
605
+ }
606
+ var f = Xe(e, r, t, i, u);
607
+ if (f == null)
608
+ return f;
609
+ if (o) {
610
+ var p = r.children;
611
+ if (p !== void 0)
612
+ if (n)
613
+ if (J(p)) {
614
+ for (var j = 0; j < p.length; j++)
615
+ Ee(p[j], e);
616
+ Object.freeze && Object.freeze(p);
617
+ } else
618
+ c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
+ else
620
+ Ee(p, e);
621
+ }
622
+ return e === y ? rr(f) : er(f), f;
623
+ }
624
+ }
625
+ function tr(e, r, t) {
626
+ return ye(e, r, t, !0);
627
+ }
628
+ function nr(e, r, t) {
629
+ return ye(e, r, t, !1);
630
+ }
631
+ var ar = nr, or = tr;
632
+ I.Fragment = y, I.jsx = ar, I.jsxs = or;
633
+ }()), I;
634
+ }
635
+ (function(m) {
636
+ process.env.NODE_ENV === "production" ? m.exports = lr() : m.exports = cr();
637
+ })(fr);
638
+ const pr = ({
639
+ initialOpen: m = !0,
640
+ children: b,
641
+ heading: D,
642
+ className: y = "",
643
+ lightBackground: R = !1,
644
+ ...w
645
+ }) => {
646
+ const h = ir(null);
647
+ return ur(() => {
648
+ h.current && (h.current.open = m);
649
+ }, [m]), /* @__PURE__ */ k.jsxs(
650
+ "details",
651
+ {
652
+ ref: h,
653
+ "data-testid": "rds-accordion",
654
+ className: `rds-accordion-details ${R ? "rds-accordion-details--light" : ""} ${R === "white" ? "rds-accordion-details--white" : ""} ${y}`,
655
+ ...w,
656
+ children: [
657
+ /* @__PURE__ */ k.jsxs("summary", { "data-testid": "rds-accordion-summary", className: "rds-accordion-details__summary", children: [
658
+ /* @__PURE__ */ k.jsx(sr, {}),
659
+ /* @__PURE__ */ k.jsx("div", { className: "rds-accordion-details__summary__content", children: D })
660
+ ] }),
661
+ b
662
+ ]
663
+ }
664
+ );
665
+ };
666
+ export {
667
+ pr as A,
668
+ k as j
669
+ };
@@ -0,0 +1,21 @@
1
+ import { j as r } from "../accordion/Accordion-4b8edd28.mjs";
2
+ import { forwardRef as b } from "react";
3
+ import { S as d } from "../typography/Typography-91af1c48.mjs";
4
+ const u = b(({ className: a = "", crumbs: s, render: c, ...m }, i) => /* @__PURE__ */ r.jsx("nav", { className: `rds-breadcrumb ${a}`, ref: i, ...m, children: /* @__PURE__ */ r.jsx(d, { children: /* @__PURE__ */ r.jsx("ol", { className: "rds-breadcrumb__list", children: s.map(({ name: e, href: l }, n) => {
5
+ const t = n === s.length - 1;
6
+ return /* @__PURE__ */ r.jsx(
7
+ "li",
8
+ {
9
+ className: `rds-breadcrumb__list-item ${s.length >= 4 ? "rds-breadcrumb__list-item--truncate" : ""}`,
10
+ "data-testid": `rds-breadcrumb-${e}`,
11
+ "aria-current": t ? "page" : "false",
12
+ children: c(e, l, t)
13
+ },
14
+ e
15
+ );
16
+ }) }) }) })), _ = ({ children: a }) => /* @__PURE__ */ r.jsx(d, { className: "rds-breadcrumb__current", children: a });
17
+ u.displayName = "Breadcrumb";
18
+ export {
19
+ u as B,
20
+ _ as a
21
+ };
@@ -1,4 +1,4 @@
1
- import { FC, HTMLAttributes, ReactNode } from "react";
1
+ import { FC, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
2
2
  import "./breadcrumb.scss";
3
3
  interface Props extends HTMLAttributes<HTMLElement> {
4
4
  crumbs: Array<{
@@ -9,5 +9,5 @@ interface Props extends HTMLAttributes<HTMLElement> {
9
9
  className?: string;
10
10
  }
11
11
  export declare const Breadcrumb: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
12
- export declare const BreadcrumbCurrent: FC;
12
+ export declare const BreadcrumbCurrent: FC<PropsWithChildren>;
13
13
  export {};