@altinn/altinn-components 0.22.4 → 0.22.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.
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { BookmarksListItem as
|
|
4
|
+
import { BookmarksListItem as n } from "../Bookmarks/BookmarksListItem.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { ListItem as o } from "../List/ListItem.js";
|
|
7
7
|
import { DialogListItem as r } from "../Dialog/DialogListItem.js";
|
|
8
8
|
import "./AutocompleteBase.js";
|
|
9
|
-
import { ScopeListItem as
|
|
10
|
-
import { SuggestListItem as
|
|
9
|
+
import { ScopeListItem as a } from "./ScopeListItem.js";
|
|
10
|
+
import { SuggestListItem as i } from "./SuggestListItem.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
const
|
|
12
|
+
const p = ({ type: m, ...e }) => {
|
|
13
13
|
switch (m) {
|
|
14
14
|
case "scope":
|
|
15
15
|
return /* @__PURE__ */ t(
|
|
16
|
-
|
|
16
|
+
a,
|
|
17
17
|
{
|
|
18
18
|
...e,
|
|
19
19
|
color: "company",
|
|
20
20
|
theme: "default",
|
|
21
21
|
shadow: "none",
|
|
22
|
-
tabIndex: -1
|
|
22
|
+
tabIndex: -1,
|
|
23
|
+
linkIcon: !0
|
|
23
24
|
}
|
|
24
25
|
);
|
|
25
26
|
case "suggest":
|
|
26
27
|
return /* @__PURE__ */ t(
|
|
27
|
-
|
|
28
|
+
i,
|
|
28
29
|
{
|
|
29
30
|
...e,
|
|
30
31
|
color: "company",
|
|
31
32
|
theme: "default",
|
|
32
33
|
shadow: "none",
|
|
33
34
|
size: "sm",
|
|
34
|
-
tabIndex: -1
|
|
35
|
+
tabIndex: -1,
|
|
36
|
+
linkIcon: !0
|
|
35
37
|
}
|
|
36
38
|
);
|
|
37
39
|
case "bookmark":
|
|
38
40
|
return /* @__PURE__ */ t(
|
|
39
|
-
|
|
41
|
+
n,
|
|
40
42
|
{
|
|
41
43
|
...e,
|
|
42
44
|
theme: "default",
|
|
@@ -46,7 +48,17 @@ const w = ({ type: m, ...e }) => {
|
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
50
|
case "dialog":
|
|
49
|
-
return /* @__PURE__ */ t(
|
|
51
|
+
return /* @__PURE__ */ t(
|
|
52
|
+
r,
|
|
53
|
+
{
|
|
54
|
+
...e,
|
|
55
|
+
theme: "default",
|
|
56
|
+
shadow: "none",
|
|
57
|
+
size: "sm",
|
|
58
|
+
tabIndex: -1,
|
|
59
|
+
linkIcon: !0
|
|
60
|
+
}
|
|
61
|
+
);
|
|
50
62
|
case "information":
|
|
51
63
|
return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, interactive: !1 });
|
|
52
64
|
default:
|
|
@@ -54,5 +66,5 @@ const w = ({ type: m, ...e }) => {
|
|
|
54
66
|
}
|
|
55
67
|
};
|
|
56
68
|
export {
|
|
57
|
-
|
|
69
|
+
p as AutocompleteItem
|
|
58
70
|
};
|
|
@@ -2,11 +2,11 @@ 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 { ListItem as
|
|
5
|
+
import { ListItem as i } from "../List/ListItem.js";
|
|
6
6
|
import "./AutocompleteBase.js";
|
|
7
|
-
import { QueryLabel as
|
|
7
|
+
import { QueryLabel as p } from "./QueryLabel.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
const g = ({ as:
|
|
9
|
+
const g = ({ as: r = "a", params: m, ...o }) => /* @__PURE__ */ t(i, { label: /* @__PURE__ */ t(p, { params: m }), ...o, as: r });
|
|
10
10
|
export {
|
|
11
11
|
g as SuggestListItem
|
|
12
12
|
};
|