@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.
@@ -4,5 +4,7 @@
4
4
  * @returns boolean
5
5
  */
6
6
  export const isDeprecated = (token) => {
7
- return token.$deprecated === true || typeof token.$deprecated === 'string';
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) => typeof token.$deprecated === 'string' ? token.$deprecated.replace(/[{}]/g, '') : null,
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
  };
@@ -0,0 +1,5 @@
1
+ {
2
+ "focus.outlineColor": "focus.outline-color",
3
+ "outline.focus.offset": "focus.outline-offset",
4
+ "outline.focus.width": "focus.outline-width"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "focus.outlineColor": "focus.outline-color",
3
+ "outline.focus.offset": "focus.outline-offset",
4
+ "outline.focus.width": "focus.outline-width"
5
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "0.0.0-20260507224821",
3
+ "version": "0.0.0-20260508082612",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -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
  }