@massimo-cassandro/minimo 1.5.13 → 1.6.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 (84) hide show
  1. package/design-tokens/_src/components/spinner.minimo.tokens.mjs +18 -0
  2. package/design-tokens/_src/headings.minimo.tokens.mjs +56 -0
  3. package/design-tokens/_src/link.minimo.tokens.mjs +41 -0
  4. package/design-tokens/_src/radius.minimo.tokens.mjs +44 -0
  5. package/design-tokens/_src/size.minimo.tokens.mjs +105 -0
  6. package/design-tokens/_src/status.minimo.tokens.mjs +92 -0
  7. package/design-tokens/_src/typography.minimo.tokens.mjs +123 -0
  8. package/design-tokens/_src/utility.minimo.tokens.mjs +8 -0
  9. package/design-tokens/_src/web-components/simple-datatable.minimo.tokens.mjs +47 -0
  10. package/{design-tokens-utilities → design-tokens/utilities}/build-tokens-src/config.mjs +1 -1
  11. package/{design-tokens-utilities → design-tokens/utilities}/build-tokens.mjs +1 -1
  12. package/{design-tokens-utilities → design-tokens/utilities}/check-unresolved-custom-props.mjs +2 -2
  13. package/index.js +1 -1
  14. package/package.json +11 -8
  15. package/src/components/unsplash-page/unsplash-page.module.css +1 -1
  16. package/design-tokens-src/components/spinner.minimo.tokens.jsonc +0 -22
  17. package/design-tokens-src/headings.minimo.tokens.jsonc +0 -57
  18. package/design-tokens-src/link.minimo.tokens.jsonc +0 -41
  19. package/design-tokens-src/radius.minimo.tokens.jsonc +0 -45
  20. package/design-tokens-src/size.minimo.tokens.jsonc +0 -105
  21. package/design-tokens-src/status.minimo.tokens.jsonc +0 -93
  22. package/design-tokens-src/typography.minimo.tokens.jsonc +0 -129
  23. package/design-tokens-src/utility.minimo.tokens.jsonc +0 -8
  24. package/design-tokens-src/web-components/simple-datatable.minimo.tokens.jsonc +0 -50
  25. /package/{design-tokens-src → design-tokens/_src}/_readme.md +0 -0
  26. /package/{design-tokens-src → design-tokens/_src}/alerts.minimo.tokens.mjs +0 -0
  27. /package/{design-tokens-src → design-tokens/_src}/badge.minimo.tokens.mjs +0 -0
  28. /package/{design-tokens-src → design-tokens/_src}/btn-close.minimo.tokens.mjs +0 -0
  29. /package/{design-tokens-src → design-tokens/_src}/btn-color-themes.minimo.tokens.mjs +0 -0
  30. /package/{design-tokens-src → design-tokens/_src}/btn.minimo.tokens.mjs +0 -0
  31. /package/{design-tokens-src → design-tokens/_src}/color-accent.minimo.tokens.mjs +0 -0
  32. /package/{design-tokens-src → design-tokens/_src}/color-neutral.minimo.tokens.mjs +0 -0
  33. /package/{design-tokens-src → design-tokens/_src}/color-primary.minimo.tokens.mjs +0 -0
  34. /package/{design-tokens-src → design-tokens/_src}/color-secondary.minimo.tokens.mjs +0 -0
  35. /package/{design-tokens-src → design-tokens/_src}/components/sf-macro.minimo.tokens.mjs +0 -0
  36. /package/{design-tokens-src → design-tokens/_src}/components/snackbar.minimo.tokens.mjs +0 -0
  37. /package/{design-tokens-src → design-tokens/_src}/components/unsplash-page.minimo.tokens.mjs +0 -0
  38. /package/{design-tokens-src → design-tokens/_src}/flex-grid.minimo.tokens.mjs +0 -0
  39. /package/{design-tokens-src → design-tokens/_src}/form-validation.minimo.tokens.mjs +0 -0
  40. /package/{design-tokens-src → design-tokens/_src}/form.minimo.tokens.mjs +0 -0
  41. /package/{design-tokens-src → design-tokens/_src}/layout.minimo.tokens.mjs +0 -0
  42. /package/{design-tokens-src → design-tokens/_src}/modal-popup.minimo.tokens.mjs +0 -0
  43. /package/{design-tokens-src → design-tokens/_src}/shadows.minimo.tokens.mjs +0 -0
  44. /package/{design-tokens-src → design-tokens/_src}/switch.minimo.tokens.mjs +0 -0
  45. /package/{design-tokens-src → design-tokens/_src}/table.minimo.tokens.mjs +0 -0
  46. /package/{design-tokens-src → design-tokens/_src}/text.minimo.tokens.mjs +0 -0
  47. /package/{design-tokens-src → design-tokens/_src}/z-index.minimo.tokens.mjs +0 -0
  48. /package/design-tokens/{alerts.minimo.tokens.jsonc → tokens/alerts.minimo.tokens.jsonc} +0 -0
  49. /package/design-tokens/{badge.minimo.tokens.jsonc → tokens/badge.minimo.tokens.jsonc} +0 -0
  50. /package/design-tokens/{btn-close.minimo.tokens.jsonc → tokens/btn-close.minimo.tokens.jsonc} +0 -0
  51. /package/design-tokens/{btn-color-themes.minimo.tokens.jsonc → tokens/btn-color-themes.minimo.tokens.jsonc} +0 -0
  52. /package/design-tokens/{btn.minimo.tokens.jsonc → tokens/btn.minimo.tokens.jsonc} +0 -0
  53. /package/design-tokens/{color-accent.minimo.tokens.jsonc → tokens/color-accent.minimo.tokens.jsonc} +0 -0
  54. /package/design-tokens/{color-neutral.minimo.tokens.jsonc → tokens/color-neutral.minimo.tokens.jsonc} +0 -0
  55. /package/design-tokens/{color-primary.minimo.tokens.jsonc → tokens/color-primary.minimo.tokens.jsonc} +0 -0
  56. /package/design-tokens/{color-secondary.minimo.tokens.jsonc → tokens/color-secondary.minimo.tokens.jsonc} +0 -0
  57. /package/design-tokens/{components → tokens/components}/sf-macro.minimo.tokens.jsonc +0 -0
  58. /package/design-tokens/{components → tokens/components}/snackbar.minimo.tokens.jsonc +0 -0
  59. /package/design-tokens/{components → tokens/components}/spinner.minimo.tokens.jsonc +0 -0
  60. /package/design-tokens/{components → tokens/components}/unsplash-page.minimo.tokens.jsonc +0 -0
  61. /package/design-tokens/{flex-grid.minimo.tokens.jsonc → tokens/flex-grid.minimo.tokens.jsonc} +0 -0
  62. /package/design-tokens/{form-validation.minimo.tokens.jsonc → tokens/form-validation.minimo.tokens.jsonc} +0 -0
  63. /package/design-tokens/{form.minimo.tokens.jsonc → tokens/form.minimo.tokens.jsonc} +0 -0
  64. /package/design-tokens/{headings.minimo.tokens.jsonc → tokens/headings.minimo.tokens.jsonc} +0 -0
  65. /package/design-tokens/{layout.minimo.tokens.jsonc → tokens/layout.minimo.tokens.jsonc} +0 -0
  66. /package/design-tokens/{link.minimo.tokens.jsonc → tokens/link.minimo.tokens.jsonc} +0 -0
  67. /package/design-tokens/{modal-popup.minimo.tokens.jsonc → tokens/modal-popup.minimo.tokens.jsonc} +0 -0
  68. /package/design-tokens/{radius.minimo.tokens.jsonc → tokens/radius.minimo.tokens.jsonc} +0 -0
  69. /package/design-tokens/{shadows.minimo.tokens.jsonc → tokens/shadows.minimo.tokens.jsonc} +0 -0
  70. /package/design-tokens/{size.minimo.tokens.jsonc → tokens/size.minimo.tokens.jsonc} +0 -0
  71. /package/design-tokens/{status.minimo.tokens.jsonc → tokens/status.minimo.tokens.jsonc} +0 -0
  72. /package/design-tokens/{switch.minimo.tokens.jsonc → tokens/switch.minimo.tokens.jsonc} +0 -0
  73. /package/design-tokens/{table.minimo.tokens.jsonc → tokens/table.minimo.tokens.jsonc} +0 -0
  74. /package/design-tokens/{text.minimo.tokens.jsonc → tokens/text.minimo.tokens.jsonc} +0 -0
  75. /package/design-tokens/{typography.minimo.tokens.jsonc → tokens/typography.minimo.tokens.jsonc} +0 -0
  76. /package/design-tokens/{utility.minimo.tokens.jsonc → tokens/utility.minimo.tokens.jsonc} +0 -0
  77. /package/design-tokens/{web-components → tokens/web-components}/simple-datatable.minimo.tokens.jsonc +0 -0
  78. /package/design-tokens/{z-index.minimo.tokens.jsonc → tokens/z-index.minimo.tokens.jsonc} +0 -0
  79. /package/{design-tokens-utilities → design-tokens/utilities}/build-tokens-src/formats/css.mjs +0 -0
  80. /package/{design-tokens-utilities → design-tokens/utilities}/build-tokens-src/formats/penpot.mjs +0 -0
  81. /package/{design-tokens-utilities → design-tokens/utilities}/build-tokens-src/platforms.mjs +0 -0
  82. /package/{design-tokens-utilities → design-tokens/utilities}/build-tokens-src/transforms.mjs +0 -0
  83. /package/{design-tokens-utilities → design-tokens/utilities}/readme.md +0 -0
  84. /package/{design-tokens-utilities → design-tokens/utilities}/tokens-config-sample.mjs +0 -0
@@ -0,0 +1,18 @@
1
+ export default {
2
+ spinner: {
3
+ size: {
4
+ $value: '{size.lg}',
5
+ $type: 'dimension'
6
+ },
7
+ color: {
8
+ $value: '{primary.100}',
9
+ $type: 'color'
10
+ },
11
+ stroke: {
12
+ width: {
13
+ $value: '2px',
14
+ $type: 'dimension'
15
+ }
16
+ },
17
+ }
18
+ };
@@ -0,0 +1,56 @@
1
+ export default {
2
+ headings: {
3
+ text: {
4
+ align: {
5
+ $type: 'string',
6
+ $value: 'inherit'
7
+ }
8
+ },
9
+ color: {
10
+ $type: 'color',
11
+ $value: '{text.color}'
12
+ },
13
+ font: {
14
+ weight: {
15
+ $type: 'string',
16
+ $value: '{font.weight.semibold}'
17
+ }
18
+ },
19
+ h1: {
20
+ font: {
21
+ weight: {
22
+ $type: 'string',
23
+ $value: '{headings.font.weight}'
24
+ },
25
+ size: {
26
+ $type: 'dimension',
27
+ $value: '{font.size.2xl}'
28
+ }
29
+ }
30
+ },
31
+ h2: {
32
+ font: {
33
+ size: {
34
+ $type: 'dimension',
35
+ $value: '{font.size.xl}'
36
+ }
37
+ }
38
+ },
39
+ h3: {
40
+ font: {
41
+ size: {
42
+ $type: 'dimension',
43
+ $value: '{font.size.lg}'
44
+ }
45
+ }
46
+ },
47
+ h4: {
48
+ font: {
49
+ size: {
50
+ $type: 'dimension',
51
+ $value: '{font.size.md}'
52
+ }
53
+ }
54
+ },
55
+ }
56
+ };
@@ -0,0 +1,41 @@
1
+ export default {
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,44 @@
1
+ export default {
2
+ radius: {
3
+ base: {
4
+ $value: '{size.base}',
5
+ $type: 'dimension',
6
+ $description: ''
7
+ },
8
+ xxs: {
9
+ $value: '{size.xxs}',
10
+ $type: 'dimension',
11
+ $description: ''
12
+ },
13
+ xs: {
14
+ $value: '{size.xs}',
15
+ $type: 'dimension',
16
+ $description: ''
17
+ },
18
+ sm: {
19
+ $value: '{size.sm}',
20
+ $type: 'dimension',
21
+ $description: ''
22
+ },
23
+ md: {
24
+ $value: '{size.md}',
25
+ $type: 'dimension',
26
+ $description: ''
27
+ },
28
+ lg: {
29
+ $value: '{size.lg}',
30
+ $type: 'dimension',
31
+ $description: ''
32
+ },
33
+ xl: {
34
+ $value: '{size.xl}',
35
+ $type: 'dimension',
36
+ $description: ''
37
+ },
38
+ pill: {
39
+ $value: '9999rem',
40
+ $type: 'dimension',
41
+ $description: ''
42
+ }
43
+ }
44
+ };
@@ -0,0 +1,105 @@
1
+ // in attesa di modifica dello script per il parser automatico delle espressioni
2
+
3
+ // export const dimensions_bulder = (
4
+ // base_dim = 1,
5
+ // unit = 'rem',
6
+ // scale = ['xxs', 'xs','sm', 'base', 'md', 'lg', 'xl', '2xl', '3xl']) => {
7
+ // };
8
+
9
+ export default {
10
+ size: {
11
+ xxs: {
12
+ $value: '.25rem',
13
+ $type: 'dimension',
14
+ $description: ''
15
+ },
16
+ xs: {
17
+ $value: '.5rem',
18
+ $type: 'dimension',
19
+ $description: ''
20
+ },
21
+ sm: {
22
+ $value: '.75rem',
23
+ $type: 'dimension',
24
+ $description: ''
25
+ },
26
+ base: {
27
+ $value: '1rem',
28
+ $type: 'dimension',
29
+ $description: ''
30
+ },
31
+ md: {
32
+ $value: '1.2rem',
33
+ $type: 'dimension',
34
+ $description: ''
35
+ },
36
+ lg: {
37
+ $value: '1.5rem',
38
+ $type: 'dimension',
39
+ $description: ''
40
+ },
41
+ xl: {
42
+ $value: '2rem',
43
+ $type: 'dimension',
44
+ $description: ''
45
+ },
46
+ '2xl': {
47
+ $value: '3rem',
48
+ $type: 'dimension',
49
+ $description: ''
50
+ },
51
+ '3xl': {
52
+ $value: '4rem',
53
+ $type: 'dimension',
54
+ $description: ''
55
+ },
56
+ },
57
+
58
+ // // size: {
59
+ // // xxs: {
60
+ // // $value: '{size.base} * .25',
61
+ // // $type: 'dimension',
62
+ // // $description: ''
63
+ // // },
64
+ // // xs: {
65
+ // // $value: '{size.base} * .5',
66
+ // // $type: 'dimension',
67
+ // // $description: ''
68
+ // // },
69
+ // // sm: {
70
+ // // $value: '{size.base} * .75',
71
+ // // $type: 'dimension',
72
+ // // $description: ''
73
+ // // },
74
+ // // base: {
75
+ // // $value: '1rem',
76
+ // // $type: 'dimension',
77
+ // // $description: ''
78
+ // // },
79
+ // // md: {
80
+ // // $value: '{size.base} * 1.2',
81
+ // // $type: 'dimension',
82
+ // // $description: ''
83
+ // // },
84
+ // // lg: {
85
+ // // $value: '{size.base} * 1.5',
86
+ // // $type: 'dimension',
87
+ // // $description: ''
88
+ // // },
89
+ // // xl: {
90
+ // // $value: '{size.base} * 2',
91
+ // // $type: 'dimension',
92
+ // // $description: ''
93
+ // // },
94
+ // // '2xl': {
95
+ // // $value: '{size.base} * 3',
96
+ // // $type: 'dimension',
97
+ // // $description: ''
98
+ // // },
99
+ // // '3xl': {
100
+ // // $value: '{size.base} * 4',
101
+ // // $type: 'dimension',
102
+ // // $description: ''
103
+ // // }
104
+ // // }
105
+ };
@@ -0,0 +1,92 @@
1
+ export default {
2
+ status: {
3
+ danger: {
4
+ color: {
5
+ $value: '#c00',
6
+ $type: 'color'
7
+ },
8
+ background: {
9
+ color: {
10
+ $value: '{status.danger.color}',
11
+ $type: 'color'
12
+ }
13
+ },
14
+ fg: {
15
+ $value: '#fff',
16
+ $type: 'color'
17
+ },
18
+ border: {
19
+ color: {
20
+ $value: '{status.danger.color}',
21
+ $type: 'color'
22
+ }
23
+ }
24
+ },
25
+ success: {
26
+ color: {
27
+ $value: '#046d19',
28
+ $type: 'color'
29
+ },
30
+ background: {
31
+ color: {
32
+ $value: '{status.success.color}',
33
+ $type: 'color'
34
+ }
35
+ },
36
+ fg: {
37
+ $value: '#fff',
38
+ $type: 'color'
39
+ },
40
+ border: {
41
+ color: {
42
+ $value: '{status.success.color}',
43
+ $type: 'color'
44
+ }
45
+ }
46
+ },
47
+ info: {
48
+ color: {
49
+ $value: '#0665c5',
50
+ $type: 'color'
51
+ },
52
+ background: {
53
+ color: {
54
+ $value: '{status.info.color}',
55
+ $type: 'color'
56
+ }
57
+ },
58
+ fg: {
59
+ $value: '#fff',
60
+ $type: 'color'
61
+ },
62
+ border: {
63
+ color: {
64
+ $value: '{status.info.color}',
65
+ $type: 'color'
66
+ }
67
+ }
68
+ },
69
+ warning: {
70
+ color: {
71
+ $value: '#fc0',
72
+ $type: 'color'
73
+ },
74
+ background: {
75
+ color: {
76
+ $value: '{status.warning.color}',
77
+ $type: 'color'
78
+ }
79
+ },
80
+ fg: {
81
+ $value: '#4f2900',
82
+ $type: 'color'
83
+ },
84
+ border: {
85
+ color: {
86
+ $value: '{status.warning.color}',
87
+ $type: 'color'
88
+ }
89
+ }
90
+ },
91
+ }
92
+ };
@@ -0,0 +1,123 @@
1
+ export default {
2
+ font: {
3
+ family: {
4
+ $value: 'sans-serif',
5
+ $type: 'fontFamily'
6
+ },
7
+ 'family-mono': {
8
+ $value: "'Monaspace Neon Var', 'Monaspace Neon', 'Aptos Mono', 'Roboto Mono', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Andale Mono', 'Courier New', monospace",
9
+ $type: 'fontFamily'
10
+ },
11
+
12
+ size: {
13
+ base: {
14
+ $value: 'clamp(.9rem, .6538rem + .3846vw, 1rem)',
15
+ $type: 'string'
16
+ },
17
+ xxs: {
18
+ $value: 'clamp(.6rem, .3538rem + .3846vw, .7rem)',
19
+ $type: 'string'
20
+ },
21
+ xs: {
22
+ $value: 'clamp(.7rem, .4538rem + .3846vw, .8rem)',
23
+ $type: 'string'
24
+ },
25
+ sm: {
26
+ $value: 'clamp(.8rem, .5538rem + .3846vw, .9rem)',
27
+ $type: 'string'
28
+ },
29
+ // lead: {
30
+ // $value: 'clamp(1rem, 0.6923rem + 0.4808vw, 1.125rem)',
31
+ // $type: 'string'
32
+ // },
33
+ md: {
34
+ $value: 'clamp(1.05rem, .6808rem + .5769vw, 1.2rem)',
35
+ $type: 'string'
36
+ },
37
+ lg: {
38
+ $value: 'clamp(1.2rem, .7077rem + .7692vw, 1.4rem)',
39
+ $type: 'string'
40
+ },
41
+ xl: {
42
+ $value: 'clamp(1.6rem, 1.1077rem + .7692vw, 1.8rem)',
43
+ $type: 'string'
44
+ },
45
+ '2xl': {
46
+ $value: 'clamp(2rem, .7692rem + 1.9231vw, 2.5rem)',
47
+ $type: 'string'
48
+ },
49
+ '3xl': {
50
+ $value: 'clamp(2.2rem, .2308rem + 3.0769vw, 3rem)',
51
+ $type: 'string'
52
+ }
53
+ },
54
+
55
+ style: {
56
+ base: {
57
+ $value: 'normal',
58
+ $type: 'string'
59
+ }
60
+ },
61
+
62
+ weight: {
63
+ xxlight: {
64
+ $value: '100',
65
+ $type: 'string',
66
+ $description: ''
67
+ },
68
+ xlight: {
69
+ $value: '200',
70
+ $type: 'string',
71
+ $description: ''
72
+ },
73
+ light: {
74
+ $value: '300',
75
+ $type: 'string',
76
+ $description: ''
77
+ },
78
+ regular: {
79
+ $value: '400',
80
+ $type: 'string',
81
+ $description: ''
82
+ },
83
+ medium: {
84
+ $value: '500',
85
+ $type: 'string',
86
+ $description: ''
87
+ },
88
+ semibold: {
89
+ $value: '600',
90
+ $type: 'string',
91
+ $description: ''
92
+ },
93
+ bold: {
94
+ $value: '700',
95
+ $type: 'string',
96
+ $description: ''
97
+ },
98
+ xbold: {
99
+ $value: '900',
100
+ $type: 'string',
101
+ $description: ''
102
+ }
103
+ }
104
+ }, // end font
105
+
106
+ // Rhythm in Web Typography | Better Web Type <https://betterwebtype.com/articles/2018/10/15/rhythm-in-web-typography/>
107
+ // The good line-height <https://www.thegoodlineheight.com/>
108
+
109
+ 'line-height': {
110
+ base: {
111
+ $value: 1.5,
112
+ $type: 'number'
113
+ },
114
+ sm: {
115
+ $value: 1.4,
116
+ $type: 'number'
117
+ },
118
+ xs: {
119
+ $value: 1.25,
120
+ $type: 'number'
121
+ }
122
+ },
123
+ };
@@ -0,0 +1,8 @@
1
+ export default {
2
+ overlay: {
3
+ color: {
4
+ $value: 'rgb(0 0 0 / .6)',
5
+ $type: 'color'
6
+ }
7
+ }
8
+ };
@@ -0,0 +1,47 @@
1
+ export default {
2
+ sdt: {
3
+ thead: {
4
+ hover: {
5
+ background: {
6
+ color: {
7
+ $value: 'color-mix(in srgb, {table.thead.background.color} 90%, {accent.100})',
8
+ $type: 'color'
9
+ }
10
+ }
11
+ }
12
+ },
13
+
14
+ pagination: {
15
+ border: {
16
+ $type: 'border',
17
+ $value: {
18
+ color: '{neutral.100}',
19
+ width: '{btn.border.width}',
20
+ // style: 'solid'
21
+ }
22
+ },
23
+ padding: {
24
+ block: {
25
+ $value: '{size.xxs}',
26
+ $type: 'dimension'
27
+ },
28
+ inline: {
29
+ $value: '{size.xs}',
30
+ $type: 'dimension'
31
+ },
32
+ }
33
+ },
34
+ hover: {
35
+ background: {
36
+ color: {
37
+ $value: '{btn.primary.background.color}',
38
+ $type: 'color'
39
+ }
40
+ },
41
+ color: {
42
+ $value: '{btn.primary.color}',
43
+ $type: 'color'
44
+ }
45
+ }
46
+ }
47
+ };
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* globals process */
9
9
 
10
- import path from 'path';
10
+ import * as path from 'node:path';
11
11
  import { pathToFileURL } from 'url';
12
12
 
13
13
  // ---------------------------------------------------------------------------
@@ -13,7 +13,7 @@
13
13
  // build-tokens-src/platforms.mjs <- builds the platforms object (css + optional penpot)
14
14
 
15
15
  import StyleDictionary from 'style-dictionary';
16
- import path from 'path';
16
+ import * as path from 'node:path';
17
17
  import { styleText } from 'node:util';
18
18
  import { homedir } from 'os';
19
19
  import stylelint from 'stylelint';
@@ -11,8 +11,8 @@
11
11
 
12
12
  /* globals process */
13
13
 
14
- import path from 'path';
15
- import fs from 'node:fs';
14
+ import * as path from 'node:path';
15
+ import * as fs from 'node:fs';
16
16
  import { /* fileURLToPath, */pathToFileURL } from 'url';
17
17
  // import { dirname } from 'path';
18
18
  import { glob } from 'node:fs/promises';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  // utilities
3
- export { classnames } from './src/utilities/classnames.js';
3
+ export { classnames, classnamesNull } from './src/utilities/classnames.js';
4
4
  export { domBuilder } from './src/utilities/dom-builder/dom-builder.js';
5
5
  export { enableSubmitBtns } from './src/utilities/enable-submit-btns.js';
6
6
  export { titleCase } from './src/utilities/title-case.js';
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.5.13",
3
+ "version": "1.6.0",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "exports": {
8
8
  ".": "./index.js",
9
+ "./charts": "./charts/index.js",
10
+ "./css/*": "./src/css/*.css",
11
+ "./tokens/*": "./design-tokens/tokens/*",
9
12
  "./*": "./*"
10
13
  },
11
14
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -13,8 +16,8 @@
13
16
  "url": "https://github.com/massimo-cassandro/minimo/issues"
14
17
  },
