@loja-integrada/admin-components 1.0.3 → 1.0.5

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 (228) hide show
  1. package/dist/chunk-247X5S6H.js +9 -0
  2. package/dist/{chunk-WEZVMEBK.js → chunk-2VQ6QMMA.js} +1 -1
  3. package/dist/{chunk-LSC6FNBR.js → chunk-4ZMWAFI4.js} +1 -1
  4. package/dist/{chunk-WEYSRHTX.js → chunk-AGCI6C3Z.js} +1 -1
  5. package/dist/{chunk-3OHDGUPG.js → chunk-BW4TJLAD.js} +1 -1
  6. package/dist/{chunk-LJS4TVL3.js → chunk-DJEPTLO4.js} +3 -3
  7. package/dist/chunk-EIDA43LS.js +10 -0
  8. package/dist/{chunk-N73XF5FY.js → chunk-F5NKGXHQ.js} +2 -2
  9. package/dist/{chunk-BQW67FSK.js → chunk-FCIMHESM.js} +3 -3
  10. package/dist/{chunk-PTCZDH6A.js → chunk-GIEOWRRK.js} +1 -1
  11. package/dist/{chunk-YTHY4XI2.js → chunk-I32MZTHH.js} +2 -2
  12. package/dist/{chunk-SFPIOMYQ.js → chunk-J62DBIT2.js} +1 -1
  13. package/dist/{chunk-K5XL557B.js → chunk-KAUPOL2P.js} +4 -4
  14. package/dist/{chunk-243NQZV5.js → chunk-KSYF7CFG.js} +2 -2
  15. package/dist/{chunk-LZI7QZWG.js → chunk-NNACMTUZ.js} +3 -3
  16. package/dist/{chunk-NXHQNIK2.js → chunk-NRAIF4I3.js} +1 -1
  17. package/dist/{chunk-24UC33BJ.js → chunk-NXRYURC6.js} +1 -1
  18. package/dist/{chunk-RPTUERXQ.js → chunk-PFWHNMTS.js} +2 -2
  19. package/dist/{chunk-26ZK5M43.js → chunk-QMQU7H7Y.js} +2 -2
  20. package/dist/{chunk-RL2XPX57.js → chunk-TJKZQP6P.js} +1 -1
  21. package/dist/{chunk-BW2HQVCT.js → chunk-TMUYSF5D.js} +1 -1
  22. package/dist/{chunk-4BVRONPO.js → chunk-UO2TARVR.js} +1 -1
  23. package/dist/{chunk-ZYY5DINE.js → chunk-V2LJZCNN.js} +2 -2
  24. package/dist/{chunk-LTHYFCE7.js → chunk-VFFDRP2O.js} +1 -1
  25. package/dist/{chunk-2H2JX2FG.js → chunk-WTH3TAIX.js} +2 -2
  26. package/dist/{chunk-AHEXEKOY.js → chunk-XIVJ37WE.js} +2 -2
  27. package/dist/{chunk-767NPRMO.js → chunk-YFQE7XRR.js} +3 -3
  28. package/dist/components/Button/Button.d.ts +48 -0
  29. package/dist/components/Button/index.d.ts +1 -52
  30. package/dist/components/Button/index.js +4 -4
  31. package/dist/components/DataTable/DataTable.client.d.ts +74 -0
  32. package/dist/components/DataTable/index.d.ts +1 -77
  33. package/dist/components/DataTable/index.js +6 -6
  34. package/dist/components/Icon/Icon.d.ts +30 -0
  35. package/dist/components/Icon/index.d.ts +1 -127
  36. package/dist/components/Icon/index.js +3 -3
  37. package/dist/components/IconCircular/IconCircular.d.ts +19 -0
  38. package/dist/components/IconCircular/index.d.ts +1 -22
  39. package/dist/components/IconCircular/index.js +4 -4
  40. package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +9 -0
  41. package/dist/components/LoadingPlaceholder/index.d.ts +1 -12
  42. package/dist/components/LoadingPlaceholder/index.js +2 -2
  43. package/dist/components/Modal/Modal.client.d.ts +54 -0
  44. package/dist/components/Modal/index.d.ts +1 -56
  45. package/dist/components/Modal/index.js +4 -4
  46. package/dist/components/SidebarFixed/SidebarFixed.client.d.ts +33 -0
  47. package/dist/components/SidebarFixed/index.d.ts +1 -35
  48. package/dist/components/SidebarFixed/index.js +4 -4
  49. package/dist/components/Table/Table.d.ts +10 -0
  50. package/dist/components/Table/index.d.ts +1 -12
  51. package/dist/components/Table/index.js +2 -2
  52. package/dist/components/Tabs/Tabs.client.d.ts +21 -0
  53. package/dist/components/Tabs/TabsItem.d.ts +34 -0
  54. package/dist/components/Tabs/index.d.ts +1 -47
  55. package/dist/components/Tabs/index.js +2 -2
  56. package/dist/components/index.d.ts +9 -0
  57. package/dist/components/index.js +13 -13
  58. package/dist/forms/Checkbox/Checkbox.client.d.ts +28 -0
  59. package/dist/forms/Checkbox/index.d.ts +1 -31
  60. package/dist/forms/Checkbox/index.js +3 -3
  61. package/dist/forms/Input/Input.d.ts +41 -0
  62. package/dist/forms/Input/index.d.ts +1 -44
  63. package/dist/forms/Input/index.js +4 -4
  64. package/dist/forms/InputHelpText/InputHelpText.d.ts +17 -0
  65. package/dist/forms/InputHelpText/index.d.ts +1 -20
  66. package/dist/forms/InputHelpText/index.js +2 -2
  67. package/dist/forms/InputLabel/InputLabel.d.ts +29 -0
  68. package/dist/forms/InputLabel/index.d.ts +1 -32
  69. package/dist/forms/InputLabel/index.js +2 -2
  70. package/dist/forms/InputMask/InputMask.client.d.ts +20 -0
  71. package/dist/forms/InputMask/index.d.ts +1 -29
  72. package/dist/forms/InputMask/index.js +5 -5
  73. package/dist/forms/InputMask/maskDate.d.ts +7 -0
  74. package/dist/forms/InputMask/utils.d.ts +6 -0
  75. package/dist/forms/Select/Select.d.ts +35 -0
  76. package/dist/forms/Select/index.d.ts +1 -0
  77. package/dist/forms/Select/index.js +4 -0
  78. package/dist/forms/index.d.ts +6 -0
  79. package/dist/forms/index.js +8 -7
  80. package/dist/icons-path/Adjust.d.ts +1 -0
  81. package/dist/icons-path/AngleDiagonal.d.ts +1 -0
  82. package/dist/icons-path/AngleDown.d.ts +1 -0
  83. package/dist/icons-path/AngleHeight.d.ts +1 -0
  84. package/dist/icons-path/AngleLeft.d.ts +1 -0
  85. package/dist/icons-path/AngleRight.d.ts +1 -0
  86. package/dist/icons-path/AngleWidth.d.ts +1 -0
  87. package/dist/icons-path/App.d.ts +1 -0
  88. package/dist/icons-path/Arrow.d.ts +1 -0
  89. package/dist/icons-path/ArrowLeft.d.ts +1 -0
  90. package/dist/icons-path/ArrowRight.d.ts +1 -0
  91. package/dist/icons-path/Back.d.ts +1 -0
  92. package/dist/icons-path/Ban.d.ts +1 -0
  93. package/dist/icons-path/BarcodeRead.d.ts +1 -0
  94. package/dist/icons-path/Bell.d.ts +1 -0
  95. package/dist/icons-path/Blog.d.ts +1 -0
  96. package/dist/icons-path/Bullhorn.d.ts +1 -0
  97. package/dist/icons-path/Calculator.d.ts +1 -0
  98. package/dist/icons-path/CalendarAlt.d.ts +1 -0
  99. package/dist/icons-path/Camera.d.ts +1 -0
  100. package/dist/icons-path/Check.d.ts +1 -0
  101. package/dist/icons-path/CheckCircle.d.ts +1 -0
  102. package/dist/icons-path/Clock.d.ts +1 -0
  103. package/dist/icons-path/Clockwise.d.ts +1 -0
  104. package/dist/icons-path/Close.d.ts +1 -0
  105. package/dist/icons-path/Cog.d.ts +1 -0
  106. package/dist/icons-path/Copy.d.ts +1 -0
  107. package/dist/icons-path/CreditCard.d.ts +1 -0
  108. package/dist/icons-path/DashedCircle.d.ts +1 -0
  109. package/dist/icons-path/DefaultCursor.d.ts +1 -0
  110. package/dist/icons-path/Desktop.d.ts +1 -0
  111. package/dist/icons-path/Discount.d.ts +1 -0
  112. package/dist/icons-path/DotsThree.d.ts +1 -0
  113. package/dist/icons-path/Download.d.ts +1 -0
  114. package/dist/icons-path/Edit.d.ts +1 -0
  115. package/dist/icons-path/Envelope.d.ts +1 -0
  116. package/dist/icons-path/Exchange.d.ts +1 -0
  117. package/dist/icons-path/ExchangeY.d.ts +1 -0
  118. package/dist/icons-path/Exclamation.d.ts +1 -0
  119. package/dist/icons-path/ExclamationCircle.d.ts +1 -0
  120. package/dist/icons-path/ExclamationTriangle.d.ts +1 -0
  121. package/dist/icons-path/ExternalLink.d.ts +1 -0
  122. package/dist/icons-path/Eye.d.ts +1 -0
  123. package/dist/icons-path/EyeSlash.d.ts +1 -0
  124. package/dist/icons-path/Filter.d.ts +1 -0
  125. package/dist/icons-path/HalfBack.d.ts +1 -0
  126. package/dist/icons-path/Hashtag.d.ts +1 -0
  127. package/dist/icons-path/Home.d.ts +1 -0
  128. package/dist/icons-path/IconSolidEnviali.d.ts +1 -0
  129. package/dist/icons-path/IconSolidLI.d.ts +1 -0
  130. package/dist/icons-path/IdentificationBadge.d.ts +1 -0
  131. package/dist/icons-path/Image.d.ts +1 -0
  132. package/dist/icons-path/InfoCircle.d.ts +1 -0
  133. package/dist/icons-path/Lightbulb.d.ts +1 -0
  134. package/dist/icons-path/Link.d.ts +1 -0
  135. package/dist/icons-path/ListItems.d.ts +1 -0
  136. package/dist/icons-path/Loading.d.ts +1 -0
  137. package/dist/icons-path/Lock.d.ts +1 -0
  138. package/dist/icons-path/Minus.d.ts +1 -0
  139. package/dist/icons-path/MinusCircle.d.ts +1 -0
  140. package/dist/icons-path/MinusCircleSolid.d.ts +1 -0
  141. package/dist/icons-path/Mobile.d.ts +1 -0
  142. package/dist/icons-path/MoneyBill.d.ts +1 -0
  143. package/dist/icons-path/Move.d.ts +1 -0
  144. package/dist/icons-path/Nav.d.ts +1 -0
  145. package/dist/icons-path/Order.d.ts +1 -0
  146. package/dist/icons-path/Pagali.d.ts +1 -0
  147. package/dist/icons-path/PaperList.d.ts +1 -0
  148. package/dist/icons-path/PieChart.d.ts +1 -0
  149. package/dist/icons-path/Pix.d.ts +1 -0
  150. package/dist/icons-path/Plus.d.ts +1 -0
  151. package/dist/icons-path/PlusCircle.d.ts +1 -0
  152. package/dist/icons-path/Print.d.ts +1 -0
  153. package/dist/icons-path/Product.d.ts +1 -0
  154. package/dist/icons-path/QuestionCircle.d.ts +1 -0
  155. package/dist/icons-path/Reload.d.ts +1 -0
  156. package/dist/icons-path/Rocket.d.ts +1 -0
  157. package/dist/icons-path/Search.d.ts +1 -0
  158. package/dist/icons-path/Share.d.ts +1 -0
  159. package/dist/icons-path/ShoppingBag.d.ts +1 -0
  160. package/dist/icons-path/ShoppingCart.d.ts +1 -0
  161. package/dist/icons-path/SortDown.d.ts +1 -0
  162. package/dist/icons-path/Store.d.ts +1 -0
  163. package/dist/icons-path/Sync.d.ts +1 -0
  164. package/dist/icons-path/Table.d.ts +1 -0
  165. package/dist/icons-path/ThinAngleRight.d.ts +1 -0
  166. package/dist/icons-path/TimesCircle.d.ts +1 -0
  167. package/dist/icons-path/Trash.d.ts +1 -0
  168. package/dist/icons-path/Trophy.d.ts +1 -0
  169. package/dist/icons-path/Truck.d.ts +1 -0
  170. package/dist/icons-path/Tv.d.ts +1 -0
  171. package/dist/icons-path/Upload.d.ts +1 -0
  172. package/dist/icons-path/UsdCircle.d.ts +1 -0
  173. package/dist/icons-path/User.d.ts +1 -0
  174. package/dist/icons-path/WhatsApp.d.ts +1 -0
  175. package/dist/icons-path/index.d.ts +98 -0
  176. package/dist/icons-path/index.js +1 -1
  177. package/dist/index.d.ts +5 -31
  178. package/dist/index.js +31 -29
  179. package/dist/indicators/Alert/Alert.client.d.ts +47 -0
  180. package/dist/indicators/Alert/index.d.ts +1 -50
  181. package/dist/indicators/Alert/index.js +4 -4
  182. package/dist/indicators/Badge/Badge.d.ts +30 -0
  183. package/dist/indicators/Badge/index.d.ts +1 -33
  184. package/dist/indicators/Badge/index.js +2 -2
  185. package/dist/indicators/Tag/Tag.d.ts +32 -0
  186. package/dist/indicators/Tag/index.d.ts +1 -36
  187. package/dist/indicators/Tag/index.js +5 -5
  188. package/dist/indicators/Toast/Toast.client.d.ts +9 -0
  189. package/dist/indicators/Toast/index.css +1 -0
  190. package/dist/indicators/Toast/index.d.ts +1 -0
  191. package/dist/indicators/Toast/index.js +12 -0
  192. package/dist/indicators/Tooltip/Tooltip.client.d.ts +54 -0
  193. package/dist/indicators/Tooltip/index.d.ts +1 -57
  194. package/dist/indicators/index.d.ts +4 -0
  195. package/dist/indicators/index.js +7 -7
  196. package/dist/layout/ActionBar/ActionBar.client.d.ts +15 -0
  197. package/dist/layout/ActionBar/index.d.ts +1 -21
  198. package/dist/layout/ActionBar/index.js +5 -5
  199. package/dist/layout/Box/Box.d.ts +68 -0
  200. package/dist/layout/Box/index.d.ts +1 -71
  201. package/dist/layout/Box/index.js +4 -4
  202. package/dist/layout/Container/Container.d.ts +15 -0
  203. package/dist/layout/Container/index.d.ts +1 -18
  204. package/dist/layout/Container/index.js +2 -2
  205. package/dist/layout/constants.d.ts +4 -0
  206. package/dist/layout/index.d.ts +3 -0
  207. package/dist/layout/index.js +7 -7
  208. package/dist/lib/utils.d.ts +5 -0
  209. package/dist/lib/utils.js +1 -0
  210. package/dist/navigation/Breadcrumb/Breadcrumb.d.ts +43 -0
  211. package/dist/navigation/Breadcrumb/index.d.ts +1 -45
  212. package/dist/navigation/Breadcrumb/index.js +5 -5
  213. package/dist/navigation/HelpLink/HelpLink.d.ts +30 -0
  214. package/dist/navigation/HelpLink/index.d.ts +1 -32
  215. package/dist/navigation/HelpLink/index.js +4 -4
  216. package/dist/navigation/Pagination/Pagination.client.d.ts +11 -0
  217. package/dist/navigation/Pagination/PaginationInfo.d.ts +24 -0
  218. package/dist/navigation/Pagination/PaginationNav.d.ts +17 -0
  219. package/dist/navigation/Pagination/index.d.ts +1 -0
  220. package/dist/navigation/Pagination/index.js +8 -0
  221. package/dist/navigation/Stepper/Stepper.client.d.ts +29 -0
  222. package/dist/navigation/Stepper/index.d.ts +1 -31
  223. package/dist/navigation/Stepper/index.js +2 -2
  224. package/dist/navigation/index.d.ts +4 -0
  225. package/dist/navigation/index.js +11 -7
  226. package/package.json +18 -3
  227. /package/dist/{chunk-IA7GSQNX.js → chunk-4PUGMMDC.js} +0 -0
  228. /package/dist/{chunk-KOVXAJCN.js → chunk-66GVVFKI.js} +0 -0
