@loja-integrada/admin-components 0.19.4 → 1.0.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 (612) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -72
  3. package/dist/chunk-3IB6AR7I.js +8 -0
  4. package/dist/chunk-AYBQ5B4L.js +1 -0
  5. package/dist/chunk-C3ECJWEX.js +7 -0
  6. package/dist/chunk-LTWCICTK.js +1 -0
  7. package/dist/chunk-QCTWLTAA.js +1 -0
  8. package/dist/chunk-W64HPITJ.js +8 -0
  9. package/dist/components/Button/Button.d.ts +52 -0
  10. package/dist/components/Button/Button.js +3 -0
  11. package/dist/components/Button/index.d.ts +6 -0
  12. package/dist/components/Button/index.js +4 -0
  13. package/dist/components/Icon/Icon.d.ts +127 -0
  14. package/dist/components/Icon/Icon.js +1 -0
  15. package/dist/components/Icon/index.d.ts +3 -0
  16. package/dist/components/Icon/index.js +2 -0
  17. package/dist/{Icons → components}/IconCircular/IconCircular.d.ts +22 -19
  18. package/dist/components/IconCircular/IconCircular.js +3 -0
  19. package/dist/components/IconCircular/index.d.ts +4 -0
  20. package/dist/components/IconCircular/index.js +4 -0
  21. package/dist/index.css +1 -0
  22. package/dist/index.d.ts +243 -6
  23. package/dist/index.js +17 -6
  24. package/package.json +95 -139
  25. package/dist/Components/Button/Button.d.ts +0 -42
  26. package/dist/Components/Button/Button.spec.d.ts +0 -1
  27. package/dist/Components/Button/Button.stories.d.ts +0 -11
  28. package/dist/Components/Button/index.d.ts +0 -1
  29. package/dist/Components/HelpLink/HelpLink.spec.d.ts +0 -1
  30. package/dist/Components/HelpLink/HelpLink.stories.d.ts +0 -6
  31. package/dist/Components/HelpLink/index.d.ts +0 -28
  32. package/dist/Components/LoadingPlaceholder/LoadingPlaceholder.d.ts +0 -5
  33. package/dist/Components/LoadingPlaceholder/LoadingPlaceholder.stories.d.ts +0 -4
  34. package/dist/Components/LoadingPlaceholder/index.d.ts +0 -1
  35. package/dist/Components/Modal/Modal.d.ts +0 -48
  36. package/dist/Components/Modal/Modal.spec.d.ts +0 -1
  37. package/dist/Components/Modal/Modal.stories.d.ts +0 -7
  38. package/dist/Components/Modal/index.d.ts +0 -1
  39. package/dist/Components/SidebarFixed/SidebarFixed.d.ts +0 -30
  40. package/dist/Components/SidebarFixed/SidebarFixed.spec.d.ts +0 -1
  41. package/dist/Components/SidebarFixed/SidebarFixed.stories.d.ts +0 -4
  42. package/dist/Components/SidebarFixed/index.d.ts +0 -1
  43. package/dist/Components/Table/Table.d.ts +0 -81
  44. package/dist/Components/Table/Table.stories.d.ts +0 -8
  45. package/dist/Components/Table/index.d.ts +0 -1
  46. package/dist/Components/TableList/TableList.d.ts +0 -38
  47. package/dist/Components/TableList/TableList.spec.d.ts +0 -1
  48. package/dist/Components/TableList/TableList.stories.d.ts +0 -7
  49. package/dist/Components/TableList/TableListItem.d.ts +0 -3
  50. package/dist/Components/TableList/TableListItem.interface.d.ts +0 -68
  51. package/dist/Components/TableList/TableListItem.spec.d.ts +0 -1
  52. package/dist/Components/TableList/TableListItem.stories.d.ts +0 -4
  53. package/dist/Components/TableList/TableListItemLoading.d.ts +0 -3
  54. package/dist/Components/TableList/TableListItemLoading.spec.d.ts +0 -1
  55. package/dist/Components/TableList/TableListItemLoading.stories.d.ts +0 -4
  56. package/dist/Components/TableList/TableListItemWrapper.d.ts +0 -12
  57. package/dist/Components/TableList/TableListItemWrapper.spec.d.ts +0 -1
  58. package/dist/Components/TableList/TableListItemWrapper.stories.d.ts +0 -4
  59. package/dist/Components/TableList/index.d.ts +0 -4
  60. package/dist/Components/Tabs/Tabs.d.ts +0 -21
  61. package/dist/Components/Tabs/Tabs.spec.d.ts +0 -1
  62. package/dist/Components/Tabs/Tabs.stories.d.ts +0 -5
  63. package/dist/Components/Tabs/TabsItem.d.ts +0 -14
  64. package/dist/Components/Tabs/TabsItem.interface.d.ts +0 -19
  65. package/dist/Components/Tabs/index.d.ts +0 -1
  66. package/dist/Components/Timeline/Timeline.d.ts +0 -25
  67. package/dist/Components/Timeline/Timeline.spec.d.ts +0 -1
  68. package/dist/Components/Timeline/Timeline.stories.d.ts +0 -7
  69. package/dist/Components/Timeline/TimelineItem.d.ts +0 -6
  70. package/dist/Components/Timeline/TimelineItem.interface.d.ts +0 -32
  71. package/dist/Components/Timeline/index.d.ts +0 -1
  72. package/dist/Components/index.d.ts +0 -8
  73. package/dist/Forms/Checkbox/Checkbox.d.ts +0 -27
  74. package/dist/Forms/Checkbox/Checkbox.spec.d.ts +0 -1
  75. package/dist/Forms/Checkbox/Checkbox.stories.d.ts +0 -10
  76. package/dist/Forms/Checkbox/index.d.ts +0 -1
  77. package/dist/Forms/Dropdown/Dropdown.d.ts +0 -168
  78. package/dist/Forms/Dropdown/Dropdown.spec.d.ts +0 -1
  79. package/dist/Forms/Dropdown/Dropdown.stories.d.ts +0 -19
  80. package/dist/Forms/Dropdown/index.d.ts +0 -1
  81. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.d.ts +0 -11
  82. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.spec.d.ts +0 -1
  83. package/dist/Forms/FloatingLabelInput/FloatingLabelInput.stories.d.ts +0 -10
  84. package/dist/Forms/FloatingLabelInput/index.d.ts +0 -1
  85. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.d.ts +0 -49
  86. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.spec.d.ts +0 -1
  87. package/dist/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.stories.d.ts +0 -10
  88. package/dist/Forms/FloatingLabelInputCurrency/index.d.ts +0 -1
  89. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.d.ts +0 -18
  90. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.spec.d.ts +0 -1
  91. package/dist/Forms/FloatingLabelInputMask/FloatingLabelInputMask.stories.d.ts +0 -19
  92. package/dist/Forms/FloatingLabelInputMask/index.d.ts +0 -1
  93. package/dist/Forms/Input/Input.d.ts +0 -36
  94. package/dist/Forms/Input/Input.spec.d.ts +0 -1
  95. package/dist/Forms/Input/Input.stories.d.ts +0 -21
  96. package/dist/Forms/Input/index.d.ts +0 -1
  97. package/dist/Forms/InputCurrency/InputCurrency.d.ts +0 -47
  98. package/dist/Forms/InputCurrency/InputCurrency.spec.d.ts +0 -1
  99. package/dist/Forms/InputCurrency/InputCurrency.stories.d.ts +0 -8
  100. package/dist/Forms/InputCurrency/index.d.ts +0 -1
  101. package/dist/Forms/InputCurrency/utils.d.ts +0 -22
  102. package/dist/Forms/InputHelpText/InputHelpText.d.ts +0 -16
  103. package/dist/Forms/InputHelpText/InputHelpText.spec.d.ts +0 -1
  104. package/dist/Forms/InputHelpText/InputHelpText.stories.d.ts +0 -4
  105. package/dist/Forms/InputHelpText/index.d.ts +0 -1
  106. package/dist/Forms/InputLabel/InputLabel.d.ts +0 -28
  107. package/dist/Forms/InputLabel/InputLabel.spec.d.ts +0 -1
  108. package/dist/Forms/InputLabel/InputLabel.stories.d.ts +0 -5
  109. package/dist/Forms/InputLabel/index.d.ts +0 -1
  110. package/dist/Forms/InputMask/InputMask.d.ts +0 -18
  111. package/dist/Forms/InputMask/InputMask.spec.d.ts +0 -1
  112. package/dist/Forms/InputMask/InputMask.stories.d.ts +0 -17
  113. package/dist/Forms/InputMask/index.d.ts +0 -1
  114. package/dist/Forms/InputMask/maskDate.d.ts +0 -7
  115. package/dist/Forms/InputMask/utils.d.ts +0 -65
  116. package/dist/Forms/RadioButton/RadioButton.d.ts +0 -24
  117. package/dist/Forms/RadioButton/RadioButton.spec.d.ts +0 -1
  118. package/dist/Forms/RadioButton/RadioButton.stories.d.ts +0 -6
  119. package/dist/Forms/RadioButton/index.d.ts +0 -1
  120. package/dist/Forms/Select/Select.d.ts +0 -31
  121. package/dist/Forms/Select/Select.spec.d.ts +0 -1
  122. package/dist/Forms/Select/Select.stories.d.ts +0 -8
  123. package/dist/Forms/Select/index.d.ts +0 -1
  124. package/dist/Forms/Toggle/Toggle.d.ts +0 -5
  125. package/dist/Forms/Toggle/Toggle.spec.d.ts +0 -1
  126. package/dist/Forms/Toggle/Toggle.stories.d.ts +0 -8
  127. package/dist/Forms/Toggle/index.d.ts +0 -1
  128. package/dist/Forms/ToggleButton/ToggleButton.d.ts +0 -24
  129. package/dist/Forms/ToggleButton/ToggleButton.spec.d.ts +0 -1
  130. package/dist/Forms/ToggleButton/ToggleButton.stories.d.ts +0 -7
  131. package/dist/Forms/ToggleButton/index.d.ts +0 -1
  132. package/dist/Forms/commonStyles.d.ts +0 -16
  133. package/dist/Forms/index.d.ts +0 -14
  134. package/dist/Icons/Icon/Icon.d.ts +0 -34
  135. package/dist/Icons/Icon/Icon.spec.d.ts +0 -1
  136. package/dist/Icons/Icon/Icon.stories.d.ts +0 -9
  137. package/dist/Icons/Icon/index.d.ts +0 -1
  138. package/dist/Icons/IconCircular/IconCircular.spec.d.ts +0 -1
  139. package/dist/Icons/IconCircular/IconCircular.stories.d.ts +0 -6
  140. package/dist/Icons/IconCircular/index.d.ts +0 -1
  141. package/dist/Icons/IconList.d.ts +0 -3
  142. package/dist/Icons/icons-path/Adjust.d.ts +0 -2
  143. package/dist/Icons/icons-path/AngleDiagonal.d.ts +0 -2
  144. package/dist/Icons/icons-path/AngleDown.d.ts +0 -2
  145. package/dist/Icons/icons-path/AngleHeight.d.ts +0 -2
  146. package/dist/Icons/icons-path/AngleLeft.d.ts +0 -2
  147. package/dist/Icons/icons-path/AngleRight.d.ts +0 -2
  148. package/dist/Icons/icons-path/AngleWidth.d.ts +0 -2
  149. package/dist/Icons/icons-path/App.d.ts +0 -2
  150. package/dist/Icons/icons-path/Arrow.d.ts +0 -2
  151. package/dist/Icons/icons-path/ArrowLeft.d.ts +0 -2
  152. package/dist/Icons/icons-path/ArrowRight.d.ts +0 -2
  153. package/dist/Icons/icons-path/Back.d.ts +0 -2
  154. package/dist/Icons/icons-path/Ban.d.ts +0 -2
  155. package/dist/Icons/icons-path/BarcodeRead.d.ts +0 -2
  156. package/dist/Icons/icons-path/Bell.d.ts +0 -2
  157. package/dist/Icons/icons-path/Blog.d.ts +0 -2
  158. package/dist/Icons/icons-path/Bullhorn.d.ts +0 -2
  159. package/dist/Icons/icons-path/Calculator.d.ts +0 -2
  160. package/dist/Icons/icons-path/CalendarAlt.d.ts +0 -2
  161. package/dist/Icons/icons-path/Camera.d.ts +0 -2
  162. package/dist/Icons/icons-path/Check.d.ts +0 -2
  163. package/dist/Icons/icons-path/CheckCircle.d.ts +0 -2
  164. package/dist/Icons/icons-path/Clock.d.ts +0 -2
  165. package/dist/Icons/icons-path/Clockwise.d.ts +0 -2
  166. package/dist/Icons/icons-path/Close.d.ts +0 -2
  167. package/dist/Icons/icons-path/Cog.d.ts +0 -2
  168. package/dist/Icons/icons-path/Copy.d.ts +0 -2
  169. package/dist/Icons/icons-path/CreditCard.d.ts +0 -2
  170. package/dist/Icons/icons-path/DashedCircle.d.ts +0 -2
  171. package/dist/Icons/icons-path/DefaultCursor.d.ts +0 -2
  172. package/dist/Icons/icons-path/Desktop.d.ts +0 -2
  173. package/dist/Icons/icons-path/Discount.d.ts +0 -2
  174. package/dist/Icons/icons-path/DotsThree.d.ts +0 -2
  175. package/dist/Icons/icons-path/Download.d.ts +0 -2
  176. package/dist/Icons/icons-path/Edit.d.ts +0 -2
  177. package/dist/Icons/icons-path/Envelope.d.ts +0 -2
  178. package/dist/Icons/icons-path/Exchange.d.ts +0 -2
  179. package/dist/Icons/icons-path/ExchangeY.d.ts +0 -2
  180. package/dist/Icons/icons-path/Exclamation.d.ts +0 -2
  181. package/dist/Icons/icons-path/ExclamationCircle.d.ts +0 -2
  182. package/dist/Icons/icons-path/ExclamationTriangle.d.ts +0 -2
  183. package/dist/Icons/icons-path/ExternalLink.d.ts +0 -2
  184. package/dist/Icons/icons-path/Eye.d.ts +0 -2
  185. package/dist/Icons/icons-path/EyeSlash.d.ts +0 -2
  186. package/dist/Icons/icons-path/Filter.d.ts +0 -2
  187. package/dist/Icons/icons-path/HalfBack.d.ts +0 -2
  188. package/dist/Icons/icons-path/Hashtag.d.ts +0 -2
  189. package/dist/Icons/icons-path/Home.d.ts +0 -2
  190. package/dist/Icons/icons-path/IconSolidEnviali.d.ts +0 -2
  191. package/dist/Icons/icons-path/IconSolidLI.d.ts +0 -2
  192. package/dist/Icons/icons-path/IdentificationBadge.d.ts +0 -2
  193. package/dist/Icons/icons-path/Image.d.ts +0 -2
  194. package/dist/Icons/icons-path/InfoCircle.d.ts +0 -2
  195. package/dist/Icons/icons-path/Lightbulb.d.ts +0 -2
  196. package/dist/Icons/icons-path/Link.d.ts +0 -2
  197. package/dist/Icons/icons-path/ListItems.d.ts +0 -2
  198. package/dist/Icons/icons-path/Loading.d.ts +0 -2
  199. package/dist/Icons/icons-path/Minus.d.ts +0 -2
  200. package/dist/Icons/icons-path/MinusCircle.d.ts +0 -2
  201. package/dist/Icons/icons-path/MinusCircleSolid.d.ts +0 -2
  202. package/dist/Icons/icons-path/Mobile.d.ts +0 -2
  203. package/dist/Icons/icons-path/MoneyBill.d.ts +0 -2
  204. package/dist/Icons/icons-path/Move.d.ts +0 -2
  205. package/dist/Icons/icons-path/Nav.d.ts +0 -2
  206. package/dist/Icons/icons-path/Order.d.ts +0 -2
  207. package/dist/Icons/icons-path/Pagali.d.ts +0 -2
  208. package/dist/Icons/icons-path/PaperList.d.ts +0 -2
  209. package/dist/Icons/icons-path/PieChart.d.ts +0 -2
  210. package/dist/Icons/icons-path/Pix.d.ts +0 -2
  211. package/dist/Icons/icons-path/Plus.d.ts +0 -2
  212. package/dist/Icons/icons-path/PlusCircle.d.ts +0 -2
  213. package/dist/Icons/icons-path/Print.d.ts +0 -2
  214. package/dist/Icons/icons-path/Product.d.ts +0 -2
  215. package/dist/Icons/icons-path/QuestionCircle.d.ts +0 -2
  216. package/dist/Icons/icons-path/Reload.d.ts +0 -2
  217. package/dist/Icons/icons-path/Rocket.d.ts +0 -2
  218. package/dist/Icons/icons-path/Search.d.ts +0 -2
  219. package/dist/Icons/icons-path/ShoppingCart.d.ts +0 -2
  220. package/dist/Icons/icons-path/SortDown.d.ts +0 -2
  221. package/dist/Icons/icons-path/Store.d.ts +0 -2
  222. package/dist/Icons/icons-path/Sync.d.ts +0 -2
  223. package/dist/Icons/icons-path/ThinAngleRight.d.ts +0 -2
  224. package/dist/Icons/icons-path/TimesCircle.d.ts +0 -2
  225. package/dist/Icons/icons-path/Trash.d.ts +0 -2
  226. package/dist/Icons/icons-path/Trophy.d.ts +0 -2
  227. package/dist/Icons/icons-path/Truck.d.ts +0 -2
  228. package/dist/Icons/icons-path/Tv.d.ts +0 -2
  229. package/dist/Icons/icons-path/Upload.d.ts +0 -2
  230. package/dist/Icons/icons-path/UsdCircle.d.ts +0 -2
  231. package/dist/Icons/icons-path/User.d.ts +0 -2
  232. package/dist/Icons/icons-path/WhatsApp.d.ts +0 -2
  233. package/dist/Icons/icons-path/index.d.ts +0 -96
  234. package/dist/Icons/index.d.ts +0 -2
  235. package/dist/Indicators/Alert/Alert.d.ts +0 -48
  236. package/dist/Indicators/Alert/Alert.spec.d.ts +0 -1
  237. package/dist/Indicators/Alert/Alert.stories.d.ts +0 -5
  238. package/dist/Indicators/Alert/index.d.ts +0 -1
  239. package/dist/Indicators/Badge/Badge.d.ts +0 -45
  240. package/dist/Indicators/Badge/Badge.spec.d.ts +0 -1
  241. package/dist/Indicators/Badge/Badge.stories.d.ts +0 -6
  242. package/dist/Indicators/Badge/index.d.ts +0 -1
  243. package/dist/Indicators/InformationBox/InformationBox.d.ts +0 -26
  244. package/dist/Indicators/InformationBox/InformationBox.spec.d.ts +0 -1
  245. package/dist/Indicators/InformationBox/InformationBoxt.stories.d.ts +0 -4
  246. package/dist/Indicators/InformationBox/index.d.ts +0 -1
  247. package/dist/Indicators/Status/Status.d.ts +0 -25
  248. package/dist/Indicators/Status/Status.spec.d.ts +0 -1
  249. package/dist/Indicators/Status/Status.stories.d.ts +0 -4
  250. package/dist/Indicators/Status/index.d.ts +0 -1
  251. package/dist/Indicators/Tag/Tag.d.ts +0 -32
  252. package/dist/Indicators/Tag/Tag.spec.d.ts +0 -1
  253. package/dist/Indicators/Tag/Tag.stories.d.ts +0 -5
  254. package/dist/Indicators/Tag/index.d.ts +0 -1
  255. package/dist/Indicators/Toast/Toast.d.ts +0 -6
  256. package/dist/Indicators/Toast/Toast.spec.d.ts +0 -1
  257. package/dist/Indicators/Toast/Toast.stories.d.ts +0 -3
  258. package/dist/Indicators/Toast/index.d.ts +0 -1
  259. package/dist/Indicators/Tooltip/Tooltip.d.ts +0 -39
  260. package/dist/Indicators/Tooltip/Tooltip.spec.d.ts +0 -1
  261. package/dist/Indicators/Tooltip/Tooltip.stories.d.ts +0 -4
  262. package/dist/Indicators/Tooltip/index.d.ts +0 -1
  263. package/dist/Indicators/index.d.ts +0 -7
  264. package/dist/Layout/ActionBar/ActionBar.d.ts +0 -12
  265. package/dist/Layout/ActionBar/ActionBar.spec.d.ts +0 -1
  266. package/dist/Layout/ActionBar/ActionBar.stories.d.ts +0 -5
  267. package/dist/Layout/ActionBar/index.d.ts +0 -1
  268. package/dist/Layout/Box/Box.d.ts +0 -33
  269. package/dist/Layout/Box/Box.spec.d.ts +0 -1
  270. package/dist/Layout/Box/Box.stories.d.ts +0 -21
  271. package/dist/Layout/Box/Components/Content/BoxContent.d.ts +0 -9
  272. package/dist/Layout/Box/Components/Content/BoxContent.spec.d.ts +0 -1
  273. package/dist/Layout/Box/Components/Content/BoxContent.stories.d.ts +0 -4
  274. package/dist/Layout/Box/Components/Header/BoxHeader.d.ts +0 -22
  275. package/dist/Layout/Box/Components/Header/BoxHeader.spec.d.ts +0 -1
  276. package/dist/Layout/Box/Components/Header/BoxHeader.stories.d.ts +0 -7
  277. package/dist/Layout/Box/Components/Separator/BoxSeparator.d.ts +0 -2
  278. package/dist/Layout/Box/Components/Separator/BoxSeparator.spec.d.ts +0 -1
  279. package/dist/Layout/Box/Components/Separator/BoxSeparator.stories.d.ts +0 -4
  280. package/dist/Layout/Box/Components/utils.d.ts +0 -32
  281. package/dist/Layout/Box/index.d.ts +0 -1
  282. package/dist/Layout/Container/Container.d.ts +0 -16
  283. package/dist/Layout/Container/Container.spec.d.ts +0 -1
  284. package/dist/Layout/Container/Container.stories.d.ts +0 -5
  285. package/dist/Layout/Container/index.d.ts +0 -1
  286. package/dist/Layout/ListActions/ListActions.d.ts +0 -42
  287. package/dist/Layout/ListActions/ListActions.spec.d.ts +0 -1
  288. package/dist/Layout/ListActions/ListActions.stories.d.ts +0 -4
  289. package/dist/Layout/ListActions/index.d.ts +0 -1
  290. package/dist/Layout/Sidebar/Item.d.ts +0 -34
  291. package/dist/Layout/Sidebar/ItemSub.d.ts +0 -16
  292. package/dist/Layout/Sidebar/Sidebar.d.ts +0 -17
  293. package/dist/Layout/Sidebar/Sidebar.stories.d.ts +0 -4
  294. package/dist/Layout/Sidebar/index.d.ts +0 -3
  295. package/dist/Layout/Topbar/Topbar.d.ts +0 -21
  296. package/dist/Layout/Topbar/Topbar.stories.d.ts +0 -4
  297. package/dist/Layout/Topbar/index.d.ts +0 -1
  298. package/dist/Layout/constants.d.ts +0 -4
  299. package/dist/Layout/index.d.ts +0 -6
  300. package/dist/Navigation/Breadcrumb/Breadcrumb.spec.d.ts +0 -1
  301. package/dist/Navigation/Breadcrumb/Breadcrumb.stories.d.ts +0 -11
  302. package/dist/Navigation/Breadcrumb/index.d.ts +0 -45
  303. package/dist/Navigation/Pagination/Pagination.spec.d.ts +0 -1
  304. package/dist/Navigation/Pagination/Pagination.stories.d.ts +0 -6
  305. package/dist/Navigation/Pagination/PaginationInfo.d.ts +0 -24
  306. package/dist/Navigation/Pagination/PaginationNav.d.ts +0 -16
  307. package/dist/Navigation/Pagination/index.d.ts +0 -10
  308. package/dist/Navigation/Stepper/Stepper.spec.d.ts +0 -1
  309. package/dist/Navigation/Stepper/Stepper.stories.d.ts +0 -8
  310. package/dist/Navigation/Stepper/index.d.ts +0 -29
  311. package/dist/Navigation/index.d.ts +0 -2
  312. package/dist/admin-components.cjs.development.js +0 -49776
  313. package/dist/admin-components.cjs.development.js.map +0 -1
  314. package/dist/admin-components.cjs.production.min.js +0 -2
  315. package/dist/admin-components.cjs.production.min.js.map +0 -1
  316. package/dist/admin-components.esm.js +0 -49714
  317. package/dist/admin-components.esm.js.map +0 -1
  318. package/dist/utils/index.d.ts +0 -4
  319. package/dist/utils/testConstants.d.ts +0 -3
  320. package/src/Components/Button/Button.spec.tsx +0 -75
  321. package/src/Components/Button/Button.stories.tsx +0 -63
  322. package/src/Components/Button/Button.tsx +0 -194
  323. package/src/Components/Button/index.tsx +0 -1
  324. package/src/Components/HelpLink/HelpLink.spec.tsx +0 -33
  325. package/src/Components/HelpLink/HelpLink.stories.tsx +0 -39
  326. package/src/Components/HelpLink/index.tsx +0 -80
  327. package/src/Components/LoadingPlaceholder/LoadingPlaceholder.stories.tsx +0 -14
  328. package/src/Components/LoadingPlaceholder/LoadingPlaceholder.tsx +0 -17
  329. package/src/Components/LoadingPlaceholder/index.tsx +0 -1
  330. package/src/Components/Modal/Modal.spec.tsx +0 -15
  331. package/src/Components/Modal/Modal.stories.tsx +0 -129
  332. package/src/Components/Modal/Modal.tsx +0 -141
  333. package/src/Components/Modal/index.tsx +0 -1
  334. package/src/Components/SidebarFixed/SidebarFixed.spec.tsx +0 -36
  335. package/src/Components/SidebarFixed/SidebarFixed.stories.tsx +0 -39
  336. package/src/Components/SidebarFixed/SidebarFixed.tsx +0 -119
  337. package/src/Components/SidebarFixed/index.tsx +0 -1
  338. package/src/Components/Table/Table.stories.tsx +0 -188
  339. package/src/Components/Table/Table.tsx +0 -346
  340. package/src/Components/Table/index.tsx +0 -1
  341. package/src/Components/TableList/TableList.spec.tsx +0 -86
  342. package/src/Components/TableList/TableList.stories.tsx +0 -168
  343. package/src/Components/TableList/TableList.tsx +0 -169
  344. package/src/Components/TableList/TableListItem.interface.ts +0 -69
  345. package/src/Components/TableList/TableListItem.spec.tsx +0 -75
  346. package/src/Components/TableList/TableListItem.stories.tsx +0 -44
  347. package/src/Components/TableList/TableListItem.tsx +0 -79
  348. package/src/Components/TableList/TableListItemLoading.spec.tsx +0 -19
  349. package/src/Components/TableList/TableListItemLoading.stories.tsx +0 -22
  350. package/src/Components/TableList/TableListItemLoading.tsx +0 -40
  351. package/src/Components/TableList/TableListItemWrapper.spec.tsx +0 -33
  352. package/src/Components/TableList/TableListItemWrapper.stories.tsx +0 -38
  353. package/src/Components/TableList/TableListItemWrapper.tsx +0 -40
  354. package/src/Components/TableList/index.tsx +0 -4
  355. package/src/Components/Tabs/Tabs.spec.tsx +0 -38
  356. package/src/Components/Tabs/Tabs.stories.tsx +0 -62
  357. package/src/Components/Tabs/Tabs.tsx +0 -66
  358. package/src/Components/Tabs/TabsItem.interface.ts +0 -19
  359. package/src/Components/Tabs/TabsItem.tsx +0 -50
  360. package/src/Components/Tabs/index.tsx +0 -1
  361. package/src/Components/Timeline/Timeline.spec.tsx +0 -66
  362. package/src/Components/Timeline/Timeline.stories.tsx +0 -58
  363. package/src/Components/Timeline/Timeline.tsx +0 -75
  364. package/src/Components/Timeline/TimelineItem.interface.ts +0 -32
  365. package/src/Components/Timeline/TimelineItem.tsx +0 -65
  366. package/src/Components/Timeline/index.tsx +0 -1
  367. package/src/Components/index.ts +0 -8
  368. package/src/Forms/Checkbox/Checkbox.spec.tsx +0 -26
  369. package/src/Forms/Checkbox/Checkbox.stories.tsx +0 -65
  370. package/src/Forms/Checkbox/Checkbox.tsx +0 -166
  371. package/src/Forms/Checkbox/index.tsx +0 -1
  372. package/src/Forms/Dropdown/Dropdown.spec.tsx +0 -38
  373. package/src/Forms/Dropdown/Dropdown.stories.tsx +0 -152
  374. package/src/Forms/Dropdown/Dropdown.tsx +0 -433
  375. package/src/Forms/Dropdown/index.ts +0 -1
  376. package/src/Forms/FloatingLabelInput/FloatingLabelInput.spec.tsx +0 -26
  377. package/src/Forms/FloatingLabelInput/FloatingLabelInput.stories.tsx +0 -73
  378. package/src/Forms/FloatingLabelInput/FloatingLabelInput.tsx +0 -93
  379. package/src/Forms/FloatingLabelInput/index.ts +0 -1
  380. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.spec.tsx +0 -16
  381. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.stories.tsx +0 -72
  382. package/src/Forms/FloatingLabelInputCurrency/FloatingLabelInputCurrency.tsx +0 -251
  383. package/src/Forms/FloatingLabelInputCurrency/index.ts +0 -1
  384. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.spec.tsx +0 -66
  385. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.stories.tsx +0 -148
  386. package/src/Forms/FloatingLabelInputMask/FloatingLabelInputMask.tsx +0 -56
  387. package/src/Forms/FloatingLabelInputMask/index.ts +0 -1
  388. package/src/Forms/Input/Input.spec.tsx +0 -80
  389. package/src/Forms/Input/Input.stories.tsx +0 -170
  390. package/src/Forms/Input/Input.tsx +0 -158
  391. package/src/Forms/Input/index.ts +0 -1
  392. package/src/Forms/InputCurrency/InputCurrency.spec.tsx +0 -32
  393. package/src/Forms/InputCurrency/InputCurrency.stories.tsx +0 -45
  394. package/src/Forms/InputCurrency/InputCurrency.tsx +0 -224
  395. package/src/Forms/InputCurrency/index.ts +0 -1
  396. package/src/Forms/InputCurrency/utils.ts +0 -36
  397. package/src/Forms/InputHelpText/InputHelpText.spec.tsx +0 -22
  398. package/src/Forms/InputHelpText/InputHelpText.stories.tsx +0 -16
  399. package/src/Forms/InputHelpText/InputHelpText.tsx +0 -31
  400. package/src/Forms/InputHelpText/index.ts +0 -1
  401. package/src/Forms/InputLabel/InputLabel.spec.tsx +0 -30
  402. package/src/Forms/InputLabel/InputLabel.stories.tsx +0 -24
  403. package/src/Forms/InputLabel/InputLabel.tsx +0 -52
  404. package/src/Forms/InputLabel/index.ts +0 -1
  405. package/src/Forms/InputMask/InputMask.spec.tsx +0 -97
  406. package/src/Forms/InputMask/InputMask.stories.tsx +0 -126
  407. package/src/Forms/InputMask/InputMask.tsx +0 -51
  408. package/src/Forms/InputMask/index.ts +0 -1
  409. package/src/Forms/InputMask/maskDate.ts +0 -81
  410. package/src/Forms/InputMask/utils.ts +0 -154
  411. package/src/Forms/RadioButton/RadioButton.spec.tsx +0 -27
  412. package/src/Forms/RadioButton/RadioButton.stories.tsx +0 -40
  413. package/src/Forms/RadioButton/RadioButton.tsx +0 -80
  414. package/src/Forms/RadioButton/index.tsx +0 -1
  415. package/src/Forms/Select/Select.spec.tsx +0 -41
  416. package/src/Forms/Select/Select.stories.tsx +0 -58
  417. package/src/Forms/Select/Select.tsx +0 -148
  418. package/src/Forms/Select/index.ts +0 -1
  419. package/src/Forms/Toggle/Toggle.spec.tsx +0 -29
  420. package/src/Forms/Toggle/Toggle.stories.tsx +0 -43
  421. package/src/Forms/Toggle/Toggle.tsx +0 -85
  422. package/src/Forms/Toggle/index.tsx +0 -1
  423. package/src/Forms/ToggleButton/ToggleButton.spec.tsx +0 -29
  424. package/src/Forms/ToggleButton/ToggleButton.stories.tsx +0 -51
  425. package/src/Forms/ToggleButton/ToggleButton.tsx +0 -95
  426. package/src/Forms/ToggleButton/index.tsx +0 -1
  427. package/src/Forms/commonStyles.ts +0 -29
  428. package/src/Forms/index.ts +0 -14
  429. package/src/Icons/Icon/Icon.spec.tsx +0 -27
  430. package/src/Icons/Icon/Icon.stories.tsx +0 -12
  431. package/src/Icons/Icon/Icon.tsx +0 -56
  432. package/src/Icons/Icon/index.ts +0 -1
  433. package/src/Icons/IconCircular/IconCircular.spec.tsx +0 -24
  434. package/src/Icons/IconCircular/IconCircular.stories.tsx +0 -24
  435. package/src/Icons/IconCircular/IconCircular.tsx +0 -67
  436. package/src/Icons/IconCircular/index.ts +0 -1
  437. package/src/Icons/IconList.tsx +0 -27
  438. package/src/Icons/icons-path/Adjust.tsx +0 -16
  439. package/src/Icons/icons-path/AngleDiagonal.tsx +0 -20
  440. package/src/Icons/icons-path/AngleDown.tsx +0 -9
  441. package/src/Icons/icons-path/AngleHeight.tsx +0 -17
  442. package/src/Icons/icons-path/AngleLeft.tsx +0 -9
  443. package/src/Icons/icons-path/AngleRight.tsx +0 -9
  444. package/src/Icons/icons-path/AngleWidth.tsx +0 -17
  445. package/src/Icons/icons-path/App.tsx +0 -9
  446. package/src/Icons/icons-path/Arrow.tsx +0 -11
  447. package/src/Icons/icons-path/ArrowLeft.tsx +0 -9
  448. package/src/Icons/icons-path/ArrowRight.tsx +0 -9
  449. package/src/Icons/icons-path/Back.tsx +0 -5
  450. package/src/Icons/icons-path/Ban.tsx +0 -9
  451. package/src/Icons/icons-path/BarcodeRead.tsx +0 -9
  452. package/src/Icons/icons-path/Bell.tsx +0 -9
  453. package/src/Icons/icons-path/Blog.tsx +0 -9
  454. package/src/Icons/icons-path/Bullhorn.tsx +0 -9
  455. package/src/Icons/icons-path/Calculator.tsx +0 -9
  456. package/src/Icons/icons-path/CalendarAlt.tsx +0 -9
  457. package/src/Icons/icons-path/Camera.tsx +0 -9
  458. package/src/Icons/icons-path/Check.tsx +0 -9
  459. package/src/Icons/icons-path/CheckCircle.tsx +0 -9
  460. package/src/Icons/icons-path/Clock.tsx +0 -9
  461. package/src/Icons/icons-path/Clockwise.tsx +0 -22
  462. package/src/Icons/icons-path/Close.tsx +0 -9
  463. package/src/Icons/icons-path/Cog.tsx +0 -9
  464. package/src/Icons/icons-path/Copy.tsx +0 -9
  465. package/src/Icons/icons-path/CreditCard.tsx +0 -9
  466. package/src/Icons/icons-path/DashedCircle.tsx +0 -32
  467. package/src/Icons/icons-path/DefaultCursor.tsx +0 -14
  468. package/src/Icons/icons-path/Desktop.tsx +0 -9
  469. package/src/Icons/icons-path/Discount.tsx +0 -9
  470. package/src/Icons/icons-path/DotsThree.tsx +0 -9
  471. package/src/Icons/icons-path/Download.tsx +0 -9
  472. package/src/Icons/icons-path/Edit.tsx +0 -9
  473. package/src/Icons/icons-path/Envelope.tsx +0 -9
  474. package/src/Icons/icons-path/Exchange.tsx +0 -9
  475. package/src/Icons/icons-path/ExchangeY.tsx +0 -9
  476. package/src/Icons/icons-path/Exclamation.tsx +0 -17
  477. package/src/Icons/icons-path/ExclamationCircle.tsx +0 -9
  478. package/src/Icons/icons-path/ExclamationTriangle.tsx +0 -9
  479. package/src/Icons/icons-path/ExternalLink.tsx +0 -9
  480. package/src/Icons/icons-path/Eye.tsx +0 -9
  481. package/src/Icons/icons-path/EyeSlash.tsx +0 -9
  482. package/src/Icons/icons-path/Filter.tsx +0 -9
  483. package/src/Icons/icons-path/HalfBack.tsx +0 -12
  484. package/src/Icons/icons-path/Hashtag.tsx +0 -13
  485. package/src/Icons/icons-path/Home.tsx +0 -9
  486. package/src/Icons/icons-path/IconSolidEnviali.tsx +0 -9
  487. package/src/Icons/icons-path/IconSolidLI.tsx +0 -12
  488. package/src/Icons/icons-path/IdentificationBadge.tsx +0 -22
  489. package/src/Icons/icons-path/Image.tsx +0 -9
  490. package/src/Icons/icons-path/InfoCircle.tsx +0 -9
  491. package/src/Icons/icons-path/Lightbulb.tsx +0 -9
  492. package/src/Icons/icons-path/Link.tsx +0 -9
  493. package/src/Icons/icons-path/ListItems.tsx +0 -14
  494. package/src/Icons/icons-path/Loading.tsx +0 -19
  495. package/src/Icons/icons-path/Minus.tsx +0 -5
  496. package/src/Icons/icons-path/MinusCircle.tsx +0 -26
  497. package/src/Icons/icons-path/MinusCircleSolid.tsx +0 -30
  498. package/src/Icons/icons-path/Mobile.tsx +0 -9
  499. package/src/Icons/icons-path/MoneyBill.tsx +0 -9
  500. package/src/Icons/icons-path/Move.tsx +0 -9
  501. package/src/Icons/icons-path/Nav.tsx +0 -11
  502. package/src/Icons/icons-path/Order.tsx +0 -9
  503. package/src/Icons/icons-path/Pagali.tsx +0 -16
  504. package/src/Icons/icons-path/PaperList.tsx +0 -9
  505. package/src/Icons/icons-path/PieChart.tsx +0 -9
  506. package/src/Icons/icons-path/Pix.tsx +0 -8
  507. package/src/Icons/icons-path/Plus.tsx +0 -9
  508. package/src/Icons/icons-path/PlusCircle.tsx +0 -9
  509. package/src/Icons/icons-path/Print.tsx +0 -9
  510. package/src/Icons/icons-path/Product.tsx +0 -9
  511. package/src/Icons/icons-path/QuestionCircle.tsx +0 -9
  512. package/src/Icons/icons-path/Reload.tsx +0 -9
  513. package/src/Icons/icons-path/Rocket.tsx +0 -22
  514. package/src/Icons/icons-path/Search.tsx +0 -11
  515. package/src/Icons/icons-path/ShoppingCart.tsx +0 -11
  516. package/src/Icons/icons-path/SortDown.tsx +0 -9
  517. package/src/Icons/icons-path/Store.tsx +0 -9
  518. package/src/Icons/icons-path/Sync.tsx +0 -9
  519. package/src/Icons/icons-path/ThinAngleRight.tsx +0 -12
  520. package/src/Icons/icons-path/TimesCircle.tsx +0 -9
  521. package/src/Icons/icons-path/Trash.tsx +0 -9
  522. package/src/Icons/icons-path/Trophy.tsx +0 -22
  523. package/src/Icons/icons-path/Truck.tsx +0 -9
  524. package/src/Icons/icons-path/Tv.tsx +0 -9
  525. package/src/Icons/icons-path/Upload.tsx +0 -11
  526. package/src/Icons/icons-path/UsdCircle.tsx +0 -9
  527. package/src/Icons/icons-path/User.tsx +0 -9
  528. package/src/Icons/icons-path/WhatsApp.tsx +0 -9
  529. package/src/Icons/icons-path/index.ts +0 -186
  530. package/src/Icons/index.ts +0 -2
  531. package/src/Indicators/Alert/Alert.spec.tsx +0 -53
  532. package/src/Indicators/Alert/Alert.stories.tsx +0 -39
  533. package/src/Indicators/Alert/Alert.tsx +0 -141
  534. package/src/Indicators/Alert/index.tsx +0 -1
  535. package/src/Indicators/Badge/Badge.spec.tsx +0 -74
  536. package/src/Indicators/Badge/Badge.stories.tsx +0 -40
  537. package/src/Indicators/Badge/Badge.tsx +0 -75
  538. package/src/Indicators/Badge/index.tsx +0 -1
  539. package/src/Indicators/InformationBox/InformationBox.spec.tsx +0 -36
  540. package/src/Indicators/InformationBox/InformationBox.tsx +0 -98
  541. package/src/Indicators/InformationBox/InformationBoxt.stories.tsx +0 -29
  542. package/src/Indicators/InformationBox/index.tsx +0 -1
  543. package/src/Indicators/Status/Status.spec.tsx +0 -47
  544. package/src/Indicators/Status/Status.stories.tsx +0 -16
  545. package/src/Indicators/Status/Status.tsx +0 -65
  546. package/src/Indicators/Status/index.tsx +0 -1
  547. package/src/Indicators/Tag/Tag.spec.tsx +0 -39
  548. package/src/Indicators/Tag/Tag.stories.tsx +0 -33
  549. package/src/Indicators/Tag/Tag.tsx +0 -55
  550. package/src/Indicators/Tag/index.tsx +0 -1
  551. package/src/Indicators/Toast/Toast.spec.tsx +0 -18
  552. package/src/Indicators/Toast/Toast.stories.tsx +0 -32
  553. package/src/Indicators/Toast/Toast.tsx +0 -76
  554. package/src/Indicators/Toast/index.tsx +0 -1
  555. package/src/Indicators/Tooltip/Tooltip.spec.tsx +0 -18
  556. package/src/Indicators/Tooltip/Tooltip.stories.tsx +0 -33
  557. package/src/Indicators/Tooltip/Tooltip.tsx +0 -80
  558. package/src/Indicators/Tooltip/index.tsx +0 -1
  559. package/src/Indicators/Tooltip/style.scss +0 -72
  560. package/src/Indicators/index.ts +0 -7
  561. package/src/Layout/ActionBar/ActionBar.spec.tsx +0 -20
  562. package/src/Layout/ActionBar/ActionBar.stories.tsx +0 -42
  563. package/src/Layout/ActionBar/ActionBar.tsx +0 -89
  564. package/src/Layout/ActionBar/index.tsx +0 -1
  565. package/src/Layout/Box/Box.spec.tsx +0 -73
  566. package/src/Layout/Box/Box.stories.tsx +0 -165
  567. package/src/Layout/Box/Box.tsx +0 -81
  568. package/src/Layout/Box/Components/Content/BoxContent.spec.tsx +0 -20
  569. package/src/Layout/Box/Components/Content/BoxContent.stories.tsx +0 -23
  570. package/src/Layout/Box/Components/Content/BoxContent.tsx +0 -26
  571. package/src/Layout/Box/Components/Header/BoxHeader.spec.tsx +0 -22
  572. package/src/Layout/Box/Components/Header/BoxHeader.stories.tsx +0 -32
  573. package/src/Layout/Box/Components/Header/BoxHeader.tsx +0 -93
  574. package/src/Layout/Box/Components/Separator/BoxSeparator.spec.tsx +0 -20
  575. package/src/Layout/Box/Components/Separator/BoxSeparator.stories.tsx +0 -30
  576. package/src/Layout/Box/Components/Separator/BoxSeparator.tsx +0 -19
  577. package/src/Layout/Box/Components/utils.ts +0 -50
  578. package/src/Layout/Box/index.tsx +0 -1
  579. package/src/Layout/Container/Container.spec.tsx +0 -22
  580. package/src/Layout/Container/Container.stories.tsx +0 -51
  581. package/src/Layout/Container/Container.tsx +0 -42
  582. package/src/Layout/Container/index.tsx +0 -1
  583. package/src/Layout/ListActions/ListActions.spec.tsx +0 -23
  584. package/src/Layout/ListActions/ListActions.stories.tsx +0 -71
  585. package/src/Layout/ListActions/ListActions.tsx +0 -149
  586. package/src/Layout/ListActions/index.tsx +0 -1
  587. package/src/Layout/Sidebar/Item.tsx +0 -106
  588. package/src/Layout/Sidebar/ItemSub.tsx +0 -42
  589. package/src/Layout/Sidebar/Sidebar.stories.tsx +0 -25
  590. package/src/Layout/Sidebar/Sidebar.tsx +0 -51
  591. package/src/Layout/Sidebar/index.tsx +0 -3
  592. package/src/Layout/Topbar/Topbar.stories.tsx +0 -18
  593. package/src/Layout/Topbar/Topbar.tsx +0 -43
  594. package/src/Layout/Topbar/index.tsx +0 -1
  595. package/src/Layout/constants.ts +0 -4
  596. package/src/Layout/index.ts +0 -6
  597. package/src/Navigation/Breadcrumb/Breadcrumb.spec.tsx +0 -75
  598. package/src/Navigation/Breadcrumb/Breadcrumb.stories.tsx +0 -79
  599. package/src/Navigation/Breadcrumb/index.tsx +0 -153
  600. package/src/Navigation/Pagination/Pagination.spec.tsx +0 -45
  601. package/src/Navigation/Pagination/Pagination.stories.tsx +0 -39
  602. package/src/Navigation/Pagination/PaginationInfo.tsx +0 -70
  603. package/src/Navigation/Pagination/PaginationNav.tsx +0 -122
  604. package/src/Navigation/Pagination/index.tsx +0 -44
  605. package/src/Navigation/Stepper/Stepper.spec.tsx +0 -68
  606. package/src/Navigation/Stepper/Stepper.stories.tsx +0 -68
  607. package/src/Navigation/Stepper/index.tsx +0 -97
  608. package/src/Navigation/index.ts +0 -2
  609. package/src/index.ts +0 -6
  610. package/src/tailwind.scss +0 -9
  611. package/src/utils/index.ts +0 -19
  612. package/src/utils/testConstants.ts +0 -3
@@ -1,169 +0,0 @@
1
- import React from 'react'
2
-
3
- import { TableListItemProps } from './TableListItem.interface'
4
- import { TableListItem } from './TableListItem'
5
- import { TableListItemLoading } from './TableListItemLoading'
6
-
7
- const groupTitleMobileClass = `before:block before:absolute before:h-0 before:w-5 before:-top-px before:-left-5 before:border-t before:border-primary-bold before:border-opacity-10 after:block after:absolute after:h-0 after:w-5 after:-top-px after:-right-5 after:border-t after:border-primary-bold after:border-opacity-10`
8
-
9
- const TableListComponent = ({
10
- className = '',
11
- itemWrapper,
12
- items = [],
13
- isLoading = false,
14
- empty = {
15
- title: 'Nenhum registro encontrado',
16
- },
17
- withHover = false,
18
- isInsideContainer = false,
19
- }: TableListProps) => {
20
- const itemsMemoized = React.useMemo(() => {
21
- const groups = items.reduce(
22
- (
23
- groups: {
24
- [key: string]: TableListItemProps[]
25
- },
26
- item
27
- ) => {
28
- const groupTitle =
29
- item.timestampDate || item.timestampTime || 'no_title'
30
- if (!groups[groupTitle]) {
31
- groups[groupTitle] = []
32
- }
33
- groups[groupTitle].push(item)
34
- return groups
35
- },
36
- {}
37
- )
38
-
39
- return Object.keys(groups).map((groupTitle) => {
40
- return {
41
- title: groupTitle,
42
- items: groups[groupTitle],
43
- }
44
- })
45
- }, [items])
46
-
47
- return (
48
- <div className={`table-list tracking-tight ${className}`}>
49
- {isLoading ? (
50
- <div className="table-list-loading">
51
- <TableListItemLoading />
52
- <TableListItemLoading />
53
- <TableListItemLoading />
54
- <TableListItemLoading />
55
- </div>
56
- ) : !itemsMemoized || !itemsMemoized.length ? (
57
- <div className="table-list-empty flex flex-col items-center justify-center gap-5 min-h-[40vh] lg:min-h-[60vh] max-w-sm mx-auto px-4">
58
- {empty.illustration && (
59
- <div className="table-list-empty-illustration text-center">
60
- {empty.illustration}
61
- </div>
62
- )}
63
- <div className="table-list-empty-title text-center text-f4 font-semibold text-primary-bold leading-7">
64
- {empty.title}
65
- </div>
66
- {empty.subTitle && (
67
- <div className="table-list-empty-subtitle text-center text-f6 text-on-base-2 leading-6 -mt-1">
68
- {empty.subTitle}
69
- </div>
70
- )}
71
- {empty.action && (
72
- <div className="table-list-empty-action text-center">
73
- {empty.action}
74
- </div>
75
- )}
76
- </div>
77
- ) : (
78
- itemsMemoized.map((group, indexGroup) => {
79
- return (
80
- <div key={`group-items-${indexGroup}`} className="table-list-group">
81
- {group.title && group.title !== 'no_title' && (
82
- <div
83
- className={`table-list-title relative lg:hidden border-primary-bold border-opacity-10 ${
84
- indexGroup !== 0
85
- ? `border-t ${
86
- isInsideContainer ? groupTitleMobileClass : ''
87
- }`
88
- : ''
89
- }`}
90
- >
91
- <span
92
- className={`text-f5 text-on-base-2 leading-4 break-words inline-block pt-6 pb-2`}
93
- >
94
- {group.title}
95
- </span>
96
- </div>
97
- )}
98
- <div className="group-items">
99
- {group.items.map((item, indexItem) => {
100
- return (
101
- <TableListItem
102
- key={`group-item-${indexItem}`}
103
- forceBorderDesktop={indexItem === 0 && indexGroup !== 0}
104
- title={item.title}
105
- description={item.description}
106
- timestampTime={item.timestampTime}
107
- timestampDate={item.timestampDate}
108
- itemWrapper={itemWrapper}
109
- itemWrapperProps={item.itemWrapperProps}
110
- withIcon={item.withIcon}
111
- append={item.append}
112
- withHover={withHover}
113
- isInsideContainer={isInsideContainer}
114
- />
115
- )
116
- })}
117
- </div>
118
- </div>
119
- )
120
- })
121
- )}
122
- </div>
123
- )
124
- }
125
-
126
- export const TableList = React.memo(TableListComponent)
127
-
128
- export interface TableListProps
129
- extends Pick<
130
- TableListItemProps,
131
- 'withHover' | 'isInsideContainer' | 'itemWrapper'
132
- > {
133
- /**
134
- * Custom class name
135
- * */
136
- className?: string
137
- /**
138
- * Items of the TableList
139
- */
140
- items?: Omit<
141
- TableListItemProps,
142
- 'forceBorderDesktop' | 'itemWrapper' | 'withHover'
143
- >[]
144
- /** TableList is loading
145
- * @default false
146
- */
147
- isLoading?: boolean
148
- /**
149
- * Content to show when TableList is empty
150
- */
151
- empty?: {
152
- /** Title when is empty
153
- * @default 'Nenhum registro encontrado'
154
- */
155
- title?: string | React.ReactNode
156
- /**
157
- * Subtitle when is empty
158
- */
159
- subTitle?: string | React.ReactNode
160
- /**
161
- * Illustration or icon for when is empty
162
- */
163
- illustration?: React.ReactNode
164
- /**
165
- * Action (button) for when is empty
166
- */
167
- action?: React.ReactNode
168
- }
169
- }
@@ -1,69 +0,0 @@
1
- import { TippyProps } from '@tippyjs/react'
2
- import { IconProps } from '../../Icons'
3
-
4
- export type TableListItemWrapperProp =
5
- | React.ComponentClass<any>
6
- | React.FunctionComponent<any>
7
-
8
- export interface TableListItemProps {
9
- /**
10
- * Title of the item
11
- */
12
- title: string | React.ReactNode
13
- /**
14
- * Description that appears above the title
15
- */
16
- description?: string | React.ReactNode
17
- /**
18
- * Timestamp of the item, usually in HH:mm
19
- */
20
- timestampTime?: string
21
- /**
22
- * Timestamp of the item, usually in dd/mm/yyyy
23
- */
24
- timestampDate?: string
25
- /**
26
- * Addittional content at item
27
- */
28
- append?: string | React.ReactNode
29
- /**
30
- * Icon to show at item
31
- */
32
- withIcon?: {
33
- /**
34
- * Classes with text-color and background of icon
35
- */
36
- class?: string
37
- /**
38
- * Icon to use
39
- */
40
- icon?: IconProps['icon']
41
- /**
42
- * Tooltip to use
43
- */
44
- tooltip?: {
45
- message: string
46
- placement?: TippyProps['placement']
47
- }
48
- }
49
- /** Force border top at desktop even if is first item
50
- * @default false
51
- */
52
- forceBorderDesktop?: boolean
53
- /** Show hover effect
54
- * @default false
55
- */
56
- withHover?: boolean
57
- /** Adds hover effect and mobile border with negative margin to fulfill container padding
58
- * @default false
59
- */
60
- isInsideContainer?: boolean
61
- /**
62
- * Props of the `item.itemWrapper`
63
- */
64
- itemWrapperProps?: { [key: string]: unknown }
65
- /**
66
- * Component to wrap item. Usually an <a> or related. Props of each item are placed at `items.itemWrapperProps`
67
- */
68
- itemWrapper?: TableListItemWrapperProp
69
- }
@@ -1,75 +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 "./TableListItem.stories"
5
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
6
-
7
- const { Item } = composeStories(stories)
8
-
9
- describe(specTitle('TableListItem tests'), () => {
10
-
11
- it('Default', () => {
12
- mount(<Item />)
13
- cy.get('.table-item')
14
- .should('exist')
15
- .should('not.have.class', 'lg:first:border-t')
16
- .find('.table-item-wrapper')
17
- .should('exist')
18
- cy.get('.table-item .table-item-icon')
19
- .should('exist')
20
- .find('.table-item-icon-background')
21
- .should('have.class', 'w-8')
22
- .should('have.class', 'bg-warning-light')
23
- .find('svg')
24
- .should('exist')
25
- cy.get('.table-item .table-item-content')
26
- .find('.table-item-title')
27
- .should('exist')
28
- .contains('devolvida')
29
- cy.get('.table-item .table-item-content')
30
- .find('.table-item-description')
31
- .should('exist')
32
- .contains('Cartão')
33
- cy.get('.table-item .table-item-timestamp-time')
34
- .should('exist')
35
- .contains('19:45')
36
- cy.get('.table-item .table-item-timestamp-date')
37
- .should('exist')
38
- .contains('dezembro')
39
- })
40
-
41
- it('Force Border Desktop', () => {
42
- mount(<Item forceBorderDesktop={true} />)
43
- cy.get('.table-item')
44
- .should('have.class', 'lg:first:border-t')
45
- })
46
-
47
- it('Append', () => {
48
- mount(<Item append={'External'} />)
49
- cy.get('.table-item .table-item-append')
50
- .should('exist')
51
- .contains('External')
52
- })
53
-
54
- it('Without', () => {
55
- mount(<Item withIcon={undefined} />)
56
- cy.get('.table-item .table-item-icon')
57
- .should('not.exist')
58
-
59
- mount(<Item description={undefined} />)
60
- cy.get('.table-item .table-item-description')
61
- .should('not.exist')
62
-
63
- mount(<Item timestampDate={undefined} />)
64
- cy.get('.table-item .table-item-timestamp-date')
65
- .should('not.exist')
66
-
67
- mount(<Item timestampTime={undefined} />)
68
- cy.get('.table-item .table-item-timestamp-time')
69
- .should('not.exist')
70
-
71
- mount(<Item append={undefined} />)
72
- cy.get('.table-item .table-item-append')
73
- .should('not.exist')
74
- })
75
- })
@@ -1,44 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
- import { withDesign } from 'storybook-addon-designs'
4
-
5
- import { TableListItemProps } from './TableListItem.interface'
6
- import { TableListItem } from './TableListItem'
7
-
8
- const CellLink = (props: any) => {
9
- const { href = '/', children, ...restProps } = props
10
- return (
11
- <a href={href} {...restProps}>{children}</a>
12
- )
13
- }
14
-
15
- export default {
16
- title: 'Components/TableList',
17
- component: TableListItem,
18
- decorators: [withDesign],
19
- parameters: {
20
- layout: 'padded',
21
- },
22
- args: {
23
- title: 'R$ 49,90 devolvida parcialmente',
24
- description: '#29102 - Daniela Cabral via Cartão de crédito',
25
- timestampTime: '19:45',
26
- timestampDate: '10 de dezembro',
27
- append: <span className="cursor hover:underline text-primary font-semibold">Ver mais</span>,
28
- itemWrapperProps: {
29
- href: '#a'
30
- },
31
- withIcon: {
32
- class: 'bg-warning-light text-warning-dark',
33
- icon: 'clock',
34
- },
35
- forceBorderDesktop: false,
36
- withHover: true,
37
- isInsideContainer: true,
38
- itemWrapper: CellLink,
39
- },
40
- } as Meta
41
-
42
- const Template: Story<TableListItemProps> = (args) => <TableListItem {...args} />
43
-
44
- export const Item = Template.bind({})
@@ -1,79 +0,0 @@
1
- import React from 'react'
2
-
3
- import { Icon } from '../../Icons'
4
- import { Tooltip } from '../../Indicators'
5
- import { TableListItemProps } from './TableListItem.interface'
6
- import { TableListItemWrapper } from './TableListItemWrapper'
7
-
8
- export const TableListItem: React.FunctionComponent<TableListItemProps> = ({
9
- forceBorderDesktop = false,
10
- title,
11
- description,
12
- timestampTime,
13
- timestampDate,
14
- itemWrapper,
15
- itemWrapperProps,
16
- withHover = false,
17
- isInsideContainer = false,
18
- withIcon,
19
- append,
20
- }) => {
21
- return (
22
- <div
23
- className={`table-item border-primary-bold border-opacity-10 border-t first:border-t-0 ${
24
- forceBorderDesktop ? 'lg:first:border-t' : ''
25
- }`}
26
- >
27
- <TableListItemWrapper
28
- Wrapper={itemWrapper}
29
- props={itemWrapperProps}
30
- withHover={withHover}
31
- isInsideContainer={isInsideContainer}
32
- >
33
- {withIcon && (
34
- <div className="table-item-icon flex items-center justify-center flex-none mr-4">
35
- <div
36
- className={`table-item-icon-background h-8 w-8 flex items-center justify-center rounded ${
37
- withIcon.class || ''
38
- }`}
39
- >
40
- {withIcon.tooltip ? (
41
- <Tooltip
42
- content={withIcon.tooltip.message}
43
- placement={withIcon.tooltip.placement}
44
- >
45
- <span>
46
- <Icon icon={withIcon.icon || 'minus'} block size={5} />
47
- </span>
48
- </Tooltip>
49
- ) : (
50
- <Icon icon={withIcon.icon || 'minus'} block size={5} />
51
- )}
52
- </div>
53
- </div>
54
- )}
55
- <div className="table-item-content flex flex-col justify-center flex-auto gap-1.5 min-w-0 w-full">
56
- <div className="table-item-title text-f6 font-semibold">{title}</div>
57
- {description && (
58
- <div className="table-item-description">{description}</div>
59
- )}
60
- </div>
61
- {(timestampTime || timestampDate || append) && (
62
- <div className="table-item-timestamp-append flex flex-col justify-center items-end shrink-0 gap-1.5 ml-4 min-w-0 max-w-[50%] text-right">
63
- {timestampTime && (
64
- <div className="table-item-timestamp-time w-full">
65
- {timestampTime}
66
- </div>
67
- )}
68
- {timestampDate && (
69
- <div className="table-item-timestamp-date w-full hidden lg:block">
70
- {timestampDate}
71
- </div>
72
- )}
73
- {append && <div className="table-item-append w-full">{append}</div>}
74
- </div>
75
- )}
76
- </TableListItemWrapper>
77
- </div>
78
- )
79
- }
@@ -1,19 +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 "./TableListItemLoading.stories"
5
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
6
-
7
- const { ItemLoading } = composeStories(stories)
8
-
9
- describe(specTitle('TableListItemLoading tests'), () => {
10
-
11
- it('Default', () => {
12
- mount(<ItemLoading />)
13
- cy.get('.table-item.table-item-loading')
14
- .should('exist')
15
- .find('.table-item-content .table-item-title .animate-pulse')
16
- .should('exist')
17
- })
18
-
19
- })
@@ -1,22 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
- import { withDesign } from 'storybook-addon-designs'
4
-
5
- import { TableListItemProps } from './TableListItem.interface'
6
- import { TableListItemLoading } from './TableListItemLoading'
7
-
8
- export default {
9
- title: 'Components/TableList',
10
- component: TableListItemLoading,
11
- decorators: [withDesign],
12
- parameters: {
13
- layout: 'padded',
14
- },
15
- args: {
16
- forceBorderDesktop: false,
17
- },
18
- } as Meta
19
-
20
- const Template: Story<Pick<TableListItemProps, 'forceBorderDesktop'>> = (args) => <TableListItemLoading {...args} />
21
-
22
- export const ItemLoading = Template.bind({})
@@ -1,40 +0,0 @@
1
- import React from 'react'
2
-
3
- import { LoadingPlaceholder } from '../LoadingPlaceholder'
4
- import { TableListItemProps } from './TableListItem.interface'
5
- import { TableListItemWrapper } from './TableListItemWrapper'
6
-
7
- export const TableListItemLoading: React.FunctionComponent<
8
- Pick<TableListItemProps, 'forceBorderDesktop'>
9
- > = ({ forceBorderDesktop = false }) => {
10
- return (
11
- <div
12
- className={`table-item table-item-loading border-primary-bold border-opacity-10 border-t first:border-t-0 ${
13
- forceBorderDesktop ? 'lg:first:border-t' : ''
14
- }`}
15
- >
16
- <TableListItemWrapper>
17
- <div className="table-item-icon flex items-center justify-center flex-none mr-4">
18
- <div
19
- className={`table-item-icon-background h-8 w-8 flex items-center justify-center rounded`}
20
- >
21
- <LoadingPlaceholder className="w-full" />
22
- </div>
23
- </div>
24
- <div className="table-item-content flex flex-col justify-center flex-auto gap-1.5 min-w-0 w-full">
25
- <div className="table-item-title text-f6 font-semibold">
26
- <LoadingPlaceholder className="w-2/3" />
27
- </div>
28
- <div className="table-item-description">
29
- <LoadingPlaceholder className="w-1/3" />
30
- </div>
31
- </div>
32
- <div className="table-item-timestamp flex flex-col justify-center items-end shrink-0 gap-1.5 ml-4 min-w-0 max-w-[50%] text-right">
33
- <div className="table-item-timestamp-time w-full">
34
- <LoadingPlaceholder className="w-16" />
35
- </div>
36
- </div>
37
- </TableListItemWrapper>
38
- </div>
39
- )
40
- }
@@ -1,33 +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 "./TableListItemWrapper.stories"
5
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
6
-
7
- const { ItemWrapper } = composeStories(stories)
8
-
9
- describe(specTitle('TableListItemWrapper tests'), () => {
10
-
11
- it('Default', () => {
12
- mount(<ItemWrapper withHover={false} isInsideContainer={false} />)
13
- cy.get('a.table-item-wrapper')
14
- .should('exist')
15
- .should('have.attr', 'href', '#a')
16
- .should('have.class', 'flex relative')
17
- .should('not.have.class', 'hover:bg-base-2 before:hover:block')
18
- .contains('Some randon content')
19
-
20
- })
21
-
22
- it('Without Wrapper', () => {
23
- mount(<ItemWrapper Wrapper={undefined} />)
24
- cy.get('div.table-item-wrapper').should('exist')
25
- })
26
-
27
- it('With Hover', () => {
28
- mount(<ItemWrapper withHover={true} isInsideContainer={true} Wrapper={undefined} />)
29
- cy.get('.table-item-wrapper').should('have.class', 'hover:bg-base-2 before:hover:block')
30
- cy.get('.table-item-wrapper').should('have.class', 'after:hover:block')
31
- })
32
-
33
- })
@@ -1,38 +0,0 @@
1
- import React from 'react'
2
- import { Story, Meta } from '@storybook/react'
3
- import { withDesign } from 'storybook-addon-designs'
4
-
5
- import { TableListItemWrapper, TableListItemWrapperProps } from './TableListItemWrapper'
6
-
7
- const CellLink = (props: any) => {
8
- const { href = '/', children, ...restProps } = props
9
- return (
10
- <a href={href} {...restProps}>{children}</a>
11
- )
12
- }
13
-
14
- export default {
15
- title: 'Components/TableList',
16
- component: TableListItemWrapper,
17
- decorators: [withDesign],
18
- parameters: {
19
- layout: 'padded',
20
- },
21
- args: {
22
- Wrapper: CellLink,
23
- children: (
24
- <div>
25
- Some randon content
26
- </div>
27
- ),
28
- props: {
29
- href: '#a'
30
- },
31
- withHover: true,
32
- isInsideContainer: true
33
- },
34
- } as Meta
35
-
36
- const Template: Story<TableListItemWrapperProps> = (args) => <TableListItemWrapper {...args} />
37
-
38
- export const ItemWrapper = Template.bind({})
@@ -1,40 +0,0 @@
1
- import React from 'react'
2
-
3
- import { TableListItemWrapperProp } from './TableListItem.interface'
4
-
5
- const ItemWrapperClasses = `flex relative py-6 text-f7 leading-4 break-words no-underline`
6
- const ItemWrapperClassesContainerHover = `before:hover:block before:hover:absolute before:hover:h-full before:hover:w-5 lg:before:hover:w-8 before:hover:top-0 before:hover:-left-5 lg:before:hover:-left-8 before:hover:bg-base-2 after:hover:block after:hover:absolute after:hover:h-full after:hover:w-5 lg:after:hover:w-8 after:hover:top-0 after:hover:-right-5 lg:after:hover:-right-8 after:hover:bg-base-2`
7
-
8
- const DefaultWrapper = (props: any) => {
9
- const { children, ...restProps } = props
10
- return <div {...restProps}>{children}</div>
11
- }
12
-
13
- export const TableListItemWrapper = ({
14
- Wrapper = DefaultWrapper,
15
- props = {},
16
- children,
17
- withHover = false,
18
- isInsideContainer = false,
19
- }: TableListItemWrapperProps) => (
20
- <Wrapper
21
- className={`table-item-wrapper ${ItemWrapperClasses} ${
22
- withHover
23
- ? `hover:bg-base-2 ${
24
- isInsideContainer ? ItemWrapperClassesContainerHover : ''
25
- }`
26
- : ''
27
- }`}
28
- {...props}
29
- >
30
- {children}
31
- </Wrapper>
32
- )
33
-
34
- export interface TableListItemWrapperProps {
35
- Wrapper?: TableListItemWrapperProp
36
- children: React.ReactNode
37
- props?: { [key: string]: unknown }
38
- withHover?: boolean
39
- isInsideContainer?: boolean
40
- }
@@ -1,4 +0,0 @@
1
- export * from './TableList'
2
- export * from './TableListItem'
3
- export * from './TableListItem.interface'
4
- export * from './TableListItemLoading'
@@ -1,38 +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 "./Tabs.stories"
5
-
6
- const { Default } = composeStories(stories)
7
-
8
- const specTitle = require('cypress-sonarqube-reporter/specTitle');
9
- describe(specTitle('Tabs tests'), () => {
10
-
11
- it('Default', () => {
12
- mount(<Default />)
13
- let alerted = ''
14
- cy.on('window:alert', msg => alerted = msg)
15
-
16
- cy.get('.tabs .tabs-item')
17
- .should('have.length', 4)
18
- .first().within(() => {
19
- cy.get('span').contains('Pedidos')
20
- cy.get('span').should('have.class', 'border-primary')
21
- })
22
- cy.get('.tabs .tabs-item').last()
23
- .click().then(() => expect(alerted).to.match(/vendas/))
24
- cy.get('.tabs .tabs-item').last()
25
- .should('have.class', 'tabs-item-active')
26
- .within(() => {
27
- cy.get('span').contains('Vendas')
28
- })
29
- })
30
-
31
- it('Active', () => {
32
- mount(<Default activeItem="cupons" />)
33
- cy.get('.tabs .tabs-item.tabs-item-active')
34
- .should('have.length', 1)
35
- .get('span').contains('Cupons de desconto')
36
- })
37
-
38
- })