@pingux/astro 2.136.1-alpha.3 → 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
@@ -18,75 +18,99 @@ var _button = _interopRequireDefault(require("./button"));
18
18
  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; }
19
19
  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; }
20
20
  var badgeFont = {
21
- fontSize: '11.25px',
21
+ fontSize: '12px',
22
22
  fontWeight: 2
23
23
  };
24
- var baseBadge = {
24
+ var badgeIconStyle = {
25
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
26
+ color: 'inherit'
27
+ }),
28
+ '& button': {
29
+ alignSelf: 'center',
30
+ p: '0',
31
+ bg: 'transparent',
32
+ '&.is-hovered': {
33
+ bg: 'transparent',
34
+ '& svg': {
35
+ path: {
36
+ fill: 'inherit'
37
+ }
38
+ }
39
+ }
40
+ },
41
+ '& svg': {
42
+ path: {
43
+ fill: 'inherit'
44
+ }
45
+ }
46
+ };
47
+ var baseBadge = _objectSpread({
25
48
  alignItems: 'center',
26
49
  justifyContent: 'center',
27
50
  py: '.25em',
28
51
  px: '.4em',
29
52
  borderRadius: '4px',
30
- fontSize: '11.25px',
53
+ maxHeight: '18px',
54
+ minHeight: '18px',
55
+ fontSize: '12px',
31
56
  alignSelf: 'flex-start',
32
57
  display: 'inline-flex !important',
33
58
  width: 'fit-content',
34
- '& span': _objectSpread({}, badgeFont)
35
- };
59
+ color: 'text.primary'
60
+ }, badgeIconStyle);
36
61
  var primary = _objectSpread(_objectSpread({}, baseBadge), {}, {
37
- backgroundColor: '#eaf1fb !important',
38
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
39
- color: '#1967d2'
40
- })
62
+ backgroundColor: '#EAF2FD !important',
63
+ color: 'blue-600'
41
64
  });
42
65
  var secondary = _objectSpread(_objectSpread({}, baseBadge), {}, {
43
66
  backgroundColor: '#f6f8fa !important',
44
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
45
- color: 'gray-900'
46
- })
67
+ color: 'gray-900'
47
68
  });
48
69
  var success = _objectSpread(_objectSpread({}, baseBadge), {}, {
49
- backgroundColor: '#d3eddf !important',
50
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
51
- color: 'success.dark'
52
- })
70
+ backgroundColor: '#D3EDDF !important',
71
+ color: 'success.dark'
53
72
  });
54
73
  var danger = _objectSpread(_objectSpread({}, baseBadge), {}, {
55
- backgroundColor: '#f8d8d5 !important',
56
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
57
- color: 'red-700'
58
- })
74
+ backgroundColor: '#F8D8D5 !important',
75
+ color: 'red-700'
59
76
  });
60
77
  var warning = _objectSpread(_objectSpread({}, baseBadge), {}, {
61
- backgroundColor: '#fff1da !important',
62
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
63
- color: 'yellow-700'
64
- })
78
+ backgroundColor: '#FFF1DA !important',
79
+ color: 'yellow-800'
65
80
  });
66
81
  var dark = _objectSpread(_objectSpread({}, baseBadge), {}, {
67
82
  backgroundColor: 'black !important',
68
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
69
- color: 'white'
70
- })
83
+ color: 'white'
84
+ });
85
+ var info = _objectSpread(_objectSpread({}, baseBadge), {}, {
86
+ backgroundColor: '#EAF2FD !important',
87
+ color: 'darkblue'
71
88
  });
72
89
  var selectedItemBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
73
90
  backgroundColor: '#eaf2fd !important',
74
91
  paddingRight: '0px !important',
75
92
  '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
76
- fontSize: '14px',
77
93
  color: 'text.primary',
78
94
  fontWeight: 400
79
95
  })
80
96
  });
