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,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,3 @@
1
+ export * from './colors';
2
+ export * from './sizes';
3
+ export * from './variants';
@@ -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[];
@@ -0,0 +1,2 @@
1
+ export declare type BtnVariants = 'text' | 'outlined' | 'contained';
2
+ export declare const getBtnVariantsArray: BtnVariants[];
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './components/index'
1
+ export * from './components';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./norma-library.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./norma-library.cjs.development.js')
8
+ }