@altinn/altinn-components 0.21.0 → 0.21.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/DialogListItem.css +1 -1
- package/dist/assets/DrawerBase.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/ProgressIcon.css +1 -1
- package/dist/components/Dialog/DialogHeading.js +7 -7
- package/dist/components/Dialog/DialogListItem.js +19 -19
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/index.js +21 -23
- package/dist/components/Dropdown/DrawerBase.js +11 -10
- package/dist/components/Dropdown/DrawerOrDropdown.js +18 -21
- package/dist/components/Dropdown/DropdownBase.js +21 -21
- package/dist/components/Header/Header.js +32 -22
- package/dist/components/Icon/ProgressIcon.js +4 -4
- package/dist/components/Menu/MenuItemBase.js +31 -31
- package/dist/components/Page/PageTabs.js +4 -4
- package/dist/components/index.js +254 -256
- package/dist/index.js +254 -256
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +0 -1
- package/dist/types/lib/components/Dialog/DialogHeading.d.ts +4 -4
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +6 -4
- package/dist/types/lib/components/Dialog/index.d.ts +0 -1
- package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +3 -1
- package/dist/types/lib/components/Dropdown/DropdownBase.d.ts +3 -1
- package/dist/types/lib/components/Timeline/TimelineFooter.stories.d.ts +1 -0
- package/dist/types/lib/components/Timeline/TimelineHeader.stories.d.ts +1 -0
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -0
- package/package.json +2 -2
- package/dist/assets/DrawerOrDropdown.css +0 -1
- package/dist/components/Dialog/DialogLabel.js +0 -21
- package/dist/types/lib/components/Dialog/DialogLabel.d.ts +0 -13
- package/dist/types/lib/components/Dialog/Examples.stories.d.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_2hfa5_1[data-size=xl]{padding:1em}._link_2hfa5_1[data-size=lg]{padding:.875em}._link_2hfa5_1[data-size=md]{padding:.75em}._link_2hfa5_1[data-size=sm],._link_2hfa5_1[data-size=xs]{padding:.625em}._border_2hfa5_22{position:relative;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column}._border_2hfa5_22[data-seen=true]{border-color:var(--ds-color-neutral-surface-default)}._border_2hfa5_22[data-variant=draft]{border-color:var(--ds-color-neutral-surface-active);border-left-width:.125rem;margin-left:.125rem;border-left-style:dashed}._border_2hfa5_22[data-variant=sent]{border-color:var(--ds-color-neutral-surface-default)}._border_2hfa5_22[data-loading=true]{border-color:var(--ds-color-surface-default)}._border_2hfa5_22[data-size=xs],._border_2hfa5_22[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_2hfa5_22[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_2hfa5_22[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_2hfa5_22[data-size=xl]{padding-left:1rem;row-gap:1rem}._select_2hfa5_72{position:absolute;top:0;right:0;margin:.375rem}._header_2hfa5_79{display:flex;flex-direction:column;row-gap:.25rem}._header_2hfa5_79[data-size=xs],._header_2hfa5_79[data-size=sm]{display:flex;flex-direction:row}._summary_2hfa5_91{font-size:1rem;font-weight:400;line-height:1.375;color:var(--ds-color-text-default);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._summary_2hfa5_91[data-size=xs],._summary_2hfa5_91[data-size=sm],._summary_2hfa5_91[data-size=md]{font-size:.875rem}._summary_2hfa5_91[data-size=lg],._summary_2hfa5_91[data-size=xl]{font-size:1rem}._footer_2hfa5_119{width:100%}._touchedBy_2hfa5_123{position:absolute;right:0;bottom:0;margin:8px}._heading_2hfa5_132{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_2hfa5_138{line-height:1.25;font-weight:600;margin:0}._title_2hfa5_138[data-size=xs],._title_2hfa5_138[data-size=sm]{font-size:1rem}._title_2hfa5_138[data-size=md],._title_2hfa5_138[data-size=lg],._title_2hfa5_138[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_2hfa5_138[data-size=md]{font-size:1rem}._title_2hfa5_138[data-size=lg],._title_2hfa5_138[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_2hfa5_138[data-seen=true],._title_2hfa5_138[data-state=archived]{font-weight:400}._title_2hfa5_138[data-state=trashed]{font-weight:400;text-decoration:line-through}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_18fhf_1{display:none}._drawer_18fhf_1[data-expanded=true]{display:block;width:100%;z-index:2}._drawer_18fhf_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}@media (max-width: 1023px){._drawer_18fhf_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._drawer_18fhf_1[data-expanded=true][data-layout=mobile]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_1x5d7_1{display:none}._dropdown_1x5d7_1[data-expanded=true]{display:block;position:absolute;z-index:2}._dropdown_1x5d7_1[data-placement=left]{left:0}._dropdown_1x5d7_1[data-placement=right]{right:0}._dropdown_1x5d7_1[data-padding=true]{padding:0 .5rem}._dropdown_1x5d7_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}@media (max-width: 1023px){._dropdown_1x5d7_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_1x5d7_1[data-expanded=true][data-layout=mobile]{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_7rzvi_1{padding:0;border:0;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_7rzvi_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_7rzvi_1[data-size=md]{min-height:56px}._item_7rzvi_1[data-size=md]{min-height:44px}._item_7rzvi_1[data-size=sm]{min-height:40px}._content_7rzvi_43{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_7rzvi_51{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_7rzvi_58{font-size:.875rem;white-space:nowrap}._linkIcon_7rzvi_63{font-size:1.5rem}._item_7rzvi_1,._item_7rzvi_1[data-theme]{background-color:transparent}[data-theme=subtle] ._item_7rzvi_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_7rzvi_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_7rzvi_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_7rzvi_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_7rzvi_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_7rzvi_1[data-selected=true]{background-color:var(--ds-color-background-subtle)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._progress_1usqp_1{--size: 16px;width:var(--size);height:var(--size);aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--ds-color-base-default) var(--progress, 0),var(--ds-color-surface-default) 0);display:grid;place-content:center;transform:scaleX(-1)}._progress_1usqp_1:after{width:calc(var(--size) * .5);height:calc(var(--size) * .5);aspect-ratio:1;content:attr(data-value);display:grid;background:#fff;border-radius:50%;font-size:0;place-content:center}._complete_1usqp_25{width:var(--size);height:var(--size);color:var(--ds-color-base-default)}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import { Badge as l } from "../Badge/Badge.js";
|
|
4
5
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { DialogLabel as d } from "./DialogLabel.js";
|
|
6
|
+
import { Skeleton as d } from "../Skeleton/Skeleton.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7",
|
|
9
|
+
import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7", r = {
|
|
10
10
|
heading: p,
|
|
11
11
|
title: c
|
|
12
|
-
},
|
|
13
|
-
/* @__PURE__ */ t(
|
|
14
|
-
!
|
|
12
|
+
}, u = ({ loading: e, size: s = "sm", seen: a = !1, state: o, badge: i, children: m }) => /* @__PURE__ */ n("div", { className: r.heading, children: [
|
|
13
|
+
/* @__PURE__ */ t(d, { loading: e, children: /* @__PURE__ */ t("h2", { className: r.title, "data-seen": a, "data-size": s, "data-state": o, children: m }) }),
|
|
14
|
+
!e && i && /* @__PURE__ */ t(l, { ...i })
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
u as DialogHeading
|
|
18
18
|
};
|
|
@@ -11,7 +11,7 @@ import { ListItemLabel as G } from "../List/ListItemLabel.js";
|
|
|
11
11
|
import { ListItemSelect as J } from "../List/ListItemSelect.js";
|
|
12
12
|
import { ListItem as x } from "../List/ListItem.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import '../../assets/DialogListItem.css';const K = "
|
|
14
|
+
import '../../assets/DialogListItem.css';const K = "_link_2hfa5_1", O = "_border_2hfa5_22", P = "_select_2hfa5_72", Q = "_header_2hfa5_79", R = "_summary_2hfa5_91", U = "_footer_2hfa5_119", W = "_touchedBy_2hfa5_123", X = "_heading_2hfa5_132", Y = "_title_2hfa5_138", o = {
|
|
15
15
|
link: K,
|
|
16
16
|
border: O,
|
|
17
17
|
select: P,
|
|
@@ -32,13 +32,13 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
32
32
|
recipient: v,
|
|
33
33
|
recipientLabel: k = "to",
|
|
34
34
|
grouped: D = !1,
|
|
35
|
-
updatedAt:
|
|
36
|
-
updatedAtLabel:
|
|
37
|
-
archivedAt:
|
|
35
|
+
updatedAt: h,
|
|
36
|
+
updatedAtLabel: n,
|
|
37
|
+
archivedAt: d,
|
|
38
38
|
archivedAtLabel: I,
|
|
39
39
|
trashedAt: _,
|
|
40
40
|
trashedAtLabel: L,
|
|
41
|
-
|
|
41
|
+
badge: S,
|
|
42
42
|
dueAt: j,
|
|
43
43
|
dueAtLabel: H,
|
|
44
44
|
seen: c = !1,
|
|
@@ -46,19 +46,19 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
46
46
|
touchedBy: T,
|
|
47
47
|
attachmentsCount: V,
|
|
48
48
|
title: m,
|
|
49
|
-
description:
|
|
49
|
+
description: f,
|
|
50
50
|
summary: p,
|
|
51
51
|
theme: q = "default",
|
|
52
|
-
...
|
|
52
|
+
...b
|
|
53
53
|
}) => {
|
|
54
|
-
const w = _ ? "trashed" :
|
|
54
|
+
const w = _ ? "trashed" : d ? "archived" : B, y = l ? "subtle" : q, N = r == null ? void 0 : r.value;
|
|
55
55
|
return a === "xs" || a === "sm" ? /* @__PURE__ */ e(
|
|
56
56
|
x,
|
|
57
57
|
{
|
|
58
|
-
...
|
|
58
|
+
...b,
|
|
59
59
|
size: a,
|
|
60
60
|
selected: l,
|
|
61
|
-
theme:
|
|
61
|
+
theme: y,
|
|
62
62
|
label: /* @__PURE__ */ e(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
@@ -67,19 +67,19 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
67
67
|
"data-size": a,
|
|
68
68
|
"data-seen": c,
|
|
69
69
|
"data-loading": t,
|
|
70
|
-
children: /* @__PURE__ */ e(G, { loading: t, size: a, title: m, description: p ||
|
|
70
|
+
children: /* @__PURE__ */ e(G, { loading: t, size: a, title: m, description: p || f })
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
badge: /* @__PURE__ */ e(u, { loading: t, sender: s, updatedAt:
|
|
73
|
+
badge: /* @__PURE__ */ e(u, { loading: t, sender: s, updatedAt: h, updatedAtLabel: n }),
|
|
74
74
|
title: m
|
|
75
75
|
}
|
|
76
76
|
) : /* @__PURE__ */ e(
|
|
77
77
|
x,
|
|
78
78
|
{
|
|
79
|
-
...
|
|
79
|
+
...b,
|
|
80
80
|
size: a,
|
|
81
81
|
selected: l,
|
|
82
|
-
theme:
|
|
82
|
+
theme: y,
|
|
83
83
|
controls: i && /* @__PURE__ */ e(J, { className: o.select, ...i, size: "xl" }),
|
|
84
84
|
title: m,
|
|
85
85
|
label: /* @__PURE__ */ g(
|
|
@@ -92,7 +92,7 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
92
92
|
"data-loading": t,
|
|
93
93
|
children: [
|
|
94
94
|
/* @__PURE__ */ g("header", { className: o.header, "data-size": a, children: [
|
|
95
|
-
/* @__PURE__ */ e(F, { loading: t, size: a, state: w,
|
|
95
|
+
/* @__PURE__ */ e(F, { loading: t, size: a, state: w, badge: S, seen: c, children: m }),
|
|
96
96
|
/* @__PURE__ */ e(
|
|
97
97
|
C,
|
|
98
98
|
{
|
|
@@ -104,7 +104,7 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
104
104
|
grouped: D
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
a === "lg" && /* @__PURE__ */ e(E, { loading: t, children: /* @__PURE__ */ e("p", { "data-size": a, className: o.summary, children: p ||
|
|
107
|
+
a === "lg" && /* @__PURE__ */ e(E, { loading: t, children: /* @__PURE__ */ e("p", { "data-size": a, className: o.summary, children: p || f }) })
|
|
108
108
|
] }),
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
110
|
u,
|
|
@@ -112,9 +112,9 @@ import '../../assets/DialogListItem.css';const K = "_link_6y5ya_1", O = "_border
|
|
|
112
112
|
className: o.footer,
|
|
113
113
|
loading: t,
|
|
114
114
|
status: r,
|
|
115
|
-
updatedAt:
|
|
116
|
-
updatedAtLabel:
|
|
117
|
-
archivedAt:
|
|
115
|
+
updatedAt: h,
|
|
116
|
+
updatedAtLabel: n,
|
|
117
|
+
archivedAt: d,
|
|
118
118
|
archivedAtLabel: I,
|
|
119
119
|
trashedAt: _,
|
|
120
120
|
trashedAtLabel: L,
|
|
@@ -8,10 +8,10 @@ import { DialogActivityLog as j } from "./DialogActivityLog.js";
|
|
|
8
8
|
import { DialogSeenBy as I } from "./DialogSeenBy.js";
|
|
9
9
|
import { DialogStatus as E } from "./DialogStatus.js";
|
|
10
10
|
import { DialogTouchedBy as _ } from "./DialogTouchedBy.js";
|
|
11
|
+
import "../Search/AutocompleteBase.js";
|
|
11
12
|
import { MetaBase as M } from "../Meta/MetaBase.js";
|
|
12
13
|
import { MetaItem as b } from "../Meta/MetaItem.js";
|
|
13
14
|
import { MetaTimestamp as m } from "../Meta/MetaTimestamp.js";
|
|
14
|
-
import "../Search/AutocompleteBase.js";
|
|
15
15
|
import "../Snackbar/useSnackbar.js";
|
|
16
16
|
import { S as P } from "../../ClockDashed-PQgzLSPC.js";
|
|
17
17
|
import { u as S } from "../../useId-CsCRkvK3.js";
|
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { Dialog as t } from "./Dialog.js";
|
|
2
2
|
import { DialogHeader as i } from "./DialogHeader.js";
|
|
3
3
|
import { DialogBody as g } from "./DialogBody.js";
|
|
4
|
-
import { DialogList as
|
|
4
|
+
import { DialogList as l } from "./DialogList.js";
|
|
5
5
|
import { DialogListGroup as f } from "./DialogListGroup.js";
|
|
6
6
|
import { DialogListItem as D } from "./DialogListItem.js";
|
|
7
7
|
import { DialogMetadata as s } from "./DialogMetadata.js";
|
|
8
8
|
import { DialogByline as c } from "./DialogByline.js";
|
|
9
|
-
import { DialogActions as
|
|
10
|
-
import { DialogActivityLog as
|
|
9
|
+
import { DialogActions as d } from "./DialogActions.js";
|
|
10
|
+
import { DialogActivityLog as B } from "./DialogActivityLog.js";
|
|
11
11
|
import { DialogSection as A } from "./DialogSection.js";
|
|
12
12
|
import { DialogSeenBy as h } from "./DialogSeenBy.js";
|
|
13
|
-
import { DialogSelect as
|
|
14
|
-
import { DialogStatus as
|
|
15
|
-
import { DialogHeading as
|
|
13
|
+
import { DialogSelect as E } from "./DialogSelect.js";
|
|
14
|
+
import { DialogStatus as I, DialogStatusEnum as M } from "./DialogStatus.js";
|
|
15
|
+
import { DialogHeading as b } from "./DialogHeading.js";
|
|
16
16
|
import { DialogTouchedBy as k } from "./DialogTouchedBy.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { SeenByLog as P } from "./SeenByLog.js";
|
|
17
|
+
import { DialogAttachments as w } from "./DialogAttachments.js";
|
|
18
|
+
import { DialogHistory as C } from "./DialogHistory.js";
|
|
19
|
+
import { DialogActivity as J } from "./DialogActivity.js";
|
|
20
|
+
import { SeenByLog as N } from "./SeenByLog.js";
|
|
22
21
|
export {
|
|
23
22
|
t as Dialog,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
d as DialogActions,
|
|
24
|
+
J as DialogActivity,
|
|
25
|
+
B as DialogActivityLog,
|
|
26
|
+
w as DialogAttachments,
|
|
28
27
|
g as DialogBody,
|
|
29
28
|
c as DialogByline,
|
|
30
29
|
i as DialogHeader,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
m as DialogList,
|
|
30
|
+
b as DialogHeading,
|
|
31
|
+
C as DialogHistory,
|
|
32
|
+
l as DialogList,
|
|
35
33
|
f as DialogListGroup,
|
|
36
34
|
D as DialogListItem,
|
|
37
35
|
s as DialogMetadata,
|
|
38
36
|
A as DialogSection,
|
|
39
37
|
h as DialogSeenBy,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
E as DialogSelect,
|
|
39
|
+
I as DialogStatus,
|
|
40
|
+
M as DialogStatusEnum,
|
|
43
41
|
k as DialogTouchedBy,
|
|
44
|
-
|
|
42
|
+
N as SeenByLog
|
|
45
43
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/DrawerBase.css';const
|
|
4
|
-
drawer:
|
|
5
|
-
},
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/DrawerBase.css';const c = "_drawer_18fhf_1", n = {
|
|
4
|
+
drawer: c
|
|
5
|
+
}, f = ({ layout: a, placement: e = "inline", open: r = !1, className: t, children: d }) => /* @__PURE__ */ o(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
9
|
-
"data-placement":
|
|
8
|
+
className: s(n.drawer, t),
|
|
9
|
+
"data-placement": e,
|
|
10
|
+
"data-layout": a,
|
|
10
11
|
"data-theme": "default",
|
|
11
12
|
"data-color": "company",
|
|
12
|
-
"data-expanded":
|
|
13
|
-
children:
|
|
13
|
+
"data-expanded": r,
|
|
14
|
+
children: d
|
|
14
15
|
}
|
|
15
16
|
);
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
f as DrawerBase
|
|
18
19
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, Fragment as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { DropdownBase as
|
|
6
|
-
import { Backdrop as
|
|
7
|
-
import { DrawerBase as
|
|
8
|
-
import { DrawerHeader as
|
|
9
|
-
import { DrawerFooter as
|
|
10
|
-
import { DrawerButton as
|
|
11
|
-
import { DrawerBody as
|
|
5
|
+
import { DropdownBase as f } from "./DropdownBase.js";
|
|
6
|
+
import { Backdrop as t } from "./Backdrop.js";
|
|
7
|
+
import { DrawerBase as D } from "./DrawerBase.js";
|
|
8
|
+
import { DrawerHeader as a } from "./DrawerHeader.js";
|
|
9
|
+
import { DrawerFooter as s } from "./DrawerFooter.js";
|
|
10
|
+
import { DrawerButton as k } from "./DrawerButton.js";
|
|
11
|
+
import { DrawerBody as b } from "./DrawerBody.js";
|
|
12
12
|
import "../Search/AutocompleteBase.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
|
|
15
|
-
dropdown: _,
|
|
16
|
-
drawer: k
|
|
17
|
-
}, z = ({
|
|
14
|
+
const z = ({
|
|
18
15
|
open: m = !1,
|
|
19
16
|
onClose: i,
|
|
20
|
-
drawerButton:
|
|
17
|
+
drawerButton: o,
|
|
21
18
|
children: p,
|
|
22
|
-
drawerTitle:
|
|
23
|
-
}) => /* @__PURE__ */
|
|
24
|
-
m && /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
19
|
+
drawerTitle: e
|
|
20
|
+
}) => /* @__PURE__ */ l(c, { children: [
|
|
21
|
+
m && /* @__PURE__ */ r(t, { onClick: i }),
|
|
22
|
+
/* @__PURE__ */ r(f, { layout: "desktop", padding: !0, open: m, children: p }),
|
|
23
|
+
/* @__PURE__ */ l(D, { layout: "mobile", placement: "bottom", open: m, children: [
|
|
24
|
+
/* @__PURE__ */ r(a, { title: e, onClose: i }),
|
|
25
|
+
/* @__PURE__ */ r(b, { children: p }),
|
|
26
|
+
/* @__PURE__ */ r(s, { children: o && /* @__PURE__ */ r(k, { onClick: o == null ? void 0 : o.onClick, children: o == null ? void 0 : o.label }) })
|
|
30
27
|
] })
|
|
31
28
|
] });
|
|
32
29
|
export {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useRef as l } from "react";
|
|
4
4
|
import { useClickOutside as c } from "../../hooks/useClickOutside.js";
|
|
5
|
-
import '../../assets/DropdownBase.css';const
|
|
6
|
-
dropdown:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
open: a = !1,
|
|
5
|
+
import '../../assets/DropdownBase.css';const f = "_dropdown_1x5d7_1", u = {
|
|
6
|
+
dropdown: f
|
|
7
|
+
}, _ = ({
|
|
8
|
+
layout: a,
|
|
9
|
+
placement: d = "left",
|
|
10
|
+
padding: t = !0,
|
|
11
|
+
open: e = !1,
|
|
13
12
|
className: r,
|
|
14
|
-
children:
|
|
15
|
-
onClose:
|
|
13
|
+
children: n,
|
|
14
|
+
onClose: s
|
|
16
15
|
}) => {
|
|
17
|
-
const o =
|
|
18
|
-
return c(o,
|
|
16
|
+
const o = l(null);
|
|
17
|
+
return c(o, s), /* @__PURE__ */ m(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
20
|
ref: o,
|
|
22
|
-
className:
|
|
21
|
+
className: p(u.dropdown, r),
|
|
22
|
+
"data-layout": a,
|
|
23
23
|
"data-theme": "default",
|
|
24
24
|
"data-color": "company",
|
|
25
25
|
"data-shadow": "md",
|
|
26
|
-
"data-placement":
|
|
27
|
-
"data-padding":
|
|
26
|
+
"data-placement": d,
|
|
27
|
+
"data-padding": t,
|
|
28
28
|
role: "menu",
|
|
29
|
-
"data-expanded":
|
|
30
|
-
children:
|
|
29
|
+
"data-expanded": e,
|
|
30
|
+
children: n
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
_ as DropdownBase
|
|
36
36
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { DropdownBase as g } from "../Dropdown/DropdownBase.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import { DrawerBase as x } from "../Dropdown/DrawerBase.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { useRootContext as C } from "../RootProvider/RootProvider.js";
|
|
8
|
-
import { GlobalMenu as
|
|
9
|
-
import { HeaderBase as
|
|
10
|
-
import { HeaderLogo as
|
|
11
|
-
import { HeaderButton as
|
|
12
|
-
import { Searchbar as
|
|
8
|
+
import { GlobalMenu as m } from "../GlobalMenu/GlobalMenu.js";
|
|
9
|
+
import { HeaderBase as y } from "./HeaderBase.js";
|
|
10
|
+
import { HeaderLogo as H } from "./HeaderLogo.js";
|
|
11
|
+
import { HeaderButton as _ } from "./HeaderButton.js";
|
|
12
|
+
import { Searchbar as b } from "../Search/Searchbar.js";
|
|
13
13
|
import "../Search/AutocompleteBase.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
|
-
import { HeaderMenu as
|
|
16
|
-
import { HeaderSearch as
|
|
17
|
-
import '../../assets/Header.css';const
|
|
18
|
-
drawer:
|
|
19
|
-
dropdown:
|
|
20
|
-
}, K = ({ search:
|
|
21
|
-
const { currentId: o, toggleId:
|
|
15
|
+
import { HeaderMenu as u } from "./HeaderMenu.js";
|
|
16
|
+
import { HeaderSearch as B } from "./HeaderSearch.js";
|
|
17
|
+
import '../../assets/Header.css';const N = "_drawer_d2s9o_1", S = "_dropdown_d2s9o_5", s = {
|
|
18
|
+
drawer: N,
|
|
19
|
+
dropdown: S
|
|
20
|
+
}, K = ({ search: n, menu: r, currentAccount: a, logo: p = {}, badge: i }) => {
|
|
21
|
+
const { currentId: o, toggleId: t, openId: c, closeAll: d } = C(), h = () => {
|
|
22
22
|
c("search");
|
|
23
23
|
}, f = () => {
|
|
24
|
-
|
|
24
|
+
t("search");
|
|
25
25
|
}, w = () => {
|
|
26
|
-
|
|
26
|
+
t("menu");
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */ e(
|
|
30
|
-
/* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ l(y, { currentId: o, open: o === "search" || o === "menu", onClose: d, children: [
|
|
29
|
+
/* @__PURE__ */ e(H, { ...p, className: s.logo }),
|
|
30
|
+
/* @__PURE__ */ l(u, { className: s.menu, children: [
|
|
31
31
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
32
|
+
_,
|
|
33
33
|
{
|
|
34
34
|
color: "company",
|
|
35
35
|
variant: "solid",
|
|
@@ -43,10 +43,20 @@ import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s
|
|
|
43
43
|
label: r == null ? void 0 : r.menuLabel
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
r && /* @__PURE__ */ e(
|
|
46
|
+
r && /* @__PURE__ */ e(
|
|
47
|
+
g,
|
|
48
|
+
{
|
|
49
|
+
layout: "desktop",
|
|
50
|
+
padding: !0,
|
|
51
|
+
placement: "right",
|
|
52
|
+
open: o === "menu",
|
|
53
|
+
className: s.dropdown,
|
|
54
|
+
children: /* @__PURE__ */ e(m, { ...r, currentAccount: a, onClose: d })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
47
57
|
] }),
|
|
48
|
-
|
|
49
|
-
r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(
|
|
58
|
+
n && /* @__PURE__ */ e(B, { expanded: o === "search", children: /* @__PURE__ */ e(b, { ...n, expanded: o === "search", onClose: f, onFocus: h }) }),
|
|
59
|
+
r && /* @__PURE__ */ e(x, { layout: "mobile", open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(m, { ...r, currentAccount: a, onClose: d }) })
|
|
50
60
|
] });
|
|
51
61
|
};
|
|
52
62
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as p } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ProgressIcon.css';const i = "
|
|
3
|
+
import '../../assets/ProgressIcon.css';const i = "_progress_1usqp_1", g = "_complete_1usqp_25", c = {
|
|
4
4
|
progress: i,
|
|
5
5
|
complete: g
|
|
6
|
-
}, C = ({ value: e = 0, total: s = 100, className:
|
|
6
|
+
}, C = ({ value: e = 0, total: s = 100, className: l }) => {
|
|
7
7
|
const r = Math.round(e / s * 100);
|
|
8
8
|
if (e === s)
|
|
9
9
|
return /* @__PURE__ */ o(
|
|
@@ -14,7 +14,7 @@ import '../../assets/ProgressIcon.css';const i = "_progress_e618l_1", g = "_comp
|
|
|
14
14
|
viewBox: "0 0 16 16",
|
|
15
15
|
fill: "none",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
className:
|
|
17
|
+
className: c.complete,
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ o("title", { children: [
|
|
20
20
|
"Progress ",
|
|
@@ -37,7 +37,7 @@ import '../../assets/ProgressIcon.css';const i = "_progress_e618l_1", g = "_comp
|
|
|
37
37
|
const n = {
|
|
38
38
|
"--progress": `${r}%`
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */ t("div", { className: p(
|
|
40
|
+
return /* @__PURE__ */ t("div", { className: p(c.progress, l), style: n, "data-value": `${r}%` });
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
43
|
C as ProgressIcon
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as N } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { Icon as u } from "../Icon/Icon.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Badge as
|
|
5
|
+
import { Badge as T } from "../Badge/Badge.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/MenuItemBase.css';const
|
|
10
|
-
item:
|
|
11
|
-
content:
|
|
12
|
-
action:
|
|
13
|
-
linkText:
|
|
14
|
-
linkIcon:
|
|
9
|
+
import '../../assets/MenuItemBase.css';const j = "_item_7rzvi_1", B = "_content_7rzvi_43", E = "_action_7rzvi_51", k = "_linkText_7rzvi_58", M = "_linkIcon_7rzvi_63", n = {
|
|
10
|
+
item: j,
|
|
11
|
+
content: B,
|
|
12
|
+
action: E,
|
|
13
|
+
linkText: k,
|
|
14
|
+
linkIcon: M
|
|
15
15
|
}, O = ({
|
|
16
16
|
as: _,
|
|
17
17
|
color: l,
|
|
@@ -19,40 +19,40 @@ import '../../assets/MenuItemBase.css';const T = "_item_kevew_1", j = "_content_
|
|
|
19
19
|
size: d,
|
|
20
20
|
className: h,
|
|
21
21
|
href: v,
|
|
22
|
-
onClick:
|
|
23
|
-
onKeyPress:
|
|
22
|
+
onClick: e,
|
|
23
|
+
onKeyPress: i,
|
|
24
24
|
tabIndex: x = 0,
|
|
25
25
|
hidden: f,
|
|
26
|
-
selected:
|
|
27
|
-
disabled:
|
|
28
|
-
linkIcon:
|
|
29
|
-
linkText:
|
|
26
|
+
selected: z,
|
|
27
|
+
disabled: m = !1,
|
|
28
|
+
linkIcon: o,
|
|
29
|
+
linkText: r,
|
|
30
30
|
badge: t,
|
|
31
|
-
children:
|
|
32
|
-
}) => /* @__PURE__ */
|
|
31
|
+
children: I
|
|
32
|
+
}) => /* @__PURE__ */ a(
|
|
33
33
|
_ || "a",
|
|
34
34
|
{
|
|
35
|
-
tabIndex:
|
|
36
|
-
className:
|
|
35
|
+
tabIndex: m ? "-1" : x ?? 0,
|
|
36
|
+
className: N(h, n.item),
|
|
37
37
|
"data-size": d,
|
|
38
38
|
"data-color": l,
|
|
39
39
|
"data-theme": p,
|
|
40
40
|
"aria-hidden": f,
|
|
41
|
-
"aria-disabled":
|
|
42
|
-
"data-selected":
|
|
41
|
+
"aria-disabled": m,
|
|
42
|
+
"data-selected": z,
|
|
43
43
|
href: v,
|
|
44
|
-
onKeyPress: (
|
|
45
|
-
|
|
44
|
+
onKeyPress: (s) => {
|
|
45
|
+
s.key === "Enter" && (e == null || e()), i == null || i(s);
|
|
46
46
|
},
|
|
47
|
-
onClick:
|
|
47
|
+
onClick: e,
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
t && /* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ a("div", { className: n.content, children: [
|
|
50
|
+
I,
|
|
51
|
+
t && /* @__PURE__ */ c(T, { ...t, theme: (t == null ? void 0 : t.theme) || "surface" })
|
|
52
52
|
] }),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
o && /* @__PURE__ */ a("div", { className: n.action, children: [
|
|
54
|
+
r && /* @__PURE__ */ c("span", { className: n.linkText, children: r }),
|
|
55
|
+
o && /* @__PURE__ */ c(u, { svgElement: o, className: n.linkIcon })
|
|
56
56
|
] })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
@@ -6,10 +6,10 @@ import { MenuItem as p } from "../Menu/MenuItem.js";
|
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import { Flex as l } from "./Flex.js";
|
|
9
|
-
import '../../assets/PageTabs.css';const
|
|
10
|
-
list:
|
|
11
|
-
item:
|
|
12
|
-
}, N = ({ theme: m
|
|
9
|
+
import '../../assets/PageTabs.css';const c = "_list_gp6cp_1", n = "_item_gp6cp_21", r = {
|
|
10
|
+
list: c,
|
|
11
|
+
item: n
|
|
12
|
+
}, N = ({ theme: m, color: e, items: o = [], padding: s = 0 }) => /* @__PURE__ */ t(l, { theme: m, color: e, padding: s, children: /* @__PURE__ */ t("ul", { className: r.list, children: o.map((i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(p, { ...i, className: r.item }) }, i.id)) }) });
|
|
13
13
|
export {
|
|
14
14
|
N as PageTabs
|
|
15
15
|
};
|