@kakadu/components 1.5.2 → 1.6.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/build/index.mjs CHANGED
@@ -1,176 +1,356 @@
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 ce, overflowProtectionStyles as U } from "./theme.mjs";
2
+ import { FontFamilyHead as We, darkBackgroundColor as $e, effectStyles as Oe, font as Ue, lightBackgroundColor as ze, nonInteractiveEffectStyles as Qe, default as qe } from "./theme.mjs";
3
+ import { default as Xe, ariaTextStyles as Ye } from "./components/aria-text.mjs";
4
+ import ie from "./components/atom.mjs";
5
+ import { defaultAtomElementType as _e } from "./components/atom.mjs";
6
+ import { default as tt } from "./components/bankid-logo.mjs";
7
+ import { default as at } from "./components/box.mjs";
8
+ import { default as nt, ButtonVariant as st, buttonDangerStyles as lt, buttonSecondaryStyles as ct, buttonSuccessStyles as it, buttonWarningStyles as dt } from "./components/button.mjs";
9
+ import de from "./components/button-tooltip.mjs";
10
+ import { default as ft } from "./components/card.mjs";
11
+ import G 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 z, useId as Q, useLayoutEffect as ue, useMemo as D, useCallback as S } from "react";
14
+ import { cx as c } from "@kuma-ui/core";
15
+ import { default as mt } from "./components/datum.mjs";
16
+ import { default as kt } from "./components/dnb-logo.mjs";
17
+ import { default as gt } from "./components/dot.mjs";
18
+ import { default as St, FlexAlignment as vt } from "./components/flex.mjs";
19
+ import { default as jt, FooterLinkItem as Nt } from "./components/footer.mjs";
20
+ import { default as Tt } from "./components/gauge.mjs";
21
+ import { default as Bt } from "./components/gjensidige-logo.mjs";
22
+ import { default as wt } from "./components/header.mjs";
23
+ import V from "./components/hover-gradient.mjs";
24
+ import { normalBlendStyles as Ht } from "./components/hover-gradient.mjs";
25
+ import { default as Pt, IconButtonVariant as At } from "./components/icon-button.mjs";
26
+ import fe from "./icons/chevron-up.mjs";
27
+ import { I as F, S as pe } from "./icon-Dz2YJAPU.mjs";
28
+ import { a as Gt, i as Dt } from "./icon-Dz2YJAPU.mjs";
29
+ import K from "./utilities/copy-to-clipboard.mjs";
30
+ import W from "./components/text-button.mjs";
31
+ import { TextButtonVariant as Ft } from "./components/text-button.mjs";
32
+ import { Span as w, Paragraph as $ } from "./components/text.mjs";
33
+ import { AnchorHeading as Wt, Heading as $t, Hero as Ot, Label as Ut, default as zt, spanStyles as Qt, textShadowStyles as qt } from "./components/text.mjs";
34
+ import { useCreateNotification as me } from "./components/notification.mjs";
35
+ import { default as Xt, NotificationProvider as Yt } from "./components/notification.mjs";
36
+ import { NoticeType as xe } from "./components/notice.mjs";
37
+ import { default as _t } from "./components/notice.mjs";
38
+ import { default as to } from "./components/kakadu-guide-icon.mjs";
39
+ import { default as ao, KakaduGuideLogoSvg as ro, KakaduGuideLogoVariant as no } from "./components/kakadu-guide-logo.mjs";
40
+ import { default as lo } from "./components/kakadu-index-logo.mjs";
41
+ import { default as io } from "./components/kakadu-logo.mjs";
42
+ import { default as fo, useModal as po, useModalContext as mo } from "./components/modal.mjs";
43
+ import { default as ko } from "./components/moving-gradients.mjs";
44
+ import { default as go } from "./components/moving-stars.mjs";
45
+ import { default as So, useRevealer as vo } from "./components/revealer.mjs";
46
+ import { default as jo, SeparatorLabel as No, SmallSeparator as Lo, VerticalSeparator as To } from "./components/separator.mjs";
47
+ import { default as Bo, SkeletonInstance as Eo } from "./components/skeleton.mjs";
48
+ import { default as Co } from "./components/sparebank1-logo.mjs";
49
+ import { RevealSpinner as Mo, default as Po } from "./components/spinner.mjs";
50
+ import { default as Ro } from "./components/sto-logo.mjs";
51
+ import { default as Do } from "./components/storebrand-logo.mjs";
52
+ import { default as Fo, getThemePreference as Ko, setThemePreference as Wo, themePreferences as $o, useIsDarkMode as Oo, useIsLightMode as Uo, useTheme as zo } from "./components/theme-setter.mjs";
53
+ import { default as qo } from "./components/veil.mjs";
54
+ import { default as Xo, WrapperWidth as Yo } from "./components/wrapper.mjs";
55
+ import { default as _o } from "./icons/arrow-down.mjs";
56
+ import { default as ta } from "./icons/caret-down.mjs";
57
+ import { default as aa } from "./icons/caret-right.mjs";
58
+ import { default as na } from "./icons/check.mjs";
59
+ import { default as la } from "./icons/chevron-down.mjs";
60
+ import { default as ia } from "./icons/chrome-browser-logo.mjs";
61
+ import { default as ua } from "./icons/copy.mjs";
62
+ import { default as pa } from "./icons/edit.mjs";
63
+ import { default as xa } from "./icons/edge-browser-logo.mjs";
64
+ import { default as ha } from "./icons/exclamation-triangle.mjs";
65
+ import { default as ya } from "./icons/kakadu-guide.mjs";
66
+ import { default as va } from "./icons/kakadu-guide-glyph.mjs";
67
+ import { default as ja } from "./icons/menu.mjs";
68
+ import { default as La } from "./icons/plus.mjs";
69
+ import { default as Ia } from "./icons/test.mjs";
70
+ import { default as Ea } from "./icons/times.mjs";
71
+ import { default as Ca } from "./hooks/use-media-query.mjs";
72
+ import { default as Ma } from "./utilities/generate-random-id.mjs";
73
+ import { default as Aa } from "./utilities/scale.mjs";
74
+ function ke({
75
+ as: i,
76
+ isCollapsed: a = !0,
77
+ children: s,
78
+ className: r,
79
+ ...h
80
+ }) {
81
+ const t = v(null), [f, l] = b();
82
+ return z(() => {
83
+ if (a)
84
+ l(0);
85
+ else {
86
+ const m = t.current;
87
+ m && l(m.scrollHeight ?? 0);
88
+ }
89
+ }, [a]), /* @__PURE__ */ e.jsx(ie, { as: i ?? "div", ...h, "aria-hidden": a, style: {
90
+ height: f,
91
+ opacity: a ? 0 : 1
92
+ }, className: c("kakadu-components-2223449868", r), children: /* @__PURE__ */ e.jsx("div", { ref: t, className: "kakadu-components-3857562328", children: s }) });
93
+ }
94
+ const he = "kakadu-components-2065792067", ge = "kakadu-components-3551118672", j = "kakadu-components-2161641266", q = "kakadu-components-628401705", ye = c(q, "kakadu-components-3245407458"), Se = c(q, "kakadu-components-1117160492");
95
+ function ve({
96
+ as: i,
97
+ className: a,
98
+ ...s
99
+ }) {
100
+ return /* @__PURE__ */ e.jsx(w, { as: i ?? "span", ...s, className: c("kakadu-components-3574036749", a) });
101
+ }
102
+ function J({
103
+ label: i,
104
+ error: a,
105
+ errorId: s,
106
+ warning: r,
107
+ warningId: h,
108
+ footnote: t,
109
+ attachments: f,
110
+ className: l,
111
+ children: m,
112
+ ...n
113
+ }) {
114
+ const x = !!a, k = !!r, p = !!t;
115
+ return /* @__PURE__ */ e.jsxs("label", { ...n, className: c(he, l), children: [
116
+ /* @__PURE__ */ e.jsx(w, { className: c(U, ge), children: /* @__PURE__ */ e.jsx("span", { children: i }) }),
117
+ /* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-448077930", children: [
118
+ m,
119
+ p ? /* @__PURE__ */ e.jsx(ve, { className: "kakadu-components-3258753754", children: t }) : null,
120
+ f
121
+ ] }),
122
+ x ? /* @__PURE__ */ e.jsx($, { id: s, className: ye, children: a instanceof Error ? a.message : a }) : k ? /* @__PURE__ */ e.jsx($, { id: h, className: Se, children: r instanceof Error ? r.message : r }) : null
123
+ ] });
124
+ }
125
+ function De({
126
+ label: i,
127
+ options: a,
128
+ error: s,
129
+ warning: r,
130
+ footnote: h,
131
+ className: t,
132
+ ...f
133
+ }) {
134
+ const l = Q(), m = `${l}-error`, n = `${l}-warning`, x = !!s, k = !!r;
135
+ return /* @__PURE__ */ e.jsxs(J, { label: i, error: s, warning: r, footnote: h, children: [
136
+ /* @__PURE__ */ e.jsx("select", { ...f, "aria-invalid": x, "data-warning": k, "aria-describedby": x ? m : k ? n : void 0, className: c(j, "kakadu-components-709108872", t), children: a.map((p) => /* @__PURE__ */ e.jsx("option", { value: p.value, children: p.label }, p.value)) }),
137
+ /* @__PURE__ */ e.jsx(fe, { className: "kakadu-components-1616393393" })
138
+ ] });
139
+ }
140
+ const be = 36, O = "kakadu-components-4233741488";
141
+ function Ve({
142
+ type: i,
143
+ label: a,
144
+ error: s,
145
+ warning: r,
146
+ footnote: h,
147
+ suggestion: t,
148
+ hasCopyButton: f,
149
+ hasClearButton: l,
150
+ isMultiline: m,
151
+ onChange: n,
152
+ className: x,
153
+ ...k
154
+ }) {
155
+ const p = v(null), N = v(null), L = v(null), C = me(), H = Q(), X = `${H}-error`, Y = `${H}-warning`, {
156
+ value: y
157
+ } = k, [Z, M] = b(""), d = y ?? Z, [_, ee] = b(), te = i === "textarea" || !!m;
158
+ ue(() => {
159
+ typeof d == "string" && L.current && ee(L.current.scrollHeight);
160
+ }, [d]);
161
+ const T = D(() => typeof d == "string" ? `${d} `.split(`
162
+ `) : [], [d]), oe = D(() => T.length, [T]), I = !!s, B = !!r, P = I ? X : B ? Y : void 0;
163
+ z(() => {
164
+ M(typeof y == "string" ? y : "");
165
+ }, [y]);
166
+ const A = S((o) => {
167
+ const {
168
+ value: u
169
+ } = o.target;
170
+ M(u), n == null || n(u, o);
171
+ }, [n]), ae = S(() => {
172
+ typeof d == "string" && (K(d), C({
173
+ type: xe.success,
174
+ children: "Copied to clipboard."
175
+ }));
176
+ }, [d, C]), re = S(() => {
177
+ var u;
178
+ const o = N.current ?? p.current;
179
+ if (n && o) {
180
+ const g = (u = Object.getOwnPropertyDescriptor(o instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : u.set;
181
+ if (g) {
182
+ g.call(o, "");
183
+ const E = new Event("input", {
184
+ bubbles: !0
185
+ });
186
+ o.dispatchEvent(E), o.focus();
187
+ }
188
+ }
189
+ }, [n]), [ne, se] = b(""), R = !!t && ne !== t, le = S(() => {
190
+ var u;
191
+ const o = N.current ?? p.current;
192
+ if (t && n && o) {
193
+ const g = (u = Object.getOwnPropertyDescriptor(o instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : u.set;
194
+ if (g) {
195
+ g.call(o, t);
196
+ const E = new Event("input", {
197
+ bubbles: !0
198
+ });
199
+ o.dispatchEvent(E), o.focus();
200
+ } else
201
+ K(t);
202
+ se(t);
203
+ }
204
+ }, [t, n]);
205
+ return /* @__PURE__ */ e.jsxs(J, { label: a, error: s, warning: r, footnote: h, attachments: /* @__PURE__ */ e.jsx(ke, { isCollapsed: !R, children: R ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: c(ce, U, "kakadu-components-2355856341"), onClick: le, children: [
206
+ /* @__PURE__ */ e.jsx(de, { label: "Apply suggestion" }),
207
+ /* @__PURE__ */ e.jsx(pe, { width: 13, height: 13, className: "kakadu-components-1021263934" }),
208
+ /* @__PURE__ */ e.jsx(w, { className: "kakadu-components-1585874956", children: t }),
209
+ /* @__PURE__ */ e.jsx(G, { className: "kakadu-components-3448565402" }),
210
+ /* @__PURE__ */ e.jsx(V, {})
211
+ ] }) : null }), style: {
212
+ "--button-padding": `${be * ((f ? 1 : 0) + (l ? 1 : 0))}px`
213
+ }, children: [
214
+ /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
215
+ te ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
216
+ /* @__PURE__ */ e.jsxs("span", { ref: L, "aria-hidden": !0, className: c(j, x, "kakadu-components-2033521835"), children: [
217
+ T.map((o, u) => (
218
+ // eslint-disable-next-line react/no-array-index-key
219
+ /* @__PURE__ */ e.jsxs("span", { children: [
220
+ o,
221
+ oe > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
222
+ ] }, u)
223
+ )),
224
+ " "
225
+ ] }),
226
+ /* @__PURE__ */ e.jsx("textarea", { ...k, ref: N, rows: 1, "aria-invalid": I, "data-warning": B, "aria-describedby": P, value: d, className: c(j, x, "kakadu-components-2119524139"), style: {
227
+ minHeight: _
228
+ }, onChange: A })
229
+ ] }) : /* @__PURE__ */ e.jsx("input", { ...k, ref: p, type: i ?? "text", value: d, "aria-invalid": I, "data-warning": B, "aria-describedby": P, className: c(j, x), onChange: A }),
230
+ /* @__PURE__ */ e.jsx(G, { className: "kakadu-components-1614211948" }),
231
+ /* @__PURE__ */ e.jsx(V, { className: "kakadu-components-1041647916" })
232
+ ] }),
233
+ f || l ? /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-131986363", children: [
234
+ f ? /* @__PURE__ */ e.jsx(W, { iconLeft: F.copy, label: "Copy", tooltip: "Copy", className: O, onClick: ae }) : null,
235
+ l ? /* @__PURE__ */ e.jsx(W, { iconLeft: F.times, label: "Clear", tooltip: "Clear", className: O, onClick: re }) : null
236
+ ] }) : null
237
+ ] });
238
+ }
63
239
  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
