kwant-ui 3.45.0-dev.0 → 3.45.0

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 (320) hide show
  1. package/README.md +181 -73
  2. package/dist/GlobalStyles/index.d.ts +5 -5
  3. package/dist/GlobalStyles/types.d.ts +17 -17
  4. package/dist/GlobalStyles/typography.d.ts +20 -20
  5. package/dist/HOC/HoverHOC/HoverHOC.d.ts +4 -4
  6. package/dist/HOC/HoverHOC/HoverHOCStyled.d.ts +2 -2
  7. package/dist/HOC/HoverHOC/index.d.ts +2 -2
  8. package/dist/HOC/HoverHOC/types.d.ts +20 -20
  9. package/dist/components/Alert/Alert.d.ts +3 -3
  10. package/dist/components/Alert/AlertStyled.d.ts +6 -6
  11. package/dist/components/Alert/AlertTypes.d.ts +24 -24
  12. package/dist/components/Alert/AlertUtils.d.ts +24 -23
  13. package/dist/components/Alert/index.d.ts +2 -2
  14. package/dist/components/Avatar/Avatar.d.ts +3 -3
  15. package/dist/components/Avatar/Avatar.types.d.ts +40 -40
  16. package/dist/components/Avatar/AvatarStyled.d.ts +6 -6
  17. package/dist/components/Avatar/AvatarUtils.d.ts +2 -2
  18. package/dist/components/Avatar/index.d.ts +2 -2
  19. package/dist/components/AvatarGroup/AvatarGroup.d.ts +3 -3
  20. package/dist/components/AvatarGroup/AvatarGroupStyled.d.ts +3 -3
  21. package/dist/components/AvatarGroup/AvatarGroupTypes.d.ts +20 -20
  22. package/dist/components/AvatarGroup/AvatarGroupUtils.d.ts +1 -1
  23. package/dist/components/AvatarGroup/index.d.ts +2 -2
  24. package/dist/components/Badge/Badge.d.ts +3 -3
  25. package/dist/components/Badge/Badge.styled.d.ts +1 -1
  26. package/dist/components/Badge/types.d.ts +6 -6
  27. package/dist/components/BaseDrawer/BaseDrawer.d.ts +3 -3
  28. package/dist/components/BaseDrawer/BaseDrawer.styled.d.ts +3 -3
  29. package/dist/components/BaseDrawer/BaseDrawer.types.d.ts +19 -19
  30. package/dist/components/BaseDrawer/BaseDrawer.utils.d.ts +12 -12
  31. package/dist/components/BaseDrawer/index.d.ts +2 -2
  32. package/dist/components/BaseDropdown/BaseDropdown.d.ts +3 -3
  33. package/dist/components/BaseDropdown/BaseDropdownStyled.d.ts +2 -2
  34. package/dist/components/BaseDropdown/BaseDropdownTypes.d.ts +20 -20
  35. package/dist/components/BaseDropdown/index.d.ts +2 -2
  36. package/dist/components/Battery/Battery.d.ts +3 -3
  37. package/dist/components/Battery/Battery.styled.d.ts +1 -1
  38. package/dist/components/Battery/types.d.ts +3 -3
  39. package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -12
  40. package/dist/components/Breadcrumb/Breadcrumb.styled.d.ts +5 -5
  41. package/dist/components/Breadcrumb/BreadcrumbUtils.d.ts +7 -7
  42. package/dist/components/Breadcrumb/Crumb.d.ts +9 -9
  43. package/dist/components/Breadcrumb/index.d.ts +2 -2
  44. package/dist/components/Button/Button.d.ts +3 -3
  45. package/dist/components/Button/Button.styled.d.ts +3 -3
  46. package/dist/components/Button/buttonColors.d.ts +3 -3
  47. package/dist/components/Button/helper.d.ts +4 -4
  48. package/dist/components/Button/types.d.ts +79 -79
  49. package/dist/components/Calendar/Calendar.d.ts +3 -3
  50. package/dist/components/Calendar/CalendarComponents.d.ts +11 -11
  51. package/dist/components/Calendar/CalendarStyled.d.ts +44 -42
  52. package/dist/components/Calendar/CalendarTypes.d.ts +77 -76
  53. package/dist/components/Calendar/CalendarUtils.d.ts +44 -41
  54. package/dist/components/Calendar/icons.d.ts +6 -6
  55. package/dist/components/Calendar/index.d.ts +2 -2
  56. package/dist/components/Charts/AreaChart/AreaChart.d.ts +3 -3
  57. package/dist/components/Charts/AreaChart/AreaChartData.d.ts +43 -43
  58. package/dist/components/Charts/AreaChart/AreaChartStyled.d.ts +22 -22
  59. package/dist/components/Charts/AreaChart/AreaChartTypes.d.ts +73 -73
  60. package/dist/components/Charts/AreaChart/AreaChartUtils.d.ts +28 -28
  61. package/dist/components/Charts/AreaChart/index.d.ts +2 -2
  62. package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +3 -3
  63. package/dist/components/Charts/GaugeChart/GaugeChartStyled.d.ts +5 -5
  64. package/dist/components/Charts/GaugeChart/GaugeChartTypes.d.ts +26 -26
  65. package/dist/components/Charts/GaugeChart/index.d.ts +2 -2
  66. package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChart.d.ts +3 -3
  67. package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartData.d.ts +19 -19
  68. package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartStyled.d.ts +24 -24
  69. package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartTypes.d.ts +60 -60
  70. package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartUtils.d.ts +10 -10
  71. package/dist/components/Charts/HorizontalStackedBarChart/index.d.ts +2 -2
  72. package/dist/components/Charts/LineChart/LineChart.d.ts +3 -3
  73. package/dist/components/Charts/LineChart/LineChartData.d.ts +32 -32
  74. package/dist/components/Charts/LineChart/LineChartStyled.d.ts +19 -19
  75. package/dist/components/Charts/LineChart/LineChartTypes.d.ts +60 -60
  76. package/dist/components/Charts/LineChart/LineChartUtils.d.ts +21 -21
  77. package/dist/components/Charts/LineChart/index.d.ts +2 -2
  78. package/dist/components/Charts/ProgressChart/ProgressChart.d.ts +3 -3
  79. package/dist/components/Charts/ProgressChart/ProgressChartStyled.d.ts +1 -1
  80. package/dist/components/Charts/ProgressChart/ProgressChartTypes.d.ts +13 -13
  81. package/dist/components/Charts/ProgressChart/index.d.ts +2 -2
  82. package/dist/components/Charts/StackedBarChart/StackedBarChart.d.ts +3 -3
  83. package/dist/components/Charts/StackedBarChart/StackedBarChartData.d.ts +25 -25
  84. package/dist/components/Charts/StackedBarChart/StackedBarChartStyled.d.ts +19 -19
  85. package/dist/components/Charts/StackedBarChart/StackedBarChartTypes.d.ts +62 -62
  86. package/dist/components/Charts/StackedBarChart/StackedBarChartUtils.d.ts +25 -25
  87. package/dist/components/Charts/StackedBarChart/index.d.ts +2 -2
  88. package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChart.d.ts +3 -3
  89. package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartData.d.ts +13 -13
  90. package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartTypes.d.ts +38 -38
  91. package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartUtils.d.ts +14 -14
  92. package/dist/components/Charts/WeekwiseBarChart/index.d.ts +2 -2
  93. package/dist/components/Charts/WorkerTimeChart/WorkTimeChartComponents.d.ts +14 -14
  94. package/dist/components/Charts/WorkerTimeChart/WorkerTimeChart.d.ts +3 -3
  95. package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartData.d.ts +9 -9
  96. package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartTypes.d.ts +51 -51
  97. package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartUtils.d.ts +20 -20
  98. package/dist/components/Charts/WorkerTimeChart/index.d.ts +2 -2
  99. package/dist/components/Checkbox/Checkbox.d.ts +4 -4
  100. package/dist/components/Checkbox/CheckboxStyled.d.ts +12 -12
  101. package/dist/components/Checkbox/types.d.ts +25 -26
  102. package/dist/components/ConfirmationScreen/ConfirmationIcons.d.ts +3 -3
  103. package/dist/components/ConfirmationScreen/ConfirmationScreen.d.ts +3 -3
  104. package/dist/components/ConfirmationScreen/ConfirmationScreenStyled.d.ts +1 -1
  105. package/dist/components/ConfirmationScreen/types.d.ts +10 -10
  106. package/dist/components/CountryCodeInput/CountryCodeInput.styled.d.ts +5 -5
  107. package/dist/components/CountryCodeInput/countryCodes.d.ts +6 -6
  108. package/dist/components/CountryCodeInput/index.d.ts +3 -3
  109. package/dist/components/CountryCodeInput/types.d.ts +24 -24
  110. package/dist/components/Datepicker/Datepicker.d.ts +4 -4
  111. package/dist/components/Datepicker/DatepickerStyled.d.ts +7 -6
  112. package/dist/components/Datepicker/components/icons.d.ts +6 -6
  113. package/dist/components/Datepicker/index.d.ts +2 -2
  114. package/dist/components/Datepicker/types.d.ts +56 -50
  115. package/dist/components/Datepicker/utils/index.d.ts +35 -35
  116. package/dist/components/Dialog/Dialog.d.ts +3 -3
  117. package/dist/components/Dialog/DialogStyled.d.ts +9 -9
  118. package/dist/components/Dialog/DialogTypes.d.ts +17 -17
  119. package/dist/components/Dialog/DialogUtils.d.ts +1 -1
  120. package/dist/components/Dialog/index.d.ts +2 -2
  121. package/dist/components/DocumentCard/DocumentCard.d.ts +3 -3
  122. package/dist/components/DocumentCard/DocumentCard.styled.d.ts +1 -1
  123. package/dist/components/DocumentCard/types.d.ts +10 -10
  124. package/dist/components/Drawer/Drawer.d.ts +3 -3
  125. package/dist/components/Drawer/Drawer.styled.d.ts +13 -13
  126. package/dist/components/Drawer/Drawer.types.d.ts +18 -18
  127. package/dist/components/Drawer/Drawer.utils.d.ts +1 -1
  128. package/dist/components/Drawer/DrawerLayout.d.ts +3 -3
  129. package/dist/components/Drawer/index.d.ts +2 -2
  130. package/dist/components/Dropdown/Dropdown.d.ts +3 -3
  131. package/dist/components/Dropdown/DropdownStyled.d.ts +20 -20
  132. package/dist/components/Dropdown/DropdownTypes.d.ts +35 -34
  133. package/dist/components/Dropdown/DropdownUtils.d.ts +5 -5
  134. package/dist/components/Dropdown/index.d.ts +2 -2
  135. package/dist/components/DropdownCalendar/DropdownCalendar.d.ts +10 -10
  136. package/dist/components/DropdownCalendar/index.d.ts +2 -2
  137. package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -3
  138. package/dist/components/DropdownSelect/DropdownSelect.styled.d.ts +15 -13
  139. package/dist/components/DropdownSelect/DropdownSelect.types.d.ts +11 -10
  140. package/dist/components/DropdownSelect/DropdownSelect.utils.d.ts +4 -4
  141. package/dist/components/DropdownSelect/index.d.ts +2 -2
  142. package/dist/components/FilterTag/FilterTag.d.ts +3 -3
  143. package/dist/components/FilterTag/FilterTag.styled.d.ts +1 -1
  144. package/dist/components/FilterTag/types.d.ts +11 -11
  145. package/dist/components/Grid/Col.d.ts +3 -3
  146. package/dist/components/Grid/Col.styled.d.ts +1 -1
  147. package/dist/components/Grid/Row.d.ts +3 -3
  148. package/dist/components/Grid/Row.styled.d.ts +10 -10
  149. package/dist/components/Grid/index.d.ts +3 -3
  150. package/dist/components/Grid/types.d.ts +22 -22
  151. package/dist/components/HorizontalStepper/HorizontalStepper.styled.d.ts +10 -10
  152. package/dist/components/HorizontalStepper/index.d.ts +13 -13
  153. package/dist/components/HoverCalendar/HoverCalendar.d.ts +3 -3
  154. package/dist/components/HoverCalendar/HoverCalendarStyled.d.ts +1 -1
  155. package/dist/components/HoverCalendar/types.d.ts +15 -15
  156. package/dist/components/HoverInput/HoverInput.d.ts +3 -3
  157. package/dist/components/HoverInput/HoverInputStyled.d.ts +1 -1
  158. package/dist/components/HoverInput/types.d.ts +5 -5
  159. package/dist/components/HoverSelect/HoverSelect.d.ts +3 -3
  160. package/dist/components/HoverSelect/HoverSelectStyled.d.ts +1 -1
  161. package/dist/components/HoverSelect/types.d.ts +19 -19
  162. package/dist/components/Icon/Icon.d.ts +15 -15
  163. package/dist/components/Icon/IconUtils.d.ts +1 -1
  164. package/dist/components/Icon/index.d.ts +2 -2
  165. package/dist/components/IconLabel/InfoAccordion/InfoAccordion.d.ts +3 -3
  166. package/dist/components/IconLabel/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
  167. package/dist/components/IconLabel/InfoAccordion/types.d.ts +13 -13
  168. package/dist/components/IconLabel/iconlabel.styled.d.ts +1 -1
  169. package/dist/components/IconLabel/index.d.ts +3 -3
  170. package/dist/components/IconLabel/types.d.ts +10 -10
  171. package/dist/components/InfoAccordion/InfoAccordion.d.ts +3 -3
  172. package/dist/components/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
  173. package/dist/components/InfoAccordion/types.d.ts +14 -14
  174. package/dist/components/Input/index.d.ts +27 -27
  175. package/dist/components/Input/inputStyled.d.ts +9 -9
  176. package/dist/components/Input/types.d.ts +53 -53
  177. package/dist/components/Input/utils.d.ts +4 -4
  178. package/dist/components/Label/LabelStyled.d.ts +4 -4
  179. package/dist/components/Label/index.d.ts +2 -2
  180. package/dist/components/Label/types.d.ts +6 -6
  181. package/dist/components/Loader/FullScreenLoader.d.ts +3 -3
  182. package/dist/components/Loader/FullScreenLoaderStyled.d.ts +2 -2
  183. package/dist/components/Loader/Loader.d.ts +6 -6
  184. package/dist/components/Loader/Loader.styled.d.ts +4 -4
  185. package/dist/components/Loader/SimpleLoader.d.ts +7 -7
  186. package/dist/components/Loader/SimpleLoader.styled.d.ts +2 -2
  187. package/dist/components/Loader/index.d.ts +4 -4
  188. package/dist/components/Loader/types.d.ts +4 -4
  189. package/dist/components/MultiSelect/MultiSelect.d.ts +3 -3
  190. package/dist/components/MultiSelect/MultiSelectStyled.d.ts +2 -2
  191. package/dist/components/MultiSelect/types.d.ts +22 -22
  192. package/dist/components/MultiSelect/utils.d.ts +24 -24
  193. package/dist/components/Navigation/CollapsibleNavItem/NavItemStyled.d.ts +10 -10
  194. package/dist/components/Navigation/CollapsibleNavItem/index.d.ts +4 -4
  195. package/dist/components/Navigation/NavItem/NavItemStyled.d.ts +12 -12
  196. package/dist/components/Navigation/NavItem/index.d.ts +6 -6
  197. package/dist/components/Navigation/NavigationStyled.d.ts +8 -8
  198. package/dist/components/Navigation/data.d.ts +3 -3
  199. package/dist/components/Navigation/index.d.ts +4 -4
  200. package/dist/components/Navigation/types.d.ts +36 -36
  201. package/dist/components/OTPInput/OTPInput.constants.d.ts +10 -10
  202. package/dist/components/OTPInput/OTPInput.d.ts +3 -3
  203. package/dist/components/OTPInput/OTPInput.styled.d.ts +18 -18
  204. package/dist/components/OTPInput/OTPInput.utils.d.ts +9 -9
  205. package/dist/components/OTPInput/index.d.ts +2 -2
  206. package/dist/components/Overlay/Overlay.d.ts +9 -9
  207. package/dist/components/Overlay/index.d.ts +2 -2
  208. package/dist/components/Pagination/Pagination.components.d.ts +3 -3
  209. package/dist/components/Pagination/Pagination.d.ts +3 -3
  210. package/dist/components/Pagination/Pagination.styled.d.ts +13 -13
  211. package/dist/components/Pagination/Pagination.types.d.ts +48 -48
  212. package/dist/components/Pagination/Pagination.utils.d.ts +6 -6
  213. package/dist/components/Pagination/index.d.ts +2 -2
  214. package/dist/components/Radio/Radio.d.ts +3 -3
  215. package/dist/components/Radio/RadioStyled.d.ts +8 -8
  216. package/dist/components/Radio/RadioType.d.ts +19 -19
  217. package/dist/components/Radio/index.d.ts +2 -2
  218. package/dist/components/Select/Select.d.ts +4 -4
  219. package/dist/components/Select/Select.styled.d.ts +9 -8
  220. package/dist/components/Select/Select.types.d.ts +23 -22
  221. package/dist/components/Select/Select.utils.d.ts +5 -5
  222. package/dist/components/Select/index.d.ts +2 -2
  223. package/dist/components/Selector/Selector.d.ts +3 -3
  224. package/dist/components/Selector/Selector.styled.d.ts +5 -5
  225. package/dist/components/Selector/index.d.ts +2 -2
  226. package/dist/components/Selector/types.d.ts +17 -17
  227. package/dist/components/Skeleton/Skeleton.styled.d.ts +7 -7
  228. package/dist/components/Skeleton/index.d.ts +7 -7
  229. package/dist/components/Slider/Slider.d.ts +15 -15
  230. package/dist/components/Slider/Slider.styled.d.ts +6 -6
  231. package/dist/components/Slider/index.d.ts +3 -3
  232. package/dist/components/Slider/types.d.ts +10 -10
  233. package/dist/components/Spinner/Spinner.d.ts +5 -5
  234. package/dist/components/Spinner/Spinner.styled.d.ts +1 -1
  235. package/dist/components/Spinner/index.d.ts +2 -2
  236. package/dist/components/StepperDrawerLayout/StepperDrawerLayout.d.ts +3 -3
  237. package/dist/components/StepperDrawerLayout/StepperDrawerLayout.types.d.ts +8 -8
  238. package/dist/components/StepperDrawerLayout/StepperDrawerLayout.utils.d.ts +1 -1
  239. package/dist/components/StepperDrawerLayout/StepperDrawerLayoutStyled.d.ts +5 -5
  240. package/dist/components/StepperDrawerLayout/index.d.ts +2 -2
  241. package/dist/components/Switch/Switch.d.ts +3 -3
  242. package/dist/components/Switch/Switch.styled.d.ts +2 -2
  243. package/dist/components/Switch/index.d.ts +1 -1
  244. package/dist/components/Switch/types.d.ts +23 -23
  245. package/dist/components/Tabs/Tabs.d.ts +3 -3
  246. package/dist/components/Tabs/TabsStyled.d.ts +14 -14
  247. package/dist/components/Tabs/TabsTypes.d.ts +22 -22
  248. package/dist/components/Tabs/TabsUtils.d.ts +2 -2
  249. package/dist/components/Tabs/index.d.ts +2 -2
  250. package/dist/components/Tag/Tag.d.ts +3 -3
  251. package/dist/components/Tag/Tag.styled.d.ts +2 -2
  252. package/dist/components/Tag/types.d.ts +17 -17
  253. package/dist/components/Text/TextStyled.d.ts +3 -3
  254. package/dist/components/Text/index.d.ts +3 -3
  255. package/dist/components/Text/types.d.ts +19 -19
  256. package/dist/components/Text/typography.d.ts +19 -19
  257. package/dist/components/Text/utils.d.ts +4 -4
  258. package/dist/components/TimePicker/TimePicker.d.ts +2 -0
  259. package/dist/components/TimePicker/index.d.ts +2 -0
  260. package/dist/components/TimePicker/timepicker.styled.d.ts +13 -0
  261. package/dist/components/TimePicker/types.d.ts +22 -0
  262. package/dist/components/Toast/Toast.d.ts +3 -3
  263. package/dist/components/Toast/Toast.styled.d.ts +7 -7
  264. package/dist/components/Toast/Toast.types.d.ts +50 -49
  265. package/dist/components/Toast/Toast.utils.d.ts +8 -8
  266. package/dist/components/Toast/ToastContext.d.ts +4 -4
  267. package/dist/components/Toast/ToastProvider.d.ts +3 -3
  268. package/dist/components/Toast/index.d.ts +2 -2
  269. package/dist/components/Tooltip/Tooltip.d.ts +3 -3
  270. package/dist/components/Tooltip/index.d.ts +2 -2
  271. package/dist/components/Tooltip/tooltip.styled.d.ts +2 -2
  272. package/dist/components/Tooltip/types.d.ts +34 -34
  273. package/dist/components/TrendPercentage/TrendPercentage.d.ts +15 -15
  274. package/dist/components/TrendPercentage/TrendPercentageStyled.d.ts +5 -5
  275. package/dist/components/TrendPercentage/index.d.ts +2 -2
  276. package/dist/components/UploadAvatar/UploadAvatar.d.ts +3 -3
  277. package/dist/components/UploadAvatar/UploadAvatarStyled.d.ts +1 -1
  278. package/dist/components/UploadAvatar/types.d.ts +9 -9
  279. package/dist/components/stepper/StepperStyled.d.ts +26 -26
  280. package/dist/components/stepper/StepperTypes.d.ts +28 -28
  281. package/dist/components/stepper/StepperUtils.d.ts +10 -10
  282. package/dist/components/stepper/index.d.ts +3 -3
  283. package/dist/globals.d.ts +7 -7
  284. package/dist/hooks/index.d.ts +5 -5
  285. package/dist/hooks/useDebouncedValue.d.ts +2 -2
  286. package/dist/hooks/useDynamicImport.d.ts +8 -8
  287. package/dist/hooks/useFullScreenFeature.d.ts +5 -5
  288. package/dist/hooks/useOutsideClick.d.ts +6 -6
  289. package/dist/hooks/useTimeBar.d.ts +29 -29
  290. package/dist/hooks/useToast.d.ts +11 -10
  291. package/dist/hooks/useToggle.d.ts +8 -8
  292. package/dist/index.d.ts +69 -68
  293. package/dist/index.es.js +225 -139
  294. package/dist/index.js +224 -138
  295. package/dist/package.json +89 -89
  296. package/dist/public/assets/icons/Compare.svg +1 -0
  297. package/dist/public/assets/icons/Notifications.svg +1 -0
  298. package/dist/public/assets/icons/Search.svg +1 -0
  299. package/dist/public/assets/icons/US.svg +1 -1
  300. package/dist/public/assets/icons/doc-alert.svg +5 -5
  301. package/dist/public/assets/icons/doc-expired-closed.svg +6 -6
  302. package/dist/public/assets/icons/no-entry-man.svg +4 -4
  303. package/dist/public/assets/icons/unsafe.svg +23 -23
  304. package/dist/themes/colors.d.ts +3 -3
  305. package/dist/themes/colors.ts +227 -222
  306. package/dist/themes/index.d.ts +3 -3
  307. package/dist/themes/types.d.ts +229 -229
  308. package/dist/types/IconTypes.d.ts +1 -1
  309. package/dist/utils/formatDate.d.ts +2 -2
  310. package/dist/utils/index.d.ts +13 -12
  311. package/dist/utils/index.ts +100 -86
  312. package/dist/utils/truncate.d.ts +2 -2
  313. package/package.json +89 -89
  314. package/themes/colors.ts +227 -222
  315. package/themes/index.ts +8 -8
  316. package/themes/types.ts +250 -250
  317. package/utils/formatDate.ts +13 -13
  318. package/utils/generateTypesForIcons.js +37 -37
  319. package/utils/index.ts +100 -86
  320. package/utils/truncate.ts +7 -7
