jcicl 0.0.10 → 0.0.12
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/package.json +23 -104
- package/dist/README.md +0 -99
- /package/{dist/.chunks → .chunks}/AppBar.js +0 -0
- /package/{dist/.chunks → .chunks}/AppContainer.js +0 -0
- /package/{dist/.chunks → .chunks}/AppHeader.js +0 -0
- /package/{dist/.chunks → .chunks}/Avatar.js +0 -0
- /package/{dist/.chunks → .chunks}/AvatarWithImage.js +0 -0
- /package/{dist/.chunks → .chunks}/BasicPage.js +0 -0
- /package/{dist/.chunks → .chunks}/Button.js +0 -0
- /package/{dist/.chunks → .chunks}/ButtonBase.js +0 -0
- /package/{dist/.chunks → .chunks}/CompactNav.js +0 -0
- /package/{dist/.chunks → .chunks}/Divider.js +0 -0
- /package/{dist/.chunks → .chunks}/Flex.js +0 -0
- /package/{dist/.chunks → .chunks}/Grid.js +0 -0
- /package/{dist/.chunks → .chunks}/Input.js +0 -0
- /package/{dist/.chunks → .chunks}/Menu.js +0 -0
- /package/{dist/.chunks → .chunks}/Nav.js +0 -0
- /package/{dist/.chunks → .chunks}/TransitionGroupContext.js +0 -0
- /package/{dist/.chunks → .chunks}/createSimplePaletteValueFilter.js +0 -0
- /package/{dist/.chunks → .chunks}/createSvgIcon.js +0 -0
- /package/{dist/.chunks → .chunks}/emotion-styled.browser.esm.js +0 -0
- /package/{dist/.chunks → .chunks}/jocologo.js +0 -0
- /package/{dist/.chunks → .chunks}/memoTheme.js +0 -0
- /package/{dist/.chunks → .chunks}/theme.js +0 -0
- /package/{dist/base → base}/Avatar/Avatar/index.d.ts +0 -0
- /package/{dist/base → base}/Avatar/Avatar/index.js +0 -0
- /package/{dist/base → base}/Avatar/AvatarWithImage/index.d.ts +0 -0
- /package/{dist/base → base}/Avatar/AvatarWithImage/index.js +0 -0
- /package/{dist/base → base}/Avatar/index.d.ts +0 -0
- /package/{dist/base → base}/Avatar/index.js +0 -0
- /package/{dist/base → base}/Button/index.d.ts +0 -0
- /package/{dist/base → base}/Button/index.js +0 -0
- /package/{dist/base → base}/Divider/index.d.ts +0 -0
- /package/{dist/base → base}/Divider/index.js +0 -0
- /package/{dist/base → base}/Flex/index.d.ts +0 -0
- /package/{dist/base → base}/Flex/index.js +0 -0
- /package/{dist/base → base}/Grid/index.d.ts +0 -0
- /package/{dist/base → base}/Grid/index.js +0 -0
- /package/{dist/base → base}/Input/index.d.ts +0 -0
- /package/{dist/base → base}/Input/index.js +0 -0
- /package/{dist/base → base}/index.d.ts +0 -0
- /package/{dist/base → base}/index.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/supercomposite → supercomposite}/AppBar/index.d.ts +0 -0
- /package/{dist/supercomposite → supercomposite}/AppBar/index.js +0 -0
- /package/{dist/supercomposite → supercomposite}/AppHeader/index.d.ts +0 -0
- /package/{dist/supercomposite → supercomposite}/AppHeader/index.js +0 -0
- /package/{dist/supercomposite → supercomposite}/CompactNav/index.d.ts +0 -0
- /package/{dist/supercomposite → supercomposite}/CompactNav/index.js +0 -0
- /package/{dist/supercomposite → supercomposite}/Nav/index.d.ts +0 -0
- /package/{dist/supercomposite → supercomposite}/Nav/index.js +0 -0
- /package/{dist/supercomposite → supercomposite}/index.d.ts +0 -0
- /package/{dist/supercomposite → supercomposite}/index.js +0 -0
- /package/{dist/templates → templates}/AppContainer/index.d.ts +0 -0
- /package/{dist/templates → templates}/AppContainer/index.js +0 -0
- /package/{dist/templates → templates}/BasicPage/index.d.ts +0 -0
- /package/{dist/templates → templates}/BasicPage/index.js +0 -0
- /package/{dist/templates → templates}/index.d.ts +0 -0
- /package/{dist/templates → templates}/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,104 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "jcicl",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary"
|
|
11
|
-
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary"
|
|
14
|
-
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"module": "./index.js",
|
|
25
|
-
"types": "./index.d.ts",
|
|
26
|
-
"scripts": {
|
|
27
|
-
"start": "storybook dev -p 7007",
|
|
28
|
-
"updateVersion": "npm version patch --no-git-tag-update --force",
|
|
29
|
-
"up": "npm run updateVersion && npm publish",
|
|
30
|
-
"build": "tsc -b && vite build",
|
|
31
|
-
"postbuild": "shx cp package.json dist/package.json && shx cp README.md dist/README.md",
|
|
32
|
-
"push": "npm publish ./dist",
|
|
33
|
-
"bp": "npm run updateVersion && npm run build && npm run postbuild && npm run push",
|
|
34
|
-
"bpMinor": "npm version minor --no-git-tag-update --force && npm run build && npm run postbuild && npm run push",
|
|
35
|
-
"bpMajor": "npm version major --no-git-tag-update --force && npm run build && npm run postbuild && npm run push",
|
|
36
|
-
"lint": "eslint .",
|
|
37
|
-
"lint:fix": "eslint . --fix",
|
|
38
|
-
"format": "prettier --check .",
|
|
39
|
-
"format:fix": "prettier --write .",
|
|
40
|
-
"storybook": "storybook dev -p 7007",
|
|
41
|
-
"build-storybook": "storybook build"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"@emotion/react": "^11.13.3",
|
|
45
|
-
"@emotion/styled": "^11.13.0",
|
|
46
|
-
"@fontsource/material-icons": "^5.1.0",
|
|
47
|
-
"@fontsource/roboto": "^5.1.0",
|
|
48
|
-
"@mui/icons-material": "^6.1.3",
|
|
49
|
-
"@mui/material": "^6.1.1"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@chromatic-com/storybook": "^1.9.0",
|
|
53
|
-
"@eslint/js": "^9.9.0",
|
|
54
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
55
|
-
"@rollup/plugin-commonjs": "^28.0.0",
|
|
56
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
57
|
-
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
58
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
59
|
-
"@rollup/plugin-typescript": "^12.1.0",
|
|
60
|
-
"@storybook/addon-actions": "^8.3.5",
|
|
61
|
-
"@storybook/addon-controls": "^8.3.5",
|
|
62
|
-
"@storybook/addon-docs": "^8.3.5",
|
|
63
|
-
"@storybook/addon-essentials": "^8.3.5",
|
|
64
|
-
"@storybook/addon-interactions": "^8.3.5",
|
|
65
|
-
"@storybook/addon-links": "^8.3.5",
|
|
66
|
-
"@storybook/addon-themes": "^8.3.5",
|
|
67
|
-
"@storybook/blocks": "^8.3.5",
|
|
68
|
-
"@storybook/react": "^8.3.5",
|
|
69
|
-
"@storybook/react-docgen-typescript-plugin": "^1.0.1",
|
|
70
|
-
"@storybook/react-vite": "^8.3.5",
|
|
71
|
-
"@storybook/test": "^8.3.5",
|
|
72
|
-
"@types/node": "^22.7.4",
|
|
73
|
-
"@types/react": "^18.3.11",
|
|
74
|
-
"@types/react-dom": "^18.3.0",
|
|
75
|
-
"@vitejs/plugin-react": "^4.3.1",
|
|
76
|
-
"eslint": "^9.9.0",
|
|
77
|
-
"eslint-config-prettier": "^9.1.0",
|
|
78
|
-
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
79
|
-
"eslint-plugin-react-refresh": "^0.4.9",
|
|
80
|
-
"eslint-plugin-storybook": "^0.9.0",
|
|
81
|
-
"glob": "^11.0.0",
|
|
82
|
-
"globals": "^15.9.0",
|
|
83
|
-
"postcss": "^8.4.47",
|
|
84
|
-
"prettier": "^3.3.3",
|
|
85
|
-
"react": "^18.3.1",
|
|
86
|
-
"react-docgen-typescript-plugin": "^1.0.8",
|
|
87
|
-
"react-dom": "^18.3.1",
|
|
88
|
-
"rollup-plugin-dts": "^6.1.1",
|
|
89
|
-
"rollup-plugin-filesize": "^10.0.0",
|
|
90
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
91
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
92
|
-
"shx": "^0.3.4",
|
|
93
|
-
"storybook": "^8.3.5",
|
|
94
|
-
"typescript": "^5.6.2",
|
|
95
|
-
"typescript-eslint": "^8.0.1",
|
|
96
|
-
"vite": "^5.4.1",
|
|
97
|
-
"vite-plugin-dts": "^4.2.3"
|
|
98
|
-
},
|
|
99
|
-
"eslintConfig": {
|
|
100
|
-
"extends": [
|
|
101
|
-
"plugin:storybook/recommended"
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "jcicl",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.12",
|
|
5
|
+
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@emotion/react": "^11.13.3",
|
|
17
|
+
"@emotion/styled": "^11.13.0",
|
|
18
|
+
"@fontsource/material-icons": "^5.1.0",
|
|
19
|
+
"@fontsource/roboto": "^5.1.0",
|
|
20
|
+
"@mui/icons-material": "^6.1.3",
|
|
21
|
+
"@mui/material": "^6.1.1"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/dist/README.md
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Welcome to the Johnson County Component Library!
|
|
2
|
-
|
|
3
|
-
## Usage
|
|
4
|
-
|
|
5
|
-
### Runtime Enviromnent
|
|
6
|
-
|
|
7
|
-
1. Please download and install [NVM for Windows](https://github.com/coreybutler/nvm-windows?tab=readme-ov-file)
|
|
8
|
-
2. Run `nvm install 20.18.0` to install the current LTS version of node
|
|
9
|
-
3. Run `nvm use 20`
|
|
10
|
-
|
|
11
|
-
### Quick Start
|
|
12
|
-
|
|
13
|
-
#### Usage within an existing React project
|
|
14
|
-
|
|
15
|
-
To add the Johnson County Component Library to your React project, from the root directory of your project, please run `npm install jccomponentlibrary`
|
|
16
|
-
|
|
17
|
-
### Add the fonts
|
|
18
|
-
|
|
19
|
-
```console
|
|
20
|
-
npm install @fontsource/roboto
|
|
21
|
-
npm install @fontsource/material-icons
|
|
22
|
-
npm install @mui/icons-material
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Then, in your project entry (most likely `main.tsx`) point, add:
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
import '@fontsource/roboto/300.css';
|
|
29
|
-
import '@fontsource/roboto/400.css';
|
|
30
|
-
import '@fontsource/roboto/500.css';
|
|
31
|
-
import '@fontsource/roboto/700.css';
|
|
32
|
-
import '@fontsource/material-icons';
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Alternatively, add to project root `index.html` `<head />`:
|
|
36
|
-
|
|
37
|
-
```html
|
|
38
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
39
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
40
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" />
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
**After installation, import any components you wish to use: `import { Component } from jccomponentlibrary`**
|
|
44
|
-
|
|
45
|
-
#### Viewing Storybook Documentation
|
|
46
|
-
|
|
47
|
-
We are using [Storybook](https://storybook.js.org/docs/get-started/frameworks/react-vite?renderer=react) to document our component library
|
|
48
|
-
|
|
49
|
-
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.
|
|
50
|
-
|
|
51
|
-
## Development
|
|
52
|
-
|
|
53
|
-
### Getting started
|
|
54
|
-
|
|
55
|
-
[Please ensure your react development environment is set up](https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_wiki/wikis/Business-Solutions-Delivery.wiki?wikiVersion=GBwikiMaster&pagePath=%2FSetting%20Up%20React&pageId=219).
|
|
56
|
-
|
|
57
|
-
From the root project directory, please run `npm install`
|
|
58
|
-
|
|
59
|
-
### Dependencies
|
|
60
|
-
|
|
61
|
-
For this component library, we are extending [Material UI](https://mui.com/material-ui/getting-started/) and customizing with [Emotion/Styled](https://emotion.sh/docs/styled)
|
|
62
|
-
|
|
63
|
-
### Components Directory Structure
|
|
64
|
-
|
|
65
|
-
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
|
|
66
|
-
|
|
67
|
-
#### Base
|
|
68
|
-
|
|
69
|
-
Base components are intended to be the foundational building blocks of our web pages here at Johnson County
|
|
70
|
-
|
|
71
|
-
#### Composite
|
|
72
|
-
|
|
73
|
-
Composite components are intended to be reusable chunks of HTML built from base components and complimentary TSX (TypeScript XML)
|
|
74
|
-
|
|
75
|
-
#### Superomposite
|
|
76
|
-
|
|
77
|
-
Composite with a higher level of complexity
|
|
78
|
-
|
|
79
|
-
#### Templates
|
|
80
|
-
|
|
81
|
-
Templates are intended to render the HTML for predefined page layouts comprised of composite components, base components, and complimentary TSX
|
|
82
|
-
|
|
83
|
-
#### **All of the above component types are inteded to be importable and reusable throughout the suite of Johnson County web applications** 😊
|
|
84
|
-
|
|
85
|
-
### Process
|
|
86
|
-
|
|
87
|
-
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 😊
|
|
88
|
-
2. Export any newly created components in the relevant index files: `(base/(super)composite/templates)/[NewComponent]/index.ts`, `(base/(super)composite/templates)/index.ts`, and `components/index.ts`. `src/index.ts`, the entry point for our complied library, automatically exports everything from `components/index.ts`
|
|
89
|
-
3. Publish the library and update relevant project dependencies
|
|
90
|
-
|
|
91
|
-
### Publishing the library
|
|
92
|
-
|
|
93
|
-
**TODO: Automate this process on merges to master**
|
|
94
|
-
|
|
95
|
-
1. Please increment the version number in `package.json`
|
|
96
|
-
|
|
97
|
-
2. Build the library with `npm run build`
|
|
98
|
-
|
|
99
|
-
3. Publish the library with `npm publish`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|