240
+ Wt as AnchorHeading,
241
+ Xe as AriaText,
242
+ _o as ArrowDown,
243
+ ie as Atom,
244
+ tt as BankidLogo,
245
+ at as Box,
246
+ nt as Button,
247
+ de as ButtonTooltip,
248
+ st as ButtonVariant,
249
+ ft as Card,
250
+ ta as CaretDown,
251
+ aa as CaretRight,
252
+ na as Check,
253
+ la as ChevronDown,
254
+ fe as ChevronUp,
255
+ ia as ChromeBrowserLogo,
256
+ G as ClickRipples,
257
+ ke as Collapsible,
258
+ ua as Copy,
259
+ mt as Datum,
260
+ kt as DnbLogo,
261
+ gt as Dot,
262
+ xa as EdgeBrowserLogo,
263
+ pa as Edit,
264
+ ha as ExclamationTriangle,
265
+ St as Flex,
266
+ vt as FlexAlignment,
267
+ We as FontFamilyHead,
268
+ jt as Footer,
269
+ Nt as FooterLinkItem,
270
+ Tt as Gauge,
271
+ Bt as GjensidigeLogo,
272
+ wt as Header,
273
+ $t as Heading,
274
+ Ot as Hero,
275
+ V as HoverGradient,
276
+ Gt as Icon,
277
+ Pt as IconButton,
278
+ At as IconButtonVariant,
279
+ F as IconType,
280
+ Ve as Input,
281
+ ya as KakaduGuide,
282
+ va as KakaduGuideGlyph,
283
+ to as KakaduGuideIcon,
284
+ ao as KakaduGuideLogo,
285
+ ro as KakaduGuideLogoSvg,
286
+ no as KakaduGuideLogoVariant,
287
+ lo as KakaduIndexLogo,
288
+ io as KakaduLogo,
289
+ Ut as Label,
290
+ ja as Menu,
291
+ fo as Modal,
292
+ ko as MovingGradients,
293
+ go as MovingStars,
294
+ _t as Notice,
295
+ xe as NoticeType,
296
+ Xt as Notification,
297
+ Yt as NotificationProvider,
298
+ $ as Paragraph,
299
+ La as Plus,
300
+ Mo as RevealSpinner,
301
+ So as Revealer,
302
+ De as Select,
303
+ jo as Separator,
304
+ No as SeparatorLabel,
305
+ Bo as Skeleton,
306
+ Eo as SkeletonInstance,
307
+ Lo as SmallSeparator,
308
+ w as Span,
309
+ Co as Sparebank1Logo,
310
+ Po as Spinner,
311
+ Ro as StoLogo,
312
+ Do as StorebrandLogo,
313
+ Ia as Test,
314
+ zt as Text,
315
+ W as TextButton,
316
+ Ft as TextButtonVariant,
317
+ Fo as ThemeSetter,
318
+ Ea as Times,
319
+ qo as Veil,
320
+ To as VerticalSeparator,
321
+ Xo as Wrapper,
322
+ Yo as WrapperWidth,
323
+ Ye as ariaTextStyles,
324
+ lt as buttonDangerStyles,
325
+ ce as buttonResetStyles,
326
+ ct as buttonSecondaryStyles,
327
+ it as buttonSuccessStyles,
328
+ dt as buttonWarningStyles,
329
+ K as copyToClipboard,
330
+ $e as darkBackgroundColor,
331
+ _e as defaultAtomElementType,
332
+ Oe as effectStyles,
333
+ ye as errorParagraph,
334
+ Ue as font,
335
+ Ma as generateRandomId,
336
+ Ko as getThemePreference,
337
+ Dt as iconShadowStyles,
338
+ ze as lightBackgroundColor,
339
+ Qe as nonInteractiveEffectStyles,
340
+ Ht as normalBlendStyles,
341
+ U as overflowProtectionStyles,
342
+ Aa as scale,
343
+ Wo as setThemePreference,
344
+ Qt as spanStyles,
345
+ qt as textShadowStyles,
346
+ qe as theme,
347
+ $o as themePreferences,
348
+ me as useCreateNotification,
349
+ Oo as useIsDarkMode,
350
+ Uo as useIsLightMode,
351
+ Ca as useMediaQuery,
352
+ po as useModal,
353
+ mo as useModalContext,
354
+ vo as useRevealer,
355
+ zo as useTheme
176
356
  };
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.1",
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>