@altinn/altinn-components 0.23.2 → 0.23.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
- ._link_kjmgd_1{padding:0;border:0;background-color:transparent;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}._link_kjmgd_1[aria-disabled=true]{pointer-events:none}
1
+ ._link_1j3d8_1{padding:0;border:0;background-color:transparent;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}._link_1j3d8_1[aria-disabled=true]{pointer-events:none}._link_1j3d8_1[data-interactive=true]{cursor:pointer}
@@ -1,7 +1,7 @@
1
- import { jsxs as k, jsx as q } from "react/jsx-runtime";
2
- import { ListItemBase as v } from "./ListItemBase.js";
3
- import { ListItemHeader as w } from "./ListItemHeader.js";
4
- const D = ({
1
+ import { jsxs as q, jsx as v } from "react/jsx-runtime";
2
+ import { ListItemBase as w } from "./ListItemBase.js";
3
+ import { ListItemHeader as z } from "./ListItemHeader.js";
4
+ const E = ({
5
5
  className: f,
6
6
  variant: e = "solid",
7
7
  color: r,
@@ -24,11 +24,12 @@ const D = ({
24
24
  selected: y,
25
25
  controls: B,
26
26
  children: H,
27
- ...b
27
+ interactive: b,
28
+ ...d
28
29
  }) => {
29
- const d = typeof t == "function" ? t() : t;
30
- return /* @__PURE__ */ k(
31
- v,
30
+ const k = typeof t == "function" ? t() : t;
31
+ return /* @__PURE__ */ q(
32
+ w,
32
33
  {
33
34
  variant: e,
34
35
  color: r,
@@ -38,9 +39,10 @@ const D = ({
38
39
  expanded: s,
39
40
  title: o,
40
41
  loading: m,
42
+ interactive: b,
41
43
  children: [
42
- /* @__PURE__ */ q(
43
- w,
44
+ /* @__PURE__ */ v(
45
+ z,
44
46
  {
45
47
  className: f,
46
48
  color: r,
@@ -59,8 +61,8 @@ const D = ({
59
61
  badge: j,
60
62
  controls: B,
61
63
  titleAs: I,
62
- ...b,
63
- children: d
64
+ ...d,
65
+ children: k
64
66
  }
65
67
  ),
66
68
  s ? H : null
@@ -69,5 +71,5 @@ const D = ({
69
71
  );
70
72
  };
71
73
  export {
72
- D as ListItem
74
+ E as ListItem
73
75
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { c as o } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ListItemLink.css';const x = "_link_kjmgd_1", i = {
4
- link: x
3
+ import '../../assets/ListItemLink.css';const _ = "_link_1j3d8_1", i = {
4
+ link: _
5
5
  }, L = ({
6
6
  interactive: e = !1,
7
7
  size: r,
@@ -14,26 +14,26 @@ import '../../assets/ListItemLink.css';const x = "_link_kjmgd_1", i = {
14
14
  onKeyPress: t,
15
15
  className: d,
16
16
  children: s,
17
- active: k,
18
- describedby: m
17
+ active: x,
18
+ describedby: n
19
19
  }) => e ? /* @__PURE__ */ c(
20
20
  p || "div",
21
21
  {
22
22
  className: o(i.link, i.interactive, d),
23
23
  href: b,
24
- onKeyPress: (n) => {
25
- n.key === "Enter" && (a == null || a()), t == null || t(n);
24
+ onKeyPress: (m) => {
25
+ m.key === "Enter" && (a == null || a()), t == null || t(m);
26
26
  },
27
27
  onClick: a,
28
28
  "data-interactive": e,
29
29
  "aria-disabled": f || l,
30
30
  "aria-selected": v,
31
- "aria-describedby": m,
31
+ "aria-describedby": n,
32
32
  "data-size": r,
33
- "data-active": k,
33
+ "data-active": x,
34
34
  children: s
35
35
  }
36
- ) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": m, children: s });
36
+ ) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": n, children: s });
37
37
  export {
38
38
  L as ListItemLink
39
39
  };
@@ -4,16 +4,16 @@ import "react";
4
4
  import { BookmarksListItem as n } from "../Bookmarks/BookmarksListItem.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { ListItem as o } from "../List/ListItem.js";
7
- import { DialogListItem as r } from "../Dialog/DialogListItem.js";
7
+ import { DialogListItem as a } from "../Dialog/DialogListItem.js";
8
8
  import "./AutocompleteBase.js";
9
- import { ScopeListItem as a } from "./ScopeListItem.js";
9
+ import { ScopeListItem as r } from "./ScopeListItem.js";
10
10
  import { SuggestListItem as i } from "./SuggestListItem.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  const p = ({ type: m, ...e }) => {
13
13
  switch (m) {
14
14
  case "scope":
15
15
  return /* @__PURE__ */ t(
16
- a,
16
+ r,
17
17
  {
18
18
  ...e,
19
19
  color: "company",
@@ -49,7 +49,7 @@ const p = ({ type: m, ...e }) => {
49
49
  );
50
50
  case "dialog":
51
51
  return /* @__PURE__ */ t(
52
- r,
52
+ a,
53
53
  {
54
54
  ...e,
55
55
  theme: "default",
@@ -60,7 +60,17 @@ const p = ({ type: m, ...e }) => {
60
60
  }
61
61
  );
62
62
  case "information":
63
- return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, interactive: !1 });
63
+ return /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ as: "div",
67
+ ...e,
68
+ theme: "default",
69
+ shadow: "none",
70
+ tabIndex: -1,
71
+ interactive: !1
72
+ }
73
+ );
64
74
  default:
65
75
  return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
66
76
  }
@@ -35,4 +35,4 @@ export interface ListItemInputProps extends ListItemProps {
35
35
  /** Child items */
36
36
  items?: ListItemProps[];
37
37
  }
38
- export declare const ListItem: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const ListItem: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { ListItemProps } from '../';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
6
6
  parameters: {};
7
7
  args: {
8
8
  id: string;
@@ -23,6 +23,7 @@ export declare const LoadingState: (args: ListItemProps) => import("react/jsx-ru
23
23
  export declare const Selectable: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const Collapsible: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export declare const CollapsibleExpanded: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const NonInteractive: () => import("react/jsx-runtime").JSX.Element;
26
27
  export declare const Theme: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
27
28
  export declare const Size: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
28
29
  export declare const OverridingIcon: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ListItemProps } from '../';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {};
6
6
  args: {
7
7
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.23.2",
3
+ "version": "0.23.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",