@pingux/astro 2.95.0 → 2.96.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.
@@ -24,6 +24,7 @@ var _react = _interopRequireWildcard(require("react"));
24
24
  var _storybookAddonDesigns = require("storybook-addon-designs");
25
25
  var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
26
26
  var _index = require("../../index");
27
+ var _figmaLinks = require("../../utils/designUtils/figmaLinks");
27
28
  var _iconButtonAttributes = require("../IconButton/iconButtonAttributes");
28
29
  var _EditButton = require("./EditButton");
29
30
  var _EditButton2 = _interopRequireDefault(require("./EditButton.mdx"));
@@ -65,6 +66,12 @@ var Default = function Default(args) {
65
66
  }));
66
67
  };
67
68
  exports.Default = Default;
69
+ Default.parameters = {
70
+ design: {
71
+ type: 'figma',
72
+ url: _figmaLinks.FIGMA_LINKS.editButton["default"]
73
+ }
74
+ };
68
75
  var WithSizeProp = function WithSizeProp(args) {
69
76
  return (0, _react2.jsx)(_index.EditButton, (0, _extends2["default"])({}, args, {
70
77
  size: "lg",
@@ -4,7 +4,40 @@ import { IconButtonProps } from '../../types';
4
4
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
5
5
  export default _default;
6
6
  export declare const Default: StoryFn<IconButtonProps>;
7
- export declare const WithTooltip: () => React.JSX.Element;
8
- export declare const Disabled: () => React.JSX.Element;
9
- export declare const Sizes: () => React.JSX.Element;
10
- export declare const CommonlyUsed: () => React.JSX.Element;
7
+ export declare const Inverted: StoryFn<IconButtonProps>;
8
+ export declare const WithTooltip: {
9
+ (): React.JSX.Element;
10
+ parameters: {
11
+ design: {
12
+ type: string;
13
+ url: string;
14
+ };
15
+ };
16
+ };
17
+ export declare const Disabled: {
18
+ (): React.JSX.Element;
19
+ parameters: {
20
+ design: {
21
+ type: string;
22
+ url: string;
23
+ };
24
+ };
25
+ };
26
+ export declare const Sizes: {
27
+ (): React.JSX.Element;
28
+ parameters: {
29
+ design: {
30
+ type: string;
31
+ url: string;
32
+ };
33
+ };
34
+ };
35
+ export declare const CommonlyUsed: {
36
+ (): React.JSX.Element;
37
+ parameters: {
38
+ design: {
39
+ type: string;
40
+ url: string;
41
+ };
42
+ };
43
+ };
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
5
5
  _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = exports.WithTooltip = exports.Sizes = exports.Disabled = exports.Default = exports.CommonlyUsed = void 0;
8
+ exports["default"] = exports.WithTooltip = exports.Sizes = exports.Inverted = exports.Disabled = exports.Default = exports.CommonlyUsed = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _CreateIcon = _interopRequireDefault(require("@pingux/mdi-react/CreateIcon"));
@@ -55,6 +55,25 @@ Default.parameters = {
55
55
  url: _figmaLinks.FIGMA_LINKS.iconButton["default"]
56
56
  }
57
57
  };
58
+ var Inverted = function Inverted(args) {
59
+ return (0, _react2.jsx)(_index.IconButton, (0, _extends2["default"])({
60
+ "aria-label": "Plus icon button"
61
+ }, args, {
62
+ variant: "inverted"
63
+ }), (0, _react2.jsx)(_index.Icon, {
64
+ icon: _PlusIcon["default"],
65
+ title: {
66
+ name: 'Plus Icon'
67
+ }
68
+ }));
69
+ };
70
+ exports.Inverted = Inverted;
71
+ Inverted.parameters = {
72
+ design: {
73
+ type: 'figma',
74
+ url: _figmaLinks.FIGMA_LINKS.iconButton.inverted
75
+ }
76
+ };
58
77
  var WithTooltip = function WithTooltip() {
59
78
  return (0, _react2.jsx)(_index.IconButton, {
60
79
  "aria-label": "icon button with tooltip",
@@ -68,6 +87,12 @@ var WithTooltip = function WithTooltip() {
68
87
  }));
69
88
  };
70
89
  exports.WithTooltip = WithTooltip;
90
+ WithTooltip.parameters = {
91
+ design: {
92
+ type: 'figma',
93
+ url: _figmaLinks.FIGMA_LINKS.iconButton.withTooltip
94
+ }
95
+ };
71
96
  var Disabled = function Disabled() {
72
97
  return (0, _react2.jsx)(_index.IconButton, {
73
98
  "aria-label": "disabled icon button",
@@ -80,6 +105,12 @@ var Disabled = function Disabled() {
80
105
  }));
81
106
  };
82
107
  exports.Disabled = Disabled;
108
+ Disabled.parameters = {
109
+ design: {
110
+ type: 'figma',
111
+ url: _figmaLinks.FIGMA_LINKS.iconButton.disabled
112
+ }
113
+ };
83
114
  var Sizes = function Sizes() {
84
115
  return (0, _react2.jsx)(_index.Table, null, (0, _react2.jsx)(_index.TableHead, null, (0, _react2.jsx)(_index.TableRow, {
85
116
  key: "head"
@@ -185,6 +216,12 @@ var Sizes = function Sizes() {
185
216
  }))))));
186
217
  };
187
218
  exports.Sizes = Sizes;
219
+ Sizes.parameters = {
220
+ design: {
221
+ type: 'figma',
222
+ url: _figmaLinks.FIGMA_LINKS.iconButton.sizes
223
+ }
224
+ };
188
225
  var CommonlyUsed = function CommonlyUsed() {
189
226
  return (
190
227
  // please note these are intentionally not mapped for story transparency
@@ -507,4 +544,10 @@ var CommonlyUsed = function CommonlyUsed() {
507
544
  }))))
