@pingux/astro 2.202.1-alpha.0 → 2.202.2-alpha.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 (30) hide show
  1. package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +8 -5
  2. package/lib/cjs/components/ImageUploadField/imageUpload.js +5 -1
  3. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +4 -0
  4. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
  5. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +2 -0
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +2 -0
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +8 -0
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +9 -1
  10. package/lib/cjs/styles/themeOverrides/onyxSideNav.d.ts +2 -0
  11. package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +2 -0
  12. package/lib/cjs/styles/themes/astro/customProperties/icons.js +3 -1
  13. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +2 -0
  14. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
  15. package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -0
  16. package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +2 -0
  17. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +1 -1
  18. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +2 -0
  19. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +18 -0
  20. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +15 -0
  21. package/lib/cjs/styles/themes/next-gen/variants/variants.js +18 -2
  22. package/lib/components/ImageUploadField/ImagePreviewButton.js +8 -5
  23. package/lib/components/ImageUploadField/imageUpload.js +5 -1
  24. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +1 -0
  25. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +9 -1
  26. package/lib/styles/themes/astro/customProperties/icons.js +3 -1
  27. package/lib/styles/themes/next-gen/colors/colors.js +1 -0
  28. package/lib/styles/themes/next-gen/customProperties/icons.js +1 -1
  29. package/lib/styles/themes/next-gen/variants/variants.js +18 -2
  30. package/package.json +1 -1
@@ -13,10 +13,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _reactAria = require("react-aria");
16
- var _CameraAltIcon = _interopRequireDefault(require("@pingux/mdi-react/CameraAltIcon"));
17
- var _ImageFilterHdrIcon = _interopRequireDefault(require("@pingux/mdi-react/ImageFilterHdrIcon"));
18
16
  var _interactions = require("@react-aria/interactions");
19
17
  var _propTypes = _interopRequireDefault(require("prop-types"));
18
+ var _hooks = require("../../hooks");
20
19
  var _index = require("../../index");
21
20
  var _Loader = _interopRequireDefault(require("../Loader"));
22
21
  var _react2 = require("@emotion/react");
@@ -44,9 +43,13 @@ var ImagePreviewButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
44
43
  var _useHover = (0, _interactions.useHover)(props),
45
44
  hoverProps = _useHover.hoverProps,
46
45
  isHovered = _useHover.isHovered;
