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.
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/{Button → button}/types.d.ts +18 -18
- package/dist/components/card/card-header.d.ts +3 -0
- package/dist/components/card/card.d.ts +3 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/styles.d.ts +811 -0
- package/dist/components/{Card → card}/types.d.ts +12 -12
- package/dist/components/checkbox/checkbox.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/{Checkbox → checkbox}/types.d.ts +23 -23
- package/dist/components/icon/default.d.ts +210 -0
- package/dist/components/icon/defaultIcon.d.ts +5 -0
- package/dist/components/icon/icons-ia.d.ts +71 -0
- package/dist/components/icon/index.d.ts +234 -0
- package/dist/components/icon/norma.d.ts +30 -0
- package/dist/components/{Icon/NormaIcon.d.ts → icon/normaIcon.d.ts} +13 -13
- package/dist/components/icon/styles.d.ts +481 -0
- package/dist/components/{Icon → icon}/svg.d.ts +6 -6
- package/dist/components/{Icon → icon}/types.d.ts +12 -12
- package/dist/components/index.d.ts +8 -19
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/{Modal/Modal.d.ts → modal/modal.d.ts} +3 -4
- package/dist/components/modal/modalFooter.d.ts +3 -0
- package/dist/components/modal/modalHeader.d.ts +3 -0
- package/dist/components/modal/styles.d.ts +540 -0
- package/dist/components/{Modal → modal}/types.d.ts +27 -24
- package/dist/components/progress-bar/index.d.ts +1 -0
- package/dist/components/{ProgressBar/ProgressBar.d.ts → progress-bar/progress-bar.d.ts} +7 -8
- package/dist/components/progress-bar/styles.d.ts +272 -0
- package/dist/components/{ProgressBar → progress-bar}/types.d.ts +22 -22
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/radio.d.ts +3 -0
- package/dist/components/{Radio → radio}/types.d.ts +16 -16
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/{Tag/Tag.d.ts → tag/tag.d.ts} +3 -4
- package/dist/components/{Tag → tag}/types.d.ts +25 -25
- package/dist/components/textfield/index.d.ts +1 -0
- package/dist/components/textfield/textfield.d.ts +3 -0
- package/dist/components/{TextField → textfield}/types.d.ts +42 -42
- package/dist/helpers/clients.d.ts +5 -0
- package/dist/helpers/colors.d.ts +174 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/sizes.d.ts +6 -0
- package/dist/helpers/variants.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -0
- package/dist/norma-library.cjs.development.js +1286 -0
- package/dist/norma-library.cjs.development.js.map +1 -0
- package/dist/norma-library.cjs.production.min.js +2 -0
- package/dist/norma-library.cjs.production.min.js.map +1 -0
- package/dist/norma-library.esm.js +1274 -0
- package/dist/norma-library.esm.js.map +1 -0
- package/package.json +55 -86
- package/src/components/button/button.stories.tsx +44 -0
- package/src/components/button/button.tsx +18 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button/types.ts +48 -0
- package/src/components/card/card-header.tsx +8 -0
- package/src/components/card/card.stories.tsx +28 -0
- package/src/components/card/card.tsx +13 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/card/styles.tsx +29 -0
- package/src/components/card/types.ts +14 -0
- package/src/components/checkbox/checkbox.stories.tsx +66 -0
- package/src/components/checkbox/checkbox.tsx +13 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/types.ts +30 -0
- package/src/components/icon/default.tsx +1459 -0
- package/src/components/icon/defaultIcon.tsx +82 -0
- package/src/components/icon/icon.stories.tsx +44 -0
- package/src/components/icon/icons-ia.tsx +107 -0
- package/src/components/icon/index.ts +11 -0
- package/src/components/icon/norma.tsx +523 -0
- package/src/components/icon/normaIcon.tsx +94 -0
- package/src/components/icon/styles.ts +11 -0
- package/src/components/icon/svg.tsx +24 -0
- package/src/components/icon/types.ts +14 -0
- package/src/components/index.ts +8 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/modal.stories.tsx +55 -0
- package/src/components/modal/modal.tsx +42 -0
- package/src/components/modal/modalFooter.tsx +32 -0
- package/src/components/modal/modalHeader.tsx +46 -0
- package/src/components/modal/styles.tsx +13 -0
- package/src/components/modal/types.ts +47 -0
- package/src/components/progress-bar/index.ts +1 -0
- package/src/components/progress-bar/progress-bar.stories.tsx +68 -0
- package/src/components/progress-bar/progress-bar.tsx +38 -0
- package/src/components/progress-bar/styles.tsx +27 -0
- package/src/components/progress-bar/types.ts +35 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio/radio.stories.tsx +150 -0
- package/src/components/radio/radio.tsx +13 -0
- package/src/components/radio/types.ts +27 -0
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.stories.tsx +80 -0
- package/src/components/tag/tag.tsx +13 -0
- package/src/components/tag/types.ts +47 -0
- package/src/components/textfield/index.ts +1 -0
- package/src/components/textfield/textfield.stories.tsx +376 -0
- package/src/components/textfield/textfield.tsx +23 -0
- package/src/components/textfield/types.ts +93 -0
- package/src/helpers/clients.ts +6 -0
- package/src/helpers/colors.ts +209 -0
- package/src/helpers/index.ts +3 -0
- package/src/helpers/sizes.ts +26 -0
- package/src/helpers/variants.ts +3 -0
- package/src/index.tsx +1 -0
- package/dist/components/Button/Button.d.ts +0 -4
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -4
- package/dist/components/Card/CardHeader.d.ts +0 -4
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/styles.d.ts +0 -818
- package/dist/components/Checkbox/Checkbox.d.ts +0 -4
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Icon/DefaultIcon.d.ts +0 -5
- package/dist/components/Icon/default.d.ts +0 -209
- package/dist/components/Icon/index.d.ts +0 -233
- package/dist/components/Icon/norma.d.ts +0 -29
- package/dist/components/Icon/styles.d.ts +0 -485
- package/dist/components/Modal/ModalFooter.d.ts +0 -4
- package/dist/components/Modal/ModalHeader.d.ts +0 -4
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/Modal/styles.d.ts +0 -274
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressBar/styles.d.ts +0 -276
- package/dist/components/Radio/Radio.d.ts +0 -4
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/TextField/TextField.d.ts +0 -4
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/index.es.js +0 -15023
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -419
- package/dist/index.umd.js.map +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export declare type IconsColors = 'inherit' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'white' | 'black';
|
|
2
|
+
export declare type BtnColors = 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
3
|
+
export declare const getPalette: () => {
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryLight: string;
|
|
6
|
+
primaryMedium: string;
|
|
7
|
+
primaryDark: string;
|
|
8
|
+
inherit: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
error: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
info: string;
|
|
13
|
+
success: string;
|
|
14
|
+
white: string;
|
|
15
|
+
black: string;
|
|
16
|
+
helper: string;
|
|
17
|
+
secondaryLight: string;
|
|
18
|
+
secondaryMedium: string;
|
|
19
|
+
secondaryDark: string;
|
|
20
|
+
inheritLight: string;
|
|
21
|
+
inheritMedium: string;
|
|
22
|
+
inheritDark: string;
|
|
23
|
+
whiteLight: string;
|
|
24
|
+
whiteMedium: string;
|
|
25
|
+
whiteDark: string;
|
|
26
|
+
successLight: string;
|
|
27
|
+
successMedium: string;
|
|
28
|
+
successDark: string;
|
|
29
|
+
errorLight: string;
|
|
30
|
+
errorMedium: string;
|
|
31
|
+
errorDark: string;
|
|
32
|
+
warningLight: string;
|
|
33
|
+
warningMedium: string;
|
|
34
|
+
warningDark: string;
|
|
35
|
+
helperLight: string;
|
|
36
|
+
helperMedium: string;
|
|
37
|
+
helperDark: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const palette: {
|
|
40
|
+
primary: string;
|
|
41
|
+
primaryLight: string;
|
|
42
|
+
primaryMedium: string;
|
|
43
|
+
primaryDark: string;
|
|
44
|
+
inherit: string;
|
|
45
|
+
secondary: string;
|
|
46
|
+
error: string;
|
|
47
|
+
warning: string;
|
|
48
|
+
info: string;
|
|
49
|
+
success: string;
|
|
50
|
+
white: string;
|
|
51
|
+
black: string;
|
|
52
|
+
helper: string;
|
|
53
|
+
secondaryLight: string;
|
|
54
|
+
secondaryMedium: string;
|
|
55
|
+
secondaryDark: string;
|
|
56
|
+
inheritLight: string;
|
|
57
|
+
inheritMedium: string;
|
|
58
|
+
inheritDark: string;
|
|
59
|
+
whiteLight: string;
|
|
60
|
+
whiteMedium: string;
|
|
61
|
+
whiteDark: string;
|
|
62
|
+
successLight: string;
|
|
63
|
+
successMedium: string;
|
|
64
|
+
successDark: string;
|
|
65
|
+
errorLight: string;
|
|
66
|
+
errorMedium: string;
|
|
67
|
+
errorDark: string;
|
|
68
|
+
warningLight: string;
|
|
69
|
+
warningMedium: string;
|
|
70
|
+
warningDark: string;
|
|
71
|
+
helperLight: string;
|
|
72
|
+
helperMedium: string;
|
|
73
|
+
helperDark: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const textColors: {
|
|
76
|
+
inherit: string;
|
|
77
|
+
primary: string;
|
|
78
|
+
secondary: string;
|
|
79
|
+
error: string;
|
|
80
|
+
warning: string;
|
|
81
|
+
info: string;
|
|
82
|
+
success: string;
|
|
83
|
+
white: string;
|
|
84
|
+
black: string;
|
|
85
|
+
helper: string;
|
|
86
|
+
primaryLight: string;
|
|
87
|
+
primaryMedium: string;
|
|
88
|
+
primaryDark: string;
|
|
89
|
+
secondaryLight: string;
|
|
90
|
+
secondaryMedium: string;
|
|
91
|
+
secondaryDark: string;
|
|
92
|
+
inheritLight: string;
|
|
93
|
+
inheritMedium: string;
|
|
94
|
+
inheritDark: string;
|
|
95
|
+
whiteLight: string;
|
|
96
|
+
whiteMedium: string;
|
|
97
|
+
whiteDark: string;
|
|
98
|
+
successLight: string;
|
|
99
|
+
successMedium: string;
|
|
100
|
+
successDark: string;
|
|
101
|
+
errorLight: string;
|
|
102
|
+
errorMedium: string;
|
|
103
|
+
errorDark: string;
|
|
104
|
+
warningLight: string;
|
|
105
|
+
warningMedium: string;
|
|
106
|
+
warningDark: string;
|
|
107
|
+
helperLight: string;
|
|
108
|
+
helperMedium: string;
|
|
109
|
+
helperDark: string;
|
|
110
|
+
};
|
|
111
|
+
export declare const backgroundColors: {
|
|
112
|
+
inherit: string;
|
|
113
|
+
primary: string;
|
|
114
|
+
secondary: string;
|
|
115
|
+
error: string;
|
|
116
|
+
warning: string;
|
|
117
|
+
info: string;
|
|
118
|
+
success: string;
|
|
119
|
+
white: string;
|
|
120
|
+
black: string;
|
|
121
|
+
primaryLight: string;
|
|
122
|
+
primaryMedium: string;
|
|
123
|
+
primaryDark: string;
|
|
124
|
+
secondaryLight: string;
|
|
125
|
+
secondaryMedium: string;
|
|
126
|
+
secondaryDark: string;
|
|
127
|
+
inheritLight: string;
|
|
128
|
+
inheritMedium: string;
|
|
129
|
+
inheritDark: string;
|
|
130
|
+
whiteLight: string;
|
|
131
|
+
whiteMedium: string;
|
|
132
|
+
whiteDark: string;
|
|
133
|
+
successLight: string;
|
|
134
|
+
successMedium: string;
|
|
135
|
+
successDark: string;
|
|
136
|
+
errorLight: string;
|
|
137
|
+
errorMedium: string;
|
|
138
|
+
errorDark: string;
|
|
139
|
+
warningLight: string;
|
|
140
|
+
warningMedium: string;
|
|
141
|
+
warningDark: string;
|
|
142
|
+
helperLight: string;
|
|
143
|
+
helperMedium: string;
|
|
144
|
+
helperDark: string;
|
|
145
|
+
};
|
|
146
|
+
export declare const colors: Record<IconsColors, string>;
|
|
147
|
+
export declare const olosPalette: {
|
|
148
|
+
primary: {
|
|
149
|
+
main: string;
|
|
150
|
+
};
|
|
151
|
+
secondary: {
|
|
152
|
+
main: string;
|
|
153
|
+
};
|
|
154
|
+
error: {
|
|
155
|
+
main: string;
|
|
156
|
+
};
|
|
157
|
+
warning: {
|
|
158
|
+
main: string;
|
|
159
|
+
};
|
|
160
|
+
info: {
|
|
161
|
+
main: string;
|
|
162
|
+
};
|
|
163
|
+
success: {
|
|
164
|
+
main: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare const lightTheme: import("@mui/material/styles").Theme;
|
|
168
|
+
export declare const darkTheme: import("@mui/material/styles").Theme;
|
|
169
|
+
export declare const themes: {
|
|
170
|
+
light: import("@mui/material/styles").Theme;
|
|
171
|
+
dark: import("@mui/material/styles").Theme;
|
|
172
|
+
};
|
|
173
|
+
export declare function getIconsColorsArray(): IconsColors[];
|
|
174
|
+
export declare const getBtnColorsArray: BtnColors[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type IconsSizes = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge' | '3xlarge';
|
|
2
|
+
export declare type BtnSizes = 'small' | 'medium' | 'large';
|
|
3
|
+
export declare const iconsSizes: Record<IconsSizes, number>;
|
|
4
|
+
export declare const btnSizes: Record<BtnSizes, string>;
|
|
5
|
+
export declare function getIconsSizesArray(): IconsSizes[];
|
|
6
|
+
export declare function getBtnSizesArray(): BtnSizes[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './components
|
|
1
|
+
export * from './components';
|