@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/index.mjs CHANGED
@@ -1,176 +1,351 @@
1
- import { FontFamilyHeadLink as t, buttonResetStyles as a, darkBackgroundColor as r, effectStyles as f, font as l, lightBackgroundColor as d, nonInteractiveEffectStyles as u, overflowProtectionStyles as s, default as p } from "./theme.mjs";
2
- import { default as n, defaultAtomElementType as x } from "./components/atom.mjs";
3
- import { default as g, ariaTextStyles as S } from "./components/aria-text.mjs";
4
- import { default as y } from "./components/box.mjs";
5
- import { default as h, ButtonVariant as L, buttonDangerStyles as T, buttonSecondaryStyles as B, buttonSuccessStyles as C, buttonWarningStyles as v } from "./components/button.mjs";
6
- import { default as b } from "./components/button-tooltip.mjs";
7
- import { default as w } from "./components/card.mjs";
8
- import { default as D } from "./components/click-ripples.mjs";
9
- import { default as P } from "./components/datum.mjs";
10
- import { default as A } from "./components/dot.mjs";
11
- import { default as H, FlexAlignment as V } from "./components/flex.mjs";
12
- import { default as N, FooterLinkItem as W } from "./components/footer.mjs";
13
- import { default as Q } from "./components/gauge.mjs";
14
- import { default as q } from "./components/header.mjs";
15
- import { default as J, normalBlendStyles as O } from "./components/hover-gradient.mjs";
16
- import { default as Y, IconButtonVariant as Z } from "./components/icon-button.mjs";
17
- import { default as $ } from "./components/kakadu-guide-icon.mjs";
18
- import { default as oe, KakaduGuideLogoSvg as te, KakaduGuideLogoVariant as ae } from "./components/kakadu-guide-logo.mjs";
19
- import { default as fe } from "./components/kakadu-index-logo.mjs";
20
- import { default as de } from "./components/kakadu-logo.mjs";
21
- import { default as se } from "./components/bankid-logo.mjs";
22
- import { default as me } from "./components/dnb-logo.mjs";
23
- import { default as xe } from "./components/gjensidige-logo.mjs";
24
- import { default as ge } from "./components/sparebank1-logo.mjs";
25
- import { default as ce } from "./components/sto-logo.mjs";
26
- import { default as ke } from "./components/storebrand-logo.mjs";
27
- import { default as Le, useModal as Te, useModalContext as Be } from "./components/modal.mjs";
28
- import { default as ve } from "./components/moving-gradients.mjs";
29
- import { default as be } from "./components/moving-stars.mjs";
30
- import { default as we, NoticeType as Me } from "./components/notice.mjs";
31
- import { default as Ke, NotificationProvider as Pe, useCreateNotification as Re } from "./components/notification.mjs";
32
- import { default as Fe, useRevealer as He } from "./components/revealer.mjs";
33
- import { default as Ee, SeparatorLabel as Ne, SmallSeparator as We, VerticalSeparator as je } from "./components/separator.mjs";
34
- import { default as Ue, SkeletonInstance as qe } from "./components/skeleton.mjs";
35
- import { RevealSpinner as Je, default as Oe } from "./components/spinner.mjs";
36
- import { AnchorHeading as Ye, Heading as Ze, Hero as _e, Label as $e, Paragraph as eo, Span as oo, default as to, spanStyles as ao, textShadowStyles as ro } from "./components/text.mjs";
37
- import { default as lo, TextButtonVariant as uo } from "./components/text-button.mjs";
38
- import { default as po, getThemePreference as mo, setThemePreference as no, themePreferences as xo, useIsDarkMode as io, useIsLightMode as go, useTheme as So } from "./components/theme-setter.mjs";
39
- import { default as yo } from "./components/veil.mjs";
40
- import { default as ho, WrapperWidth as Lo } from "./components/wrapper.mjs";
41
- import { default as Bo, IconType as Co, iconShadowStyles as vo } from "./icons/icon.mjs";
42
- import { default as bo } from "./icons/arrow-down.mjs";
43
- import { default as wo } from "./icons/caret-down.mjs";
44
- import { default as Do } from "./icons/caret-right.mjs";
45
- import { default as Po } from "./icons/check.mjs";
46
- import { default as Ao } from "./icons/chevron-down.mjs";
47
- import { default as Ho } from "./icons/chevron-up.mjs";
48
- import { default as Eo } from "./icons/chrome-browser-logo.mjs";
49
- import { default as Wo } from "./icons/copy.mjs";
50
- import { default as Qo } from "./icons/edit.mjs";
51
- import { default as qo } from "./icons/edge-browser-logo.mjs";
52
- import { default as Jo } from "./icons/exclamation-triangle.mjs";
53
- import { default as Xo } from "./icons/kakadu-guide.mjs";
54
- import { default as Zo } from "./icons/kakadu-guide-glyph.mjs";
55
- import { default as $o } from "./icons/menu.mjs";
56
- import { default as ot } from "./icons/plus.mjs";
57
- import { default as at } from "./icons/test.mjs";
58
- import { default as ft } from "./icons/times.mjs";
59
- import { default as dt } from "./hooks/use-media-query.mjs";
60
- import { default as st } from "./utilities/copy-to-clipboard.mjs";
61
- import { default as mt } from "./utilities/generate-random-id.mjs";
62
- import { default as xt } from "./utilities/scale.mjs";
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
- Ye as AnchorHeading,
65
- g as AriaText,
66
- bo as ArrowDown,
67
- n as Atom,
68
- se as BankidLogo,
69
- y as Box,
70
- h as Button,
71
- b as ButtonTooltip,
72
- L as ButtonVariant,
73
- w as Card,
74
- wo as CaretDown,
75
- Do as CaretRight,
76
- Po as Check,
77
- Ao as ChevronDown,
78
- Ho as ChevronUp,
79
- Eo as ChromeBrowserLogo,
80
- D as ClickRipples,
81
- Wo as Copy,
82
- P as Datum,
83
- me as DnbLogo,
84
- A as Dot,
85
- qo as EdgeBrowserLogo,
86
- Qo as Edit,
87
- Jo as ExclamationTriangle,
88
- H as Flex,
89
- V as FlexAlignment,
90
- t as FontFamilyHeadLink,
91
- N as Footer,
92
- W as FooterLinkItem,
93
- Q as Gauge,
94
- xe as GjensidigeLogo,
95
- q as Header,
96
- Ze as Heading,
97
- _e as Hero,
98
- J as HoverGradient,
99
- Bo as Icon,
100
- Y as IconButton,
101
- Z as IconButtonVariant,
102
- Co as IconType,
103
- Xo as KakaduGuide,
104
- Zo as KakaduGuideGlyph,
105
- $ as KakaduGuideIcon,
106
- oe as KakaduGuideLogo,
107
- te as KakaduGuideLogoSvg,
108
- ae as KakaduGuideLogoVariant,
109
- fe as KakaduIndexLogo,
110
- de as KakaduLogo,
111
- $e as Label,
112
- $o as Menu,
113
- Le as Modal,
114
- ve as MovingGradients,
115
- be as MovingStars,
116
- we as Notice,
117
- Me as NoticeType,
118
- Ke as Notification,
119
- Pe as NotificationProvider,
120
- eo as Paragraph,
121
- ot as Plus,
122
- Je as RevealSpinner,
123
- Fe as Revealer,
124
- Ee as Separator,
125
- Ne as SeparatorLabel,
126
- Ue as Skeleton,
127
- qe as SkeletonInstance,
128
- We as SmallSeparator,
129
- oo as Span,
130
- ge as Sparebank1Logo,
131
- Oe as Spinner,
132
- ce as StoLogo,
133
- ke as StorebrandLogo,
134
- at as Test,
135
- to as Text,
136
- lo as TextButton,
137
- uo as TextButtonVariant,
138
- po as ThemeSetter,
139
- ft as Times,
140
- yo as Veil,
141
- je as VerticalSeparator,
142
- ho as Wrapper,
143
- Lo as WrapperWidth,
144
- S as ariaTextStyles,
145
- T as buttonDangerStyles,
146
- a as buttonResetStyles,
147
- B as buttonSecondaryStyles,
148
- C as buttonSuccessStyles,
149
- v as buttonWarningStyles,
150
- st as copyToClipboard,
151
- r as darkBackgroundColor,
152
- x as defaultAtomElementType,
153
- f as effectStyles,
154
- l as font,
155
- mt as generateRandomId,
156
- mo as getThemePreference,
157
- vo as iconShadowStyles,
158
- d as lightBackgroundColor,
159
- u as nonInteractiveEffectStyles,
160
- O as normalBlendStyles,
161
- s as overflowProtectionStyles,
162
- xt as scale,
163
- no as setThemePreference,
164
- ao as spanStyles,
165
- ro as textShadowStyles,
166
- p as theme,
167
- xo as themePreferences,
168
- Re as useCreateNotification,
169
- io as useIsDarkMode,
170
- go as useIsLightMode,
171
- dt as useMediaQuery,
172
- Te as useModal,
173
- Be as useModalContext,
174
- He as useRevealer,
175
- So as useTheme
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 FontFamilyHeadLink(): import("react/jsx-runtime").JSX.Element;
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:s})=>t.jsxRuntimeExports.jsx("link",{href:o,rel:"preconnect",crossOrigin:s?"anonymous":void 0},o)),t.jsxRuntimeExports.jsx("link",{href:e.stylesheet,rel:"stylesheet"})]})}const i="kakadu-components-973047807",u="kakadu-components-4178476647",f="kakadu-components-216224454",n="kakadu-components-352310015",m=r.cx(n,"kakadu-components-1119532724");exports.FontFamilyHeadLink=l;exports.buttonResetStyles=f;exports.darkBackgroundColor=a;exports.default=i;exports.effectStyles=n;exports.font=e;exports.lightBackgroundColor=c;exports.nonInteractiveEffectStyles=m;exports.overflowProtectionStyles=u;
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 i = "#f8fafc", l = "#0c0d12", s = {
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-973047807", m = "kakadu-components-4178476647", k = "kakadu-components-216224454", c = "kakadu-components-352310015", u = n(c, "kakadu-components-1119532724");
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 FontFamilyHeadLink,
24
+ f as FontFamilyHead,
25
25
  k as buttonResetStyles,
26
- l as darkBackgroundColor,
26
+ i as darkBackgroundColor,
27
27
  p as default,
28
28
  c as effectStyles,
29
29
  s as font,
30
- i as lightBackgroundColor,
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.5.2",
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 `FontFamilyHeadLink`:
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, FontFamilyHeadLink} from '@kakadu/components';
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
- <FontFamilyHeadLink />
50
+ <FontFamilyHead />
51
51
  </Head>
52
52
 
53
53
  <body>