508
545
  );
509
546
  };
510
- exports.CommonlyUsed = CommonlyUsed;
547
+ exports.CommonlyUsed = CommonlyUsed;
548
+ CommonlyUsed.parameters = {
549
+ design: {
550
+ type: 'figma',
551
+ url: _figmaLinks.FIGMA_LINKS.iconButton.commonlyUsed
552
+ }
553
+ };
@@ -23,12 +23,14 @@ export declare const base: {
23
23
  };
24
24
  '&.is-hovered': {
25
25
  bg: string;
26
+ boxShadow: string;
26
27
  };
27
28
  '&.is-pressed': {
28
29
  path: {
29
30
  fill: string;
30
31
  };
31
32
  bg: string;
33
+ boxShadow: string;
32
34
  };
33
35
  };
34
36
  export declare const square: {
@@ -56,12 +58,14 @@ export declare const square: {
56
58
  };
57
59
  '&.is-hovered': {
58
60
  bg: string;
61
+ boxShadow: string;
59
62
  };
60
63
  '&.is-pressed': {
61
64
  path: {
62
65
  fill: string;
63
66
  };
64
67
  bg: string;
68
+ boxShadow: string;
65
69
  };
66
70
  };
67
71
  declare const _default: {
@@ -90,12 +94,14 @@ declare const _default: {
90
94
  };
91
95
  '&.is-hovered': {
92
96
  bg: string;
97
+ boxShadow: string;
93
98
  };
94
99
  '&.is-pressed': {
95
100
  path: {
96
101
  fill: string;
97
102
  };
98
103
  bg: string;
104
+ boxShadow: string;
99
105
  };
100
106
  };
101
107
  bidirectional: {
@@ -262,6 +268,7 @@ declare const _default: {
262
268
  bg: string;
263
269
  borderColor: string;
264
270
  color: string;
271
+ boxShadow: string;
265
272
  };
266
273
  justifyContent: string;
267
274
  appearance: string;
@@ -377,12 +384,14 @@ declare const _default: {
377
384
  };
378
385
  '&.is-hovered': {
379
386
  bg: string;
387
+ boxShadow: string;
380
388
  };
381
389
  '&.is-pressed': {
382
390
  path: {
383
391
  fill: string;
384
392
  };
385
393
  bg: string;
394
+ boxShadow: string;
386
395
  };
387
396
  };
388
397
  invertedBadgeDeleteButton: {
@@ -434,6 +443,7 @@ declare const _default: {
434
443
  bg: string;
435
444
  borderColor: string;
436
445
  color: string;
446
+ boxShadow: string;
437
447
  };
438
448
  justifyContent: string;
439
449
  appearance: string;
@@ -473,12 +483,14 @@ declare const _default: {
473
483
  };
474
484
  '&.is-hovered': {
475
485
  bg: string;
486
+ boxShadow: string;
476
487
  };
477
488
  '&.is-pressed': {
478
489
  path: {
479
490
  fill: string;
480
491
  };
481
492
  bg: string;
493
+ boxShadow: string;
482
494
  };
483
495
  };
484
496
  svgIconButton: {
@@ -506,12 +518,14 @@ declare const _default: {
506
518
  };
507
519
  '&.is-hovered': {
508
520
  bg: string;
521
+ boxShadow: string;
509
522
  };
510
523
  '&.is-pressed': {
511
524
  path: {
512
525
  fill: string;
513
526
  };
514
527
  bg: string;
528
+ boxShadow: string;
515
529
  };
516
530
  };
