hasting-swatchcart-module 0.0.41 → 1.0.1

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 (444) hide show
  1. package/README.md +233 -73
  2. package/dist/assets/index.css +1 -0
  3. package/dist/cdn/lib/components/SwatchesModule.d.ts +10 -0
  4. package/dist/cdn/lib/main.d.ts +4 -0
  5. package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
  6. package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
  7. package/dist/cdn/lib/store/store.d.ts +25 -0
  8. package/dist/cdn/lib/store/withStore.d.ts +2 -0
  9. package/dist/cdn/lib/vite-env.d.ts +1 -0
  10. package/dist/cdn/main.css +1 -0
  11. package/dist/cdn/main.js +48652 -0
  12. package/dist/cdn/src/app/App.d.ts +2 -0
  13. package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
  14. package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
  15. package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
  16. package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
  17. package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
  18. package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
  19. package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
  20. package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
  21. package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
  22. package/dist/cdn/src/app/main.d.ts +1 -0
  23. package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
  24. package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
  25. package/dist/cdn/src/app/store/store.d.ts +24 -0
  26. package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
  27. package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
  28. package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
  29. package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
  30. package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
  31. package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
  32. package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
  33. package/dist/cdn/src/features/Cart/ui/CartPrice/CartPrice.d.ts +5 -0
  34. package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
  35. package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
  36. package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +12 -0
  37. package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
  38. package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
  39. package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +3 -0
  40. package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
  41. package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +13 -0
  42. package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +35 -0
  43. package/dist/cdn/src/features/MultiProduct/model/types.d.ts +30 -0
  44. package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
  45. package/dist/cdn/src/features/MultiProduct/ui/CustomModal/CustomModal.d.ts +8 -0
  46. package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
  47. package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
  48. package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +6 -0
  49. package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
  50. package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +5 -0
  51. package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
  52. package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +5 -0
  53. package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +1 -0
  54. package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +8 -0
  55. package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
  56. package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +11 -0
  57. package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
  58. package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
  59. package/dist/cdn/src/features/swatches/model/selectors.d.ts +12 -0
  60. package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +26 -0
  61. package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
  62. package/dist/cdn/src/features/swatches/model/types.d.ts +137 -0
  63. package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
  64. package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
  65. package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
  66. package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +5 -0
  67. package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
  68. package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
  69. package/dist/cdn/src/features/swatches/ui/MaterialList/index.d.ts +7 -0
  70. package/dist/cdn/src/features/swatches/ui/MaterialListItem/MaterialListItem.d.ts +4 -0
  71. package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
  72. package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
  73. package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +11 -0
  74. package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +5 -0
  75. package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
  76. package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
  77. package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
  78. package/dist/cdn/src/shared/constants/select.d.ts +4 -0
  79. package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
  80. package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
  81. package/dist/cdn/src/shared/types/svg.d.ts +3 -0
  82. package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
  83. package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
  84. package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
  85. package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
  86. package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
  87. package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
  88. package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
  89. package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
  90. package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
  91. package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
  92. package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
  93. package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
  94. package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
  95. package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
  96. package/dist/cdn/vite.svg +1 -0
  97. package/dist/components/SwatchesModule.d.ts +1 -2
  98. package/dist/main.cjs +407 -0
  99. package/dist/main.cjs.map +1 -0
  100. package/dist/main.d.ts +4 -1
  101. package/dist/main.js +63812 -2
  102. package/dist/main.js.map +1 -0
  103. package/dist/store/LibraryProvider.d.ts +4 -0
  104. package/dist/store/rootReducer.d.ts +11 -0
  105. package/dist/store/store.d.ts +25 -0
  106. package/dist/store/withStore.d.ts +2 -0
  107. package/package.json +24 -14
  108. package/dist/_virtual/_commonjsHelpers.js +0 -6
  109. package/dist/_virtual/index.js +0 -7
  110. package/dist/_virtual/index2.js +0 -7
  111. package/dist/_virtual/index3.js +0 -4
  112. package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
  113. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
  114. package/dist/_virtual/utilities.js +0 -4
  115. package/dist/_virtual/with-selector.js +0 -5
  116. package/dist/_virtual/with-selector2.js +0 -4
  117. package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
  118. package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
  119. package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
  120. package/dist/components/SwatchesModule.js +0 -32
  121. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  122. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  123. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  124. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  125. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  126. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  127. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  128. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  129. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  130. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  131. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
  132. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  133. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  134. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  135. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  136. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
  137. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  138. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  139. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  140. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  141. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  142. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  143. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  144. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  145. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  146. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  147. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  148. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
  149. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
  150. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
  151. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  152. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  153. package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  154. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  155. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  156. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  157. package/dist/node_modules/bail/index.js +0 -7
  158. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  159. package/dist/node_modules/comma-separated-tokens/index.js +0 -20
  160. package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
  161. package/dist/node_modules/devlop/lib/default.js +0 -8
  162. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
  163. package/dist/node_modules/extend/index.js +0 -43
  164. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  165. package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  166. package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  167. package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
  168. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
  169. package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  170. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
  171. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
  172. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
  173. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
  174. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
  175. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
  176. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  177. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  178. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
  179. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
  180. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
  181. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
  182. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
  183. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
  184. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
  185. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
  186. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
  187. package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
  188. package/dist/node_modules/hastscript/lib/create-h.js +0 -112
  189. package/dist/node_modules/hastscript/lib/index.js +0 -8
  190. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  191. package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
  192. package/dist/node_modules/html-void-elements/index.js +0 -25
  193. package/dist/node_modules/immer/dist/immer.js +0 -467
  194. package/dist/node_modules/inline-style-parser/index.js +0 -93
  195. package/dist/node_modules/is-plain-obj/index.js +0 -9
  196. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
  197. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
  198. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  199. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
  200. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
  201. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
  202. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
  203. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
  204. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
  205. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
  206. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
  207. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
  208. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
  209. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
  210. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
  211. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
  212. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
  213. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
  214. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
  215. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
  216. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
  217. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
  218. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
  219. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
  220. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
  221. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
  222. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
  223. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
  224. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
  225. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
  226. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
  227. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
  228. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
  229. package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
  230. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
  231. package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
  232. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
  233. package/dist/node_modules/micromark/lib/constructs.js +0 -85
  234. package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
  235. package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
  236. package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
  237. package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
  238. package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
  239. package/dist/node_modules/micromark/lib/parse.js +0 -32
  240. package/dist/node_modules/micromark/lib/postprocess.js +0 -9
  241. package/dist/node_modules/micromark/lib/preprocess.js +0 -39
  242. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
  243. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
  244. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
  245. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
  246. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
  247. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
  248. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
  249. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
  250. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
  251. package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
  252. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
  253. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
  254. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
  255. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
  256. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
  257. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
  258. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
  259. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
  260. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
  261. package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
  262. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
  263. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
  264. package/dist/node_modules/micromark-factory-destination/index.js +0 -31
  265. package/dist/node_modules/micromark-factory-label/index.js +0 -28
  266. package/dist/node_modules/micromark-factory-space/index.js +0 -15
  267. package/dist/node_modules/micromark-factory-title/index.js +0 -26
  268. package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
  269. package/dist/node_modules/micromark-util-character/index.js +0 -39
  270. package/dist/node_modules/micromark-util-chunked/index.js +0 -16
  271. package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
  272. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
  273. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
  274. package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
  275. package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
  276. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
  277. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
  278. package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
  279. package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
  280. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
  281. package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
  282. package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
  283. package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
  284. package/dist/node_modules/parse5/dist/common/html.js +0 -250
  285. package/dist/node_modules/parse5/dist/common/token.js +0 -14
  286. package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
  287. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  288. package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
  289. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  290. package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
  291. package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  292. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  293. package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  294. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  295. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
  296. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  297. package/dist/node_modules/property-information/index.js +0 -12
  298. package/dist/node_modules/property-information/lib/aria.js +0 -61
  299. package/dist/node_modules/property-information/lib/find.js +0 -33
  300. package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
  301. package/dist/node_modules/property-information/lib/html.js +0 -368
  302. package/dist/node_modules/property-information/lib/normalize.js +0 -6
  303. package/dist/node_modules/property-information/lib/svg.js +0 -566
  304. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  305. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  306. package/dist/node_modules/property-information/lib/util/create.js +0 -19
  307. package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
  308. package/dist/node_modules/property-information/lib/util/info.js +0 -28
  309. package/dist/node_modules/property-information/lib/util/merge.js +0 -10
  310. package/dist/node_modules/property-information/lib/util/schema.js +0 -21
  311. package/dist/node_modules/property-information/lib/util/types.js +0 -14
  312. package/dist/node_modules/property-information/lib/xlink.js +0 -19
  313. package/dist/node_modules/property-information/lib/xml.js +0 -11
  314. package/dist/node_modules/property-information/lib/xmlns.js +0 -11
  315. package/dist/node_modules/react-markdown/lib/index.js +0 -102
  316. package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
  317. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  318. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  319. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  320. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  321. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  322. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  323. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  324. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  325. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  326. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  327. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  328. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  329. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  330. package/dist/node_modules/redux/dist/redux.js +0 -258
  331. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
  332. package/dist/node_modules/rehype-raw/lib/index.js +0 -12
  333. package/dist/node_modules/remark-parse/lib/index.js +0 -19
  334. package/dist/node_modules/remark-rehype/lib/index.js +0 -18
  335. package/dist/node_modules/reselect/dist/reselect.js +0 -244
  336. package/dist/node_modules/space-separated-tokens/index.js +0 -11
  337. package/dist/node_modules/style-to-js/cjs/index.js +0 -20
  338. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
  339. package/dist/node_modules/style-to-object/cjs/index.js +0 -28
  340. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
  341. package/dist/node_modules/trim-lines/index.js +0 -28
  342. package/dist/node_modules/trough/lib/index.js +0 -60
  343. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  344. package/dist/node_modules/unified/lib/callable-instance.js +0 -25
  345. package/dist/node_modules/unified/lib/index.js +0 -529
  346. package/dist/node_modules/unist-util-is/lib/index.js +0 -84
  347. package/dist/node_modules/unist-util-position/lib/index.js +0 -23
  348. package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
  349. package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
  350. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  351. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  352. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  353. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  354. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  355. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  356. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  357. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
  358. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
  359. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
  360. package/dist/node_modules/vfile/lib/index.js +0 -406
  361. package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
  362. package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
  363. package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
  364. package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
  365. package/dist/node_modules/vfile-location/lib/index.js +0 -42
  366. package/dist/node_modules/vfile-message/lib/index.js +0 -91
  367. package/dist/node_modules/web-namespaces/index.js +0 -11
  368. package/dist/node_modules/zwitch/index.js +0 -18
  369. package/dist/src/app/assets/images/product_thumb.png.js +0 -4
  370. package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
  371. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
  372. package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
  373. package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
  374. package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
  375. package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
  376. package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
  377. package/dist/src/app/providers/StoreProvider.js +0 -7
  378. package/dist/src/app/store/rootReducer.js +0 -12
  379. package/dist/src/app/store/store.js +0 -14
  380. package/dist/src/features/Cart/lib/CartCervices.js +0 -8
  381. package/dist/src/features/Cart/model/cartSlice.js +0 -58
  382. package/dist/src/features/Cart/model/selectors.js +0 -18
  383. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
  384. package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
  385. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
  386. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
  387. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
  388. package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
  389. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
  390. package/dist/src/features/DataAdapter/utils/types.js +0 -8
  391. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
  392. package/dist/src/features/MultiProduct/model/API/api.js +0 -18
  393. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
  394. package/dist/src/features/MultiProduct/model/selectors.js +0 -7
  395. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
  396. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
  397. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
  398. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
  399. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
  400. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
  401. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
  402. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
  403. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
  404. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
  405. package/dist/src/features/MultiProduct/utils/constants.js +0 -16
  406. package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
  407. package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
  408. package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
  409. package/dist/src/features/swatches/model/selectors.js +0 -12
  410. package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
  411. package/dist/src/features/swatches/model/thunks.js +0 -22
  412. package/dist/src/features/swatches/model/types.js +0 -6
  413. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
  414. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
  415. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
  416. package/dist/src/features/swatches/ui/Filters/index.js +0 -12
  417. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
  418. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
  419. package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
  420. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
  421. package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
  422. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
  423. package/dist/src/features/swatches/ui/Swatches.js +0 -51
  424. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
  425. package/dist/src/features/swatches/utils/constants.js +0 -8
  426. package/dist/src/shared/constants/props.js +0 -13337
  427. package/dist/src/shared/constants/selectedMaterials.js +0 -4
  428. package/dist/src/shared/types/activeTab.js +0 -7
  429. package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
  430. package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
  431. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
  432. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
  433. package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
  434. package/dist/src/shared/ui/Label/Label.js +0 -27
  435. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
  436. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
  437. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
  438. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
  439. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
  440. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
  441. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
  442. package/dist/src/shared/ui/Slider/Slider.js +0 -117
  443. package/dist/src/shared/utils/cn.js +0 -8
  444. package/dist/src/shared/utils/uniqueList.js +0 -4
