@loja-integrada/admin-components 1.0.1 → 1.0.2

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 (168) hide show
  1. package/README.md +89 -2
  2. package/dist/chunk-TZI6YTCW.js +7 -0
  3. package/dist/{chunk-FLXTIRDF.js → chunk-V3MWWR5B.js} +1 -1
  4. package/dist/components/Button/index.d.ts +52 -1
  5. package/dist/components/DataTable/index.d.ts +77 -1
  6. package/dist/components/Icon/index.d.ts +127 -1
  7. package/dist/components/IconCircular/index.d.ts +22 -1
  8. package/dist/components/LoadingPlaceholder/index.d.ts +12 -1
  9. package/dist/components/Modal/index.css +1 -1
  10. package/dist/components/Modal/index.d.ts +56 -1
  11. package/dist/components/Modal/index.js +1 -1
  12. package/dist/components/SidebarFixed/index.d.ts +36 -1
  13. package/dist/components/Table/index.d.ts +12 -1
  14. package/dist/components/Tabs/index.d.ts +47 -1
  15. package/dist/components/index.css +1 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/forms/Checkbox/index.d.ts +31 -1
  18. package/dist/forms/Input/index.d.ts +44 -1
  19. package/dist/forms/InputHelpText/index.d.ts +20 -1
  20. package/dist/forms/InputLabel/index.d.ts +32 -1
  21. package/dist/forms/InputMask/index.d.ts +29 -1
  22. package/dist/index.css +1 -1
  23. package/dist/index.d.ts +30 -5
  24. package/dist/index.js +2 -2
  25. package/dist/indicators/Alert/index.d.ts +50 -1
  26. package/dist/indicators/Badge/index.d.ts +33 -1
  27. package/dist/indicators/Tag/index.css +1 -1
  28. package/dist/indicators/Tag/index.d.ts +36 -1
  29. package/dist/indicators/Tag/index.js +1 -1
  30. package/dist/indicators/Tooltip/index.css +1 -1
  31. package/dist/indicators/Tooltip/index.d.ts +57 -1
  32. package/dist/indicators/Tooltip/index.js +1 -1
  33. package/dist/indicators/index.css +1 -1
  34. package/dist/indicators/index.js +2 -2
  35. package/dist/layout/ActionBar/index.d.ts +21 -1
  36. package/dist/layout/Box/index.d.ts +71 -1
  37. package/dist/layout/Container/index.d.ts +18 -1
  38. package/dist/navigation/Breadcrumb/index.d.ts +45 -1
  39. package/dist/navigation/HelpLink/index.d.ts +32 -1
  40. package/dist/navigation/Stepper/index.d.ts +31 -1
  41. package/package.json +56 -53
  42. package/dist/chunk-GWT7XT76.js +0 -7
  43. package/dist/components/Button/Button.d.ts +0 -48
  44. package/dist/components/DataTable/DataTable.d.ts +0 -74
  45. package/dist/components/Icon/Icon.d.ts +0 -30
  46. package/dist/components/IconCircular/IconCircular.d.ts +0 -19
  47. package/dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts +0 -9
  48. package/dist/components/Modal/Modal.d.ts +0 -54
  49. package/dist/components/SidebarFixed/SidebarFixed.d.ts +0 -34
  50. package/dist/components/Table/Table.d.ts +0 -10
  51. package/dist/components/Tabs/Tabs.d.ts +0 -21
  52. package/dist/components/Tabs/TabsItem.d.ts +0 -34
  53. package/dist/components/index.d.ts +0 -9
  54. package/dist/forms/Checkbox/Checkbox.d.ts +0 -28
  55. package/dist/forms/Input/Input.d.ts +0 -41
  56. package/dist/forms/InputHelpText/InputHelpText.d.ts +0 -17
  57. package/dist/forms/InputLabel/InputLabel.d.ts +0 -29
  58. package/dist/forms/InputMask/InputMask.d.ts +0 -20
  59. package/dist/forms/InputMask/maskDate.d.ts +0 -7
  60. package/dist/forms/InputMask/utils.d.ts +0 -6
  61. package/dist/forms/index.d.ts +0 -5
  62. package/dist/icons-path/Adjust.d.ts +0 -1
  63. package/dist/icons-path/AngleDiagonal.d.ts +0 -1
  64. package/dist/icons-path/AngleDown.d.ts +0 -1
  65. package/dist/icons-path/AngleHeight.d.ts +0 -1
  66. package/dist/icons-path/AngleLeft.d.ts +0 -1
  67. package/dist/icons-path/AngleRight.d.ts +0 -1
  68. package/dist/icons-path/AngleWidth.d.ts +0 -1
  69. package/dist/icons-path/App.d.ts +0 -1
  70. package/dist/icons-path/Arrow.d.ts +0 -1
  71. package/dist/icons-path/ArrowLeft.d.ts +0 -1
  72. package/dist/icons-path/ArrowRight.d.ts +0 -1
  73. package/dist/icons-path/Back.d.ts +0 -1
  74. package/dist/icons-path/Ban.d.ts +0 -1
  75. package/dist/icons-path/BarcodeRead.d.ts +0 -1
  76. package/dist/icons-path/Bell.d.ts +0 -1
  77. package/dist/icons-path/Blog.d.ts +0 -1
  78. package/dist/icons-path/Bullhorn.d.ts +0 -1
  79. package/dist/icons-path/Calculator.d.ts +0 -1
  80. package/dist/icons-path/CalendarAlt.d.ts +0 -1
  81. package/dist/icons-path/Camera.d.ts +0 -1
  82. package/dist/icons-path/Check.d.ts +0 -1
  83. package/dist/icons-path/CheckCircle.d.ts +0 -1
  84. package/dist/icons-path/Clock.d.ts +0 -1
  85. package/dist/icons-path/Clockwise.d.ts +0 -1
  86. package/dist/icons-path/Close.d.ts +0 -1
  87. package/dist/icons-path/Cog.d.ts +0 -1
  88. package/dist/icons-path/Copy.d.ts +0 -1
  89. package/dist/icons-path/CreditCard.d.ts +0 -1
  90. package/dist/icons-path/DashedCircle.d.ts +0 -1
  91. package/dist/icons-path/DefaultCursor.d.ts +0 -1
  92. package/dist/icons-path/Desktop.d.ts +0 -1
  93. package/dist/icons-path/Discount.d.ts +0 -1
  94. package/dist/icons-path/DotsThree.d.ts +0 -1
  95. package/dist/icons-path/Download.d.ts +0 -1
  96. package/dist/icons-path/Edit.d.ts +0 -1
  97. package/dist/icons-path/Envelope.d.ts +0 -1
  98. package/dist/icons-path/Exchange.d.ts +0 -1
  99. package/dist/icons-path/ExchangeY.d.ts +0 -1
  100. package/dist/icons-path/Exclamation.d.ts +0 -1
  101. package/dist/icons-path/ExclamationCircle.d.ts +0 -1
  102. package/dist/icons-path/ExclamationTriangle.d.ts +0 -1
  103. package/dist/icons-path/ExternalLink.d.ts +0 -1
  104. package/dist/icons-path/Eye.d.ts +0 -1
  105. package/dist/icons-path/EyeSlash.d.ts +0 -1
  106. package/dist/icons-path/Filter.d.ts +0 -1
  107. package/dist/icons-path/HalfBack.d.ts +0 -1
  108. package/dist/icons-path/Hashtag.d.ts +0 -1
  109. package/dist/icons-path/Home.d.ts +0 -1
  110. package/dist/icons-path/IconSolidEnviali.d.ts +0 -1
  111. package/dist/icons-path/IconSolidLI.d.ts +0 -1
  112. package/dist/icons-path/IdentificationBadge.d.ts +0 -1
  113. package/dist/icons-path/Image.d.ts +0 -1
  114. package/dist/icons-path/InfoCircle.d.ts +0 -1
  115. package/dist/icons-path/Lightbulb.d.ts +0 -1
  116. package/dist/icons-path/Link.d.ts +0 -1
  117. package/dist/icons-path/ListItems.d.ts +0 -1
  118. package/dist/icons-path/Loading.d.ts +0 -1
  119. package/dist/icons-path/Minus.d.ts +0 -1
  120. package/dist/icons-path/MinusCircle.d.ts +0 -1
  121. package/dist/icons-path/MinusCircleSolid.d.ts +0 -1
  122. package/dist/icons-path/Mobile.d.ts +0 -1
  123. package/dist/icons-path/MoneyBill.d.ts +0 -1
  124. package/dist/icons-path/Move.d.ts +0 -1
  125. package/dist/icons-path/Nav.d.ts +0 -1
  126. package/dist/icons-path/Order.d.ts +0 -1
  127. package/dist/icons-path/Pagali.d.ts +0 -1
  128. package/dist/icons-path/PaperList.d.ts +0 -1
  129. package/dist/icons-path/PieChart.d.ts +0 -1
  130. package/dist/icons-path/Pix.d.ts +0 -1
  131. package/dist/icons-path/Plus.d.ts +0 -1
  132. package/dist/icons-path/PlusCircle.d.ts +0 -1
  133. package/dist/icons-path/Print.d.ts +0 -1
  134. package/dist/icons-path/Product.d.ts +0 -1
  135. package/dist/icons-path/QuestionCircle.d.ts +0 -1
  136. package/dist/icons-path/Reload.d.ts +0 -1
  137. package/dist/icons-path/Rocket.d.ts +0 -1
  138. package/dist/icons-path/Search.d.ts +0 -1
  139. package/dist/icons-path/ShoppingCart.d.ts +0 -1
  140. package/dist/icons-path/SortDown.d.ts +0 -1
  141. package/dist/icons-path/Store.d.ts +0 -1
  142. package/dist/icons-path/Sync.d.ts +0 -1
  143. package/dist/icons-path/ThinAngleRight.d.ts +0 -1
  144. package/dist/icons-path/TimesCircle.d.ts +0 -1
  145. package/dist/icons-path/Trash.d.ts +0 -1
  146. package/dist/icons-path/Trophy.d.ts +0 -1
  147. package/dist/icons-path/Truck.d.ts +0 -1
  148. package/dist/icons-path/Tv.d.ts +0 -1
  149. package/dist/icons-path/Upload.d.ts +0 -1
  150. package/dist/icons-path/UsdCircle.d.ts +0 -1
  151. package/dist/icons-path/User.d.ts +0 -1
  152. package/dist/icons-path/WhatsApp.d.ts +0 -1
  153. package/dist/icons-path/index.d.ts +0 -94
  154. package/dist/indicators/Alert/Alert.d.ts +0 -47
  155. package/dist/indicators/Badge/Badge.d.ts +0 -29
  156. package/dist/indicators/Tag/Tag.d.ts +0 -32
  157. package/dist/indicators/Tooltip/Tooltip.d.ts +0 -54
  158. package/dist/indicators/index.d.ts +0 -4
  159. package/dist/layout/ActionBar/ActionBar.d.ts +0 -15
  160. package/dist/layout/Box/Box.d.ts +0 -68
  161. package/dist/layout/Container/Container.d.ts +0 -15
  162. package/dist/layout/constants.d.ts +0 -4
  163. package/dist/layout/index.d.ts +0 -3
  164. package/dist/lib/utils.d.ts +0 -5
  165. package/dist/navigation/Breadcrumb/Breadcrumb.d.ts +0 -43
  166. package/dist/navigation/HelpLink/HelpLink.d.ts +0 -30
  167. package/dist/navigation/Stepper/Stepper.d.ts +0 -29
  168. package/dist/navigation/index.d.ts +0 -2
