@pingux/astro 2.147.1-alpha.1 → 2.148.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 (23) hide show
  1. package/lib/cjs/components/Badge/Badge.styles.d.ts +5 -1
  2. package/lib/cjs/components/Badge/Badge.styles.js +6 -2
  3. package/lib/cjs/components/ListBox/Option.js +7 -3
  4. package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
  5. package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -103
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +9 -0
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +11 -2
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +6 -0
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +7 -1
  10. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
  11. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
  12. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +3 -5
  13. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +3 -5
  14. package/lib/cjs/styles/themes/next-gen/variants/badges.js +5 -2
  15. package/lib/components/Badge/Badge.styles.js +6 -2
  16. package/lib/components/ListBox/Option.js +7 -3
  17. package/lib/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
  18. package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -103
  19. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +11 -2
  20. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +7 -1
  21. package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
  22. package/lib/styles/themes/next-gen/variants/badges.js +5 -2
  23. package/package.json +1 -1
@@ -440,12 +440,15 @@ declare const _default: {
440
440
  itemBadgeWithSlot: {
441
441
  p: number;
442
442
  my: number;
443
- backgroundColor: string;
443
+ bg: string;
444
444
  '& span': {
445
445
  color: string;
446
446
  mr: string;
447
447
  lineHeight: string;
448
448
  };
449
+ '& svg': {
450
+ fill: string;
451
+ };
449
452
  maxHeight: string;
450
453
  border: string;
451
454
  borderColor: string;
@@ -540,6 +543,7 @@ declare const _default: {
540
543
  };
541
544
  };
542
545
  selectedItemBadge: {
546
+ bg: string;
543
547
  py: number;
544
548
  pr: number;
545
549
  my: number;
@@ -59,6 +59,7 @@ var multivaluesBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
59
59
  }
60
60
  });
61
61
  var selectedItemBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
62
+ bg: '#4462ED !important',
62
63
  py: 3,
63
64
  pr: 0,
64
65
  my: 3
@@ -71,12 +72,15 @@ var readOnlyBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
71
72
  var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
72
73
  p: 3,
73
74
  my: 0,
74
- backgroundColor: 'white',
75
+ bg: 'white !important',
75
76
  '& span': {
76
77
  color: 'text.primary',
77
78
  mr: '2px',
78
79
  lineHeight: '16px'
79
80
  },
81
+ '& svg': {
82
+ fill: 'neutral.10'
83
+ },
80
84
  maxHeight: '22px'
81
85
  });
82
86
  var environmentBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -114,7 +118,7 @@ var badgeDeleteButton = _objectSpread(_objectSpread({}, deleteButton), {}, {
114
118
  }
115
119
  },