46
+ var _useGetTheme = (0, _hooks.useGetTheme)(),
47
+ icons = _useGetTheme.icons;
48
+ var ImageOutlineIcon = icons.ImageOutlineIcon,
49
+ CameraOutlineIcon = icons.CameraOutlineIcon;
47
50
  var noImagePreview = defaultPreviewNode || (0, _react2.jsx)(_index.Icon, {
48
- icon: _ImageFilterHdrIcon["default"],
49
- color: "neutral.60",
51
+ icon: ImageOutlineIcon,
52
+ variant: "imageUpload.noImagePreview",
50
53
  size: 24,
51
54
  "data-testid": "image-upload-no-image-preview",
52
55
  title: {
@@ -82,7 +85,7 @@ var ImagePreviewButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
82
85
  sx: widthHeightSx,
83
86
  "data-testid": "image-upload-hovered-preview"
84
87
  }, (0, _react2.jsx)(_index.Icon, {
85
- icon: _CameraAltIcon["default"],
88
+ icon: CameraOutlineIcon,
86
89
  color: isFocusVisible || isMenuOpen ? 'active' : 'white',
87
90
  size: 24,
88
91
  sx: {
@@ -33,6 +33,9 @@ var hoveredPreview = {
33
33
  borderRadius: 2
34
34
  }
35
35
  };
36
+ var noImagePreview = {
37
+ fill: '#98a0a8 !important'
38
+ };
36
39
  var button = _objectSpread(_objectSpread({}, _Buttons.base), {}, {
37
40
  display: 'inline-flex',
38
41
  alignItems: 'center',
@@ -47,5 +50,6 @@ var button = _objectSpread(_objectSpread({}, _Buttons.base), {}, {
47
50
  });
48
51
  var _default = exports["default"] = {
49
52
  hoveredPreview: hoveredPreview,
50
- button: button
53
+ button: button,
54
+ noImagePreview: noImagePreview
51
55
  };
@@ -58,6 +58,8 @@ declare const useGetTheme: () => {
58
58
  SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
59
59
  userExperienceIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
60
60
  WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
61
+ CameraOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
62
+ ImageOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
61
63
  helpHint: () => import("react/jsx-runtime").JSX.Element;
62
64
  ModalCloseIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
63
65
  };
@@ -156,6 +158,8 @@ declare const useGetTheme: () => {
156
158
  SuccessCircle: string;
157
159
  userExperienceIcon: string;
158
160
  WarningIcon: string;
161
+ CameraOutlineIcon: string;
162
+ ImageOutlineIcon: string;
159
163
  helpHint: string;
160
164
  ModalCloseIcon: string;
161
165
  };
@@ -68,6 +68,7 @@ export declare const colors: {
68
68
  text: {
69
69
  primary: any;
70
70
  secondary: any;
71
+ error: any;
71
72
  message: string;
72
73
  fieldHelper: any;
73
74
  };
@@ -153,6 +153,7 @@ var colors = exports.colors = _objectSpread(_objectSpread({
153
153
  text: {
154
154
  primary: _onyxTokens.astroTokensDark.color.font.base,
155
155
  secondary: _onyxTokens.astroTokensDark.color.font.light,
156
+ error: _onyxTokens.astroTokensDark.color.font.error,
156
157
  message: 'white',
157
158
  fieldHelper: _onyxTokens.astroTokensDark.color.gray[400]
158
159
  },
@@ -40,6 +40,8 @@ declare const _default: {
40
40
  SuccessCircle: string;
41
41
  userExperienceIcon: string;
42
42
  WarningIcon: string;
43
+ CameraOutlineIcon: string;
44
+ ImageOutlineIcon: string;
43
45
  helpHint: string;
44
46
  ModalCloseIcon: string;
45
47
  };
@@ -43,6 +43,8 @@ export declare const nextGenDarkThemeValues: {
43
43
  SuccessCircle: string;
44
44
  userExperienceIcon: string;
45
45
  WarningIcon: string;
46
+ CameraOutlineIcon: string;
47
+ ImageOutlineIcon: string;
46
48
  helpHint: string;
47
49
  ModalCloseIcon: string;
48
50
  };
@@ -762,5 +762,13 @@ declare const _default: {
762
762
  };
763
763
  };
764
764
  };
765
+ imageUpload: {
766
+ button: {
767
+ background: string;
768
+ };
769
+ noImagePreview: {
770
+ color: string;
771
+ };
772
+ };
765
773
  };
766
774
  export default _default;
@@ -272,7 +272,7 @@ var _default = exports["default"] = {
272
272
  color: 'text.fieldHelper'
273
273
  },
274
274
  '&.is-error': {
275
- color: 'critical.bright'
275
+ color: 'text.error'
276
276
  },
277
277
  '&.is-warning': {
278
278
  color: 'warning.bright'
@@ -302,5 +302,13 @@ var _default = exports["default"] = {
302
302
  backgroundColor: '#2C323A'
303
303
  }
304
304
  }
305
+ },
306
+ imageUpload: {
307
+ button: {
308
+ background: 'transparent'
309
+ },
310
+ noImagePreview: {
311
+ color: "".concat(_onyxTokens.astroTokensDark.color.gray[100], " !important")
312
+ }
305
313
  }
306
314
  };
@@ -318,6 +318,8 @@ declare const _default: {
318
318
  SuccessCircle: string;
319
319
  userExperienceIcon: string;
320
320
  WarningIcon: string;
321
+ CameraOutlineIcon: string;
322
+ ImageOutlineIcon: string;
321
323
  helpHint: string;
322
324
  ModalCloseIcon: string;
323
325
  };
@@ -41,6 +41,8 @@ declare const _default: {
41
41
  SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
42
42
  userExperienceIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
43
43
  WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
44
+ CameraOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
45
+ ImageOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
44
46
  helpHint: () => import("react/jsx-runtime").JSX.Element;
45
47
  ModalCloseIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
46
48
  };
@@ -20,6 +20,7 @@ var _AlertOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertO
20
20
  var _ApplicationOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ApplicationOutlineIcon"));
21
21
  var _ArrowDownIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowDownIcon"));
22
22
  var _ArrowUpIcon = _interopRequireDefault(require("@pingux/mdi-react/ArrowUpIcon"));
23
+ var _CameraAltIcon = _interopRequireDefault(require("@pingux/mdi-react/CameraAltIcon"));
23
24
  var _ChatIcon = _interopRequireDefault(require("@pingux/mdi-react/ChatIcon"));
24
25
  var _CheckboxBlankCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckboxBlankCircleOutlineIcon"));
25
26
  var _CheckCircleIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckCircleIcon"));
@@ -34,6 +35,7 @@ var _EmoticonHappyOutlineIcon = _interopRequireDefault(require("@pingux/mdi-reac
34
35
  var _FingerprintIcon = _interopRequireDefault(require("@pingux/mdi-react/FingerprintIcon"));
35
36
  var _GlobeIcon = _interopRequireDefault(require("@pingux/mdi-react/GlobeIcon"));
36
37
  var _HomeIcon = _interopRequireDefault(require("@pingux/mdi-react/HomeIcon"));
38
+ var _ImageFilterHdrIcon = _interopRequireDefault(require("@pingux/mdi-react/ImageFilterHdrIcon"));
37
39
  var _InformationIcon = _interopRequireDefault(require("@pingux/mdi-react/InformationIcon"));
38
40
  var _InformationOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/InformationOutlineIcon"));
39
41
  var _KeyChainVariantIcon = _interopRequireDefault(require("@pingux/mdi-react/KeyChainVariantIcon"));
@@ -73,4 +75,4 @@ var HelpIcon = function HelpIcon() {
73
75
  fill: "#3B4A58"
74
76
  }));
75
77
  };
76
- var _default = exports["default"] = (_statuses$DEFAULT$sta = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, _statuses["default"].DEFAULT, _InformationIcon["default"]), _statuses["default"].ERROR, _AlertCircleIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleIcon["default"]), _statuses["default"].WARNING, _AlertIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "aic", _navBarIcons.Aic), "applicationsIcon", _ApplicationOutlineIcon["default"]), "Ascending", _MenuUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateIcon["default"]), "daVinci", _navBarIcons.DaVinci), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _MenuDownIcon["default"]), "popoverMenuIcon", _MoreVertIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "ErrorCircle", _AlertCircleIcon["default"]), "integrationsIcon", _ConnectionIcon["default"]), "listViewMenu", _MoreVertIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleIcon["default"]), "mdiEarth", _EarthIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "mdiShoCard", _navBarIcons.Credentials), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _MenuDownIcon["default"]), "MenuUp", _MenuUpIcon["default"]), "monitoringIcon", _PulseIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _WebIcon["default"]), "p1verify", _navBarIcons.Verify), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "pam", _navBarIcons.PamIcon), "PingAuthorize", _KeyChainVariantIcon["default"]), "HomeIcon", _HomeIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmallWhite), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleIcon["default"]), "userExperienceIcon", _MonitorScreenshotIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "WarningIcon", _AlertOutlineIcon["default"]), "helpHint", HelpIcon), "ModalCloseIcon", _CloseIcon["default"]));
78
+ var _default = exports["default"] = (_statuses$DEFAULT$sta = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, _statuses["default"].DEFAULT, _InformationIcon["default"]), _statuses["default"].ERROR, _AlertCircleIcon["default"]), _statuses["default"].SUCCESS, _CheckCircleIcon["default"]), _statuses["default"].WARNING, _AlertIcon["default"]), _statuses.statusIcon.CRITICAL, _AlertCircleOutlineIcon["default"]), _statuses.statusIcon.FATAL, _CloseOctagonOutlineIcon["default"]), _statuses.statusIcon.INFO, _InformationOutlineIcon["default"]), _statuses.statusIcon.MAJOR, _ArrowUpIcon["default"]), _statuses.statusIcon.MINOR, _ArrowDownIcon["default"]), _statuses.statusIcon.WARNING_NEUTRAL, _AlertOutlineIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "aic", _navBarIcons.Aic), "applicationsIcon", _ApplicationOutlineIcon["default"]), "Ascending", _MenuUpIcon["default"]), "authenticationIcon", _CheckCircleOutlineIcon["default"]), "clipboard", _ClipboardIcon["default"]), "CreateIcon", _CreateIcon["default"]), "daVinci", _navBarIcons.DaVinci), "DefaultCircle", _CheckboxBlankCircleOutlineIcon["default"]), "Descending", _MenuDownIcon["default"]), "popoverMenuIcon", _MoreVertIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "ErrorCircle", _AlertCircleIcon["default"]), "integrationsIcon", _ConnectionIcon["default"]), "listViewMenu", _MoreVertIcon["default"]), "mdiAccountCog", _AccountCogIcon["default"]), "mdiAccountMultiple", _AccountMultipleIcon["default"]), "mdiEarth", _EarthIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", _FingerprintIcon["default"]), "mdiPlayCircleIcon", _PlayCircleIcon["default"]), "mdiScaleBalance", _ScaleBalanceIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "mdiShoCard", _navBarIcons.Credentials), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", _ViewDashboardIcon["default"]), "mdiWeb", _GlobeIcon["default"]), "MenuDown", _MenuDownIcon["default"]), "MenuUp", _MenuUpIcon["default"]), "monitoringIcon", _PulseIcon["default"]), "openInNew", _OpenInNewIcon["default"]), "overviewIcon", _WebIcon["default"]), "p1verify", _navBarIcons.Verify), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "pam", _navBarIcons.PamIcon), "PingAuthorize", _KeyChainVariantIcon["default"]), "HomeIcon", _HomeIcon["default"]), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmallWhite), "protect", _navBarIcons.Protect), "rocketLaunchIcon", _RocketLaunchIcon["default"]), "shareFeedbackIcon", _ChatIcon["default"]), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", _CheckCircleIcon["default"]), "userExperienceIcon", _MonitorScreenshotIcon["default"]), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_statuses$DEFAULT$sta, "WarningIcon", _AlertOutlineIcon["default"]), "CameraOutlineIcon", _CameraAltIcon["default"]), "ImageOutlineIcon", _ImageFilterHdrIcon["default"]), "helpHint", HelpIcon), "ModalCloseIcon", _CloseIcon["default"]));
@@ -52,6 +52,8 @@ export declare const astroThemeValues: {
52
52
  SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
53
53
  userExperienceIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
54
54
  WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
55
+ CameraOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
56
+ ImageOutlineIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
55
57
  helpHint: () => import("react/jsx-runtime").JSX.Element;
56
58
  ModalCloseIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
57
59
  };
