@devtools-ui/stacked-view 0.4.0 → 0.4.1--canary.62.3837
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/index.cjs +5 -5
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +4 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/dsl/__tests__/index.test.tsx +1 -1
- package/src/dsl/index.tsx +5 -1
- package/types/dsl/index.d.ts +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -67,31 +67,31 @@ var StackedViewComponent = (props) => {
|
|
|
67
67
|
|
|
68
68
|
// ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx
|
|
69
69
|
var import_react4 = __toESM(require("react"));
|
|
70
|
-
var
|
|
70
|
+
var import_react_dsl = require("@player-lang/react-dsl");
|
|
71
71
|
var import_collection = require("@devtools-ui/collection");
|
|
72
72
|
var import_text = require("@devtools-ui/text");
|
|
73
73
|
var StackedView = (props) => {
|
|
74
74
|
const { children, ...rest } = props;
|
|
75
|
-
return /* @__PURE__ */ import_react4.default.createElement(
|
|
75
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react_dsl.Asset, { type: "stacked-view", ...rest }, children);
|
|
76
76
|
};
|
|
77
77
|
var CollectionComp = (props) => {
|
|
78
78
|
return /* @__PURE__ */ import_react4.default.createElement(import_collection.Collection, null, /* @__PURE__ */ import_react4.default.createElement(import_collection.Collection.Values, null, props.children));
|
|
79
79
|
};
|
|
80
|
-
StackedView.Header = (0,
|
|
80
|
+
StackedView.Header = (0, import_react_dsl.createSlot)({
|
|
81
81
|
name: "header",
|
|
82
82
|
TextComp: import_text.Text,
|
|
83
83
|
CollectionComp,
|
|
84
84
|
isArray: false,
|
|
85
85
|
wrapInAsset: true
|
|
86
86
|
});
|
|
87
|
-
StackedView.Main = (0,
|
|
87
|
+
StackedView.Main = (0, import_react_dsl.createSlot)({
|
|
88
88
|
name: "main",
|
|
89
89
|
TextComp: import_text.Text,
|
|
90
90
|
CollectionComp,
|
|
91
91
|
isArray: false,
|
|
92
92
|
wrapInAsset: true
|
|
93
93
|
});
|
|
94
|
-
StackedView.Footer = (0,
|
|
94
|
+
StackedView.Footer = (0, import_react_dsl.createSlot)({
|
|
95
95
|
name: "footer",
|
|
96
96
|
TextComp: import_text.Text,
|
|
97
97
|
CollectionComp,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/component/index.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./component\";\nexport * from \"./dsl\";\n","import { Grid, GridItem } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport React from \"react\";\nimport type { StackedViewView } from \"../types\";\n\nexport const StackedViewComponent = (props: StackedViewView) => {\n const { header, main, footer } = props;\n\n return (\n <Grid\n h=\"100%\"\n gap=\"4\"\n templateAreas={'\"header\" \"main\" \"footer\"'}\n width=\"full\"\n >\n <GridItem w={\"100%\"} area={\"header\"}>\n {header && <ReactAsset {...header} />}\n </GridItem>\n <GridItem\n w={\"100%\"}\n maxHeight=\"70vh\"\n overflowX=\"auto\"\n overflowY=\"auto\"\n area={\"main\"}\n >\n {main && <ReactAsset {...main} />}\n </GridItem>\n <GridItem w={\"100%\"} overflowX=\"auto\" overflowY=\"auto\" area={\"footer\"}>\n {footer && <ReactAsset {...footer} />}\n </GridItem>\n </Grid>\n );\n};\n","import React from \"react\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/index.ts","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/component/index.tsx","../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx"],"sourcesContent":["export * from \"./types\";\nexport * from \"./component\";\nexport * from \"./dsl\";\n","import { Grid, GridItem } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport React from \"react\";\nimport type { StackedViewView } from \"../types\";\n\nexport const StackedViewComponent = (props: StackedViewView) => {\n const { header, main, footer } = props;\n\n return (\n <Grid\n h=\"100%\"\n gap=\"4\"\n templateAreas={'\"header\" \"main\" \"footer\"'}\n width=\"full\"\n >\n <GridItem w={\"100%\"} area={\"header\"}>\n {header && <ReactAsset {...header} />}\n </GridItem>\n <GridItem\n w={\"100%\"}\n maxHeight=\"70vh\"\n overflowX=\"auto\"\n overflowY=\"auto\"\n area={\"main\"}\n >\n {main && <ReactAsset {...main} />}\n </GridItem>\n <GridItem w={\"100%\"} overflowX=\"auto\" overflowY=\"auto\" area={\"footer\"}>\n {footer && <ReactAsset {...footer} />}\n </GridItem>\n </Grid>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { StackedViewView } from \"../types\";\n\n/**\n * Defines the component DSL representation for the StackedView view.\n */\nexport const StackedView = (props: AssetPropsWithChildren<StackedViewView>) => {\n const { children, ...rest } = props;\n\n return (\n <Asset type=\"stacked-view\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nStackedView.Header = createSlot({\n name: \"header\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n\nStackedView.Main = createSlot({\n name: \"main\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n\nStackedView.Footer = createSlot({\n name: \"footer\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAA+B;AAC/B,IAAAA,gBAA2B;AAC3B,IAAAA,gBAAkB;AAGX,IAAM,uBAAuB,CAAC,UAA2B;AAC9D,QAAM,EAAE,QAAQ,MAAM,OAAO,IAAI;AAEjC,SACE,8BAAAC,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,GAAE;AAAA,MACF,KAAI;AAAA,MACJ,eAAe;AAAA,MACf,OAAM;AAAA;AAAA,IAEN,8BAAAA,QAAA,cAAC,yBAAS,GAAG,QAAQ,MAAM,YACxB,UAAU,8BAAAA,QAAA,cAAC,4BAAY,GAAG,QAAQ,CACrC;AAAA,IACA,8BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,GAAG;AAAA,QACH,WAAU;AAAA,QACV,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA;AAAA,MAEL,QAAQ,8BAAAA,QAAA,cAAC,4BAAY,GAAG,MAAM;AAAA,IACjC;AAAA,IACA,8BAAAA,QAAA,cAAC,yBAAS,GAAG,QAAQ,WAAU,QAAO,WAAU,QAAO,MAAM,YAC1D,UAAU,8BAAAA,QAAA,cAAC,4BAAY,GAAG,QAAQ,CACrC;AAAA,EACF;AAEJ;;;AChCA,IAAAC,gBAAkB;AAClB,uBAIO;AAEP,wBAA2B;AAC3B,kBAAqB;AAMd,IAAM,cAAc,CAAC,UAAmD;AAC7E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAE9B,SACE,8BAAAC,QAAA,cAAC,0BAAM,MAAK,gBAAgB,GAAG,QAC5B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,8BAAAA,QAAA,cAAC,oCACC,8BAAAA,QAAA,cAAC,6BAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,YAAY,aAAS,6BAAW;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAED,YAAY,WAAO,6BAAW;AAAA,EAC5B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAED,YAAY,aAAS,6BAAW;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["import_react","React","import_react","React"]}
|
package/dist/index.legacy-esm.js
CHANGED
|
@@ -30,7 +30,10 @@ var StackedViewComponent = (props) => {
|
|
|
30
30
|
|
|
31
31
|
// ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx
|
|
32
32
|
import React2 from "react";
|
|
33
|
-
import {
|
|
33
|
+
import {
|
|
34
|
+
Asset,
|
|
35
|
+
createSlot
|
|
36
|
+
} from "@player-lang/react-dsl";
|
|
34
37
|
import { Collection } from "@devtools-ui/collection";
|
|
35
38
|
import { Text } from "@devtools-ui/text";
|
|
36
39
|
var StackedView = (props) => {
|
package/dist/index.mjs
CHANGED
|
@@ -30,7 +30,10 @@ var StackedViewComponent = (props) => {
|
|
|
30
30
|
|
|
31
31
|
// ../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx
|
|
32
32
|
import React2 from "react";
|
|
33
|
-
import {
|
|
33
|
+
import {
|
|
34
|
+
Asset,
|
|
35
|
+
createSlot
|
|
36
|
+
} from "@player-lang/react-dsl";
|
|
34
37
|
import { Collection } from "@devtools-ui/collection";
|
|
35
38
|
import { Text } from "@devtools-ui/text";
|
|
36
39
|
var StackedView = (props) => {
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/component/index.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx"],"sourcesContent":["import { Grid, GridItem } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport React from \"react\";\nimport type { StackedViewView } from \"../types\";\n\nexport const StackedViewComponent = (props: StackedViewView) => {\n const { header, main, footer } = props;\n\n return (\n <Grid\n h=\"100%\"\n gap=\"4\"\n templateAreas={'\"header\" \"main\" \"footer\"'}\n width=\"full\"\n >\n <GridItem w={\"100%\"} area={\"header\"}>\n {header && <ReactAsset {...header} />}\n </GridItem>\n <GridItem\n w={\"100%\"}\n maxHeight=\"70vh\"\n overflowX=\"auto\"\n overflowY=\"auto\"\n area={\"main\"}\n >\n {main && <ReactAsset {...main} />}\n </GridItem>\n <GridItem w={\"100%\"} overflowX=\"auto\" overflowY=\"auto\" area={\"footer\"}>\n {footer && <ReactAsset {...footer} />}\n </GridItem>\n </Grid>\n );\n};\n","import React from \"react\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/component/index.tsx","../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/stacked-view/src/dsl/index.tsx"],"sourcesContent":["import { Grid, GridItem } from \"@chakra-ui/react\";\nimport { ReactAsset } from \"@player-ui/react\";\nimport React from \"react\";\nimport type { StackedViewView } from \"../types\";\n\nexport const StackedViewComponent = (props: StackedViewView) => {\n const { header, main, footer } = props;\n\n return (\n <Grid\n h=\"100%\"\n gap=\"4\"\n templateAreas={'\"header\" \"main\" \"footer\"'}\n width=\"full\"\n >\n <GridItem w={\"100%\"} area={\"header\"}>\n {header && <ReactAsset {...header} />}\n </GridItem>\n <GridItem\n w={\"100%\"}\n maxHeight=\"70vh\"\n overflowX=\"auto\"\n overflowY=\"auto\"\n area={\"main\"}\n >\n {main && <ReactAsset {...main} />}\n </GridItem>\n <GridItem w={\"100%\"} overflowX=\"auto\" overflowY=\"auto\" area={\"footer\"}>\n {footer && <ReactAsset {...footer} />}\n </GridItem>\n </Grid>\n );\n};\n","import React from \"react\";\nimport {\n AssetPropsWithChildren,\n Asset,\n createSlot,\n} from \"@player-lang/react-dsl\";\nimport type { Asset as AssetType } from \"@player-ui/player\";\nimport { Collection } from \"@devtools-ui/collection\";\nimport { Text } from \"@devtools-ui/text\";\nimport type { StackedViewView } from \"../types\";\n\n/**\n * Defines the component DSL representation for the StackedView view.\n */\nexport const StackedView = (props: AssetPropsWithChildren<StackedViewView>) => {\n const { children, ...rest } = props;\n\n return (\n <Asset type=\"stacked-view\" {...rest}>\n {children}\n </Asset>\n );\n};\n\nconst CollectionComp = (props: AssetPropsWithChildren<AssetType>) => {\n return (\n <Collection>\n <Collection.Values>{props.children}</Collection.Values>\n </Collection>\n );\n};\n\nStackedView.Header = createSlot({\n name: \"header\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n\nStackedView.Main = createSlot({\n name: \"main\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n\nStackedView.Footer = createSlot({\n name: \"footer\",\n TextComp: Text,\n CollectionComp,\n isArray: false,\n wrapInAsset: true,\n});\n"],"mappings":";AAAA,SAAS,MAAM,gBAAgB;AAC/B,SAAS,kBAAkB;AAC3B,OAAO,WAAW;AAGX,IAAM,uBAAuB,CAAC,UAA2B;AAC9D,QAAM,EAAE,QAAQ,MAAM,OAAO,IAAI;AAEjC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,GAAE;AAAA,MACF,KAAI;AAAA,MACJ,eAAe;AAAA,MACf,OAAM;AAAA;AAAA,IAEN,oCAAC,YAAS,GAAG,QAAQ,MAAM,YACxB,UAAU,oCAAC,cAAY,GAAG,QAAQ,CACrC;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,GAAG;AAAA,QACH,WAAU;AAAA,QACV,WAAU;AAAA,QACV,WAAU;AAAA,QACV,MAAM;AAAA;AAAA,MAEL,QAAQ,oCAAC,cAAY,GAAG,MAAM;AAAA,IACjC;AAAA,IACA,oCAAC,YAAS,GAAG,QAAQ,WAAU,QAAO,WAAU,QAAO,MAAM,YAC1D,UAAU,oCAAC,cAAY,GAAG,QAAQ,CACrC;AAAA,EACF;AAEJ;;;AChCA,OAAOA,YAAW;AAClB;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAMd,IAAM,cAAc,CAAC,UAAmD;AAC7E,QAAM,EAAE,UAAU,GAAG,KAAK,IAAI;AAE9B,SACE,gBAAAA,OAAA,cAAC,SAAM,MAAK,gBAAgB,GAAG,QAC5B,QACH;AAEJ;AAEA,IAAM,iBAAiB,CAAC,UAA6C;AACnE,SACE,gBAAAA,OAAA,cAAC,kBACC,gBAAAA,OAAA,cAAC,WAAW,QAAX,MAAmB,MAAM,QAAS,CACrC;AAEJ;AAEA,YAAY,SAAS,WAAW;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAED,YAAY,OAAO,WAAW;AAAA,EAC5B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAED,YAAY,SAAS,WAAW;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA,SAAS;AAAA,EACT,aAAa;AACf,CAAC;","names":["React"]}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtools-ui/stacked-view",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1--canary.62.3837",
|
|
4
4
|
"main": "dist/cjs/index.cjs",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@devtools-ui/text": "0.4.
|
|
7
|
-
"@devtools-ui/collection": "0.4.
|
|
6
|
+
"@devtools-ui/text": "0.4.1--canary.62.3837",
|
|
7
|
+
"@devtools-ui/collection": "0.4.1--canary.62.3837",
|
|
8
8
|
"@chakra-ui/react": "^2.8.2",
|
|
9
9
|
"@emotion/react": "^11.11.4",
|
|
10
10
|
"@emotion/styled": "^11.11.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"types"
|
|
33
33
|
],
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@player-
|
|
36
|
-
"@player-ui/asset-transform-plugin": "0.
|
|
37
|
-
"@player-ui/player": "0.
|
|
38
|
-
"@player-ui/react": "0.
|
|
39
|
-
"@player-ui/types": "0.
|
|
35
|
+
"@player-lang/react-dsl": "1.0.1",
|
|
36
|
+
"@player-ui/asset-transform-plugin": "0.15.5",
|
|
37
|
+
"@player-ui/player": "0.15.5",
|
|
38
|
+
"@player-ui/react": "0.15.5",
|
|
39
|
+
"@player-ui/types": "0.15.5"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/src/dsl/index.tsx
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AssetPropsWithChildren,
|
|
4
|
+
Asset,
|
|
5
|
+
createSlot,
|
|
6
|
+
} from "@player-lang/react-dsl";
|
|
3
7
|
import type { Asset as AssetType } from "@player-ui/player";
|
|
4
8
|
import { Collection } from "@devtools-ui/collection";
|
|
5
9
|
import { Text } from "@devtools-ui/text";
|
package/types/dsl/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AssetPropsWithChildren } from "@player-
|
|
2
|
+
import { AssetPropsWithChildren } from "@player-lang/react-dsl";
|
|
3
3
|
import type { StackedViewView } from "../types";
|
|
4
4
|
/**
|
|
5
5
|
* Defines the component DSL representation for the StackedView view.
|