81
- var readOnlyBadge = {
82
- '& span': {
83
- fontSize: '14px'
84
- }
85
- };
86
- var info = _objectSpread(_objectSpread({}, baseBadge), {}, {
87
- backgroundColor: '#eaf2fd !important',
97
+ var readOnlyBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
98
+ border: 'none',
99
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
100
+ color: 'text.primary',
101
+ fontWeight: 2
102
+ })
103
+ });
104
+ var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
88
105
  '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
89
- color: 'darkblue'
106
+ color: 'white'
107
+ })
108
+ });
109
+ var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
110
+ bg: '#f6f8fa !important',
111
+ fontWeight: 2,
112
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
113
+ color: 'text.primary'
90
114
  })
91
115
  });
92
116
  var badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
@@ -106,23 +130,52 @@ var warningStatusBadge = _objectSpread(_objectSpread({}, warning), dataTableBadg
106
130
  var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), dataTableBadge);
107
131
  var healthyStatusBadge = _objectSpread(_objectSpread({}, success), dataTableBadge);
108
132
  var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), dataTableBadge);
133
+ var countBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
134
+ backgroundColor: '#455469 !important',
135
+ '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
136
+ color: 'white'
137
+ })
138
+ });
139
+ var countNeutral = _objectSpread({}, secondary);
140
+ var invertedRemovableBadge = _objectSpread({}, dark);
141
+ var removableBadge = _objectSpread(_objectSpread({}, secondary), {}, {
142
+ border: 'none'
143
+ });
109
144
  var badges = {
110
145
  baseBadge: _objectSpread({}, baseBadge),
111
146
  "default": _objectSpread({}, baseBadge),
112
147
  primary: primary,
148
+ countBadge: countBadge,
149
+ countNeutral: countNeutral,
113
150
  secondary: secondary,
114
151
  success: success,
115
152
  danger: danger,
116
153
  warning: warning,
117
154
  dark: dark,
155
+ info: info,
118
156
  selectedItemBadge: selectedItemBadge,
119
157
  readOnlyBadge: readOnlyBadge,
158
+ readOnlyFieldBadge: readOnlyFieldBadge,
120
159
  activeStatusBadge: activeStatusBadge,
121
160
  warningStatusBadge: warningStatusBadge,
122
161
  criticalStatusBadge: criticalStatusBadge,
123
162
  healthyStatusBadge: healthyStatusBadge,
124
163
  secondaryStatusBadge: secondaryStatusBadge,
125
164
  badgeDeleteButton: badgeDeleteButton,
126
- info: info
165
+ itemBadgeWithSlot: itemBadgeWithSlot,
166
+ removableBadge: removableBadge,
167
+ invertedRemovableBadge: invertedRemovableBadge,
168
+ errorCalloutBadge: {
169
+ backgroundColor: 'white !important'
170
+ },
171
+ infoCalloutBadge: {
172
+ backgroundColor: 'white !important'
173
+ },
174
+ successCalloutBadge: {
175
+ backgroundColor: 'white !important'
176
+ },
177
+ warningCalloutBadge: {
178
+ backgroundColor: 'white !important'
179
+ }
127
180
  };
128
181
  exports.badges = badges;
@@ -1131,6 +1131,66 @@ declare const buttons: {
1131
1131
  bg: string;
1132
1132
  };
1133
1133
  };