@@ -50,6 +50,7 @@ declare const colors: {
50
50
  text: {
51
51
  primary: any;
52
52
  secondary: any;
53
+ error: any;
53
54
  message: any;
54
55
  fieldHelper: any;
55
56
  };
@@ -94,6 +94,7 @@ var info = exports.info = {
94
94
  var text = {
95
95
  primary: _onyxTokens.astroTokens.color.font.base,
96
96
  secondary: _onyxTokens.astroTokens.color.font.light,
97
+ error: _onyxTokens.astroTokens.color.font.error,
97
98
  message: _onyxTokens.astroTokens.color.gray[700],
98
99
  fieldHelper: _onyxTokens.astroTokens.color.font.light
99
100
  };
@@ -41,6 +41,8 @@ declare const icons: {
41
41
  SuccessCircle: string;
42
42
  userExperienceIcon: string;
43
43
  WarningIcon: string;
44
+ CameraOutlineIcon: string;
45
+ ImageOutlineIcon: string;
44
46
  helpHint: string;
45
47
  ModalCloseIcon: string;
46
48
  };
@@ -20,5 +20,5 @@ var _statuses = _interopRequireWildcard(require("../../../../utils/devUtils/cons
20
20
  var _navBarIcons = require("../../astro/customProperties/navBarIcons");
21
21
  var _icons;
22
22
  function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
23
- var icons = (_icons = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, _statuses["default"].DEFAULT, 'info'), _statuses["default"].ERROR, 'error'), _statuses["default"].SUCCESS, 'check_circle'), _statuses["default"].WARNING, 'warning'), _statuses.statusIcon.CRITICAL, 'error'), _statuses.statusIcon.FATAL, 'dangerous'), _statuses.statusIcon.INFO, 'info'), _statuses.statusIcon.MAJOR, 'arrow_upward'), _statuses.statusIcon.MINOR, 'arrow_downward'), _statuses.statusIcon.WARNING_NEUTRAL, 'warning'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "aic", _navBarIcons.Aic), "applicationsIcon", 'apps'), "Ascending", 'arrow_upward'), "authenticationIcon", 'check_circle'), "clipboard", 'content_paste'), "CreateIcon", 'edit'), "daVinci", 'account_tree'), "DefaultCircle", 'circle'), "Descending", 'arrow_downward'), "popoverMenuIcon", 'more_horiz'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "ErrorCircle", 'error'), "HomeIcon", 'home'), "integrationsIcon", 'widgets'), "listViewMenu", 'more_horiz'), "mdiAccountCog", 'manage_accounts'), "mdiAccountMultiple", 'group'), "mdiEarth", _SettingsOutlineIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", 'fingerprint'), "mdiPlayCircleIcon", 'play_circle'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "mdiScaleBalance", 'balance'), "mdiShoCard", 'id_card'), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", 'dashboard'), "mdiWeb", 'globe'), "MenuDown", 'keyboard_arrow_down'), "MenuUp", 'keyboard_arrow_up'), "monitoringIcon", _ShowChartIcon["default"]), "openInNew", 'open_in_new'), "overviewIcon", 'dashboard'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "p1verify", 'person_check'), "pam", _navBarIcons.PamIcon), "PingAuthorize", 'key'), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), "protect", _navBarIcons.Protect), "rocketLaunchIcon", 'rocket_launch'), "shareFeedbackIcon", 'chat'), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", 'check_circle'), "userExperienceIcon", 'palette'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "WarningIcon", 'warning'), "helpHint", 'help_outline'), "ModalCloseIcon", 'close'));
23
+ var icons = (_icons = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, _statuses["default"].DEFAULT, 'info'), _statuses["default"].ERROR, 'error'), _statuses["default"].SUCCESS, 'check_circle'), _statuses["default"].WARNING, 'warning'), _statuses.statusIcon.CRITICAL, 'error'), _statuses.statusIcon.FATAL, 'dangerous'), _statuses.statusIcon.INFO, 'info'), _statuses.statusIcon.MAJOR, 'arrow_upward'), _statuses.statusIcon.MINOR, 'arrow_downward'), _statuses.statusIcon.WARNING_NEUTRAL, 'warning'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "aic", _navBarIcons.Aic), "applicationsIcon", 'apps'), "Ascending", 'arrow_upward'), "authenticationIcon", 'check_circle'), "clipboard", 'content_paste'), "CreateIcon", 'edit'), "daVinci", 'account_tree'), "DefaultCircle", 'circle'), "Descending", 'arrow_downward'), "popoverMenuIcon", 'more_horiz'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "ErrorCircle", 'error'), "HomeIcon", 'home'), "integrationsIcon", 'widgets'), "listViewMenu", 'more_horiz'), "mdiAccountCog", 'manage_accounts'), "mdiAccountMultiple", 'group'), "mdiEarth", _SettingsOutlineIcon["default"]), "mdiEmoticonHappyOutline", _EmoticonHappyOutlineIcon["default"]), "mdiFingerprint", 'fingerprint'), "mdiPlayCircleIcon", 'play_circle'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "mdiScaleBalance", 'balance'), "mdiShoCard", 'id_card'), "mdiTransitConnectionVariant", _TransitConnectionVariantIcon["default"]), "mdiViewDashboard", 'dashboard'), "mdiWeb", 'globe'), "MenuDown", 'keyboard_arrow_down'), "MenuUp", 'keyboard_arrow_up'), "monitoringIcon", _ShowChartIcon["default"]), "openInNew", 'open_in_new'), "overviewIcon", 'dashboard'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "p1verify", 'person_check'), "pam", _navBarIcons.PamIcon), "PingAuthorize", 'key'), "pingLogoHorizontalSmall", _logos.pingLogoHorizontalSmall), "protect", _navBarIcons.Protect), "rocketLaunchIcon", 'rocket_launch'), "shareFeedbackIcon", 'chat'), "shieldStar", _ShieldStarOutlineIcon["default"]), "SuccessCircle", 'check_circle'), "userExperienceIcon", 'palette'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_icons, "WarningIcon", 'warning'), "CameraOutlineIcon", 'photo_camera'), "ImageOutlineIcon", 'image'), "helpHint", 'help_outline'), "ModalCloseIcon", 'close'));
24
24
  var _default = exports["default"] = icons;
