@xyo-network/react-storybook 2.60.12 → 2.61.0

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.
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useAppThemeDecorator = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const lodash_1 = require("@xylabs/lodash");
6
6
  const react_invertible_theme_1 = require("@xylabs/react-invertible-theme");
7
7
  const react_theme_1 = require("@xyo-network/react-theme");
8
- const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
9
8
  const storybook_dark_mode_1 = require("storybook-dark-mode");
10
9
  const useAppThemeDecorator = (Story, { args }) => {
11
10
  const darkMode = (0, storybook_dark_mode_1.useDarkMode)();
12
- const mergedThemeOptions = (0, merge_1.default)(react_theme_1.themeOptions, react_theme_1.appThemeOptions);
11
+ const mergedThemeOptions = (0, lodash_1.merge)(react_theme_1.themeOptions, react_theme_1.appThemeOptions);
13
12
  return ((0, jsx_runtime_1.jsx)(react_invertible_theme_1.InvertibleThemeProvider, Object.assign({ dark: darkMode, options: mergedThemeOptions, lightOptions: react_theme_1.partialAppLightThemeOptions, darkOptions: react_theme_1.partialAppDarkThemeOptions }, { children: (0, jsx_runtime_1.jsx)(Story, Object.assign({}, args)) })));
14
13
  };
15
14
  exports.useAppThemeDecorator = useAppThemeDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"useAppThemeDecorator.js","sourceRoot":"","sources":["../../src/useAppThemeDecorator.tsx"],"names":[],"mappings":";;;;;AACA,2EAAwE;AACxE,0DAAiI;AACjI,iEAAgC;AAChC,6DAAiD;AAEjD,MAAM,oBAAoB,GAAc,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,IAAA,iCAAW,GAAE,CAAA;IAC9B,MAAM,kBAAkB,GAAG,IAAA,eAAK,EAAC,0BAAY,EAAE,6BAAe,CAAC,CAAA;IAC/D,OAAO,CACL,uBAAC,gDAAuB,kBACtB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,yCAA2B,EACzC,WAAW,EAAE,wCAA0B,gBAEvC,uBAAC,KAAK,oBAAK,IAAI,EAAI,IACK,CAC3B,CAAA;AACH,CAAC,CAAA;AAEQ,oDAAoB"}
1
+ {"version":3,"file":"useAppThemeDecorator.js","sourceRoot":"","sources":["../../src/useAppThemeDecorator.tsx"],"names":[],"mappings":";;;;AACA,2CAAsC;AACtC,2EAAwE;AACxE,0DAAiI;AACjI,6DAAiD;AAEjD,MAAM,oBAAoB,GAAc,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,IAAA,iCAAW,GAAE,CAAA;IAC9B,MAAM,kBAAkB,GAAG,IAAA,cAAK,EAAC,0BAAY,EAAE,6BAAe,CAAC,CAAA;IAC/D,OAAO,CACL,uBAAC,gDAAuB,kBACtB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,yCAA2B,EACzC,WAAW,EAAE,wCAA0B,gBAEvC,uBAAC,KAAK,oBAAK,IAAI,EAAI,IACK,CAC3B,CAAA;AACH,CAAC,CAAA;AAEQ,oDAAoB"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { merge } from '@xylabs/lodash';
2
3
  import { InvertibleThemeProvider } from '@xylabs/react-invertible-theme';
3
4
  import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from '@xyo-network/react-theme';
4
- import merge from 'lodash/merge';
5
5
  import { useDarkMode } from 'storybook-dark-mode';
6
6
  const useAppThemeDecorator = (Story, { args }) => {
7
7
  const darkMode = useDarkMode();
@@ -1 +1 @@
1
- {"version":3,"file":"useAppThemeDecorator.js","sourceRoot":"","sources":["../../src/useAppThemeDecorator.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjI,OAAO,KAAK,MAAM,cAAc,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,MAAM,oBAAoB,GAAc,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAA;IAC/D,OAAO,CACL,KAAC,uBAAuB,IACtB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,2BAA2B,EACzC,WAAW,EAAE,0BAA0B,YAEvC,KAAC,KAAK,OAAK,IAAI,GAAI,GACK,CAC3B,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
1
+ {"version":3,"file":"useAppThemeDecorator.js","sourceRoot":"","sources":["../../src/useAppThemeDecorator.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjI,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,MAAM,oBAAoB,GAAc,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAA;IAC/D,OAAO,CACL,KAAC,uBAAuB,IACtB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,kBAAkB,EAC3B,YAAY,EAAE,2BAA2B,EACzC,WAAW,EAAE,0BAA0B,YAEvC,KAAC,KAAK,OAAK,IAAI,GAAI,GACK,CAC3B,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
package/package.json CHANGED
@@ -11,13 +11,13 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@storybook/react": "^7.4.0",
14
+ "@xylabs/lodash": "^2.10.11",
14
15
  "@xylabs/react-invertible-theme": "~2.17.15",
15
- "@xyo-network/boundwitness-model": "^2.72.9",
16
- "@xyo-network/payload-builder": "^2.72.9",
17
- "@xyo-network/payload-model": "^2.72.9",
18
- "@xyo-network/react-map": "~2.60.12",
19
- "@xyo-network/react-theme": "~2.60.12",
20
- "lodash": "^4.17.21",
16
+ "@xyo-network/boundwitness-model": "^2.73.3",
17
+ "@xyo-network/payload-builder": "^2.73.3",
18
+ "@xyo-network/payload-model": "^2.73.3",
19
+ "@xyo-network/react-map": "~2.61.0",
20
+ "@xyo-network/react-theme": "~2.61.0",
21
21
  "storybook-dark-mode": "^3.0.1"
22
22
  },
23
23
  "peerDependencies": {
@@ -37,9 +37,8 @@
37
37
  "description": "Common React library for all XYO projects that use React",
38
38
  "devDependencies": {
39
39
  "@storybook/react": "^7.4.0",
40
- "@types/lodash": "^4.14.198",
41
- "@xylabs/ts-scripts-yarn3": "^2.19.4",
42
- "@xylabs/tsconfig-react": "^2.19.4",
40
+ "@xylabs/ts-scripts-yarn3": "^2.19.5",
41
+ "@xylabs/tsconfig-react": "^2.19.5",
43
42
  "typescript": "^5.2.2"
44
43
  },
45
44
  "browser": "dist/esm/index.js",
@@ -84,5 +83,5 @@
84
83
  },
85
84
  "sideEffects": false,
86
85
  "types": "dist/types/index.d.ts",
87
- "version": "2.60.12"
86
+ "version": "2.61.0"
88
87
  }
@@ -1,7 +1,7 @@
1
1
  import { Decorator } from '@storybook/react'
2
+ import { merge } from '@xylabs/lodash'
2
3
  import { InvertibleThemeProvider } from '@xylabs/react-invertible-theme'
3
4
  import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from '@xyo-network/react-theme'
4
- import merge from 'lodash/merge'
5
5
  import { useDarkMode } from 'storybook-dark-mode'
6
6
 
7
7
  const useAppThemeDecorator: Decorator = (Story, { args }) => {