@pingux/astro 2.105.0-alpha.0 → 2.105.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 (60) hide show
  1. package/lib/cjs/components/CodeView/CodeView.js +4 -4
  2. package/lib/cjs/components/CodeView/CodeView.test.js +2 -2
  3. package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +1 -1
  4. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +6 -6
  5. package/lib/cjs/hooks/useGetTheme/useGetTheme.js +9 -9
  6. package/lib/cjs/hooks/useGetTheme/useGetTheme.test.js +3 -3
  7. package/lib/cjs/index.d.ts +2 -0
  8. package/lib/cjs/index.js +14 -0
  9. package/lib/cjs/recipes/NextGen/ListViewNextGen.stories.js +1 -1
  10. package/lib/cjs/recipes/NextGen/ModalNextGen.stories.js +1 -1
  11. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +1 -1
  12. package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.js +1 -1
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +1 -1
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +1 -1
  15. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +1 -1
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +1 -1
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
  18. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
  19. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +70 -0
  20. package/lib/cjs/styles/themes/next-gen/stories/DataTableNextGenComponent.js +1 -1
  21. package/lib/cjs/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +1 -1
  22. package/lib/cjs/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +1 -1
  23. package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.d.ts +0 -1
  24. package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +1 -2
  25. package/lib/cjs/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +1 -1
  26. package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +1 -1
  27. package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  28. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +52 -0
  29. package/lib/cjs/styles/themes/next-gen/variants/button.js +27 -25
  30. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +18 -0
  31. package/lib/cjs/styles/themes/next-gen/variants/links.js +2 -0
  32. package/lib/cjs/types/codeView.d.ts +1 -1
  33. package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +4 -1
  34. package/lib/components/CodeView/CodeView.js +4 -4
  35. package/lib/components/CodeView/CodeView.test.js +2 -2
  36. package/lib/components/NavigationHeader/NavigationHeader.stories.js +1 -1
  37. package/lib/hooks/useGetTheme/useGetTheme.js +9 -9
  38. package/lib/hooks/useGetTheme/useGetTheme.test.js +3 -3
  39. package/lib/index.js +2 -0
  40. package/lib/recipes/NextGen/ListViewNextGen.stories.js +1 -1
  41. package/lib/recipes/NextGen/ModalNextGen.stories.js +1 -1
  42. package/lib/recipes/NextGen/NavBarNextGen.stories.js +1 -1
  43. package/lib/recipes/NextGen/NextGenDataTable.stories.js +1 -1
  44. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +1 -1
  45. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +1 -1
  46. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +1 -1
  47. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +1 -1
  48. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +1 -1
  49. package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +1 -1
  50. package/lib/styles/themes/next-gen/stories/DataTableNextGenComponent.js +1 -1
  51. package/lib/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +1 -1
  52. package/lib/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +1 -1
  53. package/lib/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +1 -2
  54. package/lib/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +1 -1
  55. package/lib/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +1 -1
  56. package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +1 -1
  57. package/lib/styles/themes/next-gen/variants/button.js +27 -25
  58. package/lib/styles/themes/next-gen/variants/links.js +2 -0
  59. package/lib/utils/devUtils/shouldReturnComingSoon.js +4 -1
  60. package/package.json +1 -1
@@ -55,13 +55,13 @@ var CodeView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
55
55
  isHovered = _useHover.isHovered;
56
56
  var theme = (0, _useGetTheme["default"])();
57
57
  var themeState = theme.themeState;
58
- var isNextGen = themeState.isNextGen;
58
+ var isOnyx = themeState.isOnyx;
59
59
  var _useStatusClasses = (0, _hooks.useStatusClasses)(outerClassName, {
60
60
  isFocused: isFocusVisible,
61
61
  isHovered: isHovered,
62
62
  hasLineNumbers: hasLineNumbers,
63
63
  hasNoCopyButton: hasNoCopyButton,
64
- isNextGen: isNextGen
64
+ isOnyx: isOnyx
65
65
  }),
66
66
  classNames = _useStatusClasses.classNames;
67
67
 
@@ -71,7 +71,7 @@ var CodeView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
71
71
  return tokens.length.toString().length * 12;
72
72
  };
73
73
  var code = (children === null || children === void 0 ? void 0 : (0, _trim["default"])(children).call(children)) || '';
