@veritone-ce/design-system 1.12.43 → 1.12.45

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.
@@ -323,13 +323,24 @@ defaultTheme = createTheme(defaultTheme, {
323
323
  }
324
324
  }
325
325
  },
326
- MuiPaper: {
326
+ MuiPagination: {
327
327
  styleOverrides: {
328
- root: {
329
- '&.MuiMenu-paper': {
330
- // border: '1px solid ' + theme.palette.text.disabled,
331
- // boxShadow: 'none'
332
- }
328
+ selectLabel: {
329
+ fontWeight: 400,
330
+ fontSize: '12px',
331
+ lineHeight: '18px',
332
+ color: colors.text.disabled
333
+ },
334
+ displayedRows: {
335
+ fontWeight: 400,
336
+ fontSize: '12px',
337
+ lineHeight: '18px',
338
+ color: colors.text.disabled
339
+ },
340
+ input: {
341
+ fontWeight: 400,
342
+ fontSize: '12px',
343
+ lineHeight: '18px'
333
344
  }
334
345
  }
335
346
  }
@@ -4,6 +4,7 @@ import * as React from 'react';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
6
  function Select(props) {
7
+ var _props$fullWidth;
7
8
  return /*#__PURE__*/_jsxs(Box, {
8
9
  sx: {
9
10
  maxHeight: props.helperText ? '77px' : '56px'
@@ -35,7 +36,7 @@ function Select(props) {
35
36
  },
36
37
  children: /*#__PURE__*/_jsxs(MuiSelect, {
37
38
  "data-testid": props['data-testid'],
38
- fullWidth: props.fullWidth,
39
+ fullWidth: (_props$fullWidth = props.fullWidth) != null ? _props$fullWidth : true,
39
40
  displayEmpty: true,
40
41
  error: props.error !== undefined,
41
42
  disabled: props.disabled,
@@ -1,7 +1,6 @@
1
1
  import { Theme } from '../../assets/theme.js';
2
2
  declare const selectTheme: (theme: Theme) => {
3
3
  defaultProps: {
4
- fullWidth: boolean;
5
4
  displayEmpty: boolean;
6
5
  };
7
6
  styleOverrides: {
@@ -1,7 +1,7 @@
1
1
  var selectTheme = function selectTheme(theme) {
2
2
  return {
3
3
  defaultProps: {
4
- fullWidth: true,
4
+ // fullWidth: true,
5
5
  displayEmpty: true
6
6
  },
7
7
  styleOverrides: {
@@ -1,4 +1,4 @@
1
- import { TablePaginationProps as MuiTablePaginationProps, TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material';
1
+ import { TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material';
2
2
  import React from 'react';
3
3
  import { SxProps, Theme } from '@mui/material/styles';
4
4
  export type TableProps = {
@@ -60,7 +60,35 @@ export type TableHeadProps = {
60
60
  export declare const TableHead: (props: TableHeadProps) => import("react/jsx-runtime").JSX.Element;
61
61
  export type TablePaginationProps = {
62
62
  'data-testid'?: string;
63
- } & MuiTablePaginationProps;
63
+ /**
64
+ * The total number of rows.
65
+ *
66
+ * To enable server side pagination for an unknown number of items, provide -1.
67
+ */
68
+ count: number;
69
+ /**
70
+ * The zero-based index of the current page.
71
+ */
72
+ page: number;
73
+ /**
74
+ * The number of rows per page.
75
+ *
76
+ * Set -1 to display all the rows.
77
+ */
78
+ rowsPerPage: number;
79
+ /**
80
+ * Callback fired when the page is changed.
81
+ *
82
+ * @param {React.MouseEvent<HTMLButtonElement> | null} event The event source of the callback.
83
+ * @param {number} page The page selected.
84
+ */
85
+ onPageChange: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
86
+ colSpan?: number;
87
+ sx?: SxProps<Theme>;
88
+ className?: string;
89
+ rowsPerPageOptions: number[];
90
+ onRowsPerPageChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
91
+ };
64
92
  export declare const TablePagination: (props: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
65
93
  export type TableRowProps = {
66
94
  'data-testid'?: string;
@@ -72,7 +72,17 @@ export var TableHead = function TableHead(props) {
72
72
  });
73
73
  };
74
74
  export var TablePagination = function TablePagination(props) {
75
- return /*#__PURE__*/_jsx(MuiTablePagination, _extends({}, props));
75
+ return /*#__PURE__*/_jsx(MuiTablePagination, {
76
+ count: props.count,
77
+ page: props.page,
78
+ rowsPerPage: props.rowsPerPage,
79
+ colSpan: props.colSpan,
80
+ onPageChange: props.onPageChange,
81
+ sx: props.sx,
82
+ className: props.className,
83
+ rowsPerPageOptions: props.rowsPerPageOptions,
84
+ onRowsPerPageChange: props.onRowsPerPageChange
85
+ });
76
86
  };
77
87
  var StyledMuiTableRow = styled(MuiTableRow)(function (_ref2) {
78
88
  var theme = _ref2.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "1.12.43",
3
+ "version": "1.12.45",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [