@primer/react 0.0.0-20260218210324 → 0.0.0-20260218211332

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +4 -22
  2. package/dist/ActionList/Description.js +35 -113
  3. package/dist/ActionList/Divider.js +11 -30
  4. package/dist/ActionList/Group.js +117 -294
  5. package/dist/ActionList/Heading.js +22 -77
  6. package/dist/ActionList/Item.js +37 -98
  7. package/dist/ActionList/LinkItem.js +24 -80
  8. package/dist/ActionList/List.js +33 -143
  9. package/dist/ActionList/Selection.js +30 -78
  10. package/dist/ActionList/TrailingAction.js +23 -83
  11. package/dist/ActionList/Visuals.js +64 -162
  12. package/dist/Banner/Banner.d.ts.map +1 -1
  13. package/dist/Banner/Banner.js +62 -72
  14. package/dist/Button/Button.js +11 -34
  15. package/dist/Button/ButtonBase.d.ts.map +1 -1
  16. package/dist/Button/ButtonBase.js +14 -9
  17. package/dist/Button/IconButton.js +51 -140
  18. package/dist/Button/LinkButton.js +11 -39
  19. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +2 -0
  20. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -0
  21. package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
  22. package/dist/PageLayout/PageLayout-06f4c069.css +2 -0
  23. package/dist/PageLayout/PageLayout-06f4c069.css.map +1 -0
  24. package/dist/PageLayout/PageLayout.d.ts +71 -2
  25. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  26. package/dist/PageLayout/PageLayout.js +498 -44
  27. package/dist/PageLayout/PageLayout.module.css.js +2 -2
  28. package/dist/PageLayout/usePaneWidth.d.ts +16 -4
  29. package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
  30. package/dist/PageLayout/usePaneWidth.js +123 -109
  31. package/dist/SplitPageLayout/SplitPageLayout.d.ts +4 -1
  32. package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
  33. package/dist/SplitPageLayout/SplitPageLayout.js +54 -2
  34. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +2 -0
  35. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +1 -0
  36. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  37. package/dist/UnderlineNav/UnderlineNav.js +317 -82
  38. package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
  39. package/dist/UnderlineNav/UnderlineNavContext.d.ts +11 -4
  40. package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
  41. package/dist/UnderlineNav/UnderlineNavContext.js +3 -2
  42. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
  43. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
  44. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  45. package/dist/UnderlineNav/UnderlineNavItem.js +85 -94
  46. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -1
  47. package/dist/UnderlineNav/styles.d.ts +16 -0
  48. package/dist/UnderlineNav/styles.d.ts.map +1 -0
  49. package/dist/UnderlineNav/styles.js +19 -0
  50. package/dist/experimental/SelectPanel2/SelectPanel-1f8c23b5.css +2 -0
  51. package/dist/experimental/SelectPanel2/{SelectPanel-f0c4b9ca.css.map → SelectPanel-1f8c23b5.css.map} +1 -1
  52. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  53. package/dist/hooks/useIsMacOS.d.ts +3 -15
  54. package/dist/hooks/useIsMacOS.d.ts.map +1 -1
  55. package/dist/hooks/useIsMacOS.js +26 -24
  56. package/dist/internal/components/UnderlineTabbedInterface-20c3ba3d.css +2 -0
  57. package/dist/internal/components/UnderlineTabbedInterface-20c3ba3d.css.map +1 -0
  58. package/dist/internal/components/UnderlineTabbedInterface.d.ts +1 -0
  59. package/dist/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
  60. package/dist/internal/components/UnderlineTabbedInterface.js +48 -41
  61. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  62. package/dist/live-region/Announce.d.ts.map +1 -1
  63. package/dist/live-region/Announce.js +4 -7
  64. package/dist/utils/environment.js +9 -0
  65. package/generated/components.json +200 -2
  66. package/package.json +2 -2
  67. package/dist/FilteredActionList/FilteredActionList-02db90c6.css +0 -2
  68. package/dist/FilteredActionList/FilteredActionList-02db90c6.css.map +0 -1
  69. package/dist/PageLayout/PageLayout-cb491b47.css +0 -2
  70. package/dist/PageLayout/PageLayout-cb491b47.css.map +0 -1
  71. package/dist/UnderlineNav/UnderlineNav-e56ca858.css +0 -2
  72. package/dist/UnderlineNav/UnderlineNav-e56ca858.css.map +0 -1
  73. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css +0 -2
  74. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css.map +0 -1
  75. package/dist/experimental/SelectPanel2/SelectPanel-f0c4b9ca.css +0 -2
  76. package/dist/internal/components/UnderlineTabbedInterface-135d7279.css +0 -2
  77. package/dist/internal/components/UnderlineTabbedInterface-135d7279.css.map +0 -1
