@primer/react 38.1.0-rc.e96ea6506 → 38.1.0-rc.ee8ca60b6
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.
- package/CHANGELOG.md +20 -0
- package/README.md +16 -11
- package/dist/ActionBar/ActionBar.js +308 -148
- package/dist/ActionList/ActionList-46e9c2db.css +2 -0
- package/dist/ActionList/ActionList-46e9c2db.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +3 -1
- package/dist/ActionList/List.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -0
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteInput.js +0 -1
- package/dist/Autocomplete/AutocompleteMenu.js +334 -124
- package/dist/Avatar/Avatar.js +31 -23
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +0 -1
- package/dist/BaseStyles.d.ts +2 -2
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/Button/ButtonBase.d.ts.map +1 -1
- package/dist/Button/ButtonBase.js +0 -1
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/DataTable/Pagination.js +296 -87
- package/dist/DataTable/Table.d.ts +13 -13
- package/dist/DataTable/Table.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts +3 -23
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +19 -4
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +1 -1
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -0
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
- package/dist/FilteredActionList/useAnnouncements.d.ts.map +1 -1
- package/dist/FilteredActionList/useAnnouncements.js +1 -0
- package/dist/Heading/Heading.d.ts.map +1 -1
- package/dist/Heading/Heading.js +0 -1
- package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/LabelGroup/LabelGroup.js +1 -0
- package/dist/Link/Link-968346ff.css +2 -0
- package/dist/Link/Link-968346ff.css.map +1 -0
- package/dist/Link/Link.d.ts +0 -2
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +0 -3
- package/dist/Link/Link.module.css.js +1 -1
- package/dist/PageLayout/PageLayout-28a244f7.css +2 -0
- package/dist/PageLayout/PageLayout-28a244f7.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +535 -448
- package/dist/PageLayout/PageLayout.module.css.js +1 -1
- package/dist/Portal/Portal.d.ts.map +1 -1
- package/dist/Portal/Portal.js +0 -1
- package/dist/SelectPanel/SelectPanel.d.ts +1 -1
- package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/dist/SelectPanel/SelectPanel.js +0 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +31 -23
- package/dist/ThemeProvider.d.ts.map +1 -1
- package/dist/ThemeProvider.js +1 -0
- package/dist/Timeline/Timeline-116393ee.css +2 -0
- package/dist/Timeline/Timeline-116393ee.css.map +1 -0
- package/dist/Timeline/Timeline.module.css.js +1 -1
- package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/Token/IssueLabelToken.js +280 -57
- package/dist/Token/_RemoveTokenButton.d.ts +1 -1
- package/dist/Token/_RemoveTokenButton.d.ts.map +1 -1
- package/dist/Token/_RemoveTokenButton.js +4 -3
- package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
- package/dist/TooltipV2/Tooltip.js +28 -25
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +5 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +0 -1
- package/dist/deprecated/ActionList/Divider.d.ts +1 -0
- package/dist/deprecated/ActionList/Divider.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Group.d.ts +1 -0
- package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Header.d.ts +1 -0
- package/dist/deprecated/ActionList/Header.d.ts.map +1 -1
- package/dist/deprecated/ActionList/List.d.ts.map +1 -1
- package/dist/deprecated/ActionMenu.d.ts +2 -1
- package/dist/deprecated/ActionMenu.d.ts.map +1 -1
- package/dist/deprecated/utils/create-slots.d.ts.map +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +4 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +4 -0
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +0 -1
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +2 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +0 -1
- package/dist/hooks/useFocusZone.d.ts.map +1 -1
- package/dist/hooks/useFocusZone.js +0 -1
- package/dist/hooks/useIsMacOS.d.ts.map +1 -1
- package/dist/hooks/useIsMacOS.js +3 -1
- package/dist/hooks/useMedia.d.ts.map +1 -1
- package/dist/hooks/useMedia.js +12 -27
- package/dist/hooks/useMenuInitialFocus.d.ts.map +1 -1
- package/dist/hooks/useMenuInitialFocus.js +0 -1
- package/dist/hooks/useOnEscapePress.d.ts.map +1 -1
- package/dist/hooks/useOnEscapePress.js +0 -1
- package/dist/hooks/useRenderForcingRef.d.ts.map +1 -1
- package/dist/hooks/useRenderForcingRef.js +37 -7
- package/dist/hooks/useResizeObserver.d.ts.map +1 -1
- package/dist/hooks/useResizeObserver.js +0 -1
- package/dist/hooks/useSafeTimeout.d.ts.map +1 -1
- package/dist/hooks/useSafeTimeout.js +0 -1
- package/dist/hooks/useScrollFlash.d.ts.map +1 -1
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -1
- package/dist/internal/components/ValidationAnimationContainer.d.ts.map +1 -1
- package/dist/internal/hooks/useFocus.d.ts.map +1 -1
- package/dist/internal/hooks/useMergedRefs.d.ts.map +1 -1
- package/dist/internal/hooks/useMergedRefs.js +0 -1
- package/dist/utils/polymorphic.d.ts +1 -0
- package/dist/utils/polymorphic.d.ts.map +1 -1
- package/generated/components.json +8 -32
- package/package.json +18 -17
- package/dist/ActionList/ActionList-167cf6c7.css +0 -2
- package/dist/ActionList/ActionList-167cf6c7.css.map +0 -1
- package/dist/Link/Link-e01bdaee.css +0 -2
- package/dist/Link/Link-e01bdaee.css.map +0 -1
- package/dist/PageLayout/PageLayout-1849f083.css +0 -2
- package/dist/PageLayout/PageLayout-1849f083.css.map +0 -1
- package/dist/Timeline/Timeline-e8e88a13.css +0 -2
- package/dist/Timeline/Timeline-e8e88a13.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,28 @@
|
|
|
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
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#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.
|
|
16
|
+
|
|
17
|
+
- [#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.
|
|
18
|
+
|
|
19
|
+
- [#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
|
|
20
|
+
|
|
21
|
+
- [#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
|
|
22
|
+
|
|
23
|
+
- [#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
|
|
24
|
+
|
|
25
|
+
- [#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
|
|
26
|
+
|
|
27
|
+
- [#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)
|
|
28
|
+
|
|
9
29
|
## 38.0.0
|
|
10
30
|
|
|
11
31
|
### 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
|
|
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
|
|
37
|
+
yarn add @primer/react @primer/primitives
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
This command will install
|
|
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
|
-
`
|
|
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
|
|
68
|
+
import {BaseStyles} from '@primer/react'
|
|
70
69
|
|
|
71
70
|
function RootLayout() {
|
|
72
71
|
return (
|
|
73
|
-
<
|
|
74
|
-
<
|
|
75
|
-
|
|
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,
|
|
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 {
|
|
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
|
|
91
|
+
size: t0,
|
|
91
92
|
children,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
flush
|
|
93
|
+
"aria-label": ariaLabel,
|
|
94
|
+
"aria-labelledby": ariaLabelledBy,
|
|
95
|
+
flush: t1,
|
|
95
96
|
className,
|
|
96
|
-
gap
|
|
97
|
+
gap: t2
|
|
97
98
|
} = props;
|
|
98
|
-
|
|
99
|
-
|
|
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(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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) ===
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
|
|
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:
|
|
388
|
+
className: t16,
|
|
176
389
|
"data-flush": flush,
|
|
177
|
-
children:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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 */
|