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.
Files changed (28) hide show
  1. package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
  2. package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
  3. package/dist/_virtual/with-selector.js +5 -0
  4. package/dist/_virtual/with-selector2.js +4 -0
  5. package/dist/components/SwatchesModule.js +29 -26
  6. package/dist/main.js +4 -5
  7. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +877 -0
  8. package/dist/node_modules/immer/dist/immer.js +467 -0
  9. package/dist/node_modules/react-redux/dist/react-redux.js +246 -0
  10. package/dist/node_modules/redux/dist/redux.js +258 -0
  11. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
  12. package/dist/node_modules/reselect/dist/reselect.js +244 -0
  13. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
  14. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
  15. package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
  16. package/dist/src/app/store/rootReducer.js +8 -8
  17. package/dist/src/app/store/store.js +2 -2
  18. package/dist/src/features/Cart/model/cartSlice.js +1 -1
  19. package/dist/src/features/Cart/model/selectors.js +1 -1
  20. package/dist/src/features/MultiProduct/model/multiProductCartSlice.js +1 -1
  21. package/dist/src/features/MultiProduct/model/selectors.js +1 -1
  22. package/dist/src/features/swatches/model/swatchesSlice.js +29 -28
  23. package/dist/src/features/swatches/model/thunks.js +1 -1
  24. package/dist/store/LibraryProvider.js +3 -3
  25. package/dist/store/rootReducer.js +8 -8
  26. package/dist/store/store.js +2 -2
  27. package/package.json +1 -1
  28. /package/dist/assets/{src/shared/ui/PopoverTooltip/PopoverTooltip.module.css → styles/index.css} +0 -0
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "../node_modules/use-sync-external-store/with-selector.js";
2
+ var t = r();
3
+ export {
4
+ t as w
5
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -1,32 +1,35 @@
1
- import { jsx as r, jsxs as n, Fragment as u } from "react/jsx-runtime";
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 e } from "../src/features/DataAdapter/utils/types.js";
4
- import { MultiProductWrapper as c } from "../src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js";
5
- import { getIsOpenSidebar as f } from "../src/features/swatches/model/selectors.js";
6
- import { Swatches as a } from "../src/features/swatches/ui/Swatches.js";
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 P = ({
9
- isOpen: p,
10
- uiDataType: o,
11
- data: m,
12
- onToggleSidebar: i,
13
- onSendData: t
8
+ const L = ({
9
+ isOpen: i,
10
+ uiDataType: t,
11
+ data: p,
12
+ onToggleSidebar: l,
13
+ onSendData: e
14
14
  }) => {
15
- const l = s(f);
16
- return /* @__PURE__ */ r(d, { children: l ? /* @__PURE__ */ n(u, { children: [
17
- o === e.DATA_ALL_PRODUCT ? /* @__PURE__ */ r(c, { onSendData: t }) : null,
18
- o === e.UI ? /* @__PURE__ */ r(
19
- a,
20
- {
21
- isOpen: p,
22
- uiDataType: "UI",
23
- data: m,
24
- onToggleSidebar: i,
25
- onSendData: t
26
- }
27
- ) : null
28
- ] }) : null });
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
- P as SwatchModule
34
+ L as SwatchModule
32
35
  };
package/dist/main.js CHANGED
@@ -1,8 +1,7 @@
1
- import { LibraryProvider as c } from "./store/LibraryProvider.js";
2
- import { withStore as o } from "./store/withStore.js";
3
- import { SwatchModule as r } from "./components/SwatchesModule.js";
4
- const a = o(r);
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
  };