@pingux/astro 2.145.0-alpha.0 → 2.145.0-alpha.2
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.
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +4 -1
- package/lib/cjs/components/ListView/ListView.stories.js +9 -0
- package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.js +3 -0
- package/lib/cjs/components/ListViewItem/ListViewItem.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +4 -1
- package/lib/components/LinkSelectField/LinkSelectField.js +5 -2
- package/lib/components/ListView/ListView.stories.js +9 -0
- package/lib/components/ListView/stories/ListViewNextGenComponent.js +3 -0
- package/lib/components/ListViewItem/ListViewItem.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +4 -1
- package/package.json +3 -2
|
@@ -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:
|
|
75
|
+
color: isOnyx ? 'font.link' : 'active'
|
|
73
76
|
}, placeholder), (0, _react2.jsx)(_.Box, {
|
|
74
77
|
isRow: true
|
|
75
78
|
}, isLoadingInitial && (0, _react2.jsx)(_.Loader, {
|
|
@@ -383,6 +383,9 @@ var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
|
|
383
383
|
},
|
|
384
384
|
iconProps: {
|
|
385
385
|
color: 'text.secondary'
|
|
386
|
+
},
|
|
387
|
+
iconWrapperProps: {
|
|
388
|
+
color: 'cyan'
|
|
386
389
|
}
|
|
387
390
|
}, (0, _react2.jsx)(Controls, null)));
|
|
388
391
|
}));
|
|
@@ -419,6 +422,9 @@ var WithCharts = function WithCharts(_ref7) {
|
|
|
419
422
|
},
|
|
420
423
|
iconProps: {
|
|
421
424
|
color: 'text.secondary'
|
|
425
|
+
},
|
|
426
|
+
iconWrapperProps: {
|
|
427
|
+
color: 'cyan'
|
|
422
428
|
}
|
|
423
429
|
}, (0, _react2.jsx)(_2.ListViewItemChart, {
|
|
424
430
|
containerRef: chartContainerRef,
|
|
@@ -565,6 +571,9 @@ var OnLoadPrev = function OnLoadPrev() {
|
|
|
565
571
|
data: {
|
|
566
572
|
text: item.name,
|
|
567
573
|
icon: _FormSelectIcon["default"]
|
|
574
|
+
},
|
|
575
|
+
iconWrapperProps: {
|
|
576
|
+
color: 'cyan'
|
|
568
577
|
}
|
|
569
578
|
}, (0, _react2.jsx)(Controls, null)));
|
|
570
579
|
}));
|
|
@@ -71,7 +71,7 @@ var ListViewItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
71
71
|
name: (0, _concat["default"])(_context = "".concat(text)).call(_context, LIST_ITEM_ICON)
|
|
72
72
|
},
|
|
73
73
|
isCircle: true,
|
|
74
|
-
color: "
|
|
74
|
+
color: "white"
|
|
75
75
|
}, iconWrapperProps)) : (0, _react2.jsx)(_.Box, {
|
|
76
76
|
width: "25px",
|
|
77
77
|
variant: "listViewItem.iconContainer"
|
|
@@ -16,6 +16,7 @@ export declare const colors: {
|
|
|
16
16
|
yellow: string;
|
|
17
17
|
teal: string;
|
|
18
18
|
blue: string;
|
|
19
|
+
white: string;
|
|
19
20
|
indigo: string;
|
|
20
21
|
lightBlue: string;
|
|
21
22
|
lightPink: string;
|
|
@@ -79,6 +80,7 @@ export declare const colors: {
|
|
|
79
80
|
font: {
|
|
80
81
|
base: string;
|
|
81
82
|
light: string;
|
|
83
|
+
link: string;
|
|
82
84
|
};
|
|
83
85
|
badge: {
|
|
84
86
|
background: string;
|
|
@@ -106,6 +108,7 @@ export declare const colors: {
|
|
|
106
108
|
yellow: string;
|
|
107
109
|
teal: string;
|
|
108
110
|
blue: string;
|
|
111
|
+
white: string;
|
|
109
112
|
indigo: string;
|
|
110
113
|
lightBlue: string;
|
|
111
114
|
lightPink: string;
|
|
@@ -15,6 +15,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports.overrides = exports.colors = void 0;
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
17
|
var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
|
18
|
+
var _colors = require("../../colors");
|
|
18
19
|
var _colorTokens = require("../../themes/next-gen/tokens/colorTokens");
|
|
19
20
|
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; }
|
|
20
21
|
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; }
|
|
@@ -27,7 +28,8 @@ var overrides = {
|
|
|
27
28
|
exports.overrides = overrides;
|
|
28
29
|
var font = {
|
|
29
30
|
base: _colorTokens.nextGenColors['gray-100'],
|
|
30
|
-
light: _colorTokens.nextGenColors['gray-400']
|
|
31
|
+
light: _colorTokens.nextGenColors['gray-400'],
|
|
32
|
+
link: _colorTokens.nextGenColors['blue-400']
|
|
31
33
|
};
|
|
32
34
|
var hoverDark = _chromaJs["default"].mix('#23282e', 'white', 0.04, 'rgb').hex();
|
|
33
35
|
var border = {
|
|
@@ -52,6 +54,7 @@ var twoTone = {
|
|
|
52
54
|
yellow: _colorTokens.nextGenColors['yellow-500'],
|
|
53
55
|
teal: _colorTokens.nextGenColors['teal-500'],
|
|
54
56
|
blue: _colorTokens.nextGenColors['blue-500'],
|
|
57
|
+
white: _colors.white,
|
|
55
58
|
indigo: _colorTokens.nextGenColors['indigo-500'],
|
|
56
59
|
lightBlue: _colorTokens.nextGenColors['blue-600'],
|
|
57
60
|
lightPink: _colorTokens.nextGenColors['pink-600'],
|
|
@@ -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:
|
|
64
|
+
color: isOnyx ? 'font.link' : 'active'
|
|
62
65
|
}, placeholder), ___EmotionJSX(Box, {
|
|
63
66
|
isRow: true
|
|
64
67
|
}, isLoadingInitial && ___EmotionJSX(Loader, {
|
|
@@ -367,6 +367,9 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
|
|
|
367
367
|
},
|
|
368
368
|
iconProps: {
|
|
369
369
|
color: 'text.secondary'
|
|
370
|
+
},
|
|
371
|
+
iconWrapperProps: {
|
|
372
|
+
color: 'cyan'
|
|
370
373
|
}
|
|
371
374
|
}, ___EmotionJSX(Controls, null)));
|
|
372
375
|
}));
|
|
@@ -402,6 +405,9 @@ export var WithCharts = function WithCharts(_ref7) {
|
|
|
402
405
|
},
|
|
403
406
|
iconProps: {
|
|
404
407
|
color: 'text.secondary'
|
|
408
|
+
},
|
|
409
|
+
iconWrapperProps: {
|
|
410
|
+
color: 'cyan'
|
|
405
411
|
}
|
|
406
412
|
}, ___EmotionJSX(ListViewItemChart, {
|
|
407
413
|
containerRef: chartContainerRef,
|
|
@@ -547,6 +553,9 @@ export var OnLoadPrev = function OnLoadPrev() {
|
|
|
547
553
|
data: {
|
|
548
554
|
text: item.name,
|
|
549
555
|
icon: FormSelectIcon
|
|
556
|
+
},
|
|
557
|
+
iconWrapperProps: {
|
|
558
|
+
color: 'cyan'
|
|
550
559
|
}
|
|
551
560
|
}, ___EmotionJSX(Controls, null)));
|
|
552
561
|
}));
|
|
@@ -57,7 +57,7 @@ var ListViewItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
57
57
|
name: _concatInstanceProperty(_context = "".concat(text)).call(_context, LIST_ITEM_ICON)
|
|
58
58
|
},
|
|
59
59
|
isCircle: true,
|
|
60
|
-
color: "
|
|
60
|
+
color: "white"
|
|
61
61
|
}, iconWrapperProps)) : ___EmotionJSX(Box, {
|
|
62
62
|
width: "25px",
|
|
63
63
|
variant: "listViewItem.iconContainer"
|
|
@@ -10,6 +10,7 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
|
10
10
|
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; }
|
|
11
11
|
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) { _defineProperty(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; }
|
|
12
12
|
import chroma from 'chroma-js';
|
|
13
|
+
import { white } from '../../colors';
|
|
13
14
|
import { nextGenColors } from '../../themes/next-gen/tokens/colorTokens';
|
|
14
15
|
export var overrides = {
|
|
15
16
|
neutral: {
|
|
@@ -19,7 +20,8 @@ export var overrides = {
|
|
|
19
20
|
};
|
|
20
21
|
var font = {
|
|
21
22
|
base: nextGenColors['gray-100'],
|
|
22
|
-
light: nextGenColors['gray-400']
|
|
23
|
+
light: nextGenColors['gray-400'],
|
|
24
|
+
link: nextGenColors['blue-400']
|
|
23
25
|
};
|
|
24
26
|
var hoverDark = chroma.mix('#23282e', 'white', 0.04, 'rgb').hex();
|
|
25
27
|
var border = {
|
|
@@ -44,6 +46,7 @@ var twoTone = {
|
|
|
44
46
|
yellow: nextGenColors['yellow-500'],
|
|
45
47
|
teal: nextGenColors['teal-500'],
|
|
46
48
|
blue: nextGenColors['blue-500'],
|
|
49
|
+
white: white,
|
|
47
50
|
indigo: nextGenColors['indigo-500'],
|
|
48
51
|
lightBlue: nextGenColors['blue-600'],
|
|
49
52
|
lightPink: nextGenColors['pink-600'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pingux/astro",
|
|
3
|
-
"version": "2.145.0-alpha.
|
|
3
|
+
"version": "2.145.0-alpha.2",
|
|
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.
|
|
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",
|