@massimo-cassandro/minimo 0.1.11 → 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.
- package/package.json +8 -4
- package/src/{js → components}/dialog-content.js +1 -1
- package/src/{css → components/inner-nav}/inner-nav.css +2 -2
- package/src/{js → components/inner-nav}/inner-nav.js +8 -0
- package/src/components/modal-content/modal-content.js +1 -1
- package/src/components/modal-content/modal-content.module.css +4 -4
- package/src/components/recaptcha/recaptcha.css +4 -5
- package/src/components/recaptcha/recaptcha.minimo.tokens.jsonc +24 -0
- package/src/{css/spinners → components/spinner}/TODO spinner-circle.css +1 -1
- package/src/{css/spinners → components/spinner}/spinner-circle-basic.css +3 -2
- package/src/{css/spinners → components/spinner}/spinner-wrapper.css +1 -1
- package/src/components/spinner/spinner.minimo.tokens.jsonc +22 -0
- package/src/components/toast/toast.js +77 -0
- package/src/components/toast/toast.minimo.tokens.jsonc +29 -0
- package/src/components/toast/toast.module.css +59 -0
- package/src/css/alerts.css +23 -23
- package/src/css/anchors.css +17 -16
- package/src/css/buttons/btn-close.css +8 -7
- package/src/css/buttons/buttons.css +105 -90
- package/src/css/buttons/status-buttons.css +43 -43
- package/src/css/container.css +3 -12
- package/src/css/details.css +1 -1
- package/src/css/dialog-content.css +2 -2
- package/src/css/flex.css +9 -0
- package/src/css/forms/fieldset.css +75 -0
- package/src/css/forms/form-group.css +18 -0
- package/src/css/forms/form-utilities.css +32 -0
- package/src/css/forms/forms.css +37 -202
- package/src/css/forms/input-group.css +49 -0
- package/src/css/forms/validation.css +25 -0
- package/src/css/grid.css +25 -18
- package/src/css/headings.css +10 -9
- package/src/css/icons.css +1 -40
- package/src/css/layout-base.css +3 -3
- package/src/css/overlay.css +1 -2
- package/src/css/table.css +26 -19
- package/src/css/text.css +8 -7
- package/src/css/utilities.css +90 -29
- package/src/custom-media-default.css +20 -8
- package/src/custom-properties-default.css +212 -306
- package/src/design-tokens/alerts.minimo.tokens.jsonc +23 -0
- package/src/design-tokens/basic.minimo.tokens.jsonc +52 -0
- package/src/design-tokens/btn-close.minimo.tokens.jsonc +95 -0
- package/src/design-tokens/btn-primary.minimo.tokens.jsonc +100 -0
- package/src/design-tokens/btn-secondary.minimo.tokens.jsonc +33 -0
- package/src/design-tokens/btn.minimo.tokens.jsonc +200 -0
- package/src/design-tokens/color-accent.minimo.tokens.jsonc +13 -0
- package/src/design-tokens/color-neutral.minimo.tokens.jsonc +12 -0
- package/src/design-tokens/color-primary.minimo.tokens.jsonc +12 -0
- package/src/design-tokens/color-secondary.minimo.tokens.jsonc +12 -0
- package/src/design-tokens/flex-grid.minimo.tokens.jsonc +18 -0
- package/src/design-tokens/form.minimo.tokens.jsonc +295 -0
- package/src/design-tokens/gradients-shadowes.minimo.tokens.jsonc +4 -0
- package/src/design-tokens/headings.minimo.tokens.jsonc +57 -0
- package/src/design-tokens/link.minimo.tokens.jsonc +41 -0
- package/src/design-tokens/radius.minimo.tokens.jsonc +45 -0
- package/src/design-tokens/size.minimo.tokens.jsonc +101 -0
- package/src/design-tokens/status.minimo.tokens.jsonc +69 -0
- package/src/design-tokens/table.minimo.tokens.jsonc +66 -0
- package/src/design-tokens/typography.minimo.tokens.jsonc +120 -0
- package/src/design-tokens/utility.minimo.tokens.jsonc +8 -0
- package/src/design-tokens/z-index.minimo.tokens.jsonc +8 -0
- package/src/fonts-template.css +7 -0
- package/src/index-template.css +5 -10
- package/src/index.js +1 -0
- package/src/utilities/classnames.js +3 -0
- package/src/web-components/simple-datatable/icons/arrow-down.svg +1 -0
- package/src/web-components/simple-datatable/icons/arrow-up.svg +2 -0
- package/src/web-components/simple-datatable/icons/arrows-down-up.svg +1 -0
- package/src/web-components/simple-datatable/icons/caret-left.svg +1 -0
- package/src/web-components/simple-datatable/icons/caret-right.svg +1 -0
- package/src/web-components/simple-datatable/icons/check-bold.svg +1 -0
- package/src/web-components/simple-datatable/icons/x-bold.svg +1 -0
- package/src/web-components/simple-datatable/simple-datatable.js +219 -0
- package/src/web-components/simple-datatable/simple-datatable.minimo.tokens.jsonc +50 -0
- package/src/web-components/simple-datatable/simple-datatable.module.css +214 -0
- package/src/web-components/simple-datatable/src/parse-cols.js +117 -0
- package/src/components/init.js +0 -7
- package/src/css/forms/form-edit-info.css +0 -17
- /package/src/{js → components}/alert-autoclose.js +0 -0
- /package/src/{js → components}/create-blurhash-canvas.js +0 -0
- /package/src/{js → components}/dismiss-alerts.js +0 -0
- /package/src/{js → components}/forms.js +0 -0
- /package/src/{js → components}/img-viewer-dom-builder.js +0 -0
- /package/src/{js → components}/overlay.js +0 -0
- /package/src/{js → components}/print-icon.js +0 -0
- /package/src/{css/spinners → components/spinner}/TODO spinner-three-dots.css +0 -0
- /package/src/{css/spinners → components/spinner}/spinner-trailing-dots.css +0 -0
- /package/src/{js → components/spinner}/spinner.js +0 -0
package/src/css/table.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/* wrapper per le tabelle per evitare che superino la
|
|
1
|
+
/* wrapper per le tabelle per evitare che superino la larghezza dello spazio disponibile */
|
|
2
|
+
|
|
3
|
+
/* purgecss start ignore */
|
|
4
|
+
|
|
2
5
|
.table-responsive {
|
|
3
6
|
max-width: 100%;
|
|
4
7
|
overflow-x: auto;
|
|
@@ -6,61 +9,65 @@
|
|
|
6
9
|
|
|
7
10
|
.table {
|
|
8
11
|
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
12
|
+
--_alternate-row-bg: var(--table-body-tr-alt-bg-color);
|
|
13
|
+
--_hover-row-bg: var(--table-body-tr-hover-bg-color);
|
|
14
|
+
--_border-color: var(--table-border-color);
|
|
15
|
+
--_border: 1px solid var(--_border-color);
|
|
13
16
|
|
|
14
17
|
width: 100%;
|
|
15
18
|
margin: 1rem 0;
|
|
16
19
|
border-collapse: collapse;
|
|
17
20
|
|
|
18
21
|
tr {
|
|
19
|
-
border-bottom: var(--
|
|
22
|
+
border-bottom: var(--_border);
|
|
20
23
|
}
|
|
21
24
|
thead {
|
|
25
|
+
background-color: var(--table-thead-background-color);
|
|
22
26
|
tr:last-child {
|
|
23
|
-
border-width:
|
|
27
|
+
border-width: var(--table-thead-border-width);
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
tbody {
|
|
28
32
|
tr:nth-child(even) {
|
|
29
|
-
background-color: var(--
|
|
33
|
+
background-color: var(--_alternate-row-bg);
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
@media (
|
|
36
|
+
@media (hover: hover) {
|
|
33
37
|
tr:hover {
|
|
34
|
-
background-color: var(--
|
|
38
|
+
background-color: var(--_hover-row-bg);
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
|
|
40
44
|
th, td {
|
|
41
|
-
padding:
|
|
42
|
-
line-height:
|
|
43
|
-
text-align: start;
|
|
45
|
+
padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
|
|
46
|
+
line-height: var(--table-cell-line-height);
|
|
44
47
|
vertical-align: top;
|
|
48
|
+
text-align: start;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
&.table-bordered {
|
|
48
|
-
border: var(--
|
|
52
|
+
border: var(--_border);
|
|
49
53
|
|
|
50
54
|
th, td {
|
|
51
55
|
&:not(:first-child) {
|
|
52
|
-
border-inline-start: var(--
|
|
56
|
+
border-inline-start: var(--_border);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
/*
|
|
60
64
|
@media (prefers-color-scheme: dark) {
|
|
61
65
|
.table {
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
66
|
+
--_border-color: var(--_stone-8);
|
|
67
|
+
--_alternate-row-bg: color-mix(in srgb, var(--_stone-12) 60%, transparent);
|
|
68
|
+
--_hover-row-bg: color-mix(in srgb, var(--_blue-12) 60%, transparent);
|
|
65
69
|
}
|
|
66
70
|
}
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/* purgecss end ignore */
|
package/src/css/text.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* stylelint-disable declaration-no-important */
|
|
2
2
|
p {
|
|
3
|
-
margin: 0 0 var(--
|
|
3
|
+
margin: 0 0 var(--size-sm);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
a:link, .btn-link {
|
|
@@ -28,15 +28,13 @@ a, .btn-link {
|
|
|
28
28
|
text-underline-offset: 2px;
|
|
29
29
|
}
|
|
30
30
|
&:active {
|
|
31
|
-
color: var(--body-
|
|
32
|
-
background-color: var(--link-color);
|
|
31
|
+
color: var(--body-background-color);
|
|
33
32
|
outline: 2px solid var(--link-color);
|
|
33
|
+
background-color: var(--link-color);
|
|
34
34
|
offset: 0;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
38
|
strong, b {
|
|
41
39
|
font-weight: 700;
|
|
42
40
|
}
|
|
@@ -81,7 +79,10 @@ em, .italic {
|
|
|
81
79
|
.text-xs {
|
|
82
80
|
font-size: var(--font-size-xs);
|
|
83
81
|
}
|
|
84
|
-
small, .small
|
|
82
|
+
small, .small {
|
|
83
|
+
font-size: .9em;
|
|
84
|
+
}
|
|
85
|
+
.text-sm {
|
|
85
86
|
font-size: var(--font-size-sm);
|
|
86
87
|
}
|
|
87
88
|
.text-md {
|
|
@@ -89,7 +90,7 @@ small, .small, .text-sm {
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.text-muted {
|
|
92
|
-
color: var(--text-muted
|
|
93
|
+
color: var(--text-muted);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
ul {
|
package/src/css/utilities.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* da bootstrap */
|
|
2
2
|
/* stylelint-disable declaration-no-important */
|
|
3
3
|
|
|
4
|
+
/* purgecss start ignore */
|
|
4
5
|
.visually-hidden {
|
|
5
6
|
display: block;
|
|
6
7
|
width: 1px !important;
|
|
@@ -8,34 +9,70 @@
|
|
|
8
9
|
padding: 0 !important;
|
|
9
10
|
margin: -1px !important;
|
|
10
11
|
overflow: hidden !important;
|
|
11
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
12
12
|
white-space: nowrap !important;
|
|
13
13
|
border: 0 !important;
|
|
14
|
+
clip-path: rect(0 0 0 0) !important;
|
|
14
15
|
}
|
|
16
|
+
/* purgecss end ignore */
|
|
15
17
|
|
|
16
18
|
.overflow-hidden {
|
|
17
19
|
overflow: hidden;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
@media (--
|
|
21
|
-
.
|
|
22
|
+
@media (--media-medium-viewport-down) {
|
|
23
|
+
.d-md-down-none {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/*
|
|
28
|
+
.d-md-up-block {
|
|
29
|
+
display: none;
|
|
30
|
+
|
|
31
|
+
@media (--media-medium-viewport-up) {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.d-md-up-flex {
|
|
36
|
+
display: none;
|
|
37
|
+
|
|
38
|
+
@media (--media-medium-viewport-up) {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
} */
|
|
42
|
+
|
|
43
|
+
/* TODO da rivedere */
|
|
44
|
+
/* @media (--media-xlarge-viewport-up) {
|
|
45
|
+
.xlg-visually-hidden {
|
|
46
|
+
display: block;
|
|
47
|
+
width: 1px !important;
|
|
48
|
+
height: 1px !important;
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
margin: -1px !important;
|
|
51
|
+
overflow: hidden !important;
|
|
52
|
+
white-space: nowrap !important;
|
|
53
|
+
border: 0 !important;
|
|
54
|
+
clip-path: rect(0 0 0 0) !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@media (--media-large-viewport-up) {
|
|
58
|
+
.lg-visually-hidden {
|
|
22
59
|
display: block;
|
|
23
60
|
width: 1px !important;
|
|
24
61
|
height: 1px !important;
|
|
25
62
|
padding: 0 !important;
|
|
26
63
|
margin: -1px !important;
|
|
27
64
|
overflow: hidden !important;
|
|
28
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
29
65
|
white-space: nowrap !important;
|
|
30
66
|
border: 0 !important;
|
|
67
|
+
clip-path: rect(0 0 0 0) !important;
|
|
31
68
|
}
|
|
32
69
|
}
|
|
33
70
|
|
|
34
|
-
@media (--
|
|
35
|
-
.
|
|
71
|
+
@media (--media-large-viewport-down) {
|
|
72
|
+
.sm-screen-hidden {
|
|
36
73
|
display: none !important;
|
|
37
74
|
}
|
|
38
|
-
}
|
|
75
|
+
} */
|
|
39
76
|
|
|
40
77
|
|
|
41
78
|
@media print {
|
|
@@ -57,24 +94,27 @@
|
|
|
57
94
|
}
|
|
58
95
|
} */
|
|
59
96
|
|
|
60
|
-
|
|
97
|
+
.w-100 {
|
|
61
98
|
width: 100% !important;
|
|
62
|
-
}
|
|
63
|
-
|
|
99
|
+
}
|
|
100
|
+
.w-auto {
|
|
64
101
|
width: auto !important;
|
|
65
|
-
}
|
|
102
|
+
}
|
|
66
103
|
|
|
67
|
-
|
|
68
|
-
margin-block-start: var(--
|
|
69
|
-
}
|
|
104
|
+
.mt-xxs {
|
|
105
|
+
margin-block-start: var(--size-xxs);
|
|
106
|
+
}
|
|
107
|
+
.mt-0 {
|
|
108
|
+
margin-block-start: 0;
|
|
109
|
+
}
|
|
70
110
|
.mt {
|
|
71
|
-
margin-block-start: var(--
|
|
111
|
+
margin-block-start: var(--size-base);
|
|
72
112
|
}
|
|
73
113
|
.mt-lg {
|
|
74
|
-
margin-block-start: var(--
|
|
114
|
+
margin-block-start: var(--size-lg);
|
|
75
115
|
}
|
|
76
116
|
.mt-xl {
|
|
77
|
-
margin-block-start: var(--
|
|
117
|
+
margin-block-start: var(--size-xl);
|
|
78
118
|
}
|
|
79
119
|
.mt-auto {
|
|
80
120
|
margin-block-start: auto;
|
|
@@ -82,7 +122,7 @@
|
|
|
82
122
|
/* @media (--media-large-viewport-up) {
|
|
83
123
|
|
|
84
124
|
.mt-dsk-lg {
|
|
85
|
-
margin-block-start: var(--
|
|
125
|
+
margin-block-start: var(--size-lg);
|
|
86
126
|
}
|
|
87
127
|
} */
|
|
88
128
|
|
|
@@ -90,18 +130,21 @@
|
|
|
90
130
|
margin-block-end: 0;
|
|
91
131
|
}
|
|
92
132
|
.mb {
|
|
93
|
-
margin-block-end: var(--
|
|
133
|
+
margin-block-end: var(--size-base);
|
|
134
|
+
}
|
|
135
|
+
.mb-xs {
|
|
136
|
+
margin-block-end: var(--size-xs);
|
|
94
137
|
}
|
|
95
138
|
.mb-lg {
|
|
96
|
-
margin-block-end: var(--
|
|
139
|
+
margin-block-end: var(--size-lg);
|
|
140
|
+
}
|
|
141
|
+
.mb-xl {
|
|
142
|
+
margin-block-end: var(--size-xl);
|
|
97
143
|
}
|
|
98
|
-
/* .mb-xl {
|
|
99
|
-
margin-block-end: var(--spacing-xl);
|
|
100
|
-
} */
|
|
101
144
|
/* @media (--media-large-viewport-up) {
|
|
102
145
|
|
|
103
146
|
.mb-dsk-lg {
|
|
104
|
-
margin-block-end: var(--
|
|
147
|
+
margin-block-end: var(--size-lg);
|
|
105
148
|
}
|
|
106
149
|
} */
|
|
107
150
|
|
|
@@ -110,19 +153,37 @@
|
|
|
110
153
|
} */
|
|
111
154
|
|
|
112
155
|
.me {
|
|
113
|
-
margin-inline-end: var(--
|
|
156
|
+
margin-inline-end: var(--size-base);
|
|
114
157
|
}
|
|
115
158
|
.me-xs {
|
|
116
|
-
margin-inline-end: var(--
|
|
159
|
+
margin-inline-end: var(--size-xs);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.mx {
|
|
163
|
+
margin-inline: var(--size-base);
|
|
164
|
+
}
|
|
165
|
+
.mx-0 {
|
|
166
|
+
margin-inline: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.my {
|
|
170
|
+
margin-block: var(--size-base);
|
|
171
|
+
}
|
|
172
|
+
.my-0 {
|
|
173
|
+
margin-block: 0;
|
|
117
174
|
}
|
|
118
175
|
|
|
119
176
|
.mx-lg {
|
|
120
|
-
margin-inline: var(--
|
|
177
|
+
margin-inline: var(--size-lg);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.my-lg {
|
|
181
|
+
margin-block: var(--size-lg);
|
|
121
182
|
}
|
|
122
183
|
|
|
123
184
|
.mx-xl {
|
|
124
|
-
margin-inline: var(--
|
|
185
|
+
margin-inline: var(--size-xl);
|
|
125
186
|
}
|
|
126
187
|
.my-xl {
|
|
127
|
-
margin-block: var(--
|
|
188
|
+
margin-block: var(--size-xl);
|
|
128
189
|
}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
90rem : 1440px
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
90rem : 1440px xxlarge (large desktop)
|
|
3
|
+
80rem : 1280px xlarge (desktop)
|
|
4
|
+
64rem : 1024px large (small desktop)
|
|
5
|
+
47.5rem : 760px medium (tablet)
|
|
6
|
+
25rem : 400px small (phone)
|
|
7
|
+
|
|
8
|
+
tablet alt:
|
|
9
|
+
53.75rem : 860px medium (tablet)
|
|
5
10
|
*/
|
|
6
11
|
|
|
7
|
-
@custom-media --media-
|
|
8
|
-
@custom-media --media-
|
|
9
|
-
@custom-media --media-
|
|
12
|
+
/* @custom-media --media-xxlarge-viewport-up (width >= 90rem); */
|
|
13
|
+
@custom-media --media-xlarge-viewport-up (width >= 80rem);
|
|
14
|
+
@custom-media --media-large-viewport-up (width >= 64rem);
|
|
15
|
+
@custom-media --media-medium-viewport-up (width >= 47.5rem);
|
|
16
|
+
@custom-media --media-small-viewport-up (width >= 25rem);
|
|
10
17
|
|
|
11
|
-
@custom-media --media-
|
|
18
|
+
@custom-media --media-xxlarge-viewport-only (width >= 90rem);
|
|
19
|
+
@custom-media --media-xlarge-viewport-only (64rem < width <= 80rem);
|
|
20
|
+
@custom-media --media-large-viewport-only (64rem < width <= 80rem);
|
|
12
21
|
@custom-media --media-medium-viewport-only (47.5rem < width <= 64rem);
|
|
13
22
|
@custom-media --media-small-viewport-only (width <= 47.5rem);
|
|
14
23
|
|
|
15
|
-
@custom-media --media-
|
|
24
|
+
@custom-media --media-xxlarge-viewport-down (max-width: 90rem);
|
|
25
|
+
@custom-media --media-xlarge-viewport-down (max-width: 80rem);
|
|
16
26
|
@custom-media --media-large-viewport-down (max-width: 64rem);
|
|
27
|
+
@custom-media --media-medium-viewport-down (max-width: 47.5rem);
|
|
28
|
+
/* @custom-media --media-small-viewport-down (max-width: 25rem); */
|