@altinn/altinn-components 0.56.8 → 0.56.10
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/{SearchField-xsZAikgq.js → SearchField-CYYz0JvC.js} +92 -91
- package/dist/assets/AccountListVirtual.css +1 -1
- package/dist/assets/DatepickerFilter.css +1 -0
- package/dist/assets/FooterBase.css +1 -1
- package/dist/assets/GlobalHeaderBase.css +1 -1
- package/dist/assets/LayoutBody.css +1 -1
- package/dist/assets/LayoutContent.css +1 -1
- package/dist/assets/LayoutGrid.css +1 -0
- package/dist/assets/LayoutSidebar.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +15 -14
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +9 -8
- package/dist/components/Account/AccountList.js +8 -7
- package/dist/components/Account/AccountListItem.js +7 -6
- package/dist/components/Account/AccountListItemControls.js +7 -6
- package/dist/components/Account/AccountListItemDetails.js +3 -2
- package/dist/components/Account/AccountListVirtual.js +16 -15
- package/dist/components/Account/AccountMenu.js +8 -7
- package/dist/components/Account/AccountMenuButton.js +3 -2
- package/dist/components/Account/AccountNotificationSettings.js +8 -7
- package/dist/components/Account/AccountOrganization.js +14 -13
- package/dist/components/ActivityLog/ActivityLog.js +7 -6
- package/dist/components/ActivityLog/ActivityLogItem.js +3 -2
- package/dist/components/ActivityLog/ActivityLogSegment.js +3 -2
- package/dist/components/Article/Article.js +3 -2
- package/dist/components/Article/ArticleContact.js +3 -2
- package/dist/components/Article/ArticleHeader.js +7 -6
- package/dist/components/Banner/Banner.js +7 -6
- package/dist/components/{Page → Breadcrumbs}/Breadcrumbs.js +4 -3
- package/dist/components/Breadcrumbs/index.js +6 -0
- package/dist/components/Button/ButtonIcon.js +3 -2
- package/dist/components/Button/ComboButton.js +3 -2
- package/dist/components/Button/FloatingActionButton.js +7 -6
- package/dist/components/Button/IconButton.js +5 -4
- package/dist/components/Byline/Byline.js +9 -8
- package/dist/components/ContextMenu/ContextMenu.js +10 -9
- package/dist/components/Dashboard/DashboardCard.js +9 -8
- package/dist/components/Dashboard/DashboardHeader.js +5 -4
- package/dist/components/Datepicker/DatepickerHeader.js +3 -2
- package/dist/components/Datepicker/DatepickerTable.js +12 -11
- package/dist/components/Dialog/Dialog.js +3 -2
- package/dist/components/Dialog/DialogActions.js +4 -3
- package/dist/components/Dialog/DialogActivityLog.js +3 -2
- package/dist/components/Dialog/DialogAttachments.js +3 -2
- package/dist/components/Dialog/DialogBody.js +3 -2
- package/dist/components/Dialog/DialogByline.js +9 -8
- package/dist/components/Dialog/DialogContact.js +3 -2
- package/dist/components/Dialog/DialogHeader.js +3 -2
- package/dist/components/Dialog/DialogHistory.js +6 -5
- package/dist/components/Dialog/DialogHistoryItem.js +3 -2
- package/dist/components/Dialog/DialogHistorySegment.js +3 -2
- package/dist/components/Dialog/DialogLayout.js +4 -3
- package/dist/components/Dialog/DialogList.js +3 -2
- package/dist/components/Dialog/DialogListGroup.js +3 -2
- package/dist/components/Dialog/DialogListItem.js +27 -26
- package/dist/components/Dialog/DialogMetadata.js +3 -2
- package/dist/components/Dialog/DialogSection.js +3 -2
- package/dist/components/Dialog/DialogSeenBy.js +7 -6
- package/dist/components/Dialog/DialogSelect.js +9 -8
- package/dist/components/Dialog/DialogStatus.js +3 -2
- package/dist/components/Dialog/DialogTabs.js +3 -2
- package/dist/components/Dialog/SeenByLog.js +3 -2
- package/dist/components/Dialog/SeenByLogButton.js +9 -8
- package/dist/components/Dialog/SeenByLogItem.js +8 -7
- package/dist/components/Dropdown/DrawerButton.js +4 -3
- package/dist/components/Dropdown/DrawerHeader.js +7 -6
- package/dist/components/Dropdown/DrawerOrDropdown.js +3 -2
- package/dist/components/Dropdown/Dropdown.js +132 -118
- package/dist/components/Dropdown/DropdownBase.js +7 -6
- package/dist/components/Dropdown/FloatingDropdown.js +3 -2
- package/dist/components/Footer/FooterBase.js +7 -7
- package/dist/components/Forms/Checkbox.js +3 -2
- package/dist/components/Forms/CheckboxOptions.js +3 -2
- package/dist/components/Forms/FieldBase.js +3 -2
- package/dist/components/Forms/FieldsetBase.js +6 -5
- package/dist/components/Forms/Radio.js +3 -2
- package/dist/components/Forms/RadioOptions.js +3 -2
- package/dist/components/Forms/SearchField.js +3 -2
- package/dist/components/Forms/SelectField.js +5 -4
- package/dist/components/Forms/Switch.js +3 -2
- package/dist/components/Forms/SwitchOptions.js +3 -2
- package/dist/components/Forms/TextField.js +3 -2
- package/dist/components/Forms/TextFieldDropdown.js +13 -12
- package/dist/components/Forms/TextareaField.js +3 -2
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/AccountSelector.js +4 -3
- package/dist/components/GlobalHeader/GlobalHeader.js +11 -10
- package/dist/components/GlobalHeader/GlobalHeaderBase.js +8 -7
- package/dist/components/GlobalHeader/GlobalSearch.js +3 -2
- package/dist/components/GlobalHeader/GlobalSearchButton.js +9 -8
- package/dist/components/GlobalMenu/GlobalMenu.js +10 -9
- package/dist/components/GlobalMenu/GlobalMenuButton.js +9 -8
- package/dist/components/GlobalMenu/LocaleSwitcher.js +9 -8
- package/dist/components/GlobalMenu/LogoutButton.js +6 -5
- package/dist/components/GlobalMenu_old/BackButton.js +3 -2
- package/dist/components/GlobalMenu_old/CurrentAccount.js +3 -2
- package/dist/components/GlobalMenu_old/GlobalMenu.js +10 -9
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +11 -10
- package/dist/components/GlobalMenu_old/LogoutButton.js +6 -5
- package/dist/components/Header/Header.js +10 -9
- package/dist/components/Header/HeaderBase.js +5 -4
- package/dist/components/Header/HeaderButton.js +13 -12
- package/dist/components/Header/LocaleButton.js +7 -6
- package/dist/components/Header/LocaleSwitcher.js +4 -3
- package/dist/components/Icon/Icon.js +13 -12
- package/dist/components/InboxSearch/InboxSearch.js +10 -9
- package/dist/components/Item/ItemMedia.js +3 -2
- package/dist/components/Layout/Layout.js +45 -33
- package/dist/components/Layout/LayoutBody.js +5 -5
- package/dist/components/Layout/LayoutContent.js +1 -1
- package/dist/components/Layout/LayoutGrid.js +7 -0
- package/dist/components/Layout/LayoutSidebar.js +4 -4
- package/dist/components/Layout/index.js +12 -10
- package/dist/components/LayoutAction/ActionHeader.js +10 -9
- package/dist/components/LayoutAction/LayoutAction.js +3 -2
- package/dist/components/List/List.js +5 -4
- package/dist/components/List/ListBase.js +3 -2
- package/dist/components/List/ListItemHeader.js +22 -21
- package/dist/components/List/ListItemIcon.js +3 -2
- package/dist/components/List/ListItemLabel.js +11 -10
- package/dist/components/List/ListItemSelect.js +9 -8
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +3 -2
- package/dist/components/Menu/MenuItems.js +3 -2
- package/dist/components/Menu/MenuListSearch.js +3 -2
- package/dist/components/Menu/TabMenu.js +7 -6
- package/dist/components/Menu/VirtualizedMenuItems.js +3 -2
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Metadata/MetaItem.js +3 -2
- package/dist/components/Metadata/MetaItemIcon.js +3 -2
- package/dist/components/Metadata/MetaProgress.js +3 -2
- package/dist/components/Metadata/MetaTimestamp.js +3 -2
- package/dist/components/Metadata/Metadata.js +3 -2
- package/dist/components/Modal/Modal.js +7 -6
- package/dist/components/Modal/ModalBase.js +9 -8
- package/dist/components/Modal/ModalFooter.js +3 -2
- package/dist/components/Modal/ModalHeader.js +7 -6
- package/dist/components/Modal/ModalIcon.js +3 -2
- package/dist/components/Notifications/NotificationItem.js +3 -2
- package/dist/components/Notifications/NotificationItemBase.js +7 -6
- package/dist/components/Notifications/NotificationItemControls.js +7 -6
- package/dist/components/Notifications/NotificationItemIcon.js +7 -6
- package/dist/components/Page/AccordionSection.js +3 -2
- package/dist/components/Page/ContactButtons.js +3 -2
- package/dist/components/Page/ContactSection.js +10 -9
- package/dist/components/Page/PageMenu.js +6 -5
- package/dist/components/Page/PageNav.js +7 -6
- package/dist/components/Page/Section.js +9 -8
- package/dist/components/Page/index.js +18 -22
- package/dist/components/ResourceListItem/ResourceListItem.js +7 -6
- package/dist/components/RootProvider/RootProvider.js +5 -4
- package/dist/components/Search/SearchItem.js +5 -4
- package/dist/components/Searchbar/Autocomplete.js +3 -2
- package/dist/components/Searchbar/AutocompleteItem.js +5 -4
- package/dist/components/Searchbar/Searchbar.js +3 -2
- package/dist/components/Searchbar/SearchbarField.js +7 -6
- package/dist/components/Settings/BookmarksSettingsItem.js +3 -2
- package/dist/components/Settings/BookmarksSettingsList.js +7 -6
- package/dist/components/Settings/SettingsItem.js +7 -6
- package/dist/components/Settings/SettingsItemBase.js +12 -11
- package/dist/components/Settings/SettingsList.js +3 -2
- package/dist/components/Settings/SettingsModal.js +3 -2
- package/dist/components/Settings/SettingsSection.js +10 -9
- package/dist/components/Settings/UsedByLog.js +3 -2
- package/dist/components/Settings/UsedByLogItem.js +8 -7
- package/dist/components/Snackbar/SnackbarItem.js +3 -2
- package/dist/components/Timeline/Timeline.js +3 -2
- package/dist/components/Timeline/TimelineActivity.js +3 -2
- package/dist/components/Timeline/TimelineBase.js +3 -2
- package/dist/components/Timeline/TimelineFooter.js +6 -5
- package/dist/components/Timeline/TimelineHeader.js +3 -2
- package/dist/components/Timeline/TimelineIcon.js +4 -3
- package/dist/components/Timeline/TimelineSection.js +3 -2
- package/dist/components/Timeline/TimelineSegment.js +3 -2
- package/dist/components/Toolbar/DatepickerFilter.js +58 -57
- package/dist/components/Toolbar/SelectDateFilter.js +50 -34
- package/dist/components/Toolbar/Toolbar.js +3 -2
- package/dist/components/Toolbar/ToolbarFilter.js +13 -12
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterButton.js +3 -2
- package/dist/components/Toolbar/ToolbarFilterMenu.js +83 -78
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +4 -3
- package/dist/components/Transmission/Transmission.js +16 -15
- package/dist/components/Transmission/TransmissionList.js +3 -2
- package/dist/components/Transmission/TransmissionType.js +1 -0
- package/dist/components/Typography/Heading.js +7 -6
- package/dist/components/UserListItem/UserListItem.js +6 -5
- package/dist/components/index.js +443 -441
- package/dist/hooks/useAccountSelector.js +3 -2
- package/dist/index.js +455 -453
- package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +9 -9
- package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/types/lib/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/lib/components/Button/Button.stories.d.ts +2 -2
- package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Dropdown/Dropdown.d.ts +2 -1
- package/dist/types/lib/components/Dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/types/lib/components/Layout/Layout.d.ts +3 -1
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +2 -1
- package/dist/types/lib/components/Layout/LayoutGrid.d.ts +13 -0
- package/dist/types/lib/components/Layout/index.d.ts +1 -0
- package/dist/types/lib/components/List/Specimens.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +4 -4
- package/dist/types/lib/components/Menu/useDropdownMenuController.d.ts +6 -6
- package/dist/types/lib/components/Page/index.d.ts +0 -2
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +9 -9
- package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/SelectDateFilter.d.ts +1 -0
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +2 -2
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +348 -348
- package/dist/types/lib/components/Toolbar/example.hooks.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/useFilter.d.ts +8 -8
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +10 -10
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{Page → Breadcrumbs}/BreadcrumbsLink.js +0 -0
- /package/dist/types/lib/components/{Page → Breadcrumbs}/Breadcrumbs.d.ts +0 -0
- /package/dist/types/lib/components/{Page → Breadcrumbs}/Breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Page → Breadcrumbs}/BreadcrumbsLink.d.ts +0 -0
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { jsx as o, jsxs as E } from "react/jsx-runtime";
|
|
3
3
|
import { c as oe } from "./index-p1eeF8LQ.js";
|
|
4
4
|
import { useRef as j, useState as Q, useMemo as R, useEffect as G, Fragment as ge, useLayoutEffect as ne, useId as re } from "react";
|
|
5
|
-
import { Button as
|
|
5
|
+
import { Button as ie } from "./components/Button/Button.js";
|
|
6
|
+
import "react-dom";
|
|
6
7
|
import "./components/RootProvider/RootProvider.js";
|
|
7
8
|
import { useMenu as de } from "./hooks/useMenu.js";
|
|
8
|
-
import { Input as
|
|
9
|
+
import { Input as se } from "./components/Forms/Input.js";
|
|
9
10
|
import { FieldBase as ae } from "./components/Forms/FieldBase.js";
|
|
10
11
|
import "./components/Snackbar/useSnackbar.js";
|
|
11
12
|
import { S as ce } from "./MagnifyingGlass-bwVhw07z.js";
|
|
@@ -16,14 +17,14 @@ import { MenuListItem as pe } from "./components/Menu/MenuListItem.js";
|
|
|
16
17
|
import { MenuListGroup as me } from "./components/Menu/MenuListGroup.js";
|
|
17
18
|
import { MenuListDivider as he } from "./components/Menu/MenuListDivider.js";
|
|
18
19
|
import { MenuListHeading as ye } from "./components/Menu/MenuListHeading.js";
|
|
19
|
-
import { a as
|
|
20
|
-
import { useMenuSearch as
|
|
21
|
-
import './assets/SearchField.css';const
|
|
22
|
-
search:
|
|
20
|
+
import { a as we } from "./useMenuVirtualization-Cs426RCN.js";
|
|
21
|
+
import { useMenuSearch as be } from "./components/Menu/useMenuSearch.js";
|
|
22
|
+
import './assets/SearchField.css';const ve = "_search_18jfe_1", Ce = "_searchInput_18jfe_8", te = {
|
|
23
|
+
search: ve,
|
|
23
24
|
searchInput: Ce
|
|
24
25
|
}, xe = ({
|
|
25
|
-
style:
|
|
26
|
-
index:
|
|
26
|
+
style: w,
|
|
27
|
+
index: b,
|
|
27
28
|
name: A,
|
|
28
29
|
value: k,
|
|
29
30
|
placeholder: d = "Search",
|
|
@@ -31,14 +32,14 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
31
32
|
onChange: _,
|
|
32
33
|
onClear: D,
|
|
33
34
|
onNavigate: p,
|
|
34
|
-
combobox:
|
|
35
|
+
combobox: s = !1,
|
|
35
36
|
listId: h,
|
|
36
37
|
"aria-activedescendant": B,
|
|
37
38
|
onKeyDown: y,
|
|
38
|
-
onInput:
|
|
39
|
+
onInput: i,
|
|
39
40
|
onFocus: x,
|
|
40
41
|
...M
|
|
41
|
-
}) => /* @__PURE__ */ o("li", { className: te.search, style:
|
|
42
|
+
}) => /* @__PURE__ */ o("li", { className: te.search, style: w, "data-index": b, "data-menu-search": "true", children: s ? (
|
|
42
43
|
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
43
44
|
// biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
|
|
44
45
|
// biome-ignore lint/a11y/useSemanticElements: <explanation>
|
|
@@ -63,7 +64,7 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
63
64
|
onKeyDown: (a) => {
|
|
64
65
|
(a.key === "ArrowUp" || a.key === "ArrowDown") && (a.preventDefault(), p?.()), y?.(a);
|
|
65
66
|
},
|
|
66
|
-
onInput:
|
|
67
|
+
onInput: i,
|
|
67
68
|
onFocus: x,
|
|
68
69
|
...M
|
|
69
70
|
}
|
|
@@ -86,13 +87,13 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
86
87
|
onKeyDown: (a) => {
|
|
87
88
|
(a.key === "ArrowUp" || a.key === "ArrowDown") && (a.preventDefault(), p?.()), y?.(a);
|
|
88
89
|
},
|
|
89
|
-
onInput:
|
|
90
|
+
onInput: i,
|
|
90
91
|
onFocus: x,
|
|
91
92
|
...M
|
|
92
93
|
}
|
|
93
94
|
) }), Ie = ({
|
|
94
|
-
level:
|
|
95
|
-
maxLevels:
|
|
95
|
+
level: w = 0,
|
|
96
|
+
maxLevels: b,
|
|
96
97
|
expanded: A,
|
|
97
98
|
a11yMode: k = "menu",
|
|
98
99
|
open: d,
|
|
@@ -100,27 +101,27 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
100
101
|
autoActivateFirstItem: _ = !0,
|
|
101
102
|
autoFocusList: D = !0,
|
|
102
103
|
announceNoResults: p = !1,
|
|
103
|
-
search:
|
|
104
|
+
search: s,
|
|
104
105
|
items: h,
|
|
105
106
|
groups: B = {},
|
|
106
107
|
size: y,
|
|
107
|
-
id:
|
|
108
|
+
id: i,
|
|
108
109
|
color: x,
|
|
109
110
|
variant: M,
|
|
110
111
|
scrollRefStyles: a = {},
|
|
111
112
|
keyboardEvents: I = !1,
|
|
112
113
|
onSelect: z = () => {
|
|
113
114
|
},
|
|
114
|
-
onActiveItemIdChange:
|
|
115
|
+
onActiveItemIdChange: v
|
|
115
116
|
}) => {
|
|
116
|
-
if (
|
|
117
|
+
if (b && w >= b)
|
|
117
118
|
return null;
|
|
118
|
-
const m = k === "combobox", l = m &&
|
|
119
|
+
const m = k === "combobox", l = m && i ? `${i}-listbox` : i, F = j(d), O = j(d), [Y, C] = Q(!1), f = R(
|
|
119
120
|
() => h.map((n, g) => ({
|
|
120
121
|
...n,
|
|
121
|
-
id: n.id || `${
|
|
122
|
+
id: n.id || `${i}-item-${g}`
|
|
122
123
|
})),
|
|
123
|
-
[h,
|
|
124
|
+
[h, i]
|
|
124
125
|
), S = j(null), { menu: L, setActiveIndex: H, activeItem: W } = de({
|
|
125
126
|
items: f,
|
|
126
127
|
groups: B,
|
|
@@ -131,8 +132,8 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
131
132
|
ref: S
|
|
132
133
|
});
|
|
133
134
|
return G(() => {
|
|
134
|
-
|
|
135
|
-
}, [W?.id,
|
|
135
|
+
v?.(W?.id);
|
|
136
|
+
}, [W?.id, v]), G(() => {
|
|
136
137
|
if (!r) {
|
|
137
138
|
F.current = d;
|
|
138
139
|
return;
|
|
@@ -141,8 +142,8 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
141
142
|
F.current = d, d && !n && S.current?.scrollTo({ top: 0 });
|
|
142
143
|
}, [d, r]), G(() => {
|
|
143
144
|
const n = O.current;
|
|
144
|
-
O.current = d, !(!I ||
|
|
145
|
-
}, [d, I,
|
|
145
|
+
O.current = d, !(!I || s || !D) && d && !n && requestAnimationFrame(() => S.current?.focus?.({ preventScroll: !0 }));
|
|
146
|
+
}, [d, I, s]), G(() => {
|
|
146
147
|
if (m && p) {
|
|
147
148
|
H(0), C(!0);
|
|
148
149
|
return;
|
|
@@ -158,35 +159,35 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
158
159
|
role: m ? "listbox" : void 0,
|
|
159
160
|
tabIndex: I ? -1 : void 0,
|
|
160
161
|
children: [
|
|
161
|
-
|
|
162
|
+
s && /* @__PURE__ */ o(
|
|
162
163
|
xe,
|
|
163
164
|
{
|
|
164
|
-
...
|
|
165
|
+
...s,
|
|
165
166
|
combobox: m,
|
|
166
167
|
listId: l,
|
|
167
168
|
"aria-activedescendant": m && Y ? W?.id : void 0,
|
|
168
169
|
onNavigate: m ? () => C(!0) : void 0,
|
|
169
170
|
onChange: (n) => {
|
|
170
|
-
C(!1),
|
|
171
|
+
C(!1), s.onChange?.(n);
|
|
171
172
|
},
|
|
172
173
|
onFocus: (n) => {
|
|
173
|
-
C(!1),
|
|
174
|
+
C(!1), s.onFocus?.(n);
|
|
174
175
|
},
|
|
175
176
|
onInput: (n) => {
|
|
176
|
-
C(!1),
|
|
177
|
+
C(!1), s.onInput?.(n);
|
|
177
178
|
},
|
|
178
179
|
onKeyDown: (n) => {
|
|
179
180
|
const g = n.key === "ArrowUp" || n.key === "ArrowDown", T = n.key.length === 1 || n.key === "Backspace" || n.key === "Delete";
|
|
180
|
-
m && !g && T && C(!1),
|
|
181
|
+
m && !g && T && C(!1), s.onKeyDown?.(n);
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
),
|
|
184
185
|
L.map((n, g) => {
|
|
185
186
|
const T = n?.props || {}, { title: P, hidden: q = !1, divider: X = !0 } = T;
|
|
186
187
|
return /* @__PURE__ */ E(ge, { children: [
|
|
187
|
-
(
|
|
188
|
+
(w > 0 || g) && X ? /* @__PURE__ */ o(he, {}) : "",
|
|
188
189
|
/* @__PURE__ */ o(me, { hidden: q, children: /* @__PURE__ */ E(Z, { role: "presentation", children: [
|
|
189
|
-
P && /* @__PURE__ */ o(ye, { title: P, level:
|
|
190
|
+
P && /* @__PURE__ */ o(ye, { title: P, level: w }),
|
|
190
191
|
n?.items.filter((U) => !U.props?.hidden).map((U, e) => {
|
|
191
192
|
const { active: t, onMouseEnter: u } = U, { groupId: K, ...c } = U.props || {}, { expanded: $ } = c, V = Array.isArray(c?.items) && c.items.length > 0, J = c.role === "checkbox" || c.role === "radio", ee = m && !J ? "option" : c.role;
|
|
192
193
|
return /* @__PURE__ */ E(
|
|
@@ -218,8 +219,8 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
218
219
|
{
|
|
219
220
|
id: c.id + "-menu",
|
|
220
221
|
expanded: $,
|
|
221
|
-
level:
|
|
222
|
-
maxLevels:
|
|
222
|
+
level: w + 1,
|
|
223
|
+
maxLevels: b,
|
|
223
224
|
items: c?.items,
|
|
224
225
|
groups: B,
|
|
225
226
|
size: y,
|
|
@@ -238,40 +239,40 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
238
239
|
]
|
|
239
240
|
}
|
|
240
241
|
);
|
|
241
|
-
}, ke = (
|
|
242
|
-
const
|
|
242
|
+
}, ke = (w) => {
|
|
243
|
+
const b = j(null), A = j(null), [k, d] = Q(0), {
|
|
243
244
|
search: r,
|
|
244
245
|
items: _,
|
|
245
246
|
groups: D = {},
|
|
246
247
|
size: p,
|
|
247
|
-
color:
|
|
248
|
+
color: s,
|
|
248
249
|
variant: h,
|
|
249
250
|
keyboardEvents: B,
|
|
250
251
|
scrollRefStyles: y = {},
|
|
251
|
-
id:
|
|
252
|
+
id: i,
|
|
252
253
|
expanded: x,
|
|
253
254
|
a11yMode: M = "menu",
|
|
254
255
|
open: a,
|
|
255
256
|
scrollToTopOnOpen: I = !1,
|
|
256
257
|
autoActivateFirstItem: z = !0,
|
|
257
|
-
announceNoResults:
|
|
258
|
+
announceNoResults: v = !1,
|
|
258
259
|
onActiveItemIdChange: m
|
|
259
|
-
} =
|
|
260
|
+
} = w, l = M === "combobox", F = l && i ? `${i}-listbox` : i, O = j(a), [Y, C] = Q(!1), f = R(
|
|
260
261
|
() => _.map((e, t) => ({
|
|
261
262
|
...e,
|
|
262
|
-
id: e.id || `${
|
|
263
|
+
id: e.id || `${i}-item-${t}`
|
|
263
264
|
})),
|
|
264
|
-
[_,
|
|
265
|
+
[_, i]
|
|
265
266
|
), { menu: S, activeItem: L, setActiveIndex: H, activeIndex: W } = de({
|
|
266
267
|
items: f,
|
|
267
268
|
groups: D,
|
|
268
269
|
groupByKey: "groupId",
|
|
269
270
|
keyboardEvents: B,
|
|
270
271
|
autoActivateFirstItem: z,
|
|
271
|
-
ref:
|
|
272
|
-
}), { flatMenu: n, virtualizer: g, scrollMaxHeight: T } =
|
|
272
|
+
ref: b
|
|
273
|
+
}), { flatMenu: n, virtualizer: g, scrollMaxHeight: T } = we({
|
|
273
274
|
menu: S,
|
|
274
|
-
scrollRef:
|
|
275
|
+
scrollRef: b
|
|
275
276
|
});
|
|
276
277
|
ne(() => {
|
|
277
278
|
const e = A.current;
|
|
@@ -321,17 +322,17 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
321
322
|
G(() => {
|
|
322
323
|
m?.(L?.id);
|
|
323
324
|
}, [L?.id, m]), G(() => {
|
|
324
|
-
if (l &&
|
|
325
|
+
if (l && v) {
|
|
325
326
|
H(0), C(!0);
|
|
326
327
|
return;
|
|
327
328
|
}
|
|
328
|
-
}, [
|
|
329
|
+
}, [v, l, H]), G(() => {
|
|
329
330
|
if (!I) {
|
|
330
331
|
O.current = a;
|
|
331
332
|
return;
|
|
332
333
|
}
|
|
333
334
|
const e = O.current;
|
|
334
|
-
O.current = a, a && !e &&
|
|
335
|
+
O.current = a, a && !e && b.current?.scrollTo({ top: 0 });
|
|
335
336
|
}, [a, I]);
|
|
336
337
|
const U = {
|
|
337
338
|
position: "relative",
|
|
@@ -345,10 +346,10 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
345
346
|
return /* @__PURE__ */ E(
|
|
346
347
|
Z,
|
|
347
348
|
{
|
|
348
|
-
ref:
|
|
349
|
+
ref: b,
|
|
349
350
|
style: U,
|
|
350
351
|
variant: h,
|
|
351
|
-
color:
|
|
352
|
+
color: s,
|
|
352
353
|
expanded: x,
|
|
353
354
|
id: F,
|
|
354
355
|
role: l ? "listbox" : void 0,
|
|
@@ -424,7 +425,7 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
424
425
|
{
|
|
425
426
|
...t.itemProps || {},
|
|
426
427
|
size: t.itemProps?.size || p,
|
|
427
|
-
color: t.itemProps?.color ||
|
|
428
|
+
color: t.itemProps?.color || s,
|
|
428
429
|
variant: t.itemProps?.variant || h,
|
|
429
430
|
active: t.active,
|
|
430
431
|
role: $,
|
|
@@ -446,8 +447,8 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
446
447
|
}
|
|
447
448
|
);
|
|
448
449
|
}, _e = ({
|
|
449
|
-
searchable:
|
|
450
|
-
search:
|
|
450
|
+
searchable: w,
|
|
451
|
+
search: b,
|
|
451
452
|
items: A = [],
|
|
452
453
|
groups: k = {},
|
|
453
454
|
variant: d = "default",
|
|
@@ -455,33 +456,33 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
455
456
|
level: _ = 0,
|
|
456
457
|
maxLevels: D = 3,
|
|
457
458
|
virtualized: p = !1,
|
|
458
|
-
keyboardEvents:
|
|
459
|
+
keyboardEvents: s = !1,
|
|
459
460
|
scrollRefStyles: h = {},
|
|
460
461
|
onActiveItemIdChange: B,
|
|
461
462
|
a11yMode: y = "menu",
|
|
462
|
-
open:
|
|
463
|
+
open: i,
|
|
463
464
|
scrollToTopOnOpen: x,
|
|
464
465
|
autoFocusList: M,
|
|
465
466
|
id: a
|
|
466
467
|
}) => {
|
|
467
|
-
const I =
|
|
468
|
+
const I = be({ ...b, items: A, groups: k }), z = w ? I.search : b, v = w && I.hasQuery && I.resultCount === 0, m = w ? I.items : A, l = w ? { ...k, ...I.groups } : k, F = y !== "combobox";
|
|
468
469
|
return p ? /* @__PURE__ */ o(
|
|
469
470
|
ke,
|
|
470
471
|
{
|
|
471
472
|
id: a,
|
|
472
473
|
search: z,
|
|
473
|
-
announceNoResults:
|
|
474
|
+
announceNoResults: v,
|
|
474
475
|
items: m,
|
|
475
476
|
groups: l,
|
|
476
477
|
variant: d,
|
|
477
478
|
size: r,
|
|
478
479
|
level: _,
|
|
479
480
|
maxLevels: D,
|
|
480
|
-
keyboardEvents:
|
|
481
|
+
keyboardEvents: s,
|
|
481
482
|
scrollRefStyles: h,
|
|
482
483
|
onActiveItemIdChange: B,
|
|
483
484
|
a11yMode: y,
|
|
484
|
-
open:
|
|
485
|
+
open: i,
|
|
485
486
|
scrollToTopOnOpen: x,
|
|
486
487
|
autoActivateFirstItem: F,
|
|
487
488
|
autoFocusList: M
|
|
@@ -491,24 +492,24 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
491
492
|
{
|
|
492
493
|
id: a,
|
|
493
494
|
search: z,
|
|
494
|
-
announceNoResults:
|
|
495
|
+
announceNoResults: v,
|
|
495
496
|
items: m,
|
|
496
497
|
groups: l,
|
|
497
498
|
variant: d,
|
|
498
499
|
size: r,
|
|
499
500
|
level: _,
|
|
500
501
|
maxLevels: D,
|
|
501
|
-
keyboardEvents:
|
|
502
|
+
keyboardEvents: s,
|
|
502
503
|
scrollRefStyles: h,
|
|
503
504
|
onActiveItemIdChange: B,
|
|
504
505
|
a11yMode: y,
|
|
505
|
-
open:
|
|
506
|
+
open: i,
|
|
506
507
|
scrollToTopOnOpen: x,
|
|
507
508
|
autoActivateFirstItem: F,
|
|
508
509
|
autoFocusList: M
|
|
509
510
|
}
|
|
510
511
|
);
|
|
511
|
-
}, Me = "
|
|
512
|
+
}, Me = "_fieldContainer_w2w2p_1", Ae = "_field_w2w2p_1", De = "_icon_w2w2p_15", Be = "_input_w2w2p_9", Ne = "_clear_w2w2p_39", Fe = "_clearButton_w2w2p_52", Se = "_autocomplete_w2w2p_81", N = {
|
|
512
513
|
fieldContainer: Me,
|
|
513
514
|
field: Ae,
|
|
514
515
|
icon: De,
|
|
@@ -517,8 +518,8 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
517
518
|
clearButton: Fe,
|
|
518
519
|
autocomplete: Se
|
|
519
520
|
}, ue = ({
|
|
520
|
-
className:
|
|
521
|
-
collapsible:
|
|
521
|
+
className: w,
|
|
522
|
+
collapsible: b,
|
|
522
523
|
size: A,
|
|
523
524
|
color: k = "neutral",
|
|
524
525
|
label: d,
|
|
@@ -526,30 +527,30 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
526
527
|
onClear: _,
|
|
527
528
|
clearButtonAltText: D = "Clear search",
|
|
528
529
|
menu: p,
|
|
529
|
-
minLength:
|
|
530
|
+
minLength: s,
|
|
530
531
|
...h
|
|
531
532
|
}) => {
|
|
532
|
-
const B = re(), [y,
|
|
533
|
+
const B = re(), [y, i] = Q(!1), x = h.id || `search-field-${B}`, M = `${x}-listbox`, [a, I] = Q(void 0), z = "searchfield-clear-button-" + re(), v = R(() => !r || typeof s == "number" && typeof r == "string" && r.length < s ? !1 : y, [y, s, r]), m = R(() => (p?.items ?? []).map((f) => ({
|
|
533
534
|
...f,
|
|
534
535
|
onClick: () => {
|
|
535
|
-
f.onClick?.(),
|
|
536
|
+
f.onClick?.(), i(!1);
|
|
536
537
|
}
|
|
537
538
|
})), [p]), l = (f) => {
|
|
538
|
-
if (f.key === "Enter" &&
|
|
539
|
-
p?.items?.[0]?.onClick?.(),
|
|
539
|
+
if (f.key === "Enter" && v) {
|
|
540
|
+
p?.items?.[0]?.onClick?.(), i(!1);
|
|
540
541
|
return;
|
|
541
542
|
}
|
|
542
|
-
if (f.key === "Escape" &&
|
|
543
|
-
f.preventDefault(), f.stopPropagation(),
|
|
543
|
+
if (f.key === "Escape" && v) {
|
|
544
|
+
f.preventDefault(), f.stopPropagation(), i(!1), p?.onClose(), document.getElementById(x)?.focus();
|
|
544
545
|
return;
|
|
545
546
|
}
|
|
546
|
-
h.onKeyDown?.(f),
|
|
547
|
+
h.onKeyDown?.(f), i(!0);
|
|
547
548
|
}, F = () => {
|
|
548
|
-
|
|
549
|
+
i(!0);
|
|
549
550
|
}, O = (f) => {
|
|
550
551
|
if (!y) return;
|
|
551
552
|
const S = f.relatedTarget;
|
|
552
|
-
S && f.currentTarget.contains(S) ||
|
|
553
|
+
S && f.currentTarget.contains(S) || i(!1);
|
|
553
554
|
}, Y = (f) => {
|
|
554
555
|
f.preventDefault();
|
|
555
556
|
}, C = (f) => {
|
|
@@ -562,37 +563,37 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
562
563
|
size: A,
|
|
563
564
|
color: k,
|
|
564
565
|
label: d,
|
|
565
|
-
className: oe(N.field,
|
|
566
|
+
className: oe(N.field, w),
|
|
566
567
|
onBlurCapture: O,
|
|
567
568
|
children: [
|
|
568
569
|
/* @__PURE__ */ o(
|
|
569
|
-
|
|
570
|
+
se,
|
|
570
571
|
{
|
|
571
572
|
...h,
|
|
572
573
|
id: x,
|
|
573
574
|
type: "search",
|
|
574
575
|
value: r,
|
|
575
576
|
className: N.input,
|
|
576
|
-
"data-collapsible":
|
|
577
|
+
"data-collapsible": b,
|
|
577
578
|
autoCapitalize: "off",
|
|
578
579
|
autoComplete: "off",
|
|
579
|
-
minLength:
|
|
580
|
+
minLength: s,
|
|
580
581
|
onKeyDown: l,
|
|
581
582
|
onBlur: C,
|
|
582
583
|
...p && {
|
|
583
584
|
role: "combobox",
|
|
584
585
|
"aria-autocomplete": "list",
|
|
585
|
-
"aria-expanded": !!
|
|
586
|
+
"aria-expanded": !!v,
|
|
586
587
|
"aria-haspopup": "listbox",
|
|
587
588
|
"aria-controls": M,
|
|
588
|
-
"aria-activedescendant":
|
|
589
|
+
"aria-activedescendant": v ? a : void 0,
|
|
589
590
|
onFocus: F
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
593
|
),
|
|
593
594
|
/* @__PURE__ */ o(ce, { className: N.icon }),
|
|
594
595
|
_ && !!r && /* @__PURE__ */ o("span", { className: N.clear, children: /* @__PURE__ */ o(
|
|
595
|
-
|
|
596
|
+
ie,
|
|
596
597
|
{
|
|
597
598
|
id: z,
|
|
598
599
|
"data-testid": "clear-button",
|
|
@@ -612,7 +613,7 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
612
613
|
]
|
|
613
614
|
}
|
|
614
615
|
),
|
|
615
|
-
p &&
|
|
616
|
+
p && v && /* @__PURE__ */ o("div", { className: N.autocomplete, "aria-hidden": !v, onMouseDown: Y, children: /* @__PURE__ */ o(
|
|
616
617
|
_e,
|
|
617
618
|
{
|
|
618
619
|
...p,
|
|
@@ -621,7 +622,7 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
621
622
|
groups: p?.groups,
|
|
622
623
|
keyboardEvents: !0,
|
|
623
624
|
a11yMode: "combobox",
|
|
624
|
-
open:
|
|
625
|
+
open: v,
|
|
625
626
|
autoFocusList: !1,
|
|
626
627
|
onActiveItemIdChange: I
|
|
627
628
|
}
|
|
@@ -632,28 +633,28 @@ import './assets/SearchField.css';const we = "_search_18jfe_1", Ce = "_searchInp
|
|
|
632
633
|
size: A,
|
|
633
634
|
color: k,
|
|
634
635
|
label: d,
|
|
635
|
-
className: oe(N.field,
|
|
636
|
+
className: oe(N.field, w),
|
|
636
637
|
onBlurCapture: O,
|
|
637
638
|
children: [
|
|
638
639
|
/* @__PURE__ */ o(
|
|
639
|
-
|
|
640
|
+
se,
|
|
640
641
|
{
|
|
641
642
|
...h,
|
|
642
643
|
id: x,
|
|
643
644
|
type: "search",
|
|
644
645
|
value: r,
|
|
645
646
|
className: N.input,
|
|
646
|
-
"data-collapsible":
|
|
647
|
+
"data-collapsible": b,
|
|
647
648
|
autoCapitalize: "off",
|
|
648
649
|
autoComplete: "off",
|
|
649
|
-
minLength:
|
|
650
|
+
minLength: s,
|
|
650
651
|
onKeyDown: l,
|
|
651
652
|
onBlur: C
|
|
652
653
|
}
|
|
653
654
|
),
|
|
654
655
|
/* @__PURE__ */ o(ce, { className: N.icon }),
|
|
655
656
|
_ && !!r && /* @__PURE__ */ o("span", { className: N.clear, children: /* @__PURE__ */ o(
|
|
656
|
-
|
|
657
|
+
ie,
|
|
657
658
|
{
|
|
658
659
|
id: z,
|
|
659
660
|
"data-testid": "clear-button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._virtualScrollRef_6cuj6_1{height:100vh;overflow-y:auto;overflow-x:hidden;padding:0 .5rem;margin:0 -.5rem}._virtualList_6cuj6_9{list-style-type:none;padding:0;margin:0}._virtualListItem_6cuj6_15{position:absolute;top:0;left:0;width:100%}._virtualListItem_6cuj6_15:focus-within,._virtualListItem_6cuj6_15:has([aria-expanded=true]){z-index:20}._virtualListItem_6cuj6_15>*{margin:0}._lastChild_6cuj6_31{padding-bottom:1rem}._virtualTitleItem_6cuj6_35{position:absolute;top:0;left:0;width:100%;padding-top:1rem;padding-bottom:1rem}._virtualTitleItem_6cuj6_35:first-child{padding-top:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
input[type=date]::-webkit-inner-spin-button,input[type=date]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._footer_1yxd7_1{border-top:1px solid;border-color:var(--ds-color-border-subtle);display:flex;flex-direction:column;row-gap:1rem;padding:1rem 0;margin:0 1rem}._grid_1yxd7_13{width:100%;max-width:80rem;margin:0 auto;display:flex;flex-direction:column;justify-content:space-between;row-gap:1rem}@media(min-width:1024px){._grid_1yxd7_13{flex-direction:row}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_pafet_1{z-index:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:.7rem;background-color:#fff}._backdrop_pafet_12{display:none}._header_pafet_1[data-current-id=menu],._header_pafet_1[data-current-id=locale]{background-color:#fff}@media(min-width:1024px){._header_pafet_1[data-current-id=menu] ._backdrop_pafet_12,._header_pafet_1[data-current-id=locale] ._backdrop_pafet_12{display:block}}@media(max-width:1023px){._header_pafet_1{gap:0}}._header_pafet_1{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._body_1s4on_1{flex-grow:1;width:100%;max-width:80rem;margin:0 auto;display:flex;column-gap:2em}._body_1s4on_1[data-current-id=accountFullscreen]{display:none}@media(max-width:1023px){._body_1s4on_1[data-current-id=menu]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_1508z_1{overflow-wrap:anywhere;flex-grow:1;display:flex;flex-direction:column;width:100%;padding:1rem 0;margin:0 auto}@media(min-width:1024px){[aria-hidden=true]+._content_1508z_1{padding:1rem 112px}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._grid_6h47e_1{flex-grow:1;width:100%;padding:0 1rem;margin:0 auto;display:flex;flex-direction:column}._grid_6h47e_1[data-current-id=accountFullscreen]{display:none}@media(max-width:1023px){._grid_6h47e_1[data-current-id=menu]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sidebar_1b5b3_1{padding:1rem 0;display:none}._sidebar_1b5b3_1[aria-hidden=true]{display:none}._footer_1b5b3_10{margin-top:.75rem;padding-top:1rem;padding-left:.5rem;border-top:1px solid var(--ds-color-border-subtle)}@media(min-width:1024px){._sidebar_1b5b3_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_1b5b3_1[data-sticky=true]{position:sticky;top:0}._sidebar_1b5b3_1[aria-hidden=true]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._search_18jfe_1{position:sticky;top:0;z-index:1;background-color:var(--ds-color-surface-default)}._searchInput_18jfe_8{width:100%}._search_18jfe_1 input:focus-visible{outline-offset:0;outline-width:2px}.
|
|
1
|
+
._search_18jfe_1{position:sticky;top:0;z-index:1;background-color:var(--ds-color-surface-default)}._searchInput_18jfe_8{width:100%}._search_18jfe_1 input:focus-visible{outline-offset:0;outline-width:2px}._fieldContainer_w2w2p_1,._field_w2w2p_1{position:relative}._inputContainer_w2w2p_9{position:relative;display:inline-flex;width:100%}._icon_w2w2p_15{position:absolute;top:1px;bottom:1px;left:.3em;color:var(--ds-color-text-subtle);font-size:1.25em;width:1.25em;height:1.25em;pointer-events:none!important}._input_w2w2p_9{padding-left:2.25em;padding-right:2.25em}._input_w2w2p_9[type=search]::-webkit-search-decoration,._input_w2w2p_9[type=search]::-webkit-search-cancel-button{appearance:none}._clear_w2w2p_39{position:absolute;top:1px;right:1px;bottom:1px;width:2.5em;height:2.5em;display:flex;justify-content:center;align-items:center;margin:0}._clearButton_w2w2p_52[data-size=xs]{--dsc-button-size: 2.5em;--dsc-button-padding: 0;font-size:.75em;border:none}._clearButton_w2w2p_52:focus-visible{outline-offset:0;outline-width:2px}._input_w2w2p_9[data-collapsible=true]{transition:width .5s ease-in-out}._input_w2w2p_9[data-collapsible=true]:placeholder-shown{background-color:transparent;width:8rem}._input_w2w2p_9[data-collapsible=true]:focus,._input_w2w2p_9[data-collapsible=true]:not(:placeholder-shown){width:auto;background-color:var(--ds-color-background-default)}._autocomplete_w2w2p_81{--var-min-width: 100%;--var-max-width: 20rem;--var-width: 20rem;min-width:var(--var-min-width);max-width:var(--var-max-width);width:var(--var-width);position:absolute;top:100%;left:0;z-index:1;border-radius:.375rem;margin-top:.5rem;margin-bottom:.5rem;background-color:var(--ds-color-background-default);color:var(--ds-color-text-default);box-shadow:var(--ds-shadow-sm);display:flex;flex-direction:column;row-gap:.5rem;padding:.5rem;white-space:unset}._autocomplete_w2w2p_81[aria-hidden=true]{display:none}@media(max-width:479px){._fieldContainer_w2w2p_1,._field_w2w2p_1{width:100%}._autocomplete_w2w2p_81{--var-max-width: 100%;--var-width: 100%}._input_w2w2p_9[data-collapsible=true]:placeholder-shown,._input_w2w2p_9[data-collapsible=true]:focus,._input_w2w2p_9[data-collapsible=true]:not(:placeholder-shown){width:100%!important}._field_w2w2p_1[data-size=xs] input[type=search]{font-size:1rem;padding-left:2em;padding-right:2em}}
|
|
@@ -2,23 +2,24 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
|
+
import "react-dom";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { ListItem as b } from "../List/ListItem.js";
|
|
8
9
|
import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
9
10
|
content: I
|
|
10
|
-
},
|
|
11
|
+
}, y = ({
|
|
11
12
|
name: t,
|
|
12
13
|
icon: c,
|
|
13
|
-
iconUrl:
|
|
14
|
-
size:
|
|
15
|
-
children:
|
|
14
|
+
iconUrl: r,
|
|
15
|
+
size: i = "md",
|
|
16
|
+
children: m,
|
|
16
17
|
expanded: e = !1,
|
|
17
|
-
onClick:
|
|
18
|
+
onClick: n,
|
|
18
19
|
badge: l,
|
|
19
|
-
colorTheme:
|
|
20
|
+
colorTheme: p,
|
|
20
21
|
loading: o,
|
|
21
|
-
titleAs:
|
|
22
|
+
titleAs: a = "h3",
|
|
22
23
|
...h
|
|
23
24
|
}) => /* @__PURE__ */ s(
|
|
24
25
|
b,
|
|
@@ -26,23 +27,23 @@ import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
|
|
|
26
27
|
as: "button",
|
|
27
28
|
icon: {
|
|
28
29
|
svgElement: c,
|
|
29
|
-
iconUrl:
|
|
30
|
+
iconUrl: r,
|
|
30
31
|
theme: "subtle",
|
|
31
|
-
color:
|
|
32
|
+
color: p,
|
|
32
33
|
altText: ""
|
|
33
34
|
},
|
|
34
|
-
title: { children: t, as:
|
|
35
|
+
title: { children: t, as: a },
|
|
35
36
|
ariaLabel: t,
|
|
36
|
-
size:
|
|
37
|
+
size: i,
|
|
37
38
|
collapsible: !o,
|
|
38
39
|
expanded: e,
|
|
39
|
-
onClick:
|
|
40
|
+
onClick: n,
|
|
40
41
|
badge: l,
|
|
41
42
|
loading: o,
|
|
42
43
|
...h,
|
|
43
|
-
children: e && /* @__PURE__ */ s("div", { className: d.content, children:
|
|
44
|
+
children: e && /* @__PURE__ */ s("div", { className: d.content, children: m })
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
y as AccessAreaListItem
|
|
48
49
|
};
|