@rikstv/shared-components 2.0.18 → 2.0.20

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 (64) hide show
  1. package/dist/components/accordion/{Accordion-99b76aba.mjs → Accordion-5e72e67b.mjs} +80 -82
  2. package/dist/components/breadcrumb/{Breadcrumb-e35d6c52.mjs → Breadcrumb-19678339.mjs} +2 -2
  3. package/dist/components/button/ArrowButton-470c0575.mjs +48 -0
  4. package/dist/components/button/{BaseButton-078de736.mjs → BaseButton-82123b7e.mjs} +9 -9
  5. package/dist/components/button/BaseButton.d.ts +3 -3
  6. package/dist/components/button/{BaseDecoratedButton-8e565d5c.mjs → BaseDecoratedButton-9280b7ce.mjs} +3 -3
  7. package/dist/components/button/BaseLinkButton-e79602f8.mjs +41 -0
  8. package/dist/components/button/BaseLinkButton.d.ts +18 -4
  9. package/dist/components/button/Button-ec434dd2.mjs +16 -0
  10. package/dist/components/button/Button.d.ts +1 -1
  11. package/dist/components/button/DecoratedButton-ab2e8ed4.mjs +21 -0
  12. package/dist/components/button/DecoratedButton.d.ts +3 -3
  13. package/dist/components/button/IconButton-537e3543.mjs +15 -0
  14. package/dist/components/button/baselink-button.scss +67 -0
  15. package/dist/components/button/button-shared.scss +0 -47
  16. package/dist/components/checkbox/{BaseCheckbox-7121b553.mjs → BaseCheckbox-9b7c43b3.mjs} +1 -1
  17. package/dist/components/checkbox/{Checkbox-1c4563e6.mjs → Checkbox-b534a84c.mjs} +2 -2
  18. package/dist/components/core/{Core-7125109d.mjs → Core-5cdbbcd4.mjs} +1 -1
  19. package/dist/components/core/{LightMode-e67119ed.mjs → LightMode-481a9782.mjs} +1 -1
  20. package/dist/components/core/{RiksTV-cc9756df.mjs → RiksTV-2cc96840.mjs} +2 -2
  21. package/dist/components/core/{Strim-aa5e0106.mjs → Strim-d7ebdcac.mjs} +2 -2
  22. package/dist/components/core/core.scss +1 -1
  23. package/dist/components/dropdown/{Dropdown-303a209f.mjs → Dropdown-3cf2ddf7.mjs} +1 -1
  24. package/dist/components/icons/{Arrow-99fd1aec.mjs → Arrow-48abbbdf.mjs} +1 -1
  25. package/dist/components/icons/{Chevron-53ae63f1.mjs → Chevron-4e0258de.mjs} +1 -1
  26. package/dist/components/icons/HeartToggle-a5a93ca7.mjs +2 -0
  27. package/dist/components/icons/{Icons-5a5dc9ba.mjs → Icons-32b173f0.mjs} +2 -2
  28. package/dist/components/index.d.ts +1 -1
  29. package/dist/components/list/{CheckmarkListItem-e5ed89b1.mjs → CheckmarkListItem-f97a2aae.mjs} +3 -3
  30. package/dist/components/list/{CrossmarkListItem-7cbcd904.mjs → CrossmarkListItem-60e093df.mjs} +2 -2
  31. package/dist/components/list/{List-bb36b86d.mjs → List-868fec40.mjs} +1 -1
  32. package/dist/components/list/{ListItem-8cbd4ee8.mjs → ListItem-fe58799f.mjs} +1 -1
  33. package/dist/components/list/{OrderedListItem-82670461.mjs → OrderedListItem-1a4b67c5.mjs} +1 -1
  34. package/dist/components/loader/{Loader-822d18a9.mjs → Loader-55215a54.mjs} +2 -2
  35. package/dist/components/loader/{RawLoader-56b0c399.mjs → RawLoader-15d14922.mjs} +1 -1
  36. package/dist/components/notificationDot/{NotificationDot-5b879a7c.mjs → NotificationDot-bec7aa7b.mjs} +1 -1
  37. package/dist/components/panel/{Info-c966d0cc.mjs → Info-3147cc01.mjs} +1 -1
  38. package/dist/components/panel/{Panel-36486e4c.mjs → Panel-c4bab68c.mjs} +5 -5
  39. package/dist/components/panel/{Success-0b604646.mjs → Success-590bfbb6.mjs} +1 -1
  40. package/dist/components/panel/{Warning-bc55935c.mjs → Warning-8b3edebd.mjs} +1 -1
  41. package/dist/components/progress/{CircularProgress-c7bca73a.mjs → CircularProgress-ac261d40.mjs} +2 -2
  42. package/dist/components/progress/{Progress-7ff6c26b.mjs → Progress-068e34f7.mjs} +1 -1
  43. package/dist/components/spacing/{Gutter-fdb118c7.mjs → Gutter-e0dfcdc5.mjs} +1 -1
  44. package/dist/components/spacing/{GutterPadding-8c480038.mjs → GutterPadding-bd018bd6.mjs} +1 -1
  45. package/dist/components/textfield/{TextField-b0018ce1.mjs → TextField-e187310b.mjs} +2 -2
  46. package/dist/components/toggle/{FieldSet-9a786292.mjs → FieldSet-00f1fc56.mjs} +1 -1
  47. package/dist/components/toggle/{RadioToggle-87e58815.mjs → RadioToggle-4df6de4c.mjs} +3 -3
  48. package/dist/components/toggleButton/{ToggleButton-2e961f34.mjs → ToggleButton-d50d64ec.mjs} +2 -2
  49. package/dist/components/toggleInlineButton/{ToggleInlineButton-f57f3fe9.mjs → ToggleInlineButton-ff76d094.mjs} +2 -2
  50. package/dist/components/toggleLinkButton/{ToggleLinkButton-09fe483c.mjs → ToggleLinkButton-c6127fa1.mjs} +3 -3
  51. package/dist/components/typography/{Typography-afd3a0a3.mjs → Typography-61ad3ca9.mjs} +1 -1
  52. package/dist/shared-components.mjs +51 -53
  53. package/dist/style.css +1 -1
  54. package/package.json +1 -1
  55. package/dist/components/button/ArrowButton-0f3b0aa2.mjs +0 -48
  56. package/dist/components/button/BaseLinkButton-327f2203.mjs +0 -42
  57. package/dist/components/button/Button-eb600417.mjs +0 -17
  58. package/dist/components/button/DecoratedButton-5faedb72.mjs +0 -21
  59. package/dist/components/button/IconButton-6e1085a5.mjs +0 -15
  60. package/dist/components/button/LinkButton-3d2c5c0a.mjs +0 -8
  61. package/dist/components/button/LinkButton.d.ts +0 -5
  62. package/dist/components/button/link-button.scss +0 -22
  63. package/dist/components/icons/HeartToggle-b67f1fc7.mjs +0 -2
  64. /package/dist/components/button/{LinkButton.test.d.ts → BaseLinkButton.test.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  import Ce, { useRef as ir, useEffect as ur } from "react";
2
- import { C as sr } from "../icons/Chevron-53ae63f1.mjs";
3
- var D = {}, lr = {
2
+ import { C as sr } from "../icons/Chevron-4e0258de.mjs";
3
+ var k = {}, fr = {
4
4
  get exports() {
5
- return D;
5
+ return k;
6
6
  },
7
7
  set exports(m) {
8
- D = m;
8
+ k = m;
9
9
  }
10
10
  }, I = {};
11
11
  /**
@@ -18,22 +18,22 @@ var D = {}, lr = {
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
20
  var Re;
21
- function fr() {
21
+ function lr() {
22
22
  if (Re)
23
23
  return I;
24
24
  Re = 1;
25
- var m = Ce, b = Symbol.for("react.element"), w = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, R = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
26
- function _(T, f, S) {
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 _(T, l, P) {
27
27
  var v, h = {}, C = null, W = null;
28
- S !== void 0 && (C = "" + S), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (W = f.ref);
29
- for (v in f)
30
- g.call(f, v) && !P.hasOwnProperty(v) && (h[v] = f[v]);
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) && (h[v] = l[v]);
31
31
  if (T && T.defaultProps)
32
- for (v in f = T.defaultProps, f)
33
- h[v] === void 0 && (h[v] = f[v]);
32
+ for (v in l = T.defaultProps, l)
33
+ h[v] === void 0 && (h[v] = l[v]);
34
34
  return { $$typeof: b, type: T, key: C, ref: W, props: h, _owner: R.current };
35
35
  }
36
- return I.Fragment = w, I.jsx = _, I.jsxs = _, I;
36
+ return I.Fragment = D, I.jsx = _, I.jsxs = _, I;
37
37
  }
38
38
  var $ = {};
39
39
  /**
@@ -48,14 +48,14 @@ var $ = {};
48
48
  var Te;
49
49
  function cr() {
50
50
  return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
51
- var m = Ce, b = Symbol.for("react.element"), w = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), T = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), X = Symbol.iterator, Oe = "@@iterator";
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"), _ = 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"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), X = Symbol.iterator, Oe = "@@iterator";
52
52
  function we(e) {
53
53
  if (e === null || typeof e != "object")
54
54
  return null;
55
55
  var r = X && e[X] || e[Oe];
56
56
  return typeof r == "function" ? r : null;
57
57
  }
58
- var x = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
+ var S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
59
  function c(e) {
60
60
  {
61
61
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
@@ -65,7 +65,7 @@ function cr() {
65
65
  }
66
66
  function Pe(e, r, t) {
67
67
  {
68
- var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum();
68
+ var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
69
69
  i !== "" && (r += "%s", t = t.concat([i]));
70
70
  var u = t.map(function(o) {
71
71
  return String(o);
@@ -76,7 +76,7 @@ function cr() {
76
76
  var Se = !1, xe = !1, je = !1, ke = !1, De = !1, Z;
77
77
  Z = Symbol.for("react.module.reference");
78
78
  function Fe(e) {
79
- return !!(typeof e == "string" || typeof e == "function" || e === g || e === P || De || e === R || e === S || e === v || ke || e === W || Se || xe || je || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === h || e.$$typeof === _ || e.$$typeof === T || e.$$typeof === f || // This needs to include all possible module reference object
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 === h || e.$$typeof === _ || e.$$typeof === T || e.$$typeof === l || // This needs to include all possible module reference object
80
80
  // types supported by any Flight configuration anywhere since
81
81
  // we don't know which Flight build this will end up being used
82
82
  // with.
@@ -92,7 +92,7 @@ function cr() {
92
92
  function Q(e) {
93
93
  return e.displayName || "Context";
94
94
  }
95
- function y(e) {
95
+ function g(e) {
96
96
  if (e == null)
97
97
  return null;
98
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")
@@ -100,15 +100,15 @@ function cr() {
100
100
  if (typeof e == "string")
101
101
  return e;
102
102
  switch (e) {
103
- case g:
103
+ case y:
104
104
  return "Fragment";
105
- case w:
105
+ case D:
106
106
  return "Portal";
107
- case P:
107
+ case w:
108
108
  return "Profiler";
109
109
  case R:
110
110
  return "StrictMode";
111
- case S:
111
+ case P:
112
112
  return "Suspense";
113
113
  case v:
114
114
  return "SuspenseList";
@@ -121,15 +121,15 @@ function cr() {
121
121
  case _:
122
122
  var t = e;
123
123
  return Q(t._context) + ".Provider";
124
- case f:
124
+ case l:
125
125
  return Ae(e, e.render, "ForwardRef");
126
126
  case h:
127
127
  var n = e.displayName || null;
128
- return n !== null ? n : y(e.type) || "Memo";
128
+ return n !== null ? n : g(e.type) || "Memo";
129
129
  case C: {
130
130
  var i = e, u = i._payload, o = i._init;
131
131
  try {
132
- return y(o(u));
132
+ return g(o(u));
133
133
  } catch {
134
134
  return null;
135
135
  }
@@ -199,7 +199,7 @@ function cr() {
199
199
  F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
200
  }
201
201
  }
202
- var U = x.ReactCurrentDispatcher, B;
202
+ var U = S.ReactCurrentDispatcher, B;
203
203
  function Y(e, r, t) {
204
204
  {
205
205
  if (B === void 0)
@@ -268,25 +268,25 @@ function cr() {
268
268
  if (E && n && typeof E.stack == "string") {
269
269
  for (var a = E.stack.split(`
270
270
  `), d = n.stack.split(`
271
- `), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
272
- l--;
273
- for (; s >= 1 && l >= 0; s--, l--)
274
- if (a[s] !== d[l]) {
275
- if (s !== 1 || l !== 1)
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
276
  do
277
- if (s--, l--, l < 0 || a[s] !== d[l]) {
277
+ if (s--, f--, f < 0 || a[s] !== d[f]) {
278
278
  var p = `
279
279
  ` + a[s].replace(" at new ", " at ");
280
280
  return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, p), p;
281
281
  }
282
- while (s >= 1 && l >= 0);
282
+ while (s >= 1 && f >= 0);
283
283
  break;
284
284
  }
285
285
  }
286
286
  } finally {
287
287
  q = !1, U.current = u, $e(), Error.prepareStackTrace = i;
288
288
  }
289
- var k = e ? e.displayName || e.name : "", be = k ? Y(k) : "";
289
+ var j = e ? e.displayName || e.name : "", be = j ? Y(j) : "";
290
290
  return typeof e == "function" && N.set(e, be), be;
291
291
  }
292
292
  function Ye(e, r, t) {
@@ -304,14 +304,14 @@ function cr() {
304
304
  if (typeof e == "string")
305
305
  return Y(e);
306
306
  switch (e) {
307
- case S:
307
+ case P:
308
308
  return Y("Suspense");
309
309
  case v:
310
310
  return Y("SuspenseList");
311
311
  }
312
312
  if (typeof e == "object")
313
313
  switch (e.$$typeof) {
314
- case f:
314
+ case l:
315
315
  return Ye(e.render);
316
316
  case h:
317
317
  return L(e.type, r, t);
@@ -325,13 +325,13 @@ function cr() {
325
325
  }
326
326
  return "";
327
327
  }
328
- var V = Object.prototype.hasOwnProperty, le = {}, fe = x.ReactDebugCurrentFrame;
328
+ var V = Object.prototype.hasOwnProperty, fe = {}, le = S.ReactDebugCurrentFrame;
329
329
  function M(e) {
330
330
  if (e) {
331
331
  var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
332
- fe.setExtraStackFrame(t);
332
+ le.setExtraStackFrame(t);
333
333
  } else
334
- fe.setExtraStackFrame(null);
334
+ le.setExtraStackFrame(null);
335
335
  }
336
336
  function Le(e, r, t, n, i) {
337
337
  {
@@ -348,7 +348,7 @@ function cr() {
348
348
  } catch (s) {
349
349
  a = s;
350
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 le) && (le[a.message] = !0, M(i), c("Failed %s type: %s", t, a.message), M(null));
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
352
  }
353
353
  }
354
354
  }
@@ -376,7 +376,7 @@ function cr() {
376
376
  if (Ue(e))
377
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
378
  }
379
- var A = x.ReactCurrentOwner, Be = {
379
+ var A = S.ReactCurrentOwner, Be = {
380
380
  key: !0,
381
381
  ref: !0,
382
382
  __self: !0,
@@ -401,8 +401,8 @@ function cr() {
401
401
  }
402
402
  function Ge(e, r) {
403
403
  if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
404
- var t = y(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', y(A.current.type), e.ref), G[t] = !0);
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
406
  }
407
407
  }
408
408
  function ze(e, r) {
@@ -468,14 +468,14 @@ function cr() {
468
468
  o[u] === void 0 && (o[u] = s[u]);
469
469
  }
470
470
  if (a || d) {
471
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
- a && ze(o, l), d && Ke(o, l);
471
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
+ a && ze(o, f), d && Ke(o, f);
473
473
  }
474
474
  return He(e, a, d, i, n, A.current, o);
475
475
  }
476
476
  }
477
- var z = x.ReactCurrentOwner, me = x.ReactDebugCurrentFrame;
478
- function j(e) {
477
+ var z = S.ReactCurrentOwner, me = S.ReactDebugCurrentFrame;
478
+ function x(e) {
479
479
  if (e) {
480
480
  var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
481
481
  me.setExtraStackFrame(t);
@@ -490,7 +490,7 @@ function cr() {
490
490
  function _e() {
491
491
  {
492
492
  if (z.current) {
493
- var e = y(z.current.type);
493
+ var e = g(z.current.type);
494
494
  if (e)
495
495
  return `
496
496
 
@@ -523,7 +523,7 @@ Check the top-level render call using <` + t + ">.");
523
523
  return r;
524
524
  }
525
525
  }
526
- function ye(e, r) {
526
+ function ge(e, r) {
527
527
  {
528
528
  if (!e._store || e._store.validated || e.key != null)
529
529
  return;
@@ -533,7 +533,7 @@ Check the top-level render call using <` + t + ">.");
533
533
  return;
534
534
  he[t] = !0;
535
535
  var n = "";
536
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + y(e._owner.type) + "."), j(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), j(null);
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
537
  }
538
538
  }
539
539
  function Ee(e, r) {
@@ -543,7 +543,7 @@ Check the top-level render call using <` + t + ">.");
543
543
  if (J(e))
544
544
  for (var t = 0; t < e.length; t++) {
545
545
  var n = e[t];
546
- H(n) && ye(n, r);
546
+ H(n) && ge(n, r);
547
547
  }
548
548
  else if (H(e))
549
549
  e._store && (e._store.validated = !0);
@@ -551,7 +551,7 @@ Check the top-level render call using <` + t + ">.");
551
551
  var i = we(e);
552
552
  if (typeof i == "function" && i !== e.entries)
553
553
  for (var u = i.call(e), o; !(o = u.next()).done; )
554
- H(o.value) && ye(o.value, r);
554
+ H(o.value) && ge(o.value, r);
555
555
  }
556
556
  }
557
557
  }
@@ -563,18 +563,18 @@ Check the top-level render call using <` + t + ">.");
563
563
  var t;
564
564
  if (typeof r == "function")
565
565
  t = r.propTypes;
566
- else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
566
+ else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
567
567
  // Inner props are checked in the reconciler.
568
568
  r.$$typeof === h))
569
569
  t = r.propTypes;
570
570
  else
571
571
  return;
572
572
  if (t) {
573
- var n = y(r);
573
+ var n = g(r);
574
574
  Le(t, e.props, "prop", n, e);
575
575
  } else if (r.PropTypes !== void 0 && !K) {
576
576
  K = !0;
577
- var i = y(r);
577
+ var i = g(r);
578
578
  c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
579
579
  }
580
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.");
@@ -585,14 +585,14 @@ Check the top-level render call using <` + t + ">.");
585
585
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
586
586
  var n = r[t];
587
587
  if (n !== "children" && n !== "key") {
588
- j(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
588
+ x(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
589
589
  break;
590
590
  }
591
591
  }
592
- e.ref !== null && (j(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
592
+ e.ref !== null && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
593
593
  }
594
594
  }
595
- function ge(e, r, t, n, i, u) {
595
+ function ye(e, r, t, n, i, u) {
596
596
  {
597
597
  var o = Fe(e);
598
598
  if (!o) {
@@ -601,64 +601,62 @@ Check the top-level render call using <` + t + ">.");
601
601
  var d = Ze(i);
602
602
  d ? a += d : a += _e();
603
603
  var s;
604
- e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (s = "<" + (y(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);
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
605
  }
606
- var l = Xe(e, r, t, i, u);
607
- if (l == null)
608
- return l;
606
+ var f = Xe(e, r, t, i, u);
607
+ if (f == null)
608
+ return f;
609
609
  if (o) {
610
610
  var p = r.children;
611
611
  if (p !== void 0)
612
612
  if (n)
613
613
  if (J(p)) {
614
- for (var k = 0; k < p.length; k++)
615
- Ee(p[k], e);
614
+ for (var j = 0; j < p.length; j++)
615
+ Ee(p[j], e);
616
616
  Object.freeze && Object.freeze(p);
617
617
  } else
618
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
619
  else
620
620
  Ee(p, e);
621
621
  }
622
- return e === g ? rr(l) : er(l), l;
622
+ return e === y ? rr(f) : er(f), f;
623
623
  }
624
624
  }
625
625
  function tr(e, r, t) {
626
- return ge(e, r, t, !0);
626
+ return ye(e, r, t, !0);
627
627
  }
628
628
  function nr(e, r, t) {
629
- return ge(e, r, t, !1);
629
+ return ye(e, r, t, !1);
630
630
  }
631
631
  var ar = nr, or = tr;
632
- $.Fragment = g, $.jsx = ar, $.jsxs = or;
632
+ $.Fragment = y, $.jsx = ar, $.jsxs = or;
633
633
  }()), $;
634
634
  }
635
635
  (function(m) {
636
- process.env.NODE_ENV === "production" ? m.exports = fr() : m.exports = cr();
637
- })(lr);
636
+ process.env.NODE_ENV === "production" ? m.exports = lr() : m.exports = cr();
637
+ })(fr);
638
638
  const pr = ({
639
639
  initialOpen: m = !0,
640
640
  children: b,
641
- heading: w,
642
- className: g = "",
641
+ heading: D,
642
+ className: y = "",
643
643
  lightBackground: R = !1,
644
- ...P
644
+ ...w
645
645
  }) => {
646
646
  const _ = ir(null);
647
647
  return ur(() => {
648
648
  _.current && (_.current.open = m);
649
- }, [m]), /* @__PURE__ */ D.jsxs(
649
+ }, [m]), /* @__PURE__ */ k.jsxs(
650
650
  "details",
651
651
  {
652
652
  ref: _,
653
- "data-module": "accordion",
654
- "data-details-summary": w,
655
653
  "data-testid": "rds-accordion",
656
- className: `rds-accordion-details ${R ? "rds-accordion-details--light" : ""} ${R === "white" ? "rds-accordion-details--white" : ""} ${g}`,
657
- ...P,
654
+ className: `rds-accordion-details ${R ? "rds-accordion-details--light" : ""} ${R === "white" ? "rds-accordion-details--white" : ""} ${y}`,
655
+ ...w,
658
656
  children: [
659
- /* @__PURE__ */ D.jsxs("summary", { "data-testid": "rds-accordion-summary", className: "rds-accordion-details__summary", children: [
660
- /* @__PURE__ */ D.jsx(sr, {}),
661
- /* @__PURE__ */ D.jsx("div", { className: "rds-accordion-details__summary__content", children: w })
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 })
662
660
  ] }),
663
661
  b
664
662
  ]
@@ -667,5 +665,5 @@ const pr = ({
667
665
  };
668
666
  export {
669
667
  pr as A,
670
- D as j
668
+ k as j
671
669
  };
@@ -1,6 +1,6 @@
1
- import { j as r } from "../accordion/Accordion-99b76aba.mjs";
1
+ import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
2
2
  import { forwardRef as b } from "react";
3
- import { S as d } from "../typography/Typography-afd3a0a3.mjs";
3
+ import { S as d } from "../typography/Typography-61ad3ca9.mjs";
4
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
5
  const t = n === s.length - 1;
6
6
  return /* @__PURE__ */ r.jsx(
@@ -0,0 +1,48 @@
1
+ import { j as s } from "../accordion/Accordion-5e72e67b.mjs";
2
+ import { forwardRef as n } from "react";
3
+ import { P as u, S as w, T as d } from "./DecoratedButton-ab2e8ed4.mjs";
4
+ import { A as c } from "../icons/Arrow-48abbbdf.mjs";
5
+ const e = () => /* @__PURE__ */ s.jsx(c, {}), m = n(
6
+ ({ forwards: r = !0, className: o = "", ...t }, a) => /* @__PURE__ */ s.jsx(
7
+ u,
8
+ {
9
+ className: `${o} ${r ? "rds-arrow-button--forwards" : "rds-arrow-button--backwards"}`,
10
+ arrow: e,
11
+ buttonType: "rds-arrow-button",
12
+ ref: a,
13
+ ...t
14
+ }
15
+ )
16
+ );
17
+ m.displayName = "PrimaryArrowButton";
18
+ const b = n(
19
+ ({ forwards: r = !0, className: o = "", ...t }, a) => /* @__PURE__ */ s.jsx(
20
+ w,
21
+ {
22
+ className: `${o} ${r ? "rds-arrow-button--forwards" : "rds-arrow-button--backwards"}`,
23
+ arrow: e,
24
+ buttonType: "rds-arrow-button",
25
+ ref: a,
26
+ ...t
27
+ }
28
+ )
29
+ );
30
+ b.displayName = "SecondaryArrowButton";
31
+ const y = n(
32
+ ({ forwards: r = !0, className: o = "", ...t }, a) => /* @__PURE__ */ s.jsx(
33
+ d,
34
+ {
35
+ className: `${o} ${r ? "rds-arrow-button--forwards" : "rds-arrow-button--backwards"}`,
36
+ arrow: e,
37
+ buttonType: "rds-arrow-button",
38
+ ref: a,
39
+ ...t
40
+ }
41
+ )
42
+ );
43
+ y.displayName = "TertiaryArrowButton";
44
+ export {
45
+ m as P,
46
+ b as S,
47
+ y as T
48
+ };
@@ -1,17 +1,17 @@
1
- import { j as s } from "../accordion/Accordion-99b76aba.mjs";
1
+ import { j as s } from "../accordion/Accordion-5e72e67b.mjs";
2
2
  import { forwardRef as c } from "react";
3
3
  const f = c(
4
4
  ({
5
5
  children: d,
6
- buttonType: r,
7
- buttonStyle: n,
6
+ buttonType: n,
7
+ buttonStyle: r,
8
8
  type: o = "button",
9
9
  isLoading: t = !1,
10
10
  lightBackground: a = !1,
11
11
  transparent: i = !1,
12
- disabled: l,
13
- className: u = "",
14
- "aria-busy": b,
12
+ disabled: u,
13
+ className: b = "",
14
+ "aria-busy": l,
15
15
  icon: e,
16
16
  iconClass: m = "",
17
17
  ...$
@@ -21,8 +21,8 @@ const f = c(
21
21
  type: o,
22
22
  ...$,
23
23
  ref: _,
24
- disabled: t || l,
25
- "aria-busy": t || b,
24
+ disabled: t || u,
25
+ "aria-busy": t || l,
26
26
  className: `
27
27
  ${n}
28
28
  rds-button__shared
@@ -32,7 +32,7 @@ const f = c(
32
32
  ${a ? "rds-light" : ""}
33
33
  ${a === "white" ? "rds-white" : ""}
34
34
  ${i ? "rds-transparent" : ""}
35
- ${u}`,
35
+ ${b}`,
36
36
  children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
37
37
  e && /* @__PURE__ */ s.jsx("span", { "data-testid": "rds-button__icon", className: `rds-button__icon ${m}`, children: /* @__PURE__ */ s.jsx(e, {}) }),
38
38
  d
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from "react";
2
- export type ButtonVariants = "primary" | "secondary" | "tertiary";
2
+ export type ButtonStyles = "primary" | "secondary" | "tertiary";
3
3
  export type ButtonBackgroundStyles = boolean | "white";
4
4
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  isLoading?: boolean;
@@ -12,7 +12,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
12
12
  iconClass?: string;
13
13
  }
14
14
  export interface BaseButtonProps extends ButtonProps {
15
- buttonType: ButtonVariants;
16
- buttonStyle: "rds-button" | "rds-arrow-button" | "rds-icon-button";
15
+ buttonStyle: ButtonStyles;
16
+ buttonType: "rds-button" | "rds-arrow-button" | "rds-icon-button";
17
17
  }
18
18
  export declare const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,8 +1,8 @@
1
- import { j as s } from "../accordion/Accordion-99b76aba.mjs";
1
+ import { j as s } from "../accordion/Accordion-5e72e67b.mjs";
2
2
  import { forwardRef as c } from "react";
3
- import { B as m } from "./BaseButton-078de736.mjs";
3
+ import { B as m } from "./BaseButton-82123b7e.mjs";
4
4
  const x = c(
5
- ({ children: n, buttonStyle: t, postfix: r, icon: a, arrow: o, iconClass: e = "", ...d }, i) => /* @__PURE__ */ s.jsx(m, { buttonStyle: t, ref: i, ...d, children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
5
+ ({ children: n, buttonType: t, postfix: r, icon: a, arrow: o, iconClass: e = "", ...d }, i) => /* @__PURE__ */ s.jsx(m, { buttonType: t, ref: i, ...d, children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
6
6
  a && /* @__PURE__ */ s.jsx("span", { "data-testid": "rds-button__icon", className: `rds-button__icon ${e}`, children: /* @__PURE__ */ s.jsx(a, {}) }),
7
7
  o && /* @__PURE__ */ s.jsx("span", { "data-testid": "rds-button__arrow", className: `rds-button__arrow ${e}`, children: /* @__PURE__ */ s.jsx(o, {}) }),
8
8
  n,
@@ -0,0 +1,41 @@
1
+ import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
2
+ import { forwardRef as h } from "react";
3
+ import "./ArrowButton-470c0575.mjs";
4
+ import { A as l } from "../icons/Arrow-48abbbdf.mjs";
5
+ const u = () => /* @__PURE__ */ r.jsx(l, {}), p = h(
6
+ ({
7
+ element: o,
8
+ buttonStyle: s = "primary",
9
+ className: n = "",
10
+ withArrow: t,
11
+ arrowBackward: d,
12
+ iconClass: e = "",
13
+ children: i,
14
+ lightBackground: a,
15
+ transparent: m,
16
+ ...b
17
+ }, c) => /* @__PURE__ */ r.jsx("div", { className: `rds-baselink-button ${n}`, children: /* @__PURE__ */ r.jsx(
18
+ o,
19
+ {
20
+ className: `
21
+ rds-button rds-button__shared
22
+ ${s === "highlighted" ? "rds-baselink-button--highlighted" : `rds-button__shared--${s}`}
23
+ ${a ? "rds-light" : ""}
24
+ ${a === "white" ? "rds-white" : ""}
25
+ ${m && s === "secondary" ? "rds-transparent" : ""}
26
+ ${t ? "rds-arrow-button" : ""}
27
+ ${t === void 0 ? "" : d ? "rds-arrow-button--backwards" : "rds-arrow-button--forwards"}
28
+ `,
29
+ ref: c,
30
+ ...b,
31
+ children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
32
+ t && /* @__PURE__ */ r.jsx("span", { "data-testid": "rds-button__arrow", className: `rds-button__arrow ${e}`, children: /* @__PURE__ */ r.jsx(u, {}) }),
33
+ i
34
+ ] })
35
+ }
36
+ ) })
37
+ );
38
+ p.displayName = "BaseLinkButton";
39
+ export {
40
+ p as B
41
+ };
@@ -1,17 +1,31 @@
1
1
  /// <reference types="react" />
2
- import { ButtonBackgroundStyles } from "./BaseButton";
3
- export type LinkButtonVariants = "primary" | "secondary" | "tertiary" | "highlighted";
2
+ import { ButtonBackgroundStyles, ButtonStyles } from "./BaseButton";
3
+ export type LinkButtonStyles = ButtonStyles | "highlighted";
4
4
  interface BaseLinkButtonPropsWithElement<ElementProps> {
5
5
  element: (props: ElementProps) => JSX.Element;
6
- variant?: LinkButtonVariants;
6
+ buttonStyle?: LinkButtonStyles;
7
7
  lightBackground?: ButtonBackgroundStyles;
8
8
  transparent?: boolean;
9
9
  className?: string;
10
10
  withArrow?: boolean;
11
- arrowForward?: boolean;
11
+ arrowBackward?: boolean;
12
12
  iconClass?: string;
13
13
  }
14
14
  type Props<ElementProps> = BaseLinkButtonPropsWithElement<ElementProps> & ElementProps;
15
15
  export type BaseLinkButtonProps<ElementProps> = Omit<Props<ElementProps>, "element">;
16
+ /**
17
+ * We don't know the type of the element being passed (react router link, wouter link, etc),
18
+ * so we let it through. You should create a wrapper component in your
19
+ * client app to add correct types back.
20
+ *
21
+ * @example
22
+ * // LinkProps imported from react-router-dom
23
+ * type LinkBtnProps = BaseLinkButtonProps<LinkProps>;
24
+ *
25
+ * const LinkBtn = ((props: LinkBtnProps) => (
26
+ * <BaseLinkButton element={Link} {...props} />
27
+ * ))
28
+ * const TestApp = () => <LinkBtn to="#">React Router Link</LinkBtn>
29
+ */
16
30
  export declare const BaseLinkButton: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
17
31
  export {};
@@ -0,0 +1,16 @@
1
+ import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
2
+ import { forwardRef as n } from "react";
3
+ import { B as a } from "./BaseButton-82123b7e.mjs";
4
+ import "./ArrowButton-470c0575.mjs";
5
+ import "./BaseLinkButton-e79602f8.mjs";
6
+ const s = n((t, o) => /* @__PURE__ */ r.jsx(a, { buttonType: "rds-button", buttonStyle: "primary", ref: o, ...t }));
7
+ s.displayName = "PrimaryButton";
8
+ const e = n((t, o) => /* @__PURE__ */ r.jsx(a, { buttonType: "rds-button", buttonStyle: "secondary", ref: o, ...t }));
9
+ e.displayName = "SecondaryButton";
10
+ const y = n((t, o) => /* @__PURE__ */ r.jsx(a, { buttonType: "rds-button", buttonStyle: "tertiary", ref: o, ...t }));
11
+ y.displayName = "TertiaryButton";
12
+ export {
13
+ s as P,
14
+ e as S,
15
+ y as T
16
+ };