globalfy-design-system 1.14.0 → 1.15.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/atoms/DropdownList/DropdownList.d.ts +41 -1
- package/dist/components/atoms/DropdownList/DropdownList.stories.d.ts +1 -1
- package/dist/components/atoms/DropdownList/DropdownListCreatable.d.ts +1 -1
- package/dist/components/atoms/DropdownList/index.d.ts +0 -1
- package/dist/components/atoms/InputMask/InputMask.d.ts +17 -2
- package/dist/components/atoms/InputMask/InputMask.stories.d.ts +2 -1
- package/dist/components/atoms/InputMask/index.d.ts +0 -1
- package/dist/components/atoms/TextInput/TextInput.d.ts +14 -1
- package/dist/components/atoms/TextInput/TextInput.stories.d.ts +1 -1
- package/dist/components/atoms/TextInput/index.d.ts +0 -1
- package/dist/globalfy-design-system.js +1020 -993
- package/dist/globalfy-design-system.umd.cjs +17 -17
- package/package.json +1 -1
- package/dist/components/atoms/DropdownList/DropdownList.types.d.ts +0 -42
- package/dist/components/atoms/InputMask/InputMask.types.d.ts +0 -14
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { ActionMeta, ControlProps, DropdownIndicatorProps, OptionProps, ValueContainerProps } from 'react-select';
|
|
3
|
-
|
|
4
|
-
export type OptionType = {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
};
|
|
7
|
-
type OptionsType = Array<OptionType>;
|
|
8
|
-
export type DropdownListProps = {
|
|
9
|
-
label: string;
|
|
10
|
-
value?: OptionType | null;
|
|
11
|
-
options: OptionsType;
|
|
12
|
-
customOption?: ComponentType<OptionProps<OptionType>>;
|
|
13
|
-
className?: string;
|
|
14
|
-
onChange: (newValue: unknown, actionMeta: ActionMeta<unknown>) => void;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
customPlaceholder?: ReactNode;
|
|
17
|
-
errorMessage?: string;
|
|
18
|
-
isInvalid?: boolean;
|
|
19
|
-
isSearchable?: boolean;
|
|
20
|
-
isValid?: boolean;
|
|
21
|
-
isTransparent?: boolean;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
defaultValue?: OptionType;
|
|
24
|
-
noOptionsMessage?: string;
|
|
25
|
-
customControl?: ComponentType<ControlProps>;
|
|
26
|
-
customDropdownIndicator?: ComponentType<DropdownIndicatorProps>;
|
|
27
|
-
customValueContainer?: ComponentType<ValueContainerProps>;
|
|
28
|
-
onCreateOption?: (inputValue: string) => void;
|
|
29
|
-
isLoading?: boolean;
|
|
30
|
-
customClassNames?: {
|
|
31
|
-
menuList?: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export type DropdownCreditCardOption = {
|
|
35
|
-
label: string;
|
|
36
|
-
prefix: ReactNode;
|
|
37
|
-
isDefault?: boolean;
|
|
38
|
-
};
|
|
39
|
-
export type DropdownCreditCardProps = {
|
|
40
|
-
options: DropdownCreditCardOption[];
|
|
41
|
-
} & Omit<DropdownListProps, "options">;
|
|
42
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type InputMaskProps = {
|
|
3
|
-
label: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
isInvalid?: boolean;
|
|
8
|
-
isValid?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
value?: string;
|
|
11
|
-
isDatePicker?: boolean;
|
|
12
|
-
iconAction?: () => void;
|
|
13
|
-
mask?: string;
|
|
14
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "color" | "onFocus" | "onBlur">;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
label: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
isInvalid?: boolean;
|
|
8
|
-
isValid?: boolean;
|
|
9
|
-
iconSize?: "small" | "large";
|
|
10
|
-
iconAction?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement>, Props {
|
|
13
|
-
}
|
|
14
|
-
export {};
|