@primer/react 0.0.0-20260702195104 → 0.0.0-20260702231546
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 +12 -1
- package/dist/PageLayout/PageLayout.d.ts +6 -0
- package/dist/PageLayout/PageLayout.js +549 -535
- package/dist/SplitPageLayout/SplitPageLayout.js +11 -0
- package/dist/Stack/Stack.js +2 -0
- package/dist/StateLabel/StateLabel.js +1 -0
- package/dist/SubNav/SubNav.js +3 -0
- package/dist/TabNav/TabNav.js +3 -1
- package/dist/Text/Text.js +1 -0
- package/dist/Textarea/Textarea.js +1 -0
- package/dist/ThemeProvider.js +1 -0
- package/dist/TooltipV2/Tooltip.js +3 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260702231546
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
- [#8105](https://github.com/primer/react/pull/8105) [`be2950f`](https://github.com/primer/react/commit/be2950fd1ac268dd4e79258ab2cfe9241dd9e1c6) Thanks [@joshblack](https://github.com/joshblack)! - React Compiler: Enable compiler output for Banner, ConfirmationDialog, PageLayout, Pagination, UnderlineNav, `useMergedRefs`, and `useScrollFlash`
|
|
10
10
|
|
|
11
|
+
- [#8112](https://github.com/primer/react/pull/8112) [`1f5d1c8`](https://github.com/primer/react/commit/1f5d1c87b1151c47914233306336fc4d5f2cad6b) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for:
|
|
12
|
+
|
|
13
|
+
SplitPageLayout
|
|
14
|
+
Stack
|
|
15
|
+
StateLabel
|
|
16
|
+
SubNav
|
|
17
|
+
TabNav
|
|
18
|
+
Text
|
|
19
|
+
TextArea
|
|
20
|
+
ThemeProvider
|
|
21
|
+
|
|
11
22
|
### Patch Changes
|
|
12
23
|
|
|
13
24
|
- [#8066](https://github.com/primer/react/pull/8066) [`dd66aa2`](https://github.com/primer/react/commit/dd66aa27611f7ad56adb7429b50813d6af5a01d7) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Fix invalid HTML nesting in `ActionList.Heading` by applying the visually-hidden styles directly to the heading element instead of wrapping it in a `span`.
|
|
@@ -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>>;
|