@trackunit/react-components 1.4.155 → 1.4.156

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
@@ -3955,96 +3955,6 @@ const VirtualizedList = ({ count, rowHeight = 40, pagination, children, classNam
3955
3955
  }) }) }));
3956
3956
  };
3957
3957
 
3958
- const cvaWidgetBodyDensityContainer = cssClassVarianceUtilities.cvaMerge([
3959
- "@container",
3960
- "flex",
3961
- "flex-grow",
3962
- "overflow-auto",
3963
- "w-full",
3964
- "h-dvh",
3965
- "place-items-center",
3966
- "bg-white",
3967
- "overflow-hidden",
3968
- ], {
3969
- variants: {
3970
- disableGap: {
3971
- true: "gap-0",
3972
- false: "",
3973
- },
3974
- direction: {
3975
- row: "flex-row",
3976
- "row-reverse": "flex-row-reverse",
3977
- column: "flex-col",
3978
- "column-reverse": "flex-col-reverse",
3979
- },
3980
- density: {
3981
- none: "",
3982
- dense: "gap-1 p-2",
3983
- compact: "gap-3 p-3",
3984
- comfortable: "gap-4 p-4",
3985
- spacious: "gap-4 p-6",
3986
- auto: "gap-2 p-2",
3987
- },
3988
- },
3989
- defaultVariants: {
3990
- disableGap: false,
3991
- direction: "column",
3992
- density: "auto",
3993
- },
3994
- });
3995
-
3996
- /**
3997
- * The WidgetBody component should be used to inform the user of important information.
3998
- *
3999
- * @summary For applying padding and gap to a Widget.
4000
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
4001
- * @param {WidgetBodyProps} props - The props for the WidgetBody component
4002
- * @returns {ReactElement} WidgetBody component
4003
- */
4004
- const WidgetBody = ({ density = "auto", children, dataTestId, className, disableGap, direction = "column", }) => {
4005
- return (jsxRuntime.jsx("div", { className: cvaWidgetBodyDensityContainer({ density, disableGap, className, direction }), "data-testid": dataTestId, children: children }));
4006
- };
4007
-
4008
- const cvaWidgetEditBodyDensityContainer = cssClassVarianceUtilities.cvaMerge(["min-w-96", "w-96"], {
4009
- variants: {
4010
- disableGap: {
4011
- true: "gap-0",
4012
- false: "",
4013
- },
4014
- direction: {
4015
- row: "flex-row",
4016
- "row-reverse": "flex-row-reverse",
4017
- column: "flex-col",
4018
- "column-reverse": "flex-col-reverse",
4019
- },
4020
- density: {
4021
- none: "",
4022
- dense: "gap-1 p-2",
4023
- compact: "gap-3 p-3",
4024
- comfortable: "gap-4 p-4",
4025
- spacious: "gap-4 p-6",
4026
- auto: "gap-2 p-2",
4027
- },
4028
- },
4029
- defaultVariants: {
4030
- disableGap: false,
4031
- direction: "column",
4032
- density: "auto",
4033
- },
4034
- });
4035
-
4036
- /**
4037
- * The WidgetBody component should be used to inform the user of important information.
4038
- *
4039
- * @summary For applying padding and gap to a Widget.
4040
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
4041
- * @param {WidgetEditBodyProps} props - The props for the WidgetEditBody component
4042
- * @returns {ReactElement} WidgetBody component
4043
- */
4044
- const WidgetEditBody = ({ density = "auto", children, dataTestId, className, disableGap, }) => {
4045
- return (jsxRuntime.jsx("div", { className: cvaWidgetEditBodyDensityContainer({ density, disableGap, className }), "data-testid": dataTestId, children: children }));
4046
- };
4047
-
4048
3958
  const cvaZStackContainer = cssClassVarianceUtilities.cvaMerge(["grid", "grid-cols-1", "grid-rows-1"]);
4049
3959
  const cvaZStackItem = cssClassVarianceUtilities.cvaMerge(["col-start-1", "col-end-1", "row-start-1", "row-end-2"]);
4050
3960
 