@@ -67,6 +67,8 @@ export declare const nextGenThemeValues: {
67
67
  SuccessCircle: string;
68
68
  userExperienceIcon: string;
69
69
  WarningIcon: string;
70
+ CameraOutlineIcon: string;
71
+ ImageOutlineIcon: string;
70
72
  helpHint: string;
71
73
  ModalCloseIcon: string;
72
74
  };
@@ -33,6 +33,7 @@ declare const _default: {
33
33
  text: {
34
34
  primary: any;
35
35
  secondary: any;
36
+ error: any;
36
37
  message: any;
37
38
  fieldHelper: any;
38
39
  };
@@ -3226,6 +3227,8 @@ declare const _default: {
3226
3227
  SuccessCircle: string;
3227
3228
  userExperienceIcon: string;
3228
3229
  WarningIcon: string;
3230
+ CameraOutlineIcon: string;
3231
+ ImageOutlineIcon: string;
3229
3232
  helpHint: string;
3230
3233
  ModalCloseIcon: string;
3231
3234
  };
@@ -6942,6 +6945,21 @@ declare const _default: {
6942
6945
  };
6943
6946
  };
6944
6947
  };
6948
+ imageUpload: {
6949
+ button: {
6950
+ border: string;
6951
+ borderColor: string;
6952
+ backgroundColor: string;
6953
+ };
6954
+ noImagePreview: {
6955
+ color: string;
6956
+ };
6957
+ hoveredPreview: {
6958
+ shaded: {
6959
+ opacity: number;
6960
+ };
6961
+ };
6962
+ };
6945
6963
  };
