@mirohq/design-system-base-input 1.2.2 → 1.2.3-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 +59 -11
  2. package/package.json +4 -4
package/dist/types.d.ts CHANGED
@@ -62,16 +62,28 @@ declare const useInputContext: () => InputContextProps;
62
62
 
63
63
  declare const StyledActionButton: React$1.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
64
64
  ref?: ((instance: HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLButtonElement> | null | undefined;
65
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
65
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
66
+ href?: never;
67
+ }, "ref"> & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
66
68
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
67
69
  }, _mirohq_design_system_stitches.ForbiddenProps> & {
68
70
  children?: React.ReactNode;
69
71
  }, "readOnlyAppearance" | "disableAppearance"> & _stitches_react_types_styled_component.TransformProps<{
70
72
  readOnlyAppearance?: boolean | "true" | undefined;
71
73
  disableAppearance?: boolean | "true" | undefined;
72
- }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
74
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
73
75
  ref?: ((instance: HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLButtonElement> | null | undefined;
74
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & React$1.AnchorHTMLAttributes<"a"> & {
76
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
77
+ href?: never;
78
+ }, "href"> & {
79
+ href?: string | undefined | undefined;
80
+ target?: React$1.HTMLAttributeAnchorTarget | undefined;
81
+ type?: string | undefined | undefined;
82
+ download?: any;
83
+ hrefLang?: string | undefined | undefined;
84
+ media?: string | undefined | undefined;
85
+ ping?: string | undefined | undefined;
86
+ } & {
75
87
  href: string;
76
88
  }, "ref"> & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
77
89
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
@@ -82,9 +94,21 @@ declare const StyledActionButton: React$1.ForwardRefExoticComponent<(Omit<Omit<O
82
94
  disableAppearance?: boolean | "true" | undefined;
83
95
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<React$1.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
84
96
  ref?: ((instance: HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLButtonElement> | null | undefined;
85
- } & _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$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
97
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
98
+ href?: never;
99
+ }, "ref"> | Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React$1.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
86
100
  ref?: ((instance: HTMLButtonElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLButtonElement> | null | undefined;
87
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & React$1.AnchorHTMLAttributes<"a"> & {
101
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
102
+ href?: never;
103
+ }, "href"> & {
104
+ href?: string | undefined | undefined;
105
+ target?: React$1.HTMLAttributeAnchorTarget | undefined;
106
+ type?: string | undefined | undefined;
107
+ download?: any;
108
+ hrefLang?: string | undefined | undefined;
109
+ media?: string | undefined | undefined;
110
+ ping?: string | undefined | undefined;
111
+ } & {
88
112
  href: string;
89
113
  }, "ref">) & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, {
90
114
  readOnlyAppearance?: boolean | "true" | undefined;
@@ -101,7 +125,9 @@ type ActionButtonProps = StyledActionButtonProps & ({
101
125
  });
102
126
  declare const ActionButton: React__default.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
103
127
  ref?: ((instance: HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLButtonElement> | null | undefined;
104
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
128
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
129
+ href?: never;
130
+ }, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
105
131
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
106
132
  }, _mirohq_design_system_stitches.ForbiddenProps> & {
107
133
  children?: React__default.ReactNode;
@@ -115,7 +141,9 @@ declare const ActionButton: React__default.ForwardRefExoticComponent<(Omit<Omit<
115
141
  'aria-label'?: string;
116
142
  }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
117
143
  ref?: ((instance: HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLButtonElement> | null | undefined;
118
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
144
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
145
+ href?: never;
146
+ }, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
119
147
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
120
148
  }, _mirohq_design_system_stitches.ForbiddenProps> & {
121
149
  children?: React__default.ReactNode;
@@ -127,9 +155,19 @@ declare const ActionButton: React__default.ForwardRefExoticComponent<(Omit<Omit<
127
155
  } & {
128
156
  label?: never;
129
157
  'aria-label': string;
130
- }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
158
+ }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
131
159
  ref?: ((instance: HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLButtonElement> | null | undefined;
132
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & React__default.AnchorHTMLAttributes<"a"> & {
160
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
161
+ href?: never;
162
+ }, "href"> & {
163
+ href?: string | undefined | undefined;
164
+ target?: React__default.HTMLAttributeAnchorTarget | undefined;
165
+ type?: string | undefined | undefined;
166
+ download?: any;
167
+ hrefLang?: string | undefined | undefined;
168
+ media?: string | undefined | undefined;
169
+ ping?: string | undefined | undefined;
170
+ } & {
133
171
  href: string;
134
172
  }, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
135
173
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
@@ -143,9 +181,19 @@ declare const ActionButton: React__default.ForwardRefExoticComponent<(Omit<Omit<
143
181
  } & {
144
182
  label: string;
145
183
  'aria-label'?: string;
146
- }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
184
+ }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<React__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
147
185
  ref?: ((instance: HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLButtonElement> | null | undefined;
148
- } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & React__default.AnchorHTMLAttributes<"a"> & {
186
+ } & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & {
187
+ href?: never;
188
+ }, "href"> & {
189
+ href?: string | undefined | undefined;
190
+ target?: React__default.HTMLAttributeAnchorTarget | undefined;
191
+ type?: string | undefined | undefined;
192
+ download?: any;
193
+ hrefLang?: string | undefined | undefined;
194
+ media?: string | undefined | undefined;
195
+ ping?: string | undefined | undefined;
196
+ } & {
149
197
  href: string;
150
198
  }, "ref"> & React__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
151
199
  ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-base-input",
3
- "version": "1.2.2",
3
+ "version": "1.2.3-fix-button-types.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -28,14 +28,14 @@
28
28
  "dependencies": {
29
29
  "@react-aria/interactions": "^3.13.0",
30
30
  "@react-aria/utils": "^3.31.0",
31
- "@mirohq/design-system-base-button": "^1.1.2",
31
+ "@mirohq/design-system-base-button": "^1.1.3-fix-button-types.0",
32
32
  "@mirohq/design-system-base-form": "^1.1.3",
33
33
  "@mirohq/design-system-base-icon": "^1.1.0",
34
- "@mirohq/design-system-base-text-field": "^1.2.1",
35
- "@mirohq/design-system-primitive": "^2.1.0",
36
34
  "@mirohq/design-system-stitches": "^3.1.2",
35
+ "@mirohq/design-system-base-text-field": "^1.2.1",
37
36
  "@mirohq/design-system-tooltip": "^4.2.0",
38
37
  "@mirohq/design-system-use-aria-disabled": "^1.1.1",
38
+ "@mirohq/design-system-primitive": "^2.1.0",
39
39
  "@mirohq/design-system-use-layout-effect": "^1.1.0",
40
40
  "@mirohq/design-system-use-press": "^1.1.1",
41
41
  "@mirohq/design-system-utils": "^1.2.1"