1134
+ badgeDeleteButton: {
1135
+ transition: string;
1136
+ height: number;
1137
+ p: number;
1138
+ width: number;
1139
+ border: string;
1140
+ '&.is-focused': {
1141
+ backgroundColor: string;
1142
+ outline: string;
1143
+ outlineColor: string;
1144
+ outlineOffset: string;
1145
+ };
1146
+ '&.is-pressed': {
1147
+ backgroundColor: string;
1148
+ borderColor: string;
1149
+ path: {
1150
+ fill: string;
1151
+ };
1152
+ };
1153
+ '&.is-hovered': {
1154
+ bg: string;
1155
+ };
1156
+ cursor: string;
1157
+ outline: string;
1158
+ borderRadius: string;
1159
+ borderColor: string;
1160
+ path: {
1161
+ fill: string;
1162
+ };
1163
+ };
1164
+ invertedBadgeDeleteButton: {
1165
+ transition: string;
1166
+ height: number;
1167
+ p: number;
1168
+ width: number;
1169
+ border: string;
1170
+ '&.is-focused': {
1171
+ backgroundColor: string;
1172
+ outline: string;
1173
+ outlineColor: string;
1174
+ outlineOffset: string;
1175
+ };
1176
+ '&.is-pressed': {
1177
+ backgroundColor: string;
1178
+ borderColor: string;
1179
+ path: {
1180
+ fill: string;
1181
+ };
1182
+ };
1183
+ '&.is-hovered': {
1184
+ bg: string;
1185
+ };
1186
+ cursor: string;
1187
+ outline: string;
1188
+ borderRadius: string;
1189
+ borderColor: string;
1190
+ path: {
1191
+ fill: string;
1192
+ };
1193
+ };
1134
1194
  clearSelectionButton: {
1135
1195
  top: string;
1136
1196
  right: string;
@@ -385,6 +385,25 @@ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButto
385
385
  alignItems: 'center',
386
386
  justifyContent: 'center'
387
387
  });
388
+ var badgeDeleteButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
389
+ height: 14,
390
+ p: 0,
391
+ width: 14,
392
+ border: 'none',
393
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
394
+ backgroundColor: 'gray-100'
395
+ }),
396
+ '&.is-pressed': {
397
+ backgroundColor: 'gray-100',
398
+ borderColor: 'gray-200',
399
+ path: {
400
+ fill: 'dark'
401
+ }
402
+ },
403
+ '&.is-hovered': {
404
+ bg: 'transparent'
405
+ }
406
+ }, transitions);
388
407
  var searchClearButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
389
408
  width: '20px',
390
409
  height: '20px',
@@ -522,6 +541,8 @@ var iconButtons = {
522
541
  bg: 'gray-900'
523
542
  }
524
543
  },