@@ -4151,8 +4061,6 @@ exports.ToggleItem = ToggleItem;
4151
4061
  exports.Tooltip = Tooltip;
4152
4062
  exports.ValueBar = ValueBar;
4153
4063
  exports.VirtualizedList = VirtualizedList;
4154
- exports.WidgetBody = WidgetBody;
4155
- exports.WidgetEditBody = WidgetEditBody;
4156
4064
  exports.ZStack = ZStack;
4157
4065
  exports.cvaButton = cvaButton;
4158
4066
  exports.cvaButtonPrefixSuffix = cvaButtonPrefixSuffix;
package/index.esm.js CHANGED
@@ -3953,96 +3953,6 @@ const VirtualizedList = ({ count, rowHeight = 40, pagination, children, classNam
3953
3953
  }) }) }));
3954
3954
  };
3955
3955
 
3956
- const cvaWidgetBodyDensityContainer = cvaMerge([
3957
- "@container",
3958
- "flex",
3959
- "flex-grow",
3960
- "overflow-auto",
3961
- "w-full",
3962
- "h-dvh",
3963
- "place-items-center",
3964
- "bg-white",
3965
- "overflow-hidden",
3966
- ], {
3967
- variants: {
3968
- disableGap: {
3969
- true: "gap-0",
3970
- false: "",
3971
- },
3972
- direction: {
3973
- row: "flex-row",
3974
- "row-reverse": "flex-row-reverse",
3975
- column: "flex-col",
3976
- "column-reverse": "flex-col-reverse",
3977
- },
3978
- density: {
3979
- none: "",
3980
- dense: "gap-1 p-2",
3981
- compact: "gap-3 p-3",
3982
- comfortable: "gap-4 p-4",
3983
- spacious: "gap-4 p-6",
3984
- auto: "gap-2 p-2",
3985
- },
3986
- },
3987
- defaultVariants: {
3988
- disableGap: false,
3989
- direction: "column",
3990
- density: "auto",
3991
- },
3992
- });
3993
-
3994
- /**
3995
- * The WidgetBody component should be used to inform the user of important information.
3996
- *
3997
- * @summary For applying padding and gap to a Widget.
3998
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
3999
- * @param {WidgetBodyProps} props - The props for the WidgetBody component
4000
- * @returns {ReactElement} WidgetBody component
4001
- */
4002
- const WidgetBody = ({ density = "auto", children, dataTestId, className, disableGap, direction = "column", }) => {
4003
- return (jsx("div", { className: cvaWidgetBodyDensityContainer({ density, disableGap, className, direction }), "data-testid": dataTestId, children: children }));
4004
- };
4005
-
4006
- const cvaWidgetEditBodyDensityContainer = cvaMerge(["min-w-96", "w-96"], {
4007
- variants: {
4008
- disableGap: {
4009
- true: "gap-0",
4010
- false: "",
4011
- },
4012
- direction: {
4013
- row: "flex-row",
4014
- "row-reverse": "flex-row-reverse",
4015
- column: "flex-col",
4016
- "column-reverse": "flex-col-reverse",
4017
- },
4018
- density: {
4019
- none: "",
4020
- dense: "gap-1 p-2",
4021
- compact: "gap-3 p-3",
4022
- comfortable: "gap-4 p-4",
4023
- spacious: "gap-4 p-6",
4024
- auto: "gap-2 p-2",
4025
- },
4026
- },
4027
- defaultVariants: {
4028
- disableGap: false,
4029
- direction: "column",
4030
- density: "auto",
4031
- },
4032
- });
4033
-
4034
- /**
4035
- * The WidgetBody component should be used to inform the user of important information.
4036
- *
4037
- * @summary For applying padding and gap to a Widget.
4038
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
4039
- * @param {WidgetEditBodyProps} props - The props for the WidgetEditBody component
4040
- * @returns {ReactElement} WidgetBody component
4041
- */
4042
- const WidgetEditBody = ({ density = "auto", children, dataTestId, className, disableGap, }) => {
4043
- return (jsx("div", { className: cvaWidgetEditBodyDensityContainer({ density, disableGap, className }), "data-testid": dataTestId, children: children }));
4044
- };
4045
-
4046
3956
  const cvaZStackContainer = cvaMerge(["grid", "grid-cols-1", "grid-rows-1"]);
