@loja-integrada/admin-components 0.19.3 → 1.0.0-beta.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 (611) hide show
  1. package/LICENSE +1 -1
  2. package/dist/chunk-7RSXJRXE.js +7 -0
  3. package/dist/chunk-AYBQ5B4L.js +1 -0
  4. package/dist/chunk-LTWCICTK.js +1 -0
  5. package/dist/chunk-QCTWLTAA.js +1 -0
  6. package/dist/chunk-YV57ZIX5.js +7 -0
  7. package/dist/chunk-YXT4UVSS.js +6 -0
  8. package/dist/components/Button/Button.d.ts +52 -0
  9. package/dist/components/Button/Button.js +3 -0
  10. package/dist/components/Button/index.d.ts +6 -0
  11. package/dist/components/Button/index.js +4 -0
  12. package/dist/components/Icon/Icon.d.ts +127 -0
  13. package/dist/components/Icon/Icon.js +1 -0
  14. package/dist/components/Icon/index.d.ts +3 -0
  15. package/dist/components/Icon/index.js +2 -0
  16. package/dist/{Icons → components}/IconCircular/IconCircular.d.ts +22 -19
  17. package/dist/components/IconCircular/IconCircular.js +3 -0
  18. package/dist/components/IconCircular/index.d.ts +4 -0
  19. package/dist/components/IconCircular/index.js +4 -0
  20. package/dist/index.d.ts +7 -6
  21. package/dist/index.js +6 -8
  22. package/package.json +60 -140
  23. package/README.md +0 -82
  24. package/dist/Components/Button/Button.d.ts +0 -42
  25. package/dist/Components/Button/Button.spec.d.ts +0 -1
  26. package/dist/Components/Button/Button.stories.d.ts +0 -11
  27. package/dist/Components/Button/index.d.ts +0 -1
  28. package/dist/Components/HelpLink/HelpLink.spec.d.ts +0 -1
  29. package/dist/Components/HelpLink/HelpLink.stories.d.ts +0 -6
  30. package/dist/Components/HelpLink/index.d.ts +0 -28
  31. package/dist/Components/LoadingPlaceholder/LoadingPlaceholder.d.ts +0 -5
  32. package/dist/Components/LoadingPlaceholder/LoadingPlaceholder.stories.d.ts +0 -4
  33. package/dist/Components/LoadingPlaceholder/index.d.ts +0 -1
  34. package/dist/Components/Modal/Modal.d.ts +0 -48
  35. package/dist/Components/Modal/Modal.spec.d.ts +0 -1
  36. package/dist/Components/Modal/Modal.stories.d.ts +0 -7
  37. package/dist/Components/Modal/index.d.ts +0 -1
  38. package/dist/Components/SidebarFixed/SidebarFixed.d.ts +0 -30
  39. package/dist/Components/SidebarFixed/SidebarFixed.spec.d.ts +0 -1
  40. package/dist/Components/SidebarFixed/SidebarFixed.stories.d.ts +0 -4
  41. package/dist/Components/SidebarFixed/index.d.ts +0 -1
  42. package/dist/Components/Table/Table.d.ts +0 -81
  43. package/dist/Components/Table/Table.stories.d.ts +0 -8
  44. package/dist/Components/Table/index.d.ts +0 -1
  45. package/dist/Components/TableList/TableList.d.ts +0 -38
  46. package/dist/Components/TableList/TableList.spec.d.ts +0 -1
  47. package/dist/Components/TableList/TableList.stories.d.ts +0 -7
  48. package/dist/Components/TableList/TableListItem.d.ts +0 -3
  49. package/dist/Components/TableList/TableListItem.interface.d.ts +0 -68
  50. package/dist/Components/TableList/TableListItem.spec.d.ts +0 -1
  51. package/dist/Components/TableList/TableListItem.stories.d.ts +0 -4
  52. package/dist/Components/TableList/TableListItemLoading.d.ts +0 -3
  53. package/dist/Components/TableList/TableListItemLoading.spec.d.ts +0 -1
  54. package/dist/Components/TableList/TableListItemLoading.stories.d.ts +0 -4
  55. package/dist/Components/TableList/TableListItemWrapper.d.ts +0 -12
  56. package/dist/Components/TableList/TableListItemWrapper.spec.d.ts +0 -1
  57. package/dist/Components/TableList/TableListItemWrapper.stories.d.ts +0 -4
  58. package/dist/Components/TableList/index.d.ts +0 -4
  59. package/dist/Components/Tabs/Tabs.d.ts +0 -21
  60. package/dist/Components/Tabs/Tabs.spec.d.ts +0 -1
  61. package/dist/Components/Tabs/Tabs.stories.d.ts +0 -5
  62. package/dist/Components/Tabs/TabsItem.d.ts +0 -14
  63. package/dist/Components/Tabs/TabsItem.interface.d.ts +0 -19
  64. package/dist/Components/Tabs/index.d.ts +0 -1
  65. package/dist/Components/Timeline/Timeline.d.ts +0 -25
  66. package/dist/Components/Timeline/Timeline.spec.d.ts +0 -1
  67. package/dist/Components/Timeline/Timeline.stories.d.ts +0 -7
  68. package/dist/Components/Timeline/TimelineItem.d.ts +0 -6
  69. package/dist/Components/Timeline/TimelineItem.interface.d.ts +0 -32
  70. package/dist/Components/Timeline/index.d.ts +0 -1
  71. package/dist/Components/index.d.ts +0 -8
  72. package/dist/Forms/Checkbox/Checkbox.d.ts +0 -27
  73. package/dist/Forms/Checkbox/Checkbox.spec.d.ts +0 -1
  74. package/dist/Forms/Checkbox/Checkbox.stories.d.ts +0 -10
  75. package/dist/Forms/Checkbox/index.d.ts +0 -1
  76. package/dist/Forms/Dropdown/Dropdown.d.ts +0 -168
  77. package/dist/Forms/Dropdown/Dropdown.spec.d.ts +0 -1
  78. package/dist/Forms/Dropdown/Dropdown.stories.d.ts +0 -19
  79. package/dist/Forms/Dropdown/index.d.ts +0 -1
  80. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.d.ts +0 -11
  81. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.spec.d.ts +0 -1
  82. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.stories.d.ts +0 -10
  83. package/dist/Forms/FloatingLabelInput/index.d.ts +0 -1
  84. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.d.ts +0 -49
  85. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.spec.d.ts +0 -1
  86. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.stories.d.ts +0 -10
  87. package/dist/Forms/FloatingLabelInputCurrency/index.d.ts +0 -1
  88. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.d.ts +0 -18
  89. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.spec.d.ts +0 -1
  90. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.stories.d.ts +0 -19
  91. package/dist/Forms/FloatingLabelInputMask/index.d.ts +0 -1
  92. package/dist/Forms/Input/Input.d.ts +0 -36
  93. package/dist/Forms/Input/Input.spec.d.ts +0 -1
  94. package/dist/Forms/Input/Input.stories.d.ts +0 -21
  95. package/dist/Forms/Input/index.d.ts +0 -1
  96. package/dist/Forms/InputCurrency/InputCurrency.d.ts +0 -47
  97. package/dist/Forms/InputCurrency/InputCurrency.spec.d.ts +0 -1
  98. package/dist/Forms/InputCurrency/InputCurrency.stories.d.ts +0 -8
  99. package/dist/Forms/InputCurrency/index.d.ts +0 -1
  100. package/dist/Forms/InputCurrency/utils.d.ts +0 -22
  101. package/dist/Forms/InputHelpText/InputHelpText.d.ts +0 -16
  102. package/dist/Forms/InputHelpText/InputHelpText.spec.d.ts +0 -1
  103. package/dist/Forms/InputHelpText/InputHelpText.stories.d.ts +0 -4
  104. package/dist/Forms/InputHelpText/index.d.ts +0 -1
  105. package/dist/Forms/InputLabel/InputLabel.d.ts +0 -28
  106. package/dist/Forms/InputLabel/InputLabel.spec.d.ts +0 -1
  107. package/dist/Forms/InputLabel/InputLabel.stories.d.ts +0 -5
  108. package/dist/Forms/InputLabel/index.d.ts +0 -1
  109. package/dist/Forms/InputMask/InputMask.d.ts +0 -18
  110. package/dist/Forms/InputMask/InputMask.spec.d.ts +0 -1
  111. package/dist/Forms/InputMask/InputMask.stories.d.ts +0 -17
  112. package/dist/Forms/InputMask/index.d.ts +0 -1
  113. package/dist/Forms/InputMask/maskDate.d.ts +0 -7
  114. package/dist/Forms/InputMask/utils.d.ts +0 -65
  115. package/dist/Forms/RadioButton/RadioButton.d.ts +0 -24
  116. package/dist/Forms/RadioButton/RadioButton.spec.d.ts +0 -1
  117. package/dist/Forms/RadioButton/RadioButton.stories.d.ts +0 -6
  118. package/dist/Forms/RadioButton/index.d.ts +0 -1
  119. package/dist/Forms/Select/Select.d.ts +0 -31
  120. package/dist/Forms/Select/Select.spec.d.ts +0 -1
  121. package/dist/Forms/Select/Select.stories.d.ts +0 -8
  122. package/dist/Forms/Select/index.d.ts +0 -1
  123. package/dist/Forms/Toggle/Toggle.d.ts +0 -5
  124. package/dist/Forms/Toggle/Toggle.spec.d.ts +0 -1
  125. package/dist/Forms/Toggle/Toggle.stories.d.ts +0 -8
  126. package/dist/Forms/Toggle/index.d.ts +0 -1
  127. package/dist/Forms/ToggleButton/ToggleButton.d.ts +0 -24
  128. package/dist/Forms/ToggleButton/ToggleButton.spec.d.ts +0 -1
  129. package/dist/Forms/ToggleButton/ToggleButton.stories.d.ts +0 -7
  130. package/dist/Forms/ToggleButton/index.d.ts +0 -1
  131. package/dist/Forms/commonStyles.d.ts +0 -16
  132. package/dist/Forms/index.d.ts +0 -14
  133. package/dist/Icons/Icon/Icon.d.ts +0 -34
  134. package/dist/Icons/Icon/Icon.spec.d.ts +0 -1
  135. package/dist/Icons/Icon/Icon.stories.d.ts +0 -9
  136. package/dist/Icons/Icon/index.d.ts +0 -1
  137. package/dist/Icons/IconCircular/IconCircular.spec.d.ts +0 -1
  138. package/dist/Icons/IconCircular/IconCircular.stories.d.ts +0 -6
  139. package/dist/Icons/IconCircular/index.d.ts +0 -1
  140. package/dist/Icons/IconList.d.ts +0 -3
  141. package/dist/Icons/icons-path/Adjust.d.ts +0 -2
  142. package/dist/Icons/icons-path/AngleDiagonal.d.ts +0 -2
  143. package/dist/Icons/icons-path/AngleDown.d.ts +0 -2
  144. package/dist/Icons/icons-path/AngleHeight.d.ts +0 -2
  145. package/dist/Icons/icons-path/AngleLeft.d.ts +0 -2
  146. package/dist/Icons/icons-path/AngleRight.d.ts +0 -2
  147. package/dist/Icons/icons-path/AngleWidth.d.ts +0 -2
  148. package/dist/Icons/icons-path/App.d.ts +0 -2
  149. package/dist/Icons/icons-path/Arrow.d.ts +0 -2
  150. package/dist/Icons/icons-path/ArrowLeft.d.ts +0 -2
  151. package/dist/Icons/icons-path/ArrowRight.d.ts +0 -2
  152. package/dist/Icons/icons-path/Back.d.ts +0 -2
  153. package/dist/Icons/icons-path/Ban.d.ts +0 -2
  154. package/dist/Icons/icons-path/BarcodeRead.d.ts +0 -2
  155. package/dist/Icons/icons-path/Bell.d.ts +0 -2
  156. package/dist/Icons/icons-path/Blog.d.ts +0 -2
  157. package/dist/Icons/icons-path/Bullhorn.d.ts +0 -2
  158. package/dist/Icons/icons-path/Calculator.d.ts +0 -2
  159. package/dist/Icons/icons-path/CalendarAlt.d.ts +0 -2
  160. package/dist/Icons/icons-path/Camera.d.ts +0 -2
  161. package/dist/Icons/icons-path/Check.d.ts +0 -2
  162. package/dist/Icons/icons-path/CheckCircle.d.ts +0 -2
  163. package/dist/Icons/icons-path/Clock.d.ts +0 -2
  164. package/dist/Icons/icons-path/Clockwise.d.ts +0 -2
  165. package/dist/Icons/icons-path/Close.d.ts +0 -2
  166. package/dist/Icons/icons-path/Cog.d.ts +0 -2
  167. package/dist/Icons/icons-path/Copy.d.ts +0 -2
  168. package/dist/Icons/icons-path/CreditCard.d.ts +0 -2
  169. package/dist/Icons/icons-path/DashedCircle.d.ts +0 -2
  170. package/dist/Icons/icons-path/DefaultCursor.d.ts +0 -2
  171. package/dist/Icons/icons-path/Desktop.d.ts +0 -2
  172. package/dist/Icons/icons-path/Discount.d.ts +0 -2
  173. package/dist/Icons/icons-path/DotsThree.d.ts +0 -2
  174. package/dist/Icons/icons-path/Download.d.ts +0 -2
  175. package/dist/Icons/icons-path/Edit.d.ts +0 -2
  176. package/dist/Icons/icons-path/Envelope.d.ts +0 -2
  177. package/dist/Icons/icons-path/Exchange.d.ts +0 -2
  178. package/dist/Icons/icons-path/ExchangeY.d.ts +0 -2
  179. package/dist/Icons/icons-path/Exclamation.d.ts +0 -2
  180. package/dist/Icons/icons-path/ExclamationCircle.d.ts +0 -2
  181. package/dist/Icons/icons-path/ExclamationTriangle.d.ts +0 -2
  182. package/dist/Icons/icons-path/ExternalLink.d.ts +0 -2
  183. package/dist/Icons/icons-path/Eye.d.ts +0 -2
  184. package/dist/Icons/icons-path/EyeSlash.d.ts +0 -2
  185. package/dist/Icons/icons-path/Filter.d.ts +0 -2
  186. package/dist/Icons/icons-path/HalfBack.d.ts +0 -2
  187. package/dist/Icons/icons-path/Hashtag.d.ts +0 -2
  188. package/dist/Icons/icons-path/Home.d.ts +0 -2
  189. package/dist/Icons/icons-path/IconSolidEnviali.d.ts +0 -2
  190. package/dist/Icons/icons-path/IconSolidLI.d.ts +0 -2
  191. package/dist/Icons/icons-path/IdentificationBadge.d.ts +0 -2
  192. package/dist/Icons/icons-path/Image.d.ts +0 -2
  193. package/dist/Icons/icons-path/InfoCircle.d.ts +0 -2
  194. package/dist/Icons/icons-path/Lightbulb.d.ts +0 -2
  195. package/dist/Icons/icons-path/Link.d.ts +0 -2
  196. package/dist/Icons/icons-path/ListItems.d.ts +0 -2
  197. package/dist/Icons/icons-path/Loading.d.ts +0 -2
  198. package/dist/Icons/icons-path/Minus.d.ts +0 -2
  199. package/dist/Icons/icons-path/MinusCircle.d.ts +0 -2
  200. package/dist/Icons/icons-path/MinusCircleSolid.d.ts +0 -2
  201. package/dist/Icons/icons-path/Mobile.d.ts +0 -2
  202. package/dist/Icons/icons-path/MoneyBill.d.ts +0 -2
  203. package/dist/Icons/icons-path/Move.d.ts +0 -2
  204. package/dist/Icons/icons-path/Nav.d.ts +0 -2
  205. package/dist/Icons/icons-path/Order.d.ts +0 -2
  206. package/dist/Icons/icons-path/Pagali.d.ts +0 -2
  207. package/dist/Icons/icons-path/PaperList.d.ts +0 -2
  208. package/dist/Icons/icons-path/PieChart.d.ts +0 -2
  209. package/dist/Icons/icons-path/Pix.d.ts +0 -2
  210. package/dist/Icons/icons-path/Plus.d.ts +0 -2
  211. package/dist/Icons/icons-path/PlusCircle.d.ts +0 -2
  212. package/dist/Icons/icons-path/Print.d.ts +0 -2
  213. package/dist/Icons/icons-path/Product.d.ts +0 -2
  214. package/dist/Icons/icons-path/QuestionCircle.d.ts +0 -2
  215. package/dist/Icons/icons-path/Reload.d.ts +0 -2
  216. package/dist/Icons/icons-path/Rocket.d.ts +0 -2
  217. package/dist/Icons/icons-path/Search.d.ts +0 -2
  218. package/dist/Icons/icons-path/ShoppingCart.d.ts +0 -2
  219. package/dist/Icons/icons-path/SortDown.d.ts +0 -2
  220. package/dist/Icons/icons-path/Store.d.ts +0 -2
  221. package/dist/Icons/icons-path/Sync.d.ts +0 -2
  222. package/dist/Icons/icons-path/ThinAngleRight.d.ts +0 -2
  223. package/dist/Icons/icons-path/TimesCircle.d.ts +0 -2
  224. package/dist/Icons/icons-path/Trash.d.ts +0 -2
  225. package/dist/Icons/icons-path/Trophy.d.ts +0 -2
  226. package/dist/Icons/icons-path/Truck.d.ts +0 -2
  227. package/dist/Icons/icons-path/Tv.d.ts +0 -2
  228. package/dist/Icons/icons-path/Upload.d.ts +0 -2
  229. package/dist/Icons/icons-path/UsdCircle.d.ts +0 -2
  230. package/dist/Icons/icons-path/User.d.ts +0 -2
  231. package/dist/Icons/icons-path/WhatsApp.d.ts +0 -2
  232. package/dist/Icons/icons-path/index.d.ts +0 -96
  233. package/dist/Icons/index.d.ts +0 -2
  234. package/dist/Indicators/Alert/Alert.d.ts +0 -48
  235. package/dist/Indicators/Alert/Alert.spec.d.ts +0 -1
  236. package/dist/Indicators/Alert/Alert.stories.d.ts +0 -5
  237. package/dist/Indicators/Alert/index.d.ts +0 -1
  238. package/dist/Indicators/Badge/Badge.d.ts +0 -45
  239. package/dist/Indicators/Badge/Badge.spec.d.ts +0 -1
  240. package/dist/Indicators/Badge/Badge.stories.d.ts +0 -6
  241. package/dist/Indicators/Badge/index.d.ts +0 -1
  242. package/dist/Indicators/InformationBox/InformationBox.d.ts +0 -26
  243. package/dist/Indicators/InformationBox/InformationBox.spec.d.ts +0 -1
  244. package/dist/Indicators/InformationBox/InformationBoxt.stories.d.ts +0 -4
  245. package/dist/Indicators/InformationBox/index.d.ts +0 -1
  246. package/dist/Indicators/Status/Status.d.ts +0 -25
  247. package/dist/Indicators/Status/Status.spec.d.ts +0 -1
  248. package/dist/Indicators/Status/Status.stories.d.ts +0 -4
  249. package/dist/Indicators/Status/index.d.ts +0 -1
  250. package/dist/Indicators/Tag/Tag.d.ts +0 -32
  251. package/dist/Indicators/Tag/Tag.spec.d.ts +0 -1
  252. package/dist/Indicators/Tag/Tag.stories.d.ts +0 -5
  253. package/dist/Indicators/Tag/index.d.ts +0 -1
  254. package/dist/Indicators/Toast/Toast.d.ts +0 -6
  255. package/dist/Indicators/Toast/Toast.spec.d.ts +0 -1
  256. package/dist/Indicators/Toast/Toast.stories.d.ts +0 -3
  257. package/dist/Indicators/Toast/index.d.ts +0 -1
  258. package/dist/Indicators/Tooltip/Tooltip.d.ts +0 -39
  259. package/dist/Indicators/Tooltip/Tooltip.spec.d.ts +0 -1
  260. package/dist/Indicators/Tooltip/Tooltip.stories.d.ts +0 -4
  261. package/dist/Indicators/Tooltip/index.d.ts +0 -1
  262. package/dist/Indicators/index.d.ts +0 -7
  263. package/dist/Layout/ActionBar/ActionBar.d.ts +0 -12
  264. package/dist/Layout/ActionBar/ActionBar.spec.d.ts +0 -1
  265. package/dist/Layout/ActionBar/ActionBar.stories.d.ts +0 -5
  266. package/dist/Layout/ActionBar/index.d.ts +0 -1
  267. package/dist/Layout/Box/Box.d.ts +0 -33
  268. package/dist/Layout/Box/Box.spec.d.ts +0 -1
  269. package/dist/Layout/Box/Box.stories.d.ts +0 -21
  270. package/dist/Layout/Box/Components/Content/BoxContent.d.ts +0 -9
  271. package/dist/Layout/Box/Components/Content/BoxContent.spec.d.ts +0 -1
  272. package/dist/Layout/Box/Components/Content/BoxContent.stories.d.ts +0 -4
  273. package/dist/Layout/Box/Components/Header/BoxHeader.d.ts +0 -22
  274. package/dist/Layout/Box/Components/Header/BoxHeader.spec.d.ts +0 -1
  275. package/dist/Layout/Box/Components/Header/BoxHeader.stories.d.ts +0 -7
  276. package/dist/Layout/Box/Components/Separator/BoxSeparator.d.ts +0 -2
  277. package/dist/Layout/Box/Components/Separator/BoxSeparator.spec.d.ts +0 -1
  278. package/dist/Layout/Box/Components/Separator/BoxSeparator.stories.d.ts +0 -4
  279. package/dist/Layout/Box/Components/utils.d.ts +0 -32
  280. package/dist/Layout/Box/index.d.ts +0 -1
  281. package/dist/Layout/Container/Container.d.ts +0 -16
  282. package/dist/Layout/Container/Container.spec.d.ts +0 -1
  283. package/dist/Layout/Container/Container.stories.d.ts +0 -5
  284. package/dist/Layout/Container/index.d.ts +0 -1
  285. package/dist/Layout/ListActions/ListActions.d.ts +0 -42
  286. package/dist/Layout/ListActions/ListActions.spec.d.ts +0 -1
  287. package/dist/Layout/ListActions/ListActions.stories.d.ts +0 -4
  288. package/dist/Layout/ListActions/index.d.ts +0 -1
  289. package/dist/Layout/Sidebar/Item.d.ts +0 -34
  290. package/dist/Layout/Sidebar/ItemSub.d.ts +0 -16
  291. package/dist/Layout/Sidebar/Sidebar.d.ts +0 -17
  292. package/dist/Layout/Sidebar/Sidebar.stories.d.ts +0 -4
  293. package/dist/Layout/Sidebar/index.d.ts +0 -3
  294. package/dist/Layout/Topbar/Topbar.d.ts +0 -21
  295. package/dist/Layout/Topbar/Topbar.stories.d.ts +0 -4
  296. package/dist/Layout/Topbar/index.d.ts +0 -1
  297. package/dist/Layout/constants.d.ts +0 -4
  298. package/dist/Layout/index.d.ts +0 -6
  299. package/dist/Navigation/Breadcrumb/Breadcrumb.spec.d.ts +0 -1
  300. package/dist/Navigation/Breadcrumb/Breadcrumb.stories.d.ts +0 -11
  301. package/dist/Navigation/Breadcrumb/index.d.ts +0 -45
  302. package/dist/Navigation/Pagination/Pagination.spec.d.ts +0 -1
  303. package/dist/Navigation/Pagination/Pagination.stories.d.ts +0 -6
  304. package/dist/Navigation/Pagination/PaginationInfo.d.ts +0 -24
  305. package/dist/Navigation/Pagination/PaginationNav.d.ts +0 -16
  306. package/dist/Navigation/Pagination/index.d.ts +0 -10
  307. package/dist/Navigation/Stepper/Stepper.spec.d.ts +0 -1
  308. package/dist/Navigation/Stepper/Stepper.stories.d.ts +0 -8
  309. package/dist/Navigation/Stepper/index.d.ts +0 -29
  310. package/dist/Navigation/index.d.ts +0 -2
  311. package/dist/admin-components.cjs.development.js +0 -49776
  312. package/dist/admin-components.cjs.development.js.map +0 -1
  313. package/dist/admin-components.cjs.production.min.js +0 -2
  314. package/dist/admin-components.cjs.production.min.js.map +0 -1
  315. package/dist/admin-components.esm.js +0 -49714
  316. package/dist/admin-components.esm.js.map +0 -1
  317. package/dist/utils/index.d.ts +0 -4
  318. package/dist/utils/testConstants.d.ts +0 -3
  319. package/src/Components/Button/Button.spec.tsx +0 -75
  320. package/src/Components/Button/Button.stories.tsx +0 -63
  321. package/src/Components/Button/Button.tsx +0 -194
  322. package/src/Components/Button/index.tsx +0 -1
  323. package/src/Components/HelpLink/HelpLink.spec.tsx +0 -33
  324. package/src/Components/HelpLink/HelpLink.stories.tsx +0 -39
  325. package/src/Components/HelpLink/index.tsx +0 -80
  326. package/src/Components/LoadingPlaceholder/LoadingPlaceholder.stories.tsx +0 -14
  327. package/src/Components/LoadingPlaceholder/LoadingPlaceholder.tsx +0 -17
  328. package/src/Components/LoadingPlaceholder/index.tsx +0 -1
  329. package/src/Components/Modal/Modal.spec.tsx +0 -15
  330. package/src/Components/Modal/Modal.stories.tsx +0 -129
  331. package/src/Components/Modal/Modal.tsx +0 -141
  332. package/src/Components/Modal/index.tsx +0 -1
  333. package/src/Components/SidebarFixed/SidebarFixed.spec.tsx +0 -36
  334. package/src/Components/SidebarFixed/SidebarFixed.stories.tsx +0 -39
  335. package/src/Components/SidebarFixed/SidebarFixed.tsx +0 -119
  336. package/src/Components/SidebarFixed/index.tsx +0 -1
  337. package/src/Components/Table/Table.stories.tsx +0 -188
  338. package/src/Components/Table/Table.tsx +0 -346
  339. package/src/Components/Table/index.tsx +0 -1
  340. package/src/Components/TableList/TableList.spec.tsx +0 -86
  341. package/src/Components/TableList/TableList.stories.tsx +0 -168
  342. package/src/Components/TableList/TableList.tsx +0 -169
  343. package/src/Components/TableList/TableListItem.interface.ts +0 -69
  344. package/src/Components/TableList/TableListItem.spec.tsx +0 -75
  345. package/src/Components/TableList/TableListItem.stories.tsx +0 -44
  346. package/src/Components/TableList/TableListItem.tsx +0 -79
  347. package/src/Components/TableList/TableListItemLoading.spec.tsx +0 -19
  348. package/src/Components/TableList/TableListItemLoading.stories.tsx +0 -22
  349. package/src/Components/TableList/TableListItemLoading.tsx +0 -40
  350. package/src/Components/TableList/TableListItemWrapper.spec.tsx +0 -33
  351. package/src/Components/TableList/TableListItemWrapper.stories.tsx +0 -38
  352. package/src/Components/TableList/TableListItemWrapper.tsx +0 -40
  353. package/src/Components/TableList/index.tsx +0 -4
  354. package/src/Components/Tabs/Tabs.spec.tsx +0 -38
  355. package/src/Components/Tabs/Tabs.stories.tsx +0 -62
  356. package/src/Components/Tabs/Tabs.tsx +0 -66
  357. package/src/Components/Tabs/TabsItem.interface.ts +0 -19
  358. package/src/Components/Tabs/TabsItem.tsx +0 -50
  359. package/src/Components/Tabs/index.tsx +0 -1
  360. package/src/Components/Timeline/Timeline.spec.tsx +0 -66
  361. package/src/Components/Timeline/Timeline.stories.tsx +0 -58
  362. package/src/Components/Timeline/Timeline.tsx +0 -75
  363. package/src/Components/Timeline/TimelineItem.interface.ts +0 -32
  364. package/src/Components/Timeline/TimelineItem.tsx +0 -65
  365. package/src/Components/Timeline/index.tsx +0 -1
  366. package/src/Components/index.ts +0 -8
  367. package/src/Forms/Checkbox/Checkbox.spec.tsx +0 -26
  368. package/src/Forms/Checkbox/Checkbox.stories.tsx +0 -65
  369. package/src/Forms/Checkbox/Checkbox.tsx +0 -166
  370. package/src/Forms/Checkbox/index.tsx +0 -1
  371. package/src/Forms/Dropdown/Dropdown.spec.tsx +0 -38
  372. package/src/Forms/Dropdown/Dropdown.stories.tsx +0 -152
  373. package/src/Forms/Dropdown/Dropdown.tsx +0 -433
  374. package/src/Forms/Dropdown/index.ts +0 -1
  375. package/src/Forms/FloatingLabelInput/FloatingLabelInput.spec.tsx +0 -26
  376. package/src/Forms/FloatingLabelInput/FloatingLabelInput.stories.tsx +0 -73
  377. package/src/Forms/FloatingLabelInput/FloatingLabelInput.tsx +0 -93
  378. package/src/Forms/FloatingLabelInput/index.ts +0 -1
  379. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.spec.tsx +0 -16
  380. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.stories.tsx +0 -72
  381. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.tsx +0 -251
  382. package/src/Forms/FloatingLabelInputCurrency/index.ts +0 -1
  383. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.spec.tsx +0 -66
  384. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.stories.tsx +0 -148
  385. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.tsx +0 -56
  386. package/src/Forms/FloatingLabelInputMask/index.ts +0 -1
  387. package/src/Forms/Input/Input.spec.tsx +0 -80
  388. package/src/Forms/Input/Input.stories.tsx +0 -170
  389. package/src/Forms/Input/Input.tsx +0 -158
  390. package/src/Forms/Input/index.ts +0 -1
  391. package/src/Forms/InputCurrency/InputCurrency.spec.tsx +0 -32
  392. package/src/Forms/InputCurrency/InputCurrency.stories.tsx +0 -45
  393. package/src/Forms/InputCurrency/InputCurrency.tsx +0 -224
  394. package/src/Forms/InputCurrency/index.ts +0 -1
  395. package/src/Forms/InputCurrency/utils.ts +0 -36
  396. package/src/Forms/InputHelpText/InputHelpText.spec.tsx +0 -22
  397. package/src/Forms/InputHelpText/InputHelpText.stories.tsx +0 -16
  398. package/src/Forms/InputHelpText/InputHelpText.tsx +0 -31
  399. package/src/Forms/InputHelpText/index.ts +0 -1
  400. package/src/Forms/InputLabel/InputLabel.spec.tsx +0 -30
  401. package/src/Forms/InputLabel/InputLabel.stories.tsx +0 -24
  402. package/src/Forms/InputLabel/InputLabel.tsx +0 -52
  403. package/src/Forms/InputLabel/index.ts +0 -1
  404. package/src/Forms/InputMask/InputMask.spec.tsx +0 -97
  405. package/src/Forms/InputMask/InputMask.stories.tsx +0 -126
  406. package/src/Forms/InputMask/InputMask.tsx +0 -51
  407. package/src/Forms/InputMask/index.ts +0 -1
  408. package/src/Forms/InputMask/maskDate.ts +0 -81
  409. package/src/Forms/InputMask/utils.ts +0 -154
  410. package/src/Forms/RadioButton/RadioButton.spec.tsx +0 -27
  411. package/src/Forms/RadioButton/RadioButton.stories.tsx +0 -40
  412. package/src/Forms/RadioButton/RadioButton.tsx +0 -80
  413. package/src/Forms/RadioButton/index.tsx +0 -1
  414. package/src/Forms/Select/Select.spec.tsx +0 -41
  415. package/src/Forms/Select/Select.stories.tsx +0 -58
  416. package/src/Forms/Select/Select.tsx +0 -148
  417. package/src/Forms/Select/index.ts +0 -1
  418. package/src/Forms/Toggle/Toggle.spec.tsx +0 -29
  419. package/src/Forms/Toggle/Toggle.stories.tsx +0 -43
  420. package/src/Forms/Toggle/Toggle.tsx +0 -85
  421. package/src/Forms/Toggle/index.tsx +0 -1
  422. package/src/Forms/ToggleButton/ToggleButton.spec.tsx +0 -29
  423. package/src/Forms/ToggleButton/ToggleButton.stories.tsx +0 -51
  424. package/src/Forms/ToggleButton/ToggleButton.tsx +0 -95
  425. package/src/Forms/ToggleButton/index.tsx +0 -1
  426. package/src/Forms/commonStyles.ts +0 -29
  427. package/src/Forms/index.ts +0 -14
  428. package/src/Icons/Icon/Icon.spec.tsx +0 -27
  429. package/src/Icons/Icon/Icon.stories.tsx +0 -12
  430. package/src/Icons/Icon/Icon.tsx +0 -56
  431. package/src/Icons/Icon/index.ts +0 -1
  432. package/src/Icons/IconCircular/IconCircular.spec.tsx +0 -24
  433. package/src/Icons/IconCircular/IconCircular.stories.tsx +0 -24
  434. package/src/Icons/IconCircular/IconCircular.tsx +0 -67
  435. package/src/Icons/IconCircular/index.ts +0 -1
  436. package/src/Icons/IconList.tsx +0 -27
  437. package/src/Icons/icons-path/Adjust.tsx +0 -16
  438. package/src/Icons/icons-path/AngleDiagonal.tsx +0 -20
  439. package/src/Icons/icons-path/AngleDown.tsx +0 -9
  440. package/src/Icons/icons-path/AngleHeight.tsx +0 -17
  441. package/src/Icons/icons-path/AngleLeft.tsx +0 -9
  442. package/src/Icons/icons-path/AngleRight.tsx +0 -9
  443. package/src/Icons/icons-path/AngleWidth.tsx +0 -17
  444. package/src/Icons/icons-path/App.tsx +0 -9
  445. package/src/Icons/icons-path/Arrow.tsx +0 -11
  446. package/src/Icons/icons-path/ArrowLeft.tsx +0 -9
  447. package/src/Icons/icons-path/ArrowRight.tsx +0 -9
  448. package/src/Icons/icons-path/Back.tsx +0 -5
  449. package/src/Icons/icons-path/Ban.tsx +0 -9
  450. package/src/Icons/icons-path/BarcodeRead.tsx +0 -9
  451. package/src/Icons/icons-path/Bell.tsx +0 -9
  452. package/src/Icons/icons-path/Blog.tsx +0 -9
  453. package/src/Icons/icons-path/Bullhorn.tsx +0 -9
  454. package/src/Icons/icons-path/Calculator.tsx +0 -9
  455. package/src/Icons/icons-path/CalendarAlt.tsx +0 -9
  456. package/src/Icons/icons-path/Camera.tsx +0 -9
  457. package/src/Icons/icons-path/Check.tsx +0 -9
  458. package/src/Icons/icons-path/CheckCircle.tsx +0 -9
  459. package/src/Icons/icons-path/Clock.tsx +0 -9
  460. package/src/Icons/icons-path/Clockwise.tsx +0 -22
  461. package/src/Icons/icons-path/Close.tsx +0 -9
  462. package/src/Icons/icons-path/Cog.tsx +0 -9
  463. package/src/Icons/icons-path/Copy.tsx +0 -9
  464. package/src/Icons/icons-path/CreditCard.tsx +0 -9
  465. package/src/Icons/icons-path/DashedCircle.tsx +0 -32
  466. package/src/Icons/icons-path/DefaultCursor.tsx +0 -14
  467. package/src/Icons/icons-path/Desktop.tsx +0 -9
  468. package/src/Icons/icons-path/Discount.tsx +0 -9
  469. package/src/Icons/icons-path/DotsThree.tsx +0 -9
  470. package/src/Icons/icons-path/Download.tsx +0 -9
  471. package/src/Icons/icons-path/Edit.tsx +0 -9
  472. package/src/Icons/icons-path/Envelope.tsx +0 -9
  473. package/src/Icons/icons-path/Exchange.tsx +0 -9
  474. package/src/Icons/icons-path/ExchangeY.tsx +0 -9
  475. package/src/Icons/icons-path/Exclamation.tsx +0 -17
  476. package/src/Icons/icons-path/ExclamationCircle.tsx +0 -9
  477. package/src/Icons/icons-path/ExclamationTriangle.tsx +0 -9
  478. package/src/Icons/icons-path/ExternalLink.tsx +0 -9
  479. package/src/Icons/icons-path/Eye.tsx +0 -9
  480. package/src/Icons/icons-path/EyeSlash.tsx +0 -9
  481. package/src/Icons/icons-path/Filter.tsx +0 -9
  482. package/src/Icons/icons-path/HalfBack.tsx +0 -12
  483. package/src/Icons/icons-path/Hashtag.tsx +0 -13
  484. package/src/Icons/icons-path/Home.tsx +0 -9
  485. package/src/Icons/icons-path/IconSolidEnviali.tsx +0 -9
  486. package/src/Icons/icons-path/IconSolidLI.tsx +0 -12
  487. package/src/Icons/icons-path/IdentificationBadge.tsx +0 -22
  488. package/src/Icons/icons-path/Image.tsx +0 -9
  489. package/src/Icons/icons-path/InfoCircle.tsx +0 -9
  490. package/src/Icons/icons-path/Lightbulb.tsx +0 -9
  491. package/src/Icons/icons-path/Link.tsx +0 -9
  492. package/src/Icons/icons-path/ListItems.tsx +0 -14
  493. package/src/Icons/icons-path/Loading.tsx +0 -19
  494. package/src/Icons/icons-path/Minus.tsx +0 -5
  495. package/src/Icons/icons-path/MinusCircle.tsx +0 -26
  496. package/src/Icons/icons-path/MinusCircleSolid.tsx +0 -30
  497. package/src/Icons/icons-path/Mobile.tsx +0 -9
  498. package/src/Icons/icons-path/MoneyBill.tsx +0 -9
  499. package/src/Icons/icons-path/Move.tsx +0 -9
  500. package/src/Icons/icons-path/Nav.tsx +0 -11
  501. package/src/Icons/icons-path/Order.tsx +0 -9
  502. package/src/Icons/icons-path/Pagali.tsx +0 -16
  503. package/src/Icons/icons-path/PaperList.tsx +0 -9
  504. package/src/Icons/icons-path/PieChart.tsx +0 -9
  505. package/src/Icons/icons-path/Pix.tsx +0 -8
  506. package/src/Icons/icons-path/Plus.tsx +0 -9
  507. package/src/Icons/icons-path/PlusCircle.tsx +0 -9
  508. package/src/Icons/icons-path/Print.tsx +0 -9
  509. package/src/Icons/icons-path/Product.tsx +0 -9
  510. package/src/Icons/icons-path/QuestionCircle.tsx +0 -9
  511. package/src/Icons/icons-path/Reload.tsx +0 -9
  512. package/src/Icons/icons-path/Rocket.tsx +0 -22
  513. package/src/Icons/icons-path/Search.tsx +0 -11
  514. package/src/Icons/icons-path/ShoppingCart.tsx +0 -11
  515. package/src/Icons/icons-path/SortDown.tsx +0 -9
  516. package/src/Icons/icons-path/Store.tsx +0 -9
  517. package/src/Icons/icons-path/Sync.tsx +0 -9
  518. package/src/Icons/icons-path/ThinAngleRight.tsx +0 -12
  519. package/src/Icons/icons-path/TimesCircle.tsx +0 -9
  520. package/src/Icons/icons-path/Trash.tsx +0 -9
  521. package/src/Icons/icons-path/Trophy.tsx +0 -22
  522. package/src/Icons/icons-path/Truck.tsx +0 -9
  523. package/src/Icons/icons-path/Tv.tsx +0 -9
  524. package/src/Icons/icons-path/Upload.tsx +0 -11
  525. package/src/Icons/icons-path/UsdCircle.tsx +0 -9
  526. package/src/Icons/icons-path/User.tsx +0 -9
  527. package/src/Icons/icons-path/WhatsApp.tsx +0 -9
  528. package/src/Icons/icons-path/index.ts +0 -186
  529. package/src/Icons/index.ts +0 -2
  530. package/src/Indicators/Alert/Alert.spec.tsx +0 -53
  531. package/src/Indicators/Alert/Alert.stories.tsx +0 -39
  532. package/src/Indicators/Alert/Alert.tsx +0 -141
  533. package/src/Indicators/Alert/index.tsx +0 -1
  534. package/src/Indicators/Badge/Badge.spec.tsx +0 -74
  535. package/src/Indicators/Badge/Badge.stories.tsx +0 -40
  536. package/src/Indicators/Badge/Badge.tsx +0 -75
  537. package/src/Indicators/Badge/index.tsx +0 -1
  538. package/src/Indicators/InformationBox/InformationBox.spec.tsx +0 -36
  539. package/src/Indicators/InformationBox/InformationBox.tsx +0 -98
  540. package/src/Indicators/InformationBox/InformationBoxt.stories.tsx +0 -29
  541. package/src/Indicators/InformationBox/index.tsx +0 -1
  542. package/src/Indicators/Status/Status.spec.tsx +0 -47
  543. package/src/Indicators/Status/Status.stories.tsx +0 -16
  544. package/src/Indicators/Status/Status.tsx +0 -65
  545. package/src/Indicators/Status/index.tsx +0 -1
  546. package/src/Indicators/Tag/Tag.spec.tsx +0 -39
  547. package/src/Indicators/Tag/Tag.stories.tsx +0 -33
  548. package/src/Indicators/Tag/Tag.tsx +0 -55
  549. package/src/Indicators/Tag/index.tsx +0 -1
  550. package/src/Indicators/Toast/Toast.spec.tsx +0 -18
  551. package/src/Indicators/Toast/Toast.stories.tsx +0 -32
  552. package/src/Indicators/Toast/Toast.tsx +0 -76
  553. package/src/Indicators/Toast/index.tsx +0 -1
  554. package/src/Indicators/Tooltip/Tooltip.spec.tsx +0 -18
  555. package/src/Indicators/Tooltip/Tooltip.stories.tsx +0 -33
  556. package/src/Indicators/Tooltip/Tooltip.tsx +0 -80
  557. package/src/Indicators/Tooltip/index.tsx +0 -1
  558. package/src/Indicators/Tooltip/style.scss +0 -72
  559. package/src/Indicators/index.ts +0 -7
  560. package/src/Layout/ActionBar/ActionBar.spec.tsx +0 -20
  561. package/src/Layout/ActionBar/ActionBar.stories.tsx +0 -42
  562. package/src/Layout/ActionBar/ActionBar.tsx +0 -89
  563. package/src/Layout/ActionBar/index.tsx +0 -1
  564. package/src/Layout/Box/Box.spec.tsx +0 -73
  565. package/src/Layout/Box/Box.stories.tsx +0 -165
  566. package/src/Layout/Box/Box.tsx +0 -81
  567. package/src/Layout/Box/Components/Content/BoxContent.spec.tsx +0 -20
  568. package/src/Layout/Box/Components/Content/BoxContent.stories.tsx +0 -23
  569. package/src/Layout/Box/Components/Content/BoxContent.tsx +0 -26
  570. package/src/Layout/Box/Components/Header/BoxHeader.spec.tsx +0 -22
  571. package/src/Layout/Box/Components/Header/BoxHeader.stories.tsx +0 -32
  572. package/src/Layout/Box/Components/Header/BoxHeader.tsx +0 -93
  573. package/src/Layout/Box/Components/Separator/BoxSeparator.spec.tsx +0 -20
  574. package/src/Layout/Box/Components/Separator/BoxSeparator.stories.tsx +0 -30
  575. package/src/Layout/Box/Components/Separator/BoxSeparator.tsx +0 -19
  576. package/src/Layout/Box/Components/utils.ts +0 -50
  577. package/src/Layout/Box/index.tsx +0 -1
  578. package/src/Layout/Container/Container.spec.tsx +0 -22
  579. package/src/Layout/Container/Container.stories.tsx +0 -51
  580. package/src/Layout/Container/Container.tsx +0 -42
  581. package/src/Layout/Container/index.tsx +0 -1
  582. package/src/Layout/ListActions/ListActions.spec.tsx +0 -23
  583. package/src/Layout/ListActions/ListActions.stories.tsx +0 -71
  584. package/src/Layout/ListActions/ListActions.tsx +0 -149
  585. package/src/Layout/ListActions/index.tsx +0 -1
  586. package/src/Layout/Sidebar/Item.tsx +0 -106
  587. package/src/Layout/Sidebar/ItemSub.tsx +0 -42
  588. package/src/Layout/Sidebar/Sidebar.stories.tsx +0 -25
  589. package/src/Layout/Sidebar/Sidebar.tsx +0 -51
  590. package/src/Layout/Sidebar/index.tsx +0 -3
  591. package/src/Layout/Topbar/Topbar.stories.tsx +0 -18
  592. package/src/Layout/Topbar/Topbar.tsx +0 -43
  593. package/src/Layout/Topbar/index.tsx +0 -1
  594. package/src/Layout/constants.ts +0 -4
  595. package/src/Layout/index.ts +0 -6
  596. package/src/Navigation/Breadcrumb/Breadcrumb.spec.tsx +0 -75
  597. package/src/Navigation/Breadcrumb/Breadcrumb.stories.tsx +0 -79
  598. package/src/Navigation/Breadcrumb/index.tsx +0 -153
  599. package/src/Navigation/Pagination/Pagination.spec.tsx +0 -45
  600. package/src/Navigation/Pagination/Pagination.stories.tsx +0 -39
  601. package/src/Navigation/Pagination/PaginationInfo.tsx +0 -70
  602. package/src/Navigation/Pagination/PaginationNav.tsx +0 -122
  603. package/src/Navigation/Pagination/index.tsx +0 -44
  604. package/src/Navigation/Stepper/Stepper.spec.tsx +0 -68
  605. package/src/Navigation/Stepper/Stepper.stories.tsx +0 -68
  606. package/src/Navigation/Stepper/index.tsx +0 -97
  607. package/src/Navigation/index.ts +0 -2
  608. package/src/index.ts +0 -6
  609. package/src/tailwind.scss +0 -9
  610. package/src/utils/index.ts +0 -19
  611. package/src/utils/testConstants.ts +0 -3
