@pedidopago/ui 1.3.10 → 1.3.13

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 (386) hide show
  1. package/README.md +93 -93
  2. package/dist/@types/index.d.ts +6 -6
  3. package/dist/components/Alert/alert.test.d.ts +1 -1
  4. package/dist/components/Alert/index.d.ts +4 -4
  5. package/dist/components/Alert/styles.d.ts +24 -24
  6. package/dist/components/Alert/types.d.ts +44 -44
  7. package/dist/components/Avatar/avatar.test.d.ts +1 -1
  8. package/dist/components/Avatar/index.d.ts +4 -4
  9. package/dist/components/Avatar/styles.d.ts +25 -25
  10. package/dist/components/Avatar/types.d.ts +15 -15
  11. package/dist/components/Badge/badge.test.d.ts +1 -1
  12. package/dist/components/Badge/index.d.ts +4 -4
  13. package/dist/components/Badge/styles.d.ts +16 -16
  14. package/dist/components/Badge/types.d.ts +11 -11
  15. package/dist/components/Button/Button.test.d.ts +1 -1
  16. package/dist/components/Button/index.d.ts +3 -3
  17. package/dist/components/Button/styles.d.ts +14 -14
  18. package/dist/components/Button/types.d.ts +101 -101
  19. package/dist/components/Card/card.test.tsx.d.ts +1 -1
  20. package/dist/components/Card/index.d.ts +3 -3
  21. package/dist/components/Card/styles.d.ts +6 -6
  22. package/dist/components/Card/types.d.ts +16 -16
  23. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
  24. package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
  25. package/dist/components/CheckboxInput/index.d.ts +4 -4
  26. package/dist/components/CheckboxInput/styles.d.ts +31 -31
  27. package/dist/components/CheckboxInput/types.d.ts +26 -26
  28. package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
  29. package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
  30. package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
  31. package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
  32. package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
  33. package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
  34. package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
  35. package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
  36. package/dist/components/ColorPicker/index.d.ts +4 -4
  37. package/dist/components/ColorPicker/styles.d.ts +44 -44
  38. package/dist/components/ColorPicker/types.d.ts +73 -73
  39. package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
  40. package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
  41. package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
  42. package/dist/components/ColorPicker/utils/parsers.js +18 -18
  43. package/dist/components/DateInput/DateInput-example.d.ts +5 -5
  44. package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
  45. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +264 -264
  46. package/dist/components/DateInput/components/ModalWrapper/types.d.ts +13 -13
  47. package/dist/components/DateInput/dateInput.test.d.ts +1 -1
  48. package/dist/components/DateInput/index.d.ts +3 -3
  49. package/dist/components/DateInput/index.d.ts.map +1 -1
  50. package/dist/components/DateInput/index.js +11 -11
  51. package/dist/components/DateInput/styles.d.ts +266 -266
  52. package/dist/components/DateInput/types.d.ts +16 -16
  53. package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
  54. package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
  55. package/dist/components/DatePicker/components/DatePickerContent.js +12 -28
  56. package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
  57. package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
  58. package/dist/components/DatePicker/datepicker.test.js +0 -2
  59. package/dist/components/DatePicker/index.d.ts +4 -4
  60. package/dist/components/DatePicker/index.d.ts.map +1 -1
  61. package/dist/components/DatePicker/index.js +8 -6
  62. package/dist/components/DatePicker/styles.d.ts +74 -74
  63. package/dist/components/DatePicker/styles.d.ts.map +1 -1
  64. package/dist/components/DatePicker/styles.js +27 -21
  65. package/dist/components/DatePicker/types.d.ts +58 -58
  66. package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
  67. package/dist/components/Dialog/dialog-example.d.ts +3 -3
  68. package/dist/components/Dialog/dialog.test.d.ts +1 -1
  69. package/dist/components/Dialog/index.d.ts +3 -3
  70. package/dist/components/Dialog/styles.d.ts +25 -25
  71. package/dist/components/Dialog/types.d.ts +30 -30
  72. package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
  73. package/dist/components/Dropzone/index.d.ts +4 -4
  74. package/dist/components/Dropzone/styles.d.ts +46 -46
  75. package/dist/components/Dropzone/types.d.ts +19 -19
  76. package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
  77. package/dist/components/Dropzone/utils/accepts.js +8 -8
  78. package/dist/components/Flex/flex.test.d.ts +1 -1
  79. package/dist/components/Flex/index.d.ts +4 -4
  80. package/dist/components/Flex/styles.d.ts +296 -296
  81. package/dist/components/Flex/types.d.ts +175 -175
  82. package/dist/components/Grid/grid.test.d.ts +1 -1
  83. package/dist/components/Grid/index.d.ts +4 -4
  84. package/dist/components/Grid/styles.d.ts +288 -288
  85. package/dist/components/Grid/types.d.ts +88 -88
  86. package/dist/components/Icon/data/beauty.d.ts +8 -8
  87. package/dist/components/Icon/data/dash.d.ts +8 -8
  88. package/dist/components/Icon/data/dash.d.ts.map +1 -1
  89. package/dist/components/Icon/data/dash.js +1 -1
  90. package/dist/components/Icon/data/ecommerce.d.ts +8 -8
  91. package/dist/components/Icon/data/form.d.ts +8 -8
  92. package/dist/components/Icon/data/health.d.ts +8 -8
  93. package/dist/components/Icon/data/illustrations.d.ts +8 -8
  94. package/dist/components/Icon/data/men.d.ts +8 -8
  95. package/dist/components/Icon/data/payment.d.ts +8 -8
  96. package/dist/components/Icon/data/payment.d.ts.map +1 -1
  97. package/dist/components/Icon/data/payment.js +5 -19
  98. package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
  99. package/dist/components/Icon/data/social.d.ts +8 -8
  100. package/dist/components/Icon/data/status.d.ts +8 -8
  101. package/dist/components/Icon/data/summer.d.ts +8 -8
  102. package/dist/components/Icon/data/woman.d.ts +8 -8
  103. package/dist/components/Icon/icon.test.d.ts +1 -1
  104. package/dist/components/Icon/index.d.ts +4 -4
  105. package/dist/components/Icon/scripts/build.d.ts +5 -5
  106. package/dist/components/Icon/scripts/build.js +2 -2
  107. package/dist/components/Icon/scripts/extractor.d.ts +15 -15
  108. package/dist/components/Icon/scripts/extractor.js +5 -5
  109. package/dist/components/Icon/scripts/run-build.d.ts +1 -1
  110. package/dist/components/Icon/scripts/writers.d.ts +22 -22
  111. package/dist/components/Icon/scripts/writers.js +9 -9
  112. package/dist/components/Icon/styles.d.ts +13 -13
  113. package/dist/components/Icon/types.d.ts +8 -8
  114. package/dist/components/Icon/types.d.ts.map +1 -1
  115. package/dist/components/Icon/utils/allIcons.d.ts +8 -8
  116. package/dist/components/IconItem/IconItem.test.d.ts +1 -1
  117. package/dist/components/IconItem/index.d.ts +4 -4
  118. package/dist/components/IconItem/styles.d.ts +18 -18
  119. package/dist/components/IconItem/types.d.ts +22 -22
  120. package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
  121. package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
  122. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
  123. package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
  124. package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
  125. package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
  126. package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
  127. package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
  128. package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
  129. package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
  130. package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
  131. package/dist/components/Illustration/illustration.test.d.ts +1 -1
  132. package/dist/components/Illustration/index.d.ts +4 -4
  133. package/dist/components/Illustration/styles.d.ts +10 -10
  134. package/dist/components/Illustration/types.d.ts +6 -6
  135. package/dist/components/ImageItem/imageFake.d.ts +2 -2
  136. package/dist/components/ImageItem/index.d.ts +4 -4
  137. package/dist/components/ImageItem/input.test.d.ts +1 -1
  138. package/dist/components/ImageItem/styles.d.ts +26 -26
  139. package/dist/components/ImageItem/types.d.ts +25 -25
  140. package/dist/components/Input/index.d.ts +4 -4
  141. package/dist/components/Input/input.test.d.ts +1 -1
  142. package/dist/components/Input/styles.d.ts +68 -68
  143. package/dist/components/Input/types.d.ts +26 -26
  144. package/dist/components/Label/index.d.ts +4 -4
  145. package/dist/components/Label/label.test.d.ts +1 -1
  146. package/dist/components/Label/styles.d.ts +6 -6
  147. package/dist/components/Label/types.d.ts +15 -15
  148. package/dist/components/List/index.d.ts +4 -4
  149. package/dist/components/List/list.test.d.ts +1 -1
  150. package/dist/components/List/styles.d.ts +15 -15
  151. package/dist/components/List/types.d.ts +7 -7
  152. package/dist/components/Modal/ModalExample.d.ts +3 -3
  153. package/dist/components/Modal/index.d.ts +3 -3
  154. package/dist/components/Modal/modal.test.d.ts +1 -1
  155. package/dist/components/Modal/styles.d.ts +27 -27
  156. package/dist/components/Modal/types.d.ts +35 -35
  157. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
  158. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
  159. package/dist/components/MultipleSelect/components/OptionsArea/OptionsArea.d.ts +18 -18
  160. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +15 -15
  161. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +10 -10
  162. package/dist/components/MultipleSelect/components/SelectArea/Label.d.ts +6 -6
  163. package/dist/components/MultipleSelect/components/SelectArea/Label.js +35 -35
  164. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
  165. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +18 -18
  166. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
  167. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -1
  168. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +17 -16
  169. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
  170. package/dist/components/MultipleSelect/components/SelectArea/index.js +8 -5
  171. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +11 -0
  172. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -0
  173. package/dist/components/MultipleSelect/components/SelectArea/styles.js +42 -0
  174. package/dist/components/MultipleSelect/components/index.d.ts +3 -3
  175. package/dist/components/MultipleSelect/index.d.ts +5 -5
  176. package/dist/components/MultipleSelect/index.js +2 -2
  177. package/dist/components/MultipleSelect/types.d.ts +36 -37
  178. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  179. package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
  180. package/dist/components/Pagination/index.d.ts +3 -3
  181. package/dist/components/Pagination/index.d.ts.map +1 -1
  182. package/dist/components/Pagination/index.js +3 -0
  183. package/dist/components/Pagination/pagination.test.d.ts +1 -1
  184. package/dist/components/Pagination/styles.d.ts +34 -34
  185. package/dist/components/Pagination/types.d.ts +28 -28
  186. package/dist/components/Progress/Circle/index.d.ts +3 -3
  187. package/dist/components/Progress/Linear/index.d.ts +3 -3
  188. package/dist/components/Progress/getSteps.d.ts +1 -1
  189. package/dist/components/Progress/index.d.ts +4 -4
  190. package/dist/components/Progress/progress.test.d.ts +1 -1
  191. package/dist/components/Progress/style.d.ts +38 -38
  192. package/dist/components/Progress/type.d.ts +69 -69
  193. package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
  194. package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
  195. package/dist/components/RadioInput/components/ChoiceList/index.js +61 -76
  196. package/dist/components/RadioInput/index.d.ts +4 -4
  197. package/dist/components/RadioInput/index.d.ts.map +1 -1
  198. package/dist/components/RadioInput/index.js +22 -69
  199. package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
  200. package/dist/components/RadioInput/radio-input.test.js +44 -98
  201. package/dist/components/RadioInput/styles.d.ts +30 -30
  202. package/dist/components/RadioInput/styles.d.ts.map +1 -1
  203. package/dist/components/RadioInput/styles.js +5 -11
  204. package/dist/components/RadioInput/types.d.ts +32 -60
  205. package/dist/components/RadioInput/types.d.ts.map +1 -1
  206. package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
  207. package/dist/components/Rating/components/GradientIcon/data/dash.d.ts +8 -8
  208. package/dist/components/Rating/components/GradientIcon/data/ecommerce.d.ts +8 -8
  209. package/dist/components/Rating/components/GradientIcon/index.d.ts +4 -4
  210. package/dist/components/Rating/components/GradientIcon/scripts/build.d.ts +7 -7
  211. package/dist/components/Rating/components/GradientIcon/scripts/build.js +4 -4
  212. package/dist/components/Rating/components/GradientIcon/scripts/extractor.d.ts +15 -15
  213. package/dist/components/Rating/components/GradientIcon/scripts/extractor.js +5 -5
  214. package/dist/components/Rating/components/GradientIcon/scripts/writers.d.ts +22 -22
  215. package/dist/components/Rating/components/GradientIcon/scripts/writers.js +9 -9
  216. package/dist/components/Rating/components/GradientIcon/styles.d.ts +12 -12
  217. package/dist/components/Rating/components/GradientIcon/types.d.ts +15 -15
  218. package/dist/components/Rating/components/GradientIcon/utils/allIcons.d.ts +8 -8
  219. package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.d.ts +3 -3
  220. package/dist/components/Rating/components/RatingWithMultipleValues/styles.d.ts +6 -6
  221. package/dist/components/Rating/components/RatingWithMultipleValues/types.d.ts +16 -16
  222. package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.d.ts +3 -3
  223. package/dist/components/Rating/components/RatingWithSingleValue/icons/0.d.ts +3 -3
  224. package/dist/components/Rating/components/RatingWithSingleValue/icons/1.d.ts +3 -3
  225. package/dist/components/Rating/components/RatingWithSingleValue/icons/2.d.ts +3 -3
  226. package/dist/components/Rating/components/RatingWithSingleValue/icons/3.d.ts +3 -3
  227. package/dist/components/Rating/components/RatingWithSingleValue/icons/4.d.ts +3 -3
  228. package/dist/components/Rating/components/RatingWithSingleValue/icons/index.d.ts +6 -6
  229. package/dist/components/Rating/components/RatingWithSingleValue/styles.d.ts +6 -6
  230. package/dist/components/Rating/components/RatingWithSingleValue/types.d.ts +10 -10
  231. package/dist/components/Rating/index.d.ts +4 -4
  232. package/dist/components/Rating/rating.test.d.ts +1 -1
  233. package/dist/components/Rating/types.d.ts +28 -28
  234. package/dist/components/Rating/utils/IconObjectsController.d.ts +9 -9
  235. package/dist/components/Rating/utils/svgDataTratamentFunction.d.ts +9 -9
  236. package/dist/components/ReactPortal/index.d.ts +7 -7
  237. package/dist/components/ReactPortal/index.d.ts.map +1 -1
  238. package/dist/components/ReactPortal/index.js +1 -1
  239. package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
  240. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
  241. package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
  242. package/dist/components/Select/components/OptionsSelect/styles.d.ts +264 -264
  243. package/dist/components/Select/components/OptionsSelect/types.d.ts +15 -15
  244. package/dist/components/Select/index.d.ts +4 -4
  245. package/dist/components/Select/index.d.ts.map +1 -1
  246. package/dist/components/Select/index.js +12 -6
  247. package/dist/components/Select/select.test.d.ts +1 -1
  248. package/dist/components/Select/styles.d.ts +17 -17
  249. package/dist/components/Select/types.d.ts +22 -22
  250. package/dist/components/Skeleton/index.d.ts +4 -4
  251. package/dist/components/Skeleton/index.d.ts.map +1 -1
  252. package/dist/components/Skeleton/index.js +4 -5
  253. package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
  254. package/dist/components/Skeleton/styles.d.ts +7 -7
  255. package/dist/components/Skeleton/styles.d.ts.map +1 -1
  256. package/dist/components/Skeleton/styles.js +5 -3
  257. package/dist/components/Skeleton/types.d.ts +40 -35
  258. package/dist/components/Skeleton/types.d.ts.map +1 -1
  259. package/dist/components/Slider/SliderExample.d.ts +3 -3
  260. package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
  261. package/dist/components/Slider/components/SliderRail.d.ts +3 -3
  262. package/dist/components/Slider/components/SliderSelector.d.ts +3 -3
  263. package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
  264. package/dist/components/Slider/index.d.ts +4 -4
  265. package/dist/components/Slider/index.d.ts.map +1 -1
  266. package/dist/components/Slider/index.js +3 -0
  267. package/dist/components/Slider/slider.test.d.ts +1 -1
  268. package/dist/components/Slider/styles.d.ts +65 -65
  269. package/dist/components/Slider/types.d.ts +38 -38
  270. package/dist/components/Spinner/index.d.ts +4 -4
  271. package/dist/components/Spinner/spinner.test.d.ts +1 -1
  272. package/dist/components/Spinner/styles.d.ts +288 -288
  273. package/dist/components/Spinner/types.d.ts +11 -11
  274. package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
  275. package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
  276. package/dist/components/Steps/index.d.ts +4 -4
  277. package/dist/components/Steps/steps.test.d.ts +1 -1
  278. package/dist/components/Steps/styles.d.ts +45 -45
  279. package/dist/components/Steps/types.d.ts +20 -20
  280. package/dist/components/Steps/utils.d.ts +7 -7
  281. package/dist/components/Switch/index.d.ts +4 -4
  282. package/dist/components/Switch/styles.d.ts +18 -18
  283. package/dist/components/Switch/switch.test.d.ts +1 -1
  284. package/dist/components/Switch/types.d.ts +17 -17
  285. package/dist/components/Table/components/MenuItem.d.ts +3 -3
  286. package/dist/components/Table/index.d.ts +3 -3
  287. package/dist/components/Table/styles.d.ts +34 -34
  288. package/dist/components/Table/table.test.d.ts +1 -1
  289. package/dist/components/Table/types.d.ts +39 -39
  290. package/dist/components/Tabs/TabsExample.d.ts +3 -3
  291. package/dist/components/Tabs/components/Tab.d.ts +3 -3
  292. package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
  293. package/dist/components/Tabs/components/Tabs.d.ts +4 -4
  294. package/dist/components/Tabs/index.d.ts +3 -3
  295. package/dist/components/Tabs/styles.d.ts +39 -39
  296. package/dist/components/Tabs/tabs.test.d.ts +1 -1
  297. package/dist/components/Tabs/types.d.ts +49 -49
  298. package/dist/components/Tag/index.d.ts +4 -4
  299. package/dist/components/Tag/styles.d.ts +869 -869
  300. package/dist/components/Tag/tag.test.d.ts +1 -1
  301. package/dist/components/Tag/types.d.ts +9 -9
  302. package/dist/components/TextAreaInput/index.d.ts +4 -4
  303. package/dist/components/TextAreaInput/index.d.ts.map +1 -1
  304. package/dist/components/TextAreaInput/index.js +31 -21
  305. package/dist/components/TextAreaInput/styles.d.ts +18 -18
  306. package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
  307. package/dist/components/TextAreaInput/styles.js +15 -13
  308. package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
  309. package/dist/components/TextAreaInput/text-area-input.test.js +13 -13
  310. package/dist/components/TextAreaInput/types.d.ts +26 -25
  311. package/dist/components/TextAreaInput/types.d.ts.map +1 -1
  312. package/dist/components/Thumbnail/index.d.ts +3 -3
  313. package/dist/components/Thumbnail/styles.d.ts +42 -42
  314. package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
  315. package/dist/components/Thumbnail/types.d.ts +28 -28
  316. package/dist/components/Thumbnail/utils/index.d.ts +2 -2
  317. package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
  318. package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
  319. package/dist/components/Timeline/components/Timeline.d.ts +3 -3
  320. package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
  321. package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
  322. package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
  323. package/dist/components/Timeline/index.d.ts +4 -4
  324. package/dist/components/Timeline/styles.d.ts +31 -31
  325. package/dist/components/Timeline/timeline.test.d.ts +1 -1
  326. package/dist/components/Timeline/types.d.ts +20 -20
  327. package/dist/components/Toast/button-example.d.ts +6 -6
  328. package/dist/components/Toast/components/Toast.d.ts +4 -4
  329. package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
  330. package/dist/components/Toast/hooks/useToast.d.ts +2 -2
  331. package/dist/components/Toast/index.d.ts +3 -3
  332. package/dist/components/Toast/styles.d.ts +22 -22
  333. package/dist/components/Toast/toast.test.d.ts +1 -1
  334. package/dist/components/Toast/types.d.ts +26 -26
  335. package/dist/components/Tooltip/components/TooltipLabel.d.ts +3 -3
  336. package/dist/components/Tooltip/index.d.ts +4 -4
  337. package/dist/components/Tooltip/index.d.ts.map +1 -1
  338. package/dist/components/Tooltip/index.js +12 -7
  339. package/dist/components/Tooltip/styles.d.ts +261 -261
  340. package/dist/components/Tooltip/styles.d.ts.map +1 -1
  341. package/dist/components/Tooltip/styles.js +2 -2
  342. package/dist/components/Tooltip/types.d.ts +22 -21
  343. package/dist/components/Tooltip/types.d.ts.map +1 -1
  344. package/dist/components/Typography/index.d.ts +4 -4
  345. package/dist/components/Typography/styles.d.ts +20 -20
  346. package/dist/components/Typography/types.d.ts +15 -15
  347. package/dist/components/Typography/typography.test.d.ts +1 -1
  348. package/dist/index.d.ts +46 -46
  349. package/dist/shared/components/FocusLock/index.d.ts +7 -7
  350. package/dist/shared/hooks/breakpoints.d.ts +8 -8
  351. package/dist/shared/hooks/useBreakpoint.d.ts +8 -8
  352. package/dist/shared/hooks/useBreakpoint.js +5 -5
  353. package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
  354. package/dist/shared/hooks/useDisableBodyScroll.d.ts.map +1 -1
  355. package/dist/shared/hooks/useDisableBodyScroll.js +2 -1
  356. package/dist/shared/hooks/useKeyPress.d.ts +1 -1
  357. package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
  358. package/dist/shared/hooks/useWindowSize.d.ts +4 -4
  359. package/dist/shared/tests/test-utils.d.ts +4 -4
  360. package/dist/shared/theme/button-example.d.ts +2 -2
  361. package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
  362. package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
  363. package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
  364. package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
  365. package/dist/shared/theme/index.d.ts +7 -7
  366. package/dist/shared/theme/theme.d.ts +282 -282
  367. package/dist/shared/theme/theme.test.d.ts +1 -1
  368. package/dist/shared/theme/theme.types.d.ts +14 -14
  369. package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
  370. package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
  371. package/dist/utils/GenerateKey.d.ts +10 -10
  372. package/dist/utils/GenerateKey.js +6 -6
  373. package/dist/utils/brightnessColorChange.d.ts +8 -8
  374. package/dist/utils/brightnessColorChange.js +6 -6
  375. package/dist/utils/colorCheck.d.ts +40 -40
  376. package/dist/utils/colorCheck.js +24 -24
  377. package/dist/utils/colorFunctions.d.ts +2 -2
  378. package/dist/utils/colorToGray.d.ts +5 -5
  379. package/dist/utils/fuctionsColors.d.ts +2 -2
  380. package/dist/utils/generateUUID.d.ts +1 -1
  381. package/dist/utils/getColorValue.d.ts +291 -291
  382. package/dist/utils/getColorValue.js +8 -8
  383. package/dist/utils/getSvg.d.ts +10 -10
  384. package/dist/utils/invertColor.d.ts +7 -7
  385. package/dist/utils/invertColor.js +5 -5
  386. package/package.json +1 -1