4047
3957
  const cvaZStackItem = cvaMerge(["col-start-1", "col-end-1", "row-start-1", "row-end-2"]);
4048
3958
 
@@ -4089,4 +3999,4 @@ const cvaClickable = cvaMerge([
4089
3999
  },
4090
4000
  });
4091
4001
 
4092
- export { ActionRenderer, Alert, Badge, Breadcrumb, BreadcrumbContainer, Button, Card, CardBody, CardFooter, CardHeader, Collapse, CompletionStatusIndicator, CopyableText, EmptyState, EmptyValue, ExternalLink, Heading, Icon, IconButton, Indicator, KPI, KPICard, MenuDivider, MenuItem, MenuList, MoreMenu, Notice, PackageNameStoryComponent, Page, PageContent, PageHeader, PageHeaderKpiMetrics, PageHeaderSecondaryActions, PageHeaderTitle, Pagination, Polygon, Popover, PopoverContent, PopoverTitle, PopoverTrigger, Portal, Prompt, ROLE_CARD, SectionHeader, Sidebar, SkeletonLines, Spacer, Spinner, StarButton, Tab, TabContent, TabList, Tabs, Tag, Text, ToggleGroup, ToggleItem, Tooltip, ValueBar, VirtualizedList, WidgetBody, WidgetEditBody, ZStack, cvaButton, cvaButtonPrefixSuffix, cvaButtonSpinner, cvaButtonSpinnerContainer, cvaClickable, cvaContainerStyles, cvaIconButton, cvaImgStyles, cvaIndicator, cvaIndicatorIcon, cvaIndicatorIconBackground, cvaIndicatorLabel, cvaIndicatorPing, cvaInteractableItem, cvaMenuItem, cvaMenuItemLabel, cvaMenuItemPrefix, cvaMenuItemStyle, cvaMenuItemSuffix, cvaPageHeader, cvaPageHeaderContainer, cvaPageHeaderHeading, cvaToggleGroup, cvaToggleItem, cvaToggleItemText, cvaVirtualizedList, cvaVirtualizedListContainer, cvaVirtualizedListItem, cvaZStackContainer, cvaZStackItem, docs, getDevicePixelRatio, getValueBarColorByValue, iconColorNames, iconPalette, useClickOutside, useContainerBreakpoints, useContinuousTimeout, useDebounce, useDevicePixelRatio, useElevatedReducer, useElevatedState, useGeometry, useHover, useIsFirstRender, useIsFullscreen, useIsTextTruncated, useModifierKey, useOverflowItems, usePopoverContext, usePrompt, useResize, useScrollDetection, useSelfUpdatingRef, useTimeout, useViewportBreakpoints, useWatch, useWindowActivity };
4002
+ export { ActionRenderer, Alert, Badge, Breadcrumb, BreadcrumbContainer, Button, Card, CardBody, CardFooter, CardHeader, Collapse, CompletionStatusIndicator, CopyableText, EmptyState, EmptyValue, ExternalLink, Heading, Icon, IconButton, Indicator, KPI, KPICard, MenuDivider, MenuItem, MenuList, MoreMenu, Notice, PackageNameStoryComponent, Page, PageContent, PageHeader, PageHeaderKpiMetrics, PageHeaderSecondaryActions, PageHeaderTitle, Pagination, Polygon, Popover, PopoverContent, PopoverTitle, PopoverTrigger, Portal, Prompt, ROLE_CARD, SectionHeader, Sidebar, SkeletonLines, Spacer, Spinner, StarButton, Tab, TabContent, TabList, Tabs, Tag, Text, ToggleGroup, ToggleItem, Tooltip, ValueBar, VirtualizedList, ZStack, cvaButton, cvaButtonPrefixSuffix, cvaButtonSpinner, cvaButtonSpinnerContainer, cvaClickable, cvaContainerStyles, cvaIconButton, cvaImgStyles, cvaIndicator, cvaIndicatorIcon, cvaIndicatorIconBackground, cvaIndicatorLabel, cvaIndicatorPing, cvaInteractableItem, cvaMenuItem, cvaMenuItemLabel, cvaMenuItemPrefix, cvaMenuItemStyle, cvaMenuItemSuffix, cvaPageHeader, cvaPageHeaderContainer, cvaPageHeaderHeading, cvaToggleGroup, cvaToggleItem, cvaToggleItemText, cvaVirtualizedList, cvaVirtualizedListContainer, cvaVirtualizedListItem, cvaZStackContainer, cvaZStackItem, docs, getDevicePixelRatio, getValueBarColorByValue, iconColorNames, iconPalette, useClickOutside, useContainerBreakpoints, useContinuousTimeout, useDebounce, useDevicePixelRatio, useElevatedReducer, useElevatedState, useGeometry, useHover, useIsFirstRender, useIsFullscreen, useIsTextTruncated, useModifierKey, useOverflowItems, usePopoverContext, usePrompt, useResize, useScrollDetection, useSelfUpdatingRef, useTimeout, useViewportBreakpoints, useWatch, useWindowActivity };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.4.155",
3
+ "version": "1.4.156",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -43,6 +43,5 @@ export * from "./Tooltip";
43
43
  export * from "./ValueBar";