6946
6964
  images: {
6947
6965
  avatar: {};
@@ -2247,5 +2247,20 @@ declare const _default: {
2247
2247
  };
2248
2248
  };
2249
2249
  };
2250
+ imageUpload: {
2251
+ button: {
2252
+ border: string;
2253
+ borderColor: string;
2254
+ backgroundColor: string;
2255
+ };
2256
+ noImagePreview: {
2257
+ color: string;
2258
+ };
2259
+ hoveredPreview: {
2260
+ shaded: {
2261
+ opacity: number;
2262
+ };
2263
+ };
2264
+ };
2250
2265
  };
2251
2266
  export default _default;
@@ -60,7 +60,7 @@ var fieldHelperText = {
60
60
  color: 'text.fieldHelper'
61
61
  },
62
62
  '&.is-error': {
63
- color: 'critical.dark'
63
+ color: 'text.error'
64
64
  },
65
65
  '&.is-warning': {
66
66
  color: 'warning.bright'
@@ -440,6 +440,21 @@ var statusIcon = {
440
440
  }
441
441
  }
442
442
  };
443
+ var imageUpload = {
444
+ button: {
445
+ border: '1px solid',
446
+ borderColor: 'common.border',
447
+ backgroundColor: 'gray-100'
448
+ },
449
+ noImagePreview: {
450
+ color: "".concat(_onyxTokens.astroTokens.color.gray[900], " !important")
451
+ },
452
+ hoveredPreview: {
453
+ shaded: {
454
+ opacity: 0.5
455
+ }
456
+ }
457
+ };
443
458
  var _default = exports["default"] = {
444
459
  accordion: _accordion["default"],
445
460
  accordionGrid: _accordionGrid["default"],
@@ -486,5 +501,6 @@ var _default = exports["default"] = {
486
501
  table: _table.table,
487
502
  tableBase: _tableBase.tableBase,
488
503
  tabs: _tabs.tabs,
489
- tooltip: _tooltip["default"]
504
+ tooltip: _tooltip["default"],
505
+ imageUpload: imageUpload
490
506
  };
@@ -3,10 +3,9 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["defaultPreviewImage", "defaultPreviewNode", "isImageType", "isLoading", "loaderSize", "isMenuOpen", "previewImage", "previewWidth", "widthHeightSx"];
4
4
  import React, { forwardRef, useImperativeHandle, useRef } from 'react';
5
5
  import { mergeProps, useFocusRing } from 'react-aria';
6
- import CameraAltIcon from '@pingux/mdi-react/CameraAltIcon';
7
- import ImageFilterHdrIcon from '@pingux/mdi-react/ImageFilterHdrIcon';
8
6
  import { useHover } from '@react-aria/interactions';
9
7
  import PropTypes from 'prop-types';
8
+ import { useGetTheme } from '../../hooks';
10
9
  import { Box, Button, Icon, Image } from '../../index';
11
10
  import Loader from '../Loader';
12
11
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -32,9 +31,13 @@ var ImagePreviewButton = /*#__PURE__*/forwardRef(function (props, ref) {
32
31
  var _useHover = useHover(props),
33
32
  hoverProps = _useHover.hoverProps,
34
33
  isHovered = _useHover.isHovered;
34
+ var _useGetTheme = useGetTheme(),
35
+ icons = _useGetTheme.icons;
36
+ var ImageOutlineIcon = icons.ImageOutlineIcon,
37
+ CameraOutlineIcon = icons.CameraOutlineIcon;
35
38
  var noImagePreview = defaultPreviewNode || ___EmotionJSX(Icon, {
36
- icon: ImageFilterHdrIcon,
37
- color: "neutral.60",
39
+ icon: ImageOutlineIcon,
40
+ variant: "imageUpload.noImagePreview",
38
41
  size: 24,
39
42
  "data-testid": "image-upload-no-image-preview",
40
43
  title: {
@@ -70,7 +73,7 @@ var ImagePreviewButton = /*#__PURE__*/forwardRef(function (props, ref) {
70
73
  sx: widthHeightSx,
71
74
  "data-testid": "image-upload-hovered-preview"
72
75
  }, ___EmotionJSX(Icon, {
73
- icon: CameraAltIcon,
76
+ icon: CameraOutlineIcon,
74
77
  color: isFocusVisible || isMenuOpen ? 'active' : 'white',
75
78
  size: 24,
76
79
  sx: {
@@ -26,6 +26,9 @@ var hoveredPreview = {
26
26
  borderRadius: 2
27
27
  }
28
28
  };
29
+ var noImagePreview = {
30
+ fill: '#98a0a8 !important'
31
+ };
29
32
  var button = _objectSpread(_objectSpread({}, base), {}, {
30
33
  display: 'inline-flex',
31
34
  alignItems: 'center',
@@ -40,5 +43,6 @@ var button = _objectSpread(_objectSpread({}, base), {}, {
40
43
  });
41
44
  export default {
42
45
  hoveredPreview: hoveredPreview,
43
- button: button
46
+ button: button,
47
+ noImagePreview: noImagePreview
44
48
  };
@@ -146,6 +146,7 @@ export var colors = _objectSpread(_objectSpread({
146
146
  text: {
147
147
  primary: astroTokensDark.color.font.base,
148
148
  secondary: astroTokensDark.color.font.light,
149
+ error: astroTokensDark.color.font.error,
149
150
  message: 'white',
150
151
  fieldHelper: astroTokensDark.color.gray[400]
151
152
  },
@@ -264,7 +264,7 @@ export default {
264
264
  color: 'text.fieldHelper'
265
265
  },
266
266
  '&.is-error': {
267
- color: 'critical.bright'
267
+ color: 'text.error'
268
268
  },
269
269
  '&.is-warning': {
270
270
  color: 'warning.bright'
@@ -294,5 +294,13 @@ export default {
294
294
  backgroundColor: '#2C323A'
295
295
  }
296
296
  }
297
+ },
298
+ imageUpload: {
299
+ button: {
300
+ background: 'transparent'
301
+ },
302
+ noImagePreview: {
303
+ color: "".concat(astroTokensDark.color.gray[100], " !important")
304
+ }
297
305
  }
298
306
  };
@@ -10,6 +10,7 @@ import WarningIcon from '@pingux/mdi-react/AlertOutlineIcon';
10
10
  import ApplicationOutlineIcon from '@pingux/mdi-react/ApplicationOutlineIcon';
11
11
  import ArrowDownIcon from '@pingux/mdi-react/ArrowDownIcon';
12
12
  import ArrowUpIcon from '@pingux/mdi-react/ArrowUpIcon';
13
+ import CameraAltIcon from '@pingux/mdi-react/CameraAltIcon';
13
14
  import ChatIcon from '@pingux/mdi-react/ChatIcon';
14
15
  import DefaultCircle from '@pingux/mdi-react/CheckboxBlankCircleOutlineIcon';
15
16
  import CheckCircleIcon from '@pingux/mdi-react/CheckCircleIcon';
@@ -24,6 +25,7 @@ import EmoticonHappy from '@pingux/mdi-react/EmoticonHappyOutlineIcon';
24
25
  import Fingerprint from '@pingux/mdi-react/FingerprintIcon';
25
26
  import GlobeIcon from '@pingux/mdi-react/GlobeIcon';
26
27
  import HomeIcon from '@pingux/mdi-react/HomeIcon';
28
+ import ImageFilterHdrIcon from '@pingux/mdi-react/ImageFilterHdrIcon';
27
29
  import InformationIcon from '@pingux/mdi-react/InformationIcon';
28
30
  import InformationOutlineIcon from '@pingux/mdi-react/InformationOutlineIcon';
29
31
  import KeyChainVariant from '@pingux/mdi-react/KeyChainVariantIcon';
@@ -61,4 +63,4 @@ var HelpIcon = function HelpIcon() {
61
63
  fill: "#3B4A58"
62
64
  }));
63
65
  };
64
- export default (_statuses$DEFAULT$sta = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, statuses.DEFAULT, InformationIcon), statuses.ERROR, AlertCircleIcon), statuses.SUCCESS, CheckCircleIcon), statuses.WARNING, AlertIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, WarningIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "aic", Aic), "applicationsIcon", ApplicationOutlineIcon), "Ascending", MenuUp), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateIcon), "daVinci", DaVinci), "DefaultCircle", DefaultCircle), "Descending", MenuDown), "popoverMenuIcon", MoreVertIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "ErrorCircle", AlertCircleIcon), "integrationsIcon", ConnectionIcon), "listViewMenu", MoreVertIcon), "mdiAccountCog", mdiAccountCog), "mdiAccountMultiple", AccountMultiple), "mdiEarth", Earth), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", Fingerprint), "mdiPlayCircleIcon", PlayCircle), "mdiScaleBalance", ScaleBalance), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "mdiShoCard", Credentials), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", ViewDashboard), "mdiWeb", GlobeIcon), "MenuDown", MenuDown), "MenuUp", MenuUp), "monitoringIcon", PulseIcon), "openInNew", OpenInNew), "overviewIcon", WebIcon), "p1verify", Verify), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "pam", PamIcon), "PingAuthorize", KeyChainVariant), "HomeIcon", HomeIcon), "pingLogoHorizontalSmall", pingLogoHorizontalSmallWhite), "protect", Protect), "rocketLaunchIcon", RocketLaunchIcon), "shareFeedbackIcon", ChatIcon), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", CheckCircleIcon), "userExperienceIcon", MonitorScreenshotIcon), _defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "WarningIcon", WarningIcon), "helpHint", HelpIcon), "ModalCloseIcon", CloseIcon));
66
+ export default (_statuses$DEFAULT$sta = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, statuses.DEFAULT, InformationIcon), statuses.ERROR, AlertCircleIcon), statuses.SUCCESS, CheckCircleIcon), statuses.WARNING, AlertIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, WarningIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "aic", Aic), "applicationsIcon", ApplicationOutlineIcon), "Ascending", MenuUp), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateIcon), "daVinci", DaVinci), "DefaultCircle", DefaultCircle), "Descending", MenuDown), "popoverMenuIcon", MoreVertIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "ErrorCircle", AlertCircleIcon), "integrationsIcon", ConnectionIcon), "listViewMenu", MoreVertIcon), "mdiAccountCog", mdiAccountCog), "mdiAccountMultiple", AccountMultiple), "mdiEarth", Earth), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", Fingerprint), "mdiPlayCircleIcon", PlayCircle), "mdiScaleBalance", ScaleBalance), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "mdiShoCard", Credentials), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", ViewDashboard), "mdiWeb", GlobeIcon), "MenuDown", MenuDown), "MenuUp", MenuUp), "monitoringIcon", PulseIcon), "openInNew", OpenInNew), "overviewIcon", WebIcon), "p1verify", Verify), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "pam", PamIcon), "PingAuthorize", KeyChainVariant), "HomeIcon", HomeIcon), "pingLogoHorizontalSmall", pingLogoHorizontalSmallWhite), "protect", Protect), "rocketLaunchIcon", RocketLaunchIcon), "shareFeedbackIcon", ChatIcon), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", CheckCircleIcon), "userExperienceIcon", MonitorScreenshotIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "WarningIcon", WarningIcon), "CameraOutlineIcon", CameraAltIcon), "ImageOutlineIcon", ImageFilterHdrIcon), "helpHint", HelpIcon), "ModalCloseIcon", CloseIcon));
@@ -87,6 +87,7 @@ export var info = {
87
87
  var text = {
88
88
  primary: astroTokens.color.font.base,
89
89
  secondary: astroTokens.color.font.light,
90
+ error: astroTokens.color.font.error,
90
91
  message: astroTokens.color.gray[700],
91
92
  fieldHelper: astroTokens.color.font.light
92
93
  };
@@ -8,5 +8,5 @@ import TransitConnection from '@pingux/mdi-react/TransitConnectionVariantIcon';
8
8
  import { pingLogoHorizontalSmall } from '../../../../utils/devUtils/constants/logos';
9
9
  import statuses, { statusIcon } from '../../../../utils/devUtils/constants/statuses';
10
10
  import { Aic, PamIcon, Protect } from '../../astro/customProperties/navBarIcons';
11
- var icons = (_icons = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, statuses.DEFAULT, 'info'), statuses.ERROR, 'error'), statuses.SUCCESS, 'check_circle'), statuses.WARNING, 'warning'), statusIcon.CRITICAL, 'error'), statusIcon.FATAL, 'dangerous'), statusIcon.INFO, 'info'), statusIcon.MAJOR, 'arrow_upward'), statusIcon.MINOR, 'arrow_downward'), statusIcon.WARNING_NEUTRAL, 'warning'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "aic", Aic), "applicationsIcon", 'apps'), "Ascending", 'arrow_upward'), "authenticationIcon", 'check_circle'), "clipboard", 'content_paste'), "CreateIcon", 'edit'), "daVinci", 'account_tree'), "DefaultCircle", 'circle'), "Descending", 'arrow_downward'), "popoverMenuIcon", 'more_horiz'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "ErrorCircle", 'error'), "HomeIcon", 'home'), "integrationsIcon", 'widgets'), "listViewMenu", 'more_horiz'), "mdiAccountCog", 'manage_accounts'), "mdiAccountMultiple", 'group'), "mdiEarth", Settings), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", 'fingerprint'), "mdiPlayCircleIcon", 'play_circle'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "mdiScaleBalance", 'balance'), "mdiShoCard", 'id_card'), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", 'dashboard'), "mdiWeb", 'globe'), "MenuDown", 'keyboard_arrow_down'), "MenuUp", 'keyboard_arrow_up'), "monitoringIcon", ShowChartIcon), "openInNew", 'open_in_new'), "overviewIcon", 'dashboard'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "p1verify", 'person_check'), "pam", PamIcon), "PingAuthorize", 'key'), "pingLogoHorizontalSmall", pingLogoHorizontalSmall), "protect", Protect), "rocketLaunchIcon", 'rocket_launch'), "shareFeedbackIcon", 'chat'), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", 'check_circle'), "userExperienceIcon", 'palette'), _defineProperty(_defineProperty(_defineProperty(_icons, "WarningIcon", 'warning'), "helpHint", 'help_outline'), "ModalCloseIcon", 'close'));
11
+ var icons = (_icons = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, statuses.DEFAULT, 'info'), statuses.ERROR, 'error'), statuses.SUCCESS, 'check_circle'), statuses.WARNING, 'warning'), statusIcon.CRITICAL, 'error'), statusIcon.FATAL, 'dangerous'), statusIcon.INFO, 'info'), statusIcon.MAJOR, 'arrow_upward'), statusIcon.MINOR, 'arrow_downward'), statusIcon.WARNING_NEUTRAL, 'warning'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "aic", Aic), "applicationsIcon", 'apps'), "Ascending", 'arrow_upward'), "authenticationIcon", 'check_circle'), "clipboard", 'content_paste'), "CreateIcon", 'edit'), "daVinci", 'account_tree'), "DefaultCircle", 'circle'), "Descending", 'arrow_downward'), "popoverMenuIcon", 'more_horiz'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "ErrorCircle", 'error'), "HomeIcon", 'home'), "integrationsIcon", 'widgets'), "listViewMenu", 'more_horiz'), "mdiAccountCog", 'manage_accounts'), "mdiAccountMultiple", 'group'), "mdiEarth", Settings), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", 'fingerprint'), "mdiPlayCircleIcon", 'play_circle'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "mdiScaleBalance", 'balance'), "mdiShoCard", 'id_card'), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", 'dashboard'), "mdiWeb", 'globe'), "MenuDown", 'keyboard_arrow_down'), "MenuUp", 'keyboard_arrow_up'), "monitoringIcon", ShowChartIcon), "openInNew", 'open_in_new'), "overviewIcon", 'dashboard'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "p1verify", 'person_check'), "pam", PamIcon), "PingAuthorize", 'key'), "pingLogoHorizontalSmall", pingLogoHorizontalSmall), "protect", Protect), "rocketLaunchIcon", 'rocket_launch'), "shareFeedbackIcon", 'chat'), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", 'check_circle'), "userExperienceIcon", 'palette'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "WarningIcon", 'warning'), "CameraOutlineIcon", 'photo_camera'), "ImageOutlineIcon", 'image'), "helpHint", 'help_outline'), "ModalCloseIcon", 'close'));
12
12
  export default icons;
