ecars-web-lib 1.0.6 → 1.0.8

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.
Files changed (199) hide show
  1. package/dist/_virtual/index.js +2 -0
  2. package/dist/_virtual/index.js.map +1 -0
  3. package/dist/_virtual/index2.js +2 -0
  4. package/dist/_virtual/index2.js.map +1 -0
  5. package/dist/components/Accordion/AccordionComponent.js +2 -0
  6. package/dist/components/Accordion/AccordionComponent.js.map +1 -0
  7. package/dist/components/Accordion/components/AccordionArrow.js +2 -0
  8. package/dist/components/Accordion/components/AccordionArrow.js.map +1 -0
  9. package/dist/components/Accordion/components/AccordionBlock.js +2 -0
  10. package/dist/components/Accordion/components/AccordionBlock.js.map +1 -0
  11. package/dist/components/Accordion/components/AccordionButton.js +2 -0
  12. package/dist/components/Accordion/components/AccordionButton.js.map +1 -0
  13. package/dist/components/Accordion/components/AccordionContent.js +2 -0
  14. package/dist/components/Accordion/components/AccordionContent.js.map +1 -0
  15. package/dist/components/Accordion/components/AccordionLayout.js +2 -0
  16. package/dist/components/Accordion/components/AccordionLayout.js.map +1 -0
  17. package/dist/components/Accordion/components/AccordionTitle.js +2 -0
  18. package/dist/components/Accordion/components/AccordionTitle.js.map +1 -0
  19. package/dist/components/Accordion/constants.js +2 -0
  20. package/dist/components/Accordion/constants.js.map +1 -0
  21. package/dist/components/Accordion/index.js +2 -0
  22. package/dist/components/Accordion/index.js.map +1 -0
  23. package/dist/components/Button/Button.js +2 -0
  24. package/dist/components/Button/Button.js.map +1 -0
  25. package/dist/components/Button/constants.js +2 -0
  26. package/dist/components/Button/constants.js.map +1 -0
  27. package/dist/components/ButtonWithIcon/ButtonWithIcon.js +2 -0
  28. package/dist/components/ButtonWithIcon/ButtonWithIcon.js.map +1 -0
  29. package/dist/components/ButtonWithIcon/constants.js +2 -0
  30. package/dist/components/ButtonWithIcon/constants.js.map +1 -0
  31. package/dist/components/Category/Category.js +2 -0
  32. package/dist/components/Category/Category.js.map +1 -0
  33. package/dist/components/Category/constants.js +2 -0
  34. package/dist/components/Category/constants.js.map +1 -0
  35. package/dist/components/Checkbox/CheckboxComponent.js +2 -0
  36. package/dist/components/Checkbox/CheckboxComponent.js.map +1 -0
  37. package/dist/components/Checkbox/components/CheckboxBlock.js +2 -0
  38. package/dist/components/Checkbox/components/CheckboxBlock.js.map +1 -0
  39. package/dist/components/Checkbox/components/CheckboxIndicator.js +2 -0
  40. package/dist/components/Checkbox/components/CheckboxIndicator.js.map +1 -0
  41. package/dist/components/Checkbox/components/CheckboxInput.js +2 -0
  42. package/dist/components/Checkbox/components/CheckboxInput.js.map +1 -0
  43. package/dist/components/Checkbox/constants.js +2 -0
  44. package/dist/components/Checkbox/constants.js.map +1 -0
  45. package/dist/components/Checkbox/index.js +2 -0
  46. package/dist/components/Checkbox/index.js.map +1 -0
  47. package/dist/components/Dropdown/DropdownComponent.js +2 -0
  48. package/dist/components/Dropdown/DropdownComponent.js.map +1 -0
  49. package/dist/components/Dropdown/components/DropdownBlock.js +2 -0
  50. package/dist/components/Dropdown/components/DropdownBlock.js.map +1 -0
  51. package/dist/components/Dropdown/components/DropdownCategory.js +2 -0
  52. package/dist/components/Dropdown/components/DropdownCategory.js.map +1 -0
  53. package/dist/components/Dropdown/components/DropdownList.js +2 -0
  54. package/dist/components/Dropdown/components/DropdownList.js.map +1 -0
  55. package/dist/components/Dropdown/components/DropdownOption.js +2 -0
  56. package/dist/components/Dropdown/components/DropdownOption.js.map +1 -0
  57. package/dist/components/Dropdown/constants.js +2 -0
  58. package/dist/components/Dropdown/constants.js.map +1 -0
  59. package/dist/components/Dropdown/index.js +2 -0
  60. package/dist/components/Dropdown/index.js.map +1 -0
  61. package/dist/components/FavButton/FavButton.js +2 -0
  62. package/dist/components/FavButton/FavButton.js.map +1 -0
  63. package/dist/components/FavButton/constants.js +2 -0
  64. package/dist/components/FavButton/constants.js.map +1 -0
  65. package/dist/components/Field/FieldComponent.js +2 -0
  66. package/dist/components/Field/FieldComponent.js.map +1 -0
  67. package/dist/components/Field/components/FieldError.js +2 -0
  68. package/dist/components/Field/components/FieldError.js.map +1 -0
  69. package/dist/components/Field/components/FieldLabel.js +2 -0
  70. package/dist/components/Field/components/FieldLabel.js.map +1 -0
  71. package/dist/components/Field/constants.js +2 -0
  72. package/dist/components/Field/constants.js.map +1 -0
  73. package/dist/components/Field/index.js +2 -0
  74. package/dist/components/Field/index.js.map +1 -0
  75. package/dist/components/FilterAccordion/FilterAccordionComponent.js +2 -0
  76. package/dist/components/FilterAccordion/FilterAccordionComponent.js.map +1 -0
  77. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js +2 -0
  78. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js.map +1 -0
  79. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js +2 -0
  80. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js.map +1 -0
  81. package/dist/components/FilterAccordion/components/FilterAccordionContent.js +2 -0
  82. package/dist/components/FilterAccordion/components/FilterAccordionContent.js.map +1 -0
  83. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js +2 -0
  84. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js.map +1 -0
  85. package/dist/components/FilterAccordion/components/FilterAccordionReset.js +2 -0
  86. package/dist/components/FilterAccordion/components/FilterAccordionReset.js.map +1 -0
  87. package/dist/components/FilterAccordion/constants.js +2 -0
  88. package/dist/components/FilterAccordion/constants.js.map +1 -0
  89. package/dist/components/FilterAccordion/index.js +2 -0
  90. package/dist/components/FilterAccordion/index.js.map +1 -0
  91. package/dist/components/FilterButton/FilterButton.js +2 -0
  92. package/dist/components/FilterButton/FilterButton.js.map +1 -0
  93. package/dist/components/Gallery/Gallery.js +2 -0
  94. package/dist/components/Gallery/Gallery.js.map +1 -0
  95. package/dist/components/Input/Input.js +2 -0
  96. package/dist/components/Input/Input.js.map +1 -0
  97. package/dist/components/Input/constants.js +2 -0
  98. package/dist/components/Input/constants.js.map +1 -0
  99. package/dist/components/LinkWithIcon/LinkWithIcon.js +2 -0
  100. package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -0
  101. package/dist/components/LinkWithIcon/constants.js +2 -0
  102. package/dist/components/LinkWithIcon/constants.js.map +1 -0
  103. package/dist/components/NavLink/NavLink.js +2 -0
  104. package/dist/components/NavLink/NavLink.js.map +1 -0
  105. package/dist/components/Pagination/PaginationComponent.js +2 -0
  106. package/dist/components/Pagination/PaginationComponent.js.map +1 -0
  107. package/dist/components/Pagination/components/PaginationArrow.js +2 -0
  108. package/dist/components/Pagination/components/PaginationArrow.js.map +1 -0
  109. package/dist/components/Pagination/components/PaginationBody.js +2 -0
  110. package/dist/components/Pagination/components/PaginationBody.js.map +1 -0
  111. package/dist/components/Pagination/components/PaginationPage.js +2 -0
  112. package/dist/components/Pagination/components/PaginationPage.js.map +1 -0
  113. package/dist/components/Pagination/constants.js +2 -0
  114. package/dist/components/Pagination/constants.js.map +1 -0
  115. package/dist/components/Pagination/index.js +2 -0
  116. package/dist/components/Pagination/index.js.map +1 -0
  117. package/dist/components/RangeSlider/RangeSlider.js +2 -0
  118. package/dist/components/RangeSlider/RangeSlider.js.map +1 -0
  119. package/dist/components/RouterLink/RouterLink.js +2 -0
  120. package/dist/components/RouterLink/RouterLink.js.map +1 -0
  121. package/dist/components/RouterLink/constants.js +2 -0
  122. package/dist/components/RouterLink/constants.js.map +1 -0
  123. package/dist/components/Select/SelectComponent.js +2 -0
  124. package/dist/components/Select/SelectComponent.js.map +1 -0
  125. package/dist/components/Select/components/SelectArrow.js +2 -0
  126. package/dist/components/Select/components/SelectArrow.js.map +1 -0
  127. package/dist/components/Select/components/SelectBlock.js +2 -0
  128. package/dist/components/Select/components/SelectBlock.js.map +1 -0
  129. package/dist/components/Select/components/SelectInput.js +2 -0
  130. package/dist/components/Select/components/SelectInput.js.map +1 -0
  131. package/dist/components/Select/components/SelectList.js +2 -0
  132. package/dist/components/Select/components/SelectList.js.map +1 -0
  133. package/dist/components/Select/components/SelectOption.js +2 -0
  134. package/dist/components/Select/components/SelectOption.js.map +1 -0
  135. package/dist/components/Select/components/SelectWrapper.js +2 -0
  136. package/dist/components/Select/components/SelectWrapper.js.map +1 -0
  137. package/dist/components/Select/constants.js +2 -0
  138. package/dist/components/Select/constants.js.map +1 -0
  139. package/dist/components/Select/index.js +2 -0
  140. package/dist/components/Select/index.js.map +1 -0
  141. package/dist/components/Slider/SliderComponent.js +2 -0
  142. package/dist/components/Slider/SliderComponent.js.map +1 -0
  143. package/dist/components/Slider/constants.js +2 -0
  144. package/dist/components/Slider/constants.js.map +1 -0
  145. package/dist/components/Slider/index.js +2 -0
  146. package/dist/components/Slider/index.js.map +1 -0
  147. package/dist/components/SliderNavigate/SliderNavigate.js +2 -0
  148. package/dist/components/SliderNavigate/SliderNavigate.js.map +1 -0
  149. package/dist/components/SliderNavigate/components/NavigateButton.js +2 -0
  150. package/dist/components/SliderNavigate/components/NavigateButton.js.map +1 -0
  151. package/dist/components/SliderNavigate/constants.js +2 -0
  152. package/dist/components/SliderNavigate/constants.js.map +1 -0
  153. package/dist/index.d.ts +1 -1
  154. package/dist/index.js +1 -191
  155. package/dist/index.js.map +1 -1
  156. package/dist/node_modules/cookie/dist/index.js +2 -0
  157. package/dist/node_modules/cookie/dist/index.js.map +1 -0
  158. package/dist/node_modules/react-icons/ai/index.js +2 -0
  159. package/dist/node_modules/react-icons/ai/index.js.map +1 -0
  160. package/dist/node_modules/react-icons/fa6/index.js +2 -0
  161. package/dist/node_modules/react-icons/fa6/index.js.map +1 -0
  162. package/dist/node_modules/react-icons/io/index.js +2 -0
  163. package/dist/node_modules/react-icons/io/index.js.map +1 -0
  164. package/dist/node_modules/react-icons/lib/iconBase.js +2 -0
  165. package/dist/node_modules/react-icons/lib/iconBase.js.map +1 -0
  166. package/dist/node_modules/react-icons/lib/iconContext.js +2 -0
  167. package/dist/node_modules/react-icons/lib/iconContext.js.map +1 -0
  168. package/dist/node_modules/react-icons/md/index.js +2 -0
  169. package/dist/node_modules/react-icons/md/index.js.map +1 -0
  170. package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js +13 -0
  171. package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js.map +1 -0
  172. package/dist/node_modules/swiper/shared/ssr-window.esm.js +2 -0
  173. package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
  174. package/dist/node_modules/swiper/shared/swiper-core.js +2 -0
  175. package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
  176. package/dist/node_modules/swiper/shared/update-on-virtual-data.js +2 -0
  177. package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
  178. package/dist/node_modules/swiper/shared/update-swiper.js +2 -0
  179. package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
  180. package/dist/node_modules/swiper/shared/utils.js +2 -0
  181. package/dist/node_modules/swiper/shared/utils.js.map +1 -0
  182. package/dist/node_modules/swiper/swiper-react.js +2 -0
  183. package/dist/node_modules/swiper/swiper-react.js.map +1 -0
  184. package/dist/services/helpers.js +2 -0
  185. package/dist/services/helpers.js.map +1 -0
  186. package/dist/services/hoc/withBlockClass.js +2 -0
  187. package/dist/services/hoc/withBlockClass.js.map +1 -0
  188. package/dist/services/hooks/useAccordionHeight.js +2 -0
  189. package/dist/services/hooks/useAccordionHeight.js.map +1 -0
  190. package/dist/services/hooks/useClickOutside.js +2 -0
  191. package/dist/services/hooks/useClickOutside.js.map +1 -0
  192. package/dist/services/hooks/useMatchMedia.js +2 -0
  193. package/dist/services/hooks/useMatchMedia.js.map +1 -0
  194. package/dist/services/icons.js +2 -0
  195. package/dist/services/icons.js.map +1 -0
  196. package/dist/services/mocks.js +2 -0
  197. package/dist/services/mocks.js.map +1 -0
  198. package/package.json +1 -1
  199. /package/dist/assets/{index.css → global.css} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("../node_modules/cookie/dist/index.js");e.__require();
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("./index.js"),d=({block:e,isOpen:c,textContent:r,title:t,onClick:i})=>o.jsxs(n.Accordion.Layout,{isOpen:c,block:e,children:[o.jsx(n.Accordion.Block,{title:t,onClick:i}),o.jsx(n.Accordion.Content,{isOpen:c,children:r})]});exports.AccordionComponent=d;
2
+ //# sourceMappingURL=AccordionComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionComponent.js","sources":["../../../lib/components/Accordion/AccordionComponent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Accordion} from '@/components/Accordion';\nimport type {ElementProps} from '@/services/types';\n\nexport interface Props extends ElementProps {\n isOpen: boolean;\n textContent: string;\n title: string;\n onClick: () => void;\n}\n\nexport const AccordionComponent: FC<Props> = ({block, isOpen, textContent, title, onClick}) => (\n <Accordion.Layout\n isOpen={isOpen}\n block={block}\n >\n <Accordion.Block\n title={title}\n onClick={onClick}\n />\n <Accordion.Content isOpen={isOpen}>{textContent}</Accordion.Content>\n </Accordion.Layout>\n);\n"],"names":["AccordionComponent","block","isOpen","textContent","title","onClick","jsxs","Accordion","jsx"],"mappings":"6IAWaA,EAAgC,CAAC,CAAC,MAAAC,EAAO,OAAAC,EAAQ,YAAAC,EAAa,MAAAC,EAAO,QAAAC,KAChFC,EAAA,KAACC,EAAAA,UAAU,OAAV,CACC,OAAAL,EACA,MAAAD,EAEA,SAAA,CAAAO,EAAA,IAACD,EAAAA,UAAU,MAAV,CACC,MAAAH,EACA,QAAAC,CAAA,CACF,EACCG,EAAA,IAAAD,EAAA,UAAU,QAAV,CAAkB,OAAAL,EAAiB,SAAYC,CAAA,CAAA,CAAA,CAAA,CAClD"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("../../../services/icons.js"),c=()=>o.jsx(r.Icons.ArrowNarrowDown,{className:"accordion__arrow"});exports.AccordionArrow=c;
2
+ //# sourceMappingURL=AccordionArrow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionArrow.js","sources":["../../../../lib/components/Accordion/components/AccordionArrow.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Icons} from '@/services/icons';\n\nexport const AccordionArrow: FC = () => <Icons.ArrowNarrowDown className=\"accordion__arrow\" />;\n"],"names":["AccordionArrow","jsx","Icons"],"mappings":"6JAGaA,EAAqB,IAAMC,EAAAA,IAACC,EAAAA,MAAM,gBAAN,CAAsB,UAAU,kBAAmB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("../index.js"),i=({onClick:r,title:e})=>o.jsxs(c.Accordion.Button,{onClick:r,children:[o.jsx(c.Accordion.Title,{title:e}),o.jsx(c.Accordion.Arrow,{})]});exports.AccordionBlock=i;
2
+ //# sourceMappingURL=AccordionBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionBlock.js","sources":["../../../../lib/components/Accordion/components/AccordionBlock.tsx"],"sourcesContent":["import type {FC} from 'react';\n\nimport type {AccordionTitleProps} from '@/components/Accordion/components/AccordionTitle';\nimport {Accordion} from '@/components/Accordion';\n\nexport interface Props extends AccordionTitleProps {\n onClick: () => void;\n}\nexport const AccordionBlock: FC<Props> = ({onClick, title}) => (\n <Accordion.Button onClick={onClick}>\n <Accordion.Title title={title} />\n <Accordion.Arrow />\n </Accordion.Button>\n);\n"],"names":["AccordionBlock","onClick","title","jsxs","Accordion","jsx"],"mappings":"8IAQaA,EAA4B,CAAC,CAAC,QAAAC,EAAS,MAAAC,KACjDC,OAAAC,EAAAA,UAAU,OAAV,CAAiB,QAAAH,EAChB,SAAA,CAACI,EAAAA,IAAAD,EAAA,UAAU,MAAV,CAAgB,MAAAF,CAAc,CAAA,EAC/BG,MAACD,EAAAA,UAAU,MAAV,CAAgB,CAAA,CAAA,CACnB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=({onClick:t,children:o})=>n.jsx("button",{onClick:t,type:"button",className:"accordion__button",children:o});exports.AccordionButton=e;
2
+ //# sourceMappingURL=AccordionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionButton.js","sources":["../../../../lib/components/Accordion/components/AccordionButton.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\n\nexport interface Props {\n children: ReactNode;\n onClick: () => void;\n}\n\nexport const AccordionButton: FC<Props> = ({onClick, children}) => (\n <button\n onClick={onClick}\n type=\"button\"\n className=\"accordion__button\"\n >\n {children}\n </button>\n);\n"],"names":["AccordionButton","onClick","children","jsx"],"mappings":"qHAOaA,EAA6B,CAAC,CAAC,QAAAC,EAAS,SAAAC,CACnD,IAAAC,EAAA,IAAC,SAAA,CACC,QAAAF,EACA,KAAK,SACL,UAAU,oBAET,SAAAC,CAAA,CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../services/hooks/useAccordionHeight.js"),i=({isOpen:t,children:o})=>{const{style:c,contentRef:n}=r.useAccordionHeight(t);return e.jsx("div",{style:c,className:"accordion__content",children:e.jsx("p",{className:"accordion__text",ref:n,children:o})})};exports.AccordionContent=i;
2
+ //# sourceMappingURL=AccordionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionContent.js","sources":["../../../../lib/components/Accordion/components/AccordionContent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {useAccordionHeight} from '@/services/hooks/useAccordionHeight';\n\nexport interface Props {\n isOpen: boolean;\n children: string;\n}\n\nexport const AccordionContent: FC<Props> = ({isOpen, children}) => {\n const {style, contentRef} = useAccordionHeight(isOpen);\n return (\n <div\n style={style}\n className=\"accordion__content\"\n >\n <p\n className=\"accordion__text\"\n ref={contentRef}\n >\n {children}\n </p>\n </div>\n );\n};\n"],"names":["AccordionContent","isOpen","children","style","contentRef","useAccordionHeight","jsx"],"mappings":"gLAQaA,EAA8B,CAAC,CAAC,OAAAC,EAAQ,SAAAC,KAAc,CACjE,KAAM,CAAC,MAAAC,EAAO,WAAAC,GAAcC,EAAAA,mBAAmBJ,CAAM,EAEnD,OAAAK,EAAA,IAAC,MAAA,CACC,MAAAH,EACA,UAAU,qBAEV,SAAAG,EAAA,IAAC,IAAA,CACC,UAAU,kBACV,IAAKF,EAEJ,SAAAF,CAAA,CAAA,CACH,CACF,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),r=require("../../../services/helpers.js"),s=require("../constants.js"),i=({block:e,isOpen:t,children:o})=>c.jsx("div",{"data-testid":s.ACCORDION_TEST_ID,className:r.cn(e,"accordion",{_active:t}),children:o});exports.AccordionLayout=i;
2
+ //# sourceMappingURL=AccordionLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionLayout.js","sources":["../../../../lib/components/Accordion/components/AccordionLayout.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\nimport {ACCORDION_TEST_ID} from '@/components/Accordion/constants';\n\nexport interface Props extends ElementProps {\n children: ReactNode;\n isOpen: boolean;\n}\n\nexport const AccordionLayout: FC<Props> = ({block, isOpen, children}) => (\n <div\n data-testid={ACCORDION_TEST_ID}\n className={cn(block, 'accordion', {\n '_active': isOpen,\n })}\n >\n {children}\n </div>\n);\n"],"names":["AccordionLayout","block","isOpen","children","jsx","ACCORDION_TEST_ID","cn"],"mappings":"4LAUaA,EAA6B,CAAC,CAAC,MAAAC,EAAO,OAAAC,EAAQ,SAAAC,CACzD,IAAAC,EAAA,IAAC,MAAA,CACC,cAAaC,EAAA,kBACb,UAAWC,EAAAA,GAAGL,EAAO,YAAa,CAChC,QAAWC,CAAA,CACZ,EAEA,SAAAC,CAAA,CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=({title:e})=>t.jsx("h3",{className:"accordion__title",children:e});exports.AccordionTitle=c;
2
+ //# sourceMappingURL=AccordionTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionTitle.js","sources":["../../../../lib/components/Accordion/components/AccordionTitle.tsx"],"sourcesContent":["import type {FC} from 'react';\n\nexport interface AccordionTitleProps {\n title: string;\n}\n\nexport const AccordionTitle: FC<AccordionTitleProps> = ({title}) => <h3 className=\"accordion__title\">{title}</h3>;\n"],"names":["AccordionTitle","title","jsx"],"mappings":"qHAMaA,EAA0C,CAAC,CAAC,MAAAC,CAAA,IAAYC,EAAA,IAAA,KAAA,CAAG,UAAU,mBAAoB,SAAMD,CAAA,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="accordionTestId";exports.ACCORDION_TEST_ID=e;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Accordion/constants.ts"],"sourcesContent":["export const ACCORDION_TEST_ID = 'accordionTestId';\n"],"names":["ACCORDION_TEST_ID"],"mappings":"gFAAO,MAAMA,EAAoB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./AccordionComponent.js"),c=require("./components/AccordionContent.js"),n=require("./components/AccordionArrow.js"),r=require("./components/AccordionTitle.js"),t=require("./components/AccordionBlock.js"),e=require("./components/AccordionLayout.js"),i=require("./components/AccordionButton.js"),A=Object.assign(o.AccordionComponent,{Content:c.AccordionContent,Arrow:n.AccordionArrow,Title:r.AccordionTitle,Block:t.AccordionBlock,Layout:e.AccordionLayout,Button:i.AccordionButton});exports.Accordion=A;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../lib/components/Accordion/index.ts"],"sourcesContent":["import {AccordionComponent} from '@/components/Accordion/AccordionComponent';\nimport {AccordionContent} from '@/components/Accordion/components/AccordionContent';\nimport {AccordionArrow} from '@/components/Accordion/components/AccordionArrow';\nimport {AccordionTitle} from '@/components/Accordion/components/AccordionTitle';\nimport {AccordionBlock} from '@/components/Accordion/components/AccordionBlock';\nimport {AccordionLayout} from '@/components/Accordion/components/AccordionLayout';\nimport {AccordionButton} from '@/components/Accordion/components/AccordionButton';\n\nexport const Accordion = Object.assign(AccordionComponent, {\n Content: AccordionContent,\n Arrow: AccordionArrow,\n Title: AccordionTitle,\n Block: AccordionBlock,\n Layout: AccordionLayout,\n Button: AccordionButton,\n});\n"],"names":["Accordion","AccordionComponent","AccordionContent","AccordionArrow","AccordionTitle","AccordionBlock","AccordionLayout","AccordionButton"],"mappings":"uYAQaA,EAAY,OAAO,OAAOC,qBAAoB,CACzD,QAASC,EAAA,iBACT,MAAOC,EAAA,eACP,MAAOC,EAAA,eACP,MAAOC,EAAA,eACP,OAAQC,EAAA,gBACR,OAAQC,EAAAA,eACV,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("./constants.js"),T=require("../../services/helpers.js"),d=({children:t,size:e,color:n,onClick:s,type:o="button",disabled:u=!1,isTransparent:r=!1,withIcon:a=!1,block:c})=>{const b=T.cn(c,"button",`button--${e} button--${n}`,{"button--transparent":r,"button--icon":a});return i.jsx("button",{"data-testid":l.BUTTON_TEST_ID,disabled:u,type:o,className:b,onClick:s,children:t})};exports.Button=d;
2
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../../lib/components/Button/Button.tsx"],"sourcesContent":["import type {FC, MouseEvent, ReactNode} from 'react';\nimport type {ButtonAttributesType, ButtonColorType, ButtonSizeType} from '@/components/Button/constants';\nimport {BUTTON_TEST_ID} from '@/components/Button/constants';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\n\nexport interface ButtonProps extends ElementProps {\n size: ButtonSizeType;\n children: ReactNode;\n color: ButtonColorType;\n type?: ButtonAttributesType;\n disabled?: boolean;\n onClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n isTransparent?: boolean;\n withIcon?: boolean;\n}\n\nexport const Button: FC<ButtonProps> = ({\n children,\n size,\n color,\n onClick,\n type = 'button',\n disabled = false,\n isTransparent = false,\n withIcon = false,\n block,\n}) => {\n const classNames = cn(block, 'button', `button--${size} button--${color}`, {\n 'button--transparent': isTransparent,\n 'button--icon': withIcon,\n });\n return (\n <button\n data-testid={BUTTON_TEST_ID}\n disabled={disabled}\n type={type}\n className={classNames}\n onClick={onClick}\n >\n {children}\n </button>\n );\n};\n"],"names":["Button","children","size","color","onClick","type","disabled","isTransparent","withIcon","block","classNames","cn","jsx","BUTTON_TEST_ID"],"mappings":"wLAiBaA,EAA0B,CAAC,CACtC,SAAAC,EACA,KAAAC,EACA,MAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,SACP,SAAAC,EAAW,GACX,cAAAC,EAAgB,GAChB,SAAAC,EAAW,GACX,MAAAC,CACF,IAAM,CACE,MAAAC,EAAaC,KAAGF,EAAO,SAAU,WAAWP,CAAI,YAAYC,CAAK,GAAI,CACzE,sBAAuBI,EACvB,eAAgBC,CAAA,CACjB,EAEC,OAAAI,EAAA,IAAC,SAAA,CACC,cAAaC,EAAA,eACb,SAAAP,EACA,KAAAD,EACA,UAAWK,EACX,QAAAN,EAEC,SAAAH,CAAA,CACH,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="buttonTestId";exports.BUTTON_TEST_ID=t;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Button/constants.ts"],"sourcesContent":["import type {ButtonHTMLAttributes} from 'react';\n\nexport const BUTTON_SIZE = Object.freeze({\n BIG: 'big',\n MEDIUM: 'medium',\n SMALL: 'small',\n});\n\nexport const BUTTON_COLOR = Object.freeze({\n GREEN: 'green',\n WHITE: 'white',\n GRAY: 'gray',\n});\n\nexport type ButtonAttributesType = ButtonHTMLAttributes<HTMLButtonElement>['type'];\nexport type ButtonSizeType = (typeof BUTTON_SIZE)[keyof typeof BUTTON_SIZE];\nexport type ButtonColorType = (typeof BUTTON_COLOR)[keyof typeof BUTTON_COLOR];\n\nexport const BUTTON_TEST_ID = 'buttonTestId';\n"],"names":["BUTTON_TEST_ID"],"mappings":"gFAkBO,MAAMA,EAAiB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("../Button/Button.js"),s=require("./constants.js"),T=({RightIcon:e,LeftIcon:n,children:i,className:o,...r})=>t.jsxs(u.Button,{withIcon:!0,...r,children:[!!n&&t.jsx(n,{className:o,"data-testid":s.LEFT_ICON_BUTTON_TEST_ID}),i,!!e&&t.jsx(e,{className:o,"data-testid":s.RIGHT_ICON_BUTTON_TEST_ID})]});exports.ButtonWithIcon=T;
2
+ //# sourceMappingURL=ButtonWithIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonWithIcon.js","sources":["../../../lib/components/ButtonWithIcon/ButtonWithIcon.tsx"],"sourcesContent":["import type {ComponentType, FC, ReactNode} from 'react';\nimport type {ButtonProps} from '@/components/Button/Button';\nimport {Button} from '@/components/Button/Button';\nimport {LEFT_ICON_BUTTON_TEST_ID, RIGHT_ICON_BUTTON_TEST_ID} from '@/components/ButtonWithIcon/constants';\n\ninterface IconProps {\n className?: string;\n}\n\nexport interface ButtonIconProps<T> extends ButtonProps {\n children: ReactNode;\n RightIcon?: ComponentType<T>;\n LeftIcon?: ComponentType<T>;\n className?: string;\n}\n\nexport const ButtonWithIcon: FC<ButtonIconProps<IconProps>> = ({\n RightIcon,\n LeftIcon,\n children,\n className,\n ...props\n}) => (\n <Button\n withIcon\n {...props}\n >\n {!!LeftIcon && (\n <LeftIcon\n className={className}\n data-testid={LEFT_ICON_BUTTON_TEST_ID}\n />\n )}\n {children}\n {!!RightIcon && (\n <RightIcon\n className={className}\n data-testid={RIGHT_ICON_BUTTON_TEST_ID}\n />\n )}\n </Button>\n);\n"],"names":["ButtonWithIcon","RightIcon","LeftIcon","children","className","props","jsxs","Button","jsx","LEFT_ICON_BUTTON_TEST_ID","RIGHT_ICON_BUTTON_TEST_ID"],"mappings":"kLAgBaA,EAAiD,CAAC,CAC7D,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,GAAGC,CACL,IACEC,EAAA,KAACC,EAAA,OAAA,CACC,SAAQ,GACP,GAAGF,EAEH,SAAA,CAAA,CAAC,CAACH,GACDM,EAAA,IAACN,EAAA,CACC,UAAAE,EACA,cAAaK,EAAAA,wBAAA,CACf,EAEDN,EACA,CAAC,CAACF,GACDO,EAAA,IAACP,EAAA,CACC,UAAAG,EACA,cAAaM,EAAAA,yBAAA,CAAA,CACf,CAAA,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T="leftIconButtonTestId",t="rightIconButtonTestId";exports.LEFT_ICON_BUTTON_TEST_ID=T;exports.RIGHT_ICON_BUTTON_TEST_ID=t;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/ButtonWithIcon/constants.ts"],"sourcesContent":["export const LEFT_ICON_BUTTON_TEST_ID = 'leftIconButtonTestId';\nexport const RIGHT_ICON_BUTTON_TEST_ID = 'rightIconButtonTestId';\n"],"names":["LEFT_ICON_BUTTON_TEST_ID","RIGHT_ICON_BUTTON_TEST_ID"],"mappings":"gFAAO,MAAMA,EAA2B,uBAC3BC,EAA4B"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("./constants.js"),t=require("../../services/helpers.js"),n=({category:e,block:s})=>{const r=t.cn(s,"category",`category--${e}`);return a.jsx("span",{"data-testid":c.CATEGORY_TEST_ID,className:r,children:t.capitalizeFirstLetter(e)})};exports.Category=n;
2
+ //# sourceMappingURL=Category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Category.js","sources":["../../../lib/components/Category/Category.tsx"],"sourcesContent":["import type {FC} from 'react';\r\nimport type {CategoriesListType} from '@/components/Category/constants';\r\nimport {CATEGORY_TEST_ID} from '@/components/Category/constants';\r\nimport {capitalizeFirstLetter, cn} from '@/services/helpers';\r\nimport type {ElementProps} from '@/services/types';\r\n\r\ninterface Props extends ElementProps {\r\n category: CategoriesListType;\r\n}\r\n\r\nexport const Category: FC<Props> = ({category, block}) => {\r\n const classNames = cn(block, 'category', `category--${category}`);\r\n return (\r\n <span\r\n data-testid={CATEGORY_TEST_ID}\r\n className={classNames}\r\n >\r\n {capitalizeFirstLetter(category)}\r\n </span>\r\n );\r\n};\r\n"],"names":["Category","category","block","classNames","cn","jsx","CATEGORY_TEST_ID"],"mappings":"wLAUaA,EAAsB,CAAC,CAAC,SAAAC,EAAU,MAAAC,KAAW,CACxD,MAAMC,EAAaC,EAAAA,GAAGF,EAAO,WAAY,aAAaD,CAAQ,EAAE,EAE9D,OAAAI,EAAA,IAAC,OAAA,CACC,cAAaC,EAAA,iBACb,UAAWH,EAEV,iCAAsBF,CAAQ,CAAA,CACjC,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({GUIDES:"guides",REVIEWS:"reviews",NEWS:"news"}),E="categoryTestId";exports.CATEGORIES_LIST=e;exports.CATEGORY_TEST_ID=E;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Category/constants.ts"],"sourcesContent":["export const CATEGORIES_LIST = Object.freeze({\n GUIDES: 'guides',\n REVIEWS: 'reviews',\n NEWS: 'news',\n});\n\nexport type CategoriesListType = (typeof CATEGORIES_LIST)[keyof typeof CATEGORIES_LIST];\n\nexport const CATEGORY_TEST_ID = 'categoryTestId';\n"],"names":["CATEGORIES_LIST","CATEGORY_TEST_ID"],"mappings":"gFAAa,MAAAA,EAAkB,OAAO,OAAO,CAC3C,OAAQ,SACR,QAAS,UACT,KAAM,MACR,CAAC,EAIYC,EAAmB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./index.js"),r=({id:t,block:n,...c})=>e.jsxs(o.Checkbox.Block,{htmlFor:t,block:n,children:[e.jsx(o.Checkbox.Input,{...c,id:t}),e.jsx(o.Checkbox.Indicator,{})]});exports.CheckboxComponent=r;
2
+ //# sourceMappingURL=CheckboxComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxComponent.js","sources":["../../../lib/components/Checkbox/CheckboxComponent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {CheckboxProps} from '@/components/Checkbox/constants';\nimport {Checkbox} from '@/components/Checkbox';\n\nexport const CheckboxComponent: FC<CheckboxProps> = ({id, block, ...props}) => (\n <Checkbox.Block\n htmlFor={id}\n block={block}\n >\n <Checkbox.Input\n {...props}\n id={id}\n />\n <Checkbox.Indicator />\n </Checkbox.Block>\n);\n"],"names":["CheckboxComponent","id","block","props","jsxs","Checkbox","jsx"],"mappings":"6IAIaA,EAAuC,CAAC,CAAC,GAAAC,EAAI,MAAAC,EAAO,GAAGC,CAClE,IAAAC,EAAA,KAACC,EAAAA,SAAS,MAAT,CACC,QAASJ,EACT,MAAAC,EAEA,SAAA,CAAAI,EAAA,IAACD,EAAAA,SAAS,MAAT,CACE,GAAGF,EACJ,GAAAF,CAAA,CACF,EACAK,MAACD,EAAAA,SAAS,UAAT,CAAmB,CAAA,CAAA,CAAA,CACtB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("../constants.js"),n=require("../../../services/helpers.js"),a=({children:e,block:c,htmlFor:s="checkbox"})=>{const t=n.cn(c,"checkbox");return o.jsx("label",{"data-testid":r.CHECKBOX_TEST_ID,className:t,htmlFor:s,children:e})};exports.CheckboxBlock=a;
2
+ //# sourceMappingURL=CheckboxBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxBlock.js","sources":["../../../../lib/components/Checkbox/components/CheckboxBlock.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {CHECKBOX_TEST_ID} from '@/components/Checkbox/constants';\nimport type {ElementProps} from '@/services/types';\nimport {cn} from '@/services/helpers';\n\nexport interface Props extends ElementProps {\n htmlFor?: string;\n children: ReactNode;\n}\n\nexport const CheckboxBlock: FC<Props> = ({children, block, htmlFor = 'checkbox'}) => {\n const classNames = cn(block, 'checkbox');\n return (\n <label\n data-testid={CHECKBOX_TEST_ID}\n className={classNames}\n htmlFor={htmlFor}\n >\n {children}\n </label>\n );\n};\n"],"names":["CheckboxBlock","children","block","htmlFor","classNames","cn","jsx","CHECKBOX_TEST_ID"],"mappings":"4LAUaA,EAA2B,CAAC,CAAC,SAAAC,EAAU,MAAAC,EAAO,QAAAC,EAAU,cAAgB,CAC7E,MAAAC,EAAaC,EAAAA,GAAGH,EAAO,UAAU,EAErC,OAAAI,EAAA,IAAC,QAAA,CACC,cAAaC,EAAA,iBACb,UAAWH,EACX,QAAAD,EAEC,SAAAF,CAAA,CACH,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../../services/icons.js"),o=()=>e.jsx("span",{className:"checkbox__indicator",children:e.jsx(c.Icons.Check,{})});exports.CheckboxIndicator=o;
2
+ //# sourceMappingURL=CheckboxIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxIndicator.js","sources":["../../../../lib/components/Checkbox/components/CheckboxIndicator.tsx"],"sourcesContent":["import {Icons} from '@/services/icons';\nimport type {FC} from 'react';\n\nexport const CheckboxIndicator: FC = () => (\n <span className=\"checkbox__indicator\">\n <Icons.Check />\n </span>\n);\n"],"names":["CheckboxIndicator","jsx","Icons"],"mappings":"6JAGaA,EAAwB,IACnCC,EAAAA,IAAC,OAAK,CAAA,UAAU,sBACd,SAACA,MAAAC,EAAAA,MAAM,MAAN,CAAY,CAAA,CACf,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),h=require("../../../services/helpers.js"),l=require("../constants.js"),b=({onChange:e,id:t="checkbox",checked:c=!1,disabled:s=!1,name:n="checkbox",hasError:o=!1})=>{const r=h.cn("","checkbox__input",{error:o}),a=u=>{e&&e(u.target.checked)};return i.jsx("input",{"data-testid":l.CHECKBOX_TEST_INPUT_ID,name:n,disabled:s,className:r,checked:c,onChange:a,id:t,type:"checkbox"})};exports.CheckboxInput=b;
2
+ //# sourceMappingURL=CheckboxInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxInput.js","sources":["../../../../lib/components/Checkbox/components/CheckboxInput.tsx"],"sourcesContent":["import type {ChangeEvent, FC} from 'react';\nimport {cn} from '@/services/helpers';\nimport type {CheckboxProps} from '@/components/Checkbox/constants';\nimport {CHECKBOX_TEST_INPUT_ID} from '@/components/Checkbox/constants';\n\nexport const CheckboxInput: FC<CheckboxProps> = ({\n onChange,\n id = 'checkbox',\n checked = false,\n disabled = false,\n name = 'checkbox',\n hasError = false,\n}) => {\n const classNames = cn('', 'checkbox__input', {\n 'error': hasError,\n });\n const handleChange = (e: ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(e.target.checked);\n }\n };\n return (\n <input\n data-testid={CHECKBOX_TEST_INPUT_ID}\n name={name}\n disabled={disabled}\n className={classNames}\n checked={checked}\n onChange={handleChange}\n id={id}\n type=\"checkbox\"\n />\n );\n};\n"],"names":["CheckboxInput","onChange","id","checked","disabled","name","hasError","classNames","cn","handleChange","e","jsx","CHECKBOX_TEST_INPUT_ID"],"mappings":"4LAKaA,EAAmC,CAAC,CAC/C,SAAAC,EACA,GAAAC,EAAK,WACL,QAAAC,EAAU,GACV,SAAAC,EAAW,GACX,KAAAC,EAAO,WACP,SAAAC,EAAW,EACb,IAAM,CACE,MAAAC,EAAaC,EAAAA,GAAG,GAAI,kBAAmB,CAC3C,MAASF,CAAA,CACV,EACKG,EAAgBC,GAAqC,CACrDT,GACOA,EAAAS,EAAE,OAAO,OAAO,CAE7B,EAEE,OAAAC,EAAA,IAAC,QAAA,CACC,cAAaC,EAAA,uBACb,KAAAP,EACA,SAAAD,EACA,UAAWG,EACX,QAAAJ,EACA,SAAUM,EACV,GAAAP,EACA,KAAK,UAAA,CACP,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T="checkboxTestId",e="checkboxTestInputId";exports.CHECKBOX_TEST_ID=T;exports.CHECKBOX_TEST_INPUT_ID=e;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Checkbox/constants.ts"],"sourcesContent":["import type {ElementProps} from '@/services/types';\n\nexport interface CheckboxProps extends ElementProps {\n name?: string;\n id?: string;\n disabled?: boolean;\n onChange?: (checked: boolean) => void;\n checked?: boolean;\n hasError?: boolean;\n}\n\nexport const CHECKBOX_TEST_ID = 'checkboxTestId';\nexport const CHECKBOX_TEST_INPUT_ID = 'checkboxTestInputId';\n"],"names":["CHECKBOX_TEST_ID","CHECKBOX_TEST_INPUT_ID"],"mappings":"gFAWO,MAAMA,EAAmB,iBACnBC,EAAyB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckboxComponent.js"),e=require("./components/CheckboxBlock.js"),c=require("./components/CheckboxIndicator.js"),t=require("./components/CheckboxInput.js"),n=Object.assign(o.CheckboxComponent,{Block:e.CheckboxBlock,Indicator:c.CheckboxIndicator,Input:t.CheckboxInput});exports.Checkbox=n;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../lib/components/Checkbox/index.ts"],"sourcesContent":["import {CheckboxComponent} from '@/components/Checkbox/CheckboxComponent';\nimport {CheckboxBlock} from '@/components/Checkbox/components/CheckboxBlock';\nimport {CheckboxIndicator} from '@/components/Checkbox/components/CheckboxIndicator';\nimport {CheckboxInput} from '@/components/Checkbox/components/CheckboxInput';\n\nexport const Checkbox = Object.assign(CheckboxComponent, {\n Block: CheckboxBlock,\n Indicator: CheckboxIndicator,\n Input: CheckboxInput,\n});\n"],"names":["Checkbox","CheckboxComponent","CheckboxBlock","CheckboxIndicator","CheckboxInput"],"mappings":"+PAKaA,EAAW,OAAO,OAAOC,oBAAmB,CACvD,MAAOC,EAAA,cACP,UAAWC,EAAA,kBACX,MAAOC,EAAAA,aACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../services/helpers.js"),w=require("./constants.js"),D=require("../../services/hooks/useClickOutside.js"),o=require("./index.js"),m=({category:n,block:r,options:t,onSelect:s,handleOpen:d,isOpen:i,onClickOutside:c})=>{const u=t.find(p=>p.value===n),l=D.useClickOutside(c);return e.jsxs("div",{"data-testid":w.DROPDOWN_TEST_ID,ref:l,className:a.cn(r,"dropdown-menu",{"_dropdown-active":i}),children:[e.jsx(o.Dropdown.Block,{children:e.jsx(o.Dropdown.Category,{handleOpen:d,item:u})}),e.jsx(o.Dropdown.List,{onSelect:s,options:t,category:n})]})};exports.DropdownComponent=m;
2
+ //# sourceMappingURL=DropdownComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownComponent.js","sources":["../../../lib/components/Dropdown/DropdownComponent.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {ElementProps} from '@/services/types';\nimport {cn} from '@/services/helpers';\nimport type {DropdownProps} from './constants';\nimport {DROPDOWN_TEST_ID} from './constants';\nimport {useClickOutside} from '@/services/hooks/useClickOutside';\nimport {Dropdown} from '@/components/Dropdown';\n\nexport interface Props extends ElementProps, DropdownProps {\n handleOpen: () => void;\n onClickOutside: (isOpen: boolean) => void;\n isOpen: boolean;\n}\nexport const DropdownComponent: FC<Props> = ({\n category,\n block,\n options,\n onSelect,\n handleOpen,\n isOpen,\n onClickOutside,\n}) => {\n const selectedOption = options.find((option) => option.value === category);\n const dropdownRef = useClickOutside(onClickOutside);\n return (\n <div\n data-testid={DROPDOWN_TEST_ID}\n ref={dropdownRef}\n className={cn(block, 'dropdown-menu', {\n '_dropdown-active': isOpen,\n })}\n >\n <Dropdown.Block>\n <Dropdown.Category\n handleOpen={handleOpen}\n item={selectedOption}\n />\n </Dropdown.Block>\n <Dropdown.List\n onSelect={onSelect}\n options={options}\n category={category}\n />\n </div>\n );\n};\n"],"names":["DropdownComponent","category","block","options","onSelect","handleOpen","isOpen","onClickOutside","selectedOption","option","dropdownRef","useClickOutside","jsxs","DROPDOWN_TEST_ID","cn","jsx","Dropdown"],"mappings":"qQAaaA,EAA+B,CAAC,CAC3C,SAAAC,EACA,MAAAC,EACA,QAAAC,EACA,SAAAC,EACA,WAAAC,EACA,OAAAC,EACA,eAAAC,CACF,IAAM,CACJ,MAAMC,EAAiBL,EAAQ,KAAMM,GAAWA,EAAO,QAAUR,CAAQ,EACnES,EAAcC,kBAAgBJ,CAAc,EAEhD,OAAAK,EAAA,KAAC,MAAA,CACC,cAAaC,EAAA,iBACb,IAAKH,EACL,UAAWI,EAAAA,GAAGZ,EAAO,gBAAiB,CACpC,mBAAoBI,CAAA,CACrB,EAED,SAAA,CAACS,EAAAA,IAAAC,EAAA,SAAS,MAAT,CACC,SAAAD,EAAA,IAACC,EAAAA,SAAS,SAAT,CACC,WAAAX,EACA,KAAMG,CAAA,CAAA,EAEV,EACAO,EAAA,IAACC,EAAAA,SAAS,KAAT,CACC,SAAAZ,EACA,QAAAD,EACA,SAAAF,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"),n=({children:o})=>e.jsx("div",{className:"dropdown-menu__block",children:o});exports.DropdownBlock=n;
2
+ //# sourceMappingURL=DropdownBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownBlock.js","sources":["../../../../lib/components/Dropdown/components/DropdownBlock.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\n\nexport interface Props {\n children: ReactNode;\n}\n\nexport const DropdownBlock: FC<Props> = ({children}) => <div className=\"dropdown-menu__block\">{children}</div>;\n"],"names":["DropdownBlock","children","jsx"],"mappings":"qHAMaA,EAA2B,CAAC,CAAC,SAAAC,KAAeC,EAAAA,IAAA,MAAA,CAAI,UAAU,uBAAwB,SAAAD,CAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("../../../services/icons.js"),a=({item:o,handleOpen:n})=>r.jsxs("button",{onClick:n,className:"dropdown-menu__category",children:[o==null?void 0:o.label,o==null?void 0:o.value,r.jsx(s.Icons.ArrowNarrowDown,{className:"dropdown-menu__arrow"})]});exports.DropdownCategory=a;
2
+ //# sourceMappingURL=DropdownCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownCategory.js","sources":["../../../../lib/components/Dropdown/components/DropdownCategory.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Icons} from '@/services/icons';\nimport type {DropdownOption} from '@/components/Dropdown/constants';\n\nexport interface Props {\n item?: DropdownOption;\n handleOpen: () => void;\n}\n\nexport const DropdownCategory: FC<Props> = ({item, handleOpen}) => (\n <button\n onClick={handleOpen}\n className=\"dropdown-menu__category\"\n >\n {item?.label}\n {item?.value}\n <Icons.ArrowNarrowDown className=\"dropdown-menu__arrow\" />\n </button>\n);\n"],"names":["DropdownCategory","item","handleOpen","jsxs","jsx","Icons"],"mappings":"6JASaA,EAA8B,CAAC,CAAC,KAAAC,EAAM,WAAAC,CACjD,IAAAC,EAAA,KAAC,SAAA,CACC,QAASD,EACT,UAAU,0BAET,SAAA,CAAMD,GAAA,YAAAA,EAAA,MACNA,GAAA,YAAAA,EAAM,MACNG,EAAAA,IAAAC,EAAAA,MAAM,gBAAN,CAAsB,UAAU,sBAAuB,CAAA,CAAA,CAAA,CAC1D"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("../index.js"),d=({category:t,options:n,onSelect:s})=>o.jsx("ul",{className:"dropdown-menu__list",children:n.map(r=>{const{value:e,label:i}=r,l=e===t;return o.jsx(c.Dropdown.Option,{value:e,label:i,onSelect:s,isSelected:l},e)})});exports.DropdownList=d;
2
+ //# sourceMappingURL=DropdownList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownList.js","sources":["../../../../lib/components/Dropdown/components/DropdownList.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {DropdownProps} from '@/components/Dropdown/constants';\nimport {Dropdown} from '@/components/Dropdown';\n\nexport const DropdownList: FC<DropdownProps> = ({category, options, onSelect}) => (\n <ul className=\"dropdown-menu__list\">\n {options.map((option) => {\n const {value, label} = option;\n const isSelected = value === category;\n return (\n <Dropdown.Option\n key={value}\n value={value}\n label={label}\n onSelect={onSelect}\n isSelected={isSelected}\n />\n );\n })}\n </ul>\n);\n"],"names":["DropdownList","category","options","onSelect","jsx","option","value","label","isSelected","Dropdown"],"mappings":"8IAIaA,EAAkC,CAAC,CAAC,SAAAC,EAAU,QAAAC,EAAS,SAAAC,CAAQ,IACzEC,EAAAA,IAAA,KAAA,CAAG,UAAU,sBACX,SAAQF,EAAA,IAAKG,GAAW,CACjB,KAAA,CAAC,MAAAC,EAAO,MAAAC,CAAA,EAASF,EACjBG,EAAaF,IAAUL,EAE3B,OAAAG,EAAA,IAACK,EAAAA,SAAS,OAAT,CAEC,MAAAH,EACA,MAAAC,EACA,SAAAJ,EACA,WAAAK,CAAA,EAJKF,CAKP,CAEJ,CAAC,CACH,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../../../services/helpers.js"),c=({label:e,value:o,isSelected:n,onSelect:t})=>{const r=()=>{t(o)};return i.jsxs("li",{onClick:r,className:s.cn("","dropdown-menu__option",{"_selected-option":n}),children:[e&&e," ",o]})};exports.DropdownOption=c;
2
+ //# sourceMappingURL=DropdownOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownOption.js","sources":["../../../../lib/components/Dropdown/components/DropdownOption.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {cn} from '@/services/helpers';\n\nexport interface Props {\n isSelected: boolean;\n value: string;\n label?: ReactNode;\n onSelect: (value: string) => void;\n}\n\nexport const DropdownOption: FC<Props> = ({label, value, isSelected, onSelect}) => {\n const handleSelect = () => {\n onSelect(value);\n };\n return (\n <li\n onClick={handleSelect}\n className={cn('', 'dropdown-menu__option', {\n '_selected-option': isSelected,\n })}\n >\n {label && label} {value}\n </li>\n );\n};\n"],"names":["DropdownOption","label","value","isSelected","onSelect","handleSelect","jsxs","cn"],"mappings":"+JAUaA,EAA4B,CAAC,CAAC,MAAAC,EAAO,MAAAC,EAAO,WAAAC,EAAY,SAAAC,KAAc,CACjF,MAAMC,EAAe,IAAM,CACzBD,EAASF,CAAK,CAChB,EAEE,OAAAI,EAAA,KAAC,KAAA,CACC,QAASD,EACT,UAAWE,EAAAA,GAAG,GAAI,wBAAyB,CACzC,mBAAoBJ,CAAA,CACrB,EAEA,SAAA,CAASF,GAAAA,EAAM,IAAEC,CAAA,CAAA,CACpB,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="dropdownTestId";exports.DROPDOWN_TEST_ID=e;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Dropdown/constants.ts"],"sourcesContent":["import type {ReactNode} from 'react';\n\nexport interface DropdownOption {\n value: string;\n label?: ReactNode;\n}\n\nexport interface DropdownProps {\n onSelect: (value: string) => void;\n category: string;\n options: DropdownOption[];\n}\n\nexport const DROPDOWN_TEST_ID = 'dropdownTestId';\n"],"names":["DROPDOWN_TEST_ID"],"mappings":"gFAaO,MAAMA,EAAmB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./DropdownComponent.js"),r=require("./components/DropdownList.js"),n=require("./components/DropdownOption.js"),t=require("./components/DropdownCategory.js"),e=require("./components/DropdownBlock.js"),p=Object.assign(o.DropdownComponent,{List:r.DropdownList,Option:n.DropdownOption,Category:t.DropdownCategory,Block:e.DropdownBlock});exports.Dropdown=p;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../lib/components/Dropdown/index.ts"],"sourcesContent":["import {DropdownComponent} from '@/components/Dropdown/DropdownComponent';\nimport {DropdownList} from '@/components/Dropdown/components/DropdownList';\nimport {DropdownOption} from '@/components/Dropdown/components/DropdownOption';\nimport {DropdownCategory} from '@/components/Dropdown/components/DropdownCategory';\nimport {DropdownBlock} from '@/components/Dropdown/components/DropdownBlock';\n\nexport const Dropdown = Object.assign(DropdownComponent, {\n List: DropdownList,\n Option: DropdownOption,\n Category: DropdownCategory,\n Block: DropdownBlock,\n});\n"],"names":["Dropdown","DropdownComponent","DropdownList","DropdownOption","DropdownCategory","DropdownBlock"],"mappings":"ySAMaA,EAAW,OAAO,OAAOC,oBAAmB,CACvD,KAAMC,EAAA,aACN,OAAQC,EAAA,eACR,SAAUC,EAAA,iBACV,MAAOC,EAAAA,aACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../../node_modules/react-icons/ai/index.js"),a=require("../../services/helpers.js"),c=require("./constants.js"),l=({disabled:s,block:r,isFavorite:e,type:o,onClick:i})=>{const u=a.cn(r,"favorite-button",`favorite-button--${o}`,{active:e});return t.jsx("button",{"data-testid":c.FAV_BUTTON_TEST_ID,disabled:s,className:u,onClick:i,type:"button",children:e?t.jsx(n.AiFillHeart,{}):t.jsx(n.AiOutlineHeart,{})})};exports.FavButton=l;
2
+ //# sourceMappingURL=FavButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavButton.js","sources":["../../../lib/components/FavButton/FavButton.tsx"],"sourcesContent":["import type {FC, MouseEvent} from 'react';\nimport {AiFillHeart, AiOutlineHeart} from 'react-icons/ai';\nimport {cn} from '@/services/helpers';\nimport type {FavButtonType} from '@/components/FavButton/constants';\nimport {FAV_BUTTON_TEST_ID} from '@/components/FavButton/constants';\nimport type {ElementProps} from '@/services/types';\n\ninterface Props extends ElementProps {\n type: FavButtonType;\n isFavorite?: boolean;\n disabled?: boolean;\n onClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\nexport const FavButton: FC<Props> = ({disabled, block, isFavorite, type, onClick}) => {\n const classNames = cn(block, 'favorite-button', `favorite-button--${type}`, {\n 'active': isFavorite,\n });\n return (\n <button\n data-testid={FAV_BUTTON_TEST_ID}\n disabled={disabled}\n className={classNames}\n onClick={onClick}\n type=\"button\"\n >\n {isFavorite ? <AiFillHeart /> : <AiOutlineHeart />}\n </button>\n );\n};\n"],"names":["FavButton","disabled","block","isFavorite","type","onClick","classNames","cn","jsx","FAV_BUTTON_TEST_ID","AiFillHeart","AiOutlineHeart"],"mappings":"gPAcaA,EAAuB,CAAC,CAAC,SAAAC,EAAU,MAAAC,EAAO,WAAAC,EAAY,KAAAC,EAAM,QAAAC,KAAa,CACpF,MAAMC,EAAaC,EAAAA,GAAGL,EAAO,kBAAmB,oBAAoBE,CAAI,GAAI,CAC1E,OAAUD,CAAA,CACX,EAEC,OAAAK,EAAA,IAAC,SAAA,CACC,cAAaC,EAAA,mBACb,SAAAR,EACA,UAAWK,EACX,QAAAD,EACA,KAAK,SAEJ,SAAaF,EAAAK,MAACE,EAAAA,YAAY,CAAA,CAAA,QAAMC,EAAAA,eAAe,CAAA,CAAA,CAAA,CAClD,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="favButtonTestId";exports.FAV_BUTTON_TEST_ID=t;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/FavButton/constants.ts"],"sourcesContent":["export const FAV_BUTTON_TYPE = Object.freeze({\n TRANSPARENT: 'transparent',\n CIRCLE: 'circle',\n});\n\nexport type FavButtonType = (typeof FAV_BUTTON_TYPE)[keyof typeof FAV_BUTTON_TYPE];\n\nexport const FAV_BUTTON_TEST_ID = 'favButtonTestId';\n"],"names":["FAV_BUTTON_TEST_ID"],"mappings":"gFAOO,MAAMA,EAAqB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),a=require("./constants.js"),r=require("./index.js"),d=require("../../services/helpers.js"),u=({label:s,block:o,children:i,error:e,id:n="input"})=>{const c=d.cn(o,"field");return t.jsxs("div",{"data-testid":a.FIELD_TEST_ID,className:c,children:[!!s&&t.jsx(r.Field.Label,{text:s,htmlFor:n}),l.cloneElement(i,{id:n,hasError:!!e}),!!e&&t.jsx(r.Field.Error,{errorText:e})]})};exports.FieldComponent=u;
2
+ //# sourceMappingURL=FieldComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldComponent.js","sources":["../../../lib/components/Field/FieldComponent.tsx"],"sourcesContent":["import type {FC, ReactElement} from 'react';\nimport {cloneElement} from 'react';\nimport {FIELD_TEST_ID} from '@/components/Field/constants';\nimport {Field} from '@/components/Field';\nimport type {ElementProps} from '@/services/types';\nimport {cn} from '@/services/helpers';\n\nexport interface Props extends ElementProps {\n children: ReactElement;\n id?: string;\n label?: string;\n error?: string;\n}\n\nexport const FieldComponent: FC<Props> = ({label, block, children, error, id = 'input'}) => {\n const classNames = cn(block, 'field');\n return (\n <div\n data-testid={FIELD_TEST_ID}\n className={classNames}\n >\n {!!label && (\n <Field.Label\n text={label}\n htmlFor={id}\n />\n )}\n {cloneElement(children, {id, hasError: !!error})}\n {!!error && <Field.Error errorText={error} />}\n </div>\n );\n};\n"],"names":["FieldComponent","label","block","children","error","id","classNames","cn","jsxs","FIELD_TEST_ID","jsx","Field","cloneElement"],"mappings":"mOAcaA,EAA4B,CAAC,CAAC,MAAAC,EAAO,MAAAC,EAAO,SAAAC,EAAU,MAAAC,EAAO,GAAAC,EAAK,WAAa,CACpF,MAAAC,EAAaC,EAAAA,GAAGL,EAAO,OAAO,EAElC,OAAAM,EAAA,KAAC,MAAA,CACC,cAAaC,EAAA,cACb,UAAWH,EAEV,SAAA,CAAA,CAAC,CAACL,GACDS,EAAA,IAACC,EAAAA,MAAM,MAAN,CACC,KAAMV,EACN,QAASI,CAAA,CACX,EAEDO,EAAA,aAAaT,EAAU,CAAC,GAAAE,EAAI,SAAU,CAAC,CAACD,EAAM,EAC9C,CAAC,CAACA,GAASM,MAACC,EAAAA,MAAM,MAAN,CAAY,UAAWP,CAAO,CAAA,CAAA,CAAA,CAC7C,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=({errorText:r})=>e.jsx("p",{className:"field__error",children:r});exports.FieldError=t;
2
+ //# sourceMappingURL=FieldError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldError.js","sources":["../../../../lib/components/Field/components/FieldError.tsx"],"sourcesContent":["import type {FC} from 'react';\n\nexport interface Props {\n errorText: string;\n}\n\nexport const FieldError: FC<Props> = ({errorText}) => {\n return <p className=\"field__error\">{errorText}</p>;\n};\n"],"names":["FieldError","errorText","jsx"],"mappings":"qHAMaA,EAAwB,CAAC,CAAC,UAAAC,KAC7BC,EAAAA,IAAA,IAAA,CAAE,UAAU,eAAgB,SAAUD,EAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("../constants.js"),s=({text:e,htmlFor:t="input"})=>l.jsx("label",{"data-testid":i.FIELD_LABEL_TEST_ID,className:"field__label",htmlFor:t,children:e});exports.FieldLabel=s;
2
+ //# sourceMappingURL=FieldLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldLabel.js","sources":["../../../../lib/components/Field/components/FieldLabel.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {FIELD_LABEL_TEST_ID} from '@/components/Field/constants';\n\nexport interface Props {\n htmlFor?: string;\n text: string;\n}\n\nexport const FieldLabel: FC<Props> = ({text, htmlFor = 'input'}) => {\n return (\n <label\n data-testid={FIELD_LABEL_TEST_ID}\n className=\"field__label\"\n htmlFor={htmlFor}\n >\n {text}\n </label>\n );\n};\n"],"names":["FieldLabel","text","htmlFor","jsx","FIELD_LABEL_TEST_ID"],"mappings":"kJAQaA,EAAwB,CAAC,CAAC,KAAAC,EAAM,QAAAC,EAAU,WAEnDC,EAAA,IAAC,QAAA,CACC,cAAaC,EAAA,oBACb,UAAU,eACV,QAAAF,EAEC,SAAAD,CAAA,CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="fieldTestId",T="fieldLabelTestId";exports.FIELD_LABEL_TEST_ID=T;exports.FIELD_TEST_ID=e;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Field/constants.ts"],"sourcesContent":["export const FIELD_TEST_ID = 'fieldTestId';\nexport const FIELD_LABEL_TEST_ID = 'fieldLabelTestId';\n"],"names":["FIELD_TEST_ID","FIELD_LABEL_TEST_ID"],"mappings":"gFAAO,MAAMA,EAAgB,cAChBC,EAAsB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FieldComponent.js"),r=require("./components/FieldLabel.js"),i=require("./components/FieldError.js"),o=Object.assign(e.FieldComponent,{Label:r.FieldLabel,Error:i.FieldError});exports.Field=o;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../lib/components/Field/index.ts"],"sourcesContent":["import {FieldComponent} from '@/components/Field/FieldComponent';\nimport {FieldLabel} from '@/components/Field/components/FieldLabel';\nimport {FieldError} from '@/components/Field/components/FieldError';\n\nexport const Field = Object.assign(FieldComponent, {\n Label: FieldLabel,\n Error: FieldError,\n});\n"],"names":["Field","FieldComponent","FieldLabel","FieldError"],"mappings":"uMAIaA,EAAQ,OAAO,OAAOC,iBAAgB,CACjD,MAAOC,EAAA,WACP,MAAOC,EAAAA,UACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("./constants.js"),e=require("./index.js"),s=({onClick:c,title:t,isOpen:r,children:i})=>o.jsxs(e.FilterAccordion.Layout,{isOpen:r,children:[o.jsxs(e.FilterAccordion.Block,{block:n.FILTER_ACCORDION_BLOCK_CLASS,children:[o.jsx("h2",{className:"filter-accordion__title",children:t}),o.jsx(e.FilterAccordion.Reset,{}),o.jsx(e.FilterAccordion.Arrow,{onClick:c})]}),o.jsx(e.FilterAccordion.Content,{isOpen:r,children:i})]});exports.FilterAccordionComponent=s;
2
+ //# sourceMappingURL=FilterAccordionComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionComponent.js","sources":["../../../lib/components/FilterAccordion/FilterAccordionComponent.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport type {ElementProps} from '@/services/types';\nimport {FILTER_ACCORDION_BLOCK_CLASS} from '@/components/FilterAccordion/constants';\nimport {FilterAccordion} from '@/components/FilterAccordion';\n\nexport interface Props extends ElementProps {\n isOpen: boolean;\n title: string;\n onClick: () => void;\n children: ReactNode;\n}\n\nexport const FilterAccordionComponent: FC<Props> = ({onClick, title, isOpen, children}) => (\n <FilterAccordion.Layout isOpen={isOpen}>\n <FilterAccordion.Block block={FILTER_ACCORDION_BLOCK_CLASS}>\n <h2 className=\"filter-accordion__title\">{title}</h2>\n <FilterAccordion.Reset />\n <FilterAccordion.Arrow onClick={onClick} />\n </FilterAccordion.Block>\n <FilterAccordion.Content isOpen={isOpen}>{children}</FilterAccordion.Content>\n </FilterAccordion.Layout>\n);\n"],"names":["FilterAccordionComponent","onClick","title","isOpen","children","jsxs","FilterAccordion","FILTER_ACCORDION_BLOCK_CLASS","jsx"],"mappings":"yKAYaA,EAAsC,CAAC,CAAC,QAAAC,EAAS,MAAAC,EAAO,OAAAC,EAAQ,SAAAC,KAC1EC,EAAAA,KAAAC,EAAAA,gBAAgB,OAAhB,CAAuB,OAAAH,EACtB,SAAA,CAAAE,EAAA,KAACC,EAAgB,gBAAA,MAAhB,CAAsB,MAAOC,EAAAA,6BAC5B,SAAA,CAACC,EAAA,IAAA,KAAA,CAAG,UAAU,0BAA2B,SAAMN,EAAA,EAC/CM,MAACF,EAAAA,gBAAgB,MAAhB,EAAsB,EACtBE,EAAAA,IAAAF,EAAA,gBAAgB,MAAhB,CAAsB,QAAAL,CAAkB,CAAA,CAAA,EAC3C,EACCO,EAAAA,IAAAF,EAAAA,gBAAgB,QAAhB,CAAwB,OAAAH,EAAiB,SAAAC,CAAS,CAAA,CAAA,CACrD,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("../../../services/icons.js"),c=({onClick:o})=>r.jsx("button",{onClick:o,className:"filter-accordion__arrow",children:r.jsx(e.Icons.ArrowNarrowDown,{})});exports.FilterAccordionArrow=c;
2
+ //# sourceMappingURL=FilterAccordionArrow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionArrow.js","sources":["../../../../lib/components/FilterAccordion/components/FilterAccordionArrow.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Icons} from '@/services/icons';\n\nexport interface Props {\n onClick: () => void;\n}\n\nexport const FilterAccordionArrow: FC<Props> = ({onClick}) => (\n <button\n onClick={onClick}\n className=\"filter-accordion__arrow\"\n >\n <Icons.ArrowNarrowDown />\n </button>\n);\n"],"names":["FilterAccordionArrow","onClick","jsx","Icons"],"mappings":"6JAOaA,EAAkC,CAAC,CAAC,QAAAC,CAAA,IAC/CC,EAAA,IAAC,SAAA,CACC,QAAAD,EACA,UAAU,0BAEV,SAAAC,EAAA,IAACC,QAAM,gBAAN,CAAsB,CAAA,CAAA,CACzB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=({children:o})=>c.jsx("div",{className:"filter-accordion__block",children:o});exports.FilterAccordionBlock=e;
2
+ //# sourceMappingURL=FilterAccordionBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionBlock.js","sources":["../../../../lib/components/FilterAccordion/components/FilterAccordionBlock.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\n\nexport interface Props {\n children: ReactNode;\n}\n\nexport const FilterAccordionBlock: FC<Props> = ({children}) => (\n <div className=\"filter-accordion__block\">{children}</div>\n);\n"],"names":["FilterAccordionBlock","children","jsx"],"mappings":"qHAMaA,EAAkC,CAAC,CAAC,SAAAC,KAC9CC,EAAAA,IAAA,MAAA,CAAI,UAAU,0BAA2B,SAAAD,CAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../services/hooks/useAccordionHeight.js"),i=({isOpen:t,children:o})=>{const{style:c,contentRef:n}=r.useAccordionHeight(t);return e.jsx("div",{style:c,ref:n,className:"filter-accordion__content",children:e.jsx("div",{className:"filter-accordion__body",children:o})})};exports.FilterAccordionContent=i;
2
+ //# sourceMappingURL=FilterAccordionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionContent.js","sources":["../../../../lib/components/FilterAccordion/components/FilterAccordionContent.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {useAccordionHeight} from '@/services/hooks/useAccordionHeight';\n\nexport interface Props {\n isOpen: boolean;\n children: ReactNode;\n}\n\nexport const FilterAccordionContent: FC<Props> = ({isOpen, children}) => {\n const {style, contentRef} = useAccordionHeight(isOpen);\n return (\n <div\n style={style}\n ref={contentRef}\n className=\"filter-accordion__content\"\n >\n <div className=\"filter-accordion__body\">{children}</div>\n </div>\n );\n};\n"],"names":["FilterAccordionContent","isOpen","children","style","contentRef","useAccordionHeight","jsx"],"mappings":"gLAQaA,EAAoC,CAAC,CAAC,OAAAC,EAAQ,SAAAC,KAAc,CACvE,KAAM,CAAC,MAAAC,EAAO,WAAAC,GAAcC,EAAAA,mBAAmBJ,CAAM,EAEnD,OAAAK,EAAA,IAAC,MAAA,CACC,MAAAH,EACA,IAAKC,EACL,UAAU,4BAEV,SAACE,EAAA,IAAA,MAAA,CAAI,UAAU,yBAA0B,SAAAJ,CAAS,CAAA,CAAA,CACpD,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),r=require("../../../services/helpers.js"),i=require("../constants.js"),n=({isOpen:e,block:t,children:o})=>c.jsx("div",{"data-testid":i.FILTER_ACCORDION_TEST_ID,className:r.cn(t,"filter-accordion",{"_active-accordion":e}),children:o});exports.FilterAccordionLayout=n;
2
+ //# sourceMappingURL=FilterAccordionLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionLayout.js","sources":["../../../../lib/components/FilterAccordion/components/FilterAccordionLayout.tsx"],"sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\nimport {FILTER_ACCORDION_TEST_ID} from '@/components/FilterAccordion/constants';\n\nexport interface Props extends ElementProps {\n isOpen: boolean;\n children: ReactNode;\n}\n\nexport const FilterAccordionLayout: FC<Props> = ({isOpen, block, children}) => (\n <div\n data-testid={FILTER_ACCORDION_TEST_ID}\n className={cn(block, 'filter-accordion', {\n '_active-accordion': isOpen,\n })}\n >\n {children}\n </div>\n);\n"],"names":["FilterAccordionLayout","isOpen","block","children","jsx","FILTER_ACCORDION_TEST_ID","cn"],"mappings":"4LAUaA,EAAmC,CAAC,CAAC,OAAAC,EAAQ,MAAAC,EAAO,SAAAC,CAC/D,IAAAC,EAAA,IAAC,MAAA,CACC,cAAaC,EAAA,yBACb,UAAWC,EAAAA,GAAGJ,EAAO,mBAAoB,CACvC,oBAAqBD,CAAA,CACtB,EAEA,SAAAE,CAAA,CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../Button/Button.js"),o=({block:e})=>t.jsx(r.Button,{block:e,isTransparent:!0,size:"small",color:"gray",children:"Reset"});exports.FilterAccordionReset=o;
2
+ //# sourceMappingURL=FilterAccordionReset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterAccordionReset.js","sources":["../../../../lib/components/FilterAccordion/components/FilterAccordionReset.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {Button} from '@/components/Button/Button';\nimport type {ElementProps} from '@/services/types';\n\nexport const FilterAccordionReset: FC<ElementProps> = ({block}) => (\n <Button\n block={block}\n isTransparent\n size=\"small\"\n color=\"gray\"\n >\n Reset\n </Button>\n);\n"],"names":["FilterAccordionReset","block","jsx","Button"],"mappings":"yJAIaA,EAAyC,CAAC,CAAC,MAAAC,CAAA,IACtDC,EAAA,IAACC,EAAA,OAAA,CACC,MAAAF,EACA,cAAa,GACb,KAAK,QACL,MAAM,OACP,SAAA,OAAA,CAED"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./components/FilterAccordionBlock.js"),r=require("../../services/hoc/withBlockClass.js"),o="filter-accordion",t="filterAccordionTestId",i=r.withBlockClass(c.FilterAccordionBlock,o);exports.FILTER_ACCORDION_BLOCK_CLASS=o;exports.FILTER_ACCORDION_TEST_ID=t;exports.FilterAccordionHOC=i;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/FilterAccordion/constants.ts"],"sourcesContent":["import {FilterAccordionBlock} from '@/components/FilterAccordion/components/FilterAccordionBlock';\nimport {withBlockClass} from '@/services/hoc/withBlockClass';\n\nexport const FILTER_ACCORDION_BLOCK_CLASS = 'filter-accordion';\nexport const FILTER_ACCORDION_TEST_ID = 'filterAccordionTestId';\nexport const FilterAccordionHOC = withBlockClass(FilterAccordionBlock, FILTER_ACCORDION_BLOCK_CLASS);\n"],"names":["FILTER_ACCORDION_BLOCK_CLASS","FILTER_ACCORDION_TEST_ID","FilterAccordionHOC","withBlockClass","FilterAccordionBlock"],"mappings":"0LAGaA,EAA+B,mBAC/BC,EAA2B,wBAC3BC,EAAqBC,EAAAA,eAAeC,EAAAA,qBAAsBJ,CAA4B"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./FilterAccordionComponent.js"),r=require("./components/FilterAccordionLayout.js"),e=require("./components/FilterAccordionArrow.js"),t=require("./components/FilterAccordionReset.js"),c=require("./constants.js"),i=require("./components/FilterAccordionContent.js"),n=Object.assign(o.FilterAccordionComponent,{Layout:r.FilterAccordionLayout,Arrow:e.FilterAccordionArrow,Reset:t.FilterAccordionReset,Block:c.FilterAccordionHOC,Content:i.FilterAccordionContent});exports.FilterAccordion=n;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../lib/components/FilterAccordion/index.ts"],"sourcesContent":["import {FilterAccordionComponent} from '@/components/FilterAccordion/FilterAccordionComponent';\nimport {FilterAccordionLayout} from '@/components/FilterAccordion/components/FilterAccordionLayout';\nimport {FilterAccordionArrow} from './components/FilterAccordionArrow';\nimport {FilterAccordionReset} from '@/components/FilterAccordion/components/FilterAccordionReset';\nimport {FilterAccordionHOC} from '@/components/FilterAccordion/constants';\nimport {FilterAccordionContent} from './components/FilterAccordionContent';\n\nexport const FilterAccordion = Object.assign(FilterAccordionComponent, {\n Layout: FilterAccordionLayout,\n Arrow: FilterAccordionArrow,\n Reset: FilterAccordionReset,\n Block: FilterAccordionHOC,\n Content: FilterAccordionContent,\n});\n"],"names":["FilterAccordion","FilterAccordionComponent","FilterAccordionLayout","FilterAccordionArrow","FilterAccordionReset","FilterAccordionHOC","FilterAccordionContent"],"mappings":"wWAOaA,EAAkB,OAAO,OAAOC,2BAA0B,CACrE,OAAQC,EAAA,sBACR,MAAOC,EAAA,qBACP,MAAOC,EAAA,qBACP,MAAOC,EAAA,mBACP,QAASC,EAAAA,sBACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("../ButtonWithIcon/ButtonWithIcon.js"),c=require("../../services/icons.js"),i=({children:t,onClick:o,block:e})=>n.jsx(s.ButtonWithIcon,{type:"button",block:e,onClick:o,className:"button__close",RightIcon:c.Icons.Close,size:"small",color:"gray",children:t});exports.FilterButton=i;
2
+ //# sourceMappingURL=FilterButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterButton.js","sources":["../../../lib/components/FilterButton/FilterButton.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport {ButtonWithIcon} from '@/components/ButtonWithIcon/ButtonWithIcon';\nimport {Icons} from '@/services/icons';\nimport type {ElementProps} from '@/services/types';\n\ninterface Props extends ElementProps {\n children: string;\n onClick?: () => void;\n}\n\nexport const FilterButton: FC<Props> = ({children, onClick, block}) => (\n <ButtonWithIcon\n type=\"button\"\n block={block}\n onClick={onClick}\n className=\"button__close\"\n RightIcon={Icons.Close}\n size=\"small\"\n color=\"gray\"\n >\n {children}\n </ButtonWithIcon>\n);\n"],"names":["FilterButton","children","onClick","block","jsx","ButtonWithIcon","Icons"],"mappings":"2MAUaA,EAA0B,CAAC,CAAC,SAAAC,EAAU,QAAAC,EAAS,MAAAC,CAC1D,IAAAC,EAAA,IAACC,EAAA,eAAA,CACC,KAAK,SACL,MAAAF,EACA,QAAAD,EACA,UAAU,gBACV,UAAWI,EAAM,MAAA,MACjB,KAAK,QACL,MAAM,OAEL,SAAAL,CAAA,CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react-image-gallery"),a=({images:e,block:l})=>t.jsx(s,{items:e,additionalClass:l,showFullscreenButton:!1,showPlayButton:!1});exports.Gallery=a;
2
+ //# sourceMappingURL=Gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gallery.js","sources":["../../../lib/components/Gallery/Gallery.tsx"],"sourcesContent":["import type {FC} from 'react';\nimport type {ReactImageGalleryItem} from 'react-image-gallery';\nimport ImageGallery from 'react-image-gallery';\nimport type {ElementProps} from '@/services/types';\n\ninterface Props extends ElementProps {\n images: ReactImageGalleryItem[];\n}\n\nexport const Gallery: FC<Props> = ({images, block}) => (\n <ImageGallery\n items={images}\n additionalClass={block}\n showFullscreenButton={false}\n showPlayButton={false}\n />\n);\n"],"names":["Gallery","images","block","jsx","ImageGallery"],"mappings":"sJASaA,EAAqB,CAAC,CAAC,OAAAC,EAAQ,MAAAC,CAC1C,IAAAC,EAAA,IAACC,EAAA,CACC,MAAOH,EACP,gBAAiBC,EACjB,qBAAsB,GACtB,eAAgB,EAAA,CAClB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),T=require("../../services/helpers.js"),g=require("./constants.js"),I=({value:t,onChange:e,hasError:n,placeholder:s,block:r,disabled:a=!1,type:u="text",id:o="input",name:c="input",isReadOnly:i=!1,isTransparent:l=!1})=>{const p=T.cn(r,"input",{error:n,transparent:l}),f=d=>{e&&e(d.currentTarget.value)};return m.jsx("input",{readOnly:i,onChange:f,disabled:a,autoComplete:"off","data-testid":g.INPUT_TEST_ID,className:p,id:o,name:c,placeholder:s,value:t,type:u})};exports.Input=I;
2
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sources":["../../../lib/components/Input/Input.tsx"],"sourcesContent":["import {cn} from '@/services/helpers';\nimport type {ChangeEvent, FC, HTMLInputTypeAttribute} from 'react';\nimport {INPUT_TEST_ID} from '@/components/Input/constants';\nimport type {ElementProps} from '@/services/types';\n\nexport interface InputProps extends ElementProps {\n type?: HTMLInputTypeAttribute;\n value?: string;\n onChange?: (value: string) => void;\n name?: string;\n placeholder?: string;\n id?: string;\n disabled?: boolean;\n hasError?: boolean;\n isReadOnly?: boolean;\n isTransparent?: boolean;\n}\n\nexport const Input: FC<InputProps> = ({\n value,\n onChange,\n hasError,\n placeholder,\n block,\n disabled = false,\n type = 'text',\n id = 'input',\n name = 'input',\n isReadOnly = false,\n isTransparent = false,\n}) => {\n const classNames = cn(block, 'input', {\n 'error': hasError,\n 'transparent': isTransparent,\n });\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(event.currentTarget.value);\n }\n };\n return (\n <input\n readOnly={isReadOnly}\n onChange={handleChange}\n disabled={disabled}\n autoComplete=\"off\"\n data-testid={INPUT_TEST_ID}\n className={classNames}\n id={id}\n name={name}\n placeholder={placeholder}\n value={value}\n type={type}\n />\n );\n};\n"],"names":["Input","value","onChange","hasError","placeholder","block","disabled","type","id","name","isReadOnly","isTransparent","classNames","cn","handleChange","event","jsx","INPUT_TEST_ID"],"mappings":"wLAkBaA,EAAwB,CAAC,CACpC,MAAAC,EACA,SAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,SAAAC,EAAW,GACX,KAAAC,EAAO,OACP,GAAAC,EAAK,QACL,KAAAC,EAAO,QACP,WAAAC,EAAa,GACb,cAAAC,EAAgB,EAClB,IAAM,CACE,MAAAC,EAAaC,EAAAA,GAAGR,EAAO,QAAS,CACpC,MAASF,EACT,YAAeQ,CAAA,CAChB,EACKG,EAAgBC,GAAyC,CACzDb,GACOA,EAAAa,EAAM,cAAc,KAAK,CAEtC,EAEE,OAAAC,EAAA,IAAC,QAAA,CACC,SAAUN,EACV,SAAUI,EACV,SAAAR,EACA,aAAa,MACb,cAAaW,EAAA,cACb,UAAWL,EACX,GAAAJ,EACA,KAAAC,EACA,YAAAL,EACA,MAAAH,EACA,KAAAM,CAAA,CACF,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="inputTestId";exports.INPUT_TEST_ID=t;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/Input/constants.ts"],"sourcesContent":["export const INPUT_TEST_ID = 'inputTestId';\n"],"names":["INPUT_TEST_ID"],"mappings":"gFAAO,MAAMA,EAAgB"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),o=require("../RouterLink/RouterLink.js"),n=require("./constants.js"),u=({RightIcon:e,LeftIcon:i,children:s,...r})=>t.jsxs(o.RouterLink,{withIcon:!0,...r,children:[!!i&&t.jsx(i,{"data-testid":n.LEFT_ICON_LINK_TEST_ID}),s,!!e&&t.jsx(e,{"data-testid":n.RIGHT_ICON_LINK_TEST_ID})]});exports.LinkWithIcon=u;
2
+ //# sourceMappingURL=LinkWithIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkWithIcon.js","sources":["../../../lib/components/LinkWithIcon/LinkWithIcon.tsx"],"sourcesContent":["import type {ComponentType, FC, ReactNode} from 'react';\nimport type {RouterLinkProps} from '@/components/RouterLink/RouterLink';\nimport {RouterLink} from '@/components/RouterLink/RouterLink';\nimport {LEFT_ICON_LINK_TEST_ID, RIGHT_ICON_LINK_TEST_ID} from '@/components/LinkWithIcon/constants';\n\ninterface Props extends RouterLinkProps {\n children: ReactNode;\n RightIcon?: ComponentType;\n LeftIcon?: ComponentType;\n}\n\nexport const LinkWithIcon: FC<Props> = ({RightIcon, LeftIcon, children, ...props}) => (\n <RouterLink\n withIcon\n {...props}\n >\n {!!LeftIcon && <LeftIcon data-testid={LEFT_ICON_LINK_TEST_ID} />}\n {children}\n {!!RightIcon && <RightIcon data-testid={RIGHT_ICON_LINK_TEST_ID} />}\n </RouterLink>\n);\n"],"names":["LinkWithIcon","RightIcon","LeftIcon","children","props","jsxs","RouterLink","jsx","LEFT_ICON_LINK_TEST_ID","RIGHT_ICON_LINK_TEST_ID"],"mappings":"0LAWaA,EAA0B,CAAC,CAAC,UAAAC,EAAW,SAAAC,EAAU,SAAAC,EAAU,GAAGC,KACzEC,EAAA,KAACC,EAAA,WAAA,CACC,SAAQ,GACP,GAAGF,EAEH,SAAA,CAAA,CAAC,CAACF,GAAaK,EAAA,IAAAL,EAAA,CAAS,cAAaM,EAAAA,uBAAwB,EAC7DL,EACA,CAAC,CAACF,GAAcM,EAAA,IAAAN,EAAA,CAAU,cAAaQ,EAAAA,uBAAyB,CAAA,CAAA,CAAA,CACnE"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I="leftIconLinkTestId",_="rightIconLinkTestId";exports.LEFT_ICON_LINK_TEST_ID=I;exports.RIGHT_ICON_LINK_TEST_ID=_;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../lib/components/LinkWithIcon/constants.ts"],"sourcesContent":["export const LEFT_ICON_LINK_TEST_ID = 'leftIconLinkTestId';\nexport const RIGHT_ICON_LINK_TEST_ID = 'rightIconLinkTestId';\n"],"names":["LEFT_ICON_LINK_TEST_ID","RIGHT_ICON_LINK_TEST_ID"],"mappings":"gFAAO,MAAMA,EAAyB,qBACzBC,EAA0B"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("../../node_modules/react-router/dist/development/chunk-KNED5TY2.js"),a=require("../../services/helpers.js"),o=({block:n,to:s,children:t})=>{const r=e=>a.cn(n,"nav-link",{_active:e});return c.jsx(i.NavLink,{className:({isActive:e})=>r(e),to:s,children:t})};exports.NavLink=o;
2
+ //# sourceMappingURL=NavLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavLink.js","sources":["../../../lib/components/NavLink/NavLink.tsx"],"sourcesContent":["import {NavLink as Link} from 'react-router';\nimport type {FC, ReactNode} from 'react';\nimport {cn} from '@/services/helpers';\nimport type {ElementProps} from '@/services/types';\n\ninterface Props extends ElementProps {\n to: string;\n children: ReactNode;\n}\n\nexport const NavLink: FC<Props> = ({block, to, children}) => {\n const classNames = (isActive: boolean) =>\n cn(block, 'nav-link', {\n '_active': isActive,\n });\n return (\n <Link\n className={({isActive}) => classNames(isActive)}\n to={to}\n >\n {children}\n </Link>\n );\n};\n"],"names":["NavLink","block","to","children","classNames","isActive","cn","jsx","Link"],"mappings":"4OAUaA,EAAqB,CAAC,CAAC,MAAAC,EAAO,GAAAC,EAAI,SAAAC,KAAc,CAC3D,MAAMC,EAAcC,GAClBC,EAAAA,GAAGL,EAAO,WAAY,CACpB,QAAWI,CAAA,CACZ,EAED,OAAAE,EAAA,IAACC,EAAA,QAAA,CACC,UAAW,CAAC,CAAC,SAAAH,KAAcD,EAAWC,CAAQ,EAC9C,GAAAH,EAEC,SAAAC,CAAA,CACH,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./constants.js"),o=require("../../services/helpers.js"),s=require("./index.js"),a=({block:e,...t})=>n.jsx("div",{"data-testid":i.PAGINATION_TEST_ID,className:o.cn(e,"pagination"),children:n.jsx(s.Pagination.Body,{...t})});exports.PaginationComponent=a;
2
+ //# sourceMappingURL=PaginationComponent.js.map