@bioturing/components 0.15.4 → 0.16.0
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/Badge/component.js +16 -11
- package/dist/components/Badge/component.js.map +1 -1
- package/dist/components/Breadcrumb/component.js +4 -3
- package/dist/components/Breadcrumb/component.js.map +1 -1
- package/dist/components/Breadcrumb/style.css +1 -1
- package/dist/components/Breadcrumb/useItemRender.js +17 -16
- package/dist/components/Breadcrumb/useItemRender.js.map +1 -1
- package/dist/components/Button/component.js +30 -3
- package/dist/components/Button/component.js.map +1 -1
- package/dist/components/Button/style.css +1 -1
- package/dist/components/CodeBlock/component.js +7 -6
- package/dist/components/CodeBlock/component.js.map +1 -1
- package/dist/components/CodeBlock/style.css +1 -1
- package/dist/components/Collapse/component.js +35 -0
- package/dist/components/Collapse/component.js.map +1 -0
- package/dist/components/Collapse/style.css +1 -0
- package/dist/components/DSRoot/component.js +8 -7
- package/dist/components/DSRoot/component.js.map +1 -1
- package/dist/components/DSRoot/context.js +5 -4
- package/dist/components/DSRoot/context.js.map +1 -1
- package/dist/components/DropdownMenu/component.js +1 -0
- package/dist/components/DropdownMenu/component.js.map +1 -1
- package/dist/components/Field/component.js +13 -12
- package/dist/components/Field/component.js.map +1 -1
- package/dist/components/Form/component.js +4 -3
- package/dist/components/Form/component.js.map +1 -1
- package/dist/components/Form/item.js +1 -0
- package/dist/components/Form/item.js.map +1 -1
- package/dist/components/IconButton/component.js +1 -0
- package/dist/components/IconButton/component.js.map +1 -1
- package/dist/components/Modal/Modal.js +9 -8
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalProvider.js +1 -0
- package/dist/components/Modal/ModalProvider.js.map +1 -1
- package/dist/components/Modal/index.js +11 -10
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Popover/component.js +6 -5
- package/dist/components/Popover/component.js.map +1 -1
- package/dist/components/PopupPanel/component.js +74 -68
- package/dist/components/PopupPanel/component.js.map +1 -1
- package/dist/components/ScrollArea/component.js +10 -9
- package/dist/components/ScrollArea/component.js.map +1 -1
- package/dist/components/Slider/component.js +9 -8
- package/dist/components/Slider/component.js.map +1 -1
- package/dist/components/Splitter/component.js +12 -11
- package/dist/components/Splitter/component.js.map +1 -1
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/StackChild.js +26 -23
- package/dist/components/Stack/StackChild.js.map +1 -1
- package/dist/components/Stack/style.css +1 -1
- package/dist/components/Table/component.js +84 -72
- package/dist/components/Table/component.js.map +1 -1
- package/dist/components/Table/style.css +1 -1
- package/dist/components/Tag/component.js +6 -5
- package/dist/components/Tag/component.js.map +1 -1
- package/dist/components/ThemeProvider/component.js +15 -14
- package/dist/components/ThemeProvider/component.js.map +1 -1
- package/dist/components/Toast/component.js +17 -16
- package/dist/components/Toast/component.js.map +1 -1
- package/dist/components/Toast/function.js +5 -4
- package/dist/components/Toast/function.js.map +1 -1
- package/dist/components/Tooltip/component.js +13 -12
- package/dist/components/Tooltip/component.js.map +1 -1
- package/dist/components/Tour/component.js +5 -4
- package/dist/components/Tour/component.js.map +1 -1
- package/dist/components/Transition/component.js +45 -32
- package/dist/components/Transition/component.js.map +1 -1
- package/dist/components/Tree/components.js +9 -8
- package/dist/components/Tree/components.js.map +1 -1
- package/dist/components/Tree/helpers.js +1 -0
- package/dist/components/Tree/helpers.js.map +1 -1
- package/dist/components/Tree/useTreeCommon.js +12 -11
- package/dist/components/Tree/useTreeCommon.js.map +1 -1
- package/dist/components/Truncate/component.js +1 -0
- package/dist/components/Truncate/component.js.map +1 -1
- package/dist/components/Truncate/style.css +1 -1
- package/dist/components/Upload/component.js +13 -11
- package/dist/components/Upload/component.js.map +1 -1
- package/dist/components/Upload/dragger.js +3 -2
- package/dist/components/Upload/dragger.js.map +1 -1
- package/dist/components/Upload/hooks.js +3 -2
- package/dist/components/Upload/hooks.js.map +1 -1
- package/dist/components/Upload/style.css +1 -0
- package/dist/components/VerticalCollapsiblePanel/component.js +35 -32
- package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -1
- package/dist/components/hooks/antd.js +4 -3
- package/dist/components/hooks/antd.js.map +1 -1
- package/dist/components/hooks/base-ui.js +34 -28
- package/dist/components/hooks/base-ui.js.map +1 -1
- package/dist/components/hooks/useControlledState.js +17 -9
- package/dist/components/hooks/useControlledState.js.map +1 -1
- package/dist/components/utils/WithAntdTokens.js +14 -13
- package/dist/components/utils/WithAntdTokens.js.map +1 -1
- package/dist/components/utils/antdUtils.js +1 -0
- package/dist/components/utils/antdUtils.js.map +1 -1
- package/dist/index.d.ts +131 -77
- package/dist/index.js +166 -157
- package/dist/index.js.map +1 -1
- package/dist/metadata.js +81 -87
- package/dist/metadata.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -44,11 +44,11 @@ import { CheckboxOptionType } from 'antd';
|
|
|
44
44
|
import { CheckboxProps as CheckboxProps_2 } from 'antd';
|
|
45
45
|
import { CheckboxRef } from 'antd';
|
|
46
46
|
import { Col } from 'antd';
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { CollapseProps } from 'antd';
|
|
47
|
+
import { CollapsePanelProps as CollapsePanelProps_2 } from 'antd';
|
|
48
|
+
import { CollapseProps as CollapseProps_2 } from 'antd';
|
|
50
49
|
import { ColorPicker } from 'antd';
|
|
51
50
|
import { ColorPickerProps } from 'antd';
|
|
51
|
+
import { ColorTokenValue as ColorTokenValue_2 } from '..';
|
|
52
52
|
import { ColProps } from 'antd';
|
|
53
53
|
import { ComponentProps } from 'react';
|
|
54
54
|
import { ComponentPropsWithoutRef } from 'react';
|
|
@@ -74,7 +74,7 @@ import { DescriptionsProps } from 'antd';
|
|
|
74
74
|
import { DirectoryTreeProps as DirectoryTreeProps_2 } from 'antd/es/tree';
|
|
75
75
|
import { Divider } from 'antd';
|
|
76
76
|
import { DividerProps } from 'antd';
|
|
77
|
-
import { DraggerProps
|
|
77
|
+
import { DraggerProps } from './dragger';
|
|
78
78
|
import { Drawer } from 'antd';
|
|
79
79
|
import { DrawerProps } from 'antd';
|
|
80
80
|
import { Dropdown } from 'antd';
|
|
@@ -82,7 +82,7 @@ import { DropDownProps } from 'antd';
|
|
|
82
82
|
import { DropdownProps } from 'antd';
|
|
83
83
|
import { ElementType } from 'react';
|
|
84
84
|
import { EmptyProps as EmptyProps_2 } from 'antd/es/empty';
|
|
85
|
-
import { ErrorListProps } from 'antd/es/form
|
|
85
|
+
import { ErrorListProps } from 'antd/es/form';
|
|
86
86
|
import { EventDataNode } from 'antd/es/tree';
|
|
87
87
|
import { FC } from 'react';
|
|
88
88
|
import { Flex } from 'antd';
|
|
@@ -95,13 +95,12 @@ import { FormInstance } from 'antd';
|
|
|
95
95
|
import { FormItemProps as FormItemProps_2 } from 'antd/es/form/FormItem';
|
|
96
96
|
import { FormListFieldData } from 'antd';
|
|
97
97
|
import { FormListOperation } from 'antd';
|
|
98
|
-
import { FormListProps } from 'antd/es/form
|
|
98
|
+
import { FormListProps } from 'antd/es/form';
|
|
99
99
|
import { FormProps } from 'antd';
|
|
100
100
|
import { FormProviderProps } from 'antd/es/form/context';
|
|
101
101
|
import { ForwardedRef } from 'react';
|
|
102
102
|
import { ForwardRefExoticComponent } from 'react';
|
|
103
103
|
import { GlobalToken } from 'antd';
|
|
104
|
-
import { GlobalToken as GlobalToken_2 } from 'antd/es/theme';
|
|
105
104
|
import { Grid } from 'antd';
|
|
106
105
|
import { HighlightProps } from 'prism-react-renderer';
|
|
107
106
|
import { HookAPI } from 'antd/es/modal/useModal';
|
|
@@ -131,7 +130,9 @@ import { message } from 'antd';
|
|
|
131
130
|
import { MessageArgsProps } from 'antd';
|
|
132
131
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
133
132
|
import { ModalFuncProps } from 'antd';
|
|
134
|
-
import { ModalProps
|
|
133
|
+
import { ModalProps } from './Modal';
|
|
134
|
+
import { ModalProps as ModalProps_3 } from 'antd/es/modal';
|
|
135
|
+
import { ModalRef } from './functions';
|
|
135
136
|
import { notification } from 'antd';
|
|
136
137
|
import { NotificationArgsProps } from 'antd';
|
|
137
138
|
import { OptionFC } from 'rc-select/lib/Option';
|
|
@@ -152,7 +153,8 @@ import { QRPropsCanvas } from 'antd';
|
|
|
152
153
|
import { QRPropsSvg } from 'antd';
|
|
153
154
|
import { RadioChangeEvent as RadioChangeEvent_2 } from 'antd/es/radio';
|
|
154
155
|
import { RadioGroupProps as RadioGroupProps_2 } from 'antd/es/radio';
|
|
155
|
-
import { RadioProps as RadioProps_2 } from 'antd
|
|
156
|
+
import { RadioProps as RadioProps_2 } from 'antd';
|
|
157
|
+
import { RadioProps as RadioProps_3 } from 'antd/es/radio';
|
|
156
158
|
import { RadioRef as RadioRef_2 } from 'antd/es/radio';
|
|
157
159
|
import { Rate } from 'antd';
|
|
158
160
|
import { RateProps } from 'antd';
|
|
@@ -167,6 +169,7 @@ import { RefSelectProps } from 'antd';
|
|
|
167
169
|
import { RefSelectProps as RefSelectProps_2 } from 'antd/es/select';
|
|
168
170
|
import { Result } from 'antd';
|
|
169
171
|
import { ResultProps } from 'antd';
|
|
172
|
+
import { RibbonProps } from 'antd/es/badge/Ribbon';
|
|
170
173
|
import { Row } from 'antd';
|
|
171
174
|
import { RowProps } from 'antd';
|
|
172
175
|
import { SearchProps as SearchProps_2 } from 'antd/es/input';
|
|
@@ -199,14 +202,12 @@ import { TableColumnProps } from 'antd';
|
|
|
199
202
|
import { TableColumnsType } from 'antd';
|
|
200
203
|
import { TableColumnType } from 'antd';
|
|
201
204
|
import { TablePaginationConfig } from 'antd';
|
|
202
|
-
import { TableProps } from 'antd';
|
|
203
|
-
import { TableProps as TableProps_3 } from 'antd/es/table';
|
|
205
|
+
import { TableProps as TableProps_2 } from 'antd/es/table';
|
|
204
206
|
import { TableRef } from 'antd/es/table';
|
|
205
207
|
import { TabPaneProps } from 'antd';
|
|
206
208
|
import { Tabs } from 'antd';
|
|
207
209
|
import { TabsProps } from 'antd';
|
|
208
|
-
import { TagProps } from 'antd';
|
|
209
|
-
import { TagProps as TagProps_3 } from 'antd/es/tag';
|
|
210
|
+
import { TagProps as TagProps_2 } from 'antd/es/tag';
|
|
210
211
|
import { TagType } from 'antd';
|
|
211
212
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
|
212
213
|
import { Theme } from '@ant-design/cssinjs';
|
|
@@ -234,6 +235,7 @@ import { TypographyProps } from 'antd';
|
|
|
234
235
|
import { unstableSetRender } from 'antd';
|
|
235
236
|
import { UploadChangeParam } from 'antd/es/upload';
|
|
236
237
|
import { UploadFile } from 'antd';
|
|
238
|
+
import { UploadItemProps as UploadItemProps_2 } from './item';
|
|
237
239
|
import { UploadProps as UploadProps_2 } from 'antd/es/upload';
|
|
238
240
|
import { default as useApp } from 'antd/es/app/useApp';
|
|
239
241
|
import { useForm } from 'antd/es/form/Form';
|
|
@@ -284,7 +286,9 @@ export { BackTop }
|
|
|
284
286
|
|
|
285
287
|
export { BackTopProps }
|
|
286
288
|
|
|
287
|
-
export declare const Badge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element
|
|
289
|
+
export declare const Badge: (({ count, showZero, ...rest }: BadgeProps) => JSX.Element) & {
|
|
290
|
+
Ribbon: FC<RibbonProps>;
|
|
291
|
+
};
|
|
288
292
|
|
|
289
293
|
export declare type BadgeProps = BadgeProps_2;
|
|
290
294
|
|
|
@@ -334,9 +338,15 @@ export declare const Button: (props: ButtonProps & {
|
|
|
334
338
|
ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
|
|
335
339
|
}) => ReturnType<typeof ButtonInner>;
|
|
336
340
|
|
|
337
|
-
declare const ButtonInner: ({
|
|
341
|
+
declare const ButtonInner: ({ negativeMargin, type, size, variant, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
|
|
338
342
|
|
|
339
|
-
export declare
|
|
343
|
+
export declare interface ButtonProps extends ButtonProps_2 {
|
|
344
|
+
/**
|
|
345
|
+
* If true, negative margin will be applied to the text and link buttons to make it align with content
|
|
346
|
+
* @default true
|
|
347
|
+
*/
|
|
348
|
+
negativeMargin?: boolean;
|
|
349
|
+
}
|
|
340
350
|
|
|
341
351
|
export { Calendar }
|
|
342
352
|
|
|
@@ -368,7 +378,7 @@ export declare const categoricalChartColorTokens: Record<"colorChartsRed300" | "
|
|
|
368
378
|
|
|
369
379
|
export declare const categoricalChartsColors: ColorTokenValue[];
|
|
370
380
|
|
|
371
|
-
export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50",
|
|
381
|
+
export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", ColorTokenValue_2>;
|
|
372
382
|
|
|
373
383
|
export declare const Checkbox: ((props: CheckboxProps & {
|
|
374
384
|
ref?: React.ForwardedRef<React.ComponentRef<typeof Checkbox_2>>;
|
|
@@ -475,21 +485,29 @@ export declare interface CodeOption {
|
|
|
475
485
|
|
|
476
486
|
export { Col }
|
|
477
487
|
|
|
478
|
-
export
|
|
488
|
+
export declare const Collapse: ((props: CollapseProps & {
|
|
489
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
490
|
+
}) => ReturnType<typeof CollapseInner>) & {
|
|
491
|
+
Panel: (props: CollapsePanelProps) => JSX.Element;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
declare const CollapseInner: (props: CollapseProps, ref: ForwardedRef<HTMLDivElement>) => JSX.Element;
|
|
479
495
|
|
|
480
|
-
export
|
|
496
|
+
export declare interface CollapsePanelProps extends CollapsePanelProps_2 {
|
|
497
|
+
}
|
|
481
498
|
|
|
482
|
-
export
|
|
499
|
+
export declare interface CollapseProps extends CollapseProps_2 {
|
|
500
|
+
}
|
|
483
501
|
|
|
484
502
|
export { ColorPicker }
|
|
485
503
|
|
|
486
504
|
export { ColorPickerProps }
|
|
487
505
|
|
|
488
|
-
declare type ColorTokens = {
|
|
506
|
+
export declare type ColorTokens = {
|
|
489
507
|
[key: string]: RawColorTokenValue;
|
|
490
508
|
};
|
|
491
509
|
|
|
492
|
-
declare type ColorTokenValue = {
|
|
510
|
+
export declare type ColorTokenValue = {
|
|
493
511
|
light: string;
|
|
494
512
|
dark: string;
|
|
495
513
|
};
|
|
@@ -751,7 +769,6 @@ export declare const componentMetadata: {
|
|
|
751
769
|
base: "antd";
|
|
752
770
|
refinements: string[];
|
|
753
771
|
category: "Data Display";
|
|
754
|
-
packages: string[];
|
|
755
772
|
originalDocUrl: string;
|
|
756
773
|
description: string;
|
|
757
774
|
};
|
|
@@ -878,7 +895,7 @@ export { Descriptions }
|
|
|
878
895
|
|
|
879
896
|
export { DescriptionsProps }
|
|
880
897
|
|
|
881
|
-
declare const DirectoryTreeInner: <T extends DataNode =
|
|
898
|
+
declare const DirectoryTreeInner: <T extends DataNode = DataNode>(props: DirectoryTreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
882
899
|
|
|
883
900
|
export declare interface DirectoryTreeProps<T extends DataNode = TreeDataNode> extends Omit<DirectoryTreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
|
|
884
901
|
treeData?: T[];
|
|
@@ -902,17 +919,6 @@ export { Divider }
|
|
|
902
919
|
|
|
903
920
|
export { DividerProps }
|
|
904
921
|
|
|
905
|
-
declare interface DraggerProps extends DraggerProps_2 {
|
|
906
|
-
/**
|
|
907
|
-
* Custom title for the upload component
|
|
908
|
-
*/
|
|
909
|
-
uploadTitle?: default_2.ReactNode;
|
|
910
|
-
/**
|
|
911
|
-
* Custom description for the upload component
|
|
912
|
-
**/
|
|
913
|
-
uploadDescription?: default_2.ReactNode;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
922
|
export { Drawer }
|
|
917
923
|
|
|
918
924
|
export { DrawerProps }
|
|
@@ -996,6 +1002,10 @@ export { DropdownProps }
|
|
|
996
1002
|
|
|
997
1003
|
export declare const DSRoot: ({ className, appendClassesTo, children, theme, ...props }: DSRootProps) => JSX.Element;
|
|
998
1004
|
|
|
1005
|
+
export declare const DSRootContextProvider: default_2.Provider<{
|
|
1006
|
+
theme: "light" | "dark";
|
|
1007
|
+
}>;
|
|
1008
|
+
|
|
999
1009
|
export declare interface DSRootProps extends ThemeProviderProps {
|
|
1000
1010
|
/**
|
|
1001
1011
|
* Classname passed to App component
|
|
@@ -1078,11 +1088,15 @@ export declare type GenericHTMLProps = React.HTMLAttributes<any> & {
|
|
|
1078
1088
|
ref?: React.Ref<any> | undefined;
|
|
1079
1089
|
};
|
|
1080
1090
|
|
|
1091
|
+
export declare const getColorsByTheme: <T extends ColorTokens>(colorsOrTokens: T | ColorTokenValue[], theme: "light" | "dark") => string[];
|
|
1092
|
+
|
|
1081
1093
|
/**
|
|
1082
1094
|
* Get all components by category
|
|
1083
1095
|
*/
|
|
1084
1096
|
export declare const getComponentsByCategory: () => Record<ComponentCategory, ComponentMetadata[]>;
|
|
1085
1097
|
|
|
1098
|
+
export declare const getTokensByTheme: <T extends ColorTokens>(originTokens: T, theme: "light" | "dark") => Partial<Record<keyof T, string>>;
|
|
1099
|
+
|
|
1086
1100
|
export declare const getUniqueKeysFromOriginals: (nodes: DataNode[] | undefined, originalKeysToFind: Set<Key>, map: Map<Key, Key>) => Key[];
|
|
1087
1101
|
|
|
1088
1102
|
export { GlobalToken }
|
|
@@ -1109,7 +1123,7 @@ declare type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefP
|
|
|
1109
1123
|
|
|
1110
1124
|
export declare type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
1111
1125
|
|
|
1112
|
-
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, ...rest }:
|
|
1126
|
+
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1113
1127
|
|
|
1114
1128
|
declare function InnerToast({ toast, }: {
|
|
1115
1129
|
toast: Toast_2.Root.ToastObject<ToastData>;
|
|
@@ -1141,10 +1155,12 @@ export { InputNumberProps }
|
|
|
1141
1155
|
export declare interface InputProps extends InputProps_2 {
|
|
1142
1156
|
}
|
|
1143
1157
|
|
|
1158
|
+
export declare const InternalBadge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element;
|
|
1159
|
+
|
|
1144
1160
|
declare interface InternalFormProps<Values = any> extends React_2.ComponentProps<typeof default_8<Values>> {
|
|
1145
1161
|
}
|
|
1146
1162
|
|
|
1147
|
-
declare const InternalTable: <RecordType extends object = object>(props:
|
|
1163
|
+
declare const InternalTable: <RecordType extends object = object>(props: TableProps<RecordType> & {
|
|
1148
1164
|
ref?: ForwardedRef<TableRef>;
|
|
1149
1165
|
}) => ReturnType<typeof InnerInternalTable>;
|
|
1150
1166
|
|
|
@@ -1172,7 +1188,7 @@ declare const MainSelectInner: <ValueType = unknown, OptionType extends SelectBa
|
|
|
1172
1188
|
|
|
1173
1189
|
declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof default_4>>) => JSX.Element;
|
|
1174
1190
|
|
|
1175
|
-
declare const MainTreeInner: <T extends DataNode =
|
|
1191
|
+
declare const MainTreeInner: <T extends DataNode = DataNode>(props: TreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
1176
1192
|
|
|
1177
1193
|
export { MappingAlgorithm }
|
|
1178
1194
|
|
|
@@ -1210,7 +1226,7 @@ export declare const Modal: (({ open: externalOpen, closeIcon, children, size: s
|
|
|
1210
1226
|
|
|
1211
1227
|
export { ModalFuncProps }
|
|
1212
1228
|
|
|
1213
|
-
declare type ModalFuncProps_2 =
|
|
1229
|
+
declare type ModalFuncProps_2 = ModalProps_2 & {
|
|
1214
1230
|
/**
|
|
1215
1231
|
* Content to be displayed in the modal
|
|
1216
1232
|
* Similar to children prop in Modal component
|
|
@@ -1219,7 +1235,7 @@ declare type ModalFuncProps_2 = ModalProps & {
|
|
|
1219
1235
|
content?: default_2.ReactNode;
|
|
1220
1236
|
};
|
|
1221
1237
|
|
|
1222
|
-
declare interface
|
|
1238
|
+
declare interface ModalProps_2 extends Omit<ModalProps_3, "centered"> {
|
|
1223
1239
|
/**
|
|
1224
1240
|
* Predefined sizes for the modal
|
|
1225
1241
|
* - xsmall: 400px
|
|
@@ -1304,15 +1320,8 @@ export declare interface ModalProviderProps {
|
|
|
1304
1320
|
children?: default_2.ReactNode;
|
|
1305
1321
|
}
|
|
1306
1322
|
|
|
1307
|
-
declare interface ModalRef {
|
|
1308
|
-
update: (config: ModalUpdateConfig) => void;
|
|
1309
|
-
destroy: () => void;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
1323
|
declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
|
|
1313
1324
|
|
|
1314
|
-
declare type ModalUpdateConfig = Partial<ModalFuncProps_2> | ((prev: ModalFuncProps_2) => ModalFuncProps_2);
|
|
1315
|
-
|
|
1316
1325
|
export { notification }
|
|
1317
1326
|
|
|
1318
1327
|
export { NotificationArgsProps }
|
|
@@ -1345,7 +1354,7 @@ export declare interface PopoverProps extends PopoverProps_2 {
|
|
|
1345
1354
|
arrow?: PopoverProps_2["arrow"];
|
|
1346
1355
|
}
|
|
1347
1356
|
|
|
1348
|
-
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, }: PopupPanelProps) => JSX.Element;
|
|
1357
|
+
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, modal, closeOnClickOutside, }: PopupPanelProps) => JSX.Element;
|
|
1349
1358
|
|
|
1350
1359
|
export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
|
|
1351
1360
|
/** The trigger element that opens the popup panel */
|
|
@@ -1357,7 +1366,7 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1357
1366
|
/** Controls the open state of the popup panel */
|
|
1358
1367
|
open?: boolean;
|
|
1359
1368
|
/** Callback fired when the open state changes */
|
|
1360
|
-
onOpenChange?:
|
|
1369
|
+
onOpenChange?: Popover_2.Root.Props["onOpenChange"];
|
|
1361
1370
|
/** Content to display inside the popup panel */
|
|
1362
1371
|
content?: React.ReactNode;
|
|
1363
1372
|
/** Title text or element to display in the panel header */
|
|
@@ -1416,6 +1425,16 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1416
1425
|
footer?: string;
|
|
1417
1426
|
resizeHandle?: string;
|
|
1418
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* Whether to close the panel when clicking outside
|
|
1430
|
+
* @default true
|
|
1431
|
+
*/
|
|
1432
|
+
closeOnClickOutside?: boolean;
|
|
1433
|
+
/**
|
|
1434
|
+
* Whether to use modal mode
|
|
1435
|
+
* @default false
|
|
1436
|
+
*/
|
|
1437
|
+
modal?: Popover_2.Root.Props["modal"];
|
|
1419
1438
|
}
|
|
1420
1439
|
|
|
1421
1440
|
declare enum PopupPanelSize {
|
|
@@ -1426,8 +1445,7 @@ declare enum PopupPanelSize {
|
|
|
1426
1445
|
xlarge = "840px"
|
|
1427
1446
|
}
|
|
1428
1447
|
|
|
1429
|
-
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>,
|
|
1430
|
-
parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
1448
|
+
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>, parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
1431
1449
|
|
|
1432
1450
|
export { Progress }
|
|
1433
1451
|
|
|
@@ -1445,18 +1463,18 @@ export { QRPropsCanvas }
|
|
|
1445
1463
|
|
|
1446
1464
|
export { QRPropsSvg }
|
|
1447
1465
|
|
|
1448
|
-
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
1466
|
+
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>> & {
|
|
1449
1467
|
Group: (props: RadioGroupProps & {
|
|
1450
1468
|
ref?: React.Ref<HTMLDivElement>;
|
|
1451
1469
|
}) => JSX.Element;
|
|
1452
|
-
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
1470
|
+
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>>;
|
|
1453
1471
|
};
|
|
1454
1472
|
|
|
1455
1473
|
export declare type RadioChangeEvent = RadioChangeEvent_2;
|
|
1456
1474
|
|
|
1457
1475
|
export declare type RadioGroupProps = RadioGroupProps_2;
|
|
1458
1476
|
|
|
1459
|
-
export declare type RadioProps =
|
|
1477
|
+
export declare type RadioProps = RadioProps_3;
|
|
1460
1478
|
|
|
1461
1479
|
export declare type RadioRef = RadioRef_2;
|
|
1462
1480
|
|
|
@@ -1849,11 +1867,11 @@ export declare const rawChartColorTokens: {
|
|
|
1849
1867
|
light: string;
|
|
1850
1868
|
dark: string;
|
|
1851
1869
|
};
|
|
1852
|
-
colorChartsStatusNeutral: string |
|
|
1853
|
-
colorChartsThresholdNegative: string |
|
|
1854
|
-
colorChartsThresholdPositive: string |
|
|
1855
|
-
colorChartsThresholdInfo: string |
|
|
1856
|
-
colorChartsThresholdNeutral: string |
|
|
1870
|
+
colorChartsStatusNeutral: string | ColorTokenValue_2;
|
|
1871
|
+
colorChartsThresholdNegative: string | ColorTokenValue_2;
|
|
1872
|
+
colorChartsThresholdPositive: string | ColorTokenValue_2;
|
|
1873
|
+
colorChartsThresholdInfo: string | ColorTokenValue_2;
|
|
1874
|
+
colorChartsThresholdNeutral: string | ColorTokenValue_2;
|
|
1857
1875
|
colorChartsLineGrid: {
|
|
1858
1876
|
light: string;
|
|
1859
1877
|
dark: string;
|
|
@@ -1931,6 +1949,12 @@ export { RefSelectProps }
|
|
|
1931
1949
|
|
|
1932
1950
|
declare type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps_2 : never;
|
|
1933
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
* Resolves chart color tokens by replacing reference strings with actual values.
|
|
1954
|
+
* @returns Record of token names to resolved light/dark color objects
|
|
1955
|
+
*/
|
|
1956
|
+
export declare function resolveColorTokens<T extends ColorTokens>(colors: T): Record<keyof T, ColorTokenValue>;
|
|
1957
|
+
|
|
1934
1958
|
export { Result }
|
|
1935
1959
|
|
|
1936
1960
|
export { ResultProps }
|
|
@@ -2082,7 +2106,7 @@ export declare interface StackChildProps extends StackProps {
|
|
|
2082
2106
|
stack?: boolean;
|
|
2083
2107
|
}
|
|
2084
2108
|
|
|
2085
|
-
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24;
|
|
2109
|
+
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24 | 28 | 32 | 40 | 48;
|
|
2086
2110
|
|
|
2087
2111
|
export declare interface StackProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
2088
2112
|
/**
|
|
@@ -2161,9 +2185,7 @@ export { TableColumnType }
|
|
|
2161
2185
|
|
|
2162
2186
|
export { TablePaginationConfig }
|
|
2163
2187
|
|
|
2164
|
-
export
|
|
2165
|
-
|
|
2166
|
-
declare interface TableProps_2<RecordType extends object = object> extends TableProps_3<RecordType> {
|
|
2188
|
+
export declare interface TableProps<RecordType extends object = object> extends TableProps_2<RecordType> {
|
|
2167
2189
|
/**
|
|
2168
2190
|
* Add empty description for the table
|
|
2169
2191
|
*/
|
|
@@ -2172,6 +2194,10 @@ declare interface TableProps_2<RecordType extends object = object> extends Table
|
|
|
2172
2194
|
* Table ref
|
|
2173
2195
|
*/
|
|
2174
2196
|
tableRef?: React.Ref<HTMLDivElement>;
|
|
2197
|
+
/**
|
|
2198
|
+
* Table style
|
|
2199
|
+
*/
|
|
2200
|
+
variant?: "default" | "zebra";
|
|
2175
2201
|
}
|
|
2176
2202
|
|
|
2177
2203
|
export { TabPaneProps }
|
|
@@ -2180,13 +2206,11 @@ export { Tabs }
|
|
|
2180
2206
|
|
|
2181
2207
|
export { TabsProps }
|
|
2182
2208
|
|
|
2183
|
-
export declare const Tag: (({ className, active, color, style, closeIcon, closable, ...rest }:
|
|
2209
|
+
export declare const Tag: (({ className, active, color, style, closeIcon, closable, ...rest }: TagProps) => JSX.Element) & {
|
|
2184
2210
|
CheckableTag: ForwardRefExoticComponent<CheckableTagProps & RefAttributes<HTMLSpanElement>>;
|
|
2185
2211
|
};
|
|
2186
2212
|
|
|
2187
|
-
export
|
|
2188
|
-
|
|
2189
|
-
declare interface TagProps_2 extends TagProps_3 {
|
|
2213
|
+
export declare interface TagProps extends TagProps_2 {
|
|
2190
2214
|
/**
|
|
2191
2215
|
* Indicates if the tag is active
|
|
2192
2216
|
* @default false
|
|
@@ -2271,9 +2295,9 @@ export { Transfer }
|
|
|
2271
2295
|
|
|
2272
2296
|
export { TransferProps }
|
|
2273
2297
|
|
|
2274
|
-
export declare
|
|
2298
|
+
export declare function Transition(props: TransitionProps): null;
|
|
2275
2299
|
|
|
2276
|
-
export declare
|
|
2300
|
+
export declare type TransitionProps = Omit<useRender.ComponentProps<"div">, "render" | "children"> & {
|
|
2277
2301
|
/** Whether the component should be shown */
|
|
2278
2302
|
show?: boolean;
|
|
2279
2303
|
/** CSS classes to apply when the component is opened */
|
|
@@ -2282,11 +2306,23 @@ export declare interface TransitionProps extends Omit<useRender.ComponentProps<"
|
|
|
2282
2306
|
ending?: string | CSSProperties;
|
|
2283
2307
|
/** CSS classes to apply to the component */
|
|
2284
2308
|
className?: string;
|
|
2285
|
-
/** Child component to render */
|
|
2286
|
-
children: useRender.ComponentProps<"div">["render"];
|
|
2287
2309
|
/** Keep mounted */
|
|
2288
2310
|
keepMounted?: boolean;
|
|
2289
|
-
|
|
2311
|
+
/**
|
|
2312
|
+
* Callback function to be called when the transition ends
|
|
2313
|
+
*/
|
|
2314
|
+
onTransitionComplete?: (show?: boolean) => void;
|
|
2315
|
+
/**
|
|
2316
|
+
* Whether to listen for animations in child elements
|
|
2317
|
+
*/
|
|
2318
|
+
listenToChildAnimations?: boolean;
|
|
2319
|
+
/**
|
|
2320
|
+
* Whether to render the child as a child element
|
|
2321
|
+
* @default true
|
|
2322
|
+
*/
|
|
2323
|
+
asChild?: boolean;
|
|
2324
|
+
children?: React.ReactNode | useRender.ComponentProps<"div">["render"];
|
|
2325
|
+
};
|
|
2290
2326
|
|
|
2291
2327
|
export declare const Tree: (<T extends DataNode = DataNode>(props: TreeProps<T> & {
|
|
2292
2328
|
ref?: React.ForwardedRef<React.ComponentRef<typeof default_7<T>>>;
|
|
@@ -2342,7 +2378,7 @@ export { unstableSetRender }
|
|
|
2342
2378
|
|
|
2343
2379
|
export declare const Upload: (({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element) & {
|
|
2344
2380
|
Dragger: ({ children, uploadTitle, uploadDescription, itemRender, ...rest }: DraggerProps) => JSX.Element;
|
|
2345
|
-
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }:
|
|
2381
|
+
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }: UploadItemProps_2) => JSX.Element;
|
|
2346
2382
|
};
|
|
2347
2383
|
|
|
2348
2384
|
export { UploadChangeParam }
|
|
@@ -2369,7 +2405,10 @@ export declare interface UploadProps extends UploadProps_2 {
|
|
|
2369
2405
|
showRemoveButton?: boolean;
|
|
2370
2406
|
}
|
|
2371
2407
|
|
|
2372
|
-
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, waitForNextTick
|
|
2408
|
+
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, { waitForNextTick, subtree, }: {
|
|
2409
|
+
waitForNextTick?: boolean;
|
|
2410
|
+
subtree?: boolean;
|
|
2411
|
+
}): (fnToExecute: () => void) => void;
|
|
2373
2412
|
|
|
2374
2413
|
/**
|
|
2375
2414
|
*
|
|
@@ -2406,7 +2445,22 @@ export declare const useCharts: () => {
|
|
|
2406
2445
|
|
|
2407
2446
|
export declare const useCls: () => (...args: ClassValue[]) => string;
|
|
2408
2447
|
|
|
2409
|
-
|
|
2448
|
+
/**
|
|
2449
|
+
* A hook that manages state that can be either controlled or uncontrolled.
|
|
2450
|
+
*
|
|
2451
|
+
* @param value - The controlled value
|
|
2452
|
+
* @param onChange - Callback when the value changes
|
|
2453
|
+
* @param defaultValue - Default value for uncontrolled state
|
|
2454
|
+
* @returns [currentValue, setValue] - Current value and setter function
|
|
2455
|
+
*/
|
|
2456
|
+
export declare function useControlledState<T, K extends unknown[] = []>(value?: T, onChange?: ((value: T, ...args: K | []) => void) | React.Dispatch<React.SetStateAction<T>>, defaultValue?: T): [
|
|
2457
|
+
T | undefined,
|
|
2458
|
+
(value: T | ((prev: T | undefined) => T), ...args: K | []) => void
|
|
2459
|
+
];
|
|
2460
|
+
|
|
2461
|
+
export declare const useDS: () => {
|
|
2462
|
+
theme: "light" | "dark";
|
|
2463
|
+
};
|
|
2410
2464
|
|
|
2411
2465
|
export declare const useEnhancedEffect: typeof useLayoutEffect;
|
|
2412
2466
|
|
|
@@ -2426,7 +2480,7 @@ export declare const useModal: () => HookAPI;
|
|
|
2426
2480
|
|
|
2427
2481
|
export declare const useToken: () => {
|
|
2428
2482
|
theme: Theme<SeedToken, AliasToken>;
|
|
2429
|
-
token:
|
|
2483
|
+
token: GlobalToken;
|
|
2430
2484
|
hashId: string;
|
|
2431
2485
|
};
|
|
2432
2486
|
|
|
@@ -2544,7 +2598,7 @@ export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
|
|
|
2544
2598
|
as?: IntrinsicElement;
|
|
2545
2599
|
} & ComponentProps<T>;
|
|
2546
2600
|
|
|
2547
|
-
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) =>
|
|
2601
|
+
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
|
|
2548
2602
|
|
|
2549
2603
|
declare type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
|
|
2550
2604
|
href: string;
|