@canonical/react-ds-global 0.15.0 → 0.15.1
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/esm/lib/ApplicationLayout/ApplicationLayout.js +9 -0
- package/dist/esm/lib/ApplicationLayout/ApplicationLayout.js.map +1 -0
- package/dist/esm/lib/ApplicationLayout/index.js +4 -0
- package/dist/esm/lib/ApplicationLayout/index.js.map +1 -0
- package/dist/esm/lib/ApplicationLayout/styles.css +11 -0
- package/dist/esm/lib/ApplicationLayout/types.js +4 -0
- package/dist/esm/lib/ApplicationLayout/types.js.map +1 -0
- package/dist/esm/lib/ViewContentLayout/ViewContentLayout.js +9 -0
- package/dist/esm/lib/ViewContentLayout/ViewContentLayout.js.map +1 -0
- package/dist/esm/lib/ViewContentLayout/index.js +4 -0
- package/dist/esm/lib/ViewContentLayout/index.js.map +1 -0
- package/dist/esm/lib/ViewContentLayout/styles.css +16 -0
- package/dist/esm/lib/ViewContentLayout/types.js +4 -0
- package/dist/esm/lib/ViewContentLayout/types.js.map +1 -0
- package/dist/esm/lib/ViewLayout/ViewLayout.js +9 -0
- package/dist/esm/lib/ViewLayout/ViewLayout.js.map +1 -0
- package/dist/esm/lib/ViewLayout/index.js +4 -0
- package/dist/esm/lib/ViewLayout/index.js.map +1 -0
- package/dist/esm/lib/ViewLayout/styles.css +12 -0
- package/dist/esm/lib/ViewLayout/types.js +4 -0
- package/dist/esm/lib/ViewLayout/types.js.map +1 -0
- package/dist/esm/storybook/testComponents.js +12 -0
- package/dist/esm/storybook/testComponents.js.map +1 -0
- package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts +8 -0
- package/dist/types/lib/ApplicationLayout/ApplicationLayout.d.ts.map +1 -0
- package/dist/types/lib/ApplicationLayout/index.d.ts +3 -0
- package/dist/types/lib/ApplicationLayout/index.d.ts.map +1 -0
- package/dist/types/lib/ApplicationLayout/types.d.ts +6 -0
- package/dist/types/lib/ApplicationLayout/types.d.ts.map +1 -0
- package/dist/types/lib/ViewContentLayout/ViewContentLayout.d.ts +8 -0
- package/dist/types/lib/ViewContentLayout/ViewContentLayout.d.ts.map +1 -0
- package/dist/types/lib/ViewContentLayout/index.d.ts +3 -0
- package/dist/types/lib/ViewContentLayout/index.d.ts.map +1 -0
- package/dist/types/lib/ViewContentLayout/types.d.ts +6 -0
- package/dist/types/lib/ViewContentLayout/types.d.ts.map +1 -0
- package/dist/types/lib/ViewLayout/ViewLayout.d.ts +8 -0
- package/dist/types/lib/ViewLayout/ViewLayout.d.ts.map +1 -0
- package/dist/types/lib/ViewLayout/index.d.ts +3 -0
- package/dist/types/lib/ViewLayout/index.d.ts.map +1 -0
- package/dist/types/lib/ViewLayout/types.d.ts +6 -0
- package/dist/types/lib/ViewLayout/types.d.ts.map +1 -0
- package/dist/types/storybook/testComponents.d.ts +3 -0
- package/dist/types/storybook/testComponents.d.ts.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* ApplicationLayout component
|
|
5
|
+
*/
|
|
6
|
+
export const ApplicationLayout = ({ className, children, ...props }) => {
|
|
7
|
+
return (_jsx("div", { className: `ds application-layout${className ? ` ${className}` : ""}`, ...props, children: children }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ApplicationLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationLayout.js","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACe,EAAsB,EAAE;IAC/C,OAAO,CACL,cACE,SAAS,EAAE,wBAAwB,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KACjE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.application-layout {
|
|
5
|
+
/* Component styles */
|
|
6
|
+
background: lightyellow; /* For demo purposes only */
|
|
7
|
+
height: 100%;
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: var(--gap);
|
|
10
|
+
grid-template-columns: min-content 1fr;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* ViewContentLayout component
|
|
5
|
+
*/
|
|
6
|
+
export const ViewContentLayout = ({ className, children, ...props }) => {
|
|
7
|
+
return (_jsx("div", { className: `ds view-content-layout${className ? ` ${className}` : ""}`, ...props, children: children }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ViewContentLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewContentLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/ViewContentLayout.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACe,EAAsB,EAAE;IAC/C,OAAO,CACL,cACE,SAAS,EAAE,yBAAyB,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KAClE,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAGxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.view-content-layout {
|
|
5
|
+
background: lightcyan; /* For demo purposes only */
|
|
6
|
+
grid-column: 1 / -2;
|
|
7
|
+
display: grid;
|
|
8
|
+
/* grid-template-columns: subgrid; */
|
|
9
|
+
grid-template-columns: repeat(
|
|
10
|
+
auto-fit,
|
|
11
|
+
minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr)
|
|
12
|
+
minmax(100px, 1fr)
|
|
13
|
+
);
|
|
14
|
+
gap: var(--gap);
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* ViewLayout component
|
|
5
|
+
*/
|
|
6
|
+
export const ViewLayout = ({ className, children, ...props }) => {
|
|
7
|
+
return (_jsx("div", { className: `ds view-layout${className ? ` ${className}` : ""}`, ...props, children: children }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ViewLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewLayout.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACQ,EAAsB,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,iBAAiB,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KAC1D,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.view-layout {
|
|
5
|
+
/* Component styles */
|
|
6
|
+
background: lightcoral; /* For demo purposes only */
|
|
7
|
+
display: grid;
|
|
8
|
+
height: 100%;
|
|
9
|
+
gap: var(--gap);
|
|
10
|
+
grid-column: 2 / -1;
|
|
11
|
+
grid-template-columns: 1fr min-content;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const Card = () => (_jsx("div", { style: {
|
|
3
|
+
border: "1px solid #ccc",
|
|
4
|
+
minHeight: "300px",
|
|
5
|
+
backgroundColor: "#f9f9f9",
|
|
6
|
+
}, children: "This is an example card inside the ViewLayout." }));
|
|
7
|
+
export const Sidebar = () => (_jsx("aside", { style: {
|
|
8
|
+
height: "100%",
|
|
9
|
+
backgroundColor: "lightgreen",
|
|
10
|
+
padding: "16px",
|
|
11
|
+
}, children: "This is an example sidebar." }));
|
|
12
|
+
//# sourceMappingURL=testComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testComponents.js","sourceRoot":"","sources":["../../../src/storybook/testComponents.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACxB,cACE,KAAK,EAAE;QACL,MAAM,EAAE,gBAAgB;QACxB,SAAS,EAAE,OAAO;QAClB,eAAe,EAAE,SAAS;KAC3B,+DAGG,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,CAC3B,gBACE,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,eAAe,EAAE,YAAY;QAC7B,OAAO,EAAE,MAAM;KAChB,4CAGK,CACT,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ApplicationLayoutProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* ApplicationLayout component
|
|
6
|
+
*/
|
|
7
|
+
export declare const ApplicationLayout: ({ className, children, ...props }: ApplicationLayoutProps) => React.ReactElement;
|
|
8
|
+
//# sourceMappingURL=ApplicationLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mCAI/B,sBAAsB,KAAG,KAAK,CAAC,YASjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ViewContentLayoutProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* ViewContentLayout component
|
|
6
|
+
*/
|
|
7
|
+
export declare const ViewContentLayout: ({ className, children, ...props }: ViewContentLayoutProps) => React.ReactElement;
|
|
8
|
+
//# sourceMappingURL=ViewContentLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewContentLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/ViewContentLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mCAI/B,sBAAsB,KAAG,KAAK,CAAC,YASjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewContentLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ViewLayoutProps } from "./types.js";
|
|
3
|
+
import "./styles.css";
|
|
4
|
+
/**
|
|
5
|
+
* ViewLayout component
|
|
6
|
+
*/
|
|
7
|
+
export declare const ViewLayout: ({ className, children, ...props }: ViewLayoutProps) => React.ReactElement;
|
|
8
|
+
//# sourceMappingURL=ViewLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewLayout.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/ViewLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,mCAIxB,eAAe,KAAG,KAAK,CAAC,YAS1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/ViewLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testComponents.d.ts","sourceRoot":"","sources":["../../../src/storybook/testComponents.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,+CAUhB,CAAC;AAEF,eAAO,MAAM,OAAO,+CAUnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-ds-global",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"test:vitest:watch": "vitest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@canonical/ds-assets": "^0.15.
|
|
43
|
-
"@canonical/storybook-config": "^0.15.
|
|
44
|
-
"@canonical/styles": "^0.15.
|
|
45
|
-
"@canonical/utils": "^0.15.
|
|
42
|
+
"@canonical/ds-assets": "^0.15.1",
|
|
43
|
+
"@canonical/storybook-config": "^0.15.1",
|
|
44
|
+
"@canonical/styles": "^0.15.1",
|
|
45
|
+
"@canonical/utils": "^0.15.1",
|
|
46
46
|
"react": "^19.2.4",
|
|
47
47
|
"react-dom": "^19.2.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@biomejs/biome": "2.3.14",
|
|
51
51
|
"@canonical/biome-config": "^0.15.0",
|
|
52
|
-
"@canonical/ds-types": "^0.15.
|
|
53
|
-
"@canonical/storybook-helpers": "^0.15.
|
|
54
|
-
"@canonical/typescript-config-react": "^0.15.
|
|
55
|
-
"@canonical/webarchitect": "^0.15.
|
|
52
|
+
"@canonical/ds-types": "^0.15.1",
|
|
53
|
+
"@canonical/storybook-helpers": "^0.15.1",
|
|
54
|
+
"@canonical/typescript-config-react": "^0.15.1",
|
|
55
|
+
"@canonical/webarchitect": "^0.15.1",
|
|
56
56
|
"@chromatic-com/storybook": "^5.0.1",
|
|
57
57
|
"@storybook/addon-docs": "^10.2.8",
|
|
58
58
|
"@storybook/react-vite": "^10.2.8",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"vite-tsconfig-paths": "^6.1.0",
|
|
72
72
|
"vitest": "^4.0.18"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "d57f21b67013701f6b4f74c5cd595775a17a2259"
|
|
75
75
|
}
|