@devopness/ui-react 2.183.0 → 2.184.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/src/components/Buttons/Button/Button.d.ts +2 -0
- package/dist/src/components/Forms/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Forms/Alert/Alert.styled.d.ts +5 -4
- package/dist/src/components/Forms/Container/Container.styled.d.ts +4 -1
- package/dist/src/components/Forms/DynamicField/DynamicField.d.ts +74 -0
- package/dist/src/components/Forms/DynamicField/index.d.ts +1 -0
- package/dist/src/components/Forms/FormText/FormText.styled.d.ts +2 -2
- package/dist/src/components/Forms/Input/Input.d.ts +7 -5
- package/dist/src/components/Forms/Input/Input.styled.d.ts +17 -16
- package/dist/src/components/Forms/Select/CustomComponents/DrodpdownIndicator.d.ts +4 -0
- package/dist/src/components/Forms/Select/CustomComponents/LoadingMessage.d.ts +2 -0
- package/dist/src/components/Forms/Select/CustomComponents/NoOptionsMessage.d.ts +10 -0
- package/dist/src/components/Forms/Select/CustomComponents/Option.d.ts +14 -0
- package/dist/src/components/Forms/Select/CustomComponents/Placeholder.d.ts +4 -0
- package/dist/src/components/Forms/Select/CustomComponents/SingleValue.d.ts +4 -0
- package/dist/src/components/Forms/Select/CustomComponents/index.d.ts +6 -0
- package/dist/src/components/Forms/Select/CustomComponents/styled.d.ts +11 -0
- package/dist/src/components/Forms/Select/Select.d.ts +43 -0
- package/dist/src/components/Forms/Select/Select.styled.d.ts +6 -0
- package/dist/src/components/Forms/Select/index.d.ts +1 -0
- package/dist/src/components/Forms/TextArea/TextArea.d.ts +1 -1
- package/dist/src/components/Forms/TextArea/TextArea.styled.d.ts +4 -4
- package/dist/src/components/Forms/index.d.ts +2 -0
- package/dist/src/components/Primitives/Cover/Cover.styled.d.ts +1 -1
- package/dist/src/components/Primitives/EmptyData/EmptyData.styled.d.ts +2 -2
- package/dist/src/components/Primitives/FlexContainer/FlexContainer.d.ts +2 -2
- package/dist/src/components/Primitives/FlexContainer/FlexContainer.styled.d.ts +8 -2
- package/dist/src/components/Primitives/LoadStarship/LoadStarship.styled.d.ts +1 -1
- package/dist/src/components/Primitives/Loader/Loader.styled.d.ts +4 -4
- package/dist/src/components/Primitives/Pagination/Pagination.styled.d.ts +1 -1
- package/dist/src/components/Primitives/Popover/Popover.styled.d.ts +3 -3
- package/dist/src/components/Primitives/Review/Review.d.ts +1 -1
- package/dist/src/components/Primitives/Review/Review.styled.d.ts +8 -8
- package/dist/src/components/Primitives/Skeleton/Skeleton.styled.d.ts +7 -7
- package/dist/ui-react.cjs +648 -461
- package/dist/ui-react.js +13477 -8794
- package/package.json +22 -22
|
@@ -52,6 +52,8 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
52
52
|
*/
|
|
53
53
|
typeSize?: 'default' | 'medium' | 'auto';
|
|
54
54
|
};
|
|
55
|
+
type IconProps = Pick<ButtonProps, 'loading' | 'icon' | 'iconSize' | 'buttonType' | 'iconColor'>;
|
|
56
|
+
declare const Icon: ({ loading: isLoading, icon, iconSize, buttonType, iconColor, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
57
|
/** Primary UI component for user interaction */
|
|
56
58
|
declare const Button: ({ backgroundColor, borderColor, buttonType, children, color, disabled, icon, iconColor, iconSize, loading: isLoading, noIconMargin, noMargin, noPadding, noPointerEvents, revertOrientation, tabIndex, type, typeSize, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
59
|
export type { ButtonProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { AlertProps } from './Alert';
|
|
2
1
|
type StyledProps = {
|
|
3
2
|
type: string;
|
|
4
3
|
};
|
|
5
|
-
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
4
|
+
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$noPadding?: boolean;
|
|
6
|
+
}>> & string;
|
|
6
7
|
declare const StyledContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
|
|
7
8
|
declare const StyledIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
|
|
8
9
|
declare const StyledLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
+
$fullWidth?: boolean;
|
|
10
11
|
}>> & string;
|
|
11
12
|
declare const LabelContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
-
export {
|
|
13
|
+
export { LabelContentWrapper, StyledContent, StyledIcon, StyledLabel, Wrapper };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ContainerProps } from './Container';
|
|
2
|
-
type StyledProps =
|
|
2
|
+
type StyledProps = {
|
|
3
|
+
$shouldRemoveTopMargin?: boolean;
|
|
4
|
+
styles?: ContainerProps['styles'];
|
|
5
|
+
};
|
|
3
6
|
declare const ContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
|
|
4
7
|
declare const WrapperContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, StyledProps>> & string;
|
|
5
8
|
export { ContainerStyled, WrapperContent };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Supported field types for the DynamicField component.
|
|
4
|
+
* - `text`: Multi-line text area
|
|
5
|
+
* - `string`: Single-line text input
|
|
6
|
+
* - `number`: Numeric input
|
|
7
|
+
* - `boolean`: Boolean select (Yes/No)
|
|
8
|
+
*/
|
|
9
|
+
type FieldTypes = 'text' | 'boolean' | 'number' | 'string';
|
|
10
|
+
/**
|
|
11
|
+
* Optional label configuration for a field.
|
|
12
|
+
*/
|
|
13
|
+
type LabelProps = {
|
|
14
|
+
/** Field label text */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Whether to show a help tooltip */
|
|
17
|
+
help?: boolean;
|
|
18
|
+
/** Help text content */
|
|
19
|
+
helpValue?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* External control props for managing field state.
|
|
23
|
+
* Uses `any` types to remain agnostic to form libraries (e.g. React Hook Form, Formik, etc.)
|
|
24
|
+
* and support different input types (Input, TextArea, Select) with varying event signatures.
|
|
25
|
+
*/
|
|
26
|
+
type ExternalControlProps = {
|
|
27
|
+
value?: any;
|
|
28
|
+
onChange?: (...args: any[]) => void;
|
|
29
|
+
onBlur?: () => void;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Props for the `DynamicField` component.
|
|
33
|
+
*/
|
|
34
|
+
type DynamicFieldProps = {
|
|
35
|
+
/** Field name */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Whether the field contains sensitive data (e.g. password) */
|
|
38
|
+
sensitive?: boolean;
|
|
39
|
+
/** Placeholder text */
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
/** Validation configuration for the field */
|
|
42
|
+
validation: {
|
|
43
|
+
type: FieldTypes;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
min: number;
|
|
46
|
+
max: number;
|
|
47
|
+
};
|
|
48
|
+
/** Field validation error */
|
|
49
|
+
error?: {
|
|
50
|
+
message: string;
|
|
51
|
+
} | null;
|
|
52
|
+
/** Optional label configuration */
|
|
53
|
+
labelProps?: LabelProps;
|
|
54
|
+
/** Element reference */
|
|
55
|
+
inputRef?: RefObject<HTMLInputElement> | RefObject<HTMLTextAreaElement> | RefObject<HTMLSelectElement> | ((instance: HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement | null) => void);
|
|
56
|
+
} & ExternalControlProps;
|
|
57
|
+
/**
|
|
58
|
+
* `DynamicField` is a flexible component that dynamically renders
|
|
59
|
+
* different input types (`Input`, `TextArea`, `Select`) based on the given configuration.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <DynamicField
|
|
64
|
+
* name="age"
|
|
65
|
+
* value={age}
|
|
66
|
+
* onChange={setAge}
|
|
67
|
+
* validation={{ type: 'number', min: 0, max: 100 }}
|
|
68
|
+
* labelProps={{ value: 'Age' }}
|
|
69
|
+
* />
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
declare const DynamicField: ({ name, sensitive, placeholder, error, labelProps, inputRef, validation: { type }, ...props }: DynamicFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export { DynamicField };
|
|
74
|
+
export type { DynamicFieldProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DynamicField';
|
|
@@ -2,7 +2,7 @@ declare const Wrapper: import('styled-components/dist/types').IStyledComponentBa
|
|
|
2
2
|
declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
4
4
|
type ParagraphProps = {
|
|
5
|
-
subtitleColor?: string;
|
|
5
|
+
$subtitleColor?: string;
|
|
6
6
|
};
|
|
7
7
|
declare const Paragraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, ParagraphProps>> & string;
|
|
8
|
-
export {
|
|
8
|
+
export { Line, Paragraph, Title, Wrapper };
|
|
@@ -28,6 +28,8 @@ type SharedProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
28
28
|
icon?: React.ReactNode;
|
|
29
29
|
/** Position of the icon inside the input */
|
|
30
30
|
iconPosition?: 'left' | 'right';
|
|
31
|
+
/** Removes increment/decrement arrows from number inputs */
|
|
32
|
+
removeArrows?: boolean;
|
|
31
33
|
};
|
|
32
34
|
type InputProps = (SharedProps & {
|
|
33
35
|
/** HTML input type (text, number, email, etc.) */
|
|
@@ -35,8 +37,6 @@ type InputProps = (SharedProps & {
|
|
|
35
37
|
}) | (SharedProps & {
|
|
36
38
|
/** HTML input type (text, number, email, etc.) */
|
|
37
39
|
type: 'number';
|
|
38
|
-
/** Removes increment/decrement arrows from number inputs */
|
|
39
|
-
removeArrows?: boolean;
|
|
40
40
|
});
|
|
41
41
|
/**
|
|
42
42
|
* Allows users to enter and edit text
|
|
@@ -92,6 +92,8 @@ declare const Input: import('react').ForwardRefExoticComponent<(Omit<import('rea
|
|
|
92
92
|
icon?: React.ReactNode;
|
|
93
93
|
/** Position of the icon inside the input */
|
|
94
94
|
iconPosition?: "left" | "right";
|
|
95
|
+
/** Removes increment/decrement arrows from number inputs */
|
|
96
|
+
removeArrows?: boolean;
|
|
95
97
|
} & {
|
|
96
98
|
/** HTML input type (text, number, email, etc.) */
|
|
97
99
|
type: Exclude<React.HTMLInputTypeAttribute, "number">;
|
|
@@ -123,11 +125,11 @@ declare const Input: import('react').ForwardRefExoticComponent<(Omit<import('rea
|
|
|
123
125
|
icon?: React.ReactNode;
|
|
124
126
|
/** Position of the icon inside the input */
|
|
125
127
|
iconPosition?: "left" | "right";
|
|
128
|
+
/** Removes increment/decrement arrows from number inputs */
|
|
129
|
+
removeArrows?: boolean;
|
|
126
130
|
} & {
|
|
127
131
|
/** HTML input type (text, number, email, etc.) */
|
|
128
132
|
type: "number";
|
|
129
|
-
/** Removes increment/decrement arrows from number inputs */
|
|
130
|
-
removeArrows?: boolean;
|
|
131
133
|
}, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
|
|
132
|
-
export type { InputProps };
|
|
133
134
|
export { Input };
|
|
135
|
+
export type { InputProps };
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type IconPositionProps = {
|
|
2
|
+
$iconPosition?: 'left' | 'right';
|
|
3
|
+
};
|
|
3
4
|
type WrapperProps = {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
readOnly?: boolean;
|
|
6
|
-
error?: boolean;
|
|
5
|
+
$disabled?: boolean;
|
|
6
|
+
$readOnly?: boolean;
|
|
7
|
+
$error?: boolean;
|
|
7
8
|
};
|
|
8
9
|
type InputTextProps = {
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
hasError?: boolean;
|
|
10
|
+
$disabled?: boolean;
|
|
11
|
+
$hasError?: boolean;
|
|
11
12
|
type: string;
|
|
12
|
-
removeArrows?: boolean;
|
|
13
|
-
publicStyle?: {
|
|
13
|
+
$removeArrows?: boolean;
|
|
14
|
+
$publicStyle?: {
|
|
14
15
|
fontStyleValue?: string;
|
|
15
16
|
fontStylePlaceholder?: string;
|
|
16
17
|
};
|
|
17
|
-
readOnly?: boolean;
|
|
18
|
-
hasIcon?: boolean;
|
|
19
|
-
iconPosition?: 'left' | 'right';
|
|
18
|
+
$readOnly?: boolean;
|
|
19
|
+
$hasIcon?: boolean;
|
|
20
|
+
$iconPosition?: 'left' | 'right';
|
|
20
21
|
};
|
|
21
22
|
type InputWrapperProps = {
|
|
22
|
-
hasError?: boolean;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
readOnly?: boolean;
|
|
23
|
+
$hasError?: boolean;
|
|
24
|
+
$disabled?: boolean;
|
|
25
|
+
$readOnly?: boolean;
|
|
25
26
|
};
|
|
26
27
|
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
28
|
declare const InputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperProps>> & string;
|
|
28
29
|
declare const InputText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, InputTextProps>> & string;
|
|
29
30
|
declare const Icon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IconPositionProps>> & string;
|
|
30
31
|
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps>> & string;
|
|
31
|
-
export { Container,
|
|
32
|
+
export { Container, Icon, InputText, InputWrapper, Wrapper };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { OptionProps as OptionReactSelectProps, GroupBase } from 'react-select';
|
|
2
|
+
import { OptionProps } from '../index';
|
|
3
|
+
declare const DropdownIndicator: (args: OptionReactSelectProps<OptionProps, boolean, GroupBase<OptionProps>>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { DropdownIndicator };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type NoOptionsMessageProps = {
|
|
2
|
+
selectProps: {
|
|
3
|
+
inputValue?: string;
|
|
4
|
+
noOptionsMessage?: string | ((obj: {
|
|
5
|
+
inputValue: string;
|
|
6
|
+
}) => React.ReactNode);
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const NoOptionsMessage: ({ selectProps }: NoOptionsMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { NoOptionsMessage };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OptionProps as OptionReactSelectProps, GroupBase } from 'react-select';
|
|
2
|
+
import { OptionProps } from '../index';
|
|
3
|
+
import { Icon } from '../../../../icons';
|
|
4
|
+
type OptionConfigurationProps = {
|
|
5
|
+
iconName?: Icon | Omit<string, Icon>;
|
|
6
|
+
option: string;
|
|
7
|
+
iconSize?: number;
|
|
8
|
+
};
|
|
9
|
+
type OptionBodyProps = {
|
|
10
|
+
optionConfiguration: OptionConfigurationProps;
|
|
11
|
+
};
|
|
12
|
+
declare const OptionBody: ({ optionConfiguration }: OptionBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const memoizedOption: import('react').MemoExoticComponent<({ data, ...args }: OptionReactSelectProps<OptionProps, boolean, GroupBase<OptionProps>>) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export { memoizedOption as Option, OptionBody };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GroupBase, SingleValueProps } from 'react-select';
|
|
2
|
+
import { OptionProps } from '../index';
|
|
3
|
+
declare const memoizedSingleOption: import('react').MemoExoticComponent<({ data, }: SingleValueProps<OptionProps, boolean, GroupBase<OptionProps>>) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export { memoizedSingleOption as SingleValue };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type OptionProps = {
|
|
2
|
+
isOptionSelected?: boolean;
|
|
3
|
+
isCreateLink?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
declare const BoxLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const NoOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const OptionSelectedWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
declare const OptionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, OptionProps>> & string;
|
|
10
|
+
declare const OptionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
11
|
+
export { BoxLoader, NoOption, OptionLabel, OptionSelectedWrapper, OptionWrapper, Wrapper, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Props as SelectPropsBase, GroupBase } from 'react-select';
|
|
3
|
+
import { ErrorMessage } from '../../Primitives';
|
|
4
|
+
import { Icon } from '../../../icons';
|
|
5
|
+
/** Option type for the Select component. */
|
|
6
|
+
type OptionProps<T = unknown> = {
|
|
7
|
+
icon?: Icon | Omit<string, Icon>;
|
|
8
|
+
iconSize?: number;
|
|
9
|
+
value: T;
|
|
10
|
+
label: string;
|
|
11
|
+
isCreateLink?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Props for the Select component.
|
|
15
|
+
*/
|
|
16
|
+
type SelectProps<TOption> = Omit<SelectPropsBase<OptionProps<TOption>, boolean, GroupBase<OptionProps<TOption>>>, 'noOptionsMessage'> & Pick<Parameters<typeof ErrorMessage>[0], 'error'> & {
|
|
17
|
+
/** Ref to the underlying input element (may be callback inputRef or object ref) */
|
|
18
|
+
inputRef?: React.RefObject<HTMLSelectElement>;
|
|
19
|
+
/** Options available in the dropdown */
|
|
20
|
+
options: OptionProps<TOption>[];
|
|
21
|
+
/** Public style overrides for placeholder and value */
|
|
22
|
+
publicStyle?: {
|
|
23
|
+
fontStyleValue?: string;
|
|
24
|
+
fontStylePlaceholder?: string;
|
|
25
|
+
};
|
|
26
|
+
/** If true, disables interactions and search */
|
|
27
|
+
isReadOnly?: boolean;
|
|
28
|
+
/** Whether the user can add custom options */
|
|
29
|
+
isCreatable?: boolean;
|
|
30
|
+
/** Text to display when there are no options */
|
|
31
|
+
noOptionsMessage?: string | ((obj: {
|
|
32
|
+
inputValue: string;
|
|
33
|
+
}) => React.ReactNode);
|
|
34
|
+
/** Format the label for create option */
|
|
35
|
+
formatCreateLabel?: (inputValue: string) => string;
|
|
36
|
+
/** Handle create option */
|
|
37
|
+
onCreateOption?: (inputValue: string) => void;
|
|
38
|
+
/** Class name to be applied to the select container */
|
|
39
|
+
className?: string;
|
|
40
|
+
};
|
|
41
|
+
declare const memoizedSelect: <TOption>({ inputRef, error, isReadOnly, defaultValue, options, menuIsOpen, placeholder, isCreatable, noOptionsMessage, className, ...restProps }: SelectProps<TOption>) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export { memoizedSelect as Select };
|
|
43
|
+
export type { OptionProps, SelectProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Select } from 'react-select';
|
|
2
|
+
import { default as CreatableSelect } from 'react-select/creatable';
|
|
3
|
+
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const ReactSelect: typeof Select;
|
|
5
|
+
declare const ReactCreatableSelect: typeof CreatableSelect;
|
|
6
|
+
export { Container, ReactSelect, ReactCreatableSelect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Select';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type PropsStyled = {
|
|
2
|
-
hasError?: boolean;
|
|
3
|
-
noResize?: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
readOnly?: boolean;
|
|
2
|
+
$hasError?: boolean;
|
|
3
|
+
$noResize?: boolean;
|
|
4
|
+
$disabled?: boolean;
|
|
5
|
+
$readOnly?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
8
|
declare const StyledTextarea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, PropsStyled>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Color } from '../../../colors';
|
|
2
2
|
type StyledCoverProps = {
|
|
3
|
-
backgroundColor: Color;
|
|
3
|
+
$backgroundColor: Color;
|
|
4
4
|
};
|
|
5
5
|
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledCoverProps>> & string;
|
|
6
6
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type ImgContainerProps = {
|
|
2
|
-
isSmallContainer: boolean;
|
|
2
|
+
$isSmallContainer: boolean;
|
|
3
3
|
};
|
|
4
4
|
declare const ImgContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ImgContainerProps>> & string;
|
|
5
5
|
declare const Img: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
6
6
|
declare const EmptyDataContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
declare const EmptyDataText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
-
export { EmptyDataContainer, EmptyDataText,
|
|
8
|
+
export { EmptyDataContainer, EmptyDataText, Img, ImgContainer };
|
|
@@ -24,6 +24,6 @@ type FlexContainerProps = {
|
|
|
24
24
|
* </FlexContainer>
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
declare const FlexContainer: ({ children,
|
|
28
|
-
export type { FlexContainerProps };
|
|
27
|
+
declare const FlexContainer: ({ children, direction, align, wrap, gap, justify, }: FlexContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
export { FlexContainer };
|
|
29
|
+
export type { FlexContainerProps };
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type FlexStyledProps = {
|
|
2
|
+
$direction?: 'row' | 'column';
|
|
3
|
+
$justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
4
|
+
$align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
5
|
+
$wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
6
|
+
$gap?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const FlexContainerWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlexStyledProps>> & string;
|
|
3
9
|
export { FlexContainerWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type ContainerProps = {
|
|
2
|
-
isFullContainer?: boolean;
|
|
2
|
+
$isFullContainer?: boolean;
|
|
3
3
|
};
|
|
4
4
|
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>> & string;
|
|
5
5
|
declare const Gif: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type ContainerCometSpinLoaderProps = {
|
|
2
|
-
paddingTop?: string;
|
|
2
|
+
$paddingTop?: string;
|
|
3
3
|
};
|
|
4
4
|
type LoaderContainerProps = {
|
|
5
|
-
paddingTop?: string;
|
|
6
|
-
isAlignLeft?: boolean;
|
|
5
|
+
$paddingTop?: string;
|
|
6
|
+
$isAlignLeft?: boolean;
|
|
7
7
|
};
|
|
8
8
|
declare const PageContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
9
|
declare const ContainerCometSpinLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerCometSpinLoaderProps>> & string;
|
|
@@ -22,4 +22,4 @@ declare const PageLoader: import('styled-components/dist/types').IStyledComponen
|
|
|
22
22
|
}) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
23
23
|
declare const BarLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('./ReactSpinners.type').ReactSpinnersProps, never>> & string & Omit<(props: import('./ReactSpinners.type').ReactSpinnersProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
24
24
|
declare const RingLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('./ReactSpinners.type').ReactSpinnersProps, never>> & string & Omit<({ color, ...restProps }: import('./ReactSpinners.type').ReactSpinnersProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
25
|
-
export { BarLoader,
|
|
25
|
+
export { BarLoader, CircleLoader, ContainerCometSpinLoader, LoaderContainer, PageContainer, PageLoader, RingLoader, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type PaginationContentProps = {
|
|
2
|
-
hideFirstAndLastButton: boolean;
|
|
2
|
+
$hideFirstAndLastButton: boolean;
|
|
3
3
|
};
|
|
4
4
|
declare const ContainerPagination: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
5
|
declare const PaginationContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PaginationContentProps>> & string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Popover } from '@mui/material';
|
|
2
2
|
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@mui/material').PopoverProps, never>> & string & Omit<typeof Popover, keyof import('react').Component<any, {}, any>>;
|
|
3
3
|
declare const Header: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
-
justifyContent: "space-between" | "end";
|
|
4
|
+
$justifyContent: "space-between" | "end";
|
|
5
5
|
}>> & string;
|
|
6
6
|
declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
7
7
|
declare const Footer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
|
-
justifyContent: "space-between" | "end";
|
|
8
|
+
$justifyContent: "space-between" | "end";
|
|
9
9
|
}>> & string;
|
|
10
|
-
export { Container, Header, Title
|
|
10
|
+
export { Container, Footer, Header, Title };
|
|
@@ -42,5 +42,5 @@ type ReviewProps = {
|
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
declare const Review: ({ content, icon, iconBackgroundColor, iconColor, iconSize, isBoldFontWeight, prefix, backgroundColor, hasPrefixMargin, isIconAfterLabel, }: ReviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
export type { ReviewProps };
|
|
46
45
|
export { Review };
|
|
46
|
+
export type { ReviewProps };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
type DetailContentValueProps = {
|
|
2
|
-
isBoldFontWeight?: boolean;
|
|
2
|
+
$isBoldFontWeight?: boolean;
|
|
3
3
|
};
|
|
4
4
|
type DetailContentInformationProps = {
|
|
5
|
-
noIcon?: boolean;
|
|
6
|
-
isIconAfterLabel?: boolean;
|
|
7
|
-
backgroundColor?: string;
|
|
5
|
+
$noIcon?: boolean;
|
|
6
|
+
$isIconAfterLabel?: boolean;
|
|
7
|
+
$backgroundColor?: string;
|
|
8
8
|
};
|
|
9
9
|
type ContentDetailProps = {
|
|
10
10
|
type?: 'default' | 'warning';
|
|
11
11
|
};
|
|
12
12
|
type StyledProps = {
|
|
13
|
-
backgroundColor?: string;
|
|
13
|
+
$backgroundColor?: string;
|
|
14
14
|
color?: string;
|
|
15
15
|
};
|
|
16
16
|
declare const DetailContentInformation: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, DetailContentInformationProps>> & string;
|
|
17
17
|
declare const DetailContentValue: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DetailContentValueProps>> & string;
|
|
18
18
|
declare const PrefixWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
19
|
-
showMarginRight?: boolean;
|
|
19
|
+
$showMarginRight?: boolean;
|
|
20
20
|
}>> & string;
|
|
21
21
|
declare const ContentIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
|
|
22
22
|
declare const ContentDetail: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, ContentDetailProps>> & string;
|
|
23
|
-
export
|
|
24
|
-
export {
|
|
23
|
+
export { ContentDetail, ContentIcon, DetailContentInformation, DetailContentValue, PrefixWrapper, };
|
|
24
|
+
export type { ContentDetailProps, DetailContentInformationProps, DetailContentValueProps, };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type
|
|
2
|
-
widthPercent?: number;
|
|
3
|
-
heightPercent?: number;
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
borderRadius?: number;
|
|
1
|
+
type TransientSkeletonProps = {
|
|
2
|
+
$widthPercent?: number;
|
|
3
|
+
$heightPercent?: number;
|
|
4
|
+
$width?: number;
|
|
5
|
+
$height?: number;
|
|
6
|
+
$borderRadius?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const SkeletonEffect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
8
|
+
declare const SkeletonEffect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TransientSkeletonProps>> & string;
|
|
9
9
|
export { SkeletonEffect };
|