@altinn/altinn-components 0.24.2 → 0.24.5
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/Checkmark-RgzvRNxP.js +25 -0
- package/dist/PersonCircle-DMwECpgW.js +25 -0
- package/dist/altinn-ds-overrides.css +5 -0
- package/dist/assets/AccountButton.css +1 -0
- package/dist/assets/EndUserLabel.css +1 -0
- package/dist/assets/GlobalMenuBase.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/components/Dialog/DialogListGroup.js +13 -32
- package/dist/components/Dropdown/DrawerBase.js +15 -8
- package/dist/components/Dropdown/DropdownBase.js +21 -21
- package/dist/components/DsComponents/index.js +23 -0
- package/dist/components/GlobalMenu/AccountButton.js +34 -12
- package/dist/components/GlobalMenu/AccountMenu.js +24 -24
- package/dist/components/GlobalMenu/EndUserLabel.js +13 -0
- package/dist/components/GlobalMenu/GlobalMenu.js +68 -60
- package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -9
- package/dist/components/GlobalMenu/index.js +10 -8
- package/dist/components/Menu/MenuItemBase.js +5 -5
- package/dist/components/Menu/MenuItemLabel.js +21 -10
- package/dist/components/Menu/MenuItems.js +24 -23
- package/dist/components/Menu/MenuItemsVirtual.js +65 -602
- package/dist/components/index.js +266 -243
- package/dist/global.css +3 -0
- package/dist/index-DyDqjche.js +541 -0
- package/dist/index.js +256 -233
- package/dist/types/lib/components/Avatar/Examples.stories.d.ts +1 -1
- package/dist/types/lib/components/Avatar/avatar.stories.d.ts +1 -1
- package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +2 -1
- package/dist/types/lib/components/Dropdown/DropdownBase.d.ts +2 -1
- package/dist/types/lib/components/DsComponents/DsComponents.stories.d.ts +23 -0
- package/dist/types/lib/components/DsComponents/index.d.ts +1 -0
- package/dist/types/lib/components/GlobalMenu/AccountMenu.d.ts +2 -2
- package/dist/types/lib/components/GlobalMenu/EndUserLabel.d.ts +5 -0
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +2 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +3 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +3 -1
- package/dist/types/lib/components/GlobalMenu/index.d.ts +1 -0
- package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +1 -1
- package/dist/types/lib/components/Menu/Examples.stories.d.ts +4 -0
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Menu/MenuItems.d.ts +3 -1
- package/dist/types/lib/components/Search/AutocompleteBase.d.ts +1 -1
- package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +9 -9
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/usePagination-CBMPUKt_.js +4073 -0
- package/package.json +4 -1
- package/dist/userMenuItems-vSWEGGu2.js +0 -84
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altinn/altinn-components",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@digdir/designsystemet-css": "^1.0.3",
|
|
24
|
+
"@digdir/designsystemet-react": "^1.0.3",
|
|
25
|
+
"@digdir/designsystemet-theme": "^1.0.3",
|
|
23
26
|
"@navikt/aksel-icons": "^7.9.2",
|
|
24
27
|
"@tanstack/react-virtual": "^3.13.4",
|
|
25
28
|
"classnames": "^2.5.1",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { forwardRef as a } from "react";
|
|
4
|
-
import { u as d } from "./useId-CsCRkvK3.js";
|
|
5
|
-
import { S as c } from "./Handshake-Bz9FuL-x.js";
|
|
6
|
-
import { S as f } from "./Bookmark-85oKfr9m.js";
|
|
7
|
-
import { S as s } from "./ClockDashed-PQgzLSPC.js";
|
|
8
|
-
var u = function(t, i) {
|
|
9
|
-
var l = {};
|
|
10
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
|
|
11
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
12
|
-
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
13
|
-
i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
14
|
-
return l;
|
|
15
|
-
};
|
|
16
|
-
const p = a((t, i) => {
|
|
17
|
-
var { title: l, titleId: e } = t, r = u(t, ["title", "titleId"]);
|
|
18
|
-
let o = d();
|
|
19
|
-
return o = l ? e || "title-" + o : void 0, n.createElement(
|
|
20
|
-
"svg",
|
|
21
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": o }, r),
|
|
22
|
-
l ? n.createElement("title", { id: o }, l) : null,
|
|
23
|
-
n.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.75 2.5a.75.75 0 0 0-1.5 0v1.273c-2.222.14-3.655.92-4.499 2.186-.887 1.33-1.001 3.04-1.001 4.541v3c0 .809-.424 1.92-.92 2.915a18 18 0 0 1-.936 1.641l-.014.022-.004.006A.75.75 0 0 0 4.5 19.25h4.338a3.25 3.25 0 0 0 6.324 0H19.5a.75.75 0 0 0 .624-1.166l-.004-.006-.014-.022-.06-.091c-.05-.081-.125-.2-.215-.35-.18-.301-.42-.722-.66-1.2-.497-.994-.921-2.106-.921-2.915v-3c0-1.501-.114-3.21-1.001-4.541-.844-1.266-2.277-2.046-4.499-2.186zM12 5.25c-2.345 0-3.436.694-4.001 1.541-.613.92-.749 2.21-.749 3.709v3c0 1.191-.576 2.58-1.08 3.585q-.178.358-.349.665H18.18a19 19 0 0 1-.35-.665c-.503-1.006-1.079-2.394-1.079-3.585v-3c0-1.499-.136-2.79-.749-3.709C15.436 5.944 14.345 5.25 12 5.25m-1.237 14.487a1.8 1.8 0 0 1-.344-.487h3.162a1.75 1.75 0 0 1-1.581 1 1.75 1.75 0 0 1-1.237-.513", clipRule: "evenodd" })
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
var g = function(t, i) {
|
|
27
|
-
var l = {};
|
|
28
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
|
|
29
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
30
|
-
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
31
|
-
i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
32
|
-
return l;
|
|
33
|
-
};
|
|
34
|
-
const m = a((t, i) => {
|
|
35
|
-
var { title: l, titleId: e } = t, r = g(t, ["title", "titleId"]);
|
|
36
|
-
let o = d();
|
|
37
|
-
return o = l ? e || "title-" + o : void 0, n.createElement(
|
|
38
|
-
"svg",
|
|
39
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": o }, r),
|
|
40
|
-
l ? n.createElement("title", { id: o }, l) : null,
|
|
41
|
-
n.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 3.75a8.25 8.25 0 0 0-5.144 14.7 5.25 5.25 0 0 1 10.288 0A8.25 8.25 0 0 0 12 3.75m3.747 15.602a3.75 3.75 0 0 0-7.494 0A8.2 8.2 0 0 0 12 20.25c1.35 0 2.623-.324 3.747-.898M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12M12 7.25a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5M8.25 9.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0", clipRule: "evenodd" })
|
|
42
|
-
);
|
|
43
|
-
}), I = [
|
|
44
|
-
{
|
|
45
|
-
id: "user",
|
|
46
|
-
groupId: "1",
|
|
47
|
-
size: "lg",
|
|
48
|
-
title: "Din profil"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "settings",
|
|
52
|
-
groupId: "2",
|
|
53
|
-
icon: m,
|
|
54
|
-
title: "Innstillinger"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "accounts",
|
|
58
|
-
groupId: "3",
|
|
59
|
-
icon: c,
|
|
60
|
-
title: "Tilganger"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "notifications",
|
|
64
|
-
groupId: "3",
|
|
65
|
-
icon: p,
|
|
66
|
-
title: "Varslinger"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: "favourites",
|
|
70
|
-
groupId: "3",
|
|
71
|
-
icon: f,
|
|
72
|
-
title: "Favoritter"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "log",
|
|
76
|
-
groupId: "5",
|
|
77
|
-
icon: s,
|
|
78
|
-
title: "Aktivitetslogg"
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
export {
|
|
82
|
-
m as S,
|
|
83
|
-
I as u
|
|
84
|
-
};
|