norma-library 0.4.1 → 0.4.3

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 (138) hide show
  1. package/dist/components/button/button.d.ts +3 -0
  2. package/dist/components/button/index.d.ts +1 -0
  3. package/dist/components/{Button → button}/types.d.ts +18 -18
  4. package/dist/components/card/card-header.d.ts +3 -0
  5. package/dist/components/card/card.d.ts +3 -0
  6. package/dist/components/card/index.d.ts +1 -0
  7. package/dist/components/card/styles.d.ts +811 -0
  8. package/dist/components/{Card → card}/types.d.ts +12 -12
  9. package/dist/components/checkbox/checkbox.d.ts +3 -0
  10. package/dist/components/checkbox/index.d.ts +1 -0
  11. package/dist/components/{Checkbox → checkbox}/types.d.ts +23 -23
  12. package/dist/components/icon/default.d.ts +210 -0
  13. package/dist/components/icon/defaultIcon.d.ts +5 -0
  14. package/dist/components/icon/icons-ia.d.ts +71 -0
  15. package/dist/components/icon/index.d.ts +234 -0
  16. package/dist/components/icon/norma.d.ts +30 -0
  17. package/dist/components/{Icon/NormaIcon.d.ts → icon/normaIcon.d.ts} +13 -13
  18. package/dist/components/icon/styles.d.ts +481 -0
  19. package/dist/components/{Icon → icon}/svg.d.ts +6 -6
  20. package/dist/components/{Icon → icon}/types.d.ts +12 -12
  21. package/dist/components/index.d.ts +8 -19
  22. package/dist/components/modal/index.d.ts +1 -0
  23. package/dist/components/{Modal/Modal.d.ts → modal/modal.d.ts} +3 -4
  24. package/dist/components/modal/modalFooter.d.ts +3 -0
  25. package/dist/components/modal/modalHeader.d.ts +3 -0
  26. package/dist/components/modal/styles.d.ts +540 -0
  27. package/dist/components/{Modal → modal}/types.d.ts +27 -24
  28. package/dist/components/progress-bar/index.d.ts +1 -0
  29. package/dist/components/{ProgressBar/ProgressBar.d.ts → progress-bar/progress-bar.d.ts} +7 -8
  30. package/dist/components/progress-bar/styles.d.ts +272 -0
  31. package/dist/components/{ProgressBar → progress-bar}/types.d.ts +22 -22
  32. package/dist/components/radio/index.d.ts +1 -0
  33. package/dist/components/radio/radio.d.ts +3 -0
  34. package/dist/components/{Radio → radio}/types.d.ts +16 -16
  35. package/dist/components/tag/index.d.ts +1 -0
  36. package/dist/components/{Tag/Tag.d.ts → tag/tag.d.ts} +3 -4
  37. package/dist/components/{Tag → tag}/types.d.ts +25 -25
  38. package/dist/components/textfield/index.d.ts +1 -0
  39. package/dist/components/textfield/textfield.d.ts +3 -0
  40. package/dist/components/{TextField → textfield}/types.d.ts +42 -42
  41. package/dist/helpers/clients.d.ts +5 -0
  42. package/dist/helpers/colors.d.ts +174 -0
  43. package/dist/helpers/index.d.ts +3 -0
  44. package/dist/helpers/sizes.d.ts +6 -0
  45. package/dist/helpers/variants.d.ts +2 -0
  46. package/dist/index.d.ts +1 -1
  47. package/dist/index.js +8 -0
  48. package/dist/norma-library.cjs.development.js +1286 -0
  49. package/dist/norma-library.cjs.development.js.map +1 -0
  50. package/dist/norma-library.cjs.production.min.js +2 -0
  51. package/dist/norma-library.cjs.production.min.js.map +1 -0
  52. package/dist/norma-library.esm.js +1274 -0
  53. package/dist/norma-library.esm.js.map +1 -0
  54. package/package.json +55 -86
  55. package/src/components/button/button.stories.tsx +44 -0
  56. package/src/components/button/button.tsx +18 -0
  57. package/src/components/button/index.ts +1 -0
  58. package/src/components/button/types.ts +48 -0
  59. package/src/components/card/card-header.tsx +8 -0
  60. package/src/components/card/card.stories.tsx +28 -0
  61. package/src/components/card/card.tsx +13 -0
  62. package/src/components/card/index.ts +1 -0
  63. package/src/components/card/styles.tsx +29 -0
  64. package/src/components/card/types.ts +14 -0
  65. package/src/components/checkbox/checkbox.stories.tsx +66 -0
  66. package/src/components/checkbox/checkbox.tsx +13 -0
  67. package/src/components/checkbox/index.ts +1 -0
  68. package/src/components/checkbox/types.ts +30 -0
  69. package/src/components/icon/default.tsx +1459 -0
  70. package/src/components/icon/defaultIcon.tsx +82 -0
  71. package/src/components/icon/icon.stories.tsx +44 -0
  72. package/src/components/icon/icons-ia.tsx +107 -0
  73. package/src/components/icon/index.ts +11 -0
  74. package/src/components/icon/norma.tsx +523 -0
  75. package/src/components/icon/normaIcon.tsx +94 -0
  76. package/src/components/icon/styles.ts +11 -0
  77. package/src/components/icon/svg.tsx +24 -0
  78. package/src/components/icon/types.ts +14 -0
  79. package/src/components/index.ts +8 -0
  80. package/src/components/modal/index.ts +1 -0
  81. package/src/components/modal/modal.stories.tsx +55 -0
  82. package/src/components/modal/modal.tsx +42 -0
  83. package/src/components/modal/modalFooter.tsx +32 -0
  84. package/src/components/modal/modalHeader.tsx +46 -0
  85. package/src/components/modal/styles.tsx +13 -0
  86. package/src/components/modal/types.ts +47 -0
  87. package/src/components/progress-bar/index.ts +1 -0
  88. package/src/components/progress-bar/progress-bar.stories.tsx +68 -0
  89. package/src/components/progress-bar/progress-bar.tsx +38 -0
  90. package/src/components/progress-bar/styles.tsx +27 -0
  91. package/src/components/progress-bar/types.ts +35 -0
  92. package/src/components/radio/index.ts +1 -0
  93. package/src/components/radio/radio.stories.tsx +150 -0
  94. package/src/components/radio/radio.tsx +13 -0
  95. package/src/components/radio/types.ts +27 -0
  96. package/src/components/tag/index.ts +1 -0
  97. package/src/components/tag/tag.stories.tsx +80 -0
  98. package/src/components/tag/tag.tsx +13 -0
  99. package/src/components/tag/types.ts +47 -0
  100. package/src/components/textfield/index.ts +1 -0
  101. package/src/components/textfield/textfield.stories.tsx +376 -0
  102. package/src/components/textfield/textfield.tsx +23 -0
  103. package/src/components/textfield/types.ts +93 -0
  104. package/src/helpers/clients.ts +6 -0
  105. package/src/helpers/colors.ts +209 -0
  106. package/src/helpers/index.ts +3 -0
  107. package/src/helpers/sizes.ts +26 -0
  108. package/src/helpers/variants.ts +3 -0
  109. package/src/index.tsx +1 -0
  110. package/dist/components/Button/Button.d.ts +0 -4
  111. package/dist/components/Button/index.d.ts +0 -2
  112. package/dist/components/Card/Card.d.ts +0 -4
  113. package/dist/components/Card/CardHeader.d.ts +0 -4
  114. package/dist/components/Card/index.d.ts +0 -4
  115. package/dist/components/Card/styles.d.ts +0 -818
  116. package/dist/components/Checkbox/Checkbox.d.ts +0 -4
  117. package/dist/components/Checkbox/index.d.ts +0 -2
  118. package/dist/components/Icon/DefaultIcon.d.ts +0 -5
  119. package/dist/components/Icon/default.d.ts +0 -209
  120. package/dist/components/Icon/index.d.ts +0 -233
  121. package/dist/components/Icon/norma.d.ts +0 -29
  122. package/dist/components/Icon/styles.d.ts +0 -485
  123. package/dist/components/Modal/ModalFooter.d.ts +0 -4
  124. package/dist/components/Modal/ModalHeader.d.ts +0 -4
  125. package/dist/components/Modal/index.d.ts +0 -2
  126. package/dist/components/Modal/styles.d.ts +0 -274
  127. package/dist/components/ProgressBar/index.d.ts +0 -2
  128. package/dist/components/ProgressBar/styles.d.ts +0 -276
  129. package/dist/components/Radio/Radio.d.ts +0 -4
  130. package/dist/components/Radio/index.d.ts +0 -2
  131. package/dist/components/Tag/index.d.ts +0 -2
  132. package/dist/components/TextField/TextField.d.ts +0 -4
  133. package/dist/components/TextField/index.d.ts +0 -2
  134. package/dist/index.es.js +0 -15023
  135. package/dist/index.es.js.map +0 -1
  136. package/dist/index.umd.js +0 -419
  137. package/dist/index.umd.js.map +0 -1
  138. package/dist/vite.svg +0 -1
