jcicl 0.0.9 → 0.0.11

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.
Files changed (60) hide show
  1. package/dist/README.md +99 -0
  2. package/package.json +7 -1
  3. /package/{.chunks → dist/.chunks}/AppBar.js +0 -0
  4. /package/{.chunks → dist/.chunks}/AppContainer.js +0 -0
  5. /package/{.chunks → dist/.chunks}/AppHeader.js +0 -0
  6. /package/{.chunks → dist/.chunks}/Avatar.js +0 -0
  7. /package/{.chunks → dist/.chunks}/AvatarWithImage.js +0 -0
  8. /package/{.chunks → dist/.chunks}/BasicPage.js +0 -0
  9. /package/{.chunks → dist/.chunks}/Button.js +0 -0
  10. /package/{.chunks → dist/.chunks}/ButtonBase.js +0 -0
  11. /package/{.chunks → dist/.chunks}/CompactNav.js +0 -0
  12. /package/{.chunks → dist/.chunks}/Divider.js +0 -0
  13. /package/{.chunks → dist/.chunks}/Flex.js +0 -0
  14. /package/{.chunks → dist/.chunks}/Grid.js +0 -0
  15. /package/{.chunks → dist/.chunks}/Input.js +0 -0
  16. /package/{.chunks → dist/.chunks}/Menu.js +0 -0
  17. /package/{.chunks → dist/.chunks}/Nav.js +0 -0
  18. /package/{.chunks → dist/.chunks}/TransitionGroupContext.js +0 -0
  19. /package/{.chunks → dist/.chunks}/createSimplePaletteValueFilter.js +0 -0
  20. /package/{.chunks → dist/.chunks}/createSvgIcon.js +0 -0
  21. /package/{.chunks → dist/.chunks}/emotion-styled.browser.esm.js +0 -0
  22. /package/{.chunks → dist/.chunks}/jocologo.js +0 -0
  23. /package/{.chunks → dist/.chunks}/memoTheme.js +0 -0
  24. /package/{.chunks → dist/.chunks}/theme.js +0 -0
  25. /package/{base → dist/base}/Avatar/Avatar/index.d.ts +0 -0
  26. /package/{base → dist/base}/Avatar/Avatar/index.js +0 -0
  27. /package/{base → dist/base}/Avatar/AvatarWithImage/index.d.ts +0 -0
  28. /package/{base → dist/base}/Avatar/AvatarWithImage/index.js +0 -0
  29. /package/{base → dist/base}/Avatar/index.d.ts +0 -0
  30. /package/{base → dist/base}/Avatar/index.js +0 -0
  31. /package/{base → dist/base}/Button/index.d.ts +0 -0
  32. /package/{base → dist/base}/Button/index.js +0 -0
  33. /package/{base → dist/base}/Divider/index.d.ts +0 -0
  34. /package/{base → dist/base}/Divider/index.js +0 -0
  35. /package/{base → dist/base}/Flex/index.d.ts +0 -0
  36. /package/{base → dist/base}/Flex/index.js +0 -0
  37. /package/{base → dist/base}/Grid/index.d.ts +0 -0
  38. /package/{base → dist/base}/Grid/index.js +0 -0
  39. /package/{base → dist/base}/Input/index.d.ts +0 -0
  40. /package/{base → dist/base}/Input/index.js +0 -0
  41. /package/{base → dist/base}/index.d.ts +0 -0
  42. /package/{base → dist/base}/index.js +0 -0
  43. /package/{index.d.ts → dist/index.d.ts} +0 -0
  44. /package/{index.js → dist/index.js} +0 -0
  45. /package/{supercomposite → dist/supercomposite}/AppBar/index.d.ts +0 -0
  46. /package/{supercomposite → dist/supercomposite}/AppBar/index.js +0 -0
  47. /package/{supercomposite → dist/supercomposite}/AppHeader/index.d.ts +0 -0
  48. /package/{supercomposite → dist/supercomposite}/AppHeader/index.js +0 -0
  49. /package/{supercomposite → dist/supercomposite}/CompactNav/index.d.ts +0 -0
  50. /package/{supercomposite → dist/supercomposite}/CompactNav/index.js +0 -0
  51. /package/{supercomposite → dist/supercomposite}/Nav/index.d.ts +0 -0
  52. /package/{supercomposite → dist/supercomposite}/Nav/index.js +0 -0
  53. /package/{supercomposite → dist/supercomposite}/index.d.ts +0 -0
  54. /package/{supercomposite → dist/supercomposite}/index.js +0 -0
  55. /package/{templates → dist/templates}/AppContainer/index.d.ts +0 -0
  56. /package/{templates → dist/templates}/AppContainer/index.js +0 -0
  57. /package/{templates → dist/templates}/BasicPage/index.d.ts +0 -0
  58. /package/{templates → dist/templates}/BasicPage/index.js +0 -0
  59. /package/{templates → dist/templates}/index.d.ts +0 -0
  60. /package/{templates → dist/templates}/index.js +0 -0
package/dist/README.md ADDED
@@ -0,0 +1,99 @@
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`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
@@ -14,6 +14,9 @@
14
14
  },
15
15
  "type": "module",
16
16
  "sideEffects": false,
17
+ "files": [
18
+ "dist/"
19
+ ],
17
20
  "exports": {
18
21
  ".": "./index.js",
19
22
  "./**/*": "./**/*.js"
@@ -23,10 +26,13 @@
23
26
  "scripts": {
24
27
  "start": "storybook dev -p 7007",
25
28
  "updateVersion": "npm version patch --no-git-tag-update --force",
29
+ "up": "npm run updateVersion && npm publish",
26
30
  "build": "tsc -b && vite build",
27
31
  "postbuild": "shx cp package.json dist/package.json && shx cp README.md dist/README.md",
28
32
  "push": "npm publish ./dist",
29
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",
30
36
  "lint": "eslint .",
31
37
  "lint:fix": "eslint . --fix",
32
38
  "format": "prettier --check .",
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