@pismo/marola 2.1.32 → 2.1.33

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_1h8au_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_1h8au_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_1h8au_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_1h8au_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_1h8au_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_1h8au_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_1h8au_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1h8au_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1h8au_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1h8au_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1h8au_61,._stepper_1h8au_61 ._item_1h8au_61 ._name_1h8au_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1h8au_65,._stepper_1h8au_61 ._item--active_1h8au_65 ._name_1h8au_61,._stepper_1h8au_61 ._item--completed_1h8au_65 ._counter_1h8au_65,._stepper_1h8au_61 ._item_1h8au_61 ._counter_1h8au_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1h8au_68{text-decoration:line-through}._u-typography-base--underlined_1h8au_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1h8au_74{text-decoration:underline line-through}._stepper_1h8au_61{display:flex;justify-content:space-between;margin:2.5rem auto}._stepper_1h8au_61 ._item_1h8au_61{position:relative;display:flex;flex:1;flex-direction:column;align-items:center}._stepper_1h8au_61 ._item_1h8au_61:before{position:absolute;top:20px;left:-50%;z-index:2;width:100%;content:"";border-bottom:2px solid var(--gray-50);transition:all var(--transition-long)}._stepper_1h8au_61 ._item_1h8au_61:after{position:absolute;top:20px;left:50%;z-index:2;width:100%;content:"";border-bottom:2px solid var(--gray-50);transition:all var(--transition-long)}._stepper_1h8au_61 ._item_1h8au_61 ._counter_1h8au_65{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-bottom:.5rem;line-height:1rem;color:var(--gray-50);background-color:var(--white-100);border:2px solid var(--gray-50);border-radius:50%;transition:all var(--transition-long)}._stepper_1h8au_61 ._item_1h8au_61 ._name_1h8au_61{color:var(--gray-50);text-align:center;transition:all var(--transition-long)}._stepper_1h8au_61 ._item_1h8au_61:first-child:before,._stepper_1h8au_61 ._item_1h8au_61:last-child:after{content:none}._stepper_1h8au_61 ._item--completed_1h8au_65 ._counter_1h8au_65{color:var(--white-100);background-color:var(--secondary-green-dark);border-color:var(--secondary-green-dark);transition:all var(--transition-long)}._stepper_1h8au_61 ._item--completed_1h8au_65 ._name_1h8au_61{font-weight:900;color:var(--secondary-green-dark);transition:all var(--transition-long)}._stepper_1h8au_61 ._item--completed_1h8au_65:after{position:absolute;top:20px;left:50%;z-index:3;width:100%;content:"";border-bottom:2px solid var(--secondary-green-dark);transition:all var(--transition-long)}._stepper_1h8au_61 ._item--active_1h8au_65 ._counter_1h8au_65{font-weight:700;color:var(--secondary-green-dark);background-color:var(--white-100);border-color:var(--secondary-green-dark);transition:all var(--transition-long)}._stepper_1h8au_61 ._item--active_1h8au_65 ._name_1h8au_61{color:var(--gray-75);transition:all var(--transition-long)}
1
+ ._u-typography-h1_1c35a_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_1c35a_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_1c35a_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_1c35a_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_1c35a_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_1c35a_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_1c35a_43,._stepper_1c35a_43 ._item_1c35a_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1c35a_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1c35a_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1c35a_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1c35a_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1c35a_65,._stepper_1c35a_43 ._item_1c35a_43._item--active_1c35a_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1c35a_68{text-decoration:line-through}._u-typography-base--underlined_1c35a_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1c35a_74{text-decoration:underline line-through}._stepper_1c35a_43{display:flex;gap:.3rem;justify-content:space-between;margin:2.5rem auto}._stepper_1c35a_43 ._item_1c35a_43{position:relative;box-sizing:border-box;display:flex;flex:1;gap:.5rem;justify-content:center;align-items:center;padding:.6875rem 0;color:var(--colors-neutral-text-color-text-disabled);transition:color .4s ease}._stepper_1c35a_43 ._item_1c35a_43:before{position:absolute;bottom:0;left:0;width:100%;height:4px;content:" ";background:var(--border-secondary);border-radius:var(--border-radius)}._stepper_1c35a_43 ._item_1c35a_43:after{position:absolute;bottom:0;left:0;width:0%;height:4px;content:" ";background:transparent;border-radius:var(--border-radius);transition:width .4s ease-in-out,background-color .2s ease-in-out}._stepper_1c35a_43 ._item-icon_1c35a_117{animation:_fadeIn_1c35a_1 .6s ease-in-out;line-height:0}._stepper_1c35a_43 ._item_1c35a_43._item--completed_1c35a_121{color:var(--colors-neutral-text-color-text)}._stepper_1c35a_43 ._item_1c35a_43._item--completed_1c35a_121:after{width:100%;color:var(--colors-neutral-text-color-text);background:var(--accent)}._stepper_1c35a_43 ._item_1c35a_43._item--active_1c35a_65{color:var(--colors-neutral-text-color-text)}._stepper_1c35a_43 ._item_1c35a_43._item--active_1c35a_65:after{width:10%;color:var(--colors-neutral-text-color-text);background:var(--accent);transition-delay:.4s}@keyframes _fadeIn_1c35a_1{0%{opacity:0}to{opacity:1}}
@@ -8,9 +8,15 @@ export type StepperProps = {
8
8
  className?: string;
9
9
  /** CSS classes to be applied on the item element */
10
10
  classNameItem?: string;
11
- /** CSS classes to be applied on the counter element */
11
+ /**
12
+ * CSS classes to be applied on the counter element
13
+ * @deprecated This property is deprecated and will be removed in a future version
14
+ */
12
15
  classNameCounter?: string;
13
- /** CSS classes to be applied on the name element */
16
+ /**
17
+ * CSS classes to be applied on the name element
18
+ * @deprecated This property is deprecated and will be removed in a future version
19
+ */
14
20
  classNameName?: string;
15
21
  /** Id to be applied as `data-testid` on the container element */
16
22
  'data-testid'?: string;
@@ -21,5 +27,5 @@ export type StepperProps = {
21
27
  /** Id to be applied as `data-testid` on the name element */
22
28
  'data-testid-name'?: string;
23
29
  };
24
- declare const Stepper: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
30
+ declare const Stepper: ({ currentStep, steps, classNameItem, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
25
31
  export { Stepper };
@@ -1,32 +1,36 @@
1
- import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import { c as s } from "../../clsx-OuTLNxxd.js";
3
- import '../../assets/Stepper.css';const u = "_stepper_1h8au_61", h = "_item_1h8au_61", v = "_name_1h8au_61", N = "_counter_1h8au_65", t = {
4
- stepper: u,
5
- item: h,
6
- name: v,
7
- "item--active": "_item--active_1h8au_65",
8
- "item--completed": "_item--completed_1h8au_65",
9
- counter: N
10
- }, x = ({ currentStep: c = 0, steps: m, classNameItem: d, classNameCounter: o, classNameName: n, ...e }) => /* @__PURE__ */ i("div", { className: s(t.stepper, e.className), "data-testid": e["data-testid"], children: m.map((_, a) => {
11
- const p = a < c, r = a === c;
12
- return /* @__PURE__ */ l(
1
+ import { jsx as c, jsxs as m } from "react/jsx-runtime";
2
+ import { c as o } from "../../clsx-OuTLNxxd.js";
3
+ import { Icon as n } from "../Icon/Icon.js";
4
+ import '../../assets/Stepper.css';const _ = "_stepper_1c35a_43", v = "_item_1c35a_43", e = {
5
+ stepper: _,
6
+ item: v,
7
+ "item--active": "_item--active_1c35a_65",
8
+ "item-icon": "_item-icon_1c35a_117",
9
+ "item--completed": "_item--completed_1c35a_121"
10
+ }, y = ({ currentStep: a = 0, steps: d, classNameItem: r, ...t }) => /* @__PURE__ */ c("div", { className: o(e.stepper, t.className), "data-testid": t["data-testid"], children: d.map((p, i) => {
11
+ const s = i < a, l = i === a;
12
+ return /* @__PURE__ */ m(
13
13
  "div",
14
14
  {
15
- className: s(
16
- t.item,
17
- p && t["item--completed"],
18
- r && t["item--active"],
19
- d
15
+ className: o(
16
+ e.item,
17
+ s && e["item--completed"],
18
+ l && e["item--active"],
19
+ r
20
20
  ),
21
- "data-testid": e["data-testid-item"],
21
+ "data-testid": t["data-testid-item"],
22
22
  children: [
23
- /* @__PURE__ */ i("div", { className: s(t.counter, o), "data-testid": e["data-testid-counter"], children: a + 1 }),
24
- /* @__PURE__ */ i("div", { className: s(t.name, n), "data-testid": e["data-testid-name"], children: _ })
23
+ s && /* @__PURE__ */ c("span", { className: e["item-icon"], children: /* @__PURE__ */ c(n, { icon: "circle-check", color: "var(--colors-brand-primary-color-primary)" }) }),
24
+ /* @__PURE__ */ m("div", { "data-testid": t["data-testid-counter"], children: [
25
+ i + 1,
26
+ "."
27
+ ] }),
28
+ /* @__PURE__ */ c("div", { "data-testid": t["data-testid-name"], children: p })
25
29
  ]
26
30
  },
27
- a
31
+ i
28
32
  );
29
33
  }) });
30
34
  export {
31
- x as Stepper
35
+ y as Stepper
32
36
  };
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { StepperProps } from './Stepper';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ currentStep, steps, classNameItem, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  parameters: {
8
8
  layout: string;
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.32",
4
+ "version": "2.1.33",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",