hasting-swatchcart-module 0.0.41 → 1.0.1
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/README.md +233 -73
- package/dist/assets/index.css +1 -0
- package/dist/cdn/lib/components/SwatchesModule.d.ts +10 -0
- package/dist/cdn/lib/main.d.ts +4 -0
- package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
- package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
- package/dist/cdn/lib/store/store.d.ts +25 -0
- package/dist/cdn/lib/store/withStore.d.ts +2 -0
- package/dist/cdn/lib/vite-env.d.ts +1 -0
- package/dist/cdn/main.css +1 -0
- package/dist/cdn/main.js +48652 -0
- package/dist/cdn/src/app/App.d.ts +2 -0
- package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/main.d.ts +1 -0
- package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
- package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
- package/dist/cdn/src/app/store/store.d.ts +24 -0
- package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
- package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
- package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
- package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
- package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
- package/dist/cdn/src/features/Cart/ui/CartPrice/CartPrice.d.ts +5 -0
- package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
- package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
- package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +12 -0
- package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
- package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +3 -0
- package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
- package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +35 -0
- package/dist/cdn/src/features/MultiProduct/model/types.d.ts +30 -0
- package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/CustomModal/CustomModal.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +8 -0
- package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
- package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +11 -0
- package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
- package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
- package/dist/cdn/src/features/swatches/model/selectors.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +26 -0
- package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/types.d.ts +137 -0
- package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +5 -0
- package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/MaterialList/index.d.ts +7 -0
- package/dist/cdn/src/features/swatches/ui/MaterialListItem/MaterialListItem.d.ts +4 -0
- package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
- package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
- package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +11 -0
- package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +5 -0
- package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
- package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
- package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
- package/dist/cdn/src/shared/constants/select.d.ts +4 -0
- package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
- package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
- package/dist/cdn/src/shared/types/svg.d.ts +3 -0
- package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
- package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
- package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
- package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
- package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
- package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
- package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
- package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
- package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
- package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
- package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
- package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
- package/dist/cdn/vite.svg +1 -0
- package/dist/components/SwatchesModule.d.ts +1 -2
- package/dist/main.cjs +407 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +63812 -2
- package/dist/main.js.map +1 -0
- package/dist/store/LibraryProvider.d.ts +4 -0
- package/dist/store/rootReducer.d.ts +11 -0
- package/dist/store/store.d.ts +25 -0
- package/dist/store/withStore.d.ts +2 -0
- package/package.json +24 -14
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/assets/src/shared/ui/CustomSidebar/CustomSidebar.module.css +0 -1
- package/dist/assets/src/shared/ui/Markdown/MDWithAccordion.module.css +0 -1
- package/dist/assets/src/shared/ui/PopoverTooltip/PopoverTooltip.module.css +0 -0
- package/dist/components/SwatchesModule.js +0 -32
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -256
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -231
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +0 -877
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -35
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -497
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +0 -11
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -13
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/bail/index.js +0 -7
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/comma-separated-tokens/index.js +0 -20
- package/dist/node_modules/decode-named-character-reference/index.dom.js +0 -14
- package/dist/node_modules/devlop/lib/default.js +0 -8
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +0 -7
- package/dist/node_modules/extend/index.js +0 -43
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +0 -145
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +0 -20
- package/dist/node_modules/hast-util-raw/lib/index.js +0 -217
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +0 -302
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +0 -118
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.js +0 -22
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.js +0 -27
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.js +0 -23
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.js +0 -17
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/hast-util-whitespace/lib/index.js +0 -10
- package/dist/node_modules/hastscript/lib/create-h.js +0 -112
- package/dist/node_modules/hastscript/lib/index.js +0 -8
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
- package/dist/node_modules/html-url-attributes/lib/index.js +0 -26
- package/dist/node_modules/html-void-elements/index.js +0 -25
- package/dist/node_modules/immer/dist/immer.js +0 -467
- package/dist/node_modules/inline-style-parser/index.js +0 -93
- package/dist/node_modules/is-plain-obj/index.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -40
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -27
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +0 -581
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +0 -90
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -28
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -58
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -14
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -19
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -42
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -7
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -21
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -32
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -12
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +0 -10
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +0 -13
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +0 -104
- package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -29
- package/dist/node_modules/micromark/lib/constructs.js +0 -85
- package/dist/node_modules/micromark/lib/create-tokenizer.js +0 -223
- package/dist/node_modules/micromark/lib/initialize/content.js +0 -37
- package/dist/node_modules/micromark/lib/initialize/document.js +0 -126
- package/dist/node_modules/micromark/lib/initialize/flow.js +0 -33
- package/dist/node_modules/micromark/lib/initialize/text.js +0 -95
- package/dist/node_modules/micromark/lib/parse.js +0 -32
- package/dist/node_modules/micromark/lib/postprocess.js +0 -9
- package/dist/node_modules/micromark/lib/preprocess.js +0 -39
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +0 -83
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -42
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -30
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -94
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -43
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +0 -45
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +0 -50
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +0 -80
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -17
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -46
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -144
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +0 -102
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +0 -152
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -22
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -19
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +0 -90
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -57
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -25
- package/dist/node_modules/micromark-factory-destination/index.js +0 -31
- package/dist/node_modules/micromark-factory-label/index.js +0 -28
- package/dist/node_modules/micromark-factory-space/index.js +0 -15
- package/dist/node_modules/micromark-factory-title/index.js +0 -26
- package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
- package/dist/node_modules/micromark-util-character/index.js +0 -39
- package/dist/node_modules/micromark-util-chunked/index.js +0 -16
- package/dist/node_modules/micromark-util-classify-character/index.js +0 -10
- package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -36
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -16
- package/dist/node_modules/micromark-util-decode-string/index.js +0 -18
- package/dist/node_modules/micromark-util-html-tag-name/index.js +0 -68
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -6
- package/dist/node_modules/micromark-util-resolve-all/index.js +0 -12
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +0 -23
- package/dist/node_modules/micromark-util-subtokenize/index.js +0 -55
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -175
- package/dist/node_modules/parse5/dist/common/doctype.js +0 -98
- package/dist/node_modules/parse5/dist/common/error-codes.js +0 -7
- package/dist/node_modules/parse5/dist/common/foreign-content.js +0 -210
- package/dist/node_modules/parse5/dist/common/html.js +0 -250
- package/dist/node_modules/parse5/dist/common/token.js +0 -14
- package/dist/node_modules/parse5/dist/common/unicode.js +0 -73
- package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
- package/dist/node_modules/parse5/dist/parser/index.js +0 -2271
- package/dist/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
- package/dist/node_modules/parse5/dist/serializer/index.js +0 -2
- package/dist/node_modules/parse5/dist/tokenizer/index.js +0 -1940
- package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
- package/dist/node_modules/parse5/dist/tree-adapters/default.js +0 -162
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.js +0 -245
- package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/property-information/lib/hast-to-react.js +0 -22
- package/dist/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/property-information/lib/util/create.js +0 -19
- package/dist/node_modules/property-information/lib/util/defined-info.js +0 -36
- package/dist/node_modules/property-information/lib/util/info.js +0 -28
- package/dist/node_modules/property-information/lib/util/merge.js +0 -10
- package/dist/node_modules/property-information/lib/util/schema.js +0 -21
- package/dist/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/react-markdown/lib/index.js +0 -102
- package/dist/node_modules/react-redux/dist/react-redux.js +0 -246
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/redux/dist/redux.js +0 -258
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +0 -8
- package/dist/node_modules/rehype-raw/lib/index.js +0 -12
- package/dist/node_modules/remark-parse/lib/index.js +0 -19
- package/dist/node_modules/remark-rehype/lib/index.js +0 -18
- package/dist/node_modules/reselect/dist/reselect.js +0 -244
- package/dist/node_modules/space-separated-tokens/index.js +0 -11
- package/dist/node_modules/style-to-js/cjs/index.js +0 -20
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -19
- package/dist/node_modules/style-to-object/cjs/index.js +0 -28
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2731
- package/dist/node_modules/trim-lines/index.js +0 -28
- package/dist/node_modules/trough/lib/index.js +0 -60
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/unified/lib/callable-instance.js +0 -25
- package/dist/node_modules/unified/lib/index.js +0 -529
- package/dist/node_modules/unist-util-is/lib/index.js +0 -84
- package/dist/node_modules/unist-util-position/lib/index.js +0 -23
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +0 -15
- package/dist/node_modules/unist-util-visit/lib/index.js +0 -16
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -56
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -66
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -65
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -10
- package/dist/node_modules/vfile/lib/index.js +0 -406
- package/dist/node_modules/vfile/lib/minpath.browser.js +0 -112
- package/dist/node_modules/vfile/lib/minproc.browser.js +0 -7
- package/dist/node_modules/vfile/lib/minurl.browser.js +0 -41
- package/dist/node_modules/vfile/lib/minurl.shared.js +0 -7
- package/dist/node_modules/vfile-location/lib/index.js +0 -42
- package/dist/node_modules/vfile-message/lib/index.js +0 -91
- package/dist/node_modules/web-namespaces/index.js +0 -11
- package/dist/node_modules/zwitch/index.js +0 -18
- package/dist/src/app/assets/images/product_thumb.png.js +0 -4
- package/dist/src/app/assets/svg/ArrowIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CheckMarkIconSVG.js +0 -25
- package/dist/src/app/assets/svg/CloseIconSVG.js +0 -25
- package/dist/src/app/assets/svg/MinusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/PlusIconSVG.js +0 -24
- package/dist/src/app/assets/svg/SearchIconSVG.js +0 -37
- package/dist/src/app/assets/svg/TrashIconSVG.js +0 -24
- package/dist/src/app/providers/StoreProvider.js +0 -7
- package/dist/src/app/store/rootReducer.js +0 -12
- package/dist/src/app/store/store.js +0 -14
- package/dist/src/features/Cart/lib/CartCervices.js +0 -8
- package/dist/src/features/Cart/model/cartSlice.js +0 -58
- package/dist/src/features/Cart/model/selectors.js +0 -18
- package/dist/src/features/Cart/ui/CartHeader/CartHeader.js +0 -53
- package/dist/src/features/Cart/ui/CartList/CartList.js +0 -29
- package/dist/src/features/Cart/ui/CartListItem/CartListItem.js +0 -41
- package/dist/src/features/Cart/ui/CartPrice/CartPrice.js +0 -23
- package/dist/src/features/Cart/ui/CartWrapper/CartWrapper.js +0 -38
- package/dist/src/features/Cart/ui/Counter/Counter.js +0 -46
- package/dist/src/features/DataAdapter/lib/DataAdapterServices.js +0 -102
- package/dist/src/features/DataAdapter/utils/types.js +0 -8
- package/dist/src/features/MultiProduct/lib/MultiProductCartServices.js +0 -34
- package/dist/src/features/MultiProduct/model/API/api.js +0 -18
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +0 -83
- package/dist/src/features/MultiProduct/model/selectors.js +0 -7
- package/dist/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.js +0 -21
- package/dist/src/features/MultiProduct/ui/CustomModal/CustomModal.js +0 -28
- package/dist/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.js +0 -27
- package/dist/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.js +0 -60
- package/dist/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.js +0 -71
- package/dist/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js +0 -19
- package/dist/src/features/MultiProduct/ui/ProductList/ProductList.js +0 -138
- package/dist/src/features/MultiProduct/ui/ProductListItem/ProductListItem.js +0 -51
- package/dist/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.js +0 -55
- package/dist/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.js +0 -46
- package/dist/src/features/MultiProduct/utils/constants.js +0 -16
- package/dist/src/features/MultiProduct/utils/randomList.js +0 -41
- package/dist/src/features/swatches/lib/AttributeHelper.js +0 -21
- package/dist/src/features/swatches/lib/SwatchesServices.js +0 -54
- package/dist/src/features/swatches/model/selectors.js +0 -12
- package/dist/src/features/swatches/model/swatchesSlice.js +0 -108
- package/dist/src/features/swatches/model/thunks.js +0 -22
- package/dist/src/features/swatches/model/types.js +0 -6
- package/dist/src/features/swatches/ui/Filters/ColorsFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/LooksFilter.js +0 -45
- package/dist/src/features/swatches/ui/Filters/MaterialsFilter.js +0 -47
- package/dist/src/features/swatches/ui/Filters/index.js +0 -12
- package/dist/src/features/swatches/ui/HexGridZoom/HexGridZoom.js +0 -50
- package/dist/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.js +0 -45
- package/dist/src/features/swatches/ui/MaterialList/index.js +0 -39
- package/dist/src/features/swatches/ui/MaterialListItem/MaterialListItem.js +0 -51
- package/dist/src/features/swatches/ui/ProductElement/index.js +0 -65
- package/dist/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.js +0 -62
- package/dist/src/features/swatches/ui/Swatches.js +0 -51
- package/dist/src/features/swatches/ui/SwatchesList/SwatchesList.js +0 -67
- package/dist/src/features/swatches/utils/constants.js +0 -8
- package/dist/src/shared/constants/props.js +0 -13337
- package/dist/src/shared/constants/selectedMaterials.js +0 -4
- package/dist/src/shared/types/activeTab.js +0 -7
- package/dist/src/shared/ui/Checkbox/Checkbox.js +0 -31
- package/dist/src/shared/ui/CustomButton/CustomButton.js +0 -16
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.js +0 -59
- package/dist/src/shared/ui/CustomSidebar/CustomSidebar.module.scss.js +0 -13
- package/dist/src/shared/ui/Dialog/Dialog.js +0 -81
- package/dist/src/shared/ui/Label/Label.js +0 -27
- package/dist/src/shared/ui/Markdown/MDWithAccordion.js +0 -36
- package/dist/src/shared/ui/Markdown/MDWithAccordion.module.scss.js +0 -9
- package/dist/src/shared/ui/MaterialItem/MaterialItem.js +0 -36
- package/dist/src/shared/ui/MultiSelect/MultiSelect.js +0 -150
- package/dist/src/shared/ui/PopoverTooltip/InfoIcon.js +0 -35
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.js +0 -37
- package/dist/src/shared/ui/PopoverTooltip/PopoverTooltip.module.scss.js +0 -4
- package/dist/src/shared/ui/Slider/Slider.js +0 -117
- package/dist/src/shared/utils/cn.js +0 -8
- package/dist/src/shared/utils/uniqueList.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DarkWhiteIconSVG: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WhiteWhiteIconSVG: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const rootReducer: import('redux').Reducer<{
|
|
2
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
3
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
4
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState;
|
|
5
|
+
}, import('redux').UnknownAction, Partial<{
|
|
6
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice | undefined;
|
|
7
|
+
cart: import('../../features/Cart/model/types').CartState | undefined;
|
|
8
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState | undefined;
|
|
9
|
+
}>>;
|
|
10
|
+
export type RootState = ReturnType<typeof rootReducer>;
|
|
11
|
+
export default rootReducer;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
2
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
3
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
4
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState;
|
|
5
|
+
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
6
|
+
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
7
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
8
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
9
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState;
|
|
10
|
+
}, undefined, import('redux').UnknownAction>;
|
|
11
|
+
}>, import('redux').StoreEnhancer]>>;
|
|
12
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
13
|
+
export type AppDispatch = typeof store.dispatch;
|
|
14
|
+
export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
|
|
15
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
16
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
17
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState;
|
|
18
|
+
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
19
|
+
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
20
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
21
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
22
|
+
multiProductCart: import('../../features/MultiProduct/model/types').CartState;
|
|
23
|
+
}>;
|
|
24
|
+
export default store;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartState, ICartItem } from './types';
|
|
2
|
+
import { AttributeValue } from '../../swatches/model/types';
|
|
3
|
+
export declare const setCartItems: import('@reduxjs/toolkit').ActionCreatorWithPayload<ICartItem[], "cart/setCartItems">, removeItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
4
|
+
selectedMaterial: AttributeValue;
|
|
5
|
+
}, "cart/removeItem">, increment: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
6
|
+
selectedMaterial: AttributeValue;
|
|
7
|
+
}, "cart/increment">, decrement: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
8
|
+
selectedMaterial: AttributeValue;
|
|
9
|
+
}, "cart/decrement">, setCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
10
|
+
selectedMaterial: AttributeValue;
|
|
11
|
+
next: number;
|
|
12
|
+
}, "cart/setCount">, clear: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"cart/clear">;
|
|
13
|
+
export declare const cartReducer: import('redux').Reducer<CartState>;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { RootState } from '../../../app/store/rootReducer';
|
|
2
|
+
export declare const getCartItems: (state: RootState) => import('./types').ICartItem[];
|
|
3
|
+
export declare const getCartTotalCount: ((state: {
|
|
4
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
5
|
+
cart: import('./types').CartState;
|
|
6
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
7
|
+
}) => number) & {
|
|
8
|
+
clearCache: () => void;
|
|
9
|
+
resultsCount: () => number;
|
|
10
|
+
resetResultsCount: () => void;
|
|
11
|
+
} & {
|
|
12
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem[]) => number;
|
|
13
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem[]) => number) & {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
resultsCount: () => number;
|
|
16
|
+
resetResultsCount: () => void;
|
|
17
|
+
};
|
|
18
|
+
lastResult: () => number;
|
|
19
|
+
dependencies: [(state: RootState) => import('./types').ICartItem[]];
|
|
20
|
+
recomputations: () => number;
|
|
21
|
+
resetRecomputations: () => void;
|
|
22
|
+
dependencyRecomputations: () => number;
|
|
23
|
+
resetDependencyRecomputations: () => void;
|
|
24
|
+
} & {
|
|
25
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
26
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
27
|
+
};
|
|
28
|
+
export declare const getCartFreeSlots: ((state: {
|
|
29
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
30
|
+
cart: import('./types').CartState;
|
|
31
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
32
|
+
}) => number) & {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
resultsCount: () => number;
|
|
35
|
+
resetResultsCount: () => void;
|
|
36
|
+
} & {
|
|
37
|
+
resultFunc: (resultFuncArgs_0: number) => number;
|
|
38
|
+
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
resultsCount: () => number;
|
|
41
|
+
resetResultsCount: () => void;
|
|
42
|
+
};
|
|
43
|
+
lastResult: () => number;
|
|
44
|
+
dependencies: [((state: {
|
|
45
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
46
|
+
cart: import('./types').CartState;
|
|
47
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
48
|
+
}) => number) & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
resultsCount: () => number;
|
|
51
|
+
resetResultsCount: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem[]) => number;
|
|
54
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem[]) => number) & {
|
|
55
|
+
clearCache: () => void;
|
|
56
|
+
resultsCount: () => number;
|
|
57
|
+
resetResultsCount: () => void;
|
|
58
|
+
};
|
|
59
|
+
lastResult: () => number;
|
|
60
|
+
dependencies: [(state: RootState) => import('./types').ICartItem[]];
|
|
61
|
+
recomputations: () => number;
|
|
62
|
+
resetRecomputations: () => void;
|
|
63
|
+
dependencyRecomputations: () => number;
|
|
64
|
+
resetDependencyRecomputations: () => void;
|
|
65
|
+
} & {
|
|
66
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
67
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
68
|
+
}];
|
|
69
|
+
recomputations: () => number;
|
|
70
|
+
resetRecomputations: () => void;
|
|
71
|
+
dependencyRecomputations: () => number;
|
|
72
|
+
resetDependencyRecomputations: () => void;
|
|
73
|
+
} & {
|
|
74
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
75
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
76
|
+
};
|
|
77
|
+
export declare const getCartCanIncrement: ((state: {
|
|
78
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
79
|
+
cart: import('./types').CartState;
|
|
80
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
81
|
+
}) => boolean) & {
|
|
82
|
+
clearCache: () => void;
|
|
83
|
+
resultsCount: () => number;
|
|
84
|
+
resetResultsCount: () => void;
|
|
85
|
+
} & {
|
|
86
|
+
resultFunc: (resultFuncArgs_0: number) => boolean;
|
|
87
|
+
memoizedResultFunc: ((resultFuncArgs_0: number) => boolean) & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
resultsCount: () => number;
|
|
90
|
+
resetResultsCount: () => void;
|
|
91
|
+
};
|
|
92
|
+
lastResult: () => boolean;
|
|
93
|
+
dependencies: [((state: {
|
|
94
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
95
|
+
cart: import('./types').CartState;
|
|
96
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
97
|
+
}) => number) & {
|
|
98
|
+
clearCache: () => void;
|
|
99
|
+
resultsCount: () => number;
|
|
100
|
+
resetResultsCount: () => void;
|
|
101
|
+
} & {
|
|
102
|
+
resultFunc: (resultFuncArgs_0: number) => number;
|
|
103
|
+
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
104
|
+
clearCache: () => void;
|
|
105
|
+
resultsCount: () => number;
|
|
106
|
+
resetResultsCount: () => void;
|
|
107
|
+
};
|
|
108
|
+
lastResult: () => number;
|
|
109
|
+
dependencies: [((state: {
|
|
110
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
111
|
+
cart: import('./types').CartState;
|
|
112
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
113
|
+
}) => number) & {
|
|
114
|
+
clearCache: () => void;
|
|
115
|
+
resultsCount: () => number;
|
|
116
|
+
resetResultsCount: () => void;
|
|
117
|
+
} & {
|
|
118
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem[]) => number;
|
|
119
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem[]) => number) & {
|
|
120
|
+
clearCache: () => void;
|
|
121
|
+
resultsCount: () => number;
|
|
122
|
+
resetResultsCount: () => void;
|
|
123
|
+
};
|
|
124
|
+
lastResult: () => number;
|
|
125
|
+
dependencies: [(state: RootState) => import('./types').ICartItem[]];
|
|
126
|
+
recomputations: () => number;
|
|
127
|
+
resetRecomputations: () => void;
|
|
128
|
+
dependencyRecomputations: () => number;
|
|
129
|
+
resetDependencyRecomputations: () => void;
|
|
130
|
+
} & {
|
|
131
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
132
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
133
|
+
}];
|
|
134
|
+
recomputations: () => number;
|
|
135
|
+
resetRecomputations: () => void;
|
|
136
|
+
dependencyRecomputations: () => number;
|
|
137
|
+
resetDependencyRecomputations: () => void;
|
|
138
|
+
} & {
|
|
139
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
140
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
141
|
+
}];
|
|
142
|
+
recomputations: () => number;
|
|
143
|
+
resetRecomputations: () => void;
|
|
144
|
+
dependencyRecomputations: () => number;
|
|
145
|
+
resetDependencyRecomputations: () => void;
|
|
146
|
+
} & {
|
|
147
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
148
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
149
|
+
};
|
|
150
|
+
export declare const getCartItemById: (assetId: string) => ((state: {
|
|
151
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
152
|
+
cart: import('./types').CartState;
|
|
153
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
154
|
+
}) => import('./types').ICartItem | undefined) & {
|
|
155
|
+
clearCache: () => void;
|
|
156
|
+
resultsCount: () => number;
|
|
157
|
+
resetResultsCount: () => void;
|
|
158
|
+
} & {
|
|
159
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem[]) => import('./types').ICartItem | undefined;
|
|
160
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem[]) => import('./types').ICartItem | undefined) & {
|
|
161
|
+
clearCache: () => void;
|
|
162
|
+
resultsCount: () => number;
|
|
163
|
+
resetResultsCount: () => void;
|
|
164
|
+
};
|
|
165
|
+
lastResult: () => import('./types').ICartItem | undefined;
|
|
166
|
+
dependencies: [(state: RootState) => import('./types').ICartItem[]];
|
|
167
|
+
recomputations: () => number;
|
|
168
|
+
resetRecomputations: () => void;
|
|
169
|
+
dependencyRecomputations: () => number;
|
|
170
|
+
resetDependencyRecomputations: () => void;
|
|
171
|
+
} & {
|
|
172
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
173
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
174
|
+
};
|
|
175
|
+
export declare const getCartItemCountById: (id: string) => ((state: {
|
|
176
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
177
|
+
cart: import('./types').CartState;
|
|
178
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
179
|
+
}) => number) & {
|
|
180
|
+
clearCache: () => void;
|
|
181
|
+
resultsCount: () => number;
|
|
182
|
+
resetResultsCount: () => void;
|
|
183
|
+
} & {
|
|
184
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem | undefined) => number;
|
|
185
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem | undefined) => number) & {
|
|
186
|
+
clearCache: () => void;
|
|
187
|
+
resultsCount: () => number;
|
|
188
|
+
resetResultsCount: () => void;
|
|
189
|
+
};
|
|
190
|
+
lastResult: () => number;
|
|
191
|
+
dependencies: [((state: {
|
|
192
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
193
|
+
cart: import('./types').CartState;
|
|
194
|
+
multiProductCart: import('../../MultiProduct/model/types').CartState;
|
|
195
|
+
}) => import('./types').ICartItem | undefined) & {
|
|
196
|
+
clearCache: () => void;
|
|
197
|
+
resultsCount: () => number;
|
|
198
|
+
resetResultsCount: () => void;
|
|
199
|
+
} & {
|
|
200
|
+
resultFunc: (resultFuncArgs_0: import('./types').ICartItem[]) => import('./types').ICartItem | undefined;
|
|
201
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('./types').ICartItem[]) => import('./types').ICartItem | undefined) & {
|
|
202
|
+
clearCache: () => void;
|
|
203
|
+
resultsCount: () => number;
|
|
204
|
+
resetResultsCount: () => void;
|
|
205
|
+
};
|
|
206
|
+
lastResult: () => import('./types').ICartItem | undefined;
|
|
207
|
+
dependencies: [(state: RootState) => import('./types').ICartItem[]];
|
|
208
|
+
recomputations: () => number;
|
|
209
|
+
resetRecomputations: () => void;
|
|
210
|
+
dependencyRecomputations: () => number;
|
|
211
|
+
resetDependencyRecomputations: () => void;
|
|
212
|
+
} & {
|
|
213
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
214
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
215
|
+
}];
|
|
216
|
+
recomputations: () => number;
|
|
217
|
+
resetRecomputations: () => void;
|
|
218
|
+
dependencyRecomputations: () => number;
|
|
219
|
+
resetDependencyRecomputations: () => void;
|
|
220
|
+
} & {
|
|
221
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
222
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
223
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EActiveTab } from '../../../../shared/types/activeTab';
|
|
2
|
+
interface ICartHeaderProps {
|
|
3
|
+
onSetActiveTab?: (arg: EActiveTab) => void;
|
|
4
|
+
onToggleSidebar: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const CartHeader: ({ onSetActiveTab, onToggleSidebar, }: ICartHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CartList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICartItem } from '../../model/types';
|
|
2
|
+
interface ICartListItemProps {
|
|
3
|
+
item: ICartItem;
|
|
4
|
+
canInc: boolean;
|
|
5
|
+
onDelete: (item: ICartItem) => void;
|
|
6
|
+
onIncrement: (item: ICartItem) => void;
|
|
7
|
+
onDecrement: (item: ICartItem) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const CartListItem: ({ item, canInc, onDelete, onIncrement, onDecrement, }: ICartListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EActiveTab } from '../../../../shared/types/activeTab';
|
|
2
|
+
interface ICartWrapperProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onSetActiveTab: (activeTab: EActiveTab) => void;
|
|
5
|
+
onToggleSidebar: () => void;
|
|
6
|
+
onSendData: (data: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const CartWrapper: ({ isOpen, onToggleSidebar, onSetActiveTab, onSendData, }: ICartWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ICounterProps {
|
|
2
|
+
value: number;
|
|
3
|
+
canIncrement: boolean;
|
|
4
|
+
onIncrement: () => void;
|
|
5
|
+
onDecrement: () => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const Counter: ({ value, canIncrement, onIncrement, onDecrement, onDelete, }: ICounterProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAttributeAsset, ISection } from '../../swatches/model/types';
|
|
2
|
+
import { EDataInputType, IMapUIData } from '../utils/types';
|
|
3
|
+
export declare class DataAdapterServices {
|
|
4
|
+
static getTransformedData({ dataType, data, }: {
|
|
5
|
+
dataType: EDataInputType;
|
|
6
|
+
data: any[];
|
|
7
|
+
}): void | IMapUIData;
|
|
8
|
+
static getGroupingValue(attributes: any[]): any;
|
|
9
|
+
static getAllMaterialValuesKeys(attributes: ISection[]): string[] | undefined;
|
|
10
|
+
static getAllMaterialOptions(attributes: IAttributeAsset[]): IMapUIData | undefined;
|
|
11
|
+
static getMapUIData(data: IAttributeAsset[]): IMapUIData | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AttributeValue } from '../../swatches/model/types';
|
|
2
|
+
export declare const EDataInputType: {
|
|
3
|
+
readonly UI: "UI";
|
|
4
|
+
readonly DATA_INPUT: "DATA_INPUT";
|
|
5
|
+
readonly DATA_ALL_PRODUCT: "DATA_ALL_PRODUCT";
|
|
6
|
+
};
|
|
7
|
+
export type EDataInputType = (typeof EDataInputType)[keyof typeof EDataInputType];
|
|
8
|
+
export interface IMapUIData {
|
|
9
|
+
allMaterialValues: AttributeValue[];
|
|
10
|
+
productElementOptions: any[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AttributeValue } from '../../swatches/model/types';
|
|
2
|
+
import { ICartItem, IProduct, ISliderItem } from '../model/types';
|
|
3
|
+
export declare class MultiProductCartService {
|
|
4
|
+
static getCartTotalCount({ cartItems }: {
|
|
5
|
+
cartItems: ICartItem[];
|
|
6
|
+
}): number;
|
|
7
|
+
static getUniqueCategories(productList: IProduct[]): ISliderItem[];
|
|
8
|
+
static getCartPreparedOption(selectedMaterials: AttributeValue[], cartData: {
|
|
9
|
+
productId: number;
|
|
10
|
+
name: string;
|
|
11
|
+
items: ICartItem[];
|
|
12
|
+
}[]): ICartItem[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartState, ICartItem, IProductCart } from './types';
|
|
2
|
+
type Key = {
|
|
3
|
+
productId: number;
|
|
4
|
+
label: string;
|
|
5
|
+
parentName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const setCartForProduct: import('@reduxjs/toolkit').ActionCreatorWithPayload<IProductCart, "multiProduct/setCartForProduct">, setCartItems: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
8
|
+
productId: number;
|
|
9
|
+
items: ICartItem[];
|
|
10
|
+
name?: string;
|
|
11
|
+
}, "multiProduct/setCartItems">, incrementMultiProductItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<Key, "multiProduct/incrementMultiProductItem">, decrementMultiProductItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<Key, "multiProduct/decrementMultiProductItem">, removeMultiProductItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<Key, "multiProduct/removeMultiProductItem">, clear: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"multiProduct/clear">, setActiveMultiCartProduct: import('@reduxjs/toolkit').ActionCreatorWithPayload<IProductCart, "multiProduct/setActiveMultiCartProduct">;
|
|
12
|
+
export declare const multiProductCartReducer: import('redux').Reducer<CartState>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RootState } from '../../../app/store/rootReducer';
|
|
2
|
+
import { ICartItem, IProductCart } from './types';
|
|
3
|
+
export declare const getCartItems: (state: RootState) => IProductCart[];
|
|
4
|
+
export declare const getSelectedMaterials: (productId: number) => ((state: {
|
|
5
|
+
swatches: import('../../swatches/model/types').ISwatchesSlice;
|
|
6
|
+
cart: import('../../Cart/model/types').CartState;
|
|
7
|
+
multiProductCart: import('./types').CartState;
|
|
8
|
+
}) => ICartItem[]) & {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
resultsCount: () => number;
|
|
11
|
+
resetResultsCount: () => void;
|
|
12
|
+
} & {
|
|
13
|
+
resultFunc: (resultFuncArgs_0: {
|
|
14
|
+
items: IProductCart[];
|
|
15
|
+
}) => ICartItem[];
|
|
16
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
17
|
+
items: IProductCart[];
|
|
18
|
+
}) => ICartItem[]) & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
resultsCount: () => number;
|
|
21
|
+
resetResultsCount: () => void;
|
|
22
|
+
};
|
|
23
|
+
lastResult: () => ICartItem[];
|
|
24
|
+
dependencies: [(state: RootState) => {
|
|
25
|
+
items: IProductCart[];
|
|
26
|
+
}];
|
|
27
|
+
recomputations: () => number;
|
|
28
|
+
resetRecomputations: () => void;
|
|
29
|
+
dependencyRecomputations: () => number;
|
|
30
|
+
resetDependencyRecomputations: () => void;
|
|
31
|
+
} & {
|
|
32
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
33
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
34
|
+
};
|
|
35
|
+
export declare const getActiveMultiCartProduct: (state: RootState) => IProductCart | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AttributeValue } from '../../swatches/model/types';
|
|
2
|
+
export interface ICartItem extends AttributeValue {
|
|
3
|
+
count: number;
|
|
4
|
+
}
|
|
5
|
+
export interface IProduct {
|
|
6
|
+
attributes: AttributeValue[] | any[];
|
|
7
|
+
name: string;
|
|
8
|
+
productId: number;
|
|
9
|
+
categories: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface IProductCart {
|
|
12
|
+
items: ICartItem[];
|
|
13
|
+
value?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
productId: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ISliderItem {
|
|
18
|
+
items: ICartItem[];
|
|
19
|
+
value: string;
|
|
20
|
+
name: string;
|
|
21
|
+
productId: number;
|
|
22
|
+
}
|
|
23
|
+
export interface CartState {
|
|
24
|
+
items: IProductCart[];
|
|
25
|
+
activeMultiCartProduct: IProductCart | null;
|
|
26
|
+
}
|
|
27
|
+
export interface IGetProductParameters {
|
|
28
|
+
productId: number;
|
|
29
|
+
productName: string;
|
|
30
|
+
}
|
package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CartSelectedProductList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FiltersSelectedProductItem: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface IMultiProductItemCartProps {
|
|
2
|
+
onSendData?: (data: unknown) => void;
|
|
3
|
+
onToggleSidebar: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const MultiProductItemCart: ({ onSendData, onToggleSidebar, }: IMultiProductItemCartProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface IMultiProductWrapperProps {
|
|
2
|
+
onSendData: (data: unknown) => void;
|
|
3
|
+
onToggleSidebar: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const MultiProductWrapper: ({ onSendData, onToggleSidebar, }: IMultiProductWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SwatchContentContainer: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EDataInputType } from '../../../DataAdapter/utils/types';
|
|
2
|
+
import { IAttributeAsset } from '../../../swatches/model/types';
|
|
3
|
+
interface ISwatchesModuleProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
uiDataType: EDataInputType;
|
|
6
|
+
data: IAttributeAsset[] | any[];
|
|
7
|
+
onToggleSidebar: () => void;
|
|
8
|
+
onSendData: (data: unknown) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SwatchModule: ({ isOpen, uiDataType, data, onToggleSidebar, onSendData, }: ISwatchesModuleProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|