@primer/react 0.0.0-20260218211332 → 0.0.0-20260218211705

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 +22 -4
  2. package/dist/ActionList/Description.js +113 -35
  3. package/dist/ActionList/Divider.js +30 -11
  4. package/dist/ActionList/Group.js +294 -117
  5. package/dist/ActionList/Heading.js +77 -22
  6. package/dist/ActionList/Item.js +98 -37
  7. package/dist/ActionList/LinkItem.js +80 -24
  8. package/dist/ActionList/List.js +143 -33
  9. package/dist/ActionList/Selection.js +78 -30
  10. package/dist/ActionList/TrailingAction.js +83 -23
  11. package/dist/ActionList/Visuals.js +162 -64
  12. package/dist/Banner/Banner.d.ts.map +1 -1
  13. package/dist/Banner/Banner.js +72 -62
  14. package/dist/Button/Button.js +34 -11
  15. package/dist/Button/ButtonBase.d.ts.map +1 -1
  16. package/dist/Button/ButtonBase.js +9 -14
  17. package/dist/Button/IconButton.js +140 -51
  18. package/dist/Button/LinkButton.js +39 -11
  19. package/dist/FilteredActionList/FilteredActionList-02db90c6.css +2 -0
  20. package/dist/FilteredActionList/FilteredActionList-02db90c6.css.map +1 -0
  21. package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
  22. package/dist/PageLayout/PageLayout-cb491b47.css +2 -0
  23. package/dist/PageLayout/PageLayout-cb491b47.css.map +1 -0
  24. package/dist/PageLayout/PageLayout.d.ts +2 -71
  25. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  26. package/dist/PageLayout/PageLayout.js +44 -498
  27. package/dist/PageLayout/PageLayout.module.css.js +2 -2
  28. package/dist/PageLayout/usePaneWidth.d.ts +4 -16
  29. package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
  30. package/dist/PageLayout/usePaneWidth.js +109 -123
  31. package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -4
  32. package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
  33. package/dist/SplitPageLayout/SplitPageLayout.js +2 -54
  34. package/dist/UnderlineNav/UnderlineNav-e56ca858.css +2 -0
  35. package/dist/UnderlineNav/UnderlineNav-e56ca858.css.map +1 -0
  36. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  37. package/dist/UnderlineNav/UnderlineNav.js +82 -317
  38. package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
  39. package/dist/UnderlineNav/UnderlineNavContext.d.ts +4 -11
  40. package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
  41. package/dist/UnderlineNav/UnderlineNavContext.js +2 -3
  42. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css +2 -0
  43. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css.map +1 -0
  44. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  45. package/dist/UnderlineNav/UnderlineNavItem.js +94 -85
  46. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -1
  47. package/dist/experimental/SelectPanel2/SelectPanel-f0c4b9ca.css +2 -0
  48. package/dist/experimental/SelectPanel2/{SelectPanel-1f8c23b5.css.map → SelectPanel-f0c4b9ca.css.map} +1 -1
  49. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  50. package/dist/hooks/useIsMacOS.d.ts +15 -3
  51. package/dist/hooks/useIsMacOS.d.ts.map +1 -1
  52. package/dist/hooks/useIsMacOS.js +24 -26
  53. package/dist/internal/components/UnderlineTabbedInterface-b6e35b9d.css +2 -0
  54. package/dist/internal/components/UnderlineTabbedInterface-b6e35b9d.css.map +1 -0
  55. package/dist/internal/components/UnderlineTabbedInterface.d.ts +0 -1
  56. package/dist/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
  57. package/dist/internal/components/UnderlineTabbedInterface.js +41 -48
  58. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  59. package/dist/live-region/Announce.d.ts.map +1 -1
  60. package/dist/live-region/Announce.js +7 -4
  61. package/generated/components.json +2 -200
  62. package/package.json +2 -2
  63. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +0 -2
  64. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +0 -1
  65. package/dist/PageLayout/PageLayout-06f4c069.css +0 -2
  66. package/dist/PageLayout/PageLayout-06f4c069.css.map +0 -1
  67. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +0 -2
  68. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +0 -1
  69. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +0 -2
  70. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +0 -1
  71. package/dist/UnderlineNav/styles.d.ts +0 -16
  72. package/dist/UnderlineNav/styles.d.ts.map +0 -1
  73. package/dist/UnderlineNav/styles.js +0 -19
  74. package/dist/experimental/SelectPanel2/SelectPanel-1f8c23b5.css +0 -2
  75. package/dist/internal/components/UnderlineTabbedInterface-20c3ba3d.css +0 -2
  76. package/dist/internal/components/UnderlineTabbedInterface-20c3ba3d.css.map +0 -1
  77. package/dist/utils/environment.js +0 -9
