@ws-ui/ui-components 1.0.15 → 1.0.16
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/index.cjs +17 -17
- package/dist/index.d.ts +19 -14
- package/dist/index.js +4954 -4866
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +3 -3
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2739,7 +2739,7 @@ export declare interface InputContextValue {
|
|
|
2739
2739
|
|
|
2740
2740
|
export declare interface InputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
2741
2741
|
placeholder?: string;
|
|
2742
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
2742
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
2743
2743
|
isDisabled?: boolean;
|
|
2744
2744
|
isRequired?: boolean;
|
|
2745
2745
|
isReadOnly?: boolean;
|
|
@@ -2863,12 +2863,12 @@ export declare interface ListItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
|
|
2865
2865
|
export declare const Menu: {
|
|
2866
|
-
({ children, open: controlledOpen, defaultOpen, onOpenChange, }: MenuProps): JSX_2.Element;
|
|
2866
|
+
({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, }: MenuProps): JSX_2.Element;
|
|
2867
2867
|
displayName: string;
|
|
2868
2868
|
Trigger: ({ children, className }: MenuTriggerProps) => JSX_2.Element;
|
|
2869
2869
|
Content: ({ children, placement, className, }: MenuContentProps) => JSX_2.Element | null;
|
|
2870
|
-
Item: ({ children,
|
|
2871
|
-
SubMenu: ({ label,
|
|
2870
|
+
Item: ({ children, onClick, disabled, className, }: MenuItemProps) => JSX_2.Element;
|
|
2871
|
+
SubMenu: ({ label, children, disabled, className, }: SubMenuProps) => JSX_2.Element;
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
2874
|
export declare interface MenuContentProps {
|
|
@@ -2879,7 +2879,6 @@ export declare interface MenuContentProps {
|
|
|
2879
2879
|
|
|
2880
2880
|
export declare interface MenuItemProps {
|
|
2881
2881
|
children: React.ReactNode;
|
|
2882
|
-
icon?: React.ReactNode;
|
|
2883
2882
|
onClick?: () => void;
|
|
2884
2883
|
disabled?: boolean;
|
|
2885
2884
|
className?: string;
|
|
@@ -2890,6 +2889,7 @@ export declare interface MenuProps {
|
|
|
2890
2889
|
open?: boolean;
|
|
2891
2890
|
defaultOpen?: boolean;
|
|
2892
2891
|
onOpenChange?: (open: boolean) => void;
|
|
2892
|
+
disabled?: boolean;
|
|
2893
2893
|
}
|
|
2894
2894
|
|
|
2895
2895
|
export declare interface MenuTriggerProps {
|
|
@@ -2950,7 +2950,7 @@ export declare interface PillCloseProps extends HTMLAttributes<HTMLButtonElement
|
|
|
2950
2950
|
children?: ReactNode;
|
|
2951
2951
|
}
|
|
2952
2952
|
|
|
2953
|
-
export declare type PillColor = 'primary' | 'white' | 'positive' | 'warning' | 'negative';
|
|
2953
|
+
export declare type PillColor = 'primary' | 'white' | 'positive' | 'warning' | 'negative' | 'dark';
|
|
2954
2954
|
|
|
2955
2955
|
export declare interface PillColorConfig {
|
|
2956
2956
|
bg: string;
|
|
@@ -2962,6 +2962,7 @@ export declare interface PillColorConfig {
|
|
|
2962
2962
|
export declare interface PillContextValue {
|
|
2963
2963
|
size: PillSize;
|
|
2964
2964
|
color: PillColor;
|
|
2965
|
+
disabled?: boolean;
|
|
2965
2966
|
}
|
|
2966
2967
|
|
|
2967
2968
|
export declare interface PillIconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -2973,16 +2974,18 @@ export declare interface PillIconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
2973
2974
|
export declare interface PillProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2974
2975
|
size?: PillSize;
|
|
2975
2976
|
color?: PillColor;
|
|
2976
|
-
label
|
|
2977
|
+
label?: string;
|
|
2977
2978
|
icon?: React.ReactNode;
|
|
2978
2979
|
onClose?: () => void;
|
|
2979
2980
|
closable?: boolean;
|
|
2981
|
+
disabled?: boolean;
|
|
2980
2982
|
}
|
|
2981
2983
|
|
|
2982
2984
|
export declare interface PillRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
2983
2985
|
size?: PillSize;
|
|
2984
2986
|
color?: PillColor;
|
|
2985
2987
|
children: ReactNode;
|
|
2988
|
+
disabled?: boolean;
|
|
2986
2989
|
}
|
|
2987
2990
|
|
|
2988
2991
|
export declare type PillSize = 'sm' | 'md' | 'lg';
|
|
@@ -3261,7 +3264,7 @@ export declare type ResizeStartCallback = (event: React.MouseEvent<HTMLElement>
|
|
|
3261
3264
|
|
|
3262
3265
|
export declare const Select: {
|
|
3263
3266
|
Root: {
|
|
3264
|
-
<T = unknown>({ size, color, isInvalid, isDisabled, className, children,
|
|
3267
|
+
<T = unknown>({ size, color, isInvalid, isDisabled, className, children, options, value, defaultValue, onChange, isMulti, inputValue, onInputChange, isSearchable, isOpen, onOpenChange, customOptionGenerator, disableInternalFiltering, getOptionLabel, getOptionValue, isOptionDisabled, formatOptionLabel, stateReducer, ...props }: SelectRootProps<T>): JSX_2.Element;
|
|
3265
3268
|
displayName: string;
|
|
3266
3269
|
};
|
|
3267
3270
|
Control: ForwardRefExoticComponent<SelectControlProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -3499,15 +3502,14 @@ export declare interface SelectPlaceholderProps {
|
|
|
3499
3502
|
children: ReactNode;
|
|
3500
3503
|
}
|
|
3501
3504
|
|
|
3502
|
-
export declare
|
|
3505
|
+
export declare type SelectRootProps<T = unknown> = Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> & SelectStrictParams<T> & {
|
|
3503
3506
|
size?: SelectSize;
|
|
3504
3507
|
color?: 'primary' | 'positive' | 'warning' | 'negative';
|
|
3505
3508
|
isInvalid?: boolean;
|
|
3506
3509
|
isDisabled?: boolean;
|
|
3507
3510
|
className?: string;
|
|
3508
3511
|
children: ReactNode;
|
|
3509
|
-
|
|
3510
|
-
}
|
|
3512
|
+
};
|
|
3511
3513
|
|
|
3512
3514
|
export declare type SelectSingleValue<T> = T | null;
|
|
3513
3515
|
|
|
@@ -3545,7 +3547,7 @@ export declare interface SelectSizeConfig {
|
|
|
3545
3547
|
icon: string;
|
|
3546
3548
|
}
|
|
3547
3549
|
|
|
3548
|
-
export declare type SelectStrictParams<T> = Omit<IDownshiftHookParams<T>, 'onChange' | 'value' | 'defaultValue' | 'isMulti'> & ({
|
|
3550
|
+
export declare type SelectStrictParams<T> = Omit<IDownshiftHookParams<T>, 'onChange' | 'value' | 'defaultValue' | 'isMulti' | 'items'> & ({
|
|
3549
3551
|
isMulti?: false;
|
|
3550
3552
|
value?: T | null;
|
|
3551
3553
|
defaultValue?: T | null;
|
|
@@ -3603,7 +3605,6 @@ export declare interface SortableFileTabProps<T = unknown> {
|
|
|
3603
3605
|
|
|
3604
3606
|
export declare interface SubMenuProps {
|
|
3605
3607
|
label: string;
|
|
3606
|
-
icon?: React.ReactNode;
|
|
3607
3608
|
children: React.ReactNode;
|
|
3608
3609
|
disabled?: boolean;
|
|
3609
3610
|
className?: string;
|
|
@@ -3792,7 +3793,7 @@ export declare type TooltipPosition = 'left' | 'right' | 'up' | 'down' | 'up-sta
|
|
|
3792
3793
|
|
|
3793
3794
|
export declare interface TooltipProps {
|
|
3794
3795
|
/** The content to display inside the tooltip */
|
|
3795
|
-
label:
|
|
3796
|
+
label: React.ReactNode;
|
|
3796
3797
|
/** Color variant of the tooltip */
|
|
3797
3798
|
color?: TooltipColor;
|
|
3798
3799
|
/** Position of the tooltip relative to the trigger */
|
|
@@ -3808,6 +3809,10 @@ export declare interface TooltipProps {
|
|
|
3808
3809
|
/** Controle whether to trigger the tooltip visibility by eather click or hover event */
|
|
3809
3810
|
trigger?: 'hover' | 'click';
|
|
3810
3811
|
className?: string;
|
|
3812
|
+
/** Container where the tooltip will be rendered */
|
|
3813
|
+
container?: Element | DocumentFragment;
|
|
3814
|
+
/** Force hide the tooltip */
|
|
3815
|
+
isHidden?: boolean;
|
|
3811
3816
|
}
|
|
3812
3817
|
|
|
3813
3818
|
export declare const useTabsContext: () => TabsContextType;
|