@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
- ._section_ln3o5_1{display:flex;flex-direction:column;gap:1rem}._helpIcon_ln3o5_7{font-size:1.5em;margin-right:.25em}
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}
@@ -1 +1 @@
1
- ._toolbar_1dvgn_1{width:100%;display:flex;flex-wrap:wrap;justify-content:start;align-items:center;align-self:start;column-gap:.75em;row-gap:.75em}
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 a, jsx as i } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as c } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
- import c, { forwardRef as g } from "react";
5
- import { H as y } from "../../Section-BisoLqNN.js";
6
- import { Typography as s } from "../Typography/Typography.js";
7
- import { Link as v } from "../Typography/Link.js";
8
- import { Button as _ } from "../Button/Button.js";
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(r, l) {
14
- var o = {};
15
- for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && l.indexOf(e) < 0 && (o[e] = r[e]);
16
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
17
- for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
18
- l.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
19
- return o;
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((r, l) => {
22
- var { title: o, titleId: e } = r, t = I(r, ["title", "titleId"]);
23
- let n = w();
24
- return n = o ? e || "title-" + n : void 0, c.createElement(
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: l, "aria-labelledby": n }, t),
27
- o ? c.createElement("title", { id: n }, o) : null,
28
- c.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" })
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 = "_section_ln3o5_1", x = "_helpIcon_ln3o5_7", m = {
30
+ }), j = "_section_1p2o0_1", x = "_helpIcon_1p2o0_7", B = "_contactButton_1p2o0_12", a = {
31
31
  section: j,
32
- helpIcon: x
33
- }, D = ({
34
- id: r = "dialog-contact",
35
- title: l,
36
- children: o,
37
- buttons: e = [],
38
- helpLink: t
39
- }) => /* @__PURE__ */ a("section", { className: m.section, id: r, children: [
40
- l && /* @__PURE__ */ i(y, { size: "lg", children: l }),
41
- /* @__PURE__ */ i(s, { size: "sm", children: o }),
42
- e && /* @__PURE__ */ i(b, { children: e.map((n, f) => {
43
- const { as: d, href: p, onClick: u, label: h } = n;
44
- return /* @__PURE__ */ i(_, { as: d, href: p, onClick: u, variant: "outline", children: h }, f);
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
- t && /* @__PURE__ */ i(s, { size: "sm", children: /* @__PURE__ */ a(v, { as: t.as, href: t.href, onClick: t.onClick, children: [
47
- /* @__PURE__ */ i(O, { className: m.helpIcon }),
48
- t.children
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
- D as DialogContact
64
+ F as DialogContact
53
65
  };
@@ -1,14 +1,14 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
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 c = "_toolbar_1dvgn_1", z = {
5
- toolbar: c
6
- }, u = ({ accountMenu: t, menus: m, search: a, filter: s, disabled: o, controls: e, children: n }) => /* @__PURE__ */ i("span", { className: z.toolbar, "data-size": "xs", children: [
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((p, b) => /* @__PURE__ */ r(l, { ...p, disabled: o }, b)),
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: e, disabled: o }),
11
- n
10
+ s && /* @__PURE__ */ r(T, { ...s, controls: b, disabled: o }),
11
+ e
12
12
  ] });
13
13
  export {
14
14
  u as Toolbar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.58.5",
3
+ "version": "0.58.7",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",