@kakadu/components 0.1.4 → 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 (272) hide show
  1. package/build/aria-text.d.ts +5 -1
  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/build/aria-text.d.ts +8 -0
  14. package/build/build/atom.d.ts +9 -0
  15. package/build/build/bankid-logo.d.ts +5 -0
  16. package/build/build/box.d.ts +6 -0
  17. package/build/build/button-tooltip.d.ts +5 -0
  18. package/build/build/button.d.ts +23 -0
  19. package/build/build/card.d.ts +11 -0
  20. package/build/build/click-ripples.d.ts +6 -0
  21. package/build/build/datum.d.ts +6 -0
  22. package/build/build/dnb-logo.d.ts +5 -0
  23. package/build/build/dot.d.ts +4 -0
  24. package/build/build/flex.d.ts +12 -0
  25. package/build/build/footer.d.ts +4 -0
  26. package/build/build/gauge.d.ts +6 -0
  27. package/build/build/gjensidige-logo.d.ts +5 -0
  28. package/build/build/hooks/use-media-query.d.ts +2 -0
  29. package/build/build/hover-gradient.d.ts +8 -0
  30. package/build/build/icon-button.d.ts +10 -0
  31. package/build/build/icon.d.ts +8 -0
  32. package/build/build/icons/arrow-down.d.ts +5 -0
  33. package/build/build/icons/caret-down.d.ts +5 -0
  34. package/build/build/icons/caret-right.d.ts +5 -0
  35. package/build/build/icons/check.d.ts +5 -0
  36. package/build/build/icons/chevron-down.d.ts +5 -0
  37. package/build/build/icons/chevron-up.d.ts +5 -0
  38. package/build/build/icons/chrome-browser-logo.d.ts +5 -0
  39. package/build/build/icons/copy.d.ts +5 -0
  40. package/build/build/icons/edge-browser-logo.d.ts +5 -0
  41. package/build/build/icons/edit.d.ts +5 -0
  42. package/build/build/icons/exclamation-triangle.d.ts +5 -0
  43. package/build/build/icons/kakadu-guide-glyph.d.ts +5 -0
  44. package/build/build/icons/kakadu-guide.d.ts +5 -0
  45. package/build/build/icons/menu.d.ts +5 -0
  46. package/build/build/icons/plus.d.ts +5 -0
  47. package/build/build/icons/test.d.ts +5 -0
  48. package/build/build/icons/times.d.ts +5 -0
  49. package/build/build/jsx-runtime-BB_1_6y_.d.ts +2 -0
  50. package/build/build/kakadu-guide-icon.d.ts +4 -0
  51. package/build/build/kakadu-guide-logo.d.ts +11 -0
  52. package/build/build/kakadu-index-logo.d.ts +5 -0
  53. package/build/build/kakadu-logo.d.ts +5 -0
  54. package/build/build/modal.d.ts +22 -0
  55. package/build/build/moving-gradients.d.ts +8 -0
  56. package/build/build/moving-stars.d.ts +11 -0
  57. package/build/build/notice.d.ts +10 -0
  58. package/build/build/notification.d.ts +15 -0
  59. package/build/build/revealer.d.ts +24 -0
  60. package/build/build/separator.d.ts +10 -0
  61. package/build/build/skeleton.d.ts +16 -0
  62. package/build/build/sparebank1-logo.d.ts +5 -0
  63. package/build/build/spinner.d.ts +11 -0
  64. package/build/build/sto-logo.d.ts +5 -0
  65. package/build/build/storebrand-logo.d.ts +5 -0
  66. package/build/build/text-button.d.ts +12 -0
  67. package/build/build/text.d.ts +30 -0
  68. package/build/build/theme-setter.d.ts +9 -0
  69. package/build/build/theme.d.ts +22 -0
  70. package/build/build/utilities/copy-to-clipboard.d.ts +2 -0
  71. package/build/build/utilities/generate-random-id.d.ts +2 -0
  72. package/build/build/utilities/scale.d.ts +11 -0
  73. package/build/build/veil.d.ts +4 -0
  74. package/build/button-tooltip.d.ts +4 -0
  75. package/build/button-tooltip.js +1 -0
  76. package/build/button-tooltip.mjs +11 -0
  77. package/build/button.d.ts +32 -0
  78. package/build/button.js +1 -0
  79. package/build/button.mjs +69 -0
  80. package/build/card.d.ts +8 -0
  81. package/build/card.js +1 -0
  82. package/build/card.mjs +36 -0
  83. package/build/click-ripples.d.ts +2 -0
  84. package/build/click-ripples.js +1 -0
  85. package/build/click-ripples.mjs +60 -0
  86. package/build/components.css +1 -1
  87. package/build/datum.d.ts +5 -0
  88. package/build/datum.js +1 -0
  89. package/build/datum.mjs +27 -0
  90. package/build/dnb-logo.d.ts +2 -0
  91. package/build/dnb-logo.js +1 -0
  92. package/build/dnb-logo.mjs +31 -0
  93. package/build/dot.d.ts +2 -0
  94. package/build/dot.js +1 -0
  95. package/build/dot.mjs +10 -0
  96. package/build/flex.d.ts +14 -1
  97. package/build/flex.js +1 -1
  98. package/build/flex.mjs +17 -2
  99. package/build/footer.d.ts +3 -0
  100. package/build/footer.js +1 -0
  101. package/build/footer.mjs +65 -0
  102. package/build/gauge.d.ts +6 -1
  103. package/build/gauge.js +1 -1
  104. package/build/gauge.mjs +39 -2
  105. package/build/gjensidige-logo.d.ts +2 -0
  106. package/build/gjensidige-logo.js +1 -0
  107. package/build/gjensidige-logo.mjs +30 -0
  108. package/build/hooks/use-media-query.d.ts +1 -0
  109. package/build/hooks/use-media-query.js +1 -0
  110. package/build/hooks/use-media-query.mjs +20 -0
  111. package/build/hover-gradient.d.ts +5 -0
  112. package/build/hover-gradient.js +1 -0
  113. package/build/hover-gradient.mjs +48 -0
  114. package/build/icon-button.d.ts +13 -0
  115. package/build/icon-button.js +1 -0
  116. package/build/icon-button.mjs +45 -0
  117. package/build/icon.js +1 -0
  118. package/build/icon.mjs +50 -0
  119. package/build/icons/arrow-down.d.ts +2 -0
  120. package/build/icons/arrow-down.js +1 -0
  121. package/build/icons/arrow-down.mjs +24 -0
  122. package/build/icons/caret-down.d.ts +2 -0
  123. package/build/icons/caret-down.js +1 -0
  124. package/build/icons/caret-down.mjs +27 -0
  125. package/build/icons/caret-right.d.ts +2 -0
  126. package/build/icons/caret-right.js +1 -0
  127. package/build/icons/caret-right.mjs +27 -0
  128. package/build/icons/check.d.ts +2 -0
  129. package/build/icons/check.js +1 -0
  130. package/build/icons/check.mjs +27 -0
  131. package/build/icons/chevron-down.d.ts +2 -0
  132. package/build/icons/chevron-down.js +1 -0
  133. package/build/icons/chevron-down.mjs +27 -0
  134. package/build/icons/chevron-up.d.ts +2 -0
  135. package/build/icons/chevron-up.js +1 -0
  136. package/build/icons/chevron-up.mjs +27 -0
  137. package/build/icons/chrome-browser-logo.d.ts +2 -0
  138. package/build/icons/chrome-browser-logo.js +1 -0
  139. package/build/icons/chrome-browser-logo.mjs +24 -0
  140. package/build/icons/copy.d.ts +2 -0
  141. package/build/icons/copy.js +1 -0
  142. package/build/icons/copy.mjs +29 -0
  143. package/build/icons/edge-browser-logo.d.ts +2 -0
  144. package/build/icons/edge-browser-logo.js +1 -0
  145. package/build/icons/edge-browser-logo.mjs +24 -0
  146. package/build/icons/edit.d.ts +2 -0
  147. package/build/icons/edit.js +1 -0
  148. package/build/icons/edit.mjs +27 -0
  149. package/build/icons/exclamation-triangle.d.ts +2 -0
  150. package/build/icons/exclamation-triangle.js +1 -0
  151. package/build/icons/exclamation-triangle.mjs +29 -0
  152. package/build/icons/icon.d.ts +25 -0
  153. package/build/icons/kakadu-guide-glyph.d.ts +2 -0
  154. package/build/icons/kakadu-guide-glyph.js +1 -0
  155. package/build/icons/kakadu-guide-glyph.mjs +24 -0
  156. package/build/icons/kakadu-guide.d.ts +2 -0
  157. package/build/icons/kakadu-guide.js +1 -0
  158. package/build/icons/kakadu-guide.mjs +27 -0
  159. package/build/icons/menu.d.ts +2 -0
  160. package/build/icons/menu.js +1 -0
  161. package/build/icons/menu.mjs +25 -0
  162. package/build/icons/plus.d.ts +2 -0
  163. package/build/icons/plus.js +1 -0
  164. package/build/icons/plus.mjs +27 -0
  165. package/build/icons/test.d.ts +2 -0
  166. package/build/icons/test.js +1 -0
  167. package/build/icons/test.mjs +29 -0
  168. package/build/icons/times.d.ts +2 -0
  169. package/build/icons/times.js +1 -0
  170. package/build/icons/times.mjs +27 -0
  171. package/build/index.html +0 -0
  172. package/build/kakadu-guide-icon.d.ts +3 -0
  173. package/build/kakadu-guide-icon.js +1 -0
  174. package/build/kakadu-guide-icon.mjs +14 -0
  175. package/build/kakadu-guide-logo.d.ts +10 -0
  176. package/build/kakadu-guide-logo.js +1 -0
  177. package/build/kakadu-guide-logo.mjs +59 -0
  178. package/build/kakadu-index-logo.d.ts +2 -0
  179. package/build/kakadu-index-logo.js +1 -0
  180. package/build/kakadu-index-logo.mjs +66 -0
  181. package/build/kakadu-logo.d.ts +2 -0
  182. package/build/kakadu-logo.js +1 -0
  183. package/build/kakadu-logo.mjs +44 -0
  184. package/build/modal.d.ts +28 -0
  185. package/build/modal.js +9 -0
  186. package/build/modal.mjs +1246 -0
  187. package/build/moving-gradients.d.ts +9 -0
  188. package/build/moving-gradients.js +1 -0
  189. package/build/moving-gradients.mjs +86 -0
  190. package/build/moving-stars.d.ts +12 -0
  191. package/build/moving-stars.js +1 -0
  192. package/build/moving-stars.mjs +90 -0
  193. package/build/notice.d.ts +12 -0
  194. package/build/notice.js +1 -0
  195. package/build/notice.mjs +22 -0
  196. package/build/notification.d.ts +17 -0
  197. package/build/notification.js +1 -0
  198. package/build/notification.mjs +84 -0
  199. package/build/revealer.d.ts +20 -0
  200. package/build/revealer.js +1 -0
  201. package/build/revealer.mjs +76 -0
  202. package/build/separator.d.ts +5 -0
  203. package/build/separator.js +1 -0
  204. package/build/separator.mjs +24 -0
  205. package/build/skeleton.d.ts +15 -1
  206. package/build/skeleton.js +1 -1
  207. package/build/skeleton.mjs +38 -3
  208. package/build/sparebank1-logo.d.ts +2 -0
  209. package/build/sparebank1-logo.js +1 -0
  210. package/build/sparebank1-logo.mjs +61 -0
  211. package/build/spinner.d.ts +10 -1
  212. package/build/spinner.js +1 -1
  213. package/build/spinner.mjs +31 -3
  214. package/build/sto-logo.d.ts +2 -0
  215. package/build/sto-logo.js +1 -0
  216. package/build/sto-logo.mjs +53 -0
  217. package/build/storebrand-logo.d.ts +2 -0
  218. package/build/storebrand-logo.js +1 -0
  219. package/build/storebrand-logo.mjs +46 -0
  220. package/build/text-button.d.ts +19 -0
  221. package/build/text-button.js +1 -0
  222. package/build/text-button.mjs +36 -0
  223. package/build/text.d.ts +11 -1
  224. package/build/text.js +1 -1
  225. package/build/text.mjs +49 -5
  226. package/build/theme-setter.d.ts +11 -0
  227. package/build/theme-setter.js +20 -0
  228. package/build/theme-setter.mjs +79 -0
  229. package/build/theme.d.ts +5 -0
  230. package/build/theme.js +1 -1
  231. package/build/theme.mjs +25 -8
  232. package/build/utilities/copy-to-clipboard.d.ts +1 -0
  233. package/build/utilities/copy-to-clipboard.js +1 -0
  234. package/build/utilities/copy-to-clipboard.mjs +26 -0
  235. package/build/utilities/generate-random-id.d.ts +1 -0
  236. package/build/utilities/generate-random-id.js +1 -0
  237. package/build/utilities/generate-random-id.mjs +14 -0
  238. package/build/utilities/scale.d.ts +11 -0
  239. package/build/utilities/scale.js +1 -0
  240. package/build/utilities/scale.mjs +13 -0
  241. package/build/veil.d.ts +3 -0
  242. package/build/veil.js +1 -0
  243. package/build/veil.mjs +17 -0
  244. package/index.d.ts +60 -0
  245. package/package.json +278 -18
  246. package/readme.md +3 -1
  247. package/theme.tsx +151 -27
  248. package/build/atom-B-bW2QKm.js +0 -1
  249. package/build/atom-CqxGy6PS.mjs +0 -12
  250. package/build/box-4_-REPb0.js +0 -1
  251. package/build/box-Cf22bdCb.mjs +0 -13
  252. package/build/components/aria-text.d.ts +0 -5
  253. package/build/components/atom.d.ts +0 -10
  254. package/build/components/box.d.ts +0 -4
  255. package/build/components/flex.d.ts +0 -7
  256. package/build/components/gauge.d.ts +0 -6
  257. package/build/components/skeleton.d.ts +0 -13
  258. package/build/components/spinner.d.ts +0 -10
  259. package/build/components/text.d.ts +0 -7
  260. package/build/flex-C4bEYrMM.mjs +0 -16
  261. package/build/flex-JFSv9GFG.js +0 -1
  262. package/build/gauge-C1CypvvD.mjs +0 -41
  263. package/build/gauge-mog6SjVx.js +0 -1
  264. package/build/index.d.ts +0 -10
  265. package/build/index.js +0 -1
  266. package/build/index.mjs +0 -39
  267. package/build/skeleton-B5bJ732_.js +0 -1
  268. package/build/skeleton-C593Afco.mjs +0 -48
  269. package/build/spinner-DE_Y3sKH.mjs +0 -33
  270. package/build/spinner-DFfE6tSd.js +0 -1
  271. package/build/text-BO7Qt7Lj.js +0 -1
  272. package/build/text-ZYVNxqac.mjs +0 -39
