@altinn/altinn-components 0.51.2 → 0.51.4
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/assets/ButtonLabel.css +1 -1
- package/dist/assets/ComboButton.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/components/Button/ButtonLabel.js +3 -3
- package/dist/components/Button/ComboButton.js +31 -31
- package/dist/components/Timeline/TimelineBase.js +6 -6
- package/dist/types/lib/components/Dialog/DialogDetails.stories.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1bn1y_1{line-height:1;font-weight:500;padding:0 .25em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._label_1bn1y_1[data-size=xs]{font-size:.875rem}._label_1bn1y_1[data-size=sm]{font-size:1rem}._label_1bn1y_1[data-size=md]{font-size:1.125rem}._label_1bn1y_1[data-size=lg]{font-size:1.25rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_hbn70_1{display:inline-flex;flex-direction:row;align-items:center;max-width:100%;min-width:0}._divider_hbn70_9{align-self:stretch;border-left:1px solid currentColor;width:1px;margin:.375rem 0}._primary_hbn70_16,._secondary_hbn70_17{display:inline-flex;align-items:center;border-width:0;margin:-1px;padding:0 .5em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._section_4e55r_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_4e55r_8{flex-shrink:0;flex-grow:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:1.5rem}._sidebar_4e55r_8[data-level="2"]{width:1.5rem}@media (min-width: 1024px){._sidebar_4e55r_8{width:2.25rem}._sidebar_4e55r_8[data-level="2"]{width:1.5rem}}._content_4e55r_33{flex-grow:1;min-width:0;display:flex;flex-direction:column}._border_4e55r_40{border-left:.25rem solid;border-color:var(--ds-color-surface-tinted);flex-grow:1}._border_4e55r_40{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1;transition:border-color .5s ease-out}._border_4e55r_40[data-variant=hidden]{display:none}._border_4e55r_40[data-variant=strong]{border-width:2px;border-style:solid}._border_4e55r_40[data-variant=solid]{border-width:1px;border-style:solid}._border_4e55r_40[data-variant=dashed]{border-width:1px;border-style:dashed}._border_4e55r_40[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ButtonLabel.css';const o = "
|
|
3
|
+
import '../../assets/ButtonLabel.css';const o = "_label_1bn1y_1", n = {
|
|
4
4
|
label: o
|
|
5
|
-
},
|
|
5
|
+
}, c = ({ className: a, size: l, children: s }) => /* @__PURE__ */ t("span", { className: e(n.label, a), "data-size": l, children: s });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as ButtonLabel
|
|
8
8
|
};
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsxs as B, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as x } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ButtonBase as s } from "./ButtonBase.js";
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import { ButtonIcon as
|
|
5
|
+
import { ButtonLabel as N } from "./ButtonLabel.js";
|
|
6
|
+
import { ButtonIcon as C } from "./ButtonIcon.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/ComboButton.css';const
|
|
10
|
-
button:
|
|
11
|
-
divider:
|
|
9
|
+
import '../../assets/ComboButton.css';const j = "_button_hbn70_1", k = "_divider_hbn70_9", L = "_primary_hbn70_16", I = "_secondary_hbn70_17", r = {
|
|
10
|
+
button: j,
|
|
11
|
+
divider: k,
|
|
12
12
|
primary: L,
|
|
13
13
|
secondary: I
|
|
14
14
|
}, G = ({
|
|
15
|
-
variant:
|
|
16
|
-
color:
|
|
15
|
+
variant: e = "solid",
|
|
16
|
+
color: c,
|
|
17
17
|
size: t,
|
|
18
|
-
selected:
|
|
19
|
-
icon:
|
|
20
|
-
iconSize:
|
|
18
|
+
selected: m = !1,
|
|
19
|
+
icon: n,
|
|
20
|
+
iconSize: d,
|
|
21
21
|
iconAltText: l,
|
|
22
22
|
label: p,
|
|
23
|
-
labelSize:
|
|
23
|
+
labelSize: i,
|
|
24
24
|
children: _,
|
|
25
|
-
className:
|
|
26
|
-
ariaLabel:
|
|
27
|
-
onLabelClick:
|
|
28
|
-
onIconClick:
|
|
29
|
-
dataTestId:
|
|
30
|
-
tabIndex:
|
|
25
|
+
className: b,
|
|
26
|
+
ariaLabel: u,
|
|
27
|
+
onLabelClick: y,
|
|
28
|
+
onIconClick: h,
|
|
29
|
+
dataTestId: f,
|
|
30
|
+
tabIndex: a = 0,
|
|
31
31
|
disabled: v = !1
|
|
32
32
|
}) => /* @__PURE__ */ B(
|
|
33
33
|
s,
|
|
34
34
|
{
|
|
35
35
|
as: "div",
|
|
36
36
|
size: t,
|
|
37
|
-
variant:
|
|
38
|
-
color:
|
|
39
|
-
selected:
|
|
40
|
-
className:
|
|
37
|
+
variant: e,
|
|
38
|
+
color: c,
|
|
39
|
+
selected: m,
|
|
40
|
+
className: x(r.button, b),
|
|
41
41
|
tabIndex: -1,
|
|
42
42
|
disabled: v,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ o(
|
|
45
45
|
s,
|
|
46
46
|
{
|
|
47
|
-
ariaLabel:
|
|
47
|
+
ariaLabel: u,
|
|
48
48
|
size: t,
|
|
49
|
-
onClick:
|
|
49
|
+
onClick: y,
|
|
50
50
|
className: r.primary,
|
|
51
|
-
dataTestId:
|
|
52
|
-
tabIndex:
|
|
53
|
-
children: /* @__PURE__ */ o(
|
|
51
|
+
dataTestId: f,
|
|
52
|
+
tabIndex: a,
|
|
53
|
+
children: /* @__PURE__ */ o(N, { size: i, children: _ || p })
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
56
|
/* @__PURE__ */ o("span", { "data-size": t, className: r.divider }),
|
|
57
57
|
/* @__PURE__ */ o(
|
|
58
58
|
s,
|
|
59
59
|
{
|
|
60
|
-
onClick:
|
|
60
|
+
onClick: h,
|
|
61
61
|
className: r.secondary,
|
|
62
62
|
ariaLabel: l,
|
|
63
|
-
size:
|
|
64
|
-
tabIndex:
|
|
65
|
-
children:
|
|
63
|
+
size: d || i,
|
|
64
|
+
tabIndex: a,
|
|
65
|
+
children: n && /* @__PURE__ */ o(C, { icon: n })
|
|
66
66
|
}
|
|
67
67
|
)
|
|
68
68
|
]
|
|
@@ -5,7 +5,7 @@ import "../RootProvider/RootProvider.js";
|
|
|
5
5
|
import { TimelineIcon as v } from "./TimelineIcon.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
7
|
import { Flex as x } from "../Page/Flex.js";
|
|
8
|
-
import '../../assets/TimelineBase.css';const N = "
|
|
8
|
+
import '../../assets/TimelineBase.css';const N = "_section_4e55r_1", f = "_sidebar_4e55r_8", h = "_content_4e55r_33", j = "_border_4e55r_40", e = {
|
|
9
9
|
section: N,
|
|
10
10
|
sidebar: f,
|
|
11
11
|
content: h,
|
|
@@ -16,17 +16,17 @@ import '../../assets/TimelineBase.css';const N = "_section_1030v_1", f = "_sideb
|
|
|
16
16
|
border: a = "solid",
|
|
17
17
|
borderColor: c,
|
|
18
18
|
level: d = 1,
|
|
19
|
-
color:
|
|
20
|
-
icon:
|
|
19
|
+
color: r,
|
|
20
|
+
icon: s,
|
|
21
21
|
iconColor: m,
|
|
22
22
|
iconTheme: l,
|
|
23
23
|
children: _,
|
|
24
24
|
id: b,
|
|
25
25
|
...p
|
|
26
|
-
}) => /* @__PURE__ */ i(x, { as: n, className: e.section, color:
|
|
26
|
+
}) => /* @__PURE__ */ i(x, { as: n, className: e.section, color: r, ...p, id: b, children: [
|
|
27
27
|
/* @__PURE__ */ i("aside", { className: e.sidebar, "data-level": d, children: [
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */ t("div", { className: e.border, "data-loading": o, "data-variant": a, "data-color": c ||
|
|
28
|
+
s && /* @__PURE__ */ t(v, { loading: o, icon: s, theme: l, color: m, size: "sm" }),
|
|
29
|
+
/* @__PURE__ */ t("div", { className: e.border, "data-loading": o, "data-variant": a, "data-color": c || r })
|
|
30
30
|
] }),
|
|
31
31
|
/* @__PURE__ */ t("div", { className: e.content, children: _ })
|
|
32
32
|
] });
|