@pismo/marola 0.0.1-alpha.19 → 0.0.1-alpha.20
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-DFEmFdYT.js +30 -0
- package/dist/SelectButton-C8JQKaf4.js +61 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Chip.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/Typography.css +1 -1
- package/dist/components/Advice/Advice.js +32 -17
- package/dist/components/Button/Button.js +56 -85
- package/dist/components/Checkbox/Checkbox.js +57 -42
- package/dist/components/Chip/Chip.js +81 -111
- 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.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +2 -2
- package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
- package/dist/components/Dialog/DialogTitle.js +29 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +31 -25
- package/dist/components/IconButton/IconButton.js +34 -64
- package/dist/components/Input/Input.js +241 -229
- package/dist/components/PageHeader/PageHeader.js +52 -37
- package/dist/components/Pagination/Pagination.js +127 -113
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +176 -161
- package/dist/components/SortTooltip/SortTooltip.js +53 -38
- package/dist/components/Stepper/Stepper.js +37 -22
- package/dist/components/Table/Table.d.ts +33 -16
- package/dist/components/Table/Table.js +98 -81
- package/dist/components/Table/Table.stories.d.ts +29 -0
- package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
- package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
- package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
- package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
- package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
- package/dist/components/TextDisplay/TextDisplay.js +13 -13
- package/dist/components/Toggle/Toggle.js +138 -123
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +54 -84
- package/dist/main.js +42 -37
- package/dist/marola.css +1 -1
- package/dist/utils/styleStrings.d.ts +1 -1
- package/dist/utils/styleStrings.js +7 -7
- package/package.json +1 -1
- package/dist/Dialog.module-B8COssqi.js +0 -15
- package/dist/SelectButton-pciwIWcj.js +0 -46
- package/dist/components/Dialog/Title.js +0 -29
|
@@ -1,94 +1,65 @@
|
|
|
1
1
|
import '../../assets/Button.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { LoadingSpinner as
|
|
6
|
-
import { B as
|
|
7
|
-
const
|
|
8
|
-
h1:
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"quote--underlined": "_quote--underlined_1swyh_91",
|
|
30
|
-
"quote--strikethrough-underlined": "_quote--strikethrough-underlined_1swyh_94",
|
|
31
|
-
form__input: N,
|
|
32
|
-
form__hint: v,
|
|
33
|
-
form__label: j,
|
|
34
|
-
form__dropdown: P,
|
|
35
|
-
"form--bold": "_form--bold_1swyh_118",
|
|
36
|
-
"form--strikethrough": "_form--strikethrough_1swyh_121",
|
|
37
|
-
"form--underlined": "_form--underlined_1swyh_124",
|
|
38
|
-
"form--strikethrough-underlined": "_form--strikethrough-underlined_1swyh_127",
|
|
39
|
-
table__header: $,
|
|
40
|
-
table__body: C,
|
|
41
|
-
"table__body--secondary": "_table__body--secondary_1swyh_141",
|
|
42
|
-
"table--bold": "_table--bold_1swyh_146",
|
|
43
|
-
"table--strikethrough": "_table--strikethrough_1swyh_149",
|
|
44
|
-
"table--underlined": "_table--underlined_1swyh_152",
|
|
45
|
-
"table--strikethrough-underlined": "_table--strikethrough-underlined_1swyh_155",
|
|
46
|
-
button: L,
|
|
47
|
-
"button--bold": "_button--bold_1swyh_165",
|
|
48
|
-
"button--strikethrough": "_button--strikethrough_1swyh_168",
|
|
49
|
-
"button--underlined": "_button--underlined_1swyh_171",
|
|
50
|
-
"button--strikethrough-underlined": "_button--strikethrough-underlined_1swyh_174",
|
|
51
|
-
SM: R,
|
|
52
|
-
"SM--bold": "_SM--bold_1swyh_183",
|
|
53
|
-
"button--primary": "_button--primary_1swyh_199",
|
|
54
|
-
"button--secondary": "_button--secondary_1swyh_218",
|
|
55
|
-
"button--quick": "_button--quick_1swyh_235",
|
|
56
|
-
"button__loading-container": "_button__loading-container_1swyh_258"
|
|
57
|
-
}, G = m((n, h) => {
|
|
2
|
+
import { jsx as h, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d, useMemo as c } from "react";
|
|
4
|
+
import { c as m } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as x } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as f } from "../../Button-2b1peDFT.js";
|
|
7
|
+
const k = "_button_1h876_56", o = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1h876_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1h876_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1h876_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1h876_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_1h876_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_1h876_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_1h876_43",
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1h876_48",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_1h876_52",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_1h876_56",
|
|
18
|
+
button: k,
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_1h876_60",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_1h876_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1h876_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1h876_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1h876_73",
|
|
24
|
+
"button--primary": "_button--primary_1h876_86",
|
|
25
|
+
"button--secondary": "_button--secondary_1h876_105",
|
|
26
|
+
"button--quick": "_button--quick_1h876_122",
|
|
27
|
+
"button__loading-container": "_button__loading-container_1h876_145"
|
|
28
|
+
}, P = d((p, y) => {
|
|
58
29
|
const {
|
|
59
|
-
onClick:
|
|
60
|
-
link:
|
|
61
|
-
loading:
|
|
62
|
-
children:
|
|
63
|
-
type:
|
|
64
|
-
disabled:
|
|
65
|
-
className:
|
|
66
|
-
variant:
|
|
67
|
-
muiButtonBaseProps:
|
|
68
|
-
} =
|
|
69
|
-
invert:
|
|
70
|
-
},
|
|
71
|
-
() =>
|
|
72
|
-
[
|
|
30
|
+
onClick: _,
|
|
31
|
+
link: u,
|
|
32
|
+
loading: n,
|
|
33
|
+
children: a,
|
|
34
|
+
type: e = "button",
|
|
35
|
+
disabled: s,
|
|
36
|
+
className: r,
|
|
37
|
+
variant: t = "primary",
|
|
38
|
+
muiButtonBaseProps: g
|
|
39
|
+
} = p, i = {
|
|
40
|
+
invert: t === "secondary" || t === "quick"
|
|
41
|
+
}, b = c(
|
|
42
|
+
() => m([o.button, o[`button--${t}`], r]),
|
|
43
|
+
[r, t]
|
|
73
44
|
);
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
|
|
45
|
+
return /* @__PURE__ */ h(
|
|
46
|
+
f,
|
|
76
47
|
{
|
|
77
|
-
type:
|
|
78
|
-
href:
|
|
79
|
-
onClick:
|
|
80
|
-
disabled:
|
|
81
|
-
className:
|
|
82
|
-
ref:
|
|
83
|
-
...
|
|
84
|
-
children:
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
] }) :
|
|
48
|
+
type: e,
|
|
49
|
+
href: u,
|
|
50
|
+
onClick: _,
|
|
51
|
+
disabled: s,
|
|
52
|
+
className: b,
|
|
53
|
+
ref: y,
|
|
54
|
+
...g ?? {},
|
|
55
|
+
children: n ? /* @__PURE__ */ l("div", { className: o["button__loading-container"], children: [
|
|
56
|
+
/* @__PURE__ */ h(x, { ...i }),
|
|
57
|
+
a
|
|
58
|
+
] }) : a
|
|
88
59
|
}
|
|
89
60
|
);
|
|
90
61
|
});
|
|
91
62
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
63
|
+
P as Button,
|
|
64
|
+
P as default
|
|
94
65
|
};
|
|
@@ -1,54 +1,69 @@
|
|
|
1
1
|
import '../../assets/Checkbox.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
"
|
|
2
|
+
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { useState as k, useEffect as i } from "react";
|
|
5
|
+
import { c as s } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
const N = (a) => /* @__PURE__ */ o.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.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" })), z = "_label_18hen_64", E = "_checkmark_18hen_93", e = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_18hen_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_18hen_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_18hen_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_18hen_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_18hen_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_18hen_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_18hen_43",
|
|
14
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_18hen_48",
|
|
15
|
+
"u-typography-base--xl": "_u-typography-base--xl_18hen_52",
|
|
16
|
+
"u-typography-base--lg": "_u-typography-base--lg_18hen_56",
|
|
17
|
+
"u-typography-base--sm": "_u-typography-base--sm_18hen_60",
|
|
18
|
+
"u-typography-base--bold": "_u-typography-base--bold_18hen_64",
|
|
19
|
+
"checkbox-wrapper": "_checkbox-wrapper_18hen_64",
|
|
20
|
+
"label--highlighted": "_label--highlighted_18hen_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_18hen_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_18hen_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18hen_73",
|
|
8
24
|
label: z,
|
|
9
|
-
"label--highlighted": "_label--
|
|
10
|
-
"label--highlighted-checked": "_label--highlighted-checked_1aw5t_17",
|
|
25
|
+
"label--highlighted-checked": "_label--highlighted-checked_18hen_90",
|
|
11
26
|
checkmark: E,
|
|
12
|
-
"checkmark--checked": "_checkmark--
|
|
13
|
-
"checkmark--light-theme": "_checkmark--light-
|
|
14
|
-
"checkmark--accent-theme": "_checkmark--accent-
|
|
15
|
-
"checkmark--small-size": "_checkmark--small-
|
|
16
|
-
"checkmark--normal-size": "_checkmark--normal-
|
|
17
|
-
}, F = (a) => /* @__PURE__ */
|
|
27
|
+
"checkmark--checked": "_checkmark--checked_18hen_105",
|
|
28
|
+
"checkmark--light-theme": "_checkmark--light-theme_18hen_108",
|
|
29
|
+
"checkmark--accent-theme": "_checkmark--accent-theme_18hen_115",
|
|
30
|
+
"checkmark--small-size": "_checkmark--small-size_18hen_122",
|
|
31
|
+
"checkmark--normal-size": "_checkmark--normal-size_18hen_129"
|
|
32
|
+
}, F = (a) => /* @__PURE__ */ o.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), M = ({
|
|
18
33
|
className: a,
|
|
19
|
-
label:
|
|
20
|
-
name:
|
|
21
|
-
theme:
|
|
22
|
-
size:
|
|
23
|
-
checked:
|
|
24
|
-
onChange:
|
|
25
|
-
isIndeterminate:
|
|
26
|
-
highlightLabel:
|
|
27
|
-
...
|
|
34
|
+
label: n,
|
|
35
|
+
name: m,
|
|
36
|
+
theme: u = "accent",
|
|
37
|
+
size: b = "normal",
|
|
38
|
+
checked: r,
|
|
39
|
+
onChange: d,
|
|
40
|
+
isIndeterminate: l,
|
|
41
|
+
highlightLabel: x = !1,
|
|
42
|
+
...p
|
|
28
43
|
}) => {
|
|
29
|
-
const [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, [
|
|
33
|
-
typeof
|
|
34
|
-
}, [
|
|
35
|
-
const
|
|
44
|
+
const [h, g] = k(r), [t, y] = k(l);
|
|
45
|
+
i(() => {
|
|
46
|
+
r !== h && g(r);
|
|
47
|
+
}, [r]), i(() => {
|
|
48
|
+
typeof l == "boolean" && y(l);
|
|
49
|
+
}, [l]);
|
|
50
|
+
const C = s(e["checkbox-wrapper"], a), f = s(
|
|
36
51
|
e.checkmark,
|
|
37
|
-
e[`checkmark--${
|
|
38
|
-
e[`checkmark--${
|
|
39
|
-
(
|
|
40
|
-
),
|
|
52
|
+
e[`checkmark--${u}-theme`],
|
|
53
|
+
e[`checkmark--${b}-size`],
|
|
54
|
+
(h || t) && e["checkmark--checked"]
|
|
55
|
+
), w = x && (p.children || n) ? s(
|
|
41
56
|
e.label,
|
|
42
57
|
e["label--highlighted"],
|
|
43
|
-
(
|
|
58
|
+
(h || t) && e["label--highlighted-checked"]
|
|
44
59
|
) : e.label;
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
let
|
|
47
|
-
t && (
|
|
48
|
-
}, ...
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ v("div", { className: C, onClick: () => {
|
|
61
|
+
let _ = !h;
|
|
62
|
+
t && (y(!1), _ = !0), d(_), g(_);
|
|
63
|
+
}, ...p, children: [
|
|
64
|
+
/* @__PURE__ */ c("input", { name: m, type: "checkbox", checked: !t && h, readOnly: !0 }),
|
|
65
|
+
/* @__PURE__ */ c("span", { className: f, children: t ? /* @__PURE__ */ c(F, {}) : h && /* @__PURE__ */ c(N, {}) }),
|
|
66
|
+
/* @__PURE__ */ c("label", { className: w, children: p.children || n })
|
|
52
67
|
] });
|
|
53
68
|
};
|
|
54
69
|
export {
|
|
@@ -1,137 +1,107 @@
|
|
|
1
1
|
import '../../assets/Chip.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { Icon as
|
|
2
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d, cloneElement as m } from "react";
|
|
4
|
+
import { c as l } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { Icon as g } from "../Icon/Icon.js";
|
|
6
6
|
import "../Button/Button.js";
|
|
7
7
|
import "../Dialog/Backdrop.js";
|
|
8
8
|
import "../Typography/Typography.js";
|
|
9
9
|
import "../IconButton/IconButton.js";
|
|
10
10
|
import "../Select/Select.js";
|
|
11
|
-
import { Skeleton as
|
|
11
|
+
import { Skeleton as b } from "../Skeleton/Skeleton.js";
|
|
12
12
|
import "../Table/Table.js";
|
|
13
13
|
import "../Tabs/Tabs.js";
|
|
14
|
-
import { B as
|
|
15
|
-
const
|
|
16
|
-
h1:
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"form--underlined": "_form--underlined_1hro6_124",
|
|
46
|
-
"form--strikethrough-underlined": "_form--strikethrough-underlined_1hro6_127",
|
|
47
|
-
table__header: A,
|
|
48
|
-
table__body: I,
|
|
49
|
-
"table__body--secondary": "_table__body--secondary_1hro6_141",
|
|
50
|
-
"table--bold": "_table--bold_1hro6_146",
|
|
51
|
-
"table--strikethrough": "_table--strikethrough_1hro6_149",
|
|
52
|
-
"table--underlined": "_table--underlined_1hro6_152",
|
|
53
|
-
"table--strikethrough-underlined": "_table--strikethrough-underlined_1hro6_155",
|
|
54
|
-
button: T,
|
|
55
|
-
"button--bold": "_button--bold_1hro6_165",
|
|
56
|
-
"button--strikethrough": "_button--strikethrough_1hro6_168",
|
|
57
|
-
"button--underlined": "_button--underlined_1hro6_171",
|
|
58
|
-
"button--strikethrough-underlined": "_button--strikethrough-underlined_1hro6_174",
|
|
59
|
-
SM: j,
|
|
60
|
-
chip: B,
|
|
61
|
-
"SM--bold": "_SM--bold_1hro6_183",
|
|
62
|
-
"chip--button": "_chip--button_1hro6_199",
|
|
63
|
-
"chip--outlined": "_chip--outlined_1hro6_212",
|
|
64
|
-
"chip--contained": "_chip--contained_1hro6_218",
|
|
65
|
-
chip__adornment: E,
|
|
66
|
-
chip__remove: P,
|
|
67
|
-
"chip__remove--disabled": "_chip__remove--disabled_1hro6_240"
|
|
68
|
-
}, z = u((o, _) => {
|
|
69
|
-
const { children: d, onClickContent: h, disabled: l, className: n, variant: a } = o;
|
|
70
|
-
let r = s(
|
|
71
|
-
e.chip,
|
|
72
|
-
{ [e["chip--outlined"]]: a === "outlined" },
|
|
73
|
-
{ [e["chip--contained"]]: a === "contained" },
|
|
74
|
-
n
|
|
14
|
+
import { B as j } from "../../Button-2b1peDFT.js";
|
|
15
|
+
const f = "_chip_1j9h1_60", x = "_chip__adornment_1j9h1_114", k = "_chip__remove_1j9h1_119", r = {
|
|
16
|
+
"u-typography-h1": "_u-typography-h1_1j9h1_1",
|
|
17
|
+
"u-typography-h2": "_u-typography-h2_1j9h1_8",
|
|
18
|
+
"u-typography-h3": "_u-typography-h3_1j9h1_15",
|
|
19
|
+
"u-typography-h4": "_u-typography-h4_1j9h1_22",
|
|
20
|
+
"u-typography-h5": "_u-typography-h5_1j9h1_29",
|
|
21
|
+
"u-typography-h6": "_u-typography-h6_1j9h1_36",
|
|
22
|
+
"u-typography-base": "_u-typography-base_1j9h1_43",
|
|
23
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1j9h1_48",
|
|
24
|
+
"u-typography-base--xl": "_u-typography-base--xl_1j9h1_52",
|
|
25
|
+
"u-typography-base--lg": "_u-typography-base--lg_1j9h1_56",
|
|
26
|
+
"u-typography-base--sm": "_u-typography-base--sm_1j9h1_60",
|
|
27
|
+
chip: f,
|
|
28
|
+
"u-typography-base--bold": "_u-typography-base--bold_1j9h1_64",
|
|
29
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1j9h1_67",
|
|
30
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1j9h1_70",
|
|
31
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1j9h1_73",
|
|
32
|
+
"chip--button": "_chip--button_1j9h1_89",
|
|
33
|
+
"chip--outlined": "_chip--outlined_1j9h1_102",
|
|
34
|
+
"chip--contained": "_chip--contained_1j9h1_108",
|
|
35
|
+
chip__adornment: x,
|
|
36
|
+
chip__remove: k,
|
|
37
|
+
"chip__remove--disabled": "_chip__remove--disabled_1j9h1_130"
|
|
38
|
+
}, C = d((t, o) => {
|
|
39
|
+
const { children: h, onClickContent: p, disabled: _, className: i, variant: n } = t;
|
|
40
|
+
let a = l(
|
|
41
|
+
r.chip,
|
|
42
|
+
{ [r["chip--outlined"]]: n === "outlined" },
|
|
43
|
+
{ [r["chip--contained"]]: n === "contained" },
|
|
44
|
+
i
|
|
75
45
|
);
|
|
76
|
-
return
|
|
77
|
-
|
|
46
|
+
return p ? (a += ` ${r["chip--button"]}`, /* @__PURE__ */ e(
|
|
47
|
+
j,
|
|
78
48
|
{
|
|
79
|
-
onClick:
|
|
80
|
-
disabled:
|
|
81
|
-
"data-testid":
|
|
82
|
-
ref:
|
|
83
|
-
className:
|
|
84
|
-
children:
|
|
49
|
+
onClick: p,
|
|
50
|
+
disabled: _,
|
|
51
|
+
"data-testid": t["data-testid"],
|
|
52
|
+
ref: o,
|
|
53
|
+
className: a,
|
|
54
|
+
children: h
|
|
85
55
|
}
|
|
86
|
-
)) : /* @__PURE__ */
|
|
87
|
-
}),
|
|
88
|
-
const { icon:
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
return /* @__PURE__ */
|
|
56
|
+
)) : /* @__PURE__ */ e("span", { "data-testid": t["data-testid"], ref: o, className: a, children: h });
|
|
57
|
+
}), N = (t) => {
|
|
58
|
+
const { icon: o, disabled: h = !1, className: p } = t;
|
|
59
|
+
if (o) {
|
|
60
|
+
const _ = l(r.chip__adornment, p), i = h ? m(o, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : o;
|
|
61
|
+
return /* @__PURE__ */ e("span", { className: _, children: i });
|
|
92
62
|
}
|
|
93
63
|
return null;
|
|
94
|
-
},
|
|
64
|
+
}, $ = d((t, o) => {
|
|
95
65
|
const {
|
|
96
|
-
label:
|
|
97
|
-
className:
|
|
98
|
-
onClickContent:
|
|
99
|
-
leftAdornment:
|
|
100
|
-
loading:
|
|
101
|
-
disabled:
|
|
102
|
-
variant:
|
|
103
|
-
onClickRemove:
|
|
104
|
-
} =
|
|
105
|
-
return
|
|
106
|
-
|
|
66
|
+
label: h,
|
|
67
|
+
className: p,
|
|
68
|
+
onClickContent: _,
|
|
69
|
+
leftAdornment: i,
|
|
70
|
+
loading: n = !1,
|
|
71
|
+
disabled: a = !1,
|
|
72
|
+
variant: y = "default",
|
|
73
|
+
onClickRemove: c
|
|
74
|
+
} = t;
|
|
75
|
+
return n ? /* @__PURE__ */ e(
|
|
76
|
+
b,
|
|
107
77
|
{
|
|
108
78
|
style: { width: "6rem", height: "2rem", borderRadius: "4rem", display: "inline-flex" },
|
|
109
|
-
"data-testid":
|
|
79
|
+
"data-testid": t["data-testid-skeleton"]
|
|
110
80
|
}
|
|
111
|
-
) : /* @__PURE__ */
|
|
112
|
-
|
|
81
|
+
) : /* @__PURE__ */ u(
|
|
82
|
+
C,
|
|
113
83
|
{
|
|
114
|
-
ref:
|
|
115
|
-
"data-testid":
|
|
116
|
-
onClickContent:
|
|
117
|
-
disabled:
|
|
118
|
-
className:
|
|
119
|
-
variant:
|
|
84
|
+
ref: o,
|
|
85
|
+
"data-testid": t["data-testid"],
|
|
86
|
+
onClickContent: _,
|
|
87
|
+
disabled: a,
|
|
88
|
+
className: p,
|
|
89
|
+
variant: y,
|
|
120
90
|
children: [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
91
|
+
i && /* @__PURE__ */ e(N, { ...i, disabled: a }),
|
|
92
|
+
h,
|
|
93
|
+
c && /* @__PURE__ */ e(
|
|
124
94
|
"span",
|
|
125
95
|
{
|
|
126
|
-
className:
|
|
96
|
+
className: l(r.chip__remove, { [r["chip__remove--disabled"]]: a }),
|
|
127
97
|
role: "button",
|
|
128
|
-
tabIndex:
|
|
98
|
+
tabIndex: a ? -1 : 0,
|
|
129
99
|
"aria-label": "remove",
|
|
130
|
-
onClick: (
|
|
131
|
-
|
|
100
|
+
onClick: (s) => {
|
|
101
|
+
s == null || s.stopPropagation(), s == null || s.nativeEvent.stopImmediatePropagation(), c();
|
|
132
102
|
},
|
|
133
|
-
"aria-disabled":
|
|
134
|
-
children: /* @__PURE__ */
|
|
103
|
+
"aria-disabled": a,
|
|
104
|
+
children: /* @__PURE__ */ e(g, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
|
|
135
105
|
}
|
|
136
106
|
)
|
|
137
107
|
]
|
|
@@ -139,5 +109,5 @@ const k = "_h1_1hro6_1", q = "_h2_1hro6_11", C = "_h3_1hro6_21", x = "_h4_1hro6_
|
|
|
139
109
|
);
|
|
140
110
|
});
|
|
141
111
|
export {
|
|
142
|
-
|
|
112
|
+
$ as Chip
|
|
143
113
|
};
|
|
@@ -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-DFEmFdYT.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-DFEmFdYT.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-DFEmFdYT.js";
|
|
4
4
|
import { B as a } from "../../Button-2b1peDFT.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,8 +3,8 @@ import { default as $e } from "./Actions.js";
|
|
|
3
3
|
import oe from "./Backdrop.js";
|
|
4
4
|
import re from "./CloseIconButton.js";
|
|
5
5
|
import { default as ze } from "./Content.js";
|
|
6
|
-
import { s as q } from "../../Dialog.module-
|
|
7
|
-
import se from "./
|
|
6
|
+
import { s as q } from "../../Dialog.module-DFEmFdYT.js";
|
|
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 "../../index-CH45lKw7.js";
|
|
9
9
|
import * as f from "react";
|
|
10
10
|
import { o as w, e as ee, u as G } from "../../useEventCallback-xTG9piMa.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface DialogTitleProps {
|
|
4
4
|
/** title to be displayed */
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
/** subtitle to be displayed */
|
|
7
7
|
subTitle?: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
/** internal component only - used by the dialog */
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const DialogTitle: ({ title, subTitle }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default DialogTitle;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as r } from "../Typography/Typography.js";
|
|
3
|
+
import { s as a } from "../../Dialog.module-DFEmFdYT.js";
|
|
4
|
+
const n = ({ title: t, subTitle: i }) => /* @__PURE__ */ l(o, { children: [
|
|
5
|
+
/* @__PURE__ */ e(
|
|
6
|
+
r,
|
|
7
|
+
{
|
|
8
|
+
element: "h1",
|
|
9
|
+
elementProps: { id: "alert-dialog-title" },
|
|
10
|
+
variant: "h4",
|
|
11
|
+
className: a.dialog__title,
|
|
12
|
+
children: t
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ e("hr", { className: a.dialog__divider, "aria-hidden": !0 }),
|
|
16
|
+
i && /* @__PURE__ */ e(
|
|
17
|
+
r,
|
|
18
|
+
{
|
|
19
|
+
element: "h2",
|
|
20
|
+
elementProps: { id: "alert-dialog-description" },
|
|
21
|
+
variant: "h4",
|
|
22
|
+
className: a.dialog__subtitle,
|
|
23
|
+
children: i
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] });
|
|
27
|
+
export {
|
|
28
|
+
n as default
|
|
29
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const FamilyAndIcons: {
|
|
2
|
-
readonly 'fa/duotone': readonly ["arrow-down-arrow-up", "calendar-days", "circle-arrow-right", "circle-exclamation", "circle-xmark", "eye-slash", "folder-magnifying-glass", "lock-keyhole", "magnifying-glass", "xmark"];
|
|
2
|
+
readonly 'fa/duotone': readonly ["arrow-down-arrow-up", "calendar-days", "circle-arrow-right", "circle-exclamation", "circle-xmark", "eye-slash", "folder-magnifying-glass", "lock-keyhole", "magnifying-glass", "xmark", "warehouse-full", "rectangle-history", "account-group"];
|
|
3
3
|
readonly pi: readonly ["logo"];
|
|
4
4
|
};
|
|
5
5
|
export type IconFamilies = keyof typeof FamilyAndIcons;
|