15
18
  "bin": {
16
- "buildTokens": "./design-tokens-utilities/build-tokens.mjs",
17
- "checkUnresolvedProps": "./design-tokens-utilities/check-unresolved-custom-props.mjs"
19
+ "buildTokens": "./design-tokens/utilities/build-tokens.mjs",
20
+ "checkUnresolvedProps": "./design-tokens/utilities/check-unresolved-custom-props.mjs"
18
21
  },
19
22
  "repository": {
20
23
  "type": "git",
@@ -24,8 +27,8 @@
24
27
  "UPD-version": "npx update-version # --config=./dev-utilities.config.mjs",
25
28
  "npm-publish": "npm publish",
26
29
  "upd@m": "npx upd@m",
27
- "build-tokens": "node ./design-tokens-utilities/build-tokens.mjs --config ./tokens-config.mjs",
28
- "check unresolved props": "node ./design-tokens-utilities/check-unresolved-custom-props.mjs --config ./tokens-config.mjs"
30
+ "build-tokens": "node ./design-tokens/utilities/build-tokens.mjs --config ./design-tokens/tokens-config.mjs",
31
+ "check unresolved props": "node ./design-tokens/utilities/check-unresolved-custom-props.mjs --config ./design-tokens/tokens-config.mjs"
29
32
  },
