@officesdk/design 0.1.21 → 0.1.23
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/cjs/index.d.ts +83 -79
- package/dist/components/cjs/index.js +27 -35
- package/dist/components/cjs/index.js.map +1 -1
- package/dist/components/esm/index.d.ts +83 -79
- package/dist/components/esm/index.js +26 -34
- package/dist/components/esm/index.js.map +1 -1
- package/dist/theme/cjs/index.js +37 -37
- package/dist/theme/cjs/index.js.map +1 -1
- package/dist/theme/esm/index.js +37 -37
- package/dist/theme/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React$1 from 'react';
|
|
2
2
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
|
3
3
|
import { DropdownProps as DropdownProps$1 } from 'rc-dropdown';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
import { ThemedStyledInterface } from 'styled-components';
|
|
6
6
|
import { Theme } from '@officesdk/design/theme';
|
|
7
7
|
|
|
8
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
9
|
/**
|
|
10
10
|
* Button variant type
|
|
11
11
|
* - 'icon': Square icon button without padding, size based on iconSize
|
|
@@ -37,7 +37,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
37
37
|
* - If string: treated as icon src URL, rendered using Icon component
|
|
38
38
|
* - If ReactNode: rendered directly
|
|
39
39
|
*/
|
|
40
|
-
icon?: string | React.ReactNode;
|
|
40
|
+
icon?: string | React$1.ReactNode;
|
|
41
41
|
/**
|
|
42
42
|
* Icon placement relative to text (only for text buttons)
|
|
43
43
|
*/
|
|
@@ -70,7 +70,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
70
70
|
* // Icon variant button without border
|
|
71
71
|
* <Button variant="icon" icon={<CustomIcon />} />
|
|
72
72
|
*/
|
|
73
|
-
declare const Button: React.FC<ButtonProps>;
|
|
73
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
74
74
|
|
|
75
75
|
interface SpinButtonProps {
|
|
76
76
|
/**
|
|
@@ -132,7 +132,7 @@ interface SpinButtonProps {
|
|
|
132
132
|
/**
|
|
133
133
|
* Custom style
|
|
134
134
|
*/
|
|
135
|
-
style?: React.CSSProperties;
|
|
135
|
+
style?: React$1.CSSProperties;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* SpinButton Component - Spin Button
|
|
@@ -142,7 +142,7 @@ interface SpinButtonProps {
|
|
|
142
142
|
* @example
|
|
143
143
|
* <SpinButton value={35} onChange={(val) => console.log(val)} />
|
|
144
144
|
*/
|
|
145
|
-
declare const SpinButton: React.FC<SpinButtonProps>;
|
|
145
|
+
declare const SpinButton: React$1.FC<SpinButtonProps>;
|
|
146
146
|
|
|
147
147
|
interface SwitchProps {
|
|
148
148
|
/**
|
|
@@ -172,7 +172,7 @@ interface SwitchProps {
|
|
|
172
172
|
/**
|
|
173
173
|
* Custom style
|
|
174
174
|
*/
|
|
175
|
-
style?: React.CSSProperties;
|
|
175
|
+
style?: React$1.CSSProperties;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* Switch Component
|
|
@@ -182,7 +182,7 @@ interface SwitchProps {
|
|
|
182
182
|
* @example
|
|
183
183
|
* <Switch checked={true} onChange={(checked) => console.log(checked)} />
|
|
184
184
|
*/
|
|
185
|
-
declare const Switch: React.FC<SwitchProps>;
|
|
185
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
186
186
|
|
|
187
187
|
interface RadioProps {
|
|
188
188
|
/**
|
|
@@ -214,7 +214,7 @@ interface RadioProps {
|
|
|
214
214
|
/**
|
|
215
215
|
* Callback when checked state changes
|
|
216
216
|
*/
|
|
217
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
217
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
218
218
|
/**
|
|
219
219
|
* prevent default click event, if true, change event will not be triggered
|
|
220
220
|
* @default false
|
|
@@ -227,7 +227,7 @@ interface RadioProps {
|
|
|
227
227
|
/**
|
|
228
228
|
* Custom style
|
|
229
229
|
*/
|
|
230
|
-
style?: React.CSSProperties;
|
|
230
|
+
style?: React$1.CSSProperties;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
233
|
* Radio Component
|
|
@@ -237,7 +237,7 @@ interface RadioProps {
|
|
|
237
237
|
* @example
|
|
238
238
|
* <Radio checked={true} onChange={(e) => console.log(e.target.checked)} />
|
|
239
239
|
*/
|
|
240
|
-
declare const Radio: React.FC<RadioProps>;
|
|
240
|
+
declare const Radio: React$1.FC<RadioProps>;
|
|
241
241
|
|
|
242
242
|
interface CheckboxProps {
|
|
243
243
|
/**
|
|
@@ -271,7 +271,7 @@ interface CheckboxProps {
|
|
|
271
271
|
/**
|
|
272
272
|
* Callback when checked state changes
|
|
273
273
|
*/
|
|
274
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
274
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
275
275
|
/**
|
|
276
276
|
* prevent default click event, if true, change event will not be triggered
|
|
277
277
|
* @default false
|
|
@@ -284,7 +284,7 @@ interface CheckboxProps {
|
|
|
284
284
|
/**
|
|
285
285
|
* Custom style
|
|
286
286
|
*/
|
|
287
|
-
style?: React.CSSProperties;
|
|
287
|
+
style?: React$1.CSSProperties;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* Checkbox Component
|
|
@@ -298,7 +298,7 @@ interface CheckboxProps {
|
|
|
298
298
|
* // Indeterminate state
|
|
299
299
|
* <Checkbox indeterminate={true} />
|
|
300
300
|
*/
|
|
301
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
301
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
302
302
|
|
|
303
303
|
interface SliderProps {
|
|
304
304
|
/**
|
|
@@ -344,7 +344,7 @@ interface SliderProps {
|
|
|
344
344
|
/**
|
|
345
345
|
* Custom style
|
|
346
346
|
*/
|
|
347
|
-
style?: React.CSSProperties;
|
|
347
|
+
style?: React$1.CSSProperties;
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
350
|
* Slider Component
|
|
@@ -354,11 +354,11 @@ interface SliderProps {
|
|
|
354
354
|
* @example
|
|
355
355
|
* <Slider value={35} onChange={(val) => console.log(val)} />
|
|
356
356
|
*/
|
|
357
|
-
declare const Slider: React.FC<SliderProps>;
|
|
357
|
+
declare const Slider: React$1.FC<SliderProps>;
|
|
358
358
|
|
|
359
359
|
type InputSize = 'mini' | 'small' | 'medium' | 'large';
|
|
360
360
|
type LineType = 'outlined' | 'underlined' | 'borderless';
|
|
361
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
361
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
362
362
|
/**
|
|
363
363
|
* Input line type
|
|
364
364
|
*/
|
|
@@ -378,11 +378,11 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
378
378
|
/**
|
|
379
379
|
* Node to display before the input
|
|
380
380
|
*/
|
|
381
|
-
prefixNode?: React.ReactNode;
|
|
381
|
+
prefixNode?: React$1.ReactNode;
|
|
382
382
|
/**
|
|
383
383
|
* Node to display after the input
|
|
384
384
|
*/
|
|
385
|
-
suffixNode?: React.ReactNode;
|
|
385
|
+
suffixNode?: React$1.ReactNode;
|
|
386
386
|
/**
|
|
387
387
|
* Whether to show clear button when input has value
|
|
388
388
|
*/
|
|
@@ -394,7 +394,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
394
394
|
/**
|
|
395
395
|
* Custom clear icon
|
|
396
396
|
*/
|
|
397
|
-
clearIcon?: React.ReactNode;
|
|
397
|
+
clearIcon?: React$1.ReactNode;
|
|
398
398
|
/**
|
|
399
399
|
* Custom className
|
|
400
400
|
*/
|
|
@@ -402,7 +402,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
402
402
|
/**
|
|
403
403
|
* Custom inline styles
|
|
404
404
|
*/
|
|
405
|
-
style?: React.CSSProperties;
|
|
405
|
+
style?: React$1.CSSProperties;
|
|
406
406
|
/**
|
|
407
407
|
* Custom input className
|
|
408
408
|
*/
|
|
@@ -410,7 +410,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
410
410
|
/**
|
|
411
411
|
* Custom input styles
|
|
412
412
|
*/
|
|
413
|
-
inputStyle?: React.CSSProperties;
|
|
413
|
+
inputStyle?: React$1.CSSProperties;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* Input Component
|
|
@@ -435,7 +435,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
435
435
|
* // Input with error state
|
|
436
436
|
* <Input error placeholder="Enter text" />
|
|
437
437
|
*/
|
|
438
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
438
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
439
439
|
|
|
440
440
|
interface SearchInputProps extends Omit<InputProps, 'prefixNode' | 'suffixNode'> {
|
|
441
441
|
/**
|
|
@@ -457,7 +457,7 @@ interface SearchInputProps extends Omit<InputProps, 'prefixNode' | 'suffixNode'>
|
|
|
457
457
|
/**
|
|
458
458
|
* Custom search icon (URL string or React node)
|
|
459
459
|
*/
|
|
460
|
-
searchIcon?: string | React.ReactNode;
|
|
460
|
+
searchIcon?: string | React$1.ReactNode;
|
|
461
461
|
}
|
|
462
462
|
/**
|
|
463
463
|
* SearchInput Component
|
|
@@ -482,7 +482,7 @@ interface SearchInputProps extends Omit<InputProps, 'prefixNode' | 'suffixNode'>
|
|
|
482
482
|
* <SearchInput size="medium" placeholder="Search..." />
|
|
483
483
|
* <SearchInput size="large" placeholder="Search..." />
|
|
484
484
|
*/
|
|
485
|
-
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
485
|
+
declare const SearchInput: React$1.ForwardRefExoticComponent<SearchInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
488
|
* UnderlinedInput Component
|
|
@@ -499,7 +499,7 @@ declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & Re
|
|
|
499
499
|
* // New way (recommended)
|
|
500
500
|
* <Input lineType="underlined" placeholder="Search..." />
|
|
501
501
|
*/
|
|
502
|
-
declare const UnderlinedInput: React.ForwardRefExoticComponent<Omit<InputProps, "lineType"> & React.RefAttributes<HTMLInputElement>>;
|
|
502
|
+
declare const UnderlinedInput: React$1.ForwardRefExoticComponent<Omit<InputProps, "lineType"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
503
503
|
|
|
504
504
|
interface NumberInputProps {
|
|
505
505
|
/**
|
|
@@ -567,7 +567,7 @@ interface NumberInputProps {
|
|
|
567
567
|
/**
|
|
568
568
|
* Custom style
|
|
569
569
|
*/
|
|
570
|
-
style?: React.CSSProperties;
|
|
570
|
+
style?: React$1.CSSProperties;
|
|
571
571
|
}
|
|
572
572
|
/**
|
|
573
573
|
* NumberInput Component
|
|
@@ -577,7 +577,7 @@ interface NumberInputProps {
|
|
|
577
577
|
* @example
|
|
578
578
|
* <NumberInput value={35} onChange={(val) => console.log(val)} />
|
|
579
579
|
*/
|
|
580
|
-
declare const NumberInput: React.FC<NumberInputProps>;
|
|
580
|
+
declare const NumberInput: React$1.FC<NumberInputProps>;
|
|
581
581
|
|
|
582
582
|
interface IconProps {
|
|
583
583
|
/**
|
|
@@ -591,7 +591,7 @@ interface IconProps {
|
|
|
591
591
|
/**
|
|
592
592
|
* Custom icon element (takes precedence over name and src)
|
|
593
593
|
*/
|
|
594
|
-
children?: React.ReactNode;
|
|
594
|
+
children?: React$1.ReactNode;
|
|
595
595
|
/**
|
|
596
596
|
* Size of the icon (px)
|
|
597
597
|
*/
|
|
@@ -611,11 +611,11 @@ interface IconProps {
|
|
|
611
611
|
/**
|
|
612
612
|
* Custom style
|
|
613
613
|
*/
|
|
614
|
-
style?: React.CSSProperties;
|
|
614
|
+
style?: React$1.CSSProperties;
|
|
615
615
|
/**
|
|
616
616
|
* Click handler
|
|
617
617
|
*/
|
|
618
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
618
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
619
619
|
}
|
|
620
620
|
/**
|
|
621
621
|
* Icon Component
|
|
@@ -639,9 +639,9 @@ interface IconProps {
|
|
|
639
639
|
* import { CloseIcon } from '@officesdk/design/icons';
|
|
640
640
|
* <Icon><CloseIcon /></Icon>
|
|
641
641
|
*/
|
|
642
|
-
declare const Icon: React.FC<IconProps>;
|
|
642
|
+
declare const Icon: React$1.FC<IconProps>;
|
|
643
643
|
|
|
644
|
-
type IconComponent = React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
644
|
+
type IconComponent = React$1.ComponentType<React$1.SVGProps<SVGSVGElement>>;
|
|
645
645
|
type IconRegistry = Record<string, IconComponent>;
|
|
646
646
|
interface IconProviderProps {
|
|
647
647
|
/**
|
|
@@ -652,7 +652,7 @@ interface IconProviderProps {
|
|
|
652
652
|
/**
|
|
653
653
|
* Children components
|
|
654
654
|
*/
|
|
655
|
-
children: React.ReactNode;
|
|
655
|
+
children: React$1.ReactNode;
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
658
658
|
* IconProvider Component
|
|
@@ -667,13 +667,13 @@ interface IconProviderProps {
|
|
|
667
667
|
* <App />
|
|
668
668
|
* </IconProvider>
|
|
669
669
|
*/
|
|
670
|
-
declare const IconProvider: React.FC<IconProviderProps>;
|
|
670
|
+
declare const IconProvider: React$1.FC<IconProviderProps>;
|
|
671
671
|
/**
|
|
672
672
|
* Hook to access icon registry from context
|
|
673
673
|
*/
|
|
674
674
|
declare const useIconRegistry: () => IconRegistry | null;
|
|
675
675
|
|
|
676
|
-
interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children' | 'onClick'> {
|
|
676
|
+
interface ToastProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children' | 'onClick'> {
|
|
677
677
|
/**
|
|
678
678
|
* Toast variant type
|
|
679
679
|
*/
|
|
@@ -681,7 +681,7 @@ interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
681
681
|
/**
|
|
682
682
|
* Toast message content (main text)
|
|
683
683
|
*/
|
|
684
|
-
message: React.ReactNode;
|
|
684
|
+
message: React$1.ReactNode;
|
|
685
685
|
/**
|
|
686
686
|
* Optional description text (shows below message in multiline mode)
|
|
687
687
|
*/
|
|
@@ -717,7 +717,7 @@ interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
717
717
|
/**
|
|
718
718
|
* Custom icon (overrides default variant icon)
|
|
719
719
|
*/
|
|
720
|
-
icon?: React.ReactNode;
|
|
720
|
+
icon?: React$1.ReactNode;
|
|
721
721
|
/**
|
|
722
722
|
* Whether to show icon
|
|
723
723
|
*/
|
|
@@ -729,7 +729,7 @@ interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
729
729
|
/**
|
|
730
730
|
* Custom style
|
|
731
731
|
*/
|
|
732
|
-
style?: React.CSSProperties;
|
|
732
|
+
style?: React$1.CSSProperties;
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
735
|
* Toast Component
|
|
@@ -762,16 +762,16 @@ interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'classNa
|
|
|
762
762
|
* closable
|
|
763
763
|
* />
|
|
764
764
|
*/
|
|
765
|
-
declare const Toast: React.FC<ToastProps>;
|
|
765
|
+
declare const Toast: React$1.FC<ToastProps>;
|
|
766
766
|
|
|
767
767
|
interface ToastContextValue {
|
|
768
768
|
showToast: (props: Omit<ToastProps, 'onClose'>) => string;
|
|
769
769
|
hideToast: (id: string) => void;
|
|
770
|
-
success: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
771
|
-
info: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
772
|
-
error: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
773
|
-
warn: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
774
|
-
loading: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
770
|
+
success: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
771
|
+
info: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
772
|
+
error: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
773
|
+
warn: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
774
|
+
loading: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
775
775
|
}
|
|
776
776
|
interface ToastContainerProps {
|
|
777
777
|
placement?: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
@@ -786,7 +786,7 @@ interface ToastContainerProps {
|
|
|
786
786
|
/**
|
|
787
787
|
* Children components
|
|
788
788
|
*/
|
|
789
|
-
children: React.ReactNode;
|
|
789
|
+
children: React$1.ReactNode;
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
792
792
|
* ToastContainer Component
|
|
@@ -798,7 +798,7 @@ interface ToastContainerProps {
|
|
|
798
798
|
* <App />
|
|
799
799
|
* </ToastContainer>
|
|
800
800
|
*/
|
|
801
|
-
declare const ToastContainer: React.FC<ToastContainerProps>;
|
|
801
|
+
declare const ToastContainer: React$1.FC<ToastContainerProps>;
|
|
802
802
|
/**
|
|
803
803
|
* Hook to access toast methods
|
|
804
804
|
*
|
|
@@ -844,11 +844,11 @@ declare const toast: {
|
|
|
844
844
|
show: (props: Omit<ToastProps, "onClose">) => string;
|
|
845
845
|
hide: (id: string) => void;
|
|
846
846
|
hideAll: () => void;
|
|
847
|
-
success: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
848
|
-
info: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
849
|
-
error: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
850
|
-
warn: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
851
|
-
loading: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
|
|
847
|
+
success: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
848
|
+
info: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
849
|
+
error: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
850
|
+
warn: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
851
|
+
loading: (message: React$1.ReactNode, options?: Partial<ToastProps>) => string;
|
|
852
852
|
destroy: () => void;
|
|
853
853
|
};
|
|
854
854
|
|
|
@@ -868,7 +868,7 @@ interface TabItem {
|
|
|
868
868
|
/**
|
|
869
869
|
* Custom icon
|
|
870
870
|
*/
|
|
871
|
-
icon?: React.ReactNode;
|
|
871
|
+
icon?: React$1.ReactNode;
|
|
872
872
|
}
|
|
873
873
|
interface TabsProps {
|
|
874
874
|
/**
|
|
@@ -902,7 +902,7 @@ interface TabsProps {
|
|
|
902
902
|
/**
|
|
903
903
|
* Custom style
|
|
904
904
|
*/
|
|
905
|
-
style?: React.CSSProperties;
|
|
905
|
+
style?: React$1.CSSProperties;
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
908
908
|
* Tab Component
|
|
@@ -918,13 +918,13 @@ interface TabsProps {
|
|
|
918
918
|
* defaultActiveKey="1"
|
|
919
919
|
* />
|
|
920
920
|
*/
|
|
921
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
921
|
+
declare const Tabs: React$1.FC<TabsProps>;
|
|
922
922
|
|
|
923
923
|
interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'prefixCls'> {
|
|
924
924
|
/**
|
|
925
925
|
* Tooltip content
|
|
926
926
|
*/
|
|
927
|
-
content?: React.ReactNode;
|
|
927
|
+
content?: React$1.ReactNode;
|
|
928
928
|
/**
|
|
929
929
|
* Tooltip variant
|
|
930
930
|
*/
|
|
@@ -936,7 +936,7 @@ interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'prefixCls'> {
|
|
|
936
936
|
/**
|
|
937
937
|
* Children element that triggers the tooltip
|
|
938
938
|
*/
|
|
939
|
-
children: React.ReactElement;
|
|
939
|
+
children: React$1.ReactElement;
|
|
940
940
|
/**
|
|
941
941
|
* Function to get the container element for the tooltip
|
|
942
942
|
*/
|
|
@@ -967,9 +967,9 @@ interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'prefixCls'> {
|
|
|
967
967
|
* <button>Hover me</button>
|
|
968
968
|
* </Tooltip>
|
|
969
969
|
*/
|
|
970
|
-
declare const Tooltip: React.FC<TooltipProps>;
|
|
970
|
+
declare const Tooltip: React$1.FC<TooltipProps>;
|
|
971
971
|
|
|
972
|
-
interface ToolbarButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
972
|
+
interface ToolbarButtonProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
973
973
|
/**
|
|
974
974
|
* Whether the button is disabled
|
|
975
975
|
*/
|
|
@@ -981,7 +981,7 @@ interface ToolbarButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
981
981
|
/**
|
|
982
982
|
* Icon to display
|
|
983
983
|
*/
|
|
984
|
-
icon?: React.ReactNode;
|
|
984
|
+
icon?: React$1.ReactNode;
|
|
985
985
|
/**
|
|
986
986
|
* Label text
|
|
987
987
|
*/
|
|
@@ -997,11 +997,11 @@ interface ToolbarButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
997
997
|
/**
|
|
998
998
|
* Click handler for main button
|
|
999
999
|
*/
|
|
1000
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1000
|
+
onClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Click handler for dropdown section
|
|
1003
1003
|
*/
|
|
1004
|
-
onDropdownClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1004
|
+
onDropdownClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Custom className
|
|
1007
1007
|
*/
|
|
@@ -1009,7 +1009,7 @@ interface ToolbarButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Custom style
|
|
1011
1011
|
*/
|
|
1012
|
-
style?: React.CSSProperties;
|
|
1012
|
+
style?: React$1.CSSProperties;
|
|
1013
1013
|
}
|
|
1014
1014
|
/**
|
|
1015
1015
|
* ToolbarButton Component
|
|
@@ -1035,11 +1035,11 @@ interface ToolbarButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
1035
1035
|
* onDropdownClick={handleDropdownClick}
|
|
1036
1036
|
* />
|
|
1037
1037
|
*/
|
|
1038
|
-
declare const ToolbarButton: React.FC<ToolbarButtonProps>;
|
|
1038
|
+
declare const ToolbarButton: React$1.FC<ToolbarButtonProps>;
|
|
1039
1039
|
|
|
1040
1040
|
type DropdownButtonSize = 'large' | 'medium';
|
|
1041
1041
|
type DropdownButtonVariant = 'framed' | 'frameless';
|
|
1042
|
-
interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
1042
|
+
interface DropdownButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Button variant
|
|
1045
1045
|
* - framed: with border (40px large)
|
|
@@ -1061,11 +1061,11 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Optional icon (URL string or ReactNode)
|
|
1063
1063
|
*/
|
|
1064
|
-
icon?: string | React.ReactNode;
|
|
1064
|
+
icon?: string | React$1.ReactNode;
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Custom indicator/arrow icon
|
|
1067
1067
|
*/
|
|
1068
|
-
indicatorIcon?: React.ReactNode;
|
|
1068
|
+
indicatorIcon?: React$1.ReactNode;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Whether the dropdown is open (controls arrow rotation)
|
|
1071
1071
|
*/
|
|
@@ -1085,11 +1085,11 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Custom style
|
|
1087
1087
|
*/
|
|
1088
|
-
style?: React.CSSProperties;
|
|
1088
|
+
style?: React$1.CSSProperties;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Custom text style
|
|
1091
1091
|
*/
|
|
1092
|
-
textStyle?: React.CSSProperties;
|
|
1092
|
+
textStyle?: React$1.CSSProperties;
|
|
1093
1093
|
}
|
|
1094
1094
|
/**
|
|
1095
1095
|
* DropdownButton Component
|
|
@@ -1112,14 +1112,14 @@ interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
1112
1112
|
* // Open state (arrow rotated)
|
|
1113
1113
|
* <DropdownButton open value="Option 1" />
|
|
1114
1114
|
*/
|
|
1115
|
-
declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1115
|
+
declare const DropdownButton: React$1.ForwardRefExoticComponent<DropdownButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1116
1116
|
|
|
1117
1117
|
interface MenuItem {
|
|
1118
1118
|
type?: 'item';
|
|
1119
1119
|
key: string;
|
|
1120
1120
|
label: string;
|
|
1121
1121
|
description?: string;
|
|
1122
|
-
icon?: string | React.ReactNode;
|
|
1122
|
+
icon?: string | React$1.ReactNode;
|
|
1123
1123
|
disabled?: boolean;
|
|
1124
1124
|
selected?: boolean;
|
|
1125
1125
|
selectable?: boolean;
|
|
@@ -1193,7 +1193,7 @@ interface MenuProps {
|
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Custom style
|
|
1195
1195
|
*/
|
|
1196
|
-
style?: React.CSSProperties;
|
|
1196
|
+
style?: React$1.CSSProperties;
|
|
1197
1197
|
}
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Menu Component
|
|
@@ -1228,13 +1228,13 @@ interface MenuProps {
|
|
|
1228
1228
|
* onSearch={(value) => console.log(value)}
|
|
1229
1229
|
* />
|
|
1230
1230
|
*/
|
|
1231
|
-
declare const Menu: React.FC<MenuProps>;
|
|
1231
|
+
declare const Menu: React$1.FC<MenuProps>;
|
|
1232
1232
|
|
|
1233
1233
|
interface DropdownProps extends Omit<Partial<DropdownProps$1>, 'prefixCls' | 'placement'> {
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Dropdown overlay content (usually a Menu component)
|
|
1236
1236
|
*/
|
|
1237
|
-
overlay?: React.ReactElement | (() => React.ReactElement);
|
|
1237
|
+
overlay?: React$1.ReactElement | (() => React$1.ReactElement);
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Trigger action (click, hover, contextMenu)
|
|
1240
1240
|
*/
|
|
@@ -1258,7 +1258,7 @@ interface DropdownProps extends Omit<Partial<DropdownProps$1>, 'prefixCls' | 'pl
|
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Children element that triggers the dropdown
|
|
1260
1260
|
*/
|
|
1261
|
-
children: React.ReactElement;
|
|
1261
|
+
children: React$1.ReactElement;
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Dropdown container class name
|
|
1264
1264
|
*/
|
|
@@ -1302,7 +1302,7 @@ interface DropdownProps extends Omit<Partial<DropdownProps$1>, 'prefixCls' | 'pl
|
|
|
1302
1302
|
* <span>Hover me</span>
|
|
1303
1303
|
* </Dropdown>
|
|
1304
1304
|
*/
|
|
1305
|
-
declare const Dropdown: React.FC<DropdownProps>;
|
|
1305
|
+
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
1306
1306
|
|
|
1307
1307
|
declare const DropdownGlobalStyles: styled_components.GlobalStyleComponent<{}, styled_components.DefaultTheme>;
|
|
1308
1308
|
declare const MenuGlobalStyles: styled_components.GlobalStyleComponent<{}, styled_components.DefaultTheme>;
|
|
@@ -1430,6 +1430,10 @@ interface UIConfig {
|
|
|
1430
1430
|
* Accessibility configuration
|
|
1431
1431
|
*/
|
|
1432
1432
|
a11y?: A11yConfig;
|
|
1433
|
+
/**
|
|
1434
|
+
* Render function
|
|
1435
|
+
*/
|
|
1436
|
+
renderFunction?: (element: React.ReactElement, container: HTMLElement) => void;
|
|
1433
1437
|
}
|
|
1434
1438
|
|
|
1435
1439
|
interface UIConfigProviderProps {
|
|
@@ -1440,7 +1444,7 @@ interface UIConfigProviderProps {
|
|
|
1440
1444
|
/**
|
|
1441
1445
|
* Children components
|
|
1442
1446
|
*/
|
|
1443
|
-
children: React.ReactNode;
|
|
1447
|
+
children: React$1.ReactNode;
|
|
1444
1448
|
}
|
|
1445
1449
|
/**
|
|
1446
1450
|
* UIConfigProvider Component (Optional, for React convenience)
|
|
@@ -1470,7 +1474,7 @@ interface UIConfigProviderProps {
|
|
|
1470
1474
|
* <App />
|
|
1471
1475
|
* </UIConfigProvider>
|
|
1472
1476
|
*/
|
|
1473
|
-
declare const UIConfigProvider: React.FC<UIConfigProviderProps>;
|
|
1477
|
+
declare const UIConfigProvider: React$1.FC<UIConfigProviderProps>;
|
|
1474
1478
|
/**
|
|
1475
1479
|
* Hook to access UI configuration
|
|
1476
1480
|
*
|
|
@@ -1572,7 +1576,7 @@ declare const getUIConfig: () => UIConfig | null;
|
|
|
1572
1576
|
/**
|
|
1573
1577
|
* Get global icon registry
|
|
1574
1578
|
*/
|
|
1575
|
-
declare const getGlobalIconRegistry: () => Record<string, React.ComponentType<React.SVGProps<SVGSVGElement>>> | null;
|
|
1579
|
+
declare const getGlobalIconRegistry: () => Record<string, React$1.ComponentType<React$1.SVGProps<SVGSVGElement>>> | null;
|
|
1576
1580
|
/**
|
|
1577
1581
|
* Get global toast config
|
|
1578
1582
|
*/
|