@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.
package/dist/assets/Stepper.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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,
|
|
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
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"item--active": "_item--
|
|
8
|
-
"item
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */
|
|
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:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
className: o(
|
|
16
|
+
e.item,
|
|
17
|
+
s && e["item--completed"],
|
|
18
|
+
l && e["item--active"],
|
|
19
|
+
r
|
|
20
20
|
),
|
|
21
|
-
"data-testid":
|
|
21
|
+
"data-testid": t["data-testid-item"],
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
31
|
+
i
|
|
28
32
|
);
|
|
29
33
|
}) });
|
|
30
34
|
export {
|
|
31
|
-
|
|
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,
|
|
5
|
+
component: ({ currentStep, steps, classNameItem, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|