@pismo/marola 0.0.1-alpha.15 → 0.0.1-alpha.17
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/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
- package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
- package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
- package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
- package/dist/SelectButton-DWZ2BRaX.js +44 -0
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +51 -51
- package/dist/components/InputSearch/InputSearch.js +7 -7
- package/dist/components/PageHeader/PageHeader.js +23 -23
- package/dist/components/Select/Select.d.ts +9 -8
- package/dist/components/Select/Select.js +158 -160
- package/dist/components/Select/Select.stories.d.ts +10 -19
- package/dist/components/Select/SelectButton.d.ts +3 -4
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Snackbar/Snackbar.js +4 -4
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
- package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
- package/dist/main.d.ts +4 -1
- package/dist/main.js +19 -19
- package/dist/marola.css +1 -0
- package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
- package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
- package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
- package/package.json +2 -2
- package/dist/SelectButton-DWtqAiwt.js +0 -45
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/components/Advice/Advice.stories.js +0 -48
- package/dist/components/Button/Button.stories.js +0 -40
- package/dist/components/Chip/Chip.stories.js +0 -59
- package/dist/components/Chip/chip.test.js +0 -17303
- package/dist/components/Dialog/Dialog.stories.js +0 -59
- package/dist/components/Input/Input.stories.js +0 -106
- package/dist/components/InputSearch/InputSearch.stories.js +0 -73
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
- package/dist/components/PageHeader/PageHeader.stories.js +0 -49
- package/dist/components/Select/Select.stories.js +0 -65
- package/dist/components/Snackbar/Snackbar.stories.js +0 -62
- package/dist/components/Toggle/Toggle.stories.js +0 -33
- package/dist/components/Typography/Typography.stories.js +0 -30
- package/dist/components/Typography/typography.test.js +0 -234
- package/dist/magic-string.es-O_8lTkE3.js +0 -738
- package/dist/react.esm-DGd9_oKA.js +0 -11126
- package/dist/utils/styleStrings.test.js +0 -41
- package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import '../../assets/PageHeader.css';
|
|
2
2
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as n } from "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import * as _ from "react";
|
|
5
|
-
const
|
|
5
|
+
const w = (c) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", "data-waves-icon": "fa/solid/arrow-left", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
6
6
|
fill: "currentcolor",
|
|
7
7
|
color: "currentcolor",
|
|
8
8
|
width: "1em",
|
|
9
9
|
height: "1em"
|
|
10
|
-
}, ...
|
|
11
|
-
"page-header": "_page-
|
|
12
|
-
"page-header__top-content": "_page-header__top-
|
|
13
|
-
"page-header__main-content": "_page-header__main-
|
|
14
|
-
"page-header__bottom-content": "_page-header__bottom-
|
|
15
|
-
"page-header__main-left-content": "_page-header__main-left-
|
|
10
|
+
}, ...c }, /* @__PURE__ */ _.createElement("path", { d: "M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z" })), b = "_title_fxc86_47", N = "_subtitle_fxc86_48", e = {
|
|
11
|
+
"page-header": "_page-header_fxc86_1",
|
|
12
|
+
"page-header__top-content": "_page-header__top-content_fxc86_10",
|
|
13
|
+
"page-header__main-content": "_page-header__main-content_fxc86_13",
|
|
14
|
+
"page-header__bottom-content": "_page-header__bottom-content_fxc86_13",
|
|
15
|
+
"page-header__main-left-content": "_page-header__main-left-content_fxc86_41",
|
|
16
16
|
title: b,
|
|
17
|
-
subtitle:
|
|
18
|
-
"page-header__main-right-content": "_page-header__main-right-
|
|
19
|
-
},
|
|
20
|
-
title:
|
|
17
|
+
subtitle: N,
|
|
18
|
+
"page-header__main-right-content": "_page-header__main-right-content_fxc86_65"
|
|
19
|
+
}, H = ({
|
|
20
|
+
title: c,
|
|
21
21
|
subtitle: d,
|
|
22
|
-
backLinkText:
|
|
22
|
+
backLinkText: r,
|
|
23
23
|
onBackLinkClick: s,
|
|
24
24
|
rightChildren: i,
|
|
25
25
|
bottomChildren: o,
|
|
@@ -29,23 +29,23 @@ const z = (n) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.
|
|
|
29
29
|
classNameSubtitle: p,
|
|
30
30
|
"data-testid-wrapper": g,
|
|
31
31
|
"data-testid-backLink": f,
|
|
32
|
-
"data-testid-title":
|
|
33
|
-
"data-testid-subtitle":
|
|
34
|
-
...
|
|
35
|
-
}) => /* @__PURE__ */ a("div", { className:
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */ t(
|
|
38
|
-
|
|
32
|
+
"data-testid-title": x,
|
|
33
|
+
"data-testid-subtitle": u,
|
|
34
|
+
...v
|
|
35
|
+
}) => /* @__PURE__ */ a("div", { className: n([e["page-header"], l]), "data-testid": g, ...v, children: [
|
|
36
|
+
r && /* @__PURE__ */ t("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("button", { type: "button", onClick: s, className: h, "data-testid": f, children: [
|
|
37
|
+
/* @__PURE__ */ t(w, { fontSize: 16 }),
|
|
38
|
+
r
|
|
39
39
|
] }) }),
|
|
40
40
|
/* @__PURE__ */ a("div", { className: e["page-header__main-content"], children: [
|
|
41
41
|
/* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: [
|
|
42
|
-
/* @__PURE__ */ t("h1", { className:
|
|
43
|
-
/* @__PURE__ */ t("h2", { className:
|
|
42
|
+
/* @__PURE__ */ t("h1", { className: n(e.title, m), "data-testid": x, children: c }),
|
|
43
|
+
/* @__PURE__ */ t("h2", { className: n(e.subtitle, p), "data-testid": u, children: d })
|
|
44
44
|
] }),
|
|
45
45
|
i && /* @__PURE__ */ t("div", { className: e["page-header__main-right-content"], children: i })
|
|
46
46
|
] }),
|
|
47
47
|
o && /* @__PURE__ */ t("div", { className: e["page-header__bottom-content"], children: o })
|
|
48
48
|
] });
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
H as PageHeader
|
|
51
51
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type SelectOptionProps = {
|
|
3
|
+
export type SelectOptionProps = {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
value: string
|
|
5
|
+
value: string;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
icon?: ReactNode;
|
|
8
8
|
className?: string;
|
|
9
9
|
'data-testid'?: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export declare const SelectOption: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type SelectProps = {
|
|
13
|
+
children?: ReactNode;
|
|
13
14
|
disabled?: boolean;
|
|
14
|
-
placeholder?: string
|
|
15
|
-
|
|
16
|
-
onChange?: (value: number | string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
prefix?: string;
|
|
17
17
|
className?: string;
|
|
18
|
+
value?: string;
|
|
18
19
|
'data-testid'?: string;
|
|
20
|
+
onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
19
21
|
};
|
|
20
|
-
export declare const Option: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
declare const Select: {
|
|
22
23
|
(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
Option: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|