@pingux/astro 2.136.1-alpha.3 → 2.137.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.stories.js +72 -69
- package/lib/cjs/components/Badge/Badge.styles.d.ts +1 -14
- package/lib/cjs/components/Badge/Badge.styles.js +3 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +71 -54
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +10 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +11 -4
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +686 -29
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +597 -4
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +90 -37
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +60 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +21 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -208
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -90
- package/lib/components/Badge/Badge.stories.js +72 -69
- package/lib/components/Badge/Badge.styles.js +3 -8
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
- package/lib/styles/themes/next-gen/colors/colors.js +9 -3
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/variants/badges.js +90 -37
- package/lib/styles/themes/next-gen/variants/button.js +21 -0
- package/lib/styles/themes/next-gen/variants/variants.js +1 -83
- package/package.json +1 -1
|
@@ -11,75 +11,99 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
|
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
12
|
import buttons from './button';
|
|
13
13
|
var badgeFont = {
|
|
14
|
-
fontSize: '
|
|
14
|
+
fontSize: '12px',
|
|
15
15
|
fontWeight: 2
|
|
16
16
|
};
|
|
17
|
-
var
|
|
17
|
+
var badgeIconStyle = {
|
|
18
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
19
|
+
color: 'inherit'
|
|
20
|
+
}),
|
|
21
|
+
'& button': {
|
|
22
|
+
alignSelf: 'center',
|
|
23
|
+
p: '0',
|
|
24
|
+
bg: 'transparent',
|
|
25
|
+
'&.is-hovered': {
|
|
26
|
+
bg: 'transparent',
|
|
27
|
+
'& svg': {
|
|
28
|
+
path: {
|
|
29
|
+
fill: 'inherit'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
'& svg': {
|
|
35
|
+
path: {
|
|
36
|
+
fill: 'inherit'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var baseBadge = _objectSpread({
|
|
18
41
|
alignItems: 'center',
|
|
19
42
|
justifyContent: 'center',
|
|
20
43
|
py: '.25em',
|
|
21
44
|
px: '.4em',
|
|
22
45
|
borderRadius: '4px',
|
|
23
|
-
|
|
46
|
+
maxHeight: '18px',
|
|
47
|
+
minHeight: '18px',
|
|
48
|
+
fontSize: '12px',
|
|
24
49
|
alignSelf: 'flex-start',
|
|
25
50
|
display: 'inline-flex !important',
|
|
26
51
|
width: 'fit-content',
|
|
27
|
-
|
|
28
|
-
};
|
|
52
|
+
color: 'text.primary'
|
|
53
|
+
}, badgeIconStyle);
|
|
29
54
|
var primary = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
30
|
-
backgroundColor: '#
|
|
31
|
-
|
|
32
|
-
color: '#1967d2'
|
|
33
|
-
})
|
|
55
|
+
backgroundColor: '#EAF2FD !important',
|
|
56
|
+
color: 'blue-600'
|
|
34
57
|
});
|
|
35
58
|
var secondary = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
36
59
|
backgroundColor: '#f6f8fa !important',
|
|
37
|
-
|
|
38
|
-
color: 'gray-900'
|
|
39
|
-
})
|
|
60
|
+
color: 'gray-900'
|
|
40
61
|
});
|
|
41
62
|
var success = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
42
|
-
backgroundColor: '#
|
|
43
|
-
|
|
44
|
-
color: 'success.dark'
|
|
45
|
-
})
|
|
63
|
+
backgroundColor: '#D3EDDF !important',
|
|
64
|
+
color: 'success.dark'
|
|
46
65
|
});
|
|
47
66
|
var danger = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
48
|
-
backgroundColor: '#
|
|
49
|
-
|
|
50
|
-
color: 'red-700'
|
|
51
|
-
})
|
|
67
|
+
backgroundColor: '#F8D8D5 !important',
|
|
68
|
+
color: 'red-700'
|
|
52
69
|
});
|
|
53
70
|
var warning = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
54
|
-
backgroundColor: '#
|
|
55
|
-
|
|
56
|
-
color: 'yellow-700'
|
|
57
|
-
})
|
|
71
|
+
backgroundColor: '#FFF1DA !important',
|
|
72
|
+
color: 'yellow-800'
|
|
58
73
|
});
|
|
59
74
|
var dark = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
60
75
|
backgroundColor: 'black !important',
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
color: 'white'
|
|
77
|
+
});
|
|
78
|
+
var info = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
79
|
+
backgroundColor: '#EAF2FD !important',
|
|
80
|
+
color: 'darkblue'
|
|
64
81
|
});
|
|
65
82
|
var selectedItemBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
66
83
|
backgroundColor: '#eaf2fd !important',
|
|
67
84
|
paddingRight: '0px !important',
|
|
68
85
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
69
|
-
fontSize: '14px',
|
|
70
86
|
color: 'text.primary',
|
|
71
87
|
fontWeight: 400
|
|
72
88
|
})
|
|
73
89
|
});
|
|
74
|
-
var readOnlyBadge = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
var readOnlyBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
91
|
+
border: 'none',
|
|
92
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
93
|
+
color: 'text.primary',
|
|
94
|
+
fontWeight: 2
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
81
98
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
82
|
-
color: '
|
|
99
|
+
color: 'white'
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
103
|
+
bg: '#f6f8fa !important',
|
|
104
|
+
fontWeight: 2,
|
|
105
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
106
|
+
color: 'text.primary'
|
|
83
107
|
})
|
|
84
108
|
});
|
|
85
109
|
export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
|
|
@@ -98,22 +122,51 @@ var warningStatusBadge = _objectSpread(_objectSpread({}, warning), dataTableBadg
|
|
|
98
122
|
var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), dataTableBadge);
|
|
99
123
|
var healthyStatusBadge = _objectSpread(_objectSpread({}, success), dataTableBadge);
|
|
100
124
|
var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), dataTableBadge);
|
|
125
|
+
var countBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
126
|
+
backgroundColor: '#455469 !important',
|
|
127
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
128
|
+
color: 'white'
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
var countNeutral = _objectSpread({}, secondary);
|
|
132
|
+
var invertedRemovableBadge = _objectSpread({}, dark);
|
|
133
|
+
var removableBadge = _objectSpread(_objectSpread({}, secondary), {}, {
|
|
134
|
+
border: 'none'
|
|
135
|
+
});
|
|
101
136
|
export var badges = {
|
|
102
137
|
baseBadge: _objectSpread({}, baseBadge),
|
|
103
138
|
"default": _objectSpread({}, baseBadge),
|
|
104
139
|
primary: primary,
|
|
140
|
+
countBadge: countBadge,
|
|
141
|
+
countNeutral: countNeutral,
|
|
105
142
|
secondary: secondary,
|
|
106
143
|
success: success,
|
|
107
144
|
danger: danger,
|
|
108
145
|
warning: warning,
|
|
109
146
|
dark: dark,
|
|
147
|
+
info: info,
|
|
110
148
|
selectedItemBadge: selectedItemBadge,
|
|
111
149
|
readOnlyBadge: readOnlyBadge,
|
|
150
|
+
readOnlyFieldBadge: readOnlyFieldBadge,
|
|
112
151
|
activeStatusBadge: activeStatusBadge,
|
|
113
152
|
warningStatusBadge: warningStatusBadge,
|
|
114
153
|
criticalStatusBadge: criticalStatusBadge,
|
|
115
154
|
healthyStatusBadge: healthyStatusBadge,
|
|
116
155
|
secondaryStatusBadge: secondaryStatusBadge,
|
|
117
156
|
badgeDeleteButton: badgeDeleteButton,
|
|
118
|
-
|
|
157
|
+
itemBadgeWithSlot: itemBadgeWithSlot,
|
|
158
|
+
removableBadge: removableBadge,
|
|
159
|
+
invertedRemovableBadge: invertedRemovableBadge,
|
|
160
|
+
errorCalloutBadge: {
|
|
161
|
+
backgroundColor: 'white !important'
|
|
162
|
+
},
|
|
163
|
+
infoCalloutBadge: {
|
|
164
|
+
backgroundColor: 'white !important'
|
|
165
|
+
},
|
|
166
|
+
successCalloutBadge: {
|
|
167
|
+
backgroundColor: 'white !important'
|
|
168
|
+
},
|
|
169
|
+
warningCalloutBadge: {
|
|
170
|
+
backgroundColor: 'white !important'
|
|
171
|
+
}
|
|
119
172
|
};
|
|
@@ -377,6 +377,25 @@ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButto
|
|
|
377
377
|
alignItems: 'center',
|
|
378
378
|
justifyContent: 'center'
|
|
379
379
|
});
|
|
380
|
+
var badgeDeleteButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
381
|
+
height: 14,
|
|
382
|
+
p: 0,
|
|
383
|
+
width: 14,
|
|
384
|
+
border: 'none',
|
|
385
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
|
386
|
+
backgroundColor: 'gray-100'
|
|
387
|
+
}),
|
|
388
|
+
'&.is-pressed': {
|
|
389
|
+
backgroundColor: 'gray-100',
|
|
390
|
+
borderColor: 'gray-200',
|
|
391
|
+
path: {
|
|
392
|
+
fill: 'dark'
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
'&.is-hovered': {
|
|
396
|
+
bg: 'transparent'
|
|
397
|
+
}
|
|
398
|
+
}, transitions);
|
|
380
399
|
var searchClearButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
381
400
|
width: '20px',
|
|
382
401
|
height: '20px',
|
|
@@ -514,6 +533,8 @@ var iconButtons = {
|
|
|
514
533
|
bg: 'gray-900'
|
|
515
534
|
}
|
|
516
535
|
},
|
|
536
|
+
badgeDeleteButton: badgeDeleteButton,
|
|
537
|
+
invertedBadgeDeleteButton: _objectSpread({}, badgeDeleteButton),
|
|
517
538
|
clearSelectionButton: _objectSpread(_objectSpread({}, searchClearButton), {}, {
|
|
518
539
|
top: '15px',
|
|
519
540
|
right: '1rem',
|
|
@@ -14,7 +14,7 @@ import skeleton from '../../../../components/Skeleton/Skeleton.styles';
|
|
|
14
14
|
import codeView from '../codeView/codeView';
|
|
15
15
|
import colors from '../colors/colors';
|
|
16
16
|
import { avatar } from './avatar';
|
|
17
|
-
import
|
|
17
|
+
import { defaultFocus } from './button';
|
|
18
18
|
import callout from './callout';
|
|
19
19
|
import { dataTable } from './dataTable';
|
|
20
20
|
import { footer } from './footer';
|
|
@@ -51,88 +51,6 @@ var fieldHelperText = {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
var badgeFont = {
|
|
55
|
-
fontSize: '11.25px',
|
|
56
|
-
fontWeight: 2
|
|
57
|
-
};
|
|
58
|
-
var baseBadge = {
|
|
59
|
-
alignItems: 'center',
|
|
60
|
-
justifyContent: 'center',
|
|
61
|
-
py: '.25em',
|
|
62
|
-
px: '.4em',
|
|
63
|
-
borderRadius: '4px',
|
|
64
|
-
fontSize: '11.25px',
|
|
65
|
-
alignSelf: 'flex-start',
|
|
66
|
-
display: 'inline-flex !important',
|
|
67
|
-
width: 'fit-content',
|
|
68
|
-
'& span': _objectSpread({}, badgeFont)
|
|
69
|
-
};
|
|
70
|
-
export var badgeDeleteButton = _objectSpread(_objectSpread({}, button.iconButtons.base), {}, {
|
|
71
|
-
borderRadius: '50%',
|
|
72
|
-
cursor: 'pointer',
|
|
73
|
-
height: 14,
|
|
74
|
-
p: 0,
|
|
75
|
-
width: 14
|
|
76
|
-
});
|
|
77
|
-
export var badges = {
|
|
78
|
-
primary: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
79
|
-
backgroundColor: '#eaf1fb !important',
|
|
80
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
81
|
-
color: '#1967d2'
|
|
82
|
-
})
|
|
83
|
-
}),
|
|
84
|
-
baseBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
85
|
-
backgroundColor: '#eaf1fb !important',
|
|
86
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
87
|
-
color: '#1967d2'
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
secondary: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
91
|
-
backgroundColor: '#f6f8fa !important',
|
|
92
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
93
|
-
color: 'gray-900'
|
|
94
|
-
})
|
|
95
|
-
}),
|
|
96
|
-
success: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
97
|
-
backgroundColor: '#d3eddf !important',
|
|
98
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
99
|
-
color: 'success.dark'
|
|
100
|
-
})
|
|
101
|
-
}),
|
|
102
|
-
danger: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
103
|
-
backgroundColor: '#f8d8d5 !important',
|
|
104
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
105
|
-
color: 'red-700'
|
|
106
|
-
})
|
|
107
|
-
}),
|
|
108
|
-
warning: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
109
|
-
backgroundColor: '#fff1da !important',
|
|
110
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
111
|
-
color: 'yellow-700'
|
|
112
|
-
})
|
|
113
|
-
}),
|
|
114
|
-
dark: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
115
|
-
backgroundColor: 'black !important',
|
|
116
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
117
|
-
color: 'white'
|
|
118
|
-
})
|
|
119
|
-
}),
|
|
120
|
-
selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
|
121
|
-
backgroundColor: '#eaf2fd !important',
|
|
122
|
-
paddingRight: '0px !important',
|
|
123
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
124
|
-
fontSize: '14px',
|
|
125
|
-
color: 'text.primary',
|
|
126
|
-
fontWeight: 400
|
|
127
|
-
})
|
|
128
|
-
}),
|
|
129
|
-
readOnlyBadge: {
|
|
130
|
-
'& span': {
|
|
131
|
-
fontSize: '14px'
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
badgeDeleteButton: badgeDeleteButton
|
|
135
|
-
};
|
|
136
54
|
var modalSize = {
|
|
137
55
|
xs: ['100%', '300px', '300px', '300px', '300px', '300px'],
|
|
138
56
|
sm: ['100%', '500px', '500px', '500px', '500px', '500px'],
|