@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.
@@ -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 n, jsx as o } from "react/jsx-runtime";
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 h = "_badge_1nh6a_1", e = {
5
- "badge-root": "_badge-root_1nh6a_1",
6
- badge: h,
7
- "badge--red": "_badge--red_1nh6a_31",
8
- "badge--green": "_badge--green_1nh6a_34",
9
- "badge--blue": "_badge--blue_1nh6a_37",
10
- "badge--blueInvert": "_badge--blueInvert_1nh6a_40",
11
- "badge--gray": "_badge--gray_1nh6a_44",
12
- "badge--basic": "_badge--basic_1nh6a_48",
13
- "badge--double": "_badge--double_1nh6a_54",
14
- "badge--triple": "_badge--triple_1nh6a_58",
15
- "badge--medium": "_badge--medium_1nh6a_62"
16
- }, p = ({ count: a, children: r, variant: d, size: b, className: g }) => {
17
- const _ = a > 99 ? "triple" : a > 9 ? "double" : "single", s = l(
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--${d}`],
20
+ e[`badge--${a}`],
21
21
  e[`badge--${b}`],
22
- e[`badge--${_}`],
22
+ e[`badge--${s}`],
23
23
  g
24
24
  ]),
25
- [g, d, b, _]
25
+ [g, a, b, s]
26
26
  );
27
- return /* @__PURE__ */ n("span", { className: e["badge-root"], children: [
28
- r,
29
- /* @__PURE__ */ o("span", { className: s, children: a > 999 ? "999+" : a })
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 _, Fragment as h } from "react/jsx-runtime";
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-h1_10ecr_1",
9
- "u-typography-h2": "_u-typography-h2_10ecr_8",
10
- "u-typography-h3": "_u-typography-h3_10ecr_15",
11
- "u-typography-h4": "_u-typography-h4_10ecr_22",
12
- "u-typography-h5": "_u-typography-h5_10ecr_29",
13
- "u-typography-h6": "_u-typography-h6_10ecr_36",
14
- "u-typography-base": "_u-typography-base_10ecr_43",
15
- "u-typography-base--xxl": "_u-typography-base--xxl_10ecr_49",
16
- "u-typography-base--xl": "_u-typography-base--xl_10ecr_53",
17
- "u-typography-base--lg": "_u-typography-base--lg_10ecr_57",
18
- "u-typography-base--sm": "_u-typography-base--sm_10ecr_61",
19
- "u-typography-base--bold": "_u-typography-base--bold_10ecr_65",
20
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_10ecr_68",
21
- "u-typography-base--underlined": "_u-typography-base--underlined_10ecr_71",
22
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_10ecr_74",
23
- "page-header": "_page-header_10ecr_78",
24
- "page-header__main-content": "_page-header__main-content_10ecr_83",
25
- "page-header__bottom-content": "_page-header__bottom-content_10ecr_90",
26
- "page-header__breadcrumb": "_page-header__breadcrumb_10ecr_95",
27
- "page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_10ecr_123",
28
- "page-header__right-children-wrapper": "_page-header__right-children-wrapper_10ecr_129",
29
- "header-bubble": "_header-bubble_10ecr_135",
30
- "header-bubble--container": "_header-bubble--container_10ecr_138",
31
- "header-bubble--container--full": "_header-bubble--container--full_10ecr_146",
32
- "header-bubble-margin": "_header-bubble-margin_10ecr_150"
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: n,
34
+ title: l,
35
35
  subtitle: b,
36
- rightChildren: p,
37
- bottomChildren: l,
36
+ rightChildren: s,
37
+ bottomChildren: c,
38
38
  classNameWrapper: k,
39
39
  classNameTitle: N,
40
40
  classNameSubtitle: f,
41
- headerBubble: c,
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: s,
52
- onBackLinkClick: d,
51
+ backLinkText: d,
52
+ onBackLinkClick: h,
53
53
  classNameBackLink: u,
54
54
  "data-testid-backLink": g,
55
55
  ...B
56
56
  } = T;
57
- c && (n || b || l) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !c && !n && console.error("title prop is required when not using headerBubble"), (s || d) && console.error("backLinkText and onBackLinkClick props are deprecated. Please use breadcrumb instead");
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 o = [];
60
- return s && d && o.push({
61
- label: s,
59
+ const _ = [];
60
+ return d && h && _.push({
61
+ label: d,
62
62
  className: u,
63
63
  "data-testid": g,
64
- onClick: d
65
- }), r && o.push(...r), /* @__PURE__ */ e("div", { className: a["page-header__breadcrumb"], children: o.map((t, i) => /* @__PURE__ */ e(
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: () => t.onClick && t.onClick(),
70
- className: t.className,
71
- "data-testid": t["data-testid"],
72
- disabled: o.length === 1 ? !1 : i === o.length - 1,
73
- children: t.label
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
- `${t.label}_${i}`
75
+ `${o.label}_${i}`
76
76
  )) });
77
- }, [r, s, u, g, d]);
78
- return /* @__PURE__ */ _(h, { children: [
79
- /* @__PURE__ */ _("div", { className: j, "data-testid": v, ...B, children: [
80
- /* @__PURE__ */ _("div", { className: a["page-header__main-content"], children: [
81
- /* @__PURE__ */ _("div", { className: a["page-header__right-children-wrapper"], children: [
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 && p && /* @__PURE__ */ e(h, { children: p })
83
+ r && s && /* @__PURE__ */ e(n, { children: s })
84
84
  ] }),
85
- /* @__PURE__ */ _("div", { className: a["page-header__right-children-wrapper"], children: [
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: n
94
+ children: l
95
95
  }
96
96
  ),
97
- !r && p && /* @__PURE__ */ e(h, { children: p })
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
- c && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e("div", { className: a["header-bubble"], children: /* @__PURE__ */ e(
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: c
115
+ children: t
116
116
  }
117
117
  ) }) })
118
118
  ] }),
119
- l && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: l })
119
+ c && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: c })
120
120
  ] }),
121
- c && /* @__PURE__ */ e("div", { className: a["header-bubble-margin"] })
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-BNRwj3Z0.js";
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-BNRwj3Z0.js";
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-BNRwj3Z0.js";
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.1.12",
4
+ "version": "1.1.14",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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
- };