@pingux/astro 2.142.1-alpha.0 → 2.143.0-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/Card/Card.styles.d.ts +3 -0
- package/lib/cjs/components/Card/Card.styles.js +4 -1
- package/lib/cjs/components/TableBase/TableBase.d.ts +1 -7
- package/lib/cjs/components/TableBase/TableBase.js +96 -74
- package/lib/cjs/components/TableBase/TableBase.stories.js +45 -36
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +5 -7
- package/lib/cjs/components/TableBase/TableBase.styles.js +8 -3
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +5 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +6 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +34 -22
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +32 -22
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +32 -22
- package/lib/cjs/types/tableBase.d.ts +4 -3
- package/lib/components/Card/Card.styles.js +4 -1
- package/lib/components/TableBase/TableBase.js +100 -72
- package/lib/components/TableBase/TableBase.stories.js +46 -37
- package/lib/components/TableBase/TableBase.styles.js +8 -3
- package/lib/components/TableBase/stories/NextGenTableBase.js +6 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +6 -0
- package/lib/styles/themes/next-gen/variants/cards.js +1 -0
- package/lib/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/package.json +1 -1
@@ -9,11 +9,42 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
10
|
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; }
|
11
11
|
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) { _defineProperty(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; }
|
12
|
+
import colors from '../colors/colors';
|
12
13
|
import { defaultFocus as baseFocus } from './button';
|
13
14
|
var borderRadius = '16px';
|
14
15
|
var defaultFocus = _objectSpread(_objectSpread({}, baseFocus), {}, {
|
15
16
|
outlineOffset: '-2px'
|
16
17
|
});
|
18
|
+
var container = {
|
19
|
+
'& > thead > tr': {
|
20
|
+
'& > th:first-of-type': {
|
21
|
+
borderTopLeftRadius: borderRadius
|
22
|
+
},
|
23
|
+
'& > th:last-of-type': {
|
24
|
+
borderTopRightRadius: borderRadius
|
25
|
+
}
|
26
|
+
},
|
27
|
+
'& > tbody > tr:last-child': {
|
28
|
+
borderBottom: 'unset',
|
29
|
+
borderBottomLeftRadius: borderRadius,
|
30
|
+
borderBottomRightRadius: borderRadius,
|
31
|
+
'& > td:first-of-type': {
|
32
|
+
borderBottomLeftRadius: borderRadius
|
33
|
+
},
|
34
|
+
'& > td:last-of-type': {
|
35
|
+
borderBottomRightRadius: borderRadius
|
36
|
+
}
|
37
|
+
},
|
38
|
+
'&.has-caption > thead > tr:first-of-type > th': {
|
39
|
+
borderRadius: '0'
|
40
|
+
},
|
41
|
+
'&.has-pagination > tbody > tr:last-child': {
|
42
|
+
borderRadius: 0,
|
43
|
+
'& > td': {
|
44
|
+
borderRadius: 0
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
17
48
|
var caption = {
|
18
49
|
backgroundColor: 'background.base',
|
19
50
|
px: 'lg',
|
@@ -40,17 +71,8 @@ var row = {
|
|
40
71
|
var thead = {
|
41
72
|
borderBottomColor: 'border.base',
|
42
73
|
backgroundColor: 'background.base',
|
43
|
-
'
|
44
|
-
|
45
|
-
borderTopRightRadius: borderRadius,
|
46
|
-
'& > tr:first-child': {
|
47
|
-
'& > th:first-of-type': {
|
48
|
-
borderTopLeftRadius: borderRadius
|
49
|
-
},
|
50
|
-
'& > th:last-of-type': {
|
51
|
-
borderTopRightRadius: borderRadius
|
52
|
-
}
|
53
|
-
}
|
74
|
+
'&.is-sticky': {
|
75
|
+
boxShadow: "0 1px 0 ".concat(colors.border.base)
|
54
76
|
}
|
55
77
|
};
|
56
78
|
var head = {
|
@@ -67,24 +89,14 @@ var tbody = {
|
|
67
89
|
borderBottom: 'unset',
|
68
90
|
backgroundColor: 'background.base',
|
69
91
|
borderBottomLeftRadius: borderRadius,
|
70
|
-
borderBottomRightRadius: borderRadius
|
71
|
-
'& > tr:last-child': {
|
72
|
-
borderBottom: 'unset',
|
73
|
-
borderBottomLeftRadius: borderRadius,
|
74
|
-
borderBottomRightRadius: borderRadius,
|
75
|
-
'& > td:first-of-type': {
|
76
|
-
borderBottomLeftRadius: borderRadius
|
77
|
-
},
|
78
|
-
'& > td:last-of-type': {
|
79
|
-
borderBottomRightRadius: borderRadius
|
80
|
-
}
|
81
|
-
}
|
92
|
+
borderBottomRightRadius: borderRadius
|
82
93
|
};
|
83
94
|
var data = _objectSpread(_objectSpread({}, head), {}, {
|
84
95
|
py: 'md',
|
85
96
|
fontWeight: '1'
|
86
97
|
});
|
87
98
|
export var tableBase = {
|
99
|
+
container: container,
|
88
100
|
caption: caption,
|
89
101
|
row: row,
|
90
102
|
thead: thead,
|