@react-spectrum/breadcrumbs 3.9.4 → 3.9.6

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/dist/main.js CHANGED
@@ -1,28 +1,12 @@
1
- require("./main.css");
1
+ var $299bf776d9162a05$exports = require("./Breadcrumbs.main.js");
2
2
  var $8bWUw$reactstatelycollections = require("@react-stately/collections");
3
- var $8bWUw$reactspectrumbutton = require("@react-spectrum/button");
4
- var $8bWUw$reactspectrumutils = require("@react-spectrum/utils");
5
- var $8bWUw$spectrumiconsuiFolderBreadcrumb = require("@spectrum-icons/ui/FolderBreadcrumb");
6
- var $8bWUw$reactspectrummenu = require("@react-spectrum/menu");
7
- var $8bWUw$react = require("react");
8
- var $8bWUw$reactariabreadcrumbs = require("@react-aria/breadcrumbs");
9
- var $8bWUw$reactariautils = require("@react-aria/utils");
10
- var $8bWUw$reactspectrumprovider = require("@react-spectrum/provider");
11
- var $8bWUw$spectrumiconsuiChevronRightSmall = require("@spectrum-icons/ui/ChevronRightSmall");
12
- var $8bWUw$reactariafocus = require("@react-aria/focus");
13
- var $8bWUw$reactariainteractions = require("@react-aria/interactions");
14
- var $8bWUw$reactariai18n = require("@react-aria/i18n");
15
3
 
16
4
 
17
5
  function $parcel$export(e, n, v, s) {
18
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
19
7
  }
20
8
 
21
- function $parcel$interopDefault(a) {
22
- return a && a.__esModule ? a.default : a;
23
- }
24
-
25
- $parcel$export(module.exports, "Breadcrumbs", () => $299bf776d9162a05$export$2dc68d50d56fbbd);
9
+ $parcel$export(module.exports, "Breadcrumbs", () => $299bf776d9162a05$exports.Breadcrumbs);
26
10
  $parcel$export(module.exports, "Item", () => $8bWUw$reactstatelycollections.Item);
27
11
  /*
28
12
  * Copyright 2020 Adobe. All rights reserved.
@@ -35,300 +19,6 @@ $parcel$export(module.exports, "Item", () => $8bWUw$reactstatelycollections.Item
35
19
  * OF ANY KIND, either express or implied. See the License for the specific language
36
20
  * governing permissions and limitations under the License.
37
21
  */ /// <reference types="css-module-types" />
