hasting-swatchcart-module 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/SwatchesModule.css +1 -0
- package/dist/components/SwatchesModule.js +23440 -24
- package/dist/components/Test.js +5 -0
- package/dist/lib/components/Test.d.ts +1 -0
- package/dist/main.js +0 -1
- package/dist/{src/shared/constants/props.js → rootReducer-BqfJd5QI.js} +1913 -3
- package/dist/store/LibraryProvider.js +3 -4
- package/dist/store/rootReducer.js +2 -10
- package/dist/store/store.js +5 -15
- package/dist/store-BZ_1BK_I.js +382 -0
- package/package.json +1 -1
- 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/assets/styles/index.css +0 -1
- package/dist/main.d.ts +0 -1
- 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/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/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
- /package/dist/{components → lib/components}/SwatchesModule.d.ts +0 -0
- /package/dist/{store → lib/store}/LibraryProvider.d.ts +0 -0
- /package/dist/{store → lib/store}/rootReducer.d.ts +0 -0
- /package/dist/{store → lib/store}/store.d.ts +0 -0
- /package/dist/{store → lib/store}/withStore.d.ts +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { composeEventHandlers as m } from "../../primitive/dist/index.js";
|
|
3
|
-
import { useComposedRefs as A } from "../../react-compose-refs/dist/index.js";
|
|
4
|
-
import { createContextScope as k } from "../../react-context/dist/index.js";
|
|
5
|
-
import { DismissableLayer as I } from "../../react-dismissable-layer/dist/index.js";
|
|
6
|
-
import { useFocusGuards as T } from "../../react-focus-guards/dist/index.js";
|
|
7
|
-
import { FocusScope as L } from "../../react-focus-scope/dist/index.js";
|
|
8
|
-
import { useId as G } from "../../react-id/dist/index.js";
|
|
9
|
-
import { createPopperScope as O, Root as H, Anchor as _, Content as K, Arrow as j } from "../../react-popper/dist/index.js";
|
|
10
|
-
import { Presence as U } from "../../react-presence/dist/index.js";
|
|
11
|
-
import { Primitive as x } from "../../react-primitive/dist/index.js";
|
|
12
|
-
import { createSlot as V } from "../../react-slot/dist/index.js";
|
|
13
|
-
import { useControllableState as W } from "../../react-use-controllable-state/dist/index.js";
|
|
14
|
-
import { hideOthers as Z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
15
|
-
import $ from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
16
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
17
|
-
var C = "Popover", [w] = k(C, [
|
|
18
|
-
O
|
|
19
|
-
]), P = O(), [q, l] = w(C), E = (o) => {
|
|
20
|
-
const {
|
|
21
|
-
__scopePopover: a,
|
|
22
|
-
children: t,
|
|
23
|
-
open: n,
|
|
24
|
-
defaultOpen: e,
|
|
25
|
-
onOpenChange: r,
|
|
26
|
-
modal: s = !1
|
|
27
|
-
} = o, i = P(a), d = c.useRef(null), [v, g] = c.useState(!1), [h, u] = W({
|
|
28
|
-
prop: n,
|
|
29
|
-
defaultProp: e ?? !1,
|
|
30
|
-
onChange: r,
|
|
31
|
-
caller: C
|
|
32
|
-
});
|
|
33
|
-
return /* @__PURE__ */ p(H, { ...i, children: /* @__PURE__ */ p(
|
|
34
|
-
q,
|
|
35
|
-
{
|
|
36
|
-
scope: a,
|
|
37
|
-
contentId: G(),
|
|
38
|
-
triggerRef: d,
|
|
39
|
-
open: h,
|
|
40
|
-
onOpenChange: u,
|
|
41
|
-
onOpenToggle: c.useCallback(() => u((R) => !R), [u]),
|
|
42
|
-
hasCustomAnchor: v,
|
|
43
|
-
onCustomAnchorAdd: c.useCallback(() => g(!0), []),
|
|
44
|
-
onCustomAnchorRemove: c.useCallback(() => g(!1), []),
|
|
45
|
-
modal: s,
|
|
46
|
-
children: t
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
};
|
|
50
|
-
E.displayName = C;
|
|
51
|
-
var b = "PopoverAnchor", z = c.forwardRef(
|
|
52
|
-
(o, a) => {
|
|
53
|
-
const { __scopePopover: t, ...n } = o, e = l(b, t), r = P(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = e;
|
|
54
|
-
return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(_, { ...r, ...n, ref: a });
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
z.displayName = b;
|
|
58
|
-
var F = "PopoverTrigger", N = c.forwardRef(
|
|
59
|
-
(o, a) => {
|
|
60
|
-
const { __scopePopover: t, ...n } = o, e = l(F, t), r = P(t), s = A(a, e.triggerRef), i = /* @__PURE__ */ p(
|
|
61
|
-
x.button,
|
|
62
|
-
{
|
|
63
|
-
type: "button",
|
|
64
|
-
"aria-haspopup": "dialog",
|
|
65
|
-
"aria-expanded": e.open,
|
|
66
|
-
"aria-controls": e.contentId,
|
|
67
|
-
"data-state": M(e.open),
|
|
68
|
-
...n,
|
|
69
|
-
ref: s,
|
|
70
|
-
onClick: m(o.onClick, e.onOpenToggle)
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
return e.hasCustomAnchor ? i : /* @__PURE__ */ p(_, { asChild: !0, ...r, children: i });
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
N.displayName = F;
|
|
77
|
-
var B = "PopoverPortal", [Co, J] = w(B, {
|
|
78
|
-
forceMount: void 0
|
|
79
|
-
}), f = "PopoverContent", S = c.forwardRef(
|
|
80
|
-
(o, a) => {
|
|
81
|
-
const t = J(f, o.__scopePopover), { forceMount: n = t.forceMount, ...e } = o, r = l(f, o.__scopePopover);
|
|
82
|
-
return /* @__PURE__ */ p(U, { present: n || r.open, children: r.modal ? /* @__PURE__ */ p(X, { ...e, ref: a }) : /* @__PURE__ */ p(Y, { ...e, ref: a }) });
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
S.displayName = f;
|
|
86
|
-
var Q = V("PopoverContent.RemoveScroll"), X = c.forwardRef(
|
|
87
|
-
(o, a) => {
|
|
88
|
-
const t = l(f, o.__scopePopover), n = c.useRef(null), e = A(a, n), r = c.useRef(!1);
|
|
89
|
-
return c.useEffect(() => {
|
|
90
|
-
const s = n.current;
|
|
91
|
-
if (s) return Z(s);
|
|
92
|
-
}, []), /* @__PURE__ */ p($, { as: Q, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
93
|
-
y,
|
|
94
|
-
{
|
|
95
|
-
...o,
|
|
96
|
-
ref: e,
|
|
97
|
-
trapFocus: t.open,
|
|
98
|
-
disableOutsidePointerEvents: !0,
|
|
99
|
-
onCloseAutoFocus: m(o.onCloseAutoFocus, (s) => {
|
|
100
|
-
s.preventDefault(), r.current || t.triggerRef.current?.focus();
|
|
101
|
-
}),
|
|
102
|
-
onPointerDownOutside: m(
|
|
103
|
-
o.onPointerDownOutside,
|
|
104
|
-
(s) => {
|
|
105
|
-
const i = s.detail.originalEvent, d = i.button === 0 && i.ctrlKey === !0, v = i.button === 2 || d;
|
|
106
|
-
r.current = v;
|
|
107
|
-
},
|
|
108
|
-
{ checkForDefaultPrevented: !1 }
|
|
109
|
-
),
|
|
110
|
-
onFocusOutside: m(
|
|
111
|
-
o.onFocusOutside,
|
|
112
|
-
(s) => s.preventDefault(),
|
|
113
|
-
{ checkForDefaultPrevented: !1 }
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
) });
|
|
117
|
-
}
|
|
118
|
-
), Y = c.forwardRef(
|
|
119
|
-
(o, a) => {
|
|
120
|
-
const t = l(f, o.__scopePopover), n = c.useRef(!1), e = c.useRef(!1);
|
|
121
|
-
return /* @__PURE__ */ p(
|
|
122
|
-
y,
|
|
123
|
-
{
|
|
124
|
-
...o,
|
|
125
|
-
ref: a,
|
|
126
|
-
trapFocus: !1,
|
|
127
|
-
disableOutsidePointerEvents: !1,
|
|
128
|
-
onCloseAutoFocus: (r) => {
|
|
129
|
-
o.onCloseAutoFocus?.(r), r.defaultPrevented || (n.current || t.triggerRef.current?.focus(), r.preventDefault()), n.current = !1, e.current = !1;
|
|
130
|
-
},
|
|
131
|
-
onInteractOutside: (r) => {
|
|
132
|
-
o.onInteractOutside?.(r), r.defaultPrevented || (n.current = !0, r.detail.originalEvent.type === "pointerdown" && (e.current = !0));
|
|
133
|
-
const s = r.target;
|
|
134
|
-
t.triggerRef.current?.contains(s) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && e.current && r.preventDefault();
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
), y = c.forwardRef(
|
|
140
|
-
(o, a) => {
|
|
141
|
-
const {
|
|
142
|
-
__scopePopover: t,
|
|
143
|
-
trapFocus: n,
|
|
144
|
-
onOpenAutoFocus: e,
|
|
145
|
-
onCloseAutoFocus: r,
|
|
146
|
-
disableOutsidePointerEvents: s,
|
|
147
|
-
onEscapeKeyDown: i,
|
|
148
|
-
onPointerDownOutside: d,
|
|
149
|
-
onFocusOutside: v,
|
|
150
|
-
onInteractOutside: g,
|
|
151
|
-
...h
|
|
152
|
-
} = o, u = l(f, t), R = P(t);
|
|
153
|
-
return T(), /* @__PURE__ */ p(
|
|
154
|
-
L,
|
|
155
|
-
{
|
|
156
|
-
asChild: !0,
|
|
157
|
-
loop: !0,
|
|
158
|
-
trapped: n,
|
|
159
|
-
onMountAutoFocus: e,
|
|
160
|
-
onUnmountAutoFocus: r,
|
|
161
|
-
children: /* @__PURE__ */ p(
|
|
162
|
-
I,
|
|
163
|
-
{
|
|
164
|
-
asChild: !0,
|
|
165
|
-
disableOutsidePointerEvents: s,
|
|
166
|
-
onInteractOutside: g,
|
|
167
|
-
onEscapeKeyDown: i,
|
|
168
|
-
onPointerDownOutside: d,
|
|
169
|
-
onFocusOutside: v,
|
|
170
|
-
onDismiss: () => u.onOpenChange(!1),
|
|
171
|
-
children: /* @__PURE__ */ p(
|
|
172
|
-
K,
|
|
173
|
-
{
|
|
174
|
-
"data-state": M(u.open),
|
|
175
|
-
role: "dialog",
|
|
176
|
-
id: u.contentId,
|
|
177
|
-
...R,
|
|
178
|
-
...h,
|
|
179
|
-
ref: a,
|
|
180
|
-
style: {
|
|
181
|
-
...h.style,
|
|
182
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
183
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
184
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
185
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
186
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
), D = "PopoverClose", oo = c.forwardRef(
|
|
196
|
-
(o, a) => {
|
|
197
|
-
const { __scopePopover: t, ...n } = o, e = l(D, t);
|
|
198
|
-
return /* @__PURE__ */ p(
|
|
199
|
-
x.button,
|
|
200
|
-
{
|
|
201
|
-
type: "button",
|
|
202
|
-
...n,
|
|
203
|
-
ref: a,
|
|
204
|
-
onClick: m(o.onClick, () => e.onOpenChange(!1))
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
oo.displayName = D;
|
|
210
|
-
var eo = "PopoverArrow", ro = c.forwardRef(
|
|
211
|
-
(o, a) => {
|
|
212
|
-
const { __scopePopover: t, ...n } = o, e = P(t);
|
|
213
|
-
return /* @__PURE__ */ p(j, { ...e, ...n, ref: a });
|
|
214
|
-
}
|
|
215
|
-
);
|
|
216
|
-
ro.displayName = eo;
|
|
217
|
-
function M(o) {
|
|
218
|
-
return o ? "open" : "closed";
|
|
219
|
-
}
|
|
220
|
-
var Ro = E, Ao = N, Oo = S;
|
|
221
|
-
export {
|
|
222
|
-
Oo as Content,
|
|
223
|
-
E as Popover,
|
|
224
|
-
z as PopoverAnchor,
|
|
225
|
-
ro as PopoverArrow,
|
|
226
|
-
oo as PopoverClose,
|
|
227
|
-
S as PopoverContent,
|
|
228
|
-
N as PopoverTrigger,
|
|
229
|
-
Ro as Root,
|
|
230
|
-
Ao as Trigger
|
|
231
|
-
};
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import * as p from "react";
|
|
2
|
-
import { useFloating as fe, offset as me, shift as he, flip as ue, size as ge, arrow as we, hide as Pe, limitShift as xe } from "../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
3
|
-
import { Root as ye } from "../../react-arrow/dist/index.js";
|
|
4
|
-
import { useComposedRefs as I } from "../../react-compose-refs/dist/index.js";
|
|
5
|
-
import { createContextScope as Ae } from "../../react-context/dist/index.js";
|
|
6
|
-
import { Primitive as Y } from "../../react-primitive/dist/index.js";
|
|
7
|
-
import { useCallbackRef as ve } from "../../react-use-callback-ref/dist/index.js";
|
|
8
|
-
import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.js";
|
|
9
|
-
import { useSize as Ce } from "../../react-use-size/dist/index.js";
|
|
10
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
11
|
-
import { autoUpdate as Se } from "../../../@floating-ui/dom/dist/floating-ui.dom.js";
|
|
12
|
-
var R = "Popper", [M, ke] = Ae(R), [Re, X] = M(R), D = (e) => {
|
|
13
|
-
const { __scopePopper: i, children: n } = e, [s, a] = p.useState(null);
|
|
14
|
-
return /* @__PURE__ */ f(Re, { scope: i, anchor: s, onAnchorChange: a, children: n });
|
|
15
|
-
};
|
|
16
|
-
D.displayName = R;
|
|
17
|
-
var F = "PopperAnchor", k = p.forwardRef(
|
|
18
|
-
(e, i) => {
|
|
19
|
-
const { __scopePopper: n, virtualRef: s, ...a } = e, t = X(F, n), r = p.useRef(null), u = I(i, r), o = p.useRef(null);
|
|
20
|
-
return p.useEffect(() => {
|
|
21
|
-
const c = o.current;
|
|
22
|
-
o.current = s?.current || r.current, c !== o.current && t.onAnchorChange(o.current);
|
|
23
|
-
}), s ? null : /* @__PURE__ */ f(Y.div, { ...a, ref: u });
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
k.displayName = F;
|
|
27
|
-
var b = "PopperContent", [be, Oe] = M(b), B = p.forwardRef(
|
|
28
|
-
(e, i) => {
|
|
29
|
-
const {
|
|
30
|
-
__scopePopper: n,
|
|
31
|
-
side: s = "bottom",
|
|
32
|
-
sideOffset: a = 0,
|
|
33
|
-
align: t = "center",
|
|
34
|
-
alignOffset: r = 0,
|
|
35
|
-
arrowPadding: u = 0,
|
|
36
|
-
avoidCollisions: o = !0,
|
|
37
|
-
collisionBoundary: c = [],
|
|
38
|
-
collisionPadding: g = 0,
|
|
39
|
-
sticky: m = "partial",
|
|
40
|
-
hideWhenDetached: P = !1,
|
|
41
|
-
updatePositionStrategy: x = "optimized",
|
|
42
|
-
onPlaced: d,
|
|
43
|
-
...l
|
|
44
|
-
} = e, Z = X(b, n), [C, U] = p.useState(null), q = I(i, (w) => U(w)), [S, G] = p.useState(null), O = Ce(S), J = O?.width ?? 0, E = O?.height ?? 0, K = s + (t !== "center" ? "-" + t : ""), Q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
|
|
45
|
-
padding: Q,
|
|
46
|
-
boundary: N.filter(Ne),
|
|
47
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
48
|
-
altBoundary: V
|
|
49
|
-
}, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
|
|
50
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
51
|
-
strategy: "fixed",
|
|
52
|
-
placement: K,
|
|
53
|
-
whileElementsMounted: (...w) => Se(...w, {
|
|
54
|
-
animationFrame: x === "always"
|
|
55
|
-
}),
|
|
56
|
-
elements: {
|
|
57
|
-
reference: Z.anchor
|
|
58
|
-
},
|
|
59
|
-
middleware: [
|
|
60
|
-
me({ mainAxis: a + E, alignmentAxis: r }),
|
|
61
|
-
o && he({
|
|
62
|
-
mainAxis: !0,
|
|
63
|
-
crossAxis: !1,
|
|
64
|
-
limiter: m === "partial" ? xe() : void 0,
|
|
65
|
-
...y
|
|
66
|
-
}),
|
|
67
|
-
o && ue({ ...y }),
|
|
68
|
-
ge({
|
|
69
|
-
...y,
|
|
70
|
-
apply: ({ elements: w, rects: W, availableWidth: ce, availableHeight: pe }) => {
|
|
71
|
-
const { width: le, height: de } = W.reference, v = w.floating.style;
|
|
72
|
-
v.setProperty("--radix-popper-available-width", `${ce}px`), v.setProperty("--radix-popper-available-height", `${pe}px`), v.setProperty("--radix-popper-anchor-width", `${le}px`), v.setProperty("--radix-popper-anchor-height", `${de}px`);
|
|
73
|
-
}
|
|
74
|
-
}),
|
|
75
|
-
S && we({ element: S, padding: u }),
|
|
76
|
-
_e({ arrowWidth: J, arrowHeight: E }),
|
|
77
|
-
P && Pe({ strategy: "referenceHidden", ...y })
|
|
78
|
-
]
|
|
79
|
-
}), [$, re] = L(te), H = ve(d);
|
|
80
|
-
z(() => {
|
|
81
|
-
A && H?.();
|
|
82
|
-
}, [A, H]);
|
|
83
|
-
const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = p.useState();
|
|
84
|
-
return z(() => {
|
|
85
|
-
C && se(window.getComputedStyle(C).zIndex);
|
|
86
|
-
}, [C]), /* @__PURE__ */ f(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
ref: ee.setFloating,
|
|
90
|
-
"data-radix-popper-content-wrapper": "",
|
|
91
|
-
style: {
|
|
92
|
-
..._,
|
|
93
|
-
transform: A ? _.transform : "translate(0, -200%)",
|
|
94
|
-
// keep off the page when measuring
|
|
95
|
-
minWidth: "max-content",
|
|
96
|
-
zIndex: ie,
|
|
97
|
-
"--radix-popper-transform-origin": [
|
|
98
|
-
h.transformOrigin?.x,
|
|
99
|
-
h.transformOrigin?.y
|
|
100
|
-
].join(" "),
|
|
101
|
-
// hide the content if using the hide middleware and should be hidden
|
|
102
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
103
|
-
// as if the PopperContent isn't there at all
|
|
104
|
-
...h.hide?.referenceHidden && {
|
|
105
|
-
visibility: "hidden",
|
|
106
|
-
pointerEvents: "none"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
dir: e.dir,
|
|
110
|
-
children: /* @__PURE__ */ f(
|
|
111
|
-
be,
|
|
112
|
-
{
|
|
113
|
-
scope: n,
|
|
114
|
-
placedSide: $,
|
|
115
|
-
onArrowChange: G,
|
|
116
|
-
arrowX: oe,
|
|
117
|
-
arrowY: ne,
|
|
118
|
-
shouldHideArrow: ae,
|
|
119
|
-
children: /* @__PURE__ */ f(
|
|
120
|
-
Y.div,
|
|
121
|
-
{
|
|
122
|
-
"data-side": $,
|
|
123
|
-
"data-align": re,
|
|
124
|
-
...l,
|
|
125
|
-
ref: q,
|
|
126
|
-
style: {
|
|
127
|
-
...l.style,
|
|
128
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
129
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
130
|
-
animation: A ? void 0 : "none"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
B.displayName = b;
|
|
141
|
-
var T = "PopperArrow", Ee = {
|
|
142
|
-
top: "bottom",
|
|
143
|
-
right: "left",
|
|
144
|
-
bottom: "top",
|
|
145
|
-
left: "right"
|
|
146
|
-
}, j = p.forwardRef(function(i, n) {
|
|
147
|
-
const { __scopePopper: s, ...a } = i, t = Oe(T, s), r = Ee[t.placedSide];
|
|
148
|
-
return (
|
|
149
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
150
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
151
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
152
|
-
/* @__PURE__ */ f(
|
|
153
|
-
"span",
|
|
154
|
-
{
|
|
155
|
-
ref: t.onArrowChange,
|
|
156
|
-
style: {
|
|
157
|
-
position: "absolute",
|
|
158
|
-
left: t.arrowX,
|
|
159
|
-
top: t.arrowY,
|
|
160
|
-
[r]: 0,
|
|
161
|
-
transformOrigin: {
|
|
162
|
-
top: "",
|
|
163
|
-
right: "0 0",
|
|
164
|
-
bottom: "center 0",
|
|
165
|
-
left: "100% 0"
|
|
166
|
-
}[t.placedSide],
|
|
167
|
-
transform: {
|
|
168
|
-
top: "translateY(100%)",
|
|
169
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
170
|
-
bottom: "rotate(180deg)",
|
|
171
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
172
|
-
}[t.placedSide],
|
|
173
|
-
visibility: t.shouldHideArrow ? "hidden" : void 0
|
|
174
|
-
},
|
|
175
|
-
children: /* @__PURE__ */ f(
|
|
176
|
-
ye,
|
|
177
|
-
{
|
|
178
|
-
...a,
|
|
179
|
-
ref: n,
|
|
180
|
-
style: {
|
|
181
|
-
...a.style,
|
|
182
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
183
|
-
display: "block"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
);
|
|
190
|
-
});
|
|
191
|
-
j.displayName = T;
|
|
192
|
-
function Ne(e) {
|
|
193
|
-
return e !== null;
|
|
194
|
-
}
|
|
195
|
-
var _e = (e) => ({
|
|
196
|
-
name: "transformOrigin",
|
|
197
|
-
options: e,
|
|
198
|
-
fn(i) {
|
|
199
|
-
const { placement: n, rects: s, middlewareData: a } = i, r = a.arrow?.centerOffset !== 0, u = r ? 0 : e.arrowWidth, o = r ? 0 : e.arrowHeight, [c, g] = L(n), m = { start: "0%", center: "50%", end: "100%" }[g], P = (a.arrow?.x ?? 0) + u / 2, x = (a.arrow?.y ?? 0) + o / 2;
|
|
200
|
-
let d = "", l = "";
|
|
201
|
-
return c === "bottom" ? (d = r ? m : `${P}px`, l = `${-o}px`) : c === "top" ? (d = r ? m : `${P}px`, l = `${s.floating.height + o}px`) : c === "right" ? (d = `${-o}px`, l = r ? m : `${x}px`) : c === "left" && (d = `${s.floating.width + o}px`, l = r ? m : `${x}px`), { data: { x: d, y: l } };
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
function L(e) {
|
|
205
|
-
const [i, n = "center"] = e.split("-");
|
|
206
|
-
return [i, n];
|
|
207
|
-
}
|
|
208
|
-
var Be = D, Te = k, je = B, Le = j;
|
|
209
|
-
export {
|
|
210
|
-
Te as Anchor,
|
|
211
|
-
Le as Arrow,
|
|
212
|
-
je as Content,
|
|
213
|
-
D as Popper,
|
|
214
|
-
k as PopperAnchor,
|
|
215
|
-
j as PopperArrow,
|
|
216
|
-
B as PopperContent,
|
|
217
|
-
Be as Root,
|
|
218
|
-
ke as createPopperScope
|
|
219
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import n from "react-dom";
|
|
3
|
-
import { Primitive as s } from "../../react-primitive/dist/index.js";
|
|
4
|
-
import { useLayoutEffect as c } from "../../react-use-layout-effect/dist/index.js";
|
|
5
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
-
var l = "Portal", p = o.forwardRef((r, e) => {
|
|
7
|
-
const { container: a, ...f } = r, [i, m] = o.useState(!1);
|
|
8
|
-
c(() => m(!0), []);
|
|
9
|
-
const t = a || i && globalThis?.document?.body;
|
|
10
|
-
return t ? n.createPortal(/* @__PURE__ */ u(s.div, { ...f, ref: e }), t) : null;
|
|
11
|
-
});
|
|
12
|
-
p.displayName = l;
|
|
13
|
-
export {
|
|
14
|
-
p as Portal
|
|
15
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
import { useComposedRefs as O } from "../../react-compose-refs/dist/index.js";
|
|
3
|
-
import { useLayoutEffect as A } from "../../react-use-layout-effect/dist/index.js";
|
|
4
|
-
function E(n, e) {
|
|
5
|
-
return i.useReducer((t, r) => e[t][r] ?? t, n);
|
|
6
|
-
}
|
|
7
|
-
var T = (n) => {
|
|
8
|
-
const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
|
|
9
|
-
return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
|
|
10
|
-
};
|
|
11
|
-
T.displayName = "Presence";
|
|
12
|
-
function R(n) {
|
|
13
|
-
const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
|
|
14
|
-
mounted: {
|
|
15
|
-
UNMOUNT: "unmounted",
|
|
16
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
17
|
-
},
|
|
18
|
-
unmountSuspended: {
|
|
19
|
-
MOUNT: "mounted",
|
|
20
|
-
ANIMATION_END: "unmounted"
|
|
21
|
-
},
|
|
22
|
-
unmounted: {
|
|
23
|
-
MOUNT: "mounted"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
return i.useEffect(() => {
|
|
27
|
-
const o = l(r.current);
|
|
28
|
-
c.current = N === "mounted" ? o : "none";
|
|
29
|
-
}, [N]), A(() => {
|
|
30
|
-
const o = r.current, m = a.current;
|
|
31
|
-
if (m !== n) {
|
|
32
|
-
const f = c.current, u = l(o);
|
|
33
|
-
n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
|
|
34
|
-
}
|
|
35
|
-
}, [n, s]), A(() => {
|
|
36
|
-
if (e) {
|
|
37
|
-
let o;
|
|
38
|
-
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
39
|
-
const g = l(r.current).includes(CSS.escape(u.animationName));
|
|
40
|
-
if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
|
|
41
|
-
const y = e.style.animationFillMode;
|
|
42
|
-
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
43
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}, f = (u) => {
|
|
47
|
-
u.target === e && (c.current = l(r.current));
|
|
48
|
-
};
|
|
49
|
-
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
-
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
|
-
};
|
|
52
|
-
} else
|
|
53
|
-
s("ANIMATION_END");
|
|
54
|
-
}, [e, s]), {
|
|
55
|
-
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
56
|
-
ref: i.useCallback((o) => {
|
|
57
|
-
r.current = o ? getComputedStyle(o) : null, t(o);
|
|
58
|
-
}, [])
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function l(n) {
|
|
62
|
-
return n?.animationName || "none";
|
|
63
|
-
}
|
|
64
|
-
function v(n) {
|
|
65
|
-
let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
66
|
-
return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
T as Presence
|
|
70
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import * as p from "react-dom";
|
|
3
|
-
import { createSlot as c } from "../../react-slot/dist/index.js";
|
|
4
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
var u = [
|
|
6
|
-
"a",
|
|
7
|
-
"button",
|
|
8
|
-
"div",
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"select",
|
|
20
|
-
"span",
|
|
21
|
-
"svg",
|
|
22
|
-
"ul"
|
|
23
|
-
], h = u.reduce((t, i) => {
|
|
24
|
-
const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
|
-
const { asChild: s, ...a } = e, n = s ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
27
|
-
});
|
|
28
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
-
}, {});
|
|
30
|
-
function w(t, i) {
|
|
31
|
-
t && p.flushSync(() => t.dispatchEvent(i));
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
h as Primitive,
|
|
35
|
-
w as dispatchDiscreteCustomEvent
|
|
36
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import { composeRefs as m } from "../../react-compose-refs/dist/index.js";
|
|
3
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
-
// @__NO_SIDE_EFFECTS__
|
|
5
|
-
function b(e) {
|
|
6
|
-
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
7
|
-
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
8
|
-
if (a) {
|
|
9
|
-
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
-
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
13
|
-
});
|
|
14
|
-
return t.displayName = `${e}.Slot`, t;
|
|
15
|
-
}
|
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
|
17
|
-
function y(e) {
|
|
18
|
-
const r = l.forwardRef((t, o) => {
|
|
19
|
-
const { children: n, ...i } = t;
|
|
20
|
-
if (l.isValidElement(n)) {
|
|
21
|
-
const c = S(n), s = C(i, n.props);
|
|
22
|
-
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
-
}
|
|
24
|
-
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
-
});
|
|
26
|
-
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
-
}
|
|
28
|
-
var g = Symbol("radix.slottable");
|
|
29
|
-
function E(e) {
|
|
30
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
31
|
-
}
|
|
32
|
-
function C(e, r) {
|
|
33
|
-
const t = { ...r };
|
|
34
|
-
for (const o in r) {
|
|
35
|
-
const n = e[o], i = r[o];
|
|
36
|
-
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
-
const a = i(...s);
|
|
38
|
-
return n(...s), a;
|
|
39
|
-
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
-
}
|
|
41
|
-
return { ...e, ...t };
|
|
42
|
-
}
|
|
43
|
-
function S(e) {
|
|
44
|
-
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
-
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
b as createSlot
|
|
49
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import { useLayoutEffect as m } from "../../react-use-layout-effect/dist/index.js";
|
|
3
|
-
var v = o[" useInsertionEffect ".trim().toString()] || m;
|
|
4
|
-
function w({
|
|
5
|
-
prop: e,
|
|
6
|
-
defaultProp: s,
|
|
7
|
-
onChange: t = () => {
|
|
8
|
-
},
|
|
9
|
-
caller: f
|
|
10
|
-
}) {
|
|
11
|
-
const [u, c, i] = R({
|
|
12
|
-
defaultProp: s,
|
|
13
|
-
onChange: t
|
|
14
|
-
}), n = e !== void 0, a = n ? e : u;
|
|
15
|
-
{
|
|
16
|
-
const r = o.useRef(e !== void 0);
|
|
17
|
-
o.useEffect(() => {
|
|
18
|
-
const l = r.current;
|
|
19
|
-
l !== n && console.warn(
|
|
20
|
-
`${f} is changing from ${l ? "controlled" : "uncontrolled"} to ${n ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
21
|
-
), r.current = n;
|
|
22
|
-
}, [n, f]);
|
|
23
|
-
}
|
|
24
|
-
const d = o.useCallback(
|
|
25
|
-
(r) => {
|
|
26
|
-
if (n) {
|
|
27
|
-
const l = C(r) ? r(e) : r;
|
|
28
|
-
l !== e && i.current?.(l);
|
|
29
|
-
} else
|
|
30
|
-
c(r);
|
|
31
|
-
},
|
|
32
|
-
[n, e, c, i]
|
|
33
|
-
);
|
|
34
|
-
return [a, d];
|
|
35
|
-
}
|
|
36
|
-
function R({
|
|
37
|
-
defaultProp: e,
|
|
38
|
-
onChange: s
|
|
39
|
-
}) {
|
|
40
|
-
const [t, f] = o.useState(e), u = o.useRef(t), c = o.useRef(s);
|
|
41
|
-
return v(() => {
|
|
42
|
-
c.current = s;
|
|
43
|
-
}, [s]), o.useEffect(() => {
|
|
44
|
-
u.current !== t && (c.current?.(t), u.current = t);
|
|
45
|
-
}, [t, u]), [t, f, c];
|
|
46
|
-
}
|
|
47
|
-
function C(e) {
|
|
48
|
-
return typeof e == "function";
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
w as useControllableState
|
|
52
|
-
};
|