mainstack-design-system 0.3.2 → 0.3.4
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/build/index.css +1 -1
- package/build/mainstack-design-system.js +462 -382
- package/build/src/components/InputFields/Input.d.ts +2 -1
- package/build/src/components/InputFields/SearchInput.d.ts +2 -1
- package/build/src/components/InputFields/SelectInput/CountrySelect.d.ts +2 -1
- package/build/src/components/InputFields/SelectInput/PhoneNumberInput.d.ts +2 -1
- package/build/src/components/InputFields/SelectInput/SelectInput.d.ts +3 -2
- package/build/src/components/InputFields/TextArea.d.ts +2 -1
- package/build/src/components/notifications/ClickTooltip.d.ts +3 -2
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export interface IInput extends InputProps {
|
|
|
16
16
|
hint?: string;
|
|
17
17
|
width?: string;
|
|
18
18
|
disabled?: boolean;
|
|
19
|
+
fontFamily?: string;
|
|
19
20
|
}
|
|
20
|
-
declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, fontFamily, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export default Input;
|
|
@@ -13,6 +13,7 @@ export interface ISearchInput extends InputProps {
|
|
|
13
13
|
successMessage?: string;
|
|
14
14
|
hint?: string;
|
|
15
15
|
onClear?: any;
|
|
16
|
+
fontFamily?: string;
|
|
16
17
|
}
|
|
17
|
-
declare const SearchInput: ({ name, id, value, onChange, defaultValue, placeholder, onClear, ...props }: ISearchInput) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const SearchInput: ({ name, id, value, onChange, defaultValue, placeholder, onClear, fontFamily, ...props }: ISearchInput) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default SearchInput;
|
|
@@ -7,6 +7,7 @@ export interface ICountrySelectProps {
|
|
|
7
7
|
onChange?: (e: any) => void;
|
|
8
8
|
onBlur?: (e: any) => void;
|
|
9
9
|
value?: any;
|
|
10
|
+
fontFamily?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const CountrySelect: ({ value, onChange, label, valueType, placeholder, options, }: ICountrySelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const CountrySelect: ({ value, onChange, label, valueType, placeholder, options, fontFamily, }: ICountrySelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default CountrySelect;
|
|
@@ -8,6 +8,7 @@ export interface IPhoneNumberInputProps {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
id?: string;
|
|
10
10
|
subtext?: string | JSX.Element;
|
|
11
|
+
fontFamily?: string;
|
|
11
12
|
}
|
|
12
|
-
declare const PhoneNumberInput: ({ value, onChange, enableSearch, placeholder, label, id, subtext, }: IPhoneNumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const PhoneNumberInput: ({ value, onChange, enableSearch, placeholder, label, id, subtext, fontFamily, }: IPhoneNumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default PhoneNumberInput;
|
|
@@ -22,7 +22,8 @@ export interface ISelectInputProps {
|
|
|
22
22
|
CustomMultiValue?: React.ComponentType<MultiValueProps<any, boolean, GroupBase<any>>>;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
noOptionsMessage?: string;
|
|
25
|
+
fontFamily?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const DropdownIndicator: (props: DropdownIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare const CreatableSelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const CreatableSelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,7 @@ interface ITextArea extends TextareaProps {
|
|
|
14
14
|
textLimit?: number;
|
|
15
15
|
height?: string;
|
|
16
16
|
width?: string;
|
|
17
|
+
fontFamily?: string;
|
|
17
18
|
}
|
|
18
|
-
declare const TextArea: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, textLimit, height, width, ...props }: ITextArea) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const TextArea: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, textLimit, height, width, fontFamily, ...props }: ITextArea) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default TextArea;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
import { PlacementWithLogical } from "@chakra-ui/react";
|
|
4
4
|
export interface ICustomTooltip {
|
|
5
5
|
triggerComponent: JSX.Element;
|
|
6
|
-
body: string;
|
|
6
|
+
body: string | JSX.Element;
|
|
7
7
|
label: string;
|
|
8
8
|
hasSpecialArrow?: boolean;
|
|
9
9
|
placement?: PlacementWithLogical;
|
|
10
|
+
fontFamily?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const ClickTooltip: ({ label, body, hasSpecialArrow, triggerComponent, placement, ...props }: ICustomTooltip) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const ClickTooltip: ({ label, body, hasSpecialArrow, triggerComponent, placement, fontFamily, ...props }: ICustomTooltip) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default ClickTooltip;
|