@@ -1,141 +0,0 @@
1
- import React, { useState, useEffect } from 'react'
2
- import { Icon, IconProps } from '../../Icons'
3
-
4
- type alertTypesOptions = 'success' | 'warning' | 'danger' | 'info' | 'primary'
5
-
6
- const alertTypes: Record<
7
- alertTypesOptions,
8
- {
9
- class: string
10
- icon: IconProps['icon']
11
- iconClass: string
12
- }
13
- > = {
14
- success: {
15
- class: 'bg-success-light border-success',
16
- icon: 'checkCircle',
17
- iconClass: 'text-success',
18
- },
19
- warning: {
20
- class: 'bg-warning-light border-warning',
21
- icon: 'exclamationTriangle',
22
- iconClass: 'text-warning',
23
- },
24
- danger: {
25
- class: 'bg-danger-light border-danger',
26
- icon: 'ban',
27
- iconClass: 'text-danger',
28
- },
29
- info: {
30
- class: 'bg-base-1 border-inverted-2',
31
- icon: 'infoCircle',
32
- iconClass: 'text-inverted-2',
33
- },
34
- primary: {
35
- class: 'bg-primary-light border-primary',
36
- icon: 'infoCircle',
37
- iconClass: 'text-primary',
38
- },
39
- }
40
-
41
- const AlertComponent = ({
42
- type = 'info',
43
- isOpen = true,
44
- title,
45
- subtitle,
46
- actions,
47
- showClose = false,
48
- onClose,
49
- hideIcon = false,
50
- customIcon,
51
- }: AlertProps) => {
52
- const [alertIsOpen, setAlertIsOpen] = useState(isOpen)
53
- useEffect(() => {
54
- setAlertIsOpen(isOpen)
55
- }, [isOpen])
56
-
57
- const handleOnClose = () => {
58
- setAlertIsOpen(false)
59
- onClose?.()
60
- }
61
-
62
- if (!alertIsOpen) return null
63
- return (
64
- <div
65
- className={`alert border border-l-4 py-4 px-5 rounded w-full relative flex items-start sm:items-center ${alertTypes[type].class}`}
66
- >
67
- {!hideIcon && (
68
- <div
69
- className={`alert-icon hidden sm:block flex-shrink-0 mr-3 ${alertTypes[type].iconClass}`}
70
- >
71
- <Icon
72
- icon={customIcon ? customIcon : alertTypes[type].icon}
73
- size={6}
74
- />
75
- </div>
76
- )}
77
- <div className="flex-grow flex flex-col sm:flex-row items-start sm:items-center justify-between min-w-0">
78
- <div className="flex flex-col justify-center min-w-0 break-words text-f6 tracking-4 leading-5 text-on-base">
79
- <span className="alert-title font-semibold">{title}</span>
80
- {subtitle && <span className="alert-subtitle mt-1">{subtitle}</span>}
81
- </div>
82
- {actions && (
83
- <div className="alert-actions flex flex-shrink-0 items-center flex-row sm:flex-row-reverse sm:space-x-reverse space-x-3 mt-3 sm:mt-0 sm:ml-5">
84
- {actions}
85
- </div>
86
- )}
87
- </div>
88
- {(showClose || onClose) && (
89
- <div className={`alert-close flex-shrink-0 flex ml-5`}>
90
- <button
91
- className="p-2 -m-2 text-inverted-2 hover:text-inverted-1"
92
- onClick={handleOnClose}
93
- >
94
- <Icon icon="close" size={4} block className="mt-px sm:mt-0" />
95
- </button>
96
- </div>
97
- )}
98
- </div>
99
- )
100
- }
101
-
102
- export const Alert = React.memo(AlertComponent)
103
-
104
- export interface AlertProps {
105
- /** Alert color
106
- * @default info
107
- * */
108
- type?: keyof typeof alertTypes
109
- /** Alert is visible
110
- * @default true
111
- */
112
- isOpen?: boolean
113
- /**
114
- * Alert main text
115
- */
116
- title: string | React.ReactNode
117
- /**
118
- * Alert text below title
119
- */
120
- subtitle?: string | React.ReactNode
121
- /**
122
- * Function to close alert (also activate `showClose`)
123
- */
124
- onClose?: () => void
125
- /** Show button close
126
- * @default false
127
- */
128
- showClose?: boolean
129
- /** Hide alert icon
130
- * @default false
131
- */
132
- hideIcon?: boolean
133
- /**
134
- * Custom icon
135
- */
136
- customIcon?: IconProps['icon']
137
- /**
138
- * Action for the alert, like button and hiperlinks
139
- * */
140
- actions?: React.ReactNode
141
- }
@@ -1 +0,0 @@
1
- export * from './Alert'
@@ -1,74 +0,0 @@
1
- import * as React from "react"
2
- import { composeStories } from "@storybook/testing-react"
3
- import { mount } from "@cypress/react"
4
- import * as stories from "./Badge.stories"
5
- import { Badge } from "./Badge"
6
-
7
- const { Default, Small, Expanded } = composeStories(stories)
8
- const badgeClass = '.badge'
9
-
10
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
11
- describe(specTitle('Badge tests'), () => {
12
-
13
- it('Default', () => {
14
- const text = 'Example text'
15
- mount(<Default text={text} />)
16
- cy.get(badgeClass).contains(text)
17
- })
18
-
19
- it('Small', () => {
20
- mount(<Small />)
21
- cy.get(badgeClass).should('have.class', 'px-1.5')
22
- })
23
-
24
- it('Size XSmall', () => {
25
- mount(<Badge size="xsmall" text="Example text" />)
26
- cy.get(badgeClass).should('have.class', 'text-f8')
27
- })
28
-
29
- it('Rounded Small', () => {
30
- mount(<Badge rounded="small" text="Example text" />)
31
- cy.get(badgeClass).should('have.class', 'rounded')
32
- })
33
-
34
- it('Rounded None', () => {
35
- mount(<Badge rounded="none" text="Example text" />)
36
- cy.get(badgeClass).should('have.class', 'rounded-none')
37
- })
38
-
39
- it('Rounded Full', () => {
40
- mount(<Badge rounded="full" text="Example text" />)
41
- cy.get(badgeClass).should('have.class', 'rounded-full')
42
- })
43
-
44
- it('Expanded', () => {
45
- mount(<Expanded />)
46
- cy.get(badgeClass).should('have.class', 'w-full')
47
- })
48
-
49
- it('Variants', () => {
50
- mount(<Default type="neutral" />)
51
- cy.get(badgeClass).should('have.class', 'bg-inverted-2 text-base-1')
52
-
53
- mount(<Default type="neutralLight" />)
54
- cy.get(badgeClass).should('have.class', 'bg-inverted-3 text-tertiary')
55
-
56
- mount(<Default type="primary" />)
57
- cy.get(badgeClass).should('have.class', 'bg-primary-dark text-base-1')
58
-
59
- mount(<Default type="primaryLight" />)
60
- cy.get(badgeClass).should('have.class', 'bg-primary-light text-primary-bold')
61
-
62
- mount(<Default type="success" />)
63
- cy.get(badgeClass).should('have.class', 'bg-success-dark text-base-1')
64
-
65
- mount(<Default type="warning" />)
66
- cy.get(badgeClass).should('have.class', 'bg-warning-dark text-base-1')
67
-
68
- mount(<Default type="danger" />)
69
- cy.get(badgeClass).should('have.class', 'bg-danger-dark text-base-1')
70
-
71
- mount(<Default type="focus" />)
72
- cy.get(badgeClass).should('have.class', 'bg-focus text-base-1')
73
- })
74
- })
@@ -1,40 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
- import { withDesign } from 'storybook-addon-designs'
4
-
5
- import { Badge, BadgeProps } from './Badge'
6
-
7
- export default {
8
- title: 'Indicators/Badge',
9
- component: Badge,
10
- decorators: [withDesign],
11
- parameters: {
12
- design: {
13
- type: 'figma',
14
- url: 'https://www.figma.com/file/Z2WDD4SH8zwaJC2K5wbtMO/Sistema-Integrado?node-id=98%3A7360',
15
- },
16
- },
17
- args: {
18
- text: 'Texto',
19
- type: 'neutral',
20
- size: 'default',
21
- },
22
- } as Meta
23
-
24
- const Template: Story<BadgeProps> = args => (
25
- <div className="w-48 flex justify-center items-center">
26
- <Badge {...args} />
27
- </div>
28
- )
29
-
30
- export const Default = Template.bind({})
31
-
32
- export const Expanded = Template.bind({})
33
- Expanded.args = {
34
- expanded: true,
35
- }
36
-
37
- export const Small = Template.bind({})
38
- Small.args = {
39
- size: 'small',
40
- }
@@ -1,75 +0,0 @@
1
- import React from 'react'
2
-
3
- const badgeTypes = {
4
- neutral: 'bg-inverted-2 text-base-1',
5
- neutralLight: 'bg-inverted-3 text-tertiary',
6
- primary: 'bg-primary-dark text-base-1',
7
- primaryLight: 'bg-primary-light text-primary-bold',
8
- danger: 'bg-danger-dark text-base-1',
9
- success: 'bg-success-dark text-base-1',
10
- warning: 'bg-warning-dark text-base-1',
11
- focus: 'bg-focus text-base-1',
12
- }
13
-
14
- const badgeRounded = {
15
- full: 'rounded-full',
16
- small: 'rounded',
17
- none: 'rounded-none',
18
- }
19
-
20
- const badgeSizes = {
21
- default: 'text-xs',
22
- small: 'text-[0.70rem]',
23
- xsmall: 'text-f8',
24
- }
25
-
26
- const badgeClasses = {
27
- default: 'px-2 py-0.5',
28
- small: 'px-1.5',
29
- xsmall: 'px-0.5 py-px',
30
- }
31
-
32
- const BadgeComponent = ({
33
- type = 'neutral',
34
- text,
35
- size = 'default',
36
- expanded = false,
37
- rounded = 'full',
38
- }: BadgeProps) => {
39
- return (
40
- <div
41
- className={`badge items-center justify-center ${badgeRounded[rounded]} ${
42
- badgeClasses[size]
43
- } ${badgeTypes[type]} ${badgeSizes[size]} ${
44
- expanded ? 'flex w-full' : 'inline-flex'
45
- }`}
46
- >
47
- <span className="badgeText tracking-4 font-semibold">{text}</span>
48
- </div>
49
- )
50
- }
51
-
52
- export const Badge = React.memo(BadgeComponent)
53
-
54
- export interface BadgeProps {
55
- /** Badge color
56
- * @default neutral
57
- * */
58
- type?: keyof typeof badgeTypes
59
- /**
60
- * Badge text
61
- * */
62
- text?: string
63
- /** Size of the badge
64
- * @default default
65
- * */
66
- size?: keyof typeof badgeSizes
67
- /**
68
- * Enlarge width of the badge
69
- * */
70
- expanded?: boolean
71
- /**
72
- * Style of rounded corners
73
- * */
74
- rounded?: keyof typeof badgeRounded
75
- }
@@ -1 +0,0 @@
1
- export * from './Badge'
@@ -1,36 +0,0 @@
1
- import * as React from 'react'
2
- import { composeStories } from '@storybook/testing-react'
3
- import { mount } from '@cypress/react'
4
- import * as stories from './InformationBoxt.stories'
5
-
6
- const { Default } = composeStories(stories)
7
-
8
- const specTitle = require('cypress-sonarqube-reporter/specTitle')
9
- describe(specTitle('InformationBox tests'), () => {
10
- it('Default', () => {
11
- mount(<Default />)
12
- cy.get('.InformationBox-title').last().contains('Informação')
13
- })
14
-
15
- it('Variants', () => {
16
- mount(<Default type="success" />)
17
- cy.get('.InformationBox-title').should('have.class', 'text-success-dark')
18
- cy.get('.InformationBox-icon').should('have.class', 'icon-check')
19
- cy.get('.InformationBox').should('have.class', 'bg-success-light')
20
-
21
- mount(<Default type="warning" />)
22
- cy.get('.InformationBox-title').should('have.class', 'text-warning-bold')
23
- cy.get('.InformationBox-icon').should('have.class', 'icon-infoCircle')
24
- cy.get('.InformationBox').should('have.class', 'bg-warning-light')
25
-
26
- mount(<Default type="danger" />)
27
- cy.get('.InformationBox-title').should('have.class', 'text-danger-dark')
28
- cy.get('.InformationBox-icon').should('have.class', 'icon-exclamationTriangle')
29
- cy.get('.InformationBox').should('have.class', 'bg-danger-light')
30
-
31
- mount(<Default type="info" />)
32
- cy.get('.InformationBox-title').should('have.class', 'text-focus-dark')
33
- cy.get('.InformationBox-icon').should('have.class', 'icon-lightbulb')
34
- cy.get('.InformationBox').should('have.class', 'bg-focus-light')
35
- })
36
- })
@@ -1,98 +0,0 @@
1
- import React from 'react'
2
- import { Icon, IconProps } from '../../Icons'
3
-
4
- type InformationBoxTypesOptions = 'success' | 'warning' | 'danger' | 'info'
5
-
6
- const InformationBoxTypes: Record<
7
- InformationBoxTypesOptions,
8
- {
9
- title: string
10
- titleClass: string
11
- class: string
12
- icon: IconProps['icon']
13
- iconClass: string
14
- }
15
- > = {
16
- success: {
17
- title: 'Sucesso!',
18
- titleClass: 'text-success-dark',
19
- class: 'bg-success-light dark:bg-success border-success',
20
- icon: 'check',
21
- iconClass: 'text-success-dark',
22
- },
23
- warning: {
24
- title: 'Atenção!',
25
- titleClass: 'text-warning-bold',
26
- class: 'bg-warning-light border-warning',
27
- icon: 'infoCircle',
28
- iconClass: 'text-warning-dark',
29
- },
30
- danger: {
31
- title: 'Cuidado!',
32
- titleClass: 'text-danger-dark',
33
- class: 'bg-danger-light border-danger',
34
- icon: 'exclamationTriangle',
35
- iconClass: 'text-danger-dark',
36
- },
37
- info: {
38
- title: 'Informação',
39
- titleClass: 'text-focus-dark',
40
- class: 'bg-focus-light border-focus-dark',
41
- icon: 'lightbulb',
42
- iconClass: 'text-focus-dark',
43
- },
44
- }
45
-
46
- const InformationBoxComponent = ({
47
- type = 'info',
48
- subtitle,
49
- title,
50
- }: InformationBoxProps) => {
51
- return (
52
- <div
53
- className={`InformationBox pl-4 pr-6 pt-5 pb-6 rounded w-full relative flex items-start mb-3 ${InformationBoxTypes[type].class}`}
54
- >
55
- <div
56
- className={`w-10 h-10 flex justify-center items-center flex-shrink-0 rounded-full mr-3 bg-base-1`}
57
- >
58
- <Icon
59
- icon={InformationBoxTypes[type].icon}
60
- className={`InformationBox-icon ${InformationBoxTypes[type].iconClass}`}
61
- size={4}
62
- />
63
- </div>
64
-
65
- <div className="flex-grow flex flex-col sm:flex-row items-start justify-between min-w-0">
66
- <div className="flex flex-col justify-center min-w-0 break-words tracking-4 leading-6 text-on-base">
67
- <span
68
- className={`InformationBox-title text-f5 font-bold ${InformationBoxTypes[type].titleClass}`}
69
- >
70
- {title || InformationBoxTypes[type].title}
71
- </span>
72
- {subtitle && (
73
- <span className="InformationBox-subtitle text-f6 font-regular mt-1">
74
- {subtitle}
75
- </span>
76
- )}
77
- </div>
78
- </div>
79
- </div>
80
- )
81
- }
82
-
83
- export const InformationBox = React.memo(InformationBoxComponent)
84
-
85
- export interface InformationBoxProps {
86
- /** InformationBox color
87
- * @default info
88
- * */
89
- type?: keyof typeof InformationBoxTypes
90
- /** Title default is related with `type`
91
- * @default ''
92
- */
93
- title?: string | React.ReactNode
94
- /**
95
- * InformationBox text below title
96
- */
97
- subtitle?: string | React.ReactNode
98
- }
@@ -1,29 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
-
4
- import { InformationBox, InformationBoxProps } from './InformationBox'
5
-
6
- export default {
7
- title: 'Indicators/InformationBox',
8
- component: InformationBox,
9
- parameters: {
10
- layout: 'padded',
11
- design: {
12
- type: 'figma',
13
- url: 'https://www.figma.com/file/Z2WDD4SH8zwaJC2K5wbtMO/Sistema-Integrado?node-id=2406%3A20851',
14
- },
15
- },
16
- args: {
17
- title: '',
18
- subtitle:
19
- 'Como criar um cadastro de produto incrível? No mundo virtual, o consumidor não pode pegar, sentir ou experimentar o produto. Por isso, a imagem que você utiliza faz toda a diferença na hora da venda.',
20
- },
21
- } as Meta
22
-
23
- const Template: Story<InformationBoxProps> = (args) => (
24
- <div className="max-w-4xl mx-auto">
25
- <InformationBox {...args} />
26
- </div>
27
- )
28
-
29
- export const Default = Template.bind({})
@@ -1 +0,0 @@
1
- export * from './InformationBox'
@@ -1,47 +0,0 @@
1
- import * as React from "react"
2
- import { composeStories } from "@storybook/testing-react"
3
- import { mount } from "@cypress/react"
4
- import * as stories from "./Status.stories"
5
-
6
- const { Default } = composeStories(stories)
7
-
8
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
9
- describe(specTitle('Status tests'), () => {
10
-
11
- it('Default', () => {
12
- mount(<Default />)
13
- cy.get('.indicator-status *').last().contains('Aprovado')
14
- cy.get('.indicator-status .rounded-full')
15
- })
16
-
17
- it('Variants', () => {
18
- mount(<Default type="default" />)
19
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-inverted-2')
20
-
21
- mount(<Default type="success" />)
22
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-success')
23
-
24
- mount(<Default type="successDark" />)
25
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-success-dark')
26
-
27
- mount(<Default type="warning" />)
28
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-warning')
29
-
30
- mount(<Default type="danger" />)
31
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-danger')
32
-
33
- mount(<Default type="dangerLight" />)
34
- cy.get('.indicator-status').find('.rounded-full').should('have.class', 'bg-danger-light')
35
- })
36
-
37
- it('Inverted', () => {
38
- mount(<Default inverted={true} />)
39
- cy.get('.indicator-status *').first().contains('Aprovado')
40
- })
41
-
42
- it('Description', () => {
43
- mount(<Default description={<strong>Aprovado</strong>} />)
44
- cy.get('.indicator-status').find('strong').contains('Aprovado')
45
- })
46
-
47
- })
@@ -1,16 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
-
4
- import { Status, StatusProps } from './Status'
5
-
6
- export default {
7
- title: 'Indicators/Status',
8
- component: Status,
9
- args: {
10
- description: 'Aprovado',
11
- },
12
- } as Meta
13
-
14
- const Template: Story<StatusProps> = args => <Status {...args} />
15
-
16
- export const Default = Template.bind({})
@@ -1,65 +0,0 @@
1
- import React from 'react'
2
-
3
- const statusTypes = {
4
- default: 'bg-inverted-2',
5
- success: 'bg-success',
6
- successDark: 'bg-success-dark',
7
- warning: 'bg-warning',
8
- danger: 'bg-danger',
9
- dangerLight: 'bg-danger-light',
10
- }
11
-
12
- const DescriptionComponent = ({
13
- description,
14
- inverted,
15
- }: Pick<StatusProps, 'description' | 'inverted'>) =>
16
- (description && (
17
- <span
18
- className={`text-sm whitespace-normal break-words ${
19
- inverted ? 'mr-2' : 'ml-2'
20
- }`}
21
- >
22
- {description}
23
- </span>
24
- )) ||
25
- null
26
-
27
- const StatusComponent = ({
28
- type = 'default',
29
- description,
30
- inverted = false,
31
- }: StatusProps) => {
32
- return (
33
- <div className="indicator-status inline-block whitespace-nowrap min-w-0">
34
- {inverted && (
35
- <DescriptionComponent description={description} inverted={inverted} />
36
- )}
37
- <span
38
- className={`inline-block rounded-full ${statusTypes[type]}`}
39
- style={{
40
- padding: '0.313rem', // 5px
41
- }}
42
- />
43
- {!inverted && (
44
- <DescriptionComponent description={description} inverted={inverted} />
45
- )}
46
- </div>
47
- )
48
- }
49
-
50
- export const Status = React.memo(StatusComponent)
51
-
52
- export interface StatusProps {
53
- /** Status color
54
- * @default default
55
- * */
56
- type: keyof typeof statusTypes
57
- /**
58
- * Status additional text
59
- * */
60
- description?: React.ReactNode | string
61
- /** Invert icon and text position
62
- * @default false
63
- * */
64
- inverted?: boolean
65
- }
@@ -1 +0,0 @@
1
- export * from './Status'
@@ -1,39 +0,0 @@
1
- import * as React from "react"
2
- import { composeStories } from "@storybook/testing-react"
3
- import { mount } from "@cypress/react"
4
- import * as stories from "./Tag.stories"
5
-
6
- const { Default, WithAction } = composeStories(stories)
7
- const tagClass = '.tag'
8
-
9
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
10
- describe(specTitle('Tag tests'), () => {
11
-
12
- it('Default', () => {
13
- const text = 'Example text'
14
- mount(<Default content={text} />)
15
- cy.get(tagClass).contains(text)
16
- })
17
-
18
- it('WithAction', () => {
19
- mount(<WithAction />)
20
- cy.get(tagClass).find('svg.icon-timesCircle').should('exist')
21
- })
22
-
23
- it('Variants', () => {
24
- mount(<Default type="neutral" />)
25
- cy.get(tagClass).should('have.class', 'bg-base-1')
26
-
27
- mount(<Default type="primary" />)
28
- cy.get(tagClass).should('have.class', 'bg-primary-light')
29
-
30
- mount(<Default type="success" />)
31
- cy.get(tagClass).should('have.class', 'bg-success-light')
32
-
33
- mount(<Default type="warning" />)
34
- cy.get(tagClass).should('have.class', 'bg-warning-light')
35
-
36
- mount(<Default type="danger" />)
37
- cy.get(tagClass).should('have.class', 'bg-danger-light')
38
- })
39
- })