@altinn/altinn-components 0.23.3 → 0.24.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/HeaderBase.css +1 -1
- package/dist/assets/HeaderGroup.css +1 -0
- package/dist/assets/LocaleButton.css +1 -0
- package/dist/assets/SnackbarBase.css +1 -1
- package/dist/components/Button/ButtonBase.js +18 -17
- package/dist/components/Button/IconButton.js +19 -17
- package/dist/components/Dialog/DialogHistorySegment.js +20 -19
- package/dist/components/Header/Header.js +79 -52
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderGroup.js +8 -0
- package/dist/components/Header/LocaleButton.js +47 -0
- package/dist/components/Header/LocaleSwitcher.js +17 -0
- package/dist/components/Header/index.js +10 -6
- package/dist/components/Snackbar/SnackbarBase.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +16 -15
- package/dist/components/Timeline/TimelineSegment.js +13 -12
- package/dist/components/index.js +216 -212
- package/dist/index.js +229 -225
- package/dist/types/lib/components/Button/IconButton.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +1 -1
- package/dist/types/lib/components/Header/Header.d.ts +3 -1
- package/dist/types/lib/components/Header/Header.stories.d.ts +2 -1
- package/dist/types/lib/components/Header/HeaderGroup.d.ts +7 -0
- package/dist/types/lib/components/Header/LocaleButton.d.ts +7 -0
- package/dist/types/lib/components/Header/LocaleSwitcher.d.ts +10 -0
- package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +17 -0
- package/dist/types/lib/components/Header/index.d.ts +2 -0
- package/dist/types/lib/components/Page/Flex.d.ts +1 -0
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +2 -1
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +2 -1
- package/package.json +1 -1
- package/dist/assets/HeaderMenu.css +0 -1
- package/dist/components/Header/HeaderMenu.js +0 -8
- package/dist/types/lib/components/Header/HeaderMenu.d.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_19y6k_1{z-index:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:1rem}._backdrop_19y6k_11{display:none}._header_19y6k_1[data-current-id=menu],._header_19y6k_1[data-current-id=locale]{background-color:#fff}@media (min-width: 1024px){._header_19y6k_1[data-current-id=menu],._header_19y6k_1[data-current-id=locale]{background-color:transparent}._header_19y6k_1[data-current-id=menu] ._backdrop_19y6k_11,._header_19y6k_1[data-current-id=locale] ._backdrop_19y6k_11{display:block}}._header_19y6k_1{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._header_19y6k_1[data-current-id=search]{margin-top:-72px}._header_19y6k_1[data-current-id=search] ._backdrop_19y6k_11{display:block}@media (min-width: 1024px){._header_19y6k_1[data-current-id=search]{margin-top:0}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._group_171t6_1{position:relative;display:flex;align-items:center;column-gap:1rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_utwi0_1{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:2.75rem;padding:.625rem;border-radius:50%}._button_utwi0_1[data-selected=true]{background-color:#fff}._icon_utwi0_17{font-size:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._stack_ilsfl_1{position:fixed;top:auto;right:0;bottom:0;left:0;display:flex;flex-direction:column;row-gap:.5rem;padding:1rem;pointer-events:none}._stack_ilsfl_1>*{pointer-events:auto}@media (min-width: 1024px){._stack_ilsfl_1{align-items:center}}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/ButtonBase.css';const
|
|
4
|
-
button:
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/ButtonBase.css';const i = "_button_ppafq_1", d = {
|
|
4
|
+
button: i
|
|
5
5
|
}, B = ({
|
|
6
|
-
as:
|
|
7
|
-
color:
|
|
6
|
+
as: a,
|
|
7
|
+
color: o,
|
|
8
8
|
className: n,
|
|
9
9
|
children: s,
|
|
10
10
|
disabled: t = !1,
|
|
11
11
|
ariaLabel: e,
|
|
12
12
|
size: r,
|
|
13
|
-
selected:
|
|
14
|
-
variant:
|
|
15
|
-
tabIndex:
|
|
16
|
-
...
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
13
|
+
selected: c,
|
|
14
|
+
variant: l,
|
|
15
|
+
tabIndex: m = 0,
|
|
16
|
+
...p
|
|
17
|
+
}) => /* @__PURE__ */ u(
|
|
18
|
+
a || "button",
|
|
19
19
|
{
|
|
20
|
-
tabIndex:
|
|
20
|
+
tabIndex: m,
|
|
21
21
|
"data-size": r,
|
|
22
|
-
"data-variant":
|
|
23
|
-
"data-color":
|
|
22
|
+
"data-variant": l,
|
|
23
|
+
"data-color": o,
|
|
24
|
+
"data-selected": c,
|
|
24
25
|
"aria-disabled": t,
|
|
25
26
|
disabled: t,
|
|
26
|
-
className:
|
|
27
|
+
className: b(d.button, n),
|
|
27
28
|
"aria-label": e,
|
|
28
|
-
...
|
|
29
|
+
...p,
|
|
29
30
|
children: s
|
|
30
31
|
}
|
|
31
32
|
);
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { ButtonBase as
|
|
4
|
-
import { ButtonIcon as
|
|
5
|
-
import '../../assets/IconButton.css';const
|
|
6
|
-
button:
|
|
7
|
-
icon:
|
|
8
|
-
},
|
|
2
|
+
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { ButtonBase as _ } from "./ButtonBase.js";
|
|
4
|
+
import { ButtonIcon as b } from "./ButtonIcon.js";
|
|
5
|
+
import '../../assets/IconButton.css';const d = "_button_118jo_1", p = "_icon_118jo_8", f = {
|
|
6
|
+
button: d,
|
|
7
|
+
icon: p
|
|
8
|
+
}, h = ({
|
|
9
9
|
variant: n = "solid",
|
|
10
10
|
size: o = "md",
|
|
11
11
|
icon: c,
|
|
12
12
|
color: r,
|
|
13
13
|
iconSize: s,
|
|
14
14
|
className: i,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
selected: m,
|
|
16
|
+
onClick: a,
|
|
17
|
+
dataTestId: e,
|
|
18
|
+
iconAltText: u
|
|
18
19
|
}) => /* @__PURE__ */ t(
|
|
19
|
-
|
|
20
|
+
_,
|
|
20
21
|
{
|
|
21
22
|
variant: n,
|
|
22
23
|
color: r,
|
|
23
24
|
size: o,
|
|
24
|
-
className:
|
|
25
|
-
onClick:
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
25
|
+
className: l(f.button, i),
|
|
26
|
+
onClick: a,
|
|
27
|
+
selected: m,
|
|
28
|
+
"data-testid": e,
|
|
29
|
+
"aria-label": u,
|
|
30
|
+
children: /* @__PURE__ */ t(b, { icon: c, size: s || o })
|
|
29
31
|
}
|
|
30
32
|
);
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
h as IconButton
|
|
33
35
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import { forwardRef as y, useState as
|
|
4
|
+
import { forwardRef as y, useState as O, Fragment as j, createElement as s } from "react";
|
|
5
5
|
import "../../index-L8X2o7IH.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { DialogHistoryItem as u } from "./DialogHistoryItem.js";
|
|
8
8
|
import "../Search/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Timeline as
|
|
11
|
-
import { TimelineSegment as
|
|
12
|
-
import { TimelineSection as
|
|
10
|
+
import { Timeline as x } from "../Timeline/Timeline.js";
|
|
11
|
+
import { TimelineSegment as I } from "../Timeline/TimelineSegment.js";
|
|
12
|
+
import { TimelineSection as E } from "../Timeline/TimelineSection.js";
|
|
13
13
|
import { TimelineLink as g } from "../Timeline/TimelineLink.js";
|
|
14
14
|
import { u as h } from "../../useId-CsCRkvK3.js";
|
|
15
|
-
var
|
|
15
|
+
var S = function(t, n) {
|
|
16
16
|
var l = {};
|
|
17
17
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
18
18
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -20,8 +20,8 @@ var E = function(t, n) {
|
|
|
20
20
|
n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
21
21
|
return l;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
24
|
-
var { title: l, titleId: e } = t, r =
|
|
23
|
+
const _ = y((t, n) => {
|
|
24
|
+
var { title: l, titleId: e } = t, r = S(t, ["title", "titleId"]);
|
|
25
25
|
let o = h();
|
|
26
26
|
return o = l ? e || "title-" + o : void 0, m.createElement(
|
|
27
27
|
"svg",
|
|
@@ -30,7 +30,7 @@ const S = y((t, n) => {
|
|
|
30
30
|
m.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var P = function(t, n) {
|
|
34
34
|
var l = {};
|
|
35
35
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
36
36
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -38,8 +38,8 @@ var _ = function(t, n) {
|
|
|
38
38
|
n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
39
39
|
return l;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
42
|
-
var { title: l, titleId: e } = t, r =
|
|
41
|
+
const k = y((t, n) => {
|
|
42
|
+
var { title: l, titleId: e } = t, r = P(t, ["title", "titleId"]);
|
|
43
43
|
let o = h();
|
|
44
44
|
return o = l ? e || "title-" + o : void 0, m.createElement(
|
|
45
45
|
"svg",
|
|
@@ -47,26 +47,27 @@ const P = y((t, n) => {
|
|
|
47
47
|
l ? m.createElement("title", { id: o }, l) : null,
|
|
48
48
|
m.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
|
|
49
49
|
);
|
|
50
|
-
}),
|
|
50
|
+
}), U = ({
|
|
51
51
|
items: t = [],
|
|
52
52
|
datetime: n,
|
|
53
53
|
byline: l,
|
|
54
54
|
collapsible: e,
|
|
55
55
|
expanded: r,
|
|
56
56
|
expandLabel: o = "Expand history",
|
|
57
|
-
collapseLabel: v = "Collapse history"
|
|
57
|
+
collapseLabel: v = "Collapse history",
|
|
58
|
+
id: w
|
|
58
59
|
}) => {
|
|
59
|
-
const [d,
|
|
60
|
-
|
|
60
|
+
const [d, b] = O(r || !e), c = () => {
|
|
61
|
+
b((i) => !i);
|
|
61
62
|
};
|
|
62
|
-
return /* @__PURE__ */ a(
|
|
63
|
+
return /* @__PURE__ */ a(I, { datetime: n, byline: l, spacing: 2, id: w, children: t.map((i) => /* @__PURE__ */ p(j, { children: [
|
|
63
64
|
/* @__PURE__ */ s(u, { ...i, key: i.id }),
|
|
64
|
-
Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ p(
|
|
65
|
-
d && /* @__PURE__ */ a(
|
|
66
|
-
e && d && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon:
|
|
65
|
+
Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ p(x, { children: [
|
|
66
|
+
d && /* @__PURE__ */ a(E, { level: 2, border: "dashed", children: i.items.map((f) => /* @__PURE__ */ s(u, { ...f, key: f.id })) }),
|
|
67
|
+
e && d && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: k, onClick: c, children: v }) }) || e && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: _, onClick: c, children: o }) })
|
|
67
68
|
] })
|
|
68
69
|
] }, i.id)) });
|
|
69
70
|
};
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
U as DialogHistorySegment
|
|
72
73
|
};
|
|
@@ -1,64 +1,91 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { DropdownBase as
|
|
2
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { DropdownBase as p } from "../Dropdown/DropdownBase.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import { DrawerBase as
|
|
5
|
+
import { DrawerBase as m } from "../Dropdown/DrawerBase.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { useRootContext as
|
|
8
|
-
import { GlobalMenu as
|
|
9
|
-
import { HeaderBase as
|
|
7
|
+
import { useRootContext as b } from "../RootProvider/RootProvider.js";
|
|
8
|
+
import { GlobalMenu as c } from "../GlobalMenu/GlobalMenu.js";
|
|
9
|
+
import { HeaderBase as v } from "./HeaderBase.js";
|
|
10
10
|
import { HeaderLogo as H } from "./HeaderLogo.js";
|
|
11
|
-
import { HeaderButton as
|
|
12
|
-
import {
|
|
11
|
+
import { HeaderButton as N } from "./HeaderButton.js";
|
|
12
|
+
import { LocaleButton as _ } from "./LocaleButton.js";
|
|
13
|
+
import { LocaleSwitcher as h } from "./LocaleSwitcher.js";
|
|
14
|
+
import { Searchbar as B } from "../Search/Searchbar.js";
|
|
13
15
|
import "../Search/AutocompleteBase.js";
|
|
14
16
|
import "../Snackbar/useSnackbar.js";
|
|
15
|
-
import {
|
|
16
|
-
import { HeaderSearch as
|
|
17
|
-
import '../../assets/Header.css';const
|
|
18
|
-
drawer:
|
|
19
|
-
dropdown:
|
|
20
|
-
},
|
|
21
|
-
const { currentId:
|
|
22
|
-
|
|
23
|
-
},
|
|
17
|
+
import { HeaderGroup as L } from "./HeaderGroup.js";
|
|
18
|
+
import { HeaderSearch as S } from "./HeaderSearch.js";
|
|
19
|
+
import '../../assets/Header.css';const k = "_drawer_d2s9o_1", I = "_dropdown_d2s9o_5", a = {
|
|
20
|
+
drawer: k,
|
|
21
|
+
dropdown: I
|
|
22
|
+
}, W = ({ menu: r, locale: n, search: i, currentAccount: l, logo: f = {}, badge: w }) => {
|
|
23
|
+
const { currentId: e, toggleId: t, openId: g, closeAll: d } = b(), y = () => {
|
|
24
|
+
g("search");
|
|
25
|
+
}, u = () => {
|
|
24
26
|
t("search");
|
|
25
|
-
},
|
|
27
|
+
}, x = () => {
|
|
26
28
|
t("menu");
|
|
29
|
+
}, C = () => {
|
|
30
|
+
t("locale");
|
|
27
31
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
32
|
+
return /* @__PURE__ */ s(
|
|
33
|
+
v,
|
|
34
|
+
{
|
|
35
|
+
currentId: e,
|
|
36
|
+
open: e === "search" || e === "menu" || e === "locale",
|
|
37
|
+
onClose: d,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ o(H, { ...f, className: a.logo }),
|
|
40
|
+
/* @__PURE__ */ s(L, { className: a.menu, children: [
|
|
41
|
+
/* @__PURE__ */ o("div", { style: { position: "relative" }, children: /* @__PURE__ */ o(_, { onClick: C, expanded: e === "locale" }) }),
|
|
42
|
+
/* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
43
|
+
/* @__PURE__ */ o(
|
|
44
|
+
N,
|
|
45
|
+
{
|
|
46
|
+
color: "company",
|
|
47
|
+
variant: "solid",
|
|
48
|
+
badge: w,
|
|
49
|
+
avatar: l && {
|
|
50
|
+
type: l.type,
|
|
51
|
+
name: l.name
|
|
52
|
+
},
|
|
53
|
+
onClick: x,
|
|
54
|
+
expanded: e === "menu",
|
|
55
|
+
label: r == null ? void 0 : r.menuLabel
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
n && /* @__PURE__ */ o(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
layout: "desktop",
|
|
62
|
+
padding: !0,
|
|
63
|
+
placement: "right",
|
|
64
|
+
open: e === "locale",
|
|
65
|
+
className: a.dropdown,
|
|
66
|
+
children: /* @__PURE__ */ o(h, { ...n })
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
r && /* @__PURE__ */ o(
|
|
70
|
+
p,
|
|
71
|
+
{
|
|
72
|
+
layout: "desktop",
|
|
73
|
+
padding: !0,
|
|
74
|
+
placement: "right",
|
|
75
|
+
open: e === "menu",
|
|
76
|
+
className: a.dropdown,
|
|
77
|
+
children: /* @__PURE__ */ o(c, { ...r, currentAccount: l, onClose: d })
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
i && /* @__PURE__ */ o(S, { expanded: e === "search", children: /* @__PURE__ */ o(B, { ...i, expanded: e === "search", onClose: u, onFocus: y }) }),
|
|
83
|
+
n && /* @__PURE__ */ o(m, { layout: "mobile", open: e === "locale", className: a.drawer, children: /* @__PURE__ */ o(h, { ...n }) }),
|
|
84
|
+
r && /* @__PURE__ */ o(m, { layout: "mobile", open: e === "menu", className: a.drawer, children: /* @__PURE__ */ o(c, { ...r, currentAccount: l, onClose: d }) })
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
61
88
|
};
|
|
62
89
|
export {
|
|
63
|
-
|
|
90
|
+
W as Header
|
|
64
91
|
};
|
|
@@ -5,7 +5,7 @@ import "../RootProvider/RootProvider.js";
|
|
|
5
5
|
import { Backdrop as m } from "../Dropdown/Backdrop.js";
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/HeaderBase.css';const i = "
|
|
8
|
+
import '../../assets/HeaderBase.css';const i = "_header_19y6k_1", n = "_backdrop_19y6k_11", r = {
|
|
9
9
|
header: i,
|
|
10
10
|
backdrop: n
|
|
11
11
|
}, u = ({ currentId: o, className: a, children: e, open: t, onClose: c }) => /* @__PURE__ */ d("header", { className: p(r.header, a), "data-color": "neutral", "data-current-id": o, children: [
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/HeaderGroup.css';const p = "_group_171t6_1", c = {
|
|
4
|
+
group: p
|
|
5
|
+
}, m = ({ className: o, children: r }) => /* @__PURE__ */ s("div", { className: t(c.group, o), children: r });
|
|
6
|
+
export {
|
|
7
|
+
m as HeaderGroup
|
|
8
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { forwardRef as c } from "react";
|
|
6
|
+
import { IconButton as m } from "../Button/IconButton.js";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import "../Search/AutocompleteBase.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
import { u } from "../../useId-CsCRkvK3.js";
|
|
11
|
+
import '../../assets/LocaleButton.css';var f = function(e, n) {
|
|
12
|
+
var o = {};
|
|
13
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
14
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
15
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
16
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
17
|
+
return o;
|
|
18
|
+
};
|
|
19
|
+
const s = c((e, n) => {
|
|
20
|
+
var { title: o, titleId: t } = e, r = f(e, ["title", "titleId"]);
|
|
21
|
+
let l = u();
|
|
22
|
+
return l = o ? t || "title-" + l : void 0, i.createElement(
|
|
23
|
+
"svg",
|
|
24
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": l }, r),
|
|
25
|
+
o ? i.createElement("title", { id: l }, o) : null,
|
|
26
|
+
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12m6.74-7.683A8.28 8.28 0 0 0 4.65 8.25h3.719a41 41 0 0 1 .62-3.934m1.63-.452a41 41 0 0 0-.742 4.385h4.245a41 41 0 0 0-.743-4.385 8.3 8.3 0 0 0-2.76 0M8.24 14.25a34.5 34.5 0 0 1 0-4.5H4.06A8.3 8.3 0 0 0 3.75 12c0 .78.108 1.535.31 2.25zm1.503 0a33 33 0 0 1 0-4.5h4.514c.103 1.51.103 2.997 0 4.5zm-.754 5.433a41 41 0 0 1-.62-3.933h-3.72a8.28 8.28 0 0 0 4.34 3.933m1.631.452a41 41 0 0 1-.743-4.385h4.246a41 41 0 0 1-.743 4.385 8.3 8.3 0 0 1-2.76 0m5.141-5.885c.098-1.502.098-2.99 0-4.5h4.179c.202.715.31 1.47.31 2.25a8.3 8.3 0 0 1-.31 2.25zm-.75-9.933a8.28 8.28 0 0 1 4.34 3.933h-3.72a41 41 0 0 0-.62-3.933m0 15.366c.276-1.344.483-2.648.62-3.933h3.72a8.28 8.28 0 0 1-4.34 3.933", clipRule: "evenodd" })
|
|
27
|
+
);
|
|
28
|
+
}), d = "_button_utwi0_1", p = "_icon_utwi0_17", b = {
|
|
29
|
+
button: d,
|
|
30
|
+
icon: p
|
|
31
|
+
}, I = ({ id: e = "language-switcher", expanded: n, onClick: o }) => /* @__PURE__ */ a(
|
|
32
|
+
m,
|
|
33
|
+
{
|
|
34
|
+
className: b.button,
|
|
35
|
+
size: "md",
|
|
36
|
+
icon: s,
|
|
37
|
+
iconSize: "md",
|
|
38
|
+
variant: "text",
|
|
39
|
+
selected: n,
|
|
40
|
+
color: "company",
|
|
41
|
+
onClick: o,
|
|
42
|
+
iconAltText: `Open ${e}`
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
I as LocaleButton
|
|
47
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "../Search/AutocompleteBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { MenuOption as a } from "../Menu/MenuOption.js";
|
|
9
|
+
import { MenuHeader as c } from "../Menu/MenuHeader.js";
|
|
10
|
+
import { MenuBase as m, MenuList as p, MenuListItem as t } from "../Menu/MenuBase.js";
|
|
11
|
+
const b = ({ title: o = "Select language", options: i, onChange: l }) => /* @__PURE__ */ e(m, { theme: "default", children: /* @__PURE__ */ n(p, { children: [
|
|
12
|
+
/* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(c, { title: o }) }),
|
|
13
|
+
i.map((r) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(a, { onChange: l, label: r.label, type: "radio", value: r.value, checked: r.checked }) }, r.value))
|
|
14
|
+
] }) });
|
|
15
|
+
export {
|
|
16
|
+
b as LocaleSwitcher
|
|
17
|
+
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { Header as
|
|
1
|
+
import { Header as r } from "./Header.js";
|
|
2
2
|
import { HeaderBase as a } from "./HeaderBase.js";
|
|
3
|
-
import { HeaderLogo as
|
|
4
|
-
import { HeaderButton as
|
|
3
|
+
import { HeaderLogo as m } from "./HeaderLogo.js";
|
|
4
|
+
import { HeaderButton as x } from "./HeaderButton.js";
|
|
5
|
+
import { LocaleButton as H } from "./LocaleButton.js";
|
|
6
|
+
import { LocaleSwitcher as B } from "./LocaleSwitcher.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
r as Header,
|
|
7
9
|
a as HeaderBase,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
x as HeaderButton,
|
|
11
|
+
m as HeaderLogo,
|
|
12
|
+
H as LocaleButton,
|
|
13
|
+
B as LocaleSwitcher
|
|
10
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/SnackbarBase.css';const a = "
|
|
2
|
+
import '../../assets/SnackbarBase.css';const a = "_stack_ilsfl_1", c = {
|
|
3
3
|
stack: a
|
|
4
4
|
}, o = ({ children: s }) => /* @__PURE__ */ t("section", { role: "alert", className: c.stack, children: s });
|
|
5
5
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Icon as
|
|
2
|
+
import { Icon as h } from "../Icon/Icon.js";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Avatar as
|
|
5
|
+
import { Avatar as b } from "../Avatar/Avatar.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Skeleton as
|
|
7
|
+
import { Skeleton as v } 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:
|
|
17
|
-
},
|
|
10
|
+
import { Flex as f } from "../Page/Flex.js";
|
|
11
|
+
import '../../assets/TimelineBase.css';const N = "_section_1h3ds_1", x = "_sidebar_1h3ds_8", j = "_content_1h3ds_33", z = "_border_1h3ds_39", g = "_icon_1h3ds_45", o = {
|
|
12
|
+
section: N,
|
|
13
|
+
sidebar: x,
|
|
14
|
+
content: j,
|
|
15
|
+
border: z,
|
|
16
|
+
icon: g
|
|
17
|
+
}, q = ({
|
|
18
18
|
as: c = "section",
|
|
19
19
|
loading: e,
|
|
20
20
|
border: a = "solid",
|
|
@@ -24,14 +24,15 @@ import '../../assets/TimelineBase.css';const f = "_section_1h3ds_1", N = "_sideb
|
|
|
24
24
|
iconColor: m,
|
|
25
25
|
avatar: i,
|
|
26
26
|
children: l,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
id: _,
|
|
28
|
+
...p
|
|
29
|
+
}) => /* @__PURE__ */ n(f, { as: c, className: o.section, color: t, ...p, id: _, children: [
|
|
29
30
|
/* @__PURE__ */ n("aside", { className: o.sidebar, "data-level": d, children: [
|
|
30
|
-
i && /* @__PURE__ */ s(
|
|
31
|
+
i && /* @__PURE__ */ s(b, { ...i, size: "sm" }) || r && /* @__PURE__ */ s(v, { loading: e, variant: "circle", children: /* @__PURE__ */ s("span", { "data-color": m, className: o.icon, children: /* @__PURE__ */ s(h, { svgElement: r, size: "sm" }) }) }),
|
|
31
32
|
/* @__PURE__ */ s("div", { className: o.border, "data-loading": e, "data-variant": a, "data-color": t })
|
|
32
33
|
] }),
|
|
33
34
|
/* @__PURE__ */ s("div", { className: o.content, children: l })
|
|
34
35
|
] });
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
q as TimelineBase
|
|
37
38
|
};
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Byline as
|
|
4
|
+
import { Byline as S } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { TimelineBase as
|
|
6
|
+
import { TimelineBase as a } from "./TimelineBase.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import { Section as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
9
|
+
import { Section as h } from "../Page/Section.js";
|
|
10
|
+
import { S as x } from "../../CircleFill-IZdiBc_K.js";
|
|
11
|
+
const q = ({
|
|
12
12
|
loading: r,
|
|
13
13
|
datetime: m,
|
|
14
14
|
byline: o,
|
|
15
|
-
icon: t =
|
|
15
|
+
icon: t = x,
|
|
16
16
|
color: e = "neutral",
|
|
17
17
|
spacing: p = 2,
|
|
18
18
|
margin: l = "bottom",
|
|
19
19
|
children: n,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
id: s,
|
|
21
|
+
footer: d,
|
|
22
|
+
...c
|
|
23
|
+
}) => /* @__PURE__ */ i(a, { loading: r, color: e, icon: t, as: "li", ...c, id: s, children: /* @__PURE__ */ f(h, { margin: l, spacing: p, children: [
|
|
24
|
+
o && /* @__PURE__ */ i(S, { loading: r, datetime: m, children: o }),
|
|
24
25
|
n
|
|
25
26
|
] }) });
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
q as TimelineSegment
|
|
28
29
|
};
|