@capillarytech/blaze-ui 0.1.4-alpha.14 → 0.1.4-alpha.16

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.
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import { throttle } from 'lodash';
7
7
  import classNames from 'classnames';
8
8
 
9
- // import { withStyles } from '@capillarytech/vulcan-react-sdk/utils';
9
+ import { withStyles } from '@capillarytech/vulcan-react-sdk/utils';
10
10
 
11
11
  import styles, { StyledTable } from './styles';
12
12
  import LocaleHoc from '../LocaleHoc';
@@ -96,4 +96,4 @@ CapTable.propTypes = {
96
96
  showLoader: PropTypes.bool,
97
97
  };
98
98
 
99
- export default LocaleHoc(CapTable, { key: 'CapTable' });
99
+ export default LocaleHoc(withStyles(CapTable, styles), { key: 'CapTable' });
@@ -1,4 +1,6 @@
1
- import { css } from 'styled-components';
1
+ import { Table } from 'antd';
2
+ import styled, { css } from 'styled-components';
3
+
2
4
  import * as styledVars from '../styled/variables';
3
5
 
4
6
  const {
@@ -36,9 +38,8 @@ export const StyledTable = styled(Table)`
36
38
  }
37
39
  `;
38
40
  export default css`
39
- background-color: red;
40
41
  .ant-table {
41
- border: 10px solid ${CAP_G07};
42
+ border: 1px solid ${CAP_G07};
42
43
 
43
44
  .ant-table-thead > tr > th {
44
45
  color: ${CAP_G01};
@@ -137,4 +138,3 @@ export default css`
137
138
  color: ${CAP_G01};
138
139
  }
139
140
  `;
140
-
@@ -15,9 +15,7 @@ import React, { useEffect, useCallback, useState } from 'react';
15
15
  import PropTypes from 'prop-types';
16
16
  import { throttle } from 'lodash';
17
17
  import classNames from 'classnames';
18
-
19
- // import { withStyles } from '@capillarytech/vulcan-react-sdk/utils';
20
-
18
+ import { withStyles } from '@capillarytech/vulcan-react-sdk/utils';
21
19
  import styles, { StyledTable } from './styles';
22
20
  import LocaleHoc from '../LocaleHoc';
23
21
  var CapTable = function CapTable(_ref) {
@@ -97,6 +95,6 @@ CapTable.propTypes = {
97
95
  scroll: PropTypes.object,
98
96
  showLoader: PropTypes.bool
99
97
  };
100
- export default LocaleHoc(CapTable, {
98
+ export default LocaleHoc(withStyles(CapTable, styles), {
101
99
  key: 'CapTable'
102
100
  });
@@ -1,6 +1,5 @@
1
- var _templateObject;
2
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
- import { css } from 'styled-components';
1
+ import { Table } from 'antd';
2
+ import styled, { css } from 'styled-components';
4
3
  import * as styledVars from '../styled/variables';
5
4
  var CAP_G09 = styledVars.CAP_G09,
6
5
  CAP_G01 = styledVars.CAP_G01,
@@ -10,7 +9,10 @@ var CAP_G09 = styledVars.CAP_G09,
10
9
  SPACING_16 = styledVars.SPACING_16,
11
10
  SPACING_24 = styledVars.SPACING_24,
12
11
  FONT_SIZE_S = styledVars.FONT_SIZE_S;
13
- export var StyledTable = styled(Table)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.cap-table-v2 {\n .ant-table {\n border: 1px solid ", ";\n }\n }\n\n &.show-loader {\n .ant-table-body > table > tbody::after {\n content: '", "';\n display: flex;\n justify-content: center;\n position: absolute;\n width: 100%;\n align-items: center;\n height: 60px;\n text-align: center;\n font-size: 16px;\n color: gray;\n border-top: 1px solid ", ";\n }\n }\n"])), CAP_G07, function (props) {
12
+ export var StyledTable = styled(Table).withConfig({
13
+ displayName: "StyledTable",
14
+ componentId: "sc-1ldu1k4-0"
15
+ })(["&.cap-table-v2{.ant-table{border:1px solid ", ";}}&.show-loader{.ant-table-body > table > tbody::after{content:'", "';display:flex;justify-content:center;position:absolute;width:100%;align-items:center;height:60px;text-align:center;font-size:16px;color:gray;border-top:1px solid ", ";}}"], CAP_G07, function (props) {
14
16
  return props.loadMoreData;
15
17
  }, CAP_G07);
16
- export default css(["background-color:red;.ant-table{border:10px solid ", ";.ant-table-thead > tr > th{color:", ";font-size:", ";line-height:", ";background-color:", ";text-align:left;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:", " ", ";}.ant-table-tbody > tr > td{border-bottom:1px solid ", ";}.ant-table-tbody > tr:last-child > td{border-bottom:none;}.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{background-color:", ";}.ant-table-thead > tr > th .ant-table-column-sorter-up,.ant-table-thead > tr > th .ant-table-column-sorter-down{&.active{color:", ";}&:not(.active){color:", ";}}.ant-table-thead{.table-children{padding:6px ", " 16px;position:relative;}.table-parent{padding-bottom:0;padding-left:", ";}.table-children.show-separator:not(:last-child)::after{content:'';height:8px;width:1px;right:0;top:30%;background-color:", ";position:absolute;}}.ant-table-thead > tr > th .ant-table-column-sorter{vertical-align:unset;}.ant-table-body table{table-layout:fixed;width:100%;}}&.no-pagination-loader{.ant-table-body > table > tbody::after{content:'';height:unset;display:none;}}&.hide-hover{.ant-table{.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{background:none;}}}a{color:", ";}"], CAP_G07, CAP_G01, FONT_SIZE_S, SPACING_16, CAP_G10, SPACING_16, SPACING_24, CAP_G07, CAP_G09, CAP_G01, CAP_G06, SPACING_24, SPACING_24, CAP_G07, CAP_G01);
18
+ export default css([".ant-table{border:1px solid ", ";.ant-table-thead > tr > th{color:", ";font-size:", ";line-height:", ";background-color:", ";text-align:left;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:", " ", ";}.ant-table-tbody > tr > td{border-bottom:1px solid ", ";}.ant-table-tbody > tr:last-child > td{border-bottom:none;}.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{background-color:", ";}.ant-table-thead > tr > th .ant-table-column-sorter-up,.ant-table-thead > tr > th .ant-table-column-sorter-down{&.active{color:", ";}&:not(.active){color:", ";}}.ant-table-thead{.table-children{padding:6px ", " 16px;position:relative;}.table-parent{padding-bottom:0;padding-left:", ";}.table-children.show-separator:not(:last-child)::after{content:'';height:8px;width:1px;right:0;top:30%;background-color:", ";position:absolute;}}.ant-table-thead > tr > th .ant-table-column-sorter{vertical-align:unset;}.ant-table-body table{table-layout:fixed;width:100%;}}&.no-pagination-loader{.ant-table-body > table > tbody::after{content:'';height:unset;display:none;}}&.hide-hover{.ant-table{.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td,.ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{background:none;}}}a{color:", ";}"], CAP_G07, CAP_G01, FONT_SIZE_S, SPACING_16, CAP_G10, SPACING_16, SPACING_24, CAP_G07, CAP_G09, CAP_G01, CAP_G06, SPACING_24, SPACING_24, CAP_G07, CAP_G01);