kwant-ui 3.39.4-dev.6 → 3.40.4-dev.6

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 (314) hide show
  1. package/README.md +73 -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 +23 -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 +41 -41
  52. package/dist/components/Calendar/CalendarTypes.d.ts +76 -76
  53. package/dist/components/Calendar/CalendarUtils.d.ts +41 -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 +26 -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 +6 -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 +50 -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 +34 -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 +13 -13
  139. package/dist/components/DropdownSelect/DropdownSelect.types.d.ts +10 -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 +26 -26
  175. package/dist/components/Input/inputStyled.d.ts +9 -9
  176. package/dist/components/Input/types.d.ts +52 -52
  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 +8 -8
  220. package/dist/components/Select/Select.types.d.ts +22 -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/Toast/Toast.d.ts +3 -3
  259. package/dist/components/Toast/Toast.styled.d.ts +7 -7
  260. package/dist/components/Toast/Toast.types.d.ts +49 -49
  261. package/dist/components/Toast/Toast.utils.d.ts +8 -8
  262. package/dist/components/Toast/ToastContext.d.ts +4 -4
  263. package/dist/components/Toast/ToastProvider.d.ts +3 -3
  264. package/dist/components/Toast/index.d.ts +2 -2
  265. package/dist/components/Tooltip/Tooltip.d.ts +3 -3
  266. package/dist/components/Tooltip/index.d.ts +2 -2
  267. package/dist/components/Tooltip/tooltip.styled.d.ts +2 -2
  268. package/dist/components/Tooltip/types.d.ts +34 -34
  269. package/dist/components/TrendPercentage/TrendPercentage.d.ts +15 -15
  270. package/dist/components/TrendPercentage/TrendPercentageStyled.d.ts +5 -5
  271. package/dist/components/TrendPercentage/index.d.ts +2 -2
  272. package/dist/components/UploadAvatar/UploadAvatar.d.ts +3 -3
  273. package/dist/components/UploadAvatar/UploadAvatarStyled.d.ts +1 -1
  274. package/dist/components/UploadAvatar/types.d.ts +9 -9
  275. package/dist/components/stepper/StepperStyled.d.ts +26 -26
  276. package/dist/components/stepper/StepperTypes.d.ts +28 -28
  277. package/dist/components/stepper/StepperUtils.d.ts +10 -10
  278. package/dist/components/stepper/index.d.ts +3 -3
  279. package/dist/globals.d.ts +7 -7
  280. package/dist/hooks/index.d.ts +5 -5
  281. package/dist/hooks/useDebouncedValue.d.ts +2 -2
  282. package/dist/hooks/useDynamicImport.d.ts +8 -8
  283. package/dist/hooks/useFullScreenFeature.d.ts +5 -5
  284. package/dist/hooks/useOutsideClick.d.ts +6 -6
  285. package/dist/hooks/useTimeBar.d.ts +29 -29
  286. package/dist/hooks/useToast.d.ts +10 -10
  287. package/dist/hooks/useToggle.d.ts +8 -8
  288. package/dist/index.d.ts +68 -68
  289. package/dist/index.es.js +3 -3
  290. package/dist/index.js +3 -3
  291. package/dist/package.json +89 -89
  292. package/dist/public/assets/icons/doc-alert.svg +5 -5
  293. package/dist/public/assets/icons/doc-expired-closed.svg +6 -6
  294. package/dist/public/assets/icons/no-entry-man.svg +4 -4
  295. package/dist/themes/colors.d.ts +3 -3
  296. package/dist/themes/colors.ts +222 -222
  297. package/dist/themes/index.d.ts +3 -3
  298. package/dist/themes/types.d.ts +229 -229
  299. package/dist/types/IconTypes.d.ts +1 -1
  300. package/dist/utils/formatDate.d.ts +2 -2
  301. package/dist/utils/index.d.ts +12 -12
  302. package/dist/utils/index.ts +86 -86
  303. package/dist/utils/truncate.d.ts +2 -2
  304. package/package.json +89 -89
  305. package/themes/colors.ts +222 -222
  306. package/themes/index.ts +8 -8
  307. package/themes/types.ts +250 -250
  308. package/utils/formatDate.ts +13 -13
  309. package/utils/generateTypesForIcons.js +37 -37
  310. package/utils/index.ts +86 -86
  311. package/utils/truncate.ts +7 -7
  312. package/dist/public/assets/icons/Compare.svg +0 -1
  313. package/dist/public/assets/icons/Notifications.svg +0 -1
  314. package/dist/public/assets/icons/Search.svg +0 -1
