@primer/primitives 0.0.0-20260220164118 → 0.0.0-20260223090908

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "0.0.0-20260220164118",
3
+ "version": "0.0.0-20260223090908",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -7,8 +7,7 @@
7
7
  $extensions: {
8
8
  'org.primer.llm': {
9
9
  usage: ['decorative-background', 'canvas-element', 'background-pattern'],
10
- rules:
11
- 'Use to push an element behind its siblings. WARNING: Negative z-index can behave unpredictably if any ancestor creates a new stacking context (via transform, opacity < 1, filter, will-change, etc.). Only use when you control the full stacking context chain. Do NOT use as a general "hide" mechanism.',
10
+ rules: 'Use to push an element behind its siblings. WARNING: Negative z-index can behave unpredictably if any ancestor creates a new stacking context (via transform, opacity < 1, filter, will-change, etc.). Only use when you control the full stacking context chain. Do NOT use as a general "hide" mechanism.',
12
11
  },
13
12
  },
14
13
  },
@@ -19,8 +18,7 @@
19
18
  $extensions: {
20
19
  'org.primer.llm': {
21
20
  usage: ['default-content', 'in-flow-element', 'reset'],
22
- rules:
23
- 'Use to explicitly reset z-index to the default layer. Suitable for elements that should participate in normal document flow stacking. Do NOT use for any element that needs to appear above other content.',
21
+ rules: 'Use to explicitly reset z-index to the default layer. Suitable for elements that should participate in normal document flow stacking. Do NOT use for any element that needs to appear above other content.',
24
22
  },
25
23
  },
26
24
  },
@@ -31,8 +29,7 @@
31
29
  $extensions: {
32
30
  'org.primer.llm': {
33
31
  usage: ['sticky-header', 'sticky-sidebar', 'sticky-table-header', 'sticky-footer', 'sticky-nav'],
34
- rules:
35
- 'MUST use with `position: sticky` or `position: fixed` for headers, sidebars, and navigation bars that persist during scroll. Do NOT use for floating overlays or dropdowns — use higher z-index levels instead.',
32
+ rules: 'MUST use with `position: sticky` or `position: fixed` for headers, sidebars, and navigation bars that persist during scroll. Do NOT use for floating overlays or dropdowns — use higher z-index levels instead.',
36
33
  },
37
34
  },
38
35
  },
@@ -43,8 +40,7 @@
43
40
  $extensions: {
44
41
  'org.primer.llm': {
45
42
  usage: ['dropdown-menu', 'select-panel', 'autocomplete-list', 'action-menu', 'context-menu'],
46
- rules:
47
- 'Use for menus, select panels, and autocomplete lists that overlay page content. These should appear above sticky elements but below overlays and modals. Pair with `shadow.floating.small` or `shadow.floating.medium` for visual elevation.',
43
+ rules: 'Use for menus, select panels, and autocomplete lists that overlay page content. These should appear above sticky elements but below overlays and modals. Pair with `shadow.floating.small` or `shadow.floating.medium` for visual elevation.',
48
44
  },
49
45
  },
50
46
  },
@@ -55,8 +51,7 @@
55
51
  $extensions: {
56
52
  'org.primer.llm': {
57
53
  usage: ['overlay-backdrop', 'side-panel', 'drawer', 'slide-over', 'bottom-sheet'],
58
- rules:
59
- 'Use for overlay surfaces that partially cover the page — drawers, side panels, and backdrop layers. These appear above dropdowns but below modal dialogs. SHOULD be paired with a backdrop/scrim element to indicate the overlay is blocking interaction with content beneath.',
54
+ rules: 'Use for overlay surfaces that partially cover the page — drawers, side panels, and backdrop layers. These appear above dropdowns but below modal dialogs. SHOULD be paired with a backdrop/scrim element to indicate the overlay is blocking interaction with content beneath.',
60
55
  },
61
56
  },
62
57
  },
@@ -67,8 +62,7 @@
67
62
  $extensions: {
68
63
  'org.primer.llm': {
69
64
  usage: ['modal-dialog', 'dialog', 'full-screen-overlay', 'lightbox', 'confirm-dialog'],
70
- rules:
71
- 'Use for modal dialogs that require user interaction before returning to the page. MUST trap focus within the modal. MUST appear above all other page content except popovers and skip links. Pair with `shadow.floating.large` or `shadow.floating.xlarge` for visual elevation.',
65
+ rules: 'Use for modal dialogs that require user interaction before returning to the page. MUST trap focus within the modal. MUST appear above all other page content except popovers and skip links. Pair with `shadow.floating.large` or `shadow.floating.xlarge` for visual elevation.',
72
66
  },
73
67
  },
74
68
  },
@@ -79,8 +73,7 @@
79
73
  $extensions: {
80
74
  'org.primer.llm': {
81
75
  usage: ['tooltip', 'popover', 'hover-card', 'floating-label'],
82
- rules:
83
- 'Use for tooltips, popovers, and hover cards that must appear above all other UI elements including modals. These are the highest layer in normal UI. Do NOT use for persistent navigation — use `sticky` instead.',
76
+ rules: 'Use for tooltips, popovers, and hover cards that must appear above all other UI elements including modals. These are the highest layer in normal UI. Do NOT use for persistent navigation — use `sticky` instead.',
84
77
  },
85
78
  },
86
79
  },
@@ -91,8 +84,7 @@
91
84
  $extensions: {
92
85
  'org.primer.llm': {
93
86
  usage: ['skip-link', 'skip-navigation', 'skip-to-content'],
94
- rules:
95
- 'MUST use for accessibility skip links that allow keyboard users to bypass navigation. This is the highest z-index level and MUST always appear above everything else including modals and tooltips. NEVER use for non-accessibility purposes.',
87
+ rules: 'MUST use for accessibility skip links that allow keyboard users to bypass navigation. This is the highest z-index level and MUST always appear above everything else including modals and tooltips. NEVER use for non-accessibility purposes.',
96
88
  },
97
89
  },
98
90
  },