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.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +1 -0
- package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +1 -0
- package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
- package/dist/components/SwatchesModule.js +23 -38896
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +251 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +68 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +256 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +231 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +877 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +35 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +497 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +62 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +106 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/comma-separated-tokens/index.js +20 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +14 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +145 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +20 -0
- package/dist/node_modules/hast-util-raw/lib/index.js +217 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +118 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +22 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +27 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +23 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +11 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +17 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/hastscript/lib/create-h.js +112 -0
- package/dist/node_modules/hastscript/lib/index.js +8 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/html-void-elements/index.js +25 -0
- package/dist/node_modules/immer/dist/immer.js +467 -0
- package/dist/node_modules/inline-style-parser/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +40 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +19 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +581 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +223 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +126 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +95 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +39 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +83 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +94 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +46 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +144 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +152 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +57 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +15 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/parse5/dist/common/doctype.js +98 -0
- package/dist/node_modules/parse5/dist/common/error-codes.js +7 -0
- package/dist/node_modules/parse5/dist/common/foreign-content.js +210 -0
- package/dist/node_modules/parse5/dist/common/html.js +250 -0
- package/dist/node_modules/parse5/dist/common/token.js +14 -0
- package/dist/node_modules/parse5/dist/common/unicode.js +73 -0
- package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +84 -0
- package/dist/node_modules/parse5/dist/parser/index.js +2271 -0
- package/dist/node_modules/parse5/dist/parser/open-element-stack.js +240 -0
- package/dist/node_modules/parse5/dist/serializer/index.js +2 -0
- package/dist/node_modules/parse5/dist/tokenizer/index.js +1940 -0
- package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +88 -0
- package/dist/node_modules/parse5/dist/tree-adapters/default.js +162 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +38 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +245 -0
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +246 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/rehype-raw/lib/index.js +12 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/reselect/dist/reselect.js +244 -0
- package/dist/node_modules/space-separated-tokens/index.js +11 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2731 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +84 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-location/lib/index.js +42 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/node_modules/web-namespaces/index.js +11 -0
- package/dist/node_modules/zwitch/index.js +18 -0
- package/dist/src/app/assets/images/product_thumb.png.js +4 -0
- package/dist/src/app/assets/svg/ArrowIconSVG.js +25 -0
- package/dist/src/app/assets/svg/CheckMarkIconSVG.js +25 -0
- package/dist/src/app/assets/svg/CloseIconSVG.js +25 -0
- package/dist/src/app/assets/svg/MinusIconSVG.js +24 -0
- package/dist/src/app/assets/svg/PlusIconSVG.js +24 -0
- package/dist/src/app/assets/svg/SearchIconSVG.js +37 -0
- package/dist/src/app/assets/svg/TrashIconSVG.js +24 -0
- package/dist/src/app/providers/StoreProvider.js +7 -0
- package/dist/src/app/store/rootReducer.js +12 -0
- package/dist/src/app/store/store.js +14 -0
- package/dist/src/features/Cart/lib/CartCervices.js +8 -0
- package/dist/src/features/Cart/model/cartSlice.js +58 -0
- package/dist/src/features/Cart/model/selectors.js +18 -0
- package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +53 -0
- package/dist/src/features/Cart/ui/CartList/CartList.js +29 -0
- package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +41 -0
- package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +23 -0
- package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +38 -0
- package/dist/src/features/Cart/ui/Counter/Counter.js +46 -0
- package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +102 -0
- package/dist/src/features/DataAdapter/utils/types.js +8 -0
- package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +34 -0
- package/dist/src/features/MultiProduct/model/API/api.js +18 -0
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +83 -0
- package/dist/src/features/MultiProduct/model/selectors.js +7 -0
- package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +21 -0
- package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +28 -0
- package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +27 -0
- package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +60 -0
- package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +71 -0
- package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +19 -0
- package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +138 -0
- package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +51 -0
- package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +55 -0
- package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +46 -0
- package/dist/src/features/MultiProduct/utils/constants.js +16 -0
- package/dist/src/features/MultiProduct/utils/randomList.js +41 -0
- package/dist/src/features/swatches/lib/AttributeHelper.js +21 -0
- package/dist/src/features/swatches/lib/SwatchesServices.js +54 -0
- package/dist/src/features/swatches/model/selectors.js +12 -0
- package/dist/src/features/swatches/model/swatchesSlice.js +108 -0
- package/dist/src/features/swatches/model/thunks.js +22 -0
- package/dist/src/features/swatches/model/types.js +6 -0
- package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +45 -0
- package/dist/src/features/swatches/ui/Filters/LooksFilter.js +45 -0
- package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +47 -0
- package/dist/src/features/swatches/ui/Filters/index.js +12 -0
- package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +50 -0
- package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +45 -0
- package/dist/src/features/swatches/ui/MaterialList/index.js +39 -0
- package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +51 -0
- package/dist/src/features/swatches/ui/ProductElement/index.js +65 -0
- package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +62 -0
- package/dist/src/features/swatches/ui/Swatches.js +51 -0
- package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +67 -0
- package/dist/src/features/swatches/utils/constants.js +8 -0
- package/dist/src/shared/constants/props.js +13337 -0
- package/dist/src/shared/constants/selectedMaterials.js +4 -0
- package/dist/src/shared/types/activeTab.js +7 -0
- package/dist/src/shared/ui/Checkbox/Checkbox.js +31 -0
- package/dist/src/shared/ui/CustomButton/CustomButton.js +16 -0
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +59 -0
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +13 -0
- package/dist/src/shared/ui/Dialog/Dialog.js +81 -0
- package/dist/src/shared/ui/Label/Label.js +27 -0
- package/dist/src/shared/ui/Markdown/MDWithAccordion.js +36 -0
- package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +9 -0
- package/dist/src/shared/ui/MaterialItem/MaterialItem.js +36 -0
- package/dist/src/shared/ui/MultiSelect/MultiSelect.js +150 -0
- package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +35 -0
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +37 -0
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +4 -0
- package/dist/src/shared/ui/Slider/Slider.js +117 -0
- package/dist/src/shared/utils/cn.js +8 -0
- package/dist/src/shared/utils/uniqueList.js +4 -0
- package/package.json +12 -2
- package/dist/assets/SwatchesModule.css +0 -1
- /package/dist/{lib/components → components}/SwatchesModule.d.ts +0 -0
- /package/dist/{lib/main.d.ts → main.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { create as n } from "./util/create.js";
|
|
2
|
+
const r = n({
|
|
3
|
+
properties: {
|
|
4
|
+
xLinkActuate: null,
|
|
5
|
+
xLinkArcRole: null,
|
|
6
|
+
xLinkHref: null,
|
|
7
|
+
xLinkRole: null,
|
|
8
|
+
xLinkShow: null,
|
|
9
|
+
xLinkTitle: null,
|
|
10
|
+
xLinkType: null
|
|
11
|
+
},
|
|
12
|
+
space: "xlink",
|
|
13
|
+
transform(e, l) {
|
|
14
|
+
return "xlink:" + l.slice(5).toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
r as xlink
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { create as n } from "./util/create.js";
|
|
2
|
+
import { caseInsensitiveTransform as s } from "./util/case-insensitive-transform.js";
|
|
3
|
+
const m = n({
|
|
4
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
5
|
+
properties: { xmlnsXLink: null, xmlns: null },
|
|
6
|
+
space: "xmlns",
|
|
7
|
+
transform: s
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
m as xmlns
|
|
11
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { unreachable as k } from "../../devlop/lib/default.js";
|
|
2
|
+
import { jsxs as b, jsx as O, Fragment as P } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { unified as v } from "../../unified/lib/index.js";
|
|
5
|
+
import E from "../../remark-parse/lib/index.js";
|
|
6
|
+
import T from "../../remark-rehype/lib/index.js";
|
|
7
|
+
import { VFile as x } from "../../vfile/lib/index.js";
|
|
8
|
+
import { visit as N } from "../../unist-util-visit/lib/index.js";
|
|
9
|
+
import { toJsxRuntime as R } from "../../hast-util-to-jsx-runtime/lib/index.js";
|
|
10
|
+
import { urlAttributes as a } from "../../html-url-attributes/lib/index.js";
|
|
11
|
+
const j = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", f = [], u = { allowDangerousHtml: !0 }, H = /^(https?|ircs?|mailto|xmpp)$/i, S = [
|
|
12
|
+
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
13
|
+
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
14
|
+
{
|
|
15
|
+
from: "allowNode",
|
|
16
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
17
|
+
to: "allowElement"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
from: "allowedTypes",
|
|
21
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
22
|
+
to: "allowedElements"
|
|
23
|
+
},
|
|
24
|
+
{ from: "className", id: "remove-classname" },
|
|
25
|
+
{
|
|
26
|
+
from: "disallowedTypes",
|
|
27
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
28
|
+
to: "disallowedElements"
|
|
29
|
+
},
|
|
30
|
+
{ from: "escapeHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
31
|
+
{ from: "includeElementIndex", id: "#remove-includeelementindex" },
|
|
32
|
+
{
|
|
33
|
+
from: "includeNodeIndex",
|
|
34
|
+
id: "change-includenodeindex-to-includeelementindex"
|
|
35
|
+
},
|
|
36
|
+
{ from: "linkTarget", id: "remove-linktarget" },
|
|
37
|
+
{ from: "plugins", id: "change-plugins-to-remarkplugins", to: "remarkPlugins" },
|
|
38
|
+
{ from: "rawSourcePos", id: "#remove-rawsourcepos" },
|
|
39
|
+
{ from: "renderers", id: "change-renderers-to-components", to: "components" },
|
|
40
|
+
{ from: "source", id: "change-source-to-children", to: "children" },
|
|
41
|
+
{ from: "sourcePos", id: "#remove-sourcepos" },
|
|
42
|
+
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
43
|
+
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
44
|
+
];
|
|
45
|
+
function C(r) {
|
|
46
|
+
const e = D(r), t = I(r);
|
|
47
|
+
return U(e.runSync(e.parse(t), t), r);
|
|
48
|
+
}
|
|
49
|
+
function D(r) {
|
|
50
|
+
const e = r.rehypePlugins || f, t = r.remarkPlugins || f, n = r.remarkRehypeOptions ? { ...r.remarkRehypeOptions, ...u } : u;
|
|
51
|
+
return v().use(E).use(t).use(T, n).use(e);
|
|
52
|
+
}
|
|
53
|
+
function I(r) {
|
|
54
|
+
const e = r.children || "", t = new x();
|
|
55
|
+
return typeof e == "string" && (t.value = e), t;
|
|
56
|
+
}
|
|
57
|
+
function U(r, e) {
|
|
58
|
+
const t = e.allowedElements, n = e.allowElement, i = e.components, c = e.disallowedElements, p = e.skipHtml, w = e.unwrapDisallowed, g = e.urlTransform || F;
|
|
59
|
+
for (const o of S)
|
|
60
|
+
Object.hasOwn(e, o.from) && k(
|
|
61
|
+
"Unexpected `" + o.from + "` prop, " + (o.to ? "use `" + o.to + "` instead" : "remove it") + " (see <" + j + "#" + o.id + "> for more info)"
|
|
62
|
+
);
|
|
63
|
+
return N(r, h), R(r, {
|
|
64
|
+
Fragment: P,
|
|
65
|
+
components: i,
|
|
66
|
+
ignoreInvalidStyle: !0,
|
|
67
|
+
jsx: O,
|
|
68
|
+
jsxs: b,
|
|
69
|
+
passKeys: !0,
|
|
70
|
+
passNode: !0
|
|
71
|
+
});
|
|
72
|
+
function h(o, l, m) {
|
|
73
|
+
if (o.type === "raw" && m && typeof l == "number")
|
|
74
|
+
return p ? m.children.splice(l, 1) : m.children[l] = { type: "text", value: o.value }, l;
|
|
75
|
+
if (o.type === "element") {
|
|
76
|
+
let s;
|
|
77
|
+
for (s in a)
|
|
78
|
+
if (Object.hasOwn(a, s) && Object.hasOwn(o.properties, s)) {
|
|
79
|
+
const y = o.properties[s], d = a[s];
|
|
80
|
+
(d === null || d.includes(o.tagName)) && (o.properties[s] = g(String(y || ""), s, o));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (o.type === "element") {
|
|
84
|
+
let s = t ? !t.includes(o.tagName) : c ? c.includes(o.tagName) : !1;
|
|
85
|
+
if (!s && n && typeof l == "number" && (s = !n(o, l, m)), s && m && typeof l == "number")
|
|
86
|
+
return w && o.children ? m.children.splice(l, 1, ...o.children) : m.children.splice(l, 1), l;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function F(r) {
|
|
91
|
+
const e = r.indexOf(":"), t = r.indexOf("?"), n = r.indexOf("#"), i = r.indexOf("/");
|
|
92
|
+
return (
|
|
93
|
+
// If there is no protocol, it’s relative.
|
|
94
|
+
e === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
95
|
+
i !== -1 && e > i || t !== -1 && e > t || n !== -1 && e > n || // It is a protocol, it should be allowed.
|
|
96
|
+
H.test(r.slice(0, e)) ? r : ""
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
C as Markdown,
|
|
101
|
+
F as defaultUrlTransform
|
|
102
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { w as V } from "../../../_virtual/with-selector.js";
|
|
3
|
+
function T(n) {
|
|
4
|
+
n();
|
|
5
|
+
}
|
|
6
|
+
function L() {
|
|
7
|
+
let n = null, o = null;
|
|
8
|
+
return {
|
|
9
|
+
clear() {
|
|
10
|
+
n = null, o = null;
|
|
11
|
+
},
|
|
12
|
+
notify() {
|
|
13
|
+
T(() => {
|
|
14
|
+
let e = n;
|
|
15
|
+
for (; e; )
|
|
16
|
+
e.callback(), e = e.next;
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
get() {
|
|
20
|
+
const e = [];
|
|
21
|
+
let t = n;
|
|
22
|
+
for (; t; )
|
|
23
|
+
e.push(t), t = t.next;
|
|
24
|
+
return e;
|
|
25
|
+
},
|
|
26
|
+
subscribe(e) {
|
|
27
|
+
let t = !0;
|
|
28
|
+
const r = o = {
|
|
29
|
+
callback: e,
|
|
30
|
+
next: null,
|
|
31
|
+
prev: o
|
|
32
|
+
};
|
|
33
|
+
return r.prev ? r.prev.next = r : n = r, function() {
|
|
34
|
+
!t || n === null || (t = !1, r.next ? r.next.prev = r.prev : o = r.prev, r.prev ? r.prev.next = r.next : n = r.next);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
var k = {
|
|
40
|
+
notify() {
|
|
41
|
+
},
|
|
42
|
+
get: () => []
|
|
43
|
+
};
|
|
44
|
+
function M(n, o) {
|
|
45
|
+
let e, t = k, r = 0, s = !1;
|
|
46
|
+
function f(w) {
|
|
47
|
+
u();
|
|
48
|
+
const g = t.subscribe(w);
|
|
49
|
+
let y = !1;
|
|
50
|
+
return () => {
|
|
51
|
+
y || (y = !0, g(), b());
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function d() {
|
|
55
|
+
t.notify();
|
|
56
|
+
}
|
|
57
|
+
function c() {
|
|
58
|
+
a.onStateChange && a.onStateChange();
|
|
59
|
+
}
|
|
60
|
+
function p() {
|
|
61
|
+
return s;
|
|
62
|
+
}
|
|
63
|
+
function u() {
|
|
64
|
+
r++, e || (e = n.subscribe(c), t = L());
|
|
65
|
+
}
|
|
66
|
+
function b() {
|
|
67
|
+
r--, e && r === 0 && (e(), e = void 0, t.clear(), t = k);
|
|
68
|
+
}
|
|
69
|
+
function S() {
|
|
70
|
+
s || (s = !0, u());
|
|
71
|
+
}
|
|
72
|
+
function h() {
|
|
73
|
+
s && (s = !1, b());
|
|
74
|
+
}
|
|
75
|
+
const a = {
|
|
76
|
+
addNestedSub: f,
|
|
77
|
+
notifyNestedSubs: d,
|
|
78
|
+
handleChangeWrapper: c,
|
|
79
|
+
isSubscribed: p,
|
|
80
|
+
trySubscribe: S,
|
|
81
|
+
tryUnsubscribe: h,
|
|
82
|
+
getListeners: () => t
|
|
83
|
+
};
|
|
84
|
+
return a;
|
|
85
|
+
}
|
|
86
|
+
var j = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", U = /* @__PURE__ */ j(), _ = () => typeof navigator < "u" && navigator.product === "ReactNative", H = /* @__PURE__ */ _(), I = () => U || H ? i.useLayoutEffect : i.useEffect, P = /* @__PURE__ */ I(), z = /* @__PURE__ */ Symbol.for("react-redux-context"), O = typeof globalThis < "u" ? globalThis : (
|
|
87
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
88
|
+
{}
|
|
89
|
+
);
|
|
90
|
+
function Y() {
|
|
91
|
+
if (!i.createContext) return {};
|
|
92
|
+
const n = O[z] ??= /* @__PURE__ */ new Map();
|
|
93
|
+
let o = n.get(i.createContext);
|
|
94
|
+
return o || (o = i.createContext(
|
|
95
|
+
null
|
|
96
|
+
), process.env.NODE_ENV !== "production" && (o.displayName = "ReactRedux"), n.set(i.createContext, o)), o;
|
|
97
|
+
}
|
|
98
|
+
var l = /* @__PURE__ */ Y();
|
|
99
|
+
function F(n) {
|
|
100
|
+
const { children: o, context: e, serverState: t, store: r } = n, s = i.useMemo(() => {
|
|
101
|
+
const c = M(r), p = {
|
|
102
|
+
store: r,
|
|
103
|
+
subscription: c,
|
|
104
|
+
getServerState: t ? () => t : void 0
|
|
105
|
+
};
|
|
106
|
+
if (process.env.NODE_ENV === "production")
|
|
107
|
+
return p;
|
|
108
|
+
{
|
|
109
|
+
const { identityFunctionCheck: u = "once", stabilityCheck: b = "once" } = n;
|
|
110
|
+
return /* @__PURE__ */ Object.assign(p, {
|
|
111
|
+
stabilityCheck: b,
|
|
112
|
+
identityFunctionCheck: u
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, [r, t]), f = i.useMemo(() => r.getState(), [r]);
|
|
116
|
+
P(() => {
|
|
117
|
+
const { subscription: c } = s;
|
|
118
|
+
return c.onStateChange = c.notifyNestedSubs, c.trySubscribe(), f !== r.getState() && c.notifyNestedSubs(), () => {
|
|
119
|
+
c.tryUnsubscribe(), c.onStateChange = void 0;
|
|
120
|
+
};
|
|
121
|
+
}, [s, f]);
|
|
122
|
+
const d = e || l;
|
|
123
|
+
return /* @__PURE__ */ i.createElement(d.Provider, { value: s }, o);
|
|
124
|
+
}
|
|
125
|
+
var G = F;
|
|
126
|
+
function m(n = l) {
|
|
127
|
+
return function() {
|
|
128
|
+
const e = i.useContext(n);
|
|
129
|
+
if (process.env.NODE_ENV !== "production" && !e)
|
|
130
|
+
throw new Error(
|
|
131
|
+
"could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
|
|
132
|
+
);
|
|
133
|
+
return e;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
var N = /* @__PURE__ */ m();
|
|
137
|
+
function R(n = l) {
|
|
138
|
+
const o = n === l ? N : (
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
m(n)
|
|
141
|
+
), e = () => {
|
|
142
|
+
const { store: t } = o();
|
|
143
|
+
return t;
|
|
144
|
+
};
|
|
145
|
+
return Object.assign(e, {
|
|
146
|
+
withTypes: () => e
|
|
147
|
+
}), e;
|
|
148
|
+
}
|
|
149
|
+
var W = /* @__PURE__ */ R();
|
|
150
|
+
function A(n = l) {
|
|
151
|
+
const o = n === l ? W : R(n), e = () => o().dispatch;
|
|
152
|
+
return Object.assign(e, {
|
|
153
|
+
withTypes: () => e
|
|
154
|
+
}), e;
|
|
155
|
+
}
|
|
156
|
+
var J = /* @__PURE__ */ A(), B = (n, o) => n === o;
|
|
157
|
+
function K(n = l) {
|
|
158
|
+
const o = n === l ? N : m(n), e = (t, r = {}) => {
|
|
159
|
+
const { equalityFn: s = B } = typeof r == "function" ? { equalityFn: r } : r;
|
|
160
|
+
if (process.env.NODE_ENV !== "production") {
|
|
161
|
+
if (!t)
|
|
162
|
+
throw new Error("You must pass a selector to useSelector");
|
|
163
|
+
if (typeof t != "function")
|
|
164
|
+
throw new Error("You must pass a function as a selector to useSelector");
|
|
165
|
+
if (typeof s != "function")
|
|
166
|
+
throw new Error(
|
|
167
|
+
"You must pass a function as an equality function to useSelector"
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
const f = o(), { store: d, subscription: c, getServerState: p } = f, u = i.useRef(!0), b = i.useCallback(
|
|
171
|
+
{
|
|
172
|
+
[t.name](h) {
|
|
173
|
+
const a = t(h);
|
|
174
|
+
if (process.env.NODE_ENV !== "production") {
|
|
175
|
+
const { devModeChecks: w = {} } = typeof r == "function" ? {} : r, { identityFunctionCheck: g, stabilityCheck: y } = f, {
|
|
176
|
+
identityFunctionCheck: C,
|
|
177
|
+
stabilityCheck: E
|
|
178
|
+
} = {
|
|
179
|
+
stabilityCheck: y,
|
|
180
|
+
identityFunctionCheck: g,
|
|
181
|
+
...w
|
|
182
|
+
};
|
|
183
|
+
if (E === "always" || E === "once" && u.current) {
|
|
184
|
+
const v = t(h);
|
|
185
|
+
if (!s(a, v)) {
|
|
186
|
+
let x;
|
|
187
|
+
try {
|
|
188
|
+
throw new Error();
|
|
189
|
+
} catch (D) {
|
|
190
|
+
({ stack: x } = D);
|
|
191
|
+
}
|
|
192
|
+
console.warn(
|
|
193
|
+
"Selector " + (t.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
194
|
+
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,
|
|
195
|
+
{
|
|
196
|
+
state: h,
|
|
197
|
+
selected: a,
|
|
198
|
+
selected2: v,
|
|
199
|
+
stack: x
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if ((C === "always" || C === "once" && u.current) && a === h) {
|
|
205
|
+
let v;
|
|
206
|
+
try {
|
|
207
|
+
throw new Error();
|
|
208
|
+
} catch (x) {
|
|
209
|
+
({ stack: v } = x);
|
|
210
|
+
}
|
|
211
|
+
console.warn(
|
|
212
|
+
"Selector " + (t.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
|
|
213
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
|
|
214
|
+
{ stack: v }
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
u.current && (u.current = !1);
|
|
218
|
+
}
|
|
219
|
+
return a;
|
|
220
|
+
}
|
|
221
|
+
}[t.name],
|
|
222
|
+
[t]
|
|
223
|
+
), S = V.useSyncExternalStoreWithSelector(
|
|
224
|
+
c.addNestedSub,
|
|
225
|
+
d.getState,
|
|
226
|
+
p || d.getState,
|
|
227
|
+
b,
|
|
228
|
+
s
|
|
229
|
+
);
|
|
230
|
+
return i.useDebugValue(S), S;
|
|
231
|
+
};
|
|
232
|
+
return Object.assign(e, {
|
|
233
|
+
withTypes: () => e
|
|
234
|
+
}), e;
|
|
235
|
+
}
|
|
236
|
+
var Q = /* @__PURE__ */ K();
|
|
237
|
+
export {
|
|
238
|
+
G as Provider,
|
|
239
|
+
l as ReactReduxContext,
|
|
240
|
+
A as createDispatchHook,
|
|
241
|
+
K as createSelectorHook,
|
|
242
|
+
R as createStoreHook,
|
|
243
|
+
J as useDispatch,
|
|
244
|
+
Q as useSelector,
|
|
245
|
+
W as useStore
|
|
246
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __assign as m } from "../../../tslib/tslib.es6.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { RemoveScroll as e } from "./UI.js";
|
|
4
|
+
import t from "./sidecar.js";
|
|
5
|
+
var s = r.forwardRef(function(a, o) {
|
|
6
|
+
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
|
7
|
+
});
|
|
8
|
+
s.classNames = e.classNames;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { __spreadArray as x } from "../../../tslib/tslib.es6.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { RemoveScrollBar as A } from "../../../react-remove-scroll-bar/dist/es2015/component.js";
|
|
4
|
+
import { styleSingleton as I } from "../../../react-style-singleton/dist/es2015/component.js";
|
|
5
|
+
import { nonPassive as s } from "./aggresiveCapture.js";
|
|
6
|
+
import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
|
|
7
|
+
var b = function(t) {
|
|
8
|
+
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
9
|
+
}, Y = function(t) {
|
|
10
|
+
return [t.deltaX, t.deltaY];
|
|
11
|
+
}, B = function(t) {
|
|
12
|
+
return t && "current" in t ? t.current : t;
|
|
13
|
+
}, F = function(t, c) {
|
|
14
|
+
return t[0] === c[0] && t[1] === c[1];
|
|
15
|
+
}, K = function(t) {
|
|
16
|
+
return `
|
|
17
|
+
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
18
|
+
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
19
|
+
`);
|
|
20
|
+
}, O = 0, f = [];
|
|
21
|
+
function G(t) {
|
|
22
|
+
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(O++)[0], m = n.useState(I)[0], g = n.useRef(t);
|
|
23
|
+
n.useEffect(function() {
|
|
24
|
+
g.current = t;
|
|
25
|
+
}, [t]), n.useEffect(function() {
|
|
26
|
+
if (t.inert) {
|
|
27
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
28
|
+
var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
|
|
29
|
+
return e.forEach(function(r) {
|
|
30
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
31
|
+
}), function() {
|
|
32
|
+
document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
|
|
33
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}, [t.inert, t.lockRef.current, t.shards]);
|
|
38
|
+
var k = n.useCallback(function(e, r) {
|
|
39
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
|
|
40
|
+
return !g.current.allowPinchZoom;
|
|
41
|
+
var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
|
|
42
|
+
if ("touches" in e && v === "h" && C.type === "range")
|
|
43
|
+
return !1;
|
|
44
|
+
var y = T(v, C);
|
|
45
|
+
if (!y)
|
|
46
|
+
return !0;
|
|
47
|
+
if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
|
|
48
|
+
return !1;
|
|
49
|
+
if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
|
|
50
|
+
return !0;
|
|
51
|
+
var P = d.current || a;
|
|
52
|
+
return W(P, r, e, P === "h" ? u : i);
|
|
53
|
+
}, []), S = n.useCallback(function(e) {
|
|
54
|
+
var r = e;
|
|
55
|
+
if (!(!f.length || f[f.length - 1] !== m)) {
|
|
56
|
+
var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
|
|
57
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && F(a.delta, l);
|
|
58
|
+
})[0];
|
|
59
|
+
if (o && o.should) {
|
|
60
|
+
r.cancelable && r.preventDefault();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (!o) {
|
|
64
|
+
var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
|
|
65
|
+
return a.contains(r.target);
|
|
66
|
+
}), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
|
|
67
|
+
i && r.cancelable && r.preventDefault();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, []), R = n.useCallback(function(e, r, l, o) {
|
|
71
|
+
var u = { name: e, delta: r, target: l, should: o, shadowParent: Q(l) };
|
|
72
|
+
c.current.push(u), setTimeout(function() {
|
|
73
|
+
c.current = c.current.filter(function(i) {
|
|
74
|
+
return i !== u;
|
|
75
|
+
});
|
|
76
|
+
}, 1);
|
|
77
|
+
}, []), w = n.useCallback(function(e) {
|
|
78
|
+
E.current = b(e), d.current = void 0;
|
|
79
|
+
}, []), L = n.useCallback(function(e) {
|
|
80
|
+
R(e.type, Y(e), e.target, k(e, t.lockRef.current));
|
|
81
|
+
}, []), M = n.useCallback(function(e) {
|
|
82
|
+
R(e.type, b(e), e.target, k(e, t.lockRef.current));
|
|
83
|
+
}, []);
|
|
84
|
+
n.useEffect(function() {
|
|
85
|
+
return f.push(m), t.setCallbacks({
|
|
86
|
+
onScrollCapture: L,
|
|
87
|
+
onWheelCapture: L,
|
|
88
|
+
onTouchMoveCapture: M
|
|
89
|
+
}), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
|
|
90
|
+
f = f.filter(function(e) {
|
|
91
|
+
return e !== m;
|
|
92
|
+
}), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
|
|
93
|
+
};
|
|
94
|
+
}, []);
|
|
95
|
+
var X = t.removeScrollBar, D = t.inert;
|
|
96
|
+
return n.createElement(
|
|
97
|
+
n.Fragment,
|
|
98
|
+
null,
|
|
99
|
+
D ? n.createElement(m, { styles: K(h) }) : null,
|
|
100
|
+
X ? n.createElement(A, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function Q(t) {
|
|
104
|
+
for (var c = null; t !== null; )
|
|
105
|
+
t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
|
|
106
|
+
return c;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
G as RemoveScrollSideCar,
|
|
110
|
+
Y as getDeltaXY,
|
|
111
|
+
b as getTouchXY
|
|
112
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __rest as E, __assign as r } from "../../../tslib/tslib.es6.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { zeroRightClassName as I, fullWidthClassName as Z } from "../../../react-remove-scroll-bar/dist/es2015/constants.js";
|
|
4
|
+
import { effectCar as W } from "./medium.js";
|
|
5
|
+
import { useMergeRefs as z } from "../../../use-callback-ref/dist/es2015/useMergeRef.js";
|
|
6
|
+
var l = function() {
|
|
7
|
+
}, m = a.forwardRef(function(e, d) {
|
|
8
|
+
var o = a.useRef(null), n = a.useState({
|
|
9
|
+
onScrollCapture: l,
|
|
10
|
+
onWheelCapture: l,
|
|
11
|
+
onTouchMoveCapture: l
|
|
12
|
+
}), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
|
|
13
|
+
return a.createElement(
|
|
14
|
+
a.Fragment,
|
|
15
|
+
null,
|
|
16
|
+
R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
|
|
17
|
+
h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
m.defaultProps = {
|
|
21
|
+
enabled: !0,
|
|
22
|
+
removeScrollBar: !0,
|
|
23
|
+
inert: !1
|
|
24
|
+
};
|
|
25
|
+
m.classNames = {
|
|
26
|
+
fullWidth: Z,
|
|
27
|
+
zeroRight: I
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
m as RemoveScroll
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var r = !1;
|
|
2
|
+
if (typeof window < "u")
|
|
3
|
+
try {
|
|
4
|
+
var e = Object.defineProperty({}, "passive", {
|
|
5
|
+
get: function() {
|
|
6
|
+
return r = !0, !0;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
10
|
+
} catch {
|
|
11
|
+
r = !1;
|
|
12
|
+
}
|
|
13
|
+
var a = r ? { passive: !1 } : !1;
|
|
14
|
+
export {
|
|
15
|
+
a as nonPassive
|
|
16
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var N = function(r) {
|
|
2
|
+
return r.tagName === "TEXTAREA";
|
|
3
|
+
}, b = function(r, e) {
|
|
4
|
+
if (!(r instanceof Element))
|
|
5
|
+
return !1;
|
|
6
|
+
var t = window.getComputedStyle(r);
|
|
7
|
+
return (
|
|
8
|
+
// not-not-scrollable
|
|
9
|
+
t[e] !== "hidden" && // contains scroll inside self
|
|
10
|
+
!(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
|
|
11
|
+
);
|
|
12
|
+
}, D = function(r) {
|
|
13
|
+
return b(r, "overflowY");
|
|
14
|
+
}, E = function(r) {
|
|
15
|
+
return b(r, "overflowX");
|
|
16
|
+
}, T = function(r, e) {
|
|
17
|
+
var t = e.ownerDocument, l = e;
|
|
18
|
+
do {
|
|
19
|
+
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
|
20
|
+
var f = g(r, l);
|
|
21
|
+
if (f) {
|
|
22
|
+
var n = m(r, l), i = n[1], o = n[2];
|
|
23
|
+
if (i > o)
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
l = l.parentNode;
|
|
27
|
+
} while (l && l !== t.body);
|
|
28
|
+
return !1;
|
|
29
|
+
}, H = function(r) {
|
|
30
|
+
var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
|
|
31
|
+
return [
|
|
32
|
+
e,
|
|
33
|
+
t,
|
|
34
|
+
l
|
|
35
|
+
];
|
|
36
|
+
}, p = function(r) {
|
|
37
|
+
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
|
38
|
+
return [
|
|
39
|
+
e,
|
|
40
|
+
t,
|
|
41
|
+
l
|
|
42
|
+
];
|
|
43
|
+
}, g = function(r, e) {
|
|
44
|
+
return r === "v" ? D(e) : E(e);
|
|
45
|
+
}, m = function(r, e) {
|
|
46
|
+
return r === "v" ? H(e) : p(e);
|
|
47
|
+
}, B = function(r, e) {
|
|
48
|
+
return r === "h" && e === "rtl" ? -1 : 1;
|
|
49
|
+
}, V = function(r, e, t, l, f) {
|
|
50
|
+
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
|
51
|
+
do {
|
|
52
|
+
if (!o)
|
|
53
|
+
break;
|
|
54
|
+
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
|
55
|
+
(v || w) && g(r, o) && (h += w, S += v);
|
|
56
|
+
var a = o.parentNode;
|
|
57
|
+
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
|
58
|
+
} while (
|
|
59
|
+
// portaled content
|
|
60
|
+
!d && o !== document.body || // self content
|
|
61
|
+
d && (e.contains(o) || e === o)
|
|
62
|
+
);
|
|
63
|
+
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
V as handleScroll,
|
|
67
|
+
T as locationCouldBeScrolled
|
|
68
|
+
};
|