@altinn/altinn-components 0.19.3 → 0.19.4

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
- ._flex_1e7ut_1{display:flex;list-style:none;padding:0}._flex_1e7ut_1[data-direction=col]{flex-direction:column}._flex_1e7ut_1[data-direction=row]{flex-direction:row}._flex_1e7ut_1[data-align=center]{align-items:center}._flex_1e7ut_1[data-align=start]{align-items:flex-start}._flex_1e7ut_1[data-align=end]{align-items:flex-end}._flex_1e7ut_1[data-justify=start]{justify-content:flex-start}._flex_1e7ut_1[data-justify=end]{justify-content:flex-end}._flex_1e7ut_1[data-justify=center]{justify-content:center}._flex_1e7ut_1[data-justify=between]{justify-content:space-between}@media (max-width: 1023px){._flex_1e7ut_1[data-bleed=true]{margin-left:-1rem;margin-right:-1rem}}._flex_1e7ut_1[data-padding=page]{padding:var(--ds-spacing-6)}@media (max-width: 1023px){._flex_1e7ut_1[data-padding=page]{padding-left:var(--ds-spacing-4);padding-right:var(--ds-spacing-4)}}._flex_1e7ut_1[data-spacing=xs]{gap:.125rem}._flex_1e7ut_1[data-spacing=page]{gap:1.5rem}._flex_1e7ut_1{margin:0}._flex_1e7ut_1[data-margin=section]{margin:.625rem 0}._flex_1e7ut_1[data-margin=page]{margin:1.125rem 0}
1
+ ._flex_165ub_1{display:flex;list-style:none;padding:0}._flex_165ub_1[data-direction=col]{flex-direction:column}._flex_165ub_1[data-direction=row]{flex-direction:row}._flex_165ub_1[data-align=center]{align-items:center}._flex_165ub_1[data-align=start]{align-items:flex-start}._flex_165ub_1[data-align=end]{align-items:flex-end}._flex_165ub_1[data-justify=start]{justify-content:flex-start}._flex_165ub_1[data-justify=end]{justify-content:flex-end}._flex_165ub_1[data-justify=center]{justify-content:center}._flex_165ub_1[data-justify=between]{justify-content:space-between}@media (max-width: 1023px){._flex_165ub_1[data-bleed=true]{margin-left:-1rem;margin-right:-1rem}}._flex_165ub_1[data-padding=page]{padding:var(--ds-spacing-6)}@media (max-width: 1023px){._flex_165ub_1[data-padding=page]{padding-left:var(--ds-spacing-4);padding-right:var(--ds-spacing-4)}}._flex_165ub_1[data-spacing=xs]{gap:.125rem}._flex_165ub_1[data-spacing=page]{gap:1.5rem}._flex_165ub_1{margin:0}._flex_165ub_1[data-margin=section]{margin:.625rem 0}._flex_165ub_1[data-margin=page]{margin:1.125rem 0}._flex_165ub_1[data-margin=bottom]{margin:0 0 1em}
@@ -1 +1 @@
1
- ._typography_gmmcy_1{width:100%;max-width:45rem;line-height:1.5}._typography_gmmcy_1[data-variant=default]{color:var(--ds-color-text-default)}._typography_gmmcy_1[data-variant=subtle]{color:var(--ds-color-text-subtle)}._typography_gmmcy_1[data-size=xs]{font-size:.875rem}._typography_gmmcy_1[data-size=sm]{font-size:1rem}._typography_gmmcy_1[data-size=md]{font-size:1.125rem}._typography_gmmcy_1[data-size=lg]{font-size:1.25rem}._typography_gmmcy_1[data-size=xl]{font-size:1.5rem}._typography_gmmcy_1>*:first-child{margin-top:0}._typography_gmmcy_1>*:last-child{margin-bottom:0}._typography_gmmcy_1 strong{font-weight:500}._typography_gmmcy_1 a{color:var(--ds-color-base-default)}._typography_gmmcy_1 a:hover{color:var(--ds-color-base-hover)}._typography_gmmcy_1>p{font-size:1em;margin:1em 0}._typography_gmmcy_1>h1{font-size:1.5rem;font-weight:500;margin-top:1.5em;margin-bottom:0}._typography_gmmcy_1>h2{font-size:1.25rem;font-weight:600;margin-top:1.5em;margin-bottom:0}._typography_gmmcy_1>h3{font-size:1em;font-weight:600;margin:1em 0}._typography_gmmcy_1>h4{font-size:1em;font-weight:600;margin:1em 0 0}._typography_gmmcy_1>h5,._typography_gmmcy_1>h6{font-size:.875rem;margin:1em 0 0}._typography_gmmcy_1>h6{font-weight:500;color:var(--ds-color-text-subtle)}._typography_gmmcy_1>h6{font-weight:400;color:var(--ds-color-text-subtle)}._typography_gmmcy_1>h5+*,._typography_gmmcy_1>h6+*{margin-top:0}._typography_gmmcy_1>section{margin:1em 0}._typography_gmmcy_1 ul:not([class]),._typography_gmmcy_1 ol:not([class]){list-style-position:inside;padding-left:1rem;margin:1em 0}
1
+ ._typography_15g2t_1{width:100%;max-width:45rem;line-height:1.5}p._typography_15g2t_1{margin:0}._typography_15g2t_1[data-variant=default]{color:var(--ds-color-text-default)}._typography_15g2t_1[data-variant=subtle]{color:var(--ds-color-text-subtle)}._typography_15g2t_1[data-size=xs]{font-size:.875rem}._typography_15g2t_1[data-size=sm]{font-size:1rem}._typography_15g2t_1[data-size=md]{font-size:1.125rem}._typography_15g2t_1[data-size=lg]{font-size:1.25rem}._typography_15g2t_1[data-size=xl]{font-size:1.5rem}._typography_15g2t_1>*:first-child{margin-top:0}._typography_15g2t_1>*:last-child{margin-bottom:0}._typography_15g2t_1 strong{font-weight:500}._typography_15g2t_1 a{color:var(--ds-color-base-default)}._typography_15g2t_1 a:hover{color:var(--ds-color-base-hover)}._typography_15g2t_1>p{font-size:1em;margin:1em 0}._typography_15g2t_1>h1{font-size:1.5rem;font-weight:500;margin-top:1.5em;margin-bottom:0}._typography_15g2t_1>h2{font-size:1.25rem;font-weight:600;margin-top:1.5em;margin-bottom:0}._typography_15g2t_1>h3{font-size:1em;font-weight:600;margin:1em 0}._typography_15g2t_1>h4{font-size:1em;font-weight:600;margin:1em 0 0}._typography_15g2t_1>h5,._typography_15g2t_1>h6{font-size:.875rem;margin:1em 0 0}._typography_15g2t_1>h6{font-weight:500;color:var(--ds-color-text-subtle)}._typography_15g2t_1>h6{font-weight:400;color:var(--ds-color-text-subtle)}._typography_15g2t_1>h5+*,._typography_15g2t_1>h6+*{margin-top:0}._typography_15g2t_1>section{margin:1em 0}._typography_15g2t_1 ul:not([class]),._typography_15g2t_1 ol:not([class]){list-style-position:inside;padding-left:1rem;margin:1em 0}
@@ -1,8 +1,8 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { c as _ } from "../../index-L8X2o7IH.js";
3
- import '../../assets/Flex.css';const h = "_flex_1e7ut_1", j = {
4
- flex: h
5
- }, C = ({
3
+ import '../../assets/Flex.css';const b = "_flex_165ub_1", h = {
4
+ flex: b
5
+ }, y = ({
6
6
  as: a = "div",
7
7
  color: t,
8
8
  theme: e = "transparent",
@@ -22,7 +22,7 @@ import '../../assets/Flex.css';const h = "_flex_1e7ut_1", j = {
22
22
  }) => /* @__PURE__ */ u(
23
23
  a,
24
24
  {
25
- className: _(j.flex, m),
25
+ className: _(h.flex, m),
26
26
  style: p,
27
27
  "data-color": t,
28
28
  "data-theme": e,
@@ -40,5 +40,5 @@ import '../../assets/Flex.css';const h = "_flex_1e7ut_1", j = {
40
40
  }
41
41
  );
42
42
  export {
43
- C as Flex
43
+ y as Flex
44
44
  };
@@ -1,11 +1,11 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as t } 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
7
  import { Section as i } from "../Page/Section.js";
8
- const f = ({ children: o }) => /* @__PURE__ */ r(i, { spacing: 2, children: o });
8
+ const x = ({ spacing: o = 2, children: r }) => /* @__PURE__ */ t(i, { spacing: o, children: r });
9
9
  export {
10
- f as Timeline
10
+ x as Timeline
11
11
  };
@@ -1,33 +1,29 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Byline as x } from "../Byline/Byline.js";
4
+ import { Byline as n } from "../Byline/Byline.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import { TimelineBase as y } from "./TimelineBase.js";
9
- import { Section as S } from "../Page/Section.js";
10
- import { Typography as T } from "../Typography/Typography.js";
8
+ import { Section as l } from "../Page/Section.js";
9
+ import { Typography as y } from "../Typography/Typography.js";
11
10
  import { S as a } from "../../CircleFill-IZdiBc_K.js";
12
- const q = ({
11
+ const k = ({
13
12
  loading: r,
14
- byline: i,
15
- icon: p = a,
16
- color: e = "neutral",
17
- typographyProps: s = {},
18
- margin: c,
19
- spacing: f,
20
- datetime: l,
21
- children: m,
22
- footer: n,
23
- ...h
24
- }) => /* @__PURE__ */ o(y, { loading: r, color: e, icon: p, ...h, children: [
25
- i && /* @__PURE__ */ t(x, { loading: r, datetime: l, children: i }),
26
- /* @__PURE__ */ o(S, { margin: c, spacing: f, children: [
27
- m && /* @__PURE__ */ t(T, { loading: r, size: "md", ...s, children: m }),
28
- n
29
- ] })
13
+ byline: t,
14
+ icon: x = a,
15
+ color: S = "neutral",
16
+ typographyProps: m = {},
17
+ margin: p,
18
+ spacing: e,
19
+ datetime: s,
20
+ children: o,
21
+ footer: g,
22
+ ...f
23
+ }) => /* @__PURE__ */ c(l, { margin: p, spacing: e, ...f, children: [
24
+ t && /* @__PURE__ */ i(n, { loading: r, datetime: s, children: t }),
25
+ o && typeof o == "string" ? /* @__PURE__ */ i(y, { as: "p", loading: r, size: "md", ...m, children: o }) : o
30
26
  ] });
31
27
  export {
32
- q as TimelineActivity
28
+ k as TimelineActivity
33
29
  };
@@ -0,0 +1,28 @@
1
+ import { jsx as i, jsxs as f } from "react/jsx-runtime";
2
+ import "../../index-L8X2o7IH.js";
3
+ import "react";
4
+ import { Byline as s } from "../Byline/Byline.js";
5
+ import "../RootProvider/RootProvider.js";
6
+ import "../Search/AutocompleteBase.js";
7
+ import "../Snackbar/useSnackbar.js";
8
+ import { TimelineBase as S } from "./TimelineBase.js";
9
+ import { Section as h } from "../Page/Section.js";
10
+ import { S as x } from "../../CircleFill-IZdiBc_K.js";
11
+ const k = ({
12
+ loading: r,
13
+ datetime: m,
14
+ byline: o,
15
+ icon: t = x,
16
+ color: e = "neutral",
17
+ spacing: p = 2,
18
+ margin: n = "bottom",
19
+ children: l,
20
+ footer: a,
21
+ ...c
22
+ }) => /* @__PURE__ */ i(S, { loading: r, color: e, icon: t, ...c, children: /* @__PURE__ */ f(h, { margin: n, spacing: p, children: [
23
+ o && /* @__PURE__ */ i(s, { loading: r, datetime: m, children: o }),
24
+ l
25
+ ] }) });
26
+ export {
27
+ k as TimelineSegment
28
+ };
@@ -1,14 +1,16 @@
1
1
  import { Timeline as o } from "./Timeline.js";
2
- import { TimelineBase as m } from "./TimelineBase.js";
3
- import { TimelineSection as n } from "./TimelineSection.js";
4
- import { TimelineHeader as l } from "./TimelineHeader.js";
5
- import { TimelineFooter as x } from "./TimelineFooter.js";
6
- import { TimelineActivity as a } from "./TimelineActivity.js";
2
+ import { TimelineSegment as m } from "./TimelineSegment.js";
3
+ import { TimelineActivity as n } from "./TimelineActivity.js";
4
+ import { TimelineBase as l } from "./TimelineBase.js";
5
+ import { TimelineSection as x } from "./TimelineSection.js";
6
+ import { TimelineHeader as a } from "./TimelineHeader.js";
7
+ import { TimelineFooter as S } from "./TimelineFooter.js";
7
8
  export {
8
9
  o as Timeline,
9
- a as TimelineActivity,
10
- m as TimelineBase,
11
- x as TimelineFooter,
12
- l as TimelineHeader,
13
- n as TimelineSection
10
+ n as TimelineActivity,
11
+ l as TimelineBase,
12
+ S as TimelineFooter,
13
+ a as TimelineHeader,
14
+ x as TimelineSection,
15
+ m as TimelineSegment
14
16
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { c as s } from "../../index-L8X2o7IH.js";
2
+ import { c as m } from "../../index-L8X2o7IH.js";
3
3
  import { Skeleton as i } from "../Skeleton/Skeleton.js";
4
- import '../../assets/Typography.css';const d = "_typography_gmmcy_1", h = {
4
+ import '../../assets/Typography.css';const d = "_typography_15g2t_1", h = {
5
5
  typography: d
6
6
  }, _ = ({
7
7
  loading: o,
@@ -9,19 +9,19 @@ import '../../assets/Typography.css';const d = "_typography_gmmcy_1", h = {
9
9
  as: a = "div",
10
10
  size: p = "md",
11
11
  color: n,
12
- variant: m,
13
- className: y,
14
- children: c,
15
- ...e
12
+ variant: e,
13
+ className: s,
14
+ children: y,
15
+ ...c
16
16
  }) => /* @__PURE__ */ t(
17
17
  a,
18
18
  {
19
- className: s(h.typography, y),
19
+ className: m(h.typography, s),
20
20
  "data-size": p,
21
21
  "data-color": n,
22
- "data-variant": m,
23
- ...e,
24
- children: o && /* @__PURE__ */ t(i, { loading: o, children: r }) || c
22
+ "data-variant": e,
23
+ ...c,
24
+ children: o && /* @__PURE__ */ t(i, { loading: o, children: r }) || y
25
25
  }
26
26
  );
27
27
  export {
@@ -112,52 +112,53 @@ import { SnackbarColorEnum as ut, SnackbarItem as lt } from "./Snackbar/Snackbar
112
112
  import { SnackbarDuration as Bt, SnackbarProvider as gt, useSnackbar as It } from "./Snackbar/useSnackbar.js";
113
113
  import { Skeleton as Dt } from "./Skeleton/Skeleton.js";
114
114
  import { Timeline as Mt } from "./Timeline/Timeline.js";
115
- import { TimelineBase as At } from "./Timeline/TimelineBase.js";
116
- import { TimelineSection as kt } from "./Timeline/TimelineSection.js";
117
- import { TimelineHeader as Ht } from "./Timeline/TimelineHeader.js";
118
- import { TimelineFooter as Pt } from "./Timeline/TimelineFooter.js";
119
- import { TimelineActivity as vt } from "./Timeline/TimelineActivity.js";
120
- import { ToolbarBase as Ct } from "./Toolbar/ToolbarBase.js";
121
- import { ToolbarButton as Rt } from "./Toolbar/ToolbarButton.js";
122
- import { Toolbar as Ot } from "./Toolbar/Toolbar.js";
123
- import { ToolbarSearch as zt } from "./Toolbar/ToolbarSearch.js";
124
- import { ToolbarFilter as jt } from "./Toolbar/ToolbarFilter.js";
125
- import { ToolbarDaterange as Jt } from "./Toolbar/ToolbarDaterange.js";
126
- import { PageBase as Ut } from "./Page/PageBase.js";
127
- import { PageNav as Wt } from "./Page/PageNav.js";
128
- import { PageMenu as Yt } from "./Page/PageMenu.js";
129
- import { PageTabs as _t } from "./Page/PageTabs.js";
130
- import { PageHeader as om } from "./Page/PageHeader.js";
131
- import { Article as em } from "./Page/Article.js";
132
- import { Section as mm } from "./Page/Section.js";
133
- import { Flex as xm } from "./Page/Flex.js";
134
- import { Grid as fm } from "./Page/Grid.js";
135
- import { Breadcrumbs as nm } from "./Page/Breadcrumbs.js";
136
- import { BreadcrumbsLink as cm } from "./Page/BreadcrumbsLink.js";
137
- import { ContactSection as lm } from "./Page/ContactSection.js";
138
- import { Transmission as Bm } from "./Transmission/Transmission.js";
139
- import { TransmissionList as Im } from "./Transmission/TransmissionList.js";
140
- import { Typography as Dm } from "./Typography/Typography.js";
141
- import { Heading as Mm } from "./Typography/Heading.js";
142
- import { ResourceList as Am } from "./ResourceList/ResourceList.js";
143
- import { ResourceListItem as km } from "./ResourceList/ResourceListItem.js";
144
- import { AccessAreaListItem as Hm } from "./AccessAreaList/AccessAreaListItem.js";
145
- import { AccessAreaList as Pm } from "./AccessAreaList/AccessAreaList.js";
146
- import { AccessPackageListItem as vm } from "./AccessPackageList/AccessPackageListItem.js";
147
- import { AccessPackageList as Cm } from "./AccessPackageList/AccessPackageList.js";
148
- import { FieldBase as Rm } from "./TextField/FieldBase.js";
149
- import { InputBase as Om } from "./TextField/InputBase.js";
150
- import { TextField as zm } from "./TextField/TextField.js";
115
+ import { TimelineSegment as At } from "./Timeline/TimelineSegment.js";
116
+ import { TimelineActivity as kt } from "./Timeline/TimelineActivity.js";
117
+ import { TimelineBase as Ht } from "./Timeline/TimelineBase.js";
118
+ import { TimelineSection as Pt } from "./Timeline/TimelineSection.js";
119
+ import { TimelineHeader as vt } from "./Timeline/TimelineHeader.js";
120
+ import { TimelineFooter as Ct } from "./Timeline/TimelineFooter.js";
121
+ import { ToolbarBase as Rt } from "./Toolbar/ToolbarBase.js";
122
+ import { ToolbarButton as Ot } from "./Toolbar/ToolbarButton.js";
123
+ import { Toolbar as zt } from "./Toolbar/Toolbar.js";
124
+ import { ToolbarSearch as jt } from "./Toolbar/ToolbarSearch.js";
125
+ import { ToolbarFilter as Jt } from "./Toolbar/ToolbarFilter.js";
126
+ import { ToolbarDaterange as Ut } from "./Toolbar/ToolbarDaterange.js";
127
+ import { PageBase as Wt } from "./Page/PageBase.js";
128
+ import { PageNav as Yt } from "./Page/PageNav.js";
129
+ import { PageMenu as _t } from "./Page/PageMenu.js";
130
+ import { PageTabs as om } from "./Page/PageTabs.js";
131
+ import { PageHeader as em } from "./Page/PageHeader.js";
132
+ import { Article as mm } from "./Page/Article.js";
133
+ import { Section as xm } from "./Page/Section.js";
134
+ import { Flex as fm } from "./Page/Flex.js";
135
+ import { Grid as nm } from "./Page/Grid.js";
136
+ import { Breadcrumbs as cm } from "./Page/Breadcrumbs.js";
137
+ import { BreadcrumbsLink as lm } from "./Page/BreadcrumbsLink.js";
138
+ import { ContactSection as Bm } from "./Page/ContactSection.js";
139
+ import { Transmission as Im } from "./Transmission/Transmission.js";
140
+ import { TransmissionList as Dm } from "./Transmission/TransmissionList.js";
141
+ import { Typography as Mm } from "./Typography/Typography.js";
142
+ import { Heading as Am } from "./Typography/Heading.js";
143
+ import { ResourceList as km } from "./ResourceList/ResourceList.js";
144
+ import { ResourceListItem as Hm } from "./ResourceList/ResourceListItem.js";
145
+ import { AccessAreaListItem as Pm } from "./AccessAreaList/AccessAreaListItem.js";
146
+ import { AccessAreaList as vm } from "./AccessAreaList/AccessAreaList.js";
147
+ import { AccessPackageListItem as Cm } from "./AccessPackageList/AccessPackageListItem.js";
148
+ import { AccessPackageList as Rm } from "./AccessPackageList/AccessPackageList.js";
149
+ import { FieldBase as Om } from "./TextField/FieldBase.js";
150
+ import { InputBase as zm } from "./TextField/InputBase.js";
151
+ import { TextField as jm } from "./TextField/TextField.js";
151
152
  export {
152
- Pm as AccessAreaList,
153
- Hm as AccessAreaListItem,
154
- Cm as AccessPackageList,
155
- vm as AccessPackageListItem,
153
+ vm as AccessAreaList,
154
+ Pm as AccessAreaListItem,
155
+ Rm as AccessPackageList,
156
+ Cm as AccessPackageListItem,
156
157
  Wo as AccountButton,
157
158
  Jo as AccountMenu,
158
159
  Pr as ActionFooter,
159
160
  Hr as ActionHeader,
160
- em as Article,
161
+ mm as Article,
161
162
  m as AttachmentLink,
162
163
  x as AttachmentList,
163
164
  ot as Autocomplete,
@@ -171,8 +172,8 @@ export {
171
172
  c as Badge,
172
173
  l as BookmarksListItem,
173
174
  I as BookmarksSection,
174
- nm as Breadcrumbs,
175
- cm as BreadcrumbsLink,
175
+ cm as Breadcrumbs,
176
+ lm as BreadcrumbsLink,
176
177
  k as Button,
177
178
  D as ButtonBase,
178
179
  A as ButtonIcon,
@@ -180,7 +181,7 @@ export {
180
181
  v as Byline,
181
182
  nr as CheckboxIcon,
182
183
  H as ComboButton,
183
- lm as ContactSection,
184
+ Bm as ContactSection,
184
185
  C as ContextMenu,
185
186
  R as Dialog,
186
187
  _ as DialogActions,
@@ -211,20 +212,20 @@ export {
211
212
  zo as DrawerOrDropdown,
212
213
  ko as DropdownBase,
213
214
  B as EditableBookmark,
214
- Rm as FieldBase,
215
- xm as Flex,
215
+ Om as FieldBase,
216
+ fm as Flex,
216
217
  jo as Footer,
217
218
  Uo as GlobalMenu,
218
- fm as Grid,
219
+ nm as Grid,
219
220
  or as Header,
220
221
  er as HeaderBase,
221
222
  xr as HeaderButton,
222
223
  mr as HeaderLogo,
223
- Mm as Heading,
224
+ Am as Heading,
224
225
  fr as Icon,
225
226
  P as IconButton,
226
227
  Br as IconOrAvatar,
227
- Om as InputBase,
228
+ zm as InputBase,
228
229
  kr as Layout,
229
230
  vr as LayoutAction,
230
231
  Ir as LayoutBase,
@@ -264,23 +265,23 @@ export {
264
265
  Te as MetaListItem,
265
266
  Ee as MetaProgress,
266
267
  Qe as MetaTimestamp,
267
- Ut as PageBase,
268
- om as PageHeader,
269
- Yt as PageMenu,
270
- Wt as PageNav,
271
- _t as PageTabs,
268
+ Wt as PageBase,
269
+ em as PageHeader,
270
+ _t as PageMenu,
271
+ Yt as PageNav,
272
+ om as PageTabs,
272
273
  lr as ProgressIcon,
273
274
  ft as QueryItem,
274
275
  it as QueryLabel,
275
276
  cr as RadioIcon,
276
- Am as ResourceList,
277
- km as ResourceListItem,
277
+ km as ResourceList,
278
+ Hm as ResourceListItem,
278
279
  Ne as RootProvider,
279
280
  mt as ScopeListItem,
280
281
  We as SearchField,
281
282
  Je as Searchbar,
282
283
  Ue as SearchbarBase,
283
- mm as Section,
284
+ xm as Section,
284
285
  Ao as SeenByLog,
285
286
  e as SizeEnum,
286
287
  Dt as Skeleton,
@@ -290,22 +291,23 @@ export {
290
291
  lt as SnackbarItem,
291
292
  gt as SnackbarProvider,
292
293
  xt as SuggestListItem,
293
- zm as TextField,
294
+ jm as TextField,
294
295
  Mt as Timeline,
295
- vt as TimelineActivity,
296
- At as TimelineBase,
297
- Pt as TimelineFooter,
298
- Ht as TimelineHeader,
299
- kt as TimelineSection,
300
- Ot as Toolbar,
301
- Ct as ToolbarBase,
302
- Rt as ToolbarButton,
303
- Jt as ToolbarDaterange,
304
- jt as ToolbarFilter,
305
- zt as ToolbarSearch,
306
- Bm as Transmission,
307
- Im as TransmissionList,
308
- Dm as Typography,
296
+ kt as TimelineActivity,
297
+ Ht as TimelineBase,
298
+ Ct as TimelineFooter,
299
+ vt as TimelineHeader,
300
+ Pt as TimelineSection,
301
+ At as TimelineSegment,
302
+ zt as Toolbar,
303
+ Rt as ToolbarBase,
304
+ Ot as ToolbarButton,
305
+ Ut as ToolbarDaterange,
306
+ Jt as ToolbarFilter,
307
+ jt as ToolbarSearch,
308
+ Im as Transmission,
309
+ Dm as TransmissionList,
310
+ Mm as Typography,
309
311
  je as useRootContext,
310
312
  It as useSnackbar
311
313
  };
package/dist/index.js CHANGED
@@ -112,55 +112,56 @@ import { SnackbarColorEnum as ut, SnackbarItem as lt } from "./components/Snackb
112
112
  import { SnackbarDuration as Bt, SnackbarProvider as gt, useSnackbar as It } from "./components/Snackbar/useSnackbar.js";
113
113
  import { Skeleton as Dt } from "./components/Skeleton/Skeleton.js";
114
114
  import { Timeline as bt } from "./components/Timeline/Timeline.js";
115
- import { TimelineBase as At } from "./components/Timeline/TimelineBase.js";
116
- import { TimelineSection as kt } from "./components/Timeline/TimelineSection.js";
117
- import { TimelineHeader as Ht } from "./components/Timeline/TimelineHeader.js";
118
- import { TimelineFooter as Pt } from "./components/Timeline/TimelineFooter.js";
119
- import { TimelineActivity as vt } from "./components/Timeline/TimelineActivity.js";
120
- import { ToolbarBase as wt } from "./components/Toolbar/ToolbarBase.js";
121
- import { ToolbarButton as Gt } from "./components/Toolbar/ToolbarButton.js";
122
- import { Toolbar as Ot } from "./components/Toolbar/Toolbar.js";
123
- import { ToolbarSearch as zt } from "./components/Toolbar/ToolbarSearch.js";
124
- import { ToolbarFilter as Nt } from "./components/Toolbar/ToolbarFilter.js";
125
- import { ToolbarDaterange as qt } from "./components/Toolbar/ToolbarDaterange.js";
126
- import { PageBase as Ut } from "./components/Page/PageBase.js";
127
- import { PageNav as Wt } from "./components/Page/PageNav.js";
128
- import { PageMenu as Yt } from "./components/Page/PageMenu.js";
129
- import { PageTabs as _t } from "./components/Page/PageTabs.js";
130
- import { PageHeader as om } from "./components/Page/PageHeader.js";
131
- import { Article as em } from "./components/Page/Article.js";
132
- import { Section as mm } from "./components/Page/Section.js";
133
- import { Flex as xm } from "./components/Page/Flex.js";
134
- import { Grid as fm } from "./components/Page/Grid.js";
135
- import { Breadcrumbs as nm } from "./components/Page/Breadcrumbs.js";
136
- import { BreadcrumbsLink as cm } from "./components/Page/BreadcrumbsLink.js";
137
- import { ContactSection as lm } from "./components/Page/ContactSection.js";
138
- import { Transmission as Bm } from "./components/Transmission/Transmission.js";
139
- import { TransmissionList as Im } from "./components/Transmission/TransmissionList.js";
140
- import { Typography as Dm } from "./components/Typography/Typography.js";
141
- import { Heading as bm } from "./components/Typography/Heading.js";
142
- import { ResourceList as Am } from "./components/ResourceList/ResourceList.js";
143
- import { ResourceListItem as km } from "./components/ResourceList/ResourceListItem.js";
144
- import { AccessAreaListItem as Hm } from "./components/AccessAreaList/AccessAreaListItem.js";
145
- import { AccessAreaList as Pm } from "./components/AccessAreaList/AccessAreaList.js";
146
- import { AccessPackageListItem as vm } from "./components/AccessPackageList/AccessPackageListItem.js";
147
- import { AccessPackageList as wm } from "./components/AccessPackageList/AccessPackageList.js";
148
- import { FieldBase as Gm } from "./components/TextField/FieldBase.js";
149
- import { InputBase as Om } from "./components/TextField/InputBase.js";
150
- import { TextField as zm } from "./components/TextField/TextField.js";
151
- import { useClickOutside as Nm } from "./hooks/useClickOutside.js";
152
- import { useEscapeKey as qm } from "./hooks/useEscapeKey.js";
153
- import { useMenu as Um } from "./hooks/useMenu.js";
115
+ import { TimelineSegment as At } from "./components/Timeline/TimelineSegment.js";
116
+ import { TimelineActivity as kt } from "./components/Timeline/TimelineActivity.js";
117
+ import { TimelineBase as Ht } from "./components/Timeline/TimelineBase.js";
118
+ import { TimelineSection as Pt } from "./components/Timeline/TimelineSection.js";
119
+ import { TimelineHeader as vt } from "./components/Timeline/TimelineHeader.js";
120
+ import { TimelineFooter as wt } from "./components/Timeline/TimelineFooter.js";
121
+ import { ToolbarBase as Gt } from "./components/Toolbar/ToolbarBase.js";
122
+ import { ToolbarButton as Ot } from "./components/Toolbar/ToolbarButton.js";
123
+ import { Toolbar as zt } from "./components/Toolbar/Toolbar.js";
124
+ import { ToolbarSearch as Nt } from "./components/Toolbar/ToolbarSearch.js";
125
+ import { ToolbarFilter as qt } from "./components/Toolbar/ToolbarFilter.js";
126
+ import { ToolbarDaterange as Ut } from "./components/Toolbar/ToolbarDaterange.js";
127
+ import { PageBase as Wt } from "./components/Page/PageBase.js";
128
+ import { PageNav as Yt } from "./components/Page/PageNav.js";
129
+ import { PageMenu as _t } from "./components/Page/PageMenu.js";
130
+ import { PageTabs as om } from "./components/Page/PageTabs.js";
131
+ import { PageHeader as em } from "./components/Page/PageHeader.js";
132
+ import { Article as mm } from "./components/Page/Article.js";
133
+ import { Section as xm } from "./components/Page/Section.js";
134
+ import { Flex as fm } from "./components/Page/Flex.js";
135
+ import { Grid as nm } from "./components/Page/Grid.js";
136
+ import { Breadcrumbs as cm } from "./components/Page/Breadcrumbs.js";
137
+ import { BreadcrumbsLink as lm } from "./components/Page/BreadcrumbsLink.js";
138
+ import { ContactSection as Bm } from "./components/Page/ContactSection.js";
139
+ import { Transmission as Im } from "./components/Transmission/Transmission.js";
140
+ import { TransmissionList as Dm } from "./components/Transmission/TransmissionList.js";
141
+ import { Typography as bm } from "./components/Typography/Typography.js";
142
+ import { Heading as Am } from "./components/Typography/Heading.js";
143
+ import { ResourceList as km } from "./components/ResourceList/ResourceList.js";
144
+ import { ResourceListItem as Hm } from "./components/ResourceList/ResourceListItem.js";
145
+ import { AccessAreaListItem as Pm } from "./components/AccessAreaList/AccessAreaListItem.js";
146
+ import { AccessAreaList as vm } from "./components/AccessAreaList/AccessAreaList.js";
147
+ import { AccessPackageListItem as wm } from "./components/AccessPackageList/AccessPackageListItem.js";
148
+ import { AccessPackageList as Gm } from "./components/AccessPackageList/AccessPackageList.js";
149
+ import { FieldBase as Om } from "./components/TextField/FieldBase.js";
150
+ import { InputBase as zm } from "./components/TextField/InputBase.js";
151
+ import { TextField as Nm } from "./components/TextField/TextField.js";
152
+ import { useClickOutside as qm } from "./hooks/useClickOutside.js";
153
+ import { useEscapeKey as Um } from "./hooks/useEscapeKey.js";
154
+ import { useMenu as Wm } from "./hooks/useMenu.js";
154
155
  export {
155
- Pm as AccessAreaList,
156
- Hm as AccessAreaListItem,
157
- wm as AccessPackageList,
158
- vm as AccessPackageListItem,
156
+ vm as AccessAreaList,
157
+ Pm as AccessAreaListItem,
158
+ Gm as AccessPackageList,
159
+ wm as AccessPackageListItem,
159
160
  Wo as AccountButton,
160
161
  qo as AccountMenu,
161
162
  Pr as ActionFooter,
162
163
  Hr as ActionHeader,
163
- em as Article,
164
+ mm as Article,
164
165
  m as AttachmentLink,
165
166
  x as AttachmentList,
166
167
  ot as Autocomplete,
@@ -174,8 +175,8 @@ export {
174
175
  c as Badge,
175
176
  l as BookmarksListItem,
176
177
  I as BookmarksSection,
177
- nm as Breadcrumbs,
178
- cm as BreadcrumbsLink,
178
+ cm as Breadcrumbs,
179
+ lm as BreadcrumbsLink,
179
180
  k as Button,
180
181
  D as ButtonBase,
181
182
  A as ButtonIcon,
@@ -183,7 +184,7 @@ export {
183
184
  v as Byline,
184
185
  nr as CheckboxIcon,
185
186
  H as ComboButton,
186
- lm as ContactSection,
187
+ Bm as ContactSection,
187
188
  w as ContextMenu,
188
189
  G as Dialog,
189
190
  _ as DialogActions,
@@ -214,20 +215,20 @@ export {
214
215
  zo as DrawerOrDropdown,
215
216
  ko as DropdownBase,
216
217
  B as EditableBookmark,
217
- Gm as FieldBase,
218
- xm as Flex,
218
+ Om as FieldBase,
219
+ fm as Flex,
219
220
  No as Footer,
220
221
  Uo as GlobalMenu,
221
- fm as Grid,
222
+ nm as Grid,
222
223
  or as Header,
223
224
  er as HeaderBase,
224
225
  xr as HeaderButton,
225
226
  mr as HeaderLogo,
226
- bm as Heading,
227
+ Am as Heading,
227
228
  fr as Icon,
228
229
  P as IconButton,
229
230
  Br as IconOrAvatar,
230
- Om as InputBase,
231
+ zm as InputBase,
231
232
  kr as Layout,
232
233
  vr as LayoutAction,
233
234
  Ir as LayoutBase,
@@ -267,23 +268,23 @@ export {
267
268
  Te as MetaListItem,
268
269
  Re as MetaProgress,
269
270
  Qe as MetaTimestamp,
270
- Ut as PageBase,
271
- om as PageHeader,
272
- Yt as PageMenu,
273
- Wt as PageNav,
274
- _t as PageTabs,
271
+ Wt as PageBase,
272
+ em as PageHeader,
273
+ _t as PageMenu,
274
+ Yt as PageNav,
275
+ om as PageTabs,
275
276
  lr as ProgressIcon,
276
277
  ft as QueryItem,
277
278
  it as QueryLabel,
278
279
  cr as RadioIcon,
279
- Am as ResourceList,
280
- km as ResourceListItem,
280
+ km as ResourceList,
281
+ Hm as ResourceListItem,
281
282
  Ke as RootProvider,
282
283
  mt as ScopeListItem,
283
284
  We as SearchField,
284
285
  qe as Searchbar,
285
286
  Ue as SearchbarBase,
286
- mm as Section,
287
+ xm as Section,
287
288
  Ao as SeenByLog,
288
289
  e as SizeEnum,
289
290
  Dt as Skeleton,
@@ -293,25 +294,26 @@ export {
293
294
  lt as SnackbarItem,
294
295
  gt as SnackbarProvider,
295
296
  xt as SuggestListItem,
296
- zm as TextField,
297
+ Nm as TextField,
297
298
  bt as Timeline,
298
- vt as TimelineActivity,
299
- At as TimelineBase,
300
- Pt as TimelineFooter,
301
- Ht as TimelineHeader,
302
- kt as TimelineSection,
303
- Ot as Toolbar,
304
- wt as ToolbarBase,
305
- Gt as ToolbarButton,
306
- qt as ToolbarDaterange,
307
- Nt as ToolbarFilter,
308
- zt as ToolbarSearch,
309
- Bm as Transmission,
310
- Im as TransmissionList,
311
- Dm as Typography,
312
- Nm as useClickOutside,
313
- qm as useEscapeKey,
314
- Um as useMenu,
299
+ kt as TimelineActivity,
300
+ Ht as TimelineBase,
301
+ wt as TimelineFooter,
302
+ vt as TimelineHeader,
303
+ Pt as TimelineSection,
304
+ At as TimelineSegment,
305
+ zt as Toolbar,
306
+ Gt as ToolbarBase,
307
+ Ot as ToolbarButton,
308
+ Ut as ToolbarDaterange,
309
+ qt as ToolbarFilter,
310
+ Nt as ToolbarSearch,
311
+ Im as Transmission,
312
+ Dm as TransmissionList,
313
+ bm as Typography,
314
+ qm as useClickOutside,
315
+ Um as useEscapeKey,
316
+ Wm as useMenu,
315
317
  Ne as useRootContext,
316
318
  It as useSnackbar
317
319
  };
@@ -6,7 +6,7 @@ export type FlexAlign = 'initial' | 'start' | 'end' | 'center' | 'stretch';
6
6
  export type FlexJustify = 'initial' | 'start' | 'end' | 'center' | 'between';
7
7
  export type FlexSpacing = 'page' | 'xs' | Range<11>;
8
8
  export type FlexPadding = 'page' | Range<11>;
9
- export type FlexMargin = 'page' | 'section';
9
+ export type FlexMargin = 0 | 'page' | 'section' | 'bottom';
10
10
  export interface FlexProps {
11
11
  as?: FlexElement;
12
12
  shadow?: Shadow;
@@ -1,5 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { SectionProps } from '..';
2
3
  export interface TimelineProps {
4
+ spacing?: SectionProps['spacing'];
3
5
  children?: ReactNode;
4
6
  }
5
- export declare const Timeline: ({ children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Timeline: ({ spacing, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,13 @@
1
1
  declare const meta: {
2
2
  title: string;
3
- component: ({ children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
3
+ component: ({ spacing, children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
4
4
  tags: string[];
5
5
  parameters: {};
6
6
  args: {};
7
7
  };
8
8
  export default meta;
9
9
  export declare const ActivityLog: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const GroupedLog: () => import("react/jsx-runtime").JSX.Element;
10
11
  export declare const UsingAvatars: () => import("react/jsx-runtime").JSX.Element;
11
12
  export declare const CollapsingElements: () => import("react/jsx-runtime").JSX.Element;
12
13
  export declare const DialogHistory: () => import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ export interface TimelineActivityProps extends TimelineBaseProps {
6
6
  datetime?: string;
7
7
  border?: TimelineBorder;
8
8
  byline?: ReactNode;
9
- children?: ReactNode;
9
+ children?: string | ReactNode;
10
10
  footer?: ReactNode;
11
11
  typographyProps?: TypographyProps;
12
12
  margin?: SectionProps['margin'];
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { SectionProps, SvgElement, TimelineBaseProps, TimelineBorder, TypographyProps } from '..';
3
+ export interface TimelineSegmentProps extends TimelineBaseProps {
4
+ loading?: boolean;
5
+ icon?: SvgElement;
6
+ datetime?: string;
7
+ border?: TimelineBorder;
8
+ byline?: ReactNode;
9
+ children?: ReactNode;
10
+ footer?: ReactNode;
11
+ typographyProps?: TypographyProps;
12
+ margin?: SectionProps['margin'];
13
+ spacing?: SectionProps['spacing'];
14
+ }
15
+ export declare const TimelineSegment: ({ loading, datetime, byline, icon, color, spacing, margin, children, footer, ...props }: TimelineSegmentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  export * from './Timeline';
2
+ export * from './TimelineSegment';
3
+ export * from './TimelineActivity';
2
4
  export * from './TimelineBase';
3
5
  export * from './TimelineSection';
4
6
  export * from './TimelineHeader';
5
7
  export * from './TimelineFooter';
6
- export * from './TimelineActivity';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",