@primer/react 38.1.0-rc.0f9e6f896 → 38.1.0-rc.1844aca9b

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 (137) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +16 -11
  3. package/dist/ActionBar/ActionBar.js +308 -148
  4. package/dist/ActionList/ActionList-46e9c2db.css +2 -0
  5. package/dist/ActionList/ActionList-46e9c2db.css.map +1 -0
  6. package/dist/ActionList/ActionList.module.css.js +1 -1
  7. package/dist/ActionList/Item.d.ts.map +1 -1
  8. package/dist/ActionList/Item.js +3 -1
  9. package/dist/ActionList/List.d.ts.map +1 -1
  10. package/dist/ActionMenu/ActionMenu.js +1 -1
  11. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -0
  12. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
  13. package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
  14. package/dist/Autocomplete/AutocompleteInput.js +0 -1
  15. package/dist/Autocomplete/AutocompleteMenu.js +334 -124
  16. package/dist/Avatar/Avatar.js +31 -23
  17. package/dist/Banner/Banner.d.ts.map +1 -1
  18. package/dist/Banner/Banner.js +0 -1
  19. package/dist/BaseStyles.d.ts +2 -2
  20. package/dist/BaseStyles.d.ts.map +1 -1
  21. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  22. package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
  23. package/dist/Button/ButtonBase.d.ts.map +1 -1
  24. package/dist/Button/ButtonBase.js +0 -1
  25. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  26. package/dist/DataTable/Pagination.js +296 -87
  27. package/dist/DataTable/Table.d.ts +13 -13
  28. package/dist/DataTable/Table.d.ts.map +1 -1
  29. package/dist/Dialog/Dialog.d.ts +3 -23
  30. package/dist/Dialog/Dialog.d.ts.map +1 -1
  31. package/dist/Dialog/Dialog.js +19 -4
  32. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +1 -1
  33. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -1
  34. package/dist/FilteredActionList/FilteredActionList.d.ts +1 -0
  35. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  36. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -0
  37. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
  38. package/dist/FilteredActionList/useAnnouncements.d.ts.map +1 -1
  39. package/dist/FilteredActionList/useAnnouncements.js +1 -0
  40. package/dist/Heading/Heading.d.ts.map +1 -1
  41. package/dist/Heading/Heading.js +0 -1
  42. package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
  43. package/dist/LabelGroup/LabelGroup.js +1 -0
  44. package/dist/Link/Link-968346ff.css +2 -0
  45. package/dist/Link/Link-968346ff.css.map +1 -0
  46. package/dist/Link/Link.d.ts +0 -2
  47. package/dist/Link/Link.d.ts.map +1 -1
  48. package/dist/Link/Link.js +0 -3
  49. package/dist/Link/Link.module.css.js +1 -1
  50. package/dist/PageHeader/PageHeader-9f4a690a.css +2 -0
  51. package/dist/PageHeader/PageHeader-9f4a690a.css.map +1 -0
  52. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  53. package/dist/PageHeader/PageHeader.js +24 -16
  54. package/dist/PageHeader/PageHeader.module.css.js +1 -1
  55. package/dist/PageLayout/PageLayout-28a244f7.css +2 -0
  56. package/dist/PageLayout/PageLayout-28a244f7.css.map +1 -0
  57. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  58. package/dist/PageLayout/PageLayout.js +535 -448
  59. package/dist/PageLayout/PageLayout.module.css.js +1 -1
  60. package/dist/Portal/Portal.d.ts.map +1 -1
  61. package/dist/Portal/Portal.js +0 -1
  62. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  63. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  64. package/dist/SelectPanel/SelectPanel.js +0 -1
  65. package/dist/SkeletonAvatar/SkeletonAvatar.js +31 -23
  66. package/dist/ThemeProvider.d.ts.map +1 -1
  67. package/dist/ThemeProvider.js +1 -0
  68. package/dist/Timeline/Timeline-116393ee.css +2 -0
  69. package/dist/Timeline/Timeline-116393ee.css.map +1 -0
  70. package/dist/Timeline/Timeline.module.css.js +1 -1
  71. package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  72. package/dist/Token/IssueLabelToken.js +280 -57
  73. package/dist/Token/_RemoveTokenButton.d.ts +1 -1
  74. package/dist/Token/_RemoveTokenButton.d.ts.map +1 -1
  75. package/dist/Token/_RemoveTokenButton.js +4 -3
  76. package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
  77. package/dist/TooltipV2/Tooltip.js +28 -25
  78. package/dist/TreeView/TreeView.d.ts.map +1 -1
  79. package/dist/TreeView/TreeView.js +5 -1
  80. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  81. package/dist/UnderlineNav/UnderlineNav.js +0 -1
  82. package/dist/deprecated/ActionList/Divider.d.ts +1 -0
  83. package/dist/deprecated/ActionList/Divider.d.ts.map +1 -1
  84. package/dist/deprecated/ActionList/Group.d.ts +1 -0
  85. package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
  86. package/dist/deprecated/ActionList/Header.d.ts +1 -0
  87. package/dist/deprecated/ActionList/Header.d.ts.map +1 -1
  88. package/dist/deprecated/ActionList/List.d.ts.map +1 -1
  89. package/dist/deprecated/ActionMenu.d.ts +2 -1
  90. package/dist/deprecated/ActionMenu.d.ts.map +1 -1
  91. package/dist/deprecated/utils/create-slots.d.ts.map +1 -1
  92. package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
  93. package/dist/experimental/SelectPanel2/SelectPanel.js +4 -2
  94. package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +4 -0
  95. package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
  96. package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
  97. package/dist/hooks/useAnchoredPosition.js +0 -1
  98. package/dist/hooks/useControllableState.d.ts.map +1 -1
  99. package/dist/hooks/useControllableState.js +2 -0
  100. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  101. package/dist/hooks/useFocusTrap.js +0 -1
  102. package/dist/hooks/useFocusZone.d.ts.map +1 -1
  103. package/dist/hooks/useFocusZone.js +0 -1
  104. package/dist/hooks/useIsMacOS.d.ts.map +1 -1
  105. package/dist/hooks/useIsMacOS.js +3 -1
  106. package/dist/hooks/useMedia.d.ts.map +1 -1
  107. package/dist/hooks/useMedia.js +12 -27
  108. package/dist/hooks/useMenuInitialFocus.d.ts.map +1 -1
  109. package/dist/hooks/useMenuInitialFocus.js +0 -1
  110. package/dist/hooks/useOnEscapePress.d.ts.map +1 -1
  111. package/dist/hooks/useOnEscapePress.js +0 -1
  112. package/dist/hooks/useRenderForcingRef.d.ts.map +1 -1
  113. package/dist/hooks/useRenderForcingRef.js +37 -7
  114. package/dist/hooks/useResizeObserver.d.ts.map +1 -1
  115. package/dist/hooks/useResizeObserver.js +0 -1
  116. package/dist/hooks/useSafeTimeout.d.ts.map +1 -1
  117. package/dist/hooks/useSafeTimeout.js +0 -1
  118. package/dist/hooks/useScrollFlash.d.ts.map +1 -1
  119. package/dist/internal/components/UnderlineTabbedInterface.js +1 -1
  120. package/dist/internal/components/ValidationAnimationContainer.d.ts.map +1 -1
  121. package/dist/internal/hooks/useFocus.d.ts.map +1 -1
  122. package/dist/internal/hooks/useMergedRefs.d.ts.map +1 -1
  123. package/dist/internal/hooks/useMergedRefs.js +0 -1
  124. package/dist/utils/polymorphic.d.ts +1 -0
  125. package/dist/utils/polymorphic.d.ts.map +1 -1
  126. package/generated/components.json +9 -7
  127. package/package.json +12 -11
  128. package/dist/ActionList/ActionList-167cf6c7.css +0 -2
  129. package/dist/ActionList/ActionList-167cf6c7.css.map +0 -1
  130. package/dist/Link/Link-e01bdaee.css +0 -2
  131. package/dist/Link/Link-e01bdaee.css.map +0 -1
  132. package/dist/PageHeader/PageHeader-4e1d8fee.css +0 -2
  133. package/dist/PageHeader/PageHeader-4e1d8fee.css.map +0 -1
  134. package/dist/PageLayout/PageLayout-1849f083.css +0 -2
  135. package/dist/PageLayout/PageLayout-1849f083.css.map +0 -1
  136. package/dist/Timeline/Timeline-e8e88a13.css +0 -2
  137. package/dist/Timeline/Timeline-e8e88a13.css.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,12 +4,32 @@
