@mirohq/design-system-icon-button 4.1.4 → 4.1.5-fix-button-types.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +29 -5
  2. package/package.json +5 -5
package/dist/types.d.ts CHANGED
@@ -10,16 +10,28 @@ import * as _mirohq_design_system_components_primitive from '@mirohq/design-syst
10
10
 
11
11
  declare const StyledIconButton: react.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
12
12
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
13
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
13
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
14
+ href?: never;
15
+ }, "ref"> & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
14
16
  ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
15
17
  }, _mirohq_design_system_stitches.ForbiddenProps> & {
16
18
  children?: React.ReactNode;
17
19
  }, "size" | "variant"> & _stitches_react_types_styled_component.TransformProps<{
18
20
  variant?: "outline" | "primary" | "secondary" | "ghost" | "danger" | undefined;
19
21
  size?: "medium" | "large" | "x-large" | undefined;
20
- }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
22
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
21
23
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
22
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & react.AnchorHTMLAttributes<"a"> & {
24
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
25
+ href?: never;
26
+ }, "href"> & {
27
+ type?: string | undefined | undefined;
28
+ target?: react.HTMLAttributeAnchorTarget | undefined;
29
+ media?: string | undefined | undefined;
30
+ href?: string | undefined | undefined;
31
+ download?: any;
32
+ hrefLang?: string | undefined | undefined;
33
+ ping?: string | undefined | undefined;
34
+ } & {
23
35
  href: string;
24
36
  }, "ref"> & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
25
37
  ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
@@ -30,9 +42,21 @@ declare const StyledIconButton: react.ForwardRefExoticComponent<(Omit<Omit<Omit<
30
42
  size?: "medium" | "large" | "x-large" | undefined;
31
43
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref">) & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
32
44
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
33
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> | Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
45
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
46
+ href?: never;
47
+ }, "ref"> | Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & {
34
48
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
35
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & react.AnchorHTMLAttributes<"a"> & {
49
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
50
+ href?: never;
51
+ }, "href"> & {
52
+ type?: string | undefined | undefined;
53
+ target?: react.HTMLAttributeAnchorTarget | undefined;
54
+ media?: string | undefined | undefined;
55
+ href?: string | undefined | undefined;
56
+ download?: any;
57
+ hrefLang?: string | undefined | undefined;
58
+ ping?: string | undefined | undefined;
59
+ } & {
36
60
  href: string;
37
61
  }, "ref">) & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>, {
38
62
  variant?: "outline" | "primary" | "secondary" | "ghost" | "danger" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-icon-button",
3
- "version": "4.1.4",
3
+ "version": "4.1.5-fix-button-types.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -26,13 +26,13 @@
26
26
  "react": "^16.14 || ^17 || ^18 || ^19"
27
27
  },
28
28
  "dependencies": {
29
- "@mirohq/design-system-badge": "^1.1.3",
30
- "@mirohq/design-system-base-button": "^1.1.2",
31
- "@mirohq/design-system-base-icon": "^1.1.0",
29
+ "@mirohq/design-system-base-button": "^1.1.3-fix-button-types.0",
32
30
  "@mirohq/design-system-stitches": "^3.1.2",
31
+ "@mirohq/design-system-base-icon": "^1.1.0",
32
+ "@mirohq/design-system-badge": "^1.1.3",
33
33
  "@mirohq/design-system-styles": "^3.0.1",
34
- "@mirohq/design-system-types": "^1.0.1",
35
34
  "@mirohq/design-system-use-id": "^1.1.0",
35
+ "@mirohq/design-system-types": "^1.0.1",
36
36
  "@mirohq/design-system-utils": "^1.2.1"
37
37
  },
38
38
  "scripts": {