@massimo-cassandro/minimo 0.1.12 → 0.2.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 (89) hide show
  1. package/package.json +8 -4
  2. package/src/{js → components}/dialog-content.js +1 -1
  3. package/src/{css → components/inner-nav}/inner-nav.css +2 -2
  4. package/src/{js → components/inner-nav}/inner-nav.js +8 -0
  5. package/src/components/modal-content/modal-content.js +1 -1
  6. package/src/components/modal-content/modal-content.module.css +4 -4
  7. package/src/components/recaptcha/recaptcha.css +4 -5
  8. package/src/components/recaptcha/recaptcha.minimo.tokens.jsonc +24 -0
  9. package/src/{css/spinners → components/spinner}/TODO spinner-circle.css +1 -1
  10. package/src/{css/spinners → components/spinner}/spinner-circle-basic.css +3 -2
  11. package/src/{css/spinners → components/spinner}/spinner-wrapper.css +1 -1
  12. package/src/components/spinner/spinner.minimo.tokens.jsonc +22 -0
  13. package/src/components/toast/toast.js +77 -0
  14. package/src/components/toast/toast.minimo.tokens.jsonc +29 -0
  15. package/src/components/toast/toast.module.css +59 -0
  16. package/src/css/alerts.css +23 -23
  17. package/src/css/anchors.css +17 -16
  18. package/src/css/buttons/btn-close.css +8 -7
  19. package/src/css/buttons/buttons.css +101 -94
  20. package/src/css/buttons/status-buttons.css +43 -43
  21. package/src/css/container.css +3 -12
  22. package/src/css/details.css +1 -1
  23. package/src/css/dialog-content.css +2 -2
  24. package/src/css/flex.css +9 -0
  25. package/src/css/forms/fieldset.css +75 -0
  26. package/src/css/forms/form-group.css +18 -0
  27. package/src/css/forms/form-utilities.css +32 -0
  28. package/src/css/forms/forms.css +37 -202
  29. package/src/css/forms/input-group.css +49 -0
  30. package/src/css/forms/validation.css +25 -0
  31. package/src/css/grid.css +25 -18
  32. package/src/css/headings.css +10 -9
  33. package/src/css/icons.css +1 -40
  34. package/src/css/layout-base.css +3 -3
  35. package/src/css/overlay.css +1 -2
  36. package/src/css/table.css +26 -19
  37. package/src/css/text.css +8 -7
  38. package/src/css/utilities.css +90 -29
  39. package/src/custom-media-default.css +20 -8
  40. package/src/custom-properties-default.css +212 -317
  41. package/src/design-tokens/alerts.minimo.tokens.jsonc +23 -0
  42. package/src/design-tokens/basic.minimo.tokens.jsonc +52 -0
  43. package/src/design-tokens/btn-close.minimo.tokens.jsonc +95 -0
  44. package/src/design-tokens/btn-primary.minimo.tokens.jsonc +100 -0
  45. package/src/design-tokens/btn-secondary.minimo.tokens.jsonc +33 -0
  46. package/src/design-tokens/btn.minimo.tokens.jsonc +200 -0
  47. package/src/design-tokens/color-accent.minimo.tokens.jsonc +13 -0
  48. package/src/design-tokens/color-neutral.minimo.tokens.jsonc +12 -0
  49. package/src/design-tokens/color-primary.minimo.tokens.jsonc +12 -0
  50. package/src/design-tokens/color-secondary.minimo.tokens.jsonc +12 -0
  51. package/src/design-tokens/flex-grid.minimo.tokens.jsonc +18 -0
  52. package/src/design-tokens/form.minimo.tokens.jsonc +295 -0
  53. package/src/design-tokens/gradients-shadowes.minimo.tokens.jsonc +4 -0
  54. package/src/design-tokens/headings.minimo.tokens.jsonc +57 -0
  55. package/src/design-tokens/link.minimo.tokens.jsonc +41 -0
  56. package/src/design-tokens/radius.minimo.tokens.jsonc +45 -0
  57. package/src/design-tokens/size.minimo.tokens.jsonc +101 -0
  58. package/src/design-tokens/status.minimo.tokens.jsonc +69 -0
  59. package/src/design-tokens/table.minimo.tokens.jsonc +66 -0
  60. package/src/design-tokens/typography.minimo.tokens.jsonc +120 -0
  61. package/src/design-tokens/utility.minimo.tokens.jsonc +8 -0
  62. package/src/design-tokens/z-index.minimo.tokens.jsonc +8 -0
  63. package/src/fonts-template.css +7 -0
  64. package/src/index-template.css +5 -10
  65. package/src/index.js +1 -0
  66. package/src/utilities/classnames.js +3 -0
  67. package/src/web-components/simple-datatable/icons/arrow-down.svg +1 -0
  68. package/src/web-components/simple-datatable/icons/arrow-up.svg +2 -0
  69. package/src/web-components/simple-datatable/icons/arrows-down-up.svg +1 -0
  70. package/src/web-components/simple-datatable/icons/caret-left.svg +1 -0
  71. package/src/web-components/simple-datatable/icons/caret-right.svg +1 -0
  72. package/src/web-components/simple-datatable/icons/check-bold.svg +1 -0
  73. package/src/web-components/simple-datatable/icons/x-bold.svg +1 -0
  74. package/src/web-components/simple-datatable/simple-datatable.js +219 -0
  75. package/src/web-components/simple-datatable/simple-datatable.minimo.tokens.jsonc +50 -0
  76. package/src/web-components/simple-datatable/simple-datatable.module.css +214 -0
  77. package/src/web-components/simple-datatable/src/parse-cols.js +117 -0
  78. package/src/components/init.js +0 -7
  79. package/src/css/forms/form-edit-info.css +0 -17
  80. /package/src/{js → components}/alert-autoclose.js +0 -0
  81. /package/src/{js → components}/create-blurhash-canvas.js +0 -0
  82. /package/src/{js → components}/dismiss-alerts.js +0 -0
  83. /package/src/{js → components}/forms.js +0 -0
  84. /package/src/{js → components}/img-viewer-dom-builder.js +0 -0
  85. /package/src/{js → components}/overlay.js +0 -0
  86. /package/src/{js → components}/print-icon.js +0 -0
  87. /package/src/{css/spinners → components/spinner}/TODO spinner-three-dots.css +0 -0
  88. /package/src/{css/spinners → components/spinner}/spinner-trailing-dots.css +0 -0
  89. /package/src/{js → components/spinner}/spinner.js +0 -0
