@scbt-ecom/ui 0.142.0 → 0.143.0

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,2 +1,2 @@
1
- import{jsx as t,jsxs as r}from"react/jsx-runtime";import{ButtonWithHandlers as f}from"../buttonWithHandlers/ButtonWithHandlers.js";import{TextContainer as n}from"./ui/TextContainer.js";import{ResponsiveContainer as x}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import"../../shared/ui/button/Button.js";import"../../shared/ui/buttonIcon/ButtonIcon.js";import"../../../node_modules/classnames/index.js";import{TypeGuards as e}from"../../shared/utils/typeGuards.js";import"react";import"../../shared/ui/calendar/Calendar.js";import"../../shared/ui/calendar/model/utils.js";import"../../shared/ui/accordion/Accordion.js";import"react-hook-form";import"react-dom";import"../../shared/ui/modal/ui/IframeModalContent.js";import"../../../node_modules/react-hot-toast/dist/index.js";import"../../shared/ui/table/ui/primitives/Primitives.js";import"../../shared/ui/carousel/ui/CarouselContent.js";import{CustomLink as h}from"../../shared/ui/customLink/CustomLink.js";import"../../shared/ui/slot/Slot.js";import"../../shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.js";import"../../shared/ui/formElements/uncontrolled/checkbox/Checkbox.js";import"../../shared/ui/formElements/uncontrolled/combobox/combobox.js";import"../../shared/ui/formElements/uncontrolled/dayPicker/DayPicker.js";import"../../shared/ui/formElements/uncontrolled/input/Input.js";import"../../shared/ui/formElements/uncontrolled/inputOtp/InputOtpBase.js";import"../../shared/ui/formElements/uncontrolled/maskInput/MaskInput.js";import"../../shared/ui/formElements/uncontrolled/radio/RadioGroup.js";import"../../shared/ui/formElements/uncontrolled/radio/ui/RadioItem.js";import"../../shared/ui/formElements/uncontrolled/slider/SliderBase.js";import"../../shared/ui/formElements/uncontrolled/switch/Switch.js";import"../../shared/ui/formElements/uncontrolled/textarea/Textarea.js";import"../../shared/ui/formElements/uncontrolled/uploader/UploaderBase.js";import"../../shared/ui/formElements/uncontrolled/inputCurrency/InputCurrency.js";import"../../../src/configs/api.js";import"../../shared/ui/formElements/controlled/editor/ui/Editor.js";import"../../shared/ui/formElements/controlled/input/MaskInputControl.js";import"../../shared/ui/dropdownList/ui/dropdownItem/DropdownItem.js";const tt=({errorText:p,title:m,subtitle:l,buttonProps:s,links:i,images:o,backgroundColor:a="#F4F8FE"})=>t("div",{style:{backgroundColor:a},className:"flex flex-col pb-10 pt-6 desktop:py-20",children:r(x,{className:"flex flex-col desktop:flex-row desktop:justify-between",children:[r("div",{className:"flex flex-col gap-6 desktop:gap-12",children:[r("div",{className:"flex flex-col gap-2 desktop:gap-10",children:[t(n,{errorText:p,subtitle:l,title:m}),e.isObject(o)&&t("div",{className:"flex h-[280px] w-[360px] self-center desktop:hidden",children:t("img",{className:"h-full object-contain",src:o.mobile,alt:o.alt})}),t(f,{className:"mobile:w-full",...s})]}),t("div",{className:"flex flex-row items-center justify-between gap-8 desktop:justify-start",children:e.isArrayFilled(i)&&i.map((c,d)=>t(h,{...c},d))})]}),e.isObject(o)&&t("div",{className:"h-[360px] w-[480px] mobile:hidden",children:t("img",{className:"object-cover",src:o.desktop,alt:o.alt})})]})});export{tt as ErrorPage};
1
+ import{jsx as t,jsxs as r}from"react/jsx-runtime";import{ButtonWithHandlers as f}from"../buttonWithHandlers/ButtonWithHandlers.js";import{TextContainer as n}from"./ui/TextContainer.js";import{ResponsiveContainer as x}from"../../shared/ui/responsiveContainer/ResponsiveContainer.js";import"../../shared/ui/button/Button.js";import"../../shared/ui/buttonIcon/ButtonIcon.js";import"../../../node_modules/classnames/index.js";import{TypeGuards as e}from"../../shared/utils/typeGuards.js";import"react";import"../../shared/ui/calendar/Calendar.js";import"../../shared/ui/calendar/model/utils.js";import"../../shared/ui/accordion/Accordion.js";import"react-hook-form";import"react-dom";import"../../shared/ui/modal/ui/IframeModalContent.js";import"../../../node_modules/react-hot-toast/dist/index.js";import"../../shared/ui/table/ui/primitives/Primitives.js";import"../../shared/ui/carousel/ui/CarouselContent.js";import{CustomLink as h}from"../../shared/ui/customLink/CustomLink.js";import"../../shared/ui/slot/Slot.js";import"../../shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.js";import"../../shared/ui/formElements/uncontrolled/checkbox/Checkbox.js";import"../../shared/ui/formElements/uncontrolled/combobox/combobox.js";import"../../shared/ui/formElements/uncontrolled/dayPicker/DayPicker.js";import"../../shared/ui/formElements/uncontrolled/input/Input.js";import"../../shared/ui/formElements/uncontrolled/inputOtp/InputOtpBase.js";import"../../shared/ui/formElements/uncontrolled/maskInput/MaskInput.js";import"../../shared/ui/formElements/uncontrolled/radio/RadioGroup.js";import"../../shared/ui/formElements/uncontrolled/radio/ui/RadioItem.js";import"../../shared/ui/formElements/uncontrolled/slider/SliderBase.js";import"../../shared/ui/formElements/uncontrolled/switch/Switch.js";import"../../shared/ui/formElements/uncontrolled/textarea/Textarea.js";import"../../shared/ui/formElements/uncontrolled/uploader/UploaderBase.js";import"../../shared/ui/formElements/uncontrolled/inputCurrency/InputCurrency.js";import"../../../src/configs/api.js";import"../../shared/ui/formElements/controlled/editor/ui/Editor.js";import"../../shared/ui/formElements/controlled/input/MaskInputControl.js";import"../../shared/ui/dropdownList/ui/dropdownItem/DropdownItem.js";const tt=({errorText:p,title:m,subtitle:l,buttonProps:s,links:i,images:o,backgroundColor:a="#F4F8FE"})=>t("div",{style:{backgroundColor:a},className:"flex flex-col pb-10 pt-6 desktop:py-20",children:r(x,{className:"flex flex-col desktop:flex-row desktop:justify-between",children:[r("div",{className:"flex flex-col gap-6 desktop:gap-12",children:[r("div",{className:"flex flex-col gap-2 desktop:gap-10",children:[t(n,{errorText:p,subtitle:l,title:m}),e.isObject(o)&&t("div",{className:"flex h-[280px] w-[360px] self-center desktop:hidden",children:t("img",{className:"h-full object-contain",src:o.mobile,alt:o.alt})}),t(f,{className:"mobile:w-full",...s})]}),t("div",{className:"flex flex-row items-center justify-between gap-8 desktop:justify-start",children:e.isArrayFilled(i)&&i.map((c,d)=>t(h,{...c},d))})]}),e.isObject(o)&&t("div",{className:"h-[360px] w-[480px] mobile:hidden",children:t("img",{className:"object-cover",src:o.desktop,alt:o.alt})})]})});export{tt as ErrorPage,tt as default};
2
2
  //# sourceMappingURL=ErrorPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.js","sources":["../../../../lib/widgets/errorPage/ErrorPage.tsx"],"sourcesContent":["import { type BackgroundBannerColors } from '../../shared/constants'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../buttonWithHandlers'\nimport { TextContainer, type TextContainerProps } from './ui/TextContainer'\nimport { type Images } from '$/shared/types/shared-types'\nimport { CustomLink, type CustomLinkProps, ResponsiveContainer } from '$/shared/ui'\nimport { TypeGuards } from '$/shared/utils'\n\nexport interface ErrorPageProps extends TextContainerProps {\n buttonProps: ButtonWithHandlersProps\n links: CustomLinkProps[]\n images: Images\n backgroundColor?: BackgroundBannerColors\n}\n\nexport const ErrorPage = ({\n errorText,\n title,\n subtitle,\n buttonProps,\n links,\n images,\n backgroundColor = '#F4F8FE'\n}: ErrorPageProps) => {\n return (\n <div style={{ backgroundColor }} className='flex flex-col pb-10 pt-6 desktop:py-20'>\n <ResponsiveContainer className='flex flex-col desktop:flex-row desktop:justify-between'>\n <div className='flex flex-col gap-6 desktop:gap-12'>\n <div className='flex flex-col gap-2 desktop:gap-10'>\n <TextContainer errorText={errorText} subtitle={subtitle} title={title} />\n\n {TypeGuards.isObject(images) && (\n <div className='flex h-[280px] w-[360px] self-center desktop:hidden'>\n <img className='h-full object-contain' src={images.mobile} alt={images.alt} />\n </div>\n )}\n\n <ButtonWithHandlers className='mobile:w-full' {...buttonProps} />\n </div>\n <div className='flex flex-row items-center justify-between gap-8 desktop:justify-start'>\n {TypeGuards.isArrayFilled(links) && links.map((link, index) => <CustomLink key={index} {...link} />)}\n </div>\n </div>\n {TypeGuards.isObject(images) && (\n <div className='h-[360px] w-[480px] mobile:hidden'>\n <img className='object-cover' src={images.desktop} alt={images.alt} />\n </div>\n )}\n </ResponsiveContainer>\n </div>\n )\n}\n"],"names":["ErrorPage","errorText","title","subtitle","buttonProps","links","images","backgroundColor","jsx","jsxs","ResponsiveContainer","TextContainer","TypeGuards","ButtonWithHandlers","link","index","CustomLink"],"mappings":"ouEAcO,MAAMA,GAAY,CAAC,CACxB,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,SACpB,IAEIC,EAAC,MAAA,CAAI,MAAO,CAAE,gBAAAD,CAAA,EAAmB,UAAU,yCACzC,SAAAE,EAACC,EAAA,CAAoB,UAAU,yDAC7B,SAAA,CAAAD,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAD,EAACG,EAAA,CAAc,UAAAV,EAAsB,SAAAE,EAAoB,MAAAD,CAAA,CAAc,EAEtEU,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,sDACb,SAAAA,EAAC,MAAA,CAAI,UAAU,wBAAwB,IAAKF,EAAO,OAAQ,IAAKA,EAAO,IAAK,EAC9E,EAGFE,EAACK,EAAA,CAAmB,UAAU,gBAAiB,GAAGT,CAAA,CAAa,CAAA,EACjE,IACC,MAAA,CAAI,UAAU,yEACZ,SAAAQ,EAAW,cAAcP,CAAK,GAAKA,EAAM,IAAI,CAACS,EAAMC,IAAUP,EAACQ,EAAA,CAAwB,GAAGF,CAAA,EAAXC,CAAiB,CAAE,CAAA,CACrG,CAAA,EACF,EACCH,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,oCACb,SAAAA,EAAC,MAAA,CAAI,UAAU,eAAe,IAAKF,EAAO,QAAS,IAAKA,EAAO,IAAK,CAAA,CACtE,CAAA,CAAA,CAEJ,CAAA,CACF"}
