hasting-swatchcart-module 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/components/SwatchesModule.js +29 -26
- package/dist/main.js +4 -5
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +877 -0
- package/dist/node_modules/immer/dist/immer.js +467 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +246 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/reselect/dist/reselect.js +244 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/src/app/store/rootReducer.js +8 -8
- package/dist/src/app/store/store.js +2 -2
- package/dist/src/features/Cart/model/cartSlice.js +1 -1
- package/dist/src/features/Cart/model/selectors.js +1 -1
- package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +1 -1
- package/dist/src/features/MultiProduct/model/selectors.js +1 -1
- package/dist/src/features/swatches/model/swatchesSlice.js +29 -28
- package/dist/src/features/swatches/model/thunks.js +1 -1
- package/dist/store/LibraryProvider.js +3 -3
- package/dist/store/rootReducer.js +8 -8
- package/dist/store/store.js +2 -2
- package/package.json +1 -1
- /package/dist/assets/{src/shared/ui/PopoverTooltip/PopoverTooltip.module.css → styles/index.css} +0 -0
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as o, jsx as r, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import { useAppSelector as s } from "../src/app/store/store.js";
|
|
3
|
-
import { EDataInputType as
|
|
4
|
-
import { MultiProductWrapper as
|
|
5
|
-
import { getIsOpenSidebar as
|
|
6
|
-
import { Swatches as
|
|
3
|
+
import { EDataInputType as m } from "../src/features/DataAdapter/utils/types.js";
|
|
4
|
+
import { MultiProductWrapper as u } from "../src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js";
|
|
5
|
+
import { getIsOpenSidebar as a } from "../src/features/swatches/model/selectors.js";
|
|
6
|
+
import { Swatches as f } from "../src/features/swatches/ui/Swatches.js";
|
|
7
7
|
import { LibraryProvider as d } from "../store/LibraryProvider.js";
|
|
8
|
-
const
|
|
9
|
-
isOpen:
|
|
10
|
-
uiDataType:
|
|
11
|
-
data:
|
|
12
|
-
onToggleSidebar:
|
|
13
|
-
onSendData:
|
|
8
|
+
const L = ({
|
|
9
|
+
isOpen: i,
|
|
10
|
+
uiDataType: t,
|
|
11
|
+
data: p,
|
|
12
|
+
onToggleSidebar: l,
|
|
13
|
+
onSendData: e
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
const n = s(a);
|
|
16
|
+
return /* @__PURE__ */ o(d, { children: [
|
|
17
|
+
/* @__PURE__ */ r("button", { className: "tw-flex tw-items-center tw-gap-2 bg-amber-700", children: "Click me 2" }),
|
|
18
|
+
n ? /* @__PURE__ */ o(c, { children: [
|
|
19
|
+
t === m.DATA_ALL_PRODUCT ? /* @__PURE__ */ r(u, { onSendData: e }) : null,
|
|
20
|
+
t === m.UI ? /* @__PURE__ */ r(
|
|
21
|
+
f,
|
|
22
|
+
{
|
|
23
|
+
isOpen: i,
|
|
24
|
+
uiDataType: "UI",
|
|
25
|
+
data: p,
|
|
26
|
+
onToggleSidebar: l,
|
|
27
|
+
onSendData: e
|
|
28
|
+
}
|
|
29
|
+
) : null
|
|
30
|
+
] }) : null
|
|
31
|
+
] });
|
|
29
32
|
};
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
L as SwatchModule
|
|
32
35
|
};
|
package/dist/main.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { withStore as
|
|
3
|
-
|
|
4
|
-
const a = o
|
|
1
|
+
import { SwatchModule as o } from "./components/SwatchesModule.js";
|
|
2
|
+
import { withStore as t } from "./store/withStore.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const a = t(o);
|
|
5
5
|
export {
|
|
6
|
-
c as LibraryProvider,
|
|
7
6
|
a as SwatchModule
|
|
8
7
|
};
|