@@ -1,19 +0,0 @@
1
- import { create as n } from "./util/create.js";
2
- const r = n({
3
- properties: {
4
- xLinkActuate: null,
5
- xLinkArcRole: null,
6
- xLinkHref: null,
7
- xLinkRole: null,
8
- xLinkShow: null,
9
- xLinkTitle: null,
10
- xLinkType: null
11
- },
12
- space: "xlink",
13
- transform(e, l) {
14
- return "xlink:" + l.slice(5).toLowerCase();
15
- }
16
- });
17
- export {
18
- r as xlink
19
- };
@@ -1,11 +0,0 @@
1
- import { create as e } from "./util/create.js";
2
- const o = e({
3
- properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
4
- space: "xml",
5
- transform(r, l) {
6
- return "xml:" + l.slice(3).toLowerCase();
7
- }
8
- });
9
- export {
10
- o as xml
11
- };
@@ -1,11 +0,0 @@
1
- import { create as n } from "./util/create.js";
2
- import { caseInsensitiveTransform as s } from "./util/case-insensitive-transform.js";
3
- const m = n({
4
- attributes: { xmlnsxlink: "xmlns:xlink" },
5
- properties: { xmlnsXLink: null, xmlns: null },
6
- space: "xmlns",
7
- transform: s
8
- });
9
- export {
10
- m as xmlns
11
- };
@@ -1,102 +0,0 @@
1
- import { unreachable as k } from "../../devlop/lib/default.js";
2
- import { jsxs as b, jsx as O, Fragment as P } from "react/jsx-runtime";
3
- import "react";
4
- import { unified as v } from "../../unified/lib/index.js";
5
- import E from "../../remark-parse/lib/index.js";
6
- import T from "../../remark-rehype/lib/index.js";
7
- import { VFile as x } from "../../vfile/lib/index.js";
8
- import { visit as N } from "../../unist-util-visit/lib/index.js";
9
- import { toJsxRuntime as R } from "../../hast-util-to-jsx-runtime/lib/index.js";
10
- import { urlAttributes as a } from "../../html-url-attributes/lib/index.js";
11
- const j = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", f = [], u = { allowDangerousHtml: !0 }, H = /^(https?|ircs?|mailto|xmpp)$/i, S = [
12
- { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
13
- { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
14
- {
15
- from: "allowNode",
16
- id: "replace-allownode-allowedtypes-and-disallowedtypes",
17
- to: "allowElement"
18
- },
19
- {
20
- from: "allowedTypes",
21
- id: "replace-allownode-allowedtypes-and-disallowedtypes",
22
- to: "allowedElements"
23
- },
24
- { from: "className", id: "remove-classname" },
25
- {
26
- from: "disallowedTypes",
27
- id: "replace-allownode-allowedtypes-and-disallowedtypes",
28
- to: "disallowedElements"
29
- },
30
- { from: "escapeHtml", id: "remove-buggy-html-in-markdown-parser" },
31
- { from: "includeElementIndex", id: "#remove-includeelementindex" },
32
- {
33
- from: "includeNodeIndex",
34
- id: "change-includenodeindex-to-includeelementindex"
35
- },
36
- { from: "linkTarget", id: "remove-linktarget" },
37
- { from: "plugins", id: "change-plugins-to-remarkplugins", to: "remarkPlugins" },
38
- { from: "rawSourcePos", id: "#remove-rawsourcepos" },
39
- { from: "renderers", id: "change-renderers-to-components", to: "components" },
40
- { from: "source", id: "change-source-to-children", to: "children" },
41
- { from: "sourcePos", id: "#remove-sourcepos" },
42
- { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
43
- { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
44
- ];
45
- function C(r) {
46
- const e = D(r), t = I(r);
47
- return U(e.runSync(e.parse(t), t), r);
48
- }
49
- function D(r) {
50
- const e = r.rehypePlugins || f, t = r.remarkPlugins || f, n = r.remarkRehypeOptions ? { ...r.remarkRehypeOptions, ...u } : u;
51
- return v().use(E).use(t).use(T, n).use(e);
52
- }
53
- function I(r) {
54
- const e = r.children || "", t = new x();
55
- return typeof e == "string" && (t.value = e), t;
56
- }
57
- function U(r, e) {
58
- const t = e.allowedElements, n = e.allowElement, i = e.components, c = e.disallowedElements, p = e.skipHtml, w = e.unwrapDisallowed, g = e.urlTransform || F;
59
- for (const o of S)
60
- Object.hasOwn(e, o.from) && k(
61
- "Unexpected `" + o.from + "` prop, " + (o.to ? "use `" + o.to + "` instead" : "remove it") + " (see <" + j + "#" + o.id + "> for more info)"
62
- );
63
- return N(r, h), R(r, {
64
- Fragment: P,
65
- components: i,
66
- ignoreInvalidStyle: !0,
67
- jsx: O,
68
- jsxs: b,
69
- passKeys: !0,
70
- passNode: !0
71
- });
72
- function h(o, l, m) {
73
- if (o.type === "raw" && m && typeof l == "number")
74
- return p ? m.children.splice(l, 1) : m.children[l] = { type: "text", value: o.value }, l;
75
- if (o.type === "element") {
76
- let s;
77
- for (s in a)
78
- if (Object.hasOwn(a, s) && Object.hasOwn(o.properties, s)) {
79
- const y = o.properties[s], d = a[s];
80
- (d === null || d.includes(o.tagName)) && (o.properties[s] = g(String(y || ""), s, o));
81
- }
82
- }
83
- if (o.type === "element") {
84
- let s = t ? !t.includes(o.tagName) : c ? c.includes(o.tagName) : !1;
85
- if (!s && n && typeof l == "number" && (s = !n(o, l, m)), s && m && typeof l == "number")
86
- return w && o.children ? m.children.splice(l, 1, ...o.children) : m.children.splice(l, 1), l;
87
- }
88
- }
89
- }
90
- function F(r) {
91
- const e = r.indexOf(":"), t = r.indexOf("?"), n = r.indexOf("#"), i = r.indexOf("/");
92
- return (
93
- // If there is no protocol, it’s relative.
94
- e === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
95
- i !== -1 && e > i || t !== -1 && e > t || n !== -1 && e > n || // It is a protocol, it should be allowed.
96
- H.test(r.slice(0, e)) ? r : ""
97
- );
98
- }
99
- export {
100
- C as Markdown,
101
- F as defaultUrlTransform
102
- };
@@ -1,246 +0,0 @@
1
- import * as i from "react";
2
- import { w as V } from "../../../_virtual/with-selector.js";
3
- function T(n) {
4
- n();
5
- }
6
- function L() {
7
- let n = null, o = null;
8
- return {
9
- clear() {
10
- n = null, o = null;
11
- },
12
- notify() {
13
- T(() => {
14
- let e = n;
15
- for (; e; )
16
- e.callback(), e = e.next;
17
- });
18
- },
19
- get() {
20
- const e = [];
21
- let t = n;
22
- for (; t; )
23
- e.push(t), t = t.next;
24
- return e;
25
- },
26
- subscribe(e) {
27
- let t = !0;
28
- const r = o = {
29
- callback: e,
30
- next: null,
31
- prev: o
32
- };
33
- return r.prev ? r.prev.next = r : n = r, function() {
34
- !t || n === null || (t = !1, r.next ? r.next.prev = r.prev : o = r.prev, r.prev ? r.prev.next = r.next : n = r.next);
35
- };
36
- }
37
- };
38
- }
39
- var k = {
40
- notify() {
41
- },
42
- get: () => []
43
- };
44
- function M(n, o) {
45
- let e, t = k, r = 0, s = !1;
46
- function f(w) {
47
- u();
48
- const g = t.subscribe(w);
49
- let y = !1;
50
- return () => {
51
- y || (y = !0, g(), b());
52
- };
53
- }
54
- function d() {
55
- t.notify();
56
- }
57
- function c() {
58
- a.onStateChange && a.onStateChange();
59
- }
60
- function p() {
61
- return s;
62
- }
63
- function u() {
64
- r++, e || (e = n.subscribe(c), t = L());
65
- }
66
- function b() {
67
- r--, e && r === 0 && (e(), e = void 0, t.clear(), t = k);
68
- }
69
- function S() {
70
- s || (s = !0, u());
71
- }
72
- function h() {
73
- s && (s = !1, b());
74
- }
75
- const a = {
76
- addNestedSub: f,
77
- notifyNestedSubs: d,
78
- handleChangeWrapper: c,
79
- isSubscribed: p,
80
- trySubscribe: S,
81
- tryUnsubscribe: h,
82
- getListeners: () => t
83
- };
84
- return a;
85
- }
86
- var j = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", U = /* @__PURE__ */ j(), _ = () => typeof navigator < "u" && navigator.product === "ReactNative", H = /* @__PURE__ */ _(), I = () => U || H ? i.useLayoutEffect : i.useEffect, P = /* @__PURE__ */ I(), z = /* @__PURE__ */ Symbol.for("react-redux-context"), O = typeof globalThis < "u" ? globalThis : (
87
- /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
88
- {}
89
- );
90
- function Y() {
91
- if (!i.createContext) return {};
92
- const n = O[z] ??= /* @__PURE__ */ new Map();
93
- let o = n.get(i.createContext);
94
- return o || (o = i.createContext(
95
- null
96
- ), process.env.NODE_ENV !== "production" && (o.displayName = "ReactRedux"), n.set(i.createContext, o)), o;
97
- }
98
- var l = /* @__PURE__ */ Y();
99
- function F(n) {
100
- const { children: o, context: e, serverState: t, store: r } = n, s = i.useMemo(() => {
101
- const c = M(r), p = {
102
- store: r,
103
- subscription: c,
104
- getServerState: t ? () => t : void 0
105
- };
106
- if (process.env.NODE_ENV === "production")
107
- return p;
108
- {
109
- const { identityFunctionCheck: u = "once", stabilityCheck: b = "once" } = n;
110
- return /* @__PURE__ */ Object.assign(p, {
111
- stabilityCheck: b,
112
- identityFunctionCheck: u
113
- });
114
- }
115
- }, [r, t]), f = i.useMemo(() => r.getState(), [r]);
116
- P(() => {
117
- const { subscription: c } = s;
118
- return c.onStateChange = c.notifyNestedSubs, c.trySubscribe(), f !== r.getState() && c.notifyNestedSubs(), () => {
119
- c.tryUnsubscribe(), c.onStateChange = void 0;
120
- };
121
- }, [s, f]);
122
- const d = e || l;
123
- return /* @__PURE__ */ i.createElement(d.Provider, { value: s }, o);
124
- }
125
- var G = F;
126
- function m(n = l) {
127
- return function() {
128
- const e = i.useContext(n);
129
- if (process.env.NODE_ENV !== "production" && !e)
130
- throw new Error(
131
- "could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
132
- );
133
- return e;
134
- };
135
- }
136
- var N = /* @__PURE__ */ m();
137
- function R(n = l) {
138
- const o = n === l ? N : (
139
- // @ts-ignore
140
- m(n)
141
- ), e = () => {
142
- const { store: t } = o();
143
- return t;
144
- };
145
- return Object.assign(e, {
146
- withTypes: () => e
147
- }), e;
148
- }
149
- var W = /* @__PURE__ */ R();
150
- function A(n = l) {
151
- const o = n === l ? W : R(n), e = () => o().dispatch;
152
- return Object.assign(e, {
153
- withTypes: () => e
154
- }), e;
155
- }
156
- var J = /* @__PURE__ */ A(), B = (n, o) => n === o;
157
- function K(n = l) {
158
- const o = n === l ? N : m(n), e = (t, r = {}) => {
159
- const { equalityFn: s = B } = typeof r == "function" ? { equalityFn: r } : r;
160
- if (process.env.NODE_ENV !== "production") {
161
- if (!t)
162
- throw new Error("You must pass a selector to useSelector");
163
- if (typeof t != "function")
164
- throw new Error("You must pass a function as a selector to useSelector");
165
- if (typeof s != "function")
166
- throw new Error(
167
- "You must pass a function as an equality function to useSelector"
168
- );
169
- }
170
- const f = o(), { store: d, subscription: c, getServerState: p } = f, u = i.useRef(!0), b = i.useCallback(
171
- {
172
- [t.name](h) {
173
- const a = t(h);
174
- if (process.env.NODE_ENV !== "production") {
175
- const { devModeChecks: w = {} } = typeof r == "function" ? {} : r, { identityFunctionCheck: g, stabilityCheck: y } = f, {
176
- identityFunctionCheck: C,
177
- stabilityCheck: E
178
- } = {
179
- stabilityCheck: y,
180
- identityFunctionCheck: g,
181
- ...w
182
- };
183
- if (E === "always" || E === "once" && u.current) {
184
- const v = t(h);
185
- if (!s(a, v)) {
186
- let x;
187
- try {
188
- throw new Error();
189
- } catch (D) {
190
- ({ stack: x } = D);
191
- }
192
- console.warn(
193
- "Selector " + (t.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
194
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,
195
- {
196
- state: h,
197
- selected: a,
198
- selected2: v,
199
- stack: x
200
- }
201
- );
202
- }
203
- }
204
- if ((C === "always" || C === "once" && u.current) && a === h) {
205
- let v;
206
- try {
207
- throw new Error();
208
- } catch (x) {
209
- ({ stack: v } = x);
210
- }
211
- console.warn(
212
- "Selector " + (t.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
213
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
214
- { stack: v }
215
- );
216
- }
217
- u.current && (u.current = !1);
218
- }
219
- return a;
220
- }
221
- }[t.name],
222
- [t]
223
- ), S = V.useSyncExternalStoreWithSelector(
224
- c.addNestedSub,
225
- d.getState,
226
- p || d.getState,
227
- b,
228
- s
229
- );
230
- return i.useDebugValue(S), S;
231
- };
232
- return Object.assign(e, {
233
- withTypes: () => e
234
- }), e;
235
- }
236
- var Q = /* @__PURE__ */ K();
237
- export {
238
- G as Provider,
239
- l as ReactReduxContext,
240
- A as createDispatchHook,
241
- K as createSelectorHook,
242
- R as createStoreHook,
243
- J as useDispatch,
244
- Q as useSelector,
245
- W as useStore
246
- };
@@ -1,11 +0,0 @@
1
- import { __assign as m } from "../../../tslib/tslib.es6.js";
2
- import * as r from "react";
3
- import { RemoveScroll as e } from "./UI.js";
4
- import t from "./sidecar.js";
5
- var s = r.forwardRef(function(a, o) {
6
- return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
- });
8
- s.classNames = e.classNames;
9
- export {
10
- s as default
11
- };
@@ -1,112 +0,0 @@
1
- import { __spreadArray as x } from "../../../tslib/tslib.es6.js";
2
- import * as n from "react";
3
- import { RemoveScrollBar as A } from "../../../react-remove-scroll-bar/dist/es2015/component.js";
4
- import { styleSingleton as I } from "../../../react-style-singleton/dist/es2015/component.js";
5
- import { nonPassive as s } from "./aggresiveCapture.js";
6
- import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
7
- var b = function(t) {
8
- return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
9
- }, Y = function(t) {
10
- return [t.deltaX, t.deltaY];
11
- }, B = function(t) {
12
- return t && "current" in t ? t.current : t;
13
- }, F = function(t, c) {
14
- return t[0] === c[0] && t[1] === c[1];
15
- }, K = function(t) {
16
- return `
17
- .block-interactivity-`.concat(t, ` {pointer-events: none;}
18
- .allow-interactivity-`).concat(t, ` {pointer-events: all;}
19
- `);
20
- }, O = 0, f = [];
21
- function G(t) {
22
- var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(O++)[0], m = n.useState(I)[0], g = n.useRef(t);
23
- n.useEffect(function() {
24
- g.current = t;
25
- }, [t]), n.useEffect(function() {
26
- if (t.inert) {
27
- document.body.classList.add("block-interactivity-".concat(h));
28
- var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
29
- return e.forEach(function(r) {
30
- return r.classList.add("allow-interactivity-".concat(h));
31
- }), function() {
32
- document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
33
- return r.classList.remove("allow-interactivity-".concat(h));
34
- });
35
- };
36
- }
37
- }, [t.inert, t.lockRef.current, t.shards]);
38
- var k = n.useCallback(function(e, r) {
39
- if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
40
- return !g.current.allowPinchZoom;
41
- var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
42
- if ("touches" in e && v === "h" && C.type === "range")
43
- return !1;
44
- var y = T(v, C);
45
- if (!y)
46
- return !0;
47
- if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
48
- return !1;
49
- if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
50
- return !0;
51
- var P = d.current || a;
52
- return W(P, r, e, P === "h" ? u : i);
53
- }, []), S = n.useCallback(function(e) {
54
- var r = e;
55
- if (!(!f.length || f[f.length - 1] !== m)) {
56
- var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
57
- return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && F(a.delta, l);
58
- })[0];
59
- if (o && o.should) {
60
- r.cancelable && r.preventDefault();
61
- return;
62
- }
63
- if (!o) {
64
- var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
65
- return a.contains(r.target);
66
- }), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
67
- i && r.cancelable && r.preventDefault();
68
- }
69
- }
70
- }, []), R = n.useCallback(function(e, r, l, o) {
71
- var u = { name: e, delta: r, target: l, should: o, shadowParent: Q(l) };
72
- c.current.push(u), setTimeout(function() {
73
- c.current = c.current.filter(function(i) {
74
- return i !== u;
75
- });
76
- }, 1);
77
- }, []), w = n.useCallback(function(e) {
78
- E.current = b(e), d.current = void 0;
79
- }, []), L = n.useCallback(function(e) {
80
- R(e.type, Y(e), e.target, k(e, t.lockRef.current));
81
- }, []), M = n.useCallback(function(e) {
82
- R(e.type, b(e), e.target, k(e, t.lockRef.current));
83
- }, []);
84
- n.useEffect(function() {
85
- return f.push(m), t.setCallbacks({
86
- onScrollCapture: L,
87
- onWheelCapture: L,
88
- onTouchMoveCapture: M
89
- }), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
90
- f = f.filter(function(e) {
91
- return e !== m;
92
- }), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
93
- };
94
- }, []);
95
- var X = t.removeScrollBar, D = t.inert;
96
- return n.createElement(
97
- n.Fragment,
98
- null,
99
- D ? n.createElement(m, { styles: K(h) }) : null,
100
- X ? n.createElement(A, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
101
- );
102
- }
103
- function Q(t) {
104
- for (var c = null; t !== null; )
105
- t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
106
- return c;
107
- }
108
- export {
109
- G as RemoveScrollSideCar,
110
- Y as getDeltaXY,
111
- b as getTouchXY
112
- };
@@ -1,31 +0,0 @@
1
- import { __rest as E, __assign as r } from "../../../tslib/tslib.es6.js";
2
- import * as a from "react";
3
- import { zeroRightClassName as I, fullWidthClassName as Z } from "../../../react-remove-scroll-bar/dist/es2015/constants.js";
4
- import { effectCar as W } from "./medium.js";
5
- import { useMergeRefs as z } from "../../../use-callback-ref/dist/es2015/useMergeRef.js";
6
- var l = function() {
7
- }, m = a.forwardRef(function(e, d) {
8
- var o = a.useRef(null), n = a.useState({
9
- onScrollCapture: l,
10
- onWheelCapture: l,
11
- onTouchMoveCapture: l
12
- }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
- return a.createElement(
14
- a.Fragment,
15
- null,
16
- R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
- h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
- );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: Z,
27
- zeroRight: I
28
- };
29
- export {
30
- m as RemoveScroll
31
- };
@@ -1,16 +0,0 @@
1
- var r = !1;
2
- if (typeof window < "u")
3
- try {
4
- var e = Object.defineProperty({}, "passive", {
5
- get: function() {
6
- return r = !0, !0;
7
- }
8
- });
9
- window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
- } catch {
11
- r = !1;
12
- }
13
- var a = r ? { passive: !1 } : !1;
14
- export {
15
- a as nonPassive
16
- };
@@ -1,68 +0,0 @@
1
- var N = function(r) {
2
- return r.tagName === "TEXTAREA";
3
- }, b = function(r, e) {
4
- if (!(r instanceof Element))
5
- return !1;
6
- var t = window.getComputedStyle(r);
7
- return (
8
- // not-not-scrollable
9
- t[e] !== "hidden" && // contains scroll inside self
10
- !(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
11
- );
12
- }, D = function(r) {
13
- return b(r, "overflowY");
14
- }, E = function(r) {
15
- return b(r, "overflowX");
16
- }, T = function(r, e) {
17
- var t = e.ownerDocument, l = e;
18
- do {
19
- typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
20
- var f = g(r, l);
21
- if (f) {
22
- var n = m(r, l), i = n[1], o = n[2];
23
- if (i > o)
24
- return !0;
25
- }
26
- l = l.parentNode;
27
- } while (l && l !== t.body);
28
- return !1;
29
- }, H = function(r) {
30
- var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
31
- return [
32
- e,
33
- t,
34
- l
35
- ];
36
- }, p = function(r) {
37
- var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
38
- return [
39
- e,
40
- t,
41
- l
42
- ];
43
- }, g = function(r, e) {
44
- return r === "v" ? D(e) : E(e);
45
- }, m = function(r, e) {
46
- return r === "v" ? H(e) : p(e);
47
- }, B = function(r, e) {
48
- return r === "h" && e === "rtl" ? -1 : 1;
49
- }, V = function(r, e, t, l, f) {
50
- var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
51
- do {
52
- if (!o)
53
- break;
54
- var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
55
- (v || w) && g(r, o) && (h += w, S += v);
56
- var a = o.parentNode;
57
- o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
58
- } while (
59
- // portaled content
60
- !d && o !== document.body || // self content
61
- d && (e.contains(o) || e === o)
62
- );
63
- return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
64
- };
65
- export {
66
- V as handleScroll,
67
- T as locationCouldBeScrolled
68
- };
@@ -1,5 +0,0 @@
1
- import { createSidecarMedium as e } from "../../../use-sidecar/dist/es2015/medium.js";
2
- var a = e();
3
- export {
4
- a as effectCar
5
- };
@@ -1,7 +0,0 @@
1
- import { RemoveScrollSideCar as r } from "./SideEffect.js";
2
- import { effectCar as o } from "./medium.js";
3
- import { exportSidecar as e } from "../../../use-sidecar/dist/es2015/exports.js";
4
- const f = e(o, r);
5
- export {
6
- f as default
7
- };