@@ -1 +1,31 @@
1
- export * from './Stepper';
1
+ import React__default from 'react';
2
+
3
+ declare const Stepper: React__default.FC<StepperProps>;
4
+ type StepType = {
5
+ step: number;
6
+ text?: string;
7
+ handleClick?: () => void;
8
+ customClassName?: string;
9
+ };
10
+ interface StepperProps {
11
+ /**
12
+ * Custom class name
13
+ * */
14
+ className?: string;
15
+ /**
16
+ * Current page step
17
+ * */
18
+ currentStep: number;
19
+ /**
20
+ * Array of steps containing the step number (1, 2, 3, ..., n),
21
+ * text with step's title (optional) and a handler for the
22
+ * step's click (optional) and a custom className for that given step
23
+ * */
24
+ steps: StepType[];
25
+ /**
26
+ * Shows step text instead of linking lines
27
+ * */
28
+ showText?: boolean;
29
+ }
30
+
31
+ export { Stepper, type StepperProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loja-integrada/admin-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "author": "Loja Integrada",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,17 +21,19 @@
21
21
  "@types/react-modal": "^3.16.3",
22
22
  "@types/react-text-mask": "^5.4.14",
23
23
  "@vitejs/plugin-react": "^4.2.1",
24
+ "autoprefixer": "^10.4.19",
24
25
  "cypress": "^13.9.0",
25
26
  "cypress-vite": "^1.5.0",
26
27
  "esbuild-sass-plugin": "^3.3.0",
27
28
  "eslint": "^8.57.0",
28
29
  "eslint-plugin-storybook": "^0.8.0",
30
+ "postcss": "^8.4.38",
29
31
  "tsup": "^8.1.0",
30
32
  "typescript": "^5.3.3",
31
33
  "vite": "^5.1.4",
32
34
  "@loja-integrada/eslint-config": "0.0.1",
33
- "@loja-integrada/tailwindcss-config": "2.0.0",
34
- "@loja-integrada/typescript-config": "0.0.2"
35
+ "@loja-integrada/typescript-config": "0.0.2",
36
+ "@loja-integrada/tailwindcss-config": "2.0.0"
35
37
  },
