@primer/react 0.0.0-20260418004050 → 0.0.0-20260420144302

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 (62) hide show
  1. package/CHANGELOG.md +28 -4
  2. package/dist/ActionList/{ActionList-8b212f46.css → ActionList-e35e912e.css} +2 -2
  3. package/dist/ActionList/ActionList-e35e912e.css.map +1 -0
  4. package/dist/ActionList/ActionList.module.css.js +1 -1
  5. package/dist/ActionMenu/ActionMenu-c4e2a589.css +2 -0
  6. package/dist/ActionMenu/ActionMenu-c4e2a589.css.map +1 -0
  7. package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
  8. package/dist/ActionMenu/ActionMenu.js +0 -5
  9. package/dist/ActionMenu/ActionMenu.module.css.js +1 -1
  10. package/dist/AnchoredOverlay/AnchoredOverlay-0c26c5f8.css +2 -0
  11. package/dist/AnchoredOverlay/AnchoredOverlay-0c26c5f8.css.map +1 -0
  12. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +5 -0
  13. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
  14. package/dist/AnchoredOverlay/AnchoredOverlay.js +61 -29
  15. package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -1
  16. package/dist/AvatarStack/AvatarStack.d.ts.map +1 -1
  17. package/dist/AvatarStack/AvatarStack.js +0 -2
  18. package/dist/Banner/Banner.d.ts.map +1 -1
  19. package/dist/Banner/Banner.js +0 -8
  20. package/dist/BaseStyles.d.ts.map +1 -1
  21. package/dist/BaseStyles.js +0 -1
  22. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  23. package/dist/Breadcrumbs/Breadcrumbs.js +51 -59
  24. package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
  25. package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -4
  26. package/dist/Overlay/Overlay-95cfd3c7.css +2 -0
  27. package/dist/Overlay/Overlay-95cfd3c7.css.map +1 -0
  28. package/dist/Overlay/Overlay.d.ts +1 -1
  29. package/dist/Overlay/Overlay.d.ts.map +1 -1
  30. package/dist/Overlay/Overlay.js +31 -36
  31. package/dist/Overlay/Overlay.module.css.js +1 -1
  32. package/dist/SelectPanel/{SelectPanel-3ac7e8d0.css → SelectPanel-00796bf3.css} +2 -2
  33. package/dist/SelectPanel/SelectPanel-00796bf3.css.map +1 -0
  34. package/dist/SelectPanel/SelectPanel.js +3 -3
  35. package/dist/SelectPanel/SelectPanel.module.css.js +1 -1
  36. package/dist/Spinner/Spinner.d.ts.map +1 -1
  37. package/dist/Spinner/Spinner.js +3 -6
  38. package/dist/Timeline/Timeline-d1c91434.css +2 -0
  39. package/dist/Timeline/{Timeline-4d67684a.css.map → Timeline-d1c91434.css.map} +1 -1
  40. package/dist/Timeline/Timeline.d.ts +4 -1
  41. package/dist/Timeline/Timeline.d.ts.map +1 -1
  42. package/dist/Timeline/Timeline.js +17 -11
  43. package/dist/Timeline/Timeline.module.css.js +1 -1
  44. package/dist/Timeline/index.d.ts +1 -1
  45. package/dist/Timeline/index.d.ts.map +1 -1
  46. package/dist/hooks/useResponsiveValue.d.ts +2 -0
  47. package/dist/hooks/useResponsiveValue.d.ts.map +1 -1
  48. package/dist/hooks/useResponsiveValue.js +2 -0
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.d.ts.map +1 -1
  51. package/generated/components.json +12 -2
  52. package/generated/hooks.json +1 -0
  53. package/package.json +2 -3
  54. package/dist/ActionList/ActionList-8b212f46.css.map +0 -1
  55. package/dist/ActionMenu/ActionMenu-58362ca7.css +0 -2
  56. package/dist/ActionMenu/ActionMenu-58362ca7.css.map +0 -1
  57. package/dist/AnchoredOverlay/AnchoredOverlay-647c7065.css +0 -2
  58. package/dist/AnchoredOverlay/AnchoredOverlay-647c7065.css.map +0 -1
  59. package/dist/Overlay/Overlay-f81a131d.css +0 -2
  60. package/dist/Overlay/Overlay-f81a131d.css.map +0 -1
  61. package/dist/SelectPanel/SelectPanel-3ac7e8d0.css.map +0 -1
  62. package/dist/Timeline/Timeline-4d67684a.css +0 -2
