@kakadu/components 1.6.1 → 1.6.3

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