38
- /*
39
- * Copyright 2020 Adobe. All rights reserved.
40
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
41
- * you may not use this file except in compliance with the License. You may obtain a copy
42
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
43
- *
44
- * Unless required by applicable law or agreed to in writing, software distributed under
45
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
46
- * OF ANY KIND, either express or implied. See the License for the specific language
47
- * governing permissions and limitations under the License.
48
- */
49
- /*
50
- * Copyright 2020 Adobe. All rights reserved.
51
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
52
- * you may not use this file except in compliance with the License. You may obtain a copy
53
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
54
- *
55
- * Unless required by applicable law or agreed to in writing, software distributed under
56
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
57
- * OF ANY KIND, either express or implied. See the License for the specific language
58
- * governing permissions and limitations under the License.
59
- */
60
-
61
-
62
-
63
-
64
- var $3292ef9f328419fc$exports = {};
65
-
66
- $parcel$export($3292ef9f328419fc$exports, "focus-ring", () => $3292ef9f328419fc$export$f39a09f249340e2a, (v) => $3292ef9f328419fc$export$f39a09f249340e2a = v);
67
- $parcel$export($3292ef9f328419fc$exports, "i18nFontFamily", () => $3292ef9f328419fc$export$8c4ee2c50c22c514, (v) => $3292ef9f328419fc$export$8c4ee2c50c22c514 = v);
68
- $parcel$export($3292ef9f328419fc$exports, "is-disabled", () => $3292ef9f328419fc$export$d35bc1e505d1ebbf, (v) => $3292ef9f328419fc$export$d35bc1e505d1ebbf = v);
69
- $parcel$export($3292ef9f328419fc$exports, "is-dragged", () => $3292ef9f328419fc$export$8778c911bed6c759, (v) => $3292ef9f328419fc$export$8778c911bed6c759 = v);
70
- $parcel$export($3292ef9f328419fc$exports, "is-hovered", () => $3292ef9f328419fc$export$b8813cd5d7824ce7, (v) => $3292ef9f328419fc$export$b8813cd5d7824ce7 = v);
71
- $parcel$export($3292ef9f328419fc$exports, "is-reversed", () => $3292ef9f328419fc$export$a4561bd665abb5db, (v) => $3292ef9f328419fc$export$a4561bd665abb5db = v);
72
- $parcel$export($3292ef9f328419fc$exports, "is-selected", () => $3292ef9f328419fc$export$1e0fb04f31d3c22a, (v) => $3292ef9f328419fc$export$1e0fb04f31d3c22a = v);
73
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumb", () => $3292ef9f328419fc$export$45a5316056cfac3c, (v) => $3292ef9f328419fc$export$45a5316056cfac3c = v);
74
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs", () => $3292ef9f328419fc$export$8c6320d2db82081f, (v) => $3292ef9f328419fc$export$8c6320d2db82081f = v);
75
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs--medium", () => $3292ef9f328419fc$export$19f957201d941895, (v) => $3292ef9f328419fc$export$19f957201d941895 = v);
76
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs--multiline", () => $3292ef9f328419fc$export$713961e8e432825b, (v) => $3292ef9f328419fc$export$713961e8e432825b = v);
77
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs--small", () => $3292ef9f328419fc$export$e01337e7944312f6, (v) => $3292ef9f328419fc$export$e01337e7944312f6 = v);
78
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs-actionButton", () => $3292ef9f328419fc$export$9753a085493f5648, (v) => $3292ef9f328419fc$export$9753a085493f5648 = v);
79
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs-item", () => $3292ef9f328419fc$export$492a5983c5fbf603, (v) => $3292ef9f328419fc$export$492a5983c5fbf603 = v);
80
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs-itemLink", () => $3292ef9f328419fc$export$5af6a1bcd207d9f6, (v) => $3292ef9f328419fc$export$5af6a1bcd207d9f6 = v);
81
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Breadcrumbs-itemSeparator", () => $3292ef9f328419fc$export$f72910e36cd91d1e, (v) => $3292ef9f328419fc$export$f72910e36cd91d1e = v);
82
- $parcel$export($3292ef9f328419fc$exports, "spectrum-FocusRing-ring", () => $3292ef9f328419fc$export$4109102f950813a6, (v) => $3292ef9f328419fc$export$4109102f950813a6 = v);
83
- $parcel$export($3292ef9f328419fc$exports, "spectrum-FocusRing", () => $3292ef9f328419fc$export$24c7f46a6e3605dd, (v) => $3292ef9f328419fc$export$24c7f46a6e3605dd = v);
84
- $parcel$export($3292ef9f328419fc$exports, "spectrum-FocusRing--quiet", () => $3292ef9f328419fc$export$2927016961429360, (v) => $3292ef9f328419fc$export$2927016961429360 = v);
85
- $parcel$export($3292ef9f328419fc$exports, "spectrum-Heading--pageTitle", () => $3292ef9f328419fc$export$63e9e087a73f808b, (v) => $3292ef9f328419fc$export$63e9e087a73f808b = v);
86
- var $3292ef9f328419fc$export$f39a09f249340e2a;
87
- var $3292ef9f328419fc$export$8c4ee2c50c22c514;
88
- var $3292ef9f328419fc$export$d35bc1e505d1ebbf;
89
- var $3292ef9f328419fc$export$8778c911bed6c759;
90
- var $3292ef9f328419fc$export$b8813cd5d7824ce7;
91
- var $3292ef9f328419fc$export$a4561bd665abb5db;
92
- var $3292ef9f328419fc$export$1e0fb04f31d3c22a;
93
- var $3292ef9f328419fc$export$45a5316056cfac3c;
94
- var $3292ef9f328419fc$export$8c6320d2db82081f;
95
- var $3292ef9f328419fc$export$19f957201d941895;
96
- var $3292ef9f328419fc$export$713961e8e432825b;
97
- var $3292ef9f328419fc$export$e01337e7944312f6;
98
- var $3292ef9f328419fc$export$9753a085493f5648;
99
- var $3292ef9f328419fc$export$492a5983c5fbf603;
100
- var $3292ef9f328419fc$export$5af6a1bcd207d9f6;
101
- var $3292ef9f328419fc$export$f72910e36cd91d1e;
102
- var $3292ef9f328419fc$export$4109102f950813a6;
103
- var $3292ef9f328419fc$export$24c7f46a6e3605dd;
104
- var $3292ef9f328419fc$export$2927016961429360;
105
- var $3292ef9f328419fc$export$63e9e087a73f808b;
106
- $3292ef9f328419fc$export$f39a09f249340e2a = `_1gDPVa_focus-ring`;
107
- $3292ef9f328419fc$export$8c4ee2c50c22c514 = `_1gDPVa_i18nFontFamily`;
108
- $3292ef9f328419fc$export$d35bc1e505d1ebbf = `_1gDPVa_is-disabled`;
109
- $3292ef9f328419fc$export$8778c911bed6c759 = `_1gDPVa_is-dragged`;
110
- $3292ef9f328419fc$export$b8813cd5d7824ce7 = `_1gDPVa_is-hovered`;
111
- $3292ef9f328419fc$export$a4561bd665abb5db = `_1gDPVa_is-reversed`;
112
- $3292ef9f328419fc$export$1e0fb04f31d3c22a = `_1gDPVa_is-selected`;
113
- $3292ef9f328419fc$export$45a5316056cfac3c = `_1gDPVa_spectrum-Breadcrumb`;
114
- $3292ef9f328419fc$export$8c6320d2db82081f = `_1gDPVa_spectrum-Breadcrumbs`;
115
- $3292ef9f328419fc$export$19f957201d941895 = `_1gDPVa_spectrum-Breadcrumbs--medium`;
116
- $3292ef9f328419fc$export$713961e8e432825b = `_1gDPVa_spectrum-Breadcrumbs--multiline`;
117
- $3292ef9f328419fc$export$e01337e7944312f6 = `_1gDPVa_spectrum-Breadcrumbs--small`;
118
- $3292ef9f328419fc$export$9753a085493f5648 = `_1gDPVa_spectrum-Breadcrumbs-actionButton`;
119
- $3292ef9f328419fc$export$492a5983c5fbf603 = `_1gDPVa_spectrum-Breadcrumbs-item`;
120
- $3292ef9f328419fc$export$5af6a1bcd207d9f6 = `_1gDPVa_spectrum-Breadcrumbs-itemLink`;
121
- $3292ef9f328419fc$export$f72910e36cd91d1e = `_1gDPVa_spectrum-Breadcrumbs-itemSeparator`;
122
- $3292ef9f328419fc$export$4109102f950813a6 = `_1gDPVa_spectrum-FocusRing-ring`;
123
- $3292ef9f328419fc$export$24c7f46a6e3605dd = `_1gDPVa_spectrum-FocusRing ${$3292ef9f328419fc$export$4109102f950813a6}`;
124
- $3292ef9f328419fc$export$2927016961429360 = `_1gDPVa_spectrum-FocusRing--quiet`;
125
- $3292ef9f328419fc$export$63e9e087a73f808b = `_1gDPVa_spectrum-Heading--pageTitle`;
126
-
127
-
128
-
129
-
130
-
131
- function $d90ab02c74e9be0c$export$c13f210c706eb549(props) {
132
- let { children: children, isCurrent: isCurrent, isDisabled: isDisabled, isMenu: isMenu } = props;
133
- let { direction: direction } = (0, $8bWUw$reactariai18n.useLocale)();
134
- let ref = (0, $8bWUw$react.useRef)(null);
135
- let ElementType = props.href ? "a" : "span";
136
- let { itemProps: itemProps } = (0, $8bWUw$reactariabreadcrumbs.useBreadcrumbItem)({
137
- ...props,
138
- elementType: ElementType
139
- }, ref);
140
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $8bWUw$reactariainteractions.useHover)(props);
141
- // If this item contains a menu button, then it shouldn't be a link.
142
- if (isMenu) itemProps = {};
143
- return /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $8bWUw$react.Fragment), null, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $8bWUw$reactariafocus.FocusRing), {
144
- focusRingClass: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), "focus-ring")
145
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement(ElementType, {
146
- ...(0, $8bWUw$reactariautils.mergeProps)(itemProps, hoverProps),
147
- ref: ref,
148
- className: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), {
149
- "spectrum-Breadcrumbs-itemLink": !isMenu,
150
- "is-disabled": !isCurrent && isDisabled,
151
- "is-hovered": isHovered
152
- })
153
- }, children)), /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, ($parcel$interopDefault($8bWUw$spectrumiconsuiChevronRightSmall))), {
154
- UNSAFE_className: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), "spectrum-Breadcrumbs-itemSeparator", {
155
- "is-reversed": direction === "rtl"
156
- })
157
- }));
158
- }
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
- const $299bf776d9162a05$var$MIN_VISIBLE_ITEMS = 1;
170
- const $299bf776d9162a05$var$MAX_VISIBLE_ITEMS = 4;
171
- function $299bf776d9162a05$var$Breadcrumbs(props, ref) {
172
- props = (0, $8bWUw$reactspectrumprovider.useProviderProps)(props);
173
- let { size: size = "L", isMultiline: isMultiline, children: children, showRoot: showRoot, isDisabled: isDisabled, onAction: onAction, autoFocusCurrent: autoFocusCurrent, ...otherProps } = props;
174
- // Not using React.Children.toArray because it mutates the key prop.
175
- let childArray = [];
176
- (0, ($parcel$interopDefault($8bWUw$react))).Children.forEach(children, (child, index)=>{
177
- if (/*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).isValidElement(child)) {
178
- if (child.key == null) child = /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).cloneElement(child, {
179
- key: index
180
- });
181
- childArray.push(child);
182
- }
183
- });
184
- let domRef = (0, $8bWUw$reactspectrumutils.useDOMRef)(ref);
185
- let listRef = (0, $8bWUw$react.useRef)(null);
186
- let [visibleItems, setVisibleItems] = (0, $8bWUw$reactariautils.useValueEffect)(childArray.length);
187
- let { navProps: navProps } = (0, $8bWUw$reactariabreadcrumbs.useBreadcrumbs)(props);
188
- let { styleProps: styleProps } = (0, $8bWUw$reactspectrumutils.useStyleProps)(otherProps);
189
- let updateOverflow = (0, $8bWUw$react.useCallback)(()=>{
190
- let computeVisibleItems = (visibleItems)=>{
191
- // Refs can be null at runtime.
192
- let currListRef = listRef.current;
193
- if (!currListRef) return visibleItems;
194
- let listItems = Array.from(currListRef.children);
195
- if (listItems.length <= 0) return visibleItems;
196
- let containerWidth = currListRef.offsetWidth;
197
- let isShowingMenu = childArray.length > visibleItems;
198
- let calculatedWidth = 0;
199
- let newVisibleItems = 0;
200
- let maxVisibleItems = $299bf776d9162a05$var$MAX_VISIBLE_ITEMS;
201
- if (showRoot) {
202
- calculatedWidth += listItems.shift().offsetWidth;
203
- newVisibleItems++;
204
- }
205
- if (isShowingMenu) {
206
- calculatedWidth += listItems.shift().offsetWidth;
207
- maxVisibleItems--;
208
- }
209
- if (showRoot && calculatedWidth >= containerWidth) newVisibleItems--;
210
- // TODO: what if multiline and only one breadcrumb??
211
- if (isMultiline) {
212
- listItems.pop();
213
- newVisibleItems++;
214
- } else if (listItems.length > 0) {
215
- // Ensure the last breadcrumb isn't truncated when we measure it.
216
- let last = listItems.pop();
217
- last.style.overflow = "visible";
218
- calculatedWidth += last.offsetWidth;
219
- if (calculatedWidth < containerWidth) newVisibleItems++;
220
- last.style.overflow = "";
221
- }
222
- for (let breadcrumb of listItems.reverse()){
223
- calculatedWidth += breadcrumb.offsetWidth;
224
- if (calculatedWidth < containerWidth) newVisibleItems++;
225
- }
226
- return Math.max($299bf776d9162a05$var$MIN_VISIBLE_ITEMS, Math.min(maxVisibleItems, newVisibleItems));
227
- };
228
- setVisibleItems(function*() {
229
- // Update to show all items.
230
- yield childArray.length;
231
- // Measure, and update to show the items that fit.
232
- let newVisibleItems = computeVisibleItems(childArray.length);
233
- yield newVisibleItems;
234
- // If the number of items is less than the number of children,
235
- // then update again to ensure that the menu fits.
236
- if (newVisibleItems < childArray.length && newVisibleItems > 1) yield computeVisibleItems(newVisibleItems);
237
- });
238
- }, [
239
- childArray.length,
240
- setVisibleItems,
241
- showRoot,
242
- isMultiline
243
- ]);
244
- (0, $8bWUw$reactariautils.useResizeObserver)({
245
- ref: domRef,
246
- onResize: updateOverflow
247
- });
248
- let lastChildren = (0, $8bWUw$react.useRef)(null);
249
- (0, $8bWUw$reactariautils.useLayoutEffect)(()=>{
250
- if (children !== lastChildren.current) {
251
- lastChildren.current = children;
252
- updateOverflow();
253
- }
254
- });
255
- let contents = childArray;
256
- if (childArray.length > visibleItems) {
257
- let selectedItem = childArray[childArray.length - 1];
258
- var _selectedItem_key;
259
- let selectedKey = (_selectedItem_key = selectedItem.key) !== null && _selectedItem_key !== void 0 ? _selectedItem_key : childArray.length - 1;
260
- let onMenuAction = (key)=>{
261
- // Don't fire onAction when clicking on the last item
262
- if (key !== selectedKey && onAction) onAction(key);
263
- };
264
- let menuItem = /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $d90ab02c74e9be0c$export$c13f210c706eb549), {
265
- key: "menu",
266
- isMenu: true
267
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $8bWUw$reactspectrummenu.MenuTrigger), null, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $8bWUw$reactspectrumbutton.ActionButton), {
268
- UNSAFE_className: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), "spectrum-Breadcrumbs-actionButton"),
269
- "aria-label": "\u2026",
270
- isQuiet: true,
271
- isDisabled: isDisabled
272
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, ($parcel$interopDefault($8bWUw$spectrumiconsuiFolderBreadcrumb))), null)), /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $8bWUw$reactspectrummenu.Menu), {
273
- selectionMode: "single",
274
- selectedKeys: [
275
- selectedKey
276
- ],
277
- onAction: onMenuAction
278
- }, childArray)));
279
- contents = [
280
- menuItem
281
- ];
282
- let breadcrumbs = [
283
- ...childArray
284
- ];
285
- let endItems = visibleItems;
286
- if (showRoot && visibleItems > 1) {
287
- let rootItem = breadcrumbs.shift();
288
- if (rootItem) contents.unshift(rootItem);
289
- endItems--;
290
- }
291
- contents.push(...breadcrumbs.slice(-endItems));
292
- }
293
- let lastIndex = contents.length - 1;
294
- let breadcrumbItems = contents.map((child, index)=>{
295
- let isCurrent = index === lastIndex;
296
- var _child_key;
297
- let key = (_child_key = child.key) !== null && _child_key !== void 0 ? _child_key : index;
298
- let onPress = ()=>{
299
- if (onAction) onAction(key);
300
- };
301
- return /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement("li", {
302
- key: index,
303
- className: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), "spectrum-Breadcrumbs-item")
304
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement((0, $d90ab02c74e9be0c$export$c13f210c706eb549), {
305
- ...child.props,
306
- key: key,
307
- isCurrent: isCurrent,
308
- isDisabled: isDisabled,
309
- onPress: onPress,
310
- autoFocus: isCurrent && autoFocusCurrent
311
- }, child.props.children));
312
- });
313
- return /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement("nav", {
314
- ...styleProps,
315
- ...navProps,
316
- ref: domRef
317
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).createElement("ul", {
318
- ref: listRef,
319
- className: (0, $8bWUw$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3292ef9f328419fc$exports))), "spectrum-Breadcrumbs", {
320
- "spectrum-Breadcrumbs--small": size === "S",
321
- "spectrum-Breadcrumbs--medium": size === "M",
322
- "spectrum-Breadcrumbs--multiline": isMultiline,
323
- "spectrum-Breadcrumbs--showRoot": showRoot,
324
- "is-disabled": isDisabled
325
- }, styleProps.className)
326
- }, breadcrumbItems));
327
- }
328
- /**
329
- * Breadcrumbs show hierarchy and navigational context for a user’s location within an application.
330
- */ let $299bf776d9162a05$export$2dc68d50d56fbbd = /*#__PURE__*/ (0, ($parcel$interopDefault($8bWUw$react))).forwardRef($299bf776d9162a05$var$Breadcrumbs);
331
-
332
22
 
333
23
 
334
24
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;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A,GAAA,gEAAe,yBAElB,0DAAC,CAAA,GAAA,6BAAG;YAAE,eAAc;YAAS,cAAc;gBAAC;aAAY;YAAE,UAAU;WACjE;QAMT,WAAW;YAAC;SAAS;QACrB,IAAI,cAAc;eAAI;SAAW;QACjC,IAAI,WAAW;QACf,IAAI,YAAY,eAAe,GAAG;YAChC,IAAI,WAAW,YAAY,KAAK;YAChC,IAAI,UACF,SAAS,OAAO,CAAC;YAEnB;QACF;QACA,SAAS,IAAI,IAAI,YAAY,KAAK,CAAC,CAAC;IACtC;IAEA,IAAI,YAAY,SAAS,MAAM,GAAG;IAClC,IAAI,kBAAkB,SAAS,GAAG,CAAC,CAAC,OAAO;QACzC,IAAI,YAAY,UAAU;YAChB;QAAV,IAAI,MAAM,CAAA,aAAA,MAAM,GAAG,cAAT,wBAAA,aAAa;QACvB,IAAI,UAAU;YACZ,IAAI,UACF,SAAS;QAEb;QAEA,qBACE,0DAAC;YACC,KAAK;YACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL;yBAGJ,0DAAC,CAAA,GAAA,yCAAa;YACX,GAAG,MAAM,KAAK;YACf,KAAK;YACL,WAAW;YACX,YAAY;YACZ,SAAS;YACT,WAAW,aAAa;WACvB,MAAM,KAAK,CAAC,QAAQ;IAI7B;IAEA,qBACE,0DAAC;QACE,GAAG,UAAU;QACb,GAAG,QAAQ;QACZ,KAAK;qBACL,0DAAC;QACC,KAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL,wBACA;YACE,+BAA+B,SAAS;YACxC,gCAAgC,SAAS;YACzC,mCAAmC;YACnC,kCAAkC;YAClC,eAAe;QACjB,GACA,WAAW,SAAS;OAGvB;AAIT;AAEA;;CAEC,GACD,IAAI,yDAAe,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/breadcrumbs/src/index.ts","packages/@react-spectrum/breadcrumbs/src/Breadcrumbs.tsx","packages/@react-spectrum/breadcrumbs/src/BreadcrumbItem.tsx","packages/@adobe/spectrum-css-temp/components/breadcrumb/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n/// <reference types=\"css-module-types\" />\nexport {Breadcrumbs} from './Breadcrumbs';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumBreadcrumbsProps} from '@react-types/breadcrumbs';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport {ActionButton} from '@react-spectrum/button';\nimport {BreadcrumbItem} from './BreadcrumbItem';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, Key} from '@react-types/shared';\nimport FolderBreadcrumb from '@spectrum-icons/ui/FolderBreadcrumb';\nimport {Menu, MenuTrigger} from '@react-spectrum/menu';\nimport React, {ReactElement, useCallback, useRef} from 'react';\nimport {SpectrumBreadcrumbsProps} from '@react-types/breadcrumbs';\nimport styles from '@adobe/spectrum-css-temp/components/breadcrumb/vars.css';\nimport {useBreadcrumbs} from '@react-aria/breadcrumbs';\nimport {useLayoutEffect, useResizeObserver, useValueEffect} from '@react-aria/utils';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nconst MIN_VISIBLE_ITEMS = 1;\nconst MAX_VISIBLE_ITEMS = 4;\n\nfunction Breadcrumbs<T>(props: SpectrumBreadcrumbsProps<T>, ref: DOMRef) {\n props = useProviderProps(props);\n let {\n size = 'L',\n isMultiline,\n children,\n showRoot,\n isDisabled,\n onAction,\n autoFocusCurrent,\n ...otherProps\n } = props;\n\n // Not using React.Children.toArray because it mutates the key prop.\n let childArray: ReactElement[] = [];\n React.Children.forEach(children, (child, index) => {\n if (React.isValidElement(child)) {\n if (child.key == null) {\n child = React.cloneElement(child, {key: index});\n }\n childArray.push(child);\n }\n });\n\n let domRef = useDOMRef(ref);\n let listRef = useRef<HTMLUListElement>(null);\n\n let [visibleItems, setVisibleItems] = useValueEffect(childArray.length);\n\n let {navProps} = useBreadcrumbs(props);\n let {styleProps} = useStyleProps(otherProps);\n\n let updateOverflow = useCallback(() => {\n let computeVisibleItems = (visibleItems: number): number => {\n // Refs can be null at runtime.\n let currListRef: HTMLUListElement | null = listRef.current;\n if (!currListRef) {\n return visibleItems;\n }\n\n let listItems = Array.from(currListRef.children) as HTMLLIElement[];\n if (listItems.length <= 0) {\n return visibleItems;\n }\n let containerWidth = currListRef.offsetWidth;\n let isShowingMenu = childArray.length > visibleItems;\n let calculatedWidth = 0;\n let newVisibleItems = 0;\n let maxVisibleItems = MAX_VISIBLE_ITEMS;\n\n if (showRoot) {\n calculatedWidth += (listItems.shift() as HTMLLIElement).offsetWidth;\n newVisibleItems++;\n }\n\n if (isShowingMenu) {\n calculatedWidth += (listItems.shift() as HTMLLIElement).offsetWidth;\n maxVisibleItems--;\n }\n\n if (showRoot && calculatedWidth >= containerWidth) {\n newVisibleItems--;\n }\n\n // TODO: what if multiline and only one breadcrumb??\n if (isMultiline) {\n listItems.pop();\n newVisibleItems++;\n } else {\n if (listItems.length > 0) {\n // Ensure the last breadcrumb isn't truncated when we measure it.\n let last = (listItems.pop() as HTMLLIElement);\n last.style.overflow = 'visible';\n\n calculatedWidth += last.offsetWidth;\n if (calculatedWidth < containerWidth) {\n newVisibleItems++;\n }\n\n last.style.overflow = '';\n }\n }\n\n for (let breadcrumb of listItems.reverse()) {\n calculatedWidth += breadcrumb.offsetWidth;\n if (calculatedWidth < containerWidth) {\n newVisibleItems++;\n }\n }\n\n return Math.max(MIN_VISIBLE_ITEMS, Math.min(maxVisibleItems, newVisibleItems));\n };\n\n setVisibleItems(function *() {\n // Update to show all items.\n yield childArray.length;\n\n // Measure, and update to show the items that fit.\n let newVisibleItems = computeVisibleItems(childArray.length);\n yield newVisibleItems;\n\n // If the number of items is less than the number of children,\n // then update again to ensure that the menu fits.\n if (newVisibleItems < childArray.length && newVisibleItems > 1) {\n yield computeVisibleItems(newVisibleItems);\n }\n });\n }, [childArray.length, setVisibleItems, showRoot, isMultiline]);\n\n useResizeObserver({ref: domRef, onResize: updateOverflow});\n\n let lastChildren = useRef<typeof children | null>(null);\n useLayoutEffect(() => {\n if (children !== lastChildren.current) {\n lastChildren.current = children;\n updateOverflow();\n }\n });\n\n let contents = childArray;\n if (childArray.length > visibleItems) {\n let selectedItem = childArray[childArray.length - 1];\n let selectedKey = selectedItem.key ?? childArray.length - 1;\n let onMenuAction = (key: Key) => {\n // Don't fire onAction when clicking on the last item\n if (key !== selectedKey && onAction) {\n onAction(key);\n }\n };\n\n let menuItem = (\n <BreadcrumbItem key=\"menu\" isMenu>\n <MenuTrigger>\n <ActionButton\n UNSAFE_className={classNames(styles, 'spectrum-Breadcrumbs-actionButton')}\n aria-label=\"…\"\n isQuiet\n isDisabled={isDisabled}>\n <FolderBreadcrumb />\n </ActionButton>\n <Menu selectionMode=\"single\" selectedKeys={[selectedKey]} onAction={onMenuAction}>\n {childArray}\n </Menu>\n </MenuTrigger>\n </BreadcrumbItem>\n );\n\n contents = [menuItem];\n let breadcrumbs = [...childArray];\n let endItems = visibleItems;\n if (showRoot && visibleItems > 1) {\n let rootItem = breadcrumbs.shift();\n if (rootItem) {\n contents.unshift(rootItem);\n }\n endItems--;\n }\n contents.push(...breadcrumbs.slice(-endItems));\n }\n\n let lastIndex = contents.length - 1;\n let breadcrumbItems = contents.map((child, index) => {\n let isCurrent = index === lastIndex;\n let key = child.key ?? index;\n let onPress = () => {\n if (onAction) {\n onAction(key);\n }\n };\n\n return (\n <li\n key={index}\n className={\n classNames(\n styles,\n 'spectrum-Breadcrumbs-item'\n )\n }>\n <BreadcrumbItem\n {...child.props}\n key={key}\n isCurrent={isCurrent}\n isDisabled={isDisabled}\n onPress={onPress}\n autoFocus={isCurrent && autoFocusCurrent}>\n {child.props.children}\n </BreadcrumbItem>\n </li>\n );\n });\n\n return (\n <nav\n {...styleProps}\n {...navProps}\n ref={domRef}>\n <ul\n ref={listRef}\n className={\n classNames(\n styles,\n 'spectrum-Breadcrumbs',\n {\n 'spectrum-Breadcrumbs--small': size === 'S',\n 'spectrum-Breadcrumbs--medium': size === 'M',\n 'spectrum-Breadcrumbs--multiline': isMultiline,\n 'spectrum-Breadcrumbs--showRoot': showRoot,\n 'is-disabled': isDisabled\n },\n styleProps.className\n )\n }>\n {breadcrumbItems}\n </ul>\n </nav>\n );\n}\n\n/**\n * Breadcrumbs show hierarchy and navigational context for a user’s location within an application.\n */\nlet _Breadcrumbs = React.forwardRef(Breadcrumbs);\nexport {_Breadcrumbs as Breadcrumbs};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {BreadcrumbItemProps} from '@react-types/breadcrumbs';\nimport ChevronRightSmall from '@spectrum-icons/ui/ChevronRightSmall';\nimport {classNames} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {Fragment, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/breadcrumb/vars.css';\nimport {useBreadcrumbItem} from '@react-aria/breadcrumbs';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface SpectrumBreadcrumbItemProps extends BreadcrumbItemProps {\n isMenu?: boolean\n}\n\nexport function BreadcrumbItem(props: SpectrumBreadcrumbItemProps) {\n let {\n children,\n isCurrent,\n isDisabled,\n isMenu\n } = props;\n\n let {direction} = useLocale();\n let ref = useRef(null);\n let ElementType: React.ElementType = props.href ? 'a' : 'span';\n let {itemProps} = useBreadcrumbItem({\n ...props,\n elementType: ElementType\n }, ref);\n let {hoverProps, isHovered} = useHover(props);\n\n // If this item contains a menu button, then it shouldn't be a link.\n if (isMenu) {\n itemProps = {};\n }\n\n return (\n <Fragment>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <ElementType\n {...mergeProps(itemProps, hoverProps)}\n ref={ref}\n className={\n classNames(\n styles,\n {\n 'spectrum-Breadcrumbs-itemLink': !isMenu,\n 'is-disabled': !isCurrent && isDisabled,\n 'is-hovered': isHovered\n }\n )\n }>\n {children}\n </ElementType>\n </FocusRing>\n <ChevronRightSmall\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Breadcrumbs-itemSeparator',\n {\n 'is-reversed': direction === 'rtl'\n }\n )\n } />\n </Fragment>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/breadcrumbs/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n/// <reference types=\"css-module-types\" />\nexport {Breadcrumbs} from './Breadcrumbs';\nexport {Item} from '@react-stately/collections';\nexport type {SpectrumBreadcrumbsProps} from '@react-types/breadcrumbs';\n"],"names":[],"version":3,"file":"main.js.map"}