@@ -66,7 +66,6 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner({
66
66
  titleId
67
67
  },
68
68
  children: /*#__PURE__*/jsxs("section", {
69
- "data-component": "Banner",
70
69
  ...rest,
71
70
  "aria-labelledby": labelledBy !== null && labelledBy !== void 0 ? labelledBy : label ? undefined : titleId,
72
71
  "aria-label": labelledBy ? undefined : label,
@@ -81,13 +80,11 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner({
81
80
  "data-layout": rest.layout || 'default',
82
81
  "data-flush": flush ? '' : undefined,
83
82
  children: [/*#__PURE__*/jsx("div", {
84
- "data-component": "Banner.Icon",
85
83
  className: classes.BannerIcon,
86
84
  children: visual && supportsCustomIcon ? visual : iconForVariant[variant]
87
85
  }), /*#__PURE__*/jsxs("div", {
88
86
  className: classes.BannerContainer,
89
87
  children: [/*#__PURE__*/jsxs("div", {
90
- "data-component": "Banner.Content",
91
88
  className: classes.BannerContent,
92
89
  children: [title ? hideTitle ? /*#__PURE__*/jsx(VisuallyHidden, {
93
90
  children: /*#__PURE__*/jsx(BannerTitle, {
@@ -126,7 +123,6 @@ function BannerTitle(props) {
126
123
  ...rest,
127
124
  id: titleId,
128
125
  className: clsx(className, classes.BannerTitle),
129
- "data-component": "Banner.Title",
130
126
  "data-banner-title": "",
131
127
  children: children
132
128
  });
@@ -140,7 +136,6 @@ function BannerDescription({
140
136
  return /*#__PURE__*/jsx("div", {
141
137
  ...rest,
142
138
  className: clsx('BannerDescription', className),
143
- "data-component": "Banner.Description",
144
139
  children: children
145
140
  });
146
141
  }
@@ -151,7 +146,6 @@ function BannerActions({
151
146
  }) {
152
147
  return /*#__PURE__*/jsxs("div", {
153
148
  className: classes.BannerActions,
154
- "data-component": "Banner.Actions",
155
149
  children: [/*#__PURE__*/jsxs("div", {
156
150
  className: classes.BannerActionsContainer,
157
151
  "data-primary-action": "trailing",
@@ -170,7 +164,6 @@ const BannerPrimaryAction = /*#__PURE__*/forwardRef(({
170
164
  ...rest
171
165
  }, forwardedRef) => {
172
166
  return /*#__PURE__*/jsx(ButtonComponent, {
173
- "data-component": "Banner.PrimaryAction",
174
167
  ref: forwardedRef,
175
168
  className: clsx('BannerPrimaryAction', className),
176
169
  variant: "default",
@@ -185,7 +178,6 @@ const BannerSecondaryAction = /*#__PURE__*/forwardRef(({
185
178
  ...rest
186
179
  }, forwardedRef) => {
187
180
  return /*#__PURE__*/jsx(ButtonComponent, {
188
- "data-component": "Banner.SecondaryAction",
189
181
  ref: forwardedRef,
190
182
  className: clsx('BannerPrimaryAction', className),
191
183
  variant: "invisible",
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAK1E,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,iBAAS,UAAU,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAiB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAC,EAAE,eAAe,eAoBvG;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"BaseStyles.d.ts","sourceRoot":"","sources":["../src/BaseStyles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAK1E,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAEhD,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,iBAAS,UAAU,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,SAAiB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAC,EAAE,eAAe,eAmBvG;AAED,eAAe,UAAU,CAAA"}
@@ -72,7 +72,6 @@ function BaseStyles(t0) {
72
72
  let t5;
73
73
  if ($[14] !== Component || $[15] !== children || $[16] !== newClassName || $[17] !== rest || $[18] !== t4) {
74
74
  t5 = /*#__PURE__*/jsx(Component, {
75
- "data-component": "BaseStyles",
76
75
  className: newClassName,
77
76
  "data-portal-root": true,
78
77
  style: t4,
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,SAAS,CAAA;AAC/B,OAAO,KAA6E,MAAM,OAAO,CAAA;AAWjG,OAAO,EAAC,KAAK,gBAAgB,EAAkB,MAAM,6BAA6B,CAAA;AAElF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAA;IAC7C;;;;OAIG;IACH,OA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AAC,EAAE,CAAC,CAAA"}
@@ -10,7 +10,6 @@ import { useOnEscapePress } from '../hooks/useOnEscapePress.js';
10
10
  import { useOnOutsideClick } from '../hooks/useOnOutsideClick.js';
11
11
  import { fixedForwardRef } from '../utils/modern-polymorphic.js';
12
12
  import { jsx, jsxs } from 'react/jsx-runtime';
13
- import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
14
13
  import Details from '../Details/Details.js';
15
14
 
16
15
  const BreadcrumbsList = t0 => {
@@ -213,11 +212,6 @@ function Breadcrumbs({
213
212
  overflow = 'wrap',
214
213
  variant = 'normal'
215
214
  }) {
216
- const overflowMenuEnabled = useFeatureFlag('primer_react_breadcrumbs_overflow_menu');
217
- const wrappedChildren = React.Children.map(children, child => /*#__PURE__*/jsx("li", {
218
- className: classes.ItemWrapper,
219
- children: child
220
- }));
221
215
  const containerRef = useRef(null);
222
216
  const measureMenuButton = useCallback(element => {
223
217
  if (element) {
@@ -246,17 +240,24 @@ function Breadcrumbs({
246
240
  useEffect(() => {
247
241
  var _containerRef$current;
248
242
  const listElement = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelector('ol');
249
- if (overflowMenuEnabled && listElement && listElement.children.length > 0 && listElement.children.length === childArray.length) {
243
+ if (listElement && listElement.children.length > 0 && listElement.children.length === childArray.length) {
250
244
  const listElementArray = Array.from(listElement.children);
251
- const widths = listElementArray.map(child_0 => child_0.offsetWidth);
245
+ const widths = listElementArray.map(child => child.offsetWidth);
252
246
  setChildArrayWidths(widths);
253
247
  setRootItemWidth(listElementArray[0].offsetWidth);
254
248
  }
255
- }, [childArray, overflowMenuEnabled]);
249
+ }, [childArray]);
256
250
  const calculateOverflow = useCallback(availableWidth => {
257
251
  let eHideRoot = effectiveHideRoot;
258
252
  const MENU_BUTTON_WIDTH = menuButtonWidth;
259
- const MIN_VISIBLE_ITEMS = !eHideRoot ? 3 : 4;
253
+ const NARROW_BREAKPOINT = 544;
254
+ const isNarrow = availableWidth < NARROW_BREAKPOINT;
255
+ let MIN_VISIBLE_ITEMS = 4;
256
+ if (!eHideRoot) {
257
+ MIN_VISIBLE_ITEMS = 3;
258
+ } else if (isNarrow) {
259
+ MIN_VISIBLE_ITEMS = 1;
260
+ }
260
261
  const calculateVisibleItemsWidth = w => {
261
262
  const widths_0 = w.reduce((sum, width) => sum + width + 16, 0);
262
263
  return !eHideRoot ? rootItemWidth + widths_0 : widths_0;
@@ -297,7 +298,7 @@ function Breadcrumbs({
297
298
  };
298
299
  }, [childArray, childArrayWidths, effectiveHideRoot, hideRoot, overflow, rootItemWidth, menuButtonWidth]);
299
300
  const handleResize = useCallback(entries => {
300
- if (overflowMenuEnabled && entries[0]) {
301
+ if (entries[0]) {
301
302
  const containerWidth = entries[0].contentRect.width;
302
303
  const result = calculateOverflow(containerWidth);
303
304
  if (visibleItems.length !== result.visibleItems.length && menuItems.length !== result.menuItems.length || result.effectiveHideRoot !== effectiveHideRoot) {
@@ -306,10 +307,10 @@ function Breadcrumbs({
306
307
  setEffectiveHideRoot(result.effectiveHideRoot);
307
308
  }
308
309
  }
309
- }, [calculateOverflow, effectiveHideRoot, menuItems.length, overflowMenuEnabled, visibleItems.length]);
310
+ }, [calculateOverflow, effectiveHideRoot, menuItems.length, visibleItems.length]);
310
311
  useResizeObserver(handleResize, containerRef);
311
312
  useEffect(() => {
312
- if (overflowMenuEnabled && (overflow === 'menu' || overflow === 'menu-with-root') && childArray.length > 5 && menuItems.length === 0) {
313
+ if ((overflow === 'menu' || overflow === 'menu-with-root') && childArray.length > 5 && menuItems.length === 0) {
313
314
  var _containerRef$current2;
314
315
  const containerWidth_0 = ((_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.offsetWidth) || 800;
315
316
  const result_0 = calculateOverflow(containerWidth_0);
@@ -317,46 +318,44 @@ function Breadcrumbs({
317
318
  setMenuItems(result_0.menuItems);
318
319
  setEffectiveHideRoot(result_0.effectiveHideRoot);
319
320
  }
320
- }, [overflow, childArray, calculateOverflow, menuItems.length, overflowMenuEnabled]);
321
+ }, [overflow, childArray, calculateOverflow, menuItems.length]);
321
322
  const finalChildren = React.useMemo(() => {
322
- if (overflowMenuEnabled) {
323
- if (overflow === 'wrap' || menuItems.length === 0) {
324
- return React.Children.map(children, child_1 => /*#__PURE__*/jsx("li", {
325
- className: classes.ItemWrapper,
326
- children: child_1
327
- }));
328
- }
329
- let effectiveMenuItems = [...menuItems];
330
- // In 'menu-with-root' mode, include the root item inside the menu even if it's visible in the breadcrumbs
331
- if (!effectiveHideRoot) {
332
- effectiveMenuItems = [...menuItems.slice(1)];
333
- }
334
- const menuElement = /*#__PURE__*/jsxs("li", {
335
- className: classes.BreadcrumbsItem,
336
- children: [/*#__PURE__*/jsx(BreadcrumbsMenuItem, {
337
- ref: measureMenuButton,
338
- items: effectiveMenuItems,
339
- "aria-label": `${effectiveMenuItems.length} more breadcrumb items`
340
- }), /*#__PURE__*/jsx(ItemSeparator, {})]
341
- }, "breadcrumbs-menu");
342
- const visibleElements = visibleItems.map((child_2, index) => /*#__PURE__*/jsxs("li", {
343
- className: classes.BreadcrumbsItem,
344
- children: [child_2, /*#__PURE__*/jsx(ItemSeparator, {})]
345
- }, `visible + ${index}`));
346
- const rootElement = /*#__PURE__*/jsxs("li", {
347
- className: classes.BreadcrumbsItem,
348
- children: [rootItem, /*#__PURE__*/jsx(ItemSeparator, {})]
349
- }, `rootElement`);
350
- if (effectiveHideRoot) {
351
- // Show: [overflow menu, leaf breadcrumb]
352
- return [menuElement, ...visibleElements];
353
- } else {
354
- // Show: [root breadcrumb, overflow menu, leaf breadcrumb]
355
- return [rootElement, menuElement, ...visibleElements];
356
- }
323
+ if (overflow === 'wrap' || menuItems.length === 0) {
324
+ return React.Children.map(children, child_0 => /*#__PURE__*/jsx("li", {
325
+ className: classes.ItemWrapper,
326
+ children: child_0
327
+ }));
328
+ }
329
+ let effectiveMenuItems = [...menuItems];
330
+ // In 'menu-with-root' mode, include the root item inside the menu even if it's visible in the breadcrumbs
331
+ if (!effectiveHideRoot) {
332
+ effectiveMenuItems = [...menuItems.slice(1)];
333
+ }
334
+ const menuElement = /*#__PURE__*/jsxs("li", {
335
+ className: classes.BreadcrumbsItem,
336
+ children: [/*#__PURE__*/jsx(BreadcrumbsMenuItem, {
337
+ ref: measureMenuButton,
338
+ items: effectiveMenuItems,
339
+ "aria-label": `${effectiveMenuItems.length} more breadcrumb items`
340
+ }), /*#__PURE__*/jsx(ItemSeparator, {})]
341
+ }, "breadcrumbs-menu");
342
+ const visibleElements = visibleItems.map((child_1, index) => /*#__PURE__*/jsxs("li", {
343
+ className: classes.BreadcrumbsItem,
344
+ children: [child_1, /*#__PURE__*/jsx(ItemSeparator, {})]
345
+ }, `visible + ${index}`));
346
+ const rootElement = /*#__PURE__*/jsxs("li", {
347
+ className: classes.BreadcrumbsItem,
348
+ children: [rootItem, /*#__PURE__*/jsx(ItemSeparator, {})]
349
+ }, `rootElement`);
350
+ if (effectiveHideRoot) {
351
+ // Show: [overflow menu, leaf breadcrumb]
352
+ return [menuElement, ...visibleElements];
353
+ } else {
354
+ // Show: [root breadcrumb, overflow menu, leaf breadcrumb]
355
+ return [rootElement, menuElement, ...visibleElements];
357
356
  }
358
- }, [overflowMenuEnabled, overflow, menuItems, effectiveHideRoot, measureMenuButton, visibleItems, rootItem, children]);
359
- return overflowMenuEnabled ? /*#__PURE__*/jsx("nav", {
357
+ }, [overflow, menuItems, effectiveHideRoot, measureMenuButton, visibleItems, rootItem, children]);
358
+ return /*#__PURE__*/jsx("nav", {
360
359
  className: clsx(className, classes.BreadcrumbsBase),
361
360
  "aria-label": "Breadcrumbs",
362
361
  style: style,
@@ -366,16 +365,9 @@ function Breadcrumbs({
366
365
  children: /*#__PURE__*/jsx(BreadcrumbsList, {
367
366
  children: finalChildren
368
367
  })
369
- }) : /*#__PURE__*/jsx("nav", {
370
- className: clsx(className, classes.BreadcrumbsBase),
371
- "aria-label": "Breadcrumbs",
372
- style: style,
373
- "data-variant": variant,
374
- children: /*#__PURE__*/jsx(BreadcrumbsList, {
375
- children: wrappedChildren
376
- })
377
368
  });
378
369
  }
370
+ Breadcrumbs.displayName = "Breadcrumbs";
379
371
  const ItemSeparator = () => {
380
372
  const $ = c(1);
381
373
  let t0;
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAQ9B,CAAA"}
1
+ {"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAK9B,CAAA"}
@@ -1,13 +1,10 @@
1
1
  import { FeatureFlagScope } from './FeatureFlagScope.js';
2
2
 
3
3
  const DefaultFeatureFlags = FeatureFlagScope.create({
4
- primer_react_breadcrumbs_overflow_menu: false,
5
4
  primer_react_css_anchor_positioning: false,
6
5
  primer_react_select_panel_fullscreen_on_narrow: false,
7
6
  primer_react_select_panel_order_selected_at_top: false,
8
- primer_react_select_panel_remove_active_descendant: false,
9
- primer_react_spinner_synchronize_animations: false,
10
- primer_react_overlay_max_height_clamp_to_viewport: false
7
+ primer_react_select_panel_remove_active_descendant: false
11
8
  });
12
9
 
13
10
  export { DefaultFeatureFlags };
@@ -0,0 +1,2 @@
1
+ @keyframes prc-Overlay-overlay-appear-JpFey{0%{opacity:0}to{opacity:1}}.prc-Overlay-Overlay-jfs-T{background-color:var(--overlay-bgColor,var(--color-canvas-overlay));border-radius:var(--borderRadius-large,.75rem);box-shadow:var(--shadow-floating-small,var(--color-overlay-shadow));height:auto;max-height:100vh;max-width:calc(100vw - 2rem);min-width:192px;overflow:auto;position:absolute;width:auto}.prc-Overlay-Overlay-jfs-T:not([data-anchor-position]):not([data-variant=modal]),.prc-Overlay-Overlay-jfs-T[data-anchor-position=false]{bottom:var(--bottom,auto);right:var(--right,auto)}@media screen and (max-width:calc(48rem - 0.02px)){[data-responsive=fullscreen]:is(.prc-Overlay-Overlay-jfs-T[data-anchor-position=false],.prc-Overlay-Overlay-jfs-T:not([data-anchor-position]):not([data-variant=modal])):not([data-variant]){left:0;top:0}}:is(.prc-Overlay-Overlay-jfs-T[data-anchor-position=false],.prc-Overlay-Overlay-jfs-T:not([data-anchor-position]):not([data-variant=modal])):not([data-variant]){left:var(--left,auto);top:var(--top,auto)}.prc-Overlay-Overlay-jfs-T:focus{outline:none}@media (forced-colors:active){.prc-Overlay-Overlay-jfs-T{outline:1px solid transparent}}.prc-Overlay-Overlay-jfs-T:where([data-reflow-container=true]){max-width:calc(100vw - 2rem)}.prc-Overlay-Overlay-jfs-T:where([data-overflow-auto]){overflow:auto}.prc-Overlay-Overlay-jfs-T:where([data-overflow-hidden]){overflow:hidden}.prc-Overlay-Overlay-jfs-T:where([data-overflow-scroll]){overflow:scroll}.prc-Overlay-Overlay-jfs-T:where([data-overflow-visible]){overflow:visible}.prc-Overlay-Overlay-jfs-T:where([data-height-xsmall]){height:192px}.prc-Overlay-Overlay-jfs-T:where([data-height-small]){height:256px}.prc-Overlay-Overlay-jfs-T:where([data-height-medium]){height:320px}.prc-Overlay-Overlay-jfs-T:where([data-height-large]){height:432px}.prc-Overlay-Overlay-jfs-T:where([data-height-xlarge]){height:600px}.prc-Overlay-Overlay-jfs-T:where([data-height-auto]),.prc-Overlay-Overlay-jfs-T:where([data-height-initial]){height:auto}.prc-Overlay-Overlay-jfs-T:where([data-height-fit-content]){height:-moz-fit-content;height:fit-content}.prc-Overlay-Overlay-jfs-T:where([data-max-height-xsmall]){max-height:min(192px,100vh)}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-max-height-xsmall]){max-height:min(192px,100dvh)}}.prc-Overlay-Overlay-jfs-T:where([data-max-height-small]){max-height:min(256px,100vh)}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-max-height-small]){max-height:min(256px,100dvh)}}.prc-Overlay-Overlay-jfs-T:where([data-max-height-medium]){max-height:min(320px,100vh)}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-max-height-medium]){max-height:min(320px,100dvh)}}.prc-Overlay-Overlay-jfs-T:where([data-max-height-large]){max-height:min(432px,100vh)}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-max-height-large]){max-height:min(432px,100dvh)}}.prc-Overlay-Overlay-jfs-T:where([data-max-height-xlarge]){max-height:min(600px,100vh)}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-max-height-xlarge]){max-height:min(600px,100dvh)}}.prc-Overlay-Overlay-jfs-T:where([data-max-height-fit-content]){max-height:-moz-fit-content;max-height:fit-content}.prc-Overlay-Overlay-jfs-T:where([data-width-small]){width:256px}.prc-Overlay-Overlay-jfs-T:where([data-width-medium]){width:320px}.prc-Overlay-Overlay-jfs-T:where([data-width-large]){width:480px}.prc-Overlay-Overlay-jfs-T:where([data-width-xlarge]){width:640px}.prc-Overlay-Overlay-jfs-T:where([data-width-xxlarge]){width:960px}.prc-Overlay-Overlay-jfs-T:where([data-width-auto]){width:auto}.prc-Overlay-Overlay-jfs-T:where([data-max-width-small]){max-width:256px}.prc-Overlay-Overlay-jfs-T:where([data-max-width-medium]){max-width:320px}.prc-Overlay-Overlay-jfs-T:where([data-max-width-large]){max-width:480px}.prc-Overlay-Overlay-jfs-T:where([data-max-width-xlarge]){max-width:640px}.prc-Overlay-Overlay-jfs-T:where([data-max-width-xxlarge]){max-width:960px}.prc-Overlay-Overlay-jfs-T:where([data-visibility-visible]){visibility:visible}.prc-Overlay-Overlay-jfs-T:where([data-visibility-hidden]){visibility:hidden}@media screen and (max-width:calc(48rem - 0.02px)){.prc-Overlay-Overlay-jfs-T:where([data-responsive=fullscreen]),.prc-Overlay-Overlay-jfs-T[data-responsive=fullscreen][data-anchor-position=true]{border-radius:unset;height:100vh;left:0;margin:0;max-height:none;max-width:none;padding-bottom:env(safe-area-inset-bottom);position:fixed;top:0;width:100vw}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-responsive=fullscreen]),.prc-Overlay-Overlay-jfs-T[data-responsive=fullscreen][data-anchor-position=true]{height:100dvh}}}@supports (height:100dvh){.prc-Overlay-Overlay-jfs-T:where([data-variant=fullscreen]){height:100dvh}}@media (prefers-reduced-motion:no-preference){.prc-Overlay-Overlay-jfs-T{animation:prc-Overlay-overlay-appear-JpFey .2s cubic-bezier(.33,1,.68,1)}}
2
+ /*# sourceMappingURL=Overlay-95cfd3c7.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Overlay/Overlay.module.css.js"],"names":[],"mappings":"AAAA,4CACE,GACE,SACF,CAEA,GACE,SACF,CACF,CAEA,2BAQE,mEAAwC,CACxC,8CAAwC,CACxC,mEAAwC,CALxC,WAAY,CACZ,gBAAiB,CAJjB,4BAA6B,CAE7B,eAAgB,CAGhB,aAAc,CANd,iBAAkB,CAElB,UAyNF,CAhNE,wIAKE,yBAA2B,CAF3B,uBAkBF,CAZI,mDADF,6LAGI,MAAO,CADP,KAGJ,CADE,CAGF,iKAIE,qBAAuB,CAFvB,mBAGF,CAGF,iCACE,YACF,CAEA,8BAvCF,2BAyCI,6BAmLJ,CAlLE,CAEA,+DACE,4BACF,CAEA,uDACE,aACF,CAEA,yDACE,eACF,CAEA,yDACE,eACF,CAEA,0DACE,gBACF,CAEA,uDACE,YACF,CAEA,sDACE,YACF,CAEA,uDACE,YACF,CAEA,sDACE,YACF,CAEA,uDACE,YACF,CAEA,6GAEE,WACF,CAEA,4DACE,uBAAmB,CAAnB,kBACF,CAEA,2DACE,2BAKF,CAHE,0BAHF,2DAII,4BAEJ,CADE,CAGF,0DACE,2BAKF,CAHE,0BAHF,0DAII,4BAEJ,CADE,CAGF,2DACE,2BAKF,CAHE,0BAHF,2DAII,4BAEJ,CADE,CAGF,0DACE,2BAKF,CAHE,0BAHF,0DAII,4BAEJ,CADE,CAGF,2DACE,2BAKF,CAHE,0BAHF,2DAII,4BAEJ,CADE,CAGF,gEACE,2BAAuB,CAAvB,sBACF,CAEA,qDACE,WACF,CAEA,sDACE,WACF,CAEA,qDAEE,WACF,CAEA,sDAEE,WACF,CAEA,uDAEE,WACF,CAEA,oDACE,UACF,CAEA,yDACE,eACF,CAEA,0DACE,eACF,CAEA,yDACE,eACF,CAEA,0DACE,eACF,CAEA,2DACE,eACF,CAEA,4DACE,kBACF,CAEA,2DACE,iBACF,CAIE,mDAFF,iJAWI,mBAAoB,CAHpB,YAAa,CAHb,MAAO,CAKP,QAAS,CADT,eAAgB,CAFhB,cAAe,CAMf,0CAA2C,CAV3C,cAAe,CACf,KAAM,CAEN,WAcJ,CALI,0BAfJ,iJAiBM,aAGN,CAFI,CACF,CAGF,0BAEE,4DACE,aACF,CACF,CAGF,8CACE,2BACE,wEACF,CACF","file":"Overlay-95cfd3c7.css","sourcesContent":["@keyframes overlay-appear {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.Overlay {\n position: absolute;\n max-width: calc(100vw - 2rem);\n width: auto;\n min-width: 192px;\n height: auto;\n max-height: 100vh;\n overflow: auto;\n background-color: var(--overlay-bgColor);\n border-radius: var(--borderRadius-large);\n box-shadow: var(--shadow-floating-small);\n\n &[data-anchor-position='false'],\n &:not([data-anchor-position]):not([data-variant='modal']) {\n /* stylelint-disable-next-line primer/spacing */\n right: var(--right, auto);\n /* stylelint-disable-next-line primer/spacing */\n bottom: var(--bottom, auto);\n\n /* stylelint-disable-next-line selector-max-specificity */\n &[data-responsive='fullscreen']:not([data-variant]) {\n @media screen and (--viewportRange-narrow) {\n top: 0;\n left: 0;\n }\n }\n\n &:not([data-variant]) {\n /* stylelint-disable-next-line primer/spacing */\n top: var(--top, auto);\n /* stylelint-disable-next-line primer/spacing */\n left: var(--left, auto);\n }\n }\n\n &:focus {\n outline: none;\n }\n\n @media (forced-colors: active) {\n /* Support for Windows high contrast https://sarahmhigley.com/writing/whcm-quick-tips */\n outline: solid 1px transparent;\n }\n\n &:where([data-reflow-container='true']) {\n max-width: calc(100vw - 2rem);\n }\n\n &:where([data-overflow-auto]) {\n overflow: auto;\n }\n\n &:where([data-overflow-hidden]) {\n overflow: hidden;\n }\n\n &:where([data-overflow-scroll]) {\n overflow: scroll;\n }\n\n &:where([data-overflow-visible]) {\n overflow: visible;\n }\n\n &:where([data-height-xsmall]) {\n height: 192px;\n }\n\n &:where([data-height-small]) {\n height: 256px;\n }\n\n &:where([data-height-medium]) {\n height: 320px;\n }\n\n &:where([data-height-large]) {\n height: 432px;\n }\n\n &:where([data-height-xlarge]) {\n height: 600px;\n }\n\n &:where([data-height-auto]),\n &:where([data-height-initial]) {\n height: auto;\n }\n\n &:where([data-height-fit-content]) {\n height: fit-content;\n }\n\n &:where([data-max-height-xsmall]) {\n max-height: min(192px, 100vh);\n\n @supports (height: 100dvh) {\n max-height: min(192px, 100dvh);\n }\n }\n\n &:where([data-max-height-small]) {\n max-height: min(256px, 100vh);\n\n @supports (height: 100dvh) {\n max-height: min(256px, 100dvh);\n }\n }\n\n &:where([data-max-height-medium]) {\n max-height: min(320px, 100vh);\n\n @supports (height: 100dvh) {\n max-height: min(320px, 100dvh);\n }\n }\n\n &:where([data-max-height-large]) {\n max-height: min(432px, 100vh);\n\n @supports (height: 100dvh) {\n max-height: min(432px, 100dvh);\n }\n }\n\n &:where([data-max-height-xlarge]) {\n max-height: min(600px, 100vh);\n\n @supports (height: 100dvh) {\n max-height: min(600px, 100dvh);\n }\n }\n\n &:where([data-max-height-fit-content]) {\n max-height: fit-content;\n }\n\n &:where([data-width-small]) {\n width: 256px;\n }\n\n &:where([data-width-medium]) {\n width: 320px;\n }\n\n &:where([data-width-large]) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 480px;\n }\n\n &:where([data-width-xlarge]) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 640px;\n }\n\n &:where([data-width-xxlarge]) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 960px;\n }\n\n &:where([data-width-auto]) {\n width: auto;\n }\n\n &:where([data-max-width-small]) {\n max-width: 256px;\n }\n\n &:where([data-max-width-medium]) {\n max-width: 320px;\n }\n\n &:where([data-max-width-large]) {\n max-width: 480px;\n }\n\n &:where([data-max-width-xlarge]) {\n max-width: 640px;\n }\n\n &:where([data-max-width-xxlarge]) {\n max-width: 960px;\n }\n\n &:where([data-visibility-visible]) {\n visibility: visible;\n }\n\n &:where([data-visibility-hidden]) {\n visibility: hidden;\n }\n\n &:where([data-responsive='fullscreen']),\n &[data-responsive='fullscreen'][data-anchor-position='true'] {\n @media screen and (--viewportRange-narrow) {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n max-width: none;\n height: 100vh;\n max-height: none;\n margin: 0;\n border-radius: unset;\n /* stylelint-disable-next-line primer/spacing */\n padding-bottom: env(safe-area-inset-bottom);\n\n @supports (height: 100dvh) {\n /* fix for mobile safari (100vh clips the screen with the toolbar) */\n height: 100dvh;\n }\n }\n }\n\n @supports (height: 100dvh) {\n /* fix for mobile safari (100vh clips the screen with the toolbar) */\n &:where([data-variant='fullscreen']) {\n height: 100dvh;\n }\n }\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .Overlay {\n animation: overlay-appear 200ms cubic-bezier(0.33, 1, 0.68, 1);\n }\n}\n"]}
@@ -23,7 +23,7 @@ export declare const heightMap: {
23
23
  initial: string;
24
24
  'fit-content': string;
25
25
  };
26
- declare const widthMap: {
26
+ export declare const widthMap: {
27
27
  small: string;
28
28
  medium: string;
29
29
  large: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAe,MAAM,OAAO,CAAA;AA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oB,GAAG,KAAK,CAAC,eAAe,EAAE,cAAc,CAAC,CAAA;AAElE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,OAAO,EA6FR,8BAA8B,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAA;AAEhE,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAA;AAEhE,eAAe,OAAO,CAAA"}
@@ -20,6 +20,14 @@ const heightMap = {
20
20
  // Passing 'initial' initially applies 'auto'
21
21
  'fit-content': 'fit-content'
22
22
  };
23
+ const widthMap = {
24
+ small: '256px',
25
+ medium: '320px',
26
+ large: '480px',
27
+ xlarge: '640px',
28
+ xxlarge: '960px',
29
+ auto: 'auto'
30
+ };
23
31
  const animationDuration = 200;
24
32
  function getSlideAnimationStartingVector(anchorSide) {
25
33
  if (anchorSide !== null && anchorSide !== void 0 && anchorSide.endsWith('bottom')) {
@@ -116,7 +124,7 @@ const BaseOverlay = /*#__PURE__*/React.forwardRef(({
116
124
 
117
125
  */
118
126
  const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
119
- const $ = c(49);
127
+ const $ = c(46);
120
128
  let _PrivateDisablePortal;
121
129
  let anchorSide;
122
130
  let ignoreClickRefs;
@@ -200,7 +208,6 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
200
208
  const role = t3 === undefined ? "none" : t3;
201
209
  const visibility = t4 === undefined ? "visible" : t4;
202
210
  const width = t5 === undefined ? "auto" : t5;
203
- const featureFlagMaxHeightClampToViewport = useFeatureFlag("primer_react_overlay_max_height_clamp_to_viewport");
204
211
  const overlayRef = useRef(null);
205
212
  useRefObjectAsForwardedRef(forwardedRef, overlayRef);
206
213
  const cssAnchorPositioning = useFeatureFlag("primer_react_css_anchor_positioning");
@@ -276,18 +283,8 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
276
283
  const leftPosition = left === undefined && right === undefined ? 0 : left;
277
284
  const t11 = !preventOverflow ? true : undefined;
278
285
  let t12;
279
- if ($[33] !== featureFlagMaxHeightClampToViewport) {
280
- t12 = featureFlagMaxHeightClampToViewport ? {
281
- "data-max-height-clamp-to-viewport": ""
282
- } : {};
283
- $[33] = featureFlagMaxHeightClampToViewport;
284
- $[34] = t12;
285
- } else {
286
- t12 = $[34];
287
- }
288
- let t13;
289
- if ($[35] !== height || $[36] !== leftPosition || $[37] !== props || $[38] !== responsiveVariant || $[39] !== right || $[40] !== role || $[41] !== t11 || $[42] !== t12 || $[43] !== visibility || $[44] !== width) {
290
- t13 = /*#__PURE__*/jsx(BaseOverlay, {
286
+ if ($[33] !== height || $[34] !== leftPosition || $[35] !== props || $[36] !== responsiveVariant || $[37] !== right || $[38] !== role || $[39] !== t11 || $[40] !== visibility || $[41] !== width) {
287
+ t12 = /*#__PURE__*/jsx(BaseOverlay, {
291
288
  role: role,
292
289
  width: width,
293
290
  "data-reflow-container": t11,
@@ -297,40 +294,38 @@ const Overlay = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
297
294
  height: height,
298
295
  visibility: visibility,
299
296
  "data-responsive": responsiveVariant,
300
- ...t12,
301
297
  ...props
302
298
  });
303
- $[35] = height;
304
- $[36] = leftPosition;
305
- $[37] = props;
306
- $[38] = responsiveVariant;
307
- $[39] = right;
308
- $[40] = role;
309
- $[41] = t11;
299
+ $[33] = height;
300
+ $[34] = leftPosition;
301
+ $[35] = props;
302
+ $[36] = responsiveVariant;
303
+ $[37] = right;
304
+ $[38] = role;
305
+ $[39] = t11;
306
+ $[40] = visibility;
307
+ $[41] = width;
310
308
  $[42] = t12;
311
- $[43] = visibility;
312
- $[44] = width;
313
- $[45] = t13;
314
309
  } else {
315
- t13 = $[45];
310
+ t12 = $[42];
316
311
  }
317
- const overlayContent = t13;
312
+ const overlayContent = t12;
318
313
  if (_PrivateDisablePortal && cssAnchorPositioning) {
319
314
  return overlayContent;
320
315
  }
321
- let t14;
322
- if ($[46] !== overlayContent || $[47] !== portalContainerName) {
323
- t14 = /*#__PURE__*/jsx(Portal, {
316
+ let t13;
317
+ if ($[43] !== overlayContent || $[44] !== portalContainerName) {
318
+ t13 = /*#__PURE__*/jsx(Portal, {
324
319
  containerName: portalContainerName,
325
320
  children: overlayContent
326
321
  });
327
- $[46] = overlayContent;
328
- $[47] = portalContainerName;
329
- $[48] = t14;
322
+ $[43] = overlayContent;
323
+ $[44] = portalContainerName;
324
+ $[45] = t13;
330
325
  } else {
331
- t14 = $[48];
326
+ t13 = $[45];
332
327
  }
333
- return t14;
328
+ return t13;
334
329
  });
335
330
 
336
- export { BaseOverlay, Overlay as default, heightMap };
331
+ export { BaseOverlay, Overlay as default, heightMap, widthMap };
@@ -1,4 +1,4 @@
1
- import './Overlay-f81a131d.css';
1
+ import './Overlay-95cfd3c7.css';
2
2
 
3
3
  var classes = {"Overlay":"prc-Overlay-Overlay-jfs-T","overlay-appear":"prc-Overlay-overlay-appear-JpFey"};
4
4
 
@@ -1,2 +1,2 @@
1
- .prc-SelectPanel-Overlay-tEbxh{--max-height:0}.prc-SelectPanel-Wrapper-OD-e6{display:flex;flex-direction:column;height:inherit;max-height:inherit}.prc-SelectPanel-Header-p2DSz{align-items:flex-start;display:flex;justify-content:space-between;padding-left:var(--base-size-8,.5rem);padding-right:var(--base-size-8,.5rem);padding-top:var(--base-size-8,.5rem)}.prc-SelectPanel-Header-p2DSz:where([data-variant=fullscreen]){flex-shrink:0;min-height:40px}.prc-SelectPanel-Title-4cax5{font-size:var(--text-body-size-medium,.875rem);margin-left:var(--base-size-8,.5rem)}.prc-SelectPanel-Wrapper-OD-e6[data-variant=modal] .prc-SelectPanel-Title-4cax5{margin-top:var(--base-size-8,.5rem)}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-Wrapper-OD-e6[data-variant=anchored] .prc-SelectPanel-Title-4cax5{margin-top:var(--base-size-8,.5rem)}}.prc-SelectPanel-Subtitle-5L2Fr{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel-Notice-zIRk9,.prc-SelectPanel-Subtitle-5L2Fr{margin-left:var(--base-size-8,.5rem)}.prc-SelectPanel-Notice-zIRk9{margin-right:var(--base-size-8,.5rem);margin-top:var(--base-size-4,.25rem)}.prc-SelectPanel-Notice-zIRk9 a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel-Notice-zIRk9:where([data-variant=info]){background-color:var(--bgColor-accent-muted,var(--color-accent-subtle));border-color:var(--borderColor-accent-muted,var(--color-accent-muted));color:var(--fgColor-accent,var(--color-accent-fg))}.prc-SelectPanel-Notice-zIRk9:where([data-variant=warning]){background-color:var(--bgColor-attention-muted,var(--color-attention-subtle));border-color:var(--borderColor-attention-muted,var(--color-attention-muted));color:var(--fgColor-attention,var(--color-attention-fg))}.prc-SelectPanel-Notice-zIRk9:where([data-variant=critical]){background-color:var(--bgColor-danger-muted,var(--color-danger-subtle));border-color:var(--borderColor-danger-muted,var(--color-danger-muted));color:var(--fgColor-danger,var(--color-danger-fg))}.prc-SelectPanel-Footer-Rxa8K{border-top:var(--borderWidth-thin,.0625rem) solid;border-top-color:var(--borderColor-default,var(--color-border-default));display:flex;padding:var(--base-size-8,.5rem)}.prc-SelectPanel-FilteredActionList--VY7U{height:inherit;max-height:inherit}.prc-SelectPanel-Message-4RsG4{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:var(--base-size-4,.25rem);height:100%;justify-content:center;padding:var(--base-size-24,1.5rem);text-align:center}.prc-SelectPanel-Message-4RsG4 a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel-MessageTitle-mTq0E{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-semibold,600)}.prc-SelectPanel-MessageBody-zVnxH{align-items:center;color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel-MessageIcon-gpYuP{color:var(--fgColor-attention,var(--color-attention-fg));margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel-MessageIcon-gpYuP:where([data-variant=error]){color:var(--fgColor-danger,var(--color-danger-fg))}.prc-SelectPanel-MessageAction-zx88f{margin-top:var(--base-size-8,.5rem)}.prc-SelectPanel-ResponsiveCloseButton-uA7Py{display:inline-grid}.prc-SelectPanel-ResponsiveFooter-qnA4v{align-items:center;display:none;justify-content:center;padding:var(--base-size-8,.5rem)}.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-display-footer=always]){display:flex}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-display-footer=only-small]){display:flex}}.prc-SelectPanel-ResponsiveFooter-qnA4v[data-stretch-secondary-action=never]{justify-content:space-between}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-secondary-action=only-big]){justify-content:space-between}}.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-save-button=only-small]){justify-content:space-between}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-save-button=only-small]){justify-content:center}}.prc-SelectPanel-SecondaryAction-AFlHt{align-items:stretch;display:flex;flex-grow:1;justify-content:center}.prc-SelectPanel-SecondaryAction-AFlHt[data-stretch-secondary-action=never]{align-items:flex-start;flex-grow:0}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-SecondaryAction-AFlHt:where([data-stretch-secondary-action=only-big]){align-items:flex-start;flex-grow:0}}.prc-SelectPanel-CancelSaveButtons-DvvZo{display:flex;gap:var(--stack-gap-condensed,.5rem);justify-content:flex-end}.prc-SelectPanel-ResponsiveCancelSaveButtons-e8Csd{display:none}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveCancelSaveButtons-e8Csd{display:flex;gap:var(--stack-gap-condensed,.5rem);justify-content:flex-end}}.prc-SelectPanel-ResponsiveSaveButton-6If1k{display:none}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveSaveButton-6If1k{display:flex}}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveSaveButton-6If1k:where([data-stretch-save-button=only-small]){flex-grow:1}}.prc-SelectPanel-Backdrop-ukvA6{background-color:var(--overlay-backdrop-bgColor,var(--color-overlay-backdrop));inset:0;position:absolute}.prc-SelectPanel-TextInput--Qqkq{margin:var(--base-size-8,.5rem)}
2
- /*# sourceMappingURL=SelectPanel-3ac7e8d0.css.map */
1
+ .prc-SelectPanel-Overlay-tEbxh{--max-height:0}.prc-SelectPanel-Wrapper-OD-e6{display:flex;flex-direction:column;height:inherit;max-height:inherit}.prc-SelectPanel-Header-p2DSz{align-items:flex-start;display:flex;justify-content:space-between;padding-left:var(--base-size-8,.5rem);padding-right:var(--base-size-8,.5rem);padding-top:var(--base-size-8,.5rem)}.prc-SelectPanel-Header-p2DSz:where([data-variant=fullscreen]){flex-shrink:0;min-height:40px}.prc-SelectPanel-Title-4cax5{font-size:var(--text-body-size-medium,.875rem);margin-left:var(--base-size-8,.5rem)}.prc-SelectPanel-Wrapper-OD-e6[data-variant=modal] .prc-SelectPanel-Title-4cax5{margin-top:var(--base-size-8,.5rem)}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-Wrapper-OD-e6[data-variant=anchored] .prc-SelectPanel-Title-4cax5{margin-top:var(--base-size-8,.5rem)}}.prc-SelectPanel-Subtitle-5L2Fr{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem)}.prc-SelectPanel-Notice-zIRk9,.prc-SelectPanel-Subtitle-5L2Fr{margin-left:var(--base-size-8,.5rem)}.prc-SelectPanel-Notice-zIRk9{margin-right:var(--base-size-8,.5rem);margin-top:var(--base-size-4,.25rem)}.prc-SelectPanel-Notice-zIRk9 a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel-Notice-zIRk9:where([data-variant=info]){background-color:var(--bgColor-accent-muted,var(--color-accent-subtle));border-color:var(--borderColor-accent-muted,var(--color-accent-muted));color:var(--fgColor-accent,var(--color-accent-fg))}.prc-SelectPanel-Notice-zIRk9:where([data-variant=warning]){background-color:var(--bgColor-attention-muted,var(--color-attention-subtle));border-color:var(--borderColor-attention-muted,var(--color-attention-muted));color:var(--fgColor-attention,var(--color-attention-fg))}.prc-SelectPanel-Notice-zIRk9:where([data-variant=critical]){background-color:var(--bgColor-danger-muted,var(--color-danger-subtle));border-color:var(--borderColor-danger-muted,var(--color-danger-muted));color:var(--fgColor-danger,var(--color-danger-fg))}.prc-SelectPanel-Footer-Rxa8K{border-top:var(--borderWidth-thin,.0625rem) solid;border-top-color:var(--borderColor-default,var(--color-border-default));display:flex;padding:var(--base-size-8,.5rem)}.prc-SelectPanel-FilteredActionList--VY7U{height:inherit;max-height:inherit}.prc-SelectPanel-Message-4RsG4{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:var(--base-size-4,.25rem);height:100%;justify-content:center;padding:var(--base-size-24,1.5rem);text-align:center}.prc-SelectPanel-Message-4RsG4 a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.prc-SelectPanel-MessageTitle-mTq0E{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-semibold,600)}.prc-SelectPanel-MessageBody-zVnxH{align-items:center;color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);gap:var(--stack-gap-condensed,.5rem)}.prc-SelectPanel-MessageIcon-gpYuP{color:var(--fgColor-attention,var(--color-attention-fg));margin-bottom:var(--base-size-8,.5rem)}.prc-SelectPanel-MessageIcon-gpYuP:where([data-variant=error]){color:var(--fgColor-danger,var(--color-danger-fg))}.prc-SelectPanel-MessageAction-zx88f{margin-top:var(--base-size-8,.5rem)}.prc-SelectPanel-ResponsiveCloseButton-uA7Py{display:inline-grid}.prc-SelectPanel-ResponsiveFooter-qnA4v{align-items:center;display:none;justify-content:center;padding:var(--base-size-8,.5rem)}.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-display-footer=always]){display:flex}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-display-footer=only-small]){display:flex}}.prc-SelectPanel-ResponsiveFooter-qnA4v[data-stretch-secondary-action=never]{justify-content:space-between}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-secondary-action=only-big]){justify-content:space-between}}.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-save-button=only-small]){justify-content:space-between}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveFooter-qnA4v:where([data-stretch-save-button=only-small]){justify-content:center}}.prc-SelectPanel-SecondaryAction-AFlHt{align-items:stretch;display:flex;flex-grow:1;justify-content:center}.prc-SelectPanel-SecondaryAction-AFlHt[data-stretch-secondary-action=never]{align-items:flex-start;flex-grow:0}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-SecondaryAction-AFlHt:where([data-stretch-secondary-action=only-big]){align-items:flex-start;flex-grow:0}}.prc-SelectPanel-CancelSaveButtons-DvvZo{display:flex;gap:var(--stack-gap-condensed,.5rem);justify-content:flex-end}.prc-SelectPanel-ResponsiveCancelSaveButtons-e8Csd{display:none}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveCancelSaveButtons-e8Csd{display:flex;gap:var(--stack-gap-condensed,.5rem);justify-content:flex-end}}.prc-SelectPanel-ResponsiveSaveButton-6If1k{display:none}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveSaveButton-6If1k{display:flex}}@media screen and (max-width:calc(48rem - 0.02px)){.prc-SelectPanel-ResponsiveSaveButton-6If1k:where([data-stretch-save-button=only-small]){flex-grow:1}}.prc-SelectPanel-Backdrop-ukvA6{background-color:var(--overlay-backdrop-bgColor,var(--color-overlay-backdrop));inset:0;position:fixed}.prc-SelectPanel-TextInput--Qqkq{margin:var(--base-size-8,.5rem)}
2
+ /*# sourceMappingURL=SelectPanel-00796bf3.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/SelectPanel/SelectPanel.module.css.js"],"names":[],"mappings":"AAAA,+BAEE,cACF,CAEA,+BACE,YAAa,CAGb,qBAAsB,CAFtB,cAAe,CACf,kBAEF,CAEA,8BAGE,sBAAuB,CAFvB,YAAa,CACb,6BAA8B,CAI9B,qCAAgC,CADhC,sCAAiC,CADjC,oCAQF,CAJE,+DAEE,aAAc,CADd,eAEF,CAGF,6BAEE,8CAAuC,CADvC,oCAEF,CAEA,gFACE,mCAEF,CASE,mDADF,mFAEI,mCAEJ,CADE,CAGF,gCAGE,gDAA2B,CAD3B,4CAEF,CAEA,8DALE,oCASF,CAJA,8BAEE,qCAAgC,CADhC,oCAGF,CAEA,gCACE,aAAc,CACd,iCAA0B,CAA1B,yBACF,CAEA,yDAEE,uEAA6C,CAC7C,sEAA6C,CAF7C,kDAGF,CAEA,4DAEE,6EAAgD,CAChD,4EAAgD,CAFhD,wDAGF,CAEA,6DAEE,uEAA6C,CAC7C,sEAA6C,CAF7C,kDAGF,CAEA,8BAGE,iDAAyC,CACzC,uEAA4C,CAH5C,YAAa,CACb,gCAGF,CAEA,0CAGE,cAAe,CACf,kBACF,CAEA,+BAOE,kBAAmB,CANnB,YAAa,CAIb,qBAAsB,CAGtB,WAAY,CACZ,6BAAuB,CAPvB,WAAY,CAIZ,sBAAuB,CAHvB,kCAA4B,CAC5B,iBAWF,CAJE,iCACE,aAAc,CACd,iCAA0B,CAA1B,yBACF,CAGF,oCACE,8CAAuC,CACvC,gDACF,CAEA,mCAGE,kBAAmB,CADnB,gDAA2B,CAD3B,4CAAsC,CAGtC,oCACF,CAEA,mCAEE,wDAA+B,CAD/B,sCAMF,CAHE,+DACE,kDACF,CAGF,qCACE,mCACF,CAEA,6CACE,mBACF,CAEA,wCAEE,kBAAmB,CADnB,YAAa,CAGb,sBAAuB,CADvB,gCA8BF,CA3BE,4EACE,YACF,CAGE,mDADF,gFAEI,YAEJ,CADE,CAGF,6EACE,6BACF,CAGE,mDADF,wFAEI,6BAEJ,CADE,CAGF,qFACE,6BAKF,CAHE,mDAHF,qFAII,sBAEJ,CADE,CAIJ,uCAEE,mBAAoB,CACpB,YAAa,CAFb,WAAY,CAGZ,sBAaF,CAXE,4EAEE,sBAAuB,CADvB,WAEF,CAGE,mDADF,uFAGI,sBAAuB,CADvB,WAGJ,CADE,CAIJ,yCACE,YAAa,CACb,oCAA+B,CAC/B,wBACF,CAEA,mDACE,YAOF,CALE,mDAHF,mDAII,YAAa,CACb,oCAA+B,CAC/B,wBAEJ,CADE,CAGF,4CACE,YAWF,CATE,mDAHF,4CAII,YAQJ,CAPE,CAGE,mDADF,yFAEI,WAEJ,CADE,CAIJ,gCAGE,8EAAiD,CADjD,OAAQ,CADR,cAGF,CAEA,iCACE,+BACF","file":"SelectPanel-00796bf3.css","sourcesContent":[".Overlay {\n /* CSS variables values are passed in via styles */\n --max-height: 0;\n}\n\n.Wrapper {\n display: flex;\n height: inherit;\n max-height: inherit;\n flex-direction: column;\n}\n\n.Header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n padding-top: var(--base-size-8);\n padding-right: var(--base-size-8);\n padding-left: var(--base-size-8);\n\n &:where([data-variant='fullscreen']) {\n min-height: 40px;\n flex-shrink: 0;\n }\n}\n\n.Title {\n margin-left: var(--base-size-8);\n font-size: var(--text-body-size-medium);\n}\n\n.Wrapper[data-variant='modal'] .Title {\n margin-top: var(--base-size-8);\n /* styling specific to the modal variant */\n}\n\n/*\n * Align SelectPanel header text with AnchoredOverlay close button\n * \n * Ensures the title properly aligns with the close button position\n * in anchor variant on narrow viewports.\n */\n.Wrapper[data-variant='anchored'] .Title {\n @media screen and (--viewportRange-narrow) {\n margin-top: var(--base-size-8);\n }\n}\n\n.Subtitle {\n margin-left: var(--base-size-8);\n font-size: var(--text-body-size-small);\n color: var(--fgColor-muted);\n}\n\n.Notice {\n margin-top: var(--base-size-4);\n margin-right: var(--base-size-8);\n margin-left: var(--base-size-8);\n}\n\n.Notice a {\n color: inherit;\n text-decoration: underline;\n}\n\n.Notice:where([data-variant='info']) {\n color: var(--fgColor-accent);\n background-color: var(--bgColor-accent-muted);\n border-color: var(--borderColor-accent-muted);\n}\n\n.Notice:where([data-variant='warning']) {\n color: var(--fgColor-attention);\n background-color: var(--bgColor-attention-muted);\n border-color: var(--borderColor-attention-muted);\n}\n\n.Notice:where([data-variant='critical']) {\n color: var(--fgColor-danger);\n background-color: var(--bgColor-danger-muted);\n border-color: var(--borderColor-danger-muted);\n}\n\n.Footer {\n display: flex;\n padding: var(--base-size-8);\n border-top: var(--borderWidth-thin) solid;\n border-top-color: var(--borderColor-default);\n}\n\n.FilteredActionList {\n /* inheriting height and maxHeight ensures that the FilteredActionList is never taller\n than the Overlay (which would break scrolling the items) */\n height: inherit;\n max-height: inherit;\n}\n\n.Message {\n display: flex;\n height: 100%;\n padding: var(--base-size-24);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n gap: var(--base-size-4);\n\n a {\n color: inherit;\n text-decoration: underline;\n }\n}\n\n.MessageTitle {\n font-size: var(--text-body-size-medium);\n font-weight: var(--base-text-weight-semibold);\n}\n\n.MessageBody {\n font-size: var(--text-body-size-small);\n color: var(--fgColor-muted);\n align-items: center;\n gap: var(--stack-gap-condensed);\n}\n\n.MessageIcon {\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-attention);\n\n &:where([data-variant='error']) {\n color: var(--fgColor-danger);\n }\n}\n\n.MessageAction {\n margin-top: var(--base-size-8);\n}\n\n.ResponsiveCloseButton {\n display: inline-grid;\n}\n\n.ResponsiveFooter {\n display: none;\n align-items: center;\n padding: var(--base-size-8);\n justify-content: center;\n\n &:where([data-display-footer='always']) {\n display: flex;\n }\n\n &:where([data-display-footer='only-small']) {\n @media screen and (--viewportRange-narrow) {\n display: flex;\n }\n }\n\n &[data-stretch-secondary-action='never'] {\n justify-content: space-between;\n }\n\n &:where([data-stretch-secondary-action='only-big']) {\n @media screen and (--viewportRange-narrow) {\n justify-content: space-between;\n }\n }\n\n &:where([data-stretch-save-button='only-small']) {\n justify-content: space-between;\n\n @media screen and (--viewportRange-narrow) {\n justify-content: center;\n }\n }\n}\n\n.SecondaryAction {\n flex-grow: 1;\n align-items: stretch;\n display: flex;\n justify-content: center;\n\n &[data-stretch-secondary-action='never'] {\n flex-grow: 0;\n align-items: flex-start;\n }\n\n &:where([data-stretch-secondary-action='only-big']) {\n @media screen and (--viewportRange-narrow) {\n flex-grow: 0;\n align-items: flex-start;\n }\n }\n}\n\n.CancelSaveButtons {\n display: flex;\n gap: var(--stack-gap-condensed);\n justify-content: flex-end;\n}\n\n.ResponsiveCancelSaveButtons {\n display: none;\n\n @media screen and (--viewportRange-narrow) {\n display: flex;\n gap: var(--stack-gap-condensed);\n justify-content: flex-end;\n }\n}\n\n.ResponsiveSaveButton {\n display: none;\n\n @media screen and (--viewportRange-narrow) {\n display: flex;\n }\n\n &:where([data-stretch-save-button='only-small']) {\n @media screen and (--viewportRange-narrow) {\n flex-grow: 1;\n }\n }\n}\n\n.Backdrop {\n position: fixed;\n inset: 0;\n background-color: var(--overlay-backdrop-bgColor);\n}\n\n.TextInput {\n margin: var(--base-size-8);\n}\n"]}
@@ -249,9 +249,9 @@ function Panel({
249
249
  }
250
250
  }, [items, itemsInViewSet, onSelectedChange, selected]);