@@ -50,7 +50,7 @@ var fieldHelperText = {
50
50
  color: 'text.fieldHelper'
51
51
  },
52
52
  '&.is-error': {
53
- color: 'critical.dark'
53
+ color: 'text.error'
54
54
  },
55
55
  '&.is-warning': {
56
56
  color: 'warning.bright'
@@ -430,6 +430,21 @@ var statusIcon = {
430
430
  }
431
431
  }
432
432
  };
433
+ var imageUpload = {
434
+ button: {
435
+ border: '1px solid',
436
+ borderColor: 'common.border',
437
+ backgroundColor: 'gray-100'
438
+ },
439
+ noImagePreview: {
440
+ color: "".concat(astroTokens.color.gray[900], " !important")
441
+ },
442
+ hoveredPreview: {
443
+ shaded: {
444
+ opacity: 0.5
445
+ }
446
+ }
447
+ };
433
448
  export default {
434
449
  accordion: accordion,
435
450
  accordionGrid: accordionGrid,
@@ -476,5 +491,6 @@ export default {
476
491
  table: table,
477
492
  tableBase: tableBase,
478
493
  tabs: tabs,
479
- tooltip: tooltip
494
+ tooltip: tooltip,
495
+ imageUpload: imageUpload
480
496
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.202.1-alpha.0",
3
+ "version": "2.202.2-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",