@juspay/blend-design-system 0.0.22-beta → 0.0.23-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/AccordionItem.d.ts +1 -0
- package/dist/components/Card/types.d.ts +0 -1
- package/dist/components/Charts/renderChart.d.ts +1 -1
- package/dist/components/Charts/types.d.ts +2 -0
- package/dist/components/ChatInput/ChatInput.d.ts +5 -0
- package/dist/components/ChatInput/chatInput.tokens.d.ts +147 -0
- package/dist/components/ChatInput/index.d.ts +2 -0
- package/dist/components/ChatInput/types.d.ts +101 -0
- package/dist/components/ChatInput/utils.d.ts +26 -0
- package/dist/components/DataTable/TableHeader/handlers.d.ts +1 -1
- package/dist/components/DataTable/TableHeader/types.d.ts +4 -1
- package/dist/components/DateRangePicker/types.d.ts +0 -1
- package/dist/components/Drawer/types.d.ts +0 -12
- package/dist/components/Inputs/NumberInput/numberInput.tokens.d.ts +1 -0
- package/dist/components/Inputs/UnitInput/types.d.ts +1 -0
- package/dist/components/Modal/types.d.ts +0 -1
- package/dist/components/MultiSelect/MultiSelectMenuItem.d.ts +2 -1
- package/dist/components/MultiSelect/MultiSelectTrigger.d.ts +2 -1
- package/dist/components/MultiSelect/multiSelect.tokens.d.ts +5 -0
- package/dist/components/ProgressBar/types.d.ts +0 -1
- package/dist/components/Select/SelectItem/types.d.ts +1 -0
- package/dist/components/Sidebar/sidebar.tokens.d.ts +5 -0
- package/dist/components/Sidebar/types.d.ts +16 -0
- package/dist/components/Sidebar/utils.d.ts +1 -0
- package/dist/components/SingleSelect/SingleSelectTrigger.d.ts +2 -1
- package/dist/components/SingleSelect/singleSelect.tokens.d.ts +10 -0
- package/dist/components/StatCard/StatCard.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -2
- package/dist/components/Tabs/TabsList.d.ts +4 -2
- package/dist/components/Tabs/TabsTrigger.d.ts +1 -0
- package/dist/components/Tabs/types.d.ts +4 -0
- package/dist/global-utils/GlobalUtils.d.ts +1 -0
- package/dist/main.js +19391 -18902
- package/dist/tokens/unit.tokens.d.ts +1 -0
- package/package.json +1 -1
- package/dist/foundationToken.d.ts +0 -214
|
@@ -5,5 +5,6 @@ declare const AccordionItem: import('react').ForwardRefExoticComponent<Accordion
|
|
|
5
5
|
isFirst?: boolean;
|
|
6
6
|
isLast?: boolean;
|
|
7
7
|
isIntermediate?: boolean;
|
|
8
|
+
currentValue?: string | string[];
|
|
8
9
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
10
|
export default AccordionItem;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RenderChartProps } from './types';
|
|
2
|
-
export declare const renderChart: ({ flattenedData, chartType, hoveredKey, lineKeys, colors, setHoveredKey, data: originalData, selectedKeys, isSmallScreen, barsize, xAxis, yAxis, noData, }: RenderChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const renderChart: ({ chartName, flattenedData, chartType, hoveredKey, lineKeys, colors, setHoveredKey, data: originalData, selectedKeys, isSmallScreen, barsize, xAxis, yAxis, noData, }: RenderChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -90,6 +90,7 @@ export type StackedLegendsDataPoint = {
|
|
|
90
90
|
changeType: LegendsChangeType;
|
|
91
91
|
};
|
|
92
92
|
export type RenderChartProps = {
|
|
93
|
+
chartName?: string;
|
|
93
94
|
flattenedData: FlattenedDataPoint[];
|
|
94
95
|
chartType: ChartType;
|
|
95
96
|
hoveredKey: string | null;
|
|
@@ -139,6 +140,7 @@ export type ChartsProps = {
|
|
|
139
140
|
showCollapseIcon?: boolean;
|
|
140
141
|
isExpanded?: boolean;
|
|
141
142
|
onExpandedChange?: (isExpanded: boolean) => void;
|
|
143
|
+
chartName?: string;
|
|
142
144
|
};
|
|
143
145
|
export type FlattenedDataPoint = {
|
|
144
146
|
name: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChatInputProps, AttachedFile } from './types';
|
|
3
|
+
export declare const getDocIcon: (fileType: AttachedFile["type"]) => React.ReactNode;
|
|
4
|
+
declare const ChatInput: React.ForwardRefExoticComponent<ChatInputProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
export default ChatInput;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
3
|
+
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
4
|
+
/**
|
|
5
|
+
* ChatInput Tokens following the pattern: [target].property.[state]
|
|
6
|
+
*
|
|
7
|
+
* Structure:
|
|
8
|
+
* - container: Main chat input container
|
|
9
|
+
* - textarea: Text input area
|
|
10
|
+
* - filesContainer: File attachment display area
|
|
11
|
+
* - bottomActions: Action buttons container
|
|
12
|
+
* - overflowTag: "+X more" files button
|
|
13
|
+
* - topQueries: Top queries section with header and items
|
|
14
|
+
*/
|
|
15
|
+
export type ChatInputTokensType = Readonly<{
|
|
16
|
+
container: {
|
|
17
|
+
backgroundColor: {
|
|
18
|
+
default: CSSObject['backgroundColor'];
|
|
19
|
+
hover: CSSObject['backgroundColor'];
|
|
20
|
+
disabled: CSSObject['backgroundColor'];
|
|
21
|
+
};
|
|
22
|
+
border: {
|
|
23
|
+
default: CSSObject['border'];
|
|
24
|
+
focus: CSSObject['border'];
|
|
25
|
+
};
|
|
26
|
+
borderRadius: CSSObject['borderRadius'];
|
|
27
|
+
paddingTop: CSSObject['paddingTop'];
|
|
28
|
+
paddingRight: CSSObject['paddingRight'];
|
|
29
|
+
paddingBottom: CSSObject['paddingBottom'];
|
|
30
|
+
paddingLeft: CSSObject['paddingLeft'];
|
|
31
|
+
gap: CSSObject['gap'];
|
|
32
|
+
minHeight: CSSObject['minHeight'];
|
|
33
|
+
transition: CSSObject['transition'];
|
|
34
|
+
boxShadow: {
|
|
35
|
+
default: CSSObject['boxShadow'];
|
|
36
|
+
hover: CSSObject['boxShadow'];
|
|
37
|
+
focus: CSSObject['boxShadow'];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
attachmentContainer: {
|
|
41
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
42
|
+
borderRadius: CSSObject['borderRadius'];
|
|
43
|
+
padding: CSSObject['padding'];
|
|
44
|
+
};
|
|
45
|
+
textarea: {
|
|
46
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
47
|
+
color: CSSObject['color'];
|
|
48
|
+
fontSize: CSSObject['fontSize'];
|
|
49
|
+
lineHeight: CSSObject['lineHeight'];
|
|
50
|
+
paddingX: CSSObject['padding'];
|
|
51
|
+
paddingY: CSSObject['padding'];
|
|
52
|
+
border: CSSObject['border'];
|
|
53
|
+
borderRadius: CSSObject['borderRadius'];
|
|
54
|
+
placeholder: {
|
|
55
|
+
color: CSSObject['color'];
|
|
56
|
+
};
|
|
57
|
+
resize: CSSObject['resize'];
|
|
58
|
+
fontFamily: CSSObject['fontFamily'];
|
|
59
|
+
minHeight: CSSObject['minHeight'];
|
|
60
|
+
maxHeight: CSSObject['maxHeight'];
|
|
61
|
+
overflowY: CSSObject['overflowY'];
|
|
62
|
+
};
|
|
63
|
+
filesContainer: {
|
|
64
|
+
gap: CSSObject['gap'];
|
|
65
|
+
paddingX: CSSObject['padding'];
|
|
66
|
+
paddingY: CSSObject['padding'];
|
|
67
|
+
maxHeight: CSSObject['maxHeight'];
|
|
68
|
+
overflowY: CSSObject['overflowY'];
|
|
69
|
+
};
|
|
70
|
+
bottomActions: {
|
|
71
|
+
paddingX: CSSObject['padding'];
|
|
72
|
+
paddingY: CSSObject['padding'];
|
|
73
|
+
gap: CSSObject['gap'];
|
|
74
|
+
justifyContent: CSSObject['justifyContent'];
|
|
75
|
+
};
|
|
76
|
+
overflowTag: {
|
|
77
|
+
backgroundColor: {
|
|
78
|
+
default: CSSObject['backgroundColor'];
|
|
79
|
+
hover: CSSObject['backgroundColor'];
|
|
80
|
+
active: CSSObject['backgroundColor'];
|
|
81
|
+
};
|
|
82
|
+
color: {
|
|
83
|
+
default: CSSObject['color'];
|
|
84
|
+
hover: CSSObject['color'];
|
|
85
|
+
active: CSSObject['color'];
|
|
86
|
+
};
|
|
87
|
+
border: CSSObject['border'];
|
|
88
|
+
borderRadius: CSSObject['borderRadius'];
|
|
89
|
+
paddingX: CSSObject['padding'];
|
|
90
|
+
paddingY: CSSObject['padding'];
|
|
91
|
+
fontSize: CSSObject['fontSize'];
|
|
92
|
+
fontWeight: CSSObject['fontWeight'];
|
|
93
|
+
gap: CSSObject['gap'];
|
|
94
|
+
transition: CSSObject['transition'];
|
|
95
|
+
cursor: CSSObject['cursor'];
|
|
96
|
+
};
|
|
97
|
+
topQueries: {
|
|
98
|
+
container: {
|
|
99
|
+
borderTop: CSSObject['borderTop'];
|
|
100
|
+
paddingTop: CSSObject['paddingTop'];
|
|
101
|
+
};
|
|
102
|
+
header: {
|
|
103
|
+
color: CSSObject['color'];
|
|
104
|
+
fontSize: CSSObject['fontSize'];
|
|
105
|
+
fontWeight: CSSObject['fontWeight'];
|
|
106
|
+
paddingX: CSSObject['padding'];
|
|
107
|
+
paddingY: CSSObject['padding'];
|
|
108
|
+
textTransform: CSSObject['textTransform'];
|
|
109
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
110
|
+
flexShrink: CSSObject['flexShrink'];
|
|
111
|
+
};
|
|
112
|
+
scrollContainer: {
|
|
113
|
+
overflowY: CSSObject['overflowY'];
|
|
114
|
+
maxHeightOffset: number;
|
|
115
|
+
};
|
|
116
|
+
item: {
|
|
117
|
+
backgroundColor: {
|
|
118
|
+
default: CSSObject['backgroundColor'];
|
|
119
|
+
hover: CSSObject['backgroundColor'];
|
|
120
|
+
active: CSSObject['backgroundColor'];
|
|
121
|
+
disabled: CSSObject['backgroundColor'];
|
|
122
|
+
};
|
|
123
|
+
color: {
|
|
124
|
+
default: CSSObject['color'];
|
|
125
|
+
hover: CSSObject['color'];
|
|
126
|
+
active: CSSObject['color'];
|
|
127
|
+
disabled: CSSObject['color'];
|
|
128
|
+
};
|
|
129
|
+
fontSize: CSSObject['fontSize'];
|
|
130
|
+
fontWeight: CSSObject['fontWeight'];
|
|
131
|
+
paddingX: CSSObject['padding'];
|
|
132
|
+
paddingY: CSSObject['padding'];
|
|
133
|
+
border: CSSObject['border'];
|
|
134
|
+
transition: CSSObject['transition'];
|
|
135
|
+
cursor: CSSObject['cursor'];
|
|
136
|
+
opacity: {
|
|
137
|
+
default: CSSObject['opacity'];
|
|
138
|
+
disabled: CSSObject['opacity'];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}>;
|
|
143
|
+
export type ResponsiveChatInputTokensType = {
|
|
144
|
+
[key in keyof BreakpointType]: ChatInputTokensType;
|
|
145
|
+
};
|
|
146
|
+
export declare const getChatInputTokens: (foundationToken: FoundationTokenType) => ResponsiveChatInputTokensType;
|
|
147
|
+
export default getChatInputTokens;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MenuProps } from '../Menu/types';
|
|
3
|
+
export type AttachedFile = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'image' | 'pdf' | 'csv' | 'text' | 'other';
|
|
7
|
+
size?: number;
|
|
8
|
+
url?: string;
|
|
9
|
+
preview?: string;
|
|
10
|
+
};
|
|
11
|
+
export type TopQuery = {
|
|
12
|
+
id: string;
|
|
13
|
+
text: string;
|
|
14
|
+
};
|
|
15
|
+
export type ChatInputProps = {
|
|
16
|
+
value?: string;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
onSend?: (message: string, files: AttachedFile[]) => void;
|
|
19
|
+
onAttachFiles?: (files: File[]) => void;
|
|
20
|
+
onVoiceRecord?: () => void;
|
|
21
|
+
onFileRemove?: (fileId: string) => void;
|
|
22
|
+
onFileClick?: (file: AttachedFile) => void;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
autoResize?: boolean;
|
|
27
|
+
attachedFiles?: AttachedFile[];
|
|
28
|
+
topQueries?: TopQuery[];
|
|
29
|
+
onTopQuerySelect?: (query: TopQuery) => void;
|
|
30
|
+
topQueriesMaxHeight?: number;
|
|
31
|
+
attachButtonIcon?: ReactNode;
|
|
32
|
+
voiceButtonIcon?: ReactNode;
|
|
33
|
+
sendButtonIcon?: ReactNode;
|
|
34
|
+
overflowMenuProps?: Partial<MenuProps>;
|
|
35
|
+
'aria-label'?: string;
|
|
36
|
+
'aria-describedby'?: string;
|
|
37
|
+
};
|
|
38
|
+
export type ChatInputTokens = {
|
|
39
|
+
container: {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
border: string;
|
|
42
|
+
borderRadius: string;
|
|
43
|
+
padding: string;
|
|
44
|
+
gap: string;
|
|
45
|
+
minHeight: string;
|
|
46
|
+
maxHeight: string;
|
|
47
|
+
};
|
|
48
|
+
textarea: {
|
|
49
|
+
backgroundColor: string;
|
|
50
|
+
color: string;
|
|
51
|
+
fontSize: string;
|
|
52
|
+
lineHeight: string;
|
|
53
|
+
padding: string;
|
|
54
|
+
border: string;
|
|
55
|
+
borderRadius: string;
|
|
56
|
+
placeholder: {
|
|
57
|
+
color: string;
|
|
58
|
+
};
|
|
59
|
+
resize: string;
|
|
60
|
+
fontFamily: string;
|
|
61
|
+
};
|
|
62
|
+
filesContainer: {
|
|
63
|
+
gap: string;
|
|
64
|
+
padding: string;
|
|
65
|
+
maxHeight: string;
|
|
66
|
+
overflowBehavior: string;
|
|
67
|
+
};
|
|
68
|
+
bottomActions: {
|
|
69
|
+
padding: string;
|
|
70
|
+
gap: string;
|
|
71
|
+
justifyContent: string;
|
|
72
|
+
};
|
|
73
|
+
actionButton: {
|
|
74
|
+
size: string;
|
|
75
|
+
padding: string;
|
|
76
|
+
borderRadius: string;
|
|
77
|
+
backgroundColor: {
|
|
78
|
+
default: string;
|
|
79
|
+
hover: string;
|
|
80
|
+
active: string;
|
|
81
|
+
disabled: string;
|
|
82
|
+
};
|
|
83
|
+
color: {
|
|
84
|
+
default: string;
|
|
85
|
+
hover: string;
|
|
86
|
+
active: string;
|
|
87
|
+
disabled: string;
|
|
88
|
+
};
|
|
89
|
+
border: string;
|
|
90
|
+
};
|
|
91
|
+
overflowTag: {
|
|
92
|
+
backgroundColor: string;
|
|
93
|
+
color: string;
|
|
94
|
+
border: string;
|
|
95
|
+
borderRadius: string;
|
|
96
|
+
padding: string;
|
|
97
|
+
fontSize: string;
|
|
98
|
+
fontWeight: string;
|
|
99
|
+
cursor: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AttachedFile } from './types';
|
|
2
|
+
import { MenuItemType } from '../Menu/types';
|
|
3
|
+
/**
|
|
4
|
+
* Determine the file type from a File object
|
|
5
|
+
*/
|
|
6
|
+
export declare const getFileType: (file: File) => AttachedFile["type"];
|
|
7
|
+
/**
|
|
8
|
+
* Create menu items for overflow files
|
|
9
|
+
*/
|
|
10
|
+
export declare const createOverflowMenuItems: (hiddenFiles: AttachedFile[], onFileRemove: (fileId: string) => void, onFileClick: (file: AttachedFile) => void) => MenuItemType[];
|
|
11
|
+
/**
|
|
12
|
+
* Handle textarea auto-resize functionality
|
|
13
|
+
*/
|
|
14
|
+
export declare const handleAutoResize: (element: HTMLTextAreaElement | null, autoResize: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Check if Enter key should trigger send
|
|
17
|
+
*/
|
|
18
|
+
export declare const shouldSendOnEnter: (key: string, shiftKey: boolean, metaKey: boolean, ctrlKey: boolean) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Validate message length against maxLength
|
|
21
|
+
*/
|
|
22
|
+
export declare const isValidMessageLength: (message: string, maxLength?: number) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Convert File objects to AttachedFile objects
|
|
25
|
+
*/
|
|
26
|
+
export declare const convertFilesToAttachedFiles: (files: File[]) => AttachedFile[];
|
|
@@ -19,10 +19,10 @@ export type SortHandlers = {
|
|
|
19
19
|
handleSortAscending: (field: string) => void;
|
|
20
20
|
handleSortDescending: (field: string) => void;
|
|
21
21
|
};
|
|
22
|
+
export declare const createSortHandlers: (sortState: SortState, onSort: (field: keyof Record<string, unknown>) => void, onSortAscending?: (field: keyof Record<string, unknown>) => void, onSortDescending?: (field: keyof Record<string, unknown>) => void) => SortHandlers;
|
|
22
23
|
export type FilterHandlers = {
|
|
23
24
|
handleSearchChange: (fieldKey: string, value: string) => void;
|
|
24
25
|
handleSelectFilter: (column: ColumnDefinition<Record<string, unknown>>, fieldKey: string, value: string, onColumnFilter?: ColumnFilterHandler) => void;
|
|
25
26
|
handleMultiSelectFilter: (column: ColumnDefinition<Record<string, unknown>>, fieldKey: string, value: string, onColumnFilter?: ColumnFilterHandler) => void;
|
|
26
27
|
};
|
|
27
|
-
export declare const createSortHandlers: (sortState: SortState, setSortState: React.Dispatch<React.SetStateAction<SortState>>, onSort: (field: keyof Record<string, unknown>) => void) => SortHandlers;
|
|
28
28
|
export declare const createFilterHandlers: (setFilterState: React.Dispatch<React.SetStateAction<FilterState>>) => FilterHandlers;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ColumnDefinition, FilterType, RowActionsConfig } from '../types';
|
|
1
|
+
import { ColumnDefinition, FilterType, RowActionsConfig, SortConfig } from '../types';
|
|
2
2
|
import { MobileDataTableConfig } from '../hooks/useMobileDataTable';
|
|
3
3
|
export type TableHeaderProps<T extends Record<string, unknown>> = {
|
|
4
4
|
visibleColumns: ColumnDefinition<T>[];
|
|
5
5
|
allVisibleColumns?: ColumnDefinition<T>[];
|
|
6
6
|
initialColumns: ColumnDefinition<T>[];
|
|
7
7
|
selectAll: boolean | 'indeterminate';
|
|
8
|
+
sortConfig?: SortConfig | null;
|
|
8
9
|
enableInlineEdit?: boolean;
|
|
9
10
|
enableColumnManager?: boolean;
|
|
10
11
|
columnManagerMaxSelections?: number;
|
|
@@ -31,6 +32,8 @@ export type TableHeaderProps<T extends Record<string, unknown>> = {
|
|
|
31
32
|
mobileOverflowColumns?: ColumnDefinition<T>[];
|
|
32
33
|
onMobileOverflowClick?: (row: T) => void;
|
|
33
34
|
onSort: (field: keyof T) => void;
|
|
35
|
+
onSortAscending?: (field: keyof T) => void;
|
|
36
|
+
onSortDescending?: (field: keyof T) => void;
|
|
34
37
|
onSelectAll: (checked: boolean | 'indeterminate') => void;
|
|
35
38
|
onColumnChange: (columns: ColumnDefinition<T>[]) => void;
|
|
36
39
|
onColumnFilter?: (field: string, type: FilterType, value: string | string[] | {
|
|
@@ -69,18 +69,6 @@ export type DrawerProps = {
|
|
|
69
69
|
left?: string;
|
|
70
70
|
right?: string;
|
|
71
71
|
};
|
|
72
|
-
/**
|
|
73
|
-
* Custom class name for the drawer content
|
|
74
|
-
*/
|
|
75
|
-
className?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Custom class name for the overlay
|
|
78
|
-
*/
|
|
79
|
-
overlayClassName?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Custom styles for the drawer content
|
|
82
|
-
*/
|
|
83
|
-
style?: React.CSSProperties;
|
|
84
72
|
/**
|
|
85
73
|
* Children content
|
|
86
74
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { MultiSelectMenuItemType } from './types';
|
|
2
2
|
declare const MultiSelectMenuItem: {
|
|
3
|
-
({ item, onSelect, selected, maxSelections, allItems, }: {
|
|
3
|
+
({ item, onSelect, selected, maxSelections, allItems, index, }: {
|
|
4
4
|
item: MultiSelectMenuItemType;
|
|
5
5
|
onSelect: (value: string) => void;
|
|
6
6
|
selected: string[];
|
|
7
7
|
maxSelections?: number;
|
|
8
8
|
allItems?: MultiSelectMenuItemType[];
|
|
9
|
+
index?: number;
|
|
9
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
displayName: string;
|
|
11
12
|
};
|
|
@@ -19,6 +19,7 @@ export type MultiSelectTriggerProps = {
|
|
|
19
19
|
multiSelectTokens: MultiSelectTokensType;
|
|
20
20
|
inline?: boolean;
|
|
21
21
|
error?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
22
23
|
};
|
|
23
|
-
declare const MultiSelectTrigger: ({ selectedValues, slot, variant, size, isSmallScreen, onChange, name, label, placeholder, required, selectionTagType, valueLabelMap, open, onClick, multiSelectTokens, inline, error, }: MultiSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const MultiSelectTrigger: ({ selectedValues, slot, variant, size, isSmallScreen, onChange, name, label, placeholder, required, selectionTagType, valueLabelMap, open, onClick, multiSelectTokens, inline, error, disabled, }: MultiSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export default MultiSelectTrigger;
|
|
@@ -37,4 +37,20 @@ export type SidebarProps = {
|
|
|
37
37
|
merchantInfo?: MerchantInfo;
|
|
38
38
|
rightActions?: ReactNode;
|
|
39
39
|
enableTopbarAutoHide?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Controlled state: Current expanded state of the sidebar
|
|
42
|
+
* When provided, sidebar operates in controlled mode - parent must handle state updates
|
|
43
|
+
*/
|
|
44
|
+
isExpanded?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Callback fired when sidebar expand/collapse state should change
|
|
47
|
+
* In controlled mode: Parent should update isExpanded prop based on this callback
|
|
48
|
+
* In uncontrolled mode: Optional callback for state change notifications
|
|
49
|
+
*/
|
|
50
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Uncontrolled mode: Initial expanded state (defaults to true)
|
|
53
|
+
* Only used when isExpanded is not provided
|
|
54
|
+
*/
|
|
55
|
+
defaultIsExpanded?: boolean;
|
|
40
56
|
};
|
|
@@ -24,3 +24,4 @@ export declare const getDefaultMerchantInfo: () => {
|
|
|
24
24
|
onSelect: (value: string) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare const useTopbarAutoHide: (enableTopbarAutoHide: boolean) => boolean;
|
|
27
|
+
export declare const isControlledSidebar: (isExpanded: boolean | undefined) => boolean;
|
|
@@ -19,6 +19,7 @@ export type SingleSelectTriggerProps = {
|
|
|
19
19
|
inline?: boolean;
|
|
20
20
|
error?: boolean;
|
|
21
21
|
errorMessage?: string;
|
|
22
|
+
disabled?: boolean;
|
|
22
23
|
};
|
|
23
|
-
declare const SingleSelectTrigger: ({ size, selected, label, name, placeholder, required, valueLabelMap, open, onClick, slot, variant, isSmallScreenWithLargeSize, isItemSelected, singleSelectTokens, inline, error, }: SingleSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const SingleSelectTrigger: ({ size, selected, label, name, placeholder, required, valueLabelMap, open, onClick, slot, variant, isSmallScreenWithLargeSize, isItemSelected, singleSelectTokens, inline, error, disabled, }: SingleSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export default SingleSelectTrigger;
|
|
@@ -67,6 +67,16 @@ export type SingleSelectTokensType = {
|
|
|
67
67
|
[key in TriggerStates]: CSSObject['outline'];
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
+
placeholder: {
|
|
71
|
+
color: CSSObject['color'];
|
|
72
|
+
fontSize: CSSObject['fontSize'];
|
|
73
|
+
fontWeight: CSSObject['fontWeight'];
|
|
74
|
+
};
|
|
75
|
+
selectedValue: {
|
|
76
|
+
color: CSSObject['color'];
|
|
77
|
+
fontSize: CSSObject['fontSize'];
|
|
78
|
+
fontWeight: CSSObject['fontWeight'];
|
|
79
|
+
};
|
|
70
80
|
};
|
|
71
81
|
menu: {
|
|
72
82
|
backgroundColor: CSSObject['backgroundColor'];
|
|
@@ -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, maxWidth, xAxis, yAxis, valueFormatter, height, direction, }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ title, value, valueTooltip, change, subtitle, variant, chartData, progressValue, titleIcon, actionIcon, helpIconText, dropdownProps, maxWidth, xAxis, yAxis, valueFormatter, height, direction, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default StatCard;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
3
|
variant?: import('./types').TabsVariant;
|
|
3
4
|
size?: import('./types').TabsSize;
|
|
4
5
|
items?: import('./types').TabItem[];
|
|
@@ -9,5 +10,6 @@ declare const Tabs: import('react').ForwardRefExoticComponent<Omit<import('@radi
|
|
|
9
10
|
dropdownTooltip?: string;
|
|
10
11
|
addButtonTooltip?: string;
|
|
11
12
|
maxDisplayTabs?: number;
|
|
12
|
-
|
|
13
|
+
disable?: boolean;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
15
|
export default Tabs;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TabsSize, TabsVariant } from './types';
|
|
2
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3
4
|
variant?: TabsVariant;
|
|
4
5
|
size?: TabsSize;
|
|
5
6
|
expanded?: boolean;
|
|
@@ -14,5 +15,6 @@ declare const TabsList: import('react').ForwardRefExoticComponent<Omit<import('@
|
|
|
14
15
|
maxDisplayTabs?: number;
|
|
15
16
|
onTabChange?: (value: string) => void;
|
|
16
17
|
activeTab?: string;
|
|
17
|
-
|
|
18
|
+
disable?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
20
|
export default TabsList;
|
|
@@ -16,6 +16,7 @@ export type TabItem = {
|
|
|
16
16
|
content: ReactNode;
|
|
17
17
|
closable?: boolean;
|
|
18
18
|
isDefault?: boolean;
|
|
19
|
+
disable?: boolean;
|
|
19
20
|
};
|
|
20
21
|
export type TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
21
22
|
variant?: TabsVariant;
|
|
@@ -28,6 +29,7 @@ export type TabsProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & {
|
|
|
28
29
|
dropdownTooltip?: string;
|
|
29
30
|
addButtonTooltip?: string;
|
|
30
31
|
maxDisplayTabs?: number;
|
|
32
|
+
disable?: boolean;
|
|
31
33
|
};
|
|
32
34
|
export type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
33
35
|
variant?: TabsVariant;
|
|
@@ -44,6 +46,7 @@ export type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>
|
|
|
44
46
|
maxDisplayTabs?: number;
|
|
45
47
|
onTabChange?: (value: string) => void;
|
|
46
48
|
activeTab?: string;
|
|
49
|
+
disable?: boolean;
|
|
47
50
|
};
|
|
48
51
|
export type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & {
|
|
49
52
|
value: string;
|
|
@@ -54,6 +57,7 @@ export type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Tri
|
|
|
54
57
|
children: string | number;
|
|
55
58
|
closable?: boolean;
|
|
56
59
|
onClose?: () => void;
|
|
60
|
+
disable?: boolean;
|
|
57
61
|
};
|
|
58
62
|
export type TabsContentProps = ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;
|
|
59
63
|
export type TabsStyles = {
|