@altinn/altinn-components 0.58.5 → 0.58.7
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
|
+
._section_1p2o0_1{display:flex;flex-direction:column;gap:1rem}._helpIcon_1p2o0_7{font-size:1.5em;margin-right:.25em}._contactButton_1p2o0_12{white-space:normal;height:auto;text-align:left;text-wrap:balance}
|
package/dist/assets/Toolbar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._toolbar_ibn1z_1{display:flex;flex-wrap:wrap;justify-content:start;align-items:center;align-self:start;column-gap:.75em;row-gap:.75em}
|
|
@@ -1,53 +1,65 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
|
-
import
|
|
5
|
-
import { H as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Link as
|
|
8
|
-
import { Button as
|
|
4
|
+
import i, { forwardRef as g } from "react";
|
|
5
|
+
import { H as _ } from "../../Section-BisoLqNN.js";
|
|
6
|
+
import { Typography as m } from "../Typography/Typography.js";
|
|
7
|
+
import { Link as y } from "../Typography/Link.js";
|
|
8
|
+
import { Button as v } from "../Button/Button.js";
|
|
9
9
|
import { ButtonGroup as b } from "../Button/ButtonGroup.js";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { u as w } from "../../useId-BVFxCjkq.js";
|
|
13
|
-
import '../../assets/DialogContact.css';var I = function(
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
if (
|
|
17
|
-
for (var
|
|
18
|
-
|
|
19
|
-
return
|
|
13
|
+
import '../../assets/DialogContact.css';var I = function(o, n) {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var t in o) Object.prototype.hasOwnProperty.call(o, t) && n.indexOf(t) < 0 && (r[t] = o[t]);
|
|
16
|
+
if (o != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
|
+
for (var e = 0, t = Object.getOwnPropertySymbols(o); e < t.length; e++)
|
|
18
|
+
n.indexOf(t[e]) < 0 && Object.prototype.propertyIsEnumerable.call(o, t[e]) && (r[t[e]] = o[t[e]]);
|
|
19
|
+
return r;
|
|
20
20
|
};
|
|
21
|
-
const O = g((
|
|
22
|
-
var { title:
|
|
23
|
-
let
|
|
24
|
-
return
|
|
21
|
+
const O = g((o, n) => {
|
|
22
|
+
var { title: r, titleId: t } = o, e = I(o, ["title", "titleId"]);
|
|
23
|
+
let l = w();
|
|
24
|
+
return l = r ? t || "title-" + l : void 0, i.createElement(
|
|
25
25
|
"svg",
|
|
26
|
-
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:
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
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: n, "aria-labelledby": l }, e),
|
|
27
|
+
r ? i.createElement("title", { id: l }, r) : null,
|
|
28
|
+
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 21.75c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25 2.25 6.615 2.25 12s4.365 9.75 9.75 9.75m0-14a1.75 1.75 0 0 0-1.75 1.75.75.75 0 0 1-1.5 0A3.25 3.25 0 0 1 12 6.25h.136a3.114 3.114 0 0 1 1.945 5.545l-.441.354A2.37 2.37 0 0 0 12.75 14a.75.75 0 0 1-1.5 0 3.87 3.87 0 0 1 1.453-3.023l.441-.353a1.614 1.614 0 0 0-1.008-2.874zm-.95 9.15a.95.95 0 1 1 1.9 0 .95.95 0 0 1-1.9 0", clipRule: "evenodd" })
|
|
29
29
|
);
|
|
30
|
-
}), j = "
|
|
30
|
+
}), j = "_section_1p2o0_1", x = "_helpIcon_1p2o0_7", B = "_contactButton_1p2o0_12", a = {
|
|
31
31
|
section: j,
|
|
32
|
-
helpIcon: x
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
helpIcon: x,
|
|
33
|
+
contactButton: B
|
|
34
|
+
}, F = ({
|
|
35
|
+
id: o = "dialog-contact",
|
|
36
|
+
title: n,
|
|
37
|
+
children: r,
|
|
38
|
+
buttons: t = [],
|
|
39
|
+
helpLink: e
|
|
40
|
+
}) => /* @__PURE__ */ s("section", { className: a.section, id: o, children: [
|
|
41
|
+
n && /* @__PURE__ */ c(_, { size: "lg", children: n }),
|
|
42
|
+
/* @__PURE__ */ c(m, { size: "sm", children: r }),
|
|
43
|
+
t && /* @__PURE__ */ c(b, { wrap: !0, children: t.map((l, f) => {
|
|
44
|
+
const { as: p, href: d, onClick: u, label: h } = l;
|
|
45
|
+
return /* @__PURE__ */ c(
|
|
46
|
+
v,
|
|
47
|
+
{
|
|
48
|
+
as: p,
|
|
49
|
+
href: d,
|
|
50
|
+
onClick: u,
|
|
51
|
+
variant: "outline",
|
|
52
|
+
className: a.contactButton,
|
|
53
|
+
children: h
|
|
54
|
+
},
|
|
55
|
+
f
|
|
56
|
+
);
|
|
45
57
|
}) }),
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
58
|
+
e && /* @__PURE__ */ c(m, { size: "sm", children: /* @__PURE__ */ s(y, { as: e.as, href: e.href, onClick: e.onClick, children: [
|
|
59
|
+
/* @__PURE__ */ c(O, { className: a.helpIcon }),
|
|
60
|
+
e.children
|
|
49
61
|
] }) })
|
|
50
62
|
] });
|
|
51
63
|
export {
|
|
52
|
-
|
|
64
|
+
F as DialogContact
|
|
53
65
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { ToolbarFilter as T } from "./ToolbarFilter.js";
|
|
3
3
|
import { y as l, T as x } from "../../Section-BisoLqNN.js";
|
|
4
|
-
import '../../assets/Toolbar.css';const
|
|
5
|
-
toolbar:
|
|
6
|
-
}, u = ({ accountMenu: t, menus: m, search: a, filter: s, disabled: o, controls:
|
|
4
|
+
import '../../assets/Toolbar.css';const z = "_toolbar_ibn1z_1", c = {
|
|
5
|
+
toolbar: z
|
|
6
|
+
}, u = ({ accountMenu: t, menus: m, search: a, filter: s, disabled: o, controls: b, children: e }) => /* @__PURE__ */ p("span", { className: c.toolbar, "data-size": "xs", children: [
|
|
7
7
|
t && /* @__PURE__ */ r(l, { size: "md", ...t, disabled: o, virtualized: !0 }),
|
|
8
|
-
m?.map((
|
|
8
|
+
m?.map((i, n) => /* @__PURE__ */ r(l, { ...i, disabled: o }, n)),
|
|
9
9
|
a && /* @__PURE__ */ r(x, { ...a, disabled: o }),
|
|
10
|
-
s && /* @__PURE__ */ r(T, { ...s, controls:
|
|
11
|
-
|
|
10
|
+
s && /* @__PURE__ */ r(T, { ...s, controls: b, disabled: o }),
|
|
11
|
+
e
|
|
12
12
|
] });
|
|
13
13
|
export {
|
|
14
14
|
u as Toolbar
|