@primer/react 0.0.0-20260220191813 → 0.0.0-20260220193722

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 (93) hide show
  1. package/CHANGELOG.md +26 -2
  2. package/dist/ActionList/ActionList-c04a02d6.css +2 -0
  3. package/dist/ActionList/ActionList-c04a02d6.css.map +1 -0
  4. package/dist/ActionList/ActionList.module.css.js +1 -1
  5. package/dist/ActionList/Item.d.ts.map +1 -1
  6. package/dist/ActionList/Item.js +1 -0
  7. package/dist/Autocomplete/Autocomplete.js +76 -159
  8. package/dist/Autocomplete/AutocompleteMenu.js +128 -333
  9. package/dist/Autocomplete/AutocompleteOverlay.js +49 -130
  10. package/dist/Banner/Banner.js +64 -238
  11. package/dist/Blankslate/{Blankslate-f5a9755a.css → Blankslate-a039d79a.css} +2 -2
  12. package/dist/Blankslate/Blankslate-a039d79a.css.map +1 -0
  13. package/dist/Blankslate/Blankslate.module.css.js +1 -1
  14. package/dist/Button/Button.js +11 -34
  15. package/dist/Button/ButtonBase-c973d463.css +2 -0
  16. package/dist/Button/ButtonBase-c973d463.css.map +1 -0
  17. package/dist/Button/ButtonBase.js +1 -1
  18. package/dist/Button/ButtonBase.module.css.js +1 -1
  19. package/dist/Button/IconButton.js +51 -140
  20. package/dist/Button/LinkButton.js +11 -39
  21. package/dist/Checkbox/Checkbox.js +55 -163
  22. package/dist/Dialog/Dialog.js +105 -347
  23. package/dist/FilteredActionList/FilteredActionList.d.ts +16 -1
  24. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  25. package/dist/FilteredActionList/FilteredActionList.js +147 -42
  26. package/dist/PageLayout/PageLayout-06f4c069.css +2 -0
  27. package/dist/PageLayout/PageLayout-06f4c069.css.map +1 -0
  28. package/dist/PageLayout/PageLayout.d.ts +72 -2
  29. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  30. package/dist/PageLayout/PageLayout.js +750 -1235
  31. package/dist/PageLayout/PageLayout.module.css.js +2 -2
  32. package/dist/PageLayout/usePaneWidth.d.ts +18 -5
  33. package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
  34. package/dist/PageLayout/usePaneWidth.js +125 -111
  35. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  36. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  37. package/dist/SelectPanel/SelectPanel.js +3 -1
  38. package/dist/SplitPageLayout/SplitPageLayout.d.ts +4 -1
  39. package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
  40. package/dist/SplitPageLayout/SplitPageLayout.js +54 -2
  41. package/dist/Text/Text.d.ts +1 -1
  42. package/dist/Text/Text.d.ts.map +1 -1
  43. package/dist/Text/Text.js +10 -13
  44. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +2 -0
  45. package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +1 -0
  46. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  47. package/dist/UnderlineNav/UnderlineNav.js +323 -84
  48. package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
  49. package/dist/UnderlineNav/UnderlineNavContext.d.ts +11 -4
  50. package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
  51. package/dist/UnderlineNav/UnderlineNavContext.js +3 -2
  52. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
  53. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
  54. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  55. package/dist/UnderlineNav/UnderlineNavItem.js +59 -161
  56. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -1
  57. package/dist/UnderlineNav/styles.d.ts +16 -0
  58. package/dist/UnderlineNav/styles.d.ts.map +1 -0
  59. package/dist/UnderlineNav/styles.js +19 -0
  60. package/dist/experimental/SelectPanel2/SelectPanel.js +209 -593
  61. package/dist/experimental/UnderlinePanels/UnderlinePanels-e4b325b9.css +2 -0
  62. package/dist/experimental/UnderlinePanels/UnderlinePanels-e4b325b9.css.map +1 -0
  63. package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -1
  64. package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
  65. package/dist/hooks/useRefObjectAsForwardedRef.js +10 -2
  66. package/dist/hooks/useScrollFlash.d.ts.map +1 -1
  67. package/dist/hooks/useScrollFlash.js +14 -22
  68. package/dist/hooks/useSlots.d.ts +50 -6
  69. package/dist/hooks/useSlots.d.ts.map +1 -1
  70. package/dist/hooks/useSlots.js +114 -36
  71. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css +2 -0
  72. package/dist/internal/components/UnderlineTabbedInterface-4197ee28.css.map +1 -0
  73. package/dist/internal/components/UnderlineTabbedInterface.d.ts +1 -0
  74. package/dist/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
  75. package/dist/internal/components/UnderlineTabbedInterface.js +48 -41
  76. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  77. package/generated/components.json +194 -2
  78. package/package.json +2 -2
  79. package/dist/ActionList/ActionList-f4ac3b54.css +0 -2
  80. package/dist/ActionList/ActionList-f4ac3b54.css.map +0 -1
  81. package/dist/Blankslate/Blankslate-f5a9755a.css.map +0 -1
  82. package/dist/Button/ButtonBase-781fba8b.css +0 -2
  83. package/dist/Button/ButtonBase-781fba8b.css.map +0 -1
  84. package/dist/PageLayout/PageLayout-cb491b47.css +0 -2
  85. package/dist/PageLayout/PageLayout-cb491b47.css.map +0 -1
  86. package/dist/UnderlineNav/UnderlineNav-bec9faaa.css +0 -2
  87. package/dist/UnderlineNav/UnderlineNav-bec9faaa.css.map +0 -1
  88. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css +0 -2
  89. package/dist/UnderlineNav/UnderlineNavItem-db9dc5d0.css.map +0 -1
  90. package/dist/experimental/UnderlinePanels/UnderlinePanels-133b9c25.css +0 -2
  91. package/dist/experimental/UnderlinePanels/UnderlinePanels-133b9c25.css.map +0 -1
  92. package/dist/internal/components/UnderlineTabbedInterface-6bea1152.css +0 -2
  93. package/dist/internal/components/UnderlineTabbedInterface-6bea1152.css.map +0 -1
