@pingux/astro 2.129.0-alpha.4 → 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/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/index.d.ts +2 -3
- package/lib/cjs/index.js +20 -74
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +0 -22
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +0 -22
- 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.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1 -146
- 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 -131
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -5
- package/lib/cjs/styles/variants/variants.js +2 -5
- 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 -22
- package/lib/styles/themes/next-gen/colors/colors.js +1 -2
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/cards.js +2 -7
- package/lib/styles/themes/next-gen/variants/variants.js +1 -5
- package/lib/styles/variants/variants.js +2 -5
- package/package.json +1 -1
- 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/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/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/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,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,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;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
export declare const tableBase: {
|
2
|
-
caption: {
|
3
|
-
backgroundColor: string;
|
4
|
-
px: string;
|
5
|
-
color: string;
|
6
|
-
borderBottom: string;
|
7
|
-
borderBottomColor: string;
|
8
|
-
borderTopLeftRadius: string;
|
9
|
-
borderTopRightRadius: string;
|
10
|
-
};
|
11
|
-
row: {
|
12
|
-
borderBottom: string;
|
13
|
-
borderBottomColor: string;
|
14
|
-
'&.is-focused': {
|
15
|
-
outlineOffset: string;
|
16
|
-
outline: string;
|
17
|
-
outlineColor: string;
|
18
|
-
};
|
19
|
-
'&.is-hovered': {
|
20
|
-
bg: string;
|
21
|
-
};
|
22
|
-
'&:nth-of-type(odd)': {
|
23
|
-
bg: string;
|
24
|
-
'&.is-hovered': {
|
25
|
-
bg: string;
|
26
|
-
};
|
27
|
-
};
|
28
|
-
};
|
29
|
-
thead: {
|
30
|
-
backgroundColor: string;
|
31
|
-
'&:not(.has-caption)': {
|
32
|
-
'& > tr:first-child': {
|
33
|
-
borderTopLeftRadius: string;
|
34
|
-
borderTopRightRadius: string;
|
35
|
-
'& > th:first-of-type': {
|
36
|
-
borderTopLeftRadius: string;
|
37
|
-
};
|
38
|
-
'& > th:last-of-type': {
|
39
|
-
borderTopRightRadius: string;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
};
|
43
|
-
};
|
44
|
-
head: {
|
45
|
-
px: string;
|
46
|
-
py: string;
|
47
|
-
fontSize: string;
|
48
|
-
fontWeight: string;
|
49
|
-
color: string;
|
50
|
-
lineHeight: string;
|
51
|
-
'&.is-focused': {
|
52
|
-
outlineOffset: string;
|
53
|
-
outline: string;
|
54
|
-
outlineColor: string;
|
55
|
-
};
|
56
|
-
};
|
57
|
-
tbody: {
|
58
|
-
borderTopColor: string;
|
59
|
-
borderBottom: string;
|
60
|
-
backgroundColor: string;
|
61
|
-
'& > tr:last-child': {
|
62
|
-
borderBottom: string;
|
63
|
-
borderBottomLeftRadius: string;
|
64
|
-
borderBottomRightRadius: string;
|
65
|
-
'& > td:first-of-type': {
|
66
|
-
borderBottomLeftRadius: string;
|
67
|
-
};
|
68
|
-
'& > td:last-of-type': {
|
69
|
-
borderBottomRightRadius: string;
|
70
|
-
};
|
71
|
-
};
|
72
|
-
};
|
73
|
-
data: {
|
74
|
-
py: string;
|
75
|
-
fontWeight: string;
|
76
|
-
px: string;
|
77
|
-
fontSize: string;
|
78
|
-
color: string;
|
79
|
-
lineHeight: string;
|
80
|
-
'&.is-focused': {
|
81
|
-
outlineOffset: string;
|
82
|
-
outline: string;
|
83
|
-
outlineColor: string;
|
84
|
-
};
|
85
|
-
};
|
86
|
-
};
|
@@ -1,99 +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.tableBase = void 0;
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
-
var _button = require("./button");
|
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 borderRadius = '16px';
|
21
|
-
var defaultFocus = _objectSpread(_objectSpread({}, _button.defaultFocus), {}, {
|
22
|
-
outlineOffset: '-2px'
|
23
|
-
});
|
24
|
-
var caption = {
|
25
|
-
backgroundColor: 'background.base',
|
26
|
-
px: 'lg',
|
27
|
-
color: 'text.primary',
|
28
|
-
borderBottom: '1px solid',
|
29
|
-
borderBottomColor: 'border.base',
|
30
|
-
borderTopLeftRadius: borderRadius,
|
31
|
-
borderTopRightRadius: borderRadius
|
32
|
-
};
|
33
|
-
var row = {
|
34
|
-
borderBottom: '1px solid',
|
35
|
-
borderBottomColor: 'border.base',
|
36
|
-
'&.is-focused': _objectSpread({}, defaultFocus),
|
37
|
-
'&.is-hovered': {
|
38
|
-
bg: 'background.hover'
|
39
|
-
},
|
40
|
-
'&:nth-of-type(odd)': {
|
41
|
-
bg: 'background.base',
|
42
|
-
'&.is-hovered': {
|
43
|
-
bg: 'background.hover'
|
44
|
-
}
|
45
|
-
}
|
46
|
-
};
|
47
|
-
var thead = {
|
48
|
-
backgroundColor: 'background.base',
|
49
|
-
'&:not(.has-caption)': {
|
50
|
-
'& > tr:first-child': {
|
51
|
-
borderTopLeftRadius: borderRadius,
|
52
|
-
borderTopRightRadius: borderRadius,
|
53
|
-
'& > th:first-of-type': {
|
54
|
-
borderTopLeftRadius: borderRadius
|
55
|
-
},
|
56
|
-
'& > th:last-of-type': {
|
57
|
-
borderTopRightRadius: borderRadius
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
};
|
62
|
-
var head = {
|
63
|
-
px: 'lg',
|
64
|
-
py: 'sm',
|
65
|
-
fontSize: 'md',
|
66
|
-
fontWeight: '2',
|
67
|
-
color: 'text.primary',
|
68
|
-
lineHeight: 'body',
|
69
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
70
|
-
};
|
71
|
-
var tbody = {
|
72
|
-
borderTopColor: 'border.base',
|
73
|
-
borderBottom: 'unset',
|
74
|
-
backgroundColor: 'background.base',
|
75
|
-
'& > tr:last-child': {
|
76
|
-
borderBottom: 'unset',
|
77
|
-
borderBottomLeftRadius: borderRadius,
|
78
|
-
borderBottomRightRadius: borderRadius,
|
79
|
-
'& > td:first-of-type': {
|
80
|
-
borderBottomLeftRadius: borderRadius
|
81
|
-
},
|
82
|
-
'& > td:last-of-type': {
|
83
|
-
borderBottomRightRadius: borderRadius
|
84
|
-
}
|
85
|
-
}
|
86
|
-
};
|
87
|
-
var data = _objectSpread(_objectSpread({}, head), {}, {
|
88
|
-
py: 'md',
|
89
|
-
fontWeight: '1'
|
90
|
-
});
|
91
|
-
var tableBase = {
|
92
|
-
caption: caption,
|
93
|
-
row: row,
|
94
|
-
thead: thead,
|
95
|
-
head: head,
|
96
|
-
tbody: tbody,
|
97
|
-
data: data
|
98
|
-
};
|
99
|
-
exports.tableBase = tableBase;
|
package/lib/cjs/types/cell.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { StyleProps } from './shared';
|
3
|
-
declare module '@react-types/table' {
|
4
|
-
interface CellProps extends StyleProps {
|
5
|
-
/** Whether the cell should not wrap its contents. */
|
6
|
-
noWrap?: boolean;
|
7
|
-
/** The contents of the cell. */
|
8
|
-
children: React.ReactNode;
|
9
|
-
/** A string representation of the cell's contents, used for features like typeahead. */
|
10
|
-
textValue?: string;
|
11
|
-
}
|
12
|
-
}
|
package/lib/cjs/types/cell.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
import { Key, ReactNode } from 'react';
|
2
|
-
import type { TableState } from '@react-stately/table';
|
3
|
-
import type { GridNode } from '@react-types/grid';
|
4
|
-
import type { Node } from '@react-types/shared';
|
5
|
-
import { TestingAttributes } from './shared/test';
|
6
|
-
import { BoxProps } from './box';
|
7
|
-
import { DOMAttributes } from './shared';
|
8
|
-
export interface TableBaseProp extends BoxProps, TestingAttributes, DOMAttributes {
|
9
|
-
}
|
10
|
-
export interface TableBaseProps extends TableBaseProp {
|
11
|
-
'aria-label'?: string;
|
12
|
-
selectedKeys?: Key[];
|
13
|
-
defaultSelectedKeys?: Key[];
|
14
|
-
selectionMode?: 'single' | 'none';
|
15
|
-
'data-testid'?: string;
|
16
|
-
caption?: ReactNode | string;
|
17
|
-
tableBodyProps?: Record<string, unknown>;
|
18
|
-
}
|
19
|
-
export interface TableRowGroupProps extends TableBaseProp {
|
20
|
-
type: 'thead' | 'tbody' | 'tfoot';
|
21
|
-
children: ReactNode;
|
22
|
-
hasCaption?: boolean;
|
23
|
-
}
|
24
|
-
export interface TableHeaderRowProps extends TableBaseProp {
|
25
|
-
item: Node<object>;
|
26
|
-
state: TableState<object>;
|
27
|
-
children: ReactNode;
|
28
|
-
className?: string;
|
29
|
-
}
|
30
|
-
export interface TableColumnHeaderProps extends TableBaseProp {
|
31
|
-
column: GridNode<object>;
|
32
|
-
state: TableState<object>;
|
33
|
-
className?: string;
|
34
|
-
}
|
35
|
-
export interface TableRowProps extends TableBaseProp {
|
36
|
-
item: Node<object>;
|
37
|
-
state: TableState<object>;
|
38
|
-
children: ReactNode;
|
39
|
-
className?: string;
|
40
|
-
}
|
41
|
-
export interface TableCellProps extends TableBaseProp {
|
42
|
-
cell: GridNode<object>;
|
43
|
-
state: TableState<object>;
|
44
|
-
className?: string;
|
45
|
-
}
|
@@ -1,87 +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.items = void 0;
|
8
|
-
var items = [{
|
9
|
-
id: '1',
|
10
|
-
email: 'dburkitt5@columbia.edu',
|
11
|
-
firstName: 'Nicola',
|
12
|
-
lastName: 'Burkitt',
|
13
|
-
status: 'Failed'
|
14
|
-
}, {
|
15
|
-
id: '2',
|
16
|
-
email: 'idixie2@elegantthemes.com',
|
17
|
-
firstName: 'Cacilia',
|
18
|
-
lastName: 'Dixie',
|
19
|
-
status: 'Active'
|
20
|
-
}, {
|
21
|
-
id: '3',
|
22
|
-
email: 'dfowler0@rambler.ru',
|
23
|
-
firstName: 'Stavro',
|
24
|
-
lastName: 'Fowler',
|
25
|
-
status: 'Active'
|
26
|
-
}, {
|
27
|
-
id: '4',
|
28
|
-
email: 'jgolde8@jimdo.com',
|
29
|
-
firstName: 'Celisse',
|
30
|
-
lastName: 'Golde',
|
31
|
-
status: 'Active'
|
32
|
-
}, {
|
33
|
-
id: '5',
|
34
|
-
email: 'shearst9@answers.com',
|
35
|
-
firstName: 'Jeth',
|
36
|
-
lastName: 'Hearst',
|
37
|
-
status: 'Pending'
|
38
|
-
}, {
|
39
|
-
id: '6',
|
40
|
-
email: 'ajinaa@mapquest.com',
|
41
|
-
firstName: 'Kaycee',
|
42
|
-
lastName: 'Jina',
|
43
|
-
status: 'Active'
|
44
|
-
}, {
|
45
|
-
id: '7',
|
46
|
-
email: 'vmalster4@biblegateway.com',
|
47
|
-
firstName: 'Lorry',
|
48
|
-
lastName: 'Malster',
|
49
|
-
status: 'Pending'
|
50
|
-
}, {
|
51
|
-
id: '8',
|
52
|
-
email: 'yphipp6@yellowpages.com',
|
53
|
-
firstName: 'Stanley',
|
54
|
-
lastName: 'Phipp',
|
55
|
-
status: 'Active'
|
56
|
-
}, {
|
57
|
-
id: '9',
|
58
|
-
email: 'mskilbeck3@bbc.co.uk',
|
59
|
-
firstName: 'Gradey',
|
60
|
-
lastName: 'Skilbeck',
|
61
|
-
status: 'Pending'
|
62
|
-
}, {
|
63
|
-
id: '10',
|
64
|
-
email: 'dstebbing1@msu.edu',
|
65
|
-
firstName: 'Marnia',
|
66
|
-
lastName: 'Stebbing',
|
67
|
-
status: 'Rejected'
|
68
|
-
}, {
|
69
|
-
id: '11',
|
70
|
-
email: 'lsterley7@lulu.com',
|
71
|
-
firstName: 'Joshua',
|
72
|
-
lastName: 'Sterley',
|
73
|
-
status: 'Pending'
|
74
|
-
}, {
|
75
|
-
id: '12',
|
76
|
-
email: 'luttleyb@hugedomains.com',
|
77
|
-
firstName: 'Jarrod',
|
78
|
-
lastName: 'Uttley',
|
79
|
-
status: 'Active'
|
80
|
-
}, {
|
81
|
-
id: '13',
|
82
|
-
email: 'lidelc@yelp.com',
|
83
|
-
firstName: 'Andromache',
|
84
|
-
lastName: 'Idel',
|
85
|
-
status: 'Pending'
|
86
|
-
}];
|
87
|
-
exports.items = items;
|