@pismo/marola 2.1.74 → 2.1.77

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.
@@ -10,7 +10,7 @@ import { createElement as fe } from "react";
10
10
  import "./components/Input/Input.js";
11
11
  import "./components/Avatar/Avatar.js";
12
12
  import "./components/Button/Button.js";
13
- import "./Toggle-C4jN6Ewk.js";
13
+ import "./Toggle-DbpYFezR.js";
14
14
  import "./components/Dialog/Dialog.js";
15
15
  import "./components/DatePicker/DatePicker.js";
16
16
  import { r as H } from "./index-ew-96uBP.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as g, useId as C } from "react";
2
+ import { forwardRef as g, useId as N } from "react";
3
3
  import { c as d } from "./clsx-OuTLNxxd.js";
4
4
  import "./utils/iconsList.js";
5
- import { Typography as N } from "./components/Typography/Typography.js";
5
+ import { Typography as C } from "./components/Typography/Typography.js";
6
6
  import "./components/Input/Input.js";
7
7
  import "./components/Avatar/Avatar.js";
8
8
  import "./components/Button/Button.js";
@@ -47,17 +47,17 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
47
47
  "chip__remove--disabled": "_chip__remove--disabled_1wvod_133",
48
48
  "chip-loading": "_chip-loading_1wvod_137"
