@altinn/altinn-components 0.54.3 → 0.55.0
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/{PersonCircle-DlX_3kRO.js → ChevronUpDown-DqGsU4MC.js} +5 -5
- package/dist/Eye-BrbjRZJp.js +24 -0
- package/dist/InboxFill-vGck_zM_.js +81 -0
- package/dist/InformationSquare-D3WAxfVw.js +24 -0
- package/dist/Trash-DBcymOP9.js +81 -0
- package/dist/assets/AccountMenuButton.css +1 -1
- package/dist/assets/AccountSelector.css +1 -1
- package/dist/assets/AutocompleteBase.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/ButtonIcon.css +1 -1
- package/dist/assets/DashboardCard.css +1 -0
- package/dist/assets/DashboardHeader.css +1 -0
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/Dropdown.css +1 -0
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/ItemControls.css +1 -0
- package/dist/assets/ItemLabel.css +1 -0
- package/dist/assets/ItemMedia.css +1 -0
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/MenuListDivider.css +1 -0
- package/dist/assets/MenuListHeading.css +1 -0
- package/dist/assets/MenuListItem.css +1 -0
- package/dist/assets/MenuListSearch.css +1 -0
- package/dist/assets/MetaItemIcon.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SeenByLogButton.css +1 -0
- package/dist/assets/Switch.css +1 -0
- package/dist/assets/TabMenu.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/menuList.css +1 -0
- package/dist/components/Account/AccountList.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +4 -4
- package/dist/components/Account/AccountMenu.js +14 -11
- package/dist/components/Account/AccountMenuButton.js +58 -56
- package/dist/components/Attachment/AttachmentLink.js +47 -41
- package/dist/components/Avatar/Avatar.js +11 -12
- package/dist/components/Avatar/AvatarGroup.js +38 -28
- package/dist/components/Banner/Banner.js +20 -38
- package/dist/components/Button/ButtonGroup.js +28 -12
- package/dist/components/Button/ButtonIcon.js +15 -15
- package/dist/components/Button/FloatingActionButton.js +22 -19
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +73 -67
- package/dist/components/Dashboard/DashboardCard.js +24 -21
- package/dist/components/Dashboard/DashboardHeader.js +16 -14
- package/dist/components/Dashboard/index.js +2 -4
- package/dist/components/Datepicker/Datepicker.js +16 -14
- package/dist/components/Datepicker/DatepickerHeader.js +13 -13
- package/dist/components/Dialog/DialogActions.js +9 -9
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +113 -112
- package/dist/components/Dialog/DialogMetadata.js +83 -154
- package/dist/components/Dialog/DialogSeenBy.js +24 -41
- package/dist/components/Dialog/DialogTabs.js +4 -4
- package/dist/components/Dialog/SeenByLog.js +7 -7
- package/dist/components/Dialog/SeenByLogButton.js +12 -6
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +160 -0
- package/dist/components/Dropdown/DropdownBase.js +12 -12
- package/dist/components/Dropdown/FloatingDropdown.js +119 -74
- package/dist/components/Dropdown/index.js +18 -16
- package/dist/components/DsComponents/index.js +2 -2
- package/dist/components/Forms/SearchField.js +44 -29
- package/dist/components/Forms/Switch.js +10 -8
- package/dist/components/GlobalHeader/AccountSelector.js +55 -55
- package/dist/components/GlobalHeader/GlobalHeader.js +55 -54
- package/dist/components/GlobalHeader/GlobalSearch.js +1 -1
- package/dist/components/GlobalHeader/GlobalSearchButton.js +1 -0
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +52 -43
- package/dist/components/GlobalMenu/GlobalMenuButton.js +15 -14
- package/dist/components/GlobalMenu/LocaleSwitcher.js +30 -24
- package/dist/components/GlobalMenu_old/BackButton.js +1 -1
- package/dist/components/GlobalMenu_old/CurrentAccount.js +8 -9
- package/dist/components/GlobalMenu_old/EndUserLabel.js +29 -10
- package/dist/components/GlobalMenu_old/GlobalMenu.js +15 -8
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/LocaleSwitcher.js +10 -10
- package/dist/components/Icon/Icon.js +19 -20
- package/dist/components/Icon/ProgressIcon.js +1 -0
- package/dist/components/Icon/index.js +4 -6
- package/dist/components/Item/ItemControls.js +8 -0
- package/dist/components/Item/ItemLabel.js +34 -0
- package/dist/components/Item/ItemMedia.js +33 -0
- package/dist/components/Item/index.js +8 -0
- package/dist/components/Layout/Layout.js +4 -4
- package/dist/components/Menu/Menu.js +67 -45
- package/dist/components/Menu/MenuItem.js +192 -66
- package/dist/components/Menu/MenuItems.js +154 -71
- package/dist/components/Menu/MenuList.js +39 -0
- package/dist/components/Menu/MenuListDivider.js +8 -0
- package/dist/components/Menu/MenuListGroup.js +7 -0
- package/dist/components/Menu/MenuListHeading.js +7 -0
- package/dist/components/Menu/MenuListItem.js +34 -0
- package/dist/components/Menu/MenuListSearch.js +83 -0
- package/dist/components/Menu/MenuOption.js +4 -87
- package/dist/components/Menu/TabMenu.js +15 -0
- package/dist/components/Menu/VirtualizedMenuItems.js +227 -0
- package/dist/components/Menu/aria.js +9 -0
- package/dist/components/Menu/example.data.js +373 -0
- package/dist/components/Menu/example.hooks.js +75 -0
- package/dist/components/Menu/index.js +24 -25
- package/dist/components/Menu/types.js +1 -0
- package/dist/components/Menu/useDropdownMenuController.js +43 -0
- package/dist/components/Menu/useMenuSearch.js +146 -0
- package/dist/components/Menu/useMenuVirtualization.js +5 -0
- package/dist/components/Metadata/MetaItemIcon.js +4 -4
- package/dist/components/Notifications/NotificationItemBase.js +49 -50
- package/dist/components/Page/ContactButtons.js +13 -10
- package/dist/components/Page/PageTabs.js +4 -13
- package/dist/components/Searchbar/Autocomplete.js +34 -32
- package/dist/components/Searchbar/AutocompleteBase.js +3 -3
- package/dist/components/Searchbar/AutocompleteItem.js +29 -42
- package/dist/components/Settings/SettingsItemBase.js +25 -26
- package/dist/components/Settings/UsedByLog.js +6 -6
- package/dist/components/Toolbar/DatepickerFilter.js +87 -0
- package/dist/components/Toolbar/SelectDateFilter.js +51 -0
- package/dist/components/Toolbar/Toolbar.js +18 -104
- package/dist/components/Toolbar/ToolbarFilter.js +69 -73
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +82 -0
- package/dist/components/Toolbar/ToolbarFilterButton.js +46 -0
- package/dist/components/Toolbar/ToolbarFilterMenu.js +117 -0
- package/dist/components/Toolbar/ToolbarMenu.js +58 -21
- package/dist/components/Toolbar/ToolbarSearch.js +15 -10
- package/dist/components/Toolbar/example.data.js +388 -0
- package/dist/components/Toolbar/example.hooks.js +68 -0
- package/dist/components/Toolbar/formatDateRange.js +19 -0
- package/dist/components/Toolbar/index.js +12 -14
- package/dist/components/Toolbar/useFilter.js +63 -0
- package/dist/components/Tooltip/Tooltip.js +101 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/index.js +389 -386
- package/dist/floating-ui.dom-bEgaHJCq.js +997 -0
- package/dist/global.css +1 -1
- package/dist/hooks/useAccountSelector.js +9 -9
- package/dist/hooks/useMenu.js +48 -47
- package/dist/index--jNxJmA8.js +2000 -0
- package/dist/index.js +402 -399
- package/dist/menuList.module-DFH60CqT.js +6 -0
- package/dist/{textfield-DAuYWtUj.js → textfield-Drdr9bio.js} +40 -39
- package/dist/types/lib/components/Account/AccountList.d.ts +2 -2
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +3 -4
- package/dist/types/lib/components/Account/AccountMenu.d.ts +3 -3
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Account/AccountMenuButton.stories.d.ts +10 -2
- package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +3 -1
- package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonGroup.d.ts +3 -1
- package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/FloatingActionButton.d.ts +1 -6
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +7 -8
- package/dist/types/lib/components/Dashboard/DashboardCard.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/DashboardHeader.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/index.d.ts +0 -1
- package/dist/types/lib/components/Dialog/DialogTabs.d.ts +2 -4
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +8 -5
- package/dist/types/lib/components/Dropdown/Dropdown.d.ts +22 -0
- package/dist/types/lib/components/Dropdown/Dropdown.stories.d.ts +14 -0
- package/dist/types/lib/components/Dropdown/DropdownBase.d.ts +3 -2
- package/dist/types/lib/components/Dropdown/index.d.ts +1 -0
- package/dist/types/lib/components/Forms/SearchField.d.ts +2 -1
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/Switch.d.ts +2 -1
- package/dist/types/lib/components/Forms/Switch.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +1 -3
- package/dist/types/lib/components/GlobalMenu/LocaleSwitcher.d.ts +1 -1
- package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -4
- package/dist/types/lib/components/Header/HeaderButton.stories.d.ts +0 -1
- package/dist/types/lib/components/Icon/Icon.d.ts +3 -2
- package/dist/types/lib/components/Icon/index.d.ts +0 -1
- package/dist/types/lib/components/Item/ItemControls.d.ts +7 -0
- package/dist/types/lib/components/Item/ItemLabel.d.ts +14 -0
- package/dist/types/lib/components/Item/ItemMedia.d.ts +9 -0
- package/dist/types/lib/components/Item/index.d.ts +3 -0
- package/dist/types/lib/components/Menu/Menu.d.ts +4 -7
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +64 -4
- package/dist/types/lib/components/Menu/MenuItem.d.ts +53 -21
- package/dist/types/lib/components/Menu/MenuItems.d.ts +21 -14
- package/dist/types/lib/components/Menu/MenuList.d.ts +21 -0
- package/dist/types/lib/components/Menu/MenuListDivider.d.ts +6 -0
- package/dist/types/lib/components/Menu/MenuListGroup.d.ts +8 -0
- package/dist/types/lib/components/Menu/MenuListHeading.d.ts +8 -0
- package/dist/types/lib/components/Menu/MenuListItem.d.ts +9 -0
- package/dist/types/lib/components/Menu/MenuListSearch.d.ts +15 -0
- package/dist/types/lib/components/Menu/MenuListSearch.stories.d.ts +18 -0
- package/dist/types/lib/components/Menu/MenuOption.d.ts +5 -16
- package/dist/types/lib/components/Menu/TabMenu.d.ts +8 -0
- package/dist/types/lib/components/Menu/VirtualizedMenu.stories.d.ts +22 -0
- package/dist/types/lib/components/Menu/VirtualizedMenuItems.d.ts +2 -0
- package/dist/types/lib/components/Menu/aria.d.ts +1 -0
- package/dist/types/lib/components/Menu/example.hooks.d.ts +24 -0
- package/dist/types/lib/components/Menu/index.d.ts +10 -9
- package/dist/types/lib/components/Menu/types.d.ts +1 -0
- package/dist/types/lib/components/Menu/useDropdownMenuController.d.ts +27 -0
- package/dist/types/lib/components/Menu/useMenuSearch.d.ts +129 -0
- package/dist/types/lib/components/Menu/useMenuVirtualization.d.ts +35 -0
- package/dist/types/lib/components/Page/ContactButtons.d.ts +6 -2
- package/dist/types/lib/components/Page/PageTabs.d.ts +3 -10
- package/dist/types/lib/components/Page/PageTabs.stories.d.ts +1 -1
- package/dist/types/lib/components/Searchbar/AutocompleteItem.d.ts +3 -3
- package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/DatepickerFilter.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/SelectDateFilter.d.ts +8 -0
- package/dist/types/lib/components/Toolbar/SelectDateFilter.stories.d.ts +9 -0
- package/dist/types/lib/components/Toolbar/Toolbar.d.ts +6 -19
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +21 -19
- package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +11 -23
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +6 -13
- package/dist/types/lib/components/Toolbar/ToolbarFilterAddMenu.d.ts +8 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilterButton.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilterMenu.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/ToolbarMenu.d.ts +5 -10
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +3 -5
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +635 -1
- package/dist/types/lib/components/Toolbar/example.hooks.d.ts +41 -0
- package/dist/types/lib/components/Toolbar/formatDateRange.d.ts +10 -0
- package/dist/types/lib/components/Toolbar/index.d.ts +4 -5
- package/dist/types/lib/components/Toolbar/useFilter.d.ts +173 -0
- package/dist/types/lib/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/types/lib/components/Tooltip/Tooltip.stories.d.ts +9 -0
- package/dist/types/lib/components/Tooltip/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +2 -2
- package/dist/types/lib/components/Typography/Heading.d.ts +2 -2
- package/dist/types/lib/components/index.d.ts +2 -0
- package/dist/types/lib/hooks/useAccountSelector.d.ts +2 -2
- package/dist/types/lib/hooks/useMenu.d.ts +3 -1
- package/dist/{index-De5bF0Gf.js → useMenuVirtualization-DpvWCsyD.js} +216 -165
- package/package.json +1 -1
- package/dist/assets/ContextMenu.css +0 -1
- package/dist/assets/IconOrAvatar.css +0 -1
- package/dist/assets/MenuBase.css +0 -1
- package/dist/assets/MenuHeader.css +0 -1
- package/dist/assets/MenuInputField.css +0 -1
- package/dist/assets/MenuItemBase.css +0 -1
- package/dist/assets/MenuItemIcon.css +0 -1
- package/dist/assets/MenuItemLabel.css +0 -1
- package/dist/assets/MenuItemsVirtual.css +0 -1
- package/dist/assets/MenuOption.css +0 -1
- package/dist/assets/MenuSearch.css +0 -1
- package/dist/assets/PageTabs.css +0 -1
- package/dist/assets/ToolbarBase.css +0 -1
- package/dist/assets/ToolbarButton.css +0 -1
- package/dist/assets/ToolbarDaterange.css +0 -1
- package/dist/assets/ToolbarFilterBase.css +0 -1
- package/dist/components/Dashboard/DashboardIcon.js +0 -11
- package/dist/components/Datepicker/DatepickerBase.js +0 -8
- package/dist/components/GlobalMenu/EndUserLabel.js +0 -13
- package/dist/components/GlobalMenu/LocaleButton.js +0 -13
- package/dist/components/Icon/IconOrAvatar.js +0 -33
- package/dist/components/Menu/MenuBase.js +0 -56
- package/dist/components/Menu/MenuHeader.js +0 -8
- package/dist/components/Menu/MenuInputField.js +0 -31
- package/dist/components/Menu/MenuItemBase.js +0 -58
- package/dist/components/Menu/MenuItemIcon.js +0 -27
- package/dist/components/Menu/MenuItemLabel.js +0 -76
- package/dist/components/Menu/MenuItemsVirtual.js +0 -168
- package/dist/components/Menu/MenuSearch.js +0 -41
- package/dist/components/Toolbar/ToolbarAccountMenu.js +0 -52
- package/dist/components/Toolbar/ToolbarAdd.js +0 -24
- package/dist/components/Toolbar/ToolbarBase.js +0 -8
- package/dist/components/Toolbar/ToolbarButton.js +0 -115
- package/dist/components/Toolbar/ToolbarDaterange.js +0 -58
- package/dist/components/Toolbar/ToolbarFilterBase.js +0 -17
- package/dist/components/Toolbar/ToolbarOptions.js +0 -84
- package/dist/index-DttADHE1.js +0 -2993
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +0 -8
- package/dist/types/lib/components/Dashboard/DashboardIcon.d.ts +0 -7
- package/dist/types/lib/components/Datepicker/DatepickerBase.d.ts +0 -6
- package/dist/types/lib/components/GlobalMenu/EndUserLabel.d.ts +0 -5
- package/dist/types/lib/components/GlobalMenu/LocaleButton.d.ts +0 -3
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +0 -13
- package/dist/types/lib/components/Menu/MenuBase.d.ts +0 -42
- package/dist/types/lib/components/Menu/MenuHeader.d.ts +0 -4
- package/dist/types/lib/components/Menu/MenuInputField.d.ts +0 -12
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +0 -28
- package/dist/types/lib/components/Menu/MenuItemIcon.d.ts +0 -10
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +0 -15
- package/dist/types/lib/components/Menu/MenuItemsVirtual.d.ts +0 -2
- package/dist/types/lib/components/Menu/MenuSearch.d.ts +0 -10
- package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +0 -18
- package/dist/types/lib/components/Toolbar/ToolbarAccountMenu.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarAdd.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarAdd.stories.d.ts +0 -13
- package/dist/types/lib/components/Toolbar/ToolbarBase.d.ts +0 -5
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +0 -16
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +0 -15
- package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +0 -26
- package/dist/types/lib/components/Toolbar/ToolbarDaterange.d.ts +0 -11
- package/dist/types/lib/components/Toolbar/ToolbarDaterange.stories.d.ts +0 -15
- package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarMenu.stories.d.ts +0 -19
- package/dist/types/lib/components/Toolbar/ToolbarOptions.d.ts +0 -22
- package/dist/types/lib/components/Toolbar/ToolbarOptions.stories.d.ts +0 -12
- /package/dist/assets/{DatepickerBase.css → Datepicker.css} +0 -0
- /package/dist/types/lib/components/GlobalHeader/{AccountSector.stories.d.ts → AccountSelector.stories.d.ts} +0 -0
|
@@ -1,110 +1,112 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { Button as
|
|
2
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import { c as d } from "../../index-p1eeF8LQ.js";
|
|
4
|
+
import f, { forwardRef as v, isValidElement as h } from "react";
|
|
5
|
+
import { Avatar as p } from "../Avatar/Avatar.js";
|
|
6
|
+
import { Button as g } from "../Button/Button.js";
|
|
7
7
|
import { ButtonIcon as u } from "../Button/ButtonIcon.js";
|
|
8
8
|
import { ButtonLabel as b } from "../Button/ButtonLabel.js";
|
|
9
9
|
import { useRootContext as y } from "../RootProvider/RootProvider.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { S as I } from "../../XMark-tKk6aExO.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import '../../assets/AccountMenuButton.css';var N = function(t,
|
|
14
|
-
var
|
|
15
|
-
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) &&
|
|
12
|
+
import { u as z } from "../../useId-BVFxCjkq.js";
|
|
13
|
+
import '../../assets/AccountMenuButton.css';var N = function(t, i) {
|
|
14
|
+
var o = {};
|
|
15
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && i.indexOf(n) < 0 && (o[n] = t[n]);
|
|
16
16
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
17
|
for (var l = 0, n = Object.getOwnPropertySymbols(t); l < n.length; l++)
|
|
18
|
-
|
|
19
|
-
return
|
|
18
|
+
i.indexOf(n[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[l]) && (o[n[l]] = t[n[l]]);
|
|
19
|
+
return o;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
var { title:
|
|
23
|
-
let
|
|
24
|
-
return
|
|
21
|
+
const w = v((t, i) => {
|
|
22
|
+
var { title: o, titleId: n } = t, l = N(t, ["title", "titleId"]);
|
|
23
|
+
let r = z();
|
|
24
|
+
return r = o ? n || "title-" + r : void 0, f.createElement(
|
|
25
25
|
"svg",
|
|
26
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref:
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": r }, l),
|
|
27
|
+
o ? f.createElement("title", { id: r }, o) : null,
|
|
28
|
+
f.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.5 3.25a.75.75 0 0 0 0 1.5H19a.25.25 0 0 1 .25.25v14a.25.25 0 0 1-.25.25h-3.5a.75.75 0 0 0 0 1.5H19A1.75 1.75 0 0 0 20.75 19V5A1.75 1.75 0 0 0 19 3.25zM9.97 6.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H3.5a.75.75 0 0 1 0-1.5h9.69L9.97 8.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
29
29
|
);
|
|
30
|
-
}), x = "
|
|
31
|
-
button:
|
|
32
|
-
avatarIcon:
|
|
33
|
-
loginIcon:
|
|
34
|
-
closeIcon:
|
|
35
|
-
avatar:
|
|
36
|
-
icon:
|
|
37
|
-
labelContainer:
|
|
38
|
-
description:
|
|
30
|
+
}), O = "_button_9nzzi_1", x = "_avatarIcon_9nzzi_24", C = "_loginIcon_9nzzi_25", j = "_closeIcon_9nzzi_26", k = "_avatar_9nzzi_24", L = "_icon_9nzzi_49", E = "_labelContainer_9nzzi_61", B = "_description_9nzzi_69", e = {
|
|
31
|
+
button: O,
|
|
32
|
+
avatarIcon: x,
|
|
33
|
+
loginIcon: C,
|
|
34
|
+
closeIcon: j,
|
|
35
|
+
avatar: k,
|
|
36
|
+
icon: L,
|
|
37
|
+
labelContainer: E,
|
|
38
|
+
description: B
|
|
39
39
|
}, G = ({
|
|
40
40
|
className: t,
|
|
41
|
-
currentAccount:
|
|
42
|
-
expanded:
|
|
41
|
+
currentAccount: i,
|
|
42
|
+
expanded: o = !1,
|
|
43
43
|
minimized: n = !1,
|
|
44
44
|
loading: l = !1,
|
|
45
|
-
...
|
|
45
|
+
...r
|
|
46
46
|
}) => {
|
|
47
|
-
const { languageCode: _ } = y(),
|
|
47
|
+
const { languageCode: _ } = y(), c = M(_);
|
|
48
48
|
if (l)
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
return /* @__PURE__ */ a(
|
|
50
|
+
g,
|
|
51
51
|
{
|
|
52
|
-
...
|
|
52
|
+
...r,
|
|
53
53
|
as: "button",
|
|
54
54
|
type: "button",
|
|
55
55
|
variant: "ghost",
|
|
56
56
|
color: "company",
|
|
57
|
-
className:
|
|
57
|
+
className: d(e.button, e.loading, t),
|
|
58
58
|
disabled: !0,
|
|
59
59
|
"aria-label": "loading",
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ a(u, { className: e.avatarIcon, icon: /* @__PURE__ */ a(p, { name: "loading", loading: !0, className: e.avatar }) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
if (
|
|
64
|
-
let
|
|
65
|
-
return
|
|
66
|
-
|
|
63
|
+
if (i) {
|
|
64
|
+
let s = i.description;
|
|
65
|
+
return i.role === "subunit" && typeof s == "string" && s && (s = `${s.split(",")[0]}, ${c.subunit}`), /* @__PURE__ */ m(
|
|
66
|
+
g,
|
|
67
67
|
{
|
|
68
|
-
...
|
|
68
|
+
...r,
|
|
69
69
|
as: "button",
|
|
70
70
|
type: "button",
|
|
71
71
|
variant: "ghost",
|
|
72
72
|
color: "company",
|
|
73
|
-
className:
|
|
74
|
-
"aria-label":
|
|
73
|
+
className: d(e.button, t),
|
|
74
|
+
"aria-label": o ? c.close : i.name,
|
|
75
|
+
"aria-expanded": o,
|
|
75
76
|
children: [
|
|
76
|
-
!n && /* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
/* @__PURE__ */
|
|
77
|
+
!n && /* @__PURE__ */ a(b, { children: /* @__PURE__ */ m("div", { className: e.labelContainer, children: [
|
|
78
|
+
i.name,
|
|
79
|
+
/* @__PURE__ */ a("span", { className: e.description, children: typeof s == "string" || h(s) ? s : null })
|
|
79
80
|
] }) }),
|
|
80
|
-
|
|
81
|
+
o ? /* @__PURE__ */ a(u, { className: e.closeIcon, icon: /* @__PURE__ */ a(I, { className: e.icon, "aria-hidden": !0 }) }) : /* @__PURE__ */ a(
|
|
81
82
|
u,
|
|
82
83
|
{
|
|
83
84
|
className: e.avatarIcon,
|
|
84
|
-
icon: /* @__PURE__ */
|
|
85
|
+
icon: /* @__PURE__ */ a(p, { ...i?.icon, className: e.avatar })
|
|
85
86
|
}
|
|
86
87
|
)
|
|
87
88
|
]
|
|
88
89
|
}
|
|
89
90
|
);
|
|
90
91
|
}
|
|
91
|
-
return
|
|
92
|
-
|
|
92
|
+
return o ? null : /* @__PURE__ */ m(
|
|
93
|
+
g,
|
|
93
94
|
{
|
|
94
|
-
...
|
|
95
|
+
...r,
|
|
95
96
|
as: "button",
|
|
96
97
|
type: "button",
|
|
97
98
|
variant: "ghost",
|
|
98
99
|
color: "company",
|
|
99
|
-
"aria-label":
|
|
100
|
-
className:
|
|
100
|
+
"aria-label": c.login,
|
|
101
|
+
className: d(e.button, t),
|
|
102
|
+
"aria-expanded": o,
|
|
101
103
|
children: [
|
|
102
|
-
!n && /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
+
!n && /* @__PURE__ */ a(b, { children: c.login }),
|
|
105
|
+
/* @__PURE__ */ a(u, { className: e.loginIcon, icon: /* @__PURE__ */ a(w, { className: e.icon, "aria-hidden": !0 }) })
|
|
104
106
|
]
|
|
105
107
|
}
|
|
106
108
|
);
|
|
107
|
-
},
|
|
109
|
+
}, M = (t) => {
|
|
108
110
|
switch (t) {
|
|
109
111
|
case "nn":
|
|
110
112
|
return {
|
|
@@ -1,65 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as c, jsxs as d, Fragment as s } from "react/jsx-runtime";
|
|
3
|
-
import { Badge as
|
|
4
|
-
import { Icon as
|
|
3
|
+
import { Badge as b } from "../Badge/Badge.js";
|
|
4
|
+
import { Icon as h } from "../Icon/Icon.js";
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
6
|
import o, { forwardRef as f } from "react";
|
|
7
|
-
import "../Button/Button.js";
|
|
8
|
-
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import "../Snackbar/useSnackbar.js";
|
|
10
7
|
import { u as p } from "../../useId-BVFxCjkq.js";
|
|
11
|
-
import '../../assets/AttachmentLink.css';var
|
|
12
|
-
var
|
|
13
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (
|
|
8
|
+
import '../../assets/AttachmentLink.css';var _ = function(t, a) {
|
|
9
|
+
var n = {};
|
|
10
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (n[e] = t[e]);
|
|
14
11
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
15
12
|
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
16
|
-
a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (
|
|
17
|
-
return
|
|
13
|
+
a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (n[e[l]] = t[e[l]]);
|
|
14
|
+
return n;
|
|
18
15
|
};
|
|
19
|
-
const
|
|
20
|
-
var { title:
|
|
21
|
-
let
|
|
22
|
-
return
|
|
16
|
+
const v = f((t, a) => {
|
|
17
|
+
var { title: n, titleId: e } = t, l = _(t, ["title", "titleId"]);
|
|
18
|
+
let r = p();
|
|
19
|
+
return r = n ? e || "title-" + r : void 0, o.createElement(
|
|
23
20
|
"svg",
|
|
24
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: a, "aria-labelledby":
|
|
25
|
-
|
|
21
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: a, "aria-labelledby": r }, l),
|
|
22
|
+
n ? o.createElement("title", { id: r }, n) : null,
|
|
26
23
|
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6.5 3.25c-.69 0-1.25.56-1.25 1.25v15c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V8a.75.75 0 0 0-.22-.53l-4-4a.75.75 0 0 0-.53-.22zm6.75 4.25c0 .69.56 1.25 1.25 1.25h2.75v10.5H6.75V4.75h6.5zm2.94-.25-1.44-1.44v1.44z", clipRule: "evenodd" })
|
|
27
24
|
);
|
|
28
25
|
});
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (
|
|
26
|
+
var g = function(t, a) {
|
|
27
|
+
var n = {};
|
|
28
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (n[e] = t[e]);
|
|
32
29
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
33
30
|
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
34
|
-
a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (
|
|
35
|
-
return
|
|
31
|
+
a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (n[e[l]] = t[e[l]]);
|
|
32
|
+
return n;
|
|
36
33
|
};
|
|
37
|
-
const
|
|
38
|
-
var { title:
|
|
39
|
-
let
|
|
40
|
-
return
|
|
34
|
+
const y = f((t, a) => {
|
|
35
|
+
var { title: n, titleId: e } = t, l = g(t, ["title", "titleId"]);
|
|
36
|
+
let r = p();
|
|
37
|
+
return r = n ? e || "title-" + r : void 0, o.createElement(
|
|
41
38
|
"svg",
|
|
42
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: a, "aria-labelledby":
|
|
43
|
-
|
|
39
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: a, "aria-labelledby": r }, l),
|
|
40
|
+
n ? o.createElement("title", { id: r }, n) : null,
|
|
44
41
|
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.25 4.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l4 4c.141.14.22.331.22.53v11.5c0 .69-.56 1.25-1.25 1.25h-11c-.69 0-1.25-.56-1.25-1.25zm9.25 4.25c-.69 0-1.25-.56-1.25-1.25V4.75h-6.5v14.5h10.5V8.75zm.25-2.94 1.44 1.44h-1.44zm-.72 6.16a.75.75 0 0 1 0 1.06l-.97.97.97.97a.75.75 0 1 1-1.06 1.06l-.97-.97-.97.97a.75.75 0 1 1-1.06-1.06l.97-.97-.97-.97a.75.75 0 1 1 1.06-1.06l.97.97.97-.97a.75.75 0 0 1 1.06 0", clipRule: "evenodd" })
|
|
45
42
|
);
|
|
46
|
-
}),
|
|
47
|
-
item:
|
|
48
|
-
icon:
|
|
49
|
-
link:
|
|
50
|
-
label:
|
|
51
|
-
badge:
|
|
52
|
-
metadata:
|
|
53
|
-
},
|
|
54
|
-
|
|
43
|
+
}), O = "_item_w0iww_1", I = "_icon_w0iww_9", j = "_link_w0iww_16", x = "_label_w0iww_27", E = "_badge_w0iww_39", k = "_metadata_w0iww_44", i = {
|
|
44
|
+
item: O,
|
|
45
|
+
icon: I,
|
|
46
|
+
link: j,
|
|
47
|
+
label: x,
|
|
48
|
+
badge: E,
|
|
49
|
+
metadata: k
|
|
50
|
+
}, B = ({
|
|
51
|
+
icon: t,
|
|
52
|
+
iconAltText: a,
|
|
53
|
+
href: n,
|
|
54
|
+
label: e,
|
|
55
|
+
metadata: l,
|
|
56
|
+
badge: r,
|
|
57
|
+
disabled: m,
|
|
58
|
+
target: w = "_blank"
|
|
59
|
+
}) => {
|
|
60
|
+
const u = m ? y : t || v;
|
|
55
61
|
return /* @__PURE__ */ c("span", { className: i.item, children: /* @__PURE__ */ d("span", { children: [
|
|
56
|
-
/* @__PURE__ */ d("a", { href:
|
|
57
|
-
/* @__PURE__ */ c(
|
|
62
|
+
/* @__PURE__ */ d("a", { href: n, "aria-disabled": m, className: i.link, target: w, rel: "noreferrer", children: [
|
|
63
|
+
/* @__PURE__ */ c(h, { svgElement: u, altText: a, className: i.icon }),
|
|
58
64
|
/* @__PURE__ */ c("span", { className: i.label, children: e })
|
|
59
65
|
] }),
|
|
60
|
-
|
|
66
|
+
r && /* @__PURE__ */ d(s, { children: [
|
|
61
67
|
" ",
|
|
62
|
-
/* @__PURE__ */ c(
|
|
68
|
+
/* @__PURE__ */ c(b, { ...r, className: i.badge })
|
|
63
69
|
] }),
|
|
64
70
|
l && /* @__PURE__ */ d(s, { children: [
|
|
65
71
|
" ",
|
|
@@ -68,5 +74,5 @@ const g = f((t, a) => {
|
|
|
68
74
|
] }) });
|
|
69
75
|
};
|
|
70
76
|
export {
|
|
71
|
-
|
|
77
|
+
B as AttachmentLink
|
|
72
78
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as
|
|
2
|
+
import { jsx as n, jsxs as b } from "react/jsx-runtime";
|
|
3
3
|
import { c as E } from "../../index-p1eeF8LQ.js";
|
|
4
4
|
import m, { forwardRef as k, useState as A } from "react";
|
|
5
5
|
import { Skeleton as R } from "../Skeleton/Skeleton.js";
|
|
@@ -37,8 +37,8 @@ const L = k((e, o) => {
|
|
|
37
37
|
size: t,
|
|
38
38
|
name: a = "Avatar",
|
|
39
39
|
shape: s,
|
|
40
|
-
color:
|
|
41
|
-
variant:
|
|
40
|
+
color: g,
|
|
41
|
+
variant: h,
|
|
42
42
|
imageUrl: d,
|
|
43
43
|
imageUrlAlt: _,
|
|
44
44
|
customLabel: w,
|
|
@@ -47,13 +47,13 @@ const L = k((e, o) => {
|
|
|
47
47
|
colorKey: I,
|
|
48
48
|
style: f = {}
|
|
49
49
|
}) => {
|
|
50
|
-
const [x, O] = A(!1), j = s || e === "person" ? "circle" : "square", C =
|
|
51
|
-
let i =
|
|
50
|
+
const [x, O] = A(!1), j = s || e === "person" ? "circle" : "square", C = g || e === "person" ? "light" : "dark";
|
|
51
|
+
let i = h;
|
|
52
52
|
e === "company" && typeof o == "boolean" && (i = o ? "solid" : "outline");
|
|
53
|
-
const { backgroundColor: u, foregroundColor:
|
|
53
|
+
const { backgroundColor: u, foregroundColor: v } = M(I ?? a, C), N = (a[0] ?? "").toUpperCase(), c = d && !x, S = !p && !c ? {
|
|
54
54
|
...f,
|
|
55
|
-
backgroundColor: i === "outline" ?
|
|
56
|
-
color: i === "outline" ? u :
|
|
55
|
+
backgroundColor: i === "outline" ? v : u,
|
|
56
|
+
color: i === "outline" ? u : v
|
|
57
57
|
} : f;
|
|
58
58
|
return /* @__PURE__ */ n(
|
|
59
59
|
"div",
|
|
@@ -62,9 +62,10 @@ const L = k((e, o) => {
|
|
|
62
62
|
style: S,
|
|
63
63
|
"data-shape": j,
|
|
64
64
|
"data-size": t,
|
|
65
|
+
"data-ui": "avatar",
|
|
65
66
|
"aria-hidden": !0,
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ b(R, { loading: p, className: r.shape, variant: "circle", children: [
|
|
68
|
+
/* @__PURE__ */ b("div", { className: r.shape, "data-variant": i, children: [
|
|
68
69
|
e !== "system" && c && /* @__PURE__ */ n(
|
|
69
70
|
"img",
|
|
70
71
|
{
|
|
@@ -84,8 +85,6 @@ const L = k((e, o) => {
|
|
|
84
85
|
{
|
|
85
86
|
"aria-hidden": "true",
|
|
86
87
|
className: r.deletedIcon,
|
|
87
|
-
width: "24",
|
|
88
|
-
height: "24",
|
|
89
88
|
viewBox: "0 0 24 24",
|
|
90
89
|
fill: "none",
|
|
91
90
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1,40 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as s } from "../../index-p1eeF8LQ.js";
|
|
4
4
|
import { useMemo as f } from "react";
|
|
5
5
|
import { Avatar as h } from "./Avatar.js";
|
|
6
|
-
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10",
|
|
6
|
+
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", i = {
|
|
7
7
|
group: A,
|
|
8
8
|
item: _
|
|
9
|
-
},
|
|
9
|
+
}, L = (e) => typeof e == "object" && e !== null && "items" in e, P = ({
|
|
10
10
|
items: e = [],
|
|
11
|
-
maxItemsCount:
|
|
12
|
-
defaultType:
|
|
13
|
-
size:
|
|
14
|
-
className:
|
|
15
|
-
style:
|
|
11
|
+
maxItemsCount: o = 4,
|
|
12
|
+
defaultType: m,
|
|
13
|
+
size: u,
|
|
14
|
+
className: l,
|
|
15
|
+
style: a,
|
|
16
16
|
maxItemsCountReachedLabel: p
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return e.length === 0 ? /* @__PURE__ */ r("div", { className:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
const n = f(() => e.slice(0, o).reverse(), [e, o]);
|
|
19
|
+
return e.length === 0 ? /* @__PURE__ */ r("div", { className: s(i.group, l) }) : /* @__PURE__ */ r(
|
|
20
|
+
"ul",
|
|
21
|
+
{
|
|
22
|
+
className: s(i.group, l),
|
|
23
|
+
"data-ui": "avatar-group",
|
|
24
|
+
"data-size": u,
|
|
25
|
+
"data-count": n?.length,
|
|
26
|
+
style: a,
|
|
27
|
+
children: n.map((t, c) => {
|
|
28
|
+
const g = c === o - 1, d = t.customLabel || g ? p || e.length.toString() : void 0;
|
|
29
|
+
return /* @__PURE__ */ r("li", { className: s(i.item), children: /* @__PURE__ */ r(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
name: t.name,
|
|
33
|
+
customLabel: d,
|
|
34
|
+
imageUrl: t.imageUrl,
|
|
35
|
+
imageUrlAlt: t.imageUrlAlt,
|
|
36
|
+
type: t?.type || m,
|
|
37
|
+
isParent: t?.isParent,
|
|
38
|
+
isDeleted: t?.isDeleted,
|
|
39
|
+
variant: t?.variant,
|
|
40
|
+
outline: !0
|
|
41
|
+
}
|
|
42
|
+
) }, c);
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
);
|
|
36
46
|
};
|
|
37
47
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
P as AvatarGroup,
|
|
49
|
+
L as isAvatarGroupProps
|
|
40
50
|
};
|
|
@@ -1,53 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import c, { forwardRef as m } from "react";
|
|
1
|
+
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { Button as l } from "../Button/Button.js";
|
|
4
|
+
import "react";
|
|
6
5
|
import "../RootProvider/RootProvider.js";
|
|
7
6
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import {
|
|
9
|
-
import { S as
|
|
10
|
-
import '../../assets/Banner.css';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
i.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
16
|
-
return n;
|
|
7
|
+
import { S as m } from "../../InformationSquare-D3WAxfVw.js";
|
|
8
|
+
import { S as f } from "../../XMark-tKk6aExO.js";
|
|
9
|
+
import '../../assets/Banner.css';const p = "_banner_1of7r_1", d = "_sticky_1of7r_12", _ = "_title_1of7r_18", y = "_infoIcon_1of7r_25", t = {
|
|
10
|
+
banner: p,
|
|
11
|
+
sticky: d,
|
|
12
|
+
title: _,
|
|
13
|
+
infoIcon: y
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let a = p();
|
|
21
|
-
return a = n ? t || "title-" + a : void 0, c.createElement(
|
|
22
|
-
"svg",
|
|
23
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": a }, r),
|
|
24
|
-
n ? c.createElement("title", { id: a }, n) : null,
|
|
25
|
-
c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v16c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm.75 16V4.75h14.5v14.5zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0M10.5 10a.75.75 0 0 0 0 1.5h.75v4h-.75a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-4.75A.75.75 0 0 0 12 10z", clipRule: "evenodd" })
|
|
26
|
-
);
|
|
27
|
-
}), y = "_banner_1of7r_1", _ = "_sticky_1of7r_12", b = "_title_1of7r_18", g = "_infoIcon_1of7r_25", o = {
|
|
28
|
-
banner: y,
|
|
29
|
-
sticky: _,
|
|
30
|
-
title: b,
|
|
31
|
-
infoIcon: g
|
|
32
|
-
};
|
|
33
|
-
var w = /* @__PURE__ */ ((e) => (e.company = "company", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e))(w || {});
|
|
34
|
-
const N = ({ closeTitle: e = "close", onClose: i, text: n, color: t, sticky: r = !0 }) => /* @__PURE__ */ s(
|
|
15
|
+
var g = /* @__PURE__ */ ((i) => (i.company = "company", i.success = "success", i.warning = "warning", i.danger = "danger", i.info = "info", i))(g || {});
|
|
16
|
+
const N = ({ closeTitle: i = "close", onClose: r, text: n, color: a, sticky: c = !0 }) => /* @__PURE__ */ o(
|
|
35
17
|
"section",
|
|
36
18
|
{
|
|
37
|
-
className:
|
|
19
|
+
className: e(t.banner, { [t.sticky]: c }),
|
|
38
20
|
role: "status",
|
|
39
21
|
"aria-live": "polite",
|
|
40
|
-
"data-color":
|
|
22
|
+
"data-color": a,
|
|
41
23
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ o("div", { className: t.title, children: [
|
|
25
|
+
/* @__PURE__ */ s(m, { className: t.infoIcon, "aria-hidden": !0 }),
|
|
26
|
+
/* @__PURE__ */ s("span", { children: n })
|
|
45
27
|
] }),
|
|
46
|
-
!!
|
|
28
|
+
!!r && /* @__PURE__ */ s(l, { variant: "solid", onClick: r, className: t.dismiss, "aria-label": i, children: /* @__PURE__ */ s(f, { style: { fontSize: "1.5em" } }) })
|
|
47
29
|
]
|
|
48
30
|
}
|
|
49
31
|
);
|
|
50
32
|
export {
|
|
51
33
|
N as Banner,
|
|
52
|
-
|
|
34
|
+
g as BannerColorEnum
|
|
53
35
|
};
|
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { Button as b } from "./Button.js";
|
|
4
|
+
import '../../assets/ButtonGroup.css';const e = "_buttonGroup_12m7k_1", i = "_wrap_12m7k_15", t = {
|
|
5
|
+
buttonGroup: e,
|
|
6
|
+
wrap: i
|
|
7
|
+
}, f = ({ children: a, variant: o, color: r, size: p, disabled: s, connected: u, wrap: n }) => u ? /* @__PURE__ */ m(
|
|
8
|
+
b,
|
|
7
9
|
{
|
|
8
10
|
as: "span",
|
|
9
|
-
className:
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
className: c(t.buttonGroup, {
|
|
12
|
+
[t.wrap]: n
|
|
13
|
+
}),
|
|
14
|
+
size: p,
|
|
15
|
+
color: r,
|
|
12
16
|
variant: o,
|
|
13
17
|
"data-connected": u,
|
|
14
|
-
"aria-disabled":
|
|
15
|
-
children:
|
|
18
|
+
"aria-disabled": s,
|
|
19
|
+
children: a
|
|
20
|
+
}
|
|
21
|
+
) : /* @__PURE__ */ m(
|
|
22
|
+
"span",
|
|
23
|
+
{
|
|
24
|
+
className: c(t.buttonGroup, {
|
|
25
|
+
[t.wrap]: n
|
|
26
|
+
}),
|
|
27
|
+
"data-size": p,
|
|
28
|
+
"data-color": r,
|
|
29
|
+
"data-variant": o,
|
|
30
|
+
"aria-disabled": s,
|
|
31
|
+
children: a
|
|
16
32
|
}
|
|
17
33
|
);
|
|
18
34
|
export {
|
|
19
|
-
|
|
35
|
+
f as ButtonGroup
|
|
20
36
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { isValidElement as
|
|
4
|
-
import { isIconProps as
|
|
5
|
-
import { isAvatarProps as c, Avatar as
|
|
6
|
-
import { isAvatarGroupProps as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { isValidElement as i } from "react";
|
|
4
|
+
import { isIconProps as n, Icon as o } from "../Icon/Icon.js";
|
|
5
|
+
import { isAvatarProps as c, Avatar as v } from "../Avatar/Avatar.js";
|
|
6
|
+
import { isAvatarGroupProps as _, AvatarGroup as l } from "../Avatar/AvatarGroup.js";
|
|
7
7
|
import "./Button.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/ButtonIcon.css';const
|
|
11
|
-
|
|
12
|
-
icon:
|
|
13
|
-
avatar:
|
|
14
|
-
avatarGroup:
|
|
10
|
+
import '../../assets/ButtonIcon.css';const f = "_media_1exbv_1", d = "_icon_1exbv_7", u = "_avatar_1exbv_11", b = "_avatarGroup_1exbv_15", t = {
|
|
11
|
+
media: f,
|
|
12
|
+
icon: d,
|
|
13
|
+
avatar: u,
|
|
14
|
+
avatarGroup: b
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
return typeof
|
|
16
|
+
function x(a) {
|
|
17
|
+
return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || i(a);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const j = ({ icon: a, size: s, iconAltText: e, className: m }) => /* @__PURE__ */ r("span", { className: p(t.media, m), "data-size": s, "aria-label": e, children: c(a) && /* @__PURE__ */ r(v, { ...a, className: t.avatar }) || _(a) && /* @__PURE__ */ r(l, { ...a, className: t.avatarGroup }) || n(a) && /* @__PURE__ */ r(o, { ...a, className: t.icon }) || x(a) && a || /* @__PURE__ */ r(o, { svgElement: a, className: t.icon }) });
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
j as ButtonIcon
|
|
22
22
|
};
|