@massimo-cassandro/minimo 1.5.11 → 1.5.12

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/charts/TODO.md CHANGED
@@ -2,3 +2,6 @@ completare
2
2
  aggionare la documentazione e aggiungere i test a demo (in _wrk)
3
3
 
4
4
  implementare tooltip nativo nei file svg, ora viene aggiunto un data-title, ma non è gestito
5
+
6
+
7
+ aggiungere export specifico in package.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -1,3 +1,10 @@
1
1
  export function classnames(...args) {
2
- return args.filter(Boolean).join(' ');
2
+ return args.flat().filter(x => {
3
+ if (x && typeof x !== 'string') {
4
+ // eslint-disable-next-line no-console
5
+ console.error('[classnames] valore non stringa ignorato in ', ...args);
6
+ return false;
7
+ }
8
+ return Boolean(x);
9
+ }).join(' ');
3
10
  }