@genesislcap/documentation-components 14.266.1 → 14.267.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/dts/components/design-system-editor/design-system-editor.d.ts.map +1 -1
- package/dist/dts/components/design-system-export/design-system-export.d.ts +1 -2
- package/dist/dts/components/design-system-export/design-system-export.d.ts.map +1 -1
- package/dist/dts/components/design-system-preview/design-system-preview.template.d.ts.map +1 -1
- package/dist/dts/components/preview-components/preview-components.d.ts +2 -2
- package/dist/dts/components/preview-components/preview-components.d.ts.map +1 -1
- package/dist/dts/components/preview-form/preview-form.d.ts.map +1 -1
- package/dist/dts/components/preview-grid/preview-grid.d.ts.map +1 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/components/design-system-editor/design-system-editor.js +13 -36
- package/dist/esm/components/design-system-editor/design-system-editor.styles.js +11 -11
- package/dist/esm/components/design-system-editor/design-system-editor.template.js +47 -47
- package/dist/esm/components/design-system-export/design-system-export.template.js +7 -7
- package/dist/esm/components/design-system-preview/design-system-preview.styles.js +1 -1
- package/dist/esm/components/design-system-preview/design-system-preview.template.js +36 -17
- package/dist/esm/components/preview-components/preview-components.js +1 -1
- package/dist/esm/components/preview-components/preview-components.styles.js +8 -8
- package/dist/esm/components/preview-form/preview-form.js +1 -1
- package/dist/esm/components/preview-form/preview-form.styles.js +1 -1
- package/dist/esm/components/preview-grid/preview-grid.js +1 -1
- package/dist/esm/components/preview-grid/preview-grid.styles.js +1 -1
- package/dist/esm/index.js +0 -3
- package/package.json +17 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-editor/design-system-editor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"design-system-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-editor/design-system-editor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAwC,MAAM,yBAAyB,CAAC;AAE5F,OAAO,EAGL,sBAAsB,EACtB,YAAY,EAEb,MAAM,aAAa,CAAC;AA0ErB,qBAKa,kBAAmB,SAAQ,WAAW;IACW,gBAAgB,EAAE,OAAO,CAAS;IAC3E,aAAa,EAAE,YAAY,EAAE,CAAC;IAE3C,uBAAuB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO;IAe3D,cAAc,EAAE,GAAG,CAAM;IAGzB,EAAE,SAAW;IACpB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAoBrC,QAAQ,EAAE,OAAO,CAA0D;IAC3E,SAAS,EAAE,MAAM,CAA2B;IAG5C,YAAY,EAAE,MAAM,CAA8B;IAGlD,WAAW,EAAE,MAAM,CAA6B;IAGhD,QAAQ,EAAE,MAAM,CAA0B;IAG1C,OAAO,EAAE,MAAM,CAAyB;IAGxC,YAAY,EAAE,MAAM,CAA8B;IAGlD,WAAW,EAAE,MAAM,CAA6B;IAGhD,UAAU,EAAE,MAAM,CAA4B;IAG9C,YAAY,EAAE,MAAM,CAA8B;IAGlD,cAAc,EAAE,MAAM,CAAgC;IAEjD,eAAe,EAAE,OAAO,CAAQ;IAC5C,OAAO,CAAC,qBAAqB,CAAkB;IAE/C,aAAa,MAAO,WAAW,KAAG,IAAI,CAsBpC;IAEF,oBAAoB,kCAIlB;IAEF,iBAAiB,MAAO,WAAW,KAAG,IAAI,CAKxC;IAEF,WAAW;IAgBX,mBAAmB,mBAUjB;IAEF,eAAe,CAAC,EAAE,EAAE,sBAAsB;IAe1C,aAAa;IAUb,YAAY,sBAIV;IAEF,iBAAiB;CAWlB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Modal } from '@genesislcap/
|
|
1
|
+
import { Modal } from '@genesislcap/foundation-ui';
|
|
2
2
|
import { FASTElement } from '@microsoft/fast-element';
|
|
3
3
|
export declare class DesignSystemExport extends FASTElement {
|
|
4
4
|
modal: Modal;
|
|
5
|
-
closeAlphaDialogTrigger: HTMLElement;
|
|
6
5
|
value: any;
|
|
7
6
|
tokensPath: any;
|
|
8
7
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-export.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-export/design-system-export.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"design-system-export.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-export/design-system-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAuB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAM3E,qBAKa,kBAAmB,SAAQ,WAAW;IAC1C,KAAK,EAAE,KAAK,CAAC;IACP,KAAK,MAAC;IACb,UAAU,MAAC;IACV,iBAAiB;IAQjB,YAAY,0BA2DjB;IAEK,SAAS,aAEd;IAEK,UAAU,aAEf;IAEK,YAAY,aAsBjB;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-preview.template.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-preview/design-system-preview.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"design-system-preview.template.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-preview/design-system-preview.template.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAc9D,eAAO,MAAM,2BAA2B,0EA6BvC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ActionMenuItem, DropdownMenuItem, Modal } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { Banner, Dialog } from '@genesislcap/foundation-ui';
|
|
3
3
|
import { FASTElement } from '@microsoft/fast-element';
|
|
4
4
|
export declare class PreviewComponents extends FASTElement {
|
|
5
5
|
modal: Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-components.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-components/preview-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"preview-components.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-components/preview-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAO5F,qBAKa,iBAAkB,SAAQ,WAAW;IAEzC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,cAAc,CAAC;IAE/B,MAAM,SAAW;IAClB,sBAAsB,SAAkB;IACxC,uBAAuB,SAAkB;IACzC,uBAAuB,SAAsB;IAC7C,oBAAoB,SAAiB;IACrC,qBAAqB,SAAa;IAClC,sBAAsB,SAAe;IACrC,SAAS,SAAW;IAEpB,KAAK,WAA8C;IACnD,SAAS,WA0BnB;IAEU,WAAW,EAAE,cAAc,EAAE,CAiBvC;IAEU,cAAc;;;;;;MAIxB;IACU,iBAAiB,EAAE,gBAAgB,EAAE,CA4C/C;IAEK,QAAQ,EAAE,WAAW,CAAC;IAE7B,iBAAiB;IAcjB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,eAAe;IAWvB,UAAU,CAAC,KAAK,KAAA;IAIhB,WAAW,CAAC,KAAK,KAAA;IAIjB,aAAa;CAGd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-form.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-form/preview-form.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,WAAW,EAAyB,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO1C,qBAKa,WAAY,SAAQ,WAAW;IAC9B,UAAU,EAAE,WAAW,CAAe;IACtC,QAAQ,mDAAY;IACpB,eAAe,EAAE,WAAW,CAAqB;IACjD,aAAa,mDAAiB;IAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"preview-form.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-form/preview-form.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,WAAW,EAAyB,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO1C,qBAKa,WAAY,SAAQ,WAAW;IAC9B,UAAU,EAAE,WAAW,CAAe;IACtC,QAAQ,mDAAY;IACpB,eAAe,EAAE,WAAW,CAAqB;IACjD,aAAa,mDAAiB;IAC7B,MAAM,SAAW;IACX,QAAQ,EAAE,WAAW,CAAC;IACtB,YAAY,EAAE,GAAG,CAQlC;IACU,iBAAiB,EAAE,GAAG,CAehC;IAEF,iBAAiB;IAcjB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,eAAe;CAGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-grid.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-grid/preview-grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAqB,MAAM,uCAAuC,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAO5F,qBAKa,WAAY,SAAQ,WAAW;IAEnC,IAAI,EAAE,OAAO,CAAC;IACR,MAAM,
|
|
1
|
+
{"version":3,"file":"preview-grid.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-grid/preview-grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAqB,MAAM,uCAAuC,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAO5F,qBAKa,WAAY,SAAQ,WAAW;IAEnC,IAAI,EAAE,OAAO,CAAC;IACR,MAAM,SAAW;IAGvB,QAAQ,EAAE,WAAW,CAAC;IAEjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;SAAsB;IAE7B,UAAU,EAAE,MAAM,EAAE,CA2C9B;IAEiB,WAAW,EAAE,WAAW,CAQzC;IAEK,cAAc;IAGrB,wBAAwB,uBAOtB;IAEK,qCAAqC,EAAE,GAAG,EAAE,CAWjD;IAEF,OAAO,CAAC,eAAe,CAiBrB;IAEK,gCAAgC,EAAE,MAAM,CAS7C;IAEK,yBAAyB;;;;;;;;;;;;MAc9B;IAEF,iBAAiB;IAejB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,eAAe;CAMxB"}
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAwBA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { designTokens as alphaDefaultDesignTokens } from '@genesislcap/alpha-design-system';
|
|
3
2
|
import { loadRobotoFontFaces, designTokens as zeroDefaultDesignTokens, } from '@genesislcap/foundation-zero';
|
|
4
3
|
import { designTokens as rapidDefaultDesignTokens } from '@genesislcap/rapid-design-system';
|
|
5
4
|
import { StandardLuminance, Combobox, Select } from '@microsoft/fast-components';
|
|
@@ -34,18 +33,6 @@ const ZeroBadgeAppearance = {
|
|
|
34
33
|
neutral: 'secondary',
|
|
35
34
|
font: 'white',
|
|
36
35
|
};
|
|
37
|
-
const AlphaDefaults = mapDesignToken(alphaDefaultDesignTokens);
|
|
38
|
-
const AlphaButtonApperance = {
|
|
39
|
-
accent: 'accent',
|
|
40
|
-
neutral: 'neutral',
|
|
41
|
-
outline: 'outline',
|
|
42
|
-
text: 'lightweight',
|
|
43
|
-
};
|
|
44
|
-
const AlphaBadgeAppearance = {
|
|
45
|
-
accent: 'primary',
|
|
46
|
-
neutral: 'neutral',
|
|
47
|
-
font: 'white',
|
|
48
|
-
};
|
|
49
36
|
const RapidDefaults = mapDesignToken(rapidDefaultDesignTokens);
|
|
50
37
|
const RapidButtonApperance = {
|
|
51
38
|
accent: 'primary',
|
|
@@ -65,12 +52,6 @@ const DS = {
|
|
|
65
52
|
buttons: ZeroButtonApperance,
|
|
66
53
|
badge: ZeroBadgeAppearance,
|
|
67
54
|
},
|
|
68
|
-
alpha: {
|
|
69
|
-
prefix: 'alpha',
|
|
70
|
-
tokenDefaults: AlphaDefaults,
|
|
71
|
-
buttons: AlphaButtonApperance,
|
|
72
|
-
badge: AlphaBadgeAppearance,
|
|
73
|
-
},
|
|
74
55
|
rapid: {
|
|
75
56
|
prefix: 'rapid',
|
|
76
57
|
tokenDefaults: RapidDefaults,
|
|
@@ -89,18 +70,18 @@ let DesignSystemEditor = class DesignSystemEditor extends FASTElement {
|
|
|
89
70
|
super(...arguments);
|
|
90
71
|
this.customDesignMode = false;
|
|
91
72
|
this.userSelections = {};
|
|
92
|
-
this.ds = '
|
|
93
|
-
this.darkMode =
|
|
94
|
-
this.luminance =
|
|
95
|
-
this.neutralColor =
|
|
96
|
-
this.accentColor =
|
|
97
|
-
this.bodyFont =
|
|
98
|
-
this.density =
|
|
99
|
-
this.borderRadius =
|
|
100
|
-
this.strokeWidth =
|
|
101
|
-
this.designUnit =
|
|
102
|
-
this.baseFontSize =
|
|
103
|
-
this.baseLineHeight =
|
|
73
|
+
this.ds = 'rapid';
|
|
74
|
+
this.darkMode = RapidDefaults.luminance === StandardLuminance.DarkMode;
|
|
75
|
+
this.luminance = RapidDefaults.luminance;
|
|
76
|
+
this.neutralColor = RapidDefaults.neutralColor;
|
|
77
|
+
this.accentColor = RapidDefaults.accentColor;
|
|
78
|
+
this.bodyFont = RapidDefaults.bodyFont;
|
|
79
|
+
this.density = RapidDefaults.density;
|
|
80
|
+
this.borderRadius = RapidDefaults.borderRadius;
|
|
81
|
+
this.strokeWidth = RapidDefaults.strokeWidth;
|
|
82
|
+
this.designUnit = RapidDefaults.designUnit;
|
|
83
|
+
this.baseFontSize = RapidDefaults.baseFontSize;
|
|
84
|
+
this.baseLineHeight = RapidDefaults.baseLineHeight;
|
|
104
85
|
this.preserveOptions = true;
|
|
105
86
|
this.tokenUpdateInProgress = false;
|
|
106
87
|
this.changeHandler = (e) => {
|
|
@@ -155,11 +136,7 @@ let DesignSystemEditor = class DesignSystemEditor extends FASTElement {
|
|
|
155
136
|
}
|
|
156
137
|
customDesignModeChanged(oldValue, newValue) {
|
|
157
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
-
const defaultDesignSystems = [
|
|
159
|
-
{ name: 'Zero', value: 'zero' },
|
|
160
|
-
{ name: 'Foundation UI', value: 'alpha' },
|
|
161
|
-
{ name: 'Rapid', value: 'rapid' },
|
|
162
|
-
];
|
|
139
|
+
const defaultDesignSystems = [{ name: 'Rapid', value: 'rapid' }];
|
|
163
140
|
if (this.customDesignMode) {
|
|
164
141
|
const { appName = 'Custom Design', dsPrefix = 'custom' } = yield this.getAppDetails();
|
|
165
142
|
const customDesignSystem = { name: appName, value: dsPrefix };
|
|
@@ -10,8 +10,8 @@ export const DesignSystemEditorStyles = css `
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.configuration {
|
|
13
|
-
background: #
|
|
14
|
-
color: #
|
|
13
|
+
background: #333;
|
|
14
|
+
color: #fafafa;
|
|
15
15
|
width: 300px;
|
|
16
16
|
flex: none;
|
|
17
17
|
padding: 15px;
|
|
@@ -76,32 +76,32 @@ export const DesignSystemEditorStyles = css `
|
|
|
76
76
|
overflow: auto;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
rapid-select {
|
|
80
80
|
min-width: 190px;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
rapid-combobox {
|
|
84
84
|
min-width: 100px;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
rapid-slider-label {
|
|
88
88
|
font-size: 10px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
rapid-slider {
|
|
92
92
|
margin-top: 12px;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
rapid-slider::part(thumb-container) {
|
|
96
96
|
border: 1px solid var(--neutral-stroke-hover);
|
|
97
97
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
rapid-checkbox::part(control) {
|
|
101
101
|
width: 32px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
rapid-checkbox::part(label) {
|
|
105
105
|
color: #333;
|
|
106
106
|
padding: 15px;
|
|
107
107
|
font-size: 12px;
|
|
@@ -125,11 +125,11 @@ export const DesignSystemEditorStyles = css `
|
|
|
125
125
|
margin-top: 20px;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
rapid-text-field::part(root) {
|
|
129
129
|
height: 30px;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
rapid-button {
|
|
133
133
|
margin: 0;
|
|
134
134
|
}
|
|
135
135
|
`;
|
|
@@ -9,14 +9,14 @@ export const DesignSystemEditorTemplate = html `
|
|
|
9
9
|
<label for="body-font">Design System</label>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="input">
|
|
12
|
-
<
|
|
12
|
+
<rapid-select
|
|
13
13
|
name="ds"
|
|
14
14
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
15
15
|
>
|
|
16
16
|
${repeat((x) => x.designSystems, html `
|
|
17
|
-
<
|
|
17
|
+
<rapid-option value="${(x) => x.value}">${(x) => x.name}</rapid-option>
|
|
18
18
|
`)}
|
|
19
|
-
</
|
|
19
|
+
</rapid-select>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
`)}
|
|
@@ -32,12 +32,12 @@ export const DesignSystemEditorTemplate = html `
|
|
|
32
32
|
:value="${(x) => x.accentColor}"
|
|
33
33
|
@input="${(x, c) => x.changeHandler(c.event)}"
|
|
34
34
|
/>
|
|
35
|
-
<
|
|
35
|
+
<rapid-text-field
|
|
36
36
|
name="accentColor"
|
|
37
37
|
type="text"
|
|
38
38
|
:value="${(x) => x.accentColor}"
|
|
39
39
|
@input="${(x, c) => x.changeHandler(c.event)}"
|
|
40
|
-
></
|
|
40
|
+
></rapid-text-field>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
|
|
@@ -52,12 +52,12 @@ export const DesignSystemEditorTemplate = html `
|
|
|
52
52
|
:value="${(x) => x.neutralColor}"
|
|
53
53
|
@input="${(x, c) => x.changeHandler(c.event)}"
|
|
54
54
|
/>
|
|
55
|
-
<
|
|
55
|
+
<rapid-text-field
|
|
56
56
|
name="neutralColor"
|
|
57
57
|
type="text"
|
|
58
58
|
:value="${(x) => x.neutralColor}"
|
|
59
59
|
@input="${(x, c) => x.changeHandler(c.event)}"
|
|
60
|
-
></
|
|
60
|
+
></rapid-text-field>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
|
|
@@ -66,21 +66,21 @@ export const DesignSystemEditorTemplate = html `
|
|
|
66
66
|
<label for="body-font">Body Font</label>
|
|
67
67
|
</div>
|
|
68
68
|
<div class="input">
|
|
69
|
-
<
|
|
69
|
+
<rapid-combobox
|
|
70
70
|
name="bodyFont"
|
|
71
71
|
autocomplete="both"
|
|
72
72
|
:value="${(x) => x.bodyFont}"
|
|
73
73
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
74
74
|
>
|
|
75
|
-
<
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
</
|
|
75
|
+
<rapid-option value="Roboto">Roboto</rapid-option>
|
|
76
|
+
<rapid-option value="Segoe UI">Segoe UI</rapid-option>
|
|
77
|
+
<rapid-option value="Monospace">Monospace</rapid-option>
|
|
78
|
+
<rapid-option value="Times New Roman">Times New Roman</rapid-option>
|
|
79
|
+
<rapid-option value="Helvetica">Helvetica</rapid-option>
|
|
80
|
+
<rapid-option value="Garamond">Garamond</rapid-option>
|
|
81
|
+
<rapid-option value="Georgia">Georgia</rapid-option>
|
|
82
|
+
<rapid-option value="Verdana">Verdana</rapid-option>
|
|
83
|
+
</rapid-combobox>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
@@ -89,20 +89,20 @@ export const DesignSystemEditorTemplate = html `
|
|
|
89
89
|
<label for="base-font-size">Base Font Size</label>
|
|
90
90
|
</div>
|
|
91
91
|
<div class="input">
|
|
92
|
-
<
|
|
92
|
+
<rapid-combobox
|
|
93
93
|
name="baseFontSize"
|
|
94
94
|
autocomplete="both"
|
|
95
95
|
:value="${(x) => x.baseFontSize}"
|
|
96
96
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
97
97
|
>
|
|
98
|
-
<
|
|
99
|
-
<
|
|
100
|
-
<
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
</
|
|
98
|
+
<rapid-option value="8px">8px</rapid-option>
|
|
99
|
+
<rapid-option value="10px">10px</rapid-option>
|
|
100
|
+
<rapid-option value="12px">12px</rapid-option>
|
|
101
|
+
<rapid-option value="14px">14px</rapid-option>
|
|
102
|
+
<rapid-option value="16px">16px</rapid-option>
|
|
103
|
+
<rapid-option value="20px">20px</rapid-option>
|
|
104
|
+
<rapid-option value="24px">24px</rapid-option>
|
|
105
|
+
</rapid-combobox>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
108
|
|
|
@@ -111,19 +111,19 @@ export const DesignSystemEditorTemplate = html `
|
|
|
111
111
|
<label for="base-line-height">Base Line Height</label>
|
|
112
112
|
</div>
|
|
113
113
|
<div class="input">
|
|
114
|
-
<
|
|
114
|
+
<rapid-combobox
|
|
115
115
|
name="baseLineHeight"
|
|
116
116
|
autocomplete="both"
|
|
117
117
|
:value="${(x) => x.baseLineHeight}"
|
|
118
118
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
119
119
|
>
|
|
120
|
-
<
|
|
121
|
-
<
|
|
122
|
-
<
|
|
123
|
-
<
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
</
|
|
120
|
+
<rapid-option value="12px">12px</rapid-option>
|
|
121
|
+
<rapid-option value="14px">14px</rapid-option>
|
|
122
|
+
<rapid-option value="16px">16px</rapid-option>
|
|
123
|
+
<rapid-option value="20px">20px</rapid-option>
|
|
124
|
+
<rapid-option value="24px">24px</rapid-option>
|
|
125
|
+
<rapid-option value="28px">28px</rapid-option>
|
|
126
|
+
</rapid-combobox>
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
|
|
@@ -132,7 +132,7 @@ export const DesignSystemEditorTemplate = html `
|
|
|
132
132
|
<label for="dark-mode-switch">Dark mode</label>
|
|
133
133
|
</div>
|
|
134
134
|
<div class="input">
|
|
135
|
-
<
|
|
135
|
+
<rapid-switch
|
|
136
136
|
name="darkMode"
|
|
137
137
|
:checked="${(x) => x.darkMode}"
|
|
138
138
|
@change="${(x, c) => x.modeChangeHandler(c.event)}
|
|
@@ -140,7 +140,7 @@ export const DesignSystemEditorTemplate = html `
|
|
|
140
140
|
>
|
|
141
141
|
<span slot="checked-message">On</span>
|
|
142
142
|
<span slot="unchecked-message">Off</span>
|
|
143
|
-
</
|
|
143
|
+
</rapid-switch>
|
|
144
144
|
</div>
|
|
145
145
|
</div>
|
|
146
146
|
|
|
@@ -149,14 +149,14 @@ export const DesignSystemEditorTemplate = html `
|
|
|
149
149
|
<label for="density-slider">Density</label>
|
|
150
150
|
</div>
|
|
151
151
|
<div class="input">
|
|
152
|
-
<
|
|
152
|
+
<rapid-slider
|
|
153
153
|
name="density"
|
|
154
154
|
min="-3"
|
|
155
155
|
max="3"
|
|
156
156
|
step="1"
|
|
157
157
|
:value="${(x) => x.density}"
|
|
158
158
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
159
|
-
></
|
|
159
|
+
></rapid-slider>
|
|
160
160
|
</div>
|
|
161
161
|
</div>
|
|
162
162
|
|
|
@@ -165,14 +165,14 @@ export const DesignSystemEditorTemplate = html `
|
|
|
165
165
|
<label for="design-unit-slider">Design Unit</label>
|
|
166
166
|
</div>
|
|
167
167
|
<div class="input">
|
|
168
|
-
<
|
|
168
|
+
<rapid-slider
|
|
169
169
|
name="designUnit"
|
|
170
170
|
min="1"
|
|
171
171
|
max="10"
|
|
172
172
|
step="1"
|
|
173
173
|
:value="${(x) => x.designUnit}"
|
|
174
174
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
175
|
-
></
|
|
175
|
+
></rapid-slider>
|
|
176
176
|
</div>
|
|
177
177
|
</div>
|
|
178
178
|
|
|
@@ -181,14 +181,14 @@ export const DesignSystemEditorTemplate = html `
|
|
|
181
181
|
<label for="border-radius-slider">Border radius</label>
|
|
182
182
|
</div>
|
|
183
183
|
<div class="input">
|
|
184
|
-
<
|
|
184
|
+
<rapid-slider
|
|
185
185
|
name="borderRadius"
|
|
186
186
|
min="0"
|
|
187
187
|
max="20"
|
|
188
188
|
step="1"
|
|
189
189
|
:value="${(x) => x.borderRadius}"
|
|
190
190
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
191
|
-
></
|
|
191
|
+
></rapid-slider>
|
|
192
192
|
</div>
|
|
193
193
|
</div>
|
|
194
194
|
|
|
@@ -197,24 +197,24 @@ export const DesignSystemEditorTemplate = html `
|
|
|
197
197
|
<label for="stroke-width-slider">Stroke width</label>
|
|
198
198
|
</div>
|
|
199
199
|
<div class="input">
|
|
200
|
-
<
|
|
200
|
+
<rapid-slider
|
|
201
201
|
name="strokeWidth"
|
|
202
202
|
min="1"
|
|
203
203
|
max="4"
|
|
204
204
|
step="1"
|
|
205
205
|
:value="${(x) => x.strokeWidth}"
|
|
206
206
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
207
|
-
></
|
|
207
|
+
></rapid-slider>
|
|
208
208
|
</div>
|
|
209
209
|
</div>
|
|
210
210
|
${when((x) => !x.customDesignMode, html `
|
|
211
|
-
<
|
|
211
|
+
<rapid-checkbox :checked="${sync((x) => x.preserveOptions, 'boolean')}">
|
|
212
212
|
Preserve selected options when changing design systems
|
|
213
|
-
</
|
|
213
|
+
</rapid-checkbox>
|
|
214
214
|
`)}
|
|
215
215
|
|
|
216
216
|
<div class="footer-row">
|
|
217
|
-
<
|
|
217
|
+
<rapid-button appearance="accent" @click="${(x) => x.resetChanges()}">Reset</rapid-button>
|
|
218
218
|
<slot name="export"></slot>
|
|
219
219
|
</div>
|
|
220
220
|
</div>
|
|
@@ -2,22 +2,22 @@ import { html, ref, when } from '@microsoft/fast-element';
|
|
|
2
2
|
export const DesignSystemExportTemplate = html `
|
|
3
3
|
<template>
|
|
4
4
|
<div class="export">
|
|
5
|
-
<
|
|
6
|
-
<
|
|
5
|
+
<rapid-button appearance="accent" @click="${(x) => x.showModal()}">Save Changes</rapid-button>
|
|
6
|
+
<rapid-modal ${ref('modal')}>
|
|
7
7
|
<slot>
|
|
8
8
|
<textarea rows="26" cols="34" class="textarea" :value=${(x) => x.value}></textarea>
|
|
9
9
|
</slot>
|
|
10
10
|
<div class="buttons">
|
|
11
|
-
<
|
|
11
|
+
<rapid-button appearance="accent" @click="${(x) => x.closeModal()}" slot="bottom">
|
|
12
12
|
Close
|
|
13
|
-
</
|
|
13
|
+
</rapid-button>
|
|
14
14
|
${when((x) => x.tokensPath, html `
|
|
15
|
-
<
|
|
15
|
+
<rapid-button appearance="accent" @click="${(x) => x.updateTokens()}" slot="bottom">
|
|
16
16
|
Save
|
|
17
|
-
</
|
|
17
|
+
</rapid-button>
|
|
18
18
|
`)}
|
|
19
19
|
</div>
|
|
20
|
-
</
|
|
20
|
+
</rapid-modal>
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
23
23
|
`;
|
|
@@ -1,31 +1,50 @@
|
|
|
1
|
+
import { Form as FoundationForms } from '@genesislcap/foundation-forms';
|
|
1
2
|
import { html } from '@microsoft/fast-element';
|
|
3
|
+
import { ColorPalette } from '../color-palette';
|
|
4
|
+
import { ColorToken } from '../color-token';
|
|
5
|
+
import { ColorTokens } from '../color-tokens';
|
|
6
|
+
import { PreviewComponents } from '../preview-components';
|
|
7
|
+
import { PreviewForm } from '../preview-form';
|
|
8
|
+
import { PreviewGrid } from '../preview-grid';
|
|
9
|
+
import { TypographyTokens } from '../typography-tokens';
|
|
10
|
+
// DesignSystemEditor;
|
|
11
|
+
PreviewComponents;
|
|
12
|
+
// DesignSystemExport;
|
|
13
|
+
ColorPalette;
|
|
14
|
+
ColorToken;
|
|
15
|
+
ColorTokens;
|
|
16
|
+
TypographyTokens;
|
|
17
|
+
// DesignSystemPreview;
|
|
18
|
+
FoundationForms;
|
|
19
|
+
PreviewForm;
|
|
20
|
+
PreviewGrid;
|
|
2
21
|
export const DesignSystemPreviewTemplate = html `
|
|
3
22
|
<template>
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
23
|
+
<rapid-tabs>
|
|
24
|
+
<rapid-tab slot="tab">Components</rapid-tab>
|
|
25
|
+
<rapid-tab slot="tab">Typography</rapid-tab>
|
|
26
|
+
<rapid-tab slot="tab">Colors</rapid-tab>
|
|
27
|
+
<rapid-tab slot="tab">Form</rapid-tab>
|
|
28
|
+
<rapid-tab slot="tab">Grid</rapid-tab>
|
|
29
|
+
<rapid-tab-panel slot="tabpanel">
|
|
11
30
|
<preview-components></preview-components>
|
|
12
|
-
</
|
|
13
|
-
<
|
|
31
|
+
</rapid-tab-panel>
|
|
32
|
+
<rapid-tab-panel slot="tabpanel">
|
|
14
33
|
<typography-tokens></typography-tokens>
|
|
15
|
-
</
|
|
16
|
-
<
|
|
34
|
+
</rapid-tab-panel>
|
|
35
|
+
<rapid-tab-panel slot="tabpanel">
|
|
17
36
|
<div class="wrapper">
|
|
18
37
|
<color-palette type="neutral"></color-palette>
|
|
19
38
|
<color-palette type="accent"></color-palette>
|
|
20
39
|
<color-tokens></color-tokens>
|
|
21
40
|
</div>
|
|
22
|
-
</
|
|
23
|
-
<
|
|
41
|
+
</rapid-tab-panel>
|
|
42
|
+
<rapid-tab-panel slot="tabpanel">
|
|
24
43
|
<preview-form></preview-form>
|
|
25
|
-
</
|
|
26
|
-
<
|
|
44
|
+
</rapid-tab-panel>
|
|
45
|
+
<rapid-tab-panel slot="tabpanel">
|
|
27
46
|
<preview-grid></preview-grid>
|
|
28
|
-
</
|
|
29
|
-
</
|
|
47
|
+
</rapid-tab-panel>
|
|
48
|
+
</rapid-tabs>
|
|
30
49
|
</template>
|
|
31
50
|
`;
|
|
@@ -9,7 +9,7 @@ import { PreviewComponentsTemplate as template } from './preview-components.temp
|
|
|
9
9
|
let PreviewComponents = class PreviewComponents extends FASTElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
|
-
this.prefix = '
|
|
12
|
+
this.prefix = 'rapid';
|
|
13
13
|
this.buttonAppearanceAccent = 'primary-blue';
|
|
14
14
|
this.buttonAppearanceNeutral = 'primary-grey';
|
|
15
15
|
this.buttonAppearanceOutline = 'primary-gradient';
|
|
@@ -32,21 +32,21 @@ export const PreviewComponentsStyles = css `
|
|
|
32
32
|
padding: 0 8px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
rapid-button,
|
|
36
|
+
rapid-flipper {
|
|
37
37
|
margin-right: calc(var(--base-horizontal-spacing-multiplier) * 2px);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
rapid-progress-ring {
|
|
41
41
|
margin: 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
rapid-accordion,
|
|
45
|
+
rapid-text-field {
|
|
46
46
|
width: 100%;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
rapid-design-system-provider {
|
|
50
50
|
display: inline;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -71,8 +71,8 @@ export const PreviewComponentsStyles = css `
|
|
|
71
71
|
|
|
72
72
|
zero-dialog,
|
|
73
73
|
zero-error-dialog,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
rapid-dialog,
|
|
75
|
+
rapid-error-dialog,
|
|
76
76
|
rapid-dialog {
|
|
77
77
|
position: relative;
|
|
78
78
|
z-index: 100;
|
|
@@ -13,7 +13,7 @@ let PreviewForm = class PreviewForm extends FASTElement {
|
|
|
13
13
|
this.uischema = uiSchema;
|
|
14
14
|
this.jsonSchemaArray = JSON_SCHEMA_ARRAY;
|
|
15
15
|
this.uiSchemaArray = uiSchemaArray;
|
|
16
|
-
this.prefix = '
|
|
16
|
+
this.prefix = 'rapid';
|
|
17
17
|
this.editedEntity = {
|
|
18
18
|
group1: {
|
|
19
19
|
NAME: 'Test Name',
|
|
@@ -10,7 +10,7 @@ import { PreviewGridTemplate as template } from './preview-grid.template';
|
|
|
10
10
|
let PreviewGrid = class PreviewGrid extends FASTElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
-
this.prefix = '
|
|
13
|
+
this.prefix = 'rapid';
|
|
14
14
|
this.rowData = [...sampleRowData];
|
|
15
15
|
this.columnDefs = [
|
|
16
16
|
{ headerName: '#', colId: 'rowNum', valueGetter: 'node.id', width: 80, pinned: 'left' },
|
package/dist/esm/index.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { provideDesignSystem as provideAlphaDesignSystem, baseComponents as alphaBaseComponents, } from '@genesislcap/alpha-design-system';
|
|
2
1
|
import { Form as FoundationForms } from '@genesislcap/foundation-forms';
|
|
3
2
|
import { provideDesignSystem as provideZeroDesignSystem, baseComponents as zeroBaseComponents, } from '@genesislcap/foundation-zero';
|
|
4
3
|
import { zeroGridComponents } from '@genesislcap/foundation-zero-grid-pro';
|
|
5
|
-
import { foundationGridComponents } from '@genesislcap/grid-pro';
|
|
6
4
|
import { provideDesignSystem as provideRapidDesignSystem, baseComponents as rapidBaseComponents, } from '@genesislcap/rapid-design-system';
|
|
7
5
|
import { rapidGridComponents } from '@genesislcap/rapid-grid-pro';
|
|
8
6
|
import { DesignSystemEditor, ColorPalette, PreviewComponents, ColorToken, ColorTokens, TypographyTokens, DesignSystemExport, DesignSystemPreview, PreviewForm, PreviewGrid, } from './components';
|
|
9
7
|
export * from './components';
|
|
10
8
|
export * from './types';
|
|
11
9
|
provideZeroDesignSystem().register(zeroBaseComponents, zeroGridComponents);
|
|
12
|
-
provideAlphaDesignSystem().register(alphaBaseComponents, foundationGridComponents);
|
|
13
10
|
provideRapidDesignSystem().register(rapidBaseComponents, rapidGridComponents);
|
|
14
11
|
DesignSystemEditor;
|
|
15
12
|
PreviewComponents;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/documentation-components",
|
|
3
3
|
"description": "Genesis Foundation Dcoumentation Components",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.267.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
7
7
|
],
|
|
@@ -23,26 +23,25 @@
|
|
|
23
23
|
"clean": "rimraf dist temp tsconfig.tsbuildinfo"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@genesislcap/genx": "14.
|
|
27
|
-
"@genesislcap/rollup-builder": "14.
|
|
28
|
-
"@genesislcap/ts-builder": "14.
|
|
29
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
30
|
-
"@genesislcap/vite-builder": "14.
|
|
31
|
-
"@genesislcap/webpack-builder": "14.
|
|
26
|
+
"@genesislcap/genx": "14.267.0",
|
|
27
|
+
"@genesislcap/rollup-builder": "14.267.0",
|
|
28
|
+
"@genesislcap/ts-builder": "14.267.0",
|
|
29
|
+
"@genesislcap/uvu-playwright-builder": "14.267.0",
|
|
30
|
+
"@genesislcap/vite-builder": "14.267.0",
|
|
31
|
+
"@genesislcap/webpack-builder": "14.267.0",
|
|
32
32
|
"rimraf": "^5.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ag-grid-community/core": "29.2.0",
|
|
36
|
-
"@genesislcap/
|
|
37
|
-
"@genesislcap/foundation-
|
|
38
|
-
"@genesislcap/foundation-
|
|
39
|
-
"@genesislcap/foundation-
|
|
40
|
-
"@genesislcap/foundation-
|
|
41
|
-
"@genesislcap/foundation-zero": "14.
|
|
42
|
-
"@genesislcap/
|
|
43
|
-
"@genesislcap/
|
|
44
|
-
"@genesislcap/rapid-
|
|
45
|
-
"@genesislcap/rapid-grid-pro": "14.266.1",
|
|
36
|
+
"@genesislcap/foundation-forms": "14.267.0",
|
|
37
|
+
"@genesislcap/foundation-logger": "14.267.0",
|
|
38
|
+
"@genesislcap/foundation-ui": "14.267.0",
|
|
39
|
+
"@genesislcap/foundation-utils": "14.267.0",
|
|
40
|
+
"@genesislcap/foundation-zero": "14.267.0",
|
|
41
|
+
"@genesislcap/foundation-zero-grid-pro": "14.267.0",
|
|
42
|
+
"@genesislcap/grid-pro": "14.267.0",
|
|
43
|
+
"@genesislcap/rapid-design-system": "14.267.0",
|
|
44
|
+
"@genesislcap/rapid-grid-pro": "14.267.0",
|
|
46
45
|
"@jsonforms/core": "^3.2.1",
|
|
47
46
|
"@microsoft/fast-colors": "5.3.1",
|
|
48
47
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -59,5 +58,5 @@
|
|
|
59
58
|
"publishConfig": {
|
|
60
59
|
"access": "public"
|
|
61
60
|
},
|
|
62
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "71861fa4ba4a479834d486fd5e8e2528a42854e3"
|
|
63
62
|
}
|