@@ -24,12 +24,18 @@ const PageLayoutContext = /*#__PURE__*/React.createContext({
24
24
  },
25
25
  contentWrapperRef: {
26
26
  current: null
27
+ },
28
+ sidebarRef: {
29
+ current: null
30
+ },
31
+ sidebarContentWrapperRef: {
32
+ current: null
27
33
  }
28
34
  });
29
35
 
30
36
  // TODO: refs
31
37
  const Root = t0 => {
32
- const $ = c(22);
38
+ const $ = c(24);
33
39
  const {
34
40
  containerWidth: t1,
35
41
  padding: t2,
@@ -46,11 +52,14 @@ const Root = t0 => {
46
52
  const columnGap = t4 === undefined ? "normal" : t4;
47
53
  const paneRef = useRef(null);
48
54
  const contentWrapperRef = useRef(null);
55
+ const sidebarRef = useRef(null);
56
+ const sidebarContentWrapperRef = useRef(null);
49
57
  let t5;
50
58
  if ($[0] !== slotsConfig) {
51
59
  t5 = slotsConfig !== null && slotsConfig !== void 0 ? slotsConfig : {
52
60
  header: Header,
53
- footer: Footer
61
+ footer: Footer,
62
+ sidebar: Sidebar
54
63
  };
55
64
  $[0] = slotsConfig;
56
65
  $[1] = t5;
@@ -65,7 +74,9 @@ const Root = t0 => {
65
74
  rowGap,
66
75
  columnGap,
67
76
  paneRef,
68
- contentWrapperRef
77
+ contentWrapperRef,
78
+ sidebarRef,
79
+ sidebarContentWrapperRef
69
80
  };
70
81
  $[2] = columnGap;
71
82
  $[3] = padding;
@@ -75,77 +86,84 @@ const Root = t0 => {
75
86
  t6 = $[5];
76
87
  }
77
88
  const memoizedContextValue = t6;
78
- const t7 = slots.header;
79
- let t8;
89
+ const t7 = !!slots.sidebar;
90
+ const t8 = slots.sidebar;
91
+ const t9 = slots.header;
92
+ let t10;
80
93
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
81
- t8 = clsx(classes.PageLayoutContent);
82
- $[6] = t8;
94
+ t10 = clsx(classes.PageLayoutContent);
95
+ $[6] = t10;
83
96
  } else {
84
- t8 = $[6];
97
+ t10 = $[6];
85
98
  }
86
- let t9;
99
+ let t11;
87
100
  if ($[7] !== rest) {
88
- t9 = /*#__PURE__*/jsx("div", {
89
- className: t8,
101
+ t11 = /*#__PURE__*/jsx("div", {
102
+ className: t10,
90
103
  children: rest
91
104
  });
92
105
  $[7] = rest;
93
- $[8] = t9;
106
+ $[8] = t11;
94
107
  } else {
95
- t9 = $[8];
108
+ t11 = $[8];
96
109
  }
97
- let t10;
98
- if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t9) {
99
- t10 = /*#__PURE__*/jsxs("div", {
110
+ let t12;
111
+ if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t11) {
112
+ t12 = /*#__PURE__*/jsxs("div", {
113
+ ref: sidebarContentWrapperRef,
100
114
  className: classes.PageLayoutWrapper,
101
115
  "data-width": containerWidth,
102
- children: [t7, t9, slots.footer]
116
+ children: [t9, t11, slots.footer]
103
117
  });
104
118
  $[9] = containerWidth;
105
119
  $[10] = slots.footer;
106
120
  $[11] = slots.header;
107
- $[12] = t9;
108
- $[13] = t10;
121
+ $[12] = t11;
122
+ $[13] = t12;
109
123
  } else {
110
- t10 = $[13];
124
+ t12 = $[13];
111
125
  }
112
- let t11;
113
- if ($[14] !== className || $[15] !== padding || $[16] !== style || $[17] !== t10) {
114
- t11 = /*#__PURE__*/jsx(RootWrapper, {
126
+ let t13;
127
+ if ($[14] !== className || $[15] !== padding || $[16] !== slots.sidebar || $[17] !== style || $[18] !== t12 || $[19] !== t7) {
128
+ t13 = /*#__PURE__*/jsxs(RootWrapper, {
115
129
  style: style,
116
130
  padding: padding,
117
131
  className: className,
118
- children: t10
132
+ hasSidebar: t7,
133
+ children: [t8, t12]
119
134
  });
120
135
  $[14] = className;
121
136
  $[15] = padding;
122
- $[16] = style;
123
- $[17] = t10;
124
- $[18] = t11;
137
+ $[16] = slots.sidebar;
138
+ $[17] = style;
139
+ $[18] = t12;
140
+ $[19] = t7;
141
+ $[20] = t13;
125
142
  } else {
126
- t11 = $[18];
143
+ t13 = $[20];
127
144
  }
128
- let t12;
129
- if ($[19] !== memoizedContextValue || $[20] !== t11) {
130
- t12 = /*#__PURE__*/jsx(PageLayoutContext.Provider, {
145
+ let t14;
146
+ if ($[21] !== memoizedContextValue || $[22] !== t13) {
147
+ t14 = /*#__PURE__*/jsx(PageLayoutContext.Provider, {
131
148
  value: memoizedContextValue,
132
- children: t11
149
+ children: t13
133
150
  });
134
- $[19] = memoizedContextValue;
135
- $[20] = t11;
136
- $[21] = t12;
151
+ $[21] = memoizedContextValue;
152
+ $[22] = t13;
153
+ $[23] = t14;
137
154
  } else {
138
- t12 = $[21];
155
+ t14 = $[23];
139
156
  }
140
- return t12;
157
+ return t14;
141
158
  };
142
159
  const RootWrapper = /*#__PURE__*/memo(t0 => {
143
- const $ = c(9);
160
+ const $ = c(10);
144
161
  const {
145
162
  style,
146
163
  padding,
147
164
  children,
148
- className
165
+ className,
166
+ hasSidebar
149
167
  } = t0;
150
168
  const t1 = `var(--spacing-${padding})`;
151
169
  let t2;
@@ -169,21 +187,24 @@ const RootWrapper = /*#__PURE__*/memo(t0 => {
169
187
  } else {
170
188
  t4 = $[4];
171
189
  }
172
- let t5;
173
- if ($[5] !== children || $[6] !== t3 || $[7] !== t4) {
174
- t5 = /*#__PURE__*/jsx("div", {
190
+ const t5 = hasSidebar || undefined;
191
+ let t6;
192
+ if ($[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5) {
193
+ t6 = /*#__PURE__*/jsx("div", {
175
194
  style: t3,
176
195
  className: t4,
196
+ "data-has-sidebar": t5,
177
197
  children: children
178
198
  });
179
199
  $[5] = children;
180
200
  $[6] = t3;
181
201
  $[7] = t4;
182
202
  $[8] = t5;
203
+ $[9] = t6;
183
204
  } else {
184
- t5 = $[8];
205
+ t6 = $[9];
185
206
  }
186
- return t5;
207
+ return t6;
187
208
  });
188
209
  Root.displayName = 'PageLayout';
189
210
 
@@ -314,6 +335,137 @@ const VerticalDivider = /*#__PURE__*/memo(t0 => {
314
335
  return t5;
315
336
  });
316
337
  VerticalDivider.displayName = 'VerticalDivider';
338
+ const SidebarDivider = /*#__PURE__*/memo(function SidebarDivider(t0) {
339
+ const $ = c(22);
340
+ const {
341
+ position,
342
+ divider,
343
+ resizable,
344
+ minPaneWidth,
345
+ maxPaneWidth,
346
+ currentWidth,
347
+ currentWidthRef,
348
+ handleRef,
349
+ sidebarRef,
350
+ dragStartClientXRef,
351
+ dragStartWidthRef,
352
+ dragMaxWidthRef,
353
+ getMaxPaneWidth,
354
+ getDefaultWidth,
355
+ saveWidth
356
+ } = t0;
357
+ const {
358
+ columnGap
359
+ } = React.useContext(PageLayoutContext);
360
+ const t1 = resizable ? "line" : divider;
361
+ const t2 = `var(--spacing-${columnGap})`;
362
+ let t3;
363
+ if ($[0] !== t2) {
364
+ t3 = {
365
+ "--spacing": t2
366
+ };
367
+ $[0] = t2;
368
+ $[1] = t3;
369
+ } else {
370
+ t3 = $[1];
371
+ }
372
+ const t4 = t3;
373
+ let t5;
374
+ if ($[2] !== currentWidth || $[3] !== currentWidthRef || $[4] !== dragMaxWidthRef || $[5] !== dragStartClientXRef || $[6] !== dragStartWidthRef || $[7] !== getDefaultWidth || $[8] !== getMaxPaneWidth || $[9] !== handleRef || $[10] !== maxPaneWidth || $[11] !== minPaneWidth || $[12] !== position || $[13] !== resizable || $[14] !== saveWidth || $[15] !== sidebarRef) {
375
+ t5 = resizable ? /*#__PURE__*/jsx(DragHandle, {
376
+ handleRef: handleRef,
377
+ "aria-valuemin": minPaneWidth,
378
+ "aria-valuemax": maxPaneWidth,
379
+ "aria-valuenow": currentWidth,
380
+ onDragStart: clientX => {
381
+ var _sidebarRef$current$g, _sidebarRef$current;
382
+ dragStartClientXRef.current = clientX;
383
+ dragStartWidthRef.current = (_sidebarRef$current$g = (_sidebarRef$current = sidebarRef.current) === null || _sidebarRef$current === void 0 ? void 0 : _sidebarRef$current.getBoundingClientRect().width) !== null && _sidebarRef$current$g !== void 0 ? _sidebarRef$current$g : currentWidthRef.current;
384
+ dragMaxWidthRef.current = getMaxPaneWidth();
385
+ },
386
+ onDrag: (value, isKeyboard) => {
387
+ const maxWidth = isKeyboard ? getMaxPaneWidth() : dragMaxWidthRef.current;
388
+ if (isKeyboard) {
389
+ const delta = position === "end" ? -value : value;
390
+ const newWidth = Math.max(minPaneWidth, Math.min(maxWidth, currentWidthRef.current + delta));
391
+ if (newWidth !== currentWidthRef.current) {
392
+ var _sidebarRef$current2;
393
+ currentWidthRef.current = newWidth;
394
+ (_sidebarRef$current2 = sidebarRef.current) === null || _sidebarRef$current2 === void 0 ? void 0 : _sidebarRef$current2.style.setProperty("--pane-width", `${newWidth}px`);
395
+ updateAriaValues(handleRef.current, {
396
+ current: newWidth,
397
+ max: maxWidth
398
+ });
399
+ }
400
+ } else {
401
+ if (sidebarRef.current) {
402
+ const deltaX = value - dragStartClientXRef.current;
403
+ const directedDelta = position === "end" ? -deltaX : deltaX;
404
+ const newWidth_0 = dragStartWidthRef.current + directedDelta;
405
+ const clampedWidth = Math.max(minPaneWidth, Math.min(maxWidth, newWidth_0));
406
+ if (Math.round(clampedWidth) !== Math.round(currentWidthRef.current)) {
407
+ sidebarRef.current.style.setProperty("--pane-width", `${clampedWidth}px`);
408
+ currentWidthRef.current = clampedWidth;
409
+ updateAriaValues(handleRef.current, {
410
+ current: Math.round(clampedWidth),
411
+ max: maxWidth
412
+ });
413
+ }
414
+ }
415
+ }
416
+ },
417
+ onDragEnd: () => {
418
+ saveWidth(currentWidthRef.current);
419
+ },
420
+ onDoubleClick: () => {
421
+ const resetWidth = getDefaultWidth();
422
+ if (sidebarRef.current) {
423
+ sidebarRef.current.style.setProperty("--pane-width", `${resetWidth}px`);
424
+ currentWidthRef.current = resetWidth;
425
+ updateAriaValues(handleRef.current, {
426
+ current: resetWidth
427
+ });
428
+ }
429
+ saveWidth(resetWidth);
430
+ }
431
+ }) : null;
432
+ $[2] = currentWidth;
433
+ $[3] = currentWidthRef;
434
+ $[4] = dragMaxWidthRef;
435
+ $[5] = dragStartClientXRef;
436
+ $[6] = dragStartWidthRef;
437
+ $[7] = getDefaultWidth;
438
+ $[8] = getMaxPaneWidth;
439
+ $[9] = handleRef;
440
+ $[10] = maxPaneWidth;
441
+ $[11] = minPaneWidth;
442
+ $[12] = position;
443
+ $[13] = resizable;
444
+ $[14] = saveWidth;
445
+ $[15] = sidebarRef;
446
+ $[16] = t5;
447
+ } else {
448
+ t5 = $[16];
449
+ }
450
+ let t6;
451
+ if ($[17] !== position || $[18] !== t1 || $[19] !== t4 || $[20] !== t5) {
452
+ t6 = /*#__PURE__*/jsx(VerticalDivider, {
453
+ variant: t1,
454
+ position: position,
455
+ className: classes.SidebarVerticalDivider,
456
+ style: t4,
457
+ children: t5
458
+ });
459
+ $[17] = position;
460
+ $[18] = t1;
461
+ $[19] = t4;
462
+ $[20] = t5;
463
+ $[21] = t6;
464
+ } else {
465
+ t6 = $[21];
466
+ }
467
+ return t6;
468
+ });
317
469
  /**
318
470
  * DragHandle - handles all pointer and keyboard interactions for resizing
319
471
  * ARIA values are set in JSX for SSR accessibility,
@@ -1252,6 +1404,306 @@ Pane.displayName = 'PageLayout.Pane';
1252
1404
  // ----------------------------------------------------------------------------
1253
1405
  // PageLayout.Footer
1254
1406
 
1407
+ // ----------------------------------------------------------------------------
1408
+ // PageLayout.Sidebar
1409
+
1410
+ const Sidebar = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
1411
+ const $ = c(73);
1412
+ const {
1413
+ "aria-label": label,
1414
+ "aria-labelledby": labelledBy,
1415
+ position: t1,
1416
+ width: t2,
1417
+ minWidth: t3,
1418
+ padding: t4,
1419
+ resizable: t5,
1420
+ widthStorageKey: t6,
1421
+ divider: t7,
1422
+ sticky: t8,
1423
+ responsiveVariant: t9,
1424
+ hidden: t10,
1425
+ children,
1426
+ id,
1427
+ className,
1428
+ style
1429
+ } = t0;
1430
+ const position = t1 === undefined ? "start" : t1;
1431
+ const width = t2 === undefined ? "medium" : t2;
1432
+ const minWidth = t3 === undefined ? 256 : t3;
1433
+ const padding = t4 === undefined ? "none" : t4;
1434
+ const resizable = t5 === undefined ? false : t5;
1435
+ const widthStorageKey = t6 === undefined ? "sidebarWidth" : t6;
1436
+ const divider = t7 === undefined ? "none" : t7;
1437
+ const sticky = t8 === undefined ? false : t8;
1438
+ const responsiveVariant = t9 === undefined ? "default" : t9;
1439
+ const responsiveHidden = t10 === undefined ? false : t10;
1440
+ const {
1441
+ columnGap,
1442
+ sidebarRef,
1443
+ sidebarContentWrapperRef
1444
+ } = React.useContext(PageLayoutContext);
1445
+ const handleRef = React.useRef(null);
1446
+ const dragStartClientXRef = React.useRef(0);
1447
+ const dragStartWidthRef = React.useRef(0);
1448
+ const dragMaxWidthRef = React.useRef(0);
1449
+ let t11;
1450
+ if ($[0] !== minWidth || $[1] !== resizable || $[2] !== sidebarContentWrapperRef || $[3] !== sidebarRef || $[4] !== width || $[5] !== widthStorageKey) {
1451
+ t11 = {
1452
+ width,
1453
+ minWidth,
1454
+ resizable,
1455
+ widthStorageKey,
1456
+ paneRef: sidebarRef,
1457
+ handleRef,
1458
+ contentWrapperRef: sidebarContentWrapperRef,
1459
+ constrainToViewport: true
1460
+ };
1461
+ $[0] = minWidth;
1462
+ $[1] = resizable;
1463
+ $[2] = sidebarContentWrapperRef;
1464
+ $[3] = sidebarRef;
1465
+ $[4] = width;
1466
+ $[5] = widthStorageKey;
1467
+ $[6] = t11;
1468
+ } else {
1469
+ t11 = $[6];
1470
+ }
1471
+ const {
1472
+ currentWidth,
1473
+ currentWidthRef,
1474
+ minPaneWidth,
1475
+ maxPaneWidth,
1476
+ getMaxPaneWidth,
1477
+ saveWidth,
1478
+ getDefaultWidth
1479
+ } = usePaneWidth(t11);
1480
+ useRefObjectAsForwardedRef(forwardRef, sidebarRef);
1481
+ const hasOverflow = useOverflow(sidebarRef);
1482
+ const sidebarId = useId(id);
1483
+ let labelProp;
1484
+ if ($[7] !== hasOverflow || $[8] !== label || $[9] !== labelledBy) {
1485
+ labelProp = {};
1486
+ if (hasOverflow) {
1487
+ process.env.NODE_ENV !== "production" ? warning(label === undefined && labelledBy === undefined, "The <PageLayout.Sidebar> has overflow and `aria-label` or `aria-labelledby` has not been set. Please provide `aria-label` or `aria-labelledby` to <PageLayout.Sidebar> in order to label this region.") : void 0;
1488
+ if (labelledBy) {
1489
+ labelProp["aria-labelledby"] = labelledBy;
1490
+ } else {
1491
+ if (label) {
1492
+ labelProp["aria-label"] = label;
1493
+ }
1494
+ }
1495
+ }
1496
+ $[7] = hasOverflow;
1497
+ $[8] = label;
1498
+ $[9] = labelledBy;
1499
+ $[10] = labelProp;
1500
+ } else {
1501
+ labelProp = $[10];
1502
+ }
1503
+ let t12;
1504
+ if ($[11] !== className) {
1505
+ t12 = clsx(classes.SidebarWrapper, className);
1506
+ $[11] = className;
1507
+ $[12] = t12;
1508
+ } else {
1509
+ t12 = $[12];
1510
+ }
1511
+ const t13 = `var(--spacing-${columnGap})`;
1512
+ let t14;
1513
+ if ($[13] !== style || $[14] !== t13) {
1514
+ t14 = {
1515
+ "--spacing-column": t13,
1516
+ ...style
1517
+ };
1518
+ $[13] = style;
1519
+ $[14] = t13;
1520
+ $[15] = t14;
1521
+ } else {
1522
+ t14 = $[15];
1523
+ }
1524
+ const t15 = t14;
1525
+ let t16;
1526
+ if ($[16] !== responsiveHidden) {
1527
+ t16 = getResponsiveAttributes("is-hidden", responsiveHidden);
1528
+ $[16] = responsiveHidden;
1529
+ $[17] = t16;
1530
+ } else {
1531
+ t16 = $[17];
1532
+ }
1533
+ const t17 = sticky || undefined;
1534
+ const t18 = responsiveVariant !== "default" ? responsiveVariant : undefined;
1535
+ let t19;
1536
+ if ($[18] !== currentWidth || $[19] !== currentWidthRef || $[20] !== divider || $[21] !== getDefaultWidth || $[22] !== getMaxPaneWidth || $[23] !== maxPaneWidth || $[24] !== minPaneWidth || $[25] !== position || $[26] !== resizable || $[27] !== saveWidth || $[28] !== sidebarRef) {
1537
+ t19 = position === "end" && /*#__PURE__*/jsx(SidebarDivider, {
1538
+ position: position,
1539
+ divider: divider,
1540
+ resizable: resizable,
1541
+ minPaneWidth: minPaneWidth,
1542
+ maxPaneWidth: maxPaneWidth,
1543
+ currentWidth: currentWidth,
1544
+ currentWidthRef: currentWidthRef,
1545
+ handleRef: handleRef,
1546
+ sidebarRef: sidebarRef,
1547
+ dragStartClientXRef: dragStartClientXRef,
1548
+ dragStartWidthRef: dragStartWidthRef,
1549
+ dragMaxWidthRef: dragMaxWidthRef,
1550
+ getMaxPaneWidth: getMaxPaneWidth,
1551
+ getDefaultWidth: getDefaultWidth,
1552
+ saveWidth: saveWidth
1553
+ });
1554
+ $[18] = currentWidth;
1555
+ $[19] = currentWidthRef;
1556
+ $[20] = divider;
1557
+ $[21] = getDefaultWidth;
1558
+ $[22] = getMaxPaneWidth;
1559
+ $[23] = maxPaneWidth;
1560
+ $[24] = minPaneWidth;
1561
+ $[25] = position;
1562
+ $[26] = resizable;
1563
+ $[27] = saveWidth;
1564
+ $[28] = sidebarRef;
1565
+ $[29] = t19;
1566
+ } else {
1567
+ t19 = $[29];
1568
+ }
1569
+ const t20 = resizable === true;
1570
+ let t21;
1571
+ if ($[30] !== hasOverflow) {
1572
+ t21 = hasOverflow ? overflowProps : {};
1573
+ $[30] = hasOverflow;
1574
+ $[31] = t21;
1575
+ } else {
1576
+ t21 = $[31];
1577
+ }
1578
+ let t22;
1579
+ if ($[32] !== id || $[33] !== sidebarId) {
1580
+ t22 = id && {
1581
+ id: sidebarId
1582
+ };
1583
+ $[32] = id;
1584
+ $[33] = sidebarId;
1585
+ $[34] = t22;
1586
+ } else {
1587
+ t22 = $[34];
1588
+ }
1589
+ const t23 = resizable || undefined;
1590
+ const t24 = `var(--spacing-${padding})`;
1591
+ const t25 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
1592
+ const t26 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--sidebar-max-width-diff))";
1593
+ const t27 = isCustomWidthOptions(width) ? width.default : undefined;
1594
+ const t28 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
1595
+ const t29 = `${currentWidth}px`;
1596
+ let t30;
1597
+ if ($[35] !== t24 || $[36] !== t25 || $[37] !== t26 || $[38] !== t27 || $[39] !== t28 || $[40] !== t29) {
1598
+ t30 = {
1599
+ "--spacing": t24,
1600
+ "--pane-min-width": t25,
1601
+ "--pane-max-width": t26,
1602
+ "--pane-width-custom": t27,
1603
+ "--pane-width-size": t28,
1604
+ "--pane-width": t29
1605
+ };
1606
+ $[35] = t24;
1607
+ $[36] = t25;
1608
+ $[37] = t26;
1609
+ $[38] = t27;
1610
+ $[39] = t28;
1611
+ $[40] = t29;
1612
+ $[41] = t30;
1613
+ } else {
1614
+ t30 = $[41];
1615
+ }
1616
+ const t31 = t30;
1617
+ let t32;
1618
+ if ($[42] !== children || $[43] !== labelProp || $[44] !== sidebarRef || $[45] !== t20 || $[46] !== t21 || $[47] !== t22 || $[48] !== t23 || $[49] !== t31) {
1619
+ t32 = /*#__PURE__*/jsx("div", {
1620
+ ref: sidebarRef,
1621
+ suppressHydrationWarning: t20,
1622
+ ...t21,
1623
+ ...labelProp,
1624
+ ...t22,
1625
+ className: classes.Sidebar,
1626
+ "data-resizable": t23,
1627
+ style: t31,
1628
+ children: children
1629
+ });
1630
+ $[42] = children;
1631
+ $[43] = labelProp;
1632
+ $[44] = sidebarRef;
1633
+ $[45] = t20;
1634
+ $[46] = t21;
1635
+ $[47] = t22;
1636
+ $[48] = t23;
1637
+ $[49] = t31;
1638
+ $[50] = t32;
1639
+ } else {
1640
+ t32 = $[50];
1641
+ }
1642
+ let t33;
1643
+ if ($[51] !== currentWidth || $[52] !== currentWidthRef || $[53] !== divider || $[54] !== getDefaultWidth || $[55] !== getMaxPaneWidth || $[56] !== maxPaneWidth || $[57] !== minPaneWidth || $[58] !== position || $[59] !== resizable || $[60] !== saveWidth || $[61] !== sidebarRef) {
1644
+ t33 = position === "start" && /*#__PURE__*/jsx(SidebarDivider, {
1645
+ position: position,
1646
+ divider: divider,
1647
+ resizable: resizable,
1648
+ minPaneWidth: minPaneWidth,
1649
+ maxPaneWidth: maxPaneWidth,
1650
+ currentWidth: currentWidth,
1651
+ currentWidthRef: currentWidthRef,
1652
+ handleRef: handleRef,
1653
+ sidebarRef: sidebarRef,
1654
+ dragStartClientXRef: dragStartClientXRef,
1655
+ dragStartWidthRef: dragStartWidthRef,
1656
+ dragMaxWidthRef: dragMaxWidthRef,
1657
+ getMaxPaneWidth: getMaxPaneWidth,
1658
+ getDefaultWidth: getDefaultWidth,
1659
+ saveWidth: saveWidth
1660
+ });
1661
+ $[51] = currentWidth;
1662
+ $[52] = currentWidthRef;
1663
+ $[53] = divider;
1664
+ $[54] = getDefaultWidth;
1665
+ $[55] = getMaxPaneWidth;
1666
+ $[56] = maxPaneWidth;
1667
+ $[57] = minPaneWidth;
1668
+ $[58] = position;
1669
+ $[59] = resizable;
1670
+ $[60] = saveWidth;
1671
+ $[61] = sidebarRef;
1672
+ $[62] = t33;
1673
+ } else {
1674
+ t33 = $[62];
1675
+ }
1676
+ let t34;
1677
+ if ($[63] !== position || $[64] !== t12 || $[65] !== t15 || $[66] !== t16 || $[67] !== t17 || $[68] !== t18 || $[69] !== t19 || $[70] !== t32 || $[71] !== t33) {
1678
+ t34 = /*#__PURE__*/jsxs("div", {
1679
+ className: t12,
1680
+ style: t15,
1681
+ ...t16,
1682
+ "data-position": position,
1683
+ "data-sticky": t17,
1684
+ "data-responsive-variant": t18,
1685
+ children: [t19, t32, t33]
1686
+ });
1687
+ $[63] = position;
1688
+ $[64] = t12;
1689
+ $[65] = t15;
1690
+ $[66] = t16;
1691
+ $[67] = t17;
1692
+ $[68] = t18;
1693
+ $[69] = t19;
1694
+ $[70] = t32;
1695
+ $[71] = t33;
1696
+ $[72] = t34;
1697
+ } else {
1698
+ t34 = $[72];
1699
+ }
1700
+ return t34;
1701
+ });
1702
+ Sidebar.displayName = 'PageLayout.Sidebar';
1703
+
1704
+ // ----------------------------------------------------------------------------
1705
+ // PageLayout.Footer
1706
+
1255
1707
  const Footer = t0 => {
1256
1708
  const $ = c(28);
1257
1709
  const {
@@ -1398,11 +1850,13 @@ const PageLayout = Object.assign(Root, {
1398
1850
  Header,
1399
1851
  Content,
1400
1852
  Pane: Pane,
1853
+ Sidebar: Sidebar,
1401
1854
  Footer
1402
1855
  });
1403
1856
  Header.__SLOT__ = Symbol('PageLayout.Header');
1404
1857
  Content.__SLOT__ = Symbol('PageLayout.Content');
1405
1858
  Pane.__SLOT__ = Symbol('PageLayout.Pane');
1859
+ Sidebar.__SLOT__ = Symbol('PageLayout.Sidebar');
1406
1860
  Footer.__SLOT__ = Symbol('PageLayout.Footer');
1407
1861
 
1408
1862
  export { PageLayout };
@@ -1,5 +1,5 @@
1
- import './PageLayout-cb491b47.css';
1
+ import './PageLayout-06f4c069.css';
2
2
 
3
- var classes = {"paneMaxWidthDiffBreakpoint":"1280","paneMaxWidthDiffDefault":"511","PageLayoutRoot":"prc-PageLayout-PageLayoutRoot--KH-d","PageLayoutWrapper":"prc-PageLayout-PageLayoutWrapper-2BhU2","PageLayoutContent":"prc-PageLayout-PageLayoutContent-BneH9","HorizontalDivider":"prc-PageLayout-HorizontalDivider-JLVqp","VerticalDivider":"prc-PageLayout-VerticalDivider-9QRmK","Header":"prc-PageLayout-Header-0of-R","HeaderContent":"prc-PageLayout-HeaderContent-gdFfN","HeaderHorizontalDivider":"prc-PageLayout-HeaderHorizontalDivider-odAHl","ContentWrapper":"prc-PageLayout-ContentWrapper-gR9eG","Content":"prc-PageLayout-Content-xWL-A","PaneWrapper":"prc-PageLayout-PaneWrapper-pHPop","PaneVerticalDivider":"prc-PageLayout-PaneVerticalDivider-le57g","Pane":"prc-PageLayout-Pane-AyzHK","PaneHorizontalDivider":"prc-PageLayout-PaneHorizontalDivider-9tbnE","FooterWrapper":"prc-PageLayout-FooterWrapper-9cB8y","FooterHorizontalDivider":"prc-PageLayout-FooterHorizontalDivider-W-RaS","FooterContent":"prc-PageLayout-FooterContent-HUS0V","DraggableHandle":"prc-PageLayout-DraggableHandle-9s6B4"};
3
+ var classes = {"paneMaxWidthDiffBreakpoint":"1280","paneMaxWidthDiffDefault":"511","sidebarMaxWidthDiffDefault":"256","PageLayoutRoot":"prc-PageLayout-PageLayoutRoot--KH-d","PageLayoutWrapper":"prc-PageLayout-PageLayoutWrapper-2BhU2","PageLayoutContent":"prc-PageLayout-PageLayoutContent-BneH9","HorizontalDivider":"prc-PageLayout-HorizontalDivider-JLVqp","VerticalDivider":"prc-PageLayout-VerticalDivider-9QRmK","Header":"prc-PageLayout-Header-0of-R","HeaderContent":"prc-PageLayout-HeaderContent-gdFfN","HeaderHorizontalDivider":"prc-PageLayout-HeaderHorizontalDivider-odAHl","ContentWrapper":"prc-PageLayout-ContentWrapper-gR9eG","Content":"prc-PageLayout-Content-xWL-A","PaneWrapper":"prc-PageLayout-PaneWrapper-pHPop","PaneVerticalDivider":"prc-PageLayout-PaneVerticalDivider-le57g","Pane":"prc-PageLayout-Pane-AyzHK","PaneHorizontalDivider":"prc-PageLayout-PaneHorizontalDivider-9tbnE","FooterWrapper":"prc-PageLayout-FooterWrapper-9cB8y","FooterHorizontalDivider":"prc-PageLayout-FooterHorizontalDivider-W-RaS","FooterContent":"prc-PageLayout-FooterContent-HUS0V","DraggableHandle":"prc-PageLayout-DraggableHandle-9s6B4","SidebarWrapper":"prc-PageLayout-SidebarWrapper-kLG4B","Sidebar":"prc-PageLayout-Sidebar-iciWg","SidebarVerticalDivider":"prc-PageLayout-SidebarVerticalDivider-0Rl0V"};
4
4
 
5
5
  export { classes as default };