@kakadu/components 0.1.3 → 1.0.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.
Files changed (209) hide show
  1. package/build/aria-text.d.ts +5 -0
  2. package/build/aria-text.js +1 -0
  3. package/build/aria-text.mjs +15 -0
  4. package/build/atom.d.ts +10 -2
  5. package/build/atom.js +1 -1
  6. package/build/atom.mjs +10 -3
  7. package/build/bankid-logo.d.ts +2 -0
  8. package/build/bankid-logo.js +1 -0
  9. package/build/bankid-logo.mjs +43 -0
  10. package/build/box.d.ts +4 -1
  11. package/build/box.js +1 -1
  12. package/build/box.mjs +11 -2
  13. package/build/button-tooltip.d.ts +4 -0
  14. package/build/button-tooltip.js +1 -0
  15. package/build/button-tooltip.mjs +11 -0
  16. package/build/button.d.ts +32 -0
  17. package/build/button.js +1 -0
  18. package/build/button.mjs +69 -0
  19. package/build/card.d.ts +8 -0
  20. package/build/card.js +1 -0
  21. package/build/card.mjs +36 -0
  22. package/build/click-ripples.d.ts +2 -0
  23. package/build/click-ripples.js +1 -0
  24. package/build/click-ripples.mjs +60 -0
  25. package/build/components.css +1 -1
  26. package/build/datum.d.ts +5 -0
  27. package/build/datum.js +1 -0
  28. package/build/datum.mjs +27 -0
  29. package/build/dnb-logo.d.ts +2 -0
  30. package/build/dnb-logo.js +1 -0
  31. package/build/dnb-logo.mjs +31 -0
  32. package/build/dot.d.ts +2 -0
  33. package/build/dot.js +1 -0
  34. package/build/dot.mjs +10 -0
  35. package/build/flex.d.ts +14 -2
  36. package/build/flex.js +1 -1
  37. package/build/flex.mjs +17 -2
  38. package/build/footer.d.ts +3 -0
  39. package/build/footer.js +1 -0
  40. package/build/footer.mjs +65 -0
  41. package/build/gauge.d.ts +6 -2
  42. package/build/gauge.js +1 -1
  43. package/build/gauge.mjs +39 -2
  44. package/build/gjensidige-logo.d.ts +2 -0
  45. package/build/gjensidige-logo.js +1 -0
  46. package/build/gjensidige-logo.mjs +30 -0
  47. package/build/hooks/use-media-query.d.ts +1 -0
  48. package/build/hooks/use-media-query.js +1 -0
  49. package/build/hooks/use-media-query.mjs +20 -0
  50. package/build/hover-gradient.d.ts +5 -0
  51. package/build/hover-gradient.js +1 -0
  52. package/build/hover-gradient.mjs +48 -0
  53. package/build/icon-button.d.ts +13 -0
  54. package/build/icon-button.js +1 -0
  55. package/build/icon-button.mjs +45 -0
  56. package/build/icon.js +1 -0
  57. package/build/icon.mjs +50 -0
  58. package/build/icons/arrow-down.d.ts +2 -0
  59. package/build/icons/arrow-down.js +1 -0
  60. package/build/icons/arrow-down.mjs +24 -0
  61. package/build/icons/caret-down.d.ts +2 -0
  62. package/build/icons/caret-down.js +1 -0
  63. package/build/icons/caret-down.mjs +27 -0
  64. package/build/icons/caret-right.d.ts +2 -0
  65. package/build/icons/caret-right.js +1 -0
  66. package/build/icons/caret-right.mjs +27 -0
  67. package/build/icons/check.d.ts +2 -0
  68. package/build/icons/check.js +1 -0
  69. package/build/icons/check.mjs +27 -0
  70. package/build/icons/chevron-down.d.ts +2 -0
  71. package/build/icons/chevron-down.js +1 -0
  72. package/build/icons/chevron-down.mjs +27 -0
  73. package/build/icons/chevron-up.d.ts +2 -0
  74. package/build/icons/chevron-up.js +1 -0
  75. package/build/icons/chevron-up.mjs +27 -0
  76. package/build/icons/chrome-browser-logo.d.ts +2 -0
  77. package/build/icons/chrome-browser-logo.js +1 -0
  78. package/build/icons/chrome-browser-logo.mjs +24 -0
  79. package/build/icons/copy.d.ts +2 -0
  80. package/build/icons/copy.js +1 -0
  81. package/build/icons/copy.mjs +29 -0
  82. package/build/icons/edge-browser-logo.d.ts +2 -0
  83. package/build/icons/edge-browser-logo.js +1 -0
  84. package/build/icons/edge-browser-logo.mjs +24 -0
  85. package/build/icons/edit.d.ts +2 -0
  86. package/build/icons/edit.js +1 -0
  87. package/build/icons/edit.mjs +27 -0
  88. package/build/icons/exclamation-triangle.d.ts +2 -0
  89. package/build/icons/exclamation-triangle.js +1 -0
  90. package/build/icons/exclamation-triangle.mjs +29 -0
  91. package/build/icons/icon.d.ts +25 -0
  92. package/build/icons/kakadu-guide-glyph.d.ts +2 -0
  93. package/build/icons/kakadu-guide-glyph.js +1 -0
  94. package/build/icons/kakadu-guide-glyph.mjs +24 -0
  95. package/build/icons/kakadu-guide.d.ts +2 -0
  96. package/build/icons/kakadu-guide.js +1 -0
  97. package/build/icons/kakadu-guide.mjs +27 -0
  98. package/build/icons/menu.d.ts +2 -0
  99. package/build/icons/menu.js +1 -0
  100. package/build/icons/menu.mjs +25 -0
  101. package/build/icons/plus.d.ts +2 -0
  102. package/build/icons/plus.js +1 -0
  103. package/build/icons/plus.mjs +27 -0
  104. package/build/icons/test.d.ts +2 -0
  105. package/build/icons/test.js +1 -0
  106. package/build/icons/test.mjs +29 -0
  107. package/build/icons/times.d.ts +2 -0
  108. package/build/icons/times.js +1 -0
  109. package/build/icons/times.mjs +27 -0
  110. package/build/index.html +0 -0
  111. package/build/kakadu-guide-icon.d.ts +3 -0
  112. package/build/kakadu-guide-icon.js +1 -0
  113. package/build/kakadu-guide-icon.mjs +14 -0
  114. package/build/kakadu-guide-logo.d.ts +10 -0
  115. package/build/kakadu-guide-logo.js +1 -0
  116. package/build/kakadu-guide-logo.mjs +59 -0
  117. package/build/kakadu-index-logo.d.ts +2 -0
  118. package/build/kakadu-index-logo.js +1 -0
  119. package/build/kakadu-index-logo.mjs +66 -0
  120. package/build/kakadu-logo.d.ts +2 -0
  121. package/build/kakadu-logo.js +1 -0
  122. package/build/kakadu-logo.mjs +44 -0
  123. package/build/modal.d.ts +28 -0
  124. package/build/modal.js +9 -0
  125. package/build/modal.mjs +1246 -0
  126. package/build/moving-gradients.d.ts +9 -0
  127. package/build/moving-gradients.js +1 -0
  128. package/build/moving-gradients.mjs +86 -0
  129. package/build/moving-stars.d.ts +12 -0
  130. package/build/moving-stars.js +1 -0
  131. package/build/moving-stars.mjs +90 -0
  132. package/build/notice.d.ts +12 -0
  133. package/build/notice.js +1 -0
  134. package/build/notice.mjs +22 -0
  135. package/build/notification.d.ts +17 -0
  136. package/build/notification.js +1 -0
  137. package/build/notification.mjs +84 -0
  138. package/build/revealer.d.ts +20 -0
  139. package/build/revealer.js +1 -0
  140. package/build/revealer.mjs +76 -0
  141. package/build/separator.d.ts +5 -0
  142. package/build/separator.js +1 -0
  143. package/build/separator.mjs +24 -0
  144. package/build/skeleton.d.ts +15 -1
  145. package/build/skeleton.js +1 -1
  146. package/build/skeleton.mjs +38 -3
  147. package/build/sparebank1-logo.d.ts +2 -0
  148. package/build/sparebank1-logo.js +1 -0
  149. package/build/sparebank1-logo.mjs +61 -0
  150. package/build/spinner.d.ts +10 -1
  151. package/build/spinner.js +1 -1
  152. package/build/spinner.mjs +31 -2
  153. package/build/sto-logo.d.ts +2 -0
  154. package/build/sto-logo.js +1 -0
  155. package/build/sto-logo.mjs +53 -0
  156. package/build/storebrand-logo.d.ts +2 -0
  157. package/build/storebrand-logo.js +1 -0
  158. package/build/storebrand-logo.mjs +46 -0
  159. package/build/text-button.d.ts +19 -0
  160. package/build/text-button.js +1 -0
  161. package/build/text-button.mjs +36 -0
  162. package/build/text.d.ts +11 -1
  163. package/build/text.js +1 -1
  164. package/build/text.mjs +49 -5
  165. package/build/theme-setter.d.ts +11 -0
  166. package/build/theme-setter.js +20 -0
  167. package/build/theme-setter.mjs +79 -0
  168. package/build/theme.d.ts +4 -0
  169. package/build/theme.js +1 -1
  170. package/build/theme.mjs +13 -8
  171. package/build/utilities/copy-to-clipboard.d.ts +1 -0
  172. package/build/utilities/copy-to-clipboard.js +1 -0
  173. package/build/utilities/copy-to-clipboard.mjs +26 -0
  174. package/build/utilities/generate-random-id.d.ts +1 -0
  175. package/build/utilities/generate-random-id.js +1 -0
  176. package/build/utilities/generate-random-id.mjs +14 -0
  177. package/build/utilities/scale.d.ts +11 -0
  178. package/build/utilities/scale.js +1 -0
  179. package/build/utilities/scale.mjs +13 -0
  180. package/build/veil.d.ts +3 -0
  181. package/build/veil.js +1 -0
  182. package/build/veil.mjs +17 -0
  183. package/package.json +278 -19
  184. package/readme.md +14 -12
  185. package/theme.tsx +133 -27
  186. package/build/atom-B-bW2QKm.js +0 -1
  187. package/build/atom-CqxGy6PS.mjs +0 -12
  188. package/build/box-BdUR8k49.js +0 -1
  189. package/build/box-DmpGO-yx.mjs +0 -13
  190. package/build/components/atom.d.ts +0 -10
  191. package/build/components/box.d.ts +0 -4
  192. package/build/components/flex.d.ts +0 -7
  193. package/build/components/gauge.d.ts +0 -6
  194. package/build/components/skeleton.d.ts +0 -13
  195. package/build/components/spinner.d.ts +0 -5
  196. package/build/components/text.d.ts +0 -7
  197. package/build/flex-C4bEYrMM.mjs +0 -16
  198. package/build/flex-JFSv9GFG.js +0 -1
  199. package/build/gauge-C1CypvvD.mjs +0 -41
  200. package/build/gauge-mog6SjVx.js +0 -1
  201. package/build/index.d.ts +0 -11
  202. package/build/index.js +0 -1
  203. package/build/index.mjs +0 -26
  204. package/build/skeleton-B5bJ732_.js +0 -1
  205. package/build/skeleton-C593Afco.mjs +0 -48
  206. package/build/spinner-BWIY_fuB.mjs +0 -14
  207. package/build/spinner-Ci3vM4Cv.js +0 -1
  208. package/build/text-BO7Qt7Lj.js +0 -1
  209. package/build/text-ZYVNxqac.mjs +0 -39
