@pismo/marola 0.0.1-alpha.11 → 0.0.1-alpha.13
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/README.md +1 -1
- package/dist/{ClickAwayListener-BKznXF1d.js → ClickAwayListener-HI1G6ob9.js} +2 -1
- package/dist/Popup-DFJQc_jn.js +1249 -0
- package/dist/{Portal-BcdMtRGF.js → Portal-D__zvwbZ.js} +1 -1
- package/dist/SelectButton-DWtqAiwt.js +45 -0
- package/dist/Tabs.module-jkH1Qjn7.js +22 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Chip.css +1 -0
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/SelectButton.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/combineHooksSlotProps-BHqhiBfc.js +81 -0
- package/dist/components/Button/Button.d.ts +5 -2
- package/dist/components/Button/Button.js +87 -63
- package/dist/components/Button/Button.stories.d.ts +2 -0
- package/dist/components/Button/Button.stories.js +8 -8
- package/dist/components/Chip/Chip.d.ts +37 -0
- package/dist/components/Chip/Chip.js +143 -0
- package/dist/components/Chip/Chip.stories.d.ts +40 -0
- package/dist/components/Chip/Chip.stories.js +59 -0
- package/dist/components/Chip/chip.test.d.ts +1 -0
- package/dist/components/Chip/chip.test.js +17303 -0
- package/dist/components/Dialog/Dialog.js +13 -12
- package/dist/components/Dialog/Dialog.stories.d.ts +3 -3
- package/dist/components/Dialog/Dialog.stories.js +9 -9
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +27 -20
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/IconButton/IconButton.js +63 -61
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +32 -32
- package/dist/components/InputSearch/InputSearch.d.ts +7 -9
- package/dist/components/InputSearch/InputSearch.js +31 -26
- package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -4
- package/dist/components/InputSearch/InputSearch.stories.js +55 -18
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +6 -6
- package/dist/components/PageHeader/PageHeader.stories.js +3 -3
- package/dist/components/Select/Select.d.ts +25 -0
- package/dist/components/Select/Select.js +860 -0
- package/dist/components/Select/Select.stories.d.ts +31 -0
- package/dist/components/Select/Select.stories.js +65 -0
- package/dist/components/Select/SelectButton.d.ts +13 -0
- package/dist/components/Select/SelectButton.js +8 -0
- package/dist/components/Snackbar/Snackbar.js +5 -4
- package/dist/components/Tabs/Tab.js +180 -6
- package/dist/components/Tabs/TabPanel.js +19 -18
- package/dist/components/Tabs/Tabs.js +237 -662
- package/dist/components/Tooltip/Tooltip.js +89 -1328
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +76 -74
- package/dist/components/Typography/Typography.stories.js +6 -6
- package/dist/components/Typography/typography.test.js +196 -11319
- package/dist/{index-BNWbc5Kh.js → index-BJ8HbRCy.js} +3109 -3152
- package/dist/main.d.ts +2 -0
- package/dist/main.js +57 -54
- package/dist/react.esm-DGd9_oKA.js +11126 -0
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-vAfOD-oT.js +45 -0
- package/dist/useList-ByMguSS_.js +437 -0
- package/dist/utils/styleStrings.test.js +1 -1
- package/dist/{vi.Y_w82WR8-Df0JUamG.js → vi.Y_w82WR8-XVYrIxgm.js} +2 -1
- package/package.json +1 -1
- package/dist/Tab-CRwnhsj5.js +0 -254
- package/dist/Tabs.module-yYcTJnj6.js +0 -103
- package/dist/assets/global.css +0 -1
|
@@ -9,7 +9,7 @@ export type TypographyProps = {
|
|
|
9
9
|
element?: ElementType;
|
|
10
10
|
/** Style to be visually displayed as */
|
|
11
11
|
variant?: VariantType;
|
|
12
|
-
/** Space
|
|
12
|
+
/** Space separated list of CSS classes to apply */
|
|
13
13
|
className?: string;
|
|
14
14
|
/** Whether to apply underline text decoration */
|
|
15
15
|
underline?: boolean;
|
|
@@ -1,81 +1,83 @@
|
|
|
1
1
|
import '../../assets/Typography.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { bemify as g, getBEMBase as
|
|
5
|
-
import { c as
|
|
6
|
-
const E = "
|
|
7
|
-
h1:
|
|
8
|
-
"h1--bold": "_h1--
|
|
9
|
-
h2:
|
|
10
|
-
"h2--bold": "_h2--
|
|
11
|
-
h3:
|
|
12
|
-
"h3--bold": "_h3--
|
|
13
|
-
h4:
|
|
14
|
-
"h4--bold": "_h4--
|
|
15
|
-
body:
|
|
16
|
-
"body--large": "_body--
|
|
17
|
-
"body--medium": "_body--
|
|
18
|
-
"body--small": "_body--
|
|
19
|
-
"body--tiny": "_body--
|
|
20
|
-
"body--bold": "_body--
|
|
21
|
-
"body--strikethrough": "_body--
|
|
22
|
-
"body--underlined": "_body--
|
|
23
|
-
"body--strikethrough-underlined": "_body--strikethrough-
|
|
24
|
-
quote:
|
|
25
|
-
"quote--large": "_quote--
|
|
26
|
-
"quote--bold": "_quote--
|
|
27
|
-
"quote--strikethrough": "_quote--
|
|
28
|
-
"quote--underlined": "_quote--
|
|
29
|
-
"quote--strikethrough-underlined": "_quote--strikethrough-
|
|
30
|
-
form__input:
|
|
31
|
-
form__hint:
|
|
32
|
-
form__label:
|
|
33
|
-
form__dropdown:
|
|
34
|
-
"form--bold": "_form--
|
|
35
|
-
"form--strikethrough": "_form--
|
|
36
|
-
"form--underlined": "_form--
|
|
37
|
-
"form--strikethrough-underlined": "_form--strikethrough-
|
|
38
|
-
table__header:
|
|
39
|
-
table__body:
|
|
40
|
-
"table__body--secondary": "_table__body--
|
|
41
|
-
"table--bold": "_table--
|
|
42
|
-
"table--strikethrough": "_table--
|
|
43
|
-
"table--underlined": "_table--
|
|
44
|
-
"table--strikethrough-underlined": "_table--strikethrough-
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f, useMemo as y } from "react";
|
|
4
|
+
import { bemify as g, getBEMBase as p, getBEMBlock as q } from "../../utils/styleStrings.js";
|
|
5
|
+
import { c as M } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
const B = "_h1_1elsk_1", E = "_h2_1elsk_11", S = "_h3_1elsk_21", $ = "_h4_1elsk_31", w = "_body_1elsk_41", v = "_quote_1elsk_75", x = "_form__input_1elsk_98", N = "_form__hint_1elsk_103", T = "_form__label_1elsk_108", j = "_form__dropdown_1elsk_113", P = "_table__header_1elsk_131", R = "_table__body_1elsk_136", U = "_button_1elsk_159", V = "_SM_1elsk_178", t = {
|
|
7
|
+
h1: B,
|
|
8
|
+
"h1--bold": "_h1--bold_1elsk_7",
|
|
9
|
+
h2: E,
|
|
10
|
+
"h2--bold": "_h2--bold_1elsk_17",
|
|
11
|
+
h3: S,
|
|
12
|
+
"h3--bold": "_h3--bold_1elsk_27",
|
|
13
|
+
h4: $,
|
|
14
|
+
"h4--bold": "_h4--bold_1elsk_37",
|
|
15
|
+
body: w,
|
|
16
|
+
"body--large": "_body--large_1elsk_46",
|
|
17
|
+
"body--medium": "_body--medium_1elsk_50",
|
|
18
|
+
"body--small": "_body--small_1elsk_54",
|
|
19
|
+
"body--tiny": "_body--tiny_1elsk_58",
|
|
20
|
+
"body--bold": "_body--bold_1elsk_62",
|
|
21
|
+
"body--strikethrough": "_body--strikethrough_1elsk_65",
|
|
22
|
+
"body--underlined": "_body--underlined_1elsk_68",
|
|
23
|
+
"body--strikethrough-underlined": "_body--strikethrough-underlined_1elsk_71",
|
|
24
|
+
quote: v,
|
|
25
|
+
"quote--large": "_quote--large_1elsk_80",
|
|
26
|
+
"quote--bold": "_quote--bold_1elsk_85",
|
|
27
|
+
"quote--strikethrough": "_quote--strikethrough_1elsk_88",
|
|
28
|
+
"quote--underlined": "_quote--underlined_1elsk_91",
|
|
29
|
+
"quote--strikethrough-underlined": "_quote--strikethrough-underlined_1elsk_94",
|
|
30
|
+
form__input: x,
|
|
31
|
+
form__hint: N,
|
|
32
|
+
form__label: T,
|
|
33
|
+
form__dropdown: j,
|
|
34
|
+
"form--bold": "_form--bold_1elsk_118",
|
|
35
|
+
"form--strikethrough": "_form--strikethrough_1elsk_121",
|
|
36
|
+
"form--underlined": "_form--underlined_1elsk_124",
|
|
37
|
+
"form--strikethrough-underlined": "_form--strikethrough-underlined_1elsk_127",
|
|
38
|
+
table__header: P,
|
|
39
|
+
table__body: R,
|
|
40
|
+
"table__body--secondary": "_table__body--secondary_1elsk_141",
|
|
41
|
+
"table--bold": "_table--bold_1elsk_146",
|
|
42
|
+
"table--strikethrough": "_table--strikethrough_1elsk_149",
|
|
43
|
+
"table--underlined": "_table--underlined_1elsk_152",
|
|
44
|
+
"table--strikethrough-underlined": "_table--strikethrough-underlined_1elsk_155",
|
|
45
45
|
button: U,
|
|
46
|
-
"button--bold": "_button--
|
|
47
|
-
"button--strikethrough": "_button--
|
|
48
|
-
"button--underlined": "_button--
|
|
49
|
-
"button--strikethrough-underlined": "_button--strikethrough-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
"button--bold": "_button--bold_1elsk_165",
|
|
47
|
+
"button--strikethrough": "_button--strikethrough_1elsk_168",
|
|
48
|
+
"button--underlined": "_button--underlined_1elsk_171",
|
|
49
|
+
"button--strikethrough-underlined": "_button--strikethrough-underlined_1elsk_174",
|
|
50
|
+
SM: V,
|
|
51
|
+
"SM--bold": "_SM--bold_1elsk_183"
|
|
52
|
+
}, W = ["form", "table"], z = (o) => {
|
|
53
|
+
const e = o.toString();
|
|
54
|
+
let _ = "body";
|
|
55
|
+
return e.match(/^h[1-4]/) ? _ = e : e.match(/^h[5-6]/) && (_ = "h4"), e === "th" && (_ = "table-header"), e === "td" && (_ = "table-body"), _;
|
|
56
|
+
}, G = f((o, e) => {
|
|
55
57
|
const {
|
|
56
|
-
children:
|
|
57
|
-
className:
|
|
58
|
-
underline:
|
|
59
|
-
element:
|
|
60
|
-
bold:
|
|
61
|
-
variant:
|
|
62
|
-
strikethrough:
|
|
63
|
-
elementProps:
|
|
64
|
-
} =
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
{ [
|
|
69
|
-
|
|
70
|
-
{ [
|
|
71
|
-
{ [
|
|
72
|
-
{ [
|
|
73
|
-
{ [
|
|
58
|
+
children: _,
|
|
59
|
+
className: n,
|
|
60
|
+
underline: d = !1,
|
|
61
|
+
element: b = "span",
|
|
62
|
+
bold: h = !1,
|
|
63
|
+
variant: u = z(b),
|
|
64
|
+
strikethrough: l = !1,
|
|
65
|
+
elementProps: k
|
|
66
|
+
} = o, a = b, m = y(() => {
|
|
67
|
+
const r = g(u, W), i = p(r), s = q(r);
|
|
68
|
+
return M(
|
|
69
|
+
t[i],
|
|
70
|
+
{ [t[`${r}`]]: r !== i },
|
|
71
|
+
n,
|
|
72
|
+
{ [t[`${s}--bold`]]: h },
|
|
73
|
+
{ [t[`${s}--underlined`]]: d },
|
|
74
|
+
{ [t[`${s}--strikethrough`]]: l },
|
|
75
|
+
{ [t[`${s}--strikethrough-underlined`]]: l && l && d }
|
|
74
76
|
);
|
|
75
|
-
}, [
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
+
}, [h, n, l, d, u]);
|
|
78
|
+
return /* @__PURE__ */ c(a, { ref: e, "data-testid": o["data-testid"], ...k ?? {}, className: m, children: _ });
|
|
77
79
|
});
|
|
78
80
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
G as Typography,
|
|
82
|
+
G as default
|
|
81
83
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import '../../assets/global.css';
|
|
2
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
2
|
+
import "../Chip/Chip.js";
|
|
4
3
|
import "../Button/Button.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import "../Dialog/Backdrop.js";
|
|
7
6
|
import { Typography as p } from "./Typography.js";
|
|
8
7
|
import "../IconButton/IconButton.js";
|
|
8
|
+
import "../Select/Select.js";
|
|
9
9
|
import "../Table/Table.js";
|
|
10
10
|
import "../Tabs/Tabs.js";
|
|
11
|
-
const
|
|
11
|
+
const d = {
|
|
12
12
|
title: "Components/Typography",
|
|
13
13
|
component: p,
|
|
14
14
|
tags: ["autodocs"],
|
|
@@ -21,10 +21,10 @@ const c = {
|
|
|
21
21
|
decorators: [
|
|
22
22
|
(o) => /* @__PURE__ */ t("div", { style: { margin: "1em" }, children: /* @__PURE__ */ t(o, {}) })
|
|
23
23
|
]
|
|
24
|
-
},
|
|
24
|
+
}, y = {
|
|
25
25
|
args: { children: "Example text" }
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
y as Simple,
|
|
29
|
+
d as default
|
|
30
30
|
};
|