@odeyalo/uikit 0.0.3 → 0.0.5
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/AddableInputGroup/AddableInputGroup.d.ts +11 -0
- package/dist/components/AddableInputGroup/AddableInputGroup.styles.d.ts +1 -0
- package/dist/components/AddableInputGroup/index.d.ts +1 -0
- package/dist/components/AddableInputGroup/utils.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.styles.d.ts +22 -0
- package/dist/components/Button/constants.d.ts +3 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/types.d.ts +47 -0
- package/dist/components/Icon/Icon.d.ts +19 -0
- package/dist/components/Icon/Icon.styles.d.ts +4 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/PhoneInput/PhoneInput.d.ts +6 -0
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +16 -0
- package/dist/components/PhoneInput/__storibook__/PhoneInput.stories.d.ts +11 -0
- package/dist/components/PhoneInput/index.d.ts +1 -0
- package/dist/components/PhoneInput/types.d.ts +5 -0
- package/dist/components/PhoneInput/utils.d.ts +2 -0
- package/dist/components/Popup/Popup.d.ts +22 -0
- package/dist/components/Popup/Popup.styles.d.ts +4 -0
- package/dist/components/Popup/constants.d.ts +2 -0
- package/dist/components/Popup/index.d.ts +1 -0
- package/dist/components/Popup/types.d.ts +6 -0
- package/dist/components/Portal/Portal.d.ts +7 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.styles.d.ts +1 -0
- package/dist/components/Select/components/SelectOption/SelectOption.d.ts +9 -0
- package/dist/components/Select/components/SelectOption/SelectOption.styles.d.ts +1 -0
- package/dist/components/Select/components/SelectPopup/SelectPopup.d.ts +11 -0
- package/dist/components/Select/components/SelectPopup/SelectPopup.styles.d.ts +1 -0
- package/dist/components/Select/components/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/types.d.ts +11 -0
- package/dist/components/Select/utils.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +16 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/types.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts +16 -0
- package/dist/components/TextArea/TextArea.styles.d.ts +19 -0
- package/dist/components/TextArea/constants.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +10 -0
- package/dist/components/TextInput/TextInput.styles.d.ts +20 -0
- package/dist/components/TextInput/constants.d.ts +19 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/date/Calendar/Calendar.d.ts +11 -0
- package/dist/components/date/Calendar/Calendar.styles.d.ts +5 -0
- package/dist/components/date/Calendar/components/CalendarTitle/CalendarTitle.d.ts +10 -0
- package/dist/components/date/Calendar/components/CalendarTitle/CalendarTitle.styles.d.ts +4 -0
- package/dist/components/date/Calendar/components/DaysViewMode/DaysViewMode.d.ts +11 -0
- package/dist/components/date/Calendar/components/DaysViewMode/DaysViewMode.styles.d.ts +19 -0
- package/dist/components/date/Calendar/components/MonthsViewMode/MonthsViewMode.d.ts +11 -0
- package/dist/components/date/Calendar/components/MonthsViewMode/MonthsViewMode.styles.d.ts +7 -0
- package/dist/components/date/Calendar/components/YearsViewMode/YearsViewMode.d.ts +11 -0
- package/dist/components/date/Calendar/components/YearsViewMode/YearsViewMode.styles.d.ts +7 -0
- package/dist/components/date/Calendar/components/index.d.ts +4 -0
- package/dist/components/date/Calendar/constants.d.ts +5 -0
- package/dist/components/date/Calendar/index.d.ts +1 -0
- package/dist/components/date/Calendar/types.d.ts +31 -0
- package/dist/components/date/Calendar/utils.d.ts +10 -0
- package/dist/components/date/DatePicker/DatePicker.d.ts +11 -0
- package/dist/components/date/DatePicker/DatePicker.styles.d.ts +21 -0
- package/dist/components/date/DatePicker/index.d.ts +1 -0
- package/dist/components/date/DatePicker/utils.d.ts +3 -0
- package/dist/components/date/index.d.ts +2 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/data/colors.d.ts +35 -0
- package/dist/data/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/usePortalContainer/PortalContext.d.ts +2 -0
- package/dist/hooks/usePortalContainer/PortalProvider.d.ts +5 -0
- package/dist/hooks/usePortalContainer/index.d.ts +3 -0
- package/dist/hooks/usePortalContainer/usePortalContainer.d.ts +2 -0
- package/dist/icons/16/index.d.ts +1 -0
- package/dist/icons/20/index.d.ts +1 -0
- package/dist/icons/24/outline/index.d.ts +1 -0
- package/dist/icons/24/solid/index.d.ts +1 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/main.css +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +35489 -0
- package/dist/types/dom.d.ts +5 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/qa.d.ts +3 -0
- package/dist/utils/isOfType.d.ts +3 -0
- package/package.json +5 -6
- package/icons/16/index.ts +0 -1
- package/icons/20/index.ts +0 -1
- package/icons/24/outline/index.ts +0 -1
- package/icons/24/solid/index.ts +0 -1
- package/icons/index.ts +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextAreaProps } from '..';
|
|
2
|
+
import { DOMProps, QAProps } from '../../types';
|
|
3
|
+
interface AddableInputGroupBaseProps extends TextAreaProps {
|
|
4
|
+
onUpdate?: (values: string[]) => void;
|
|
5
|
+
initialValues?: string[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
}
|
|
8
|
+
type AddableInputGroupPropsWithoutTagAttributes = QAProps & DOMProps & AddableInputGroupBaseProps;
|
|
9
|
+
export type AddableInputGroupProps = AddableInputGroupPropsWithoutTagAttributes & Omit<TextAreaProps, keyof AddableInputGroupPropsWithoutTagAttributes>;
|
|
10
|
+
export declare const AddableInputGroup: import('react').ForwardRefExoticComponent<QAProps & DOMProps & AddableInputGroupBaseProps & Omit<TextAreaProps, "children" | "value" | "style" | "className" | "qa" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "wrap" | "disabled" | "autoComplete" | "cols" | "dirName" | "maxLength" | "minLength" | "errorMessage" | "placeholder" | "readOnly" | "required" | "minRows" | "maxRows" | "rows" | "onUpdate" | "initialValues"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AddableInputGroup, type AddableInputGroupProps, } from './AddableInputGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const filterValues: (values: string[]) => string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentRef, ReactElement, Ref } from 'react';
|
|
2
|
+
import { ButtonButtonProps, ButtonComponentElementType, ButtonComponentProps, ButtonLinkProps, ButtonProps } from './types';
|
|
3
|
+
export declare const Button: <C extends ButtonComponentElementType, P extends ButtonProps<C>>(props: P extends {
|
|
4
|
+
component: Exclude<C, undefined>;
|
|
5
|
+
} ? ButtonComponentProps<Exclude<C, undefined>> & {
|
|
6
|
+
ref?: Ref<C extends string ? ComponentRef<C> : C>;
|
|
7
|
+
} : P extends {
|
|
8
|
+
href: "string";
|
|
9
|
+
} ? ButtonLinkProps & {
|
|
10
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
11
|
+
} : ButtonButtonProps & {
|
|
12
|
+
ref?: Ref<HTMLButtonElement>;
|
|
13
|
+
}) => ReactElement;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonAlign, ButtonShape, ButtonSize, ButtonView, ButtonWidth } from './types';
|
|
2
|
+
export declare const Button: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
3
|
+
$size: ButtonSize;
|
|
4
|
+
$view: ButtonView;
|
|
5
|
+
$shape: ButtonShape;
|
|
6
|
+
$width: ButtonWidth;
|
|
7
|
+
$align: ButtonAlign;
|
|
8
|
+
$disabled: boolean;
|
|
9
|
+
$loading: boolean;
|
|
10
|
+
$hasStartIcon: boolean;
|
|
11
|
+
$hasEndIcon: boolean;
|
|
12
|
+
$hasText: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const ButtonText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
15
|
+
as?: import('react').ElementType | undefined;
|
|
16
|
+
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
17
|
+
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
18
|
+
}, never>> & string & Omit<(<T extends import('react').ElementType = "span">({ ref, ...props }: import('..').TextProps<T> & {
|
|
19
|
+
ref?: import('react').Ref<T>;
|
|
20
|
+
}) => import('react').ReactElement), keyof import('react').Component<any, {}, any>>;
|
|
21
|
+
export declare const ButtonStartIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement>, never>> & string;
|
|
22
|
+
export declare const ButtonEndIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentPropsWithoutRef, ComponentRef, ElementType, Ref } from 'react';
|
|
2
|
+
import { TextVariant } from '../Text/types.ts';
|
|
3
|
+
import { DOMProps, QAProps } from '../../types';
|
|
4
|
+
export interface BaseButtonProps {
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
view?: ButtonView;
|
|
7
|
+
shape?: ButtonShape;
|
|
8
|
+
width?: ButtonWidth;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
align?: ButtonAlign;
|
|
12
|
+
}
|
|
13
|
+
type ButtonPropsWithoutTagAttributes = BaseButtonProps & DOMProps & QAProps;
|
|
14
|
+
export type ButtonComponentElementType = Exclude<ElementType, "a" | "button"> | undefined;
|
|
15
|
+
export type ButtonButtonProps = ButtonPropsWithoutTagAttributes & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonPropsWithoutTagAttributes> & {
|
|
16
|
+
component?: never;
|
|
17
|
+
href?: never;
|
|
18
|
+
};
|
|
19
|
+
export type ButtonLinkProps = ButtonPropsWithoutTagAttributes & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof ButtonPropsWithoutTagAttributes> & {
|
|
20
|
+
component?: never;
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
export type ButtonComponentProps<C extends Exclude<ButtonComponentElementType, undefined>> = ButtonPropsWithoutTagAttributes & ComponentPropsWithoutRef<C> & {
|
|
24
|
+
component: C;
|
|
25
|
+
};
|
|
26
|
+
export type ButtonProps<C extends ButtonComponentElementType = undefined> = ButtonLinkProps | ButtonButtonProps | ButtonComponentProps<Exclude<C, undefined>>;
|
|
27
|
+
export type ButtonRef<C extends ButtonComponentElementType> = Ref<HTMLButtonElement> | Ref<HTMLAnchorElement> | Ref<C extends string ? ComponentRef<C> : C>;
|
|
28
|
+
export type ButtonSize = "xs" | "s" | "m" | "l" | "xl";
|
|
29
|
+
export type ButtonView = "action" | "normal" | "secondary";
|
|
30
|
+
export type ButtonShape = "rounded" | "circle";
|
|
31
|
+
export type ButtonWidth = "default" | "auto" | "max";
|
|
32
|
+
export type ButtonAlign = "left" | "center" | "right";
|
|
33
|
+
export interface ButtonSizeStyles {
|
|
34
|
+
padding: string;
|
|
35
|
+
borderRadius: string;
|
|
36
|
+
height: string;
|
|
37
|
+
textVariant: TextVariant;
|
|
38
|
+
}
|
|
39
|
+
export interface ButtonViewStyles {
|
|
40
|
+
color: string;
|
|
41
|
+
hoverColor: string;
|
|
42
|
+
focusColor: string;
|
|
43
|
+
backgroundColor: string;
|
|
44
|
+
hoverBackgroundColor: string;
|
|
45
|
+
focusBackgroundColor: string;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropsWithoutRef, RefAttributes, SVGAttributes, SVGProps } from 'react';
|
|
2
|
+
import { DOMProps, QAProps } from '../../types';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type IconData = React.ForwardRefExoticComponent<PropsWithoutRef<SVGProps<SVGSVGElement>> & {
|
|
5
|
+
title?: string;
|
|
6
|
+
titleId?: string;
|
|
7
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
8
|
+
export interface BaseIconProps {
|
|
9
|
+
data: IconData;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
size?: number | string;
|
|
13
|
+
fill?: string;
|
|
14
|
+
stroke?: string;
|
|
15
|
+
}
|
|
16
|
+
type IconPropsWithoutTagAttrs = DOMProps & QAProps & BaseIconProps;
|
|
17
|
+
export type IconProps = IconPropsWithoutTagAttrs & Omit<SVGAttributes<SVGSVGElement>, keyof IconPropsWithoutTagAttrs>;
|
|
18
|
+
export declare const Icon: React.ForwardRefExoticComponent<DOMProps & QAProps & BaseIconProps & Omit<SVGAttributes<SVGSVGElement>, keyof DOMProps | "qa" | keyof BaseIconProps> & RefAttributes<SVGSVGElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon, type IconProps } from './Icon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextInputProps } from '..';
|
|
2
|
+
import { PhoneData } from './types';
|
|
3
|
+
export interface PhoneInputProps extends Omit<TextInputProps, "type" | "endContent"> {
|
|
4
|
+
onUpdate?: (value: PhoneData) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const PhoneInput: import('react').ForwardRefExoticComponent<PhoneInputProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const PhoneInput: 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;
|
|
2
|
+
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 & {
|
|
3
|
+
as?: "label" | undefined;
|
|
4
|
+
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as">, "$isError"> & {
|
|
5
|
+
$isError: boolean;
|
|
6
|
+
}, never>> & string;
|
|
7
|
+
export declare const Input: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>, never>> & string;
|
|
8
|
+
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 & {
|
|
9
|
+
as?: import('react').ElementType | undefined;
|
|
10
|
+
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
11
|
+
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
12
|
+
}, import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
13
|
+
as?: import('react').ElementType | undefined;
|
|
14
|
+
} & Omit<Omit<any, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as"> & {
|
|
15
|
+
ref?: import('react').Ref<import('react').ElementType> | undefined;
|
|
16
|
+
}>, never>, never>, never>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('..').PhoneInputProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
args: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhoneInput, type PhoneInputProps } from './PhoneInput';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Middleware, UseFloatingOptions } from '@floating-ui/react';
|
|
2
|
+
import { CSSProperties, FC, ReactNode } from 'react';
|
|
3
|
+
import { DOMProps, QAProps } from '../../types';
|
|
4
|
+
import { PortalProps } from '../Portal';
|
|
5
|
+
import { PopupAnchorElement, PopupOffset } from './types';
|
|
6
|
+
export interface BasePopupProps extends Pick<PortalProps, "container" | "disablePortal"> {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
anchorElement?: PopupAnchorElement | null;
|
|
10
|
+
onOpenChange?: UseFloatingOptions["onOpenChange"];
|
|
11
|
+
strategy?: UseFloatingOptions["strategy"];
|
|
12
|
+
placement?: UseFloatingOptions["placement"];
|
|
13
|
+
offset?: PopupOffset;
|
|
14
|
+
floatingMiddlewares?: Middleware[];
|
|
15
|
+
floatingStyles?: CSSProperties;
|
|
16
|
+
floatingClassName?: string;
|
|
17
|
+
disableOutsideClick?: boolean;
|
|
18
|
+
disableEscapeKeyDown?: boolean;
|
|
19
|
+
zIndex?: number;
|
|
20
|
+
}
|
|
21
|
+
export type PopupProps = BasePopupProps & DOMProps & QAProps;
|
|
22
|
+
export declare const Popup: FC<PopupProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextProps } from '..';
|
|
2
|
+
export declare const PopupContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Text/Text').BaseTextProps & import('../../types').DOMProps & import('../../types').QAProps & {
|
|
3
|
+
as?: "div" | undefined;
|
|
4
|
+
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof import('../Text/Text').BaseTextProps | keyof import('../../types').DOMProps | "qa" | "as">, never>> & string & Omit<({ ...props }: TextProps<"div">) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Popup, type PopupProps } from './Popup';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MiddlewareState } from '@floating-ui/dom';
|
|
2
|
+
import { OffsetOptions, VirtualElement } from '@floating-ui/react';
|
|
3
|
+
export type PopupAnchorElement = Element | VirtualElement;
|
|
4
|
+
type RemoveFunction<T> = T extends (state: MiddlewareState) => T ? never : T;
|
|
5
|
+
export type PopupOffset = RemoveFunction<OffsetOptions>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Portal, type PortalProps } from './Portal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SelectOption as SelectOptionType } from '../../types';
|
|
3
|
+
interface SelectOptionProps {
|
|
4
|
+
option: SelectOptionType;
|
|
5
|
+
value: string[];
|
|
6
|
+
onSelect: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectOption: FC<SelectOptionProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseFloatingOptions } from '@floating-ui/react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
import { PopupProps } from '../../..';
|
|
4
|
+
interface SelectPopupProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
anchorElement?: PopupProps["anchorElement"];
|
|
8
|
+
onOpenChange?: UseFloatingOptions["onOpenChange"];
|
|
9
|
+
}
|
|
10
|
+
export declare const SelectPopup: FC<SelectPopupProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const updateSelectedValue: (selectedValue: string, currentValue?: string[], multiple?: boolean) => string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Text, type TextProps } from './Text';
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextArea, type TextAreaProps } from './TextArea';
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextInput, type TextInputProps } from './TextInput';
|
|
@@ -0,0 +1,11 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,4 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|