@veritone-ce/design-system 0.9.2 → 0.9.4

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/dist/index.js CHANGED
@@ -1,31 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _Button = require("./components/Button");
8
-
9
- Object.keys(_Button).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _Button[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _Button[key];
16
- }
17
- });
18
- });
19
-
20
- var _ThemeProvider = require("./components/ThemeProvider");
21
-
22
- Object.keys(_ThemeProvider).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (key in exports && exports[key] === _ThemeProvider[key]) return;
25
- Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- get: function get() {
28
- return _ThemeProvider[key];
29
- }
30
- });
31
- });
1
+ export * from './components/Button';
2
+ export * from './components/ThemeProvider';
3
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.10.4",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "scripts": {
27
27
  "start": "yarn storybook",
28
- "build": "cross-env BABEL_ENV=production babel src -d dist",
28
+ "build": "yarn tsc",
29
29
  "build-docs": "yarn build-storybook-docs",
30
30
  "test": "yarn test-storybook",
31
31
  "storybook": "start-storybook -p 6006 -s public",
@@ -1,12 +1,12 @@
1
1
 
2
- import { Button as MuiButton, ButtonProps, CircularProgress, Box } from '@mui/material'
2
+ import { Button as MuiButton, ButtonProps as MuiButtonProps, CircularProgress, Box } from '@mui/material'
3
3
 
4
- export type Props = {
4
+ export type ButtonProps = {
5
5
  /**
6
6
  Use the isProcessing prop to indicate to the user that an action is in process. This will disable the button.
7
7
  */
8
8
  isProcessing?: boolean
9
- } & ButtonProps
9
+ } & MuiButtonProps
10
10
 
11
11
  /**
12
12
  - Use a button for common user click actions. Several variations available.
@@ -15,7 +15,7 @@ const Button = ({
15
15
  children,
16
16
  isProcessing = false,
17
17
  ...props
18
- }: Props) => {
18
+ }: ButtonProps) => {
19
19
  const processingIndicator = (
20
20
  <Box
21
21
  sx={{
File without changes
package/tsconfig.json CHANGED
@@ -17,10 +17,26 @@
17
17
  "moduleResolution": "node",
18
18
  "resolveJsonModule": true,
19
19
  "isolatedModules": true,
20
- "noEmit": true,
21
- "jsx": "react-jsx"
20
+ "declaration": true,
21
+ "jsx": "react-jsx",
22
+ "rootDir": "./src",
23
+ "outDir": "./dist",
24
+ "sourceMap": true,
22
25
  },
23
26
  "include": [
24
- "src"
27
+ "src/index.tsx"
28
+ ],
29
+ "exclude": [
30
+ "node_modules"
25
31
  ]
26
32
  }
33
+ // {
34
+ // "compilerOptions": {
35
+ // "outDir": "./dist/",
36
+ // "sourceMap": true,
37
+ // "noImplicitAny": true,
38
+ // "module": "commonjs",
39
+ // "target": "es2015",
40
+ // "jsx": "react"
41
+ // }
42
+ // }