hasting-swatchcart-module 0.0.8 → 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 (352) 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/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
  24. package/dist/assets/styles/index.css +0 -1
  25. package/dist/main.d.ts +0 -1
  26. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  27. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  28. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  29. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  30. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  31. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  32. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  33. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  34. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  35. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  36. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
  37. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  38. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  39. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  40. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  41. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
  42. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  43. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  44. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  45. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  46. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  47. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  48. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  49. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  50. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  51. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  52. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  53. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
  54. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
  55. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
  56. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  57. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  58. package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  59. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  60. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  61. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  62. package/dist/node_modules/bail/index.js +0 -7
  63. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  64. package/dist/node_modules/comma-separated-tokens/index.js +0 -20
  65. package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
  66. package/dist/node_modules/devlop/lib/default.js +0 -8
  67. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
  68. package/dist/node_modules/extend/index.js +0 -43
  69. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  70. package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  71. package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  72. package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
  73. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
  74. package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  75. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
  76. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
  77. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
  78. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
  79. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
  80. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
  81. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  82. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  83. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
  84. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
  85. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
  86. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
  87. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
  88. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
  89. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
  90. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
  91. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
  92. package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
  93. package/dist/node_modules/hastscript/lib/create-h.js +0 -112
  94. package/dist/node_modules/hastscript/lib/index.js +0 -8
  95. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  96. package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
  97. package/dist/node_modules/html-void-elements/index.js +0 -25
  98. package/dist/node_modules/immer/dist/immer.js +0 -467
  99. package/dist/node_modules/inline-style-parser/index.js +0 -93
  100. package/dist/node_modules/is-plain-obj/index.js +0 -9
  101. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
  102. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
  103. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
  104. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
  105. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
  106. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
  107. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
  108. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
  109. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
  110. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
  111. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
  112. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
  113. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
  114. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
  115. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
  116. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
  117. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
  118. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
  119. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
  120. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
  121. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
  122. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
  123. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
  124. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
  125. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
  126. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
  127. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
  128. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
  129. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
  130. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
  131. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
  132. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
  133. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
  134. package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
  135. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
  136. package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
  137. package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
  138. package/dist/node_modules/micromark/lib/constructs.js +0 -85
  139. package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
  140. package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
  141. package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
  142. package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
  143. package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
  144. package/dist/node_modules/micromark/lib/parse.js +0 -32
  145. package/dist/node_modules/micromark/lib/postprocess.js +0 -9
  146. package/dist/node_modules/micromark/lib/preprocess.js +0 -39
  147. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
  148. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
  149. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
  150. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
  151. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
  152. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
  153. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
  154. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
  155. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
  156. package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
  157. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
  158. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
  159. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
  160. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
  161. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
  162. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
  163. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
  164. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
  165. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
  166. package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
  167. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
  168. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
  169. package/dist/node_modules/micromark-factory-destination/index.js +0 -31
  170. package/dist/node_modules/micromark-factory-label/index.js +0 -28
  171. package/dist/node_modules/micromark-factory-space/index.js +0 -15
  172. package/dist/node_modules/micromark-factory-title/index.js +0 -26
  173. package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
  174. package/dist/node_modules/micromark-util-character/index.js +0 -39
  175. package/dist/node_modules/micromark-util-chunked/index.js +0 -16
  176. package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
  177. package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
  178. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
  179. package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
  180. package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
  181. package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
  182. package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
  183. package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
  184. package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
  185. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
  186. package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
  187. package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
  188. package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
  189. package/dist/node_modules/parse5/dist/common/html.js +0 -250
  190. package/dist/node_modules/parse5/dist/common/token.js +0 -14
  191. package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
  192. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  193. package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
  194. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  195. package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
  196. package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  197. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  198. package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  199. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  200. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
  201. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  202. package/dist/node_modules/property-information/index.js +0 -12
  203. package/dist/node_modules/property-information/lib/aria.js +0 -61
  204. package/dist/node_modules/property-information/lib/find.js +0 -33
  205. package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
  206. package/dist/node_modules/property-information/lib/html.js +0 -368
  207. package/dist/node_modules/property-information/lib/normalize.js +0 -6
  208. package/dist/node_modules/property-information/lib/svg.js +0 -566
  209. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  210. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  211. package/dist/node_modules/property-information/lib/util/create.js +0 -19
  212. package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
  213. package/dist/node_modules/property-information/lib/util/info.js +0 -28
  214. package/dist/node_modules/property-information/lib/util/merge.js +0 -10
  215. package/dist/node_modules/property-information/lib/util/schema.js +0 -21
  216. package/dist/node_modules/property-information/lib/util/types.js +0 -14
  217. package/dist/node_modules/property-information/lib/xlink.js +0 -19
  218. package/dist/node_modules/property-information/lib/xml.js +0 -11
  219. package/dist/node_modules/property-information/lib/xmlns.js +0 -11
  220. package/dist/node_modules/react-markdown/lib/index.js +0 -102
  221. package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
  222. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  223. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  224. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  225. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  226. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  227. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  228. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  229. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  230. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  231. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  232. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  233. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  234. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  235. package/dist/node_modules/redux/dist/redux.js +0 -258
  236. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
  237. package/dist/node_modules/rehype-raw/lib/index.js +0 -12
  238. package/dist/node_modules/remark-parse/lib/index.js +0 -19
  239. package/dist/node_modules/remark-rehype/lib/index.js +0 -18
  240. package/dist/node_modules/reselect/dist/reselect.js +0 -244
  241. package/dist/node_modules/space-separated-tokens/index.js +0 -11
  242. package/dist/node_modules/style-to-js/cjs/index.js +0 -20
  243. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
  244. package/dist/node_modules/style-to-object/cjs/index.js +0 -28
  245. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
  246. package/dist/node_modules/trim-lines/index.js +0 -28
  247. package/dist/node_modules/trough/lib/index.js +0 -60
  248. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  249. package/dist/node_modules/unified/lib/callable-instance.js +0 -25
  250. package/dist/node_modules/unified/lib/index.js +0 -529
  251. package/dist/node_modules/unist-util-is/lib/index.js +0 -84
  252. package/dist/node_modules/unist-util-position/lib/index.js +0 -23
  253. package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
  254. package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
  255. package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  256. package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  257. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  258. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  259. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  260. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  261. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  262. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
  263. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
  264. package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
  265. package/dist/node_modules/vfile/lib/index.js +0 -406
  266. package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
  267. package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
  268. package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
  269. package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
  270. package/dist/node_modules/vfile-location/lib/index.js +0 -42
  271. package/dist/node_modules/vfile-message/lib/index.js +0 -91
  272. package/dist/node_modules/web-namespaces/index.js +0 -11
  273. package/dist/node_modules/zwitch/index.js +0 -18
  274. package/dist/src/app/assets/images/product_thumb.png.js +0 -4
  275. package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
  276. package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
  277. package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
  278. package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
  279. package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
  280. package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
  281. package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
  282. package/dist/src/app/store/rootReducer.js +0 -12
  283. package/dist/src/app/store/store.js +0 -14
  284. package/dist/src/features/Cart/lib/CartCervices.js +0 -8
  285. package/dist/src/features/Cart/model/cartSlice.js +0 -58
  286. package/dist/src/features/Cart/model/selectors.js +0 -18
  287. package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
  288. package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
  289. package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
  290. package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
  291. package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
  292. package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
  293. package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
  294. package/dist/src/features/DataAdapter/utils/types.js +0 -8
  295. package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
  296. package/dist/src/features/MultiProduct/model/API/api.js +0 -18
  297. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
  298. package/dist/src/features/MultiProduct/model/selectors.js +0 -7
  299. package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
  300. package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
  301. package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
  302. package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
  303. package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
  304. package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
  305. package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
  306. package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
  307. package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
  308. package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
  309. package/dist/src/features/MultiProduct/utils/constants.js +0 -16
  310. package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
  311. package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
  312. package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
  313. package/dist/src/features/swatches/model/selectors.js +0 -12
  314. package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
  315. package/dist/src/features/swatches/model/thunks.js +0 -22
  316. package/dist/src/features/swatches/model/types.js +0 -6
  317. package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
  318. package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
  319. package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
  320. package/dist/src/features/swatches/ui/Filters/index.js +0 -12
  321. package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
  322. package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
  323. package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
  324. package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
  325. package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
  326. package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
  327. package/dist/src/features/swatches/ui/Swatches.js +0 -51
  328. package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
  329. package/dist/src/features/swatches/utils/constants.js +0 -8
  330. package/dist/src/shared/constants/selectedMaterials.js +0 -4
  331. package/dist/src/shared/types/activeTab.js +0 -7
  332. package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
  333. package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
  334. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
  335. package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
  336. package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
  337. package/dist/src/shared/ui/Label/Label.js +0 -27
  338. package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
  339. package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
  340. package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
  341. package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
  342. package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
  343. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
  344. package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
  345. package/dist/src/shared/ui/Slider/Slider.js +0 -117
  346. package/dist/src/shared/utils/cn.js +0 -8
  347. package/dist/src/shared/utils/uniqueList.js +0 -4
  348. /package/dist/{components → lib/components}/SwatchesModule.d.ts +0 -0
  349. /package/dist/{store → lib/store}/LibraryProvider.d.ts +0 -0
  350. /package/dist/{store → lib/store}/rootReducer.d.ts +0 -0
  351. /package/dist/{store → lib/store}/store.d.ts +0 -0
  352. /package/dist/{store → lib/store}/withStore.d.ts +0 -0