@@ -32,11 +32,14 @@ describe('Radio Input', function () {
32
32
  it('should check input on Click on input', function () {
33
33
  var fn = jest.fn();
34
34
 
35
- var _render2 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
36
- onChange: fn,
37
- value: "test",
38
- id: "test",
39
- children: "Radio Test"
35
+ var _render2 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
36
+ radiosName: "radio",
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
38
+ onChange: fn,
39
+ value: "test",
40
+ id: "test",
41
+ children: "Radio Test"
42
+ })
40
43
  })),
41
44
  container = _render2.container;
42
45
 
@@ -49,11 +52,14 @@ describe('Radio Input', function () {
49
52
  it('should check input on Click label', function () {
50
53
  var fn = jest.fn();
51
54
 
52
- var _render3 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
53
- onChange: fn,
54
- value: "test",
55
- id: "test",
56
- children: "Radio Test"
55
+ var _render3 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
56
+ radiosName: "radio",
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
58
+ onChange: fn,
59
+ value: "test",
60
+ id: "test",
61
+ children: "Radio Test"
62
+ })
57
63
  })),
58
64
  container = _render3.container,
59
65
  getByText = _render3.getByText;
@@ -68,12 +74,15 @@ describe('Radio Input', function () {
68
74
  it('should checked input if defaultChecked is provided', function () {
69
75
  var fn = jest.fn();
70
76
 
71
- var _render4 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
72
- onChange: fn,
73
- value: "test",
74
- id: "test",
75
- defaultChecked: true,
76
- children: "Radio Test"
77
+ var _render4 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
78
+ defaultValue: "test",
79
+ radiosName: "radio",
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
81
+ onChange: fn,
82
+ value: "test",
83
+ id: "test",
84
+ children: "Radio Test"
85
+ })
77
86
  })),
