@massimo-cassandro/minimo 0.9.5 → 0.9.6
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/design-tokens/btn-close.minimo.tokens.jsonc +1 -1
- package/design-tokens/components/sf-macro.minimo.tokens.jsonc +2 -2
- package/design-tokens/components/snackbar.minimo.tokens.jsonc +32 -0
- package/design-tokens-src/components/sf-macro.minimo.tokens.mjs +2 -2
- package/design-tokens-utilities/build-tokens-src/formats/penpot.mjs +5 -1
- package/design-tokens-utilities/build-tokens.mjs +1 -0
- package/package.json +1 -1
- package/src/custom-properties-default.css +5 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"snackbar": {
|
|
9
|
+
"font": {
|
|
10
|
+
"size": {
|
|
11
|
+
"$type": "dimension",
|
|
12
|
+
"$value": "{font.size.sm}"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"radius": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": "{radius.sm}"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"text": {
|
|
22
|
+
"color": {
|
|
23
|
+
"$type": "color",
|
|
24
|
+
"$value": "{text.color}"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"duration": {
|
|
28
|
+
"$type": "duration",
|
|
29
|
+
"$value": "5s"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -49,11 +49,15 @@ const DISCLAIMER = [
|
|
|
49
49
|
|
|
50
50
|
// Returns true if the string contains a math expression — i.e. it has at least
|
|
51
51
|
// one operator (+, -, *, /) outside of a token reference ({...}).
|
|
52
|
+
// Negative values like "-0.5rem" or "-8px" are NOT expressions.
|
|
52
53
|
const isExpression = (str) => {
|
|
53
54
|
if (typeof str !== 'string') return false;
|
|
54
55
|
// Strip token references, then check for operators
|
|
55
56
|
const stripped = str.replace(/\{[^}]+\}/g, '0');
|
|
56
|
-
|
|
57
|
+
// Remove leading minus (negative number) before testing for operators.
|
|
58
|
+
// An operator is only meaningful when it appears between two operands,
|
|
59
|
+
// i.e. it is preceded by a digit, closing paren, or word character.
|
|
60
|
+
return /[\d)]\s*[+\-*/]/.test(stripped) || /[+*/]/.test(stripped.replace(/^-/, ''));
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
// Builds a token lookup map (dot-path -> token) from the dictionary.
|
|
@@ -90,6 +90,7 @@ await sd.buildAllPlatforms();
|
|
|
90
90
|
// ── 9. CSS lint ───────────────────────────────────────────────────────────────
|
|
91
91
|
const stylelintConfig = await import(pathToFileURL(stylelintConfigPath)).then(m => m.default);
|
|
92
92
|
|
|
93
|
+
|
|
93
94
|
await stylelint.lint({
|
|
94
95
|
config: stylelintConfig,
|
|
95
96
|
files: [path.join(buildPath, destFile)],
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--body-text: var(--text-color);
|
|
14
14
|
--btn-border-radius: var(--form-control-border-radius);
|
|
15
15
|
--btn-border-width: var(--form-control-border-width);
|
|
16
|
-
--btn-close-active-background-color: var(--
|
|
16
|
+
--btn-close-active-background-color: var(--btn-close-background-color);
|
|
17
17
|
--btn-close-active-icon-color: var(--link-active-color);
|
|
18
18
|
--btn-close-background-color: var(--body-background-color);
|
|
19
19
|
--btn-close-border-color: var(--btn-close-icon-color);
|
|
@@ -226,6 +226,10 @@
|
|
|
226
226
|
--size-xl: 2rem;
|
|
227
227
|
--size-xs: .5rem;
|
|
228
228
|
--size-xxs: .25rem;
|
|
229
|
+
--snackbar-border-radius: var(--radius-sm);
|
|
230
|
+
--snackbar-duration: 5s;
|
|
231
|
+
--snackbar-font-size: var(--font-size-sm);
|
|
232
|
+
--snackbar-text-color: var(--text-color);
|
|
229
233
|
--spinner-color: var(--primary-100);
|
|
230
234
|
--spinner-size: var(--size-lg);
|
|
231
235
|
--spinner-stroke-width: .125rem;
|