ecars-web-lib 1.0.6 → 1.0.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/_virtual/index.js +2 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +2 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/components/Accordion/AccordionComponent.js +2 -0
- package/dist/components/Accordion/AccordionComponent.js.map +1 -0
- package/dist/components/Accordion/components/AccordionArrow.js +2 -0
- package/dist/components/Accordion/components/AccordionArrow.js.map +1 -0
- package/dist/components/Accordion/components/AccordionBlock.js +2 -0
- package/dist/components/Accordion/components/AccordionBlock.js.map +1 -0
- package/dist/components/Accordion/components/AccordionButton.js +2 -0
- package/dist/components/Accordion/components/AccordionButton.js.map +1 -0
- package/dist/components/Accordion/components/AccordionContent.js +2 -0
- package/dist/components/Accordion/components/AccordionContent.js.map +1 -0
- package/dist/components/Accordion/components/AccordionLayout.js +2 -0
- package/dist/components/Accordion/components/AccordionLayout.js.map +1 -0
- package/dist/components/Accordion/components/AccordionTitle.js +2 -0
- package/dist/components/Accordion/components/AccordionTitle.js.map +1 -0
- package/dist/components/Accordion/constants.js +2 -0
- package/dist/components/Accordion/constants.js.map +1 -0
- package/dist/components/Accordion/index.js +2 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Button/Button.js +2 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/constants.js +2 -0
- package/dist/components/Button/constants.js.map +1 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.js +2 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.js.map +1 -0
- package/dist/components/ButtonWithIcon/constants.js +2 -0
- package/dist/components/ButtonWithIcon/constants.js.map +1 -0
- package/dist/components/Category/Category.js +2 -0
- package/dist/components/Category/Category.js.map +1 -0
- package/dist/components/Category/constants.js +2 -0
- package/dist/components/Category/constants.js.map +1 -0
- package/dist/components/Checkbox/CheckboxComponent.js +2 -0
- package/dist/components/Checkbox/CheckboxComponent.js.map +1 -0
- package/dist/components/Checkbox/components/CheckboxBlock.js +2 -0
- package/dist/components/Checkbox/components/CheckboxBlock.js.map +1 -0
- package/dist/components/Checkbox/components/CheckboxIndicator.js +2 -0
- package/dist/components/Checkbox/components/CheckboxIndicator.js.map +1 -0
- package/dist/components/Checkbox/components/CheckboxInput.js +2 -0
- package/dist/components/Checkbox/components/CheckboxInput.js.map +1 -0
- package/dist/components/Checkbox/constants.js +2 -0
- package/dist/components/Checkbox/constants.js.map +1 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Dropdown/DropdownComponent.js +2 -0
- package/dist/components/Dropdown/DropdownComponent.js.map +1 -0
- package/dist/components/Dropdown/components/DropdownBlock.js +2 -0
- package/dist/components/Dropdown/components/DropdownBlock.js.map +1 -0
- package/dist/components/Dropdown/components/DropdownCategory.js +2 -0
- package/dist/components/Dropdown/components/DropdownCategory.js.map +1 -0
- package/dist/components/Dropdown/components/DropdownList.js +2 -0
- package/dist/components/Dropdown/components/DropdownList.js.map +1 -0
- package/dist/components/Dropdown/components/DropdownOption.js +2 -0
- package/dist/components/Dropdown/components/DropdownOption.js.map +1 -0
- package/dist/components/Dropdown/constants.js +2 -0
- package/dist/components/Dropdown/constants.js.map +1 -0
- package/dist/components/Dropdown/index.js +2 -0
- package/dist/components/Dropdown/index.js.map +1 -0
- package/dist/components/FavButton/FavButton.js +2 -0
- package/dist/components/FavButton/FavButton.js.map +1 -0
- package/dist/components/FavButton/constants.js +2 -0
- package/dist/components/FavButton/constants.js.map +1 -0
- package/dist/components/Field/FieldComponent.js +2 -0
- package/dist/components/Field/FieldComponent.js.map +1 -0
- package/dist/components/Field/components/FieldError.js +2 -0
- package/dist/components/Field/components/FieldError.js.map +1 -0
- package/dist/components/Field/components/FieldLabel.js +2 -0
- package/dist/components/Field/components/FieldLabel.js.map +1 -0
- package/dist/components/Field/constants.js +2 -0
- package/dist/components/Field/constants.js.map +1 -0
- package/dist/components/Field/index.js +2 -0
- package/dist/components/Field/index.js.map +1 -0
- package/dist/components/FilterAccordion/FilterAccordionComponent.js +2 -0
- package/dist/components/FilterAccordion/FilterAccordionComponent.js.map +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionArrow.js +2 -0
- package/dist/components/FilterAccordion/components/FilterAccordionArrow.js.map +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionBlock.js +2 -0
- package/dist/components/FilterAccordion/components/FilterAccordionBlock.js.map +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionContent.js +2 -0
- package/dist/components/FilterAccordion/components/FilterAccordionContent.js.map +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionLayout.js +2 -0
- package/dist/components/FilterAccordion/components/FilterAccordionLayout.js.map +1 -0
- package/dist/components/FilterAccordion/components/FilterAccordionReset.js +2 -0
- package/dist/components/FilterAccordion/components/FilterAccordionReset.js.map +1 -0
- package/dist/components/FilterAccordion/constants.js +2 -0
- package/dist/components/FilterAccordion/constants.js.map +1 -0
- package/dist/components/FilterAccordion/index.js +2 -0
- package/dist/components/FilterAccordion/index.js.map +1 -0
- package/dist/components/FilterButton/FilterButton.js +2 -0
- package/dist/components/FilterButton/FilterButton.js.map +1 -0
- package/dist/components/Gallery/Gallery.js +2 -0
- package/dist/components/Gallery/Gallery.js.map +1 -0
- package/dist/components/Input/Input.js +2 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/constants.js +2 -0
- package/dist/components/Input/constants.js.map +1 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.js +2 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -0
- package/dist/components/LinkWithIcon/constants.js +2 -0
- package/dist/components/LinkWithIcon/constants.js.map +1 -0
- package/dist/components/NavLink/NavLink.js +2 -0
- package/dist/components/NavLink/NavLink.js.map +1 -0
- package/dist/components/Pagination/PaginationComponent.js +2 -0
- package/dist/components/Pagination/PaginationComponent.js.map +1 -0
- package/dist/components/Pagination/components/PaginationArrow.js +2 -0
- package/dist/components/Pagination/components/PaginationArrow.js.map +1 -0
- package/dist/components/Pagination/components/PaginationBody.js +2 -0
- package/dist/components/Pagination/components/PaginationBody.js.map +1 -0
- package/dist/components/Pagination/components/PaginationPage.js +2 -0
- package/dist/components/Pagination/components/PaginationPage.js.map +1 -0
- package/dist/components/Pagination/constants.js +2 -0
- package/dist/components/Pagination/constants.js.map +1 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.js +2 -0
- package/dist/components/RangeSlider/RangeSlider.js.map +1 -0
- package/dist/components/RouterLink/RouterLink.js +2 -0
- package/dist/components/RouterLink/RouterLink.js.map +1 -0
- package/dist/components/RouterLink/constants.js +2 -0
- package/dist/components/RouterLink/constants.js.map +1 -0
- package/dist/components/Select/SelectComponent.js +2 -0
- package/dist/components/Select/SelectComponent.js.map +1 -0
- package/dist/components/Select/components/SelectArrow.js +2 -0
- package/dist/components/Select/components/SelectArrow.js.map +1 -0
- package/dist/components/Select/components/SelectBlock.js +2 -0
- package/dist/components/Select/components/SelectBlock.js.map +1 -0
- package/dist/components/Select/components/SelectInput.js +2 -0
- package/dist/components/Select/components/SelectInput.js.map +1 -0
- package/dist/components/Select/components/SelectList.js +2 -0
- package/dist/components/Select/components/SelectList.js.map +1 -0
- package/dist/components/Select/components/SelectOption.js +2 -0
- package/dist/components/Select/components/SelectOption.js.map +1 -0
- package/dist/components/Select/components/SelectWrapper.js +2 -0
- package/dist/components/Select/components/SelectWrapper.js.map +1 -0
- package/dist/components/Select/constants.js +2 -0
- package/dist/components/Select/constants.js.map +1 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Slider/SliderComponent.js +2 -0
- package/dist/components/Slider/SliderComponent.js.map +1 -0
- package/dist/components/Slider/constants.js +2 -0
- package/dist/components/Slider/constants.js.map +1 -0
- package/dist/components/Slider/index.js +2 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/SliderNavigate/SliderNavigate.js +2 -0
- package/dist/components/SliderNavigate/SliderNavigate.js.map +1 -0
- package/dist/components/SliderNavigate/components/NavigateButton.js +2 -0
- package/dist/components/SliderNavigate/components/NavigateButton.js.map +1 -0
- package/dist/components/SliderNavigate/constants.js +2 -0
- package/dist/components/SliderNavigate/constants.js.map +1 -0
- package/dist/index.js +1 -191
- package/dist/index.js.map +1 -1
- package/dist/node_modules/cookie/dist/index.js +2 -0
- package/dist/node_modules/cookie/dist/index.js.map +1 -0
- package/dist/node_modules/react-icons/ai/index.js +2 -0
- package/dist/node_modules/react-icons/ai/index.js.map +1 -0
- package/dist/node_modules/react-icons/fa6/index.js +2 -0
- package/dist/node_modules/react-icons/fa6/index.js.map +1 -0
- package/dist/node_modules/react-icons/io/index.js +2 -0
- package/dist/node_modules/react-icons/io/index.js.map +1 -0
- package/dist/node_modules/react-icons/lib/iconBase.js +2 -0
- package/dist/node_modules/react-icons/lib/iconBase.js.map +1 -0
- package/dist/node_modules/react-icons/lib/iconContext.js +2 -0
- package/dist/node_modules/react-icons/lib/iconContext.js.map +1 -0
- package/dist/node_modules/react-icons/md/index.js +2 -0
- package/dist/node_modules/react-icons/md/index.js.map +1 -0
- package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js +13 -0
- package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js.map +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js +2 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.js +2 -0
- package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js +2 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.js +2 -0
- package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
- package/dist/node_modules/swiper/shared/utils.js +2 -0
- package/dist/node_modules/swiper/shared/utils.js.map +1 -0
- package/dist/node_modules/swiper/swiper-react.js +2 -0
- package/dist/node_modules/swiper/swiper-react.js.map +1 -0
- package/dist/services/helpers.js +2 -0
- package/dist/services/helpers.js.map +1 -0
- package/dist/services/hoc/withBlockClass.js +2 -0
- package/dist/services/hoc/withBlockClass.js.map +1 -0
- package/dist/services/hooks/useAccordionHeight.js +2 -0
- package/dist/services/hooks/useAccordionHeight.js.map +1 -0
- package/dist/services/hooks/useClickOutside.js +2 -0
- package/dist/services/hooks/useClickOutside.js.map +1 -0
- package/dist/services/hooks/useMatchMedia.js +2 -0
- package/dist/services/hooks/useMatchMedia.js.map +1 -0
- package/dist/services/icons.js +2 -0
- package/dist/services/icons.js.map +1 -0
- package/dist/services/mocks.js +2 -0
- package/dist/services/mocks.js.map +1 -0
- package/package.json +1 -1
- /package/dist/assets/{index.css → global.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationComponent.js","sources":["../../../lib/components/Pagination/PaginationComponent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {PaginationProps} from '@/components/Pagination/constants';\nimport {PAGINATION_TEST_ID} from '@/components/Pagination/constants';\nimport type {ElementProps} from '@/services/types';\nimport {cn} from '@/services/helpers';\nimport {Pagination} from '@/components/Pagination';\n\nexport interface Props extends PaginationProps, ElementProps {}\n\nexport const PaginationComponent: FC<Props> = ({block, ...props}) => (\n <div\n data-testid={PAGINATION_TEST_ID}\n className={cn(block, 'pagination')}\n >\n <Pagination.Body {...props} />\n </div>\n);\n"],"names":["PaginationComponent","block","props","jsx","PAGINATION_TEST_ID","cn","Pagination"],"mappings":"gNASaA,EAAiC,CAAC,CAAC,MAAAC,EAAO,GAAGC,CACxD,IAAAC,EAAA,IAAC,MAAA,CACC,cAAaC,EAAA,mBACb,UAAWC,EAAAA,GAAGJ,EAAO,YAAY,EAEjC,SAACE,EAAAA,IAAAG,EAAAA,WAAW,KAAX,CAAiB,GAAGJ,CAAO,CAAA,CAAA,CAC9B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../../../services/icons.js"),r=require("../constants.js"),s=({onClick:o,direction:a,disabled:e=!1})=>{const i=()=>a===r.PAGINATION_ARROW_DIRECTION.LEFT?t.jsx(n.Icons.ArrowNarrowLeft,{"data-testid":r.PAGINATION_ARROW_LEFT_TEST_ID,className:"pagination__arrow"}):t.jsx(n.Icons.ArrowNarrowRight,{"data-testid":r.PAGINATION_ARROW_RIGHT_TEST_ID,className:"pagination__arrow"});return t.jsx("button",{type:"button",onClick:o,disabled:e,className:"pagination__button",children:i()})};exports.PaginationArrow=s;
|
|
2
|
+
//# sourceMappingURL=PaginationArrow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationArrow.js","sources":["../../../../lib/components/Pagination/components/PaginationArrow.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Icons} from '@/services/icons';\nimport type {PaginationArrowDirection} from '@/components/Pagination/constants';\nimport {\n PAGINATION_ARROW_DIRECTION,\n PAGINATION_ARROW_LEFT_TEST_ID,\n PAGINATION_ARROW_RIGHT_TEST_ID,\n} from '@/components/Pagination/constants';\n\nexport interface Props {\n direction: PaginationArrowDirection;\n disabled?: boolean;\n onClick: () => void;\n}\n\nexport const PaginationArrow: FC<Props> = ({onClick, direction, disabled = false}) => {\n const handleDirection = () => {\n if (direction === PAGINATION_ARROW_DIRECTION.LEFT) {\n return (\n <Icons.ArrowNarrowLeft\n data-testid={PAGINATION_ARROW_LEFT_TEST_ID}\n className=\"pagination__arrow\"\n />\n );\n }\n return (\n <Icons.ArrowNarrowRight\n data-testid={PAGINATION_ARROW_RIGHT_TEST_ID}\n className=\"pagination__arrow\"\n />\n );\n };\n\n return (\n <button\n type=\"button\"\n onClick={onClick}\n disabled={disabled}\n className=\"pagination__button\"\n >\n {handleDirection()}\n </button>\n );\n};\n"],"names":["PaginationArrow","onClick","direction","disabled","handleDirection","PAGINATION_ARROW_DIRECTION","jsx","Icons","PAGINATION_ARROW_LEFT_TEST_ID","PAGINATION_ARROW_RIGHT_TEST_ID"],"mappings":"0LAeaA,EAA6B,CAAC,CAAC,QAAAC,EAAS,UAAAC,EAAW,SAAAC,EAAW,MAAW,CACpF,MAAMC,EAAkB,IAClBF,IAAcG,6BAA2B,KAEzCC,EAAA,IAACC,EAAAA,MAAM,gBAAN,CACC,cAAaC,EAAA,8BACb,UAAU,mBAAA,CACZ,EAIFF,EAAA,IAACC,EAAAA,MAAM,iBAAN,CACC,cAAaE,EAAA,+BACb,UAAU,mBAAA,CACZ,EAKF,OAAAH,EAAA,IAAC,SAAA,CACC,KAAK,SACL,QAAAL,EACA,SAAAE,EACA,UAAU,qBAET,SAAgBC,EAAA,CAAA,CACnB,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("../index.js"),j=({pages:s,currentPage:t,onPageClick:a,onPrevClick:r,onNextClick:d,isLoading:e=!1})=>{const c=t===1||e,l=t===s.at(-1)||e,P=()=>s.map(i=>{const b=i===t,g=()=>{a(i)};return n.jsx(o.Pagination.Page,{isSelected:b,onClick:g,disabled:e,page:i},i)});return n.jsxs("div",{className:"pagination__body",children:[n.jsx(o.Pagination.Arrow,{disabled:c,onClick:r,direction:"left"}),P(),n.jsx(o.Pagination.Arrow,{disabled:l,onClick:d,direction:"right"})]})};exports.PaginationBody=j;
|
|
2
|
+
//# sourceMappingURL=PaginationBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationBody.js","sources":["../../../../lib/components/Pagination/components/PaginationBody.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {PaginationProps} from '@/components/Pagination/constants';\nimport {Pagination} from '@/components/Pagination';\n\nexport const PaginationBody: FC<PaginationProps> = ({\n pages,\n currentPage,\n onPageClick,\n onPrevClick,\n onNextClick,\n isLoading = false,\n}) => {\n const isFirstPage = currentPage === 1 || isLoading;\n const isLastPage = currentPage === pages.at(-1) || isLoading;\n\n const renderPages = () =>\n pages.map((page) => {\n const isSelected = page === currentPage;\n const handlePage = () => {\n onPageClick(page);\n };\n return (\n <Pagination.Page\n isSelected={isSelected}\n onClick={handlePage}\n disabled={isLoading}\n key={page}\n page={page}\n />\n );\n });\n\n return (\n <div className=\"pagination__body\">\n <Pagination.Arrow\n disabled={isFirstPage}\n onClick={onPrevClick}\n direction=\"left\"\n />\n {renderPages()}\n <Pagination.Arrow\n disabled={isLastPage}\n onClick={onNextClick}\n direction=\"right\"\n />\n </div>\n );\n};\n"],"names":["PaginationBody","pages","currentPage","onPageClick","onPrevClick","onNextClick","isLoading","isFirstPage","isLastPage","renderPages","page","isSelected","handlePage","jsx","Pagination","jsxs"],"mappings":"8IAIaA,EAAsC,CAAC,CAClD,MAAAC,EACA,YAAAC,EACA,YAAAC,EACA,YAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,EACd,IAAM,CACE,MAAAC,EAAcL,IAAgB,GAAKI,EACnCE,EAAaN,IAAgBD,EAAM,GAAG,EAAE,GAAKK,EAE7CG,EAAc,IAClBR,EAAM,IAAKS,GAAS,CAClB,MAAMC,EAAaD,IAASR,EACtBU,EAAa,IAAM,CACvBT,EAAYO,CAAI,CAClB,EAEE,OAAAG,EAAA,IAACC,EAAAA,WAAW,KAAX,CACC,WAAAH,EACA,QAASC,EACT,SAAUN,EAEV,KAAAI,CAAA,EADKA,CAEP,CAAA,CAEH,EAGD,OAAAK,EAAA,KAAC,MAAI,CAAA,UAAU,mBACb,SAAA,CAAAF,EAAA,IAACC,EAAAA,WAAW,MAAX,CACC,SAAUP,EACV,QAASH,EACT,UAAU,MAAA,CACZ,EACCK,EAAY,EACbI,EAAA,IAACC,EAAAA,WAAW,MAAX,CACC,SAAUN,EACV,QAASH,EACT,UAAU,OAAA,CAAA,CACZ,EACF,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("../../../services/helpers.js"),r=({onClick:e,isSelected:t,page:n,disabled:a=!1})=>i.jsx("button",{disabled:a,onClick:e,className:o.cn("","pagination__button",{"_current-page":t}),children:n});exports.PaginationPage=r;
|
|
2
|
+
//# sourceMappingURL=PaginationPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginationPage.js","sources":["../../../../lib/components/Pagination/components/PaginationPage.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {cn} from '@/services/helpers';\n\nexport interface Props {\n isSelected: boolean;\n page: number;\n disabled?: boolean;\n onClick?: () => void;\n}\n\nexport const PaginationPage: FC<Props> = ({onClick, isSelected, page, disabled = false}) => (\n <button\n disabled={disabled}\n onClick={onClick}\n className={cn('', 'pagination__button', {\n '_current-page': isSelected,\n })}\n >\n {page}\n </button>\n);\n"],"names":["PaginationPage","onClick","isSelected","page","disabled","jsx","cn"],"mappings":"+JAUaA,EAA4B,CAAC,CAAC,QAAAC,EAAS,WAAAC,EAAY,KAAAC,EAAM,SAAAC,EAAW,MAC/EC,EAAA,IAAC,SAAA,CACC,SAAAD,EACA,QAAAH,EACA,UAAWK,EAAAA,GAAG,GAAI,qBAAsB,CACtC,gBAAiBJ,CAAA,CAClB,EAEA,SAAAC,CAAA,CACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=Object.freeze({LEFT:"left",RIGHT:"right"}),T="paginationTestId",A="paginationArrowLeftTestId",_="paginationArrowRightTestId";exports.PAGINATION_ARROW_DIRECTION=I;exports.PAGINATION_ARROW_LEFT_TEST_ID=A;exports.PAGINATION_ARROW_RIGHT_TEST_ID=_;exports.PAGINATION_TEST_ID=T;
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../lib/components/Pagination/constants.ts"],"sourcesContent":["export const PAGINATION_ARROW_DIRECTION = Object.freeze({\n LEFT: 'left',\n RIGHT: 'right',\n});\n\nexport interface PaginationProps {\n pages: number[];\n currentPage: number;\n onPageClick: (page: number) => void;\n onNextClick: () => void;\n onPrevClick: () => void;\n isLoading?: boolean;\n}\n\nexport type PaginationArrowDirection = (typeof PAGINATION_ARROW_DIRECTION)[keyof typeof PAGINATION_ARROW_DIRECTION];\n\nexport const PAGINATION_TEST_ID = 'paginationTestId';\nexport const PAGINATION_ARROW_LEFT_TEST_ID = 'paginationArrowLeftTestId';\nexport const PAGINATION_ARROW_RIGHT_TEST_ID = 'paginationArrowRightTestId';\n"],"names":["PAGINATION_ARROW_DIRECTION","PAGINATION_TEST_ID","PAGINATION_ARROW_LEFT_TEST_ID","PAGINATION_ARROW_RIGHT_TEST_ID"],"mappings":"gFAAa,MAAAA,EAA6B,OAAO,OAAO,CACtD,KAAM,OACN,MAAO,OACT,CAAC,EAaYC,EAAqB,mBACrBC,EAAgC,4BAChCC,EAAiC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./PaginationComponent.js"),o=require("./components/PaginationPage.js"),i=require("./components/PaginationArrow.js"),a=require("./components/PaginationBody.js"),t=Object.assign(n.PaginationComponent,{Page:o.PaginationPage,Arrow:i.PaginationArrow,Body:a.PaginationBody});exports.Pagination=t;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../lib/components/Pagination/index.ts"],"sourcesContent":["import {PaginationComponent} from '@/components/Pagination/PaginationComponent';\nimport {PaginationPage} from '@/components/Pagination/components/PaginationPage';\nimport {PaginationArrow} from '@/components/Pagination/components/PaginationArrow';\nimport {PaginationBody} from '@/components/Pagination/components/PaginationBody';\n\nexport const Pagination = Object.assign(PaginationComponent, {\n Page: PaginationPage,\n Arrow: PaginationArrow,\n Body: PaginationBody,\n});\n"],"names":["Pagination","PaginationComponent","PaginationPage","PaginationArrow","PaginationBody"],"mappings":"iQAKaA,EAAa,OAAO,OAAOC,sBAAqB,CAC3D,KAAMC,EAAA,eACN,MAAOC,EAAA,gBACP,KAAMC,EAAAA,cACR,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("rc-slider"),t=require("../../services/helpers.js"),i=({block:e,...r})=>n.jsx(s,{className:t.cn(e,"range-slider"),...r,range:!0});exports.RangeSlider=i;
|
|
2
|
+
//# sourceMappingURL=RangeSlider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeSlider.js","sources":["../../../lib/components/RangeSlider/RangeSlider.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {SliderProps} from 'rc-slider';\nimport Slider from 'rc-slider';\nimport type {ElementProps} from '@/services/types';\nimport {cn} from '@/services/helpers';\n\ninterface Props extends SliderProps, ElementProps {}\n\nexport const RangeSlider: FC<Props> = ({block, ...props}) => (\n <Slider\n className={cn(block, 'range-slider')}\n {...props}\n range\n />\n);\n"],"names":["RangeSlider","block","props","jsx","Slider","cn"],"mappings":"mLAQaA,EAAyB,CAAC,CAAC,MAAAC,EAAO,GAAGC,CAChD,IAAAC,EAAA,IAACC,EAAA,CACC,UAAWC,EAAAA,GAAGJ,EAAO,cAAc,EAClC,GAAGC,EACJ,MAAK,EAAA,CACP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),c=require("../../node_modules/react-router/dist/development/chunk-KNED5TY2.js"),i=require("./constants.js"),l=require("../../services/helpers.js"),k=({color:a,block:o,href:e,to:n,children:t,withIcon:u=!1})=>{const r=l.cn(o,"link",`link--${a}`,{"link--icon":u});return n?s.jsx(c.Link,{"data-testid":i.ROUTER_LINK_TEST_ID,to:n,className:r,children:t}):e?s.jsx("a",{href:e,"data-testid":i.ROUTER_LINK_TEST_ID,className:r,target:"_blank",rel:"noopener noreferrer",children:t}):null};exports.RouterLink=k;
|
|
2
|
+
//# sourceMappingURL=RouterLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.js","sources":["../../../lib/components/RouterLink/RouterLink.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {Link} from 'react-router';\nimport type {RouterLinkColorType} from '@/components/RouterLink/constants';\nimport {ROUTER_LINK_TEST_ID} from '@/components/RouterLink/constants';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\n\nexport interface RouterLinkProps extends ElementProps {\n color: RouterLinkColorType;\n children: ReactNode;\n to?: string;\n href?: string;\n withIcon?: boolean;\n}\n\nexport const RouterLink: FC<RouterLinkProps> = ({color, block, href, to, children, withIcon = false}) => {\n const classNames = cn(block, `link`, `link--${color}`, {\n 'link--icon': withIcon,\n });\n if (to) {\n return (\n <Link\n data-testid={ROUTER_LINK_TEST_ID}\n to={to}\n className={classNames}\n >\n {children}\n </Link>\n );\n }\n\n if (href) {\n return (\n <a\n href={href}\n data-testid={ROUTER_LINK_TEST_ID}\n className={classNames}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {children}\n </a>\n );\n }\n return null;\n};\n"],"names":["RouterLink","color","block","href","to","children","withIcon","classNames","cn","jsx","Link","ROUTER_LINK_TEST_ID"],"mappings":"wQAeaA,EAAkC,CAAC,CAAC,MAAAC,EAAO,MAAAC,EAAO,KAAAC,EAAM,GAAAC,EAAI,SAAAC,EAAU,SAAAC,EAAW,MAAW,CACvG,MAAMC,EAAaC,EAAG,GAAAN,EAAO,OAAQ,SAASD,CAAK,GAAI,CACrD,aAAcK,CAAA,CACf,EACD,OAAIF,EAEAK,EAAA,IAACC,EAAA,KAAA,CACC,cAAaC,EAAA,oBACb,GAAAP,EACA,UAAWG,EAEV,SAAAF,CAAA,CACH,EAIAF,EAEAM,EAAA,IAAC,IAAA,CACC,KAAAN,EACA,cAAaQ,EAAA,oBACb,UAAWJ,EACX,OAAO,SACP,IAAI,sBAEH,SAAAF,CAAA,CACH,EAGG,IACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../lib/components/RouterLink/constants.ts"],"sourcesContent":["export const ROUTER_LINK_COLOR = Object.freeze({\n GREEN: 'green',\n GRAY: 'gray',\n DARK: 'dark',\n LIGHTGRAY: 'lightgray',\n});\n\nexport const ROUTER_LINK_TEST_ID = 'routerLinkTestId';\n\nexport type RouterLinkColorType = (typeof ROUTER_LINK_COLOR)[keyof typeof ROUTER_LINK_COLOR];\n"],"names":["ROUTER_LINK_TEST_ID"],"mappings":"gFAOO,MAAMA,EAAsB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react"),n=require("./index.js"),k=(e,o,r)=>{if(!r||!o.trim())return e;const c=e.filter(i=>i.toLowerCase().includes(o.toLowerCase()));return c.length>0?c:null},O=({options:e,onClick:o,handleSelect:r,onClickToOptions:c,isOpen:i,value:s,onChange:d,block:C,id:j="select",name:p="select",disabled:u,hasSearch:l=!1,...x})=>{const f=S.useMemo(()=>k(e,s,l),[e,s,l]),g=m=>{d(m),r(l)};return t.jsxs(n.Select.Wrapper,{onClickOutside:r,isOpen:i,block:C,disabled:u,children:[t.jsxs(n.Select.Block,{onClick:o,block:"select",children:[t.jsx(n.Select.Input,{disabled:u,id:j,name:p,value:s,onChange:g,hasSearch:l,...x}),t.jsx(n.Select.Arrow,{})]}),t.jsx(n.Select.List,{options:f,onClick:c,value:s})]})};exports.SelectComponent=O;
|
|
2
|
+
//# sourceMappingURL=SelectComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectComponent.js","sources":["../../../lib/components/Select/SelectComponent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {useMemo} from 'react';\nimport type {InputProps} from '@/components/Input/Input';\nimport {Select} from '@/components/Select';\n\nexport interface Props extends InputProps {\n isOpen: boolean;\n options: string[];\n onClick: () => void;\n onChange: (value: string) => void;\n value: string;\n handleSelect: (isOpen: boolean) => void;\n onClickToOptions: (value: string) => void;\n hasSearch?: boolean;\n}\n\nconst getFilteredOptions = (options: string[], value: string, hasSearch: boolean): string[] | null => {\n if (!hasSearch || !value.trim()) {\n return options;\n }\n const filtered = options.filter((option) => option.toLowerCase().includes(value.toLowerCase()));\n return filtered.length > 0 ? filtered : null;\n};\n\nexport const SelectComponent: FC<Props> = ({\n options,\n onClick,\n handleSelect,\n onClickToOptions,\n isOpen,\n value,\n onChange,\n block,\n id = 'select',\n name = 'select',\n disabled,\n hasSearch = false,\n ...props\n}) => {\n const filteredOptions = useMemo(() => getFilteredOptions(options, value, hasSearch), [options, value, hasSearch]);\n const handleSelectChange = (value: string) => {\n onChange(value);\n handleSelect(hasSearch);\n };\n return (\n <Select.Wrapper\n onClickOutside={handleSelect}\n isOpen={isOpen}\n block={block}\n disabled={disabled}\n >\n <Select.Block\n onClick={onClick}\n block=\"select\"\n >\n <Select.Input\n disabled={disabled}\n id={id}\n name={name}\n value={value}\n onChange={handleSelectChange}\n hasSearch={hasSearch}\n {...props}\n />\n <Select.Arrow />\n </Select.Block>\n <Select.List\n options={filteredOptions}\n onClick={onClickToOptions}\n value={value}\n />\n </Select.Wrapper>\n );\n};\n"],"names":["getFilteredOptions","options","value","hasSearch","filtered","option","SelectComponent","onClick","handleSelect","onClickToOptions","isOpen","onChange","block","id","name","disabled","props","filteredOptions","useMemo","handleSelectChange","jsxs","Select","jsx"],"mappings":"gKAgBMA,EAAqB,CAACC,EAAmBC,EAAeC,IAAwC,CACpG,GAAI,CAACA,GAAa,CAACD,EAAM,OAChB,OAAAD,EAET,MAAMG,EAAWH,EAAQ,OAAQI,GAAWA,EAAO,YAAY,EAAE,SAASH,EAAM,YAAa,CAAA,CAAC,EACvF,OAAAE,EAAS,OAAS,EAAIA,EAAW,IAC1C,EAEaE,EAA6B,CAAC,CACzC,QAAAL,EACA,QAAAM,EACA,aAAAC,EACA,iBAAAC,EACA,OAAAC,EACA,MAAAR,EACA,SAAAS,EACA,MAAAC,EACA,GAAAC,EAAK,SACL,KAAAC,EAAO,SACP,SAAAC,EACA,UAAAZ,EAAY,GACZ,GAAGa,CACL,IAAM,CACJ,MAAMC,EAAkBC,EAAAA,QAAQ,IAAMlB,EAAmBC,EAASC,EAAOC,CAAS,EAAG,CAACF,EAASC,EAAOC,CAAS,CAAC,EAC1GgB,EAAsBjB,GAAkB,CAC5CS,EAAST,CAAK,EACdM,EAAaL,CAAS,CACxB,EAEE,OAAAiB,EAAA,KAACC,EAAAA,OAAO,QAAP,CACC,eAAgBb,EAChB,OAAAE,EACA,MAAAE,EACA,SAAAG,EAEA,SAAA,CAAAK,EAAA,KAACC,EAAAA,OAAO,MAAP,CACC,QAAAd,EACA,MAAM,SAEN,SAAA,CAAAe,EAAA,IAACD,EAAAA,OAAO,MAAP,CACC,SAAAN,EACA,GAAAF,EACA,KAAAC,EACA,MAAAZ,EACA,SAAUiB,EACV,UAAAhB,EACC,GAAGa,CAAA,CACN,EACAM,MAACD,EAAAA,OAAO,MAAP,CAAa,CAAA,CAAA,CAAA,CAChB,EACAC,EAAA,IAACD,EAAAA,OAAO,KAAP,CACC,QAASJ,EACT,QAASR,EACT,MAAAP,CAAA,CAAA,CACF,CAAA,CACF,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../services/icons.js"),o=()=>e.jsx(r.Icons.ArrowNarrowDown,{className:"select__arrow"});exports.SelectArrow=o;
|
|
2
|
+
//# sourceMappingURL=SelectArrow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectArrow.js","sources":["../../../../lib/components/Select/components/SelectArrow.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Icons} from '@/services/icons';\n\nexport const SelectArrow: FC = () => <Icons.ArrowNarrowDown className=\"select__arrow\" />;\n"],"names":["SelectArrow","jsx","Icons"],"mappings":"6JAGaA,EAAkB,IAAMC,EAAAA,IAACC,EAAAA,MAAM,gBAAN,CAAsB,UAAU,eAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectBlock.js","sources":["../../../../lib/components/Select/components/SelectBlock.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\n\nexport interface Props {\n children: ReactNode;\n onClick: () => void;\n}\n\nexport const SelectBlock: FC<Props> = ({children, onClick}) => (\n <div\n onClick={onClick}\n className={'select__block'}\n >\n {children}\n </div>\n);\n"],"names":["SelectBlock","children","onClick","jsx"],"mappings":"qHAOaA,EAAyB,CAAC,CAAC,SAAAC,EAAU,QAAAC,CAChD,IAAAC,EAAA,IAAC,MAAA,CACC,QAAAD,EACA,UAAW,gBAEV,SAAAD,CAAA,CACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),u=require("../../Input/Input.js"),s=({onChange:e,hasSearch:t,...n})=>r.jsx(u.Input,{isReadOnly:!t,isTransparent:!0,onChange:e,...n});exports.SelectInput=s;
|
|
2
|
+
//# sourceMappingURL=SelectInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectInput.js","sources":["../../../../lib/components/Select/components/SelectInput.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {InputProps} from '@/components/Input/Input';\nimport {Input} from '@/components/Input/Input';\n\nexport interface Props extends InputProps {\n hasSearch: boolean;\n}\n\nexport const SelectInput: FC<Props> = ({onChange, hasSearch, ...props}) => (\n <Input\n isReadOnly={!hasSearch}\n isTransparent\n onChange={onChange}\n {...props}\n />\n);\n"],"names":["SelectInput","onChange","hasSearch","props","jsx","Input"],"mappings":"uJAQaA,EAAyB,CAAC,CAAC,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAC9D,IAAAC,EAAA,IAACC,EAAA,MAAA,CACC,WAAY,CAACH,EACb,cAAa,GACb,SAAAD,EACC,GAAGE,CAAA,CACN"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../index.js"),o=({options:s,onClick:c,value:l})=>s?t.jsx("ul",{className:"select__options",children:s.map(e=>{const n=e===l,i=()=>{c(e)};return t.jsx(r.Select.Option,{isSelected:n,onOptionClick:i,option:e},e)})}):t.jsx("ul",{className:"select__options",children:t.jsx("li",{className:"select__option select__option_empty",children:"Nothing found"})});exports.SelectList=o;
|
|
2
|
+
//# sourceMappingURL=SelectList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectList.js","sources":["../../../../lib/components/Select/components/SelectList.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Select} from '@/components/Select';\n\nexport interface Props {\n options: string[] | null;\n onClick: (value: string) => void;\n value: string;\n}\nexport const SelectList: FC<Props> = ({options, onClick, value}) => {\n if (!options) {\n return (\n <ul className=\"select__options\">\n <li className=\"select__option select__option_empty\">Nothing found</li>\n </ul>\n );\n }\n\n return (\n <ul className=\"select__options\">\n {options.map((option) => {\n const isSelected = option === value;\n const onOptionClick = () => {\n onClick(option);\n };\n return (\n <Select.Option\n key={option}\n isSelected={isSelected}\n onOptionClick={onOptionClick}\n option={option}\n />\n );\n })}\n </ul>\n );\n};\n"],"names":["SelectList","options","onClick","value","option","isSelected","onOptionClick","jsx","Select"],"mappings":"8IAQaA,EAAwB,CAAC,CAAC,QAAAC,EAAS,QAAAC,EAAS,MAAAC,KAClDF,QASF,KAAG,CAAA,UAAU,kBACX,SAAQA,EAAA,IAAKG,GAAW,CACvB,MAAMC,EAAaD,IAAWD,EACxBG,EAAgB,IAAM,CAC1BJ,EAAQE,CAAM,CAChB,EAEE,OAAAG,EAAA,IAACC,EAAAA,OAAO,OAAP,CAEC,WAAAH,EACA,cAAAC,EACA,OAAAF,CAAA,EAHKA,CAIP,CAEH,CAAA,EACH,EAtBEG,EAAA,IAAC,MAAG,UAAU,kBACZ,eAAC,KAAG,CAAA,UAAU,sCAAsC,SAAA,eAAA,CAAa,CACnE,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("../../../services/helpers.js"),n=({isSelected:e,option:t,onOptionClick:c})=>i.jsx("li",{className:l.cn("","select__option",{_selected:e}),onClick:c,children:t});exports.SelectOption=n;
|
|
2
|
+
//# sourceMappingURL=SelectOption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectOption.js","sources":["../../../../lib/components/Select/components/SelectOption.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {cn} from '@/services/helpers';\n\nexport interface Props {\n isSelected: boolean;\n onOptionClick: () => void;\n option: string;\n}\n\nexport const SelectOption: FC<Props> = ({isSelected, option, onOptionClick}) => (\n <li\n className={cn('', 'select__option', {\n '_selected': isSelected,\n })}\n onClick={onOptionClick}\n >\n {option}\n </li>\n);\n"],"names":["SelectOption","isSelected","option","onOptionClick","jsx","cn"],"mappings":"+JASaA,EAA0B,CAAC,CAAC,WAAAC,EAAY,OAAAC,EAAQ,cAAAC,CAC3D,IAAAC,EAAA,IAAC,KAAA,CACC,UAAWC,EAAAA,GAAG,GAAI,iBAAkB,CAClC,UAAaJ,CAAA,CACd,EACD,QAASE,EAER,SAAAD,CAAA,CACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("../constants.js"),u=require("../../../services/helpers.js"),o=require("../../../services/hooks/useClickOutside.js"),a=({children:e,isOpen:t,onClickOutside:s,block:r,disabled:c=!1})=>{const i=o.useClickOutside(s);return n.jsx("div",{ref:i,"data-testid":l.SELECT_TEST_ID,className:u.cn(r,"select",{_open:t,disabled:c}),children:e})};exports.SelectWrapper=a;
|
|
2
|
+
//# sourceMappingURL=SelectWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectWrapper.js","sources":["../../../../lib/components/Select/components/SelectWrapper.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {SELECT_TEST_ID} from '@/components/Select/constants';\nimport {cn} from '@/services/helpers';\nimport {useClickOutside} from '@/services/hooks/useClickOutside';\nimport type {ElementProps} from '@/services/types';\n\nexport interface Props extends ElementProps {\n children: ReactNode;\n onClickOutside: (isOpen: boolean) => void;\n isOpen: boolean;\n disabled?: boolean;\n}\n\nexport const SelectWrapper: FC<Props> = ({children, isOpen, onClickOutside, block, disabled = false}) => {\n const selectRef = useClickOutside(onClickOutside);\n return (\n <div\n ref={selectRef}\n data-testid={SELECT_TEST_ID}\n className={cn(block, 'select', {\n '_open': isOpen,\n 'disabled': disabled,\n })}\n >\n {children}\n </div>\n );\n};\n"],"names":["SelectWrapper","children","isOpen","onClickOutside","block","disabled","selectRef","useClickOutside","jsx","SELECT_TEST_ID","cn"],"mappings":"oPAaaA,EAA2B,CAAC,CAAC,SAAAC,EAAU,OAAAC,EAAQ,eAAAC,EAAgB,MAAAC,EAAO,SAAAC,EAAW,MAAW,CACjG,MAAAC,EAAYC,kBAAgBJ,CAAc,EAE9C,OAAAK,EAAA,IAAC,MAAA,CACC,IAAKF,EACL,cAAaG,EAAA,eACb,UAAWC,EAAAA,GAAGN,EAAO,SAAU,CAC7B,MAASF,EACT,SAAYG,CAAA,CACb,EAEA,SAAAJ,CAAA,CACH,CAEJ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/SelectBlock.js"),t=require("../../services/hoc/withBlockClass.js"),c="selectTestId",l=t.withBlockClass(e.SelectBlock,"select");exports.SELECT_TEST_ID=c;exports.SelectBlockHOC=l;
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../lib/components/Select/constants.ts"],"sourcesContent":["import {SelectBlock} from '@/components/Select/components/SelectBlock';\nimport {withBlockClass} from '@/services/hoc/withBlockClass';\n\nexport const SELECT_TEST_ID = 'selectTestId';\n\nexport const SelectBlockHOC = withBlockClass(SelectBlock, 'select');\n"],"names":["SELECT_TEST_ID","SelectBlockHOC","withBlockClass","SelectBlock"],"mappings":"iLAGaA,EAAiB,eAEjBC,EAAiBC,EAAAA,eAAeC,EAAAA,YAAa,QAAQ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SelectComponent.js"),t=require("./components/SelectList.js"),r=require("./components/SelectOption.js"),c=require("./components/SelectInput.js"),o=require("./components/SelectArrow.js"),n=require("./components/SelectWrapper.js"),l=require("./constants.js"),i=Object.assign(e.SelectComponent,{List:t.SelectList,Option:r.SelectOption,Input:c.SelectInput,Arrow:o.SelectArrow,Wrapper:n.SelectWrapper,Block:l.SelectBlockHOC});exports.Select=i;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../lib/components/Select/index.ts"],"sourcesContent":["import {SelectComponent} from '@/components/Select/SelectComponent';\nimport {SelectList} from '@/components/Select/components/SelectList';\nimport {SelectOption} from '@/components/Select/components/SelectOption';\nimport {SelectInput} from '@/components/Select/components/SelectInput';\nimport {SelectArrow} from '@/components/Select/components/SelectArrow';\nimport {SelectWrapper} from '@/components/Select/components/SelectWrapper';\nimport {SelectBlockHOC} from '@/components/Select/constants';\n\nexport const Select = Object.assign(SelectComponent, {\n List: SelectList,\n Option: SelectOption,\n Input: SelectInput,\n Arrow: SelectArrow,\n Wrapper: SelectWrapper,\n Block: SelectBlockHOC,\n});\n"],"names":["Select","SelectComponent","SelectList","SelectOption","SelectInput","SelectArrow","SelectWrapper","SelectBlockHOC"],"mappings":"mWAQaA,EAAS,OAAO,OAAOC,kBAAiB,CACnD,KAAMC,EAAA,WACN,OAAQC,EAAA,aACR,MAAOC,EAAA,YACP,MAAOC,EAAA,YACP,QAASC,EAAA,cACT,MAAOC,EAAAA,cACT,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("../../node_modules/swiper/swiper-react.js"),a=require("./constants.js"),l=require("../../services/helpers.js"),u=({spaceBetween:e,slidesPerView:t,block:r,breakpoints:s,modules:n,children:i})=>o.jsx(c.Swiper,{className:l.cn(r,"slider"),"data-testid":a.SLIDER_TEST_ID,modules:n,spaceBetween:e,slidesPerView:t,breakpoints:s,children:i});exports.SliderComponent=u;
|
|
2
|
+
//# sourceMappingURL=SliderComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderComponent.js","sources":["../../../lib/components/Slider/SliderComponent.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\n\nimport {Swiper} from 'swiper/react';\nimport type {SwiperModule} from 'swiper/types/shared';\nimport {SLIDER_TEST_ID} from '@/components/Slider/constants';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\n\ninterface BreakpointSettings {\n slidesPerView: number;\n spaceBetween: number;\n}\n\nexport interface Props extends ElementProps {\n children: ReactNode;\n spaceBetween?: number;\n slidesPerView?: number;\n breakpoints?: Record<number, BreakpointSettings>;\n modules?: SwiperModule[];\n}\n\nexport const SliderComponent: FC<Props> = ({spaceBetween, slidesPerView, block, breakpoints, modules, children}) => (\n <Swiper\n className={cn(block, 'slider')}\n data-testid={SLIDER_TEST_ID}\n modules={modules}\n spaceBetween={spaceBetween}\n slidesPerView={slidesPerView}\n breakpoints={breakpoints}\n >\n {children}\n </Swiper>\n);\n"],"names":["SliderComponent","spaceBetween","slidesPerView","block","breakpoints","modules","children","jsx","Swiper","cn","SLIDER_TEST_ID"],"mappings":"+OAqBaA,EAA6B,CAAC,CAAC,aAAAC,EAAc,cAAAC,EAAe,MAAAC,EAAO,YAAAC,EAAa,QAAAC,EAAS,SAAAC,CAAA,IACpGC,EAAA,IAACC,EAAA,OAAA,CACC,UAAWC,EAAAA,GAAGN,EAAO,QAAQ,EAC7B,cAAaO,EAAA,eACb,QAAAL,EACA,aAAAJ,EACA,cAAAC,EACA,YAAAE,EAEC,SAAAE,CAAA,CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../lib/components/Slider/constants.ts"],"sourcesContent":["export const SLIDER_TEST_ID = 'sliderTestId';\n"],"names":["SLIDER_TEST_ID"],"mappings":"gFAAO,MAAMA,EAAiB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./SliderComponent.js"),i=require("../../node_modules/swiper/swiper-react.js"),r=Object.assign(e.SliderComponent,{Slide:i.SwiperSlide});exports.Slider=r;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../lib/components/Slider/index.ts"],"sourcesContent":["import {SliderComponent} from '@/components/Slider/SliderComponent';\nimport {SwiperSlide} from 'swiper/react';\n\nexport const Slider = Object.assign(SliderComponent, {\n Slide: SwiperSlide,\n});\n"],"names":["Slider","SliderComponent","SwiperSlide"],"mappings":"+KAGaA,EAAS,OAAO,OAAOC,kBAAiB,CACnD,MAAOC,EAAAA,WACT,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("./components/NavigateButton.js"),a=require("./constants.js"),s=()=>t.jsx("div",{"data-testid":a.SLIDER_NAVIGATE_TEST_ID,className:"slider-navigate",children:Object.values(a.NAVIGATE_BUTTON_PLACEMENT).map(e=>t.jsx(i.NavigateButton,{placement:e},e))});exports.SliderNavigate=s;
|
|
2
|
+
//# sourceMappingURL=SliderNavigate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderNavigate.js","sources":["../../../lib/components/SliderNavigate/SliderNavigate.tsx"],"sourcesContent":["import {NavigateButton} from '@/components/SliderNavigate/components/NavigateButton';\nimport {NAVIGATE_BUTTON_PLACEMENT, SLIDER_NAVIGATE_TEST_ID} from '@/components/SliderNavigate/constants';\nimport type {FC} from 'react';\n\nexport const SliderNavigate: FC = () => (\n <div\n data-testid={SLIDER_NAVIGATE_TEST_ID}\n className=\"slider-navigate\"\n >\n {Object.values(NAVIGATE_BUTTON_PLACEMENT).map((placement) => (\n <NavigateButton\n key={placement}\n placement={placement}\n />\n ))}\n </div>\n);\n"],"names":["SliderNavigate","jsx","SLIDER_NAVIGATE_TEST_ID","NAVIGATE_BUTTON_PLACEMENT","placement","NavigateButton"],"mappings":"6LAIaA,EAAqB,IAChCC,EAAA,IAAC,MAAA,CACC,cAAaC,EAAA,wBACb,UAAU,kBAET,gBAAO,OAAOC,EAAAA,yBAAyB,EAAE,IAAKC,GAC7CH,EAAA,IAACI,EAAA,eAAA,CAEC,UAAAD,CAAA,EADKA,CAGR,CAAA,CAAA,CACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../constants.js"),e=require("../../../services/icons.js"),r={left:t.jsx(e.Icons.ArrowNarrowLeft,{}),right:t.jsx(e.Icons.ArrowNarrowRight,{})},s=({placement:o})=>t.jsx("button",{"data-testid":n.NAVIGATE_BUTTON_TEST_ID,type:"button",className:"slider-navigate__button",children:r[o]});exports.NavigateButton=s;
|
|
2
|
+
//# sourceMappingURL=NavigateButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigateButton.js","sources":["../../../../lib/components/SliderNavigate/components/NavigateButton.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport React from 'react';\nimport type {NavigateButtonPlacement} from '@/components/SliderNavigate/constants';\nimport {NAVIGATE_BUTTON_TEST_ID} from '@/components/SliderNavigate/constants';\nimport {Icons} from '@/services/icons';\n\ninterface Props {\n placement: NavigateButtonPlacement;\n}\n\nconst icons = {\n left: <Icons.ArrowNarrowLeft />,\n right: <Icons.ArrowNarrowRight />,\n};\n\nexport const NavigateButton: FC<Props> = ({placement}) => (\n <button\n data-testid={NAVIGATE_BUTTON_TEST_ID}\n type=\"button\"\n className=\"slider-navigate__button\"\n >\n {icons[placement]}\n </button>\n);\n"],"names":["icons","jsx","Icons","NavigateButton","placement","NAVIGATE_BUTTON_TEST_ID"],"mappings":"0LAUMA,EAAQ,CACZ,KAAMC,EAAA,IAACC,QAAM,gBAAN,CAAA,CAAsB,EAC7B,MAAOD,EAAA,IAACC,QAAM,iBAAN,CAAuB,CAAA,CACjC,EAEaC,EAA4B,CAAC,CAAC,UAAAC,CAAA,IACzCH,EAAA,IAAC,SAAA,CACC,cAAaI,EAAA,wBACb,KAAK,SACL,UAAU,0BAET,WAAMD,CAAS,CAAA,CAClB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=Object.freeze({LEFT:"left",RIGHT:"right"}),t="sliderNavigateTestId",e="navigateButtonTestId";exports.NAVIGATE_BUTTON_PLACEMENT=T;exports.NAVIGATE_BUTTON_TEST_ID=e;exports.SLIDER_NAVIGATE_TEST_ID=t;
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../lib/components/SliderNavigate/constants.ts"],"sourcesContent":["export const NAVIGATE_BUTTON_PLACEMENT = Object.freeze({\n LEFT: 'left',\n RIGHT: 'right',\n});\n\nexport type NavigateButtonPlacement = (typeof NAVIGATE_BUTTON_PLACEMENT)[keyof typeof NAVIGATE_BUTTON_PLACEMENT];\n\nexport const SLIDER_NAVIGATE_TEST_ID = 'sliderNavigateTestId';\nexport const NAVIGATE_BUTTON_TEST_ID = 'navigateButtonTestId';\n"],"names":["NAVIGATE_BUTTON_PLACEMENT","SLIDER_NAVIGATE_TEST_ID","NAVIGATE_BUTTON_TEST_ID"],"mappings":"gFAAa,MAAAA,EAA4B,OAAO,OAAO,CACrD,KAAM,OACN,MAAO,OACT,CAAC,EAIYC,EAA0B,uBAC1BC,EAA0B"}
|