@altinn/altinn-components 0.23.1 → 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.
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineLink.css +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/List/ListItem.js +15 -13
- package/dist/components/List/ListItemLabel.js +13 -13
- package/dist/components/List/ListItemLink.js +9 -9
- package/dist/components/Search/AutocompleteItem.js +15 -5
- package/dist/components/Timeline/Timeline.js +4 -4
- package/dist/components/Timeline/TimelineBase.js +18 -18
- package/dist/components/Timeline/TimelineLink.js +16 -17
- package/dist/components/Timeline/TimelineSection.js +18 -17
- package/dist/types/lib/components/List/ListItem.d.ts +1 -1
- package/dist/types/lib/components/List/ListItem.stories.d.ts +2 -1
- package/dist/types/lib/components/List/Specimens.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/Timeline.d.ts +3 -2
- package/dist/types/lib/components/Timeline/Timeline.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_uoku6_3{width:100%}._label_uoku6_3[data-size=xs],._label_uoku6_3[data-size=sm],._label_uoku6_3[data-size=md],._label_uoku6_3[data-size=lg],._label_uoku6_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_uoku6_3[data-size=xs],._label_uoku6_3[data-size=sm],._label_uoku6_3[data-size=md]{font-size:1rem}._label_uoku6_3[data-size=lg]{font-size:1.125rem}._label_uoku6_3[data-size=xl]{font-size:1.25rem}._title_uoku6_36{font-size:1em;line-height:1.125;margin:0;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_uoku6_36[data-weight=bold]{font-weight:600}._title_uoku6_36[data-weight=normal]{font-weight:400}._description_uoku6_57{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_uoku6_57[data-size=xs]{display:none}._description_uoku6_57[data-size=xs],._description_uoku6_57[data-size=sm],._description_uoku6_57[data-size=md],._description_uoku6_57[data-size=lg],._description_uoku6_57[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_uoku6_57{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_uoku6_57{color:var(--ds-color-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._section_1h3ds_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_1h3ds_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_1h3ds_8[data-level="2"]{width:1.5rem}@media (min-width: 1024px){._sidebar_1h3ds_8{width:2.25rem}._sidebar_1h3ds_8[data-level="2"]{width:1.5rem}}._content_1h3ds_33{flex-grow:1;display:flex;flex-direction:column}._border_1h3ds_39{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_1h3ds_45{color:var(--ds-color-surface-active)}._border_1h3ds_39{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_1h3ds_39[data-variant=hidden]{display:none}._border_1h3ds_39[data-variant=strong]{border-width:2px;border-style:solid}._border_1h3ds_39[data-variant=solid]{border-width:1px;border-style:solid}._border_1h3ds_39[data-variant=dashed]{border-width:1px;border-style:dashed}._border_1h3ds_39[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_15kp4_1{display:inline-flex;align-items:center;column-gap:.125em;align-items:flex-start}._icon_15kp4_8{flex-shrink:0;flex-grow:0;font-size:1.25rem;width:1.5rem;height:1.5rem}._label_15kp4_16{flex-shrink:1;font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0;white-space:inherit}
|
|
@@ -21,7 +21,7 @@ const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @_
|
|
|
21
21
|
controls: t && /* @__PURE__ */ o(p, { ...t })
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */ o(d, { padding:
|
|
24
|
+
/* @__PURE__ */ o(d, { padding: "page", spacing: 6, children: e })
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ o(l, { items: r == null ? void 0 : r.items })
|
|
27
27
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ListItemBase as
|
|
3
|
-
import { ListItemHeader as
|
|
4
|
-
const
|
|
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
|
-
|
|
27
|
+
interactive: b,
|
|
28
|
+
...d
|
|
28
29
|
}) => {
|
|
29
|
-
const
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
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__ */
|
|
43
|
-
|
|
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
|
-
...
|
|
63
|
-
children:
|
|
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
|
-
|
|
74
|
+
E as ListItem
|
|
73
75
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton as
|
|
3
|
-
import '../../assets/ListItemLabel.css';const h = "
|
|
2
|
+
import { Skeleton as o } from "../Skeleton/Skeleton.js";
|
|
3
|
+
import '../../assets/ListItemLabel.css';const h = "_label_uoku6_3", u = "_title_uoku6_36", b = "_description_uoku6_57", l = {
|
|
4
4
|
label: h,
|
|
5
|
-
title:
|
|
6
|
-
description:
|
|
5
|
+
title: u,
|
|
6
|
+
description: b
|
|
7
7
|
}, x = ({
|
|
8
8
|
loading: s = !1,
|
|
9
9
|
size: e = "sm",
|
|
10
|
-
title:
|
|
11
|
-
titleAs:
|
|
10
|
+
title: n,
|
|
11
|
+
titleAs: c = "h2",
|
|
12
12
|
weight: r = "bold",
|
|
13
|
-
description:
|
|
14
|
-
children:
|
|
15
|
-
id:
|
|
13
|
+
description: a,
|
|
14
|
+
children: i,
|
|
15
|
+
id: d
|
|
16
16
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */ t("span", { className: l.label, "data-size": e, id:
|
|
19
|
-
/* @__PURE__ */ t(
|
|
17
|
+
const m = c;
|
|
18
|
+
return /* @__PURE__ */ t("span", { className: l.label, "data-size": e, id: d, children: i || /* @__PURE__ */ p(_, { children: [
|
|
19
|
+
/* @__PURE__ */ t(o, { loading: s, children: /* @__PURE__ */ t(m, { className: l.title, "data-size": e, "data-weight": r, children: n }) }),
|
|
20
20
|
" ",
|
|
21
|
-
|
|
21
|
+
a && /* @__PURE__ */ t(o, { loading: s, children: /* @__PURE__ */ t("p", { className: l.description, "data-size": e, children: a }) })
|
|
22
22
|
] }) });
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
@@ -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
|
|
4
|
-
link:
|
|
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:
|
|
18
|
-
describedby:
|
|
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: (
|
|
25
|
-
|
|
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":
|
|
31
|
+
"aria-describedby": n,
|
|
32
32
|
"data-size": r,
|
|
33
|
-
"data-active":
|
|
33
|
+
"data-active": x,
|
|
34
34
|
children: s
|
|
35
35
|
}
|
|
36
|
-
) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby":
|
|
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
|
|
7
|
+
import { DialogListItem as a } from "../Dialog/DialogListItem.js";
|
|
8
8
|
import "./AutocompleteBase.js";
|
|
9
|
-
import { ScopeListItem as
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Search/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { Section as
|
|
8
|
-
const
|
|
7
|
+
import { Section as m } from "../Page/Section.js";
|
|
8
|
+
const u = ({ as: t = "ul", spacing: o = 2, children: r }) => /* @__PURE__ */ i(m, { as: t, spacing: o, style: { width: "100%" }, children: r });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
u as Timeline
|
|
11
11
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
1
|
+
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p } from "../Icon/Icon.js";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Avatar as
|
|
5
|
+
import { Avatar as h } from "../Avatar/Avatar.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { Skeleton as b } from "../Skeleton/Skeleton.js";
|
|
8
8
|
import "../Search/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Flex as
|
|
11
|
-
import '../../assets/TimelineBase.css';const
|
|
12
|
-
section:
|
|
13
|
-
sidebar:
|
|
14
|
-
content:
|
|
15
|
-
border:
|
|
16
|
-
icon:
|
|
10
|
+
import { Flex as v } from "../Page/Flex.js";
|
|
11
|
+
import '../../assets/TimelineBase.css';const f = "_section_1h3ds_1", N = "_sidebar_1h3ds_8", x = "_content_1h3ds_33", j = "_border_1h3ds_39", z = "_icon_1h3ds_45", o = {
|
|
12
|
+
section: f,
|
|
13
|
+
sidebar: N,
|
|
14
|
+
content: x,
|
|
15
|
+
border: j,
|
|
16
|
+
icon: z
|
|
17
17
|
}, T = ({
|
|
18
18
|
as: c = "section",
|
|
19
|
-
loading:
|
|
19
|
+
loading: e,
|
|
20
20
|
border: a = "solid",
|
|
21
|
-
level:
|
|
22
|
-
color:
|
|
21
|
+
level: d = 1,
|
|
22
|
+
color: t,
|
|
23
23
|
icon: r,
|
|
24
|
-
iconColor:
|
|
24
|
+
iconColor: m,
|
|
25
25
|
avatar: i,
|
|
26
26
|
children: l,
|
|
27
27
|
..._
|
|
28
|
-
}) => /* @__PURE__ */ n(
|
|
29
|
-
/* @__PURE__ */ n("aside", { className:
|
|
30
|
-
i && /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
28
|
+
}) => /* @__PURE__ */ n(v, { as: c, className: o.section, color: t, ..._, children: [
|
|
29
|
+
/* @__PURE__ */ n("aside", { className: o.sidebar, "data-level": d, children: [
|
|
30
|
+
i && /* @__PURE__ */ s(h, { ...i, size: "sm" }) || r && /* @__PURE__ */ s(b, { loading: e, variant: "circle", children: /* @__PURE__ */ s("span", { "data-color": m, className: o.icon, children: /* @__PURE__ */ s(p, { svgElement: r, size: "sm" }) }) }),
|
|
31
|
+
/* @__PURE__ */ s("div", { className: o.border, "data-loading": e, "data-variant": a, "data-color": t })
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ s("div", { className: o.content, children: l })
|
|
34
34
|
] });
|
|
35
35
|
export {
|
|
36
36
|
T as TimelineBase
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as a } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { ButtonBase as
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import { ButtonIcon as
|
|
4
|
+
import { ButtonBase as p } from "../Button/ButtonBase.js";
|
|
5
|
+
import { ButtonLabel as b } from "../Button/ButtonLabel.js";
|
|
6
|
+
import { ButtonIcon as u } from "../Button/ButtonIcon.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Search/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/TimelineLink.css';const
|
|
11
|
-
button:
|
|
12
|
-
reverse: x,
|
|
10
|
+
import '../../assets/TimelineLink.css';const _ = "_button_15kp4_1", f = "_icon_15kp4_8", k = "_label_15kp4_16", o = {
|
|
11
|
+
button: _,
|
|
13
12
|
icon: f,
|
|
14
|
-
label:
|
|
15
|
-
},
|
|
13
|
+
label: k
|
|
14
|
+
}, I = ({
|
|
16
15
|
size: t = "custom",
|
|
17
|
-
color:
|
|
18
|
-
icon:
|
|
16
|
+
color: m = "company",
|
|
17
|
+
icon: n,
|
|
19
18
|
reverse: c,
|
|
20
19
|
label: s,
|
|
21
|
-
children:
|
|
20
|
+
children: e,
|
|
22
21
|
...i
|
|
23
22
|
}) => /* @__PURE__ */ l(
|
|
24
|
-
|
|
23
|
+
p,
|
|
25
24
|
{
|
|
26
|
-
color:
|
|
25
|
+
color: m,
|
|
27
26
|
variant: "link",
|
|
28
27
|
size: t,
|
|
29
28
|
className: a(o.button, { [o.reverse]: c }),
|
|
30
29
|
...i,
|
|
31
30
|
children: [
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */
|
|
31
|
+
n && /* @__PURE__ */ r(u, { className: o.icon, size: t, icon: n }),
|
|
32
|
+
/* @__PURE__ */ r(b, { className: o.label, size: t, children: e || s })
|
|
34
33
|
]
|
|
35
34
|
}
|
|
36
35
|
);
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
I as TimelineLink
|
|
39
38
|
};
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Byline as
|
|
4
|
+
import { Byline as T } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { TimelineBase as
|
|
7
|
-
import { Typography as
|
|
6
|
+
import { TimelineBase as j } from "./TimelineBase.js";
|
|
7
|
+
import { Typography as B } from "../Typography/Typography.js";
|
|
8
8
|
import "../Search/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Section as
|
|
11
|
-
const
|
|
10
|
+
import { Section as S } from "../Page/Section.js";
|
|
11
|
+
const A = ({
|
|
12
12
|
loading: o,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
level: i,
|
|
14
|
+
margin: p,
|
|
15
|
+
spacing: e,
|
|
16
|
+
as: s = "li",
|
|
17
|
+
border: f = "strong",
|
|
18
|
+
color: n,
|
|
19
|
+
typographyProps: c = {},
|
|
20
|
+
datetime: x,
|
|
20
21
|
byline: t,
|
|
21
22
|
children: r
|
|
22
|
-
}) => /* @__PURE__ */
|
|
23
|
-
t && /* @__PURE__ */ m(
|
|
24
|
-
/* @__PURE__ */ m(
|
|
23
|
+
}) => /* @__PURE__ */ y(j, { loading: o, level: i, border: f, color: n, as: s, children: [
|
|
24
|
+
t && /* @__PURE__ */ m(T, { loading: o, datetime: x, children: t }),
|
|
25
|
+
/* @__PURE__ */ m(S, { margin: p, spacing: e, children: r && typeof r == "string" ? /* @__PURE__ */ m(B, { as: "p", loading: o, size: "md", ...c, children: r }) : r })
|
|
25
26
|
] });
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
A as TimelineSection
|
|
28
29
|
};
|
|
@@ -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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { SectionProps } from '..';
|
|
3
3
|
export interface TimelineProps {
|
|
4
|
+
as?: ElementType;
|
|
4
5
|
spacing?: SectionProps['spacing'];
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
}
|
|
7
|
-
export declare const Timeline: ({ spacing, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Timeline: ({ as, spacing, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const meta: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ spacing, children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
component: ({ as, spacing, children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
5
|
parameters: {};
|
|
6
6
|
args: {};
|
|
@@ -13,4 +13,4 @@ export interface TimelineSectionProps {
|
|
|
13
13
|
children?: ReactNode | string;
|
|
14
14
|
as?: ElementType;
|
|
15
15
|
}
|
|
16
|
-
export declare const TimelineSection: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TimelineSection: ({ loading, level, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, level, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|