@activecollab/components 2.0.524 → 2.0.526
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/cjs/components/Autocomplete/Autocomplete.js +93 -16
- package/dist/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/cjs/components/AvatarGroup/AvatarGroup.js +2 -1
- package/dist/cjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/cjs/components/ComboBox/ComboBox.js +6 -0
- package/dist/cjs/components/ComboBox/ComboBox.js.map +1 -1
- package/dist/cjs/components/EditableText/useEditableText.js +7 -3
- package/dist/cjs/components/EditableText/useEditableText.js.map +1 -1
- package/dist/cjs/components/Filter/Filter.js +9 -4
- package/dist/cjs/components/Filter/Filter.js.map +1 -1
- package/dist/cjs/components/Filter/Styles.js +10 -3
- package/dist/cjs/components/Filter/Styles.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.js +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.styles.js +3 -3
- package/dist/cjs/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/cjs/components/List/Styles.js +6 -2
- package/dist/cjs/components/List/Styles.js.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +13 -2
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/Menu/MenuBehavior.js +15 -0
- package/dist/cjs/components/Menu/MenuBehavior.js.map +1 -0
- package/dist/cjs/components/Menu/MenuHeader.js +2 -0
- package/dist/cjs/components/Menu/MenuHeader.js.map +1 -1
- package/dist/cjs/components/Menu/index.js +12 -0
- package/dist/cjs/components/Menu/index.js.map +1 -1
- package/dist/cjs/components/Select/Option/Option.js +1 -1
- package/dist/cjs/components/Select/Option/Option.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +3 -0
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Signifier/Signifier.js +1 -1
- package/dist/cjs/components/Signifier/Signifier.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/Styles.js +40 -0
- package/dist/cjs/components/ViewSwitcher/Styles.js.map +1 -0
- package/dist/cjs/components/ViewSwitcher/ViewIllustration.js +127 -0
- package/dist/cjs/components/ViewSwitcher/ViewIllustration.js.map +1 -0
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js +312 -0
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js.map +1 -0
- package/dist/cjs/components/ViewSwitcher/index.js +28 -0
- package/dist/cjs/components/ViewSwitcher/index.js.map +1 -0
- package/dist/cjs/components/index.js +11 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts +10 -3
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.js +74 -11
- package/dist/esm/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/esm/components/AvatarGroup/AvatarGroup.js +2 -1
- package/dist/esm/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/esm/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/esm/components/ComboBox/ComboBox.js +10 -2
- package/dist/esm/components/ComboBox/ComboBox.js.map +1 -1
- package/dist/esm/components/EditableText/useEditableText.d.ts.map +1 -1
- package/dist/esm/components/EditableText/useEditableText.js +7 -3
- package/dist/esm/components/EditableText/useEditableText.js.map +1 -1
- package/dist/esm/components/Filter/Filter.d.ts +2 -0
- package/dist/esm/components/Filter/Filter.d.ts.map +1 -1
- package/dist/esm/components/Filter/Filter.js +10 -5
- package/dist/esm/components/Filter/Filter.js.map +1 -1
- package/dist/esm/components/Filter/Styles.d.ts +1 -0
- package/dist/esm/components/Filter/Styles.d.ts.map +1 -1
- package/dist/esm/components/Filter/Styles.js +9 -2
- package/dist/esm/components/Filter/Styles.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.d.ts +2 -2
- package/dist/esm/components/FilterInput/FilterInput.d.ts.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.js +1 -1
- package/dist/esm/components/FilterInput/FilterInput.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.js +3 -3
- package/dist/esm/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/esm/components/List/Styles.d.ts +2 -0
- package/dist/esm/components/List/Styles.d.ts.map +1 -1
- package/dist/esm/components/List/Styles.js +5 -1
- package/dist/esm/components/List/Styles.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +13 -2
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Menu/MenuBehavior.d.ts +7 -0
- package/dist/esm/components/Menu/MenuBehavior.d.ts.map +1 -0
- package/dist/esm/components/Menu/MenuBehavior.js +7 -0
- package/dist/esm/components/Menu/MenuBehavior.js.map +1 -0
- package/dist/esm/components/Menu/MenuHeader.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuHeader.js +2 -0
- package/dist/esm/components/Menu/MenuHeader.js.map +1 -1
- package/dist/esm/components/Menu/index.d.ts +1 -0
- package/dist/esm/components/Menu/index.d.ts.map +1 -1
- package/dist/esm/components/Menu/index.js +1 -0
- package/dist/esm/components/Menu/index.js.map +1 -1
- package/dist/esm/components/Select/Option/Option.d.ts +4 -4
- package/dist/esm/components/Select/Option/Option.d.ts.map +1 -1
- package/dist/esm/components/Select/Option/Option.js +1 -1
- package/dist/esm/components/Select/Option/Option.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +4 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Signifier/Signifier.d.ts.map +1 -1
- package/dist/esm/components/Signifier/Signifier.js +1 -1
- package/dist/esm/components/Signifier/Signifier.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/Styles.d.ts +7 -0
- package/dist/esm/components/ViewSwitcher/Styles.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/Styles.js +33 -0
- package/dist/esm/components/ViewSwitcher/Styles.js.map +1 -0
- package/dist/esm/components/ViewSwitcher/ViewIllustration.d.ts +20 -0
- package/dist/esm/components/ViewSwitcher/ViewIllustration.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/ViewIllustration.js +91 -0
- package/dist/esm/components/ViewSwitcher/ViewIllustration.js.map +1 -0
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts +49 -0
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js +281 -0
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js.map +1 -0
- package/dist/esm/components/ViewSwitcher/index.d.ts +3 -0
- package/dist/esm/components/ViewSwitcher/index.d.ts.map +1 -0
- package/dist/esm/components/ViewSwitcher/index.js +3 -0
- package/dist/esm/components/ViewSwitcher/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/index.js +1361 -802
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "className", "onKeyDown", "onBlur"];
|
|
4
|
+
import React, { forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { StyledViewSwitcher, StyledViewSwitcherOffer, StyledViewSwitcherOption, StyledViewSwitcherPreview, StyledViewSwitcherThumbnail, StyledViewSwitcherTrack } from "./Styles";
|
|
7
|
+
import { Portal, useLayerContext } from "../../helpers";
|
|
8
|
+
import { layers } from "../../utils";
|
|
9
|
+
import useForkRef from "../../utils/useForkRef";
|
|
10
|
+
import { Button } from "../Button";
|
|
11
|
+
import { Popper } from "../Popper";
|
|
12
|
+
import { Body2, Caption1 } from "../Typography";
|
|
13
|
+
import { ViewIllustration } from "./ViewIllustration";
|
|
14
|
+
const POPOVER_MODIFIERS = [{
|
|
15
|
+
name: "offset",
|
|
16
|
+
options: {
|
|
17
|
+
offset: [0, 6]
|
|
18
|
+
}
|
|
19
|
+
}];
|
|
20
|
+
const TABBABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
21
|
+
const matchesFocusVisible = element => {
|
|
22
|
+
try {
|
|
23
|
+
return element.matches(":focus-visible");
|
|
24
|
+
} catch (_unused) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @component ViewSwitcher
|
|
31
|
+
* @description
|
|
32
|
+
* Icon-only radiogroup that switches the view of a page. A preview with the view name shows on hover
|
|
33
|
+
* and on keyboard focus. With onApplyToAll, a switch offers an extra action under the switcher.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* <ViewSwitcher
|
|
37
|
+
* aria-label="View"
|
|
38
|
+
* views={[
|
|
39
|
+
* { id: "list", label: "List View", icon: <ViewListIcon /> },
|
|
40
|
+
* { id: "grid", label: "Grid View", icon: <ViewGridIcon /> },
|
|
41
|
+
* ]}
|
|
42
|
+
* value={view}
|
|
43
|
+
* onChange={setView}
|
|
44
|
+
* onApplyToAll={applyToAllProjects}
|
|
45
|
+
* />
|
|
46
|
+
*/
|
|
47
|
+
export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
48
|
+
var _views;
|
|
49
|
+
let views = _ref.views,
|
|
50
|
+
value = _ref.value,
|
|
51
|
+
onChange = _ref.onChange,
|
|
52
|
+
_ref$ariaLabel = _ref["aria-label"],
|
|
53
|
+
ariaLabel = _ref$ariaLabel === void 0 ? "View" : _ref$ariaLabel,
|
|
54
|
+
onApplyToAll = _ref.onApplyToAll,
|
|
55
|
+
_ref$applyToAllLabel = _ref.applyToAllLabel,
|
|
56
|
+
applyToAllLabel = _ref$applyToAllLabel === void 0 ? "Apply to All Projects" : _ref$applyToAllLabel,
|
|
57
|
+
offerTitle = _ref.offerTitle,
|
|
58
|
+
className = _ref.className,
|
|
59
|
+
onKeyDown = _ref.onKeyDown,
|
|
60
|
+
onBlur = _ref.onBlur,
|
|
61
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
62
|
+
const _useLayerContext = useLayerContext(),
|
|
63
|
+
_useLayerContext$zInd = _useLayerContext.zIndex,
|
|
64
|
+
zIndex = _useLayerContext$zInd === void 0 ? layers.skyscraper : _useLayerContext$zInd;
|
|
65
|
+
const rootRef = useRef(null);
|
|
66
|
+
const handleRootRef = useForkRef(rootRef, ref);
|
|
67
|
+
const trackRef = useRef(null);
|
|
68
|
+
const optionRefs = useRef({});
|
|
69
|
+
const offerRef = useRef(null);
|
|
70
|
+
const offerActionRef = useRef(null);
|
|
71
|
+
const _useState = useState(null),
|
|
72
|
+
previewId = _useState[0],
|
|
73
|
+
setPreviewId = _useState[1];
|
|
74
|
+
const _useState2 = useState(null),
|
|
75
|
+
offerId = _useState2[0],
|
|
76
|
+
setOfferId = _useState2[1];
|
|
77
|
+
const offerTitleId = useId();
|
|
78
|
+
const checkedIndex = views.findIndex(_ref2 => {
|
|
79
|
+
let id = _ref2.id;
|
|
80
|
+
return id === value;
|
|
81
|
+
});
|
|
82
|
+
const tabStopId = (_views = views[checkedIndex >= 0 ? checkedIndex : 0]) == null ? void 0 : _views.id;
|
|
83
|
+
const offerView = views.find(_ref3 => {
|
|
84
|
+
let id = _ref3.id;
|
|
85
|
+
return id === offerId;
|
|
86
|
+
});
|
|
87
|
+
const previewView = offerView ? undefined : views.find(_ref4 => {
|
|
88
|
+
let id = _ref4.id;
|
|
89
|
+
return id === previewId;
|
|
90
|
+
});
|
|
91
|
+
const select = useCallback(id => {
|
|
92
|
+
if (id === value) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
onChange(id);
|
|
96
|
+
setPreviewId(null);
|
|
97
|
+
if (onApplyToAll) {
|
|
98
|
+
setOfferId(id);
|
|
99
|
+
}
|
|
100
|
+
}, [onApplyToAll, onChange, value]);
|
|
101
|
+
|
|
102
|
+
// The popovers live in a portal, so "inside" covers them as well as the track.
|
|
103
|
+
const isInside = node => {
|
|
104
|
+
var _rootRef$current, _offerRef$current;
|
|
105
|
+
return Boolean(node && (((_rootRef$current = rootRef.current) == null ? void 0 : _rootRef$current.contains(node)) || ((_offerRef$current = offerRef.current) == null ? void 0 : _offerRef$current.contains(node))));
|
|
106
|
+
};
|
|
107
|
+
const focusChecked = useCallback(() => {
|
|
108
|
+
if (tabStopId) {
|
|
109
|
+
var _optionRefs$current$t;
|
|
110
|
+
(_optionRefs$current$t = optionRefs.current[tabStopId]) == null || _optionRefs$current$t.focus();
|
|
111
|
+
}
|
|
112
|
+
}, [tabStopId]);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
if (!offerId) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
const closeOutside = event => {
|
|
118
|
+
if (!isInside(event.target)) {
|
|
119
|
+
setOfferId(null);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
document.addEventListener("mousedown", closeOutside);
|
|
123
|
+
return () => document.removeEventListener("mousedown", closeOutside);
|
|
124
|
+
}, [offerId]);
|
|
125
|
+
const handleOptionKeyDown = (event, index) => {
|
|
126
|
+
var _optionRefs$current$i;
|
|
127
|
+
const last = views.length - 1;
|
|
128
|
+
const targets = {
|
|
129
|
+
ArrowRight: index === last ? 0 : index + 1,
|
|
130
|
+
ArrowDown: index === last ? 0 : index + 1,
|
|
131
|
+
ArrowLeft: index === 0 ? last : index - 1,
|
|
132
|
+
ArrowUp: index === 0 ? last : index - 1,
|
|
133
|
+
Home: 0,
|
|
134
|
+
End: last
|
|
135
|
+
};
|
|
136
|
+
if (event.key === "Tab" && !event.shiftKey && offerActionRef.current) {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
offerActionRef.current.focus();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const target = targets[event.key];
|
|
142
|
+
if (target === undefined) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
event.preventDefault();
|
|
146
|
+
const id = views[target].id;
|
|
147
|
+
(_optionRefs$current$i = optionRefs.current[id]) == null || _optionRefs$current$i.focus();
|
|
148
|
+
select(id);
|
|
149
|
+
};
|
|
150
|
+
const handleRootKeyDown = event => {
|
|
151
|
+
onKeyDown == null || onKeyDown(event);
|
|
152
|
+
if (event.key !== "Escape" || !offerId && !previewId) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
event.stopPropagation();
|
|
156
|
+
setPreviewId(null);
|
|
157
|
+
if (offerId) {
|
|
158
|
+
setOfferId(null);
|
|
159
|
+
focusChecked();
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
const handleRootBlur = event => {
|
|
163
|
+
onBlur == null || onBlur(event);
|
|
164
|
+
const next = event.relatedTarget;
|
|
165
|
+
if (next && !isInside(next)) {
|
|
166
|
+
setOfferId(null);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const handleOfferActionKeyDown = event => {
|
|
170
|
+
if (event.key !== "Tab") {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
if (event.shiftKey) {
|
|
175
|
+
focusChecked();
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// The offer sits in a portal, so Tab goes on from the switcher in the page.
|
|
180
|
+
const next = Array.from(document.querySelectorAll(TABBABLE)).find(element => !isInside(element) && Boolean(rootRef.current && rootRef.current.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING));
|
|
181
|
+
if (next) {
|
|
182
|
+
next.focus();
|
|
183
|
+
} else {
|
|
184
|
+
focusChecked();
|
|
185
|
+
setOfferId(null);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const applyToAll = async () => {
|
|
189
|
+
if (!offerId || !onApplyToAll) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
const id = offerId;
|
|
193
|
+
focusChecked();
|
|
194
|
+
setOfferId(null);
|
|
195
|
+
await onApplyToAll(id);
|
|
196
|
+
};
|
|
197
|
+
return /*#__PURE__*/React.createElement(StyledViewSwitcher, _extends({
|
|
198
|
+
ref: handleRootRef,
|
|
199
|
+
className: classnames("c-view-switcher", className),
|
|
200
|
+
onKeyDown: handleRootKeyDown,
|
|
201
|
+
onBlur: handleRootBlur
|
|
202
|
+
}, rest), /*#__PURE__*/React.createElement(StyledViewSwitcherTrack, {
|
|
203
|
+
ref: trackRef,
|
|
204
|
+
role: "radiogroup",
|
|
205
|
+
"aria-label": ariaLabel,
|
|
206
|
+
className: "c-view-switcher__track"
|
|
207
|
+
}, views.map((view, index) => {
|
|
208
|
+
const checked = view.id === value;
|
|
209
|
+
return /*#__PURE__*/React.createElement(StyledViewSwitcherOption, {
|
|
210
|
+
key: view.id,
|
|
211
|
+
ref: node => {
|
|
212
|
+
optionRefs.current[view.id] = node;
|
|
213
|
+
},
|
|
214
|
+
type: "button",
|
|
215
|
+
role: "radio",
|
|
216
|
+
"aria-checked": checked,
|
|
217
|
+
"aria-label": view.label,
|
|
218
|
+
tabIndex: view.id === tabStopId ? 0 : -1,
|
|
219
|
+
className: "c-view-switcher__option",
|
|
220
|
+
onClick: () => select(view.id),
|
|
221
|
+
onKeyDown: event => handleOptionKeyDown(event, index),
|
|
222
|
+
onMouseEnter: () => setPreviewId(view.id),
|
|
223
|
+
onMouseLeave: () => setPreviewId(null),
|
|
224
|
+
onFocus: event => {
|
|
225
|
+
if (matchesFocusVisible(event.currentTarget)) {
|
|
226
|
+
setPreviewId(view.id);
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
onBlur: () => setPreviewId(null)
|
|
230
|
+
}, view.icon);
|
|
231
|
+
})), previewView ? /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Popper, {
|
|
232
|
+
anchorEl: optionRefs.current[previewView.id],
|
|
233
|
+
open: true,
|
|
234
|
+
placement: "bottom",
|
|
235
|
+
strategy: "fixed",
|
|
236
|
+
modifiers: POPOVER_MODIFIERS,
|
|
237
|
+
style: {
|
|
238
|
+
zIndex
|
|
239
|
+
},
|
|
240
|
+
"aria-hidden": "true"
|
|
241
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherPreview, {
|
|
242
|
+
className: "c-view-switcher__preview"
|
|
243
|
+
}, previewView.preview ? /*#__PURE__*/React.createElement(StyledViewSwitcherThumbnail, null, previewView.preview) : previewView.illustration ? /*#__PURE__*/React.createElement(StyledViewSwitcherThumbnail, null, /*#__PURE__*/React.createElement(ViewIllustration, {
|
|
244
|
+
type: previewView.illustration
|
|
245
|
+
})) : null, /*#__PURE__*/React.createElement(Caption1, {
|
|
246
|
+
weight: "bold",
|
|
247
|
+
color: "primary"
|
|
248
|
+
}, previewView.label), previewView.description ? /*#__PURE__*/React.createElement(Caption1, {
|
|
249
|
+
color: "tertiary"
|
|
250
|
+
}, previewView.description) : null))) : null, offerView ? /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Popper, {
|
|
251
|
+
anchorEl: trackRef.current,
|
|
252
|
+
open: true,
|
|
253
|
+
placement: "bottom",
|
|
254
|
+
strategy: "fixed",
|
|
255
|
+
modifiers: POPOVER_MODIFIERS,
|
|
256
|
+
style: {
|
|
257
|
+
zIndex
|
|
258
|
+
}
|
|
259
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherOffer, {
|
|
260
|
+
ref: offerRef,
|
|
261
|
+
role: "group",
|
|
262
|
+
"aria-labelledby": offerTitleId,
|
|
263
|
+
className: "c-view-switcher__offer"
|
|
264
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
265
|
+
className: "c-view-switcher__offer-title"
|
|
266
|
+
}, offerView.icon, /*#__PURE__*/React.createElement(Body2, {
|
|
267
|
+
id: offerTitleId,
|
|
268
|
+
weight: "bold",
|
|
269
|
+
color: "primary"
|
|
270
|
+
}, offerTitle ? offerTitle(offerView) : "Now in " + offerView.label)), /*#__PURE__*/React.createElement(Button, {
|
|
271
|
+
type: "button",
|
|
272
|
+
variant: "secondary",
|
|
273
|
+
size: "small",
|
|
274
|
+
ref: offerActionRef,
|
|
275
|
+
className: "c-view-switcher__offer-action",
|
|
276
|
+
onClick: applyToAll,
|
|
277
|
+
onKeyDown: handleOfferActionKeyDown
|
|
278
|
+
}, /*#__PURE__*/React.createElement(Caption1, null, applyToAllLabel))))) : null);
|
|
279
|
+
});
|
|
280
|
+
ViewSwitcher.displayName = "ViewSwitcher";
|
|
281
|
+
//# sourceMappingURL=ViewSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.js","names":["React","forwardRef","useCallback","useEffect","useId","useRef","useState","classnames","StyledViewSwitcher","StyledViewSwitcherOffer","StyledViewSwitcherOption","StyledViewSwitcherPreview","StyledViewSwitcherThumbnail","StyledViewSwitcherTrack","Portal","useLayerContext","layers","useForkRef","Button","Popper","Body2","Caption1","ViewIllustration","POPOVER_MODIFIERS","name","options","offset","TABBABLE","matchesFocusVisible","element","matches","_unused","ViewSwitcher","_ref","ref","_views","views","value","onChange","_ref$ariaLabel","ariaLabel","onApplyToAll","_ref$applyToAllLabel","applyToAllLabel","offerTitle","className","onKeyDown","onBlur","rest","_objectWithoutPropertiesLoose","_excluded","_useLayerContext","_useLayerContext$zInd","zIndex","skyscraper","rootRef","handleRootRef","trackRef","optionRefs","offerRef","offerActionRef","_useState","previewId","setPreviewId","_useState2","offerId","setOfferId","offerTitleId","checkedIndex","findIndex","_ref2","id","tabStopId","offerView","find","_ref3","previewView","undefined","_ref4","select","isInside","node","_rootRef$current","_offerRef$current","Boolean","current","contains","focusChecked","_optionRefs$current$t","focus","closeOutside","event","target","document","addEventListener","removeEventListener","handleOptionKeyDown","index","_optionRefs$current$i","last","length","targets","ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","key","shiftKey","preventDefault","handleRootKeyDown","stopPropagation","handleRootBlur","next","relatedTarget","handleOfferActionKeyDown","Array","from","querySelectorAll","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","applyToAll","createElement","_extends","role","map","view","checked","type","label","tabIndex","onClick","onMouseEnter","onMouseLeave","onFocus","currentTarget","icon","anchorEl","open","placement","strategy","modifiers","style","preview","illustration","weight","color","description","variant","size","displayName"],"sources":["../../../../src/components/ViewSwitcher/ViewSwitcher.tsx"],"sourcesContent":["import React, {\n FocusEvent,\n forwardRef,\n HTMLAttributes,\n KeyboardEvent,\n ReactNode,\n useCallback,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledViewSwitcher,\n StyledViewSwitcherOffer,\n StyledViewSwitcherOption,\n StyledViewSwitcherPreview,\n StyledViewSwitcherThumbnail,\n StyledViewSwitcherTrack,\n} from \"./Styles\";\nimport { Portal, useLayerContext } from \"../../helpers\";\nimport { layers } from \"../../utils\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Button } from \"../Button\";\nimport { Popper, PopperModifier } from \"../Popper\";\nimport { Body2, Caption1 } from \"../Typography\";\nimport { ViewIllustration, ViewIllustrationType } from \"./ViewIllustration\";\n\nexport interface ViewSwitcherView {\n id: string;\n /** View name: the radio's accessible name and the preview title. */\n label: string;\n /** DS icon element. */\n icon: ReactNode;\n /** Second line of the preview. */\n description?: string;\n /** Thumbnail drawn above the preview title. */\n preview?: ReactNode;\n /** Built-in thumbnail of this kind of view, used when there is no preview. */\n illustration?: ViewIllustrationType;\n}\n\nexport interface ViewSwitcherProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n views: ViewSwitcherView[];\n /** Id of the checked view. */\n value?: string;\n onChange: (id: string) => void;\n /** Accessible name of the radiogroup. */\n \"aria-label\"?: string;\n /** Turns on the extra action offered after a switch. */\n onApplyToAll?: (id: string) => unknown;\n /** Extra action button text. */\n applyToAllLabel?: string;\n /** Title of the extra action popover. Defaults to \"Now in {label}\". */\n offerTitle?: (view: ViewSwitcherView) => ReactNode;\n}\n\nconst POPOVER_MODIFIERS: PopperModifier[] = [\n { name: \"offset\", options: { offset: [0, 6] } },\n];\nconst TABBABLE =\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\nconst matchesFocusVisible = (element: Element): boolean => {\n try {\n return element.matches(\":focus-visible\");\n } catch {\n return false;\n }\n};\n\n/**\n * @component ViewSwitcher\n * @description\n * Icon-only radiogroup that switches the view of a page. A preview with the view name shows on hover\n * and on keyboard focus. With onApplyToAll, a switch offers an extra action under the switcher.\n *\n * @example\n * <ViewSwitcher\n * aria-label=\"View\"\n * views={[\n * { id: \"list\", label: \"List View\", icon: <ViewListIcon /> },\n * { id: \"grid\", label: \"Grid View\", icon: <ViewGridIcon /> },\n * ]}\n * value={view}\n * onChange={setView}\n * onApplyToAll={applyToAllProjects}\n * />\n */\nexport const ViewSwitcher = forwardRef<HTMLDivElement, ViewSwitcherProps>(\n (\n {\n views,\n value,\n onChange,\n \"aria-label\": ariaLabel = \"View\",\n onApplyToAll,\n applyToAllLabel = \"Apply to All Projects\",\n offerTitle,\n className,\n onKeyDown,\n onBlur,\n ...rest\n },\n ref\n ) => {\n const { zIndex = layers.skyscraper } = useLayerContext();\n const rootRef = useRef<HTMLDivElement | null>(null);\n const handleRootRef = useForkRef(rootRef, ref);\n const trackRef = useRef<HTMLDivElement | null>(null);\n const optionRefs = useRef<Record<string, HTMLButtonElement | null>>({});\n const offerRef = useRef<HTMLDivElement | null>(null);\n const offerActionRef = useRef<HTMLButtonElement | null>(null);\n const [previewId, setPreviewId] = useState<string | null>(null);\n const [offerId, setOfferId] = useState<string | null>(null);\n const offerTitleId = useId();\n\n const checkedIndex = views.findIndex(({ id }) => id === value);\n const tabStopId = views[checkedIndex >= 0 ? checkedIndex : 0]?.id;\n const offerView = views.find(({ id }) => id === offerId);\n const previewView = offerView\n ? undefined\n : views.find(({ id }) => id === previewId);\n\n const select = useCallback(\n (id: string) => {\n if (id === value) {\n return;\n }\n\n onChange(id);\n setPreviewId(null);\n\n if (onApplyToAll) {\n setOfferId(id);\n }\n },\n [onApplyToAll, onChange, value]\n );\n\n // The popovers live in a portal, so \"inside\" covers them as well as the track.\n const isInside = (node: Node | null): boolean =>\n Boolean(\n node &&\n (rootRef.current?.contains(node) || offerRef.current?.contains(node))\n );\n\n const focusChecked = useCallback(() => {\n if (tabStopId) {\n optionRefs.current[tabStopId]?.focus();\n }\n }, [tabStopId]);\n\n useEffect(() => {\n if (!offerId) {\n return undefined;\n }\n\n const closeOutside = (event: MouseEvent): void => {\n if (!isInside(event.target as Node)) {\n setOfferId(null);\n }\n };\n\n document.addEventListener(\"mousedown\", closeOutside);\n\n return () => document.removeEventListener(\"mousedown\", closeOutside);\n }, [offerId]);\n\n const handleOptionKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>,\n index: number\n ): void => {\n const last = views.length - 1;\n const targets: Record<string, number> = {\n ArrowRight: index === last ? 0 : index + 1,\n ArrowDown: index === last ? 0 : index + 1,\n ArrowLeft: index === 0 ? last : index - 1,\n ArrowUp: index === 0 ? last : index - 1,\n Home: 0,\n End: last,\n };\n if (event.key === \"Tab\" && !event.shiftKey && offerActionRef.current) {\n event.preventDefault();\n offerActionRef.current.focus();\n\n return;\n }\n\n const target = targets[event.key];\n\n if (target === undefined) {\n return;\n }\n\n event.preventDefault();\n\n const { id } = views[target];\n\n optionRefs.current[id]?.focus();\n select(id);\n };\n\n const handleRootKeyDown = (event: KeyboardEvent<HTMLDivElement>): void => {\n onKeyDown?.(event);\n\n if (event.key !== \"Escape\" || (!offerId && !previewId)) {\n return;\n }\n\n event.stopPropagation();\n setPreviewId(null);\n\n if (offerId) {\n setOfferId(null);\n focusChecked();\n }\n };\n\n const handleRootBlur = (event: FocusEvent<HTMLDivElement>): void => {\n onBlur?.(event);\n\n const next = event.relatedTarget as Node | null;\n\n if (next && !isInside(next)) {\n setOfferId(null);\n }\n };\n\n const handleOfferActionKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>\n ): void => {\n if (event.key !== \"Tab\") {\n return;\n }\n\n event.preventDefault();\n\n if (event.shiftKey) {\n focusChecked();\n\n return;\n }\n\n // The offer sits in a portal, so Tab goes on from the switcher in the page.\n const next = Array.from(\n document.querySelectorAll<HTMLElement>(TABBABLE)\n ).find(\n (element) =>\n !isInside(element) &&\n Boolean(\n rootRef.current &&\n rootRef.current.compareDocumentPosition(element) &\n Node.DOCUMENT_POSITION_FOLLOWING\n )\n );\n\n if (next) {\n next.focus();\n } else {\n focusChecked();\n setOfferId(null);\n }\n };\n\n const applyToAll = async (): Promise<void> => {\n if (!offerId || !onApplyToAll) {\n return;\n }\n\n const id = offerId;\n\n focusChecked();\n setOfferId(null);\n\n await onApplyToAll(id);\n };\n\n return (\n <StyledViewSwitcher\n ref={handleRootRef}\n className={classnames(\"c-view-switcher\", className)}\n onKeyDown={handleRootKeyDown}\n onBlur={handleRootBlur}\n {...rest}\n >\n <StyledViewSwitcherTrack\n ref={trackRef}\n role=\"radiogroup\"\n aria-label={ariaLabel}\n className=\"c-view-switcher__track\"\n >\n {views.map((view, index) => {\n const checked = view.id === value;\n\n return (\n <StyledViewSwitcherOption\n key={view.id}\n ref={(node: HTMLButtonElement | null) => {\n optionRefs.current[view.id] = node;\n }}\n type=\"button\"\n role=\"radio\"\n aria-checked={checked}\n aria-label={view.label}\n tabIndex={view.id === tabStopId ? 0 : -1}\n className=\"c-view-switcher__option\"\n onClick={() => select(view.id)}\n onKeyDown={(event: KeyboardEvent<HTMLButtonElement>) =>\n handleOptionKeyDown(event, index)\n }\n onMouseEnter={() => setPreviewId(view.id)}\n onMouseLeave={() => setPreviewId(null)}\n onFocus={(event: FocusEvent<HTMLButtonElement>) => {\n if (matchesFocusVisible(event.currentTarget)) {\n setPreviewId(view.id);\n }\n }}\n onBlur={() => setPreviewId(null)}\n >\n {view.icon}\n </StyledViewSwitcherOption>\n );\n })}\n </StyledViewSwitcherTrack>\n {previewView ? (\n <Portal>\n <Popper\n anchorEl={optionRefs.current[previewView.id]}\n open\n placement=\"bottom\"\n strategy=\"fixed\"\n modifiers={POPOVER_MODIFIERS}\n style={{ zIndex }}\n aria-hidden=\"true\"\n >\n <StyledViewSwitcherPreview className=\"c-view-switcher__preview\">\n {previewView.preview ? (\n <StyledViewSwitcherThumbnail>\n {previewView.preview}\n </StyledViewSwitcherThumbnail>\n ) : previewView.illustration ? (\n <StyledViewSwitcherThumbnail>\n <ViewIllustration type={previewView.illustration} />\n </StyledViewSwitcherThumbnail>\n ) : null}\n <Caption1 weight=\"bold\" color=\"primary\">\n {previewView.label}\n </Caption1>\n {previewView.description ? (\n <Caption1 color=\"tertiary\">\n {previewView.description}\n </Caption1>\n ) : null}\n </StyledViewSwitcherPreview>\n </Popper>\n </Portal>\n ) : null}\n {offerView ? (\n <Portal>\n <Popper\n anchorEl={trackRef.current}\n open\n placement=\"bottom\"\n strategy=\"fixed\"\n modifiers={POPOVER_MODIFIERS}\n style={{ zIndex }}\n >\n <StyledViewSwitcherOffer\n ref={offerRef}\n role=\"group\"\n aria-labelledby={offerTitleId}\n className=\"c-view-switcher__offer\"\n >\n <div className=\"c-view-switcher__offer-title\">\n {offerView.icon}\n <Body2 id={offerTitleId} weight=\"bold\" color=\"primary\">\n {offerTitle\n ? offerTitle(offerView)\n : `Now in ${offerView.label}`}\n </Body2>\n </div>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n ref={offerActionRef}\n className=\"c-view-switcher__offer-action\"\n onClick={applyToAll}\n onKeyDown={handleOfferActionKeyDown}\n >\n <Caption1>{applyToAllLabel}</Caption1>\n </Button>\n </StyledViewSwitcherOffer>\n </Popper>\n </Portal>\n ) : null}\n </StyledViewSwitcher>\n );\n }\n);\n\nViewSwitcher.displayName = \"ViewSwitcher\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAEVC,UAAU,EAIVC,WAAW,EACXC,SAAS,EACTC,KAAK,EACLC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,uBAAuB,EACvBC,wBAAwB,EACxBC,yBAAyB,EACzBC,2BAA2B,EAC3BC,uBAAuB,QAClB,UAAU;AACjB,SAASC,MAAM,EAAEC,eAAe,QAAQ,eAAe;AACvD,SAASC,MAAM,QAAQ,aAAa;AACpC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,MAAM,QAAwB,WAAW;AAClD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AAC/C,SAASC,gBAAgB,QAA8B,oBAAoB;AAgC3E,MAAMC,iBAAmC,GAAG,CAC1C;EAAEC,IAAI,EAAE,QAAQ;EAAEC,OAAO,EAAE;IAAEC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC;EAAE;AAAE,CAAC,CAChD;AACD,MAAMC,QAAQ,GACZ,2IAA2I;AAE7I,MAAMC,mBAAmB,GAAIC,OAAgB,IAAc;EACzD,IAAI;IACF,OAAOA,OAAO,CAACC,OAAO,CAAC,gBAAgB,CAAC;EAC1C,CAAC,CAAC,OAAAC,OAAA,EAAM;IACN,OAAO,KAAK;EACd;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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A,CAACzG,MAAM;IACLwH,QAAQ,EAAElF,QAAQ,CAAC4B,OAAQ;IAC3BuD,IAAI;IACJC,SAAS,EAAC,QAAQ;IAClBC,QAAQ,EAAC,OAAO;IAChBC,SAAS,EAAExH,iBAAkB;IAC7ByH,KAAK,EAAE;MAAE3F;IAAO;EAAE,gBAElBrD,KAAA,CAAA4H,aAAA,CAACnH,uBAAuB;IACtByB,GAAG,EAAEyB,QAAS;IACdmE,IAAI,EAAC,OAAO;IACZ,mBAAiB3D,YAAa;IAC9BtB,SAAS,EAAC;EAAwB,gBAElC7C,KAAA,CAAA4H,aAAA;IAAK/E,SAAS,EAAC;EAA8B,GAC1C4B,SAAS,CAACiE,IAAI,eACf1I,KAAA,CAAA4H,aAAA,CAACxG,KAAK;IAACmD,EAAE,EAAEJ,YAAa;IAACgF,MAAM,EAAC,MAAM;IAACC,KAAK,EAAC;EAAS,GACnDxG,UAAU,GACPA,UAAU,CAAC6B,SAAS,CAAC,eACXA,SAAS,CAAC0D,KACnB,CACJ,CAAC,eACNnI,KAAA,CAAA4H,aAAA,CAAC1G,MAAM;IACLgH,IAAI,EAAC,QAAQ;IACboB,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,OAAO;IACZrH,GAAG,EAAE0B,cAAe;IACpBf,SAAS,EAAC,+BAA+B;IACzCwF,OAAO,EAAEV,UAAW;IACpB7E,SAAS,EAAEsE;EAAyB,gBAEpCpH,KAAA,CAAA4H,aAAA,CAACvG,QAAQ,QAAEsB,eAA0B,CAC/B,CACe,CACnB,CACF,CAAC,GACP,IACc,CAAC;AAEzB,CACF,CAAC;AAEDX,YAAY,CAACwH,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ViewSwitcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ViewSwitcher/index.ts"],"sourcesContent":["export * from \"./ViewSwitcher\";\nexport * from \"./ViewIllustration\";\n"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc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AC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./EmptySlate\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./FileTile\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,sBAAsB;AACpC,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC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* from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./ScrollShadow\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Modal\";\nexport * from \"./Sheet\";\nexport * from \"./Header\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./ViewSwitcher\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./EmptySlate\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./FileTile\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,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