78
87
  container = _render4.container;
79
88
 
@@ -83,87 +92,27 @@ describe('Radio Input', function () {
83
92
  it('should call onChange on Click input', function () {
84
93
  var fn = jest.fn();
85
94
 
86
- var _render5 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
87
- onChange: fn,
88
- value: "test",
89
- id: "test",
90
- children: "Radio Test"
95
+ var _render5 = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChoiceList.default, {
96
+ onChangeValue: fn,
97
+ radiosName: "radio",
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
99
+ value: "test",
100
+ id: "test",
101
+ children: "Radio Test"
102
+ })
91
103
  })),
92
104
  container = _render5.container;
93
105
 
94
- var radio = container.querySelector('input[type="radio"]');
95
-
96
- _react.fireEvent.click(radio);
106
+ _react.fireEvent.click(container);
97
107
 
98
108
  expect(fn).toBeCalled();
99
109
  });
100
- it('should ChoiceList control radio childrens', function () {
101
- var fn = jest.fn();
102
- (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
103
- onChange: fn,
104
- value: "test1",
105
- name: "test-name",
106
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
107
- value: "test1",
108
- id: "test",
109
- children: "Radio Test 1"
110
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
111
- value: "test2",
112
- id: "test",
113
- children: "Radio Test 2"
114
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
115
- value: "test3",
116
- id: "test",
117
- children: "Radio Test 3"
118
- })]
119
- }));
120
-
121
- var sut = _react.screen.getAllByRole('radio');
122
-
123
- expect(sut[0]).toBeChecked();
124
- expect(sut[1]).not.toBeChecked();
125
- expect(sut[2]).not.toBeChecked();
126
- });
127
- it('Should ChoiceList change checked radio children is defaultValue is provided', function () {
128
- var fn = jest.fn();
129
- (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
130
- onChange: fn,
131
- value: "",
132
- name: "test-name",
133
- defaultValue: "test3",
134
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
135
- value: "test1",
136
- id: "test",
137
- children: "Radio Test 1"
138
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
139
- value: "test2",
140
- id: "test",
141
- children: "Radio Test 2"
142
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
143
- value: "test3",
144
- id: "test",
145
- children: "Radio Test 3"
146
- })]
147
- }));
148
-
149
- var sut = _react.screen.getAllByRole('radio');
150
-
151
- expect(sut[0]).not.toBeChecked();
152
- expect(sut[1]).not.toBeChecked();
153
- expect(sut[2]).toBeChecked();
154
-
155
- _react.fireEvent.click(sut[0]);
156
-
157
- expect(sut[0]).toBeChecked();
158
- expect(sut[2]).not.toBeChecked();
159
- });
160
110
  it('Should ChoiceList disabled radio children is isDisabled is provided', function () {
161
111
  var fn = jest.fn();
162
112
  (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
163
- onChange: fn,
164
- value: "",
113
+ onChangeValue: fn,
165
114
  isDisabled: true,
166
- name: "test-name",
115
+ radiosName: "test-name",
167
116
  defaultValue: "test3",
168
117
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
169
118
  value: "test1",
@@ -189,9 +138,8 @@ describe('Radio Input', function () {
189
138
  it('should render helpText if helpText is provided', function () {
190
139
  var fn = jest.fn();
191
140
  (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
192
- onChange: fn,
193
- value: "",
194
- name: "test-name",
141
+ onChangeValue: fn,
142
+ radiosName: "test-name",
195
143
  defaultValue: "test3",
196
144
  helpText: "Help Text",
197
145
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
@@ -213,10 +161,9 @@ describe('Radio Input', function () {
213
161
  it('should render label if label is provided', function () {
214
162
  var fn = jest.fn();
215
163
  (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
216
- onChange: fn,
217
- value: "",
164
+ onChangeValue: fn,
218
165
  label: "any_label",
219
- name: "test-name",
166
+ radiosName: "test-name",
220
167
  defaultValue: "test3",
221
168
  helpText: "Help Text",
222
169
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
@@ -233,14 +180,13 @@ describe('Radio Input', function () {
233
180
  children: "Radio Test 3"
234
181
  })]
235
182
  }));
236
- expect(_react.screen.getByRole('radiogroup').children[0].tagName.toLowerCase()).toBe('label');
183
+ expect(_react.screen.getByRole('radiogroup').children[1].tagName.toLowerCase()).toBe('label');
237
184
  });
238
185
  it('should not render label if label not provided', function () {
239
186
  var fn = jest.fn();
240
187
  (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChoiceList.default, {
241
- onChange: fn,
242
- value: "",
243
- name: "test-name",
188
+ onChangeValue: fn,
189
+ radiosName: "test-name",
244
190
  defaultValue: "test3",
245
191
  helpText: "Help Text",
246
192
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
@@ -257,6 +203,6 @@ describe('Radio Input', function () {
257
203
  children: "Radio Test 3"
258
204
  })]
259
205
  }));
260
- expect(_react.screen.getByRole('radiogroup').children[0].tagName.toLowerCase()).not.toBe('label');
206
+ expect(_react.screen.getByRole('radiogroup').children[1].tagName.toLowerCase()).not.toBe('label');
261
207
  });
262
208
  });
@@ -1,31 +1,31 @@
1
- /// <reference types="react" />
2
- import { IStyledRadioInput } from './types';
3
- export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- export declare const Label: import("@emotion/styled").StyledComponent<{
8
- theme?: import("@emotion/react").Theme | undefined;
9
- as?: import("react").ElementType<any> | undefined;
10
- }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
11
- export declare const Input: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
14
- } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
15
- export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
18
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
- export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
20
- theme?: import("@emotion/react").Theme | undefined;
21
- as?: import("react").ElementType<any> | undefined;
22
- } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
- export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
26
- } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
27
- export declare const HelpText: import("@emotion/styled").StyledComponent<{
28
- theme?: import("@emotion/react").Theme | undefined;
29
- as?: import("react").ElementType<any> | undefined;
30
- } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
1
+ /// <reference types="react" />
2
+ import { IStyledRadioInput } from './types';
3
+ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const Label: import("@emotion/styled").StyledComponent<{
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
11
+ export declare const Input: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
15
+ export declare const ChoiceWrapper: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const ChoiceLabel: import("@emotion/styled").StyledComponent<{
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
27
+ export declare const HelpText: import("@emotion/styled").StyledComponent<{
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
+ } & IStyledRadioInput, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
31
31
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO;;;yGAInB,CAAC;AAEF,eAAO,MAAM,KAAK;;;kHAGjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;sIA4EjB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAAe,CAAC;AAE1C,eAAO,MAAM,WAAW;;;6HAOvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;sIASvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;+HASpB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO;;;yGAInB,CAAC;AAEF,eAAO,MAAM,KAAK;;;kHAGjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;sIAgEjB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAAe,CAAC;AAE1C,eAAO,MAAM,WAAW;;;6HAOvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;sIASvB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;+HASpB,CAAC"}
@@ -24,13 +24,8 @@ var Label = _styled.default.label(_templateObject2 || (_templateObject2 = _tagge
24
24
  exports.Label = Label;
25
25
 
26
26
  var Input = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
27
- var color = _ref.color,
28
- colorProps = _ref.colorProps,
29
- theme = _ref.theme;
30
- return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid\n ", ";\n\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n &::after {\n display: none;\n }\n }\n\n &::after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), {
31
- light: theme.colors.neutral.neutral2,
32
- dark: theme.colors.neutral.neutral5
33
- }[theme.colorMode], theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white, theme.colors.primary.hover, colorProps === null || colorProps === void 0 ? void 0 : colorProps.focus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, color, color, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.shadowLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.graySaturation);
27
+ var colors = _ref.theme.colors;
28
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n min-width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid ", ";\n transition: all ease 0.2s;\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n &::after {\n content: '';\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), colors.neutral.neutral2, colors.neutral.black, colors.primary.hover, colors.neutral.neutral1, colors.neutral.neutral1, colors.neutral.neutral2, colors.primary.default, colors.primary.default, colors.primary.focus, colors.primary.focus, colors.primary.disabled, colors.primary.hover, colors.primary.hover, colors.neutral.neutral2, colors.neutral.neutral2, colors.neutral.neutral4);
34
29
  });
