@veritone-ce/design-system 1.12.32 → 1.12.33

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 (118) hide show
  1. package/eslint-config/common.js +1 -1
  2. package/eslint-config/error.js +2 -1
  3. package/eslint-config/warn.js +2 -1
  4. package/package.json +2 -2
  5. package/dist/assets/theme.d.ts +0 -62
  6. package/dist/assets/theme.js +0 -357
  7. package/dist/components/Alert/index.d.ts +0 -22
  8. package/dist/components/Alert/index.js +0 -62
  9. package/dist/components/AudioSlider/index.d.ts +0 -12
  10. package/dist/components/AudioSlider/index.js +0 -73
  11. package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +0 -11
  12. package/dist/components/Breadcrumbs/breadcrumbs.theme.js +0 -21
  13. package/dist/components/Breadcrumbs/index.d.ts +0 -18
  14. package/dist/components/Breadcrumbs/index.js +0 -59
  15. package/dist/components/Button/Indicator.d.ts +0 -2
  16. package/dist/components/Button/Indicator.js +0 -36
  17. package/dist/components/Button/button.theme.d.ts +0 -4
  18. package/dist/components/Button/button.theme.js +0 -125
  19. package/dist/components/Button/index.d.ts +0 -22
  20. package/dist/components/Button/index.js +0 -57
  21. package/dist/components/Checkbox/checkbox.theme.d.ts +0 -18
  22. package/dist/components/Checkbox/checkbox.theme.js +0 -28
  23. package/dist/components/Checkbox/index.d.ts +0 -14
  24. package/dist/components/Checkbox/index.js +0 -26
  25. package/dist/components/Drawer/index.d.ts +0 -14
  26. package/dist/components/Drawer/index.js +0 -24
  27. package/dist/components/FileUploader/index.d.ts +0 -34
  28. package/dist/components/FileUploader/index.js +0 -203
  29. package/dist/components/FileUploader/useUploadFile.d.ts +0 -5
  30. package/dist/components/FileUploader/useUploadFile.js +0 -169
  31. package/dist/components/FormControlLabel/index.d.ts +0 -11
  32. package/dist/components/FormControlLabel/index.js +0 -23
  33. package/dist/components/Input/index.d.ts +0 -24
  34. package/dist/components/Input/index.js +0 -43
  35. package/dist/components/Input/input.theme.d.ts +0 -3
  36. package/dist/components/Input/input.theme.js +0 -108
  37. package/dist/components/LinearProgress/index.d.ts +0 -32
  38. package/dist/components/LinearProgress/index.js +0 -55
  39. package/dist/components/LinearProgress/linearProgress.theme.d.ts +0 -14
  40. package/dist/components/LinearProgress/linearProgress.theme.js +0 -24
  41. package/dist/components/Link/index.d.ts +0 -9
  42. package/dist/components/Link/index.js +0 -31
  43. package/dist/components/List/index.d.ts +0 -10
  44. package/dist/components/List/index.js +0 -22
  45. package/dist/components/ListItem/index.d.ts +0 -10
  46. package/dist/components/ListItem/index.js +0 -22
  47. package/dist/components/ListItemButton/index.d.ts +0 -12
  48. package/dist/components/ListItemButton/index.js +0 -24
  49. package/dist/components/ListItemText/index.d.ts +0 -10
  50. package/dist/components/ListItemText/index.js +0 -22
  51. package/dist/components/MenuFlyout/constants.d.ts +0 -3
  52. package/dist/components/MenuFlyout/constants.js +0 -12
  53. package/dist/components/MenuFlyout/index.d.ts +0 -21
  54. package/dist/components/MenuFlyout/index.js +0 -46
  55. package/dist/components/MenuFlyout/menuFlyout.theme.d.ts +0 -41
  56. package/dist/components/MenuFlyout/menuFlyout.theme.js +0 -56
  57. package/dist/components/Modal/index.d.ts +0 -14
  58. package/dist/components/Modal/index.js +0 -27
  59. package/dist/components/Modal/modal.theme.d.ts +0 -3
  60. package/dist/components/Modal/modal.theme.js +0 -35
  61. package/dist/components/Panel/index.d.ts +0 -12
  62. package/dist/components/Panel/index.js +0 -112
  63. package/dist/components/ProgressIndicator/DefaultProgress.d.ts +0 -3
  64. package/dist/components/ProgressIndicator/DefaultProgress.js +0 -30
  65. package/dist/components/ProgressIndicator/MLProgress.d.ts +0 -6
  66. package/dist/components/ProgressIndicator/MLProgress.js +0 -32
  67. package/dist/components/ProgressIndicator/index.d.ts +0 -20
  68. package/dist/components/ProgressIndicator/index.js +0 -35
  69. package/dist/components/RadioButton/RadioButton.theme.d.ts +0 -4
  70. package/dist/components/RadioButton/RadioButton.theme.js +0 -64
  71. package/dist/components/RadioButton/index.d.ts +0 -17
  72. package/dist/components/RadioButton/index.js +0 -44
  73. package/dist/components/RadioGroup/index.d.ts +0 -30
  74. package/dist/components/RadioGroup/index.js +0 -25
  75. package/dist/components/Select/index.d.ts +0 -41
  76. package/dist/components/Select/index.js +0 -118
  77. package/dist/components/Select/select.theme.d.ts +0 -53
  78. package/dist/components/Select/select.theme.js +0 -63
  79. package/dist/components/StatusChip/constants.d.ts +0 -3
  80. package/dist/components/StatusChip/constants.js +0 -12
  81. package/dist/components/StatusChip/index.d.ts +0 -30
  82. package/dist/components/StatusChip/index.js +0 -40
  83. package/dist/components/StatusChip/statusChip.theme.d.ts +0 -4
  84. package/dist/components/StatusChip/statusChip.theme.js +0 -46
  85. package/dist/components/Step/index.d.ts +0 -23
  86. package/dist/components/Step/index.js +0 -23
  87. package/dist/components/StepLabel/index.d.ts +0 -13
  88. package/dist/components/StepLabel/index.js +0 -22
  89. package/dist/components/Stepper/index.d.ts +0 -22
  90. package/dist/components/Stepper/index.js +0 -25
  91. package/dist/components/Stepper/stepper.theme.d.ts +0 -50
  92. package/dist/components/Stepper/stepper.theme.js +0 -58
  93. package/dist/components/Table/index.d.ts +0 -85
  94. package/dist/components/Table/index.js +0 -123
  95. package/dist/components/Tabs/index.d.ts +0 -16
  96. package/dist/components/Tabs/index.js +0 -50
  97. package/dist/components/Tabs/tabs.theme.d.ts +0 -4
  98. package/dist/components/Tabs/tabs.theme.js +0 -39
  99. package/dist/components/ThemeProvider/index.d.ts +0 -9
  100. package/dist/components/ThemeProvider/index.js +0 -25
  101. package/dist/components/Toast/index.d.ts +0 -7
  102. package/dist/components/Toast/index.js +0 -38
  103. package/dist/components/Typography/index.d.ts +0 -12
  104. package/dist/components/Typography/index.js +0 -21
  105. package/dist/components/UtilityRail/index.d.ts +0 -12
  106. package/dist/components/UtilityRail/index.js +0 -76
  107. package/dist/components/UtilityRail/mock.d.ts +0 -2
  108. package/dist/components/UtilityRail/mock.js +0 -32
  109. package/dist/components/ZeroState/index.d.ts +0 -2
  110. package/dist/components/ZeroState/index.js +0 -25
  111. package/dist/components/icons/HomeOutlinedIcon/index.d.ts +0 -5
  112. package/dist/components/icons/HomeOutlinedIcon/index.js +0 -15
  113. package/dist/components/icons/IconGroups/index.d.ts +0 -5
  114. package/dist/components/icons/IconGroups/index.js +0 -16
  115. package/dist/components/icons/IconListItem/index.d.ts +0 -7
  116. package/dist/components/icons/IconListItem/index.js +0 -17
  117. package/dist/index.d.ts +0 -70
  118. package/dist/index.js +0 -305