@@ -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 };
@@ -16,10 +16,17 @@ export type UsePaneWidthOptions = {
16
16
  width: PaneWidthValue;
17
17
  minWidth: number;
18
18
  resizable: boolean;
19
- widthStorageKey: string;
19
+ /** localStorage key for persisting width. When undefined, localStorage is not used. */
20
+ widthStorageKey?: string;
20
21
  paneRef: React.RefObject<HTMLDivElement | null>;
21
22
  handleRef: React.RefObject<HTMLDivElement | null>;
22
23
  contentWrapperRef: React.RefObject<HTMLDivElement | null>;
24
+ /**
25
+ * When true, custom max width values are capped to the viewport-based max.
26
+ * This prevents overflow in non-wrapping flex layouts (e.g., Sidebar).
27
+ * @default false
28
+ */
29
+ constrainToViewport?: boolean;
23
30
  /** Callback fired when a resize operation ends (drag release or keyboard key up) */
24
31
  onResizeEnd?: (width: number) => void;
25
32
  /** Current/controlled width value in pixels (used instead of internal state; default from `width` is still used for reset) */
@@ -46,6 +53,11 @@ export type UsePaneWidthResult = {
46
53
  * Imported from CSS to ensure JS fallback matches the CSS default.
47
54
  */
48
55
  export declare const DEFAULT_MAX_WIDTH_DIFF: number;
56
+ /**
57
+ * Default value for --sidebar-max-width-diff CSS variable.
58
+ * Unlike --pane-max-width-diff, this is constant across all viewport sizes.
59
+ */
60
+ export declare const DEFAULT_SIDEBAR_MAX_WIDTH_DIFF: number;
49
61
  /**
50
62
  * Default max pane width for SSR when viewport is unknown.
51
63
  * Updated to actual value in layout effect before paint.
@@ -62,11 +74,12 @@ export declare const isCustomWidthOptions: (width: PaneWidthValue) => width is C
62
74
  export declare const isPaneWidth: (width: PaneWidthValue) => width is PaneWidth;
63
75
  export declare const getDefaultPaneWidth: (w: PaneWidthValue) => number;
64
76
  /**
65
- * Gets the --pane-max-width-diff CSS variable value from a pane element.
66
- * This value is set by CSS media queries and controls the max pane width constraint.
77
+ * Gets the max-width-diff CSS variable value from a pane element.
78
+ * For sidebars, reads --sidebar-max-width-diff (constant across viewports).
79
+ * For panes, reads --pane-max-width-diff (changes at 1280px breakpoint).
67
80
  * Note: This calls getComputedStyle which forces layout - cache the result when possible.
68
81
  */
69
- export declare function getPaneMaxWidthDiff(paneElement: HTMLElement | null): number;
82
+ export declare function getPaneMaxWidthDiff(paneElement: HTMLElement | null, isSidebar?: boolean): number;
70
83
  export declare const updateAriaValues: (handle: HTMLElement | null, values: {
71
84
  current?: number;
72
85
  min?: number;
@@ -82,6 +95,6 @@ export declare const updateAriaValues: (handle: HTMLElement | null, values: {
82
95
  * - When `onResizeEnd` is provided: Calls the callback instead of localStorage
83
96
  * - When `resizable` is `false` or `undefined`: Not resizable, no persistence
84
97
  */
85
- export declare function usePaneWidth({ width, minWidth, resizable, widthStorageKey, paneRef, handleRef, contentWrapperRef, onResizeEnd, currentWidth: controlledWidth, }: UsePaneWidthOptions): UsePaneWidthResult;
98
+ export declare function usePaneWidth({ width, minWidth, resizable, widthStorageKey, paneRef, handleRef, contentWrapperRef, constrainToViewport, onResizeEnd, currentWidth: controlledWidth, }: UsePaneWidthOptions): UsePaneWidthResult;
86
99
  export {};
87
100
  //# sourceMappingURL=usePaneWidth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePaneWidth.d.ts","sourceRoot":"","sources":["../../src/PageLayout/usePaneWidth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAOrD,KAAK,WAAW,GAAG,GAAG,MAAM,IAAI,CAAA;AAEhC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,WAAW,CAAA;IAChB,OAAO,EAAE,WAAW,CAAA;IACpB,GAAG,EAAE,WAAW,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEpD;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAAA;AAE3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC/C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjD,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACzD,oFAAoF;IACpF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,8HAA8H;IAC9H,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAA;IACpB,wDAAwD;IACxD,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC/C,iCAAiC;IACjC,YAAY,EAAE,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e,GAC9B,EAAE,mBAAmB,GAAG,kBAAkB,CAuQ1C"}
@@ -21,6 +21,12 @@ import classes from './PageLayout.module.css.js';
21
21
  */
22
22
  const DEFAULT_MAX_WIDTH_DIFF = Number(classes.paneMaxWidthDiffDefault);
23
23
 
24
+ /**
25
+ * Default value for --sidebar-max-width-diff CSS variable.
26
+ * Unlike --pane-max-width-diff, this is constant across all viewport sizes.
27
+ */
28
+ const DEFAULT_SIDEBAR_MAX_WIDTH_DIFF = Number(classes.sidebarMaxWidthDiffDefault);
29
+
24
30
  // --pane-max-width-diff changes at this breakpoint in PageLayout.module.css.
25
31
  const DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT = Number(classes.paneMaxWidthDiffBreakpoint);
26
32
  /**
@@ -61,14 +67,17 @@ const getDefaultPaneWidth = w => {
61
67
  };
62
68
 
63
69
  /**
64
- * Gets the --pane-max-width-diff CSS variable value from a pane element.
65
- * This value is set by CSS media queries and controls the max pane width constraint.
70
+ * Gets the max-width-diff CSS variable value from a pane element.
71
+ * For sidebars, reads --sidebar-max-width-diff (constant across viewports).
72
+ * For panes, reads --pane-max-width-diff (changes at 1280px breakpoint).
66
73
  * Note: This calls getComputedStyle which forces layout - cache the result when possible.
67
74
  */
68
- function getPaneMaxWidthDiff(paneElement) {
69
- if (!paneElement) return DEFAULT_MAX_WIDTH_DIFF;
70
- const value = parseInt(getComputedStyle(paneElement).getPropertyValue('--pane-max-width-diff'), 10);
71
- return value > 0 ? value : DEFAULT_MAX_WIDTH_DIFF;
75
+ function getPaneMaxWidthDiff(paneElement, isSidebar = false) {
76
+ const defaultValue = isSidebar ? DEFAULT_SIDEBAR_MAX_WIDTH_DIFF : DEFAULT_MAX_WIDTH_DIFF;
77
+ const cssVar = isSidebar ? '--sidebar-max-width-diff' : '--pane-max-width-diff';
78
+ if (!paneElement) return defaultValue;
79
+ const value = parseInt(getComputedStyle(paneElement).getPropertyValue(cssVar), 10);
80
+ return value > 0 ? value : defaultValue;
72
81
  }
73
82
 
74
83
  // Helper to update ARIA slider attributes via direct DOM manipulation
@@ -121,7 +130,7 @@ const localStoragePersister = {
121
130
  * - When `resizable` is `false` or `undefined`: Not resizable, no persistence
122
131
  */
123
132
  function usePaneWidth(t0) {
124
- const $ = c(40);
133
+ const $ = c(42);
125
134
  const {
126
135
  width,
127
136
  minWidth,
@@ -130,60 +139,64 @@ function usePaneWidth(t0) {
130
139
  paneRef,
131
140
  handleRef,
132
141
  contentWrapperRef,
142
+ constrainToViewport: t1,
133
143
  onResizeEnd,
134
144
  currentWidth: controlledWidth
135
145
  } = t0;
146
+ const constrainToViewport = t1 === undefined ? false : t1;
136
147
  const isCustomWidth = isCustomWidthOptions(width);
137
148
  const minPaneWidth = isCustomWidth ? parseInt(width.min, 10) : minWidth;
138
149
  const customMaxWidth = isCustomWidth ? parseInt(width.max, 10) : null;
139
150
  const widthStorageKeyRef = React.useRef(widthStorageKey);
140
151
  const onResizeEndRef = React.useRef(onResizeEnd);
141
- let t1;
152
+ let t2;
142
153
  if ($[0] !== onResizeEnd || $[1] !== widthStorageKey) {
143
- t1 = () => {
154
+ t2 = () => {
144
155
  widthStorageKeyRef.current = widthStorageKey;
145
156
  onResizeEndRef.current = onResizeEnd;
146
157
  };
147
158
  $[0] = onResizeEnd;
148
159
  $[1] = widthStorageKey;
149
- $[2] = t1;
160
+ $[2] = t2;
150
161
  } else {
151
- t1 = $[2];
162
+ t2 = $[2];
152
163
  }
153
- useIsomorphicLayoutEffect(t1);
154
- const maxWidthDiffRef = React.useRef(DEFAULT_MAX_WIDTH_DIFF);
155
- let t2;
156
- if ($[3] !== customMaxWidth || $[4] !== minPaneWidth) {
157
- t2 = () => {
164
+ useIsomorphicLayoutEffect(t2);
165
+ const maxWidthDiffRef = React.useRef(constrainToViewport ? DEFAULT_SIDEBAR_MAX_WIDTH_DIFF : DEFAULT_MAX_WIDTH_DIFF);
166
+ let t3;
167
+ if ($[3] !== constrainToViewport || $[4] !== customMaxWidth || $[5] !== minPaneWidth) {
168
+ t3 = () => {
169
+ const viewportWidth = window.innerWidth;
170
+ const viewportMax = viewportWidth > 0 ? Math.max(minPaneWidth, viewportWidth - maxWidthDiffRef.current) : minPaneWidth;
158
171
  if (customMaxWidth !== null) {
159
- return customMaxWidth;
172
+ return constrainToViewport ? Math.min(customMaxWidth, viewportMax) : customMaxWidth;
160
173
  }
161
- const viewportWidth = window.innerWidth;
162
- return viewportWidth > 0 ? Math.max(minPaneWidth, viewportWidth - maxWidthDiffRef.current) : minPaneWidth;
174
+ return viewportMax;
163
175
  };
164
- $[3] = customMaxWidth;
165
- $[4] = minPaneWidth;
166
- $[5] = t2;
176
+ $[3] = constrainToViewport;
177
+ $[4] = customMaxWidth;
178
+ $[5] = minPaneWidth;
179
+ $[6] = t3;
167
180
  } else {
168
- t2 = $[5];
181
+ t3 = $[6];
169
182
  }
170
- const getMaxPaneWidth = t2;
171
- let t3;
172
- if ($[6] !== width) {
173
- t3 = getDefaultPaneWidth(width);
174
- $[6] = width;
175
- $[7] = t3;
183
+ const getMaxPaneWidth = t3;
184
+ let t4;
185
+ if ($[7] !== width) {
186
+ t4 = getDefaultPaneWidth(width);
187
+ $[7] = width;
188
+ $[8] = t4;
176
189
  } else {
177
- t3 = $[7];
190
+ t4 = $[8];
178
191
  }
179
- const defaultWidth = t3;
180
- let t4;
181
- if ($[8] !== controlledWidth || $[9] !== defaultWidth || $[10] !== onResizeEnd || $[11] !== resizable || $[12] !== widthStorageKey) {
182
- t4 = () => {
192
+ const defaultWidth = t4;
193
+ let t5;
194
+ if ($[9] !== controlledWidth || $[10] !== defaultWidth || $[11] !== onResizeEnd || $[12] !== resizable || $[13] !== widthStorageKey) {
195
+ t5 = () => {
183
196
  if (typeof controlledWidth === "number") {
184
197
  return controlledWidth;
185
198
  }
186
- const shouldUseLocalStorage = onResizeEnd === undefined && resizable === true;
199
+ const shouldUseLocalStorage = onResizeEnd === undefined && resizable === true && widthStorageKey !== undefined;
187
200
  if (shouldUseLocalStorage) {
188
201
  const storedWidth = localStoragePersister.get(widthStorageKey);
189
202
  if (storedWidth !== null) {
@@ -192,16 +205,16 @@ function usePaneWidth(t0) {
192
205
  }
193
206
  return defaultWidth;
194
207
  };
195
- $[8] = controlledWidth;
196
- $[9] = defaultWidth;
197
- $[10] = onResizeEnd;
198
- $[11] = resizable;
199
- $[12] = widthStorageKey;
200
- $[13] = t4;
208
+ $[9] = controlledWidth;
209
+ $[10] = defaultWidth;
210
+ $[11] = onResizeEnd;
211
+ $[12] = resizable;
212
+ $[13] = widthStorageKey;
213
+ $[14] = t5;
201
214
  } else {
202
- t4 = $[13];
215
+ t5 = $[14];
203
216
  }
204
- const [currentWidthState, setCurrentWidthState] = React.useState(t4);
217
+ const [currentWidthState, setCurrentWidthState] = React.useState(t5);
205
218
  const [prevDefaultWidth, setPrevDefaultWidth] = React.useState(defaultWidth);
206
219
  const [prevControlledWidth, setPrevControlledWidth] = React.useState(controlledWidth);
207
220
  const controlledWidthChanged = controlledWidth !== prevControlledWidth;
@@ -224,42 +237,42 @@ function usePaneWidth(t0) {
224
237
  }
225
238
  const currentWidth = controlledWidth !== null && controlledWidth !== void 0 ? controlledWidth : currentWidthState;
226
239
  const currentWidthRef = React.useRef(currentWidth);
227
- let t5;
228
- if ($[14] !== customMaxWidth) {
229
- t5 = () => customMaxWidth !== null && customMaxWidth !== void 0 ? customMaxWidth : SSR_DEFAULT_MAX_WIDTH;
230
- $[14] = customMaxWidth;
231
- $[15] = t5;
240
+ let t6;
241
+ if ($[15] !== customMaxWidth) {
242
+ t6 = () => customMaxWidth !== null && customMaxWidth !== void 0 ? customMaxWidth : SSR_DEFAULT_MAX_WIDTH;
243
+ $[15] = customMaxWidth;
244
+ $[16] = t6;
232
245
  } else {
233
- t5 = $[15];
246
+ t6 = $[16];
234
247
  }
235
- const [maxPaneWidth, setMaxPaneWidth] = React.useState(t5);
236
- let t6;
248
+ const [maxPaneWidth, setMaxPaneWidth] = React.useState(t6);
237
249
  let t7;
238
- if ($[16] !== currentWidth) {
239
- t6 = () => {
250
+ let t8;
251
+ if ($[17] !== currentWidth) {
252
+ t7 = () => {
240
253
  currentWidthRef.current = currentWidth;
241
254
  };
242
- t7 = [currentWidth];
243
- $[16] = currentWidth;
244
- $[17] = t6;
255
+ t8 = [currentWidth];
256
+ $[17] = currentWidth;
245
257
  $[18] = t7;
258
+ $[19] = t8;
246
259
  } else {
247
- t6 = $[17];
248
260
  t7 = $[18];
261
+ t8 = $[19];
249
262
  }
250
- useIsomorphicLayoutEffect(t6, t7);
251
- let t8;
252
- if ($[19] !== width) {
253
- t8 = () => getDefaultPaneWidth(width);
254
- $[19] = width;
255
- $[20] = t8;
263
+ useIsomorphicLayoutEffect(t7, t8);
264
+ let t9;
265
+ if ($[20] !== width) {
266
+ t9 = () => getDefaultPaneWidth(width);
267
+ $[20] = width;
268
+ $[21] = t9;
256
269
  } else {
257
- t8 = $[20];
270
+ t9 = $[21];
258
271
  }
259
- const getDefaultWidth = t8;
260
- let t9;
261
- if ($[21] !== resizable) {
262
- t9 = value => {
272
+ const getDefaultWidth = t9;
273
+ let t10;
274
+ if ($[22] !== resizable) {
275
+ t10 = value => {
263
276
  const rounded = Math.round(value);
264
277
  currentWidthRef.current = rounded;
265
278
  startTransition(() => {
@@ -271,32 +284,32 @@ function usePaneWidth(t0) {
271
284
  } catch {}
272
285
  return;
273
286
  }
274
- if (resizable) {
287
+ if (resizable && widthStorageKeyRef.current) {
275
288
  localStoragePersister.save(widthStorageKeyRef.current, rounded);
276
289
  }
277
290
  };
278
- $[21] = resizable;
279
- $[22] = t9;
291
+ $[22] = resizable;
292
+ $[23] = t10;
280
293
  } else {
281
- t9 = $[22];
294
+ t10 = $[23];
282
295
  }
283
- const saveWidth = t9;
296
+ const saveWidth = t10;
284
297
  const getMaxPaneWidthRef = React.useRef(getMaxPaneWidth);
285
- let t10;
286
- if ($[23] !== getMaxPaneWidth) {
287
- t10 = () => {
298
+ let t11;
299
+ if ($[24] !== getMaxPaneWidth) {
300
+ t11 = () => {
288
301
  getMaxPaneWidthRef.current = getMaxPaneWidth;
289
302
  };
290
- $[23] = getMaxPaneWidth;
291
- $[24] = t10;
303
+ $[24] = getMaxPaneWidth;
304
+ $[25] = t11;
292
305
  } else {
293
- t10 = $[24];
306
+ t11 = $[25];
294
307
  }
295
- useIsomorphicLayoutEffect(t10);
296
- let t11;
308
+ useIsomorphicLayoutEffect(t11);
297
309
  let t12;
298
- if ($[25] !== contentWrapperRef || $[26] !== customMaxWidth || $[27] !== handleRef || $[28] !== minPaneWidth || $[29] !== paneRef || $[30] !== resizable) {
299
- t11 = () => {
310
+ let t13;
311
+ if ($[26] !== constrainToViewport || $[27] !== contentWrapperRef || $[28] !== customMaxWidth || $[29] !== handleRef || $[30] !== minPaneWidth || $[31] !== paneRef || $[32] !== resizable) {
312
+ t12 = () => {
300
313
  var _paneRef$current3;
301
314
  if (!resizable) {
302
315
  return;
@@ -308,7 +321,7 @@ function usePaneWidth(t0) {
308
321
  const crossedBreakpoint = lastViewportWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT || lastViewportWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT;
309
322
  lastViewportWidth = currentViewportWidth;
310
323
  if (crossedBreakpoint) {
311
- maxWidthDiffRef.current = getPaneMaxWidthDiff(paneRef.current);
324
+ maxWidthDiffRef.current = getPaneMaxWidthDiff(paneRef.current, constrainToViewport);
312
325
  }
313
326
  const actualMax = getMaxPaneWidthRef.current();
314
327
  (_paneRef$current = paneRef.current) === null || _paneRef$current === void 0 ? void 0 : _paneRef$current.style.setProperty("--pane-max-width", `${actualMax}px`);
@@ -329,7 +342,7 @@ function usePaneWidth(t0) {
329
342
  }
330
343
  });
331
344
  };
332
- maxWidthDiffRef.current = getPaneMaxWidthDiff(paneRef.current);
345
+ maxWidthDiffRef.current = getPaneMaxWidthDiff(paneRef.current, constrainToViewport);
333
346
  const initialMax = getMaxPaneWidthRef.current();
334
347
  setMaxPaneWidth(initialMax);
335
348
  (_paneRef$current3 = paneRef.current) === null || _paneRef$current3 === void 0 ? void 0 : _paneRef$current3.style.setProperty("--pane-max-width", `${initialMax}px`);
@@ -338,7 +351,7 @@ function usePaneWidth(t0) {
338
351
  max: initialMax,
339
352
  current: currentWidthRef.current
340
353
  });
341
- if (customMaxWidth !== null) {
354
+ if (customMaxWidth !== null && !constrainToViewport) {
342
355
  return;
343
356
  }
344
357
  let lastUpdateTime = 0;
@@ -401,23 +414,24 @@ function usePaneWidth(t0) {
401
414
  window.removeEventListener("resize", handleResize);
402
415
  };
403
416
  };
404
- t12 = [resizable, customMaxWidth, minPaneWidth, paneRef, handleRef, contentWrapperRef];
405
- $[25] = contentWrapperRef;
406
- $[26] = customMaxWidth;
407
- $[27] = handleRef;
408
- $[28] = minPaneWidth;
409
- $[29] = paneRef;
410
- $[30] = resizable;
411
- $[31] = t11;
412
- $[32] = t12;
417
+ t13 = [resizable, customMaxWidth, constrainToViewport, minPaneWidth, paneRef, handleRef, contentWrapperRef];
418
+ $[26] = constrainToViewport;
419
+ $[27] = contentWrapperRef;
420
+ $[28] = customMaxWidth;
421
+ $[29] = handleRef;
422
+ $[30] = minPaneWidth;
423
+ $[31] = paneRef;
424
+ $[32] = resizable;
425
+ $[33] = t12;
426
+ $[34] = t13;
413
427
  } else {
414
- t11 = $[31];
415
- t12 = $[32];
428
+ t12 = $[33];
429
+ t13 = $[34];
416
430
  }
417
- useIsomorphicLayoutEffect(t11, t12);
418
- let t13;
419
- if ($[33] !== currentWidth || $[34] !== getDefaultWidth || $[35] !== getMaxPaneWidth || $[36] !== maxPaneWidth || $[37] !== minPaneWidth || $[38] !== saveWidth) {
420
- t13 = {
431
+ useIsomorphicLayoutEffect(t12, t13);
432
+ let t14;
433
+ if ($[35] !== currentWidth || $[36] !== getDefaultWidth || $[37] !== getMaxPaneWidth || $[38] !== maxPaneWidth || $[39] !== minPaneWidth || $[40] !== saveWidth) {
434
+ t14 = {
421
435
  currentWidth,
422
436
  currentWidthRef,
423
437
  minPaneWidth,
@@ -426,17 +440,17 @@ function usePaneWidth(t0) {
426
440
  saveWidth,
427
441
  getDefaultWidth
428
442
  };
429
- $[33] = currentWidth;
430
- $[34] = getDefaultWidth;
431
- $[35] = getMaxPaneWidth;
432
- $[36] = maxPaneWidth;
433
- $[37] = minPaneWidth;
434
- $[38] = saveWidth;
435
- $[39] = t13;
443
+ $[35] = currentWidth;
444
+ $[36] = getDefaultWidth;
445
+ $[37] = getMaxPaneWidth;
446
+ $[38] = maxPaneWidth;
447
+ $[39] = minPaneWidth;
448
+ $[40] = saveWidth;
449
+ $[41] = t14;
436
450
  } else {
437
- t13 = $[39];
451
+ t14 = $[41];
438
452
  }
439
- return t13;
453
+ return t14;
440
454
  }
441
455
 
442
- export { ARROW_KEY_STEP, DEFAULT_MAX_WIDTH_DIFF, SSR_DEFAULT_MAX_WIDTH, defaultPaneWidth, getDefaultPaneWidth, getPaneMaxWidthDiff, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
456
+ export { ARROW_KEY_STEP, DEFAULT_MAX_WIDTH_DIFF, DEFAULT_SIDEBAR_MAX_WIDTH_DIFF, SSR_DEFAULT_MAX_WIDTH, defaultPaneWidth, getDefaultPaneWidth, getPaneMaxWidthDiff, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
@@ -64,7 +64,7 @@ type SelectPanelVariantProps = {
64
64
  onCancel: () => void;
65
65
  };
66
66
  export type SelectPanelProps = SelectPanelBaseProps & Omit<FilteredActionListProps, 'selectionVariant' | 'variant' | 'message'> & Pick<AnchoredOverlayProps, 'open' | 'height' | 'width' | 'align'> & AnchoredOverlayWrapperAnchorProps & (SelectPanelSingleSelection | SelectPanelMultiSelection) & SelectPanelVariantProps;
67
- declare function Panel({ open, onOpenChange, renderAnchor, anchorRef: externalAnchorRef, placeholder, placeholderText, inputLabel, selected, title, subtitle, onSelectedChange, filterValue: externalFilterValue, onFilterChange: externalOnFilterChange, items, footer, textInputProps, overlayProps, loading, initialLoadingType, className, height, width, id, message, notice, onCancel, variant, secondaryAction, showSelectedOptionsFirst, disableFullscreenOnNarrow, align, showSelectAll, focusPrependedElements, ...listProps }: SelectPanelProps): JSX.Element;
67
+ declare function Panel({ open, onOpenChange, renderAnchor, anchorRef: externalAnchorRef, placeholder, placeholderText, inputLabel, selected, title, subtitle, onSelectedChange, filterValue: externalFilterValue, onFilterChange: externalOnFilterChange, items, footer, textInputProps, overlayProps, loading, initialLoadingType, className, height, width, id, message, notice, onCancel, variant, secondaryAction, showSelectedOptionsFirst, disableFullscreenOnNarrow, align, showSelectAll, focusPrependedElements, virtualized, ...listProps }: SelectPanelProps): JSX.Element;
68
68
  declare const SecondaryButton: React.FC<ButtonProps>;
69
69
  declare const SecondaryLink: React.FC<LinkButtonProps & ButtonProps>;
70
70
  export declare const SelectPanel: typeof Panel & {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectPanel.d.ts","sourceRoot":"","sources":["../../src/SelectPanel/SelectPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAC1F,OAAO,KAAK,EAAE,EAA+E,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AACnH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAE5D,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,oCAAoC,CAAA;AACzF,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAGlE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAE5C,OAAO,KAAK,EAAY,SAAS,EAAC,MAAM,IAAI,CAAA;AAiB5C,OAAO,KAAK,EAAC,WAAW,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAiCjE,UA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AO,EACP,kBAA8B,EAC9B,SAAS,EACT,MAAM,EACN,KAAK,EACL,EAAE,EACF,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAoB,EACpB,eAAe,EACf,wBAA+B,EAC/B,yBAAyB,EACzB,KAAK,EACL,aAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,GAAG,SAAS,EACb,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAsvBhC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAM1C,CAAA;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,GAAG,WAAW,CAM1D,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAItB,CAAA"}
@@ -108,6 +108,7 @@ function Panel({
108
108
  align,
109
109
  showSelectAll = false,
110
110
  focusPrependedElements,
111
+ virtualized,
111
112
  ...listProps
112
113
  }) {
113
114
  var _listProps$groupMetad;
@@ -681,7 +682,8 @@ function Panel({
681
682
  },
682
683
  fullScreenOnNarrow: usingFullScreenOnNarrow,
683
684
  className: clsx(className, classes.FilteredActionList),
684
- focusPrependedElements: focusPrependedElements
685
+ focusPrependedElements: focusPrependedElements,
686
+ virtualized: virtualized
685
687
  }), footer ? /*#__PURE__*/jsx("div", {
686
688
  className: classes.Footer,
687
689
  children: footer
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps } from '../PageLayout';
2
+ import type { PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps, PageLayoutSidebarProps } from '../PageLayout';
3
3
  export type SplitPageLayoutProps = {
4
4
  className?: string;
5
5
  };
@@ -10,12 +10,15 @@ export type SplitPageLayoutContentProps = PageLayoutContentProps;
10
10
  export declare const Content: React.FC<React.PropsWithChildren<SplitPageLayoutContentProps>>;
11
11
  export type SplitPageLayoutPaneProps = PageLayoutPaneProps;
12
12
  export declare const Pane: React.FC<React.PropsWithChildren<SplitPageLayoutPaneProps>>;
13
+ export type SplitPageLayoutSidebarProps = PageLayoutSidebarProps;
14
+ export declare const Sidebar: React.FC<React.PropsWithChildren<SplitPageLayoutSidebarProps>>;
13
15
  export type SplitPageLayoutFooterProps = PageLayoutFooterProps;
14
16
  export declare const Footer: React.FC<React.PropsWithChildren<SplitPageLayoutFooterProps>>;
15
17
  export declare const SplitPageLayout: React.FC<React.PropsWithChildren<SplitPageLayoutProps>> & {
16
18
  Header: React.FC<React.PropsWithChildren<PageLayoutHeaderProps>>;
17
19
  Content: React.FC<React.PropsWithChildren<PageLayoutContentProps>>;
18
20
  Pane: React.FC<React.PropsWithChildren<PageLayoutPaneProps>>;
21
+ Sidebar: React.FC<React.PropsWithChildren<PageLayoutSidebarProps>>;
19
22
  Footer: React.FC<React.PropsWithChildren<PageLayoutFooterProps>>;
20
23
  };
21
24
  //# sourceMappingURL=SplitPageLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SplitPageLayout.d.ts","sourceRoot":"","sources":["../../src/SplitPageLayout/SplitPageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,eAAe,CAAA;AAMtB,MAAM,MAAM,oBAAoB,GAAG;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAEvD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAcxE,CAAA;AAOD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAA;AAE9D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAOhF,CAAA;AA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,CAAC,2BAA2B,CAAC,CAMlF,CAAA;AAOD,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAA;AAE1D,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,CAgB5E,CAAA;AAMD,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAA;AAEhE,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,CAOlF,CAAA;AAOD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAA;AAE9D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAOhF,CAAA;AAOD,eAAO,MAAM,eAAe;;;;;;CAM1B,CAAA"}
@@ -8,7 +8,8 @@ const Root = props => {
8
8
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
9
9
  t0 = {
10
10
  header: Header,
11
- footer: Footer
11
+ footer: Footer,
12
+ sidebar: Sidebar
12
13
  };
13
14
  $[0] = t0;
14
15
  } else {
@@ -176,6 +177,56 @@ const Pane = t0 => {
176
177
  };
177
178
  Pane.displayName = 'SplitPageLayout.Pane';
178
179
 
180
+ // ----------------------------------------------------------------------------
181
+ // SplitPageLayout.Sidebar
182
+
183
+ const Sidebar = t0 => {
184
+ const $ = c(10);
185
+ let props;
186
+ let t1;
187
+ let t2;
188
+ let t3;
189
+ if ($[0] !== t0) {
190
+ ({
191
+ position: t1,
192
+ padding: t2,
193
+ divider: t3,
194
+ ...props
195
+ } = t0);
196
+ $[0] = t0;
197
+ $[1] = props;
198
+ $[2] = t1;
199
+ $[3] = t2;
200
+ $[4] = t3;
201
+ } else {
202
+ props = $[1];
203
+ t1 = $[2];
204
+ t2 = $[3];
205
+ t3 = $[4];
206
+ }
207
+ const position = t1 === undefined ? "start" : t1;
208
+ const padding = t2 === undefined ? "normal" : t2;
209
+ const divider = t3 === undefined ? "line" : t3;
210
+ let t4;
211
+ if ($[5] !== divider || $[6] !== padding || $[7] !== position || $[8] !== props) {
212
+ t4 = /*#__PURE__*/jsx(PageLayout.Sidebar, {
213
+ position: position,
214
+ padding: padding,
215
+ divider: divider,
216
+ ...props
217
+ });
218
+ $[5] = divider;
219
+ $[6] = padding;
220
+ $[7] = position;
221
+ $[8] = props;
222
+ $[9] = t4;
223
+ } else {
224
+ t4 = $[9];
225
+ }
226
+ return t4;
227
+ };
228
+ Sidebar.displayName = 'SplitPageLayout.Sidebar';
229
+
179
230
  // ----------------------------------------------------------------------------
180
231
  // SplitPageLayout.Footer
181
232
 
@@ -226,7 +277,8 @@ const SplitPageLayout = Object.assign(Root, {
226
277
  Header,
227
278
  Content,
228
279
  Pane,
280
+ Sidebar,
229
281
  Footer
230
282
  });
231
283
 
232
- export { Content, Footer, Header, Pane, Root, SplitPageLayout };
284
+ export { Content, Footer, Header, Pane, Root, Sidebar, SplitPageLayout };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { type PolymorphicProps } from '../utils/modern-polymorphic';
3
3
  export type TextProps<As extends React.ElementType = 'span'> = PolymorphicProps<As, 'span', {
4
4
  size?: 'large' | 'medium' | 'small';
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAG9C,OAAO,EAAkB,KAAK,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,gBAAgB,CAC7E,EAAE,EACF,MAAM,EACN;IACE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,C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