@kakadu/components 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/button-tooltip.js +1 -1
- package/build/components/button-tooltip.mjs +1 -1
- package/build/components/button.js +1 -1
- package/build/components/button.mjs +1 -1
- package/build/components/card.js +1 -1
- package/build/components/card.mjs +6 -6
- package/build/components/collapsible.d.ts +5 -0
- package/build/components/datum.js +1 -1
- package/build/components/datum.mjs +7 -7
- package/build/components/icon-button.js +1 -1
- package/build/components/icon-button.mjs +9 -9
- package/build/components/input.d.ts +27 -0
- package/build/components/modal.js +1 -1
- package/build/components/modal.mjs +1 -1
- package/build/components/notice.js +1 -1
- package/build/components/notice.mjs +6 -6
- package/build/components/text-button.js +1 -1
- package/build/components/text-button.mjs +10 -10
- package/build/components.css +1 -1
- package/build/icon-CRXHH3In.js +1 -0
- package/build/icon-Dz2YJAPU.mjs +184 -0
- package/build/icons/icon.d.ts +1 -0
- package/build/icons/icon.js +1 -1
- package/build/icons/icon.mjs +22 -157
- package/build/icons/sparkle.d.ts +2 -0
- package/build/index.d.ts +73 -69
- package/build/index.js +2 -1
- package/build/index.mjs +349 -174
- package/build/theme.d.ts +1 -1
- package/build/theme.js +1 -1
- package/build/theme.mjs +5 -5
- package/package.json +2 -2
- package/readme.md +3 -3
package/build/index.mjs
CHANGED
|
@@ -1,176 +1,351 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import
|
|
10
|
-
import { default as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import { default as
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { default as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
1
|
+
import { buttonResetStyles as le, overflowProtectionStyles as O } from "./theme.mjs";
|
|
2
|
+
import { FontFamilyHead as Ge, darkBackgroundColor as De, effectStyles as Ve, font as Fe, lightBackgroundColor as Ke, nonInteractiveEffectStyles as We, default as $e } from "./theme.mjs";
|
|
3
|
+
import { default as Ue, ariaTextStyles as ze } from "./components/aria-text.mjs";
|
|
4
|
+
import ce from "./components/atom.mjs";
|
|
5
|
+
import { defaultAtomElementType as qe } from "./components/atom.mjs";
|
|
6
|
+
import { default as Xe } from "./components/bankid-logo.mjs";
|
|
7
|
+
import { default as Ze } from "./components/box.mjs";
|
|
8
|
+
import { default as et, ButtonVariant as tt, buttonDangerStyles as at, buttonSecondaryStyles as ot, buttonSuccessStyles as rt, buttonWarningStyles as nt } from "./components/button.mjs";
|
|
9
|
+
import de from "./components/button-tooltip.mjs";
|
|
10
|
+
import { default as lt } from "./components/card.mjs";
|
|
11
|
+
import R from "./components/click-ripples.mjs";
|
|
12
|
+
import { j as e } from "./jsx-runtime-B4hRZ52C.mjs";
|
|
13
|
+
import { useRef as v, useState as b, useEffect as U, useId as z, useLayoutEffect as ue, useMemo as G, useCallback as y } from "react";
|
|
14
|
+
import { cx as c } from "@kuma-ui/core";
|
|
15
|
+
import { default as dt } from "./components/datum.mjs";
|
|
16
|
+
import { default as it } from "./components/dnb-logo.mjs";
|
|
17
|
+
import { default as mt } from "./components/dot.mjs";
|
|
18
|
+
import { default as xt, FlexAlignment as kt } from "./components/flex.mjs";
|
|
19
|
+
import { default as gt, FooterLinkItem as St } from "./components/footer.mjs";
|
|
20
|
+
import { default as vt } from "./components/gauge.mjs";
|
|
21
|
+
import { default as jt } from "./components/gjensidige-logo.mjs";
|
|
22
|
+
import { default as Nt } from "./components/header.mjs";
|
|
23
|
+
import D from "./components/hover-gradient.mjs";
|
|
24
|
+
import { normalBlendStyles as It } from "./components/hover-gradient.mjs";
|
|
25
|
+
import { default as Et, IconButtonVariant as wt } from "./components/icon-button.mjs";
|
|
26
|
+
import ie from "./icons/chevron-up.mjs";
|
|
27
|
+
import { I as V, S as fe } from "./icon-Dz2YJAPU.mjs";
|
|
28
|
+
import { a as Mt, i as Ct } from "./icon-Dz2YJAPU.mjs";
|
|
29
|
+
import F from "./utilities/copy-to-clipboard.mjs";
|
|
30
|
+
import K from "./components/text-button.mjs";
|
|
31
|
+
import { TextButtonVariant as At } from "./components/text-button.mjs";
|
|
32
|
+
import { Span as w, Paragraph as W } from "./components/text.mjs";
|
|
33
|
+
import { AnchorHeading as Gt, Heading as Dt, Hero as Vt, Label as Ft, default as Kt, spanStyles as Wt, textShadowStyles as $t } from "./components/text.mjs";
|
|
34
|
+
import { default as Ut } from "./components/kakadu-guide-icon.mjs";
|
|
35
|
+
import { default as Qt, KakaduGuideLogoSvg as qt, KakaduGuideLogoVariant as Jt } from "./components/kakadu-guide-logo.mjs";
|
|
36
|
+
import { default as Yt } from "./components/kakadu-index-logo.mjs";
|
|
37
|
+
import { default as _t } from "./components/kakadu-logo.mjs";
|
|
38
|
+
import { default as ta, useModal as aa, useModalContext as oa } from "./components/modal.mjs";
|
|
39
|
+
import { default as na } from "./components/moving-gradients.mjs";
|
|
40
|
+
import { default as la } from "./components/moving-stars.mjs";
|
|
41
|
+
import { default as da, NoticeType as ua } from "./components/notice.mjs";
|
|
42
|
+
import { default as fa, NotificationProvider as ma, useCreateNotification as pa } from "./components/notification.mjs";
|
|
43
|
+
import { default as ka, useRevealer as ha } from "./components/revealer.mjs";
|
|
44
|
+
import { default as Sa, SeparatorLabel as ya, SmallSeparator as va, VerticalSeparator as ba } from "./components/separator.mjs";
|
|
45
|
+
import { default as La, SkeletonInstance as Na } from "./components/skeleton.mjs";
|
|
46
|
+
import { default as Ia } from "./components/sparebank1-logo.mjs";
|
|
47
|
+
import { RevealSpinner as Ea, default as wa } from "./components/spinner.mjs";
|
|
48
|
+
import { default as Ma } from "./components/sto-logo.mjs";
|
|
49
|
+
import { default as Pa } from "./components/storebrand-logo.mjs";
|
|
50
|
+
import { default as Ra, getThemePreference as Ga, setThemePreference as Da, themePreferences as Va, useIsDarkMode as Fa, useIsLightMode as Ka, useTheme as Wa } from "./components/theme-setter.mjs";
|
|
51
|
+
import { default as Oa } from "./components/veil.mjs";
|
|
52
|
+
import { default as za, WrapperWidth as Qa } from "./components/wrapper.mjs";
|
|
53
|
+
import { default as Ja } from "./icons/arrow-down.mjs";
|
|
54
|
+
import { default as Ya } from "./icons/caret-down.mjs";
|
|
55
|
+
import { default as _a } from "./icons/caret-right.mjs";
|
|
56
|
+
import { default as to } from "./icons/check.mjs";
|
|
57
|
+
import { default as oo } from "./icons/chevron-down.mjs";
|
|
58
|
+
import { default as no } from "./icons/chrome-browser-logo.mjs";
|
|
59
|
+
import { default as lo } from "./icons/copy.mjs";
|
|
60
|
+
import { default as uo } from "./icons/edit.mjs";
|
|
61
|
+
import { default as fo } from "./icons/edge-browser-logo.mjs";
|
|
62
|
+
import { default as po } from "./icons/exclamation-triangle.mjs";
|
|
63
|
+
import { default as ko } from "./icons/kakadu-guide.mjs";
|
|
64
|
+
import { default as go } from "./icons/kakadu-guide-glyph.mjs";
|
|
65
|
+
import { default as yo } from "./icons/menu.mjs";
|
|
66
|
+
import { default as bo } from "./icons/plus.mjs";
|
|
67
|
+
import { default as Lo } from "./icons/test.mjs";
|
|
68
|
+
import { default as To } from "./icons/times.mjs";
|
|
69
|
+
import { default as Bo } from "./hooks/use-media-query.mjs";
|
|
70
|
+
import { default as wo } from "./utilities/generate-random-id.mjs";
|
|
71
|
+
import { default as Mo } from "./utilities/scale.mjs";
|
|
72
|
+
function me({
|
|
73
|
+
as: d,
|
|
74
|
+
isCollapsed: o = !0,
|
|
75
|
+
children: s,
|
|
76
|
+
className: r,
|
|
77
|
+
...h
|
|
78
|
+
}) {
|
|
79
|
+
const t = v(null), [f, l] = b();
|
|
80
|
+
return U(() => {
|
|
81
|
+
if (o)
|
|
82
|
+
l(0);
|
|
83
|
+
else {
|
|
84
|
+
const p = t.current;
|
|
85
|
+
p && l(p.scrollHeight ?? 0);
|
|
86
|
+
}
|
|
87
|
+
}, [o]), /* @__PURE__ */ e.jsx(ce, { as: d ?? "div", ...h, "aria-hidden": o, style: {
|
|
88
|
+
height: f,
|
|
89
|
+
opacity: o ? 0 : 1
|
|
90
|
+
}, className: c("kakadu-components-2223449868", r), children: /* @__PURE__ */ e.jsx("div", { ref: t, className: "kakadu-components-3857562328", children: s }) });
|
|
91
|
+
}
|
|
92
|
+
const pe = "kakadu-components-2065792067", xe = "kakadu-components-3551118672", j = "kakadu-components-2161641266", Q = "kakadu-components-628401705", ke = c(Q, "kakadu-components-3245407458"), he = c(Q, "kakadu-components-1117160492");
|
|
93
|
+
function ge({
|
|
94
|
+
as: d,
|
|
95
|
+
className: o,
|
|
96
|
+
...s
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ e.jsx(w, { as: d ?? "span", ...s, className: c("kakadu-components-3574036749", o) });
|
|
99
|
+
}
|
|
100
|
+
function q({
|
|
101
|
+
label: d,
|
|
102
|
+
error: o,
|
|
103
|
+
errorId: s,
|
|
104
|
+
warning: r,
|
|
105
|
+
warningId: h,
|
|
106
|
+
footnote: t,
|
|
107
|
+
attachments: f,
|
|
108
|
+
className: l,
|
|
109
|
+
children: p,
|
|
110
|
+
...n
|
|
111
|
+
}) {
|
|
112
|
+
const x = !!o, k = !!r, m = !!t;
|
|
113
|
+
return /* @__PURE__ */ e.jsxs("label", { ...n, className: c(pe, l), children: [
|
|
114
|
+
/* @__PURE__ */ e.jsx(w, { className: c(O, xe), children: /* @__PURE__ */ e.jsx("span", { children: d }) }),
|
|
115
|
+
/* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-448077930", children: [
|
|
116
|
+
p,
|
|
117
|
+
m ? /* @__PURE__ */ e.jsx(ge, { className: "kakadu-components-3258753754", children: t }) : null,
|
|
118
|
+
f
|
|
119
|
+
] }),
|
|
120
|
+
x ? /* @__PURE__ */ e.jsx(W, { id: s, className: ke, children: o instanceof Error ? o.message : o }) : k ? /* @__PURE__ */ e.jsx(W, { id: h, className: he, children: r instanceof Error ? r.message : r }) : null
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
function Ce({
|
|
124
|
+
label: d,
|
|
125
|
+
options: o,
|
|
126
|
+
error: s,
|
|
127
|
+
warning: r,
|
|
128
|
+
footnote: h,
|
|
129
|
+
className: t,
|
|
130
|
+
...f
|
|
131
|
+
}) {
|
|
132
|
+
const l = z(), p = `${l}-error`, n = `${l}-warning`, x = !!s, k = !!r;
|
|
133
|
+
return /* @__PURE__ */ e.jsxs(q, { label: d, error: s, warning: r, footnote: h, children: [
|
|
134
|
+
/* @__PURE__ */ e.jsx("select", { ...f, "aria-invalid": x, "data-warning": k, "aria-describedby": x ? p : k ? n : void 0, className: c(j, "kakadu-components-709108872", t), children: o.map((m) => /* @__PURE__ */ e.jsx("option", { value: m.value, children: m.label }, m.value)) }),
|
|
135
|
+
/* @__PURE__ */ e.jsx(ie, { className: "kakadu-components-1616393393" })
|
|
136
|
+
] });
|
|
137
|
+
}
|
|
138
|
+
const Se = 36, $ = "kakadu-components-4233741488";
|
|
139
|
+
function Pe({
|
|
140
|
+
type: d,
|
|
141
|
+
label: o,
|
|
142
|
+
error: s,
|
|
143
|
+
warning: r,
|
|
144
|
+
footnote: h,
|
|
145
|
+
suggestion: t,
|
|
146
|
+
hasCopyButton: f,
|
|
147
|
+
hasClearButton: l,
|
|
148
|
+
isMultiline: p,
|
|
149
|
+
onChange: n,
|
|
150
|
+
className: x,
|
|
151
|
+
...k
|
|
152
|
+
}) {
|
|
153
|
+
const m = v(null), L = v(null), N = v(null), H = z(), J = `${H}-error`, X = `${H}-warning`, {
|
|
154
|
+
value: S
|
|
155
|
+
} = k, [Y, M] = b(""), u = S ?? Y, [Z, _] = b(), ee = d === "textarea" || !!p;
|
|
156
|
+
ue(() => {
|
|
157
|
+
typeof u == "string" && N.current && _(N.current.scrollHeight);
|
|
158
|
+
}, [u]);
|
|
159
|
+
const T = G(() => typeof u == "string" ? `${u} `.split(`
|
|
160
|
+
`) : [], [u]), te = G(() => T.length, [T]), I = !!s, B = !!r, C = I ? J : B ? X : void 0;
|
|
161
|
+
U(() => {
|
|
162
|
+
M(typeof S == "string" ? S : "");
|
|
163
|
+
}, [S]);
|
|
164
|
+
const P = y((a) => {
|
|
165
|
+
const {
|
|
166
|
+
value: i
|
|
167
|
+
} = a.target;
|
|
168
|
+
M(i), n == null || n(i, a);
|
|
169
|
+
}, [n]), ae = y(() => {
|
|
170
|
+
typeof u == "string" && F(u);
|
|
171
|
+
}, [u]), oe = y(() => {
|
|
172
|
+
var i;
|
|
173
|
+
const a = L.current ?? m.current;
|
|
174
|
+
if (n && a) {
|
|
175
|
+
const g = (i = Object.getOwnPropertyDescriptor(a instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : i.set;
|
|
176
|
+
if (g) {
|
|
177
|
+
g.call(a, "");
|
|
178
|
+
const E = new Event("input", {
|
|
179
|
+
bubbles: !0
|
|
180
|
+
});
|
|
181
|
+
a.dispatchEvent(E), a.focus();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}, [n]), [re, ne] = b(""), A = !!t && re !== t, se = y(() => {
|
|
185
|
+
var i;
|
|
186
|
+
const a = L.current ?? m.current;
|
|
187
|
+
if (t && n && a) {
|
|
188
|
+
const g = (i = Object.getOwnPropertyDescriptor(a instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : i.set;
|
|
189
|
+
if (g) {
|
|
190
|
+
g.call(a, t);
|
|
191
|
+
const E = new Event("input", {
|
|
192
|
+
bubbles: !0
|
|
193
|
+
});
|
|
194
|
+
a.dispatchEvent(E), a.focus();
|
|
195
|
+
} else
|
|
196
|
+
F(t);
|
|
197
|
+
ne(t);
|
|
198
|
+
}
|
|
199
|
+
}, [t, n]);
|
|
200
|
+
return /* @__PURE__ */ e.jsxs(q, { label: o, error: s, warning: r, footnote: h, attachments: /* @__PURE__ */ e.jsx(me, { isCollapsed: !A, children: A ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: c(le, O, "kakadu-components-2355856341"), onClick: se, children: [
|
|
201
|
+
/* @__PURE__ */ e.jsx(de, { label: "Apply suggestion" }),
|
|
202
|
+
/* @__PURE__ */ e.jsx(fe, { width: 13, height: 13, className: "kakadu-components-1021263934" }),
|
|
203
|
+
/* @__PURE__ */ e.jsx(w, { className: "kakadu-components-1585874956", children: t }),
|
|
204
|
+
/* @__PURE__ */ e.jsx(R, { className: "kakadu-components-3448565402" }),
|
|
205
|
+
/* @__PURE__ */ e.jsx(D, {})
|
|
206
|
+
] }) : null }), style: {
|
|
207
|
+
"--button-padding": `${Se * ((f ? 1 : 0) + (l ? 1 : 0))}px`
|
|
208
|
+
}, children: [
|
|
209
|
+
/* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
|
|
210
|
+
ee ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
211
|
+
/* @__PURE__ */ e.jsxs("span", { ref: N, "aria-hidden": !0, className: c(j, x, "kakadu-components-2033521835"), children: [
|
|
212
|
+
T.map((a, i) => (
|
|
213
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
214
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
215
|
+
a,
|
|
216
|
+
te > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
|
|
217
|
+
] }, i)
|
|
218
|
+
)),
|
|
219
|
+
" "
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ e.jsx("textarea", { ...k, ref: L, rows: 1, "aria-invalid": I, "data-warning": B, "aria-describedby": C, value: u, className: c(j, x, "kakadu-components-2119524139"), style: {
|
|
222
|
+
minHeight: Z
|
|
223
|
+
}, onChange: P })
|
|
224
|
+
] }) : /* @__PURE__ */ e.jsx("input", { ...k, ref: m, type: d ?? "text", value: u, "aria-invalid": I, "data-warning": B, "aria-describedby": C, className: c(j, x), onChange: P }),
|
|
225
|
+
/* @__PURE__ */ e.jsx(R, { className: "kakadu-components-1614211948" }),
|
|
226
|
+
/* @__PURE__ */ e.jsx(D, { className: "kakadu-components-1041647916" })
|
|
227
|
+
] }),
|
|
228
|
+
f || l ? /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-131986363", children: [
|
|
229
|
+
f ? /* @__PURE__ */ e.jsx(K, { iconLeft: V.copy, label: "Copy", tooltip: "Copy", className: $, onClick: ae }) : null,
|
|
230
|
+
l ? /* @__PURE__ */ e.jsx(K, { iconLeft: V.times, label: "Clear", tooltip: "Clear", className: $, onClick: oe }) : null
|
|
231
|
+
] }) : null
|
|
232
|
+
] });
|
|
233
|
+
}
|
|
63
234
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
235
|
+
Gt as AnchorHeading,
|
|
236
|
+
Ue as AriaText,
|
|
237
|
+
Ja as ArrowDown,
|
|
238
|
+
ce as Atom,
|
|
239
|
+
Xe as BankidLogo,
|
|
240
|
+
Ze as Box,
|
|
241
|
+
et as Button,
|
|
242
|
+
de as ButtonTooltip,
|
|
243
|
+
tt as ButtonVariant,
|
|
244
|
+
lt as Card,
|
|
245
|
+
Ya as CaretDown,
|
|
246
|
+
_a as CaretRight,
|
|
247
|
+
to as Check,
|
|
248
|
+
oo as ChevronDown,
|
|
249
|
+
ie as ChevronUp,
|
|
250
|
+
no as ChromeBrowserLogo,
|
|
251
|
+
R as ClickRipples,
|
|
252
|
+
me as Collapsible,
|
|
253
|
+
lo as Copy,
|
|
254
|
+
dt as Datum,
|
|
255
|
+
it as DnbLogo,
|
|
256
|
+
mt as Dot,
|
|
257
|
+
fo as EdgeBrowserLogo,
|
|
258
|
+
uo as Edit,
|
|
259
|
+
po as ExclamationTriangle,
|
|
260
|
+
xt as Flex,
|
|
261
|
+
kt as FlexAlignment,
|
|
262
|
+
Ge as FontFamilyHead,
|
|
263
|
+
gt as Footer,
|
|
264
|
+
St as FooterLinkItem,
|
|
265
|
+
vt as Gauge,
|
|
266
|
+
jt as GjensidigeLogo,
|
|
267
|
+
Nt as Header,
|
|
268
|
+
Dt as Heading,
|
|
269
|
+
Vt as Hero,
|
|
270
|
+
D as HoverGradient,
|
|
271
|
+
Mt as Icon,
|
|
272
|
+
Et as IconButton,
|
|
273
|
+
wt as IconButtonVariant,
|
|
274
|
+
V as IconType,
|
|
275
|
+
Pe as Input,
|
|
276
|
+
ko as KakaduGuide,
|
|
277
|
+
go as KakaduGuideGlyph,
|
|
278
|
+
Ut as KakaduGuideIcon,
|
|
279
|
+
Qt as KakaduGuideLogo,
|
|
280
|
+
qt as KakaduGuideLogoSvg,
|
|
281
|
+
Jt as KakaduGuideLogoVariant,
|
|
282
|
+
Yt as KakaduIndexLogo,
|
|
283
|
+
_t as KakaduLogo,
|
|
284
|
+
Ft as Label,
|
|
285
|
+
yo as Menu,
|
|
286
|
+
ta as Modal,
|
|
287
|
+
na as MovingGradients,
|
|
288
|
+
la as MovingStars,
|
|
289
|
+
da as Notice,
|
|
290
|
+
ua as NoticeType,
|
|
291
|
+
fa as Notification,
|
|
292
|
+
ma as NotificationProvider,
|
|
293
|
+
W as Paragraph,
|
|
294
|
+
bo as Plus,
|
|
295
|
+
Ea as RevealSpinner,
|
|
296
|
+
ka as Revealer,
|
|
297
|
+
Ce as Select,
|
|
298
|
+
Sa as Separator,
|
|
299
|
+
ya as SeparatorLabel,
|
|
300
|
+
La as Skeleton,
|
|
301
|
+
Na as SkeletonInstance,
|
|
302
|
+
va as SmallSeparator,
|
|
303
|
+
w as Span,
|
|
304
|
+
Ia as Sparebank1Logo,
|
|
305
|
+
wa as Spinner,
|
|
306
|
+
Ma as StoLogo,
|
|
307
|
+
Pa as StorebrandLogo,
|
|
308
|
+
Lo as Test,
|
|
309
|
+
Kt as Text,
|
|
310
|
+
K as TextButton,
|
|
311
|
+
At as TextButtonVariant,
|
|
312
|
+
Ra as ThemeSetter,
|
|
313
|
+
To as Times,
|
|
314
|
+
Oa as Veil,
|
|
315
|
+
ba as VerticalSeparator,
|
|
316
|
+
za as Wrapper,
|
|
317
|
+
Qa as WrapperWidth,
|
|
318
|
+
ze as ariaTextStyles,
|
|
319
|
+
at as buttonDangerStyles,
|
|
320
|
+
le as buttonResetStyles,
|
|
321
|
+
ot as buttonSecondaryStyles,
|
|
322
|
+
rt as buttonSuccessStyles,
|
|
323
|
+
nt as buttonWarningStyles,
|
|
324
|
+
F as copyToClipboard,
|
|
325
|
+
De as darkBackgroundColor,
|
|
326
|
+
qe as defaultAtomElementType,
|
|
327
|
+
Ve as effectStyles,
|
|
328
|
+
ke as errorParagraph,
|
|
329
|
+
Fe as font,
|
|
330
|
+
wo as generateRandomId,
|
|
331
|
+
Ga as getThemePreference,
|
|
332
|
+
Ct as iconShadowStyles,
|
|
333
|
+
Ke as lightBackgroundColor,
|
|
334
|
+
We as nonInteractiveEffectStyles,
|
|
335
|
+
It as normalBlendStyles,
|
|
336
|
+
O as overflowProtectionStyles,
|
|
337
|
+
Mo as scale,
|
|
338
|
+
Da as setThemePreference,
|
|
339
|
+
Wt as spanStyles,
|
|
340
|
+
$t as textShadowStyles,
|
|
341
|
+
$e as theme,
|
|
342
|
+
Va as themePreferences,
|
|
343
|
+
pa as useCreateNotification,
|
|
344
|
+
Fa as useIsDarkMode,
|
|
345
|
+
Ka as useIsLightMode,
|
|
346
|
+
Bo as useMediaQuery,
|
|
347
|
+
aa as useModal,
|
|
348
|
+
oa as useModalContext,
|
|
349
|
+
ha as useRevealer,
|
|
350
|
+
Wa as useTheme
|
|
176
351
|
};
|
package/build/theme.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const font: {
|
|
|
11
11
|
crossorigin: boolean;
|
|
12
12
|
})[];
|
|
13
13
|
};
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function FontFamilyHead(): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare const theme: string;
|
|
16
16
|
export default theme;
|
|
17
17
|
export declare const overflowProtectionStyles: string;
|
package/build/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./jsx-runtime-BB_1_6y_.js"),r=require("@kuma-ui/core"),c="#f8fafc",a="#0c0d12",e={family:"Inter, sans-serif",stylesheet:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",preconnect:[{url:"https://fonts.googleapis.com"},{url:"https://fonts.gstatic.com",crossorigin:!0}]};function l(){return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[e.preconnect.map(({url:o,crossorigin:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./jsx-runtime-BB_1_6y_.js"),r=require("@kuma-ui/core"),c="#f8fafc",a="#0c0d12",e={family:"Inter, sans-serif",stylesheet:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",preconnect:[{url:"https://fonts.googleapis.com"},{url:"https://fonts.gstatic.com",crossorigin:!0}]};function l(){return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[e.preconnect.map(({url:o,crossorigin:n})=>t.jsxRuntimeExports.jsx("link",{href:o,rel:"preconnect",crossOrigin:n?"anonymous":void 0},o)),t.jsxRuntimeExports.jsx("link",{href:e.stylesheet,rel:"stylesheet"})]})}const i="kakadu-components-2006849853",u="kakadu-components-4178476647",f="kakadu-components-216224454",s="kakadu-components-352310015",m=r.cx(s,"kakadu-components-1119532724");exports.FontFamilyHead=l;exports.buttonResetStyles=f;exports.darkBackgroundColor=a;exports.default=i;exports.effectStyles=s;exports.font=e;exports.lightBackgroundColor=c;exports.nonInteractiveEffectStyles=m;exports.overflowProtectionStyles=u;
|
package/build/theme.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-B4hRZ52C.mjs";
|
|
2
2
|
import { cx as n } from "@kuma-ui/core";
|
|
3
|
-
const
|
|
3
|
+
const l = "#f8fafc", i = "#0c0d12", s = {
|
|
4
4
|
family: "Inter, sans-serif",
|
|
5
5
|
stylesheet: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
|
|
6
6
|
preconnect: [{
|
|
@@ -19,15 +19,15 @@ function f() {
|
|
|
19
19
|
/* @__PURE__ */ t.jsx("link", { href: s.stylesheet, rel: "stylesheet" })
|
|
20
20
|
] });
|
|
21
21
|
}
|
|
22
|
-
const p = "kakadu-components-
|
|
22
|
+
const p = "kakadu-components-2006849853", m = "kakadu-components-4178476647", k = "kakadu-components-216224454", c = "kakadu-components-352310015", u = n(c, "kakadu-components-1119532724");
|
|
23
23
|
export {
|
|
24
|
-
f as
|
|
24
|
+
f as FontFamilyHead,
|
|
25
25
|
k as buttonResetStyles,
|
|
26
|
-
|
|
26
|
+
i as darkBackgroundColor,
|
|
27
27
|
p as default,
|
|
28
28
|
c as effectStyles,
|
|
29
29
|
s as font,
|
|
30
|
-
|
|
30
|
+
l as lightBackgroundColor,
|
|
31
31
|
u as nonInteractiveEffectStyles,
|
|
32
32
|
m as overflowProtectionStyles
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kakadu/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Kakadu components library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "vitest run",
|
|
31
31
|
"test:watch": "vitest",
|
|
32
32
|
"test:coverage": "vitest run --coverage",
|
|
33
|
-
"prepublishOnly": "npm test && npm run build",
|
|
33
|
+
"prepublishOnly": "npm run lint && npm test && npm run build",
|
|
34
34
|
"chromatic": "npx chromatic --project-token=chpt_52149863cf0ae20"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
package/readme.md
CHANGED
|
@@ -35,19 +35,19 @@ export default function App({Component, pageProps}: AppProps) {
|
|
|
35
35
|
}
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Then, in your `_document.tsx` (or equivalent), import the `theme` class name and the `
|
|
38
|
+
Then, in your `_document.tsx` (or equivalent), import the `theme` class name and the `FontFamilyHead`:
|
|
39
39
|
|
|
40
40
|
```tsx
|
|
41
41
|
import React from 'react';
|
|
42
42
|
import Document, {Html, Head, Main, NextScript} from 'next/document';
|
|
43
|
-
import {theme,
|
|
43
|
+
import {theme, FontFamilyHead} from '@kakadu/components';
|
|
44
44
|
|
|
45
45
|
export default class CustomDocument extends Document {
|
|
46
46
|
render() {
|
|
47
47
|
return (
|
|
48
48
|
<Html suppressHydrationWarning className={theme}>
|
|
49
49
|
<Head>
|
|
50
|
-
<
|
|
50
|
+
<FontFamilyHead />
|
|
51
51
|
</Head>
|
|
52
52
|
|
|
53
53
|
<body>
|