@pingux/astro 2.131.0 → 2.132.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 (65) hide show
  1. package/lib/cjs/components/RockerButton/RockerButton.js +1 -0
  2. package/lib/cjs/components/RockerButton/RockerButton.styles.d.ts +9 -0
  3. package/lib/cjs/components/RockerButton/RockerButton.styles.js +11 -2
  4. package/lib/cjs/components/RockerButtonGroup/stories/NextGenDarkRockerButtonGroup.chromatic.stories.js +2 -2
  5. package/lib/cjs/components/RockerButtonGroup/stories/NextGenRockerButtonGroup.chromatic.stories.js +2 -2
  6. package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroup.chromatic.stories.js +2 -12
  7. package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroupNextGen.d.ts +3 -0
  8. package/lib/cjs/components/RockerButtonGroup/stories/RockerButtonGroupNextGen.js +25 -0
  9. package/lib/cjs/components/StatusIcon/StatusIcon.d.ts +15 -0
  10. package/lib/cjs/components/StatusIcon/StatusIcon.js +41 -0
  11. package/lib/cjs/components/StatusIcon/StatusIcon.mdx +19 -0
  12. package/lib/cjs/components/StatusIcon/StatusIcon.stories.d.ts +5 -0
  13. package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +198 -0
  14. package/lib/cjs/components/StatusIcon/StatusIcon.styles.d.ts +75 -0
  15. package/lib/cjs/components/StatusIcon/StatusIcon.styles.js +83 -0
  16. package/lib/cjs/components/StatusIcon/StatusIcon.test.d.ts +1 -0
  17. package/lib/cjs/components/StatusIcon/StatusIcon.test.js +30 -0
  18. package/lib/cjs/components/StatusIcon/index.d.ts +1 -0
  19. package/lib/cjs/components/StatusIcon/index.js +14 -0
  20. package/lib/cjs/components/StatusIcon/stories/NextGenDarkStatusIcon.chromatic.stories.d.ts +6 -0
  21. package/lib/cjs/components/StatusIcon/stories/NextGenDarkStatusIcon.chromatic.stories.js +22 -0
  22. package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.chromatic.stories.d.ts +6 -0
  23. package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.chromatic.stories.js +22 -0
  24. package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.d.ts +3 -0
  25. package/lib/cjs/components/StatusIcon/stories/NextGenStatusIcon.js +98 -0
  26. package/lib/cjs/index.d.ts +2 -0
  27. package/lib/cjs/index.js +40 -21
  28. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +73 -12
  29. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +76 -14
  30. package/lib/cjs/styles/themes/astro/customProperties/icons.js +13 -2
  31. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  32. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
  33. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +10 -2
  34. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +104 -36
  35. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +104 -36
  36. package/lib/cjs/styles/themes/next-gen/variants/variants.js +109 -39
  37. package/lib/cjs/styles/variants/variants.js +2 -0
  38. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +4 -0
  39. package/lib/cjs/utils/designUtils/figmaLinks.js +4 -0
  40. package/lib/cjs/utils/devUtils/constants/statuses.js +14 -2
  41. package/lib/components/RockerButton/RockerButton.js +1 -0
  42. package/lib/components/RockerButton/RockerButton.styles.js +11 -2
  43. package/lib/components/RockerButtonGroup/stories/NextGenDarkRockerButtonGroup.chromatic.stories.js +1 -1
  44. package/lib/components/RockerButtonGroup/stories/NextGenRockerButtonGroup.chromatic.stories.js +1 -1
  45. package/lib/components/RockerButtonGroup/stories/RockerButtonGroup.chromatic.stories.js +2 -12
  46. package/lib/components/RockerButtonGroup/stories/RockerButtonGroupNextGen.js +16 -0
  47. package/lib/components/StatusIcon/StatusIcon.js +32 -0
  48. package/lib/components/StatusIcon/StatusIcon.mdx +19 -0
  49. package/lib/components/StatusIcon/StatusIcon.stories.js +187 -0
  50. package/lib/components/StatusIcon/StatusIcon.styles.js +75 -0
  51. package/lib/components/StatusIcon/StatusIcon.test.js +27 -0
  52. package/lib/components/StatusIcon/index.js +1 -0
  53. package/lib/components/StatusIcon/stories/NextGenDarkStatusIcon.chromatic.stories.js +12 -0
  54. package/lib/components/StatusIcon/stories/NextGenStatusIcon.chromatic.stories.js +12 -0
  55. package/lib/components/StatusIcon/stories/NextGenStatusIcon.js +89 -0
  56. package/lib/index.js +2 -0
  57. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +76 -14
  58. package/lib/styles/themes/astro/customProperties/icons.js +8 -2
  59. package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
  60. package/lib/styles/themes/next-gen/customProperties/icons.js +5 -2
  61. package/lib/styles/themes/next-gen/variants/variants.js +105 -39
  62. package/lib/styles/variants/variants.js +2 -0
  63. package/lib/utils/designUtils/figmaLinks.js +4 -0
  64. package/lib/utils/devUtils/constants/statuses.js +13 -2
  65. package/package.json +1 -1
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNextGenBlacklist = exports.astroBlacklistStory = void 0;
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', 'Callout', 'Table', 'TableBase', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField'];
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
11
  Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
