@pingux/astro 2.129.0-alpha.1 → 2.129.0-alpha.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.
- package/lib/cjs/components/Card/Card.styles.d.ts +11 -0
- package/lib/cjs/components/Card/Card.styles.js +6 -1
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/cjs/components/Table/Table.stories.js +4 -5
- package/lib/cjs/components/Table/Table.styles.d.ts +5 -3
- package/lib/cjs/components/Table/Table.styles.js +8 -6
- package/lib/cjs/components/TableBase/TableBase.d.ts +9 -0
- package/lib/cjs/components/TableBase/TableBase.js +238 -0
- package/lib/cjs/components/TableBase/TableBase.mdx +30 -0
- package/lib/cjs/components/TableBase/TableBase.stories.d.ts +6 -0
- package/lib/cjs/components/TableBase/TableBase.stories.js +111 -0
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +76 -0
- package/lib/cjs/components/TableBase/TableBase.styles.js +80 -0
- package/lib/cjs/components/TableBase/TableBase.test.d.ts +1 -0
- package/lib/cjs/components/TableBase/TableBase.test.js +122 -0
- package/lib/cjs/components/TableBase/index.d.ts +1 -0
- package/lib/cjs/components/TableBase/index.js +14 -0
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +6 -0
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +22 -0
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +6 -0
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +22 -0
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +3 -0
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +67 -0
- package/lib/cjs/index.d.ts +3 -2
- package/lib/cjs/index.js +74 -20
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +22 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +22 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +2 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +146 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +14 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +7 -2
- package/lib/cjs/styles/themes/next-gen/variants/table.d.ts +45 -0
- package/lib/cjs/styles/themes/next-gen/variants/table.js +65 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +86 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +99 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +131 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +5 -1
- package/lib/cjs/styles/variants/variants.js +5 -2
- package/lib/cjs/types/cell.d.ts +12 -0
- package/lib/cjs/types/cell.js +6 -0
- package/lib/cjs/types/tableBase.d.ts +45 -0
- package/lib/cjs/types/tableBase.js +6 -0
- package/lib/cjs/utils/devUtils/constants/items.d.ts +10 -0
- package/lib/cjs/utils/devUtils/constants/items.js +87 -0
- package/lib/components/Card/Card.styles.js +6 -1
- package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/components/Table/Table.stories.js +5 -6
- package/lib/components/Table/Table.styles.js +8 -6
- package/lib/components/TableBase/TableBase.js +221 -0
- package/lib/components/TableBase/TableBase.mdx +30 -0
- package/lib/components/TableBase/TableBase.stories.js +100 -0
- package/lib/components/TableBase/TableBase.styles.js +72 -0
- package/lib/components/TableBase/TableBase.test.js +119 -0
- package/lib/components/TableBase/index.js +1 -0
- package/lib/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +12 -0
- package/lib/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +12 -0
- package/lib/components/TableBase/stories/NextGenTableBase.js +58 -0
- package/lib/index.js +3 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +22 -0
- package/lib/styles/themes/next-gen/colors/colors.js +2 -1
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/cards.js +7 -2
- package/lib/styles/themes/next-gen/variants/table.js +57 -0
- package/lib/styles/themes/next-gen/variants/tableBase.js +91 -0
- package/lib/styles/themes/next-gen/variants/variants.js +5 -1
- package/lib/styles/variants/variants.js +5 -2
- package/lib/types/cell.js +1 -0
- package/lib/types/tableBase.js +1 -0
- package/lib/utils/devUtils/constants/items.js +79 -0
- package/package.json +1 -1
@@ -124,6 +124,28 @@ var _default = {
|
|
124
124
|
boxShadow: '0 0 0 3px inset #1a73e8'
|
125
125
|
}
|
126
126
|
}
|
127
|
+
},
|
128
|
+
table: {
|
129
|
+
caption: {
|
130
|
+
color: 'text.secondary'
|
131
|
+
},
|
132
|
+
head: {
|
133
|
+
color: 'text.secondary'
|
134
|
+
},
|
135
|
+
data: {
|
136
|
+
color: 'text.secondary'
|
137
|
+
}
|
138
|
+
},
|
139
|
+
tableBase: {
|
140
|
+
caption: {
|
141
|
+
color: 'text.secondary'
|
142
|
+
},
|
143
|
+
head: {
|
144
|
+
color: 'text.secondary'
|
145
|
+
},
|
146
|
+
data: {
|
147
|
+
color: 'text.secondary'
|
148
|
+
}
|
127
149
|
}
|
128
150
|
};
|
129
151
|
exports["default"] = _default;
|
@@ -109,7 +109,8 @@ var background = {
|
|
109
109
|
base: 'white',
|
110
110
|
secondary: _colorTokens.nextGenColors['gray-100'],
|
111
111
|
card: _colorTokens.nextGenColors['blue-100'],
|
112
|
-
suggestion: '#ecf0f5'
|
112
|
+
suggestion: '#ecf0f5',
|
113
|
+
hover: _colorTokens.nextGenColors['gray-100']
|
113
114
|
};
|
114
115
|
var card = {
|
115
116
|
blue: _colorTokens.nextGenColors['blue-100'],
|
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNextGenBlacklist = exports.astroBlacklistStory = void 0;
|
8
|
-
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination'];
|
8
|
+
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'Table', 'TableBase'];
|
9
9
|
var componentSpecificNextGenBlacklist = {
|
10
10
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
11
11
|
Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
|
@@ -43,6 +43,7 @@ declare const _default: {
|
|
43
43
|
secondary: string;
|
44
44
|
card: string;
|
45
45
|
suggestion: string;
|
46
|
+
hover: string;
|
46
47
|
};
|
47
48
|
iconWrapper: {
|
48
49
|
wrapper: {
|
@@ -2543,9 +2544,9 @@ declare const _default: {
|
|
2543
2544
|
};
|
2544
2545
|
container: {
|
2545
2546
|
p: string;
|
2547
|
+
borderColor: string;
|
2546
2548
|
boxShadow: string;
|
2547
2549
|
border: string;
|
2548
|
-
borderColor: string;
|
2549
2550
|
borderRadius: string;
|
2550
2551
|
display: string;
|
2551
2552
|
color: string;
|
@@ -2591,6 +2592,19 @@ declare const _default: {
|
|
2591
2592
|
backgroundColor: string;
|
2592
2593
|
};
|
2593
2594
|
};
|
2595
|
+
tableWrapper: {
|
2596
|
+
overflowY: string;
|
2597
|
+
p: string;
|
2598
|
+
borderColor: string;
|
2599
|
+
boxShadow: string;
|
2600
|
+
border: string;
|
2601
|
+
borderRadius: string;
|
2602
|
+
display: string;
|
2603
|
+
color: string;
|
2604
|
+
fontSize: string;
|
2605
|
+
fontWeight: number;
|
2606
|
+
flex: string;
|
2607
|
+
};
|
2594
2608
|
};
|
2595
2609
|
variants: {
|
2596
2610
|
attachment: {
|
@@ -3714,6 +3728,137 @@ declare const _default: {
|
|
3714
3728
|
color: string;
|
3715
3729
|
};
|
3716
3730
|
};
|
3731
|
+
table: {
|
3732
|
+
container: {
|
3733
|
+
overflow: string;
|
3734
|
+
};
|
3735
|
+
caption: {
|
3736
|
+
px: string;
|
3737
|
+
color: string;
|
3738
|
+
borderBottom: string;
|
3739
|
+
borderBottomColor: string;
|
3740
|
+
};
|
3741
|
+
head: {
|
3742
|
+
px: string;
|
3743
|
+
py: string;
|
3744
|
+
fontSize: string;
|
3745
|
+
fontWeight: string;
|
3746
|
+
color: string;
|
3747
|
+
lineHeight: string;
|
3748
|
+
};
|
3749
|
+
body: {
|
3750
|
+
borderTopColor: string;
|
3751
|
+
borderBottom: string;
|
3752
|
+
backgroundColor: string;
|
3753
|
+
borderBottomLeftRadius: string;
|
3754
|
+
borderBottomRightRadius: string;
|
3755
|
+
'&& > tr:not(:last-child)': {
|
3756
|
+
borderBottom: string;
|
3757
|
+
borderBottomColor: string;
|
3758
|
+
};
|
3759
|
+
'&& > tr:nth-of-type(odd) ': {
|
3760
|
+
backgroundColor: string;
|
3761
|
+
};
|
3762
|
+
'&& > tr:last-child': {
|
3763
|
+
borderBottomLeftRadius: string;
|
3764
|
+
borderBottomRightRadius: string;
|
3765
|
+
};
|
3766
|
+
};
|
3767
|
+
data: {
|
3768
|
+
py: string;
|
3769
|
+
fontWeight: string;
|
3770
|
+
px: string;
|
3771
|
+
fontSize: string;
|
3772
|
+
color: string;
|
3773
|
+
lineHeight: string;
|
3774
|
+
};
|
3775
|
+
};
|
3776
|
+
tableBase: {
|
3777
|
+
caption: {
|
3778
|
+
backgroundColor: string;
|
3779
|
+
px: string;
|
3780
|
+
color: string;
|
3781
|
+
borderBottom: string;
|
3782
|
+
borderBottomColor: string;
|
3783
|
+
borderTopLeftRadius: string;
|
3784
|
+
borderTopRightRadius: string;
|
3785
|
+
};
|
3786
|
+
row: {
|
3787
|
+
borderBottom: string;
|
3788
|
+
borderBottomColor: string;
|
3789
|
+
'&.is-focused': {
|
3790
|
+
outlineOffset: string;
|
3791
|
+
outline: string;
|
3792
|
+
outlineColor: string;
|
3793
|
+
};
|
3794
|
+
'&.is-hovered': {
|
3795
|
+
bg: string;
|
3796
|
+
};
|
3797
|
+
'&:nth-of-type(odd)': {
|
3798
|
+
bg: string;
|
3799
|
+
'&.is-hovered': {
|
3800
|
+
bg: string;
|
3801
|
+
};
|
3802
|
+
};
|
3803
|
+
};
|
3804
|
+
thead: {
|
3805
|
+
backgroundColor: string;
|
3806
|
+
'&:not(.has-caption)': {
|
3807
|
+
'& > tr:first-child': {
|
3808
|
+
borderTopLeftRadius: string;
|
3809
|
+
borderTopRightRadius: string;
|
3810
|
+
'& > th:first-of-type': {
|
3811
|
+
borderTopLeftRadius: string;
|
3812
|
+
};
|
3813
|
+
'& > th:last-of-type': {
|
3814
|
+
borderTopRightRadius: string;
|
3815
|
+
};
|
3816
|
+
};
|
3817
|
+
};
|
3818
|
+
};
|
3819
|
+
head: {
|
3820
|
+
px: string;
|
3821
|
+
py: string;
|
3822
|
+
fontSize: string;
|
3823
|
+
fontWeight: string;
|
3824
|
+
color: string;
|
3825
|
+
lineHeight: string;
|
3826
|
+
'&.is-focused': {
|
3827
|
+
outlineOffset: string;
|
3828
|
+
outline: string;
|
3829
|
+
outlineColor: string;
|
3830
|
+
};
|
3831
|
+
};
|
3832
|
+
tbody: {
|
3833
|
+
borderTopColor: string;
|
3834
|
+
borderBottom: string;
|
3835
|
+
backgroundColor: string;
|
3836
|
+
'& > tr:last-child': {
|
3837
|
+
borderBottom: string;
|
3838
|
+
borderBottomLeftRadius: string;
|
3839
|
+
borderBottomRightRadius: string;
|
3840
|
+
'& > td:first-of-type': {
|
3841
|
+
borderBottomLeftRadius: string;
|
3842
|
+
};
|
3843
|
+
'& > td:last-of-type': {
|
3844
|
+
borderBottomRightRadius: string;
|
3845
|
+
};
|
3846
|
+
};
|
3847
|
+
};
|
3848
|
+
data: {
|
3849
|
+
py: string;
|
3850
|
+
fontWeight: string;
|
3851
|
+
px: string;
|
3852
|
+
fontSize: string;
|
3853
|
+
color: string;
|
3854
|
+
lineHeight: string;
|
3855
|
+
'&.is-focused': {
|
3856
|
+
outlineOffset: string;
|
3857
|
+
outline: string;
|
3858
|
+
outlineColor: string;
|
3859
|
+
};
|
3860
|
+
};
|
3861
|
+
};
|
3717
3862
|
};
|
3718
3863
|
images: {
|
3719
3864
|
avatar: {};
|
@@ -62,9 +62,9 @@ declare const _default: {
|
|
62
62
|
};
|
63
63
|
container: {
|
64
64
|
p: string;
|
65
|
+
borderColor: string;
|
65
66
|
boxShadow: string;
|
66
67
|
border: string;
|
67
|
-
borderColor: string;
|
68
68
|
borderRadius: string;
|
69
69
|
display: string;
|
70
70
|
color: string;
|
@@ -110,5 +110,18 @@ declare const _default: {
|
|
110
110
|
backgroundColor: string;
|
111
111
|
};
|
112
112
|
};
|
113
|
+
tableWrapper: {
|
114
|
+
overflowY: string;
|
115
|
+
p: string;
|
116
|
+
borderColor: string;
|
117
|
+
boxShadow: string;
|
118
|
+
border: string;
|
119
|
+
borderRadius: string;
|
120
|
+
display: string;
|
121
|
+
color: string;
|
122
|
+
fontSize: string;
|
123
|
+
fontWeight: number;
|
124
|
+
flex: string;
|
125
|
+
};
|
113
126
|
};
|
114
127
|
export default _default;
|
@@ -36,7 +36,8 @@ var interactive = {
|
|
36
36
|
}
|
37
37
|
};
|
38
38
|
var container = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
39
|
-
p: 'lg'
|
39
|
+
p: 'lg',
|
40
|
+
borderColor: 'border.base'
|
40
41
|
});
|
41
42
|
var dark = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
42
43
|
border: 'none',
|
@@ -81,6 +82,9 @@ var suggestionRow = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
|
81
82
|
var suggestionColumn = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
82
83
|
display: 'flex'
|
83
84
|
});
|
85
|
+
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
86
|
+
overflowY: 'hidden'
|
87
|
+
});
|
84
88
|
var _default = {
|
85
89
|
interactive: interactive,
|
86
90
|
dark: dark,
|
@@ -88,6 +92,7 @@ var _default = {
|
|
88
92
|
activeCard: activeCard,
|
89
93
|
container: container,
|
90
94
|
suggestionColumn: suggestionColumn,
|
91
|
-
suggestionRow: suggestionRow
|
95
|
+
suggestionRow: suggestionRow,
|
96
|
+
tableWrapper: tableWrapper
|
92
97
|
};
|
93
98
|
exports["default"] = _default;
|
@@ -0,0 +1,45 @@
|
|
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
|
+
};
|
@@ -0,0 +1,65 @@
|
|
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;
|
@@ -0,0 +1,86 @@
|
|
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
|
+
};
|
@@ -0,0 +1,99 @@
|
|
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;
|