@@ -0,0 +1,9 @@
1
+ import { type ReactNode } from 'react';
2
+ export type MovingGradientsProperties = {
3
+ readonly className?: string;
4
+ readonly colors?: string[];
5
+ readonly maximumGradientsCount?: number;
6
+ readonly speed?: number;
7
+ readonly opacity?: number;
8
+ };
9
+ export default function MovingGradients({ className, colors, maximumGradientsCount, speed, opacity, }: MovingGradientsProperties): ReactNode;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("./jsx-runtime-BB_1_6y_.js"),i=require("react"),_=require("@kuma-ui/core"),D=["rgb(46, 75, 164)","rgb(58, 125, 159)","rgb(42, 81, 142)","rgb(48, 132, 168)","rgb(45, 64, 157)"];function L(S){return S.map(C=>{var n;const[m,b,X]=((n=C.match(/\d+/g))==null?void 0:n.map(Number))??[];return[m,b,X]})}function O({className:S,colors:C=D,maximumGradientsCount:m=10,speed:b=1,opacity:X=.2}){const n=i.useRef(null),[h,z]=i.useState(),[g,H]=i.useState(0),[p,W]=i.useState(0),q=i.useMemo(()=>L(C),[C]),$=i.useMemo(()=>q.length,[q]),Y=i.useCallback(()=>{const f=Math.random(),y=q[Math.floor($*f)],s=g*1.25,M=g*.25,v=p*1.25,e=p*.25,t=s*Math.random()-M,r=v*Math.random()-e,o=Math.max(s,v);return{color:y,size:o*f+o/2,opacity:0,speed:Math.max(.1,f/2*b),startPosition:[t,r],currentPosition:[t,r],targetPosition:[s*Math.random()-M,v*Math.random()-e]}},[q,$,g,p,b]);return i.useEffect(()=>{const a=Array.from({length:m}).map(()=>Y());let f=m,y=!1,s;function M(){if(!y){if(!h){s=requestAnimationFrame(M);return}h.clearRect(0,0,g,p);for(let e=a.length;e;e-=1){const t=a[e-1],[r,o]=t.startPosition,[c,l]=t.currentPosition,[u,d]=t.targetPosition;let x=!0;if(r>u?c>u&&(x=!1):c<u&&(x=!1),o>d?l>d&&(x=!1):l<d&&(x=!1),x){a.splice(e-1,1),f-=1;continue}const k=(r+u)/2-r,w=c-r,G=(o+d)/2-o,I=l-o,j=(w/k+I/G)/2;t.opacity=j>1?2-j:j;const R=t.size/2,A=h.createRadialGradient(c,l,R,c,l,0);if(A.addColorStop(0,`rgba(${t.color.join(",")},0)`),A.addColorStop(1,`rgba(${t.color.join(",")},${t.opacity})`),h.fillStyle=A,h.fillRect(c-R,l-R,t.size,t.size),c!==u){const E=Math.abs(r-u),F=Math.abs(o-d),P=Math.min(1,E/F);c<u?t.currentPosition[0]+=t.speed*P:t.currentPosition[0]-=t.speed*P}if(l!==d){const E=Math.abs(r-u),F=Math.abs(o-d),P=Math.min(1,F/E);l<d?t.currentPosition[1]+=t.speed*P:t.currentPosition[1]-=t.speed*P}}s=requestAnimationFrame(M)}}s=requestAnimationFrame(M);const v=setInterval(()=>{let e=m-f;if(e>0)for(;e;)a.push(Y()),e-=1,f+=1},1500);return()=>{y=!0,s&&cancelAnimationFrame(s),clearInterval(v)}},[m,Y,h,g,p,b]),i.useEffect(()=>{if(n.current){const a=n.current.getContext("2d");a&&z(a),H(n.current.offsetWidth),W(n.current.offsetHeight)}},[n]),N.jsxRuntimeExports.jsx("canvas",{ref:n,width:g,height:p,style:{"--opacity":X},className:_.cx("kakadu-components-1792481071",S)})}exports.default=O;
@@ -0,0 +1,86 @@
1
+ import { j as L } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useRef as B, useState as E, useMemo as S, useCallback as J, useEffect as W } from "react";
3
+ import { cx as K } from "@kuma-ui/core";
4
+ const O = ["rgb(46, 75, 164)", "rgb(58, 125, 159)", "rgb(42, 81, 142)", "rgb(48, 132, 168)", "rgb(45, 64, 157)"];
5
+ function Q(X) {
6
+ return X.map((C) => {
7
+ var n;
8
+ const [f, M, Y] = ((n = C.match(/\d+/g)) == null ? void 0 : n.map(Number)) ?? [];
9
+ return [f, M, Y];
10
+ });
11
+ }
12
+ function Z({
13
+ className: X,
14
+ colors: C = O,
15
+ maximumGradientsCount: f = 10,
16
+ speed: M = 1,
17
+ opacity: Y = 0.2
18
+ }) {
19
+ const n = B(null), [m, k] = E(), [h, w] = E(0), [p, $] = E(0), P = S(() => Q(C), [C]), H = S(() => P.length, [P]), j = J(() => {
20
+ const u = Math.random(), y = P[Math.floor(H * u)], o = h * 1.25, g = h * 0.25, b = p * 1.25, e = p * 0.25, t = o * Math.random() - g, r = b * Math.random() - e, s = Math.max(o, b);
21
+ return {
22
+ color: y,
23
+ size: s * u + s / 2,
24
+ opacity: 0,
25
+ speed: Math.max(0.1, u / 2 * M),
26
+ startPosition: [t, r],
27
+ currentPosition: [t, r],
28
+ targetPosition: [o * Math.random() - g, b * Math.random() - e]
29
+ };
30
+ }, [P, H, h, p, M]);
31
+ return W(() => {
32
+ const i = Array.from({
33
+ length: f
34
+ }).map(() => j());
35
+ let u = f, y = !1, o;
36
+ function g() {
37
+ if (!y) {
38
+ if (!m) {
39
+ o = requestAnimationFrame(g);
40
+ return;
41
+ }
42
+ m.clearRect(0, 0, h, p);
43
+ for (let e = i.length; e; e -= 1) {
44
+ const t = i[e - 1], [r, s] = t.startPosition, [a, c] = t.currentPosition, [l, d] = t.targetPosition;
45
+ let v = !0;
46
+ if (r > l ? a > l && (v = !1) : a < l && (v = !1), s > d ? c > d && (v = !1) : c < d && (v = !1), v) {
47
+ i.splice(e - 1, 1), u -= 1;
48
+ continue;
49
+ }
50
+ const G = (r + l) / 2 - r, I = a - r, N = (s + d) / 2 - s, D = c - s, q = (I / G + D / N) / 2;
51
+ t.opacity = q > 1 ? 2 - q : q;
52
+ const A = t.size / 2, F = m.createRadialGradient(a, c, A, a, c, 0);
53
+ if (F.addColorStop(0, `rgba(${t.color.join(",")},0)`), F.addColorStop(1, `rgba(${t.color.join(",")},${t.opacity})`), m.fillStyle = F, m.fillRect(a - A, c - A, t.size, t.size), a !== l) {
54
+ const R = Math.abs(r - l), z = Math.abs(s - d), x = Math.min(1, R / z);
55
+ a < l ? t.currentPosition[0] += t.speed * x : t.currentPosition[0] -= t.speed * x;
56
+ }
57
+ if (c !== d) {
58
+ const R = Math.abs(r - l), z = Math.abs(s - d), x = Math.min(1, z / R);
59
+ c < d ? t.currentPosition[1] += t.speed * x : t.currentPosition[1] -= t.speed * x;
60
+ }
61
+ }
62
+ o = requestAnimationFrame(g);
63
+ }
64
+ }
65
+ o = requestAnimationFrame(g);
66
+ const b = setInterval(() => {
67
+ let e = f - u;
68
+ if (e > 0)
69
+ for (; e; )
70
+ i.push(j()), e -= 1, u += 1;
71
+ }, 1500);
72
+ return () => {
73
+ y = !0, o && cancelAnimationFrame(o), clearInterval(b);
74
+ };
75
+ }, [f, j, m, h, p, M]), W(() => {
76
+ if (n.current) {
77
+ const i = n.current.getContext("2d");
78
+ i && k(i), w(n.current.offsetWidth), $(n.current.offsetHeight);
79
+ }
80
+ }, [n]), /* @__PURE__ */ L.jsx("canvas", { ref: n, width: h, height: p, style: {
81
+ "--opacity": Y
82
+ }, className: K("kakadu-components-1792481071", X) });
83
+ }
84
+ export {
85
+ Z as default
86
+ };
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from 'react';
2
+ export type MovingStarsProperties = {
3
+ readonly color?: string;
4
+ readonly opacity?: number;
5
+ readonly className?: string;
6
+ readonly minimumSize?: number;
7
+ readonly maximumSize?: number;
8
+ readonly maximumStarsCount?: number;
9
+ readonly speed?: number;
10
+ readonly hasMask?: boolean;
11
+ };
12
+ export default function MovingStars({ color, opacity, className, minimumSize, maximumSize, maximumStarsCount, speed, hasMask, }: MovingStarsProperties): ReactNode;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("./jsx-runtime-BB_1_6y_.js"),u=require("react"),T=require("@kuma-ui/core");function B({color:y,opacity:R,className:W,minimumSize:A=1,maximumSize:S=5,maximumStarsCount:x=50,speed:C=1,hasMask:j=!1}){const e=u.useRef(null),[r,z]=u.useState(),[f,F]=u.useState(0),[d,H]=u.useState(0),q=u.useCallback(()=>{const n=f*1.5,s=f*.25,a=d*1.5,o=d*.25,M=n*Math.random()-s,h=a*Math.random()-o;return{size:Math.max(A,S*Math.random()),opacity:0,speed:Math.max(.1,Math.random()/2*C),startPosition:[M,h],currentPosition:[M,h],targetPosition:[n*Math.random()-s,a*Math.random()-o]}},[f,d,A,S,C]),w=u.useCallback(()=>y??(e.current?getComputedStyle(e.current).color:"#000"),[y,e]);return u.useEffect(()=>{const n=Array.from({length:x}).map(()=>q());let s=x,a=!1,o,M=w();function h(){if(!a){if(!r){o=requestAnimationFrame(h);return}r.clearRect(0,0,f,d);for(let i=n.length;i;i-=1){const t=n[i-1],[v,g]=t.startPosition,[p,m]=t.currentPosition,[c,l]=t.targetPosition;let P=!0;if(v>c?p>c&&(P=!1):p<c&&(P=!1),g>l?m>l&&(P=!1):m<l&&(P=!1),P){n.splice(i-1,1),s-=1;continue}const L=(v+c)/2-v,O=p-v,_=(g+l)/2-g,$=m-g,X=(O/L+$/_)/2;t.opacity=X>1?2-X:X;const Y=t.size/2;if(r.beginPath(),r.arc(p-Y,m-Y,Y,0,2*Math.PI,!1),r.globalAlpha=t.opacity,r.fillStyle=M,r.fill(),p!==c){const E=Math.abs(v-c),k=Math.abs(g-l),b=Math.min(1,E/k);p<c?t.currentPosition[0]+=t.speed*b:t.currentPosition[0]-=t.speed*b}if(m!==l){const E=Math.abs(v-c),k=Math.abs(g-l),b=Math.min(1,k/E);m<l?t.currentPosition[1]+=t.speed*b:t.currentPosition[1]-=t.speed*b}}o=requestAnimationFrame(h)}}o=requestAnimationFrame(h);const I=setInterval(()=>{M=w();let i=x-s;if(i>0)for(;i;)n.push(q()),i-=1,s+=1},500);return()=>{a=!0,o&&cancelAnimationFrame(o),clearInterval(I)}},[x,q,w,r,f,d,C]),u.useEffect(()=>{if(e.current){const n=e.current.getContext("2d");n&&z(n),F(e.current.offsetWidth),H(e.current.offsetHeight);const s=()=>{e.current&&(F(e.current.offsetWidth),H(e.current.offsetHeight))},a=new ResizeObserver(s);return a.observe(e.current),window.addEventListener("resize",s,{passive:!0}),()=>{a.disconnect(),window.removeEventListener("resize",s)}}},[e]),N.jsxRuntimeExports.jsx("canvas",{ref:e,style:{"--color":y,"--opacity":R},className:T.cx("kakadu-components-3566333728",j&&"kakadu-components-4049648322",W),width:f,height:d})}exports.default=B;
@@ -0,0 +1,90 @@
1
+ import { j as J } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useRef as K, useState as k, useCallback as R, useEffect as j } from "react";
3
+ import { cx as Q } from "@kuma-ui/core";
4
+ function Z({
5
+ color: b,
6
+ opacity: z,
7
+ className: I,
8
+ minimumSize: q = 1,
9
+ maximumSize: F = 5,
10
+ maximumStarsCount: x = 50,
11
+ speed: y = 1,
12
+ hasMask: L = !1
13
+ }) {
14
+ const e = K(null), [r, S] = k(), [f, H] = k(0), [u, W] = k(0), C = R(() => {
15
+ const n = f * 1.5, s = f * 0.25, o = u * 1.5, a = u * 0.25, g = n * Math.random() - s, d = o * Math.random() - a;
16
+ return {
17
+ size: Math.max(q, F * Math.random()),
18
+ opacity: 0,
19
+ speed: Math.max(0.1, Math.random() / 2 * y),
20
+ startPosition: [g, d],
21
+ currentPosition: [g, d],
22
+ targetPosition: [n * Math.random() - s, o * Math.random() - a]
23
+ };
24
+ }, [f, u, q, F, y]), w = R(() => b ?? (e.current ? getComputedStyle(e.current).color : "#000"), [b, e]);
25
+ return j(() => {
26
+ const n = Array.from({
27
+ length: x
28
+ }).map(() => C());
29
+ let s = x, o = !1, a, g = w();
30
+ function d() {
31
+ if (!o) {
32
+ if (!r) {
33
+ a = requestAnimationFrame(d);
34
+ return;
35
+ }
36
+ r.clearRect(0, 0, f, u);
37
+ for (let i = n.length; i; i -= 1) {
38
+ const t = n[i - 1], [h, p] = t.startPosition, [m, v] = t.currentPosition, [c, l] = t.targetPosition;
39
+ let M = !0;
40
+ if (h > c ? m > c && (M = !1) : m < c && (M = !1), p > l ? v > l && (M = !1) : v < l && (M = !1), M) {
41
+ n.splice(i - 1, 1), s -= 1;
42
+ continue;
43
+ }
44
+ const O = (h + c) / 2 - h, B = m - h, D = (p + l) / 2 - p, G = v - p, X = (B / O + G / D) / 2;
45
+ t.opacity = X > 1 ? 2 - X : X;
46
+ const Y = t.size / 2;
47
+ if (r.beginPath(), r.arc(m - Y, v - Y, Y, 0, 2 * Math.PI, !1), r.globalAlpha = t.opacity, r.fillStyle = g, r.fill(), m !== c) {
48
+ const A = Math.abs(h - c), E = Math.abs(p - l), P = Math.min(1, A / E);
49
+ m < c ? t.currentPosition[0] += t.speed * P : t.currentPosition[0] -= t.speed * P;
50
+ }
51
+ if (v !== l) {
52
+ const A = Math.abs(h - c), E = Math.abs(p - l), P = Math.min(1, E / A);
53
+ v < l ? t.currentPosition[1] += t.speed * P : t.currentPosition[1] -= t.speed * P;
54
+ }
55
+ }
56
+ a = requestAnimationFrame(d);
57
+ }
58
+ }
59
+ a = requestAnimationFrame(d);
60
+ const N = setInterval(() => {
61
+ g = w();
62
+ let i = x - s;
63
+ if (i > 0)
64
+ for (; i; )
65
+ n.push(C()), i -= 1, s += 1;
66
+ }, 500);
67
+ return () => {
68
+ o = !0, a && cancelAnimationFrame(a), clearInterval(N);
69
+ };
70
+ }, [x, C, w, r, f, u, y]), j(() => {
71
+ if (e.current) {
72
+ const n = e.current.getContext("2d");
73
+ n && S(n), H(e.current.offsetWidth), W(e.current.offsetHeight);
74
+ const s = () => {
75
+ e.current && (H(e.current.offsetWidth), W(e.current.offsetHeight));
76
+ }, o = new ResizeObserver(s);
77
+ return o.observe(e.current), window.addEventListener("resize", s, {
78
+ passive: !0
79
+ }), () => {
80
+ o.disconnect(), window.removeEventListener("resize", s);
81
+ };
82
+ }
83
+ }, [e]), /* @__PURE__ */ J.jsx("canvas", { ref: e, style: {
84
+ "--color": b,
85
+ "--opacity": z
86
+ }, className: Q("kakadu-components-3566333728", L && "kakadu-components-4049648322", I), width: f, height: u });
87
+ }
88
+ export {
89
+ Z as default
90
+ };
@@ -0,0 +1,12 @@
1
+ import { type HTMLProps } from 'react';
2
+ import { type IconType } from '../icons/icon';
3
+ export declare enum NoticeType {
4
+ default = "default",
5
+ success = "success",
6
+ warning = "warning",
7
+ danger = "danger"
8
+ }
9
+ export default function Notice({ type, icon, className, children, ...properties }: {
10
+ readonly type?: NoticeType;
11
+ readonly icon?: IconType;
12
+ } & HTMLProps<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./jsx-runtime-BB_1_6y_.js"),o=require("@kuma-ui/core"),c=require("./icon.js"),x=require("./text.js");var r=(s=>(s.default="default",s.success="success",s.warning="warning",s.danger="danger",s))(r||{});function p({type:s="default",icon:a,className:u,children:t,...d}){const i=s==="success",m=s==="warning",k=s==="danger",n=!!a,l=!!t;return e.jsxRuntimeExports.jsxs("aside",{...d,className:o.cx("kakadu-components-2456791517",n&&"kakadu-components-2945174293",i&&(n?"kakadu-components-2585123369":"kakadu-components-1387450724"),m&&(n?"kakadu-components-3502407303":"kakadu-components-1612824642"),k&&(n?"kakadu-components-314765189":"kakadu-components-4209515987"),u),children:[e.jsxRuntimeExports.jsx("div",{"data-theme":"dark",className:o.cx("kakadu-components-3327291559",n&&"kakadu-components-3146184463"),children:a&&e.jsxRuntimeExports.jsx(c.default,{width:14,height:14,type:a,className:c.iconShadowStyles})}),e.jsxRuntimeExports.jsx(x.Span,{className:"kakadu-components-2089877024",children:l?t:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:" "})})]})}exports.NoticeType=r;exports.default=p;
@@ -0,0 +1,22 @@
1
+ import { j as n } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { cx as t } from "@kuma-ui/core";
3
+ import i, { iconShadowStyles as l } from "./icon.mjs";
4
+ import { Span as p } from "./text.mjs";
5
+ var h = /* @__PURE__ */ ((a) => (a.default = "default", a.success = "success", a.warning = "warning", a.danger = "danger", a))(h || {});
6
+ function w({
7
+ type: a = "default",
8
+ icon: o,
9
+ className: c,
10
+ children: e,
11
+ ...r
12
+ }) {
13
+ const d = a === "success", m = a === "warning", k = a === "danger", s = !!o, u = !!e;
14
+ return /* @__PURE__ */ n.jsxs("aside", { ...r, className: t("kakadu-components-2456791517", s && "kakadu-components-2945174293", d && (s ? "kakadu-components-2585123369" : "kakadu-components-1387450724"), m && (s ? "kakadu-components-3502407303" : "kakadu-components-1612824642"), k && (s ? "kakadu-components-314765189" : "kakadu-components-4209515987"), c), children: [
15
+ /* @__PURE__ */ n.jsx("div", { "data-theme": "dark", className: t("kakadu-components-3327291559", s && "kakadu-components-3146184463"), children: o && /* @__PURE__ */ n.jsx(i, { width: 14, height: 14, type: o, className: l }) }),
16
+ /* @__PURE__ */ n.jsx(p, { className: "kakadu-components-2089877024", children: u ? e : /* @__PURE__ */ n.jsx(n.Fragment, { children: " " }) })
17
+ ] });
18
+ }
19
+ export {
20
+ h as NoticeType,
21
+ w as default
22
+ };
@@ -0,0 +1,17 @@
1
+ import { type HTMLProps, type ReactNode } from 'react';
2
+ import { type IconType } from '../icons/icon';
3
+ import { type NoticeType } from './notice';
4
+ export type NotificationProperties = {
5
+ readonly id?: string;
6
+ readonly type?: NoticeType;
7
+ readonly icon?: IconType;
8
+ readonly children: ReactNode;
9
+ readonly onDismiss?: (index: number) => void;
10
+ };
11
+ export default function Notification({ type, icon, index, className, children, onDismiss, ...properties }: NotificationProperties & {
12
+ readonly index?: number;
13
+ } & HTMLProps<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ export declare function useCreateNotification(): (notification: NotificationProperties) => void;
15
+ export declare function NotificationProvider({ children, }: {
16
+ readonly children: ReactNode;
17
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./jsx-runtime-BB_1_6y_.js"),t=require("react"),p=require("@kuma-ui/core"),k=require("./utilities/generate-random-id.js"),v=require("./notice.js");function x({type:n,icon:d,index:c,className:u,children:f,onDismiss:o,...i}){const[e,r]=t.useState(!1),[l,j]=t.useState(!1);t.useEffect(()=>{const a=setTimeout(()=>{r(!0)},250);return()=>{clearTimeout(a)}},[]),t.useEffect(()=>{if(e){const a=setTimeout(()=>{r(!1),j(!0)},6e3);return()=>{clearTimeout(a)}}},[e]);const m=c??0;return t.useEffect(()=>{if(l&&!e){const a=setTimeout(()=>{o==null||o(m)},300);return()=>{clearTimeout(a)}}},[l,e,o,m]),s.jsxRuntimeExports.jsx("div",{...i,style:{"--index":m},className:p.cx("kakadu-components-3897420184",e&&"kakadu-components-3003995416",u),children:s.jsxRuntimeExports.jsxs(v.default,{"aria-live":"polite",type:n,icon:d,className:"kakadu-components-1639448689",children:[f,s.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2751825161",children:s.jsxRuntimeExports.jsx("div",{className:"kakadu-components-1939222061"})})]})})}const N=t.createContext({createNotification(){throw new Error("useCreateNotification must be used within a NotificationProvider")}});function E(){const{createNotification:n}=t.useContext(N);return n}function C({children:n}){const[d,c]=t.useState([]),u=t.useCallback(i=>{const e=k.default();c(r=>[...r,{...i,id:e}])},[]),f=t.useCallback(i=>{c(e=>e.filter((r,l)=>l!==i))},[]),o=t.useMemo(()=>({createNotification:u}),[u]);return s.jsxRuntimeExports.jsxs(N.Provider,{value:o,children:[n,d.map((i,e)=>s.jsxRuntimeExports.jsx(x,{...i,index:e,onDismiss:f},i.id))]})}exports.NotificationProvider=C;exports.default=x;exports.useCreateNotification=E;
@@ -0,0 +1,84 @@
1
+ import { j as o } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { createContext as j, useState as x, useEffect as l, useContext as v, useCallback as N, useMemo as h } from "react";
3
+ import { cx as C } from "@kuma-ui/core";
4
+ import T from "./utilities/generate-random-id.mjs";
5
+ import b from "./notice.mjs";
6
+ function I({
7
+ type: s,
8
+ icon: m,
9
+ index: r,
10
+ className: c,
11
+ children: f,
12
+ onDismiss: i,
13
+ ...e
14
+ }) {
15
+ const [t, n] = x(!1), [u, k] = x(!1);
16
+ l(() => {
17
+ const a = setTimeout(() => {
18
+ n(!0);
19
+ }, 250);
20
+ return () => {
21
+ clearTimeout(a);
22
+ };
23
+ }, []), l(() => {
24
+ if (t) {
25
+ const a = setTimeout(() => {
26
+ n(!1), k(!0);
27
+ }, 6e3);
28
+ return () => {
29
+ clearTimeout(a);
30
+ };
31
+ }
32
+ }, [t]);
33
+ const d = r ?? 0;
34
+ return l(() => {
35
+ if (u && !t) {
36
+ const a = setTimeout(() => {
37
+ i == null || i(d);
38
+ }, 300);
39
+ return () => {
40
+ clearTimeout(a);
41
+ };
42
+ }
43
+ }, [u, t, i, d]), /* @__PURE__ */ o.jsx("div", { ...e, style: {
44
+ "--index": d
45
+ }, className: C("kakadu-components-3897420184", t && "kakadu-components-3003995416", c), children: /* @__PURE__ */ o.jsxs(b, { "aria-live": "polite", type: s, icon: m, className: "kakadu-components-1639448689", children: [
46
+ f,
47
+ /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-2751825161", children: /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-1939222061" }) })
48
+ ] }) });
49
+ }
50
+ const p = j({
51
+ createNotification() {
52
+ throw new Error("useCreateNotification must be used within a NotificationProvider");
53
+ }
54
+ });
55
+ function g() {
56
+ const {
57
+ createNotification: s
58
+ } = v(p);
59
+ return s;
60
+ }
61
+ function y({
62
+ children: s
63
+ }) {
64
+ const [m, r] = x([]), c = N((e) => {
65
+ const t = T();
66
+ r((n) => [...n, {
67
+ ...e,
68
+ id: t
69
+ }]);
70
+ }, []), f = N((e) => {
71
+ r((t) => t.filter((n, u) => u !== e));
72
+ }, []), i = h(() => ({
73
+ createNotification: c
74
+ }), [c]);
75
+ return /* @__PURE__ */ o.jsxs(p.Provider, { value: i, children: [
76
+ s,
77
+ m.map((e, t) => /* @__PURE__ */ o.jsx(I, { ...e, index: t, onDismiss: f }, e.id))
78
+ ] });
79
+ }
80
+ export {
81
+ y as NotificationProvider,
82
+ I as default,
83
+ g as useCreateNotification
84
+ };
@@ -0,0 +1,20 @@
1
+ import { type CSSProperties, type HTMLAttributes, type RefObject } from 'react';
2
+ type RevealerOptions = {
3
+ readonly delay?: number;
4
+ readonly animationDelay?: number;
5
+ readonly duration?: number;
6
+ readonly threshold?: number;
7
+ readonly distance?: number;
8
+ readonly isMoving?: boolean;
9
+ readonly isCentered?: boolean;
10
+ readonly shouldReveal?: boolean;
11
+ };
12
+ export declare function useRevealer(reference: RefObject<HTMLElement | null>, options?: RevealerOptions): {
13
+ isVisible: boolean;
14
+ style: CSSProperties;
15
+ className: string;
16
+ };
17
+ export default function Revealer({ delay, animationDelay, duration, threshold, distance, isMoving, isCentered, shouldReveal, children, className, ...properties }: HTMLAttributes<HTMLDivElement> & RevealerOptions & {
18
+ readonly className?: string;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./jsx-runtime-BB_1_6y_.js"),s=require("react"),b=require("@kuma-ui/core");function k(t,c={}){const{delay:n=1,animationDelay:l=1,duration:d=870,threshold:r=0,distance:m=20,isMoving:f=!0,isCentered:v=!1,shouldReveal:a=!0}=c,[o,i]=s.useState(!1),[e,R]=s.useState(()=>typeof window>"u"?!1:!("IntersectionObserver"in window));return s.useEffect(()=>{const u=setTimeout(()=>{i(!0)},n);return()=>{clearTimeout(u)}},[n]),s.useEffect(()=>{if(o&&a&&!e&&t.current){const u=new IntersectionObserver(p=>{p.some(x=>x.isIntersecting)&&requestAnimationFrame(()=>{R(!0)})},{threshold:r});return u.observe(t.current),()=>{u.disconnect()}}},[o,a,e,t,r]),{isVisible:e,style:{"--distance":`${m}px`,"--duration":`${d/1e3}s`,"--animation-delay":`${l/1e3}s`},className:b.cx("kakadu-components-3009931469",f&&"kakadu-components-3252535480",e&&"kakadu-components-358711811",v&&"kakadu-components-3753263087")}}function q({delay:t,animationDelay:c,duration:n,threshold:l,distance:d,isMoving:r,isCentered:m,shouldReveal:f,children:v,className:a,...o}){const i=s.useRef(null),{style:e,className:R}=k(i,{delay:t,animationDelay:c,duration:n,threshold:l,distance:d,isMoving:r,isCentered:m,shouldReveal:f});return y.jsxRuntimeExports.jsx("div",{...o,ref:i,className:b.cx(R,a),style:e,children:v})}exports.default=q;exports.useRevealer=k;
@@ -0,0 +1,76 @@
1
+ import { j as y } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useRef as w, useState as p, useEffect as k } from "react";
3
+ import { cx as R } from "@kuma-ui/core";
4
+ function I(t, u = {}) {
5
+ const {
6
+ delay: s = 1,
7
+ animationDelay: l = 1,
8
+ duration: c = 870,
9
+ threshold: n = 0,
10
+ distance: m = 20,
11
+ isMoving: d = !0,
12
+ isCentered: f = !1,
13
+ shouldReveal: a = !0
14
+ } = u, [r, o] = p(!1), [e, v] = p(() => typeof window > "u" ? !1 : !("IntersectionObserver" in window));
15
+ return k(() => {
16
+ const i = setTimeout(() => {
17
+ o(!0);
18
+ }, s);
19
+ return () => {
20
+ clearTimeout(i);
21
+ };
22
+ }, [s]), k(() => {
23
+ if (r && a && !e && t.current) {
24
+ const i = new IntersectionObserver((b) => {
25
+ b.some((x) => x.isIntersecting) && requestAnimationFrame(() => {
26
+ v(!0);
27
+ });
28
+ }, {
29
+ threshold: n
30
+ });
31
+ return i.observe(t.current), () => {
32
+ i.disconnect();
33
+ };
34
+ }
35
+ }, [r, a, e, t, n]), {
36
+ isVisible: e,
37
+ style: {
38
+ "--distance": `${m}px`,
39
+ "--duration": `${c / 1e3}s`,
40
+ "--animation-delay": `${l / 1e3}s`
41
+ },
42
+ className: R("kakadu-components-3009931469", d && "kakadu-components-3252535480", e && "kakadu-components-358711811", f && "kakadu-components-3753263087")
43
+ };
44
+ }
45
+ function j({
46
+ delay: t,
47
+ animationDelay: u,
48
+ duration: s,
49
+ threshold: l,
50
+ distance: c,
51
+ isMoving: n,
52
+ isCentered: m,
53
+ shouldReveal: d,
54
+ children: f,
55
+ className: a,
56
+ ...r
57
+ }) {
58
+ const o = w(null), {
59
+ style: e,
60
+ className: v
61
+ } = I(o, {
62
+ delay: t,
63
+ animationDelay: u,
64
+ duration: s,
65
+ threshold: l,
66
+ distance: c,
67
+ isMoving: n,
68
+ isCentered: m,
69
+ shouldReveal: d
70
+ });
71
+ return /* @__PURE__ */ y.jsx("div", { ...r, ref: o, className: R(v, a), style: e, children: f });
72
+ }
73
+ export {
74
+ j as default,
75
+ I as useRevealer
76
+ };
@@ -0,0 +1,5 @@
1
+ import { type HTMLProps } from 'react';
2
+ export default function Separator({ className, ...properties }: HTMLProps<HTMLHRElement>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SeparatorLabel({ label, ...properties }: {
4
+ readonly label: string;
5
+ } & HTMLProps<HTMLHRElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./jsx-runtime-BB_1_6y_.js"),a=require("@kuma-ui/core"),s=require("./flex.js"),o=require("./text.js");function r({className:n,...t}){return e.jsxRuntimeExports.jsx("hr",{...t,className:a.cx("kakadu-components-3910508072",n)})}function u({label:n,...t}){return e.jsxRuntimeExports.jsxs(s.default,{gap:2,direction:"row",alignment:s.FlexAlignment.center,className:"kakadu-components-1838150430",children:[e.jsxRuntimeExports.jsx(r,{...t}),e.jsxRuntimeExports.jsx(o.Span,{className:"kakadu-components-2444594537",children:n}),e.jsxRuntimeExports.jsx(r,{...t})]})}exports.SeparatorLabel=u;exports.default=r;
@@ -0,0 +1,24 @@
1
+ import { j as a } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { cx as o } from "@kuma-ui/core";
3
+ import t, { FlexAlignment as s } from "./flex.mjs";
4
+ import { Span as m } from "./text.mjs";
5
+ function e({
6
+ className: r,
7
+ ...n
8
+ }) {
9
+ return /* @__PURE__ */ a.jsx("hr", { ...n, className: o("kakadu-components-3910508072", r) });
10
+ }
11
+ function x({
12
+ label: r,
13
+ ...n
14
+ }) {
15
+ return /* @__PURE__ */ a.jsxs(t, { gap: 2, direction: "row", alignment: s.center, className: "kakadu-components-1838150430", children: [
16
+ /* @__PURE__ */ a.jsx(e, { ...n }),
17
+ /* @__PURE__ */ a.jsx(m, { className: "kakadu-components-2444594537", children: r }),
18
+ /* @__PURE__ */ a.jsx(e, { ...n })
19
+ ] });
20
+ }
21
+ export {
22
+ x as SeparatorLabel,
23
+ e as default
24
+ };
@@ -1 +1,15 @@
1
- export { default, SkeletonInstance } from './components/skeleton';
1
+ import { type HTMLAttributes } from 'react';
2
+ type SkeletonProperties = {
3
+ readonly label?: string;
4
+ readonly width?: string | number;
5
+ readonly height?: string | number;
6
+ readonly className?: string;
7
+ readonly isAnimated?: boolean;
8
+ } & HTMLAttributes<HTMLDivElement>;
9
+ export declare function SkeletonInstance({ label, width, height, className, children, isAnimated, ...parameters }: SkeletonProperties): import("react/jsx-runtime").JSX.Element;
10
+ export default function Skeleton({ label, lines, isAnimated, }: {
11
+ readonly label?: string;
12
+ readonly lines?: number;
13
+ readonly isAnimated?: boolean;
14
+ }): import("react/jsx-runtime").JSX.Element | null;
15
+ export {};
package/build/skeleton.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./skeleton-B5bJ732_.js");exports.SkeletonInstance=e.SkeletonInstance;exports.default=e.Skeleton;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./jsx-runtime-BB_1_6y_.js"),x=require("react"),m=require("@kuma-ui/core");function u({label:s,width:t,height:r,className:i,children:n,isAnimated:o=!0,...c}){return e.jsxRuntimeExports.jsx("span",{...c,"aria-busy":!0,role:"progressbar","aria-label":s??"Loading",className:m.cx("kakadu-components-4149648046",o&&"kakadu-components-3311350973",i),style:{width:t,height:r},children:n??e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:" "})})}const a="kakadu-components-3140855657";function l({label:s,lines:t=1,isAnimated:r=!0}){const i=x.useMemo(()=>{const n=[];if(t<=1)return n;for(let o=1;o<t;o+=1)n.push(e.jsxRuntimeExports.jsx(u,{label:s,width:"100%",height:"1em",isAnimated:r,className:a},o));return n},[t,s,r]);return t<1?null:t===1?e.jsxRuntimeExports.jsx(u,{label:s,width:"100%",height:"1em",isAnimated:r,className:a}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[i,e.jsxRuntimeExports.jsx(u,{label:s,width:"60%",height:"1em",isAnimated:r,className:a})]})}exports.SkeletonInstance=u;exports.default=l;
@@ -1,5 +1,40 @@
1
- import { a as t, S as n } from "./skeleton-C593Afco.mjs";
1
+ import { j as e } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useMemo as i } from "react";
3
+ import { cx as h } from "@kuma-ui/core";
4
+ function u({
5
+ label: r,
6
+ width: t,
7
+ height: s,
8
+ className: a,
9
+ children: n,
10
+ isAnimated: o = !0,
11
+ ...c
12
+ }) {
13
+ return /* @__PURE__ */ e.jsx("span", { ...c, "aria-busy": !0, role: "progressbar", "aria-label": r ?? "Loading", className: h("kakadu-components-4149648046", o && "kakadu-components-3311350973", a), style: {
14
+ width: t,
15
+ height: s
16
+ }, children: n ?? /* @__PURE__ */ e.jsx(e.Fragment, { children: " " }) });
17
+ }
18
+ const m = "kakadu-components-3140855657";
19
+ function x({
20
+ label: r,
21
+ lines: t = 1,
22
+ isAnimated: s = !0
23
+ }) {
24
+ const a = i(() => {
25
+ const n = [];
26
+ if (t <= 1)
27
+ return n;
28
+ for (let o = 1; o < t; o += 1)
29
+ n.push(/* @__PURE__ */ e.jsx(u, { label: r, width: "100%", height: "1em", isAnimated: s, className: m }, o));
30
+ return n;
31
+ }, [t, r, s]);
32
+ return t < 1 ? null : t === 1 ? /* @__PURE__ */ e.jsx(u, { label: r, width: "100%", height: "1em", isAnimated: s, className: m }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
33
+ a,
34
+ /* @__PURE__ */ e.jsx(u, { label: r, width: "60%", height: "1em", isAnimated: s, className: m })
35
+ ] });
36
+ }
2
37
  export {
3
- t as SkeletonInstance,
4
- n as default
38
+ u as SkeletonInstance,
39
+ x as default
5
40
  };