544
+ badgeDeleteButton: badgeDeleteButton,
545
+ invertedBadgeDeleteButton: _objectSpread({}, badgeDeleteButton),
525
546
  clearSelectionButton: _objectSpread(_objectSpread({}, searchClearButton), {}, {
526
547
  top: '15px',
527
548
  right: '1rem',
@@ -1,211 +1,3 @@
1
- export declare const badgeDeleteButton: {
2
- borderRadius: string;
3
- cursor: string;
4
- height: number;
5
- p: number;
6
- width: number;
7
- transition: string;
8
- outline: string;
9
- border: string;
10
- borderColor: string;
11
- path: {
12
- fill: string;
13
- };
14
- '&.is-focused': {
15
- outline: string;
16
- outlineColor: string;
17
- outlineOffset: string;
18
- };
19
- '&.is-hovered': {
20
- backgroundColor: string;
21
- path: {
22
- fill: string;
23
- };
24
- };
25
- '&.is-pressed': {
26
- backgroundColor: string;
27
- borderColor: string;
28
- path: {
29
- fill: string;
30
- };
31
- };
32
- };
33
- export declare const badges: {
34
- primary: {
35
- backgroundColor: string;
36
- '& span': {
37
- color: string;
38
- fontSize: string;
39
- fontWeight: number;
40
- };
41
- alignItems: string;
42
- justifyContent: string;
43
- py: string;
44
- px: string;
45
- borderRadius: string;
46
- fontSize: string;
47
- alignSelf: string;
48
- display: string;
49
- width: string;
50
- };
51
- baseBadge: {
52
- backgroundColor: string;
53
- '& span': {
54
- color: string;
55
- fontSize: string;
56
- fontWeight: number;
57
- };
58
- alignItems: string;
59
- justifyContent: string;
60
- py: string;
61
- px: string;
62
- borderRadius: string;
63
- fontSize: string;
64
- alignSelf: string;
65
- display: string;
66
- width: string;
67
- };
68
- secondary: {
69
- backgroundColor: string;
70
- '& span': {
71
- color: string;
72
- fontSize: string;
73
- fontWeight: number;
74
- };
75
- alignItems: string;
76
- justifyContent: string;
77
- py: string;
78
- px: string;
79
- borderRadius: string;
80
- fontSize: string;
81
- alignSelf: string;
82
- display: string;
83
- width: string;
84
- };
85
- success: {
86
- backgroundColor: string;
87
- '& span': {
88
- color: string;
89
- fontSize: string;
90
- fontWeight: number;
91
- };
92
- alignItems: string;
93
- justifyContent: string;
94
- py: string;
95
- px: string;
96
- borderRadius: string;
97
- fontSize: string;
98
- alignSelf: string;
99
- display: string;
100
- width: string;
101
- };
102
- danger: {
103
- backgroundColor: string;
104
- '& span': {
105
- color: string;
106
- fontSize: string;
107
- fontWeight: number;
108
- };
109
- alignItems: string;
110
- justifyContent: string;
111
- py: string;
112
- px: string;
113
- borderRadius: string;
114
- fontSize: string;
115
- alignSelf: string;
116
- display: string;
117
- width: string;
118
- };
119
- warning: {
120
- backgroundColor: string;
121
- '& span': {
122
- color: string;
123
- fontSize: string;
124
- fontWeight: number;
125
- };
126
- alignItems: string;
127
- justifyContent: string;
128
- py: string;
129
- px: string;
130
- borderRadius: string;
131
- fontSize: string;
132
- alignSelf: string;
133
- display: string;
134
- width: string;
135
- };
136
- dark: {
137
- backgroundColor: string;
138
- '& span': {
139
- color: string;
140
- fontSize: string;
141
- fontWeight: number;
142
- };
143
- alignItems: string;
144
- justifyContent: string;
145
- py: string;
146
- px: string;
147
- borderRadius: string;
148
- fontSize: string;
149
- alignSelf: string;
150
- display: string;
151
- width: string;
152
- };
153
- selectedItemBadge: {
154
- backgroundColor: string;
155
- paddingRight: string;
156
- '& span': {
157
- fontSize: string;
158
- color: string;
159
- fontWeight: number;
160
- };
161
- alignItems: string;
162
- justifyContent: string;
163
- py: string;
164
- px: string;
165
- borderRadius: string;
166
- fontSize: string;
167
- alignSelf: string;
168
- display: string;
169
- width: string;
170
- };
171
- readOnlyBadge: {
172
- '& span': {
173
- fontSize: string;
174
- };
175
- };
176
- badgeDeleteButton: {
177
- borderRadius: string;
178
- cursor: string;
179
- height: number;
180
- p: number;
181
- width: number;
182
- transition: string;
183
- outline: string;
184
- border: string;
185
- borderColor: string;
186
- path: {
187
- fill: string;
188
- };
189
- '&.is-focused': {
190
- outline: string;
191
- outlineColor: string;
192
- outlineOffset: string;
193
- };
194
- '&.is-hovered': {
195
- backgroundColor: string;
196
- path: {
197
- fill: string;
198
- };
199
- };
200
- '&.is-pressed': {
201
- backgroundColor: string;
202
- borderColor: string;
203
- path: {
204
- fill: string;
205
- };
206
- };
207
- };
208
- };
209
1
  declare const _default: {
210
2
  attachment: {
211
3
  container: {
@@ -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,19 +8,18 @@ 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
16
14
  });
17
- exports["default"] = exports.badges = exports.badgeDeleteButton = void 0;
15
+ exports["default"] = void 0;
18
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
19
17
  var _Attachment = _interopRequireDefault(require("../../../../components/AIComponents/Attachment/Attachment.styles"));
20
18
  var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/Skeleton.styles"));
21
19
  var _codeView = _interopRequireDefault(require("../codeView/codeView"));
22
20
  var _colors = _interopRequireDefault(require("../colors/colors"));
23
21
  var _avatar = require("./avatar");
24
- var _button = _interopRequireWildcard(require("./button"));
22
+ var _button = require("./button");
25
23
  var _callout = _interopRequireDefault(require("./callout"));
26
24
  var _dataTable = require("./dataTable");
27
25
  var _footer = require("./footer");
@@ -39,8 +37,6 @@ var _table = require("./table");
39
37
  var _tableBase = require("./tableBase");
40
38
  var _tabs = require("./tabs");
41
39
  var _tooltip = _interopRequireDefault(require("./tooltip"));
42
- 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); }
43
- 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; }
44
40
  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; }
