@xqmsg/ui-core 0.14.2 → 0.14.3

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.
@@ -5,11 +5,10 @@ export interface TableProps<T extends ReadonlyTableColumns> {
5
5
  headers: TableHeaders<T>;
6
6
  body: TableBody<T>;
7
7
  loading?: boolean;
8
- borderTopRadius?: boolean;
9
8
  loadMore?: () => void;
10
9
  placeholder?: string;
11
10
  }
12
11
  /**
13
12
  * A React component utilized to render the `Table` component
14
13
  */
15
- export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, placeholder, loading, borderTopRadius, loadMore, }: TableProps<T>): JSX.Element;
14
+ export declare function Table<T extends ReadonlyTableColumns>({ columns, headers, body, placeholder, loading, loadMore, }: TableProps<T>): JSX.Element;
@@ -5,26 +5,27 @@ declare const _default: {
5
5
  bg: string;
6
6
  };
7
7
  th: {
8
- height: string;
9
- width: string;
10
8
  bg: string;
11
9
  padding: string;
12
10
  };
13
11
  tr: {
14
12
  fontSize: string;
15
- display: string;
16
- alignItems: string;
17
- width: string;
18
- height: string;
19
- borderRadius: string;
20
13
  _odd: {
21
- bg: string;
14
+ td: {
15
+ bg: string;
16
+ _first: {
17
+ borderTopLeftRadius: string;
18
+ borderBottomLeftRadius: string;
19
+ };
20
+ _last: {
21
+ borderTopRightRadius: string;
22
+ borderBottomRightRadius: string;
23
+ };
24
+ };
22
25
  };
23
26
  };
24
27
  td: {
25
28
  padding: string;
26
- borderRadius: string;
27
- width: string;
28
29
  };
29
30
  };
30
31
  };
@@ -1601,19 +1601,20 @@ function Table(_ref) {
1601
1601
  _ref$placeholder = _ref.placeholder,
1602
1602
  placeholder = _ref$placeholder === void 0 ? 'There is currently no available data' : _ref$placeholder,
1603
1603
  loading = _ref.loading,
1604
- _ref$borderTopRadius = _ref.borderTopRadius,
1605
- borderTopRadius = _ref$borderTopRadius === void 0 ? true : _ref$borderTopRadius,
1606
1604
  loadMore = _ref.loadMore;
1607
1605
  var columnsAsConst = generateTableColumnsAsConst(columns);
1608
1606
  return /*#__PURE__*/React__default.createElement(react.TableContainer, {
1609
1607
  border: "none",
1610
1608
  overflowX: "auto",
1611
1609
  bg: "white",
1612
- borderRadius: "md",
1613
- borderTopLeftRadius: borderTopRadius ? 'md' : 0,
1614
- borderTopRightRadius: borderTopRadius ? 'md' : 0
1610
+ width: "fit-content"
1615
1611
  }, /*#__PURE__*/React__default.createElement(react.Table, {
1616
- variant: "unstyled"
1612
+ variant: "unstyled",
1613
+ width: "fit-content",
1614
+ style: {
1615
+ borderCollapse: 'separate',
1616
+ borderSpacing: '0px'
1617
+ }
1617
1618
  }, /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
1618
1619
  _odd: {
1619
1620
  bg: colors.label.primary.dark
@@ -2485,26 +2486,27 @@ var baseStyle$c = {
2485
2486
  bg: colors.label.primary.dark
2486
2487
  },
2487
2488
  th: {
2488
- height: '100%',
2489
- width: '100%',
2490
2489
  bg: colors.label.primary.dark,
2491
2490
  padding: '5px 8px !important'
2492
2491
  },
2493
2492
  tr: {
2494
2493
  fontSize: '13px',
2495
- display: 'flex',
2496
- alignItems: 'center',
2497
- width: '100%',
2498
- height: '100%',
2499
- borderRadius: 'md',
2500
2494
  _odd: {
2501
- bg: colors.fill.light.tertiary
2495
+ td: {
2496
+ bg: colors.fill.light.tertiary,
2497
+ _first: {
2498
+ borderTopLeftRadius: 'md',
2499
+ borderBottomLeftRadius: 'md'
2500
+ },
2501
+ _last: {
2502
+ borderTopRightRadius: 'md',
2503
+ borderBottomRightRadius: 'md'
2504
+ }
2505
+ }
2502
2506
  }
2503
2507
  },
2504
2508
  td: {
2505
- padding: '5px 8px !important',
2506
- borderRadius: 'md',
2507
- width: '100%'
2509
+ padding: '5px 8px !important'
2508
2510
  }
2509
2511
  };
2510
2512
  var Table$1 = {