@pingux/astro 2.129.0-alpha.5 → 2.129.0
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.
- package/lib/cjs/components/Callout/Callout.js +16 -14
- package/lib/cjs/components/Callout/Callout.stories.d.ts +0 -9
- package/lib/cjs/components/Callout/Callout.stories.js +1 -24
- package/lib/cjs/components/Callout/Callout.styles.d.ts +22 -14
- package/lib/cjs/components/Callout/Callout.styles.js +23 -19
- package/lib/cjs/components/Card/Card.styles.d.ts +0 -11
- package/lib/cjs/components/Card/Card.styles.js +1 -6
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/cjs/components/Table/Table.stories.js +5 -4
- package/lib/cjs/components/Table/Table.styles.d.ts +3 -5
- package/lib/cjs/components/Table/Table.styles.js +6 -8
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +41 -3
- package/lib/cjs/index.d.ts +2 -3
- package/lib/cjs/index.js +20 -74
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +0 -48
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +0 -24
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +4 -4
- package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.d.ts +4 -4
- package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -2
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -3
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1 -179
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +1 -14
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +2 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -164
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -7
- package/lib/cjs/styles/variants/variants.js +2 -5
- package/lib/cjs/types/callout.d.ts +0 -2
- package/lib/components/Callout/Callout.js +16 -14
- package/lib/components/Callout/Callout.stories.js +0 -22
- package/lib/components/Callout/Callout.styles.js +24 -19
- package/lib/components/Card/Card.styles.js +1 -6
- package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/components/Table/Table.stories.js +6 -5
- package/lib/components/Table/Table.styles.js +6 -8
- package/lib/index.js +2 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +0 -24
- package/lib/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
- package/lib/styles/themes/next-gen/colors/colors.js +1 -2
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -3
- package/lib/styles/themes/next-gen/variants/cards.js +2 -7
- package/lib/styles/themes/next-gen/variants/variants.js +1 -7
- package/lib/styles/variants/variants.js +2 -5
- package/package.json +1 -1
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.d.ts +0 -2
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.js +0 -33
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.js +0 -22
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.d.ts +0 -6
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/TableBase.d.ts +0 -9
- package/lib/cjs/components/TableBase/TableBase.js +0 -238
- package/lib/cjs/components/TableBase/TableBase.mdx +0 -30
- package/lib/cjs/components/TableBase/TableBase.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/TableBase.stories.js +0 -111
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +0 -76
- package/lib/cjs/components/TableBase/TableBase.styles.js +0 -80
- package/lib/cjs/components/TableBase/TableBase.test.d.ts +0 -1
- package/lib/cjs/components/TableBase/TableBase.test.js +0 -122
- package/lib/cjs/components/TableBase/index.d.ts +0 -1
- package/lib/cjs/components/TableBase/index.js +0 -14
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +0 -3
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +0 -67
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.d.ts +0 -27
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +0 -35
- package/lib/cjs/styles/themes/next-gen/variants/callout.d.ts +0 -34
- package/lib/cjs/styles/themes/next-gen/variants/callout.js +0 -45
- package/lib/cjs/styles/themes/next-gen/variants/table.d.ts +0 -45
- package/lib/cjs/styles/themes/next-gen/variants/table.js +0 -65
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +0 -86
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +0 -99
- package/lib/cjs/types/cell.d.ts +0 -12
- package/lib/cjs/types/cell.js +0 -6
- package/lib/cjs/types/tableBase.d.ts +0 -45
- package/lib/cjs/types/tableBase.js +0 -6
- package/lib/cjs/utils/devUtils/constants/items.d.ts +0 -10
- package/lib/cjs/utils/devUtils/constants/items.js +0 -87
- package/lib/components/Callout/stories/CalloutNextGenComponent.js +0 -24
- package/lib/components/Callout/stories/NextGenCallout.chromatic.stories.js +0 -12
- package/lib/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +0 -12
- package/lib/components/TableBase/TableBase.js +0 -221
- package/lib/components/TableBase/TableBase.mdx +0 -30
- package/lib/components/TableBase/TableBase.stories.js +0 -100
- package/lib/components/TableBase/TableBase.styles.js +0 -72
- package/lib/components/TableBase/TableBase.test.js +0 -119
- package/lib/components/TableBase/index.js +0 -1
- package/lib/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +0 -12
- package/lib/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +0 -12
- package/lib/components/TableBase/stories/NextGenTableBase.js +0 -58
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/callout.js +0 -27
- package/lib/styles/themes/next-gen/variants/callout.js +0 -36
- package/lib/styles/themes/next-gen/variants/table.js +0 -57
- package/lib/styles/themes/next-gen/variants/tableBase.js +0 -91
- package/lib/types/cell.js +0 -1
- package/lib/types/tableBase.js +0 -1
- package/lib/utils/devUtils/constants/items.js +0 -79
@@ -1,80 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
4
|
-
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
5
|
-
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
6
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
7
|
-
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
8
|
-
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
9
|
-
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
10
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
11
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
12
|
-
_Object$defineProperty(exports, "__esModule", {
|
13
|
-
value: true
|
14
|
-
});
|
15
|
-
exports["default"] = void 0;
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
-
var _Text = require("../Text/Text.styles");
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
20
|
-
var defaultFocus = {
|
21
|
-
outline: '1px',
|
22
|
-
outlineStyle: 'solid',
|
23
|
-
outlineColor: 'focus',
|
24
|
-
outlineOffset: '-1px'
|
25
|
-
};
|
26
|
-
var container = {
|
27
|
-
width: '100%',
|
28
|
-
borderSpacing: '0',
|
29
|
-
borderCollapse: 'collapse'
|
30
|
-
};
|
31
|
-
var caption = {
|
32
|
-
fontFamily: 'standard',
|
33
|
-
fontSize: 'lg',
|
34
|
-
fontWeight: '2',
|
35
|
-
p: 'sm',
|
36
|
-
textAlign: 'left'
|
37
|
-
};
|
38
|
-
var thead = {};
|
39
|
-
var head = _objectSpread(_objectSpread({}, _Text.text.label), {}, {
|
40
|
-
fontWeight: 500,
|
41
|
-
textAlign: 'left',
|
42
|
-
p: 'sm',
|
43
|
-
cursor: 'default',
|
44
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
45
|
-
});
|
46
|
-
var tbody = {
|
47
|
-
borderTop: '1px solid',
|
48
|
-
borderTopColor: 'neutral.40',
|
49
|
-
borderBottom: '1px solid',
|
50
|
-
borderBottomColor: 'neutral.80'
|
51
|
-
};
|
52
|
-
var row = {
|
53
|
-
'&:nth-of-type(odd) ': {
|
54
|
-
bg: 'neutral.95'
|
55
|
-
},
|
56
|
-
'&.is-focused': _objectSpread({}, defaultFocus),
|
57
|
-
'&.is-hovered': {
|
58
|
-
// This is the hover state for the row
|
59
|
-
},
|
60
|
-
'&.is-selected': {
|
61
|
-
// This is the selected state for the row
|
62
|
-
}
|
63
|
-
};
|
64
|
-
var data = _objectSpread(_objectSpread({}, _Text.text.tableData), {}, {
|
65
|
-
p: 'sm',
|
66
|
-
'&.no-wrap': {
|
67
|
-
whiteSpace: 'nowrap'
|
68
|
-
},
|
69
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
70
|
-
});
|
71
|
-
var _default = {
|
72
|
-
thead: thead,
|
73
|
-
tbody: tbody,
|
74
|
-
caption: caption,
|
75
|
-
container: container,
|
76
|
-
data: data,
|
77
|
-
head: head,
|
78
|
-
row: row
|
79
|
-
};
|
80
|
-
exports["default"] = _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,122 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
-
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
5
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
7
|
-
var _react2 = require("@testing-library/react");
|
8
|
-
var _index = require("../../index");
|
9
|
-
var _universalComponentTest = require("../../utils/testUtils/universalComponentTest");
|
10
|
-
var _TableBase = _interopRequireDefault(require("./TableBase"));
|
11
|
-
var _react3 = require("@emotion/react");
|
12
|
-
var testId = 'test-table';
|
13
|
-
var defaultProps = {
|
14
|
-
'aria-label': 'table',
|
15
|
-
'data-testid': testId,
|
16
|
-
caption: 'Populations of Countries'
|
17
|
-
};
|
18
|
-
var headers = [{
|
19
|
-
key: 'country',
|
20
|
-
name: 'Country'
|
21
|
-
}, {
|
22
|
-
key: 'population',
|
23
|
-
name: 'Population'
|
24
|
-
}, {
|
25
|
-
key: 'continent',
|
26
|
-
name: 'Continent'
|
27
|
-
}];
|
28
|
-
var objects = [{
|
29
|
-
key: '1',
|
30
|
-
country: 'USA',
|
31
|
-
population: '320,000,000',
|
32
|
-
continent: 'South America',
|
33
|
-
cellProps: {
|
34
|
-
noWrap: true
|
35
|
-
}
|
36
|
-
}, {
|
37
|
-
key: '2',
|
38
|
-
country: 'Canada',
|
39
|
-
population: '37,000,000',
|
40
|
-
continent: 'North America'
|
41
|
-
}, {
|
42
|
-
key: '3',
|
43
|
-
country: 'China',
|
44
|
-
population: '1,398,000,000',
|
45
|
-
continent: 'Asia'
|
46
|
-
}, {
|
47
|
-
key: '4',
|
48
|
-
country: 'France',
|
49
|
-
population: '67,000,000',
|
50
|
-
continent: 'Europe'
|
51
|
-
}];
|
52
|
-
var getComponent = function getComponent() {
|
53
|
-
return (0, _react2.render)((0, _react3.jsx)(_TableBase["default"], defaultProps, (0, _react3.jsx)(_index.THead, {
|
54
|
-
columns: headers
|
55
|
-
}, function (head) {
|
56
|
-
return (0, _react3.jsx)(_index.Column, {
|
57
|
-
key: head.key
|
58
|
-
}, head.name);
|
59
|
-
}), (0, _react3.jsx)(_index.TBody, {
|
60
|
-
items: objects
|
61
|
-
}, function (row) {
|
62
|
-
return (0, _react3.jsx)(_index.Row, {
|
63
|
-
key: row.key
|
64
|
-
}, function (columnKey) {
|
65
|
-
return (0, _react3.jsx)(_index.Cell, row.cellProps || {}, row[columnKey]);
|
66
|
-
});
|
67
|
-
})));
|
68
|
-
};
|
69
|
-
|
70
|
-
// Needs to be added to each components test file
|
71
|
-
(0, _universalComponentTest.universalComponentTests)({
|
72
|
-
renderComponent: function renderComponent(props) {
|
73
|
-
return (0, _react3.jsx)(_TableBase["default"], (0, _extends2["default"])({}, defaultProps, props), (0, _react3.jsx)(_index.THead, {
|
74
|
-
columns: headers
|
75
|
-
}, function (head) {
|
76
|
-
return (0, _react3.jsx)(_index.Column, {
|
77
|
-
key: head.key
|
78
|
-
}, head.name);
|
79
|
-
}), (0, _react3.jsx)(_index.TBody, {
|
80
|
-
items: objects
|
81
|
-
}, function (row) {
|
82
|
-
return (0, _react3.jsx)(_index.Row, {
|
83
|
-
key: row.key
|
84
|
-
}, function (columnKey) {
|
85
|
-
return (0, _react3.jsx)(_index.Cell, null, row[columnKey]);
|
86
|
-
});
|
87
|
-
}));
|
88
|
-
}
|
89
|
-
});
|
90
|
-
test('default table', function () {
|
91
|
-
getComponent();
|
92
|
-
var table = _react2.screen.getByTestId(testId);
|
93
|
-
expect(table).toBeInTheDocument();
|
94
|
-
});
|
95
|
-
test('renders caption', function () {
|
96
|
-
getComponent();
|
97
|
-
var caption = _react2.screen.getByText(defaultProps.caption);
|
98
|
-
expect(caption).toBeInTheDocument();
|
99
|
-
});
|
100
|
-
test('renders table headers', function () {
|
101
|
-
getComponent();
|
102
|
-
var headerCells = _react2.screen.getAllByRole('columnheader');
|
103
|
-
expect(headerCells).toHaveLength(headers.length);
|
104
|
-
(0, _forEach["default"])(headers).call(headers, function (header) {
|
105
|
-
expect(_react2.screen.getByText(header.name)).toBeInTheDocument();
|
106
|
-
});
|
107
|
-
});
|
108
|
-
test('renders table rows', function () {
|
109
|
-
getComponent();
|
110
|
-
var rows = _react2.screen.getAllByRole('row');
|
111
|
-
expect(rows).toHaveLength(objects.length + 1);
|
112
|
-
(0, _forEach["default"])(objects).call(objects, function (object) {
|
113
|
-
expect(_react2.screen.getByText(object.country)).toBeInTheDocument();
|
114
|
-
expect(_react2.screen.getByText(object.population)).toBeInTheDocument();
|
115
|
-
expect(_react2.screen.getByText(object.continent)).toBeInTheDocument();
|
116
|
-
});
|
117
|
-
});
|
118
|
-
test('renders cell with noWrap prop', function () {
|
119
|
-
getComponent();
|
120
|
-
var cell = _react2.screen.getByText('South America');
|
121
|
-
expect(cell).toHaveClass('no-wrap');
|
122
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './TableBase';
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
_Object$defineProperty(exports, "default", {
|
9
|
-
enumerable: true,
|
10
|
-
get: function get() {
|
11
|
-
return _TableBase["default"];
|
12
|
-
}
|
13
|
-
});
|
14
|
-
var _TableBase = _interopRequireDefault(require("./TableBase"));
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = exports.Default = void 0;
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("../../..");
|
11
|
-
var _NextGenTableBase = _interopRequireDefault(require("./NextGenTableBase"));
|
12
|
-
var _react2 = require("@emotion/react");
|
13
|
-
var _default = {
|
14
|
-
title: 'Chromatic Only Onyx Dark TableBase'
|
15
|
-
};
|
16
|
-
exports["default"] = _default;
|
17
|
-
var Default = function Default() {
|
18
|
-
return (0, _react2.jsx)(_.AstroProvider, {
|
19
|
-
themeOverrides: [_.NextGenDarkTheme]
|
20
|
-
}, (0, _react2.jsx)(_NextGenTableBase["default"], null));
|
21
|
-
};
|
22
|
-
exports.Default = Default;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = exports.Default = void 0;
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("../../..");
|
11
|
-
var _NextGenTableBase = _interopRequireDefault(require("./NextGenTableBase"));
|
12
|
-
var _react2 = require("@emotion/react");
|
13
|
-
var _default = {
|
14
|
-
title: 'Chromatic Only Onyx TableBase'
|
15
|
-
};
|
16
|
-
exports["default"] = _default;
|
17
|
-
var Default = function Default() {
|
18
|
-
return (0, _react2.jsx)(_.AstroProvider, {
|
19
|
-
themeOverrides: [_.NextGenTheme]
|
20
|
-
}, (0, _react2.jsx)(_NextGenTableBase["default"], null));
|
21
|
-
};
|
22
|
-
exports.Default = Default;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = void 0;
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("../../..");
|
11
|
-
var _react2 = require("@emotion/react");
|
12
|
-
var NextGenTableBase = function NextGenTableBase() {
|
13
|
-
var headers = [{
|
14
|
-
key: 'type',
|
15
|
-
name: 'Type'
|
16
|
-
}, {
|
17
|
-
key: 'date',
|
18
|
-
name: 'Date'
|
19
|
-
}, {
|
20
|
-
key: 'additional_grant',
|
21
|
-
name: 'Additional Grant'
|
22
|
-
}, {
|
23
|
-
key: 'total_grant',
|
24
|
-
name: 'Total Grant'
|
25
|
-
}];
|
26
|
-
var objects = [{
|
27
|
-
id: 1,
|
28
|
-
type: 'Lorem ipsum',
|
29
|
-
date: '2020-06-12',
|
30
|
-
additional_grant: '+25,000',
|
31
|
-
total_grant: '25,000'
|
32
|
-
}, {
|
33
|
-
id: 2,
|
34
|
-
type: 'Lorem ipsum',
|
35
|
-
date: '2020-10-01',
|
36
|
-
additional_grant: '+25,000',
|
37
|
-
total_grant: '50,000'
|
38
|
-
}, {
|
39
|
-
id: 3,
|
40
|
-
type: 'Lorem ipsum',
|
41
|
-
date: '2021-01-01',
|
42
|
-
additional_grant: '+25,000',
|
43
|
-
total_grant: '75,000'
|
44
|
-
}];
|
45
|
-
return (0, _react2.jsx)(_.Card, {
|
46
|
-
variant: "cards.tableWrapper"
|
47
|
-
}, (0, _react2.jsx)(_.TableBase, {
|
48
|
-
caption: "Lorem ipsum",
|
49
|
-
"aria-label": "table"
|
50
|
-
}, (0, _react2.jsx)(_.THead, {
|
51
|
-
columns: headers
|
52
|
-
}, function (column) {
|
53
|
-
return (0, _react2.jsx)(_.Column, {
|
54
|
-
key: column.key
|
55
|
-
}, column.name);
|
56
|
-
}), (0, _react2.jsx)(_.TBody, {
|
57
|
-
items: objects
|
58
|
-
}, function (item) {
|
59
|
-
return (0, _react2.jsx)(_.Row, {
|
60
|
-
key: item.id
|
61
|
-
}, function (columnKey) {
|
62
|
-
return (0, _react2.jsx)(_.Cell, null, item[columnKey]);
|
63
|
-
});
|
64
|
-
})));
|
65
|
-
};
|
66
|
-
var _default = NextGenTableBase;
|
67
|
-
exports["default"] = _default;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
base: {
|
3
|
-
color: string;
|
4
|
-
'> span': {
|
5
|
-
color: string;
|
6
|
-
};
|
7
|
-
'& > svg > path': {
|
8
|
-
fill: string;
|
9
|
-
};
|
10
|
-
'&.is-success, > .is-success': {
|
11
|
-
'& > svg > path': {
|
12
|
-
fill: string;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
'&.is-warning, > .is-warning': {
|
16
|
-
'& > svg > path': {
|
17
|
-
fill: string;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
'&.is-error, > .is-error': {
|
21
|
-
'& > svg > path': {
|
22
|
-
fill: string;
|
23
|
-
};
|
24
|
-
};
|
25
|
-
};
|
26
|
-
};
|
27
|
-
export default _default;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
_Object$defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports["default"] = void 0;
|
8
|
-
var base = {
|
9
|
-
color: 'text.secondary',
|
10
|
-
'> span': {
|
11
|
-
color: 'text.secondary'
|
12
|
-
},
|
13
|
-
'& > svg > path': {
|
14
|
-
fill: 'text.secondary'
|
15
|
-
},
|
16
|
-
'&.is-success, > .is-success': {
|
17
|
-
'& > svg > path': {
|
18
|
-
fill: 'text.secondary'
|
19
|
-
}
|
20
|
-
},
|
21
|
-
'&.is-warning, > .is-warning': {
|
22
|
-
'& > svg > path': {
|
23
|
-
fill: 'text.secondary'
|
24
|
-
}
|
25
|
-
},
|
26
|
-
'&.is-error, > .is-error': {
|
27
|
-
'& > svg > path': {
|
28
|
-
fill: 'text.secondary'
|
29
|
-
}
|
30
|
-
}
|
31
|
-
};
|
32
|
-
var _default = {
|
33
|
-
base: base
|
34
|
-
};
|
35
|
-
exports["default"] = _default;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
base: {
|
3
|
-
width: string;
|
4
|
-
backgroundColor: string;
|
5
|
-
lineHeight: string;
|
6
|
-
p: string;
|
7
|
-
border: string;
|
8
|
-
borderLeft: string;
|
9
|
-
borderLeftColor: string;
|
10
|
-
borderRadius: string;
|
11
|
-
alignItems: string;
|
12
|
-
color: string;
|
13
|
-
'&.is-success, > .is-success': {
|
14
|
-
borderColor: string;
|
15
|
-
borderLeftColor: string;
|
16
|
-
};
|
17
|
-
'&.is-warning, > .is-warning': {
|
18
|
-
borderColor: string;
|
19
|
-
borderLeftColor: string;
|
20
|
-
};
|
21
|
-
'&.is-error, > .is-error': {
|
22
|
-
borderColor: string;
|
23
|
-
borderLeftColor: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
icon: {
|
27
|
-
ml: string;
|
28
|
-
mr: string;
|
29
|
-
minWidth: string;
|
30
|
-
width: string;
|
31
|
-
height: string;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
export default _default;
|
@@ -1,45 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = void 0;
|
9
|
-
var _tShirtSizes = _interopRequireDefault(require("../customProperties/tShirtSizes"));
|
10
|
-
var base = {
|
11
|
-
width: '100%',
|
12
|
-
backgroundColor: 'background.secondary',
|
13
|
-
lineHeight: 'md',
|
14
|
-
p: 'md',
|
15
|
-
border: 'none',
|
16
|
-
borderLeft: '5px solid',
|
17
|
-
borderLeftColor: 'active',
|
18
|
-
borderRadius: '.25rem',
|
19
|
-
alignItems: 'flex-start',
|
20
|
-
color: 'text.primary',
|
21
|
-
'&.is-success, > .is-success': {
|
22
|
-
borderColor: 'unset',
|
23
|
-
borderLeftColor: 'success.bright'
|
24
|
-
},
|
25
|
-
'&.is-warning, > .is-warning': {
|
26
|
-
borderColor: 'unset',
|
27
|
-
borderLeftColor: 'warning.bright'
|
28
|
-
},
|
29
|
-
'&.is-error, > .is-error': {
|
30
|
-
borderColor: 'unset',
|
31
|
-
borderLeftColor: 'critical.bright'
|
32
|
-
}
|
33
|
-
};
|
34
|
-
var icon = {
|
35
|
-
ml: '0',
|
36
|
-
mr: 'md',
|
37
|
-
minWidth: "".concat(_tShirtSizes["default"].sm, " !important"),
|
38
|
-
width: "".concat(_tShirtSizes["default"].sm, " !important"),
|
39
|
-
height: "".concat(_tShirtSizes["default"].sm, " !important")
|
40
|
-
};
|
41
|
-
var _default = {
|
42
|
-
base: base,
|
43
|
-
icon: icon
|
44
|
-
};
|
45
|
-
exports["default"] = _default;
|
@@ -1,45 +0,0 @@
|
|
1
|
-
export declare const table: {
|
2
|
-
container: {
|
3
|
-
overflow: string;
|
4
|
-
};
|
5
|
-
caption: {
|
6
|
-
px: string;
|
7
|
-
color: string;
|
8
|
-
borderBottom: string;
|
9
|
-
borderBottomColor: string;
|
10
|
-
};
|
11
|
-
head: {
|
12
|
-
px: string;
|
13
|
-
py: string;
|
14
|
-
fontSize: string;
|
15
|
-
fontWeight: string;
|
16
|
-
color: string;
|
17
|
-
lineHeight: string;
|
18
|
-
};
|
19
|
-
body: {
|
20
|
-
borderTopColor: string;
|
21
|
-
borderBottom: string;
|
22
|
-
backgroundColor: string;
|
23
|
-
borderBottomLeftRadius: string;
|
24
|
-
borderBottomRightRadius: string;
|
25
|
-
'&& > tr:not(:last-child)': {
|
26
|
-
borderBottom: string;
|
27
|
-
borderBottomColor: string;
|
28
|
-
};
|
29
|
-
'&& > tr:nth-of-type(odd) ': {
|
30
|
-
backgroundColor: string;
|
31
|
-
};
|
32
|
-
'&& > tr:last-child': {
|
33
|
-
borderBottomLeftRadius: string;
|
34
|
-
borderBottomRightRadius: string;
|
35
|
-
};
|
36
|
-
};
|
37
|
-
data: {
|
38
|
-
py: string;
|
39
|
-
fontWeight: string;
|
40
|
-
px: string;
|
41
|
-
fontSize: string;
|
42
|
-
color: string;
|
43
|
-
lineHeight: string;
|
44
|
-
};
|
45
|
-
};
|
@@ -1,65 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
4
|
-
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
5
|
-
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
6
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
7
|
-
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
8
|
-
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
9
|
-
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
10
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
11
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
12
|
-
_Object$defineProperty(exports, "__esModule", {
|
13
|
-
value: true
|
14
|
-
});
|
15
|
-
exports.table = void 0;
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
19
|
-
var container = {
|
20
|
-
overflow: 'hidden'
|
21
|
-
};
|
22
|
-
var caption = {
|
23
|
-
px: 'lg',
|
24
|
-
color: 'text.primary',
|
25
|
-
borderBottom: '1px solid',
|
26
|
-
borderBottomColor: 'border.base'
|
27
|
-
};
|
28
|
-
var head = {
|
29
|
-
px: 'lg',
|
30
|
-
py: 'sm',
|
31
|
-
fontSize: 'md',
|
32
|
-
fontWeight: '2',
|
33
|
-
color: 'text.primary',
|
34
|
-
lineHeight: 'body'
|
35
|
-
};
|
36
|
-
var body = {
|
37
|
-
borderTopColor: 'border.base',
|
38
|
-
borderBottom: 'unset',
|
39
|
-
backgroundColor: 'background.base',
|
40
|
-
borderBottomLeftRadius: '16px',
|
41
|
-
borderBottomRightRadius: '16px',
|
42
|
-
'&& > tr:not(:last-child)': {
|
43
|
-
borderBottom: '1px solid',
|
44
|
-
borderBottomColor: 'border.base'
|
45
|
-
},
|
46
|
-
'&& > tr:nth-of-type(odd) ': {
|
47
|
-
backgroundColor: 'background.base'
|
48
|
-
},
|
49
|
-
'&& > tr:last-child': {
|
50
|
-
borderBottomLeftRadius: '16px',
|
51
|
-
borderBottomRightRadius: '16px'
|
52
|
-
}
|
53
|
-
};
|
54
|
-
var data = _objectSpread(_objectSpread({}, head), {}, {
|
55
|
-
py: 'md',
|
56
|
-
fontWeight: '1'
|
57
|
-
});
|
58
|
-
var table = {
|
59
|
-
container: container,
|
60
|
-
caption: caption,
|
61
|
-
head: head,
|
62
|
-
body: body,
|
63
|
-
data: data
|
64
|
-
};
|
65
|
-
exports.table = table;
|