@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
@@ -0,0 +1,61 @@
1
+ import { j as c } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import s from "./utilities/scale.mjs";
3
+ function a({
4
+ fill: l,
5
+ ...h
6
+ }) {
7
+ const { width: v, height: t } = s({
8
+ originalWidth: 254,
9
+ originalHeight: 56,
10
+ width: h.width,
11
+ height: h.height
12
+ });
13
+ return /* @__PURE__ */ c.jsxs(
14
+ "svg",
15
+ {
16
+ fill: "none",
17
+ viewBox: "0 0 254 56",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ ...h,
20
+ width: v,
21
+ height: t,
22
+ children: [
23
+ /* @__PURE__ */ c.jsxs("g", { fill: l ?? "#002776", children: [
24
+ /* @__PURE__ */ c.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" }),
25
+ /* @__PURE__ */ c.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" }),
26
+ /* @__PURE__ */ c.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" }),
27
+ /* @__PURE__ */ c.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" }),
28
+ /* @__PURE__ */ c.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" }),
29
+ /* @__PURE__ */ c.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" }),
30
+ /* @__PURE__ */ c.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" }),
31
+ /* @__PURE__ */ c.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" }),
32
+ /* @__PURE__ */ c.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" })
33
+ ] }),
34
+ /* @__PURE__ */ c.jsx(
35
+ "path",
36
+ {
37
+ 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",
38
+ fill: "#e60000"
39
+ }
40
+ ),
41
+ /* @__PURE__ */ c.jsx(
42
+ "path",
43
+ {
44
+ 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",
45
+ fill: "#af0000"
46
+ }
47
+ ),
48
+ /* @__PURE__ */ c.jsx(
49
+ "path",
50
+ {
51
+ 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",
52
+ fill: "#fff"
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ );
58
+ }
59
+ export {
60
+ a as default
61
+ };
@@ -1 +1,10 @@
1
- export { default, RevealSpinner } from './components/spinner';
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 {};
package/build/spinner.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./spinner-DFfE6tSd.js");exports.RevealSpinner=e.RevealSpinner;exports.default=e.Spinner;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./jsx-runtime-BB_1_6y_.js"),t=require("react"),l=require("@kuma-ui/core");function i({size:e=18,strokeWidth:o=2.5,isAnimated:c=!0}){const s=t.useMemo(()=>e/2,[e]),n=t.useMemo(()=>s-o/2,[s,o]),r=t.useMemo(()=>2*Math.PI*n,[n]),a=t.useMemo(()=>r*.33,[r]),m=t.useMemo(()=>r-a,[r,a]),d=t.useMemo(()=>-m/2,[m]);return u.jsxRuntimeExports.jsx("svg",{width:e,height:e,preserveAspectRatio:"xMidYMid meet",viewBox:`0 0 ${e} ${e}`,fill:"none",className:"kakadu-components-1569667551",children:u.jsxRuntimeExports.jsx("circle",{cx:s,cy:s,r:n,stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${m} ${a}`,strokeDashoffset:d,className:c?"kakadu-components-1717890504":void 0})})}function x({isVisible:e,...o}){const[c,s]=t.useState(e);return t.useEffect(()=>{if(e)s(!0);else{const n=setTimeout(()=>{s(!1)},370);return()=>{clearTimeout(n)}}},[e]),u.jsxRuntimeExports.jsx("div",{className:l.cx("kakadu-components-3913140600",e&&"kakadu-components-2895791158"),children:u.jsxRuntimeExports.jsx(i,{isAnimated:c,...o})})}exports.RevealSpinner=x;exports.default=i;
package/build/spinner.mjs CHANGED
@@ -1,5 +1,33 @@
1
- import { R as r, S as f } from "./spinner-DE_Y3sKH.mjs";
1
+ import { j as a } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useMemo as o, useState as d, useEffect as i } from "react";
3
+ import { cx as p } from "@kuma-ui/core";
4
+ function l({
5
+ size: e = 18,
6
+ strokeWidth: n = 2.5,
7
+ isAnimated: c = !0
8
+ }) {
9
+ const t = o(() => e / 2, [e]), s = o(() => t - n / 2, [t, n]), r = o(() => 2 * Math.PI * s, [s]), u = o(() => r * 0.33, [r]), m = o(() => r - u, [r, u]), f = o(() => -m / 2, [m]);
10
+ return /* @__PURE__ */ a.jsx("svg", { width: e, height: e, preserveAspectRatio: "xMidYMid meet", viewBox: `0 0 ${e} ${e}`, fill: "none", className: "kakadu-components-1569667551", children: /* @__PURE__ */ a.jsx("circle", { cx: t, cy: t, r: s, stroke: "currentColor", strokeWidth: n, strokeLinecap: "round", strokeDasharray: `${m} ${u}`, strokeDashoffset: f, className: c ? "kakadu-components-1717890504" : void 0 }) });
11
+ }
12
+ function j({
13
+ isVisible: e,
14
+ ...n
15
+ }) {
16
+ const [c, t] = d(e);
17
+ return i(() => {
18
+ if (e)
19
+ t(!0);
20
+ else {
21
+ const s = setTimeout(() => {
22
+ t(!1);
23
+ }, 370);
24
+ return () => {
25
+ clearTimeout(s);
26
+ };
27
+ }
28
+ }, [e]), /* @__PURE__ */ a.jsx("div", { className: p("kakadu-components-3913140600", e && "kakadu-components-2895791158"), children: /* @__PURE__ */ a.jsx(l, { isAnimated: c, ...n }) });
29
+ }
2
30
  export {
3
- r as RevealSpinner,
4
- f as default
31
+ j as RevealSpinner,
32
+ l as default
5
33
  };
@@ -0,0 +1,2 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export default function StoLogoSvg({ 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 t=require("./jsx-runtime-BB_1_6y_.js"),h=require("./utilities/scale.js");function n({fill:s,...e}){const{width:i,height:x}=h.default({originalWidth:56,originalHeight:26,width:e.width,height:e.height});return t.jsxRuntimeExports.jsx("svg",{viewBox:"0 0 56 26",xmlns:"http://www.w3.org/2000/svg",...e,width:i,height:x,children:t.jsxRuntimeExports.jsxs("g",{fill:s??"#093d05",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxRuntimeExports.jsx("path",{d:"m52.4283 11.0499c-1.8326 0-3.3265-1.51945-3.3265-3.39839 0-.65797.1859-1.27525.5046-1.79755-1.3014-.64441-2.7621-1.0107-4.3092-1.0107-5.4513 0-9.8734 4.51761-9.8734 10.08664 0 1.5805.3586 3.0728.9894 4.4023.5112-.3256 1.1154-.5155 1.7595-.5155 1.8326 0 3.3265 1.5194 3.3265 3.3983 0 .658-.1859 1.2753-.5046 1.7976 1.3014.6444 2.7622 1.0107 4.3092 1.0107 5.4513 0 9.8734-4.5176 9.8734-10.0866 0-1.5805-.3585-3.0728-.9893-4.4023-.5113.3188-1.1089.5155-1.7596.5155zm-7.1245 9.0691c-2.8086 0-5.0794-2.3266-5.0794-5.1891 0-2.8693 2.2774-5.18917 5.0794-5.18917 2.8087 0 5.0795 2.32667 5.0795 5.18917 0 2.8693-2.2708 5.1891-5.0795 5.1891z",fill:s??"#093d05"}),t.jsxRuntimeExports.jsx("path",{d:"m36.4186 19.332c-.9363.597-1.567 1.6619-1.567 2.8761 0 1.8722 1.4873 3.3984 3.3265 3.3984 1.1885 0 2.231-.6376 2.8153-1.6008-1.992-.9836-3.6054-2.6387-4.5748-4.6737z",fill:"#67e702"}),t.jsxRuntimeExports.jsx("path",{d:"m54.1881 10.5274c.9362-.59693 1.567-1.6619 1.567-2.87609 0-1.87216-1.4873-3.39838-3.3265-3.39838-1.1886 0-2.231.63762-2.8153 1.60083 1.9919.99035 3.612 2.63867 4.5748 4.67364z",fill:"#67e702"}),t.jsxRuntimeExports.jsxs("g",{fill:s??"#093d05",children:[t.jsxRuntimeExports.jsx("path",{d:"m32.1556 20.397c-.2922.0475-.5843.0746-.8897.0746-.7437 0-1.3014-.2238-1.7131-.6919-.4117-.468-.6175-1.1531-.6175-2.0349v-8.70286h5.0197v-4.36838h-5.0197v-4.273414h-5.1724v4.273414h-3.0344v4.36838h3.0344v9.12336c0 1.4584.2921 2.7201.8698 3.7579.5777 1.0379 1.4076 1.8383 2.4634 2.3809 1.0491.5359 2.2376.8072 3.539.8072.5046 0 .996-.0407 1.4541-.1153.0199-.0068.0465-.0135.0664-.0135z"}),t.jsxRuntimeExports.jsx("path",{d:"m5.56419 18.2195c.19256 1.784 1.70643 3.0118 4.38226 3.0118 2.29075 0 3.68505-.753 3.68505-2.1775 0-1.6618-1.3545-1.7839-4.57478-2.2181-4.65449-.5562-8.259899-1.6211-8.259899-5.8267 0-4.04281 3.452689-6.70183 8.571969-6.66113 5.35171 0 9.03671 2.42161 9.30901 6.57973h-5.2388c-.1594-1.62121-1.6666-2.61156-3.87765-2.61156-2.13138 0-3.53237.79364-3.53237 2.10276 0 1.5398 1.70642 1.7026 4.58142 2.0621 4.5748.4749 8.3794 1.5466 8.3794 6.1456 0 4.0428-3.7249 6.6204-9.07655 6.6204-5.55086-.0136-9.315623-2.6726-9.548016-7.0274z"})]})]})})}exports.default=n;
@@ -0,0 +1,53 @@
1
+ import { j as h } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import g from "./utilities/scale.mjs";
3
+ function o({
4
+ fill: t,
5
+ ...i
6
+ }) {
7
+ const { width: s, height: d } = g({
8
+ originalWidth: 56,
9
+ originalHeight: 26,
10
+ width: i.width,
11
+ height: i.height
12
+ });
13
+ return /* @__PURE__ */ h.jsx(
14
+ "svg",
15
+ {
16
+ viewBox: "0 0 56 26",
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ ...i,
19
+ width: s,
20
+ height: d,
21
+ children: /* @__PURE__ */ h.jsxs("g", { fill: t ?? "#093d05", xmlns: "http://www.w3.org/2000/svg", children: [
22
+ /* @__PURE__ */ h.jsx(
23
+ "path",
24
+ {
25
+ d: "m52.4283 11.0499c-1.8326 0-3.3265-1.51945-3.3265-3.39839 0-.65797.1859-1.27525.5046-1.79755-1.3014-.64441-2.7621-1.0107-4.3092-1.0107-5.4513 0-9.8734 4.51761-9.8734 10.08664 0 1.5805.3586 3.0728.9894 4.4023.5112-.3256 1.1154-.5155 1.7595-.5155 1.8326 0 3.3265 1.5194 3.3265 3.3983 0 .658-.1859 1.2753-.5046 1.7976 1.3014.6444 2.7622 1.0107 4.3092 1.0107 5.4513 0 9.8734-4.5176 9.8734-10.0866 0-1.5805-.3585-3.0728-.9893-4.4023-.5113.3188-1.1089.5155-1.7596.5155zm-7.1245 9.0691c-2.8086 0-5.0794-2.3266-5.0794-5.1891 0-2.8693 2.2774-5.18917 5.0794-5.18917 2.8087 0 5.0795 2.32667 5.0795 5.18917 0 2.8693-2.2708 5.1891-5.0795 5.1891z",
26
+ fill: t ?? "#093d05"
27
+ }
28
+ ),
29
+ /* @__PURE__ */ h.jsx(
30
+ "path",
31
+ {
32
+ d: "m36.4186 19.332c-.9363.597-1.567 1.6619-1.567 2.8761 0 1.8722 1.4873 3.3984 3.3265 3.3984 1.1885 0 2.231-.6376 2.8153-1.6008-1.992-.9836-3.6054-2.6387-4.5748-4.6737z",
33
+ fill: "#67e702"
34
+ }
35
+ ),
36
+ /* @__PURE__ */ h.jsx(
37
+ "path",
38
+ {
39
+ d: "m54.1881 10.5274c.9362-.59693 1.567-1.6619 1.567-2.87609 0-1.87216-1.4873-3.39838-3.3265-3.39838-1.1886 0-2.231.63762-2.8153 1.60083 1.9919.99035 3.612 2.63867 4.5748 4.67364z",
40
+ fill: "#67e702"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ h.jsxs("g", { fill: t ?? "#093d05", children: [
44
+ /* @__PURE__ */ h.jsx("path", { d: "m32.1556 20.397c-.2922.0475-.5843.0746-.8897.0746-.7437 0-1.3014-.2238-1.7131-.6919-.4117-.468-.6175-1.1531-.6175-2.0349v-8.70286h5.0197v-4.36838h-5.0197v-4.273414h-5.1724v4.273414h-3.0344v4.36838h3.0344v9.12336c0 1.4584.2921 2.7201.8698 3.7579.5777 1.0379 1.4076 1.8383 2.4634 2.3809 1.0491.5359 2.2376.8072 3.539.8072.5046 0 .996-.0407 1.4541-.1153.0199-.0068.0465-.0135.0664-.0135z" }),
45
+ /* @__PURE__ */ h.jsx("path", { d: "m5.56419 18.2195c.19256 1.784 1.70643 3.0118 4.38226 3.0118 2.29075 0 3.68505-.753 3.68505-2.1775 0-1.6618-1.3545-1.7839-4.57478-2.2181-4.65449-.5562-8.259899-1.6211-8.259899-5.8267 0-4.04281 3.452689-6.70183 8.571969-6.66113 5.35171 0 9.03671 2.42161 9.30901 6.57973h-5.2388c-.1594-1.62121-1.6666-2.61156-3.87765-2.61156-2.13138 0-3.53237.79364-3.53237 2.10276 0 1.5398 1.70642 1.7026 4.58142 2.0621 4.5748.4749 8.3794 1.5466 8.3794 6.1456 0 4.0428-3.7249 6.6204-9.07655 6.6204-5.55086-.0136-9.315623-2.6726-9.548016-7.0274z" })
46
+ ] })
47
+ ] })
48
+ }
49
+ );
50
+ }
51
+ export {
52
+ o as default
53
+ };
@@ -0,0 +1,2 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export default function StorebrandLogoSvg({ 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 v({fill:h,...t}){const{width:i,height:s}=e.default({originalWidth:180,originalHeight:23,width:t.width,height:t.height});return c.jsxRuntimeExports.jsxs("svg",{fill:"none",viewBox:"0 0 180 23",xmlns:"http://www.w3.org/2000/svg",...t,width:i,height:s,children:[c.jsxRuntimeExports.jsx("clipPath",{id:"a",children:c.jsxRuntimeExports.jsx("path",{d:"m0 0h180v22.957h-180z"})}),c.jsxRuntimeExports.jsxs("g",{clipPath:"url(#a)",fill:"none",children:[c.jsxRuntimeExports.jsx("path",{d:"m59.325 15.261 2.421-1.564c.953 1.786 2.96 3.448 5.405 3.448 1.761 0 3.057-.685 3.057-2.225 0-3.986-9.83-1.15-9.83-7.582 0-2.714 2.175-4.792 5.625-4.792 2.738 0 5.184 1.247 6.48 3.496l-2.421 1.54c-.953-1.491-2.397-2.446-4.084-2.446-1.588 0-2.47.855-2.47 2.005 0 3.62 9.855.953 9.855 7.458 0 3.375-2.984 5.21-6.261 5.21s-6.603-1.884-7.777-4.55zm16.801.88v-6.603h-1.564v-2.224h.611c.71 0 .953-.293.953-1.126v-1.81h2.936v2.934h3.082l-.417 2.224h-2.665v6.262c0 1.003.368 1.54 1.296 1.54.563 0 1.174-.171 1.491-.441v2.397c-.44.244-1.125.49-2.03.49-2.397 0-3.693-1.15-3.693-3.645zm6.897-2.739c0-3.912 2.47-6.48 5.992-6.48 3.52 0 5.99 2.568 5.99 6.432s-2.445 6.48-5.99 6.48c-3.546 0-5.992-2.519-5.992-6.432zm5.992 3.962c1.81 0 3.033-1.54 3.033-3.986s-1.223-3.986-3.033-3.986-3.034 1.516-3.034 3.986 1.224 3.986 3.034 3.986zm8.461-10.052h2.836v2.421c.661-1.442 1.713-2.64 3.767-2.714v2.91c-2.641.097-3.669 1.956-3.669 4.548v5.014h-2.936v-12.18h.002zm7.582 6.261c0-4.035 2.398-6.651 5.943-6.651 4.034 0 5.771 3.301 5.477 7.14h-8.511c.196 2.374 1.37 3.548 3.204 3.548 1.589 0 2.715-.98 3.277-1.957l1.908 1.297c-1.004 1.688-2.887 2.86-5.307 2.86-3.815 0-5.991-2.47-5.991-6.237zm8.584-1.516c-.147-2.029-1.272-2.96-2.714-2.96-1.443 0-2.568.978-2.885 2.96h5.601zm8.069 5.648-.219 1.786h-2.519v-16.63h2.911v6.236c.88-1.369 2.324-2.175 3.913-2.175 3.009 0 5.306 2.47 5.306 6.31s-2.446 6.578-5.452 6.578c-1.689 0-3.107-.782-3.938-2.103zm3.277-.146c1.81 0 3.082-1.615 3.082-4.18 0-2.567-1.296-4.158-3.082-4.158s-3.106 1.614-3.106 4.157c0 2.544 1.272 4.181 3.106 4.181zm8.438-10.247h2.836v2.421c.66-1.442 1.712-2.64 3.766-2.714v2.91c-2.641.097-3.669 1.956-3.669 4.548v5.014h-2.936v-12.18h.003zm7.655 9.318c0-2.323 1.564-3.252 5.771-4.621 1.345-.465 1.713-.929 1.713-1.565 0-.83-.807-1.247-1.932-1.247-1.369 0-2.641.831-3.155 1.908l-2.078-1.37c.952-1.688 2.836-2.811 5.355-2.811s4.67 1.003 4.67 3.913v4.94c0 1.345.368 1.713 1.175 1.762v2.102c-2.054.147-3.277-.49-3.718-2.078a4.54 4.54 0 0 1 -3.962 2.276c-1.883 0-3.839-.734-3.839-3.204v-.004zm4.646 1.102c1.613 0 2.86-1.54 2.86-3.399v-1.345c-.367.268-.831.49-1.491.733-2.176.88-3.106 1.492-3.106 2.642 0 1.076.855 1.369 1.737 1.369zm8.975-10.42h2.936v1.54c.636-.88 1.786-1.86 3.694-1.86 2.86 0 4.108 2.03 4.108 5.307v7.19h-2.912v-7.043c0-1.81-.66-3.107-2.373-3.107-1.588 0-2.519 1.223-2.519 3.034v7.116h-2.936v-12.179l.002.003zm13.035 6.164c0-3.67 2.225-6.554 5.477-6.554 1.689 0 2.96.709 3.767 1.883v-5.942h2.909v16.63h-2.909v-1.563c-.807 1.199-2.03 1.908-3.718 1.908-3.204 0-5.528-2.617-5.528-6.36l.002-.001zm6.138 4.059c1.883 0 3.106-1.664 3.106-4.208 0-2.543-1.223-4.108-3.106-4.108-1.884 0-3.107 1.59-3.107 4.108 0 2.52 1.248 4.208 3.107 4.208z",fill:h??"#560000"}),c.jsxRuntimeExports.jsx("path",{d:"m25.513 18.504c5.495 0 13.333-2.277 13.333-7.708 0-1.625-.78-3.09-2.147-4.293-1.138.65-2.017 1.626-2.505 2.863.585.487.878.942.878 1.43 0 2.603-5.658 3.935-9.561 3.935s-9.56-1.332-9.56-3.935c0-.488.292-.943.877-1.43a5.688 5.688 0 0 0 -2.505-2.863c-1.365 1.203-2.148 2.668-2.148 4.293 0 5.43 7.838 7.708 13.334 7.708zm13.983-18.408c-6.277 0-11.935 5.528-11.35 12.52 1.463-.162 2.895-.65 3.74-1.105 0-4.228 3.415-7.643 7.61-7.643 4.196 0 7.578 3.415 7.578 7.61 0 4.196-3.382 7.611-7.578 7.611a7.347 7.347 0 0 1 -3.74-1.04 16.376 16.376 0 0 1 -4.163 1.593c2.05 1.982 4.813 3.22 7.903 3.22 6.278 0 11.383-5.106 11.383-11.383.001-6.279-5.104-11.383-11.383-11.383zm-24.229 17.95a7.347 7.347 0 0 1 -3.74 1.041c-4.195 0-7.578-3.415-7.578-7.61 0-4.196 3.383-7.61 7.578-7.61 4.196 0 7.61 3.414 7.61 7.642.846.455 2.278.943 3.74 1.105.586-6.993-5.072-12.52-11.35-12.52-6.277-0-11.383 5.105-11.383 11.383 0 6.277 5.106 11.383 11.383 11.383 3.09 0 5.853-1.236 7.903-3.22a16.38 16.38 0 0 1 -4.162-1.593zm11.709-11.056a12.61 12.61 0 0 1 1.983-3.61c-1.886-.325-5.008-.325-6.896 0a12.61 12.61 0 0 1 1.983 3.61 21.996 21.996 0 0 1 2.928 0z",fill:"#da291c"})]})]})}exports.default=v;
@@ -0,0 +1,46 @@
1
+ import { j as c } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import l from "./utilities/scale.mjs";
3
+ function s({
4
+ fill: v,
5
+ ...h
6
+ }) {
7
+ const { width: m, height: i } = l({
8
+ originalWidth: 180,
9
+ originalHeight: 23,
10
+ width: h.width,
11
+ height: h.height
12
+ });
13
+ return /* @__PURE__ */ c.jsxs(
14
+ "svg",
15
+ {
16
+ fill: "none",
17
+ viewBox: "0 0 180 23",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ ...h,
20
+ width: m,
21
+ height: i,
22
+ children: [
23
+ /* @__PURE__ */ c.jsx("clipPath", { id: "a", children: /* @__PURE__ */ c.jsx("path", { d: "m0 0h180v22.957h-180z" }) }),
24
+ /* @__PURE__ */ c.jsxs("g", { clipPath: "url(#a)", fill: "none", children: [
25
+ /* @__PURE__ */ c.jsx(
26
+ "path",
27
+ {
28
+ d: "m59.325 15.261 2.421-1.564c.953 1.786 2.96 3.448 5.405 3.448 1.761 0 3.057-.685 3.057-2.225 0-3.986-9.83-1.15-9.83-7.582 0-2.714 2.175-4.792 5.625-4.792 2.738 0 5.184 1.247 6.48 3.496l-2.421 1.54c-.953-1.491-2.397-2.446-4.084-2.446-1.588 0-2.47.855-2.47 2.005 0 3.62 9.855.953 9.855 7.458 0 3.375-2.984 5.21-6.261 5.21s-6.603-1.884-7.777-4.55zm16.801.88v-6.603h-1.564v-2.224h.611c.71 0 .953-.293.953-1.126v-1.81h2.936v2.934h3.082l-.417 2.224h-2.665v6.262c0 1.003.368 1.54 1.296 1.54.563 0 1.174-.171 1.491-.441v2.397c-.44.244-1.125.49-2.03.49-2.397 0-3.693-1.15-3.693-3.645zm6.897-2.739c0-3.912 2.47-6.48 5.992-6.48 3.52 0 5.99 2.568 5.99 6.432s-2.445 6.48-5.99 6.48c-3.546 0-5.992-2.519-5.992-6.432zm5.992 3.962c1.81 0 3.033-1.54 3.033-3.986s-1.223-3.986-3.033-3.986-3.034 1.516-3.034 3.986 1.224 3.986 3.034 3.986zm8.461-10.052h2.836v2.421c.661-1.442 1.713-2.64 3.767-2.714v2.91c-2.641.097-3.669 1.956-3.669 4.548v5.014h-2.936v-12.18h.002zm7.582 6.261c0-4.035 2.398-6.651 5.943-6.651 4.034 0 5.771 3.301 5.477 7.14h-8.511c.196 2.374 1.37 3.548 3.204 3.548 1.589 0 2.715-.98 3.277-1.957l1.908 1.297c-1.004 1.688-2.887 2.86-5.307 2.86-3.815 0-5.991-2.47-5.991-6.237zm8.584-1.516c-.147-2.029-1.272-2.96-2.714-2.96-1.443 0-2.568.978-2.885 2.96h5.601zm8.069 5.648-.219 1.786h-2.519v-16.63h2.911v6.236c.88-1.369 2.324-2.175 3.913-2.175 3.009 0 5.306 2.47 5.306 6.31s-2.446 6.578-5.452 6.578c-1.689 0-3.107-.782-3.938-2.103zm3.277-.146c1.81 0 3.082-1.615 3.082-4.18 0-2.567-1.296-4.158-3.082-4.158s-3.106 1.614-3.106 4.157c0 2.544 1.272 4.181 3.106 4.181zm8.438-10.247h2.836v2.421c.66-1.442 1.712-2.64 3.766-2.714v2.91c-2.641.097-3.669 1.956-3.669 4.548v5.014h-2.936v-12.18h.003zm7.655 9.318c0-2.323 1.564-3.252 5.771-4.621 1.345-.465 1.713-.929 1.713-1.565 0-.83-.807-1.247-1.932-1.247-1.369 0-2.641.831-3.155 1.908l-2.078-1.37c.952-1.688 2.836-2.811 5.355-2.811s4.67 1.003 4.67 3.913v4.94c0 1.345.368 1.713 1.175 1.762v2.102c-2.054.147-3.277-.49-3.718-2.078a4.54 4.54 0 0 1 -3.962 2.276c-1.883 0-3.839-.734-3.839-3.204v-.004zm4.646 1.102c1.613 0 2.86-1.54 2.86-3.399v-1.345c-.367.268-.831.49-1.491.733-2.176.88-3.106 1.492-3.106 2.642 0 1.076.855 1.369 1.737 1.369zm8.975-10.42h2.936v1.54c.636-.88 1.786-1.86 3.694-1.86 2.86 0 4.108 2.03 4.108 5.307v7.19h-2.912v-7.043c0-1.81-.66-3.107-2.373-3.107-1.588 0-2.519 1.223-2.519 3.034v7.116h-2.936v-12.179l.002.003zm13.035 6.164c0-3.67 2.225-6.554 5.477-6.554 1.689 0 2.96.709 3.767 1.883v-5.942h2.909v16.63h-2.909v-1.563c-.807 1.199-2.03 1.908-3.718 1.908-3.204 0-5.528-2.617-5.528-6.36l.002-.001zm6.138 4.059c1.883 0 3.106-1.664 3.106-4.208 0-2.543-1.223-4.108-3.106-4.108-1.884 0-3.107 1.59-3.107 4.108 0 2.52 1.248 4.208 3.107 4.208z",
29
+ fill: v ?? "#560000"
30
+ }
31
+ ),
32
+ /* @__PURE__ */ c.jsx(
33
+ "path",
34
+ {
35
+ d: "m25.513 18.504c5.495 0 13.333-2.277 13.333-7.708 0-1.625-.78-3.09-2.147-4.293-1.138.65-2.017 1.626-2.505 2.863.585.487.878.942.878 1.43 0 2.603-5.658 3.935-9.561 3.935s-9.56-1.332-9.56-3.935c0-.488.292-.943.877-1.43a5.688 5.688 0 0 0 -2.505-2.863c-1.365 1.203-2.148 2.668-2.148 4.293 0 5.43 7.838 7.708 13.334 7.708zm13.983-18.408c-6.277 0-11.935 5.528-11.35 12.52 1.463-.162 2.895-.65 3.74-1.105 0-4.228 3.415-7.643 7.61-7.643 4.196 0 7.578 3.415 7.578 7.61 0 4.196-3.382 7.611-7.578 7.611a7.347 7.347 0 0 1 -3.74-1.04 16.376 16.376 0 0 1 -4.163 1.593c2.05 1.982 4.813 3.22 7.903 3.22 6.278 0 11.383-5.106 11.383-11.383.001-6.279-5.104-11.383-11.383-11.383zm-24.229 17.95a7.347 7.347 0 0 1 -3.74 1.041c-4.195 0-7.578-3.415-7.578-7.61 0-4.196 3.383-7.61 7.578-7.61 4.196 0 7.61 3.414 7.61 7.642.846.455 2.278.943 3.74 1.105.586-6.993-5.072-12.52-11.35-12.52-6.277-0-11.383 5.105-11.383 11.383 0 6.277 5.106 11.383 11.383 11.383 3.09 0 5.853-1.236 7.903-3.22a16.38 16.38 0 0 1 -4.162-1.593zm11.709-11.056a12.61 12.61 0 0 1 1.983-3.61c-1.886-.325-5.008-.325-6.896 0a12.61 12.61 0 0 1 1.983 3.61 21.996 21.996 0 0 1 2.928 0z",
36
+ fill: "#da291c"
37
+ }
38
+ )
39
+ ] })
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ export {
45
+ s as default
46
+ };
@@ -0,0 +1,19 @@
1
+ import { type HTMLProps, type ReactNode } from 'react';
2
+ export declare enum TextButtonVariant {
3
+ primary = "primary",
4
+ delete = "delete"
5
+ }
6
+ type BaseTextButtonProperties = Omit<HTMLProps<HTMLButtonElement>, 'children'> & {
7
+ readonly icon?: ReactNode;
8
+ readonly variant?: TextButtonVariant;
9
+ readonly tooltip?: string;
10
+ };
11
+ type TextButtonProperties = BaseTextButtonProperties & ({
12
+ children: ReactNode;
13
+ label?: string;
14
+ } | {
15
+ children?: never;
16
+ label: string;
17
+ });
18
+ export default function TextButton({ icon, variant, tooltip, className, children, label, ...properties }: TextButtonProperties): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -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"),m=require("./icon.js"),a=require("./flex.js"),p=require("./text.js"),d=require("./click-ripples.js"),r=require("./hover-gradient.js"),j=require("./button-tooltip.js"),k=require("./aria-text.js");var u=(t=>(t.primary="primary",t.delete="delete",t))(u||{});const R="kakadu-components-4017654514";function f({icon:t,variant:i="primary",tooltip:n,className:l,children:s,label:x,...c}){return e.jsxRuntimeExports.jsxs("button",{...c,type:"button",className:o.cx(p.textShadowStyles,"kakadu-components-738242177",t&&s?"kakadu-components-463345724":"kakadu-components-3866032606",i==="delete"&&R,l),children:[e.jsxRuntimeExports.jsxs(a.default,{direction:"row",gap:.5,alignment:a.FlexAlignment.center,children:[t?e.jsxRuntimeExports.jsx("div",{className:o.cx("kakadu-components-3184610208",s?"kakadu-components-602380047":"kakadu-components-233407571"),children:typeof t=="string"?e.jsxRuntimeExports.jsx(m.default,{width:14,height:14,type:t}):t}):null,s?e.jsxRuntimeExports.jsx("span",{className:"kakadu-components-331452291",children:s}):e.jsxRuntimeExports.jsx(k.default,{children:x})]}),e.jsxRuntimeExports.jsxs("span",{className:"kakadu-components-2754138515",children:[e.jsxRuntimeExports.jsx(d.default,{size:s?void 0:50}),e.jsxRuntimeExports.jsx(r.default,{size:s?void 0:50,className:r.normalBlendStyles}),n?e.jsxRuntimeExports.jsx(j.default,{label:n}):null]})]})}exports.TextButtonVariant=u;exports.default=f;
@@ -0,0 +1,36 @@
1
+ import { j as e } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { cx as a } from "@kuma-ui/core";
3
+ import l from "./icon.mjs";
4
+ import i, { FlexAlignment as d } from "./flex.mjs";
5
+ import { textShadowStyles as u } from "./text.mjs";
6
+ import k from "./click-ripples.mjs";
7
+ import x, { normalBlendStyles as c } from "./hover-gradient.mjs";
8
+ import f from "./button-tooltip.mjs";
9
+ import j from "./aria-text.mjs";
10
+ var y = /* @__PURE__ */ ((t) => (t.primary = "primary", t.delete = "delete", t))(y || {});
11
+ const g = "kakadu-components-4017654514";
12
+ function F({
13
+ icon: t,
14
+ variant: n = "primary",
15
+ tooltip: s,
16
+ className: m,
17
+ children: o,
18
+ label: r,
19
+ ...p
20
+ }) {
21
+ return /* @__PURE__ */ e.jsxs("button", { ...p, type: "button", className: a(u, "kakadu-components-738242177", t && o ? "kakadu-components-463345724" : "kakadu-components-3866032606", n === "delete" && g, m), children: [
22
+ /* @__PURE__ */ e.jsxs(i, { direction: "row", gap: 0.5, alignment: d.center, children: [
23
+ t ? /* @__PURE__ */ e.jsx("div", { className: a("kakadu-components-3184610208", o ? "kakadu-components-602380047" : "kakadu-components-233407571"), children: typeof t == "string" ? /* @__PURE__ */ e.jsx(l, { width: 14, height: 14, type: t }) : t }) : null,
24
+ o ? /* @__PURE__ */ e.jsx("span", { className: "kakadu-components-331452291", children: o }) : /* @__PURE__ */ e.jsx(j, { children: r })
25
+ ] }),
26
+ /* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-2754138515", children: [
27
+ /* @__PURE__ */ e.jsx(k, { size: o ? void 0 : 50 }),
28
+ /* @__PURE__ */ e.jsx(x, { size: o ? void 0 : 50, className: c }),
29
+ s ? /* @__PURE__ */ e.jsx(f, { label: s }) : null
30
+ ] })
31
+ ] });
32
+ }
33
+ export {
34
+ y as TextButtonVariant,
35
+ F as default
36
+ };
package/build/text.d.ts CHANGED
@@ -1 +1,11 @@
1
- export { Heading, Paragraph, Span, default as Text } from './components/text';
1
+ import { type ComponentRef, type Ref, type ElementType } from 'react';
2
+ import { type AtomProperties } from './atom';
3
+ export declare const textShadowStyles: string;
4
+ export declare function Heading<Type extends ElementType = 'h1'>({ reference, as, className, ...properties }: AtomProperties<Type> & {
5
+ readonly reference?: Ref<ComponentRef<Type>>;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare const spanStyles: string;
8
+ export declare function Paragraph<Type extends ElementType = 'p'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Span<Type extends ElementType = 'span'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
10
+ export default function Text<Type extends ElementType = 'div'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Hero<Type extends ElementType = 'div'>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
package/build/text.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./text-BO7Qt7Lj.js");exports.Heading=e.Heading;exports.Paragraph=e.Paragraph;exports.Span=e.Span;exports.Text=e.Text;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./jsx-runtime-BB_1_6y_.js"),a=require("@kuma-ui/core"),l=require("./theme.js"),o=require("./atom.js"),u="kakadu-components-1538322784",c="kakadu-components-739732526";function d({reference:e,as:t,className:s,...x}){return n.jsxRuntimeExports.jsx(o.default,{reference:e,as:t??"h1",...x,className:a.cx(l.overflowProtectionStyles,u,"kakadu-components-3101899972",c,s)})}const r=a.cx("kakadu-components-1923397960",u,c);function m({as:e,className:t,...s}){return n.jsxRuntimeExports.jsx(o.default,{as:e??"p",...s,className:a.cx(r,"kakadu-components-621160204",t)})}function p({as:e,className:t,...s}){return n.jsxRuntimeExports.jsx(o.default,{as:e??"span",...s,className:a.cx(r,t)})}function i({as:e,className:t,...s}){return n.jsxRuntimeExports.jsx(o.default,{as:e??"div",...s,className:a.cx("kakadu-components-2957739157",t)})}function k({as:e,className:t,...s}){return n.jsxRuntimeExports.jsx(i,{as:e??"div",...s,className:a.cx("kakadu-components-1516646989",t)})}exports.Heading=d;exports.Hero=k;exports.Paragraph=m;exports.Span=p;exports.default=i;exports.spanStyles=r;exports.textShadowStyles=u;
package/build/text.mjs CHANGED
@@ -1,7 +1,51 @@
1
- import { H as s, P as e, S as p, T as g } from "./text-ZYVNxqac.mjs";
1
+ import { j as o } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { cx as n } from "@kuma-ui/core";
3
+ import { overflowProtectionStyles as p } from "./theme.mjs";
4
+ import e from "./atom.mjs";
5
+ const r = "kakadu-components-1538322784", c = "kakadu-components-739732526";
6
+ function l({
7
+ reference: t,
8
+ as: a,
9
+ className: s,
10
+ ...u
11
+ }) {
12
+ return /* @__PURE__ */ o.jsx(e, { reference: t, as: a ?? "h1", ...u, className: n(p, r, "kakadu-components-3101899972", c, s) });
13
+ }
14
+ const m = n("kakadu-components-1923397960", r, c);
15
+ function j({
16
+ as: t,
17
+ className: a,
18
+ ...s
19
+ }) {
20
+ return /* @__PURE__ */ o.jsx(e, { as: t ?? "p", ...s, className: n(m, "kakadu-components-621160204", a) });
21
+ }
22
+ function S({
23
+ as: t,
24
+ className: a,
25
+ ...s
26
+ }) {
27
+ return /* @__PURE__ */ o.jsx(e, { as: t ?? "span", ...s, className: n(m, a) });
28
+ }
29
+ function i({
30
+ as: t,
31
+ className: a,
32
+ ...s
33
+ }) {
34
+ return /* @__PURE__ */ o.jsx(e, { as: t ?? "div", ...s, className: n("kakadu-components-2957739157", a) });
35
+ }
36
+ function N({
37
+ as: t,
38
+ className: a,
39
+ ...s
40
+ }) {
41
+ return /* @__PURE__ */ o.jsx(i, { as: t ?? "div", ...s, className: n("kakadu-components-1516646989", a) });
42
+ }
2
43
  export {
3
- s as Heading,
4
- e as Paragraph,
5
- p as Span,
6
- g as Text
44
+ l as Heading,
45
+ N as Hero,
46
+ j as Paragraph,
47
+ S as Span,
48
+ i as default,
49
+ m as spanStyles,
50
+ r as textShadowStyles
7
51
  };
@@ -0,0 +1,11 @@
1
+ import { type RefObject } from 'react';
2
+ export declare const themePreferences: string[];
3
+ type ThemePreference = (typeof themePreferences)[number];
4
+ type ThemeElement = HTMLElement | RefObject<HTMLElement | null>;
5
+ export declare function useTheme(element?: ThemeElement): string;
6
+ export declare function useIsLightMode(element?: ThemeElement): boolean;
7
+ export declare function useIsDarkMode(element?: ThemeElement): boolean;
8
+ export declare function getThemePreference(): string;
9
+ export declare function setThemePreference(preference: ThemePreference): void;
10
+ export default function ThemeSetter(): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./jsx-runtime-BB_1_6y_.js"),m=require("react"),o=["system","light","dark"];function u(e){const[t,r]=m.useState("light");return m.useEffect(()=>{const n=e&&"current"in e?e.current:e,s=(n==null?void 0:n.closest("[data-theme]"))??document.documentElement,a=()=>{s.dataset.theme&&r(s.dataset.theme)},c=new MutationObserver(i=>{for(const h of i)h.type==="attributes"&&a()});return a(),c.observe(s,{attributes:!0}),c.observe(document.documentElement,{attributes:!0}),()=>{c.disconnect()}},[e]),t}function l(e){return u(e)==="light"}function g(e){return u(e)==="dark"}const P=`
2
+ try {
3
+ var themePreference = window.localStorage.getItem("theme-preference") || "system";
4
+
5
+ if (themePreference) {
6
+ document.documentElement.setAttribute("data-theme-preference", themePreference);
7
+ }
8
+
9
+ var query = window.matchMedia("(prefers-color-scheme: dark)");
10
+
11
+ document.documentElement.setAttribute(
12
+ "data-theme",
13
+ (themePreference === "system")
14
+ ? query.matches ? "dark" : "light"
15
+ : themePreference
16
+ );
17
+ } catch (error) {
18
+ console.error(error);
19
+ }
20
+ `.trim().replaceAll(/\s+/g," ");function d(){const e=window.localStorage.getItem("theme-preference")??"system";return o.includes(e)?e:"system"}function y(e){const t=o.includes(e)?e:"system";if(window.localStorage.setItem("theme-preference",t),document.documentElement.dataset.themePreference=t,t==="system"){const r=window.matchMedia("(prefers-color-scheme: dark)");document.documentElement.dataset.theme=r.matches?"dark":"light"}else document.documentElement.dataset.theme=t}function E(){return m.useEffect(()=>{const e=d();e&&(document.documentElement.dataset.themePreference=e);const t=window.matchMedia("(prefers-color-scheme: dark)");e==="system"?document.documentElement.dataset.theme=t.matches?"dark":"light":document.documentElement.dataset.theme=e;const r=n=>{document.documentElement.dataset.themePreference==="system"&&(document.documentElement.dataset.theme=n.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[]),f.jsxRuntimeExports.jsx("script",{dangerouslySetInnerHTML:{__html:P},id:"theme-setter"})}exports.default=E;exports.getThemePreference=d;exports.setThemePreference=y;exports.themePreferences=o;exports.useIsDarkMode=g;exports.useIsLightMode=l;exports.useTheme=u;
@@ -0,0 +1,79 @@
1
+ import { j as i } from "./jsx-runtime-B4hRZ52C.mjs";
2
+ import { useEffect as o, useState as f } from "react";
3
+ const a = ["system", "light", "dark"];
4
+ function d(e) {
5
+ const [t, r] = f("light");
6
+ return o(() => {
7
+ const n = e && "current" in e ? e.current : e, s = (n == null ? void 0 : n.closest("[data-theme]")) ?? document.documentElement, c = () => {
8
+ s.dataset.theme && r(s.dataset.theme);
9
+ }, m = new MutationObserver((u) => {
10
+ for (const h of u)
11
+ h.type === "attributes" && c();
12
+ });
13
+ return c(), m.observe(s, { attributes: !0 }), m.observe(document.documentElement, { attributes: !0 }), () => {
14
+ m.disconnect();
15
+ };
16
+ }, [e]), t;
17
+ }
18
+ function E(e) {
19
+ return d(e) === "light";
20
+ }
21
+ function w(e) {
22
+ return d(e) === "dark";
23
+ }
24
+ const l = `
25
+ try {
26
+ var themePreference = window.localStorage.getItem("theme-preference") || "system";
27
+
28
+ if (themePreference) {
29
+ document.documentElement.setAttribute("data-theme-preference", themePreference);
30
+ }
31
+
32
+ var query = window.matchMedia("(prefers-color-scheme: dark)");
33
+
34
+ document.documentElement.setAttribute(
35
+ "data-theme",
36
+ (themePreference === "system")
37
+ ? query.matches ? "dark" : "light"
38
+ : themePreference
39
+ );
40
+ } catch (error) {
41
+ console.error(error);
42
+ }
43
+ `.trim().replaceAll(/\s+/g, " ");
44
+ function g() {
45
+ const e = window.localStorage.getItem("theme-preference") ?? "system";
46
+ return a.includes(e) ? e : "system";
47
+ }
48
+ function P(e) {
49
+ const t = a.includes(e) ? e : "system";
50
+ if (window.localStorage.setItem("theme-preference", t), document.documentElement.dataset.themePreference = t, t === "system") {
51
+ const r = window.matchMedia("(prefers-color-scheme: dark)");
52
+ document.documentElement.dataset.theme = r.matches ? "dark" : "light";
53
+ } else
54
+ document.documentElement.dataset.theme = t;
55
+ }
56
+ function b() {
57
+ return o(() => {
58
+ const e = g();
59
+ e && (document.documentElement.dataset.themePreference = e);
60
+ const t = window.matchMedia("(prefers-color-scheme: dark)");
61
+ e === "system" ? document.documentElement.dataset.theme = t.matches ? "dark" : "light" : document.documentElement.dataset.theme = e;
62
+ const r = (n) => {
63
+ document.documentElement.dataset.themePreference === "system" && (document.documentElement.dataset.theme = n.matches ? "dark" : "light");
64
+ };
65
+ return t.addEventListener("change", r), () => {
66
+ t.removeEventListener("change", r);
67
+ };
68
+ }, []), /* eslint-disable-next-line react/no-danger */
69
+ /* @__PURE__ */ i.jsx("script", { dangerouslySetInnerHTML: { __html: l }, id: "theme-setter" });
70
+ }
71
+ export {
72
+ b as default,
73
+ g as getThemePreference,
74
+ P as setThemePreference,
75
+ a as themePreferences,
76
+ w as useIsDarkMode,
77
+ E as useIsLightMode,
78
+ d as useTheme
79
+ };
package/build/theme.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export declare const lightBackgroundColor = "#f8fafc";
2
+ export declare const darkBackgroundColor = "#0c0d12";
1
3
  export declare const greenColor = "#4ca486";
2
4
  export declare const font: {
3
5
  family: string;
@@ -10,7 +12,10 @@ export declare const font: {
10
12
  crossorigin: boolean;
11
13
  })[];
12
14
  };
15
+ export declare function FontFamilyHeadLink(): import("react/jsx-runtime").JSX.Element;
13
16
  declare const theme: string;
14
17
  export default theme;
15
18
  export declare const overflowProtectionStyles: string;
16
19
  export declare const buttonResetStyles: string;
20
+ export declare const effectStyles: string;
21
+ export declare const nonInteractiveEffectStyles: string;
package/build/theme.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="#4ca486",o={family:"DM Sans, 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}]},e="kakadu-components-417269694",s="kakadu-components-4178476647",n="kakadu-components-216224454";exports.buttonResetStyles=n;exports.default=e;exports.font=o;exports.greenColor=t;exports.overflowProtectionStyles=s;
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,7 @@
1
- const t = "#4ca486", o = {
2
- family: "DM Sans, sans-serif",
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 = {
4
+ family: "Inter, sans-serif",
3
5
  stylesheet: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
4
6
  preconnect: [{
5
7
  url: "https://fonts.googleapis.com"
@@ -7,11 +9,26 @@ const t = "#4ca486", o = {
7
9
  url: "https://fonts.gstatic.com",
8
10
  crossorigin: !0
9
11
  }]
10
- }, s = "kakadu-components-417269694", e = "kakadu-components-4178476647", n = "kakadu-components-216224454";
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");
11
23
  export {
12
- n as buttonResetStyles,
13
- s as default,
14
- o as font,
15
- t as greenColor,
16
- e 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
17
34
  };
@@ -0,0 +1 @@
1
+ export default function copyToClipboard(text: string): Promise<void>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});async function a(t){try{await window.navigator.clipboard.writeText(t);return}catch{}const e=document.createElement("textarea");e.style.background="transparent",e.style.width="1px",e.style.height="1px",e.style.fontSize="12pt",e.style.padding="0",e.style.border="none",e.style.outline="none",e.style.appearance="none",e.style.position="fixed",e.style.bottom="0",e.style.right="0",e.setAttribute("readonly","false"),e.setAttribute("contenteditable","true"),e.setAttribute("aria-hidden","true"),document.body.append(e),e.value=t;try{e.select();try{const o=document.createRange();o.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(o)),e.setSelectionRange(0,t.length)}catch{}if(!document.execCommand("copy"))throw new Error("Unable to copy text.")}catch{throw new Error("Could not copy text.")}}exports.default=a;
@@ -0,0 +1,26 @@
1
+ async function r(t) {
2
+ try {
3
+ await window.navigator.clipboard.writeText(t);
4
+ return;
5
+ } catch {
6
+ }
7
+ const e = document.createElement("textarea");
8
+ e.style.background = "transparent", e.style.width = "1px", e.style.height = "1px", e.style.fontSize = "12pt", e.style.padding = "0", e.style.border = "none", e.style.outline = "none", e.style.appearance = "none", e.style.position = "fixed", e.style.bottom = "0", e.style.right = "0", e.setAttribute("readonly", "false"), e.setAttribute("contenteditable", "true"), e.setAttribute("aria-hidden", "true"), document.body.append(e), e.value = t;
9
+ try {
10
+ e.select();
11
+ try {
12
+ const o = document.createRange();
13
+ o.selectNodeContents(e);
14
+ const n = window.getSelection();
15
+ n && (n.removeAllRanges(), n.addRange(o)), e.setSelectionRange(0, t.length);
16
+ } catch {
17
+ }
18
+ if (!document.execCommand("copy"))
19
+ throw new Error("Unable to copy text.");
20
+ } catch {
21
+ throw new Error("Could not copy text.");
22
+ }
23
+ }
24
+ export {
25
+ r as default
26
+ };
@@ -0,0 +1 @@
1
+ export default function generateRandomId(): string;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a=o.length;function n(){let t="",e=Math.round(Number.parseInt(`${Date.now()}${Math.floor(Math.random()*100)}`,10)*Math.random());for(;e>0;){const r=e%a;t=o[Number(r)]+t,e=Math.floor(e/a)}return`${t}${Math.floor(Math.random()*100)}`}exports.default=n;