36
38
  "dependencies": {
37
39
  "@tanstack/react-table": "^8.17.3",
@@ -51,105 +53,106 @@
51
53
  ],
52
54
  "exports": {
53
55
  ".": {
54
- "import": "./dist/index.js",
55
- "types": "./dist/index.d.ts"
56
+ "types": "./dist/index.d.ts",
57
+ "import": "./dist/index.js"
56
58
  },
59
+ "./style.css": "./dist/index.css",
57
60
  "./package.json": "./package.json",
58
61
  "./Button": {
59
- "import": "./dist/components/Button/index.js",
60
- "types": "./dist/components/Button/Button.d.ts"
62
+ "types": "./dist/components/Button/Button.d.ts",
63
+ "import": "./dist/components/Button/index.js"
61
64
  },
62
65
  "./DataTable": {
63
- "import": "./dist/components/DataTable/index.js",
64
- "types": "./dist/components/DataTable/DataTable.d.ts"
66
+ "types": "./dist/components/DataTable/DataTable.d.ts",
67
+ "import": "./dist/components/DataTable/index.js"
65
68
  },
66
69
  "./Icon": {
67
- "import": "./dist/components/Icon/index.js",
68
- "types": "./dist/components/Icon/Icon.d.ts"
70
+ "types": "./dist/components/Icon/Icon.d.ts",
71
+ "import": "./dist/components/Icon/index.js"
69
72
  },
70
73
  "./IconCircular": {
71
- "import": "./dist/components/IconCircular/index.js",
72
- "types": "./dist/components/IconCircular/IconCircular.d.ts"
74
+ "types": "./dist/components/IconCircular/IconCircular.d.ts",
75
+ "import": "./dist/components/IconCircular/index.js"
73
76
  },
74
77
  "./LoadingPlaceholder": {
75
- "import": "./dist/components/LoadingPlaceholder/index.js",
76
- "types": "./dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts"
78
+ "types": "./dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts",
79
+ "import": "./dist/components/LoadingPlaceholder/index.js"
77
80
  },
78
81
  "./Modal": {
79
- "import": "./dist/components/Modal/index.js",
80
- "types": "./dist/components/Modal/Modal.d.ts"
82
+ "types": "./dist/components/Modal/Modal.d.ts",
83
+ "import": "./dist/components/Modal/index.js"
81
84
  },
82
85
  "./SidebarFixed": {
83
- "import": "./dist/components/SidebarFixed/index.js",
84
- "types": "./dist/components/SidebarFixed/SidebarFixed.d.ts"
86
+ "types": "./dist/components/SidebarFixed/SidebarFixed.d.ts",
87
+ "import": "./dist/components/SidebarFixed/index.js"
85
88
  },
86
89
  "./Table": {
87
- "import": "./dist/components/Table/index.js",
88
- "types": "./dist/components/Table/Table.d.ts"
90
+ "types": "./dist/components/Table/Table.d.ts",
91
+ "import": "./dist/components/Table/index.js"
89
92
  },
90
93
  "./Tabs": {
91
- "import": "./dist/components/Tabs/index.js",
92
- "types": "./dist/components/Tabs/Tabs.d.ts"
94
+ "types": "./dist/components/Tabs/Tabs.d.ts",
95
+ "import": "./dist/components/Tabs/index.js"
93
96
  },
94
97
  "./Checkbox": {
95
- "import": "./dist/forms/Checkbox/index.js",
96
- "types": "./dist/forms/Checkbox/Checkbox.d.ts"
98
+ "types": "./dist/forms/Checkbox/Checkbox.d.ts",
99
+ "import": "./dist/forms/Checkbox/index.js"
97
100
  },
98
101
  "./Input": {
99
- "import": "./dist/forms/Input/index.js",
100
- "types": "./dist/forms/Input/Input.d.ts"
102
+ "types": "./dist/forms/Input/Input.d.ts",
103
+ "import": "./dist/forms/Input/index.js"
101
104
  },
102
105
  "./InputHelpText": {
103
- "import": "./dist/forms/InputHelpText/index.js",
104
- "types": "./dist/forms/InputHelpText/InputHelpText.d.ts"
106
+ "types": "./dist/forms/InputHelpText/InputHelpText.d.ts",
107
+ "import": "./dist/forms/InputHelpText/index.js"
105
108
  },
106
109
  "./InputLabel": {
107
- "import": "./dist/forms/InputLabel/index.js",
108
- "types": "./dist/forms/InputLabel/InputLabel.d.ts"
110
+ "types": "./dist/forms/InputLabel/InputLabel.d.ts",
111
+ "import": "./dist/forms/InputLabel/index.js"
109
112
  },
110
113
  "./InputMask": {
111
- "import": "./dist/forms/InputMask/index.js",
112
- "types": "./dist/forms/InputMask/InputMask.d.ts"
114
+ "types": "./dist/forms/InputMask/InputMask.d.ts",
115
+ "import": "./dist/forms/InputMask/index.js"
113
116
  },
114
117
  "./Alert": {
115
- "import": "./dist/indicators/Alert/index.js",
116
- "types": "./dist/indicators/Alert/Alert.d.ts"
118
+ "types": "./dist/indicators/Alert/Alert.d.ts",
119
+ "import": "./dist/indicators/Alert/index.js"
117
120
  },
118
121
  "./Badge": {
119
- "import": "./dist/indicators/Badge/index.js",
120
- "types": "./dist/indicators/Badge/Badge.d.ts"
122
+ "types": "./dist/indicators/Badge/Badge.d.ts",
123
+ "import": "./dist/indicators/Badge/index.js"
121
124
  },
122
125
  "./Tag": {
123
- "import": "./dist/indicators/Tag/index.js",
124
- "types": "./dist/indicators/Tag/Tag.d.ts"
126
+ "types": "./dist/indicators/Tag/Tag.d.ts",
127
+ "import": "./dist/indicators/Tag/index.js"
125
128
  },
126
129
  "./Tooltip": {
127
- "import": "./dist/indicators/Tooltip/index.js",
128
- "types": "./dist/indicators/Tooltip/Tooltip.d.ts"
130
+ "types": "./dist/indicators/Tooltip/Tooltip.d.ts",
131
+ "import": "./dist/indicators/Tooltip/index.js"
129
132
  },
130
133
  "./ActionBar": {
131
- "import": "./dist/layout/ActionBar/index.js",
132
- "types": "./dist/layout/ActionBar/ActionBar.d.ts"
134
+ "types": "./dist/layout/ActionBar/ActionBar.d.ts",
135
+ "import": "./dist/layout/ActionBar/index.js"
133
136
  },
134
137
  "./Box": {
135
- "import": "./dist/layout/Box/index.js",
136
- "types": "./dist/layout/Box/Box.d.ts"
138
+ "types": "./dist/layout/Box/Box.d.ts",
139
+ "import": "./dist/layout/Box/index.js"
137
140
  },
138
141
  "./Container": {
139
- "import": "./dist/layout/Container/index.js",
140
- "types": "./dist/layout/Container/Container.d.ts"
142
+ "types": "./dist/layout/Container/Container.d.ts",
143
+ "import": "./dist/layout/Container/index.js"
141
144
  },
142
145
  "./Breadcrumb": {
143
- "import": "./dist/navigation/Breadcrumb/index.js",
144
- "types": "./dist/navigation/Breadcrumb/Breadcrumb.d.ts"
146
+ "types": "./dist/navigation/Breadcrumb/Breadcrumb.d.ts",
147
+ "import": "./dist/navigation/Breadcrumb/index.js"
145
148
  },
146
149
  "./HelpLink": {
147
- "import": "./dist/navigation/HelpLink/index.js",
148
- "types": "./dist/navigation/HelpLink/HelpLink.d.ts"
150
+ "types": "./dist/navigation/HelpLink/HelpLink.d.ts",
151
+ "import": "./dist/navigation/HelpLink/index.js"
149
152
  },
150
153
  "./Stepper": {
151
- "import": "./dist/navigation/Stepper/index.js",
152
- "types": "./dist/navigation/Stepper/Stepper.d.ts"
154
+ "types": "./dist/navigation/Stepper/Stepper.d.ts",
155
+ "import": "./dist/navigation/Stepper/index.js"
153
156
  }
154
157
  },
