@juspay/blend-design-system 0.0.35 → 0.0.36-beta.1
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/README.md +5 -5
- package/dist/components/Charts/chart.tokens.d.ts +1 -1
- package/dist/components/Charts/renderChart.d.ts +1 -1
- package/dist/components/Charts/types.d.ts +5 -0
- package/dist/components/ChartsV2/ChartContainerV2.d.ts +6 -0
- package/dist/components/ChartsV2/ChartHeaderV2.d.ts +6 -0
- package/dist/components/ChartsV2/ChartV2.d.ts +3 -0
- package/dist/components/ChartsV2/ChartV2Fullscreen.d.ts +14 -0
- package/dist/components/ChartsV2/ChartV2Legend.d.ts +6 -0
- package/dist/components/ChartsV2/ChartV2NoData.d.ts +6 -0
- package/dist/components/ChartsV2/ChartV2Skeleton.d.ts +10 -0
- package/dist/components/ChartsV2/chartV2.dark.tokens.d.ts +3 -0
- package/dist/components/ChartsV2/chartV2.light.tokens.d.ts +3 -0
- package/dist/components/ChartsV2/chartV2.sankey.d.ts +1 -0
- package/dist/components/ChartsV2/chartV2.tokens.d.ts +102 -0
- package/dist/components/ChartsV2/chartV2.types.d.ts +72 -0
- package/dist/components/ChartsV2/index.d.ts +9 -0
- package/dist/components/ChartsV2/useChartLegend.d.ts +9 -0
- package/dist/components/ChartsV2/useChartLegendHover.d.ts +7 -0
- package/dist/components/ChartsV2/useChartRefs.d.ts +6 -0
- package/dist/components/ChartsV2/utils.d.ts +3 -0
- package/dist/components/ChatInput/ChatInput.d.ts +1 -0
- package/dist/components/ChatInput/MobileChatInput.d.ts +1 -0
- package/dist/components/ChatInput/chatInput.tokens.d.ts +8 -6
- package/dist/components/ChatInput/types.d.ts +1 -0
- package/dist/components/DataTable/TableBody/types.d.ts +2 -0
- package/dist/components/DataTable/TableHeader/types.d.ts +4 -0
- package/dist/components/DataTable/TableHeader/utils.d.ts +4 -2
- package/dist/components/DateRangePicker/CalendarGrid.d.ts +1 -0
- package/dist/components/DateRangePicker/types.d.ts +3 -0
- package/dist/components/DateRangePicker/utils.d.ts +2 -2
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/SelectorV2/CheckboxV2/CheckboxV2.d.ts +19 -0
- package/dist/components/SelectorV2/CheckboxV2/StyledCheckboxV2.d.ts +11 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.animations.d.ts +2 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.dark.tokens.d.ts +3 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.light.tokens.d.ts +3 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.tokens.d.ts +94 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.types.d.ts +64 -0
- package/dist/components/SelectorV2/CheckboxV2/index.d.ts +3 -0
- package/dist/components/SelectorV2/CheckboxV2/utils.d.ts +67 -0
- package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/SwitchV2.d.ts +3 -3
- package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.dark.tokens.d.ts +1 -1
- package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.light.tokens.d.ts +1 -1
- package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.tokens.d.ts +16 -15
- package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.types.d.ts +5 -8
- package/dist/components/SelectorV2/selectorV2.types.d.ts +12 -0
- package/dist/components/SelectorsContent/SelectorsContent.types.d.ts +5 -2
- package/dist/components/SelectorsContent/SelectorsLabel.d.ts +1 -1
- package/dist/components/SelectorsContent/SelectorsSubLabel.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts +41 -0
- package/dist/components/Timeline/TimelineHeader.d.ts +10 -0
- package/dist/components/Timeline/TimelineLabel.d.ts +3 -0
- package/dist/components/Timeline/TimelineNode.d.ts +17 -0
- package/dist/components/Timeline/TimelineShowMore.d.ts +3 -0
- package/dist/components/Timeline/TimelineSubstep.d.ts +11 -0
- package/dist/components/Timeline/index.d.ts +8 -0
- package/dist/components/Timeline/timeline.dark.token.d.ts +8 -0
- package/dist/components/Timeline/timeline.light.token.d.ts +8 -0
- package/dist/components/Timeline/timeline.token.d.ts +132 -0
- package/dist/components/Timeline/types.d.ts +104 -0
- package/dist/components/Timeline/utils.d.ts +6 -0
- package/dist/components/common/Seperator.d.ts +4 -3
- package/dist/context/ThemeContext.d.ts +7 -1
- package/dist/context/useComponentToken.d.ts +5 -2
- package/dist/main.d.ts +2 -0
- package/dist/main.js +36601 -32999
- package/package.json +2 -2
- /package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -134,9 +134,9 @@ function App() {
|
|
|
134
134
|
|
|
135
135
|
## 📖 Documentation
|
|
136
136
|
|
|
137
|
-
- **[Component Documentation](https://juspay.design/)** - Complete component API and examples
|
|
138
|
-
- **[Storybook](https://
|
|
139
|
-
- **[Design Guidelines](https://juspay.design/guidelines)** - Design principles and usage guidelines
|
|
137
|
+
- **[Component Documentation](https://blend.juspay.design/)** - Complete component API and examples
|
|
138
|
+
- **[Storybook](https://blend.juspay.design/storybook/)** - Interactive component playground
|
|
139
|
+
- **[Design Guidelines](https://blend.juspay.design/guidelines)** - Design principles and usage guidelines
|
|
140
140
|
|
|
141
141
|
## 🛠️ Development
|
|
142
142
|
|
|
@@ -167,10 +167,10 @@ MIT © [Juspay Technologies](https://juspay.in)
|
|
|
167
167
|
|
|
168
168
|
## 🔗 Links
|
|
169
169
|
|
|
170
|
-
- **Homepage**: [https://juspay.design/](https://juspay.design/)
|
|
170
|
+
- **Homepage**: [https://blend.juspay.design/](https://blend.juspay.design/)
|
|
171
171
|
- **Repository**: [https://github.com/juspay/blend-design-system](https://github.com/juspay/blend-design-system)
|
|
172
172
|
- **Issues**: [https://github.com/juspay/blend-design-system/issues](https://github.com/juspay/blend-design-system/issues)
|
|
173
|
-
- **Storybook**: [https://
|
|
173
|
+
- **Storybook**: [https://blend.juspay.design/storybook/](https://blend.juspay.design/storybook/)
|
|
174
174
|
|
|
175
175
|
---
|
|
176
176
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
2
|
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
3
3
|
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
4
|
-
export type ChartState = 'default' | 'hover' | 'active';
|
|
4
|
+
export type ChartState = 'default' | 'hover' | 'active' | 'total';
|
|
5
5
|
export type ChartHeight = 'default' | 'fullscreen' | 'small';
|
|
6
6
|
export type ChartTokensType = {
|
|
7
7
|
border: CSSObject['border'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RenderChartProps } from './types';
|
|
2
|
-
export declare const renderChart: ({ chartName, flattenedData, chartType, hoveredKey, lineKeys, colors, setHoveredKey, data: originalData, selectedKeys, isSmallScreen, barsize, xAxis, yAxis, tooltip, noData, height, CustomizedDot, }: 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, tooltip, noData, height, CustomizedDot, lineSeriesKeys, onKeyClick, }: RenderChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,6 +32,7 @@ export declare enum ChartLegendPosition {
|
|
|
32
32
|
export declare enum ChartType {
|
|
33
33
|
LINE = "line",
|
|
34
34
|
BAR = "bar",
|
|
35
|
+
LINE_BAR = "lineBar",
|
|
35
36
|
PIE = "pie",
|
|
36
37
|
SCATTER = "scatter",
|
|
37
38
|
AREA = "area",
|
|
@@ -138,6 +139,8 @@ export type RenderChartProps = {
|
|
|
138
139
|
noData?: NoDataProps;
|
|
139
140
|
height?: number | string;
|
|
140
141
|
CustomizedDot?: (props: DotItemDotProps) => React.ReactElement<SVGElement>;
|
|
142
|
+
lineSeriesKeys?: string[];
|
|
143
|
+
onKeyClick?: (key: string) => void;
|
|
141
144
|
};
|
|
142
145
|
export type CoreChartProps = {
|
|
143
146
|
chartType?: ChartType;
|
|
@@ -156,6 +159,7 @@ export type CoreChartProps = {
|
|
|
156
159
|
hoveredKey?: string | null;
|
|
157
160
|
onHoveredKeyChange?: (key: string | null) => void;
|
|
158
161
|
selectedKeys?: string[];
|
|
162
|
+
lineSeriesKeys?: string[];
|
|
159
163
|
enableHover?: boolean;
|
|
160
164
|
};
|
|
161
165
|
export type ChartsSkeletonProps = {
|
|
@@ -193,6 +197,7 @@ export type ChartsProps = {
|
|
|
193
197
|
total?: string;
|
|
194
198
|
}[];
|
|
195
199
|
CustomizedDot?: (props: DotItemDotProps) => React.ReactElement<SVGElement>;
|
|
200
|
+
lineSeriesKeys?: string[];
|
|
196
201
|
};
|
|
197
202
|
export type FlattenedDataPoint = {
|
|
198
203
|
name: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ChartV2FullscreenControls = {
|
|
3
|
+
isFullscreen: boolean;
|
|
4
|
+
enterFullscreen: () => void;
|
|
5
|
+
exitFullscreen: () => void;
|
|
6
|
+
};
|
|
7
|
+
export interface ChartV2FullscreenProps {
|
|
8
|
+
children: (controls: ChartV2FullscreenControls) => ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const ChartV2Fullscreen: {
|
|
11
|
+
({ children }: ChartV2FullscreenProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default ChartV2Fullscreen;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartV2LegendProps } from './chartV2.types';
|
|
2
|
+
declare const ChartV2Legend: {
|
|
3
|
+
({ chartRef, chartRefs, customLegendItems, renderItem, layout, }: ChartV2LegendProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default ChartV2Legend;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
2
|
+
declare const ChartV2Skeleton: {
|
|
3
|
+
({ skeletonVariant, height, isExpanded, }: {
|
|
4
|
+
skeletonVariant?: SkeletonVariant;
|
|
5
|
+
height?: number;
|
|
6
|
+
isExpanded?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default ChartV2Skeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
3
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
4
|
+
import { Theme } from '../../context/theme.enum';
|
|
5
|
+
export type ChartV2TokensType = {
|
|
6
|
+
border: CSSObject['border'];
|
|
7
|
+
borderRadius: CSSObject['borderRadius'];
|
|
8
|
+
boxShadow: CSSObject['boxShadow'];
|
|
9
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
10
|
+
header: {
|
|
11
|
+
padding: {
|
|
12
|
+
top: CSSObject['padding'];
|
|
13
|
+
right: CSSObject['padding'];
|
|
14
|
+
bottom: CSSObject['padding'];
|
|
15
|
+
left: CSSObject['padding'];
|
|
16
|
+
};
|
|
17
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
18
|
+
borderBottom: CSSObject['borderBottom'];
|
|
19
|
+
};
|
|
20
|
+
legends: {
|
|
21
|
+
gap: CSSObject['gap'];
|
|
22
|
+
legendItem: {
|
|
23
|
+
gap: CSSObject['gap'];
|
|
24
|
+
shape: {
|
|
25
|
+
width: CSSObject['width'];
|
|
26
|
+
height: CSSObject['height'];
|
|
27
|
+
borderRadius: CSSObject['borderRadius'];
|
|
28
|
+
};
|
|
29
|
+
text: {
|
|
30
|
+
gap: CSSObject['gap'];
|
|
31
|
+
name: {
|
|
32
|
+
fontSize: CSSObject['fontSize'];
|
|
33
|
+
fontWeight: CSSObject['fontWeight'];
|
|
34
|
+
lineHeight: CSSObject['lineHeight'];
|
|
35
|
+
color: CSSObject['color'];
|
|
36
|
+
};
|
|
37
|
+
value: {
|
|
38
|
+
fontSize: CSSObject['fontSize'];
|
|
39
|
+
fontWeight: CSSObject['fontWeight'];
|
|
40
|
+
lineHeight: CSSObject['lineHeight'];
|
|
41
|
+
color: CSSObject['color'];
|
|
42
|
+
};
|
|
43
|
+
separator: {
|
|
44
|
+
color: CSSObject['color'];
|
|
45
|
+
width: CSSObject['width'];
|
|
46
|
+
height: CSSObject['height'];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
chart: {
|
|
52
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
53
|
+
xAxis: {
|
|
54
|
+
title: {
|
|
55
|
+
fontSize: CSSObject['fontSize'];
|
|
56
|
+
color: CSSObject['color'];
|
|
57
|
+
fontWeight: CSSObject['fontWeight'];
|
|
58
|
+
lineHeight: CSSObject['lineHeight'];
|
|
59
|
+
};
|
|
60
|
+
labels: {
|
|
61
|
+
fontSize: CSSObject['fontSize'];
|
|
62
|
+
color: CSSObject['color'];
|
|
63
|
+
fontWeight: CSSObject['fontWeight'];
|
|
64
|
+
lineHeight: CSSObject['lineHeight'];
|
|
65
|
+
};
|
|
66
|
+
line: {
|
|
67
|
+
width: CSSObject['width'];
|
|
68
|
+
color: CSSObject['color'];
|
|
69
|
+
};
|
|
70
|
+
gridLine: {
|
|
71
|
+
width: CSSObject['width'];
|
|
72
|
+
color: CSSObject['color'];
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
yAxis: {
|
|
76
|
+
title: {
|
|
77
|
+
fontSize: CSSObject['fontSize'];
|
|
78
|
+
color: CSSObject['color'];
|
|
79
|
+
fontWeight: CSSObject['fontWeight'];
|
|
80
|
+
lineHeight: CSSObject['lineHeight'];
|
|
81
|
+
};
|
|
82
|
+
labels: {
|
|
83
|
+
fontSize: CSSObject['fontSize'];
|
|
84
|
+
color: CSSObject['color'];
|
|
85
|
+
fontWeight: CSSObject['fontWeight'];
|
|
86
|
+
lineHeight: CSSObject['lineHeight'];
|
|
87
|
+
};
|
|
88
|
+
line: {
|
|
89
|
+
width: CSSObject['width'];
|
|
90
|
+
color: CSSObject['color'];
|
|
91
|
+
};
|
|
92
|
+
gridLine: {
|
|
93
|
+
width: CSSObject['width'];
|
|
94
|
+
color: CSSObject['color'];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export type ResponsiveChartV2Tokens = {
|
|
100
|
+
[key in keyof BreakpointType]: ChartV2TokensType;
|
|
101
|
+
};
|
|
102
|
+
export declare const getChartV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveChartV2Tokens;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { RefObject, ReactNode } from 'react';
|
|
2
|
+
import { HighchartsReactProps, HighchartsReactRefObject } from 'highcharts-react-official';
|
|
3
|
+
import { default as Highcharts } from 'highcharts';
|
|
4
|
+
import { ButtonProps } from '../Button';
|
|
5
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
6
|
+
export declare const ChartV2BaseInstance: typeof Highcharts;
|
|
7
|
+
export type ChartV2Type = typeof Highcharts;
|
|
8
|
+
export type ChartV2ReactProps = HighchartsReactProps;
|
|
9
|
+
export type ChartV2SkeletonProps = {
|
|
10
|
+
show: boolean;
|
|
11
|
+
variant?: SkeletonVariant;
|
|
12
|
+
height?: number;
|
|
13
|
+
};
|
|
14
|
+
export type ChartV2NoDataProps = {
|
|
15
|
+
title?: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
slot?: ReactNode;
|
|
18
|
+
button?: ButtonProps;
|
|
19
|
+
};
|
|
20
|
+
export type ChartV2Props = Omit<ChartV2ReactProps, 'className' | 'style'> & {
|
|
21
|
+
highcharts?: ChartV2Type;
|
|
22
|
+
skeleton?: ChartV2SkeletonProps;
|
|
23
|
+
noData?: ChartV2NoDataProps;
|
|
24
|
+
};
|
|
25
|
+
export type ChartV2Options = Highcharts.Options;
|
|
26
|
+
export type ChartV2SeriesOptionsType = Highcharts.SeriesOptionsType;
|
|
27
|
+
export type ChartV2SeriesLineOptions = Highcharts.SeriesLineOptions;
|
|
28
|
+
export type ChartV2SeriesColumnOptions = Highcharts.SeriesColumnOptions;
|
|
29
|
+
export type ChartV2SeriesBarOptions = Highcharts.SeriesBarOptions;
|
|
30
|
+
export type ChartV2SeriesPieOptions = Highcharts.SeriesPieOptions;
|
|
31
|
+
export type ChartV2SeriesScatterOptions = Highcharts.SeriesScatterOptions;
|
|
32
|
+
export type ChartV2SeriesSankeyOptions = Highcharts.SeriesSankeyOptions;
|
|
33
|
+
export type ChartV2SeriesAreaOptions = Highcharts.SeriesAreaOptions;
|
|
34
|
+
export type ChartV2SeriesXrangeOptions = Highcharts.SeriesXrangeOptions;
|
|
35
|
+
export type ChartV2Point = Highcharts.Point;
|
|
36
|
+
export type ChartV2PointMarkerOptionsObject = Highcharts.PointMarkerOptionsObject;
|
|
37
|
+
export type ChartV2XAxisOptions = Highcharts.XAxisOptions;
|
|
38
|
+
export type ChartV2YAxisOptions = Highcharts.YAxisOptions;
|
|
39
|
+
export type ChartV2 = Highcharts.Chart;
|
|
40
|
+
export type ChartV2Axis = Highcharts.Axis;
|
|
41
|
+
export type ChartV2Series = Highcharts.Series;
|
|
42
|
+
export type ChartV2SeriesZonesOptionsObject = Highcharts.SeriesZonesOptionsObject;
|
|
43
|
+
export type ChartV2ReactRefObject = HighchartsReactRefObject;
|
|
44
|
+
export interface ChartV2ContainerProps {
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
}
|
|
47
|
+
export interface ChartV2HeaderProps {
|
|
48
|
+
children: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
export type ChartV2LegendItem = Highcharts.Series | Highcharts.Point;
|
|
51
|
+
export interface ChartV2CustomLegendItem {
|
|
52
|
+
key: string;
|
|
53
|
+
name: string;
|
|
54
|
+
color?: string;
|
|
55
|
+
value?: string | number;
|
|
56
|
+
}
|
|
57
|
+
export interface ChartV2LegendProps {
|
|
58
|
+
/** Single chart ref (use when legend controls one chart). */
|
|
59
|
+
chartRef?: RefObject<ChartV2ReactRefObject | null>;
|
|
60
|
+
/** Multiple chart refs (use for shared legend; visibility and hover sync across all). */
|
|
61
|
+
chartRefs?: ReadonlyArray<RefObject<ChartV2ReactRefObject | null>>;
|
|
62
|
+
customLegendItems?: ChartV2CustomLegendItem[];
|
|
63
|
+
renderItem?: (params: {
|
|
64
|
+
item: ChartV2LegendItem;
|
|
65
|
+
name: string;
|
|
66
|
+
visible: boolean;
|
|
67
|
+
color: string;
|
|
68
|
+
value?: string | number;
|
|
69
|
+
onClick: () => void;
|
|
70
|
+
}) => ReactNode;
|
|
71
|
+
layout?: 'horizontal' | 'vertical';
|
|
72
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as ChartV2 } from './ChartV2';
|
|
2
|
+
export { default as ChartV2Legend } from './ChartV2Legend';
|
|
3
|
+
export { default as ChartContainerV2 } from './ChartContainerV2';
|
|
4
|
+
export { default as ChartHeaderV2 } from './ChartHeaderV2';
|
|
5
|
+
export { default as ChartV2Fullscreen } from './ChartV2Fullscreen';
|
|
6
|
+
export { default as ChartV2Skeleton } from './ChartV2Skeleton';
|
|
7
|
+
export { default as ChartV2NoData } from './ChartV2NoData';
|
|
8
|
+
export * from './chartV2.tokens';
|
|
9
|
+
export * from './chartV2.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartV2LegendProps } from './chartV2.types';
|
|
2
|
+
export declare function useChartLegend(chartRef: ChartV2LegendProps['chartRef'], chartRefs: ChartV2LegendProps['chartRefs']): {
|
|
3
|
+
hoveredItem: import('./chartV2.types').ChartV2LegendItem | null;
|
|
4
|
+
setHoveredItem: import('react').Dispatch<import('react').SetStateAction<import('./chartV2.types').ChartV2LegendItem | null>>;
|
|
5
|
+
allItems: import('./chartV2.types').ChartV2LegendItem[];
|
|
6
|
+
handleClick: (item: import('./chartV2.types').ChartV2LegendItem, itemIndex: number) => void;
|
|
7
|
+
chart: import('highcharts').Chart;
|
|
8
|
+
charts: import('highcharts').Chart[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartV2, ChartV2LegendItem } from './chartV2.types';
|
|
2
|
+
export declare const useChartLegendHover: (chart: ChartV2 | null, charts: ChartV2[]) => {
|
|
3
|
+
hoveredItem: ChartV2LegendItem | null;
|
|
4
|
+
setHoveredItem: import('react').Dispatch<import('react').SetStateAction<ChartV2LegendItem | null>>;
|
|
5
|
+
allItems: ChartV2LegendItem[];
|
|
6
|
+
handleClick: (item: ChartV2LegendItem, itemIndex: number) => void;
|
|
7
|
+
};
|
|
@@ -4,6 +4,7 @@ export declare const getDocIcon: (fileType: AttachedFile["type"]) => React.React
|
|
|
4
4
|
declare const ChatInput: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
slot1?: React.ReactNode;
|
|
7
|
+
slot2?: React.ReactNode;
|
|
7
8
|
onChange?: (value: string) => void;
|
|
8
9
|
onSend?: (message: string, files: AttachedFile[]) => void;
|
|
9
10
|
onAttachFiles?: (files: File[]) => void;
|
|
@@ -70,10 +70,7 @@ export type ChatInputTokensType = Readonly<{
|
|
|
70
70
|
focus: CSSObject['border'];
|
|
71
71
|
};
|
|
72
72
|
borderRadius: CSSObject['borderRadius'];
|
|
73
|
-
|
|
74
|
-
paddingRight: CSSObject['paddingRight'];
|
|
75
|
-
paddingBottom: CSSObject['paddingBottom'];
|
|
76
|
-
paddingLeft: CSSObject['paddingLeft'];
|
|
73
|
+
padding: CSSObject['padding'];
|
|
77
74
|
gap: CSSObject['gap'];
|
|
78
75
|
minHeight: CSSObject['minHeight'];
|
|
79
76
|
transition: CSSObject['transition'];
|
|
@@ -93,8 +90,10 @@ export type ChatInputTokensType = Readonly<{
|
|
|
93
90
|
color: CSSObject['color'];
|
|
94
91
|
fontSize: CSSObject['fontSize'];
|
|
95
92
|
lineHeight: CSSObject['lineHeight'];
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
paddingTop: CSSObject['paddingTop'];
|
|
94
|
+
paddingRight: CSSObject['paddingRight'];
|
|
95
|
+
paddingBottom: CSSObject['paddingBottom'];
|
|
96
|
+
paddingLeft: CSSObject['paddingLeft'];
|
|
98
97
|
border: CSSObject['border'];
|
|
99
98
|
borderRadius: CSSObject['borderRadius'];
|
|
100
99
|
placeholder: {
|
|
@@ -112,6 +111,7 @@ export type ChatInputTokensType = Readonly<{
|
|
|
112
111
|
paddingY: CSSObject['padding'];
|
|
113
112
|
maxHeight: CSSObject['maxHeight'];
|
|
114
113
|
overflowY: CSSObject['overflowY'];
|
|
114
|
+
margin: CSSObject['margin'];
|
|
115
115
|
};
|
|
116
116
|
bottomActions: {
|
|
117
117
|
paddingX: CSSObject['padding'];
|
|
@@ -158,6 +158,8 @@ export type ChatInputTokensType = Readonly<{
|
|
|
158
158
|
scrollContainer: {
|
|
159
159
|
overflowY: CSSObject['overflowY'];
|
|
160
160
|
maxHeightOffset: number;
|
|
161
|
+
backgroundColor: CSSObject['backgroundColor'];
|
|
162
|
+
scrollbarColor: string;
|
|
161
163
|
};
|
|
162
164
|
item: {
|
|
163
165
|
backgroundColor: {
|
|
@@ -15,6 +15,7 @@ export type TopQuery = {
|
|
|
15
15
|
export type ChatInputProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'value'> & {
|
|
16
16
|
value?: string;
|
|
17
17
|
slot1?: ReactNode;
|
|
18
|
+
slot2?: ReactNode;
|
|
18
19
|
onChange?: (value: string) => void;
|
|
19
20
|
onSend?: (message: string, files: AttachedFile[]) => void;
|
|
20
21
|
onAttachFiles?: (files: File[]) => void;
|
|
@@ -16,6 +16,8 @@ export type TableBodyProps<T extends Record<string, unknown>> = {
|
|
|
16
16
|
enableRowSelection?: boolean;
|
|
17
17
|
rowActions?: RowActionsConfig<T>;
|
|
18
18
|
columnFreeze?: number;
|
|
19
|
+
/** Measured pixel widths of frozen columns (from header ResizeObserver). Used for sticky left offset. */
|
|
20
|
+
measuredFrozenWidths?: number[];
|
|
19
21
|
mobileConfig?: MobileDataTableConfig;
|
|
20
22
|
mobileOverflowColumns?: ColumnDefinition<T>[];
|
|
21
23
|
onMobileOverflowClick?: (row: T) => void;
|
|
@@ -55,4 +55,8 @@ export type TableHeaderProps<T extends Record<string, unknown>> = {
|
|
|
55
55
|
}>;
|
|
56
56
|
onHeaderChange?: (field: keyof T, newHeader: string) => void;
|
|
57
57
|
getColumnWidth: (column: ColumnDefinition<T>, index: number) => React.CSSProperties;
|
|
58
|
+
/** Measured pixel widths of frozen columns (from ResizeObserver). Used for sticky left offset. */
|
|
59
|
+
measuredFrozenWidths?: number[];
|
|
60
|
+
/** Called when frozen column header cells are measured so left offsets can use content-based widths. */
|
|
61
|
+
onFrozenWidthsMeasured?: (widths: number[]) => void;
|
|
58
62
|
};
|
|
@@ -17,7 +17,8 @@ export declare const filterItemsBySearch: (items: Array<{
|
|
|
17
17
|
value: string;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const getPopoverAlignment: (index: number, totalColumns: number) => "start" | "center" | "end";
|
|
20
|
-
export declare
|
|
20
|
+
export declare function getFrozenLeftOffset(index: number, _columnFreeze: number, enableRowExpansion: boolean, enableRowSelection: boolean, visibleColumns: ColumnDefinition<Record<string, unknown>>[], getColumnWidth: (column: ColumnDefinition<Record<string, unknown>>, i: number) => React.CSSProperties, measuredFrozenWidths?: number[]): number;
|
|
21
|
+
export declare const getFrozenColumnStyles: (index: number, columnFreeze: number, enableRowExpansion: boolean, enableRowSelection: boolean, visibleColumns: ColumnDefinition<Record<string, unknown>>[], getColumnWidth: (column: ColumnDefinition<Record<string, unknown>>, index: number) => React.CSSProperties, backgroundColor: string, measuredFrozenWidths?: number[]) => {
|
|
21
22
|
padding: string;
|
|
22
23
|
} | {
|
|
23
24
|
borderRight?: string | undefined;
|
|
@@ -26,8 +27,9 @@ export declare const getFrozenColumnStyles: (index: number, columnFreeze: number
|
|
|
26
27
|
zIndex: number;
|
|
27
28
|
backgroundColor: string;
|
|
28
29
|
padding: string;
|
|
29
|
-
width: string;
|
|
30
30
|
minWidth: string;
|
|
31
31
|
maxWidth: string;
|
|
32
|
+
width: string;
|
|
32
33
|
boxSizing: "border-box";
|
|
34
|
+
overflow: string;
|
|
33
35
|
};
|
|
@@ -14,6 +14,7 @@ type CalendarGridProps = {
|
|
|
14
14
|
resetScrollPosition?: number;
|
|
15
15
|
timezone?: string;
|
|
16
16
|
isSingleDatePicker?: boolean;
|
|
17
|
+
maxYearOffset?: number;
|
|
17
18
|
};
|
|
18
19
|
declare const CalendarGrid: import('react').ForwardRefExoticComponent<CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
20
|
export default CalendarGrid;
|
|
@@ -282,6 +282,7 @@ export type DateRangePickerProps = {
|
|
|
282
282
|
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
283
283
|
*/
|
|
284
284
|
timezone?: string;
|
|
285
|
+
maxYearOffset?: number;
|
|
285
286
|
};
|
|
286
287
|
export type PresetItemProps = {
|
|
287
288
|
preset: DateRangePreset;
|
|
@@ -320,6 +321,7 @@ export type DatePickerComponentProps = {
|
|
|
320
321
|
isDisabled?: boolean;
|
|
321
322
|
disableFutureDates?: boolean;
|
|
322
323
|
disablePastDates?: boolean;
|
|
324
|
+
maxYearOffset?: number;
|
|
323
325
|
};
|
|
324
326
|
export type MobileDrawerPresetsProps = {
|
|
325
327
|
drawerOpen: boolean;
|
|
@@ -346,4 +348,5 @@ export type MobileDrawerPresetsProps = {
|
|
|
346
348
|
applyDisabledMessage?: string;
|
|
347
349
|
disableFutureDates?: boolean;
|
|
348
350
|
disablePastDates?: boolean;
|
|
351
|
+
maxYearOffset?: number;
|
|
349
352
|
};
|
|
@@ -537,7 +537,7 @@ export declare const calculateDayCellProps: (date: Date, selectedRange: DateRang
|
|
|
537
537
|
* @param endTime Current end time
|
|
538
538
|
* @returns Object with picker data for all columns
|
|
539
539
|
*/
|
|
540
|
-
export declare const generatePickerData: (tabType: "start" | "end", selectedRange?: DateRange, startTime?: string, endTime?: string) => {
|
|
540
|
+
export declare const generatePickerData: (tabType: "start" | "end", selectedRange?: DateRange, startTime?: string, endTime?: string, maxYearOffset?: number) => {
|
|
541
541
|
years: {
|
|
542
542
|
items: number[];
|
|
543
543
|
selectedIndex: number;
|
|
@@ -568,7 +568,7 @@ export declare const generatePickerData: (tabType: "start" | "end", selectedRang
|
|
|
568
568
|
* @param setEndDate End date setter function
|
|
569
569
|
* @returns Selection handler function
|
|
570
570
|
*/
|
|
571
|
-
export declare const createSelectionHandler: (tabType: "start" | "end", type: "year" | "month" | "date" | "time", dateFormat: string, handleStartTimeChange: (time: string) => void, handleEndTimeChange: (time: string) => void, setSelectedRange: (range: DateRange) => void, setStartDate: (date: string) => void, setEndDate: (date: string) => void, selectedRange?: DateRange) => (index: number) => void;
|
|
571
|
+
export declare const createSelectionHandler: (tabType: "start" | "end", type: "year" | "month" | "date" | "time", dateFormat: string, handleStartTimeChange: (time: string) => void, handleEndTimeChange: (time: string) => void, setSelectedRange: (range: DateRange) => void, setStartDate: (date: string) => void, setEndDate: (date: string) => void, selectedRange?: DateRange, maxYearOffset?: number) => (index: number) => void;
|
|
572
572
|
/**
|
|
573
573
|
* Gets preset display label with custom mappings
|
|
574
574
|
* @param preset The preset to get label for
|
|
@@ -141,7 +141,7 @@ export type MultiSelectMenuProps = {
|
|
|
141
141
|
searchPlaceholder?: string;
|
|
142
142
|
enableSelectAll?: boolean;
|
|
143
143
|
selectAllText?: string;
|
|
144
|
-
onSelectAll?: (selectAll: boolean) => void;
|
|
144
|
+
onSelectAll?: (selectAll: boolean, filteredItems: MultiSelectMenuGroupType[]) => void;
|
|
145
145
|
maxSelections?: number;
|
|
146
146
|
alignment?: MultiSelectMenuAlignment;
|
|
147
147
|
side?: MultiSelectMenuSide;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SelectorV2Size } from '../../SelectorV2/selectorV2.types';
|
|
2
|
+
declare const CheckboxV2: import('react').ForwardRefExoticComponent<{
|
|
3
|
+
checked?: boolean | "indeterminate";
|
|
4
|
+
onCheckedChange?: (checked: boolean | "indeterminate") => void;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
subLabel?: string;
|
|
9
|
+
size?: SelectorV2Size;
|
|
10
|
+
slot?: {
|
|
11
|
+
slot: import('react').ReactElement;
|
|
12
|
+
maxHeight?: import('styled-components').CSSObject["maxHeight"];
|
|
13
|
+
};
|
|
14
|
+
maxLength?: {
|
|
15
|
+
label?: number;
|
|
16
|
+
subLabel?: number;
|
|
17
|
+
};
|
|
18
|
+
} & Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "style" | "className" | "slot" | "onChange"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default CheckboxV2;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectorV2Size } from '../../SelectorV2/selectorV2.types';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
export declare const StyledCheckboxRoot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<CheckboxPrimitive.CheckboxProps & import('react').RefAttributes<HTMLButtonElement>, {
|
|
4
|
+
size: SelectorV2Size;
|
|
5
|
+
$isDisabled: boolean;
|
|
6
|
+
$checked: boolean | "indeterminate";
|
|
7
|
+
$error?: boolean;
|
|
8
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<CheckboxPrimitive.CheckboxProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
|
|
9
|
+
export declare const StyledCheckboxIndicator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<CheckboxPrimitive.CheckboxIndicatorProps & import('react').RefAttributes<HTMLSpanElement>, {
|
|
10
|
+
size: SelectorV2Size;
|
|
11
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<CheckboxPrimitive.CheckboxIndicatorProps & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|