@pingux/astro 2.122.0 → 2.122.1-alpha.1

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.
Files changed (28) hide show
  1. package/lib/cjs/components/Badge/Badge.js +6 -13
  2. package/lib/cjs/components/NavBar/NavBar.styles.d.ts +24 -18
  3. package/lib/cjs/components/NavBar/NavBar.styles.js +11 -5
  4. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +6 -1
  5. package/lib/cjs/styles/colors.d.ts +8 -0
  6. package/lib/cjs/styles/colors.js +5 -0
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +4 -0
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +6 -1
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +1 -1
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +11 -2
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +11 -16
  12. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +4 -0
  13. package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -0
  14. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +36 -2
  15. package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  16. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +32 -2
  17. package/lib/cjs/styles/themes/next-gen/variants/badges.js +10 -7
  18. package/lib/components/Badge/Badge.js +6 -9
  19. package/lib/components/NavBar/NavBar.styles.js +11 -5
  20. package/lib/components/NavBarSection/NavBarItemBody.js +6 -1
  21. package/lib/styles/colors.js +5 -0
  22. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +6 -1
  23. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +1 -1
  24. package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +11 -16
  25. package/lib/styles/themes/next-gen/colors/colors.js +5 -0
  26. package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  27. package/lib/styles/themes/next-gen/variants/badges.js +10 -7
  28. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
3
  var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
5
4
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
6
5
  var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
@@ -9,7 +8,6 @@ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/in
9
8
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
10
9
  var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
11
10
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
12
- var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
13
11
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
12
  _Object$defineProperty(exports, "__esModule", {
15
13
  value: true
@@ -23,22 +21,22 @@ var _react = _interopRequireDefault(require("react"));
23
21
  var _themeUi = require("theme-ui");
24
22
  var _ = require("../..");
25
23
  var _BadgeContext = require("../../context/BadgeContext");
26
- var colors = _interopRequireWildcard(require("../../styles/colors"));
27
24
  var _react2 = require("@emotion/react");
28
25
  var _excluded = ["align", "bg", "children", "isUppercase", "label", "sx", "slots", "textColor", "textProps", "variant"];
29
- function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
26
  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; }
32
27
  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; }
33
28
  var Badge = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
34
29
  var align = props.align,
35
- bg = props.bg,
30
+ _props$bg = props.bg,
31
+ bg = _props$bg === void 0 ? 'badge.background' : _props$bg,
36
32
  children = props.children,
37
- isUppercase = props.isUppercase,
33
+ _props$isUppercase = props.isUppercase,
34
+ isUppercase = _props$isUppercase === void 0 ? false : _props$isUppercase,
38
35
  label = props.label,
39
36
  sx = props.sx,
40
37
  slots = props.slots,
41
- textColor = props.textColor,
38
+ _props$textColor = props.textColor,
39
+ textColor = _props$textColor === void 0 ? 'badge.textColor' : _props$textColor,
42
40
  textProps = props.textProps,
43
41
  variant = props.variant,
44
42
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
@@ -77,10 +75,5 @@ var Badge = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
77
75
  } : {}
78
76
  }, textProps), label), children));
79
77
  });
80
- Badge.defaultProps = {
81
- textColor: 'white',
82
- bg: colors.neutral[10],
83
- isUppercase: false
84
- };
85
78
  var _default = Badge;
86
79
  exports["default"] = _default;
@@ -142,6 +142,25 @@ declare const _default: {
142
142
  display: string;
143
143
  };
