@bioturing/components 0.15.5 → 0.17.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 +9 -17
- 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/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 +11 -10
- package/dist/components/Collapse/component.js.map +1 -1
- package/dist/components/ColorSelect/component.js +138 -0
- package/dist/components/ColorSelect/component.js.map +1 -0
- package/dist/components/ColorSelect/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/DragDrop/context.js +18 -0
- package/dist/components/DragDrop/context.js.map +1 -0
- package/dist/components/DragDrop/draggable.js +64 -0
- package/dist/components/DragDrop/draggable.js.map +1 -0
- package/dist/components/DragDrop/droppable.js +48 -0
- package/dist/components/DragDrop/droppable.js.map +1 -0
- package/dist/components/DragDrop/hooks.js +139 -0
- package/dist/components/DragDrop/hooks.js.map +1 -0
- package/dist/components/DragDrop/index.js +45 -0
- package/dist/components/DragDrop/index.js.map +1 -0
- package/dist/components/DragDrop/style.css +1 -0
- 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 +55 -43
- package/dist/components/IconButton/component.js.map +1 -1
- package/dist/components/IconButton/style.css +1 -1
- package/dist/components/Modal/Modal.js +1 -0
- 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/Nav/context.js +7 -0
- package/dist/components/Nav/context.js.map +1 -0
- package/dist/components/Nav/group.js +16 -0
- package/dist/components/Nav/group.js.map +1 -0
- package/dist/components/Nav/heading.js +16 -0
- package/dist/components/Nav/heading.js.map +1 -0
- package/dist/components/Nav/index.js +13 -0
- package/dist/components/Nav/index.js.map +1 -0
- package/dist/components/Nav/item.js +36 -0
- package/dist/components/Nav/item.js.map +1 -0
- package/dist/components/Nav/style.css +1 -0
- package/dist/components/Popover/component.js +6 -5
- package/dist/components/Popover/component.js.map +1 -1
- package/dist/components/PopupPanel/component.js +100 -99
- 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 +40 -34
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/StackChild.js +62 -54
- package/dist/components/Stack/StackChild.js.map +1 -1
- package/dist/components/Stack/style.css +1 -1
- package/dist/components/Table/component.js +54 -50
- package/dist/components/Table/component.js.map +1 -1
- package/dist/components/Table/style.css +1 -1
- package/dist/components/Tag/component.js +60 -24
- package/dist/components/Tag/component.js.map +1 -1
- package/dist/components/Tag/style.css +1 -1
- package/dist/components/ThemeProvider/component.js +27 -26
- package/dist/components/ThemeProvider/component.js.map +1 -1
- package/dist/components/ThemeProvider/style.css +1 -1
- package/dist/components/Toast/component.js +24 -29
- 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 +4 -21
- 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/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 +39 -36
- 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/useCharts.js +19 -17
- package/dist/components/hooks/useCharts.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/components/utils/colors.js +5 -0
- package/dist/components/utils/colors.js.map +1 -0
- package/dist/index.d.ts +819 -65
- package/dist/index.js +191 -159
- package/dist/index.js.map +1 -1
- package/dist/metadata.js +124 -92
- package/dist/metadata.js.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tokens/and-theme/tokens.js +13 -7
- package/dist/tokens/and-theme/tokens.js.map +1 -1
- package/dist/tokens/charts/{tokens.js → palettes/cloudscape.js} +22 -12
- package/dist/tokens/charts/palettes/cloudscape.js.map +1 -0
- package/dist/tokens/charts/palettes/colorbrewer.js +1525 -0
- package/dist/tokens/charts/palettes/colorbrewer.js.map +1 -0
- package/dist/tokens/charts/palettes/index.js +61 -0
- package/dist/tokens/charts/palettes/index.js.map +1 -0
- package/dist/tokens/charts/palettes/tableau.js +112 -0
- package/dist/tokens/charts/palettes/tableau.js.map +1 -0
- package/dist/tokens/utils.js.map +1 -1
- package/package.json +7 -7
- package/dist/tokens/charts/index.js +0 -18
- package/dist/tokens/charts/index.js.map +0 -1
- package/dist/tokens/charts/tokens.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { CascaderAutoProps } from 'antd';
|
|
|
36
36
|
import { CascaderPanelAutoProps } from 'antd';
|
|
37
37
|
import { CascaderPanelProps } from 'antd';
|
|
38
38
|
import { CascaderProps } from 'antd';
|
|
39
|
-
import { CheckableTagProps } from 'antd/es/tag';
|
|
39
|
+
import { CheckableTagProps as CheckableTagProps_2 } from 'antd/es/tag';
|
|
40
40
|
import { Checkbox as Checkbox_2 } from 'antd';
|
|
41
41
|
import { CheckboxChangeEvent } from 'antd';
|
|
42
42
|
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
@@ -48,6 +48,7 @@ import { CollapsePanelProps as CollapsePanelProps_2 } from 'antd';
|
|
|
48
48
|
import { CollapseProps as CollapseProps_2 } from 'antd';
|
|
49
49
|
import { ColorPicker } from 'antd';
|
|
50
50
|
import { ColorPickerProps } from 'antd';
|
|
51
|
+
import { ColorPickerProps as ColorPickerProps_2 } from 'antd/es/color-picker';
|
|
51
52
|
import { ColProps } from 'antd';
|
|
52
53
|
import { ComponentProps } from 'react';
|
|
53
54
|
import { ComponentPropsWithoutRef } from 'react';
|
|
@@ -73,7 +74,7 @@ import { DescriptionsProps } from 'antd';
|
|
|
73
74
|
import { DirectoryTreeProps as DirectoryTreeProps_2 } from 'antd/es/tree';
|
|
74
75
|
import { Divider } from 'antd';
|
|
75
76
|
import { DividerProps } from 'antd';
|
|
76
|
-
import { DraggerProps
|
|
77
|
+
import { DraggerProps } from './dragger';
|
|
77
78
|
import { Drawer } from 'antd';
|
|
78
79
|
import { DrawerProps } from 'antd';
|
|
79
80
|
import { Dropdown } from 'antd';
|
|
@@ -81,7 +82,7 @@ import { DropDownProps } from 'antd';
|
|
|
81
82
|
import { DropdownProps } from 'antd';
|
|
82
83
|
import { ElementType } from 'react';
|
|
83
84
|
import { EmptyProps as EmptyProps_2 } from 'antd/es/empty';
|
|
84
|
-
import { ErrorListProps } from 'antd/es/form
|
|
85
|
+
import { ErrorListProps } from 'antd/es/form';
|
|
85
86
|
import { EventDataNode } from 'antd/es/tree';
|
|
86
87
|
import { FC } from 'react';
|
|
87
88
|
import { Flex } from 'antd';
|
|
@@ -94,13 +95,12 @@ import { FormInstance } from 'antd';
|
|
|
94
95
|
import { FormItemProps as FormItemProps_2 } from 'antd/es/form/FormItem';
|
|
95
96
|
import { FormListFieldData } from 'antd';
|
|
96
97
|
import { FormListOperation } from 'antd';
|
|
97
|
-
import { FormListProps } from 'antd/es/form
|
|
98
|
+
import { FormListProps } from 'antd/es/form';
|
|
98
99
|
import { FormProps } from 'antd';
|
|
99
100
|
import { FormProviderProps } from 'antd/es/form/context';
|
|
100
101
|
import { ForwardedRef } from 'react';
|
|
101
102
|
import { ForwardRefExoticComponent } from 'react';
|
|
102
103
|
import { GlobalToken } from 'antd';
|
|
103
|
-
import { GlobalToken as GlobalToken_2 } from 'antd/es/theme';
|
|
104
104
|
import { Grid } from 'antd';
|
|
105
105
|
import { HighlightProps } from 'prism-react-renderer';
|
|
106
106
|
import { HookAPI } from 'antd/es/modal/useModal';
|
|
@@ -130,7 +130,9 @@ import { message } from 'antd';
|
|
|
130
130
|
import { MessageArgsProps } from 'antd';
|
|
131
131
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
132
132
|
import { ModalFuncProps } from 'antd';
|
|
133
|
-
import { ModalProps
|
|
133
|
+
import { ModalProps } from './Modal';
|
|
134
|
+
import { ModalProps as ModalProps_3 } from 'antd/es/modal';
|
|
135
|
+
import { ModalRef } from './functions';
|
|
134
136
|
import { notification } from 'antd';
|
|
135
137
|
import { NotificationArgsProps } from 'antd';
|
|
136
138
|
import { OptionFC } from 'rc-select/lib/Option';
|
|
@@ -151,10 +153,12 @@ import { QRPropsCanvas } from 'antd';
|
|
|
151
153
|
import { QRPropsSvg } from 'antd';
|
|
152
154
|
import { RadioChangeEvent as RadioChangeEvent_2 } from 'antd/es/radio';
|
|
153
155
|
import { RadioGroupProps as RadioGroupProps_2 } from 'antd/es/radio';
|
|
154
|
-
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';
|
|
155
158
|
import { RadioRef as RadioRef_2 } from 'antd/es/radio';
|
|
156
159
|
import { Rate } from 'antd';
|
|
157
160
|
import { RateProps } from 'antd';
|
|
161
|
+
import { RawColorTokenValue as RawColorTokenValue_2 } from '../..';
|
|
158
162
|
import { RcFile } from 'antd/es/upload';
|
|
159
163
|
import * as React_2 from 'react';
|
|
160
164
|
import { ReactElement } from 'react';
|
|
@@ -166,6 +170,7 @@ import { RefSelectProps } from 'antd';
|
|
|
166
170
|
import { RefSelectProps as RefSelectProps_2 } from 'antd/es/select';
|
|
167
171
|
import { Result } from 'antd';
|
|
168
172
|
import { ResultProps } from 'antd';
|
|
173
|
+
import { RibbonProps } from 'antd/es/badge/Ribbon';
|
|
169
174
|
import { Row } from 'antd';
|
|
170
175
|
import { RowProps } from 'antd';
|
|
171
176
|
import { SearchProps as SearchProps_2 } from 'antd/es/input';
|
|
@@ -206,8 +211,8 @@ import { TabsProps } from 'antd';
|
|
|
206
211
|
import { TagProps as TagProps_2 } from 'antd/es/tag';
|
|
207
212
|
import { TagType } from 'antd';
|
|
208
213
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
|
209
|
-
import { Theme } from '@ant-design/cssinjs';
|
|
210
214
|
import { theme } from 'antd';
|
|
215
|
+
import { Theme as Theme_2 } from '@ant-design/cssinjs';
|
|
211
216
|
import { ThemeConfig } from 'antd';
|
|
212
217
|
import { Timeline } from 'antd';
|
|
213
218
|
import { TimelineItemProps } from 'antd';
|
|
@@ -216,7 +221,6 @@ import { TimePicker } from 'antd';
|
|
|
216
221
|
import { TimePickerProps } from 'antd';
|
|
217
222
|
import { TimeRangePickerProps } from 'antd';
|
|
218
223
|
import { Toast as Toast_2 } from '@base-ui-components/react';
|
|
219
|
-
import { Tooltip as Tooltip_2 } from 'antd';
|
|
220
224
|
import { TooltipProps as TooltipProps_2 } from 'antd/es/tooltip';
|
|
221
225
|
import { TourProps as TourProps_2 } from 'antd/es/tour/interface';
|
|
222
226
|
import { TourStepProps as TourStepProps_2 } from 'antd/es/tour/interface';
|
|
@@ -231,6 +235,7 @@ import { TypographyProps } from 'antd';
|
|
|
231
235
|
import { unstableSetRender } from 'antd';
|
|
232
236
|
import { UploadChangeParam } from 'antd/es/upload';
|
|
233
237
|
import { UploadFile } from 'antd';
|
|
238
|
+
import { UploadItemProps as UploadItemProps_2 } from './item';
|
|
234
239
|
import { UploadProps as UploadProps_2 } from 'antd/es/upload';
|
|
235
240
|
import { default as useApp } from 'antd/es/app/useApp';
|
|
236
241
|
import { useForm } from 'antd/es/form/Form';
|
|
@@ -281,7 +286,9 @@ export { BackTop }
|
|
|
281
286
|
|
|
282
287
|
export { BackTopProps }
|
|
283
288
|
|
|
284
|
-
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
|
+
};
|
|
285
292
|
|
|
286
293
|
export declare type BadgeProps = BadgeProps_2;
|
|
287
294
|
|
|
@@ -331,9 +338,15 @@ export declare const Button: (props: ButtonProps & {
|
|
|
331
338
|
ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
|
|
332
339
|
}) => ReturnType<typeof ButtonInner>;
|
|
333
340
|
|
|
334
|
-
declare const ButtonInner: ({
|
|
341
|
+
declare const ButtonInner: ({ negativeMargin, type, size, variant, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
|
|
335
342
|
|
|
336
|
-
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
|
+
}
|
|
337
350
|
|
|
338
351
|
export { Calendar }
|
|
339
352
|
|
|
@@ -359,14 +372,24 @@ export { CascaderPanelProps }
|
|
|
359
372
|
|
|
360
373
|
export { CascaderProps }
|
|
361
374
|
|
|
375
|
+
export declare const CATEGORICAL_PALETTE_NAMES: readonly ["cloudscape", "tab10", "tab20", "tab20b", "tab20c"];
|
|
376
|
+
|
|
377
|
+
export declare const CATEGORICAL_PALETTES: Record<CategoricalPaletteName, Record<Theme, string[]>>;
|
|
378
|
+
|
|
362
379
|
export declare const categoricalChartColorKeys: Array<keyof typeof chartColorTokens>;
|
|
363
380
|
|
|
364
381
|
export declare const categoricalChartColorTokens: 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>;
|
|
365
382
|
|
|
366
383
|
export declare const categoricalChartsColors: ColorTokenValue[];
|
|
367
384
|
|
|
385
|
+
export declare type CategoricalPaletteName = (typeof CATEGORICAL_PALETTE_NAMES)[number];
|
|
386
|
+
|
|
368
387
|
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>;
|
|
369
388
|
|
|
389
|
+
export declare interface CheckableTagProps extends CheckableTagProps_2 {
|
|
390
|
+
size?: "small" | "medium" | "large";
|
|
391
|
+
}
|
|
392
|
+
|
|
370
393
|
export declare const Checkbox: ((props: CheckboxProps & {
|
|
371
394
|
ref?: React.ForwardedRef<React.ComponentRef<typeof Checkbox_2>>;
|
|
372
395
|
}) => ReturnType<typeof MainCheckboxInner>) & {
|
|
@@ -486,15 +509,388 @@ export declare interface CollapsePanelProps extends CollapsePanelProps_2 {
|
|
|
486
509
|
export declare interface CollapseProps extends CollapseProps_2 {
|
|
487
510
|
}
|
|
488
511
|
|
|
512
|
+
export declare const COLORBREWER: {
|
|
513
|
+
YlGn: {
|
|
514
|
+
3: string[];
|
|
515
|
+
4: string[];
|
|
516
|
+
5: string[];
|
|
517
|
+
6: string[];
|
|
518
|
+
7: string[];
|
|
519
|
+
8: string[];
|
|
520
|
+
9: string[];
|
|
521
|
+
};
|
|
522
|
+
YlGnBu: {
|
|
523
|
+
3: string[];
|
|
524
|
+
4: string[];
|
|
525
|
+
5: string[];
|
|
526
|
+
6: string[];
|
|
527
|
+
7: string[];
|
|
528
|
+
8: string[];
|
|
529
|
+
9: string[];
|
|
530
|
+
};
|
|
531
|
+
GnBu: {
|
|
532
|
+
3: string[];
|
|
533
|
+
4: string[];
|
|
534
|
+
5: string[];
|
|
535
|
+
6: string[];
|
|
536
|
+
7: string[];
|
|
537
|
+
8: string[];
|
|
538
|
+
9: string[];
|
|
539
|
+
};
|
|
540
|
+
BuGn: {
|
|
541
|
+
3: string[];
|
|
542
|
+
4: string[];
|
|
543
|
+
5: string[];
|
|
544
|
+
6: string[];
|
|
545
|
+
7: string[];
|
|
546
|
+
8: string[];
|
|
547
|
+
9: string[];
|
|
548
|
+
};
|
|
549
|
+
PuBuGn: {
|
|
550
|
+
3: string[];
|
|
551
|
+
4: string[];
|
|
552
|
+
5: string[];
|
|
553
|
+
6: string[];
|
|
554
|
+
7: string[];
|
|
555
|
+
8: string[];
|
|
556
|
+
9: string[];
|
|
557
|
+
};
|
|
558
|
+
PuBu: {
|
|
559
|
+
3: string[];
|
|
560
|
+
4: string[];
|
|
561
|
+
5: string[];
|
|
562
|
+
6: string[];
|
|
563
|
+
7: string[];
|
|
564
|
+
8: string[];
|
|
565
|
+
9: string[];
|
|
566
|
+
};
|
|
567
|
+
BuPu: {
|
|
568
|
+
3: string[];
|
|
569
|
+
4: string[];
|
|
570
|
+
5: string[];
|
|
571
|
+
6: string[];
|
|
572
|
+
7: string[];
|
|
573
|
+
8: string[];
|
|
574
|
+
9: string[];
|
|
575
|
+
};
|
|
576
|
+
RdPu: {
|
|
577
|
+
3: string[];
|
|
578
|
+
4: string[];
|
|
579
|
+
5: string[];
|
|
580
|
+
6: string[];
|
|
581
|
+
7: string[];
|
|
582
|
+
8: string[];
|
|
583
|
+
9: string[];
|
|
584
|
+
};
|
|
585
|
+
PuRd: {
|
|
586
|
+
3: string[];
|
|
587
|
+
4: string[];
|
|
588
|
+
5: string[];
|
|
589
|
+
6: string[];
|
|
590
|
+
7: string[];
|
|
591
|
+
8: string[];
|
|
592
|
+
9: string[];
|
|
593
|
+
};
|
|
594
|
+
OrRd: {
|
|
595
|
+
3: string[];
|
|
596
|
+
4: string[];
|
|
597
|
+
5: string[];
|
|
598
|
+
6: string[];
|
|
599
|
+
7: string[];
|
|
600
|
+
8: string[];
|
|
601
|
+
9: string[];
|
|
602
|
+
};
|
|
603
|
+
YlOrRd: {
|
|
604
|
+
3: string[];
|
|
605
|
+
4: string[];
|
|
606
|
+
5: string[];
|
|
607
|
+
6: string[];
|
|
608
|
+
7: string[];
|
|
609
|
+
8: string[];
|
|
610
|
+
9: string[];
|
|
611
|
+
};
|
|
612
|
+
YlOrBr: {
|
|
613
|
+
3: string[];
|
|
614
|
+
4: string[];
|
|
615
|
+
5: string[];
|
|
616
|
+
6: string[];
|
|
617
|
+
7: string[];
|
|
618
|
+
8: string[];
|
|
619
|
+
9: string[];
|
|
620
|
+
};
|
|
621
|
+
Purples: {
|
|
622
|
+
3: string[];
|
|
623
|
+
4: string[];
|
|
624
|
+
5: string[];
|
|
625
|
+
6: string[];
|
|
626
|
+
7: string[];
|
|
627
|
+
8: string[];
|
|
628
|
+
9: string[];
|
|
629
|
+
};
|
|
630
|
+
Blues: {
|
|
631
|
+
3: string[];
|
|
632
|
+
4: string[];
|
|
633
|
+
5: string[];
|
|
634
|
+
6: string[];
|
|
635
|
+
7: string[];
|
|
636
|
+
8: string[];
|
|
637
|
+
9: string[];
|
|
638
|
+
};
|
|
639
|
+
Greens: {
|
|
640
|
+
3: string[];
|
|
641
|
+
4: string[];
|
|
642
|
+
5: string[];
|
|
643
|
+
6: string[];
|
|
644
|
+
7: string[];
|
|
645
|
+
8: string[];
|
|
646
|
+
9: string[];
|
|
647
|
+
};
|
|
648
|
+
Oranges: {
|
|
649
|
+
3: string[];
|
|
650
|
+
4: string[];
|
|
651
|
+
5: string[];
|
|
652
|
+
6: string[];
|
|
653
|
+
7: string[];
|
|
654
|
+
8: string[];
|
|
655
|
+
9: string[];
|
|
656
|
+
};
|
|
657
|
+
Reds: {
|
|
658
|
+
3: string[];
|
|
659
|
+
4: string[];
|
|
660
|
+
5: string[];
|
|
661
|
+
6: string[];
|
|
662
|
+
7: string[];
|
|
663
|
+
8: string[];
|
|
664
|
+
9: string[];
|
|
665
|
+
};
|
|
666
|
+
Greys: {
|
|
667
|
+
3: string[];
|
|
668
|
+
4: string[];
|
|
669
|
+
5: string[];
|
|
670
|
+
6: string[];
|
|
671
|
+
7: string[];
|
|
672
|
+
8: string[];
|
|
673
|
+
9: string[];
|
|
674
|
+
};
|
|
675
|
+
PuOr: {
|
|
676
|
+
3: string[];
|
|
677
|
+
4: string[];
|
|
678
|
+
5: string[];
|
|
679
|
+
6: string[];
|
|
680
|
+
7: string[];
|
|
681
|
+
8: string[];
|
|
682
|
+
9: string[];
|
|
683
|
+
10: string[];
|
|
684
|
+
11: string[];
|
|
685
|
+
};
|
|
686
|
+
BrBG: {
|
|
687
|
+
3: string[];
|
|
688
|
+
4: string[];
|
|
689
|
+
5: string[];
|
|
690
|
+
6: string[];
|
|
691
|
+
7: string[];
|
|
692
|
+
8: string[];
|
|
693
|
+
9: string[];
|
|
694
|
+
10: string[];
|
|
695
|
+
11: string[];
|
|
696
|
+
};
|
|
697
|
+
PRGn: {
|
|
698
|
+
3: string[];
|
|
699
|
+
4: string[];
|
|
700
|
+
5: string[];
|
|
701
|
+
6: string[];
|
|
702
|
+
7: string[];
|
|
703
|
+
8: string[];
|
|
704
|
+
9: string[];
|
|
705
|
+
10: string[];
|
|
706
|
+
11: string[];
|
|
707
|
+
};
|
|
708
|
+
PiYG: {
|
|
709
|
+
3: string[];
|
|
710
|
+
4: string[];
|
|
711
|
+
5: string[];
|
|
712
|
+
6: string[];
|
|
713
|
+
7: string[];
|
|
714
|
+
8: string[];
|
|
715
|
+
9: string[];
|
|
716
|
+
10: string[];
|
|
717
|
+
11: string[];
|
|
718
|
+
};
|
|
719
|
+
RdBu: {
|
|
720
|
+
3: string[];
|
|
721
|
+
4: string[];
|
|
722
|
+
5: string[];
|
|
723
|
+
6: string[];
|
|
724
|
+
7: string[];
|
|
725
|
+
8: string[];
|
|
726
|
+
9: string[];
|
|
727
|
+
10: string[];
|
|
728
|
+
11: string[];
|
|
729
|
+
};
|
|
730
|
+
RdGy: {
|
|
731
|
+
3: string[];
|
|
732
|
+
4: string[];
|
|
733
|
+
5: string[];
|
|
734
|
+
6: string[];
|
|
735
|
+
7: string[];
|
|
736
|
+
8: string[];
|
|
737
|
+
9: string[];
|
|
738
|
+
10: string[];
|
|
739
|
+
11: string[];
|
|
740
|
+
};
|
|
741
|
+
RdYlBu: {
|
|
742
|
+
3: string[];
|
|
743
|
+
4: string[];
|
|
744
|
+
5: string[];
|
|
745
|
+
6: string[];
|
|
746
|
+
7: string[];
|
|
747
|
+
8: string[];
|
|
748
|
+
9: string[];
|
|
749
|
+
10: string[];
|
|
750
|
+
11: string[];
|
|
751
|
+
};
|
|
752
|
+
Spectral: {
|
|
753
|
+
3: string[];
|
|
754
|
+
4: string[];
|
|
755
|
+
5: string[];
|
|
756
|
+
6: string[];
|
|
757
|
+
7: string[];
|
|
758
|
+
8: string[];
|
|
759
|
+
9: string[];
|
|
760
|
+
10: string[];
|
|
761
|
+
11: string[];
|
|
762
|
+
};
|
|
763
|
+
RdYlGn: {
|
|
764
|
+
3: string[];
|
|
765
|
+
4: string[];
|
|
766
|
+
5: string[];
|
|
767
|
+
6: string[];
|
|
768
|
+
7: string[];
|
|
769
|
+
8: string[];
|
|
770
|
+
9: string[];
|
|
771
|
+
10: string[];
|
|
772
|
+
11: string[];
|
|
773
|
+
};
|
|
774
|
+
Accent: {
|
|
775
|
+
3: string[];
|
|
776
|
+
4: string[];
|
|
777
|
+
5: string[];
|
|
778
|
+
6: string[];
|
|
779
|
+
7: string[];
|
|
780
|
+
8: string[];
|
|
781
|
+
};
|
|
782
|
+
Dark2: {
|
|
783
|
+
3: string[];
|
|
784
|
+
4: string[];
|
|
785
|
+
5: string[];
|
|
786
|
+
6: string[];
|
|
787
|
+
7: string[];
|
|
788
|
+
8: string[];
|
|
789
|
+
};
|
|
790
|
+
Paired: {
|
|
791
|
+
3: string[];
|
|
792
|
+
4: string[];
|
|
793
|
+
5: string[];
|
|
794
|
+
6: string[];
|
|
795
|
+
7: string[];
|
|
796
|
+
8: string[];
|
|
797
|
+
9: string[];
|
|
798
|
+
10: string[];
|
|
799
|
+
11: string[];
|
|
800
|
+
12: string[];
|
|
801
|
+
};
|
|
802
|
+
Pastel1: {
|
|
803
|
+
3: string[];
|
|
804
|
+
4: string[];
|
|
805
|
+
5: string[];
|
|
806
|
+
6: string[];
|
|
807
|
+
7: string[];
|
|
808
|
+
8: string[];
|
|
809
|
+
9: string[];
|
|
810
|
+
};
|
|
811
|
+
Pastel2: {
|
|
812
|
+
3: string[];
|
|
813
|
+
4: string[];
|
|
814
|
+
5: string[];
|
|
815
|
+
6: string[];
|
|
816
|
+
7: string[];
|
|
817
|
+
8: string[];
|
|
818
|
+
};
|
|
819
|
+
Set1: {
|
|
820
|
+
3: string[];
|
|
821
|
+
4: string[];
|
|
822
|
+
5: string[];
|
|
823
|
+
6: string[];
|
|
824
|
+
7: string[];
|
|
825
|
+
8: string[];
|
|
826
|
+
9: string[];
|
|
827
|
+
};
|
|
828
|
+
Set2: {
|
|
829
|
+
3: string[];
|
|
830
|
+
4: string[];
|
|
831
|
+
5: string[];
|
|
832
|
+
6: string[];
|
|
833
|
+
7: string[];
|
|
834
|
+
8: string[];
|
|
835
|
+
};
|
|
836
|
+
Set3: {
|
|
837
|
+
3: string[];
|
|
838
|
+
4: string[];
|
|
839
|
+
5: string[];
|
|
840
|
+
6: string[];
|
|
841
|
+
7: string[];
|
|
842
|
+
8: string[];
|
|
843
|
+
9: string[];
|
|
844
|
+
10: string[];
|
|
845
|
+
11: string[];
|
|
846
|
+
12: string[];
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
|
|
489
850
|
export { ColorPicker }
|
|
490
851
|
|
|
491
852
|
export { ColorPickerProps }
|
|
492
853
|
|
|
493
|
-
declare
|
|
854
|
+
export declare const ColorSelect: default_2.ForwardRefExoticComponent<Omit<{
|
|
855
|
+
[x: string]: any;
|
|
856
|
+
className: any;
|
|
857
|
+
value: any;
|
|
858
|
+
defaultValue: any;
|
|
859
|
+
onChange: any;
|
|
860
|
+
colorPickerProps: any;
|
|
861
|
+
presetColors: any;
|
|
862
|
+
open: any;
|
|
863
|
+
onOpenChange: any;
|
|
864
|
+
defaultOpen: any;
|
|
865
|
+
}, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Props for the ColorSelect component.
|
|
869
|
+
*/
|
|
870
|
+
export declare interface ColorSelectProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
871
|
+
/** Controlled list of selected hex colors */
|
|
872
|
+
value?: string[];
|
|
873
|
+
/** Default list of selected hex colors for uncontrolled usage */
|
|
874
|
+
defaultValue?: string[];
|
|
875
|
+
/** Callback invoked when selected colors change */
|
|
876
|
+
onChange?: (value: string[]) => void;
|
|
877
|
+
/** Props to pass through to the Ant Design ColorPicker, excluding value/onChange/onChangeComplete */
|
|
878
|
+
colorPickerProps?: Omit<ColorPickerProps_2, "value" | "onChange" | "onChangeComplete">;
|
|
879
|
+
/** Preset color swatches displayed in the picker */
|
|
880
|
+
presetColors?: string[];
|
|
881
|
+
/** Controlled open state of the ColorPicker dropdown */
|
|
882
|
+
open?: boolean;
|
|
883
|
+
/** Callback invoked when open state changes */
|
|
884
|
+
onOpenChange?: (open: boolean) => void;
|
|
885
|
+
/** Default open state for uncontrolled usage */
|
|
886
|
+
defaultOpen?: boolean;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export declare type ColorTokens = {
|
|
494
890
|
[key: string]: RawColorTokenValue;
|
|
495
891
|
};
|
|
496
892
|
|
|
497
|
-
declare type ColorTokenValue = {
|
|
893
|
+
export declare type ColorTokenValue = {
|
|
498
894
|
light: string;
|
|
499
895
|
dark: string;
|
|
500
896
|
};
|
|
@@ -525,6 +921,14 @@ export declare type ComponentMetadata = {
|
|
|
525
921
|
};
|
|
526
922
|
|
|
527
923
|
export declare const componentMetadata: {
|
|
924
|
+
DragDrop: {
|
|
925
|
+
name: string;
|
|
926
|
+
link: string;
|
|
927
|
+
base: "custom";
|
|
928
|
+
refinements: string[];
|
|
929
|
+
category: "Data Entry";
|
|
930
|
+
description: string;
|
|
931
|
+
};
|
|
528
932
|
Badge: {
|
|
529
933
|
name: string;
|
|
530
934
|
link: string;
|
|
@@ -589,6 +993,14 @@ export declare const componentMetadata: {
|
|
|
589
993
|
originalDocUrl: string;
|
|
590
994
|
description: string;
|
|
591
995
|
};
|
|
996
|
+
Nav: {
|
|
997
|
+
name: string;
|
|
998
|
+
link: string;
|
|
999
|
+
base: "custom";
|
|
1000
|
+
refinements: string[];
|
|
1001
|
+
category: "Navigation";
|
|
1002
|
+
description: string;
|
|
1003
|
+
};
|
|
592
1004
|
Empty: {
|
|
593
1005
|
name: string;
|
|
594
1006
|
link: string;
|
|
@@ -654,7 +1066,7 @@ export declare const componentMetadata: {
|
|
|
654
1066
|
name: string;
|
|
655
1067
|
link: string;
|
|
656
1068
|
base: "antd";
|
|
657
|
-
refinements:
|
|
1069
|
+
refinements: any[];
|
|
658
1070
|
category: "Overlay";
|
|
659
1071
|
originalDocUrl: string;
|
|
660
1072
|
description: string;
|
|
@@ -756,7 +1168,6 @@ export declare const componentMetadata: {
|
|
|
756
1168
|
base: "antd";
|
|
757
1169
|
refinements: string[];
|
|
758
1170
|
category: "Data Display";
|
|
759
|
-
packages: string[];
|
|
760
1171
|
originalDocUrl: string;
|
|
761
1172
|
description: string;
|
|
762
1173
|
};
|
|
@@ -769,6 +1180,14 @@ export declare const componentMetadata: {
|
|
|
769
1180
|
originalDocUrl: string;
|
|
770
1181
|
description: string;
|
|
771
1182
|
};
|
|
1183
|
+
ColorSelect: {
|
|
1184
|
+
name: string;
|
|
1185
|
+
link: string;
|
|
1186
|
+
base: "antd";
|
|
1187
|
+
refinements: string[];
|
|
1188
|
+
category: "Data Entry";
|
|
1189
|
+
description: string;
|
|
1190
|
+
};
|
|
772
1191
|
ThemeProvider: {
|
|
773
1192
|
name: string;
|
|
774
1193
|
link: string;
|
|
@@ -883,7 +1302,7 @@ export { Descriptions }
|
|
|
883
1302
|
|
|
884
1303
|
export { DescriptionsProps }
|
|
885
1304
|
|
|
886
|
-
declare const DirectoryTreeInner: <T extends DataNode =
|
|
1305
|
+
declare const DirectoryTreeInner: <T extends DataNode = DataNode>(props: DirectoryTreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
887
1306
|
|
|
888
1307
|
export declare interface DirectoryTreeProps<T extends DataNode = TreeDataNode> extends Omit<DirectoryTreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
|
|
889
1308
|
treeData?: T[];
|
|
@@ -907,15 +1326,166 @@ export { Divider }
|
|
|
907
1326
|
|
|
908
1327
|
export { DividerProps }
|
|
909
1328
|
|
|
910
|
-
declare
|
|
1329
|
+
export declare type DragData = unknown;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* Drag component with subcomponents
|
|
1333
|
+
*/
|
|
1334
|
+
export declare const DragDrop: typeof DragDropRoot & {
|
|
1335
|
+
/**
|
|
1336
|
+
* Item that can be dragged
|
|
1337
|
+
*/
|
|
1338
|
+
Draggable: <T extends DragData = unknown>({ id, children, className, disabled, data, style, render, onDragEnd, onDragStart, indicator, onlyIndicatorDraggable, ...rest }: DragDropDraggableProps<T>) => null;
|
|
1339
|
+
/**
|
|
1340
|
+
* Zone where items can be dropped
|
|
1341
|
+
*/
|
|
1342
|
+
Droppable: <T extends DragData = unknown>({ id, children, className, disabled, placeholder, icon, render, onDrop, validate, ...rest }: DragDropDroppableProps<T>) => null;
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Props for the draggable item component
|
|
1347
|
+
*/
|
|
1348
|
+
export declare interface DragDropDraggableProps<T extends DragData = DragData> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnd" | "onDragStart"> {
|
|
1349
|
+
/**
|
|
1350
|
+
* Unique identifier for the draggable item
|
|
1351
|
+
*/
|
|
1352
|
+
id: UniqueIdentifier;
|
|
1353
|
+
/**
|
|
1354
|
+
* Whether the item is disabled from being dragged
|
|
1355
|
+
* @default false
|
|
1356
|
+
*/
|
|
1357
|
+
disabled?: boolean;
|
|
1358
|
+
/**
|
|
1359
|
+
* Data to be passed to the drag event
|
|
1360
|
+
*/
|
|
1361
|
+
data?: T;
|
|
1362
|
+
/**
|
|
1363
|
+
* Function to render the item
|
|
1364
|
+
*/
|
|
1365
|
+
render?: useRender.RenderProp<DraggableInfo<T> & {
|
|
1366
|
+
isDragging: boolean;
|
|
1367
|
+
}>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Callback fired when the drag operation ends
|
|
1370
|
+
*/
|
|
1371
|
+
onDragEnd?: (event: DragEndEvent<T>) => void;
|
|
1372
|
+
/**
|
|
1373
|
+
* Callback fired when the drag operation starts
|
|
1374
|
+
*/
|
|
1375
|
+
onDragStart?: (event: DragStartEvent<T>) => void;
|
|
1376
|
+
/**
|
|
1377
|
+
* Indicator to display if item is draggable
|
|
1378
|
+
* @default false
|
|
1379
|
+
*/
|
|
1380
|
+
indicator?: ReactNode | boolean;
|
|
1381
|
+
/**
|
|
1382
|
+
* Whether if only indicator is draggable
|
|
1383
|
+
* @default false
|
|
1384
|
+
*/
|
|
1385
|
+
onlyIndicatorDraggable?: boolean;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Props for the DropZone component
|
|
1390
|
+
*/
|
|
1391
|
+
export declare interface DragDropDroppableProps<T extends DragData = DragData> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop"> {
|
|
1392
|
+
/**
|
|
1393
|
+
* Unique identifier for the droppable area
|
|
1394
|
+
*/
|
|
1395
|
+
id: UniqueIdentifier;
|
|
1396
|
+
/**
|
|
1397
|
+
* Whether the drop zone is disabled
|
|
1398
|
+
* @default false
|
|
1399
|
+
*/
|
|
1400
|
+
disabled?: boolean;
|
|
1401
|
+
/**
|
|
1402
|
+
* Text to display when no children are provided
|
|
1403
|
+
* @default "Drop items here"
|
|
1404
|
+
*/
|
|
1405
|
+
placeholder?: ReactNode;
|
|
1406
|
+
/**
|
|
1407
|
+
* Icon to display when no children are provided
|
|
1408
|
+
*/
|
|
1409
|
+
icon?: ReactNode;
|
|
1410
|
+
/**
|
|
1411
|
+
* Custom render function
|
|
1412
|
+
*/
|
|
1413
|
+
render?: useRender.RenderProp<{
|
|
1414
|
+
isOver: boolean;
|
|
1415
|
+
id: string;
|
|
1416
|
+
}>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Callback fired when an item is dropped on this zone
|
|
1419
|
+
*/
|
|
1420
|
+
onDrop?: (item: {
|
|
1421
|
+
id: UniqueIdentifier;
|
|
1422
|
+
data: T;
|
|
1423
|
+
}) => void;
|
|
1424
|
+
/**
|
|
1425
|
+
* Validate if the item can be dropped
|
|
1426
|
+
*/
|
|
1427
|
+
validate?: (item: DraggableInfo<T>) => boolean;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Props for the Drag component
|
|
1432
|
+
*/
|
|
1433
|
+
export declare interface DragDropProps<T extends DragData = DragData> {
|
|
1434
|
+
/**
|
|
1435
|
+
* Children of the component
|
|
1436
|
+
*/
|
|
1437
|
+
children: ReactNode;
|
|
1438
|
+
/**
|
|
1439
|
+
* Callback fired when a drag operation ends
|
|
1440
|
+
*/
|
|
1441
|
+
onDragEnd?: (event: DragEndEvent<T>) => void;
|
|
1442
|
+
/**
|
|
1443
|
+
* Callback fired when a drag operation starts
|
|
1444
|
+
*/
|
|
1445
|
+
onDragStart?: (event: DragStartEvent<T>) => void;
|
|
1446
|
+
/**
|
|
1447
|
+
* Callback fired when an item is dropped on this zone
|
|
1448
|
+
*/
|
|
1449
|
+
onDrop?: (item: DraggableInfo<T>) => void;
|
|
911
1450
|
/**
|
|
912
|
-
*
|
|
1451
|
+
* Additional class name
|
|
913
1452
|
*/
|
|
914
|
-
|
|
1453
|
+
className?: string;
|
|
915
1454
|
/**
|
|
916
|
-
*
|
|
917
|
-
|
|
918
|
-
|
|
1455
|
+
* Whether to cancel drops on containers that don't handle the dropped item type
|
|
1456
|
+
* @default true
|
|
1457
|
+
*/
|
|
1458
|
+
cancelDrop?: boolean;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* The root component for the drag and drop functionality
|
|
1463
|
+
*/
|
|
1464
|
+
export declare function DragDropRoot<T extends DragData = DragData>({ children, onDragEnd: _onDragEnd, onDragStart: _onDragStart, onDrop: _onDrop, className, }: DragDropProps<T>): JSX.Element;
|
|
1465
|
+
|
|
1466
|
+
export declare interface DragEndEvent<T extends DragData = DragData> {
|
|
1467
|
+
active: {
|
|
1468
|
+
id: UniqueIdentifier;
|
|
1469
|
+
data: T;
|
|
1470
|
+
};
|
|
1471
|
+
over: {
|
|
1472
|
+
id: UniqueIdentifier;
|
|
1473
|
+
} | null;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
declare type DraggableInfo<T extends DragData = DragData> = {
|
|
1477
|
+
id: UniqueIdentifier;
|
|
1478
|
+
data: T;
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Event types for drag and drop operations
|
|
1483
|
+
*/
|
|
1484
|
+
export declare interface DragStartEvent<T extends DragData = DragData> {
|
|
1485
|
+
active: {
|
|
1486
|
+
id: UniqueIdentifier;
|
|
1487
|
+
data: T;
|
|
1488
|
+
};
|
|
919
1489
|
}
|
|
920
1490
|
|
|
921
1491
|
export { Drawer }
|
|
@@ -1001,6 +1571,10 @@ export { DropdownProps }
|
|
|
1001
1571
|
|
|
1002
1572
|
export declare const DSRoot: ({ className, appendClassesTo, children, theme, ...props }: DSRootProps) => JSX.Element;
|
|
1003
1573
|
|
|
1574
|
+
export declare const DSRootContextProvider: default_2.Provider<{
|
|
1575
|
+
theme: "light" | "dark";
|
|
1576
|
+
}>;
|
|
1577
|
+
|
|
1004
1578
|
export declare interface DSRootProps extends ThemeProviderProps {
|
|
1005
1579
|
/**
|
|
1006
1580
|
* Classname passed to App component
|
|
@@ -1083,11 +1657,35 @@ export declare type GenericHTMLProps = React.HTMLAttributes<any> & {
|
|
|
1083
1657
|
ref?: React.Ref<any> | undefined;
|
|
1084
1658
|
};
|
|
1085
1659
|
|
|
1660
|
+
/**
|
|
1661
|
+
* Get all categorical chart colors for a theme
|
|
1662
|
+
*/
|
|
1663
|
+
export declare function getAllCategoricalChartColors(theme?: Theme): Record<CategoricalPaletteName, string[]>;
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* Get all sequential chart colors for a theme
|
|
1667
|
+
*/
|
|
1668
|
+
export declare function getAllSequentialChartColors(theme?: Theme): Record<SequentialPaletteName, string[]>;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Get categorical chart colors for a specific palette and theme
|
|
1672
|
+
*/
|
|
1673
|
+
export declare function getCategoricalChartColors(palette: CategoricalPaletteName, theme?: Theme): string[];
|
|
1674
|
+
|
|
1675
|
+
export declare const getColorsByTheme: <T extends ColorTokens>(colorsOrTokens: T | ColorTokenValue[], theme: Theme) => string[];
|
|
1676
|
+
|
|
1086
1677
|
/**
|
|
1087
1678
|
* Get all components by category
|
|
1088
1679
|
*/
|
|
1089
1680
|
export declare const getComponentsByCategory: () => Record<ComponentCategory, ComponentMetadata[]>;
|
|
1090
1681
|
|
|
1682
|
+
/**
|
|
1683
|
+
* Get sequential chart colors for a specific palette and theme
|
|
1684
|
+
*/
|
|
1685
|
+
export declare function getSequentialChartColors(palette: SequentialPaletteName, theme?: Theme): string[];
|
|
1686
|
+
|
|
1687
|
+
export declare const getTokensByTheme: <T extends ColorTokens>(originTokens: T, theme: Theme) => Partial<Record<keyof T, string>>;
|
|
1688
|
+
|
|
1091
1689
|
export declare const getUniqueKeysFromOriginals: (nodes: DataNode[] | undefined, originalKeysToFind: Set<Key>, map: Map<Key, Key>) => Key[];
|
|
1092
1690
|
|
|
1093
1691
|
export { GlobalToken }
|
|
@@ -1097,10 +1695,36 @@ export { Grid }
|
|
|
1097
1695
|
export declare const IconButton: IconButtonComponent;
|
|
1098
1696
|
|
|
1099
1697
|
declare type IconButtonBaseProps = {
|
|
1698
|
+
/**
|
|
1699
|
+
* Label text or element to display within tooltip
|
|
1700
|
+
* @default undefined
|
|
1701
|
+
*/
|
|
1100
1702
|
label?: default_2.ReactNode;
|
|
1703
|
+
/**
|
|
1704
|
+
* Size of the icon button: small (1.25rem) or medium (1.5rem)
|
|
1705
|
+
* @default medium
|
|
1706
|
+
*/
|
|
1101
1707
|
size?: "small" | "medium";
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether to apply negative margin for better visual alignment
|
|
1710
|
+
* @default true
|
|
1711
|
+
*/
|
|
1102
1712
|
negativeMargin?: boolean;
|
|
1103
|
-
|
|
1713
|
+
/**
|
|
1714
|
+
* Whether to show loading state
|
|
1715
|
+
* @default false
|
|
1716
|
+
*/
|
|
1717
|
+
loading?: boolean;
|
|
1718
|
+
/**
|
|
1719
|
+
* Props to pass to the Tooltip component when wrapping the button
|
|
1720
|
+
*/
|
|
1721
|
+
tooltipProps?: TooltipProps;
|
|
1722
|
+
/**
|
|
1723
|
+
* Custom render function for the button
|
|
1724
|
+
*/
|
|
1725
|
+
render?: useRender.RenderProp<{
|
|
1726
|
+
loading: boolean;
|
|
1727
|
+
}>;
|
|
1104
1728
|
};
|
|
1105
1729
|
|
|
1106
1730
|
/**
|
|
@@ -1114,7 +1738,7 @@ declare type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefP
|
|
|
1114
1738
|
|
|
1115
1739
|
export declare type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
1116
1740
|
|
|
1117
|
-
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1741
|
+
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1118
1742
|
|
|
1119
1743
|
declare function InnerToast({ toast, }: {
|
|
1120
1744
|
toast: Toast_2.Root.ToastObject<ToastData>;
|
|
@@ -1146,6 +1770,8 @@ export { InputNumberProps }
|
|
|
1146
1770
|
export declare interface InputProps extends InputProps_2 {
|
|
1147
1771
|
}
|
|
1148
1772
|
|
|
1773
|
+
export declare const InternalBadge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element;
|
|
1774
|
+
|
|
1149
1775
|
declare interface InternalFormProps<Values = any> extends React_2.ComponentProps<typeof default_8<Values>> {
|
|
1150
1776
|
}
|
|
1151
1777
|
|
|
@@ -1157,6 +1783,8 @@ declare type IntrinsicElement = keyof JSX_2.IntrinsicElements | JSXElementConstr
|
|
|
1157
1783
|
|
|
1158
1784
|
export declare function isTracebackError(error: unknown): boolean;
|
|
1159
1785
|
|
|
1786
|
+
export declare const isValidHexColor: (hex: string, acceptWithoutPrefix?: boolean) => boolean;
|
|
1787
|
+
|
|
1160
1788
|
export { Layout }
|
|
1161
1789
|
|
|
1162
1790
|
export { LayoutProps }
|
|
@@ -1177,7 +1805,7 @@ declare const MainSelectInner: <ValueType = unknown, OptionType extends SelectBa
|
|
|
1177
1805
|
|
|
1178
1806
|
declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof default_4>>) => JSX.Element;
|
|
1179
1807
|
|
|
1180
|
-
declare const MainTreeInner: <T extends DataNode =
|
|
1808
|
+
declare const MainTreeInner: <T extends DataNode = DataNode>(props: TreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
1181
1809
|
|
|
1182
1810
|
export { MappingAlgorithm }
|
|
1183
1811
|
|
|
@@ -1215,7 +1843,7 @@ export declare const Modal: (({ open: externalOpen, closeIcon, children, size: s
|
|
|
1215
1843
|
|
|
1216
1844
|
export { ModalFuncProps }
|
|
1217
1845
|
|
|
1218
|
-
declare type ModalFuncProps_2 =
|
|
1846
|
+
declare type ModalFuncProps_2 = ModalProps_2 & {
|
|
1219
1847
|
/**
|
|
1220
1848
|
* Content to be displayed in the modal
|
|
1221
1849
|
* Similar to children prop in Modal component
|
|
@@ -1224,7 +1852,7 @@ declare type ModalFuncProps_2 = ModalProps & {
|
|
|
1224
1852
|
content?: default_2.ReactNode;
|
|
1225
1853
|
};
|
|
1226
1854
|
|
|
1227
|
-
declare interface
|
|
1855
|
+
declare interface ModalProps_2 extends Omit<ModalProps_3, "centered"> {
|
|
1228
1856
|
/**
|
|
1229
1857
|
* Predefined sizes for the modal
|
|
1230
1858
|
* - xsmall: 400px
|
|
@@ -1309,14 +1937,41 @@ export declare interface ModalProviderProps {
|
|
|
1309
1937
|
children?: default_2.ReactNode;
|
|
1310
1938
|
}
|
|
1311
1939
|
|
|
1312
|
-
declare
|
|
1313
|
-
|
|
1314
|
-
|
|
1940
|
+
declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
|
|
1941
|
+
|
|
1942
|
+
export declare const Nav: {
|
|
1943
|
+
Item: <T extends HTMLElement>(props: NavItemProps & {
|
|
1944
|
+
ref?: React.Ref<T>;
|
|
1945
|
+
}) => ReturnType<(<T_1 extends HTMLElement>({ icon, active, render, onClick, className, children, ...rest }: NavItemProps, ref: React.Ref<T_1>) => null)>;
|
|
1946
|
+
Heading: ({ children, className, ...rest }: NavHeadingProps) => JSX.Element;
|
|
1947
|
+
Group: ForwardRefExoticComponent<NavGroupProps & RefAttributes<HTMLDivElement>>;
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
export declare interface NavGroupProps extends default_2.ComponentPropsWithoutRef<"div"> {
|
|
1951
|
+
/**
|
|
1952
|
+
* Size of the nav
|
|
1953
|
+
* @default "medium"
|
|
1954
|
+
*/
|
|
1955
|
+
size?: "small" | "medium" | "large";
|
|
1956
|
+
/**
|
|
1957
|
+
* Weather it's collapsible or not
|
|
1958
|
+
*/
|
|
1959
|
+
collapsible?: boolean;
|
|
1315
1960
|
}
|
|
1316
1961
|
|
|
1317
|
-
declare
|
|
1962
|
+
export declare interface NavHeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
1963
|
+
children: default_2.ReactNode;
|
|
1964
|
+
}
|
|
1318
1965
|
|
|
1319
|
-
declare
|
|
1966
|
+
export declare interface NavItemProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1967
|
+
icon?: default_2.ReactNode;
|
|
1968
|
+
active?: boolean;
|
|
1969
|
+
render?: useRender.RenderProp<{
|
|
1970
|
+
active: boolean;
|
|
1971
|
+
icon?: default_2.ReactNode;
|
|
1972
|
+
}>;
|
|
1973
|
+
size?: "small" | "medium" | "large";
|
|
1974
|
+
}
|
|
1320
1975
|
|
|
1321
1976
|
export { notification }
|
|
1322
1977
|
|
|
@@ -1350,7 +2005,7 @@ export declare interface PopoverProps extends PopoverProps_2 {
|
|
|
1350
2005
|
arrow?: PopoverProps_2["arrow"];
|
|
1351
2006
|
}
|
|
1352
2007
|
|
|
1353
|
-
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;
|
|
2008
|
+
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;
|
|
1354
2009
|
|
|
1355
2010
|
export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
|
|
1356
2011
|
/** The trigger element that opens the popup panel */
|
|
@@ -1362,7 +2017,7 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1362
2017
|
/** Controls the open state of the popup panel */
|
|
1363
2018
|
open?: boolean;
|
|
1364
2019
|
/** Callback fired when the open state changes */
|
|
1365
|
-
onOpenChange?:
|
|
2020
|
+
onOpenChange?: Popover_2.Root.Props["onOpenChange"];
|
|
1366
2021
|
/** Content to display inside the popup panel */
|
|
1367
2022
|
content?: React.ReactNode;
|
|
1368
2023
|
/** Title text or element to display in the panel header */
|
|
@@ -1421,6 +2076,16 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1421
2076
|
footer?: string;
|
|
1422
2077
|
resizeHandle?: string;
|
|
1423
2078
|
};
|
|
2079
|
+
/**
|
|
2080
|
+
* Whether to close the panel when clicking outside
|
|
2081
|
+
* @default true
|
|
2082
|
+
*/
|
|
2083
|
+
closeOnClickOutside?: boolean;
|
|
2084
|
+
/**
|
|
2085
|
+
* Whether to use modal mode
|
|
2086
|
+
* @default false
|
|
2087
|
+
*/
|
|
2088
|
+
modal?: Popover_2.Root.Props["modal"];
|
|
1424
2089
|
}
|
|
1425
2090
|
|
|
1426
2091
|
declare enum PopupPanelSize {
|
|
@@ -1431,8 +2096,7 @@ declare enum PopupPanelSize {
|
|
|
1431
2096
|
xlarge = "840px"
|
|
1432
2097
|
}
|
|
1433
2098
|
|
|
1434
|
-
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>,
|
|
1435
|
-
parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
2099
|
+
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>, parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
1436
2100
|
|
|
1437
2101
|
export { Progress }
|
|
1438
2102
|
|
|
@@ -1450,18 +2114,18 @@ export { QRPropsCanvas }
|
|
|
1450
2114
|
|
|
1451
2115
|
export { QRPropsSvg }
|
|
1452
2116
|
|
|
1453
|
-
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
2117
|
+
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>> & {
|
|
1454
2118
|
Group: (props: RadioGroupProps & {
|
|
1455
2119
|
ref?: React.Ref<HTMLDivElement>;
|
|
1456
2120
|
}) => JSX.Element;
|
|
1457
|
-
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
2121
|
+
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>>;
|
|
1458
2122
|
};
|
|
1459
2123
|
|
|
1460
2124
|
export declare type RadioChangeEvent = RadioChangeEvent_2;
|
|
1461
2125
|
|
|
1462
2126
|
export declare type RadioGroupProps = RadioGroupProps_2;
|
|
1463
2127
|
|
|
1464
|
-
export declare type RadioProps =
|
|
2128
|
+
export declare type RadioProps = RadioProps_3;
|
|
1465
2129
|
|
|
1466
2130
|
export declare type RadioRef = RadioRef_2;
|
|
1467
2131
|
|
|
@@ -1854,11 +2518,11 @@ export declare const rawChartColorTokens: {
|
|
|
1854
2518
|
light: string;
|
|
1855
2519
|
dark: string;
|
|
1856
2520
|
};
|
|
1857
|
-
colorChartsStatusNeutral:
|
|
1858
|
-
colorChartsThresholdNegative:
|
|
1859
|
-
colorChartsThresholdPositive:
|
|
1860
|
-
colorChartsThresholdInfo:
|
|
1861
|
-
colorChartsThresholdNeutral:
|
|
2521
|
+
colorChartsStatusNeutral: RawColorTokenValue_2;
|
|
2522
|
+
colorChartsThresholdNegative: RawColorTokenValue_2;
|
|
2523
|
+
colorChartsThresholdPositive: RawColorTokenValue_2;
|
|
2524
|
+
colorChartsThresholdInfo: RawColorTokenValue_2;
|
|
2525
|
+
colorChartsThresholdNeutral: RawColorTokenValue_2;
|
|
1862
2526
|
colorChartsLineGrid: {
|
|
1863
2527
|
light: string;
|
|
1864
2528
|
dark: string;
|
|
@@ -1924,7 +2588,7 @@ export declare const rawChartColorTokens: {
|
|
|
1924
2588
|
colorChartsPaletteCategorical50: string;
|
|
1925
2589
|
};
|
|
1926
2590
|
|
|
1927
|
-
declare type RawColorTokenValue = string | ColorTokenValue;
|
|
2591
|
+
export declare type RawColorTokenValue = string | ColorTokenValue;
|
|
1928
2592
|
|
|
1929
2593
|
export { RcFile }
|
|
1930
2594
|
|
|
@@ -1936,6 +2600,12 @@ export { RefSelectProps }
|
|
|
1936
2600
|
|
|
1937
2601
|
declare type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps_2 : never;
|
|
1938
2602
|
|
|
2603
|
+
/**
|
|
2604
|
+
* Resolves chart color tokens by replacing reference strings with actual values.
|
|
2605
|
+
* @returns Record of token names to resolved light/dark color objects
|
|
2606
|
+
*/
|
|
2607
|
+
export declare function resolveColorTokens<T extends ColorTokens>(colors: T): Record<keyof T, ColorTokenValue>;
|
|
2608
|
+
|
|
1939
2609
|
export { Result }
|
|
1940
2610
|
|
|
1941
2611
|
export { ResultProps }
|
|
@@ -2017,6 +2687,12 @@ export declare interface SelectProps<ValueType = unknown, OptionType extends Sel
|
|
|
2017
2687
|
popupSize?: string | number | PopupPanelSize;
|
|
2018
2688
|
}
|
|
2019
2689
|
|
|
2690
|
+
export declare const SEQUENTIAL_PALETTE_NAMES: readonly ["YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"];
|
|
2691
|
+
|
|
2692
|
+
export declare const SEQUENTIAL_PALETTES: Record<SequentialPaletteName, Record<Theme, string[]>>;
|
|
2693
|
+
|
|
2694
|
+
export declare type SequentialPaletteName = (typeof SEQUENTIAL_PALETTE_NAMES)[number];
|
|
2695
|
+
|
|
2020
2696
|
export { SiderProps }
|
|
2021
2697
|
|
|
2022
2698
|
export { Skeleton }
|
|
@@ -2053,11 +2729,11 @@ export declare type SplitterProps = default_2.PropsWithChildren<SplitterProps_2>
|
|
|
2053
2729
|
showSplitBar?: boolean;
|
|
2054
2730
|
};
|
|
2055
2731
|
|
|
2056
|
-
export declare const Stack:
|
|
2057
|
-
Child:
|
|
2732
|
+
export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>> & {
|
|
2733
|
+
Child: ForwardRefExoticComponent<StackChildProps & RefAttributes<HTMLDivElement>>;
|
|
2058
2734
|
};
|
|
2059
2735
|
|
|
2060
|
-
export declare const StackChild: default_2.
|
|
2736
|
+
export declare const StackChild: default_2.ForwardRefExoticComponent<StackChildProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2061
2737
|
|
|
2062
2738
|
export declare interface StackChildProps extends StackProps {
|
|
2063
2739
|
/**
|
|
@@ -2087,7 +2763,7 @@ export declare interface StackChildProps extends StackProps {
|
|
|
2087
2763
|
stack?: boolean;
|
|
2088
2764
|
}
|
|
2089
2765
|
|
|
2090
|
-
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24;
|
|
2766
|
+
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24 | 28 | 32 | 40 | 48;
|
|
2091
2767
|
|
|
2092
2768
|
export declare interface StackProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
2093
2769
|
/**
|
|
@@ -2145,6 +2821,20 @@ export declare const Switch: (props: SwitchProps & {
|
|
|
2145
2821
|
export declare interface SwitchProps extends SwitchProps_2 {
|
|
2146
2822
|
}
|
|
2147
2823
|
|
|
2824
|
+
export declare const tab10: string[];
|
|
2825
|
+
|
|
2826
|
+
export declare const tab20: string[];
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* Darker variant groups
|
|
2830
|
+
*/
|
|
2831
|
+
export declare const tab20b: string[];
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Lighter variant groups
|
|
2835
|
+
*/
|
|
2836
|
+
export declare const tab20c: string[];
|
|
2837
|
+
|
|
2148
2838
|
export declare const Table: typeof InternalTable & {
|
|
2149
2839
|
Column: typeof default_6.Column;
|
|
2150
2840
|
ColumnGroup: typeof default_6.ColumnGroup;
|
|
@@ -2175,6 +2865,10 @@ export declare interface TableProps<RecordType extends object = object> extends
|
|
|
2175
2865
|
* Table ref
|
|
2176
2866
|
*/
|
|
2177
2867
|
tableRef?: React.Ref<HTMLDivElement>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Table style
|
|
2870
|
+
*/
|
|
2871
|
+
variant?: "default" | "zebra";
|
|
2178
2872
|
}
|
|
2179
2873
|
|
|
2180
2874
|
export { TabPaneProps }
|
|
@@ -2183,7 +2877,7 @@ export { Tabs }
|
|
|
2183
2877
|
|
|
2184
2878
|
export { TabsProps }
|
|
2185
2879
|
|
|
2186
|
-
export declare const Tag:
|
|
2880
|
+
export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>> & {
|
|
2187
2881
|
CheckableTag: ForwardRefExoticComponent<CheckableTagProps & RefAttributes<HTMLSpanElement>>;
|
|
2188
2882
|
};
|
|
2189
2883
|
|
|
@@ -2193,6 +2887,11 @@ export declare interface TagProps extends TagProps_2 {
|
|
|
2193
2887
|
* @default false
|
|
2194
2888
|
*/
|
|
2195
2889
|
active?: boolean;
|
|
2890
|
+
/**
|
|
2891
|
+
* Size of the tag
|
|
2892
|
+
* @default "small"
|
|
2893
|
+
*/
|
|
2894
|
+
size?: "small" | "medium" | "large";
|
|
2196
2895
|
}
|
|
2197
2896
|
|
|
2198
2897
|
export { TagType }
|
|
@@ -2202,6 +2901,8 @@ declare const TextAreaInner: (props: TextAreaProps, ref: React.Ref<HTMLTextAreaE
|
|
|
2202
2901
|
export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
2203
2902
|
}
|
|
2204
2903
|
|
|
2904
|
+
export declare type Theme = "light" | "dark";
|
|
2905
|
+
|
|
2205
2906
|
export { theme }
|
|
2206
2907
|
|
|
2207
2908
|
export { ThemeConfig }
|
|
@@ -2250,7 +2951,7 @@ export declare const toastManager: Toast_2.createToastManager.ToastManager;
|
|
|
2250
2951
|
|
|
2251
2952
|
declare function ToastProvider(props: Toast_2.Provider.Props): JSX.Element;
|
|
2252
2953
|
|
|
2253
|
-
export declare const Tooltip: ({
|
|
2954
|
+
export declare const Tooltip: ({ arrow, ...rest }: TooltipProps) => JSX.Element;
|
|
2254
2955
|
|
|
2255
2956
|
export declare type TooltipProps = TooltipProps_2 & {
|
|
2256
2957
|
/**
|
|
@@ -2272,9 +2973,9 @@ export { Transfer }
|
|
|
2272
2973
|
|
|
2273
2974
|
export { TransferProps }
|
|
2274
2975
|
|
|
2275
|
-
export declare
|
|
2976
|
+
export declare function Transition(props: TransitionProps): null;
|
|
2276
2977
|
|
|
2277
|
-
export declare
|
|
2978
|
+
export declare type TransitionProps = Omit<useRender.ComponentProps<"div">, "render" | "children"> & {
|
|
2278
2979
|
/** Whether the component should be shown */
|
|
2279
2980
|
show?: boolean;
|
|
2280
2981
|
/** CSS classes to apply when the component is opened */
|
|
@@ -2283,11 +2984,23 @@ export declare interface TransitionProps extends Omit<useRender.ComponentProps<"
|
|
|
2283
2984
|
ending?: string | CSSProperties;
|
|
2284
2985
|
/** CSS classes to apply to the component */
|
|
2285
2986
|
className?: string;
|
|
2286
|
-
/** Child component to render */
|
|
2287
|
-
children: useRender.ComponentProps<"div">["render"];
|
|
2288
2987
|
/** Keep mounted */
|
|
2289
2988
|
keepMounted?: boolean;
|
|
2290
|
-
|
|
2989
|
+
/**
|
|
2990
|
+
* Callback function to be called when the transition ends
|
|
2991
|
+
*/
|
|
2992
|
+
onTransitionComplete?: (show?: boolean) => void;
|
|
2993
|
+
/**
|
|
2994
|
+
* Whether to listen for animations in child elements
|
|
2995
|
+
*/
|
|
2996
|
+
listenToChildAnimations?: boolean;
|
|
2997
|
+
/**
|
|
2998
|
+
* Whether to render the child as a child element
|
|
2999
|
+
* @default true
|
|
3000
|
+
*/
|
|
3001
|
+
asChild?: boolean;
|
|
3002
|
+
children?: React.ReactNode | useRender.ComponentProps<"div">["render"];
|
|
3003
|
+
};
|
|
2291
3004
|
|
|
2292
3005
|
export declare const Tree: (<T extends DataNode = DataNode>(props: TreeProps<T> & {
|
|
2293
3006
|
ref?: React.ForwardedRef<React.ComponentRef<typeof default_7<T>>>;
|
|
@@ -2339,11 +3052,16 @@ export { Typography }
|
|
|
2339
3052
|
|
|
2340
3053
|
export { TypographyProps }
|
|
2341
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* Base data type for drag and drop operations
|
|
3057
|
+
*/
|
|
3058
|
+
declare type UniqueIdentifier = string | number;
|
|
3059
|
+
|
|
2342
3060
|
export { unstableSetRender }
|
|
2343
3061
|
|
|
2344
3062
|
export declare const Upload: (({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element) & {
|
|
2345
3063
|
Dragger: ({ children, uploadTitle, uploadDescription, itemRender, ...rest }: DraggerProps) => JSX.Element;
|
|
2346
|
-
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }:
|
|
3064
|
+
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }: UploadItemProps_2) => JSX.Element;
|
|
2347
3065
|
};
|
|
2348
3066
|
|
|
2349
3067
|
export { UploadChangeParam }
|
|
@@ -2370,7 +3088,10 @@ export declare interface UploadProps extends UploadProps_2 {
|
|
|
2370
3088
|
showRemoveButton?: boolean;
|
|
2371
3089
|
}
|
|
2372
3090
|
|
|
2373
|
-
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, waitForNextTick
|
|
3091
|
+
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, { waitForNextTick, subtree, }: {
|
|
3092
|
+
waitForNextTick?: boolean;
|
|
3093
|
+
subtree?: boolean;
|
|
3094
|
+
}): (fnToExecute: () => void) => void;
|
|
2374
3095
|
|
|
2375
3096
|
/**
|
|
2376
3097
|
*
|
|
@@ -2382,11 +3103,16 @@ export { useApp }
|
|
|
2382
3103
|
|
|
2383
3104
|
export declare const useBreakpoint: () => Partial<Record<Breakpoint, boolean>>;
|
|
2384
3105
|
|
|
2385
|
-
|
|
3106
|
+
/**
|
|
3107
|
+
* Get chart colors and axis configuration based on the current theme.
|
|
3108
|
+
* @param options
|
|
3109
|
+
* @returns
|
|
3110
|
+
*/
|
|
3111
|
+
export declare const useCharts: (options?: UseChartsOptions) => {
|
|
2386
3112
|
axisLineColor: string;
|
|
2387
3113
|
splitLineColor: string;
|
|
2388
3114
|
axisLabelColor: string;
|
|
2389
|
-
|
|
3115
|
+
chartColors: string[];
|
|
2390
3116
|
echartsAxisConfig: {
|
|
2391
3117
|
axisLine: {
|
|
2392
3118
|
lineStyle: {
|
|
@@ -2405,9 +3131,37 @@ export declare const useCharts: () => {
|
|
|
2405
3131
|
};
|
|
2406
3132
|
};
|
|
2407
3133
|
|
|
3134
|
+
export declare interface UseChartsOptions {
|
|
3135
|
+
/**
|
|
3136
|
+
* The palette to use for the charts.
|
|
3137
|
+
* @default "cloudscape"
|
|
3138
|
+
*/
|
|
3139
|
+
palette?: SequentialPaletteName | CategoricalPaletteName;
|
|
3140
|
+
/**
|
|
3141
|
+
* The theme to use for the charts.
|
|
3142
|
+
* @default "light"
|
|
3143
|
+
*/
|
|
3144
|
+
theme?: Theme;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
2408
3147
|
export declare const useCls: () => (...args: ClassValue[]) => string;
|
|
2409
3148
|
|
|
2410
|
-
|
|
3149
|
+
/**
|
|
3150
|
+
* A hook that manages state that can be either controlled or uncontrolled.
|
|
3151
|
+
*
|
|
3152
|
+
* @param value - The controlled value
|
|
3153
|
+
* @param onChange - Callback when the value changes
|
|
3154
|
+
* @param defaultValue - Default value for uncontrolled state
|
|
3155
|
+
* @returns [currentValue, setValue] - Current value and setter function
|
|
3156
|
+
*/
|
|
3157
|
+
export declare function useControlledState<T, K extends unknown[] = []>(value?: T, onChange?: ((value: T, ...args: K | []) => void) | React.Dispatch<React.SetStateAction<T>>, defaultValue?: T): [
|
|
3158
|
+
T | undefined,
|
|
3159
|
+
(value: T | ((prev: T | undefined) => T), ...args: K | []) => void
|
|
3160
|
+
];
|
|
3161
|
+
|
|
3162
|
+
export declare const useDS: () => {
|
|
3163
|
+
theme: "light" | "dark";
|
|
3164
|
+
};
|
|
2411
3165
|
|
|
2412
3166
|
export declare const useEnhancedEffect: typeof useLayoutEffect;
|
|
2413
3167
|
|
|
@@ -2426,8 +3180,8 @@ export declare const useMessage: () => MessageInstance;
|
|
|
2426
3180
|
export declare const useModal: () => HookAPI;
|
|
2427
3181
|
|
|
2428
3182
|
export declare const useToken: () => {
|
|
2429
|
-
theme:
|
|
2430
|
-
token:
|
|
3183
|
+
theme: Theme_2<SeedToken, AliasToken>;
|
|
3184
|
+
token: GlobalToken;
|
|
2431
3185
|
hashId: string;
|
|
2432
3186
|
};
|
|
2433
3187
|
|
|
@@ -2545,7 +3299,7 @@ export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
|
|
|
2545
3299
|
as?: IntrinsicElement;
|
|
2546
3300
|
} & ComponentProps<T>;
|
|
2547
3301
|
|
|
2548
|
-
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) =>
|
|
3302
|
+
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
|
|
2549
3303
|
|
|
2550
3304
|
declare type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
|
|
2551
3305
|
href: string;
|