@altinn/altinn-components 0.35.0 → 0.35.1
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
|
-
.
|
|
1
|
+
._header_ffjwj_1{width:100%;display:flex;align-items:center;column-gap:.5rem;min-height:1.5rem}._sidebar_ffjwj_9{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem}._content_ffjwj_18{flex-grow:1;display:flex;flex-direction:column}
|
|
@@ -8,14 +8,14 @@ import { TimelineIcon as l } from "./TimelineIcon.js";
|
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { Flex as d } from "../Page/Flex.js";
|
|
11
|
-
import '../../assets/TimelineHeader.css';const
|
|
12
|
-
header:
|
|
13
|
-
sidebar:
|
|
14
|
-
content:
|
|
15
|
-
},
|
|
11
|
+
import '../../assets/TimelineHeader.css';const f = "_header_ffjwj_1", p = "_sidebar_ffjwj_9", h = "_content_ffjwj_18", r = {
|
|
12
|
+
header: f,
|
|
13
|
+
sidebar: p,
|
|
14
|
+
content: h
|
|
15
|
+
}, g = ({ as: t = "li", loading: i, color: o, icon: s, children: n }) => /* @__PURE__ */ m(d, { as: t, className: r.header, color: o, children: [
|
|
16
16
|
/* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(c, { variant: "circle", loading: i, children: /* @__PURE__ */ e(l, { icon: s, theme: "base", size: "lg" }) }) }),
|
|
17
17
|
/* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(a, { loading: i, size: "lg", children: n }) })
|
|
18
18
|
] });
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
g as TimelineHeader
|
|
21
21
|
};
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isValidElement as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement as n } from "react";
|
|
3
|
+
import { Icon as e, isIconProps as p } from "../Icon/Icon.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import { isAvatarProps as l, Avatar as f } from "../Avatar/Avatar.js";
|
|
6
|
-
import { isAvatarGroupProps as
|
|
6
|
+
import { isAvatarGroupProps as g, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { S as
|
|
11
|
-
import '../../assets/TimelineIcon.css';const
|
|
12
|
-
icon:
|
|
10
|
+
import { S as c } from "../../XMark-DIqxCTTQ.js";
|
|
11
|
+
import '../../assets/TimelineIcon.css';const d = "_icon_13w5g_1", a = {
|
|
12
|
+
icon: d
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
return typeof
|
|
14
|
+
function h(t) {
|
|
15
|
+
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const _ = ({ loading: t, size: m, color: s, theme: i, icon: r }) => r ? t ? /* @__PURE__ */ o(e, { className: a.icon, svgElement: c, loading: !0 }) : /* @__PURE__ */ o("div", { className: a.icon, "data-color": s, "data-size": m, children: l(r) && /* @__PURE__ */ o(
|
|
18
|
+
f,
|
|
19
|
+
{
|
|
20
|
+
...r,
|
|
21
|
+
innerContainerStyle: { width: "unset", height: "1em" },
|
|
22
|
+
avatarImageStyle: { height: "1.75rem", width: "auto", marginTop: "0.25rem" }
|
|
23
|
+
}
|
|
24
|
+
) || g(r) && /* @__PURE__ */ o(u, { ...r, className: a.avatarGroup }) || p(r) && /* @__PURE__ */ o(e, { ...r, theme: i }) || h(r) && r || /* @__PURE__ */ o(e, { theme: i, svgElement: r }) }) : null;
|
|
18
25
|
export {
|
|
19
|
-
|
|
26
|
+
_ as TimelineIcon
|
|
20
27
|
};
|