@primer/react 0.0.0-20260421162327 → 0.0.0-20260422153257
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 +1 -3
- package/dist/ActionBar/ActionBar-a41224b2.css +2 -0
- package/dist/ActionBar/ActionBar-a41224b2.css.map +1 -0
- package/dist/ActionBar/ActionBar.d.ts +1 -1
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +380 -293
- package/dist/ActionBar/ActionBar.module.css.js +2 -2
- package/dist/ActionBar/index.d.ts +1 -1
- package/dist/ActionList/index.d.ts +4 -0
- package/dist/ActionList/index.d.ts.map +1 -1
- package/dist/ActionList/index.js +3 -1
- package/dist/FilteredActionList/index.d.ts +6 -1
- package/dist/FilteredActionList/index.d.ts.map +1 -1
- package/dist/FilteredActionList/index.js +9 -0
- package/dist/SelectPanel/SelectPanel.js +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/experimental/index.js +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/dist/ActionBar/ActionBar-3f7b52a3.css +0 -2
- package/dist/ActionBar/ActionBar-3f7b52a3.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260422153257
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- [#7760](https://github.com/primer/react/pull/7760) [`b2e0efd`](https://github.com/primer/react/commit/b2e0efd04c61e526d8e7db6bc773f9b4ab155d72) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Deprecate the `useResponsiveValue` hook.
|
|
8
8
|
|
|
9
|
-
- [#7655](https://github.com/primer/react/pull/7655) [`8f1f205`](https://github.com/primer/react/commit/8f1f205a637939eb167095b4ac766cf6524ac558) Thanks [@iansan5653](https://github.com/iansan5653)! - Replace `ActionBar` overflow calculations with CSS wrapping approach to improve performance and stability
|
|
10
|
-
|
|
11
9
|
### Patch Changes
|
|
12
10
|
|
|
13
11
|
- [#7754](https://github.com/primer/react/pull/7754) [`9e3fe4b`](https://github.com/primer/react/commit/9e3fe4b501ce5affb558bf92697e5c79341903ca) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Breadcrumbs: On narrow viewports, only show the current page breadcrumb and the overflow menu when `overflow="menu"` is set.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-ActionBar-List-9uz46{align-items:center;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));list-style:none;margin-bottom:-1px;min-width:0;position:relative;white-space:nowrap}.prc-ActionBar-List-9uz46:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-9uz46:where([data-gap=none]) .prc-ActionBar-Divider-6V8yH{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-Nav-9spON{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-9spON:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-6V8yH:before{background:var(--borderColor-muted,#d1d9e0b3);content:"";display:block;height:var(--base-size-20,1.25rem);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk{display:flex;gap:inherit}
|
|
2
|
+
/*# sourceMappingURL=ActionBar-a41224b2.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BAUE,kBAAmB,CARnB,YAAa,CASb,yDAAqD,CAFrD,eAAgB,CAFhB,kBAAmB,CAJnB,WAAY,CAFZ,iBAAkB,CAOlB,kBAiBF,CAXE,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAGF,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6CAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAD3B,sCAKF,CAGF,2BACE,YAAa,CACb,WACF","file":"ActionBar-a41224b2.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n white-space: nowrap;\n list-style: none;\n align-items: center;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n"]}
|
|
@@ -120,6 +120,6 @@ export declare const ActionBarMenu: React.ForwardRefExoticComponent<{
|
|
|
120
120
|
keyshortcuts?: string;
|
|
121
121
|
keybindingHint?: string | string[];
|
|
122
122
|
} & Omit<import("..").ButtonBaseProps, "aria-label" | "aria-labelledby"> & React.RefAttributes<unknown>>;
|
|
123
|
-
export declare const VerticalDivider: () => React.JSX.Element;
|
|
123
|
+
export declare const VerticalDivider: () => React.JSX.Element | null;
|
|
124
124
|
export {};
|
|
125
125
|
//# sourceMappingURL=ActionBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../src/ActionBar/ActionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2D,MAAM,OAAO,CAAA;AAE/E,OAAO,EAAa,KAAK,mBAAmB,EAAC,MAAM,eAAe,CAAA;AAKlE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAkD9C,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExC,KAAK,SAAS,GACV;IACE,wDAAwD;IACxD,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAA;IAChD,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAC9B,GACD;IACE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;CAC3D,CAAA;AAEL,KAAK,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG;IAC3B;;;SAGK;IACL,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB;;;SAGK;IACL,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAA;CACf,GAAG,SAAS,CAAA;AAEb,MAAM,MAAM,wBAAwB,GAAG;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,eAAe,CAAA;AAE7E,MAAM,MAAM,sBAAsB,GAC9B,CAAC;IACC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;;OAGG;IACH,QAAQ,CAAC,EA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CAAC;;;;;;;;;;;wGAya9C,CAAA;AAED,eAAO,MAAM,eAAe,gCAY3B,CAAA"}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useRef, useState, forwardRef, useMemo, useCallback } from 'react';
|
|
3
3
|
import { KebabHorizontalIcon } from '@primer/octicons-react';
|
|
4
4
|
import { ActionList } from '../ActionList/index.js';
|
|
5
|
+
import useIsomorphicLayoutEffect from '../utils/useIsomorphicLayoutEffect.js';
|
|
6
|
+
import { useResizeObserver } from '../hooks/useResizeObserver.js';
|
|
5
7
|
import { IconButton } from '../Button/IconButton.js';
|
|
6
8
|
import { useFocusZone } from '../hooks/useFocusZone.js';
|
|
7
9
|
import styles from './ActionBar.module.css.js';
|
|
8
10
|
import { clsx } from 'clsx';
|
|
9
11
|
import { createDescendantRegistry } from '../utils/descendant-registry.js';
|
|
10
|
-
import {
|
|
12
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
13
|
import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
|
|
12
14
|
import { FocusKeys } from '@primer/behaviors';
|
|
13
15
|
import { ActionMenu } from '../ActionMenu/ActionMenu.js';
|
|
14
16
|
|
|
17
|
+
const ACTIONBAR_ITEM_GAP = 8;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registry of descendants to render in the list or menu. To preserve insertion order across updates, children are
|
|
21
|
+
* set to `null` when unregistered rather than fully dropped from the map.
|
|
22
|
+
*/
|
|
23
|
+
|
|
15
24
|
const ActionBarContext = /*#__PURE__*/React.createContext({
|
|
16
25
|
size: 'medium',
|
|
26
|
+
isVisibleChild: () => true,
|
|
17
27
|
groupId: undefined
|
|
18
28
|
});
|
|
19
29
|
|
|
@@ -21,8 +31,23 @@ const ActionBarContext = /*#__PURE__*/React.createContext({
|
|
|
21
31
|
small (28px), medium (32px), large (40px)
|
|
22
32
|
*/
|
|
23
33
|
|
|
34
|
+
const MORE_BTN_WIDTH = 32;
|
|
24
35
|
const ActionBarItemsRegistry = createDescendantRegistry();
|
|
25
|
-
const
|
|
36
|
+
const calculatePossibleItems = (registryEntries, navWidth, gap, moreMenuWidth = 0) => {
|
|
37
|
+
const widthToFit = navWidth - moreMenuWidth;
|
|
38
|
+
let breakpoint = registryEntries.length; // assume all items will fit
|
|
39
|
+
let sumsOfChildWidth = 0;
|
|
40
|
+
for (const [index, [, child]] of registryEntries.entries()) {
|
|
41
|
+
sumsOfChildWidth += index > 0 ? child.width + gap : child.width;
|
|
42
|
+
if (sumsOfChildWidth > widthToFit) {
|
|
43
|
+
breakpoint = index;
|
|
44
|
+
break;
|
|
45
|
+
} else {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return breakpoint;
|
|
50
|
+
};
|
|
26
51
|
const renderMenuItem = (item, index) => {
|
|
27
52
|
if (item.type === 'divider') {
|
|
28
53
|
return /*#__PURE__*/jsx(ActionList.Divider, {}, index);
|
|
@@ -71,255 +96,327 @@ const renderMenuItem = (item, index) => {
|
|
|
71
96
|
}, label);
|
|
72
97
|
};
|
|
73
98
|
renderMenuItem.displayName = "renderMenuItem";
|
|
74
|
-
const
|
|
75
|
-
|
|
99
|
+
const getMenuItems = (navWidth, moreMenuWidth, childRegistry, hasActiveMenu, gap) => {
|
|
100
|
+
var _childRegistry$entrie;
|
|
101
|
+
const registryEntries = Array.from((_childRegistry$entrie = childRegistry === null || childRegistry === void 0 ? void 0 : childRegistry.entries()) !== null && _childRegistry$entrie !== void 0 ? _childRegistry$entrie : []).filter(entry => entry[1] !== null && (entry[1].type !== 'action' || entry[1].groupId === undefined));
|
|
102
|
+
if (registryEntries.length === 0) return new Set();
|
|
103
|
+
const numberOfItemsPossible = calculatePossibleItems(registryEntries, navWidth, gap);
|
|
104
|
+
const numberOfItemsPossibleWithMoreMenu = calculatePossibleItems(registryEntries, navWidth, gap, moreMenuWidth || MORE_BTN_WIDTH);
|
|
105
|
+
const menuItems = new Set();
|
|
106
|
+
|
|
107
|
+
// First, we check if we can fit all the items with their icons
|
|
108
|
+
if (registryEntries.length >= numberOfItemsPossible) {
|
|
109
|
+
/* Below is an accessibility requirement. Never show only one item in the overflow menu.
|
|
110
|
+
* If there is only one item left to display in the overflow menu according to the calculation,
|
|
111
|
+
* we need to pull another item from the list into the overflow menu.
|
|
112
|
+
*/
|
|
113
|
+
const numberOfItemsInMenu = registryEntries.length - numberOfItemsPossibleWithMoreMenu;
|
|
114
|
+
const numberOfListItems = numberOfItemsInMenu === 1 ? numberOfItemsPossibleWithMoreMenu - 1 : numberOfItemsPossibleWithMoreMenu;
|
|
115
|
+
for (const [index, [id, child]] of registryEntries.entries()) {
|
|
116
|
+
if (index < numberOfListItems) {
|
|
117
|
+
continue;
|
|
118
|
+
//if the last item is a divider
|
|
119
|
+
} else if (child.type === 'divider') {
|
|
120
|
+
if (index === numberOfListItems - 1 || index === numberOfListItems) {
|
|
121
|
+
continue;
|
|
122
|
+
} else {
|
|
123
|
+
menuItems.add(id);
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
menuItems.add(id);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return menuItems;
|
|
130
|
+
} else if (numberOfItemsPossible > registryEntries.length && hasActiveMenu) {
|
|
131
|
+
/* If the items fit in the list and there are items in the overflow menu, we need to move them back to the list */
|
|
132
|
+
return new Set();
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const ActionBar = props => {
|
|
136
|
+
const $ = c(38);
|
|
76
137
|
const {
|
|
77
|
-
size:
|
|
138
|
+
size: t0,
|
|
78
139
|
children,
|
|
79
140
|
"aria-label": ariaLabel,
|
|
80
141
|
"aria-labelledby": ariaLabelledBy,
|
|
81
|
-
flush:
|
|
142
|
+
flush: t1,
|
|
82
143
|
className,
|
|
83
|
-
gap:
|
|
84
|
-
} =
|
|
85
|
-
const size =
|
|
86
|
-
const flush =
|
|
87
|
-
const gap =
|
|
144
|
+
gap: t2
|
|
145
|
+
} = props;
|
|
146
|
+
const size = t0 === undefined ? "medium" : t0;
|
|
147
|
+
const flush = t1 === undefined ? false : t1;
|
|
148
|
+
const gap = t2 === undefined ? "condensed" : t2;
|
|
149
|
+
const listRef = useRef(null);
|
|
150
|
+
const [computedGap, setComputedGap] = useState(ACTIONBAR_ITEM_GAP);
|
|
88
151
|
const [childRegistry, setChildRegistry] = ActionBarItemsRegistry.useRegistryState();
|
|
152
|
+
const [menuItemIds, setMenuItemIds] = useState(_temp);
|
|
153
|
+
const navRef = useRef(null);
|
|
154
|
+
let t3;
|
|
155
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
156
|
+
t3 = () => {
|
|
157
|
+
if (!listRef.current) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
const g = window.getComputedStyle(listRef.current).gap;
|
|
161
|
+
const parsed = parseFloat(g);
|
|
162
|
+
if (!Number.isNaN(parsed)) {
|
|
163
|
+
setComputedGap(parsed);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
$[0] = t3;
|
|
167
|
+
} else {
|
|
168
|
+
t3 = $[0];
|
|
169
|
+
}
|
|
89
170
|
let t4;
|
|
90
|
-
if ($[
|
|
91
|
-
t4 =
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
171
|
+
if ($[1] !== gap) {
|
|
172
|
+
t4 = [gap];
|
|
173
|
+
$[1] = gap;
|
|
174
|
+
$[2] = t4;
|
|
94
175
|
} else {
|
|
95
|
-
t4 = $[
|
|
176
|
+
t4 = $[2];
|
|
96
177
|
}
|
|
97
|
-
|
|
178
|
+
useIsomorphicLayoutEffect(t3, t4);
|
|
179
|
+
const moreMenuRef = useRef(null);
|
|
98
180
|
let t5;
|
|
99
|
-
if ($[
|
|
100
|
-
t5 = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
181
|
+
if ($[3] !== childRegistry || $[4] !== computedGap || $[5] !== menuItemIds.size) {
|
|
182
|
+
t5 = resizeObserverEntries => {
|
|
183
|
+
var _moreMenuRef$current$, _moreMenuRef$current;
|
|
184
|
+
const navWidth = resizeObserverEntries[0].contentRect.width;
|
|
185
|
+
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;
|
|
186
|
+
const hasActiveMenu = menuItemIds.size > 0;
|
|
187
|
+
if (navWidth > 0) {
|
|
188
|
+
const newMenuItemIds = getMenuItems(navWidth, moreMenuWidth, childRegistry, hasActiveMenu, computedGap);
|
|
189
|
+
if (newMenuItemIds) {
|
|
190
|
+
setMenuItemIds(newMenuItemIds);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
104
193
|
};
|
|
105
|
-
$[
|
|
194
|
+
$[3] = childRegistry;
|
|
195
|
+
$[4] = computedGap;
|
|
196
|
+
$[5] = menuItemIds.size;
|
|
197
|
+
$[6] = t5;
|
|
106
198
|
} else {
|
|
107
|
-
t5 = $[
|
|
199
|
+
t5 = $[6];
|
|
108
200
|
}
|
|
201
|
+
useResizeObserver(t5, navRef);
|
|
109
202
|
let t6;
|
|
110
|
-
if ($[
|
|
111
|
-
t6 =
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
203
|
+
if ($[7] !== menuItemIds) {
|
|
204
|
+
t6 = id => !menuItemIds.has(id);
|
|
205
|
+
$[7] = menuItemIds;
|
|
206
|
+
$[8] = t6;
|
|
114
207
|
} else {
|
|
115
|
-
t6 = $[
|
|
208
|
+
t6 = $[8];
|
|
116
209
|
}
|
|
117
|
-
const
|
|
118
|
-
containerRef
|
|
119
|
-
} = useFocusZone(t5, t6);
|
|
210
|
+
const isVisibleChild = t6;
|
|
120
211
|
let t7;
|
|
121
|
-
if ($[
|
|
212
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
122
213
|
t7 = {
|
|
123
|
-
|
|
214
|
+
containerRef: listRef,
|
|
215
|
+
bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
|
|
216
|
+
focusOutBehavior: "wrap"
|
|
124
217
|
};
|
|
125
|
-
$[
|
|
126
|
-
$[6] = t7;
|
|
218
|
+
$[9] = t7;
|
|
127
219
|
} else {
|
|
128
|
-
t7 = $[
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
$[9] = t11;
|
|
144
|
-
} else {
|
|
145
|
-
t11 = $[9];
|
|
146
|
-
}
|
|
147
|
-
let t12;
|
|
148
|
-
if ($[10] !== children || $[11] !== setChildRegistry) {
|
|
149
|
-
t12 = /*#__PURE__*/jsxs("div", {
|
|
150
|
-
className: styles.OverflowContainer,
|
|
151
|
-
children: [t11, /*#__PURE__*/jsx(ActionBarItemsRegistry.Provider, {
|
|
152
|
-
setRegistry: setChildRegistry,
|
|
153
|
-
children: children
|
|
154
|
-
})]
|
|
155
|
-
});
|
|
156
|
-
$[10] = children;
|
|
157
|
-
$[11] = setChildRegistry;
|
|
158
|
-
$[12] = t12;
|
|
220
|
+
t7 = $[9];
|
|
221
|
+
}
|
|
222
|
+
useFocusZone(t7);
|
|
223
|
+
let groupedItemsMap;
|
|
224
|
+
if ($[10] !== childRegistry) {
|
|
225
|
+
groupedItemsMap = new Map();
|
|
226
|
+
for (const [key, childProps] of childRegistry !== null && childRegistry !== void 0 ? childRegistry : []) {
|
|
227
|
+
if (childProps.type === "action" && childProps.groupId) {
|
|
228
|
+
const existingGroup = groupedItemsMap.get(childProps.groupId) || [];
|
|
229
|
+
existingGroup.push([key, childProps]);
|
|
230
|
+
groupedItemsMap.set(childProps.groupId, existingGroup);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
$[10] = childRegistry;
|
|
234
|
+
$[11] = groupedItemsMap;
|
|
159
235
|
} else {
|
|
160
|
-
|
|
236
|
+
groupedItemsMap = $[11];
|
|
161
237
|
}
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
icon: KebabHorizontalIcon,
|
|
171
|
-
className: styles.MoreButton,
|
|
172
|
-
"data-more-button-inactive": t14,
|
|
173
|
-
size: size
|
|
174
|
-
})
|
|
175
|
-
});
|
|
238
|
+
const groupedItems = groupedItemsMap;
|
|
239
|
+
let t8;
|
|
240
|
+
if ($[12] !== isVisibleChild || $[13] !== size) {
|
|
241
|
+
t8 = {
|
|
242
|
+
size,
|
|
243
|
+
isVisibleChild
|
|
244
|
+
};
|
|
245
|
+
$[12] = isVisibleChild;
|
|
176
246
|
$[13] = size;
|
|
177
|
-
$[14] =
|
|
178
|
-
$[15] = t14;
|
|
179
|
-
$[16] = t15;
|
|
247
|
+
$[14] = t8;
|
|
180
248
|
} else {
|
|
181
|
-
|
|
249
|
+
t8 = $[14];
|
|
182
250
|
}
|
|
183
|
-
let
|
|
184
|
-
if ($[
|
|
185
|
-
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
251
|
+
let t9;
|
|
252
|
+
if ($[15] !== className) {
|
|
253
|
+
t9 = clsx(className, styles.Nav);
|
|
254
|
+
$[15] = className;
|
|
255
|
+
$[16] = t9;
|
|
188
256
|
} else {
|
|
189
|
-
|
|
257
|
+
t9 = $[16];
|
|
190
258
|
}
|
|
191
|
-
let
|
|
192
|
-
if ($[
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
})
|
|
259
|
+
let t10;
|
|
260
|
+
if ($[17] !== children || $[18] !== setChildRegistry) {
|
|
261
|
+
t10 = /*#__PURE__*/jsx(ActionBarItemsRegistry.Provider, {
|
|
262
|
+
setRegistry: setChildRegistry,
|
|
263
|
+
children: children
|
|
197
264
|
});
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
265
|
+
$[17] = children;
|
|
266
|
+
$[18] = setChildRegistry;
|
|
267
|
+
$[19] = t10;
|
|
200
268
|
} else {
|
|
201
|
-
|
|
269
|
+
t10 = $[19];
|
|
202
270
|
}
|
|
203
|
-
let
|
|
204
|
-
if ($[21] !==
|
|
205
|
-
|
|
206
|
-
children: [
|
|
271
|
+
let t11;
|
|
272
|
+
if ($[20] !== ariaLabel || $[21] !== childRegistry || $[22] !== groupedItems || $[23] !== menuItemIds) {
|
|
273
|
+
t11 = menuItemIds.size > 0 && /*#__PURE__*/jsxs(ActionMenu, {
|
|
274
|
+
children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
|
|
275
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
276
|
+
variant: "invisible",
|
|
277
|
+
"aria-label": `More ${ariaLabel} items`,
|
|
278
|
+
icon: KebabHorizontalIcon
|
|
279
|
+
})
|
|
280
|
+
}), /*#__PURE__*/jsx(ActionMenu.Overlay, {
|
|
281
|
+
children: /*#__PURE__*/jsx(ActionList, {
|
|
282
|
+
children: Array.from(menuItemIds).map(id_0 => {
|
|
283
|
+
const menuItem = childRegistry === null || childRegistry === void 0 ? void 0 : childRegistry.get(id_0);
|
|
284
|
+
if (!menuItem) {
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
287
|
+
if (menuItem.type === "divider") {
|
|
288
|
+
return /*#__PURE__*/jsx(ActionList.Divider, {}, id_0);
|
|
289
|
+
} else {
|
|
290
|
+
if (menuItem.type === "action") {
|
|
291
|
+
const {
|
|
292
|
+
onClick,
|
|
293
|
+
icon: Icon,
|
|
294
|
+
label,
|
|
295
|
+
disabled
|
|
296
|
+
} = menuItem;
|
|
297
|
+
return /*#__PURE__*/jsxs(ActionList.Item, {
|
|
298
|
+
onSelect: event => {
|
|
299
|
+
typeof onClick === "function" && onClick(event);
|
|
300
|
+
},
|
|
301
|
+
disabled: disabled,
|
|
302
|
+
children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
|
|
303
|
+
children: /*#__PURE__*/jsx(Icon, {})
|
|
304
|
+
}), label]
|
|
305
|
+
}, label);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (menuItem.type === "menu") {
|
|
309
|
+
const menuItems = menuItem.items;
|
|
310
|
+
const {
|
|
311
|
+
icon: Icon_0,
|
|
312
|
+
label: label_0,
|
|
313
|
+
returnFocusRef
|
|
314
|
+
} = menuItem;
|
|
315
|
+
return /*#__PURE__*/jsxs(ActionMenu, {
|
|
316
|
+
children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
|
|
317
|
+
children: /*#__PURE__*/jsxs(ActionList.Item, {
|
|
318
|
+
children: [Icon_0 !== "none" ? /*#__PURE__*/jsx(ActionList.LeadingVisual, {
|
|
319
|
+
children: /*#__PURE__*/jsx(Icon_0, {})
|
|
320
|
+
}) : null, label_0]
|
|
321
|
+
})
|
|
322
|
+
}), /*#__PURE__*/jsx(ActionMenu.Overlay, {
|
|
323
|
+
...(returnFocusRef && {
|
|
324
|
+
returnFocusRef
|
|
325
|
+
}),
|
|
326
|
+
children: /*#__PURE__*/jsx(ActionList, {
|
|
327
|
+
children: menuItems.map(_temp2)
|
|
328
|
+
})
|
|
329
|
+
})]
|
|
330
|
+
}, id_0);
|
|
331
|
+
}
|
|
332
|
+
const groupedMenuItems = groupedItems.get(id_0) || [];
|
|
333
|
+
if (menuItem.type === "group") {
|
|
334
|
+
return /*#__PURE__*/jsx(React.Fragment, {
|
|
335
|
+
children: groupedMenuItems.map(_temp3)
|
|
336
|
+
}, id_0);
|
|
337
|
+
}
|
|
338
|
+
})
|
|
339
|
+
})
|
|
340
|
+
})]
|
|
207
341
|
});
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
342
|
+
$[20] = ariaLabel;
|
|
343
|
+
$[21] = childRegistry;
|
|
344
|
+
$[22] = groupedItems;
|
|
345
|
+
$[23] = menuItemIds;
|
|
346
|
+
$[24] = t11;
|
|
211
347
|
} else {
|
|
212
|
-
|
|
348
|
+
t11 = $[24];
|
|
213
349
|
}
|
|
214
|
-
let
|
|
215
|
-
if ($[
|
|
216
|
-
|
|
217
|
-
ref:
|
|
350
|
+
let t12;
|
|
351
|
+
if ($[25] !== ariaLabel || $[26] !== ariaLabelledBy || $[27] !== gap || $[28] !== t10 || $[29] !== t11) {
|
|
352
|
+
t12 = /*#__PURE__*/jsxs("div", {
|
|
353
|
+
ref: listRef,
|
|
218
354
|
role: "toolbar",
|
|
219
355
|
className: styles.List,
|
|
220
356
|
"aria-label": ariaLabel,
|
|
221
357
|
"aria-labelledby": ariaLabelledBy,
|
|
222
358
|
"data-gap": gap,
|
|
223
|
-
|
|
224
|
-
"data-has-overflow": t10,
|
|
225
|
-
children: [t12, t18]
|
|
359
|
+
children: [t10, t11]
|
|
226
360
|
});
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[27] = size;
|
|
361
|
+
$[25] = ariaLabel;
|
|
362
|
+
$[26] = ariaLabelledBy;
|
|
363
|
+
$[27] = gap;
|
|
231
364
|
$[28] = t10;
|
|
232
|
-
$[29] =
|
|
233
|
-
$[30] =
|
|
234
|
-
$[31] = t9;
|
|
235
|
-
$[32] = t19;
|
|
365
|
+
$[29] = t11;
|
|
366
|
+
$[30] = t12;
|
|
236
367
|
} else {
|
|
237
|
-
|
|
368
|
+
t12 = $[30];
|
|
238
369
|
}
|
|
239
|
-
let
|
|
240
|
-
if ($[
|
|
241
|
-
|
|
242
|
-
|
|
370
|
+
let t13;
|
|
371
|
+
if ($[31] !== flush || $[32] !== t12 || $[33] !== t9) {
|
|
372
|
+
t13 = /*#__PURE__*/jsx("div", {
|
|
373
|
+
ref: navRef,
|
|
374
|
+
className: t9,
|
|
243
375
|
"data-flush": flush,
|
|
244
|
-
children:
|
|
376
|
+
children: t12
|
|
245
377
|
});
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
378
|
+
$[31] = flush;
|
|
379
|
+
$[32] = t12;
|
|
380
|
+
$[33] = t9;
|
|
381
|
+
$[34] = t13;
|
|
250
382
|
} else {
|
|
251
|
-
|
|
383
|
+
t13 = $[34];
|
|
252
384
|
}
|
|
253
|
-
let
|
|
254
|
-
if ($[
|
|
255
|
-
|
|
256
|
-
value:
|
|
257
|
-
children:
|
|
385
|
+
let t14;
|
|
386
|
+
if ($[35] !== t13 || $[36] !== t8) {
|
|
387
|
+
t14 = /*#__PURE__*/jsx(ActionBarContext.Provider, {
|
|
388
|
+
value: t8,
|
|
389
|
+
children: t13
|
|
258
390
|
});
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
391
|
+
$[35] = t13;
|
|
392
|
+
$[36] = t8;
|
|
393
|
+
$[37] = t14;
|
|
262
394
|
} else {
|
|
263
|
-
|
|
395
|
+
t14 = $[37];
|
|
264
396
|
}
|
|
265
|
-
return
|
|
397
|
+
return t14;
|
|
266
398
|
};
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
const isGroupOverflowing = (_useContext = useContext(ActionBarGroupContext)) === null || _useContext === void 0 ? void 0 : _useContext.isOverflowing;
|
|
271
|
-
const isInGroup = isGroupOverflowing !== undefined;
|
|
399
|
+
function useWidth(ref) {
|
|
400
|
+
const $ = c(3);
|
|
401
|
+
const [width, setWidth] = useState(-1);
|
|
272
402
|
let t0;
|
|
273
|
-
if ($[0] !== isInGroup || $[1] !== ref) {
|
|
274
|
-
t0 = onChange => {
|
|
275
|
-
if (isInGroup) {
|
|
276
|
-
return _temp5;
|
|
277
|
-
}
|
|
278
|
-
const observer = new IntersectionObserver(() => onChange(), {
|
|
279
|
-
threshold: 1
|
|
280
|
-
});
|
|
281
|
-
if (ref.current) {
|
|
282
|
-
observer.observe(ref.current);
|
|
283
|
-
}
|
|
284
|
-
return () => observer.disconnect();
|
|
285
|
-
};
|
|
286
|
-
$[0] = isInGroup;
|
|
287
|
-
$[1] = ref;
|
|
288
|
-
$[2] = t0;
|
|
289
|
-
} else {
|
|
290
|
-
t0 = $[2];
|
|
291
|
-
}
|
|
292
|
-
const subscribeIntersectionObserver = t0;
|
|
293
403
|
let t1;
|
|
294
|
-
if ($[
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
} else {
|
|
299
|
-
t1 = $[4];
|
|
300
|
-
}
|
|
301
|
-
const isItemOverflowing = useSyncExternalStore(subscribeIntersectionObserver, t1, _temp6);
|
|
302
|
-
const isOverflowing = isGroupOverflowing || isItemOverflowing;
|
|
303
|
-
ActionBarItemsRegistry.useRegisterDescendant(isOverflowing ? registryProps : null);
|
|
304
|
-
const t2 = isOverflowing ? "" : undefined;
|
|
305
|
-
let t3;
|
|
306
|
-
if ($[5] !== isOverflowing || $[6] !== t2) {
|
|
307
|
-
t3 = {
|
|
308
|
-
isOverflowing,
|
|
309
|
-
dataOverflowingAttr: t2
|
|
404
|
+
if ($[0] !== ref) {
|
|
405
|
+
t0 = () => {
|
|
406
|
+
var _ref$current$getBound, _ref$current;
|
|
407
|
+
return setWidth((_ref$current$getBound = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getBoundingClientRect().width) !== null && _ref$current$getBound !== void 0 ? _ref$current$getBound : -1);
|
|
310
408
|
};
|
|
311
|
-
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
409
|
+
t1 = [ref];
|
|
410
|
+
$[0] = ref;
|
|
411
|
+
$[1] = t0;
|
|
412
|
+
$[2] = t1;
|
|
314
413
|
} else {
|
|
315
|
-
|
|
414
|
+
t0 = $[1];
|
|
415
|
+
t1 = $[2];
|
|
316
416
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
function _temp6() {
|
|
320
|
-
return false;
|
|
417
|
+
useIsomorphicLayoutEffect(t0, t1);
|
|
418
|
+
return width;
|
|
321
419
|
}
|
|
322
|
-
function _temp5() {}
|
|
323
420
|
const ActionBarIconButton = /*#__PURE__*/forwardRef(({
|
|
324
421
|
disabled,
|
|
325
422
|
onClick,
|
|
@@ -328,36 +425,44 @@ const ActionBarIconButton = /*#__PURE__*/forwardRef(({
|
|
|
328
425
|
const ref = useRef(null);
|
|
329
426
|
useRefObjectAsForwardedRef(forwardedRef, ref);
|
|
330
427
|
const {
|
|
331
|
-
size
|
|
428
|
+
size,
|
|
429
|
+
isVisibleChild
|
|
332
430
|
} = React.useContext(ActionBarContext);
|
|
431
|
+
const {
|
|
432
|
+
groupId
|
|
433
|
+
} = React.useContext(ActionBarGroupContext);
|
|
434
|
+
const width = useWidth(ref);
|
|
333
435
|
const {
|
|
334
436
|
['aria-label']: ariaLabel,
|
|
335
437
|
icon
|
|
336
438
|
} = props;
|
|
337
|
-
const {
|
|
338
|
-
dataOverflowingAttr
|
|
339
|
-
} = useActionBarItem(ref, useMemo(() => ({
|
|
439
|
+
const registryProps = useMemo(() => ({
|
|
340
440
|
type: 'action',
|
|
341
441
|
label: ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : '',
|
|
342
442
|
icon,
|
|
343
443
|
disabled: !!disabled,
|
|
344
|
-
onClick: onClick
|
|
345
|
-
|
|
444
|
+
onClick: onClick,
|
|
445
|
+
width,
|
|
446
|
+
groupId: groupId !== null && groupId !== void 0 ? groupId : undefined
|
|
447
|
+
}), [ariaLabel, icon, disabled, onClick, groupId, width]);
|
|
448
|
+
const id = ActionBarItemsRegistry.useRegisterDescendant(registryProps);
|
|
346
449
|
const clickHandler = useCallback(event => {
|
|
347
450
|
if (disabled) return;
|
|
348
451
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
349
452
|
}, [disabled, onClick]);
|
|
453
|
+
if (!isVisibleChild(id) || groupId && !isVisibleChild(groupId)) return null;
|
|
350
454
|
return /*#__PURE__*/jsx(IconButton, {
|
|
351
455
|
"aria-disabled": disabled,
|
|
352
456
|
ref: ref,
|
|
353
457
|
size: size,
|
|
354
458
|
onClick: clickHandler,
|
|
355
459
|
...props,
|
|
356
|
-
variant: "invisible"
|
|
357
|
-
"data-overflowing": dataOverflowingAttr
|
|
460
|
+
variant: "invisible"
|
|
358
461
|
});
|
|
359
462
|
});
|
|
360
|
-
const ActionBarGroupContext = /*#__PURE__*/React.createContext(
|
|
463
|
+
const ActionBarGroupContext = /*#__PURE__*/React.createContext({
|
|
464
|
+
groupId: null
|
|
465
|
+
});
|
|
361
466
|
const ActionBarGroup = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
362
467
|
const $ = c(10);
|
|
363
468
|
const {
|
|
@@ -365,39 +470,38 @@ const ActionBarGroup = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
365
470
|
} = t0;
|
|
366
471
|
const backupRef = useRef(null);
|
|
367
472
|
const ref = forwardedRef !== null && forwardedRef !== void 0 ? forwardedRef : backupRef;
|
|
473
|
+
const width = useWidth(ref);
|
|
368
474
|
let t1;
|
|
369
|
-
if ($[0]
|
|
475
|
+
if ($[0] !== width) {
|
|
370
476
|
t1 = {
|
|
371
|
-
type: "group"
|
|
477
|
+
type: "group",
|
|
478
|
+
width
|
|
372
479
|
};
|
|
373
|
-
$[0] =
|
|
480
|
+
$[0] = width;
|
|
481
|
+
$[1] = t1;
|
|
374
482
|
} else {
|
|
375
|
-
t1 = $[
|
|
483
|
+
t1 = $[1];
|
|
376
484
|
}
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
isOverflowing
|
|
380
|
-
} = useActionBarItem(ref, t1);
|
|
485
|
+
const registryProps = t1;
|
|
486
|
+
const id = ActionBarItemsRegistry.useRegisterDescendant(registryProps);
|
|
381
487
|
let t2;
|
|
382
|
-
if ($[
|
|
488
|
+
if ($[2] !== id) {
|
|
383
489
|
t2 = {
|
|
384
|
-
|
|
490
|
+
groupId: id
|
|
385
491
|
};
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
492
|
+
$[2] = id;
|
|
493
|
+
$[3] = t2;
|
|
388
494
|
} else {
|
|
389
|
-
t2 = $[
|
|
495
|
+
t2 = $[3];
|
|
390
496
|
}
|
|
391
497
|
let t3;
|
|
392
|
-
if ($[
|
|
498
|
+
if ($[4] !== children || $[5] !== ref) {
|
|
393
499
|
t3 = /*#__PURE__*/jsx("div", {
|
|
394
500
|
className: styles.Group,
|
|
395
501
|
ref: ref,
|
|
396
|
-
"data-overflowing": dataOverflowingAttr,
|
|
397
502
|
children: children
|
|
398
503
|
});
|
|
399
|
-
$[
|
|
400
|
-
$[4] = dataOverflowingAttr;
|
|
504
|
+
$[4] = children;
|
|
401
505
|
$[5] = ref;
|
|
402
506
|
$[6] = t3;
|
|
403
507
|
} else {
|
|
@@ -451,12 +555,17 @@ const ActionBarMenu = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
451
555
|
}
|
|
452
556
|
const backupRef = useRef(null);
|
|
453
557
|
const ref = forwardedRef !== null && forwardedRef !== void 0 ? forwardedRef : backupRef;
|
|
558
|
+
const {
|
|
559
|
+
isVisibleChild
|
|
560
|
+
} = React.useContext(ActionBarContext);
|
|
454
561
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
562
|
+
const width = useWidth(ref);
|
|
455
563
|
const t1 = overflowIcon ? overflowIcon : icon;
|
|
456
564
|
let t2;
|
|
457
|
-
if ($[7] !== ariaLabel || $[8] !== items || $[9] !== returnFocusRef || $[10] !== t1) {
|
|
565
|
+
if ($[7] !== ariaLabel || $[8] !== items || $[9] !== returnFocusRef || $[10] !== t1 || $[11] !== width) {
|
|
458
566
|
t2 = {
|
|
459
567
|
type: "menu",
|
|
568
|
+
width,
|
|
460
569
|
label: ariaLabel,
|
|
461
570
|
icon: t1,
|
|
462
571
|
returnFocusRef,
|
|
@@ -466,26 +575,27 @@ const ActionBarMenu = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
466
575
|
$[8] = items;
|
|
467
576
|
$[9] = returnFocusRef;
|
|
468
577
|
$[10] = t1;
|
|
469
|
-
$[11] =
|
|
578
|
+
$[11] = width;
|
|
579
|
+
$[12] = t2;
|
|
470
580
|
} else {
|
|
471
|
-
t2 = $[
|
|
581
|
+
t2 = $[12];
|
|
582
|
+
}
|
|
583
|
+
const registryProps = t2;
|
|
584
|
+
const id = ActionBarItemsRegistry.useRegisterDescendant(registryProps);
|
|
585
|
+
if (!isVisibleChild(id)) {
|
|
586
|
+
return null;
|
|
472
587
|
}
|
|
473
|
-
const {
|
|
474
|
-
dataOverflowingAttr
|
|
475
|
-
} = useActionBarItem(ref, t2);
|
|
476
588
|
let t3;
|
|
477
|
-
if ($[
|
|
589
|
+
if ($[13] !== ariaLabel || $[14] !== icon || $[15] !== props) {
|
|
478
590
|
t3 = /*#__PURE__*/jsx(ActionMenu.Anchor, {
|
|
479
591
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
480
592
|
variant: "invisible",
|
|
481
593
|
"aria-label": ariaLabel,
|
|
482
594
|
icon: icon,
|
|
483
|
-
...props
|
|
484
|
-
"data-overflowing": dataOverflowingAttr
|
|
595
|
+
...props
|
|
485
596
|
})
|
|
486
597
|
});
|
|
487
|
-
$[
|
|
488
|
-
$[13] = dataOverflowingAttr;
|
|
598
|
+
$[13] = ariaLabel;
|
|
489
599
|
$[14] = icon;
|
|
490
600
|
$[15] = props;
|
|
491
601
|
$[16] = t3;
|
|
@@ -504,7 +614,7 @@ const ActionBarMenu = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
504
614
|
}
|
|
505
615
|
let t5;
|
|
506
616
|
if ($[19] !== items) {
|
|
507
|
-
t5 = items.map(
|
|
617
|
+
t5 = items.map(_temp4);
|
|
508
618
|
$[19] = items;
|
|
509
619
|
$[20] = t5;
|
|
510
620
|
} else {
|
|
@@ -553,91 +663,68 @@ const ActionBarMenu = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
553
663
|
const VerticalDivider = () => {
|
|
554
664
|
const $ = c(3);
|
|
555
665
|
const ref = useRef(null);
|
|
666
|
+
const {
|
|
667
|
+
isVisibleChild
|
|
668
|
+
} = React.useContext(ActionBarContext);
|
|
669
|
+
const width = useWidth(ref);
|
|
556
670
|
let t0;
|
|
557
|
-
if ($[0]
|
|
671
|
+
if ($[0] !== width) {
|
|
558
672
|
t0 = {
|
|
559
|
-
type: "divider"
|
|
673
|
+
type: "divider",
|
|
674
|
+
width
|
|
560
675
|
};
|
|
561
|
-
$[0] =
|
|
676
|
+
$[0] = width;
|
|
677
|
+
$[1] = t0;
|
|
562
678
|
} else {
|
|
563
|
-
t0 = $[
|
|
679
|
+
t0 = $[1];
|
|
680
|
+
}
|
|
681
|
+
const registryProps = t0;
|
|
682
|
+
const id = ActionBarItemsRegistry.useRegisterDescendant(registryProps);
|
|
683
|
+
if (!isVisibleChild(id)) {
|
|
684
|
+
return null;
|
|
564
685
|
}
|
|
565
|
-
const {
|
|
566
|
-
dataOverflowingAttr
|
|
567
|
-
} = useActionBarItem(ref, t0);
|
|
568
686
|
let t1;
|
|
569
|
-
if ($[
|
|
687
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
570
688
|
t1 = /*#__PURE__*/jsx("div", {
|
|
571
689
|
ref: ref,
|
|
572
690
|
"data-component": "ActionBar.VerticalDivider",
|
|
573
691
|
"aria-hidden": "true",
|
|
574
|
-
className: styles.Divider
|
|
575
|
-
"data-overflowing": dataOverflowingAttr
|
|
692
|
+
className: styles.Divider
|
|
576
693
|
});
|
|
577
|
-
$[1] = dataOverflowingAttr;
|
|
578
694
|
$[2] = t1;
|
|
579
695
|
} else {
|
|
580
696
|
t1 = $[2];
|
|
581
697
|
}
|
|
582
698
|
return t1;
|
|
583
699
|
};
|
|
584
|
-
function _temp(
|
|
585
|
-
return
|
|
700
|
+
function _temp() {
|
|
701
|
+
return new Set();
|
|
586
702
|
}
|
|
587
|
-
function _temp2(
|
|
588
|
-
return element.matches(FOCUSABLE_ITEM_SELECTOR);
|
|
589
|
-
}
|
|
590
|
-
function _temp3(item, index) {
|
|
703
|
+
function _temp2(item, index) {
|
|
591
704
|
return renderMenuItem(item, index);
|
|
592
705
|
}
|
|
593
|
-
function
|
|
594
|
-
const [
|
|
595
|
-
if (
|
|
596
|
-
return /*#__PURE__*/jsx(ActionList.Divider, {}, id);
|
|
597
|
-
}
|
|
598
|
-
if (menuItem.type === "action") {
|
|
706
|
+
function _temp3(t0) {
|
|
707
|
+
const [key_0, childProps_0] = t0;
|
|
708
|
+
if (childProps_0.type === "action") {
|
|
599
709
|
const {
|
|
600
|
-
onClick,
|
|
601
|
-
icon:
|
|
602
|
-
label,
|
|
603
|
-
disabled
|
|
604
|
-
} =
|
|
710
|
+
onClick: onClick_0,
|
|
711
|
+
icon: Icon_1,
|
|
712
|
+
label: label_1,
|
|
713
|
+
disabled: disabled_0
|
|
714
|
+
} = childProps_0;
|
|
605
715
|
return /*#__PURE__*/jsxs(ActionList.Item, {
|
|
606
|
-
onSelect:
|
|
607
|
-
typeof
|
|
716
|
+
onSelect: event_0 => {
|
|
717
|
+
typeof onClick_0 === "function" && onClick_0(event_0);
|
|
608
718
|
},
|
|
609
|
-
disabled:
|
|
719
|
+
disabled: disabled_0,
|
|
610
720
|
children: [/*#__PURE__*/jsx(ActionList.LeadingVisual, {
|
|
611
|
-
children: /*#__PURE__*/jsx(
|
|
612
|
-
}),
|
|
613
|
-
},
|
|
614
|
-
}
|
|
615
|
-
if (menuItem.type === "menu") {
|
|
616
|
-
const menuItems = menuItem.items;
|
|
617
|
-
const {
|
|
618
|
-
icon: Icon_0,
|
|
619
|
-
label: label_0,
|
|
620
|
-
returnFocusRef
|
|
621
|
-
} = menuItem;
|
|
622
|
-
return /*#__PURE__*/jsxs(ActionMenu, {
|
|
623
|
-
children: [/*#__PURE__*/jsx(ActionMenu.Anchor, {
|
|
624
|
-
children: /*#__PURE__*/jsxs(ActionList.Item, {
|
|
625
|
-
children: [Icon_0 !== "none" ? /*#__PURE__*/jsx(ActionList.LeadingVisual, {
|
|
626
|
-
children: /*#__PURE__*/jsx(Icon_0, {})
|
|
627
|
-
}) : null, label_0]
|
|
628
|
-
})
|
|
629
|
-
}), /*#__PURE__*/jsx(ActionMenu.Overlay, {
|
|
630
|
-
...(returnFocusRef && {
|
|
631
|
-
returnFocusRef
|
|
632
|
-
}),
|
|
633
|
-
children: /*#__PURE__*/jsx(ActionList, {
|
|
634
|
-
children: menuItems.map(_temp3)
|
|
635
|
-
})
|
|
636
|
-
})]
|
|
637
|
-
}, id);
|
|
721
|
+
children: /*#__PURE__*/jsx(Icon_1, {})
|
|
722
|
+
}), label_1]
|
|
723
|
+
}, key_0);
|
|
638
724
|
}
|
|
725
|
+
return null;
|
|
639
726
|
}
|
|
640
|
-
function
|
|
727
|
+
function _temp4(item, index) {
|
|
641
728
|
return renderMenuItem(item, index);
|
|
642
729
|
}
|
|
643
730
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './ActionBar-
|
|
1
|
+
import './ActionBar-a41224b2.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"List":"prc-ActionBar-List-9uz46","
|
|
3
|
+
var styles = {"List":"prc-ActionBar-List-9uz46","Divider":"prc-ActionBar-Divider-6V8yH","Nav":"prc-ActionBar-Nav-9spON","Group":"prc-ActionBar-Group-peNCk"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { ActionBarProps, ActionBarMenuProps, ActionBarMenuItemProps } from './ActionBar';
|
|
2
2
|
declare const ActionBar: import("react").FC<import("react").PropsWithChildren<import("./ActionBar").ActionBarProps>> & {
|
|
3
3
|
IconButton: import("react").ForwardRefExoticComponent<import("./ActionBar").ActionBarIconButtonProps & import("react").RefAttributes<unknown>>;
|
|
4
|
-
Divider: () => import("react").JSX.Element;
|
|
4
|
+
Divider: () => import("react").JSX.Element | null;
|
|
5
5
|
Group: import("react").ForwardRefExoticComponent<{
|
|
6
6
|
children?: import("react").ReactNode | undefined;
|
|
7
7
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -119,6 +119,10 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: (
|
|
|
119
119
|
TrailingVisual: import("../utils/types").FCWithSlotMarker<import("react").PropsWithChildren<import("./Visuals").VisualProps>>;
|
|
120
120
|
/** Heading for an `ActionList`. */
|
|
121
121
|
Heading: import("../utils/polymorphic").ForwardRefComponent<"h1" | "h2" | "h3" | "h4" | "h5" | "h6", import("./Heading").ActionListHeadingProps>;
|
|
122
|
+
/** Context for `ActionList.Group` */
|
|
123
|
+
GroupContext: import("react").Context<Pick<import("./Group").ActionListGroupProps, "selectionVariant"> & {
|
|
124
|
+
groupHeadingId: string | undefined;
|
|
125
|
+
}>;
|
|
122
126
|
/** Heading for `ActionList.Group` */
|
|
123
127
|
GroupHeading: import("../utils/types").FCWithSlotMarker<import("react").PropsWithChildren<import("./Group").ActionListGroupHeadingProps>>;
|
|
124
128
|
/** Secondary action */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"AAUA,YAAY,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAC7C,YAAY,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAA;AAC9E,YAAY,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;AACjD,YAAY,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAA;AACvD,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,0BAA0B,EAAC,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAC,4BAA4B,EAAE,6BAA6B,EAAC,MAAM,WAAW,CAAA;AAC1F,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,6BAA6B,EAAC,MAAM,kBAAkB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;IACrB,mDAAmD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1
|
import { List } from './List.js';
|
|
2
|
-
import { GroupHeading, Group } from './Group.js';
|
|
2
|
+
import { GroupHeading, GroupContext, Group } from './Group.js';
|
|
3
3
|
import { Item } from './Item.js';
|
|
4
4
|
import { LinkItem } from './LinkItem.js';
|
|
5
5
|
import { Divider } from './Divider.js';
|
|
@@ -28,6 +28,8 @@ const ActionList = Object.assign(List, {
|
|
|
28
28
|
TrailingVisual,
|
|
29
29
|
/** Heading for an `ActionList`. */
|
|
30
30
|
Heading,
|
|
31
|
+
/** Context for `ActionList.Group` */
|
|
32
|
+
GroupContext,
|
|
31
33
|
/** Heading for `ActionList.Group` */
|
|
32
34
|
GroupHeading,
|
|
33
35
|
/** Secondary action */
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { FilteredActionList as FilteredList } from './FilteredActionList';
|
|
2
|
+
import { FilteredActionListBodyLoader } from './FilteredActionListLoaders';
|
|
2
3
|
export type { FilteredActionListProps } from './FilteredActionList';
|
|
4
|
+
export { FilteredActionListLoadingTypes } from './FilteredActionListLoaders';
|
|
3
5
|
export type { FilteredActionListItemProps as ItemProps, ItemInput, GroupedListProps, ListPropsBase, RenderItemFn, } from './types';
|
|
6
|
+
export declare const FilteredActionList: typeof FilteredList & {
|
|
7
|
+
BodyLoader: typeof FilteredActionListBodyLoader;
|
|
8
|
+
};
|
|
4
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FilteredActionList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FilteredActionList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAC,4BAA4B,EAAC,MAAM,6BAA6B,CAAA;AAExE,YAAY,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAC,8BAA8B,EAAC,MAAM,6BAA6B,CAAA;AAE1E,YAAY,EACV,2BAA2B,IAAI,SAAS,EACxC,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,YAAY,GACb,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,kBAAkB;;CAE7B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FilteredActionList as FilteredActionList$1 } from './FilteredActionList.js';
|
|
2
|
+
import { FilteredActionListBodyLoader } from './FilteredActionListLoaders.js';
|
|
3
|
+
export { FilteredActionListLoadingTypes } from './FilteredActionListLoaders.js';
|
|
4
|
+
|
|
5
|
+
const FilteredActionList = Object.assign(FilteredActionList$1, {
|
|
6
|
+
BodyLoader: FilteredActionListBodyLoader
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export { FilteredActionList };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SearchIcon, XIcon, TriangleDownIcon } from '@primer/octicons-react';
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
3
|
+
import { FilteredActionList } from '../FilteredActionList/index.js';
|
|
3
4
|
import { SelectPanelMessage } from './SelectPanelMessage.js';
|
|
4
5
|
import { IconButton } from '../Button/IconButton.js';
|
|
5
6
|
import { LinkButton } from '../Button/LinkButton.js';
|
|
@@ -21,7 +22,6 @@ import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
|
21
22
|
import { useProvidedRefOrCreate } from '../hooks/useProvidedRefOrCreate.js';
|
|
22
23
|
import { AnchoredOverlay } from '../AnchoredOverlay/AnchoredOverlay.js';
|
|
23
24
|
import Heading from '../Heading/Heading.js';
|
|
24
|
-
import { FilteredActionList } from '../FilteredActionList/FilteredActionList.js';
|
|
25
25
|
|
|
26
26
|
const SHORT_DELAY_MS = 500;
|
|
27
27
|
const LONG_DELAY_MS = 1000;
|
|
@@ -42,7 +42,7 @@ export { SkeletonAvatar } from '../SkeletonAvatar';
|
|
|
42
42
|
export type { SkeletonAvatarProps } from '../SkeletonAvatar';
|
|
43
43
|
export { FeatureFlags, DefaultFeatureFlags, useFeatureFlag } from '../FeatureFlags';
|
|
44
44
|
export type { FeatureFlagsProps } from '../FeatureFlags';
|
|
45
|
-
export { FilteredActionList } from '../FilteredActionList';
|
|
45
|
+
export { FilteredActionList, FilteredActionListLoadingTypes } from '../FilteredActionList';
|
|
46
46
|
export type { FilteredActionListProps } from '../FilteredActionList';
|
|
47
47
|
export { IssueLabel } from './IssueLabel';
|
|
48
48
|
export type { IssueLabelProps } from './IssueLabel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,YAAY,EAAC,eAAe,EAAC,MAAM,eAAe,CAAA;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAA;AACpC,YAAY,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AAE9C,OAAO,EAAC,IAAI,EAAC,MAAM,SAAS,CAAA;AAC5B,YAAY,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAClB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAC,MAAM,cAAc,CAAA;AACjE,YAAY,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,GACZ,MAAM,cAAc,CAAA;AAErB,cAAc,WAAW,CAAA;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AAY,EAAC,MAAM,iBAAiB,CAAA;AAC5C,YAAY,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAChD,YAAY,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAA;AACjF,YAAY,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAC,kBAAkB,EAAE,8BAA8B,EAAC,MAAM,uBAAuB,CAAA;AACxF,YAAY,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA;AAEjD,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AAEtB,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AACpC,YAAY,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAA"}
|
|
@@ -4,6 +4,7 @@ export { Card } from '../Card/index.js';
|
|
|
4
4
|
export { Table } from '../DataTable/index.js';
|
|
5
5
|
export { ActionBar } from '../ActionBar/index.js';
|
|
6
6
|
export { Stack } from '../Stack/index.js';
|
|
7
|
+
export { FilteredActionList } from '../FilteredActionList/index.js';
|
|
7
8
|
export { TopicTag } from '../TopicTag/index.js';
|
|
8
9
|
export { Announce } from '../live-region/Announce.js';
|
|
9
10
|
export { AriaAlert } from '../live-region/AriaAlert.js';
|
|
@@ -13,7 +14,7 @@ export { DataTable } from '../DataTable/DataTable.js';
|
|
|
13
14
|
export { DefaultFeatureFlags } from '../FeatureFlags/DefaultFeatureFlags.js';
|
|
14
15
|
export { Dialog } from '../Dialog/Dialog.js';
|
|
15
16
|
export { FeatureFlags } from '../FeatureFlags/FeatureFlags.js';
|
|
16
|
-
export {
|
|
17
|
+
export { FilteredActionListLoadingTypes } from '../FilteredActionList/FilteredActionListLoaders.js';
|
|
17
18
|
export { Hidden } from '../Hidden/Hidden.js';
|
|
18
19
|
export { InlineMessage } from '../InlineMessage/InlineMessage.js';
|
|
19
20
|
export { IssueLabel } from './IssueLabel/IssueLabel.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { useOverlay } from './hooks/useOverlay';
|
|
|
18
18
|
export { useConfirm } from './ConfirmationDialog/ConfirmationDialog';
|
|
19
19
|
export { useFocusTrap } from './hooks/useFocusTrap';
|
|
20
20
|
export type { FocusTrapHookSettings } from './hooks/useFocusTrap';
|
|
21
|
-
export { useFocusZone } from './hooks/useFocusZone';
|
|
21
|
+
export { FocusKeys, useFocusZone } from './hooks/useFocusZone';
|
|
22
22
|
export type { FocusZoneHookSettings } from './hooks/useFocusZone';
|
|
23
23
|
export { useRefObjectAsForwardedRef } from './hooks/useRefObjectAsForwardedRef';
|
|
24
24
|
export { useMergedRefs } from './hooks/useMergedRefs';
|
|
@@ -34,7 +34,7 @@ export type { SlotMarker } from './utils/types';
|
|
|
34
34
|
export { default as Radio } from './Radio';
|
|
35
35
|
export type { RadioProps } from './Radio';
|
|
36
36
|
export { ActionList } from './ActionList';
|
|
37
|
-
export type { ActionListProps, ActionListGroupProps, ActionListItemProps, ActionListLinkItemProps, ActionListDividerProps, ActionListDescriptionProps, ActionListLeadingVisualProps, ActionListTrailingVisualProps, } from './ActionList';
|
|
37
|
+
export type { ActionListProps, ActionListGroupProps, ActionListGroupHeadingProps, ActionListItemProps, ActionListLinkItemProps, ActionListDividerProps, ActionListDescriptionProps, ActionListLeadingVisualProps, ActionListTrailingVisualProps, ActionListTrailingActionProps, } from './ActionList';
|
|
38
38
|
export { ActionMenu } from './ActionMenu';
|
|
39
39
|
export type { ActionMenuProps, ActionMenuAnchorProps, ActionMenuButtonProps } from './ActionMenu';
|
|
40
40
|
export { AnchoredOverlay } from './AnchoredOverlay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;AAC/C,YAAY,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAC3C,YAAY,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,gBAAgB,CAAA;AAE5E,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,YAAY,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA;AAC7B,YAAY,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAEvD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,YAAY,EACV,eAAe,EACf,UAAU,IAAI,oBAAoB,EAClC,YAAY,IAAI,sBAAsB,EACtC,cAAc,IAAI,wBAAwB,EAC1C,iBAAiB,IAAI,2BAA2B,GACjD,MAAM,cAAc,CAAA;AAErB,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,YAAY,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,7 @@ export { ButtonBase } from './Button/ButtonBase.js';
|
|
|
62
62
|
export { default as CheckboxGroup } from './CheckboxGroup/CheckboxGroup.js';
|
|
63
63
|
export { default as CircleBadge } from './CircleBadge/CircleBadge.js';
|
|
64
64
|
export { Dialog } from './Dialog/Dialog.js';
|
|
65
|
+
export { FocusKeys } from '@primer/behaviors';
|
|
65
66
|
export { default as FormControl } from './FormControl/FormControl.js';
|
|
66
67
|
export { default as Header } from './Header/Header.js';
|
|
67
68
|
export { IconButton } from './Button/IconButton.js';
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.prc-ActionBar-List-9uz46{align-items:flex-start;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));height:var(--actionbar-height,var(--control-small-size,1.75rem));list-style:none;margin-bottom:-1px;min-width:0;overflow:hidden;position:relative}.prc-ActionBar-List-9uz46:not([data-has-overflow]){animation:prc-ActionBar-detect-overflow-mAuJu linear;animation-timeline:scroll(self block)}.prc-ActionBar-List-9uz46[data-has-overflow=true]{--morebutton-display:flex}.prc-ActionBar-List-9uz46:where([data-size=small]){--actionbar-height:var(--control-small-size,1.75rem)}.prc-ActionBar-List-9uz46:where([data-size=medium]){--actionbar-height:var(--control-medium-size,2rem)}.prc-ActionBar-List-9uz46:where([data-size=large]){--actionbar-height:var(--control-large-size,2.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-9uz46:where([data-gap=none]) .prc-ActionBar-Divider-6V8yH{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-List-9uz46 [data-overflowing]{visibility:hidden!important}@keyframes prc-ActionBar-detect-overflow-mAuJu{0%,to{--morebutton-display:flex}}.prc-ActionBar-Nav-9spON{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-9spON:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-6V8yH:before{background:var(--borderColor-muted,#d1d9e0b3);content:"";display:block;height:var(--base-size-20,1.25rem);margin-top:calc((var(--actionbar-height) - var(--base-size-20,1.25rem))/2);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk,.prc-ActionBar-OverflowContainer-AkYZs{display:flex;gap:inherit}.prc-ActionBar-OverflowContainer-AkYZs{flex-wrap:wrap;justify-content:flex-end;overflow:hidden}.prc-ActionBar-MoreButton-RHqpx{display:var(--morebutton-display,none)}
|
|
2
|
-
/*# sourceMappingURL=ActionBar-3f7b52a3.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BASE,sBAAuB,CAPvB,YAAa,CAQb,yDAAqD,CAGrD,gEAA0D,CAL1D,eAAgB,CADhB,kBAAmB,CAJnB,WAAY,CAQZ,eAAgB,CAVhB,iBA2DF,CA5CE,mDAIE,oDAAiC,CACjC,qCACF,CAGA,kDACE,yBACF,CAEA,mDACE,oDACF,CAEA,oDACE,kDACF,CAEA,mDACE,mDACF,CAGA,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAEA,6CAIE,2BACF,CAGF,+CACE,MAEE,yBACF,CACF,CAEA,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6CAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAK3B,0EAAqE,CANrE,sCAOF,CAQF,kEAJE,YAAa,CACb,WASF,CANA,uCAEE,cAAe,CAEf,wBAAyB,CACzB,eACF,CAEA,gCACE,sCACF","file":"ActionBar-3f7b52a3.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n list-style: none;\n align-items: flex-start;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n overflow: hidden;\n /* Explicit height is required to clip wrapped items */\n height: var(--actionbar-height, var(--control-small-size));\n\n /* Only apply scroll animation before overflow is calculated (for SSR/initial render) */\n &:not([data-has-overflow]) {\n /* Scroll-based animations have no effect unless the container is scrollable (has overflow, even with overflow:hidden)\n so we can use them to detect overflow. It would be cleaner to use scroll-state container queries for this, but\n browser support for scroll-driven animations is slightly better. */\n animation: detect-overflow linear;\n animation-timeline: scroll(self block);\n }\n\n /* After initial render, JS is used to control visibility which provides progressive enhancement for unsupported browsers */\n &[data-has-overflow='true'] {\n --morebutton-display: flex;\n }\n\n &:where([data-size='small']) {\n --actionbar-height: var(--control-small-size);\n }\n\n &:where([data-size='medium']) {\n --actionbar-height: var(--control-medium-size);\n }\n\n &:where([data-size='large']) {\n --actionbar-height: var(--control-large-size);\n }\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n\n & [data-overflowing] {\n /* Hide overflowing items. Even though they are clipped by `overflow: hidden`, setting `visibility: hidden` ensures\n they can't accidentally be shown and also hides them from screen readers / keyboard nav. `!important` prevents\n consumers from unintentionally overriding this and breaking accessibility. */\n visibility: hidden !important;\n }\n}\n\n@keyframes detect-overflow {\n 0%,\n 100% {\n --morebutton-display: flex;\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc((var(--actionbar-height) - var(--base-size-20)) / 2);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n\n.OverflowContainer {\n display: flex;\n flex-wrap: wrap;\n gap: inherit;\n justify-content: flex-end;\n overflow: hidden;\n}\n\n.MoreButton {\n display: var(--morebutton-display, none);\n}\n"]}
|