@tqc-solution/design-system 0.1.73
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 +207 -0
- package/dist/assets/icon/IconAi.d.ts +3 -0
- package/dist/assets/icon/IconAlertTriangleSolid.d.ts +3 -0
- package/dist/assets/icon/IconAudio.d.ts +3 -0
- package/dist/assets/icon/IconCalendar.d.ts +3 -0
- package/dist/assets/icon/IconCaretDown.d.ts +3 -0
- package/dist/assets/icon/IconCheck.d.ts +3 -0
- package/dist/assets/icon/IconCheckCircleSolid.d.ts +3 -0
- package/dist/assets/icon/IconChevronLeft.d.ts +3 -0
- package/dist/assets/icon/IconChevronRight.d.ts +3 -0
- package/dist/assets/icon/IconCircleArrowLeftSolid.d.ts +3 -0
- package/dist/assets/icon/IconCircleArrowRightSolid.d.ts +3 -0
- package/dist/assets/icon/IconClock.d.ts +3 -0
- package/dist/assets/icon/IconClose.d.ts +3 -0
- package/dist/assets/icon/IconCloseCircleSolid.d.ts +3 -0
- package/dist/assets/icon/IconColumns.d.ts +3 -0
- package/dist/assets/icon/IconCopy.d.ts +3 -0
- package/dist/assets/icon/IconDelete.d.ts +3 -0
- package/dist/assets/icon/IconDocument.d.ts +3 -0
- package/dist/assets/icon/IconExcel.d.ts +3 -0
- package/dist/assets/icon/IconEye.d.ts +3 -0
- package/dist/assets/icon/IconEyeSlash.d.ts +3 -0
- package/dist/assets/icon/IconFile.d.ts +3 -0
- package/dist/assets/icon/IconFolder.d.ts +3 -0
- package/dist/assets/icon/IconImg.d.ts +3 -0
- package/dist/assets/icon/IconInfoSolid.d.ts +3 -0
- package/dist/assets/icon/IconPdf.d.ts +3 -0
- package/dist/assets/icon/IconPowerPoint.d.ts +3 -0
- package/dist/assets/icon/IconPts.d.ts +3 -0
- package/dist/assets/icon/IconSearch.d.ts +3 -0
- package/dist/assets/icon/IconSmallCaretRightSolid.d.ts +3 -0
- package/dist/assets/icon/IconTemplate.d.ts +3 -0
- package/dist/assets/icon/IconTxt.d.ts +3 -0
- package/dist/assets/icon/IconUpload.d.ts +3 -0
- package/dist/assets/icon/IconVideo.d.ts +3 -0
- package/dist/assets/icon/IconWord.d.ts +3 -0
- package/dist/assets/icon/IconZip.d.ts +3 -0
- package/dist/components/Alert/Alert.d.ts +13 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +37 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +37 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/CardTable/CardTable.d.ts +87 -0
- package/dist/components/CardTable/index.d.ts +2 -0
- package/dist/components/Chart/BarChart/BarChart.d.ts +40 -0
- package/dist/components/Chart/BarChart/index.d.ts +2 -0
- package/dist/components/Chart/HorizontalBarChart/HorizontalBarChart.d.ts +32 -0
- package/dist/components/Chart/HorizontalBarChart/index.d.ts +2 -0
- package/dist/components/Chart/LineChart/LineChart.d.ts +48 -0
- package/dist/components/Chart/LineChart/index.d.ts +2 -0
- package/dist/components/Chart/MultiLineAndBarChart/MultiLineAndBarChart.d.ts +57 -0
- package/dist/components/Chart/MultiLineAndBarChart/index.d.ts +2 -0
- package/dist/components/Chart/MultilineChart/MultilineChart.d.ts +25 -0
- package/dist/components/Chart/MultilineChart/index.d.ts +2 -0
- package/dist/components/Chart/PieChart/PieChart.d.ts +20 -0
- package/dist/components/Chart/PieChart/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker/DatePicker.d.ts +24 -0
- package/dist/components/DatePicker/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/dist/components/DatePicker/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/MonthPicker/MonthPicker.d.ts +20 -0
- package/dist/components/DatePicker/MonthPicker/index.d.ts +2 -0
- package/dist/components/DatePicker/TimePicker/TimePicker.d.ts +20 -0
- package/dist/components/DatePicker/TimePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/YearPicker/YearPicker.d.ts +20 -0
- package/dist/components/DatePicker/YearPicker/index.d.ts +2 -0
- package/dist/components/Editor/Editor.d.ts +16 -0
- package/dist/components/Editor/index.d.ts +2 -0
- package/dist/components/EditorHtml/EditorHtml.d.ts +35 -0
- package/dist/components/EditorHtml/index.d.ts +2 -0
- package/dist/components/EditorJs/EditorJs.d.ts +35 -0
- package/dist/components/EditorJs/index.d.ts +2 -0
- package/dist/components/Input/InputForm/InputForm.d.ts +42 -0
- package/dist/components/Input/InputForm/index.d.ts +2 -0
- package/dist/components/Input/InputFormSpecial/InputFormSpecial.d.ts +110 -0
- package/dist/components/Input/InputFormSpecial/index.d.ts +2 -0
- package/dist/components/Input/InputOTP/InputOTP.d.ts +29 -0
- package/dist/components/Input/InputOTP/index.d.ts +2 -0
- package/dist/components/Input/InputSearch/InputSearch.d.ts +34 -0
- package/dist/components/Input/InputSearch/index.d.ts +2 -0
- package/dist/components/InputText/InputText.d.ts +56 -0
- package/dist/components/InputText/index.d.ts +2 -0
- package/dist/components/Loading/Loading.d.ts +19 -0
- package/dist/components/Loading/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +49 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +24 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +21 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.d.ts +17 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +37 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/TabBar/TabBar.d.ts +18 -0
- package/dist/components/TabBar/index.d.ts +2 -0
- package/dist/components/TabBarGroup/TabBarGroup.d.ts +32 -0
- package/dist/components/TabBarGroup/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +45 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Toast/Toast.d.ts +9 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toggle/Toggle.d.ts +17 -0
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +16 -0
- package/dist/components/Typography/index.d.ts +2 -0
- package/dist/components/Upload/Upload.d.ts +49 -0
- package/dist/components/Upload/index.d.ts +2 -0
- package/dist/index-BcEf-eHA.js +228 -0
- package/dist/index-BhBGF4B7.cjs +11 -0
- package/dist/index-DU1rSsif.js +548 -0
- package/dist/index-b5gz6Ifp.cjs +1 -0
- package/dist/index.cjs.js +58 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.es.js +8045 -0
- package/dist/pubfuture.css +188 -0
- package/dist/quill-CqfsVyV-.js +7529 -0
- package/dist/quill-DqFubOCp.cjs +49 -0
- package/dist/tailwind/index.d.ts +4 -0
- package/dist/tailwind/index.js +2 -0
- package/dist/tailwind/pubfuture.preset.d.ts +4 -0
- package/dist/tailwind/pubfuture.preset.js +217 -0
- package/dist/types.d.ts +6 -0
- package/package.json +100 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type BarChartDataPoint = {
|
|
2
|
+
category: string | Date | number;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
export type BarChartSeries = {
|
|
6
|
+
data: BarChartDataPoint[];
|
|
7
|
+
color?: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
export type BarChartProps = {
|
|
11
|
+
series: BarChartSeries[];
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
padding?: {
|
|
16
|
+
top?: number;
|
|
17
|
+
right?: number;
|
|
18
|
+
bottom?: number;
|
|
19
|
+
left?: number;
|
|
20
|
+
};
|
|
21
|
+
showGrid?: boolean;
|
|
22
|
+
showTooltip?: boolean;
|
|
23
|
+
showLegend?: boolean;
|
|
24
|
+
tooltipShowAll?: boolean;
|
|
25
|
+
yAxis?: {
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
label?: string;
|
|
29
|
+
formatLabel?: (value: number) => string;
|
|
30
|
+
};
|
|
31
|
+
title?: string;
|
|
32
|
+
barGap?: number;
|
|
33
|
+
groupGap?: number;
|
|
34
|
+
formatXLabel?: (value: string | Date | number, index: number) => string;
|
|
35
|
+
xAxisLabels?: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const BarChart: {
|
|
38
|
+
({ series, width, height, className, padding, showGrid, showTooltip, showLegend, tooltipShowAll, yAxis, title, barGap, groupGap, formatXLabel, xAxisLabels, }: BarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type HorizontalBarChartDataPoint = {
|
|
2
|
+
category: string;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
export type HorizontalBarChartProps = {
|
|
6
|
+
data: HorizontalBarChartDataPoint[];
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
padding?: {
|
|
11
|
+
top?: number;
|
|
12
|
+
right?: number;
|
|
13
|
+
bottom?: number;
|
|
14
|
+
left?: number;
|
|
15
|
+
};
|
|
16
|
+
showGrid?: boolean;
|
|
17
|
+
showTooltip?: boolean;
|
|
18
|
+
xAxis?: {
|
|
19
|
+
min?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
label?: string;
|
|
22
|
+
formatLabel?: (value: number) => string;
|
|
23
|
+
tickInterval?: number;
|
|
24
|
+
};
|
|
25
|
+
title?: string;
|
|
26
|
+
barColor?: string;
|
|
27
|
+
barColors?: string[];
|
|
28
|
+
};
|
|
29
|
+
export declare const HorizontalBarChart: {
|
|
30
|
+
({ data, width, height, className, padding, showGrid, showTooltip, xAxis, title, barColor, barColors, }: HorizontalBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type LineChartDataPoint = {
|
|
2
|
+
x: number | string | Date;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export type LineChartSeries = {
|
|
6
|
+
data: LineChartDataPoint[];
|
|
7
|
+
color?: string | null;
|
|
8
|
+
label?: string;
|
|
9
|
+
showArea?: boolean;
|
|
10
|
+
showMarkers?: boolean;
|
|
11
|
+
yAxis?: 'left' | 'right';
|
|
12
|
+
};
|
|
13
|
+
export type LineChartProps = {
|
|
14
|
+
series: LineChartSeries[];
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
padding?: {
|
|
19
|
+
top?: number;
|
|
20
|
+
right?: number;
|
|
21
|
+
bottom?: number;
|
|
22
|
+
left?: number;
|
|
23
|
+
};
|
|
24
|
+
showGrid?: boolean;
|
|
25
|
+
showTooltip?: boolean;
|
|
26
|
+
showLegend?: boolean;
|
|
27
|
+
tooltipShowAll?: boolean;
|
|
28
|
+
xAxisLabels?: string[];
|
|
29
|
+
formatXLabel?: (value: number | string | Date, index: number) => string;
|
|
30
|
+
yAxisLeft?: {
|
|
31
|
+
min?: number;
|
|
32
|
+
max?: number;
|
|
33
|
+
label?: string;
|
|
34
|
+
formatLabel?: (value: number) => string;
|
|
35
|
+
scale?: 'linear' | 'log';
|
|
36
|
+
};
|
|
37
|
+
yAxisRight?: {
|
|
38
|
+
min?: number;
|
|
39
|
+
max?: number;
|
|
40
|
+
label?: string;
|
|
41
|
+
formatLabel?: (value: number) => string;
|
|
42
|
+
scale?: 'linear' | 'log';
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const LineChart: {
|
|
46
|
+
({ series, width, height, className, padding, showGrid, showTooltip, showLegend, tooltipShowAll, xAxisLabels, formatXLabel, yAxisLeft, yAxisRight, }: LineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type MultiLineAndBarChartDataPoint = {
|
|
2
|
+
x: number | string | Date;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export type MultiLineAndBarChartSeries = {
|
|
6
|
+
data: MultiLineAndBarChartDataPoint[];
|
|
7
|
+
color?: string | null;
|
|
8
|
+
label?: string;
|
|
9
|
+
showMarkers?: boolean;
|
|
10
|
+
yAxis?: 'left' | 'right' | 'right2';
|
|
11
|
+
chartType?: 'bar' | 'line';
|
|
12
|
+
};
|
|
13
|
+
export type MultiLineAndBarChartProps = {
|
|
14
|
+
series: MultiLineAndBarChartSeries[];
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
padding?: {
|
|
19
|
+
top?: number;
|
|
20
|
+
right?: number;
|
|
21
|
+
bottom?: number;
|
|
22
|
+
left?: number;
|
|
23
|
+
};
|
|
24
|
+
showGrid?: boolean;
|
|
25
|
+
showTooltip?: boolean;
|
|
26
|
+
showLegend?: boolean;
|
|
27
|
+
tooltipShowAll?: boolean;
|
|
28
|
+
xAxisLabels?: string[];
|
|
29
|
+
formatXLabel?: (value: number | string | Date, index: number) => string;
|
|
30
|
+
yAxisLeft?: {
|
|
31
|
+
min?: number;
|
|
32
|
+
max?: number;
|
|
33
|
+
label?: string;
|
|
34
|
+
formatLabel?: (value: number) => string;
|
|
35
|
+
scale?: 'linear' | 'log';
|
|
36
|
+
};
|
|
37
|
+
yAxisRight?: {
|
|
38
|
+
min?: number;
|
|
39
|
+
max?: number;
|
|
40
|
+
label?: string;
|
|
41
|
+
formatLabel?: (value: number) => string;
|
|
42
|
+
scale?: 'linear' | 'log';
|
|
43
|
+
};
|
|
44
|
+
yAxisRight2?: {
|
|
45
|
+
min?: number;
|
|
46
|
+
max?: number;
|
|
47
|
+
label?: string;
|
|
48
|
+
formatLabel?: (value: number) => string;
|
|
49
|
+
scale?: 'linear' | 'log';
|
|
50
|
+
};
|
|
51
|
+
barGap?: number;
|
|
52
|
+
groupGap?: number;
|
|
53
|
+
};
|
|
54
|
+
export declare const MultiLineAndBarChart: {
|
|
55
|
+
({ series, width, height, className, padding, showGrid, showTooltip, showLegend, tooltipShowAll, xAxisLabels, formatXLabel, yAxisLeft, yAxisRight, yAxisRight2, }: MultiLineAndBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { LineChartProps, LineChartSeries, LineChartDataPoint } from '../LineChart';
|
|
2
|
+
export type MultilineChartDataPoint = LineChartDataPoint;
|
|
3
|
+
export type MultilineChartSeries = LineChartSeries;
|
|
4
|
+
export type MultilineChartProps = Omit<LineChartProps, 'series' | 'yAxisLeft' | 'yAxisRight'> & {
|
|
5
|
+
series: MultilineChartSeries[];
|
|
6
|
+
tooltipShowAll?: boolean;
|
|
7
|
+
yAxisLeft?: {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
formatLabel?: (value: number) => string;
|
|
12
|
+
scale?: 'linear' | 'log';
|
|
13
|
+
};
|
|
14
|
+
yAxisRight?: {
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
label?: string;
|
|
18
|
+
formatLabel?: (value: number) => string;
|
|
19
|
+
scale?: 'linear' | 'log';
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const MultilineChart: {
|
|
23
|
+
({ series, width, height, className, padding, showGrid, showTooltip, showLegend, tooltipShowAll, xAxisLabels, formatXLabel, yAxisLeft, yAxisRight, ...restProps }: MultilineChartProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PieChartDataItem = {
|
|
2
|
+
value: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
export type PieChartProps = {
|
|
7
|
+
data?: PieChartDataItem[];
|
|
8
|
+
size?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
showLegend?: boolean;
|
|
11
|
+
legendOrientation?: 'horizontal' | 'vertical';
|
|
12
|
+
showTooltip?: boolean;
|
|
13
|
+
tooltipShowAll?: boolean;
|
|
14
|
+
variant?: 'pie' | 'donut';
|
|
15
|
+
innerRadius?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const PieChart: {
|
|
18
|
+
({ data, size, className, showLegend, legendOrientation, showTooltip, tooltipShowAll, variant, innerRadius, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> & {
|
|
3
|
+
/** Checkbox label text */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Show/hide label */
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
/** Indeterminate state (partially checked) */
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
/** Additional CSS class name */
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
|
|
13
|
+
/** Checkbox label text */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Show/hide label */
|
|
16
|
+
showLabel?: boolean;
|
|
17
|
+
/** Indeterminate state (partially checked) */
|
|
18
|
+
indeterminate?: boolean;
|
|
19
|
+
/** Additional CSS class name */
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
export interface DatePickerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
suffixIcon?: ReactNode;
|
|
6
|
+
showOkButton?: boolean;
|
|
7
|
+
value?: Dayjs | null;
|
|
8
|
+
onChange?: (date: Dayjs | null, dateString: string | string[] | null) => void;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
format?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
allowClear?: boolean;
|
|
15
|
+
defaultValue?: Dayjs | null;
|
|
16
|
+
disabledDate?: (date: Dayjs) => boolean;
|
|
17
|
+
showToday?: boolean;
|
|
18
|
+
showTime?: boolean | object;
|
|
19
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
width?: string | number;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
type RangeValue = [Dayjs | null, Dayjs | null] | null;
|
|
4
|
+
export interface DateRangePickerProps {
|
|
5
|
+
width?: string | number;
|
|
6
|
+
className?: string;
|
|
7
|
+
suffixIcon?: ReactNode;
|
|
8
|
+
showPresets?: boolean;
|
|
9
|
+
hideSeparator?: boolean;
|
|
10
|
+
presetsPosition?: 'right' | 'bottom' | 'left';
|
|
11
|
+
needConfirm?: boolean;
|
|
12
|
+
showLabel?: string;
|
|
13
|
+
presets?: Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
value: [Dayjs, Dayjs];
|
|
16
|
+
}>;
|
|
17
|
+
value?: RangeValue;
|
|
18
|
+
onChange?: (dates: RangeValue, dateStrings: [string, string]) => void;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
placeholder?: string | [string, string];
|
|
22
|
+
format?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
allowClear?: boolean;
|
|
25
|
+
defaultValue?: RangeValue;
|
|
26
|
+
disabledDate?: (date: Dayjs) => boolean;
|
|
27
|
+
showTime?: boolean | object;
|
|
28
|
+
showTwoMonths?: boolean;
|
|
29
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
30
|
+
dropdownPosition?: 'top' | 'bottom' | 'right' | 'left';
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
export declare const DateRangePicker: React.ForwardRefExoticComponent<Omit<DateRangePickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
export interface MonthPickerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
format?: string;
|
|
6
|
+
suffixIcon?: ReactNode;
|
|
7
|
+
showOkButton?: boolean;
|
|
8
|
+
value?: Dayjs | null;
|
|
9
|
+
onChange?: (date: Dayjs | null, dateString: string | string[] | null) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
allowClear?: boolean;
|
|
15
|
+
defaultValue?: Dayjs | null;
|
|
16
|
+
disabledDate?: (date: Dayjs) => boolean;
|
|
17
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export declare const MonthPicker: React.ForwardRefExoticComponent<Omit<MonthPickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Dayjs } from 'dayjs';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
export interface TimePickerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
format?: string;
|
|
6
|
+
suffixIcon?: ReactNode;
|
|
7
|
+
showSecond?: boolean;
|
|
8
|
+
value?: Dayjs | null;
|
|
9
|
+
onChange?: (time: Dayjs | null, timeString: string) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
allowClear?: boolean;
|
|
15
|
+
defaultValue?: Dayjs | null;
|
|
16
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
+
needConfirm?: boolean;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export declare const TimePicker: React.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import React, { type ReactNode } from 'react';
|
|
3
|
+
export interface YearPickerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
format?: string;
|
|
6
|
+
suffixIcon?: ReactNode;
|
|
7
|
+
showOkButton?: boolean;
|
|
8
|
+
value?: Dayjs | null;
|
|
9
|
+
onChange?: (date: Dayjs | null, dateString: string | string[] | null) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
allowClear?: boolean;
|
|
15
|
+
defaultValue?: Dayjs | null;
|
|
16
|
+
disabledDate?: (date: Dayjs) => boolean;
|
|
17
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export declare const YearPicker: React.ForwardRefExoticComponent<Omit<YearPickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import 'react-quill-new/dist/quill.snow.css';
|
|
2
|
+
type ReactQuillProps = any;
|
|
3
|
+
export type EditorProps = Omit<ReactQuillProps, 'ref'> & {
|
|
4
|
+
/** Additional CSS class name */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Placeholder text */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** Editor height */
|
|
9
|
+
height?: string;
|
|
10
|
+
/** Disabled state */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Show character and word count */
|
|
13
|
+
showCount?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const Editor: import("react").ForwardRefExoticComponent<Omit<EditorProps, "ref"> & import("react").RefAttributes<any>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as Monaco from 'monaco-editor';
|
|
2
|
+
export type EditorHtmlProps = {
|
|
3
|
+
/** HTML content value */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** Callback when content changes */
|
|
6
|
+
onChange?: (value: string | undefined) => void;
|
|
7
|
+
/** Additional CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Placeholder text */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** Editor height */
|
|
12
|
+
height?: string;
|
|
13
|
+
/** Disabled state */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Show line numbers */
|
|
16
|
+
lineNumbers?: boolean;
|
|
17
|
+
/** Word wrap */
|
|
18
|
+
wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded';
|
|
19
|
+
/** Theme: 'vs' (light) or 'vs-dark' (dark) */
|
|
20
|
+
theme?: 'vs' | 'vs-dark';
|
|
21
|
+
/** Font size */
|
|
22
|
+
fontSize?: number;
|
|
23
|
+
/** Tab size */
|
|
24
|
+
tabSize?: number;
|
|
25
|
+
/** Minimap enabled */
|
|
26
|
+
minimap?: boolean;
|
|
27
|
+
/** Auto indentation */
|
|
28
|
+
autoIndent?: boolean;
|
|
29
|
+
/** Callback when editor is mounted */
|
|
30
|
+
onMount?: (editor: Monaco.editor.IStandaloneCodeEditor, monaco: typeof Monaco) => void;
|
|
31
|
+
};
|
|
32
|
+
export declare const EditorHtml: {
|
|
33
|
+
({ value, onChange, placeholder, className, height, disabled, lineNumbers, wordWrap, theme, fontSize, tabSize, minimap, autoIndent, onMount, ...props }: EditorHtmlProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as Monaco from 'monaco-editor';
|
|
2
|
+
export type EditorJsProps = {
|
|
3
|
+
/** JavaScript content value */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** Callback when content changes */
|
|
6
|
+
onChange?: (value: string | undefined) => void;
|
|
7
|
+
/** Additional CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Placeholder text */
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/** Editor height */
|
|
12
|
+
height?: string;
|
|
13
|
+
/** Disabled state */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Show line numbers */
|
|
16
|
+
lineNumbers?: boolean;
|
|
17
|
+
/** Word wrap */
|
|
18
|
+
wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded';
|
|
19
|
+
/** Theme: 'vs' (light) or 'vs-dark' (dark) */
|
|
20
|
+
theme?: 'vs' | 'vs-dark';
|
|
21
|
+
/** Font size */
|
|
22
|
+
fontSize?: number;
|
|
23
|
+
/** Tab size */
|
|
24
|
+
tabSize?: number;
|
|
25
|
+
/** Minimap enabled */
|
|
26
|
+
minimap?: boolean;
|
|
27
|
+
/** Auto indentation */
|
|
28
|
+
autoIndent?: boolean;
|
|
29
|
+
/** Callback when editor is mounted */
|
|
30
|
+
onMount?: (editor: Monaco.editor.IStandaloneCodeEditor, monaco: typeof Monaco) => void;
|
|
31
|
+
};
|
|
32
|
+
export declare const EditorJs: {
|
|
33
|
+
({ value, onChange, placeholder, className, height, disabled, lineNumbers, wordWrap, theme, fontSize, tabSize, minimap, autoIndent, onMount, ...props }: EditorJsProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type TextareaHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type InputFormType = 'text' | 'textarea';
|
|
3
|
+
export type HelperTextType = 'default' | 'error' | 'success' | 'disabled';
|
|
4
|
+
export type HelperTextConfig = {
|
|
5
|
+
/** Helper text content */
|
|
6
|
+
text: string;
|
|
7
|
+
/** Type of helper text: 'default' | 'error' | 'success' | 'disabled' */
|
|
8
|
+
type?: HelperTextType;
|
|
9
|
+
/** Custom icon for helper text (overrides default icon based on type) */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
type BaseInputFormProps = {
|
|
13
|
+
/** Input type: 'text' for single-line input or 'textarea' for multi-line textarea */
|
|
14
|
+
type?: InputFormType;
|
|
15
|
+
/** Unique identifier for the input field (required for label association) */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Label text displayed above the input */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Whether the field is required (shows asterisk) */
|
|
20
|
+
required?: boolean;
|
|
21
|
+
/** Whether the field is in error state (shows error border and focus styles) */
|
|
22
|
+
error?: boolean;
|
|
23
|
+
/** Helper text configuration */
|
|
24
|
+
helperText?: HelperTextConfig;
|
|
25
|
+
/** Left icon element */
|
|
26
|
+
leftIcon?: ReactNode;
|
|
27
|
+
/** Right icon element */
|
|
28
|
+
rightIcon?: ReactNode;
|
|
29
|
+
/** Callback function called when copy is successful (only for textarea) */
|
|
30
|
+
onCopy?: () => void;
|
|
31
|
+
/** Additional CSS class name */
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
type TextInputProps = BaseInputFormProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'id'> & {
|
|
35
|
+
type?: 'text';
|
|
36
|
+
};
|
|
37
|
+
type TextareaInputProps = BaseInputFormProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'id'> & {
|
|
38
|
+
type: 'textarea';
|
|
39
|
+
};
|
|
40
|
+
export type InputFormProps = TextInputProps | TextareaInputProps;
|
|
41
|
+
export declare const InputForm: import("react").ForwardRefExoticComponent<InputFormProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
42
|
+
export {};
|