@altinn/altinn-components 0.43.8 → 0.45.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/ArrowUndo-hge1gMu8.js +24 -0
- package/dist/Button-B0t0vz2h.js +23 -0
- package/dist/Globe-BcPkcH4E.js +24 -0
- package/dist/Heading-By5DKz2H.js +12 -0
- package/dist/HeartFill-CYSrJ_xK.js +43 -0
- package/dist/PersonCircle-DlX_3kRO.js +24 -0
- package/dist/Spinner-BDXfwXIh.js +26 -0
- package/dist/assets/AccountMenuButton.css +1 -0
- package/dist/assets/AccountSelector.css +1 -0
- package/dist/assets/GlobalHeader.css +1 -0
- package/dist/assets/GlobalHeaderBase.css +1 -0
- package/dist/assets/GlobalMenuButton2.css +1 -0
- package/dist/assets/HeaderGroup2.css +1 -0
- package/dist/assets/HeaderLogo2.css +1 -0
- package/dist/assets/LayoutBody.css +1 -1
- package/dist/assets/NotificationItemBase.css +1 -0
- package/dist/assets/NotificationItemIcon.css +1 -0
- package/dist/assets/globalSearch.css +1 -0
- package/dist/components/Account/AccountListItemControls.js +22 -58
- package/dist/components/Account/AccountMenu.js +40 -36
- package/dist/components/Account/AccountMenuButton.js +131 -0
- package/dist/components/Account/AccountNotificationSettings.js +1 -1
- package/dist/components/Avatar/Avatar.js +23 -22
- package/dist/components/Bookmarks/BookmarksListItem.js +9 -7
- package/dist/components/Bookmarks/BookmarksSection.js +23 -27
- package/dist/components/Bookmarks/EditableBookmark.js +78 -63
- package/dist/components/Dashboard/DashboardHeader.js +1 -1
- package/dist/components/Dropdown/DrawerBase.js +17 -15
- package/dist/components/Dropdown/DropdownBase.js +14 -12
- package/dist/components/Dropdown/FloatingDropdown.js +6 -6
- package/dist/components/DsComponents/index.js +26 -22
- package/dist/components/Forms/Checkbox.js +1 -1
- package/dist/components/Forms/CheckboxOptions.js +1 -1
- package/dist/components/Forms/FieldBase.js +1 -1
- package/dist/components/Forms/FieldsetBase.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.js +1 -1
- package/dist/components/Forms/SearchField.js +1 -1
- package/dist/components/Forms/SelectField.js +1 -1
- package/dist/components/Forms/Switch.js +1 -1
- package/dist/components/Forms/SwitchOptions.js +1 -1
- package/dist/components/Forms/TextField.js +1 -1
- package/dist/components/Forms/TextareaField.js +1 -1
- package/dist/components/GlobalHeader/AccountSelector.js +138 -0
- package/dist/components/GlobalHeader/DigdirLogomark.js +109 -0
- package/dist/components/GlobalHeader/GlobalHeader.js +117 -0
- package/dist/components/GlobalHeader/GlobalHeaderBase.js +22 -0
- package/dist/components/GlobalHeader/GlobalSearch.js +57 -0
- package/dist/components/GlobalHeader/GlobalSearchButton.js +53 -0
- package/dist/components/GlobalHeader/HeaderGroup.js +8 -0
- package/dist/components/GlobalHeader/HeaderLogo.js +17 -0
- package/dist/components/GlobalHeader/index.js +6 -0
- package/dist/components/GlobalMenu/BackButton.js +6 -24
- package/dist/components/GlobalMenu/EndUserLabel.js +10 -29
- package/dist/components/GlobalMenu/GlobalMenu.js +38 -61
- package/dist/components/GlobalMenu/GlobalMenuButton.js +69 -47
- package/dist/components/GlobalMenu/LocaleButton.js +12 -0
- package/dist/components/GlobalMenu/LocaleSwitcher.js +34 -0
- package/dist/components/GlobalMenu/index.js +6 -12
- package/dist/components/GlobalMenu_old/BackButton.js +11 -0
- package/dist/components/GlobalMenu_old/EndUserLabel.js +13 -0
- package/dist/components/GlobalMenu_old/GlobalMenu.js +75 -0
- package/dist/components/GlobalMenu_old/GlobalMenuBase.js +10 -0
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +58 -0
- package/dist/components/GlobalMenu_old/LogoutButton.js +14 -0
- package/dist/components/GlobalMenu_old/index.js +14 -0
- package/dist/components/Header/Header.js +25 -25
- package/dist/components/Header/LocaleButton.js +13 -30
- package/dist/components/Layout/Layout.js +25 -23
- package/dist/components/Layout/LayoutBody.js +1 -1
- package/dist/components/List/ListItemSelect.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuSearch.js +2 -2
- package/dist/components/Notifications/NotificationItem.js +17 -0
- package/dist/components/Notifications/NotificationItemBase.js +86 -0
- package/dist/components/Notifications/NotificationItemControls.js +33 -0
- package/dist/components/Notifications/NotificationItemIcon.js +33 -0
- package/dist/components/Notifications/index.js +10 -0
- package/dist/components/RootProvider/RootProvider.js +42 -30
- package/dist/components/Searchbar/Searchbar.js +3 -3
- package/dist/components/Settings/BookmarksSettingsItem.js +1 -1
- package/dist/components/Settings/SettingsItem.js +22 -11
- package/dist/components/Toolbar/ToolbarAccountMenu.js +5 -5
- package/dist/components/Toolbar/ToolbarAdd.js +5 -5
- package/dist/components/Toolbar/ToolbarFilter.js +5 -5
- package/dist/components/Toolbar/ToolbarOptions.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/index.js +305 -293
- package/dist/functions/date/date.js +16 -0
- package/dist/functions/date/date.spec.js +15 -0
- package/dist/functions/date/index.js +4 -0
- package/dist/functions/index.js +4 -2
- package/dist/globalSearch.module-Ejp7X0dO.js +9 -0
- package/dist/hooks/index.js +4 -2
- package/dist/hooks/useAccountSelector.js +214 -0
- package/dist/index-B6sKSsN9.js +2951 -0
- package/dist/index.js +304 -288
- package/dist/types/languageCode.js +1 -0
- package/dist/types/lib/components/Account/AccountMenu.d.ts +1 -1
- package/dist/types/lib/components/Account/AccountMenuButton.d.ts +11 -0
- package/dist/types/lib/components/Account/AccountMenuButton.stories.d.ts +31 -0
- package/dist/types/lib/components/Avatar/Avatar.d.ts +3 -1
- package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +16 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Bookmarks/BookmarksSection.d.ts +1 -3
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +1 -19
- package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +3 -7
- package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +1 -0
- package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +2 -1
- package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +29 -0
- package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +11 -0
- package/dist/types/lib/components/GlobalHeader/DigdirLogomark.d.ts +5 -0
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +20 -0
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.stories.d.ts +27 -0
- package/dist/types/lib/components/GlobalHeader/GlobalHeaderBase.d.ts +9 -0
- package/dist/types/lib/components/GlobalHeader/GlobalSearch.d.ts +4 -0
- package/dist/types/lib/components/GlobalHeader/GlobalSearchButton.d.ts +4 -0
- package/dist/types/lib/components/GlobalHeader/HeaderGroup.d.ts +6 -0
- package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +10 -0
- package/dist/types/lib/components/GlobalHeader/index.d.ts +2 -0
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +3 -5
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +6 -8
- package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.d.ts +2 -3
- package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.stories.d.ts +5 -9
- package/dist/types/lib/components/GlobalMenu/LocaleButton.d.ts +3 -0
- package/dist/types/lib/components/GlobalMenu/LocaleSwitcher.d.ts +7 -0
- package/dist/types/lib/components/GlobalMenu/index.d.ts +1 -4
- package/dist/types/lib/components/GlobalMenu_old/BackButton.d.ts +7 -0
- package/dist/types/lib/components/{GlobalMenu → GlobalMenu_old}/CurrentAccount.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu_old/EndUserLabel.d.ts +5 -0
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.d.ts +18 -0
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.stories.d.ts +30 -0
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenuBase.d.ts +15 -0
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.d.ts +13 -0
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.stories.d.ts +19 -0
- package/dist/types/lib/components/GlobalMenu_old/LogoutButton.d.ts +7 -0
- package/dist/types/lib/components/GlobalMenu_old/index.d.ts +6 -0
- package/dist/types/lib/components/Header/Header.d.ts +2 -2
- package/dist/types/lib/components/Header/Header.stories.d.ts +2 -2
- package/dist/types/lib/components/Layout/Layout.d.ts +4 -2
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +29 -5
- package/dist/types/lib/components/Notifications/NotificationItem.d.ts +7 -0
- package/dist/types/lib/components/Notifications/NotificationItemBase.d.ts +15 -0
- package/dist/types/lib/components/Notifications/NotificationItemControls.d.ts +10 -0
- package/dist/types/lib/components/Notifications/NotificationItemIcon.d.ts +11 -0
- package/dist/types/lib/components/Notifications/Notifications.stories.d.ts +10 -0
- package/dist/types/lib/components/Notifications/index.d.ts +4 -0
- package/dist/types/lib/components/RootProvider/RootProvider.d.ts +9 -4
- package/dist/types/lib/components/Settings/SettingsItem.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +2 -1
- package/dist/types/lib/functions/date/date.d.ts +6 -0
- package/dist/types/lib/functions/date/date.spec.d.ts +1 -0
- package/dist/types/lib/functions/date/index.d.ts +1 -0
- package/dist/types/lib/functions/index.d.ts +1 -0
- package/dist/types/lib/hooks/index.d.ts +1 -0
- package/dist/types/lib/hooks/useAccountSelector.d.ts +62 -0
- package/dist/types/lib/types/index.d.ts +1 -0
- package/dist/types/lib/types/languageCode.d.ts +1 -0
- package/dist/usePagination-cq1YWZkE.js +889 -0
- package/package.json +5 -1
- package/dist/usePagination-B24SmI8E.js +0 -3835
- /package/dist/components/{GlobalMenu → GlobalMenu_old}/CurrentAccount.js +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as a, jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { fromStringToColor as
|
|
7
|
-
import '../../assets/Avatar.css';const
|
|
8
|
-
avatar:
|
|
9
|
-
shape:
|
|
10
|
-
label:
|
|
11
|
-
image:
|
|
12
|
-
deletedIcon:
|
|
13
|
-
},
|
|
2
|
+
import { jsx as a, jsxs as j } from "react/jsx-runtime";
|
|
3
|
+
import { c as y } from "../../index-L8X2o7IH.js";
|
|
4
|
+
import { useState as A } from "react";
|
|
5
|
+
import { Skeleton as E } from "../Skeleton/Skeleton.js";
|
|
6
|
+
import { fromStringToColor as q } from "./color.js";
|
|
7
|
+
import '../../assets/Avatar.css';const z = "_avatar_1en7r_1", B = "_shape_1en7r_20", H = "_label_1en7r_31", L = "_image_1en7r_41", M = "_deletedIcon_1en7r_47", r = {
|
|
8
|
+
avatar: z,
|
|
9
|
+
shape: B,
|
|
10
|
+
label: H,
|
|
11
|
+
image: L,
|
|
12
|
+
deletedIcon: M
|
|
13
|
+
}, J = (e) => typeof e == "object" && e !== null && "name" in e, K = ({
|
|
14
14
|
type: e = "person",
|
|
15
15
|
isParent: n,
|
|
16
16
|
isDeleted: m = !1,
|
|
@@ -24,12 +24,13 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
|
|
|
24
24
|
customLabel: v,
|
|
25
25
|
loading: c,
|
|
26
26
|
className: b,
|
|
27
|
+
colorKey: C,
|
|
27
28
|
style: i = {}
|
|
28
29
|
}) => {
|
|
29
|
-
const [
|
|
30
|
+
const [I, w] = A(!1), x = u || e === "person" ? "circle" : "square", N = g || e === "person" ? "light" : "dark";
|
|
30
31
|
let o = _;
|
|
31
32
|
e === "company" && typeof n == "boolean" && (o = n ? "solid" : "outline");
|
|
32
|
-
const { backgroundColor: p, foregroundColor: d } =
|
|
33
|
+
const { backgroundColor: p, foregroundColor: d } = q(C ?? l, N), k = (l[0] ?? "").toUpperCase(), s = t && !I, S = !c && !s ? {
|
|
33
34
|
...i,
|
|
34
35
|
backgroundColor: o === "outline" ? d : p,
|
|
35
36
|
color: o === "outline" ? p : d
|
|
@@ -37,12 +38,12 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
|
|
|
37
38
|
return /* @__PURE__ */ a(
|
|
38
39
|
"div",
|
|
39
40
|
{
|
|
40
|
-
className:
|
|
41
|
-
style:
|
|
42
|
-
"data-shape":
|
|
41
|
+
className: y(r.avatar, b),
|
|
42
|
+
style: S,
|
|
43
|
+
"data-shape": x,
|
|
43
44
|
"data-size": h,
|
|
44
45
|
"aria-hidden": !0,
|
|
45
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ j(E, { loading: c, className: r.shape, variant: "circle", children: [
|
|
46
47
|
/* @__PURE__ */ a("div", { className: r.shape, "data-variant": o, children: s && /* @__PURE__ */ a(
|
|
47
48
|
"img",
|
|
48
49
|
{
|
|
@@ -50,11 +51,11 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
|
|
|
50
51
|
className: r.image,
|
|
51
52
|
alt: f || t,
|
|
52
53
|
onError: () => {
|
|
53
|
-
|
|
54
|
+
w(!0);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
) }),
|
|
57
|
-
!s && /* @__PURE__ */ a("span", { className: r.label, children: v ||
|
|
58
|
+
!s && /* @__PURE__ */ a("span", { className: r.label, children: v || k }),
|
|
58
59
|
m && /* @__PURE__ */ a(
|
|
59
60
|
"svg",
|
|
60
61
|
{
|
|
@@ -73,6 +74,6 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
|
|
|
73
74
|
);
|
|
74
75
|
};
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
K as Avatar,
|
|
78
|
+
J as isAvatarProps
|
|
78
79
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { QueryLabel as
|
|
5
|
+
import { QueryLabel as i } from "../Searchbar/QueryLabel.js";
|
|
6
6
|
import { ListItem as s } from "../List/ListItem.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
8
|
+
const j = ({ loading: r, title: m, ariaLabel: e, params: o, icon: p, ...f }) => /* @__PURE__ */ t(
|
|
9
9
|
s,
|
|
10
10
|
{
|
|
11
|
-
...
|
|
11
|
+
...f,
|
|
12
12
|
loading: r,
|
|
13
|
+
icon: p,
|
|
13
14
|
title: m,
|
|
14
|
-
ariaLabel:
|
|
15
|
-
|
|
15
|
+
ariaLabel: e,
|
|
16
|
+
description: !r && o && /* @__PURE__ */ t(i, { params: o }),
|
|
17
|
+
label: !m && !r && !o && /* @__PURE__ */ t(i, { params: o })
|
|
16
18
|
}
|
|
17
19
|
);
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
j as BookmarksListItem
|
|
20
22
|
};
|
|
@@ -1,40 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { createElement as
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as a } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { Typography as
|
|
4
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
5
5
|
import { Heading as k } from "../Typography/Heading.js";
|
|
6
6
|
import { BookmarksListItem as l } from "./BookmarksListItem.js";
|
|
7
|
-
import { EditableBookmark as
|
|
7
|
+
import { EditableBookmark as f } from "./EditableBookmark.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { List as
|
|
9
|
+
import { List as t } from "../List/List.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Section as
|
|
12
|
-
const
|
|
11
|
+
import { Section as h } from "../Page/Section.js";
|
|
12
|
+
const H = ({
|
|
13
13
|
loading: o,
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
16
|
-
items:
|
|
17
|
-
untitled:
|
|
18
|
-
titleField:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
o ? /* @__PURE__ */ i(p, { children: /* @__PURE__ */ i(l, { title: e, loading: o, size: "sm" }) }) : t.length > 0 && /* @__PURE__ */ i(p, { spacing: "xs", children: t.map((r) => /* @__PURE__ */ f(
|
|
24
|
-
x,
|
|
14
|
+
title: m,
|
|
15
|
+
description: p,
|
|
16
|
+
items: e,
|
|
17
|
+
untitled: s = "Untitled bookmark",
|
|
18
|
+
titleField: n
|
|
19
|
+
}) => /* @__PURE__ */ d(h, { padding: 6, spacing: 4, bleed: !0, children: [
|
|
20
|
+
/* @__PURE__ */ r(k, { size: "md", children: m }),
|
|
21
|
+
o ? /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(l, { title: m, loading: o, size: "sm" }) }) : e.length > 0 && /* @__PURE__ */ r(t, { spacing: "xs", children: e.map((i) => /* @__PURE__ */ a(
|
|
22
|
+
f,
|
|
25
23
|
{
|
|
26
|
-
...
|
|
27
|
-
key:
|
|
28
|
-
loading: o ||
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
untitled: d,
|
|
32
|
-
titleField: a,
|
|
24
|
+
...i,
|
|
25
|
+
key: i.id,
|
|
26
|
+
loading: o || i.loading,
|
|
27
|
+
untitled: s,
|
|
28
|
+
titleField: n,
|
|
33
29
|
size: "sm"
|
|
34
30
|
}
|
|
35
31
|
)) }),
|
|
36
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ r(c, { size: "xs", children: p })
|
|
37
33
|
] });
|
|
38
34
|
export {
|
|
39
|
-
|
|
35
|
+
H as BookmarksSection
|
|
40
36
|
};
|
|
@@ -1,74 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as s, Fragment as b, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g } from "react";
|
|
3
|
+
import { Icon as d } from "../Icon/Icon.js";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { IconButton as
|
|
6
|
-
import { BookmarksListItem as
|
|
5
|
+
import { Button as u } from "../Button/Button.js";
|
|
6
|
+
import { IconButton as C } from "../Button/IconButton.js";
|
|
7
|
+
import { BookmarksListItem as L } from "./BookmarksListItem.js";
|
|
7
8
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { QueryLabel as
|
|
9
|
+
import { QueryLabel as j } from "../Searchbar/QueryLabel.js";
|
|
10
|
+
import { TextField as F } from "../Forms/TextField.js";
|
|
9
11
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Flex as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { S as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title: r,
|
|
12
|
+
import { Flex as x } from "../Page/Flex.js";
|
|
13
|
+
import { SettingsModal as M } from "../Settings/SettingsModal.js";
|
|
14
|
+
import { S as O } from "../../Pencil-BVHLEoQy.js";
|
|
15
|
+
import { S as h } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
16
|
+
const U = ({
|
|
17
|
+
id: k,
|
|
18
|
+
title: t,
|
|
18
19
|
untitled: e,
|
|
19
|
-
params:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
expandIconAltText: S,
|
|
28
|
-
...u
|
|
20
|
+
params: m,
|
|
21
|
+
titleField: a,
|
|
22
|
+
saveButton: i,
|
|
23
|
+
removeButton: n,
|
|
24
|
+
inputValue: l,
|
|
25
|
+
onChange: c,
|
|
26
|
+
editIconAltText: S = "Edit",
|
|
27
|
+
...v
|
|
29
28
|
}) => {
|
|
30
|
-
const [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
children: /* @__PURE__ */ f(d, { padding: 4, spacing: 4, children: [
|
|
51
|
-
/* @__PURE__ */ o(I, { params: n }),
|
|
52
|
-
s && /* @__PURE__ */ o(
|
|
53
|
-
j,
|
|
29
|
+
const [I, y] = g(""), [p, f] = g(!1), z = (r) => {
|
|
30
|
+
r.preventDefault(), r.stopPropagation(), f(!0);
|
|
31
|
+
}, E = () => {
|
|
32
|
+
f(!1);
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ s(b, { children: [
|
|
35
|
+
/* @__PURE__ */ o(
|
|
36
|
+
L,
|
|
37
|
+
{
|
|
38
|
+
...v,
|
|
39
|
+
id: k,
|
|
40
|
+
title: t || e,
|
|
41
|
+
ariaLabel: t || e,
|
|
42
|
+
params: m,
|
|
43
|
+
icon: /* @__PURE__ */ o(d, { svgElement: h }),
|
|
44
|
+
linkIcon: !0,
|
|
45
|
+
controls: /* @__PURE__ */ o(
|
|
46
|
+
C,
|
|
54
47
|
{
|
|
55
|
-
|
|
56
|
-
size: "
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
typeof l == "function" ? l(c) : z(c.target.value);
|
|
61
|
-
}
|
|
48
|
+
variant: "outline",
|
|
49
|
+
size: "xs",
|
|
50
|
+
icon: O,
|
|
51
|
+
onClick: z,
|
|
52
|
+
iconAltText: S
|
|
62
53
|
}
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
p && /* @__PURE__ */ o(
|
|
58
|
+
M,
|
|
59
|
+
{
|
|
60
|
+
icon: /* @__PURE__ */ o(d, { svgElement: h }),
|
|
61
|
+
title: t || e,
|
|
62
|
+
open: p,
|
|
63
|
+
onClose: E,
|
|
64
|
+
children: /* @__PURE__ */ s(x, { direction: "col", spacing: 4, children: [
|
|
65
|
+
/* @__PURE__ */ o(j, { params: m }),
|
|
66
|
+
a && /* @__PURE__ */ o(
|
|
67
|
+
F,
|
|
68
|
+
{
|
|
69
|
+
...a,
|
|
70
|
+
size: "sm",
|
|
71
|
+
name: "title",
|
|
72
|
+
value: typeof l == "string" ? l : I,
|
|
73
|
+
onChange: (r) => {
|
|
74
|
+
typeof c == "function" ? c(r) : y(r.target.value);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
(i || n) && /* @__PURE__ */ s(x, { as: "footer", direction: "row", spacing: 2, children: [
|
|
79
|
+
i && /* @__PURE__ */ o(u, { ...i, size: "sm" }),
|
|
80
|
+
n && /* @__PURE__ */ o(u, { ...n, variant: "outline", size: "sm" })
|
|
81
|
+
] })
|
|
67
82
|
] })
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
);
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] });
|
|
71
86
|
};
|
|
72
87
|
export {
|
|
73
|
-
|
|
88
|
+
U as EditableBookmark
|
|
74
89
|
};
|
|
@@ -9,7 +9,7 @@ import "../Snackbar/useSnackbar.js";
|
|
|
9
9
|
import { Flex as t } from "../Page/Flex.js";
|
|
10
10
|
import { Section as d } from "../Page/Section.js";
|
|
11
11
|
import { DashboardIcon as h } from "./DashboardIcon.js";
|
|
12
|
-
const H = ({ icon: i, title: m, description: p, loading: r, children: s }) => /* @__PURE__ */ o(d, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs",
|
|
12
|
+
const H = ({ icon: i, title: m, description: p, loading: r, children: s }) => /* @__PURE__ */ o(d, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", children: [
|
|
13
13
|
/* @__PURE__ */ o(t, { direction: "row", align: "center", spacing: 3, children: [
|
|
14
14
|
i && /* @__PURE__ */ e(h, { loading: r, icon: i }),
|
|
15
15
|
/* @__PURE__ */ o(t, { direction: "col", spacing: 0, children: [
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/DrawerBase.css';const
|
|
4
|
-
drawer:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/DrawerBase.css';const c = "_drawer_tvpob_1", m = {
|
|
4
|
+
drawer: c
|
|
5
|
+
}, w = ({
|
|
6
6
|
placement: a = "inline",
|
|
7
|
-
open:
|
|
8
|
-
className:
|
|
9
|
-
children:
|
|
10
|
-
as:
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
open: t = !1,
|
|
8
|
+
className: e,
|
|
9
|
+
children: o,
|
|
10
|
+
as: r = "div",
|
|
11
|
+
dataLayout: n = "mobile"
|
|
12
|
+
}) => /* @__PURE__ */ d(
|
|
13
|
+
r,
|
|
13
14
|
{
|
|
14
|
-
className:
|
|
15
|
+
className: s(m.drawer, e),
|
|
15
16
|
"data-placement": a,
|
|
16
17
|
"data-variant": "default",
|
|
17
18
|
"data-color": "company",
|
|
18
|
-
"data-expanded":
|
|
19
|
-
|
|
19
|
+
"data-expanded": t,
|
|
20
|
+
"data-layout": n,
|
|
21
|
+
children: o
|
|
20
22
|
}
|
|
21
23
|
);
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
w as DrawerBase
|
|
24
26
|
};
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useClickOutside as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useRef as l } from "react";
|
|
4
|
+
import { useClickOutside as f } from "../../hooks/useClickOutside.js";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
5
7
|
import '../../assets/DropdownBase.css';const u = "_dropdown_1tyzv_1", w = {
|
|
6
8
|
dropdown: u
|
|
7
|
-
},
|
|
9
|
+
}, g = ({
|
|
8
10
|
layout: t,
|
|
9
11
|
size: a = "auto",
|
|
10
12
|
placement: d = "left",
|
|
11
13
|
padding: e = !0,
|
|
12
|
-
open:
|
|
13
|
-
className:
|
|
14
|
+
open: r = !1,
|
|
15
|
+
className: n,
|
|
14
16
|
children: s,
|
|
15
17
|
onClose: p,
|
|
16
18
|
as: m = "div"
|
|
17
19
|
}) => {
|
|
18
|
-
const o =
|
|
19
|
-
return
|
|
20
|
+
const o = l(null);
|
|
21
|
+
return f(o, p), /* @__PURE__ */ i(
|
|
20
22
|
m,
|
|
21
23
|
{
|
|
22
24
|
ref: o,
|
|
23
|
-
className:
|
|
25
|
+
className: c(w.dropdown, n),
|
|
24
26
|
"data-layout": t,
|
|
25
27
|
"data-theme": "default",
|
|
26
28
|
"data-shadow": "md",
|
|
27
29
|
"data-size": a,
|
|
28
30
|
"data-placement": d,
|
|
29
31
|
"data-padding": e,
|
|
30
|
-
"data-expanded":
|
|
32
|
+
"data-expanded": r,
|
|
31
33
|
children: s
|
|
32
34
|
}
|
|
33
35
|
);
|
|
34
36
|
};
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
g as DropdownBase
|
|
37
39
|
};
|
|
@@ -3,10 +3,10 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as k, useRef as N } from "react";
|
|
4
4
|
import { useClickOutside as T } from "../../hooks/useClickOutside.js";
|
|
5
5
|
import { useEscapeKey as g } from "../../hooks/useEscapeKey.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Icon as x } from "../Icon/Icon.js";
|
|
7
7
|
import "../../index-L8X2o7IH.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ButtonBase as y } from "../Button/ButtonBase.js";
|
|
9
|
+
import { ButtonIcon as v } from "../Button/ButtonIcon.js";
|
|
10
10
|
import "../RootProvider/RootProvider.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "_button_1t2id_13", z = "_dropdown_1t2id_21", E = "_dropdownItem_1t2id_45", O = "_itemTitle_1t2id_71", n = {
|
|
@@ -37,11 +37,11 @@ import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "
|
|
|
37
37
|
const a = e && s ? s : _;
|
|
38
38
|
return /* @__PURE__ */ m("div", { className: n.container, ref: l, children: [
|
|
39
39
|
e && /* @__PURE__ */ o("div", { className: n.dropdown, "data-color": d, children: h.map((t, r) => /* @__PURE__ */ m("button", { className: n.dropdownItem, onClick: C(t.onClick), type: "button", children: [
|
|
40
|
-
/* @__PURE__ */ o(
|
|
40
|
+
/* @__PURE__ */ o(x, { svgElement: t.icon, size: "md", color: "inherit" }),
|
|
41
41
|
/* @__PURE__ */ o("span", { className: n.itemTitle, children: t.title })
|
|
42
42
|
] }, r)) }),
|
|
43
43
|
/* @__PURE__ */ o(
|
|
44
|
-
|
|
44
|
+
y,
|
|
45
45
|
{
|
|
46
46
|
className: n.button,
|
|
47
47
|
variant: p,
|
|
@@ -51,7 +51,7 @@ import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "
|
|
|
51
51
|
"data-testid": I,
|
|
52
52
|
"aria-label": w,
|
|
53
53
|
"aria-expanded": e,
|
|
54
|
-
children: a && /* @__PURE__ */ o(
|
|
54
|
+
children: a && /* @__PURE__ */ o(v, { icon: a, size: f })
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] });
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
1
|
+
import { A as o } from "../../Alert-BzifOfXl.js";
|
|
2
|
+
import { B as D, C as r, a as t, b as i, D as p, L as n, c as x, d as f, P as m, e as g, f as d, S, g as l, T as P, u as b } from "../../usePagination-cq1YWZkE.js";
|
|
3
|
+
import { B as c } from "../../Button-B0t0vz2h.js";
|
|
4
|
+
import { D as C } from "../../index-D3Rt9ate.js";
|
|
5
|
+
import { H as k } from "../../Heading-By5DKz2H.js";
|
|
4
6
|
import { P as T } from "../../Paragraph-Bm-eoPYv.js";
|
|
5
|
-
import {
|
|
7
|
+
import { S as H } from "../../index-B6sKSsN9.js";
|
|
8
|
+
import { S as v } from "../../Spinner-BDXfwXIh.js";
|
|
9
|
+
import { V as I } from "../../index-CnWc2FNH.js";
|
|
6
10
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
o as DsAlert,
|
|
12
|
+
D as DsBadge,
|
|
13
|
+
c as DsButton,
|
|
14
|
+
r as DsCheckbox,
|
|
15
|
+
t as DsChip,
|
|
16
|
+
i as DsCombobox,
|
|
17
|
+
C as DsDetails,
|
|
14
18
|
p as DsDialog,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
k as DsHeading,
|
|
20
|
+
n as DsLink,
|
|
21
|
+
x as DsListItem,
|
|
18
22
|
f as DsListUnordered,
|
|
19
23
|
m as DsPagination,
|
|
20
24
|
T as DsParagraph,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
g as DsPopover,
|
|
26
|
+
H as DsSearch,
|
|
27
|
+
d as DsSkeleton,
|
|
28
|
+
v as DsSpinner,
|
|
25
29
|
S as DsSwitch,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
l as DsTabs,
|
|
31
|
+
P as DsTextfield,
|
|
32
|
+
I as DsValidationMessage,
|
|
33
|
+
b as useDsPagination
|
|
30
34
|
};
|
|
@@ -2,10 +2,10 @@ import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Field as e } from "./Field.js";
|
|
7
6
|
import { Label as c } from "./Label.js";
|
|
8
7
|
import { Input as n } from "./Input.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const l = ({ size: t, color: m, label: r, ...i }) => /* @__PURE__ */ p(e, { size: t, color: m, children: [
|
|
10
10
|
/* @__PURE__ */ o(n, { ...i, type: "checkbox" }),
|
|
11
11
|
!!r && /* @__PURE__ */ o(c, { children: r })
|
|
@@ -2,9 +2,9 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Checkbox as i } from "./Checkbox.js";
|
|
7
6
|
import { OptionsBase as e } from "./OptionsBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
const b = ({ options: r = [], ...t }) => /* @__PURE__ */ o(e, { ...t, children: r.map((m, p) => /* @__PURE__ */ o(i, { ...m }, p)) });
|
|
9
9
|
export {
|
|
10
10
|
b as CheckboxOptions
|
|
@@ -3,9 +3,9 @@ import "../../index-L8X2o7IH.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { Typography as e } from "../Typography/Typography.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import "../Snackbar/useSnackbar.js";
|
|
7
6
|
import { Field as n } from "./Field.js";
|
|
8
7
|
import { Label as c } from "./Label.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const g = ({ size: r, color: p, label: o, helperText: i, children: t, ...s }) => /* @__PURE__ */ d(n, { size: r, color: p, ...s, children: [
|
|
10
10
|
o && /* @__PURE__ */ m(c, { size: r, children: o }),
|
|
11
11
|
t,
|
|
@@ -2,9 +2,9 @@ import { jsxs as i, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Fieldset as e } from "./Fieldset.js";
|
|
7
6
|
import { Legend as p } from "./Legend.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
const h = ({ legend: r, children: o, ...t }) => /* @__PURE__ */ i(e, { ...t, children: [
|
|
9
9
|
!!r && /* @__PURE__ */ m(p, { children: r }),
|
|
10
10
|
o
|
|
@@ -2,10 +2,10 @@ import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Field as e } from "./Field.js";
|
|
7
6
|
import { Label as d } from "./Label.js";
|
|
8
7
|
import { Input as n } from "./Input.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const u = ({ size: i, color: t, label: r, ...m }) => /* @__PURE__ */ p(e, { size: i, color: t, children: [
|
|
10
10
|
/* @__PURE__ */ o(n, { ...m, type: "radio" }),
|
|
11
11
|
!!r && /* @__PURE__ */ o(d, { children: r })
|
|
@@ -2,9 +2,9 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Radio as o } from "./Radio.js";
|
|
7
6
|
import { OptionsBase as p } from "./OptionsBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
const R = ({ name: i, options: t = [], ...a }) => /* @__PURE__ */ m(p, { ...a, children: t.map((r, e) => /* @__PURE__ */ m(o, { name: (r == null ? void 0 : r.name) || i, ...r }, e)) });
|
|
9
9
|
export {
|
|
10
10
|
R as RadioOptions
|
|
@@ -4,9 +4,9 @@ import "../../index-L8X2o7IH.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import { IconButton as f } from "../Button/IconButton.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import "../Snackbar/useSnackbar.js";
|
|
8
7
|
import { Input as _ } from "./Input.js";
|
|
9
8
|
import { FieldBase as d } from "./FieldBase.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { S as u } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
11
11
|
import { S as k } from "../../XMark-tKk6aExO.js";
|
|
12
12
|
import '../../assets/SearchField.css';const g = "_field_zk1f7_1", h = "_icon_zk1f7_5", z = "_input_zk1f7_14", S = "_clear_zk1f7_24", o = {
|
|
@@ -2,9 +2,9 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../Snackbar/useSnackbar.js";
|
|
6
5
|
import { Select as i } from "./Select.js";
|
|
7
6
|
import { FieldBase as p } from "./FieldBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
const F = ({ size: r = "md", label: t, children: m, ...e }) => /* @__PURE__ */ o(p, { label: t, size: r, children: /* @__PURE__ */ o(i, { ...e, size: r, children: m }) });
|
|
9
9
|
export {
|
|
10
10
|
F as SelectField
|