4
4
 
5
5
  ### Minor Changes
6
6
 
7
+ - [#7056](https://github.com/primer/react/pull/7056) [`6ff2797`](https://github.com/primer/react/commit/6ff2797662bf7ab8cf8575d13ad061923bf0d9c1) Thanks [@adierkens](https://github.com/adierkens)! - Update active indicators for ActionList & FilteredActionList to follow content height
8
+
7
9
  - [#7063](https://github.com/primer/react/pull/7063) [`247c66a`](https://github.com/primer/react/commit/247c66a3c297afba73c6e9e3842cc15ff8a845c1) Thanks [@francinelucca](https://github.com/francinelucca)! - Feat: popover implement click outside
8
10
 
11
+ - [#7109](https://github.com/primer/react/pull/7109) [`34e7108`](https://github.com/primer/react/commit/34e71089ea7668d7b0ab4572f125d13b998e8754) Thanks [@adierkens](https://github.com/adierkens)! - Add support to ActionList for 'tablist' and 'tab' roles
12
+
13
+ - [#7112](https://github.com/primer/react/pull/7112) [`7160709`](https://github.com/primer/react/commit/71607096f1ed60455313d3e1e26ce803f985307c) Thanks [@hectahertz](https://github.com/hectahertz)! - PageHeader: Remove useResponsiveValue hook from TitleArea variant prop
14
+
15
+ Migrates PageHeader.TitleArea's `variant` prop to use `getResponsiveAttributes` following ADR-018 for SSR-safe responsive values. This prevents layout shift during hydration when using responsive variants.
16
+
9
17
  ### Patch Changes
10
18
 
19
+ - [#7114](https://github.com/primer/react/pull/7114) [`15a13c6`](https://github.com/primer/react/commit/15a13c64917676d47e4ce899ce1f96939cc754d6) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - ActionList: Fix trailing action button to take full height.
20
+
21
+ - [#7124](https://github.com/primer/react/pull/7124) [`a746a83`](https://github.com/primer/react/commit/a746a83e68da54a7f66161b0f1d68bfbdc071ce6) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - Fixed Timeline.Break when followed by a condensed item and clip sidebar for condensed items.
22
+
23
+ - [#7060](https://github.com/primer/react/pull/7060) [`3468793`](https://github.com/primer/react/commit/3468793e15269d6d9f226ee7844921e44bfc4622) Thanks [@francinelucca](https://github.com/francinelucca)! - @primer/react: chore(Dialog): allow direct children
24
+
11
25
  - [#7061](https://github.com/primer/react/pull/7061) [`e58e102`](https://github.com/primer/react/commit/e58e1027d7f3cdae5223c08d83f7b86918db370b) Thanks [@francinelucca](https://github.com/francinelucca)! - PageLayout: update wrapper dimensions to match PageLayout's root element
12
26
 
27
+ - [#7097](https://github.com/primer/react/pull/7097) [`12fad7a`](https://github.com/primer/react/commit/12fad7af4d9d31898dfff5d3419987100b398d9e) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: fix UnderlineWrapper html structure
28
+
29
+ - [#7101](https://github.com/primer/react/pull/7101) [`9382e52`](https://github.com/primer/react/commit/9382e529a8a4a0204ce0c412a0c8840cfbfe9f2c) Thanks [@hectahertz](https://github.com/hectahertz)! - Remove use of useResponsiveValue hook - PageLayout
30
+
31
+ - [#7128](https://github.com/primer/react/pull/7128) [`4d0f08a`](https://github.com/primer/react/commit/4d0f08a24750704374655c3dc0450012f905bca0) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Link: Remove deprecated underline prop. (Not used in github-ui)
32
+
13
33
  ## 38.0.0
14
34
 
15
35
  ### Major Changes
package/README.md CHANGED
@@ -28,20 +28,19 @@ To install `@primer/react` in your project, you will need to run the following
28
28
  command using [npm](https://www.npmjs.com/):
29
29
 
30
30
  ```bash
31
- npm install -S @primer/react @primer/primitives styled-components@5.x
31
+ npm install -S @primer/react @primer/primitives
32
32
  ```
33
33
 
34
34
  If you prefer [Yarn](https://yarnpkg.com/), use the following command instead:
35
35
 
36
36
  ```bash
37
- yarn add @primer/react @primer/primitives styled-components@5.x
37
+ yarn add @primer/react @primer/primitives
38
38
  ```
39
39
 
40
- This command will install three packages in your project:
40
+ This command will install two packages in your project:
41
41
 
42
42
  - `@primer/react`: used to import and use all the components from Primer
43
43
  - `@primer/primitives`: used to include the design tokens from Primer
44
- - `styled-components`: used to style components
45
44
 
46
45
  To learn more about how to use `@primer/react`, visit our documentation site at:
47
46
  [primer.style](https://primer.style).
@@ -59,26 +58,32 @@ function App() {
59
58
  ```
60
59
 
61
60
  At the root of your application, you'll also want to include our
62
- `ThemeProvider` and `BaseStyles` components along with styles from the
61
+ `BaseStyles` component along with styles from the
63
62
  `@primer/primitives` package. For example:
64
63
 
65
64
  ```tsx
66
65
  // Import each of the themes you would like to use, by default we are including
67
66
  // the light theme below
68
67
  import '@primer/primitives/dist/css/functional/themes/light.css'
69
- import {BaseStyles, ThemeProvider} from '@primer/react'
68
+ import {BaseStyles} from '@primer/react'
70
69
 
71
70
  function RootLayout() {
72
71
  return (
73
- <ThemeProvider>
74
- <BaseStyles>
75
- <App />
76
- </BaseStyles>
77
- </ThemeProvider>
72
+ <BaseStyles>
73
+ <App />
74
+ </BaseStyles>
78
75
  )
79
76
  }
80
77
  ```
81
78
 
79
+ In addition, you will need to add the following attributes to your `html` element:
80
+
81
+ ```html
82
+ <html data-light-theme="light" data-dark-theme="dark" data-color-mode="auto">
83
+ <!-- ... -->
84
+ </html>
85
+ ```
86
+
82
87
  ## 📖 Documentation
83
88
 
84
89
  The documentation for `@primer/react` lives at [primer.style](https://primer.style). There, you'll find detailed documentation on getting started, all of the components, our theme, our principles, and more.
@@ -1,5 +1,5 @@
1
1
  import { c } from 'react-compiler-runtime';
2
- import React, { forwardRef, useRef, useState, useCallback, useId } from 'react';
2
+ import React, { forwardRef, useRef, useState, useId } from 'react';
3
3
  import { KebabHorizontalIcon } from '@primer/octicons-react';
4
4
  import { ActionList } from '../ActionList/index.js';
5
5
  import useIsomorphicLayoutEffect from '../utils/useIsomorphicLayoutEffect.js';
@@ -10,7 +10,7 @@ import { IconButton } from '../Button/IconButton.js';
10
10
  import { useFocusZone } from '../hooks/useFocusZone.js';
11
11
  import styles from './ActionBar.module.css.js';
12
12
  import { clsx } from 'clsx';
13
- import { jsx, jsxs } from 'react/jsx-runtime';
13
+ import { jsxs, jsx } from 'react/jsx-runtime';
14
14
  import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
15
15
  import { FocusKeys } from '@primer/behaviors';
16
16
  import { ActionMenu } from '../ActionMenu/ActionMenu.js';
@@ -86,176 +86,330 @@ const getMenuItems = (navWidth, moreMenuWidth, childRegistry, hasActiveMenu, gap
86
86
  }
87
87
  };
88
88
  const ActionBar = props => {
89
+ const $ = c(43);
89
90
  const {
90
- size = 'medium',
91
+ size: t0,
91
92
  children,
92
- 'aria-label': ariaLabel,
93
- 'aria-labelledby': ariaLabelledBy,
94
- flush = false,
93
+ "aria-label": ariaLabel,
94
+ "aria-labelledby": ariaLabelledBy,
95
+ flush: t1,
95
96
  className,
96
- gap = 'condensed'
97
+ gap: t2
97
98
  } = props;
98
-
99
- // We derive the numeric gap from computed style so layout math stays in sync with CSS
99
+ const size = t0 === undefined ? "medium" : t0;
100
+ const flush = t1 === undefined ? false : t1;
101
+ const gap = t2 === undefined ? "condensed" : t2;
100
102
  const listRef = useRef(null);
101
103
  const [computedGap, setComputedGap] = useState(ACTIONBAR_ITEM_GAP);
102
- const [childRegistry, setChildRegistry] = useState(() => new Map());
103
- const registerChild = useCallback((id, childProps) => setChildRegistry(prev => new Map(prev).set(id, childProps)), []);
104
- const unregisterChild = useCallback(id_0 => setChildRegistry(prev_0 => new Map(prev_0).set(id_0, null)), []);
105
- const [menuItemIds, setMenuItemIds] = useState(() => new Set());
104
+ const [childRegistry, setChildRegistry] = useState(_temp);
105
+ let t3;
106
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
107
+ t3 = (id, childProps) => setChildRegistry(prev => new Map(prev).set(id, childProps));
108
+ $[0] = t3;
109
+ } else {
110
+ t3 = $[0];
111
+ }
112
+ const registerChild = t3;
113
+ let t4;
114
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
115
+ t4 = id_0 => setChildRegistry(prev_0 => new Map(prev_0).set(id_0, null));
116
+ $[1] = t4;
117
+ } else {
118
+ t4 = $[1];
119
+ }
120
+ const unregisterChild = t4;
121
+ const [menuItemIds, setMenuItemIds] = useState(_temp2);
106
122
  const navRef = useRef(null);
107
- // measure gap after first render & whenever gap scale changes
108
- useIsomorphicLayoutEffect(() => {
109
- if (!listRef.current) return;
110
- const g = window.getComputedStyle(listRef.current).gap;
111
- const parsed = parseFloat(g);
112
- if (!Number.isNaN(parsed)) setComputedGap(parsed);
113
- }, [gap]);
123
+ let t5;
124
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
125
+ t5 = () => {
126
+ if (!listRef.current) {
127
+ return;
128
+ }
129
+ const g = window.getComputedStyle(listRef.current).gap;
130
+ const parsed = parseFloat(g);
131
+ if (!Number.isNaN(parsed)) {
132
+ setComputedGap(parsed);
133
+ }
134
+ };
135
+ $[2] = t5;
136
+ } else {
137
+ t5 = $[2];
138
+ }
139
+ let t6;
140
+ if ($[3] !== gap) {
141
+ t6 = [gap];
142
+ $[3] = gap;
143
+ $[4] = t6;
144
+ } else {
145
+ t6 = $[4];
146
+ }
147
+ useIsomorphicLayoutEffect(t5, t6);
114
148
  const moreMenuRef = useRef(null);
115
149
  const moreMenuBtnRef = useRef(null);
116
150
  const containerRef = React.useRef(null);
117
- useResizeObserver(resizeObserverEntries => {
118
- var _moreMenuRef$current$, _moreMenuRef$current;
119
- const navWidth = resizeObserverEntries[0].contentRect.width;
120
- const moreMenuWidth = (_moreMenuRef$current$ = (_moreMenuRef$current = moreMenuRef.current) === null || _moreMenuRef$current === void 0 ? void 0 : _moreMenuRef$current.getBoundingClientRect().width) !== null && _moreMenuRef$current$ !== void 0 ? _moreMenuRef$current$ : 0;
121
- const hasActiveMenu = menuItemIds.size > 0;
122
- if (navWidth > 0) {
123
- const newMenuItemIds = getMenuItems(navWidth, moreMenuWidth, childRegistry, hasActiveMenu, computedGap);
124
- if (newMenuItemIds) setMenuItemIds(newMenuItemIds);
125
- }
126
- }, navRef);
127
- const isVisibleChild = useCallback(id_1 => {
128
- return !menuItemIds.has(id_1);
129
- }, [menuItemIds]);
151
+ let t7;
152
+ if ($[5] !== childRegistry || $[6] !== computedGap || $[7] !== menuItemIds.size) {
153
+ t7 = resizeObserverEntries => {
154
+ var _moreMenuRef$current$, _moreMenuRef$current;
155
+ const navWidth = resizeObserverEntries[0].contentRect.width;
156
+ const moreMenuWidth = (_moreMenuRef$current$ = (_moreMenuRef$current = moreMenuRef.current) === null || _moreMenuRef$current === void 0 ? void 0 : _moreMenuRef$current.getBoundingClientRect().width) !== null && _moreMenuRef$current$ !== void 0 ? _moreMenuRef$current$ : 0;
157
+ const hasActiveMenu = menuItemIds.size > 0;
158
+ if (navWidth > 0) {
159
+ const newMenuItemIds = getMenuItems(navWidth, moreMenuWidth, childRegistry, hasActiveMenu, computedGap);
160
+ if (newMenuItemIds) {
161
+ setMenuItemIds(newMenuItemIds);
162
+ }
163
+ }
164
+ };
165
+ $[5] = childRegistry;
166
+ $[6] = computedGap;
167
+ $[7] = menuItemIds.size;
168
+ $[8] = t7;
169
+ } else {
170
+ t7 = $[8];
171
+ }
172
+ useResizeObserver(t7, navRef);
173
+ let t8;
174
+ if ($[9] !== menuItemIds) {
175
+ t8 = id_1 => !menuItemIds.has(id_1);
176
+ $[9] = menuItemIds;
177
+ $[10] = t8;
178
+ } else {
179
+ t8 = $[10];
180
+ }
181
+ const isVisibleChild = t8;
130
182
  const [isWidgetOpen, setIsWidgetOpen] = useState(false);
131
- const closeOverlay = React.useCallback(() => {
132
- setIsWidgetOpen(false);
133
- }, [setIsWidgetOpen]);
134
- const focusOnMoreMenuBtn = React.useCallback(() => {
135
- var _moreMenuBtnRef$curre;
136
- (_moreMenuBtnRef$curre = moreMenuBtnRef.current) === null || _moreMenuBtnRef$curre === void 0 ? void 0 : _moreMenuBtnRef$curre.focus();
137
- }, []);
138
- useOnEscapePress(event => {
139
- if (isWidgetOpen) {
140
- event.preventDefault();
141
- closeOverlay();
142
- focusOnMoreMenuBtn();
143
- }
144
- }, [isWidgetOpen]);
145
- useOnOutsideClick({
146
- onClickOutside: closeOverlay,
147
- containerRef,
148
- ignoreClickRefs: [moreMenuBtnRef]
149
- });
150
- useFocusZone({
151
- containerRef: listRef,
152
- bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
153
- focusOutBehavior: 'wrap'
154
- });
155
- const groupedItems = React.useMemo(() => {
156
- const groupedItemsMap = new Map();
183
+ let t9;
184
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
185
+ t9 = () => {
186
+ setIsWidgetOpen(false);
187
+ };
188
+ $[11] = t9;
189
+ } else {
190
+ t9 = $[11];
191
+ }
192
+ const closeOverlay = t9;
193
+ let t10;
194
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
195
+ t10 = () => {
196
+ var _moreMenuBtnRef$curre;
197
+ (_moreMenuBtnRef$curre = moreMenuBtnRef.current) === null || _moreMenuBtnRef$curre === void 0 ? void 0 : _moreMenuBtnRef$curre.focus();
198
+ };
199
+ $[12] = t10;
200
+ } else {
201
+ t10 = $[12];
202
+ }
203
+ const focusOnMoreMenuBtn = t10;
204
+ let t11;
205
+ let t12;
206
+ if ($[13] !== isWidgetOpen) {
207
+ t11 = event => {
208
+ if (isWidgetOpen) {
209
+ event.preventDefault();
210
+ closeOverlay();
211
+ focusOnMoreMenuBtn();
212
+ }
213
+ };
214
+ t12 = [isWidgetOpen];
215
+ $[13] = isWidgetOpen;
216
+ $[14] = t11;
217
+ $[15] = t12;
218
+ } else {
219
+ t11 = $[14];
220
+ t12 = $[15];
221
+ }
222
+ useOnEscapePress(t11, t12);
223
+ let t13;
224
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
225
+ t13 = {
226
+ onClickOutside: closeOverlay,
227
+ containerRef,
228
+ ignoreClickRefs: [moreMenuBtnRef]
229
+ };
230
+ $[16] = t13;
231
+ } else {
232
+ t13 = $[16];
233
+ }
234
+ useOnOutsideClick(t13);
235
+ let t14;
236
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
237
+ t14 = {
238
+ containerRef: listRef,
239
+ bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
240
+ focusOutBehavior: "wrap"
241
+ };
242
+ $[17] = t14;
243
+ } else {
244
+ t14 = $[17];
245
+ }
246
+ useFocusZone(t14);
247
+ let groupedItemsMap;
248
+ if ($[18] !== childRegistry) {
249
+ groupedItemsMap = new Map();
157
250
  for (const [key, childProps_0] of childRegistry) {
158
- if ((childProps_0 === null || childProps_0 === void 0 ? void 0 : childProps_0.type) === 'action' && childProps_0.groupId) {
251
+ if ((childProps_0 === null || childProps_0 === void 0 ? void 0 : childProps_0.type) === "action" && childProps_0.groupId) {
159
252
  const existingGroup = groupedItemsMap.get(childProps_0.groupId) || [];
160
253
  existingGroup.push([key, childProps_0]);
161
254
  groupedItemsMap.set(childProps_0.groupId, existingGroup);
162
255
  }
163
256
  }
164
- return groupedItemsMap;
165
- }, [childRegistry]);
166
- return /*#__PURE__*/jsx(ActionBarContext.Provider, {
167
- value: {
257
+ $[18] = childRegistry;
258
+ $[19] = groupedItemsMap;
259
+ } else {
260
+ groupedItemsMap = $[19];
261
+ }
262
+ const groupedItems = groupedItemsMap;
263
+ let t15;
264
+ if ($[20] !== isVisibleChild || $[21] !== size) {
265
+ t15 = {
168
266
  size,
169
267
  registerChild,
170
268
  unregisterChild,
171
269
  isVisibleChild
172
- },
173
- children: /*#__PURE__*/jsx("div", {
270
+ };
271
+ $[20] = isVisibleChild;
272
+ $[21] = size;
273
+ $[22] = t15;
274
+ } else {
275
+ t15 = $[22];
276
+ }
277
+ let t16;
278
+ if ($[23] !== className) {
279
+ t16 = clsx(className, styles.Nav);
280
+ $[23] = className;
281
+ $[24] = t16;
282
+ } else {
283
+ t16 = $[24];
284
+ }
285
+ let t17;
286
+ if ($[25] !== ariaLabel || $[26] !== childRegistry || $[27] !== groupedItems || $[28] !== menuItemIds) {
287
+ t17 = menuItemIds.size > 0 && /*#__PURE__*/jsxs(ActionMenu, {
288
+ children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
289
+ children: /*#__PURE__*/jsx(IconButton, {
290
+ variant: "invisible",
291
+ "aria-label": `More ${ariaLabel} items`,
292
+ icon: KebabHorizontalIcon
293
+ })
294
+ }), /*#__PURE__*/jsx(ActionMenu.Overlay, {
295
+ children: /*#__PURE__*/jsx(ActionList, {
296
+ children: Array.from(menuItemIds).map(id_2 => {
297
+ const menuItem = childRegistry.get(id_2);
298
+ if (!menuItem) {
299
+ return null;
300
+ }
301
+ if (menuItem.type === "divider") {
302
+ return /*#__PURE__*/jsx(ActionList.Divider, {}, id_2);
303
+ } else {
304
+ if (menuItem.type === "action") {
305
+ const {
306
+ onClick,
307
+ icon: Icon,
308
+ label,
309
+ disabled
310
+ } = menuItem;
311
+ return /*#__PURE__*/jsxs(ActionList.Item, {
312
+ onClick: event_0 => {
313
+ closeOverlay();
314
+ focusOnMoreMenuBtn();
315
+ typeof onClick === "function" && onClick(event_0);
316
+ },
317
+ disabled: disabled,
318
+ children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
319
+ children: /*#__PURE__*/jsx(Icon, {})
320
+ }), label]
321
+ }, label);
322
+ }
323
+ }
324
+ const groupedMenuItems = groupedItems.get(id_2) || [];
325
+ if (menuItem.type === "group") {
326
+ return /*#__PURE__*/jsx(React.Fragment, {
327
+ children: groupedMenuItems.map(t18 => {
328
+ const [key_0, childProps_1] = t18;
329
+ if (childProps_1.type === "action") {
330
+ const {
331
+ onClick: onClick_0,
332
+ icon: Icon_0,
333
+ label: label_0,
334
+ disabled: disabled_0
335
+ } = childProps_1;
336
+ return /*#__PURE__*/jsxs(ActionList.Item, {
337
+ onSelect: event_1 => {
338
+ closeOverlay();
339
+ focusOnMoreMenuBtn();
340
+ typeof onClick_0 === "function" && onClick_0(event_1);
341
+ },
342
+ disabled: disabled_0,
343
+ children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
344
+ children: /*#__PURE__*/jsx(Icon_0, {})
345
+ }), label_0]
346
+ }, key_0);
347
+ }
348
+ return null;
349
+ })
350
+ }, id_2);
351
+ }
352
+ })
353
+ })
354
+ })]
355
+ });
356
+ $[25] = ariaLabel;
357
+ $[26] = childRegistry;
358
+ $[27] = groupedItems;
359
+ $[28] = menuItemIds;
360
+ $[29] = t17;
361
+ } else {
362
+ t17 = $[29];
363
+ }
364
+ let t18;
365
+ if ($[30] !== ariaLabel || $[31] !== ariaLabelledBy || $[32] !== children || $[33] !== gap || $[34] !== t17) {
366
+ t18 = /*#__PURE__*/jsxs("div", {
367
+ ref: listRef,
368
+ role: "toolbar",
369
+ className: styles.List,
370
+ "aria-label": ariaLabel,
371
+ "aria-labelledby": ariaLabelledBy,
372
+ "data-gap": gap,
373
+ children: [children, t17]
374
+ });
375
+ $[30] = ariaLabel;
376
+ $[31] = ariaLabelledBy;
377
+ $[32] = children;
378
+ $[33] = gap;
379
+ $[34] = t17;
380
+ $[35] = t18;
381
+ } else {
382
+ t18 = $[35];
383
+ }
384
+ let t19;
385
+ if ($[36] !== flush || $[37] !== t16 || $[38] !== t18) {
386
+ t19 = /*#__PURE__*/jsx("div", {
174
387
  ref: navRef,
175
- className: clsx(className, styles.Nav),
388
+ className: t16,
176
389
  "data-flush": flush,
177
- children: /*#__PURE__*/jsxs("div", {
178
- ref: listRef,
179
- role: "toolbar",
180
- className: styles.List,
181
- "aria-label": ariaLabel,
182
- "aria-labelledby": ariaLabelledBy,
183
- "data-gap": gap,
184
- children: [children, menuItemIds.size > 0 && /*#__PURE__*/jsxs(ActionMenu, {
185
- children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
186
- children: /*#__PURE__*/jsx(IconButton, {
187
- variant: "invisible",
188
- "aria-label": `More ${ariaLabel} items`,
189
- icon: KebabHorizontalIcon
190
- })
191
- }), /*#__PURE__*/jsx(ActionMenu.Overlay, {
192
- children: /*#__PURE__*/jsx(ActionList, {
193
- children: Array.from(menuItemIds).map(id_2 => {
194
- const menuItem = childRegistry.get(id_2);
195
- if (!menuItem) return null;
196
- if (menuItem.type === 'divider') {
197
- return /*#__PURE__*/jsx(ActionList.Divider, {}, id_2);
198
- } else if (menuItem.type === 'action') {
199
- const {
200
- onClick,
201
- icon: Icon,
202
- label,
203
- disabled
204
- } = menuItem;
205
- return /*#__PURE__*/jsxs(ActionList.Item, {
206
- // eslint-disable-next-line primer-react/prefer-action-list-item-onselect
207
- onClick: event_0 => {
208
- closeOverlay();
209
- focusOnMoreMenuBtn();
210
- typeof onClick === 'function' && onClick(event_0);
211
- },
212
- disabled: disabled,
213
- children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
214
- children: /*#__PURE__*/jsx(Icon, {})
215
- }), label]
216
- }, label);
217
- }
218
-
219
- // Use the memoized map instead of filtering each time
220
- const groupedMenuItems = groupedItems.get(id_2) || [];
221
-
222
- // If we ever add additional types, this condition will be necessary
223
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
224
- if (menuItem.type === 'group') {
225
- return /*#__PURE__*/jsx(React.Fragment, {
226
- children: groupedMenuItems.map(([key_0, childProps_1]) => {
227
- if (childProps_1.type === 'action') {
228
- const {
229
- onClick: onClick_0,
230
- icon: Icon_0,
231
- label: label_0,
232
- disabled: disabled_0
233
- } = childProps_1;
234
- return /*#__PURE__*/jsxs(ActionList.Item, {
235
- onSelect: event_1 => {
236
- closeOverlay();
237
- focusOnMoreMenuBtn();
238
- typeof onClick_0 === 'function' && onClick_0(event_1);
239
- },
240
- disabled: disabled_0,
241
- children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
242
- children: /*#__PURE__*/jsx(Icon_0, {})
243
- }), label_0]
244
- }, key_0);
245
- }
246
- return null;
247
- })
248
- }, id_2);
249
- }
250
- })
251
- })
252
- })]
253
- })]
254
- })
255
- })
256
- });
390
+ children: t18
391
+ });
392
+ $[36] = flush;
393
+ $[37] = t16;
394
+ $[38] = t18;
395
+ $[39] = t19;
396
+ } else {
397
+ t19 = $[39];
398
+ }
399
+ let t20;
400
+ if ($[40] !== t15 || $[41] !== t19) {
401
+ t20 = /*#__PURE__*/jsx(ActionBarContext.Provider, {
402
+ value: t15,
403
+ children: t19
404
+ });
405
+ $[40] = t15;
406
+ $[41] = t19;
407
+ $[42] = t20;
408
+ } else {
409
+ t20 = $[42];
410
+ }
411
+ return t20;
257
412
  };
258
- ActionBar.displayName = "ActionBar";
259
413
  const ActionBarIconButton = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
260
414
  const $ = c(28);
261
415
  let disabled;
@@ -531,5 +685,11 @@ const VerticalDivider = () => {
531
685
  }
532
686
  return t2;
533
687
  };
688
+ function _temp() {
689
+ return new Map();
690
+ }
691
+ function _temp2() {
692
+ return new Set();
693
+ }
534
694
 
535
695
  export { ActionBar, ActionBarGroup, ActionBarIconButton, VerticalDivider };
@@ -0,0 +1,2 @@
1
+ .prc-ActionList-ActionList-X4RiC,.prc-ActionList-ActionList-X4RiC ul{list-style:none;margin:0;padding:0}.prc-ActionList-ActionList-X4RiC:where([data-variant=inset]){padding-block:var(--base-size-8,.5rem)}.prc-ActionList-ActionList-X4RiC:where([data-variant=inset],[data-variant=horizontal-inset]) .prc-ActionList-ActionListItem-uq6I7{margin-inline:var(--base-size-8,.5rem)}.prc-ActionList-ActionList-X4RiC:where([data-variant=horizontal-inset]){padding-bottom:var(--base-size-8,.5rem)}.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) .prc-ActionList-ActionListSubContent-lP9xj:before{background:var(--borderColor-muted,var(--color-border-muted));content:"";display:block;height:1px;position:absolute;top:-7px;width:100%}:is(.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) [data-description-variant=inline]):before{background:var(--borderColor-muted,var(--color-border-muted));content:"";display:block;height:var(--borderWidth-thin,.0625rem);position:absolute;top:-7px;width:100%}:is(.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) [data-description-variant=inline]) .prc-ActionList-ActionListSubContent-lP9xj:before{content:unset}.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) .prc-ActionList-ActionListItem-uq6I7:first-of-type .prc-ActionList-ActionListSubContent-lP9xj:before,.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) .prc-ActionList-Divider-rsZFG+.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-ActionListSubContent-lP9xj:before{visibility:hidden}.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) .prc-ActionList-ActionListItem-uq6I7:first-of-type [data-description-variant=inline]:before,.prc-ActionList-ActionList-X4RiC:where([data-dividers=true]) .prc-ActionList-Divider-rsZFG+.prc-ActionList-ActionListItem-uq6I7 [data-description-variant=inline]:before{visibility:hidden}.prc-ActionList-ActionList-X4RiC .prc-ActionList-Divider-rsZFG:first-child{display:none}.prc-ActionList-ActionList-X4RiC:has([data-has-description=true]):has([data-has-description=false]) .prc-ActionList-ItemLabel-TmBhn{font-weight:var(--base-text-weight-normal,400)}.prc-ActionList-ActionListItem-uq6I7{background-color:var(--control-transparent-bgColor-rest,transparent);border-radius:var(--borderRadius-medium,.375rem);list-style:none;position:relative}.prc-ActionList-ActionListItem-uq6I7:has(>.prc-ActionList-TrailingAction-RmUk1){display:flex;flex-wrap:nowrap}@media (forced-colors:active){.prc-ActionList-ActionListItem-uq6I7 :focus,.prc-ActionList-ActionListItem-uq6I7:focus-visible,.prc-ActionList-ActionListItem-uq6I7>a.prc-ActionList-focus-visible-o4yra,.prc-ActionList-ActionListItem-uq6I7[data-is-active-descendant]{outline:1px solid transparent!important}}@media (hover:hover){.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):active,.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover{cursor:pointer}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover:not([data-active],:focus-visible){box-shadow:var(--boxShadow-thin,inset 0 0 0 .0625rem) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,.0625rem) transparent;outline-offset:calc(var(--borderWidth-thin,.0625rem)*-1)}}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):active{background-color:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):active:not([data-active]){box-shadow:var(--boxShadow-thin,inset 0 0 0 .0625rem) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,.0625rem) transparent;outline-offset:calc(var(--borderWidth-thin,.0625rem)*-1)}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):focus-visible{box-shadow:none;outline:2px solid var(--focus-outlineColor,var(--color-accent-fg));outline-offset:0}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):focus-visible .prc-ActionList-ActionListSubContent-lP9xj:before,.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):focus-visible+.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-ActionListSubContent-lP9xj:before{visibility:hidden}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-variant=danger]) * :not([popover],.prc-ActionList-TrailingVisual-XocgV){color:var(--control-danger-fgColor-rest,var(--color-danger-fg))}@media (hover:hover){.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-variant=danger]):hover{background:var(--control-danger-bgColor-hover,var(--color-action-list-item-danger-hover-bg))}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-variant=danger]):hover * :not([popover]){color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-variant=danger]):active{background:var(--control-danger-bgColor-active,var(--color-action-list-item-danger-active-bg))}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-variant=danger]):active * :not([popover]){color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active]){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));outline:2px solid transparent}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active]) .prc-ActionList-ItemLabel-TmBhn{color:var(--control-fgColor-rest,var(--color-fg-default));font-weight:var(--base-text-weight-semibold,600)}@media (hover:hover){.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active]):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active]) .prc-ActionList-ActionListSubContent-lP9xj:before,.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active])+.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-ActionListSubContent-lP9xj:before{visibility:hidden}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-active]):after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:calc(100% - var(--base-size-8,.5rem));left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:var(--base-size-4,.25rem);width:var(--base-size-4,.25rem)}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-is-active-descendant]){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));outline:2px solid transparent}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-is-active-descendant]):after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:calc(100% - var(--base-size-8,.5rem));left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:var(--base-size-4,.25rem);width:var(--base-size-4,.25rem)}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-inactive=true]) * :not([popover],.prc-ActionList-InactiveWarning-YRMKV){color:var(--fgColor-muted,var(--color-fg-muted))}@media (hover:hover){.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-inactive=true]):hover{background-color:transparent;cursor:not-allowed}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-inactive=true]):hover * :not([popover],.prc-ActionList-InactiveWarning-YRMKV){color:var(--fgColor-muted,var(--color-fg-muted))}}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-inactive=true]):active{background:transparent}:is(.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):where([data-loading=true]),.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):has([data-loading=true])) *{color:var(--fgColor-muted,var(--color-fg-muted))}@media (hover:hover){.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover .prc-ActionList-ActionListSubContent-lP9xj:before,.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover+.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-ActionListSubContent-lP9xj:before{visibility:hidden}.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover [data-description-variant=inline]:before,.prc-ActionList-ActionListItem-uq6I7:not(:has([aria-disabled],[disabled]),[data-has-subitem=true]):hover+.prc-ActionList-ActionListItem-uq6I7 [data-description-variant=inline]:before{visibility:hidden}}.prc-ActionList-ActionListItem-uq6I7[data-has-subitem=true]>.prc-ActionList-ActionListContent-sg9-x{z-index:1}@media (hover:hover){:is(.prc-ActionList-ActionListItem-uq6I7[data-has-subitem=true]>.prc-ActionList-ActionListContent-sg9-x):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));cursor:pointer}}:is(.prc-ActionList-ActionListItem-uq6I7[data-has-subitem=true]>.prc-ActionList-ActionListContent-sg9-x):active{background-color:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}.prc-ActionList-ActionListItem-uq6I7[data-has-subitem=true] .prc-ActionList-Spacer-dydlX{display:block}:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])) .prc-ActionList-ActionListContent-sg9-x *{color:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}@media (hover:hover){:is(:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])) .prc-ActionList-ActionListContent-sg9-x):hover{background-color:transparent;cursor:not-allowed}}@media (hover:hover){:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])):hover{background-color:transparent}}:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])) .prc-ActionList-MultiSelectCheckbox-nK6PJ{background-color:var(--control-bgColor-disabled,var(--color-input-disabled-bg));border-color:var(--control-borderColor-disabled,var(--color-btn-border))}:is([aria-checked=true]:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])),[aria-selected=true]:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled]))) .prc-ActionList-MultiSelectCheckbox-nK6PJ{background-color:var(--control-checked-bgColor-disabled,var(--color-switch-track-disabled-bg));border-color:var(--control-checked-bgColor-disabled,var(--color-switch-track-disabled-bg))}:is(:is([aria-checked=true]:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled])),[aria-selected=true]:is(.prc-ActionList-ActionListItem-uq6I7[aria-disabled=true],.prc-ActionList-ActionListItem-uq6I7:has([aria-disabled=true],[disabled]))) .prc-ActionList-MultiSelectCheckbox-nK6PJ):before{background-color:var(--control-checked-fgColor-disabled,var(--color-switch-track-checked-disabled-fg))}.prc-ActionList-ActionListItem-uq6I7:has(.prc-ActionList-TrailingAction-RmUk1 [data-loading=true]):not([aria-disabled=true]) .prc-ActionList-ItemLabel-TmBhn{color:var(--fgColor-default,var(--color-fg-default))}.prc-ActionList-ActionListItem-uq6I7:has(.prc-ActionList-TrailingAction-RmUk1 [data-loading=true]):not([aria-disabled=true]) .prc-ActionList-Description-G0lJ3{color:var(--fgColor-default,var(--color-fg-default))}.prc-ActionList-ActionListItem-uq6I7[aria-hidden]+.prc-ActionList-Divider-rsZFG{display:none}.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-MultiSelectCheckbox-nK6PJ{background-color:var(--bgColor-default,var(--color-canvas-default));border:var(--borderWidth-thin,.0625rem) solid var(--control-borderColor-emphasis,var(--color-switch-knob-border));border-radius:var(--borderRadius-small,.1875rem);cursor:pointer;display:grid;height:var(--base-size-16,1rem);margin:0;place-content:center;position:relative;transition:background-color,border-color 80ms cubic-bezier(.33,1,.68,1);width:var(--base-size-16,1rem)}:is(.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-MultiSelectCheckbox-nK6PJ):before{animation:prc-ActionList-checkmarkOut-XHM8j 80ms cubic-bezier(.65,0,.35,1);background-color:var(--control-checked-fgColor-rest,var(--color-switch-track-checked-fg));clip-path:inset(var(--base-size-16,1rem) 0 0 0);content:"";height:var(--base-size-16,1rem);mask-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTIgOSI+PHBhdGggZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzguMjJhLjc1Ljc1IDAgMCAxIDAgMS4wNjFMNC41MiA4LjU0MWEuNzUuNzUgMCAwIDEtMS4wNjIgMEwuMjAyIDUuMjg1YS43NS43NSAwIDAgMSAxLjA2MS0xLjA2MWwyLjcyNSAyLjcyM0wxMC43MTguMjJhLjc1Ljc1IDAgMCAxIDEuMDYyIDAiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==");mask-position:center;mask-repeat:no-repeat;mask-size:75%;transition:visibility 0s linear .23s;width:var(--base-size-16,1rem)}@media (forced-colors:active){.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-MultiSelectCheckbox-nK6PJ{border-width:var(--borderWidth-thin,.0625rem)}}:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=true],.prc-ActionList-ActionListItem-uq6I7[aria-selected=true]) .prc-ActionList-MultiSelectCheckbox-nK6PJ{background-color:var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));border-color:var(--control-checked-borderColor-rest,var(--color-switch-track-checked-bg));transition:background-color,border-color 80ms cubic-bezier(.32,0,.67,0) 0s}:is(:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=true],.prc-ActionList-ActionListItem-uq6I7[aria-selected=true]) .prc-ActionList-MultiSelectCheckbox-nK6PJ):before{animation:prc-ActionList-checkmarkIn-Q8dLp 80ms cubic-bezier(.65,0,.35,1) 80ms forwards;transition:visibility 0s linear 0s;visibility:visible}@media (forced-colors:active){:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=true],.prc-ActionList-ActionListItem-uq6I7[aria-selected=true]) .prc-ActionList-MultiSelectCheckbox-nK6PJ{border-width:8px}}:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=true],.prc-ActionList-ActionListItem-uq6I7[aria-selected=true]) .prc-ActionList-SingleSelectCheckmark-Vqn87{visibility:visible}:is(:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=false],.prc-ActionList-ActionListItem-uq6I7[aria-selected=false]) .prc-ActionList-MultiSelectCheckbox-nK6PJ):before{visibility:hidden}:is(.prc-ActionList-ActionListItem-uq6I7[aria-checked=false],.prc-ActionList-ActionListItem-uq6I7[aria-selected=false]) .prc-ActionList-SingleSelectCheckmark-Vqn87{visibility:hidden}.prc-ActionList-SingleSelectCheckmark-Vqn87{visibility:hidden}.prc-ActionList-ActionListContent-sg9-x{--subitem-depth:0px;background-color:transparent;border:none;border-radius:var(--borderRadius-medium,.375rem);color:var(--control-fgColor-rest,var(--color-fg-default));display:grid;padding-block:var(--control-medium-paddingBlock,.375rem);padding-inline:var(--control-medium-paddingInline-condensed,.5rem);position:relative;text-align:left;touch-action:manipulation;transition:background 33.333ms linear;-webkit-user-select:none;user-select:none;width:100%;-webkit-tap-highlight-color:transparent;align-items:start;grid-template-areas:"spacer leadingAction leadingVisual content";grid-template-columns:min-content min-content min-content minmax(0,auto);grid-template-rows:min-content}.prc-ActionList-ActionListContent-sg9-x>:not(:last-child,.prc-ActionList-Spacer-dydlX){margin-right:var(--control-medium-gap,.5rem)}.prc-ActionList-ActionListContent-sg9-x:hover{cursor:pointer;-webkit-text-decoration:none;text-decoration:none}.prc-ActionList-ActionListContent-sg9-x[data-size=large]{padding-block:var(--control-large-paddingBlock,.625rem)}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=true] .prc-ActionList-ExpandIcon-SKUGP{transform:scaleY(-1)}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false] .prc-ActionList-ExpandIcon-SKUGP{transform:scaleY(1)}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]+.prc-ActionList-SubGroup-24eK2{display:none}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]:has(+.prc-ActionList-SubGroup-24eK2 [data-active=true]){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]:has(+.prc-ActionList-SubGroup-24eK2 [data-active=true]) .prc-ActionList-ItemLabel-TmBhn{font-weight:var(--base-text-weight-semibold,600)}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]:has(+.prc-ActionList-SubGroup-24eK2 [data-active=true]) .prc-ActionList-ActionListSubContent-lP9xj:before,.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]:has(+.prc-ActionList-SubGroup-24eK2 [data-active=true])+.prc-ActionList-ActionListItem-uq6I7 .prc-ActionList-ActionListSubContent-lP9xj:before{visibility:hidden}.prc-ActionList-ActionListContent-sg9-x[aria-expanded=false]:has(+.prc-ActionList-SubGroup-24eK2 [data-active=true]):after{background:var(--borderColor-accent-emphasis,var(--color-accent-emphasis));border-radius:var(--borderRadius-medium,.375rem);content:"";height:calc(100% - var(--base-size-8,.5rem));left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:var(--base-size-4,.25rem);width:var(--base-size-4,.25rem)}.prc-ActionList-ActionListSubContent-lP9xj{align-items:start;display:grid;grid-area:content;grid-template-areas:"label trailingVisual trailingAction";grid-template-columns:minmax(0,auto) min-content min-content;grid-template-rows:min-content;position:relative;width:100%}.prc-ActionList-ActionListSubContent-lP9xj>:not(:last-child){margin-right:var(--control-medium-gap,.5rem)}.prc-ActionList-Spacer-dydlX{display:none;grid-area:spacer;width:max(0px,var(--subitem-depth) * 8px)}.prc-ActionList-LeadingAction-Oy04M{grid-area:leadingAction}.prc-ActionList-LeadingVisual-dxXxW{grid-area:leadingVisual}.prc-ActionList-TrailingVisual-XocgV{font-size:var(--text-body-size-medium,.875rem);grid-area:trailingVisual}.prc-ActionList-TrailingAction-RmUk1{grid-area:trailingAction}.prc-ActionList-TrailingAction-RmUk1>[data-loading-wrapper]{height:100%}.prc-ActionList-ItemDescriptionWrap-VJA7h{display:flex;flex-direction:column;gap:var(--base-size-4,.25rem);grid-area:label}.prc-ActionList-ItemDescriptionWrap-VJA7h .prc-ActionList-ItemLabel-TmBhn{font-weight:var(--base-text-weight-semibold,600);word-break:break-word}.prc-ActionList-ItemDescriptionWrap-VJA7h:where([data-description-variant=inline]){align-items:baseline;flex-direction:row;gap:var(--base-size-8,.5rem);position:relative;word-break:normal}.prc-ActionList-ItemDescriptionWrap-VJA7h:where([data-description-variant=inline]) .prc-ActionList-ItemLabel-TmBhn{word-break:normal}.prc-ActionList-ItemDescriptionWrap-VJA7h:where([data-description-variant=inline]):has([data-truncate=true]) .prc-ActionList-ItemLabel-TmBhn{flex:1 0 auto}.prc-ActionList-ItemDescriptionWrap-VJA7h:where([data-description-variant=inline]) .prc-ActionList-Description-G0lJ3{line-height:16px}.prc-ActionList-Description-G0lJ3{font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);line-height:16px}.prc-ActionList-Description-G0lJ3,.prc-ActionList-VisualWrap-rfjV-{color:var(--fgColor-muted,var(--color-fg-muted))}.prc-ActionList-VisualWrap-rfjV-{display:flex;line-height:20px;min-height:var(--control-medium-lineBoxHeight,1.25rem);min-width:max-content;pointer-events:none;fill:var(--fgColor-muted,var(--color-fg-muted));align-items:center}.prc-ActionList-ItemLabel-TmBhn{color:var(--fgColor-default,var(--color-fg-default));font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-normal,400);grid-area:label;line-height:20px;position:relative;word-break:break-word}.prc-ActionList-SubGroup-24eK2 .prc-ActionList-ItemLabel-TmBhn{font-size:var(--text-body-size-small,.75rem)}.prc-ActionList-SubGroup-24eK2 .prc-ActionList-ActionListItem-uq6I7{margin-inline:0}.prc-ActionList-TrailingActionButton-i2wnc{border-bottom-left-radius:0;border-top-left-radius:0;height:100%}.prc-ActionList-TrailingActionButton-i2wnc[data-loading=true]:has([data-component=buttonContent]){padding:0 0 0 calc(var(--base-size-12,.75rem)*2)}.prc-ActionList-TrailingActionButton-i2wnc[data-loading=true]:has([data-component=buttonContent]) [data-component=loadingSpinner]{align-items:center;display:flex;height:var(--control-medium-size,2rem);justify-content:center;place-self:end;width:var(--control-medium-size,2rem)}.prc-ActionList-InactiveButtonWrap-T6Jfa:has(.prc-ActionList-TrailingVisual-XocgV){grid-area:trailingVisual}.prc-ActionList-InactiveButtonWrap-T6Jfa:has(.prc-ActionList-LeadingVisual-dxXxW){grid-area:leadingVisual}.prc-ActionList-Divider-rsZFG{background:var(--borderColor-muted,var(--color-border-muted));border:0;display:block;height:var(--borderWidth-thin,.0625rem);list-style:none;margin-block-end:var(--base-size-8,.5rem);margin-block-start:calc(var(--base-size-8,.5rem) - var(--borderWidth-thin,.0625rem));padding:0}.prc-ActionList-InactiveButtonReset-3lIQX{background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;padding:0}.prc-ActionList-InactiveWarning-YRMKV{color:var(--fgColor-attention,var(--color-attention-fg));font-size:var(--text-body-size-small,.75rem);grid-row:2/2;line-height:16px}@keyframes prc-ActionList-checkmarkIn-Q8dLp{0%{clip-path:inset(var(--base-size-16,1rem) 0 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes prc-ActionList-checkmarkOut-XHM8j{0%{clip-path:inset(0 0 0 0)}to{clip-path:inset(var(--base-size-16,1rem) 0 0 0)}}
2
+ /*# sourceMappingURL=ActionList-46e9c2db.css.map */