517
531
  toggle: {
@@ -45,13 +45,15 @@ var base = {
45
45
  outline: 'none',
46
46
  '&.is-focused': _objectSpread({}, _Buttons.defaultFocus),
47
47
  '&.is-hovered': {
48
- bg: 'accent.95'
48
+ bg: 'accent.95',
49
+ boxShadow: 'standard'
49
50
  },
50
51
  '&.is-pressed': {
51
52
  'path': {
52
53
  fill: 'white'
53
54
  },
54
- bg: 'active'
55
+ bg: 'active',
56
+ boxShadow: 'none'
55
57
  }
56
58
  };
57
59
  exports.base = base;
@@ -89,7 +91,8 @@ var inverted = _objectSpread(_objectSpread({}, base), {}, {
89
91
  '&.is-pressed': {
90
92
  bg: 'accent.20',
91
93
  borderColor: 'accent.20',
92
- color: 'white'
94
+ color: 'white',
95
+ boxShadow: 'none'
93
96
  }
94
97
  });
95
98
  var invertedSquare = _objectSpread(_objectSpread({}, inverted), {}, {
@@ -94,6 +94,11 @@ export declare const FIGMA_LINKS: {
94
94
  };
95
95
  iconButton: {
96
96
  default: string;
97
+ inverted: string;
98
+ withTooltip: string;
99
+ disabled: string;
100
+ sizes: string;
101
+ commonlyUsed: string;
97
102
  };
98
103
  inlineEditing: {
99
104
  default: string;
@@ -176,4 +181,7 @@ export declare const FIGMA_LINKS: {
176
181
  withoutButton: string;
177
182
  withoutLink: string;
178
183
  };
184
+ editButton: {
185
+ default: string;
186
+ };
179
187
  };
@@ -100,7 +100,12 @@ var FIGMA_LINKS = {
100
100
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=17916-38366&t=rLZVlRDdR1JhehkH-0'
101
101
  },
102
102
  iconButton: {
103
- "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=0%3A2520&t=We3h7LaaFJQnxdSy-1'
103
+ "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=45365-7042&t=pXTSE3YlGbL0X49N-4',
104
+ inverted: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6228&t=pXTSE3YlGbL0X49N-4',
105
+ withTooltip: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6053&t=pXTSE3YlGbL0X49N-4',
106
+ disabled: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-5372&t=pXTSE3YlGbL0X49N-4',
107
+ sizes: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-5412&t=pXTSE3YlGbL0X49N-4',
108
+ commonlyUsed: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-6048&t=pXTSE3YlGbL0X49N-4'
104
109
  },
105
110
  inlineEditing: {
106
111
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=5244-14864&mode=design&t=1pPbrQvGkdMYBNqk-0'
@@ -182,6 +187,9 @@ var FIGMA_LINKS = {
182
187
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-11051&t=OK8Fy4P3se6BKy0F-4',
183
188
  withoutButton: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16196&t=OK8Fy4P3se6BKy0F-4',
184
189
  withoutLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16201&t=OK8Fy4P3se6BKy0F-4'
190
+ },
191
+ editButton: {
192
+ "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6267&t=pXTSE3YlGbL0X49N-4'
185
193
  }
186
194
  };
187
195
  exports.FIGMA_LINKS = FIGMA_LINKS;
@@ -16,6 +16,7 @@ import React, { useState } from 'react';
16
16
  import { withDesign } from 'storybook-addon-designs';
17
17
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
18
18
  import { Box, EditButton, Text } from '../../index';
19
+ import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
19
20
  import { iconButtonArgTypes } from '../IconButton/iconButtonAttributes';
20
21
  import { IconSize } from './EditButton';
21
22
  import EditButtonReadme from './EditButton.mdx';
@@ -51,6 +52,12 @@ export var Default = function Default(args) {
51
52
  "aria-label": "edit"
52
53
  }));
53
54
  };
