@canonical/react-ds-global 0.20.0 → 0.21.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.
- package/dist/esm/lib/Badge/Badge.js +2 -2
- package/dist/esm/lib/Badge/Badge.js.map +1 -1
- package/dist/esm/lib/Badge/styles.css +4 -1
- package/dist/esm/lib/Button/styles.css +18 -82
- package/dist/esm/lib/Card/Card.js +1 -3
- package/dist/esm/lib/Card/Card.js.map +1 -1
- package/dist/esm/lib/Chip/Chip.js +2 -2
- package/dist/esm/lib/Chip/Chip.js.map +1 -1
- package/dist/esm/lib/Chip/styles.css +7 -4
- package/dist/esm/lib/KeyboardKey/KeyboardKey.js +18 -0
- package/dist/esm/lib/KeyboardKey/KeyboardKey.js.map +1 -0
- package/dist/esm/lib/KeyboardKey/constants.js +86 -0
- package/dist/esm/lib/KeyboardKey/constants.js.map +1 -0
- package/dist/esm/lib/KeyboardKey/index.js +2 -0
- package/dist/esm/lib/KeyboardKey/index.js.map +1 -0
- package/dist/esm/lib/KeyboardKey/styles.css +30 -0
- package/dist/esm/lib/KeyboardKey/types.js +2 -0
- package/dist/esm/lib/KeyboardKey/types.js.map +1 -0
- package/dist/esm/lib/KeyboardKeys/KeyboardKeys.js +22 -0
- package/dist/esm/lib/KeyboardKeys/KeyboardKeys.js.map +1 -0
- package/dist/esm/lib/KeyboardKeys/index.js +2 -0
- package/dist/esm/lib/KeyboardKeys/index.js.map +1 -0
- package/dist/esm/lib/KeyboardKeys/styles.css +6 -0
- package/dist/esm/lib/KeyboardKeys/types.js +2 -0
- package/dist/esm/lib/KeyboardKeys/types.js.map +1 -0
- package/dist/esm/lib/Label/Label.js +2 -1
- package/dist/esm/lib/Label/Label.js.map +1 -1
- package/dist/esm/lib/Label/styles.css +4 -1
- package/dist/esm/lib/Rule/Rule.js +2 -4
- package/dist/esm/lib/Rule/Rule.js.map +1 -1
- package/dist/esm/lib/Rule/styles.css +3 -10
- package/dist/esm/lib/Timeline/common/Event/styles.css +4 -17
- package/dist/esm/lib/Tooltip/styles.css +1 -1
- package/dist/esm/lib/grid/ApplicationLayout/ApplicationLayout.js +10 -0
- package/dist/esm/lib/grid/ApplicationLayout/ApplicationLayout.js.map +1 -0
- package/dist/esm/lib/grid/ApplicationLayout/index.js +4 -0
- package/dist/esm/lib/grid/ApplicationLayout/index.js.map +1 -0
- package/dist/esm/lib/grid/ApplicationLayout/styles.css +20 -0
- package/dist/esm/lib/grid/ApplicationLayout/types.js +4 -0
- package/dist/esm/lib/grid/ApplicationLayout/types.js.map +1 -0
- package/dist/esm/lib/grid/GridCard/GridCard.js +9 -0
- package/dist/esm/lib/grid/GridCard/GridCard.js.map +1 -0
- package/dist/esm/lib/grid/GridCard/index.js +4 -0
- package/dist/esm/lib/grid/GridCard/index.js.map +1 -0
- package/dist/esm/lib/grid/GridCard/styles.css +6 -0
- package/dist/esm/lib/grid/GridCard/types.js +4 -0
- package/dist/esm/lib/grid/GridCard/types.js.map +1 -0
- package/dist/esm/lib/grid/InnerGridDemo/InnerGridDemo.js +12 -0
- package/dist/esm/lib/grid/InnerGridDemo/InnerGridDemo.js.map +1 -0
- package/dist/esm/lib/grid/InnerGridDemo/index.js +4 -0
- package/dist/esm/lib/grid/InnerGridDemo/index.js.map +1 -0
- package/dist/esm/lib/grid/InnerGridDemo/styles.css +40 -0
- package/dist/esm/lib/grid/InnerGridDemo/types.js +4 -0
- package/dist/esm/lib/grid/InnerGridDemo/types.js.map +1 -0
- package/dist/esm/lib/grid/SettingsView/SettingsView.js +9 -0
- package/dist/esm/lib/grid/SettingsView/SettingsView.js.map +1 -0
- package/dist/esm/lib/grid/SettingsView/index.js +4 -0
- package/dist/esm/lib/grid/SettingsView/index.js.map +1 -0
- package/dist/esm/lib/grid/SettingsView/styles.css +32 -0
- package/dist/esm/lib/grid/SettingsView/types.js +4 -0
- package/dist/esm/lib/grid/SettingsView/types.js.map +1 -0
- package/dist/esm/lib/grid/index.js +6 -0
- package/dist/esm/lib/grid/index.js.map +1 -0
- package/dist/esm/lib/index.js +4 -0
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/patterns/CategoriesSection/CategoriesSection.js +14 -0
- package/dist/esm/lib/patterns/CategoriesSection/CategoriesSection.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/Category.js +11 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/Category.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/index.js +4 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/index.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/styles.css +23 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/types.js +4 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/Category/types.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/index.js +3 -0
- package/dist/esm/lib/patterns/CategoriesSection/common/index.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/fixtures.js +51 -0
- package/dist/esm/lib/patterns/CategoriesSection/fixtures.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/index.js +4 -0
- package/dist/esm/lib/patterns/CategoriesSection/index.js.map +1 -0
- package/dist/esm/lib/patterns/CategoriesSection/styles.css +15 -0
- package/dist/esm/lib/patterns/CategoriesSection/types.js +4 -0
- package/dist/esm/lib/patterns/CategoriesSection/types.js.map +1 -0
- package/dist/esm/lib/patterns/ChatSection/ChatSection.js +12 -0
- package/dist/esm/lib/patterns/ChatSection/ChatSection.js.map +1 -0
- package/dist/esm/lib/patterns/ChatSection/index.js +4 -0
- package/dist/esm/lib/patterns/ChatSection/index.js.map +1 -0
- package/dist/esm/lib/patterns/ChatSection/styles.css +21 -0
- package/dist/esm/lib/patterns/ChatSection/types.js +4 -0
- package/dist/esm/lib/patterns/ChatSection/types.js.map +1 -0
- package/dist/esm/lib/patterns/DescriptionSection/DescriptionSection.js +12 -0
- package/dist/esm/lib/patterns/DescriptionSection/DescriptionSection.js.map +1 -0
- package/dist/esm/lib/patterns/DescriptionSection/index.js +4 -0
- package/dist/esm/lib/patterns/DescriptionSection/index.js.map +1 -0
- package/dist/esm/lib/patterns/DescriptionSection/styles.css +13 -0
- package/dist/esm/lib/patterns/DescriptionSection/types.js +4 -0
- package/dist/esm/lib/patterns/DescriptionSection/types.js.map +1 -0
- package/dist/esm/lib/patterns/IconSection/IconSection.js +45 -0
- package/dist/esm/lib/patterns/IconSection/IconSection.js.map +1 -0
- package/dist/esm/lib/patterns/IconSection/index.js +4 -0
- package/dist/esm/lib/patterns/IconSection/index.js.map +1 -0
- package/dist/esm/lib/patterns/IconSection/styles.css +18 -0
- package/dist/esm/lib/patterns/IconSection/types.js +4 -0
- package/dist/esm/lib/patterns/IconSection/types.js.map +1 -0
- package/dist/esm/lib/patterns/TSection/TSection.js +11 -0
- package/dist/esm/lib/patterns/TSection/TSection.js.map +1 -0
- package/dist/esm/lib/patterns/TSection/index.js +4 -0
- package/dist/esm/lib/patterns/TSection/index.js.map +1 -0
- package/dist/esm/lib/patterns/TSection/styles.css +27 -0
- package/dist/esm/lib/patterns/TSection/types.js +4 -0
- package/dist/esm/lib/patterns/TSection/types.js.map +1 -0
- package/dist/esm/lib/patterns/index.js +7 -0
- package/dist/esm/lib/patterns/index.js.map +1 -0
- package/dist/types/lib/Badge/Badge.d.ts +1 -1
- package/dist/types/lib/Badge/Badge.d.ts.map +1 -1
- package/dist/types/lib/Badge/types.d.ts +7 -10
- package/dist/types/lib/Badge/types.d.ts.map +1 -1
- package/dist/types/lib/Card/Card.d.ts +1 -1
- package/dist/types/lib/Card/Card.d.ts.map +1 -1
- package/dist/types/lib/Card/types.d.ts +0 -12
- package/dist/types/lib/Card/types.d.ts.map +1 -1
- package/dist/types/lib/Chip/Chip.d.ts +1 -1
- package/dist/types/lib/Chip/Chip.d.ts.map +1 -1
- package/dist/types/lib/Chip/types.d.ts +15 -3
- package/dist/types/lib/Chip/types.d.ts.map +1 -1
- package/dist/types/lib/KeyboardKey/KeyboardKey.d.ts +17 -0
- package/dist/types/lib/KeyboardKey/KeyboardKey.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKey/constants.d.ts +134 -0
- package/dist/types/lib/KeyboardKey/constants.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKey/index.d.ts +3 -0
- package/dist/types/lib/KeyboardKey/index.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKey/types.d.ts +9 -0
- package/dist/types/lib/KeyboardKey/types.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKeys/KeyboardKeys.d.ts +20 -0
- package/dist/types/lib/KeyboardKeys/KeyboardKeys.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKeys/index.d.ts +3 -0
- package/dist/types/lib/KeyboardKeys/index.d.ts.map +1 -0
- package/dist/types/lib/KeyboardKeys/types.d.ts +4 -0
- package/dist/types/lib/KeyboardKeys/types.d.ts.map +1 -0
- package/dist/types/lib/Label/Label.d.ts +1 -1
- package/dist/types/lib/Label/Label.d.ts.map +1 -1
- package/dist/types/lib/Label/types.d.ts +8 -0
- package/dist/types/lib/Label/types.d.ts.map +1 -1
- package/dist/types/lib/Rule/Rule.d.ts +1 -1
- package/dist/types/lib/Rule/Rule.d.ts.map +1 -1
- package/dist/types/lib/Rule/types.d.ts +0 -2
- package/dist/types/lib/Rule/types.d.ts.map +1 -1
- package/dist/types/lib/Timeline/common/Event/types.d.ts +2 -6
- package/dist/types/lib/Timeline/common/Event/types.d.ts.map +1 -1
- package/dist/types/lib/grid/ApplicationLayout/ApplicationLayout.d.ts +8 -0
- package/dist/types/lib/grid/ApplicationLayout/ApplicationLayout.d.ts.map +1 -0
- package/dist/types/lib/grid/ApplicationLayout/index.d.ts +3 -0
- package/dist/types/lib/grid/ApplicationLayout/index.d.ts.map +1 -0
- package/dist/types/lib/grid/ApplicationLayout/types.d.ts +6 -0
- package/dist/types/lib/grid/ApplicationLayout/types.d.ts.map +1 -0
- package/dist/types/lib/grid/GridCard/GridCard.d.ts +8 -0
- package/dist/types/lib/grid/GridCard/GridCard.d.ts.map +1 -0
- package/dist/types/lib/grid/GridCard/index.d.ts +3 -0
- package/dist/types/lib/grid/GridCard/index.d.ts.map +1 -0
- package/dist/types/lib/grid/GridCard/types.d.ts +6 -0
- package/dist/types/lib/grid/GridCard/types.d.ts.map +1 -0
- package/dist/types/lib/grid/InnerGridDemo/InnerGridDemo.d.ts +7 -0
- package/dist/types/lib/grid/InnerGridDemo/InnerGridDemo.d.ts.map +1 -0
- package/dist/types/lib/grid/InnerGridDemo/index.d.ts +3 -0
- package/dist/types/lib/grid/InnerGridDemo/index.d.ts.map +1 -0
- package/dist/types/lib/grid/InnerGridDemo/types.d.ts +6 -0
- package/dist/types/lib/grid/InnerGridDemo/types.d.ts.map +1 -0
- package/dist/types/lib/grid/SettingsView/SettingsView.d.ts +8 -0
- package/dist/types/lib/grid/SettingsView/SettingsView.d.ts.map +1 -0
- package/dist/types/lib/grid/SettingsView/index.d.ts +3 -0
- package/dist/types/lib/grid/SettingsView/index.d.ts.map +1 -0
- package/dist/types/lib/grid/SettingsView/types.d.ts +8 -0
- package/dist/types/lib/grid/SettingsView/types.d.ts.map +1 -0
- package/dist/types/lib/grid/index.d.ts +5 -0
- package/dist/types/lib/grid/index.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +4 -0
- package/dist/types/lib/index.d.ts.map +1 -1
- package/dist/types/lib/patterns/CategoriesSection/CategoriesSection.d.ts +9 -0
- package/dist/types/lib/patterns/CategoriesSection/CategoriesSection.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/Category.d.ts +9 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/Category.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/index.d.ts +3 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/types.d.ts +10 -0
- package/dist/types/lib/patterns/CategoriesSection/common/Category/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/common/index.d.ts +2 -0
- package/dist/types/lib/patterns/CategoriesSection/common/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/fixtures.d.ts +7 -0
- package/dist/types/lib/patterns/CategoriesSection/fixtures.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/index.d.ts +3 -0
- package/dist/types/lib/patterns/CategoriesSection/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/CategoriesSection/types.d.ts +6 -0
- package/dist/types/lib/patterns/CategoriesSection/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/ChatSection/ChatSection.d.ts +9 -0
- package/dist/types/lib/patterns/ChatSection/ChatSection.d.ts.map +1 -0
- package/dist/types/lib/patterns/ChatSection/index.d.ts +3 -0
- package/dist/types/lib/patterns/ChatSection/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/ChatSection/types.d.ts +6 -0
- package/dist/types/lib/patterns/ChatSection/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/DescriptionSection/DescriptionSection.d.ts +9 -0
- package/dist/types/lib/patterns/DescriptionSection/DescriptionSection.d.ts.map +1 -0
- package/dist/types/lib/patterns/DescriptionSection/index.d.ts +3 -0
- package/dist/types/lib/patterns/DescriptionSection/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/DescriptionSection/types.d.ts +6 -0
- package/dist/types/lib/patterns/DescriptionSection/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/IconSection/IconSection.d.ts +9 -0
- package/dist/types/lib/patterns/IconSection/IconSection.d.ts.map +1 -0
- package/dist/types/lib/patterns/IconSection/index.d.ts +3 -0
- package/dist/types/lib/patterns/IconSection/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/IconSection/types.d.ts +6 -0
- package/dist/types/lib/patterns/IconSection/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/TSection/TSection.d.ts +9 -0
- package/dist/types/lib/patterns/TSection/TSection.d.ts.map +1 -0
- package/dist/types/lib/patterns/TSection/index.d.ts +3 -0
- package/dist/types/lib/patterns/TSection/index.d.ts.map +1 -0
- package/dist/types/lib/patterns/TSection/types.d.ts +6 -0
- package/dist/types/lib/patterns/TSection/types.d.ts.map +1 -0
- package/dist/types/lib/patterns/index.d.ts +6 -0
- package/dist/types/lib/patterns/index.d.ts.map +1 -0
- package/package.json +15 -14
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* GridCard component
|
|
5
|
+
*/
|
|
6
|
+
export const GridCard = ({ className, children, ...props }) => {
|
|
7
|
+
return (_jsx("div", { className: `grid-card${className ? ` ${className}` : ""}`, ...props, children: "Represents a card within the grid" }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=GridCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridCard.js","sourceRoot":"","sources":["../../../../../src/lib/grid/GridCard/GridCard.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACM,EAAmB,EAAE;IACnC,OAAO,CACL,cAAK,SAAS,EAAE,YAAY,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KAAM,KAAK,kDAEnE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/grid/GridCard/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/grid/GridCard/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import { GridCard } from "../GridCard/index.js";
|
|
4
|
+
import { SettingsView } from "../SettingsView/index.js";
|
|
5
|
+
const componentCssClassName = "ds grid-demo";
|
|
6
|
+
/**
|
|
7
|
+
* InnerGridDemo component
|
|
8
|
+
*/
|
|
9
|
+
export const InnerGridDemo = ({ className, children, ...props }) => {
|
|
10
|
+
return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("p", { children: "This is a demo of the Grid component. It is used to demonstrate the grid layout and its responsiveness." }), _jsx("p", { children: children }), _jsx(GridCard, {}), _jsx(GridCard, {}), _jsx(GridCard, {}), _jsx(GridCard, {}), _jsx(SettingsView, { title: "Settings", children: _jsx("p", { children: "Here you can adjust the settings for the application, the user settings, and the system settings." }) })] }));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=InnerGridDemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InnerGridDemo.js","sourceRoot":"","sources":["../../../../../src/lib/grid/InnerGridDemo/InnerGridDemo.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACW,EAAmB,EAAE;IACxC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,kIAGI,EACJ,sBAAI,QAAQ,GAAK,EACjB,KAAC,QAAQ,KAAG,EACZ,KAAC,QAAQ,KAAG,EACZ,KAAC,QAAQ,KAAG,EACZ,KAAC,QAAQ,KAAG,EACZ,KAAC,YAAY,IAAC,KAAK,EAAC,UAAU,YAC5B,4HAGI,GACS,IACX,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/grid/InnerGridDemo/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--fixed-grid-template: repeat(8, 1fr);
|
|
6
|
+
--fluid-grid-template: repeat(
|
|
7
|
+
auto-fit,
|
|
8
|
+
minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr)
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html,
|
|
13
|
+
body,
|
|
14
|
+
#storybook-root {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.grid-demo {
|
|
19
|
+
display: grid;
|
|
20
|
+
gap: var(--container-gap-default);
|
|
21
|
+
grid-template-columns: var(--fluid-grid-template);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.grid-fixed {
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-template-columns: var(--fixed-grid-template);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.grid-fluid {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: repeat(
|
|
32
|
+
auto-fill,
|
|
33
|
+
minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr)
|
|
34
|
+
minmax(100px, 1fr)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.grid-card {
|
|
39
|
+
background: lightgray;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
/**
|
|
4
|
+
* SettingsView component
|
|
5
|
+
*/
|
|
6
|
+
export const SettingsView = ({ className, children, title, ...props }) => {
|
|
7
|
+
return (_jsxs("div", { className: `settings-view${className ? ` ${className}` : ""}`, ...props, children: [_jsx("h2", { children: title }), _jsxs("div", { className: "content", children: [children, _jsxs("div", { className: "setting", children: [_jsx("label", { htmlFor: "setting1", children: "Setting 1.0" }), _jsx("input", { type: "text", name: "setting1" })] }), _jsxs("div", { className: "setting", children: [_jsx("label", { htmlFor: "setting1", children: "Setting 1.0" }), _jsx("input", { type: "text", name: "setting1" })] })] })] }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=SettingsView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsView.js","sourceRoot":"","sources":["../../../../../src/lib/grid/SettingsView/SettingsView.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACU,EAAmB,EAAE;IACvC,OAAO,CACL,eACE,SAAS,EAAE,gBAAgB,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KACzD,KAAK,aAET,uBAAK,KAAK,GAAM,EAChB,eAAK,SAAS,EAAC,SAAS,aACrB,QAAQ,EACT,eAAK,SAAS,EAAC,SAAS,aACtB,gBAAO,OAAO,EAAC,UAAU,4BAAoB,EAC7C,gBAAO,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,UAAU,GAAG,IACjC,EACN,eAAK,SAAS,EAAC,SAAS,aACtB,gBAAO,OAAO,EAAC,UAAU,4BAAoB,EAC7C,gBAAO,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,UAAU,GAAG,IACjC,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/grid/SettingsView/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.settings-view {
|
|
5
|
+
grid-column: 1 / -1;
|
|
6
|
+
background: #dedecc;
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: var(--container-gap-default);
|
|
9
|
+
grid-template-columns: subgrid;
|
|
10
|
+
|
|
11
|
+
& > .content {
|
|
12
|
+
grid-column: 2 / -1;
|
|
13
|
+
display: grid;
|
|
14
|
+
gap: var(--container-gap-default);
|
|
15
|
+
grid-template-columns: subgrid;
|
|
16
|
+
|
|
17
|
+
> p,
|
|
18
|
+
.setting {
|
|
19
|
+
grid-column: 1 / -1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.setting {
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-columns: subgrid;
|
|
25
|
+
|
|
26
|
+
& > input {
|
|
27
|
+
grid-column-end: span 2;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/* Component styles */
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/grid/SettingsView/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/grid/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
|
package/dist/esm/lib/index.js
CHANGED
|
@@ -5,9 +5,13 @@ export * from "./Breadcrumbs/index.js";
|
|
|
5
5
|
export * from "./Button/index.js";
|
|
6
6
|
export * from "./Card/index.js";
|
|
7
7
|
export * from "./Chip/index.js";
|
|
8
|
+
export * from "./grid/index.js";
|
|
8
9
|
export * from "./Icon/index.js";
|
|
10
|
+
export * from "./KeyboardKey/index.js";
|
|
11
|
+
export * from "./KeyboardKeys/index.js";
|
|
9
12
|
export * from "./Label/index.js";
|
|
10
13
|
export * from "./Link/index.js";
|
|
14
|
+
export * from "./patterns/index.js";
|
|
11
15
|
export * from "./Rule/index.js";
|
|
12
16
|
export * from "./Section/index.js";
|
|
13
17
|
export * from "./SkipLink/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import { TSection } from "../TSection/index.js";
|
|
4
|
+
import { Category } from "./common/index.js";
|
|
5
|
+
import fixtures from "./fixtures.js";
|
|
6
|
+
const componentCssClassName = "ds categories-section";
|
|
7
|
+
/**
|
|
8
|
+
* CategoriesSection component
|
|
9
|
+
*/
|
|
10
|
+
const CategoriesSection = ({ className, children, title, ...props }) => {
|
|
11
|
+
return (_jsx(TSection, { className: [componentCssClassName, className].filter(Boolean).join(" "), title: title, ...props, children: fixtures.map((category) => (_jsx(Category, { ...category }, category.id))) }));
|
|
12
|
+
};
|
|
13
|
+
export default CategoriesSection;
|
|
14
|
+
//# sourceMappingURL=CategoriesSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoriesSection.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/CategoriesSection/CategoriesSection.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;GAEG;AACH,MAAM,iBAAiB,GAAG,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACe,EAAmB,EAAE;IAC5C,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,KAAK,EAAE,KAAK,KACR,KAAK,YAER,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1B,KAAC,QAAQ,OAAuB,QAAQ,IAAzB,QAAQ,CAAC,EAAE,CAAkB,CAC7C,CAAC,GACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
const componentCssClassName = "ds category";
|
|
4
|
+
/**
|
|
5
|
+
* Category component
|
|
6
|
+
*/
|
|
7
|
+
const Category = ({ className, children, title, items = [], ...props }) => {
|
|
8
|
+
return (_jsxs("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: [_jsx("h3", { children: title }), _jsx("ul", { children: items.map((item) => (_jsx("li", { children: item }, item))) })] }));
|
|
9
|
+
};
|
|
10
|
+
export default Category;
|
|
11
|
+
//# sourceMappingURL=Category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../../../../src/lib/patterns/CategoriesSection/common/Category/Category.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAE5C;;GAEG;AACH,MAAM,QAAQ,GAAG,CAAC,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,GAAG,EAAE,EACV,GAAG,KAAK,EACM,EAAmB,EAAE;IACnC,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,aAET,uBAAK,KAAK,GAAM,EAChB,uBACG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,uBAAgB,IAAI,IAAX,IAAI,CAAa,CAC3B,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/patterns/CategoriesSection/common/Category/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.category {
|
|
5
|
+
background: #ffdede;
|
|
6
|
+
grid-column-end: span 2;
|
|
7
|
+
h3 {
|
|
8
|
+
padding-top: var(--space-100);
|
|
9
|
+
font-size: var(--typography-heading-h3-font-size, 1.5rem);
|
|
10
|
+
margin-bottom: var(--space-100);
|
|
11
|
+
/* Heading styles */
|
|
12
|
+
}
|
|
13
|
+
ul {
|
|
14
|
+
list-style: none;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0;
|
|
17
|
+
li {
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/* Component styles */
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/lib/patterns/CategoriesSection/common/Category/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/patterns/CategoriesSection/common/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
id: "security-and-support",
|
|
4
|
+
title: "Security and support",
|
|
5
|
+
items: [
|
|
6
|
+
"Ubuntu Pro",
|
|
7
|
+
"ESM",
|
|
8
|
+
"Livepatch",
|
|
9
|
+
"Certification and hardening",
|
|
10
|
+
"FIP5",
|
|
11
|
+
"CIS/USG",
|
|
12
|
+
"Airgapped",
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "cloud",
|
|
17
|
+
title: "Cloud",
|
|
18
|
+
items: ["OpenStack", "MAAS", "Landscape", "Ceph", "Juju"],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "ubuntu-os",
|
|
22
|
+
title: "Ubuntu OS",
|
|
23
|
+
items: ["Desktop", "Server", "Core"],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "ubuntu-for-developers",
|
|
27
|
+
title: "Ubuntu for developers",
|
|
28
|
+
items: ["Ubuntu for WSL", "Ubuntu for IoT", "Ubuntu for AI/ML"],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "ubuntu-for-business",
|
|
32
|
+
title: "Ubuntu for business",
|
|
33
|
+
items: ["Ubuntu OpenStack", "Ubuntu Kubernetes", "Ubuntu OpenShift"],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "ubuntu-for-public-sector",
|
|
37
|
+
title: "Ubuntu for public sector",
|
|
38
|
+
items: [
|
|
39
|
+
"Ubuntu OpenStack",
|
|
40
|
+
"Ubuntu Kubernetes",
|
|
41
|
+
"Ubuntu OpenShift",
|
|
42
|
+
"Ubuntu Pro",
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "ai-and-data",
|
|
47
|
+
title: "AI and data",
|
|
48
|
+
items: ["Ubuntu AI/ML", "Ubuntu for AI/ML", "Ubuntu Pro for AI/ML"],
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/CategoriesSection/fixtures.ts"],"names":[],"mappings":"AAAA,eAAe;IACb;QACE,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE;YACL,YAAY;YACZ,KAAK;YACL,WAAW;YACX,6BAA6B;YAC7B,MAAM;YACN,SAAS;YACT,WAAW;SACZ;KACF;IACD;QACE,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC;KAC1D;IACD;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC;KACrC;IACD;QACE,EAAE,EAAE,uBAAuB;QAC3B,KAAK,EAAE,uBAAuB;QAC9B,KAAK,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,CAAC;KAChE;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;KACrE;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,KAAK,EAAE,0BAA0B;QACjC,KAAK,EAAE;YACL,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,YAAY;SACb;KACF;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;KACpE;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/CategoriesSection/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.categories-section {
|
|
5
|
+
> .title {
|
|
6
|
+
grid-column: 1 / span 2;
|
|
7
|
+
}
|
|
8
|
+
.payload {
|
|
9
|
+
grid-column: 3 / -1;
|
|
10
|
+
gap: var(--container-gap-default);
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: subgrid;
|
|
13
|
+
}
|
|
14
|
+
/* Component styles */
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/CategoriesSection/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import { TSection } from "../TSection/index.js";
|
|
4
|
+
const componentCssClassName = "ds chat-section";
|
|
5
|
+
/**
|
|
6
|
+
* ChatSection component
|
|
7
|
+
*/
|
|
8
|
+
const ChatSection = ({ className, children, title, ...props }) => {
|
|
9
|
+
return (_jsx(TSection, { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, title: title, children: _jsx("div", { className: "form", children: _jsx("textarea", { placeholder: "Type your message here..." }) }) }));
|
|
10
|
+
};
|
|
11
|
+
export default ChatSection;
|
|
12
|
+
//# sourceMappingURL=ChatSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSection.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/ChatSection/ChatSection.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACS,EAAmB,EAAE;IACtC,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,EACT,KAAK,EAAE,KAAK,YAEZ,cAAK,SAAS,EAAC,MAAM,YACnB,mBAAU,WAAW,EAAC,2BAA2B,GAAG,GAChD,GACG,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/ChatSection/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.chat-section {
|
|
5
|
+
> .title {
|
|
6
|
+
grid-column: 1 / -1;
|
|
7
|
+
}
|
|
8
|
+
.payload {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: subgrid;
|
|
11
|
+
}
|
|
12
|
+
.form {
|
|
13
|
+
grid-column: 3 / span 4;
|
|
14
|
+
}
|
|
15
|
+
textarea {
|
|
16
|
+
width: 100%;
|
|
17
|
+
resize: vertical;
|
|
18
|
+
border: 0;
|
|
19
|
+
}
|
|
20
|
+
/* Component styles */
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/ChatSection/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import { TSection } from "../TSection/index.js";
|
|
4
|
+
const componentCssClassName = "ds description-section";
|
|
5
|
+
/**
|
|
6
|
+
* DescriptionSection component
|
|
7
|
+
*/
|
|
8
|
+
const DescriptionSection = ({ className, children, title, ...props }) => {
|
|
9
|
+
return (_jsx(TSection, { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, title: title, children: children }));
|
|
10
|
+
};
|
|
11
|
+
export default DescriptionSection;
|
|
12
|
+
//# sourceMappingURL=DescriptionSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionSection.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/DescriptionSection/DescriptionSection.tsx"],"names":[],"mappings":";AAKA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,qBAAqB,GAAG,wBAAwB,CAAC;AAEvD;;GAEG;AACH,MAAM,kBAAkB,GAAG,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACgB,EAAmB,EAAE;IAC7C,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,EACT,KAAK,EAAE,KAAK,YAEX,QAAQ,GACA,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/DescriptionSection/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.description-section {
|
|
5
|
+
> .title {
|
|
6
|
+
grid-column: auto / span 4;
|
|
7
|
+
}
|
|
8
|
+
> .payload {
|
|
9
|
+
grid-column: auto / span 4;
|
|
10
|
+
/* background: red; */
|
|
11
|
+
}
|
|
12
|
+
/* Component styles */
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/DescriptionSection/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "./styles.css";
|
|
3
|
+
import { Icon } from "../../Icon/index.js";
|
|
4
|
+
import { TSection } from "../TSection/index.js";
|
|
5
|
+
const componentCssClassName = "ds icon-section";
|
|
6
|
+
const iconSelection = [
|
|
7
|
+
"arrow-down",
|
|
8
|
+
"arrow-left",
|
|
9
|
+
"arrow-right",
|
|
10
|
+
"arrow-up",
|
|
11
|
+
"blueprint",
|
|
12
|
+
"bug",
|
|
13
|
+
"checkmark",
|
|
14
|
+
"chevron-down",
|
|
15
|
+
"chevron-right",
|
|
16
|
+
"close",
|
|
17
|
+
"code",
|
|
18
|
+
"copy",
|
|
19
|
+
"debug",
|
|
20
|
+
"delete",
|
|
21
|
+
"download",
|
|
22
|
+
"edit",
|
|
23
|
+
"error",
|
|
24
|
+
"external-link",
|
|
25
|
+
"file",
|
|
26
|
+
"filter",
|
|
27
|
+
"folder",
|
|
28
|
+
"help",
|
|
29
|
+
"home",
|
|
30
|
+
"information",
|
|
31
|
+
"link",
|
|
32
|
+
"menu",
|
|
33
|
+
"notifications",
|
|
34
|
+
"plus",
|
|
35
|
+
"search",
|
|
36
|
+
"security",
|
|
37
|
+
];
|
|
38
|
+
/**
|
|
39
|
+
* IconSection component
|
|
40
|
+
*/
|
|
41
|
+
const IconSection = ({ className, children, ...props }) => {
|
|
42
|
+
return (_jsx(TSection, { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: iconSelection.map((icon) => (_jsx("div", { className: "icon-wrapper", children: _jsx(Icon, { icon: icon }) }, icon))) }));
|
|
43
|
+
};
|
|
44
|
+
export default IconSection;
|
|
45
|
+
//# sourceMappingURL=IconSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSection.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/IconSection/IconSection.tsx"],"names":[],"mappings":";AAMA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD,MAAM,aAAa,GAAe;IAChC,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,UAAU;IACV,WAAW;IACX,KAAK;IACL,WAAW;IACX,cAAc;IACd,eAAe;IACf,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,MAAM;IACN,OAAO;IACP,eAAe;IACf,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,MAAM;IACN,aAAa;IACb,MAAM;IACN,MAAM;IACN,eAAe;IACf,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACS,EAAmB,EAAE;IACtC,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAER,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC3B,cAAgB,SAAS,EAAC,cAAc,YACtC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,IADZ,IAAI,CAER,CACP,CAAC,GACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/IconSection/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Generated by component/react v0.1.0 */
|
|
2
|
+
/* Generated by @canonical/summon:component-react v0.1.0 */
|
|
3
|
+
|
|
4
|
+
.ds.icon-section {
|
|
5
|
+
> .title {
|
|
6
|
+
grid-column: auto / span 2;
|
|
7
|
+
}
|
|
8
|
+
> .payload {
|
|
9
|
+
grid-column: 3 / -1;
|
|
10
|
+
display: grid;
|
|
11
|
+
gap: var(--container-gap-default);
|
|
12
|
+
grid-template-columns: subgrid;
|
|
13
|
+
/* background: red; */
|
|
14
|
+
.icon-wrapper {
|
|
15
|
+
background: #ffffee;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/patterns/IconSection/types.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wDAAwD"}
|