@juspay/blend-design-system 0.0.32 → 0.0.33-beta
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/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Alert/alert.tokens.d.ts +2 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/types.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/AvatarGroup/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/ButtonV2/ButtonGroupV2/ButtonGroupV2.d.ts +4 -0
- package/dist/components/ButtonV2/ButtonGroupV2/buttonGroupV2.types.d.ts +10 -0
- package/dist/components/ButtonV2/ButtonGroupV2/index.d.ts +3 -0
- package/dist/components/ButtonV2/ButtonGroupV2/utils.d.ts +3 -0
- package/dist/components/ButtonV2/ButtonV2.d.ts +24 -0
- package/dist/components/ButtonV2/IconButton.d.ts +7 -0
- package/dist/components/ButtonV2/LinkButton.d.ts +7 -0
- package/dist/components/ButtonV2/VisuallyHidden.d.ts +1 -0
- package/dist/components/ButtonV2/buttonV2.dark.tokens.d.ts +3 -0
- package/dist/components/ButtonV2/buttonV2.light.tokens.d.ts +3 -0
- package/dist/components/ButtonV2/buttonV2.tokens.d.ts +67 -0
- package/dist/components/ButtonV2/buttonV2.types.d.ts +64 -0
- package/dist/components/ButtonV2/index.d.ts +8 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Charts/CustomTooltip.d.ts +3 -1
- package/dist/components/Charts/index.d.ts +1 -0
- package/dist/components/Charts/utils.d.ts +12 -0
- package/dist/components/ChatInput/index.d.ts +1 -0
- package/dist/components/DataTable/index.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts +1 -0
- package/dist/components/Directory/index.d.ts +1 -0
- package/dist/components/Inputs/AutofillStyles/AutofillStyles.d.ts +1 -0
- package/dist/components/Inputs/DropdownInput/index.d.ts +1 -0
- package/dist/components/Inputs/MultiValueInput/MultiValueInput.d.ts +1 -1
- package/dist/components/Inputs/MultiValueInput/index.d.ts +1 -0
- package/dist/components/Inputs/MultiValueInput/types.d.ts +2 -0
- package/dist/components/Inputs/NumberInput/index.d.ts +1 -0
- package/dist/components/Inputs/OTPInput/index.d.ts +1 -0
- package/dist/components/Inputs/SearchInput/index.d.ts +1 -0
- package/dist/components/Inputs/TextInput/index.d.ts +1 -0
- package/dist/components/Inputs/UnitInput/index.d.ts +1 -0
- package/dist/components/KeyValuePair/index.d.ts +1 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Menu/types.d.ts +10 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -0
- package/dist/components/MultiSelect/types.d.ts +1 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Primitives/Block/Block.d.ts +2 -0
- package/dist/components/Primitives/Group/Group.d.ts +4 -0
- package/dist/components/Primitives/Group/index.d.ts +3 -0
- package/dist/components/Primitives/Group/types.d.ts +81 -0
- package/dist/components/Primitives/Group/utils.d.ts +35 -0
- package/dist/components/Primitives/PrimitiveButton/PrimitiveButton.d.ts +4 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/SingleSelect/index.d.ts +1 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/StatCard/StatCard.d.ts +1 -1
- package/dist/components/StatCard/index.d.ts +1 -0
- package/dist/components/StatCard/types.d.ts +3 -2
- package/dist/components/StatCard/utils.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/TabsList.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/types.d.ts +2 -2
- package/dist/components/TagGroupV2/TagGroupV2.d.ts +4 -0
- package/dist/components/TagGroupV2/TagGroupV2.types.d.ts +8 -0
- package/dist/components/TagGroupV2/index.d.ts +2 -0
- package/dist/components/TagV2/TagSkeleton.d.ts +15 -0
- package/dist/components/TagV2/TagV2.d.ts +22 -0
- package/dist/components/TagV2/TagV2.types.d.ts +46 -0
- package/dist/components/TagV2/index.d.ts +2 -0
- package/dist/components/TagV2/tagV2.dark.tokens.d.ts +3 -0
- package/dist/components/TagV2/tagV2.light.tokens.d.ts +3 -0
- package/dist/components/TagV2/tagV2.tokens.d.ts +62 -0
- package/dist/components/TagV2/utils.d.ts +6 -0
- package/dist/components/Tags/index.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Topbar/index.d.ts +1 -0
- package/dist/components/Upload/index.d.ts +2 -0
- package/dist/components/Upload/types.d.ts +14 -0
- package/dist/components/Upload/utils.d.ts +1 -1
- package/dist/components/common/TruncatedTextWithTooltip.d.ts +1 -2
- package/dist/context/ThemeContext.d.ts +4 -0
- package/dist/context/useComponentToken.d.ts +3 -1
- package/dist/global-utils/GlobalUtils.d.ts +1 -0
- package/dist/main.js +38131 -33933
- package/dist/pollyfills/resizeObserverPollyfill.d.ts +1 -0
- package/dist/tokens/font.tokens.d.ts +55 -0
- package/dist/utils/accessibility/aria-helpers.d.ts +202 -0
- package/dist/utils/accessibility/focus-helpers.d.ts +115 -0
- package/dist/utils/accessibility/icon-helpers.d.ts +3 -0
- package/dist/utils/accessibility/index.d.ts +21 -0
- package/dist/utils/accessibility/keyboard-helpers.d.ts +117 -0
- package/dist/utils/prop-helpers.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StatCardProps } from './types';
|
|
2
2
|
declare const StatCard: {
|
|
3
|
-
({ title, value, valueTooltip, change, subtitle, variant, chartData, progressValue, titleIcon, actionIcon, helpIconText, dropdownProps, minWidth, maxWidth, xAxis, yAxis, valueFormatter, height, direction, skeleton, dataDisplay, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ title, value, valueTooltip, change, subtitle, variant, chartData, progressValue, titleIcon, actionIcon, helpIconText, dropdownProps, minWidth, maxWidth, xAxis, yAxis, valueFormatter, height, direction, skeleton, dataDisplay, showBorder, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default StatCard;
|
|
@@ -28,7 +28,7 @@ export type ChartDataPoint = {
|
|
|
28
28
|
name: string;
|
|
29
29
|
};
|
|
30
30
|
export type StatCardChange = {
|
|
31
|
-
value: number;
|
|
31
|
+
value: number | null | undefined;
|
|
32
32
|
valueType: ChangeType;
|
|
33
33
|
arrowDirection?: StatCardArrowDirection;
|
|
34
34
|
tooltip?: ReactNode;
|
|
@@ -51,7 +51,7 @@ export type StatCardProps = {
|
|
|
51
51
|
title: string;
|
|
52
52
|
value: string | number;
|
|
53
53
|
valueTooltip?: ReactNode;
|
|
54
|
-
change?: StatCardChange;
|
|
54
|
+
change?: StatCardChange | null | undefined;
|
|
55
55
|
subtitle?: string;
|
|
56
56
|
variant: StatCardVariant;
|
|
57
57
|
chartData?: ChartDataPoint[];
|
|
@@ -69,4 +69,5 @@ export type StatCardProps = {
|
|
|
69
69
|
direction?: StatCardDirection;
|
|
70
70
|
skeleton?: StatCardSkeletonProps;
|
|
71
71
|
dataDisplay?: boolean;
|
|
72
|
+
showBorder?: boolean;
|
|
72
73
|
};
|
|
@@ -18,7 +18,7 @@ export declare const calculateChangeFromChartData: (chartData?: ChartDataPoint[]
|
|
|
18
18
|
* @param chartData - Array of chart data points
|
|
19
19
|
* @returns Effective change object or null
|
|
20
20
|
*/
|
|
21
|
-
export declare const getEffectiveChange: (change?: StatCardChange, chartData?: ChartDataPoint[]) => StatCardChange | Pick<StatCardChange, "value" | "valueType"> | null;
|
|
21
|
+
export declare const getEffectiveChange: (change?: StatCardChange | null | undefined, chartData?: ChartDataPoint[]) => StatCardChange | Pick<StatCardChange, "value" | "valueType"> | null;
|
|
22
22
|
/**
|
|
23
23
|
* Determines if decrease color should be shown
|
|
24
24
|
* Uses effectiveChange valueType if available, otherwise falls back to trend calculation
|
|
@@ -14,5 +14,6 @@ declare const Tabs: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react
|
|
|
14
14
|
disable?: boolean;
|
|
15
15
|
showSkeleton?: boolean;
|
|
16
16
|
skeletonVariant?: import('../Skeleton').SkeletonVariant;
|
|
17
|
+
stickyHeader?: boolean;
|
|
17
18
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default Tabs;
|
|
@@ -18,5 +18,6 @@ declare const TabsList: React.ForwardRefExoticComponent<Omit<import('@radix-ui/r
|
|
|
18
18
|
disable?: boolean;
|
|
19
19
|
showSkeleton?: boolean;
|
|
20
20
|
skeletonVariant?: import('../Skeleton').SkeletonVariant;
|
|
21
|
+
stickyHeader?: boolean;
|
|
21
22
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
export default TabsList;
|
|
@@ -15,8 +15,6 @@ export type TabItem = {
|
|
|
15
15
|
value: string;
|
|
16
16
|
label: string;
|
|
17
17
|
content: ReactNode;
|
|
18
|
-
closable?: boolean;
|
|
19
|
-
isDefault?: boolean;
|
|
20
18
|
disable?: boolean;
|
|
21
19
|
showSkeleton?: boolean;
|
|
22
20
|
skeletonVariant?: SkeletonVariant;
|
|
@@ -39,6 +37,7 @@ export type TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
|
39
37
|
disable?: boolean;
|
|
40
38
|
showSkeleton?: boolean;
|
|
41
39
|
skeletonVariant?: SkeletonVariant;
|
|
40
|
+
stickyHeader?: boolean;
|
|
42
41
|
};
|
|
43
42
|
export type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
44
43
|
variant?: TabsVariant;
|
|
@@ -58,6 +57,7 @@ export type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>
|
|
|
58
57
|
disable?: boolean;
|
|
59
58
|
showSkeleton?: boolean;
|
|
60
59
|
skeletonVariant?: SkeletonVariant;
|
|
60
|
+
stickyHeader?: boolean;
|
|
61
61
|
};
|
|
62
62
|
export type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & {
|
|
63
63
|
value: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TagV2Props } from '../TagV2/TagV2.types';
|
|
3
|
+
export type TagGroupV2ChildProps = TagV2Props;
|
|
4
|
+
export type TagGroupV2Props = {
|
|
5
|
+
stacked?: boolean;
|
|
6
|
+
gap?: string | number;
|
|
7
|
+
children: ReactElement<TagGroupV2ChildProps> | ReactElement<TagGroupV2ChildProps>[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
3
|
+
import { TagV2Color, TagV2Size, TagV2SubType, TagV2Type } from './TagV2.types';
|
|
4
|
+
declare const TagSkeleton: ({ showSkeleton, skeletonVariant, text, size, type, subType, color, leftSlot, rightSlot, }: {
|
|
5
|
+
showSkeleton?: boolean;
|
|
6
|
+
skeletonVariant?: SkeletonVariant;
|
|
7
|
+
text?: string;
|
|
8
|
+
size?: TagV2Size;
|
|
9
|
+
type?: TagV2Type;
|
|
10
|
+
subType?: TagV2SubType;
|
|
11
|
+
color?: TagV2Color;
|
|
12
|
+
leftSlot?: ReactNode;
|
|
13
|
+
rightSlot?: ReactNode;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default TagSkeleton;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TagV2Color, TagV2Size, TagV2SubType, TagV2Type } from './TagV2.types';
|
|
2
|
+
declare const TagV2: import('react').ForwardRefExoticComponent<{
|
|
3
|
+
text: string;
|
|
4
|
+
size?: TagV2Size;
|
|
5
|
+
type?: TagV2Type;
|
|
6
|
+
subType?: TagV2SubType;
|
|
7
|
+
color?: TagV2Color;
|
|
8
|
+
leftSlot?: {
|
|
9
|
+
slot: import('react').ReactNode;
|
|
10
|
+
maxHeight: import('styled-components').CSSObject["maxHeight"];
|
|
11
|
+
};
|
|
12
|
+
rightSlot?: {
|
|
13
|
+
slot: import('react').ReactNode;
|
|
14
|
+
maxHeight: import('styled-components').CSSObject["maxHeight"];
|
|
15
|
+
};
|
|
16
|
+
skeleton?: {
|
|
17
|
+
showSkeleton?: boolean;
|
|
18
|
+
skeletonVariant?: import('../Skeleton').SkeletonVariant;
|
|
19
|
+
};
|
|
20
|
+
tagGroupPosition?: "center" | "left" | "right";
|
|
21
|
+
} & Omit<import('react').HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "size" | "style" | "className"> & import('react').RefAttributes<HTMLButtonElement | HTMLDivElement>>;
|
|
22
|
+
export default TagV2;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SkeletonVariant } from '../Skeleton/skeleton.tokens';
|
|
3
|
+
import { CSSObject } from 'styled-components';
|
|
4
|
+
export declare enum TagV2Type {
|
|
5
|
+
NO_FILL = "noFill",
|
|
6
|
+
ATTENTIVE = "attentive",
|
|
7
|
+
SUBTLE = "subtle"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TagV2SubType {
|
|
10
|
+
ROUNDED = "rounded",
|
|
11
|
+
SQUARICAL = "squarical"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TagV2Color {
|
|
14
|
+
NEUTRAL = "neutral",
|
|
15
|
+
PRIMARY = "primary",
|
|
16
|
+
SUCCESS = "success",
|
|
17
|
+
ERROR = "error",
|
|
18
|
+
WARNING = "warning",
|
|
19
|
+
PURPLE = "purple"
|
|
20
|
+
}
|
|
21
|
+
export declare enum TagV2Size {
|
|
22
|
+
XS = "xs",
|
|
23
|
+
SM = "sm",
|
|
24
|
+
MD = "md",
|
|
25
|
+
LG = "lg"
|
|
26
|
+
}
|
|
27
|
+
export type TagV2Props = {
|
|
28
|
+
text: string;
|
|
29
|
+
size?: TagV2Size;
|
|
30
|
+
type?: TagV2Type;
|
|
31
|
+
subType?: TagV2SubType;
|
|
32
|
+
color?: TagV2Color;
|
|
33
|
+
leftSlot?: {
|
|
34
|
+
slot: ReactNode;
|
|
35
|
+
maxHeight: CSSObject['maxHeight'];
|
|
36
|
+
};
|
|
37
|
+
rightSlot?: {
|
|
38
|
+
slot: ReactNode;
|
|
39
|
+
maxHeight: CSSObject['maxHeight'];
|
|
40
|
+
};
|
|
41
|
+
skeleton?: {
|
|
42
|
+
showSkeleton?: boolean;
|
|
43
|
+
skeletonVariant?: SkeletonVariant;
|
|
44
|
+
};
|
|
45
|
+
tagGroupPosition?: 'center' | 'left' | 'right';
|
|
46
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'size' | 'className' | 'style'>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { TagV2Color, TagV2Size, TagV2Type, TagV2SubType } from './TagV2.types';
|
|
3
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
4
|
+
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
5
|
+
import { Theme } from '../../context/theme.enum';
|
|
6
|
+
import { PaddingDirection } from '../ButtonV2';
|
|
7
|
+
export type TagV2TokensType = Readonly<{
|
|
8
|
+
border: {
|
|
9
|
+
[key in TagV2Type]: {
|
|
10
|
+
[key in TagV2Color]: CSSObject['border'];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
borderRadius: {
|
|
14
|
+
[key in TagV2Size]: {
|
|
15
|
+
[key in TagV2SubType]: CSSObject['borderRadius'];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
backgroundColor: {
|
|
19
|
+
[key in TagV2Type]: {
|
|
20
|
+
[key in TagV2Color]: CSSObject['backgroundColor'];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
height: {
|
|
24
|
+
[key in TagV2Size]: CSSObject['height'];
|
|
25
|
+
};
|
|
26
|
+
padding: {
|
|
27
|
+
[key in PaddingDirection]: {
|
|
28
|
+
[key in TagV2Size]: CSSObject['padding'];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
gap: CSSObject['gap'];
|
|
32
|
+
leftSlot: {
|
|
33
|
+
maxHeight: {
|
|
34
|
+
[key in TagV2Size]: CSSObject['maxHeight'];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
rightSlot: {
|
|
38
|
+
maxHeight: {
|
|
39
|
+
[key in TagV2Size]: CSSObject['maxHeight'];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
text: {
|
|
43
|
+
color: {
|
|
44
|
+
[key in TagV2Type]: {
|
|
45
|
+
[key in TagV2Color]: CSSObject['color'];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
fontSize: {
|
|
49
|
+
[key in TagV2Size]: CSSObject['fontSize'];
|
|
50
|
+
};
|
|
51
|
+
fontWeight: {
|
|
52
|
+
[key in TagV2Size]: CSSObject['fontWeight'];
|
|
53
|
+
};
|
|
54
|
+
lineHeight: {
|
|
55
|
+
[key in TagV2Size]: CSSObject['lineHeight'];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
export type ResponsiveTagV2Tokens = {
|
|
60
|
+
[key in keyof BreakpointType]: TagV2TokensType;
|
|
61
|
+
};
|
|
62
|
+
export declare const getTagV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveTagV2Tokens;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { KeyboardEvent, MouseEvent } from 'react';
|
|
2
|
+
import { TagV2Size, TagV2SubType } from './TagV2.types';
|
|
3
|
+
import { TagV2TokensType } from './tagV2.tokens';
|
|
4
|
+
export declare const getAccessibleName: (text: string, isInteractive: boolean, ariaPressed: boolean | "mixed" | undefined) => string | undefined;
|
|
5
|
+
export declare function getTagBorderRadius(size: TagV2Size, subType: TagV2SubType, tagGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: TagV2TokensType): string;
|
|
6
|
+
export declare const createKeyboardHandler: (isInteractive: boolean, onClick?: (event: MouseEvent<HTMLButtonElement | HTMLDivElement>) => void) => ((event: KeyboardEvent<HTMLButtonElement | HTMLDivElement>) => void) | undefined;
|
|
@@ -53,6 +53,7 @@ export type UploadProps = {
|
|
|
53
53
|
uploadedFiles?: UploadedFileWithStatus[];
|
|
54
54
|
failedFiles?: UploadedFileWithStatus[];
|
|
55
55
|
enforceFileTypeConsistency?: boolean;
|
|
56
|
+
progressSpeed?: number;
|
|
56
57
|
value?: UploadFormValue;
|
|
57
58
|
onChange?: (value: UploadFormValue) => void;
|
|
58
59
|
onDrop?: (acceptedFiles: File[], fileRejections: FileRejection[]) => void;
|
|
@@ -60,6 +61,19 @@ export type UploadProps = {
|
|
|
60
61
|
onDropRejected?: (fileRejections: FileRejection[]) => void;
|
|
61
62
|
onFileRemove?: (fileId: string) => void;
|
|
62
63
|
onReplaceFile?: () => void;
|
|
64
|
+
/**
|
|
65
|
+
* Callback that provides the current upload state information.
|
|
66
|
+
* Useful for controlling external submit buttons based on error/success state.
|
|
67
|
+
* @param stateInfo - Object containing current state, hasError, hasSuccess, etc.
|
|
68
|
+
*/
|
|
69
|
+
onStateChange?: (stateInfo: {
|
|
70
|
+
state: UploadState;
|
|
71
|
+
hasError: boolean;
|
|
72
|
+
hasSuccess: boolean;
|
|
73
|
+
hasUploading: boolean;
|
|
74
|
+
errorFiles: UploadedFileWithStatus[];
|
|
75
|
+
successfulFiles: UploadedFileWithStatus[];
|
|
76
|
+
}) => void;
|
|
63
77
|
isDragActive?: boolean;
|
|
64
78
|
isDragAccept?: boolean;
|
|
65
79
|
isDragReject?: boolean;
|
|
@@ -109,6 +109,6 @@ export declare const createUploadManager: () => {
|
|
|
109
109
|
cancelAllUploads: () => void;
|
|
110
110
|
hasActiveUploads: () => boolean;
|
|
111
111
|
};
|
|
112
|
-
export declare const createComplexDropHandler: (multiple: boolean, maxFiles: number | undefined, disabled: boolean, uploadingFiles: UploadFile[], uploadedFiles: UploadedFileWithStatus[], failedFiles: UploadedFileWithStatus[], setInternalState: (state: UploadState) => void, setInternalUploadingFiles: React.Dispatch<React.SetStateAction<UploadFile[]>>, setInternalUploadedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, setInternalFailedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, uploadManager: ReturnType<typeof createUploadManager
|
|
112
|
+
export declare const createComplexDropHandler: (multiple: boolean, maxFiles: number | undefined, disabled: boolean, uploadingFiles: UploadFile[], uploadedFiles: UploadedFileWithStatus[], failedFiles: UploadedFileWithStatus[], setInternalState: (state: UploadState) => void, setInternalUploadingFiles: React.Dispatch<React.SetStateAction<UploadFile[]>>, setInternalUploadedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, setInternalFailedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, uploadManager: ReturnType<typeof createUploadManager>, progressSpeed?: number) => (acceptedFiles: File[], rejectedFiles: FileRejection[]) => void;
|
|
113
113
|
export declare const createFileRemovalHandler: (setInternalUploadedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, setInternalFailedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, setInternalState: (state: UploadState) => void) => (fileId: string) => void;
|
|
114
114
|
export declare const createFileReplacementHandler: (setInternalState: (state: UploadState) => void, setInternalUploadedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>, setInternalFailedFiles: React.Dispatch<React.SetStateAction<UploadedFileWithStatus[]>>) => () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TooltipSize } from '../Tooltip/types';
|
|
3
|
-
type TruncatedTextWithTooltipProps = {
|
|
3
|
+
export type TruncatedTextWithTooltipProps = {
|
|
4
4
|
text: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
tooltipSize?: TooltipSize;
|
|
@@ -11,4 +11,3 @@ type TruncatedTextWithTooltipProps = {
|
|
|
11
11
|
[key: `data-${string}`]: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
export declare const TruncatedTextWithTooltip: ({ text, style, tooltipSize, delayDuration, "data-id": dataId, "data-element": dataElement, ...restProps }: TruncatedTextWithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -14,6 +14,7 @@ import { ResponsiveDropdownInputTokens } from '../components/Inputs/DropdownInpu
|
|
|
14
14
|
import { ResponsiveCheckboxTokens } from '../components/Checkbox/checkbox.token';
|
|
15
15
|
import { ResponsiveTabsTokens } from '../components/Tabs/tabs.token';
|
|
16
16
|
import { ResponsiveButtonTokens } from '../components/Button/button.tokens';
|
|
17
|
+
import { ResponsiveButtonV2Tokens } from '../components/ButtonV2/buttonV2.tokens';
|
|
17
18
|
import { ResponsiveModalTokens } from '../components/Modal/modal.tokens';
|
|
18
19
|
import { ResponsiveBreadcrumbTokens } from '../components/Breadcrumb/breadcrumb.tokens';
|
|
19
20
|
import { ResponsivePopoverTokens } from '../components/Popover/popover.tokens';
|
|
@@ -44,6 +45,7 @@ import { ResponsiveMobileNavigationTokens } from '../components/Sidebar/SidebarM
|
|
|
44
45
|
import { ResponsiveStepperTokens } from '../components/Stepper/stepper.tokens';
|
|
45
46
|
import { Theme } from './theme.enum';
|
|
46
47
|
import { ResponsiveChatInputTokensType } from '../components/ChatInput/chatInput.tokens';
|
|
48
|
+
import { ResponsiveTagV2Tokens } from '../components/TagV2/tagV2.tokens';
|
|
47
49
|
export type ComponentTokenType = {
|
|
48
50
|
TAGS?: ResponsiveTagTokens;
|
|
49
51
|
SEARCH_INPUT?: ResponsiveSearchInputTokens;
|
|
@@ -88,6 +90,8 @@ export type ComponentTokenType = {
|
|
|
88
90
|
UPLOAD?: ResponsiveUploadTokens;
|
|
89
91
|
CODE_BLOCK?: ResponsiveCodeBlockTokens;
|
|
90
92
|
CHAT_INPUT?: ResponsiveChatInputTokensType;
|
|
93
|
+
BUTTONV2?: ResponsiveButtonV2Tokens;
|
|
94
|
+
TAGV2?: ResponsiveTagV2Tokens;
|
|
91
95
|
};
|
|
92
96
|
type ThemeContextType = {
|
|
93
97
|
foundationTokens: ThemeType;
|
|
@@ -14,6 +14,7 @@ import { ResponsiveTooltipTokens } from '../components/Tooltip/tooltip.tokens';
|
|
|
14
14
|
import { ResponsiveUnitInputTokens } from '../components/Inputs/UnitInput/unitInput.tokens';
|
|
15
15
|
import { ResponsiveMultiValueInputTokens } from '../components/Inputs/MultiValueInput/multiValueInput.tokens';
|
|
16
16
|
import { ResponsiveDropdownInputTokens } from '../components/Inputs/DropdownInput/dropdownInput.tokens';
|
|
17
|
+
import { ResponsiveButtonV2Tokens } from '../components/ButtonV2/buttonV2.tokens';
|
|
17
18
|
import { ResponsiveButtonTokens } from '../components/Button/button.tokens';
|
|
18
19
|
import { ResponsiveModalTokens } from '../components/Modal/modal.tokens';
|
|
19
20
|
import { ResponsiveBreadcrumbTokens } from '../components/Breadcrumb/breadcrumb.tokens';
|
|
@@ -42,4 +43,5 @@ import { ResponsiveCodeBlockTokens } from '../components/CodeBlock/codeBlock.tok
|
|
|
42
43
|
import { ResponsiveMobileNavigationTokens } from '../components/Sidebar/SidebarMobile/mobile.tokens';
|
|
43
44
|
import { ResponsiveDirectoryTokens } from '../components/Directory/directory.tokens';
|
|
44
45
|
import { ResponsiveChatInputTokensType } from '../components/ChatInput/chatInput.tokens';
|
|
45
|
-
|
|
46
|
+
import { ResponsiveTagV2Tokens } from '../components/TagV2/tagV2.tokens';
|
|
47
|
+
export declare const useComponentToken: (component: keyof ComponentTokenType) => ResponsiveSearchInputTokens | ResponsiveTagTokens | ResponsiveTextAreaTokens | ResponsiveTextInputTokens | ResponsiveNumberInputTokens | ResponsiveAlertTokens | ResponsiveRadioTokens | ResponsiveOTPInputTokens | ResponsiveUnitInputTokens | ResponsiveMultiValueInputTokens | ResponsiveSwitchTokens | ResponsiveCheckboxTokens | ResponsiveTabsTokens | ResponsiveTooltipTokens | ResponsiveDropdownInputTokens | ResponsiveModalTokens | ResponsiveBreadcrumbTokens | ResponsivePopoverTokens | ResponsiveMenuTokensType | ResponsiveMultiSelectTokens | ResponsiveSingleSelectTokens | ResponsiveTableTokens | ResponsiveCalendarTokens | ResponsiveAccordionTokens | ResponsiveStatCardTokens | ResponsiveProgressBarTokens | ResponsiveDrawerTokens | ResponsiveChartTokens | ResponsiveSnackbarTokens | ResponsiveStepperTokens | ResponsiveKeyValuePairTokens | ResponsiveCardTokens | ResponsiveSkeletonTokens | ResponsiveTopbarTokens | ResponsiveAvatarTokens | ResponsiveAvatarGroupTokens | ResponsiveSidebarTokens | ResponsiveUploadTokens | ResponsiveCodeBlockTokens | ResponsiveMobileNavigationTokens | ResponsiveDirectoryTokens | ResponsiveChatInputTokensType | ResponsiveButtonTokens | ResponsiveButtonV2Tokens | ResponsiveChatInputTokensType | ResponsiveTagV2Tokens;
|