@pingux/astro 2.96.0-alpha.2 → 2.97.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.container = exports.button = void 0;
15
+ exports["default"] = exports.container = exports.button = exports.badgeTooltipContainer = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _Badge = require("../Badge/Badge.styles");
18
18
  var _Buttons = require("../Button/Buttons.styles");
@@ -30,6 +30,12 @@ var container = {
30
30
  }
31
31
  };
32
32
  exports.container = container;
33
+ var badgeTooltipContainer = _objectSpread(_objectSpread({}, container), {}, {
34
+ fontSize: 'sm',
35
+ fontWeight: '1',
36
+ lineHeight: '15.87px'
37
+ });
38
+ exports.badgeTooltipContainer = badgeTooltipContainer;
33
39
  var badge = _objectSpread(_objectSpread({}, _Badge.baseBadge), {}, {
34
40
  cursor: 'default',
35
41
  '&.is-hovered, &.is-pressed': {
@@ -59,6 +65,7 @@ var inline = _objectSpread(_objectSpread({}, _Buttons.text), {}, {
59
65
  });
60
66
  var _default = {
61
67
  container: container,
68
+ badgeTooltipContainer: badgeTooltipContainer,
62
69
  badge: badge,
63
70
  button: button,
64
71
  inline: inline
@@ -11,6 +11,7 @@ var _AccountIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountIcon
11
11
  var _EarthIcon = _interopRequireDefault(require("@pingux/mdi-react/EarthIcon"));
12
12
  var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
13
13
  var _index = require("../../index");
14
+ var _figmaLinks = require("../../utils/designUtils/figmaLinks");
14
15
  var _TooltipTrigger = _interopRequireDefault(require("./TooltipTrigger.mdx"));
15
16
  var _react2 = require("@emotion/react");
16
17
  var _default = {
@@ -112,9 +113,17 @@ var BadgeWithTooltip = function BadgeWithTooltip() {
112
113
  textTransform: 'uppercase'
113
114
  },
114
115
  color: "white"
115
- }, "Some text")), (0, _react2.jsx)(_index.Tooltip, null, "Useful tooltip")));
116
+ }, "Some text")), (0, _react2.jsx)(_index.Tooltip, {
117
+ variant: "variants.tooltip.badgeTooltipContainer"
118
+ }, "Useful tooltip")));
116
119
  };
117
120
  exports.BadgeWithTooltip = BadgeWithTooltip;
121
+ BadgeWithTooltip.parameters = {
122
+ design: {
123
+ type: 'figma',
124
+ url: _figmaLinks.FIGMA_LINKS.tooltipTrigger.badgeWithTooltip
125
+ }
126
+ };
118
127
  var TextWithTooltip = function TextWithTooltip() {
119
128
  return (0, _react2.jsx)(_index.Box, {
120
129
  pl: 50
@@ -181,6 +181,9 @@ export declare const FIGMA_LINKS: {
181
181
  withoutButton: string;
182
182
  withoutLink: string;
183
183
  };
184
+ tooltipTrigger: {
185
+ badgeWithTooltip: string;
186
+ };
184
187
  editButton: {
185
188
  default: string;
186
189
  };
@@ -188,6 +188,9 @@ var FIGMA_LINKS = {
188
188
  withoutButton: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16196&t=OK8Fy4P3se6BKy0F-4',
189
189
  withoutLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16201&t=OK8Fy4P3se6BKy0F-4'
190
190
  },
191
+ tooltipTrigger: {
192
+ badgeWithTooltip: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=59201-5404&t=wsQsGpX0SmOiAweL-4'
193
+ },
191
194
  editButton: {
192
195
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6267&t=pXTSE3YlGbL0X49N-4'
193
196
  }
@@ -22,6 +22,11 @@ export var container = {
22
22
  WebkitLineClamp: '4'
23
23
  }
24
24
  };
25
+ export var badgeTooltipContainer = _objectSpread(_objectSpread({}, container), {}, {
26
+ fontSize: 'sm',
27
+ fontWeight: '1',
28
+ lineHeight: '15.87px'
29
+ });
25
30
  var badge = _objectSpread(_objectSpread({}, baseBadge), {}, {
26
31
  cursor: 'default',
27
32
  '&.is-hovered, &.is-pressed': {
@@ -50,6 +55,7 @@ var inline = _objectSpread(_objectSpread({}, text), {}, {
50
55
  });
51
56
  export default {
52
57
  container: container,
58
+ badgeTooltipContainer: badgeTooltipContainer,
53
59
  badge: badge,
54
60
  button: button,
55
61
  inline: inline
@@ -3,6 +3,7 @@ import AccountIcon from '@pingux/mdi-react/AccountIcon';
3
3
  import Earth from '@pingux/mdi-react/EarthIcon';
4
4
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
5
5
  import { Box, Button, Icon, IconButton, Text, Tooltip, TooltipTrigger } from '../../index';
6
+ import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
6
7
  import TooltipTriggerReadme from './TooltipTrigger.mdx';
7
8
  import { jsx as ___EmotionJSX } from "@emotion/react";
8
9
  export default {
@@ -94,7 +95,15 @@ export var BadgeWithTooltip = function BadgeWithTooltip() {
94
95
  textTransform: 'uppercase'
95
96
  },
96
97
  color: "white"
97
- }, "Some text")), ___EmotionJSX(Tooltip, null, "Useful tooltip")));
98
+ }, "Some text")), ___EmotionJSX(Tooltip, {
99
+ variant: "variants.tooltip.badgeTooltipContainer"
100
+ }, "Useful tooltip")));
101
+ };
102
+ BadgeWithTooltip.parameters = {
103
+ design: {
104
+ type: 'figma',
105
+ url: FIGMA_LINKS.tooltipTrigger.badgeWithTooltip
106
+ }
98
107
  };
99
108
  export var TextWithTooltip = function TextWithTooltip() {
100
109
  return ___EmotionJSX(Box, {
@@ -181,6 +181,9 @@ export var FIGMA_LINKS = {
181
181
  withoutButton: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16196&t=OK8Fy4P3se6BKy0F-4',
182
182
  withoutLink: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=52102-16201&t=OK8Fy4P3se6BKy0F-4'
183
183
  },
184
+ tooltipTrigger: {
185
+ badgeWithTooltip: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=59201-5404&t=wsQsGpX0SmOiAweL-4'
186
+ },
184
187
  editButton: {
185
188
  "default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=58623-6267&t=pXTSE3YlGbL0X49N-4'
186
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.96.0-alpha.2",
3
+ "version": "2.97.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",