hasting-swatchcart-module 0.0.2 → 0.0.4

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