155
158
  "scripts": {
@@ -1,7 +0,0 @@
1
- import x from '@tippyjs/react';
2
- import { memo } from 'react';
3
- import { jsx, Fragment } from 'react/jsx-runtime';
4
-
5
- var T=({isVisible:o=!0,appendTo:i=document.body,hideOnClick:e=!1,trigger:r="mouseenter",hideInMobile:a=!1,duration:l=150,interactive:n=!1,allowHTML:y=!0,maxWidth:d=250,touch:b=["hold",400],placement:c="top",content:m,children:p,...s})=>o?jsx(x,{...s,appendTo:i,hideOnClick:e,trigger:r,touch:a?["hold",999999]:b,duration:l,interactive:n,allowHTML:y,maxWidth:d,placement:c,content:jsx("div",{className:"break-words text-center",children:m}),children:p}):jsx(Fragment,{children:p}),h=memo(T);h.displayName="Tooltip";
6
-
7
- export { h as a };
@@ -1,48 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import React from 'react';
3
- import { IconProps } from '@/components/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,74 +0,0 @@
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,30 +0,0 @@
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,19 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IconProps } from '@/components/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,9 +0,0 @@
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,54 +0,0 @@
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,34 +0,0 @@
1
- import React from 'react';
2
- export declare const SidebarFixedComponent: React.FC<SidebarFixedProps>;
3
- declare const SidebarFixed: React.NamedExoticComponent<SidebarFixedProps>;
4
- interface SidebarFixedProps {
5
- /**
6
- * React children
7
- */
8
- children?: React.ReactNode;
9
- /**
10
- * Bottom actions
11
- */
12
- footerActions?: React.ReactNode;
13
- /** Sidebar is open
14
- * @default false
15
- */
16
- isOpen?: boolean;
17
- /**
18
- * Call when sidebar is closed
19
- * */
20
- onClose?: () => void;
21
- /**
22
- * Title displayed in header
23
- */
24
- title?: string;
25
- /**
26
- * Help external link
27
- */
28
- helpLink?: string;
29
- /** The parent element that the sidebar will be attached to
30
- * @default 'document.body'
31
- */
32
- parentSelector?: HTMLElement | null;
33
- }
34
- export { SidebarFixed, type SidebarFixedProps };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
- declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
- declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
5
- declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
- declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
7
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
8
- declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
- declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
@@ -1,21 +0,0 @@
1
- import { TabsItemInterface } from './TabsItem';
2
- declare const Tabs: import("react").MemoExoticComponent<({ className, items, activeItem, onChange }: TabsProps) => import("react/jsx-runtime").JSX.Element | null>;
3
- interface TabsProps {
4
- /**
5
- * Custom class name
6
- * */
7
- className?: string;
8
- /**
9
- * ID of the active item
10
- */
11
- activeItem?: string;
12
- /**
13
- * Tab item
14
- */
15
- items?: TabsItemInterface[];
16
- /**
17
- * Callback handle when selected item change
18
- * */
19
- onChange?: (activeTabId: string) => void;
20
- }
21
- export { Tabs, type TabsProps };
@@ -1,34 +0,0 @@
1
- interface TabsItemProps extends TabsItemInterface {
2
- /**
3
- * Item is active
4
- */
5
- active?: boolean;
6
- /**
7
- * Call on tab change
8
- */
9
- onChange: (arg0: string) => void;
10
- }
11
- declare const TabsItem: import("react").MemoExoticComponent<({ id, title, titleComplement, active, disabled, onChange, className }: TabsItemProps) => import("react/jsx-runtime").JSX.Element>;
12
- interface TabsItemInterface {
13
- /**
14
- * Custom class name
15
- */
16
- className?: string;
17
- /**
18
- * Item identification
19
- */
20
- id: string;
21
- /**
22
- * Item visible title
23
- */
24
- title: string;
25
- /**
26
- * Complement to title
27
- * */
28
- titleComplement?: string | React.ReactNode | ((isActive: boolean) => React.ReactNode);
29
- /**
30
- * Disabled a specific tab
31
- */
32
- disabled?: boolean;
33
- }
34
- export { TabsItem, type TabsItemInterface };
@@ -1,9 +0,0 @@
1
- export * from './Button';
2
- export * from './DataTable';
3
- export * from './Icon';
4
- export * from './IconCircular';
5
- export * from './LoadingPlaceholder';
6
- export * from './Modal';
7
- export * from './SidebarFixed';
8
- export * from './Table';
9
- export * from './Tabs';
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { InputHelpTextProps } from '@/forms/InputHelpText';
3
- declare const Checkbox: React.MemoExoticComponent<React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>>;
4
- interface CheckboxProps extends InputHelpTextProps, React.InputHTMLAttributes<HTMLInputElement> {
5
- /**
6
- * Custom class name
7
- * */
8
- className?: string;
9
- /**
10
- * Text label of the checkbox
11
- * */
12
- label?: string | React.ReactNode;
13
- /**
14
- * Checkbox box isn't selected nwither unselected
15
- * @default false
16
- * */
17
- indeterminate?: boolean;
18
- /**
19
- * Item align
20
- * @default 'baseline'
21
- * */
22
- boxAlign?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
23
- /**
24
- * Error message to display
25
- * */
26
- errorMessage?: string;
27
- }
28
- export { Checkbox, type CheckboxProps };
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { InputHelpTextProps } from '../InputHelpText';
3
- import { InputLabelProps } from '../InputLabel';
4
- declare const Input: React.MemoExoticComponent<React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>>;
5
- interface InputProps extends InputLabelProps, InputHelpTextProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> {
6
- /**
7
- * Input custom class name
8
- * */
9
- className?: string;
10
- /**
11
- * Form group custom class name
12
- * */
13
- formGroupClassName?: string;
14
- /** Input size
15
- * @default default
16
- * */
17
- variant?: 'default' | 'small' | 'large' | 'xlarge';
18
- /**
19
- * Error message to display
20
- * */
21
- errorMessage?: string;
22
- /**
23
- * Custom element to append at the start of input
24
- * */
25
- prefix?: React.ReactNode | string | null;
26
- /**
27
- * Custom element to append at the end of input
28
- * */
29
- sufix?: React.ReactNode | string | null;
30
- /**
31
- * Set visibility of input prefix border
32
- * @default true
33
- * */
34
- prefixBorder?: boolean;
35
- /**
36
- * Set visibility of input sufix border
37
- * @default true
38
- * */
39
- sufixBorder?: boolean;
40
- }
41
- export { Input, type InputProps };