0.0.167 • Published 9 months ago

jcicl v0.0.167

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Welcome to the Johnson County Component Library!

Quick Start

Runtime Enviromnent

  1. Please download and install NVM for Windows
  2. nvm install 22.11.0
  3. nvm use 22

Usage

npm install jcicl@latest

import Button, { ButtonProps } from 'jcicl/Button';
import Nav, { NavProps } from 'jcicl/Nav';

const Component: React.FC<ButtonProps> = ({ ...buttonProps }) => <Button {...buttonProps}>Johnson County Button</Button>;

Adding the fonts and scrollbar styles

In your project entry point (most likely main.tsx), add:

import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';
import '@fontsource/material-icons';
import 'overlayscrollbars/overlayscrollbars.css';

Alternatively, add to project root index.html <head />:

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" />

Viewing Storybook Documentation

We are using Storybook to document our component library

Please use npm run storybook or npm start from the root directory to start the storybook application. You can see helpful documentation links under the Configure your project section of the Storybook application.

Development

Getting started

Please ensure your react development environment is set up.

From the root project directory, please run npm install

Dependencies

For this component library, we are extending Material UI and customizing with Emotion/Styled

Components Directory Structure

In each components folder, you should see a [Component].stories.tsx file. You can copy the established pattern to create stories for new components, or customize as you please according to the above documentation

Base

Base components are intended to be the foundational building blocks of our web pages here at Johnson County

Composite

Composite components are intended to be reusable chunks of HTML built from base components and complimentary TSX (TypeScript XML)

Superomposite

Composite with a higher level of complexity

Templates

Templates are intended to render the HTML for predefined page layouts comprised of composite components, base components, and complimentary TSX

All of the above component types are inteded to be importable and reusable throughout the suite of Johnson County web applications 😊

Process

  1. Add or update any components you wish. For new components, please create the associated [NewComponent].stories.tsx file to allow for documentation. In .storybook/main.ts, we are using the default string matching pattern to automatically index *.stories.* files 😊
  2. Export any newly created components in the relevant index files: (base/(super)composite/templates)/[NewComponent]/index.ts and components/index.ts.
  3. Export any newly created types for the component from (base/(super)composite/templates)/[NewComponent]/index.ts
  4. Publish the library and update relevant project dependencies

Publishing the library

The library will automatically publish a new minor version on merges to master. If you need to manually publish a new version:

npm run bp

  • Creates a new minor version (0.0.x), builds, and publishes the library to the npm registry

npm run bpMinor for minor versions (0.x.0), and npm run bpMajor for major versions (x.0.0)

For more details on scripting commands, please see the npm CLI documentation

Deploying storybook

TODO: Automate

Build the library with npm run storybook, then copy all of the files in storybook-static into windu\E:\ComponentLibrary

0.0.84

1 year ago

0.0.85

1 year ago

0.0.159

10 months ago

0.0.86

1 year ago

0.0.87

1 year ago

0.0.88

1 year ago

0.0.89

1 year ago

0.0.153

10 months ago

0.0.151

10 months ago

0.0.157

10 months ago

0.0.80

1 year ago

0.0.81

1 year ago

0.0.155

10 months ago

0.0.82

1 year ago

0.0.83

1 year ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.76

1 year ago

0.0.77

1 year ago

0.0.78

1 year ago

0.0.79

1 year ago

0.0.163

10 months ago

0.0.161

10 months ago

0.0.167

9 months ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.165

9 months ago

0.0.72

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.51

1 year ago

0.0.105

12 months ago

0.0.52

1 year ago

0.0.104

12 months ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.109

12 months ago

0.0.56

1 year ago

0.0.108

12 months ago

0.0.57

1 year ago

0.0.107

12 months ago

0.0.58

1 year ago

0.0.100

12 months ago

0.0.50

1 year ago

0.0.49

1 year ago

0.0.40

1 year ago

0.0.116

11 months ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.114

11 months ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.118

11 months ago

0.0.47

1 year ago

0.0.112

11 months ago

0.0.110

11 months ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.128

11 months ago

0.0.126

11 months ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.36

1 year ago

0.0.120

11 months ago

0.0.124

11 months ago

0.0.122

11 months ago

0.1.1

1 year ago

0.0.139

10 months ago

0.0.137

10 months ago

0.0.130

10 months ago

0.0.135

10 months ago

0.0.133

10 months ago

0.0.132

10 months ago

0.0.95

1 year ago

0.0.149

10 months ago

0.0.96

1 year ago

0.0.97

1 year ago

0.0.147

10 months ago

0.0.98

1 year ago

0.0.99

12 months ago

0.0.141

10 months ago

0.0.90

1 year ago

0.0.91

1 year ago

0.0.145

10 months ago

0.0.92

1 year ago

0.0.93

1 year ago

0.0.143

10 months ago

0.0.94

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.29

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago