@trackunit/react-components 0.1.297 → 0.1.298
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
|
@@ -268,13 +268,16 @@ const cvaTag = cssClassVarianceUtilities.cvaMerge([
|
|
|
268
268
|
unknown: "bg-unknown-100 text-unknown-700",
|
|
269
269
|
moving: "bg-neutral-100 text-neutral-700",
|
|
270
270
|
active: "bg-neutral-100 text-neutral-700",
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
customer_type_contractor: "bg-customer_type_contractor-100 text-customer_type_contractor-700",
|
|
272
|
+
customer_type_dealer: "bg-customer_type_dealer-100 text-customer_type_dealer-700",
|
|
273
|
+
customer_type_rental: "bg-customer_type_rental-100 text-customer_type_rental-700",
|
|
274
|
+
customer_type_oem: "bg-customer_type_oem-100 text-customer_type_oem-700",
|
|
275
|
+
customer_type_service: "bg-customer_type_service-100 text-customer_type_service-700",
|
|
276
|
+
customer_type_distributor: "bg-customer_type_distributor-100 text-customer_type_distributor-700",
|
|
277
|
+
customer_type_other_customer_type: "bg-customer_type_other_customer_type-100 text-customer_type_other_customer_type-700",
|
|
278
|
+
customer_source_user_defined: "bg-customer_source_user_defined-100 text-customer_source_user_defined-700",
|
|
279
|
+
customer_source_classic_migration: "bg-customer_source_classic_migration-100 text-customer_source_classic_migration-700",
|
|
280
|
+
customer_source_system_defined: "bg-customer_source_system_defined-100 text-customer_source_system_defined-700",
|
|
278
281
|
},
|
|
279
282
|
},
|
|
280
283
|
defaultVariants: {
|
package/index.esm.js
CHANGED
|
@@ -237,13 +237,16 @@ const cvaTag = cvaMerge([
|
|
|
237
237
|
unknown: "bg-unknown-100 text-unknown-700",
|
|
238
238
|
moving: "bg-neutral-100 text-neutral-700",
|
|
239
239
|
active: "bg-neutral-100 text-neutral-700",
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
240
|
+
customer_type_contractor: "bg-customer_type_contractor-100 text-customer_type_contractor-700",
|
|
241
|
+
customer_type_dealer: "bg-customer_type_dealer-100 text-customer_type_dealer-700",
|
|
242
|
+
customer_type_rental: "bg-customer_type_rental-100 text-customer_type_rental-700",
|
|
243
|
+
customer_type_oem: "bg-customer_type_oem-100 text-customer_type_oem-700",
|
|
244
|
+
customer_type_service: "bg-customer_type_service-100 text-customer_type_service-700",
|
|
245
|
+
customer_type_distributor: "bg-customer_type_distributor-100 text-customer_type_distributor-700",
|
|
246
|
+
customer_type_other_customer_type: "bg-customer_type_other_customer_type-100 text-customer_type_other_customer_type-700",
|
|
247
|
+
customer_source_user_defined: "bg-customer_source_user_defined-100 text-customer_source_user_defined-700",
|
|
248
|
+
customer_source_classic_migration: "bg-customer_source_classic_migration-100 text-customer_source_classic_migration-700",
|
|
249
|
+
customer_source_system_defined: "bg-customer_source_system_defined-100 text-customer_source_system_defined-700",
|
|
247
250
|
},
|
|
248
251
|
},
|
|
249
252
|
defaultVariants: {
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
1
|
+
import React, { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
3
|
import { TabListProps } from "../Tabs/TabList";
|
|
4
4
|
import { TagColors } from "../Tag";
|
|
@@ -28,7 +28,7 @@ export interface PageHeaderProps extends CommonProps {
|
|
|
28
28
|
* A RectNode passed into the tag will be rendered as such.
|
|
29
29
|
* A string passed into the tag will render it using the tag component.
|
|
30
30
|
*/
|
|
31
|
-
tag?: string;
|
|
31
|
+
tag?: string | ReactNode;
|
|
32
32
|
/**
|
|
33
33
|
* A theme color value can be used for tag component
|
|
34
34
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ActivityColors, CriticalityColors, CustomerTypeColors, GeneralColors, IntentColors } from "@trackunit/ui-design-tokens";
|
|
1
|
+
import { ActivityColors, CriticalityColors, CustomerDataSourceColors, CustomerTypeColors, GeneralColors, IntentColors } from "@trackunit/ui-design-tokens";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { CommonProps, Size } from "../../common/CommonProps";
|
|
4
4
|
export type TagSize = Extract<Size, "small" | "medium">;
|
|
5
|
-
export type TagColors = IntentColors | GeneralColors | CriticalityColors | ActivityColors | CustomerTypeColors;
|
|
5
|
+
export type TagColors = IntentColors | GeneralColors | CriticalityColors | ActivityColors | CustomerTypeColors | CustomerDataSourceColors;
|
|
6
6
|
export interface TagProps extends CommonProps {
|
|
7
7
|
/**
|
|
8
8
|
* The color of the tag.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const cvaTag: (props?: ({
|
|
2
2
|
size?: "small" | "medium" | null | undefined;
|
|
3
3
|
layout?: "default" | "withIcon" | null | undefined;
|
|
4
|
-
color?: "primary" | "secondary" | "accent" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | "
|
|
4
|
+
color?: "primary" | "secondary" | "accent" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | "customer_type_contractor" | "customer_type_dealer" | "customer_type_rental" | "customer_type_oem" | "customer_type_service" | "customer_type_distributor" | "customer_type_other_customer_type" | "customer_source_user_defined" | "customer_source_classic_migration" | "customer_source_system_defined" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
export declare const cvaTagIconContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
7
7
|
export declare const cvaTagIcon: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|