@altinn/altinn-components 0.56.16 → 0.56.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/PageMenu.css +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +41 -0
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +35 -0
- package/dist/components/{Settings/BookmarksSettingsItemLabel.js → Bookmarks/BookmarkSettingsItemLabel.js} +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsList.js +18 -0
- package/dist/components/Bookmarks/index.js +8 -0
- package/dist/components/LayoutAction/LayoutAction.js +18 -18
- package/dist/components/Page/PageMenu.js +14 -9
- package/dist/components/Settings/index.js +8 -12
- package/dist/components/index.js +451 -449
- package/dist/index.js +463 -461
- package/dist/types/lib/components/Bookmarks/BookmarkModal.d.ts +18 -0
- package/dist/types/lib/components/Bookmarks/BookmarkModal.stories.d.ts +5 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsItem.d.ts +22 -0
- package/dist/types/lib/components/{Settings/BookmarksSettingsItemLabel.d.ts → Bookmarks/BookmarkSettingsItemLabel.d.ts} +2 -2
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.d.ts +6 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.stories.d.ts +19 -0
- package/dist/types/lib/components/Bookmarks/index.d.ts +3 -0
- package/dist/types/lib/components/Page/PageMenu.d.ts +11 -7
- package/dist/types/lib/components/Page/PageMenu.stories.d.ts +0 -1
- package/dist/types/lib/components/Settings/index.d.ts +0 -2
- package/dist/types/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/Settings/BookmarksSettingsItem.js +0 -90
- package/dist/components/Settings/BookmarksSettingsList.js +0 -46
- package/dist/types/lib/components/Settings/BookmarksSettingsItem.d.ts +0 -32
- package/dist/types/lib/components/Settings/BookmarksSettingsList.d.ts +0 -12
package/dist/assets/PageMenu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._buttonGroup_1ybcg_1{display:flex;flex-direction:column;padding:.5rem;gap:.5rem}@media(min-width:1024px){._buttonGroup_1ybcg_1{flex-direction:row}}._button_1ybcg_1{justify-content:flex-start}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { useState as u } from "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
7
|
+
import { QueryLabel as g } from "../Searchbar/QueryLabel.js";
|
|
8
|
+
import { TextField as v } from "../Forms/TextField.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
import { SettingsModal as c } from "../Settings/SettingsModal.js";
|
|
11
|
+
import { S as h } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
12
|
+
const B = ({
|
|
13
|
+
icon: e = h,
|
|
14
|
+
title: n,
|
|
15
|
+
params: t,
|
|
16
|
+
titleField: o,
|
|
17
|
+
buttons: m,
|
|
18
|
+
open: s = !1,
|
|
19
|
+
onClose: p
|
|
20
|
+
}) => {
|
|
21
|
+
const [i, f] = u("");
|
|
22
|
+
return /* @__PURE__ */ l(c, { icon: e, title: n, buttons: m, open: s, onClose: p, children: [
|
|
23
|
+
/* @__PURE__ */ a(g, { params: t }),
|
|
24
|
+
/* @__PURE__ */ a(
|
|
25
|
+
v,
|
|
26
|
+
{
|
|
27
|
+
...o,
|
|
28
|
+
label: o?.label || "Gi søket et navn",
|
|
29
|
+
size: "sm",
|
|
30
|
+
name: "title",
|
|
31
|
+
value: typeof o?.value == "string" ? o?.value : i,
|
|
32
|
+
onChange: (r) => {
|
|
33
|
+
typeof o?.onChange == "function" ? o.onChange(r) : f(r.target.value);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] });
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
B as BookmarkModal
|
|
41
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-p1eeF8LQ.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../Button/Button.js";
|
|
5
|
+
import { ContextMenu as a } from "../ContextMenu/ContextMenu.js";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
|
+
import { SettingsItemBase as f } from "../Settings/SettingsItemBase.js";
|
|
10
|
+
import { BookmarkSettingsItemLabel as g } from "./BookmarkSettingsItemLabel.js";
|
|
11
|
+
import { S as k } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
12
|
+
const C = ({
|
|
13
|
+
id: m,
|
|
14
|
+
icon: i = k,
|
|
15
|
+
loading: o,
|
|
16
|
+
title: e,
|
|
17
|
+
highlightWords: p,
|
|
18
|
+
params: s,
|
|
19
|
+
contextMenu: r,
|
|
20
|
+
...n
|
|
21
|
+
}) => /* @__PURE__ */ t(
|
|
22
|
+
f,
|
|
23
|
+
{
|
|
24
|
+
...n,
|
|
25
|
+
id: m,
|
|
26
|
+
icon: i,
|
|
27
|
+
loading: o,
|
|
28
|
+
label: /* @__PURE__ */ t(g, { highlightWords: p, loading: o, params: s, title: e }),
|
|
29
|
+
controls: r && /* @__PURE__ */ t(a, { ...r }),
|
|
30
|
+
linkIcon: !0
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
export {
|
|
34
|
+
C as BookmarkSettingsItem
|
|
35
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as e, createElement as p } from "react";
|
|
3
|
+
import "../../index-p1eeF8LQ.js";
|
|
4
|
+
import "../Button/Button.js";
|
|
5
|
+
import { BookmarkSettingsItem as l } from "./BookmarkSettingsItem.js";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import { Divider as s } from "../Divider/Divider.js";
|
|
9
|
+
import { List as d } from "../List/List.js";
|
|
10
|
+
import "../Snackbar/useSnackbar.js";
|
|
11
|
+
import { SettingsSection as a } from "../Settings/SettingsSection.js";
|
|
12
|
+
const v = ({ loading: i, items: o }) => !o || o.length < 1 ? null : /* @__PURE__ */ t(a, { children: /* @__PURE__ */ t(d, { size: "sm", children: o.map((r, m) => /* @__PURE__ */ n(e, { children: [
|
|
13
|
+
m > 0 && /* @__PURE__ */ t(s, {}),
|
|
14
|
+
/* @__PURE__ */ p(l, { ...r, key: r.id, loading: i || r.loading })
|
|
15
|
+
] }, r.id)) }) });
|
|
16
|
+
export {
|
|
17
|
+
v as BookmarkSettingsList
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookmarkSettingsItem as t } from "./BookmarkSettingsItem.js";
|
|
2
|
+
import { BookmarkSettingsList as e } from "./BookmarkSettingsList.js";
|
|
3
|
+
import { BookmarkModal as a } from "./BookmarkModal.js";
|
|
4
|
+
export {
|
|
5
|
+
a as BookmarkModal,
|
|
6
|
+
t as BookmarkSettingsItem,
|
|
7
|
+
e as BookmarkSettingsList
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
@@ -9,30 +9,30 @@ import { ActionHeader as f } from "./ActionHeader.js";
|
|
|
9
9
|
import { ActionFooter as u } from "./ActionFooter.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { PageMenu as x } from "../Page/PageMenu.js";
|
|
12
|
-
const
|
|
13
|
-
color:
|
|
14
|
-
theme:
|
|
15
|
-
hidden:
|
|
12
|
+
const H = ({
|
|
13
|
+
color: m = "company",
|
|
14
|
+
theme: i = "base",
|
|
15
|
+
hidden: r,
|
|
16
16
|
title: p,
|
|
17
|
-
menu:
|
|
18
|
-
dismissable:
|
|
19
|
-
onDismiss:
|
|
20
|
-
children:
|
|
21
|
-
}) => /* @__PURE__ */
|
|
17
|
+
menu: t,
|
|
18
|
+
dismissable: e,
|
|
19
|
+
onDismiss: a,
|
|
20
|
+
children: c
|
|
21
|
+
}) => /* @__PURE__ */ n(s, { children: [
|
|
22
22
|
/* @__PURE__ */ o(
|
|
23
23
|
f,
|
|
24
24
|
{
|
|
25
|
-
theme:
|
|
26
|
-
color:
|
|
27
|
-
hidden:
|
|
25
|
+
theme: i,
|
|
26
|
+
color: m,
|
|
27
|
+
hidden: r,
|
|
28
28
|
title: p,
|
|
29
|
-
dismissable:
|
|
30
|
-
onDismiss:
|
|
29
|
+
dismissable: e,
|
|
30
|
+
onDismiss: a
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */ o(u, { hidden:
|
|
33
|
+
c,
|
|
34
|
+
/* @__PURE__ */ o(u, { hidden: r, children: t && /* @__PURE__ */ o(x, { ...t }) })
|
|
35
35
|
] });
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
H as LayoutAction
|
|
38
38
|
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { Icon as u } from "../Icon/Icon.js";
|
|
3
4
|
import "react";
|
|
4
|
-
import "../Button/Button.js";
|
|
5
|
+
import { Button as p } from "../Button/Button.js";
|
|
5
6
|
import "react-dom";
|
|
6
7
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { MenuItem as s } from "../Menu/MenuItem.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/PageMenu.css';const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import '../../assets/PageMenu.css';const c = "_buttonGroup_1ybcg_1", a = "_button_1ybcg_1", r = {
|
|
10
|
+
buttonGroup: c,
|
|
11
|
+
button: a
|
|
12
|
+
}, v = ({ items: s }) => /* @__PURE__ */ t("nav", { "data-size": "sm", className: r.buttonGroup, children: s?.map((o) => {
|
|
13
|
+
const { icon: n, title: e, ...i } = o;
|
|
14
|
+
return /* @__PURE__ */ m(p, { variant: "ghost", className: r.button, size: "sm", ...i, children: [
|
|
15
|
+
n && /* @__PURE__ */ t(u, { svgElement: n }),
|
|
16
|
+
/* @__PURE__ */ t("span", { children: e })
|
|
17
|
+
] }, o.id);
|
|
18
|
+
}) });
|
|
14
19
|
export {
|
|
15
|
-
|
|
20
|
+
v as PageMenu
|
|
16
21
|
};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { SettingsItem as
|
|
1
|
+
import { SettingsItem as o } from "./SettingsItem.js";
|
|
2
2
|
import { SettingsItemBase as m } from "./SettingsItemBase.js";
|
|
3
|
-
import { SettingsList as
|
|
4
|
-
import { SettingsSection as
|
|
3
|
+
import { SettingsList as f } from "./SettingsList.js";
|
|
4
|
+
import { SettingsSection as i } from "./SettingsSection.js";
|
|
5
5
|
import { SettingsModal as x } from "./SettingsModal.js";
|
|
6
6
|
import { UsedByLog as S } from "./UsedByLog.js";
|
|
7
|
-
import { UsedByLogItem as
|
|
8
|
-
import { BookmarksSettingsItem as I } from "./BookmarksSettingsItem.js";
|
|
9
|
-
import { BookmarksSettingsList as d } from "./BookmarksSettingsList.js";
|
|
7
|
+
import { UsedByLogItem as B } from "./UsedByLogItem.js";
|
|
10
8
|
export {
|
|
11
|
-
|
|
12
|
-
d as BookmarksSettingsList,
|
|
13
|
-
e as SettingsItem,
|
|
9
|
+
o as SettingsItem,
|
|
14
10
|
m as SettingsItemBase,
|
|
15
|
-
|
|
11
|
+
f as SettingsList,
|
|
16
12
|
x as SettingsModal,
|
|
17
|
-
|
|
13
|
+
i as SettingsSection,
|
|
18
14
|
S as UsedByLog,
|
|
19
|
-
|
|
15
|
+
B as UsedByLogItem
|
|
20
16
|
};
|