@rikstv/shared-components 3.0.43 → 3.0.45-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.
- package/CHANGELOG.md +16 -0
- package/dist/components/accordion/Accordion-C-Lu1AN3.mjs +311 -0
- package/dist/components/accordion/accordion.scss +5 -10
- package/dist/components/alert/{Alert-C3DRURBA.mjs → Alert-D1ytM5Dq.mjs} +4 -4
- package/dist/components/breadcrumb/{Breadcrumb-ou16wYBD.mjs → Breadcrumb-Dpi45ZU-.mjs} +2 -2
- package/dist/components/button/{ArrowButton-C0WywcBN.mjs → ArrowButton-DMr9aNBX.mjs} +3 -3
- package/dist/components/button/{BaseButton-B2fMKlSI.mjs → BaseButton-BDwLDH8l.mjs} +1 -1
- package/dist/components/button/BaseButton.d.ts +1 -0
- package/dist/components/button/{BaseDecoratedButton-C0cesANX.mjs → BaseDecoratedButton-ChPN1ek7.mjs} +2 -2
- package/dist/components/button/BaseDecoratedButton.d.ts +1 -0
- package/dist/components/button/{BaseLinkButton-CquLmqew.mjs → BaseLinkButton-BsJ_29CO.mjs} +3 -3
- package/dist/components/button/BaseLinkButton.d.ts +1 -0
- package/dist/components/button/{Button-Bs_Tl8uJ.mjs → Button-ChxzP0BI.mjs} +4 -4
- package/dist/components/button/{DecoratedButton-B1ElGmyl.mjs → DecoratedButton-BPD31Ccf.mjs} +3 -3
- package/dist/components/button/{IconButton-3TUWI6Mc.mjs → IconButton-DYRG4f36.mjs} +3 -3
- package/dist/components/button/IconButton.d.ts +1 -0
- package/dist/components/button/baselink-button.scss +4 -1
- package/dist/components/button/button-shared.scss +15 -9
- package/dist/components/checkbox/{BaseCheckbox-vLDQvJOz.mjs → BaseCheckbox-Ds7EbRAQ.mjs} +1 -1
- package/dist/components/checkbox/{Checkbox-D6f5jfzl.mjs → Checkbox-DqG1H_l_.mjs} +2 -2
- package/dist/components/checkbox/checkbox.scss +7 -0
- package/dist/components/core/{Core-BrDaupPg.mjs → Core-GV7d4sn7.mjs} +1 -1
- package/dist/components/core/{LightMode-DENdo5SC.mjs → LightMode-QGX5KWDc.mjs} +1 -1
- package/dist/components/core/{RiksTV-DwRmJooI.mjs → RiksTV-CLsPQKYj.mjs} +2 -2
- package/dist/components/core/{Strim-DzoD2YI9.mjs → Strim-D7gNGKkV.mjs} +2 -2
- package/dist/components/core/docs/hooks/Mutation.d.ts +1 -1
- package/dist/components/core/hooks/useAnimatedHeight.d.ts +1 -1
- package/dist/components/core/hooks/useClickOutsideListener.d.ts +1 -1
- package/dist/components/core/hooks/useMutationObserver.d.ts +1 -1
- package/dist/components/core/rtv.scss +11 -3
- package/dist/components/core/strm.scss +10 -3
- package/dist/components/dropdown/{Dropdown-iW7aS3jx.mjs → Dropdown-U7w2rrui.mjs} +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +2 -1
- package/dist/components/dropdown/dropdown.scss +9 -5
- package/dist/components/icons/{Arrow-CHtynMwo.mjs → Arrow-DpNA_SD7.mjs} +1 -1
- package/dist/components/icons/{Chevron-B0-9yMkO.mjs → Chevron-D7z5f5Ni.mjs} +1 -1
- package/dist/components/icons/{HeartToggle-BHSYQIN4.mjs → HeartToggle-Buv7f9yB.mjs} +1 -1
- package/dist/components/icons/{Icons-De2TWMGd.mjs → Icons-D0X7KrxA.mjs} +3 -3
- package/dist/components/list/CheckmarkListItem-DDP1qoW4.mjs +9 -0
- package/dist/components/list/CrossmarkListItem-CbzfzRC4.mjs +9 -0
- package/dist/components/list/{List-CpfjceLN.mjs → List-DbnDS6C4.mjs} +1 -1
- package/dist/components/list/{ListItem-JIUBy2_m.mjs → ListItem-CQZq9GfN.mjs} +1 -1
- package/dist/components/list/ListItem.d.ts +1 -0
- package/dist/components/list/{OrderedListItem-CmneHG3P.mjs → OrderedListItem-CjcJ5-Li.mjs} +1 -1
- package/dist/components/loader/{Loader-Bk0JZ1M5.mjs → Loader-D_bteiXh.mjs} +2 -2
- package/dist/components/loader/{RawLoader-7qDMD85G.mjs → RawLoader-5VXTs9nJ.mjs} +1 -1
- package/dist/components/notificationDot/{NotificationDot-C24-oy5e.mjs → NotificationDot-pljIxRxJ.mjs} +1 -1
- package/dist/components/panel/{Panel-DJ4o_gTQ.mjs → Panel-CrtDgKD_.mjs} +4 -4
- package/dist/components/progress/{CircularProgress-Cwu3B7Wu.mjs → CircularProgress-CopS-z4L.mjs} +2 -2
- package/dist/components/progress/{Progress-ZSILwF-g.mjs → Progress-_FQvkoIg.mjs} +1 -1
- package/dist/components/spacing/{Gutter-CZQOVELR.mjs → Gutter-BG0NTrtn.mjs} +1 -1
- package/dist/components/spacing/{GutterPadding-Dm0Wv0tj.mjs → GutterPadding-n99wy2ws.mjs} +1 -1
- package/dist/components/textfield/{PasswordTextField-Du9g2_M9.mjs → PasswordTextField-OBI71D--.mjs} +2 -2
- package/dist/components/textfield/{TextField-L5Yijkyt.mjs → TextField-BCS5Ve2N.mjs} +2 -2
- package/dist/components/textfield/passwordTextField.scss +2 -2
- package/dist/components/textfield/textfield.scss +16 -2
- package/dist/components/toggle/{FieldSet-Bq2lhIzg.mjs → FieldSet-DOEdpTZk.mjs} +1 -1
- package/dist/components/toggle/{RadioToggle-BICr1hFE.mjs → RadioToggle-EoTh0Vv6.mjs} +3 -3
- package/dist/components/toggleButton/{ToggleButton-Cnjgoc3g.mjs → ToggleButton-BYIO805O.mjs} +2 -2
- package/dist/components/toggleButton/ToggleButton.d.ts +1 -0
- package/dist/components/toggleInlineButton/{ToggleInlineButton-BR5pxqVE.mjs → ToggleInlineButton-BgOpE9Ya.mjs} +2 -2
- package/dist/components/toggleLinkButton/{ToggleLinkButton-4Aji3dk9.mjs → ToggleLinkButton-DuHYN8Qo.mjs} +4 -4
- package/dist/components/typography/{Typography-qfbU_T11.mjs → Typography-BDz_QfCz.mjs} +1 -1
- package/dist/components/typography/Typography.d.ts +1 -1
- package/dist/components/typography/typography.scss +35 -5
- package/dist/shared-components.mjs +34 -34
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/components/accordion/Accordion-CrPiD_81.mjs +0 -649
- package/dist/components/list/CheckmarkListItem-DUrrtCnH.mjs +0 -9
- package/dist/components/list/CrossmarkListItem-CN9Ovufg.mjs +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# 📖 Changelog
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
- Add support for react 19
|
|
6
|
+
- Might not work to use this version for apps that are on `^18`
|
|
7
|
+
|
|
8
|
+
## 3.0.44
|
|
9
|
+
|
|
10
|
+
- only add light mode for buttons inside `.strm` (RiksTV are same anyways)
|
|
11
|
+
- fix `box-sizing` for `<TextField>` so it looks better in portal and is easier to style
|
|
12
|
+
- fix css variables for `<Accordion>` in light mode so it works for rikstv
|
|
13
|
+
- fix typography colors in lightmode for RiksTV
|
|
14
|
+
- fix `<TextField>` autoComplete-styling in light mode, and caret color in dark mode
|
|
15
|
+
- fix dropdown icon max-width so portal looks ok
|
|
16
|
+
- style ghost-button as blue for RiksTV since that is well used
|
|
17
|
+
- fix checkbox in lightmode for RiksTV
|
|
18
|
+
|
|
3
19
|
## 3.0.43
|
|
4
20
|
|
|
5
21
|
- Remove the hardcoded letterspacing from the TAG typography element
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import ee, { useRef as re, useEffect as te } from "react";
|
|
2
|
+
import { C as ne } from "../icons/Chevron-D7z5f5Ni.mjs";
|
|
3
|
+
var w = { exports: {} }, R = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var F;
|
|
14
|
+
function oe() {
|
|
15
|
+
if (F) return R;
|
|
16
|
+
F = 1;
|
|
17
|
+
var c = Symbol.for("react.transitional.element"), m = Symbol.for("react.fragment");
|
|
18
|
+
function f(d, a, s) {
|
|
19
|
+
var l = null;
|
|
20
|
+
if (s !== void 0 && (l = "" + s), a.key !== void 0 && (l = "" + a.key), "key" in a) {
|
|
21
|
+
s = {};
|
|
22
|
+
for (var _ in a)
|
|
23
|
+
_ !== "key" && (s[_] = a[_]);
|
|
24
|
+
} else s = a;
|
|
25
|
+
return a = s.ref, {
|
|
26
|
+
$$typeof: c,
|
|
27
|
+
type: d,
|
|
28
|
+
key: l,
|
|
29
|
+
ref: a !== void 0 ? a : null,
|
|
30
|
+
props: s
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return R.Fragment = m, R.jsx = f, R.jsxs = f, R;
|
|
34
|
+
}
|
|
35
|
+
var b = {};
|
|
36
|
+
/**
|
|
37
|
+
* @license React
|
|
38
|
+
* react-jsx-runtime.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
var D;
|
|
46
|
+
function ae() {
|
|
47
|
+
return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function c(e) {
|
|
49
|
+
if (e == null) return null;
|
|
50
|
+
if (typeof e == "function")
|
|
51
|
+
return e.$$typeof === B ? null : e.displayName || e.name || null;
|
|
52
|
+
if (typeof e == "string") return e;
|
|
53
|
+
switch (e) {
|
|
54
|
+
case p:
|
|
55
|
+
return "Fragment";
|
|
56
|
+
case z:
|
|
57
|
+
return "Profiler";
|
|
58
|
+
case U:
|
|
59
|
+
return "StrictMode";
|
|
60
|
+
case q:
|
|
61
|
+
return "Suspense";
|
|
62
|
+
case X:
|
|
63
|
+
return "SuspenseList";
|
|
64
|
+
case Z:
|
|
65
|
+
return "Activity";
|
|
66
|
+
}
|
|
67
|
+
if (typeof e == "object")
|
|
68
|
+
switch (typeof e.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), e.$$typeof) {
|
|
71
|
+
case W:
|
|
72
|
+
return "Portal";
|
|
73
|
+
case G:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
75
|
+
case V:
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case J:
|
|
78
|
+
var r = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case H:
|
|
81
|
+
return r = e.displayName || null, r !== null ? r : c(e.type) || "Memo";
|
|
82
|
+
case y:
|
|
83
|
+
r = e._payload, e = e._init;
|
|
84
|
+
try {
|
|
85
|
+
return c(e(r));
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
function m(e) {
|
|
92
|
+
return "" + e;
|
|
93
|
+
}
|
|
94
|
+
function f(e) {
|
|
95
|
+
try {
|
|
96
|
+
m(e);
|
|
97
|
+
var r = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
r = !0;
|
|
100
|
+
}
|
|
101
|
+
if (r) {
|
|
102
|
+
r = console;
|
|
103
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return t.call(
|
|
105
|
+
r,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
n
|
|
108
|
+
), m(e);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function d(e) {
|
|
112
|
+
if (e === p) return "<>";
|
|
113
|
+
if (typeof e == "object" && e !== null && e.$$typeof === y)
|
|
114
|
+
return "<...>";
|
|
115
|
+
try {
|
|
116
|
+
var r = c(e);
|
|
117
|
+
return r ? "<" + r + ">" : "<...>";
|
|
118
|
+
} catch {
|
|
119
|
+
return "<...>";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function a() {
|
|
123
|
+
var e = k.A;
|
|
124
|
+
return e === null ? null : e.getOwner();
|
|
125
|
+
}
|
|
126
|
+
function s() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
128
|
+
}
|
|
129
|
+
function l(e) {
|
|
130
|
+
if (g.call(e, "key")) {
|
|
131
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
132
|
+
if (r && r.isReactWarning) return !1;
|
|
133
|
+
}
|
|
134
|
+
return e.key !== void 0;
|
|
135
|
+
}
|
|
136
|
+
function _(e, r) {
|
|
137
|
+
function t() {
|
|
138
|
+
N || (N = !0, console.error(
|
|
139
|
+
"%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://react.dev/link/special-props)",
|
|
140
|
+
r
|
|
141
|
+
));
|
|
142
|
+
}
|
|
143
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
144
|
+
get: t,
|
|
145
|
+
configurable: !0
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function L() {
|
|
149
|
+
var e = c(this.type);
|
|
150
|
+
return C[e] || (C[e] = !0, console.error(
|
|
151
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
153
|
+
}
|
|
154
|
+
function M(e, r, t, n, i, u, O, j) {
|
|
155
|
+
return t = u.ref, e = {
|
|
156
|
+
$$typeof: x,
|
|
157
|
+
type: e,
|
|
158
|
+
key: r,
|
|
159
|
+
props: u,
|
|
160
|
+
_owner: i
|
|
161
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: L
|
|
164
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
170
|
+
configurable: !1,
|
|
171
|
+
enumerable: !1,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
175
|
+
configurable: !1,
|
|
176
|
+
enumerable: !1,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: O
|
|
179
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: j
|
|
184
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
|
+
}
|
|
186
|
+
function P(e, r, t, n, i, u, O, j) {
|
|
187
|
+
var o = r.children;
|
|
188
|
+
if (o !== void 0)
|
|
189
|
+
if (n)
|
|
190
|
+
if (Q(o)) {
|
|
191
|
+
for (n = 0; n < o.length; n++)
|
|
192
|
+
h(o[n]);
|
|
193
|
+
Object.freeze && Object.freeze(o);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else h(o);
|
|
199
|
+
if (g.call(r, "key")) {
|
|
200
|
+
o = c(e);
|
|
201
|
+
var E = Object.keys(r).filter(function(K) {
|
|
202
|
+
return K !== "key";
|
|
203
|
+
});
|
|
204
|
+
n = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
+
let props = %s;
|
|
207
|
+
<%s {...props} />
|
|
208
|
+
React keys must be passed directly to JSX without using spread:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
n,
|
|
212
|
+
o,
|
|
213
|
+
E,
|
|
214
|
+
o
|
|
215
|
+
), I[o + n] = !0);
|
|
216
|
+
}
|
|
217
|
+
if (o = null, t !== void 0 && (f(t), o = "" + t), l(r) && (f(r.key), o = "" + r.key), "key" in r) {
|
|
218
|
+
t = {};
|
|
219
|
+
for (var S in r)
|
|
220
|
+
S !== "key" && (t[S] = r[S]);
|
|
221
|
+
} else t = r;
|
|
222
|
+
return o && _(
|
|
223
|
+
t,
|
|
224
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
+
), M(
|
|
226
|
+
e,
|
|
227
|
+
o,
|
|
228
|
+
u,
|
|
229
|
+
i,
|
|
230
|
+
a(),
|
|
231
|
+
t,
|
|
232
|
+
O,
|
|
233
|
+
j
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function h(e) {
|
|
237
|
+
typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
|
|
238
|
+
}
|
|
239
|
+
var v = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), G = Symbol.for("react.context"), J = Symbol.for("react.forward_ref"), q = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Q = Array.isArray, A = console.createTask ? console.createTask : function() {
|
|
240
|
+
return null;
|
|
241
|
+
};
|
|
242
|
+
v = {
|
|
243
|
+
"react-stack-bottom-frame": function(e) {
|
|
244
|
+
return e();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var N, C = {}, Y = v["react-stack-bottom-frame"].bind(
|
|
248
|
+
v,
|
|
249
|
+
s
|
|
250
|
+
)(), $ = A(d(s)), I = {};
|
|
251
|
+
b.Fragment = p, b.jsx = function(e, r, t, n, i) {
|
|
252
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return P(
|
|
254
|
+
e,
|
|
255
|
+
r,
|
|
256
|
+
t,
|
|
257
|
+
!1,
|
|
258
|
+
n,
|
|
259
|
+
i,
|
|
260
|
+
u ? Error("react-stack-top-frame") : Y,
|
|
261
|
+
u ? A(d(e)) : $
|
|
262
|
+
);
|
|
263
|
+
}, b.jsxs = function(e, r, t, n, i) {
|
|
264
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return P(
|
|
266
|
+
e,
|
|
267
|
+
r,
|
|
268
|
+
t,
|
|
269
|
+
!0,
|
|
270
|
+
n,
|
|
271
|
+
i,
|
|
272
|
+
u ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
u ? A(d(e)) : $
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
}()), b;
|
|
277
|
+
}
|
|
278
|
+
process.env.NODE_ENV === "production" ? w.exports = oe() : w.exports = ae();
|
|
279
|
+
var T = w.exports;
|
|
280
|
+
const ue = ({
|
|
281
|
+
initialOpen: c = !0,
|
|
282
|
+
children: m,
|
|
283
|
+
heading: f,
|
|
284
|
+
className: d = "",
|
|
285
|
+
lightBackground: a = !1,
|
|
286
|
+
...s
|
|
287
|
+
}) => {
|
|
288
|
+
const l = re(null);
|
|
289
|
+
return te(() => {
|
|
290
|
+
l.current && (l.current.open = c);
|
|
291
|
+
}, [c]), /* @__PURE__ */ T.jsxs(
|
|
292
|
+
"details",
|
|
293
|
+
{
|
|
294
|
+
ref: l,
|
|
295
|
+
"data-testid": "rds-accordion",
|
|
296
|
+
className: `rds-accordion-details ${a ? "rds-accordion-details--light" : ""} ${a === "white" ? "rds-accordion-details--white" : ""} ${d}`,
|
|
297
|
+
...s,
|
|
298
|
+
children: [
|
|
299
|
+
/* @__PURE__ */ T.jsxs("summary", { "data-testid": "rds-accordion-summary", className: "rds-accordion-details__summary", children: [
|
|
300
|
+
/* @__PURE__ */ T.jsx(ne, {}),
|
|
301
|
+
/* @__PURE__ */ T.jsx("div", { className: "rds-accordion-details__summary__content", children: f })
|
|
302
|
+
] }),
|
|
303
|
+
m
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
);
|
|
307
|
+
};
|
|
308
|
+
export {
|
|
309
|
+
ue as A,
|
|
310
|
+
T as j
|
|
311
|
+
};
|
|
@@ -125,22 +125,17 @@
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
.rds-light .rds-accordion-details,
|
|
128
129
|
.rds-accordion-details--light {
|
|
129
130
|
// TODO: USE COLORS FROM CORE
|
|
130
131
|
--accordion-color: var(--rds-background-tertiary);
|
|
131
|
-
--accordion-hover-bg:
|
|
132
|
-
--accordion-active-bg:
|
|
133
|
-
--accordion-border-color:
|
|
132
|
+
--accordion-hover-bg: var(--rds-accordion-light-hover-bg);
|
|
133
|
+
--accordion-active-bg: var(--rds-accordion-light-active-bg);
|
|
134
|
+
--accordion-border-color: var(--rds-accordion-light-border-color);
|
|
134
135
|
--accordion-shadow: 0px 4px 8px rgba(0, 75, 80, 0.2);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.rds-accordion-details--white {
|
|
138
139
|
// TODO: USE COLORS FROM CORE
|
|
139
|
-
--accordion-hover-bg: #edfef6;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.rds-light {
|
|
143
|
-
.rds-accordion-details {
|
|
144
|
-
@extend .rds-accordion-details--light;
|
|
145
|
-
}
|
|
140
|
+
--accordion-hover-bg: var(--rds-accordion-light-hover-bg, #edfef6);
|
|
146
141
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s } from "../accordion/Accordion-
|
|
1
|
+
import { j as s } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as w, useState as a } from "react";
|
|
3
|
-
import { H as y, B } from "../typography/Typography-
|
|
4
|
-
import "../icons/HeartToggle-
|
|
5
|
-
import { S as F, a as T, b as o, c as b } from "../icons/Icons-
|
|
3
|
+
import { H as y, B } from "../typography/Typography-BDz_QfCz.mjs";
|
|
4
|
+
import "../icons/HeartToggle-Buv7f9yB.mjs";
|
|
5
|
+
import { S as F, a as T, b as o, c as b } from "../icons/Icons-D0X7KrxA.mjs";
|
|
6
6
|
const O = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79", E = "_rds-alert--content_m8jce_79", H = "_rds-alert--dismiss_m8jce_109", D = "_dismissed_m8jce_138", M = "_dismiss-fade-out_m8jce_1", e = {
|
|
7
7
|
rdsAlertIcon: O,
|
|
8
8
|
rdsAlertContentTitle: R,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as u } from "react";
|
|
3
|
-
import { S as d } from "../typography/Typography-
|
|
3
|
+
import { S as d } from "../typography/Typography-BDz_QfCz.mjs";
|
|
4
4
|
const b = u(({ 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-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { P as e, S as u, T as d, G as b } from "./DecoratedButton-
|
|
4
|
-
import { A as c } from "../icons/Arrow-
|
|
3
|
+
import { P as e, S as u, T as d, G as b } from "./DecoratedButton-BPD31Ccf.mjs";
|
|
4
|
+
import { A as c } from "../icons/Arrow-DpNA_SD7.mjs";
|
|
5
5
|
const w = () => /* @__PURE__ */ s.jsx(c, {}), m = n(
|
|
6
6
|
({ forwards: r = !0, className: o = "", ...t }, a) => /* @__PURE__ */ s.jsx(
|
|
7
7
|
e,
|
package/dist/components/button/{BaseDecoratedButton-C0cesANX.mjs → BaseDecoratedButton-ChPN1ek7.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as s } from "../accordion/Accordion-
|
|
1
|
+
import { j as s } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { B as m } from "./BaseButton-
|
|
3
|
+
import { B as m } from "./BaseButton-BDwLDH8l.mjs";
|
|
4
4
|
const x = c(
|
|
5
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, {}) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import "./ArrowButton-
|
|
4
|
-
import { A as l } from "../icons/Arrow-
|
|
3
|
+
import "./ArrowButton-DMr9aNBX.mjs";
|
|
4
|
+
import { A as l } from "../icons/Arrow-DpNA_SD7.mjs";
|
|
5
5
|
const p = () => /* @__PURE__ */ r.jsx(l, {}), u = c(
|
|
6
6
|
({
|
|
7
7
|
element: o,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r } from "../accordion/Accordion-
|
|
1
|
+
import { j as r } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { B as s } from "./BaseButton-
|
|
4
|
-
import "./ArrowButton-
|
|
5
|
-
import "./BaseLinkButton-
|
|
3
|
+
import { B as s } from "./BaseButton-BDwLDH8l.mjs";
|
|
4
|
+
import "./ArrowButton-DMr9aNBX.mjs";
|
|
5
|
+
import "./BaseLinkButton-BsJ_29CO.mjs";
|
|
6
6
|
const a = n((t, o) => /* @__PURE__ */ r.jsx(s, { buttonType: "rds-button", buttonStyle: "primary", ref: o, ...t }));
|
|
7
7
|
a.displayName = "PrimaryButton";
|
|
8
8
|
const e = n((t, o) => /* @__PURE__ */ r.jsx(s, { buttonType: "rds-button", buttonStyle: "secondary", ref: o, ...t }));
|
package/dist/components/button/{DecoratedButton-B1ElGmyl.mjs → DecoratedButton-BPD31Ccf.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as e } from "../accordion/Accordion-
|
|
1
|
+
import { j as e } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
|
-
import { B as a } from "./BaseDecoratedButton-
|
|
4
|
-
import "./ArrowButton-
|
|
3
|
+
import { B as a } from "./BaseDecoratedButton-ChPN1ek7.mjs";
|
|
4
|
+
import "./ArrowButton-DMr9aNBX.mjs";
|
|
5
5
|
const s = r(
|
|
6
6
|
(t, o) => /* @__PURE__ */ e.jsx(a, { buttonStyle: "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-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as r } from "react";
|
|
3
|
-
import { P as a, S as s, T as e, G as c } from "./DecoratedButton-
|
|
4
|
-
import "./ArrowButton-
|
|
3
|
+
import { P as a, S as s, T as e, G as c } from "./DecoratedButton-BPD31Ccf.mjs";
|
|
4
|
+
import "./ArrowButton-DMr9aNBX.mjs";
|
|
5
5
|
const u = r((t, o) => /* @__PURE__ */ n.jsx(a, { buttonType: "rds-icon-button", ref: o, ...t }));
|
|
6
6
|
u.displayName = "PrimaryIconButton";
|
|
7
7
|
const i = r((t, o) => /* @__PURE__ */ n.jsx(s, { buttonType: "rds-icon-button", ref: o, ...t }));
|
|
@@ -52,7 +52,10 @@
|
|
|
52
52
|
.rds-baselink-button--highlighted,
|
|
53
53
|
&.rds-baselink-button--highlighted {
|
|
54
54
|
--highlighted-color: var(--rds-surface-foreground);
|
|
55
|
-
--highlighted-border-color: var(
|
|
55
|
+
--highlighted-border-color: var(
|
|
56
|
+
--strim-romance-green-80,
|
|
57
|
+
var(--rds-surface-foreground)
|
|
58
|
+
); // Add variables in strm.scss and rtv.scss
|
|
56
59
|
|
|
57
60
|
@media (hover: hover) {
|
|
58
61
|
&:hover,
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
--common-button--disabled-color: var(--rds-foreground-tertiary);
|
|
20
20
|
|
|
21
21
|
&--ghost {
|
|
22
|
-
--common-button--
|
|
23
|
-
--common-button--
|
|
24
|
-
--common-button--hover-bg: var(--rds-
|
|
25
|
-
--common-button--pressed-bg: var(--rds-
|
|
22
|
+
--common-button--fg: var(--rds-button-ghost-fg);
|
|
23
|
+
--common-button--bg: var(--rds-button-ghost-bg);
|
|
24
|
+
--common-button--hover-bg: var(--rds-button-ghost--hover-bg);
|
|
25
|
+
--common-button--pressed-bg: var(--rds-button-ghost--pressed-bg);
|
|
26
26
|
}
|
|
27
27
|
&--secondary {
|
|
28
28
|
--common-button--bg: var(--rds-background-primary);
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
// light-mode can be a class on the button or ona a ancestor
|
|
49
|
-
|
|
49
|
+
// rikstv has same style for light/dark mode
|
|
50
|
+
:where(.strm) :where(.rds-light) {
|
|
50
51
|
.rds-button__shared,
|
|
51
52
|
&.rds-button__shared {
|
|
52
53
|
--common-button--bg: var(--rds-button-primary-fg);
|
|
@@ -56,8 +57,8 @@
|
|
|
56
57
|
--common-button--disabled-color: var(--rds-button-tertiary-hover-bg);
|
|
57
58
|
|
|
58
59
|
&--ghost {
|
|
59
|
-
--common-button--bg: var(--
|
|
60
|
-
--common-button--color: var(--
|
|
60
|
+
--common-button--bg: var(--rds-background-primary);
|
|
61
|
+
--common-button--color: var(--rds-surface-background);
|
|
61
62
|
--common-button--hover-bg: var(--rds-foreground-tertiary);
|
|
62
63
|
--common-button--pressed-bg: var(--rds-background-primary);
|
|
63
64
|
}
|
|
@@ -69,7 +70,6 @@
|
|
|
69
70
|
--common-button--pressed-bg: var(--rds-button-primary-fg);
|
|
70
71
|
--common-button--pressed-color: var(--rds-foreground-primary);
|
|
71
72
|
--common-button--outline: 2px solid var(--rds-button-tertiary-hover-bg);
|
|
72
|
-
--common-button--disabled-color: var(--rds-button-primary-fg);
|
|
73
73
|
}
|
|
74
74
|
&--tertiary {
|
|
75
75
|
--common-button--bg: var(--rds-button-tertiary-bg);
|
|
@@ -84,14 +84,20 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
|
|
87
88
|
// light mode white
|
|
88
|
-
.rds-light.rds-white.rds-button__shared--secondary {
|
|
89
|
+
:where(.strm) .rds-light.rds-white.rds-button__shared--secondary {
|
|
89
90
|
--common-button--bg: var(--rds-foreground-primary);
|
|
90
91
|
}
|
|
91
92
|
// transparent
|
|
92
93
|
.rds-transparent {
|
|
93
94
|
&.rds-button__shared--secondary {
|
|
94
95
|
--common-button--bg: transparent;
|
|
96
|
+
// Special case for RTV
|
|
97
|
+
:where(.rtv) &:where(.rds-light) {
|
|
98
|
+
--common-button--color: var(--rds-background-primary);
|
|
99
|
+
--common-button--outline: 2px solid var(--rds-background-primary);
|
|
100
|
+
}
|
|
95
101
|
}
|
|
96
102
|
}
|
|
97
103
|
/*#endregion Button variables per style */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as c } from "../accordion/Accordion-
|
|
1
|
+
import { j as c } from "../accordion/Accordion-C-Lu1AN3.mjs";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { B as p } from "./BaseCheckbox-
|
|
3
|
+
import { B as p } from "./BaseCheckbox-Ds7EbRAQ.mjs";
|
|
4
4
|
const i = b(
|
|
5
5
|
({ className: r = "", id: o, lightBackground: s, hasError: e, style: a, children: m, ...t }, x) => /* @__PURE__ */ c.jsx(
|
|
6
6
|
p,
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
--checkbox-label-color: var(--rds-background-primary);
|
|
18
18
|
--checkbox-error-color: var(--rds-feedback-error-dark);
|
|
19
19
|
}
|
|
20
|
+
/* Fix RiksTV so checkboxes are not red by default */
|
|
21
|
+
:where(.rtv) & {
|
|
22
|
+
--checkbox-border-color: var(--rds-foreground-primary);
|
|
23
|
+
}
|
|
24
|
+
:where(.rtv .rds-light) & {
|
|
25
|
+
--checkbox-border-color: var(--rds-background-primary);
|
|
26
|
+
}
|
|
20
27
|
/* error overrides */
|
|
21
28
|
&:where(.rds-form-group-box--error) {
|
|
22
29
|
--checkbox-border-color: var(--checkbox-error-color);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i } from "../accordion/Accordion-
|
|
1
|
+
import { j as i } from "../accordion/Accordion-C-Lu1AN3.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-C-Lu1AN3.mjs";
|
|
2
|
+
import { C as s } from "./Core-GV7d4sn7.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-C-Lu1AN3.mjs";
|
|
2
|
+
import { C as s } from "./Core-GV7d4sn7.mjs";
|
|
3
3
|
const i = ({ children: r }) => /* @__PURE__ */ o.jsx(s, { brand: "strm", children: r });
|
|
4
4
|
export {
|
|
5
5
|
i as S
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Mutation: () => JSX.Element;
|
|
1
|
+
export declare const Mutation: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export interface UseAnimatedHeightOptions {
|
|
|
17
17
|
* with care and attention
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export declare function useAnimatedHeight<T extends HTMLElement>(isOpen: boolean, options?: UseAnimatedHeightOptions): [RefObject<T>, () => void];
|
|
20
|
+
export declare function useAnimatedHeight<T extends HTMLElement>(isOpen: boolean, options?: UseAnimatedHeightOptions): [RefObject<T | null>, () => void];
|