45
41
  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; }
46
42
  var fieldHelperText = {
@@ -62,90 +58,6 @@ var fieldHelperText = {
62
58
  }
63
59
  }
64
60
  };
65
- var badgeFont = {
66
- fontSize: '11.25px',
67
- fontWeight: 2
68
- };
69
- var baseBadge = {
70
- alignItems: 'center',
71
- justifyContent: 'center',
72
- py: '.25em',
73
- px: '.4em',
74
- borderRadius: '4px',
75
- fontSize: '11.25px',
76
- alignSelf: 'flex-start',
77
- display: 'inline-flex !important',
78
- width: 'fit-content',
79
- '& span': _objectSpread({}, badgeFont)
80
- };
81
- var badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
82
- borderRadius: '50%',
83
- cursor: 'pointer',
84
- height: 14,
85
- p: 0,
86
- width: 14
87
- });
88
- exports.badgeDeleteButton = badgeDeleteButton;
89
- var badges = {
90
- primary: _objectSpread(_objectSpread({}, baseBadge), {}, {
91
- backgroundColor: '#eaf1fb !important',
92
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
93
- color: '#1967d2'
94
- })
95
- }),
96
- baseBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
97
- backgroundColor: '#eaf1fb !important',
98
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
99
- color: '#1967d2'
100
- })
101
- }),
102
- secondary: _objectSpread(_objectSpread({}, baseBadge), {}, {
103
- backgroundColor: '#f6f8fa !important',
104
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
105
- color: 'gray-900'
106
- })
107
- }),
108
- success: _objectSpread(_objectSpread({}, baseBadge), {}, {
109
- backgroundColor: '#d3eddf !important',
110
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
111
- color: 'success.dark'
112
- })
113
- }),
114
- danger: _objectSpread(_objectSpread({}, baseBadge), {}, {
115
- backgroundColor: '#f8d8d5 !important',
116
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
117
- color: 'red-700'
118
- })
119
- }),
120
- warning: _objectSpread(_objectSpread({}, baseBadge), {}, {
121
- backgroundColor: '#fff1da !important',
122
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
123
- color: 'yellow-700'
124
- })
125
- }),
126
- dark: _objectSpread(_objectSpread({}, baseBadge), {}, {
127
- backgroundColor: 'black !important',
128
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
129
- color: 'white'
130
- })
131
- }),
132
- selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
133
- backgroundColor: '#eaf2fd !important',
134
- paddingRight: '0px !important',
135
- '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
136
- fontSize: '14px',
137
- color: 'text.primary',
138
- fontWeight: 400
139
- })
140
- }),
141
- readOnlyBadge: {
142
- '& span': {
143
- fontSize: '14px'
144
- }
145
- },
146
- badgeDeleteButton: badgeDeleteButton
147
- };
148
- exports.badges = badges;
149
61
  var modalSize = {
150
62
  xs: ['100%', '300px', '300px', '300px', '300px', '300px'],
151
63
  sm: ['100%', '500px', '500px', '500px', '500px', '500px'],