@@ -24,18 +24,12 @@ 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
33
27
  }
34
28
  });
35
29
 
36
30
  // TODO: refs
37
31
  const Root = t0 => {
38
- const $ = c(24);
32
+ const $ = c(22);
39
33
  const {
40
34
  containerWidth: t1,
41
35
  padding: t2,
@@ -52,14 +46,11 @@ const Root = t0 => {
52
46
  const columnGap = t4 === undefined ? "normal" : t4;
53
47
  const paneRef = useRef(null);
54
48
  const contentWrapperRef = useRef(null);
55
- const sidebarRef = useRef(null);
56
- const sidebarContentWrapperRef = useRef(null);
57
49
  let t5;
58
50
  if ($[0] !== slotsConfig) {
59
51
  t5 = slotsConfig !== null && slotsConfig !== void 0 ? slotsConfig : {
60
52
  header: Header,
61
- footer: Footer,
62
- sidebar: Sidebar
53
+ footer: Footer
63
54
  };
64
55
  $[0] = slotsConfig;
65
56
  $[1] = t5;
@@ -74,9 +65,7 @@ const Root = t0 => {
74
65
  rowGap,
75
66
  columnGap,
76
67
  paneRef,
77
- contentWrapperRef,
78
- sidebarRef,
79
- sidebarContentWrapperRef
68
+ contentWrapperRef
80
69
  };
81
70
  $[2] = columnGap;
82
71
  $[3] = padding;
@@ -86,84 +75,77 @@ const Root = t0 => {
86
75
  t6 = $[5];
87
76
  }
88
77
  const memoizedContextValue = t6;
89
- const t7 = !!slots.sidebar;
90
- const t8 = slots.sidebar;
91
- const t9 = slots.header;
92
- let t10;
78
+ const t7 = slots.header;
79
+ let t8;
93
80
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
94
- t10 = clsx(classes.PageLayoutContent);
95
- $[6] = t10;
81
+ t8 = clsx(classes.PageLayoutContent);
82
+ $[6] = t8;
96
83
  } else {
97
- t10 = $[6];
84
+ t8 = $[6];
98
85
  }
99
- let t11;
86
+ let t9;
100
87
  if ($[7] !== rest) {
101
- t11 = /*#__PURE__*/jsx("div", {
102
- className: t10,
88
+ t9 = /*#__PURE__*/jsx("div", {
89
+ className: t8,
103
90
  children: rest
104
91
  });
105
92
  $[7] = rest;
106
- $[8] = t11;
93
+ $[8] = t9;
107
94
  } else {
108
- t11 = $[8];
95
+ t9 = $[8];
109
96
  }
110
- let t12;
111
- if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t11) {
112
- t12 = /*#__PURE__*/jsxs("div", {
113
- ref: sidebarContentWrapperRef,
97
+ let t10;
98
+ if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t9) {
99
+ t10 = /*#__PURE__*/jsxs("div", {
114
100
  className: classes.PageLayoutWrapper,
115
101
  "data-width": containerWidth,
116
- children: [t9, t11, slots.footer]
102
+ children: [t7, t9, slots.footer]
117
103
  });
118
104
  $[9] = containerWidth;
119
105
  $[10] = slots.footer;
120
106
  $[11] = slots.header;
121
- $[12] = t11;
122
- $[13] = t12;
107
+ $[12] = t9;
108
+ $[13] = t10;
123
109
  } else {
124
- t12 = $[13];
110
+ t10 = $[13];
125
111
  }
126
- let t13;
127
- if ($[14] !== className || $[15] !== padding || $[16] !== slots.sidebar || $[17] !== style || $[18] !== t12 || $[19] !== t7) {
128
- t13 = /*#__PURE__*/jsxs(RootWrapper, {
112
+ let t11;
113
+ if ($[14] !== className || $[15] !== padding || $[16] !== style || $[17] !== t10) {
114
+ t11 = /*#__PURE__*/jsx(RootWrapper, {
129
115
  style: style,
130
116
  padding: padding,
131
117
  className: className,
132
- hasSidebar: t7,
133
- children: [t8, t12]
118
+ children: t10
134
119
  });
135
120
  $[14] = className;
136
121
  $[15] = padding;
137
- $[16] = slots.sidebar;
138
- $[17] = style;
139
- $[18] = t12;
140
- $[19] = t7;
141
- $[20] = t13;
122
+ $[16] = style;
123
+ $[17] = t10;
124
+ $[18] = t11;
142
125
  } else {
143
- t13 = $[20];
126
+ t11 = $[18];
144
127
  }
145
- let t14;
146
- if ($[21] !== memoizedContextValue || $[22] !== t13) {
147
- t14 = /*#__PURE__*/jsx(PageLayoutContext.Provider, {
128
+ let t12;
129
+ if ($[19] !== memoizedContextValue || $[20] !== t11) {
130
+ t12 = /*#__PURE__*/jsx(PageLayoutContext.Provider, {
148
131
  value: memoizedContextValue,
149
- children: t13
132
+ children: t11
150
133
  });
151
- $[21] = memoizedContextValue;
152
- $[22] = t13;
153
- $[23] = t14;
134
+ $[19] = memoizedContextValue;
135
+ $[20] = t11;
136
+ $[21] = t12;
154
137
  } else {
155
- t14 = $[23];
138
+ t12 = $[21];
156
139
  }
157
- return t14;
140
+ return t12;
158
141
  };
159
142
  const RootWrapper = /*#__PURE__*/memo(t0 => {
160
- const $ = c(10);
143
+ const $ = c(9);
161
144
  const {
162
145
  style,
163
146
  padding,
164
147
  children,
165
- className,
166
- hasSidebar
148
+ className
167
149
  } = t0;
168
150
  const t1 = `var(--spacing-${padding})`;
169
151
  let t2;
@@ -187,24 +169,21 @@ const RootWrapper = /*#__PURE__*/memo(t0 => {
187
169
  } else {
188
170
  t4 = $[4];
189
171
  }
190
- const t5 = hasSidebar || undefined;
191
- let t6;
192
- if ($[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5) {
193
- t6 = /*#__PURE__*/jsx("div", {
172
+ let t5;
173
+ if ($[5] !== children || $[6] !== t3 || $[7] !== t4) {
174
+ t5 = /*#__PURE__*/jsx("div", {
194
175
  style: t3,
195
176
  className: t4,
196
- "data-has-sidebar": t5,
197
177
  children: children
198
178
  });
199
179
  $[5] = children;
200
180
  $[6] = t3;
201
181
  $[7] = t4;
202
182
  $[8] = t5;
203
- $[9] = t6;
204
183
  } else {
205
- t6 = $[9];
184
+ t5 = $[8];
206
185
  }
207
- return t6;
186
+ return t5;
208
187
  });
209
188
  Root.displayName = 'PageLayout';
210
189
 
@@ -335,137 +314,6 @@ const VerticalDivider = /*#__PURE__*/memo(t0 => {
335
314
  return t5;
336
315
  });
337
316
  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
- });
469
317
  /**
470
318
  * DragHandle - handles all pointer and keyboard interactions for resizing
471
319
  * ARIA values are set in JSX for SSR accessibility,
@@ -1404,306 +1252,6 @@ Pane.displayName = 'PageLayout.Pane';
1404
1252
  // ----------------------------------------------------------------------------
1405
1253
  // PageLayout.Footer
1406
1254
 
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
-
1707
1255
  const Footer = t0 => {
1708
1256
  const $ = c(28);
1709
1257
  const {
@@ -1850,13 +1398,11 @@ const PageLayout = Object.assign(Root, {
1850
1398
  Header,
1851
1399
  Content,
1852
1400
  Pane: Pane,
1853
- Sidebar: Sidebar,
1854
1401
  Footer
1855
1402
  });
1856
1403
  Header.__SLOT__ = Symbol('PageLayout.Header');
1857
1404
  Content.__SLOT__ = Symbol('PageLayout.Content');
1858
1405
  Pane.__SLOT__ = Symbol('PageLayout.Pane');
1859
- Sidebar.__SLOT__ = Symbol('PageLayout.Sidebar');
1860
1406
  Footer.__SLOT__ = Symbol('PageLayout.Footer');
1861
1407
 
1862
1408
  export { PageLayout };
@@ -1,5 +1,5 @@
1
- import './PageLayout-06f4c069.css';
1
+ import './PageLayout-cb491b47.css';
2
2
 
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"};
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"};
4
4
 
5
5
  export { classes as default };