@@ -0,0 +1,2 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export default function Sparebank1LogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./jsx-runtime-BB_1_6y_.js"),e=require("./utilities/scale.js");function h({fill:s,...t}){const{width:x,height:i}=e.default({originalWidth:254,originalHeight:56,width:t.width,height:t.height});return c.jsxRuntimeExports.jsxs("svg",{fill:"none",viewBox:"0 0 254 56",xmlns:"http://www.w3.org/2000/svg",...t,width:x,height:i,children:[c.jsxRuntimeExports.jsxs("g",{fill:s??"#002776",children:[c.jsxRuntimeExports.jsx("path",{d:"m10.851 43.485c-5.129 0-9.193-1.184-9.943001-1.42-.395-.158-.591999-.474-.591999-.828v-.197l.512999-2.605c.079-.394.355001-.513.670001-.513.079 0 .158 0 .276.039.829.158 4.853 1.303 8.641 1.303 3.235 0 6.116-.947 6.116-4.301 0-3.393-2.959-3.748-6.786-4.301-4.261-.632-9.746-1.775-9.746-8.483 0-6.904 5.129-8.72 11.205-8.72 4.617 0 8.444 1.105 9.311 1.342.474.118.711.434.711.829v.197l-.552 2.564c-.04.276-.316.552-.631.552-.04 0-.079-.039-.119-.039-1.894-.395-4.814-1.184-8.286-1.184-2.919 0-5.997.553-5.997 3.867 0 3.275 3.314 3.749 6.826 4.261 4.616.71 9.864 1.381 9.864 8.72 0 6.905-5.602 8.917-11.481 8.917z"}),c.jsxRuntimeExports.jsx("path",{d:"m60.9813 43.0112c-1.381.315-3.275.552-5.484.552-4.261 0-9.509-.434-9.509-6.707 0-5.09 3.196-5.642 6.352-6.155l7.023-1.144v-1.262c0-1.105-.119-1.894-1.105-2.328-.631-.276-1.578-.395-2.998-.395-2.683 0-5.603.789-6.786 1.104-.119 0-.197.04-.276.04-.197 0-.395-.079-.434-.355l-.552-2.446v-.158c0-.355.276-.513.474-.592.947-.355 4.577-1.341 8.601-1.341 2.801 0 4.695.395 5.958 1.105 2.012 1.104 2.407 2.959 2.407 5.089v10.89c-.001 2.959-.988 3.472-3.671 4.103zm-1.617-10.021-4.893.789c-1.618.236-3.117.473-3.117 3.037 0 3.078 2.486 3.314 4.38 3.314 1.539 0 2.801-.275 3.63-.553z"}),c.jsxRuntimeExports.jsx("path",{d:"m78.7289 25.8882c-2.407 0-4.459.237-5.563.513v16.059c0 .355-.237.592-.592.592h-4.024c-.237 0-.671-.236-.671-.592v-17.045c0-1.539.907-2.012 2.801-2.564 1.736-.552 4.538-.947 6.786-.986h.671c.552 0 .552 0 .829.118.158.079.355.237.355.631v2.564c0 .395-.039.71-.592.71z"}),c.jsxRuntimeExports.jsx("path",{d:"m99.3798 34.2142c0 .434-.237.907-.829.907h-13.217c0 1.815.513 2.802 1.578 3.63 1.026.828 2.525 1.184 4.656 1.184 2.446 0 4.3-.592 5.523-.947.079-.039.119-.039.197-.039.237 0 .434.158.553.553l.513 2.012c0 .039.04.119.04.197 0 .316-.197.474-.474.592-1.341.553-4.025 1.263-7.141 1.263-7.733 0-10.771-3.038-10.771-10.771 0-7.418 2.052-10.969 9.746-10.969 3.985 0 6.431 1.026 7.851 2.92 1.341 1.775 1.775 4.3 1.775 7.575zm-5.563-5.879c-.513-2.17-1.697-2.88-4.024-2.88-2.644 0-3.749.789-4.183 2.762-.276 1.105-.276 2.249-.315 3.551l8.838-.04c0-1.262-.04-2.328-.316-3.393z"}),c.jsxRuntimeExports.jsx("path",{d:"m144.263 43.0112c-1.381.315-3.275.552-5.484.552-4.262 0-9.509-.434-9.509-6.707 0-5.09 3.196-5.642 6.353-6.155l7.023-1.144v-1.262c0-1.105-.119-1.894-1.105-2.328-.631-.276-1.578-.395-2.998-.395-2.684 0-5.604.789-6.787 1.104-.118 0-.197.04-.275.04-.197 0-.395-.079-.435-.355l-.552-2.446v-.158c0-.355.275-.513.473-.592.947-.355 4.577-1.341 8.602-1.341 2.801 0 4.695.395 5.958 1.105 2.013 1.104 2.407 2.959 2.407 5.089v10.89c-.001 2.959-.988 3.472-3.671 4.103zm-1.617-10.021-4.893.789c-1.618.236-3.117.473-3.117 3.037 0 3.078 2.485 3.314 4.379 3.314 1.539 0 2.802-.275 3.631-.553z"}),c.jsxRuntimeExports.jsx("path",{d:"m169.033 43.0522h-4.064c-.355 0-.631-.236-.631-.592v-13.928c0-2.289-.868-3.078-2.959-3.078-2.367 0-4.932.671-4.932.671v16.334c0 .355-.237.592-.592.592h-4.025c-.395 0-.67-.236-.67-.592v-17.005c0-1.499.749-2.012 2.959-2.604 2.012-.552 5.326-1.026 7.852-1.026 4.932 0 7.654 1.263 7.654 5.997v14.638c0 .356-.237.593-.592.593z"}),c.jsxRuntimeExports.jsx("path",{d:"m191.912 42.6959c0 .158-.157.355-.395.355h-5.287c-.197 0-.395 0-.592-.236l-6.115-8.326h-1.342v7.971c0 .355-.197.592-.592.592h-4.064c-.354 0-.632-.236-.632-.592v-27.58c0-.473.197-.71.672-.828l3.865-.671h.158c.355 0 .592.237.592.671v16.886h1.342l6.234-8.325c.157-.237.316-.276.513-.276l4.814.118c.276 0 .395.197.395.355 0 .079-.039.119-.079.197l-7.457 9.391 7.892 10.1c.039.041.078.12.078.198z"}),c.jsxRuntimeExports.jsx("path",{d:"m35.7225 21.8242c-2.644 0-5.682.434-8.049 1.263-1.776.552-2.486 1.144-2.486 3.196v24.423c0 .395.309.717.878.615.569-.103 3.738-.688 3.738-.688.474-.079.671-.315.671-.789v-6.879c1.401.341 3.166.6 5.129.6 7.339 0 8.72-4.616 8.72-10.851 0-6.274-.986-10.89-8.601-10.89zm-1.499 18.109c-2.13 0-3.748-.473-3.748-.473v-13.296s2.328-.631 4.143-.631c2.999 0 4.301.67 4.301 7.063-.001 5.996-1.106 7.337-4.696 7.337z"}),c.jsxRuntimeExports.jsx("path",{d:"m116.72 43.0525h-13.139c-.355 0-.671-.276-.671-.631v-27.896c0-.355.315-.631.671-.631h13.178c6.671 0 9.39 2.616 9.39 7.354 0 4.182-2.323 5.679-5.918 6.708 3.991.658 6.905 2.825 6.905 7.48 0 5.287-3.709 7.616-10.416 7.616zm-.514-25.094h-7.615v8.443l7.339-.315c2.999-.118 4.537-1.184 4.537-4.182.001-2.763-1.341-3.946-4.261-3.946zm-.197 12.27-7.417-.236v8.995h7.417c3.985 0 5.287-1.735 5.287-4.143 0-3.234-1.065-4.498-5.287-4.616z"})]}),c.jsxRuntimeExports.jsx("path",{d:"m225.527 0c-2.933 0-5.757.458-8.411 1.301 11.169-2.423 22.239 2.178 26.227 11.601 4.609 10.892-1.989 24.096-14.737 29.491-11.436 4.839-23.931 1.747-29.711-6.802 3.381 11.517 14.021 19.929 26.632 19.929 15.331 0 27.76-12.428 27.76-27.76s-12.429-27.76-27.76-27.76z",fill:"#e60000"}),c.jsxRuntimeExports.jsx("path",{d:"m228.607 42.3928c12.749-5.395 19.347-18.598 14.737-29.491-3.988-9.42395-15.059-14.02395-26.227-11.60095-11.219 3.563-19.349 14.05995-19.349 26.45895 0 2.72.398 5.3471 1.128 7.8311 5.78 8.549 18.275 11.6409 29.711 6.8019z",fill:"#af0000"}),c.jsxRuntimeExports.jsx("path",{d:"m232.642 40.3054v-28.503c0-.566-.462-1.027-1.029-1.027h-6.454c-.461 0-.72.102-1.132.257l-8.328 4.287c-.513.207-.719.514-.719 1.029v4.671c0 .549.445.992.993.992h5.33v22.409c2.433-.338 4.891-1.006 7.302-2.027 1.425-.603 2.773-1.304 4.037-2.088z",fill:"#fff"})]})}exports.default=h;