@versini/ui-types 8.1.0 → 8.2.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/index.d.ts +20 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React$1 from 'react';
2
2
 
3
- // force new release
4
3
  type CommonButtonProps = {
5
4
  /**
6
5
  * CSS class(es) to add to the main component wrapper.
@@ -47,6 +46,10 @@ type CommonButtonProps = {
47
46
 
48
47
  declare namespace ButtonTypes {
49
48
  export type Props = {
49
+ /**
50
+ * A ref to the button element.
51
+ */
52
+ ref?: React.Ref<HTMLButtonElement>;
50
53
  /**
51
54
  * The text to render in the button.
52
55
  */
@@ -78,6 +81,10 @@ declare namespace ButtonTypes {
78
81
 
79
82
  declare namespace ButtonLinkTypes {
80
83
  export type Props = {
84
+ /**
85
+ * A ref to the anchor element.
86
+ */
87
+ ref?: React.Ref<HTMLAnchorElement>;
81
88
  /**
82
89
  * Whether or not to add an icon indicating that the link
83
90
  * opens in a new window.
@@ -145,6 +152,10 @@ declare namespace ButtonIconTypes {
145
152
  labelRight?: undefined;
146
153
  };
147
154
  export type Props = LabelProps & {
155
+ /**
156
+ * A ref to the button element.
157
+ */
158
+ ref?: React.Ref<HTMLButtonElement>;
148
159
  /**
149
160
  * The icon to render in the button.
150
161
  */
@@ -178,6 +189,10 @@ declare namespace ButtonIconTypes {
178
189
 
179
190
  declare namespace ButtonSortTypes {
180
191
  export type Props = {
192
+ /**
193
+ * A ref to the button element.
194
+ */
195
+ ref?: React.Ref<HTMLButtonElement>;
181
196
  /**
182
197
  * Prop to signal if the Button is active.
183
198
  */
@@ -187,6 +202,10 @@ declare namespace ButtonSortTypes {
187
202
 
188
203
  declare namespace ButtonCopyTypes {
189
204
  export type Props = {
205
+ /**
206
+ * A ref to the button element.
207
+ */
208
+ ref?: React.Ref<HTMLButtonElement>;
190
209
  /**
191
210
  * What kind of text to copy to the clipboard.
192
211
  * - If a string is passed, that string will be copied.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-types",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  "build:check": "tsc",
23
23
  "build:types": "tsup",
24
24
  "build": "npm-run-all --serial clean build:check build:types",
25
- "clean": "rimraf dist tmp",
25
+ "clean": "rimraf dist tmp coverage",
26
26
  "dev:types": "tsup --watch src",
27
27
  "dev": "npm-run-all clean --parallel dev:types",
28
28
  "lint": "biome lint src",
@@ -32,5 +32,5 @@
32
32
  "test:watch": "vitest",
33
33
  "test": "vitest run"
34
34
  },
35
- "gitHead": "b2ee2e328ecadfbedcb26d14afa896a30f0ab54b"
35
+ "gitHead": "5cc3c9aaf61ca3843f16a3d6b322a92f7fb210ca"
36
36
  }