hasting-swatchcart-module 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/dist/assets/SwatchesModule.css +1 -0
  2. package/dist/components/SwatchesModule.js +23440 -24
  3. package/dist/components/Test.js +5 -0
  4. package/dist/lib/components/Test.d.ts +1 -0
  5. package/dist/main.js +0 -1
  6. package/dist/{src/shared/constants/props.js → rootReducer-BqfJd5QI.js} +1913 -3
  7. package/dist/store/LibraryProvider.js +3 -4
  8. package/dist/store/rootReducer.js +2 -10
  9. package/dist/store/store.js +5 -15
  10. package/dist/store-BZ_1BK_I.js +382 -0
  11. package/package.json +1 -1
  12. package/dist/_virtual/_commonjsHelpers.js +0 -6
  13. package/dist/_virtual/index.js +0 -7
  14. package/dist/_virtual/index2.js +0 -7
  15. package/dist/_virtual/index3.js +0 -4
  16. package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
  17. package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
  18. package/dist/_virtual/utilities.js +0 -4
  19. package/dist/_virtual/with-selector.js +0 -5
  20. package/dist/_virtual/with-selector2.js +0 -4
  21. package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
  22. package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
  23. package/dist/assets/styles/index.css +0 -0
  24. package/dist/main.d.ts +0 -1
  25. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  26. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  27. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  28. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  29. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  30. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  31. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  32. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  33. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  34. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  35. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
  36. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  37. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  38. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  39. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  40. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
  41. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  42. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  43. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  44. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  45. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  46. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  47. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  48. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  49. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  50. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  51. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  52. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
  53. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
  54. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
  55. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  56. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  57. package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  58. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  59. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  60. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  61. package/dist/node_modules/bail/index.js +0 -7
  62. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  63. package/dist/node_modules/comma-separated-tokens/index.js +0 -20
  64. package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
  65. package/dist/node_modules/devlop/lib/default.js +0 -8
  66. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
  67. package/dist/node_modules/extend/index.js +0 -43
  68. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  69. package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  70. package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  71. package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
  72. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
  73. package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  74. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
  75. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
  76. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
  77. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
  78. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
  79. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
  80. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  81. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  82. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
  83. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
  84. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
  85. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
  86. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
  87. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
  88. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
  89. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
  90. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
  91. package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
  92. package/dist/node_modules/hastscript/lib/create-h.js +0 -112
  93. package/dist/node_modules/hastscript/lib/index.js +0 -8
  94. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  95. package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
  96. package/dist/node_modules/html-void-elements/index.js +0 -25
  97. package/dist/node_modules/immer/dist/immer.js +0 -467
  98. package/dist/node_modules/inline-style-parser/index.js +0 -93
  99. package/dist/node_modules/is-plain-obj/index.js +0 -9
  100. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
  101. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
  102. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  103. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
  104. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
  105. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
  106. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
  107. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
  108. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
  109. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
  110. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
  111. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
  112. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
  113. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
  114. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
  115. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
  116. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
  117. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
  118. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
  119. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
  120. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
  121. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
  122. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
  123. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
  124. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
  125. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
  126. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
  127. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
  128. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
  129. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
  130. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
  131. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
  132. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
  133. package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
  134. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
  135. package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
  136. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
  137. package/dist/node_modules/micromark/lib/constructs.js +0 -85
  138. package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
  139. package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
  140. package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
  141. package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
  142. package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
  143. package/dist/node_modules/micromark/lib/parse.js +0 -32
  144. package/dist/node_modules/micromark/lib/postprocess.js +0 -9
  145. package/dist/node_modules/micromark/lib/preprocess.js +0 -39
  146. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
  147. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
  148. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
  149. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
  150. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
  151. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
  152. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
  153. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
  154. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
  155. package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
  156. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
  157. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
  158. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
  159. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
  160. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
  161. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
  162. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
  163. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
  164. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
  165. package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
  166. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
  167. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
  168. package/dist/node_modules/micromark-factory-destination/index.js +0 -31
  169. package/dist/node_modules/micromark-factory-label/index.js +0 -28
  170. package/dist/node_modules/micromark-factory-space/index.js +0 -15
  171. package/dist/node_modules/micromark-factory-title/index.js +0 -26
  172. package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
  173. package/dist/node_modules/micromark-util-character/index.js +0 -39
  174. package/dist/node_modules/micromark-util-chunked/index.js +0 -16
  175. package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
  176. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
  177. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
  178. package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
  179. package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
  180. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
  181. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
  182. package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
  183. package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
  184. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
  185. package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
  186. package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
  187. package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
  188. package/dist/node_modules/parse5/dist/common/html.js +0 -250
  189. package/dist/node_modules/parse5/dist/common/token.js +0 -14
  190. package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
  191. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  192. package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
  193. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  194. package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
  195. package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  196. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  197. package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  198. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  199. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
  200. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  201. package/dist/node_modules/property-information/index.js +0 -12
  202. package/dist/node_modules/property-information/lib/aria.js +0 -61
  203. package/dist/node_modules/property-information/lib/find.js +0 -33
  204. package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
  205. package/dist/node_modules/property-information/lib/html.js +0 -368
  206. package/dist/node_modules/property-information/lib/normalize.js +0 -6
  207. package/dist/node_modules/property-information/lib/svg.js +0 -566
  208. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  209. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  210. package/dist/node_modules/property-information/lib/util/create.js +0 -19
  211. package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
  212. package/dist/node_modules/property-information/lib/util/info.js +0 -28
  213. package/dist/node_modules/property-information/lib/util/merge.js +0 -10
  214. package/dist/node_modules/property-information/lib/util/schema.js +0 -21
  215. package/dist/node_modules/property-information/lib/util/types.js +0 -14
  216. package/dist/node_modules/property-information/lib/xlink.js +0 -19
  217. package/dist/node_modules/property-information/lib/xml.js +0 -11
  218. package/dist/node_modules/property-information/lib/xmlns.js +0 -11
  219. package/dist/node_modules/react-markdown/lib/index.js +0 -102
  220. package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
  221. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  222. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  223. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  224. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  225. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  226. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  227. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  228. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  229. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  230. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  231. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  232. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  233. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  234. package/dist/node_modules/redux/dist/redux.js +0 -258
  235. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
  236. package/dist/node_modules/rehype-raw/lib/index.js +0 -12
  237. package/dist/node_modules/remark-parse/lib/index.js +0 -19
  238. package/dist/node_modules/remark-rehype/lib/index.js +0 -18
  239. package/dist/node_modules/reselect/dist/reselect.js +0 -244
  240. package/dist/node_modules/space-separated-tokens/index.js +0 -11
  241. package/dist/node_modules/style-to-js/cjs/index.js +0 -20
  242. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
  243. package/dist/node_modules/style-to-object/cjs/index.js +0 -28
  244. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
  245. package/dist/node_modules/trim-lines/index.js +0 -28
  246. package/dist/node_modules/trough/lib/index.js +0 -60
  247. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  248. package/dist/node_modules/unified/lib/callable-instance.js +0 -25
  249. package/dist/node_modules/unified/lib/index.js +0 -529
  250. package/dist/node_modules/unist-util-is/lib/index.js +0 -84
  251. package/dist/node_modules/unist-util-position/lib/index.js +0 -23
  252. package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
  253. package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
  254. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  255. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  256. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  257. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  258. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  259. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  260. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  261. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
  262. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
  263. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
  264. package/dist/node_modules/vfile/lib/index.js +0 -406
  265. package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
  266. package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
  267. package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
  268. package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
  269. package/dist/node_modules/vfile-location/lib/index.js +0 -42
  270. package/dist/node_modules/vfile-message/lib/index.js +0 -91
  271. package/dist/node_modules/web-namespaces/index.js +0 -11
  272. package/dist/node_modules/zwitch/index.js +0 -18
  273. package/dist/src/app/assets/images/product_thumb.png.js +0 -4
  274. package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
  275. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
  276. package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
  277. package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
  278. package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
  279. package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
  280. package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
  281. package/dist/src/app/store/rootReducer.js +0 -12
  282. package/dist/src/app/store/store.js +0 -14
  283. package/dist/src/features/Cart/lib/CartCervices.js +0 -8
  284. package/dist/src/features/Cart/model/cartSlice.js +0 -58
  285. package/dist/src/features/Cart/model/selectors.js +0 -18
  286. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
  287. package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
  288. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
  289. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
  290. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
  291. package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
  292. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
  293. package/dist/src/features/DataAdapter/utils/types.js +0 -8
  294. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
  295. package/dist/src/features/MultiProduct/model/API/api.js +0 -18
  296. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
  297. package/dist/src/features/MultiProduct/model/selectors.js +0 -7
  298. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
  299. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
  300. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
  301. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
  302. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
  303. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
  304. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
  305. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
  306. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
  307. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
  308. package/dist/src/features/MultiProduct/utils/constants.js +0 -16
  309. package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
  310. package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
  311. package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
  312. package/dist/src/features/swatches/model/selectors.js +0 -12
  313. package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
  314. package/dist/src/features/swatches/model/thunks.js +0 -22
  315. package/dist/src/features/swatches/model/types.js +0 -6
  316. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
  317. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
  318. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
  319. package/dist/src/features/swatches/ui/Filters/index.js +0 -12
  320. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
  321. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
  322. package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
  323. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
  324. package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
  325. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
  326. package/dist/src/features/swatches/ui/Swatches.js +0 -51
  327. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
  328. package/dist/src/features/swatches/utils/constants.js +0 -8
  329. package/dist/src/shared/constants/selectedMaterials.js +0 -4
  330. package/dist/src/shared/types/activeTab.js +0 -7
  331. package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
  332. package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
  333. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
  334. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
  335. package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
  336. package/dist/src/shared/ui/Label/Label.js +0 -27
  337. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
  338. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
  339. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
  340. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
  341. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
  342. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
  343. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
  344. package/dist/src/shared/ui/Slider/Slider.js +0 -117
  345. package/dist/src/shared/utils/cn.js +0 -8
  346. package/dist/src/shared/utils/uniqueList.js +0 -4
  347. /package/dist/{components → lib/components}/SwatchesModule.d.ts +0 -0
  348. /package/dist/{store → lib/store}/LibraryProvider.d.ts +0 -0
  349. /package/dist/{store → lib/store}/rootReducer.d.ts +0 -0
  350. /package/dist/{store → lib/store}/store.d.ts +0 -0
  351. /package/dist/{store → lib/store}/withStore.d.ts +0 -0
@@ -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
- };
@@ -1,8 +0,0 @@
1
- import { clsx as o } from "../../../node_modules/clsx/dist/clsx.js";
2
- import { twMerge as t } from "../../../node_modules/tailwind-merge/dist/bundle-mjs.js";
3
- function n(...r) {
4
- return t(o(r));
5
- }
6
- export {
7
- n as cn
8
- };
@@ -1,4 +0,0 @@
1
- const r = (e) => Array.from(new Set(e));
2
- export {
3
- r as uniqueList
4
- };
File without changes
File without changes
File without changes
File without changes