ecars-web-lib 1.0.8 → 1.0.9

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 (202) hide show
  1. package/dist/index.cjs.js +13 -0
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.es.js +5135 -0
  4. package/dist/index.es.js.map +1 -0
  5. package/package.json +5 -5
  6. package/dist/_virtual/index.js +0 -2
  7. package/dist/_virtual/index.js.map +0 -1
  8. package/dist/_virtual/index2.js +0 -2
  9. package/dist/_virtual/index2.js.map +0 -1
  10. package/dist/components/Accordion/AccordionComponent.js +0 -2
  11. package/dist/components/Accordion/AccordionComponent.js.map +0 -1
  12. package/dist/components/Accordion/components/AccordionArrow.js +0 -2
  13. package/dist/components/Accordion/components/AccordionArrow.js.map +0 -1
  14. package/dist/components/Accordion/components/AccordionBlock.js +0 -2
  15. package/dist/components/Accordion/components/AccordionBlock.js.map +0 -1
  16. package/dist/components/Accordion/components/AccordionButton.js +0 -2
  17. package/dist/components/Accordion/components/AccordionButton.js.map +0 -1
  18. package/dist/components/Accordion/components/AccordionContent.js +0 -2
  19. package/dist/components/Accordion/components/AccordionContent.js.map +0 -1
  20. package/dist/components/Accordion/components/AccordionLayout.js +0 -2
  21. package/dist/components/Accordion/components/AccordionLayout.js.map +0 -1
  22. package/dist/components/Accordion/components/AccordionTitle.js +0 -2
  23. package/dist/components/Accordion/components/AccordionTitle.js.map +0 -1
  24. package/dist/components/Accordion/constants.js +0 -2
  25. package/dist/components/Accordion/constants.js.map +0 -1
  26. package/dist/components/Accordion/index.js +0 -2
  27. package/dist/components/Accordion/index.js.map +0 -1
  28. package/dist/components/Button/Button.js +0 -2
  29. package/dist/components/Button/Button.js.map +0 -1
  30. package/dist/components/Button/constants.js +0 -2
  31. package/dist/components/Button/constants.js.map +0 -1
  32. package/dist/components/ButtonWithIcon/ButtonWithIcon.js +0 -2
  33. package/dist/components/ButtonWithIcon/ButtonWithIcon.js.map +0 -1
  34. package/dist/components/ButtonWithIcon/constants.js +0 -2
  35. package/dist/components/ButtonWithIcon/constants.js.map +0 -1
  36. package/dist/components/Category/Category.js +0 -2
  37. package/dist/components/Category/Category.js.map +0 -1
  38. package/dist/components/Category/constants.js +0 -2
  39. package/dist/components/Category/constants.js.map +0 -1
  40. package/dist/components/Checkbox/CheckboxComponent.js +0 -2
  41. package/dist/components/Checkbox/CheckboxComponent.js.map +0 -1
  42. package/dist/components/Checkbox/components/CheckboxBlock.js +0 -2
  43. package/dist/components/Checkbox/components/CheckboxBlock.js.map +0 -1
  44. package/dist/components/Checkbox/components/CheckboxIndicator.js +0 -2
  45. package/dist/components/Checkbox/components/CheckboxIndicator.js.map +0 -1
  46. package/dist/components/Checkbox/components/CheckboxInput.js +0 -2
  47. package/dist/components/Checkbox/components/CheckboxInput.js.map +0 -1
  48. package/dist/components/Checkbox/constants.js +0 -2
  49. package/dist/components/Checkbox/constants.js.map +0 -1
  50. package/dist/components/Checkbox/index.js +0 -2
  51. package/dist/components/Checkbox/index.js.map +0 -1
  52. package/dist/components/Dropdown/DropdownComponent.js +0 -2
  53. package/dist/components/Dropdown/DropdownComponent.js.map +0 -1
  54. package/dist/components/Dropdown/components/DropdownBlock.js +0 -2
  55. package/dist/components/Dropdown/components/DropdownBlock.js.map +0 -1
  56. package/dist/components/Dropdown/components/DropdownCategory.js +0 -2
  57. package/dist/components/Dropdown/components/DropdownCategory.js.map +0 -1
  58. package/dist/components/Dropdown/components/DropdownList.js +0 -2
  59. package/dist/components/Dropdown/components/DropdownList.js.map +0 -1
  60. package/dist/components/Dropdown/components/DropdownOption.js +0 -2
  61. package/dist/components/Dropdown/components/DropdownOption.js.map +0 -1
  62. package/dist/components/Dropdown/constants.js +0 -2
  63. package/dist/components/Dropdown/constants.js.map +0 -1
  64. package/dist/components/Dropdown/index.js +0 -2
  65. package/dist/components/Dropdown/index.js.map +0 -1
  66. package/dist/components/FavButton/FavButton.js +0 -2
  67. package/dist/components/FavButton/FavButton.js.map +0 -1
  68. package/dist/components/FavButton/constants.js +0 -2
  69. package/dist/components/FavButton/constants.js.map +0 -1
  70. package/dist/components/Field/FieldComponent.js +0 -2
  71. package/dist/components/Field/FieldComponent.js.map +0 -1
  72. package/dist/components/Field/components/FieldError.js +0 -2
  73. package/dist/components/Field/components/FieldError.js.map +0 -1
  74. package/dist/components/Field/components/FieldLabel.js +0 -2
  75. package/dist/components/Field/components/FieldLabel.js.map +0 -1
  76. package/dist/components/Field/constants.js +0 -2
  77. package/dist/components/Field/constants.js.map +0 -1
  78. package/dist/components/Field/index.js +0 -2
  79. package/dist/components/Field/index.js.map +0 -1
  80. package/dist/components/FilterAccordion/FilterAccordionComponent.js +0 -2
  81. package/dist/components/FilterAccordion/FilterAccordionComponent.js.map +0 -1
  82. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js +0 -2
  83. package/dist/components/FilterAccordion/components/FilterAccordionArrow.js.map +0 -1
  84. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js +0 -2
  85. package/dist/components/FilterAccordion/components/FilterAccordionBlock.js.map +0 -1
  86. package/dist/components/FilterAccordion/components/FilterAccordionContent.js +0 -2
  87. package/dist/components/FilterAccordion/components/FilterAccordionContent.js.map +0 -1
  88. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js +0 -2
  89. package/dist/components/FilterAccordion/components/FilterAccordionLayout.js.map +0 -1
  90. package/dist/components/FilterAccordion/components/FilterAccordionReset.js +0 -2
  91. package/dist/components/FilterAccordion/components/FilterAccordionReset.js.map +0 -1
  92. package/dist/components/FilterAccordion/constants.js +0 -2
  93. package/dist/components/FilterAccordion/constants.js.map +0 -1
  94. package/dist/components/FilterAccordion/index.js +0 -2
  95. package/dist/components/FilterAccordion/index.js.map +0 -1
  96. package/dist/components/FilterButton/FilterButton.js +0 -2
  97. package/dist/components/FilterButton/FilterButton.js.map +0 -1
  98. package/dist/components/Gallery/Gallery.js +0 -2
  99. package/dist/components/Gallery/Gallery.js.map +0 -1
  100. package/dist/components/Input/Input.js +0 -2
  101. package/dist/components/Input/Input.js.map +0 -1
  102. package/dist/components/Input/constants.js +0 -2
  103. package/dist/components/Input/constants.js.map +0 -1
  104. package/dist/components/LinkWithIcon/LinkWithIcon.js +0 -2
  105. package/dist/components/LinkWithIcon/LinkWithIcon.js.map +0 -1
  106. package/dist/components/LinkWithIcon/constants.js +0 -2
  107. package/dist/components/LinkWithIcon/constants.js.map +0 -1
  108. package/dist/components/NavLink/NavLink.js +0 -2
  109. package/dist/components/NavLink/NavLink.js.map +0 -1
  110. package/dist/components/Pagination/PaginationComponent.js +0 -2
  111. package/dist/components/Pagination/PaginationComponent.js.map +0 -1
  112. package/dist/components/Pagination/components/PaginationArrow.js +0 -2
  113. package/dist/components/Pagination/components/PaginationArrow.js.map +0 -1
  114. package/dist/components/Pagination/components/PaginationBody.js +0 -2
  115. package/dist/components/Pagination/components/PaginationBody.js.map +0 -1
  116. package/dist/components/Pagination/components/PaginationPage.js +0 -2
  117. package/dist/components/Pagination/components/PaginationPage.js.map +0 -1
  118. package/dist/components/Pagination/constants.js +0 -2
  119. package/dist/components/Pagination/constants.js.map +0 -1
  120. package/dist/components/Pagination/index.js +0 -2
  121. package/dist/components/Pagination/index.js.map +0 -1
  122. package/dist/components/RangeSlider/RangeSlider.js +0 -2
  123. package/dist/components/RangeSlider/RangeSlider.js.map +0 -1
  124. package/dist/components/RouterLink/RouterLink.js +0 -2
  125. package/dist/components/RouterLink/RouterLink.js.map +0 -1
  126. package/dist/components/RouterLink/constants.js +0 -2
  127. package/dist/components/RouterLink/constants.js.map +0 -1
  128. package/dist/components/Select/SelectComponent.js +0 -2
  129. package/dist/components/Select/SelectComponent.js.map +0 -1
  130. package/dist/components/Select/components/SelectArrow.js +0 -2
  131. package/dist/components/Select/components/SelectArrow.js.map +0 -1
  132. package/dist/components/Select/components/SelectBlock.js +0 -2
  133. package/dist/components/Select/components/SelectBlock.js.map +0 -1
  134. package/dist/components/Select/components/SelectInput.js +0 -2
  135. package/dist/components/Select/components/SelectInput.js.map +0 -1
  136. package/dist/components/Select/components/SelectList.js +0 -2
  137. package/dist/components/Select/components/SelectList.js.map +0 -1
  138. package/dist/components/Select/components/SelectOption.js +0 -2
  139. package/dist/components/Select/components/SelectOption.js.map +0 -1
  140. package/dist/components/Select/components/SelectWrapper.js +0 -2
  141. package/dist/components/Select/components/SelectWrapper.js.map +0 -1
  142. package/dist/components/Select/constants.js +0 -2
  143. package/dist/components/Select/constants.js.map +0 -1
  144. package/dist/components/Select/index.js +0 -2
  145. package/dist/components/Select/index.js.map +0 -1
  146. package/dist/components/Slider/SliderComponent.js +0 -2
  147. package/dist/components/Slider/SliderComponent.js.map +0 -1
  148. package/dist/components/Slider/constants.js +0 -2
  149. package/dist/components/Slider/constants.js.map +0 -1
  150. package/dist/components/Slider/index.js +0 -2
  151. package/dist/components/Slider/index.js.map +0 -1
  152. package/dist/components/SliderNavigate/SliderNavigate.js +0 -2
  153. package/dist/components/SliderNavigate/SliderNavigate.js.map +0 -1
  154. package/dist/components/SliderNavigate/components/NavigateButton.js +0 -2
  155. package/dist/components/SliderNavigate/components/NavigateButton.js.map +0 -1
  156. package/dist/components/SliderNavigate/constants.js +0 -2
  157. package/dist/components/SliderNavigate/constants.js.map +0 -1
  158. package/dist/index.js +0 -2
  159. package/dist/index.js.map +0 -1
  160. package/dist/node_modules/cookie/dist/index.js +0 -2
  161. package/dist/node_modules/cookie/dist/index.js.map +0 -1
  162. package/dist/node_modules/react-icons/ai/index.js +0 -2
  163. package/dist/node_modules/react-icons/ai/index.js.map +0 -1
  164. package/dist/node_modules/react-icons/fa6/index.js +0 -2
  165. package/dist/node_modules/react-icons/fa6/index.js.map +0 -1
  166. package/dist/node_modules/react-icons/io/index.js +0 -2
  167. package/dist/node_modules/react-icons/io/index.js.map +0 -1
  168. package/dist/node_modules/react-icons/lib/iconBase.js +0 -2
  169. package/dist/node_modules/react-icons/lib/iconBase.js.map +0 -1
  170. package/dist/node_modules/react-icons/lib/iconContext.js +0 -2
  171. package/dist/node_modules/react-icons/lib/iconContext.js.map +0 -1
  172. package/dist/node_modules/react-icons/md/index.js +0 -2
  173. package/dist/node_modules/react-icons/md/index.js.map +0 -1
  174. package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js +0 -13
  175. package/dist/node_modules/react-router/dist/development/chunk-KNED5TY2.js.map +0 -1
  176. package/dist/node_modules/swiper/shared/ssr-window.esm.js +0 -2
  177. package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +0 -1
  178. package/dist/node_modules/swiper/shared/swiper-core.js +0 -2
  179. package/dist/node_modules/swiper/shared/swiper-core.js.map +0 -1
  180. package/dist/node_modules/swiper/shared/update-on-virtual-data.js +0 -2
  181. package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +0 -1
  182. package/dist/node_modules/swiper/shared/update-swiper.js +0 -2
  183. package/dist/node_modules/swiper/shared/update-swiper.js.map +0 -1
  184. package/dist/node_modules/swiper/shared/utils.js +0 -2
  185. package/dist/node_modules/swiper/shared/utils.js.map +0 -1
  186. package/dist/node_modules/swiper/swiper-react.js +0 -2
  187. package/dist/node_modules/swiper/swiper-react.js.map +0 -1
  188. package/dist/services/helpers.js +0 -2
  189. package/dist/services/helpers.js.map +0 -1
  190. package/dist/services/hoc/withBlockClass.js +0 -2
  191. package/dist/services/hoc/withBlockClass.js.map +0 -1
  192. package/dist/services/hooks/useAccordionHeight.js +0 -2
  193. package/dist/services/hooks/useAccordionHeight.js.map +0 -1
  194. package/dist/services/hooks/useClickOutside.js +0 -2
  195. package/dist/services/hooks/useClickOutside.js.map +0 -1
  196. package/dist/services/hooks/useMatchMedia.js +0 -2
  197. package/dist/services/hooks/useMatchMedia.js.map +0 -1
  198. package/dist/services/icons.js +0 -2
  199. package/dist/services/icons.js.map +0 -1
  200. package/dist/services/mocks.js +0 -2
  201. package/dist/services/mocks.js.map +0 -1
  202. /package/dist/{assets/global.css → index.css} +0 -0
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="routerLinkTestId";exports.ROUTER_LINK_TEST_ID=e;
2
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),l=({children:e,onClick:t})=>c.jsx("div",{onClick:t,className:"select__block",children:e});exports.SelectBlock=l;
2
- //# sourceMappingURL=SelectBlock.js.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="sliderTestId";exports.SLIDER_TEST_ID=e;
2
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/global.css');;/* empty css */const i=require("./services/helpers.js"),r=require("./services/icons.js"),e=require("./services/mocks.js"),t=require("./components/Category/constants.js"),o=require("./services/hoc/withBlockClass.js"),n=require("./services/hooks/useAccordionHeight.js"),c=require("./services/hooks/useMatchMedia.js"),s=require("./services/hooks/useClickOutside.js"),u=require("./components/Category/Category.js"),a=require("./components/Checkbox/index.js"),l=require("./components/Dropdown/index.js"),d=require("./components/FavButton/FavButton.js"),k=require("./components/Field/index.js"),q=require("./components/FilterAccordion/index.js"),g=require("./components/FilterButton/FilterButton.js"),S=require("./components/Gallery/Gallery.js"),M=require("./components/Input/Input.js"),h=require("./components/LinkWithIcon/LinkWithIcon.js"),p=require("./components/NavLink/NavLink.js"),C=require("./components/Pagination/index.js"),I=require("./components/RangeSlider/RangeSlider.js"),A=require("./components/RouterLink/RouterLink.js"),B=require("./components/Select/index.js"),L=require("./components/Slider/index.js"),y=require("./components/SliderNavigate/SliderNavigate.js"),F=require("./components/Accordion/index.js"),O=require("./components/ButtonWithIcon/ButtonWithIcon.js"),T=require("./components/Button/Button.js");exports.capitalizeFirstLetter=i.capitalizeFirstLetter;exports.cn=i.cn;exports.Icons=r.Icons;exports.dropdownOptionsMock=e.dropdownOptionsMock;exports.imagesMock=e.imagesMock;exports.pageSizeMock=e.pageSizeMock;exports.rangeSliderArrayMock=e.rangeSliderArrayMock;exports.selectOptionsMock=e.selectOptionsMock;exports.sliderSlideArrayMock=e.sliderSlideArrayMock;exports.totalCountPageMock=e.totalCountPageMock;exports.CATEGORIES_LIST=t.CATEGORIES_LIST;exports.CATEGORY_TEST_ID=t.CATEGORY_TEST_ID;exports.withBlockClass=o.withBlockClass;exports.useAccordionHeight=n.useAccordionHeight;exports.useMatchMedia=c.useMatchMedia;exports.useClickOutside=s.useClickOutside;exports.Category=u.Category;exports.Checkbox=a.Checkbox;exports.Dropdown=l.Dropdown;exports.FavButton=d.FavButton;exports.Field=k.Field;exports.FilterAccordion=q.FilterAccordion;exports.FilterButton=g.FilterButton;exports.Gallery=S.Gallery;exports.Input=M.Input;exports.LinkWithIcon=h.LinkWithIcon;exports.NavLink=p.NavLink;exports.Pagination=C.Pagination;exports.RangeSlider=I.RangeSlider;exports.RouterLink=A.RouterLink;exports.Select=B.Select;exports.Slider=L.Slider;exports.SliderNavigate=y.SliderNavigate;exports.Accordion=F.Accordion;exports.ButtonWithIcon=O.ButtonWithIcon;exports.Button=T.Button;
2
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../_virtual/index2.js");var y;function A(){if(y)return c.__exports;y=1,Object.defineProperty(c.__exports,"__esModule",{value:!0}),c.__exports.parse=b,c.__exports.serialize=v;const h=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,w=/^[\u0021-\u003A\u003C-\u007E]*$/,g=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,S=/^[\u0020-\u003A\u003D-\u007E]*$/,p=Object.prototype.toString,E=(()=>{const r=function(){};return r.prototype=Object.create(null),r})();function b(r,i){const e=new E,a=r.length;if(a<2)return e;const u=(i==null?void 0:i.decode)||_;let t=0;do{const n=r.indexOf("=",t);if(n===-1)break;const f=r.indexOf(";",t),d=f===-1?a:f;if(n>d){t=r.lastIndexOf(";",n-1)+1;continue}const s=o(r,t,n),k=l(r,n,s),x=r.slice(s,k);if(e[x]===void 0){let m=o(r,n+1,d),O=l(r,d,m);const $=u(r.slice(m,O));e[x]=$}t=d+1}while(t<a);return e}function o(r,i,e){do{const a=r.charCodeAt(i);if(a!==32&&a!==9)return i}while(++i<e);return e}function l(r,i,e){for(;i>e;){const a=r.charCodeAt(--i);if(a!==32&&a!==9)return i+1}return e}function v(r,i,e){const a=(e==null?void 0:e.encode)||encodeURIComponent;if(!h.test(r))throw new TypeError(`argument name is invalid: ${r}`);const u=a(i);if(!w.test(u))throw new TypeError(`argument val is invalid: ${i}`);let t=r+"="+u;if(!e)return t;if(e.maxAge!==void 0){if(!Number.isInteger(e.maxAge))throw new TypeError(`option maxAge is invalid: ${e.maxAge}`);t+="; Max-Age="+e.maxAge}if(e.domain){if(!g.test(e.domain))throw new TypeError(`option domain is invalid: ${e.domain}`);t+="; Domain="+e.domain}if(e.path){if(!S.test(e.path))throw new TypeError(`option path is invalid: ${e.path}`);t+="; Path="+e.path}if(e.expires){if(!I(e.expires)||!Number.isFinite(e.expires.valueOf()))throw new TypeError(`option expires is invalid: ${e.expires}`);t+="; Expires="+e.expires.toUTCString()}if(e.httpOnly&&(t+="; HttpOnly"),e.secure&&(t+="; Secure"),e.partitioned&&(t+="; Partitioned"),e.priority)switch(typeof e.priority=="string"?e.priority.toLowerCase():void 0){case"low":t+="; Priority=Low";break;case"medium":t+="; Priority=Medium";break;case"high":t+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${e.priority}`)}if(e.sameSite)switch(typeof e.sameSite=="string"?e.sameSite.toLowerCase():e.sameSite){case!0:case"strict":t+="; SameSite=Strict";break;case"lax":t+="; SameSite=Lax";break;case"none":t+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${e.sameSite}`)}return t}function _(r){if(r.indexOf("%")===-1)return r;try{return decodeURIComponent(r)}catch{return r}}function I(r){return p.call(r)==="[object Date]"}return c.__exports}exports.__require=A;
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/cookie/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parse = parse;\nexports.serialize = serialize;\n/**\n * RegExp to match cookie-name in RFC 6265 sec 4.1.1\n * This refers out to the obsoleted definition of token in RFC 2616 sec 2.2\n * which has been replaced by the token definition in RFC 7230 appendix B.\n *\n * cookie-name = token\n * token = 1*tchar\n * tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" /\n * \"*\" / \"+\" / \"-\" / \".\" / \"^\" / \"_\" /\n * \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\n *\n * Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191\n * Allow same range as cookie value, except `=`, which delimits end of name.\n */\nconst cookieNameRegExp = /^[\\u0021-\\u003A\\u003C\\u003E-\\u007E]+$/;\n/**\n * RegExp to match cookie-value in RFC 6265 sec 4.1.1\n *\n * cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n * cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n * ; US-ASCII characters excluding CTLs,\n * ; whitespace DQUOTE, comma, semicolon,\n * ; and backslash\n *\n * Allowing more characters: https://github.com/jshttp/cookie/issues/191\n * Comma, backslash, and DQUOTE are not part of the parsing algorithm.\n */\nconst cookieValueRegExp = /^[\\u0021-\\u003A\\u003C-\\u007E]*$/;\n/**\n * RegExp to match domain-value in RFC 6265 sec 4.1.1\n *\n * domain-value = <subdomain>\n * ; defined in [RFC1034], Section 3.5, as\n * ; enhanced by [RFC1123], Section 2.1\n * <subdomain> = <label> | <subdomain> \".\" <label>\n * <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]\n * Labels must be 63 characters or less.\n * 'let-dig' not 'letter' in the first char, per RFC1123\n * <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n * <let-dig-hyp> = <let-dig> | \"-\"\n * <let-dig> = <letter> | <digit>\n * <letter> = any one of the 52 alphabetic characters A through Z in\n * upper case and a through z in lower case\n * <digit> = any one of the ten digits 0 through 9\n *\n * Keep support for leading dot: https://github.com/jshttp/cookie/issues/173\n *\n * > (Note that a leading %x2E (\".\"), if present, is ignored even though that\n * character is not permitted, but a trailing %x2E (\".\"), if present, will\n * cause the user agent to ignore the attribute.)\n */\nconst domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;\n/**\n * RegExp to match path-value in RFC 6265 sec 4.1.1\n *\n * path-value = <any CHAR except CTLs or \";\">\n * CHAR = %x01-7F\n * ; defined in RFC 5234 appendix B.1\n */\nconst pathValueRegExp = /^[\\u0020-\\u003A\\u003D-\\u007E]*$/;\nconst __toString = Object.prototype.toString;\nconst NullObject = /* @__PURE__ */ (() => {\n const C = function () { };\n C.prototype = Object.create(null);\n return C;\n})();\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n */\nfunction parse(str, options) {\n const obj = new NullObject();\n const len = str.length;\n // RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.\n if (len < 2)\n return obj;\n const dec = options?.decode || decode;\n let index = 0;\n do {\n const eqIdx = str.indexOf(\"=\", index);\n if (eqIdx === -1)\n break; // No more cookie pairs.\n const colonIdx = str.indexOf(\";\", index);\n const endIdx = colonIdx === -1 ? len : colonIdx;\n if (eqIdx > endIdx) {\n // backtrack on prior semicolon\n index = str.lastIndexOf(\";\", eqIdx - 1) + 1;\n continue;\n }\n const keyStartIdx = startIndex(str, index, eqIdx);\n const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);\n const key = str.slice(keyStartIdx, keyEndIdx);\n // only assign once\n if (obj[key] === undefined) {\n let valStartIdx = startIndex(str, eqIdx + 1, endIdx);\n let valEndIdx = endIndex(str, endIdx, valStartIdx);\n const value = dec(str.slice(valStartIdx, valEndIdx));\n obj[key] = value;\n }\n index = endIdx + 1;\n } while (index < len);\n return obj;\n}\nfunction startIndex(str, index, max) {\n do {\n const code = str.charCodeAt(index);\n if (code !== 0x20 /* */ && code !== 0x09 /* \\t */)\n return index;\n } while (++index < max);\n return max;\n}\nfunction endIndex(str, index, min) {\n while (index > min) {\n const code = str.charCodeAt(--index);\n if (code !== 0x20 /* */ && code !== 0x09 /* \\t */)\n return index + 1;\n }\n return min;\n}\n/**\n * Serialize data into a cookie header.\n *\n * Serialize a name value pair into a cookie string suitable for\n * http headers. An optional options object specifies cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n */\nfunction serialize(name, val, options) {\n const enc = options?.encode || encodeURIComponent;\n if (!cookieNameRegExp.test(name)) {\n throw new TypeError(`argument name is invalid: ${name}`);\n }\n const value = enc(val);\n if (!cookieValueRegExp.test(value)) {\n throw new TypeError(`argument val is invalid: ${val}`);\n }\n let str = name + \"=\" + value;\n if (!options)\n return str;\n if (options.maxAge !== undefined) {\n if (!Number.isInteger(options.maxAge)) {\n throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);\n }\n str += \"; Max-Age=\" + options.maxAge;\n }\n if (options.domain) {\n if (!domainValueRegExp.test(options.domain)) {\n throw new TypeError(`option domain is invalid: ${options.domain}`);\n }\n str += \"; Domain=\" + options.domain;\n }\n if (options.path) {\n if (!pathValueRegExp.test(options.path)) {\n throw new TypeError(`option path is invalid: ${options.path}`);\n }\n str += \"; Path=\" + options.path;\n }\n if (options.expires) {\n if (!isDate(options.expires) ||\n !Number.isFinite(options.expires.valueOf())) {\n throw new TypeError(`option expires is invalid: ${options.expires}`);\n }\n str += \"; Expires=\" + options.expires.toUTCString();\n }\n if (options.httpOnly) {\n str += \"; HttpOnly\";\n }\n if (options.secure) {\n str += \"; Secure\";\n }\n if (options.partitioned) {\n str += \"; Partitioned\";\n }\n if (options.priority) {\n const priority = typeof options.priority === \"string\"\n ? options.priority.toLowerCase()\n : undefined;\n switch (priority) {\n case \"low\":\n str += \"; Priority=Low\";\n break;\n case \"medium\":\n str += \"; Priority=Medium\";\n break;\n case \"high\":\n str += \"; Priority=High\";\n break;\n default:\n throw new TypeError(`option priority is invalid: ${options.priority}`);\n }\n }\n if (options.sameSite) {\n const sameSite = typeof options.sameSite === \"string\"\n ? options.sameSite.toLowerCase()\n : options.sameSite;\n switch (sameSite) {\n case true:\n case \"strict\":\n str += \"; SameSite=Strict\";\n break;\n case \"lax\":\n str += \"; SameSite=Lax\";\n break;\n case \"none\":\n str += \"; SameSite=None\";\n break;\n default:\n throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);\n }\n }\n return str;\n}\n/**\n * URL-decode string value. Optimized to skip native call when no %.\n */\nfunction decode(str) {\n if (str.indexOf(\"%\") === -1)\n return str;\n try {\n return decodeURIComponent(str);\n }\n catch (e) {\n return str;\n }\n}\n/**\n * Determine if value is a Date.\n */\nfunction isDate(val) {\n return __toString.call(val) === \"[object Date]\";\n}\n//# sourceMappingURL=index.js.map"],"names":["dist","parse","serialize","cookieNameRegExp","cookieValueRegExp","domainValueRegExp","pathValueRegExp","__toString","NullObject","C","str","options","obj","len","dec","decode","index","eqIdx","colonIdx","endIdx","keyStartIdx","startIndex","keyEndIdx","endIndex","key","valStartIdx","valEndIdx","value","max","code","min","name","val","enc","isDate"],"mappings":"8KACA,OAAO,eAAeA,EAAO,UAAE,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAA,UAAA,MAAgBC,EAChBD,EAAA,UAAA,UAAoBE,EAepB,MAAMC,EAAmB,wCAanBC,EAAoB,kCAwBpBC,EAAoB,sFAQpBC,EAAkB,kCAClBC,EAAa,OAAO,UAAU,SAC9BC,GAA8B,IAAM,CACtC,MAAMC,EAAI,UAAY,CAAG,EACzB,OAAAA,EAAE,UAAY,OAAO,OAAO,IAAI,EACzBA,CACX,GAAI,EAOJ,SAASR,EAAMS,EAAKC,EAAS,CACzB,MAAMC,EAAM,IAAIJ,EACVK,EAAMH,EAAI,OAEhB,GAAIG,EAAM,EACN,OAAOD,EACX,MAAME,GAAMH,GAAA,YAAAA,EAAS,SAAUI,EAC/B,IAAIC,EAAQ,EACZ,EAAG,CACC,MAAMC,EAAQP,EAAI,QAAQ,IAAKM,CAAK,EACpC,GAAIC,IAAU,GACV,MACJ,MAAMC,EAAWR,EAAI,QAAQ,IAAKM,CAAK,EACjCG,EAASD,IAAa,GAAKL,EAAMK,EACvC,GAAID,EAAQE,EAAQ,CAEhBH,EAAQN,EAAI,YAAY,IAAKO,EAAQ,CAAC,EAAI,EAC1C,QACZ,CACQ,MAAMG,EAAcC,EAAWX,EAAKM,EAAOC,CAAK,EAC1CK,EAAYC,EAASb,EAAKO,EAAOG,CAAW,EAC5CI,EAAMd,EAAI,MAAMU,EAAaE,CAAS,EAE5C,GAAIV,EAAIY,CAAG,IAAM,OAAW,CACxB,IAAIC,EAAcJ,EAAWX,EAAKO,EAAQ,EAAGE,CAAM,EAC/CO,EAAYH,EAASb,EAAKS,EAAQM,CAAW,EACjD,MAAME,EAAQb,EAAIJ,EAAI,MAAMe,EAAaC,CAAS,CAAC,EACnDd,EAAIY,CAAG,EAAIG,CACvB,CACQX,EAAQG,EAAS,CACpB,OAAQH,EAAQH,GACjB,OAAOD,CACX,CACA,SAASS,EAAWX,EAAKM,EAAOY,EAAK,CACjC,EAAG,CACC,MAAMC,EAAOnB,EAAI,WAAWM,CAAK,EACjC,GAAIa,IAAS,IAAgBA,IAAS,EAClC,OAAOb,CACnB,OAAa,EAAEA,EAAQY,GACnB,OAAOA,CACX,CACA,SAASL,EAASb,EAAKM,EAAOc,EAAK,CAC/B,KAAOd,EAAQc,GAAK,CAChB,MAAMD,EAAOnB,EAAI,WAAW,EAAEM,CAAK,EACnC,GAAIa,IAAS,IAAgBA,IAAS,EAClC,OAAOb,EAAQ,CAC3B,CACI,OAAOc,CACX,CAUA,SAAS5B,EAAU6B,EAAMC,EAAKrB,EAAS,CACnC,MAAMsB,GAAMtB,GAAA,YAAAA,EAAS,SAAU,mBAC/B,GAAI,CAACR,EAAiB,KAAK4B,CAAI,EAC3B,MAAM,IAAI,UAAU,6BAA6BA,CAAI,EAAE,EAE3D,MAAMJ,EAAQM,EAAID,CAAG,EACrB,GAAI,CAAC5B,EAAkB,KAAKuB,CAAK,EAC7B,MAAM,IAAI,UAAU,4BAA4BK,CAAG,EAAE,EAEzD,IAAItB,EAAMqB,EAAO,IAAMJ,EACvB,GAAI,CAAChB,EACD,OAAOD,EACX,GAAIC,EAAQ,SAAW,OAAW,CAC9B,GAAI,CAAC,OAAO,UAAUA,EAAQ,MAAM,EAChC,MAAM,IAAI,UAAU,6BAA6BA,EAAQ,MAAM,EAAE,EAErED,GAAO,aAAeC,EAAQ,MACtC,CACI,GAAIA,EAAQ,OAAQ,CAChB,GAAI,CAACN,EAAkB,KAAKM,EAAQ,MAAM,EACtC,MAAM,IAAI,UAAU,6BAA6BA,EAAQ,MAAM,EAAE,EAErED,GAAO,YAAcC,EAAQ,MACrC,CACI,GAAIA,EAAQ,KAAM,CACd,GAAI,CAACL,EAAgB,KAAKK,EAAQ,IAAI,EAClC,MAAM,IAAI,UAAU,2BAA2BA,EAAQ,IAAI,EAAE,EAEjED,GAAO,UAAYC,EAAQ,IACnC,CACI,GAAIA,EAAQ,QAAS,CACjB,GAAI,CAACuB,EAAOvB,EAAQ,OAAO,GACvB,CAAC,OAAO,SAASA,EAAQ,QAAQ,QAAS,CAAA,EAC1C,MAAM,IAAI,UAAU,8BAA8BA,EAAQ,OAAO,EAAE,EAEvED,GAAO,aAAeC,EAAQ,QAAQ,YAAa,CAC3D,CAUI,GATIA,EAAQ,WACRD,GAAO,cAEPC,EAAQ,SACRD,GAAO,YAEPC,EAAQ,cACRD,GAAO,iBAEPC,EAAQ,SAIR,OAHiB,OAAOA,EAAQ,UAAa,SACvCA,EAAQ,SAAS,YAAW,EAC5B,OACU,CACZ,IAAK,MACDD,GAAO,iBACP,MACJ,IAAK,SACDA,GAAO,oBACP,MACJ,IAAK,OACDA,GAAO,kBACP,MACJ,QACI,MAAM,IAAI,UAAU,+BAA+BC,EAAQ,QAAQ,EAAE,CACrF,CAEI,GAAIA,EAAQ,SAIR,OAHiB,OAAOA,EAAQ,UAAa,SACvCA,EAAQ,SAAS,YAAW,EAC5BA,EAAQ,SACE,CACZ,IAAK,GACL,IAAK,SACDD,GAAO,oBACP,MACJ,IAAK,MACDA,GAAO,iBACP,MACJ,IAAK,OACDA,GAAO,kBACP,MACJ,QACI,MAAM,IAAI,UAAU,+BAA+BC,EAAQ,QAAQ,EAAE,CACrF,CAEI,OAAOD,CACX,CAIA,SAASK,EAAOL,EAAK,CACjB,GAAIA,EAAI,QAAQ,GAAG,IAAM,GACrB,OAAOA,EACX,GAAI,CACA,OAAO,mBAAmBA,CAAG,CACrC,MACc,CACN,OAAOA,CACf,CACA,CAIA,SAASwB,EAAOF,EAAK,CACjB,OAAOzB,EAAW,KAAKyB,CAAG,IAAM,eACpC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../lib/iconBase.js");require("../lib/iconContext.js");function c(t){return e.GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"},child:[]}]})(t)}function i(t){return e.GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"},child:[]}]})(t)}exports.AiFillHeart=c;exports.AiOutlineHeart=i;
2
- //# sourceMappingURL=index.js.map