35
30
 
36
31
  exports.Input = Input;
@@ -48,9 +43,8 @@ var ListWrapper = _styled.default.div(_templateObject6 || (_templateObject6 = _t
48
43
  exports.ListWrapper = ListWrapper;
49
44
 
50
45
  var ChoiceLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
51
- var colorProps = _ref3.colorProps,
52
- theme = _ref3.theme;
53
- return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white);
46
+ var colors = _ref3.theme.colors;
47
+ return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), colors.neutral.black);
54
48
  });
55
49
 
56
50
  exports.ChoiceLabel = ChoiceLabel;
@@ -58,7 +52,7 @@ exports.ChoiceLabel = ChoiceLabel;
58
52
  var HelpText = _styled.default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref4) {
59
53
  var theme = _ref4.theme,
60
54
  textColor = _ref4.textColor;
61
- return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n display: block;\n padding-left: 30px;\n margin-top: 18px;\n "])), theme.fontSizes.xxs, theme.colorMode === 'light' ? textColor : theme.colors.neutral.white, theme.fontWeight[500]);
55
+ return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight: 500;\n display: block;\n padding-left: 30px;\n margin-top: 18px;\n "])), theme.fontSizes.xxs, textColor);
62
56
  });
63
57
 
64
58
  exports.HelpText = HelpText;
