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,136 +0,0 @@
1
- function c() {
2
- return typeof window < "u";
3
- }
4
- function u(t) {
5
- return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
- }
7
- function i(t) {
8
- var e;
9
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
- }
11
- function N(t) {
12
- var e;
13
- return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
14
- }
15
- function p(t) {
16
- return c() ? t instanceof Node || t instanceof i(t).Node : !1;
17
- }
18
- function m(t) {
19
- return c() ? t instanceof Element || t instanceof i(t).Element : !1;
20
- }
21
- function w(t) {
22
- return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
- }
24
- function f(t) {
25
- return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
- }
27
- const E = /* @__PURE__ */ new Set(["inline", "contents"]);
28
- function y(t) {
29
- const {
30
- overflow: e,
31
- overflowX: n,
32
- overflowY: o,
33
- display: r
34
- } = S(t);
35
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
36
- }
37
- const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
- function A(t) {
39
- return T.has(u(t));
40
- }
41
- const v = [":popover-open", ":modal"];
42
- function L(t) {
43
- return v.some((e) => {
44
- try {
45
- return t.matches(e);
46
- } catch {
47
- return !1;
48
- }
49
- });
50
- }
51
- const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
52
- function V(t) {
53
- const e = O(), n = m(t) ? S(t) : t;
54
- return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
55
- }
56
- function B(t) {
57
- let e = s(t);
58
- for (; w(e) && !h(e); ) {
59
- if (V(e))
60
- return e;
61
- if (L(e))
62
- return null;
63
- e = s(e);
64
- }
65
- return null;
66
- }
67
- function O() {
68
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
- }
70
- const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
- function h(t) {
72
- return R.has(u(t));
73
- }
74
- function S(t) {
75
- return i(t).getComputedStyle(t);
76
- }
77
- function F(t) {
78
- return m(t) ? {
79
- scrollLeft: t.scrollLeft,
80
- scrollTop: t.scrollTop
81
- } : {
82
- scrollLeft: t.scrollX,
83
- scrollTop: t.scrollY
84
- };
85
- }
86
- function s(t) {
87
- if (u(t) === "html")
88
- return t;
89
- const e = (
90
- // Step into the shadow DOM of the parent of a slotted node.
91
- t.assignedSlot || // DOM Element detected.
92
- t.parentNode || // ShadowRoot detected.
93
- f(t) && t.host || // Fallback.
94
- N(t)
95
- );
96
- return f(e) ? e.host : e;
97
- }
98
- function b(t) {
99
- const e = s(t);
100
- return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
101
- }
102
- function d(t, e, n) {
103
- var o;
104
- e === void 0 && (e = []), n === void 0 && (n = !0);
105
- const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
106
- if (g) {
107
- const a = _(l);
108
- return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
109
- }
110
- return e.concat(r, d(r, [], n));
111
- }
112
- function _(t) {
113
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
114
- }
115
- export {
116
- S as getComputedStyle,
117
- B as getContainingBlock,
118
- N as getDocumentElement,
119
- _ as getFrameElement,
120
- b as getNearestOverflowAncestor,
121
- u as getNodeName,
122
- F as getNodeScroll,
123
- d as getOverflowAncestors,
124
- s as getParentNode,
125
- i as getWindow,
126
- V as isContainingBlock,
127
- m as isElement,
128
- w as isHTMLElement,
129
- h as isLastTraversableNode,
130
- p as isNode,
131
- y as isOverflowElement,
132
- f as isShadowRoot,
133
- A as isTableElement,
134
- L as isTopLayer,
135
- O as isWebKit
136
- };
@@ -1,130 +0,0 @@
1
- const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
2
- x: t,
3
- y: t
4
- }), h = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- }, x = {
10
- start: "end",
11
- end: "start"
12
- };
13
- function R(t, e, n) {
14
- return p(t, m(e, n));
15
- }
16
- function T(t, e) {
17
- return typeof t == "function" ? t(e) : t;
18
- }
19
- function g(t) {
20
- return t.split("-")[0];
21
- }
22
- function a(t) {
23
- return t.split("-")[1];
24
- }
25
- function b(t) {
26
- return t === "x" ? "y" : "x";
27
- }
28
- function d(t) {
29
- return t === "y" ? "height" : "width";
30
- }
31
- const A = /* @__PURE__ */ new Set(["top", "bottom"]);
32
- function P(t) {
33
- return A.has(g(t)) ? "y" : "x";
34
- }
35
- function y(t) {
36
- return b(P(t));
37
- }
38
- function k(t, e, n) {
39
- n === void 0 && (n = !1);
40
- const r = a(t), i = y(t), o = d(i);
41
- let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
42
- return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
43
- }
44
- function q(t) {
45
- const e = f(t);
46
- return [s(t), e, s(e)];
47
- }
48
- function s(t) {
49
- return t.replace(/start|end/g, (e) => x[e]);
50
- }
51
- const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
52
- function S(t, e, n) {
53
- switch (t) {
54
- case "top":
55
- case "bottom":
56
- return n ? e ? l : u : e ? u : l;
57
- case "left":
58
- case "right":
59
- return e ? M : O;
60
- default:
61
- return [];
62
- }
63
- }
64
- function z(t, e, n, r) {
65
- const i = a(t);
66
- let o = S(g(t), n === "start", r);
67
- return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
68
- }
69
- function f(t) {
70
- return t.replace(/left|right|bottom|top/g, (e) => h[e]);
71
- }
72
- function w(t) {
73
- return {
74
- top: 0,
75
- right: 0,
76
- bottom: 0,
77
- left: 0,
78
- ...t
79
- };
80
- }
81
- function B(t) {
82
- return typeof t != "number" ? w(t) : {
83
- top: t,
84
- right: t,
85
- bottom: t,
86
- left: t
87
- };
88
- }
89
- function D(t) {
90
- const {
91
- x: e,
92
- y: n,
93
- width: r,
94
- height: i
95
- } = t;
96
- return {
97
- width: r,
98
- height: i,
99
- top: n,
100
- left: e,
101
- right: e + r,
102
- bottom: n + i,
103
- x: e,
104
- y: n
105
- };
106
- }
107
- export {
108
- R as clamp,
109
- E as createCoords,
110
- T as evaluate,
111
- w as expandPaddingObject,
112
- L as floor,
113
- a as getAlignment,
114
- y as getAlignmentAxis,
115
- k as getAlignmentSides,
116
- d as getAxisLength,
117
- q as getExpandedPlacements,
118
- s as getOppositeAlignmentPlacement,
119
- b as getOppositeAxis,
120
- z as getOppositeAxisPlacements,
121
- f as getOppositePlacement,
122
- B as getPaddingObject,
123
- g as getSide,
124
- P as getSideAxis,
125
- p as max,
126
- m as min,
127
- D as rectToClientRect,
128
- C as round,
129
- j as sides
130
- };
@@ -1,9 +0,0 @@
1
- function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
2
- return function(e) {
3
- if (n?.(e), t === !1 || !e.defaultPrevented)
4
- return r?.(e);
5
- };
6
- }
7
- export {
8
- f as composeEventHandlers
9
- };
@@ -1,24 +0,0 @@
1
- import * as n from "react";
2
- import { Primitive as p } from "../../react-primitive/dist/index.js";
3
- import { jsx as o } from "react/jsx-runtime";
4
- var v = "Arrow", e = n.forwardRef((r, i) => {
5
- const { children: t, width: a = 10, height: s = 5, ...m } = r;
6
- return /* @__PURE__ */ o(
7
- p.svg,
8
- {
9
- ...m,
10
- ref: i,
11
- width: a,
12
- height: s,
13
- viewBox: "0 0 30 10",
14
- preserveAspectRatio: "none",
15
- children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
16
- }
17
- );
18
- });
19
- e.displayName = v;
20
- var h = e;
21
- export {
22
- e as Arrow,
23
- h as Root
24
- };
@@ -1,251 +0,0 @@
1
- import * as s from "react";
2
- import { useComposedRefs as B } from "../../react-compose-refs/dist/index.js";
3
- import { createContextScope as L } from "../../react-context/dist/index.js";
4
- import { composeEventHandlers as S } from "../../primitive/dist/index.js";
5
- import { useControllableState as O } from "../../react-use-controllable-state/dist/index.js";
6
- import { usePrevious as j } from "../../react-use-previous/dist/index.js";
7
- import { useSize as H } from "../../react-use-size/dist/index.js";
8
- import { Presence as z } from "../../react-presence/dist/index.js";
9
- import { Primitive as P } from "../../react-primitive/dist/index.js";
10
- import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
11
- var g = "Checkbox", [U] = L(g), [X, E] = U(g);
12
- function J(t) {
13
- const {
14
- __scopeCheckbox: a,
15
- checked: c,
16
- children: u,
17
- defaultChecked: r,
18
- disabled: e,
19
- form: p,
20
- name: f,
21
- onCheckedChange: i,
22
- required: m,
23
- value: C = "on",
24
- // @ts-expect-error
25
- internal_do_not_use_render: d
26
- } = t, [l, v] = O({
27
- prop: c,
28
- defaultProp: r ?? !1,
29
- onChange: i,
30
- caller: g
31
- }), [k, x] = s.useState(null), [_, o] = s.useState(null), n = s.useRef(!1), I = k ? !!p || !!k.closest("form") : (
32
- // We set this to true by default so that events bubble to forms without JS (SSR)
33
- !0
34
- ), R = {
35
- checked: l,
36
- disabled: e,
37
- setChecked: v,
38
- control: k,
39
- setControl: x,
40
- name: f,
41
- form: p,
42
- value: C,
43
- hasConsumerStoppedPropagationRef: n,
44
- required: m,
45
- defaultChecked: h(r) ? !1 : r,
46
- isFormControl: I,
47
- bubbleInput: _,
48
- setBubbleInput: o
49
- };
50
- return /* @__PURE__ */ b(
51
- X,
52
- {
53
- scope: a,
54
- ...R,
55
- children: W(d) ? d(R) : u
56
- }
57
- );
58
- }
59
- var N = "CheckboxTrigger", w = s.forwardRef(
60
- ({ __scopeCheckbox: t, onKeyDown: a, onClick: c, ...u }, r) => {
61
- const {
62
- control: e,
63
- value: p,
64
- disabled: f,
65
- checked: i,
66
- required: m,
67
- setControl: C,
68
- setChecked: d,
69
- hasConsumerStoppedPropagationRef: l,
70
- isFormControl: v,
71
- bubbleInput: k
72
- } = E(N, t), x = B(r, C), _ = s.useRef(i);
73
- return s.useEffect(() => {
74
- const o = e?.form;
75
- if (o) {
76
- const n = () => d(_.current);
77
- return o.addEventListener("reset", n), () => o.removeEventListener("reset", n);
78
- }
79
- }, [e, d]), /* @__PURE__ */ b(
80
- P.button,
81
- {
82
- type: "button",
83
- role: "checkbox",
84
- "aria-checked": h(i) ? "mixed" : i,
85
- "aria-required": m,
86
- "data-state": A(i),
87
- "data-disabled": f ? "" : void 0,
88
- disabled: f,
89
- value: p,
90
- ...u,
91
- ref: x,
92
- onKeyDown: S(a, (o) => {
93
- o.key === "Enter" && o.preventDefault();
94
- }),
95
- onClick: S(c, (o) => {
96
- d((n) => h(n) ? !0 : !n), k && v && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
97
- })
98
- }
99
- );
100
- }
101
- );
102
- w.displayName = N;
103
- var Q = s.forwardRef(
104
- (t, a) => {
105
- const {
106
- __scopeCheckbox: c,
107
- name: u,
108
- checked: r,
109
- defaultChecked: e,
110
- required: p,
111
- disabled: f,
112
- value: i,
113
- onCheckedChange: m,
114
- form: C,
115
- ...d
116
- } = t;
117
- return /* @__PURE__ */ b(
118
- J,
119
- {
120
- __scopeCheckbox: c,
121
- checked: r,
122
- defaultChecked: e,
123
- disabled: f,
124
- required: p,
125
- onCheckedChange: m,
126
- name: u,
127
- form: C,
128
- value: i,
129
- internal_do_not_use_render: ({ isFormControl: l }) => /* @__PURE__ */ G(K, { children: [
130
- /* @__PURE__ */ b(
131
- w,
132
- {
133
- ...d,
134
- ref: a,
135
- __scopeCheckbox: c
136
- }
137
- ),
138
- l && /* @__PURE__ */ b(
139
- q,
140
- {
141
- __scopeCheckbox: c
142
- }
143
- )
144
- ] })
145
- }
146
- );
147
- }
148
- );
149
- Q.displayName = g;
150
- var T = "CheckboxIndicator", V = s.forwardRef(
151
- (t, a) => {
152
- const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = E(T, c);
153
- return /* @__PURE__ */ b(
154
- z,
155
- {
156
- present: u || h(e.checked) || e.checked === !0,
157
- children: /* @__PURE__ */ b(
158
- P.span,
159
- {
160
- "data-state": A(e.checked),
161
- "data-disabled": e.disabled ? "" : void 0,
162
- ...r,
163
- ref: a,
164
- style: { pointerEvents: "none", ...t.style }
165
- }
166
- )
167
- }
168
- );
169
- }
170
- );
171
- V.displayName = T;
172
- var M = "CheckboxBubbleInput", q = s.forwardRef(
173
- ({ __scopeCheckbox: t, ...a }, c) => {
174
- const {
175
- control: u,
176
- hasConsumerStoppedPropagationRef: r,
177
- checked: e,
178
- defaultChecked: p,
179
- required: f,
180
- disabled: i,
181
- name: m,
182
- value: C,
183
- form: d,
184
- bubbleInput: l,
185
- setBubbleInput: v
186
- } = E(M, t), k = B(c, v), x = j(e), _ = H(u);
187
- s.useEffect(() => {
188
- const n = l;
189
- if (!n) return;
190
- const I = window.HTMLInputElement.prototype, y = Object.getOwnPropertyDescriptor(
191
- I,
192
- "checked"
193
- ).set, D = !r.current;
194
- if (x !== e && y) {
195
- const F = new Event("click", { bubbles: D });
196
- n.indeterminate = h(e), y.call(n, h(e) ? !1 : e), n.dispatchEvent(F);
197
- }
198
- }, [l, x, e, r]);
199
- const o = s.useRef(h(e) ? !1 : e);
200
- return /* @__PURE__ */ b(
201
- P.input,
202
- {
203
- type: "checkbox",
204
- "aria-hidden": !0,
205
- defaultChecked: p ?? o.current,
206
- required: f,
207
- disabled: i,
208
- name: m,
209
- value: C,
210
- form: d,
211
- ...a,
212
- tabIndex: -1,
213
- ref: k,
214
- style: {
215
- ...a.style,
216
- ..._,
217
- position: "absolute",
218
- pointerEvents: "none",
219
- opacity: 0,
220
- margin: 0,
221
- // We transform because the input is absolutely positioned but we have
222
- // rendered it **after** the button. This pulls it back to sit on top
223
- // of the button.
224
- transform: "translateX(-100%)"
225
- }
226
- }
227
- );
228
- }
229
- );
230
- q.displayName = M;
231
- function W(t) {
232
- return typeof t == "function";
233
- }
234
- function h(t) {
235
- return t === "indeterminate";
236
- }
237
- function A(t) {
238
- return h(t) ? "indeterminate" : t ? "checked" : "unchecked";
239
- }
240
- export {
241
- Q as Checkbox,
242
- V as CheckboxIndicator,
243
- V as Indicator,
244
- Q as Root,
245
- q as unstable_BubbleInput,
246
- q as unstable_CheckboxBubbleInput,
247
- J as unstable_CheckboxProvider,
248
- w as unstable_CheckboxTrigger,
249
- J as unstable_Provider,
250
- w as unstable_Trigger
251
- };
@@ -1,29 +0,0 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
21
- };
22
- }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
25
- }
26
- export {
27
- i as composeRefs,
28
- s as useComposedRefs
29
- };
@@ -1,68 +0,0 @@
1
- import * as u from "react";
2
- import { jsx as f } from "react/jsx-runtime";
3
- function $(t, c) {
4
- const n = u.createContext(c), p = (r) => {
5
- const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
6
- return /* @__PURE__ */ f(n.Provider, { value: s, children: e });
7
- };
8
- p.displayName = t + "Provider";
9
- function i(r) {
10
- const e = u.useContext(n);
11
- if (e) return e;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${t}\``);
14
- }
15
- return [p, i];
16
- }
17
- function w(t, c = []) {
18
- let n = [];
19
- function p(r, e) {
20
- const o = u.createContext(e), s = n.length;
21
- n = [...n, e];
22
- const d = (x) => {
23
- const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
24
- return /* @__PURE__ */ f(S.Provider, { value: h, children: v });
25
- };
26
- d.displayName = r + "Provider";
27
- function C(x, m) {
28
- const v = m?.[t]?.[s] || o, a = u.useContext(v);
29
- if (a) return a;
30
- if (e !== void 0) return e;
31
- throw new Error(`\`${x}\` must be used within \`${r}\``);
32
- }
33
- return [d, C];
34
- }
35
- const i = () => {
36
- const r = n.map((e) => u.createContext(e));
37
- return function(o) {
38
- const s = o?.[t] || r;
39
- return u.useMemo(
40
- () => ({ [`__scope${t}`]: { ...o, [t]: s } }),
41
- [o, s]
42
- );
43
- };
44
- };
45
- return i.scopeName = t, [p, P(i, ...c)];
46
- }
47
- function P(...t) {
48
- const c = t[0];
49
- if (t.length === 1) return c;
50
- const n = () => {
51
- const p = t.map((i) => ({
52
- useScope: i(),
53
- scopeName: i.scopeName
54
- }));
55
- return function(r) {
56
- const e = p.reduce((o, { useScope: s, scopeName: d }) => {
57
- const x = s(r)[`__scope${d}`];
58
- return { ...o, ...x };
59
- }, {});
60
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
61
- };
62
- };
63
- return n.scopeName = c.scopeName, n;
64
- }
65
- export {
66
- $ as createContext,
67
- w as createContextScope
68
- };