@@ -21,7 +21,8 @@ var astroBlacklistStory = {
21
21
  DataTable: ['Onyx Default'],
22
22
  NavBar: ['Onyx Default'],
23
23
  SearchField: ['Onyx With Filter'],
24
- Callout: ['Customizations']
24
+ Callout: ['Customizations'],
25
+ StatusIcon: ['Default', 'In Rocker Button']
25
26
  };
26
27
  exports.astroBlacklistStory = astroBlacklistStory;
27
28
  var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
 
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
3
5
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
4
7
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
8
  _Object$defineProperty(exports, "__esModule", {
6
9
  value: true
@@ -9,16 +12,21 @@ exports["default"] = void 0;
9
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
10
13
  var _AlertCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertCircleOutlineIcon"));
11
14
  var _AlertOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertOutlineIcon"));
15
+ var _ArrowDownIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowDownIcon"));
16
+ var _ArrowUpIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowUpIcon"));
12
17
  var _CheckCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckCircleOutlineIcon"));
13
18
  var _ChevronDownIcon = _interopRequireDefault(require("@pingux/mdi-react/ChevronDownIcon"));
14
19
  var _ChevronUpIcon = _interopRequireDefault(require("@pingux/mdi-react/ChevronUpIcon"));
20
+ var _CloseOctagonOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CloseOctagonOutlineIcon"));
15
21
  var _DotsHorizontalIcon = _interopRequireDefault(require("@pingux/mdi-react/DotsHorizontalIcon"));
16
22
  var _InformationOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/InformationOutlineIcon"));
17
23
  var _logos = require("../../../../utils/devUtils/constants/logos");
18
- var _statuses = _interopRequireDefault(require("../../../../utils/devUtils/constants/statuses"));
24
+ var _statuses = _interopRequireWildcard(require("../../../../utils/devUtils/constants/statuses"));
19
25
  var _MenuDown$MenuUp$stat;
26
+ 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); }
27
+ 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; }
20
28
  var _default = (_MenuDown$MenuUp$stat = {
21
29
  MenuDown: _ChevronDownIcon["default"],
22
30
  MenuUp: _ChevronUpIcon["default"]
23
- }, (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].DEFAULT, _InformationOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].ERROR, _AlertCircleOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].SUCCESS, _CheckCircleOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].WARNING, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, "listViewMenu", _DotsHorizontalIcon["default"]), _MenuDown$MenuUp$stat);
31
+ }, (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].DEFAULT, _InformationOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].ERROR, _AlertCircleOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].SUCCESS, _CheckCircleOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses["default"].WARNING, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), (0, _defineProperty2["default"])(_MenuDown$MenuUp$stat, "listViewMenu", _DotsHorizontalIcon["default"]), _MenuDown$MenuUp$stat);
24
32
  exports["default"] = _default;
