@versini/ui-types 2.0.0 → 2.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.
- package/dist/index.d.ts +23 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ declare namespace ButtonIconTypes {
|
|
|
106
106
|
children: React.ReactNode;
|
|
107
107
|
/**
|
|
108
108
|
* Cell content alignment.
|
|
109
|
-
* @default
|
|
109
|
+
* @default center
|
|
110
110
|
*/
|
|
111
111
|
align?: "left" | "right" | "center";
|
|
112
112
|
/**
|
|
@@ -135,8 +135,27 @@ declare namespace ButtonSortTypes {
|
|
|
135
135
|
* Prop to signal if the Button is active.
|
|
136
136
|
*/
|
|
137
137
|
active?: boolean;
|
|
138
|
-
} & ButtonIconTypes.Props
|
|
139
|
-
|
|
138
|
+
} & ButtonIconTypes.Props;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare namespace ButtonCopyTypes {
|
|
142
|
+
export type Props = {
|
|
143
|
+
/**
|
|
144
|
+
* What kind of text to copy to the clipboard.
|
|
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.
|
|
147
|
+
*/
|
|
148
|
+
copyToClipboard: string | (() => string);
|
|
149
|
+
} & Omit<
|
|
150
|
+
ButtonIconTypes.Props,
|
|
151
|
+
| "children"
|
|
152
|
+
| "align"
|
|
153
|
+
| "label"
|
|
154
|
+
| "labelLeft"
|
|
155
|
+
| "labelRight"
|
|
156
|
+
| "fullWidth"
|
|
157
|
+
| "size"
|
|
158
|
+
>;
|
|
140
159
|
}
|
|
141
160
|
|
|
142
161
|
declare namespace CardTypes {
|
|
@@ -332,4 +351,4 @@ declare namespace SvgIconTypes {
|
|
|
332
351
|
};
|
|
333
352
|
}
|
|
334
353
|
|
|
335
|
-
export { ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes };
|
|
354
|
+
export { ButtonCopyTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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": "914bac4e3074de68e54cd84fe91e6fe50c38b554"
|
|
36
36
|
}
|