@pingux/astro 1.33.0-alpha.4 → 1.33.0-alpha.5

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,8 +24,6 @@ var _react = _interopRequireWildcard(require("react"));
24
24
 
25
25
  var _propTypes = _interopRequireDefault(require("prop-types"));
26
26
 
27
- var _uuid = require("uuid");
28
-
29
27
  var _IconButton = _interopRequireDefault(require("../IconButton"));
30
28
 
31
29
  var _TooltipTrigger = _interopRequireWildcard(require("../TooltipTrigger"));
@@ -65,7 +63,6 @@ var HelpHint = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
65
63
  tooltipProps = props.tooltipProps,
66
64
  iconButtonProps = props.iconButtonProps,
67
65
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
68
- var tooltipId = (0, _uuid.v4)();
69
66
  return (0, _react2.jsx)(_TooltipTrigger["default"], (0, _extends2["default"])({
70
67
  ref: ref,
71
68
  direction: "top"
@@ -73,15 +70,9 @@ var HelpHint = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
73
70
  variant: "helpHint",
74
71
  "aria-label": "label help hint",
75
72
  "data-testid": "help-hint__button"
76
- }, iconButtonProps, {
77
- "aria-describedby": tooltipId
78
- }), (0, _react2.jsx)(_Icon["default"], {
73
+ }, iconButtonProps), (0, _react2.jsx)(_Icon["default"], {
79
74
  icon: HelpIcon
80
- })), (0, _react2.jsx)(_TooltipTrigger.Tooltip, (0, _extends2["default"])({}, tooltipProps, {
81
- role: "tooltip",
82
- "aria-live": "polite",
83
- id: tooltipId
84
- }), children));
75
+ })), (0, _react2.jsx)(_TooltipTrigger.Tooltip, tooltipProps, children));
85
76
  });
86
77
  HelpHint.propTypes = {
87
78
  /** Props object that is spread directly into the tooltip element. */
@@ -57,11 +57,6 @@ var buttons = {
57
57
  inline: {
58
58
  '&:not(.disabled):hover': _objectSpread(_objectSpread({}, _theme["default"].buttons.inline), _theme["default"].buttons.defaultHover)
59
59
  },
60
- inverted: _objectSpread(_objectSpread({}, _theme["default"].buttons.inverted), {}, {
61
- ':focus': {
62
- border: 'none'
63
- }
64
- }),
65
60
  primary: {
66
61
  '&:hover': _objectSpread({}, _theme["default"].buttons.primary)
67
62
  },
@@ -128,14 +123,8 @@ var forms = {
128
123
  }
129
124
  }
130
125
  };
131
- var links = {
132
- app: {
133
- '&:hover': _objectSpread({}, _theme["default"].links.app)
134
- }
135
- };
136
126
  var _default = {
137
127
  buttons: buttons,
138
- forms: forms,
139
- links: links
128
+ forms: forms
140
129
  };
141
130
  exports["default"] = _default;
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["children", "tooltipProps", "iconButtonProps"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { v4 as uuid } from 'uuid';
7
6
  import IconButton from '../IconButton';
8
7
  import TooltipTrigger, { Tooltip } from '../TooltipTrigger';
9
8
  import Icon from '../Icon';
@@ -35,7 +34,6 @@ var HelpHint = /*#__PURE__*/forwardRef(function (props, ref) {
35
34
  iconButtonProps = props.iconButtonProps,
36
35
  others = _objectWithoutProperties(props, _excluded);
37
36
 
38
- var tooltipId = uuid();
39
37
  return ___EmotionJSX(TooltipTrigger, _extends({
40
38
  ref: ref,
41
39
  direction: "top"
@@ -43,15 +41,9 @@ var HelpHint = /*#__PURE__*/forwardRef(function (props, ref) {
43
41
  variant: "helpHint",
44
42
  "aria-label": "label help hint",
45
43
  "data-testid": "help-hint__button"
46
- }, iconButtonProps, {
47
- "aria-describedby": tooltipId
48
- }), ___EmotionJSX(Icon, {
44
+ }, iconButtonProps), ___EmotionJSX(Icon, {
49
45
  icon: HelpIcon
50
- })), ___EmotionJSX(Tooltip, _extends({}, tooltipProps, {
51
- role: "tooltip",
52
- "aria-live": "polite",
53
- id: tooltipId
54
- }), children));
46
+ })), ___EmotionJSX(Tooltip, tooltipProps, children));
55
47
  });
56
48
  HelpHint.propTypes = {
57
49
  /** Props object that is spread directly into the tooltip element. */
@@ -38,11 +38,6 @@ var buttons = {
38
38
  inline: {
39
39
  '&:not(.disabled):hover': _objectSpread(_objectSpread({}, theme.buttons.inline), theme.buttons.defaultHover)
40
40
  },
41
- inverted: _objectSpread(_objectSpread({}, theme.buttons.inverted), {}, {
42
- ':focus': {
43
- border: 'none'
44
- }
45
- }),
46
41
  primary: {
47
42
  '&:hover': _objectSpread({}, theme.buttons.primary)
48
43
  },
@@ -109,13 +104,7 @@ var forms = {
109
104
  }
110
105
  }
111
106
  };
112
- var links = {
113
- app: {
114
- '&:hover': _objectSpread({}, theme.links.app)
115
- }
116
- };
117
107
  export default {
118
108
  buttons: buttons,
119
- forms: forms,
120
- links: links
109
+ forms: forms
121
110
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.33.0-alpha.4",
3
+ "version": "1.33.0-alpha.5",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",