@@ -1,18 +0,0 @@
1
- import { SxProps, Theme } from '@mui/material';
2
- export type BreadcrumbsProps = {
3
- 'data-testid'?: string;
4
- links: {
5
- href: string;
6
- label: string;
7
- }[];
8
- sx?: SxProps<Theme>;
9
- className?: string;
10
- };
11
- /**
12
- * - This is the breadcrumbs component that is used in the header
13
- * - It takes in an array of links and renders them as breadcrumbs
14
- * - The last link is not clickable
15
- * - The last link is styled differently
16
- **/
17
- declare const Breadcrumbs: (props: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
18
- export default Breadcrumbs;
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _material = require("@mui/material");
8
- var _jsxRuntime = require("react/jsx-runtime");
9
- /**
10
- * - This is the breadcrumbs component that is used in the header
11
- * - It takes in an array of links and renders them as breadcrumbs
12
- * - The last link is not clickable
13
- * - The last link is styled differently
14
- **/
15
-
16
- var Breadcrumbs = function Breadcrumbs(props) {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Breadcrumbs, {
18
- "aria-label": "breadcrumbs",
19
- "data-testid": props['data-testid'],
20
- sx: props.sx,
21
- className: props.className,
22
- children: props.links.map(function (link, index) {
23
- if (index === props.links.length - 1) {
24
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
25
- sx: {
26
- color: function color(theme) {
27
- return theme.palette.text.disabled;
28
- },
29
- fontFamily: 'Dosis',
30
- fontStyle: 'normal',
31
- fontWeight: 600,
32
- fontSize: '18px',
33
- textTransform: 'uppercase'
34
- },
35
- children: link.label
36
- }, link.href);
37
- } else {
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, {
39
- href: link.href,
40
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
41
- sx: {
42
- color: function color(theme) {
43
- return theme.palette.button.main;
44
- },
45
- fontFamily: 'Dosis',
46
- fontStyle: 'normal',
47
- fontWeight: 600,
48
- fontSize: '18px',
49
- textTransform: 'uppercase'
50
- },
51
- children: link.label
52
- })
53
- }, link.href);
54
- }
55
- })
56
- });
57
- };
58
- var _default = Breadcrumbs;
59
- exports["default"] = _default;
@@ -1,2 +0,0 @@
1
- declare const Indicator: () => import("react/jsx-runtime").JSX.Element;
2
- export default Indicator;
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _material = require("@mui/material");
8
- var _jsxRuntime = require("react/jsx-runtime");
9
- var Indicator = function Indicator() {
10
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
11
- className: "button-loader",
12
- "data-testid": "loading-indicator",
13
- sx: {
14
- position: "absolute",
15
- top: 0,
16
- left: 0,
17
- right: 0,
18
- bottom: 0,
19
- display: "grid",
20
- justifyItems: "center",
21
- alignItems: "center",
22
- background: function background(theme) {
23
- return theme.palette.misc.rowHoverGreyOne;
24
- },
25
- border: function border(theme) {
26
- return "1px solid ".concat(theme.palette.misc.rowOnHoverGreyTwo);
27
- },
28
- borderRadius: '0.2rem'
29
- },
30
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CircularProgress, {
31
- size: 20
32
- })
33
- });
34
- };
35
- var _default = Indicator;
36
- exports["default"] = _default;
@@ -1,4 +0,0 @@
1
- import { Theme } from '../../assets/theme';
2
- import { Components } from '@mui/material';
3
- declare const buttonTheme: (theme: Theme) => Components['MuiButton'];
4
- export default buttonTheme;
@@ -1,125 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
- var buttonTheme = function buttonTheme(theme) {
14
- return {
15
- defaultProps: {
16
- variant: 'contained',
17
- disableRipple: true
18
- },
19
- styleOverrides: {
20
- root: function root(_ref) {
21
- var ownerState = _ref.ownerState;
22
- return _objectSpread(_objectSpread(_objectSpread({
23
- textTransform: 'none',
24
- fontWeight: '600',
25
- '&.MuiButton-outlinedError': {
26
- backgroundColor: theme.palette.common.white
27
- },
28
- '&.Mui-disabled': _objectSpread({}, ownerState.variant !== "text" && {
29
- borderColor: theme.palette.misc.altBackground,
30
- backgroundColor: theme.palette.misc.rowHoverGreyOne,
31
- borderWidth: '1px',
32
- borderStyle: 'solid'
33
- }),
34
- '& .MuiButton-startIcon': _objectSpread({
35
- marginRight: 0,
36
- marginLeft: 0,
37
- marginTop: '-1px',
38
- fontSize: '18px'
39
- }, {
40
- '& .MuiSvgIcon-root': {
41
- fontSize: 18
42
- }
43
- }),
44
- '& .MuiButton-endIcon': _objectSpread({
45
- marginRight: 0,
46
- marginLeft: 0,
47
- marginTop: '-1px',
48
- fontSize: '18px'
49
- }, {
50
- '& .MuiSvgIcon-root': {
51
- fontSize: 18
52
- }
53
- }),
54
- '&.Mui-disabled .MuiButton-startIcon .MuiButton-endIcon': {
55
- opacity: 0.3
56
- }
57
- }, ownerState.variant === "contained" && {
58
- //@ts-ignore
59
- backgroundColor: ownerState.color === "primary" ? theme.palette.button.main :
60
- //@ts-ignore
61
- theme.palette[ownerState.color].main,
62
- ':hover': {
63
- //@ts-ignore
64
- backgroundColor: ownerState.color === "primary" ? theme.palette.button.hover :
65
- //@ts-ignore
66
- theme.palette[ownerState.color]
67
- }
68
- }), ownerState.variant === "outlined" && {
69
- backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
70
- //@ts-ignore
71
- theme.palette[ownerState.color],
72
- //@ts-ignore
73
- color: ownerState.color === "primary" ? theme.palette.neutral.main :
74
- //@ts-ignore
75
- theme.palette[ownerState.color].main,
76
- borderColor: ownerState.color === "primary" ? theme.palette.neutral.main :
77
- //@ts-ignore
78
- theme.palette[ownerState.color].main,
79
- ':hover': {
80
- backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
81
- //@ts-ignore
82
- theme.palette[ownerState.color],
83
- //@ts-ignore
84
- color: ownerState.color === "primary" ? theme.palette.secondary.main :
85
- //@ts-ignore
86
- theme.palette[ownerState.color],
87
- //@ts-ignore
88
- borderColor: ownerState.color === "primary" ? theme.palette.secondary.main :
89
- //@ts-ignore
90
- theme.palette[ownerState.color]
91
- }
92
- }), ownerState.variant === "text" && {
93
- backgroundColor: 'transparent',
94
- color: ownerState.color === "primary" ? theme.palette.text.tertiary :
95
- //@ts-ignore
96
- theme.palette[ownerState.color].main,
97
- ':hover': {
98
- backgroundColor: 'rgba(255, 255, 255, 0.15)',
99
- //@ts-ignore
100
- color: ownerState.color === "primary" ? theme.palette.secondary.main :
101
- //@ts-ignore
102
- theme.palette[ownerState.color]
103
- }
104
- });
105
- }
106
- },
107
- variants: [{
108
- props: {
109
- variant: 'secondary'
110
- },
111
- style: {
112
- backgroundColor: 'white',
113
- color: theme.palette.neutral.main,
114
- border: "1px solid ".concat(theme.palette.neutral.main),
115
- ':hover': {
116
- border: "1px solid ".concat(theme.palette.primary.main),
117
- color: theme.palette.primary.main,
118
- backgroundColor: 'white'
119
- }
120
- }
121
- }]
122
- };
123
- };
124
- var _default = buttonTheme;
125
- exports["default"] = _default;
@@ -1,22 +0,0 @@
1
- import { ButtonProps as MuiButtonProps } from '@mui/material';
2
- import * as React from 'react';
3
- import { MouseEventHandler } from 'react';
4
- import { SxProps, Theme } from '@mui/system';
5
- export type ButtonProps = {
6
- 'data-testid'?: string;
7
- variant?: 'text' | 'outlined' | 'contained';
8
- isLoading?: boolean;
9
- disabled?: boolean;
10
- startIcon?: React.ReactNode;
11
- endIcon?: React.ReactNode;
12
- color?: MuiButtonProps['color'];
13
- children?: React.ReactNode;
14
- onClick?: MouseEventHandler<HTMLButtonElement>;
15
- sx?: SxProps<Theme>;
16
- className?: string;
17
- };
18
- /**
19
- - Use a button for common user click actions. Several variations available.
20
- **/
21
- declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
22
- export default Button;
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var _Indicator = _interopRequireDefault(require("./Indicator"));
10
- var React = _interopRequireWildcard(require("react"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- var ButtonContainer = (0, _material.styled)(_material.Box)(function (_ref) {
16
- var theme = _ref.theme;
17
- return {
18
- display: "inline-flex",
19
- position: "relative"
20
- };
21
- });
22
-
23
- /**
24
- - Use a button for common user click actions. Several variations available.
25
- **/
26
- var Button = function Button(props) {
27
- var disabled = props.isLoading || props.disabled;
28
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonContainer, {
29
- "data-testid": props['data-testid'],
30
- sx: props.sx,
31
- className: props.className,
32
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
33
- sx: {
34
- fontSize: '14px',
35
- gap: '5px',
36
- paddingTop: '8px',
37
- paddingBottom: '8px',
38
- paddingLeft: '15px',
39
- paddingRight: '15px',
40
- display: 'flex',
41
- alignItems: 'center',
42
- lineHeight: '16px',
43
- height: 36
44
- },
45
- color: props.color,
46
- disableElevation: true,
47
- variant: props.variant,
48
- disabled: disabled,
49
- startIcon: props.startIcon,
50
- endIcon: props.endIcon,
51
- onClick: props.onClick,
52
- children: props.children
53
- }), props.isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Indicator["default"], {})]
54
- });
55
- };
56
- var _default = Button;
57
- exports["default"] = _default;
@@ -1,18 +0,0 @@
1
- import { Theme } from '../../assets/theme';
2
- declare const checkboxTheme: (theme: Theme) => {
3
- styleOverrides: {
4
- root: () => {
5
- marginRight: string;
6
- '&.MuiCheckbox-root': {
7
- color: string;
8
- };
9
- '&.Mui-checked, &.MuiCheckbox-indeterminate': {
10
- color: string;
11
- };
12
- '&.Mui-disabled': {
13
- color: string;
14
- };
15
- };
16
- };
17
- };
18
- export default checkboxTheme;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var checkboxTheme = function checkboxTheme(theme) {
8
- return {
9
- styleOverrides: {
10
- root: function root() {
11
- return {
12
- marginRight: '8px',
13
- '&.MuiCheckbox-root': {
14
- color: theme.palette.text.secondary
15
- },
16
- '&.Mui-checked, &.MuiCheckbox-indeterminate': {
17
- color: theme.palette.button.main
18
- },
19
- '&.Mui-disabled': {
20
- color: theme.palette.text.disabled
21
- }
22
- };
23
- }
24
- }
25
- };
26
- };
27
- var _default = checkboxTheme;
28
- exports["default"] = _default;
@@ -1,14 +0,0 @@
1
- import { ChangeEvent } from 'react';
2
- import { SxProps, Theme } from '@mui/system';
3
- export type CheckboxProps = {
4
- 'data-testid'?: string;
5
- label?: string | undefined;
6
- checked?: boolean;
7
- indeterminate?: boolean;
8
- disabled?: boolean;
9
- onChange?(event: ChangeEvent<HTMLInputElement>, checked: boolean): void;
10
- sx?: SxProps<Theme>;
11
- className?: string;
12
- };
13
- declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
14
- export default Checkbox;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _material = require("@mui/material");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var Checkbox = function Checkbox(props) {
12
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
13
- label: props.label,
14
- control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Checkbox, {
15
- "data-testid": props['data-testid'],
16
- checked: props.checked,
17
- indeterminate: props.indeterminate,
18
- disabled: props.disabled,
19
- onChange: props.onChange,
20
- sx: props.sx,
21
- className: props.className
22
- })
23
- });
24
- };
25
- var _default = Checkbox;
26
- exports["default"] = _default;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { SxProps, Theme } from '@mui/system';
3
- export type DrawerProps = {
4
- 'data-testid'?: string;
5
- open: boolean;
6
- children?: React.ReactNode;
7
- onClose?: {
8
- bivarianceHack(event: Event, reason: 'backdropClick' | 'escapeKeyDown'): void;
9
- }['bivarianceHack'];
10
- sx?: SxProps<Theme>;
11
- className?: string;
12
- };
13
- declare const Drawer: (props: DrawerProps) => import("react/jsx-runtime").JSX.Element;
14
- export default Drawer;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _material = require("@mui/material");
9
- var React = _interopRequireWildcard(require("react"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- var Drawer = function Drawer(props) {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Drawer, {
15
- "data-testid": props['data-testid'],
16
- open: props.open,
17
- onClose: props.onClose,
18
- sx: props.sx,
19
- className: props.className,
20
- children: props.children
21
- });
22
- };
23
- var _default = Drawer;
24
- exports["default"] = _default;
@@ -1,34 +0,0 @@
1
- import { SxProps, Theme } from '@mui/system';
2
- import { Accept, DropzoneRootProps, DropzoneInputProps } from 'react-dropzone';
3
- export interface FileData {
4
- file: File | any;
5
- uploadProgress: number;
6
- isUploaded: boolean;
7
- withError: boolean;
8
- feedbackText: string;
9
- }
10
- export type FileUploaderViewProps = {
11
- 'data-testid'?: string;
12
- extensions: string[];
13
- fileList: FileData[];
14
- onDelete(fileIndex: number): void;
15
- rootProps?: DropzoneRootProps;
16
- inputProps?: DropzoneInputProps;
17
- sx?: SxProps<Theme>;
18
- className?: string;
19
- };
20
- export declare const FileUploaderView: (props: FileUploaderViewProps) => import("react/jsx-runtime").JSX.Element;
21
- export type FileUploaderProps = {
22
- 'data-testid'?: string;
23
- accept?: Accept;
24
- multiple?: boolean;
25
- uploadUrl: string;
26
- extensions: string[];
27
- files?(v: File[]): void;
28
- onError?(v: Error): void;
29
- onSuccess?(v: boolean): void;
30
- sx?: SxProps<Theme>;
31
- className?: string;
32
- };
33
- declare const FileUploader: ({ uploadUrl, files, accept, multiple, onSuccess, onError, extensions, ...props }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
34
- export default FileUploader;