@phcdevworks/spectre-tokens 3.3.0 → 3.3.1
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 +1 -1
- package/dist/index.cjs +60 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +64 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +60 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1221,11 +1221,11 @@ var toVariableName = (prefix, ...parts) => {
|
|
|
1221
1221
|
return `--${prefix}-${filtered.join("-")}`;
|
|
1222
1222
|
};
|
|
1223
1223
|
var BADGE_VARIANTS = [
|
|
1224
|
-
{ variant: "neutral", bgKey: "neutralBg", textKey: "neutralText" },
|
|
1225
|
-
{ variant: "info", bgKey: "infoBg", textKey: "infoText" },
|
|
1226
|
-
{ variant: "success", bgKey: "successBg", textKey: "successText" },
|
|
1227
|
-
{ variant: "warning", bgKey: "warningBg", textKey: "warningText" },
|
|
1228
|
-
{ variant: "danger", bgKey: "dangerBg", textKey: "dangerText" }
|
|
1224
|
+
{ variant: "neutral", bgKey: "neutralBg", bgHoverKey: "neutralBgHover", textKey: "neutralText" },
|
|
1225
|
+
{ variant: "info", bgKey: "infoBg", bgHoverKey: "infoBgHover", textKey: "infoText" },
|
|
1226
|
+
{ variant: "success", bgKey: "successBg", bgHoverKey: "successBgHover", textKey: "successText" },
|
|
1227
|
+
{ variant: "warning", bgKey: "warningBg", bgHoverKey: "warningBgHover", textKey: "warningText" },
|
|
1228
|
+
{ variant: "danger", bgKey: "dangerBg", bgHoverKey: "dangerBgHover", textKey: "dangerText" }
|
|
1229
1229
|
];
|
|
1230
1230
|
var ICON_BOX_FIELDS = [
|
|
1231
1231
|
{ name: "bg", tokenKey: "bg" },
|
|
@@ -1249,6 +1249,31 @@ var MODAL_FIELDS = [
|
|
|
1249
1249
|
{ name: "border", tokenKey: "border" },
|
|
1250
1250
|
{ name: "overlay", tokenKey: "overlay" }
|
|
1251
1251
|
];
|
|
1252
|
+
var TESTIMONIAL_FIELDS = [
|
|
1253
|
+
{ name: "bg", tokenKey: "bg" },
|
|
1254
|
+
{ name: "bg-hover", tokenKey: "bgHover" },
|
|
1255
|
+
{ name: "border", tokenKey: "border" },
|
|
1256
|
+
{ name: "text", tokenKey: "text" },
|
|
1257
|
+
{ name: "author-name", tokenKey: "authorName" },
|
|
1258
|
+
{ name: "author-title", tokenKey: "authorTitle" },
|
|
1259
|
+
{ name: "quote-mark", tokenKey: "quoteMark" }
|
|
1260
|
+
];
|
|
1261
|
+
var PRICING_CARD_FIELDS = [
|
|
1262
|
+
{ name: "bg", tokenKey: "bg" },
|
|
1263
|
+
{ name: "bg-hover", tokenKey: "bgHover" },
|
|
1264
|
+
{ name: "border", tokenKey: "border" },
|
|
1265
|
+
{ name: "featured-bg", tokenKey: "featuredBg" },
|
|
1266
|
+
{ name: "featured-text", tokenKey: "featuredText" },
|
|
1267
|
+
{ name: "featured-badge-bg", tokenKey: "featuredBadgeBg" },
|
|
1268
|
+
{ name: "featured-badge-text", tokenKey: "featuredBadgeText" },
|
|
1269
|
+
{ name: "price", tokenKey: "price" },
|
|
1270
|
+
{ name: "price-description", tokenKey: "priceDescription" }
|
|
1271
|
+
];
|
|
1272
|
+
var RATING_FIELDS = [
|
|
1273
|
+
{ name: "star-filled", tokenKey: "starFilled" },
|
|
1274
|
+
{ name: "star-empty", tokenKey: "starEmpty" },
|
|
1275
|
+
{ name: "text", tokenKey: "text" }
|
|
1276
|
+
];
|
|
1252
1277
|
var TOAST_VARIANTS = ["success", "warning", "danger", "info"].map((variant) => ({
|
|
1253
1278
|
variant,
|
|
1254
1279
|
fields: [
|
|
@@ -1287,7 +1312,11 @@ var SELECT_FIELDS = [
|
|
|
1287
1312
|
{ name: "placeholder-text", tokenKey: "placeholderText" },
|
|
1288
1313
|
{ name: "disabled-bg", tokenKey: "disabledBg" },
|
|
1289
1314
|
{ name: "disabled-border", tokenKey: "disabledBorder" },
|
|
1290
|
-
{ name: "focus-border", tokenKey: "focusBorder" }
|
|
1315
|
+
{ name: "focus-border", tokenKey: "focusBorder" },
|
|
1316
|
+
{ name: "border-invalid", tokenKey: "borderInvalid" },
|
|
1317
|
+
{ name: "bg-invalid", tokenKey: "bgInvalid" },
|
|
1318
|
+
{ name: "border-success", tokenKey: "borderSuccess" },
|
|
1319
|
+
{ name: "bg-success", tokenKey: "bgSuccess" }
|
|
1291
1320
|
];
|
|
1292
1321
|
var TEXTAREA_FIELDS = [
|
|
1293
1322
|
{ name: "bg", tokenKey: "bg" },
|
|
@@ -1296,7 +1325,11 @@ var TEXTAREA_FIELDS = [
|
|
|
1296
1325
|
{ name: "placeholder", tokenKey: "placeholder" },
|
|
1297
1326
|
{ name: "disabled-bg", tokenKey: "disabledBg" },
|
|
1298
1327
|
{ name: "disabled-border", tokenKey: "disabledBorder" },
|
|
1299
|
-
{ name: "focus-border", tokenKey: "focusBorder" }
|
|
1328
|
+
{ name: "focus-border", tokenKey: "focusBorder" },
|
|
1329
|
+
{ name: "border-invalid", tokenKey: "borderInvalid" },
|
|
1330
|
+
{ name: "bg-invalid", tokenKey: "bgInvalid" },
|
|
1331
|
+
{ name: "border-success", tokenKey: "borderSuccess" },
|
|
1332
|
+
{ name: "bg-success", tokenKey: "bgSuccess" }
|
|
1300
1333
|
];
|
|
1301
1334
|
var FIELDSET_FIELDS = [
|
|
1302
1335
|
{ name: "border", tokenKey: "border" },
|
|
@@ -1550,8 +1583,9 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
1550
1583
|
{ varParts: ["component", "input", "placeholder"], modePath: ["component", "input", "placeholder"], aliasSrc: componentAliases, aliasPath: ["input", "placeholder"] },
|
|
1551
1584
|
{ varParts: ["button", "text", "default"], modePath: ["component", "button", "textDefault"], aliasSrc: componentAliases, aliasPath: ["button", "textDefault"] },
|
|
1552
1585
|
{ varParts: ["button", "text", "on", "primary"], modePath: ["component", "button", "textOnPrimary"], aliasSrc: componentAliases, aliasPath: ["button", "textOnPrimary"] },
|
|
1553
|
-
...BADGE_VARIANTS.flatMap(({ variant, bgKey, textKey }) => [
|
|
1586
|
+
...BADGE_VARIANTS.flatMap(({ variant, bgKey, bgHoverKey, textKey }) => [
|
|
1554
1587
|
{ varParts: ["badge", variant, "bg"], modePath: ["component", "badge", bgKey], aliasSrc: componentAliases, aliasPath: ["badge", bgKey] },
|
|
1588
|
+
{ varParts: ["badge", variant, "bg-hover"], modePath: ["component", "badge", bgHoverKey], aliasSrc: componentAliases, aliasPath: ["badge", bgHoverKey] },
|
|
1555
1589
|
{ varParts: ["badge", variant, "text"], modePath: ["component", "badge", textKey], aliasSrc: componentAliases, aliasPath: ["badge", textKey] }
|
|
1556
1590
|
]),
|
|
1557
1591
|
...ICON_BOX_FIELDS.map(({ name, tokenKey }) => ({
|
|
@@ -1625,6 +1659,24 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
1625
1659
|
modePath: ["component", "label", tokenKey],
|
|
1626
1660
|
aliasSrc: componentAliases,
|
|
1627
1661
|
aliasPath: ["label", tokenKey]
|
|
1662
|
+
})),
|
|
1663
|
+
...TESTIMONIAL_FIELDS.map(({ name, tokenKey }) => ({
|
|
1664
|
+
varParts: ["testimonial", name],
|
|
1665
|
+
modePath: ["component", "testimonial", tokenKey],
|
|
1666
|
+
aliasSrc: componentAliases,
|
|
1667
|
+
aliasPath: ["testimonial", tokenKey]
|
|
1668
|
+
})),
|
|
1669
|
+
...PRICING_CARD_FIELDS.map(({ name, tokenKey }) => ({
|
|
1670
|
+
varParts: ["pricing-card", name],
|
|
1671
|
+
modePath: ["component", "pricingCard", tokenKey],
|
|
1672
|
+
aliasSrc: componentAliases,
|
|
1673
|
+
aliasPath: ["pricingCard", tokenKey]
|
|
1674
|
+
})),
|
|
1675
|
+
...RATING_FIELDS.map(({ name, tokenKey }) => ({
|
|
1676
|
+
varParts: ["rating", name],
|
|
1677
|
+
modePath: ["component", "rating", tokenKey],
|
|
1678
|
+
aliasSrc: componentAliases,
|
|
1679
|
+
aliasPath: ["rating", tokenKey]
|
|
1628
1680
|
}))
|
|
1629
1681
|
];
|
|
1630
1682
|
const baseLines = [];
|