@arthurzakharov/ui-kit 1.5.3 → 1.5.5

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 (280) 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-j496CvVc.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/{main-DlyWXITA.css → main-Dz2hrn4n.css} +1 -1
  33. package/dist/assets/radio-VoXwCoAp.css +1 -0
  34. package/dist/assets/radio-label-CZHWBUUt.css +1 -0
  35. package/dist/assets/signature-D9gYlpze.css +1 -0
  36. package/dist/assets/status-ZxxbM9u1.css +1 -0
  37. package/dist/assets/text-area-Dgc2jHSx.css +1 -0
  38. package/dist/assets/text-field-Bp4Ra0yN.css +1 -0
  39. package/dist/components/accordion-table/accordion-table.component.js +18 -18
  40. package/dist/components/bottom-bar/bottom-bar.component.d.ts +1 -1
  41. package/dist/components/bottom-bar/bottom-bar.component.js +25 -27
  42. package/dist/components/dialog/dialog.component.js +19108 -60
  43. package/dist/components/dialog-article/dialog-article.component.d.ts +0 -4
  44. package/dist/components/dialog-article/dialog-article.component.js +20 -20
  45. package/dist/components/main-attachment/main-attachment.component.js +7 -7
  46. package/dist/components/payment/components/glass/glass.component.js +2 -2
  47. package/dist/components/sidebar/sidebar.component.d.ts +1 -1
  48. package/dist/components/sidebar/sidebar.component.js +14 -14
  49. package/dist/components/signature/signature.component.d.ts +1 -1
  50. package/dist/components/signature/signature.component.js +848 -783
  51. package/dist/components/text/text.component.d.ts +2 -2
  52. package/dist/components/user-panel/user-panel.component.js +13 -13
  53. package/dist/controls/box/box.component.d.ts +10 -0
  54. package/dist/controls/box/box.component.js +40 -0
  55. package/dist/controls/box/index.d.ts +1 -0
  56. package/dist/controls/box/index.js +4 -0
  57. package/dist/controls/{control-button/control-button.component.d.ts → button/button.component.d.ts} +5 -4
  58. package/dist/controls/button/button.component.js +82 -0
  59. package/dist/controls/button/index.d.ts +1 -0
  60. package/dist/controls/button/index.js +4 -0
  61. package/dist/controls/{control-button-card/control-button-card.component.d.ts → button-card/button-card.component.d.ts} +5 -4
  62. package/dist/controls/button-card/button-card.component.js +79 -0
  63. package/dist/controls/button-card/index.d.ts +1 -0
  64. package/dist/controls/button-card/index.js +4 -0
  65. package/dist/controls/button-radio/button-radio.component.d.ts +20 -0
  66. package/dist/controls/button-radio/button-radio.component.js +83 -0
  67. package/dist/controls/button-radio/index.d.ts +1 -0
  68. package/dist/controls/button-radio/index.js +4 -0
  69. package/dist/controls/{control-button-text/control-button-text.component.d.ts → button-text/button-text.component.d.ts} +4 -4
  70. package/dist/controls/button-text/button-text.component.js +87 -0
  71. package/dist/controls/button-text/index.d.ts +1 -0
  72. package/dist/controls/button-text/index.js +4 -0
  73. package/dist/controls/caption/caption.component.d.ts +10 -0
  74. package/dist/controls/caption/caption.component.js +48 -0
  75. package/dist/controls/caption/index.d.ts +1 -0
  76. package/dist/controls/caption/index.js +4 -0
  77. package/dist/controls/card-image/card-image.component.d.ts +10 -0
  78. package/dist/controls/card-image/card-image.component.js +81 -0
  79. package/dist/controls/card-image/index.d.ts +1 -0
  80. package/dist/controls/card-image/index.js +4 -0
  81. package/dist/controls/card-text/card-text.component.d.ts +9 -0
  82. package/dist/controls/card-text/card-text.component.js +75 -0
  83. package/dist/controls/card-text/index.d.ts +1 -0
  84. package/dist/controls/card-text/index.js +4 -0
  85. package/dist/controls/checkbox/checkbox.component.d.ts +10 -0
  86. package/dist/controls/checkbox/checkbox.component.js +103 -0
  87. package/dist/controls/checkbox/index.d.ts +1 -0
  88. package/dist/controls/checkbox/index.js +4 -0
  89. package/dist/controls/choice/choice.component.d.ts +12 -0
  90. package/dist/controls/choice/choice.component.js +67 -0
  91. package/dist/controls/choice/index.d.ts +1 -0
  92. package/dist/controls/choice/index.js +4 -0
  93. package/dist/controls/{control-dropdown/control-dropdown.component.d.ts → dropdown/dropdown.component.d.ts} +3 -3
  94. package/dist/controls/dropdown/dropdown.component.js +127 -0
  95. package/dist/controls/dropdown/index.d.ts +1 -0
  96. package/dist/controls/dropdown/index.js +4 -0
  97. package/dist/controls/error-message/error-message.component.d.ts +5 -0
  98. package/dist/controls/error-message/error-message.component.js +22 -0
  99. package/dist/controls/error-message/index.d.ts +1 -0
  100. package/dist/controls/error-message/index.js +4 -0
  101. package/dist/controls/hidden-input/hidden-input.component.d.ts +15 -0
  102. package/dist/controls/hidden-input/hidden-input.component.js +38 -0
  103. package/dist/controls/hidden-input/index.d.ts +1 -0
  104. package/dist/controls/hidden-input/index.js +4 -0
  105. package/dist/controls/hooks/index.d.ts +1 -0
  106. package/dist/controls/hooks/index.js +3 -1
  107. package/dist/controls/hooks/use-choice/use-choice.hook.d.ts +2 -2
  108. package/dist/controls/hooks/use-control-interaction/index.d.ts +1 -0
  109. package/dist/controls/hooks/use-control-interaction/index.js +4 -0
  110. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.d.ts +7 -0
  111. package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.js +25 -0
  112. package/dist/controls/index.d.ts +22 -0
  113. package/dist/controls/index.js +50 -0
  114. package/dist/controls/input/index.d.ts +1 -0
  115. package/dist/controls/input/index.js +4 -0
  116. package/dist/controls/input/input.component.d.ts +9 -0
  117. package/dist/controls/input/input.component.js +143 -0
  118. package/dist/controls/input/input.utils.d.ts +10 -0
  119. package/dist/controls/input/input.utils.js +24 -0
  120. package/dist/controls/label/index.d.ts +1 -0
  121. package/dist/controls/label/index.js +4 -0
  122. package/dist/controls/label/label.component.d.ts +8 -0
  123. package/dist/controls/label/label.component.js +33 -0
  124. package/dist/controls/radio/index.d.ts +1 -0
  125. package/dist/controls/radio/index.js +4 -0
  126. package/dist/controls/radio/radio.component.d.ts +12 -0
  127. package/dist/controls/radio/radio.component.js +109 -0
  128. package/dist/controls/radio-label/index.d.ts +1 -0
  129. package/dist/controls/radio-label/index.js +4 -0
  130. package/dist/controls/radio-label/radio-label.component.d.ts +19 -0
  131. package/dist/controls/radio-label/radio-label.component.js +49 -0
  132. package/dist/controls/status/index.d.ts +1 -0
  133. package/dist/controls/status/index.js +4 -0
  134. package/dist/controls/status/status.component.d.ts +6 -0
  135. package/dist/controls/status/status.component.js +36 -0
  136. package/dist/controls/text-area/index.d.ts +1 -0
  137. package/dist/controls/text-area/index.js +4 -0
  138. package/dist/controls/text-area/text-area.component.d.ts +8 -0
  139. package/dist/controls/text-area/text-area.component.js +62 -0
  140. package/dist/controls/text-field/index.d.ts +1 -0
  141. package/dist/controls/text-field/index.js +4 -0
  142. package/dist/controls/text-field/text-field.component.d.ts +10 -0
  143. package/dist/controls/text-field/text-field.component.js +100 -0
  144. package/dist/controls/utils/functions/functions.util.d.ts +0 -1
  145. package/dist/controls/utils/functions/functions.util.js +3 -14
  146. package/dist/controls/utils/functions/index.js +3 -4
  147. package/dist/controls/utils/index.js +3 -4
  148. package/dist/controls/utils/types.d.ts +8 -5
  149. package/dist/{index-PfP8s0Qf.js → index-CPvYWadf.js} +1 -1
  150. package/dist/main.d.ts +25 -24
  151. package/dist/main.js +101 -99
  152. package/dist/{proxy-Cx6n7mT2.js → proxy-CmTphuYR.js} +1762 -1717
  153. package/dist/utils/converter/index.d.ts +1 -0
  154. package/dist/utils/converter/index.js +4 -0
  155. package/dist/utils/functions/functions.util.js +10 -10
  156. package/dist/utils/story/grey-box/grey-box.component.d.ts +9 -0
  157. package/dist/utils/story/grey-box/grey-box.component.js +24 -0
  158. package/dist/utils/story/grey-box/index.d.ts +1 -0
  159. package/dist/utils/story/grey-box/index.js +4 -0
  160. package/dist/utils/story/size-box/index.d.ts +1 -0
  161. package/dist/utils/story/size-box/index.js +4 -0
  162. package/dist/utils/story/size-box/size-box.component.d.ts +6 -0
  163. package/dist/utils/story/size-box/size-box.component.js +5 -0
  164. package/package.json +10 -18
  165. package/dist/_commonjsHelpers-CqEciG1_.js +0 -31
  166. package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +0 -2
  167. package/dist/animations/animation-fade-grow/index.d.ts +0 -1
  168. package/dist/animations/animation-fade-grow/index.js +0 -4
  169. package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +0 -2
  170. package/dist/animations/animation-fade-scale/index.d.ts +0 -1
  171. package/dist/animations/animation-fade-scale/index.js +0 -4
  172. package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +0 -6
  173. package/dist/animations/animation-fade-slide/index.d.ts +0 -1
  174. package/dist/animations/animation-fade-slide/index.js +0 -4
  175. package/dist/animations/animation-rotate/index.d.ts +0 -1
  176. package/dist/animations/animation-rotate/index.js +0 -4
  177. package/dist/assets/control-box-Dx-QKPgf.css +0 -1
  178. package/dist/assets/control-button-card-Cb8_vJbQ.css +0 -1
  179. package/dist/assets/control-button-radio-BodzD0rU.css +0 -1
  180. package/dist/assets/control-button-text-BbE_5ebO.css +0 -1
  181. package/dist/assets/control-card-image-BYT3bzTE.css +0 -1
  182. package/dist/assets/control-card-text-Cvv3bL2p.css +0 -1
  183. package/dist/assets/control-checkbox-uLtXjmYN.css +0 -1
  184. package/dist/assets/control-choice-BAHN-VTm.css +0 -1
  185. package/dist/assets/control-dropdown-DaS5KsvG.css +0 -1
  186. package/dist/assets/control-error-message-CKgqmo1U.css +0 -1
  187. package/dist/assets/control-hidden-input-BhMdNmnP.css +0 -1
  188. package/dist/assets/control-input-nR0XQHHp.css +0 -1
  189. package/dist/assets/control-label-C8pjaWEU.css +0 -1
  190. package/dist/assets/control-radio-Bo1rvcg2.css +0 -1
  191. package/dist/assets/control-radio-label-CgZ-FNj0.css +0 -1
  192. package/dist/assets/control-radio-text-S7MEO4a2.css +0 -1
  193. package/dist/assets/control-status-DPNvkGlM.css +0 -1
  194. package/dist/assets/control-text-n-qi7e2Y.css +0 -1
  195. package/dist/assets/control-textarea-B6gWlJs3.css +0 -1
  196. package/dist/assets/signature-EuXLu4YT.css +0 -1
  197. package/dist/controls/control-box/control-box.component.d.ts +0 -14
  198. package/dist/controls/control-box/control-box.component.js +0 -33
  199. package/dist/controls/control-box/index.d.ts +0 -2
  200. package/dist/controls/control-box/index.js +0 -4
  201. package/dist/controls/control-button/control-button.component.js +0 -84
  202. package/dist/controls/control-button/index.d.ts +0 -2
  203. package/dist/controls/control-button/index.js +0 -4
  204. package/dist/controls/control-button-card/control-button-card.component.js +0 -65
  205. package/dist/controls/control-button-card/index.d.ts +0 -2
  206. package/dist/controls/control-button-card/index.js +0 -4
  207. package/dist/controls/control-button-radio/control-button-radio.component.d.ts +0 -19
  208. package/dist/controls/control-button-radio/control-button-radio.component.js +0 -69
  209. package/dist/controls/control-button-radio/index.d.ts +0 -2
  210. package/dist/controls/control-button-radio/index.js +0 -4
  211. package/dist/controls/control-button-text/control-button-text.component.js +0 -87
  212. package/dist/controls/control-button-text/index.d.ts +0 -2
  213. package/dist/controls/control-button-text/index.js +0 -4
  214. package/dist/controls/control-card-image/control-card-image.component.d.ts +0 -8
  215. package/dist/controls/control-card-image/control-card-image.component.js +0 -53
  216. package/dist/controls/control-card-image/index.d.ts +0 -2
  217. package/dist/controls/control-card-image/index.js +0 -4
  218. package/dist/controls/control-card-text/control-card-text.component.d.ts +0 -7
  219. package/dist/controls/control-card-text/control-card-text.component.js +0 -48
  220. package/dist/controls/control-card-text/index.d.ts +0 -2
  221. package/dist/controls/control-card-text/index.js +0 -4
  222. package/dist/controls/control-checkbox/control-checkbox.component.d.ts +0 -11
  223. package/dist/controls/control-checkbox/control-checkbox.component.js +0 -97
  224. package/dist/controls/control-checkbox/index.d.ts +0 -2
  225. package/dist/controls/control-checkbox/index.js +0 -4
  226. package/dist/controls/control-choice/control-choice.component.d.ts +0 -12
  227. package/dist/controls/control-choice/control-choice.component.js +0 -64
  228. package/dist/controls/control-choice/index.d.ts +0 -2
  229. package/dist/controls/control-choice/index.js +0 -4
  230. package/dist/controls/control-dropdown/control-dropdown.component.js +0 -106
  231. package/dist/controls/control-dropdown/index.d.ts +0 -2
  232. package/dist/controls/control-dropdown/index.js +0 -4
  233. package/dist/controls/control-error-message/control-error-message.component.d.ts +0 -7
  234. package/dist/controls/control-error-message/control-error-message.component.js +0 -16
  235. package/dist/controls/control-error-message/index.d.ts +0 -1
  236. package/dist/controls/control-error-message/index.js +0 -4
  237. package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +0 -15
  238. package/dist/controls/control-hidden-input/control-hidden-input.component.js +0 -41
  239. package/dist/controls/control-hidden-input/index.d.ts +0 -2
  240. package/dist/controls/control-hidden-input/index.js +0 -4
  241. package/dist/controls/control-input/control-input.component.d.ts +0 -11
  242. package/dist/controls/control-input/control-input.component.js +0 -973
  243. package/dist/controls/control-input/index.d.ts +0 -2
  244. package/dist/controls/control-input/index.js +0 -4
  245. package/dist/controls/control-label/control-label.component.d.ts +0 -13
  246. package/dist/controls/control-label/control-label.component.js +0 -25
  247. package/dist/controls/control-label/index.d.ts +0 -1
  248. package/dist/controls/control-label/index.js +0 -4
  249. package/dist/controls/control-radio/control-radio.component.d.ts +0 -14
  250. package/dist/controls/control-radio/control-radio.component.js +0 -79
  251. package/dist/controls/control-radio/index.d.ts +0 -2
  252. package/dist/controls/control-radio/index.js +0 -4
  253. package/dist/controls/control-radio-label/control-radio-label.component.d.ts +0 -22
  254. package/dist/controls/control-radio-label/control-radio-label.component.js +0 -39
  255. package/dist/controls/control-radio-label/index.d.ts +0 -1
  256. package/dist/controls/control-radio-label/index.js +0 -4
  257. package/dist/controls/control-radio-text/control-radio-text.component.d.ts +0 -10
  258. package/dist/controls/control-radio-text/control-radio-text.component.js +0 -45
  259. package/dist/controls/control-radio-text/index.d.ts +0 -2
  260. package/dist/controls/control-radio-text/index.js +0 -4
  261. package/dist/controls/control-status/control-status.component.d.ts +0 -11
  262. package/dist/controls/control-status/control-status.component.js +0 -42
  263. package/dist/controls/control-status/index.d.ts +0 -1
  264. package/dist/controls/control-status/index.js +0 -4
  265. package/dist/controls/control-text/control-text.component.d.ts +0 -11
  266. package/dist/controls/control-text/control-text.component.js +0 -70
  267. package/dist/controls/control-text/index.d.ts +0 -2
  268. package/dist/controls/control-text/index.js +0 -4
  269. package/dist/controls/control-textarea/control-textarea.component.d.ts +0 -15
  270. package/dist/controls/control-textarea/control-textarea.component.js +0 -63
  271. package/dist/controls/control-textarea/index.d.ts +0 -1
  272. package/dist/controls/control-textarea/index.js +0 -4
  273. package/dist/index-D3EuHLHH.js +0 -19053
  274. /package/dist/animations/{hook → hooks}/index.d.ts +0 -0
  275. /package/dist/animations/{hook → hooks}/index.js +0 -0
  276. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.d.ts +0 -0
  277. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.js +0 -0
  278. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +0 -0
  279. /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.js +0 -0
  280. /package/dist/assets/{control-button-Tzg6F5Dp.css → button-Tzg6F5Dp.css} +0 -0