74
- var codeViewTheme = (stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.theme) || (isNextGen ? _codeView["default"].theme : _CodeView["default"].theme);
74
+ var codeViewTheme = (stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.theme) || (isOnyx ? _codeView["default"].theme : _CodeView["default"].theme);
75
75
  var content = (0, _react2.jsx)(_prismReactRenderer["default"], (0, _extends2["default"])({}, _prismReactRenderer.defaultProps, {
76
76
  theme: codeViewTheme,
77
77
  code: code,
@@ -110,7 +110,7 @@ var CodeView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
110
110
  });
111
111
 
112
112
  /* istanbul ignore next */
113
- if (isNextGen) {
113
+ if (isOnyx) {
114
114
  return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({
115
115
  ref: ref,
116
116
  variant: "codeView.wrapper",
@@ -202,11 +202,11 @@ test('renders CodeView component with highlighted code', function () {
202
202
  expect(codeViewElement).toBeInTheDocument();
203
203
  expect(codeViewElement).toHaveClass("language-".concat(language));
204
204
  });
205
- test('isNextGen prop renders CodeView component with next-gen theme', function () {
205
+ test('isOnyx prop renders CodeView component with next-gen theme', function () {
206
206
  var children = ' ';
207
207
  getComponent({
208
208
  children: children,
209
- isNextGen: true,
209
+ isOnyx: true,
210
210
  language: 'json'
211
211
  });
212
212
  var codeViewElement = _testWrapper.screen.getByTestId(testId);
@@ -149,7 +149,7 @@ var Default = function Default(_ref) {
149
149
  justifyContent: "center",
150
150
  py: "xs",
151
151
  flex: "0 0 auto"
152
- }, themeState.isNextGenDark ? whiteLogo : logo, (0, _react2.jsx)(_index.Separator, {
152
+ }, themeState.isOnyxDark ? whiteLogo : logo, (0, _react2.jsx)(_index.Separator, {
153
153
  orientation: "vertical",
154
154
  sx: placeholderSeparator,
155
155
  style: {
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const baseState: {
3
- isNextGen: boolean;
3
+ isOnyx: boolean;
4
4
  isAstro: boolean;
5
- isNextGenDark: boolean;
5
+ isOnyxDark: boolean;
6
6
  isCustom: boolean;
7
7
  };
8
8
  declare const useGetTheme: () => {
@@ -36,9 +36,9 @@ declare const useGetTheme: () => {
36
36
  lg: number;
37
37
  };
38
38
  themeState: {
39
- isNextGen: boolean;
39
+ isOnyx: boolean;
40
40
  isAstro: boolean;
41
- isNextGenDark: boolean;
41
+ isOnyxDark: boolean;
42
42
  isCustom: boolean;
43
43
  };
44
44
  name: string;
@@ -66,8 +66,8 @@ declare const useGetTheme: () => {
66
66
  name: string;
67
67
  themeState: {
68
68
  isAstro: boolean;
69
- isNextGen: boolean;
70
- isNextGenDark: boolean;
69
+ isOnyx: boolean;
70
+ isOnyxDark: boolean;
71
71
  isCustom: boolean;
72
72
  };
73
73
  };
@@ -24,9 +24,9 @@ var _themes = require("../../utils/devUtils/constants/themes");
24
24
  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; }
25
25
  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; } /* eslint-disable no-else-return */
26
26
  var baseState = {
27
- isNextGen: false,
27
+ isOnyx: false,
28
28
  isAstro: false,
29
- isNextGenDark: false,
29
+ isOnyxDark: false,
30
30
  isCustom: false
31
31
  };
32
32
  exports.baseState = baseState;
@@ -36,17 +36,17 @@ var astroState = _objectSpread({
36
36
  isAstro: true
37
37
  })
38
38
  }, _customProperties2.astroThemeValues);
39
- var nextGenState = _objectSpread({
39
+ var onyxState = _objectSpread({
40
40
  themeState: _objectSpread(_objectSpread({}, baseState), {}, {
41
- isNextGen: true
41
+ isOnyx: true
42
42
  }),
43
43
  name: _themes.themes.NEXT_GEN
44
44
  }, _customProperties3.nextGenThemeValues);
45
- var nextGenDarkState = _objectSpread({
45
+ var onyxDarkState = _objectSpread({
46
46
  name: _themes.themes.NEXT_GEN_DARK,
47
47
  themeState: _objectSpread(_objectSpread({}, baseState), {}, {
48
- isNextGen: true,
49
- isNextGenDark: true
48
+ isOnyx: true,
49
+ isOnyxDark: true
50
50
  })
51
51
  }, _customProperties.nextGenDarkThemeValues);
52
52
  var customThemeState = _objectSpread({
@@ -57,13 +57,13 @@ var customThemeState = _objectSpread({
57
57
  }, _customProperties2.astroThemeValues);
58
58
  var getTheme = function getTheme(theme) {
59
59
  if (theme === _themes.themes.NEXT_GEN) {
60
- return _objectSpread({}, nextGenState);
60
+ return _objectSpread({}, onyxState);
61
61
  }
62
62
  if (theme === _themes.themes.ASTRO) {
63
63
  return _objectSpread({}, astroState);
64
64
  }
65
65
  if (theme === _themes.themes.NEXT_GEN_DARK) {
66
- return _objectSpread({}, nextGenDarkState);
66
+ return _objectSpread({}, onyxDarkState);
67
67
  }
68
68
  return _objectSpread({}, customThemeState);
69
69
  };
@@ -45,7 +45,7 @@ describe('useGetTheme', function () {
45
45
  result = _renderHook.result;
46
46
  expect(result.current.name).toBe(_themes.themes.NEXT_GEN);
47
47
  expect(result.current.themeState).toEqual(_objectSpread(_objectSpread({}, _useGetTheme.baseState), {}, {
48
- isNextGen: true
48
+ isOnyx: true
49
49
  }));
50
50
  });
51
51
  });
@@ -63,8 +63,8 @@ describe('useGetTheme', function () {
63
63
  result = _renderHook2.result;
64
64
  expect(result.current.name).toBe(_themes.themes.NEXT_GEN_DARK);
65
65
  expect(result.current.themeState).toEqual(_objectSpread(_objectSpread({}, _useGetTheme.baseState), {}, {
66
- isNextGen: true,
67
- isNextGenDark: true
66
+ isOnyx: true,
67
+ isOnyxDark: true
68
68
  }));
69
69
  });
70
70
  });
@@ -198,7 +198,9 @@ export * from './components/TooltipTrigger';
198
198
  export { default as TreeView } from './components/TreeView';
199
199
  export * from './components/TreeView';
200
200
  export { default as NextGenDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
201
+ export { default as OnyxDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
201
202
  export { default as NextGenTheme } from './styles/themes/next-gen';
203
+ export { default as OnyxTheme } from './styles/themes/next-gen';
202
204
  export * from './types';
203
205
  export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
204
206
  export { Item, Section, useOverlayTriggerState, useTreeData } from 'react-stately';
package/lib/cjs/index.js CHANGED
@@ -135,7 +135,9 @@ var _exportNames = {
135
135
  TooltipTrigger: true,
136
136
  TreeView: true,
137
137
  NextGenDarkTheme: true,
138
+ OnyxDarkTheme: true,
138
139
  NextGenTheme: true,
140
+ OnyxTheme: true,
139
141
  OverlayProvider: true,
140
142
  useOverlayPosition: true,
141
143
  useOverlayTrigger: true,
@@ -629,6 +631,18 @@ _Object$defineProperty(exports, "NumberField", {
629
631
  return _NumberField["default"];
630
632
  }
631
633
  });
634
+ _Object$defineProperty(exports, "OnyxDarkTheme", {
635
+ enumerable: true,
636
+ get: function get() {
637
+ return _nextGenDarkMode["default"];
638
+ }
639
+ });
640
+ _Object$defineProperty(exports, "OnyxTheme", {
641
+ enumerable: true,
642
+ get: function get() {
643
+ return _nextGen["default"];
644
+ }
645
+ });
632
646
  _Object$defineProperty(exports, "OverlayPanel", {
633
647
  enumerable: true,
634
648
  get: function get() {
@@ -11,7 +11,7 @@ var _index = require("../../index");
11
11
  var _ListViewNextGenComponent = require("../../styles/themes/next-gen/stories/ListViewNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Next Gen Recipes/ListView'
14
+ title: 'Onyx Recipes/ListView'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _hooks = require("../../hooks");
11
11
  var _index = require("../../index");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Next Gen Recipes/Modal'
14
+ title: 'Onyx Recipes/Modal'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _NavBarNextGenComponent = require("../../styles/themes/next-gen/stories/NavBarNextGenComponent");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _default = {
13
- title: 'Next Gen Recipes/NavBar'
13
+ title: 'Onyx Recipes/NavBar'
14
14
  };
15
15
  exports["default"] = _default;
16
16
  var Default = function Default() {
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _DataTableNextGenComponent = require("../../styles/themes/next-gen/stories/DataTableNextGenComponent");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _default = {
13
- title: 'Next Gen Recipes/DataTable'
13
+ title: 'Onyx Recipes/DataTable'
14
14
  };
15
15
  exports["default"] = _default;
16
16
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _DataTableNextGenComponent = require("../../../themes/next-gen/stories/DataTableNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen Dark DataTable'
14
+ title: 'Chromatic Only Onyx Dark DataTable'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _ListViewNextGenComponent = require("../../../themes/next-gen/stories/ListViewNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen Dark ListView'
14
+ title: 'Chromatic Only Onyx Dark ListView'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _NavBarNextGenComponent = require("../../../themes/next-gen/stories/NavBarNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen Dark NavBar'
14
+ title: 'Chromatic Only Onyx Dark NavBar'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _StickerSheetComponent = _interopRequireDefault(require("../../../themes/next-gen/stories/StickerSheetComponent"));
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen Dark Sticker Sheet'
14
+ title: 'Chromatic Only Onyx Dark Sticker Sheet'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -46,7 +46,7 @@ var checkbox = {
46
46
  exports.checkbox = checkbox;
47
47
  var selectOption = {
48
48
  backgroundColor: 'background.base',
49
- color: 'magenta !important',
49
+ color: 'text.primary',
50
50
  px: 'md',
51
51
  py: 'sm',
52
52
  alignItems: 'center',
@@ -98,7 +98,7 @@ var navBar = {
98
98
  item: {
99
99
  px: '1rem',
100
100
  py: '.75rem',
101
- color: 'magenta !important',
101
+ color: 'text.primary',
102
102
  fontFamily: 'standard',
103
103
  '&.is-hovered': {
104
104
  backgroundColor: 'background.hover'
@@ -730,6 +730,58 @@ declare const _default: {
730
730
  transition: string;
731
731
  outline: string;
732
732
  };
733
+ onyx: {
734
+ path: {
735
+ fill: string;
736
+ };
737
+ '&.is-hovered': {
738
+ backgroundColor: string;
739
+ path: {
740
+ fill: string;
741
+ };
742
+ };
743
+ '&.is-pressed': {
744
+ backgroundColor: string;
745
+ borderColor: string;
746
+ path: {
747
+ fill: string;
748
+ };
749
+ };
750
+ maxHeight: string;
751
+ maxWidth: string;
752
+ width: string;
753
+ p: string;
754
+ display: string;
755
+ alignItems: string;
756
+ justifyContent: string;
757
+ backgroundColor: string;
758
+ borderColor: string;
759
+ color: string;
760
+ minWidth: string;
761
+ cursor: string;
762
+ fontFamily: string;
763
+ fontSize: string;
764
+ flexGrow: string;
765
+ fontWeight: number;
766
+ textAlign: string;
767
+ verticalAlign: string;
768
+ lineHeight: number;
769
+ borderRadius: string;
770
+ border: string;
771
+ px: string;
772
+ py: string;
773
+ height: string;
774
+ '&.is-disabled': {
775
+ opacity: number;
776
+ };
777
+ '&.is-focused': {
778
+ outline: string;
779
+ outlineColor: string;
780
+ outlineOffset: string;
781
+ };
782
+ transition: string;
783
+ outline: string;
784
+ };
733
785
  modalCloseButton: {
734
786
  position: string;
735
787
  top: number;
@@ -1549,6 +1601,24 @@ declare const _default: {
1549
1601
  color: string;
1550
1602
  };
1551
1603
  };
1604
+ onyx: {
1605
+ color: string;
1606
+ fontSize: string;
1607
+ py: string;
1608
+ px: string;
1609
+ textDecoration: string;
1610
+ borderRadius: string;
1611
+ lineHeight: string;
1612
+ minHeight: string;
1613
+ fontFamily: string;
1614
+ cursor: string;
1615
+ '&.is-hovered': {
1616
+ color: string;
1617
+ };
1618
+ '&.is-pressed': {
1619
+ color: string;
1620
+ };
1621
+ };
1552
1622
  sideNav: {
1553
1623
  px: string;
1554
1624
  display: string;
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
11
11
  var _index = require("../../../../index");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Next Gen Recipes/DataTable'
14
+ title: 'Onyx Recipes/DataTable'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var getCellProps = function getCellProps(columnKey, align) {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _DataTableNextGenComponent = require("./DataTableNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen DataTable'
14
+ title: 'Chromatic Only Onyx DataTable'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _ListViewNextGenComponent = require("./ListViewNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen ListView'
14
+ title: 'Chromatic Only Onyx ListView'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: string;
5
4
  };
6
5
  export default _default;
7
6
  export declare const Default: () => React.JSX.Element;
@@ -11,8 +11,7 @@ var _ = require("../../../..");
11
11
  var _ListViewItemNextGen = require("./ListViewItemNextGen");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Next Gen Recipes/NextGen ListViewItem',
15
- component: 'Tabs'
14
+ title: 'Onyx Recipes/ListViewItem'
16
15
  };
17
16
  exports["default"] = _default;
18
17
  var item = {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _NavBarNextGenComponent = require("./NavBarNextGenComponent");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'Chromatic Only NextGen NavBar'
14
+ title: 'Chromatic Only Onyx NavBar'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -11,7 +11,7 @@ var _ = require("../../../..");
11
11
  var _StickerSheetComponent = _interopRequireDefault(require("./StickerSheetComponent"));
12
12
  var _react2 = require("@emotion/react");
13
13
  var _default = {
14
- title: 'NextGen Sticker Sheet'
14
+ title: 'Onyx Sticker Sheet'
15
15
  };
16
16
  exports["default"] = _default;
17
17
  var Default = function Default() {
@@ -178,7 +178,7 @@ var StickerSheetComponent = function StickerSheetComponent() {
178
178
  }
179
179
  })), (0, _react2.jsx)(_index.IconButton, {
180
180
  "aria-label": "default icon button",
181
- variant: "nextGen"
181
+ variant: "onyx"
182
182
  }, (0, _react2.jsx)(_index.Icon, {
183
183
  icon: _DeleteIcon["default"],
184
184
  title: {
@@ -498,6 +498,58 @@ declare const buttons: {
498
498
  transition: string;
499
499
  outline: string;
500
500
  };
501
+ onyx: {
502
+ path: {
503
+ fill: string;
504
+ };
505
+ '&.is-hovered': {
506
+ backgroundColor: string;
507
+ path: {
508
+ fill: string;
509
+ };
510
+ };
511
+ '&.is-pressed': {
512
+ backgroundColor: string;
513
+ borderColor: string;
514
+ path: {
515
+ fill: string;
516
+ };
517
+ };
518
+ maxHeight: string;
519
+ maxWidth: string;
520
+ width: string;
521
+ p: string;
522
+ display: string;
523
+ alignItems: string;
524
+ justifyContent: string;
525
+ backgroundColor: string;
526
+ borderColor: string;
527
+ color: string;
528
+ minWidth: string;
529
+ cursor: string;
530
+ fontFamily: string;
531
+ fontSize: string;
532
+ flexGrow: string;
533
+ fontWeight: number;
534
+ textAlign: string;
535
+ verticalAlign: string;
536
+ lineHeight: number;
537
+ borderRadius: string;
538
+ border: string;
539
+ px: string;
540
+ py: string;
541
+ height: string;
542
+ '&.is-disabled': {
543
+ opacity: number;
544
+ };
545
+ '&.is-focused': {
546
+ outline: string;
547
+ outlineColor: string;
548
+ outlineOffset: string;
549
+ };
550
+ transition: string;
551
+ outline: string;
552
+ };
501
553
  modalCloseButton: {
502
554
  position: string;
503
555
  top: number;
@@ -221,33 +221,35 @@ var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
221
221
  top: 22,
222
222
  right: 22
223
223
  });
224
+ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
225
+ path: {
226
+ fill: 'blue'
227
+ },
228
+ '&.is-hovered': {
229
+ backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
230
+ path: {
231
+ fill: 'white'
232
+ }
233
+ },
234
+ '&.is-pressed': {
235
+ backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
236
+ borderColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
237
+ path: {
238
+ fill: 'white'
239
+ }
240
+ },
241
+ maxHeight: '48.5px',
242
+ maxWidth: '48.5px',
243
+ width: '48.5px',
244
+ p: 'sm',
245
+ display: 'inline-flex',
246
+ alignItems: 'center',
247
+ justifyContent: 'center'
248
+ });
224
249
  var iconButtons = {
225
250
  base: _objectSpread({}, baseIconButton),
226
- nextGen: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
227
- path: {
228
- fill: 'blue'
229
- },
230
- '&.is-hovered': {
231
- backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
232
- path: {
233
- fill: 'white'
234
- }
235
- },
236
- '&.is-pressed': {
237
- backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
238
- borderColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
239
- path: {
240
- fill: 'white'
241
- }
242
- },
243
- maxHeight: '48.5px',
244
- maxWidth: '48.5px',
245
- width: '48.5px',
246
- p: 'sm',
247
- display: 'inline-flex',
248
- alignItems: 'center',
249
- justifyContent: 'center'
250
- }),
251
+ nextGen: _objectSpread({}, onyxIconButton),
252
+ onyx: _objectSpread({}, onyxIconButton),
251
253
  modalCloseButton: modalCloseButton,
252
254
  badge: {
253
255
  deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
@@ -17,6 +17,24 @@ declare const _default: {
17
17
  color: string;
18
18
  };
19
19
  };
20
+ onyx: {
21
+ color: string;
22
+ fontSize: string;
23
+ py: string;
24
+ px: string;
25
+ textDecoration: string;
26
+ borderRadius: string;
27
+ lineHeight: string;
28
+ minHeight: string;
29
+ fontFamily: string;
30
+ cursor: string;
31
+ '&.is-hovered': {
32
+ color: string;
33
+ };
34
+ '&.is-pressed': {
35
+ color: string;
36
+ };
37
+ };
20
38
  sideNav: {
21
39
  px: string;
22
40
  display: string;
@@ -34,6 +34,7 @@ var nextGen = {
34
34
  color: 'blue-600'
35
35
  }
36
36
  };
37
+ var onyx = _objectSpread({}, nextGen);
37
38
  var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
38
39
  px: '0',
39
40
  display: 'block',
@@ -63,6 +64,7 @@ var footerHeader = _objectSpread(_objectSpread({}, footerLinks), {}, {
63
64
  });
64
65
  var _default = {
65
66
  nextGen: nextGen,
67
+ onyx: onyx,
66
68
  sideNav: sideNav,
67
69
  footerLinks: footerLinks,
68
70
  footerHeader: footerHeader
@@ -16,6 +16,6 @@ export interface CodeViewProps extends HoverProps, StyleProps {
16
16
  textToCopy?: string;
17
17
  sx?: ThemeUICSSObject;
18
18
  stylesProp?: ThemeUICSSObject;
19
- isNextGen?: boolean;
19
+ isOnyx?: boolean;
20
20
  iconButtonProps?: IconButtonProps;
21
21
  }
@@ -18,8 +18,11 @@ var shouldReturnComingSoon = function shouldReturnComingSoon(context, selectedTh
18
18
  var _context;
19
19
  var story = context.name;
20
20
  var component = context.title.split('/')[1];
21
- var isNextGenOnlyComponent = (0, _includes["default"])(_convertedComponentList.nextGenOnlyComponents).call(_convertedComponentList.nextGenOnlyComponents, component) || context.title.split('/')[0] === 'Next Gen Recipes';
21
+ var isNextGenOnlyComponent = (0, _includes["default"])(_convertedComponentList.nextGenOnlyComponents).call(_convertedComponentList.nextGenOnlyComponents, component) || context.title.split('/')[0] === 'Onyx Recipes';
22
22
  var isStoryInNextGen = (0, _includes["default"])(_convertedComponentList["default"]).call(_convertedComponentList["default"], component);
23
+ if (isNextGenOnlyComponent && (selectedTheme === _themes.themes.NEXT_GEN || selectedTheme === _themes.themes.NEXT_GEN_DARK)) {
24
+ return false;
25
+ }
23
26
 
24
27
  // if a specific story has not been converted, return the coming soon message
25
28
  if (_convertedComponentList.componentSpecificNextGenBlacklist[component] && (0, _includes["default"])(_context = _convertedComponentList.componentSpecificNextGenBlacklist[component]).call(_context, story) && (selectedTheme === _themes.themes.NEXT_GEN || selectedTheme === _themes.themes.NEXT_GEN_DARK)) {
@@ -44,13 +44,13 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
44
44
  isHovered = _useHover.isHovered;
45
45
  var theme = useGetTheme();
46
46
  var themeState = theme.themeState;
47
- var isNextGen = themeState.isNextGen;
47
+ var isOnyx = themeState.isOnyx;
48
48
  var _useStatusClasses = useStatusClasses(outerClassName, {
49
49
  isFocused: isFocusVisible,
50
50
  isHovered: isHovered,
51
51
  hasLineNumbers: hasLineNumbers,
52
52
  hasNoCopyButton: hasNoCopyButton,
53
- isNextGen: isNextGen
53
+ isOnyx: isOnyx
54
54
  }),
55
55
  classNames = _useStatusClasses.classNames;
56
56
 
@@ -60,7 +60,7 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
60
60
  return tokens.length.toString().length * 12;
61
61
  };
62
62
  var code = (children === null || children === void 0 ? void 0 : _trimInstanceProperty(children).call(children)) || '';
63
- var codeViewTheme = (stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.theme) || (isNextGen ? codeViewStyle.theme : styles.theme);
63
+ var codeViewTheme = (stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.theme) || (isOnyx ? codeViewStyle.theme : styles.theme);
64
64
  var content = ___EmotionJSX(Highlight, _extends({}, defaultProps, {
65
65
  theme: codeViewTheme,
66
66
  code: code,
@@ -99,7 +99,7 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
99
99
  });
100
100
 
101
101
  /* istanbul ignore next */
102
- if (isNextGen) {
102
+ if (isOnyx) {
103
103
  return ___EmotionJSX(Box, _extends({
104
104
  ref: ref,
105
105
  variant: "codeView.wrapper",
@@ -198,11 +198,11 @@ test('renders CodeView component with highlighted code', function () {
198
198
  expect(codeViewElement).toBeInTheDocument();
199
199
  expect(codeViewElement).toHaveClass("language-".concat(language));
200
200
  });
201
- test('isNextGen prop renders CodeView component with next-gen theme', function () {
201
+ test('isOnyx prop renders CodeView component with next-gen theme', function () {
202
202
  var children = ' ';
203
203
  getComponent({
204
204
  children: children,
205
- isNextGen: true,
205
+ isOnyx: true,
206
206
  language: 'json'
207
207
  });
208
208
  var codeViewElement = screen.getByTestId(testId);
@@ -140,7 +140,7 @@ export var Default = function Default(_ref) {
140
140
  justifyContent: "center",
141
141
  py: "xs",
142
142
  flex: "0 0 auto"
143
- }, themeState.isNextGenDark ? whiteLogo : logo, ___EmotionJSX(Separator, {
143
+ }, themeState.isOnyxDark ? whiteLogo : logo, ___EmotionJSX(Separator, {
144
144
  orientation: "vertical",
145
145
  sx: placeholderSeparator,
146
146
  style: {
@@ -18,9 +18,9 @@ import { astroThemeValues } from '../../styles/themes/astro/customProperties';
18
18
  import { nextGenThemeValues } from '../../styles/themes/next-gen/customProperties';
19
19
  import { themes } from '../../utils/devUtils/constants/themes';
20
20
  export var baseState = {
21
- isNextGen: false,
21
+ isOnyx: false,
22
22
  isAstro: false,
23
- isNextGenDark: false,
23
+ isOnyxDark: false,
24
24
  isCustom: false
25
25
  };
26
26
  var astroState = _objectSpread({
@@ -29,17 +29,17 @@ var astroState = _objectSpread({
29
29
  isAstro: true
30
30
  })
31
31
  }, astroThemeValues);
32
- var nextGenState = _objectSpread({
32
+ var onyxState = _objectSpread({
33
33
  themeState: _objectSpread(_objectSpread({}, baseState), {}, {
34
- isNextGen: true
34
+ isOnyx: true
35
35
  }),
36
36
  name: themes.NEXT_GEN
37
37
  }, nextGenThemeValues);
38
- var nextGenDarkState = _objectSpread({
38
+ var onyxDarkState = _objectSpread({
39
39
  name: themes.NEXT_GEN_DARK,
40
40
  themeState: _objectSpread(_objectSpread({}, baseState), {}, {
41
- isNextGen: true,
42
- isNextGenDark: true
41
+ isOnyx: true,
42
+ isOnyxDark: true
43
43
  })
44
44
  }, nextGenDarkThemeValues);
45
45
  var customThemeState = _objectSpread({
@@ -50,13 +50,13 @@ var customThemeState = _objectSpread({
50
50
  }, astroThemeValues);
51
51
  var getTheme = function getTheme(theme) {
52
52
  if (theme === themes.NEXT_GEN) {
53
- return _objectSpread({}, nextGenState);
53
+ return _objectSpread({}, onyxState);
54
54
  }
55
55
  if (theme === themes.ASTRO) {
56
56
  return _objectSpread({}, astroState);
57
57
  }
58
58
  if (theme === themes.NEXT_GEN_DARK) {
59
- return _objectSpread({}, nextGenDarkState);
59
+ return _objectSpread({}, onyxDarkState);
60
60
  }
61
61
  return _objectSpread({}, customThemeState);
62
62
  };
@@ -38,7 +38,7 @@ describe('useGetTheme', function () {
38
38
  result = _renderHook.result;
39
39
  expect(result.current.name).toBe(themes.NEXT_GEN);
40
40
  expect(result.current.themeState).toEqual(_objectSpread(_objectSpread({}, baseState), {}, {
41
- isNextGen: true
41
+ isOnyx: true
42
42
  }));
43
43
  });
44
44
  });
@@ -56,8 +56,8 @@ describe('useGetTheme', function () {
56
56
  result = _renderHook2.result;
57
57
  expect(result.current.name).toBe(themes.NEXT_GEN_DARK);
58
58
  expect(result.current.themeState).toEqual(_objectSpread(_objectSpread({}, baseState), {}, {
59
- isNextGen: true,
60
- isNextGenDark: true
59
+ isOnyx: true,
60
+ isOnyxDark: true
61
61
  }));
62
62
  });
63
63
  });
package/lib/index.js CHANGED
@@ -202,7 +202,9 @@ export * from './components/TooltipTrigger';
202
202
  export { default as TreeView } from './components/TreeView';
203
203
  export * from './components/TreeView';
204
204
  export { default as NextGenDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
205
+ export { default as OnyxDarkTheme } from './styles/themeOverrides/nextGenDarkMode';
205
206
  export { default as NextGenTheme } from './styles/themes/next-gen';
207
+ export { default as OnyxTheme } from './styles/themes/next-gen';
206
208
  export * from './types';
207
209
  export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
208
210
  export { Item, Section, useOverlayTriggerState, useTreeData } from 'react-stately';
@@ -3,7 +3,7 @@ import { Box } from '../../index';
3
3
  import { ListViewNextGen } from '../../styles/themes/next-gen/stories/ListViewNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Next Gen Recipes/ListView'
6
+ title: 'Onyx Recipes/ListView'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(Box, {
@@ -3,7 +3,7 @@ import { useModalState } from '../../hooks';
3
3
  import { Box, Button, Modal, OverlayProvider, Text } from '../../index';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Next Gen Recipes/Modal'
6
+ title: 'Onyx Recipes/Modal'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  var state = useModalState();
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { NavBarNextGenComponent } from '../../styles/themes/next-gen/stories/NavBarNextGenComponent';
3
3
  import { jsx as ___EmotionJSX } from "@emotion/react";
4
4
  export default {
5
- title: 'Next Gen Recipes/NavBar'
5
+ title: 'Onyx Recipes/NavBar'
6
6
  };
7
7
  export var Default = function Default() {
8
8
  return ___EmotionJSX(NavBarNextGenComponent, null);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { DataTableNextGenComponent } from '../../styles/themes/next-gen/stories/DataTableNextGenComponent';
3
3
  import { jsx as ___EmotionJSX } from "@emotion/react";
4
4
  export default {
5
- title: 'Next Gen Recipes/DataTable'
5
+ title: 'Onyx Recipes/DataTable'
6
6
  };
7
7
  export var Default = function Default() {
8
8
  return ___EmotionJSX(DataTableNextGenComponent, null);
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenDarkTheme } from '../../../..';
3
3
  import { DataTableNextGenComponent } from '../../../themes/next-gen/stories/DataTableNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen Dark DataTable'
6
+ title: 'Chromatic Only Onyx Dark DataTable'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenDarkTheme } from '../../../..';
3
3
  import { ListViewNextGen } from '../../../themes/next-gen/stories/ListViewNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen Dark ListView'
6
+ title: 'Chromatic Only Onyx Dark ListView'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenDarkTheme } from '../../../..';
3
3
  import { NavBarNextGenComponent } from '../../../themes/next-gen/stories/NavBarNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen Dark NavBar'
6
+ title: 'Chromatic Only Onyx Dark NavBar'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenDarkTheme } from '../../../..';
3
3
  import StickerSheetComponent from '../../../themes/next-gen/stories/StickerSheetComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen Dark Sticker Sheet'
6
+ title: 'Chromatic Only Onyx Dark Sticker Sheet'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -36,7 +36,7 @@ export var checkbox = {
36
36
  };
37
37
  var selectOption = {
38
38
  backgroundColor: 'background.base',
39
- color: 'magenta !important',
39
+ color: 'text.primary',
40
40
  px: 'md',
41
41
  py: 'sm',
42
42
  alignItems: 'center',
@@ -91,7 +91,7 @@ export var navBar = {
91
91
  item: {
92
92
  px: '1rem',
93
93
  py: '.75rem',
94
- color: 'magenta !important',
94
+ color: 'text.primary',
95
95
  fontFamily: 'standard',
96
96
  '&.is-hovered': {
97
97
  backgroundColor: 'background.hover'
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Badge, Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow, Text } from '../../../../index';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Next Gen Recipes/DataTable'
6
+ title: 'Onyx Recipes/DataTable'
7
7
  };
8
8
  var getCellProps = function getCellProps(columnKey, align) {
9
9
  return {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenTheme } from '../../../..';
3
3
  import { DataTableNextGenComponent } from './DataTableNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen DataTable'
6
+ title: 'Chromatic Only Onyx DataTable'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenTheme } from '../../../..';
3
3
  import { ListViewNextGen } from './ListViewNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen ListView'
6
+ title: 'Chromatic Only Onyx ListView'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,8 +3,7 @@ import { Box } from '../../../..';
3
3
  import { ListViewItemNextGen } from './ListViewItemNextGen';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Next Gen Recipes/NextGen ListViewItem',
7
- component: 'Tabs'
6
+ title: 'Onyx Recipes/ListViewItem'
8
7
  };
9
8
  var item = {
10
9
  key: 'test',
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenTheme } from '../../../..';
3
3
  import { NavBarNextGenComponent } from './NavBarNextGenComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'Chromatic Only NextGen NavBar'
6
+ title: 'Chromatic Only Onyx NavBar'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -3,7 +3,7 @@ import { AstroProvider, NextGenTheme } from '../../../..';
3
3
  import StickerSheetComponent from './StickerSheetComponent';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
- title: 'NextGen Sticker Sheet'
6
+ title: 'Onyx Sticker Sheet'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  return ___EmotionJSX(AstroProvider, {
@@ -170,7 +170,7 @@ var StickerSheetComponent = function StickerSheetComponent() {
170
170
  }
171
171
  })), ___EmotionJSX(IconButton, {
172
172
  "aria-label": "default icon button",
173
- variant: "nextGen"
173
+ variant: "onyx"
174
174
  }, ___EmotionJSX(Icon, {
175
175
  icon: DeleteIcon,
176
176
  title: {
@@ -214,33 +214,35 @@ var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
214
214
  top: 22,
215
215
  right: 22
216
216
  });
217
+ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
218
+ path: {
219
+ fill: 'blue'
220
+ },
221
+ '&.is-hovered': {
222
+ backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
223
+ path: {
224
+ fill: 'white'
225
+ }
226
+ },
227
+ '&.is-pressed': {
228
+ backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
229
+ borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
230
+ path: {
231
+ fill: 'white'
232
+ }
233
+ },
234
+ maxHeight: '48.5px',
235
+ maxWidth: '48.5px',
236
+ width: '48.5px',
237
+ p: 'sm',
238
+ display: 'inline-flex',
239
+ alignItems: 'center',
240
+ justifyContent: 'center'
241
+ });
217
242
  var iconButtons = {
218
243
  base: _objectSpread({}, baseIconButton),
219
- nextGen: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
220
- path: {
221
- fill: 'blue'
222
- },
223
- '&.is-hovered': {
224
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
225
- path: {
226
- fill: 'white'
227
- }
228
- },
229
- '&.is-pressed': {
230
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
231
- borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
232
- path: {
233
- fill: 'white'
234
- }
235
- },
236
- maxHeight: '48.5px',
237
- maxWidth: '48.5px',
238
- width: '48.5px',
239
- p: 'sm',
240
- display: 'inline-flex',
241
- alignItems: 'center',
242
- justifyContent: 'center'
243
- }),
244
+ nextGen: _objectSpread({}, onyxIconButton),
245
+ onyx: _objectSpread({}, onyxIconButton),
244
246
  modalCloseButton: modalCloseButton,
245
247
  badge: {
246
248
  deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
@@ -27,6 +27,7 @@ var nextGen = {
27
27
  color: 'blue-600'
28
28
  }
29
29
  };
30
+ var onyx = _objectSpread({}, nextGen);
30
31
  var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
31
32
  px: '0',
32
33
  display: 'block',
@@ -56,6 +57,7 @@ var footerHeader = _objectSpread(_objectSpread({}, footerLinks), {}, {
56
57
  });
57
58
  export default {
58
59
  nextGen: nextGen,
60
+ onyx: onyx,
59
61
  sideNav: sideNav,
60
62
  footerLinks: footerLinks,
61
63
  footerHeader: footerHeader
@@ -5,8 +5,11 @@ export var shouldReturnComingSoon = function shouldReturnComingSoon(context, sel
5
5
  var _context;
6
6
  var story = context.name;
7
7
  var component = context.title.split('/')[1];
8
- var isNextGenOnlyComponent = _includesInstanceProperty(nextGenOnlyComponents).call(nextGenOnlyComponents, component) || context.title.split('/')[0] === 'Next Gen Recipes';
8
+ var isNextGenOnlyComponent = _includesInstanceProperty(nextGenOnlyComponents).call(nextGenOnlyComponents, component) || context.title.split('/')[0] === 'Onyx Recipes';
9
9
  var isStoryInNextGen = _includesInstanceProperty(nextGenConvertedComponents).call(nextGenConvertedComponents, component);
10
+ if (isNextGenOnlyComponent && (selectedTheme === themes.NEXT_GEN || selectedTheme === themes.NEXT_GEN_DARK)) {
11
+ return false;
12
+ }
10
13
 
11
14
  // if a specific story has not been converted, return the coming soon message
12
15
  if (componentSpecificNextGenBlacklist[component] && _includesInstanceProperty(_context = componentSpecificNextGenBlacklist[component]).call(_context, story) && (selectedTheme === themes.NEXT_GEN || selectedTheme === themes.NEXT_GEN_DARK)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.105.0-alpha.0",
3
+ "version": "2.105.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",