@trackunit/react-form-components 0.1.57 → 0.1.59
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/index.cjs.js +2 -2
- package/index.esm.js +1 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
|
|
5
5
|
var reactComponents = require('@trackunit/react-components');
|
|
6
|
-
var
|
|
6
|
+
var usehooksTs = require('usehooks-ts');
|
|
7
7
|
var cssClassVarianceUtilities = require('@trackunit/css-class-variance-utilities');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var uuid = require('uuid');
|
|
@@ -134,7 +134,7 @@ const cvaActionContainer = cssClassVarianceUtilities.cvaMerge(["flex", "items-ce
|
|
|
134
134
|
* @returns {JSX.Element} ActionButton component
|
|
135
135
|
*/
|
|
136
136
|
const ActionButton = ({ type, value, dataTestId, iconSize, disabled, className }) => {
|
|
137
|
-
const [, copyToClipboard] =
|
|
137
|
+
const [, copyToClipboard] = usehooksTs.useCopyToClipboard();
|
|
138
138
|
const getIconName = () => {
|
|
139
139
|
switch (type) {
|
|
140
140
|
case "PHONE_NUMBER":
|
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useNamespaceTranslation, registerTranslations, NamespaceTrans } from '@trackunit/i18n-library-translation';
|
|
3
3
|
import { IconButton, Icon, Tooltip, useIsTextCutOff, Heading, Text, MenuItem, Tag, Spinner, useIsFirstRender } from '@trackunit/react-components';
|
|
4
|
-
import { useCopyToClipboard } from '
|
|
4
|
+
import { useCopyToClipboard } from 'usehooks-ts';
|
|
5
5
|
import { cvaMerge } from '@trackunit/css-class-variance-utilities';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { isValidElement, forwardRef, useMemo, useState, useCallback, useRef, cloneElement, useEffect, useImperativeHandle } from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@trackunit/ui-icons": "*",
|
|
12
12
|
"react": "18.3.1",
|
|
13
13
|
"uuid": "^9.0.1",
|
|
14
|
-
"
|
|
14
|
+
"usehooks-ts": "^3.1.0",
|
|
15
15
|
"date-fns": "^2.30.0",
|
|
16
16
|
"react-select": "^5.8.0",
|
|
17
17
|
"libphonenumber-js": "1.10.36",
|