@versini/ui-types 2.1.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -1
  2. 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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-types",
3
- "version": "2.1.0",
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": "1221c66705bd1e8a31981a21a9566c8db647ab5c"
35
+ "gitHead": "914bac4e3074de68e54cd84fe91e6fe50c38b554"
36
36
  }