@@ -0,0 +1,48 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import React from 'react';
3
+ import { IconProps } from '../Icon';
4
+ declare const buttonVariants: (props?: ({
5
+ variant?: "primary" | "secondary" | "tertiary" | "warning" | "danger" | "outline" | "outlineSecondary" | "onlyText" | null | undefined;
6
+ size?: "small" | "default" | "large" | null | undefined;
7
+ disabled?: boolean | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonAnchorElement>>>;
10
+ type ButtonAnchorProps = React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
11
+ type HTMLButtonAnchorElement = HTMLButtonElement & HTMLAnchorElement;
12
+ type ButtonVariantsType = VariantProps<typeof buttonVariants>;
13
+ interface ButtonProps extends ButtonAnchorProps, ButtonVariantsType {
14
+ /** Type of component to use
15
+ * @default button
16
+ * */
17
+ as?: 'a' | 'button';
18
+ /**
19
+ * Custom class
20
+ */
21
+ className?: string;
22
+ /** Button variant
23
+ * @default primary
24
+ * */
25
+ variant?: 'primary' | 'secondary' | 'outlineSecondary' | 'tertiary' | 'warning' | 'danger' | 'outline' | 'onlyText';
26
+ /** Size of the button
27
+ * @default default
28
+ * */
29
+ size?: 'small' | 'default' | 'large';
30
+ /**
31
+ * Button is loading
32
+ * */
33
+ loading?: boolean;
34
+ /**
35
+ * Button is disabled
36
+ * */
37
+ disabled?: boolean;
38
+ /**
39
+ * Icon of the button
40
+ */
41
+ icon?: IconProps['icon'];
42
+ /**
43
+ * Icon of the button
44
+ * @default 'right'
45
+ */
46
+ iconPosition?: 'left' | 'right';
47
+ }
48
+ export { Button, type ButtonProps };
@@ -1,52 +1 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import { VariantProps } from 'class-variance-authority';
3
- import React__default from 'react';
4
- import { IconProps } from '../Icon/index.js';
5
- import 'react/jsx-runtime';
6
-
7
- declare const buttonVariants: (props?: ({
8
- variant?: "primary" | "secondary" | "tertiary" | "warning" | "danger" | "outline" | "outlineSecondary" | "onlyText" | null | undefined;
9
- size?: "small" | "default" | "large" | null | undefined;
10
- disabled?: boolean | null | undefined;
11
- } & class_variance_authority_types.ClassProp) | undefined) => string;
12
- declare const Button: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonAnchorElement>>>;
13
- type ButtonAnchorProps = React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.AnchorHTMLAttributes<HTMLAnchorElement>;
14
- type HTMLButtonAnchorElement = HTMLButtonElement & HTMLAnchorElement;
15
- type ButtonVariantsType = VariantProps<typeof buttonVariants>;
16
- interface ButtonProps extends ButtonAnchorProps, ButtonVariantsType {
17
- /** Type of component to use
18
- * @default button
19
- * */
20
- as?: 'a' | 'button';
21
- /**
22
- * Custom class
23
- */
24
- className?: string;
25
- /** Button variant
26
- * @default primary
27
- * */
28
- variant?: 'primary' | 'secondary' | 'outlineSecondary' | 'tertiary' | 'warning' | 'danger' | 'outline' | 'onlyText';
29
- /** Size of the button
30
- * @default default
31
- * */
32
- size?: 'small' | 'default' | 'large';
33
- /**
34
- * Button is loading
35
- * */
36
- loading?: boolean;
37
- /**
38
- * Button is disabled
39
- * */
40
- disabled?: boolean;
41
- /**
42
- * Icon of the button
43
- */
44
- icon?: IconProps['icon'];
45
- /**
46
- * Icon of the button
47
- * @default 'right'
48
- */
49
- iconPosition?: 'left' | 'right';
50
- }
51
-
52
- export { Button, type ButtonProps };
1
+ export * from './Button';
@@ -1,5 +1,5 @@
1
- export { a as Button } from '../../chunk-YTHY4XI2.js';
1
+ export { a as Button } from '../../chunk-I32MZTHH.js';
2
2
  import '../../chunk-LTWCICTK.js';
3
- import '../../chunk-RPTUERXQ.js';
4
- import '../../chunk-2H2JX2FG.js';
5
- import '../../chunk-WEYSRHTX.js';
3
+ import '../../chunk-PFWHNMTS.js';
4
+ import '../../chunk-WTH3TAIX.js';
5
+ import '../../chunk-AGCI6C3Z.js';
@@ -0,0 +1,74 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ declare const DataTable: <TData>({ columns: columnsProps, data, isLoading, error, selectable, showSelectAll, showCountSelected, onChange, selectedIds, disabledIds, id, emptyText, errorText }: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
3
+ type DataTableColumn<TData> = ColumnDef<TData> & {
4
+ className?: {
5
+ header?: string;
6
+ cell?: string;
7
+ };
8
+ };
9
+ interface DataTableProps<TData> {
10
+ /**
11
+ * Array of columns to be displayed in the table
12
+ */
13
+ columns: DataTableColumn<TData>[];
14
+ /**
15
+ * Array of data to be displayed in the table
16
+ */
17
+ data?: TData[];
18
+ /**
19
+ * Table is loading
20
+ * @default false
21
+ */
22
+ isLoading?: boolean;
23
+ /**
24
+ * Table has an error
25
+ * @default false
26
+ */
27
+ error?: boolean;
28
+ /**
29
+ * Makes rows selectable.
30
+ * @default false
31
+ */
32
+ selectable?: boolean;
33
+ /**
34
+ * Show select all checkbox in the header,
35
+ * when the table is selectable.
36
+ * @default true
37
+ */
38
+ showSelectAll?: boolean;
39
+ /**
40
+ * Show count of selected rows in the header
41
+ * @default true
42
+ */
43
+ showCountSelected?: boolean;
44
+ /**
45
+ * Content to show when table is empty
46
+ * @default 'Nenhum registro encontrado'
47
+ */
48
+ emptyText?: string | React.ReactNode;
49
+ /**
50
+ * Content to show when an error occurs
51
+ * @default 'Ocorreu um erro ao carregar os itens.'
52
+ */
53
+ errorText?: string | React.ReactNode;
54
+ /**
55
+ * Fired when the row is selectable and the Checkbox of the header/row is clicked
56
+ */
57
+ onChange?: (selectedRows: string[]) => void;
58
+ /**
59
+ * Array containing the id of selected rows.
60
+ * @default undefined
61
+ */
62
+ selectedIds?: string[];
63
+ /**
64
+ * Array containing the id of disabled rows.
65
+ * @default []
66
+ */
67
+ disabledIds?: string[];
68
+ /**
69
+ * Id of the table.
70
+ * @default undefined
71
+ */
72
+ id?: string;
73
+ }
74
+ export { DataTable, type DataTableColumn, type DataTableProps };
@@ -1,77 +1 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ColumnDef } from '@tanstack/react-table';
3
-
4
- declare const DataTable: <TData>({ columns: columnsProps, data, isLoading, error, selectable, showSelectAll, showCountSelected, onChange, selectedIds, disabledIds, id, emptyText, errorText }: DataTableProps<TData>) => react_jsx_runtime.JSX.Element;
5
- type DataTableColumn<TData> = ColumnDef<TData> & {
6
- className?: {
7
- header?: string;
8
- cell?: string;
9
- };
10
- };
11
- interface DataTableProps<TData> {
12
- /**
13
- * Array of columns to be displayed in the table
14
- */
15
- columns: DataTableColumn<TData>[];
16
- /**
17
- * Array of data to be displayed in the table
18
- */
19
- data?: TData[];
20
- /**
21
- * Table is loading
22
- * @default false
23
- */
24
- isLoading?: boolean;
25
- /**
26
- * Table has an error
27
- * @default false
28
- */
29
- error?: boolean;
30
- /**
31
- * Makes rows selectable.
32
- * @default false
33
- */
34
- selectable?: boolean;
35
- /**
36
- * Show select all checkbox in the header,
37
- * when the table is selectable.
38
- * @default true
39
- */
40
- showSelectAll?: boolean;
41
- /**
42
- * Show count of selected rows in the header
43
- * @default true
44
- */
45
- showCountSelected?: boolean;
46
- /**
47
- * Content to show when table is empty
48
- * @default 'Nenhum registro encontrado'
49
- */
50
- emptyText?: string | React.ReactNode;
51
- /**
52
- * Content to show when an error occurs
53
- * @default 'Ocorreu um erro ao carregar os itens.'
54
- */
55
- errorText?: string | React.ReactNode;
56
- /**
57
- * Fired when the row is selectable and the Checkbox of the header/row is clicked
58
- */
59
- onChange?: (selectedRows: string[]) => void;
60
- /**
61
- * Array containing the id of selected rows.
62
- * @default undefined
63
- */
64
- selectedIds?: string[];
65
- /**
66
- * Array containing the id of disabled rows.
67
- * @default []
68
- */
69
- disabledIds?: string[];
70
- /**
71
- * Id of the table.
72
- * @default undefined
73
- */
74
- id?: string;
75
- }
76
-
77
- export { DataTable, type DataTableColumn, type DataTableProps };
1
+ export * from './DataTable.client';
@@ -1,6 +1,6 @@
1
- "use client";export { a as DataTable } from '../../chunk-LZI7QZWG.js';
2
- import '../../chunk-LTHYFCE7.js';
3
- import '../../chunk-RL2XPX57.js';
4
- import '../../chunk-NXHQNIK2.js';
5
- import '../../chunk-3OHDGUPG.js';
6
- import '../../chunk-WEYSRHTX.js';
1
+ "use client";export { a as DataTable } from '../../chunk-NNACMTUZ.js';
2
+ import '../../chunk-VFFDRP2O.js';
3
+ import '../../chunk-TJKZQP6P.js';
4
+ import '../../chunk-NRAIF4I3.js';
5
+ import '../../chunk-BW4TJLAD.js';
6
+ import '../../chunk-AGCI6C3Z.js';
@@ -0,0 +1,30 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { icons } from '../../icons-path';
3
+ declare const iconSizes: {
4
+ 1: string;
5
+ 2: string;
6
+ 3: string;
7
+ 4: string;
8
+ 5: string;
9
+ 6: string;
10
+ 7: string;
11
+ 8: string;
12
+ 9: string;
13
+ 10: string;
14
+ };
15
+ declare const Icon: FunctionComponent<IconProps>;
16
+ interface IconProps {
17
+ /**
18
+ * Icon variation
19
+ */
20
+ icon: keyof typeof icons;
21
+ /** Icon size, number between 1 and 10
22
+ * @default 5
23
+ */
24
+ size?: keyof typeof iconSizes;
25
+ /**
26
+ * Additional classes for icon
27
+ */
28
+ className?: string;
29
+ }
30
+ export { Icon, type IconProps };
@@ -1,127 +1 @@
1
- import { FunctionComponent } from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- declare const icons: {
5
- adjust: () => react_jsx_runtime.JSX.Element;
6
- angleDiagonal: () => react_jsx_runtime.JSX.Element;
7
- angleDown: () => react_jsx_runtime.JSX.Element;
8
- angleHeight: () => react_jsx_runtime.JSX.Element;
9
- angleLeft: () => react_jsx_runtime.JSX.Element;
10
- angleRight: () => react_jsx_runtime.JSX.Element;
11
- angleWidth: () => react_jsx_runtime.JSX.Element;
12
- app: () => react_jsx_runtime.JSX.Element;
13
- arrow: () => react_jsx_runtime.JSX.Element;
14
- arrowLeft: () => react_jsx_runtime.JSX.Element;
15
- arrowRight: () => react_jsx_runtime.JSX.Element;
16
- back: () => react_jsx_runtime.JSX.Element;
17
- ban: () => react_jsx_runtime.JSX.Element;
18
- barcodeRead: () => react_jsx_runtime.JSX.Element;
19
- bell: () => react_jsx_runtime.JSX.Element;
20
- blog: () => react_jsx_runtime.JSX.Element;
21
- bullhorn: () => react_jsx_runtime.JSX.Element;
22
- calculator: () => react_jsx_runtime.JSX.Element;
23
- calendarAlt: () => react_jsx_runtime.JSX.Element;
24
- camera: () => react_jsx_runtime.JSX.Element;
25
- check: () => react_jsx_runtime.JSX.Element;
26
- checkCircle: () => react_jsx_runtime.JSX.Element;
27
- clock: () => react_jsx_runtime.JSX.Element;
28
- close: () => react_jsx_runtime.JSX.Element;
29
- cog: () => react_jsx_runtime.JSX.Element;
30
- copy: () => react_jsx_runtime.JSX.Element;
31
- creditcard: () => react_jsx_runtime.JSX.Element;
32
- discount: () => react_jsx_runtime.JSX.Element;
33
- desktop: () => react_jsx_runtime.JSX.Element;
34
- download: () => react_jsx_runtime.JSX.Element;
35
- edit: () => react_jsx_runtime.JSX.Element;
36
- exchange: () => react_jsx_runtime.JSX.Element;
37
- exclamation: () => react_jsx_runtime.JSX.Element;
38
- exclamationCircle: () => react_jsx_runtime.JSX.Element;
39
- exclamationTriangle: () => react_jsx_runtime.JSX.Element;
40
- externalLink: () => react_jsx_runtime.JSX.Element;
41
- eye: () => react_jsx_runtime.JSX.Element;
42
- eyeSlash: () => react_jsx_runtime.JSX.Element;
43
- filter: () => react_jsx_runtime.JSX.Element;
44
- halfBack: () => react_jsx_runtime.JSX.Element;
45
- home: () => react_jsx_runtime.JSX.Element;
46
- iconSolidEnviali: () => react_jsx_runtime.JSX.Element;
47
- iconSolidLI: () => react_jsx_runtime.JSX.Element;
48
- image: () => react_jsx_runtime.JSX.Element;
49
- infoCircle: () => react_jsx_runtime.JSX.Element;
50
- lightbulb: () => react_jsx_runtime.JSX.Element;
51
- link: () => react_jsx_runtime.JSX.Element;
52
- loading: () => react_jsx_runtime.JSX.Element;
53
- minus: () => react_jsx_runtime.JSX.Element;
54
- mobile: () => react_jsx_runtime.JSX.Element;
55
- moneyBill: () => react_jsx_runtime.JSX.Element;
56
- move: () => react_jsx_runtime.JSX.Element;
57
- nav: () => react_jsx_runtime.JSX.Element;
58
- order: () => react_jsx_runtime.JSX.Element;
59
- pagali: () => react_jsx_runtime.JSX.Element;
60
- paperList: () => react_jsx_runtime.JSX.Element;
61
- pieChart: () => react_jsx_runtime.JSX.Element;
62
- pix: () => react_jsx_runtime.JSX.Element;
63
- plus: () => react_jsx_runtime.JSX.Element;
64
- plusCircle: () => react_jsx_runtime.JSX.Element;
65
- print: () => react_jsx_runtime.JSX.Element;
66
- product: () => react_jsx_runtime.JSX.Element;
67
- questionCircle: () => react_jsx_runtime.JSX.Element;
68
- reload: () => react_jsx_runtime.JSX.Element;
69
- rocket: () => react_jsx_runtime.JSX.Element;
70
- search: () => react_jsx_runtime.JSX.Element;
71
- shoppingCart: () => react_jsx_runtime.JSX.Element;
72
- sortDown: () => react_jsx_runtime.JSX.Element;
73
- sync: () => react_jsx_runtime.JSX.Element;
74
- thinAngleRight: () => react_jsx_runtime.JSX.Element;
75
- times: () => react_jsx_runtime.JSX.Element;
76
- timesCircle: () => react_jsx_runtime.JSX.Element;
77
- trash: () => react_jsx_runtime.JSX.Element;
78
- truck: () => react_jsx_runtime.JSX.Element;
79
- tv: () => react_jsx_runtime.JSX.Element;
80
- upload: () => react_jsx_runtime.JSX.Element;
81
- usdCircle: () => react_jsx_runtime.JSX.Element;
82
- user: () => react_jsx_runtime.JSX.Element;
83
- whatsapp: () => react_jsx_runtime.JSX.Element;
84
- clockwise: () => react_jsx_runtime.JSX.Element;
85
- defaultCursor: () => react_jsx_runtime.JSX.Element;
86
- envelope: () => react_jsx_runtime.JSX.Element;
87
- exchangeY: () => react_jsx_runtime.JSX.Element;
88
- hashtag: () => react_jsx_runtime.JSX.Element;
89
- identificationBadge: () => react_jsx_runtime.JSX.Element;
90
- listItems: () => react_jsx_runtime.JSX.Element;
91
- store: () => react_jsx_runtime.JSX.Element;
92
- trophy: () => react_jsx_runtime.JSX.Element;
93
- dashedCircle: () => react_jsx_runtime.JSX.Element;
94
- minusCircle: () => react_jsx_runtime.JSX.Element;
95
- minusCircleSolid: () => react_jsx_runtime.JSX.Element;
96
- dotsThree: () => react_jsx_runtime.JSX.Element;
97
- };
98
-
99
- declare const iconSizes: {
100
- 1: string;
101
- 2: string;
102
- 3: string;
103
- 4: string;
104
- 5: string;
105
- 6: string;
106
- 7: string;
107
- 8: string;
108
- 9: string;
109
- 10: string;
110
- };
111
- declare const Icon: FunctionComponent<IconProps>;
112
- interface IconProps {
113
- /**
114
- * Icon variation
115
- */
116
- icon: keyof typeof icons;
117
- /** Icon size, number between 1 and 10
118
- * @default 5
119
- */
120
- size?: keyof typeof iconSizes;
121
- /**
122
- * Additional classes for icon
123
- */
124
- className?: string;
125
- }
126
-
127
- export { Icon, type IconProps };
1
+ export * from './Icon';
@@ -1,4 +1,4 @@
1
1
  import '../../chunk-LTWCICTK.js';
2
- export { a as Icon } from '../../chunk-RPTUERXQ.js';
3
- import '../../chunk-2H2JX2FG.js';
4
- import '../../chunk-WEYSRHTX.js';
2
+ export { a as Icon } from '../../chunk-PFWHNMTS.js';
3
+ import '../../chunk-WTH3TAIX.js';
4
+ import '../../chunk-AGCI6C3Z.js';
@@ -0,0 +1,19 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IconProps } from '../Icon';
3
+ type variantType = 'success' | 'warning' | 'danger';
4
+ export declare const IconCircular: FunctionComponent<IconCircularProps>;
5
+ export interface IconCircularProps {
6
+ /** Icon circular variant
7
+ * @default success
8
+ * */
9
+ variant?: variantType;
10
+ /**
11
+ * Icon variation
12
+ */
13
+ icon?: IconProps['icon'];
14
+ /**
15
+ * Custom class for background
16
+ */
17
+ bgClass?: string;
18
+ }
19
+ export {};
@@ -1,22 +1 @@
1
- import { FunctionComponent } from 'react';
2
- import { IconProps } from '../Icon/index.js';
3
- import 'react/jsx-runtime';
4
-
5
- type variantType = 'success' | 'warning' | 'danger';
6
- declare const IconCircular: FunctionComponent<IconCircularProps>;
7
- interface IconCircularProps {
8
- /** Icon circular variant
9
- * @default success
10
- * */
11
- variant?: variantType;
12
- /**
13
- * Icon variation
14
- */
15
- icon?: IconProps['icon'];
16
- /**
17
- * Custom class for background
18
- */
19
- bgClass?: string;
20
- }
21
-
22
- export { IconCircular, type IconCircularProps };
1
+ export * from './IconCircular';
@@ -1,5 +1,5 @@
1
- export { a as IconCircular } from '../../chunk-BW2HQVCT.js';
1
+ export { a as IconCircular } from '../../chunk-TMUYSF5D.js';
2
2
  import '../../chunk-LTWCICTK.js';
3
- import '../../chunk-RPTUERXQ.js';
4
- import '../../chunk-2H2JX2FG.js';
5
- import '../../chunk-WEYSRHTX.js';
3
+ import '../../chunk-PFWHNMTS.js';
4
+ import '../../chunk-WTH3TAIX.js';
5
+ import '../../chunk-AGCI6C3Z.js';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const LoadingPlaceholder: React.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => import("react/jsx-runtime").JSX.Element>;
3
+ interface LoadingPlaceholderProps {
4
+ /**
5
+ * Custom class name
6
+ */
7
+ className?: string;
8
+ }
9
+ export { LoadingPlaceholder, type LoadingPlaceholderProps };
@@ -1,12 +1 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
-
4
- declare const LoadingPlaceholder: React__default.MemoExoticComponent<({ className }: LoadingPlaceholderProps) => react_jsx_runtime.JSX.Element>;
5
- interface LoadingPlaceholderProps {
6
- /**
7
- * Custom class name
8
- */
9
- className?: string;
10
- }
11
-
12
- export { LoadingPlaceholder, type LoadingPlaceholderProps };
1
+ export * from './LoadingPlaceholder';
@@ -1,2 +1,2 @@
1
- export { a as LoadingPlaceholder } from '../../chunk-LTHYFCE7.js';
2
- import '../../chunk-WEYSRHTX.js';
1
+ export { a as LoadingPlaceholder } from '../../chunk-VFFDRP2O.js';
2
+ import '../../chunk-AGCI6C3Z.js';
@@ -0,0 +1,54 @@
1
+ import './style.scss';
2
+ import React from 'react';
3
+ declare const Modal: React.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => import("react/jsx-runtime").JSX.Element>;
4
+ interface ModalProps {
5
+ /**
6
+ * Custom class name
7
+ * */
8
+ className?: string;
9
+ /** Modal is open
10
+ * @default false
11
+ */
12
+ isOpen?: boolean;
13
+ /** Prevent modal close
14
+ * @default false
15
+ */
16
+ preventClose?: boolean;
17
+ /** Modal width
18
+ * @default 'default'
19
+ * */
20
+ size?: 'default' | 'large' | 'small';
21
+ /**
22
+ * Modal step, above the title
23
+ * */
24
+ headerStep?: string | React.ReactNode;
25
+ /**
26
+ * Modal title
27
+ * */
28
+ headerTitle?: string | React.ReactNode;
29
+ /** Close text at header
30
+ * @default ''
31
+ * */
32
+ headerClose?: string | false;
33
+ /**
34
+ * Call when modal is closed
35
+ * */
36
+ onClose?: () => void;
37
+ /**
38
+ * Number indicating the milliseconds to wait before closing the modal
39
+ * */
40
+ closeTimeout?: number;
41
+ /**
42
+ * React children
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * React children
47
+ */
48
+ footerActions?: React.ReactNode;
49
+ /** The parent element that the modal will be attached to
50
+ * @default 'document.body'
51
+ */
52
+ parentSelector?: HTMLElement | null;
53
+ }
54
+ export { Modal, type ModalProps };
@@ -1,56 +1 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
-
4
- declare const Modal: React__default.MemoExoticComponent<({ className, isOpen, preventClose, size, headerStep, headerTitle, headerClose, footerActions, onClose, closeTimeout, parentSelector, children }: ModalProps) => react_jsx_runtime.JSX.Element>;
5
- interface ModalProps {
6
- /**
7
- * Custom class name
8
- * */
9
- className?: string;
10
- /** Modal is open
11
- * @default false
12
- */
13
- isOpen?: boolean;
14
- /** Prevent modal close
15
- * @default false
16
- */
17
- preventClose?: boolean;
18
- /** Modal width
19
- * @default 'default'
20
- * */
21
- size?: 'default' | 'large' | 'small';
22
- /**
23
- * Modal step, above the title
24
- * */
25
- headerStep?: string | React__default.ReactNode;
26
- /**
27
- * Modal title
28
- * */
29
- headerTitle?: string | React__default.ReactNode;
30
- /** Close text at header
31
- * @default ''
32
- * */
33
- headerClose?: string | false;
34
- /**
35
- * Call when modal is closed
36
- * */
37
- onClose?: () => void;
38
- /**
39
- * Number indicating the milliseconds to wait before closing the modal
40
- * */
41
- closeTimeout?: number;
42
- /**
43
- * React children
44
- */
45
- children?: React__default.ReactNode;
46
- /**
47
- * React children
48
- */
49
- footerActions?: React__default.ReactNode;
50
- /** The parent element that the modal will be attached to
51
- * @default 'document.body'
52
- */
53
- parentSelector?: HTMLElement | null;
54
- }
55
-
56
- export { Modal, type ModalProps };
1
+ export * from './Modal.client';
@@ -1,5 +1,5 @@
1
- "use client";export { a as Modal } from '../../chunk-AHEXEKOY.js';
1
+ "use client";export { a as Modal } from '../../chunk-XIVJ37WE.js';
2
2
  import '../../chunk-LTWCICTK.js';
3
- import '../../chunk-RPTUERXQ.js';
4
- import '../../chunk-2H2JX2FG.js';
5
- import '../../chunk-WEYSRHTX.js';
3
+ import '../../chunk-PFWHNMTS.js';
4
+ import '../../chunk-WTH3TAIX.js';
5
+ import '../../chunk-AGCI6C3Z.js';