@genesislcap/rapid-design-system 14.178.0 → 14.180.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/README.md +90 -8
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,28 +1,110 @@
|
|
|
1
|
+
[](https://lerna.js.org/)
|
|
2
|
+
[](https://www.typescriptlang.org/)
|
|
3
|
+
|
|
1
4
|
# Genesis Rapid Design System
|
|
2
5
|
|
|
6
|
+
This package is a Design System (Rapid). It is built on top of the `foundation-ui` and provides a set of components that are ready to use without any additional configuration.
|
|
7
|
+
|
|
8
|
+
## [API Docs](./docs/api/index.md)
|
|
9
|
+
|
|
3
10
|
## Installation
|
|
4
11
|
|
|
5
12
|
To enable this module in your application, follow the steps below.
|
|
6
13
|
|
|
7
|
-
1. Add `@genesislcap/rapid
|
|
14
|
+
1. Add `@genesislcap/foundation-rapid` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
|
|
8
15
|
|
|
9
16
|
```json
|
|
10
17
|
{
|
|
11
|
-
...
|
|
12
18
|
"dependencies": {
|
|
13
|
-
|
|
14
|
-
"@genesislcap/rapid-design-system": "latest"
|
|
15
|
-
...
|
|
19
|
+
"@genesislcap/foundation-rapid": "latest"
|
|
16
20
|
},
|
|
17
|
-
...
|
|
18
21
|
}
|
|
19
22
|
```
|
|
20
23
|
|
|
21
|
-
##
|
|
24
|
+
## Setting Up the Design System
|
|
25
|
+
|
|
26
|
+
The setup involves providing and registering Design System components from `foundation-rapid` or other places. Here's how you can do it:
|
|
27
|
+
|
|
28
|
+
### Providing the Design System & Registering All Components
|
|
29
|
+
|
|
30
|
+
Tipically, in the `components.ts` file (or your entry-point for app-level setups), you provide the design system using `provideDesignSystem` and register components against that design system. Here's an example:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { baseComponents, provideDesignSystem } from '@genesislcap/foundation-rapid';
|
|
34
|
+
|
|
35
|
+
provideRapidDesignSystem().register(baseComponents);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
In the example above, `baseComponents` is a collection of components that are part of the same Design System. You can also register additional components if needed (even from other Design Systems, which will be prefixed with `rapid-` in this case).
|
|
39
|
+
|
|
40
|
+
### Registering Specific Components
|
|
41
|
+
|
|
42
|
+
If you want to register specific components, you can do so by importing them from the design system and registering them. Here's an example:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { rapidButton, rapidDesignSystemProvider, provideDesignSystem } from '@genesislcap/foundation-rapid';
|
|
46
|
+
|
|
47
|
+
provideRapidDesignSystem().register(
|
|
48
|
+
/**
|
|
49
|
+
* Design system provider element used to declaratively apply rapid config to every dom node in the host tree.
|
|
50
|
+
*/
|
|
51
|
+
rapidDesignSystemProvider(),
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Button component
|
|
55
|
+
*/
|
|
56
|
+
rapidButton()
|
|
57
|
+
);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
In the example above, `rapid-button` will be the only component registered in the Rapid Design System. YOu can also register multiple components at once:
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import { provideDesignSystem, rapidButton, rapidCard, rapidDesignSystemProvider, rapidnModal } from '@genesislcap/foundation-rapid';
|
|
64
|
+
|
|
65
|
+
provideDesignSystem().register(
|
|
66
|
+
/**
|
|
67
|
+
* Design system provider element used to declaratively apply rapid config to every dom node in the host tree.
|
|
68
|
+
*/
|
|
69
|
+
rapidDesignSystemProvider(),
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Components that will be registered in the Rapid Design System
|
|
73
|
+
*/
|
|
74
|
+
rapidButton(),
|
|
75
|
+
rapidCard(),
|
|
76
|
+
rapidModal()
|
|
77
|
+
);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Registering Third-Party Components
|
|
81
|
+
|
|
82
|
+
We provide a few "third-party" components that are not part of the Design System package. These can be registered in the same way as the other Design System components. Here's an example:
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
86
|
+
import { baseComponents, provideDesignSystem } from '@genesislcap/foundation-rapid';
|
|
87
|
+
import { g2plotChartsComponents } from '@genesislcap/g2plot-chart';
|
|
88
|
+
import { gridComponents } from '@genesislcap/grid-pro';
|
|
89
|
+
|
|
90
|
+
provideDesignSystem().register(
|
|
91
|
+
baseComponents,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Third-party components
|
|
95
|
+
*/
|
|
96
|
+
foundationLayoutComponents,
|
|
97
|
+
g2plotChartsComponents,
|
|
98
|
+
gridComponents
|
|
99
|
+
);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The example above registers Rapid UI components from the Rapid Design System, Foundation Layout, G2Plot Charts, and Grid Pro.
|
|
22
103
|
|
|
23
104
|
## License
|
|
24
105
|
|
|
25
106
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
26
107
|
|
|
27
108
|
### Licensed components
|
|
28
|
-
|
|
109
|
+
|
|
110
|
+
Genesis low-code platform
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/rapid-design-system",
|
|
3
3
|
"description": "Rapid Design System",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.180.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
|
|
32
|
-
"@genesislcap/genx": "14.
|
|
33
|
-
"@genesislcap/rollup-builder": "14.
|
|
34
|
-
"@genesislcap/ts-builder": "14.
|
|
35
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
36
|
-
"@genesislcap/vite-builder": "14.
|
|
37
|
-
"@genesislcap/webpack-builder": "14.
|
|
32
|
+
"@genesislcap/genx": "14.180.0",
|
|
33
|
+
"@genesislcap/rollup-builder": "14.180.0",
|
|
34
|
+
"@genesislcap/ts-builder": "14.180.0",
|
|
35
|
+
"@genesislcap/uvu-playwright-builder": "14.180.0",
|
|
36
|
+
"@genesislcap/vite-builder": "14.180.0",
|
|
37
|
+
"@genesislcap/webpack-builder": "14.180.0",
|
|
38
38
|
"@storybook/addon-coverage": "^1.0.1",
|
|
39
39
|
"@storybook/addon-essentials": "^8.0.0",
|
|
40
40
|
"@storybook/addon-links": "^8.0.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"storybook": "^8.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@genesislcap/foundation-logger": "14.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.
|
|
54
|
+
"@genesislcap/foundation-logger": "14.180.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.180.0",
|
|
56
56
|
"@microsoft/fast-colors": "^5.3.1",
|
|
57
57
|
"@microsoft/fast-components": "^2.30.6",
|
|
58
58
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"customElements": "dist/custom-elements.json",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "24ddbaf4c43ccfe2c323ec1178b1829451b1721a"
|
|
74
74
|
}
|