@kakadu/components 1.0.0 → 1.0.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.
Files changed (67) hide show
  1. package/build/build/aria-text.d.ts +8 -0
  2. package/build/build/atom.d.ts +9 -0
  3. package/build/build/bankid-logo.d.ts +5 -0
  4. package/build/build/box.d.ts +6 -0
  5. package/build/build/button-tooltip.d.ts +5 -0
  6. package/build/build/button.d.ts +23 -0
  7. package/build/build/card.d.ts +11 -0
  8. package/build/build/click-ripples.d.ts +6 -0
  9. package/build/build/datum.d.ts +6 -0
  10. package/build/build/dnb-logo.d.ts +5 -0
  11. package/build/build/dot.d.ts +4 -0
  12. package/build/build/flex.d.ts +12 -0
  13. package/build/build/footer.d.ts +4 -0
  14. package/build/build/gauge.d.ts +6 -0
  15. package/build/build/gjensidige-logo.d.ts +5 -0
  16. package/build/build/hooks/use-media-query.d.ts +2 -0
  17. package/build/build/hover-gradient.d.ts +8 -0
  18. package/build/build/icon-button.d.ts +10 -0
  19. package/build/build/icon.d.ts +8 -0
  20. package/build/build/icons/arrow-down.d.ts +5 -0
  21. package/build/build/icons/caret-down.d.ts +5 -0
  22. package/build/build/icons/caret-right.d.ts +5 -0
  23. package/build/build/icons/check.d.ts +5 -0
  24. package/build/build/icons/chevron-down.d.ts +5 -0
  25. package/build/build/icons/chevron-up.d.ts +5 -0
  26. package/build/build/icons/chrome-browser-logo.d.ts +5 -0
  27. package/build/build/icons/copy.d.ts +5 -0
  28. package/build/build/icons/edge-browser-logo.d.ts +5 -0
  29. package/build/build/icons/edit.d.ts +5 -0
  30. package/build/build/icons/exclamation-triangle.d.ts +5 -0
  31. package/build/build/icons/kakadu-guide-glyph.d.ts +5 -0
  32. package/build/build/icons/kakadu-guide.d.ts +5 -0
  33. package/build/build/icons/menu.d.ts +5 -0
  34. package/build/build/icons/plus.d.ts +5 -0
  35. package/build/build/icons/test.d.ts +5 -0
  36. package/build/build/icons/times.d.ts +5 -0
  37. package/build/build/jsx-runtime-BB_1_6y_.d.ts +2 -0
  38. package/build/build/kakadu-guide-icon.d.ts +4 -0
  39. package/build/build/kakadu-guide-logo.d.ts +11 -0
  40. package/build/build/kakadu-index-logo.d.ts +5 -0
  41. package/build/build/kakadu-logo.d.ts +5 -0
  42. package/build/build/modal.d.ts +22 -0
  43. package/build/build/moving-gradients.d.ts +8 -0
  44. package/build/build/moving-stars.d.ts +11 -0
  45. package/build/build/notice.d.ts +10 -0
  46. package/build/build/notification.d.ts +15 -0
  47. package/build/build/revealer.d.ts +24 -0
  48. package/build/build/separator.d.ts +10 -0
  49. package/build/build/skeleton.d.ts +16 -0
  50. package/build/build/sparebank1-logo.d.ts +5 -0
  51. package/build/build/spinner.d.ts +11 -0
  52. package/build/build/sto-logo.d.ts +5 -0
  53. package/build/build/storebrand-logo.d.ts +5 -0
  54. package/build/build/text-button.d.ts +12 -0
  55. package/build/build/text.d.ts +30 -0
  56. package/build/build/theme-setter.d.ts +9 -0
  57. package/build/build/theme.d.ts +22 -0
  58. package/build/build/utilities/copy-to-clipboard.d.ts +2 -0
  59. package/build/build/utilities/generate-random-id.d.ts +2 -0
  60. package/build/build/utilities/scale.d.ts +11 -0
  61. package/build/build/veil.d.ts +4 -0
  62. package/build/theme.d.ts +1 -0
  63. package/build/theme.js +1 -1
  64. package/build/theme.mjs +24 -12
  65. package/index.d.ts +60 -0
  66. package/package.json +16 -3
  67. package/theme.tsx +18 -0
