@veritone-ce/design-system 0.9.1 → 0.9.3

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.
@@ -1,21 +1,23 @@
1
- # Name of our action
2
- name: "Chromatic"
3
- # The event that will trigger the action
4
- on: push
5
-
6
- # What the action will do
7
- jobs:
8
- test:
9
- # The operating system it will run on
10
- runs-on: ubuntu-latest
11
- # The list of steps that the action will go through
12
- steps:
13
- - uses: actions/checkout@v1
14
- - run: yarn
15
- #👇 Adds Chromatic as a step in the workflow
16
- - uses: chromaui/action@v1
17
- # Options required for Chromatic's GitHub Action
18
- with:
19
- #👇 Chromatic projectToken, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/review/ to obtain it
20
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
21
- token: ${{ secrets.GITHUB_TOKEN }}
1
+ # Name of our action
2
+ name: "Chromatic"
3
+ # The event that will trigger the action
4
+ on:
5
+ pull_request:
6
+ branches: [develop]
7
+
8
+ # What the action will do
9
+ jobs:
10
+ test:
11
+ # The operating system it will run on
12
+ runs-on: ubuntu-latest
13
+ # The list of steps that the action will go through
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - run: yarn
17
+ #👇 Adds Chromatic as a step in the workflow
18
+ - uses: chromaui/action@v1
19
+ # Options required for Chromatic's GitHub Action
20
+ with:
21
+ #👇 Chromatic projectToken, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/review/ to obtain it
22
+ projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
23
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,39 @@
1
+ # Name of our action
2
+ name: Release
3
+
4
+ # The event that will trigger the action
5
+ on:
6
+ push:
7
+ branches: [main]
8
+
9
+ # what the action will do
10
+ jobs:
11
+ release:
12
+ # The operating system it will run on
13
+ runs-on: ubuntu-latest
14
+ # This check needs to be in place to prevent a publish loop with auto and github actions
15
+ if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
16
+ # The list of steps that the action will go through
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Prepare repository
20
+ run: git fetch --unshallow --tags
21
+ - name: Use Node.js 12.x
22
+ uses: actions/setup-node@v1
23
+ with:
24
+ node-version: 12.x
25
+ - name: Cache node modules
26
+ uses: actions/cache@v1
27
+ with:
28
+ path: node_modules
29
+ key: yarn-deps-${{ hashFiles('yarn.lock') }}
30
+ restore-keys: |
31
+ yarn-deps-${{ hashFiles('yarn.lock') }}
32
+ - name: Create Release
33
+ env:
34
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
+ run: |
37
+ yarn install --frozen-lockfile
38
+ yarn build
39
+ yarn release
@@ -1,22 +1,22 @@
1
- import React from 'react'
2
- import { ThemeProvider} from '@mui/system'
3
- import theme from '../src/assets/theme'
4
-
5
- export const decorators = [
6
- (Story) => (
7
- <ThemeProvider theme={theme}>
8
- <Story />
9
- </ThemeProvider>
10
-
11
- ),
12
- ]
13
-
14
- export const parameters = {
15
- actions: { argTypesRegex: "^on[A-Z].*" },
16
- controls: {
17
- matchers: {
18
- color: /(background|color)$/i,
19
- date: /Date$/,
20
- },
21
- },
1
+ import React from 'react'
2
+ import { ThemeProvider} from '@mui/system'
3
+ import theme from '../src/assets/theme'
4
+
5
+ export const decorators = [
6
+ (Story) => (
7
+ <ThemeProvider theme={theme}>
8
+ <Story />
9
+ </ThemeProvider>
10
+
11
+ ),
12
+ ]
13
+
14
+ export const parameters = {
15
+ actions: { argTypesRegex: "^on[A-Z].*" },
16
+ controls: {
17
+ matchers: {
18
+ color: /(background|color)$/i,
19
+ date: /Date$/,
20
+ },
21
+ },
22
22
  }
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
- # v0.9.0 (Wed Oct 05 2022)
2
-
3
- - Created first version of the design system, with `Button`, and `ThemeProvider` components.
4
-
5
- #### Authors: 1
6
-
7
- - Cody Moore ([@CodyMoore240](https://github.com/CodyMoore240))
1
+ # v0.9.0 (Wed Oct 05 2022)
2
+
3
+ - Created first version of the design system, with `Button`, and `ThemeProvider` components.
4
+
5
+ #### Authors: 1
6
+
7
+ - Cody Moore ([@CodyMoore240](https://github.com/CodyMoore240))
package/README.md CHANGED
@@ -1,36 +1,36 @@
1
- # Veritone CE Design System
2
-
3
- This project uses [Storybook](https://storybook.js.org/) to preview components.
4
-
5
- ## Available Scripts
6
-
7
- In the project directory, you can run:
8
-
9
- ### `yarn start`
10
-
11
- Runs storybook in development mode. Opens storybook in a new browser tab.
12
-
13
- ### `yarn test`
14
-
15
- Launches the test runner.
16
- See the section about [running tests](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/test/) for more information.
17
-
18
- ### `yarn build`
19
-
20
- Builds the for production to the `dist` folder.
21
-
22
- ### `yarn build-docs`
23
-
24
- Builds the documentation for production to the `storybook-static` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [documentation](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/document/) for more information.
31
-
32
- ## Learn More
33
-
34
- You can learn more in the [Storybook Design System for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/).
35
-
36
- To learn React, check out the [React documentation](https://reactjs.org/).
1
+ # Veritone CE Design System
2
+
3
+ This project uses [Storybook](https://storybook.js.org/) to preview components.
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `yarn start`
10
+
11
+ Runs storybook in development mode. Opens storybook in a new browser tab.
12
+
13
+ ### `yarn test`
14
+
15
+ Launches the test runner.
16
+ See the section about [running tests](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/test/) for more information.
17
+
18
+ ### `yarn build`
19
+
20
+ Builds the for production to the `dist` folder.
21
+
22
+ ### `yarn build-docs`
23
+
24
+ Builds the documentation for production to the `storybook-static` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [documentation](https://storybook.js.org/tutorials/design-systems-for-developers/react/en/document/) for more information.
31
+
32
+ ## Learn More
33
+
34
+ You can learn more in the [Storybook Design System for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/).
35
+
36
+ To learn React, check out the [React documentation](https://reactjs.org/).
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './components/Button';
2
+ export * from './components/ThemeProvider';
3
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,114 +1,115 @@
1
- {
2
- "name": "@veritone-ce/design-system",
3
- "version": "0.9.1",
4
- "private": false,
5
- "dependencies": {
6
- "@emotion/react": "^11.10.4",
7
- "@emotion/styled": "^11.10.4",
8
- "@fontsource/dosis": "^4.5.10",
9
- "@fontsource/nunito-sans": "^4.5.10",
10
- "@fontsource/roboto": "^4.5.8",
11
- "@mui/icons-material": "^5.10.6",
12
- "@mui/material": "^5.10.8",
13
- "@testing-library/jest-dom": "^5.14.1",
14
- "@testing-library/react": "^13.0.0",
15
- "@testing-library/user-event": "^13.2.1",
16
- "@types/jest": "^27.0.1",
17
- "@types/node": "^16.7.13",
18
- "@types/react": "^18.0.0",
19
- "@types/react-dom": "^18.0.0",
20
- "react": "^18.2.0",
21
- "react-dom": "^18.2.0",
22
- "react-scripts": "5.0.1",
23
- "typescript": "^4.4.2",
24
- "web-vitals": "^2.1.0"
25
- },
26
- "scripts": {
27
- "start": "yarn storybook",
28
- "build": "cross-env BABEL_ENV=production babel src -d dist",
29
- "build-docs": "yarn build-storybook-docs",
30
- "test": "yarn test-storybook",
31
- "storybook": "start-storybook -p 6006 -s public",
32
- "build-storybook": "build-storybook -s public",
33
- "test-storybook": "test-storybook",
34
- "build-storybook-docs": "build-storybook --docs"
35
- },
36
- "eslintConfig": {
37
- "extends": [
38
- "react-app",
39
- "react-app/jest"
40
- ],
41
- "overrides": [
42
- {
43
- "files": [
44
- "**/*.stories.*"
45
- ],
46
- "rules": {
47
- "import/no-anonymous-default-export": "off"
48
- }
49
- }
50
- ]
51
- },
52
- "browserslist": {
53
- "production": [
54
- ">0.2%",
55
- "not dead",
56
- "not op_mini all"
57
- ],
58
- "development": [
59
- "last 1 chrome version",
60
- "last 1 firefox version",
61
- "last 1 safari version"
62
- ]
63
- },
64
- "devDependencies": {
65
- "@babel/cli": "^7.19.3",
66
- "@storybook/addon-a11y": "^6.5.12",
67
- "@storybook/addon-actions": "^6.5.12",
68
- "@storybook/addon-essentials": "^6.5.12",
69
- "@storybook/addon-interactions": "^6.5.12",
70
- "@storybook/addon-links": "^6.5.12",
71
- "@storybook/builder-webpack5": "^6.5.12",
72
- "@storybook/jest": "^0.0.10",
73
- "@storybook/manager-webpack5": "^6.5.12",
74
- "@storybook/node-logger": "^6.5.12",
75
- "@storybook/preset-create-react-app": "^4.1.2",
76
- "@storybook/react": "^6.5.12",
77
- "@storybook/test-runner": "^0.7.2",
78
- "@storybook/testing-library": "^0.0.13",
79
- "auto": "^10.37.6",
80
- "babel-plugin-named-exports-order": "^0.0.2",
81
- "chromatic": "^6.10.1",
82
- "cross-env": "^7.0.3",
83
- "jest": "27",
84
- "prettier": "^2.7.1",
85
- "prop-types": "^15.8.1",
86
- "webpack": "^5.74.0"
87
- },
88
- "babel": {
89
- "presets": [
90
- [
91
- "react-app",
92
- {
93
- "absoluteRuntime": false
94
- }
95
- ]
96
- ]
97
- },
98
- "description": "design system for veritone ce",
99
- "main": "index.js",
100
- "repository": {
101
- "type": "git",
102
- "url": "git+ssh://git@github.com/veritone/design-system.git"
103
- },
104
- "author": "Veritone",
105
- "license": "MIT",
106
- "bugs": {
107
- "url": "https://github.com/veritone/design-system/issues"
108
- },
109
- "homepage": "https://github.com/veritone/design-system#readme",
110
- "keywords": [
111
- "design system",
112
- "ui library"
113
- ]
114
- }
1
+ {
2
+ "name": "@veritone-ce/design-system",
3
+ "version": "0.9.3",
4
+ "private": false,
5
+ "dependencies": {
6
+ "@emotion/react": "^11.10.4",
7
+ "@emotion/styled": "^11.10.4",
8
+ "@fontsource/dosis": "^4.5.10",
9
+ "@fontsource/nunito-sans": "^4.5.10",
10
+ "@fontsource/roboto": "^4.5.8",
11
+ "@mui/icons-material": "^5.10.6",
12
+ "@mui/material": "^5.10.8",
13
+ "@testing-library/jest-dom": "^5.14.1",
14
+ "@testing-library/react": "^13.0.0",
15
+ "@testing-library/user-event": "^13.2.1",
16
+ "@types/jest": "^27.0.1",
17
+ "@types/node": "^16.7.13",
18
+ "@types/react": "^18.0.0",
19
+ "@types/react-dom": "^18.0.0",
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0",
22
+ "react-scripts": "5.0.1",
23
+ "typescript": "^4.4.2",
24
+ "web-vitals": "^2.1.0"
25
+ },
26
+ "scripts": {
27
+ "start": "yarn storybook",
28
+ "build": "yarn tsc",
29
+ "build-docs": "yarn build-storybook-docs",
30
+ "test": "yarn test-storybook",
31
+ "storybook": "start-storybook -p 6006 -s public",
32
+ "release": "auto shipit --base-branch=main",
33
+ "build-storybook": "build-storybook -s public",
34
+ "test-storybook": "test-storybook",
35
+ "build-storybook-docs": "build-storybook --docs"
36
+ },
37
+ "eslintConfig": {
38
+ "extends": [
39
+ "react-app",
40
+ "react-app/jest"
41
+ ],
42
+ "overrides": [
43
+ {
44
+ "files": [
45
+ "**/*.stories.*"
46
+ ],
47
+ "rules": {
48
+ "import/no-anonymous-default-export": "off"
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ "browserslist": {
54
+ "production": [
55
+ ">0.2%",
56
+ "not dead",
57
+ "not op_mini all"
58
+ ],
59
+ "development": [
60
+ "last 1 chrome version",
61
+ "last 1 firefox version",
62
+ "last 1 safari version"
63
+ ]
64
+ },
65
+ "devDependencies": {
66
+ "@babel/cli": "^7.19.3",
67
+ "@storybook/addon-a11y": "^6.5.12",
68
+ "@storybook/addon-actions": "^6.5.12",
69
+ "@storybook/addon-essentials": "^6.5.12",
70
+ "@storybook/addon-interactions": "^6.5.12",
71
+ "@storybook/addon-links": "^6.5.12",
72
+ "@storybook/builder-webpack5": "^6.5.12",
73
+ "@storybook/jest": "^0.0.10",
74
+ "@storybook/manager-webpack5": "^6.5.12",
75
+ "@storybook/node-logger": "^6.5.12",
76
+ "@storybook/preset-create-react-app": "^4.1.2",
77
+ "@storybook/react": "^6.5.12",
78
+ "@storybook/test-runner": "^0.7.2",
79
+ "@storybook/testing-library": "^0.0.13",
80
+ "auto": "^10.37.6",
81
+ "babel-plugin-named-exports-order": "^0.0.2",
82
+ "chromatic": "^6.10.1",
83
+ "cross-env": "^7.0.3",
84
+ "jest": "27",
85
+ "prettier": "^2.7.1",
86
+ "prop-types": "^15.8.1",
87
+ "webpack": "^5.74.0"
88
+ },
89
+ "babel": {
90
+ "presets": [
91
+ [
92
+ "react-app",
93
+ {
94
+ "absoluteRuntime": false
95
+ }
96
+ ]
97
+ ]
98
+ },
99
+ "description": "design system for veritone ce",
100
+ "main": "dist/index.js",
101
+ "repository": {
102
+ "type": "git",
103
+ "url": "git+ssh://git@github.com/veritone/design-system.git"
104
+ },
105
+ "author": "Veritone",
106
+ "license": "MIT",
107
+ "bugs": {
108
+ "url": "https://github.com/veritone/design-system/issues"
109
+ },
110
+ "homepage": "https://github.com/veritone/design-system#readme",
111
+ "keywords": [
112
+ "design system",
113
+ "ui library"
114
+ ]
115
+ }
package/public/index.html CHANGED
@@ -1,42 +1,42 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta
9
- name="description"
10
- content="Veritone CE Design System"
11
- />
12
- <!--
13
- manifest.json provides metadata used when your web app is installed on a
14
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
15
- -->
16
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
17
- <!--
18
- Notice the use of %PUBLIC_URL% in the tags above.
19
- It will be replaced with the URL of the `public` folder during the build.
20
- Only files inside the `public` folder can be referenced from the HTML.
21
-
22
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
23
- work correctly both with client-side routing and a non-root public URL.
24
- Learn how to configure a non-root public URL by running `npm run build`.
25
- -->
26
- <title>Veritone | Design System</title>
27
- </head>
28
- <body>
29
- <noscript>You need to enable JavaScript to run this app.</noscript>
30
- <div id="root"></div>
31
- <!--
32
- This HTML file is a template.
33
- If you open it directly in the browser, you will see an empty page.
34
-
35
- You can add webfonts, meta tags, or analytics to this file.
36
- The build step will place the bundled scripts into the <body> tag.
37
-
38
- To begin the development, run `npm start` or `yarn start`.
39
- To create a production bundle, use `npm run build` or `yarn build`.
40
- -->
41
- </body>
42
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <meta name="theme-color" content="#000000" />
8
+ <meta
9
+ name="description"
10
+ content="Veritone CE Design System"
11
+ />
12
+ <!--
13
+ manifest.json provides metadata used when your web app is installed on a
14
+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
15
+ -->
16
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
17
+ <!--
18
+ Notice the use of %PUBLIC_URL% in the tags above.
19
+ It will be replaced with the URL of the `public` folder during the build.
20
+ Only files inside the `public` folder can be referenced from the HTML.
21
+
22
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
23
+ work correctly both with client-side routing and a non-root public URL.
24
+ Learn how to configure a non-root public URL by running `npm run build`.
25
+ -->
26
+ <title>Veritone | Design System</title>
27
+ </head>
28
+ <body>
29
+ <noscript>You need to enable JavaScript to run this app.</noscript>
30
+ <div id="root"></div>
31
+ <!--
32
+ This HTML file is a template.
33
+ If you open it directly in the browser, you will see an empty page.
34
+
35
+ You can add webfonts, meta tags, or analytics to this file.
36
+ The build step will place the bundled scripts into the <body> tag.
37
+
38
+ To begin the development, run `npm start` or `yarn start`.
39
+ To create a production bundle, use `npm run build` or `yarn build`.
40
+ -->
41
+ </body>
42
+ </html>
@@ -1,15 +1,15 @@
1
- {
2
- "short_name": "Design System",
3
- "name": "Veritone CE Design System",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- }
10
- ],
11
- "start_url": ".",
12
- "display": "standalone",
13
- "theme_color": "#000000",
14
- "background_color": "#ffffff"
15
- }
1
+ {
2
+ "short_name": "Design System",
3
+ "name": "Veritone CE Design System",
4
+ "icons": [
5
+ {
6
+ "src": "favicon.ico",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon"
9
+ }
10
+ ],
11
+ "start_url": ".",
12
+ "display": "standalone",
13
+ "theme_color": "#000000",
14
+ "background_color": "#ffffff"
15
+ }
package/public/robots.txt CHANGED
@@ -1,3 +1,3 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
3
+ Disallow: