@trackunit/react-components 2.1.24 → 2.1.28
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 +5 -4
- package/index.esm.js +5 -4
- package/package.json +6 -6
package/index.cjs.js
CHANGED
|
@@ -200,10 +200,11 @@ const Icon = ({ name, size = "medium", className, "data-testid": dataTestId, col
|
|
|
200
200
|
}, [size]);
|
|
201
201
|
const iconName = uiIcons.iconNames[name];
|
|
202
202
|
const href = react.useMemo(() => ({
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
// Symbol ids are namespaced by type so the four sprites can be inlined together.
|
|
204
|
+
solid: `${IconSpriteSolid}#solid-${iconName}`,
|
|
205
|
+
outline: `${IconSpriteOutline}#outline-${iconName}`,
|
|
206
|
+
mini: `${IconSpriteMini}#mini-${iconName}`,
|
|
207
|
+
micro: `${IconSpriteMicro}#micro-${iconName}`,
|
|
207
208
|
}), [iconName]);
|
|
208
209
|
react.useEffect(() => {
|
|
209
210
|
if (isSafari() && useTagRef.current) {
|
package/index.esm.js
CHANGED
|
@@ -198,10 +198,11 @@ const Icon = ({ name, size = "medium", className, "data-testid": dataTestId, col
|
|
|
198
198
|
}, [size]);
|
|
199
199
|
const iconName = iconNames[name];
|
|
200
200
|
const href = useMemo(() => ({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
// Symbol ids are namespaced by type so the four sprites can be inlined together.
|
|
202
|
+
solid: `${IconSpriteSolid}#solid-${iconName}`,
|
|
203
|
+
outline: `${IconSpriteOutline}#outline-${iconName}`,
|
|
204
|
+
mini: `${IconSpriteMini}#mini-${iconName}`,
|
|
205
|
+
micro: `${IconSpriteMicro}#micro-${iconName}`,
|
|
205
206
|
}), [iconName]);
|
|
206
207
|
useEffect(() => {
|
|
207
208
|
if (isSafari() && useTagRef.current) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.28",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"migrations": "./migrations.json",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"@floating-ui/react": "^0.26.25",
|
|
15
15
|
"string-ts": "^2.0.0",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
|
-
"@trackunit/ui-design-tokens": "1.13.
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
19
|
-
"@trackunit/shared-utils": "1.15.
|
|
20
|
-
"@trackunit/ui-icons": "1.13.
|
|
17
|
+
"@trackunit/ui-design-tokens": "1.13.32",
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.13.32",
|
|
19
|
+
"@trackunit/shared-utils": "1.15.32",
|
|
20
|
+
"@trackunit/ui-icons": "1.13.34",
|
|
21
21
|
"es-toolkit": "^1.39.10",
|
|
22
22
|
"@tanstack/react-virtual": "3.13.12",
|
|
23
23
|
"dequal": "^2.0.3",
|
|
24
24
|
"fflate": "^0.8.2",
|
|
25
25
|
"superjson": "^2.2.6",
|
|
26
26
|
"zod": "^3.25.76",
|
|
27
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
27
|
+
"@trackunit/i18n-library-translation": "2.0.29"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^19.0.0",
|