@@ -3630,53 +3630,61 @@ declare const _default: {
3630
3630
  };
3631
3631
  rockerButton: {
3632
3632
  innerContainer: {
3633
- height: number;
3634
3633
  boxShadow: string;
3635
3634
  backgroundColor: string;
3636
3635
  borderRadius: string;
3637
3636
  padding: number;
3638
- button: {
3639
- backgroundColor: string;
3640
- padding: string;
3641
- height: string;
3642
- color: string;
3643
- border: string;
3644
- borderColor: string;
3645
- borderRadius: number;
3646
- '&.is-selected': {
3647
- color: string;
3648
- backgroundColor: string;
3649
- };
3650
- '&.is-hovered': {
3651
- backgroundColor: string;
3652
- color: string;
3653
- };
3654
- '&.is-pressed': {
3655
- backgroundColor: string;
3656
- color: string;
3657
- };
3658
- '&.is-focused': {
3659
- outline: string;
3660
- outlineColor: string;
3661
- outlineOffset: string;
3662
- position: string;
3663
- zIndex: string;
3664
- };
3665
- };
3666
- 'button:not(:first-child)': {
3667
- borderLeft: number;
3637
+ border: string;
3638
+ };
3639
+ thumbSwitch: {
3640
+ textTransform: string;
3641
+ backgroundColor: string;
3642
+ padding: string;
3643
+ height: string;
3644
+ color: string;
3645
+ border: string;
3646
+ borderColor: string;
3647
+ borderRadius: number;
3648
+ '&:not(:last-of-type)': {
3649
+ borderRight: string;
3668
3650
  };
3669
- 'button:first-child': {
3651
+ '&:first-of-type': {
3670
3652
  borderTopLeftRadius: string;
3671
3653
  borderBottomLeftRadius: string;
3672
3654
  };
3673
- 'button:last-child': {
3655
+ '&:last-of-type': {
3674
3656
  borderTopRightRadius: string;
3675
3657
  borderBottomRightRadius: string;
3676
3658
  };
3677
- };
3678
- thumbSwitch: {
3679
- textTransform: string;
3659
+ '&.is-selected': {
3660
+ color: string;
3661
+ backgroundColor: string;
3662
+ '& > div.status-icon': {
3663
+ bg: string;
3664
+ '& > svg': {
3665
+ path: {
3666
+ fill: string;
3667
+ };
3668
+ };
3669
+ };
3670
+ };
3671
+ '&.is-hovered': {
3672
+ borderColor: string;
3673
+ backgroundColor: string;
3674
+ color: string;
3675
+ };
3676
+ '&.is-pressed': {
3677
+ borderColor: string;
3678
+ backgroundColor: string;
3679
+ color: string;
3680
+ };
3681
+ '&.is-focused': {
3682
+ position: string;
3683
+ zIndex: string;
3684
+ outline: string;
3685
+ outlineColor: string;
3686
+ outlineOffset: string;
3687
+ };
3680
3688
  };
3681
3689
  };
3682
3690
  tooltip: {
@@ -3888,6 +3896,66 @@ declare const _default: {
3888
3896
  };
3889
3897
  };
3890
3898
  };
3899
+ statusIcon: {
3900
+ base: {
3901
+ '&.is-default': {
3902
+ bg: string;
3903
+ path: {
3904
+ fill: string;
3905
+ };
3906
+ };
3907
+ '&.is-critical': {
3908
+ bg: string;
3909
+ path: {
3910
+ fill: string;
3911
+ };
3912
+ };
3913
+ '&.is-warning': {
3914
+ bg: string;
3915
+ path: {
3916
+ fill: string;
3917
+ };
3918
+ };
3919
+ '&.is-info': {
3920
+ bg: string;
3921
+ path: {
3922
+ fill: string;
3923
+ };
3924
+ };
3925
+ '&.is-major': {
3926
+ bg: string;
3927
+ path: {
3928
+ fill: string;
3929
+ };
3930
+ };
3931
+ '&.is-minor': {
3932
+ bg: string;
3933
+ path: {
3934
+ fill: string;
3935
+ };
3936
+ };
3937
+ '&.is-warning-neutral': {
3938
+ bg: string;
3939
+ path: {
3940
+ fill: string;
3941
+ };
3942
+ };
3943
+ '&.is-fatal': {
3944
+ bg: string;
3945
+ path: {
3946
+ fill: string;
3947
+ };
3948
+ };
3949
+ '&.is-selected.is-selected': {
3950
+ bg: string;
3951
+ '& > svg': {
3952
+ path: {
3953
+ fill: string;
3954
+ };
3955
+ };
3956
+ };
3957
+ };
3958
+ };
3891
3959
  box: {
3892
3960
  indeterminateCheckboxIcon: {
3893
3961
  height: string;
@@ -1229,53 +1229,61 @@ declare const _default: {
1229
1229
  };
1230
1230
  rockerButton: {
1231
1231
  innerContainer: {
1232
- height: number;
1233
1232
  boxShadow: string;
1234
1233
  backgroundColor: string;
1235
1234
  borderRadius: string;
1236
1235
  padding: number;
1237
- button: {
1238
- backgroundColor: string;
1239
- padding: string;
1240
- height: string;
1241
- color: string;
1242
- border: string;
1243
- borderColor: string;
1244
- borderRadius: number;
1245
- '&.is-selected': {
1246
- color: string;
1247
- backgroundColor: string;
1248
- };
1249
- '&.is-hovered': {
1250
- backgroundColor: string;
1251
- color: string;
1252
- };
1253
- '&.is-pressed': {
1254
- backgroundColor: string;
1255
- color: string;
1256
- };
1257
- '&.is-focused': {
1258
- outline: string;
1259
- outlineColor: string;
1260
- outlineOffset: string;
1261
- position: string;
1262
- zIndex: string;
1263
- };
1264
- };
1265
- 'button:not(:first-child)': {
1266
- borderLeft: number;
1236
+ border: string;
1237
+ };
1238
+ thumbSwitch: {
1239
+ textTransform: string;
1240
+ backgroundColor: string;
1241
+ padding: string;
1242
+ height: string;
1243
+ color: string;
1244
+ border: string;
1245
+ borderColor: string;
1246
+ borderRadius: number;
1247
+ '&:not(:last-of-type)': {
1248
+ borderRight: string;
1267
1249
  };
1268
- 'button:first-child': {
1250
+ '&:first-of-type': {
1269
1251
  borderTopLeftRadius: string;
1270
1252
  borderBottomLeftRadius: string;
1271
1253
  };
1272
- 'button:last-child': {
1254
+ '&:last-of-type': {
1273
1255
  borderTopRightRadius: string;
1274
1256
  borderBottomRightRadius: string;
1275
1257
  };
1276
- };
1277
- thumbSwitch: {
1278
- textTransform: string;
1258
+ '&.is-selected': {
1259
+ color: string;
1260
+ backgroundColor: string;
1261
+ '& > div.status-icon': {
1262
+ bg: string;
1263
+ '& > svg': {
1264
+ path: {
1265
+ fill: string;
1266
+ };
1267
+ };
1268
+ };
1269
+ };
1270
+ '&.is-hovered': {
1271
+ borderColor: string;
1272
+ backgroundColor: string;
1273
+ color: string;
1274
+ };
1275
+ '&.is-pressed': {
1276
+ borderColor: string;
1277
+ backgroundColor: string;
1278
+ color: string;
1279
+ };
1280
+ '&.is-focused': {
1281
+ position: string;
1282
+ zIndex: string;
1283
+ outline: string;
1284
+ outlineColor: string;
1285
+ outlineOffset: string;
1286
+ };
1279
1287
  };
1280
1288
  };
1281
1289
  tooltip: {
@@ -1487,6 +1495,66 @@ declare const _default: {
1487
1495
  };
1488
1496
  };
1489
1497
  };
1498
+ statusIcon: {
1499
+ base: {
1500
+ '&.is-default': {
1501
+ bg: string;
1502
+ path: {
1503
+ fill: string;
1504
+ };
1505
+ };
1506
+ '&.is-critical': {
1507
+ bg: string;
1508
+ path: {
1509
+ fill: string;
1510
+ };
1511
+ };
1512
+ '&.is-warning': {
1513
+ bg: string;
1514
+ path: {
1515
+ fill: string;
1516
+ };
1517
+ };
1518
+ '&.is-info': {
1519
+ bg: string;
1520
+ path: {
1521
+ fill: string;
1522
+ };
1523
+ };
1524
+ '&.is-major': {
1525
+ bg: string;
1526
+ path: {
1527
+ fill: string;
1528
+ };
1529
+ };
1530
+ '&.is-minor': {
1531
+ bg: string;
1532
+ path: {
1533
+ fill: string;
1534
+ };
1535
+ };
1536
+ '&.is-warning-neutral': {
1537
+ bg: string;
1538
+ path: {
1539
+ fill: string;
1540
+ };
1541
+ };
1542
+ '&.is-fatal': {
1543
+ bg: string;
1544
+ path: {
1545
+ fill: string;
1546
+ };
1547
+ };
1548
+ '&.is-selected.is-selected': {
1549
+ bg: string;
1550
+ '& > svg': {
1551
+ path: {
1552
+ fill: string;
1553
+ };
1554
+ };
1555
+ };
1556
+ };
1557
+ };
1490
1558
  box: {
1491
1559
  indeterminateCheckboxIcon: {
1492
1560
  height: string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
3
4
  var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
5
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
5
6
  var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
@@ -8,6 +9,7 @@ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/in
8
9
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
9
10
  var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
10
11
  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");
11
13
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
12
14
  _Object$defineProperty(exports, "__esModule", {
13
15
  value: true
@@ -18,7 +20,7 @@ var _Attachment = _interopRequireDefault(require("../../../../components/AICompo
18
20
  var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/Skeleton.styles"));
19
21
  var _codeView = _interopRequireDefault(require("../codeView/codeView"));
20
22
  var _avatar = require("./avatar");
21
- var _button = _interopRequireDefault(require("./button"));
23
+ var _button = _interopRequireWildcard(require("./button"));
22
24
  var _callout = _interopRequireDefault(require("./callout"));
23
25
  var _dataTable = require("./dataTable");
24
26
  var _footer = require("./footer");
@@ -36,6 +38,8 @@ var _table = require("./table");
36
38
  var _tableBase = require("./tableBase");
37
39
  var _tabs = require("./tabs");
38
40
  var _tooltip = _interopRequireDefault(require("./tooltip"));
41
+ 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); }
42
+ 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; }
39
43
  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; }
40
44
  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; }
41
45
  var fieldHelperText = {
@@ -301,53 +305,58 @@ var overlayPanel = {
301
305
  };
302
306
  var rockerButton = {
303
307
  innerContainer: {
304
- height: 50,
305
308
  boxShadow: 'none',
306
- backgroundColor: 'white',
309
+ backgroundColor: 'common.background.base',
307
310
  borderRadius: '50px',
308
311
  padding: 0,
309
- 'button': {
310
- backgroundColor: 'white',
311
- padding: '0px 15px',
312
- height: '100%',
313
- color: 'active',
314
- border: '1px solid',
315
- borderColor: 'active',
316
- borderRadius: 0,
317
- '&.is-selected': {
318
- color: 'white',
319
- backgroundColor: 'active'
320
- },
321
- '&.is-hovered': {
322
- backgroundColor: '#1462C8 !important',
323
- color: 'white'
324
- },
325
- '&.is-pressed': {
326
- backgroundColor: '#135CBC !important',
327
- color: 'white'
328
- },
329
- '&.is-focused': {
330
- outline: '2px solid',
331
- outlineColor: 'focus',
332
- outlineOffset: '2px',
333
- position: 'relative',
334
- zIndex: '1000'
335
- }
336
- },
337
- 'button:not(:first-child)': {
338
- borderLeft: 0
312
+ border: 'none'
313
+ },
314
+ thumbSwitch: {
315
+ textTransform: 'none',
316
+ backgroundColor: 'common.background.base',
317
+ padding: 'md',
318
+ height: '50px',
319
+ color: 'active',
320
+ border: '1px solid',
321
+ borderColor: 'active',
322
+ borderRadius: 0,
323
+ '&:not(:last-of-type)': {
324
+ borderRight: 'none'
339
325
  },
340
- 'button:first-child': {
326
+ '&:first-of-type': {
341
327
  borderTopLeftRadius: '50px',
342
328
  borderBottomLeftRadius: '50px'
343
329
  },
344
- 'button:last-child': {
330
+ '&:last-of-type': {
345
331
  borderTopRightRadius: '50px',
346
332
  borderBottomRightRadius: '50px'
347
- }
348
- },
349
- thumbSwitch: {
350
- textTransform: 'none'
333
+ },
334
+ '&.is-selected': {
335
+ color: 'white',
336
+ backgroundColor: 'active',
337
+ '& > div.status-icon': {
338
+ bg: 'white',
339
+ '& > svg': {
340
+ path: {
341
+ fill: 'active'
342
+ }
343
+ }
344
+ }
345
+ },
346
+ '&.is-hovered': {
347
+ borderColor: '#1462C8',
348
+ backgroundColor: '#1462C8 !important',
349
+ color: 'white'
350
+ },
351
+ '&.is-pressed': {
352
+ borderColor: '#135CBC',
353
+ backgroundColor: '#135CBC !important',
354
+ color: 'white'
355
+ },
356
+ '&.is-focused': _objectSpread(_objectSpread({}, _button.defaultFocus), {}, {
357
+ position: 'relative',
358
+ zIndex: '1000'
359
+ })
351
360
  }
352
361
  };
353
362
  var loader = {
@@ -355,6 +364,66 @@ var loader = {
355
364
  color: 'active'
356
365
  }
357
366
  };
367
+ var statusIcon = {
368
+ base: {
369
+ '&.is-default': {
370
+ bg: 'gray-100',
371
+ path: {
372
+ fill: 'gray-700'
373
+ }
374
+ },
375
+ '&.is-critical': {
376
+ bg: 'red-100',
377
+ path: {
378
+ fill: 'red-700'
379
+ }
380
+ },
381
+ '&.is-warning': {
382
+ bg: 'yellow-100',
383
+ path: {
384
+ fill: 'yellow-800'
385
+ }
386
+ },
387
+ '&.is-info': {
388
+ bg: 'blue-100',
389
+ path: {
390
+ fill: 'blue-600'
391
+ }
392
+ },
393
+ '&.is-major': {
394
+ bg: 'orange-100',
395
+ path: {
396
+ fill: 'orange-700'
397
+ }
398
+ },
399
+ '&.is-minor': {
400
+ bg: 'yellow-100',
401
+ path: {
402
+ fill: 'yellow-800'
403
+ }
404
+ },
405
+ '&.is-warning-neutral': {
406
+ bg: 'gray-100',
407
+ path: {
408
+ fill: 'gray-700'
409
+ }
410
+ },
411
+ '&.is-fatal': {
412
+ bg: 'gray-700',
413
+ path: {
414
+ fill: 'gray-100'
415
+ }
416
+ },
417
+ '&.is-selected.is-selected': {
418
+ bg: 'white',
419
+ '& > svg': {
420
+ path: {
421
+ fill: 'active'
422
+ }
423
+ }
424
+ }
425
+ }
426
+ };
358
427
  var _default = {
359
428
  attachment: _Attachment["default"],
360
429
  navBar: _navbar.navBar,
@@ -390,6 +459,7 @@ var _default = {
390
459
  callout: _callout["default"],
391
460
  table: _table.table,
392
461
  tableBase: _tableBase.tableBase,
462
+ statusIcon: statusIcon,
393
463
  box: {
394
464
  indeterminateCheckboxIcon: {
395
465
  height: '19.25px',
@@ -58,6 +58,7 @@ var _ScrollBox = _interopRequireDefault(require("../../components/ScrollBox/Scro
58
58
  var _Separator = _interopRequireDefault(require("../../components/Separator/Separator.styles"));
59
59
  var _Skeleton = _interopRequireDefault(require("../../components/Skeleton/Skeleton.styles"));
60
60
  var _Slider = _interopRequireDefault(require("../../components/SliderField/Slider.styles"));
61
+ var _StatusIcon = _interopRequireDefault(require("../../components/StatusIcon/StatusIcon.styles"));
61
62
  var _Stepper = _interopRequireDefault(require("../../components/Stepper/Stepper.styles"));
62
63
  var _Table = _interopRequireDefault(require("../../components/Table/Table.styles"));
63
64
  var _TableBase = _interopRequireDefault(require("../../components/TableBase/TableBase.styles"));
@@ -120,6 +121,7 @@ var _default = _objectSpread(_objectSpread({
120
121
  tooltip: _Tooltip["default"],
121
122
  treeView: _TreeView["default"]
122
123
  }, tab), {}, {
124
+ statusIcon: _StatusIcon["default"],
123
125
  tableBase: _TableBase["default"]
124
126
  });
125
127
  exports["default"] = _default;
@@ -225,4 +225,8 @@ export declare const FIGMA_LINKS: {
225
225
  searchField: {
226
226
  onyx: string;
227
227
  };
228
+ statusIcon: {
229
+ onyx: string;
230
+ inRockerButton: string;
231
+ };
228
232
  };
@@ -231,6 +231,10 @@ var FIGMA_LINKS = {
231
231
  },
232
232
  searchField: {
233
233
  onyx: 'https://www.figma.com/file/XDGxYAgQkcHDVjyu8OGrBv/Onyx-Specs?node-id=249-542&p=f&t=ZRXGSYrM1OXJ41QB-0'
234
+ },
235
+ statusIcon: {
236
+ onyx: 'https://www.figma.com/file/XDGxYAgQkcHDVjyu8OGrBv/Onyx-Specs?node-id=1516-84&p=f&t=1IrTSMDCAftH6Roq-0',
237
+ inRockerButton: 'https://www.figma.com/file/XDGxYAgQkcHDVjyu8OGrBv/Onyx-Specs?node-id=1516-498&t=TcHspIxapoPWqWJC-4'
234
238
  }
235
239
  };
236
240
  exports.FIGMA_LINKS = FIGMA_LINKS;
@@ -4,11 +4,23 @@ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/obje
4
4
  _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
8
- var _default = {
7
+ exports.statusIcon = exports["default"] = void 0;
8
+ var statuses = {
9
9
  DEFAULT: 'default',
10
10
  ERROR: 'error',
11
11
  SUCCESS: 'success',
12
12
  WARNING: 'warning'
13
13
  };
14
+ var statusIcon = {
15
+ DEFAULT: 'default',
16
+ CRITICAL: 'critical',
17
+ MAJOR: 'major',
18
+ MINOR: 'minor',
19
+ WARNING_NEUTRAL: 'warningNeutral',
20
+ INFO: 'info',
21
+ WARNING: 'warning',
22
+ FATAL: 'fatal'
23
+ };
24
+ exports.statusIcon = statusIcon;
25
+ var _default = statuses;
14
26
  exports["default"] = _default;
@@ -57,6 +57,7 @@ export var RockerButton = /*#__PURE__*/forwardRef(function (props, ref) {
57
57
  focusRingClass: "is-focused"
58
58
  }, ___EmotionJSX(Box, _extends({
59
59
  as: "button",
60
+ isRow: true,
60
61
  className: classNames,
61
62
  variant: "variants.rockerButton.thumbSwitch",
62
63
  ref: rockerButtonRef,