@cloudflare/component-button 9.5.3 → 9.5.4

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
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 92aa24bd89: Accept React 18 and 19 in the peer ranges of smoke-tested components and styling packages. Keep React keys out of Grid and FormGrid styling props, and emit declarations compatible with React 19 types.
8
+
3
9
  ## 9.5.3
4
10
 
5
11
  ### Patch Changes
package/dist/Button.d.ts CHANGED
@@ -126,7 +126,7 @@ declare type Props = React.PropsWithChildren<{
126
126
  noWrapText?: boolean;
127
127
  buttonState?: 'hover' | 'active' | 'focus';
128
128
  compact?: boolean;
129
- }> & Pick<JSX.IntrinsicElements['button'], 'onClick' | 'disabled' | 'form' | 'tabIndex' | 'className'>;
129
+ }> & Pick<React.ComponentProps<'button'>, 'onClick' | 'disabled' | 'form' | 'tabIndex' | 'className'>;
130
130
  declare type PropsWithTheme = Props & ThemeProp;
131
131
  declare const _default: React.ComponentType<{
132
132
  children?: React.ReactNode;
@@ -13,5 +13,5 @@ declare const IconTextButton: ({ onClick, iconType, iconPosition, children }: {
13
13
  children?: React.ReactNode;
14
14
  } & {
15
15
  children?: React.ReactNode;
16
- }) => JSX.Element;
16
+ }) => React.ReactElement;
17
17
  export default IconTextButton;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "9.5.3",
4
+ "version": "9.5.4",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -20,7 +20,7 @@
20
20
  "@cloudflare/component-icon": "^13.15.0",
21
21
  "@cloudflare/style-const": "^6.0.0",
22
22
  "@cloudflare/style-container": "^8.0.0",
23
- "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
23
+ "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0"
24
24
  },
25
25
  "stratus": {
26
26
  "srcDirectory": "./src",