@trackunit/react-components 1.15.10-alpha-e76d0654d61.0 → 1.15.11
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 +11 -18
- package/index.esm.js +8 -8
- package/package.json +5 -5
package/index.cjs.js
CHANGED
|
@@ -21,13 +21,6 @@ var reactHelmetAsync = require('react-helmet-async');
|
|
|
21
21
|
var reactTabs = require('@radix-ui/react-tabs');
|
|
22
22
|
var fflate = require('fflate');
|
|
23
23
|
|
|
24
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
-
|
|
26
|
-
var IconSpriteMicro__default = /*#__PURE__*/_interopDefault(IconSpriteMicro);
|
|
27
|
-
var IconSpriteMini__default = /*#__PURE__*/_interopDefault(IconSpriteMini);
|
|
28
|
-
var IconSpriteOutline__default = /*#__PURE__*/_interopDefault(IconSpriteOutline);
|
|
29
|
-
var IconSpriteSolid__default = /*#__PURE__*/_interopDefault(IconSpriteSolid);
|
|
30
|
-
|
|
31
24
|
const cvaIcon = cssClassVarianceUtilities.cvaMerge(["aspect-square", "inline-grid", "relative", "shrink-0"], {
|
|
32
25
|
variants: {
|
|
33
26
|
color: {
|
|
@@ -159,10 +152,10 @@ const Icon = ({ name, size = "medium", className, "data-testid": dataTestId, col
|
|
|
159
152
|
}, [size]);
|
|
160
153
|
const iconName = uiIcons.iconNames[name];
|
|
161
154
|
const href = react.useMemo(() => ({
|
|
162
|
-
solid: `${
|
|
163
|
-
outline: `${
|
|
164
|
-
mini: `${
|
|
165
|
-
micro: `${
|
|
155
|
+
solid: `${IconSpriteSolid}#${iconName}`,
|
|
156
|
+
outline: `${IconSpriteOutline}#${iconName}`,
|
|
157
|
+
mini: `${IconSpriteMini}#${iconName}`,
|
|
158
|
+
micro: `${IconSpriteMicro}#${iconName}`,
|
|
166
159
|
}), [iconName]);
|
|
167
160
|
react.useEffect(() => {
|
|
168
161
|
if (isSafari() && useTagRef.current) {
|
|
@@ -2179,9 +2172,9 @@ const cvaSkeleton = cssClassVarianceUtilities.cvaMerge([
|
|
|
2179
2172
|
"rounded-lg",
|
|
2180
2173
|
// Gradient background
|
|
2181
2174
|
"bg-gradient-to-r",
|
|
2182
|
-
"from-
|
|
2183
|
-
"via-
|
|
2184
|
-
"to-
|
|
2175
|
+
"from-neutral-200/80",
|
|
2176
|
+
"via-neutral-300/60",
|
|
2177
|
+
"to-neutral-200/80",
|
|
2185
2178
|
// Pulse animation
|
|
2186
2179
|
"animate-pulse",
|
|
2187
2180
|
// Shimmer overlay
|
|
@@ -4790,7 +4783,7 @@ const ListItemSkeleton = ({ hasThumbnail = DEFAULT_SKELETON_LIST_ITEM_PROPS.hasT
|
|
|
4790
4783
|
details: getResponsiveRandomWidthPercentage({ min: 25, max: 45 }),
|
|
4791
4784
|
};
|
|
4792
4785
|
}, []);
|
|
4793
|
-
return (jsxRuntime.jsxs("div", { className: cvaListItem({ className: "w-full" }), children: [jsxRuntime.jsxs("div", { className: cvaMainInformationClass({ hasThumbnail, className: "w-full" }), children: [hasThumbnail ? (jsxRuntime.jsx("div", { className: cvaThumbnailContainer({ className: "bg-gray-200" }), children: jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-
|
|
4786
|
+
return (jsxRuntime.jsxs("div", { className: cvaListItem({ className: "w-full" }), children: [jsxRuntime.jsxs("div", { className: cvaMainInformationClass({ hasThumbnail, className: "w-full" }), children: [hasThumbnail ? (jsxRuntime.jsx("div", { className: cvaThumbnailContainer({ className: "bg-gray-200" }), children: jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-neutral-300", thumbnailShape === "circle" ? "rounded-full" : "rounded"), style: { width: 20, height: 20 } }) })) : null, jsxRuntime.jsxs("div", { className: cvaTextContainer(), children: [jsxRuntime.jsx("div", { className: cvaTitleRow(), children: jsxRuntime.jsx(SkeletonLabel, { textSize: "text-sm", width: lineWidths.title }) }), hasDescription ? (jsxRuntime.jsx("div", { className: cvaDescriptionRow(), children: jsxRuntime.jsx(SkeletonLabel, { textSize: "text-xs", width: lineWidths.description }) })) : null, hasMeta ? (jsxRuntime.jsx("div", { className: cvaMetaRow(), children: jsxRuntime.jsx(SkeletonLabel, { textSize: "text-xs", width: lineWidths.meta }) })) : null] })] }), hasDetails ? (jsxRuntime.jsx("div", { className: cvaDetailsContainer(), children: jsxRuntime.jsx(SkeletonLabel, { textSize: "text-sm", width: lineWidths.details }) })) : null] }));
|
|
4794
4787
|
};
|
|
4795
4788
|
|
|
4796
4789
|
/**
|
|
@@ -5799,9 +5792,9 @@ cssClassVarianceUtilities.cvaMerge([
|
|
|
5799
5792
|
"rounded-lg",
|
|
5800
5793
|
// Gradient background
|
|
5801
5794
|
"bg-gradient-to-r",
|
|
5802
|
-
"from-
|
|
5803
|
-
"via-
|
|
5804
|
-
"to-
|
|
5795
|
+
"from-neutral-200/80",
|
|
5796
|
+
"via-neutral-300/60",
|
|
5797
|
+
"to-neutral-200/80",
|
|
5805
5798
|
// Pulse animation
|
|
5806
5799
|
"animate-pulse",
|
|
5807
5800
|
// Shimmer overlay
|
package/index.esm.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Slot, Slottable } from '@radix-ui/react-slot';
|
|
|
13
13
|
import { Link, useBlocker } from '@tanstack/react-router';
|
|
14
14
|
import { isEqual, omit } from 'es-toolkit';
|
|
15
15
|
import { twMerge } from 'tailwind-merge';
|
|
16
|
-
import { useFloating,
|
|
16
|
+
import { useFloating, offset, flip, shift, size, autoUpdate, useClick, useDismiss, useHover as useHover$1, useRole, useInteractions, FloatingPortal, useMergeRefs as useMergeRefs$1, FloatingFocusManager, arrow, useTransitionStatus, FloatingArrow } from '@floating-ui/react';
|
|
17
17
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
18
18
|
import { HelmetProvider, Helmet } from 'react-helmet-async';
|
|
19
19
|
import { Trigger, Content, List as List$1, Root } from '@radix-ui/react-tabs';
|
|
@@ -2170,9 +2170,9 @@ const cvaSkeleton = cvaMerge([
|
|
|
2170
2170
|
"rounded-lg",
|
|
2171
2171
|
// Gradient background
|
|
2172
2172
|
"bg-gradient-to-r",
|
|
2173
|
-
"from-
|
|
2174
|
-
"via-
|
|
2175
|
-
"to-
|
|
2173
|
+
"from-neutral-200/80",
|
|
2174
|
+
"via-neutral-300/60",
|
|
2175
|
+
"to-neutral-200/80",
|
|
2176
2176
|
// Pulse animation
|
|
2177
2177
|
"animate-pulse",
|
|
2178
2178
|
// Shimmer overlay
|
|
@@ -4781,7 +4781,7 @@ const ListItemSkeleton = ({ hasThumbnail = DEFAULT_SKELETON_LIST_ITEM_PROPS.hasT
|
|
|
4781
4781
|
details: getResponsiveRandomWidthPercentage({ min: 25, max: 45 }),
|
|
4782
4782
|
};
|
|
4783
4783
|
}, []);
|
|
4784
|
-
return (jsxs("div", { className: cvaListItem({ className: "w-full" }), children: [jsxs("div", { className: cvaMainInformationClass({ hasThumbnail, className: "w-full" }), children: [hasThumbnail ? (jsx("div", { className: cvaThumbnailContainer({ className: "bg-gray-200" }), children: jsx("div", { className: twMerge("bg-
|
|
4784
|
+
return (jsxs("div", { className: cvaListItem({ className: "w-full" }), children: [jsxs("div", { className: cvaMainInformationClass({ hasThumbnail, className: "w-full" }), children: [hasThumbnail ? (jsx("div", { className: cvaThumbnailContainer({ className: "bg-gray-200" }), children: jsx("div", { className: twMerge("bg-neutral-300", thumbnailShape === "circle" ? "rounded-full" : "rounded"), style: { width: 20, height: 20 } }) })) : null, jsxs("div", { className: cvaTextContainer(), children: [jsx("div", { className: cvaTitleRow(), children: jsx(SkeletonLabel, { textSize: "text-sm", width: lineWidths.title }) }), hasDescription ? (jsx("div", { className: cvaDescriptionRow(), children: jsx(SkeletonLabel, { textSize: "text-xs", width: lineWidths.description }) })) : null, hasMeta ? (jsx("div", { className: cvaMetaRow(), children: jsx(SkeletonLabel, { textSize: "text-xs", width: lineWidths.meta }) })) : null] })] }), hasDetails ? (jsx("div", { className: cvaDetailsContainer(), children: jsx(SkeletonLabel, { textSize: "text-sm", width: lineWidths.details }) })) : null] }));
|
|
4785
4785
|
};
|
|
4786
4786
|
|
|
4787
4787
|
/**
|
|
@@ -5790,9 +5790,9 @@ cvaMerge([
|
|
|
5790
5790
|
"rounded-lg",
|
|
5791
5791
|
// Gradient background
|
|
5792
5792
|
"bg-gradient-to-r",
|
|
5793
|
-
"from-
|
|
5794
|
-
"via-
|
|
5795
|
-
"to-
|
|
5793
|
+
"from-neutral-200/80",
|
|
5794
|
+
"via-neutral-300/60",
|
|
5795
|
+
"to-neutral-200/80",
|
|
5796
5796
|
// Pulse animation
|
|
5797
5797
|
"animate-pulse",
|
|
5798
5798
|
// Shimmer overlay
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.11",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -14,10 +14,10 @@
|
|
|
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.11.
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
19
|
-
"@trackunit/shared-utils": "1.13.
|
|
20
|
-
"@trackunit/ui-icons": "1.11.
|
|
17
|
+
"@trackunit/ui-design-tokens": "1.11.11",
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.11.10",
|
|
19
|
+
"@trackunit/shared-utils": "1.13.10",
|
|
20
|
+
"@trackunit/ui-icons": "1.11.10",
|
|
21
21
|
"@tanstack/react-router": "1.114.29",
|
|
22
22
|
"es-toolkit": "^1.39.10",
|
|
23
23
|
"@tanstack/react-virtual": "3.13.12",
|