@pingux/astro 2.246.0-alpha.0 → 2.246.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.
|
@@ -8,7 +8,6 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactAria = require("react-aria");
|
|
11
|
-
var _onyxTokens = require("@pingux/onyx-tokens");
|
|
12
11
|
var _ = require("../..");
|
|
13
12
|
var _hooks = require("../../hooks");
|
|
14
13
|
var _safariAgent = require("../../styles/safariAgent");
|
|
@@ -33,10 +32,7 @@ const HelpHint = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
33
32
|
...others
|
|
34
33
|
} = props;
|
|
35
34
|
const {
|
|
36
|
-
icons
|
|
37
|
-
themeState: {
|
|
38
|
-
isOnyxDark
|
|
39
|
-
}
|
|
35
|
+
icons
|
|
40
36
|
} = (0, _hooks.useGetTheme)();
|
|
41
37
|
const triggerRef = (0, _hooks.useLocalOrForwardRef)(ref);
|
|
42
38
|
const {
|
|
@@ -81,12 +77,7 @@ const HelpHint = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
81
77
|
ref: triggerRef,
|
|
82
78
|
"aria-label": "label help hint",
|
|
83
79
|
"data-testid": "help-hint__button",
|
|
84
|
-
variant: "hintButton"
|
|
85
|
-
sx: {
|
|
86
|
-
'&.is-hovered, &.is-focused': {
|
|
87
|
-
backgroundColor: isOnyxDark ? _onyxTokens.astroTokensDark.color.common.light : _onyxTokens.astroTokens.color.common.light
|
|
88
|
-
}
|
|
89
|
-
}
|
|
80
|
+
variant: "hintButton"
|
|
90
81
|
}, (0, _reactAria.mergeProps)(triggerProps, iconButtonProps || {})), (0, _react2.jsx)(_.Icon, {
|
|
91
82
|
icon: icons.helpHint,
|
|
92
83
|
size: "xs"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
2
2
|
import React, { forwardRef, useEffect } from 'react';
|
|
3
3
|
import { FocusScope, mergeProps } from 'react-aria';
|
|
4
|
-
import { astroTokens, astroTokensDark } from '@pingux/onyx-tokens';
|
|
5
4
|
import { Box, Icon, IconButton, PopoverContainer } from '../..';
|
|
6
5
|
import { useGetTheme, useHelpHintPopover, useLocalOrForwardRef, useStatusClasses } from '../../hooks';
|
|
7
6
|
import { isSafari } from '../../styles/safariAgent';
|
|
@@ -25,10 +24,7 @@ const HelpHint = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25
24
|
...others
|
|
26
25
|
} = props;
|
|
27
26
|
const {
|
|
28
|
-
icons
|
|
29
|
-
themeState: {
|
|
30
|
-
isOnyxDark
|
|
31
|
-
}
|
|
27
|
+
icons
|
|
32
28
|
} = useGetTheme();
|
|
33
29
|
const triggerRef = useLocalOrForwardRef(ref);
|
|
34
30
|
const {
|
|
@@ -73,12 +69,7 @@ const HelpHint = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
73
69
|
ref: triggerRef,
|
|
74
70
|
"aria-label": "label help hint",
|
|
75
71
|
"data-testid": "help-hint__button",
|
|
76
|
-
variant: "hintButton"
|
|
77
|
-
sx: {
|
|
78
|
-
'&.is-hovered, &.is-focused': {
|
|
79
|
-
backgroundColor: isOnyxDark ? astroTokensDark.color.common.light : astroTokens.color.common.light
|
|
80
|
-
}
|
|
81
|
-
}
|
|
72
|
+
variant: "hintButton"
|
|
82
73
|
}, mergeProps(triggerProps, iconButtonProps || {})), ___EmotionJSX(Icon, {
|
|
83
74
|
icon: icons.helpHint,
|
|
84
75
|
size: "xs"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pingux/astro",
|
|
3
|
-
"version": "2.246.
|
|
3
|
+
"version": "2.246.1",
|
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@internationalized/number": "^3.6.0",
|
|
69
69
|
"@monaco-editor/react": "4.4.2",
|
|
70
70
|
"@pingux/mdi-react": "^1.2.0",
|
|
71
|
-
"@pingux/onyx-tokens": "^0.
|
|
71
|
+
"@pingux/onyx-tokens": "^0.45.0",
|
|
72
72
|
"@react-aria/accordion": "~3.0.0-alpha.11",
|
|
73
73
|
"@react-aria/breadcrumbs": "^3.1.4",
|
|
74
74
|
"@react-aria/button": "^3.13.2",
|