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,4 +0,0 @@
1
- const o = 5;
2
- export {
3
- o as MAX_SLOTS
4
- };
@@ -1,7 +0,0 @@
1
- const t = {
2
- SWATCH: "swatch",
3
- CART: "cart"
4
- };
5
- export {
6
- t as EActiveTab
7
- };
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Checkbox as t, CheckboxIndicator as a } from "../../../../node_modules/@radix-ui/react-checkbox/dist/index.js";
3
- import { cn as o } from "../../utils/cn.js";
4
- import c from "../../../../node_modules/lucide-react/dist/esm/icons/check.js";
5
- function l({
6
- className: r,
7
- ...i
8
- }) {
9
- return /* @__PURE__ */ e(
10
- t,
11
- {
12
- "data-slot": "checkbox",
13
- className: o(
14
- "bg-white peer border-input dark:bg-input/30 data-[state=checked]:bg-black data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-black data-[state=checked]:border-black focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
15
- r
16
- ),
17
- ...i,
18
- children: /* @__PURE__ */ e(
19
- a,
20
- {
21
- "data-slot": "checkbox-indicator",
22
- className: "flex items-center justify-center text-current transition-none",
23
- children: /* @__PURE__ */ e(c, { className: "size-5" })
24
- }
25
- )
26
- }
27
- );
28
- }
29
- export {
30
- l as Checkbox
31
- };
@@ -1,16 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- const c = ({
3
- children: t,
4
- disabled: o,
5
- ...e
6
- }) => /* @__PURE__ */ s(
7
- "button",
8
- {
9
- className: `w-full bg-[var(--main-accent-color)] text-white py-3 rounded-full font-bold transition-colors duration-300 ${o ? "bg-gray-400 text-gray-200 cursor-not-allowed opacity-70" : "cursor-pointer hover:opacity-90"}`,
10
- ...e,
11
- children: t
12
- }
13
- );
14
- export {
15
- c as CustomButton
16
- };
@@ -1,59 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useRef as u, useLayoutEffect as v, useEffect as l } from "react";
3
- import { createPortal as y } from "react-dom";
4
- import { clsx as w } from "../../../../node_modules/clsx/dist/clsx.js";
5
- import r from "./CustomSidebar.module.scss.js";
6
- import { cn as b } from "../../utils/cn.js";
7
- const k = ({
8
- children: d,
9
- isOpen: e,
10
- setIsOpen: a
11
- }) => {
12
- const c = u(null), f = u(null), n = () => a(!1);
13
- return v(() => {
14
- e && typeof document < "u" && (f.current = document.activeElement);
15
- }, [e]), l(() => {
16
- e ? c.current?.focus() : f.current?.focus?.();
17
- }, [e]), l(() => {
18
- if (!e) return;
19
- const o = (t) => {
20
- t.key === "Escape" && n();
21
- };
22
- return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
23
- }, [e]), l(() => {
24
- if (!e) return;
25
- const o = document.documentElement, t = document.body, m = o.style.overflow, i = t.style.overflow;
26
- return o.style.overflow = "hidden", t.style.overflow = "hidden", () => {
27
- o.style.overflow = m, t.style.overflow = i;
28
- };
29
- }, [e]), e ? y(
30
- /* @__PURE__ */ s(
31
- "div",
32
- {
33
- className: w(r.overlay),
34
- onMouseDown: n,
35
- onTouchStart: n,
36
- children: /* @__PURE__ */ s(
37
- "div",
38
- {
39
- ref: c,
40
- tabIndex: -1,
41
- className: b(
42
- r.panel,
43
- r.right,
44
- e ? r.enter : r.exit,
45
- "bg-[var(--sidebar-bg)]"
46
- ),
47
- onMouseDown: (o) => o.stopPropagation(),
48
- onTouchStart: (o) => o.stopPropagation(),
49
- children: d
50
- }
51
- )
52
- }
53
- ),
54
- document.body
55
- ) : null;
56
- };
57
- export {
58
- k as default
59
- };
@@ -1,13 +0,0 @@
1
- const e = "_overlay_18vc6_1", t = "_panel_18vc6_10", _ = "_enter_18vc6_28", n = "_exit_18vc6_32", c = {
2
- overlay: e,
3
- panel: t,
4
- enter: _,
5
- exit: n
6
- };
7
- export {
8
- c as default,
9
- _ as enter,
10
- n as exit,
11
- e as overlay,
12
- t as panel
13
- };
@@ -1,81 +0,0 @@
1
- import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { Root as f, Portal as g, Content as r, Close as u, Title as d, Overlay as c, Description as m } from "../../../../node_modules/@radix-ui/react-dialog/dist/index.js";
4
- import { cn as s } from "../../utils/cn.js";
5
- import y from "../../../../node_modules/lucide-react/dist/esm/icons/x.js";
6
- const k = f, N = g, p = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
7
- c,
8
- {
9
- ref: t,
10
- className: s(
11
- "fixed inset-0 z-10000 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12
- a
13
- ),
14
- ...e,
15
- onClick: (i) => i.stopPropagation()
16
- }
17
- ));
18
- p.displayName = c.displayName;
19
- const x = l.forwardRef(({ className: a, children: e, ...t }, i) => /* @__PURE__ */ n(N, { container: document.querySelector(".root-app"), children: [
20
- /* @__PURE__ */ o(p, {}),
21
- /* @__PURE__ */ n(
22
- r,
23
- {
24
- ref: i,
25
- className: s(
26
- "z-10001 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] w-full max-w-[calc(100%-2rem)] max-h-[80vh] translate-x-[-50%] translate-y-[-50%] duration-200 overflow-y-auto",
27
- a
28
- ),
29
- ...t,
30
- children: [
31
- e,
32
- /* @__PURE__ */ n(u, { className: "absolute right-4 top-4 cursor-pointer rounded-full bg-gray-200 transition-background hover:bg-gray-300 disabled:pointer-events-none duration-200 p-2", children: [
33
- /* @__PURE__ */ o(y, { className: "h-8 w-8" }),
34
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
35
- ] })
36
- ]
37
- }
38
- )
39
- ] }));
40
- x.displayName = r.displayName;
41
- const h = ({
42
- className: a,
43
- ...e
44
- }) => /* @__PURE__ */ o(
45
- "div",
46
- {
47
- className: s("flex flex-col space-y-1.5 text-left", a),
48
- ...e
49
- }
50
- );
51
- h.displayName = "DialogHeader";
52
- const D = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
53
- d,
54
- {
55
- ref: t,
56
- className: s(
57
- "text-3xl font-semibold leading-none tracking-tight",
58
- a
59
- ),
60
- ...e
61
- }
62
- ));
63
- D.displayName = d.displayName;
64
- const b = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
65
- m,
66
- {
67
- ref: t,
68
- className: s("text-muted-foreground", a),
69
- ...e
70
- }
71
- ));
72
- b.displayName = m.displayName;
73
- export {
74
- k as Dialog,
75
- x as DialogContent,
76
- b as DialogDescription,
77
- h as DialogHeader,
78
- p as DialogOverlay,
79
- N as DialogPortal,
80
- D as DialogTitle
81
- };
@@ -1,27 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- const s = ({ text: o, isActive: r = !1, onClick: n }) => {
3
- const t = () => {
4
- n && n();
5
- };
6
- return /* @__PURE__ */ a(
7
- "div",
8
- {
9
- role: "button",
10
- tabIndex: 0,
11
- onClick: t,
12
- onKeyDown: (e) => {
13
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
14
- },
15
- className: `
16
- flex justify-center items-center max-w-max px-4 py-2 capitalize rounded-full
17
- font-medium text-sm cursor-pointer transition-all duration-[400ms] ease-in-out
18
- outline-none focus:ring-2 focus:ring-[var(--main-accent-color)] focus:ring-offset-2
19
- ${r ? "bg-[var(--main-accent-color)] text-white hover:brightness-90" : "bg-[var(--label-bg)] hover:brightness-95"}
20
- `,
21
- children: o
22
- }
23
- );
24
- };
25
- export {
26
- s as Label
27
- };
@@ -1,36 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import n from "./MDWithAccordion.module.scss.js";
3
- import { Markdown as p } from "../../../../node_modules/react-markdown/lib/index.js";
4
- import l from "../../../../node_modules/rehype-raw/lib/index.js";
5
- function d(r, { openFirst: o = !1 } = {}) {
6
- if (!r) return "";
7
- const s = /~H~~([\s\S]*?)~~\s*~M~~([\s\S]*?)~~/g;
8
- let t = 0;
9
- return r.replace(s, (e, c, a) => {
10
- const m = o && t === 0 ? " open" : "";
11
- return t += 1, `
12
- <details class="${n.mdAccordion}"${m}>
13
- <summary>${String(c).trim()}</summary>
14
- <div class="p-4">
15
- ${String(a).trim()}
16
- </div>
17
- </details>`;
18
- });
19
- }
20
- function A({
21
- children: r,
22
- className: o = "",
23
- openFirst: s = !1
24
- }) {
25
- const e = d(typeof r == "string" ? r : "", { openFirst: s });
26
- return /* @__PURE__ */ i(
27
- "div",
28
- {
29
- className: ["prose", n.prose, o].filter(Boolean).join(" "),
30
- children: /* @__PURE__ */ i(p, { rehypePlugins: [l], children: e })
31
- }
32
- );
33
- }
34
- export {
35
- A as default
36
- };
@@ -1,9 +0,0 @@
1
- const o = "_prose_1l8lv_1", c = "_mdAccordion_1l8lv_16", s = {
2
- prose: o,
3
- mdAccordion: c
4
- };
5
- export {
6
- s as default,
7
- c as mdAccordion,
8
- o as prose
9
- };
@@ -1,36 +0,0 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { AttributeHelper as m } from "../../../features/swatches/lib/AttributeHelper.js";
3
- import { ImageGridZoom as n } from "../../../features/swatches/ui/ImageGridZoom/ImageGridZoom.js";
4
- import { CloseIconSVG as d } from "../../../app/assets/svg/CloseIconSVG.js";
5
- import { HexGridZoom as a } from "../../../features/swatches/ui/HexGridZoom/HexGridZoom.js";
6
- const b = "w-16 h-16 bg-[var(--sidebar-b)] border border-solid border-[var(--border)] rounded-sm aspect-square overflow-hidden transition", g = ({
7
- val: e,
8
- className: o,
9
- isShowDeleteIcon: i = !1,
10
- handleSelect: t
11
- }) => /* @__PURE__ */ s(
12
- "button",
13
- {
14
- onClick: () => {
15
- t && t(e);
16
- },
17
- className: `relative ${o || b}`,
18
- "aria-label": `Selected swatch ${e.name ?? e.assetId}`,
19
- title: "Click to remove",
20
- children: [
21
- m.getImage(e) ? /* @__PURE__ */ r(n, { item: e }) : /* @__PURE__ */ r(a, { item: e }),
22
- i ? /* @__PURE__ */ r(
23
- "div",
24
- {
25
- className: `absolute top-0 right-0 m-2 w-[16px] h-[16px] flex justify-center items-center\r
26
- bg-[var(--background-grey)] rounded-2xl border-none pointer-events-none`,
27
- children: /* @__PURE__ */ r(d, { className: "w-2 h-2 stroke-[var(--svg-dark)]" })
28
- }
29
- ) : null
30
- ]
31
- },
32
- e.assetId
33
- );
34
- export {
35
- g as MaterialItem
36
- };
@@ -1,150 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { Root as S, Trigger as j, Content as L } from "../../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { PopoverTooltip as O } from "../PopoverTooltip/PopoverTooltip.js";
5
- import { cn as f } from "../../utils/cn.js";
6
- import { Checkbox as R } from "../Checkbox/Checkbox.js";
7
- import D from "../../../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
8
- import z from "../../../../node_modules/lucide-react/dist/esm/icons/x.js";
9
- const P = i.forwardRef(
10
- ({
11
- options: u,
12
- values: a,
13
- onValueChange: c,
14
- placeholder: d = "Select options...",
15
- className: y,
16
- dropdownWidth: h,
17
- align: N = "start",
18
- getTooltipByMaterialAndSection: x,
19
- sectionName: w
20
- }, C) => {
21
- const [l, m] = i.useState(!1), v = i.useRef(null);
22
- i.useEffect(() => {
23
- if (!l) return;
24
- const e = (r) => {
25
- const b = r.target, p = v.current;
26
- p && (p.contains(b) || b === p) || m(!1);
27
- }, n = (r) => {
28
- r.key === "Escape" && m(!1);
29
- };
30
- return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), document.addEventListener("keydown", n), () => {
31
- window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e), document.removeEventListener("keydown", n);
32
- };
33
- }, [l]);
34
- const g = (e, n) => {
35
- c(n ? [...a, e] : a.filter((r) => r !== e));
36
- }, k = () => {
37
- c([]);
38
- }, s = a.length, E = s === 0 ? d : s === 1 ? u.find((e) => e.value === a[0])?.label || `${d} selected` : /* @__PURE__ */ o("div", { className: "flex flex-row items-center justify-between w-full", children: [
39
- /* @__PURE__ */ t("span", { className: "truncate", children: d }),
40
- /* @__PURE__ */ t("span", { className: "text-[0.8rem] text-white bg-[var(--main-accent-color)] px-1.5 py-0.5 ml-2 rounded-full whitespace-nowrap", children: s })
41
- ] });
42
- return /* @__PURE__ */ o(S, { open: l, onOpenChange: m, children: [
43
- /* @__PURE__ */ o(
44
- j,
45
- {
46
- ref: C,
47
- className: f(
48
- "flex flex-row items-center justify-between rounded-full border px-3 sm:px-5 py-2 bg-white cursor-pointer hover:bg-gray-50 data-[state=open]:border-primary hover:border-primary focus:border-primary",
49
- y
50
- ),
51
- children: [
52
- /* @__PURE__ */ t("div", { className: "w-full text-[0.9rem] truncate text-left", children: E }),
53
- /* @__PURE__ */ t(
54
- D,
55
- {
56
- className: f(
57
- "ml-2 h-4 w-4 transition-transform",
58
- l && "rotate-180"
59
- )
60
- }
61
- )
62
- ]
63
- }
64
- ),
65
- /* @__PURE__ */ o(
66
- L,
67
- {
68
- ref: v,
69
- className: f(
70
- "bg-white border rounded-lg shadow-lg z-50 max-h-80 overflow-y-auto overscroll-behavior-y-contain touch-pan-y p-2",
71
- h || "w-[var(--radix-popover-trigger-width)]"
72
- ),
73
- align: N,
74
- sideOffset: 4,
75
- style: {
76
- WebkitOverflowScrolling: "touch",
77
- overscrollBehavior: "contain"
78
- },
79
- onTouchStart: (e) => {
80
- e.stopPropagation();
81
- },
82
- onTouchMove: (e) => {
83
- e.stopPropagation();
84
- },
85
- onWheel: (e) => {
86
- e.stopPropagation();
87
- },
88
- children: [
89
- s > 0 && /* @__PURE__ */ t("div", { className: "flex flex-row gap-2 items-center justify-between px-2 py-1 mb-2 border-b", children: /* @__PURE__ */ o(
90
- "button",
91
- {
92
- onClick: k,
93
- className: "text-[1.2rem] text-black hover:text-primary transition-color cursor-pointer duration-200 flex flex-row items-center gap-1",
94
- children: [
95
- /* @__PURE__ */ t(z, { className: "h-3 w-3" }),
96
- "Clear all"
97
- ]
98
- }
99
- ) }),
100
- /* @__PURE__ */ t("div", { className: "flex flex-col gap-1", children: u.map((e) => {
101
- const n = a.includes(e.value);
102
- return /* @__PURE__ */ o(
103
- "div",
104
- {
105
- className: "flex flex-row items-start gap-2 px-2 py-1 hover:bg-gray-50 rounded transition-background duration-300 cursor-pointer",
106
- onClick: () => g(e.value, !n),
107
- children: [
108
- /* @__PURE__ */ t(
109
- R,
110
- {
111
- checked: n,
112
- className: "size-6",
113
- onCheckedChange: (r) => g(e.value, r)
114
- }
115
- ),
116
- /* @__PURE__ */ o("div", { className: "flex-1 flex flex-row items-start justify-between", children: [
117
- /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
118
- /* @__PURE__ */ t("span", { className: "text-[1.2rem]", children: e.label }),
119
- (() => {
120
- if (!x || !w)
121
- return null;
122
- const r = x(
123
- e.value,
124
- w
125
- );
126
- return r && r.Description ? /* @__PURE__ */ t(
127
- O,
128
- {
129
- tooltipData: r?.Description
130
- }
131
- ) : null;
132
- })()
133
- ] }),
134
- e.count !== void 0 && /* @__PURE__ */ t("span", { className: "text-[1rem] text-gray-800 bg-gray-100 px-2 py-0.5 ml-2 rounded-full whitespace-nowrap", children: e.count })
135
- ] })
136
- ]
137
- },
138
- e.value
139
- );
140
- }) })
141
- ]
142
- }
143
- )
144
- ] });
145
- }
146
- );
147
- P.displayName = "MultiSelect";
148
- export {
149
- P as MultiSelect
150
- };
@@ -1,35 +0,0 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- function h(e) {
3
- return /* @__PURE__ */ i(
4
- "svg",
5
- {
6
- width: "12",
7
- height: "12",
8
- viewBox: "0 0 12 12",
9
- fill: "none",
10
- xmlns: "http://www.w3.org/2000/svg",
11
- "aria-hidden": !0,
12
- className: "size-5",
13
- ...e,
14
- children: [
15
- /* @__PURE__ */ t(
16
- "rect",
17
- {
18
- x: "0.666667",
19
- y: "0.666667",
20
- width: "10.6667",
21
- height: "10.6667",
22
- rx: "5.33333",
23
- stroke: "#B1B1B1",
24
- strokeWidth: "1.33333"
25
- }
26
- ),
27
- /* @__PURE__ */ t("circle", { cx: "6.00065", cy: "3.33268", r: "0.666667", fill: "#B1B1B1" }),
28
- /* @__PURE__ */ t("rect", { x: "5.33398", y: "5.33398", width: "1.33333", height: "4", fill: "#B1B1B1" })
29
- ]
30
- }
31
- );
32
- }
33
- export {
34
- h as default
35
- };
@@ -1,37 +0,0 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
- import { Popover as m, PopoverTrigger as p, PopoverContent as s } from "../../../../node_modules/@radix-ui/react-popover/dist/index.js";
3
- import a from "../Markdown/MDWithAccordion.js";
4
- import d from "./InfoIcon.js";
5
- import e from "./PopoverTooltip.module.scss.js";
6
- const v = ({
7
- tooltipData: r,
8
- openFirst: t = !1,
9
- trigger: i
10
- }) => {
11
- if (!r?.trim()) return null;
12
- const n = (l) => {
13
- l.stopPropagation();
14
- };
15
- return /* @__PURE__ */ c(m, { children: [
16
- /* @__PURE__ */ o(p, { asChild: !0, children: i ?? /* @__PURE__ */ o(
17
- "button",
18
- {
19
- className: e.iconBtn,
20
- "aria-label": "Open tooltip",
21
- onClick: n,
22
- children: /* @__PURE__ */ o(d, { className: e.iconSvg })
23
- }
24
- ) }),
25
- /* @__PURE__ */ o(
26
- s,
27
- {
28
- className: "bg-[#000] text-white text-[1.1rem] leading-[1.45] w-auto max-w-[300px]",
29
- side: "top",
30
- children: /* @__PURE__ */ o(a, { openFirst: t, children: r })
31
- }
32
- )
33
- ] });
34
- };
35
- export {
36
- v as PopoverTooltip
37
- };
@@ -1,4 +0,0 @@
1
- const s = {};
2
- export {
3
- s as default
4
- };
@@ -1,117 +0,0 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { useRef as k, useState as d, useCallback as x, useEffect as y } from "react";
3
- import { Label as L } from "../Label/Label.js";
4
- const R = ({
5
- items: h,
6
- activeId: f,
7
- onSelect: u,
8
- className: g = "",
9
- stepRatio: m = 0.8
10
- }) => {
11
- const n = k(null), [s, b] = d(!1), [i, p] = d(!1), o = x(() => {
12
- const e = n.current;
13
- if (!e) return;
14
- const { scrollLeft: t, scrollWidth: l, clientWidth: v } = e, w = l - v;
15
- b(t > 0), p(t < w - 1);
16
- }, []);
17
- y(() => {
18
- const e = n.current;
19
- if (!e) return;
20
- o();
21
- const t = new ResizeObserver(() => o());
22
- t.observe(e);
23
- const l = () => o();
24
- return e.addEventListener("scroll", l, { passive: !0 }), () => {
25
- t.disconnect(), e.removeEventListener("scroll", l);
26
- };
27
- }, [o]);
28
- const c = (e) => {
29
- const t = n.current;
30
- if (!t) return;
31
- const l = t.clientWidth * m * (e === "left" ? -1 : 1);
32
- t.scrollBy({ left: l, behavior: "smooth" });
33
- };
34
- return /* @__PURE__ */ a(
35
- "div",
36
- {
37
- className: `flex items-center gap-2 w-full ${g}`,
38
- role: "region",
39
- "aria-label": "Category slider",
40
- children: [
41
- /* @__PURE__ */ r(
42
- "button",
43
- {
44
- type: "button",
45
- "aria-label": "Scroll left",
46
- disabled: !s,
47
- onClick: () => c("left"),
48
- className: `flex-shrink-0 h-8 w-8 rounded-full flex items-center justify-center shadow
49
- ${s ? "bg-white hover:bg-gray-100" : "bg-gray-200 opacity-60 cursor-not-allowed"}`,
50
- children: /* @__PURE__ */ r("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ r(
51
- "path",
52
- {
53
- d: "M15 18l-6-6 6-6",
54
- fill: "none",
55
- stroke: "currentColor",
56
- strokeWidth: "2",
57
- strokeLinecap: "round"
58
- }
59
- ) })
60
- }
61
- ),
62
- /* @__PURE__ */ r(
63
- "div",
64
- {
65
- ref: n,
66
- className: `\r
67
- no-scrollbar flex-1 overflow-hidden scroll-smooth\r
68
- `,
69
- style: {
70
- WebkitOverflowScrolling: "touch",
71
- paddingLeft: "0.5rem",
72
- paddingRight: "0.5rem"
73
- },
74
- children: /* @__PURE__ */ a("div", { className: "flex gap-3 sm:gap-4 py-2 min-w-min", children: [
75
- h.map((e) => {
76
- const t = e.productId, l = f === t;
77
- return /* @__PURE__ */ r("div", { className: "shrink-0", children: /* @__PURE__ */ r(
78
- L,
79
- {
80
- text: e.name,
81
- isActive: l,
82
- onClick: () => u(e)
83
- }
84
- ) }, t);
85
- }),
86
- /* @__PURE__ */ r("div", { "aria-hidden": !0, className: "shrink-0 w-1 sm:w-4" })
87
- ] })
88
- }
89
- ),
90
- /* @__PURE__ */ r(
91
- "button",
92
- {
93
- type: "button",
94
- "aria-label": "Scroll right",
95
- disabled: !i,
96
- onClick: () => c("right"),
97
- className: `flex-shrink-0 h-8 w-8 rounded-full flex items-center justify-center shadow
98
- ${i ? "bg-black text-white hover:brightness-110" : "bg-gray-200 text-gray-500 opacity-60 cursor-not-allowed"}`,
99
- children: /* @__PURE__ */ r("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ r(
100
- "path",
101
- {
102
- d: "M9 6l6 6-6 6",
103
- fill: "none",
104
- stroke: "currentColor",
105
- strokeWidth: "2",
106
- strokeLinecap: "round"
107
- }
108
- ) })
109
- }
110
- )
111
- ]
112
- }
113
- );
114
- };
115
- export {
116
- R as Slider
117
- };