1
+ {"version":3,"file":"ErrorPage.js","sources":["../../../../lib/widgets/errorPage/ErrorPage.tsx"],"sourcesContent":["import { type BackgroundBannerColors } from '../../shared/constants'\nimport { ButtonWithHandlers, type ButtonWithHandlersProps } from '../buttonWithHandlers'\nimport { TextContainer, type TextContainerProps } from './ui/TextContainer'\nimport { type Images } from '$/shared/types/shared-types'\nimport { CustomLink, type CustomLinkProps, ResponsiveContainer } from '$/shared/ui'\nimport { TypeGuards } from '$/shared/utils'\n\nexport interface ErrorPageProps extends TextContainerProps {\n buttonProps: ButtonWithHandlersProps\n links: CustomLinkProps[]\n images: Images\n backgroundColor?: BackgroundBannerColors\n}\n\nexport const ErrorPage = ({\n errorText,\n title,\n subtitle,\n buttonProps,\n links,\n images,\n backgroundColor = '#F4F8FE'\n}: ErrorPageProps) => {\n return (\n <div style={{ backgroundColor }} className='flex flex-col pb-10 pt-6 desktop:py-20'>\n <ResponsiveContainer className='flex flex-col desktop:flex-row desktop:justify-between'>\n <div className='flex flex-col gap-6 desktop:gap-12'>\n <div className='flex flex-col gap-2 desktop:gap-10'>\n <TextContainer errorText={errorText} subtitle={subtitle} title={title} />\n\n {TypeGuards.isObject(images) && (\n <div className='flex h-[280px] w-[360px] self-center desktop:hidden'>\n <img className='h-full object-contain' src={images.mobile} alt={images.alt} />\n </div>\n )}\n\n <ButtonWithHandlers className='mobile:w-full' {...buttonProps} />\n </div>\n <div className='flex flex-row items-center justify-between gap-8 desktop:justify-start'>\n {TypeGuards.isArrayFilled(links) && links.map((link, index) => <CustomLink key={index} {...link} />)}\n </div>\n </div>\n {TypeGuards.isObject(images) && (\n <div className='h-[360px] w-[480px] mobile:hidden'>\n <img className='object-cover' src={images.desktop} alt={images.alt} />\n </div>\n )}\n </ResponsiveContainer>\n </div>\n )\n}\n\nexport default ErrorPage\n"],"names":["ErrorPage","errorText","title","subtitle","buttonProps","links","images","backgroundColor","jsx","jsxs","ResponsiveContainer","TextContainer","TypeGuards","ButtonWithHandlers","link","index","CustomLink"],"mappings":"ouEAcO,MAAMA,GAAY,CAAC,CACxB,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,SACpB,IAEIC,EAAC,MAAA,CAAI,MAAO,CAAE,gBAAAD,CAAA,EAAmB,UAAU,yCACzC,SAAAE,EAACC,EAAA,CAAoB,UAAU,yDAC7B,SAAA,CAAAD,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAA,EAAC,MAAA,CAAI,UAAU,qCACb,SAAA,CAAAD,EAACG,EAAA,CAAc,UAAAV,EAAsB,SAAAE,EAAoB,MAAAD,CAAA,CAAc,EAEtEU,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,sDACb,SAAAA,EAAC,MAAA,CAAI,UAAU,wBAAwB,IAAKF,EAAO,OAAQ,IAAKA,EAAO,IAAK,EAC9E,EAGFE,EAACK,EAAA,CAAmB,UAAU,gBAAiB,GAAGT,CAAA,CAAa,CAAA,EACjE,IACC,MAAA,CAAI,UAAU,yEACZ,SAAAQ,EAAW,cAAcP,CAAK,GAAKA,EAAM,IAAI,CAACS,EAAMC,IAAUP,EAACQ,EAAA,CAAwB,GAAGF,CAAA,EAAXC,CAAiB,CAAE,CAAA,CACrG,CAAA,EACF,EACCH,EAAW,SAASN,CAAM,GACzBE,EAAC,MAAA,CAAI,UAAU,oCACb,SAAAA,EAAC,MAAA,CAAI,UAAU,eAAe,IAAKF,EAAO,QAAS,IAAKA,EAAO,IAAK,CAAA,CACtE,CAAA,CAAA,CAEJ,CAAA,CACF"}