@versini/ui-types 2.0.0 → 2.1.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 +22 -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,26 @@ 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
|
+
*/
|
|
147
|
+
copyToClipboard: string;
|
|
148
|
+
} & Omit<
|
|
149
|
+
ButtonIconTypes.Props,
|
|
150
|
+
| "children"
|
|
151
|
+
| "align"
|
|
152
|
+
| "label"
|
|
153
|
+
| "labelLeft"
|
|
154
|
+
| "labelRight"
|
|
155
|
+
| "fullWidth"
|
|
156
|
+
| "size"
|
|
157
|
+
>;
|
|
140
158
|
}
|
|
141
159
|
|
|
142
160
|
declare namespace CardTypes {
|
|
@@ -332,4 +350,4 @@ declare namespace SvgIconTypes {
|
|
|
332
350
|
};
|
|
333
351
|
}
|
|
334
352
|
|
|
335
|
-
export { ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes };
|
|
353
|
+
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.1.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": "1221c66705bd1e8a31981a21a9566c8db647ab5c"
|
|
36
36
|
}
|