@altinn/altinn-components 0.52.7 → 0.53.1
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/assets/AccountSelector.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/ButtonGroupDivider.css +1 -1
- package/dist/assets/ButtonLabel.css +1 -1
- package/dist/assets/DatepickerTable.css +1 -1
- package/dist/assets/IconButton.css +1 -0
- package/dist/assets/LocaleButton.css +1 -1
- package/dist/assets/ModalBody.css +1 -1
- package/dist/assets/ModalHeader.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/button-BB5sYVKY.js +38 -0
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +7 -6
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +3 -2
- package/dist/components/Account/AccountList.js +3 -2
- package/dist/components/Account/AccountListItem.js +6 -5
- package/dist/components/Account/AccountListItemControls.js +16 -16
- package/dist/components/Account/AccountListItemDetails.js +2 -2
- package/dist/components/Account/AccountListVirtual.js +9 -8
- package/dist/components/Account/AccountMenu.js +7 -6
- package/dist/components/Account/AccountMenuButton.js +30 -30
- package/dist/components/Account/AccountNotificationSettings.js +9 -8
- package/dist/components/Account/AccountOrganization.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 +3 -2
- package/dist/components/Attachment/AttachmentLink.js +24 -23
- package/dist/components/Banner/Banner.js +10 -19
- package/dist/components/Button/Button.js +22 -58
- package/dist/components/Button/ButtonGroup.js +11 -21
- package/dist/components/Button/ButtonGroupDivider.js +5 -4
- package/dist/components/Button/ButtonIcon.js +5 -4
- package/dist/components/Button/ButtonLabel.js +2 -2
- package/dist/components/Button/ComboButton.js +11 -68
- package/dist/components/Button/FloatingActionButton.js +13 -18
- package/dist/components/Button/IconButton.js +6 -33
- package/dist/components/Button/index.js +16 -16
- package/dist/components/Byline/Byline.js +7 -6
- package/dist/components/ContextMenu/ContextMenu.js +35 -35
- package/dist/components/Dashboard/DashboardCard.js +3 -2
- package/dist/components/Dashboard/DashboardHeader.js +10 -9
- package/dist/components/Dashboard/DashboardIcon.js +3 -2
- package/dist/components/Datepicker/DatepickerHeader.js +22 -22
- package/dist/components/Datepicker/DatepickerTable.js +14 -14
- package/dist/components/Dialog/Dialog.js +3 -2
- package/dist/components/Dialog/DialogActions.js +36 -44
- 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 +3 -2
- package/dist/components/Dialog/DialogContact.js +3 -2
- package/dist/components/Dialog/DialogHeader.js +7 -6
- package/dist/components/Dialog/DialogHistoryItem.js +3 -2
- package/dist/components/Dialog/DialogHistorySegment.js +3 -2
- package/dist/components/Dialog/DialogLayout.js +3 -2
- package/dist/components/Dialog/DialogList.js +5 -4
- package/dist/components/Dialog/DialogListGroup.js +3 -2
- package/dist/components/Dialog/DialogListItem.js +3 -2
- package/dist/components/Dialog/DialogMetadata.js +3 -2
- package/dist/components/Dialog/DialogSection.js +3 -2
- package/dist/components/Dialog/DialogSeenBy.js +3 -2
- package/dist/components/Dialog/DialogSelect.js +5 -4
- package/dist/components/Dialog/DialogStatus.js +3 -2
- package/dist/components/Dialog/DialogTabs.js +3 -2
- package/dist/components/Dialog/SeenByLog.js +9 -8
- package/dist/components/Dialog/SeenByLogButton.js +3 -2
- package/dist/components/Dialog/SeenByLogItem.js +11 -10
- package/dist/components/Dropdown/DrawerButton.js +3 -3
- package/dist/components/Dropdown/DrawerHeader.js +8 -18
- package/dist/components/Dropdown/DrawerOrDropdown.js +7 -6
- package/dist/components/Dropdown/DropdownBase.js +7 -6
- package/dist/components/Dropdown/FloatingDropdown.js +36 -36
- package/dist/components/DsComponents/index.js +21 -22
- 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 +3 -2
- package/dist/components/Forms/Radio.js +3 -2
- package/dist/components/Forms/RadioOptions.js +3 -2
- package/dist/components/Forms/SearchField.js +22 -23
- package/dist/components/Forms/SelectField.js +4 -3
- 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/TextareaField.js +3 -2
- package/dist/components/GlobalHeader/AccountSelector.js +114 -94
- package/dist/components/GlobalHeader/GlobalHeader.js +3 -2
- package/dist/components/GlobalHeader/GlobalHeaderBase.js +6 -5
- package/dist/components/GlobalHeader/GlobalSearch.js +7 -6
- package/dist/components/GlobalHeader/GlobalSearchButton.js +8 -7
- package/dist/components/GlobalHeader/HeaderLogo.js +13 -16
- package/dist/components/GlobalMenu/BackButton.js +3 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +9 -8
- package/dist/components/GlobalMenu/GlobalMenuButton.js +2 -2
- package/dist/components/GlobalMenu/LocaleButton.js +3 -2
- package/dist/components/GlobalMenu/LocaleSwitcher.js +3 -2
- package/dist/components/GlobalMenu/LogoutButton.js +6 -8
- package/dist/components/GlobalMenu_old/BackButton.js +3 -2
- package/dist/components/GlobalMenu_old/CurrentAccount.js +5 -4
- package/dist/components/GlobalMenu_old/GlobalMenu.js +11 -10
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +23 -23
- package/dist/components/GlobalMenu_old/LogoutButton.js +6 -8
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/HeaderBase.js +5 -4
- package/dist/components/Header/HeaderButton.js +22 -22
- package/dist/components/Header/HeaderLogo.js +13 -17
- package/dist/components/Header/LocaleButton.js +17 -17
- package/dist/components/Header/LocaleSwitcher.js +8 -7
- package/dist/components/Icon/Icon.js +12 -11
- package/dist/components/Icon/IconOrAvatar.js +15 -14
- package/dist/components/InboxSearch/InboxSearch.js +11 -10
- package/dist/components/Layout/Layout.js +11 -10
- package/dist/components/LayoutAction/ActionHeader.js +18 -18
- package/dist/components/LayoutAction/LayoutAction.js +3 -2
- package/dist/components/List/List.js +3 -2
- package/dist/components/List/ListBase.js +3 -2
- package/dist/components/List/ListItemHeader.js +5 -4
- package/dist/components/List/ListItemIcon.js +3 -2
- package/dist/components/List/ListItemLabel.js +16 -15
- package/dist/components/List/ListItemSelect.js +4 -3
- package/dist/components/Menu/MenuItem.js +15 -14
- package/dist/components/Menu/MenuItemBase.js +5 -5
- package/dist/components/Menu/MenuItemIcon.js +6 -5
- package/dist/components/Menu/MenuItemLabel.js +13 -12
- package/dist/components/Menu/MenuItems.js +1 -0
- package/dist/components/Menu/MenuItemsVirtual.js +26 -25
- package/dist/components/Menu/MenuOption.js +17 -16
- package/dist/components/Menu/MenuSearch.js +3 -2
- package/dist/components/Metadata/MetaItem.js +7 -6
- package/dist/components/Metadata/MetaItemIcon.js +3 -2
- package/dist/components/Metadata/MetaProgress.js +3 -2
- package/dist/components/Metadata/MetaTimestamp.js +7 -6
- package/dist/components/Metadata/Metadata.js +8 -7
- package/dist/components/Modal/Modal.js +13 -13
- package/dist/components/Modal/ModalBase.js +7 -6
- package/dist/components/Modal/ModalBody.js +5 -10
- package/dist/components/Modal/ModalFooter.js +3 -2
- package/dist/components/Modal/ModalHeader.js +26 -36
- package/dist/components/Modal/ModalIcon.js +7 -6
- package/dist/components/Notifications/NotificationItem.js +6 -5
- package/dist/components/Notifications/NotificationItemBase.js +10 -9
- package/dist/components/Notifications/NotificationItemControls.js +14 -24
- package/dist/components/Notifications/NotificationItemIcon.js +8 -7
- package/dist/components/Page/AccordionSection.js +3 -2
- package/dist/components/Page/Breadcrumbs.js +7 -6
- package/dist/components/Page/ContactButtons.js +11 -6
- package/dist/components/Page/ContactSection.js +3 -2
- package/dist/components/Page/PageMenu.js +6 -5
- package/dist/components/Page/PageNav.js +11 -8
- package/dist/components/Page/PageTabs.js +6 -5
- package/dist/components/Page/Section.js +27 -7
- package/dist/components/ResourceListItem/ResourceListItem.js +3 -2
- package/dist/components/RootProvider/RootProvider.js +9 -8
- package/dist/components/Search/SearchItem.js +5 -4
- package/dist/components/Searchbar/Autocomplete.js +3 -2
- package/dist/components/Searchbar/AutocompleteItem.js +11 -10
- package/dist/components/Searchbar/Searchbar.js +10 -9
- package/dist/components/Searchbar/SearchbarField.js +54 -53
- package/dist/components/Settings/BookmarksSettingsList.js +7 -6
- package/dist/components/Settings/SettingsItem.js +3 -2
- package/dist/components/Settings/SettingsItemBase.js +7 -6
- package/dist/components/Settings/SettingsList.js +7 -6
- package/dist/components/Settings/SettingsModal.js +33 -26
- package/dist/components/Settings/SettingsSection.js +3 -2
- package/dist/components/Settings/UsedByLog.js +8 -7
- package/dist/components/Settings/UsedByLogItem.js +10 -9
- package/dist/components/Snackbar/SnackbarItem.js +13 -22
- package/dist/components/Timeline/Timeline.js +3 -2
- package/dist/components/Timeline/TimelineActivity.js +3 -2
- package/dist/components/Timeline/TimelineBase.js +10 -9
- package/dist/components/Timeline/TimelineFooter.js +6 -5
- package/dist/components/Timeline/TimelineHeader.js +3 -2
- package/dist/components/Timeline/TimelineIcon.js +6 -5
- package/dist/components/Timeline/TimelineSection.js +3 -2
- package/dist/components/Timeline/TimelineSegment.js +6 -5
- package/dist/components/Timeline/index.js +2 -4
- package/dist/components/Toolbar/ToolbarAccountMenu.js +18 -17
- package/dist/components/Toolbar/ToolbarAdd.js +5 -4
- package/dist/components/Toolbar/ToolbarButton.js +94 -88
- package/dist/components/Toolbar/ToolbarDaterange.js +3 -2
- package/dist/components/Toolbar/ToolbarFilter.js +24 -23
- package/dist/components/Toolbar/ToolbarFilterBase.js +8 -8
- package/dist/components/Toolbar/ToolbarMenu.js +3 -2
- package/dist/components/Toolbar/ToolbarOptions.js +3 -2
- package/dist/components/Toolbar/ToolbarSearch.js +7 -6
- package/dist/components/Transmission/Transmission.js +8 -7
- package/dist/components/Transmission/TransmissionList.js +8 -7
- package/dist/components/Transmission/TransmissionType.js +3 -2
- package/dist/components/Typography/Heading.js +3 -2
- package/dist/components/UserListItem/UserListItem.js +12 -11
- package/dist/components/index.js +192 -195
- package/dist/hooks/useAccountSelector.js +130 -108
- package/dist/{index-Dg71_7ad.js → index-DttADHE1.js} +1 -1
- package/dist/index.js +204 -207
- package/dist/switch-Cemfhx0H.js +18 -0
- package/dist/{textfield-B_OMMEbF.js → textfield-DAuYWtUj.js} +100 -104
- package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +5 -1
- package/dist/types/lib/components/Button/Button.d.ts +21 -10
- package/dist/types/lib/components/Button/Button.stories.d.ts +13 -10
- package/dist/types/lib/components/Button/ButtonGroup.d.ts +6 -6
- package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +3 -1
- package/dist/types/lib/components/Button/ButtonGroupDivider.d.ts +5 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +2 -1
- package/dist/types/lib/components/Button/ButtonLabel.d.ts +1 -1
- package/dist/types/lib/components/Button/ComboButton.d.ts +6 -15
- package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -3
- package/dist/types/lib/components/Button/FloatingActionButton.d.ts +5 -12
- package/dist/types/lib/components/Button/IconButton.d.ts +4 -17
- package/dist/types/lib/components/Button/index.d.ts +4 -4
- package/dist/types/lib/components/Datepicker/Datepicker.stories.d.ts +6 -0
- package/dist/types/lib/components/Dialog/DialogActions.d.ts +1 -0
- package/dist/types/lib/components/Dropdown/FloatingDropdown.d.ts +2 -2
- package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +5 -1
- package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +1 -2
- package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -2
- package/dist/types/lib/components/Header/HeaderLogo.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
- package/dist/types/lib/components/Modal/ModalBody.d.ts +2 -3
- package/dist/types/lib/components/Page/ContactButtons.d.ts +1 -0
- package/dist/types/lib/components/Page/Section.d.ts +1 -1
- package/dist/types/lib/components/Settings/SettingsModal.d.ts +1 -0
- package/dist/types/lib/components/Settings/VerifySettingsModal.stories.d.ts +14 -0
- package/dist/types/lib/components/Timeline/index.d.ts +0 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +2 -2
- package/dist/types/lib/hooks/useAccountSelector.d.ts +5 -1
- package/package.json +2 -2
- package/dist/assets/ButtonBase.css +0 -1
- package/dist/assets/ComboButton.css +0 -1
- package/dist/assets/TimelineLink.css +0 -1
- package/dist/button-MzZgmHyA.js +0 -23
- package/dist/components/Button/ButtonBase.js +0 -41
- package/dist/components/Timeline/TimelineLink.js +0 -36
- package/dist/heading-C_XYsUfi.js +0 -12
- package/dist/spinner-0Qe_jRGB.js +0 -23
- package/dist/types/lib/components/Button/ButtonBase.d.ts +0 -26
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -7
- package/dist/types/lib/components/Timeline/TimelineLink.d.ts +0 -9
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c
|
|
3
|
-
import { Badge as
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
text: d
|
|
13
|
-
}, j = ({ className: s, as: r = "a", title: e = "Altinn", href: l = "/", badge: m }) => /* @__PURE__ */ i(n, { as: r, className: a(t.logo, s), href: l, children: [
|
|
14
|
-
/* @__PURE__ */ o(p, { className: t.symbol }),
|
|
15
|
-
/* @__PURE__ */ o("span", { className: t.text, children: e }),
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { Badge as i } from "../Badge/Badge.js";
|
|
4
|
+
import { DigdirLogomark as _ } from "./DigdirLogomark.js";
|
|
5
|
+
import '../../assets/HeaderLogo.css';const g = "_logo_mt7vd_1", p = "_symbol_mt7vd_8", x = "_text_mt7vd_26", t = {
|
|
6
|
+
logo: g,
|
|
7
|
+
symbol: p,
|
|
8
|
+
text: x
|
|
9
|
+
}, h = ({ className: m, as: n = "a", title: r = "Altinn", href: e = "/", onClick: l, badge: s }) => /* @__PURE__ */ a(n, { variant: "ghost", className: c(t.logo, m), href: e, onClick: l, children: [
|
|
10
|
+
/* @__PURE__ */ o(_, { className: t.symbol }),
|
|
11
|
+
/* @__PURE__ */ o("span", { className: t.text, children: r }),
|
|
16
12
|
" ",
|
|
17
|
-
|
|
13
|
+
s && /* @__PURE__ */ o(i, { ...s })
|
|
18
14
|
] });
|
|
19
15
|
export {
|
|
20
|
-
|
|
16
|
+
h as HeaderLogo
|
|
21
17
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import "../../index-p1eeF8LQ.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { c as s } from "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { Button as m } from "../Button/Button.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { S as
|
|
9
|
-
import '../../assets/LocaleButton.css';const
|
|
10
|
-
button:
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { S as i } from "../../Globe-BcPkcH4E.js";
|
|
9
|
+
import '../../assets/LocaleButton.css';const p = "_button_mvy87_1", c = "_expanded_mvy87_13", o = {
|
|
10
|
+
button: p,
|
|
11
|
+
expanded: c
|
|
12
|
+
}, f = ({ id: e = "language-switcher", expanded: n, onClick: r, onBlurCapture: a }) => /* @__PURE__ */ t(
|
|
13
|
+
m,
|
|
13
14
|
{
|
|
14
|
-
className:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onBlurCapture: n
|
|
15
|
+
className: s(o.button, n && o.expanded),
|
|
16
|
+
rounded: !0,
|
|
17
|
+
size: "lg",
|
|
18
|
+
variant: "ghost",
|
|
19
|
+
onClick: r,
|
|
20
|
+
"aria-label": `Open ${e}`,
|
|
21
|
+
onBlurCapture: a,
|
|
22
|
+
children: /* @__PURE__ */ t(i, {})
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
export {
|
|
@@ -6,13 +6,14 @@ import { useIsDesktop as b } from "../../hooks/useIsDesktop.js";
|
|
|
6
6
|
import { DropdownBase as x } from "../Dropdown/DropdownBase.js";
|
|
7
7
|
import "../../index-p1eeF8LQ.js";
|
|
8
8
|
import { DrawerBase as I } from "../Dropdown/DrawerBase.js";
|
|
9
|
+
import "../Button/Button.js";
|
|
9
10
|
import { useRootContext as S } from "../RootProvider/RootProvider.js";
|
|
10
11
|
import { MenuItems as p } from "../Menu/MenuItems.js";
|
|
11
12
|
import { LocaleButton as w } from "./LocaleButton.js";
|
|
12
13
|
import "../Snackbar/useSnackbar.js";
|
|
13
14
|
import { S as C } from "../../Checkmark-Byz_C9x4.js";
|
|
14
|
-
const
|
|
15
|
-
const
|
|
15
|
+
const z = ({ title: m = "Select language", options: s, onSelect: a }) => {
|
|
16
|
+
const i = k(null), c = b(), { currentId: d, toggleId: g, closeAll: n } = S(), o = d === "locale", l = h(() => s.map((e) => ({
|
|
16
17
|
...e,
|
|
17
18
|
id: String(e.value),
|
|
18
19
|
tabIndex: -1,
|
|
@@ -27,17 +28,17 @@ const W = ({ title: m = "Select language", options: s, onSelect: a }) => {
|
|
|
27
28
|
return v((e) => {
|
|
28
29
|
if (o) {
|
|
29
30
|
e.preventDefault();
|
|
30
|
-
const t =
|
|
31
|
+
const t = i.current?.querySelector('[data-active="true"]');
|
|
31
32
|
t && (t.tagName === "A" && t.hasAttribute("href") ? t.click() : t.dispatchEvent(new MouseEvent("click", { bubbles: !0 }))), n();
|
|
32
33
|
}
|
|
33
|
-
}), /* @__PURE__ */ f("div", { ref:
|
|
34
|
+
}), /* @__PURE__ */ f("div", { ref: i, "data-testid": "locale-switcher", children: [
|
|
34
35
|
/* @__PURE__ */ r(w, { onClick: () => g("locale"), expanded: o, onBlurCapture: (e) => {
|
|
35
36
|
e?.relatedTarget?.closest('[data-testid="locale-switcher"]') || n();
|
|
36
37
|
} }),
|
|
37
|
-
o &&
|
|
38
|
-
o && !
|
|
38
|
+
o && c && /* @__PURE__ */ r(x, { layout: "desktop", padding: !0, placement: "right", open: !0, children: /* @__PURE__ */ r(p, { groups: u, items: l, keyboardEvents: !0 }) }),
|
|
39
|
+
o && !c && /* @__PURE__ */ r(I, { open: !0, placement: "bottom", children: /* @__PURE__ */ r(p, { groups: u, items: l, keyboardEvents: !0 }) })
|
|
39
40
|
] });
|
|
40
41
|
};
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
+
z as LocaleSwitcher
|
|
43
44
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { c
|
|
2
|
+
import { c } from "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Skeleton as h } from "../Skeleton/Skeleton.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import '../../assets/Icon.css';const _ = "_icon_1y3dz_1", g = "_shape_1y3dz_9", v = "_svg_1y3dz_14", N = "_image_1y3dz_15", a = {
|
|
@@ -9,24 +10,24 @@ import '../../assets/Icon.css';const _ = "_icon_1y3dz_1", g = "_shape_1y3dz_9",
|
|
|
9
10
|
shape: g,
|
|
10
11
|
svg: v,
|
|
11
12
|
image: N
|
|
12
|
-
},
|
|
13
|
+
}, I = (s) => typeof s == "object" && s !== null && ("svgElement" in s || "iconUrl" in s), k = ({
|
|
13
14
|
loading: s,
|
|
14
|
-
altText:
|
|
15
|
+
altText: n,
|
|
15
16
|
svgElement: r,
|
|
16
17
|
size: i,
|
|
17
18
|
color: o,
|
|
18
19
|
theme: m,
|
|
19
20
|
iconUrl: p,
|
|
20
|
-
className:
|
|
21
|
+
className: t,
|
|
21
22
|
style: l
|
|
22
|
-
}) => r ? /* @__PURE__ */ e("span", { "data-size": i, "data-color": o, "data-theme": m, className:
|
|
23
|
+
}) => r ? /* @__PURE__ */ e("span", { "data-size": i, "data-color": o, "data-theme": m, className: c(a.icon, t), style: l, children: /* @__PURE__ */ d(h, { loading: s, variant: "circle", className: a.shape, children: [
|
|
23
24
|
/* @__PURE__ */ e("span", { className: a.shape }),
|
|
24
|
-
/* @__PURE__ */ e(r, { "aria-hidden": "true", "alt-label":
|
|
25
|
-
] }) }) : p ? /* @__PURE__ */ e("span", { "data-size": i, "data-color": o, "data-theme": m, className:
|
|
25
|
+
/* @__PURE__ */ e(r, { "aria-hidden": "true", "alt-label": n, className: a.svg })
|
|
26
|
+
] }) }) : p ? /* @__PURE__ */ e("span", { "data-size": i, "data-color": o, "data-theme": m, className: c(a.icon, t), style: l, children: /* @__PURE__ */ d(h, { loading: s, variant: "circle", className: a.shape, children: [
|
|
26
27
|
/* @__PURE__ */ e("span", { className: a.shape }),
|
|
27
|
-
/* @__PURE__ */ e("img", { src: p, alt:
|
|
28
|
-
] }) }) : /* @__PURE__ */ e("span", { className:
|
|
28
|
+
/* @__PURE__ */ e("img", { src: p, alt: n, className: a.image })
|
|
29
|
+
] }) }) : /* @__PURE__ */ e("span", { className: c(a.icon, t) });
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
k as Icon,
|
|
32
|
+
I as isIconProps
|
|
32
33
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isValidElement as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement as p } from "react";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Avatar as
|
|
4
|
+
import { Icon as n } from "./Icon.js";
|
|
5
|
+
import { Avatar as f } from "../Avatar/Avatar.js";
|
|
6
6
|
import { AvatarGroup as c } from "../Avatar/AvatarGroup.js";
|
|
7
|
+
import "../Button/Button.js";
|
|
7
8
|
import "../RootProvider/RootProvider.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
10
|
import { S as l } from "../../XMark-tKk6aExO.js";
|
|
10
|
-
import '../../assets/IconOrAvatar.css';const u = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6",
|
|
11
|
+
import '../../assets/IconOrAvatar.css';const u = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6", e = {
|
|
11
12
|
icon: u,
|
|
12
13
|
avatar: _,
|
|
13
14
|
avatarGroup: v
|
|
14
15
|
};
|
|
15
16
|
function g(r) {
|
|
16
|
-
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null ||
|
|
17
|
+
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || p(r);
|
|
17
18
|
}
|
|
18
|
-
const N = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0,
|
|
19
|
-
if (!t && !s && !
|
|
19
|
+
const N = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, S = ({ loading: r, size: i, icon: t, iconTheme: a, avatar: s, avatarGroup: m }) => {
|
|
20
|
+
if (!t && !s && !m)
|
|
20
21
|
return null;
|
|
21
22
|
if (r)
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ o(n, { className: e.icon, svgElement: l, loading: !0 });
|
|
23
24
|
if (t)
|
|
24
|
-
return N(t) ? /* @__PURE__ */
|
|
25
|
+
return N(t) ? /* @__PURE__ */ o(n, { className: e.icon, theme: t.theme || a, ...t }) : g(t) ? t : /* @__PURE__ */ o(n, { className: e.icon, svgElement: t, theme: a });
|
|
25
26
|
if (s)
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
if (
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ o(f, { ...s, size: s.size || i, className: e.avatar });
|
|
28
|
+
if (m)
|
|
29
|
+
return /* @__PURE__ */ o(c, { ...m, className: e.avatarGroup });
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
S as IconOrAvatar
|
|
32
33
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
1
|
+
import { jsxs as i, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import "../Button/Button.js";
|
|
5
|
+
import { useRootContext as s } from "../RootProvider/RootProvider.js";
|
|
6
|
+
import { Searchbar as p } from "../Searchbar/Searchbar.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { Backdrop as
|
|
8
|
-
const
|
|
9
|
-
const { currentId: o, toggleId: t, openId: c } =
|
|
8
|
+
import { Backdrop as x } from "../Dropdown/Backdrop.js";
|
|
9
|
+
const C = ({ search: n }) => {
|
|
10
|
+
const { currentId: o, toggleId: t, openId: c } = s(), a = () => {
|
|
10
11
|
c("inboxSearch");
|
|
11
12
|
}, r = () => {
|
|
12
13
|
t("inboxSearch");
|
|
13
14
|
};
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
15
|
-
o === "inboxSearch" && /* @__PURE__ */ e(
|
|
15
|
+
return /* @__PURE__ */ i(m, { children: [
|
|
16
|
+
o === "inboxSearch" && /* @__PURE__ */ e(x, { onClick: r }),
|
|
16
17
|
/* @__PURE__ */ e(
|
|
17
|
-
|
|
18
|
+
p,
|
|
18
19
|
{
|
|
19
20
|
...n,
|
|
20
21
|
expanded: o === "inboxSearch",
|
|
@@ -26,5 +27,5 @@ const f = ({ search: n }) => {
|
|
|
26
27
|
] });
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
C as InboxSearch
|
|
30
31
|
};
|
|
@@ -8,28 +8,29 @@ import { Footer as d } from "../Footer/Footer.js";
|
|
|
8
8
|
import { GlobalHeader as a } from "../GlobalHeader/GlobalHeader.js";
|
|
9
9
|
import "../../index-p1eeF8LQ.js";
|
|
10
10
|
import "react";
|
|
11
|
+
import "../Button/Button.js";
|
|
11
12
|
import { useRootContext as S } from "../RootProvider/RootProvider.js";
|
|
12
13
|
import { Menu as j } from "../Menu/Menu.js";
|
|
13
14
|
import { Header as B } from "../Header/Header.js";
|
|
14
15
|
import "../Snackbar/useSnackbar.js";
|
|
15
16
|
import { InboxSearch as C } from "../InboxSearch/InboxSearch.js";
|
|
16
17
|
import { SkipLink as F } from "../SkipLink/SkipLink.js";
|
|
17
|
-
const
|
|
18
|
+
const O = ({
|
|
18
19
|
color: f,
|
|
19
20
|
theme: u = "subtle",
|
|
20
21
|
header: t,
|
|
21
|
-
footer:
|
|
22
|
+
footer: c,
|
|
22
23
|
sidebar: o,
|
|
23
24
|
content: l = {},
|
|
24
25
|
children: h,
|
|
25
|
-
skipLink:
|
|
26
|
+
skipLink: p,
|
|
26
27
|
useGlobalHeader: n = !1
|
|
27
28
|
}) => {
|
|
28
|
-
const { currentId:
|
|
29
|
-
return /* @__PURE__ */ m(s, { color: f, theme:
|
|
30
|
-
|
|
29
|
+
const { currentId: i } = S(), e = t && "search" in t ? t.search : void 0;
|
|
30
|
+
return /* @__PURE__ */ m(s, { color: f, theme: i === "accountFullscreen" ? "default" : u, currentId: i, children: [
|
|
31
|
+
p && /* @__PURE__ */ r(F, { ...p }),
|
|
31
32
|
t && (n ? /* @__PURE__ */ r(a, { ...t }) : /* @__PURE__ */ r(B, { ...t })),
|
|
32
|
-
/* @__PURE__ */ m(y, { currentId:
|
|
33
|
+
/* @__PURE__ */ m(y, { currentId: i, children: [
|
|
33
34
|
o && /* @__PURE__ */ m(
|
|
34
35
|
L,
|
|
35
36
|
{
|
|
@@ -44,13 +45,13 @@ const N = ({
|
|
|
44
45
|
}
|
|
45
46
|
),
|
|
46
47
|
/* @__PURE__ */ m(x, { color: l?.color, id: "main-content", children: [
|
|
47
|
-
n &&
|
|
48
|
+
n && e && /* @__PURE__ */ r(C, { search: e }),
|
|
48
49
|
h
|
|
49
50
|
] })
|
|
50
51
|
] }),
|
|
51
|
-
|
|
52
|
+
c && /* @__PURE__ */ r(d, { ...c })
|
|
52
53
|
] });
|
|
53
54
|
};
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
O as Layout
|
|
56
57
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Heading as
|
|
5
|
-
import {
|
|
4
|
+
import { Heading as n } from "../Typography/Heading.js";
|
|
5
|
+
import { Button as c } from "../Button/Button.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import { S as h } from "../../XMark-tKk6aExO.js";
|
|
9
|
-
import '../../assets/ActionHeader.css';const
|
|
10
|
-
header:
|
|
11
|
-
title:
|
|
12
|
-
dismiss:
|
|
13
|
-
},
|
|
14
|
-
color:
|
|
9
|
+
import '../../assets/ActionHeader.css';const f = "_header_f05a9_1", p = "_title_f05a9_38", _ = "_dismiss_f05a9_44", t = {
|
|
10
|
+
header: f,
|
|
11
|
+
title: p,
|
|
12
|
+
dismiss: _
|
|
13
|
+
}, y = ({
|
|
14
|
+
color: s,
|
|
15
15
|
theme: i,
|
|
16
16
|
hidden: a = !1,
|
|
17
17
|
title: r,
|
|
18
18
|
dismissable: o = !0,
|
|
19
19
|
dismissIconAltText: m = "Close",
|
|
20
20
|
onDismiss: d
|
|
21
|
-
}) => /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ e(
|
|
21
|
+
}) => /* @__PURE__ */ l("header", { className: t.header, "aria-hidden": a, "data-color": s, "data-theme": i, children: [
|
|
22
|
+
/* @__PURE__ */ e(n, { size: "sm", className: t.title, children: r }),
|
|
23
23
|
o && /* @__PURE__ */ e(
|
|
24
|
-
|
|
24
|
+
c,
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
variant: "solid",
|
|
26
|
+
color: s,
|
|
27
|
+
variant: "outline",
|
|
29
28
|
onClick: d,
|
|
30
|
-
className:
|
|
31
|
-
|
|
29
|
+
className: t.dismiss,
|
|
30
|
+
"aria-label": m,
|
|
31
|
+
children: /* @__PURE__ */ e(h, { style: { fontSize: "1.5em" } })
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] });
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
y as ActionHeader
|
|
37
37
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { LayoutBase as s } from "../Layout/LayoutBase.js";
|
|
6
7
|
import { ActionHeader as f } from "./ActionHeader.js";
|
|
7
8
|
import { ActionFooter as u } from "./ActionFooter.js";
|
|
8
9
|
import "../Snackbar/useSnackbar.js";
|
|
9
10
|
import { PageMenu as x } from "../Page/PageMenu.js";
|
|
10
|
-
const
|
|
11
|
+
const H = ({
|
|
11
12
|
color: r = "company",
|
|
12
13
|
theme: t = "base",
|
|
13
14
|
hidden: i,
|
|
@@ -32,5 +33,5 @@ const F = ({
|
|
|
32
33
|
/* @__PURE__ */ o(u, { hidden: i, children: m && /* @__PURE__ */ o(x, { ...m, theme: t, color: r }) })
|
|
33
34
|
] });
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
H as LayoutAction
|
|
36
37
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as c } from "react";
|
|
3
3
|
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { ListItem as n } from "./ListItem.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import { Flex as a } from "../Page/Flex.js";
|
|
8
9
|
import '../../assets/List.css';const f = "_list_14rag_1", x = {
|
|
9
10
|
list: f
|
|
10
|
-
},
|
|
11
|
+
}, k = ({ children: r, className: o, spacing: i, items: m = [], ...s }) => /* @__PURE__ */ l(a, { direction: "col", as: "ul", spacing: i, className: p(x.list, o), ...s, children: r || m.map((t, e) => /* @__PURE__ */ c(n, { ...t, key: `item-${t.id ?? e}` })) });
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
k as List
|
|
13
14
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import "../Snackbar/useSnackbar.js";
|
|
6
7
|
import { Flex as p } from "../Page/Flex.js";
|
|
7
|
-
const
|
|
8
|
+
const u = ({ size: o, spacing: r = 2, children: t, ...i }) => /* @__PURE__ */ m(p, { direction: "col", spacing: r, size: o, as: "ul", ...i, children: t });
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
u as List
|
|
10
11
|
};
|
|
@@ -3,6 +3,7 @@ import { c as w } from "../../index-p1eeF8LQ.js";
|
|
|
3
3
|
import { useId as z, isValidElement as A } from "react";
|
|
4
4
|
import { Badge as D } from "../Badge/Badge.js";
|
|
5
5
|
import { Icon as H } from "../Icon/Icon.js";
|
|
6
|
+
import "../Button/Button.js";
|
|
6
7
|
import "../RootProvider/RootProvider.js";
|
|
7
8
|
import { ListItemLink as R } from "./ListItemLink.js";
|
|
8
9
|
import { ListItemLabel as U } from "./ListItemLabel.js";
|
|
@@ -41,13 +42,13 @@ import '../../assets/ListItemHeader.css';const O = "_header_29hv7_1", P = "_labe
|
|
|
41
42
|
icon: y,
|
|
42
43
|
active: d,
|
|
43
44
|
badge: e,
|
|
44
|
-
controls:
|
|
45
|
+
controls: p,
|
|
45
46
|
className: F,
|
|
46
47
|
children: j,
|
|
47
|
-
ariaLabel:
|
|
48
|
+
ariaLabel: _,
|
|
48
49
|
ariaControlsId: x
|
|
49
50
|
}) => {
|
|
50
|
-
const v = c ? l ? J : K : u ? M : void 0, g = () => e && !s && typeof e == "object" && "label" in e ? /* @__PURE__ */ t(D, { ...e, className: o.badge }) : A(e) ? e : null, B =
|
|
51
|
+
const v = c ? l ? J : K : u ? M : void 0, g = () => e && !s && typeof e == "object" && "label" in e ? /* @__PURE__ */ t(D, { ...e, className: o.badge }) : A(e) ? e : null, B = _ !== void 0 ? _ : typeof n == "string" ? n : void 0, E = z();
|
|
51
52
|
return /* @__PURE__ */ i(
|
|
52
53
|
"div",
|
|
53
54
|
{
|
|
@@ -95,7 +96,7 @@ import '../../assets/ListItemHeader.css';const O = "_header_29hv7_1", P = "_labe
|
|
|
95
96
|
}
|
|
96
97
|
),
|
|
97
98
|
/* @__PURE__ */ i(q, { className: o.controls, children: [
|
|
98
|
-
|
|
99
|
+
p && !s && /* @__PURE__ */ t("span", { className: o.customControls, children: p }),
|
|
99
100
|
g(),
|
|
100
101
|
v && !r && /* @__PURE__ */ t("span", { className: o.linkIcon, children: /* @__PURE__ */ t(
|
|
101
102
|
H,
|
|
@@ -5,6 +5,7 @@ import { Icon as s, isIconProps as v } from "../Icon/Icon.js";
|
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
6
|
import { isAvatarProps as l, Avatar as f } from "../Avatar/Avatar.js";
|
|
7
7
|
import { isAvatarGroupProps as _, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
|
|
8
|
+
import "../Button/Button.js";
|
|
8
9
|
import "../RootProvider/RootProvider.js";
|
|
9
10
|
import "../Snackbar/useSnackbar.js";
|
|
10
11
|
import { S as N } from "../../XMark-tKk6aExO.js";
|
|
@@ -17,10 +18,10 @@ import '../../assets/ListItemIcon.css';const d = "_wrapper_rcjve_1", g = "_icon_
|
|
|
17
18
|
function w(a) {
|
|
18
19
|
return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || n(a);
|
|
19
20
|
}
|
|
20
|
-
const
|
|
21
|
+
const B = ({ loading: a, size: m, icon: r, theme: e, badge: p }) => r ? a ? /* @__PURE__ */ o(s, { className: t.wrapper, svgElement: N, loading: !0 }) : /* @__PURE__ */ i("div", { className: t.wrapper, "data-size": m, children: [
|
|
21
22
|
l(r) && /* @__PURE__ */ o(f, { ...r, className: t.avatar }) || _(r) && /* @__PURE__ */ o(u, { ...r, className: t.avatarGroup }) || v(r) && /* @__PURE__ */ o(s, { ...r, theme: r.theme || e, className: t.icon }) || w(r) && r || /* @__PURE__ */ o(s, { theme: e, svgElement: r, className: t.icon }),
|
|
22
23
|
p && /* @__PURE__ */ o(c, { ...p, className: t.badge })
|
|
23
24
|
] }) : null;
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
B as ListItemIcon
|
|
26
27
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as P, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { c as y } from "../../index-p1eeF8LQ.js";
|
|
3
3
|
import { isValidElement as N } from "react";
|
|
4
4
|
import { Heading as o } from "../Typography/Heading.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import "../Snackbar/useSnackbar.js";
|
|
7
8
|
import '../../assets/ListItemLabel.css';const w = "_label_1tmg6_1", j = {
|
|
@@ -30,31 +31,31 @@ const z = (r) => {
|
|
|
30
31
|
...s,
|
|
31
32
|
children: r
|
|
32
33
|
} : null;
|
|
33
|
-
},
|
|
34
|
+
}, d = ({
|
|
34
35
|
loading: r = !1,
|
|
35
36
|
highlightWords: s,
|
|
36
37
|
size: a,
|
|
37
|
-
title:
|
|
38
|
+
title: n,
|
|
38
39
|
value: p,
|
|
39
40
|
description: c,
|
|
40
41
|
children: e,
|
|
41
|
-
id:
|
|
42
|
-
className:
|
|
42
|
+
id: m,
|
|
43
|
+
className: l
|
|
43
44
|
}) => {
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (n && p) {
|
|
46
|
+
const i = n && _(n), b = p && z(p);
|
|
47
|
+
return /* @__PURE__ */ t("span", { className: y(j.label, l), id: m, "data-size": a, children: e || /* @__PURE__ */ P(x, { children: [
|
|
48
|
+
i && /* @__PURE__ */ t(o, { ...i, loading: r, highlightWords: s }),
|
|
49
|
+
b && /* @__PURE__ */ t(o, { ...b, loading: r, highlightWords: s })
|
|
49
50
|
] }) });
|
|
50
51
|
}
|
|
51
|
-
const f =
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
f && /* @__PURE__ */
|
|
54
|
-
u && /* @__PURE__ */
|
|
52
|
+
const f = n && z(n), u = c && _(c);
|
|
53
|
+
return /* @__PURE__ */ t("span", { className: y(j.label, l), id: m, "data-size": a, children: e || /* @__PURE__ */ P(x, { children: [
|
|
54
|
+
f && /* @__PURE__ */ t(o, { ...f, loading: r, highlightWords: s }),
|
|
55
|
+
u && /* @__PURE__ */ t(o, { ...u, loading: r, highlightWords: s })
|
|
55
56
|
] }) });
|
|
56
57
|
};
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
+
d as ListItemLabel,
|
|
59
60
|
H as isHeadingProps
|
|
60
61
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
6
|
import { Label as l } from "../Forms/Label.js";
|
|
6
7
|
import { Input as n } from "../Forms/Input.js";
|
|
@@ -8,10 +9,10 @@ import "../Snackbar/useSnackbar.js";
|
|
|
8
9
|
import '../../assets/ListItemSelect.css';const i = "_select_kfgnl_1", m = "_checkbox_kfgnl_19", t = {
|
|
9
10
|
select: i,
|
|
10
11
|
checkbox: m
|
|
11
|
-
},
|
|
12
|
-
/* @__PURE__ */ e(n, { type: "checkbox", ...
|
|
12
|
+
}, y = ({ className: o, ...c }) => /* @__PURE__ */ s(l, { className: r(t.select, o), children: [
|
|
13
|
+
/* @__PURE__ */ e(n, { type: "checkbox", ...c, className: t.checkbox }),
|
|
13
14
|
/* @__PURE__ */ e("span", { style: { position: "absolute", opacity: 0, pointerEvents: "none" }, children: "Select" })
|
|
14
15
|
] });
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
y as ListItemSelect
|
|
17
18
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { isValidElement as C } from "react";
|
|
3
3
|
import { Badge as N } from "../Badge/Badge.js";
|
|
4
4
|
import { Icon as d } from "../Icon/Icon.js";
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
|
+
import "../Button/Button.js";
|
|
6
7
|
import "../RootProvider/RootProvider.js";
|
|
7
8
|
import { MenuItemBase as q } from "./MenuItemBase.js";
|
|
8
9
|
import { MenuItemLabel as x } from "./MenuItemLabel.js";
|
|
@@ -13,10 +14,10 @@ import { S as D } from "../../ChevronRight-ANFWmIs1.js";
|
|
|
13
14
|
import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIcon_w98qm_59", m = {
|
|
14
15
|
controls: R,
|
|
15
16
|
linkIcon: U
|
|
16
|
-
},
|
|
17
|
-
as:
|
|
18
|
-
size:
|
|
19
|
-
color:
|
|
17
|
+
}, Y = ({
|
|
18
|
+
as: p = "a",
|
|
19
|
+
size: n = "md",
|
|
20
|
+
color: l,
|
|
20
21
|
variant: f,
|
|
21
22
|
collapsible: a,
|
|
22
23
|
expanded: c,
|
|
@@ -34,35 +35,35 @@ import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIco
|
|
|
34
35
|
ariaLabel: M,
|
|
35
36
|
...j
|
|
36
37
|
}) => {
|
|
37
|
-
const w = typeof e == "function" ? e() : e, s = a ? c ? L : b : y ? D : void 0, B = () => o && !r && typeof o == "object" && "label" in o ? /* @__PURE__ */
|
|
38
|
+
const w = typeof e == "function" ? e() : e, s = a ? c ? L : b : y ? D : void 0, B = () => o && !r && typeof o == "object" && "label" in o ? /* @__PURE__ */ t(N, { ...o, className: m.badge }) : C(o) ? o : null;
|
|
38
39
|
return /* @__PURE__ */ i(
|
|
39
40
|
q,
|
|
40
41
|
{
|
|
41
|
-
as:
|
|
42
|
-
size:
|
|
42
|
+
as: p,
|
|
43
|
+
size: n,
|
|
43
44
|
variant: f,
|
|
44
|
-
color:
|
|
45
|
+
color: l,
|
|
45
46
|
expanded: c,
|
|
46
47
|
ariaLabel: M,
|
|
47
48
|
hidden: r,
|
|
48
49
|
...j,
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ t(E, { loading: r, size: n, icon: I, theme: h, badge: u }),
|
|
52
|
+
/* @__PURE__ */ t(
|
|
52
53
|
x,
|
|
53
54
|
{
|
|
54
55
|
loading: r,
|
|
55
56
|
title: v,
|
|
56
57
|
description: S,
|
|
57
58
|
highlightWords: _,
|
|
58
|
-
size:
|
|
59
|
+
size: n,
|
|
59
60
|
children: w
|
|
60
61
|
}
|
|
61
62
|
),
|
|
62
63
|
/* @__PURE__ */ i("span", { className: m.controls, children: [
|
|
63
64
|
!r && B(),
|
|
64
65
|
!r && k,
|
|
65
|
-
s && /* @__PURE__ */
|
|
66
|
+
s && /* @__PURE__ */ t("span", { className: m.linkIcon, children: /* @__PURE__ */ t(
|
|
66
67
|
d,
|
|
67
68
|
{
|
|
68
69
|
svgElement: s,
|
|
@@ -77,5 +78,5 @@ import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIco
|
|
|
77
78
|
);
|
|
78
79
|
};
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
Y as MenuItem
|
|
81
82
|
};
|