@cincoders/cinnamon 0.3.0 → 0.4.0

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 (49) hide show
  1. package/dist/cinnamon.esm.js +97 -97
  2. package/dist/cinnamon.min.js +96 -96
  3. package/dist/cinnamon.ssr.js +96 -96
  4. package/dist/components/HamburgerButton/index.d.ts +7 -7
  5. package/dist/components/HamburgerButton/styles.d.ts +6 -6
  6. package/dist/components/SearchDropdown/index.d.ts +7 -7
  7. package/dist/components/SearchDropdown/styles.d.ts +6 -6
  8. package/dist/components/SideMenu/index.d.ts +9 -8
  9. package/dist/components/SideMenu/styles.d.ts +9 -6
  10. package/dist/components/SystemsPopup/index.d.ts +6 -8
  11. package/dist/components/SystemsPopup/styles.d.ts +5 -5
  12. package/dist/components/Toast/index.d.ts +9 -9
  13. package/dist/components/Toast/style.d.ts +3 -3
  14. package/dist/components/UserPopup/index.d.ts +10 -12
  15. package/dist/components/UserPopup/styles.d.ts +13 -13
  16. package/dist/index.d.ts +15 -15
  17. package/dist/interfaces/index.d.ts +39 -38
  18. package/dist/lib-components/Dialog/index.d.ts +13 -13
  19. package/dist/lib-components/Dialog/styles.d.ts +4 -4
  20. package/dist/lib-components/ErrorScreen/index.d.ts +11 -11
  21. package/dist/lib-components/ErrorScreen/style.d.ts +6 -6
  22. package/dist/lib-components/Footer/index.d.ts +15 -14
  23. package/dist/lib-components/Footer/styles.d.ts +13 -13
  24. package/dist/lib-components/ForbiddenPage/index.d.ts +6 -7
  25. package/dist/lib-components/ForbiddenPage/styles.d.ts +5 -5
  26. package/dist/lib-components/IconRender/index.d.ts +7 -7
  27. package/dist/lib-components/ImageInput/index.d.ts +9 -10
  28. package/dist/lib-components/ImageInput/styles.d.ts +4 -4
  29. package/dist/lib-components/Navbar/index.d.ts +24 -24
  30. package/dist/lib-components/Navbar/styles.d.ts +15 -15
  31. package/dist/lib-components/Page/index.d.ts +19 -19
  32. package/dist/lib-components/Page/styles.d.ts +2 -2
  33. package/dist/lib-components/Page/useNavbar.d.ts +30 -30
  34. package/dist/lib-components/PageWithAuth/index.d.ts +12 -12
  35. package/dist/lib-components/RequireAuth/index.d.ts +10 -10
  36. package/dist/stories/Dialog.stories.d.ts +8 -8
  37. package/dist/stories/Footer.stories.d.ts +181 -165
  38. package/dist/stories/ForbiddenPage.stories.d.ts +8 -0
  39. package/dist/stories/ImageInput.stories.d.ts +5 -0
  40. package/dist/stories/Navbar.stories.d.ts +154 -154
  41. package/dist/stories/Page.stories.d.ts +30 -30
  42. package/dist/stories/SideMenu.stories.d.ts +8 -8
  43. package/dist/stories/SystemsPopup.stories.d.ts +8 -0
  44. package/dist/stories/UserPopup.stories.d.ts +8 -0
  45. package/dist/stories/sampledata/SampleData.d.ts +6 -6
  46. package/dist/stories/utils/argTypes.d.ts +286 -271
  47. package/dist/utils/index.d.ts +1 -1
  48. package/dist/utils/keycloakUtils.d.ts +2 -2
  49. package/package.json +12 -15