44
44
  export * from "./VirtualizedList/VirtualizedList";
45
45
  export * from "./VirtualizedList/VirtualizedList.variants";
46
- export * from "./Widget";
47
46
  export * from "./ZStack/ZStack";
48
47
  export * from "./ZStack/ZStack.variants";
@@ -1,29 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { CommonProps, Density } from "../../common";
3
- export interface WidgetBodyProps extends CommonProps {
4
- /**
5
- * Sets gap, padding and margin.
6
- */
7
- density?: Density;
8
- /**
9
- * Set gap to be 0px (not preferable)
10
- */
11
- disableGap?: boolean;
12
- /**
13
- * Child elements to render in the body
14
- */
15
- children: ReactNode | null;
16
- /**
17
- * Direction of the body
18
- */
19
- direction?: "row" | "column";
20
- }
21
- /**
22
- * The WidgetBody component should be used to inform the user of important information.
23
- *
24
- * @summary For applying padding and gap to a Widget.
25
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
26
- * @param {WidgetBodyProps} props - The props for the WidgetBody component
27
- * @returns {ReactElement} WidgetBody component
28
- */
29
- export declare const WidgetBody: ({ density, children, dataTestId, className, disableGap, direction, }: WidgetBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const cvaWidgetBodyDensityContainer: (props?: ({
2
- disableGap?: boolean | null | undefined;
3
- direction?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
4
- density?: "none" | "dense" | "compact" | "comfortable" | "spacious" | "auto" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,25 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { CommonProps, Density } from "../../common";
3
- export interface WidgetEditBodyProps extends CommonProps {
4
- /**
5
- * Sets gap, padding and margin.
6
- */
7
- density?: Density;
8
- /**
9
- * Set gap to be 0px (not preferable)
10
- */
11
- disableGap?: boolean;
12
- /**
13
- * Child elements to render in the body
14
- */
15
- children: ReactNode | null;
16
- }
17
- /**
18
- * The WidgetBody component should be used to inform the user of important information.
19
- *
20
- * @summary For applying padding and gap to a Widget.
21
- * @description The padding must live here, and not on the Widget itself, as to not inset the scrollbar in case of overflow
22
- * @param {WidgetEditBodyProps} props - The props for the WidgetEditBody component
23
- * @returns {ReactElement} WidgetBody component
24
- */
25
- export declare const WidgetEditBody: ({ density, children, dataTestId, className, disableGap, }: WidgetEditBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const cvaWidgetEditBodyDensityContainer: (props?: ({
2
- disableGap?: boolean | null | undefined;
3
- direction?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
4
- density?: "none" | "dense" | "compact" | "comfortable" | "spacious" | "auto" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,2 +0,0 @@
1
- export * from "./WidgetBody";
2
- export * from "./WidgetEditBody";