@@ -1,61 +1,33 @@
1
- import { ChangeEvent, ChangeEventHandler, ReactNode, Ref } from 'react';
2
- export declare type FormRegister = {
3
- onChange: ChangeEventHandler<HTMLInputElement>;
4
- onBlur: ChangeEventHandler;
5
- ref: Ref<any>;
6
- name: string;
7
- };
8
- export declare type ColorProps = {
9
- black: string;
10
- gray: string;
11
- grayLightness: string;
12
- graySaturation: string;
13
- focus: string;
14
- focusChecked: string;
15
- shadowLightness: string;
16
- saturation: string;
17
- saturationFocus: string;
18
- };
19
- export interface IRadioInputProps {
20
- isDisabled?: boolean;
21
- name?: string;
22
- value: string;
23
- id: string;
24
- children: ReactNode;
25
- color?: string;
26
- defaultChecked?: boolean;
27
- onChange?: (value: string) => void;
28
- formRegister?: FormRegister;
29
- }
30
- export interface ChoiceListProps {
31
- onChange: (value: string) => void;
32
- label?: string;
33
- value: string;
34
- defaultValue?: string;
35
- isDisabled?: boolean;
36
- name: string;
37
- alignDirection?: 'column' | 'row';
38
- color?: string;
39
- helpText?: string;
40
- children: ReactNode;
41
- formRegister?: FormRegister;
42
- }
43
- export declare type ChoiceListContext = {
44
- handleRadioClick: (e: ChangeEvent<HTMLInputElement>) => void;
45
- isRadioSelected: (value: string) => boolean;
46
- groupName: string;
47
- groupColor: string;
48
- groupFormRegister?: FormRegister;
49
- isDisabled?: boolean;
50
- };
51
- export interface IStyledRadioInput {
52
- color?: string;
53
- colorProps?: ColorProps;
54
- textColor?: string;
55
- alignDirection?: 'column' | 'row';
56
- disabledColor?: string;
57
- disabledWithCheckedColor?: string;
58
- disabledTextColor?: string;
59
- disabledTextWithCheckedColor?: string;
60
- }
1
+ import { ReactNode } from 'react';
2
+ export interface IRadioInputProps {
3
+ isDisabled?: boolean;
4
+ name?: string;
5
+ value: string;
6
+ id: string;
7
+ children?: ReactNode;
8
+ color?: string;
9
+ defaultChecked?: boolean;
10
+ onChange?: (value: string) => void;
11
+ }
12
+ export interface ChoiceListProps {
13
+ onChangeValue?: (value: string) => void;
14
+ label?: string;
15
+ defaultValue?: string;
16
+ isDisabled?: boolean;
17
+ radiosName: string;
18
+ alignDirection?: 'column' | 'row';
19
+ color?: string;
20
+ helpText?: string;
21
+ children: ReactNode;
22
+ }
23
+ export declare type ChoiceListContext = {
24
+ handleRadioClick: (e: string) => void;
25
+ defaultValue?: string;
26
+ groupName: string;
27
+ isDisabled?: boolean;
28
+ };
29
+ export interface IStyledRadioInput {
30
+ textColor?: string;
31
+ alignDirection?: 'column' | 'row';
32
+ }
61
33
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAExE,oBAAY,YAAY,GAAG;IACzB,QAAQ,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC/C,MAAM,EAAE,kBAAkB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,oBAAY,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC7D,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,oBAAY,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CACnC"}
@@ -1,12 +1,12 @@
1
- export declare function getColorsProps(hue: number): {
2
- black: string;
3
- gray: string;
4
- grayLightness: string;
5
- graySaturation: string;
6
- focus: string;
7
- focusChecked: string;
8
- shadowLightness: string;
9
- saturation: string;
10
- saturationFocus: string;
11
- };
1
+ export declare function getColorsProps(hue: number): {
2
+ black: string;
3
+ gray: string;
4
+ grayLightness: string;
5
+ graySaturation: string;
6
+ focus: string;
7
+ focusChecked: string;
8
+ shadowLightness: string;
9
+ saturation: string;
10
+ saturationFocus: string;
11
+ };
12
12
  //# sourceMappingURL=get-colors-props.d.ts.map