package/theme.tsx CHANGED
@@ -1,9 +1,11 @@
1
- import {css} from '@kuma-ui/core';
1
+ import React from 'react';
2
+ import {css, cx} from '@kuma-ui/core';
2
3
 
4
+ export const lightBackgroundColor = '#f8fafc';
5
+ export const darkBackgroundColor = '#0c0d12';
3
6
  export const greenColor = '#4ca486';
4
-
5
7
  export const font = {
6
- family: 'DM Sans, sans-serif',
8
+ family: 'Inter, sans-serif',
7
9
  stylesheet:
8
10
  'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
9
11
  preconnect: [
@@ -12,32 +14,67 @@ export const font = {
12
14
  ],
13
15
  };
14
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
+
15
34
  const theme = css`
16
- --background-color: #fafcff;
17
- --foreground-color: #000;
18
-
19
- --blue-color: #2f455d;
20
- --blue-dark-color: #32445b;
21
- --blue-hover-color: #345882;
22
- --blue-light-color: #b3c0d4;
23
- --blue-pale-color: #e1efff;
24
-
25
- --green-color: #4ca486;
26
- --green-pale-color: #dceeec;
27
- --green-dark-color: #3c6957;
28
- --grey-color: #c6c6c6;
29
- --grey-pale-color: #dfdfdf;
30
- --red-color: #ff4d4d;
31
- --red-pale-color: #ffe5e5;
32
- --red-pale-hover-color: #ffd6d6;
33
- --yellow-color: #f5c235;
34
- --yellow-dark-color: #9f7605;
35
+ --light-color: #f8fafc;
36
+ --dark-color: #0c0d12;
37
+
38
+ --background-color: var(--light-color);
39
+ --foreground-color: var(--dark-color);
40
+
41
+ --red-color: #be354b;
42
+ --red-color-hover: #c73d56;
43
+ --red-color-light: #e8687d;
44
+
45
+ --yellow-color: #c9ac56;
46
+ --yellow-color-hover: #d1b559;
47
+ --yellow-color-light: #edcd71;
48
+
49
+ --green-color: #52a14b;
50
+ --green-color-hover: #5ea957;
51
+ --green-color-light: #6fb86a;
52
+
53
+ --primary-color: var(--green-color);
54
+ --primary-color-hover: var(--green-color-hover);
55
+
56
+ --secondary-color: #175694;
57
+ --secondary-color-hover: #2c6195;
58
+ --secondary-color-1: #222528;
59
+ --secondary-color-2: #112a37;
60
+ --secondary-color-3: #1e2f35;
61
+ --secondary-color-4: #2c3238;
35
62
 
36
63
  --flash-color: rgba(255, 216, 57, 0.5);
37
64
  --font-weight-modifier: 50;
38
65
 
39
- :where([data-theme='dark']) {
66
+ &[data-theme='dark'] {
40
67
  --font-weight-modifier: 0;
68
+
69
+ --background-color: var(--dark-color);
70
+ --foreground-color: var(--light-color);
71
+
72
+ --secondary-color: #cce0f0;
73
+ --secondary-color-hover: #fff;
74
+ --secondary-color-1: #edf0f2;
75
+ --secondary-color-2: #e2e6eb;
76
+ --secondary-color-3: #cbcdd0;
77
+ --secondary-color-4: #fff;
41
78
  }
42
79
 
43
80
  --accent-font-family: 'Inter', -apple-system, helvetica, arial, sans-serif;
@@ -45,22 +82,48 @@ const theme = css`
45
82
 
46
83
  --gap: 16px;
47
84
 
85
+ --scale-multiplier: 0.6;
48
86
  --quarter-gap: calc(var(--gap) / 4);
49
87
  --third-gap: calc(var(--gap) / 3);
50
88
  --half-gap: calc(var(--gap) / 2);
51
- --sesquialteral-gap: calc(var(--gap) * 1.5);
52
- --double-gap: calc(var(--gap) * 2);
53
- --triple-gap: calc(var(--gap) * 3);
54
- --quadruple-gap: calc(var(--gap) * 4);
89
+ --sesquialteral-gap: calc(var(--gap) * (1.5 * var(--scale-multiplier)));
90
+ --double-gap: calc(var(--gap) * (2 * var(--scale-multiplier)));
91
+ --triple-gap: calc(var(--gap) * (3 * var(--scale-multiplier)));
92
+ --quadruple-gap: calc(var(--gap) * (4 * var(--scale-multiplier)));
55
93
 
56
94
  --sidebar-z-index: 424242;
57
95
  --modal-z-index: 424243;
58
96
 
97
+ --page-padding: var(--gap);
98
+
99
+ @media (min-width: 460px) {
100
+ --scale-multiplier: 0.7;
101
+ }
102
+
103
+ @media (min-width: 580px) {
104
+ --scale-multiplier: 0.8;
105
+ --page-padding: var(--double-gap);
106
+ }
107
+
108
+ @media (min-width: 860px) {
109
+ --scale-multiplier: 1;
110
+ --page-padding: var(--triple-gap);
111
+ }
112
+
113
+ --page-width: calc(1080px + (var(--page-padding) * 2));
114
+ --text-width: 780px;
115
+ --content-width: 620px;
116
+
59
117
  font-family: var(--font-family);
60
118
  font-optical-sizing: auto;
61
119
  line-height: normal;
62
120
  color: var(--foreground-color);
63
121
 
122
+ :global(:root) {
123
+ background: var(--background-color);
124
+ scroll-padding-top: 101px;
125
+ }
126
+
64
127
  --8px: 0.5rem;
65
128
  --9px: 0.5625rem;
66
129
  --10px: 0.625rem;
@@ -128,3 +191,64 @@ export const buttonResetStyles = css`
128
191
  text-align: right;
129
192
  }
130
193
  `;
194
+
195
+ export const effectStyles = css`
196
+ --soft-shadow-color: rgba(255, 255, 255, 0.375);
197
+ --hard-shadow-color: rgba(0, 0, 0, 0.075);
198
+ --inset-hard-shadow-color: rgba(0, 0, 0, 0.2);
199
+ --box-shadow-outline-color: #fff;
200
+ --box-shadow-color: rgba(0, 0, 0, 0.25);
201
+ --box-shadow-highlight-color: rgba(255, 255, 255, 0.05);
202
+ --box-shadow-top-highlight-color: var(--box-shadow-highlight-color);
203
+ --box-shadow-inset-color: rgba(0, 0, 0, 0.25);
204
+ --bevel-shadow-offset: 4px;
205
+ --bevel-shadow-color: rgba(0, 0, 0, 0.1);
206
+ --outline-color: rgba(0, 0, 0, 0);
207
+ --outline-width: 0px;
208
+
209
+ :where([data-theme='dark']) & {
210
+ --soft-shadow-color: rgba(0, 0, 0, 0.375);
211
+ --hard-shadow-color: rgba(0, 0, 0, 0.4);
212
+ }
213
+
214
+ box-shadow:
215
+ 0 0 2px var(--soft-shadow-color),
216
+ 0 0 0 1px var(--box-shadow-outline-color),
217
+ 0 var(--bevel-shadow-offset) 0 var(--hard-shadow-color),
218
+ inset 0 calc(var(--bevel-shadow-offset) * -1) 0 var(--bevel-shadow-color),
219
+ inset 0 calc((var(--bevel-shadow-offset) + 1px) * -1) 0
220
+ var(--box-shadow-highlight-color),
221
+ 0 0 0 var(--outline-width) var(--outline-color);
222
+
223
+ &:before {
224
+ content: '';
225
+ width: 100%;
226
+ height: 100%;
227
+ position: absolute;
228
+ border-radius: var(--border-radius);
229
+ top: 0;
230
+ right: 0;
231
+ bottom: 0;
232
+ left: 0;
233
+ mix-blend-mode: overlay;
234
+
235
+ box-shadow:
236
+ inset 0 0 0 1px var(--box-shadow-color),
237
+ inset 0 2px 0 var(--box-shadow-top-highlight-color),
238
+ inset 0 -2px 0 var(--box-shadow-highlight-color),
239
+ inset 0 1px 0 var(--box-shadow-inset-color),
240
+ inset 0 calc(var(--bevel-shadow-offset) * -1) 0
241
+ var(--inset-hard-shadow-color);
242
+ transition: box-shadow 0.37s;
243
+ }
244
+ `;
245
+
246
+ export const nonInteractiveEffectStyles = cx(
247
+ effectStyles,
248
+ css`
249
+ :where([data-theme='dark']) && {
250
+ --box-shadow-outline-color: #07130e;
251
+ --box-shadow-color: rgba(255, 255, 255, 0.2);
252
+ }
253
+ `
254
+ );
@@ -1 +0,0 @@
1
- "use strict";const m=require("react"),e="div";function o({as:t,reference:r,...n}){return m.createElement(t??e,{...n,ref:r})}exports.Atom=o;exports.defaultAtomElementType=e;
@@ -1,12 +0,0 @@
1
- import { createElement as r } from "react";
2
- const m = "div";
3
- function a({ as: e, reference: t, ...o }) {
4
- return r(e ?? m, {
5
- ...o,
6
- ref: t
7
- });
8
- }
9
- export {
10
- a as A,
11
- m as d
12
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./jsx-runtime-BB_1_6y_.js"),r=require("@kuma-ui/core"),e=require("./atom-B-bW2QKm.js");function u({as:t,className:o,...s}){return n.jsxRuntimeExports.jsx(e.Atom,{as:t??e.defaultAtomElementType,...s,className:r.cx("kakadu-components-1846349723",o)})}exports.Box=u;
@@ -1,13 +0,0 @@
1
- import { j as s } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { cx as a } from "@kuma-ui/core";
3
- import { A as r, d as e } from "./atom-CqxGy6PS.mjs";
4
- function f({
5
- as: o,
6
- className: t,
7
- ...m
8
- }) {
9
- return /* @__PURE__ */ s.jsx(r, { as: o ?? e, ...m, className: a("kakadu-components-1846349723", t) });
10
- }
11
- export {
12
- f as B
13
- };
@@ -1,5 +0,0 @@
1
- import { type AtomElementType, type AtomProperties } from './atom';
2
- export declare const ariaTextStyles: string;
3
- type AriaTextProperties<Type extends AtomElementType = 'span'> = AtomProperties<Type>;
4
- export default function AriaText<Type extends AtomElementType = 'span'>({ as, className, ...properties }: AriaTextProperties<Type>): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,10 +0,0 @@
1
- import { type ElementType, type ComponentPropsWithoutRef, type ComponentRef, type Ref } from 'react';
2
- export declare const defaultAtomElementType = "div";
3
- export type AtomElementType = ElementType;
4
- export type DefaultAtomElementType = typeof defaultAtomElementType;
5
- export type AtomProperties<Type extends ElementType = DefaultAtomElementType> = ComponentPropsWithoutRef<Type> & {
6
- readonly as?: Type;
7
- readonly reference?: Ref<ComponentRef<Type>>;
8
- readonly className?: string;
9
- };
10
- export default function Atom<Type extends ElementType = DefaultAtomElementType>({ as, reference, ...properties }: AtomProperties<Type>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -1,4 +0,0 @@
1
- import { type DefaultAtomElementType, type AtomElementType, type AtomProperties } from './atom';
2
- type BoxProperties<Type extends AtomElementType = DefaultAtomElementType> = AtomProperties<Type>;
3
- export default function Box<Type extends AtomElementType = DefaultAtomElementType>({ as, className, ...properties }: BoxProperties<Type>): import("react/jsx-runtime").JSX.Element;
4
- export {};
@@ -1,7 +0,0 @@
1
- import { type AtomElementType, type AtomProperties, type DefaultAtomElementType } from './atom';
2
- export type FlexProperties<Type extends AtomElementType = DefaultAtomElementType> = AtomProperties<Type> & {
3
- readonly direction?: 'row' | 'column';
4
- readonly gap?: 0.25 | 0.375 | 0.5 | 1 | 1.5 | 2;
5
- readonly alignment?: 'start' | 'center' | 'space-between' | 'end';
6
- };
7
- export default function Flex<Type extends AtomElementType = DefaultAtomElementType>({ as, direction, alignment, gap, className, ...properties }: FlexProperties<Type>): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export type GaugeProperties = {
2
- readonly label: string;
3
- readonly size?: 'small' | 'medium' | 'large';
4
- readonly percentage?: number;
5
- };
6
- export default function Gauge({ label, size, percentage }: GaugeProperties): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { type HTMLAttributes } from 'react';
2
- type SkeletonProperties = {
3
- readonly width?: string | number;
4
- readonly height?: string | number;
5
- readonly className?: string;
6
- readonly isAnimated?: boolean;
7
- } & HTMLAttributes<HTMLDivElement>;
8
- export declare function SkeletonInstance({ width, height, className, children, isAnimated, ...parameters }: SkeletonProperties): import("react/jsx-runtime").JSX.Element;
9
- export default function Skeleton({ lines, isAnimated, }: {
10
- readonly lines?: number;
11
- readonly isAnimated?: boolean;
12
- }): import("react/jsx-runtime").JSX.Element | null;
13
- export {};
@@ -1,10 +0,0 @@
1
- type SpinnerProperties = {
2
- readonly size?: number;
3
- readonly strokeWidth?: number;
4
- readonly isAnimated?: boolean;
5
- };
6
- export default function Spinner({ size, strokeWidth, isAnimated, }: SpinnerProperties): import("react/jsx-runtime").JSX.Element;
7
- export declare function RevealSpinner({ isVisible, ...properties }: {
8
- readonly isVisible?: boolean;
9
- } & Omit<SpinnerProperties, 'isAnimated'>): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,7 +0,0 @@
1
- import { type ElementType } from 'react';
2
- import { type AtomProperties } from './atom';
3
- export declare function Heading<Type extends ElementType = 'h1'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
4
- export declare const spanStyles: string;
5
- export declare function Paragraph<Type extends ElementType = 'p'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
6
- export declare function Span<Type extends ElementType = 'span'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
7
- export default function Text<Type extends ElementType = 'div'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { j as s } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { cx as m } from "@kuma-ui/core";
3
- import { A as c, d as u } from "./atom-CqxGy6PS.mjs";
4
- function x({
5
- as: a,
6
- direction: e = "column",
7
- alignment: n,
8
- gap: o = 1,
9
- className: t,
10
- ...k
11
- }) {
12
- return /* @__PURE__ */ s.jsx(c, { as: a ?? u, ...k, className: m("kakadu-components-1168981339", e === "column" && "kakadu-components-2635417128", n === "start" && "kakadu-components-3787355519", n === "center" && "kakadu-components-2338096059", n === "space-between" && "kakadu-components-3146198284", n === "end" && "kakadu-components-1431148762", o === 0.25 && "kakadu-components-2276234075", o === 0.375 && "kakadu-components-739568937", o === 0.5 && "kakadu-components-3438335458", o === 1 && "kakadu-components-3993051137", o === 1.5 && "kakadu-components-4186556816", o === 2 && "kakadu-components-1435205015", t) });
13
- }
14
- export {
15
- x as F
16
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("./jsx-runtime-BB_1_6y_.js"),u=require("@kuma-ui/core"),n=require("./atom-B-bW2QKm.js");function m({as:t,direction:s="column",alignment:e,gap:o=1,className:c,...k}){return a.jsxRuntimeExports.jsx(n.Atom,{as:t??n.defaultAtomElementType,...k,className:u.cx("kakadu-components-1168981339",s==="column"&&"kakadu-components-2635417128",e==="start"&&"kakadu-components-3787355519",e==="center"&&"kakadu-components-2338096059",e==="space-between"&&"kakadu-components-3146198284",e==="end"&&"kakadu-components-1431148762",o===.25&&"kakadu-components-2276234075",o===.375&&"kakadu-components-739568937",o===.5&&"kakadu-components-3438335458",o===1&&"kakadu-components-3993051137",o===1.5&&"kakadu-components-4186556816",o===2&&"kakadu-components-1435205015",c)})}exports.Flex=m;
@@ -1,41 +0,0 @@
1
- import { j as s } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { useMemo as n } from "react";
3
- import { cx as D } from "@kuma-ui/core";
4
- const m = {
5
- /* eslint-disable @typescript-eslint/naming-convention */
6
- 0: ["#D60D43"],
7
- 15: ["#D60D43", "#FFCD45"],
8
- 30: ["#D6460D", "#ffda54"],
9
- 50: ["#D6860D", "#F1DC3B", "#CEE838"],
10
- 65: ["#D6BE0D", "#FFD045", "#6DE838"],
11
- 80: ["#D9E838", "#93E838", "#3EE838"],
12
- 100: ["#55EB62", "#38E99A", "#5EEA52"]
13
- /* eslint-enable @typescript-eslint/naming-convention */
14
- }, x = Object.keys(m).map((e) => Number.parseInt(e, 10)).sort((e, t) => t - e);
15
- function v({
16
- label: e,
17
- size: t,
18
- percentage: c = 0
19
- }) {
20
- const a = n(() => Math.max(0, Math.min(100, c)), [c]), d = n(() => a / 100, [a]), o = n(() => {
21
- for (const r of x)
22
- if (a >= r)
23
- return m[r];
24
- return [];
25
- }, [a]), l = n(() => o.length, [o]), u = n(() => o.at(0), [o]), i = n(() => o.at(-1), [o]), k = n(() => o.map((r, p) => `${r} ${Math.round(p / l * 100)}%`).join(", "), [o, l]);
26
- return /* @__PURE__ */ s.jsxs("div", { style: {
27
- "--percentage": `${a}%`,
28
- "--percentage-factor": d,
29
- "--gradient": k,
30
- "--start-color": u,
31
- "--end-color": i
32
- }, role: "meter", "aria-valuenow": a, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": e, className: D("kakadu-components-361702174", t === "small" && "kakadu-components-3162945807", t === "large" && "kakadu-components-2977513648"), children: [
33
- a > 0 ? /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-707327569" }) : null,
34
- /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-3185646656", children: /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-257978560" }) }),
35
- /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-586099934", children: a }),
36
- a > 0 && a < 100 ? /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-967240013", children: /* @__PURE__ */ s.jsx("div", { className: "kakadu-components-3225063030" }) }) : null
37
- ] });
38
- }
39
- export {
40
- v as G
41
- };
@@ -1 +0,0 @@
1
- "use strict";const o=require("./jsx-runtime-BB_1_6y_.js"),t=require("react"),p=require("@kuma-ui/core"),m={0:["#D60D43"],15:["#D60D43","#FFCD45"],30:["#D6460D","#ffda54"],50:["#D6860D","#F1DC3B","#CEE838"],65:["#D6BE0D","#FFD045","#6DE838"],80:["#D9E838","#93E838","#3EE838"],100:["#55EB62","#38E99A","#5EEA52"]},E=Object.keys(m).map(a=>Number.parseInt(a,10)).sort((a,n)=>n-a);function j({label:a,size:n,percentage:c=0}){const e=t.useMemo(()=>Math.max(0,Math.min(100,c)),[c]),i=t.useMemo(()=>e/100,[e]),s=t.useMemo(()=>{for(const r of E)if(e>=r)return m[r];return[]},[e]),u=t.useMemo(()=>s.length,[s]),l=t.useMemo(()=>s.at(0),[s]),d=t.useMemo(()=>s.at(-1),[s]),x=t.useMemo(()=>s.map((r,k)=>`${r} ${Math.round(k/u*100)}%`).join(", "),[s,u]);return o.jsxRuntimeExports.jsxs("div",{style:{"--percentage":`${e}%`,"--percentage-factor":i,"--gradient":x,"--start-color":l,"--end-color":d},role:"meter","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,className:p.cx("kakadu-components-361702174",n==="small"&&"kakadu-components-3162945807",n==="large"&&"kakadu-components-2977513648"),children:[e>0?o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-707327569"}):null,o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-3185646656",children:o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-257978560"})}),o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-586099934",children:e}),e>0&&e<100?o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-967240013",children:o.jsxRuntimeExports.jsx("div",{className:"kakadu-components-3225063030"})}):null]})}exports.Gauge=j;
package/build/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export { default as Atom, defaultAtomElementType } from './components/atom';
2
- export type { AtomProperties, DefaultAtomElementType } from './components/atom';
3
- export { default as AriaText } from './components/aria-text';
4
- export { default as Box } from './components/box';
5
- export { default as Flex } from './components/flex';
6
- export { default as Text, Heading, Paragraph, Span } from './components/text';
7
- export { default as Gauge } from './components/gauge';
8
- export { default as Skeleton, SkeletonInstance } from './components/skeleton';
9
- export { default as Spinner, RevealSpinner } from './components/spinner';
10
- export { default as theme, greenColor, overflowProtectionStyles, buttonResetStyles, } from './theme';
package/build/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./atom-B-bW2QKm.js"),l=require("./jsx-runtime-BB_1_6y_.js"),u=require("@kuma-ui/core"),c=require("./box-4_-REPb0.js"),x=require("./flex-JFSv9GFG.js"),e=require("./text-BO7Qt7Lj.js"),S=require("./gauge-mog6SjVx.js"),o=require("./skeleton-B5bJ732_.js"),r=require("./spinner-DFfE6tSd.js"),t=require("./theme.js"),m="kakadu-components-3440084244";function p({as:a,className:s,...i}){return l.jsxRuntimeExports.jsx(n.Atom,{as:a??"span",...i,className:u.cx(m,s)})}exports.Atom=n.Atom;exports.defaultAtomElementType=n.defaultAtomElementType;exports.Box=c.Box;exports.Flex=x.Flex;exports.Heading=e.Heading;exports.Paragraph=e.Paragraph;exports.Span=e.Span;exports.Text=e.Text;exports.Gauge=S.Gauge;exports.Skeleton=o.Skeleton;exports.SkeletonInstance=o.SkeletonInstance;exports.RevealSpinner=r.RevealSpinner;exports.Spinner=r.Spinner;exports.buttonResetStyles=t.buttonResetStyles;exports.greenColor=t.greenColor;exports.overflowProtectionStyles=t.overflowProtectionStyles;exports.theme=t.default;exports.AriaText=p;
package/build/index.mjs DELETED
@@ -1,39 +0,0 @@
1
- import { A as r } from "./atom-CqxGy6PS.mjs";
2
- import { d as S } from "./atom-CqxGy6PS.mjs";
3
- import { j as a } from "./jsx-runtime-B4hRZ52C.mjs";
4
- import { cx as s } from "@kuma-ui/core";
5
- import { B as c } from "./box-Cf22bdCb.mjs";
6
- import { F as T } from "./flex-C4bEYrMM.mjs";
7
- import { H as k, P as y, S as A, T as R } from "./text-ZYVNxqac.mjs";
8
- import { G as P } from "./gauge-C1CypvvD.mjs";
9
- import { S as v, a as B } from "./skeleton-C593Afco.mjs";
10
- import { R as F, S as G } from "./spinner-DE_Y3sKH.mjs";
11
- import { buttonResetStyles as b, greenColor as w, overflowProtectionStyles as C, default as I } from "./theme.mjs";
12
- const n = "kakadu-components-3440084244";
13
- function f({
14
- as: e,
15
- className: o,
16
- ...t
17
- }) {
18
- return /* @__PURE__ */ a.jsx(r, { as: e ?? "span", ...t, className: s(n, o) });
19
- }
20
- export {
21
- f as AriaText,
22
- r as Atom,
23
- c as Box,
24
- T as Flex,
25
- P as Gauge,
26
- k as Heading,
27
- y as Paragraph,
28
- F as RevealSpinner,
29
- v as Skeleton,
30
- B as SkeletonInstance,
31
- A as Span,
32
- G as Spinner,
33
- R as Text,
34
- b as buttonResetStyles,
35
- S as defaultAtomElementType,
36
- w as greenColor,
37
- C as overflowProtectionStyles,
38
- I as theme
39
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-BB_1_6y_.js"),c=require("react"),a=require("@kuma-ui/core");function o({width:t,height:s,className:u,children:r,isAnimated:n=!0,...x}){return e.jsxRuntimeExports.jsx("span",{...x,"aria-busy":!0,"aria-role":"progressbar",className:a.cx("kakadu-components-3027005914",n&&"kakadu-components-3311350973",u),style:{width:t,height:s},children:r??e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:" "})})}const i="kakadu-components-3140855657";function m({lines:t=1,isAnimated:s=!0}){const u=c.useMemo(()=>{const r=[];if(t<=1)return r;for(let n=1;n<t;n+=1)r.push(e.jsxRuntimeExports.jsx(o,{width:"100%",height:"1em",isAnimated:s,className:i},n));return r},[t,s]);return t<1?null:t===1?e.jsxRuntimeExports.jsx(o,{width:"100%",height:"1em",isAnimated:s,className:i}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[u,e.jsxRuntimeExports.jsx(o,{width:"60%",height:"1em",isAnimated:s,className:i})]})}exports.Skeleton=m;exports.SkeletonInstance=o;
@@ -1,48 +0,0 @@
1
- import { j as e } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { useMemo as c } from "react";
3
- import { cx as l } from "@kuma-ui/core";
4
- function a({
5
- width: t,
6
- height: r,
7
- className: o,
8
- children: s,
9
- isAnimated: n = !0,
10
- ...m
11
- }) {
12
- return /* @__PURE__ */ e.jsx(
13
- "span",
14
- {
15
- ...m,
16
- "aria-busy": !0,
17
- "aria-role": "progressbar",
18
- className: l("kakadu-components-3027005914", n && "kakadu-components-3311350973", o),
19
- style: {
20
- width: t,
21
- height: r
22
- },
23
- children: s ?? /* @__PURE__ */ e.jsx(e.Fragment, { children: " " })
24
- }
25
- );
26
- }
27
- const u = "kakadu-components-3140855657";
28
- function x({
29
- lines: t = 1,
30
- isAnimated: r = !0
31
- }) {
32
- const o = c(() => {
33
- const s = [];
34
- if (t <= 1)
35
- return s;
36
- for (let n = 1; n < t; n += 1)
37
- s.push(/* @__PURE__ */ e.jsx(a, { width: "100%", height: "1em", isAnimated: r, className: u }, n));
38
- return s;
39
- }, [t, r]);
40
- return t < 1 ? null : t === 1 ? /* @__PURE__ */ e.jsx(a, { width: "100%", height: "1em", isAnimated: r, className: u }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
41
- o,
42
- /* @__PURE__ */ e.jsx(a, { width: "60%", height: "1em", isAnimated: r, className: u })
43
- ] });
44
- }
45
- export {
46
- x as S,
47
- a
48
- };
@@ -1,33 +0,0 @@
1
- import { j as a } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { useMemo as o, useState as x, useEffect as d } from "react";
3
- import { cx as f } from "@kuma-ui/core";
4
- function i({
5
- size: e = 18,
6
- strokeWidth: n = 2.5,
7
- isAnimated: c = !0
8
- }) {
9
- const t = o(() => e / 2, [e]), r = o(() => t - n / 2, [n, t]), s = o(() => 2 * Math.PI * r, [r]), u = o(() => s * 0.33, [s]), m = o(() => s - u, [s, u]), p = o(() => -m / 2, [m]);
10
- return /* @__PURE__ */ a.jsx("svg", { width: e, height: e, preserveAspectRatio: "xMaxYMax meet", viewBox: `0 0 ${e} ${e}`, fill: "none", className: f("kakadu-components-2940817552", c && "kakadu-components-2073235239"), children: /* @__PURE__ */ a.jsx("circle", { cx: t, cy: t, r, stroke: "currentColor", strokeWidth: n, strokeLinecap: "round", strokeDasharray: `${m} ${u}`, strokeDashoffset: p }) });
11
- }
12
- function j({
13
- isVisible: e,
14
- ...n
15
- }) {
16
- const [c, t] = x(e);
17
- return d(() => {
18
- if (e)
19
- t(!0);
20
- else {
21
- const r = setTimeout(() => {
22
- t(!1);
23
- }, 370);
24
- return () => {
25
- clearTimeout(r);
26
- };
27
- }
28
- }, [e]), /* @__PURE__ */ a.jsx("div", { className: f("kakadu-components-833895784", e && "kakadu-components-640347989"), children: /* @__PURE__ */ a.jsx(i, { isAnimated: c, ...n }) });
29
- }
30
- export {
31
- j as R,
32
- i as S
33
- };
@@ -1 +0,0 @@
1
- "use strict";const c=require("./jsx-runtime-BB_1_6y_.js"),t=require("react"),i=require("@kuma-ui/core");function x({size:e=18,strokeWidth:s=2.5,isAnimated:u=!0}){const n=t.useMemo(()=>e/2,[e]),o=t.useMemo(()=>n-s/2,[s,n]),r=t.useMemo(()=>2*Math.PI*o,[o]),a=t.useMemo(()=>r*.33,[r]),m=t.useMemo(()=>r-a,[r,a]),p=t.useMemo(()=>-m/2,[m]);return c.jsxRuntimeExports.jsx("svg",{width:e,height:e,preserveAspectRatio:"xMaxYMax meet",viewBox:`0 0 ${e} ${e}`,fill:"none",className:i.cx("kakadu-components-2940817552",u&&"kakadu-components-2073235239"),children:c.jsxRuntimeExports.jsx("circle",{cx:n,cy:n,r:o,stroke:"currentColor",strokeWidth:s,strokeLinecap:"round",strokeDasharray:`${m} ${a}`,strokeDashoffset:p})})}function f({isVisible:e,...s}){const[u,n]=t.useState(e);return t.useEffect(()=>{if(e)n(!0);else{const o=setTimeout(()=>{n(!1)},370);return()=>{clearTimeout(o)}}},[e]),c.jsxRuntimeExports.jsx("div",{className:i.cx("kakadu-components-833895784",e&&"kakadu-components-640347989"),children:c.jsxRuntimeExports.jsx(x,{isAnimated:u,...s})})}exports.RevealSpinner=f;exports.Spinner=x;
@@ -1 +0,0 @@
1
- "use strict";const n=require("./jsx-runtime-BB_1_6y_.js"),a=require("@kuma-ui/core"),c=require("./theme.js"),o=require("./atom-B-bW2QKm.js");function u({as:s,className:t,...e}){return n.jsxRuntimeExports.jsx(o.Atom,{as:s??"h1",...e,className:a.cx(c.overflowProtectionStyles,"kakadu-components-2934642132",t)})}const r="kakadu-components-1010422083";function m({as:s,className:t,...e}){return n.jsxRuntimeExports.jsx(o.Atom,{as:s??"p",...e,className:a.cx(r,"kakadu-components-2351087175",t)})}function x({as:s,className:t,...e}){return n.jsxRuntimeExports.jsx(o.Atom,{as:s??"span",...e,className:a.cx(r,t)})}function i({as:s,className:t,...e}){return n.jsxRuntimeExports.jsx(o.Atom,{as:s??"div",...e,className:a.cx("kakadu-components-2608978433",t)})}exports.Heading=u;exports.Paragraph=m;exports.Span=x;exports.Text=i;
@@ -1,39 +0,0 @@
1
- import { j as n } from "./jsx-runtime-B4hRZ52C.mjs";
2
- import { cx as t } from "@kuma-ui/core";
3
- import { overflowProtectionStyles as m } from "./theme.mjs";
4
- import { A as r } from "./atom-CqxGy6PS.mjs";
5
- function f({
6
- as: a,
7
- className: s,
8
- ...o
9
- }) {
10
- return /* @__PURE__ */ n.jsx(r, { as: a ?? "h1", ...o, className: t(m, "kakadu-components-2934642132", s) });
11
- }
12
- const e = "kakadu-components-1010422083";
13
- function x({
14
- as: a,
15
- className: s,
16
- ...o
17
- }) {
18
- return /* @__PURE__ */ n.jsx(r, { as: a ?? "p", ...o, className: t(e, "kakadu-components-2351087175", s) });
19
- }
20
- function k({
21
- as: a,
22
- className: s,
23
- ...o
24
- }) {
25
- return /* @__PURE__ */ n.jsx(r, { as: a ?? "span", ...o, className: t(e, s) });
26
- }
27
- function l({
28
- as: a,
29
- className: s,
30
- ...o
31
- }) {
32
- return /* @__PURE__ */ n.jsx(r, { as: a ?? "div", ...o, className: t("kakadu-components-2608978433", s) });
33
- }
34
- export {
35
- f as H,
36
- x as P,
37
- k as S,
38
- l as T
39
- };