@altinn/altinn-components 0.67.4 → 0.67.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/LayoutBase-CrlzKACr.js +19 -0
- package/dist/{ToolbarSearch-bv2opbAj.js → ToolbarSearch-DyVcALSw.js} +188 -188
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/HeaderDrawer.css +1 -1
- package/dist/assets/LayoutBase.css +1 -1
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
- package/dist/components/Account/AccountList.js +1 -1
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Account/AccountListItemDetails.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +1 -1
- package/dist/components/Account/AccountMenu.js +1 -1
- package/dist/components/Account/AccountNotificationSettings.js +1 -1
- package/dist/components/Account/AccountOrganization.js +1 -1
- package/dist/components/AccountSelector/AccountSelector.js +66 -59
- package/dist/components/ActivityLog/ActivityLog.js +1 -1
- package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
- package/dist/components/ActivityLog/ActivityLogSegment.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Article/Article.js +1 -1
- package/dist/components/Article/ArticleContact.js +1 -1
- package/dist/components/Article/ArticleHeader.js +1 -1
- package/dist/components/Attachment/AttachmentLink.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidence.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceItem.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceOwner.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceParent.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceService.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsList.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Bulk/BulkHeader.js +1 -1
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ComboButton.js +1 -1
- package/dist/components/Button/FloatingActionButton.js +1 -1
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/Byline/index.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/Dashboard/DashboardCard.js +1 -1
- package/dist/components/Dashboard/DashboardHeader.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +1 -1
- package/dist/components/Datepicker/DatepickerHeader.js +1 -1
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +1 -1
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTabs.js +1 -1
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/SeenByLogButton.js +1 -1
- package/dist/components/Dialog/SeenByLogItem.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/Dropdown/FloatingDropdown.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Forms/Checkbox.js +1 -1
- package/dist/components/Forms/CheckboxOptions.js +1 -1
- package/dist/components/Forms/FieldBase.js +1 -1
- package/dist/components/Forms/FieldsetBase.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.js +1 -1
- package/dist/components/Forms/SearchField.js +1 -1
- package/dist/components/Forms/SelectField.js +1 -1
- package/dist/components/Forms/Switch.js +1 -1
- package/dist/components/Forms/SwitchOptions.js +1 -1
- package/dist/components/Forms/TextField.js +1 -1
- package/dist/components/Forms/TextFieldDropdown.js +1 -1
- package/dist/components/Forms/TextareaField.js +1 -1
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/GlobalAccountButton.js +1 -1
- package/dist/components/GlobalHeader/GlobalHeader.js +33 -33
- package/dist/components/GlobalHeader/GlobalMenuButton.js +1 -1
- package/dist/components/GlobalHeader/HeaderDrawer.js +23 -23
- package/dist/components/GlobalHeader/HeaderDropdown.js +1 -1
- package/dist/components/GlobalHeader/HeaderLogo.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu/LocaleSwitcher.js +1 -1
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inbox/InboxPage.js +1 -1
- package/dist/components/InboxSearch/InboxSearch.js +1 -1
- package/dist/components/Item/ItemLabel.js +1 -1
- package/dist/components/Item/ItemMedia.js +1 -1
- package/dist/components/Item/ItemSelect.js +1 -1
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Layout/Layout.js +36 -28
- package/dist/components/Layout/LayoutBase.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItemHeader.js +1 -1
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/List/ListItemLabel.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuListSearch.js +1 -1
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/TabMenu.js +1 -1
- package/dist/components/Menu/VirtualizedMenuItems.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/useMenuSearch.js +1 -1
- package/dist/components/Metadata/MetaItem.js +1 -1
- package/dist/components/Metadata/MetaItemIcon.js +1 -1
- package/dist/components/Metadata/MetaTimestamp.js +1 -1
- package/dist/components/Metadata/Metadata.js +1 -1
- package/dist/components/Metadata/index.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalBase.js +1 -1
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/ModalIcon.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/NotificationItemBase.js +1 -1
- package/dist/components/Notifications/NotificationItemControls.js +1 -1
- package/dist/components/Notifications/NotificationItemIcon.js +1 -1
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
- package/dist/components/RootProvider/RootProvider.js +1 -1
- package/dist/components/RootProvider/index.js +1 -1
- package/dist/components/Search/SearchItem.js +1 -1
- package/dist/components/Searchbar/Autocomplete.js +1 -1
- package/dist/components/Searchbar/AutocompleteItem.js +1 -1
- package/dist/components/Searchbar/Searchbar.js +1 -1
- package/dist/components/Searchbar/SearchbarField.js +1 -1
- package/dist/components/Settings/SettingsItem.js +1 -1
- package/dist/components/Settings/SettingsItemBase.js +1 -1
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Settings/SettingsListVirtual.js +1 -1
- package/dist/components/Settings/SettingsModal.js +1 -1
- package/dist/components/Settings/SettingsSection.js +1 -1
- package/dist/components/Settings/UsedByLog.js +1 -1
- package/dist/components/Settings/UsedByLogItem.js +1 -1
- package/dist/components/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/SelectDateFilter.js +1 -1
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterButton.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/hooks/useAccountSelector.js +1 -1
- package/dist/hooks/useLockBodyScroll.js +16 -9
- package/dist/index.js +2 -2
- package/dist/types/lib/components/Menu/MenuListSearch.d.ts +2 -0
- package/dist/types/lib/components/Menu/types.d.ts +1 -1
- package/dist/types/lib/hooks/useLockBodyScroll.d.ts +17 -0
- package/package.json +1 -1
- package/dist/LayoutBase-CAdjuw9Q.js +0 -18
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as x, Fragment as xe } from "react/jsx-runtime";
|
|
3
3
|
import * as G from "react";
|
|
4
|
-
import C, { forwardRef as Q, useRef as ee, useState as oe, useMemo as
|
|
4
|
+
import C, { forwardRef as Q, useRef as ee, useState as oe, useMemo as le, useEffect as Y, Fragment as He, useLayoutEffect as Ce, createContext as ot, useContext as at, isValidElement as Ge, useId as De, useCallback as qe, memo as Oe, createElement as st } from "react";
|
|
5
5
|
import "./tooltip-Ct39-719.js";
|
|
6
6
|
import { c as U } from "./index-p1eeF8LQ.js";
|
|
7
|
-
import { useEscapeKey as
|
|
7
|
+
import { useEscapeKey as lt } from "./hooks/useEscapeKey.js";
|
|
8
8
|
import "./components/Typography/Link.js";
|
|
9
9
|
import { Button as ve } from "./components/Button/Button.js";
|
|
10
|
-
import { createPortal as
|
|
10
|
+
import { createPortal as it } from "react-dom";
|
|
11
11
|
import { useMenu as Me } from "./hooks/useMenu.js";
|
|
12
12
|
import { Typography as Ke } from "./components/Typography/Typography.js";
|
|
13
13
|
import { Skeleton as ue } from "./components/Skeleton/Skeleton.js";
|
|
@@ -180,7 +180,7 @@ const Bt = Q((e, o) => {
|
|
|
180
180
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
|
|
181
181
|
);
|
|
182
182
|
});
|
|
183
|
-
var
|
|
183
|
+
var Lt = function(e, o) {
|
|
184
184
|
var n = {};
|
|
185
185
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
186
186
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -188,8 +188,8 @@ var Tt = function(e, o) {
|
|
|
188
188
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
189
189
|
return n;
|
|
190
190
|
};
|
|
191
|
-
const
|
|
192
|
-
var { title: n, titleId: t } = e, r =
|
|
191
|
+
const Tt = Q((e, o) => {
|
|
192
|
+
var { title: n, titleId: t } = e, r = Lt(e, ["title", "titleId"]);
|
|
193
193
|
let s = X();
|
|
194
194
|
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
195
195
|
"svg",
|
|
@@ -245,7 +245,7 @@ const Ae = Q((e, o) => {
|
|
|
245
245
|
tooltip: s,
|
|
246
246
|
className: m,
|
|
247
247
|
style: f,
|
|
248
|
-
children:
|
|
248
|
+
children: i
|
|
249
249
|
}) => s ? /* @__PURE__ */ a($e, { content: s, children: /* @__PURE__ */ a(
|
|
250
250
|
"span",
|
|
251
251
|
{
|
|
@@ -256,7 +256,7 @@ const Ae = Q((e, o) => {
|
|
|
256
256
|
"data-theme": t,
|
|
257
257
|
"data-size": r,
|
|
258
258
|
...r === "xs" && { "aria-hidden": !0 },
|
|
259
|
-
children: /* @__PURE__ */ a("span", { className: ye.label, children: e ||
|
|
259
|
+
children: /* @__PURE__ */ a("span", { className: ye.label, children: e || i })
|
|
260
260
|
}
|
|
261
261
|
) }) : /* @__PURE__ */ a(
|
|
262
262
|
"span",
|
|
@@ -268,7 +268,7 @@ const Ae = Q((e, o) => {
|
|
|
268
268
|
"data-theme": t,
|
|
269
269
|
"data-size": r,
|
|
270
270
|
...r === "xs" && { "aria-hidden": !0 },
|
|
271
|
-
children: /* @__PURE__ */ a("span", { className: ye.label, children: e ||
|
|
271
|
+
children: /* @__PURE__ */ a("span", { className: ye.label, children: e || i })
|
|
272
272
|
}
|
|
273
273
|
), Vt = "_icon_1y3dz_1", Ut = "_shape_1y3dz_9", Wt = "_svg_1y3dz_14", Yt = "_image_1y3dz_15", fe = {
|
|
274
274
|
icon: Vt,
|
|
@@ -284,12 +284,12 @@ const Ae = Q((e, o) => {
|
|
|
284
284
|
iconUrl: s,
|
|
285
285
|
className: m,
|
|
286
286
|
style: f,
|
|
287
|
-
children:
|
|
287
|
+
children: i
|
|
288
288
|
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: U(fe.icon, m), style: f, children: /* @__PURE__ */ x(ue, { loading: e, variant: "circle", className: fe.shape, children: [
|
|
289
289
|
/* @__PURE__ */ a("span", { className: fe.shape }),
|
|
290
290
|
n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: fe.svg }),
|
|
291
291
|
s && /* @__PURE__ */ a("img", { src: s, alt: o, className: fe.image }),
|
|
292
|
-
|
|
292
|
+
i
|
|
293
293
|
] }) }), Qt = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: s, ...m }) => /* @__PURE__ */ x(mt, { size: e, color: o, ...m, children: [
|
|
294
294
|
n && /* @__PURE__ */ a(ft, { size: e, htmlFor: t, children: n }),
|
|
295
295
|
s,
|
|
@@ -306,10 +306,10 @@ const Ae = Q((e, o) => {
|
|
|
306
306
|
clearButtonAltText: s = "Clear search",
|
|
307
307
|
onChange: m,
|
|
308
308
|
onClear: f,
|
|
309
|
-
onNavigate:
|
|
309
|
+
onNavigate: i,
|
|
310
310
|
combobox: h = !1,
|
|
311
311
|
listId: p,
|
|
312
|
-
"aria-activedescendant":
|
|
312
|
+
"aria-activedescendant": l,
|
|
313
313
|
onKeyDown: b,
|
|
314
314
|
onInput: g,
|
|
315
315
|
onFocus: y,
|
|
@@ -334,10 +334,10 @@ const Ae = Q((e, o) => {
|
|
|
334
334
|
autoCapitalize: "off",
|
|
335
335
|
"aria-autocomplete": "list",
|
|
336
336
|
"aria-controls": p,
|
|
337
|
-
"aria-activedescendant":
|
|
337
|
+
"aria-activedescendant": l,
|
|
338
338
|
autoFocus: !0,
|
|
339
339
|
onKeyDown: (v) => {
|
|
340
|
-
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(),
|
|
340
|
+
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), i?.()), b?.(v);
|
|
341
341
|
},
|
|
342
342
|
onInput: g,
|
|
343
343
|
onFocus: y,
|
|
@@ -360,7 +360,7 @@ const Ae = Q((e, o) => {
|
|
|
360
360
|
autoCapitalize: "off",
|
|
361
361
|
autoFocus: !0,
|
|
362
362
|
onKeyDown: (v) => {
|
|
363
|
-
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(),
|
|
363
|
+
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), i?.()), b?.(v);
|
|
364
364
|
},
|
|
365
365
|
onInput: g,
|
|
366
366
|
onFocus: y,
|
|
@@ -375,10 +375,10 @@ const Ae = Q((e, o) => {
|
|
|
375
375
|
scrollToTopOnOpen: s = !1,
|
|
376
376
|
autoActivateFirstItem: m = !0,
|
|
377
377
|
autoFocusList: f = !0,
|
|
378
|
-
announceNoResults:
|
|
378
|
+
announceNoResults: i = !1,
|
|
379
379
|
search: h,
|
|
380
380
|
items: p,
|
|
381
|
-
groups:
|
|
381
|
+
groups: l = {},
|
|
382
382
|
size: b,
|
|
383
383
|
id: g,
|
|
384
384
|
color: y,
|
|
@@ -391,7 +391,7 @@ const Ae = Q((e, o) => {
|
|
|
391
391
|
}) => {
|
|
392
392
|
if (o && e >= o)
|
|
393
393
|
return null;
|
|
394
|
-
const O = t === "combobox", d = O && g ? `${g}-listbox` : g, M = ee(r), z = ee(r), [
|
|
394
|
+
const O = t === "combobox", d = O && g ? `${g}-listbox` : g, M = ee(r), z = ee(r), [L, N] = oe(!1), P = le(
|
|
395
395
|
() => p.map((u, k) => ({
|
|
396
396
|
...u,
|
|
397
397
|
id: u.id || `${g}-item-${k}`
|
|
@@ -399,7 +399,7 @@ const Ae = Q((e, o) => {
|
|
|
399
399
|
[p, g]
|
|
400
400
|
), j = ee(null), { menu: S, setActiveIndex: R, activeItem: c } = Me({
|
|
401
401
|
items: P,
|
|
402
|
-
groups:
|
|
402
|
+
groups: l,
|
|
403
403
|
groupByKey: "groupId",
|
|
404
404
|
keyboardEvents: I,
|
|
405
405
|
autoActivateFirstItem: m,
|
|
@@ -419,11 +419,11 @@ const Ae = Q((e, o) => {
|
|
|
419
419
|
const u = z.current;
|
|
420
420
|
z.current = r, !(!I || h || !f) && r && !u && requestAnimationFrame(() => j.current?.focus?.({ preventScroll: !0 }));
|
|
421
421
|
}, [r, I, h]), Y(() => {
|
|
422
|
-
if (O &&
|
|
422
|
+
if (O && i) {
|
|
423
423
|
R(0), N(!0);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
}, [
|
|
426
|
+
}, [i, O, R]), /* @__PURE__ */ x(
|
|
427
427
|
Ie,
|
|
428
428
|
{
|
|
429
429
|
variant: $,
|
|
@@ -431,7 +431,7 @@ const Ae = Q((e, o) => {
|
|
|
431
431
|
ref: j,
|
|
432
432
|
style: v,
|
|
433
433
|
id: d,
|
|
434
|
-
role: O ? "listbox" :
|
|
434
|
+
role: O ? "listbox" : "menu",
|
|
435
435
|
tabIndex: I ? -1 : void 0,
|
|
436
436
|
children: [
|
|
437
437
|
h && /* @__PURE__ */ a(
|
|
@@ -440,7 +440,7 @@ const Ae = Q((e, o) => {
|
|
|
440
440
|
...h,
|
|
441
441
|
combobox: O,
|
|
442
442
|
listId: d,
|
|
443
|
-
"aria-activedescendant": O &&
|
|
443
|
+
"aria-activedescendant": O && L ? c?.id : void 0,
|
|
444
444
|
onNavigate: O ? () => N(!0) : void 0,
|
|
445
445
|
onChange: (u) => {
|
|
446
446
|
N(!1), h.onChange?.(u);
|
|
@@ -452,19 +452,19 @@ const Ae = Q((e, o) => {
|
|
|
452
452
|
N(!1), h.onInput?.(u);
|
|
453
453
|
},
|
|
454
454
|
onKeyDown: (u) => {
|
|
455
|
-
const k = u.key === "ArrowUp" || u.key === "ArrowDown",
|
|
456
|
-
O && !k &&
|
|
455
|
+
const k = u.key === "ArrowUp" || u.key === "ArrowDown", T = u.key.length === 1 || u.key === "Backspace" || u.key === "Delete";
|
|
456
|
+
O && !k && T && N(!1), h.onKeyDown?.(u);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
),
|
|
460
460
|
S.map((u, k) => {
|
|
461
|
-
const
|
|
461
|
+
const T = u?.props || {}, { title: F, hidden: K = !1, divider: H = !0 } = T;
|
|
462
462
|
return /* @__PURE__ */ x(He, { children: [
|
|
463
463
|
(e > 0 || k) && H ? /* @__PURE__ */ a(We, {}) : "",
|
|
464
464
|
/* @__PURE__ */ a(Ue, { hidden: K, children: /* @__PURE__ */ x(Ie, { role: "presentation", children: [
|
|
465
465
|
F && /* @__PURE__ */ a(Ye, { title: F, level: e }),
|
|
466
466
|
u?.items.filter((q) => !q.props?.hidden).map((q, _) => {
|
|
467
|
-
const { active: w, onMouseEnter: D } = q, { groupId: W, ...B } = q.props || {}, { expanded: J } = B,
|
|
467
|
+
const { active: w, onMouseEnter: D } = q, { groupId: W, ...B } = q.props || {}, { expanded: J } = B, ie = Array.isArray(B?.items) && B.items.length > 0, ge = B.role === "checkbox" || B.role === "radio", Ne = O && !ge ? "option" : B.role;
|
|
468
468
|
return /* @__PURE__ */ x(
|
|
469
469
|
Ve,
|
|
470
470
|
{
|
|
@@ -476,17 +476,17 @@ const Ae = Q((e, o) => {
|
|
|
476
476
|
tt,
|
|
477
477
|
{
|
|
478
478
|
...B,
|
|
479
|
-
size: B?.size ||
|
|
480
|
-
color: B?.color ||
|
|
481
|
-
variant: B?.variant ||
|
|
479
|
+
size: B?.size || T?.size || b,
|
|
480
|
+
color: B?.color || T?.color || y,
|
|
481
|
+
variant: B?.variant || T?.variant || $,
|
|
482
482
|
active: w,
|
|
483
483
|
role: Ne,
|
|
484
484
|
selected: B.selected,
|
|
485
485
|
tabIndex: B?.disabled || I ? -1 : B.tabIndex ?? 0,
|
|
486
486
|
onMouseEnter: D,
|
|
487
|
-
"aria-haspopup":
|
|
488
|
-
"aria-expanded":
|
|
489
|
-
"aria-controls":
|
|
487
|
+
"aria-haspopup": ie ? "menu" : void 0,
|
|
488
|
+
"aria-expanded": ie ? J : void 0,
|
|
489
|
+
"aria-controls": ie ? B.id + "-menu" : void 0
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
492
|
J && B?.items && /* @__PURE__ */ a(
|
|
@@ -497,7 +497,7 @@ const Ae = Q((e, o) => {
|
|
|
497
497
|
level: e + 1,
|
|
498
498
|
maxLevels: o,
|
|
499
499
|
items: B?.items,
|
|
500
|
-
groups:
|
|
500
|
+
groups: l,
|
|
501
501
|
size: b,
|
|
502
502
|
color: y,
|
|
503
503
|
variant: $
|
|
@@ -519,10 +519,10 @@ const Ae = Q((e, o) => {
|
|
|
519
519
|
search: s,
|
|
520
520
|
items: m,
|
|
521
521
|
groups: f = {},
|
|
522
|
-
size:
|
|
522
|
+
size: i,
|
|
523
523
|
color: h,
|
|
524
524
|
variant: p,
|
|
525
|
-
keyboardEvents:
|
|
525
|
+
keyboardEvents: l,
|
|
526
526
|
scrollRefStyles: b = {},
|
|
527
527
|
id: g,
|
|
528
528
|
expanded: y,
|
|
@@ -532,7 +532,7 @@ const Ae = Q((e, o) => {
|
|
|
532
532
|
autoActivateFirstItem: A = !0,
|
|
533
533
|
announceNoResults: E = !1,
|
|
534
534
|
onActiveItemIdChange: O
|
|
535
|
-
} = e, d = $ === "combobox", M = d && g ? `${g}-listbox` : g, z = ee(v), [
|
|
535
|
+
} = e, d = $ === "combobox", M = d && g ? `${g}-listbox` : g, z = ee(v), [L, N] = oe(!1), P = le(
|
|
536
536
|
() => m.map((_, w) => ({
|
|
537
537
|
..._,
|
|
538
538
|
id: _.id || `${g}-item-${w}`
|
|
@@ -542,10 +542,10 @@ const Ae = Q((e, o) => {
|
|
|
542
542
|
items: P,
|
|
543
543
|
groups: f,
|
|
544
544
|
groupByKey: "groupId",
|
|
545
|
-
keyboardEvents:
|
|
545
|
+
keyboardEvents: l,
|
|
546
546
|
autoActivateFirstItem: A,
|
|
547
547
|
ref: o
|
|
548
|
-
}), { flatMenu: u, virtualizer: k, scrollMaxHeight:
|
|
548
|
+
}), { flatMenu: u, virtualizer: k, scrollMaxHeight: T } = vt({
|
|
549
549
|
menu: j,
|
|
550
550
|
scrollRef: o
|
|
551
551
|
});
|
|
@@ -555,7 +555,7 @@ const Ae = Q((e, o) => {
|
|
|
555
555
|
const w = Math.round(_.offsetTop);
|
|
556
556
|
r((D) => D === w ? D : w);
|
|
557
557
|
});
|
|
558
|
-
const F =
|
|
558
|
+
const F = le(() => {
|
|
559
559
|
const _ = S?.id;
|
|
560
560
|
if (_)
|
|
561
561
|
return u.findIndex((D) => D.type === "item" && D.itemProps?.id === _);
|
|
@@ -571,9 +571,9 @@ const Ae = Q((e, o) => {
|
|
|
571
571
|
K.current = F;
|
|
572
572
|
const D = w ? F : F + 2;
|
|
573
573
|
if (!w) {
|
|
574
|
-
const
|
|
575
|
-
if (!
|
|
576
|
-
const [ge, Ne] =
|
|
574
|
+
const ie = k.getOffsetForIndex(D, "auto");
|
|
575
|
+
if (!ie) return;
|
|
576
|
+
const [ge, Ne] = ie;
|
|
577
577
|
if (Ne === "auto") return;
|
|
578
578
|
k.scrollToOffset(ge + t + 10, { align: "start" });
|
|
579
579
|
return;
|
|
@@ -587,7 +587,7 @@ const Ae = Q((e, o) => {
|
|
|
587
587
|
const [B, J] = W;
|
|
588
588
|
J !== "auto" && k.scrollToOffset(B + t + 10, { align: "start" });
|
|
589
589
|
}, [F, t, k, K]);
|
|
590
|
-
const H =
|
|
590
|
+
const H = le(() => {
|
|
591
591
|
const _ = /* @__PURE__ */ new Map();
|
|
592
592
|
let w = 0;
|
|
593
593
|
return u.forEach((D, W) => {
|
|
@@ -611,7 +611,7 @@ const Ae = Q((e, o) => {
|
|
|
611
611
|
}, [v, I]);
|
|
612
612
|
const q = {
|
|
613
613
|
position: "relative",
|
|
614
|
-
maxHeight: b?.maxHeight ||
|
|
614
|
+
maxHeight: b?.maxHeight || T,
|
|
615
615
|
margin: "-0.5rem",
|
|
616
616
|
padding: "0.5rem 0.5rem 1rem 0.5rem",
|
|
617
617
|
minWidth: b?.minWidth ?? "20rem",
|
|
@@ -627,7 +627,7 @@ const Ae = Q((e, o) => {
|
|
|
627
627
|
color: h,
|
|
628
628
|
expanded: y,
|
|
629
629
|
id: M,
|
|
630
|
-
role: d ? "listbox" :
|
|
630
|
+
role: d ? "listbox" : "menu",
|
|
631
631
|
children: [
|
|
632
632
|
s && /* @__PURE__ */ a(
|
|
633
633
|
Xe,
|
|
@@ -635,7 +635,7 @@ const Ae = Q((e, o) => {
|
|
|
635
635
|
...s,
|
|
636
636
|
combobox: d,
|
|
637
637
|
listId: M,
|
|
638
|
-
"aria-activedescendant": d &&
|
|
638
|
+
"aria-activedescendant": d && L ? S?.id : void 0,
|
|
639
639
|
onNavigate: d ? () => N(!0) : void 0,
|
|
640
640
|
onChange: (_) => {
|
|
641
641
|
N(!1), s.onChange?.(_);
|
|
@@ -699,7 +699,7 @@ const Ae = Q((e, o) => {
|
|
|
699
699
|
tt,
|
|
700
700
|
{
|
|
701
701
|
...w.itemProps || {},
|
|
702
|
-
size: w.itemProps?.size ||
|
|
702
|
+
size: w.itemProps?.size || i,
|
|
703
703
|
color: w.itemProps?.color || h,
|
|
704
704
|
variant: w.itemProps?.variant || p,
|
|
705
705
|
active: w.active,
|
|
@@ -707,7 +707,7 @@ const Ae = Q((e, o) => {
|
|
|
707
707
|
selected: w.itemProps?.selected,
|
|
708
708
|
"aria-posinset": d ? H.positions.get(_.index) : void 0,
|
|
709
709
|
"aria-setsize": d ? H.total : void 0,
|
|
710
|
-
tabIndex: w.itemProps?.disabled ||
|
|
710
|
+
tabIndex: w.itemProps?.disabled || l ? -1 : 0
|
|
711
711
|
}
|
|
712
712
|
)
|
|
713
713
|
},
|
|
@@ -752,20 +752,20 @@ const Ae = Q((e, o) => {
|
|
|
752
752
|
const e = at(Ze);
|
|
753
753
|
if (!e)
|
|
754
754
|
throw new Error("useRootContext must be used within a RootProvider.");
|
|
755
|
-
const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: m } = e, f = (
|
|
756
|
-
o && r(o), n(
|
|
757
|
-
},
|
|
758
|
-
t && console.debug(`useRootContext: toggleId called with value: ${
|
|
755
|
+
const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: m } = e, f = (l) => {
|
|
756
|
+
o && r(o), n(l);
|
|
757
|
+
}, i = (l) => {
|
|
758
|
+
t && console.debug(`useRootContext: toggleId called with value: ${l}`), f(o === l ? "" : l);
|
|
759
759
|
}, h = () => {
|
|
760
760
|
t && console.debug("useRootContext: closeAll called"), f("");
|
|
761
761
|
};
|
|
762
|
-
return
|
|
762
|
+
return lt(h), {
|
|
763
763
|
currentId: o,
|
|
764
764
|
previousId: s,
|
|
765
|
-
toggleId:
|
|
765
|
+
toggleId: i,
|
|
766
766
|
closeAll: h,
|
|
767
|
-
openId: (
|
|
768
|
-
t && console.debug(`useRootContext: openId called with value: ${
|
|
767
|
+
openId: (l) => {
|
|
768
|
+
t && console.debug(`useRootContext: openId called with value: ${l}`), f(l);
|
|
769
769
|
},
|
|
770
770
|
languageCode: m
|
|
771
771
|
};
|
|
@@ -813,7 +813,7 @@ const Ae = Q((e, o) => {
|
|
|
813
813
|
items: s = [],
|
|
814
814
|
groups: m = {}
|
|
815
815
|
}) => {
|
|
816
|
-
const { languageCode: f } = tn(),
|
|
816
|
+
const { languageCode: f } = tn(), i = G.useMemo(() => nn(f), [f]), [h, p] = G.useState(""), l = G.useCallback(
|
|
817
817
|
(c) => {
|
|
818
818
|
p(c.target.value), n?.(c);
|
|
819
819
|
},
|
|
@@ -822,14 +822,14 @@ const Ae = Q((e, o) => {
|
|
|
822
822
|
p(""), t?.();
|
|
823
823
|
}, [t]), g = G.useMemo(() => h.trim().replace(/\s+/g, " "), [h]), y = g.length > 0, $ = G.useMemo(() => g.toLowerCase(), [g]), v = G.useMemo(() => g ? g.split(" ") : [], [g]), I = G.useMemo(
|
|
824
824
|
() => ({
|
|
825
|
-
placeholder: e ??
|
|
825
|
+
placeholder: e ?? i.placeholder,
|
|
826
826
|
name: o ?? "search",
|
|
827
827
|
value: h,
|
|
828
|
-
onChange:
|
|
828
|
+
onChange: l,
|
|
829
829
|
onClear: b,
|
|
830
830
|
clearButtonAltText: r
|
|
831
831
|
}),
|
|
832
|
-
[e,
|
|
832
|
+
[e, i.placeholder, o, h, l, b, r]
|
|
833
833
|
), A = G.useMemo(
|
|
834
834
|
() => s.map((c) => {
|
|
835
835
|
const u = c?.searchWords?.length ? c.searchWords : [c?.title, c?.description].filter(Boolean);
|
|
@@ -844,14 +844,14 @@ const Ae = Q((e, o) => {
|
|
|
844
844
|
{
|
|
845
845
|
id: "emptySearch",
|
|
846
846
|
"aria-disabled": !0,
|
|
847
|
-
title:
|
|
847
|
+
title: i.noResults,
|
|
848
848
|
groupId: "emptySearch",
|
|
849
849
|
icon: bt,
|
|
850
850
|
size: "sm",
|
|
851
851
|
as: "div"
|
|
852
852
|
}
|
|
853
853
|
],
|
|
854
|
-
[
|
|
854
|
+
[i.noResults]
|
|
855
855
|
), O = G.useMemo(() => {
|
|
856
856
|
const c = s.filter((u) => u.groupId === "emptySearch").map((u) => ({ ...u, hidden: !1 }));
|
|
857
857
|
return c.length ? c : E;
|
|
@@ -865,40 +865,40 @@ const Ae = Q((e, o) => {
|
|
|
865
865
|
highlightWords: v
|
|
866
866
|
});
|
|
867
867
|
return { selectedItems: c, results: u };
|
|
868
|
-
}, [y, A, $, v]), z = M.length,
|
|
868
|
+
}, [y, A, $, v]), z = M.length, L = d.length, N = G.useMemo(
|
|
869
869
|
() => ({
|
|
870
870
|
search: {
|
|
871
871
|
hidden: !0,
|
|
872
|
-
title:
|
|
872
|
+
title: i.hits(z)
|
|
873
873
|
},
|
|
874
874
|
selected: {
|
|
875
875
|
hidden: !0,
|
|
876
|
-
title:
|
|
876
|
+
title: i.selected(L)
|
|
877
877
|
},
|
|
878
878
|
emptySearch: {
|
|
879
879
|
hidden: !0,
|
|
880
|
-
title:
|
|
880
|
+
title: i.noResults
|
|
881
881
|
},
|
|
882
882
|
...m
|
|
883
883
|
}),
|
|
884
|
-
[
|
|
884
|
+
[i, z, L, m]
|
|
885
885
|
), P = G.useMemo(
|
|
886
886
|
() => ({
|
|
887
887
|
...N,
|
|
888
888
|
search: {
|
|
889
889
|
hidden: !y,
|
|
890
|
-
title:
|
|
890
|
+
title: i.hits(z)
|
|
891
891
|
},
|
|
892
892
|
selected: {
|
|
893
|
-
hidden:
|
|
894
|
-
title:
|
|
893
|
+
hidden: L === 0,
|
|
894
|
+
title: i.selected(L)
|
|
895
895
|
},
|
|
896
896
|
emptySearch: {
|
|
897
|
-
hidden: y && (z > 0 ||
|
|
898
|
-
title:
|
|
897
|
+
hidden: y && (z > 0 || L > 0),
|
|
898
|
+
title: i.noResults
|
|
899
899
|
}
|
|
900
900
|
}),
|
|
901
|
-
[N, y,
|
|
901
|
+
[N, y, i, z, L]
|
|
902
902
|
), j = G.useMemo(() => y ? rn([...M, ...d]) : [], [y, M, d]), S = G.useMemo(() => [...O || [], ...d || []], [O, d]), R = G.useMemo(() => y ? z ? j : S : s, [y, s, z, j, S]);
|
|
903
903
|
return {
|
|
904
904
|
search: I,
|
|
@@ -917,18 +917,18 @@ const Ae = Q((e, o) => {
|
|
|
917
917
|
size: s,
|
|
918
918
|
level: m = 0,
|
|
919
919
|
maxLevels: f = 3,
|
|
920
|
-
virtualized:
|
|
920
|
+
virtualized: i = !1,
|
|
921
921
|
keyboardEvents: h = !1,
|
|
922
922
|
scrollRefStyles: p = {},
|
|
923
|
-
onActiveItemIdChange:
|
|
923
|
+
onActiveItemIdChange: l,
|
|
924
924
|
a11yMode: b = "menu",
|
|
925
925
|
open: g,
|
|
926
926
|
scrollToTopOnOpen: y,
|
|
927
927
|
autoFocusList: $,
|
|
928
928
|
id: v
|
|
929
929
|
}) => {
|
|
930
|
-
const I = on({ ...o, items: n, groups: t }), A = e ? I.search : o, E = e && I.hasQuery && I.resultCount === 0, O = e ? I.items : n, d = e ? { ...t, ...I.groups } : t, M = b !== "combobox";
|
|
931
|
-
return
|
|
930
|
+
const I = on({ ...o, items: n, groups: t }), A = e ? { label: o?.label, hideLabel: o?.hideLabel, ...I.search } : o, E = e && I.hasQuery && I.resultCount === 0, O = e ? I.items : n, d = e ? { ...t, ...I.groups } : t, M = b !== "combobox";
|
|
931
|
+
return i ? /* @__PURE__ */ a(
|
|
932
932
|
Zt,
|
|
933
933
|
{
|
|
934
934
|
id: v,
|
|
@@ -942,7 +942,7 @@ const Ae = Q((e, o) => {
|
|
|
942
942
|
maxLevels: f,
|
|
943
943
|
keyboardEvents: h,
|
|
944
944
|
scrollRefStyles: p,
|
|
945
|
-
onActiveItemIdChange:
|
|
945
|
+
onActiveItemIdChange: l,
|
|
946
946
|
a11yMode: b,
|
|
947
947
|
open: g,
|
|
948
948
|
scrollToTopOnOpen: y,
|
|
@@ -963,7 +963,7 @@ const Ae = Q((e, o) => {
|
|
|
963
963
|
maxLevels: f,
|
|
964
964
|
keyboardEvents: h,
|
|
965
965
|
scrollRefStyles: p,
|
|
966
|
-
onActiveItemIdChange:
|
|
966
|
+
onActiveItemIdChange: l,
|
|
967
967
|
a11yMode: b,
|
|
968
968
|
open: g,
|
|
969
969
|
scrollToTopOnOpen: y,
|
|
@@ -980,7 +980,7 @@ const Ae = Q((e, o) => {
|
|
|
980
980
|
function dn(e) {
|
|
981
981
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || Ge(e);
|
|
982
982
|
}
|
|
983
|
-
const
|
|
983
|
+
const Le = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
984
984
|
if (!n)
|
|
985
985
|
return null;
|
|
986
986
|
if (o)
|
|
@@ -1001,10 +1001,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1001
1001
|
leading: s = "tight",
|
|
1002
1002
|
weight: m = "medium",
|
|
1003
1003
|
color: f,
|
|
1004
|
-
variant:
|
|
1004
|
+
variant: i,
|
|
1005
1005
|
maxRows: h,
|
|
1006
1006
|
className: p,
|
|
1007
|
-
style:
|
|
1007
|
+
style: l,
|
|
1008
1008
|
children: b
|
|
1009
1009
|
}) => {
|
|
1010
1010
|
const g = t, y = ct(b, n || []);
|
|
@@ -1013,19 +1013,19 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1013
1013
|
{
|
|
1014
1014
|
id: e,
|
|
1015
1015
|
className: U(mn.heading, p),
|
|
1016
|
-
style:
|
|
1016
|
+
style: l,
|
|
1017
1017
|
"data-size": r,
|
|
1018
1018
|
"data-leading": s,
|
|
1019
1019
|
"data-weight": m,
|
|
1020
1020
|
"data-color": f,
|
|
1021
|
-
"data-variant": r === "xxs" && "default" ||
|
|
1021
|
+
"data-variant": r === "xxs" && "default" || i,
|
|
1022
1022
|
"data-max-rows": h,
|
|
1023
1023
|
children: /* @__PURE__ */ a(ue, { loading: o, children: y })
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
}, fn = "_label_e5q28_3", pn = {
|
|
1027
1027
|
label: fn
|
|
1028
|
-
},
|
|
1028
|
+
}, Te = ({
|
|
1029
1029
|
className: e,
|
|
1030
1030
|
title: o,
|
|
1031
1031
|
titleProps: n = {},
|
|
@@ -1066,10 +1066,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1066
1066
|
onClick: s,
|
|
1067
1067
|
onChange: m,
|
|
1068
1068
|
onKeyPress: f,
|
|
1069
|
-
onMouseEnter:
|
|
1069
|
+
onMouseEnter: i,
|
|
1070
1070
|
size: h = "sm",
|
|
1071
1071
|
variant: p,
|
|
1072
|
-
color:
|
|
1072
|
+
color: l,
|
|
1073
1073
|
name: b,
|
|
1074
1074
|
value: g,
|
|
1075
1075
|
checked: y,
|
|
@@ -1082,7 +1082,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1082
1082
|
description: d,
|
|
1083
1083
|
highlightWords: M,
|
|
1084
1084
|
count: z,
|
|
1085
|
-
linkIcon:
|
|
1085
|
+
linkIcon: L = !1,
|
|
1086
1086
|
disabled: N,
|
|
1087
1087
|
selected: P,
|
|
1088
1088
|
active: j,
|
|
@@ -1091,20 +1091,20 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1091
1091
|
"data-testid": c,
|
|
1092
1092
|
...u
|
|
1093
1093
|
}) => {
|
|
1094
|
-
const k = typeof v == "function" ? v() : v,
|
|
1094
|
+
const k = typeof v == "function" ? v() : v, T = ht(u);
|
|
1095
1095
|
if (n === "checkbox" || n === "radio") {
|
|
1096
|
-
const H = $ || (y ? Qe :
|
|
1096
|
+
const H = $ || (y ? Qe : Tt);
|
|
1097
1097
|
return /* @__PURE__ */ x(
|
|
1098
1098
|
"label",
|
|
1099
1099
|
{
|
|
1100
|
-
...
|
|
1100
|
+
...T,
|
|
1101
1101
|
className: U(V.item, R),
|
|
1102
1102
|
id: e,
|
|
1103
1103
|
"data-id": e,
|
|
1104
1104
|
"data-group-id": o,
|
|
1105
1105
|
"data-size": h,
|
|
1106
1106
|
"data-variant": p,
|
|
1107
|
-
"data-color":
|
|
1107
|
+
"data-color": l,
|
|
1108
1108
|
"data-active": j,
|
|
1109
1109
|
role: n,
|
|
1110
1110
|
"aria-disabled": N,
|
|
@@ -1118,7 +1118,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1118
1118
|
N || (q.target === q.currentTarget && q.key === "Enter" && s?.(), f?.(q));
|
|
1119
1119
|
},
|
|
1120
1120
|
onClick: s,
|
|
1121
|
-
onMouseEnter:
|
|
1121
|
+
onMouseEnter: i,
|
|
1122
1122
|
tabIndex: S,
|
|
1123
1123
|
children: [
|
|
1124
1124
|
/* @__PURE__ */ a(
|
|
@@ -1134,9 +1134,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1134
1134
|
tabIndex: -1
|
|
1135
1135
|
}
|
|
1136
1136
|
),
|
|
1137
|
-
/* @__PURE__ */ a(
|
|
1137
|
+
/* @__PURE__ */ a(Le, { icon: H, className: V.media }),
|
|
1138
1138
|
/* @__PURE__ */ a(
|
|
1139
|
-
|
|
1139
|
+
Te,
|
|
1140
1140
|
{
|
|
1141
1141
|
className: V.label,
|
|
1142
1142
|
highlightWords: M,
|
|
@@ -1166,7 +1166,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
}
|
|
1169
|
-
const F = t || (r ? "a" : "button"), K =
|
|
1169
|
+
const F = t || (r ? "a" : "button"), K = L && zt;
|
|
1170
1170
|
return /* @__PURE__ */ x(
|
|
1171
1171
|
F,
|
|
1172
1172
|
{
|
|
@@ -1177,7 +1177,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1177
1177
|
"data-group-id": o,
|
|
1178
1178
|
"data-size": h,
|
|
1179
1179
|
"data-variant": p,
|
|
1180
|
-
"data-color":
|
|
1180
|
+
"data-color": l,
|
|
1181
1181
|
"data-active": j,
|
|
1182
1182
|
"aria-disabled": N,
|
|
1183
1183
|
...N ? { disabled: N } : {},
|
|
@@ -1191,14 +1191,14 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1191
1191
|
N || (H.target === H.currentTarget && H.key === "Enter" && s?.(), f?.(H));
|
|
1192
1192
|
},
|
|
1193
1193
|
onClick: s,
|
|
1194
|
-
onMouseEnter:
|
|
1194
|
+
onMouseEnter: i,
|
|
1195
1195
|
tabIndex: N ? -1 : S ?? 0,
|
|
1196
1196
|
role: n === "menuItem" ? "menuitem" : n,
|
|
1197
|
-
...
|
|
1197
|
+
...T,
|
|
1198
1198
|
children: [
|
|
1199
|
-
$ && /* @__PURE__ */ a(
|
|
1199
|
+
$ && /* @__PURE__ */ a(Le, { icon: $, className: V.media }),
|
|
1200
1200
|
/* @__PURE__ */ a(
|
|
1201
|
-
|
|
1201
|
+
Te,
|
|
1202
1202
|
{
|
|
1203
1203
|
className: V.label,
|
|
1204
1204
|
highlightWords: M,
|
|
@@ -1222,7 +1222,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1222
1222
|
/* @__PURE__ */ x(Re, { children: [
|
|
1223
1223
|
I && /* @__PURE__ */ a(re, { ...I }),
|
|
1224
1224
|
!N && A,
|
|
1225
|
-
|
|
1225
|
+
L && /* @__PURE__ */ a(se, { svgElement: K, className: V.linkIcon })
|
|
1226
1226
|
] })
|
|
1227
1227
|
]
|
|
1228
1228
|
}
|
|
@@ -1245,25 +1245,25 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1245
1245
|
color: s = "neutral",
|
|
1246
1246
|
label: m,
|
|
1247
1247
|
hideLabel: f,
|
|
1248
|
-
value:
|
|
1248
|
+
value: i,
|
|
1249
1249
|
onClear: h,
|
|
1250
1250
|
clearButtonAltText: p = "Clear search",
|
|
1251
|
-
menu:
|
|
1251
|
+
menu: l,
|
|
1252
1252
|
minLength: b,
|
|
1253
1253
|
...g
|
|
1254
1254
|
}) => {
|
|
1255
|
-
const y = De(), [$, v] = oe(!1), I = g.id || `search-field-${y}`, A = `${I}-listbox`, [E, O] = oe(void 0), d = "searchfield-clear-button-" + De(), M =
|
|
1255
|
+
const y = De(), [$, v] = oe(!1), I = g.id || `search-field-${y}`, A = `${I}-listbox`, [E, O] = oe(void 0), d = "searchfield-clear-button-" + De(), M = le(() => !l || !i || typeof b == "number" && typeof i == "string" && i.length < b ? !1 : $, [l, $, b, i]), z = le(() => (l?.items ?? []).map((c) => ({
|
|
1256
1256
|
...c,
|
|
1257
1257
|
onClick: () => {
|
|
1258
1258
|
c.onClick?.(), v(!1);
|
|
1259
1259
|
}
|
|
1260
|
-
})), [
|
|
1260
|
+
})), [l]), L = (c) => {
|
|
1261
1261
|
if (c.key === "Enter" && M) {
|
|
1262
|
-
|
|
1262
|
+
l?.items?.[0]?.onClick?.(), v(!1);
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
1265
|
if (c.key === "Escape" && M) {
|
|
1266
|
-
c.preventDefault(), c.stopPropagation(), v(!1),
|
|
1266
|
+
c.preventDefault(), c.stopPropagation(), v(!1), l?.onClose(), document.getElementById(I)?.focus();
|
|
1267
1267
|
return;
|
|
1268
1268
|
}
|
|
1269
1269
|
g.onKeyDown?.(c), v(!0);
|
|
@@ -1288,7 +1288,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1288
1288
|
"data-collapsible": o ? !0 : void 0,
|
|
1289
1289
|
onBlurCapture: P,
|
|
1290
1290
|
children: [
|
|
1291
|
-
/* @__PURE__ */ a("span", { className: te.hiddenInput, "aria-hidden": "true", children:
|
|
1291
|
+
/* @__PURE__ */ a("span", { className: te.hiddenInput, "aria-hidden": "true", children: i + " " }),
|
|
1292
1292
|
/* @__PURE__ */ a(
|
|
1293
1293
|
ut,
|
|
1294
1294
|
{
|
|
@@ -1297,15 +1297,15 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1297
1297
|
"aria-label": f && typeof m == "string" ? m : void 0,
|
|
1298
1298
|
inputSize: 5,
|
|
1299
1299
|
type: "search",
|
|
1300
|
-
value:
|
|
1300
|
+
value: i,
|
|
1301
1301
|
className: te.input,
|
|
1302
1302
|
"data-collapsible": o ? !0 : void 0,
|
|
1303
1303
|
autoCapitalize: "off",
|
|
1304
1304
|
autoComplete: "off",
|
|
1305
1305
|
minLength: b,
|
|
1306
|
-
onKeyDown:
|
|
1306
|
+
onKeyDown: L,
|
|
1307
1307
|
onBlur: S,
|
|
1308
|
-
...
|
|
1308
|
+
...l && {
|
|
1309
1309
|
role: "combobox",
|
|
1310
1310
|
"aria-autocomplete": "list",
|
|
1311
1311
|
"aria-expanded": !!M,
|
|
@@ -1317,7 +1317,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
),
|
|
1319
1319
|
n ? /* @__PURE__ */ a(pt, { "aria-hidden": !0, className: te.icon }) : /* @__PURE__ */ a(Bt, { "aria-hidden": !0, className: te.icon }),
|
|
1320
|
-
h && !!
|
|
1320
|
+
h && !!i && /* @__PURE__ */ a("span", { className: te.clear, children: /* @__PURE__ */ a(
|
|
1321
1321
|
ve,
|
|
1322
1322
|
{
|
|
1323
1323
|
id: d,
|
|
@@ -1338,15 +1338,15 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1338
1338
|
]
|
|
1339
1339
|
}
|
|
1340
1340
|
);
|
|
1341
|
-
return
|
|
1341
|
+
return l ? /* @__PURE__ */ x("div", { className: te.fieldContainer, children: [
|
|
1342
1342
|
R,
|
|
1343
1343
|
M && /* @__PURE__ */ a("div", { className: te.autocomplete, "aria-hidden": !M, onMouseDown: j, children: /* @__PURE__ */ a(
|
|
1344
1344
|
et,
|
|
1345
1345
|
{
|
|
1346
|
-
...
|
|
1346
|
+
...l,
|
|
1347
1347
|
id: A,
|
|
1348
1348
|
items: z,
|
|
1349
|
-
groups:
|
|
1349
|
+
groups: l?.groups,
|
|
1350
1350
|
keyboardEvents: !0,
|
|
1351
1351
|
a11yMode: "combobox",
|
|
1352
1352
|
open: M,
|
|
@@ -1369,20 +1369,20 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1369
1369
|
datetime: s,
|
|
1370
1370
|
children: m,
|
|
1371
1371
|
as: f,
|
|
1372
|
-
...
|
|
1372
|
+
...i
|
|
1373
1373
|
}) => {
|
|
1374
1374
|
const h = f || "div", p = s ? "time" : "span";
|
|
1375
|
-
return /* @__PURE__ */ x(h, { ...
|
|
1375
|
+
return /* @__PURE__ */ x(h, { ...i, className: pe.byline, "data-color": o, "data-size": n, children: [
|
|
1376
1376
|
(r || t) && /* @__PURE__ */ a(ue, { variant: "circle", className: pe.avatar, loading: e, children: r ? /* @__PURE__ */ a(be, { ...r, size: n, className: pe.avatarGroup }) : t && /* @__PURE__ */ a(je, { ...t, size: n, className: pe.avatar }) }),
|
|
1377
1377
|
/* @__PURE__ */ a(p, { "data-size": n, dateTime: s, className: pe.label, children: /* @__PURE__ */ a(ue, { loading: e, children: m }) })
|
|
1378
1378
|
] });
|
|
1379
|
-
}, jn = "_dropdown_11cza_1", An = "_content_11cza_17", Dn = "_backdrop_11cza_47", Bn = "_header_11cza_76",
|
|
1379
|
+
}, jn = "_dropdown_11cza_1", An = "_content_11cza_17", Dn = "_backdrop_11cza_47", Bn = "_header_11cza_76", Ln = "_footer_11cza_77", Tn = "_title_11cza_156", ce = {
|
|
1380
1380
|
dropdown: jn,
|
|
1381
1381
|
content: An,
|
|
1382
1382
|
backdrop: Dn,
|
|
1383
1383
|
header: Bn,
|
|
1384
|
-
footer:
|
|
1385
|
-
title:
|
|
1384
|
+
footer: Ln,
|
|
1385
|
+
title: Tn
|
|
1386
1386
|
}, Fn = "data-focus-guard", nt = (e) => {
|
|
1387
1387
|
const o = [
|
|
1388
1388
|
"a[href]",
|
|
@@ -1408,10 +1408,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1408
1408
|
variant: s = "dropdown",
|
|
1409
1409
|
title: m = "Title",
|
|
1410
1410
|
closeLabel: f = "Close",
|
|
1411
|
-
submitLabel:
|
|
1411
|
+
submitLabel: i,
|
|
1412
1412
|
trigger: h,
|
|
1413
1413
|
children: p,
|
|
1414
|
-
open:
|
|
1414
|
+
open: l,
|
|
1415
1415
|
onClose: b,
|
|
1416
1416
|
color: g,
|
|
1417
1417
|
onSubmit: y,
|
|
@@ -1419,17 +1419,17 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1419
1419
|
useFixedPosition: v = !1,
|
|
1420
1420
|
expanded: I = !1
|
|
1421
1421
|
}) => {
|
|
1422
|
-
const A = ee(null), E = ee(null), O = ee(
|
|
1422
|
+
const A = ee(null), E = ee(null), O = ee(l);
|
|
1423
1423
|
Y(() => {
|
|
1424
|
-
O.current =
|
|
1425
|
-
}, [
|
|
1424
|
+
O.current = l;
|
|
1425
|
+
}, [l]);
|
|
1426
1426
|
const [d, M] = oe({
|
|
1427
1427
|
yDir: r.includes("top") ? "top" : "bottom",
|
|
1428
1428
|
xDir: r.includes("right") ? "right" : "left",
|
|
1429
1429
|
maxHeight: 300
|
|
1430
1430
|
}), z = qe(() => {
|
|
1431
|
-
if (
|
|
1432
|
-
const P = A.current.getBoundingClientRect(), j = E.current.getBoundingClientRect(), S = window.innerHeight, R = window.innerWidth, c = 16, u = S - P.bottom, k = P.top,
|
|
1431
|
+
if (l && A.current && E.current) {
|
|
1432
|
+
const P = A.current.getBoundingClientRect(), j = E.current.getBoundingClientRect(), S = window.innerHeight, R = window.innerWidth, c = 16, u = S - P.bottom, k = P.top, T = R - P.right - j.width, F = u < 250 && k > u, K = F ? "top" : "bottom", H = (F ? k : u) - c, _ = T < c ? "right" : "left";
|
|
1433
1433
|
M((w) => ({
|
|
1434
1434
|
...w,
|
|
1435
1435
|
yDir: K,
|
|
@@ -1438,11 +1438,11 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1438
1438
|
triggerRect: v ? P : void 0
|
|
1439
1439
|
}));
|
|
1440
1440
|
}
|
|
1441
|
-
}, [
|
|
1441
|
+
}, [l, v]);
|
|
1442
1442
|
Ce(() => (z(), window.addEventListener("resize", z), v && window.addEventListener("scroll", z, !0), () => {
|
|
1443
1443
|
window.removeEventListener("resize", z), v && window.removeEventListener("scroll", z, !0);
|
|
1444
1444
|
}), [z, v]), Y(() => {
|
|
1445
|
-
if (!
|
|
1445
|
+
if (!l) return;
|
|
1446
1446
|
const P = requestAnimationFrame(() => {
|
|
1447
1447
|
const j = E.current;
|
|
1448
1448
|
if (!j) return;
|
|
@@ -1461,18 +1461,18 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1461
1461
|
j.focus?.({ preventScroll: !0 });
|
|
1462
1462
|
});
|
|
1463
1463
|
return () => cancelAnimationFrame(P);
|
|
1464
|
-
}, [
|
|
1464
|
+
}, [l]), Y(() => {
|
|
1465
1465
|
const P = (S) => {
|
|
1466
1466
|
S.key === "Escape" && (S.preventDefault(), b());
|
|
1467
1467
|
}, j = (S) => {
|
|
1468
1468
|
const R = S.target, c = A.current?.contains(R), u = E.current?.contains(R);
|
|
1469
1469
|
!c && !u && b();
|
|
1470
1470
|
};
|
|
1471
|
-
return
|
|
1471
|
+
return l && (document.addEventListener("mousedown", j), document.addEventListener("keydown", P)), () => {
|
|
1472
1472
|
document.removeEventListener("mousedown", j), document.removeEventListener("keydown", P);
|
|
1473
1473
|
};
|
|
1474
|
-
}, [
|
|
1475
|
-
if (!
|
|
1474
|
+
}, [l, b]), Y(() => {
|
|
1475
|
+
if (!l) return;
|
|
1476
1476
|
const P = E.current;
|
|
1477
1477
|
if (!P) return;
|
|
1478
1478
|
const j = (R) => {
|
|
@@ -1487,14 +1487,14 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1487
1487
|
R.preventDefault(), P.focus?.({ preventScroll: !0 });
|
|
1488
1488
|
return;
|
|
1489
1489
|
}
|
|
1490
|
-
const u = c[0], k = c[c.length - 1],
|
|
1491
|
-
R.shiftKey ?
|
|
1490
|
+
const u = c[0], k = c[c.length - 1], T = document.activeElement;
|
|
1491
|
+
R.shiftKey ? T === u && (R.preventDefault(), k.focus({ preventScroll: !0 })) : T === k && (R.preventDefault(), u.focus({ preventScroll: !0 }));
|
|
1492
1492
|
};
|
|
1493
1493
|
return document.addEventListener("focusin", j), document.addEventListener("keydown", S), () => {
|
|
1494
1494
|
document.removeEventListener("focusin", j), document.removeEventListener("keydown", S);
|
|
1495
1495
|
};
|
|
1496
|
-
}, [
|
|
1497
|
-
const
|
|
1496
|
+
}, [l]);
|
|
1497
|
+
const L = v && d.triggerRect ? {
|
|
1498
1498
|
position: "fixed",
|
|
1499
1499
|
zIndex: 1e3,
|
|
1500
1500
|
width: "max-content",
|
|
@@ -1515,31 +1515,31 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1515
1515
|
{
|
|
1516
1516
|
ref: E,
|
|
1517
1517
|
className: U(ce.dropdown, n),
|
|
1518
|
-
style:
|
|
1519
|
-
"aria-hidden": !
|
|
1518
|
+
style: L,
|
|
1519
|
+
"aria-hidden": !l,
|
|
1520
1520
|
"data-variant": s,
|
|
1521
1521
|
"data-color": g,
|
|
1522
1522
|
"data-expanded": I,
|
|
1523
1523
|
"data-size": o,
|
|
1524
1524
|
tabIndex: -1,
|
|
1525
|
-
role: "menu",
|
|
1526
|
-
"aria-modal": s === "drawer-dropdown" ? !0 : void 0,
|
|
1527
|
-
"aria-activedescendant":
|
|
1525
|
+
role: l ? "menu" : void 0,
|
|
1526
|
+
"aria-modal": l && s === "drawer-dropdown" ? !0 : void 0,
|
|
1527
|
+
"aria-activedescendant": l ? $ : void 0,
|
|
1528
1528
|
children: [
|
|
1529
1529
|
/* @__PURE__ */ x("header", { className: ce.header, children: [
|
|
1530
1530
|
/* @__PURE__ */ a("h2", { className: ce.title, children: m }),
|
|
1531
1531
|
/* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: b, "aria-label": f, children: /* @__PURE__ */ a(Ae, {}) })
|
|
1532
1532
|
] }),
|
|
1533
1533
|
/* @__PURE__ */ a("div", { className: ce.content, children: p }),
|
|
1534
|
-
|
|
1534
|
+
i && /* @__PURE__ */ a("footer", { className: ce.footer, children: /* @__PURE__ */ a(ve, { size: "lg", variant: "solid", onClick: y || b, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: i }) }) })
|
|
1535
1535
|
]
|
|
1536
1536
|
}
|
|
1537
1537
|
);
|
|
1538
1538
|
return /* @__PURE__ */ x(xe, { children: [
|
|
1539
|
-
t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !
|
|
1539
|
+
t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !l }),
|
|
1540
1540
|
/* @__PURE__ */ x("div", { id: e + "-root", ref: A, style: { position: "relative", display: "inline-block" }, children: [
|
|
1541
1541
|
h,
|
|
1542
|
-
v ?
|
|
1542
|
+
v ? it(N, document.body) : N
|
|
1543
1543
|
] })
|
|
1544
1544
|
] });
|
|
1545
1545
|
}, qn = "_section_1v20z_1", Kn = "_header_1v20z_7", Vn = "_list_1v20z_13", _e = {
|
|
@@ -1560,12 +1560,12 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1560
1560
|
e && /* @__PURE__ */ a(me, { as: "h1", size: "lg", children: e }),
|
|
1561
1561
|
o && /* @__PURE__ */ a(Ke, { as: "p", size: "sm", variant: "subtle", className: _e.description, children: o })
|
|
1562
1562
|
] }) : null,
|
|
1563
|
-
f?.map((
|
|
1564
|
-
const p =
|
|
1563
|
+
f?.map((i, h) => {
|
|
1564
|
+
const p = i.props || {};
|
|
1565
1565
|
return /* @__PURE__ */ x(He, { children: [
|
|
1566
1566
|
p?.title && /* @__PURE__ */ a(me, { as: "h2", size: "lg", children: p.title }),
|
|
1567
|
-
/* @__PURE__ */ a("ul", { className: _e.list, children:
|
|
1568
|
-
const g =
|
|
1567
|
+
/* @__PURE__ */ a("ul", { className: _e.list, children: i?.items.map((l, b) => {
|
|
1568
|
+
const g = l.props || {};
|
|
1569
1569
|
return /* @__PURE__ */ st(rt, { ...g, highlightWords: s, key: "dialog-list-item" + b });
|
|
1570
1570
|
}) })
|
|
1571
1571
|
] }, "dialog-list-item" + h);
|
|
@@ -1594,10 +1594,10 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1594
1594
|
controls: s,
|
|
1595
1595
|
selectable: m,
|
|
1596
1596
|
selected: f,
|
|
1597
|
-
status:
|
|
1597
|
+
status: i,
|
|
1598
1598
|
extendedStatusLabel: h,
|
|
1599
1599
|
sender: p,
|
|
1600
|
-
recipient:
|
|
1600
|
+
recipient: l,
|
|
1601
1601
|
recipientLabel: b = "to",
|
|
1602
1602
|
grouped: g = !1,
|
|
1603
1603
|
updatedAt: y,
|
|
@@ -1610,7 +1610,7 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1610
1610
|
trashedAtLabel: d,
|
|
1611
1611
|
badge: M,
|
|
1612
1612
|
dueAt: z,
|
|
1613
|
-
dueAtExpired:
|
|
1613
|
+
dueAtExpired: L,
|
|
1614
1614
|
dueAtLabel: N,
|
|
1615
1615
|
unread: P,
|
|
1616
1616
|
unreadLabel: j = "Ulest",
|
|
@@ -1619,7 +1619,7 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1619
1619
|
seenByLog: c,
|
|
1620
1620
|
draftsLabel: u,
|
|
1621
1621
|
sentCount: k,
|
|
1622
|
-
receivedCount:
|
|
1622
|
+
receivedCount: T,
|
|
1623
1623
|
attachmentsCount: F,
|
|
1624
1624
|
attachmentsLabel: K,
|
|
1625
1625
|
tooltips: H = {},
|
|
@@ -1669,7 +1669,7 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1669
1669
|
size: "xs",
|
|
1670
1670
|
loading: r,
|
|
1671
1671
|
sender: p,
|
|
1672
|
-
recipient:
|
|
1672
|
+
recipient: l,
|
|
1673
1673
|
recipientLabel: b,
|
|
1674
1674
|
grouped: g
|
|
1675
1675
|
}
|
|
@@ -1693,11 +1693,11 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1693
1693
|
className: Z.footer,
|
|
1694
1694
|
loading: r,
|
|
1695
1695
|
badge: M,
|
|
1696
|
-
status:
|
|
1696
|
+
status: i,
|
|
1697
1697
|
extendedStatusLabel: h,
|
|
1698
1698
|
draftsLabel: u,
|
|
1699
1699
|
sentCount: k,
|
|
1700
|
-
receivedCount:
|
|
1700
|
+
receivedCount: T,
|
|
1701
1701
|
updatedAt: y,
|
|
1702
1702
|
updatedAtLabel: $,
|
|
1703
1703
|
archivedAt: I,
|
|
@@ -1705,7 +1705,7 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1705
1705
|
trashedAt: O,
|
|
1706
1706
|
trashedAtLabel: d,
|
|
1707
1707
|
dueAt: z,
|
|
1708
|
-
dueAtExpired:
|
|
1708
|
+
dueAtExpired: L,
|
|
1709
1709
|
dueAtLabel: N,
|
|
1710
1710
|
attachmentsCount: F,
|
|
1711
1711
|
attachmentsLabel: K,
|
|
@@ -1730,10 +1730,10 @@ const rr = ({
|
|
|
1730
1730
|
updatedAtLabel: s,
|
|
1731
1731
|
dueAt: m,
|
|
1732
1732
|
dueAtExpired: f,
|
|
1733
|
-
dueAtLabel:
|
|
1733
|
+
dueAtLabel: i,
|
|
1734
1734
|
archivedAt: h,
|
|
1735
1735
|
archivedAtLabel: p,
|
|
1736
|
-
trashedAt:
|
|
1736
|
+
trashedAt: l,
|
|
1737
1737
|
trashedAtLabel: b,
|
|
1738
1738
|
draftsLabel: g,
|
|
1739
1739
|
sentCount: y = 0,
|
|
@@ -1756,7 +1756,7 @@ const rr = ({
|
|
|
1756
1756
|
A && /* @__PURE__ */ a(ne, { tooltip: d.transmissions, loading: o, size: "xs", icon: At, children: A }),
|
|
1757
1757
|
y > 0 && /* @__PURE__ */ a(ne, { tooltip: d.sent, size: "xs", icon: Qe, children: y }),
|
|
1758
1758
|
$ > 0 && /* @__PURE__ */ a(ne, { tooltip: d.received, size: "xs", icon: Et, children: $ }),
|
|
1759
|
-
m &&
|
|
1759
|
+
m && i && /* @__PURE__ */ a(
|
|
1760
1760
|
ne,
|
|
1761
1761
|
{
|
|
1762
1762
|
variant: "tinted",
|
|
@@ -1766,7 +1766,7 @@ const rr = ({
|
|
|
1766
1766
|
datetime: m,
|
|
1767
1767
|
size: "xs",
|
|
1768
1768
|
icon: yt,
|
|
1769
|
-
children:
|
|
1769
|
+
children: i
|
|
1770
1770
|
}
|
|
1771
1771
|
),
|
|
1772
1772
|
b && /* @__PURE__ */ a(
|
|
@@ -1776,7 +1776,7 @@ const rr = ({
|
|
|
1776
1776
|
color: "neutral",
|
|
1777
1777
|
tooltip: d.trashedAt,
|
|
1778
1778
|
loading: o,
|
|
1779
|
-
datetime:
|
|
1779
|
+
datetime: l,
|
|
1780
1780
|
size: "xs",
|
|
1781
1781
|
icon: Ht,
|
|
1782
1782
|
children: b
|
|
@@ -1819,16 +1819,16 @@ const rr = ({
|
|
|
1819
1819
|
/* @__PURE__ */ a("strong", { children: e?.name }),
|
|
1820
1820
|
" ",
|
|
1821
1821
|
o && n + " " + o?.name
|
|
1822
|
-
] }), ar = "_media_1x8z9_1", sr = "_icon_1x8z9_10",
|
|
1822
|
+
] }), ar = "_media_1x8z9_1", sr = "_icon_1x8z9_10", lr = "_avatarGroup_1x8z9_17", de = {
|
|
1823
1823
|
media: ar,
|
|
1824
1824
|
icon: sr,
|
|
1825
|
-
avatarGroup:
|
|
1825
|
+
avatarGroup: lr
|
|
1826
1826
|
};
|
|
1827
|
-
function
|
|
1827
|
+
function ir(e) {
|
|
1828
1828
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || Ge(e);
|
|
1829
1829
|
}
|
|
1830
1830
|
const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ x("span", { className: de.media, "data-size": e, children: [
|
|
1831
|
-
Ee(o) && /* @__PURE__ */ a(je, { ...o, className: de.avatar }) || Se(o) && /* @__PURE__ */ a(be, { ...o, className: de.avatarGroup }) || ze(o) && /* @__PURE__ */ a(se, { ...o, className: de.icon }) ||
|
|
1831
|
+
Ee(o) && /* @__PURE__ */ a(je, { ...o, className: de.avatar }) || Se(o) && /* @__PURE__ */ a(be, { ...o, className: de.avatarGroup }) || ze(o) && /* @__PURE__ */ a(se, { ...o, className: de.icon }) || ir(o) && o || /* @__PURE__ */ a(se, { svgElement: o, className: de.icon }),
|
|
1832
1832
|
n && /* @__PURE__ */ a(Ot, { value: n, className: de.icon })
|
|
1833
1833
|
] }), cr = "_item_cqtms_1", dr = "_label_cqtms_54", we = {
|
|
1834
1834
|
item: cr,
|
|
@@ -1842,10 +1842,10 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1842
1842
|
variant: s,
|
|
1843
1843
|
color: m,
|
|
1844
1844
|
icon: f,
|
|
1845
|
-
children:
|
|
1845
|
+
children: i,
|
|
1846
1846
|
datetime: h,
|
|
1847
1847
|
tooltip: p,
|
|
1848
|
-
...
|
|
1848
|
+
...l
|
|
1849
1849
|
}) => {
|
|
1850
1850
|
const b = e || (h ? "time" : "span");
|
|
1851
1851
|
return p ? /* @__PURE__ */ a($e, { content: p, placement: "bottom", children: /* @__PURE__ */ a(
|
|
@@ -1856,10 +1856,10 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1856
1856
|
"data-variant": s,
|
|
1857
1857
|
dateTime: h,
|
|
1858
1858
|
className: U(we.item, n),
|
|
1859
|
-
...
|
|
1859
|
+
...l,
|
|
1860
1860
|
children: /* @__PURE__ */ x(ue, { loading: o, children: [
|
|
1861
1861
|
!o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
|
|
1862
|
-
/* @__PURE__ */ a("span", { className: we.label, children:
|
|
1862
|
+
/* @__PURE__ */ a("span", { className: we.label, children: i })
|
|
1863
1863
|
] })
|
|
1864
1864
|
}
|
|
1865
1865
|
) }) : /* @__PURE__ */ a(
|
|
@@ -1870,10 +1870,10 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1870
1870
|
"data-variant": s,
|
|
1871
1871
|
dateTime: h,
|
|
1872
1872
|
className: U(we.item, n),
|
|
1873
|
-
...
|
|
1873
|
+
...l,
|
|
1874
1874
|
children: /* @__PURE__ */ x(ue, { loading: o, children: [
|
|
1875
1875
|
!o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
|
|
1876
|
-
/* @__PURE__ */ a("span", { className: we.label, children:
|
|
1876
|
+
/* @__PURE__ */ a("span", { className: we.label, children: i })
|
|
1877
1877
|
] })
|
|
1878
1878
|
}
|
|
1879
1879
|
);
|
|
@@ -1906,15 +1906,15 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1906
1906
|
items: s = [],
|
|
1907
1907
|
dropdownSize: m = "sm",
|
|
1908
1908
|
id: f = "toolbar-menu",
|
|
1909
|
-
onSelectId:
|
|
1909
|
+
onSelectId: i,
|
|
1910
1910
|
...h
|
|
1911
1911
|
}) => {
|
|
1912
|
-
const p = _t({ id: f, returnFocusOnClose: !0 }),
|
|
1912
|
+
const p = _t({ id: f, returnFocusOnClose: !0 }), l = h.searchable ? "combobox" : "menu", b = qe(
|
|
1913
1913
|
(y) => {
|
|
1914
|
-
|
|
1914
|
+
i?.(y?.id ?? ""), y?.role !== "checkbox" && p.setOpen(!1);
|
|
1915
1915
|
},
|
|
1916
|
-
[
|
|
1917
|
-
), g =
|
|
1916
|
+
[i, p]
|
|
1917
|
+
), g = le(
|
|
1918
1918
|
() => s.map((y) => ({
|
|
1919
1919
|
...y,
|
|
1920
1920
|
onClick: () => b(y)
|
|
@@ -1957,10 +1957,10 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1957
1957
|
...h,
|
|
1958
1958
|
items: g,
|
|
1959
1959
|
keyboardEvents: p.open,
|
|
1960
|
-
a11yMode:
|
|
1960
|
+
a11yMode: l,
|
|
1961
1961
|
open: p.open,
|
|
1962
1962
|
scrollToTopOnOpen: h.virtualized,
|
|
1963
|
-
...
|
|
1963
|
+
...l === "combobox" ? { id: p.menuId } : p.menuA11yProps
|
|
1964
1964
|
}
|
|
1965
1965
|
)
|
|
1966
1966
|
}
|
|
@@ -1976,10 +1976,10 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1976
1976
|
loading: s,
|
|
1977
1977
|
collapsible: m,
|
|
1978
1978
|
clearButtonAltText: f = "Clear search",
|
|
1979
|
-
onChange:
|
|
1979
|
+
onChange: i,
|
|
1980
1980
|
onClear: h,
|
|
1981
1981
|
onKeyDown: p,
|
|
1982
|
-
menu:
|
|
1982
|
+
menu: l,
|
|
1983
1983
|
minLength: b,
|
|
1984
1984
|
disabled: g,
|
|
1985
1985
|
htmlTitle: y
|
|
@@ -1994,7 +1994,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1994
1994
|
title: y,
|
|
1995
1995
|
placeholder: r,
|
|
1996
1996
|
clearButtonAltText: f,
|
|
1997
|
-
onChange:
|
|
1997
|
+
onChange: i,
|
|
1998
1998
|
onClear: h,
|
|
1999
1999
|
onKeyDown: p,
|
|
2000
2000
|
collapsible: m,
|
|
@@ -2003,7 +2003,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
2003
2003
|
type: "search",
|
|
2004
2004
|
minLength: b,
|
|
2005
2005
|
loading: s,
|
|
2006
|
-
menu:
|
|
2006
|
+
menu: l,
|
|
2007
2007
|
disabled: g
|
|
2008
2008
|
}
|
|
2009
2009
|
)
|
|
@@ -2026,8 +2026,8 @@ export {
|
|
|
2026
2026
|
mr as e,
|
|
2027
2027
|
ur as f,
|
|
2028
2028
|
Gn as g,
|
|
2029
|
-
|
|
2030
|
-
|
|
2029
|
+
Te as h,
|
|
2030
|
+
Le as i,
|
|
2031
2031
|
tt as j,
|
|
2032
2032
|
Je as k,
|
|
2033
2033
|
Xe as l,
|