@pingux/astro 2.145.0-alpha.0 → 2.145.0-alpha.1

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.
@@ -44,6 +44,9 @@ var LinkSelectField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
44
44
  helperText = props.helperText;
45
45
  var _getAriaAttributeProp = (0, _ariaAttributes.getAriaAttributeProps)(props),
46
46
  ariaProps = _getAriaAttributeProp.ariaProps;
47
+ var _useGetTheme = (0, _hooks.useGetTheme)(),
48
+ themeState = _useGetTheme.themeState;
49
+ var isOnyx = themeState.isOnyx;
47
50
  var helperTextId = (0, _uuid.v4)();
48
51
  (0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
49
52
  var _useSelectField = (0, _hooks.useSelectField)(_objectSpread(_objectSpread({
@@ -69,7 +72,7 @@ var LinkSelectField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
69
72
  "aria-describedby": helperText && helperTextId
70
73
  }), (0, _react2.jsx)(_.Text, {
71
74
  variant: "label",
72
- color: "active"
75
+ color: isOnyx ? 'font.link' : 'active'
73
76
  }, placeholder), (0, _react2.jsx)(_.Box, {
74
77
  isRow: true
75
78
  }, isLoadingInitial && (0, _react2.jsx)(_.Loader, {
@@ -79,6 +79,7 @@ export declare const colors: {
79
79
  font: {
80
80
  base: string;
81
81
  light: string;
82
+ link: string;
82
83
  };
83
84
  badge: {
84
85
  background: string;
@@ -27,7 +27,8 @@ var overrides = {
27
27
  exports.overrides = overrides;
28
28
  var font = {
29
29
  base: _colorTokens.nextGenColors['gray-100'],
30
- light: _colorTokens.nextGenColors['gray-400']
30
+ light: _colorTokens.nextGenColors['gray-400'],
31
+ link: _colorTokens.nextGenColors['blue-400']
31
32
  };
32
33
  var hoverDark = _chromaJs["default"].mix('#23282e', 'white', 0.04, 'rgb').hex();
33
34
  var border = {
@@ -17,7 +17,7 @@ import MenuDown from '@pingux/mdi-react/MenuDownIcon';
17
17
  import PropTypes from 'prop-types';
18
18
  import { v4 as uuid } from 'uuid';
19
19
  import { Box, Button, Icon, Loader, Text } from '../..';
20
- import { usePropWarning, useSelectField } from '../../hooks';
20
+ import { useGetTheme, usePropWarning, useSelectField } from '../../hooks';
21
21
  import { getPendoID } from '../../utils/devUtils/constants/pendoID';
22
22
  import statuses from '../../utils/devUtils/constants/statuses';
23
23
  import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
@@ -33,6 +33,9 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
33
33
  helperText = props.helperText;
34
34
  var _getAriaAttributeProp = getAriaAttributeProps(props),
35
35
  ariaProps = _getAriaAttributeProp.ariaProps;
36
+ var _useGetTheme = useGetTheme(),
37
+ themeState = _useGetTheme.themeState;
38
+ var isOnyx = themeState.isOnyx;
36
39
  var helperTextId = uuid();
37
40
  usePropWarning(props, 'disabled', 'isDisabled');
38
41
  var _useSelectField = useSelectField(_objectSpread(_objectSpread({
@@ -58,7 +61,7 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
58
61
  "aria-describedby": helperText && helperTextId
59
62
  }), ___EmotionJSX(Text, {
60
63
  variant: "label",
61
- color: "active"
64
+ color: isOnyx ? 'font.link' : 'active'
62
65
  }, placeholder), ___EmotionJSX(Box, {
63
66
  isRow: true
64
67
  }, isLoadingInitial && ___EmotionJSX(Loader, {
@@ -19,7 +19,8 @@ export var overrides = {
19
19
  };
20
20
  var font = {
21
21
  base: nextGenColors['gray-100'],
22
- light: nextGenColors['gray-400']
22
+ light: nextGenColors['gray-400'],
23
+ link: nextGenColors['blue-400']
23
24
  };
24
25
  var hoverDark = chroma.mix('#23282e', 'white', 0.04, 'rgb').hex();
25
26
  var border = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.145.0-alpha.0",
3
+ "version": "2.145.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -205,7 +205,8 @@
205
205
  "jest-canvas-mock": "^2.3.0",
206
206
  "jest-emotion": "^11.0.0",
207
207
  "jest-pnp-resolver": "^1.2.2",
208
- "msw": "^2.10.5",
208
+ "msw": "^2.11.3",
209
+ "msw-storybook-addon": "^2.0.5",
209
210
  "mutationobserver-shim": "^0.3.7",
210
211
  "react": "18",
211
212
  "react-dom": "18",