116
120
  '&.is-pressed': {
117
- 'path': {
121
+ path: {
118
122
  fill: 'white'
119
123
  },
120
124
  bg: '#4462ED !important'
@@ -136,19 +136,23 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
136
136
  onPointerOver: setFocusOnHover
137
137
  }, theseOptionProps, others, {
138
138
  "aria-label": ariaLabel
139
- }), isCondensed ? (0, _react2.jsx)(_Icon["default"], {
139
+ }), isCondensed ? (0, _react2.jsx)(_Box["default"], {
140
+ isRow: true,
141
+ alignItems: "center",
142
+ flex: "1"
143
+ }, (0, _react2.jsx)(_Icon["default"], {
140
144
  icon: isSelected ? CheckedIcon : UncheckedIcon,
141
145
  color: "active",
142
146
  size: "24px",
143
147
  mr: "xs",
144
148
  className: classNames,
145
149
  variant: "listBox.checkboxIcon"
146
- }) : isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
150
+ }), rendered) : (0, _react2.jsx)(_react["default"].Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
147
151
  icon: _CircleSmallIcon["default"],
148
152
  title: {
149
153
  name: 'Circle Small Icon'
150
154
  }
151
- }), rendered, isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
155
+ }), rendered), isSelected && isOnyx && shouldShowSelectedOption && (0, _react2.jsx)(_Icon["default"], {
152
156
  icon: _CheckIcon["default"],
153
157
  title: {
154
158
  name: 'Check Icon'
@@ -414,7 +414,6 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
414
414
  }, (0, _react2.jsx)(_.Badge, (0, _extends2["default"])({
415
415
  key: item.key,
416
416
  role: "presentation",
417
- bg: "active",
418
417
  variant: "selectedItemBadge",
419
418
  label: item.name,
420
419
  slots: item.slots
@@ -30,10 +30,11 @@ var _fill = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stabl
30
30
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
31
31
  var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout"));
32
32
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
33
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
34
33
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
34
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
35
35
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
36
36
  var _react = _interopRequireWildcard(require("react"));
37
+ var _PlusCircleMultipleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/PlusCircleMultipleOutlineIcon"));
37
38
  var _i18n = require("@react-aria/i18n");
38
39
  var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
39
40
  var _users = require("../../api/users");
@@ -120,99 +121,6 @@ var _default = {
120
121
  }
121
122
  };
122
123
  exports["default"] = _default;
123
- var VariableIcon = function VariableIcon(props) {
124
- return (0, _react2.jsx)("svg", (0, _extends2["default"])({
125
- width: "16",
126
- height: "16",
127
- viewBox: "0 0 16 16",
128
- fill: "none",
129
- xmlns: "http://www.w3.org/2000/svg",
130
- "aria-labelledby": "variable-icon-title"
131
- }, props), (0, _react2.jsx)("title", {
132
- id: "variable-icon-title"
133
- }, "Variable Icon"), (0, _react2.jsx)("g", {
134
- clipPath: "url(#clip0_709_18965)"
135
- }, (0, _react2.jsx)("circle", {
136
- cx: "8",
137
- cy: "8",
138
- r: "7.5",
139
- fill: "white",
140
- stroke: "#7AC7F2"
141
- }), (0, _react2.jsx)("path", {
142
- d: "M11.5042 4.25C12.0833 5.37917 12.3125 6.68333 12.1667 8C12.0833 9.31667 11.625 10.6208 10.8458 11.75L10.2083 11.3333C10.8792 10.3208 11.2708 9.16667 11.3333 8C11.475 6.83333 11.2875 5.67917 10.7917 4.66667L11.5042 4.25ZM5.15416 4.25L5.79166 4.66667C5.12083 5.67917 4.72916 6.83333 4.66666 8C4.525 9.16667 4.71666 10.3208 5.20833 11.3333L4.50416 11.75C3.92083 10.6208 3.6875 9.32083 3.83333 8C3.91666 6.68333 4.375 5.37917 5.15416 4.25ZM8.03333 7.45L9 6.10417H10.0542L8.47916 8.1875L9.39583 10.2375H8.45416L7.87916 8.83333L6.86666 10.2208H5.81666L7.44166 8.0875L6.55416 6.10417H7.5L8.03333 7.45Z",
143
- fill: "#7AC7F2"
144
- })), (0, _react2.jsx)("defs", null, (0, _react2.jsx)("clipPath", {
145
- id: "clip0_709_18965"
146
- }, (0, _react2.jsx)("rect", {
147
- width: "16",
148
- height: "16",
149
- fill: "white"
150
- }))));
151
- };
152
- var HTMLIcon = function HTMLIcon(props) {
153
- return (0, _react2.jsx)("svg", (0, _extends2["default"])({
154
- width: "16",
155
- height: "16",
156
- viewBox: "0 0 16 16",
157
- fill: "none",
158
- xmlns: "http://www.w3.org/2000/svg",
159
- "aria-labelledby": "html-icon-title"
160
- }, props), (0, _react2.jsx)("title", {
161
- id: "html-icon-title"
162
- }, "HTML Icon"), (0, _react2.jsx)("g", {
163
- clipPath: "url(#clip0_709_18936)"
164
- }, (0, _react2.jsx)("circle", {
165
- cx: "8",
166
- cy: "8",
167
- r: "7.5",
168
- fill: "white",
169
- stroke: "#2E5EA6"
170
- }), (0, _react2.jsx)("g", {
171
- clipPath: "url(#clip1_709_18936)"
172
- }, (0, _react2.jsx)("path", {
173
- d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
174
- fill: "#4660A2"
175
- }))), (0, _react2.jsx)("g", {
176
- clipPath: "url(#clip2_709_18936)"
177
- }, (0, _react2.jsx)("circle", {
178
- cx: "8",
179
- cy: "8",
180
- r: "7.5",
181
- fill: "white",
182
- stroke: "#2E5EA6"
183
- }), (0, _react2.jsx)("g", {
184
- clipPath: "url(#clip3_709_18936)"
185
- }, (0, _react2.jsx)("path", {
186
- d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
187
- fill: "#4660A2"
188
- }))), (0, _react2.jsx)("defs", null, (0, _react2.jsx)("clipPath", {
189
- className: "clip0_709_18936"
190
- }, (0, _react2.jsx)("rect", {
191
- width: "16",
192
- height: "16",
193
- fill: "white"
194
- })), (0, _react2.jsx)("clipPath", {
195
- className: "clip1_709_18936"
196
- }, (0, _react2.jsx)("rect", {
197
- width: "10",
198
- height: "10",
199
- fill: "white",
200
- transform: "translate(3 3)"
201
- })), (0, _react2.jsx)("clipPath", {
202
- className: "clip2_709_18936"
203
- }, (0, _react2.jsx)("rect", {
204
- width: "16",
205
- height: "16",
206
- fill: "white"
207
- })), (0, _react2.jsx)("clipPath", {
208
- className: "clip3_709_18936"
209
- }, (0, _react2.jsx)("rect", {
210
- width: "10",
211
- height: "10",
212
- fill: "white",
213
- transform: "translate(3 3)"
214
- }))));
215
- };
216
124
  var items = [{
217
125
  id: 1,
218
126
  name: 'Aardvark',
@@ -309,15 +217,14 @@ var itemsWithSlots = [{
309
217
  name: 'Aardvark',
310
218
  key: 'Aardvark',
311
219
  badgeProps: {
312
- variant: 'itemBadgeWithSlot',
313
- bg: 'white'
220
+ variant: 'itemBadgeWithSlot'
314
221
  },
315
222
  buttonProps: {
316
223
  variant: 'badgeDeleteButton'
317
224
  },
318
225
  slots: {
319
226
  leftIcon: (0, _react2.jsx)(_index.Icon, {
320
- icon: VariableIcon,
227
+ icon: _PlusCircleMultipleOutlineIcon["default"],
321
228
  size: 16
322
229
  })
323
230
  }
@@ -326,15 +233,14 @@ var itemsWithSlots = [{
326
233
  name: 'Kangaroo',
327
234
  key: 'Kangaroo',
328
235
  badgeProps: {
329
- variant: 'itemBadgeWithSlot',
330
- bg: 'white'
236
+ variant: 'itemBadgeWithSlot'
331
237
  },
332
238
  buttonProps: {
333
239
  variant: 'badgeDeleteButton'
334
240
  },
335
241
  slots: {
336
242
  leftIcon: (0, _react2.jsx)(_index.Icon, {
337
- icon: HTMLIcon,
243
+ icon: _PlusCircleMultipleOutlineIcon["default"],
338
244
  size: 16
339
245
  })
340
246
  }
@@ -343,15 +249,14 @@ var itemsWithSlots = [{
343
249
  name: 'Snake',
344
250
  key: 'Snake',
345
251
  badgeProps: {
346
- variant: 'itemBadgeWithSlot',
347
- bg: 'white'
252
+ variant: 'itemBadgeWithSlot'
348
253
  },
349
254
  buttonProps: {
350
255
  variant: 'badgeDeleteButton'
351
256
  },
352
257
  slots: {
353
258
  leftIcon: (0, _react2.jsx)(_index.Icon, {
354
- icon: HTMLIcon,
259
+ icon: _PlusCircleMultipleOutlineIcon["default"],
355
260
  size: 16
356
261
  })
357
262
  }
@@ -339,5 +339,14 @@ declare const buttons: {
339
339
  };
340
340
  };
341
341
  };
342
+ listBoxLink: {
343
+ color: string;
344
+ '&.is-pressed': {
345
+ color: string;
346
+ };
347
+ '&.is-focused': {
348
+ color: string;
349
+ };
350
+ };
342
351
  };
343
352
  export default buttons;
@@ -278,11 +278,20 @@ var buttons = {
278
278
  },
279
279
  '&.is-focused': {
280
280
  textDecoration: 'underline',
281
- color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.30, 'rgb').hex(),
281
+ color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex(),
282
282
  outline: 'none'
283
283
  }
284
284
  },
285
- iconButtons: iconButtons
285
+ iconButtons: iconButtons,
286
+ listBoxLink: {
287
+ color: 'blue-400',
288
+ '&.is-pressed': {
289
+ color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.45, 'rgb').hex()
290
+ },
291
+ '&.is-focused': {
292
+ color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex()
293
+ }
294
+ }
286
295
  };
287
296
  var _default = buttons;
288
297
  exports["default"] = _default;
@@ -471,6 +471,12 @@ declare const _default: {
471
471
  color: string;
472
472
  };
473
473
  };
474
+ popoverMenu: {
475
+ container: {
476
+ background: string;
477
+ border: string;
478
+ };
479
+ };
474
480
  dataTable: {
475
481
  selectableTableRow: {
476
482
  '&.is-selected': {
@@ -20,7 +20,7 @@ var listBox = {
20
20
  container: {
21
21
  backgroundColor: 'background.base',
22
22
  border: '1px solid',
23
- borderColor: 'border.input',
23
+ borderColor: 'transparent',
24
24
  borderRadius: '4px'
25
25
  },
26
26
  option: {
@@ -170,6 +170,12 @@ var _default = {
170
170
  skeleton: _skeleton["default"],
171
171
  footer: _footer.footer,
172
172
  tooltip: tooltip,
173
+ popoverMenu: {
174
+ container: {
175
+ background: '#23282e',
176
+ border: '1px solid #69788B'
177
+ }
178
+ },
173
179
  dataTable: {
174
180
  selectableTableRow: {
175
181
  '&.is-selected': {
@@ -7,7 +7,6 @@ export declare const componentSpecificNextGenBlacklist: {
7
7
  OverlayPanel: string[];
8
8
  DataTable: string[];
9
9
  Text: string[];
10
- MultivaluesField: string[];
11
10
  Tabs: string[];
12
11
  };
13
12
  export declare const astroBlacklistStory: {
@@ -14,7 +14,6 @@ var componentSpecificNextGenBlacklist = {
14
14
  OverlayPanel: ['Expandable'],
15
15
  DataTable: ['Default'],
16
16
  Text: ['Default'],
17
- MultivaluesField: ['Icon Slots In Badge'],
18
17
  Tabs: ['Vertical Orientation']
19
18
  };
20
19
  exports.componentSpecificNextGenBlacklist = componentSpecificNextGenBlacklist;
@@ -2861,6 +2861,9 @@ declare const _default: {
2861
2861
  fontSize: string;
2862
2862
  fontWeight: number;
2863
2863
  };
2864
+ '& svg': {
2865
+ fill: string;
2866
+ };
2864
2867
  border: string;
2865
2868
  '& button': {
2866
2869
  alignSelf: string;
@@ -2875,11 +2878,6 @@ declare const _default: {
2875
2878
  };
2876
2879
  };
2877
2880
  };
2878
- '& svg': {
2879
- path: {
2880
- fill: string;
2881
- };
2882
- };
2883
2881
  alignItems: string;
2884
2882
  justifyContent: string;
2885
2883
  py: string;
@@ -787,6 +787,9 @@ export declare const badges: {
787
787
  fontSize: string;
788
788
  fontWeight: number;
789
789
  };
790
+ '& svg': {
791
+ fill: string;
792
+ };
790
793
  border: string;
791
794
  '& button': {
792
795
  alignSelf: string;
@@ -801,11 +804,6 @@ export declare const badges: {
801
804
  };
802
805
  };
803
806
  };
804
- '& svg': {
805
- path: {
806
- fill: string;
807
- };
808
- };
809
807
  alignItems: string;
810
808
  justifyContent: string;
811
809
  py: string;
@@ -105,11 +105,14 @@ var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
105
105
  })
106
106
  });
107
107
  var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
108
- bg: '#f6f8fa !important',
108
+ bg: '#EAF2FD !important',
109
109
  fontWeight: 2,
110
110
  '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
111
111
  color: 'text.primary'
112
- })
112
+ }),
113
+ '& svg': {
114
+ fill: 'gray-900'
115
+ }
113
116
  });
114
117
  var badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
115
118
  borderRadius: '50%',
@@ -51,6 +51,7 @@ var multivaluesBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
51
51
  }
52
52
  });
