0.4.0 • Published 4 years ago
@gilson-connected-products/gilson-ui v0.4.0
DEPRECATED!
Gilson UI
The official UI library for Gilson Connect.
Usage
Install @gilson-connected-products/gilson-ui with npm.
npm install @gilson-connected-products/gilson-uiImport themes, components, settings, and hooks as needed.
import React from "react";
// Imports are separated by nature for clarity in this example.
import { Heading, P, Switch, Surface } from "@gilson-connected-products/gilson-ui";
import { ConnectTheme, useConnectTheme } from "@gilson-connected-products/gilson-ui";
import { lightTheme, darkTheme } from "@gilson-connected-products/gilson-ui";
/**
* The entry point to this application.
*/
const App = () =>
{
const [theme, toggleTheme] = useConnectTheme(lightTheme, darkTheme);
return (
<ConnectTheme themeIdentity={theme}>
<div>
<Switch
value={theme.isDarkTheme}
onClick={toggleTheme}
/>
<Surface>
<Heading.H2>
Let's do this!
</Heading.H2>
<P>
Start building your Gilson themed app today.
</P>
</Surface>
</div>
</ConnectTheme>
);
}Development
npm install
Install NPM dependencies.
npm run rollup
Build the distribution /dist from source /src.
npm run site
Build and run the demo site compiled from /static and src/StyleGuide.tsx.
npm test
Run the test suite.
0.3.9
4 years ago
0.3.11
4 years ago
0.3.10
4 years ago
0.3.0
4 years ago
0.3.6
4 years ago
0.3.5
4 years ago
0.3.7
4 years ago
0.3.2
4 years ago
0.4.0
4 years ago
0.3.1
4 years ago
0.3.4
4 years ago
0.3.3
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago