@xyo-network/react-storybook 2.37.24 → 2.37.26
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/cjs/WithRefDecorator.d.ts +3 -0
- package/dist/cjs/WithRefDecorator.d.ts.map +1 -0
- package/dist/cjs/WithRefDecorator.js +18 -0
- package/dist/cjs/WithRefDecorator.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/docs.json +249 -146
- package/dist/esm/WithRefDecorator.d.ts +3 -0
- package/dist/esm/WithRefDecorator.d.ts.map +1 -0
- package/dist/esm/WithRefDecorator.js +14 -0
- package/dist/esm/WithRefDecorator.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +10 -10
- package/src/WithRefDecorator.tsx +22 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithRefDecorator.d.ts","sourceRoot":"","sources":["../../src/WithRefDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,eAAO,MAAM,gBAAgB,EAAE,WAiB9B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithRefDecorator = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const WithRefDecorator = (Story, args) => {
|
|
8
|
+
const ref = (0, react_1.useRef)(null);
|
|
9
|
+
const onClick = () => {
|
|
10
|
+
if (ref.current) {
|
|
11
|
+
ref.current.style.color = 'green';
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
args.args.ref = ref;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ onClick: onClick, variant: "contained" }, { children: "Change to green" })), (0, jsx_runtime_1.jsx)(Story, Object.assign({}, args))] }));
|
|
16
|
+
};
|
|
17
|
+
exports.WithRefDecorator = WithRefDecorator;
|
|
18
|
+
//# sourceMappingURL=WithRefDecorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithRefDecorator.js","sourceRoot":"","sources":["../../src/WithRefDecorator.tsx"],"names":[],"mappings":";;;;AAAA,4CAAsC;AAEtC,iCAA8B;AAEvB,MAAM,gBAAgB,GAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;IAC3D,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,IAAI,GAAG,CAAC,OAAO,EAAE;YACf,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAA;SAClC;IACH,CAAC,CAAA;IAED,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IACnB,OAAO,CACL,6DACE,uBAAC,iBAAM,kBAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAC,WAAW,qCAEpC,EACT,uBAAC,KAAK,oBAAK,IAAI,EAAI,IAClB,CACJ,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,gBAAgB,oBAiB5B"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './samplePayload';
|
|
|
7
7
|
export * from './sampleUniswapPayload';
|
|
8
8
|
export * from './useAppThemeDecorator';
|
|
9
9
|
export * from './WithMapboxSetup';
|
|
10
|
+
export * from './WithRefDecorator';
|
|
10
11
|
export * from './WrappedArgs';
|
|
11
12
|
export * from './WrappedAuthComponent';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -10,6 +10,7 @@ tslib_1.__exportStar(require("./samplePayload"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./sampleUniswapPayload"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./useAppThemeDecorator"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./WithMapboxSetup"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./WithRefDecorator"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./WrappedArgs"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./WrappedAuthComponent"), exports);
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuC;AACvC,0DAA+B;AAC/B,2DAAgC;AAChC,wDAA6B;AAC7B,mEAAwC;AACxC,0DAA+B;AAC/B,iEAAsC;AACtC,iEAAsC;AACtC,4DAAiC;AACjC,wDAA6B;AAC7B,iEAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuC;AACvC,0DAA+B;AAC/B,2DAAgC;AAChC,wDAA6B;AAC7B,mEAAwC;AACxC,0DAA+B;AAC/B,iEAAsC;AACtC,iEAAsC;AACtC,4DAAiC;AACjC,6DAAkC;AAClC,wDAA6B;AAC7B,iEAAsC"}
|