@@ -1,9 +1,9 @@
1
- export declare const dashIcons: {
2
- name: string;
3
- width: number;
4
- height: number;
5
- viewBox: string;
6
- html: string;
7
- xmlns: string;
8
- }[];
1
+ export declare const dashIcons: {
2
+ name: string;
3
+ width: number;
4
+ height: number;
5
+ viewBox: string;
6
+ html: string;
7
+ xmlns: string;
8
+ }[];
9
9
  //# sourceMappingURL=dash.d.ts.map
@@ -1,9 +1,9 @@
1
- export declare const ecommerceIcons: {
2
- name: string;
3
- width: number;
4
- height: number;
5
- viewBox: string;
6
- html: string;
7
- xmlns: string;
8
- }[];
1
+ export declare const ecommerceIcons: {
2
+ name: string;
3
+ width: number;
4
+ height: number;
5
+ viewBox: string;
6
+ html: string;
7
+ xmlns: string;
8
+ }[];
9
9
  //# sourceMappingURL=ecommerce.d.ts.map
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { IIconComponentProps } from './types';
3
- declare const Icon: FC<IIconComponentProps>;
4
- export default Icon;
1
+ import { FC } from 'react';
2
+ import { IIconComponentProps } from './types';
3
+ declare const Icon: FC<IIconComponentProps>;
4
+ export default Icon;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- /**
2
- * Builds the icons and types files.
3
- * To run this script, you need to call this at the test file:
4
- * `require('./scripts/build')` or `import build from './scripts/build'`
5
- */
6
- declare const builder: () => void;
7
- export default builder;
1
+ /**
2
+ * Builds the icons and types files.
3
+ * To run this script, you need to call this at the test file:
4
+ * `require('./scripts/build')` or `import build from './scripts/build'`
5
+ */
6
+ declare const builder: () => void;
7
+ export default builder;
8
8
  //# sourceMappingURL=build.d.ts.map