53
53
  var selectedItemBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
54
+ bg: '#4462ED !important',
54
55
  py: 3,
55
56
  pr: 0,
56
57
  my: 3
@@ -63,12 +64,15 @@ var readOnlyBadge = _objectSpread(_objectSpread({}, multivaluesBadge), {}, {
63
64
  var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
64
65
  p: 3,
65
66
  my: 0,
66
- backgroundColor: 'white',
67
+ bg: 'white !important',
67
68
  '& span': {
68
69
  color: 'text.primary',
69
70
  mr: '2px',
70
71
  lineHeight: '16px'
71
72
  },
73
+ '& svg': {
74
+ fill: 'neutral.10'
75
+ },
72
76
  maxHeight: '22px'
73
77
  });
74
78
  var environmentBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
@@ -105,7 +109,7 @@ export var badgeDeleteButton = _objectSpread(_objectSpread({}, deleteButton), {}
105
109
  }
106
110
  },
107
111
  '&.is-pressed': {
108
- 'path': {
112
+ path: {
109
113
  fill: 'white'
110
114
  },
111
115
  bg: '#4462ED !important'
@@ -125,19 +125,23 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
125
125
  onPointerOver: setFocusOnHover
126
126
  }, theseOptionProps, others, {
127
127
  "aria-label": ariaLabel
128
- }), isCondensed ? ___EmotionJSX(Icon, {
128
+ }), isCondensed ? ___EmotionJSX(Box, {
129
+ isRow: true,
130
+ alignItems: "center",
131
+ flex: "1"
132
+ }, ___EmotionJSX(Icon, {
129
133
  icon: isSelected ? CheckedIcon : UncheckedIcon,
130
134
  color: "active",
131
135
  size: "24px",
132
136
  mr: "xs",
133
137
  className: classNames,
134
138
  variant: "listBox.checkboxIcon"
135
- }) : isSelected && !isOnyx && shouldShowSelectedOption && ___EmotionJSX(Icon, {
139
+ }), rendered) : ___EmotionJSX(React.Fragment, null, isSelected && !isOnyx && shouldShowSelectedOption && ___EmotionJSX(Icon, {
136
140
  icon: CircleSmallIcon,
137
141
  title: {
138
142
  name: 'Circle Small Icon'
139
143
  }
140
- }), rendered, isSelected && isOnyx && shouldShowSelectedOption && ___EmotionJSX(Icon, {
144
+ }), rendered), isSelected && isOnyx && shouldShowSelectedOption && ___EmotionJSX(Icon, {
141
145
  icon: CheckIcon,
142
146
  title: {
143
147
  name: 'Check Icon'
@@ -402,7 +402,6 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
402
402
  }, ___EmotionJSX(Badge, _extends({
403
403
  key: item.key,
404
404
  role: "presentation",
405
- bg: "active",
406
405
  variant: "selectedItemBadge",
407
406
  label: item.name,
408
407
  slots: item.slots
@@ -13,8 +13,8 @@ import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
13
13
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
14
14
  import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
15
15
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
16
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
17
16
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
17
+ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
18
18
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
19
19
  import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
20
20
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
@@ -27,6 +27,7 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
27
27
  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; }
28
28
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context14, _context15; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context14 = ownKeys(Object(source), !0)).call(_context14, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context15 = ownKeys(Object(source))).call(_context15, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
  import React, { useCallback, useEffect, useState } from 'react';
30
+ import PlusCircleMultipleOutlineIcon from '@pingux/mdi-react/PlusCircleMultipleOutlineIcon';
30
31
  import { useFilter } from '@react-aria/i18n';
31
32
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
32
33
  import { getAllUsers } from '../../api/users';
@@ -107,99 +108,6 @@ export default {
107
108
  }
108
109
  }
109
110
  };
110
- var VariableIcon = function VariableIcon(props) {
111
- return ___EmotionJSX("svg", _extends({
112
- width: "16",
113
- height: "16",
114
- viewBox: "0 0 16 16",
115
- fill: "none",
116
- xmlns: "http://www.w3.org/2000/svg",
117
- "aria-labelledby": "variable-icon-title"
118
- }, props), ___EmotionJSX("title", {
119
- id: "variable-icon-title"
120
- }, "Variable Icon"), ___EmotionJSX("g", {
121
- clipPath: "url(#clip0_709_18965)"
122
- }, ___EmotionJSX("circle", {
123
- cx: "8",
124
- cy: "8",
125
- r: "7.5",
126
- fill: "white",
127
- stroke: "#7AC7F2"
128
- }), ___EmotionJSX("path", {
129
- d: "M11.5042 4.25C12.0833 5.37917 12.3125 6.68333 12.1667 8C12.0833 9.31667 11.625 10.6208 10.8458 11.75L10.2083 11.3333C10.8792 10.3208 11.2708 9.16667 11.3333 8C11.475 6.83333 11.2875 5.67917 10.7917 4.66667L11.5042 4.25ZM5.15416 4.25L5.79166 4.66667C5.12083 5.67917 4.72916 6.83333 4.66666 8C4.525 9.16667 4.71666 10.3208 5.20833 11.3333L4.50416 11.75C3.92083 10.6208 3.6875 9.32083 3.83333 8C3.91666 6.68333 4.375 5.37917 5.15416 4.25ZM8.03333 7.45L9 6.10417H10.0542L8.47916 8.1875L9.39583 10.2375H8.45416L7.87916 8.83333L6.86666 10.2208H5.81666L7.44166 8.0875L6.55416 6.10417H7.5L8.03333 7.45Z",
130
- fill: "#7AC7F2"
131
- })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
132
- id: "clip0_709_18965"
133
- }, ___EmotionJSX("rect", {
134
- width: "16",
135
- height: "16",
136
- fill: "white"
137
- }))));
138
- };
139
- var HTMLIcon = function HTMLIcon(props) {
140
- return ___EmotionJSX("svg", _extends({
141
- width: "16",
142
- height: "16",
143
- viewBox: "0 0 16 16",
144
- fill: "none",
145
- xmlns: "http://www.w3.org/2000/svg",
146
- "aria-labelledby": "html-icon-title"
147
- }, props), ___EmotionJSX("title", {
148
- id: "html-icon-title"
149
- }, "HTML Icon"), ___EmotionJSX("g", {
150
- clipPath: "url(#clip0_709_18936)"
151
- }, ___EmotionJSX("circle", {
152
- cx: "8",
153
- cy: "8",
154
- r: "7.5",
155
- fill: "white",
156
- stroke: "#2E5EA6"
157
- }), ___EmotionJSX("g", {
158
- clipPath: "url(#clip1_709_18936)"
159
- }, ___EmotionJSX("path", {
160
- d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
161
- fill: "#4660A2"
162
- }))), ___EmotionJSX("g", {
163
- clipPath: "url(#clip2_709_18936)"
164
- }, ___EmotionJSX("circle", {
165
- cx: "8",
166
- cy: "8",
167
- r: "7.5",
168
- fill: "white",
169
- stroke: "#2E5EA6"
170
- }), ___EmotionJSX("g", {
171
- clipPath: "url(#clip3_709_18936)"
172
- }, ___EmotionJSX("path", {
173
- d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
174
- fill: "#4660A2"
175
- }))), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
176
- className: "clip0_709_18936"
177
- }, ___EmotionJSX("rect", {
178
- width: "16",
179
- height: "16",
180
- fill: "white"
181
- })), ___EmotionJSX("clipPath", {
182
- className: "clip1_709_18936"
183
- }, ___EmotionJSX("rect", {
184
- width: "10",
185
- height: "10",
186
- fill: "white",
187
- transform: "translate(3 3)"
188
- })), ___EmotionJSX("clipPath", {
189
- className: "clip2_709_18936"
190
- }, ___EmotionJSX("rect", {
191
- width: "16",
192
- height: "16",
193
- fill: "white"
194
- })), ___EmotionJSX("clipPath", {
195
- className: "clip3_709_18936"
196
- }, ___EmotionJSX("rect", {
197
- width: "10",
198
- height: "10",
199
- fill: "white",
200
- transform: "translate(3 3)"
201
- }))));
202
- };
203
111
  var items = [{
204
112
  id: 1,
205
113
  name: 'Aardvark',
@@ -296,15 +204,14 @@ var itemsWithSlots = [{
296
204
  name: 'Aardvark',
297
205
  key: 'Aardvark',
298
206
  badgeProps: {
299
- variant: 'itemBadgeWithSlot',
300
- bg: 'white'
207
+ variant: 'itemBadgeWithSlot'
301
208
  },
302
209
  buttonProps: {
303
210
  variant: 'badgeDeleteButton'
304
211
  },
305
212
  slots: {
306
213
  leftIcon: ___EmotionJSX(Icon, {
307
- icon: VariableIcon,
214
+ icon: PlusCircleMultipleOutlineIcon,
308
215
  size: 16
309
216
  })
310
217
  }
@@ -313,15 +220,14 @@ var itemsWithSlots = [{
313
220
  name: 'Kangaroo',
314
221
  key: 'Kangaroo',
315
222
  badgeProps: {
316
- variant: 'itemBadgeWithSlot',
317
- bg: 'white'
223
+ variant: 'itemBadgeWithSlot'
318
224
  },
319
225
  buttonProps: {
320
226
  variant: 'badgeDeleteButton'
321
227
  },
322
228
  slots: {
323
229
  leftIcon: ___EmotionJSX(Icon, {
324
- icon: HTMLIcon,
230
+ icon: PlusCircleMultipleOutlineIcon,
325
231
  size: 16
326
232
  })
327
233
  }
@@ -330,15 +236,14 @@ var itemsWithSlots = [{
330
236
  name: 'Snake',
331
237
  key: 'Snake',
332
238
  badgeProps: {
333
- variant: 'itemBadgeWithSlot',
334
- bg: 'white'
239
+ variant: 'itemBadgeWithSlot'
335
240
  },
336
241
  buttonProps: {
337
242
  variant: 'badgeDeleteButton'
338
243
  },
339
244
  slots: {
340
245
  leftIcon: ___EmotionJSX(Icon, {
341
- icon: HTMLIcon,
246
+ icon: PlusCircleMultipleOutlineIcon,
342
247
  size: 16
343
248
  })
344
249
  }
@@ -271,10 +271,19 @@ var buttons = {
271
271
  },
272
272
  '&.is-focused': {
273
273
  textDecoration: 'underline',
274
- color: chroma.mix(nextGenColors['blue-500'], 'white', 0.30, 'rgb').hex(),
274
+ color: chroma.mix(nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex(),
275
275
  outline: 'none'
276
276
  }
277
277
  },
278
- iconButtons: iconButtons
278
+ iconButtons: iconButtons,
279
+ listBoxLink: {
280
+ color: 'blue-400',
281
+ '&.is-pressed': {
282
+ color: chroma.mix(nextGenColors['blue-500'], 'white', 0.45, 'rgb').hex()
283
+ },
284
+ '&.is-focused': {
285
+ color: chroma.mix(nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex()
286
+ }
287
+ }
279
288
  };
280
289
  export default buttons;
@@ -12,7 +12,7 @@ var listBox = {
12
12
  container: {
13
13
  backgroundColor: 'background.base',
14
14
  border: '1px solid',
15
- borderColor: 'border.input',
15
+ borderColor: 'transparent',
16
16
  borderRadius: '4px'
17
17
  },
18
18
  option: {
@@ -162,6 +162,12 @@ export default {
162
162
  skeleton: skeleton,
163
163
  footer: footer,
164
164
  tooltip: tooltip,
165
+ popoverMenu: {
166
+ container: {
167
+ background: '#23282e',
168
+ border: '1px solid #69788B'
169
+ }
170
+ },
165
171
  dataTable: {
166
172
  selectableTableRow: {
167
173
  '&.is-selected': {
@@ -7,7 +7,6 @@ export var componentSpecificNextGenBlacklist = {
7
7
  OverlayPanel: ['Expandable'],
8
8
  DataTable: ['Default'],
9
9
  Text: ['Default'],
10
- MultivaluesField: ['Icon Slots In Badge'],
11
10
  Tabs: ['Vertical Orientation']
12
11
  };
13
12
  export var astroBlacklistStory = {
@@ -98,11 +98,14 @@ var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
98
98
  })
99
99
  });
100
100
  var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
101
- bg: '#f6f8fa !important',
101
+ bg: '#EAF2FD !important',
102
102
  fontWeight: 2,
103
103
  '& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
104
104
  color: 'text.primary'
105
- })
105
+ }),
106
+ '& svg': {
107
+ fill: 'gray-900'
108
+ }
106
109
  });
107
110
  export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
108
111
  borderRadius: '50%',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.147.1-alpha.1",
3
+ "version": "2.148.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",