@pismo/marola 1.0.14 → 1.0.16

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.
@@ -1 +1 @@
1
- ._u-typography-h1_9p2mz_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_9p2mz_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_9p2mz_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_9p2mz_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_9p2mz_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_9p2mz_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_9p2mz_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_9p2mz_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_9p2mz_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_9p2mz_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_9p2mz_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_9p2mz_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_9p2mz_68{text-decoration:line-through}._u-typography-base--underlined_9p2mz_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_9p2mz_74{text-decoration:underline line-through}._container_9p2mz_78{display:flex;padding:16px;border:1px solid;border-radius:6px}._container--success_9p2mz_84{background-color:var(--green-1);border-color:var(--green-3)}._container--warning_9p2mz_88{background-color:var(--gold-1);border-color:var(--gold-3)}._container--error_9p2mz_92{background-color:var(--error-background);border-color:var(--error-border)}._container--info_9p2mz_96{background-color:var(--blue-1);border-color:var(--blue-3)}._container--default_9p2mz_100{background-color:var(--white-100);border-color:var(--border)}._container--close-icon_9p2mz_104{justify-self:flex-end;margin-left:16px;cursor:pointer}._container--content_9p2mz_109{width:100%}
1
+ ._u-typography-h1_1043z_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1043z_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1043z_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1043z_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1043z_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1043z_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1043z_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1043z_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1043z_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1043z_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1043z_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1043z_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1043z_68{text-decoration:line-through}._u-typography-base--underlined_1043z_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1043z_74{text-decoration:underline line-through}._container_1043z_78{display:flex;width:100%;padding:16px;border:1px solid;border-radius:6px}._container--success_1043z_85{background-color:var(--green-1);border-color:var(--green-3)}._container--warning_1043z_89{background-color:var(--gold-1);border-color:var(--gold-3)}._container--error_1043z_93{background-color:var(--error-background);border-color:var(--error-border)}._container--info_1043z_97{background-color:var(--blue-1);border-color:var(--blue-3)}._container--default_1043z_101{background-color:var(--white-100);border-color:var(--border)}._container--close-icon_1043z_105{justify-self:flex-end;margin-left:16px;cursor:pointer}._container--content_1043z_110{width:100%}
@@ -1 +1 @@
1
- ._u-typography-h1_18adz_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_18adz_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_18adz_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_18adz_22,._page-header__main-left-content_18adz_22 ._title_18adz_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_18adz_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_18adz_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_18adz_43,._page-header__main-left-content_18adz_22 ._subtitle_18adz_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_18adz_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_18adz_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_18adz_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_18adz_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_18adz_65,._page-header__main-left-content_18adz_22 ._title_18adz_22{font-weight:var(--base-bold)}._u-typography-base--strikethrough_18adz_68{text-decoration:line-through}._u-typography-base--underlined_18adz_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_18adz_74{text-decoration:underline line-through}._page-header_18adz_22{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:7.375rem;background:var(--cream);-webkit-font-smoothing:antialiased!important}._page-header_18adz_22:has(._page-header__top-content_18adz_87){justify-content:flex-start}._page-header__top-content_18adz_87,._page-header__main-content_18adz_90,._page-header__bottom-content_18adz_90{width:64rem;max-width:100%;margin:0 auto}._page-header__top-content_18adz_87{padding:1rem 0 .5rem}._page-header__top-content_18adz_87 button{width:fit-content;height:1.125rem;padding:0;line-height:1.125rem}._page-header__breadcrumb_18adz_104{display:flex;gap:.5rem;align-items:center}._page-header__breadcrumb_18adz_104 button{color:var(--gray-95)}._page-header__breadcrumb_18adz_104 button:hover:enabled{color:var(--hover)}._page-header__breadcrumb__separator_18adz_115{height:1.125rem;padding:0;line-height:1.125rem}._page-header__main-content_18adz_90{position:relative;display:flex}._page-header__main-left-content_18adz_22{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_18adz_22 ._title_18adz_22,._page-header__main-left-content_18adz_22 ._subtitle_18adz_43{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_18adz_22 ._account-header_18adz_138{flex:1}._page-header__main-left-content_18adz_22 ._account-header--container_18adz_141{position:absolute;max-width:80%;height:5.75rem;background-color:var(--white-100);border:1px solid var(--border-secondary);border-radius:8px}._page-header__main-right-content_18adz_149{display:flex;align-items:center;margin-bottom:1.125rem}._page-header__bottom-content_18adz_90{margin-top:.8125rem}._account-header-margin_18adz_158{margin-bottom:16px}
1
+ ._u-typography-h1_18vai_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_18vai_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_18vai_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_18vai_22,._page-header__main-left-content_18vai_22 ._title_18vai_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_18vai_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_18vai_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_18vai_43,._page-header__main-left-content_18vai_22 ._subtitle_18vai_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_18vai_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_18vai_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_18vai_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_18vai_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_18vai_65,._page-header__main-left-content_18vai_22 ._title_18vai_22{font-weight:var(--base-bold)}._u-typography-base--strikethrough_18vai_68{text-decoration:line-through}._u-typography-base--underlined_18vai_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_18vai_74{text-decoration:underline line-through}._page-header_18vai_22{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:7.375rem;background:var(--cream);-webkit-font-smoothing:antialiased!important}._page-header_18vai_22:has(._page-header__top-content_18vai_87){justify-content:flex-start}._page-header__top-content_18vai_87,._page-header__main-content_18vai_90,._page-header__bottom-content_18vai_90{width:64rem;max-width:100%;margin:0 auto}._page-header__top-content_18vai_87{display:flex;align-items:center;justify-content:space-between;padding:1rem 0 .5rem}._page-header__top-content_18vai_87 button{width:fit-content;height:1.125rem;padding:0;line-height:1.125rem}._page-header__breadcrumb_18vai_107{display:flex;gap:.5rem;align-items:center}._page-header__breadcrumb_18vai_107 button{color:var(--gray-95)}._page-header__breadcrumb_18vai_107 button:hover:enabled{color:var(--hover)}._page-header__breadcrumb__separator_18vai_118{height:1.125rem;padding:0;line-height:1.125rem}._page-header__main-content_18vai_90{position:relative;display:flex}._page-header__main-left-content_18vai_22{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_18vai_22 ._title_18vai_22,._page-header__main-left-content_18vai_22 ._subtitle_18vai_43{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_18vai_22 ._account-header_18vai_141{flex:1}._page-header__main-left-content_18vai_22 ._account-header--container_18vai_144{position:absolute;max-width:80%;height:5.75rem;background-color:var(--white-100);border:1px solid var(--border-secondary);border-radius:8px}._page-header__main-right-content_18vai_152{display:flex;align-items:center}._page-header__bottom-content_18vai_90{margin-top:.8125rem}._account-header-margin_18vai_160{margin-bottom:16px}
@@ -1,40 +1,40 @@
1
1
  import '../../assets/Alert.css';
2
- import { jsxs as _, jsx as a } from "react/jsx-runtime";
2
+ import { jsxs as p, jsx as a } from "react/jsx-runtime";
3
3
  import { c as y } from "../../clsx-DB4S2d7J.js";
4
4
  import { Icon as s } from "../Icon/Icon.js";
5
- const h = "_container_9p2mz_78", t = {
6
- "u-typography-h1": "_u-typography-h1_9p2mz_1",
7
- "u-typography-h2": "_u-typography-h2_9p2mz_8",
8
- "u-typography-h3": "_u-typography-h3_9p2mz_15",
9
- "u-typography-h4": "_u-typography-h4_9p2mz_22",
10
- "u-typography-h5": "_u-typography-h5_9p2mz_29",
11
- "u-typography-h6": "_u-typography-h6_9p2mz_36",
12
- "u-typography-base": "_u-typography-base_9p2mz_43",
13
- "u-typography-base--xxl": "_u-typography-base--xxl_9p2mz_49",
14
- "u-typography-base--xl": "_u-typography-base--xl_9p2mz_53",
15
- "u-typography-base--lg": "_u-typography-base--lg_9p2mz_57",
16
- "u-typography-base--sm": "_u-typography-base--sm_9p2mz_61",
17
- "u-typography-base--bold": "_u-typography-base--bold_9p2mz_65",
18
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_9p2mz_68",
19
- "u-typography-base--underlined": "_u-typography-base--underlined_9p2mz_71",
20
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_9p2mz_74",
5
+ const h = "_container_1043z_78", t = {
6
+ "u-typography-h1": "_u-typography-h1_1043z_1",
7
+ "u-typography-h2": "_u-typography-h2_1043z_8",
8
+ "u-typography-h3": "_u-typography-h3_1043z_15",
9
+ "u-typography-h4": "_u-typography-h4_1043z_22",
10
+ "u-typography-h5": "_u-typography-h5_1043z_29",
11
+ "u-typography-h6": "_u-typography-h6_1043z_36",
12
+ "u-typography-base": "_u-typography-base_1043z_43",
13
+ "u-typography-base--xxl": "_u-typography-base--xxl_1043z_49",
14
+ "u-typography-base--xl": "_u-typography-base--xl_1043z_53",
15
+ "u-typography-base--lg": "_u-typography-base--lg_1043z_57",
16
+ "u-typography-base--sm": "_u-typography-base--sm_1043z_61",
17
+ "u-typography-base--bold": "_u-typography-base--bold_1043z_65",
18
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1043z_68",
19
+ "u-typography-base--underlined": "_u-typography-base--underlined_1043z_71",
20
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1043z_74",
21
21
  container: h,
22
- "container--success": "_container--success_9p2mz_84",
23
- "container--warning": "_container--warning_9p2mz_88",
24
- "container--error": "_container--error_9p2mz_92",
25
- "container--info": "_container--info_9p2mz_96",
26
- "container--default": "_container--default_9p2mz_100",
27
- "container--close-icon": "_container--close-icon_9p2mz_104",
28
- "container--content": "_container--content_9p2mz_109"
29
- }, g = ({ type: r = "default", children: e, "data-testid": p, onClose: o }) => {
30
- const n = y(t.container, t[`container--${r}`]);
31
- return /* @__PURE__ */ _("div", { "data-testid": p, className: n, children: [
32
- /* @__PURE__ */ a("div", { className: t["container--content"], children: e }),
33
- !!o && /* @__PURE__ */ a(
22
+ "container--success": "_container--success_1043z_85",
23
+ "container--warning": "_container--warning_1043z_89",
24
+ "container--error": "_container--error_1043z_93",
25
+ "container--info": "_container--info_1043z_97",
26
+ "container--default": "_container--default_1043z_101",
27
+ "container--close-icon": "_container--close-icon_1043z_105",
28
+ "container--content": "_container--content_1043z_110"
29
+ }, g = ({ type: e = "default", children: n, "data-testid": o, onClose: r }) => {
30
+ const _ = y(t.container, t[`container--${e}`]);
31
+ return /* @__PURE__ */ p("div", { "data-testid": o, className: _, children: [
32
+ /* @__PURE__ */ a("div", { className: t["container--content"], children: n }),
33
+ !!r && /* @__PURE__ */ a(
34
34
  "div",
35
35
  {
36
- "data-testid": `${p}-close-button`,
37
- onClick: () => o(),
36
+ "data-testid": `${o}-close-button`,
37
+ onClick: () => r(),
38
38
  className: t["container--close-icon"],
39
39
  children: /* @__PURE__ */ a(s, { icon: "xmark" })
40
40
  }
@@ -1,52 +1,52 @@
1
1
  import '../../assets/PageHeader.css';
2
- import { jsx as a, Fragment as i, jsxs as l } from "react/jsx-runtime";
3
- import { useMemo as B } from "react";
4
- import { c as d } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as H } from "../Icon/Icon.js";
6
- import { IconButton as I } from "../IconButton/IconButton.js";
7
- const T = "_title_18adz_22", $ = "_subtitle_18adz_43", e = {
8
- "u-typography-h1": "_u-typography-h1_18adz_1",
9
- "u-typography-h2": "_u-typography-h2_18adz_8",
10
- "u-typography-h3": "_u-typography-h3_18adz_15",
11
- "u-typography-h4": "_u-typography-h4_18adz_22",
12
- "page-header__main-left-content": "_page-header__main-left-content_18adz_22",
13
- title: T,
14
- "u-typography-h5": "_u-typography-h5_18adz_29",
15
- "u-typography-h6": "_u-typography-h6_18adz_36",
16
- "u-typography-base": "_u-typography-base_18adz_43",
17
- subtitle: $,
18
- "u-typography-base--xxl": "_u-typography-base--xxl_18adz_49",
19
- "u-typography-base--xl": "_u-typography-base--xl_18adz_53",
20
- "u-typography-base--lg": "_u-typography-base--lg_18adz_57",
21
- "u-typography-base--sm": "_u-typography-base--sm_18adz_61",
22
- "u-typography-base--bold": "_u-typography-base--bold_18adz_65",
23
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_18adz_68",
24
- "u-typography-base--underlined": "_u-typography-base--underlined_18adz_71",
25
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18adz_74",
26
- "page-header": "_page-header_18adz_22",
27
- "page-header__top-content": "_page-header__top-content_18adz_87",
28
- "page-header__main-content": "_page-header__main-content_18adz_90",
29
- "page-header__bottom-content": "_page-header__bottom-content_18adz_90",
30
- "page-header__breadcrumb": "_page-header__breadcrumb_18adz_104",
31
- "page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_18adz_115",
32
- "account-header": "_account-header_18adz_138",
33
- "account-header--container": "_account-header--container_18adz_141",
34
- "page-header__main-right-content": "_page-header__main-right-content_18adz_149",
35
- "account-header-margin": "_account-header-margin_18adz_158"
2
+ import { jsxs as d, jsx as a, Fragment as l } from "react/jsx-runtime";
3
+ import { useMemo as H } from "react";
4
+ import { c as i } from "../../clsx-DB4S2d7J.js";
5
+ import { Icon as I } from "../Icon/Icon.js";
6
+ import { IconButton as T } from "../IconButton/IconButton.js";
7
+ const $ = "_title_18vai_22", q = "_subtitle_18vai_43", e = {
8
+ "u-typography-h1": "_u-typography-h1_18vai_1",
9
+ "u-typography-h2": "_u-typography-h2_18vai_8",
10
+ "u-typography-h3": "_u-typography-h3_18vai_15",
11
+ "u-typography-h4": "_u-typography-h4_18vai_22",
12
+ "page-header__main-left-content": "_page-header__main-left-content_18vai_22",
13
+ title: $,
14
+ "u-typography-h5": "_u-typography-h5_18vai_29",
15
+ "u-typography-h6": "_u-typography-h6_18vai_36",
16
+ "u-typography-base": "_u-typography-base_18vai_43",
17
+ subtitle: q,
18
+ "u-typography-base--xxl": "_u-typography-base--xxl_18vai_49",
19
+ "u-typography-base--xl": "_u-typography-base--xl_18vai_53",
20
+ "u-typography-base--lg": "_u-typography-base--lg_18vai_57",
21
+ "u-typography-base--sm": "_u-typography-base--sm_18vai_61",
22
+ "u-typography-base--bold": "_u-typography-base--bold_18vai_65",
23
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_18vai_68",
24
+ "u-typography-base--underlined": "_u-typography-base--underlined_18vai_71",
25
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18vai_74",
26
+ "page-header": "_page-header_18vai_22",
27
+ "page-header__top-content": "_page-header__top-content_18vai_87",
28
+ "page-header__main-content": "_page-header__main-content_18vai_90",
29
+ "page-header__bottom-content": "_page-header__bottom-content_18vai_90",
30
+ "page-header__breadcrumb": "_page-header__breadcrumb_18vai_107",
31
+ "page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_18vai_118",
32
+ "account-header": "_account-header_18vai_141",
33
+ "account-header--container": "_account-header--container_18vai_144",
34
+ "page-header__main-right-content": "_page-header__main-right-content_18vai_152",
35
+ "account-header-margin": "_account-header-margin_18vai_160"
36
36
  }, D = ({
37
37
  title: n,
38
38
  subtitle: g,
39
39
  rightChildren: u,
40
40
  bottomChildren: o,
41
41
  classNameWrapper: y,
42
- classNameTitle: z,
42
+ classNameTitle: v,
43
43
  classNameSubtitle: k,
44
44
  headerBubble: r,
45
45
  "data-testid-wrapper": N,
46
46
  "data-testid-title": f,
47
- "data-testid-subtitle": v,
48
- "data-testid-account-header": x,
49
- ...C
47
+ "data-testid-subtitle": x,
48
+ "data-testid-account-header": C,
49
+ ...L
50
50
  }) => {
51
51
  const {
52
52
  breadcrumb: h,
@@ -54,38 +54,38 @@ const T = "_title_18adz_22", $ = "_subtitle_18adz_43", e = {
54
54
  onBackLinkClick: p,
55
55
  classNameBackLink: m,
56
56
  "data-testid-backLink": b,
57
- ...L
58
- } = C;
57
+ ...w
58
+ } = L;
59
59
  r && (n || g || o) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !r && !n && console.error("title prop is required when not using headerBubble");
60
- const w = r ? d([e["page-header"], y, e["account-header-margin"]]) : d([e["page-header"], y]), j = B(() => {
60
+ const j = r ? i([e["page-header"], y, e["account-header-margin"]]) : i([e["page-header"], y]), B = H(() => {
61
61
  const _ = [];
62
62
  return s && p && _.push({
63
63
  label: s,
64
64
  className: m,
65
65
  "data-testid": b,
66
66
  onClick: p
67
- }), h && _.push(...h), /* @__PURE__ */ a("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: _.map((t, c) => /* @__PURE__ */ a(
68
- I,
69
- {
70
- icon: c === 0 ? /* @__PURE__ */ a(H, { icon: "house-blank" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
71
- onClick: () => t.onClick && t.onClick(),
72
- className: t.className,
73
- "data-testid": t["data-testid"],
74
- disabled: _.length === 1 ? !1 : c === _.length - 1,
75
- children: t.label
76
- },
77
- `${t.label}_${c}`
78
- )) }) });
79
- }, [h, s, m, b, p]);
80
- return /* @__PURE__ */ a(i, { children: /* @__PURE__ */ l("div", { className: w, "data-testid": N, ...L, children: [
81
- j,
82
- /* @__PURE__ */ l("div", { className: e["page-header__main-content"], children: [
83
- /* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: r ? /* @__PURE__ */ a(i, { children: /* @__PURE__ */ a("div", { className: e["account-header"], children: /* @__PURE__ */ a("div", { className: e["account-header--container"], "data-testid": x, children: r }) }) }) : /* @__PURE__ */ l(i, { children: [
84
- /* @__PURE__ */ a("h1", { className: d(e.title, z), "data-testid": f, children: n }),
85
- /* @__PURE__ */ a("h2", { className: d(e.subtitle, k), "data-testid": v, children: g })
86
- ] }) }),
67
+ }), h && _.push(...h), /* @__PURE__ */ d("div", { className: e["page-header__top-content"], children: [
68
+ /* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: _.map((t, c) => /* @__PURE__ */ a(
69
+ T,
70
+ {
71
+ icon: c === 0 ? /* @__PURE__ */ a(I, { icon: "house-blank" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
72
+ onClick: () => t.onClick && t.onClick(),
73
+ className: t.className,
74
+ "data-testid": t["data-testid"],
75
+ disabled: _.length === 1 ? !1 : c === _.length - 1,
76
+ children: t.label
77
+ },
78
+ `${t.label}_${c}`
79
+ )) }),
87
80
  u && /* @__PURE__ */ a("div", { className: e["page-header__main-right-content"], children: u })
88
- ] }),
81
+ ] });
82
+ }, [h, s, m, b, p]);
83
+ return /* @__PURE__ */ a(l, { children: /* @__PURE__ */ d("div", { className: j, "data-testid": N, ...w, children: [
84
+ B,
85
+ /* @__PURE__ */ a("div", { className: e["page-header__main-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: r ? /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a("div", { className: e["account-header"], children: /* @__PURE__ */ a("div", { className: e["account-header--container"], "data-testid": C, children: r }) }) }) : /* @__PURE__ */ d(l, { children: [
86
+ /* @__PURE__ */ a("h1", { className: i(e.title, v), "data-testid": f, children: n }),
87
+ /* @__PURE__ */ a("h2", { className: i(e.subtitle, k), "data-testid": x, children: g })
88
+ ] }) }) }),
89
89
  o && /* @__PURE__ */ a("div", { className: e["page-header__bottom-content"], children: o })
90
90
  ] }) });
91
91
  };
@@ -8,7 +8,8 @@ export type TagProps = {
8
8
  children: ReactNode;
9
9
  'data-testid'?: string;
10
10
  outlined?: boolean;
11
+ iconSize?: string | number;
11
12
  'with-icon'?: boolean;
12
13
  };
13
- export declare const Tag: ({ variant, color, children, "data-testid": dataTestId, outlined, "with-icon": withIcon, }: TagProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const Tag: ({ variant, color, children, "data-testid": dataTestId, outlined, "with-icon": withIcon, iconSize, }: TagProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -1,10 +1,10 @@
1
1
  import '../../assets/Tag.css';
2
- import { jsx as o, jsxs as u } from "react/jsx-runtime";
3
- import { useMemo as d } from "react";
2
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
3
+ import { useMemo as j } from "react";
4
4
  import { c } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as j } from "../Icon/Icon.js";
6
- const g = "_container_b8jbs_1", e = {
7
- container: g,
5
+ import { Icon as g } from "../Icon/Icon.js";
6
+ const m = "_container_b8jbs_1", e = {
7
+ container: m,
8
8
  "container--content": "_container--content_b8jbs_9",
9
9
  "container--content__icon": "_container--content__icon_b8jbs_14",
10
10
  "container--default": "_container--default_b8jbs_18",
@@ -41,33 +41,34 @@ const g = "_container_b8jbs_1", e = {
41
41
  "container--red__outlined": "_container--red__outlined_b8jbs_127",
42
42
  "container--volcano": "_container--volcano_b8jbs_130",
43
43
  "container--volcano__outlined": "_container--volcano__outlined_b8jbs_134"
44
- }, k = ({
44
+ }, x = ({
45
45
  variant: n,
46
46
  color: _,
47
47
  children: r,
48
48
  "data-testid": a,
49
49
  outlined: i = !1,
50
- "with-icon": s = !1
50
+ "with-icon": s = !1,
51
+ iconSize: b
51
52
  }) => {
52
53
  n && _ && console.error("You should only use props Variant and Color one at a time");
53
- const b = c(
54
+ const l = c(
54
55
  e.container,
55
56
  n && e[`container--${n}`],
56
57
  _ && e[`container--${_}`],
57
58
  i && _ && e[`container--${_}__outlined`],
58
59
  i && n && e[`container--${n}__outlined`]
59
- ), l = c(e[`container--${n}__icon`], e["container--content__icon"]), t = d(() => !!n && {
60
+ ), u = c(e[`container--${n}__icon`], e["container--content__icon"]), t = j(() => !!n && {
60
61
  default: "circle-minus",
61
62
  processing: "arrows-rotate",
62
63
  success: "circle-check",
63
64
  warning: "circle-exclamation",
64
65
  error: "circle-xmark"
65
66
  }[n], [n]);
66
- return /* @__PURE__ */ o("div", { "data-testid": a, className: b, children: /* @__PURE__ */ u("div", { className: e["container--content"], children: [
67
- s && !!t && /* @__PURE__ */ o("div", { className: l, children: /* @__PURE__ */ o(j, { icon: t }) }),
67
+ return /* @__PURE__ */ o("div", { "data-testid": a, className: l, children: /* @__PURE__ */ d("div", { className: e["container--content"], children: [
68
+ s && !!t && /* @__PURE__ */ o("div", { className: u, children: /* @__PURE__ */ o(g, { size: b, icon: t }) }),
68
69
  r
69
70
  ] }) });
70
71
  };
71
72
  export {
72
- k as Tag
73
+ x as Tag
73
74
  };
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ variant, color, children, "data-testid": dataTestId, outlined, "with-icon": withIcon, }: TagProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ({ variant, color, children, "data-testid": dataTestId, outlined, "with-icon": withIcon, iconSize, }: TagProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
8
  parameters: {
9
9
  layout: string;
@@ -27,3 +27,4 @@ export declare const Orange: Story;
27
27
  export declare const Purple: Story;
28
28
  export declare const Red: Story;
29
29
  export declare const Volcano: Story;
30
+ export declare const WithSmallIcon: Story;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",