@max-ts/components 0.3.11 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DataGrid/HeadCell/styles.d.ts +14 -4
- package/lib/components/DataGrid/Loader/styles.d.ts +0 -1
- package/lib/components/DateField/DateField.d.ts +9 -0
- package/lib/components/DateField/index.d.ts +1 -0
- package/lib/components/DateField/styles.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +7 -0
- package/lib/components/DatePicker/DayButton/DayButton.d.ts +8 -0
- package/lib/components/DatePicker/DayButton/index.d.ts +1 -0
- package/lib/components/DatePicker/DayButton/styles.d.ts +12 -0
- package/lib/components/DatePicker/Dropdown/Dropdown.d.ts +5 -0
- package/lib/components/DatePicker/Dropdown/index.d.ts +1 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DatePicker/styles.d.ts +21 -0
- package/lib/components/InputOTP/InputOTP.d.ts +4 -0
- package/lib/components/InputOTP/Separator/Separator.d.ts +4 -0
- package/lib/components/InputOTP/Separator/index.d.ts +1 -0
- package/lib/components/InputOTP/Separator/styles.d.ts +1 -0
- package/lib/components/InputOTP/Slot/Slot.d.ts +2 -0
- package/lib/components/InputOTP/Slot/index.d.ts +1 -0
- package/lib/components/InputOTP/Slot/styles.d.ts +5 -0
- package/lib/components/InputOTP/index.d.ts +1 -0
- package/lib/components/InputOTP/styles.d.ts +2 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/lib/components/index.d.ts +3 -0
- package/lib/index.mjs +6622 -3052
- package/package.json +19 -17
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AlignVariant } from '../types';
|
|
2
2
|
type HeadCellProps = {
|
|
3
3
|
$align?: AlignVariant;
|
|
4
|
-
$isSortable?: boolean;
|
|
5
4
|
$hasStartAdornment?: boolean;
|
|
6
5
|
};
|
|
7
6
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & HeadCellProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -13,10 +12,21 @@ export declare const StyledTypography: import('@emotion/styled').StyledComponent
|
|
|
13
12
|
noWrap?: boolean | undefined;
|
|
14
13
|
paragraph?: boolean | undefined;
|
|
15
14
|
} & {
|
|
16
|
-
color?: import('
|
|
17
|
-
variant?: import('
|
|
18
|
-
colorIntensity?: import('
|
|
15
|
+
color?: import('../..').TypographyColor;
|
|
16
|
+
variant?: import('../..').TypographyVariant;
|
|
17
|
+
colorIntensity?: import('../..').Intensity;
|
|
19
18
|
component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "mask" | "marker" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any>;
|
|
20
19
|
isUpperCase?: boolean;
|
|
21
20
|
} & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
21
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<Omit<import('../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
|
|
22
|
+
variant?: `${import('../..').ButtonVariants}`;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
loadingIndicator?: import('react').ReactNode;
|
|
25
|
+
loadingPosition?: "start" | "end" | "center";
|
|
26
|
+
color?: `${import('../..').ButtonColors}`;
|
|
27
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
30
|
+
$isActive: boolean;
|
|
31
|
+
}, {}, {}>;
|
|
22
32
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const Backdrop: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
-
export declare const StyledDivider: import('@emotion/styled').StyledComponent<import('../../Divider').DividerProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
2
|
export declare const LoaderWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
3
|
export declare const StyledLinearProgress: import('@emotion/styled').StyledComponent<import('@mui/material').LinearProgressProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsSingle } from '../DatePicker';
|
|
2
|
+
export type DateFieldProps = Omit<PropsSingle, 'onSelect' | 'mode'> & {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onSelect?: (date: Date | undefined) => void;
|
|
6
|
+
selectMonth?: boolean;
|
|
7
|
+
selectYear?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const DateField: (props: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DatePickerWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsBase, PropsMulti, PropsMultiRequired, PropsRange, PropsRangeRequired, PropsSingle, PropsSingleRequired } from 'react-day-picker';
|
|
2
|
+
export type { PropsBase, PropsMulti, PropsMultiRequired, PropsRange, PropsRangeRequired, PropsSingle, PropsSingleRequired, };
|
|
3
|
+
export type DatePickerProps = PropsBase & (PropsSingle | PropsSingleRequired | PropsMulti | PropsMultiRequired | PropsRange | PropsRangeRequired | {
|
|
4
|
+
mode?: undefined;
|
|
5
|
+
required?: undefined;
|
|
6
|
+
});
|
|
7
|
+
export declare const DatePicker: ({ className, classNames, showOutsideDays, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { CalendarDay, Modifiers } from 'react-day-picker';
|
|
3
|
+
export declare const DayButton: (props: {
|
|
4
|
+
/** The day to render. */
|
|
5
|
+
day: CalendarDay;
|
|
6
|
+
/** The modifiers for the day. */
|
|
7
|
+
modifiers: Modifiers;
|
|
8
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DayButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<Omit<import('../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
|
|
2
|
+
variant?: `${import('../..').ButtonVariants}`;
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
loadingIndicator?: import('react').ReactNode;
|
|
5
|
+
loadingPosition?: "start" | "end" | "center";
|
|
6
|
+
color?: `${import('../..').ButtonColors}`;
|
|
7
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
10
|
+
$isOutside?: boolean;
|
|
11
|
+
$isToday?: boolean;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { DropdownOption } from 'react-day-picker';
|
|
3
|
+
export declare function Dropdown(props: {
|
|
4
|
+
options?: DropdownOption[] | undefined;
|
|
5
|
+
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const StyledNav: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
onPreviousClick?: import('react').MouseEventHandler<HTMLButtonElement>;
|
|
3
|
+
onNextClick?: import('react').MouseEventHandler<HTMLButtonElement>;
|
|
4
|
+
previousMonth?: Date | undefined;
|
|
5
|
+
nextMonth?: Date | undefined;
|
|
6
|
+
} & import('react').HTMLAttributes<HTMLElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
7
|
+
export declare const MonthButton: import('@emotion/styled').StyledComponent<Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
|
|
8
|
+
variant?: `${import('../Button').ButtonVariants}`;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
loadingIndicator?: import('react').ReactNode;
|
|
11
|
+
loadingPosition?: "start" | "end" | "center";
|
|
12
|
+
color?: `${import('../Button').ButtonColors}`;
|
|
13
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
16
|
+
export declare const StyledMonths: import('@emotion/styled').StyledComponent<import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
17
|
+
export declare const StyledMonthCaption: import('@emotion/styled').StyledComponent<{
|
|
18
|
+
calendarMonth: import('react-day-picker').CalendarMonth;
|
|
19
|
+
displayIndex: number;
|
|
20
|
+
} & import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
21
|
+
export declare const Dropdowns: import('@emotion/styled').StyledComponent<import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { OTPInput } from 'input-otp';
|
|
3
|
+
export type InputOTPProps = ComponentPropsWithRef<typeof OTPInput>;
|
|
4
|
+
export declare const InputOTP: ({ ...props }: Omit<InputOTPProps, "children" | "render">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Separator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSeparator: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').HTMLAttributes<HTMLSpanElement> | keyof import('react').ClassAttributes<HTMLSpanElement>>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slot';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
+
$isActive?: boolean;
|
|
3
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const CaretContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const Caret: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputOTP';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GroupContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -2,10 +2,6 @@ import { ReactNode, PropsWithChildren } from 'react';
|
|
|
2
2
|
import { Theme } from '../../theme';
|
|
3
3
|
export type ThemeProviderProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* Объект темы, обычно являющийся результатом `createTheme()`.
|
|
7
|
-
* Предоставленная тема будет объединена с темой по умолчанию.
|
|
8
|
-
*/
|
|
9
5
|
theme: Theme;
|
|
10
6
|
};
|
|
11
7
|
export declare const ThemeProvider: (props: PropsWithChildren<ThemeProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,6 +27,8 @@ export * from './CopyTypography';
|
|
|
27
27
|
export * from './DataGrid';
|
|
28
28
|
export * from './DataGridActionCell';
|
|
29
29
|
export * from './DataGridPagination';
|
|
30
|
+
export * from './DateField';
|
|
31
|
+
export * from './DatePicker';
|
|
30
32
|
export * from './Description';
|
|
31
33
|
export * from './DescriptionList';
|
|
32
34
|
export * from './DescriptionTooltip';
|
|
@@ -47,6 +49,7 @@ export * from './FormLabel';
|
|
|
47
49
|
export * from './GuidTypography';
|
|
48
50
|
export * from './IconButton';
|
|
49
51
|
export * from './IconDropdownButton';
|
|
52
|
+
export * from './InputOTP';
|
|
50
53
|
export * from './InternalErrorPlaceholder';
|
|
51
54
|
export * from './Link';
|
|
52
55
|
export * from './List';
|