@trackunit/react-components 0.1.201 → 0.1.202

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
@@ -1221,7 +1221,6 @@ const usePopoverContext = () => {
1221
1221
  *
1222
1222
  * To render the content of the popover, use the `<PopoverContent />` component.
1223
1223
  *
1224
-
1225
1224
  * @param {PopoverProps} props The props for the popover
1226
1225
  * @returns {JSX.Element} A Popover Context Provider containing the children
1227
1226
  */
@@ -1414,7 +1413,6 @@ var WorkerWithSign = "8df3d27593b5fba4.svg";
1414
1413
  * Component representing an empty state.
1415
1414
  * Use this component when there is no data to display or when an error occurs.
1416
1415
  *
1417
-
1418
1416
  * @param {EmptyStateProps} props props
1419
1417
  * @returns {JSX.Element} component
1420
1418
  * @example
package/index.esm.js CHANGED
@@ -1192,7 +1192,6 @@ const usePopoverContext = () => {
1192
1192
  *
1193
1193
  * To render the content of the popover, use the `<PopoverContent />` component.
1194
1194
  *
1195
-
1196
1195
  * @param {PopoverProps} props The props for the popover
1197
1196
  * @returns {JSX.Element} A Popover Context Provider containing the children
1198
1197
  */
@@ -1385,7 +1384,6 @@ var WorkerWithSign = "8df3d27593b5fba4.svg";
1385
1384
  * Component representing an empty state.
1386
1385
  * Use this component when there is no data to display or when an error occurs.
1387
1386
  *
1388
-
1389
1387
  * @param {EmptyStateProps} props props
1390
1388
  * @returns {JSX.Element} component
1391
1389
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.201",
3
+ "version": "0.1.202",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,15 +11,15 @@
11
11
  "react": "^18.2.0",
12
12
  "@trackunit/css-class-variance-utilities": "*",
13
13
  "react-use": "^17.4.0",
14
- "react-day-picker": "^8.7.1",
15
- "date-fns": "^2.29.3",
16
- "@floating-ui/react": "^0.25.4",
14
+ "react-day-picker": "^8.9.1",
15
+ "date-fns": "^2.30.0",
16
+ "@floating-ui/react": "^0.26.2",
17
17
  "@trackunit/ui-icons": "*",
18
18
  "@trackunit/shared-utils": "*",
19
19
  "react-useportal": "1.0.18",
20
- "react-router-dom": "6.11.2",
20
+ "react-router-dom": "6.18.0",
21
21
  "react-helmet-async": "^1.3.0",
22
- "zod": "3.22.3",
22
+ "zod": "3.22.4",
23
23
  "lodash": "4.17.21",
24
24
  "jest-fetch-mock": "^3.0.3",
25
25
  "@testing-library/react": "14.0.0"
@@ -14,7 +14,6 @@ export interface EmptyStateProps extends CommonProps {
14
14
  * Component representing an empty state.
15
15
  * Use this component when there is no data to display or when an error occurs.
16
16
  *
17
-
18
17
  * @param {EmptyStateProps} props props
19
18
  * @returns {JSX.Element} component
20
19
  * @example
@@ -1,5 +1,5 @@
1
1
  export declare const cvaIcon: (props?: ({
2
- color?: "primary" | "secondary" | "accent" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "active" | "stopped" | "unknown" | "default" | "black" | "white" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status" | null | undefined;
2
+ color?: "default" | "primary" | "secondary" | "accent" | "neutral" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "idle" | "moving" | "active" | "stopped" | "unknown" | "black" | "white" | "unused" | "utilized" | "heavily_utilized" | "unknown_utilization" | "site" | "on_rent" | "returned" | "available" | "pickup_ready" | "transfer" | "in_repair" | "other_rental_status" | null | undefined;
3
3
  size?: "small" | "medium" | "large" | "font" | null | undefined;
4
4
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
5
  export declare const cvaIconComponent: (props?: ({
@@ -33,20 +33,20 @@ export interface MenuItemProps extends CommonProps {
33
33
  * An boolean flag to turn on/off selected state
34
34
  * This is typically used highlight that item is selected
35
35
  *
36
- * @memberof IMenuItemProps
36
+ * @memberof MenuItemProps
37
37
  */
38
38
  selected?: boolean;
39
39
  /**
40
40
  * OnClick event handler it is thrown on root element of the component tree
41
41
  *
42
- * @memberof IMenuItemProps
42
+ * @memberof MenuItemProps
43
43
  */
44
44
  onClick?: React.MouseEventHandler<HTMLDivElement>;
45
45
  /**
46
46
  * An boolean flag to turn on/off focused state
47
47
  * This is typically used for keyboard navigation
48
48
  *
49
- * @memberof IMenuItemProps
49
+ * @memberof MenuItemProps
50
50
  */
51
51
  focused?: boolean;
52
52
  /**
@@ -47,7 +47,7 @@ export declare const usePopoverContext: () => {
47
47
  update: () => void;
48
48
  floatingStyles: import("react").CSSProperties;
49
49
  open: boolean;
50
- onOpenChange: (open: boolean, event?: Event | undefined) => void;
50
+ onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
51
51
  events: import("@floating-ui/react").FloatingEvents;
52
52
  dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
53
53
  nodeId: string | undefined;
@@ -68,7 +68,6 @@ export declare const usePopoverContext: () => {
68
68
  *
69
69
  * To render the content of the popover, use the `<PopoverContent />` component.
70
70
  *
71
-
72
71
  * @param {PopoverProps} props The props for the popover
73
72
  * @returns {JSX.Element} A Popover Context Provider containing the children
74
73
  */
@@ -48,7 +48,7 @@ export declare const usePopover: ({ initialOpen, placement, isModal, isOpen: con
48
48
  update: () => void;
49
49
  floatingStyles: import("react").CSSProperties;
50
50
  open: boolean;
51
- onOpenChange: (open: boolean, event?: Event | undefined) => void;
51
+ onOpenChange: (open: boolean, event?: Event | undefined, reason?: import("@floating-ui/react").OpenChangeReason | undefined) => void;
52
52
  events: import("@floating-ui/react").FloatingEvents;
53
53
  dataRef: import("react").MutableRefObject<import("@floating-ui/react").ContextData>;
54
54
  nodeId: string | undefined;
@@ -1,6 +1,6 @@
1
1
  export declare const cvaTag: (props?: ({
2
2
  size?: "small" | "medium" | null | undefined;
3
- layout?: "withIcon" | "default" | null | undefined;
3
+ layout?: "default" | "withIcon" | null | undefined;
4
4
  color?: "primary" | "secondary" | "accent" | "neutral" | "black" | "white" | "info" | "success" | "warning" | "danger" | "good" | "low" | "critical" | "working" | "stopped" | "idle" | "unknown" | "moving" | "active" | 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;