@odeyalo/uikit 0.0.2 → 0.0.3
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/README.md +2 -1
- package/package.json +6 -6
- package/styles/fonts.scss +79 -0
- package/{dist/styles/styles.css → styles/styles.scss} +18 -11
- package/dist/build/components/AddableInputGroup/AddableInputGroup.d.ts +0 -11
- package/dist/build/components/AddableInputGroup/AddableInputGroup.styles.d.ts +0 -1
- package/dist/build/components/AddableInputGroup/index.d.ts +0 -1
- package/dist/build/components/AddableInputGroup/utils.d.ts +0 -1
- package/dist/build/components/Button/Button.d.ts +0 -13
- package/dist/build/components/Button/Button.styles.d.ts +0 -22
- package/dist/build/components/Button/constants.d.ts +0 -3
- package/dist/build/components/Button/index.d.ts +0 -2
- package/dist/build/components/Button/types.d.ts +0 -47
- package/dist/build/components/Icon/Icon.d.ts +0 -19
- package/dist/build/components/Icon/Icon.styles.d.ts +0 -4
- package/dist/build/components/Icon/index.d.ts +0 -1
- package/dist/build/components/PhoneInput/PhoneInput.d.ts +0 -6
- package/dist/build/components/PhoneInput/PhoneInput.styles.d.ts +0 -16
- package/dist/build/components/PhoneInput/__storibook__/PhoneInput.stories.d.ts +0 -11
- package/dist/build/components/PhoneInput/index.d.ts +0 -1
- package/dist/build/components/PhoneInput/types.d.ts +0 -5
- package/dist/build/components/PhoneInput/utils.d.ts +0 -2
- package/dist/build/components/Popup/Popup.d.ts +0 -22
- package/dist/build/components/Popup/Popup.styles.d.ts +0 -4
- package/dist/build/components/Popup/constants.d.ts +0 -2
- package/dist/build/components/Popup/index.d.ts +0 -1
- package/dist/build/components/Popup/types.d.ts +0 -6
- package/dist/build/components/Portal/Portal.d.ts +0 -7
- package/dist/build/components/Portal/index.d.ts +0 -1
- package/dist/build/components/Select/Select.d.ts +0 -2
- package/dist/build/components/Select/Select.styles.d.ts +0 -1
- package/dist/build/components/Select/components/SelectOption/SelectOption.d.ts +0 -9
- package/dist/build/components/Select/components/SelectOption/SelectOption.styles.d.ts +0 -1
- package/dist/build/components/Select/components/SelectPopup/SelectPopup.d.ts +0 -11
- package/dist/build/components/Select/components/SelectPopup/SelectPopup.styles.d.ts +0 -1
- package/dist/build/components/Select/components/index.d.ts +0 -2
- package/dist/build/components/Select/index.d.ts +0 -2
- package/dist/build/components/Select/types.d.ts +0 -11
- package/dist/build/components/Select/utils.d.ts +0 -1
- package/dist/build/components/Text/Text.d.ts +0 -16
- package/dist/build/components/Text/index.d.ts +0 -1
- package/dist/build/components/Text/types.d.ts +0 -9
- package/dist/build/components/TextArea/TextArea.d.ts +0 -16
- package/dist/build/components/TextArea/TextArea.styles.d.ts +0 -19
- package/dist/build/components/TextArea/constants.d.ts +0 -3
- package/dist/build/components/TextArea/index.d.ts +0 -1
- package/dist/build/components/TextInput/TextInput.d.ts +0 -10
- package/dist/build/components/TextInput/TextInput.styles.d.ts +0 -20
- package/dist/build/components/TextInput/constants.d.ts +0 -19
- package/dist/build/components/TextInput/index.d.ts +0 -1
- package/dist/build/components/date/Calendar/Calendar.d.ts +0 -11
- package/dist/build/components/date/Calendar/Calendar.styles.d.ts +0 -5
- package/dist/build/components/date/Calendar/components/CalendarTitle/CalendarTitle.d.ts +0 -10
- package/dist/build/components/date/Calendar/components/CalendarTitle/CalendarTitle.styles.d.ts +0 -4
- package/dist/build/components/date/Calendar/components/DaysViewMode/DaysViewMode.d.ts +0 -11
- package/dist/build/components/date/Calendar/components/DaysViewMode/DaysViewMode.styles.d.ts +0 -19
- package/dist/build/components/date/Calendar/components/MonthsViewMode/MonthsViewMode.d.ts +0 -11
- package/dist/build/components/date/Calendar/components/MonthsViewMode/MonthsViewMode.styles.d.ts +0 -7
- package/dist/build/components/date/Calendar/components/YearsViewMode/YearsViewMode.d.ts +0 -11
- package/dist/build/components/date/Calendar/components/YearsViewMode/YearsViewMode.styles.d.ts +0 -7
- package/dist/build/components/date/Calendar/components/index.d.ts +0 -4
- package/dist/build/components/date/Calendar/constants.d.ts +0 -5
- package/dist/build/components/date/Calendar/index.d.ts +0 -1
- package/dist/build/components/date/Calendar/types.d.ts +0 -31
- package/dist/build/components/date/Calendar/utils.d.ts +0 -10
- package/dist/build/components/date/DatePicker/DatePicker.d.ts +0 -11
- package/dist/build/components/date/DatePicker/DatePicker.styles.d.ts +0 -21
- package/dist/build/components/date/DatePicker/index.d.ts +0 -1
- package/dist/build/components/date/DatePicker/utils.d.ts +0 -3
- package/dist/build/components/date/index.d.ts +0 -2
- package/dist/build/components/index.d.ts +0 -10
- package/dist/build/data/colors.d.ts +0 -35
- package/dist/build/data/index.d.ts +0 -1
- package/dist/build/hooks/index.d.ts +0 -1
- package/dist/build/hooks/usePortalContainer/PortalContext.d.ts +0 -2
- package/dist/build/hooks/usePortalContainer/PortalProvider.d.ts +0 -5
- package/dist/build/hooks/usePortalContainer/index.d.ts +0 -3
- package/dist/build/hooks/usePortalContainer/usePortalContainer.d.ts +0 -2
- package/dist/build/main.css +0 -1
- package/dist/build/main.d.ts +0 -1
- package/dist/build/main.js +0 -5316
- package/dist/build/types/dom.d.ts +0 -5
- package/dist/build/types/index.d.ts +0 -2
- package/dist/build/types/qa.d.ts +0 -3
- package/dist/build/utils/isOfType.d.ts +0 -3
- package/dist/styles/fonts.css +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type SelectOption = {
|
|
3
|
-
value: string;
|
|
4
|
-
content: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export interface SelectProps {
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
options?: SelectOption[];
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
onUpdate?: (value: string[]) => void;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const updateSelectedValue: (selectedValue: string, currentValue?: string[], multiple?: boolean) => string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ElementType, ReactElement, Ref } from 'react';
|
|
2
|
-
import { DOMProps, QAProps } from '../../types';
|
|
3
|
-
import { TextVariant } from './types.ts';
|
|
4
|
-
export interface BaseTextProps {
|
|
5
|
-
variant?: TextVariant;
|
|
6
|
-
ellipsis?: boolean;
|
|
7
|
-
ellipsisLines?: number;
|
|
8
|
-
}
|
|
9
|
-
type TextWithoutTagAttrsProps<T extends ElementType = "span"> = BaseTextProps & DOMProps & QAProps & {
|
|
10
|
-
as?: T;
|
|
11
|
-
};
|
|
12
|
-
export type TextProps<T extends ElementType> = TextWithoutTagAttrsProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextWithoutTagAttrsProps<T>>;
|
|
13
|
-
export declare const Text: <T extends ElementType = "span">({ ref, ...props }: TextProps<T> & {
|
|
14
|
-
ref?: Ref<T>;
|
|
15
|
-
}) => ReactElement;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Text, type TextProps } from './Text';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface TextVariantStyle {
|
|
2
|
-
font: "Inter" | "Cygre";
|
|
3
|
-
size: string;
|
|
4
|
-
lineHeight: string;
|
|
5
|
-
weight: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
6
|
-
}
|
|
7
|
-
export type TextVariant = "body-s" | "body-s-bold" | "body-m" | "body-m-bold" | "body-l" | "body-l-bold" | "body-xl" | "body-xl-bold" | "title-xs" | "title-cygre";
|
|
8
|
-
export declare const TEXT_VARIANT_STYLES: Record<TextVariant, TextVariantStyle>;
|
|
9
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import { BaseTextInputProps } from '../TextInput/TextInput';
|
|
3
|
-
import { DOMProps, QAProps } from '../../types';
|
|
4
|
-
export type BaseTextAreaProps = {
|
|
5
|
-
minRows?: number;
|
|
6
|
-
maxRows?: number;
|
|
7
|
-
rows?: number;
|
|
8
|
-
} & Pick<BaseTextInputProps, "errorMessage">;
|
|
9
|
-
type TextAreaPropsWithoutTagAttrs = BaseTextAreaProps & DOMProps & QAProps;
|
|
10
|
-
export type TextAreaProps = TextAreaPropsWithoutTagAttrs & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextAreaPropsWithoutTagAttrs>;
|
|
11
|
-
export declare const TextArea: import('react').ForwardRefExoticComponent<{
|
|
12
|
-
minRows?: number;
|
|
13
|
-
maxRows?: number;
|
|
14
|
-
rows?: number;
|
|
15
|
-
} & Pick<BaseTextInputProps, "errorMessage"> & DOMProps & QAProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof DOMProps | "qa" | "errorMessage" | "minRows" | "maxRows" | "rows"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
16
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TextProps } from '..';
|
|
2
|
-
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
3
|
-
export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
4
|
-
as?: "label" | undefined;
|
|
5
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as">, {
|
|
6
|
-
$isError: boolean;
|
|
7
|
-
}>> & string & Omit<({ ...props }: TextProps<"label">) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
8
|
-
export declare const TextArea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
9
|
-
export declare const InputError: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
10
|
-
as?: import('react').ElementType | undefined;
|
|
11
|
-
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
12
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
13
|
-
}, import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
14
|
-
as?: import('react').ElementType | undefined;
|
|
15
|
-
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
16
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
17
|
-
}>, never>, never>> & string & Omit<(<T extends import('react').ElementType = "span">({ ref, ...props }: TextProps<T> & {
|
|
18
|
-
ref?: import('react').Ref<T>;
|
|
19
|
-
}) => import('react').ReactElement), keyof import('react').Component<any, {}, any>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextArea, type TextAreaProps } from './TextArea';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { DOMProps, QAProps } from '../../types';
|
|
3
|
-
export type BaseTextInputProps = {
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
endContent?: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
type TextInputPropsWithoutTagAttrs = BaseTextInputProps & DOMProps & QAProps;
|
|
8
|
-
export type TextInputProps = TextInputPropsWithoutTagAttrs & Omit<InputHTMLAttributes<HTMLInputElement>, keyof TextInputPropsWithoutTagAttrs>;
|
|
9
|
-
export declare const TextInput: import('react').ForwardRefExoticComponent<BaseTextInputProps & DOMProps & QAProps & Omit<InputHTMLAttributes<HTMLInputElement>, keyof DOMProps | "qa" | keyof BaseTextInputProps> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
10
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TextProps } from '..';
|
|
2
|
-
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
3
|
-
export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
4
|
-
as?: "label" | undefined;
|
|
5
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as">, {
|
|
6
|
-
$isError: boolean;
|
|
7
|
-
}>> & string & Omit<({ ...props }: TextProps<"label">) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
8
|
-
export declare const Input: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
9
|
-
export declare const InputError: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
10
|
-
as?: import('react').ElementType | undefined;
|
|
11
|
-
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
12
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
13
|
-
}, import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
14
|
-
as?: import('react').ElementType | undefined;
|
|
15
|
-
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
16
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
17
|
-
}>, never>, never>> & string & Omit<(<T extends import('react').ElementType = "span">({ ref, ...props }: TextProps<T> & {
|
|
18
|
-
ref?: import('react').Ref<T>;
|
|
19
|
-
}) => import('react').ReactElement), keyof import('react').Component<any, {}, any>>;
|
|
20
|
-
export declare const ShowPasswordButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, never>, never>> & string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const INPUT_COLORS: {
|
|
2
|
-
bg: {
|
|
3
|
-
default: string;
|
|
4
|
-
hover: string;
|
|
5
|
-
focus: string;
|
|
6
|
-
error: string;
|
|
7
|
-
};
|
|
8
|
-
text: {
|
|
9
|
-
default: string;
|
|
10
|
-
focus: string;
|
|
11
|
-
};
|
|
12
|
-
placeholder: {
|
|
13
|
-
default: string;
|
|
14
|
-
focus: string;
|
|
15
|
-
};
|
|
16
|
-
error: {
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextInput, type TextInputProps } from './TextInput';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DOMProps, QAProps } from '../../../types';
|
|
2
|
-
export interface BaseCalendarProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
readOnly?: boolean;
|
|
5
|
-
minValue?: Date;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
initialValue?: Date;
|
|
8
|
-
onUpdate?: (value: Date) => void;
|
|
9
|
-
}
|
|
10
|
-
export type CalendarProps = DOMProps & QAProps & BaseCalendarProps;
|
|
11
|
-
export declare const Calendar: import('react').ForwardRefExoticComponent<DOMProps & QAProps & BaseCalendarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const CalendarContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const CalendarHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const CalendarNavigation: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const NavigationButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, never>, never>> & string;
|
|
5
|
-
export declare const CalendarInner: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { CalendarViewMode } from '../../types';
|
|
3
|
-
interface CalendarTitleProps {
|
|
4
|
-
currentDate: Date;
|
|
5
|
-
viewMode: CalendarViewMode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
changeViewModeHandler: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const CalendarTitle: FC<CalendarTitleProps>;
|
|
10
|
-
export {};
|
package/dist/build/components/date/Calendar/components/CalendarTitle/CalendarTitle.styles.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TextProps } from '../../../..';
|
|
2
|
-
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
3
|
-
as?: "button" | undefined;
|
|
4
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as">, never>> & string & Omit<({ ...props }: TextProps<"button">) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface DaysViewModeProps {
|
|
3
|
-
selectHandler: (date: Date) => void;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
minValue?: Date;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
currentDate: Date;
|
|
8
|
-
selectedDate?: Date;
|
|
9
|
-
}
|
|
10
|
-
export declare const DaysViewMode: FC<DaysViewModeProps>;
|
|
11
|
-
export {};
|
package/dist/build/components/date/Calendar/components/DaysViewMode/DaysViewMode.styles.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TextProps } from '../../../..';
|
|
2
|
-
export declare const WeekDayColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const WeekDayTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
4
|
-
as?: import('react').ElementType | undefined;
|
|
5
|
-
} & Omit<Omit<any, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as"> & {
|
|
6
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
7
|
-
}, import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
8
|
-
as?: import('react').ElementType | undefined;
|
|
9
|
-
} & Omit<Omit<any, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as"> & {
|
|
10
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
11
|
-
}>, never>, never>> & string & Omit<(<T extends import('react').ElementType = "span">({ ref, ...props }: TextProps<T> & {
|
|
12
|
-
ref?: import('react').Ref<T>;
|
|
13
|
-
}) => import('react').ReactElement), keyof import('react').Component<any, {}, any>>;
|
|
14
|
-
export declare const DateCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
15
|
-
as?: "button" | undefined;
|
|
16
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as">, {
|
|
17
|
-
$current?: boolean;
|
|
18
|
-
$selected?: boolean;
|
|
19
|
-
}>> & string & Omit<({ ...props }: TextProps<"button">) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface MonthsViewModeProps {
|
|
3
|
-
selectHandler: (date: Date) => void;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
minValue?: Date;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
currentDate: Date;
|
|
8
|
-
selectedDate?: Date;
|
|
9
|
-
}
|
|
10
|
-
export declare const MonthsViewMode: FC<MonthsViewModeProps>;
|
|
11
|
-
export {};
|
package/dist/build/components/date/Calendar/components/MonthsViewMode/MonthsViewMode.styles.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const MonthsGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const MonthCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
3
|
-
as?: "button" | undefined;
|
|
4
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as">, "$current" | "$selected"> & {
|
|
5
|
-
$current?: boolean;
|
|
6
|
-
$selected?: boolean;
|
|
7
|
-
}, never>> & string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface YearsViewModeProps {
|
|
3
|
-
selectHandler: (date: Date) => void;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
minValue?: Date;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
currentDate: Date;
|
|
8
|
-
selectedDate?: Date;
|
|
9
|
-
}
|
|
10
|
-
export declare const YearsViewMode: FC<YearsViewModeProps>;
|
|
11
|
-
export {};
|
package/dist/build/components/date/Calendar/components/YearsViewMode/YearsViewMode.styles.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const YearsGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
|
|
2
|
-
export declare const YearsCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components').FastOmit<import('../../../../Text/Text').BaseTextProps & import('../../../../../types').DOMProps & import('../../../../../types').QAProps & {
|
|
3
|
-
as?: "button" | undefined;
|
|
4
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof import('../../../../Text/Text').BaseTextProps | keyof import('../../../../../types').DOMProps | "qa" | "as">, "$current" | "$selected"> & {
|
|
5
|
-
$current?: boolean;
|
|
6
|
-
$selected?: boolean;
|
|
7
|
-
}, never>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Calendar, type CalendarProps } from './Calendar';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface RenderDay {
|
|
2
|
-
date: number | null;
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
selected?: boolean;
|
|
5
|
-
current?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface MonthData {
|
|
8
|
-
mo: RenderDay[];
|
|
9
|
-
tu: RenderDay[];
|
|
10
|
-
we: RenderDay[];
|
|
11
|
-
th: RenderDay[];
|
|
12
|
-
fr: RenderDay[];
|
|
13
|
-
sa: RenderDay[];
|
|
14
|
-
su: RenderDay[];
|
|
15
|
-
}
|
|
16
|
-
export type WeekDay = keyof MonthData;
|
|
17
|
-
export type Month = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec";
|
|
18
|
-
export type CalendarViewMode = "days" | "months" | "years";
|
|
19
|
-
interface Info {
|
|
20
|
-
number: number;
|
|
21
|
-
eng: string;
|
|
22
|
-
ru: string;
|
|
23
|
-
shortRu: string;
|
|
24
|
-
}
|
|
25
|
-
export interface DayInfo extends Info {
|
|
26
|
-
shortEng: WeekDay;
|
|
27
|
-
}
|
|
28
|
-
export interface MonthInfo extends Info {
|
|
29
|
-
shortEng: Month;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DayInfo, MonthData, MonthInfo } from './types';
|
|
2
|
-
export declare const getWeekDayByNumber: (dayNumber: number) => DayInfo;
|
|
3
|
-
export declare const getMonthByNumber: (monthNumber: number) => MonthInfo;
|
|
4
|
-
export declare const getCalendarMonthData: (date: Date, options: {
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
minValue?: Date;
|
|
8
|
-
selectedDate?: Date;
|
|
9
|
-
}) => MonthData;
|
|
10
|
-
export declare const getDateByData: (year: number, month?: number, date?: number) => Date;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TextInputProps } from '../..';
|
|
3
|
-
export interface DatePickerProps extends Omit<TextInputProps, "type" | "min" | "max" | "ref"> {
|
|
4
|
-
readOnly?: boolean;
|
|
5
|
-
minValue?: Date;
|
|
6
|
-
maxValue?: Date;
|
|
7
|
-
initialValue?: Date;
|
|
8
|
-
onUpdate?: (value: Date) => void;
|
|
9
|
-
hasClear?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const DatePicker: FC<DatePickerProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const InputButtons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const OpenCalendarButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, never>, never>, never>> & string;
|
|
3
|
-
export declare const ClearButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, never>, never>, never>, never>> & string;
|
|
4
|
-
export declare const PopupContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
export declare const DatePicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>, never>> & string;
|
|
6
|
-
export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('../../Text/Text').BaseTextProps & import('../../../types').DOMProps & import('../../../types').QAProps & {
|
|
7
|
-
as?: "label" | undefined;
|
|
8
|
-
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, keyof import('../../Text/Text').BaseTextProps | keyof import('../../../types').DOMProps | "qa" | "as">, "$isError"> & {
|
|
9
|
-
$isError: boolean;
|
|
10
|
-
}, never>> & string;
|
|
11
|
-
export declare const Value: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
12
|
-
export declare const HiddenInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
13
|
-
export declare const InputError: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('../../Text/Text').BaseTextProps & import('../../../types').DOMProps & import('../../../types').QAProps & {
|
|
14
|
-
as?: import('react').ElementType | undefined;
|
|
15
|
-
} & Omit<Omit<any, "ref">, keyof import('../../Text/Text').BaseTextProps | keyof import('../../../types').DOMProps | "qa" | "as"> & {
|
|
16
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
17
|
-
}, import('../../Text/Text').BaseTextProps & import('../../../types').DOMProps & import('../../../types').QAProps & {
|
|
18
|
-
as?: import('react').ElementType | undefined;
|
|
19
|
-
} & Omit<Omit<any, "ref">, keyof import('../../Text/Text').BaseTextProps | keyof import('../../../types').DOMProps | "qa" | "as"> & {
|
|
20
|
-
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
21
|
-
}>, never>, never>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DatePicker, type DatePickerProps } from './DatePicker';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './Portal';
|
|
2
|
-
export * from './Popup';
|
|
3
|
-
export * from './Text';
|
|
4
|
-
export * from './Icon';
|
|
5
|
-
export * from './Button';
|
|
6
|
-
export * from './TextInput';
|
|
7
|
-
export * from './TextArea';
|
|
8
|
-
export * from './PhoneInput';
|
|
9
|
-
export * from './AddableInputGroup';
|
|
10
|
-
export * from './date';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const COLORS: {
|
|
2
|
-
blue100: string;
|
|
3
|
-
blue80: string;
|
|
4
|
-
blue60: string;
|
|
5
|
-
blue40: string;
|
|
6
|
-
blue30: string;
|
|
7
|
-
blue20: string;
|
|
8
|
-
red100: string;
|
|
9
|
-
red80: string;
|
|
10
|
-
red60: string;
|
|
11
|
-
red40: string;
|
|
12
|
-
red30: string;
|
|
13
|
-
red20: string;
|
|
14
|
-
green100: string;
|
|
15
|
-
green80: string;
|
|
16
|
-
green60: string;
|
|
17
|
-
green40: string;
|
|
18
|
-
green30: string;
|
|
19
|
-
green20: string;
|
|
20
|
-
yellow100: string;
|
|
21
|
-
yellow80: string;
|
|
22
|
-
yellow60: string;
|
|
23
|
-
yellow40: string;
|
|
24
|
-
yellow30: string;
|
|
25
|
-
yellow20: string;
|
|
26
|
-
black100: string;
|
|
27
|
-
black80: string;
|
|
28
|
-
black60: string;
|
|
29
|
-
black40: string;
|
|
30
|
-
black30: string;
|
|
31
|
-
black20: string;
|
|
32
|
-
white100: string;
|
|
33
|
-
white80: string;
|
|
34
|
-
white70: string;
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './colors';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './usePortalContainer';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren, RefObject } from 'react';
|
|
2
|
-
export type PortalProviderProps = PropsWithChildren<{
|
|
3
|
-
container: RefObject<HTMLElement>;
|
|
4
|
-
}>;
|
|
5
|
-
export declare function PortalProvider({ container, children }: PortalProviderProps): import("react/jsx-runtime").JSX.Element;
|