@rikstv/shared-components 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/{Accordion-4b8edd28.mjs → Accordion-5e72e67b.mjs} +42 -42
- package/dist/components/breadcrumb/{Breadcrumb-ab3e70da.mjs → Breadcrumb-19678339.mjs} +2 -2
- package/dist/components/button/{ArrowButton-af5de307.mjs → ArrowButton-4fa3c028.mjs} +3 -3
- package/dist/components/button/{BaseButton-4f6e9dd4.mjs → BaseButton-4350803a.mjs} +1 -1
- package/dist/components/button/{BaseDecoratedButton-c5799b0f.mjs → BaseDecoratedButton-510bde9f.mjs} +2 -2
- package/dist/components/button/{BaseLinkButton-348be18c.mjs → BaseLinkButton-d325fecb.mjs} +3 -3
- package/dist/components/button/{Button-4e09c58d.mjs → Button-3754ac0a.mjs} +5 -5
- package/dist/components/button/{DecoratedButton-ab90a6bd.mjs → DecoratedButton-373af81a.mjs} +3 -3
- package/dist/components/button/{IconButton-dd3478ff.mjs → IconButton-be3ae8eb.mjs} +3 -3
- package/dist/components/button/{LinkButton-85fc759b.mjs → LinkButton-3a3f73b6.mjs} +2 -2
- package/dist/components/checkbox/{BaseCheckbox-6fed1663.mjs → BaseCheckbox-9b7c43b3.mjs} +1 -1
- package/dist/components/checkbox/{Checkbox-cc58a275.mjs → Checkbox-b534a84c.mjs} +2 -2
- package/dist/components/core/{Core-ba0340f6.mjs → Core-5cdbbcd4.mjs} +1 -1
- package/dist/components/core/{LightMode-b458f91d.mjs → LightMode-481a9782.mjs} +1 -1
- package/dist/components/core/{RiksTV-698a6154.mjs → RiksTV-2cc96840.mjs} +2 -2
- package/dist/components/core/{Strim-51ea8e08.mjs → Strim-d7ebdcac.mjs} +2 -2
- package/dist/components/dropdown/Dropdown-499736ab.mjs +35 -0
- package/dist/components/dropdown/Dropdown.d.ts +19 -0
- package/dist/components/dropdown/dropdown.scss +59 -0
- package/dist/components/dropdown/dropdown.test.d.ts +1 -0
- package/dist/components/icons/{Arrow-feb3e25e.mjs → Arrow-48abbbdf.mjs} +1 -1
- package/dist/components/icons/Chevron-4e0258de.mjs +24 -0
- package/dist/components/icons/HeartToggle-a5a93ca7.mjs +2 -0
- package/dist/components/icons/Icons-32b173f0.mjs +7 -0
- package/dist/components/icons/Icons.d.ts +7 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/components/list/CheckmarkListItem-f97a2aae.mjs +44 -0
- package/dist/components/list/CheckmarkListItem.scss +7 -26
- package/dist/components/list/{CrossmarkListItem-348c226a.mjs → CrossmarkListItem-60e093df.mjs} +2 -2
- package/dist/components/list/CrossmarkListItem.scss +3 -4
- package/dist/components/list/{List-86ad4810.mjs → List-868fec40.mjs} +1 -1
- package/dist/components/list/List.scss +2 -1
- package/dist/components/list/{ListItem-4e47bb2e.mjs → ListItem-fe58799f.mjs} +1 -1
- package/dist/components/list/ListItem.scss +5 -5
- package/dist/components/list/{OrderedListItem-a70598a1.mjs → OrderedListItem-1a4b67c5.mjs} +1 -1
- package/dist/components/loader/{Loader-7ab4a8f0.mjs → Loader-55215a54.mjs} +2 -2
- package/dist/components/loader/{RawLoader-7e00f143.mjs → RawLoader-15d14922.mjs} +1 -1
- package/dist/components/notificationDot/{NotificationDot-b03fa811.mjs → NotificationDot-bec7aa7b.mjs} +1 -1
- package/dist/components/panel/{Info-7fe85f53.mjs → Info-3147cc01.mjs} +1 -1
- package/dist/components/panel/{Panel-3704cf42.mjs → Panel-c4bab68c.mjs} +5 -5
- package/dist/components/panel/{Success-c116cc05.mjs → Success-590bfbb6.mjs} +1 -1
- package/dist/components/panel/{Warning-fa1839e3.mjs → Warning-8b3edebd.mjs} +1 -1
- package/dist/components/progress/{CircularProgress-01a66141.mjs → CircularProgress-ac261d40.mjs} +2 -2
- package/dist/components/progress/{Progress-ef42810b.mjs → Progress-068e34f7.mjs} +1 -1
- package/dist/components/spacing/{Gutter-32112716.mjs → Gutter-e0dfcdc5.mjs} +1 -1
- package/dist/components/spacing/{GutterPadding-6be6c9d9.mjs → GutterPadding-bd018bd6.mjs} +1 -1
- package/dist/components/textfield/{TextField-765a87bf.mjs → TextField-e62bbdd1.mjs} +2 -2
- package/dist/components/toggle/{FieldSet-4bdc4b7e.mjs → FieldSet-00f1fc56.mjs} +1 -1
- package/dist/components/toggle/{RadioToggle-1528c002.mjs → RadioToggle-5ddf1bfd.mjs} +3 -3
- package/dist/components/toggleButton/{ToggleButton-a2d4302f.mjs → ToggleButton-d50d64ec.mjs} +2 -2
- package/dist/components/toggleInlineButton/{ToggleInlineButton-1e480eaa.mjs → ToggleInlineButton-ff76d094.mjs} +2 -2
- package/dist/components/toggleLinkButton/{ToggleLinkButton-08c60e4d.mjs → ToggleLinkButton-c6127fa1.mjs} +3 -3
- package/dist/components/typography/{Typography-b748b77a.mjs → Typography-61ad3ca9.mjs} +1 -1
- package/dist/shared-components.mjs +114 -110
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/icons/Chevron-ef147695.mjs +0 -13
- package/dist/components/list/CheckmarkListItem-f9df7013.mjs +0 -38
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ce, { useRef as ir, useEffect as ur } from "react";
|
|
2
|
-
import { C as sr } from "../icons/Chevron-
|
|
2
|
+
import { C as sr } from "../icons/Chevron-4e0258de.mjs";
|
|
3
3
|
var k = {}, fr = {
|
|
4
4
|
get exports() {
|
|
5
5
|
return k;
|
|
@@ -7,7 +7,7 @@ var k = {}, fr = {
|
|
|
7
7
|
set exports(m) {
|
|
8
8
|
k = m;
|
|
9
9
|
}
|
|
10
|
-
},
|
|
10
|
+
}, I = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -20,22 +20,22 @@ var k = {}, fr = {
|
|
|
20
20
|
var Re;
|
|
21
21
|
function lr() {
|
|
22
22
|
if (Re)
|
|
23
|
-
return
|
|
23
|
+
return I;
|
|
24
24
|
Re = 1;
|
|
25
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
|
|
27
|
-
var v,
|
|
26
|
+
function _(T, l, P) {
|
|
27
|
+
var v, h = {}, C = null, W = null;
|
|
28
28
|
P !== void 0 && (C = "" + P), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (W = l.ref);
|
|
29
29
|
for (v in l)
|
|
30
|
-
y.call(l, v) && !w.hasOwnProperty(v) && (
|
|
30
|
+
y.call(l, v) && !w.hasOwnProperty(v) && (h[v] = l[v]);
|
|
31
31
|
if (T && T.defaultProps)
|
|
32
32
|
for (v in l = T.defaultProps, l)
|
|
33
|
-
|
|
34
|
-
return { $$typeof: b, type: T, key: C, ref: W, props:
|
|
33
|
+
h[v] === void 0 && (h[v] = l[v]);
|
|
34
|
+
return { $$typeof: b, type: T, key: C, ref: W, props: h, _owner: R.current };
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return I.Fragment = D, I.jsx = _, I.jsxs = _, I;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var $ = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -48,7 +48,7 @@ var I = {};
|
|
|
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"), D = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"),
|
|
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;
|
|
@@ -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 === 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 ===
|
|
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.
|
|
@@ -118,12 +118,12 @@ function cr() {
|
|
|
118
118
|
case T:
|
|
119
119
|
var r = e;
|
|
120
120
|
return Q(r) + ".Consumer";
|
|
121
|
-
case
|
|
121
|
+
case _:
|
|
122
122
|
var t = e;
|
|
123
123
|
return Q(t._context) + ".Provider";
|
|
124
124
|
case l:
|
|
125
125
|
return Ae(e, e.render, "ForwardRef");
|
|
126
|
-
case
|
|
126
|
+
case h:
|
|
127
127
|
var n = e.displayName || null;
|
|
128
128
|
return n !== null ? n : g(e.type) || "Memo";
|
|
129
129
|
case C: {
|
|
@@ -141,7 +141,7 @@ function cr() {
|
|
|
141
141
|
function ue() {
|
|
142
142
|
}
|
|
143
143
|
ue.__reactDisabledLog = !0;
|
|
144
|
-
function
|
|
144
|
+
function Ie() {
|
|
145
145
|
{
|
|
146
146
|
if (F === 0) {
|
|
147
147
|
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
@@ -164,7 +164,7 @@ function cr() {
|
|
|
164
164
|
F++;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function $e() {
|
|
168
168
|
{
|
|
169
169
|
if (F--, F === 0) {
|
|
170
170
|
var e = {
|
|
@@ -199,27 +199,27 @@ 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 = S.ReactCurrentDispatcher,
|
|
202
|
+
var U = S.ReactCurrentDispatcher, B;
|
|
203
203
|
function Y(e, r, t) {
|
|
204
204
|
{
|
|
205
|
-
if (
|
|
205
|
+
if (B === void 0)
|
|
206
206
|
try {
|
|
207
207
|
throw Error();
|
|
208
208
|
} catch (i) {
|
|
209
209
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
210
|
-
|
|
210
|
+
B = n && n[1] || "";
|
|
211
211
|
}
|
|
212
212
|
return `
|
|
213
|
-
` +
|
|
213
|
+
` + B + e;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var q = !1, N;
|
|
217
217
|
{
|
|
218
218
|
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
219
219
|
N = new We();
|
|
220
220
|
}
|
|
221
221
|
function se(e, r) {
|
|
222
|
-
if (!e ||
|
|
222
|
+
if (!e || q)
|
|
223
223
|
return "";
|
|
224
224
|
{
|
|
225
225
|
var t = N.get(e);
|
|
@@ -227,11 +227,11 @@ function cr() {
|
|
|
227
227
|
return t;
|
|
228
228
|
}
|
|
229
229
|
var n;
|
|
230
|
-
|
|
230
|
+
q = !0;
|
|
231
231
|
var i = Error.prepareStackTrace;
|
|
232
232
|
Error.prepareStackTrace = void 0;
|
|
233
233
|
var u;
|
|
234
|
-
u = U.current, U.current = null,
|
|
234
|
+
u = U.current, U.current = null, Ie();
|
|
235
235
|
try {
|
|
236
236
|
if (r) {
|
|
237
237
|
var o = function() {
|
|
@@ -284,7 +284,7 @@ function cr() {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
} finally {
|
|
287
|
-
|
|
287
|
+
q = !1, U.current = u, $e(), Error.prepareStackTrace = i;
|
|
288
288
|
}
|
|
289
289
|
var j = e ? e.displayName || e.name : "", be = j ? Y(j) : "";
|
|
290
290
|
return typeof e == "function" && N.set(e, be), be;
|
|
@@ -313,7 +313,7 @@ function cr() {
|
|
|
313
313
|
switch (e.$$typeof) {
|
|
314
314
|
case l:
|
|
315
315
|
return Ye(e.render);
|
|
316
|
-
case
|
|
316
|
+
case h:
|
|
317
317
|
return L(e.type, r, t);
|
|
318
318
|
case C: {
|
|
319
319
|
var n = e, i = n._payload, u = n._init;
|
|
@@ -376,14 +376,14 @@ 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 = S.ReactCurrentOwner,
|
|
379
|
+
var A = S.ReactCurrentOwner, Be = {
|
|
380
380
|
key: !0,
|
|
381
381
|
ref: !0,
|
|
382
382
|
__self: !0,
|
|
383
383
|
__source: !0
|
|
384
384
|
}, ve, pe, G;
|
|
385
385
|
G = {};
|
|
386
|
-
function
|
|
386
|
+
function qe(e) {
|
|
387
387
|
if (V.call(e, "ref")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
@@ -459,9 +459,9 @@ function cr() {
|
|
|
459
459
|
function Xe(e, r, t, n, i) {
|
|
460
460
|
{
|
|
461
461
|
var u, o = {}, a = null, d = null;
|
|
462
|
-
t !== void 0 && (de(t), a = "" + t), Je(r) && (de(r.key), a = "" + r.key),
|
|
462
|
+
t !== void 0 && (de(t), a = "" + t), Je(r) && (de(r.key), a = "" + r.key), qe(r) && (d = r.ref, Ge(r, i));
|
|
463
463
|
for (u in r)
|
|
464
|
-
V.call(r, u) && !
|
|
464
|
+
V.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
465
465
|
if (e && e.defaultProps) {
|
|
466
466
|
var s = e.defaultProps;
|
|
467
467
|
for (u in s)
|
|
@@ -487,7 +487,7 @@ function cr() {
|
|
|
487
487
|
function H(e) {
|
|
488
488
|
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function _e() {
|
|
491
491
|
{
|
|
492
492
|
if (z.current) {
|
|
493
493
|
var e = g(z.current.type);
|
|
@@ -510,10 +510,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
510
510
|
return "";
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
513
|
+
var he = {};
|
|
514
514
|
function Qe(e) {
|
|
515
515
|
{
|
|
516
|
-
var r =
|
|
516
|
+
var r = _e();
|
|
517
517
|
if (!r) {
|
|
518
518
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
519
519
|
t && (r = `
|
|
@@ -529,9 +529,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
529
529
|
return;
|
|
530
530
|
e._store.validated = !0;
|
|
531
531
|
var t = Qe(r);
|
|
532
|
-
if (
|
|
532
|
+
if (he[t])
|
|
533
533
|
return;
|
|
534
|
-
|
|
534
|
+
he[t] = !0;
|
|
535
535
|
var n = "";
|
|
536
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
|
}
|
|
@@ -565,7 +565,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
565
565
|
t = r.propTypes;
|
|
566
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
|
-
r.$$typeof ===
|
|
568
|
+
r.$$typeof === h))
|
|
569
569
|
t = r.propTypes;
|
|
570
570
|
else
|
|
571
571
|
return;
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
599
599
|
var a = "";
|
|
600
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
601
|
var d = Ze(i);
|
|
602
|
-
d ? a += d : a +=
|
|
602
|
+
d ? a += d : a += _e();
|
|
603
603
|
var s;
|
|
604
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
|
}
|
|
@@ -629,8 +629,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
629
629
|
return ye(e, r, t, !1);
|
|
630
630
|
}
|
|
631
631
|
var ar = nr, or = tr;
|
|
632
|
-
|
|
633
|
-
}()),
|
|
632
|
+
$.Fragment = y, $.jsx = ar, $.jsxs = or;
|
|
633
|
+
}()), $;
|
|
634
634
|
}
|
|
635
635
|
(function(m) {
|
|
636
636
|
process.env.NODE_ENV === "production" ? m.exports = lr() : m.exports = cr();
|
|
@@ -643,13 +643,13 @@ const pr = ({
|
|
|
643
643
|
lightBackground: R = !1,
|
|
644
644
|
...w
|
|
645
645
|
}) => {
|
|
646
|
-
const
|
|
646
|
+
const _ = ir(null);
|
|
647
647
|
return ur(() => {
|
|
648
|
-
|
|
648
|
+
_.current && (_.current.open = m);
|
|
649
649
|
}, [m]), /* @__PURE__ */ k.jsxs(
|
|
650
650
|
"details",
|
|
651
651
|
{
|
|
652
|
-
ref:
|
|
652
|
+
ref: _,
|
|
653
653
|
"data-testid": "rds-accordion",
|
|
654
654
|
className: `rds-accordion-details ${R ? "rds-accordion-details--light" : ""} ${R === "white" ? "rds-accordion-details--white" : ""} ${y}`,
|
|
655
655
|
...w,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
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-
|
|
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(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as s } from "../accordion/Accordion-
|
|
1
|
+
import { j as s } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { P as u, S as w, T as d } from "./DecoratedButton-
|
|
4
|
-
import { A as c } from "../icons/Arrow-
|
|
3
|
+
import { P as u, S as w, T as d } from "./DecoratedButton-373af81a.mjs";
|
|
4
|
+
import { A as c } from "../icons/Arrow-48abbbdf.mjs";
|
|
5
5
|
const e = () => /* @__PURE__ */ s.jsx(c, {}), m = n(
|
|
6
6
|
({ forwards: r = !0, className: t = "", ...o }, a) => /* @__PURE__ */ s.jsx(
|
|
7
7
|
u,
|
package/dist/components/button/{BaseDecoratedButton-c5799b0f.mjs → BaseDecoratedButton-510bde9f.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s } from "../accordion/Accordion-
|
|
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-
|
|
3
|
+
import { B as m } from "./BaseButton-4350803a.mjs";
|
|
4
4
|
const x = c(
|
|
5
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: [
|
|
6
6
|
a && /* @__PURE__ */ s.jsx("span", { "data-testid": "rds-button__icon", className: `rds-button__icon ${e}`, children: /* @__PURE__ */ s.jsx(a, {}) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as s } from "../accordion/Accordion-
|
|
1
|
+
import { j as s } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import "./ArrowButton-
|
|
4
|
-
import { A as c } from "../icons/Arrow-
|
|
3
|
+
import "./ArrowButton-4fa3c028.mjs";
|
|
4
|
+
import { A as c } from "../icons/Arrow-48abbbdf.mjs";
|
|
5
5
|
const p = () => /* @__PURE__ */ s.jsx(c, {}), x = b(
|
|
6
6
|
({
|
|
7
7
|
element: a,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { B as a } from "./BaseButton-
|
|
4
|
-
import "./ArrowButton-
|
|
5
|
-
import "./LinkButton-
|
|
6
|
-
import "./BaseLinkButton-
|
|
3
|
+
import { B as a } from "./BaseButton-4350803a.mjs";
|
|
4
|
+
import "./ArrowButton-4fa3c028.mjs";
|
|
5
|
+
import "./LinkButton-3a3f73b6.mjs";
|
|
6
|
+
import "./BaseLinkButton-d325fecb.mjs";
|
|
7
7
|
const s = n((t, o) => /* @__PURE__ */ r.jsx(a, { buttonStyle: "rds-button", buttonType: "primary", ref: o, ...t }));
|
|
8
8
|
s.displayName = "PrimaryButton";
|
|
9
9
|
const e = n((t, o) => /* @__PURE__ */ r.jsx(a, { buttonStyle: "rds-button", buttonType: "secondary", ref: o, ...t }));
|
package/dist/components/button/{DecoratedButton-ab90a6bd.mjs → DecoratedButton-373af81a.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as e } from "react";
|
|
3
|
-
import { B as a } from "./BaseDecoratedButton-
|
|
4
|
-
import "./ArrowButton-
|
|
3
|
+
import { B as a } from "./BaseDecoratedButton-510bde9f.mjs";
|
|
4
|
+
import "./ArrowButton-4fa3c028.mjs";
|
|
5
5
|
const s = e(
|
|
6
6
|
(t, o) => /* @__PURE__ */ r.jsx(a, { buttonType: "primary", ref: o, ...t })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as n } from "../accordion/Accordion-
|
|
1
|
+
import { j as n } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
|
-
import { P as a, S as s, T as e } from "./DecoratedButton-
|
|
4
|
-
import "./ArrowButton-
|
|
3
|
+
import { P as a, S as s, T as e } from "./DecoratedButton-373af81a.mjs";
|
|
4
|
+
import "./ArrowButton-4fa3c028.mjs";
|
|
5
5
|
const c = r((t, o) => /* @__PURE__ */ n.jsx(a, { buttonStyle: "rds-icon-button", ref: o, ...t }));
|
|
6
6
|
c.displayName = "PrimaryIconButton";
|
|
7
7
|
const i = r((t, o) => /* @__PURE__ */ n.jsx(s, { buttonStyle: "rds-icon-button", ref: o, ...t }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
|
-
import { B as n } from "./BaseLinkButton-
|
|
3
|
+
import { B as n } from "./BaseLinkButton-d325fecb.mjs";
|
|
4
4
|
const s = m((t, o) => /* @__PURE__ */ r.jsx(n, { element: "a", ...t, ref: o }));
|
|
5
5
|
s.displayName = "LinkButton";
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as x } from "../accordion/Accordion-
|
|
1
|
+
import { j as x } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { B as p } from "./BaseCheckbox-
|
|
3
|
+
import { B as p } from "./BaseCheckbox-9b7c43b3.mjs";
|
|
4
4
|
const i = b(
|
|
5
5
|
({ className: o = "", id: r, lightBackground: s, hasError: e, style: a, children: c, ...m }, t) => /* @__PURE__ */ x.jsx(
|
|
6
6
|
p,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i } from "../accordion/Accordion-
|
|
1
|
+
import { j as i } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
import { forwardRef as a } from "react";
|
|
3
3
|
const e = a(
|
|
4
4
|
({ children: o, className: s = "", ...r }, t) => /* @__PURE__ */ i.jsx("div", { ref: t, className: `rds-light ${s}`, ...r, children: o })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o } from "../accordion/Accordion-
|
|
2
|
-
import { C as s } from "./Core-
|
|
1
|
+
import { j as o } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
|
+
import { C as s } from "./Core-5cdbbcd4.mjs";
|
|
3
3
|
const m = ({ children: r }) => /* @__PURE__ */ o.jsx(s, { brand: "rtv", children: r });
|
|
4
4
|
export {
|
|
5
5
|
m as R
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o } from "../accordion/Accordion-
|
|
2
|
-
import { C as s } from "./Core-
|
|
1
|
+
import { j as o } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
|
+
import { C as s } from "./Core-5cdbbcd4.mjs";
|
|
3
3
|
const i = ({ children: r }) => /* @__PURE__ */ o.jsx(s, { brand: "strm", children: r });
|
|
4
4
|
export {
|
|
5
5
|
i as S
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { j as e } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
|
+
import { forwardRef as j } from "react";
|
|
3
|
+
const u = j(
|
|
4
|
+
({ label: d, id: n, options: r, onChange: i, className: o = "", defaultValue: t, rightIcon: m, leftIcon: a }, h) => {
|
|
5
|
+
var c;
|
|
6
|
+
const p = `dropdown-styling ${a ? "menu-with-left-icon" : ""} ${o}`;
|
|
7
|
+
return /* @__PURE__ */ e.jsxs("span", { className: p, children: [
|
|
8
|
+
/* @__PURE__ */ e.jsx("label", { htmlFor: n, children: d }),
|
|
9
|
+
/* @__PURE__ */ e.jsxs("div", { className: "select-wrapper", children: [
|
|
10
|
+
/* @__PURE__ */ e.jsx(
|
|
11
|
+
"select",
|
|
12
|
+
{
|
|
13
|
+
defaultValue: t,
|
|
14
|
+
value: (c = r.find((s) => s.selected)) == null ? void 0 : c.value,
|
|
15
|
+
id: n,
|
|
16
|
+
ref: h,
|
|
17
|
+
onChange: ({ target: s }) => {
|
|
18
|
+
const l = r.find((x) => x.value === s.value) ?? r[0];
|
|
19
|
+
i(l);
|
|
20
|
+
},
|
|
21
|
+
children: r.map((s, l) => /* @__PURE__ */ e.jsx("option", { value: s.value, children: s.title }, `dropdown-${d}-${s.title}-${l}`))
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
25
|
+
/* @__PURE__ */ e.jsx("div", { className: "left-icon", children: a }),
|
|
26
|
+
/* @__PURE__ */ e.jsx("div", { className: "right-icon", children: m })
|
|
27
|
+
] })
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
u.displayName = "Dropdown";
|
|
33
|
+
export {
|
|
34
|
+
u as D
|
|
35
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface BaseDropdownOption {
|
|
3
|
+
title: string;
|
|
4
|
+
value: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface DropdownProps<T extends BaseDropdownOption> {
|
|
8
|
+
label: string | JSX.Element;
|
|
9
|
+
id: string;
|
|
10
|
+
options: T[];
|
|
11
|
+
onChange: (option: T) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
isFilter?: boolean;
|
|
15
|
+
rightIcon?: JSX.Element;
|
|
16
|
+
leftIcon?: JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export declare const Dropdown: import("react").ForwardRefExoticComponent<DropdownProps<BaseDropdownOption> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "../core/mixin/focus.scss";
|
|
2
|
+
.dropdown-styling {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
.select-wrapper {
|
|
7
|
+
position: relative;
|
|
8
|
+
max-width: fit-content;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
select {
|
|
12
|
+
appearance: none;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
font-family: var(--rds-font-family-m-headlines);
|
|
15
|
+
background-color: var(--rds-button-tertiary-bg);
|
|
16
|
+
color: var(--common-button--primary-color) !important;
|
|
17
|
+
border-radius: var(--rds-roundness--button);
|
|
18
|
+
border-style: none;
|
|
19
|
+
height: 45px;
|
|
20
|
+
font-size: 1.125rem;
|
|
21
|
+
--fluid-block: max(0.65625rem, min(2vw, 0.78125rem));
|
|
22
|
+
--fluid-inline: max(1rem, min(2vw, 1.5rem));
|
|
23
|
+
padding-left: var(--fluid-inline);
|
|
24
|
+
padding-right: 35px;
|
|
25
|
+
/* hide scrollbars */
|
|
26
|
+
/* - in Firefox */
|
|
27
|
+
overflow: -moz-scrollbars-none;
|
|
28
|
+
scrollbar-width: none;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
&::-webkit-scrollbar {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
@include focus.with-keyboard-focus();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.menu-with-left-icon select {
|
|
38
|
+
padding-left: 46px;
|
|
39
|
+
padding-right: 42px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
label {
|
|
43
|
+
margin-bottom: var(--rds-spacing--16);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.right-icon {
|
|
47
|
+
position: absolute;
|
|
48
|
+
right: 9%;
|
|
49
|
+
top: calc(50% - 12px);
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.left-icon {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 8%;
|
|
56
|
+
top: calc(50% - 12px);
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as l } from "../accordion/Accordion-
|
|
1
|
+
import { j as l } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
2
|
const o = () => /* @__PURE__ */ l.jsx("svg", { "aria-label": "Pil", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx(
|
|
3
3
|
"path",
|
|
4
4
|
{
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as e } from "../accordion/Accordion-5e72e67b.mjs";
|
|
2
|
+
const i = () => /* @__PURE__ */ e.jsx(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
"aria-label": "Vertikal pil",
|
|
6
|
+
width: "24",
|
|
7
|
+
height: "25",
|
|
8
|
+
viewBox: "0 0 24 25",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /* @__PURE__ */ e.jsx(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M5.00962 7.91897C4.64323 7.53475 4.0374 7.52589 3.66026 7.89988C3.2872 8.26982 3.27911 8.87487 3.64154 9.25495L10.9543 16.9237C11.0883 17.0644 11.2493 17.1779 11.429 17.256C11.6089 17.3342 11.8031 17.375 12 17.375C12.1969 17.375 12.3911 17.3342 12.571 17.256C12.7508 17.1778 12.9121 17.0639 13.046 16.9234L20.3585 9.25495C20.7209 8.87486 20.7128 8.26982 20.3397 7.89988C19.9626 7.52589 19.3568 7.53475 18.9904 7.91897L12 15.2496L5.00962 7.91897Z",
|
|
17
|
+
fill: "white"
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
i as C
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import "../accordion/Accordion-5e72e67b.mjs";
|
|
3
|
+
import "./HeartToggle-a5a93ca7.mjs";
|
|
4
|
+
const l = (r) => /* @__PURE__ */ e.createElement("svg", { viewBox: "7 8 18 16", xmlns: "http://www.w3.org/2000/svg", "aria-label": "Avmerking", ...r }, /* @__PURE__ */ e.createElement("path", { fill: "currentColor", d: "M13.461 23.777c-.23 0-.45-.09-.61-.26l-5.61-5.79a.842.842 0 0 1 .02-1.2c.34-.33.88-.32 1.2.02l4.91 5.07 9.8-13.27c.28-.38.81-.46 1.19-.18.38.28.46.81.18 1.19l-10.39 14.07c-.15.2-.38.33-.63.34h-.06v.01Z" }));
|
|
5
|
+
export {
|
|
6
|
+
l as S
|
|
7
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Arrow } from "./Arrow";
|
|
2
|
+
import { Chevron } from "./Chevron";
|
|
3
|
+
import { HeartToggle } from "./HeartToggle";
|
|
4
|
+
import { ReactComponent as Checkmark } from "./Checkmark.svg";
|
|
3
5
|
import { ReactComponent as Heart } from "./HeartFilled.svg";
|
|
4
6
|
import { ReactComponent as HeartUnfilled } from "./HeartUnfilled.svg";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
export { Arrow, Play, Pause, Chevron, HeartToggle, Heart, HeartUnfilled };
|
|
7
|
+
import { ReactComponent as Pause } from "./Pause.svg";
|
|
8
|
+
import { ReactComponent as Play } from "./Play.svg";
|
|
9
|
+
export { Arrow, Checkmark, Chevron, Heart, HeartToggle, HeartUnfilled, Pause, Play };
|
|
@@ -10,6 +10,7 @@ export { Breadcrumb, BreadcrumbCurrent } from "./breadcrumb/Breadcrumb";
|
|
|
10
10
|
export { Progress } from "./progress/Progress";
|
|
11
11
|
export { Loader } from "./loader/Loader";
|
|
12
12
|
export { CircularProgress } from "./progress/CircularProgress";
|
|
13
|
+
export { Dropdown } from "./dropdown/Dropdown";
|
|
13
14
|
export { PrimaryButton, SecondaryButton, TertiaryButton, LinkButton, BaseLinkButton } from "./button/Button";
|
|
14
15
|
export { PrimaryArrowButton, SecondaryArrowButton, TertiaryArrowButton } from "./button/ArrowButton";
|
|
15
16
|
export { PrimaryIconButton, SecondaryIconButton, TertiaryIconButton } from "./button/IconButton";
|