@versini/ui-types 2.1.0 → 3.0.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.
- package/dist/index.d.ts +16 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -143,8 +143,9 @@ declare namespace ButtonCopyTypes {
|
|
|
143
143
|
/**
|
|
144
144
|
* What kind of text to copy to the clipboard.
|
|
145
145
|
* - If a string is passed, that string will be copied.
|
|
146
|
+
* - If a function is passed, what is returned from running it will be copied.
|
|
146
147
|
*/
|
|
147
|
-
copyToClipboard: string;
|
|
148
|
+
copyToClipboard: string | (() => string);
|
|
148
149
|
} & Omit<
|
|
149
150
|
ButtonIconTypes.Props,
|
|
150
151
|
| "children"
|
|
@@ -328,10 +329,6 @@ declare namespace SvgIconTypes {
|
|
|
328
329
|
* CSS class(es) to add to the main component wrapper.
|
|
329
330
|
*/
|
|
330
331
|
className?: string;
|
|
331
|
-
/**
|
|
332
|
-
* CSS class(es) to add to the main component wrapper.
|
|
333
|
-
*/
|
|
334
|
-
defaultClassName?: string;
|
|
335
332
|
/**
|
|
336
333
|
* Update the "fill" property of the SVG.
|
|
337
334
|
* @default "currentColor"
|
|
@@ -343,6 +340,20 @@ declare namespace SvgIconTypes {
|
|
|
343
340
|
* @default false
|
|
344
341
|
*/
|
|
345
342
|
semantic?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* The size of the icon. This will set the width and height of the icon.
|
|
345
|
+
*/
|
|
346
|
+
size?:
|
|
347
|
+
| "size-1"
|
|
348
|
+
| "size-2"
|
|
349
|
+
| "size-3"
|
|
350
|
+
| "size-4"
|
|
351
|
+
| "size-5"
|
|
352
|
+
| "size-6"
|
|
353
|
+
| "size-7"
|
|
354
|
+
| "size-8"
|
|
355
|
+
| "size-9"
|
|
356
|
+
| "size-10";
|
|
346
357
|
/**
|
|
347
358
|
* The viewBox to use. If not provided, the default viewBox will be used.
|
|
348
359
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react": "^18.3.1 || ^19.0.0",
|
|
33
33
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c489b5e7d0cfacc90e2a9880811dccf575243961"
|
|
36
36
|
}
|