@trackunit/react-components 1.23.11 → 1.24.1

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
@@ -9787,7 +9787,7 @@ const useOverflowItems = ({ threshold = 1, childUniqueIdentifierAttribute = "id"
9787
9787
  * **Important:** The Sidebar is just a layout wrapper. You are responsible for styling the children.
9788
9788
  * For the overflow functionality, use `min-w-[*]` or `flex-shrink-0` on child elements.
9789
9789
  *
9790
- * When testing, add `setupIntersectionObserver();` to your `jest.setup.ts` file.
9790
+ * When testing, add `setupIntersectionObserver();` to your `vitest.setup.ts` file.
9791
9791
  *
9792
9792
  * ### When to use
9793
9793
  * Use Sidebar for secondary in-page navigation (e.g., switching between views within a page). Works well with `Tabs` for page-level navigation.
package/index.esm.js CHANGED
@@ -9785,7 +9785,7 @@ const useOverflowItems = ({ threshold = 1, childUniqueIdentifierAttribute = "id"
9785
9785
  * **Important:** The Sidebar is just a layout wrapper. You are responsible for styling the children.
9786
9786
  * For the overflow functionality, use `min-w-[*]` or `flex-shrink-0` on child elements.
9787
9787
  *
9788
- * When testing, add `setupIntersectionObserver();` to your `jest.setup.ts` file.
9788
+ * When testing, add `setupIntersectionObserver();` to your `vitest.setup.ts` file.
9789
9789
  *
9790
9790
  * ### When to use
9791
9791
  * Use Sidebar for secondary in-page navigation (e.g., switching between views within a page). Works well with `Tabs` for page-level navigation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.23.11",
3
+ "version": "1.24.1",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "migrations": "./migrations.json",
@@ -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.12.8",
18
- "@trackunit/css-class-variance-utilities": "1.12.8",
19
- "@trackunit/shared-utils": "1.14.9",
20
- "@trackunit/ui-icons": "1.12.9",
17
+ "@trackunit/ui-design-tokens": "1.13.1",
18
+ "@trackunit/css-class-variance-utilities": "1.13.1",
19
+ "@trackunit/shared-utils": "1.15.1",
20
+ "@trackunit/ui-icons": "1.13.1",
21
21
  "es-toolkit": "^1.39.10",
22
22
  "@tanstack/react-virtual": "3.13.12",
23
23
  "dequal": "^2.0.3",
@@ -1,5 +1,5 @@
1
1
  export declare const cvaAlert: (props?: ({
2
- color?: "danger" | "warning" | "success" | "info" | "neutral" | null | undefined;
2
+ color?: "neutral" | "info" | "success" | "warning" | "danger" | null | undefined;
3
3
  actionsInline?: boolean | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const cvaAlertActionsContainer: (props?: ({
@@ -1,5 +1,5 @@
1
1
  export declare const cvaBadge: (props?: ({
2
- color?: "primary" | "danger" | "warning" | "neutral" | null | undefined;
2
+ color?: "primary" | "neutral" | "warning" | "danger" | null | undefined;
3
3
  compact?: boolean | null | undefined;
4
4
  size?: "default" | "condensed" | null | undefined;
5
5
  isSingleChar?: boolean | null | undefined;
@@ -4,17 +4,17 @@ export declare const cvaCard: (props?: ({
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const cvaCardFooterContainerRoot: (props?: ({
6
6
  border?: "default" | "borderless" | null | undefined;
7
- padding?: "default" | "none" | null | undefined;
7
+ padding?: "none" | "default" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export declare const cvaCardFooterContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
10
  export declare const cvaCardHeader: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
11
  export declare const cvaCardHeaderHeadingContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
12
12
  export declare const cvaCardHeaderContainer: (props?: ({
13
13
  border?: "default" | "borderless" | null | undefined;
14
- padding?: "default" | "none" | null | undefined;
14
+ padding?: "none" | "default" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
16
  export declare const cvaCardBodyContainer: (props?: ({
17
- direction?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
18
- padding?: "default" | "none" | null | undefined;
19
- gap?: "default" | "none" | null | undefined;
17
+ direction?: "column" | "column-reverse" | "row" | "row-reverse" | null | undefined;
18
+ padding?: "none" | "default" | null | undefined;
19
+ gap?: "none" | "default" | null | undefined;
20
20
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const cvaHighlight: (props?: ({
2
2
  size?: "small" | "medium" | null | undefined;
3
- color?: "info" | "success" | "warning" | "danger" | "unknown" | "clear" | null | undefined;
3
+ color?: "clear" | "info" | "success" | "warning" | "danger" | "unknown" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const cvaHighlightText: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -242,7 +242,7 @@ export declare const iconPalette: {
242
242
  readonly 900: "127 29 29";
243
243
  };
244
244
  };
245
- 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")[];
245
+ export declare const iconColorNames: ("black" | "white" | "active" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "excessive_usage" | "stopped" | "unknown" | "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")[];
246
246
  type IconPropsSmall = {
247
247
  size?: "small";
248
248
  type?: "solid";
@@ -1,5 +1,5 @@
1
1
  export declare const cvaIcon: (props?: ({
2
- color?: "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "active" | "excessive_usage" | "stopped" | "unknown" | "default" | "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?: "black" | "white" | "default" | "active" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "excessive_usage" | "stopped" | "unknown" | "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/types").ClassProp) | undefined) => string;
@@ -3,12 +3,12 @@ export declare const cvaIndicatorIcon: (props?: import("class-variance-authority
3
3
  export declare const cvaIndicatorLabel: (props?: ({
4
4
  size?: "small" | "medium" | null | undefined;
5
5
  weight?: "medium" | "normal" | null | undefined;
6
- background?: "visible" | "hidden" | null | undefined;
6
+ background?: "hidden" | "visible" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export declare const cvaIndicatorPing: (props?: ({
9
- color?: "primary" | "secondary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "stopped" | "moving" | "active" | "excessive_usage" | "unknown" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "available" | "on_rent" | "pickup_ready" | "transfer" | "in_repair" | "returned" | "other_rental_status" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "white" | "black" | null | undefined;
9
+ color?: "black" | "white" | "active" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "excessive_usage" | "stopped" | "unknown" | "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" | "secondary" | null | undefined;
10
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
11
  export declare const cvaIndicatorIconBackground: (props?: ({
12
- color?: "primary" | "secondary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "stopped" | "moving" | "active" | "excessive_usage" | "unknown" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "available" | "on_rent" | "pickup_ready" | "transfer" | "in_repair" | "returned" | "other_rental_status" | "site_area" | "site_classic_poi" | "site_classic_zone" | "site_depot" | "site_work_place" | "site_construction_site" | "site_unknown" | "white" | "black" | null | undefined;
13
- background?: "visible" | "hidden" | null | undefined;
12
+ color?: "black" | "white" | "active" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "excessive_usage" | "stopped" | "unknown" | "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" | "secondary" | null | undefined;
13
+ background?: "hidden" | "visible" | null | undefined;
14
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -13,7 +13,7 @@
13
13
  * @returns tailwind class names on the basis on the provided props.
14
14
  */
15
15
  export declare const cvaInteractableItem: (props?: ({
16
- cursor?: "pointer" | "auto" | "help" | "zoom-in" | "zoom-out" | "default" | "not-allowed" | null | undefined;
16
+ cursor?: "auto" | "default" | "help" | "not-allowed" | "pointer" | "zoom-in" | "zoom-out" | null | undefined;
17
17
  selection?: "auto" | "selected" | "unselected" | null | undefined;
18
18
  disabled?: boolean | null | undefined;
19
19
  focus?: "auto" | "focused" | "unfocused" | null | undefined;
@@ -1,6 +1,6 @@
1
1
  export declare const cvaKPI: (props?: ({
2
- variant?: "small" | "condensed" | "default" | null | undefined;
2
+ variant?: "small" | "default" | "condensed" | null | undefined;
3
3
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
4
  export declare const cvaKPITrendPercentage: (props?: ({
5
- color?: "success" | "danger" | "warning" | "neutral" | "info" | null | undefined;
5
+ color?: "neutral" | "info" | "success" | "warning" | "danger" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -5,5 +5,5 @@ export declare const cvaKPICard: (props?: ({
5
5
  export declare const cvaKPICardBody: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
6
  export declare const cvaKPICardHeader: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
7
7
  export declare const cvaKPIIconContainer: (props?: ({
8
- iconColor?: "success" | "warning" | "danger" | "info" | "neutral" | null | undefined;
8
+ iconColor?: "neutral" | "info" | "success" | "warning" | "danger" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -3,6 +3,6 @@ export declare const cvaListContainer: (props?: ({
3
3
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
4
  export declare const cvaList: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
5
  export declare const cvaListItem: (props?: ({
6
- separator?: "line" | "none" | null | undefined;
6
+ separator?: "none" | "line" | null | undefined;
7
7
  contentFillsContainer?: boolean | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const cvaPage: (props?: ({
2
- layout?: "content" | "header-content" | "sidebar-content" | "none" | null | undefined;
2
+ layout?: "none" | "content" | "header-content" | "sidebar-content" | null | undefined;
3
3
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
4
  export declare const cvaPageContent: (props?: ({
5
5
  layout?: "content" | "cols-min-fr" | "rows-min-fr" | null | undefined;
@@ -28,8 +28,8 @@ export declare const cvaSheetContainer: (props?: ({
28
28
  * directly on the element for immediate visual feedback, then restores on release.
29
29
  */
30
30
  export declare const cvaSheetPanel: (props?: ({
31
- anchor?: "center" | "start" | "end" | null | undefined;
32
- variant?: "default" | "modal" | "floating" | null | undefined;
31
+ anchor?: "center" | "end" | "start" | null | undefined;
32
+ variant?: "default" | "floating" | "modal" | null | undefined;
33
33
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
34
34
  /**
35
35
  * Scrollable area below the drag handle. Nested inside the Sheet panel (Card)
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, MouseEventHandler, ReactElement } from "react";
2
2
  import { CommonProps } from "../../common/CommonProps";
3
- import type { Styleable } from "../../common/Styleable";
4
3
  import { Refable } from "../../common/Refable";
4
+ import type { Styleable } from "../../common/Styleable";
5
5
  import { MenuList } from "../Menu/MenuList/MenuList";
6
6
  import { MoreMenu } from "../Menu/MoreMenu/MoreMenu";
7
7
  export interface SidebarItemProps extends CommonProps, Styleable {
@@ -53,7 +53,7 @@ export interface SidebarProps extends CommonProps, Styleable, Refable<HTMLDivEle
53
53
  * **Important:** The Sidebar is just a layout wrapper. You are responsible for styling the children.
54
54
  * For the overflow functionality, use `min-w-[*]` or `flex-shrink-0` on child elements.
55
55
  *
56
- * When testing, add `setupIntersectionObserver();` to your `jest.setup.ts` file.
56
+ * When testing, add `setupIntersectionObserver();` to your `vitest.setup.ts` file.
57
57
  *
58
58
  * ### When to use
59
59
  * Use Sidebar for secondary in-page navigation (e.g., switching between views within a page). Works well with `Tabs` for page-level navigation.
@@ -1,4 +1,4 @@
1
1
  export declare const cvaSidebar: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
2
  export declare const cvaSidebarChildContainer: (props?: ({
3
- breakpoint?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
3
+ breakpoint?: "sm" | "xs" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -5,9 +5,9 @@
5
5
  export declare const TAG_TEXT_MIN_WIDTH_CLASS = "min-w-[80px]";
6
6
  export declare const cvaTag: (props?: ({
7
7
  size?: "small" | "medium" | null | undefined;
8
- layout?: "containsDismiss" | "containsIcon" | "default" | null | undefined;
9
- color?: "primary" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | "excessive_usage" | null | undefined;
10
- border?: "default" | "none" | null | undefined;
8
+ layout?: "default" | "containsDismiss" | "containsIcon" | null | undefined;
9
+ color?: "black" | "white" | "active" | "primary" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "excessive_usage" | "stopped" | "unknown" | null | undefined;
10
+ border?: "none" | "default" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  export declare const cvaTagText: (props?: ({
13
13
  truncate?: boolean | null | undefined;
@@ -1,9 +1,9 @@
1
1
  export declare const cvaText: (props?: ({
2
- align?: "left" | "right" | "center" | null | undefined;
2
+ align?: "center" | "left" | "right" | null | undefined;
3
3
  italic?: boolean | null | undefined;
4
4
  uppercase?: boolean | null | undefined;
5
5
  underline?: boolean | null | undefined;
6
- weight?: "normal" | "bold" | "thick" | null | undefined;
6
+ weight?: "normal" | "thick" | "bold" | null | undefined;
7
7
  size?: "small" | "medium" | "large" | null | undefined;
8
8
  inverted?: boolean | null | undefined;
9
9
  subtle?: boolean | null | undefined;
@@ -1,12 +1,12 @@
1
1
  export declare const cvaTooltipIcon: (props?: ({
2
- color?: "light" | "dark" | null | undefined;
2
+ color?: "dark" | "light" | null | undefined;
3
3
  defaultVariants?: "color" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const cvaTooltipPopover: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
6
  export declare const cvaTooltipPopoverTail: (props?: ({
7
- placement?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | null | undefined;
8
- mode?: "light" | "dark" | null | undefined;
7
+ placement?: "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | null | undefined;
8
+ mode?: "dark" | "light" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export declare const cvaTooltipPopoverContent: (props?: ({
11
- color?: "light" | "dark" | null | undefined;
11
+ color?: "dark" | "light" | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const cvaSegmentedValueBar: (props?: ({
2
- size?: "extraSmall" | "small" | "large" | null | undefined;
2
+ size?: "small" | "large" | "extraSmall" | null | undefined;
3
3
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
4
  export declare const cvaSegmentedValueBarText: (props?: ({
5
5
  size?: "small" | "large" | null | undefined;
@@ -1,3 +1,3 @@
1
1
  export declare const cvaValueBar: (props?: ({
2
- size?: "extraSmall" | "small" | "large" | null | undefined;
2
+ size?: "small" | "large" | "extraSmall" | null | undefined;
3
3
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const cvaButton: (props?: ({
2
- variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
2
+ variant?: "filled" | "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
3
3
  size?: "small" | "medium" | "large" | null | undefined;
4
4
  fullWidth?: boolean | null | undefined;
5
5
  square?: boolean | null | undefined;
@@ -8,11 +8,11 @@ export declare const cvaButton: (props?: ({
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export declare const cvaButtonSpinnerContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
10
  export declare const cvaButtonSpinner: (props?: ({
11
- variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
11
+ variant?: "filled" | "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
13
  export declare const cvaButtonPrefixSuffix: (props?: ({
14
14
  size?: "small" | "medium" | "large" | "extraSmall" | null | undefined;
15
- variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
15
+ variant?: "filled" | "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
16
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
17
  export declare const cvaIconButton: (props?: ({
18
18
  size?: "small" | "medium" | "large" | null | undefined;