@massimo-cassandro/minimo 1.0.1 → 1.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -106,6 +106,7 @@
106
106
  }
107
107
  } */
108
108
 
109
+ /* TODO produzione utilities in automatico o con funzione css */
109
110
  .w-100 {
110
111
  width: 100% !important;
111
112
  }
@@ -113,22 +114,22 @@
113
114
  width: auto !important;
114
115
  }
115
116
 
116
- .mt-xxs {
117
+ .mbs-xxs {
117
118
  margin-block-start: var(--size-xxs);
118
119
  }
119
- .mt-0 {
120
+ .mbs-0 {
120
121
  margin-block-start: 0;
121
122
  }
122
- .mt {
123
+ .mbs {
123
124
  margin-block-start: var(--size-base);
124
125
  }
125
- .mt-lg {
126
+ .mbs-lg {
126
127
  margin-block-start: var(--size-lg);
127
128
  }
128
- .mt-xl {
129
+ .mbs-xl {
129
130
  margin-block-start: var(--size-xl);
130
131
  }
131
- .mt-auto {
132
+ .mbs-auto {
132
133
  margin-block-start: auto;
133
134
  }
134
135
  /* @media (--media-large-viewport-up) {
@@ -138,19 +139,19 @@
138
139
  }
139
140
  } */
140
141
 
141
- .mb-0 {
142
+ .mbe-0 {
142
143
  margin-block-end: 0;
143
144
  }
144
- .mb {
145
+ .mbe {
145
146
  margin-block-end: var(--size-base);
146
147
  }
147
- .mb-xs {
148
+ .mbe-xs {
148
149
  margin-block-end: var(--size-xs);
149
150
  }
150
- .mb-lg {
151
+ .mbe-lg {
151
152
  margin-block-end: var(--size-lg);
152
153
  }
153
- .mb-xl {
154
+ .mbe-xl {
154
155
  margin-block-end: var(--size-xl);
155
156
  }
156
157
  /* @media (--media-large-viewport-up) {
@@ -164,39 +165,46 @@
164
165
  grid-column: 1 / -1;
165
166
  } */
166
167
 
167
- .me {
168
+ .mis {
169
+ margin-inline-start: var(--size-base);
170
+ }
171
+ .mis-auto {
172
+ margin-inline-start: auto;
173
+ }
174
+
175
+ .mie {
168
176
  margin-inline-end: var(--size-base);
169
177
  }
170
- .me-xs {
178
+ .mie-xs {
171
179
  margin-inline-end: var(--size-xs);
172
180
  }
173
181
 
174
- .mx {
182
+ .mi {
175
183
  margin-inline: var(--size-base);
176
184
  }
177
- .mx-0 {
185
+ .mi-0 {
178
186
  margin-inline: 0;
179
187
  }
180
188
 
181
- .my {
189
+ .mb {
182
190
  margin-block: var(--size-base);
183
191
  }
184
- .my-0 {
192
+ .mb-0 {
185
193
  margin-block: 0;
186
194
  }
187
195
 
188
- .mx-lg {
196
+ .mi-lg {
189
197
  margin-inline: var(--size-lg);
190
198
  }
191
199
 
192
- .my-lg {
200
+ .mb-lg {
193
201
  margin-block: var(--size-lg);
194
202
  }
195
203
 
196
- .mx-xl {
204
+ .mi-xl {
197
205
  margin-inline: var(--size-xl);
198
206
  }
199
- .my-xl {
207
+ .mb-xl {
200
208
  margin-block: var(--size-xl);
201
209
  }
202
210
 
@@ -0,0 +1,12 @@
1
+
2
+ // uso
3
+ // throw new ValidationError('Sono presenti cicli duplicati', campiErrore );
4
+
5
+ export class ValidationError extends Error {
6
+ constructor(message, fields) {
7
+ super(message); // Passa il messaggio alla classe Error originale
8
+ this.name = 'ValidationError';
9
+ this.fields = fields; // Parametro custom
10
+ }
11
+ }
12
+