@pingux/astro 2.123.0 → 2.124.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.
@@ -156,10 +156,18 @@ declare const _default: {
156
156
  backgroundColor: string;
157
157
  borderColor: string;
158
158
  color: string;
159
+ path: {
160
+ fill: string;
161
+ };
159
162
  };
160
163
  '&.is-hovered': {
164
+ boxShadow: string;
161
165
  backgroundColor: string;
166
+ borderColor: string;
162
167
  color: string;
168
+ path: {
169
+ fill: string;
170
+ };
163
171
  };
164
172
  alignItems: string;
165
173
  justifyContent: string;
@@ -199,7 +207,14 @@ declare const _default: {
199
207
  borderColor: string;
200
208
  };
201
209
  '&.is-hovered': {
210
+ boxShadow: string;
211
+ backgroundColor: string;
212
+ borderColor: string;
213
+ };
214
+ '&.is-focused': {
202
215
  backgroundColor: string;
216
+ borderColor: string;
217
+ outline: string;
203
218
  };
204
219
  alignItems: string;
205
220
  justifyContent: string;
@@ -222,11 +237,6 @@ declare const _default: {
222
237
  '&.is-disabled': {
223
238
  opacity: number;
224
239
  };
225
- '&.is-focused': {
226
- outline: string;
227
- outlineColor: string;
228
- outlineOffset: string;
229
- };
230
240
  transition: string;
231
241
  };
232
242
  navBarLogoLink: {
@@ -12,7 +12,7 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
12
12
  var _excluded = ["items"],
13
13
  _excluded2 = ["defaultSelectedKeys", "direction", "disabledKeys", "containerProps", "hasAutoFocus", "hasNoStatusIndicator", "helperText", "inputProps", "isDisabled", "isNotFlippable", "isReadOnly", "isRequired", "label", "loadingState", "mode", "onBlur", "onFocus", "onInputChange", "onKeyDown", "onKeyUp", "onLoadMore", "onLoadPrev", "onOpenChange", "onSelectionChange", "placeholder", "readOnlyKeys", "selectedKeys", "scrollBoxProps", "status"];
14
14
  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; }
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context11, _context12; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context11 = ownKeys(Object(source), !0)).call(_context11, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context12 = ownKeys(Object(source))).call(_context12, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context13, _context14; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context13 = ownKeys(Object(source), !0)).call(_context13, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context14 = ownKeys(Object(source))).call(_context14, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
17
17
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
18
18
  import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
@@ -42,7 +42,7 @@ import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusP
42
42
  import ListBox from '../ListBox';
43
43
  import { jsx as ___EmotionJSX } from "@emotion/react";
44
44
  var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
45
- var _context8, _listBoxRef$current2;
45
+ var _context10, _listBoxRef$current2;
46
46
  var initialItems = props.items,
47
47
  otherProps = _objectWithoutProperties(props, _excluded);
48
48
  var defaultSelectedKeys = otherProps.defaultSelectedKeys,
@@ -195,17 +195,33 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
195
195
  minWidth: menuWidth
196
196
  });
197
197
  useEffect(function () {
198
- if (defaultSelectedKeys) selectionManager.setSelectedKeys(defaultSelectedKeys);
198
+ if (defaultSelectedKeys) {
199
+ selectionManager.setSelectedKeys(defaultSelectedKeys);
200
+ setItems(function (prevItems) {
201
+ return _filterInstanceProperty(prevItems).call(prevItems, function (item) {
202
+ var _context3;
203
+ return !_includesInstanceProperty(_context3 = _Array$from(defaultSelectedKeys)).call(_context3, item.key);
204
+ });
205
+ });
206
+ }
199
207
  }, []);
200
208
  useEffect(function () {
201
- if (selectedKeys) selectionManager.setSelectedKeys(selectedKeys);
209
+ if (selectedKeys) {
210
+ selectionManager.setSelectedKeys(selectedKeys);
211
+ setItems(function (prevItems) {
212
+ return _filterInstanceProperty(prevItems).call(prevItems, function (item) {
213
+ var _context4;
214
+ return !_includesInstanceProperty(_context4 = _Array$from(selectedKeys)).call(_context4, item.key);
215
+ });
216
+ });
217
+ }
202
218
  }, []);
203
219
  useEffect(function () {
204
220
  if (onOpenChange) onOpenChange(isOpen);
205
221
  if (!isOpen) setActiveDescendant('');
206
222
  }, [isOpen]);
