@bioturing/components 0.16.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Badge/component.js +7 -20
- package/dist/components/Badge/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/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/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/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/PopupPanel/component.js +69 -74
- package/dist/components/PopupPanel/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 +59 -54
- package/dist/components/Stack/StackChild.js.map +1 -1
- package/dist/components/Tag/component.js +59 -24
- package/dist/components/Tag/component.js.map +1 -1
- package/dist/components/Tag/style.css +1 -1
- package/dist/components/ThemeProvider/component.js +18 -18
- package/dist/components/ThemeProvider/component.js.map +1 -1
- package/dist/components/ThemeProvider/style.css +1 -1
- package/dist/components/Toast/component.js +29 -35
- package/dist/components/Toast/component.js.map +1 -1
- package/dist/components/Tooltip/component.js +4 -22
- package/dist/components/Tooltip/component.js.map +1 -1
- package/dist/components/VerticalCollapsiblePanel/component.js +37 -37
- package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -1
- package/dist/components/hooks/useCharts.js +19 -17
- package/dist/components/hooks/useCharts.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 +724 -23
- package/dist/index.js +186 -162
- package/dist/index.js.map +1 -1
- package/dist/metadata.js +45 -7
- 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 +2 -2
- 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,7 +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 {
|
|
51
|
+
import { ColorPickerProps as ColorPickerProps_2 } from 'antd/es/color-picker';
|
|
52
52
|
import { ColProps } from 'antd';
|
|
53
53
|
import { ComponentProps } from 'react';
|
|
54
54
|
import { ComponentPropsWithoutRef } from 'react';
|
|
@@ -158,6 +158,7 @@ import { RadioProps as RadioProps_3 } from 'antd/es/radio';
|
|
|
158
158
|
import { RadioRef as RadioRef_2 } from 'antd/es/radio';
|
|
159
159
|
import { Rate } from 'antd';
|
|
160
160
|
import { RateProps } from 'antd';
|
|
161
|
+
import { RawColorTokenValue as RawColorTokenValue_2 } from '../..';
|
|
161
162
|
import { RcFile } from 'antd/es/upload';
|
|
162
163
|
import * as React_2 from 'react';
|
|
163
164
|
import { ReactElement } from 'react';
|
|
@@ -210,8 +211,8 @@ import { TabsProps } from 'antd';
|
|
|
210
211
|
import { TagProps as TagProps_2 } from 'antd/es/tag';
|
|
211
212
|
import { TagType } from 'antd';
|
|
212
213
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
|
213
|
-
import { Theme } from '@ant-design/cssinjs';
|
|
214
214
|
import { theme } from 'antd';
|
|
215
|
+
import { Theme as Theme_2 } from '@ant-design/cssinjs';
|
|
215
216
|
import { ThemeConfig } from 'antd';
|
|
216
217
|
import { Timeline } from 'antd';
|
|
217
218
|
import { TimelineItemProps } from 'antd';
|
|
@@ -220,7 +221,6 @@ import { TimePicker } from 'antd';
|
|
|
220
221
|
import { TimePickerProps } from 'antd';
|
|
221
222
|
import { TimeRangePickerProps } from 'antd';
|
|
222
223
|
import { Toast as Toast_2 } from '@base-ui-components/react';
|
|
223
|
-
import { Tooltip as Tooltip_2 } from 'antd';
|
|
224
224
|
import { TooltipProps as TooltipProps_2 } from 'antd/es/tooltip';
|
|
225
225
|
import { TourProps as TourProps_2 } from 'antd/es/tour/interface';
|
|
226
226
|
import { TourStepProps as TourStepProps_2 } from 'antd/es/tour/interface';
|
|
@@ -372,13 +372,23 @@ export { CascaderPanelProps }
|
|
|
372
372
|
|
|
373
373
|
export { CascaderProps }
|
|
374
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
|
+
|
|
375
379
|
export declare const categoricalChartColorKeys: Array<keyof typeof chartColorTokens>;
|
|
376
380
|
|
|
377
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>;
|
|
378
382
|
|
|
379
383
|
export declare const categoricalChartsColors: ColorTokenValue[];
|
|
380
384
|
|
|
381
|
-
export declare
|
|
385
|
+
export declare type CategoricalPaletteName = (typeof CATEGORICAL_PALETTE_NAMES)[number];
|
|
386
|
+
|
|
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>;
|
|
388
|
+
|
|
389
|
+
export declare interface CheckableTagProps extends CheckableTagProps_2 {
|
|
390
|
+
size?: "small" | "medium" | "large";
|
|
391
|
+
}
|
|
382
392
|
|
|
383
393
|
export declare const Checkbox: ((props: CheckboxProps & {
|
|
384
394
|
ref?: React.ForwardedRef<React.ComponentRef<typeof Checkbox_2>>;
|
|
@@ -499,10 +509,383 @@ export declare interface CollapsePanelProps extends CollapsePanelProps_2 {
|
|
|
499
509
|
export declare interface CollapseProps extends CollapseProps_2 {
|
|
500
510
|
}
|
|
501
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
|
+
|
|
502
850
|
export { ColorPicker }
|
|
503
851
|
|
|
504
852
|
export { ColorPickerProps }
|
|
505
853
|
|
|
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
|
+
|
|
506
889
|
export declare type ColorTokens = {
|
|
507
890
|
[key: string]: RawColorTokenValue;
|
|
508
891
|
};
|
|
@@ -538,6 +921,14 @@ export declare type ComponentMetadata = {
|
|
|
538
921
|
};
|
|
539
922
|
|
|
540
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
|
+
};
|
|
541
932
|
Badge: {
|
|
542
933
|
name: string;
|
|
543
934
|
link: string;
|
|
@@ -602,6 +993,14 @@ export declare const componentMetadata: {
|
|
|
602
993
|
originalDocUrl: string;
|
|
603
994
|
description: string;
|
|
604
995
|
};
|
|
996
|
+
Nav: {
|
|
997
|
+
name: string;
|
|
998
|
+
link: string;
|
|
999
|
+
base: "custom";
|
|
1000
|
+
refinements: string[];
|
|
1001
|
+
category: "Navigation";
|
|
1002
|
+
description: string;
|
|
1003
|
+
};
|
|
605
1004
|
Empty: {
|
|
606
1005
|
name: string;
|
|
607
1006
|
link: string;
|
|
@@ -667,7 +1066,7 @@ export declare const componentMetadata: {
|
|
|
667
1066
|
name: string;
|
|
668
1067
|
link: string;
|
|
669
1068
|
base: "antd";
|
|
670
|
-
refinements:
|
|
1069
|
+
refinements: any[];
|
|
671
1070
|
category: "Overlay";
|
|
672
1071
|
originalDocUrl: string;
|
|
673
1072
|
description: string;
|
|
@@ -781,6 +1180,14 @@ export declare const componentMetadata: {
|
|
|
781
1180
|
originalDocUrl: string;
|
|
782
1181
|
description: string;
|
|
783
1182
|
};
|
|
1183
|
+
ColorSelect: {
|
|
1184
|
+
name: string;
|
|
1185
|
+
link: string;
|
|
1186
|
+
base: "antd";
|
|
1187
|
+
refinements: string[];
|
|
1188
|
+
category: "Data Entry";
|
|
1189
|
+
description: string;
|
|
1190
|
+
};
|
|
784
1191
|
ThemeProvider: {
|
|
785
1192
|
name: string;
|
|
786
1193
|
link: string;
|
|
@@ -919,6 +1326,168 @@ export { Divider }
|
|
|
919
1326
|
|
|
920
1327
|
export { DividerProps }
|
|
921
1328
|
|
|
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;
|
|
1450
|
+
/**
|
|
1451
|
+
* Additional class name
|
|
1452
|
+
*/
|
|
1453
|
+
className?: string;
|
|
1454
|
+
/**
|
|
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
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
|
|
922
1491
|
export { Drawer }
|
|
923
1492
|
|
|
924
1493
|
export { DrawerProps }
|
|
@@ -1088,14 +1657,34 @@ export declare type GenericHTMLProps = React.HTMLAttributes<any> & {
|
|
|
1088
1657
|
ref?: React.Ref<any> | undefined;
|
|
1089
1658
|
};
|
|
1090
1659
|
|
|
1091
|
-
|
|
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[];
|
|
1092
1676
|
|
|
1093
1677
|
/**
|
|
1094
1678
|
* Get all components by category
|
|
1095
1679
|
*/
|
|
1096
1680
|
export declare const getComponentsByCategory: () => Record<ComponentCategory, ComponentMetadata[]>;
|
|
1097
1681
|
|
|
1098
|
-
|
|
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>>;
|
|
1099
1688
|
|
|
1100
1689
|
export declare const getUniqueKeysFromOriginals: (nodes: DataNode[] | undefined, originalKeysToFind: Set<Key>, map: Map<Key, Key>) => Key[];
|
|
1101
1690
|
|
|
@@ -1106,10 +1695,36 @@ export { Grid }
|
|
|
1106
1695
|
export declare const IconButton: IconButtonComponent;
|
|
1107
1696
|
|
|
1108
1697
|
declare type IconButtonBaseProps = {
|
|
1698
|
+
/**
|
|
1699
|
+
* Label text or element to display within tooltip
|
|
1700
|
+
* @default undefined
|
|
1701
|
+
*/
|
|
1109
1702
|
label?: default_2.ReactNode;
|
|
1703
|
+
/**
|
|
1704
|
+
* Size of the icon button: small (1.25rem) or medium (1.5rem)
|
|
1705
|
+
* @default medium
|
|
1706
|
+
*/
|
|
1110
1707
|
size?: "small" | "medium";
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether to apply negative margin for better visual alignment
|
|
1710
|
+
* @default true
|
|
1711
|
+
*/
|
|
1111
1712
|
negativeMargin?: boolean;
|
|
1112
|
-
|
|
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
|
+
}>;
|
|
1113
1728
|
};
|
|
1114
1729
|
|
|
1115
1730
|
/**
|
|
@@ -1168,6 +1783,8 @@ declare type IntrinsicElement = keyof JSX_2.IntrinsicElements | JSXElementConstr
|
|
|
1168
1783
|
|
|
1169
1784
|
export declare function isTracebackError(error: unknown): boolean;
|
|
1170
1785
|
|
|
1786
|
+
export declare const isValidHexColor: (hex: string, acceptWithoutPrefix?: boolean) => boolean;
|
|
1787
|
+
|
|
1171
1788
|
export { Layout }
|
|
1172
1789
|
|
|
1173
1790
|
export { LayoutProps }
|
|
@@ -1322,6 +1939,40 @@ export declare interface ModalProviderProps {
|
|
|
1322
1939
|
|
|
1323
1940
|
declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
|
|
1324
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;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
export declare interface NavHeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
1963
|
+
children: default_2.ReactNode;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
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
|
+
}
|
|
1975
|
+
|
|
1325
1976
|
export { notification }
|
|
1326
1977
|
|
|
1327
1978
|
export { NotificationArgsProps }
|
|
@@ -1867,11 +2518,11 @@ export declare const rawChartColorTokens: {
|
|
|
1867
2518
|
light: string;
|
|
1868
2519
|
dark: string;
|
|
1869
2520
|
};
|
|
1870
|
-
colorChartsStatusNeutral:
|
|
1871
|
-
colorChartsThresholdNegative:
|
|
1872
|
-
colorChartsThresholdPositive:
|
|
1873
|
-
colorChartsThresholdInfo:
|
|
1874
|
-
colorChartsThresholdNeutral:
|
|
2521
|
+
colorChartsStatusNeutral: RawColorTokenValue_2;
|
|
2522
|
+
colorChartsThresholdNegative: RawColorTokenValue_2;
|
|
2523
|
+
colorChartsThresholdPositive: RawColorTokenValue_2;
|
|
2524
|
+
colorChartsThresholdInfo: RawColorTokenValue_2;
|
|
2525
|
+
colorChartsThresholdNeutral: RawColorTokenValue_2;
|
|
1875
2526
|
colorChartsLineGrid: {
|
|
1876
2527
|
light: string;
|
|
1877
2528
|
dark: string;
|
|
@@ -1937,7 +2588,7 @@ export declare const rawChartColorTokens: {
|
|
|
1937
2588
|
colorChartsPaletteCategorical50: string;
|
|
1938
2589
|
};
|
|
1939
2590
|
|
|
1940
|
-
declare type RawColorTokenValue = string | ColorTokenValue;
|
|
2591
|
+
export declare type RawColorTokenValue = string | ColorTokenValue;
|
|
1941
2592
|
|
|
1942
2593
|
export { RcFile }
|
|
1943
2594
|
|
|
@@ -2036,6 +2687,12 @@ export declare interface SelectProps<ValueType = unknown, OptionType extends Sel
|
|
|
2036
2687
|
popupSize?: string | number | PopupPanelSize;
|
|
2037
2688
|
}
|
|
2038
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
|
+
|
|
2039
2696
|
export { SiderProps }
|
|
2040
2697
|
|
|
2041
2698
|
export { Skeleton }
|
|
@@ -2072,11 +2729,11 @@ export declare type SplitterProps = default_2.PropsWithChildren<SplitterProps_2>
|
|
|
2072
2729
|
showSplitBar?: boolean;
|
|
2073
2730
|
};
|
|
2074
2731
|
|
|
2075
|
-
export declare const Stack:
|
|
2076
|
-
Child:
|
|
2732
|
+
export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>> & {
|
|
2733
|
+
Child: ForwardRefExoticComponent<StackChildProps & RefAttributes<HTMLDivElement>>;
|
|
2077
2734
|
};
|
|
2078
2735
|
|
|
2079
|
-
export declare const StackChild: default_2.
|
|
2736
|
+
export declare const StackChild: default_2.ForwardRefExoticComponent<StackChildProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2080
2737
|
|
|
2081
2738
|
export declare interface StackChildProps extends StackProps {
|
|
2082
2739
|
/**
|
|
@@ -2164,6 +2821,20 @@ export declare const Switch: (props: SwitchProps & {
|
|
|
2164
2821
|
export declare interface SwitchProps extends SwitchProps_2 {
|
|
2165
2822
|
}
|
|
2166
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
|
+
|
|
2167
2838
|
export declare const Table: typeof InternalTable & {
|
|
2168
2839
|
Column: typeof default_6.Column;
|
|
2169
2840
|
ColumnGroup: typeof default_6.ColumnGroup;
|
|
@@ -2206,7 +2877,7 @@ export { Tabs }
|
|
|
2206
2877
|
|
|
2207
2878
|
export { TabsProps }
|
|
2208
2879
|
|
|
2209
|
-
export declare const Tag:
|
|
2880
|
+
export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>> & {
|
|
2210
2881
|
CheckableTag: ForwardRefExoticComponent<CheckableTagProps & RefAttributes<HTMLSpanElement>>;
|
|
2211
2882
|
};
|
|
2212
2883
|
|
|
@@ -2216,6 +2887,11 @@ export declare interface TagProps extends TagProps_2 {
|
|
|
2216
2887
|
* @default false
|
|
2217
2888
|
*/
|
|
2218
2889
|
active?: boolean;
|
|
2890
|
+
/**
|
|
2891
|
+
* Size of the tag
|
|
2892
|
+
* @default "small"
|
|
2893
|
+
*/
|
|
2894
|
+
size?: "small" | "medium" | "large";
|
|
2219
2895
|
}
|
|
2220
2896
|
|
|
2221
2897
|
export { TagType }
|
|
@@ -2225,6 +2901,8 @@ declare const TextAreaInner: (props: TextAreaProps, ref: React.Ref<HTMLTextAreaE
|
|
|
2225
2901
|
export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
2226
2902
|
}
|
|
2227
2903
|
|
|
2904
|
+
export declare type Theme = "light" | "dark";
|
|
2905
|
+
|
|
2228
2906
|
export { theme }
|
|
2229
2907
|
|
|
2230
2908
|
export { ThemeConfig }
|
|
@@ -2273,7 +2951,7 @@ export declare const toastManager: Toast_2.createToastManager.ToastManager;
|
|
|
2273
2951
|
|
|
2274
2952
|
declare function ToastProvider(props: Toast_2.Provider.Props): JSX.Element;
|
|
2275
2953
|
|
|
2276
|
-
export declare const Tooltip: ({
|
|
2954
|
+
export declare const Tooltip: ({ arrow, ...rest }: TooltipProps) => JSX.Element;
|
|
2277
2955
|
|
|
2278
2956
|
export declare type TooltipProps = TooltipProps_2 & {
|
|
2279
2957
|
/**
|
|
@@ -2374,6 +3052,11 @@ export { Typography }
|
|
|
2374
3052
|
|
|
2375
3053
|
export { TypographyProps }
|
|
2376
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* Base data type for drag and drop operations
|
|
3057
|
+
*/
|
|
3058
|
+
declare type UniqueIdentifier = string | number;
|
|
3059
|
+
|
|
2377
3060
|
export { unstableSetRender }
|
|
2378
3061
|
|
|
2379
3062
|
export declare const Upload: (({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element) & {
|
|
@@ -2420,11 +3103,16 @@ export { useApp }
|
|
|
2420
3103
|
|
|
2421
3104
|
export declare const useBreakpoint: () => Partial<Record<Breakpoint, boolean>>;
|
|
2422
3105
|
|
|
2423
|
-
|
|
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) => {
|
|
2424
3112
|
axisLineColor: string;
|
|
2425
3113
|
splitLineColor: string;
|
|
2426
3114
|
axisLabelColor: string;
|
|
2427
|
-
|
|
3115
|
+
chartColors: string[];
|
|
2428
3116
|
echartsAxisConfig: {
|
|
2429
3117
|
axisLine: {
|
|
2430
3118
|
lineStyle: {
|
|
@@ -2443,6 +3131,19 @@ export declare const useCharts: () => {
|
|
|
2443
3131
|
};
|
|
2444
3132
|
};
|
|
2445
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
|
+
|
|
2446
3147
|
export declare const useCls: () => (...args: ClassValue[]) => string;
|
|
2447
3148
|
|
|
2448
3149
|
/**
|
|
@@ -2479,7 +3180,7 @@ export declare const useMessage: () => MessageInstance;
|
|
|
2479
3180
|
export declare const useModal: () => HookAPI;
|
|
2480
3181
|
|
|
2481
3182
|
export declare const useToken: () => {
|
|
2482
|
-
theme:
|
|
3183
|
+
theme: Theme_2<SeedToken, AliasToken>;
|
|
2483
3184
|
token: GlobalToken;
|
|
2484
3185
|
hashId: string;
|
|
2485
3186
|
};
|