@altinn/altinn-components 0.6.6 → 0.6.8

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
- ._list_18nep_1{display:flex;flex-direction:column}._list_18nep_1[data-spacing=sm]{row-gap:4px}._list_18nep_1[data-spacing=md]{row-gap:8px}._list_18nep_1[data-spacing=lg]{row-gap:16px}
1
+ ._list_ty2on_1{display:flex;flex-direction:column;width:100%}._list_ty2on_1[data-spacing=sm]{row-gap:4px}._list_ty2on_1[data-spacing=md]{row-gap:8px}._list_ty2on_1[data-spacing=lg]{row-gap:16px}
@@ -1 +1 @@
1
- ._item_ximjk_3{font:inherit;text-align:inherit;border:0;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;width:100%;position:relative;display:flex;align-items:center;text-decoration:none}._item_ximjk_3[data-size=xs]{min-height:36px}._item_ximjk_3[data-size=sm]{min-height:44px}._item_ximjk_3[data-size=md]{min-height:56px}._item_ximjk_3[data-size=lg]{min-height:64px}._item_ximjk_3[data-size=xl]{min-height:72px}._content_ximjk_46{flex-grow:1;display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem}._action_ximjk_56{display:flex;align-items:center;gap:.625rem;padding:.625rem}._linkIcon_ximjk_63{font-size:1.5rem}._item_ximjk_3{background-color:var(--theme-background-default);box-shadow:var(--ds-shadow-xs)}._item_ximjk_3:hover{outline:2px solid var(--theme-border-strong);z-index:2}._item_ximjk_3:hover strong{text-decoration:underline}._item_ximjk_3[data-active=true],._item_ximjk_3[data-color=accent]{background-color:var(--theme-surface-default)}._item_ximjk_3[data-color=accent]:hover{background-color:var(--theme-surface-hover)}
1
+ ._item_1cdyi_3{border:0;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;width:100%;display:flex;align-items:center}._item_1cdyi_3[data-size=xs]{min-height:36px}._item_1cdyi_3[data-size=sm]{min-height:44px}._item_1cdyi_3[data-size=md]{min-height:56px}._item_1cdyi_3[data-size=lg]{min-height:64px}._item_1cdyi_3[data-size=xl]{min-height:72px}._content_1cdyi_46{flex-grow:1;display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem}._action_1cdyi_56{display:flex;align-items:center;gap:.625rem;padding:.625rem}._linkIcon_1cdyi_63{font-size:1.5rem}._item_1cdyi_3{background-color:var(--theme-background-default);box-shadow:var(--ds-shadow-xs)}._item_1cdyi_3:hover{outline:2px solid var(--theme-border-strong);z-index:2}._item_1cdyi_3:hover strong{text-decoration:underline}._item_1cdyi_3[data-active=true],._item_1cdyi_3[data-color=accent]{background-color:var(--theme-surface-default)}._item_1cdyi_3[data-color=accent]:hover{background-color:var(--theme-surface-hover)}
@@ -1 +1 @@
1
- ._menu_paki4_1{list-style:none;padding:0;margin:0;text-indent:0;display:flex;flex-direction:column}._list_paki4_11,._item_paki4_17{list-style:none;padding:0;margin:0}._item_paki4_17[role=separator]{border-top:1px solid var(--theme-border-subtle)}
1
+ ._menu_17rq7_1{list-style:none;padding:0;margin:0;text-indent:0;display:flex;flex-direction:column;width:100%}._list_17rq7_13,._item_17rq7_19{list-style:none;padding:0;margin:0}._item_17rq7_19[role=separator]{border-top:1px solid var(--theme-border-subtle)}
@@ -1 +1 @@
1
- ._item_u3jth_1{width:100%;display:flex;align-items:center;column-gap:4px;border:0;-webkit-user-select:none;user-select:none;cursor:pointer;margin:.5rem 0;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}._item_u3jth_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_u3jth_1[data-size=sm]{min-height:44px}._content_u3jth_32{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_u3jth_40{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_u3jth_47{font-size:.875rem;white-space:nowrap}._linkIcon_u3jth_52{font-size:1.5rem}._item_u3jth_1{background-color:transparent;color:var(--theme-text-default)}._item_u3jth_1[aria-selected=true]{background-color:var(--theme-background-default)}._item_u3jth_1:hover,._item_u3jth_1:active{background-color:var(--theme-surface-hover)}._media_u3jth_72[data-color=subtle]{background-color:var(--theme-background-default);color:var(--theme-text-default)}._media_u3jth_72[data-color=strong]{background-color:var(--theme-base-default);color:var(--theme-background-default)}
1
+ ._item_1m3xe_1{border:0;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0}._item_1m3xe_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_1m3xe_1[data-size=sm]{min-height:44px}._content_1m3xe_35{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_1m3xe_43{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_1m3xe_50{font-size:.875rem;white-space:nowrap}._linkIcon_1m3xe_55{font-size:1.5rem}._item_1m3xe_1{background-color:transparent;color:var(--theme-text-default)}._item_1m3xe_1[aria-selected=true]{background-color:var(--theme-background-default)}._item_1m3xe_1:hover,._item_1m3xe_1:active{background-color:var(--theme-surface-hover)}._media_1m3xe_75[data-color=subtle]{background-color:var(--theme-background-default);color:var(--theme-text-default)}._media_1m3xe_75[data-color=strong]{background-color:var(--theme-base-default);color:var(--theme-background-default)}
@@ -1,7 +1,7 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import '../../assets/ListBase.css';const a = "_list_18nep_1", n = {
3
- list: a
4
- }, o = ({ theme: t = "inherit", spacing: s = "md", children: i }) => /* @__PURE__ */ e("div", { className: n.list, "data-theme": t, "data-spacing": s, children: i });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import '../../assets/ListBase.css';const e = "_list_ty2on_1", n = {
3
+ list: e
4
+ }, l = ({ theme: t = "inherit", spacing: s = "md", children: i }) => /* @__PURE__ */ a("div", { className: n.list, "data-theme": t, "data-spacing": s, children: i });
5
5
  export {
6
- o as ListBase
6
+ l as ListBase
7
7
  };
@@ -4,50 +4,50 @@ import { Badge as g } from "../Badge/Badge.js";
4
4
  import { ContextMenu as w } from "../ContextMenu/ContextMenu.js";
5
5
  import { Icon as z } from "../Icon/Icon.js";
6
6
  import "../Icon/SvgIcon.js";
7
- import '../../assets/ListItemBase.css';const E = "_item_ximjk_3", L = "_content_ximjk_46", M = "_action_ximjk_56", b = "_linkIcon_ximjk_63", a = {
7
+ import '../../assets/ListItemBase.css';const E = "_item_1cdyi_3", L = "_content_1cdyi_46", M = "_action_1cdyi_56", b = "_linkIcon_1cdyi_63", a = {
8
8
  item: E,
9
9
  content: L,
10
10
  action: M,
11
11
  linkIcon: b
12
- }, J = ({
13
- as: x,
14
- children: l,
15
- className: I,
16
- href: c,
12
+ }, H = ({
13
+ as: l,
14
+ children: I,
15
+ className: f,
16
+ href: o,
17
17
  size: i,
18
- color: f,
19
- active: h = !1,
20
- hidden: j = !1,
18
+ color: h,
19
+ active: v = !1,
20
+ hidden: x = !1,
21
21
  collapsible: e,
22
- selected: v,
22
+ selected: N,
23
23
  expanded: m,
24
- linkIcon: k,
24
+ linkIcon: y,
25
25
  menu: r,
26
26
  badge: s,
27
27
  onClick: t,
28
- onKeyPress: o,
29
- style: N
28
+ onKeyPress: c,
29
+ style: j
30
30
  }) => {
31
- const u = x || "a", d = e && m ? "chevron-up" : e ? "chevron-down" : c ? "chevron-right" : k;
31
+ const u = l || "a", d = e && m ? "chevron-up" : e ? "chevron-down" : o ? "chevron-right" : y;
32
32
  return /* @__PURE__ */ p(
33
33
  u,
34
34
  {
35
- className: B(a.item, I),
36
- "data-color": f,
35
+ className: B(a.item, f),
36
+ "data-color": h,
37
37
  "data-size": i,
38
- "data-active": h,
39
- "aria-hidden": j,
40
- "aria-selected": v,
38
+ "data-active": v,
39
+ "aria-hidden": x,
40
+ "aria-selected": N,
41
41
  "aria-expanded": m,
42
- href: c,
42
+ href: o,
43
43
  onKeyPress: (_) => {
44
- _.key === "Enter" && (t == null || t()), o == null || o(_);
44
+ _.key === "Enter" && (t == null || t()), c == null || c(_);
45
45
  },
46
46
  onClick: t,
47
47
  tabIndex: -1,
48
- style: N,
48
+ style: j,
49
49
  children: [
50
- /* @__PURE__ */ n("div", { className: a.content, "data-size": i, children: l }),
50
+ /* @__PURE__ */ n("div", { className: a.content, "data-size": i, children: I }),
51
51
  /* @__PURE__ */ p("div", { className: a.action, children: [
52
52
  s && /* @__PURE__ */ n(g, { ...s }),
53
53
  r && /* @__PURE__ */ n(w, { ...r }),
@@ -58,5 +58,5 @@ import '../../assets/ListItemBase.css';const E = "_item_ximjk_3", L = "_content_
58
58
  );
59
59
  };
60
60
  export {
61
- J as ListItemBase
61
+ H as ListItemBase
62
62
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { c as a } from "../../index-L8X2o7IH.js";
3
- import '../../assets/MenuBase.css';const r = "_menu_paki4_1", c = "_list_paki4_11", u = "_item_paki4_17", i = {
4
- menu: r,
5
- list: c,
2
+ import { c as r } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/MenuBase.css';const c = "_menu_17rq7_1", p = "_list_17rq7_13", u = "_item_17rq7_19", a = {
4
+ menu: c,
5
+ list: p,
6
6
  item: u
7
- }, C = ({ as: n = "nav", theme: t, className: e, children: o }) => /* @__PURE__ */ m(n, { className: a(i.menu, e), "data-theme": t, role: "menu", children: o }), d = ({ as: n = "ul", role: t = "group", expanded: e, className: o, children: s }) => /* @__PURE__ */ m(n, { className: a(i.list, o), role: t, "aria-expanded": e, children: s }), x = ({
7
+ }, C = ({ as: n = "nav", theme: t, className: e, children: o }) => /* @__PURE__ */ m(n, { className: r(a.menu, e), "data-theme": t, role: "menu", children: o }), d = ({ as: n = "ul", role: t = "group", expanded: e, className: o, children: s }) => /* @__PURE__ */ m(n, { className: r(a.list, o), role: t, "aria-expanded": e, children: s }), x = ({
8
8
  as: n = "li",
9
9
  role: t = "presentation",
10
10
  expanded: e,
11
11
  className: o,
12
12
  children: s
13
- }) => /* @__PURE__ */ m(n, { className: a(i.item, o), role: t, "aria-expanded": e, children: s });
13
+ }) => /* @__PURE__ */ m(n, { className: r(a.item, o), role: t, "aria-expanded": e, children: s });
14
14
  export {
15
15
  C as MenuBase,
16
16
  d as MenuList,
@@ -1,9 +1,9 @@
1
- import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
- import { c as v } from "../../index-L8X2o7IH.js";
3
- import { Badge as N } from "../Badge/Badge.js";
4
- import { Icon as T } from "../Icon/Icon.js";
1
+ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
+ import { c as u } from "../../index-L8X2o7IH.js";
3
+ import { Badge as T } from "../Badge/Badge.js";
4
+ import { Icon as j } from "../Icon/Icon.js";
5
5
  import "../Icon/SvgIcon.js";
6
- import '../../assets/MenuItemBase.css';const B = "_item_u3jth_1", g = "_content_u3jth_32", w = "_action_u3jth_40", y = "_linkText_u3jth_47", z = "_linkIcon_u3jth_52", C = "_media_u3jth_72", t = {
6
+ import '../../assets/MenuItemBase.css';const B = "_item_1m3xe_1", g = "_content_1m3xe_35", w = "_action_1m3xe_43", y = "_linkText_1m3xe_50", z = "_linkIcon_1m3xe_55", C = "_media_1m3xe_75", e = {
7
7
  item: B,
8
8
  content: g,
9
9
  action: w,
@@ -16,41 +16,41 @@ import '../../assets/MenuItemBase.css';const B = "_item_u3jth_1", g = "_content_
16
16
  size: _,
17
17
  color: d,
18
18
  linkIcon: o,
19
- linkText: h,
19
+ linkText: x,
20
20
  badge: c,
21
21
  tabIndex: p = 0,
22
- active: u = !1,
22
+ active: f = !1,
23
23
  collapsible: i = !1,
24
24
  expanded: s = !1,
25
- selected: f = !1,
25
+ selected: h = !1,
26
26
  disabled: m = !1,
27
- className: x,
28
- children: j,
29
- ...k
27
+ className: k,
28
+ children: I,
29
+ ...v
30
30
  }) => {
31
- const I = r || "a", n = i && s ? "chevron-up" : i ? "chevron-down" : o && "chevron-right";
32
- return /* @__PURE__ */ e(
33
- I,
31
+ const N = r || "a", n = i && s ? "chevron-up" : i ? "chevron-down" : o && "chevron-right";
32
+ return /* @__PURE__ */ t(
33
+ N,
34
34
  {
35
35
  role: "menuitem",
36
36
  tabIndex: m ? "-1" : p ?? 0,
37
37
  "data-size": _,
38
38
  "data-color": d,
39
- "data-active": u,
39
+ "data-active": f,
40
40
  "aria-expanded": s,
41
41
  "aria-disabled": m,
42
- "aria-selected": f,
42
+ "aria-selected": h,
43
43
  onClick: l,
44
- className: v(t.item, x),
45
- ...k,
44
+ className: u(e.item, k),
45
+ ...v,
46
46
  children: [
47
- /* @__PURE__ */ e("div", { className: t.content, children: [
48
- j,
49
- c && /* @__PURE__ */ a(N, { ...c })
47
+ /* @__PURE__ */ t("div", { className: e.content, children: [
48
+ I,
49
+ c && /* @__PURE__ */ a(T, { ...c })
50
50
  ] }),
51
- n && /* @__PURE__ */ e("div", { className: t.action, children: [
52
- /* @__PURE__ */ a("span", { className: t.linkText, children: h }),
53
- n && /* @__PURE__ */ a(T, { name: n, className: t.linkIcon })
51
+ n && /* @__PURE__ */ t("div", { className: e.action, children: [
52
+ /* @__PURE__ */ a("span", { className: e.linkText, children: x }),
53
+ n && /* @__PURE__ */ a(j, { name: n, className: e.linkIcon })
54
54
  ] })
55
55
  ]
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [