@altinn/altinn-components 0.51.2 → 0.51.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
|
+
._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,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
|
]
|