251
251
 
252
- // disable body scroll when the panel is open on narrow screens
252
+ // disable body scroll when the panel is open in modal mode or on narrow screens
253
253
  useEffect(() => {
254
- if (open && isNarrowScreenSize && usingFullScreenOnNarrow) {
254
+ if (open && (variant === 'modal' || isNarrowScreenSize && usingFullScreenOnNarrow)) {
255
255
  const bodyOverflowStyle = document.body.style.overflow || '';
256
256
  // If the body is already set to overflow: hidden, it likely means
257
257
  // that there is already a modal open. In that case, we should bail
@@ -264,7 +264,7 @@ function Panel({
264
264
  document.body.style.overflow = bodyOverflowStyle;
265
265
  };
266
266
  }
267
- }, [isNarrowScreenSize, open, usingFullScreenOnNarrow]);
267
+ }, [isNarrowScreenSize, open, usingFullScreenOnNarrow, variant]);
268
268
  useEffect(() => {
269
269
  if (open) {
270
270
  if (items.length === 0 && !(isLoading || loading)) {
@@ -1,4 +1,4 @@
1
- import './SelectPanel-3ac7e8d0.css';
1
+ import './SelectPanel-00796bf3.css';
2
2
 
3
3
  var classes = {"Overlay":"prc-SelectPanel-Overlay-tEbxh","Wrapper":"prc-SelectPanel-Wrapper-OD-e6","Header":"prc-SelectPanel-Header-p2DSz","Title":"prc-SelectPanel-Title-4cax5","Subtitle":"prc-SelectPanel-Subtitle-5L2Fr","Notice":"prc-SelectPanel-Notice-zIRk9","Footer":"prc-SelectPanel-Footer-Rxa8K","FilteredActionList":"prc-SelectPanel-FilteredActionList--VY7U","Message":"prc-SelectPanel-Message-4RsG4","MessageTitle":"prc-SelectPanel-MessageTitle-mTq0E","MessageBody":"prc-SelectPanel-MessageBody-zVnxH","MessageIcon":"prc-SelectPanel-MessageIcon-gpYuP","MessageAction":"prc-SelectPanel-MessageAction-zx88f","ResponsiveCloseButton":"prc-SelectPanel-ResponsiveCloseButton-uA7Py","ResponsiveFooter":"prc-SelectPanel-ResponsiveFooter-qnA4v","SecondaryAction":"prc-SelectPanel-SecondaryAction-AFlHt","CancelSaveButtons":"prc-SelectPanel-CancelSaveButtons-DvvZo","ResponsiveCancelSaveButtons":"prc-SelectPanel-ResponsiveCancelSaveButtons-e8Csd","ResponsiveSaveButton":"prc-SelectPanel-ResponsiveSaveButton-6If1k","Backdrop":"prc-SelectPanel-Backdrop-ukvA6","TextInput":"prc-SelectPanel-TextInput--Qqkq"};
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAC,kBAAkB,EAAC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EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;CAC5C,GAAG,kBAAkB,CAAA;AAEtB,iBAAS,OAAO,CAAC,EACf,IAAI,EAAE,OAAkB,EACxB,MAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,KAAK,EACL,KAAa,EACb,GAAG,KAAK,EACT,EAAE,YAAY,4BA+Dd;kBAvEQ,OAAO;;;AAwFhB,eAAe,OAAO,CAAA"}
@@ -4,7 +4,6 @@ import { useState, useEffect } from 'react';
4
4
  import classes from './Spinner.module.css.js';
5
5
  import { useMedia } from '../hooks/useMedia.js';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
- import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
8
7
  import { useId } from '../hooks/useId.js';
9
8
  import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
10
9
 
@@ -54,7 +53,6 @@ function Spinner(t0) {
54
53
  const sizeKey = t1 === undefined ? "medium" : t1;
55
54
  const srText = t2 === undefined ? "Loading" : t2;
56
55
  const delay = t3 === undefined ? false : t3;
57
- const syncAnimationsEnabled = useFeatureFlag("primer_react_spinner_synchronize_animations");
58
56
  const noMotionPreference = useMedia("(prefers-reduced-motion: no-preference)", false);
59
57
  const size = sizeMap[sizeKey];
60
58
  const hasHiddenLabel = srText !== null && ariaLabel === undefined;
@@ -102,14 +100,13 @@ function Spinner(t0) {
102
100
  if (!isVisible) {
103
101
  return null;
104
102
  }
105
- const shouldSync = syncAnimationsEnabled && noMotionPreference;
106
103
  let t8;
107
- if ($[13] !== shouldSync || $[14] !== style || $[15] !== syncDelay) {
108
- t8 = shouldSync ? {
104
+ if ($[13] !== noMotionPreference || $[14] !== style || $[15] !== syncDelay) {
105
+ t8 = noMotionPreference ? {
109
106
  ...style,
110
107
  animationDelay: `${syncDelay}ms`
111
108
  } : style;
112
- $[13] = shouldSync;
109
+ $[13] = noMotionPreference;
113
110
  $[14] = style;
114
111
  $[15] = syncDelay;
115
112
  $[16] = t8;
@@ -0,0 +1,2 @@
1
+ .prc-Timeline-Timeline-awSoC{display:flex;flex-direction:column}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child{padding-top:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=start]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]):before{top:var(--base-size-12,.75rem)}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child{padding-bottom:0}:is(:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=end]),.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar=both])) .prc-Timeline-TimelineItem-QwDVH:last-child):where([data-condensed]):before{height:var(--base-size-12,.75rem)}.prc-Timeline-TimelineItem-QwDVH{display:flex;margin-left:var(--base-size-16,1rem);padding:var(--base-size-16,1rem) 0;position:relative}.prc-Timeline-TimelineItem-QwDVH:before{background-color:var(--borderColor-muted,var(--color-border-muted));bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:2px}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]){padding-bottom:0;padding-top:var(--base-size-4,.25rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]):last-child{padding-bottom:var(--base-size-16,1rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineBadge-u0qSm{background-color:var(--bgColor-default,var(--color-canvas-default));border:0;color:var(--fgColor-muted,var(--color-fg-muted));height:16px;margin-bottom:var(--base-size-8,.5rem);margin-top:var(--base-size-8,.5rem)}.prc-Timeline-TimelineBadgeWrapper-SZw4k{position:relative;z-index:1}.prc-Timeline-TimelineBadge-u0qSm{align-items:center;background-color:var(--timelineBadge-bgColor,var(--color-timeline-badge-bg));border-color:var(--bgColor-default,var(--color-canvas-default));border-radius:50%;border-style:solid;border-width:var(--borderWidth-thick,.125rem);color:var(--fgColor-muted,var(--color-fg-muted));display:flex;flex-shrink:0;height:32px;justify-content:center;margin-left:-15px;margin-right:var(--base-size-8,.5rem);overflow:hidden;width:32px}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant]){border-color:transparent;color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=accent]){background-color:var(--bgColor-accent-emphasis,var(--color-accent-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=success]){background-color:var(--bgColor-success-emphasis,var(--color-success-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=attention]){background-color:var(--bgColor-attention-emphasis,var(--color-attention-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=severe]){background-color:var(--bgColor-severe-emphasis,var(--color-severe-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=danger]){background-color:var(--bgColor-danger-emphasis,var(--color-danger-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=done]){background-color:var(--bgColor-done-emphasis,var(--color-done-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=open]){background-color:var(--bgColor-open-emphasis,var(--color-open-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=closed]){background-color:var(--bgColor-closed-emphasis,var(--color-closed-emphasis))}.prc-Timeline-TimelineBadge-u0qSm:where([data-variant=sponsors]){background-color:var(--bgColor-sponsors-emphasis,var(--color-sponsors-emphasis))}.prc-Timeline-TimelineBody-tjOtb{color:var(--fgColor-muted,var(--color-fg-muted));flex:auto;font-size:var(--text-body-size-medium,.875rem);margin-top:calc(var(--base-size-4,.25rem) + 1px);max-width:100%;min-width:0}.prc-Timeline-TimelineBreak-X8eti{background-color:var(--bgColor-default,var(--color-canvas-default));border:0;border-top:var(--borderWidth-thicker,.25rem) solid var(--borderColor-default,var(--color-border-default));height:var(--base-size-24,1.5rem);margin:0;margin-bottom:calc(var(--base-size-16,1rem)*-1);margin-left:0;position:relative;z-index:1}.prc-Timeline-TimelineBreak-X8eti:has(+[data-condensed]){margin-bottom:calc(var(--base-size-12,.75rem)*-1)}
2
+ /*# sourceMappingURL=Timeline-d1c91434.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Timeline/Timeline.module.css.js"],"names":[],"mappings":"AAAA,6BACE,YAAa,CACb,qBAuBF,CAnBI,6KACE,aAKF,CAHE,iNACE,8BACF,CAMF,0KACE,gBAKF,CAHE,8MACE,iCACF,CAKN,iCAEE,YAAa,CAEb,oCAAgC,CADhC,kCAA8B,CAF9B,iBAkCF,CA7BE,wCASE,mEAA0C,CAN1C,QAAS,CAIT,UAAW,CAFX,aAAc,CADd,MAAO,CAHP,iBAAkB,CAClB,KAAM,CAIN,SAIF,CAEA,yDAEE,gBAAiB,CADjB,qCAeF,CAZE,oEACE,uCACF,CAEA,2FAKE,mEAAwC,CACxC,QAAS,CAFT,gDAA2B,CAH3B,WAAY,CAEZ,sCAAiC,CADjC,mCAKF,CAIJ,yCACE,iBAAkB,CAClB,SACF,CAEA,kCAkBE,kBAAmB,CANnB,4EAA8C,CAE9C,+DAAoC,CAGpC,iBAAkB,CAFlB,kBAAmB,CACnB,6CAAsC,CAftC,YAAa,CAMb,aAAc,CAJd,WAAY,CAgBZ,sBAAuB,CAbvB,iBAAkB,CAFlB,qCAAgC,CAIhC,eAAgB,CANhB,UAkBF,CAEA,mEAbE,gDAqBF,CARA,iCAOE,SAAU,CAFV,8CAAuC,CADvC,gDAA0C,CAF1C,cAAe,CADf,WAOF,CAEA,kCAOE,mEAAwC,CACxC,QAAS,CACT,yGAAuE,CANvE,iCAA2B,CAC3B,QAAS,CACT,+CAA6C,CAC7C,aAAc,CALd,iBAAkB,CAClB,SAYF,CAHE,yDACE,iDACF","file":"Timeline-4d67684a.css","sourcesContent":[".Timeline {\n display: flex;\n flex-direction: column;\n\n &:where([data-clip-sidebar='start']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:first-child {\n padding-top: 0;\n\n &:where([data-condensed])::before {\n top: var(--base-size-12);\n }\n }\n }\n\n &:where([data-clip-sidebar='end']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:last-child {\n padding-bottom: 0;\n\n &:where([data-condensed])::before {\n height: var(--base-size-12);\n }\n }\n }\n}\n\n.TimelineItem {\n position: relative;\n display: flex;\n padding: var(--base-size-16) 0;\n margin-left: var(--base-size-16);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-muted);\n }\n\n &:where([data-condensed]) {\n padding-top: var(--base-size-4);\n padding-bottom: 0;\n\n &:last-child {\n padding-bottom: var(--base-size-16);\n }\n\n .TimelineBadge {\n height: 16px;\n margin-top: var(--base-size-8);\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-default);\n border: 0;\n }\n }\n}\n\n.TimelineBadgeWrapper {\n position: relative;\n z-index: 1;\n}\n\n.TimelineBadge {\n display: flex;\n width: 32px;\n height: 32px;\n margin-right: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -15px;\n flex-shrink: 0;\n overflow: hidden;\n color: var(--fgColor-muted);\n\n /* TODOl not quite sure if this is the correct migration for this line */\n background-color: var(--timelineBadge-bgColor);\n /* stylelint-disable-next-line primer/colors */\n border-color: var(--bgColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thick);\n border-radius: 50%;\n align-items: center;\n justify-content: center;\n}\n\n.TimelineBody {\n min-width: 0;\n max-width: 100%;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc(var(--base-size-4) + 1px);\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: auto;\n}\n\n.TimelineBreak {\n position: relative;\n z-index: 1;\n height: var(--base-size-24);\n margin: 0;\n margin-bottom: calc(-1 * var(--base-size-16));\n margin-left: 0;\n background-color: var(--bgColor-default);\n border: 0;\n border-top: var(--borderWidth-thicker) solid var(--borderColor-default);\n\n &:has(+ [data-condensed]) {\n margin-bottom: calc(-1 * var(--base-size-12));\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/Timeline/Timeline.module.css.js"],"names":[],"mappings":"AAAA,6BACE,YAAa,CACb,qBAuBF,CAnBI,6KACE,aAKF,CAHE,iNACE,8BACF,CAMF,0KACE,gBAKF,CAHE,8MACE,iCACF,CAKN,iCAEE,YAAa,CAEb,oCAAgC,CADhC,kCAA8B,CAF9B,iBAkCF,CA7BE,wCASE,mEAA0C,CAN1C,QAAS,CAIT,UAAW,CAFX,aAAc,CADd,MAAO,CAHP,iBAAkB,CAClB,KAAM,CAIN,SAIF,CAEA,yDAEE,gBAAiB,CADjB,qCAeF,CAZE,oEACE,uCACF,CAEA,2FAKE,mEAAwC,CACxC,QAAS,CAFT,gDAA2B,CAH3B,WAAY,CAEZ,sCAAiC,CADjC,mCAKF,CAIJ,yCACE,iBAAkB,CAClB,SACF,CAEA,kCAkBE,kBAAmB,CANnB,4EAA8C,CAE9C,+DAAoC,CAGpC,iBAAkB,CAFlB,kBAAmB,CACnB,6CAAsC,CAPtC,gDAA2B,CAR3B,YAAa,CAMb,aAAc,CAJd,WAAY,CAgBZ,sBAAuB,CAbvB,iBAAkB,CAFlB,qCAAgC,CAIhC,eAAgB,CANhB,UA2DF,CAxCE,wDAEE,wBAAyB,CADzB,2DAEF,CAEA,+DACE,4EACF,CAEA,gEACE,8EACF,CAEA,kEACE,kFACF,CAEA,+DACE,4EACF,CAEA,+DACE,4EACF,CAEA,6DACE,wEACF,CAEA,6DACE,wEACF,CAEA,+DACE,4EACF,CAEA,iEACE,gFACF,CAGF,iCAME,gDAA2B,CAC3B,SAAU,CAFV,8CAAuC,CADvC,gDAA0C,CAF1C,cAAe,CADf,WAOF,CAEA,kCAOE,mEAAwC,CACxC,QAAS,CACT,yGAAuE,CANvE,iCAA2B,CAC3B,QAAS,CACT,+CAA6C,CAC7C,aAAc,CALd,iBAAkB,CAClB,SAYF,CAHE,yDACE,iDACF","file":"Timeline-d1c91434.css","sourcesContent":[".Timeline {\n display: flex;\n flex-direction: column;\n\n &:where([data-clip-sidebar='start']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:first-child {\n padding-top: 0;\n\n &:where([data-condensed])::before {\n top: var(--base-size-12);\n }\n }\n }\n\n &:where([data-clip-sidebar='end']),\n &:where([data-clip-sidebar='both']) {\n .TimelineItem:last-child {\n padding-bottom: 0;\n\n &:where([data-condensed])::before {\n height: var(--base-size-12);\n }\n }\n }\n}\n\n.TimelineItem {\n position: relative;\n display: flex;\n padding: var(--base-size-16) 0;\n margin-left: var(--base-size-16);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-muted);\n }\n\n &:where([data-condensed]) {\n padding-top: var(--base-size-4);\n padding-bottom: 0;\n\n &:last-child {\n padding-bottom: var(--base-size-16);\n }\n\n .TimelineBadge {\n height: 16px;\n margin-top: var(--base-size-8);\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-default);\n border: 0;\n }\n }\n}\n\n.TimelineBadgeWrapper {\n position: relative;\n z-index: 1;\n}\n\n.TimelineBadge {\n display: flex;\n width: 32px;\n height: 32px;\n margin-right: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -15px;\n flex-shrink: 0;\n overflow: hidden;\n color: var(--fgColor-muted);\n\n /* TODOl not quite sure if this is the correct migration for this line */\n background-color: var(--timelineBadge-bgColor);\n /* stylelint-disable-next-line primer/colors */\n border-color: var(--bgColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thick);\n border-radius: 50%;\n align-items: center;\n justify-content: center;\n\n &:where([data-variant]) {\n color: var(--fgColor-onEmphasis);\n border-color: transparent;\n }\n\n &:where([data-variant='accent']) {\n background-color: var(--bgColor-accent-emphasis);\n }\n\n &:where([data-variant='success']) {\n background-color: var(--bgColor-success-emphasis);\n }\n\n &:where([data-variant='attention']) {\n background-color: var(--bgColor-attention-emphasis);\n }\n\n &:where([data-variant='severe']) {\n background-color: var(--bgColor-severe-emphasis);\n }\n\n &:where([data-variant='danger']) {\n background-color: var(--bgColor-danger-emphasis);\n }\n\n &:where([data-variant='done']) {\n background-color: var(--bgColor-done-emphasis);\n }\n\n &:where([data-variant='open']) {\n background-color: var(--bgColor-open-emphasis);\n }\n\n &:where([data-variant='closed']) {\n background-color: var(--bgColor-closed-emphasis);\n }\n\n &:where([data-variant='sponsors']) {\n background-color: var(--bgColor-sponsors-emphasis);\n }\n}\n\n.TimelineBody {\n min-width: 0;\n max-width: 100%;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc(var(--base-size-4) + 1px);\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: auto;\n}\n\n.TimelineBreak {\n position: relative;\n z-index: 1;\n height: var(--base-size-24);\n margin: 0;\n margin-bottom: calc(-1 * var(--base-size-16));\n margin-left: 0;\n background-color: var(--bgColor-default);\n border: 0;\n border-top: var(--borderWidth-thicker) solid var(--borderColor-default);\n\n &:has(+ [data-condensed]) {\n margin-bottom: calc(-1 * var(--base-size-12));\n }\n}\n"]}