@@ -0,0 +1,272 @@
1
+ import { StyledProgressBarProps } from './types';
2
+ export declare const StyledProgressBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("@mui/material").LinearProgressProps, StyledProgressBarProps>>;
3
+ export declare const StyledProgressBarLabel: import("styled-components").IStyledComponent<"web", {
4
+ ref?: any;
5
+ key?: any;
6
+ defaultChecked?: any;
7
+ defaultValue?: any;
8
+ suppressContentEditableWarning?: any;
9
+ suppressHydrationWarning?: any;
10
+ accessKey?: any;
11
+ autoFocus?: any;
12
+ className?: any;
13
+ contentEditable?: any;
14
+ contextMenu?: any;
15
+ dir?: any;
16
+ draggable?: any;
17
+ hidden?: any;
18
+ id?: any;
19
+ lang?: any;
20
+ nonce?: any;
21
+ placeholder?: any;
22
+ slot?: any;
23
+ spellCheck?: any;
24
+ style?: any;
25
+ tabIndex?: any;
26
+ title?: any;
27
+ translate?: any;
28
+ radioGroup?: any;
29
+ role?: any;
30
+ about?: any;
31
+ content?: any;
32
+ datatype?: any;
33
+ inlist?: any;
34
+ prefix?: any;
35
+ property?: any;
36
+ rel?: any;
37
+ resource?: any;
38
+ rev?: any;
39
+ typeof?: any;
40
+ vocab?: any;
41
+ autoCapitalize?: any;
42
+ autoCorrect?: any;
43
+ autoSave?: any;
44
+ color?: any;
45
+ itemProp?: any;
46
+ itemScope?: any;
47
+ itemType?: any;
48
+ itemID?: any;
49
+ itemRef?: any;
50
+ results?: any;
51
+ security?: any;
52
+ unselectable?: any;
53
+ inputMode?: any;
54
+ is?: any;
55
+ 'aria-activedescendant'?: any;
56
+ 'aria-atomic'?: any;
57
+ 'aria-autocomplete'?: any;
58
+ 'aria-braillelabel'?: any;
59
+ 'aria-brailleroledescription'?: any;
60
+ 'aria-busy'?: any;
61
+ 'aria-checked'?: any;
62
+ 'aria-colcount'?: any;
63
+ 'aria-colindex'?: any;
64
+ 'aria-colindextext'?: any;
65
+ 'aria-colspan'?: any;
66
+ 'aria-controls'?: any;
67
+ 'aria-current'?: any;
68
+ 'aria-describedby'?: any;
69
+ 'aria-description'?: any;
70
+ 'aria-details'?: any;
71
+ 'aria-disabled'?: any;
72
+ 'aria-dropeffect'?: any;
73
+ 'aria-errormessage'?: any;
74
+ 'aria-expanded'?: any;
75
+ 'aria-flowto'?: any;
76
+ 'aria-grabbed'?: any;
77
+ 'aria-haspopup'?: any;
78
+ 'aria-hidden'?: any;
79
+ 'aria-invalid'?: any;
80
+ 'aria-keyshortcuts'?: any;
81
+ 'aria-label'?: any;
82
+ 'aria-labelledby'?: any;
83
+ 'aria-level'?: any;
84
+ 'aria-live'?: any;
85
+ 'aria-modal'?: any;
86
+ 'aria-multiline'?: any;
87
+ 'aria-multiselectable'?: any;
88
+ 'aria-orientation'?: any;
89
+ 'aria-owns'?: any;
90
+ 'aria-placeholder'?: any;
91
+ 'aria-posinset'?: any;
92
+ 'aria-pressed'?: any;
93
+ 'aria-readonly'?: any;
94
+ 'aria-relevant'?: any;
95
+ 'aria-required'?: any;
96
+ 'aria-roledescription'?: any;
97
+ 'aria-rowcount'?: any;
98
+ 'aria-rowindex'?: any;
99
+ 'aria-rowindextext'?: any;
100
+ 'aria-rowspan'?: any;
101
+ 'aria-selected'?: any;
102
+ 'aria-setsize'?: any;
103
+ 'aria-sort'?: any;
104
+ 'aria-valuemax'?: any;
105
+ 'aria-valuemin'?: any;
106
+ 'aria-valuenow'?: any;
107
+ 'aria-valuetext'?: any;
108
+ children?: any;
109
+ dangerouslySetInnerHTML?: any;
110
+ onCopy?: any;
111
+ onCopyCapture?: any;
112
+ onCut?: any;
113
+ onCutCapture?: any;
114
+ onPaste?: any;
115
+ onPasteCapture?: any;
116
+ onCompositionEnd?: any;
117
+ onCompositionEndCapture?: any;
118
+ onCompositionStart?: any;
119
+ onCompositionStartCapture?: any;
120
+ onCompositionUpdate?: any;
121
+ onCompositionUpdateCapture?: any;
122
+ onFocus?: any;
123
+ onFocusCapture?: any;
124
+ onBlur?: any;
125
+ onBlurCapture?: any;
126
+ onChange?: any;
127
+ onChangeCapture?: any;
128
+ onBeforeInput?: any;
129
+ onBeforeInputCapture?: any;
130
+ onInput?: any;
131
+ onInputCapture?: any;
132
+ onReset?: any;
133
+ onResetCapture?: any;
134
+ onSubmit?: any;
135
+ onSubmitCapture?: any;
136
+ onInvalid?: any;
137
+ onInvalidCapture?: any;
138
+ onLoad?: any;
139
+ onLoadCapture?: any;
140
+ onError?: any;
141
+ onErrorCapture?: any;
142
+ onKeyDown?: any;
143
+ onKeyDownCapture?: any;
144
+ onKeyPress?: any;
145
+ onKeyPressCapture?: any;
146
+ onKeyUp?: any;
147
+ onKeyUpCapture?: any;
148
+ onAbort?: any;
149
+ onAbortCapture?: any;
150
+ onCanPlay?: any;
151
+ onCanPlayCapture?: any;
152
+ onCanPlayThrough?: any;
153
+ onCanPlayThroughCapture?: any;
154
+ onDurationChange?: any;
155
+ onDurationChangeCapture?: any;
156
+ onEmptied?: any;
157
+ onEmptiedCapture?: any;
158
+ onEncrypted?: any;
159
+ onEncryptedCapture?: any;
160
+ onEnded?: any;
161
+ onEndedCapture?: any;
162
+ onLoadedData?: any;
163
+ onLoadedDataCapture?: any;
164
+ onLoadedMetadata?: any;
165
+ onLoadedMetadataCapture?: any;
166
+ onLoadStart?: any;
167
+ onLoadStartCapture?: any;
168
+ onPause?: any;
169
+ onPauseCapture?: any;
170
+ onPlay?: any;
171
+ onPlayCapture?: any;
172
+ onPlaying?: any;
173
+ onPlayingCapture?: any;
174
+ onProgress?: any;
175
+ onProgressCapture?: any;
176
+ onRateChange?: any;
177
+ onRateChangeCapture?: any;
178
+ onResize?: any;
179
+ onResizeCapture?: any;
180
+ onSeeked?: any;
181
+ onSeekedCapture?: any;
182
+ onSeeking?: any;
183
+ onSeekingCapture?: any;
184
+ onStalled?: any;
185
+ onStalledCapture?: any;
186
+ onSuspend?: any;
187
+ onSuspendCapture?: any;
188
+ onTimeUpdate?: any;
189
+ onTimeUpdateCapture?: any;
190
+ onVolumeChange?: any;
191
+ onVolumeChangeCapture?: any;
192
+ onWaiting?: any;
193
+ onWaitingCapture?: any;
194
+ onAuxClick?: any;
195
+ onAuxClickCapture?: any;
196
+ onClick?: any;
197
+ onClickCapture?: any;
198
+ onContextMenu?: any;
199
+ onContextMenuCapture?: any;
200
+ onDoubleClick?: any;
201
+ onDoubleClickCapture?: any;
202
+ onDrag?: any;
203
+ onDragCapture?: any;
204
+ onDragEnd?: any;
205
+ onDragEndCapture?: any;
206
+ onDragEnter?: any;
207
+ onDragEnterCapture?: any;
208
+ onDragExit?: any;
209
+ onDragExitCapture?: any;
210
+ onDragLeave?: any;
211
+ onDragLeaveCapture?: any;
212
+ onDragOver?: any;
213
+ onDragOverCapture?: any;
214
+ onDragStart?: any;
215
+ onDragStartCapture?: any;
216
+ onDrop?: any;
217
+ onDropCapture?: any;
218
+ onMouseDown?: any;
219
+ onMouseDownCapture?: any;
220
+ onMouseEnter?: any;
221
+ onMouseLeave?: any;
222
+ onMouseMove?: any;
223
+ onMouseMoveCapture?: any;
224
+ onMouseOut?: any;
225
+ onMouseOutCapture?: any;
226
+ onMouseOver?: any;
227
+ onMouseOverCapture?: any;
228
+ onMouseUp?: any;
229
+ onMouseUpCapture?: any;
230
+ onSelect?: any;
231
+ onSelectCapture?: any;
232
+ onTouchCancel?: any;
233
+ onTouchCancelCapture?: any;
234
+ onTouchEnd?: any;
235
+ onTouchEndCapture?: any;
236
+ onTouchMove?: any;
237
+ onTouchMoveCapture?: any;
238
+ onTouchStart?: any;
239
+ onTouchStartCapture?: any;
240
+ onPointerDown?: any;
241
+ onPointerDownCapture?: any;
242
+ onPointerMove?: any;
243
+ onPointerMoveCapture?: any;
244
+ onPointerUp?: any;
245
+ onPointerUpCapture?: any;
246
+ onPointerCancel?: any;
247
+ onPointerCancelCapture?: any;
248
+ onPointerEnter?: any;
249
+ onPointerEnterCapture?: any;
250
+ onPointerLeave?: any;
251
+ onPointerLeaveCapture?: any;
252
+ onPointerOver?: any;
253
+ onPointerOverCapture?: any;
254
+ onPointerOut?: any;
255
+ onPointerOutCapture?: any;
256
+ onGotPointerCapture?: any;
257
+ onGotPointerCaptureCapture?: any;
258
+ onLostPointerCapture?: any;
259
+ onLostPointerCaptureCapture?: any;
260
+ onScroll?: any;
261
+ onScrollCapture?: any;
262
+ onWheel?: any;
263
+ onWheelCapture?: any;
264
+ onAnimationStart?: any;
265
+ onAnimationStartCapture?: any;
266
+ onAnimationEnd?: any;
267
+ onAnimationEndCapture?: any;
268
+ onAnimationIteration?: any;
269
+ onAnimationIterationCapture?: any;
270
+ onTransitionEnd?: any;
271
+ onTransitionEndCapture?: any;
272
+ }>;
@@ -1,22 +1,22 @@
1
- import { SxProps, LinearProgressProps } from '@mui/material';
2
- import { Theme } from '@emotion/react';
3
- import { OverridableStringUnion } from '@mui/types';
4
- import ProgressBar from './ProgressBar';
5
- export interface LinearProgressPropsColorOverrides {
6
- }
7
- type MuiProgressBarBaseProps = Pick<LinearProgressProps, 'sx'>;
8
- export interface ProgressBarBaseProps extends MuiProgressBarBaseProps {
9
- sx?: SxProps<Theme>;
10
- usage?: number;
11
- value?: number;
12
- total?: number;
13
- label?: string;
14
- colorCustom?: string;
15
- variant?: 'determinate' | 'indeterminate' | 'buffer' | 'query';
16
- color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit', LinearProgressPropsColorOverrides>;
17
- }
18
- export type StyledProgressBarProps = {
19
- colorCustom?: string;
20
- };
21
- export type ProgressBarType = keyof typeof ProgressBar;
22
- export {};
1
+ import { SxProps, LinearProgressProps } from '@mui/material';
2
+ import { Theme } from '@emotion/react';
3
+ import { OverridableStringUnion } from '@mui/types';
4
+ import { ProgressBar } from './progress-bar';
5
+ export interface LinearProgressPropsColorOverrides {
6
+ }
7
+ declare type MuiProgressBarBaseProps = Pick<LinearProgressProps, 'sx'>;
8
+ export interface ProgressBarBaseProps extends MuiProgressBarBaseProps {
9
+ sx?: SxProps<Theme>;
10
+ usage?: number;
11
+ value?: number;
12
+ total?: number;
13
+ label?: string;
14
+ colorCustom?: string;
15
+ variant?: 'determinate' | 'indeterminate' | 'buffer' | 'query';
16
+ color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit', LinearProgressPropsColorOverrides>;
17
+ }
18
+ export declare type StyledProgressBarProps = {
19
+ colorCustom?: string;
20
+ };
21
+ export declare type ProgressBarType = keyof typeof ProgressBar;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from './radio';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RadioBaseProps } from './types';
3
+ export declare const Radiobox: React.FC<RadioBaseProps>;
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import { OverridableStringUnion } from '@mui/types';
3
- import { Radio, ButtonBaseProps as MuiButtonBaseProps, RadioPropsColorOverrides, RadioPropsSizeOverrides } from '@mui/material';
4
- type MuiRadioBaseProps = Pick<MuiButtonBaseProps, 'sx'>;
5
- export interface RadioBaseProps extends MuiRadioBaseProps {
6
- name?: string;
7
- disabled?: boolean;
8
- required?: boolean;
9
- tabIndex?: number;
10
- value?: unknown;
11
- size?: OverridableStringUnion<'small' | 'medium', RadioPropsSizeOverrides>;
12
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
13
- color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default', RadioPropsColorOverrides>;
14
- }
15
- export type RadioType = keyof typeof Radio;
16
- export {};
1
+ import React from 'react';
2
+ import { OverridableStringUnion } from '@mui/types';
3
+ import { Radio, ButtonBaseProps as MuiButtonBaseProps, RadioPropsColorOverrides, RadioPropsSizeOverrides } from '@mui/material';
4
+ declare type MuiRadioBaseProps = Pick<MuiButtonBaseProps, 'sx'>;
5
+ export interface RadioBaseProps extends MuiRadioBaseProps {
6
+ name?: string;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ tabIndex?: number;
10
+ value?: unknown;
11
+ size?: OverridableStringUnion<'small' | 'medium', RadioPropsSizeOverrides>;
12
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
13
+ color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default', RadioPropsColorOverrides>;
14
+ }
15
+ export declare type RadioType = keyof typeof Radio;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './tag';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- import { TagBaseProps } from './types';
3
- declare const Tag: React.FC<TagBaseProps>;
4
- export default Tag;
1
+ import React from 'react';
2
+ import { TagBaseProps } from './types';
3
+ export declare const Tag: React.FC<TagBaseProps>;
@@ -1,25 +1,25 @@
1
- /// <reference types="react" />
2
- import { ChipProps, ChipPropsColorOverrides, ChipPropsSizeOverrides, ChipPropsVariantOverrides, SxProps } from '@mui/material';
3
- import { OverridableStringUnion } from '@mui/types';
4
- import { Theme } from '@emotion/react';
5
- import Tag from './Tag';
6
- type MuiTagBaseProps = Pick<ChipProps, 'sx'>;
7
- export interface TagBaseProps extends MuiTagBaseProps {
8
- sx?: SxProps<Theme>;
9
- avatar?: React.ReactElement;
10
- children?: null;
11
- clickable?: boolean;
12
- deleteIcon?: React.ReactElement;
13
- disabled?: boolean;
14
- icon?: React.ReactElement;
15
- label?: React.ReactNode;
16
- onDelete?: React.EventHandler<any>;
17
- size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
18
- skipFocusWhenDisabled?: boolean;
19
- tabIndex?: number;
20
- variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
21
- onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
22
- color?: OverridableStringUnion<'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ChipPropsColorOverrides>;
23
- }
24
- export type TagType = keyof typeof Tag;
25
- export {};
1
+ /// <reference types="react" />
2
+ import { ChipProps, ChipPropsColorOverrides, ChipPropsSizeOverrides, ChipPropsVariantOverrides, SxProps } from '@mui/material';
3
+ import { OverridableStringUnion } from '@mui/types';
4
+ import { Theme } from '@emotion/react';
5
+ import Tag from './tag';
6
+ declare type MuiTagBaseProps = Pick<ChipProps, 'sx'>;
7
+ export interface TagBaseProps extends MuiTagBaseProps {
8
+ sx?: SxProps<Theme>;
9
+ avatar?: React.ReactElement;
10
+ children?: null;
11
+ clickable?: boolean;
12
+ deleteIcon?: React.ReactElement;
13
+ disabled?: boolean;
14
+ icon?: React.ReactElement;
15
+ label?: React.ReactNode;
16
+ onDelete?: React.EventHandler<any>;
17
+ size?: OverridableStringUnion<'small' | 'medium', ChipPropsSizeOverrides>;
18
+ skipFocusWhenDisabled?: boolean;
19
+ tabIndex?: number;
20
+ variant?: OverridableStringUnion<'filled' | 'outlined', ChipPropsVariantOverrides>;
21
+ onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
22
+ color?: OverridableStringUnion<'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ChipPropsColorOverrides>;
23
+ }
24
+ export declare type TagType = keyof typeof Tag;
25
+ export {};
@@ -0,0 +1 @@
1
+ export * from './textfield';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { TextFieldBaseProps } from './types';
3
+ export declare const TextField: React.FC<TextFieldBaseProps>;
@@ -1,42 +1,42 @@
1
- import React, { ReactNode } from 'react';
2
- import { TextFieldProps as MuiTextFieldProps, TextFieldPropsColorOverrides, TextFieldPropsSizeOverrides } from '@mui/material/TextField';
3
- import { FormHelperTextProps, InputBaseProps, InputLabelProps, OutlinedInputProps, SelectProps } from '@mui/material';
4
- import { InputProps as StandardInputProps } from '@mui/material/Input';
5
- import { OverridableStringUnion } from '@mui/types';
6
- import { TextField } from '@mui/material';
7
- export type TextFieldValue = string | number;
8
- export type TextFieldVariant = 'standard' | 'outlined' | 'filled';
9
- type MuiTextFieldBaseProps = Pick<MuiTextFieldProps, 'onChange' | 'onBlur' | 'onFocus' | 'defaultValue' | 'size' | 'value' | 'id' | 'fullWidth' | 'helperText' | 'type' | 'InputProps' | 'InputLabelProps' | 'autoComplete' | 'label' | 'helperText' | 'InputLabelProps' | 'margin' | 'maxRows' | 'minRows' | 'multiline' | 'name' | 'placeholder' | 'rows' | 'select' | 'SelectProps' | 'sx' | 'autoFocus' | 'error' | 'classes' | 'children' | 'color' | 'variant'>;
10
- export interface TextFieldBaseProps extends MuiTextFieldBaseProps {
11
- id?: string;
12
- name?: string;
13
- defaultValue?: string;
14
- disabled?: boolean;
15
- required?: boolean;
16
- type?: React.InputHTMLAttributes<unknown>['type'];
17
- hasError?: boolean;
18
- label?: ReactNode;
19
- children?: ReactNode;
20
- error?: boolean;
21
- variant?: TextFieldVariant;
22
- helperText?: React.ReactNode;
23
- InputLabelProps?: Partial<InputLabelProps>;
24
- InputProps?: Partial<OutlinedInputProps>;
25
- autoComplete?: string;
26
- placeholder?: string;
27
- multiline?: boolean;
28
- rows?: string | number;
29
- maxRows?: string | number;
30
- minRows?: string | number;
31
- select?: boolean;
32
- SelectProps?: Partial<SelectProps>;
33
- onClick?: InputBaseProps['onClick'];
34
- onBlur?: InputBaseProps['onBlur'];
35
- onFocus?: StandardInputProps['onFocus'];
36
- size?: OverridableStringUnion<'small' | 'medium', TextFieldPropsSizeOverrides>;
37
- FormHelperTextProps?: Partial<FormHelperTextProps>;
38
- color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', TextFieldPropsColorOverrides>;
39
- value?: unknown;
40
- }
41
- export type TextFieldType = keyof typeof TextField;
42
- export {};
1
+ import React, { ReactNode } from 'react';
2
+ import { TextFieldProps as MuiTextFieldProps, TextFieldPropsColorOverrides, TextFieldPropsSizeOverrides } from '@mui/material/TextField';
3
+ import { FormHelperTextProps, InputBaseProps, InputLabelProps, OutlinedInputProps, SelectProps } from '@mui/material';
4
+ import { InputProps as StandardInputProps } from '@mui/material/Input';
5
+ import { OverridableStringUnion } from '@mui/types';
6
+ import { TextField } from '@mui/material';
7
+ export declare type TextFieldValue = string | number;
8
+ export declare type TextFieldVariant = 'standard' | 'outlined' | 'filled';
9
+ declare type MuiTextFieldBaseProps = Pick<MuiTextFieldProps, 'onChange' | 'onBlur' | 'onFocus' | 'defaultValue' | 'size' | 'value' | 'id' | 'fullWidth' | 'helperText' | 'type' | 'InputProps' | 'InputLabelProps' | 'autoComplete' | 'label' | 'helperText' | 'InputLabelProps' | 'margin' | 'maxRows' | 'minRows' | 'multiline' | 'name' | 'placeholder' | 'rows' | 'select' | 'SelectProps' | 'sx' | 'autoFocus' | 'error' | 'classes' | 'children' | 'color' | 'variant'>;
10
+ export interface TextFieldBaseProps extends MuiTextFieldBaseProps {
11
+ id?: string;
12
+ name?: string;
13
+ defaultValue?: string;
14
+ disabled?: boolean;
15
+ required?: boolean;
16
+ type?: React.InputHTMLAttributes<unknown>['type'];
17
+ hasError?: boolean;
18
+ label?: ReactNode;
19
+ children?: ReactNode;
20
+ error?: boolean;
21
+ variant?: TextFieldVariant;
22
+ helperText?: React.ReactNode;
23
+ InputLabelProps?: Partial<InputLabelProps>;
24
+ InputProps?: Partial<OutlinedInputProps>;
25
+ autoComplete?: string;
26
+ placeholder?: string;
27
+ multiline?: boolean;
28
+ rows?: string | number;
29
+ maxRows?: string | number;
30
+ minRows?: string | number;
31
+ select?: boolean;
32
+ SelectProps?: Partial<SelectProps>;
33
+ onClick?: InputBaseProps['onClick'];
34
+ onBlur?: InputBaseProps['onBlur'];
35
+ onFocus?: StandardInputProps['onFocus'];
36
+ size?: OverridableStringUnion<'small' | 'medium', TextFieldPropsSizeOverrides>;
37
+ FormHelperTextProps?: Partial<FormHelperTextProps>;
38
+ color?: OverridableStringUnion<'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', TextFieldPropsColorOverrides>;
39
+ value?: unknown;
40
+ }
41
+ export declare type TextFieldType = keyof typeof TextField;
42
+ export {};
@@ -0,0 +1,5 @@
1
+ declare const CLIENT_COLORS: {
2
+ olos: string[];
3
+ bradesco: string[];
4
+ };
5
+ export default CLIENT_COLORS;