49
49
  }, R = g((t, l) => {
50
- const { children: p, onClickContent: a, disabled: r, className: o, variant: s } = t;
50
+ const { children: p, onClickContent: o, disabled: r, className: a, variant: s } = t;
51
51
  let e = d(
52
52
  n.chip,
53
53
  { [n["chip--outlined"]]: s === "outlined" },
54
54
  { [n["chip--contained"]]: s === "contained" },
55
- o
55
+ a
56
56
  );
57
- return a ? (e += ` ${n["chip--button"]}`, /* @__PURE__ */ i(
57
+ return o ? (e += ` ${n["chip--button"]}`, /* @__PURE__ */ i(
58
58
  I,
59
59
  {
60
- onClick: a,
60
+ onClick: o,
61
61
  disabled: r,
62
62
  "data-testid": t["data-testid"],
63
63
  ref: l,
@@ -65,16 +65,16 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
65
65
  children: p
66
66
  }
67
67
  )) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: l, className: e, children: p });
68
- }), ao = g((t, l) => {
68
+ }), oa = g((t, l) => {
69
69
  const {
70
70
  label: p,
71
- className: a,
71
+ className: o,
72
72
  onClickContent: r,
73
- leftAdornment: o,
73
+ leftAdornment: a,
74
74
  loading: s = !1,
75
75
  disabled: e = !1,
76
- variant: h = "default",
77
- onClickRemove: y
76
+ variant: m = "default",
77
+ onClickRemove: h
78
78
  } = t;
79
79
  if (s)
80
80
  return /* @__PURE__ */ i(
@@ -84,7 +84,7 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
84
84
  "data-testid": t["data-testid-skeleton"]
85
85
  }
86
86
  );
87
- const b = d(o == null ? void 0 : o.className, n.chip__adornment), w = o != null && o.customIcon ? { ...o, className: b } : { ...o, disabled: e, className: b };
87
+ const b = d(a == null ? void 0 : a.className, n.chip__adornment), w = a != null && a.customIcon ? { ...a, className: b } : { ...a, disabled: e, className: b };
88
88
  return /* @__PURE__ */ k(
89
89
  R,
90
90
  {
@@ -92,20 +92,20 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
92
92
  "data-testid": t["data-testid"],
93
93
  onClickContent: r,
94
94
  disabled: e,
95
- className: a,
96
- variant: h,
95
+ className: o,
96
+ variant: m,
97
97
  children: [
98
- o && /* @__PURE__ */ i(v, { ...w }),
98
+ a && /* @__PURE__ */ i(v, { ...w }),
99
99
  p,
100
- y && /* @__PURE__ */ i(
100
+ h && /* @__PURE__ */ i(
101
101
  "span",
102
102
  {
103
103
  className: d(n.chip__remove, { [n["chip__remove--disabled"]]: e }),
104
104
  role: "button",
105
105
  tabIndex: e ? -1 : 0,
106
106
  "aria-label": "remove",
107
- onClick: (_) => {
108
- _ == null || _.stopPropagation(), _ == null || _.nativeEvent.stopImmediatePropagation(), y();
107
+ onClick: (c) => {
108
+ c == null || c.stopPropagation(), c == null || c.nativeEvent.stopImmediatePropagation(), h();
109
109
  },
110
110
  "aria-disabled": e,
111
111
  children: /* @__PURE__ */ i(f, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
@@ -114,40 +114,40 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
114
114
  ]
115
115
  }
116
116
  );
117
- }), m = {
117
+ }), y = {
118
118
  "row-item": "_row-item_11zdk_1",
119
119
  "row-item--clickable": "_row-item--clickable_11zdk_12",
120
120
  "row-item--disabled": "_row-item--disabled_11zdk_18",
121
121
  "row-item__content": "_row-item__content_11zdk_24"
122
- }, to = g((t, l) => {
123
- const { children: p, leftAdornment: a, disabled: r, onClick: o, buttons: s, ariaLabel: e, className: h } = t, y = d(a == null ? void 0 : a.className, m["row-item__adornment"]), w = {
124
- onClick: (c) => {
125
- r || o && o(c);
122
+ }, ta = g((t, l) => {
123
+ const { children: p, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: m } = t, h = d(o == null ? void 0 : o.className, y["row-item__adornment"]), w = {
124
+ onClick: (_) => {
125
+ r || a && a(_);
126
126
  },
127
127
  tabIndex: 0,
128
128
  "aria-label": e,
129
129
  role: "button"
130
- }, _ = a != null && a.customIcon ? a : { size: "1rem", ...a };
130
+ }, c = o != null && o.customIcon ? o : { size: "1rem", ...o };
131
131
  return /* @__PURE__ */ k(
132
132
  "div",
133
133
  {
134
134
  "data-testid": t["data-testid"],
135
135
  className: d(
136
- m["row-item"],
137
- o && m["row-item--clickable"],
138
- o && r && m["row-item--disabled"],
139
- h
136
+ y["row-item"],
137
+ a && y["row-item--clickable"],
138
+ a && r && y["row-item--disabled"],
139
+ m
140
140
  ),
141
- ...!!o && w,
141
+ ...!!a && w,
142
142
  ref: l,
143
143
  children: [
144
- a && /* @__PURE__ */ i(v, { ..._, className: y, disabled: r }),
145
- /* @__PURE__ */ i("span", { className: d(m["row-item__content"]), children: p }),
144
+ o && /* @__PURE__ */ i(v, { ...c, className: h, disabled: r }),
145
+ /* @__PURE__ */ i("span", { className: d(y["row-item__content"]), children: p }),
146
146
  s && /* @__PURE__ */ i(
147
147
  "div",
148
148
  {
149
- onClick: (c) => {
150
- c == null || c.stopPropagation(), c == null || c.nativeEvent.stopImmediatePropagation();
149
+ onClick: (_) => {
150
+ _ == null || _.stopPropagation(), _ == null || _.nativeEvent.stopImmediatePropagation();
151
151
  },
152
152
  children: s
153
153
  }
@@ -155,15 +155,16 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
155
155
  ]
156
156
  }
157
157
  );
158
- }), eo = g((t, l) => {
159
- const { text: p, isSelected: a = !1, value: r, onChange: o, disabled: s, type: e } = t, h = C();
158
+ }), ea = g((t, l) => {
159
+ const { text: p, isSelected: o = !1, value: r, onChange: a, disabled: s, type: e, classNameLabel: m } = t, h = N();
160
160
  return /* @__PURE__ */ k(
161
161
  "label",
162
162
  {
163
163
  className: d(
164
164
  [u.toggle__label],
165
- a && u["toggle__label--selected"],
166
- s && u["toggle__label--disabled"]
165
+ o && u["toggle__label--selected"],
166
+ s && u["toggle__label--disabled"],
167
+ m
167
168
  ),
168
169
  "data-testid": t["data-testid"],
169
170
  id: h,
@@ -175,21 +176,21 @@ import './assets/Toggle2.css';const P = "_chip_1wvod_61", z = "_chip__adornment_
175
176
  type: e ?? "radio",
176
177
  ref: l,
177
178
  value: r.toString(),
178
- onChange: () => o(r),
179
+ onChange: () => a(r),
179
180
  role: e ?? "radio",
180
- checked: a,
181
- "aria-checked": a,
181
+ checked: o,
182
+ "aria-checked": o,
182
183
  "aria-labelledby": h,
183
184
  disabled: s
184
185
  }
185
186
  ),
186
- /* @__PURE__ */ i(N, { bold: !0, children: p })
187
+ /* @__PURE__ */ i(C, { bold: !0, children: p })
187
188
  ]
188
189
  }
189
190
  );
190
191
  });
191
192
  export {
192
- ao as C,
193
- to as R,
194
- eo as T
193
+ oa as C,
194
+ ta as R,
195
+ ea as T
195
196
  };
@@ -0,0 +1 @@
1
+ ._vertical-stepper_16maa_1{display:flex}._stepper-container_16maa_5{min-width:15rem}._steps-list_16maa_9{position:relative;display:flex;flex-direction:column;padding:0;margin:0;list-style:none}._steps-list_16maa_9:before{position:absolute;top:1rem;bottom:1rem;left:.4375rem;width:2px;content:"";background-color:var(--colors-neutral-text-color-text-quaternary)}._step-wrapper_16maa_27{padding:0;margin:0}._step-item_16maa_32{position:relative;z-index:1;display:flex;gap:.75rem;align-items:center;width:100%;padding:.375rem 0;font-family:inherit;font-size:inherit;color:var(--colors-neutral-text-color-text-quaternary);text-align:left;cursor:default;background:transparent;border:none;transition:all .2s ease}._step-item_16maa_32:focus-visible{border-radius:.25rem;outline:2px solid var(--colors-base-blue-6);outline-offset:2px}._step-clickable_16maa_55{cursor:pointer}._step-clickable_16maa_55:hover:not(._step-disabled_16maa_58) ._step-label_16maa_58{opacity:.8}._step-icon_16maa_62{position:relative;z-index:2;background-color:var(--colors-neutral-bg-color-bg-layout);border:2px solid var(--color-gray-600);border-radius:50%;transition:all .2s ease}._step-active_16maa_71 ._step-icon_16maa_62{z-index:2;width:.625rem;height:.625rem;margin-left:.1875rem;background-color:var(--colors-neutral-bg-color-bg-layout);border:2px solid var(--colors-base-blue-6)}._step-active_16maa_71 ._step-label_16maa_58{font-weight:600;color:var(--colors-base-blue-6)}._step-completed_16maa_84 ._step-label_16maa_58{color:var(--colors-neutral-text-color-text)}._completed-icon_16maa_88{position:relative;z-index:2;display:flex;align-items:center;margin-left:.125rem;background-color:var(--colors-neutral-bg-color-bg-layout)}._step-inactive_16maa_97 ._step-icon_16maa_62{z-index:2;width:.625rem;height:.625rem;margin-left:.1875rem;background-color:var(--colors-neutral-bg-color-bg-layout);border:2px solid var(--colors-neutral-text-color-text-quaternary)}._step-inactive_16maa_97 ._step-label_16maa_58{color:var(--colors-neutral-text-color-text-quaternary)}._step-disabled_16maa_58{cursor:not-allowed;opacity:.5}._step-disabled_16maa_58 ._step-label_16maa_58{color:var(--colors-neutral-text-color-text-quaternary)}._step-disabled_16maa_58:hover ._step-label_16maa_58{opacity:1}._step-label_16maa_58{font-size:.875rem;font-weight:400;line-height:1.25rem;transition:all .2s ease}._stepper-content_16maa_127{flex:1;min-width:0}
@@ -8,7 +8,7 @@ import "../Input/Input.js";
8
8
  import "../Avatar/Avatar.js";
9
9
  import "../Skeleton/Skeleton.js";
10
10
  import "../Button/Button.js";
11
- import { C as z } from "../../Toggle-C4jN6Ewk.js";
11
+ import { C as z } from "../../Toggle-DbpYFezR.js";
12
12
  import "../Dialog/Dialog.js";
13
13
  import "../DatePicker/DatePicker.js";
14
14
  import "../../index-ew-96uBP.js";
@@ -6,7 +6,7 @@ import { Autocomplete as i } from "../Autocomplete/Autocomplete.js";
6
6
  import "../Avatar/Avatar.js";
7
7
  import "react";
8
8
  import "../Button/Button.js";
9
- import "../../Toggle-C4jN6Ewk.js";
9
+ import "../../Toggle-DbpYFezR.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
12
  import "../Input/Input.js";
@@ -6,7 +6,7 @@ import { Typography as p } from "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Avatar/Avatar.js";
8
8
  import { Button as k } from "../Button/Button.js";
9
- import "../../Toggle-C4jN6Ewk.js";
9
+ import "../../Toggle-DbpYFezR.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
12
  import "../../index-ew-96uBP.js";
@@ -7,7 +7,7 @@ import { Typography as ze } from "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Avatar/Avatar.js";
9
9
  import "../Button/Button.js";
10
- import "../../Toggle-C4jN6Ewk.js";
10
+ import "../../Toggle-DbpYFezR.js";
11
11
  import "../Dialog/Dialog.js";
12
12
  import "../DatePicker/DatePicker.js";
13
13
  import { r as Be } from "../../index-ew-96uBP.js";
@@ -21,8 +21,8 @@ import "../Tabs/Tabs.js";
21
21
  import "../../Group-DJz1rK2n.js";
22
22
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
23
23
  import "../../utils/iconsList.js";
24
- import { u as L, a as he, b as F, C as Ue, f as we, N as Oe, c as Ne, d as be, A as Ye, E as pe, e as Ge, g as $e, h as ve, i as je, j as Je, m as Xe, k as qe, l as Ze, v as Qe, s as j } from "../../RadioOption-CbeBwSaN.js";
25
- import { R as ln } from "../../RadioOption-CbeBwSaN.js";
24
+ import { u as L, a as he, b as F, C as Ue, f as we, N as Oe, c as Ne, d as be, A as Ye, E as pe, e as Ge, g as $e, h as ve, i as je, j as Je, m as Xe, k as qe, l as Ze, v as Qe, s as j } from "../../RadioOption-BfFnVxxq.js";
25
+ import { R as ln } from "../../RadioOption-BfFnVxxq.js";
26
26
  import { i as et, a as me, b as Ce } from "../../Popup-D267EI4e.js";
27
27
  function tt({
28
28
  controlled: e,
@@ -6,7 +6,7 @@ import "react";
6
6
  import "../Input/Input.js";
7
7
  import "../Avatar/Avatar.js";
8
8
  import "../Button/Button.js";
9
- import "../../Toggle-C4jN6Ewk.js";
9
+ import "../../Toggle-DbpYFezR.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
12
  import "../../index-ew-96uBP.js";
@@ -15,7 +15,7 @@ import "../IconButton/IconButton.js";
15
15
  import "../InputSearch/InputSearch.js";
16
16
  import "../Select/Select.js";
17
17
  import "../Popover/Popover.js";
18
- import { R as u } from "../../RadioOption-CbeBwSaN.js";
18
+ import { R as u } from "../../RadioOption-BfFnVxxq.js";
19
19
  import "../Table/Table.js";
20
20
  import "../Tabs/Tabs.js";
21
21
  import "../../Group-DJz1rK2n.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { c as s } from "../../clsx-OuTLNxxd.js";
3
- import { C as i } from "../../Toggle-C4jN6Ewk.js";
3
+ import { C as i } from "../../Toggle-DbpYFezR.js";
4
4
  import { ResultContainer as o } from "../ResultContainer/ResultContainer.js";
5
5
  import '../../assets/ResultWithChips.css';const h = "_container_hgp0p_1", n = {
6
6
  container: h,
@@ -7,7 +7,7 @@ import "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Avatar/Avatar.js";
9
9
  import "../Button/Button.js";
10
- import { R as n, R as q } from "../../Toggle-C4jN6Ewk.js";
10
+ import { R as n, R as q } from "../../Toggle-DbpYFezR.js";
11
11
  import "../Dialog/Dialog.js";
12
12
  import "../DatePicker/DatePicker.js";
13
13
  import "../../index-ew-96uBP.js";
@@ -1,12 +1,13 @@
1
- import { jsxs as j, jsx as k } from "react/jsx-runtime";
2
- import { c as T } from "../../clsx-OuTLNxxd.js";
3
- import * as S from "react";
4
- import { u as v, g as A, a as D, b as O, c as z, d as G, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
5
- import { u as J } from "../../useControlled-BYdyS7Pn.js";
6
- import { i as B } from "../../isFocusVisible-CPZqtjv2.js";
7
- import '../../assets/Toggle.css';function K(l) {
1
+ import { jsxs as B, jsx as y } from "react/jsx-runtime";
2
+ import * as w from "react";
3
+ import { useId as v } from "react";
4
+ import { c as O } from "../../clsx-OuTLNxxd.js";
5
+ import { u as A, g as D, a as z, b as N, c as G, d as J, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
6
+ import { u as K } from "../../useControlled-BYdyS7Pn.js";
7
+ import { i as R } from "../../isFocusVisible-CPZqtjv2.js";
8
+ import '../../assets/Toggle.css';function L(o) {
8
9
  const {
9
- checked: o,
10
+ checked: c,
10
11
  defaultChecked: n,
11
12
  disabled: r,
12
13
  onBlur: i,
@@ -14,66 +15,66 @@ import '../../assets/Toggle.css';function K(l) {
14
15
  onFocus: u,
15
16
  onFocusVisible: b,
16
17
  readOnly: m,
17
- required: d
18
- } = l, [w, P] = J({
19
- controlled: o,
18
+ required: _
19
+ } = o, [d, P] = K({
20
+ controlled: c,
20
21
  default: !!n,
21
22
  name: "Switch",
22
23
  state: "checked"
23
24
  }), f = (t) => (s) => {
24
- var c;
25
- s.nativeEvent.defaultPrevented || (P(s.target.checked), g == null || g(s), (c = t.onChange) == null || c.call(t, s));
26
- }, [p, _] = S.useState(!1);
27
- r && p && _(!1);
28
- const h = S.useRef(null), N = (t) => (s) => {
29
- var c;
30
- h.current || (h.current = s.currentTarget), B(s.target) && (_(!0), b == null || b(s)), u == null || u(s), (c = t.onFocus) == null || c.call(t, s);
31
- }, C = (t) => (s) => {
32
- var c;
33
- B(s.target) || _(!1), i == null || i(s), (c = t.onBlur) == null || c.call(t, s);
34
- }, y = v(h);
25
+ var l;
26
+ s.nativeEvent.defaultPrevented || (P(s.target.checked), g == null || g(s), (l = t.onChange) == null || l.call(t, s));
27
+ }, [p, h] = w.useState(!1);
28
+ r && p && h(!1);
29
+ const k = w.useRef(null), C = (t) => (s) => {
30
+ var l;
31
+ k.current || (k.current = s.currentTarget), R(s.target) && (h(!0), b == null || b(s)), u == null || u(s), (l = t.onFocus) == null || l.call(t, s);
32
+ }, S = (t) => (s) => {
33
+ var l;
34
+ R(s.target) || h(!1), i == null || i(s), (l = t.onBlur) == null || l.call(t, s);
35
+ }, T = A(k);
35
36
  return {
36
- checked: w,
37
+ checked: d,
37
38
  disabled: !!r,
38
39
  focusVisible: p,
39
40
  getInputProps: (t = {}) => ({
40
- checked: o,
41
+ checked: c,
41
42
  defaultChecked: n,
42
43
  disabled: r,
43
44
  readOnly: m,
44
- ref: y,
45
- required: d,
45
+ ref: T,
46
+ required: _,
46
47
  type: "checkbox",
47
48
  role: "switch",
48
- "aria-checked": o,
49
+ "aria-checked": c,
49
50
  ...t,
50
51
  onChange: f(t),
51
- onFocus: N(t),
52
- onBlur: C(t)
52
+ onFocus: C(t),
53
+ onBlur: S(t)
53
54
  }),
54
- inputRef: y,
55
+ inputRef: T,
55
56
  readOnly: !!m
56
57
  };
57
58
  }
58
- const I = "Switch";
59
- function L(l) {
60
- return A(I, l);
59
+ const j = "Switch";
60
+ function Q(o) {
61
+ return D(j, o);
61
62
  }
62
- D(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
63
- const Q = (l) => {
63
+ z(j, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
64
+ const W = (o) => {
64
65
  const {
65
- checked: o,
66
+ checked: c,
66
67
  disabled: n,
67
68
  focusVisible: r,
68
69
  readOnly: i
69
- } = l;
70
- return z({
71
- root: ["root", o && "checked", n && "disabled", r && "focusVisible", i && "readOnly"],
70
+ } = o;
71
+ return G({
72
+ root: ["root", c && "checked", n && "disabled", r && "focusVisible", i && "readOnly"],
72
73
  thumb: ["thumb"],
73
74
  input: ["input"],
74
75
  track: ["track"]
75
- }, G(L));
76
- }, E = /* @__PURE__ */ S.forwardRef(function(o, n) {
76
+ }, J(Q));
77
+ }, E = /* @__PURE__ */ w.forwardRef(function(c, n) {
77
78
  const {
78
79
  checked: r,
79
80
  defaultChecked: i,
@@ -81,57 +82,57 @@ const Q = (l) => {
81
82
  onBlur: u,
82
83
  onChange: b,
83
84
  onFocus: m,
84
- onFocusVisible: d,
85
- readOnly: w,
85
+ onFocusVisible: _,
86
+ readOnly: d,
86
87
  required: P,
87
88
  slotProps: f = {},
88
89
  slots: p = {},
89
- ..._
90
- } = o, {
91
- getInputProps: h,
92
- checked: N,
93
- disabled: C,
94
- focusVisible: y,
90
+ ...h
91
+ } = c, {
92
+ getInputProps: k,
93
+ checked: C,
94
+ disabled: S,
95
+ focusVisible: T,
95
96
  readOnly: x
96
- } = K(o), t = {
97
- ...o,
98
- checked: N,
99
- disabled: C,
100
- focusVisible: y,
97
+ } = L(c), t = {
98
+ ...c,
99
+ checked: C,
100
+ disabled: S,
101
+ focusVisible: T,
101
102
  readOnly: x
102
- }, s = Q(t), c = p.root ?? "span", U = O({
103
- elementType: c,
103
+ }, s = W(t), l = p.root ?? "span", U = N({
104
+ elementType: l,
104
105
  externalSlotProps: f.root,
105
- externalForwardedProps: _,
106
+ externalForwardedProps: h,
106
107
  additionalProps: {
107
108
  ref: n
108
109
  },
109
110
  ownerState: t,
110
111
  className: s.root
111
- }), V = p.thumb ?? "span", q = O({
112
+ }), V = p.thumb ?? "span", q = N({
112
113
  elementType: V,
113
114
  externalSlotProps: f.thumb,
114
115
  ownerState: t,
115
116
  className: s.thumb
116
- }), F = p.input ?? "input", H = O({
117
+ }), F = p.input ?? "input", H = N({
117
118
  elementType: F,
118
- getSlotProps: h,
119
+ getSlotProps: k,
119
120
  externalSlotProps: f.input,
120
121
  ownerState: t,
121
122
  className: s.input
122
- }), R = p.track === null ? () => null : p.track ?? "span", M = O({
123
- elementType: R,
123
+ }), I = p.track === null ? () => null : p.track ?? "span", M = N({
124
+ elementType: I,
124
125
  externalSlotProps: f.track,
125
126
  ownerState: t,
126
127
  className: s.track
127
128
  });
128
- return /* @__PURE__ */ j(c, {
129
+ return /* @__PURE__ */ B(l, {
129
130
  ...U,
130
- children: [/* @__PURE__ */ k(R, {
131
+ children: [/* @__PURE__ */ y(I, {
131
132
  ...M
132
- }), /* @__PURE__ */ k(V, {
133
+ }), /* @__PURE__ */ y(V, {
133
134
  ...q
134
- }), /* @__PURE__ */ k(F, {
135
+ }), /* @__PURE__ */ y(F, {
135
136
  ...H
136
137
  })]
137
138
  });
@@ -207,19 +208,19 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
207
208
  track: e.oneOfType([e.elementType, e.oneOf([null])])
208
209
  })
209
210
  });
210
- const W = "_toggle__label_spoae_44", X = "_toggle_spoae_44", Y = "_input_spoae_90", Z = "_thumb_spoae_101", $ = "_track_spoae_115", a = {
211
- toggle__label: W,
212
- toggle: X,
211
+ const X = "_toggle__label_spoae_44", Y = "_toggle_spoae_44", Z = "_input_spoae_90", $ = "_thumb_spoae_101", ee = "_track_spoae_115", a = {
212
+ toggle__label: X,
213
+ toggle: Y,
213
214
  "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_spoae_86",
214
- input: Y,
215
- thumb: Z,
216
- track: $,
215
+ input: Z,
216
+ thumb: $,
217
+ track: ee,
217
218
  "toggle--focus-visible": "_toggle--focus-visible_spoae_125",
218
219
  "toggle--checked": "_toggle--checked_spoae_129",
219
220
  "toggle--disabled": "_toggle--disabled_spoae_142"
220
- }, le = ({
221
- label: l,
222
- checked: o,
221
+ }, ne = ({
222
+ label: o,
223
+ checked: c,
223
224
  disabled: n,
224
225
  classNameWrapper: r,
225
226
  classNameInput: i,
@@ -229,32 +230,32 @@ const W = "_toggle__label_spoae_44", X = "_toggle_spoae_44", Y = "_input_spoae_9
229
230
  }) => {
230
231
  const m = (d) => {
231
232
  u == null || u(d);
232
- };
233
- return /* @__PURE__ */ j("div", { className: T(a.toggle, r), "data-testid": g, children: [
234
- /* @__PURE__ */ k(
233
+ }, _ = v();
234
+ return /* @__PURE__ */ B("div", { className: O(a.toggle, r), "data-testid": g, children: [
235
+ /* @__PURE__ */ y(
235
236
  E,
236
237
  {
237
- checked: o === !0,
238
+ checked: c === !0,
238
239
  disabled: n,
239
240
  onChange: m,
240
- "aria-label": l,
241
+ "aria-label": o,
241
242
  slotProps: {
242
243
  root: (d) => ({
243
- className: T(a["toggle__toggle-el-wrapper"], {
244
+ className: O(a["toggle__toggle-el-wrapper"], {
244
245
  [a["toggle--disabled"]]: d.disabled,
245
246
  [a["toggle--focus-visible"]]: d.focusVisible,
246
247
  [a["toggle--checked"]]: d.checked
247
248
  })
248
249
  }),
249
- input: { className: T(a.input, i) },
250
+ input: { className: O(a.input, i), ...o && { "aria-labelledby": _ } },
250
251
  thumb: { className: a.thumb },
251
252
  track: { className: a.track }
252
253
  }
253
254
  }
254
255
  ),
255
- l && /* @__PURE__ */ k("label", { className: T(a.toggle__label, b), children: l })
256
+ o && /* @__PURE__ */ y("label", { className: O(a.toggle__label, b), id: _, children: o })
256
257
  ] });
257
258
  };
258
259
  export {
259
- le as Toggle
260
+ ne as Toggle
260
261
  };
@@ -5,6 +5,8 @@ export type ToggleGroupItemProps<T extends string | number> = {
5
5
  value: T;
6
6
  /** Whether this radio button is selected */
7
7
  isSelected?: boolean;
8
+ /** Space separated list of CSS classes to apply */
9
+ classNameLabel?: string;
8
10
  /** callback for selection change */
9
11
  onChange: (value: T | '') => void;
10
12
  /** Dataset test id only used for tests to reach in and grab the rendered DOM node of the label */
@@ -6,7 +6,7 @@ import "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Avatar/Avatar.js";
8
8
  import "../Button/Button.js";
9
- import { T as q } from "../../Toggle-C4jN6Ewk.js";
9
+ import { T as q } from "../../Toggle-DbpYFezR.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
12
  import "../../index-ew-96uBP.js";
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-C4jN6Ewk.js";
1
+ import { T as e } from "../../Toggle-DbpYFezR.js";
2
2
  import { G as p } from "../../Group-DJz1rK2n.js";
3
3
  export {
4
4
  p as ToggleGroup,
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ export interface VerticalStepperProps {
3
+ /** Array of items to be rendered as steps */
4
+ steps: Array<ReactNode>;
5
+ /** The current active step (0-indexed) */
6
+ currentStep: number;
7
+ /** Callback function triggered when a step is clicked */
8
+ onStepClick?: (stepIndex: number) => void;
9
+ /** Array of disabled step indices */
10
+ disabledSteps?: number[];
11
+ /** Additional content to display alongside the stepper */
12
+ children?: ReactNode;
13
+ /** CSS classes to be applied on the container element */
14
+ className?: string;
15
+ /** CSS classes to be applied on each step item */
16
+ classNameItem?: string;
17
+ /** Id to be applied as `data-testid` on the container element */
18
+ 'data-testid'?: string;
19
+ /** Id to be applied as `data-testid` on the step items */
20
+ 'data-testid-item'?: string;
21
+ /** Accessible label for the stepper navigation */
22
+ ariaLabel?: string;
23
+ }
24
+ export declare const VerticalStepper: ({ currentStep, steps, onStepClick, disabledSteps, children, className, classNameItem, ariaLabel, ...rest }: VerticalStepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
+ import { c as v } from "../../clsx-OuTLNxxd.js";
3
+ import { Icon as w } from "../Icon/Icon.js";
4
+ import '../../assets/VerticalStepper.css';const t = {
5
+ "vertical-stepper": "_vertical-stepper_16maa_1",
6
+ "stepper-container": "_stepper-container_16maa_5",
7
+ "steps-list": "_steps-list_16maa_9",
8
+ "step-wrapper": "_step-wrapper_16maa_27",
9
+ "step-item": "_step-item_16maa_32",
10
+ "step-clickable": "_step-clickable_16maa_55",
11
+ "step-disabled": "_step-disabled_16maa_58",
12
+ "step-label": "_step-label_16maa_58",
13
+ "step-icon": "_step-icon_16maa_62",
14
+ "step-active": "_step-active_16maa_71",
15
+ "step-completed": "_step-completed_16maa_84",
16
+ "completed-icon": "_completed-icon_16maa_88",
17
+ "step-inactive": "_step-inactive_16maa_97",
18
+ "stepper-content": "_stepper-content_16maa_127"
19
+ }, j = ({
20
+ currentStep: r,
21
+ steps: b,
22
+ onStepClick: c,
23
+ disabledSteps: o = [],
24
+ children: n,
25
+ className: h,
26
+ classNameItem: u,
27
+ ariaLabel: N = "Step navigation",
28
+ ...m
29
+ }) => {
30
+ const _ = (e) => {
31
+ !o.includes(e) && c && c(e);
32
+ }, f = (e, a) => {
33
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), _(a));
34
+ }, i = (e) => e < r, l = (e) => e === r, p = (e) => o.includes(e), k = (e) => v(
35
+ t["step-item"],
36
+ {
37
+ [t["step-active"]]: l(e),
38
+ [t["step-completed"]]: i(e),
39
+ [t["step-inactive"]]: !l(e) && !i(e),
40
+ [t["step-disabled"]]: p(e),
41
+ [t["step-clickable"]]: c && !p(e)
42
+ },
43
+ u
44
+ );
45
+ return /* @__PURE__ */ d(
46
+ "div",
47
+ {
48
+ className: v(t["vertical-stepper"], h),
49
+ "data-testid": m["data-testid"] || "vertical-stepper",
50
+ children: [
51
+ /* @__PURE__ */ s("nav", { className: t["stepper-container"], "aria-label": N, role: "navigation", children: /* @__PURE__ */ s("ol", { className: t["steps-list"], children: b.map((e, a) => /* @__PURE__ */ s("li", { className: t["step-wrapper"], children: /* @__PURE__ */ d(
52
+ "button",
53
+ {
54
+ type: "button",
55
+ className: k(a),
56
+ onClick: () => _(a),
57
+ onKeyDown: (y) => f(y, a),
58
+ disabled: p(a),
59
+ "aria-current": l(a) ? "step" : void 0,
60
+ "aria-disabled": p(a),
61
+ "data-testid": m["data-testid-item"] || `vertical-stepper-step-${a}`,
62
+ tabIndex: p(a) ? -1 : 0,
63
+ children: [
64
+ i(a) ? /* @__PURE__ */ s("span", { className: t["completed-icon"], "data-testid": "step-completed-icon", "aria-hidden": "true", children: /* @__PURE__ */ s(w, { icon: "circle-check", size: "13", color: "var(--colors-base-blue-6)" }) }) : /* @__PURE__ */ s("div", { className: t["step-icon"], "data-testid": "step-icon", "aria-hidden": "true" }),
65
+ /* @__PURE__ */ s("span", { className: t["step-label"], children: e })
66
+ ]
67
+ }
68
+ ) }, a)) }) }),
69
+ n && /* @__PURE__ */ s("div", { className: t["stepper-content"], children: n })
70
+ ]
71
+ }
72
+ );
73
+ };
74
+ export {
75
+ j as VerticalStepper
76
+ };
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { VerticalStepperProps } from './VerticalStepper';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ currentStep, steps, onStepClick, disabledSteps, children, className, classNameItem, ariaLabel, ...rest }: VerticalStepperProps) => import("react/jsx-runtime").JSX.Element;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
package/dist/main.d.ts CHANGED
@@ -53,6 +53,7 @@ export * from './components/ToggleGroup/ToggleGroup';
53
53
  export * from './components/Tooltip/Tooltip';
54
54
  export * from './components/TransactionRow/TransactionRow';
55
55
  export * from './components/Typography/Typography';
56
+ export * from './components/VerticalStepper/VerticalStepper';
56
57
  export * from './contexts/DraggableProvider/DraggableProvider';
57
58
  export * from './contexts/SnackbarProvider/SnackbarProvider';
58
59
  export * from './utils/draggable';
package/dist/main.js CHANGED
@@ -2,21 +2,21 @@ import { Adornment as e } from "./components/Adornment/Adornment.js";
2
2
  import { Advice as p } from "./components/Advice/Advice.js";
3
3
  import { Alert as m } from "./components/Alert/Alert.js";
4
4
  import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
5
- import { Avatar as l } from "./components/Avatar/Avatar.js";
5
+ import { Avatar as n } from "./components/Avatar/Avatar.js";
6
6
  import { Badge as s } from "./components/Badge/Badge.js";
7
7
  import { BankCard as g } from "./components/BankCard/BankCard.js";
8
8
  import { BankingCard as u } from "./components/BankingCard/BankingCard.js";
9
- import { Button as b } from "./components/Button/Button.js";
9
+ import { Button as S } from "./components/Button/Button.js";
10
10
  import { Calendar as C } from "./components/Calendar/Calendar.js";
11
11
  import { Card as I } from "./components/Card/Card.js";
12
12
  import { Checkbox as D } from "./components/Checkbox/Checkbox.js";
13
- import { C as h, R, T as A } from "./Toggle-C4jN6Ewk.js";
13
+ import { C as h, R, T as A } from "./Toggle-DbpYFezR.js";
14
14
  import { ConfirmationDialog as v } from "./components/ConfirmationDialog/ConfirmationDialog.js";
15
15
  import { DatePicker as O } from "./components/DatePicker/DatePicker.js";
16
16
  import { Description as E } from "./components/Description/Description.js";
17
17
  import { Dialog as N } from "./components/Dialog/Dialog.js";
18
18
  import { DoubleAutocomplete as K } from "./components/DoubleAutocomplete/DoubleAutocomplete.js";
19
- import { DoubleInput as F } from "./components/DoubleInput/DoubleInput.js";
19
+ import { DoubleInput as V } from "./components/DoubleInput/DoubleInput.js";
20
20
  import { Draggable as W } from "./components/Draggable/Draggable.js";
21
21
  import { DropdownMenu as q } from "./components/DropdownMenu/DropdownMenu.js";
22
22
  import { EllipsisTooltip as J } from "./components/EllipsisTooltip/EllipsisTooltip.js";
@@ -27,18 +27,18 @@ import { Input as oo } from "./components/Input/Input.js";
27
27
  import { InputSearch as eo } from "./components/InputSearch/InputSearch.js";
28
28
  import { LoadingSpinner as po } from "./components/LoadingSpinner/LoadingSpinner.js";
29
29
  import { PageHeader as mo } from "./components/PageHeader/PageHeader.js";
30
- import { Pagination as xo, paginationDefaultTranslations as no } from "./components/Pagination/Pagination.js";
30
+ import { Pagination as xo, paginationDefaultTranslations as lo } from "./components/Pagination/Pagination.js";
31
31
  import { Popover as io } from "./components/Popover/Popover.js";
32
32
  import { RadioButton as To } from "./components/RadioButton/RadioButton.js";
33
33
  import { ResultContainer as co } from "./components/ResultContainer/ResultContainer.js";
34
- import { ResultWithChips as bo } from "./components/ResultWithChips/ResultWithChips.js";
34
+ import { ResultWithChips as So } from "./components/ResultWithChips/ResultWithChips.js";
35
35
  import { Select as Co, SelectContext as Bo, SelectOption as Io, useSelectContext as yo } from "./components/Select/Select.js";
36
36
  import { Skeleton as ko, SkeletonCircle as ho, SkeletonTable as Ro } from "./components/Skeleton/Skeleton.js";
37
37
  import { Snackbar as Po } from "./components/Snackbar/Snackbar.js";
38
38
  import { SortTooltip as wo, sortTooltipDefaultTranslations as Oo } from "./components/SortTooltip/SortTooltip.js";
39
39
  import { Stepper as Eo } from "./components/Stepper/Stepper.js";
40
40
  import { StepperNavigator as No } from "./components/StepperNavigator/StepperNavigator.js";
41
- import { TBody as Ko, THead as Lo, Table as Fo, Td as Vo, Th as Wo, Tr as jo } from "./components/Table/Table.js";
41
+ import { TBody as Ko, THead as Lo, Table as Vo, Td as Fo, Th as Wo, Tr as jo } from "./components/Table/Table.js";
42
42
  import { Tabs as zo } from "./components/Tabs/Tabs.js";
43
43
  import { Tag as Qo } from "./components/Tag/Tag.js";
44
44
  import { TextDisplay as Xo } from "./components/TextDisplay/TextDisplay.js";
@@ -48,43 +48,44 @@ import { G as rr } from "./Group-DJz1rK2n.js";
48
48
  import { Tooltip as tr } from "./components/Tooltip/Tooltip.js";
49
49
  import { TransactionRow as ar } from "./components/TransactionRow/TransactionRow.js";
50
50
  import { Text as fr, Typography as xr } from "./components/Typography/Typography.js";
51
- import { DraggableProvider as lr } from "./contexts/DraggableProvider/DraggableProvider.js";
52
- import { SnackbarContext as sr, SnackbarProvider as Tr, useSnackbar as gr } from "./contexts/SnackbarProvider/SnackbarProvider.js";
53
- import { replaceItemsByIndex as ur, replaceItemsByKey as dr, sortItemsByIndex as br, sortItemsByKey as Sr } from "./utils/draggable.js";
54
- import { iconsList as Br } from "./utils/iconsList.js";
55
- import { allowOnlyIntegerNumbers as yr, allowOnlyMathSignals as Dr, allowOnlyNumbers as kr, formatDecimalValue as hr, parseToInteger as Rr } from "./utils/inputNumberAsText.js";
56
- import { bemify as Pr, getBEMBase as vr, getBEMBlock as wr } from "./utils/styleStrings.js";
57
- import { default as Mr } from "./components/Dialog/DialogTitle.js";
58
- import { default as Gr } from "./components/Dialog/Content.js";
59
- import { default as Hr } from "./components/Dialog/Actions.js";
60
- import { R as Lr } from "./RadioOption-CbeBwSaN.js";
61
- import { Tab as Vr } from "./components/Tabs/Tab.js";
62
- import { TabPanel as jr } from "./components/Tabs/TabPanel.js";
51
+ import { VerticalStepper as nr } from "./components/VerticalStepper/VerticalStepper.js";
52
+ import { DraggableProvider as sr } from "./contexts/DraggableProvider/DraggableProvider.js";
53
+ import { SnackbarContext as gr, SnackbarProvider as cr, useSnackbar as ur } from "./contexts/SnackbarProvider/SnackbarProvider.js";
54
+ import { replaceItemsByIndex as Sr, replaceItemsByKey as br, sortItemsByIndex as Cr, sortItemsByKey as Br } from "./utils/draggable.js";
55
+ import { iconsList as yr } from "./utils/iconsList.js";
56
+ import { allowOnlyIntegerNumbers as kr, allowOnlyMathSignals as hr, allowOnlyNumbers as Rr, formatDecimalValue as Ar, parseToInteger as Pr } from "./utils/inputNumberAsText.js";
57
+ import { bemify as wr, getBEMBase as Or, getBEMBlock as Mr } from "./utils/styleStrings.js";
58
+ import { default as Gr } from "./components/Dialog/DialogTitle.js";
59
+ import { default as Hr } from "./components/Dialog/Content.js";
60
+ import { default as Lr } from "./components/Dialog/Actions.js";
61
+ import { R as Fr } from "./RadioOption-BfFnVxxq.js";
62
+ import { Tab as jr } from "./components/Tabs/Tab.js";
63
+ import { TabPanel as zr } from "./components/Tabs/TabPanel.js";
63
64
  export {
64
- Hr as Actions,
65
+ Lr as Actions,
65
66
  e as Adornment,
66
67
  p as Advice,
67
68
  m as Alert,
68
69
  x as Autocomplete,
69
- l as Avatar,
70
+ n as Avatar,
70
71
  s as Badge,
71
72
  g as BankCard,
72
73
  u as BankingCard,
73
- b as Button,
74
+ S as Button,
74
75
  C as Calendar,
75
76
  I as Card,
76
77
  D as Checkbox,
77
78
  h as Chip,
78
79
  v as ConfirmationDialog,
79
- Gr as Content,
80
+ Hr as Content,
80
81
  O as DatePicker,
81
82
  E as Description,
82
83
  N as Dialog,
83
- Mr as DialogTitle,
84
+ Gr as DialogTitle,
84
85
  K as DoubleAutocomplete,
85
- F as DoubleInput,
86
+ V as DoubleInput,
86
87
  W as Draggable,
87
- lr as DraggableProvider,
88
+ sr as DraggableProvider,
88
89
  q as DropdownMenu,
89
90
  J as EllipsisTooltip,
90
91
  U as Fieldset,
@@ -97,9 +98,9 @@ export {
97
98
  xo as Pagination,
98
99
  io as Popover,
99
100
  To as RadioButton,
100
- Lr as RadioOption,
101
+ Fr as RadioOption,
101
102
  co as ResultContainer,
102
- bo as ResultWithChips,
103
+ So as ResultWithChips,
103
104
  R as RowItem,
104
105
  Co as Select,
105
106
  Bo as SelectContext,
@@ -108,19 +109,19 @@ export {
108
109
  ho as SkeletonCircle,
109
110
  Ro as SkeletonTable,
110
111
  Po as Snackbar,
111
- sr as SnackbarContext,
112
- Tr as SnackbarProvider,
112
+ gr as SnackbarContext,
113
+ cr as SnackbarProvider,
113
114
  wo as SortTooltip,
114
115
  Eo as Stepper,
115
116
  No as StepperNavigator,
116
117
  Ko as TBody,
117
118
  Lo as THead,
118
- Vr as Tab,
119
- jr as TabPanel,
120
- Fo as Table,
119
+ jr as Tab,
120
+ zr as TabPanel,
121
+ Vo as Table,
121
122
  zo as Tabs,
122
123
  Qo as Tag,
123
- Vo as Td,
124
+ Fo as Td,
124
125
  fr as Text,
125
126
  Xo as TextDisplay,
126
127
  Wo as Th,
@@ -132,21 +133,22 @@ export {
132
133
  jo as Tr,
133
134
  ar as TransactionRow,
134
135
  xr as Typography,
135
- yr as allowOnlyIntegerNumbers,
136
- Dr as allowOnlyMathSignals,
137
- kr as allowOnlyNumbers,
138
- Pr as bemify,
139
- hr as formatDecimalValue,
140
- vr as getBEMBase,
141
- wr as getBEMBlock,
142
- Br as iconsList,
143
- no as paginationDefaultTranslations,
144
- Rr as parseToInteger,
145
- ur as replaceItemsByIndex,
146
- dr as replaceItemsByKey,
147
- br as sortItemsByIndex,
148
- Sr as sortItemsByKey,
136
+ nr as VerticalStepper,
137
+ kr as allowOnlyIntegerNumbers,
138
+ hr as allowOnlyMathSignals,
139
+ Rr as allowOnlyNumbers,
140
+ wr as bemify,
141
+ Ar as formatDecimalValue,
142
+ Or as getBEMBase,
143
+ Mr as getBEMBlock,
144
+ yr as iconsList,
145
+ lo as paginationDefaultTranslations,
146
+ Pr as parseToInteger,
147
+ Sr as replaceItemsByIndex,
148
+ br as replaceItemsByKey,
149
+ Cr as sortItemsByIndex,
150
+ Br as sortItemsByKey,
149
151
  Oo as sortTooltipDefaultTranslations,
150
152
  yo as useSelectContext,
151
- gr as useSnackbar
153
+ ur as useSnackbar
152
154
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "2.1.74",
4
+ "version": "2.1.77",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",