0.4.0 • Published 3 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-ui
Import 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
3 years ago
0.3.11
3 years ago
0.3.10
3 years ago
0.3.0
3 years ago
0.3.6
3 years ago
0.3.5
3 years ago
0.3.7
3 years ago
0.3.2
3 years ago
0.4.0
3 years ago
0.3.1
3 years ago
0.3.4
3 years ago
0.3.3
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago