karsten-design-system 1.0.13 → 1.0.15

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 (272) hide show
  1. package/README.md +207 -207
  2. package/dist/.storybook/index.css.js +1 -1
  3. package/dist/.storybook/index.css.js.map +0 -0
  4. package/dist/_virtual/jsx-runtime.js +0 -0
  5. package/dist/_virtual/jsx-runtime.js.map +0 -0
  6. package/dist/_virtual/jsx-runtime2.js +0 -0
  7. package/dist/_virtual/jsx-runtime2.js.map +0 -0
  8. package/dist/_virtual/react-jsx-runtime.development.js +0 -0
  9. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -0
  10. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  11. package/dist/_virtual/react-jsx-runtime.production.js.map +1 -0
  12. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -0
  13. package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -0
  14. package/dist/assets/icons/bell.js +0 -0
  15. package/dist/assets/icons/bell.js.map +0 -0
  16. package/dist/assets/icons/circleCheck.js +0 -0
  17. package/dist/assets/icons/circleCheck.js.map +0 -0
  18. package/dist/assets/icons/close.js +0 -0
  19. package/dist/assets/icons/close.js.map +0 -0
  20. package/dist/assets/icons/dashboard.js +0 -0
  21. package/dist/assets/icons/dashboard.js.map +0 -0
  22. package/dist/assets/icons/error.js +0 -0
  23. package/dist/assets/icons/error.js.map +0 -0
  24. package/dist/assets/icons/filter.js +0 -0
  25. package/dist/assets/icons/filter.js.map +0 -0
  26. package/dist/assets/icons/home.js +0 -0
  27. package/dist/assets/icons/home.js.map +0 -0
  28. package/dist/assets/icons/info.js +0 -0
  29. package/dist/assets/icons/info.js.map +0 -0
  30. package/dist/assets/icons/menu.js +0 -0
  31. package/dist/assets/icons/menu.js.map +0 -0
  32. package/dist/assets/icons/success.js +0 -0
  33. package/dist/assets/icons/success.js.map +0 -0
  34. package/dist/assets/icons/text.js +0 -0
  35. package/dist/assets/icons/text.js.map +0 -0
  36. package/dist/assets/icons/trash.js +0 -0
  37. package/dist/assets/icons/trash.js.map +0 -0
  38. package/dist/assets/logoSmall.js +0 -0
  39. package/dist/assets/logoSmall.js.map +0 -0
  40. package/dist/index.js +0 -0
  41. package/dist/index.js.map +0 -0
  42. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -0
  43. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -0
  44. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -0
  45. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -0
  46. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -0
  47. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -0
  48. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -0
  49. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -0
  50. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -0
  51. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -0
  52. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -0
  53. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -0
  54. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -0
  55. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -0
  56. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -0
  57. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -0
  58. package/dist/node_modules/date-fns/constants.js +0 -0
  59. package/dist/node_modules/date-fns/constants.js.map +0 -0
  60. package/dist/node_modules/date-fns/constructFrom.js +0 -0
  61. package/dist/node_modules/date-fns/constructFrom.js.map +0 -0
  62. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -0
  63. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -0
  64. package/dist/node_modules/date-fns/format.js +0 -0
  65. package/dist/node_modules/date-fns/format.js.map +0 -0
  66. package/dist/node_modules/date-fns/getDayOfYear.js +0 -0
  67. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -0
  68. package/dist/node_modules/date-fns/getISOWeek.js +0 -0
  69. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -0
  70. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -0
  71. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -0
  72. package/dist/node_modules/date-fns/getWeek.js +0 -0
  73. package/dist/node_modules/date-fns/getWeek.js.map +0 -0
  74. package/dist/node_modules/date-fns/getWeekYear.js +0 -0
  75. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -0
  76. package/dist/node_modules/date-fns/isDate.js +0 -0
  77. package/dist/node_modules/date-fns/isDate.js.map +0 -0
  78. package/dist/node_modules/date-fns/isValid.js +0 -0
  79. package/dist/node_modules/date-fns/isValid.js.map +0 -0
  80. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -0
  81. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -0
  82. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -0
  83. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -0
  84. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -0
  85. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -0
  86. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -0
  87. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -0
  88. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -0
  89. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -0
  90. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -0
  91. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -0
  92. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -0
  93. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -0
  94. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -0
  95. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -0
  96. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -0
  97. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -0
  98. package/dist/node_modules/date-fns/locale/en-US.js +0 -0
  99. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -0
  100. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js +0 -0
  101. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js.map +0 -0
  102. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js +0 -0
  103. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js.map +0 -0
  104. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js +0 -0
  105. package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js.map +0 -0
  106. package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.js +0 -0
  107. package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.js.map +0 -0
  108. package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.js +0 -0
  109. package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.js.map +0 -0
  110. package/dist/node_modules/date-fns/locale/pt-BR.js +0 -0
  111. package/dist/node_modules/date-fns/locale/pt-BR.js.map +0 -0
  112. package/dist/node_modules/date-fns/startOfDay.js +0 -0
  113. package/dist/node_modules/date-fns/startOfDay.js.map +0 -0
  114. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -0
  115. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -0
  116. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -0
  117. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -0
  118. package/dist/node_modules/date-fns/startOfWeek.js +0 -0
  119. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -0
  120. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -0
  121. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -0
  122. package/dist/node_modules/date-fns/startOfYear.js +0 -0
  123. package/dist/node_modules/date-fns/startOfYear.js.map +0 -0
  124. package/dist/node_modules/date-fns/toDate.js +0 -0
  125. package/dist/node_modules/date-fns/toDate.js.map +0 -0
  126. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -0
  127. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -0
  128. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +45 -0
  129. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -0
  130. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -0
  131. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -0
  132. package/dist/node_modules/react/jsx-runtime.js +0 -0
  133. package/dist/node_modules/react/jsx-runtime.js.map +0 -0
  134. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -0
  135. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -0
  136. package/dist/stories/components/accordion.js +0 -0
  137. package/dist/stories/components/accordion.js.map +0 -0
  138. package/dist/stories/components/autoComplete.js +0 -0
  139. package/dist/stories/components/autoComplete.js.map +0 -0
  140. package/dist/stories/components/breadcrumb.js +0 -0
  141. package/dist/stories/components/breadcrumb.js.map +0 -0
  142. package/dist/stories/components/button.js +0 -0
  143. package/dist/stories/components/button.js.map +0 -0
  144. package/dist/stories/components/card.js +0 -0
  145. package/dist/stories/components/card.js.map +0 -0
  146. package/dist/stories/components/chart.js +0 -0
  147. package/dist/stories/components/chart.js.map +0 -0
  148. package/dist/stories/components/dialog.js +0 -0
  149. package/dist/stories/components/dialog.js.map +0 -0
  150. package/dist/stories/components/divider.js +0 -0
  151. package/dist/stories/components/divider.js.map +0 -0
  152. package/dist/stories/components/filterButton.js +0 -0
  153. package/dist/stories/components/filterButton.js.map +0 -0
  154. package/dist/stories/components/header.js +0 -0
  155. package/dist/stories/components/header.js.map +0 -0
  156. package/dist/stories/components/iconButton.js +0 -0
  157. package/dist/stories/components/iconButton.js.map +0 -0
  158. package/dist/stories/components/infoCard.js +0 -0
  159. package/dist/stories/components/infoCard.js.map +0 -0
  160. package/dist/stories/components/input.js +0 -0
  161. package/dist/stories/components/input.js.map +0 -0
  162. package/dist/stories/components/internalMenu.js +0 -0
  163. package/dist/stories/components/internalMenu.js.map +0 -0
  164. package/dist/stories/components/link.js +0 -0
  165. package/dist/stories/components/link.js.map +0 -0
  166. package/dist/stories/components/megaMenu.js +0 -0
  167. package/dist/stories/components/megaMenu.js.map +0 -0
  168. package/dist/stories/components/notification.js +0 -0
  169. package/dist/stories/components/notification.js.map +0 -0
  170. package/dist/stories/components/notificationItem.js +0 -0
  171. package/dist/stories/components/notificationItem.js.map +0 -0
  172. package/dist/stories/components/paginator.js +0 -0
  173. package/dist/stories/components/paginator.js.map +0 -0
  174. package/dist/stories/components/radioButton.js +0 -0
  175. package/dist/stories/components/radioButton.js.map +0 -0
  176. package/dist/stories/components/select.js +0 -0
  177. package/dist/stories/components/select.js.map +0 -0
  178. package/dist/stories/components/sidebar.js +0 -0
  179. package/dist/stories/components/sidebar.js.map +0 -0
  180. package/dist/stories/components/skeleton.js +0 -0
  181. package/dist/stories/components/skeleton.js.map +0 -0
  182. package/dist/stories/components/spinner.js +0 -0
  183. package/dist/stories/components/spinner.js.map +0 -0
  184. package/dist/stories/components/table.js +2 -2
  185. package/dist/stories/components/table.js.map +1 -1
  186. package/dist/stories/components/toast.js +0 -0
  187. package/dist/stories/components/toast.js.map +0 -0
  188. package/dist/types/assets/icons/bell.d.ts +0 -0
  189. package/dist/types/assets/icons/cart.d.ts +0 -0
  190. package/dist/types/assets/icons/check.d.ts +0 -0
  191. package/dist/types/assets/icons/circleCheck.d.ts +0 -0
  192. package/dist/types/assets/icons/clock.d.ts +0 -0
  193. package/dist/types/assets/icons/close.d.ts +0 -0
  194. package/dist/types/assets/icons/dashboard.d.ts +0 -0
  195. package/dist/types/assets/icons/error.d.ts +0 -0
  196. package/dist/types/assets/icons/filter.d.ts +0 -0
  197. package/dist/types/assets/icons/grayInfo.d.ts +0 -0
  198. package/dist/types/assets/icons/home/account.d.ts +0 -0
  199. package/dist/types/assets/icons/home/accountsReceivable.d.ts +0 -0
  200. package/dist/types/assets/icons/home/box.d.ts +0 -0
  201. package/dist/types/assets/icons/home/circleWithDollarSign.d.ts +0 -0
  202. package/dist/types/assets/icons/home/computer.d.ts +0 -0
  203. package/dist/types/assets/icons/home/credit.d.ts +0 -0
  204. package/dist/types/assets/icons/home/payments.d.ts +0 -0
  205. package/dist/types/assets/icons/home/pieChart.d.ts +0 -0
  206. package/dist/types/assets/icons/home/profitability.d.ts +0 -0
  207. package/dist/types/assets/icons/home.d.ts +0 -0
  208. package/dist/types/assets/icons/info.d.ts +0 -0
  209. package/dist/types/assets/icons/menu.d.ts +0 -0
  210. package/dist/types/assets/icons/success.d.ts +0 -0
  211. package/dist/types/assets/icons/text.d.ts +0 -0
  212. package/dist/types/assets/icons/trash.d.ts +0 -0
  213. package/dist/types/assets/logo.d.ts +0 -0
  214. package/dist/types/assets/logoSmall.d.ts +0 -0
  215. package/dist/types/hook/useToast.d.ts +0 -0
  216. package/dist/types/index.d.ts +0 -0
  217. package/dist/types/mock/internalMenu.d.ts +0 -0
  218. package/dist/types/mock/mockedComponente/mockedChart.d.ts +0 -0
  219. package/dist/types/mock/mockedComponente/mockedInternalMenu.d.ts +0 -0
  220. package/dist/types/mock/mockedComponente/notificationMocked.d.ts +0 -0
  221. package/dist/types/mock/mockedComponente/screenContainer.d.ts +0 -0
  222. package/dist/types/mock/notifications.d.ts +0 -0
  223. package/dist/types/mock/tableItems.d.ts +0 -0
  224. package/dist/types/stories/components/accordion.d.ts +0 -0
  225. package/dist/types/stories/components/autoComplete.d.ts +0 -0
  226. package/dist/types/stories/components/breadcrumb.d.ts +0 -0
  227. package/dist/types/stories/components/breadcrumb.stories.d.ts +0 -0
  228. package/dist/types/stories/components/button.d.ts +0 -0
  229. package/dist/types/stories/components/button.stories.d.ts +0 -0
  230. package/dist/types/stories/components/card.d.ts +0 -0
  231. package/dist/types/stories/components/chart.d.ts +0 -0
  232. package/dist/types/stories/components/dateInput.d.ts +0 -0
  233. package/dist/types/stories/components/dialog.d.ts +0 -0
  234. package/dist/types/stories/components/divider.d.ts +0 -0
  235. package/dist/types/stories/components/filterButton.d.ts +0 -0
  236. package/dist/types/stories/components/header.d.ts +0 -0
  237. package/dist/types/stories/components/iconButton.d.ts +0 -0
  238. package/dist/types/stories/components/iconButton.stories.d.ts +0 -0
  239. package/dist/types/stories/components/icons.d.ts +0 -0
  240. package/dist/types/stories/components/infoCard.d.ts +0 -0
  241. package/dist/types/stories/components/input.d.ts +0 -0
  242. package/dist/types/stories/components/internalMenu.d.ts +0 -0
  243. package/dist/types/stories/components/link.d.ts +0 -0
  244. package/dist/types/stories/components/megaMenu.d.ts +0 -0
  245. package/dist/types/stories/components/megaMenu.stories.d.ts +0 -0
  246. package/dist/types/stories/components/notification.d.ts +0 -0
  247. package/dist/types/stories/components/notificationItem.d.ts +0 -0
  248. package/dist/types/stories/components/paginator.d.ts +0 -0
  249. package/dist/types/stories/components/radioButton.d.ts +0 -0
  250. package/dist/types/stories/components/select.d.ts +0 -0
  251. package/dist/types/stories/components/sidebar.d.ts +0 -0
  252. package/dist/types/stories/components/skeleton.d.ts +0 -0
  253. package/dist/types/stories/components/spinner.d.ts +0 -0
  254. package/dist/types/stories/components/spinner.stories.d.ts +0 -0
  255. package/dist/types/stories/components/table.d.ts +7 -4
  256. package/dist/types/stories/components/toast.d.ts +0 -0
  257. package/dist/types/stories/screens/accountsPayable.d.ts +0 -0
  258. package/dist/types/stories/screens/dashboard.d.ts +0 -0
  259. package/dist/types/stories/screens/home.d.ts +0 -0
  260. package/dist/types/stories/screens/sign-in.d.ts +0 -0
  261. package/dist/types/stories/screens/table.d.ts +0 -0
  262. package/dist/types/types/breadcrumbItems.d.ts +0 -0
  263. package/dist/types/types/index.d.ts +0 -0
  264. package/dist/types/types/internalMenu.d.ts +0 -0
  265. package/dist/types/types/megaMenuItems.d.ts +0 -0
  266. package/dist/types/types/notification.d.ts +0 -0
  267. package/dist/types/types/options.d.ts +0 -0
  268. package/dist/types/types/table.d.ts +0 -0
  269. package/dist/types/utils/sortData.d.ts +0 -0
  270. package/dist/utils/sortData.js +0 -0
  271. package/dist/utils/sortData.js.map +0 -0
  272. package/package.json +85 -85
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,45 @@
1
+ import { __exports as reactJsxRuntime_production } from '../../../_virtual/react-jsx-runtime.production.js';
2
+
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+
13
+ var hasRequiredReactJsxRuntime_production;
14
+
15
+ function requireReactJsxRuntime_production () {
16
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
17
+ hasRequiredReactJsxRuntime_production = 1;
18
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
19
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
20
+ function jsxProd(type, config, maybeKey) {
21
+ var key = null;
22
+ undefined !== maybeKey && (key = "" + maybeKey);
23
+ undefined !== config.key && (key = "" + config.key);
24
+ if ("key" in config) {
25
+ maybeKey = {};
26
+ for (var propName in config)
27
+ "key" !== propName && (maybeKey[propName] = config[propName]);
28
+ } else maybeKey = config;
29
+ config = maybeKey.ref;
30
+ return {
31
+ $$typeof: REACT_ELEMENT_TYPE,
32
+ type: type,
33
+ key: key,
34
+ ref: undefined !== config ? config : null,
35
+ props: maybeKey
36
+ };
37
+ }
38
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
39
+ reactJsxRuntime_production.jsx = jsxProd;
40
+ reactJsxRuntime_production.jsxs = jsxProd;
41
+ return reactJsxRuntime_production;
42
+ }
43
+
44
+ export { requireReactJsxRuntime_production as __require };
45
+ //# sourceMappingURL=react-jsx-runtime.production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-jsx-runtime.production.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.production.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAWA,CAAA,IAAI,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC;AACjE,GAAE,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;AACpD,CAAA,SAAS,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE;GACvC,IAAI,GAAG,GAAG,IAAI;GACd,SAAM,KAAK,QAAQ,KAAK,GAAG,GAAG,EAAE,GAAG,QAAQ,CAAC;AAC9C,GAAE,SAAM,KAAK,MAAM,CAAC,GAAG,KAAK,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC;AAClD,GAAE,IAAI,KAAK,IAAI,MAAM,EAAE;KACnB,QAAQ,GAAG,EAAE;AACjB,KAAI,KAAK,IAAI,QAAQ,IAAI,MAAM;AAC/B,OAAM,KAAK,KAAK,QAAQ,KAAK,QAAQ,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,MAAM;AAC1B,GAAE,MAAM,GAAG,QAAQ,CAAC,GAAG;AACvB,GAAE,OAAO;KACL,QAAQ,EAAE,kBAAkB;KAC5B,IAAI,EAAE,IAAI;KACV,GAAG,EAAE,GAAG;KACR,GAAG,EAAE,SAAM,KAAK,MAAM,GAAG,MAAM,GAAG,IAAI;AAC1C,KAAI,KAAK,EAAE;IACR;AACH;AACA,CAAA,0BAAA,CAAA,QAAgB,GAAG,mBAAmB;AACtC,CAAA,0BAAA,CAAA,GAAW,GAAG,OAAO;AACrB,CAAA,0BAAA,CAAA,IAAY,GAAG,OAAO;;;;;;","x_google_ignoreList":[0]}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,7 +3,7 @@ import { useState, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { sortData } from '../../utils/sortData.js';
5
5
 
6
- function Table({ columns, data, onDelete, onEdit, onExport, columnStyles = [{}], }) {
6
+ function Table({ columns, data, actions = [], columnStyles = [{}], }) {
7
7
  const [sortDirection, setSortDirection] = useState('ASC');
8
8
  const [sortedData, setSortedData] = useState(data);
9
9
  const handleSort = (column) => {
@@ -22,7 +22,7 @@ function Table({ columns, data, onDelete, onEdit, onExport, columnStyles = [{}],
22
22
  useEffect(() => {
23
23
  setSortedData(data);
24
24
  }, [data]);
25
- return (jsxRuntimeExports.jsxs("table", { className: "w-100", children: [jsxRuntimeExports.jsx("thead", { children: jsxRuntimeExports.jsxs("tr", { className: "bg-gray-100", children: [columns.map((column) => (jsxRuntimeExports.jsxs("th", { className: "bg-primary first:rounded-ss-lg font-bold text-background text-sm uppercase p-2 text-center", onClick: () => handleSort(column), children: [column, jsxRuntimeExports.jsx("i", { className: "pi pi-sort-alt pl-2 text-xs", onClick: () => handleSort(column) })] }))), jsxRuntimeExports.jsx("th", { className: "bg-primary rounded-se-lg font-bold text-background text-sm uppercase p-2 text-center", children: "A\u00C7\u00D5ES" })] }) }), jsxRuntimeExports.jsx("tbody", { children: sortedData.map((item, index) => (jsxRuntimeExports.jsxs("tr", { className: clsx(index % 2 === 0 ? 'bg-background' : 'bg-[#196ECD0D]', item.className), children: [columns.map((column) => (jsxRuntimeExports.jsx("td", { className: clsx('p-3 text-sm text-center', getCellClassName(column, item[column])), children: item[column] }, `${column}-${index}`))), jsxRuntimeExports.jsxs("td", { className: "flex flex-row justify-around text-center gap-2 p-3", children: [jsxRuntimeExports.jsx("i", { className: "pi pi-pen-to-square cursor-pointer", onClick: onEdit }), jsxRuntimeExports.jsx("i", { className: "pi pi-file-export cursor-pointer", onClick: onExport }), jsxRuntimeExports.jsx("i", { className: "pi pi-trash cursor-pointer", onClick: onDelete })] })] }, index))) })] }));
25
+ return (jsxRuntimeExports.jsxs("table", { className: "w-100", children: [jsxRuntimeExports.jsx("thead", { children: jsxRuntimeExports.jsxs("tr", { className: "bg-gray-100", children: [columns.map((column) => (jsxRuntimeExports.jsxs("th", { className: "bg-primary first:rounded-ss-lg font-bold text-background text-sm uppercase p-2 text-center", onClick: () => handleSort(column), children: [column, jsxRuntimeExports.jsx("i", { className: "pi pi-sort-alt pl-2 text-xs", onClick: () => handleSort(column) })] }))), jsxRuntimeExports.jsx("th", { className: "bg-primary rounded-se-lg font-bold text-background text-sm uppercase p-2 text-center", children: "A\u00C7\u00D5ES" })] }) }), jsxRuntimeExports.jsx("tbody", { children: sortedData.map((item, index) => (jsxRuntimeExports.jsxs("tr", { className: clsx(index % 2 === 0 ? 'bg-background' : 'bg-[#196ECD0D]', item.className), children: [columns.map((column) => (jsxRuntimeExports.jsx("td", { className: clsx('p-3 text-sm text-center', getCellClassName(column, item[column])), children: item[column] }, `${column}-${index}`))), jsxRuntimeExports.jsx("td", { className: "flex flex-row justify-around text-center gap-2 p-3", children: actions.map((action, idx) => (jsxRuntimeExports.jsx("span", { className: "cursor-pointer", onClick: () => action.onClick(item), title: action.label, children: action.icon }, idx))) })] }, index))) })] }));
26
26
  }
27
27
 
28
28
  export { Table };
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sources":["../../../../src/stories/components/table.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;SAmBgB,KAAK,CAAC,EACpB,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,YAAY,GAAG,CAAC,EAAE,CAAC,GACR,EAAA;IACX,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAgB,KAAK,CAAC;IACxE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;AAElD,IAAA,MAAM,UAAU,GAAG,CAAC,MAAc,KAAI;AACpC,QAAA,MAAM,YAAY,GAAG,aAAa,KAAK,KAAK,GAAG,KAAK,GAAG,KAAK;QAC5D,gBAAgB,CAAC,YAAY,CAAC;QAE9B,MAA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A,CAAA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAClBC,8BAEE,SAAS,EAAE,IAAI,CACb,yBAAyB,EACzB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CACvC,EAEA,QAAA,EAAA,IAAI,CAAC,MAAM,CAAC,EANR,EAAA,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,KAAK,CAAE,CAAA,CAOtB,CACN,CAAC,EACFA,8BAAI,SAAS,EAAC,oDAAoD,EAAA,QAAA,EAC/D,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,MACvBA,qBAAA,CAAA,MAAA,EAAA,EAEE,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EACnC,KAAK,EAAE,MAAM,CAAC,KAAK,YAElB,MAAM,CAAC,IAAI,EAAA,EALP,GAAG,CAMH,CACR,CAAC,EAAA,CACC,KA5BA,KAAK,CA6BP,CACN,CAAC,EAAA,CACI,CACF,EAAA,CAAA;AAEZ;;;;"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes