@altinn/altinn-components 0.54.2 → 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/UserListItem/UserListItem.js +15 -13
- 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/UserListItem/UserListItem.d.ts +3 -1
- package/dist/types/lib/components/UserListItem/UserListItem.stories.d.ts +7 -1
- 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
|
@@ -4,17 +4,18 @@ import ye, { forwardRef as w, useState as A, useRef as F, useEffect as D, create
|
|
|
4
4
|
import { jsx as c, jsxs as N, Fragment as Ie } from "react/jsx-runtime";
|
|
5
5
|
import { c as E } from "./lite-1fxw3LjI.js";
|
|
6
6
|
import { S as M, a as _t } from "./index-D7FJjvrv.js";
|
|
7
|
-
import { C as q, u as Se, a as qe, o as ce, p as P, r as we, b as ke, i as Nt, c as Mt,
|
|
8
|
-
import { flushSync as
|
|
9
|
-
import { S as
|
|
10
|
-
import { V as _e, u as Ne, F as Oe, a as
|
|
7
|
+
import { C as q, u as Se, a as qe, o as ce, p as P, r as we, b as ke, i as Nt, c as Mt, f as zt, s as Tt, d as Rt, e as Pt, g as Dt, h as Ft, j as At, k as Lt, l as ae, F as Bt, m as Vt, n as $t } from "./index--jNxJmA8.js";
|
|
8
|
+
import { flushSync as Ue } from "react-dom";
|
|
9
|
+
import { S as jt, B as de, u as Wt } from "./button-BB5sYVKY.js";
|
|
10
|
+
import { V as _e, u as Ne, F as Oe, a as Kt, b as Ht, c as Ve } from "./index-z82sbSVU.js";
|
|
11
11
|
import { P as Ee } from "./paragraph-BRiIBpbY.js";
|
|
12
12
|
import { I as Me } from "./input-wBv_FkEV.js";
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
13
|
+
import { S as qt } from "./XMark-tKk6aExO.js";
|
|
14
|
+
import { S as Ut, a as Xt } from "./ChevronUp-_BBfEirx.js";
|
|
15
15
|
import { L as H } from "./label-xTmTyPhk.js";
|
|
16
|
-
import { u as
|
|
17
|
-
import { S as
|
|
16
|
+
import { u as Yt } from "./useId-BVFxCjkq.js";
|
|
17
|
+
import { S as Gt } from "./Checkmark-Byz_C9x4.js";
|
|
18
|
+
import { a as Xe, c as Jt, o as Qt, f as Zt, s as en } from "./floating-ui.dom-bEgaHJCq.js";
|
|
18
19
|
import { u as U } from "./use-merge-refs-Cj4kTYVj.js";
|
|
19
20
|
import { T as tn } from "./textarea-BBstVlPT.js";
|
|
20
21
|
var nn = function(o, s) {
|
|
@@ -27,7 +28,7 @@ var nn = function(o, s) {
|
|
|
27
28
|
};
|
|
28
29
|
const on = w((o, s) => {
|
|
29
30
|
var { title: e, titleId: t } = o, n = nn(o, ["title", "titleId"]);
|
|
30
|
-
let i =
|
|
31
|
+
let i = Yt();
|
|
31
32
|
return i = e ? t || "title-" + i : void 0, ye.createElement(
|
|
32
33
|
"svg",
|
|
33
34
|
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: s, "aria-labelledby": i }, n),
|
|
@@ -125,7 +126,7 @@ const an = w(({ value: o, asChild: s, ...e }, t) => {
|
|
|
125
126
|
}), ln = (o, s, e) => {
|
|
126
127
|
const t = (e - 1) / 2, n = Math.max(1, Math.min(Math.max(o - Math.floor(t), 1), s - e + 1)), i = Math.min(Math.max(o + Math.ceil(t), e), s), r = Array.from({ length: i + 1 - n }, (a, l) => l + n);
|
|
127
128
|
return e > 4 && n > 1 && r.splice(0, 2, 1, 0), e > 3 && i < s && r.splice(-2, 2, 0, s), r;
|
|
128
|
-
},
|
|
129
|
+
}, po = ({ currentPage: o = 1, setCurrentPage: s, onChange: e, totalPages: t = 1, showPages: n = 7 }) => J(() => {
|
|
129
130
|
const i = o < t, r = o !== 1, a = (l) => (d) => {
|
|
130
131
|
if (l < 1 || l > t)
|
|
131
132
|
return d.preventDefault();
|
|
@@ -752,7 +753,7 @@ function On({
|
|
|
752
753
|
...s,
|
|
753
754
|
onChange: (i, r) => {
|
|
754
755
|
var a;
|
|
755
|
-
o && r ?
|
|
756
|
+
o && r ? Ue(e) : e(), (a = s.onChange) == null || a.call(s, i, r);
|
|
756
757
|
}
|
|
757
758
|
}, [n] = le.useState(
|
|
758
759
|
() => new xn(t)
|
|
@@ -815,7 +816,7 @@ const nt = w((o, s) => {
|
|
|
815
816
|
t || n || r({ option: null, clear: !0 });
|
|
816
817
|
}, onKeyDown: (a) => {
|
|
817
818
|
t || n || a.key === "Enter" && (a.stopPropagation(), r({ option: null, clear: !0 }));
|
|
818
|
-
}, type: "button", "aria-label": i, children: c(
|
|
819
|
+
}, type: "button", "aria-label": i, children: c(qt, { fontSize: "1.5em", title: "Clear selection" }) });
|
|
819
820
|
});
|
|
820
821
|
nt.displayName = "ComboboxClearButton";
|
|
821
822
|
const ot = ({ hideClearButton: o, listId: s, error: e, hideChips: t, handleKeyDown: n, ...i }) => {
|
|
@@ -852,7 +853,7 @@ const ot = ({ hideClearButton: o, listId: s, error: e, hideChips: t, handleKeyDo
|
|
|
852
853
|
});
|
|
853
854
|
return c(Ee, { "data-size": $, asChild: !0, children: N("div", { ...Z, "aria-disabled": u ? "true" : void 0, className: E("ds-textfield__input", "ds-combobox__input__wrapper", p && "ds-combobox--readonly", e && "ds-combobox--error"), children: [N("div", { className: "ds-combobox__chip-and-input", children: [b && !t && c(tt, {}), c(Ee, { "data-size": $, asChild: !0, children: c("input", { ref: V, "aria-activedescendant": Z["aria-activedescendant"], readOnly: p, "aria-autocomplete": "list", role: "combobox", "aria-expanded": f, "aria-controls": f ? s : void 0, autoComplete: "off", size: x, value: C, ...ce(["style", "className"], i), ...v.inputProps, className: "ds-combobox__input", onChange: (T) => {
|
|
854
855
|
ie(T), !f && S(!0), i.onChange?.(T);
|
|
855
|
-
} }) })] }), z && c(nt, { ref: l }), c("div", { className: "ds-combobox__arrow", children: f ? c(
|
|
856
|
+
} }) })] }), z && c(nt, { ref: l }), c("div", { className: "ds-combobox__arrow", children: f ? c(Ut, { title: "arrow up", fontSize: "1.5em" }) : c(Xt, { title: "arrow down", fontSize: "1.5em" }) })] }) });
|
|
856
857
|
};
|
|
857
858
|
ot.displayName = "ComboboxInput";
|
|
858
859
|
const st = ({ label: o, description: s, hideLabel: e, size: t, readOnly: n, formFieldProps: i }) => N(Ie, { children: [o && N(H, { "data-size": t, htmlFor: i.inputProps.id, className: E("ds-combobox__label", e && "ds-sr-only"), children: [n && c(on, { "aria-hidden": !0, className: "ds-combobox__readonly__icon" }), o] }), s && c(Ee, { asChild: !0, "data-size": t, children: c("div", { id: i.descriptionId, className: E("ds-combobox__description", e && "ds-sr-only"), children: s }) })] });
|
|
@@ -865,7 +866,7 @@ const it = ({ selectedOptions: o, multiple: s, name: e }) => {
|
|
|
865
866
|
it.displayName = "ComboboxNative";
|
|
866
867
|
const rt = w(({ children: o, className: s, ...e }, t) => c("span", { className: E("ds-combobox__option__description", s), ref: t, ...e, children: o }));
|
|
867
868
|
rt.displayName = "ComboboxOptionDescription";
|
|
868
|
-
const at = ({ multiple: o, selected: s }) => c("div", { className: E(o && "ds-combobox__option__icon-wrapper", s && "ds-combobox__option__icon-wrapper--selected"), children: s && c(
|
|
869
|
+
const at = ({ multiple: o, selected: s }) => c("div", { className: E(o && "ds-combobox__option__icon-wrapper", s && "ds-combobox__option__icon-wrapper--selected"), children: s && c(Gt, { className: "ds-combobox__option__icon-wrapper__icon", "aria-hidden": !0 }) });
|
|
869
870
|
at.displayName = "SelectedIcon";
|
|
870
871
|
const Sn = ({ id: o, ref: s, value: e }) => {
|
|
871
872
|
const t = Q(), n = o || t, i = R(q), { activeIndex: r } = ke(), a = Se();
|
|
@@ -1023,18 +1024,18 @@ const Mn = ({ readOnly: o, disabled: s, interactiveChildren: e, filteredOptions:
|
|
|
1023
1024
|
const [s, e] = A(!1), { activeIndex: t } = ke(), n = Se(), { refs: i, floatingStyles: r, context: a } = Mt({
|
|
1024
1025
|
open: s,
|
|
1025
1026
|
onOpenChange: (g) => {
|
|
1026
|
-
g || n?.({ type: "SET_ACTIVE_INDEX", payload: 0 }),
|
|
1027
|
+
g || n?.({ type: "SET_ACTIVE_INDEX", payload: 0 }), Ue(() => {
|
|
1027
1028
|
i.floating.current && !g && (i.floating.current.scrollTop = 0), setTimeout(() => {
|
|
1028
1029
|
e(g);
|
|
1029
1030
|
}, 1);
|
|
1030
1031
|
});
|
|
1031
1032
|
},
|
|
1032
|
-
whileElementsMounted: (g, y, C) => (
|
|
1033
|
+
whileElementsMounted: (g, y, C) => (Xe(g, y, C), () => {
|
|
1033
1034
|
y.scrollTop = 0;
|
|
1034
1035
|
}),
|
|
1035
1036
|
middleware: [
|
|
1036
|
-
|
|
1037
|
-
|
|
1037
|
+
zt({ padding: 10 }),
|
|
1038
|
+
Tt({
|
|
1038
1039
|
apply({ rects: g, elements: y }) {
|
|
1039
1040
|
requestAnimationFrame(() => {
|
|
1040
1041
|
Object.assign(y.floating.style, {
|
|
@@ -1044,9 +1045,9 @@ const Mn = ({ readOnly: o, disabled: s, interactiveChildren: e, filteredOptions:
|
|
|
1044
1045
|
});
|
|
1045
1046
|
}
|
|
1046
1047
|
}),
|
|
1047
|
-
|
|
1048
|
+
Rt(10)
|
|
1048
1049
|
]
|
|
1049
|
-
}), l =
|
|
1050
|
+
}), l = Pt(a, { role: "listbox" }), d = Dt(a), h = Ft(a, {
|
|
1050
1051
|
listRef: o,
|
|
1051
1052
|
activeIndex: t,
|
|
1052
1053
|
virtual: !0,
|
|
@@ -1056,7 +1057,7 @@ const Mn = ({ readOnly: o, disabled: s, interactiveChildren: e, filteredOptions:
|
|
|
1056
1057
|
onNavigate: (g) => {
|
|
1057
1058
|
n?.({ type: "SET_ACTIVE_INDEX", payload: g || 0 });
|
|
1058
1059
|
}
|
|
1059
|
-
}), { getReferenceProps: p, getFloatingProps: u, getItemProps: f } =
|
|
1060
|
+
}), { getReferenceProps: p, getFloatingProps: u, getItemProps: f } = At([l, d, h]);
|
|
1060
1061
|
return {
|
|
1061
1062
|
open: s,
|
|
1062
1063
|
setOpen: e,
|
|
@@ -1206,7 +1207,7 @@ const Mn = ({ readOnly: o, disabled: s, interactiveChildren: e, filteredOptions:
|
|
|
1206
1207
|
left: 0,
|
|
1207
1208
|
width: "100%",
|
|
1208
1209
|
transform: `translateY(${_.start}px)`
|
|
1209
|
-
}, children: me[_.index] }, _.index)) }), S ? N($t, { className: "ds-combobox__loading", children: [c(
|
|
1210
|
+
}, children: me[_.index] }, _.index)) }), S ? N($t, { className: "ds-combobox__loading", children: [c(jt, { "aria-label": "Laster", "data-size": "sm" }), k] }) : N(Ie, { children: [mt, !m && me] })] }) }) })] });
|
|
1210
1211
|
}), lt = w((o, s) => c(Lt, { children: c(Pn, { ...o, ref: s }) }));
|
|
1211
1212
|
lt.displayName = "Combobox";
|
|
1212
1213
|
const ct = w(({ children: o, className: s, ...e }, t) => {
|
|
@@ -1222,7 +1223,7 @@ he.Option = ze;
|
|
|
1222
1223
|
he.Empty = ct;
|
|
1223
1224
|
he.Option.displayName = "Combobox.Option";
|
|
1224
1225
|
he.Empty.displayName = "Combobox.Empty";
|
|
1225
|
-
const
|
|
1226
|
+
const bo = w(function({ "data-size": s, className: e, style: t, children: n, label: i, description: r, error: a, ...l }, d) {
|
|
1226
1227
|
return N(Oe, { "data-size": s, className: e, style: t, children: [c(Me, { type: "checkbox", ref: d, ...l }), !!i && c(H, { weight: "regular", children: i }), !!r && c("div", { "data-field": "description", children: r }), !!a && c(_e, { children: a })] });
|
|
1227
1228
|
}), Te = se({
|
|
1228
1229
|
current: null
|
|
@@ -1294,16 +1295,16 @@ const Pe = se({}), Ln = w(function({ id: s, className: e, onClose: t, onOpen: n,
|
|
|
1294
1295
|
}, [v]), D(() => {
|
|
1295
1296
|
const x = f.current, O = document.querySelector(`[popovertarget="${x?.id}"]`);
|
|
1296
1297
|
if (x && O && v)
|
|
1297
|
-
return
|
|
1298
|
-
|
|
1298
|
+
return Xe(O, x, () => {
|
|
1299
|
+
Jt(O, x, {
|
|
1299
1300
|
placement: a,
|
|
1300
1301
|
strategy: "fixed",
|
|
1301
1302
|
middleware: [
|
|
1302
|
-
|
|
1303
|
+
Qt((S) => {
|
|
1303
1304
|
const k = getComputedStyle(S.elements.floating, "::before");
|
|
1304
1305
|
return parseFloat(k.height);
|
|
1305
1306
|
}),
|
|
1306
|
-
...l ? [
|
|
1307
|
+
...l ? [Zt({ fallbackAxisSideDirection: "start" }), en()] : [],
|
|
1307
1308
|
Bn
|
|
1308
1309
|
]
|
|
1309
1310
|
}).then(({ x: S, y: k }) => {
|
|
@@ -1342,9 +1343,9 @@ const Pe = se({}), Ln = w(function({ id: s, className: e, onClose: t, onOpen: n,
|
|
|
1342
1343
|
} : {}
|
|
1343
1344
|
}, n);
|
|
1344
1345
|
return c(a, { ref: i, ...l });
|
|
1345
|
-
}),
|
|
1346
|
+
}), go = w(function({ asChild: s, ...e }, t) {
|
|
1346
1347
|
return c(s ? M : "li", { ...e, ref: t });
|
|
1347
|
-
}), ht = (o, { asChild: s, className: e, ...t }, n) => c(s ? M : o, { className: E("ds-list", e), ref: n, ...t }),
|
|
1348
|
+
}), ht = (o, { asChild: s, className: e, ...t }, n) => c(s ? M : o, { className: E("ds-list", e), ref: n, ...t }), vo = w(function(s, e) {
|
|
1348
1349
|
return ht("ul", s, e);
|
|
1349
1350
|
});
|
|
1350
1351
|
w(function(s, e) {
|
|
@@ -1372,8 +1373,8 @@ const ft = Object.assign(Ln, {
|
|
|
1372
1373
|
});
|
|
1373
1374
|
ft.TriggerContext.displayName = "Popover.TriggerContext";
|
|
1374
1375
|
ft.Trigger.displayName = "Popover.Trigger";
|
|
1375
|
-
const
|
|
1376
|
-
const d = s ? M : "span", h = i === "text", p =
|
|
1376
|
+
const yo = w(function({ asChild: s, className: e, height: t, style: n, variant: i = "rectangle", width: r, ...a }, l) {
|
|
1377
|
+
const d = s ? M : "span", h = i === "text", p = Wt("ds-skeleton-opacity-fade"), u = U([p, l]);
|
|
1377
1378
|
return c(d, { "aria-hidden": "true", className: E("ds-skeleton", e), "data-text": h ? "-".repeat(Number(r) || 1) : void 0, "data-variant": i, ref: u, style: h ? n : { width: r, height: t, ...n }, ...a });
|
|
1378
1379
|
}), fe = se({}), Hn = w(function({ value: s, defaultValue: e, className: t, onChange: n, ...i }, r) {
|
|
1379
1380
|
const a = F(null), l = s !== void 0, [d, h] = A(e), [p, u] = A(/* @__PURE__ */ new Map());
|
|
@@ -1417,22 +1418,22 @@ const vo = w(function({ asChild: s, className: e, height: t, style: n, variant:
|
|
|
1417
1418
|
Fe.Tab.displayName = "Tabs.Tab";
|
|
1418
1419
|
Fe.List.displayName = "Tabs.List";
|
|
1419
1420
|
Fe.Panel.displayName = "Tabs.Panel";
|
|
1420
|
-
const
|
|
1421
|
-
return N(Oe, { className: h, "data-size": a, style: d, children: [!!s && c(H, { children: s }), !!e && c(
|
|
1421
|
+
const Co = w(function({ label: s, description: e, error: t, multiline: n, prefix: i, suffix: r, "data-size": a, counter: l, style: d, className: h, ...p }, u) {
|
|
1422
|
+
return N(Oe, { className: h, "data-size": a, style: d, children: [!!s && c(H, { children: s }), !!e && c(Kt, { children: e }), N(Ht, { children: [i === void 0 || c(Ve, { children: i }), n === !0 ? c(tn, { ref: u, "aria-invalid": !!t || void 0, ...p }) : c(Me, { ref: u, "aria-invalid": !!t || void 0, ...p }), r === void 0 || c(Ve, { children: r })] }), !!l && c(Oe.Counter, { ...typeof l == "number" ? { limit: l } : l }), !!t && c(_e, { children: t })] });
|
|
1422
1423
|
});
|
|
1423
1424
|
export {
|
|
1424
1425
|
un as B,
|
|
1425
|
-
|
|
1426
|
+
bo as C,
|
|
1426
1427
|
Re as D,
|
|
1427
1428
|
hn as L,
|
|
1428
1429
|
De as P,
|
|
1429
|
-
|
|
1430
|
-
|
|
1430
|
+
yo as S,
|
|
1431
|
+
Co as T,
|
|
1431
1432
|
ue as a,
|
|
1432
1433
|
he as b,
|
|
1433
|
-
|
|
1434
|
-
|
|
1434
|
+
go as c,
|
|
1435
|
+
vo as d,
|
|
1435
1436
|
ft as e,
|
|
1436
1437
|
Fe as f,
|
|
1437
|
-
|
|
1438
|
+
po as u
|
|
1438
1439
|
};
|
|
@@ -9,6 +9,6 @@ export interface AccountListProps {
|
|
|
9
9
|
sortGroupBy?: (a: [string, AccountListItemProps[]], b: [string, AccountListItemProps[]]) => number;
|
|
10
10
|
emptyTitle?: string;
|
|
11
11
|
emptyDescription?: string;
|
|
12
|
-
|
|
12
|
+
virtualized?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const AccountList: ({ items, groups, sortGroupBy,
|
|
14
|
+
export declare const AccountList: ({ items, groups, sortGroupBy, virtualized }: AccountListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { AccountListItemProps, AccountListProps } from '..';
|
|
|
3
3
|
import { UseAccountsProps } from '../../../examples';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ items, groups, sortGroupBy,
|
|
6
|
+
component: ({ items, groups, sortGroupBy, virtualized }: AccountListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
8
|
parameters: {};
|
|
9
9
|
args: AccountListProps;
|
|
@@ -17,9 +17,9 @@ interface ControlledProps {
|
|
|
17
17
|
collapsible?: boolean;
|
|
18
18
|
color?: 'neutral';
|
|
19
19
|
variant?: 'subtle' | 'tinted' | 'default';
|
|
20
|
-
|
|
20
|
+
virtualized?: boolean;
|
|
21
21
|
}
|
|
22
|
-
export declare const Controlled: ({ includeGroups, collapsible, contextMenu, variant, color,
|
|
22
|
+
export declare const Controlled: ({ includeGroups, collapsible, contextMenu, variant, color, virtualized, }: ControlledProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export declare const ControlledTinted: () => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const Collapsible: () => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export declare const CollapsibleWithGroups: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,5 +35,4 @@ interface AccountDetailsProps extends AccountListItemProps {
|
|
|
35
35
|
export declare const CompanyDetails: ({ id, parentId, uniqueId, title, description, icon, onChange, onModal, ...props }: AccountDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export declare const PersonDetails: ({ id, uniqueId, isCurrentEndUser, address, onModal, ...props }: AccountDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export declare const UserDetails: ({ id, phone, address, email, onModal, }: AccountDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export declare const GroupDetails: ({ accountIds }: AccountDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
38
|
export declare const Virtualized: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { MenuItemProps,
|
|
3
|
-
export interface AccountSearchProps extends
|
|
2
|
+
import { MenuItemProps, MenuListSearchProps, MenuProps } from '../';
|
|
3
|
+
export interface AccountSearchProps extends MenuListSearchProps {
|
|
4
4
|
hidden?: boolean;
|
|
5
5
|
getResultsLabel?: (hits: number) => string;
|
|
6
6
|
}
|
|
@@ -18,4 +18,4 @@ export interface AccountMenuProps extends MenuProps {
|
|
|
18
18
|
scrollRefStyles?: CSSProperties;
|
|
19
19
|
keyboardEvents?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare const AccountMenu: ({ items, groups, search, filterAccount, onSelectAccount, currentAccount,
|
|
21
|
+
export declare const AccountMenu: ({ items, groups, search, filterAccount, onSelectAccount, currentAccount, virtualized, keyboardEvents, scrollRefStyles, }: AccountMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountMenuProps } from '..';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ items, groups, search, filterAccount, onSelectAccount, currentAccount,
|
|
4
|
+
component: ({ items, groups, search, filterAccount, onSelectAccount, currentAccount, virtualized, keyboardEvents, scrollRefStyles, }: AccountMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: AccountMenuProps;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Account } from '..';
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: ({ className, currentAccount, expanded, minimized, loading, ...buttonProps }: import('./AccountMenuButton').AccountMenuButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -8,7 +7,16 @@ declare const meta: {
|
|
|
8
7
|
layout: string;
|
|
9
8
|
};
|
|
10
9
|
args: {
|
|
11
|
-
currentAccount:
|
|
10
|
+
currentAccount: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
type: "person";
|
|
15
|
+
icon: {
|
|
16
|
+
type: "person";
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
12
20
|
minimized: false;
|
|
13
21
|
expanded: false;
|
|
14
22
|
};
|
|
@@ -15,5 +15,7 @@ export interface AttachmentLinkProps {
|
|
|
15
15
|
metadata?: string;
|
|
16
16
|
/** Badge */
|
|
17
17
|
badge?: BadgeProps;
|
|
18
|
+
/** Target attribute specifies where to open the linked document **/
|
|
19
|
+
target?: '_blank' | '_self' | '_top' | '_parent';
|
|
18
20
|
}
|
|
19
|
-
export declare const AttachmentLink: ({ icon, iconAltText, href, label, metadata, badge, disabled }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const AttachmentLink: ({ icon, iconAltText, href, label, metadata, badge, disabled, target, }: AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ icon, iconAltText, href, label, metadata, badge, disabled }: import('./AttachmentLink').AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ icon, iconAltText, href, label, metadata, badge, disabled, target, }: import('./AttachmentLink').AttachmentLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: import('./AttachmentLink').AttachmentLinkProps;
|
|
@@ -6,5 +6,7 @@ export interface ButtonGroupProps extends ButtonProps {
|
|
|
6
6
|
size?: ButtonProps['size'];
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
connected?: boolean;
|
|
9
|
+
/** Wrap buttons in a flex container */
|
|
10
|
+
wrap?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare const ButtonGroup: ({ children, variant, size, disabled, connected,
|
|
12
|
+
export declare const ButtonGroup: ({ children, variant, color, size, disabled, connected, wrap }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const meta: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ children, variant, size, disabled, connected,
|
|
3
|
+
component: ({ children, variant, color, size, disabled, connected, wrap }: import('./ButtonGroup').ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
parameters: {};
|
|
5
5
|
args: {
|
|
6
6
|
children: string;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from '.';
|
|
2
|
-
export
|
|
3
|
-
icon: ButtonProps['icon'];
|
|
4
|
-
iconSize?: ButtonProps['size'];
|
|
5
|
-
iconAltText: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const FloatingActionButton: ({ variant, size, icon, iconSize, iconAltText, color, onClick, onBlurCapture, }: FloatingActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const FloatingActionButton: ({ variant, size, color, onClick, onBlurCapture, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DropdownProps } from '../Dropdown';
|
|
2
|
+
import { MenuProps } from '../Menu';
|
|
3
|
+
export interface ContextMenuProps extends MenuProps {
|
|
3
4
|
id?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
groups?: MenuItemGroups;
|
|
8
|
-
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
placement?: DropdownProps['placement'];
|
|
7
|
+
'aria-label'?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const ContextMenu: ({
|
|
9
|
+
export declare const ContextMenu: ({ groups, items, title, id, placement, "aria-label": ariaLabel, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemMediaProps } from '../Item';
|
|
3
3
|
export interface DashboardCardProps {
|
|
4
4
|
color?: 'company' | 'person';
|
|
5
5
|
theme?: 'default' | 'tinted';
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: ItemMediaProps['icon'];
|
|
7
7
|
href?: string;
|
|
8
8
|
title?: ReactNode;
|
|
9
9
|
children?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemMediaProps } from '../Item';
|
|
3
3
|
export interface DashboardHeaderProps {
|
|
4
|
-
icon?:
|
|
4
|
+
icon?: ItemMediaProps['icon'];
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
children?: ReactNode;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
export declare const DialogTabs: ({ id, items }: DialogTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { TabMenuProps } from '..';
|
|
2
|
+
export declare const DialogTabs: ({ items }: TabMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ButtonProps } from '..';
|
|
2
|
+
import { SeenByLogItemProps } from './SeenByLogItem';
|
|
3
|
+
export interface SeenByLogButtonProps {
|
|
4
|
+
as?: ButtonProps['as'];
|
|
5
|
+
children?: ButtonProps['children'];
|
|
6
|
+
onClick?: ButtonProps['onClick'];
|
|
7
|
+
items?: SeenByLogItemProps[];
|
|
5
8
|
}
|
|
6
9
|
/**
|
|
7
10
|
* SeenByLog Button
|
|
8
11
|
*/
|
|
9
|
-
export declare const SeenByLogButton: ({ as,
|
|
12
|
+
export declare const SeenByLogButton: ({ as, items, children, onClick }: SeenByLogButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type DropdownSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export type DropdownPlacement = 'left' | 'right' | 'bottom' | 'top' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
4
|
+
export type DropdownVariant = 'dropdown' | 'drawer' | 'drawer-dropdown';
|
|
5
|
+
export interface DropdownProps {
|
|
6
|
+
id?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
backdrop?: boolean;
|
|
9
|
+
placement?: DropdownPlacement;
|
|
10
|
+
variant?: DropdownVariant;
|
|
11
|
+
trigger: ReactNode;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
open: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
closeLabel?: string;
|
|
16
|
+
submitLabel?: string;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onSubmit?: () => void;
|
|
19
|
+
size?: DropdownSize;
|
|
20
|
+
activeDescendantId?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Dropdown: ({ id, size, className, backdrop, placement, variant, title, closeLabel, submitLabel, trigger, children, open, onClose, onSubmit, activeDescendantId, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DropdownProps } from './Dropdown';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ id, size, className, backdrop, placement, variant, title, closeLabel, submitLabel, trigger, children, open, onClose, onSubmit, activeDescendantId, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
placement: "left";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export declare const DropdownMenu: ({ title, placement }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const DrawerMenu: ({ title, placement }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const DrawerOrDropdownMenu: ({ title, placement }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type DropdownPlacement = 'left' | 'right';
|
|
3
3
|
export type DropdownLayout = 'mobile' | 'desktop';
|
|
4
|
-
|
|
4
|
+
type DropdownSize = 'auto' | 'lg';
|
|
5
5
|
export interface DropdownBaseProps {
|
|
6
6
|
placement?: DropdownPlacement;
|
|
7
7
|
layout?: DropdownLayout;
|
|
@@ -14,3 +14,4 @@ export interface DropdownBaseProps {
|
|
|
14
14
|
as?: 'nav' | 'div' | 'menu';
|
|
15
15
|
}
|
|
16
16
|
export declare const DropdownBase: ({ layout, size, placement, padding, open, className, children, onClose, as, }: DropdownBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FieldBaseProps, InputProps } from '..';
|
|
2
2
|
export interface SearchFieldProps extends InputProps {
|
|
3
3
|
className?: string;
|
|
4
|
+
collapsible?: boolean;
|
|
4
5
|
value?: InputProps['value'];
|
|
5
6
|
label?: FieldBaseProps['label'];
|
|
6
7
|
clearButtonAltText?: string;
|
|
7
8
|
onClear?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const SearchField: ({ className, size, color, label, value, onClear, clearButtonAltText, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SearchField: ({ className, collapsible, size, color, label, value, onClear, clearButtonAltText, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { SearchFieldProps } from './SearchField';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ className, size, color, label, value, onClear, clearButtonAltText, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ className, collapsible, size, color, label, value, onClear, clearButtonAltText, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {};
|
|
8
8
|
args: {
|
|
@@ -4,5 +4,6 @@ export type SwitchProps = {
|
|
|
4
4
|
size?: FieldSize;
|
|
5
5
|
color?: FieldColor;
|
|
6
6
|
reverse?: boolean;
|
|
7
|
+
className?: string;
|
|
7
8
|
} & DsSwitchProps;
|
|
8
|
-
export declare const Switch: ({ reverse, size, color, label, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Switch: ({ className, reverse, size, color, label, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ reverse, size, color, label, ...rest }: import('./Switch').SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ className, reverse, size, color, label, ...rest }: import('./Switch').SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { MenuProps } from '../Menu';
|
|
3
2
|
import { GlobalMenuProps } from './GlobalMenu';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
@@ -8,7 +7,7 @@ declare const meta: {
|
|
|
8
7
|
parameters: {};
|
|
9
8
|
args: {
|
|
10
9
|
accountMenu?: import('..').AccountMenuProps;
|
|
11
|
-
menu?: MenuProps;
|
|
10
|
+
menu?: import('..').MenuProps;
|
|
12
11
|
menuLabel?: string;
|
|
13
12
|
backLabel?: string;
|
|
14
13
|
logoutButton?: import('..').LogoutButtonProps;
|
|
@@ -26,5 +25,4 @@ type Story = StoryObj<typeof meta>;
|
|
|
26
25
|
export declare const Desktop: (args: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
export declare const MobileMenu: (args: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
export declare const Login: Story;
|
|
29
|
-
export declare const InterimMenu: (args: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
28
|
export declare const DesignReference: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
1
|
import { AvatarProps, AvatarGroupProps } from '../Avatar';
|
|
3
2
|
import { BadgeProps } from '../Badge';
|
|
4
3
|
import { ButtonProps } from '../Button';
|
|
@@ -6,10 +5,7 @@ export interface HeaderButtonProps extends ButtonProps {
|
|
|
6
5
|
label?: string;
|
|
7
6
|
avatar?: AvatarProps;
|
|
8
7
|
avatarGroup?: AvatarGroupProps;
|
|
9
|
-
as?: ElementType;
|
|
10
|
-
className?: string;
|
|
11
8
|
expanded?: boolean;
|
|
12
9
|
badge?: BadgeProps | undefined;
|
|
13
|
-
tabIndex?: number;
|
|
14
10
|
}
|
|
15
11
|
export declare const HeaderButton: ({ className, as, color, variant, avatar, avatarGroup, icon, expanded, label, badge, ...buttonProps }: HeaderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,6 @@ declare const meta: {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
export declare const Default: Story;
|
|
14
|
-
export declare const Icon: Story;
|
|
15
14
|
export declare const Person: Story;
|
|
16
15
|
export declare const Company: Story;
|
|
17
16
|
export declare const CompanyGroup: Story;
|