venice-ui 3.0.57 → 3.0.59

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.
@@ -188,7 +188,7 @@ const Table = ({ theme, themeVariant = 'default', headers, elements, hover = tru
188
188
  ? () => handleRowClick(item.id)
189
189
  : undefined }, tableHeaders.map((header, index) => (react_1.default.createElement(Cell_1.Cell, { key: `cell_${header.name}_${item.id}`, header: header, moreActions: moreActions, item: item, theme: theme, selected: item.marked && index === 0, isDisabled: item.disabled }))))))),
190
190
  pagination && totalPages > 1 && visibleElements.length > 0 && (react_1.default.createElement(Table_styles_1.TableFooter, null,
191
- react_1.default.createElement(Pagination_1.Pagination, { currentPage: currentPage, totalPages: totalPages, onPageChange: setCurrentPage }))))),
192
- noResultsMessage && (react_1.default.createElement(Table_styles_1.TableEmptyState, { theme: resolvedTheme, config: tableConfig }, noResultsMessage))))));
191
+ react_1.default.createElement(Pagination_1.Pagination, { currentPage: currentPage, totalPages: totalPages, onPageChange: setCurrentPage })))),
192
+ noResultsMessage && (react_1.default.createElement(Table_styles_1.TableEmptyState, { theme: resolvedTheme, config: tableConfig }, noResultsMessage)))))));
193
193
  };
194
194
  exports.Table = Table;
@@ -197,12 +197,13 @@ exports.TableSearch = styled_components_1.default.div `
197
197
  overflow: hidden;
198
198
  width: 100%;
199
199
  color: ${({ theme, config }) => config.color.default.searchInput.text};
200
- border: 1px solid ${({ theme, config }) => config.color.default.searchInput.border};
200
+ border: 1px solid
201
+ ${({ theme, config }) => config.color.default.searchInput.border};
201
202
  background: ${({ theme, config }) => config.color.default.searchInput.background};
202
- box-sizing: border-box;
203
- :hover {
203
+ box-sizing: border-box;
204
+ :hover {
204
205
  border-color: ${({ theme, config }) => config.color.hover.searchInput.border};
205
- }
206
+ }
206
207
  &:focus-within {
207
208
  border-color: ${({ theme, config }) => config.color.active.searchInput.border};
208
209
  }
@@ -211,6 +212,7 @@ exports.TableEmptyState = styled_components_1.default.div `
211
212
  display: flex;
212
213
  align-items: center;
213
214
  justify-content: center;
215
+ position: absolute;
214
216
  width: 100%;
215
217
  font-size: ${({ theme, config }) => config.size.header.fontSize}px;
216
218
  line-height: ${({ theme, config }) => config.size.header.lineHeight}px;
@@ -218,12 +220,12 @@ exports.TableEmptyState = styled_components_1.default.div `
218
220
  padding: 0 ${({ theme, config }) => config.size.cell.common.paddingX}px;
219
221
  background-color: ${({ theme, config }) => config.color.default.common.background};
220
222
  height: ${({ theme, config }) => config.size.header.height}px;
223
+ top:45px;
221
224
  box-sizing: border-box;
222
225
  `;
223
226
  exports.TableFooter = styled_components_1.default.div `
224
227
  display: flex;
225
228
  padding: 8px 0;
226
- width:100%;
229
+ width: 100%;
227
230
  justify-content: center;
228
-
229
231
  `;
@@ -152,6 +152,6 @@ export const Table = ({ theme, themeVariant = 'default', headers, elements, hove
152
152
  ? () => handleRowClick(item.id)
153
153
  : undefined }, tableHeaders.map((header, index) => (React.createElement(Cell, { key: `cell_${header.name}_${item.id}`, header: header, moreActions: moreActions, item: item, theme: theme, selected: item.marked && index === 0, isDisabled: item.disabled }))))))),
154
154
  pagination && totalPages > 1 && visibleElements.length > 0 && (React.createElement(TableFooter, null,
155
- React.createElement(Pagination, { currentPage: currentPage, totalPages: totalPages, onPageChange: setCurrentPage }))))),
156
- noResultsMessage && (React.createElement(TableEmptyState, { theme: resolvedTheme, config: tableConfig }, noResultsMessage))))));
155
+ React.createElement(Pagination, { currentPage: currentPage, totalPages: totalPages, onPageChange: setCurrentPage })))),
156
+ noResultsMessage && (React.createElement(TableEmptyState, { theme: resolvedTheme, config: tableConfig }, noResultsMessage)))))));
157
157
  };
@@ -191,12 +191,13 @@ export const TableSearch = styled.div `
191
191
  overflow: hidden;
192
192
  width: 100%;
193
193
  color: ${({ theme, config }) => config.color.default.searchInput.text};
194
- border: 1px solid ${({ theme, config }) => config.color.default.searchInput.border};
194
+ border: 1px solid
195
+ ${({ theme, config }) => config.color.default.searchInput.border};
195
196
  background: ${({ theme, config }) => config.color.default.searchInput.background};
196
- box-sizing: border-box;
197
- :hover {
197
+ box-sizing: border-box;
198
+ :hover {
198
199
  border-color: ${({ theme, config }) => config.color.hover.searchInput.border};
199
- }
200
+ }
200
201
  &:focus-within {
201
202
  border-color: ${({ theme, config }) => config.color.active.searchInput.border};
202
203
  }
@@ -205,6 +206,7 @@ export const TableEmptyState = styled.div `
205
206
  display: flex;
206
207
  align-items: center;
207
208
  justify-content: center;
209
+ position: absolute;
208
210
  width: 100%;
209
211
  font-size: ${({ theme, config }) => config.size.header.fontSize}px;
210
212
  line-height: ${({ theme, config }) => config.size.header.lineHeight}px;
@@ -212,12 +214,12 @@ export const TableEmptyState = styled.div `
212
214
  padding: 0 ${({ theme, config }) => config.size.cell.common.paddingX}px;
213
215
  background-color: ${({ theme, config }) => config.color.default.common.background};
214
216
  height: ${({ theme, config }) => config.size.header.height}px;
217
+ top:45px;
215
218
  box-sizing: border-box;
216
219
  `;
217
220
  export const TableFooter = styled.div `
218
221
  display: flex;
219
222
  padding: 8px 0;
220
- width:100%;
223
+ width: 100%;
221
224
  justify-content: center;
222
-
223
225
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "3.0.57",
3
+ "version": "3.0.59",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",