@altinn/altinn-components 0.46.2 → 0.46.3
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 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._searchbar_1sz2n_1{position:relative}._searchbar_1sz2n_1[data-autocomplete=true][aria-expanded=true] input{border-bottom-left-radius:0;border-bottom-right-radius:0}._searchbar_1sz2n_1 nav{display:none}._searchbarExpanded_1sz2n_14 nav{position:absolute;display:block;border-top-left-radius:0;border-top-right-radius:0;margin-top:-2px}._searchbarLocal_1sz2n_22{width:100%;padding:var(--dsc-spacing-4) 0;margin-bottom:16px}._searchbarLocal_1sz2n_22._searchbarExpanded_1sz2n_14{z-index:100}@media (min-width: 1024px){._searchbarLocal_1sz2n_22{max-width:320px;margin-right:auto;z-index:100}._searchbarLocal_1sz2n_22._searchbarExpanded_1sz2n_14{max-width:640px}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/SearchbarBase.css';const
|
|
4
|
-
searchbar:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/SearchbarBase.css';const l = "_searchbar_1sz2n_1", d = "_searchbarExpanded_1sz2n_14", _ = "_searchbarLocal_1sz2n_22", a = {
|
|
4
|
+
searchbar: l,
|
|
5
5
|
searchbarExpanded: d,
|
|
6
6
|
searchbarLocal: _
|
|
7
7
|
}, m = ({
|
|
@@ -12,13 +12,13 @@ import '../../assets/SearchbarBase.css';const n = "_searchbar_13e7s_1", d = "_se
|
|
|
12
12
|
autocomplete: o = !1,
|
|
13
13
|
useGlobalHeader: t = !1
|
|
14
14
|
}) => {
|
|
15
|
-
const h =
|
|
15
|
+
const h = b(
|
|
16
16
|
a.searchbar,
|
|
17
17
|
r,
|
|
18
18
|
e && a.searchbarExpanded,
|
|
19
19
|
t && a.searchbarLocal
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: h, "data-autocomplete": o, onBlurCapture: c, children: s });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
m as SearchbarBase
|
|
@@ -1,67 +1,87 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { IconButton as
|
|
6
|
-
import { ButtonGroup as
|
|
3
|
+
import { useState as x } from "react";
|
|
4
|
+
import { Button as S } from "../Button/Button.js";
|
|
5
|
+
import { IconButton as h } from "../Button/IconButton.js";
|
|
6
|
+
import { ButtonGroup as G } from "../Button/ButtonGroup.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { QueryLabel as
|
|
9
|
-
import { TextField as
|
|
8
|
+
import { QueryLabel as C } from "../Searchbar/QueryLabel.js";
|
|
9
|
+
import { TextField as j } from "../Forms/TextField.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { SettingsItemBase as
|
|
12
|
-
import { SettingsModal as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
15
|
-
const
|
|
11
|
+
import { SettingsItemBase as M } from "./SettingsItemBase.js";
|
|
12
|
+
import { SettingsModal as T } from "./SettingsModal.js";
|
|
13
|
+
import { S as u } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
14
|
+
import { S as A } from "../../Pencil-BVHLEoQy.js";
|
|
15
|
+
const U = ({
|
|
16
16
|
id: d,
|
|
17
|
-
icon:
|
|
18
|
-
loading:
|
|
19
|
-
title:
|
|
20
|
-
params:
|
|
21
|
-
controls:
|
|
22
|
-
inputValue:
|
|
23
|
-
titleField:
|
|
24
|
-
saveButton:
|
|
25
|
-
removeButton:
|
|
26
|
-
onChange:
|
|
27
|
-
...
|
|
17
|
+
icon: m = u,
|
|
18
|
+
loading: I,
|
|
19
|
+
title: a,
|
|
20
|
+
params: f,
|
|
21
|
+
controls: p,
|
|
22
|
+
inputValue: t,
|
|
23
|
+
titleField: l,
|
|
24
|
+
saveButton: i,
|
|
25
|
+
removeButton: o,
|
|
26
|
+
onChange: c,
|
|
27
|
+
...y
|
|
28
28
|
}) => {
|
|
29
|
-
const [
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
29
|
+
const [g, e] = x(!1), [z, b] = x("");
|
|
30
|
+
return /* @__PURE__ */ r(
|
|
31
|
+
M,
|
|
32
32
|
{
|
|
33
|
-
...
|
|
33
|
+
...y,
|
|
34
34
|
id: d,
|
|
35
|
-
expanded:
|
|
36
|
-
icon:
|
|
37
|
-
loading:
|
|
38
|
-
title:
|
|
39
|
-
value: /* @__PURE__ */
|
|
40
|
-
controls:
|
|
35
|
+
expanded: g,
|
|
36
|
+
icon: m,
|
|
37
|
+
loading: I,
|
|
38
|
+
title: a,
|
|
39
|
+
value: /* @__PURE__ */ r(C, { params: f, size: "xs" }),
|
|
40
|
+
controls: p || /* @__PURE__ */ r(h, { size: "xs", icon: A, iconAltText: "Edit", variant: "outline", onClick: () => e(!0) }),
|
|
41
41
|
linkIcon: !0,
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
42
|
+
children: /* @__PURE__ */ k(T, { icon: m, title: a, open: g, onClose: () => e(!1), children: [
|
|
43
|
+
/* @__PURE__ */ r(C, { params: f }),
|
|
44
|
+
/* @__PURE__ */ r(
|
|
45
|
+
j,
|
|
46
46
|
{
|
|
47
|
-
...
|
|
48
|
-
label: (
|
|
47
|
+
...l,
|
|
48
|
+
label: (l == null ? void 0 : l.label) || "Gi søket et navn",
|
|
49
49
|
size: "sm",
|
|
50
50
|
name: "title",
|
|
51
|
-
value: typeof
|
|
52
|
-
onChange: (
|
|
53
|
-
typeof
|
|
51
|
+
value: typeof t == "string" ? t : z,
|
|
52
|
+
onChange: (n) => {
|
|
53
|
+
typeof c == "function" ? c(n) : b(n.target.value);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
(i || o) && /* @__PURE__ */ k(G, { size: "md", children: [
|
|
58
|
+
i && /* @__PURE__ */ r(
|
|
59
|
+
S,
|
|
60
|
+
{
|
|
61
|
+
...i,
|
|
62
|
+
onClick: (n) => {
|
|
63
|
+
var s;
|
|
64
|
+
(s = i.onClick) == null || s.call(i, n), e(!1);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
o && /* @__PURE__ */ r(
|
|
69
|
+
S,
|
|
70
|
+
{
|
|
71
|
+
...o,
|
|
72
|
+
variant: "outline",
|
|
73
|
+
color: "danger",
|
|
74
|
+
onClick: (n) => {
|
|
75
|
+
var s;
|
|
76
|
+
(s = o.onClick) == null || s.call(o, n), e(!1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
)
|
|
60
80
|
] })
|
|
61
81
|
] })
|
|
62
82
|
}
|
|
63
83
|
);
|
|
64
84
|
};
|
|
65
85
|
export {
|
|
66
|
-
|
|
86
|
+
U as BookmarksSettingsItem
|
|
67
87
|
};
|