@altinn/altinn-components 0.40.1 → 0.41.0
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/Alert.css +1 -0
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Byline.css +1 -1
- package/dist/assets/LayoutSidebar.css +1 -1
- package/dist/assets/MenuSearch.css +1 -1
- package/dist/components/Alert/Alert.js +12 -9
- package/dist/components/Avatar/Avatar.js +27 -27
- package/dist/components/Avatar/AvatarGroup.js +8 -8
- package/dist/components/Byline/Byline.js +23 -20
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/SeenByLog.js +26 -19
- package/dist/components/Dialog/SeenByLogItem.js +16 -9
- package/dist/components/Layout/LayoutSidebar.js +4 -4
- package/dist/components/Menu/MenuSearch.js +7 -7
- package/dist/types/lib/components/Dialog/SeenByLog.d.ts +2 -1
- package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/SeenByLogItem.d.ts +2 -1
- package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +2 -2
- package/dist/types/lib/components/Layout/Layout.d.ts +2 -4
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +1 -0
- package/dist/types/lib/components/Layout/LayoutSidebar.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._heading_jd4co_1{margin-bottom:.5rem}._message_jd4co_5{margin-bottom:1rem}
|
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._avatar_1qmnt_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1qmnt_1[data-shape=circle]{border-radius:50%}._avatar_1qmnt_1[data-shape=square]{border-radius:5%}._avatar_1qmnt_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1qmnt_20{display:block;font-size:1em;width:1em;height:1em}._shape_1qmnt_20[data-variant=outline]{border:1px solid}._label_1qmnt_31{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_1qmnt_41{display:block;width:100%;height:100%}
|
package/dist/assets/Byline.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._byline_fzp7k_1{display:inline-flex;align-items:center;column-gap:.5em}._avatar_fzp7k_7,._avatarGroup_fzp7k_12{font-size:1.25rem;flex-shrink:0}._avatar_fzp7k_7[data-size=md]{font-size:1.5rem;flex-shrink:0}._avatar_fzp7k_7[data-size=lg]{font-size:2.25rem}._label_fzp7k_26{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--ds-color-text-subtle)}._label_fzp7k_26[data-size=xs],._label_fzp7k_26[data-size=sm]{font-size:14px;line-height:1.125rem;padding:.1875rem 0}._label_fzp7k_26[data-size=md],._label_fzp7k_26[data-size=lg]{font-size:16px;line-height:1.25rem}._label_fzp7k_26>strong{font-weight:500;color:var(--ds-color-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sidebar_lkphj_1,._sidebar_lkphj_1[aria-hidden=true]{display:none}@media (min-width: 1024px){._sidebar_lkphj_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_lkphj_1[data-sticky=true]{position:sticky;top:0}._sidebar_lkphj_1[aria-hidden=true]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._field_1w1s0_1{position:relative;margin:.5rem 0}@media (max-width: 1023px){._field_1w1s0_1{font-size:1rem}}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { Heading as
|
|
4
|
-
import { A as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as n } from "../Typography/Typography.js";
|
|
3
|
+
import { Heading as c } from "../Typography/Heading.js";
|
|
4
|
+
import { A as i } from "../../Alert-BzifOfXl.js";
|
|
5
|
+
import '../../assets/Alert.css';const d = "_heading_jd4co_1", g = "_message_jd4co_5", o = {
|
|
6
|
+
heading: d,
|
|
7
|
+
message: g
|
|
8
|
+
}, f = ({ variant: r, heading: a, message: e, children: t }) => /* @__PURE__ */ m(i, { "data-color": r, children: [
|
|
9
|
+
/* @__PURE__ */ s(c, { className: o.heading, children: a }),
|
|
10
|
+
e && /* @__PURE__ */ s(n, { className: o.message, children: e }),
|
|
11
|
+
t
|
|
9
12
|
] });
|
|
10
13
|
export {
|
|
11
|
-
|
|
14
|
+
f as Alert
|
|
12
15
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { fromStringToColor as
|
|
7
|
-
import '../../assets/Avatar.css';const
|
|
8
|
-
avatar:
|
|
9
|
-
shape:
|
|
10
|
-
label:
|
|
2
|
+
import { jsx as e, jsxs as k } from "react/jsx-runtime";
|
|
3
|
+
import { c as x } from "../../index-L8X2o7IH.js";
|
|
4
|
+
import { useState as j } from "react";
|
|
5
|
+
import { Skeleton as A } from "../Skeleton/Skeleton.js";
|
|
6
|
+
import { fromStringToColor as E } from "./color.js";
|
|
7
|
+
import '../../assets/Avatar.css';const I = "_avatar_1qmnt_1", y = "_shape_1qmnt_20", z = "_label_1qmnt_31", H = "_image_1qmnt_41", r = {
|
|
8
|
+
avatar: I,
|
|
9
|
+
shape: y,
|
|
10
|
+
label: z,
|
|
11
11
|
image: H
|
|
12
12
|
}, F = (a) => typeof a == "object" && a !== null && "name" in a, G = ({
|
|
13
13
|
type: a = "person",
|
|
14
|
-
size:
|
|
14
|
+
size: p,
|
|
15
15
|
name: l = "Avatar",
|
|
16
|
-
shape:
|
|
17
|
-
color:
|
|
16
|
+
shape: d,
|
|
17
|
+
color: u,
|
|
18
18
|
variant: o = "solid",
|
|
19
|
-
outline:
|
|
19
|
+
outline: h = !0,
|
|
20
20
|
imageUrl: s,
|
|
21
21
|
imageUrlAlt: _,
|
|
22
22
|
customLabel: g,
|
|
23
|
-
loading:
|
|
23
|
+
loading: n,
|
|
24
24
|
className: b,
|
|
25
|
-
style:
|
|
25
|
+
style: c = {}
|
|
26
26
|
}) => {
|
|
27
|
-
const [f, v] =
|
|
28
|
-
...
|
|
29
|
-
backgroundColor: o === "outline" ? m :
|
|
30
|
-
color: o === "outline" ?
|
|
31
|
-
} :
|
|
27
|
+
const [f, v] = j(!1), C = d || a === "person" ? "circle" : "square", q = u || a === "person" ? "light" : "dark", { backgroundColor: i, foregroundColor: m } = E(l, q), N = (l[0] ?? "").toUpperCase(), t = s && !f, S = !n && !t ? {
|
|
28
|
+
...c,
|
|
29
|
+
backgroundColor: o === "outline" ? m : i,
|
|
30
|
+
color: o === "outline" ? i : m
|
|
31
|
+
} : c;
|
|
32
32
|
return /* @__PURE__ */ e(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
36
|
-
style:
|
|
37
|
-
"data-shape":
|
|
38
|
-
"data-size":
|
|
39
|
-
"data-outline":
|
|
35
|
+
className: x(r.avatar, b),
|
|
36
|
+
style: S,
|
|
37
|
+
"data-shape": C,
|
|
38
|
+
"data-size": p,
|
|
39
|
+
"data-outline": h,
|
|
40
40
|
"aria-hidden": !0,
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ k(A, { loading: n, className: r.shape, variant: "circle", children: [
|
|
42
42
|
/* @__PURE__ */ e("div", { className: r.shape, "data-variant": o, children: t && /* @__PURE__ */ e(
|
|
43
43
|
"img",
|
|
44
44
|
{
|
|
@@ -50,7 +50,7 @@ import '../../assets/Avatar.css';const E = "_avatar_1j6yz_1", I = "_shape_1j6yz_
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
) }),
|
|
53
|
-
!t && /* @__PURE__ */ e("span", { className: r.label, children: g ||
|
|
53
|
+
!t && /* @__PURE__ */ e("span", { className: r.label, children: g || N })
|
|
54
54
|
] })
|
|
55
55
|
}
|
|
56
56
|
);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { c as n } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import { useMemo as f } from "react";
|
|
5
5
|
import { Avatar as h } from "./Avatar.js";
|
|
6
|
-
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10",
|
|
6
|
+
import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", s = {
|
|
7
7
|
group: A,
|
|
8
8
|
item: _
|
|
9
9
|
}, L = (o) => typeof o == "object" && o !== null && "items" in o, N = ({
|
|
10
10
|
items: o = [],
|
|
11
|
-
maxItemsCount:
|
|
11
|
+
maxItemsCount: l = 4,
|
|
12
12
|
defaultType: i,
|
|
13
13
|
size: c,
|
|
14
14
|
className: m,
|
|
15
15
|
style: u
|
|
16
16
|
}) => {
|
|
17
|
-
const t = f(() => o.slice(0,
|
|
18
|
-
return o.length === 0 ? /* @__PURE__ */
|
|
19
|
-
const g = p ===
|
|
20
|
-
return /* @__PURE__ */
|
|
17
|
+
const t = f(() => o.slice(0, l).reverse(), [o, l]);
|
|
18
|
+
return o.length === 0 ? /* @__PURE__ */ r("div", { className: s.avatarGroup }) : /* @__PURE__ */ r("ul", { className: n(s.group, m), "data-size": c, "data-count": t == null ? void 0 : t.length, style: u, children: t.map((e, p) => {
|
|
19
|
+
const g = p === l - 1, d = e.customLabel || g ? o.length.toString() : void 0;
|
|
20
|
+
return /* @__PURE__ */ r("li", { className: n(s.item), children: /* @__PURE__ */ r(
|
|
21
21
|
h,
|
|
22
22
|
{
|
|
23
23
|
name: e.name,
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as v, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { AvatarGroup as
|
|
6
|
-
import { Skeleton as
|
|
4
|
+
import { Avatar as f } from "../Avatar/Avatar.js";
|
|
5
|
+
import { AvatarGroup as d } from "../Avatar/AvatarGroup.js";
|
|
6
|
+
import { Skeleton as n } from "../Skeleton/Skeleton.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/Byline.css';const
|
|
10
|
-
byline:
|
|
11
|
-
avatar:
|
|
9
|
+
import '../../assets/Byline.css';const y = "_byline_fzp7k_1", k = "_avatar_fzp7k_7", u = "_avatarGroup_fzp7k_12", N = "_label_fzp7k_26", t = {
|
|
10
|
+
byline: y,
|
|
11
|
+
avatar: k,
|
|
12
12
|
avatarGroup: u,
|
|
13
13
|
label: N
|
|
14
|
-
},
|
|
15
|
-
loading:
|
|
16
|
-
color:
|
|
17
|
-
size:
|
|
18
|
-
avatar:
|
|
14
|
+
}, L = ({
|
|
15
|
+
loading: l,
|
|
16
|
+
color: c = "neutral",
|
|
17
|
+
size: r = "xs",
|
|
18
|
+
avatar: o,
|
|
19
19
|
avatarGroup: e,
|
|
20
|
-
datetime:
|
|
21
|
-
children:
|
|
22
|
-
as:
|
|
20
|
+
datetime: s,
|
|
21
|
+
children: m,
|
|
22
|
+
as: i,
|
|
23
23
|
...p
|
|
24
|
-
}) =>
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
24
|
+
}) => {
|
|
25
|
+
const _ = i || "div", b = s ? "time" : "span";
|
|
26
|
+
return /* @__PURE__ */ v(_, { ...p, className: t.byline, "data-color": c, "data-size": r, children: [
|
|
27
|
+
(e || o) && /* @__PURE__ */ a(n, { variant: "circle", className: t.avatar, loading: l, children: e ? /* @__PURE__ */ a(d, { ...e, size: r, className: t.avatarGroup }) : o && /* @__PURE__ */ a(f, { ...o, size: r, className: t.avatar }) }),
|
|
28
|
+
/* @__PURE__ */ a(b, { "data-size": r, dateTime: s, className: t.label, children: /* @__PURE__ */ a(n, { loading: l, children: m }) })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
L as Byline
|
|
30
33
|
};
|
|
@@ -12,7 +12,7 @@ const p = ({
|
|
|
12
12
|
loading: m,
|
|
13
13
|
size: r = "xs"
|
|
14
14
|
}) => !o && !a ? null : /* @__PURE__ */ u(v, { loading: m, size: r, avatar: o, avatarGroup: !m && l && o && a ? {
|
|
15
|
-
items: [
|
|
15
|
+
items: [a, o]
|
|
16
16
|
} : void 0, children: [
|
|
17
17
|
/* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
|
|
18
18
|
" ",
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useState as s, Fragment as h, createElement as l } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { SeenByLogButton as
|
|
7
|
-
import { SeenByLogItem as
|
|
8
|
-
import { Divider as
|
|
9
|
-
import { List as
|
|
6
|
+
import { SeenByLogButton as p } from "./SeenByLogButton.js";
|
|
7
|
+
import { SeenByLogItem as S } from "./SeenByLogItem.js";
|
|
8
|
+
import { Divider as d } from "../Divider/Divider.js";
|
|
9
|
+
import { List as x } from "../List/List.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { Section as
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
import { Flex as y } from "../Page/Flex.js";
|
|
12
|
+
import { Section as B } from "../Page/Section.js";
|
|
13
|
+
const b = ({
|
|
14
|
+
collapsible: t,
|
|
15
|
+
expanded: g,
|
|
16
|
+
title: e,
|
|
17
|
+
items: r,
|
|
18
|
+
size: i = "sm",
|
|
19
|
+
endUserLabel: f = "You"
|
|
20
|
+
}) => {
|
|
21
|
+
const [c, u] = s(g || !t && !0);
|
|
22
|
+
return /* @__PURE__ */ m(B, { spacing: 1, children: [
|
|
23
|
+
e && /* @__PURE__ */ o(y, { children: t ? /* @__PURE__ */ o(p, { icon: { items: r }, as: "button", onClick: () => {
|
|
24
|
+
u((n) => !n);
|
|
25
|
+
}, children: e }) : /* @__PURE__ */ o(p, { icon: { items: r }, as: "div", children: e }) }),
|
|
26
|
+
e && c && /* @__PURE__ */ o(d, {}),
|
|
27
|
+
c && /* @__PURE__ */ o(x, { size: i, spacing: 1, children: r == null ? void 0 : r.map((n, a) => /* @__PURE__ */ m(h, { children: [
|
|
28
|
+
a > 0 && /* @__PURE__ */ o(d, {}),
|
|
29
|
+
/* @__PURE__ */ l(S, { ...n, key: n.id, size: i, endUserLabel: f })
|
|
23
30
|
] }, n.id)) })
|
|
24
31
|
] });
|
|
25
32
|
};
|
|
26
33
|
export {
|
|
27
|
-
|
|
34
|
+
b as SeenByLog
|
|
28
35
|
};
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Badge as s } from "../Badge/Badge.js";
|
|
5
|
-
import { Byline as
|
|
5
|
+
import { Byline as l } from "../Byline/Byline.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Flex as
|
|
9
|
-
const
|
|
8
|
+
import { Flex as c } from "../Page/Flex.js";
|
|
9
|
+
const j = ({
|
|
10
|
+
name: r,
|
|
11
|
+
seenAt: i,
|
|
12
|
+
seenAtLabel: m,
|
|
13
|
+
isEndUser: n,
|
|
14
|
+
endUserLabel: p,
|
|
15
|
+
size: a = "sm"
|
|
16
|
+
}) => {
|
|
10
17
|
const t = n && { label: p };
|
|
11
|
-
return /* @__PURE__ */ e(
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ e(c, { align: "center", spacing: 2, as: "li", children: [
|
|
19
|
+
/* @__PURE__ */ e(l, { size: a, datetime: i, avatar: { name: r, type: "person" }, children: [
|
|
20
|
+
/* @__PURE__ */ o("strong", { children: r + "," }),
|
|
14
21
|
" ",
|
|
15
22
|
m
|
|
16
23
|
] }),
|
|
17
|
-
t && /* @__PURE__ */
|
|
24
|
+
t && /* @__PURE__ */ o(s, { variant: "subtle", ...t })
|
|
18
25
|
] });
|
|
19
26
|
};
|
|
20
27
|
export {
|
|
21
|
-
|
|
28
|
+
j as SeenByLogItem
|
|
22
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/LayoutSidebar.css';const d = "
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/LayoutSidebar.css';const d = "_sidebar_lkphj_1", i = {
|
|
3
3
|
sidebar: d
|
|
4
|
-
},
|
|
4
|
+
}, c = ({ color: a, hidden: s = !1, sticky: e, children: r }) => /* @__PURE__ */ t("aside", { className: i.sidebar, "data-color": a, "data-sticky": e, "aria-hidden": s, children: r });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as LayoutSidebar
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Snackbar/useSnackbar.js";
|
|
6
|
-
import { SearchField as
|
|
7
|
-
import '../../assets/MenuSearch.css';const
|
|
8
|
-
field:
|
|
6
|
+
import { SearchField as l } from "../Forms/SearchField.js";
|
|
7
|
+
import '../../assets/MenuSearch.css';const m = "_field_1w1s0_1", p = {
|
|
8
|
+
field: m
|
|
9
9
|
}, y = ({
|
|
10
10
|
name: o,
|
|
11
11
|
value: r,
|
|
@@ -13,8 +13,8 @@ import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", m = {
|
|
|
13
13
|
clearButtonAltText: i = "Clear search",
|
|
14
14
|
onChange: s,
|
|
15
15
|
onClear: a
|
|
16
|
-
}) => /* @__PURE__ */
|
|
17
|
-
|
|
16
|
+
}) => /* @__PURE__ */ f(
|
|
17
|
+
l,
|
|
18
18
|
{
|
|
19
19
|
size: "xs",
|
|
20
20
|
name: o,
|
|
@@ -23,7 +23,7 @@ import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", m = {
|
|
|
23
23
|
onChange: s,
|
|
24
24
|
onClear: a,
|
|
25
25
|
clearButtonAltText: i,
|
|
26
|
-
className:
|
|
26
|
+
className: p.field,
|
|
27
27
|
autoComplete: "off",
|
|
28
28
|
autoFocus: !0,
|
|
29
29
|
onKeyDown: (e) => {
|
|
@@ -4,9 +4,10 @@ export interface SeenByLogProps {
|
|
|
4
4
|
collapsible?: boolean;
|
|
5
5
|
expanded?: boolean;
|
|
6
6
|
items: SeenByLogItemProps[];
|
|
7
|
+
size?: 'sm' | 'md';
|
|
7
8
|
endUserLabel?: string;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* SeenByLog
|
|
11
12
|
*/
|
|
12
|
-
export declare const SeenByLog: ({ collapsible, expanded, title, items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const SeenByLog: ({ collapsible, expanded, title, items, size, endUserLabel, }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { SeenByLogProps } from '../';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ collapsible, expanded, title, items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ collapsible, expanded, title, items, size, endUserLabel, }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {};
|
|
8
8
|
args: {
|
|
@@ -6,8 +6,9 @@ export interface SeenByLogItemProps extends AvatarProps {
|
|
|
6
6
|
isEndUser?: boolean;
|
|
7
7
|
endUserLabel?: string;
|
|
8
8
|
badge?: BadgeProps;
|
|
9
|
+
size?: 'sm' | 'md';
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* SeenByLog item
|
|
12
13
|
*/
|
|
13
|
-
export declare const SeenByLogItem: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel }: SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const SeenByLogItem: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel, size, }: SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel }: import('./SeenByLogItem').SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel, size, }: import('./SeenByLogItem').SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -18,12 +18,12 @@ declare const meta: {
|
|
|
18
18
|
isEndUser?: boolean | undefined;
|
|
19
19
|
endUserLabel?: string | undefined;
|
|
20
20
|
badge?: import('..').BadgeProps | undefined;
|
|
21
|
+
size?: "sm" | "md" | undefined;
|
|
21
22
|
name: string;
|
|
22
23
|
type?: import('..').AvatarType | undefined;
|
|
23
24
|
shape?: import('..').AvatarColor | undefined;
|
|
24
25
|
color?: import('..').AvatarColor | undefined;
|
|
25
26
|
variant?: import('..').AvatarVariant | undefined;
|
|
26
|
-
size?: import('..').AvatarSize | undefined;
|
|
27
27
|
className?: string | undefined;
|
|
28
28
|
imageUrl?: string | undefined;
|
|
29
29
|
imageUrlAlt?: string | undefined;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { LayoutColor, LayoutTheme } from '.';
|
|
2
|
+
import { LayoutColor, LayoutSidebarProps, LayoutTheme } from '.';
|
|
3
3
|
import { FooterProps } from '../Footer';
|
|
4
4
|
import { HeaderProps } from '../Header';
|
|
5
5
|
import { MenuProps } from '../Menu';
|
|
6
6
|
import { SkipLinkProps } from '../SkipLink';
|
|
7
|
-
interface SidebarProps {
|
|
8
|
-
color?: LayoutColor;
|
|
7
|
+
interface SidebarProps extends LayoutSidebarProps {
|
|
9
8
|
menu?: MenuProps;
|
|
10
9
|
children?: ReactNode;
|
|
11
|
-
hidden?: boolean;
|
|
12
10
|
}
|
|
13
11
|
interface ContentProps {
|
|
14
12
|
color?: LayoutColor;
|
|
@@ -23,5 +23,6 @@ declare const meta: {
|
|
|
23
23
|
};
|
|
24
24
|
export default meta;
|
|
25
25
|
export declare const Preview: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const StickySidebar: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
export declare const HiddenSidebar: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
export declare const Fullscreen: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,7 @@ import { LayoutColor } from './LayoutBase';
|
|
|
8
8
|
export interface LayoutSidebarProps {
|
|
9
9
|
color?: LayoutColor;
|
|
10
10
|
hidden?: boolean;
|
|
11
|
+
sticky?: boolean;
|
|
11
12
|
children?: ReactNode;
|
|
12
13
|
}
|
|
13
|
-
export declare const LayoutSidebar: ({ color, hidden, children }: LayoutSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const LayoutSidebar: ({ color, hidden, sticky, children }: LayoutSidebarProps) => import("react/jsx-runtime").JSX.Element;
|