@cloudflare/component-button 2.11.26 → 2.11.27

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.11.27](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.11.26...@cloudflare/component-button@2.11.27) (2022-01-06)
7
+
8
+ **Note:** Version bump only for package @cloudflare/component-button
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.11.26](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.11.25...@cloudflare/component-button@2.11.26) (2021-12-28)
7
15
 
8
16
  **Note:** Version bump only for package @cloudflare/component-button
@@ -331,6 +331,7 @@ declare const TextButton: import("react").ComponentType<{
331
331
  px?: import("csstype").PaddingLeftProperty<string | number> | [import("csstype").PaddingLeftProperty<string | number> | undefined, import("csstype").PaddingLeftProperty<string | number> | undefined] | [import("csstype").PaddingLeftProperty<string | number> | undefined, import("csstype").PaddingLeftProperty<string | number> | undefined, import("csstype").PaddingLeftProperty<string | number> | undefined] | undefined;
332
332
  py?: import("csstype").PaddingTopProperty<string | number> | [import("csstype").PaddingTopProperty<string | number> | undefined, import("csstype").PaddingTopProperty<string | number> | undefined] | [import("csstype").PaddingTopProperty<string | number> | undefined, import("csstype").PaddingTopProperty<string | number> | undefined, import("csstype").PaddingTopProperty<string | number> | undefined] | undefined;
333
333
  borderbottomRightRadius?: ([never, never] | [never, never, never]) | undefined;
334
+ 'data-testid'?: string | undefined;
334
335
  innerRef?: import("react").Ref<HTMLButtonElement> | undefined;
335
336
  }>;
336
337
  export default TextButton;
package/es/TextButton.js CHANGED
@@ -1,3 +1,4 @@
1
+ import PropTypes from 'prop-types';
1
2
  import { createStyledComponent } from '@cloudflare/style-container';
2
3
  const TextButton = createStyledComponent(({
3
4
  theme
@@ -17,6 +18,7 @@ const TextButton = createStyledComponent(({
17
18
  fontSize: 2,
18
19
  fontWeight: 400,
19
20
  outline: 'none',
21
+ overflow: 'hidden',
20
22
  ':hover': {
21
23
  color: theme.colors.orange[6]
22
24
  },
@@ -25,4 +27,8 @@ const TextButton = createStyledComponent(({
25
27
  outlineOffset: '1px'
26
28
  }
27
29
  }), 'button');
30
+ TextButton.propTypes = {
31
+ 'data-testid': PropTypes.string
32
+ };
33
+ TextButton.displayName = 'TextButton';
28
34
  export default TextButton;
package/lib/TextButton.js CHANGED
@@ -5,8 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
8
10
  var _styleContainer = require("@cloudflare/style-container");
9
11
 
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
10
14
  var TextButton = (0, _styleContainer.createStyledComponent)(function (_ref) {
11
15
  var theme = _ref.theme;
12
16
  return {
@@ -25,6 +29,7 @@ var TextButton = (0, _styleContainer.createStyledComponent)(function (_ref) {
25
29
  fontSize: 2,
26
30
  fontWeight: 400,
27
31
  outline: 'none',
32
+ overflow: 'hidden',
28
33
  ':hover': {
29
34
  color: theme.colors.orange[6]
30
35
  },
@@ -34,5 +39,9 @@ var TextButton = (0, _styleContainer.createStyledComponent)(function (_ref) {
34
39
  }
35
40
  };
36
41
  }, 'button');
42
+ TextButton.propTypes = {
43
+ 'data-testid': _propTypes.default.string
44
+ };
45
+ TextButton.displayName = 'TextButton';
37
46
  var _default = TextButton;
38
47
  exports.default = _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "2.11.26",
4
+ "version": "2.11.27",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -32,5 +32,5 @@
32
32
  "test-coverage": "stratus test --coverage",
33
33
  "test-watch": "stratus test --watch"
34
34
  },
35
- "gitHead": "06e91364c74bda80d707d13e48c358c4c4a222e3"
35
+ "gitHead": "dd5dec6cf403aee5608d1a1bf77e028381ae00c3"
36
36
  }