@pingux/astro 2.207.1-alpha.0 → 2.208.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/Badge/Badge.styles.d.ts +152 -0
- package/lib/cjs/components/Badge/Badge.styles.js +9 -1
- package/lib/cjs/components/Pagination/Pagination.js +4 -2
- package/lib/cjs/components/Pagination/Pagination.styles.js +1 -1
- package/lib/cjs/components/TableBase/TableBase.js +4 -1
- package/lib/cjs/components/TableBase/TableBase.stories.js +8 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +42 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +26 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +220 -18
- package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +202 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +42 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +3 -1
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +11 -17
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +13 -17
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +11 -17
- package/lib/components/Badge/Badge.styles.js +9 -1
- package/lib/components/Pagination/Pagination.js +4 -2
- package/lib/components/Pagination/Pagination.styles.js +1 -1
- package/lib/components/TableBase/TableBase.js +4 -1
- package/lib/components/TableBase/TableBase.stories.js +8 -8
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
- package/lib/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/styles/themes/next-gen/variants/badges.js +42 -1
- package/lib/styles/themes/next-gen/variants/cards.js +3 -1
- package/lib/styles/themes/next-gen/variants/tableBase.js +13 -17
- package/lib/styles/themes/next-gen/variants/text.js +6 -0
- package/package.json +1 -1
|
@@ -15,7 +15,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports.tableBase = void 0;
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
17
|
var _onyxTokens = require("@pingux/onyx-tokens");
|
|
18
|
-
var _colors = _interopRequireDefault(require("../colors/colors"));
|
|
19
18
|
var _button = require("./button");
|
|
20
19
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -60,37 +59,38 @@ var container = {
|
|
|
60
59
|
var caption = {
|
|
61
60
|
backgroundColor: 'backgroundBase',
|
|
62
61
|
px: 'lg',
|
|
63
|
-
color:
|
|
62
|
+
color: _onyxTokens.astroTokens.color.font.base,
|
|
64
63
|
borderBottom: '1px solid',
|
|
65
|
-
borderBottomColor:
|
|
64
|
+
borderBottomColor: _onyxTokens.astroTokens.color.common.border,
|
|
66
65
|
borderTopLeftRadius: borderRadius,
|
|
67
66
|
borderTopRightRadius: borderRadius
|
|
68
67
|
};
|
|
69
68
|
var row = {
|
|
70
69
|
borderBottom: '1px solid',
|
|
71
|
-
borderBottomColor:
|
|
70
|
+
borderBottomColor: _onyxTokens.astroTokens.color.common.border,
|
|
72
71
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
73
72
|
'&.is-hovered': {
|
|
74
|
-
bg: '
|
|
73
|
+
bg: _onyxTokens.astroTokens.color['table-row'].hover.bg,
|
|
75
74
|
'& > td:last-of-type': {
|
|
76
|
-
bg: '
|
|
75
|
+
bg: _onyxTokens.astroTokens.color['table-row'].hover.bg
|
|
77
76
|
}
|
|
78
77
|
},
|
|
79
78
|
'&:nth-of-type(odd)': {
|
|
80
|
-
bg:
|
|
79
|
+
bg: _onyxTokens.astroTokens.color.common.bg.base,
|
|
81
80
|
'&.is-hovered': {
|
|
82
|
-
bg: '
|
|
81
|
+
bg: _onyxTokens.astroTokens.color['table-row'].hover.bg
|
|
83
82
|
},
|
|
84
83
|
'& > td:last-of-type': {
|
|
85
|
-
bg:
|
|
84
|
+
bg: _onyxTokens.astroTokens.color.common.bg.base
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
};
|
|
89
88
|
var thead = {
|
|
90
|
-
borderBottomColor:
|
|
89
|
+
borderBottomColor: _onyxTokens.astroTokens.color.common.border,
|
|
91
90
|
backgroundColor: 'backgroundBase',
|
|
92
91
|
'&.is-sticky': {
|
|
93
|
-
|
|
92
|
+
border: 'none',
|
|
93
|
+
boxShadow: "0 1px 0 ".concat(_onyxTokens.astroTokens.color.common.border)
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
var resizer = {
|
|
@@ -99,17 +99,13 @@ var resizer = {
|
|
|
99
99
|
var head = {
|
|
100
100
|
px: 'lg',
|
|
101
101
|
py: 'sm',
|
|
102
|
-
fontSize: 'md',
|
|
103
|
-
fontWeight: '2',
|
|
104
|
-
color: 'text.primary',
|
|
105
|
-
lineHeight: 'body',
|
|
106
102
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
107
103
|
'&:last-of-type': {
|
|
108
104
|
backgroundColor: 'backgroundBase'
|
|
109
105
|
}
|
|
110
106
|
};
|
|
111
107
|
var tbody = {
|
|
112
|
-
borderTopColor:
|
|
108
|
+
borderTopColor: _onyxTokens.astroTokens.color.common.border,
|
|
113
109
|
borderBottom: 'unset',
|
|
114
110
|
backgroundColor: 'backgroundBase',
|
|
115
111
|
borderBottomLeftRadius: borderRadius,
|
|
@@ -117,7 +113,7 @@ var tbody = {
|
|
|
117
113
|
};
|
|
118
114
|
var data = _objectSpread(_objectSpread({}, head), {}, {
|
|
119
115
|
py: 'md',
|
|
120
|
-
fontWeight: '
|
|
116
|
+
fontWeight: '0',
|
|
121
117
|
'&:last-of-type': {
|
|
122
118
|
backgroundColor: 'backgroundBase',
|
|
123
119
|
zIndex: 1
|
|
@@ -262,6 +262,12 @@ var text = exports.text = _objectSpread(_objectSpread({
|
|
|
262
262
|
},
|
|
263
263
|
stepperTabContent: stepperTabContent,
|
|
264
264
|
stepperTabContentHeader: stepperTabContentHeader,
|
|
265
|
+
headText: {
|
|
266
|
+
fontSize: 'md',
|
|
267
|
+
fontWeight: '2',
|
|
268
|
+
color: _onyxTokens.astroTokens.color.font.base,
|
|
269
|
+
lineHeight: 'xs'
|
|
270
|
+
},
|
|
265
271
|
label: label,
|
|
266
272
|
linkSelectFieldLabel: _objectSpread(_objectSpread({}, label), {}, {
|
|
267
273
|
color: _onyxTokens.astroTokens.color.font.link
|
|
@@ -2130,50 +2130,47 @@ declare const _default: {
|
|
|
2130
2130
|
caption: {
|
|
2131
2131
|
backgroundColor: string;
|
|
2132
2132
|
px: string;
|
|
2133
|
-
color:
|
|
2133
|
+
color: any;
|
|
2134
2134
|
borderBottom: string;
|
|
2135
|
-
borderBottomColor:
|
|
2135
|
+
borderBottomColor: any;
|
|
2136
2136
|
borderTopLeftRadius: string;
|
|
2137
2137
|
borderTopRightRadius: string;
|
|
2138
2138
|
};
|
|
2139
2139
|
row: {
|
|
2140
2140
|
borderBottom: string;
|
|
2141
|
-
borderBottomColor:
|
|
2141
|
+
borderBottomColor: any;
|
|
2142
2142
|
'&.is-focused': {
|
|
2143
2143
|
outlineOffset: string;
|
|
2144
2144
|
outline: string;
|
|
2145
2145
|
outlineColor: string;
|
|
2146
2146
|
};
|
|
2147
2147
|
'&.is-hovered': {
|
|
2148
|
-
bg:
|
|
2148
|
+
bg: any;
|
|
2149
2149
|
'& > td:last-of-type': {
|
|
2150
|
-
bg:
|
|
2150
|
+
bg: any;
|
|
2151
2151
|
};
|
|
2152
2152
|
};
|
|
2153
2153
|
'&:nth-of-type(odd)': {
|
|
2154
|
-
bg:
|
|
2154
|
+
bg: any;
|
|
2155
2155
|
'&.is-hovered': {
|
|
2156
|
-
bg:
|
|
2156
|
+
bg: any;
|
|
2157
2157
|
};
|
|
2158
2158
|
'& > td:last-of-type': {
|
|
2159
|
-
bg:
|
|
2159
|
+
bg: any;
|
|
2160
2160
|
};
|
|
2161
2161
|
};
|
|
2162
2162
|
};
|
|
2163
2163
|
thead: {
|
|
2164
|
-
borderBottomColor:
|
|
2164
|
+
borderBottomColor: any;
|
|
2165
2165
|
backgroundColor: string;
|
|
2166
2166
|
'&.is-sticky': {
|
|
2167
|
+
border: string;
|
|
2167
2168
|
boxShadow: string;
|
|
2168
2169
|
};
|
|
2169
2170
|
};
|
|
2170
2171
|
head: {
|
|
2171
2172
|
px: string;
|
|
2172
2173
|
py: string;
|
|
2173
|
-
fontSize: string;
|
|
2174
|
-
fontWeight: string;
|
|
2175
|
-
color: string;
|
|
2176
|
-
lineHeight: string;
|
|
2177
2174
|
'&.is-focused': {
|
|
2178
2175
|
outlineOffset: string;
|
|
2179
2176
|
outline: string;
|
|
@@ -2184,7 +2181,7 @@ declare const _default: {
|
|
|
2184
2181
|
};
|
|
2185
2182
|
};
|
|
2186
2183
|
tbody: {
|
|
2187
|
-
borderTopColor:
|
|
2184
|
+
borderTopColor: any;
|
|
2188
2185
|
borderBottom: string;
|
|
2189
2186
|
backgroundColor: string;
|
|
2190
2187
|
borderBottomLeftRadius: string;
|
|
@@ -2198,9 +2195,6 @@ declare const _default: {
|
|
|
2198
2195
|
zIndex: number;
|
|
2199
2196
|
};
|
|
2200
2197
|
px: string;
|
|
2201
|
-
fontSize: string;
|
|
2202
|
-
color: string;
|
|
2203
|
-
lineHeight: string;
|
|
2204
2198
|
'&.is-focused': {
|
|
2205
2199
|
outlineOffset: string;
|
|
2206
2200
|
outline: string;
|
|
@@ -258,6 +258,13 @@ var dataTable = {
|
|
|
258
258
|
borderColor: 'success.dark'
|
|
259
259
|
})
|
|
260
260
|
};
|
|
261
|
+
var tableBaseBadge = {
|
|
262
|
+
active: _objectSpread({}, infoCalloutBadge),
|
|
263
|
+
warning: _objectSpread({}, warningStatusBadge),
|
|
264
|
+
critical: _objectSpread({}, criticalStatusBadge),
|
|
265
|
+
healthy: _objectSpread({}, healthyStatusBadge),
|
|
266
|
+
secondary: _objectSpread({}, secondaryStatusBadge)
|
|
267
|
+
};
|
|
261
268
|
export default {
|
|
262
269
|
activeStatusBadge: activeStatusBadge,
|
|
263
270
|
badgeDeleteButton: badgeDeleteButton,
|
|
@@ -284,5 +291,6 @@ export default {
|
|
|
284
291
|
secondaryStatusBadge: secondaryStatusBadge,
|
|
285
292
|
removableBadge: removableBadge,
|
|
286
293
|
invertedRemovableBadge: invertedRemovableBadge,
|
|
287
|
-
dataTable: dataTable
|
|
294
|
+
dataTable: dataTable,
|
|
295
|
+
tableBaseBadge: tableBaseBadge
|
|
288
296
|
};
|
|
@@ -61,12 +61,14 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
61
61
|
icon: ChevronLeftIcon,
|
|
62
62
|
title: {
|
|
63
63
|
name: 'Previous'
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
|
+
size: "md"
|
|
65
66
|
}, previousButtonIconProps))), ___EmotionJSX(IconButton, nextButtonProps, ___EmotionJSX(Icon, _extends({
|
|
66
67
|
icon: ChevronRightIcon,
|
|
67
68
|
title: {
|
|
68
69
|
name: 'Next'
|
|
69
|
-
}
|
|
70
|
+
},
|
|
71
|
+
size: "md"
|
|
70
72
|
}, nextButtonIconProps))))));
|
|
71
73
|
});
|
|
72
74
|
export default Pagination;
|
|
@@ -328,7 +328,10 @@ function TableColumnHeader(props) {
|
|
|
328
328
|
isRow: true,
|
|
329
329
|
gap: "sm",
|
|
330
330
|
alignItems: "center"
|
|
331
|
-
}, ___EmotionJSX(Text,
|
|
331
|
+
}, ___EmotionJSX(Text, {
|
|
332
|
+
as: "h4",
|
|
333
|
+
variant: "headText"
|
|
334
|
+
}, column.rendered), allowsSorting && sortIcon), allowsResizing && ___EmotionJSX(Resizer, {
|
|
332
335
|
column: column,
|
|
333
336
|
layoutState: layoutState,
|
|
334
337
|
onResizeStart: onResizeStart,
|
|
@@ -79,11 +79,11 @@ var objects = [{
|
|
|
79
79
|
total_grant: '75,000'
|
|
80
80
|
}];
|
|
81
81
|
var statusVariant = {
|
|
82
|
-
Pending: '
|
|
83
|
-
Failed: '
|
|
84
|
-
Rejected: '
|
|
85
|
-
Active: '
|
|
86
|
-
Inactive: '
|
|
82
|
+
Pending: 'tableBaseBadge.secondary',
|
|
83
|
+
Failed: 'tableBaseBadge.critical',
|
|
84
|
+
Rejected: 'tableBaseBadge.critical',
|
|
85
|
+
Active: 'tableBaseBadge.healthy',
|
|
86
|
+
Inactive: 'tableBaseBadge.secondary'
|
|
87
87
|
};
|
|
88
88
|
export var Default = function Default() {
|
|
89
89
|
return ___EmotionJSX(Card, {
|
|
@@ -246,11 +246,11 @@ export var DynamicWithSorting = function DynamicWithSorting() {
|
|
|
246
246
|
}, {
|
|
247
247
|
name: 'Population',
|
|
248
248
|
key: 'population',
|
|
249
|
-
isSortable:
|
|
249
|
+
isSortable: false
|
|
250
250
|
}, {
|
|
251
251
|
name: 'Continent',
|
|
252
252
|
key: 'continent',
|
|
253
|
-
isSortable:
|
|
253
|
+
isSortable: false
|
|
254
254
|
}];
|
|
255
255
|
var rows = [{
|
|
256
256
|
id: 1,
|
|
@@ -357,7 +357,7 @@ export var DynamicWithSorting = function DynamicWithSorting() {
|
|
|
357
357
|
}, function (column) {
|
|
358
358
|
return ___EmotionJSX(Column, {
|
|
359
359
|
minWidth: 155,
|
|
360
|
-
allowsSorting:
|
|
360
|
+
allowsSorting: column.isSortable
|
|
361
361
|
}, column.name);
|
|
362
362
|
}), ___EmotionJSX(TBody, {
|
|
363
363
|
items: list.items,
|
|
@@ -103,6 +103,42 @@ var itemBadgeWithSlot = _objectSpread(_objectSpread({}, selectedItemBadge), {},
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
+
var tableBaseBadgeSpanStyle = {
|
|
107
|
+
fontSize: '11.25px',
|
|
108
|
+
lineHeight: '1'
|
|
109
|
+
};
|
|
110
|
+
var tableBaseBadge = {
|
|
111
|
+
active: {
|
|
112
|
+
backgroundColor: "".concat(astroTokensDark.color.blue[500], " !important"),
|
|
113
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
114
|
+
color: astroTokensDark.color.black
|
|
115
|
+
})
|
|
116
|
+
},
|
|
117
|
+
warning: {
|
|
118
|
+
backgroundColor: "".concat(astroTokensDark.color.yellow[500], " !important"),
|
|
119
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
120
|
+
color: astroTokensDark.color.black
|
|
121
|
+
})
|
|
122
|
+
},
|
|
123
|
+
critical: {
|
|
124
|
+
backgroundColor: "".concat(astroTokensDark.color.red[500], " !important"),
|
|
125
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
126
|
+
color: astroTokensDark.color.black
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
healthy: {
|
|
130
|
+
backgroundColor: "".concat(astroTokensDark.color.green[500], " !important"),
|
|
131
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
132
|
+
color: astroTokensDark.color.black
|
|
133
|
+
})
|
|
134
|
+
},
|
|
135
|
+
secondary: {
|
|
136
|
+
backgroundColor: "".concat(astroTokensDark.color.gray[500], " !important"),
|
|
137
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
138
|
+
color: astroTokensDark.color.black
|
|
139
|
+
})
|
|
140
|
+
}
|
|
141
|
+
};
|
|
106
142
|
var badges = {
|
|
107
143
|
baseBadge: baseBadge,
|
|
108
144
|
primary: primary,
|
|
@@ -147,6 +183,7 @@ var badges = {
|
|
|
147
183
|
'& span': {
|
|
148
184
|
color: 'font.base'
|
|
149
185
|
}
|
|
150
|
-
}
|
|
186
|
+
},
|
|
187
|
+
tableBaseBadge: tableBaseBadge
|
|
151
188
|
};
|
|
152
189
|
export default badges;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { astroTokensDark } from '@pingux/onyx-tokens';
|
|
1
2
|
var cards = {
|
|
2
3
|
dark: {
|
|
3
4
|
border: '1px solid',
|
|
@@ -24,6 +25,9 @@ var cards = {
|
|
|
24
25
|
},
|
|
25
26
|
activeCard: {
|
|
26
27
|
borderColor: 'border.attachment'
|
|
28
|
+
},
|
|
29
|
+
tableWrapper: {
|
|
30
|
+
borderColor: astroTokensDark.color.common.border
|
|
27
31
|
}
|
|
28
32
|
};
|
|
29
33
|
export default cards;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { astroTokensDark } from '@pingux/onyx-tokens';
|
|
2
|
-
import { colors } from '../colors';
|
|
3
2
|
import { avatar } from './avatar';
|
|
4
3
|
import callout from './callout';
|
|
5
4
|
import { footer } from './footer';
|
|
@@ -254,18 +253,41 @@ export default {
|
|
|
254
253
|
}
|
|
255
254
|
},
|
|
256
255
|
caption: {
|
|
257
|
-
color:
|
|
256
|
+
color: astroTokensDark.color.font.base,
|
|
257
|
+
borderBottomColor: astroTokensDark.color.common.border
|
|
258
258
|
},
|
|
259
259
|
thead: {
|
|
260
|
+
borderBottomColor: astroTokensDark.color.common.border,
|
|
260
261
|
'&.is-sticky': {
|
|
261
|
-
boxShadow: "0 1px 0 ".concat(
|
|
262
|
+
boxShadow: "0 1px 0 ".concat(astroTokensDark.color.common.border)
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
tbody: {
|
|
266
|
+
borderTopColor: astroTokensDark.color.common.border
|
|
267
|
+
},
|
|
268
|
+
row: {
|
|
269
|
+
borderBottomColor: astroTokensDark.color.common.border,
|
|
270
|
+
'&.is-hovered': {
|
|
271
|
+
bg: astroTokensDark.color['table-row'].hover.bg,
|
|
272
|
+
'& > td:last-of-type': {
|
|
273
|
+
bg: astroTokensDark.color['table-row'].hover.bg
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
'&:nth-of-type(odd)': {
|
|
277
|
+
bg: astroTokensDark.color.common.bg.base,
|
|
278
|
+
'&.is-hovered': {
|
|
279
|
+
bg: astroTokensDark.color['table-row'].hover.bg
|
|
280
|
+
},
|
|
281
|
+
'& > td:last-of-type': {
|
|
282
|
+
bg: astroTokensDark.color.common.bg.base
|
|
283
|
+
}
|
|
262
284
|
}
|
|
263
285
|
},
|
|
264
286
|
head: {
|
|
265
|
-
color:
|
|
287
|
+
color: astroTokensDark.color.font.base
|
|
266
288
|
},
|
|
267
289
|
data: {
|
|
268
|
-
color:
|
|
290
|
+
color: astroTokensDark.color.font.base
|
|
269
291
|
},
|
|
270
292
|
resizer: {
|
|
271
293
|
backgroundColor: astroTokensDark.color.common['border-dark']
|
|
@@ -54,7 +54,7 @@ var nextGenTheme = {
|
|
|
54
54
|
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
|
55
55
|
},
|
|
56
56
|
shadows: {
|
|
57
|
-
standard: _concatInstanceProperty(_context = "0 ".concat(astroTokens.spacing.card.shadow.y, " ")).call(_context, astroTokens.spacing.card.shadow.blur, " 0 rgba(0, 0, 0, 0.13)")
|
|
57
|
+
standard: _concatInstanceProperty(_context = "0 ".concat(astroTokens.spacing.card.shadow.y, "px ")).call(_context, astroTokens.spacing.card.shadow.blur, "px 0 rgba(0, 0, 0, 0.13)")
|
|
58
58
|
},
|
|
59
59
|
sizes: sizes,
|
|
60
60
|
badges: badges,
|
|
@@ -145,6 +145,46 @@ var healthyStatusBadge = _objectSpread({
|
|
|
145
145
|
var secondaryStatusBadge = _objectSpread({
|
|
146
146
|
border: 'none'
|
|
147
147
|
}, secondary);
|
|
148
|
+
var tableBaseBadgeBaseStyle = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
149
|
+
minWidth: '100px',
|
|
150
|
+
border: 'none'
|
|
151
|
+
});
|
|
152
|
+
var tableBaseBadgeSpanStyle = {
|
|
153
|
+
fontSize: '11.25px',
|
|
154
|
+
lineHeight: '1'
|
|
155
|
+
};
|
|
156
|
+
var tableBaseBadge = {
|
|
157
|
+
active: _objectSpread(_objectSpread({}, tableBaseBadgeBaseStyle), {}, {
|
|
158
|
+
backgroundColor: "".concat(astroTokens.color.blue[100], " !important"),
|
|
159
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
160
|
+
color: astroTokens.color.blue[600]
|
|
161
|
+
})
|
|
162
|
+
}),
|
|
163
|
+
warning: _objectSpread(_objectSpread({}, tableBaseBadgeBaseStyle), {}, {
|
|
164
|
+
backgroundColor: "".concat(astroTokens.color.yellow[100], " !important"),
|
|
165
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
166
|
+
color: astroTokens.color.blue[600]
|
|
167
|
+
})
|
|
168
|
+
}),
|
|
169
|
+
critical: _objectSpread(_objectSpread({}, tableBaseBadgeBaseStyle), {}, {
|
|
170
|
+
backgroundColor: "".concat(astroTokens.color.red[100], " !important"),
|
|
171
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
172
|
+
color: astroTokens.color.red[800]
|
|
173
|
+
})
|
|
174
|
+
}),
|
|
175
|
+
healthy: _objectSpread(_objectSpread({}, tableBaseBadgeBaseStyle), {}, {
|
|
176
|
+
backgroundColor: "".concat(astroTokens.color.green[100], " !important"),
|
|
177
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
178
|
+
color: astroTokens.color.green[800]
|
|
179
|
+
})
|
|
180
|
+
}),
|
|
181
|
+
secondary: _objectSpread(_objectSpread({}, tableBaseBadgeBaseStyle), {}, {
|
|
182
|
+
backgroundColor: "".concat(astroTokens.color.gray[100], " !important"),
|
|
183
|
+
'& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
|
|
184
|
+
color: astroTokens.color.gray[800]
|
|
185
|
+
})
|
|
186
|
+
})
|
|
187
|
+
};
|
|
148
188
|
var countBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
149
189
|
backgroundColor: '#455469 !important',
|
|
150
190
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
@@ -198,5 +238,6 @@ export var badges = {
|
|
|
198
238
|
},
|
|
199
239
|
warningCalloutBadge: {
|
|
200
240
|
backgroundColor: 'white !important'
|
|
201
|
-
}
|
|
241
|
+
},
|
|
242
|
+
tableBaseBadge: tableBaseBadge
|
|
202
243
|
};
|
|
@@ -82,7 +82,9 @@ var suggestionRow = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
|
|
82
82
|
var suggestionColumn = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
|
83
83
|
display: 'flex'
|
|
84
84
|
});
|
|
85
|
-
var tableWrapper = _objectSpread({}, container)
|
|
85
|
+
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
|
86
|
+
boxShadow: 'standard'
|
|
87
|
+
});
|
|
86
88
|
export default {
|
|
87
89
|
interactive: interactive,
|
|
88
90
|
dark: dark,
|
|
@@ -10,7 +10,6 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
|
10
10
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { astroTokens } from '@pingux/onyx-tokens';
|
|
13
|
-
import colors from '../colors/colors';
|
|
14
13
|
import { defaultFocus as baseFocus } from './button';
|
|
15
14
|
var borderRadius = '16px';
|
|
16
15
|
var defaultFocus = _objectSpread(_objectSpread({}, baseFocus), {}, {
|
|
@@ -53,37 +52,38 @@ var container = {
|
|
|
53
52
|
var caption = {
|
|
54
53
|
backgroundColor: 'backgroundBase',
|
|
55
54
|
px: 'lg',
|
|
56
|
-
color:
|
|
55
|
+
color: astroTokens.color.font.base,
|
|
57
56
|
borderBottom: '1px solid',
|
|
58
|
-
borderBottomColor:
|
|
57
|
+
borderBottomColor: astroTokens.color.common.border,
|
|
59
58
|
borderTopLeftRadius: borderRadius,
|
|
60
59
|
borderTopRightRadius: borderRadius
|
|
61
60
|
};
|
|
62
61
|
var row = {
|
|
63
62
|
borderBottom: '1px solid',
|
|
64
|
-
borderBottomColor:
|
|
63
|
+
borderBottomColor: astroTokens.color.common.border,
|
|
65
64
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
66
65
|
'&.is-hovered': {
|
|
67
|
-
bg: '
|
|
66
|
+
bg: astroTokens.color['table-row'].hover.bg,
|
|
68
67
|
'& > td:last-of-type': {
|
|
69
|
-
bg: '
|
|
68
|
+
bg: astroTokens.color['table-row'].hover.bg
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
'&:nth-of-type(odd)': {
|
|
73
|
-
bg:
|
|
72
|
+
bg: astroTokens.color.common.bg.base,
|
|
74
73
|
'&.is-hovered': {
|
|
75
|
-
bg: '
|
|
74
|
+
bg: astroTokens.color['table-row'].hover.bg
|
|
76
75
|
},
|
|
77
76
|
'& > td:last-of-type': {
|
|
78
|
-
bg:
|
|
77
|
+
bg: astroTokens.color.common.bg.base
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
var thead = {
|
|
83
|
-
borderBottomColor:
|
|
82
|
+
borderBottomColor: astroTokens.color.common.border,
|
|
84
83
|
backgroundColor: 'backgroundBase',
|
|
85
84
|
'&.is-sticky': {
|
|
86
|
-
|
|
85
|
+
border: 'none',
|
|
86
|
+
boxShadow: "0 1px 0 ".concat(astroTokens.color.common.border)
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
var resizer = {
|
|
@@ -92,17 +92,13 @@ var resizer = {
|
|
|
92
92
|
var head = {
|
|
93
93
|
px: 'lg',
|
|
94
94
|
py: 'sm',
|
|
95
|
-
fontSize: 'md',
|
|
96
|
-
fontWeight: '2',
|
|
97
|
-
color: 'text.primary',
|
|
98
|
-
lineHeight: 'body',
|
|
99
95
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
|
100
96
|
'&:last-of-type': {
|
|
101
97
|
backgroundColor: 'backgroundBase'
|
|
102
98
|
}
|
|
103
99
|
};
|
|
104
100
|
var tbody = {
|
|
105
|
-
borderTopColor:
|
|
101
|
+
borderTopColor: astroTokens.color.common.border,
|
|
106
102
|
borderBottom: 'unset',
|
|
107
103
|
backgroundColor: 'backgroundBase',
|
|
108
104
|
borderBottomLeftRadius: borderRadius,
|
|
@@ -110,7 +106,7 @@ var tbody = {
|
|
|
110
106
|
};
|
|
111
107
|
var data = _objectSpread(_objectSpread({}, head), {}, {
|
|
112
108
|
py: 'md',
|
|
113
|
-
fontWeight: '
|
|
109
|
+
fontWeight: '0',
|
|
114
110
|
'&:last-of-type': {
|
|
115
111
|
backgroundColor: 'backgroundBase',
|
|
116
112
|
zIndex: 1
|
|
@@ -255,6 +255,12 @@ export var text = _objectSpread(_objectSpread({
|
|
|
255
255
|
},
|
|
256
256
|
stepperTabContent: stepperTabContent,
|
|
257
257
|
stepperTabContentHeader: stepperTabContentHeader,
|
|
258
|
+
headText: {
|
|
259
|
+
fontSize: 'md',
|
|
260
|
+
fontWeight: '2',
|
|
261
|
+
color: astroTokens.color.font.base,
|
|
262
|
+
lineHeight: 'xs'
|
|
263
|
+
},
|
|
258
264
|
label: label,
|
|
259
265
|
linkSelectFieldLabel: _objectSpread(_objectSpread({}, label), {}, {
|
|
260
266
|
color: astroTokens.color.font.link
|