@@ -1,271 +1,286 @@
1
- export declare const footerArgTypes: {
2
- footerTitle: {
3
- name: string;
4
- type: {
5
- name: string;
6
- required: boolean;
7
- };
8
- description: string;
9
- control: {
10
- type: string;
11
- };
12
- table: {
13
- category: string;
14
- };
15
- };
16
- footerTelephone: {
17
- name: string;
18
- type: {
19
- name: string;
20
- required: boolean;
21
- };
22
- description: string;
23
- control: {
24
- type: string;
25
- };
26
- table: {
27
- category: string;
28
- };
29
- };
30
- footerTelephoneComplement: {
31
- name: string;
32
- type: {
33
- name: string;
34
- required: boolean;
35
- };
36
- description: string;
37
- control: {
38
- type: string;
39
- };
40
- table: {
41
- category: string;
42
- };
43
- };
44
- footerEmail: {
45
- name: string;
46
- type: {
47
- name: string;
48
- required: boolean;
49
- };
50
- description: string;
51
- control: {
52
- type: string;
53
- };
54
- table: {
55
- category: string;
56
- };
57
- };
58
- footerLink: {
59
- name: string;
60
- type: {
61
- name: string;
62
- required: boolean;
63
- };
64
- description: string;
65
- control: {
66
- type: string;
67
- };
68
- table: {
69
- category: string;
70
- };
71
- };
72
- footerTextLink: {
73
- name: string;
74
- type: {
75
- name: string;
76
- required: boolean;
77
- };
78
- description: string;
79
- control: {
80
- type: string;
81
- };
82
- table: {
83
- category: string;
84
- };
85
- };
86
- footerDescription: {
87
- name: string;
88
- type: {
89
- name: string;
90
- required: boolean;
91
- };
92
- description: string;
93
- control: {
94
- type: string;
95
- };
96
- table: {
97
- category: string;
98
- };
99
- };
100
- footerCopyrightText: {
101
- name: string;
102
- type: {
103
- name: string;
104
- required: boolean;
105
- };
106
- description: string;
107
- control: {
108
- type: string;
109
- };
110
- table: {
111
- category: string;
112
- };
113
- };
114
- footerSignatureText: {
115
- name: string;
116
- type: {
117
- name: string;
118
- required: boolean;
119
- };
120
- description: string;
121
- control: {
122
- type: string;
123
- };
124
- table: {
125
- category: string;
126
- };
127
- };
128
- footerSignatureLink: {
129
- name: string;
130
- type: {
131
- name: string;
132
- required: boolean;
133
- };
134
- description: string;
135
- control: {
136
- type: string;
137
- };
138
- table: {
139
- category: string;
140
- };
141
- };
142
- };
143
- export declare const navbarArgTypes: {
144
- isLandingPage: {
145
- name: string;
146
- type: {
147
- name: string;
148
- required: boolean;
149
- };
150
- description: string;
151
- options: boolean[];
152
- control: {
153
- type: string;
154
- };
155
- table: {
156
- category: string;
157
- };
158
- };
159
- haveSearchBar: {
160
- name: string;
161
- type: {
162
- name: string;
163
- required: boolean;
164
- };
165
- description: string;
166
- options: boolean[];
167
- control: {
168
- type: string;
169
- };
170
- table: {
171
- category: string;
172
- };
173
- };
174
- hiddenUser: {
175
- name: string;
176
- type: {
177
- name: string;
178
- required: boolean;
179
- };
180
- description: string;
181
- options: boolean[];
182
- control: {
183
- type: string;
184
- };
185
- table: {
186
- category: string;
187
- };
188
- };
189
- user: {
190
- name: string;
191
- control: string;
192
- description: string;
193
- table: {
194
- category: string;
195
- };
196
- if: {
197
- arg: string;
198
- eq: boolean;
199
- table: {
200
- disable: boolean;
201
- };
202
- };
203
- };
204
- h1: {
205
- name: string;
206
- type: {
207
- name: string;
208
- required: boolean;
209
- };
210
- description: string;
211
- options: boolean[];
212
- control: {
213
- type: string;
214
- };
215
- table: {
216
- category: string;
217
- };
218
- };
219
- title: {
220
- name: string;
221
- type: {
222
- name: string;
223
- required: boolean;
224
- };
225
- description: string;
226
- control: {
227
- type: string;
228
- };
229
- table: {
230
- category: string;
231
- };
232
- };
233
- sideMenuLinks: {
234
- name: string;
235
- control: string;
236
- description: string;
237
- table: {
238
- category: string;
239
- };
240
- };
241
- systemsList: {
242
- name: string;
243
- control: string;
244
- description: string;
245
- table: {
246
- category: string;
247
- };
248
- };
249
- systemsListPopup: {
250
- name: string;
251
- type: {
252
- name: string;
253
- required: boolean;
254
- };
255
- options: boolean[];
256
- control: {
257
- type: string;
258
- };
259
- description: string;
260
- table: {
261
- category: string;
262
- };
263
- };
264
- iconComponent: {
265
- name: string;
266
- description: string;
267
- table: {
268
- category: string;
269
- };
270
- };
271
- };
1
+ export declare const footerArgTypes: {
2
+ footerTitle: {
3
+ name: string;
4
+ type: {
5
+ name: string;
6
+ required: boolean;
7
+ };
8
+ description: string;
9
+ control: {
10
+ type: string;
11
+ };
12
+ table: {
13
+ category: string;
14
+ };
15
+ };
16
+ footerTelephone: {
17
+ name: string;
18
+ type: {
19
+ name: string;
20
+ required: boolean;
21
+ };
22
+ description: string;
23
+ control: {
24
+ type: string;
25
+ };
26
+ table: {
27
+ category: string;
28
+ };
29
+ };
30
+ footerTelephoneComplement: {
31
+ name: string;
32
+ type: {
33
+ name: string;
34
+ required: boolean;
35
+ };
36
+ description: string;
37
+ control: {
38
+ type: string;
39
+ };
40
+ table: {
41
+ category: string;
42
+ };
43
+ };
44
+ footerEmail: {
45
+ name: string;
46
+ type: {
47
+ name: string;
48
+ required: boolean;
49
+ };
50
+ description: string;
51
+ control: {
52
+ type: string;
53
+ };
54
+ table: {
55
+ category: string;
56
+ };
57
+ };
58
+ footerLink: {
59
+ name: string;
60
+ type: {
61
+ name: string;
62
+ required: boolean;
63
+ };
64
+ description: string;
65
+ control: {
66
+ type: string;
67
+ };
68
+ table: {
69
+ category: string;
70
+ };
71
+ };
72
+ footerTextLink: {
73
+ name: string;
74
+ type: {
75
+ name: string;
76
+ required: boolean;
77
+ };
78
+ description: string;
79
+ control: {
80
+ type: string;
81
+ };
82
+ table: {
83
+ category: string;
84
+ };
85
+ };
86
+ footerDescription: {
87
+ name: string;
88
+ type: {
89
+ name: string;
90
+ required: boolean;
91
+ };
92
+ description: string;
93
+ control: {
94
+ type: string;
95
+ };
96
+ table: {
97
+ category: string;
98
+ };
99
+ };
100
+ footerCopyrightText: {
101
+ name: string;
102
+ type: {
103
+ name: string;
104
+ required: boolean;
105
+ };
106
+ description: string;
107
+ control: {
108
+ type: string;
109
+ };
110
+ table: {
111
+ category: string;
112
+ };
113
+ };
114
+ footerSignatureText: {
115
+ name: string;
116
+ type: {
117
+ name: string;
118
+ required: boolean;
119
+ };
120
+ description: string;
121
+ control: {
122
+ type: string;
123
+ };
124
+ table: {
125
+ category: string;
126
+ };
127
+ };
128
+ footerSignatureLink: {
129
+ name: string;
130
+ type: {
131
+ name: string;
132
+ required: boolean;
133
+ };
134
+ description: string;
135
+ control: {
136
+ type: string;
137
+ };
138
+ table: {
139
+ category: string;
140
+ };
141
+ };
142
+ footerLargeFooter: {
143
+ name: string;
144
+ type: {
145
+ name: string;
146
+ required: boolean;
147
+ };
148
+ description: string;
149
+ options: boolean[];
150
+ control: {
151
+ type: string;
152
+ };
153
+ table: {
154
+ category: string;
155
+ };
156
+ };
157
+ };
158
+ export declare const navbarArgTypes: {
159
+ isLandingPage: {
160
+ name: string;
161
+ type: {
162
+ name: string;
163
+ required: boolean;
164
+ };
165
+ description: string;
166
+ options: boolean[];
167
+ control: {
168
+ type: string;
169
+ };
170
+ table: {
171
+ category: string;
172
+ };
173
+ };
174
+ haveSearchBar: {
175
+ name: string;
176
+ type: {
177
+ name: string;
178
+ required: boolean;
179
+ };
180
+ description: string;
181
+ options: boolean[];
182
+ control: {
183
+ type: string;
184
+ };
185
+ table: {
186
+ category: string;
187
+ };
188
+ };
189
+ hiddenUser: {
190
+ name: string;
191
+ type: {
192
+ name: string;
193
+ required: boolean;
194
+ };
195
+ description: string;
196
+ options: boolean[];
197
+ control: {
198
+ type: string;
199
+ };
200
+ table: {
201
+ category: string;
202
+ };
203
+ };
204
+ user: {
205
+ name: string;
206
+ control: string;
207
+ description: string;
208
+ table: {
209
+ category: string;
210
+ };
211
+ if: {
212
+ arg: string;
213
+ eq: boolean;
214
+ table: {
215
+ disable: boolean;
216
+ };
217
+ };
218
+ };
219
+ h1: {
220
+ name: string;
221
+ type: {
222
+ name: string;
223
+ required: boolean;
224
+ };
225
+ description: string;
226
+ options: boolean[];
227
+ control: {
228
+ type: string;
229
+ };
230
+ table: {
231
+ category: string;
232
+ };
233
+ };
234
+ title: {
235
+ name: string;
236
+ type: {
237
+ name: string;
238
+ required: boolean;
239
+ };
240
+ description: string;
241
+ control: {
242
+ type: string;
243
+ };
244
+ table: {
245
+ category: string;
246
+ };
247
+ };
248
+ sideMenuLinks: {
249
+ name: string;
250
+ control: string;
251
+ description: string;
252
+ table: {
253
+ category: string;
254
+ };
255
+ };
256
+ systemsList: {
257
+ name: string;
258
+ control: string;
259
+ description: string;
260
+ table: {
261
+ category: string;
262
+ };
263
+ };
264
+ systemsListPopup: {
265
+ name: string;
266
+ type: {
267
+ name: string;
268
+ required: boolean;
269
+ };
270
+ options: boolean[];
271
+ control: {
272
+ type: string;
273
+ };
274
+ description: string;
275
+ table: {
276
+ category: string;
277
+ };
278
+ };
279
+ iconComponent: {
280
+ name: string;
281
+ description: string;
282
+ table: {
283
+ category: string;
284
+ };
285
+ };
286
+ };
@@ -1 +1 @@
1
- export * as KeycloakUtils from 'src/utils/keycloakUtils';
1
+ export * as KeycloakUtils from 'src/utils/keycloakUtils';
@@ -1,2 +1,2 @@
1
- import Keycloak from 'keycloak-js';
2
- export declare function hasAccess(keycloak: Keycloak, roles: Array<string>): boolean;
1
+ import Keycloak from 'keycloak-js';
2
+ export declare function hasAccess(keycloak: Keycloak, roles: Array<string>): boolean;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@cincoders/cinnamon",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A collection components for standardized system appearance and functionality, easing development in web applications.",
5
5
  "license": "MIT",
