@trackunit/react-components 1.9.21 → 1.9.23

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 CHANGED
@@ -32,7 +32,6 @@ const cvaIcon = cssClassVarianceUtilities.cvaMerge(["aspect-square", "inline-gri
32
32
  variants: {
33
33
  color: {
34
34
  primary: "text-primary-600",
35
- secondary: "text-neutral-400",
36
35
  neutral: "text-neutral-400",
37
36
  info: "text-info-600",
38
37
  success: "text-success-600",
@@ -201,7 +200,6 @@ const cvaTag = cssClassVarianceUtilities.cvaMerge([
201
200
  },
202
201
  color: {
203
202
  primary: ["bg-primary-100", "text-primary-700"],
204
- secondary: ["bg-neutral-100", "text-neutral-700"],
205
203
  neutral: ["bg-neutral-200", "text-neutral-700"],
206
204
  black: ["bg-neutral-100", "text-neutral-700"],
207
205
  white: ["bg-white", "text-neutral-600"],
@@ -274,7 +272,7 @@ Tag.displayName = "Tag";
274
272
  * A component used to display the package name and version in the Storybook docs.
275
273
  */
276
274
  const PackageNameStoryComponent = ({ packageJSON }) => {
277
- return (jsxRuntime.jsxs("div", { className: "flex gap-2", children: [jsxRuntime.jsx(Tag, { color: "secondary", children: packageJSON?.name }), jsxRuntime.jsxs(Tag, { color: "secondary", children: ["v", packageJSON?.version] })] }));
275
+ return (jsxRuntime.jsxs("div", { className: "flex gap-2", children: [jsxRuntime.jsx(Tag, { color: "neutral", children: packageJSON?.name }), jsxRuntime.jsxs(Tag, { color: "neutral", children: ["v", packageJSON?.version] })] }));
278
276
  };
279
277
 
280
278
  /**
@@ -1937,7 +1935,7 @@ const BreadcrumbForMediumScreen = ({ dataTestId, breadcrumbItems }) => {
1937
1935
  const [expanded, setExpanded] = react.useState(false);
1938
1936
  const getReducedArray = react.useCallback(() => {
1939
1937
  let reducedArrayElements = [];
1940
- const collapsibleButton = (jsxRuntime.jsxs("div", { className: cvaBreadcrumbItem(), children: [jsxRuntime.jsx(IconButton, { dataTestId: `collapsibleButton-${dataTestId}`, icon: jsxRuntime.jsx(Icon, { name: "EllipsisHorizontal", size: "small" }), onClick: () => setExpanded(true), size: "small", variant: "ghost-neutral" }), jsxRuntime.jsx(Icon, { color: "secondary", name: "Slash", size: "small" })] }));
1938
+ const collapsibleButton = (jsxRuntime.jsxs("div", { className: cvaBreadcrumbItem(), children: [jsxRuntime.jsx(IconButton, { dataTestId: `collapsibleButton-${dataTestId}`, icon: jsxRuntime.jsx(Icon, { name: "EllipsisHorizontal", size: "small" }), onClick: () => setExpanded(true), size: "small", variant: "ghost-neutral" }), jsxRuntime.jsx(Icon, { color: "neutral", name: "Slash", size: "small" })] }));
1941
1939
  const firstBreadcrumbItem = breadcrumbItems[0];
1942
1940
  if (firstBreadcrumbItem && breadcrumbItems.length > 3) {
1943
1941
  const lastTwoBreadcrumbItem = breadcrumbItems.slice(-2);
package/index.esm.js CHANGED
@@ -30,7 +30,6 @@ const cvaIcon = cvaMerge(["aspect-square", "inline-grid", "relative", "shrink-0"
30
30
  variants: {
31
31
  color: {
32
32
  primary: "text-primary-600",
33
- secondary: "text-neutral-400",
34
33
  neutral: "text-neutral-400",
35
34
  info: "text-info-600",
36
35
  success: "text-success-600",
@@ -199,7 +198,6 @@ const cvaTag = cvaMerge([
199
198
  },
200
199
  color: {
201
200
  primary: ["bg-primary-100", "text-primary-700"],
202
- secondary: ["bg-neutral-100", "text-neutral-700"],
203
201
  neutral: ["bg-neutral-200", "text-neutral-700"],
204
202
  black: ["bg-neutral-100", "text-neutral-700"],
205
203
  white: ["bg-white", "text-neutral-600"],
@@ -272,7 +270,7 @@ Tag.displayName = "Tag";
272
270
  * A component used to display the package name and version in the Storybook docs.
273
271
  */
274
272
  const PackageNameStoryComponent = ({ packageJSON }) => {
275
- return (jsxs("div", { className: "flex gap-2", children: [jsx(Tag, { color: "secondary", children: packageJSON?.name }), jsxs(Tag, { color: "secondary", children: ["v", packageJSON?.version] })] }));
273
+ return (jsxs("div", { className: "flex gap-2", children: [jsx(Tag, { color: "neutral", children: packageJSON?.name }), jsxs(Tag, { color: "neutral", children: ["v", packageJSON?.version] })] }));
276
274
  };
277
275
 
278
276
  /**
@@ -1935,7 +1933,7 @@ const BreadcrumbForMediumScreen = ({ dataTestId, breadcrumbItems }) => {
1935
1933
  const [expanded, setExpanded] = useState(false);
1936
1934
  const getReducedArray = useCallback(() => {
1937
1935
  let reducedArrayElements = [];
1938
- const collapsibleButton = (jsxs("div", { className: cvaBreadcrumbItem(), children: [jsx(IconButton, { dataTestId: `collapsibleButton-${dataTestId}`, icon: jsx(Icon, { name: "EllipsisHorizontal", size: "small" }), onClick: () => setExpanded(true), size: "small", variant: "ghost-neutral" }), jsx(Icon, { color: "secondary", name: "Slash", size: "small" })] }));
1936
+ const collapsibleButton = (jsxs("div", { className: cvaBreadcrumbItem(), children: [jsx(IconButton, { dataTestId: `collapsibleButton-${dataTestId}`, icon: jsx(Icon, { name: "EllipsisHorizontal", size: "small" }), onClick: () => setExpanded(true), size: "small", variant: "ghost-neutral" }), jsx(Icon, { color: "neutral", name: "Slash", size: "small" })] }));
1939
1937
  const firstBreadcrumbItem = breadcrumbItems[0];
1940
1938
  if (firstBreadcrumbItem && breadcrumbItems.length > 3) {
1941
1939
  const lastTwoBreadcrumbItem = breadcrumbItems.slice(-2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.9.21",
3
+ "version": "1.9.23",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -16,11 +16,11 @@
16
16
  "@floating-ui/react": "^0.26.25",
17
17
  "string-ts": "^2.0.0",
18
18
  "tailwind-merge": "^2.0.0",
19
- "@trackunit/ui-design-tokens": "1.7.12",
20
- "@trackunit/css-class-variance-utilities": "1.7.12",
21
- "@trackunit/shared-utils": "1.9.12",
22
- "@trackunit/ui-icons": "1.7.14",
23
- "@trackunit/react-test-setup": "1.4.12",
19
+ "@trackunit/ui-design-tokens": "1.7.14",
20
+ "@trackunit/css-class-variance-utilities": "1.7.13",
21
+ "@trackunit/shared-utils": "1.9.13",
22
+ "@trackunit/ui-icons": "1.7.15",
23
+ "@trackunit/react-test-setup": "1.4.13",
24
24
  "@tanstack/react-router": "1.114.29",
25
25
  "es-toolkit": "^1.39.10",
26
26
  "@tanstack/react-virtual": "3.13.12"
@@ -172,18 +172,6 @@ export declare const iconPalette: {
172
172
  readonly 800: "30 64 175";
173
173
  readonly 900: "30 58 138";
174
174
  };
175
- SECONDARY: {
176
- readonly 50: "248 250 252";
177
- readonly 100: "241 245 249";
178
- readonly 200: "226 232 240";
179
- readonly 300: "203 213 225";
180
- readonly 400: "148 163 184";
181
- readonly 500: "100 116 139";
182
- readonly 600: "71 85 105";
183
- readonly 700: "51 65 85";
184
- readonly 800: "30 41 59";
185
- readonly 900: "15 23 42";
186
- };
187
175
  NEUTRAL: {
188
176
  readonly 50: "249 250 251";
189
177
  readonly 100: "243 244 246";
@@ -251,7 +239,7 @@ export declare const iconPalette: {
251
239
  readonly 900: "127 29 29";
252
240
  };
253
241
  };
254
- export declare const iconColorNames: ("info" | "success" | "warning" | "danger" | "primary" | "secondary" | "neutral" | "black" | "white" | "good" | "low" | "critical" | "working" | "idle" | "stopped" | "unknown" | "moving" | "active" | "excessive_usage" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status")[];
242
+ export declare const iconColorNames: ("info" | "success" | "warning" | "danger" | "primary" | "neutral" | "black" | "white" | "good" | "low" | "critical" | "working" | "idle" | "stopped" | "unknown" | "moving" | "active" | "excessive_usage" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status")[];
255
243
  type IconPropsSmall = {
256
244
  size?: "small";
257
245
  type?: "solid";
@@ -1,5 +1,5 @@
1
1
  export declare const cvaIcon: (props?: ({
2
- color?: "default" | "primary" | "secondary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "active" | "excessive_usage" | "stopped" | "unknown" | "black" | "white" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status" | null | undefined;
2
+ color?: "default" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "active" | "excessive_usage" | "stopped" | "unknown" | "black" | "white" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status" | null | undefined;
3
3
  size?: "small" | "medium" | "large" | null | undefined;
4
4
  fontSize?: boolean | null | undefined;
5
5
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,7 +1,7 @@
1
1
  export declare const cvaTag: (props?: ({
2
2
  size?: "small" | "medium" | null | undefined;
3
3
  layout?: "default" | "containsDismiss" | "containsIcon" | null | undefined;
4
- color?: "primary" | "secondary" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | "excessive_usage" | null | undefined;
4
+ color?: "primary" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | "excessive_usage" | null | undefined;
5
5
  border?: "default" | "none" | null | undefined;
6
6
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
7
  export declare const cvaTagText: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;