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,41 +0,0 @@
1
- import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
- import { MaterialItem as c } from "../../../../shared/ui/MaterialItem/MaterialItem.js";
3
- import { Counter as o } from "../Counter/Counter.js";
4
- const p = ({
5
- item: e,
6
- canInc: l,
7
- onDelete: n,
8
- onIncrement: s,
9
- onDecrement: d
10
- }) => /* @__PURE__ */ a(
11
- "li",
12
- {
13
- className: `\r
14
- border-b border-[var(--border)] p-[var(--padding)]\r
15
- sm:px-[var(--sm-padding)] sm:pb-[var(--sm-padding)]`,
16
- children: /* @__PURE__ */ r("div", { className: "relative flex gap-4 ", children: [
17
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(c, { val: e }) }),
18
- /* @__PURE__ */ r("div", { className: "flex flex-col justify-between", children: [
19
- /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
20
- /* @__PURE__ */ a("span", { className: "mb-1 font-medium", children: e.metadata.label }),
21
- /* @__PURE__ */ a("span", { className: "mb-1 font-semibold", children: e.parentName })
22
- ] }),
23
- /* @__PURE__ */ a(
24
- o,
25
- {
26
- value: e.count,
27
- canIncrement: l,
28
- onIncrement: () => s(e),
29
- onDecrement: () => d(e),
30
- onDelete: () => n(e)
31
- }
32
- )
33
- ] }),
34
- /* @__PURE__ */ a("div", { className: "absolute top-0 right-0", children: "$13.00" })
35
- ] })
36
- },
37
- e.assetId
38
- );
39
- export {
40
- p as CartListItem
41
- };
@@ -1,23 +0,0 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- const d = ({
3
- containerStyles: a = "flex flex-col gap-2 text-xs/snug p-[var(--padding)] border-t border-solid border-[var(--border)] sm:gap-3 sm:p-[var(--sm-padding)]"
4
- }) => {
5
- const s = "flex justify-between items-center";
6
- return /* @__PURE__ */ r("div", { className: a, children: [
7
- /* @__PURE__ */ r("div", { className: s, children: [
8
- /* @__PURE__ */ e("span", { children: "Subtotal" }),
9
- /* @__PURE__ */ e("span", { children: "$32.50" })
10
- ] }),
11
- /* @__PURE__ */ r("div", { className: `${s} text-[var(--main-accent-color)]`, children: [
12
- /* @__PURE__ */ e("span", { children: "Savings" }),
13
- /* @__PURE__ */ e("span", { children: "-$32.50" })
14
- ] }),
15
- /* @__PURE__ */ r("div", { className: `${s} text-sm font-medium`, children: [
16
- /* @__PURE__ */ e("span", { children: "Total" }),
17
- /* @__PURE__ */ e("span", { children: "$32.50" })
18
- ] })
19
- ] });
20
- };
21
- export {
22
- d as CartPrice
23
- };
@@ -1,38 +0,0 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import m from "../../../../shared/ui/CustomSidebar/CustomSidebar.js";
3
- import { useAppSelector as s } from "../../../../app/store/store.js";
4
- import { CartHeader as a } from "../CartHeader/CartHeader.js";
5
- import { CartPrice as c } from "../CartPrice/CartPrice.js";
6
- import { CartList as n } from "../CartList/CartList.js";
7
- import { getCartItems as d } from "../../model/selectors.js";
8
- const v = ({
9
- isOpen: e,
10
- onToggleSidebar: o,
11
- onSetActiveTab: i
12
- }) => {
13
- const l = s(d);
14
- return /* @__PURE__ */ t(m, { isOpen: e, setIsOpen: o, children: [
15
- /* @__PURE__ */ r(
16
- a,
17
- {
18
- onSetActiveTab: i,
19
- onToggleSidebar: o
20
- }
21
- ),
22
- /* @__PURE__ */ t("div", { className: "flex flex-col h-full min-h-0", children: [
23
- /* @__PURE__ */ r(n, {}),
24
- /* @__PURE__ */ r(c, {}),
25
- /* @__PURE__ */ r("div", { className: "p-[var(--padding)] border-t border-solid border-[var(--border)] shrink-0", children: /* @__PURE__ */ r(
26
- "button",
27
- {
28
- className: "w-full bg-[var(--main-accent-color)] text-white py-3 rounded-full font-bold cursor-pointer",
29
- onClick: () => console.log(l),
30
- children: "GO TO SHIPPING"
31
- }
32
- ) })
33
- ] })
34
- ] });
35
- };
36
- export {
37
- v as CartWrapper
38
- };
@@ -1,46 +0,0 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { MinusIconSVG as i } from "../../../../app/assets/svg/MinusIconSVG.js";
3
- import { PlusIconSVG as l } from "../../../../app/assets/svg/PlusIconSVG.js";
4
- import { TrashIconSVG as m } from "../../../../app/assets/svg/TrashIconSVG.js";
5
- const b = ({
6
- value: a,
7
- canIncrement: s,
8
- onIncrement: r,
9
- onDecrement: t,
10
- onDelete: o
11
- }) => {
12
- const n = a <= 1;
13
- return /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-sm", children: [
14
- n ? /* @__PURE__ */ e(
15
- "button",
16
- {
17
- "aria-label": "Remove item",
18
- onClick: o,
19
- className: "[&_svg_path]:stroke-[var(--main-accent-color)]",
20
- children: /* @__PURE__ */ e(m, {})
21
- }
22
- ) : /* @__PURE__ */ e(
23
- "button",
24
- {
25
- "aria-label": "Decrease",
26
- onClick: t,
27
- className: "[&_svg_path]:stroke-[var(--svg-dark)]",
28
- children: /* @__PURE__ */ e(i, {})
29
- }
30
- ),
31
- /* @__PURE__ */ e("span", { className: "min-w-4 text-center select-none", children: a }),
32
- /* @__PURE__ */ e(
33
- "button",
34
- {
35
- "aria-label": "Increase",
36
- onClick: r,
37
- disabled: !s,
38
- className: "[&_svg_path]:stroke-[var(--svg-dark)] disabled:opacity-40",
39
- children: /* @__PURE__ */ e(l, {})
40
- }
41
- )
42
- ] });
43
- };
44
- export {
45
- b as Counter
46
- };
@@ -1,102 +0,0 @@
1
- import { SwatchesServices as s } from "../../swatches/lib/SwatchesServices.js";
2
- import { ETypeComponent as l } from "../../swatches/model/types.js";
3
- import { EDataInputType as n } from "../utils/types.js";
4
- const i = "UIGrouping";
5
- class f {
6
- static getTransformedData({
7
- dataType: t,
8
- data: e
9
- }) {
10
- switch (t) {
11
- case n.UI:
12
- return this.getMapUIData(e);
13
- case n.DATA_INPUT:
14
- return console.log(n.DATA_INPUT);
15
- case n.DATA_ALL_PRODUCT:
16
- return console.log(n.DATA_ALL_PRODUCT);
17
- default:
18
- throw new Error("Unsupported format");
19
- }
20
- }
21
- // EDataInputType.UI DATA
22
- static getGroupingValue(t) {
23
- if (t)
24
- return t.find((e) => e.name === i);
25
- }
26
- static getAllMaterialValuesKeys(t) {
27
- if (t)
28
- return t.flatMap(
29
- (e) => e.groups.flatMap(
30
- (a) => a.options.filter(
31
- (r) => r.typeComponent === l.MATERIAL
32
- )
33
- ).map((a) => a.optionName)
34
- );
35
- }
36
- // static getMaterialsValuesFromOptions(
37
- // options: IAttributeAsset[],
38
- // ): AttributeValue[] | undefined {
39
- // if (!options.length) return;
40
- // console.log('getMaterialsValuesFromOptions', options);
41
- // return options
42
- // .reduce<any[]>((acc, item) => {
43
- // if (Array.isArray(item.values)) {
44
- // return acc.concat(item.values);
45
- // }
46
- // return acc;
47
- // }, [])
48
- // .sort((a, b) => {
49
- // const nameA = a.name?.toLowerCase() ?? '';
50
- // const nameB = b.name?.toLowerCase() ?? '';
51
- // return nameA.localeCompare(nameB);
52
- // });
53
- // }
54
- // static getMaterialsValuesFromOptions(
55
- // options: IAttributeAsset[],
56
- // ): AttributeValue[] | undefined {
57
- // if (!options.length) return;
58
- // return options
59
- // .reduce<AttributeValue[]>((acc, item) => {
60
- // if (Array.isArray(item.values) && item.values.length) {
61
- // const nameFromMeta =
62
- // item.metadata?.Name ?? item.metadata?.Label ?? 'without_name';
63
- // const valuesWithMeta = item.values.map((v) => ({
64
- // ...v,
65
- // parentName: nameFromMeta, // attach parent metadata.Name
66
- // }));
67
- // acc.push(...valuesWithMeta);
68
- // }
69
- // return acc;
70
- // }, [])
71
- // .sort((a, b) => {
72
- // const nameA = a.name?.toLowerCase() ?? '';
73
- // const nameB = b.name?.toLowerCase() ?? '';
74
- // return nameA.localeCompare(nameB);
75
- // });
76
- // }
77
- static getAllMaterialOptions(t) {
78
- const e = JSON.parse(this.getGroupingValue(t).value);
79
- if (e) {
80
- const a = this.getAllMaterialValuesKeys(e);
81
- if (a?.length) {
82
- const r = t.filter(
83
- (o) => a.includes(o.name)
84
- );
85
- if (r?.length) {
86
- const o = s.getMaterialsValuesFromOptions(
87
- r
88
- );
89
- if (o?.length)
90
- return { allMaterialValues: o, productElementOptions: r };
91
- }
92
- }
93
- }
94
- }
95
- static getMapUIData(t) {
96
- return this.getAllMaterialOptions(t);
97
- }
98
- // EDataInputType.UI DATA
99
- }
100
- export {
101
- f as DataAdapterServices
102
- };
@@ -1,8 +0,0 @@
1
- const A = {
2
- UI: "UI",
3
- DATA_INPUT: "DATA_INPUT",
4
- DATA_ALL_PRODUCT: "DATA_ALL_PRODUCT"
5
- };
6
- export {
7
- A as EDataInputType
8
- };
@@ -1,34 +0,0 @@
1
- import { MOCK_ALL_CATEGORY_SLIDER_ITEM as u } from "../utils/constants.js";
2
- class s {
3
- static getCartTotalCount({ cartItems: e }) {
4
- return e.reduce((r, n) => r + n.count, 0);
5
- }
6
- static getUniqueCategories(e) {
7
- return [...[
8
- ...new Set(e.flatMap((t) => t.categories))
9
- ].map((t, a) => ({
10
- name: t,
11
- value: t,
12
- productId: a + 1,
13
- items: []
14
- })), u].sort(
15
- (t, a) => t.productId - a.productId
16
- );
17
- }
18
- static getCartPreparedOption(e, r) {
19
- if (!e?.length) return [];
20
- const n = r.flatMap((t) => t.items || []);
21
- return e.map((t) => {
22
- const a = n.find(
23
- (o) => o.parentName === t.parentName && o.metadata.label === t.metadata.label
24
- );
25
- return {
26
- ...t,
27
- count: a ? a.count : 1
28
- };
29
- });
30
- }
31
- }
32
- export {
33
- s as MultiProductCartService
34
- };
@@ -1,18 +0,0 @@
1
- import { MOCK_SELECTED_PRODUCT as r } from "../../utils/constants.js";
2
- import { generateRandomProducts as m } from "../../utils/randomList.js";
3
- const P = () => new Promise((e) => {
4
- setTimeout(() => {
5
- e(m(100));
6
- }, 400);
7
- }), i = ({
8
- productId: e,
9
- productName: t
10
- }) => new Promise((o) => {
11
- setTimeout(() => {
12
- o({ ...r, productId: e, name: t });
13
- }, 400);
14
- });
15
- export {
16
- P as getProductListAPI,
17
- i as getSelectedProductAPI
18
- };
@@ -1,83 +0,0 @@
1
- import { createSlice as a } from "../../../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js";
2
- const l = { items: [], activeMultiCartProduct: null };
3
- function p(t, e, c) {
4
- let i = t.items.find((d) => d.productId === e);
5
- return i ? c && !i.name && (i.name = c) : (i = { productId: e, name: c ?? "", items: [] }, t.items.push(i)), i;
6
- }
7
- const m = (t, e) => t.items.findIndex((c) => c.productId === e), u = (t, e, c, i) => e === -1 ? -1 : t.items[e].items.findIndex(
8
- (d) => d.metadata.label === c && d.parentName === i
9
- ), s = a({
10
- name: "multiProduct",
11
- initialState: l,
12
- reducers: {
13
- setCartForProduct(t, e) {
14
- const { productId: c } = e.payload, i = t.items.findIndex((d) => d.productId === c);
15
- i >= 0 ? t.items[i] = e.payload : t.items.push(e.payload);
16
- },
17
- setActiveMultiCartProduct(t, e) {
18
- t.activeMultiCartProduct = e.payload;
19
- },
20
- // setCartItems(
21
- // state,
22
- // action: PayloadAction<{
23
- // productId: number;
24
- // items: ICartItem[];
25
- // name?: string;
26
- // }>,
27
- // ) {
28
- // const { productId, items, name } = action.payload;
29
- // const bucket = ensureProduct(state, productId, name);
30
- // bucket.items = items;
31
- // },
32
- setCartItems(t, e) {
33
- const { productId: c, items: i, name: d } = e.payload;
34
- if (!i || i.length === 0) {
35
- const o = t.items.findIndex((n) => n.productId === c);
36
- o !== -1 && t.items.splice(o, 1);
37
- return;
38
- }
39
- const r = p(t, c, d);
40
- r.items = i;
41
- },
42
- incrementMultiProductItem(t, e) {
43
- const { productId: c, label: i, parentName: d } = e.payload, r = m(t, c), o = u(t, r, i, d);
44
- o !== -1 && (t.items[r].items[o].count += 1);
45
- },
46
- decrementMultiProductItem(t, e) {
47
- const { productId: c, label: i, parentName: d } = e.payload, r = m(t, c), o = u(t, r, i, d);
48
- if (o !== -1) {
49
- const n = t.items[r].items[o];
50
- n.count > 1 && (n.count -= 1);
51
- }
52
- },
53
- removeMultiProductItem(t, e) {
54
- const { productId: c, label: i, parentName: d } = e.payload, r = m(t, c);
55
- if (r === -1) return;
56
- const o = t.items[r].items.filter(
57
- (n) => !(n.metadata.label === i && n.parentName === d)
58
- );
59
- t.items[r].items = o;
60
- },
61
- clear(t) {
62
- t.items = [];
63
- }
64
- }
65
- }), {
66
- setCartForProduct: f,
67
- setCartItems: P,
68
- incrementMultiProductItem: x,
69
- decrementMultiProductItem: C,
70
- removeMultiProductItem: M,
71
- clear: y,
72
- setActiveMultiCartProduct: b
73
- } = s.actions, v = s.reducer;
74
- export {
75
- y as clear,
76
- C as decrementMultiProductItem,
77
- x as incrementMultiProductItem,
78
- v as multiProductCartReducer,
79
- M as removeMultiProductItem,
80
- b as setActiveMultiCartProduct,
81
- f as setCartForProduct,
82
- P as setCartItems
83
- };
@@ -1,7 +0,0 @@
1
- import { createSelector as c } from "../../../../node_modules/reselect/dist/reselect.js";
2
- const o = (t) => t.multiProductCart, a = (t) => t.multiProductCart.items, s = (t) => c(o, (e) => e.items.find((r) => r.productId === t)?.items ?? []), d = (t) => t.multiProductCart.activeMultiCartProduct;
3
- export {
4
- d as getActiveMultiCartProduct,
5
- a as getCartItems,
6
- s as getSelectedMaterials
7
- };
@@ -1,21 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useAppDispatch as i, useAppSelector as e } from "../../../../app/store/store.js";
3
- import { getActiveMultiCartProduct as p, getCartItems as m } from "../../model/selectors.js";
4
- import { setActiveMultiCartProduct as a } from "../../model/multiProductCartSlice.js";
5
- import { Slider as l } from "../../../../shared/ui/Slider/Slider.js";
6
- const C = () => {
7
- const r = i(), o = e(p), c = e(m), d = (s) => {
8
- r(a(s));
9
- };
10
- return /* @__PURE__ */ t("div", { className: "flex items-center gap-4 p-[var(--sm-padding)] border-b border-solid border-[var(--border)]", children: /* @__PURE__ */ t(
11
- l,
12
- {
13
- items: c,
14
- activeId: o?.productId,
15
- onSelect: d
16
- }
17
- ) });
18
- };
19
- export {
20
- C as CartSelectedProductList
21
- };
@@ -1,28 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useRef as a, useEffect as i } from "react";
3
- import u from "react-dom";
4
- const f = ({ isOpen: e, onClose: r, children: d }) => {
5
- const t = a(null);
6
- return i(() => {
7
- const n = (l) => {
8
- t.current && !t.current.contains(l.target) && r();
9
- };
10
- return e && document.addEventListener("mousedown", n), () => {
11
- document.removeEventListener("mousedown", n);
12
- };
13
- }, [e, r]), e ? u.createPortal(
14
- /* @__PURE__ */ o("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/40", children: /* @__PURE__ */ o(
15
- "div",
16
- {
17
- ref: t,
18
- className: `flex h-full flex-col bg-white rounded-sm shadow-lg w-[95%] max-h-[90vh] overflow-hidden transition-all duration-200 max-w-[1100px]\r
19
- `,
20
- children: d
21
- }
22
- ) }),
23
- document.body
24
- ) : null;
25
- };
26
- export {
27
- f as CustomModal
28
- };
@@ -1,27 +0,0 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { ProductElement as t } from "../../../swatches/ui/ProductElement/index.js";
3
- import { Filters as s } from "../../../swatches/ui/Filters/index.js";
4
- const a = () => /* @__PURE__ */ r(
5
- "div",
6
- {
7
- className: `flex flex-col justify-between items-center border-b border-[var(--border)]\r
8
- sm:flex-row\r
9
- `,
10
- children: [
11
- /* @__PURE__ */ e(
12
- t,
13
- {
14
- containerStyles: `flex justify-between items-center gap-2 p-[var(--sm-padding)] w-full text-xs\r
15
- border-b border-[var(--border)]\r
16
- sm:max-w-[360px] sm:text-sm sm:border-none\r
17
- `,
18
- selectStyles: "min-w-[auto] max-w-[154px] sm:max-w-[auto] sm:min-w-[160px] font-normal"
19
- }
20
- ),
21
- /* @__PURE__ */ e(s, { containerStyles: "flex justify-between items-center gap-1 p-[var(--sm-padding)] sm:gap-4" })
22
- ]
23
- }
24
- );
25
- export {
26
- a as FiltersSelectedProductItem
27
- };
@@ -1,60 +0,0 @@
1
- import { jsxs as e, jsx as r, Fragment as l } from "react/jsx-runtime";
2
- import { useMemo as d } from "react";
3
- import { ArrowIconSVG as m } from "../../../../app/assets/svg/ArrowIconSVG.js";
4
- import { useAppDispatch as p, useAppSelector as c } from "../../../../app/store/store.js";
5
- import { setIsOpenMultiProductCart as u, toggleSidebar as h } from "../../../swatches/model/swatchesSlice.js";
6
- import { getActiveMultiCartProduct as f, getSelectedMaterials as g } from "../../model/selectors.js";
7
- import { MultiProductCartService as x } from "../../lib/MultiProductCartServices.js";
8
- import { MAX_SLOTS as t } from "../../../../shared/constants/selectedMaterials.js";
9
- import { CloseIconSVG as b } from "../../../../app/assets/svg/CloseIconSVG.js";
10
- const _ = () => {
11
- const o = p(), s = c(f), a = c(
12
- g(s?.productId || 999)
13
- ), n = d(() => x.getCartTotalCount({
14
- cartItems: a
15
- }), [a]), i = () => {
16
- o(h());
17
- };
18
- return /* @__PURE__ */ e("header", { className: "flex p-[var(--padding)] justify-between items-center border-b border-solid border-[var(--border)] sm:p-[var(--sm-padding)]", children: [
19
- /* @__PURE__ */ e("div", { className: "flex items-center flex-row gap-[4px]", children: [
20
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: [
21
- /* @__PURE__ */ r(
22
- "button",
23
- {
24
- className: "[&_svg_path]:stroke-[var(--main-accent-color)] cursor-pointer",
25
- onClick: () => {
26
- o(u(!1));
27
- },
28
- children: /* @__PURE__ */ r(m, {})
29
- }
30
- ),
31
- /* @__PURE__ */ r("h2", { className: "m-0 text-base leading-[1.6] font-medium ", children: "Your cart" })
32
- ] }),
33
- n >= t ? /* @__PURE__ */ e(l, { children: [
34
- /* @__PURE__ */ e("span", { className: "text-[var(--main-accent-color)] hidden text-xs sm:block", children: [
35
- "(",
36
- t,
37
- ") You reached maximum amount of swatches"
38
- ] }),
39
- /* @__PURE__ */ e("span", { className: "text-[var(--main-accent-color)] block sm:hidden", children: [
40
- "(",
41
- t,
42
- ") Max"
43
- ] })
44
- ] }) : null
45
- ] }),
46
- /* @__PURE__ */ r(
47
- "button",
48
- {
49
- className: `flex justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]\r
50
- border-none cursor-pointer rounded-full\r
51
- [&_svg_path]:stroke-[var(--svg-dark)]`,
52
- onClick: i,
53
- children: /* @__PURE__ */ r(b, { width: 10, height: 10 })
54
- }
55
- )
56
- ] });
57
- };
58
- export {
59
- _ as MultiProductCartHeader
60
- };
@@ -1,71 +0,0 @@
1
- import { jsxs as m, jsx as d } from "react/jsx-runtime";
2
- import { useAppDispatch as h, useAppSelector as n } from "../../../../app/store/store.js";
3
- import { setSelectedMaterials as v } from "../../../swatches/model/swatchesSlice.js";
4
- import { CartPrice as g } from "../../../Cart/ui/CartPrice/CartPrice.js";
5
- import { CustomButton as C } from "../../../../shared/ui/CustomButton/CustomButton.js";
6
- import { MAX_SLOTS as u } from "../../../../shared/constants/selectedMaterials.js";
7
- import { CartSelectedProductList as M } from "../CartSelectedProductList/CartSelectedProductList.js";
8
- import { getActiveMultiCartProduct as P, getCartItems as N, getSelectedMaterials as S } from "../../model/selectors.js";
9
- import { MultiProductCartService as w } from "../../lib/MultiProductCartServices.js";
10
- import { useMemo as y } from "react";
11
- import { decrementMultiProductItem as A, incrementMultiProductItem as D, removeMultiProductItem as j } from "../../model/multiProductCartSlice.js";
12
- import { CartListItem as L } from "../../../Cart/ui/CartListItem/CartListItem.js";
13
- import { MultiProductCartHeader as O } from "../MultiProductCartHeader/MultiProductCartHeader.js";
14
- const K = ({
15
- onSendData: i
16
- }) => {
17
- const l = h(), a = n(P), f = n(N), c = n(
18
- S(a?.productId || 999)
19
- ), p = y(() => w.getCartTotalCount({
20
- cartItems: c
21
- }), [c]), b = (e) => {
22
- const { parentName: r, metadata: s } = e, t = a?.productId, o = s.label;
23
- t && o && r && (l(j({ productId: t, label: o, parentName: r })), l(v({ selectedMaterial: e })));
24
- }, I = (e) => {
25
- const { parentName: r, metadata: s } = e, t = a?.productId, o = s.label;
26
- t && o && r && l(D({ productId: t, label: o, parentName: r }));
27
- }, x = (e) => {
28
- const { parentName: r, metadata: s } = e, t = a?.productId, o = s.label;
29
- t && o && r && l(A({ productId: t, label: o, parentName: r }));
30
- };
31
- return /* @__PURE__ */ m("div", { className: "flex min-h-0 flex-1 flex-col", children: [
32
- /* @__PURE__ */ d(O, {}),
33
- /* @__PURE__ */ d(M, {}),
34
- /* @__PURE__ */ m("div", { className: "flex flex-col h-full min-h-0", children: [
35
- /* @__PURE__ */ d("ul", { className: "flex flex-col gap-3 flex-1 min-h-0 overflow-y-auto py-[var(--sm-padding)] sm:gap-5", children: c?.map((e) => /* @__PURE__ */ d(
36
- L,
37
- {
38
- item: e,
39
- canInc: p < u,
40
- onDelete: b,
41
- onIncrement: I,
42
- onDecrement: x
43
- },
44
- `${e.assetId}/${e.parentName}`
45
- )) }),
46
- /* @__PURE__ */ m(
47
- "div",
48
- {
49
- className: `flex flex-col \r
50
- sm:flex-row sm:w-full sm:justify-between sm:items-center\r
51
- sm:border-t sm:border-solid sm:border-[var(--border)]\r
52
- `,
53
- children: [
54
- /* @__PURE__ */ d("div", { className: "sm:w-[50%] sm:border-r sm:border-solid sm:border-[var(--border)]", children: /* @__PURE__ */ d(g, { containerStyles: "flex flex-col gap-2 text-xs/snug p-[var(--padding)] border-t border-solid border-[var(--border)] sm:gap-3 sm:p-[var(--sm-padding)] sm:border-none" }) }),
55
- /* @__PURE__ */ d("div", { className: "p-[var(--padding)] border-t border-solid border-[var(--border)] shrink-0 sm:w-[50%] sm:border-none", children: /* @__PURE__ */ d(
56
- C,
57
- {
58
- onClick: () => i && i(f),
59
- disabled: p > u + 1,
60
- children: "GO TO SHIPPING"
61
- }
62
- ) })
63
- ]
64
- }
65
- )
66
- ] })
67
- ] });
68
- };
69
- export {
70
- K as MultiProductItemCart
71
- };
@@ -1,19 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useAppDispatch as m, useAppSelector as r } from "../../../../app/store/store.js";
3
- import { getIsOpenMultiCart as d, getSelectedProduct as s } from "../../../swatches/model/selectors.js";
4
- import { toggleSidebar as l } from "../../../swatches/model/swatchesSlice.js";
5
- import { CustomModal as u } from "../CustomModal/CustomModal.js";
6
- import { MultiProductItemCart as n } from "../MultiProductItemCart/MultiProductItemCart.js";
7
- import { ProductList as a } from "../ProductList/ProductList.js";
8
- import { SelectedProductItem as g } from "../SelectedProductItem/SelectedProductItem.js";
9
- const O = ({
10
- onSendData: e
11
- }) => {
12
- const i = m(), p = r(d), c = r(s), o = () => {
13
- i(l());
14
- };
15
- return /* @__PURE__ */ t(u, { isOpen: !0, onClose: o, children: p ? /* @__PURE__ */ t(n, { onSendData: e }) : c ? /* @__PURE__ */ t(g, { onSidebarToggle: o }) : /* @__PURE__ */ t(a, { onSidebarToggle: o }) });
16
- };
17
- export {
18
- O as MultiProductWrapper
19
- };