@pingux/astro 2.136.1-alpha.2 → 2.137.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.
Files changed (27) hide show
  1. package/lib/cjs/components/Badge/Badge.stories.js +72 -69
  2. package/lib/cjs/components/Badge/Badge.styles.d.ts +1 -14
  3. package/lib/cjs/components/Badge/Badge.styles.js +3 -8
  4. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
  5. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +71 -54
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
  7. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +10 -1
  8. package/lib/cjs/styles/themes/next-gen/colors/colors.js +11 -4
  9. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
  10. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
  11. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +686 -29
  12. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +597 -4
  13. package/lib/cjs/styles/themes/next-gen/variants/badges.js +90 -37
  14. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +60 -0
  15. package/lib/cjs/styles/themes/next-gen/variants/button.js +21 -0
  16. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -208
  17. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -90
  18. package/lib/components/Badge/Badge.stories.js +72 -69
  19. package/lib/components/Badge/Badge.styles.js +3 -8
  20. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
  21. package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
  22. package/lib/styles/themes/next-gen/colors/colors.js +9 -3
  23. package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
  24. package/lib/styles/themes/next-gen/variants/badges.js +90 -37
  25. package/lib/styles/themes/next-gen/variants/button.js +21 -0
  26. package/lib/styles/themes/next-gen/variants/variants.js +1 -83
  27. package/package.json +1 -1
@@ -16,76 +16,123 @@ exports["default"] = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  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; }
18
18
  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; }
19
- var badgeFont = {
20
- fontSize: '11.25px',
21
- fontWeight: 2
22
- };
23
19
  var baseBadge = {
24
- alignItems: 'center',
25
- justifyContent: 'center',
26
- py: '.25em',
27
- px: '.4em',
28
- borderRadius: '4px',
29
- fontSize: '11.25px',
30
- alignSelf: 'flex-start',
31
- display: 'inline-flex !important',
32
- width: 'fit-content',
33
- '& span': _objectSpread({}, badgeFont)
20
+ color: 'badge.textColor'
21
+ };
22
+ var primary = {
23
+ backgroundColor: '#1a73e8 !important',
24
+ color: 'black'
25
+ };
26
+ var secondary = {
27
+ backgroundColor: '#324054 !important',
28
+ color: 'gray-100'
29
+ };
30
+ var success = {
31
+ backgroundColor: '#22a75f !important',
32
+ color: 'black'
33
+ };
34
+ var danger = {
35
+ backgroundColor: '#da3a2b !important',
36
+ color: 'black'
37
+ };
38
+ var warning = {
39
+ backgroundColor: '#ffb946 !important',
40
+ color: 'black'
41
+ };
42
+ var info = {
43
+ backgroundColor: '#324054 !important',
44
+ color: 'gray-100'
45
+ };
46
+ var dark = {
47
+ backgroundColor: '#c0c9d5 !important',
48
+ color: 'gray-100'
49
+ };
50
+ var activeStatusBadge = _objectSpread({}, primary);
51
+ var warningStatusBadge = _objectSpread({}, warning);
52
+ var criticalStatusBadge = _objectSpread({}, danger);
53
+ var healthyStatusBadge = _objectSpread({}, success);
54
+ var secondaryStatusBadge = _objectSpread({}, secondary);
55
+ var countBadge = {
56
+ backgroundColor: '#F6F8FA !important',
57
+ '& span': {
58
+ color: 'black'
59
+ }
60
+ };
61
+ var countNeutral = {
62
+ backgroundColor: '#455469 !important',
63
+ '& span': {
64
+ color: 'white'
65
+ }
66
+ };
67
+ var itemBadgeWithSlot = {
68
+ bg: '#455469 !important',
69
+ fontWeight: 2,
70
+ '& span': {
71
+ color: 'gray-100'
72
+ },
73
+ '& svg': {
74
+ path: {
75
+ fill: 'gray-100'
76
+ }
77
+ }
34
78
  };
35
79
  var badges = {
36
- primary: {
37
- backgroundColor: '#155CBA !important',
80
+ baseBadge: baseBadge,
81
+ primary: primary,
82
+ secondary: secondary,
83
+ success: success,
84
+ danger: danger,
85
+ warning: warning,
86
+ info: info,
87
+ dark: dark,
88
+ activeStatusBadge: activeStatusBadge,
89
+ warningStatusBadge: warningStatusBadge,
90
+ criticalStatusBadge: criticalStatusBadge,
91
+ healthyStatusBadge: healthyStatusBadge,
92
+ secondaryStatusBadge: secondaryStatusBadge,
93
+ readOnlyFieldBadge: {
94
+ backgroundColor: '#F6F8FA !important',
38
95
  '& span': {
39
- color: 'active_light'
96
+ color: 'black'
40
97
  }
41
98
  },
42
- secondary: _objectSpread(_objectSpread({}, baseBadge), {}, {
43
- backgroundColor: '#324054 !important',
44
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
45
- color: 'gray-400'
46
- })
47
- }),
48
- baseBadge: _objectSpread({}, baseBadge),
49
- success: {
50
- backgroundColor: '#0E4326 !important',
99
+ selectedItemBadge: {
100
+ backgroundColor: '#1a73e8 !important',
101
+ paddingRight: '0px !important',
102
+ pl: '10px',
51
103
  '& span': {
52
- color: 'success_light'
104
+ fontSize: '14px',
105
+ color: 'gray-400',
106
+ fontWeight: 400
53
107
  }
54
108
  },
55
- danger: {
56
- backgroundColor: '#83231A !important',
109
+ countBadge: countBadge,
110
+ countNeutral: countNeutral,
111
+ itemBadgeWithSlot: itemBadgeWithSlot,
112
+ errorCalloutBadge: {
113
+ backgroundColor: '#23282e !important',
57
114
  '& span': {
58
- color: 'critical_light'
115
+ color: 'font.base'
59
116
  }
60
117
  },
61
- warning: {
62
- backgroundColor: '#664A1C !important',
118
+ infoCalloutBadge: {
119
+ backgroundColor: '#23282e !important',
63
120
  '& span': {
64
- color: 'yellow-100'
121
+ color: 'font.base'
65
122
  }
66
123
  },
67
- info: _objectSpread(_objectSpread({}, baseBadge), {}, {
68
- backgroundColor: '#324054 !important',
69
- '& span': _objectSpread({
70
- color: 'dark'
71
- }, badgeFont)
72
- }),
73
- dark: {
74
- backgroundColor: '#F6F8FA !important',
124
+ successCalloutBadge: {
125
+ backgroundColor: '#23282e !important',
75
126
  '& span': {
76
- color: 'black'
127
+ color: 'font.base'
77
128
  }
78
129
  },
79
- selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
80
- backgroundColor: '#1a73e8 !important',
81
- paddingRight: '0px !important',
82
- pl: '10px',
83
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
84
- fontSize: '14px',
85
- color: 'gray-400',
86
- fontWeight: 400
87
- })
88
- })
130
+ warningCalloutBadge: {
131
+ backgroundColor: '#23282e !important',
132
+ '& span': {
133
+ color: 'font.base'
134
+ }
135
+ }
89
136
  };
