@primer/react 0.0.0-20260707164108 → 0.0.0-20260707170850

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/CHANGELOG.md CHANGED
@@ -1,14 +1,27 @@
1
1
  # @primer/react
2
2
 
3
- ## 0.0.0-20260707164108
3
+ ## 0.0.0-20260707170850
4
+
5
+ ### Minor Changes
6
+
7
+ - [#8112](https://github.com/primer/react/pull/8112) [`50face0`](https://github.com/primer/react/commit/50face041d55eb800d643b0d264d23fc12fd4121) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for:
8
+
9
+ SplitPageLayout
10
+ Stack
11
+ StateLabel
12
+ SubNav
13
+ TabNav
14
+ Text
15
+ TextArea
16
+ ThemeProvider
4
17
 
5
18
  ### Patch Changes
6
19
 
7
20
  - Fake entry to force publishing
8
21
 
9
- - [#8035](https://github.com/primer/react/pull/8035) [`723f4d6`](https://github.com/primer/react/commit/723f4d6db12710e2b94f56b945a937158fcbb127) Thanks [@mattcosta7](https://github.com/mattcosta7)! - UnderlineNav, ActionBar: Detect item overflow with a single shared IntersectionObserver per component instead of one observer per item, reducing observer churn during resize. No public API changes.
22
+ - [#7904](https://github.com/primer/react/pull/7904) [`9683f3f`](https://github.com/primer/react/commit/9683f3f099ed9fcc46a7ac110cbea07256e339f0) Thanks [@mattcosta7](https://github.com/mattcosta7)! - SelectPanel (experimental v2): replace the `:has(input:placeholder-shown)` selector that hid the clear-action button with a `data-empty` attribute derived from React state. The clear-action visibility no longer triggers a descendant `:has()` re-evaluation on every keystroke.
10
23
 
11
- - [#8023](https://github.com/primer/react/pull/8023) [`e2e7d77`](https://github.com/primer/react/commit/e2e7d7712b79dfe1c3c60d8b461e55a0e7cd8c58) Thanks [@mattcosta7](https://github.com/mattcosta7)! - FormControl: Avoid an extra re-render when showing a validation message.
24
+ - [#8035](https://github.com/primer/react/pull/8035) [`723f4d6`](https://github.com/primer/react/commit/723f4d6db12710e2b94f56b945a937158fcbb127) Thanks [@mattcosta7](https://github.com/mattcosta7)! - UnderlineNav, ActionBar: Detect item overflow with a single shared IntersectionObserver per component instead of one observer per item, reducing observer churn during resize. No public API changes.
12
25
 
13
26
  ## 38.31.0
14
27
 
@@ -17,6 +17,7 @@ type PageLayoutProps = {
17
17
  _slotsConfig?: Record<'header' | 'footer' | 'sidebar', React.ElementType>;
18
18
  className?: string;
19
19
  style?: React.CSSProperties;
20
+ 'data-component'?: string;
20
21
  };
21
22
  type PageLayoutHeaderProps = {
22
23
  /**
@@ -47,6 +48,7 @@ type PageLayoutHeaderProps = {
47
48
  hidden?: boolean | ResponsiveValue<boolean>;
48
49
  className?: string;
49
50
  style?: React.CSSProperties;
51
+ 'data-component'?: string;
50
52
  };
51
53
  type PageLayoutContentProps = {
52
54
  /**
@@ -67,6 +69,7 @@ type PageLayoutContentProps = {
67
69
  hidden?: boolean | ResponsiveValue<boolean>;
68
70
  className?: string;
69
71
  style?: React.CSSProperties;
72
+ 'data-component'?: string;
70
73
  };
71
74
  type PageLayoutPaneBaseProps = {
72
75
  position?: 'start' | 'end' | ResponsiveValue<'start' | 'end'>;
@@ -140,6 +143,7 @@ type PageLayoutPaneBaseProps = {
140
143
  id?: string;
141
144
  className?: string;
142
145
  style?: React.CSSProperties;
146
+ 'data-component'?: string;
143
147
  };
144
148
  type PageLayoutPaneProps = PageLayoutPaneBaseProps & ({
145
149
  /**
@@ -227,6 +231,7 @@ type PageLayoutSidebarBaseProps = {
227
231
  id?: string;
228
232
  className?: string;
229
233
  style?: React.CSSProperties;
234
+ 'data-component'?: string;
230
235
  };
231
236
  type PageLayoutSidebarProps = PageLayoutSidebarBaseProps & ({
232
237
  /**
@@ -275,6 +280,7 @@ type PageLayoutFooterProps = {
275
280
  hidden?: boolean | ResponsiveValue<boolean>;
276
281
  className?: string;
277
282
  style?: React.CSSProperties;
283
+ 'data-component'?: string;
278
284
  };
279
285
  declare const PageLayout: React.FC<React.PropsWithChildren<PageLayoutProps>> & {
280
286
  Header: FCWithSlotMarker<React.PropsWithChildren<PageLayoutHeaderProps>>;