@pismo/marola 1.1.12 → 1.1.14
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/Tabs.module-ia-imLti.js +25 -0
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/components/Autocomplete/Autocomplete.js +263 -266
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Badge/Badge.js +21 -21
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Tabs/Tab.js +1 -1
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/package.json +1 -1
- package/dist/Tabs.module-BNRwj3Z0.js +0 -25
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: <T extends string | object>({ labelKey, valueKey, options, type, value, onChange, onInputChange, "data-testid-wrapper": dataTestId, ...props }: import('./Autocomplete.tsx').AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: <T extends string | object>({ labelKey, valueKey, options, type, value, onChange, onInputChange, classNameWrapper, "data-testid-wrapper": dataTestId, classNameInputWrapper, ...props }: import('./Autocomplete.tsx').AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as l } from "react";
|
|
3
3
|
import { c as t } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import '../../assets/Badge.css';const
|
|
5
|
-
"badge-root": "_badge-
|
|
6
|
-
badge:
|
|
7
|
-
"badge--red": "_badge--
|
|
8
|
-
"badge--green": "_badge--
|
|
9
|
-
"badge--blue": "_badge--
|
|
10
|
-
"badge--blueInvert": "_badge--
|
|
11
|
-
"badge--gray": "_badge--
|
|
12
|
-
"badge--basic": "_badge--
|
|
13
|
-
"badge--double": "_badge--
|
|
14
|
-
"badge--triple": "_badge--
|
|
15
|
-
"badge--medium": "_badge--
|
|
16
|
-
}, p = ({ count:
|
|
17
|
-
const
|
|
4
|
+
import '../../assets/Badge.css';const f = "_badge_40fsi_1", e = {
|
|
5
|
+
"badge-root": "_badge-root_40fsi_1",
|
|
6
|
+
badge: f,
|
|
7
|
+
"badge--red": "_badge--red_40fsi_31",
|
|
8
|
+
"badge--green": "_badge--green_40fsi_34",
|
|
9
|
+
"badge--blue": "_badge--blue_40fsi_37",
|
|
10
|
+
"badge--blueInvert": "_badge--blueInvert_40fsi_40",
|
|
11
|
+
"badge--gray": "_badge--gray_40fsi_44",
|
|
12
|
+
"badge--basic": "_badge--basic_40fsi_48",
|
|
13
|
+
"badge--double": "_badge--double_40fsi_54",
|
|
14
|
+
"badge--triple": "_badge--triple_40fsi_58",
|
|
15
|
+
"badge--medium": "_badge--medium_40fsi_62"
|
|
16
|
+
}, p = ({ count: d, children: _, variant: a, size: b, className: g }) => {
|
|
17
|
+
const s = d > 99 ? "triple" : d > 9 ? "double" : "single", i = l(
|
|
18
18
|
() => t([
|
|
19
19
|
e.badge,
|
|
20
|
-
e[`badge--${
|
|
20
|
+
e[`badge--${a}`],
|
|
21
21
|
e[`badge--${b}`],
|
|
22
|
-
e[`badge--${
|
|
22
|
+
e[`badge--${s}`],
|
|
23
23
|
g
|
|
24
24
|
]),
|
|
25
|
-
[g,
|
|
25
|
+
[g, a, b, s]
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */ o("span", { className:
|
|
27
|
+
return /* @__PURE__ */ r("span", { className: e["badge-root"], children: [
|
|
28
|
+
_,
|
|
29
|
+
/* @__PURE__ */ o("span", { className: i, children: d > 999 ? "999+" : d })
|
|
30
30
|
] });
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as I } from "react";
|
|
3
3
|
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import { Icon as P } from "../Icon/Icon.js";
|
|
5
5
|
import { IconButton as $ } from "../IconButton/IconButton.js";
|
|
6
6
|
import { Text as m } from "../Typography/Typography.js";
|
|
7
7
|
import '../../assets/PageHeader.css';const a = {
|
|
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
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
20
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
21
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
22
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
23
|
-
"page-header": "_page-
|
|
24
|
-
"page-header__main-content": "_page-header__main-
|
|
25
|
-
"page-header__bottom-content": "_page-header__bottom-
|
|
26
|
-
"page-header__breadcrumb": "_page-
|
|
27
|
-
"page-header__breadcrumb__separator": "_page-
|
|
28
|
-
"page-header__right-children-wrapper": "_page-header__right-children-
|
|
29
|
-
"header-bubble": "_header-
|
|
30
|
-
"header-bubble--container": "_header-bubble--
|
|
31
|
-
"header-bubble--container--full": "_header-bubble--container--
|
|
32
|
-
"header-bubble-margin": "_header-bubble-
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1oa3o_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1oa3o_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1oa3o_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1oa3o_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_1oa3o_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_1oa3o_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_1oa3o_43",
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1oa3o_49",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_1oa3o_53",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_1oa3o_57",
|
|
18
|
+
"u-typography-base--sm": "_u-typography-base--sm_1oa3o_61",
|
|
19
|
+
"u-typography-base--bold": "_u-typography-base--bold_1oa3o_65",
|
|
20
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1oa3o_68",
|
|
21
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1oa3o_71",
|
|
22
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1oa3o_74",
|
|
23
|
+
"page-header": "_page-header_1oa3o_78",
|
|
24
|
+
"page-header__main-content": "_page-header__main-content_1oa3o_83",
|
|
25
|
+
"page-header__bottom-content": "_page-header__bottom-content_1oa3o_90",
|
|
26
|
+
"page-header__breadcrumb": "_page-header__breadcrumb_1oa3o_95",
|
|
27
|
+
"page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_1oa3o_123",
|
|
28
|
+
"page-header__right-children-wrapper": "_page-header__right-children-wrapper_1oa3o_129",
|
|
29
|
+
"header-bubble": "_header-bubble_1oa3o_135",
|
|
30
|
+
"header-bubble--container": "_header-bubble--container_1oa3o_138",
|
|
31
|
+
"header-bubble--container--full": "_header-bubble--container--full_1oa3o_146",
|
|
32
|
+
"header-bubble-margin": "_header-bubble-margin_1oa3o_150"
|
|
33
33
|
}, E = ({
|
|
34
|
-
title:
|
|
34
|
+
title: l,
|
|
35
35
|
subtitle: b,
|
|
36
|
-
rightChildren:
|
|
37
|
-
bottomChildren:
|
|
36
|
+
rightChildren: s,
|
|
37
|
+
bottomChildren: c,
|
|
38
38
|
classNameWrapper: k,
|
|
39
39
|
classNameTitle: N,
|
|
40
40
|
classNameSubtitle: f,
|
|
41
|
-
headerBubble:
|
|
41
|
+
headerBubble: t,
|
|
42
42
|
fullWidthHeaderBubble: x,
|
|
43
43
|
"data-testid-wrapper": v,
|
|
44
44
|
"data-testid-title": w,
|
|
@@ -48,41 +48,41 @@ import '../../assets/PageHeader.css';const a = {
|
|
|
48
48
|
}) => {
|
|
49
49
|
const {
|
|
50
50
|
breadcrumb: r,
|
|
51
|
-
backLinkText:
|
|
52
|
-
onBackLinkClick:
|
|
51
|
+
backLinkText: d,
|
|
52
|
+
onBackLinkClick: h,
|
|
53
53
|
classNameBackLink: u,
|
|
54
54
|
"data-testid-backLink": g,
|
|
55
55
|
...B
|
|
56
56
|
} = T;
|
|
57
|
-
|
|
57
|
+
t && (l || b || c) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !t && !l && console.error("title prop is required when not using headerBubble"), (d || h) && console.error("backLinkText and onBackLinkClick props are deprecated. Please use breadcrumb instead");
|
|
58
58
|
const j = y([a["page-header"], k]), H = I(() => {
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
label:
|
|
59
|
+
const _ = [];
|
|
60
|
+
return d && h && _.push({
|
|
61
|
+
label: d,
|
|
62
62
|
className: u,
|
|
63
63
|
"data-testid": g,
|
|
64
|
-
onClick:
|
|
65
|
-
}), r &&
|
|
64
|
+
onClick: h
|
|
65
|
+
}), r && _.push(...r), /* @__PURE__ */ e("div", { className: a["page-header__breadcrumb"], children: _.map((o, i) => /* @__PURE__ */ e(
|
|
66
66
|
$,
|
|
67
67
|
{
|
|
68
68
|
icon: i === 0 ? /* @__PURE__ */ e(P, { icon: "house-blank" }) : /* @__PURE__ */ e("span", { className: a["page-header__breadcrumb__separator"], children: "/" }),
|
|
69
|
-
onClick: () =>
|
|
70
|
-
className:
|
|
71
|
-
"data-testid":
|
|
72
|
-
disabled:
|
|
73
|
-
children:
|
|
69
|
+
onClick: () => o.onClick && o.onClick(),
|
|
70
|
+
className: o.className,
|
|
71
|
+
"data-testid": o["data-testid"],
|
|
72
|
+
disabled: _.length === 1 ? !1 : i === _.length - 1,
|
|
73
|
+
children: o.label
|
|
74
74
|
},
|
|
75
|
-
`${
|
|
75
|
+
`${o.label}_${i}`
|
|
76
76
|
)) });
|
|
77
|
-
}, [r,
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
77
|
+
}, [r, d, u, g, h]);
|
|
78
|
+
return /* @__PURE__ */ p(n, { children: [
|
|
79
|
+
/* @__PURE__ */ p("div", { className: j, "data-testid": v, ...B, children: [
|
|
80
|
+
/* @__PURE__ */ p("div", { className: a["page-header__main-content"], children: [
|
|
81
|
+
/* @__PURE__ */ p("div", { className: a["page-header__right-children-wrapper"], children: [
|
|
82
82
|
r && H,
|
|
83
|
-
r &&
|
|
83
|
+
r && s && /* @__PURE__ */ e(n, { children: s })
|
|
84
84
|
] }),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ p("div", { className: a["page-header__right-children-wrapper"], children: [
|
|
86
86
|
/* @__PURE__ */ e(
|
|
87
87
|
m,
|
|
88
88
|
{
|
|
@@ -91,10 +91,10 @@ import '../../assets/PageHeader.css';const a = {
|
|
|
91
91
|
color: "var(--colors-neutral-text-color-text)",
|
|
92
92
|
className: N,
|
|
93
93
|
"data-testid": w,
|
|
94
|
-
children:
|
|
94
|
+
children: l
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
!r &&
|
|
97
|
+
!r && s && /* @__PURE__ */ e(n, { children: s })
|
|
98
98
|
] }),
|
|
99
99
|
/* @__PURE__ */ e(
|
|
100
100
|
m,
|
|
@@ -107,18 +107,18 @@ import '../../assets/PageHeader.css';const a = {
|
|
|
107
107
|
children: b
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
|
|
110
|
+
t && /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e("div", { className: a["header-bubble"], children: /* @__PURE__ */ e(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: x ? y(a["header-bubble--container"], a["header-bubble--container--full"]) : a["header-bubble--container"],
|
|
114
114
|
"data-testid": C,
|
|
115
|
-
children:
|
|
115
|
+
children: t
|
|
116
116
|
}
|
|
117
117
|
) }) })
|
|
118
118
|
] }),
|
|
119
|
-
|
|
119
|
+
c && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: c })
|
|
120
120
|
] }),
|
|
121
|
-
|
|
121
|
+
t && /* @__PURE__ */ e("div", { className: a["header-bubble-margin"] })
|
|
122
122
|
] });
|
|
123
123
|
};
|
|
124
124
|
export {
|
|
@@ -4,7 +4,7 @@ import { forwardRef as k, useContext as H, useMemo as U } from "react";
|
|
|
4
4
|
import { c as B } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { Icon as D } from "../Icon/Icon.js";
|
|
6
6
|
import { Skeleton as L } from "../Skeleton/Skeleton.js";
|
|
7
|
-
import { u as W, T as $, s as c } from "../../Tabs.module-
|
|
7
|
+
import { u as W, T as $, s as c } from "../../Tabs.module-ia-imLti.js";
|
|
8
8
|
import { g as q, a as z, u as I, f as A, b as h, _ as G, c as J, P as e, d as K, e as Q } from "../../useSlotProps-C_I1kEHr.js";
|
|
9
9
|
import { u as X, c as Y } from "../../combineHooksSlotProps-C-zYvfnF.js";
|
|
10
10
|
import { u as Z } from "../../useId-BW-oWmul.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import * as P from "react";
|
|
3
3
|
import { forwardRef as v } from "react";
|
|
4
4
|
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
5
|
-
import { u as x, s as C } from "../../Tabs.module-
|
|
5
|
+
import { u as x, s as C } from "../../Tabs.module-ia-imLti.js";
|
|
6
6
|
import { g as N, a as _, u as w, b, _ as O, c as E, P as o, d as I, e as S } from "../../useSlotProps-C_I1kEHr.js";
|
|
7
7
|
import { u as U } from "../../useId-BW-oWmul.js";
|
|
8
8
|
import { u as j } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { forwardRef as q } from "react";
|
|
4
4
|
import { c as B } from "../../clsx-DB4S2d7J.js";
|
|
5
|
-
import { T as G, u as J, s as Q } from "../../Tabs.module-
|
|
5
|
+
import { T as G, u as J, s as Q } from "../../Tabs.module-ia-imLti.js";
|
|
6
6
|
import { Tab as Ie } from "./Tab.js";
|
|
7
7
|
import { TabPanel as Fe } from "./TabPanel.js";
|
|
8
8
|
import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as w } from "../../useSlotProps-C_I1kEHr.js";
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as _ from "react";
|
|
2
|
-
import './assets/Tabs.css';const a = /* @__PURE__ */ _.createContext(null);
|
|
3
|
-
process.env.NODE_ENV !== "production" && (a.displayName = "TabsContext");
|
|
4
|
-
function e() {
|
|
5
|
-
const t = _.useContext(a);
|
|
6
|
-
if (t == null)
|
|
7
|
-
throw new Error("No TabsContext provided");
|
|
8
|
-
return t;
|
|
9
|
-
}
|
|
10
|
-
const s = "_tabs_me6nj_1", b = "_tabs__tab_me6nj_5", n = {
|
|
11
|
-
tabs: s,
|
|
12
|
-
tabs__tab: b,
|
|
13
|
-
"tabs__tab--disabled": "_tabs__tab--disabled_me6nj_23",
|
|
14
|
-
"tabs__tab--selected": "_tabs__tab--selected_me6nj_32",
|
|
15
|
-
"tabs__tab--chip": "_tabs__tab--chip_me6nj_36",
|
|
16
|
-
"tabs__tab--chip--disabled": "_tabs__tab--chip--disabled_me6nj_64",
|
|
17
|
-
"tabs__tab-panel": "_tabs__tab-panel_me6nj_74",
|
|
18
|
-
"tabs__tab-icon": "_tabs__tab-icon_me6nj_78",
|
|
19
|
-
"tabs__tab-content": "_tabs__tab-content_me6nj_83"
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
a as T,
|
|
23
|
-
n as s,
|
|
24
|
-
e as u
|
|
25
|
-
};
|