90
137
  var _default = badges;
91
138
  exports["default"] = _default;
@@ -13,6 +13,11 @@ export declare const warning: {
13
13
  dark: string;
14
14
  light: string;
15
15
  };
16
+ export declare const info: {
17
+ bright: string;
18
+ dark: string;
19
+ light: string;
20
+ };
16
21
  declare const colors: {
17
22
  badge: {
18
23
  textColor: string;
@@ -37,6 +42,11 @@ declare const colors: {
37
42
  dark: string;
38
43
  light: string;
39
44
  };
45
+ info: {
46
+ bright: string;
47
+ dark: string;
48
+ light: string;
49
+ };
40
50
  text: {
41
51
  primary: string;
42
52
  secondary: string;
@@ -262,7 +272,6 @@ declare const colors: {
262
272
  mediumteal: string;
263
273
  mediumcyan: string;
264
274
  secondary: string;
265
- info: string;
266
275
  danger: string;
267
276
  light: string;
268
277
  dark: string;
@@ -12,7 +12,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
12
12
  _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
- exports.warning = exports.success = exports["default"] = exports.critical = void 0;
15
+ exports.warning = exports.success = exports.info = exports["default"] = exports.critical = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _colorTokens = require("../tokens/colorTokens");
18
18
  var _iconWrapper = require("./iconWrapper");
@@ -71,8 +71,8 @@ var colorsObject = {
71
71
  };
72
72
  var critical = {
73
73
  bright: colorsObject.red,
74
- dark: _colorTokens.nextGenColors['red-600'],
75
- light: colorsObject.red
74
+ dark: _colorTokens.nextGenColors['red-700'],
75
+ light: _colorTokens.nextGenColors['red-100']
76
76
  };
77
77
  exports.critical = critical;
78
78
  var success = {
@@ -87,6 +87,12 @@ var warning = {
87
87
  light: _colorTokens.nextGenColors['yellow-100']
88
88
  };
89
89
  exports.warning = warning;
90
+ var info = {
91
+ bright: colorsObject.blue,
92
+ dark: _colorTokens.nextGenColors['blue-600'],
93
+ light: _colorTokens.nextGenColors['blue-100']
94
+ };
95
+ exports.info = info;
90
96
  var text = {
91
97
  primary: _colorTokens.nextGenColors['gray-900'],
92
98
  secondary: _colorTokens.nextGenColors['gray-500'],
@@ -117,7 +123,7 @@ var card = {
117
123
  gray: _colorTokens.nextGenColors['gray-100']
118
124
  };
119
125
  var badge = {
120
- textColor: _colorTokens.nextGenColors['gray-900'],
126
+ textColor: _colorTokens.nextGenColors.font.base,
121
127
  background: _colorTokens.nextGenColors['gray-100']
122
128
  };
123
129
  var tooltip = _colorTokens.nextGenColors['gray-900'];
@@ -127,6 +133,7 @@ var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColo
127
133
  critical: critical,
128
134
  success: success,
129
135
  warning: warning,
136
+ info: info,
130
137
  text: text,
131
138
  border: border,
132
139
  active: colorsObject.blue,
@@ -1,7 +1,6 @@
1
1
  declare const nextGenConvertedComponents: string[];
2
2
  export declare const componentSpecificNextGenBlacklist: {
3
3
  AstroProvider: string[];
4
- Badge: string[];
5
4
  Messages: string[];
6
5
  MultivaluesField: string[];
7
6
  PasswordField: string[];
@@ -8,7 +8,6 @@ exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNe
8
8
  var nextGenConvertedComponents = ['GridList', 'DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'StatusIcon', 'Callout', 'Table', 'TableBase', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField'];
9
9
  var componentSpecificNextGenBlacklist = {
10
10
  AstroProvider: ['Default', 'With Custom Theme Override'],
11
- Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
12
11
  Messages: ['Customization'],
13
12
  MultivaluesField: ['Condensed', 'Condensed With Section'],
14
13
  PasswordField: ['Success'],