@genesislcap/foundation-cli 15.73.0-FUI-2628.4 → 15.74.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/plop/actions/designSystem.js +1 -1
- package/dist/plop/generators/designSystem/designSystem.js +7 -7
- package/dist/plop/messages/code/component.js +3 -3
- package/dist/plop/messages/code/designSystem.d.ts +0 -1
- package/dist/plop/messages/code/designSystem.d.ts.map +1 -1
- package/dist/plop/messages/code/designSystem.js +3 -5
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ exports.setActionTypes = exports.DesignSystemActions = exports.DesignSystemActio
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const messages_1 = require("../messages");
|
|
6
6
|
const fileSystem_1 = require("./fileSystem");
|
|
7
|
-
const dsPrefixes = ['
|
|
7
|
+
const dsPrefixes = ['rapid'];
|
|
8
8
|
var DesignSystemActionType;
|
|
9
9
|
(function (DesignSystemActionType) {
|
|
10
10
|
DesignSystemActionType["analyzeComponentUsage"] = "Analyzed component usage";
|
|
@@ -18,17 +18,17 @@ exports.designSystemGenerator = {
|
|
|
18
18
|
message: 'New design system prefix',
|
|
19
19
|
default: 'rapid',
|
|
20
20
|
},
|
|
21
|
-
// base system 1 is expected to be our DS (foundation-ui,
|
|
21
|
+
// base system 1 is expected to be our DS (foundation-ui, rapid etc.)
|
|
22
22
|
{
|
|
23
23
|
type: 'input',
|
|
24
24
|
name: 'basePath1',
|
|
25
|
-
default: (0, utils_1.getFoundationUIPath)(), // or getDSPath('
|
|
25
|
+
default: (0, utils_1.getFoundationUIPath)(), // or getDSPath('rapid-design-system'),
|
|
26
26
|
message: 'Base design system 1 path',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
type: 'input',
|
|
30
30
|
name: 'basePrefix1',
|
|
31
|
-
default: 'foundation', // '
|
|
31
|
+
default: 'foundation', // 'rapid',
|
|
32
32
|
message: 'Base design system 1 prefix',
|
|
33
33
|
},
|
|
34
34
|
// base system 2 is expected to be third-party DS (e.g. MS fast-components)
|
|
@@ -125,15 +125,15 @@ exports.designSystemGenerator = {
|
|
|
125
125
|
componentClass: (0, change_case_1.pascalCase)(name), // 'Toolbar',
|
|
126
126
|
importedComponent: customComponents.includes(name)
|
|
127
127
|
? (0, change_case_1.pascalCase)(`${basePrefix1}${(0, change_case_1.pascalCase)(name)}`)
|
|
128
|
-
: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}`, // `
|
|
128
|
+
: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}`, // `FoundationToolbar`/`foundationToolbar`,
|
|
129
129
|
importSource: baseSystem1.name,
|
|
130
130
|
exportedComponent: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}`, // 'rapidToolbar',
|
|
131
131
|
exportedStyles: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Styles`, // 'rapidToolbarStyles',
|
|
132
132
|
exportedTemplate: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}Template`, // 'rapidToolbarTemplate',
|
|
133
133
|
exportedShadowOptions: `${dsPrefix}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // 'rapidToolbarShadowOptions',
|
|
134
|
-
importedStyles: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Styles`, // `
|
|
135
|
-
importedTemplate: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Template`, // `
|
|
136
|
-
importedShadowOptions: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // `
|
|
134
|
+
importedStyles: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Styles`, // `foundationToolbarStyles`,
|
|
135
|
+
importedTemplate: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}Template`, // `foundationToolbarTemplate`,
|
|
136
|
+
importedShadowOptions: `${basePrefix1}${(0, change_case_1.pascalCase)(name)}ShadowOptions`, // `foundationToolbarShadowOptions`,
|
|
137
137
|
defaultConfig: `default${(0, change_case_1.pascalCase)(name)}Config`, // `defaultToolbarConfig`
|
|
138
138
|
customComponent: customComponents.includes(name),
|
|
139
139
|
}));
|
|
@@ -5,9 +5,9 @@ const format_1 = require("../format");
|
|
|
5
5
|
const link_1 = require("../link");
|
|
6
6
|
const componentRegisterCodeToken = (componentName) => {
|
|
7
7
|
switch (componentName) {
|
|
8
|
-
// TODO: Remove the word Listbox from the exported composed tokens, should be registrable via
|
|
9
|
-
case '
|
|
10
|
-
return `
|
|
8
|
+
// TODO: Remove the word Listbox from the exported composed tokens, should be registrable via rapidOption(), foundationOption()...
|
|
9
|
+
case 'rapid-option':
|
|
10
|
+
return `rapidListboxOption`;
|
|
11
11
|
case 'foundation-option':
|
|
12
12
|
return `foundationListboxOption`;
|
|
13
13
|
default:
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const designSystemPrefixExample: (prefix?: string) => string;
|
|
2
2
|
export declare const designSystemHTMLExample: (slotted: string, prefix?: string) => string;
|
|
3
3
|
export declare const designSystemPrefixedButtonExample: (prefix?: string) => string;
|
|
4
|
-
export declare const designSystemZeroButtonExample: () => string;
|
|
5
4
|
/**
|
|
6
5
|
* Generates a design system registration code example.
|
|
7
6
|
* @param components - List of component names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"designSystem.d.ts","sourceRoot":"","sources":["../../../../src/plop/messages/code/designSystem.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yBAAyB,GAAI,SAAQ,MAAiB,WAUlE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM,EAAE,SAAQ,MAAiB,WAKrB,CAAC;AAE9D,eAAO,MAAM,iCAAiC,GAAI,SAAQ,MAAiB,WAGtE,CAAC;AAEN
|
|
1
|
+
{"version":3,"file":"designSystem.d.ts","sourceRoot":"","sources":["../../../../src/plop/messages/code/designSystem.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yBAAyB,GAAI,SAAQ,MAAiB,WAUlE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,SAAS,MAAM,EAAE,SAAQ,MAAiB,WAKrB,CAAC;AAE9D,eAAO,MAAM,iCAAiC,GAAI,SAAQ,MAAiB,WAGtE,CAAC;AAEN;;;;;;GAMG;AACH,eAAO,MAAM,yCAAyC,GACpD,YAAY,MAAM,EAAE,EACpB,SAAS,MAAM,SA0BhB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.designSystemComponentsRegistrationExample = exports.
|
|
3
|
+
exports.designSystemComponentsRegistrationExample = exports.designSystemPrefixedButtonExample = exports.designSystemHTMLExample = exports.designSystemPrefixExample = void 0;
|
|
4
4
|
const color_1 = require("../color");
|
|
5
5
|
const component_1 = require("./component");
|
|
6
6
|
const general_1 = require("./general");
|
|
7
|
-
const designSystemPrefixExample = (prefix = 'faster') => `${color_1.Code.keyword('import')} ${color_1.Code.alias('{
|
|
7
|
+
const designSystemPrefixExample = (prefix = 'faster') => `${color_1.Code.keyword('import')} ${color_1.Code.alias('{baseComponents, provideDesignSystem}')} ${color_1.Code.keyword('from')} ${color_1.Code.string('@genesislcap/rapid-design-system')};
|
|
8
8
|
|
|
9
9
|
${color_1.Code.alias(`provideDesignSystem()`)}
|
|
10
10
|
${color_1.Code.alias(`.withPrefix(${color_1.Code.string(`'${prefix}'`)})`)} ${color_1.Code.lineComment(`<-- Your provided design system name. Keep it a short single word!`)}
|
|
11
|
-
${color_1.Code.alias(`.register(
|
|
11
|
+
${color_1.Code.alias(`.register(baseComponents);`)}
|
|
12
12
|
`;
|
|
13
13
|
exports.designSystemPrefixExample = designSystemPrefixExample;
|
|
14
14
|
const designSystemHTMLExample = (slotted, prefix = 'faster') => `${color_1.Code.htmlElement(`<${prefix}-design-system-provider>`)}
|
|
@@ -19,8 +19,6 @@ const designSystemHTMLExample = (slotted, prefix = 'faster') => `${color_1.Code.
|
|
|
19
19
|
exports.designSystemHTMLExample = designSystemHTMLExample;
|
|
20
20
|
const designSystemPrefixedButtonExample = (prefix = 'faster') => `${color_1.Code.htmlElement(`<${prefix}-button>`)}${color_1.Code.htmlString(`Click me!`)}${color_1.Code.htmlElement(`</${prefix}-button>`)}`;
|
|
21
21
|
exports.designSystemPrefixedButtonExample = designSystemPrefixedButtonExample;
|
|
22
|
-
const designSystemZeroButtonExample = () => `${color_1.Code.htmlElement(`<zero-button>`)}${color_1.Code.htmlString(`Click me!`)}${color_1.Code.htmlElement(`</zero-button>`)}`;
|
|
23
|
-
exports.designSystemZeroButtonExample = designSystemZeroButtonExample;
|
|
24
22
|
/**
|
|
25
23
|
* Generates a design system registration code example.
|
|
26
24
|
* @param components - List of component names.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-cli",
|
|
3
3
|
"description": "Genesis Foundation CLI",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.74.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"foundation-cli": "./bin/foundation-cli.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@genesislcap/foundation-ui": "15.
|
|
25
|
+
"@genesislcap/foundation-ui": "15.74.0",
|
|
26
26
|
"@types/configstore": "^5.0.1",
|
|
27
27
|
"@types/fs-extra": "^9.0.12",
|
|
28
28
|
"@types/klaw-sync": "^6.0.1",
|