@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
- ._label_1v8cl_1{line-height:1;font-weight:500;padding:0 .25em;white-space:nowrap}._label_1v8cl_1[data-size=xs]{font-size:.875rem}._label_1v8cl_1[data-size=sm]{font-size:1rem}._label_1v8cl_1[data-size=md]{font-size:1.125rem}._label_1v8cl_1[data-size=lg]{font-size:1.25rem}
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
- ._button_kd2d3_1{display:inline-flex;flex-direction:row;align-items:center}._divider_kd2d3_7{align-self:stretch;border-left:1px solid currentColor;width:1px;margin:.375rem 0}._primary_kd2d3_14,._secondary_kd2d3_15{display:inline-flex;align-items:center;border-width:0;margin:-1px;padding:0 .5em}
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 = "_label_1v8cl_1", c = {
3
+ import '../../assets/ButtonLabel.css';const o = "_label_1bn1y_1", n = {
4
4
  label: o
5
- }, b = ({ className: l, size: a, children: s }) => /* @__PURE__ */ t("span", { className: e(c.label, l), "data-size": a, children: s });
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
- b as ButtonLabel
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 h } from "../../index-L8X2o7IH.js";
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 x } from "./ButtonLabel.js";
6
- import { ButtonIcon as N } from "./ButtonIcon.js";
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 C = "_button_kd2d3_1", j = "_divider_kd2d3_7", L = "_primary_kd2d3_14", I = "_secondary_kd2d3_15", r = {
10
- button: C,
11
- divider: j,
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: n = "solid",
16
- color: e,
15
+ variant: e = "solid",
16
+ color: c,
17
17
  size: t,
18
- selected: c = !1,
19
- icon: i,
20
- iconSize: m,
18
+ selected: m = !1,
19
+ icon: n,
20
+ iconSize: d,
21
21
  iconAltText: l,
22
22
  label: p,
23
- labelSize: a,
23
+ labelSize: i,
24
24
  children: _,
25
- className: u,
26
- ariaLabel: y,
27
- onLabelClick: f,
28
- onIconClick: b,
29
- dataTestId: k,
30
- tabIndex: d = 0,
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: n,
38
- color: e,
39
- selected: c,
40
- className: h(r.button, u),
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: y,
47
+ ariaLabel: u,
48
48
  size: t,
49
- onClick: f,
49
+ onClick: y,
50
50
  className: r.primary,
51
- dataTestId: k,
52
- tabIndex: d,
53
- children: /* @__PURE__ */ o(x, { size: a, children: _ || p })
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: b,
60
+ onClick: h,
61
61
  className: r.secondary,
62
62
  ariaLabel: l,
63
- size: m || a,
64
- tabIndex: d,
65
- children: i && /* @__PURE__ */ o(N, { icon: i })
63
+ size: d || i,
64
+ tabIndex: a,
65
+ children: n && /* @__PURE__ */ o(C, { icon: n })
66
66
  }
67
67
  )
68
68
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",