@@ -0,0 +1,8 @@
1
+ export { e as ariaTextStyles };
2
+ export default n;
3
+ declare const e: "kakadu-components-3440084244";
4
+ declare function n({ as: t, className: s, ...r }: {
5
+ [x: string]: any;
6
+ as: any;
7
+ className: any;
8
+ }): any;
@@ -0,0 +1,9 @@
1
+ export default o;
2
+ export { e as defaultAtomElementType };
3
+ declare function o({ as: t, reference: r, ...u }: {
4
+ [x: string]: any;
5
+ as: any;
6
+ reference: any;
7
+ }): l.DetailedReactHTMLElement<l.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
8
+ declare const e: "div";
9
+ import l = require("react");
@@ -0,0 +1,5 @@
1
+ export default m;
2
+ declare function m({ fill: h, ...s }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,6 @@
1
+ export default n;
2
+ declare function n({ as: t, className: u, ...o }: {
3
+ [x: string]: any;
4
+ as: any;
5
+ className: any;
6
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ label: e, className: t }: {
3
+ label: any;
4
+ className: any;
5
+ }): any;
@@ -0,0 +1,23 @@
1
+ export default O;
2
+ declare var k: any;
3
+ declare const S: "kakadu-components-1978976872";
4
+ declare const j: "kakadu-components-2244098950";
5
+ declare const _: "kakadu-components-3923184173";
6
+ declare const y: "kakadu-components-317965671";
7
+ declare function O({ type: s, variant: t, className: a, children: n, label: R, tooltip: c, iconLeft: r, iconRight: i, isLoading: u, hasMovingGradients: b, movingGradientsCount: m, hasMovingStars: f, movingStarsCount: d, ...E }: {
8
+ [x: string]: any;
9
+ type: any;
10
+ variant?: string | undefined;
11
+ className: any;
12
+ children: any;
13
+ label: any;
14
+ tooltip: any;
15
+ iconLeft: any;
16
+ iconRight: any;
17
+ isLoading: any;
18
+ hasMovingGradients?: boolean | undefined;
19
+ movingGradientsCount?: number | undefined;
20
+ hasMovingStars?: boolean | undefined;
21
+ movingStarsCount?: number | undefined;
22
+ }): any;
23
+ export { k as ButtonVariant, S as buttonDangerStyles, j as buttonSecondaryStyles, _ as buttonSuccessStyles, y as buttonWarningStyles };
@@ -0,0 +1,11 @@
1
+ export default R;
2
+ declare function R({ icon: a, title: u, description: c, action: l, href: s, target: x, rel: d, ...m }: {
3
+ [x: string]: any;
4
+ icon: any;
5
+ title: any;
6
+ description: any;
7
+ action: any;
8
+ href: any;
9
+ target: any;
10
+ rel: any;
11
+ }): any;
@@ -0,0 +1,6 @@
1
+ export default y;
2
+ declare function y({ size: s, className: i, ...r }: {
3
+ [x: string]: any;
4
+ size?: number | undefined;
5
+ className: any;
6
+ }): any;
@@ -0,0 +1,6 @@
1
+ export default p;
2
+ declare function p({ title: c, value: l, hasCopyButton: x }: {
3
+ title: any;
4
+ value: any;
5
+ hasCopyButton: any;
6
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default n;
2
+ declare function n({ fill: l, ...e }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,4 @@
1
+ export default s;
2
+ declare function s({ className: e }: {
3
+ className: any;
4
+ }): any;
@@ -0,0 +1,12 @@
1
+ export { a as FlexAlignment };
2
+ export default m;
3
+ declare var a: any;
4
+ declare function m({ as: o, direction: s, alignment: n, gap: e, wrap: u, className: c, ...k }: {
5
+ [x: string]: any;
6
+ as: any;
7
+ direction?: string | undefined;
8
+ alignment: any;
9
+ gap?: number | undefined;
10
+ wrap?: boolean | undefined;
11
+ className: any;
12
+ }): any;
@@ -0,0 +1,4 @@
1
+ export default l;
2
+ declare function l({ isFullWidth: a }: {
3
+ isFullWidth?: boolean | undefined;
4
+ }): any;
@@ -0,0 +1,6 @@
1
+ export default j;
2
+ declare function j({ label: a, size: n, percentage: u }: {
3
+ label: any;
4
+ size: any;
5
+ percentage?: number | undefined;
6
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default m;
2
+ declare function m({ fill: s, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,2 @@
1
+ export default a;
2
+ declare function a(t: any): boolean | undefined;
@@ -0,0 +1,8 @@
1
+ export default $;
2
+ export { R as normalBlendStyles };
3
+ declare function $({ size: x, className: k, ...E }: {
4
+ [x: string]: any;
5
+ size?: number | undefined;
6
+ className: any;
7
+ }): any;
8
+ declare const R: "kakadu-components-2608453841";
@@ -0,0 +1,10 @@
1
+ export { m as IconButtonVariant };
2
+ export default R;
3
+ declare var m: any;
4
+ declare function R({ icon: e, variant: u, label: a, className: p, ...k }: {
5
+ [x: string]: any;
6
+ icon: any;
7
+ variant?: string | undefined;
8
+ label: any;
9
+ className: any;
10
+ }): any;
@@ -0,0 +1,8 @@
1
+ export default B;
2
+ declare var r: any;
3
+ declare function B({ type: e, ...t }: {
4
+ [x: string]: any;
5
+ type: any;
6
+ }): any;
7
+ declare const x: "kakadu-components-1645965623";
8
+ export { r as IconType, x as iconShadowStyles };
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ fill: t, ...s }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: t, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: t, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default o;
2
+ declare function o({ fill: t, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default c;
2
+ declare function c({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default o;
2
+ declare function o({ fill: t, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default r;
2
+ declare function r({ fill: t, ...i }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: l, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: t, ...s }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default s;
2
+ declare function s({ fill: t, ...i }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: e, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default s;
2
+ declare function s({ fill: t, ...r }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default i;
2
+ declare function i({ fill: t, ...l }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,2 @@
1
+ export { ne as jsxRuntimeExports };
2
+ declare var ne: {};
@@ -0,0 +1,4 @@
1
+ export default i;
2
+ declare function i({ size: e }: {
3
+ size?: number | undefined;
4
+ }): any;
@@ -0,0 +1,11 @@
1
+ export default d;
2
+ declare function x({ fill: c, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
6
+ declare var i: any;
7
+ declare function d({ variant: c, height: t }: {
8
+ variant?: string | undefined;
9
+ height?: number | undefined;
10
+ }): any;
11
+ export { x as KakaduGuideLogoSvg, i as KakaduGuideLogoVariant };
@@ -0,0 +1,5 @@
1
+ export default e;
2
+ declare function e({ fill: c, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default n;
2
+ declare function n({ fill: e, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,22 @@
1
+ export default pt;
2
+ declare function pt({ root: r, maxWidth: e, className: t, isVisible: a, isFullWidth: u, shouldCloseOnOutsideClick: l, shouldCloseOnEscapePress: n, showCloseButton: p, onClose: y, children: E }: {
3
+ root: any;
4
+ maxWidth: any;
5
+ className: any;
6
+ isVisible: any;
7
+ isFullWidth?: boolean | undefined;
8
+ shouldCloseOnOutsideClick?: boolean | undefined;
9
+ shouldCloseOnEscapePress?: boolean | undefined;
10
+ showCloseButton?: boolean | undefined;
11
+ onClose: any;
12
+ children: any;
13
+ }): any;
14
+ declare function bt(r: any, e: any): {
15
+ isVisible: boolean;
16
+ show: () => Promise<any>;
17
+ modal: any;
18
+ };
19
+ declare function De(): {
20
+ isVisible: boolean;
21
+ };
22
+ export { bt as useModal, De as useModalContext };
@@ -0,0 +1,8 @@
1
+ export default O;
2
+ declare function O({ className: S, colors: C, maximumGradientsCount: m, speed: b, opacity: X }: {
3
+ className: any;
4
+ colors?: string[] | undefined;
5
+ maximumGradientsCount?: number | undefined;
6
+ speed?: number | undefined;
7
+ opacity?: number | undefined;
8
+ }): any;
@@ -0,0 +1,11 @@
1
+ export default B;
2
+ declare function B({ color: y, opacity: R, className: W, minimumSize: A, maximumSize: S, maximumStarsCount: x, speed: C, hasMask: j }: {
3
+ color: any;
4
+ opacity: any;
5
+ className: any;
6
+ minimumSize?: number | undefined;
7
+ maximumSize?: number | undefined;
8
+ maximumStarsCount?: number | undefined;
9
+ speed?: number | undefined;
10
+ hasMask?: boolean | undefined;
11
+ }): any;
@@ -0,0 +1,10 @@
1
+ export { r as NoticeType };
2
+ export default p;
3
+ declare var r: any;
4
+ declare function p({ type: s, icon: a, className: u, children: t, ...d }: {
5
+ [x: string]: any;
6
+ type?: string | undefined;
7
+ icon: any;
8
+ className: any;
9
+ children: any;
10
+ }): any;
@@ -0,0 +1,15 @@
1
+ export default x;
2
+ declare function C({ children: n }: {
3
+ children: any;
4
+ }): any;
5
+ declare function x({ type: n, icon: d, index: c, className: u, children: f, onDismiss: o, ...i }: {
6
+ [x: string]: any;
7
+ type: any;
8
+ icon: any;
9
+ index: any;
10
+ className: any;
11
+ children: any;
12
+ onDismiss: any;
13
+ }): any;
14
+ declare function E(): () => never;
15
+ export { C as NotificationProvider, E as useCreateNotification };
@@ -0,0 +1,24 @@
1
+ export default q;
2
+ export { k as useRevealer };
3
+ declare function q({ delay: t, animationDelay: c, duration: n, threshold: l, distance: d, isMoving: r, isCentered: m, shouldReveal: f, children: v, className: a, ...o }: {
4
+ [x: string]: any;
5
+ delay: any;
6
+ animationDelay: any;
7
+ duration: any;
8
+ threshold: any;
9
+ distance: any;
10
+ isMoving: any;
11
+ isCentered: any;
12
+ shouldReveal: any;
13
+ children: any;
14
+ className: any;
15
+ }): any;
16
+ declare function k(t: any, c?: {}): {
17
+ isVisible: boolean;
18
+ style: {
19
+ "--distance": string;
20
+ "--duration": string;
21
+ "--animation-delay": string;
22
+ };
23
+ className: string;
24
+ };
@@ -0,0 +1,10 @@
1
+ export { u as SeparatorLabel };
2
+ export default r;
3
+ declare function u({ label: n, ...t }: {
4
+ [x: string]: any;
5
+ label: any;
6
+ }): any;
7
+ declare function r({ className: n, ...t }: {
8
+ [x: string]: any;
9
+ className: any;
10
+ }): any;
@@ -0,0 +1,16 @@
1
+ export { u as SkeletonInstance };
2
+ export default l;
3
+ declare function u({ label: s, width: t, height: r, className: i, children: n, isAnimated: o, ...c }: {
4
+ [x: string]: any;
5
+ label: any;
6
+ width: any;
7
+ height: any;
8
+ className: any;
9
+ children: any;
10
+ isAnimated?: boolean | undefined;
11
+ }): any;
12
+ declare function l({ label: s, lines: t, isAnimated: r }: {
13
+ label: any;
14
+ lines?: number | undefined;
15
+ isAnimated?: boolean | undefined;
16
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default h;
2
+ declare function h({ fill: s, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,11 @@
1
+ export { x as RevealSpinner };
2
+ export default i;
3
+ declare function x({ isVisible: e, ...o }: {
4
+ [x: string]: any;
5
+ isVisible: any;
6
+ }): any;
7
+ declare function i({ size: e, strokeWidth: o, isAnimated: c }: {
8
+ size?: number | undefined;
9
+ strokeWidth?: number | undefined;
10
+ isAnimated?: boolean | undefined;
11
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default n;
2
+ declare function n({ fill: s, ...e }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export default v;
2
+ declare function v({ fill: h, ...t }: {
3
+ [x: string]: any;
4
+ fill: any;
5
+ }): any;
@@ -0,0 +1,12 @@
1
+ export { u as TextButtonVariant };
2
+ export default f;
3
+ declare var u: any;
4
+ declare function f({ icon: t, variant: i, tooltip: n, className: l, children: s, label: x, ...c }: {
5
+ [x: string]: any;
6
+ icon: any;
7
+ variant?: string | undefined;
8
+ tooltip: any;
9
+ className: any;
10
+ children: any;
11
+ label: any;
12
+ }): any;
@@ -0,0 +1,30 @@
1
+ export default i;
2
+ declare function d({ reference: e, as: t, className: s, ...x }: {
3
+ [x: string]: any;
4
+ reference: any;
5
+ as: any;
6
+ className: any;
7
+ }): any;
8
+ declare function k({ as: e, className: t, ...s }: {
9
+ [x: string]: any;
10
+ as: any;
11
+ className: any;
12
+ }): any;
13
+ declare function m({ as: e, className: t, ...s }: {
14
+ [x: string]: any;
15
+ as: any;
16
+ className: any;
17
+ }): any;
18
+ declare function p({ as: e, className: t, ...s }: {
19
+ [x: string]: any;
20
+ as: any;
21
+ className: any;
22
+ }): any;
23
+ declare function i({ as: e, className: t, ...s }: {
24
+ [x: string]: any;
25
+ as: any;
26
+ className: any;
27
+ }): any;
28
+ declare const r: string;
29
+ declare const u: "kakadu-components-1538322784";
30
+ export { d as Heading, k as Hero, m as Paragraph, p as Span, r as spanStyles, u as textShadowStyles };
@@ -0,0 +1,9 @@
1
+ export default E;
2
+ declare function E(): any;
3
+ declare function d(): string;
4
+ declare function y(e: any): void;
5
+ declare const o: string[];
6
+ declare function g(e: any): boolean;
7
+ declare function l(e: any): boolean;
8
+ declare function u(e: any): string;
9
+ export { d as getThemePreference, y as setThemePreference, o as themePreferences, g as useIsDarkMode, l as useIsLightMode, u as useTheme };
@@ -0,0 +1,22 @@
1
+ export default u;
2
+ declare function i(): any;
3
+ declare const m: "kakadu-components-216224454";
4
+ declare const l: "#0c0d12";
5
+ declare const u: "kakadu-components-2735574809";
6
+ declare const n: "kakadu-components-352310015";
7
+ declare namespace e {
8
+ let family: string;
9
+ let stylesheet: string;
10
+ let preconnect: ({
11
+ url: string;
12
+ crossorigin?: undefined;
13
+ } | {
14
+ url: string;
15
+ crossorigin: boolean;
16
+ })[];
17
+ }
18
+ declare const a: "#4ca486";
19
+ declare const c: "#f8fafc";
20
+ declare const p: string;
21
+ declare const f: "kakadu-components-4178476647";
22
+ export { i as FontFamilyHeadLink, m as buttonResetStyles, l as darkBackgroundColor, n as effectStyles, e as font, a as greenColor, c as lightBackgroundColor, p as nonInteractiveEffectStyles, f as overflowProtectionStyles };
@@ -0,0 +1,2 @@
1
+ export default a;
2
+ declare function a(t: any): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export default n;
2
+ declare function n(): string;
@@ -0,0 +1,11 @@
1
+ export default m;
2
+ declare function m({ originalWidth: u, originalHeight: s, size: n, width: e, height: t }: {
3
+ originalWidth: any;
4
+ originalHeight: any;
5
+ size: any;
6
+ width: any;
7
+ height: any;
8
+ }): {
9
+ width: any;
10
+ height: any;
11
+ };
@@ -0,0 +1,4 @@
1
+ export default a;
2
+ declare function a({ hasMovingStars: r }: {
3
+ hasMovingStars?: boolean | undefined;
4
+ }): any;
package/build/theme.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare const font: {
12
12
  crossorigin: boolean;
13
13
  })[];
14
14
  };
15
+ export declare function FontFamilyHeadLink(): import("react/jsx-runtime").JSX.Element;
15
16
  declare const theme: string;
16
17
  export default theme;
17
18
  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 o=require("@kuma-ui/core"),e="#f8fafc",s="#0c0d12",n="#4ca486",c={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}]},r="kakadu-components-2735574809",a="kakadu-components-4178476647",l="kakadu-components-216224454",t="kakadu-components-352310015",f=o.cx(t,"kakadu-components-1119532724");exports.buttonResetStyles=l;exports.darkBackgroundColor=s;exports.default=r;exports.effectStyles=t;exports.font=c;exports.greenColor=n;exports.lightBackgroundColor=e;exports.nonInteractiveEffectStyles=f;exports.overflowProtectionStyles=a;
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",l="#0c0d12",a="#4ca486",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 i(){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 u="kakadu-components-2735574809",f="kakadu-components-4178476647",m="kakadu-components-216224454",n="kakadu-components-352310015",p=r.cx(n,"kakadu-components-1119532724");exports.FontFamilyHeadLink=i;exports.buttonResetStyles=m;exports.darkBackgroundColor=l;exports.default=u;exports.effectStyles=n;exports.font=e;exports.greenColor=a;exports.lightBackgroundColor=c;exports.nonInteractiveEffectStyles=p;exports.overflowProtectionStyles=f;
package/build/theme.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { cx as t } from "@kuma-ui/core";
2
- const n = "#f8fafc", e = "#0c0d12", c = "#4ca486", a = {
1
+ import { j as t } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { cx as n } from "@kuma-ui/core";
3
+ const l = "#f8fafc", i = "#0c0d12", f = "#4ca486", s = {
3
4
  family: "Inter, sans-serif",
4
5
  stylesheet: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
5
6
  preconnect: [{
@@ -8,15 +9,26 @@ const n = "#f8fafc", e = "#0c0d12", c = "#4ca486", a = {
8
9
  url: "https://fonts.gstatic.com",
9
10
  crossorigin: !0
10
11
  }]
11
- }, r = "kakadu-components-2735574809", l = "kakadu-components-4178476647", f = "kakadu-components-216224454", o = "kakadu-components-352310015", p = t(o, "kakadu-components-1119532724");
12
+ };
13
+ function p() {
14
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
15
+ s.preconnect.map(({
16
+ url: o,
17
+ crossorigin: e
18
+ }) => /* @__PURE__ */ t.jsx("link", { href: o, rel: "preconnect", crossOrigin: e ? "anonymous" : void 0 }, o)),
19
+ /* @__PURE__ */ t.jsx("link", { href: s.stylesheet, rel: "stylesheet" })
20
+ ] });
21
+ }
22
+ const m = "kakadu-components-2735574809", k = "kakadu-components-4178476647", u = "kakadu-components-216224454", c = "kakadu-components-352310015", d = n(c, "kakadu-components-1119532724");
12
23
  export {
13
- f as buttonResetStyles,
14
- e as darkBackgroundColor,
15
- r as default,
16
- o as effectStyles,
17
- a as font,
18
- c as greenColor,
19
- n as lightBackgroundColor,
20
- p as nonInteractiveEffectStyles,
21
- l as overflowProtectionStyles
24
+ p as FontFamilyHeadLink,
25
+ u as buttonResetStyles,
26
+ i as darkBackgroundColor,
27
+ m as default,
28
+ c as effectStyles,
29
+ s as font,
30
+ f as greenColor,
31
+ l as lightBackgroundColor,
32
+ d as nonInteractiveEffectStyles,
33
+ k as overflowProtectionStyles
22
34
  };
package/index.d.ts ADDED
@@ -0,0 +1,60 @@
1
+ export * from './build/atom';
2
+ export * from './build/aria-text';
3
+ export * from './build/box';
4
+ export * from './build/button';
5
+ export * from './build/button-tooltip';
6
+ export * from './build/card';
7
+ export * from './build/click-ripples';
8
+ export * from './build/datum';
9
+ export * from './build/dot';
10
+ export * from './build/flex';
11
+ export * from './build/footer';
12
+ export * from './build/gauge';
13
+ export * from './build/hover-gradient';
14
+ export * from './build/icon-button';
15
+ export * from './build/kakadu-guide-icon';
16
+ export * from './build/kakadu-guide-logo';
17
+ export * from './build/kakadu-index-logo';
18
+ export * from './build/kakadu-logo';
19
+ export * from './build/bankid-logo';
20
+ export * from './build/dnb-logo';
21
+ export * from './build/gjensidige-logo';
22
+ export * from './build/sparebank1-logo';
23
+ export * from './build/sto-logo';
24
+ export * from './build/storebrand-logo';
25
+ export * from './build/modal';
26
+ export * from './build/moving-gradients';
27
+ export * from './build/moving-stars';
28
+ export * from './build/notice';
29
+ export * from './build/notification';
30
+ export * from './build/revealer';
31
+ export * from './build/separator';
32
+ export * from './build/skeleton';
33
+ export * from './build/spinner';
34
+ export * from './build/text';
35
+ export * from './build/text-button';
36
+ export * from './build/theme-setter';
37
+ export * from './build/veil';
38
+ export * from './build/theme';
39
+ export * from './build/icon';
40
+ export * from './build/icons/kakadu-guide';
41
+ export * from './build/icons/kakadu-guide-glyph';
42
+ export * from './build/icons/menu';
43
+ export * from './build/icons/check';
44
+ export * from './build/icons/plus';
45
+ export * from './build/icons/times';
46
+ export * from './build/icons/chevron-down';
47
+ export * from './build/icons/chevron-up';
48
+ export * from './build/icons/caret-down';
49
+ export * from './build/icons/caret-right';
50
+ export * from './build/icons/arrow-down';
51
+ export * from './build/icons/edit';
52
+ export * from './build/icons/copy';
53
+ export * from './build/icons/test';
54
+ export * from './build/icons/exclamation-triangle';
55
+ export * from './build/icons/chrome-browser-logo';
56
+ export * from './build/icons/edge-browser-logo';
57
+ export * from './build/hooks/use-media-query';
58
+ export * from './build/utilities/copy-to-clipboard';
59
+ export * from './build/utilities/generate-random-id';
60
+ export * from './build/utilities/scale';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kakadu/components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Kakadu components library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,9 +27,13 @@
27
27
  "test": "vitest run",
28
28
  "test:watch": "vitest",
29
29
  "test:coverage": "vitest run --coverage",
30
- "prepublishOnly": "npm test && npm run build"
30
+ "prepublishOnly": "npm test && npm run build",
31
+ "chromatic": "npx chromatic --project-token=chpt_52149863cf0ae20"
31
32
  },
32
33
  "exports": {
34
+ ".": {
35
+ "types": "./index.d.ts"
36
+ },
33
37
  "./atom": {
34
38
  "types": "./build/atom.d.ts",
35
39
  "import": "./build/atom.mjs",
@@ -339,7 +343,8 @@
339
343
  },
340
344
  "files": [
341
345
  "build",
342
- "theme.tsx"
346
+ "theme.tsx",
347
+ "index.d.ts"
343
348
  ],
344
349
  "publishConfig": {
345
350
  "access": "public"
@@ -347,6 +352,13 @@
347
352
  "sideEffects": [
348
353
  "**/*.css"
349
354
  ],
355
+ "typesVersions": {
356
+ "*": {
357
+ "*": [
358
+ "./build/*"
359
+ ]
360
+ }
361
+ },
350
362
  "peerDependencies": {
351
363
  "@kuma-ui/core": "^1.6.3",
352
364
  "react": "^19.0.0",
@@ -373,6 +385,7 @@
373
385
  "@vitejs/plugin-react": "^5.1.0",
374
386
  "@vitest/browser-playwright": "^4.0.4",
375
387
  "@vitest/coverage-v8": "^4.0.4",
388
+ "chromatic": "^13.3.5",
376
389
  "dotenv": "^17.2.3",
377
390
  "eslint-config-xo-react": "^0.27.0",
378
391
  "eslint-plugin-storybook": "^10.0.0",
package/theme.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import {css, cx} from '@kuma-ui/core';
2
3
 
3
4
  export const lightBackgroundColor = '#f8fafc';
@@ -13,6 +14,23 @@ export const font = {
13
14
  ],
14
15
  };
15
16
 
17
+ export function FontFamilyHeadLink() {
18
+ return (
19
+ <>
20
+ {font.preconnect.map(({url, crossorigin}) => (
21
+ <link
22
+ key={url}
23
+ href={url}
24
+ rel="preconnect"
25
+ crossOrigin={crossorigin ? 'anonymous' : undefined}
26
+ />
27
+ ))}
28
+
29
+ <link href={font.stylesheet} rel="stylesheet" />
30
+ </>
31
+ );
32
+ }
33
+
16
34
  const theme = css`
17
35
  --light-color: #f8fafc;
18
36
  --dark-color: #0c0d12;