@@ -1,231 +0,0 @@
1
- import * as c from "react";
2
- import { composeEventHandlers as m } from "../../primitive/dist/index.js";
3
- import { useComposedRefs as A } from "../../react-compose-refs/dist/index.js";
4
- import { createContextScope as k } from "../../react-context/dist/index.js";
5
- import { DismissableLayer as I } from "../../react-dismissable-layer/dist/index.js";
6
- import { useFocusGuards as T } from "../../react-focus-guards/dist/index.js";
7
- import { FocusScope as L } from "../../react-focus-scope/dist/index.js";
8
- import { useId as G } from "../../react-id/dist/index.js";
9
- import { createPopperScope as O, Root as H, Anchor as _, Content as K, Arrow as j } from "../../react-popper/dist/index.js";
10
- import { Presence as U } from "../../react-presence/dist/index.js";
11
- import { Primitive as x } from "../../react-primitive/dist/index.js";
12
- import { createSlot as V } from "../../react-slot/dist/index.js";
13
- import { useControllableState as W } from "../../react-use-controllable-state/dist/index.js";
14
- import { hideOthers as Z } from "../../../aria-hidden/dist/es2015/index.js";
15
- import $ from "../../../react-remove-scroll/dist/es2015/Combination.js";
16
- import { jsx as p } from "react/jsx-runtime";
17
- var C = "Popover", [w] = k(C, [
18
- O
19
- ]), P = O(), [q, l] = w(C), E = (o) => {
20
- const {
21
- __scopePopover: a,
22
- children: t,
23
- open: n,
24
- defaultOpen: e,
25
- onOpenChange: r,
26
- modal: s = !1
27
- } = o, i = P(a), d = c.useRef(null), [v, g] = c.useState(!1), [h, u] = W({
28
- prop: n,
29
- defaultProp: e ?? !1,
30
- onChange: r,
31
- caller: C
32
- });
33
- return /* @__PURE__ */ p(H, { ...i, children: /* @__PURE__ */ p(
34
- q,
35
- {
36
- scope: a,
37
- contentId: G(),
38
- triggerRef: d,
39
- open: h,
40
- onOpenChange: u,
41
- onOpenToggle: c.useCallback(() => u((R) => !R), [u]),
42
- hasCustomAnchor: v,
43
- onCustomAnchorAdd: c.useCallback(() => g(!0), []),
44
- onCustomAnchorRemove: c.useCallback(() => g(!1), []),
45
- modal: s,
46
- children: t
47
- }
48
- ) });
49
- };
50
- E.displayName = C;
51
- var b = "PopoverAnchor", z = c.forwardRef(
52
- (o, a) => {
53
- const { __scopePopover: t, ...n } = o, e = l(b, t), r = P(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = e;
54
- return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(_, { ...r, ...n, ref: a });
55
- }
56
- );
57
- z.displayName = b;
58
- var F = "PopoverTrigger", N = c.forwardRef(
59
- (o, a) => {
60
- const { __scopePopover: t, ...n } = o, e = l(F, t), r = P(t), s = A(a, e.triggerRef), i = /* @__PURE__ */ p(
61
- x.button,
62
- {
63
- type: "button",
64
- "aria-haspopup": "dialog",
65
- "aria-expanded": e.open,
66
- "aria-controls": e.contentId,
67
- "data-state": M(e.open),
68
- ...n,
69
- ref: s,
70
- onClick: m(o.onClick, e.onOpenToggle)
71
- }
72
- );
73
- return e.hasCustomAnchor ? i : /* @__PURE__ */ p(_, { asChild: !0, ...r, children: i });
74
- }
75
- );
76
- N.displayName = F;
77
- var B = "PopoverPortal", [Co, J] = w(B, {
78
- forceMount: void 0
79
- }), f = "PopoverContent", S = c.forwardRef(
80
- (o, a) => {
81
- const t = J(f, o.__scopePopover), { forceMount: n = t.forceMount, ...e } = o, r = l(f, o.__scopePopover);
82
- return /* @__PURE__ */ p(U, { present: n || r.open, children: r.modal ? /* @__PURE__ */ p(X, { ...e, ref: a }) : /* @__PURE__ */ p(Y, { ...e, ref: a }) });
83
- }
84
- );
85
- S.displayName = f;
86
- var Q = V("PopoverContent.RemoveScroll"), X = c.forwardRef(
87
- (o, a) => {
88
- const t = l(f, o.__scopePopover), n = c.useRef(null), e = A(a, n), r = c.useRef(!1);
89
- return c.useEffect(() => {
90
- const s = n.current;
91
- if (s) return Z(s);
92
- }, []), /* @__PURE__ */ p($, { as: Q, allowPinchZoom: !0, children: /* @__PURE__ */ p(
93
- y,
94
- {
95
- ...o,
96
- ref: e,
97
- trapFocus: t.open,
98
- disableOutsidePointerEvents: !0,
99
- onCloseAutoFocus: m(o.onCloseAutoFocus, (s) => {
100
- s.preventDefault(), r.current || t.triggerRef.current?.focus();
101
- }),
102
- onPointerDownOutside: m(
103
- o.onPointerDownOutside,
104
- (s) => {
105
- const i = s.detail.originalEvent, d = i.button === 0 && i.ctrlKey === !0, v = i.button === 2 || d;
106
- r.current = v;
107
- },
108
- { checkForDefaultPrevented: !1 }
109
- ),
110
- onFocusOutside: m(
111
- o.onFocusOutside,
112
- (s) => s.preventDefault(),
113
- { checkForDefaultPrevented: !1 }
114
- )
115
- }
116
- ) });
117
- }
118
- ), Y = c.forwardRef(
119
- (o, a) => {
120
- const t = l(f, o.__scopePopover), n = c.useRef(!1), e = c.useRef(!1);
121
- return /* @__PURE__ */ p(
122
- y,
123
- {
124
- ...o,
125
- ref: a,
126
- trapFocus: !1,
127
- disableOutsidePointerEvents: !1,
128
- onCloseAutoFocus: (r) => {
129
- o.onCloseAutoFocus?.(r), r.defaultPrevented || (n.current || t.triggerRef.current?.focus(), r.preventDefault()), n.current = !1, e.current = !1;
130
- },
131
- onInteractOutside: (r) => {
132
- o.onInteractOutside?.(r), r.defaultPrevented || (n.current = !0, r.detail.originalEvent.type === "pointerdown" && (e.current = !0));
133
- const s = r.target;
134
- t.triggerRef.current?.contains(s) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && e.current && r.preventDefault();
135
- }
136
- }
137
- );
138
- }
139
- ), y = c.forwardRef(
140
- (o, a) => {
141
- const {
142
- __scopePopover: t,
143
- trapFocus: n,
144
- onOpenAutoFocus: e,
145
- onCloseAutoFocus: r,
146
- disableOutsidePointerEvents: s,
147
- onEscapeKeyDown: i,
148
- onPointerDownOutside: d,
149
- onFocusOutside: v,
150
- onInteractOutside: g,
151
- ...h
152
- } = o, u = l(f, t), R = P(t);
153
- return T(), /* @__PURE__ */ p(
154
- L,
155
- {
156
- asChild: !0,
157
- loop: !0,
158
- trapped: n,
159
- onMountAutoFocus: e,
160
- onUnmountAutoFocus: r,
161
- children: /* @__PURE__ */ p(
162
- I,
163
- {
164
- asChild: !0,
165
- disableOutsidePointerEvents: s,
166
- onInteractOutside: g,
167
- onEscapeKeyDown: i,
168
- onPointerDownOutside: d,
169
- onFocusOutside: v,
170
- onDismiss: () => u.onOpenChange(!1),
171
- children: /* @__PURE__ */ p(
172
- K,
173
- {
174
- "data-state": M(u.open),
175
- role: "dialog",
176
- id: u.contentId,
177
- ...R,
178
- ...h,
179
- ref: a,
180
- style: {
181
- ...h.style,
182
- "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
183
- "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
184
- "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
185
- "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
186
- "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
187
- }
188
- }
189
- )
190
- }
191
- )
192
- }
193
- );
194
- }
195
- ), D = "PopoverClose", oo = c.forwardRef(
196
- (o, a) => {
197
- const { __scopePopover: t, ...n } = o, e = l(D, t);
198
- return /* @__PURE__ */ p(
199
- x.button,
200
- {
201
- type: "button",
202
- ...n,
203
- ref: a,
204
- onClick: m(o.onClick, () => e.onOpenChange(!1))
205
- }
206
- );
207
- }
208
- );
209
- oo.displayName = D;
210
- var eo = "PopoverArrow", ro = c.forwardRef(
211
- (o, a) => {
212
- const { __scopePopover: t, ...n } = o, e = P(t);
213
- return /* @__PURE__ */ p(j, { ...e, ...n, ref: a });
214
- }
215
- );
216
- ro.displayName = eo;
217
- function M(o) {
218
- return o ? "open" : "closed";
219
- }
220
- var Ro = E, Ao = N, Oo = S;
221
- export {
222
- Oo as Content,
223
- E as Popover,
224
- z as PopoverAnchor,
225
- ro as PopoverArrow,
226
- oo as PopoverClose,
227
- S as PopoverContent,
228
- N as PopoverTrigger,
229
- Ro as Root,
230
- Ao as Trigger
231
- };
@@ -1,219 +0,0 @@
1
- import * as p from "react";
2
- import { useFloating as fe, offset as me, shift as he, flip as ue, size as ge, arrow as we, hide as Pe, limitShift as xe } from "../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
3
- import { Root as ye } from "../../react-arrow/dist/index.js";
4
- import { useComposedRefs as I } from "../../react-compose-refs/dist/index.js";
5
- import { createContextScope as Ae } from "../../react-context/dist/index.js";
6
- import { Primitive as Y } from "../../react-primitive/dist/index.js";
7
- import { useCallbackRef as ve } from "../../react-use-callback-ref/dist/index.js";
8
- import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.js";
9
- import { useSize as Ce } from "../../react-use-size/dist/index.js";
10
- import { jsx as f } from "react/jsx-runtime";
11
- import { autoUpdate as Se } from "../../../@floating-ui/dom/dist/floating-ui.dom.js";
12
- var R = "Popper", [M, ke] = Ae(R), [Re, X] = M(R), D = (e) => {
13
- const { __scopePopper: i, children: n } = e, [s, a] = p.useState(null);
14
- return /* @__PURE__ */ f(Re, { scope: i, anchor: s, onAnchorChange: a, children: n });
15
- };
16
- D.displayName = R;
17
- var F = "PopperAnchor", k = p.forwardRef(
18
- (e, i) => {
19
- const { __scopePopper: n, virtualRef: s, ...a } = e, t = X(F, n), r = p.useRef(null), u = I(i, r), o = p.useRef(null);
20
- return p.useEffect(() => {
21
- const c = o.current;
22
- o.current = s?.current || r.current, c !== o.current && t.onAnchorChange(o.current);
23
- }), s ? null : /* @__PURE__ */ f(Y.div, { ...a, ref: u });
24
- }
25
- );
26
- k.displayName = F;
27
- var b = "PopperContent", [be, Oe] = M(b), B = p.forwardRef(
28
- (e, i) => {
29
- const {
30
- __scopePopper: n,
31
- side: s = "bottom",
32
- sideOffset: a = 0,
33
- align: t = "center",
34
- alignOffset: r = 0,
35
- arrowPadding: u = 0,
36
- avoidCollisions: o = !0,
37
- collisionBoundary: c = [],
38
- collisionPadding: g = 0,
39
- sticky: m = "partial",
40
- hideWhenDetached: P = !1,
41
- updatePositionStrategy: x = "optimized",
42
- onPlaced: d,
43
- ...l
44
- } = e, Z = X(b, n), [C, U] = p.useState(null), q = I(i, (w) => U(w)), [S, G] = p.useState(null), O = Ce(S), J = O?.width ?? 0, E = O?.height ?? 0, K = s + (t !== "center" ? "-" + t : ""), Q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
45
- padding: Q,
46
- boundary: N.filter(Ne),
47
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
48
- altBoundary: V
49
- }, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
50
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
51
- strategy: "fixed",
52
- placement: K,
53
- whileElementsMounted: (...w) => Se(...w, {
54
- animationFrame: x === "always"
55
- }),
56
- elements: {
57
- reference: Z.anchor
58
- },
59
- middleware: [
60
- me({ mainAxis: a + E, alignmentAxis: r }),
61
- o && he({
62
- mainAxis: !0,
63
- crossAxis: !1,
64
- limiter: m === "partial" ? xe() : void 0,
65
- ...y
66
- }),
67
- o && ue({ ...y }),
68
- ge({
69
- ...y,
70
- apply: ({ elements: w, rects: W, availableWidth: ce, availableHeight: pe }) => {
71
- const { width: le, height: de } = W.reference, v = w.floating.style;
72
- v.setProperty("--radix-popper-available-width", `${ce}px`), v.setProperty("--radix-popper-available-height", `${pe}px`), v.setProperty("--radix-popper-anchor-width", `${le}px`), v.setProperty("--radix-popper-anchor-height", `${de}px`);
73
- }
74
- }),
75
- S && we({ element: S, padding: u }),
76
- _e({ arrowWidth: J, arrowHeight: E }),
77
- P && Pe({ strategy: "referenceHidden", ...y })
78
- ]
79
- }), [$, re] = L(te), H = ve(d);
80
- z(() => {
81
- A && H?.();
82
- }, [A, H]);
83
- const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = p.useState();
84
- return z(() => {
85
- C && se(window.getComputedStyle(C).zIndex);
86
- }, [C]), /* @__PURE__ */ f(
87
- "div",
88
- {
89
- ref: ee.setFloating,
90
- "data-radix-popper-content-wrapper": "",
91
- style: {
92
- ..._,
93
- transform: A ? _.transform : "translate(0, -200%)",
94
- // keep off the page when measuring
95
- minWidth: "max-content",
96
- zIndex: ie,
97
- "--radix-popper-transform-origin": [
98
- h.transformOrigin?.x,
99
- h.transformOrigin?.y
100
- ].join(" "),
101
- // hide the content if using the hide middleware and should be hidden
102
- // set visibility to hidden and disable pointer events so the UI behaves
103
- // as if the PopperContent isn't there at all
104
- ...h.hide?.referenceHidden && {
105
- visibility: "hidden",
106
- pointerEvents: "none"
107
- }
108
- },
109
- dir: e.dir,
110
- children: /* @__PURE__ */ f(
111
- be,
112
- {
113
- scope: n,
114
- placedSide: $,
115
- onArrowChange: G,
116
- arrowX: oe,
117
- arrowY: ne,
118
- shouldHideArrow: ae,
119
- children: /* @__PURE__ */ f(
120
- Y.div,
121
- {
122
- "data-side": $,
123
- "data-align": re,
124
- ...l,
125
- ref: q,
126
- style: {
127
- ...l.style,
128
- // if the PopperContent hasn't been placed yet (not all measurements done)
129
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
130
- animation: A ? void 0 : "none"
131
- }
132
- }
133
- )
134
- }
135
- )
136
- }
137
- );
138
- }
139
- );
140
- B.displayName = b;
141
- var T = "PopperArrow", Ee = {
142
- top: "bottom",
143
- right: "left",
144
- bottom: "top",
145
- left: "right"
146
- }, j = p.forwardRef(function(i, n) {
147
- const { __scopePopper: s, ...a } = i, t = Oe(T, s), r = Ee[t.placedSide];
148
- return (
149
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
150
- // doesn't report size as we'd expect on SVG elements.
151
- // it reports their bounding box which is effectively the largest path inside the SVG.
152
- /* @__PURE__ */ f(
153
- "span",
154
- {
155
- ref: t.onArrowChange,
156
- style: {
157
- position: "absolute",
158
- left: t.arrowX,
159
- top: t.arrowY,
160
- [r]: 0,
161
- transformOrigin: {
162
- top: "",
163
- right: "0 0",
164
- bottom: "center 0",
165
- left: "100% 0"
166
- }[t.placedSide],
167
- transform: {
168
- top: "translateY(100%)",
169
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
170
- bottom: "rotate(180deg)",
171
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
172
- }[t.placedSide],
173
- visibility: t.shouldHideArrow ? "hidden" : void 0
174
- },
175
- children: /* @__PURE__ */ f(
176
- ye,
177
- {
178
- ...a,
179
- ref: n,
180
- style: {
181
- ...a.style,
182
- // ensures the element can be measured correctly (mostly for if SVG)
183
- display: "block"
184
- }
185
- }
186
- )
187
- }
188
- )
189
- );
190
- });
191
- j.displayName = T;
192
- function Ne(e) {
193
- return e !== null;
194
- }
195
- var _e = (e) => ({
196
- name: "transformOrigin",
197
- options: e,
198
- fn(i) {
199
- const { placement: n, rects: s, middlewareData: a } = i, r = a.arrow?.centerOffset !== 0, u = r ? 0 : e.arrowWidth, o = r ? 0 : e.arrowHeight, [c, g] = L(n), m = { start: "0%", center: "50%", end: "100%" }[g], P = (a.arrow?.x ?? 0) + u / 2, x = (a.arrow?.y ?? 0) + o / 2;
200
- let d = "", l = "";
201
- return c === "bottom" ? (d = r ? m : `${P}px`, l = `${-o}px`) : c === "top" ? (d = r ? m : `${P}px`, l = `${s.floating.height + o}px`) : c === "right" ? (d = `${-o}px`, l = r ? m : `${x}px`) : c === "left" && (d = `${s.floating.width + o}px`, l = r ? m : `${x}px`), { data: { x: d, y: l } };
202
- }
203
- });
204
- function L(e) {
205
- const [i, n = "center"] = e.split("-");
206
- return [i, n];
207
- }
208
- var Be = D, Te = k, je = B, Le = j;
209
- export {
210
- Te as Anchor,
211
- Le as Arrow,
212
- je as Content,
213
- D as Popper,
214
- k as PopperAnchor,
215
- j as PopperArrow,
216
- B as PopperContent,
217
- Be as Root,
218
- ke as createPopperScope
219
- };
@@ -1,15 +0,0 @@
1
- import * as o from "react";
2
- import n from "react-dom";
3
- import { Primitive as s } from "../../react-primitive/dist/index.js";
4
- import { useLayoutEffect as c } from "../../react-use-layout-effect/dist/index.js";
5
- import { jsx as u } from "react/jsx-runtime";
6
- var l = "Portal", p = o.forwardRef((r, e) => {
7
- const { container: a, ...f } = r, [i, m] = o.useState(!1);
8
- c(() => m(!0), []);
9
- const t = a || i && globalThis?.document?.body;
10
- return t ? n.createPortal(/* @__PURE__ */ u(s.div, { ...f, ref: e }), t) : null;
11
- });
12
- p.displayName = l;
13
- export {
14
- p as Portal
15
- };
@@ -1,70 +0,0 @@
1
- import * as i from "react";
2
- import { useComposedRefs as O } from "../../react-compose-refs/dist/index.js";
3
- import { useLayoutEffect as A } from "../../react-use-layout-effect/dist/index.js";
4
- function E(n, e) {
5
- return i.useReducer((t, r) => e[t][r] ?? t, n);
6
- }
7
- var T = (n) => {
8
- const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
9
- return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
10
- };
11
- T.displayName = "Presence";
12
- function R(n) {
13
- const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
14
- mounted: {
15
- UNMOUNT: "unmounted",
16
- ANIMATION_OUT: "unmountSuspended"
17
- },
18
- unmountSuspended: {
19
- MOUNT: "mounted",
20
- ANIMATION_END: "unmounted"
21
- },
22
- unmounted: {
23
- MOUNT: "mounted"
24
- }
25
- });
26
- return i.useEffect(() => {
27
- const o = l(r.current);
28
- c.current = N === "mounted" ? o : "none";
29
- }, [N]), A(() => {
30
- const o = r.current, m = a.current;
31
- if (m !== n) {
32
- const f = c.current, u = l(o);
33
- n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
34
- }
35
- }, [n, s]), A(() => {
36
- if (e) {
37
- let o;
38
- const m = e.ownerDocument.defaultView ?? window, d = (u) => {
39
- const g = l(r.current).includes(CSS.escape(u.animationName));
40
- if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
41
- const y = e.style.animationFillMode;
42
- e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
43
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
44
- });
45
- }
46
- }, f = (u) => {
47
- u.target === e && (c.current = l(r.current));
48
- };
49
- return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
- m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
- };
52
- } else
53
- s("ANIMATION_END");
54
- }, [e, s]), {
55
- isPresent: ["mounted", "unmountSuspended"].includes(N),
56
- ref: i.useCallback((o) => {
57
- r.current = o ? getComputedStyle(o) : null, t(o);
58
- }, [])
59
- };
60
- }
61
- function l(n) {
62
- return n?.animationName || "none";
63
- }
64
- function v(n) {
65
- let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
66
- return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
67
- }
68
- export {
69
- T as Presence
70
- };
@@ -1,36 +0,0 @@
1
- import * as f from "react";
2
- import * as p from "react-dom";
3
- import { createSlot as c } from "../../react-slot/dist/index.js";
4
- import { jsx as l } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], h = u.reduce((t, i) => {
24
- const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: s, ...a } = e, n = s ? o : i;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
30
- function w(t, i) {
31
- t && p.flushSync(() => t.dispatchEvent(i));
32
- }
33
- export {
34
- h as Primitive,
35
- w as dispatchDiscreteCustomEvent
36
- };
@@ -1,49 +0,0 @@
1
- import * as l from "react";
2
- import { composeRefs as m } from "../../react-compose-refs/dist/index.js";
3
- import { jsx as u } from "react/jsx-runtime";
4
- // @__NO_SIDE_EFFECTS__
5
- function b(e) {
6
- const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
7
- const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
8
- if (a) {
9
- const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
- return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
- }
12
- return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
13
- });
14
- return t.displayName = `${e}.Slot`, t;
15
- }
16
- // @__NO_SIDE_EFFECTS__
17
- function y(e) {
18
- const r = l.forwardRef((t, o) => {
19
- const { children: n, ...i } = t;
20
- if (l.isValidElement(n)) {
21
- const c = S(n), s = C(i, n.props);
22
- return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
23
- }
24
- return l.Children.count(n) > 1 ? l.Children.only(null) : null;
25
- });
26
- return r.displayName = `${e}.SlotClone`, r;
27
- }
28
- var g = Symbol("radix.slottable");
29
- function E(e) {
30
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
31
- }
32
- function C(e, r) {
33
- const t = { ...r };
34
- for (const o in r) {
35
- const n = e[o], i = r[o];
36
- /^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
37
- const a = i(...s);
38
- return n(...s), a;
39
- } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
40
- }
41
- return { ...e, ...t };
42
- }
43
- function S(e) {
44
- let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
45
- return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
46
- }
47
- export {
48
- b as createSlot
49
- };
@@ -1,10 +0,0 @@
1
- import * as e from "react";
2
- function c(r) {
3
- const t = e.useRef(r);
4
- return e.useEffect(() => {
5
- t.current = r;
6
- }), e.useMemo(() => (...u) => t.current?.(...u), []);
7
- }
8
- export {
9
- c as useCallbackRef
10
- };
@@ -1,52 +0,0 @@
1
- import * as o from "react";
2
- import { useLayoutEffect as m } from "../../react-use-layout-effect/dist/index.js";
3
- var v = o[" useInsertionEffect ".trim().toString()] || m;
4
- function w({
5
- prop: e,
6
- defaultProp: s,
7
- onChange: t = () => {
8
- },
9
- caller: f
10
- }) {
11
- const [u, c, i] = R({
12
- defaultProp: s,
13
- onChange: t
14
- }), n = e !== void 0, a = n ? e : u;
15
- {
16
- const r = o.useRef(e !== void 0);
17
- o.useEffect(() => {
18
- const l = r.current;
19
- l !== n && console.warn(
20
- `${f} is changing from ${l ? "controlled" : "uncontrolled"} to ${n ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
21
- ), r.current = n;
22
- }, [n, f]);
23
- }
24
- const d = o.useCallback(
25
- (r) => {
26
- if (n) {
27
- const l = C(r) ? r(e) : r;
28
- l !== e && i.current?.(l);
29
- } else
30
- c(r);
31
- },
32
- [n, e, c, i]
33
- );
34
- return [a, d];
35
- }
36
- function R({
37
- defaultProp: e,
38
- onChange: s
39
- }) {
40
- const [t, f] = o.useState(e), u = o.useRef(t), c = o.useRef(s);
41
- return v(() => {
42
- c.current = s;
43
- }, [s]), o.useEffect(() => {
44
- u.current !== t && (c.current?.(t), u.current = t);
45
- }, [t, u]), [t, f, c];
46
- }
47
- function C(e) {
48
- return typeof e == "function";
49
- }
50
- export {
51
- w as useControllableState
52
- };