@pingux/astro 2.202.2-alpha.0 → 2.203.0-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.
@@ -12,7 +12,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
12
12
  _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
- exports["default"] = exports.WithLoading = exports.TextIconButton = exports.Primary = exports.LinkButton = exports.InlineButton = exports.Filter = exports.Disabled = exports.Default = exports.Critical = exports.ColorBlockButton = void 0;
15
+ exports["default"] = exports.WithLoading = exports.TextIconButton = exports.Primary = exports.LinkButton = exports.InlineButton = exports.Filter = exports.Disabled = exports.Default = exports.CriticalLink = exports.Critical = exports.ColorBlockButton = void 0;
16
16
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
17
17
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
@@ -75,6 +75,11 @@ Critical.parameters = {
75
75
  url: _figmaLinks.FIGMA_LINKS.button.critical
76
76
  }
77
77
  };
78
+ var CriticalLink = exports.CriticalLink = function CriticalLink(args) {
79
+ return (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
80
+ variant: "criticalLink"
81
+ }), "Button Text");
82
+ };
78
83
  var InlineButton = exports.InlineButton = function InlineButton(args) {
79
84
  return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({}, args, {
80
85
  mb: "sm",
@@ -126,6 +126,46 @@ export declare const link: {
126
126
  flexShrink: number;
127
127
  whiteSpace: string;
128
128
  };
129
+ export declare const criticalLink: {
130
+ color: string;
131
+ lineHeight: string;
132
+ textDecoration: string;
133
+ display: string;
134
+ justifyContent: string;
135
+ width: string;
136
+ '&.is-current': {
137
+ cursor: string;
138
+ color: string;
139
+ };
140
+ '&.is-focused': {
141
+ boxShadow: string;
142
+ outline: string;
143
+ outlineColor: string;
144
+ outlineOffset: string;
145
+ };
146
+ bg: string;
147
+ border: string;
148
+ borderColor: string;
149
+ height: string;
150
+ padding: string;
151
+ '&.is-hovered': {
152
+ textDecoration: string;
153
+ };
154
+ fontSize: string;
155
+ fontWeight: number;
156
+ fontFamily: string;
157
+ overflowWrap: import("../..").overflowWrap;
158
+ maxWidth: string;
159
+ wordWrap: import("../..").wordWrap;
160
+ wordBreak: import("../..").wordBreak;
161
+ cursor: string;
162
+ minWidth: string;
163
+ outline: string;
164
+ alignItems: string;
165
+ borderRadius: string;
166
+ flexShrink: number;
167
+ whiteSpace: string;
168
+ };
129
169
  export declare const selectLink: {
130
170
  textDecoration: string;
131
171
  '&.is-hovered': {
@@ -724,6 +764,46 @@ declare const _default: {
724
764
  flexShrink: number;
725
765
  whiteSpace: string;
726
766
  };
767
+ criticalLink: {
768
+ color: string;
769
+ lineHeight: string;
770
+ textDecoration: string;
771
+ display: string;
772
+ justifyContent: string;
773
+ width: string;
774
+ '&.is-current': {
775
+ cursor: string;
776
+ color: string;
777
+ };
778
+ '&.is-focused': {
779
+ boxShadow: string;
780
+ outline: string;
781
+ outlineColor: string;
782
+ outlineOffset: string;
783
+ };
784
+ bg: string;
785
+ border: string;
786
+ borderColor: string;
787
+ height: string;
788
+ padding: string;
789
+ '&.is-hovered': {
790
+ textDecoration: string;
791
+ };
792
+ fontSize: string;
793
+ fontWeight: number;
794
+ fontFamily: string;
795
+ overflowWrap: import("../..").overflowWrap;
796
+ maxWidth: string;
797
+ wordWrap: import("../..").wordWrap;
798
+ wordBreak: import("../..").wordBreak;
799
+ cursor: string;
800
+ minWidth: string;
801
+ outline: string;
802
+ alignItems: string;
803
+ borderRadius: string;
804
+ flexShrink: number;
805
+ whiteSpace: string;
806
+ };
727
807
  listBoxLink: {
728
808
  lineHeight: string;
729
809
  textDecoration: string;
@@ -12,7 +12,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
12
12
  _Object$defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
- exports.text = exports.selectLink = exports.quiet = exports.link = exports.focusWithCroppedOutline = exports.defaultHover = exports.defaultFocus = exports.defaultActive = exports["default"] = exports.base = void 0;
15
+ exports.text = exports.selectLink = exports.quiet = exports.link = exports.focusWithCroppedOutline = exports.defaultHover = exports.defaultFocus = exports.defaultActive = exports["default"] = exports.criticalLink = exports.base = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _Text = require("../Text/Text.styles");
18
18
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -181,6 +181,9 @@ var link = exports.link = _objectSpread(_objectSpread({}, text), {}, {
181
181
  },
182
182
  '&.is-focused': _objectSpread({}, focusWithCroppedOutline)
183
183
  });
184
+ var criticalLink = exports.criticalLink = _objectSpread(_objectSpread({}, link), {}, {
185
+ color: 'critical.bright'
186
+ });
184
187
  var selectLink = exports.selectLink = _objectSpread(_objectSpread({}, link), {}, {
185
188
  textDecoration: 'none',
186
189
  '&.is-hovered': {
@@ -336,6 +339,7 @@ var _default = exports["default"] = {
336
339
  inlinePrimaryWithIcon: inlinePrimaryWithIcon,
337
340
  inlineWithIcon: inlineWithIcon,
338
341
  link: link,
342
+ criticalLink: criticalLink,
339
343
  listBoxLink: listBoxLink,
340
344
  paginationMenu: paginationMenu,
341
345
  primary: primary,
@@ -21,7 +21,7 @@ var _pressAttributes = require("../../utils/docUtils/pressAttributes");
21
21
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
23
23
  // add designer approved variants for devs to use here
24
- var variantOptions = ['critical', 'default', 'inline', 'inlinePrimary', 'link', 'primary'];
24
+ var variantOptions = ['critical', 'criticalLink', 'default', 'inline', 'inlinePrimary', 'link', 'primary'];
25
25
  var descriptions = {
26
26
  children: 'Button text.',
27
27
  isDisabled: 'Whether the button is disabled.',
@@ -189,6 +189,19 @@ declare const buttons: {
189
189
  outline: string;
190
190
  };
191
191
  };
192
+ criticalLink: {
193
+ color: any;
194
+ '&.is-pressed': {
195
+ textDecoration: string;
196
+ outline: string;
197
+ color: string;
198
+ };
199
+ '&.is-focused': {
200
+ textDecoration: string;
201
+ color: string;
202
+ outline: string;
203
+ };
204
+ };
192
205
  iconButtons: {
193
206
  base: {
194
207
  path: {
@@ -290,6 +290,19 @@ var buttons = {
290
290
  outline: 'none'
291
291
  }
292
292
  },
293
+ criticalLink: {
294
+ color: _onyxTokens.astroTokensDark.color.red[400],
295
+ '&.is-pressed': {
296
+ textDecoration: 'underline',
297
+ outline: 'none',
298
+ color: _chromaJs["default"].mix(_onyxTokens.astroTokensDark.color.red[500], 'white', 0.45, 'rgb').hex()
299
+ },
300
+ '&.is-focused': {
301
+ textDecoration: 'underline',
302
+ color: _chromaJs["default"].mix(_onyxTokens.astroTokensDark.color.red[500], 'white', 0.3, 'rgb').hex(),
303
+ outline: 'none'
304
+ }
305
+ },
293
306
  iconButtons: iconButtons,
294
307
  searchNavTabLabel: searchNavTabLabel,
295
308
  modalCloseButton: modalCloseButton,
@@ -794,6 +794,22 @@ declare const _default: {
794
794
  outline: string;
795
795
  };
796
796
  };
797
+ criticalLink: {
798
+ color: string;
799
+ '&.is-pressed': {
800
+ textDecoration: string;
801
+ outline: string;
802
+ };
803
+ transition: string;
804
+ fontSize: string;
805
+ textDecoration: string;
806
+ px: string;
807
+ py: string;
808
+ '&.is-focused': {
809
+ textDecoration: string;
810
+ outline: string;
811
+ };
812
+ };
797
813
  listBoxLink: {
798
814
  color: string;
799
815
  transition: string;
@@ -490,6 +490,22 @@ declare const buttons: {
490
490
  outline: string;
491
491
  };
492
492
  };
493
+ criticalLink: {
494
+ color: string;
495
+ '&.is-pressed': {
496
+ textDecoration: string;
497
+ outline: string;
498
+ };
499
+ transition: string;
500
+ fontSize: string;
501
+ textDecoration: string;
502
+ px: string;
503
+ py: string;
504
+ '&.is-focused': {
505
+ textDecoration: string;
506
+ outline: string;
507
+ };
508
+ };
493
509
  listBoxLink: {
494
510
  color: string;
495
511
  transition: string;
@@ -249,6 +249,13 @@ var link = {
249
249
  outline: 'none'
250
250
  }
251
251
  };
252
+ var criticalLink = _objectSpread(_objectSpread({}, link), {}, {
253
+ color: 'critical.bright',
254
+ '&.is-pressed': {
255
+ textDecoration: 'underline',
256
+ outline: 'none'
257
+ }
258
+ });
252
259
  var selectLink = _objectSpread(_objectSpread({}, link), {}, {
253
260
  textDecoration: 'none',
254
261
  px: '0',
@@ -628,6 +635,7 @@ var buttons = {
628
635
  searchNavTabLabel: searchNavTabLabel,
629
636
  outlineCritical: outlineCritical,
630
637
  link: link,
638
+ criticalLink: criticalLink,
631
639
  listBoxLink: listBoxLink,
632
640
  withIcon: withIcon,
633
641
  primaryWithIcon: primaryWithIcon,
@@ -68,6 +68,11 @@ Critical.parameters = {
68
68
  url: FIGMA_LINKS.button.critical
69
69
  }
70
70
  };
71
+ export var CriticalLink = function CriticalLink(args) {
72
+ return ___EmotionJSX(Button, _extends({}, args, {
73
+ variant: "criticalLink"
74
+ }), "Button Text");
75
+ };
71
76
  export var InlineButton = function InlineButton(args) {
72
77
  return ___EmotionJSX(Box, null, ___EmotionJSX(Button, _extends({}, args, {
73
78
  mb: "sm",
@@ -174,6 +174,9 @@ export var link = _objectSpread(_objectSpread({}, text), {}, {
174
174
  },
175
175
  '&.is-focused': _objectSpread({}, focusWithCroppedOutline)
176
176
  });
177
+ export var criticalLink = _objectSpread(_objectSpread({}, link), {}, {
178
+ color: 'critical.bright'
179
+ });
177
180
  export var selectLink = _objectSpread(_objectSpread({}, link), {}, {
178
181
  textDecoration: 'none',
179
182
  '&.is-hovered': {
@@ -329,6 +332,7 @@ export default {
329
332
  inlinePrimaryWithIcon: inlinePrimaryWithIcon,
330
333
  inlineWithIcon: inlineWithIcon,
331
334
  link: link,
335
+ criticalLink: criticalLink,
332
336
  listBoxLink: listBoxLink,
333
337
  paginationMenu: paginationMenu,
334
338
  primary: primary,
@@ -14,7 +14,7 @@ import { booleanArg } from '../../utils/docUtils/docArgTypes';
14
14
  import { onHoverArgTypes } from '../../utils/docUtils/hoverProps';
15
15
  import { onPressArgTypes } from '../../utils/docUtils/pressAttributes';
16
16
  // add designer approved variants for devs to use here
17
- var variantOptions = ['critical', 'default', 'inline', 'inlinePrimary', 'link', 'primary'];
17
+ var variantOptions = ['critical', 'criticalLink', 'default', 'inline', 'inlinePrimary', 'link', 'primary'];
18
18
  var descriptions = {
19
19
  children: 'Button text.',
20
20
  isDisabled: 'Whether the button is disabled.',
@@ -283,6 +283,19 @@ var buttons = {
283
283
  outline: 'none'
284
284
  }
285
285
  },
286
+ criticalLink: {
287
+ color: astroTokensDark.color.red[400],
288
+ '&.is-pressed': {
289
+ textDecoration: 'underline',
290
+ outline: 'none',
291
+ color: chroma.mix(astroTokensDark.color.red[500], 'white', 0.45, 'rgb').hex()
292
+ },
293
+ '&.is-focused': {
294
+ textDecoration: 'underline',
295
+ color: chroma.mix(astroTokensDark.color.red[500], 'white', 0.3, 'rgb').hex(),
296
+ outline: 'none'
297
+ }
298
+ },
286
299
  iconButtons: iconButtons,
287
300
  searchNavTabLabel: searchNavTabLabel,
288
301
  modalCloseButton: modalCloseButton,
@@ -242,6 +242,13 @@ var link = {
242
242
  outline: 'none'
243
243
  }
244
244
  };
245
+ var criticalLink = _objectSpread(_objectSpread({}, link), {}, {
246
+ color: 'critical.bright',
247
+ '&.is-pressed': {
248
+ textDecoration: 'underline',
249
+ outline: 'none'
250
+ }
251
+ });
245
252
  var selectLink = _objectSpread(_objectSpread({}, link), {}, {
246
253
  textDecoration: 'none',
247
254
  px: '0',
@@ -621,6 +628,7 @@ var buttons = {
621
628
  searchNavTabLabel: searchNavTabLabel,
622
629
  outlineCritical: outlineCritical,
623
630
  link: link,
631
+ criticalLink: criticalLink,
624
632
  listBoxLink: listBoxLink,
625
633
  withIcon: withIcon,
626
634
  primaryWithIcon: primaryWithIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.202.2-alpha.0",
3
+ "version": "2.203.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",