@altinn/altinn-components 0.23.1 → 0.23.2
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/TimelineBase.css +1 -1
- package/dist/assets/TimelineLink.css +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/List/ListItemLabel.js +13 -13
- 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/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
|
+
._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,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,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
|
};
|
|
@@ -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: {
|