@movable/ui 0.1.2 → 0.2.0-alpha.0

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @movable/ui
2
2
 
3
+ todo: update
4
+
3
5
  This repo contains the shared components for our frontend applications. Using this [react component library guide](https://prateeksurana.me/blog/react-component-library-using-storybook-7/#compiling-the-library-using-rollup)
4
6
 
5
7
  ## Local Development
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@movable/ui",
3
- "version": "0.1.2",
3
+ "version": "0.2.0-alpha.0",
4
4
  "description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
5
- "main": "lib/index.js",
6
- "module": "lib/index.esm.js",
5
+ "module": "lib/index.mjs",
7
6
  "types": "lib/index.d.ts",
7
+ "files": [
8
+ "lib"
9
+ ],
8
10
  "scripts": {
9
- "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10
- "build": "rollup -c",
11
- "watch": "rollup -c -w",
12
- "release": "release-it",
13
- "prepare": "husky install"
11
+ "dev": "vite",
12
+ "test": "cypress open -C ./cypress/tsconfig.json",
13
+ "build": "tsc && vite build",
14
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
15
+ "prepare": "husky install",
16
+ "storybook": "storybook dev -p 6006",
17
+ "build-storybook": "storybook build"
14
18
  },
15
19
  "repository": {
16
20
  "type": "git",
@@ -26,29 +30,41 @@
26
30
  "bugs": {
27
31
  "url": "https://github.com/movableink/ui/issues"
28
32
  },
29
- "homepage": "https://github.com/movableink/ui#readme",
33
+ "homepage": "https://movableink.github.io/ui",
30
34
  "devDependencies": {
31
35
  "@commitlint/cli": "^17.6.7",
32
36
  "@commitlint/config-conventional": "^17.6.7",
33
37
  "@release-it/conventional-changelog": "^7.0.1",
34
- "@rollup/plugin-commonjs": "^25.0.3",
35
- "@rollup/plugin-node-resolve": "^15.1.0",
36
- "@rollup/plugin-typescript": "^11.1.2",
38
+ "@rollup/plugin-typescript": "^11.1.5",
39
+ "@storybook/addon-essentials": "^7.5.1",
40
+ "@storybook/addon-interactions": "^7.5.1",
41
+ "@storybook/addon-links": "^7.5.1",
42
+ "@storybook/addon-onboarding": "^1.0.8",
43
+ "@storybook/blocks": "^7.5.1",
44
+ "@storybook/manager-api": "^7.5.1",
45
+ "@storybook/react": "^7.5.1",
46
+ "@storybook/react-vite": "^7.5.1",
47
+ "@storybook/testing-library": "^0.2.2",
48
+ "@storybook/theming": "^7.5.1",
37
49
  "@types/react": "^18.2.19",
38
50
  "@types/react-dom": "^18.2.7",
39
51
  "@typescript-eslint/eslint-plugin": "^6.7.0",
52
+ "@typescript-eslint/parser": "^6.0.0",
53
+ "@vitejs/plugin-react-swc": "^3.3.2",
54
+ "cypress": "^13.4.0",
55
+ "eslint": "^8.45.0",
40
56
  "eslint-plugin-react-hooks": "^4.6.0",
41
57
  "eslint-plugin-react-refresh": "^0.4.3",
58
+ "eslint-plugin-storybook": "^0.6.15",
42
59
  "husky": "^8.0.0",
43
60
  "lint-staged": "^13.2.3",
44
61
  "postcss": "^8.4.27",
45
62
  "react": "^18.2.0",
63
+ "react-dom": "^18.2.0",
46
64
  "release-it": "^16.1.3",
47
- "rollup": "^3.27.2",
48
- "rollup-plugin-dts": "^5.3.1",
49
- "rollup-plugin-peer-deps-external": "^2.2.4",
50
- "rollup-plugin-postcss": "^4.0.2",
51
- "typescript": "^5.1.6"
65
+ "storybook": "^7.5.1",
66
+ "typescript": "^5.0.2",
67
+ "vite": "^4.4.5"
52
68
  },
53
69
  "peerDependencies": {
54
70
  "react": "^18.2.0",
@@ -61,6 +77,8 @@
61
77
  "node": "18.17.0"
62
78
  },
63
79
  "dependencies": {
80
+ "@emotion/react": "^11.11.1",
81
+ "@emotion/styled": "^11.11.0",
64
82
  "@mui/material": "^5.14.8"
65
83
  }
66
84
  }
package/.eslintrc.cjs DELETED
@@ -1,27 +0,0 @@
1
- /* eslint-env node */
2
-
3
- module.exports = {
4
- root: true,
5
- env: { browser: true, es2020: true },
6
- extends: [
7
- 'eslint:recommended',
8
- 'plugin:@typescript-eslint/recommended',
9
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
10
- 'plugin:react-hooks/recommended',
11
- ],
12
- parser: '@typescript-eslint/parser',
13
- parserOptions: {
14
- ecmaVersion: 'latest',
15
- sourceType: 'module',
16
- project: true,
17
- tsconfigRootDir: __dirname,
18
- },
19
- plugins: ['react-refresh'],
20
- rules: {
21
- 'react-refresh/only-export-components': [
22
- 'warn',
23
- { allowConstantExport: true },
24
- ],
25
- '@typescript-eslint/no-non-null-assertion': 'off',
26
- },
27
- }
@@ -1,14 +0,0 @@
1
- name: Commit Lint
2
-
3
- on: [pull_request]
4
-
5
- jobs:
6
- lint:
7
- runs-on: ubuntu-latest
8
- env:
9
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10
- steps:
11
- - uses: actions/checkout@v2
12
- with:
13
- fetch-depth: 0
14
- - uses: wagoid/commitlint-github-action@v1
@@ -1,26 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- increment:
7
- description: Override Default Version Increment
8
- required: false
9
- default: ''
10
-
11
- jobs:
12
- release:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v2
16
- with:
17
- fetch-depth: 0
18
- - name: git config
19
- run: |
20
- git config user.name "${GITHUB_ACTOR}"
21
- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
22
- - run: npm install
23
- - run: npm run release
24
- env:
25
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/.husky/commit-msg DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx --no -- commitlint --edit
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged
package/.release-it.json DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "hooks": {
3
- "after:release": "prettier --write CHANGELOG.md"
4
- },
5
- "git": {
6
- "commitMessage": "chore: release v${version}"
7
- },
8
- "github": {
9
- "release": true
10
- },
11
- "plugins": {
12
- "@release-it/conventional-changelog": {
13
- "infile": "CHANGELOG.md",
14
- "preset": {
15
- "name": "conventionalcommits",
16
- "types": [
17
- {
18
- "type": "feat",
19
- "section": "Features"
20
- },
21
- {
22
- "type": "security",
23
- "section": "Security"
24
- },
25
- {
26
- "type": "chore,refactor",
27
- "section": "Enhancments"
28
- },
29
- {
30
- "type": "style",
31
- "section": "Style"
32
- },
33
- {
34
- "type": "test,ci",
35
- "section": "Test & Continuous Integration"
36
- },
37
- {
38
- "type": "fix",
39
- "section": "Bug Fixes"
40
- },
41
- {}
42
- ]
43
- }
44
- }
45
- }
46
- }
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
-
2
-
3
- ## [0.1.2](https://github.com/movableink/ui/compare/0.1.1...0.1.2) (2023-10-18)
4
-
5
-
6
- ### Style
7
-
8
- * add text field style overrides ([bdc5370](https://github.com/movableink/ui/commit/bdc5370f47b9c092a825ae78e297c6637d98de6b))
9
-
10
- ## [0.1.1](https://github.com/movableink/ui/compare/0.1.0-alpha.1...0.1.1) (2023-10-13)
11
-
12
- ## [0.1.0-alpha.1](https://github.com/movableink/ui/compare/0.1.0-alpha.0...0.1.0-alpha.1) (2023-09-19)
13
-
14
- ### Features
15
-
16
- - added theme from DV team ([d692875](https://github.com/movableink/ui/commit/d692875be6b3f7ffd6c018d50f77702d3f6a7626))
package/CODEOWNERS DELETED
@@ -1,2 +0,0 @@
1
- * @movableink/front-end-vite
2
- * @movableink/design-systems
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- extends: ['@commitlint/config-conventional'],
5
- };
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function Button(): React.JSX.Element;
@@ -1 +0,0 @@
1
- export declare function sayHello(name: string): string;
@@ -1,2 +0,0 @@
1
- import Button from "./components/Button";
2
- export { Button };
package/lib/cjs/index.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- function Button() {
6
- return (React.createElement("button", null, "Example Button"));
7
- }
8
-
9
- exports.Button = Button;
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/components/Button.tsx"],"sourcesContent":["import React from \"react\";\n\nexport default function Button() {\n return (\n <button>Example Button</button>\n )\n}"],"names":[],"mappings":";;;;AAEc,SAAU,MAAM,GAAA;IAC5B,QACE,KAA+B,CAAA,aAAA,CAAA,QAAA,EAAA,IAAA,EAAA,gBAAA,CAAA,EAChC;AACH;;;;"}
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function Button(): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function Button(): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import Button from "./components/Button";
2
- export { Button };
package/lib/esm/index.js DELETED
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
-
3
- function Button() {
4
- return (React.createElement("button", null, "Example Button"));
5
- }
6
-
7
- export { Button };
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/components/Button.tsx"],"sourcesContent":["import React from \"react\";\n\nexport default function Button() {\n return (\n <button>Example Button</button>\n )\n}"],"names":[],"mappings":";;AAEc,SAAU,MAAM,GAAA;IAC5B,QACE,KAA+B,CAAA,aAAA,CAAA,QAAA,EAAA,IAAA,EAAA,gBAAA,CAAA,EAChC;AACH;;;;"}
package/lib/index.d.ts DELETED
@@ -1,63 +0,0 @@
1
- import React from 'react';
2
- import * as _mui_material_styles from '@mui/material/styles';
3
-
4
- declare function Button(): React.JSX.Element;
5
-
6
- declare module '@mui/material/styles' {
7
- interface PaletteColor {
8
- selected?: string;
9
- }
10
- interface Palette {
11
- focusVisible: string;
12
- neutral50: string;
13
- neutral100: string;
14
- neutral200: string;
15
- neutral300: string;
16
- neutral400: string;
17
- neutral500: string;
18
- neutral600: string;
19
- neutral700: string;
20
- neutral800: string;
21
- neutral900: string;
22
- neutralA100: string;
23
- neutralA200: string;
24
- neutralA400: string;
25
- neutralA700: string;
26
- blue50: string;
27
- blue100: string;
28
- blue200: string;
29
- blue300: string;
30
- blue400: string;
31
- blue500: string;
32
- blue600: string;
33
- blue700: string;
34
- blue800: string;
35
- blue900: string;
36
- }
37
- interface PalletteOptions {
38
- focusVisible: string;
39
- neutral50: string;
40
- neutral100: string;
41
- neutral200: string;
42
- neutral300: string;
43
- neutral400: string;
44
- neutral500: string;
45
- neutral600: string;
46
- neutral700: string;
47
- neutral800: string;
48
- neutral900: string;
49
- neutralA100: string;
50
- neutralA200: string;
51
- neutralA400: string;
52
- neutralA700: string;
53
- blue50: string;
54
- blue100: string;
55
- blue200: string;
56
- blue300: string;
57
- blue400: string;
58
- blue500: string;
59
- }
60
- }
61
- declare const theme: _mui_material_styles.Theme;
62
-
63
- export { Button, theme as MovableUITheme };