@arthurzakharov/ui-kit 1.5.2 → 1.5.4

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 (281) hide show
  1. package/dist/animations/fade-grow/fade-grow.component.d.ts +2 -0
  2. package/dist/animations/{animation-fade-grow/animation-fade-grow.component.js → fade-grow/fade-grow.component.js} +9 -9
  3. package/dist/animations/fade-grow/index.d.ts +1 -0
  4. package/dist/animations/fade-grow/index.js +4 -0
  5. package/dist/animations/fade-scale/fade-scale.component.d.ts +2 -0
  6. package/dist/animations/{animation-fade-scale/animation-fade-scale.component.js → fade-scale/fade-scale.component.js} +10 -10
  7. package/dist/animations/fade-scale/index.d.ts +1 -0
  8. package/dist/animations/fade-scale/index.js +4 -0
  9. package/dist/animations/fade-slide/fade-slide.component.d.ts +6 -0
  10. package/dist/animations/{animation-fade-slide/animation-fade-slide.component.js → fade-slide/fade-slide.component.js} +8 -8
  11. package/dist/animations/fade-slide/index.d.ts +1 -0
  12. package/dist/animations/fade-slide/index.js +4 -0
  13. package/dist/animations/rotate/index.d.ts +1 -0
  14. package/dist/animations/rotate/index.js +4 -0
  15. package/dist/animations/{animation-rotate/animation-rotate.component.d.ts → rotate/rotate.component.d.ts} +2 -2
  16. package/dist/animations/{animation-rotate/animation-rotate.component.js → rotate/rotate.component.js} +6 -6
  17. package/dist/animations/utils/default-props.d.ts +1 -1
  18. package/dist/assets/box-5bAcfszB.css +1 -0
  19. package/dist/assets/button-card-B-nlEbJU.css +1 -0
  20. package/dist/assets/button-radio-CPeNePW2.css +1 -0
  21. package/dist/assets/button-text-BKSERdhL.css +1 -0
  22. package/dist/assets/caption-B28SGRY1.css +1 -0
  23. package/dist/assets/card-image-LY9zvE8g.css +1 -0
  24. package/dist/assets/card-text-sR2uSJyo.css +1 -0
  25. package/dist/assets/checkbox-BzL5bg8o.css +1 -0
  26. package/dist/assets/choice-CcUo4Zvq.css +1 -0
  27. package/dist/assets/dropdown-DLhCAHEx.css +1 -0
  28. package/dist/assets/error-message-CQHYhXbt.css +1 -0
  29. package/dist/assets/hidden-input-DHJQHUKd.css +1 -0
  30. package/dist/assets/input-D66hMzHc.css +1 -0
  31. package/dist/assets/label-BKXQlPJi.css +1 -0
  32. package/dist/assets/radio-VoXwCoAp.css +1 -0
  33. package/dist/assets/radio-label-CZHWBUUt.css +1 -0
  34. package/dist/assets/signature-D9gYlpze.css +1 -0
  35. package/dist/assets/status-Cx_6Ibai.css +1 -0
  36. package/dist/assets/text-area-Dgc2jHSx.css +1 -0
  37. package/dist/assets/text-field-Bp4Ra0yN.css +1 -0
  38. package/dist/components/accordion-table/accordion-table.component.js +18 -18
  39. package/dist/components/bottom-bar/bottom-bar.component.d.ts +1 -1
  40. package/dist/components/bottom-bar/bottom-bar.component.js +25 -27
  41. package/dist/components/dialog/dialog.component.js +19108 -60
  42. package/dist/components/dialog-article/dialog-article.component.d.ts +0 -4
  43. package/dist/components/dialog-article/dialog-article.component.js +20 -20
  44. package/dist/components/footer/footer.component.d.ts +1 -1
  45. package/dist/components/footer/index.d.ts +1 -1
  46. package/dist/components/main-attachment/main-attachment.component.js +7 -7
  47. package/dist/components/payment/components/glass/glass.component.js +2 -2
  48. package/dist/components/sidebar/sidebar.component.d.ts +1 -1
  49. package/dist/components/sidebar/sidebar.component.js +14 -14
  50. package/dist/components/signature/signature.component.d.ts +1 -1
  51. package/dist/components/signature/signature.component.js +848 -783
  52. package/dist/components/text/text.component.d.ts +2 -2
  53. package/dist/components/user-panel/user-panel.component.js +13 -13
  54. package/dist/controls/box/box.component.d.ts +10 -0
  55. package/dist/controls/box/box.component.js +40 -0
  56. package/dist/controls/box/index.d.ts +1 -0
  57. package/dist/controls/box/index.js +4 -0
  58. package/dist/controls/{control-button/control-button.component.d.ts → button/button.component.d.ts} +5 -4
  59. package/dist/controls/button/button.component.js +82 -0
  60. package/dist/controls/button/index.d.ts +1 -0
  61. package/dist/controls/button/index.js +4 -0
  62. package/dist/controls/{control-button-card/control-button-card.component.d.ts → button-card/button-card.component.d.ts} +5 -4
  63. package/dist/controls/button-card/button-card.component.js +79 -0
  64. package/dist/controls/button-card/index.d.ts +1 -0
  65. package/dist/controls/button-card/index.js +4 -0
  66. package/dist/controls/button-radio/button-radio.component.d.ts +20 -0
  67. package/dist/controls/button-radio/button-radio.component.js +83 -0
  68. package/dist/controls/button-radio/index.d.ts +1 -0
  69. package/dist/controls/button-radio/index.js +4 -0
  70. package/dist/controls/{control-button-text/control-button-text.component.d.ts → button-text/button-text.component.d.ts} +4 -4
  71. package/dist/controls/button-text/button-text.component.js +87 -0
  72. package/dist/controls/button-text/index.d.ts +1 -0
  73. package/dist/controls/button-text/index.js +4 -0
  74. package/dist/controls/caption/caption.component.d.ts +10 -0
  75. package/dist/controls/caption/caption.component.js +48 -0
  76. package/dist/controls/caption/index.d.ts +1 -0
  77. package/dist/controls/caption/index.js +4 -0
  78. package/dist/controls/card-image/card-image.component.d.ts +10 -0
  79. package/dist/controls/card-image/card-image.component.js +81 -0
  80. package/dist/controls/card-image/index.d.ts +1 -0
  81. package/dist/controls/card-image/index.js +4 -0
  82. package/dist/controls/card-text/card-text.component.d.ts +9 -0
  83. package/dist/controls/card-text/card-text.component.js +75 -0
  84. package/dist/controls/card-text/index.d.ts +1 -0
  85. package/dist/controls/card-text/index.js +4 -0
  86. package/dist/controls/checkbox/checkbox.component.d.ts +10 -0
  87. package/dist/controls/checkbox/checkbox.component.js +103 -0
  88. package/dist/controls/checkbox/index.d.ts +1 -0
  89. package/dist/controls/checkbox/index.js +4 -0
  90. package/dist/controls/choice/choice.component.d.ts +12 -0
  91. package/dist/controls/choice/choice.component.js +65 -0
  92. package/dist/controls/choice/index.d.ts +1 -0
  93. package/dist/controls/choice/index.js +4 -0
  94. package/dist/controls/{control-dropdown/control-dropdown.component.d.ts → dropdown/dropdown.component.d.ts} +3 -3
  95. package/dist/controls/dropdown/dropdown.component.js +127 -0
  96. package/dist/controls/dropdown/index.d.ts +1 -0
  97. package/dist/controls/dropdown/index.js +4 -0
  98. package/dist/controls/error-message/error-message.component.d.ts +5 -0
  99. package/dist/controls/error-message/error-message.component.js +22 -0
  100. package/dist/controls/error-message/index.d.ts +1 -0
  101. package/dist/controls/error-message/index.js +4 -0
  102. package/dist/controls/hidden-input/hidden-input.component.d.ts +15 -0
  103. package/dist/controls/hidden-input/hidden-input.component.js +38 -0
  104. package/dist/controls/hidden-input/index.d.ts +1 -0
  105. package/dist/controls/hidden-input/index.js +4 -0
  106. package/dist/controls/hooks/index.d.ts +1 -0
  107. package/dist/controls/hooks/index.js +3 -1
  108. package/dist/controls/hooks/use-choice/use-choice.hook.d.ts +2 -2
  109. package/dist/controls/hooks/use-control-interaction/index.d.ts +1 -0
  110. package/dist/controls/hooks/use-control-interaction/index.js +4 -0
  111. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.d.ts +7 -0
  112. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.js +25 -0
  113. package/dist/controls/index.d.ts +22 -0
  114. package/dist/controls/index.js +50 -0
  115. package/dist/controls/input/index.d.ts +1 -0
  116. package/dist/controls/input/index.js +4 -0
  117. package/dist/controls/input/input.component.d.ts +9 -0
  118. package/dist/controls/input/input.component.js +143 -0
  119. package/dist/controls/input/input.utils.d.ts +10 -0
  120. package/dist/controls/input/input.utils.js +24 -0
  121. package/dist/controls/label/index.d.ts +1 -0
  122. package/dist/controls/label/index.js +4 -0
  123. package/dist/controls/label/label.component.d.ts +8 -0
  124. package/dist/controls/label/label.component.js +33 -0
  125. package/dist/controls/radio/index.d.ts +1 -0
  126. package/dist/controls/radio/index.js +4 -0
  127. package/dist/controls/radio/radio.component.d.ts +12 -0
  128. package/dist/controls/radio/radio.component.js +109 -0
  129. package/dist/controls/radio-label/index.d.ts +1 -0
  130. package/dist/controls/radio-label/index.js +4 -0
  131. package/dist/controls/radio-label/radio-label.component.d.ts +19 -0
  132. package/dist/controls/radio-label/radio-label.component.js +49 -0
  133. package/dist/controls/status/index.d.ts +1 -0
  134. package/dist/controls/status/index.js +4 -0
  135. package/dist/controls/status/status.component.d.ts +6 -0
  136. package/dist/controls/status/status.component.js +36 -0
  137. package/dist/controls/text-area/index.d.ts +1 -0
  138. package/dist/controls/text-area/index.js +4 -0
  139. package/dist/controls/text-area/text-area.component.d.ts +8 -0
  140. package/dist/controls/text-area/text-area.component.js +62 -0
  141. package/dist/controls/text-field/index.d.ts +1 -0
  142. package/dist/controls/text-field/index.js +4 -0
  143. package/dist/controls/text-field/text-field.component.d.ts +10 -0
  144. package/dist/controls/text-field/text-field.component.js +100 -0
  145. package/dist/controls/utils/functions/functions.util.d.ts +0 -1
  146. package/dist/controls/utils/functions/functions.util.js +3 -14
  147. package/dist/controls/utils/functions/index.js +3 -4
  148. package/dist/controls/utils/index.js +3 -4
  149. package/dist/controls/utils/types.d.ts +8 -5
  150. package/dist/{index-PfP8s0Qf.js → index-CPvYWadf.js} +1 -1
  151. package/dist/main.d.ts +26 -25
  152. package/dist/main.js +100 -98
  153. package/dist/{proxy-Cx6n7mT2.js → proxy-CmTphuYR.js} +1762 -1717
  154. package/dist/utils/converter/index.d.ts +1 -0
  155. package/dist/utils/converter/index.js +4 -0
  156. package/dist/utils/functions/functions.util.js +10 -10
  157. package/dist/utils/story/grey-box/grey-box.component.d.ts +9 -0
  158. package/dist/utils/story/grey-box/grey-box.component.js +24 -0
  159. package/dist/utils/story/grey-box/index.d.ts +1 -0
  160. package/dist/utils/story/grey-box/index.js +4 -0
  161. package/dist/utils/story/size-box/index.d.ts +1 -0
  162. package/dist/utils/story/size-box/index.js +4 -0
  163. package/dist/utils/story/size-box/size-box.component.d.ts +6 -0
  164. package/dist/utils/story/size-box/size-box.component.js +5 -0
  165. package/package.json +10 -18
  166. package/dist/_commonjsHelpers-CqEciG1_.js +0 -31
  167. package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +0 -2
  168. package/dist/animations/animation-fade-grow/index.d.ts +0 -1
  169. package/dist/animations/animation-fade-grow/index.js +0 -4
  170. package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +0 -2
  171. package/dist/animations/animation-fade-scale/index.d.ts +0 -1
  172. package/dist/animations/animation-fade-scale/index.js +0 -4
  173. package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +0 -6
  174. package/dist/animations/animation-fade-slide/index.d.ts +0 -1
  175. package/dist/animations/animation-fade-slide/index.js +0 -4
  176. package/dist/animations/animation-rotate/index.d.ts +0 -1
  177. package/dist/animations/animation-rotate/index.js +0 -4
  178. package/dist/assets/control-box-Dx-QKPgf.css +0 -1
  179. package/dist/assets/control-button-card-Cb8_vJbQ.css +0 -1
  180. package/dist/assets/control-button-radio-BodzD0rU.css +0 -1
  181. package/dist/assets/control-button-text-BbE_5ebO.css +0 -1
  182. package/dist/assets/control-card-image-BYT3bzTE.css +0 -1
  183. package/dist/assets/control-card-text-Cvv3bL2p.css +0 -1
  184. package/dist/assets/control-checkbox-uLtXjmYN.css +0 -1
  185. package/dist/assets/control-choice-BAHN-VTm.css +0 -1
  186. package/dist/assets/control-dropdown-DaS5KsvG.css +0 -1
  187. package/dist/assets/control-error-message-CKgqmo1U.css +0 -1
  188. package/dist/assets/control-hidden-input-BhMdNmnP.css +0 -1
  189. package/dist/assets/control-input-nR0XQHHp.css +0 -1
  190. package/dist/assets/control-label-C8pjaWEU.css +0 -1
  191. package/dist/assets/control-radio-Bo1rvcg2.css +0 -1
  192. package/dist/assets/control-radio-label-CgZ-FNj0.css +0 -1
  193. package/dist/assets/control-radio-text-S7MEO4a2.css +0 -1
  194. package/dist/assets/control-status-DPNvkGlM.css +0 -1
  195. package/dist/assets/control-text-n-qi7e2Y.css +0 -1
  196. package/dist/assets/control-textarea-B6gWlJs3.css +0 -1
  197. package/dist/assets/signature-EuXLu4YT.css +0 -1
  198. package/dist/controls/control-box/control-box.component.d.ts +0 -14
  199. package/dist/controls/control-box/control-box.component.js +0 -33
  200. package/dist/controls/control-box/index.d.ts +0 -2
  201. package/dist/controls/control-box/index.js +0 -4
  202. package/dist/controls/control-button/control-button.component.js +0 -84
  203. package/dist/controls/control-button/index.d.ts +0 -2
  204. package/dist/controls/control-button/index.js +0 -4
  205. package/dist/controls/control-button-card/control-button-card.component.js +0 -65
  206. package/dist/controls/control-button-card/index.d.ts +0 -2
  207. package/dist/controls/control-button-card/index.js +0 -4
  208. package/dist/controls/control-button-radio/control-button-radio.component.d.ts +0 -19
  209. package/dist/controls/control-button-radio/control-button-radio.component.js +0 -69
  210. package/dist/controls/control-button-radio/index.d.ts +0 -2
  211. package/dist/controls/control-button-radio/index.js +0 -4
  212. package/dist/controls/control-button-text/control-button-text.component.js +0 -87
  213. package/dist/controls/control-button-text/index.d.ts +0 -2
  214. package/dist/controls/control-button-text/index.js +0 -4
  215. package/dist/controls/control-card-image/control-card-image.component.d.ts +0 -8
  216. package/dist/controls/control-card-image/control-card-image.component.js +0 -53
  217. package/dist/controls/control-card-image/index.d.ts +0 -2
  218. package/dist/controls/control-card-image/index.js +0 -4
  219. package/dist/controls/control-card-text/control-card-text.component.d.ts +0 -7
  220. package/dist/controls/control-card-text/control-card-text.component.js +0 -48
  221. package/dist/controls/control-card-text/index.d.ts +0 -2
  222. package/dist/controls/control-card-text/index.js +0 -4
  223. package/dist/controls/control-checkbox/control-checkbox.component.d.ts +0 -11
  224. package/dist/controls/control-checkbox/control-checkbox.component.js +0 -97
  225. package/dist/controls/control-checkbox/index.d.ts +0 -2
  226. package/dist/controls/control-checkbox/index.js +0 -4
  227. package/dist/controls/control-choice/control-choice.component.d.ts +0 -12
  228. package/dist/controls/control-choice/control-choice.component.js +0 -64
  229. package/dist/controls/control-choice/index.d.ts +0 -2
  230. package/dist/controls/control-choice/index.js +0 -4
  231. package/dist/controls/control-dropdown/control-dropdown.component.js +0 -106
  232. package/dist/controls/control-dropdown/index.d.ts +0 -2
  233. package/dist/controls/control-dropdown/index.js +0 -4
  234. package/dist/controls/control-error-message/control-error-message.component.d.ts +0 -7
  235. package/dist/controls/control-error-message/control-error-message.component.js +0 -16
  236. package/dist/controls/control-error-message/index.d.ts +0 -1
  237. package/dist/controls/control-error-message/index.js +0 -4
  238. package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +0 -15
  239. package/dist/controls/control-hidden-input/control-hidden-input.component.js +0 -41
  240. package/dist/controls/control-hidden-input/index.d.ts +0 -2
  241. package/dist/controls/control-hidden-input/index.js +0 -4
  242. package/dist/controls/control-input/control-input.component.d.ts +0 -11
  243. package/dist/controls/control-input/control-input.component.js +0 -973
  244. package/dist/controls/control-input/index.d.ts +0 -2
  245. package/dist/controls/control-input/index.js +0 -4
  246. package/dist/controls/control-label/control-label.component.d.ts +0 -13
  247. package/dist/controls/control-label/control-label.component.js +0 -25
  248. package/dist/controls/control-label/index.d.ts +0 -1
  249. package/dist/controls/control-label/index.js +0 -4
  250. package/dist/controls/control-radio/control-radio.component.d.ts +0 -14
  251. package/dist/controls/control-radio/control-radio.component.js +0 -79
  252. package/dist/controls/control-radio/index.d.ts +0 -2
  253. package/dist/controls/control-radio/index.js +0 -4
  254. package/dist/controls/control-radio-label/control-radio-label.component.d.ts +0 -22
  255. package/dist/controls/control-radio-label/control-radio-label.component.js +0 -39
  256. package/dist/controls/control-radio-label/index.d.ts +0 -1
  257. package/dist/controls/control-radio-label/index.js +0 -4
  258. package/dist/controls/control-radio-text/control-radio-text.component.d.ts +0 -10
  259. package/dist/controls/control-radio-text/control-radio-text.component.js +0 -45
  260. package/dist/controls/control-radio-text/index.d.ts +0 -2
  261. package/dist/controls/control-radio-text/index.js +0 -4
  262. package/dist/controls/control-status/control-status.component.d.ts +0 -11
  263. package/dist/controls/control-status/control-status.component.js +0 -42
  264. package/dist/controls/control-status/index.d.ts +0 -1
  265. package/dist/controls/control-status/index.js +0 -4
  266. package/dist/controls/control-text/control-text.component.d.ts +0 -11
  267. package/dist/controls/control-text/control-text.component.js +0 -70
  268. package/dist/controls/control-text/index.d.ts +0 -2
  269. package/dist/controls/control-text/index.js +0 -4
  270. package/dist/controls/control-textarea/control-textarea.component.d.ts +0 -15
  271. package/dist/controls/control-textarea/control-textarea.component.js +0 -63
  272. package/dist/controls/control-textarea/index.d.ts +0 -1
  273. package/dist/controls/control-textarea/index.js +0 -4
  274. package/dist/index-D3EuHLHH.js +0 -19053
  275. /package/dist/animations/{hook → hooks}/index.d.ts +0 -0
  276. /package/dist/animations/{hook → hooks}/index.js +0 -0
  277. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.d.ts +0 -0
  278. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.js +0 -0
  279. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +0 -0
  280. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.js +0 -0
  281. /package/dist/assets/{control-button-Tzg6F5Dp.css → button-Tzg6F5Dp.css} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, PropsWithChildren } from 'react';
2
2
  import { Base, FontAlign, FontColor, FontSize, FontWeight, TagNames, TextPreset } from '../../utils/types';
3
- interface TextProps extends HTMLAttributes<HTMLElementTagNameMap>, PropsWithChildren<Base> {
3
+ interface TextFieldProps extends HTMLAttributes<HTMLElementTagNameMap>, PropsWithChildren<Base> {
4
4
  preset?: TextPreset;
5
5
  tag?: TagNames;
6
6
  lined?: boolean;
@@ -9,5 +9,5 @@ interface TextProps extends HTMLAttributes<HTMLElementTagNameMap>, PropsWithChil
9
9
  size?: FontSize;
10
10
  color?: FontColor;
11
11
  }
12
- export declare const Text: ({ children, className, preset, lined, align, tag, weight, size, color, ...rest }: TextProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Text: ({ children, className, preset, lined, align, tag, weight, size, color, ...rest }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -1,34 +1,34 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { Pencil as m } from "lucide-react";
3
3
  import p from "clsx";
4
- import { ControlButtonText as f } from "../../controls/control-button-text/control-button-text.component.js";
5
- import { baseProps as s } from "../../utils/functions/functions.util.js";
6
- import '../../assets/user-panel-DbR0J2Ct.css';const u = "_Head_svj2j_13", h = "_Info_svj2j_26", t = {
4
+ import { ButtonText as f } from "../../controls/button-text/button-text.component.js";
5
+ import { baseProps as o } from "../../utils/functions/functions.util.js";
6
+ import '../../assets/user-panel-DbR0J2Ct.css';const u = "_Head_svj2j_13", x = "_Info_svj2j_26", t = {
7
7
  Head: u,
8
- Info: h
9
- }, H = ({ title: i, button: n, data: a, onClick: l, ...r }) => /* @__PURE__ */ o(
8
+ Info: x
9
+ }, H = ({ title: a, button: i, data: n, onClick: l, ...r }) => /* @__PURE__ */ s(
10
10
  "div",
11
11
  {
12
- "data-testid": s(r, "data-testid", "user-panel"),
13
- className: p(t.UserPanel, s(r, "className")),
12
+ "data-testid": o(r, "data-testid", "user-panel"),
13
+ className: p(t.UserPanel, o(r, "className")),
14
14
  children: [
15
- /* @__PURE__ */ o("div", { className: t.Head, children: [
16
- /* @__PURE__ */ e("span", { "data-testid": "user-panel-title", children: i }),
15
+ /* @__PURE__ */ s("div", { className: t.Head, children: [
16
+ /* @__PURE__ */ e("span", { "data-testid": "user-panel-title", children: a }),
17
17
  /* @__PURE__ */ e(
18
18
  f,
19
19
  {
20
+ text: i,
20
21
  preventDefault: !0,
21
22
  blurAfterClick: !0,
22
23
  icon: /* @__PURE__ */ e(m, {}),
23
24
  iconPosition: "right",
24
25
  size: "md",
25
26
  color: "text-primary",
26
- onClick: l,
27
- children: n
27
+ onClick: l
28
28
  }
29
29
  )
30
30
  ] }),
31
- /* @__PURE__ */ e("ul", { className: t.Info, children: a.map((c, d) => /* @__PURE__ */ e("li", { children: c }, d)) })
31
+ /* @__PURE__ */ e("ul", { className: t.Info, children: n.map((c, d) => /* @__PURE__ */ e("li", { children: c }, d)) })
32
32
  ]
33
33
  }
34
34
  );
@@ -0,0 +1,10 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { State } from '../utils';
3
+ import { Base } from '../../utils/types';
4
+ export interface BoxProps extends PropsWithChildren<Base> {
5
+ state?: State;
6
+ focused?: boolean;
7
+ checked?: boolean;
8
+ onClick?: () => void;
9
+ }
10
+ export declare const Box: import('react').ForwardRefExoticComponent<BoxProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,40 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import a from "clsx";
4
+ import { baseProps as e } from "../../utils/functions/functions.util.js";
5
+ import '../../assets/box-5bAcfszB.css';const n = "_Box_1yg9w_1", u = "_Checked_1yg9w_15", x = "_Idle_1yg9w_21", f = "_Focused_1yg9w_25", w = "_Success_1yg9w_34", o = {
6
+ Box: n,
7
+ Checked: u,
8
+ Idle: x,
9
+ Focused: f,
10
+ Error: "_Error_1yg9w_30",
11
+ Success: w
12
+ }, B = m(
13
+ ({
14
+ children: r,
15
+ state: s = "idle",
16
+ focused: d = !1,
17
+ checked: _ = !1,
18
+ onClick: t,
19
+ // Base props
20
+ ...c
21
+ }, l) => /* @__PURE__ */ i(
22
+ "div",
23
+ {
24
+ "data-testid": e(c, "data-testid", "box"),
25
+ ref: l,
26
+ className: a(o.Box, e(c, "className"), {
27
+ [o.Focused]: d,
28
+ [o.Checked]: _,
29
+ [o.Idle]: s === "idle",
30
+ [o.Error]: s === "error",
31
+ [o.Success]: s === "success"
32
+ }),
33
+ onClick: () => t?.(),
34
+ children: r
35
+ }
36
+ )
37
+ );
38
+ export {
39
+ B as Box
40
+ };
@@ -0,0 +1 @@
1
+ export { Box, type BoxProps } from './box.component';
@@ -0,0 +1,4 @@
1
+ import { Box as x } from "./box.component.js";
2
+ export {
3
+ x as Box
4
+ };
@@ -1,7 +1,8 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
- import { ControlButtonColor, ControlButtonSize, ControlButtonType } from '../utils/types';
1
+ import { ReactNode } from 'react';
2
+ import { ControlButtonColor, ControlButtonSize, ControlButtonType } from '../utils';
3
3
  import { Base } from '../../utils/types';
4
- export interface ControlButtonProps extends PropsWithChildren<Base> {
4
+ export interface ButtonProps extends Base {
5
+ text: string;
5
6
  color?: ControlButtonColor;
6
7
  size?: ControlButtonSize;
7
8
  type?: ControlButtonType;
@@ -15,4 +16,4 @@ export interface ControlButtonProps extends PropsWithChildren<Base> {
15
16
  onFocus?: () => void;
16
17
  onBlur?: () => void;
17
18
  }
18
- export declare const ControlButton: ({ children, color, size, type, disabled, info, fullWidth, loading, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ControlButtonProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const Button: ({ text, color, size, type, disabled, info, fullWidth, loading, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,82 @@
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import h from "clsx";
3
+ import { FadeScale as c } from "../../animations/fade-scale/fade-scale.component.js";
4
+ import { Loader as x } from "../../components/loader/loader.component.js";
5
+ import { Content as M } from "../../utils/content/content.component.js";
6
+ import { withControl as S, baseProps as i } from "../../utils/functions/functions.util.js";
7
+ import '../../assets/button-Tzg6F5Dp.css';const C = "_Button_1b52a_1", T = "_SM_1b52a_11", B = "_LG_1b52a_16", F = "_Tertiary_1b52a_16", N = "_Text_1b52a_20", P = "_MD_1b52a_26", D = "_Primary_1b52a_54", G = "_Info_1b52a_59", I = "_Secondary_1b52a_63", W = "_Loading_1b52a_82", w = "_FullWidth_1b52a_90", $ = "_Content_1b52a_94", g = "_Loader_1b52a_110", t = {
8
+ Button: C,
9
+ SM: T,
10
+ LG: B,
11
+ Tertiary: F,
12
+ Text: N,
13
+ MD: P,
14
+ Primary: D,
15
+ Info: G,
16
+ Secondary: I,
17
+ Loading: W,
18
+ FullWidth: w,
19
+ Content: $,
20
+ Loader: g
21
+ }, H = ({
22
+ text: _,
23
+ color: a = "primary",
24
+ size: r = "md",
25
+ type: d = "button",
26
+ disabled: m = !1,
27
+ info: l = "",
28
+ fullWidth: y = !1,
29
+ loading: n = !1,
30
+ preventDefault: u = !1,
31
+ blurAfterClick: b = !1,
32
+ onClick: f = () => {
33
+ },
34
+ onFocus: p,
35
+ onBlur: L,
36
+ ...e
37
+ }) => /* @__PURE__ */ s(
38
+ "button",
39
+ {
40
+ "data-testid": i(e, "data-testid", "button"),
41
+ type: d,
42
+ disabled: m || n,
43
+ className: h(t.Button, i(e, "className"), {
44
+ [t.SM]: r === "sm",
45
+ [t.MD]: r === "md",
46
+ [t.LG]: r === "lg",
47
+ [t.Primary]: a === "primary",
48
+ [t.Secondary]: a === "secondary",
49
+ [t.Tertiary]: a === "tertiary",
50
+ [t.FullWidth]: y,
51
+ [t.Loading]: n
52
+ }),
53
+ onClick: S(f, { prevent: u, blur: b }),
54
+ onFocus: () => p?.(),
55
+ onBlur: () => L?.(),
56
+ children: [
57
+ /* @__PURE__ */ o(c, { name: "loader", condition: n, className: t.Loader, children: /* @__PURE__ */ o(
58
+ x,
59
+ {
60
+ size: "xs",
61
+ color: (() => {
62
+ switch (a) {
63
+ case "primary":
64
+ return "white";
65
+ case "secondary":
66
+ return "text-secondary";
67
+ case "tertiary":
68
+ return "text-primary";
69
+ }
70
+ })()
71
+ }
72
+ ) }),
73
+ /* @__PURE__ */ s(c, { name: "content", keepMount: !0, condition: !n, className: t.Content, children: [
74
+ /* @__PURE__ */ o("span", { className: t.Text, children: _ }),
75
+ /* @__PURE__ */ o(M, { className: t.Info, children: l })
76
+ ] })
77
+ ]
78
+ }
79
+ );
80
+ export {
81
+ H as Button
82
+ };
@@ -0,0 +1 @@
1
+ export { Button, type ButtonProps } from './button.component';
@@ -0,0 +1,4 @@
1
+ import { Button as r } from "./button.component.js";
2
+ export {
3
+ r as Button
4
+ };
@@ -1,7 +1,8 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { SvgProps } from '../../utils/svg';
3
- import { Base } from '../../utils/types';
4
- export interface ControlButtonCardProps extends PropsWithChildren<Base> {
2
+ import { Base, FontSize } from '../../utils/types';
3
+ export interface ButtonCardProps extends Base {
4
+ text: string;
5
+ textSize?: Extract<FontSize, 'body' | 'body-small'>;
5
6
  icon?: SvgProps['icon'];
6
7
  iconPosition?: 'top' | 'left';
7
8
  active?: boolean;
@@ -12,4 +13,4 @@ export interface ControlButtonCardProps extends PropsWithChildren<Base> {
12
13
  onFocus?: () => void;
13
14
  onBlur?: () => void;
14
15
  }
15
- export declare const ControlButtonCard: (props: ControlButtonCardProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const ButtonCard: (props: ButtonCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,79 @@
1
+ import { jsx as t, jsxs as B } from "react/jsx-runtime";
2
+ import { useRef as g } from "react";
3
+ import { useHover as v, useToggle as k } from "usehooks-ts";
4
+ import L from "clsx";
5
+ import { Box as N } from "../box/box.component.js";
6
+ import { Caption as h } from "../caption/caption.component.js";
7
+ import { baseProps as i } from "../../utils/functions/functions.util.js";
8
+ import { Svg as y } from "../../utils/svg/svg.component.js";
9
+ import '../../assets/button-card-B-nlEbJU.css';const F = "_ButtonCard_10os6_1", j = "_Icon_10os6_10", z = "_IconTop_10os6_14", D = "_Text_10os6_21", H = "_IconLeft_10os6_25", o = {
10
+ ButtonCard: F,
11
+ Icon: j,
12
+ IconTop: z,
13
+ Text: D,
14
+ IconLeft: H
15
+ }, G = (f) => {
16
+ const {
17
+ text: u,
18
+ textSize: m = "body",
19
+ icon: d = null,
20
+ iconPosition: e = "top",
21
+ active: n = !1,
22
+ disabled: s = !1,
23
+ preventDefault: p = !1,
24
+ blurAfterClick: _ = !1,
25
+ onClick: x,
26
+ onFocus: I,
27
+ onBlur: b,
28
+ // Base props
29
+ ...c
30
+ } = f, r = g(null), T = v(r), [C, a] = k(!1);
31
+ return /* @__PURE__ */ t(
32
+ N,
33
+ {
34
+ "data-testid": i(c, "data-testid", "button-card"),
35
+ ref: r,
36
+ checked: n || T,
37
+ state: "idle",
38
+ focused: C,
39
+ className: i(c, "className"),
40
+ children: /* @__PURE__ */ B(
41
+ "button",
42
+ {
43
+ type: "button",
44
+ disabled: s,
45
+ className: L(o.ButtonCard, {
46
+ [o.IconTop]: e === "top",
47
+ [o.IconLeft]: e === "left"
48
+ }),
49
+ onClick: (l) => {
50
+ p && l.preventDefault(), _ && l.currentTarget.blur(), x?.();
51
+ },
52
+ onFocus: () => {
53
+ a(), I?.();
54
+ },
55
+ onBlur: () => {
56
+ a(), b?.();
57
+ },
58
+ children: [
59
+ /* @__PURE__ */ t(y, { icon: d, className: o.Icon }),
60
+ /* @__PURE__ */ t(
61
+ h,
62
+ {
63
+ oneLine: !0,
64
+ text: u,
65
+ size: m,
66
+ checked: n,
67
+ color: s ? "text-secondary" : "text-primary",
68
+ className: o.Text
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ )
74
+ }
75
+ );
76
+ };
77
+ export {
78
+ G as ButtonCard
79
+ };
@@ -0,0 +1 @@
1
+ export { ButtonCard, type ButtonCardProps } from './button-card.component';
@@ -0,0 +1,4 @@
1
+ import { ButtonCard as t } from "./button-card.component.js";
2
+ export {
3
+ t as ButtonCard
4
+ };
@@ -0,0 +1,20 @@
1
+ import { Base, FontSize } from '../../utils/types';
2
+ type ButtonRadioInfo = {
3
+ text?: string;
4
+ hintLeft?: string;
5
+ hintRight?: string;
6
+ };
7
+ export interface ButtonRadioProps extends Base {
8
+ text: string;
9
+ textSize?: Extract<FontSize, 'body' | 'body-small'>;
10
+ active?: boolean;
11
+ disabled?: boolean;
12
+ info?: ButtonRadioInfo;
13
+ preventDefault?: boolean;
14
+ blurAfterClick?: boolean;
15
+ onClick?: () => void;
16
+ onFocus?: () => void;
17
+ onBlur?: () => void;
18
+ }
19
+ export declare const ButtonRadio: ({ text, textSize, active, disabled, info, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonRadioProps) => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,83 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { useRef as y } from "react";
3
+ import { useHover as N, useToggle as g } from "usehooks-ts";
4
+ import { Box as B } from "../box/box.component.js";
5
+ import { Caption as H } from "../caption/caption.component.js";
6
+ import { Status as C } from "../status/status.component.js";
7
+ import { baseProps as d } from "../../utils/functions/functions.util.js";
8
+ import '../../assets/button-radio-CPeNePW2.css';const T = "_ButtonRadio_iwy6t_1", b = "_Row_iwy6t_14", v = "_Wrap_iwy6t_23", W = "_Content_iwy6t_32", k = "_Text_iwy6t_42", L = "_Hint_iwy6t_50", t = {
9
+ ButtonRadio: T,
10
+ Row: b,
11
+ Wrap: v,
12
+ Content: W,
13
+ Text: k,
14
+ Hint: L
15
+ }, q = ({
16
+ text: m,
17
+ textSize: u = "body",
18
+ active: n = !1,
19
+ disabled: a = !1,
20
+ info: o,
21
+ preventDefault: p = !1,
22
+ blurAfterClick: _ = !1,
23
+ onClick: h,
24
+ onFocus: f,
25
+ onBlur: R,
26
+ // Base props
27
+ ...i
28
+ }) => {
29
+ const r = y(null), x = N(r), [w, c] = g(!1);
30
+ return /* @__PURE__ */ e(
31
+ B,
32
+ {
33
+ "data-testid": d(i, "data-testid", "button-radio"),
34
+ ref: r,
35
+ checked: n || x,
36
+ state: "idle",
37
+ focused: w,
38
+ className: d(i, "className"),
39
+ children: /* @__PURE__ */ e(
40
+ "button",
41
+ {
42
+ type: "button",
43
+ disabled: a,
44
+ className: t.ButtonRadio,
45
+ onClick: (l) => {
46
+ p && l.preventDefault(), _ && l.currentTarget.blur(), h?.();
47
+ },
48
+ onFocus: () => {
49
+ c(), f?.();
50
+ },
51
+ onBlur: () => {
52
+ c(), R?.();
53
+ },
54
+ children: /* @__PURE__ */ s("div", { className: t.Wrap, children: [
55
+ /* @__PURE__ */ e(C, { state: n ? "success" : "idle" }),
56
+ /* @__PURE__ */ s("div", { className: t.Content, children: [
57
+ /* @__PURE__ */ s("div", { className: t.Row, children: [
58
+ /* @__PURE__ */ e(
59
+ H,
60
+ {
61
+ oneLine: !0,
62
+ text: m,
63
+ size: u,
64
+ checked: n,
65
+ color: a ? "text-secondary" : "text-primary"
66
+ }
67
+ ),
68
+ o?.text ? /* @__PURE__ */ e("span", { className: t.Text, children: o.text }) : null
69
+ ] }),
70
+ (o?.hintLeft || o?.hintRight) && /* @__PURE__ */ s("div", { className: t.Row, children: [
71
+ /* @__PURE__ */ e("span", { className: t.Hint, children: o.hintLeft }),
72
+ /* @__PURE__ */ e("span", { className: t.Hint, children: o.hintRight })
73
+ ] })
74
+ ] })
75
+ ] })
76
+ }
77
+ )
78
+ }
79
+ );
80
+ };
81
+ export {
82
+ q as ButtonRadio
83
+ };
@@ -0,0 +1 @@
1
+ export { ButtonRadio, type ButtonRadioProps } from './button-radio.component';
@@ -0,0 +1,4 @@
1
+ import { ButtonRadio as r } from "./button-radio.component.js";
2
+ export {
3
+ r as ButtonRadio
4
+ };
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { ControlButtonSize, ControlButtonType, ControlButtonTypeColor } from '../utils';
3
- import { Base, FontWeight } from '../../utils/types';
4
2
  import { SvgProps } from '../../utils/svg';
5
- export interface ControlButtonTextProps extends PropsWithChildren<Base> {
3
+ import { Base, FontWeight } from '../../utils/types';
4
+ export interface ButtonTextProps extends Base {
5
+ text: string;
6
6
  color?: ControlButtonTypeColor;
7
7
  size?: ControlButtonSize;
8
8
  type?: ControlButtonType;
@@ -17,4 +17,4 @@ export interface ControlButtonTextProps extends PropsWithChildren<Base> {
17
17
  onFocus?: () => void;
18
18
  onBlur?: () => void;
19
19
  }
20
- export declare const ControlButtonText: ({ children, size, color, weight, type, icon, iconPosition, underlined, disabled, preventDefault, blurAfterClick, onClick, onFocus, onBlur, className, ...rest }: ControlButtonTextProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const ButtonText: ({ text, size, color, weight, type, icon, iconPosition, underlined, disabled, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,87 @@
1
+ import { jsxs as S, jsx as _ } from "react/jsx-runtime";
2
+ import a from "clsx";
3
+ import { withControl as f, baseProps as m } from "../../utils/functions/functions.util.js";
4
+ import { Svg as g } from "../../utils/svg/svg.component.js";
5
+ import '../../assets/button-text-BKSERdhL.css';const L = "_ButtonText_14p1n_1", M = "_TextPrimary_14p1n_11", P = "_TextSecondary_14p1n_15", B = "_AccentPrimary_14p1n_19", A = "_AccentSecondary_14p1n_23", R = "_ThemePrimary_14p1n_27", C = "_ThemeSecondary_14p1n_31", b = "_Left_14p1n_35", D = "_Right_14p1n_39", G = "_Icon_14p1n_43", I = "_SM_14p1n_47", N = "_MD_14p1n_52", U = "_LG_14p1n_57", j = "_Content_14p1n_62", v = "_Light_14p1n_81", k = "_Regular_14p1n_85", F = "_Medium_14p1n_89", $ = "_Bold_14p1n_93", q = "_Underlined_14p1n_97", t = {
6
+ ButtonText: L,
7
+ TextPrimary: M,
8
+ TextSecondary: P,
9
+ AccentPrimary: B,
10
+ AccentSecondary: A,
11
+ ThemePrimary: R,
12
+ ThemeSecondary: C,
13
+ Left: b,
14
+ Right: D,
15
+ Icon: G,
16
+ SM: I,
17
+ MD: N,
18
+ LG: U,
19
+ Content: j,
20
+ Light: v,
21
+ Regular: k,
22
+ Medium: F,
23
+ Bold: $,
24
+ Underlined: q
25
+ }, O = ({
26
+ text: s,
27
+ size: r = "md",
28
+ color: e = "text-primary",
29
+ weight: n = "medium",
30
+ type: d = "button",
31
+ icon: i = null,
32
+ iconPosition: c = "left",
33
+ underlined: p = !1,
34
+ disabled: y = !1,
35
+ preventDefault: l = !1,
36
+ blurAfterClick: u = !1,
37
+ onClick: x = () => {
38
+ },
39
+ onFocus: T = () => {
40
+ },
41
+ onBlur: h = () => {
42
+ },
43
+ // Base props
44
+ ...o
45
+ }) => /* @__PURE__ */ S(
46
+ "button",
47
+ {
48
+ "data-testid": m(o, "data-testid", "button-text"),
49
+ type: d,
50
+ disabled: y,
51
+ className: a(t.ButtonText, m(o, "className"), {
52
+ [t.Left]: c === "left",
53
+ [t.Right]: c === "right",
54
+ [t.SM]: r === "sm",
55
+ [t.MD]: r === "md",
56
+ [t.LG]: r === "lg",
57
+ [t.TextPrimary]: e === "text-primary",
58
+ [t.TextSecondary]: e === "text-secondary",
59
+ [t.AccentPrimary]: e === "accent-primary",
60
+ [t.AccentSecondary]: e === "accent-secondary",
61
+ [t.ThemePrimary]: e === "theme-primary",
62
+ [t.ThemeSecondary]: e === "theme-secondary"
63
+ }),
64
+ onClick: f(x, { prevent: l, blur: u }),
65
+ onFocus: () => T(),
66
+ onBlur: () => h(),
67
+ children: [
68
+ /* @__PURE__ */ _(g, { icon: i, className: t.Icon }),
69
+ /* @__PURE__ */ _(
70
+ "span",
71
+ {
72
+ className: a(t.Content, {
73
+ [t.Light]: n === "light",
74
+ [t.Regular]: n === "regular",
75
+ [t.Medium]: n === "medium",
76
+ [t.Bold]: n === "bold",
77
+ [t.Underlined]: p
78
+ }),
79
+ children: s
80
+ }
81
+ )
82
+ ]
83
+ }
84
+ );
85
+ export {
86
+ O as ButtonText
87
+ };
@@ -0,0 +1 @@
1
+ export { ButtonText, type ButtonTextProps } from './button-text.component';
@@ -0,0 +1,4 @@
1
+ import { ButtonText as e } from "./button-text.component.js";
2
+ export {
3
+ e as ButtonText
4
+ };
@@ -0,0 +1,10 @@
1
+ import { ControlCaptionColor, ControlCaptionSize } from '../utils';
2
+ import { Base } from '../../utils/types';
3
+ export interface CaptionProps extends Base {
4
+ text: string;
5
+ size?: ControlCaptionSize;
6
+ color?: ControlCaptionColor;
7
+ checked?: boolean;
8
+ oneLine?: boolean;
9
+ }
10
+ export declare const Caption: ({ text, size, color, checked, oneLine, ...base }: CaptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import i from "clsx";
3
+ import { Content as _ } from "../../utils/content/content.component.js";
4
+ import { baseProps as o } from "../../utils/functions/functions.util.js";
5
+ import '../../assets/caption-B28SGRY1.css';const m = "_Caption_cifud_1", s = "_TextPrimary_cifud_8", l = "_Content_cifud_8", x = "_TextSecondary_cifud_12", f = "_AccentPrimary_cifud_16", p = "_AccentSecondary_cifud_20", B = "_BodyExtraSmall_cifud_24", S = "_BodySmall_cifud_29", C = "_Body_cifud_24", u = "_BodyLarge_cifud_39", P = "_OneLine_cifud_44", A = "_Checked_cifud_49", t = {
6
+ Caption: m,
7
+ TextPrimary: s,
8
+ Content: l,
9
+ TextSecondary: x,
10
+ AccentPrimary: f,
11
+ AccentSecondary: p,
12
+ BodyExtraSmall: B,
13
+ BodySmall: S,
14
+ Body: C,
15
+ BodyLarge: u,
16
+ OneLine: P,
17
+ Checked: A
18
+ }, b = ({
19
+ // Caption props
20
+ text: d,
21
+ size: e = "body",
22
+ color: c = "text-primary",
23
+ checked: r = !1,
24
+ oneLine: y = !1,
25
+ // Base props
26
+ ...a
27
+ }) => /* @__PURE__ */ n(
28
+ "div",
29
+ {
30
+ "data-testid": o(a, "data-testid", "caption"),
31
+ className: i(t.Caption, o(a, "className"), {
32
+ [t.TextPrimary]: c === "text-primary",
33
+ [t.TextSecondary]: c === "text-secondary",
34
+ [t.AccentPrimary]: c === "accent-primary",
35
+ [t.AccentSecondary]: c === "accent-secondary",
36
+ [t.BodyExtraSmall]: e === "body-extra-small",
37
+ [t.BodySmall]: e === "body-small",
38
+ [t.Body]: e === "body",
39
+ [t.BodyLarge]: e === "body-large",
40
+ [t.OneLine]: y,
41
+ [t.Checked]: r
42
+ }),
43
+ children: /* @__PURE__ */ n(_, { tag: "span", className: t.Content, children: d })
44
+ }
45
+ );
46
+ export {
47
+ b as Caption
48
+ };
@@ -0,0 +1 @@
1
+ export { Caption, type CaptionProps } from './caption.component';
@@ -0,0 +1,4 @@
1
+ import { Caption as r } from "./caption.component.js";
2
+ export {
3
+ r as Caption
4
+ };
@@ -0,0 +1,10 @@
1
+ import { ChoiceProps } from '../choice';
2
+ import { ChoiceValue, Interactive, RadioChoice } from '../utils';
3
+ import { Base, FontSize } from '../../utils/types';
4
+ export interface CardImageProps extends Base, Interactive<ChoiceValue> {
5
+ sprite: string;
6
+ choices: RadioChoice[];
7
+ iconSize?: ChoiceProps['size'];
8
+ textSize?: Extract<FontSize, 'body' | 'body-small'>;
9
+ }
10
+ export declare const CardImage: ({ id, value, disabled, state, onChange, onFocus, onBlur, sprite, choices, iconSize, textSize, ...base }: CardImageProps) => import("react/jsx-runtime").JSX.Element;