@pingux/astro 2.161.1-alpha.6 → 2.162.1-alpha.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/TableBase/TableBase.js +27 -3
- package/lib/cjs/components/TableBase/TableBase.stories.d.ts +1 -0
- package/lib/cjs/components/TableBase/TableBase.stories.js +26 -1
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +48 -2
- package/lib/cjs/components/TableBase/TableBase.styles.js +50 -6
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +12 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +20 -3
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +17 -0
- package/lib/cjs/types/tableBase.d.ts +1 -0
- package/lib/components/TableBase/TableBase.js +27 -3
- package/lib/components/TableBase/TableBase.stories.js +25 -0
- package/lib/components/TableBase/TableBase.styles.js +50 -6
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +12 -0
- package/lib/styles/themes/next-gen/variants/tableBase.js +20 -3
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -14,14 +14,55 @@ var defaultFocus = {
|
|
|
14
14
|
outline: '1px',
|
|
15
15
|
outlineStyle: 'solid',
|
|
16
16
|
outlineColor: 'focus',
|
|
17
|
-
outlineOffset: '-1px'
|
|
17
|
+
outlineOffset: '-1px',
|
|
18
|
+
zIndex: 2
|
|
18
19
|
};
|
|
19
20
|
var container = {
|
|
20
21
|
width: '100%',
|
|
21
22
|
height: '100%',
|
|
22
23
|
borderSpacing: '0',
|
|
23
24
|
borderCollapse: 'collapse',
|
|
24
|
-
position: 'relative'
|
|
25
|
+
position: 'relative',
|
|
26
|
+
'&.is-last-column-sticky': {
|
|
27
|
+
'thead tr th:last-of-type': {
|
|
28
|
+
position: 'sticky',
|
|
29
|
+
right: 0,
|
|
30
|
+
backgroundColor: 'white',
|
|
31
|
+
zIndex: 2,
|
|
32
|
+
'&.is-focused': {
|
|
33
|
+
borderStyle: 'solid',
|
|
34
|
+
borderColor: 'transparent',
|
|
35
|
+
borderWidth: '2px'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
'tbody tr': {
|
|
39
|
+
'&.is-focused td:last-of-type': {
|
|
40
|
+
borderStyle: 'solid',
|
|
41
|
+
borderColor: 'transparent',
|
|
42
|
+
borderWidth: '4px 2px'
|
|
43
|
+
},
|
|
44
|
+
'&:nth-of-type(odd) td:last-of-type': {
|
|
45
|
+
position: 'sticky',
|
|
46
|
+
right: 0,
|
|
47
|
+
backgroundColor: 'inherit',
|
|
48
|
+
'&.is-focused': {
|
|
49
|
+
borderStyle: 'solid',
|
|
50
|
+
borderColor: 'transparent',
|
|
51
|
+
borderWidth: '2px'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
'&:nth-of-type(even) td:last-of-type': {
|
|
55
|
+
position: 'sticky',
|
|
56
|
+
right: 0,
|
|
57
|
+
backgroundColor: 'white',
|
|
58
|
+
'&.is-focused': {
|
|
59
|
+
borderStyle: 'solid',
|
|
60
|
+
borderColor: 'transparent',
|
|
61
|
+
borderWidth: '2px'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
25
66
|
};
|
|
26
67
|
var caption = {
|
|
27
68
|
fontFamily: 'standard',
|
|
@@ -37,7 +78,7 @@ var thead = {
|
|
|
37
78
|
'&.is-sticky': {
|
|
38
79
|
position: 'sticky',
|
|
39
80
|
top: 0,
|
|
40
|
-
zIndex:
|
|
81
|
+
zIndex: 2,
|
|
41
82
|
boxShadow: '0 1px 0 #68747f'
|
|
42
83
|
}
|
|
43
84
|
};
|
|
@@ -58,8 +99,8 @@ var tbody = {
|
|
|
58
99
|
scrollPaddingBottom: '20px'
|
|
59
100
|
};
|
|
60
101
|
var row = {
|
|
61
|
-
'&:nth-of-type(odd)
|
|
62
|
-
|
|
102
|
+
'&:nth-of-type(odd)': {
|
|
103
|
+
backgroundColor: 'neutral.95'
|
|
63
104
|
},
|
|
64
105
|
'&:focus-visible': {
|
|
65
106
|
outline: 'none'
|
|
@@ -74,7 +115,10 @@ var row = {
|
|
|
74
115
|
'&.is-disabled': {
|
|
75
116
|
bg: 'neutral.90',
|
|
76
117
|
opacity: 0.5,
|
|
77
|
-
cursor: 'not-allowed'
|
|
118
|
+
cursor: 'not-allowed',
|
|
119
|
+
'& > td:last-of-type': {
|
|
120
|
+
backgroundColor: 'neutral.90'
|
|
121
|
+
}
|
|
78
122
|
}
|
|
79
123
|
};
|
|
80
124
|
var data = _objectSpread(_objectSpread({}, text.tableData), {}, {
|
|
@@ -217,6 +217,18 @@ export default {
|
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
tableBase: {
|
|
220
|
+
container: {
|
|
221
|
+
'&.is-last-column-sticky': {
|
|
222
|
+
'thead tr th:last-of-type': {
|
|
223
|
+
backgroundColor: 'backgroundBase'
|
|
224
|
+
},
|
|
225
|
+
'tbody tr': {
|
|
226
|
+
'&:nth-of-type(even) td:last-of-type': {
|
|
227
|
+
backgroundColor: 'backgroundBase'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
220
232
|
caption: {
|
|
221
233
|
color: 'text.secondary'
|
|
222
234
|
},
|
|
@@ -28,6 +28,10 @@ var container = {
|
|
|
28
28
|
borderBottom: 'unset',
|
|
29
29
|
borderBottomLeftRadius: borderRadius,
|
|
30
30
|
borderBottomRightRadius: borderRadius,
|
|
31
|
+
'&.is-focused': {
|
|
32
|
+
borderBottomLeftRadius: '12px',
|
|
33
|
+
borderBottomRightRadius: '12px'
|
|
34
|
+
},
|
|
31
35
|
'& > td:first-of-type': {
|
|
32
36
|
borderBottomLeftRadius: borderRadius
|
|
33
37
|
},
|
|
@@ -59,12 +63,18 @@ var row = {
|
|
|
59
63
|
borderBottomColor: 'border.base',
|
|
60
64
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
61
65
|
'&.is-hovered': {
|
|
62
|
-
bg: 'background.hover'
|
|
66
|
+
bg: 'background.hover',
|
|
67
|
+
'& > td:last-of-type': {
|
|
68
|
+
bg: 'background.hover'
|
|
69
|
+
}
|
|
63
70
|
},
|
|
64
71
|
'&:nth-of-type(odd)': {
|
|
65
72
|
bg: 'backgroundBase',
|
|
66
73
|
'&.is-hovered': {
|
|
67
74
|
bg: 'background.hover'
|
|
75
|
+
},
|
|
76
|
+
'& > td:last-of-type': {
|
|
77
|
+
bg: 'backgroundBase'
|
|
68
78
|
}
|
|
69
79
|
}
|
|
70
80
|
};
|
|
@@ -82,7 +92,10 @@ var head = {
|
|
|
82
92
|
fontWeight: '2',
|
|
83
93
|
color: 'text.primary',
|
|
84
94
|
lineHeight: 'body',
|
|
85
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
|
95
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
96
|
+
'&:last-of-type': {
|
|
97
|
+
backgroundColor: 'backgroundBase'
|
|
98
|
+
}
|
|
86
99
|
};
|
|
87
100
|
var tbody = {
|
|
88
101
|
borderTopColor: 'border.base',
|
|
@@ -93,7 +106,11 @@ var tbody = {
|
|
|
93
106
|
};
|
|
94
107
|
var data = _objectSpread(_objectSpread({}, head), {}, {
|
|
95
108
|
py: 'md',
|
|
96
|
-
fontWeight: '1'
|
|
109
|
+
fontWeight: '1',
|
|
110
|
+
'&:last-of-type': {
|
|
111
|
+
backgroundColor: 'backgroundBase',
|
|
112
|
+
zIndex: 1
|
|
113
|
+
}
|
|
97
114
|
});
|
|
98
115
|
export var tableBase = {
|
|
99
116
|
container: container,
|