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
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
2
|
-
import { ok as u } from "../../devlop/lib/default.js";
|
|
3
|
-
import { svg as m, html as C } from "../../property-information/index.js";
|
|
4
|
-
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
5
|
-
import S from "../../../_virtual/index.js";
|
|
6
|
-
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
7
|
-
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
8
|
-
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
9
|
-
import { find as A } from "../../property-information/lib/find.js";
|
|
10
|
-
import { hastToReact as T } from "../../property-information/lib/hast-to-react.js";
|
|
11
|
-
import { pointStart as F } from "../../unist-util-position/lib/index.js";
|
|
12
|
-
const f = {}.hasOwnProperty, P = /* @__PURE__ */ new Map(), J = /[A-Z]/g, I = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), L = /* @__PURE__ */ new Set(["td", "th"]), g = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
13
|
-
function ae(t, e) {
|
|
14
|
-
if (!e || e.Fragment === void 0)
|
|
15
|
-
throw new TypeError("Expected `Fragment` in options");
|
|
16
|
-
const r = e.filePath || void 0;
|
|
17
|
-
let n;
|
|
18
|
-
if (e.development) {
|
|
19
|
-
if (typeof e.jsxDEV != "function")
|
|
20
|
-
throw new TypeError(
|
|
21
|
-
"Expected `jsxDEV` in options when `development: true`"
|
|
22
|
-
);
|
|
23
|
-
n = R(r, e.jsxDEV);
|
|
24
|
-
} else {
|
|
25
|
-
if (typeof e.jsx != "function")
|
|
26
|
-
throw new TypeError("Expected `jsx` in production options");
|
|
27
|
-
if (typeof e.jsxs != "function")
|
|
28
|
-
throw new TypeError("Expected `jsxs` in production options");
|
|
29
|
-
n = B(r, e.jsx, e.jsxs);
|
|
30
|
-
}
|
|
31
|
-
const s = {
|
|
32
|
-
Fragment: e.Fragment,
|
|
33
|
-
ancestors: [],
|
|
34
|
-
components: e.components || {},
|
|
35
|
-
create: n,
|
|
36
|
-
elementAttributeNameCase: e.elementAttributeNameCase || "react",
|
|
37
|
-
evaluater: e.createEvaluater ? e.createEvaluater() : void 0,
|
|
38
|
-
filePath: r,
|
|
39
|
-
ignoreInvalidStyle: e.ignoreInvalidStyle || !1,
|
|
40
|
-
passKeys: e.passKeys !== !1,
|
|
41
|
-
passNode: e.passNode || !1,
|
|
42
|
-
schema: e.space === "svg" ? m : C,
|
|
43
|
-
stylePropertyNameCase: e.stylePropertyNameCase || "dom",
|
|
44
|
-
tableCellAlignToStyle: e.tableCellAlignToStyle !== !1
|
|
45
|
-
}, i = E(s, t, void 0);
|
|
46
|
-
return i && typeof i != "string" ? i : s.create(
|
|
47
|
-
t,
|
|
48
|
-
s.Fragment,
|
|
49
|
-
{ children: i || void 0 },
|
|
50
|
-
void 0
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
function E(t, e, r) {
|
|
54
|
-
if (e.type === "element")
|
|
55
|
-
return M(t, e, r);
|
|
56
|
-
if (e.type === "mdxFlowExpression" || e.type === "mdxTextExpression")
|
|
57
|
-
return D(t, e);
|
|
58
|
-
if (e.type === "mdxJsxFlowElement" || e.type === "mdxJsxTextElement")
|
|
59
|
-
return K(t, e, r);
|
|
60
|
-
if (e.type === "mdxjsEsm")
|
|
61
|
-
return V(t, e);
|
|
62
|
-
if (e.type === "root")
|
|
63
|
-
return O(t, e, r);
|
|
64
|
-
if (e.type === "text")
|
|
65
|
-
return _(t, e);
|
|
66
|
-
}
|
|
67
|
-
function M(t, e, r) {
|
|
68
|
-
const n = t.schema;
|
|
69
|
-
let s = n;
|
|
70
|
-
e.tagName.toLowerCase() === "svg" && n.space === "html" && (s = m, t.schema = s), t.ancestors.push(e);
|
|
71
|
-
const i = b(t, e.tagName, !1), a = z(t, e);
|
|
72
|
-
let o = d(t, e);
|
|
73
|
-
return I.has(e.tagName) && (o = o.filter(function(l) {
|
|
74
|
-
return typeof l == "string" ? !j(l) : !0;
|
|
75
|
-
})), v(t, a, i, e), y(a, o), t.ancestors.pop(), t.schema = n, t.create(e, i, a, r);
|
|
76
|
-
}
|
|
77
|
-
function D(t, e) {
|
|
78
|
-
if (e.data && e.data.estree && t.evaluater) {
|
|
79
|
-
const n = e.data.estree.body[0];
|
|
80
|
-
return u(n.type === "ExpressionStatement"), /** @type {Child | undefined} */
|
|
81
|
-
t.evaluater.evaluateExpression(n.expression);
|
|
82
|
-
}
|
|
83
|
-
p(t, e.position);
|
|
84
|
-
}
|
|
85
|
-
function V(t, e) {
|
|
86
|
-
if (e.data && e.data.estree && t.evaluater)
|
|
87
|
-
return (
|
|
88
|
-
/** @type {Child | undefined} */
|
|
89
|
-
t.evaluater.evaluateProgram(e.data.estree)
|
|
90
|
-
);
|
|
91
|
-
p(t, e.position);
|
|
92
|
-
}
|
|
93
|
-
function K(t, e, r) {
|
|
94
|
-
const n = t.schema;
|
|
95
|
-
let s = n;
|
|
96
|
-
e.name === "svg" && n.space === "html" && (s = m, t.schema = s), t.ancestors.push(e);
|
|
97
|
-
const i = e.name === null ? t.Fragment : b(t, e.name, !0), a = X(t, e), o = d(t, e);
|
|
98
|
-
return v(t, a, i, e), y(a, o), t.ancestors.pop(), t.schema = n, t.create(e, i, a, r);
|
|
99
|
-
}
|
|
100
|
-
function O(t, e, r) {
|
|
101
|
-
const n = {};
|
|
102
|
-
return y(n, d(t, e)), t.create(e, t.Fragment, n, r);
|
|
103
|
-
}
|
|
104
|
-
function _(t, e) {
|
|
105
|
-
return e.value;
|
|
106
|
-
}
|
|
107
|
-
function v(t, e, r, n) {
|
|
108
|
-
typeof r != "string" && r !== t.Fragment && t.passNode && (e.node = n);
|
|
109
|
-
}
|
|
110
|
-
function y(t, e) {
|
|
111
|
-
if (e.length > 0) {
|
|
112
|
-
const r = e.length > 1 ? e : e[0];
|
|
113
|
-
r && (t.children = r);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function B(t, e, r) {
|
|
117
|
-
return n;
|
|
118
|
-
function n(s, i, a, o) {
|
|
119
|
-
const c = Array.isArray(a.children) ? r : e;
|
|
120
|
-
return o ? c(i, a, o) : c(i, a);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function R(t, e) {
|
|
124
|
-
return r;
|
|
125
|
-
function r(n, s, i, a) {
|
|
126
|
-
const o = Array.isArray(i.children), l = F(n);
|
|
127
|
-
return e(
|
|
128
|
-
s,
|
|
129
|
-
i,
|
|
130
|
-
a,
|
|
131
|
-
o,
|
|
132
|
-
{
|
|
133
|
-
columnNumber: l ? l.column - 1 : void 0,
|
|
134
|
-
fileName: t,
|
|
135
|
-
lineNumber: l ? l.line : void 0
|
|
136
|
-
},
|
|
137
|
-
void 0
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function z(t, e) {
|
|
142
|
-
const r = {};
|
|
143
|
-
let n, s;
|
|
144
|
-
for (s in e.properties)
|
|
145
|
-
if (s !== "children" && f.call(e.properties, s)) {
|
|
146
|
-
const i = Z(t, s, e.properties[s]);
|
|
147
|
-
if (i) {
|
|
148
|
-
const [a, o] = i;
|
|
149
|
-
t.tableCellAlignToStyle && a === "align" && typeof o == "string" && L.has(e.tagName) ? n = o : r[a] = o;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (n) {
|
|
153
|
-
const i = (
|
|
154
|
-
/** @type {Style} */
|
|
155
|
-
r.style || (r.style = {})
|
|
156
|
-
);
|
|
157
|
-
i[t.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = n;
|
|
158
|
-
}
|
|
159
|
-
return r;
|
|
160
|
-
}
|
|
161
|
-
function X(t, e) {
|
|
162
|
-
const r = {};
|
|
163
|
-
for (const n of e.attributes)
|
|
164
|
-
if (n.type === "mdxJsxExpressionAttribute")
|
|
165
|
-
if (n.data && n.data.estree && t.evaluater) {
|
|
166
|
-
const i = n.data.estree.body[0];
|
|
167
|
-
u(i.type === "ExpressionStatement");
|
|
168
|
-
const a = i.expression;
|
|
169
|
-
u(a.type === "ObjectExpression");
|
|
170
|
-
const o = a.properties[0];
|
|
171
|
-
u(o.type === "SpreadElement"), Object.assign(
|
|
172
|
-
r,
|
|
173
|
-
t.evaluater.evaluateExpression(o.argument)
|
|
174
|
-
);
|
|
175
|
-
} else
|
|
176
|
-
p(t, e.position);
|
|
177
|
-
else {
|
|
178
|
-
const s = n.name;
|
|
179
|
-
let i;
|
|
180
|
-
if (n.value && typeof n.value == "object")
|
|
181
|
-
if (n.value.data && n.value.data.estree && t.evaluater) {
|
|
182
|
-
const o = n.value.data.estree.body[0];
|
|
183
|
-
u(o.type === "ExpressionStatement"), i = t.evaluater.evaluateExpression(o.expression);
|
|
184
|
-
} else
|
|
185
|
-
p(t, e.position);
|
|
186
|
-
else
|
|
187
|
-
i = n.value === null ? !0 : n.value;
|
|
188
|
-
r[s] = /** @type {Props[keyof Props]} */
|
|
189
|
-
i;
|
|
190
|
-
}
|
|
191
|
-
return r;
|
|
192
|
-
}
|
|
193
|
-
function d(t, e) {
|
|
194
|
-
const r = [];
|
|
195
|
-
let n = -1;
|
|
196
|
-
const s = t.passKeys ? /* @__PURE__ */ new Map() : P;
|
|
197
|
-
for (; ++n < e.children.length; ) {
|
|
198
|
-
const i = e.children[n];
|
|
199
|
-
let a;
|
|
200
|
-
if (t.passKeys) {
|
|
201
|
-
const l = i.type === "element" ? i.tagName : i.type === "mdxJsxFlowElement" || i.type === "mdxJsxTextElement" ? i.name : void 0;
|
|
202
|
-
if (l) {
|
|
203
|
-
const c = s.get(l) || 0;
|
|
204
|
-
a = l + "-" + c, s.set(l, c + 1);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const o = E(t, i, a);
|
|
208
|
-
o !== void 0 && r.push(o);
|
|
209
|
-
}
|
|
210
|
-
return r;
|
|
211
|
-
}
|
|
212
|
-
function Z(t, e, r) {
|
|
213
|
-
const n = A(t.schema, e);
|
|
214
|
-
if (!(r == null || typeof r == "number" && Number.isNaN(r))) {
|
|
215
|
-
if (Array.isArray(r) && (r = n.commaSeparated ? w(r) : N(r)), n.property === "style") {
|
|
216
|
-
let s = typeof r == "object" ? r : k(t, String(r));
|
|
217
|
-
return t.stylePropertyNameCase === "css" && (s = q(s)), ["style", s];
|
|
218
|
-
}
|
|
219
|
-
return [
|
|
220
|
-
t.elementAttributeNameCase === "react" && n.space ? T[n.property] || n.property : n.attribute,
|
|
221
|
-
r
|
|
222
|
-
];
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
function k(t, e) {
|
|
226
|
-
try {
|
|
227
|
-
return S(e, { reactCompat: !0 });
|
|
228
|
-
} catch (r) {
|
|
229
|
-
if (t.ignoreInvalidStyle)
|
|
230
|
-
return {};
|
|
231
|
-
const n = (
|
|
232
|
-
/** @type {Error} */
|
|
233
|
-
r
|
|
234
|
-
), s = new h("Cannot parse `style` attribute", {
|
|
235
|
-
ancestors: t.ancestors,
|
|
236
|
-
cause: n,
|
|
237
|
-
ruleId: "style",
|
|
238
|
-
source: "hast-util-to-jsx-runtime"
|
|
239
|
-
});
|
|
240
|
-
throw s.file = t.filePath || void 0, s.url = g + "#cannot-parse-style-attribute", s;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function b(t, e, r) {
|
|
244
|
-
let n;
|
|
245
|
-
if (!r)
|
|
246
|
-
n = { type: "Literal", value: e };
|
|
247
|
-
else if (e.includes(".")) {
|
|
248
|
-
const s = e.split(".");
|
|
249
|
-
let i = -1, a;
|
|
250
|
-
for (; ++i < s.length; ) {
|
|
251
|
-
const o = x(s[i]) ? { type: "Identifier", name: s[i] } : { type: "Literal", value: s[i] };
|
|
252
|
-
a = a ? {
|
|
253
|
-
type: "MemberExpression",
|
|
254
|
-
object: a,
|
|
255
|
-
property: o,
|
|
256
|
-
computed: !!(i && o.type === "Literal"),
|
|
257
|
-
optional: !1
|
|
258
|
-
} : o;
|
|
259
|
-
}
|
|
260
|
-
n = a;
|
|
261
|
-
} else
|
|
262
|
-
n = x(e) && !/^[a-z]/.test(e) ? { type: "Identifier", name: e } : { type: "Literal", value: e };
|
|
263
|
-
if (n.type === "Literal") {
|
|
264
|
-
const s = (
|
|
265
|
-
/** @type {string | number} */
|
|
266
|
-
n.value
|
|
267
|
-
);
|
|
268
|
-
return f.call(t.components, s) ? t.components[s] : s;
|
|
269
|
-
}
|
|
270
|
-
if (t.evaluater)
|
|
271
|
-
return t.evaluater.evaluateExpression(n);
|
|
272
|
-
p(t);
|
|
273
|
-
}
|
|
274
|
-
function p(t, e) {
|
|
275
|
-
const r = new h(
|
|
276
|
-
"Cannot handle MDX estrees without `createEvaluater`",
|
|
277
|
-
{
|
|
278
|
-
ancestors: t.ancestors,
|
|
279
|
-
place: e,
|
|
280
|
-
ruleId: "mdx-estree",
|
|
281
|
-
source: "hast-util-to-jsx-runtime"
|
|
282
|
-
}
|
|
283
|
-
);
|
|
284
|
-
throw r.file = t.filePath || void 0, r.url = g + "#cannot-handle-mdx-estrees-without-createevaluater", r;
|
|
285
|
-
}
|
|
286
|
-
function q(t) {
|
|
287
|
-
const e = {};
|
|
288
|
-
let r;
|
|
289
|
-
for (r in t)
|
|
290
|
-
f.call(t, r) && (e[G(r)] = t[r]);
|
|
291
|
-
return e;
|
|
292
|
-
}
|
|
293
|
-
function G(t) {
|
|
294
|
-
let e = t.replace(J, H);
|
|
295
|
-
return e.slice(0, 3) === "ms-" && (e = "-" + e), e;
|
|
296
|
-
}
|
|
297
|
-
function H(t) {
|
|
298
|
-
return "-" + t.toLowerCase();
|
|
299
|
-
}
|
|
300
|
-
export {
|
|
301
|
-
ae as toJsxRuntime
|
|
302
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { stringify as N } from "../../comma-separated-tokens/index.js";
|
|
2
|
-
import { ok as p } from "../../devlop/lib/default.js";
|
|
3
|
-
import { svg as f, html as h } from "../node_modules/property-information/index.js";
|
|
4
|
-
import { stringify as g } from "../../space-separated-tokens/index.js";
|
|
5
|
-
import { webNamespaces as l } from "../../web-namespaces/index.js";
|
|
6
|
-
import { zwitch as y } from "../../zwitch/index.js";
|
|
7
|
-
import { find as b } from "../node_modules/property-information/lib/find.js";
|
|
8
|
-
const x = {}, w = {}.hasOwnProperty, u = y("type", { handlers: { root: O, element: q, text: L, comment: S, doctype: C } });
|
|
9
|
-
function $(e, n) {
|
|
10
|
-
const r = (n || x).space;
|
|
11
|
-
return u(e, r === "svg" ? f : h);
|
|
12
|
-
}
|
|
13
|
-
function O(e, n) {
|
|
14
|
-
const t = {
|
|
15
|
-
nodeName: "#document",
|
|
16
|
-
// @ts-expect-error: `parse5` uses enums, which are actually strings.
|
|
17
|
-
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
18
|
-
childNodes: []
|
|
19
|
-
};
|
|
20
|
-
return t.childNodes = a(e.children, t, n), i(e, t), t;
|
|
21
|
-
}
|
|
22
|
-
function k(e, n) {
|
|
23
|
-
const t = { nodeName: "#document-fragment", childNodes: [] };
|
|
24
|
-
return t.childNodes = a(e.children, t, n), i(e, t), t;
|
|
25
|
-
}
|
|
26
|
-
function C(e) {
|
|
27
|
-
const n = {
|
|
28
|
-
nodeName: "#documentType",
|
|
29
|
-
name: "html",
|
|
30
|
-
publicId: "",
|
|
31
|
-
systemId: "",
|
|
32
|
-
parentNode: null
|
|
33
|
-
};
|
|
34
|
-
return i(e, n), n;
|
|
35
|
-
}
|
|
36
|
-
function L(e) {
|
|
37
|
-
const n = {
|
|
38
|
-
nodeName: "#text",
|
|
39
|
-
value: e.value,
|
|
40
|
-
parentNode: null
|
|
41
|
-
};
|
|
42
|
-
return i(e, n), n;
|
|
43
|
-
}
|
|
44
|
-
function S(e) {
|
|
45
|
-
const n = {
|
|
46
|
-
nodeName: "#comment",
|
|
47
|
-
data: e.value,
|
|
48
|
-
parentNode: null
|
|
49
|
-
};
|
|
50
|
-
return i(e, n), n;
|
|
51
|
-
}
|
|
52
|
-
function q(e, n) {
|
|
53
|
-
const t = n;
|
|
54
|
-
let r = t;
|
|
55
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && t.space === "html" && (r = f);
|
|
56
|
-
const s = [];
|
|
57
|
-
let o;
|
|
58
|
-
if (e.properties) {
|
|
59
|
-
for (o in e.properties)
|
|
60
|
-
if (o !== "children" && w.call(e.properties, o)) {
|
|
61
|
-
const m = I(
|
|
62
|
-
r,
|
|
63
|
-
o,
|
|
64
|
-
e.properties[o]
|
|
65
|
-
);
|
|
66
|
-
m && s.push(m);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
const d = r.space, c = {
|
|
70
|
-
nodeName: e.tagName,
|
|
71
|
-
tagName: e.tagName,
|
|
72
|
-
attrs: s,
|
|
73
|
-
// @ts-expect-error: `parse5` types are wrong.
|
|
74
|
-
namespaceURI: l[d],
|
|
75
|
-
childNodes: [],
|
|
76
|
-
parentNode: null
|
|
77
|
-
};
|
|
78
|
-
return c.childNodes = a(e.children, c, r), i(e, c), e.tagName === "template" && e.content && (c.content = k(e.content, r)), c;
|
|
79
|
-
}
|
|
80
|
-
function I(e, n, t) {
|
|
81
|
-
const r = b(e, n);
|
|
82
|
-
if (t === !1 || t === null || t === void 0 || typeof t == "number" && Number.isNaN(t) || !t && r.boolean)
|
|
83
|
-
return;
|
|
84
|
-
Array.isArray(t) && (t = r.commaSeparated ? N(t) : g(t));
|
|
85
|
-
const s = {
|
|
86
|
-
name: r.attribute,
|
|
87
|
-
value: t === !0 ? "" : String(t)
|
|
88
|
-
};
|
|
89
|
-
if (r.space && r.space !== "html" && r.space !== "svg") {
|
|
90
|
-
const o = s.name.indexOf(":");
|
|
91
|
-
o < 0 ? s.prefix = "" : (s.name = s.name.slice(o + 1), s.prefix = r.attribute.slice(0, o)), s.namespace = l[r.space];
|
|
92
|
-
}
|
|
93
|
-
return s;
|
|
94
|
-
}
|
|
95
|
-
function a(e, n, t) {
|
|
96
|
-
let r = -1;
|
|
97
|
-
const s = [];
|
|
98
|
-
if (e)
|
|
99
|
-
for (; ++r < e.length; ) {
|
|
100
|
-
const o = u(e[r], t);
|
|
101
|
-
o.parentNode = n, s.push(o);
|
|
102
|
-
}
|
|
103
|
-
return s;
|
|
104
|
-
}
|
|
105
|
-
function i(e, n) {
|
|
106
|
-
const t = e.position;
|
|
107
|
-
t && t.start && t.end && (p(typeof t.start.offset == "number"), p(typeof t.end.offset == "number"), n.sourceCodeLocation = {
|
|
108
|
-
startLine: t.start.line,
|
|
109
|
-
startCol: t.start.column,
|
|
110
|
-
startOffset: t.start.offset,
|
|
111
|
-
endLine: t.end.line,
|
|
112
|
-
endCol: t.end.column,
|
|
113
|
-
endOffset: t.end.offset
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
$ as toParse5
|
|
118
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { merge as m } from "./lib/util/merge.js";
|
|
2
|
-
import { xlink as o } from "./lib/xlink.js";
|
|
3
|
-
import { xml as r } from "./lib/xml.js";
|
|
4
|
-
import { xmlns as t } from "./lib/xmlns.js";
|
|
5
|
-
import { aria as i } from "./lib/aria.js";
|
|
6
|
-
import { html as s } from "./lib/html.js";
|
|
7
|
-
import { svg as p } from "./lib/svg.js";
|
|
8
|
-
const x = m([r, o, t, i, s], "html"), e = m([r, o, t, i, p], "svg");
|
|
9
|
-
export {
|
|
10
|
-
x as html,
|
|
11
|
-
e as svg
|
|
12
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { number as r, booleanish as a, spaceSeparated as i } from "./util/types.js";
|
|
2
|
-
import { create as l } from "./util/create.js";
|
|
3
|
-
const u = l({
|
|
4
|
-
transform(n, e) {
|
|
5
|
-
return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
|
|
6
|
-
},
|
|
7
|
-
properties: {
|
|
8
|
-
ariaActiveDescendant: null,
|
|
9
|
-
ariaAtomic: a,
|
|
10
|
-
ariaAutoComplete: null,
|
|
11
|
-
ariaBusy: a,
|
|
12
|
-
ariaChecked: a,
|
|
13
|
-
ariaColCount: r,
|
|
14
|
-
ariaColIndex: r,
|
|
15
|
-
ariaColSpan: r,
|
|
16
|
-
ariaControls: i,
|
|
17
|
-
ariaCurrent: null,
|
|
18
|
-
ariaDescribedBy: i,
|
|
19
|
-
ariaDetails: null,
|
|
20
|
-
ariaDisabled: a,
|
|
21
|
-
ariaDropEffect: i,
|
|
22
|
-
ariaErrorMessage: null,
|
|
23
|
-
ariaExpanded: a,
|
|
24
|
-
ariaFlowTo: i,
|
|
25
|
-
ariaGrabbed: a,
|
|
26
|
-
ariaHasPopup: null,
|
|
27
|
-
ariaHidden: a,
|
|
28
|
-
ariaInvalid: null,
|
|
29
|
-
ariaKeyShortcuts: null,
|
|
30
|
-
ariaLabel: null,
|
|
31
|
-
ariaLabelledBy: i,
|
|
32
|
-
ariaLevel: r,
|
|
33
|
-
ariaLive: null,
|
|
34
|
-
ariaModal: a,
|
|
35
|
-
ariaMultiLine: a,
|
|
36
|
-
ariaMultiSelectable: a,
|
|
37
|
-
ariaOrientation: null,
|
|
38
|
-
ariaOwns: i,
|
|
39
|
-
ariaPlaceholder: null,
|
|
40
|
-
ariaPosInSet: r,
|
|
41
|
-
ariaPressed: a,
|
|
42
|
-
ariaReadOnly: a,
|
|
43
|
-
ariaRelevant: null,
|
|
44
|
-
ariaRequired: a,
|
|
45
|
-
ariaRoleDescription: i,
|
|
46
|
-
ariaRowCount: r,
|
|
47
|
-
ariaRowIndex: r,
|
|
48
|
-
ariaRowSpan: r,
|
|
49
|
-
ariaSelected: a,
|
|
50
|
-
ariaSetSize: r,
|
|
51
|
-
ariaSort: null,
|
|
52
|
-
ariaValueMax: r,
|
|
53
|
-
ariaValueMin: r,
|
|
54
|
-
ariaValueNow: r,
|
|
55
|
-
ariaValueText: null,
|
|
56
|
-
role: null
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
u as aria
|
|
61
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { normalize as s } from "./normalize.js";
|
|
2
|
-
import { DefinedInfo as p } from "./util/defined-info.js";
|
|
3
|
-
import { Info as f } from "./util/info.js";
|
|
4
|
-
const l = /^data[-\w.:]+$/i, c = /-[a-z]/g, d = /[A-Z]/g;
|
|
5
|
-
function C(r, t) {
|
|
6
|
-
const o = s(t);
|
|
7
|
-
let i = t, a = f;
|
|
8
|
-
if (o in r.normal)
|
|
9
|
-
return r.property[r.normal[o]];
|
|
10
|
-
if (o.length > 4 && o.slice(0, 4) === "data" && l.test(t)) {
|
|
11
|
-
if (t.charAt(4) === "-") {
|
|
12
|
-
const e = t.slice(5).replace(c, h);
|
|
13
|
-
i = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
-
} else {
|
|
15
|
-
const e = t.slice(4);
|
|
16
|
-
if (!c.test(e)) {
|
|
17
|
-
let n = e.replace(d, m);
|
|
18
|
-
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
a = p;
|
|
22
|
-
}
|
|
23
|
-
return new a(i, t);
|
|
24
|
-
}
|
|
25
|
-
function m(r) {
|
|
26
|
-
return "-" + r.toLowerCase();
|
|
27
|
-
}
|
|
28
|
-
function h(r) {
|
|
29
|
-
return r.charAt(1).toUpperCase();
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
C as find
|
|
33
|
-
};
|