@trackunit/react-components 0.1.385 → 0.1.386
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 +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -170,7 +170,6 @@ const isSafari = () => {
|
|
|
170
170
|
const ua = navigator.userAgent.toLowerCase();
|
|
171
171
|
return ua.includes("safari") && !ua.includes("chrome");
|
|
172
172
|
};
|
|
173
|
-
const ICON_CONTAINER_ID = uuid.v4();
|
|
174
173
|
/**
|
|
175
174
|
* - The Icon component is used to display an Icon.
|
|
176
175
|
* - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
|
|
@@ -181,6 +180,7 @@ const ICON_CONTAINER_ID = uuid.v4();
|
|
|
181
180
|
*/
|
|
182
181
|
const Icon = ({ name, size = "large", className, dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, ariaLabelledBy, ariaDescribedBy, }) => {
|
|
183
182
|
const useTagRef = React.useRef(null);
|
|
183
|
+
const ICON_CONTAINER_ID = uuid.v4();
|
|
184
184
|
const correctIconType = React.useMemo(() => {
|
|
185
185
|
if (size === "small" || size === "medium") {
|
|
186
186
|
return "mini";
|
|
@@ -1741,7 +1741,6 @@ const cvaChevronIcon = cssClassVarianceUtilities.cvaMerge([
|
|
|
1741
1741
|
},
|
|
1742
1742
|
});
|
|
1743
1743
|
|
|
1744
|
-
const LABEL_ID = uuid.v4();
|
|
1745
1744
|
/**
|
|
1746
1745
|
* The Collapse component is a container for additional information that adds context to various flows. It is used for displaying non-essential information that can be hidden away.
|
|
1747
1746
|
*
|
|
@@ -1760,6 +1759,7 @@ const LABEL_ID = uuid.v4();
|
|
|
1760
1759
|
* @returns {JSX.Element} Collapse component
|
|
1761
1760
|
*/
|
|
1762
1761
|
const Collapse = ({ id, initialExpanded = false, onToggle, label, children, className, headerClassName, headerAddon, dataTestId, }) => {
|
|
1762
|
+
const LABEL_ID = uuid.v4();
|
|
1763
1763
|
const [expanded, setExpanded] = React__namespace.useState(initialExpanded);
|
|
1764
1764
|
const handleClick = React__namespace.useCallback((e) => {
|
|
1765
1765
|
if (onToggle) {
|
package/index.esm.js
CHANGED
|
@@ -139,7 +139,6 @@ const isSafari = () => {
|
|
|
139
139
|
const ua = navigator.userAgent.toLowerCase();
|
|
140
140
|
return ua.includes("safari") && !ua.includes("chrome");
|
|
141
141
|
};
|
|
142
|
-
const ICON_CONTAINER_ID = v4();
|
|
143
142
|
/**
|
|
144
143
|
* - The Icon component is used to display an Icon.
|
|
145
144
|
* - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
|
|
@@ -150,6 +149,7 @@ const ICON_CONTAINER_ID = v4();
|
|
|
150
149
|
*/
|
|
151
150
|
const Icon = ({ name, size = "large", className, dataTestId, color, onClick, type, style, forwardedRef, ariaLabel, ariaLabelledBy, ariaDescribedBy, }) => {
|
|
152
151
|
const useTagRef = useRef(null);
|
|
152
|
+
const ICON_CONTAINER_ID = v4();
|
|
153
153
|
const correctIconType = useMemo(() => {
|
|
154
154
|
if (size === "small" || size === "medium") {
|
|
155
155
|
return "mini";
|
|
@@ -1710,7 +1710,6 @@ const cvaChevronIcon = cvaMerge([
|
|
|
1710
1710
|
},
|
|
1711
1711
|
});
|
|
1712
1712
|
|
|
1713
|
-
const LABEL_ID = v4();
|
|
1714
1713
|
/**
|
|
1715
1714
|
* The Collapse component is a container for additional information that adds context to various flows. It is used for displaying non-essential information that can be hidden away.
|
|
1716
1715
|
*
|
|
@@ -1729,6 +1728,7 @@ const LABEL_ID = v4();
|
|
|
1729
1728
|
* @returns {JSX.Element} Collapse component
|
|
1730
1729
|
*/
|
|
1731
1730
|
const Collapse = ({ id, initialExpanded = false, onToggle, label, children, className, headerClassName, headerAddon, dataTestId, }) => {
|
|
1731
|
+
const LABEL_ID = v4();
|
|
1732
1732
|
const [expanded, setExpanded] = React.useState(initialExpanded);
|
|
1733
1733
|
const handleClick = React.useCallback((e) => {
|
|
1734
1734
|
if (onToggle) {
|