@@ -0,0 +1,295 @@
1
+ {
2
+ "form": {
3
+
4
+ "label": {
5
+ "font" : {
6
+ "size": {
7
+ "$value": "{font.size.sm}",
8
+ "$type": "dimension"
9
+ },
10
+ "weight": {
11
+ "$value": "{font.weight.semibold}",
12
+ "$type": "fontWeight"
13
+ }
14
+ },
15
+ "color": {
16
+ "$value": "{text.color}",
17
+ "$type": "color"
18
+ }
19
+ },
20
+ "group": {
21
+ "padding-block": {
22
+ "$value": "0 {size.base}",
23
+ "$type": "dimension"
24
+ }
25
+ },
26
+ "input-group": {
27
+ "background": {
28
+ "color": {
29
+ "$value": "transparent",
30
+ "$type": "color"
31
+ }
32
+ }
33
+ },
34
+
35
+ "control": {
36
+ "text": {
37
+ "color": {
38
+ "$value": "{text.color}",
39
+ "$type": "color"
40
+ }
41
+ },
42
+ "font": {
43
+ "style": {
44
+ "$value": "normal",
45
+ "$type": "string"
46
+ },
47
+ "weight": {
48
+ "$value": "{font.weight.regular}",
49
+ "$type": "fontWeight"
50
+ },
51
+ "size": {
52
+ "$value": "{font.size.base}",
53
+ "$type": "dimension"
54
+ }
55
+ },
56
+
57
+ "background": {
58
+ "color": {
59
+ "$value": "{body.background.color}",
60
+ "$type": "color"
61
+ }
62
+ },
63
+
64
+ "padding": {
65
+ "inline": {
66
+ "$value": "{size.sm}",
67
+ "$type": "dimension"
68
+ },
69
+ "block": {
70
+ "$value": "{size.xs}",
71
+ "$type": "dimension"
72
+ }
73
+ },
74
+
75
+ "border": {
76
+ "color": {
77
+ "$value": "#666",
78
+ "$type": "color"
79
+ },
80
+ "width": {
81
+ "$value": "1px",
82
+ "$type": "dimension"
83
+ },
84
+ "radius": {
85
+ "$value": "{radius.xxs}",
86
+ "$type": "dimension"
87
+ }
88
+ },
89
+
90
+ "placeholder": {
91
+ "color": {
92
+ "$value": "#666",
93
+ "$type": "color"
94
+ },
95
+ "opacity": {
96
+ "$value": 0.8,
97
+ "$type": "number"
98
+ },
99
+ "font": {
100
+ "size": {
101
+ "$value": "{form.control.font.size}",
102
+ "$type": "dimension"
103
+ },
104
+ "style": {
105
+ "$value": "italic",
106
+ "$type": "string"
107
+ }
108
+ }
109
+ },
110
+
111
+ "disabled": {
112
+ "background": {
113
+ "color": {
114
+ "$value": "#999",
115
+ "$type": "color"
116
+ }
117
+ },
118
+ "opacity": {
119
+ "$value": ".3",
120
+ "$type": "number"
121
+ }
122
+ },
123
+ "required": {
124
+ "flag-color": {
125
+ "$value": "#c00",
126
+ "$type": "color"
127
+ },
128
+ "flag-content": {
129
+ "$value": "'\\002A'",
130
+ "$type": "string"
131
+ }
132
+ },
133
+ "focus": {
134
+ "color": {
135
+ "$value": "hsl(205 69% 45% / .508)",
136
+ "$type": "color"
137
+ },
138
+ "outline": {
139
+ "width": {
140
+ "$value": "4px",
141
+ "$type": "dimension"
142
+ }
143
+ }
144
+ },
145
+
146
+ "xs": {
147
+ "font": {
148
+ "size": {
149
+ "$value": "{font.size.xs}",
150
+ "$type": "dimension"
151
+ }
152
+ },
153
+ "padding": {
154
+ "inline": {
155
+ "$value": "{size.xxs}",
156
+ "$type": "dimension"
157
+ },
158
+ "block": {
159
+ "$value": "{size.xxs}",
160
+ "$type": "dimension"
161
+ }
162
+ }
163
+ },
164
+ "sm": {
165
+ "font": {
166
+ "size": {
167
+ "$value": "{font.size.sm}",
168
+ "$type": "dimension"
169
+ }
170
+ },
171
+ "padding": {
172
+ "inline": {
173
+ "$value": "{size.xs}",
174
+ "$type": "dimension"
175
+ },
176
+ "block": {
177
+ "$value": "{size.xxs}",
178
+ "$type": "dimension"
179
+ }
180
+ }
181
+ },
182
+ "md": {
183
+ "font": {
184
+ "size": {
185
+ "$value": "{font.size.md}",
186
+ "$type": "dimension"
187
+ }
188
+ },
189
+ "padding": {
190
+ "inline": {
191
+ "$value": "{size.sm}",
192
+ "$type": "dimension"
193
+ },
194
+ "block": {
195
+ "$value": "{size.xs}",
196
+ "$type": "dimension"
197
+ }
198
+ }
199
+ },
200
+ "lg": {
201
+ "font": {
202
+ "size": {
203
+ "$value": "{font.size.lg}",
204
+ "$type": "dimension"
205
+ }
206
+ },
207
+ "padding": {
208
+ "inline": {
209
+ "$value": "{size.md}",
210
+ "$type": "dimension"
211
+ },
212
+ "block": {
213
+ "$value": "{size.base}",
214
+ "$type": "dimension"
215
+ }
216
+ }
217
+ },
218
+ "xl": {
219
+ "font": {
220
+ "size": {
221
+ "$value": "{font.size.xl}",
222
+ "$type": "dimension"
223
+ }
224
+ },
225
+ "padding": {
226
+ "inline": {
227
+ "$value": "{size.xl}",
228
+ "$type": "dimension"
229
+ },
230
+ "block": {
231
+ "$value": "{size.md}",
232
+ "$type": "dimension"
233
+ }
234
+ }
235
+ },
236
+
237
+ // /* TODO importazione automatica SVG (NB problemi con svgo) */
238
+ // /* url('./css/forms/select-indicator.svg?cssInline'); */
239
+ "select": {
240
+ "trigger-icon": {
241
+ "$value": "url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22rgb(5%2C%2048%2C%2056)%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22m2%205%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')",
242
+ "$type": "string"
243
+ }
244
+ }
245
+ },
246
+
247
+ "fieldset": {
248
+ "border": {
249
+ "width": {
250
+ "$value": "1px",
251
+ "$type": "dimension"
252
+ }
253
+ },
254
+ "legend": {
255
+ "background": {
256
+ "color": {
257
+ "$value": "transparent",
258
+ "$type": "color"
259
+ }
260
+ },
261
+ "color": {
262
+ "$value": "{text.color}",
263
+ "$type": "color"
264
+ }
265
+ }
266
+ },
267
+
268
+ "end": {
269
+ "margin": {
270
+ "block": {
271
+ "start": {
272
+ "$value": "{size.base}",
273
+ "$type": "dimension"
274
+ },
275
+ "end": {
276
+ "$value": "{size.base}",
277
+ "$type": "dimension"
278
+ }
279
+ }
280
+ }
281
+ },
282
+ "user-info": {
283
+ "font": {
284
+ "size": {
285
+ "$value": "{font.size.xs}",
286
+ "$type": "dimension"
287
+ }
288
+ },
289
+ "color": {
290
+ "$value": "{text.muted}",
291
+ "$type": "color"
292
+ }
293
+ }
294
+ }
295
+ }
@@ -0,0 +1,4 @@
1
+ {}
2
+
3
+
4
+ // --box-shadow-base: 0 0 1.2rem #00000040;
@@ -0,0 +1,57 @@
1
+ {
2
+
3
+ "headings": {
4
+ "text": {
5
+ "align": {
6
+ "$type": "string",
7
+ "$value": "inherit"
8
+ }
9
+ },
10
+ "color": {
11
+ "$type": "color",
12
+ "$value": "{text.color}"
13
+ },
14
+ "font": {
15
+ "weight": {
16
+ "$type": "string",
17
+ "$value": "{font.weight.semibold}"
18
+ }
19
+ },
20
+ "h1": {
21
+ "font": {
22
+ "weight": {
23
+ "$type": "string",
24
+ "$value": "{headings.font.weight}"
25
+ },
26
+ "size": {
27
+ "$type": "dimension",
28
+ "$value": "{font.size.2xl}"
29
+ }
30
+ }
31
+ },
32
+ "h2": {
33
+ "font": {
34
+ "size": {
35
+ "$type": "dimension",
36
+ "$value": "{font.size.xl}"
37
+ }
38
+ }
39
+ },
40
+ "h3": {
41
+ "font": {
42
+ "size": {
43
+ "$type": "dimension",
44
+ "$value": "{font.size.lg}"
45
+ }
46
+ }
47
+ },
48
+ "h4": {
49
+ "font": {
50
+ "size": {
51
+ "$type": "dimension",
52
+ "$value": "{font.size.md}"
53
+ }
54
+ }
55
+ },
56
+ }
57
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "link": {
3
+ "color": {
4
+ "$type": "color",
5
+ "$value": "#0d12ae"
6
+ },
7
+ "visited": {
8
+ "color": {
9
+ "$type": "color",
10
+ "$value": "#ae0da3"
11
+ },
12
+ },
13
+ "hover": {
14
+ "color": null
15
+ },
16
+ "focus": {
17
+ "outline": {
18
+ "color": {
19
+ "$type": "color",
20
+ "$value": "{link.color}"
21
+ },
22
+ "width": {
23
+ "$type": "dimension",
24
+ "$value": "2px"
25
+ },
26
+ }
27
+ },
28
+ "active": {
29
+ "color": {
30
+ "$type": "color",
31
+ "$value": "#51054C"
32
+ },
33
+ "background": {
34
+ "color": {
35
+ "$type": "color",
36
+ "$value": "transparent"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "radius": {
3
+
4
+ "base": {
5
+ "$value": "{size.base}",
6
+ "$type": "dimension",
7
+ "$description": ""
8
+ },
9
+ "xxs": {
10
+ "$value": "{size.xxs}",
11
+ "$type": "dimension",
12
+ "$description": ""
13
+ },
14
+ "xs": {
15
+ "$value": "{size.xs}",
16
+ "$type": "dimension",
17
+ "$description": ""
18
+ },
19
+ "sm": {
20
+ "$value": "{size.sm}",
21
+ "$type": "dimension",
22
+ "$description": ""
23
+ },
24
+ "md": {
25
+ "$value": "{size.md}",
26
+ "$type": "dimension",
27
+ "$description": ""
28
+ },
29
+ "lg": {
30
+ "$value": "{size.lg}",
31
+ "$type": "dimension",
32
+ "$description": ""
33
+ },
34
+ "xl": {
35
+ "$value": "{size.xl}",
36
+ "$type": "dimension",
37
+ "$description": ""
38
+ },
39
+ "pill": {
40
+ "$value": "9999rem",
41
+ "$type": "dimension",
42
+ "$description": ""
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+
3
+
4
+ // in attesa di modifica dello script per il parser automatico delle espressioni
5
+ // NB: "$type": "string" necessario, dimension converte i valori come se fossero px
6
+ "size": {
7
+ "xs": {
8
+ "$value": ".5rem",
9
+ "$type": "dimension",
10
+ "$description": ""
11
+ },
12
+ "md": {
13
+ "$value": "1.2rem",
14
+ "$type": "dimension",
15
+ "$description": ""
16
+ },
17
+ "3xl": {
18
+ "$value": "4rem",
19
+ "$type": "dimension",
20
+ "$description": ""
21
+ },
22
+ "2xl": {
23
+ "$value": "3rem",
24
+ "$type": "dimension",
25
+ "$description": ""
26
+ },
27
+ "base": {
28
+ "$value": "1rem",
29
+ "$type": "dimension",
30
+ "$description": ""
31
+ },
32
+ "lg": {
33
+ "$value": "1.5rem",
34
+ "$type": "dimension",
35
+ "$description": ""
36
+ },
37
+ "xxs": {
38
+ "$value": ".25rem",
39
+ "$type": "dimension",
40
+ "$description": ""
41
+ },
42
+ "xl": {
43
+ "$value": "2rem",
44
+ "$type": "dimension",
45
+ "$description": ""
46
+ },
47
+ "sm": {
48
+ "$value": ".75rem",
49
+ "$type": "dimension",
50
+ "$description": ""
51
+ }
52
+ },
53
+
54
+ // "size": {
55
+ // "xxs": {
56
+ // "$value": "{size.base} * .25",
57
+ // "$type": "dimension",
58
+ // "$description": ""
59
+ // },
60
+ // "xs": {
61
+ // "$value": "{size.base} * .5",
62
+ // "$type": "dimension",
63
+ // "$description": ""
64
+ // },
65
+ // "sm": {
66
+ // "$value": "{size.base} * .75",
67
+ // "$type": "dimension",
68
+ // "$description": ""
69
+ // },
70
+ // "base": {
71
+ // "$value": "1rem",
72
+ // "$type": "dimension",
73
+ // "$description": ""
74
+ // },
75
+ // "md": {
76
+ // "$value": "{size.base} * 1.2",
77
+ // "$type": "dimension",
78
+ // "$description": ""
79
+ // },
80
+ // "lg": {
81
+ // "$value": "{size.base} * 1.5",
82
+ // "$type": "dimension",
83
+ // "$description": ""
84
+ // },
85
+ // "xl": {
86
+ // "$value": "{size.base} * 2",
87
+ // "$type": "dimension",
88
+ // "$description": ""
89
+ // },
90
+ // "2xl": {
91
+ // "$value": "{size.base} * 3",
92
+ // "$type": "dimension",
93
+ // "$description": ""
94
+ // },
95
+ // "3xl": {
96
+ // "$value": "{size.base} * 4",
97
+ // "$type": "dimension",
98
+ // "$description": ""
99
+ // }
100
+ // }
101
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+
3
+ "status": {
4
+ "danger": {
5
+ "color": {
6
+ "$value": "#c00",
7
+ "$type": "color"
8
+ },
9
+ "fg": {
10
+ "$value": "#fff",
11
+ "$type": "color"
12
+ },
13
+ "border": {
14
+ "color": {
15
+ "$value": "{status.danger.color}",
16
+ "$type": "color"
17
+ }
18
+ }
19
+ },
20
+ "success": {
21
+ "color": {
22
+ "$value": "#046d19",
23
+ "$type": "color"
24
+ },
25
+ "fg": {
26
+ "$value": "#fff",
27
+ "$type": "color"
28
+ },
29
+ "border": {
30
+ "color": {
31
+ "$value": "{status.success.color}",
32
+ "$type": "color"
33
+ }
34
+ }
35
+ },
36
+ "info": {
37
+ "color": {
38
+ "$value": "#0665c5",
39
+ "$type": "color"
40
+ },
41
+ "fg": {
42
+ "$value": "#fff",
43
+ "$type": "color"
44
+ },
45
+ "border": {
46
+ "color": {
47
+ "$value": "{status.info.color}",
48
+ "$type": "color"
49
+ }
50
+ }
51
+ },
52
+ "warning": {
53
+ "color": {
54
+ "$value": "#fc0",
55
+ "$type": "color"
56
+ },
57
+ "fg": {
58
+ "$value": "#4f2900",
59
+ "$type": "color"
60
+ },
61
+ "border": {
62
+ "color": {
63
+ "$value": "{status.warning.color}",
64
+ "$type": "color"
65
+ }
66
+ }
67
+ },
68
+ }
69
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "table": {
3
+ "thead": {
4
+ "background": {
5
+ "color": {
6
+ "$type": "color",
7
+ "$value": "#ddd"
8
+ }
9
+ },
10
+ "border": {
11
+ "width" : {
12
+ "$type": "dimension",
13
+ "$value": "3px"
14
+ }
15
+ }
16
+ },
17
+
18
+ "body": {
19
+ "background": {
20
+ "color": null
21
+ },
22
+ "border": {
23
+ "width" : {
24
+ "$type": "dimension",
25
+ "$value": "1px"
26
+ }
27
+ },
28
+ "tr": {
29
+ "alt-bg-color": {
30
+ "$type": "color",
31
+ "$value": "#efefef"
32
+ },
33
+ "hover-bg-color": {
34
+ "$type": "color",
35
+ "$value": "#cbcbcb"
36
+ }
37
+ }
38
+ },
39
+
40
+ "border": {
41
+ "color" : {
42
+ "$type": "color",
43
+ "$value": "#333"
44
+ }
45
+ },
46
+
47
+ "cell": {
48
+ "padding" : {
49
+ "block": {
50
+ "$type": "dimension",
51
+ "$value": ".3rem"
52
+ },
53
+ "inline": {
54
+ "$type": "dimension",
55
+ "$value": ".6rem"
56
+ }
57
+ },
58
+ "line-height": {
59
+ "$type": "number",
60
+ "$value": "1.3"
61
+ }
62
+ }
63
+
64
+
65
+ }
66
+ }