207
223
  var addNewBadgeFromInput = function addNewBadgeFromInput(inputValue) {
208
- var _context3, _context4;
224
+ var _context5, _context6;
209
225
  var key = _trimInstanceProperty(inputValue).call(inputValue);
210
226
  if (key === '') {
211
227
  return;
@@ -213,8 +229,8 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
213
229
  if (state.selectionManager.isSelected(key)) {
214
230
  return;
215
231
  }
216
- selectionManager.setSelectedKeys(_concatInstanceProperty(_context3 = []).call(_context3, _Array$from(selectionManager.state.selectedKeys), [key]));
217
- setCustomItems(_concatInstanceProperty(_context4 = []).call(_context4, customItems, [{
232
+ selectionManager.setSelectedKeys(_concatInstanceProperty(_context5 = []).call(_context5, _Array$from(selectionManager.state.selectedKeys), [key]));
233
+ setCustomItems(_concatInstanceProperty(_context6 = []).call(_context6, customItems, [{
218
234
  id: key,
219
235
  key: key,
220
236
  name: key
@@ -292,8 +308,8 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
292
308
  if (onKeyDown) onKeyDown(e.nativeEvent);
293
309
  };
294
310
  var deleteItem = function deleteItem(key, e) {
295
- var _context5;
296
- var activeBadgesKeys = _reduceInstanceProperty(_context5 = closeBadgeRefs.current).call(_context5, function (result, item) {
311
+ var _context7;
312
+ var activeBadgesKeys = _reduceInstanceProperty(_context7 = closeBadgeRefs.current).call(_context7, function (result, item) {
297
313
  if (item) {
298
314
  result.push(item.dataset.item);
299
315
  }
@@ -328,8 +344,8 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
328
344
  }, name);
329
345
  };
330
346
  var readOnlyInputEntry = isReadOnly && (readOnlyKeys.length ? _mapInstanceProperty(readOnlyKeys).call(readOnlyKeys, function (key) {
331
- var _context6, _context7;
332
- var item = _findInstanceProperty(_context6 = _concatInstanceProperty(_context7 = []).call(_context7, initialItems, customItems)).call(_context6, function (el) {
347
+ var _context8, _context9;
348
+ var item = _findInstanceProperty(_context8 = _concatInstanceProperty(_context9 = []).call(_context9, initialItems, customItems)).call(_context8, function (el) {
333
349
  return el.key === key;
334
350
  });
335
351
  if (item) {
@@ -393,9 +409,9 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
393
409
  }
394
410
  }))));
395
411
  };
396
- var selectedItems = ___EmotionJSX(React.Fragment, null, _mapInstanceProperty(_context8 = _Array$from(selectionManager.selectedKeys)).call(_context8, function (key, i) {
397
- var _context9, _context10;
398
- var item = _findInstanceProperty(_context9 = _concatInstanceProperty(_context10 = []).call(_context10, initialItems, customItems)).call(_context9, function (el) {
412
+ var selectedItems = ___EmotionJSX(React.Fragment, null, _mapInstanceProperty(_context10 = _Array$from(selectionManager.selectedKeys)).call(_context10, function (key, i) {
413
+ var _context11, _context12;
414
+ var item = _findInstanceProperty(_context11 = _concatInstanceProperty(_context12 = []).call(_context12, initialItems, customItems)).call(_context11, function (el) {
399
415
  return el.key === key;
400
416
  });
401
417
  if (item) {
@@ -675,6 +675,20 @@ test('default selected keys', function () {
675
675
  var secondBadge = screen.getByText(items[2].name);
676
676
  expect(secondBadge).toBeInTheDocument();
677
677
  });
678
+ test('default selected keys are removed from the list', function () {
679
+ getComponent({
680
+ defaultSelectedKeys: [items[1].key, items[2].key]
681
+ });
682
+ var input = screen.getByRole('combobox');
683
+ userEvent.click(input);
684
+ var listbox = screen.queryByRole('listbox');
685
+ userEvent.type(listbox, '{arrowdown}', {
686
+ skipClick: true
687
+ });
688
+ var options = within(listbox).getAllByRole('option');
689
+ expect(options.length).toBe(1);
690
+ expect(within(options[0]).getByText(items[0].key)).toBeInTheDocument();
691
+ });
678
692
  test('selected keys', function () {
679
693
  getComponent({
680
694
  selectedKeys: [items[1].key, items[2].key]
@@ -686,6 +700,20 @@ test('selected keys', function () {
686
700
  var secondBadge = screen.getByText(items[2].name);
687
701
  expect(secondBadge).toBeInTheDocument();
688
702
  });
703
+ test('selected keys are removed from the list', function () {
704
+ getComponent({
705
+ selectedKeys: [items[1].key, items[2].key]
706
+ });
707
+ var input = screen.getByRole('combobox');
708
+ userEvent.click(input);
709
+ var listbox = screen.queryByRole('listbox');
710
+ userEvent.type(listbox, '{arrowdown}', {
711
+ skipClick: true
712
+ });
713
+ var options = within(listbox).getAllByRole('option');
714
+ expect(options.length).toBe(1);
715
+ expect(within(options[0]).getByText(items[0].key)).toBeInTheDocument();
716
+ });
689
717
  test('read only keys', function () {
690
718
  getComponent({
691
719
  readOnlyKeys: [items[1].key, items[2].key]
@@ -81,13 +81,156 @@ var buttons = {
81
81
  color: 'black'
82
82
  }
83
83
  },
84
- "default": {
84
+ inline: {
85
+ color: 'blue-400',
86
+ borderColor: 'blue-400',
87
+ '&.is-hovered': {
88
+ backgroundColor: 'active_hover',
89
+ color: 'black',
90
+ borderColor: 'blue'
91
+ },
92
+ '&.is-pressed': {
93
+ color: 'black',
94
+ borderColor: 'blue'
95
+ }
96
+ },
97
+ inlinePrimary: {
98
+ color: 'black',
99
+ '&.is-hovered': {
100
+ color: 'black'
101
+ },
102
+ '&.is-pressed': {
103
+ color: 'black'
104
+ }
105
+ },
106
+ withIcon: {
107
+ color: 'blue-400',
85
108
  borderColor: 'blue-400',
109
+ '&.is-hovered': {
110
+ backgroundColor: 'active_hover',
111
+ borderColor: 'blue',
112
+ color: 'black',
113
+ path: {
114
+ fill: 'black'
115
+ }
116
+ },
117
+ '&.is-pressed': {
118
+ color: 'black',
119
+ borderColor: 'blue',
120
+ path: {
121
+ fill: 'black'
122
+ }
123
+ }
124
+ },
125
+ primaryWithIcon: {
126
+ color: 'black',
127
+ path: {
128
+ fill: 'black'
129
+ },
130
+ '&.is-hovered': {
131
+ color: 'black',
132
+ path: {
133
+ fill: 'black'
134
+ }
135
+ },
136
+ '&.is-pressed': {
137
+ color: 'black',
138
+ path: {
139
+ fill: 'black'
140
+ }
141
+ }
142
+ },
143
+ inlineWithIcon: {
86
144
  color: 'blue-400',
145
+ borderColor: 'blue-400',
146
+ '&.is-hovered': {
147
+ color: 'black',
148
+ backgroundColor: 'active_hover',
149
+ borderColor: 'blue',
150
+ path: {
151
+ fill: 'black'
152
+ }
153
+ },
87
154
  '&.is-pressed': {
155
+ color: 'black',
156
+ borderColor: 'blue',
157
+ path: {
158
+ fill: 'black'
159
+ }
160
+ }
161
+ },
162
+ inlinePrimaryWithIcon: {
163
+ color: 'black',
164
+ path: {
165
+ fill: 'black'
166
+ },
167
+ '&.is-hovered': {
168
+ color: 'black',
169
+ path: {
170
+ fill: 'black'
171
+ }
172
+ },
173
+ '&.is-pressed': {
174
+ color: 'black',
175
+ path: {
176
+ fill: 'black'
177
+ }
178
+ }
179
+ },
180
+ colorBlock: {
181
+ bg: 'gray-200',
182
+ borderColor: 'gray-200',
183
+ path: {
184
+ fill: 'black'
185
+ },
186
+ '& span': {
187
+ color: 'black'
188
+ },
189
+ '&.is-hovered': {
190
+ bg: 'blue-100',
191
+ borderColor: 'blue-100'
192
+ },
193
+ '&.is-pressed': {
194
+ bg: 'blue-100',
195
+ borderColor: 'blue-100'
196
+ },
197
+ '&>svg': {
198
+ color: 'black',
199
+ fill: 'black'
200
+ }
201
+ },
202
+ colorBlockPrimary: {
203
+ path: {
204
+ fill: 'black'
205
+ },
206
+ '& span': {
88
207
  color: 'black'
89
208
  },
90
209
  '&.is-hovered': {
210
+ path: {
211
+ fill: 'black'
212
+ }
213
+ },
214
+ '&.is-pressed': {
215
+ path: {
216
+ fill: 'black'
217
+ }
218
+ },
219
+ '&>svg': {
220
+ color: 'black',
221
+ fill: 'black'
222
+ }
223
+ },
224
+ "default": {
225
+ color: 'blue-400',
226
+ borderColor: 'blue-400',
227
+ '&.is-pressed': {
228
+ color: 'black',
229
+ borderColor: 'blue'
230
+ },
231
+ '&.is-hovered': {
232
+ backgroundColor: 'active_hover',
233
+ borderColor: 'blue',
91
234
  color: 'black'
92
235
  }
93
236
  },
@@ -2,7 +2,6 @@ var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'Ic
2
2
  export var componentSpecificNextGenBlacklist = {
3
3
  AstroProvider: ['Default', 'With Custom Theme Override'],
4
4
  Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
5
- Button: ['Color Block Button', 'Text Icon Button'],
6
5
  Messages: ['Customization'],
7
6
  MultivaluesField: ['Condensed', 'Condensed With Section'],
8
7
  PasswordField: ['Success'],
@@ -124,10 +124,14 @@ export var nextGenColors = {
124
124
  'label': '#5e6d82'
125
125
  },
126
126
  'active': '#1a73e8',
127
+ 'active_hover': '#1462C8',
128
+ 'active_pressed': '#135CBC',
127
129
  'active_light': '#eaf2fd',
128
130
  'success': '#22a75f',
129
131
  'success_light': '#d3eddf',
130
132
  'critical': '#da3a2b',
133
+ 'critical_hover': '#BE2F21',
134
+ 'critical_pressed': '#B32C1F',
131
135
  'critical_light': '#f8d8d5',
132
136
  'warning': '#984c0c',
133
137
  'warning_light': '#ffe5d0'
@@ -13,14 +13,20 @@ import chroma from 'chroma-js';
13
13
  import { copyButton } from '../codeView/codeView';
14
14
  import colors from '../colors/colors';
15
15
  var primaryBlue = colors.primary,
16
- criticalRed = colors.critical;
16
+ primaryBlueHover = colors.active_hover,
17
+ primaryBluePress = colors.active_pressed,
18
+ criticalRedHover = colors.critical_hover,
19
+ criticalRedPress = colors.critical_pressed;
17
20
  var transitions = {
18
21
  transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
19
22
  };
23
+ var boxShadowNone = {
24
+ boxShadow: 'none !important'
25
+ };
20
26
  export var defaultFocus = {
21
27
  outline: '2px solid',
22
28
  outlineColor: 'active',
23
- outlineOffset: '3px'
29
+ outlineOffset: '2px'
24
30
  };
25
31
  var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
26
32
  alignItems: 'center',
@@ -46,7 +52,8 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
46
52
  '&.is-disabled': {
47
53
  opacity: 0.65
48
54
  },
49
- '&.is-focused': _objectSpread({}, defaultFocus)
55
+ '&.is-focused': _objectSpread({}, defaultFocus),
56
+ '&.is-hovered': boxShadowNone
50
57
  });
51
58
  var neutral = _objectSpread(_objectSpread(_objectSpread({
52
59
  color: 'gray-600'
@@ -63,11 +70,17 @@ var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
63
70
  backgroundColor: 'primary',
64
71
  borderColor: 'primary',
65
72
  '&.is-pressed': {
66
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
67
- borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
73
+ backgroundColor: primaryBluePress,
74
+ borderColor: primaryBluePress
68
75
  },
69
- '&.is-hovered': {
70
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
76
+ '&.is-hovered': _objectSpread({
77
+ backgroundColor: primaryBlueHover,
78
+ borderColor: primaryBlueHover
79
+ }, boxShadowNone),
80
+ '&.is-focused': {
81
+ backgroundColor: primaryBluePress,
82
+ borderColor: primaryBluePress,
83
+ outline: '2px solid'
71
84
  }
72
85
  });
73
86
  var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
@@ -75,19 +88,27 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
75
88
  borderColor: 'primary',
76
89
  color: 'primary',
77
90
  '&.is-pressed': {
78
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
79
- borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
80
- color: 'white'
91
+ backgroundColor: primaryBluePress,
92
+ borderColor: primaryBluePress,
93
+ color: 'white',
94
+ path: {
95
+ fill: 'white'
96
+ }
81
97
  },
82
- '&.is-hovered': {
83
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
84
- color: 'white'
85
- }
98
+ '&.is-hovered': _objectSpread({
99
+ backgroundColor: primaryBlue,
100
+ borderColor: primaryBlue,
101
+ color: 'white',
102
+ path: {
103
+ fill: 'white'
104
+ }
105
+ }, boxShadowNone)
86
106
  });
87
107
  var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
88
108
  backgroundColor: 'transparent',
89
109
  borderColor: 'border.base',
90
- color: 'text.secondary'
110
+ color: 'text.secondary',
111
+ '&.is-hovered': _objectSpread({}, boxShadowNone)
91
112
  });
92
113
  var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
93
114
  backgroundColor: 'transparent',
@@ -105,19 +126,74 @@ var inverse = _objectSpread(_objectSpread({}, buttonBase), {}, {
105
126
  });
106
127
  var critical = _objectSpread(_objectSpread({}, buttonBase), {}, {
107
128
  backgroundColor: 'critical.bright',
108
- borderColor: 'critical',
129
+ borderColor: 'critical.bright',
109
130
  color: 'white',
110
131
  '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
111
132
  outlineColor: 'critical.bright',
112
133
  backgroundColor: 'critical.dark'
113
134
  }),
114
135
  '&.is-pressed': {
115
- backgroundColor: chroma.mix(criticalRed.bright, 'black', 0.125, 'rgb').hex(),
116
- borderColor: chroma.mix(criticalRed.bright, 'black', 0.125, 'rgb').hex()
136
+ backgroundColor: criticalRedPress,
137
+ borderColor: criticalRedPress
117
138
  },
118
- '&.is-hovered': {
119
- backgroundColor: chroma.mix(criticalRed.bright, 'black', 0.075, 'rgb').hex(),
139
+ '&.is-hovered': _objectSpread({
140
+ backgroundColor: criticalRedHover,
141
+ borderColor: criticalRedHover,
142
+ color: 'white'
143
+ }, boxShadowNone)
144
+ });
145
+ var inline = _objectSpread(_objectSpread({}, buttonBase), {}, {
146
+ display: 'inline-flex',
147
+ height: '29px',
148
+ lineHeight: 1,
149
+ fontSize: 'sm',
150
+ borderRadius: '15px',
151
+ border: '1px solid',
152
+ alignSelf: 'center',
153
+ paddingTop: '0px',
154
+ paddingBottom: '0px',
155
+ backgroundColor: 'transparent',
156
+ color: primaryBlue,
157
+ borderColor: primaryBlue,
158
+ '&.is-pressed': {
159
+ backgroundColor: primaryBluePress,
160
+ borderColor: primaryBluePress,
120
161
  color: 'white'
162
+ },
163
+ '&.is-hovered': _objectSpread({
164
+ backgroundColor: primaryBlue,
165
+ borderColor: primaryBlue,
166
+ color: 'white',
167
+ path: {
168
+ fill: 'white'
169
+ }
170
+ }, boxShadowNone)
171
+ });
172
+ var inlinePrimary = _objectSpread(_objectSpread({}, buttonBase), {}, {
173
+ display: 'inline-flex',
174
+ height: '29px',
175
+ lineHeight: 1,
176
+ fontSize: 'sm',
177
+ borderRadius: '15px',
178
+ border: '1px solid',
179
+ alignSelf: 'center',
180
+ paddingTop: '0px',
181
+ paddingBottom: '0px',
182
+ backgroundColor: 'primary',
183
+ color: 'white',
184
+ borderColor: 'primary',
185
+ '&.is-pressed': {
186
+ backgroundColor: primaryBluePress,
187
+ borderColor: primaryBluePress
188
+ },
189
+ '&.is-hovered': _objectSpread({
190
+ backgroundColor: primaryBlueHover,
191
+ borderColor: primaryBlueHover
192
+ }, boxShadowNone),
193
+ '&.is-focused': {
194
+ backgroundColor: primaryBluePress,
195
+ borderColor: primaryBluePress,
196
+ outline: '2px solid'
121
197
  }
122
198
  });
123
199
  var checkboxButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
@@ -152,12 +228,68 @@ var paginationMenu = _objectSpread(_objectSpread({}, link), {}, {
152
228
  color: 'text.primary'
153
229
  });
154
230
  var withIcon = _objectSpread(_objectSpread({}, secondary), {}, {
155
- display: 'inline-flex'
231
+ display: 'inline-flex',
232
+ path: {
233
+ fill: primaryBlue
234
+ }
156
235
  });
157
236
  var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
158
237
  display: 'inline-flex',
159
238
  color: 'white'
160
239
  });
240
+ var inlineWithIcon = _objectSpread(_objectSpread({}, inline), {}, {
241
+ display: 'inline-flex',
242
+ path: {
243
+ fill: primaryBlue
244
+ }
245
+ });
246
+ var inlinePrimaryWithIcon = _objectSpread(_objectSpread({}, inlinePrimary), {}, {
247
+ display: 'inline-flex',
248
+ color: 'white'
249
+ });
250
+ var colorBlock = {
251
+ bg: 'gray-200',
252
+ borderColor: 'gray-200',
253
+ borderRadius: '1.75rem',
254
+ width: 150,
255
+ height: 50,
256
+ p: '5px 15px 5px 20px',
257
+ '&.is-hovered': _objectSpread({
258
+ bg: 'blue-100',
259
+ borderColor: 'blue-100'
260
+ }, boxShadowNone),
261
+ '&.is-focused': _objectSpread({}, defaultFocus),
262
+ '&.is-pressed': {
263
+ bg: 'blue-100',
264
+ borderColor: 'blue-100'
265
+ },
266
+ '&>svg': {
267
+ color: 'text.primary',
268
+ fill: 'text.primary'
269
+ }
270
+ };
271
+ var colorBlockPrimary = _objectSpread(_objectSpread({}, colorBlock), {}, {
272
+ bg: primaryBlue,
273
+ borderColor: primaryBlue,
274
+ '& span': {
275
+ color: 'white',
276
+ textAlign: 'left'
277
+ },
278
+ '&.is-hovered': _objectSpread({
279
+ backgroundColor: primaryBlueHover,
280
+ borderColor: primaryBlueHover,
281
+ color: 'white'
282
+ }, boxShadowNone),
283
+ '&.is-pressed': {
284
+ backgroundColor: primaryBluePress,
285
+ borderColor: primaryBluePress
286
+ },
287
+ '&.is-focused': {
288
+ backgroundColor: primaryBluePress,
289
+ borderColor: primaryBluePress,
290
+ outline: '2px solid'
291
+ }
292
+ });
161
293
  var aiChat = _objectSpread(_objectSpread({}, withIcon), {}, {
162
294
  maxWidth: 'fit-content',
163
295
  gap: 'sm',
@@ -325,12 +457,11 @@ var iconButtons = {
325
457
  backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
326
458
  borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
327
459
  },
328
- '&.is-hovered': {
460
+ '&.is-hovered': _objectSpread(_objectSpread({}, boxShadowNone), {}, {
329
461
  border: 'none !important',
330
- boxShadow: 'none !important',
331
462
  borderColor: 'none !important',
332
463
  backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
333
- },
464
+ }),
334
465
  '&.is-disabled': {
335
466
  backgroundColor: 'gray-300'
336
467
  }
@@ -354,12 +485,18 @@ var buttons = {
354
485
  tertiary: tertiary,
355
486
  inverse: inverse,
356
487
  critical: critical,
488
+ inline: inline,
489
+ inlinePrimary: inlinePrimary,
357
490
  checkboxButton: checkboxButton,
358
491
  checkboxActiveButton: checkboxActiveButton,
359
492
  outlineCritical: outlineCritical,
360
493
  link: link,
361
494
  withIcon: withIcon,
362
495
  primaryWithIcon: primaryWithIcon,
496
+ inlineWithIcon: inlineWithIcon,
497
+ inlinePrimaryWithIcon: inlinePrimaryWithIcon,
498
+ colorBlock: colorBlock,
499
+ colorBlockPrimary: colorBlockPrimary,
363
500
  iconButtons: iconButtons,
364
501
  modalCloseButton: modalCloseButton,
365
502
  aiChat: aiChat,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.123.0",
3
+ "version": "2.124.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",