@zendeskgarden/react-buttons 9.2.0 → 9.4.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.
@@ -11,7 +11,7 @@ import { StyledButton } from './StyledButton.js';
11
11
  const COMPONENT_ID = 'buttons.anchor';
12
12
  const StyledAnchor = styled(StyledButton).attrs(props => ({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.2.0',
14
+ 'data-garden-version': '9.4.0',
15
15
  as: 'a',
16
16
  dir: props.theme.rtl ? 'rtl' : undefined,
17
17
  $isLink: true,
@@ -308,7 +308,7 @@ const sizeStyles = props => {
308
308
  };
309
309
  const StyledButton = styled.button.attrs(props => ({
310
310
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID,
311
- 'data-garden-version': '9.2.0',
311
+ 'data-garden-version': '9.4.0',
312
312
  type: props.type || 'button'
313
313
  })).withConfig({
314
314
  displayName: "StyledButton",
@@ -11,7 +11,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
11
11
  const COMPONENT_ID = 'buttons.external_icon';
12
12
  const StyledExternalIcon = styled(SvgNewWindowStroke).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.2.0'
14
+ 'data-garden-version': '9.4.0'
15
15
  }).withConfig({
16
16
  displayName: "StyledExternalIcon",
17
17
  componentId: "sc-16oz07e-0"
@@ -19,7 +19,7 @@ const sizeStyles = props => {
19
19
  };
20
20
  const StyledIcon = styled(StyledBaseIcon).attrs({
21
21
  'data-garden-id': COMPONENT_ID,
22
- 'data-garden-version': '9.2.0'
22
+ 'data-garden-version': '9.4.0'
23
23
  }).withConfig({
24
24
  displayName: "StyledIcon",
25
25
  componentId: "sc-19meqgg-0"
@@ -51,7 +51,7 @@ const StyledIconButton = styled(StyledButton).attrs(props => {
51
51
  const externalId = props['data-garden-id'];
52
52
  return {
53
53
  'data-garden-id': externalId && externalId !== COMPONENT_ID$1 ? externalId : COMPONENT_ID,
54
- 'data-garden-version': '9.2.0'
54
+ 'data-garden-version': '9.4.0'
55
55
  };
56
56
  }).withConfig({
57
57
  displayName: "StyledIconButton",
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'buttons.button_group_view';
11
11
  const StyledSplitButton = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.2.0'
13
+ 'data-garden-version': '9.4.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledSplitButton",
16
16
  componentId: "sc-1u4v04v-0"
package/dist/index.cjs.js CHANGED
@@ -41,7 +41,7 @@ const SIZE = ['small', 'medium', 'large'];
41
41
  const COMPONENT_ID$5 = 'buttons.button_group_view';
42
42
  const StyledSplitButton = styled__default.default.div.attrs({
43
43
  'data-garden-id': COMPONENT_ID$5,
44
- 'data-garden-version': '9.2.0'
44
+ 'data-garden-version': '9.4.0'
45
45
  }).withConfig({
46
46
  displayName: "StyledSplitButton",
47
47
  componentId: "sc-1u4v04v-0"
@@ -59,7 +59,7 @@ const sizeStyles$1 = props => {
59
59
  };
60
60
  const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
61
61
  'data-garden-id': COMPONENT_ID$4,
62
- 'data-garden-version': '9.2.0'
62
+ 'data-garden-version': '9.4.0'
63
63
  }).withConfig({
64
64
  displayName: "StyledIcon",
65
65
  componentId: "sc-19meqgg-0"
@@ -363,7 +363,7 @@ const sizeStyles = props => {
363
363
  };
364
364
  const StyledButton = styled__default.default.button.attrs(props => ({
365
365
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$3,
366
- 'data-garden-version': '9.2.0',
366
+ 'data-garden-version': '9.4.0',
367
367
  type: props.type || 'button'
368
368
  })).withConfig({
369
369
  displayName: "StyledButton",
@@ -373,7 +373,7 @@ const StyledButton = styled__default.default.button.attrs(props => ({
373
373
  const COMPONENT_ID$2 = 'buttons.anchor';
374
374
  const StyledAnchor = styled__default.default(StyledButton).attrs(props => ({
375
375
  'data-garden-id': COMPONENT_ID$2,
376
- 'data-garden-version': '9.2.0',
376
+ 'data-garden-version': '9.4.0',
377
377
  as: 'a',
378
378
  dir: props.theme.rtl ? 'rtl' : undefined,
379
379
  $isLink: true,
@@ -404,7 +404,7 @@ var SvgNewWindowStroke = function SvgNewWindowStroke(props) {
404
404
  const COMPONENT_ID$1 = 'buttons.external_icon';
405
405
  const StyledExternalIcon = styled__default.default(SvgNewWindowStroke).attrs({
406
406
  'data-garden-id': COMPONENT_ID$1,
407
- 'data-garden-version': '9.2.0'
407
+ 'data-garden-version': '9.4.0'
408
408
  }).withConfig({
409
409
  displayName: "StyledExternalIcon",
410
410
  componentId: "sc-16oz07e-0"
@@ -452,7 +452,7 @@ const StyledIconButton = styled__default.default(StyledButton).attrs(props => {
452
452
  const externalId = props['data-garden-id'];
453
453
  return {
454
454
  'data-garden-id': externalId && externalId !== COMPONENT_ID$3 ? externalId : COMPONENT_ID,
455
- 'data-garden-version': '9.2.0'
455
+ 'data-garden-version': '9.4.0'
456
456
  };
457
457
  }).withConfig({
458
458
  displayName: "StyledIconButton",
@@ -4,7 +4,12 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
+ import { IAnchorProps } from './../types';
7
8
  /**
8
9
  * Accepts all `<a>` props
9
10
  */
10
- export declare const StyledAnchor: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("./StyledButton").IStyledButtonProps, never>;
11
+ export declare const StyledAnchor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
12
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
13
+ }>, import("./StyledButton").IStyledButtonProps>, keyof import("./StyledButton").IStyledButtonProps> & import("./StyledButton").IStyledButtonProps, import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
14
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
15
+ }>, import("./StyledButton").IStyledButtonProps>, keyof import("./StyledButton").IStyledButtonProps> & import("./StyledButton").IStyledButtonProps>, IAnchorProps>, never>> & string;
@@ -21,4 +21,6 @@ export interface IStyledButtonProps extends ButtonHTMLAttributes<HTMLButtonEleme
21
21
  $focusInset?: boolean;
22
22
  }
23
23
  export declare const getHeight: (props: IStyledButtonProps & ThemeProps<DefaultTheme>) => string;
24
- export declare const StyledButton: import("styled-components").StyledComponent<"button", DefaultTheme, IStyledButtonProps, never>;
24
+ export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
25
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
26
+ }>, IStyledButtonProps>, IStyledButtonProps>> & string;
@@ -7,7 +7,4 @@
7
7
  /**
8
8
  * Accepts all `<svg>` props
9
9
  */
10
- export declare const StyledExternalIcon: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- }, string | number | symbol>;
10
+ export declare const StyledExternalIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<any, never>, never>> & (string | (string & Omit<any, keyof import("react").Component<any, {}, any>>));
@@ -4,13 +4,10 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import { DefaultTheme } from 'styled-components';
7
+ import { DataAttributes } from 'styled-components';
8
8
  interface IStyledIconProps {
9
- $isRotated: boolean;
9
+ $isRotated?: boolean;
10
10
  $position?: 'start' | 'end';
11
11
  }
12
- export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
13
- 'data-garden-id': string;
14
- 'data-garden-version': string;
15
- } & IStyledIconProps, "data-garden-id" | "data-garden-version">;
12
+ export declare const StyledIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>, import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>>, DataAttributes>, IStyledIconProps>> & string;
16
13
  export {};
@@ -4,10 +4,10 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import { DefaultTheme } from 'styled-components';
8
7
  import { IStyledButtonProps } from './StyledButton';
9
8
  export declare const COMPONENT_ID = "buttons.icon_button";
10
- export declare const StyledIconButton: import("styled-components").StyledComponent<"button", DefaultTheme, IStyledButtonProps & {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- }, "data-garden-id" | "data-garden-version">;
9
+ export declare const StyledIconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
10
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
11
+ }>, IStyledButtonProps>, keyof IStyledButtonProps> & IStyledButtonProps, import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
12
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
13
+ }>, IStyledButtonProps>, keyof IStyledButtonProps> & IStyledButtonProps>, never>, never>> & string;
@@ -7,7 +7,6 @@
7
7
  /**
8
8
  * Accepts all `<div>` props
9
9
  */
10
- export declare const StyledSplitButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- }, "data-garden-id" | "data-garden-version">;
10
+ export declare const StyledSplitButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
+ }>, never>, never>> & string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-buttons",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "description": "Components relating to buttons in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -30,10 +30,10 @@
30
30
  "@zendeskgarden/react-theming": ">=9.0.0",
31
31
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
32
32
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
33
- "styled-components": "^5.3.1"
33
+ "styled-components": "^5.3.1 || ^6.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^9.2.0",
36
+ "@zendeskgarden/react-theming": "^9.4.0",
37
37
  "@zendeskgarden/svg-icons": "7.3.0"
38
38
  },
39
39
  "keywords": [
@@ -46,5 +46,5 @@
46
46
  "access": "public"
47
47
  },
48
48
  "zendeskgarden:src": "src/index.ts",
49
- "gitHead": "23a86c9a1e830685e277544c089b44614c2261ac"
49
+ "gitHead": "02e3f240b6f0c776fdae785254d6fe90cbfc37e4"
50
50
  }