Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@genesislcap/foundation-zero
Advanced tools
This package is a Design System (Zero). It is built on top of the foundation-ui
and provides a set of components that are ready to use without any additional configuration.
Remote Name | Port |
---|---|
foundationZero | 4020 |
To enable this module in your application, follow the steps below.
@genesislcap/foundation-zero
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 page.{
"dependencies": {
"@genesislcap/foundation-zero": "latest"
},
}
The setup involves providing and registering Design System components from foundation-zero
or other places. Here's how you can do it:
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:
import { baseComponents, provideDesignSystem } from '@genesislcap/foundation-zero';
provideDesignSystem().register(baseComponents);
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 zero-
in this case).
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:
import { zeroButton, zeroDesignSystemProvider, provideDesignSystem } from '@genesislcap/foundation-zero';
provideDesignSystem().register(
/**
* Design system provider element used to declaratively apply zero config to every dom node in the host tree.
*/
zeroDesignSystemProvider(),
/**
* Button component
*/
zeroButton()
);
In the example above, zero-button
will be the only component registered in the Zero Design System. YOu can also register multiple components at once:
import { provideDesignSystem, zeroButton, zeroCard, zeroDesignSystemProvider, zeronModal } from '@genesislcap/foundation-zero';
provideDesignSystem().register(
/**
* Design system provider element used to declaratively apply zero config to every dom node in the host tree.
*/
zeroDesignSystemProvider(),
/**
* Components that will be registered in the Zero Design System
*/
zeroButton(),
zeroCard(),
zeroModal()
);
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:
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
import { baseComponents, provideDesignSystem } from '@genesislcap/foundation-zero';
import { g2plotChartsComponents } from '@genesislcap/g2plot-chart';
import { gridComponents } from '@genesislcap/grid-pro';
provideDesignSystem().register(
baseComponents,
/**
* Third-party components
*/
foundationLayoutComponents,
g2plotChartsComponents,
gridComponents
);
The example above registers Zero UI components from the Zero Design System, Foundation Layout, G2Plot Charts, and Grid Pro.
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 for more details.
Genesis low-code platform
FAQs
Genesis Foundation Zero Design System
The npm package @genesislcap/foundation-zero receives a total of 1,939 weekly downloads. As such, @genesislcap/foundation-zero popularity was classified as popular.
We found that @genesislcap/foundation-zero demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.