@phcdevworks/spectre-tokens 4.3.0 → 4.5.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/README.md +2 -1
- package/dist/index.cjs +30 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +30 -2
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +52 -0
- package/package.json +6 -6
- package/tokens/primitives.json +17 -1
package/dist/index.css
CHANGED
|
@@ -571,6 +571,13 @@
|
|
|
571
571
|
--sp-radius-3xl: 24px;
|
|
572
572
|
--sp-radius-4xl: 32px;
|
|
573
573
|
--sp-radius-pill: 999px;
|
|
574
|
+
--sp-tracking-tightest: -0.075em;
|
|
575
|
+
--sp-tracking-tighter: -0.05em;
|
|
576
|
+
--sp-tracking-tight: -0.025em;
|
|
577
|
+
--sp-tracking-normal: 0em;
|
|
578
|
+
--sp-tracking-wide: 0.025em;
|
|
579
|
+
--sp-tracking-wider: 0.05em;
|
|
580
|
+
--sp-tracking-widest: 0.1em;
|
|
574
581
|
--sp-icon-xs: 12px;
|
|
575
582
|
--sp-icon-sm: 16px;
|
|
576
583
|
--sp-icon-md: 20px;
|
|
@@ -669,6 +676,11 @@
|
|
|
669
676
|
--sp-shadow-lg: 0 6px 16px -4px rgba(0, 0, 0, 0.12);
|
|
670
677
|
--sp-shadow-xl: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
|
|
671
678
|
--sp-shadow-2xl: 0 20px 48px -12px rgba(0, 0, 0, 0.20);
|
|
679
|
+
--sp-shadow-inset-sm: inset 0 1px 2px 0 rgba(0, 0, 0, 0.06), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
680
|
+
--sp-shadow-inset-md: inset 0 2px 6px -1px rgba(0, 0, 0, 0.08), inset 0 -2px 6px -1px rgba(0, 0, 0, 0.08);
|
|
681
|
+
--sp-shadow-inset-lg: inset 0 6px 16px -4px rgba(0, 0, 0, 0.12), inset 0 -6px 16px -4px rgba(0, 0, 0, 0.12);
|
|
682
|
+
--sp-shadow-inset-xl: inset 0 12px 24px -6px rgba(0, 0, 0, 0.15), inset 0 -12px 24px -6px rgba(0, 0, 0, 0.15);
|
|
683
|
+
--sp-shadow-inset-2xl: inset 0 20px 48px -12px rgba(0, 0, 0, 0.20), inset 0 -20px 48px -12px rgba(0, 0, 0, 0.20);
|
|
672
684
|
--sp-breakpoint-sm: 640px;
|
|
673
685
|
--sp-breakpoint-md: 768px;
|
|
674
686
|
--sp-breakpoint-lg: 1024px;
|
package/dist/index.d.cts
CHANGED
|
@@ -1181,6 +1181,13 @@ interface SpectreGeneratedTokens {
|
|
|
1181
1181
|
lg: string;
|
|
1182
1182
|
xl: string;
|
|
1183
1183
|
'2xl': string;
|
|
1184
|
+
inset: {
|
|
1185
|
+
sm: string;
|
|
1186
|
+
md: string;
|
|
1187
|
+
lg: string;
|
|
1188
|
+
xl: string;
|
|
1189
|
+
'2xl': string;
|
|
1190
|
+
};
|
|
1184
1191
|
};
|
|
1185
1192
|
breakpoints: {
|
|
1186
1193
|
sm: string;
|
|
@@ -1357,6 +1364,15 @@ interface SpectreGeneratedTokens {
|
|
|
1357
1364
|
dotted: string;
|
|
1358
1365
|
};
|
|
1359
1366
|
};
|
|
1367
|
+
tracking: {
|
|
1368
|
+
tightest: string;
|
|
1369
|
+
tighter: string;
|
|
1370
|
+
tight: string;
|
|
1371
|
+
normal: string;
|
|
1372
|
+
wide: string;
|
|
1373
|
+
wider: string;
|
|
1374
|
+
widest: string;
|
|
1375
|
+
};
|
|
1360
1376
|
surface: {
|
|
1361
1377
|
page: string;
|
|
1362
1378
|
card: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1181,6 +1181,13 @@ interface SpectreGeneratedTokens {
|
|
|
1181
1181
|
lg: string;
|
|
1182
1182
|
xl: string;
|
|
1183
1183
|
'2xl': string;
|
|
1184
|
+
inset: {
|
|
1185
|
+
sm: string;
|
|
1186
|
+
md: string;
|
|
1187
|
+
lg: string;
|
|
1188
|
+
xl: string;
|
|
1189
|
+
'2xl': string;
|
|
1190
|
+
};
|
|
1184
1191
|
};
|
|
1185
1192
|
breakpoints: {
|
|
1186
1193
|
sm: string;
|
|
@@ -1357,6 +1364,15 @@ interface SpectreGeneratedTokens {
|
|
|
1357
1364
|
dotted: string;
|
|
1358
1365
|
};
|
|
1359
1366
|
};
|
|
1367
|
+
tracking: {
|
|
1368
|
+
tightest: string;
|
|
1369
|
+
tighter: string;
|
|
1370
|
+
tight: string;
|
|
1371
|
+
normal: string;
|
|
1372
|
+
wide: string;
|
|
1373
|
+
wider: string;
|
|
1374
|
+
widest: string;
|
|
1375
|
+
};
|
|
1360
1376
|
surface: {
|
|
1361
1377
|
page: string;
|
|
1362
1378
|
card: string;
|
package/dist/index.js
CHANGED
|
@@ -1181,7 +1181,14 @@ var coreTokens = {
|
|
|
1181
1181
|
"md": "0 2px 6px -1px {colors.black} / 0.08",
|
|
1182
1182
|
"lg": "0 6px 16px -4px {colors.black} / 0.12",
|
|
1183
1183
|
"xl": "0 12px 24px -6px {colors.black} / 0.15",
|
|
1184
|
-
"2xl": "0 20px 48px -12px {colors.black} / 0.20"
|
|
1184
|
+
"2xl": "0 20px 48px -12px {colors.black} / 0.20",
|
|
1185
|
+
"inset": {
|
|
1186
|
+
"sm": "inset 0 1px 2px 0 {colors.black} / 0.06, inset 0 -1px 2px 0 {colors.black} / 0.06",
|
|
1187
|
+
"md": "inset 0 2px 6px -1px {colors.black} / 0.08, inset 0 -2px 6px -1px {colors.black} / 0.08",
|
|
1188
|
+
"lg": "inset 0 6px 16px -4px {colors.black} / 0.12, inset 0 -6px 16px -4px {colors.black} / 0.12",
|
|
1189
|
+
"xl": "inset 0 12px 24px -6px {colors.black} / 0.15, inset 0 -12px 24px -6px {colors.black} / 0.15",
|
|
1190
|
+
"2xl": "inset 0 20px 48px -12px {colors.black} / 0.20, inset 0 -20px 48px -12px {colors.black} / 0.20"
|
|
1191
|
+
}
|
|
1185
1192
|
},
|
|
1186
1193
|
"breakpoints": {
|
|
1187
1194
|
"sm": "640px",
|
|
@@ -1358,6 +1365,15 @@ var coreTokens = {
|
|
|
1358
1365
|
"dotted": "dotted"
|
|
1359
1366
|
}
|
|
1360
1367
|
},
|
|
1368
|
+
"tracking": {
|
|
1369
|
+
"tightest": "-0.075em",
|
|
1370
|
+
"tighter": "-0.05em",
|
|
1371
|
+
"tight": "-0.025em",
|
|
1372
|
+
"normal": "0em",
|
|
1373
|
+
"wide": "0.025em",
|
|
1374
|
+
"wider": "0.05em",
|
|
1375
|
+
"widest": "0.1em"
|
|
1376
|
+
},
|
|
1361
1377
|
"surface": {
|
|
1362
1378
|
"page": "{colors.neutral.50}",
|
|
1363
1379
|
"card": "{colors.white}",
|
|
@@ -1756,6 +1772,12 @@ var createCssVariableMap = (tokens2, options = {}) => {
|
|
|
1756
1772
|
Object.entries(baseTokens.radii).forEach(([key, value]) => {
|
|
1757
1773
|
assign(toVariableName(prefix, "radius", key), value);
|
|
1758
1774
|
});
|
|
1775
|
+
const tracking = baseTokens.tracking;
|
|
1776
|
+
if (tracking) {
|
|
1777
|
+
Object.entries(tracking).forEach(([key, value]) => {
|
|
1778
|
+
assign(toVariableName(prefix, "tracking", key), value);
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1759
1781
|
const icons = baseTokens.icons;
|
|
1760
1782
|
if (icons) {
|
|
1761
1783
|
Object.entries(icons).forEach(([key, value]) => {
|
|
@@ -1808,7 +1830,13 @@ var createCssVariableMap = (tokens2, options = {}) => {
|
|
|
1808
1830
|
assignRole(["body"], body);
|
|
1809
1831
|
}
|
|
1810
1832
|
Object.entries(baseTokens.shadows).forEach(([key, value]) => {
|
|
1811
|
-
|
|
1833
|
+
if (typeof value === "string") {
|
|
1834
|
+
assign(toVariableName(prefix, "shadow", key), value);
|
|
1835
|
+
return;
|
|
1836
|
+
}
|
|
1837
|
+
Object.entries(value).forEach(([nestedKey, nestedValue]) => {
|
|
1838
|
+
assign(toVariableName(prefix, "shadow", key, nestedKey), nestedValue);
|
|
1839
|
+
});
|
|
1812
1840
|
});
|
|
1813
1841
|
Object.entries(baseTokens.breakpoints).forEach(([key, value]) => {
|
|
1814
1842
|
assign(toVariableName(prefix, "breakpoint", key), value);
|