@pingux/astro 2.112.0 → 2.113.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.
@@ -38,7 +38,7 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
38
38
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(source), !0)).call(_context5, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
39
39
  var displayName = 'ColorField';
40
40
  var ColorField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
41
- var _context;
41
+ var _context, _state$colorValue;
42
42
  var _props$align = props.align,
43
43
  align = _props$align === void 0 ? 'middle' : _props$align,
44
44
  buttonProps = props.buttonProps,
@@ -118,7 +118,7 @@ var ColorField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
118
118
  };
119
119
  return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, (0, _pendoID.getPendoID)(displayName), fieldContainerProps), isDetailedMode ? (0, _react2.jsx)(_ColorFieldPreviewButton["default"], (0, _extends2["default"])({
120
120
  isOpen: popoverState.isOpen,
121
- colorValue: state.colorValue.toString('hex'),
121
+ colorValue: (_state$colorValue = state.colorValue) === null || _state$colorValue === void 0 ? void 0 : _state$colorValue.toString('hex'),
122
122
  label: label
123
123
  }, (0, _reactAria.mergeProps)(defaultButtonProps, buttonProps, ariaProps, triggerProps))) : (0, _react2.jsx)(_react["default"].Fragment, null, label && (0, _react2.jsx)(_.Label, fieldLabelProps), (0, _react2.jsx)(_.Button, (0, _extends2["default"])({
124
124
  "aria-label": "Select color",
@@ -47,5 +47,5 @@ export interface ColorFieldPreviewButtonProps extends ButtonProps {
47
47
  isOpen: boolean;
48
48
  bg: string;
49
49
  label: string | React.ReactNode;
50
- colorValue: string;
50
+ colorValue?: string;
51
51
  }
@@ -27,7 +27,7 @@ import ColorFieldPreviewButton from './ColorFieldPreviewButton';
27
27
  import { jsx as ___EmotionJSX } from "@emotion/react";
28
28
  var displayName = 'ColorField';
29
29
  var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
30
- var _context;
30
+ var _context, _state$colorValue;
31
31
  var _props$align = props.align,
32
32
  align = _props$align === void 0 ? 'middle' : _props$align,
33
33
  buttonProps = props.buttonProps,
@@ -107,7 +107,7 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
107
107
  };
108
108
  return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), isDetailedMode ? ___EmotionJSX(ColorFieldPreviewButton, _extends({
109
109
  isOpen: popoverState.isOpen,
110
- colorValue: state.colorValue.toString('hex'),
110
+ colorValue: (_state$colorValue = state.colorValue) === null || _state$colorValue === void 0 ? void 0 : _state$colorValue.toString('hex'),
111
111
  label: label
112
112
  }, mergeProps(defaultButtonProps, buttonProps, ariaProps, triggerProps))) : ___EmotionJSX(React.Fragment, null, label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Button, _extends({
113
113
  "aria-label": "Select color",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.112.0",
3
+ "version": "2.113.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,7 +50,7 @@
50
50
  "@react-aria/button": "^3.2.1",
51
51
  "@react-aria/calendar": "^3.5.7",
52
52
  "@react-aria/checkbox": "^3.2.0",
53
- "@react-aria/color": "~3.0.0-beta.15",
53
+ "@react-aria/color": "~3.0.0",
54
54
  "@react-aria/combobox": "^3.0.0",
55
55
  "@react-aria/datepicker": "^3.10.1",
56
56
  "@react-aria/dialog": "^3.1.2",
@@ -77,7 +77,7 @@
77
77
  "@react-spectrum/test-utils": "^3.0.0-alpha.1",
78
78
  "@react-spectrum/utils": "~3.6.1",
79
79
  "@react-stately/calendar": "^3.5.0",
80
- "@react-stately/color": "~3.1.1",
80
+ "@react-stately/color": "~3.8.1",
81
81
  "@react-stately/datepicker": "^3.9.4",
82
82
  "@react-stately/dnd": "^3.2.6",
83
83
  "@react-stately/grid": "~3.3.1",