6
6
  "author": "CInCoders <cincoders@cin.ufpe.br> (https://cincoders.cin.ufpe.br)",
7
- "homepage": "http://cincoders.cin.ufpe.br/",
7
+ "homepage": "https://cincoders.cin.ufpe.br/",
8
8
  "bugs": {
9
9
  "url": "https://github.com/CinCoders/cinnamon/issues"
10
10
  },
@@ -47,13 +47,13 @@
47
47
  "@babel/preset-typescript": "^7.21.5",
48
48
  "@rollup/plugin-commonjs": "^19.0.0",
49
49
  "@rollup/plugin-node-resolve": "^13.0.0",
50
- "@storybook/addon-actions": "^7.0.12",
51
- "@storybook/addon-essentials": "^7.0.12",
52
- "@storybook/addon-links": "^7.0.12",
53
- "@storybook/addon-mdx-gfm": "^7.0.12",
54
- "@storybook/react": "^7.0.12",
55
- "@storybook/react-webpack5": "^7.0.12",
56
- "@types/jquery": "^3.5.5",
50
+ "@rollup/plugin-terser": "^0.4.3",
51
+ "@rollup/plugin-typescript": "^11.1.1",
52
+ "@storybook/addon-actions": "^7.0.18",
53
+ "@storybook/addon-essentials": "^7.0.18",
54
+ "@storybook/addon-links": "^7.0.18",
55
+ "@storybook/react": "^7.0.18",
56
+ "@storybook/react-webpack5": "^7.0.18",
57
57
  "@types/react": "^18.0.27",