55
+ Default.parameters = {
56
+ design: {
57
+ type: 'figma',
58
+ url: FIGMA_LINKS.editButton["default"]
59
+ }
60
+ };
54
61
  export var WithSizeProp = function WithSizeProp(args) {
55
62
  return ___EmotionJSX(EditButton, _extends({}, args, {
56
63
  size: "lg",
@@ -45,6 +45,24 @@ Default.parameters = {
45
45
  url: FIGMA_LINKS.iconButton["default"]
46
46
  }
47
47
  };
48
+ export var Inverted = function Inverted(args) {
49
+ return ___EmotionJSX(IconButton, _extends({
50
+ "aria-label": "Plus icon button"
51
+ }, args, {
52
+ variant: "inverted"
53
+ }), ___EmotionJSX(Icon, {
54
+ icon: PlusIcon,
55
+ title: {
56
+ name: 'Plus Icon'
57
+ }
58
+ }));
59
+ };
60
+ Inverted.parameters = {
61
+ design: {
62
+ type: 'figma',
63
+ url: FIGMA_LINKS.iconButton.inverted
64
+ }
65
+ };
48
66
  export var WithTooltip = function WithTooltip() {
49
67
  return ___EmotionJSX(IconButton, {
50
68
  "aria-label": "icon button with tooltip",
@@ -57,6 +75,12 @@ export var WithTooltip = function WithTooltip() {
57
75
  }
58
76
  }));
59
77
  };
78
+ WithTooltip.parameters = {
79
+ design: {
80
+ type: 'figma',
81
+ url: FIGMA_LINKS.iconButton.withTooltip
82
+ }
83
+ };
60
84
  export var Disabled = function Disabled() {
61
85
  return ___EmotionJSX(IconButton, {
62
86
  "aria-label": "disabled icon button",
@@ -68,6 +92,12 @@ export var Disabled = function Disabled() {
68
92
  }
69
93
  }));
70
94
  };
95
+ Disabled.parameters = {
96
+ design: {
97
+ type: 'figma',
98
+ url: FIGMA_LINKS.iconButton.disabled
99
+ }
100
+ };
71
101
  export var Sizes = function Sizes() {
72
102
  return ___EmotionJSX(Table, null, ___EmotionJSX(TableHead, null, ___EmotionJSX(TableRow, {
73
103
  key: "head"
@@ -172,6 +202,12 @@ export var Sizes = function Sizes() {
172
202
  }
173
203
  }))))));
174
204
  };
205
+ Sizes.parameters = {
206
+ design: {
207
+ type: 'figma',
208
+ url: FIGMA_LINKS.iconButton.sizes
209
+ }
210
+ };
175
211
  export var CommonlyUsed = function CommonlyUsed() {
176
212
  return (
177
213
  // please note these are intentionally not mapped for story transparency
@@ -493,4 +529,10 @@ export var CommonlyUsed = function CommonlyUsed() {
493
529
  }
494
530
  }))))
495
531
  );
532
+ };
533
+ CommonlyUsed.parameters = {
534
+ design: {
535
+ type: 'figma',
536
+ url: FIGMA_LINKS.iconButton.commonlyUsed
537
+ }
496
538
  };
@@ -38,13 +38,15 @@ export var base = {
38
38
  outline: 'none',
39
39
  '&.is-focused': _objectSpread({}, defaultFocus),
40
40
  '&.is-hovered': {
41
- bg: 'accent.95'
41
+ bg: 'accent.95',
42
+ boxShadow: 'standard'
42
43
  },
43
44
  '&.is-pressed': {
44
45
  'path': {
45
46
  fill: 'white'
46
47
  },
47
- bg: 'active'
48
+ bg: 'active',
49
+ boxShadow: 'none'
48
50
  }
49
51
  };
50
52
  var bidirectional = {
@@ -81,7 +83,8 @@ var inverted = _objectSpread(_objectSpread({}, base), {}, {
81
83
  '&.is-pressed': {
82
84
  bg: 'accent.20',
83
85
  borderColor: 'accent.20',
84
- color: 'white'
86
+ color: 'white',
87
+ boxShadow: 'none'
85
88
  }
86
89
  });
87
90
  var invertedSquare = _objectSpread(_objectSpread({}, inverted), {}, {
@@ -93,7 +93,12 @@ export var FIGMA_LINKS = {
93
93
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=17916-38366&t=rLZVlRDdR1JhehkH-0'
94
94
  },
95
95
  iconButton: {
96
- "default": 'https://www.figma.com/file/Oa6VYtJcUJzEJuuRp0p4ls/Astro?type=design&node-id=0%3A2520&t=We3h7LaaFJQnxdSy-1'
96
+ "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=45365-7042&t=pXTSE3YlGbL0X49N-4',
97
+ inverted: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6228&t=pXTSE3YlGbL0X49N-4',
98
+ withTooltip: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6053&t=pXTSE3YlGbL0X49N-4',
99
+ disabled: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-5372&t=pXTSE3YlGbL0X49N-4',
100
+ sizes: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-5412&t=pXTSE3YlGbL0X49N-4',
101
+ commonlyUsed: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58748-6048&t=pXTSE3YlGbL0X49N-4'
97
102
  },
98
103
  inlineEditing: {
99
104
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=5244-14864&mode=design&t=1pPbrQvGkdMYBNqk-0'
@@ -175,5 +180,8 @@ export var FIGMA_LINKS = {
175
180
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-11051&t=OK8Fy4P3se6BKy0F-4',
176
181
  withoutButton: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16196&t=OK8Fy4P3se6BKy0F-4',
177
182
  withoutLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16201&t=OK8Fy4P3se6BKy0F-4'
183
+ },
184
+ editButton: {
185
+ "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6267&t=pXTSE3YlGbL0X49N-4'
178
186
  }
179
187
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.95.0",
3
+ "version": "2.96.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",