@@ -0,0 +1 @@
1
+ export { Converter } from './converter.util';
@@ -0,0 +1,4 @@
1
+ import { Converter as o } from "./converter.util.js";
2
+ export {
3
+ o as Converter
4
+ };
@@ -1,23 +1,23 @@
1
- function e(t) {
1
+ function i(t) {
2
2
  return typeof t == "string";
3
3
  }
4
- function i(t) {
4
+ function e(t) {
5
5
  const n = /<\/?[a-z][\s\S]*>/i, r = /&(?:[a-z][a-z0-9]+|#\d+|#x[\da-f]+);/i;
6
6
  return n.test(t) || r.test(t);
7
7
  }
8
- function s(t) {
9
- return e(t) && i(t);
8
+ function o(t) {
9
+ return i(t) && e(t);
10
10
  }
11
- const o = (t, n) => (r) => {
11
+ const s = (t, n) => (r) => {
12
12
  n?.prevent && r.preventDefault(), n?.stop && r.stopPropagation(), n?.blur && r.currentTarget.blur(), n?.withEvent ? t(r) : t();
13
13
  };
14
14
  function u(t, n, r) {
15
- return t[n] ?? r;
15
+ return t[n] ? t[n] : r;
16
16
  }
17
17
  export {
18
18
  u as baseProps,
19
- i as containsHtml,
20
- s as isHtmlString,
21
- e as isString,
22
- o as withControl
19
+ e as containsHtml,
20
+ o as isHtmlString,
21
+ i as isString,
22
+ s as withControl
23
23
  };
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { Base } from '../../types';
3
+ interface GreyBoxProps extends PropsWithChildren<Base> {
4
+ inline?: boolean;
5
+ size?: number;
6
+ asText?: boolean;
7
+ }
8
+ export declare const GreyBox: ({ children, inline, size, asText, ...base }: GreyBoxProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,24 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { Text as d } from "../../../components/text/text.component.js";
3
+ import { baseProps as a } from "../../functions/functions.util.js";
4
+ const g = ({ children: r, inline: o, size: e, asText: s, ...t }) => /* @__PURE__ */ i(
5
+ "div",
6
+ {
7
+ "data-testid": a(t, "data-testid"),
8
+ style: {
9
+ width: e,
10
+ height: e,
11
+ backgroundColor: "var(--rm-ui-grey-700)",
12
+ borderRadius: "var(--rm-ui-border-radius-sm)",
13
+ padding: "var(--rm-ui-padding-xs)",
14
+ display: o ? "inline-flex" : "flex",
15
+ alignItems: "center",
16
+ justifyContent: "center"
17
+ },
18
+ className: a(t, "className"),
19
+ children: s ? /* @__PURE__ */ i(d, { size: "hl4", align: "center", color: "grey-50", style: { margin: 0 }, children: r }) : r
20
+ }
21
+ );
22
+ export {
23
+ g as GreyBox
24
+ };
@@ -0,0 +1 @@
1
+ export { GreyBox } from './grey-box.component';
@@ -0,0 +1,4 @@
1
+ import { GreyBox as e } from "./grey-box.component.js";
2
+ export {
3
+ e as GreyBox
4
+ };
@@ -0,0 +1 @@
1
+ export { SizeBox } from './size-box.component';
@@ -0,0 +1,4 @@
1
+ import { SizeBox as r } from "./size-box.component.js";
2
+ export {
3
+ r as SizeBox
4
+ };
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ interface SizeBox extends PropsWithChildren {
3
+ size: number;
4
+ }
5
+ export declare const SizeBox: ({ children, size }: SizeBox) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ const h = ({ children: o, size: t }) => /* @__PURE__ */ i("div", { style: { width: t, height: t }, children: o });
3
+ export {
4
+ h as SizeBox
5
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -23,16 +23,10 @@
23
23
  "lint:fix": "eslint . --fix",
24
24
  "prettier:check": "prettier --check --log-level=log .",
25
25
  "prettier:fix": "prettier --write --log-level=log .",
26
- "test:unit:once": "vitest run --project unit",
27
- "test:unit:watch": "vitest --project unit --watch",
28
- "test:unit:update": "vitest run --project unit --update",
29
- "test:unit:coverage": "vitest run --coverage --project unit",
30
- "test:storybook:once": "vitest run --project storybook",
31
- "test:storybook:coverage": "vitest run --coverage --project storybook",
32
- "test:all:coverage": "vitest run --coverage --project unit --project storybook",
33
- "test:all:once": "vitest run --project unit --project storybook",
34
26
  "storybook": "storybook dev -p 6006",
35
- "build-storybook": "storybook build"
27
+ "build-storybook": "storybook build",
28
+ "test-storybook": "vitest --project=storybook",
29
+ "test-storybook:coverage": "vitest --project=storybook --coverage"
36
30
  },
37
31
  "peerDependencies": {
38
32
  "@types/react-signature-canvas": "^1.0.7",
@@ -41,17 +35,16 @@
41
35
  "motion": "^12.26.1",
42
36
  "react": "^18.3.1",
43
37
  "react-dom": "^18.3.1",
44
- "react-input-mask": "^2.0.4",
45
38
  "react-signature-canvas": "^1.0.7",
46
39
  "usehooks-ts": "^3.1.1"
47
40
  },
48
41
  "devDependencies": {
49
42
  "@chromatic-com/storybook": "^5.0.1",
50
43
  "@eslint/js": "^9.39.2",
51
- "@storybook/addon-a11y": "^10.2.13",
52
- "@storybook/addon-docs": "^10.2.13",
53
- "@storybook/addon-vitest": "^10.2.13",
54
- "@storybook/react-vite": "^10.2.13",
44
+ "@storybook/addon-a11y": "^10.2.17",
45
+ "@storybook/addon-docs": "^10.2.17",
46
+ "@storybook/addon-vitest": "^10.2.17",
47
+ "@storybook/react-vite": "^10.2.17",
55
48
  "@testing-library/react": "^15.0.7",
56
49
  "@types/node": "^24.1.0",
57
50
  "@types/react": "^18.3.27",
@@ -67,7 +60,7 @@
67
60
  "eslint": "^9.39.2",
68
61
  "eslint-plugin-react-hooks": "^7.0.1",
69
62
  "eslint-plugin-react-refresh": "^0.4.26",
70
- "eslint-plugin-storybook": "^10.2.13",
63
+ "eslint-plugin-storybook": "^10.2.17",
71
64
  "glob": "^13.0.6",
72
65
  "globals": "^17.0.0",
73
66
  "jsdom": "^27.4.0",
@@ -77,9 +70,8 @@
77
70
  "prettier": "^3.7.4",
78
71
  "react": "^18.3.1",
79
72
  "react-dom": "^18.3.1",
80
- "react-input-mask": "^2.0.4",
81
73
  "react-signature-canvas": "^1.0.7",
82
- "storybook": "^10.2.13",
74
+ "storybook": "^10.2.17",
83
75
  "typescript": "^5.9.3",
84
76
  "typescript-eslint": "^8.52.0",
85
77
  "usehooks-ts": "^3.1.1",
@@ -1,31 +0,0 @@
1
- function u(e) {
2
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
- }
4
- function c(e) {
5
- if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
6
- var n = e.default;
7
- if (typeof n == "function") {
8
- var t = function r() {
9
- var o = !1;
10
- try {
11
- o = this instanceof r;
12
- } catch {
13
- }
14
- return o ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
15
- };
16
- t.prototype = n.prototype;
17
- } else t = {};
18
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
19
- var o = Object.getOwnPropertyDescriptor(e, r);
20
- Object.defineProperty(t, r, o.get ? o : {
21
- enumerable: !0,
22
- get: function() {
23
- return e[r];
24
- }
25
- });
26
- }), t;
27
- }
28
- export {
29
- c as a,
30
- u as g
31
- };
@@ -1,2 +0,0 @@
1
- import { BaseFadeAnimationProps } from '../utils';
2
- export declare const AnimationFadeGrow: (props: BaseFadeAnimationProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export { AnimationFadeGrow } from './animation-fade-grow.component';
@@ -1,4 +0,0 @@
1
- import { AnimationFadeGrow as a } from "./animation-fade-grow.component.js";
2
- export {
3
- a as AnimationFadeGrow
4
- };
@@ -1,2 +0,0 @@
1
- import { BaseFadeAnimationProps } from '../utils';
2
- export declare const AnimationFadeScale: (props: BaseFadeAnimationProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export { AnimationFadeScale } from './animation-fade-scale.component';
@@ -1,4 +0,0 @@
1
- import { AnimationFadeScale as o } from "./animation-fade-scale.component.js";
2
- export {
3
- o as AnimationFadeScale
4
- };
@@ -1,6 +0,0 @@
1
- import { BaseFadeAnimationProps } from '../utils';
2
- interface AnimationFadeSlideProps extends BaseFadeAnimationProps {
3
- direction?: 'ltr' | 'rtl';
4
- }
5
- export declare const AnimationFadeSlide: (props: AnimationFadeSlideProps) => import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -1 +0,0 @@
1
- export { AnimationFadeSlide } from './animation-fade-slide.component';
@@ -1,4 +0,0 @@
1
- import { AnimationFadeSlide as o } from "./animation-fade-slide.component.js";
2
- export {
3
- o as AnimationFadeSlide
4
- };
@@ -1 +0,0 @@
1
- export { AnimationRotate } from './animation-rotate.component';
@@ -1,4 +0,0 @@
1
- import { AnimationRotate as a } from "./animation-rotate.component.js";
2
- export {
3
- a as AnimationRotate
4
- };
@@ -1 +0,0 @@
1
- ._ControlBox_1utix_1{flex-basis:100%;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;align-self:stretch;border-radius:10px;border-width:1px;border-style:solid;background-color:transparent;transition:border-color .15s ease-out}._Checked_1utix_15{border-color:var(--rm-ui-color-action);outline:2px solid var(--rm-ui-color-action);outline-offset:-2px}._Idle_1utix_21{border-color:var(--rm-ui-grey-300)}._Focused_1utix_25{border-color:var(--rm-ui-color-focus);border-color:-webkit-focus-ring-color}._Error_1utix_30{border-color:var(--rm-ui-color-error)}._Success_1utix_34{border-color:var(--rm-ui-color-success)}
@@ -1 +0,0 @@
1
- ._ControlButtonCard_1luaz_1{--icon-size: 24px;flex-basis:100%;padding:var(--rm-ui-padding-md);outline:none;display:flex;flex-wrap:nowrap}._ControlButtonCard_1luaz_1:disabled ._Icon_1luaz_10{stroke:var(--rm-ui-color-text-secondary)}._IconTop_1luaz_14{flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--rm-ui-padding-xxs)}._IconTop_1luaz_14 ._Text_1luaz_21{flex-basis:100%}._IconLeft_1luaz_25{flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-sm)}._IconLeft_1luaz_25 ._Text_1luaz_21{flex-basis:calc(100% - var(--rm-ui-padding-sm) - var(--icon-size));justify-content:flex-start}._Icon_1luaz_10{width:var(--icon-size);height:var(--icon-size);stroke:var(--rm-ui-color-text-primary);transition:stroke var(--rm-ui-amimation-speed-secondary) var(--rm-ui-amimation-cubic-primary)}
@@ -1 +0,0 @@
1
- ._ControlButtonRadio_1jar9_1{--icon-size: 24px;--icon-gap: var(--rm-ui-padding-sm);flex-basis:100%;padding:var(--rm-ui-padding-md);outline:none;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start}._Row_1jar9_14{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-sm)}._Wrap_1jar9_23{display:flex;flex-direction:row;flex-wrap:wrap;flex-grow:1;align-items:flex-start;justify-content:flex-start}._Content_1jar9_32{margin-left:var(--icon-gap);flex-basis:calc(100% - var(--icon-size) - var(--icon-gap));display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._Text_1jar9_42{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-accent-primary);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);text-align:left}._Hint_1jar9_50{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}
@@ -1 +0,0 @@
1
- ._ControlButtonText_1t9qc_1{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);border-radius:var(--rm-ui-border-radius-sm);padding:var(--rm-ui-padding-xxs)}._TextPrimary_1t9qc_11{color:var(--rm-ui-color-text-primary)}._TextSecondary_1t9qc_15{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_1t9qc_19{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_1t9qc_23{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_1t9qc_27{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_1t9qc_31{color:var(--rm-ui-color-theme-secondary)}._Left_1t9qc_35{flex-direction:row}._Right_1t9qc_39{flex-direction:row-reverse}._Icon_1t9qc_43{stroke-width:1.5}._SM_1t9qc_47 ._Icon_1t9qc_43{width:20px;height:20px}._MD_1t9qc_52 ._Icon_1t9qc_43{width:22px;height:22px}._LG_1t9qc_57 ._Icon_1t9qc_43{width:24px;height:24px}._SM_1t9qc_47 ._Content_1t9qc_62{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._MD_1t9qc_52 ._Content_1t9qc_62{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._LG_1t9qc_57 ._Content_1t9qc_62{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._Content_1t9qc_62{text-decoration:none}._Light_1t9qc_81{font-weight:var(--rm-ui-font-weight-light)}._Regular_1t9qc_85{font-weight:var(--rm-ui-font-weight-regular)}._Medium_1t9qc_89{font-weight:var(--rm-ui-font-weight-medium)}._Bold_1t9qc_93{font-weight:var(--rm-ui-font-weight-bold)}._Underlined_1t9qc_97{text-decoration:underline}
@@ -1 +0,0 @@
1
- ._ControlCardImage_d0esr_1{--font-size: 12px;--line-height: 14px;--img-size: 110px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--rm-ui-padding-xs)}._Content_d0esr_13{width:135px;height:130px;padding:6px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}._Content_d0esr_13:hover{cursor:pointer}._Top_d0esr_27{position:relative;flex-grow:1}._Wrap_d0esr_32{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:var(--img-size);height:var(--img-size);background-repeat:no-repeat;background-size:700%}._Bottom_d0esr_43{flex-basis:calc(var(--line-height) * 2);display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:var(--rm-ui-padding-xs)}
@@ -1 +0,0 @@
1
- ._ControlCardText_1rrqs_1{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-sm)}._Label_1rrqs_9{position:relative;padding:var(--rm-ui-padding-md) var(--rm-ui-padding-sm);flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_1rrqs_9:hover{cursor:pointer}._Choice_1rrqs_24{display:flex;flex-direction:row;align-items:center;justify-content:center}
@@ -1 +0,0 @@
1
- ._ControlCheckbox_1x82h_1{display:flex;flex-direction:column}._Label_1x82h_6{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_1x82h_6:hover{cursor:pointer}._Choice_1x82h_19{position:relative;left:0;top:3px}._Content_1x82h_25{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._Content_1x82h_25 button{color:var(--rm-ui-color-link);outline-offset:2px}._Content_1x82h_25 button:hover{cursor:pointer;text-decoration:underline}._Content_1x82h_25 button:focus-visible{outline-color:var(--rm-ui-color-focus)}._Body_1x82h_44{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodySmall_1x82h_49{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ErrorMessage_1x82h_54{padding-top:var(--rm-ui-padding-xxs)}
@@ -1 +0,0 @@
1
- ._ControlChoice_f26v8_1{margin:1px;position:relative;background-color:var(--rm-ui-card-background);outline-offset:0;outline:1px solid transparent;box-sizing:border-box;border-width:2px;border-style:solid;width:18px;height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:outline-color .15s ease-out,background-color .15s ease-out,border-color .15s ease-out}._Focused_f26v8_24:not(._Disabled_f26v8_24){outline-color:var(--rm-ui-color-focus)}._Hovered_f26v8_28._Idle_f26v8_28{background-color:var(--rm-ui-grey-300)}._Disabled_f26v8_24{opacity:.33}._Idle_f26v8_28{border-color:var(--rm-ui-grey-300)}._Success_f26v8_40{border-color:var(--rm-ui-color-action)}._Error_f26v8_44{border-color:var(--rm-ui-color-error)}._Radio_f26v8_50{border-radius:100%}._Radio_f26v8_50._Checked_f26v8_54._Idle_f26v8_28,._Radio_f26v8_50._Checked_f26v8_54._Success_f26v8_40{background-color:var(--rm-ui-color-action)}._Radio_f26v8_50._Checked_f26v8_54._Error_f26v8_44{background-color:var(--rm-ui-color-error)}._Radio_f26v8_50 ._ChoiceMark_f26v8_63{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:transparent}._Radio_f26v8_50._XXS_f26v8_73 ._ChoiceMark_f26v8_63{width:5px;height:5px}._Radio_f26v8_50._XS_f26v8_78 ._ChoiceMark_f26v8_63{width:6px;height:6px}._Radio_f26v8_50._SM_f26v8_83 ._ChoiceMark_f26v8_63{width:7px;height:7px}._Radio_f26v8_50._MD_f26v8_88 ._ChoiceMark_f26v8_63{width:8px;height:8px}._Radio_f26v8_50._LG_f26v8_93 ._ChoiceMark_f26v8_63{width:9px;height:9px}._Radio_f26v8_50._XL_f26v8_98 ._ChoiceMark_f26v8_63{width:10px;height:10px}._Radio_f26v8_50._XXL_f26v8_103 ._ChoiceMark_f26v8_63{width:11px;height:11px}._Radio_f26v8_50._XXXL_f26v8_108 ._ChoiceMark_f26v8_63{width:12px;height:12px}._Radio_f26v8_50._Checked_f26v8_54 ._ChoiceMark_f26v8_63,._Radio_f26v8_50._Hovered_f26v8_28 ._ChoiceMark_f26v8_63{background-color:var(--rm-ui-card-background)}._Checkbox_f26v8_120{border-radius:4px}._Checkbox_f26v8_120._Checked_f26v8_54._Idle_f26v8_28,._Checkbox_f26v8_120._Checked_f26v8_54._Success_f26v8_40{background-color:var(--rm-ui-color-action)}._Checkbox_f26v8_120._Checked_f26v8_54._Error_f26v8_44{background-color:var(--rm-ui-color-error)}._Checkbox_f26v8_120 ._ChoiceMark_f26v8_63{position:absolute;content:"";top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;stroke-width:3px;stroke:transparent}._Checkbox_f26v8_120._XXS_f26v8_73 ._ChoiceMark_f26v8_63{width:4px;height:4px}._Checkbox_f26v8_120._XS_f26v8_78 ._ChoiceMark_f26v8_63{width:6px;height:6px}._Checkbox_f26v8_120._XS_f26v8_78 ._ChoiceMark_f26v8_63{width:8px;height:8px}._Checkbox_f26v8_120._SM_f26v8_83 ._ChoiceMark_f26v8_63{width:10px;height:10px}._Checkbox_f26v8_120._MD_f26v8_88 ._ChoiceMark_f26v8_63{width:12px;height:12px}._Checkbox_f26v8_120._LG_f26v8_93 ._ChoiceMark_f26v8_63{width:14px;height:14px}._Checkbox_f26v8_120._XL_f26v8_98 ._ChoiceMark_f26v8_63{width:16px;height:16px}._Checkbox_f26v8_120._XXL_f26v8_103 ._ChoiceMark_f26v8_63{width:18px;height:18px}._Checkbox_f26v8_120._XXXL_f26v8_108 ._ChoiceMark_f26v8_63{width:20px;height:20px}._Checkbox_f26v8_120._Checked_f26v8_54 ._ChoiceMark_f26v8_63,._Checkbox_f26v8_120._Hovered_f26v8_28 ._ChoiceMark_f26v8_63{stroke:var(--rm-ui-card-background)}._XXS_f26v8_73{width:12px;height:12px}._XS_f26v8_78{width:14px;height:14px}._SM_f26v8_83{width:16px;height:16px}._MD_f26v8_88{width:18px;height:18px}._LG_f26v8_93{width:20px;height:20px}._XL_f26v8_98{width:22px;height:22px}._XXL_f26v8_103{width:24px;height:24px}._XXXL_f26v8_108{width:26px;height:26px}
@@ -1 +0,0 @@
1
- ._ControlDropdown_1jnau_1{--transition-time: .2s;--under-chevron: linear-gradient(90deg, rgba(255, 255, 255, 0) -10%, rgba(255, 255, 255, .5411764706) 25%, #fff 50%);--border-radius: 3px;position:relative;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-primary);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._Border_1jnau_17{position:relative;min-height:60px;flex-grow:1;display:flex;align-items:center;justify-content:flex-start;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);overflow:hidden}._Content_1jnau_28{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}._Border_1jnau_17:hover{cursor:pointer}._Chevron_1jnau_39{width:24px;height:24px;transition:transform var(--transition-time) ease-out}._Chevron_1jnau_39[data-open=false]{transform:rotate(0)}._Chevron_1jnau_39[data-open=true]{transform:rotate(180deg)}._ChevronWrap_1jnau_53{position:absolute;z-index:1;right:0;top:50%;transform:translateY(-50%);background:var(--under-chevron);border-radius:10px;width:80px;height:100%;padding-right:var(--rm-ui-padding-sm);display:flex;justify-content:flex-end;align-items:center}._Box_1jnau_69{flex-grow:1;border-radius:10px;background-color:var(--rm-ui-grey-50)}._BoxVisible_1jnau_75{display:block}._BoxHidden_1jnau_79{display:none}._Search_1jnau_83{position:relative;border-bottom:1px var(--rm-ui-grey-300) solid;padding:var(--rm-ui-padding-sm)}._SearchVisible_1jnau_89{display:block}._SearchHidden_1jnau_93{display:none}._Close_1jnau_97{border-top:1px var(--rm-ui-grey-300) solid;padding:var(--rm-ui-padding-sm);display:flex;flex-direction:row;align-items:center;justify-content:flex-end}._Input_1jnau_106{width:100%;border-radius:10px;padding:var(--rm-ui-padding-xs) calc(var(--rm-ui-padding-sm) * 2 + 12px) var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);border:1px var(--rm-ui-grey-300) solid;box-sizing:border-box;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary);outline-color:var(--rm-ui-color-accent-primary)}._Glass_1jnau_120{position:absolute;z-index:1;right:calc(var(--rm-ui-padding-sm) * 2);top:50%;transform:translateY(-50%);width:24px;height:24px;color:var(--rm-ui-grey-300)}._Choices_1jnau_131{max-height:228px;overflow-y:scroll;border-radius:10px}._Choice_1jnau_131{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-sm);padding:6px var(--rm-ui-padding-sm)}._Choice_1jnau_131:hover{cursor:pointer;background-color:#fff}._ChoiceNoResult_1jnau_151{color:var(--rm-ui-grey-600);text-align:center}html[dir=rtl] ._Glass_1jnau_120{left:31px;right:initial}html[dir=rtl] ._ChevronWrap_1jnau_53{left:19px;right:initial}
@@ -1 +0,0 @@
1
- ._ControlErrorMessage_1fr5j_1{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small);color:var(--rm-ui-color-error)}
@@ -1 +0,0 @@
1
- ._ControlHiddenInput_kzyme_1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@@ -1 +0,0 @@
1
- ._ControlInput_1rfnu_1{outline:none;box-sizing:border-box;width:100%;border:none;font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._ControlInput_1rfnu_1:hover{cursor:pointer}._ControlInput_1rfnu_1:disabled{opacity:.33}._ControlInput_1rfnu_1:disabled,._ControlInput_1rfnu_1:-webkit-autofill,._ControlInput_1rfnu_1:-webkit-autofill:hover,._ControlInput_1rfnu_1:-webkit-autofill:focus,._ControlInput_1rfnu_1:-webkit-autofill:active,._ControlInput_1rfnu_1:autofill,._ControlInput_1rfnu_1:autofill:hover,._ControlInput_1rfnu_1:autofill:focus,._ControlInput_1rfnu_1:autofill:active{background:transparent;transition:background 7200s ease-in-out 0s}._ControlInput_1rfnu_1:-webkit-autofill{animation-name:_autofill-start_1rfnu_1;animation-duration:.1s;-webkit-text-fill-color:var(--rm-ui-color-text-primary)}._ControlInput_1rfnu_1:not(:-webkit-autofill){animation-name:_autofill-cancel_1rfnu_1;animation-duration:.1s}@keyframes _autofill-start_1rfnu_1{}@keyframes _autofill-cancel_1rfnu_1{}
@@ -1 +0,0 @@
1
- ._ControlLabel_l2cwl_1{font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-secondary);transition:color .15s ease-out}._Idle_l2cwl_7{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._Active_l2cwl_12{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._Error_l2cwl_17{color:var(--rm-ui-color-error)}._Success_l2cwl_21{color:var(--rm-ui-color-success)}
@@ -1 +0,0 @@
1
- ._ControlRadio_14a61_1{display:inline-flex;flex-direction:column}._Content_14a61_6{display:inline-flex}._Horizontal_14a61_10{flex-direction:row;gap:var(--rm-ui-padding-lg)}._Vertical_14a61_15{flex-direction:column;gap:var(--rm-ui-padding-xxs)}._Label_14a61_20{position:relative;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Label_14a61_20:hover{cursor:pointer}._ErrorMessage_14a61_33{padding-top:var(--rm-ui-padding-xxs)}
@@ -1 +0,0 @@
1
- ._ControlRadioLabel_14ean_1{display:flex}._ControlRadioLabel_14ean_1:hover{cursor:pointer}
@@ -1 +0,0 @@
1
- ._ControlRadioText_wkqvo_1{position:relative;display:flex;align-items:center;justify-content:center}._TextPrimary_wkqvo_8 ._Content_wkqvo_8{color:var(--rm-ui-color-text-primary)}._TextSecondary_wkqvo_12 ._Content_wkqvo_8{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_wkqvo_16 ._Content_wkqvo_8{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_wkqvo_20 ._Content_wkqvo_8{color:var(--rm-ui-color-accent-secondary)}._BodyExtraSmall_wkqvo_24 ._Content_wkqvo_8{font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-font-size-body-extra-small)}._BodySmall_wkqvo_29 ._Content_wkqvo_8{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-font-size-body-small)}._Body_wkqvo_24 ._Content_wkqvo_8{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodyLarge_wkqvo_39 ._Content_wkqvo_8{font-size:var(--rm-ui-font-size-body-large);line-height:var(--rm-ui-line-height-body-large)}._OneLine_wkqvo_44,._OneLine_wkqvo_44 ._Content_wkqvo_8{white-space:nowrap}._Checked_wkqvo_49 ._Content_wkqvo_8{font-weight:var(--rm-ui-font-weight-medium)}._Content_wkqvo_8{position:relative;transition:color var(--rm-ui-amimation-speed-secondary) var(--rm-ui-amimation-cubic-primary)}._Content_wkqvo_8{text-align:left;white-space:pre-wrap;font-weight:var(--rm-ui-font-weight-regular)}
@@ -1 +0,0 @@
1
- ._ControlStatus_hj1em_1{position:relative;display:inline-flex}._Circle_hj1em_6{stroke-width:2px;transition:stroke var(--rm-ui-amimation-cubic-primary) var(--rm-ui-amimation-speed-primary),fill var(--rm-ui-amimation-cubic-primary) var(--rm-ui-amimation-speed-primary),fill-opacity var(--rm-ui-amimation-cubic-primary) var(--rm-ui-amimation-speed-primary)}._Idle_hj1em_14{stroke:var(--rm-ui-status-idle-color);fill:var(--rm-ui-status-idle-color);fill-opacity:.1}._Success_hj1em_20{stroke:var(--rm-ui-status-success-color);fill:var(--rm-ui-status-success-color);fill-opacity:1}._Error_hj1em_26{stroke:var(--rm-ui-status-error-color);fill:var(--rm-ui-status-error-color);fill-opacity:1}._IconContent_hj1em_32{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%)}._IconAnimate_hj1em_40{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center}._Check_hj1em_48,._X_hj1em_49{stroke-width:2.5;stroke:#fff}
@@ -1 +0,0 @@
1
- ._ControlText_11mtx_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._ControlText_11mtx_1:hover{cursor:pointer}._Content_11mtx_14{box-sizing:border-box;position:relative;flex-grow:1;height:58px;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);display:flex;flex-direction:row;justify-content:stretch;align-items:flex-end}._Label_11mtx_26{position:absolute;left:var(--rm-ui-padding-sm);transition:top var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary)}._LabelIdle_11mtx_32{top:50%;transform:translateY(-50%)}._LabelActive_11mtx_37{top:var(--rm-ui-padding-xs);transform:translateY(0)}._Placeholder_11mtx_42{position:absolute;z-index:1;bottom:var(--rm-ui-padding-xs);left:var(--rm-ui-padding-sm)}._PlaceholderText_11mtx_49{opacity:.75;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-secondary)}._ErrorMessage_11mtx_57{padding-left:var(--rm-ui-padding-sm)}
@@ -1 +0,0 @@
1
- ._ControlTextarea_rcp54_1{display:flex;flex-direction:column}._Input_rcp54_6{resize:none;outline:none;box-sizing:border-box;width:100%;border:none;border-radius:10px;padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm);font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._Input_rcp54_6:hover{cursor:pointer}._Input_rcp54_6:disabled{opacity:.33}._Input_rcp54_6:disabled,._Input_rcp54_6:-webkit-autofill,._Input_rcp54_6:-webkit-autofill:hover,._Input_rcp54_6:-webkit-autofill:focus,._Input_rcp54_6:-webkit-autofill:active,._Input_rcp54_6:autofill,._Input_rcp54_6:autofill:hover,._Input_rcp54_6:autofill:focus,._Input_rcp54_6:autofill:active{background:transparent;transition:background 7200s ease-in-out 0s}._Input_rcp54_6:-webkit-autofill{animation-name:_autofill-start_rcp54_1;animation-duration:.1s;-webkit-text-fill-color:var(--rm-ui-grey-500)}._Input_rcp54_6:not(:-webkit-autofill){animation-name:_autofill-cancel_rcp54_1;animation-duration:.1s}._ErrorMessage_rcp54_52{padding-top:var(--rm-ui-padding-xxs)}@keyframes _autofill-start_rcp54_1{}@keyframes _autofill-cancel_rcp54_1{}
@@ -1 +0,0 @@
1
- ._Signature_qgimg_1{background-color:transparent}._SignatureMain_qgimg_5{--title-height: 40px;overflow:hidden;position:relative;padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) calc(var(--rm-ui-padding-md) + var(--title-height));border:1px solid var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-sm)}._SignatureMainAuto_qgimg_15{padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) var(--rm-ui-padding-md)}._SignatureMainManual_qgimg_19{padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) calc(var(--rm-ui-padding-md) + var(--title-height))}._Buttons_qgimg_24{margin-top:var(--rm-ui-padding-md);display:flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-md)}._Header_qgimg_34{position:absolute;z-index:1;top:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex}._HeaderManualDraw_qgimg_43{justify-content:flex-end}._HeaderNotManualDraw_qgimg_47{justify-content:center}._Content_qgimg_51{display:flex;align-items:flex-end;justify-content:center}._AutoContent_qgimg_57{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}._SignatureHeaderReset_qgimg_64{position:relative;z-index:1}._SignatureManualPanel_qgimg_71>canvas,._SignatureManualPanel_qgimg_71>img{position:absolute;top:0;left:0}._SignatureManualPanelPlaceholder_qgimg_78{height:94px}._SignatureManualPanelButton_qgimg_82{position:absolute;z-index:1;bottom:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center}._SignatureAutoPanelImage_qgimg_97{height:46px;max-width:100%;display:block}._SignatureAutoPanelLoader_qgimg_103{height:142px;display:inline-flex;align-items:center;padding:var(--rm-ui-padding-xs)}._SignatureAutoPanelNoteIcon_qgimg_110{stroke:var(--rm-ui-color-success)}._SignatureAutoPanelButton_qgimg_114{margin:8px 0}._SignatureAutoLabel_qgimg_118{margin:var(--rm-ui-padding-xs) 0;display:flex;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xxs)}._SignatureErrorLoading_qgimg_127{height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs)}
@@ -1,14 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { State } from '../utils/types';
3
- import { Base } from '../../utils/types';
4
- export interface ControlBoxProps extends PropsWithChildren<Base> {
5
- state?: State;
6
- focused?: boolean;
7
- checked?: boolean;
8
- onClick?: () => void;
9
- }
10
- /**
11
- * `ControlBox` provides a consistent frame for checkbox/radio-like controls. It handles visual
12
- * states (`idle`, `error`, `success`) plus `focused` and `checked` modifiers.
13
- */
14
- export declare const ControlBox: import('react').ForwardRefExoticComponent<ControlBoxProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,33 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- import u from "clsx";
4
- import { baseProps as e } from "../../utils/functions/functions.util.js";
5
- import '../../assets/control-box-Dx-QKPgf.css';const x = "_ControlBox_1utix_1", m = "_Checked_1utix_15", C = "_Idle_1utix_21", a = "_Focused_1utix_25", f = "_Success_1utix_34", o = {
6
- ControlBox: x,
7
- Checked: m,
8
- Idle: C,
9
- Focused: a,
10
- Error: "_Error_1utix_30",
11
- Success: f
12
- }, F = n(
13
- ({ children: r, focused: t = !1, checked: d = !1, state: c = "idle", onClick: l = () => {
14
- }, ...s }, _) => /* @__PURE__ */ i(
15
- "div",
16
- {
17
- "data-testid": e(s, "data-testid", "control-box"),
18
- ref: _,
19
- className: u(o.ControlBox, e(s, "className"), {
20
- [o.Focused]: t,
21
- [o.Checked]: d,
22
- [o.Idle]: c === "idle",
23
- [o.Error]: c === "error",
24
- [o.Success]: c === "success"
25
- }),
26
- onClick: () => l(),
27
- children: r
28
- }
29
- )
30
- );
31
- export {
32
- F as ControlBox
33
- };
@@ -1,2 +0,0 @@
1
- export { ControlBox } from './control-box.component';
2
- export type { ControlBoxProps } from './control-box.component';
@@ -1,4 +0,0 @@
1
- import { ControlBox as t } from "./control-box.component.js";
2
- export {
3
- t as ControlBox
4
- };
@@ -1,84 +0,0 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import h from "clsx";
3
- import { AnimationFadeScale as c } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
4
- import { Loader as x } from "../../components/loader/loader.component.js";
5
- import { Content as C } from "../../utils/content/content.component.js";
6
- import { withControl as M, baseProps as i } from "../../utils/functions/functions.util.js";
7
- import '../../assets/control-button-Tzg6F5Dp.css';const S = "_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", g = "_Content_1b52a_94", j = "_Loader_1b52a_110", t = {
8
- Button: S,
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: g,
20
- Loader: j
21
- }, H = ({
22
- children: _,
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: o = !1,
30
- preventDefault: u = !1,
31
- blurAfterClick: b = !1,
32
- onClick: f = () => {
33
- },
34
- onFocus: p = () => {
35
- },
36
- onBlur: L = () => {
37
- },
38
- ...e
39
- }) => /* @__PURE__ */ s(
40
- "button",
41
- {
42
- "data-testid": i(e, "data-testid", "control-button"),
43
- type: d,
44
- disabled: m || o,
45
- className: h(t.Button, i(e, "className"), {
46
- [t.SM]: r === "sm",
47
- [t.MD]: r === "md",
48
- [t.LG]: r === "lg",
49
- [t.Primary]: a === "primary",
50
- [t.Secondary]: a === "secondary",
51
- [t.Tertiary]: a === "tertiary",
52
- [t.FullWidth]: y,
53
- [t.Loading]: o
54
- }),
55
- onClick: M(f, { prevent: u, blur: b }),
56
- onFocus: () => p(),
57
- onBlur: () => L(),
58
- children: [
59
- /* @__PURE__ */ n(c, { name: "loader", condition: o, className: t.Loader, children: /* @__PURE__ */ n(
60
- x,
61
- {
62
- size: "xs",
63
- color: (() => {
64
- switch (a) {
65
- case "primary":
66
- return "white";
67
- case "secondary":
68
- return "text-secondary";
69
- case "tertiary":
70
- return "text-primary";
71
- }
72
- })()
73
- }
74
- ) }),
75
- /* @__PURE__ */ s(c, { name: "content", keepMount: !0, condition: !o, className: t.Content, children: [
76
- /* @__PURE__ */ n("span", { className: t.Text, children: _ }),
77
- /* @__PURE__ */ n(C, { className: t.Info, children: l })
78
- ] })
79
- ]
80
- }
81
- );
82
- export {
83
- H as ControlButton
84
- };
@@ -1,2 +0,0 @@
1
- export { ControlButton } from './control-button.component';
2
- export type { ControlButtonProps } from './control-button.component';
@@ -1,4 +0,0 @@
1
- import { ControlButton as r } from "./control-button.component.js";
2
- export {
3
- r as ControlButton
4
- };
@@ -1,65 +0,0 @@
1
- import { jsx as t, jsxs as T } from "react/jsx-runtime";
2
- import { useRef as B } from "react";
3
- import { useHover as b, useToggle as g } from "usehooks-ts";
4
- import v from "clsx";
5
- import { ControlBox as z } from "../control-box/control-box.component.js";
6
- import { ControlRadioText as h } from "../control-radio-text/control-radio-text.component.js";
7
- import { Svg as k } from "../../utils/svg/svg.component.js";
8
- import '../../assets/control-button-card-Cb8_vJbQ.css';const L = "_ControlButtonCard_1luaz_1", y = "_Icon_1luaz_10", N = "_IconTop_1luaz_14", F = "_Text_1luaz_21", R = "_IconLeft_1luaz_25", o = {
9
- ControlButtonCard: L,
10
- Icon: y,
11
- IconTop: N,
12
- Text: F,
13
- IconLeft: R
14
- }, q = (a) => {
15
- const {
16
- children: u,
17
- onClick: i,
18
- onFocus: f,
19
- onBlur: m,
20
- icon: d = null,
21
- iconPosition: n = "top",
22
- active: e = !1,
23
- disabled: l = !1,
24
- preventDefault: p = !1,
25
- blurAfterClick: C = !1,
26
- className: _
27
- } = a, c = B(null), x = b(c), [I, r] = g(!1);
28
- return /* @__PURE__ */ t(z, { ref: c, checked: e || x, state: "idle", focused: I, className: _, children: /* @__PURE__ */ T(
29
- "button",
30
- {
31
- type: "button",
32
- disabled: l,
33
- className: v(o.ControlButtonCard, {
34
- [o.IconTop]: n === "top",
35
- [o.IconLeft]: n === "left"
36
- }),
37
- onClick: (s) => {
38
- p && s.preventDefault(), C && s.currentTarget.blur(), i?.call(null);
39
- },
40
- onFocus: () => {
41
- r(), f?.call(null);
42
- },
43
- onBlur: () => {
44
- r(), m?.call(null);
45
- },
46
- children: [
47
- /* @__PURE__ */ t(k, { icon: d, className: o.Icon }),
48
- /* @__PURE__ */ t(
49
- h,
50
- {
51
- oneLine: !0,
52
- size: "body",
53
- checked: e,
54
- color: l ? "text-secondary" : "text-primary",
55
- className: o.Text,
56
- children: u
57
- }
58
- )
59
- ]
60
- }
61
- ) });
62
- };
63
- export {
64
- q as ControlButtonCard
65
- };
@@ -1,2 +0,0 @@
1
- export { ControlButtonCard } from './control-button-card.component';
2
- export type { ControlButtonCardProps } from './control-button-card.component';
@@ -1,4 +0,0 @@
1
- import { ControlButtonCard as t } from "./control-button-card.component.js";
2
- export {
3
- t as ControlButtonCard
4
- };
@@ -1,19 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { Base } from '../../utils/types';
3
- type ControlButtonRadioInfo = {
4
- text?: string;
5
- hintLeft?: string;
6
- hintRight?: string;
7
- };
8
- export interface ControlButtonRadioProps extends PropsWithChildren<Base> {
9
- active?: boolean;
10
- disabled?: boolean;
11
- preventDefault?: boolean;
12
- blurAfterClick?: boolean;
13
- info?: ControlButtonRadioInfo;
14
- onClick?: () => void;
15
- onFocus?: () => void;
16
- onBlur?: () => void;
17
- }
18
- export declare const ControlButtonRadio: (props: ControlButtonRadioProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};