ouisys-component-library 3.0.16 → 3.0.19
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/Steps.js +1 -1
- package/dist/Steps.js.map +1 -1
- package/package.json +1 -1
package/dist/Steps.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";var a={steps:"Steps-module_steps__Hi97u",indicator:"Steps-module_indicator__v7JX6",active:"Steps-module_active__WaJOg"};function s(s){var i=s.steps,
|
|
1
|
+
import e from"react";import t from"classnames";var a={steps:"Steps-module_steps__Hi97u",indicator:"Steps-module_indicator__v7JX6",active:"Steps-module_active__WaJOg"};function s(s){var i=s.steps,l=s.activeStep,c=s.className,n=s.title,r=s.subtitle;return e.createElement("div",{className:"".concat(a.steps," ").concat(c||"steps")},n&&e.createElement("div",{className:"title"},n),r&&e.createElement("div",{className:"subtitle"},r),e.createElement("ul",null,i.map((function(s,i){var c,n;return e.createElement("li",{className:t(a.step,(c={},c[a.active]=l===i,c)),key:i},e.createElement("div",{className:t(a.indicator,(n={},n[a.active]=l===i,n))},s.indicatorLabel&&e.createElement("span",null,s.indicatorLabel)),s.title&&e.createElement("span",{className:"title"},s.title),s.subtitle&&e.createElement("span",{className:"subtitle"},s.subtitle),s.description&&e.createElement("span",{className:"description"},s.description),s.children&&s.children)}))))}export{s as Steps};
|
|
2
2
|
//# sourceMappingURL=Steps.js.map
|
package/dist/Steps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Steps.js","sources":["../src/Steps/Steps.tsx"],"sourcesContent":["import React from 'react';\nimport { IStep, IStepsProps } from './Steps.types';\nimport styles from './Steps.module.scss';\nimport cn from 'classnames';\n\nexport function Steps({ steps, activeStep, className, title, subtitle }: IStepsProps) {\n\n\n const renderStep = (step: IStep, index: number) => {\n return (\n <
|
|
1
|
+
{"version":3,"file":"Steps.js","sources":["../src/Steps/Steps.tsx"],"sourcesContent":["import React from 'react';\nimport { IStep, IStepsProps } from './Steps.types';\nimport styles from './Steps.module.scss';\nimport cn from 'classnames';\n\nexport function Steps({ steps, activeStep, className, title, subtitle }: IStepsProps) {\n\n\n const renderStep = (step: IStep, index: number) => {\n return (\n <li className={cn(styles.step, { [styles.active]: activeStep === index })} key={index}>\n <div className={cn(styles.indicator, { [styles.active]: activeStep === index })}>\n {step.indicatorLabel && <span>{step.indicatorLabel}</span>}\n </div>\n {step.title && <span className={'title'}>{step.title}</span>}\n {step.subtitle && <span className={\"subtitle\"}>{step.subtitle}</span>}\n {step.description && <span className={\"description\"}>{step.description}</span>}\n {step.children && step.children}\n </li>)\n }\n\n return (\n <div className={`${styles.steps} ${className || 'steps'}`}>\n {title && <div className={\"title\"}>{title}</div>}\n {subtitle && <div className={\"subtitle\"}>{subtitle}</div>}\n <ul>\n {steps.map(renderStep)}\n </ul>\n </div>\n );\n}\n\n\n"],"names":["Steps","_a","steps","activeStep","className","title","subtitle","React","createElement","concat","styles","map","step","index","cn","active","key","indicator","_b","indicatorLabel","description","children"],"mappings":"uKAKM,SAAUA,EAAMC,GAAE,IAAAC,EAAKD,EAAAC,MAAEC,EAAUF,EAAAE,WAAEC,EAASH,EAAAG,UAAEC,EAAKJ,EAAAI,MAAEC,EAAQL,EAAAK,SAgBnE,OACEC,EAAAC,cAAA,MAAA,CAAKJ,UAAW,GAAGK,OAAAC,EAAOR,MAAS,KAAAO,OAAAL,GAAa,UAC7CC,GAASE,EAAKC,cAAA,MAAA,CAAAJ,UAAW,SAAUC,GACnCC,GAAYC,EAAKC,cAAA,MAAA,CAAAJ,UAAW,YAAaE,GAC1CC,EACGC,cAAA,KAAA,KAAAN,EAAMS,KAlBM,SAACC,EAAaC,WAC/B,OACEN,sBAAIH,UAAWU,EAAGJ,EAAOE,MAAQX,EAAA,CAAA,EAAAA,EAACS,EAAOK,QAASZ,IAAeU,EAAQZ,IAAEe,IAAKH,GAC9EN,EAAKC,cAAA,MAAA,CAAAJ,UAAWU,EAAGJ,EAAOO,WAAaC,EAAA,CAAA,EAAAA,EAACR,EAAOK,QAASZ,IAAeU,EAAKK,KACzEN,EAAKO,gBAAkBZ,EAAAC,cAAA,OAAA,KAAOI,EAAKO,iBAErCP,EAAKP,OAASE,EAAMC,cAAA,OAAA,CAAAJ,UAAW,SAAUQ,EAAKP,OAC9CO,EAAKN,UAAYC,EAAMC,cAAA,OAAA,CAAAJ,UAAW,YAAaQ,EAAKN,UACpDM,EAAKQ,aAAeb,EAAMC,cAAA,OAAA,CAAAJ,UAAW,eAAgBQ,EAAKQ,aAC1DR,EAAKS,UAAYT,EAAKS,SAE7B,KAWF"}
|