ouisys-component-library 3.1.6 → 3.1.7
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/ProductArea.js +1 -1
- package/dist/ProductArea.js.map +1 -1
- package/package.json +1 -1
package/dist/ProductArea.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{M as t}from"./Menu-7cd0defb.js";import"tslib";import"classnames";import"./routes-f383fd8f.js";var r=function(t){var r=t.active,a=void 0===r?1:r,l=t.steps,s=void 0===l?[{id:1,text:"stepBarText1"},{id:2,text:"stepBarText2"}]:l,o=s[a>0?a-1:0];return e.createElement("div",{className:"steps-progress-bar"},e.createElement("div",{className:"step-wrapper"},e.createElement("div",{className:"step"},o.text,e.createElement("div",{className:"bar-container"},s.map((function(t,r){return e.createElement("div",{key:t.id,className:"bar ".concat(null==t?void 0:t.id," bar-").concat(r," ").concat(r<a?"full":r>a?"gray":"")})}))))),e.createElement("div",{className:"progress-bar-wrapper start"},e.createElement("progress",null)))},a=function(a){var l,s,o,i,n=a.locale,c=void 0===n?"en":n,d=a.step,m=a.pageConfigs;return(null===(l=null==d?void 0:d.steps)||void 0===l?void 0:l.length)?e.createElement(r,{active:d.active,steps:d.steps||[]}):(null===(s=null==m?void 0:m.productAreaImg)||void 0===s?void 0:s.url)?e.createElement("section",{className:"subscription__content"},e.createElement("img",{src:null===(o=null==m?void 0:m.productAreaImg)||void 0===o?void 0:o.url,alt:"creative",id:"product-area-img"}),(null==m?void 0:m.isShowMenu)&&e.createElement(t,{logoUrl:(null===(i=null==m?void 0:m.logo)||void 0===i?void 0:i.url)||"",locale:c,labels:{menu:"Menu"}})):null};export{a as ProductArea};
|
|
1
|
+
import e from"react";import{M as t}from"./Menu-7cd0defb.js";import"tslib";import"classnames";import"./routes-f383fd8f.js";var r=function(t){var r=t.active,a=void 0===r?1:r,l=t.steps,s=void 0===l?[{id:1,text:"stepBarText1"},{id:2,text:"stepBarText2"}]:l,o=s[a>0?a-1:0];return e.createElement("div",{id:"steps-progress-bar",className:"steps-progress-bar"},e.createElement("div",{className:"step-wrapper"},e.createElement("div",{className:"step"},o.text,e.createElement("div",{className:"bar-container"},s.map((function(t,r){return e.createElement("div",{key:t.id,className:"bar ".concat(null==t?void 0:t.id," bar-").concat(r," ").concat(r<a?"full":r>a?"gray":"")})}))))),e.createElement("div",{className:"progress-bar-wrapper start"},e.createElement("progress",null)))},a=function(a){var l,s,o,i,n=a.locale,c=void 0===n?"en":n,d=a.step,m=a.pageConfigs;return(null===(l=null==d?void 0:d.steps)||void 0===l?void 0:l.length)?e.createElement(r,{active:d.active,steps:d.steps||[]}):(null===(s=null==m?void 0:m.productAreaImg)||void 0===s?void 0:s.url)?e.createElement("section",{className:"subscription__content"},e.createElement("img",{src:null===(o=null==m?void 0:m.productAreaImg)||void 0===o?void 0:o.url,alt:"creative",id:"product-area-img"}),(null==m?void 0:m.isShowMenu)&&e.createElement(t,{logoUrl:(null===(i=null==m?void 0:m.logo)||void 0===i?void 0:i.url)||"",locale:c,labels:{menu:"Menu"}})):null};export{a as ProductArea};
|
|
2
2
|
//# sourceMappingURL=ProductArea.js.map
|
package/dist/ProductArea.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductArea.js","sources":["../src/StepsProgressBar/StepsProgressBar.tsx","../src/ProductArea/ProductArea.tsx"],"sourcesContent":["import React from 'react';\nimport { IStepsProgressBar } from './StepsProgressBar.types';\n\nexport const StepsProgressBar = ({\n active = 1,\n steps = [\n {\n id: 1,\n text: 'stepBarText1'\n },\n {\n id: 2,\n text: 'stepBarText2'\n }\n ]\n}: IStepsProgressBar) => {\n const currentStep = steps[active > 0 ? active - 1 : 0];\n\n return (\n <div className=\"steps-progress-bar\">\n <div className=\"step-wrapper\">\n <div className=\"step\">\n {currentStep.text}\n <div className=\"bar-container\">\n {steps.map((step, index) => (\n <div\n key={step.id}\n className={`bar ${step?.id} bar-${index} ${index < active ? 'full' : index > active ? 'gray' : ''}`}\n />\n ))}\n </div>\n </div>\n </div>\n <div className=\"progress-bar-wrapper start\">\n <progress />\n </div>\n </div>\n );\n};\n","import React from 'react';\nimport { Menu } from '../Menu/Menu';\nimport { StepsProgressBar } from '../StepsProgressBar/StepsProgressBar';\nimport { InterfaceFeatures } from './ProductArea.types';\n\nexport const ProductArea = ({ locale = 'en' as string, step, pageConfigs }: InterfaceFeatures) => {\n if (step?.steps?.length) {\n return <StepsProgressBar active={step.active} steps={step.steps || []} />;\n }\n\n if (!pageConfigs?.productAreaImg?.url) return null;\n\n return (\n <section className=\"subscription__content\">\n <img src={pageConfigs?.productAreaImg?.url} alt=\"creative\" id=\"product-area-img\" />\n {pageConfigs?.isShowMenu && (\n <Menu\n logoUrl={pageConfigs?.logo?.url || ''}\n locale={locale}\n labels={{\n menu: 'Menu'\n }}\n />\n )}\n </section>\n );\n};\n"],"names":["StepsProgressBar","_a","_b","active","_c","steps","id","text","currentStep","React","
|
|
1
|
+
{"version":3,"file":"ProductArea.js","sources":["../src/StepsProgressBar/StepsProgressBar.tsx","../src/ProductArea/ProductArea.tsx"],"sourcesContent":["import React from 'react';\nimport { IStepsProgressBar } from './StepsProgressBar.types';\n\nexport const StepsProgressBar = ({\n active = 1,\n steps = [\n {\n id: 1,\n text: 'stepBarText1'\n },\n {\n id: 2,\n text: 'stepBarText2'\n }\n ]\n}: IStepsProgressBar) => {\n const currentStep = steps[active > 0 ? active - 1 : 0];\n\n return (\n <div id=\"steps-progress-bar\" className=\"steps-progress-bar\">\n <div className=\"step-wrapper\">\n <div className=\"step\">\n {currentStep.text}\n <div className=\"bar-container\">\n {steps.map((step, index) => (\n <div\n key={step.id}\n className={`bar ${step?.id} bar-${index} ${index < active ? 'full' : index > active ? 'gray' : ''}`}\n />\n ))}\n </div>\n </div>\n </div>\n <div className=\"progress-bar-wrapper start\">\n <progress />\n </div>\n </div>\n );\n};\n","import React from 'react';\nimport { Menu } from '../Menu/Menu';\nimport { StepsProgressBar } from '../StepsProgressBar/StepsProgressBar';\nimport { InterfaceFeatures } from './ProductArea.types';\n\nexport const ProductArea = ({ locale = 'en' as string, step, pageConfigs }: InterfaceFeatures) => {\n if (step?.steps?.length) {\n return <StepsProgressBar active={step.active} steps={step.steps || []} />;\n }\n\n if (!pageConfigs?.productAreaImg?.url) return null;\n\n return (\n <section className=\"subscription__content\">\n <img src={pageConfigs?.productAreaImg?.url} alt=\"creative\" id=\"product-area-img\" />\n {pageConfigs?.isShowMenu && (\n <Menu\n logoUrl={pageConfigs?.logo?.url || ''}\n locale={locale}\n labels={{\n menu: 'Menu'\n }}\n />\n )}\n </section>\n );\n};\n"],"names":["StepsProgressBar","_a","_b","active","_c","steps","id","text","currentStep","React","className","createElement","map","step","index","key","concat","ProductArea","_f","locale","pageConfigs","length","productAreaImg","url","src","_d","alt","isShowMenu","Menu","logoUrl","_e","logo","labels","menu"],"mappings":"0HAGO,IAAMA,EAAmB,SAACC,OAC/BC,EAAUD,EAAAE,OAAVA,OAAS,IAAAD,EAAA,IACTE,EAAAH,EAAAI,MAAAA,OAAQ,IAAAD,EAAA,CACN,CACEE,GAAI,EACJC,KAAM,gBAER,CACED,GAAI,EACJC,KAAM,iBAETH,EAEKI,EAAcH,EAAMF,EAAS,EAAIA,EAAS,EAAI,GAEpD,OACEM,uBAAKH,GAAG,qBAAqBI,UAAU,sBACrCD,EAAKE,cAAA,MAAA,CAAAD,UAAU,gBACbD,EAAKE,cAAA,MAAA,CAAAD,UAAU,QACZF,EAAYD,KACbE,EAAAE,cAAA,MAAA,CAAKD,UAAU,iBACZL,EAAMO,KAAI,SAACC,EAAMC,GAAU,OAC1BL,EACEE,cAAA,MAAA,CAAAI,IAAKF,EAAKP,GACVI,UAAW,OAAAM,OAAOH,aAAI,EAAJA,EAAMP,GAAU,SAAAU,OAAAF,EAAS,KAAAE,OAAAF,EAAQX,EAAS,OAASW,EAAQX,EAAS,OAAS,YAMzGM,EAAKE,cAAA,MAAA,CAAAD,U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