30
33
  "license": "MIT",
31
34
  "author": "Massimo Cassandro",
@@ -38,9 +41,9 @@
38
41
  "files": [
39
42
  "./index.js",
40
43
  "src/**/*.{js,mjs,css,svg,md}",
41
- "design-tokens/**/*.{tokens.json,tokens.jsonc}",
42
- "design-tokens-src/**/*.{tokens.json,tokens.jsonc,mjs,js,md}",
43
- "design-tokens-utilities/**/*.{mjs,md}",
44
+ "design-tokens/tokens/**/*.{tokens.json,tokens.jsonc}",
45
+ "design-tokens/_src/**/*.{tokens.json,tokens.jsonc,mjs,js,md}",
46
+ "design-tokens/utilities/**/*.{mjs,md}",
44
47
  "charts/**/*.{js,md}"
45
48
  ],
46
49
  "peerDependenciesMeta": {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  PERSONALIZZAZIONE
3
- custom properties (valori di default, vedi /design-tokens-src/components/unsplash-page.minimo.tokens.mjs):
3
+ custom properties (valori di default, vedi /design-tokens/_src/components/unsplash-page.minimo.tokens.mjs):
4
4
 
5
5
  Basic props:
6
6
  --up-bg-color: hsl(0deg 0% 0% / .7);
@@ -1,22 +0,0 @@
1
- {
2
- "spinner": {
3
-
4
- "size": {
5
- "$value": "{size.lg}",
6
- "$type": "dimension"
7
- },
8
-
9
- "color": {
10
- "$value": "{primary.100}",
11
- "$type": "color"
12
- },
13
-
14
- "stroke": {
15
- "width": {
16
- "$value": "2px",
17
- "$type": "dimension"
18
- }
19
- },
20
-
21
- }
22
- }