venice-ui 3.0.60 → 3.0.61

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.
@@ -46,10 +46,11 @@ const HeaderCell_1 = require("./HeaderCell");
46
46
  const Cell_1 = require("./Cell");
47
47
  const SearchInput_1 = require("../SearchInput");
48
48
  const PageSize_1 = require("../PageSize");
49
+ const EMPTY_ACTIONS = [];
49
50
  const Table = ({ theme, themeVariant = 'default', headers, elements, hover = true, selectable = true, filtrable = false, pagination = false, sortable = true, sort = {
50
51
  name: '',
51
52
  order: 'none',
52
- }, pageSize = 20, moreActions = [], onRowClick, filterLabels, pageSizeAvailableValues, tableHeight, tableWrapperHeight, paginationLabel, calendarLabels, calendarLocaleLabels, paginationZIndex, headerExtraContent, searchable = true, searchInputPlaceholder = config_2.wordbook.searchInput.placeholder, noResultsText = config_2.wordbook.table.filterEmptyState, emptyStateText = config_2.wordbook.table.emptyState, }) => {
53
+ }, pageSize = 20, moreActions = EMPTY_ACTIONS, onRowClick, filterLabels, pageSizeAvailableValues, tableHeight, tableWrapperHeight, paginationLabel, calendarLabels, calendarLocaleLabels, paginationZIndex, headerExtraContent, searchable = true, searchInputPlaceholder = config_2.wordbook.searchInput.placeholder, noResultsText = config_2.wordbook.table.filterEmptyState, emptyStateText = config_2.wordbook.table.emptyState, }) => {
53
54
  const resolvedThemeData = (0, config_1.resolveThemeWithComponentsConfig)({
54
55
  theme,
55
56
  themeVariant,
@@ -10,10 +10,11 @@ import { HeaderCell } from './HeaderCell';
10
10
  import { Cell } from './Cell';
11
11
  import { SearchInput } from '../SearchInput';
12
12
  import { PageSize } from '../PageSize';
13
+ const EMPTY_ACTIONS = [];
13
14
  export const Table = ({ theme, themeVariant = 'default', headers, elements, hover = true, selectable = true, filtrable = false, pagination = false, sortable = true, sort = {
14
15
  name: '',
15
16
  order: 'none',
16
- }, pageSize = 20, moreActions = [], onRowClick, filterLabels, pageSizeAvailableValues, tableHeight, tableWrapperHeight, paginationLabel, calendarLabels, calendarLocaleLabels, paginationZIndex, headerExtraContent, searchable = true, searchInputPlaceholder = wordbook.searchInput.placeholder, noResultsText = wordbook.table.filterEmptyState, emptyStateText = wordbook.table.emptyState, }) => {
17
+ }, pageSize = 20, moreActions = EMPTY_ACTIONS, onRowClick, filterLabels, pageSizeAvailableValues, tableHeight, tableWrapperHeight, paginationLabel, calendarLabels, calendarLocaleLabels, paginationZIndex, headerExtraContent, searchable = true, searchInputPlaceholder = wordbook.searchInput.placeholder, noResultsText = wordbook.table.filterEmptyState, emptyStateText = wordbook.table.emptyState, }) => {
17
18
  const resolvedThemeData = resolveThemeWithComponentsConfig({
18
19
  theme,
19
20
  themeVariant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "3.0.60",
3
+ "version": "3.0.61",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",