@primer/primitives 0.0.0-20260507224821 → 0.0.0-20260508082612
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/dist/build/filters/isDeprecated.js +3 -1
- package/dist/build/transformers/jsonDeprecated.js +5 -1
- package/dist/deprecated/theme.json +5 -0
- package/dist/deprecated.json +5 -0
- package/dist/{removed/color.json → removed.json} +8 -1
- package/package.json +1 -1
- package/src/tokens/{removed/color.json → removed.json} +8 -1
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
* @returns boolean
|
|
5
5
|
*/
|
|
6
6
|
export const isDeprecated = (token) => {
|
|
7
|
-
|
|
7
|
+
var _a;
|
|
8
|
+
const deprecated = (_a = token.original.$deprecated) !== null && _a !== void 0 ? _a : token.$deprecated;
|
|
9
|
+
return deprecated === true || typeof deprecated === 'string';
|
|
8
10
|
};
|
|
@@ -10,5 +10,9 @@ export const jsonDeprecated = {
|
|
|
10
10
|
type: 'value',
|
|
11
11
|
transitive: true,
|
|
12
12
|
filter: isDeprecated,
|
|
13
|
-
transform: (token) =>
|
|
13
|
+
transform: (token) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const deprecated = (_a = token.original.$deprecated) !== null && _a !== void 0 ? _a : token.$deprecated;
|
|
16
|
+
return typeof deprecated === 'string' ? deprecated.replace(/[{}]/g, '') : null;
|
|
17
|
+
},
|
|
14
18
|
};
|
|
@@ -417,5 +417,12 @@
|
|
|
417
417
|
"mktg.btn.dark.hover.text": null,
|
|
418
418
|
"mktg.btn.dark.hover.border": null,
|
|
419
419
|
"mktg.btn.dark.focus.border": null,
|
|
420
|
-
"mktg.btn.dark.focus.borderInset": null
|
|
420
|
+
"mktg.btn.dark.focus.borderInset": null,
|
|
421
|
+
"control.xsmall.lineBoxHeight": null,
|
|
422
|
+
"control.small.lineBoxHeight": null,
|
|
423
|
+
"control.medium.lineBoxHeight": null,
|
|
424
|
+
"control.large.lineBoxHeight": null,
|
|
425
|
+
"control.xlarge.lineBoxHeight": null,
|
|
426
|
+
"text.display.lineBoxHeight": "text.display.lineHeight",
|
|
427
|
+
"shadow.floating.legacy": "shadow.floating.small"
|
|
421
428
|
}
|
package/package.json
CHANGED
|
@@ -417,5 +417,12 @@
|
|
|
417
417
|
"mktg.btn.dark.hover.text": null,
|
|
418
418
|
"mktg.btn.dark.hover.border": null,
|
|
419
419
|
"mktg.btn.dark.focus.border": null,
|
|
420
|
-
"mktg.btn.dark.focus.borderInset": null
|
|
420
|
+
"mktg.btn.dark.focus.borderInset": null,
|
|
421
|
+
"control.xsmall.lineBoxHeight": null,
|
|
422
|
+
"control.small.lineBoxHeight": null,
|
|
423
|
+
"control.medium.lineBoxHeight": null,
|
|
424
|
+
"control.large.lineBoxHeight": null,
|
|
425
|
+
"control.xlarge.lineBoxHeight": null,
|
|
426
|
+
"text.display.lineBoxHeight": "text.display.lineHeight",
|
|
427
|
+
"shadow.floating.legacy": "shadow.floating.small"
|
|
421
428
|
}
|