58
58
  "@types/react-dom": "^18.0.4",
59
59
  "@types/react-router-dom": "^5.1.7",
@@ -69,7 +69,6 @@
69
69
  "eslint-plugin-prettier": "^3.4.0",
70
70
  "eslint-plugin-react": "^7.24.0",
71
71
  "eslint-plugin-react-hooks": "^4.2.0",
72
- "postcss-scss": "^3.0.5",
73
72
  "prettier": "^2.3.2",
74
73
  "react": "18.1",
75
74
  "react-dom": "18.1",
@@ -77,9 +76,7 @@
77
76
  "rollup": "^2.51.1",
78
77
  "rollup-plugin-peer-deps-external": "^2.2.4",
79
78
  "rollup-plugin-postcss": "^4.0.2",
80
- "rollup-plugin-terser": "^7.0.2",
81
- "rollup-plugin-typescript2": "^0.30.0",
82
- "storybook": "^7.0.12",
79
+ "storybook": "^7.0.18",
83
80
  "typescript": "^4.3.2"
84
81
  },
85
82
  "peerDependencies": {
@@ -95,7 +92,6 @@
95
92
  "@mui/material": "^5.11.14",
96
93
  "@react-keycloak/web": "^3.4.0",
97
94
  "@rollup/plugin-url": "^6.1.0",
98
- "jquery": "^3.6.0",
99
95
  "keycloak-js": "^18.0.0",
100
96
  "postcss": "^8.3.6",
101
97
  "react-toastify": "^9.1.1",
@@ -106,6 +102,7 @@
106
102
  "chokidar": "3.5.3",
107
103
  "glob-parent": "6.0.2",
108
104
  "trim": "1.0.1",
109
- "trim-newlines": "5.0.0"
105
+ "trim-newlines": "5.0.0",
106
+ "svgo": "3.0.0"
110
107
  }
111
108
  }