@@ -35,10 +35,10 @@ var twirlTimer = function twirlTimer() {
35
35
  x &= 3;
36
36
  }, 250);
37
37
  };
38
- /**
39
- * Builds the icons and types files.
40
- * To run this script, you need to call this at the test file:
41
- * `require('./scripts/build')` or `import build from './scripts/build'`
38
+ /**
39
+ * Builds the icons and types files.
40
+ * To run this script, you need to call this at the test file:
41
+ * `require('./scripts/build')` or `import build from './scripts/build'`
42
42
  */
43
43
 
44
44
 
@@ -1,16 +1,16 @@
1
- /**
2
- * Extractor is a function that extracts the svg content from the icon file.
3
- * @param files - The directory with the files to extract.
4
- * @param currentPath - The current path of the file
5
- * @returns Array of objects with the name and the content of the icon svg.
6
- */
7
- declare const extractor: (files: string[], currentPath: string) => {
8
- name: string;
9
- width: string;
10
- height: string;
11
- viewBox: string;
12
- xmlns: string;
13
- html: string;
14
- }[];
15
- export default extractor;
1
+ /**
2
+ * Extractor is a function that extracts the svg content from the icon file.
3
+ * @param files - The directory with the files to extract.
4
+ * @param currentPath - The current path of the file
5
+ * @returns Array of objects with the name and the content of the icon svg.
6
+ */
7
+ declare const extractor: (files: string[], currentPath: string) => {
8
+ name: string;
9
+ width: string;
10
+ height: string;
11
+ viewBox: string;
12
+ xmlns: string;
13
+ html: string;
14
+ }[];
15
+ export default extractor;
16
16
  //# sourceMappingURL=extractor.d.ts.map
@@ -11,11 +11,11 @@ var _fs = require("fs");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
- /**
15
- * Extractor is a function that extracts the svg content from the icon file.
16
- * @param files - The directory with the files to extract.
17
- * @param currentPath - The current path of the file
18
- * @returns Array of objects with the name and the content of the icon svg.
14
+ /**
15
+ * Extractor is a function that extracts the svg content from the icon file.
16
+ * @param files - The directory with the files to extract.
17
+ * @param currentPath - The current path of the file
18
+ * @returns Array of objects with the name and the content of the icon svg.
19
19
  */
20
20
  var extractor = function extractor(files, currentPath) {
21
21
  return files.map(function (file) {
@@ -1,23 +1,23 @@
1
- declare type iconsList = {
2
- name: string;
3
- width: string;
4
- height: string;
5
- viewBox: string;
6
- html: string;
7
- xmlns: string;
8
- };
9
- /**
10
- * This function generates the types file for the Icon component
11
- * @param iconsList - The list of icons
12
- * @param overwrite - If true, the file will be overwritten
13
- */
14
- export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
15
- /**
16
- * This function generates the icons json file for the Icon component
17
- * @param iconsList - The list of icons
18
- * @param jsonFileName - The name of the json file
19
- * @param overwrite - If true, the file will be overwritten
20
- */
21
- export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
22
- export {};
1
+ declare type iconsList = {
2
+ name: string;
3
+ width: string;
4
+ height: string;
5
+ viewBox: string;
6
+ html: string;
7
+ xmlns: string;
8
+ };
9
+ /**
10
+ * This function generates the types file for the Icon component
11
+ * @param iconsList - The list of icons
12
+ * @param overwrite - If true, the file will be overwritten
13
+ */
14
+ export declare const writeTypesFile: (iconsList: iconsList[], overwrite?: boolean) => void;
15
+ /**
16
+ * This function generates the icons json file for the Icon component
17
+ * @param iconsList - The list of icons
18
+ * @param jsonFileName - The name of the json file
19
+ * @param overwrite - If true, the file will be overwritten
20
+ */
21
+ export declare const writeIconsFile: (iconsList: iconsList[], jsonFileName: string, overwrite?: boolean) => void;
22
+ export {};
23
23
  //# sourceMappingURL=writers.d.ts.map