package/README.md CHANGED
@@ -1,73 +1,181 @@
1
- # Kwant UI Components
2
-
3
- Welcome to Kwant UI Components! This repository contains a collection of reusable user interface components that can be used to build modern and responsive web applications. These components are designed to provide a consistent and intuitive user experience across different platforms and devices.
4
-
5
- ## Table of Contents
6
-
7
- - [Installation](#installation)
8
- - [Development environment](#Development)
9
- - [Usage](#usage)
10
- - [Storybook](#storybook)
11
-
12
- ## Installation
13
-
14
- To install Kwant UI Components, you can use NPM or YARN package manager.
15
-
16
- ```bash
17
- # npm
18
- npm install kwant-ui
19
-
20
- # yarn
21
- yarn add kwant-ui
22
- ```
23
-
24
- ## Development
25
-
26
- #### Clone the repository to your local machine:
27
-
28
- ```bash
29
- git clone git@gitlab.com:kwant.ai/frontend/ui-components.git
30
- ```
31
-
32
- #### Navigate to the project directory:
33
-
34
- ```bash
35
- cd ui-components
36
- ```
37
-
38
- #### Install the required dependencies:
39
-
40
- ```bash
41
- npm install
42
- ```
43
-
44
- If you encounter a `Could not resolve dependency` error when configuring the packages above, you can either downgrade Rollup to v3.0.0, downgrade the version of the plugins that have the dependency issue to the version suggested in the terminal, or try running the command with the `--force` option.`
45
-
46
- ## Usage
47
-
48
- You can now import the components into your project and start using them. Here's an example of how to use a button component:
49
-
50
- example
51
-
52
- ```jsx
53
- import React from 'react';
54
- import { Button } from 'kwant-ui';
55
-
56
- function App() {
57
- return (
58
- <div>
59
- <Button variant='primary'>Click me</Button>
60
- </div>
61
- );
62
- }
63
-
64
- export default App;
65
- ```
66
-
67
- ## Storybook
68
-
69
- You can explore and interact with the Kwant UI Components using our Storybook. The Storybook showcases all the available components with their various configurations and states.
70
-
71
- You can access the Storybook here: [Kwant UI Components Storybook](https://ui.kwant.ai/)
72
-
73
- Feel free to experiment with the components and see how they can be customized and integrated into your projects.
1
+ # Kwant-UI
2
+
3
+ `kwant-ui` is the official frontend component library for Kwant-App. It provides a set of reusable, accessible, and themeable React components to build beautiful and consistent user interfaces.
4
+
5
+ ## 📋 Table of Contents
6
+
7
+ - [About The Project](#about-the-project 'null')
8
+ - [Installation](#installation 'null')
9
+ - [Usage](#usage 'null')
10
+ - [Storybook: Visualizing Components](#storybook-visualizing-components 'null')
11
+ - [Available Scripts for Development](#available-scripts-for-development 'null')
12
+
13
+ - [Publishing to NPM](#publishing-to-npm)
14
+ - [Folder Structure](#folder-structure 'null')
15
+ - [Contributing](#contributing 'null')
16
+
17
+ ## 🚀 About The Project
18
+
19
+ This library contains all the foundational UI elements required for the Kwant ecosystem. Each component is built with TypeScript for type safety and styled to fit our design system. The components are bundled using Rollup.js for optimized performance.
20
+
21
+ **Built With:**
22
+
23
+ - [**React**](https://reactjs.org/ 'null')**:** A JavaScript library for building user interfaces.
24
+
25
+ - [**Styled Components**](https://styled-components.com/ 'null')**:** For component level styling.
26
+
27
+ - [**TypeScript**](https://www.typescriptlang.org/ 'null')**:** For robust, type-safe components.
28
+ - [**Storybook**](https://storybook.js.org/ 'null')**:** For developing and showcasing components in isolation.
29
+ - [**Rollup.js**](https://rollupjs.org/ 'null')**:** For bundling the library into a distributable format.
30
+ - [**ESLint**](https://eslint.org/ 'null')**:** For maintaining code quality.
31
+
32
+ ## 📥 Installation
33
+
34
+ To use kwant-ui in your project, you need to install the library along with its peer dependencies.
35
+
36
+ Install with npm:
37
+
38
+ ```
39
+ npm install kwant-ui react react-dom styled-components react-viewport-list
40
+ ```
41
+
42
+ **Note:** `react-dom, styled-components, react-viewport-list` are a peer dependency and must be installed alongside `kwant-ui`.
43
+
44
+ ## 💡 Usage
45
+
46
+ To use `kwant-ui`, you must wrap your application with the `ThemeProvider` from `styled-components` and provide it with a theme from our library. This is a required step for the components to render correctly.
47
+
48
+ ### 1. Set up the ThemeProvider
49
+
50
+ In your main application entry point (`main.tsx` or `index.tsx`), set up the provider as follows:
51
+
52
+ ```
53
+ import React from 'react';
54
+ import ReactDOM from 'react-dom/client';
55
+ import { createBrowserRouter, RouterProvider } from 'react-router-dom';
56
+ import { ROUTES } from './routes';
57
+ import { ThemeProvider } from 'styled-components';
58
+ import './assets/styles/index.scss';
59
+ import { colors } from 'kwant-ui';
60
+
61
+ const router = createBrowserRouter(ROUTES);
62
+
63
+ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
64
+ <React.StrictMode>
65
+ <ThemeProvider theme={colors}>
66
+ <RouterProvider router={router} />
67
+ </ThemeProvider>
68
+ </React.StrictMode>
69
+ );
70
+
71
+ ```
72
+
73
+ ### 2. Use Components in Your App
74
+
75
+ Once the `ThemeProvider` is set up, you can import and use any component from the library throughout your application.
76
+
77
+ ```
78
+ import React from 'react';
79
+ import { Button, Text } from 'kwant-ui';
80
+
81
+ function MyComponent() {
82
+ return (
83
+ <>
84
+ <Text category="subtitle2" weight="semiBold">Welcome</Text>
85
+ <Button onClick={() => alert('Button Clicked!')} label="Click Me"/>
86
+ </>
87
+ );
88
+ }
89
+
90
+ export default MyComponent;
91
+
92
+ ```
93
+
94
+ ## 📖 Storybook: Visualizing Components
95
+
96
+ We use Storybook for interactive development and documentation. It allows you to browse the component library, view the different states of each component, and interact with them in a live environment.
97
+
98
+ #### Live Playground
99
+
100
+ _Explore the live Storybook playground at:_ [_https://ui.kwant.ai/_](https://ui.kwant.ai/ 'null')
101
+
102
+ #### Local Development
103
+
104
+ To run Storybook locally, clone this repository and run:
105
+
106
+ ```
107
+ npm run storybook
108
+ ```
109
+
110
+ This will start the Storybook development server on [http://localhost:6006](https://www.google.com/search?q=http://localhost:6006 'null').
111
+
112
+ ## 📜 Available Scripts for Development
113
+
114
+ These scripts are for the development and maintenance of this library.
115
+
116
+ ### `npm run storybook` or `npm run dev`
117
+
118
+ Starts the Storybook development server. This is the primary command for developing and testing components in isolation.
119
+
120
+ ### `npm run build`
121
+
122
+ ```
123
+ rm -rf ./dist && rollup -c --bundleConfigAsCjs
124
+ ```
125
+
126
+ Builds the library for production. It first cleans the `dist` directory and then uses Rollup to bundle the components into an optimized format suitable for publishing to NPM.
127
+
128
+ ### `npm run prebuild`
129
+
130
+ This script runs automatically before the `build` script.
131
+
132
+ - `npm run generate-icon-types`: Executes a utility script to automatically generate TypeScript type definitions for the icons used in the library.
133
+
134
+ ### `npm run build-storybook`
135
+
136
+ Builds a static version of the Storybook documentation site, which can be deployed and hosted online.
137
+
138
+ ### `npm run lint`
139
+
140
+ ```
141
+ eslint "**/*.ts*"
142
+ ```
143
+
144
+ Lints all TypeScript files (`.ts` and `.tsx`) in the project to enforce code quality and style consistency.
145
+
146
+ ## 📦 Publishing to NPM
147
+
148
+ For instructions on how to publish a new version of `kwant-ui` to the NPM repository, please refer to our internal documentation on Confluence.
149
+
150
+ [**Publishing Guide: Publishing a version of ui-components(npm package)**](https://ontargetapp.atlassian.net/wiki/x/AwDcfg 'null')
151
+
152
+ ## 📂 Folder Structure
153
+
154
+ The library is organized as follows:
155
+
156
+ ```
157
+ kwant-ui/
158
+ ├── .storybook/ # Storybook configuration files
159
+ ├── components/ # The source code for all React components
160
+ ├── GlobalStyles/ # Global CSS styles and resets
161
+ ├── HOC/ # Higher-Order Components
162
+ ├── hooks/ # Custom React hooks
163
+ ├── stories/ # Storybook stories for each component
164
+ ├── themes/ # Design tokens (colors, spacing, typography)
165
+ ├── types/ # Global TypeScript type definitions
166
+ ├── utils/ # Utility scripts, like the icon type generator
167
+ ├── .eslintrc.cjs # ESLint configuration
168
+ ├── .prettierrc # Prettier configuration
169
+ ├── package.json # Project dependencies and scripts
170
+ ├── rollup.config.js # Rollup configuration for building the library
171
+ └── tsconfig.json # TypeScript configuration
172
+
173
+ ```
174
+
175
+ ## 🤝 Contributing
176
+
177
+ 1. Fork the Project
178
+ 2. Create your Feature Branch (`git checkout -b PR-JIRA-TICKET-ID`)
179
+ 3. Commit your Changes (`git commit -m 'Add NewComponent'`)
180
+ 4. Push to the Branch (`git push origin PR-JIRA-TICKET-ID`)
181
+ 5. Open a Pull Request
@@ -1,5 +1,5 @@
1
- import { Color } from '../themes/types';
2
- declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{
3
- theme: Color;
4
- }, import("styled-components").DefaultTheme>;
5
- export { GlobalStyles };
1
+ import { Color } from '../themes/types';
2
+ declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{
3
+ theme: Color;
4
+ }, import("styled-components").DefaultTheme>;
5
+ export { GlobalStyles };
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- export declare namespace TextComponent {
3
- type Props = ParagraphTypes & {
4
- onClick?: (event: React.MouseEvent<HTMLParagraphElement, MouseEvent>) => void;
5
- children?: React.ReactNode;
6
- type?: Type;
7
- };
8
- type Category = 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'link' | 'title';
9
- type Weight = 'regular' | 'medium' | 'semiBold';
10
- type Type = 'error' | 'success';
11
- type ParagraphTypes = {
12
- category?: Category;
13
- weight: Weight;
14
- color?: string;
15
- type?: Type;
16
- };
17
- }
1
+ /// <reference types="react" />
2
+ export declare namespace TextComponent {
3
+ type Props = ParagraphTypes & {
4
+ onClick?: (event: React.MouseEvent<HTMLParagraphElement, MouseEvent>) => void;
5
+ children?: React.ReactNode;
6
+ type?: Type;
7
+ };
8
+ type Category = 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'link' | 'title';
9
+ type Weight = 'regular' | 'medium' | 'semiBold';
10
+ type Type = 'error' | 'success';
11
+ type ParagraphTypes = {
12
+ category?: Category;
13
+ weight: Weight;
14
+ color?: string;
15
+ type?: Type;
16
+ };
17
+ }
@@ -1,20 +1,20 @@
1
- import { FlattenSimpleInterpolation } from 'styled-components';
2
- import { TextComponent } from './types';
3
- type Typography = {
4
- subtitle1: FlattenSimpleInterpolation;
5
- subtitle2: FlattenSimpleInterpolation;
6
- body1: FlattenSimpleInterpolation;
7
- body2: FlattenSimpleInterpolation;
8
- prefix: FlattenSimpleInterpolation;
9
- caption: FlattenSimpleInterpolation;
10
- link: FlattenSimpleInterpolation;
11
- };
12
- declare const FONT_WEIGHT: {
13
- regular: number;
14
- medium: number;
15
- semiBold: number;
16
- };
17
- declare const typography: Typography;
18
- /** switch typography on provided category */
19
- declare const switchTypography: (props: TextComponent.ParagraphTypes) => FlattenSimpleInterpolation;
20
- export { switchTypography, typography, FONT_WEIGHT };
1
+ import { FlattenSimpleInterpolation } from 'styled-components';
2
+ import { TextComponent } from './types';
3
+ type Typography = {
4
+ subtitle1: FlattenSimpleInterpolation;
5
+ subtitle2: FlattenSimpleInterpolation;
6
+ body1: FlattenSimpleInterpolation;
7
+ body2: FlattenSimpleInterpolation;
8
+ prefix: FlattenSimpleInterpolation;
9
+ caption: FlattenSimpleInterpolation;
10
+ link: FlattenSimpleInterpolation;
11
+ };
12
+ declare const FONT_WEIGHT: {
13
+ regular: number;
14
+ medium: number;
15
+ semiBold: number;
16
+ };
17
+ declare const typography: Typography;
18
+ /** switch typography on provided category */
19
+ declare const switchTypography: (props: TextComponent.ParagraphTypes) => FlattenSimpleInterpolation;
20
+ export { switchTypography, typography, FONT_WEIGHT };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { HoverTypes } from './types';
3
- declare const HoverHOC: import("react").ForwardRefExoticComponent<HoverTypes & import("react").RefAttributes<HTMLInputElement>>;
4
- export default HoverHOC;
1
+ /// <reference types="react" />
2
+ import { HoverTypes } from './types';
3
+ declare const HoverHOC: import("react").ForwardRefExoticComponent<HoverTypes & import("react").RefAttributes<HTMLInputElement>>;
4
+ export default HoverHOC;
@@ -1,2 +1,2 @@
1
- import { HoverStyleTypes } from './types';
2
- export declare const HoverHOCWrapper: import("styled-components").StyledComponent<"div", any, HoverStyleTypes, never>;
1
+ import { HoverStyleTypes } from './types';
2
+ export declare const HoverHOCWrapper: import("styled-components").StyledComponent<"div", any, HoverStyleTypes, never>;
@@ -1,2 +1,2 @@
1
- import HoverHOC from './HoverHOC';
2
- export { HoverHOC };
1
+ import HoverHOC from './HoverHOC';
2
+ export { HoverHOC };
@@ -1,20 +1,20 @@
1
- import { Ref } from 'react';
2
- import { TooltipComponent } from '../../components/Tooltip/types';
3
- export type HoverTypes = {
4
- children: JSX.Element[] | JSX.Element;
5
- label?: string;
6
- value?: any;
7
- editMode?: boolean;
8
- disableHover?: boolean;
9
- editActive?: boolean;
10
- setEditActive?: any;
11
- onMouseLeaveFromInput?: any;
12
- disableEdit?: boolean;
13
- inputRef?: Ref<HTMLInputElement>;
14
- tooltipContent?: string | null;
15
- tooltipPosition?: TooltipComponent.Position;
16
- };
17
- export type HoverStyleTypes = {
18
- editMode?: boolean;
19
- disableHover?: boolean;
20
- };
1
+ import { Ref } from 'react';
2
+ import { TooltipComponent } from '../../components/Tooltip/types';
3
+ export type HoverTypes = {
4
+ children: JSX.Element[] | JSX.Element;
5
+ label?: string;
6
+ value?: any;
7
+ editMode?: boolean;
8
+ disableHover?: boolean;
9
+ editActive?: boolean;
10
+ setEditActive?: any;
11
+ onMouseLeaveFromInput?: any;
12
+ disableEdit?: boolean;
13
+ inputRef?: Ref<HTMLInputElement>;
14
+ tooltipContent?: string | null;
15
+ tooltipPosition?: TooltipComponent.Position;
16
+ };
17
+ export type HoverStyleTypes = {
18
+ editMode?: boolean;
19
+ disableHover?: boolean;
20
+ };
@@ -1,3 +1,3 @@
1
- import { IAlert } from './AlertTypes';
2
- declare const Alert: (props: IAlert.Props) => import("react/jsx-runtime").JSX.Element;
3
- export { Alert };
1
+ import { IAlert } from './AlertTypes';
2
+ declare const Alert: (props: IAlert.Props) => import("react/jsx-runtime").JSX.Element;
3
+ export { Alert };
@@ -1,6 +1,6 @@
1
- import { IAlert } from './AlertTypes';
2
- export declare const AlertStyled: import("styled-components").StyledComponent<"div", any, IAlert.AlertStyled, never>;
3
- export declare const InfoIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
4
- export declare const Content: import("styled-components").StyledComponent<"span", any, {}, never>;
5
- export declare const AlertActionBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const CloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
1
+ import { IAlert } from './AlertTypes';
2
+ export declare const AlertStyled: import("styled-components").StyledComponent<"div", any, IAlert.AlertStyled, never>;
3
+ export declare const InfoIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
4
+ export declare const Content: import("styled-components").StyledComponent<"span", any, {}, never>;
5
+ export declare const AlertActionBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const CloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
@@ -1,24 +1,24 @@
1
- import { ReactNode } from 'react';
2
- export declare namespace IAlert {
3
- type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise';
4
- interface AlertStyled {
5
- type: AlertType;
6
- width?: string;
7
- minHeight?: string;
8
- }
9
- type ColorFamily = {
10
- class: string;
11
- member: string;
12
- };
13
- interface Props {
14
- width?: string;
15
- minHeight?: string;
16
- message: string | ReactNode;
17
- type?: AlertType;
18
- showActionBtn?: boolean;
19
- actionBtnLabel?: string;
20
- showCloseBtn?: boolean;
21
- onActionBtnClick?: () => void;
22
- onClose?: () => void;
23
- }
24
- }
1
+ import { ReactNode } from 'react';
2
+ export declare namespace IAlert {
3
+ type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise' | 'alert';
4
+ interface AlertStyled {
5
+ type: AlertType;
6
+ width?: string;
7
+ minHeight?: string;
8
+ }
9
+ type ColorFamily = {
10
+ class: string;
11
+ member: string;
12
+ };
13
+ interface Props {
14
+ width?: string;
15
+ minHeight?: string;
16
+ message: string | ReactNode;
17
+ type?: AlertType;
18
+ showActionBtn?: boolean;
19
+ actionBtnLabel?: string;
20
+ showCloseBtn?: boolean;
21
+ onActionBtnClick?: () => void;
22
+ onClose?: () => void;
23
+ }
24
+ }
@@ -1,23 +1,24 @@
1
- import { IAlert } from './AlertTypes';
2
- export declare const TOAST_COLOR: {
3
- [key: string]: {
4
- border: IAlert.ColorFamily;
5
- background: IAlert.ColorFamily;
6
- icon: IAlert.ColorFamily;
7
- [key: string]: any;
8
- };
9
- };
10
- export declare const getIcon: (type: IAlert.AlertType) => import("react/jsx-runtime").JSX.Element;
11
- export declare const getTooltipColorFor: (type: string, key: string) => any;
12
- export declare const alertIcons: {
13
- info: import("react/jsx-runtime").JSX.Element;
14
- success: import("react/jsx-runtime").JSX.Element;
15
- error: import("react/jsx-runtime").JSX.Element;
16
- warning: import("react/jsx-runtime").JSX.Element;
17
- promise: import("react/jsx-runtime").JSX.Element;
18
- };
19
- export declare const switchStyles: (type: IAlert.AlertType, theme: any) => {
20
- background: any;
21
- border: string;
22
- };
23
- export declare const closeIcon: import("react/jsx-runtime").JSX.Element;
1
+ import { IAlert } from './AlertTypes';
2
+ export declare const TOAST_COLOR: {
3
+ [key: string]: {
4
+ border: IAlert.ColorFamily;
5
+ background: IAlert.ColorFamily;
6
+ icon: IAlert.ColorFamily;
7
+ [key: string]: any;
8
+ };
9
+ };
10
+ export declare const getIcon: (type: IAlert.AlertType) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const getTooltipColorFor: (type: string, key: string) => any;
12
+ export declare const alertIcons: {
13
+ info: import("react/jsx-runtime").JSX.Element;
14
+ success: import("react/jsx-runtime").JSX.Element;
15
+ error: import("react/jsx-runtime").JSX.Element;
16
+ warning: import("react/jsx-runtime").JSX.Element;
17
+ promise: import("react/jsx-runtime").JSX.Element;
18
+ alert: import("react/jsx-runtime").JSX.Element;
19
+ };
20
+ export declare const switchStyles: (type: IAlert.AlertType, theme: any) => {
21
+ background: any;
22
+ border: string;
23
+ };
24
+ export declare const closeIcon: import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { Alert } from './Alert';
2
- export { Alert };
1
+ import { Alert } from './Alert';
2
+ export { Alert };
@@ -1,3 +1,3 @@
1
- import { AvatarDeclarations } from './Avatar.types';
2
- declare const Avatar: (props: AvatarDeclarations.Props) => import("react/jsx-runtime").JSX.Element;
3
- export { Avatar };
1
+ import { AvatarDeclarations } from './Avatar.types';
2
+ declare const Avatar: (props: AvatarDeclarations.Props) => import("react/jsx-runtime").JSX.Element;
3
+ export { Avatar };
@@ -1,40 +1,40 @@
1
- /// <reference types="react" />
2
- export declare namespace AvatarDeclarations {
3
- type Size = number | string | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
4
- interface SizesObj {
5
- [key: Size]: {
6
- avatarSize: number;
7
- fontSize: number;
8
- };
9
- }
10
- interface Props {
11
- src?: string;
12
- alt?: string;
13
- backgroundColor?: 'random' | string;
14
- size?: Size;
15
- fontSize?: string | number;
16
- fontColor?: string;
17
- objectFit?: 'cover' | 'contain';
18
- avatarButton?: React.ReactNode;
19
- onClick?: (params: Props) => void;
20
- avatarButtonRightOffset?: number;
21
- avatarButtonBottomOffset?: number;
22
- [key: string]: any;
23
- }
24
- type Image = HTMLImageElement | null;
25
- interface StyledAvatarContainer {
26
- background: string;
27
- size: Size;
28
- }
29
- interface StyledAvatarImage {
30
- objectFit: 'cover' | 'contain';
31
- }
32
- interface StyledAvatarPlaceholder {
33
- fontSize: string;
34
- fontColor: string;
35
- }
36
- interface StyledAvatarButton {
37
- rightOffset: string;
38
- bottomOffset: string;
39
- }
40
- }
1
+ /// <reference types="react" />
2
+ export declare namespace AvatarDeclarations {
3
+ type Size = number | string | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
4
+ interface SizesObj {
5
+ [key: Size]: {
6
+ avatarSize: number;
7
+ fontSize: number;
8
+ };
9
+ }
10
+ interface Props {
11
+ src?: string;
12
+ alt?: string;
13
+ backgroundColor?: 'random' | string;
14
+ size?: Size;
15
+ fontSize?: string | number;
16
+ fontColor?: string;
17
+ objectFit?: 'cover' | 'contain';
18
+ avatarButton?: React.ReactNode;
19
+ onClick?: (params: Props) => void;
20
+ avatarButtonRightOffset?: number;
21
+ avatarButtonBottomOffset?: number;
22
+ [key: string]: any;
23
+ }
24
+ type Image = HTMLImageElement | null;
25
+ interface StyledAvatarContainer {
26
+ background: string;
27
+ size: Size;
28
+ }
29
+ interface StyledAvatarImage {
30
+ objectFit: 'cover' | 'contain';
31
+ }
32
+ interface StyledAvatarPlaceholder {
33
+ fontSize: string;
34
+ fontColor: string;
35
+ }
36
+ interface StyledAvatarButton {
37
+ rightOffset: string;
38
+ bottomOffset: string;
39
+ }
40
+ }
@@ -1,6 +1,6 @@
1
- import { AvatarDeclarations } from './Avatar.types';
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const AvatarContainer: import("styled-components").StyledComponent<"div", any, AvatarDeclarations.StyledAvatarContainer, never>;
4
- export declare const AvatarImage: import("styled-components").StyledComponent<"img", any, AvatarDeclarations.StyledAvatarImage, never>;
5
- export declare const AvatarPlaceholder: import("styled-components").StyledComponent<"span", any, AvatarDeclarations.StyledAvatarPlaceholder, never>;
6
- export declare const AvatarButtonSection: import("styled-components").StyledComponent<"div", any, AvatarDeclarations.StyledAvatarButton, never>;
1
+ import { AvatarDeclarations } from './Avatar.types';
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const AvatarContainer: import("styled-components").StyledComponent<"div", any, AvatarDeclarations.StyledAvatarContainer, never>;
4
+ export declare const AvatarImage: import("styled-components").StyledComponent<"img", any, AvatarDeclarations.StyledAvatarImage, never>;
5
+ export declare const AvatarPlaceholder: import("styled-components").StyledComponent<"span", any, AvatarDeclarations.StyledAvatarPlaceholder, never>;
6
+ export declare const AvatarButtonSection: import("styled-components").StyledComponent<"div", any, AvatarDeclarations.StyledAvatarButton, never>;
@@ -1,2 +1,2 @@
1
- import { AvatarDeclarations } from './Avatar.types';
2
- export declare const sizes: AvatarDeclarations.SizesObj;
1
+ import { AvatarDeclarations } from './Avatar.types';
2
+ export declare const sizes: AvatarDeclarations.SizesObj;
@@ -1,2 +1,2 @@
1
- import { Avatar } from './Avatar';
2
- export { Avatar };
1
+ import { Avatar } from './Avatar';
2
+ export { Avatar };