@trackunit/react-components 1.22.3 → 1.22.6
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 +166 -132
- package/index.esm.js +167 -133
- package/package.json +5 -5
- package/src/common/Styleable.d.ts +5 -1
- package/src/components/Alert/Alert.d.ts +3 -2
- package/src/components/Badge/Badge.d.ts +3 -2
- package/src/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbForLargeScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbForMediumScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbForSmallScreen.d.ts +1 -1
- package/src/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/src/components/Breadcrumb/utils/types.d.ts +4 -3
- package/src/components/Card/Card.d.ts +2 -1
- package/src/components/Card/CardBody.d.ts +3 -2
- package/src/components/Card/CardFooter.d.ts +3 -2
- package/src/components/Card/CardHeader.d.ts +3 -2
- package/src/components/Collapse/Collapse.d.ts +3 -2
- package/src/components/CompletionStatusIndicator/CompletionStatusIndicator.d.ts +2 -1
- package/src/components/CopyableText/CopyableText.d.ts +3 -2
- package/src/components/DetailsList/DetailsList.d.ts +4 -3
- package/src/components/EmptyState/EmptyState.d.ts +3 -2
- package/src/components/EmptyValue/EmptyValue.d.ts +3 -2
- package/src/components/ExternalLink/ExternalLink.d.ts +3 -2
- package/src/components/GridAreas/GridAreas.d.ts +3 -2
- package/src/components/Heading/Heading.d.ts +2 -1
- package/src/components/Highlight/Highlight.d.ts +3 -2
- package/src/components/HorizontalOverflowScroller/HorizontalOverflowScroller.d.ts +2 -2
- package/src/components/HorizontalOverflowScroller/OverflowIndicator.d.ts +3 -2
- package/src/components/Icon/Icon.d.ts +3 -8
- package/src/components/Indicator/Indicator.d.ts +2 -1
- package/src/components/KPI/KPI.d.ts +1 -1
- package/src/components/KPI/KPISkeleton.d.ts +1 -1
- package/src/components/KPICard/KPICardSkeleton.d.ts +1 -1
- package/src/components/KPICard/components/TrendIndicator/TrendIndicator.d.ts +3 -2
- package/src/components/KPICard/components/TrendIndicators.d.ts +3 -2
- package/src/components/List/List.d.ts +3 -2
- package/src/components/List/ListLoadingIndicator.d.ts +3 -2
- package/src/components/List/useList.d.ts +2 -1
- package/src/components/ListItem/ListItem.d.ts +2 -1
- package/src/components/ListItem/ListItemSkeleton.d.ts +4 -2
- package/src/components/Menu/MenuDivider/MenuDivider.d.ts +3 -1
- package/src/components/Menu/MenuItem/MenuItem.d.ts +3 -2
- package/src/components/Menu/MenuList/MenuList.d.ts +3 -2
- package/src/components/Menu/MoreMenu/MoreMenu.d.ts +3 -2
- package/src/components/Notice/Notice.d.ts +2 -1
- package/src/components/Page/Page.d.ts +3 -2
- package/src/components/Page/PageContent.d.ts +3 -2
- package/src/components/PageHeader/PageHeader.d.ts +1 -1
- package/src/components/PageHeader/components/PageHeaderKpiMetrics.d.ts +7 -2
- package/src/components/PageHeader/components/PageHeaderTitle.d.ts +4 -2
- package/src/components/PageHeader/types.d.ts +3 -2
- package/src/components/Pagination/Pagination.d.ts +4 -10
- package/src/components/Polygon/Polygon.d.ts +3 -2
- package/src/components/Popover/PopoverTitle.d.ts +3 -2
- package/src/components/PreferenceCard/PreferenceCard.d.ts +3 -2
- package/src/components/PreferenceCard/PreferenceCardSkeleton.d.ts +4 -2
- package/src/components/SectionHeader/SectionHeader.d.ts +3 -2
- package/src/components/Sheet/Sheet.d.ts +1 -1
- package/src/components/Sheet/sheet-types.d.ts +2 -1
- package/src/components/Sidebar/Sidebar.d.ts +4 -3
- package/src/components/Skeleton/SkeletonBlock/SkeletonBlock.d.ts +2 -1
- package/src/components/Skeleton/SkeletonLabel/SkeletonLabel.d.ts +2 -1
- package/src/components/SkeletonLines/SkeletonLines.d.ts +4 -3
- package/src/components/Spacer/Spacer.d.ts +3 -2
- package/src/components/Spinner/Spinner.d.ts +3 -2
- package/src/components/Tag/Tag.d.ts +3 -2
- package/src/components/Text/Text.d.ts +2 -1
- package/src/components/ToggleGroup/ToggleGroup.d.ts +5 -4
- package/src/components/Tooltip/Tooltip.d.ts +1 -1
- package/src/components/ValueBar/SegmentedValueBar.d.ts +3 -2
- package/src/components/ValueBar/ValueBar.d.ts +3 -2
- package/src/components/ZStack/ZStack.d.ts +3 -2
- package/src/components/buttons/shared/ButtonProps.d.ts +2 -1
- package/src/index.d.ts +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
+
import type { Styleable } from "../../common/Styleable";
|
|
3
4
|
import { Refable } from "../../common/Refable";
|
|
4
5
|
import { Size } from "../../common/Size";
|
|
5
6
|
import { LevelColors } from "./ValueBarTypes";
|
|
6
7
|
type ValueBarSize = Extract<Size, "small" | "large"> | "extraSmall";
|
|
7
|
-
export interface ValueBarProps extends CommonProps, Refable<HTMLSpanElement> {
|
|
8
|
+
export interface ValueBarProps extends CommonProps, Styleable, Refable<HTMLSpanElement> {
|
|
8
9
|
/**
|
|
9
10
|
* Value to display.
|
|
10
11
|
*/
|
|
@@ -86,5 +87,5 @@ export interface ValueBarProps extends CommonProps, Refable<HTMLSpanElement> {
|
|
|
86
87
|
* @param {ValueBarProps} props - The props for the ValueBar component
|
|
87
88
|
* @returns {ReactElement} ValueBar component
|
|
88
89
|
*/
|
|
89
|
-
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, "data-testid": dataTestId, zeroScoreAllowed, ref, }: ValueBarProps) => ReactElement;
|
|
90
|
+
export declare const ValueBar: ({ value, min, max, unit, size, levelColors, valueColor, showValue, className, "data-testid": dataTestId, zeroScoreAllowed, style, ref, }: ValueBarProps) => ReactElement;
|
|
90
91
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
3
|
import { Refable } from "../../common/Refable";
|
|
4
|
-
|
|
4
|
+
import type { Styleable } from "../../common/Styleable";
|
|
5
|
+
export type ZStackProps = CommonProps & Styleable & Refable<HTMLDivElement> & {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
@@ -30,4 +31,4 @@ export type ZStackProps = CommonProps & Refable<HTMLDivElement> & {
|
|
|
30
31
|
* @param {ZStackProps} props - The props for the ZStack component
|
|
31
32
|
* @returns {ReactElement} ZStack component
|
|
32
33
|
*/
|
|
33
|
-
export declare const ZStack: ({ children, className, "data-testid": dataTestId, ref }: ZStackProps) => ReactElement;
|
|
34
|
+
export declare const ZStack: ({ children, className, "data-testid": dataTestId, style, ref }: ZStackProps) => ReactElement;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { MouseEventHandler } from "react";
|
|
2
2
|
import { CommonProps } from "../../../common/CommonProps";
|
|
3
|
+
import type { Styleable } from "../../../common/Styleable";
|
|
3
4
|
import { Size } from "../../../common/Size";
|
|
4
5
|
export type ButtonVariant = "primary" | "secondary" | "primary-danger" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled";
|
|
5
6
|
export type ButtonType = "button" | "submit";
|
|
6
|
-
export interface ButtonCommonProps extends CommonProps {
|
|
7
|
+
export interface ButtonCommonProps extends CommonProps, Styleable {
|
|
7
8
|
/**
|
|
8
9
|
* An onClick handler
|
|
9
10
|
*/
|
package/src/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from "./common/PackageNameStoryComponent";
|
|
|
5
5
|
export * from "./common/Refable";
|
|
6
6
|
export * from "./common/Size";
|
|
7
7
|
export * from "./common/StorybookProps";
|
|
8
|
-
export
|
|
8
|
+
export type { Styleable } from "./common/Styleable";
|
|
9
9
|
export * from "./components/Alert/Alert";
|
|
10
10
|
export * from "./components/Badge/Badge";
|
|
11
11
|
export * from "./components/Breadcrumb/Breadcrumb";
|