@veritone-ce/design-system 1.12.32 → 1.12.34

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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AlertColor } from '@mui/material/Alert/Alert';
3
- import { SxProps, Theme } from '@mui/system';
3
+ import { SxProps, Theme } from '@mui/material/styles';
4
4
  export type AlertProps = {
5
5
  'data-testid'?: string;
6
6
  label?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps as MuiButtonProps } from '@mui/material';
2
2
  import * as React from 'react';
3
3
  import { MouseEventHandler } from 'react';
4
- import { SxProps, Theme } from '@mui/system';
4
+ import { SxProps, Theme } from '@mui/material/styles';
5
5
  export type ButtonProps = {
6
6
  'data-testid'?: string;
7
7
  variant?: 'text' | 'outlined' | 'contained';
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent } from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type CheckboxProps = {
4
4
  'data-testid'?: string;
5
5
  label?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type DrawerProps = {
4
4
  'data-testid'?: string;
5
5
  open: boolean;
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  import { Accept, DropzoneRootProps, DropzoneInputProps } from 'react-dropzone';
3
3
  export interface FileData {
4
4
  file: File | any;
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = exports.FileUploaderView = void 0;
7
7
  var _react = require("react");
8
- var _system = require("@mui/system");
9
8
  var _material = require("@mui/material");
10
9
  var _styles = require("@mui/material/styles");
11
10
  var _CloudUploadOutlined = _interopRequireDefault(require("@mui/icons-material/CloudUploadOutlined"));
@@ -37,11 +36,11 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
37
36
  var FileUploaderView = function FileUploaderView(props) {
38
37
  var _useTheme = (0, _styles.useTheme)(),
39
38
  palette = _useTheme.palette;
40
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Box, {
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
41
40
  "data-testid": props['data-testid'],
42
41
  sx: props.sx,
43
42
  className: props.className,
44
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Box, _objectSpread(_objectSpread({
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, _objectSpread(_objectSpread({
45
44
  "data-testid": "dropzone",
46
45
  sx: {
47
46
  maxWidth: '500px',
@@ -66,7 +65,7 @@ var FileUploaderView = function FileUploaderView(props) {
66
65
  style: {
67
66
  display: 'none'
68
67
  }
69
- }, props.inputProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_system.Box, {
68
+ }, props.inputProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
70
69
  sx: {
71
70
  display: 'flex',
72
71
  alignItems: 'center',
@@ -84,7 +83,7 @@ var FileUploaderView = function FileUploaderView(props) {
84
83
  height: '30px'
85
84
  }
86
85
  })
87
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Box, {
86
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
88
87
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Typography, {
89
88
  sx: {
90
89
  fontSize: '14px',
@@ -93,7 +92,7 @@ var FileUploaderView = function FileUploaderView(props) {
93
92
  lineHeight: '22px',
94
93
  color: palette.text.primary
95
94
  },
96
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_system.Box, {
95
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
97
96
  component: "span",
98
97
  sx: {
99
98
  marginRight: '4px',
@@ -113,7 +112,7 @@ var FileUploaderView = function FileUploaderView(props) {
113
112
  })]
114
113
  })]
115
114
  })), props.fileList.map(function (file, index) {
116
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Box, {
115
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
117
116
  "data-testid": "file-item",
118
117
  sx: {
119
118
  height: '70px',
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type FormControlLabelProps = {
4
4
  'data-testid'?: string;
5
5
  label: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type InputProps = {
4
4
  'data-testid'?: string;
5
5
  type?: React.InputHTMLAttributes<unknown>['type'];
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  export type LinearProgressProps = {
3
3
  'data-testid'?: string;
4
4
  value: number;
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  import * as React from 'react';
3
3
  export type LinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> & {
4
4
  'data-testid'?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type ListProps = {
4
4
  'data-testid'?: string;
5
5
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  import * as React from 'react';
3
3
  export type ListItemProps = {
4
4
  'data-testid'?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type ListItemButtonProps = {
4
4
  'data-testid'?: string;
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  import * as React from 'react';
3
3
  export type ListItemTextProps = {
4
4
  'data-testid'?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type MenuOption = {
4
4
  label: string;
5
5
  icon?: React.ReactElement;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type ModalProps = {
4
4
  'data-testid'?: string;
5
5
  open: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type RadioGroupProps = {
4
4
  'data-testid'?: string;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type StepProps = {
4
4
  'data-testid'?: string;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type StepLabelProps = {
4
4
  'data-testid'?: string;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  export type StepperProps = {
4
4
  'data-testid'?: string;
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { TablePaginationProps as MuiTablePaginationProps, TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material';
2
2
  import React from 'react';
3
- import { SxProps, Theme } from '@mui/system';
3
+ import { SxProps, Theme } from '@mui/material/styles';
4
4
  export type TableProps = {
5
5
  'data-testid'?: string;
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { SxProps, Theme } from '@mui/system';
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
2
  import * as React from 'react';
3
3
  export type Tab = {
4
4
  'data-testid'?: string;
@@ -1,6 +1,6 @@
1
- import { Theme } from '@mui/system';
1
+ import { Theme } from '@mui/material/styles';
2
2
  import React from 'react';
3
- export declare const defaultTheme: import("@mui/material").Theme;
3
+ export declare const defaultTheme: Theme;
4
4
  export type ThemeProviderProps = {
5
5
  theme?: Theme;
6
6
  children?: React.ReactNode;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultTheme = exports["default"] = void 0;
7
- var _system = require("@mui/system");
7
+ var _styles = require("@mui/material/styles");
8
8
  var _theme = require("../../assets/theme");
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _jsxRuntime = require("react/jsx-runtime");
@@ -16,7 +16,7 @@ var ThemeProvider = function ThemeProvider(props) {
16
16
  var _props$theme;
17
17
  return (_props$theme = props.theme) !== null && _props$theme !== void 0 ? _props$theme : defaultTheme;
18
18
  }, [props.theme]);
19
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_system.ThemeProvider, {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ThemeProvider, {
20
20
  theme: theme,
21
21
  children: props.children
22
22
  });
@@ -1,5 +1,5 @@
1
1
  import { TypographyProps as MuiTypographyProps } from '@mui/material';
2
- import { SxProps, Theme } from '@mui/system';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
3
  import React from 'react';
4
4
  export type TypographyProps = {
5
5
  'data-testid'?: string;
@@ -1,4 +1,4 @@
1
- /* eslint-disable */
1
+ /* eslint-env node */
2
2
  module.exports = (severity) => ({
3
3
  rules: {
4
4
  'no-restricted-imports': [
@@ -1,9 +1,10 @@
1
- /* eslint-disable */
1
+ /* eslint-env node */
2
2
  // this config can be loaded into other projects by adding the following to their eslintrc file:
3
3
  // extends: [
4
4
  // "./node_modules/@veritone-ce/design-system/eslint-config/error"
5
5
  // ]
6
6
 
7
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7
8
  const configFactory = require('./common.js')
8
9
 
9
10
  module.exports = configFactory('error')
@@ -1,9 +1,10 @@
1
- /* eslint-disable */
1
+ /* eslint-env node */
2
2
  // this config can be loaded into other projects by adding the following to their eslintrc file:
3
3
  // extends: [
4
4
  // "./node_modules/@veritone-ce/design-system/eslint-config/warn"
5
5
  // ]
6
6
 
7
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7
8
  const configFactory = require('./common.js')
8
9
 
9
10
  module.exports = configFactory('warn')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "1.12.32",
3
+ "version": "1.12.34",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [
@@ -115,7 +115,7 @@
115
115
  "react-dom": "^18.2.0",
116
116
  "storybook": "^7.0.27",
117
117
  "tsc-alias": "^1.8.2",
118
- "typescript": "^4.4.2",
118
+ "typescript": "^4.5.0",
119
119
  "webpack": "^5.88.1"
120
120
  },
121
121
  "peerDependencies": {