package/README.md CHANGED
@@ -1,73 +1,73 @@
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 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,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';
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,23 @@
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
+ };
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,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 };
@@ -1,3 +1,3 @@
1
- import { IAvatarGroup } from './AvatarGroupTypes';
2
- declare const AvatarGroup: (props: IAvatarGroup.Props) => import("react/jsx-runtime").JSX.Element;
3
- export { AvatarGroup };
1
+ import { IAvatarGroup } from './AvatarGroupTypes';
2
+ declare const AvatarGroup: (props: IAvatarGroup.Props) => import("react/jsx-runtime").JSX.Element;
3
+ export { AvatarGroup };
@@ -1,3 +1,3 @@
1
- import { IAvatarGroup } from './AvatarGroupTypes';
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, IAvatarGroup.StyledAvatarContainer, never>;
3
- export declare const AvatarItem: import("styled-components").StyledComponent<"div", any, IAvatarGroup.StyledAvatarItem, never>;
1
+ import { IAvatarGroup } from './AvatarGroupTypes';
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, IAvatarGroup.StyledAvatarContainer, never>;
3
+ export declare const AvatarItem: import("styled-components").StyledComponent<"div", any, IAvatarGroup.StyledAvatarItem, never>;
@@ -1,20 +1,20 @@
1
- import { AvatarDeclarations } from '../Avatar/Avatar.types';
2
- export declare namespace IAvatarGroup {
3
- interface Props extends Pick<AvatarDeclarations.Props, 'backgroundColor' | 'fontColor' | 'fontSize'> {
4
- borderWidth?: number;
5
- borderColor?: string;
6
- boxShadow?: string;
7
- avatars?: AvatarDeclarations.Props[];
8
- size?: AvatarDeclarations.Size;
9
- }
10
- interface StyledAvatarContainer {
11
- height: string;
12
- width: string;
13
- }
14
- interface StyledAvatarItem {
15
- borderWidth?: string;
16
- borderColor?: string;
17
- boxShadow?: string;
18
- index?: number;
19
- }
20
- }
1
+ import { AvatarDeclarations } from '../Avatar/Avatar.types';
2
+ export declare namespace IAvatarGroup {
3
+ interface Props extends Pick<AvatarDeclarations.Props, 'backgroundColor' | 'fontColor' | 'fontSize'> {
4
+ borderWidth?: number;
5
+ borderColor?: string;
6
+ boxShadow?: string;
7
+ avatars?: AvatarDeclarations.Props[];
8
+ size?: AvatarDeclarations.Size;
9
+ }
10
+ interface StyledAvatarContainer {
11
+ height: string;
12
+ width: string;
13
+ }
14
+ interface StyledAvatarItem {
15
+ borderWidth?: string;
16
+ borderColor?: string;
17
+ boxShadow?: string;
18
+ index?: number;
19
+ }
20
+ }
@@ -1 +1 @@
1
- export declare const calculateWidth: (length: number | string, borderWidth: number, avatarsNumber: number) => number;
1
+ export declare const calculateWidth: (length: number | string, borderWidth: number, avatarsNumber: number) => number;
@@ -1,2 +1,2 @@
1
- import { AvatarGroup } from './AvatarGroup';
2
- export { AvatarGroup };
1
+ import { AvatarGroup } from './AvatarGroup';
2
+ export { AvatarGroup };
@@ -1,3 +1,3 @@
1
- import { BTypes } from './types';
2
- declare function Badge(props: BTypes): import("react/jsx-runtime").JSX.Element;
3
- export { Badge };
1
+ import { BTypes } from './types';
2
+ declare function Badge(props: BTypes): import("react/jsx-runtime").JSX.Element;
3
+ export { Badge };
@@ -1 +1 @@
1
- export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
- export type BTypes = {
2
- type?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
3
- label: string;
4
- inverted?: boolean;
5
- size?: 'sm' | 'default';
6
- };
1
+ export type BTypes = {
2
+ type?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
3
+ label: string;
4
+ inverted?: boolean;
5
+ size?: 'sm' | 'default';
6
+ };