@pismo/marola 1.0.0-beta.8 → 1.0.0-beta.9
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/Dialog.module-DFcZsVAd.js +30 -0
- package/dist/{Input.module-iOYlI_1w.js → Input.module-ZTRZRcNt.js} +136 -136
- package/dist/SelectButton-CoOT2txy.js +61 -0
- package/dist/Toggle-f5brSwAI.js +175 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/SortTooltip.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Advice/Advice.d.ts +32 -17
- package/dist/components/Advice/Advice.js +39 -40
- package/dist/components/Advice/Advice.stories.d.ts +4 -3
- package/dist/components/Autocomplete/Autocomplete.js +58 -58
- package/dist/components/Button/Button.js +48 -48
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -1
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.js +70 -70
- package/dist/components/RowItem/RowItem.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +90 -90
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/Table/Table.js +96 -96
- package/dist/components/Toggle/Toggle.js +55 -55
- package/dist/components/ToggleGroup/Toggle.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/SelectButton-K3OIfR5m.js +0 -61
- package/dist/Toggle-BSvvbKBp.js +0 -175
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import '../../assets/Checkbox.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as w, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import * as l from "react";
|
|
4
4
|
import { useState as k, useEffect as i } from "react";
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
"u-typography-h1": "_u-typography-
|
|
8
|
-
"u-typography-h2": "_u-typography-
|
|
9
|
-
"u-typography-h3": "_u-typography-
|
|
10
|
-
"u-typography-h4": "_u-typography-
|
|
11
|
-
"u-typography-h5": "_u-typography-
|
|
12
|
-
"u-typography-h6": "_u-typography-
|
|
13
|
-
"u-typography-base": "_u-typography-
|
|
14
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
15
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
19
|
-
"checkbox-wrapper": "_checkbox-
|
|
20
|
-
"label--highlighted": "_label--
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
24
|
-
label:
|
|
25
|
-
"label--highlighted-checked": "_label--highlighted-
|
|
26
|
-
checkmark:
|
|
27
|
-
"checkmark--checked": "_checkmark--
|
|
28
|
-
"checkmark--light-theme": "_checkmark--light-
|
|
29
|
-
"checkmark--accent-theme": "_checkmark--accent-
|
|
30
|
-
"checkmark--small-size": "_checkmark--small-
|
|
31
|
-
"checkmark--normal-size": "_checkmark--normal-
|
|
32
|
-
},
|
|
5
|
+
import { c as _ } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
const v = (a) => /* @__PURE__ */ l.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ l.createElement("path", { d: "M13.7063 0.293438C14.0969 0.684062 14.0969 1.31531 13.7063 1.70594L5.70625 9.70594C5.31563 10.0966 4.68437 10.0966 4.29375 9.70594L0.292875 5.70594C-0.097625 5.31531 -0.097625 4.68406 0.292875 4.29344C0.683437 3.90281 1.31656 3.90281 1.70719 4.29344L4.97188 7.58406L12.2937 0.293438C12.6844 -0.0978125 13.3156 -0.0978125 13.7063 0.293438Z", fill: "#F7F7FC" })), N = "_label_xqg5n_65", z = "_checkmark_xqg5n_94", e = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_xqg5n_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_xqg5n_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_xqg5n_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_xqg5n_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_xqg5n_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_xqg5n_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_xqg5n_43",
|
|
14
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_xqg5n_49",
|
|
15
|
+
"u-typography-base--xl": "_u-typography-base--xl_xqg5n_53",
|
|
16
|
+
"u-typography-base--lg": "_u-typography-base--lg_xqg5n_57",
|
|
17
|
+
"u-typography-base--sm": "_u-typography-base--sm_xqg5n_61",
|
|
18
|
+
"u-typography-base--bold": "_u-typography-base--bold_xqg5n_65",
|
|
19
|
+
"checkbox-wrapper": "_checkbox-wrapper_xqg5n_65",
|
|
20
|
+
"label--highlighted": "_label--highlighted_xqg5n_65",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_xqg5n_68",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_xqg5n_71",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_xqg5n_74",
|
|
24
|
+
label: N,
|
|
25
|
+
"label--highlighted-checked": "_label--highlighted-checked_xqg5n_91",
|
|
26
|
+
checkmark: z,
|
|
27
|
+
"checkmark--checked": "_checkmark--checked_xqg5n_106",
|
|
28
|
+
"checkmark--light-theme": "_checkmark--light-theme_xqg5n_109",
|
|
29
|
+
"checkmark--accent-theme": "_checkmark--accent-theme_xqg5n_116",
|
|
30
|
+
"checkmark--small-size": "_checkmark--small-size_xqg5n_123",
|
|
31
|
+
"checkmark--normal-size": "_checkmark--normal-size_xqg5n_130"
|
|
32
|
+
}, E = (a) => /* @__PURE__ */ l.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ l.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), B = ({
|
|
33
33
|
className: a,
|
|
34
|
-
label:
|
|
34
|
+
label: s,
|
|
35
35
|
name: m,
|
|
36
|
-
theme:
|
|
37
|
-
size:
|
|
36
|
+
theme: x = "accent",
|
|
37
|
+
size: u = "normal",
|
|
38
38
|
checked: r,
|
|
39
|
-
onChange:
|
|
40
|
-
isIndeterminate:
|
|
41
|
-
highlightLabel:
|
|
42
|
-
...
|
|
39
|
+
onChange: b,
|
|
40
|
+
isIndeterminate: g,
|
|
41
|
+
highlightLabel: d = !1,
|
|
42
|
+
...o
|
|
43
43
|
}) => {
|
|
44
|
-
const [h,
|
|
44
|
+
const [h, n] = k(r), [t, y] = k(g);
|
|
45
45
|
i(() => {
|
|
46
|
-
r !== h &&
|
|
46
|
+
r !== h && n(r);
|
|
47
47
|
}, [r]), i(() => {
|
|
48
|
-
typeof
|
|
49
|
-
}, [
|
|
50
|
-
const
|
|
48
|
+
typeof g == "boolean" && y(g);
|
|
49
|
+
}, [g]);
|
|
50
|
+
const q = _(e["checkbox-wrapper"], a), C = _(
|
|
51
51
|
e.checkmark,
|
|
52
|
-
e[`checkmark--${
|
|
53
|
-
e[`checkmark--${
|
|
52
|
+
e[`checkmark--${x}-theme`],
|
|
53
|
+
e[`checkmark--${u}-size`],
|
|
54
54
|
(h || t) && e["checkmark--checked"]
|
|
55
|
-
),
|
|
55
|
+
), f = d && (o.children || s) ? _(
|
|
56
56
|
e.label,
|
|
57
57
|
e["label--highlighted"],
|
|
58
58
|
(h || t) && e["label--highlighted-checked"]
|
|
59
59
|
) : e.label;
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
let
|
|
62
|
-
t && (y(!1),
|
|
63
|
-
}, ...
|
|
60
|
+
return /* @__PURE__ */ w("div", { className: q, onClick: () => {
|
|
61
|
+
let p = !h;
|
|
62
|
+
t && (y(!1), p = !0), b(p), n(p);
|
|
63
|
+
}, ...o, children: [
|
|
64
64
|
/* @__PURE__ */ c("input", { name: m, type: "checkbox", checked: !t && h, readOnly: !0 }),
|
|
65
|
-
/* @__PURE__ */ c("span", { className:
|
|
66
|
-
/* @__PURE__ */ c("label", { className:
|
|
65
|
+
/* @__PURE__ */ c("span", { className: C, children: t ? /* @__PURE__ */ c(E, {}) : h && /* @__PURE__ */ c(v, {}) }),
|
|
66
|
+
/* @__PURE__ */ c("label", { className: f, children: o.children || s })
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
B as Checkbox
|
|
71
71
|
};
|
|
@@ -5,7 +5,7 @@ import "../Adornment/Adornment.js";
|
|
|
5
5
|
import "../Icon/Icon.js";
|
|
6
6
|
import "../Typography/Typography.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
|
-
import { C as k } from "../../Toggle-
|
|
8
|
+
import { C as k } from "../../Toggle-f5brSwAI.js";
|
|
9
9
|
import "../Dialog/Backdrop.js";
|
|
10
10
|
import "../IconButton/IconButton.js";
|
|
11
11
|
import "../Select/Select.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../Dialog.module-
|
|
2
|
+
import { s as t } from "../../Dialog.module-DFcZsVAd.js";
|
|
3
3
|
const i = ({ children: s }) => /* @__PURE__ */ o("div", { className: t.dialog__actions, children: s });
|
|
4
4
|
export {
|
|
5
5
|
i as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import { s as e } from "../../Dialog.module-
|
|
3
|
+
import { s as e } from "../../Dialog.module-DFcZsVAd.js";
|
|
4
4
|
const i = t((o, r) => {
|
|
5
5
|
const { open: m, className: p, ...s } = o;
|
|
6
6
|
return /* @__PURE__ */ a("div", { className: e.dialog__backdrop, ref: r, ...s });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as r } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../Dialog.module-
|
|
3
|
+
import { s as t } from "../../Dialog.module-DFcZsVAd.js";
|
|
4
4
|
import { B as a } from "../../Button-DiLqcAJG.js";
|
|
5
5
|
const d = ({ handleOnClose: i, className: o }) => {
|
|
6
6
|
const l = o != null ? t["dialog__close-icon "] + o : t["dialog__close-icon"];
|
|
@@ -3,7 +3,7 @@ import { default as Ye } from "./Actions.js";
|
|
|
3
3
|
import oe from "./Backdrop.js";
|
|
4
4
|
import re from "./CloseIconButton.js";
|
|
5
5
|
import { default as Ge } from "./Content.js";
|
|
6
|
-
import { s as q } from "../../Dialog.module-
|
|
6
|
+
import { s as q } from "../../Dialog.module-DFcZsVAd.js";
|
|
7
7
|
import se from "./DialogTitle.js";
|
|
8
8
|
import { u as Z, P as i, f as ie, b as C, g as ae, a as le, _ as ce, c as z, d as de, e as ue } from "../../useSlotProps-kRhf7Gil.js";
|
|
9
9
|
import * as f from "react";
|
|
@@ -76,11 +76,11 @@ declare const meta: {
|
|
|
76
76
|
style?: import('react').CSSProperties | undefined;
|
|
77
77
|
className?: string | undefined;
|
|
78
78
|
slot?: string | undefined;
|
|
79
|
-
content?: string | undefined;
|
|
80
79
|
suppressHydrationWarning?: boolean | undefined;
|
|
81
80
|
defaultChecked?: boolean | undefined;
|
|
82
81
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
83
82
|
suppressContentEditableWarning?: boolean | undefined;
|
|
83
|
+
content?: string | undefined;
|
|
84
84
|
dir?: string | undefined;
|
|
85
85
|
hidden?: boolean | undefined;
|
|
86
86
|
id?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as r } from "../Typography/Typography.js";
|
|
3
|
-
import { s as a } from "../../Dialog.module-
|
|
3
|
+
import { s as a } from "../../Dialog.module-DFcZsVAd.js";
|
|
4
4
|
const n = ({ title: t, subTitle: i }) => /* @__PURE__ */ l(o, { children: [
|
|
5
5
|
/* @__PURE__ */ e(
|
|
6
6
|
r,
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import '../../assets/IconButton.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { LoadingSpinner as
|
|
6
|
-
import { B as
|
|
2
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d, useMemo as l } from "react";
|
|
4
|
+
import { c as j } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as x } from "../../Button-DiLqcAJG.js";
|
|
7
7
|
const o = {
|
|
8
|
-
"u-typography-h1": "_u-typography-
|
|
9
|
-
"u-typography-h2": "_u-typography-
|
|
10
|
-
"u-typography-h3": "_u-typography-
|
|
11
|
-
"u-typography-h4": "_u-typography-
|
|
12
|
-
"u-typography-h5": "_u-typography-
|
|
13
|
-
"u-typography-h6": "_u-typography-
|
|
14
|
-
"u-typography-base": "_u-typography-
|
|
15
|
-
"icon-button": "_icon-
|
|
16
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
18
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
24
|
-
"icon-button--primary": "_icon-button--
|
|
25
|
-
"icon-button--square": "_icon-button--
|
|
26
|
-
"icon-button__container": "_icon-
|
|
27
|
-
}, B =
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_gt5j9_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_gt5j9_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_gt5j9_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_gt5j9_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_gt5j9_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_gt5j9_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_gt5j9_43",
|
|
15
|
+
"icon-button": "_icon-button_gt5j9_43",
|
|
16
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_gt5j9_49",
|
|
17
|
+
"u-typography-base--xl": "_u-typography-base--xl_gt5j9_53",
|
|
18
|
+
"u-typography-base--lg": "_u-typography-base--lg_gt5j9_57",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_gt5j9_61",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_gt5j9_65",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_gt5j9_68",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_gt5j9_71",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gt5j9_74",
|
|
24
|
+
"icon-button--primary": "_icon-button--primary_gt5j9_87",
|
|
25
|
+
"icon-button--square": "_icon-button--square_gt5j9_109",
|
|
26
|
+
"icon-button__container": "_icon-button__container_gt5j9_125"
|
|
27
|
+
}, B = d((p, y) => {
|
|
28
28
|
const {
|
|
29
29
|
onClick: _,
|
|
30
30
|
icon: e,
|
|
31
31
|
link: u,
|
|
32
|
-
loading:
|
|
33
|
-
children:
|
|
34
|
-
type:
|
|
35
|
-
disabled:
|
|
36
|
-
className:
|
|
32
|
+
loading: g,
|
|
33
|
+
children: n,
|
|
34
|
+
type: h = "button",
|
|
35
|
+
disabled: s,
|
|
36
|
+
className: a,
|
|
37
37
|
variant: t = "primary",
|
|
38
|
-
"data-testid":
|
|
39
|
-
} =
|
|
40
|
-
() =>
|
|
41
|
-
[
|
|
38
|
+
"data-testid": i
|
|
39
|
+
} = p, b = l(
|
|
40
|
+
() => j([o["icon-button"], o[`icon-button--${t}`], a]),
|
|
41
|
+
[a, t]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
x,
|
|
45
45
|
{
|
|
46
|
-
type:
|
|
46
|
+
type: h,
|
|
47
47
|
href: u,
|
|
48
48
|
onClick: _,
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: s,
|
|
50
50
|
className: b,
|
|
51
|
-
ref:
|
|
52
|
-
"data-testid":
|
|
51
|
+
ref: y,
|
|
52
|
+
"data-testid": i,
|
|
53
53
|
children: /* @__PURE__ */ c("div", { className: o["icon-button__container"], children: [
|
|
54
|
-
|
|
55
|
-
t !== "square" &&
|
|
54
|
+
g ? /* @__PURE__ */ r(m, { invert: !0 }) : e,
|
|
55
|
+
t !== "square" && n
|
|
56
56
|
] })
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -3,7 +3,7 @@ import * as g from "react";
|
|
|
3
3
|
import { useState as V, useId as k } from "react";
|
|
4
4
|
import { c as a } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { Typography as c } from "../Typography/Typography.js";
|
|
6
|
-
import { s as t, I as q } from "../../Input.module-
|
|
6
|
+
import { s as t, I as q } from "../../Input.module-ZTRZRcNt.js";
|
|
7
7
|
const D = (s) => /* @__PURE__ */ g.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/solid/circle-exclamation", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
8
8
|
fill: "currentcolor",
|
|
9
9
|
color: "currentcolor",
|
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import '../../assets/PageHeader.css';
|
|
2
|
-
import { jsx as a, jsxs as
|
|
2
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as L } from "react";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as h } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { Icon as B } from "../Icon/Icon.js";
|
|
6
6
|
import { IconButton as C } from "../IconButton/IconButton.js";
|
|
7
|
-
const j = "
|
|
8
|
-
"u-typography-h1": "_u-typography-
|
|
9
|
-
"u-typography-h2": "_u-typography-
|
|
10
|
-
"u-typography-h3": "_u-typography-
|
|
11
|
-
"u-typography-h4": "_u-typography-
|
|
12
|
-
"page-header__main-left-content": "_page-header__main-left-
|
|
7
|
+
const j = "_title_1qpkd_22", w = "_subtitle_1qpkd_43", e = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1qpkd_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1qpkd_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1qpkd_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1qpkd_22",
|
|
12
|
+
"page-header__main-left-content": "_page-header__main-left-content_1qpkd_22",
|
|
13
13
|
title: j,
|
|
14
|
-
"u-typography-h5": "_u-typography-
|
|
15
|
-
"u-typography-h6": "_u-typography-
|
|
16
|
-
"u-typography-base": "_u-typography-
|
|
14
|
+
"u-typography-h5": "_u-typography-h5_1qpkd_29",
|
|
15
|
+
"u-typography-h6": "_u-typography-h6_1qpkd_36",
|
|
16
|
+
"u-typography-base": "_u-typography-base_1qpkd_43",
|
|
17
17
|
subtitle: w,
|
|
18
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
19
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
20
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
21
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
22
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
26
|
-
"page-header": "_page-
|
|
27
|
-
"page-header__top-content": "_page-header__top-
|
|
28
|
-
"page-header__main-content": "_page-header__main-
|
|
29
|
-
"page-header__bottom-content": "_page-header__bottom-
|
|
30
|
-
"page-header__breadcrumb": "_page-
|
|
31
|
-
"page-header__breadcrumb__separator": "_page-
|
|
32
|
-
"page-header__main-right-content": "_page-header__main-right-
|
|
18
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1qpkd_49",
|
|
19
|
+
"u-typography-base--xl": "_u-typography-base--xl_1qpkd_53",
|
|
20
|
+
"u-typography-base--lg": "_u-typography-base--lg_1qpkd_57",
|
|
21
|
+
"u-typography-base--sm": "_u-typography-base--sm_1qpkd_61",
|
|
22
|
+
"u-typography-base--bold": "_u-typography-base--bold_1qpkd_65",
|
|
23
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1qpkd_68",
|
|
24
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1qpkd_71",
|
|
25
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1qpkd_74",
|
|
26
|
+
"page-header": "_page-header_1qpkd_22",
|
|
27
|
+
"page-header__top-content": "_page-header__top-content_1qpkd_87",
|
|
28
|
+
"page-header__main-content": "_page-header__main-content_1qpkd_90",
|
|
29
|
+
"page-header__bottom-content": "_page-header__bottom-content_1qpkd_90",
|
|
30
|
+
"page-header__breadcrumb": "_page-header__breadcrumb_1qpkd_104",
|
|
31
|
+
"page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_1qpkd_109",
|
|
32
|
+
"page-header__main-right-content": "_page-header__main-right-content_1qpkd_132"
|
|
33
33
|
}, P = ({
|
|
34
|
-
title:
|
|
35
|
-
subtitle:
|
|
36
|
-
rightChildren:
|
|
37
|
-
bottomChildren:
|
|
38
|
-
classNameWrapper:
|
|
39
|
-
classNameTitle:
|
|
40
|
-
classNameSubtitle:
|
|
34
|
+
title: g,
|
|
35
|
+
subtitle: y,
|
|
36
|
+
rightChildren: n,
|
|
37
|
+
bottomChildren: c,
|
|
38
|
+
classNameWrapper: u,
|
|
39
|
+
classNameTitle: b,
|
|
40
|
+
classNameSubtitle: k,
|
|
41
41
|
"data-testid-wrapper": m,
|
|
42
|
-
"data-testid-title":
|
|
42
|
+
"data-testid-title": q,
|
|
43
43
|
"data-testid-subtitle": N,
|
|
44
44
|
...f
|
|
45
45
|
}) => {
|
|
46
46
|
const {
|
|
47
|
-
breadcrumb:
|
|
48
|
-
backLinkText:
|
|
49
|
-
onBackLinkClick:
|
|
50
|
-
classNameBackLink:
|
|
51
|
-
"data-testid-backLink":
|
|
47
|
+
breadcrumb: _,
|
|
48
|
+
backLinkText: r,
|
|
49
|
+
onBackLinkClick: d,
|
|
50
|
+
classNameBackLink: i,
|
|
51
|
+
"data-testid-backLink": l,
|
|
52
52
|
...x
|
|
53
53
|
} = f, v = L(() => {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
label:
|
|
57
|
-
className:
|
|
58
|
-
"data-testid":
|
|
59
|
-
onClick:
|
|
60
|
-
}),
|
|
54
|
+
const p = [];
|
|
55
|
+
return r && d && p.push({
|
|
56
|
+
label: r,
|
|
57
|
+
className: i,
|
|
58
|
+
"data-testid": l,
|
|
59
|
+
onClick: d
|
|
60
|
+
}), _ && p.push(..._), /* @__PURE__ */ a("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: p.map((t, s) => /* @__PURE__ */ a(
|
|
61
61
|
C,
|
|
62
62
|
{
|
|
63
|
-
icon:
|
|
63
|
+
icon: s === 0 ? /* @__PURE__ */ a(B, { icon: "arrow-left" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
|
|
64
64
|
onClick: () => t.onClick && t.onClick(),
|
|
65
65
|
className: t.className,
|
|
66
66
|
"data-testid": t["data-testid"],
|
|
67
|
-
disabled:
|
|
67
|
+
disabled: p.length === 1 ? !1 : s === p.length - 1,
|
|
68
68
|
children: t.label
|
|
69
69
|
},
|
|
70
|
-
`${t.label}_${
|
|
70
|
+
`${t.label}_${s}`
|
|
71
71
|
)) }) });
|
|
72
|
-
}, [
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
}, [_, r, i, l, d]);
|
|
73
|
+
return /* @__PURE__ */ o("div", { className: h([e["page-header"], u]), "data-testid": m, ...x, children: [
|
|
74
74
|
v,
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */ a("h1", { className:
|
|
78
|
-
/* @__PURE__ */ a("h2", { className:
|
|
75
|
+
/* @__PURE__ */ o("div", { className: e["page-header__main-content"], children: [
|
|
76
|
+
/* @__PURE__ */ o("div", { className: e["page-header__main-left-content"], children: [
|
|
77
|
+
/* @__PURE__ */ a("h1", { className: h(e.title, b), "data-testid": q, children: g }),
|
|
78
|
+
/* @__PURE__ */ a("h2", { className: h(e.subtitle, k), "data-testid": N, children: y })
|
|
79
79
|
] }),
|
|
80
|
-
|
|
80
|
+
n && /* @__PURE__ */ a("div", { className: e["page-header__main-right-content"], children: n })
|
|
81
81
|
] }),
|
|
82
|
-
|
|
82
|
+
c && /* @__PURE__ */ a("div", { className: e["page-header__bottom-content"], children: c })
|
|
83
83
|
] });
|
|
84
84
|
};
|
|
85
85
|
export {
|