144
144
  itemButton: {
145
+ '&.is-focused': {
146
+ outline: string;
147
+ outlineColor: string;
148
+ };
149
+ '&.is-hovered': {
150
+ bg: string;
151
+ };
152
+ '&.is-selected': {
153
+ bg: string;
154
+ boxShadow: string;
155
+ };
156
+ '&.is-pressed': {
157
+ bg: string;
158
+ };
159
+ whiteSpace: string;
160
+ WebkitBoxOrient: string;
161
+ display: string;
162
+ WebkitLineClamp: string;
163
+ overflow: string;
145
164
  marginY: string;
146
165
  textDecoration: string;
147
166
  outline: string;
@@ -150,34 +169,18 @@ declare const _default: {
150
169
  backgroundColor: string;
151
170
  paddingTop: string;
152
171
  paddingBottom: string;
153
- display: string;
154
172
  color: string;
155
173
  fontSize: string;
156
174
  fontWeight: number;
157
175
  flexGrow: string;
158
176
  width: string;
159
177
  textAlign: string;
160
- whiteSpace: string;
161
178
  overflowWrap: string;
162
179
  maxWidth: string;
163
180
  wordWrap: string;
164
181
  wordBreak: string;
165
182
  paddingLeft: string;
166
183
  paddingRight: string;
167
- '&.is-focused': {
168
- outline: string;
169
- outlineColor: string;
170
- };
171
- '&.is-hovered': {
172
- bg: string;
173
- };
174
- '&.is-selected': {
175
- bg: string;
176
- boxShadow: string;
177
- };
178
- '&.is-pressed': {
179
- bg: string;
180
- };
181
184
  };
182
185
  popUpItemButton: {
183
186
  fontSize: string;
@@ -200,6 +203,11 @@ declare const _default: {
200
203
  bg: string;
201
204
  color: string;
202
205
  };
206
+ whiteSpace: string;
207
+ WebkitBoxOrient: string;
208
+ display: string;
209
+ WebkitLineClamp: string;
210
+ overflow: string;
203
211
  marginY: string;
204
212
  textDecoration: string;
205
213
  outline: string;
@@ -208,12 +216,10 @@ declare const _default: {
208
216
  backgroundColor: string;
209
217
  paddingTop: string;
210
218
  paddingBottom: string;
211
- display: string;
212
219
  fontWeight: number;
213
220
  flexGrow: string;
214
221
  width: string;
215
222
  textAlign: string;
216
- whiteSpace: string;
217
223
  overflowWrap: string;
218
224
  maxWidth: string;
219
225
  wordWrap: string;
@@ -126,7 +126,14 @@ var popUpSectionContainer = {
126
126
  var sectionBody = _objectSpread(_objectSpread({}, _AccordionGrid["default"].body), {}, {
127
127
  pl: '0'
128
128
  });
129
- var itemButton = {
129
+ var truncateText = {
130
+ whiteSpace: 'normal',
131
+ WebkitBoxOrient: 'vertical',
132
+ display: '-webkit-box',
133
+ WebkitLineClamp: '3',
134
+ overflow: 'hidden'
135
+ };
136
+ var itemButton = _objectSpread(_objectSpread({
130
137
  marginY: '2px',
131
138
  textDecoration: 'none',
132
139
  outline: 'none',
@@ -135,20 +142,19 @@ var itemButton = {
135
142
  backgroundColor: 'transparent',
136
143
  paddingTop: 'sm',
137
144
  paddingBottom: 'sm',
138
- display: 'block',
139
145
  color: 'neutral.90',
140
146
  fontSize: 'md',
141
147
  fontWeight: 0,
142
148
  flexGrow: '1',
143
149
  width: '100%',
144
150
  textAlign: 'left',
145
- whiteSpace: 'break-spaces',
146
151
  overflowWrap: 'break-word',
147
152
  maxWidth: '100%',
148
153
  wordWrap: 'break-word',
149
154
  wordBreak: 'break-word',
150
155
  paddingLeft: '45px',
151
- paddingRight: 'md',
156
+ paddingRight: 'md'
157
+ }, truncateText), {}, {
152
158
  '&.is-focused': {
153
159
  outline: '1px solid',
154
160
  outlineColor: 'focus'
@@ -163,7 +169,7 @@ var itemButton = {
163
169
  '&.is-pressed': {
164
170
  bg: 'accent.5'
165
171
  }
166
- };
172
+ });
167
173
  var popUpItemButton = _objectSpread(_objectSpread({}, itemButton), {}, {
168
174
  fontSize: 'sm',
169
175
  px: 'sm',
@@ -63,7 +63,12 @@ var NavBarItemBody = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
63
63
  var shouldShowTransition = isExpanded && isTransitioning;
64
64
  var getEstimatedHeight = function getEstimatedHeight() {
65
65
  if (item !== null && item !== void 0 && item.children && typeof (item === null || item === void 0 ? void 0 : item.children.length) === 'number') {
66
- return (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
66
+ var height = (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
67
+ /*
68
+ returning Double the max height to address
69
+ UIP-7608: Ensures the last NavBar item is visible when system scrollbars are always shown
70
+ */
71
+ return height * 2;
67
72
  }
68
73
  return null;
69
74
  };
@@ -100,6 +100,10 @@ export declare const text: {
100
100
  export declare const shadow: string;
101
101
  declare const allColors: {
102
102
  black: string;
103
+ badge: {
104
+ textColor: string;
105
+ background: string;
106
+ };
103
107
  white: string;
104
108
  neutral: {
105
109
  10: string;
@@ -206,6 +210,10 @@ export default allColors;
206
210
  export declare const flatColorList: any;
207
211
  export declare const getBaseHexColor: (colorName: string) => string | {
208
212
  black: string;
213
+ badge: {
214
+ textColor: string;
215
+ background: string;
216
+ };
209
217
  white: string;
210
218
  neutral: {
211
219
  10: string;
@@ -142,9 +142,14 @@ var text = {
142
142
  exports.text = text;
143
143
  var shadow = (0, _chromaJs["default"])(neutral[10]).alpha(0.25).hex();
144
144
  exports.shadow = shadow;
145
+ var badge = {
146
+ textColor: 'white',
147
+ background: neutral[10]
148
+ };
145
149
  var tooltip = accent[20];
146
150
  var allColors = {
147
151
  black: black,
152
+ badge: badge,
148
153
  white: white,
149
154
  neutral: neutral,
150
155
  accent: accent,
@@ -40,6 +40,10 @@ export declare const colors: {
40
40
  card: string;
41
41
  hover: string;
42
42
  };
43
+ badge: {
44
+ background: string;
45
+ textColor: string;
46
+ };
43
47
  neutral: {
44
48
  90: string;
45
49
  };
@@ -33,6 +33,10 @@ var border = {
33
33
  separator: _chromaJs["default"].mix('#23282e', 'white', 0.15, 'rgb').hex(),
34
34
  attachment: '#39414b'
35
35
  };
36
+ var badge = {
37
+ background: _colorTokens.nextGenColors['gray-700'],
38
+ textColor: _colorTokens.nextGenColors['gray-100']
39
+ };
36
40
  var iconWrapper = {
37
41
  wrapper: {
38
42
  orange: _colorTokens.nextGenColors['orange-500'],
@@ -107,6 +111,7 @@ var colors = _objectSpread(_objectSpread({
107
111
  secondary: '#1a1e22',
108
112
  card: '#1a1e22',
109
113
  hover: hoverDark
110
- }
114
+ },
115
+ badge: badge
111
116
  });
112
117
  exports.colors = colors;
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _StickerSheetComponent = _interopRequireDefault(require("../../../themes/next-gen/stories/StickerSheetComponent"));
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only Onyx Dark Sticker Sheet'
14
+ title: 'Onyx Dark Sticker Sheet'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -23,9 +23,18 @@ declare const badges: {
23
23
  width: string;
24
24
  };
25
25
  baseBadge: {
26
- backgroundColor: string;
26
+ alignItems: string;
27
+ justifyContent: string;
28
+ py: string;
29
+ px: string;
30
+ borderRadius: string;
31
+ fontSize: string;
32
+ alignSelf: string;
33
+ display: string;
34
+ width: string;
27
35
  '& span': {
28
- color: string;
36
+ fontSize: string;
37
+ fontWeight: number;
29
38
  };
30
39
  };
31
40
  success: {
@@ -34,9 +34,9 @@ var baseBadge = {
34
34
  };
35
35
  var badges = {
36
36
  primary: {
37
- backgroundColor: '#1a73e8 !important',
37
+ backgroundColor: '#155CBA !important',
38
38
  '& span': {
39
- color: 'black'
39
+ color: 'active_light'
40
40
  }
41
41
  },
42
42
  secondary: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -45,28 +45,23 @@ var badges = {
45
45
  color: 'gray-400'
46
46
  })
47
47
  }),
48
- baseBadge: {
49
- backgroundColor: '#324054 !important',
50
- '& span': {
51
- color: 'dark'
52
- }
53
- },
48
+ baseBadge: _objectSpread({}, baseBadge),
54
49
  success: {
55
- backgroundColor: '#2ed47a !important',
50
+ backgroundColor: '#0E4326 !important',
56
51
  '& span': {
57
- color: 'black'
52
+ color: 'success_light'
58
53
  }
59
54
  },
60
55
  danger: {
61
- backgroundColor: '#f7685b !important',
56
+ backgroundColor: '#83231A !important',
62
57
  '& span': {
63
- color: 'black'
58
+ color: 'critical_light'
64
59
  }
65
60
  },
66
61
  warning: {
67
- backgroundColor: '#984c0c !important',
62
+ backgroundColor: '#664A1C !important',
68
63
  '& span': {
69
- color: 'black'
64
+ color: 'yellow-100'
70
65
  }
71
66
  },
72
67
  info: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -76,9 +71,9 @@ var badges = {
76
71
  }, badgeFont)
77
72
  }),
78
73
  dark: {
79
- backgroundColor: '#c0c9d5 !important',
74
+ backgroundColor: '#F6F8FA !important',
80
75
  '& span': {
81
- color: 'gray-900'
76
+ color: 'black'
82
77
  }
83
78
  },
84
79
  selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -14,6 +14,10 @@ export declare const warning: {
14
14
  light: string;
15
15
  };
16
16
  declare const colors: {
17
+ badge: {
18
+ textColor: string;
19
+ background: string;
20
+ };
17
21
  card: {
18
22
  blue: string;
19
23
  gray: string;
@@ -115,8 +115,13 @@ var card = {
115
115
  blue: _colorTokens.nextGenColors['blue-100'],
116
116
  gray: _colorTokens.nextGenColors['gray-100']
117
117
  };
118
+ var badge = {
119
+ textColor: _colorTokens.nextGenColors['gray-900'],
120
+ background: _colorTokens.nextGenColors['gray-100']
121
+ };
118
122
  var tooltip = 'black';
119
123
  var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColors), _colorTokens.nextGenColors), overrides), {}, {
124
+ badge: badge,
120
125
  card: card,
121
126
  critical: critical,
122
127
  success: success,
@@ -2,6 +2,10 @@ declare const _default: {
2
2
  breakpoints: string[];
3
3
  name: string;
4
4
  colors: {
5
+ badge: {
6
+ textColor: string;
7
+ background: string;
8
+ };
5
9
  card: {
6
10
  blue: string;
7
11
  gray: string;
@@ -1421,12 +1425,21 @@ declare const _default: {
1421
1425
  };
1422
1426
  badges: {
1423
1427
  baseBadge: {
1424
- backgroundColor: string;
1428
+ alignItems: string;
1429
+ justifyContent: string;
1430
+ py: string;
1431
+ px: string;
1432
+ borderRadius: string;
1433
+ fontSize: string;
1434
+ alignSelf: string;
1435
+ display: string;
1436
+ width: string;
1425
1437
  '& span': {
1426
- color: string;
1427
1438
  fontSize: string;
1428
1439
  fontWeight: number;
1429
1440
  };
1441
+ };
1442
+ default: {
1430
1443
  alignItems: string;
1431
1444
  justifyContent: string;
1432
1445
  py: string;
@@ -1436,6 +1449,10 @@ declare const _default: {
1436
1449
  alignSelf: string;
1437
1450
  display: string;
1438
1451
  width: string;
1452
+ '& span': {
1453
+ fontSize: string;
1454
+ fontWeight: number;
1455
+ };
1439
1456
  };
1440
1457
  primary: {
1441
1458
  backgroundColor: string;
@@ -1689,6 +1706,23 @@ declare const _default: {
1689
1706
  };
1690
1707
  };
1691
1708
  };
1709
+ info: {
1710
+ backgroundColor: string;
1711
+ '& span': {
1712
+ color: string;
1713
+ fontSize: string;
1714
+ fontWeight: number;
1715
+ };
1716
+ alignItems: string;
1717
+ justifyContent: string;
1718
+ py: string;
1719
+ px: string;
1720
+ borderRadius: string;
1721
+ fontSize: string;
1722
+ alignSelf: string;
1723
+ display: string;
1724
+ width: string;
1725
+ };
1692
1726
  };
1693
1727
  navigationHeader: {
1694
1728
  headerPlaceholder: {
@@ -48,7 +48,7 @@ var textStyling = {
48
48
  fontWeight: 600
49
49
  };
50
50
  var avatarColors = ['orange', 'cyan', 'green', 'purple', 'pink', 'red', 'yellow', 'teal'];
51
- var badges = ['primary', 'baseBadge', 'success', 'danger', 'warning', 'info', 'dark'];
51
+ var badges = ['primary', 'default', 'success', 'danger', 'warning', 'info', 'dark'];
52
52
  var tabs = [{
53
53
  name: 'Tab 1',
54
54
  children: 'Tab 1 body'
@@ -32,12 +32,21 @@ export declare const badgeDeleteButton: {
32
32
  };
33
33
  export declare const badges: {
34
34
  baseBadge: {
35
- backgroundColor: string;
35
+ alignItems: string;
36
+ justifyContent: string;
37
+ py: string;
38
+ px: string;
39
+ borderRadius: string;
40
+ fontSize: string;
41
+ alignSelf: string;
42
+ display: string;
43
+ width: string;
36
44
  '& span': {
37
- color: string;
38
45
  fontSize: string;
39
46
  fontWeight: number;
40
47
  };
48
+ };
49
+ default: {
41
50
  alignItems: string;
42
51
  justifyContent: string;
43
52
  py: string;
@@ -47,6 +56,10 @@ export declare const badges: {
47
56
  alignSelf: string;
48
57
  display: string;
49
58
  width: string;
59
+ '& span': {
60
+ fontSize: string;
61
+ fontWeight: number;
62
+ };
50
63
  };
51
64
  primary: {
52
65
  backgroundColor: string;
@@ -300,4 +313,21 @@ export declare const badges: {
300
313
  };
301
314
  };
302
315
  };
316
+ info: {
317
+ backgroundColor: string;
318
+ '& span': {
319
+ color: string;
320
+ fontSize: string;
321
+ fontWeight: number;
322
+ };
323
+ alignItems: string;
324
+ justifyContent: string;
325
+ py: string;
326
+ px: string;
327
+ borderRadius: string;
328
+ fontSize: string;
329
+ alignSelf: string;
330
+ display: string;
331
+ width: string;
332
+ };
303
333
  };
@@ -83,6 +83,12 @@ var readOnlyBadge = {
83
83
  fontSize: '14px'
84
84
  }
85
85
  };
86
+ var info = _objectSpread(_objectSpread({}, baseBadge), {}, {
87
+ backgroundColor: '#eaf2fd !important',
88
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
89
+ color: 'darkblue'
90
+ })
91
+ });
86
92
  var badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
87
93
  borderRadius: '50%',
88
94
  cursor: 'pointer',
@@ -101,12 +107,8 @@ var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), dataTableBadg
101
107
  var healthyStatusBadge = _objectSpread(_objectSpread({}, success), dataTableBadge);
102
108
  var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), dataTableBadge);
103
109
  var badges = {
104
- baseBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
105
- backgroundColor: '#eaf1fb !important',
106
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
107
- color: '#1967d2'
108
- })
109
- }),
110
+ baseBadge: _objectSpread({}, baseBadge),
111
+ "default": _objectSpread({}, baseBadge),
110
112
  primary: primary,
111
113
  secondary: secondary,
112
114
  success: success,
@@ -120,6 +122,7 @@ var badges = {
120
122
  criticalStatusBadge: criticalStatusBadge,
121
123
  healthyStatusBadge: healthyStatusBadge,
122
124
  secondaryStatusBadge: secondaryStatusBadge,
123
- badgeDeleteButton: badgeDeleteButton
125
+ badgeDeleteButton: badgeDeleteButton,
126
+ info: info
124
127
  };
125
128
  exports.badges = badges;
@@ -17,17 +17,19 @@ import React from 'react';
17
17
  import { Badge as ThemeUIBadge } from 'theme-ui';
18
18
  import { Box, Text } from '../..';
19
19
  import { BadgeContext } from '../../context/BadgeContext';
20
- import * as colors from '../../styles/colors';
21
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
22
21
  var Badge = /*#__PURE__*/React.forwardRef(function (props, ref) {
23
22
  var align = props.align,
24
- bg = props.bg,
23
+ _props$bg = props.bg,
24
+ bg = _props$bg === void 0 ? 'badge.background' : _props$bg,
25
25
  children = props.children,
26
- isUppercase = props.isUppercase,
26
+ _props$isUppercase = props.isUppercase,
27
+ isUppercase = _props$isUppercase === void 0 ? false : _props$isUppercase,
27
28
  label = props.label,
28
29
  sx = props.sx,
29
30
  slots = props.slots,
30
- textColor = props.textColor,
31
+ _props$textColor = props.textColor,
32
+ textColor = _props$textColor === void 0 ? 'badge.textColor' : _props$textColor,
31
33
  textProps = props.textProps,
32
34
  variant = props.variant,
33
35
  others = _objectWithoutProperties(props, _excluded);
@@ -66,9 +68,4 @@ var Badge = /*#__PURE__*/React.forwardRef(function (props, ref) {
66
68
  } : {}
67
69
  }, textProps), label), children));
68
70
  });
69
- Badge.defaultProps = {
70
- textColor: 'white',
71
- bg: colors.neutral[10],
72
- isUppercase: false
73
- };
74
71
  export default Badge;
@@ -119,7 +119,14 @@ var popUpSectionContainer = {
119
119
  var sectionBody = _objectSpread(_objectSpread({}, accordionGrid.body), {}, {
120
120
  pl: '0'
121
121
  });
122
- var itemButton = {
122
+ var truncateText = {
123
+ whiteSpace: 'normal',
124
+ WebkitBoxOrient: 'vertical',
125
+ display: '-webkit-box',
126
+ WebkitLineClamp: '3',
127
+ overflow: 'hidden'
128
+ };
129
+ var itemButton = _objectSpread(_objectSpread({
123
130
  marginY: '2px',
124
131
  textDecoration: 'none',
125
132
  outline: 'none',
@@ -128,20 +135,19 @@ var itemButton = {
128
135
  backgroundColor: 'transparent',
129
136
  paddingTop: 'sm',
130
137
  paddingBottom: 'sm',
131
- display: 'block',
132
138
  color: 'neutral.90',
133
139
  fontSize: 'md',
134
140
  fontWeight: 0,
135
141
  flexGrow: '1',
136
142
  width: '100%',
137
143
  textAlign: 'left',
138
- whiteSpace: 'break-spaces',
139
144
  overflowWrap: 'break-word',
140
145
  maxWidth: '100%',
141
146
  wordWrap: 'break-word',
142
147
  wordBreak: 'break-word',
143
148
  paddingLeft: '45px',
144
- paddingRight: 'md',
149
+ paddingRight: 'md'
150
+ }, truncateText), {}, {
145
151
  '&.is-focused': {
146
152
  outline: '1px solid',
147
153
  outlineColor: 'focus'
@@ -156,7 +162,7 @@ var itemButton = {
156
162
  '&.is-pressed': {
157
163
  bg: 'accent.5'
158
164
  }
159
- };
165
+ });
160
166
  var popUpItemButton = _objectSpread(_objectSpread({}, itemButton), {}, {
161
167
  fontSize: 'sm',
162
168
  px: 'sm',
@@ -52,7 +52,12 @@ var NavBarItemBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  var shouldShowTransition = isExpanded && isTransitioning;
53
53
  var getEstimatedHeight = function getEstimatedHeight() {
54
54
  if (item !== null && item !== void 0 && item.children && typeof (item === null || item === void 0 ? void 0 : item.children.length) === 'number') {
55
- return (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
55
+ var height = (item !== null && item !== void 0 && item.itemHeight ? item.itemHeight : styles.navButtonEstHeight) * item.children.length;
56
+ /*
57
+ returning Double the max height to address
58
+ UIP-7608: Ensures the last NavBar item is visible when system scrollbars are always shown
59
+ */
60
+ return height * 2;
56
61
  }
57
62
  return null;
58
63
  };
@@ -118,9 +118,14 @@ export var text = {
118
118
  active: active
119
119
  };
120
120
  export var shadow = chroma(neutral[10]).alpha(0.25).hex();
121
+ var badge = {
122
+ textColor: 'white',
123
+ background: neutral[10]
124
+ };
121
125
  var tooltip = accent[20];
122
126
  var allColors = {
123
127
  black: black,
128
+ badge: badge,
124
129
  white: white,
125
130
  neutral: neutral,
126
131
  accent: accent,
@@ -25,6 +25,10 @@ var border = {
25
25
  separator: chroma.mix('#23282e', 'white', 0.15, 'rgb').hex(),
26
26
  attachment: '#39414b'
27
27
  };
28
+ var badge = {
29
+ background: nextGenColors['gray-700'],
30
+ textColor: nextGenColors['gray-100']
31
+ };
28
32
  var iconWrapper = {
29
33
  wrapper: {
30
34
  orange: nextGenColors['orange-500'],
@@ -99,5 +103,6 @@ export var colors = _objectSpread(_objectSpread({
99
103
  secondary: '#1a1e22',
100
104
  card: '#1a1e22',
101
105
  hover: hoverDark
102
- }
106
+ },
107
+ badge: badge
103
108
  });
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenDarkTheme } from '../../../..';
3
3
  import StickerSheetComponent from '../../../themes/next-gen/stories/StickerSheetComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only Onyx Dark Sticker Sheet'
6
+ title: 'Onyx Dark Sticker Sheet'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -27,9 +27,9 @@ var baseBadge = {
27
27
  };
28
28
  var badges = {
29
29
  primary: {
30
- backgroundColor: '#1a73e8 !important',
30
+ backgroundColor: '#155CBA !important',
31
31
  '& span': {
32
- color: 'black'
32
+ color: 'active_light'
33
33
  }
34
34
  },
35
35
  secondary: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -38,28 +38,23 @@ var badges = {
38
38
  color: 'gray-400'
39
39
  })
40
40
  }),
41
- baseBadge: {
42
- backgroundColor: '#324054 !important',
43
- '& span': {
44
- color: 'dark'
45
- }
46
- },
41
+ baseBadge: _objectSpread({}, baseBadge),
47
42
  success: {
48
- backgroundColor: '#2ed47a !important',
43
+ backgroundColor: '#0E4326 !important',
49
44
  '& span': {
50
- color: 'black'
45
+ color: 'success_light'
51
46
  }
52
47
  },
53
48
  danger: {
54
- backgroundColor: '#f7685b !important',
49
+ backgroundColor: '#83231A !important',
55
50
  '& span': {
56
- color: 'black'
51
+ color: 'critical_light'
57
52
  }
58
53
  },
59
54
  warning: {
60
- backgroundColor: '#984c0c !important',
55
+ backgroundColor: '#664A1C !important',
61
56
  '& span': {
62
- color: 'black'
57
+ color: 'yellow-100'
63
58
  }
64
59
  },
65
60
  info: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -69,9 +64,9 @@ var badges = {
69
64
  }, badgeFont)
70
65
  }),
71
66
  dark: {
72
- backgroundColor: '#c0c9d5 !important',
67
+ backgroundColor: '#F6F8FA !important',
73
68
  '& span': {
74
- color: 'gray-900'
69
+ color: 'black'
75
70
  }
76
71
  },
77
72
  selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -105,8 +105,13 @@ var card = {
105
105
  blue: nextGenColors['blue-100'],
106
106
  gray: nextGenColors['gray-100']
107
107
  };
108
+ var badge = {
109
+ textColor: nextGenColors['gray-900'],
110
+ background: nextGenColors['gray-100']
111
+ };
108
112
  var tooltip = 'black';
109
113
  var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColors), nextGenColors), overrides), {}, {
114
+ badge: badge,
110
115
  card: card,
111
116
  critical: critical,
112
117
  success: success,
@@ -40,7 +40,7 @@ var textStyling = {
40
40
  fontWeight: 600
41
41
  };
42
42
  var avatarColors = ['orange', 'cyan', 'green', 'purple', 'pink', 'red', 'yellow', 'teal'];
43
- var badges = ['primary', 'baseBadge', 'success', 'danger', 'warning', 'info', 'dark'];
43
+ var badges = ['primary', 'default', 'success', 'danger', 'warning', 'info', 'dark'];
44
44
  var tabs = [{
45
45
  name: 'Tab 1',
46
46
  children: 'Tab 1 body'
@@ -76,6 +76,12 @@ var readOnlyBadge = {
76
76
  fontSize: '14px'
77
77
  }
78
78
  };
79
+ var info = _objectSpread(_objectSpread({}, baseBadge), {}, {
80
+ backgroundColor: '#eaf2fd !important',
81
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
82
+ color: 'darkblue'
83
+ })
84
+ });
79
85
  export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
80
86
  borderRadius: '50%',
81
87
  cursor: 'pointer',
@@ -93,12 +99,8 @@ var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), dataTableBadg
93
99
  var healthyStatusBadge = _objectSpread(_objectSpread({}, success), dataTableBadge);
94
100
  var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), dataTableBadge);
95
101
  export var badges = {
96
- baseBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
97
- backgroundColor: '#eaf1fb !important',
98
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
99
- color: '#1967d2'
100
- })
101
- }),
102
+ baseBadge: _objectSpread({}, baseBadge),
103
+ "default": _objectSpread({}, baseBadge),
102
104
  primary: primary,
103
105
  secondary: secondary,
104
106
  success: success,
@@ -112,5 +114,6 @@ export var badges = {
112
114
  criticalStatusBadge: criticalStatusBadge,
113
115
  healthyStatusBadge: healthyStatusBadge,
114
116
  secondaryStatusBadge: secondaryStatusBadge,
115
- badgeDeleteButton: badgeDeleteButton
117
+ badgeDeleteButton: badgeDeleteButton,
118
+ info: info
116
119
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.122.0",
3
+ "version": "2.122.1-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",