@max-ts/components 1.3.2 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 CalendarProps = PropsBase & (PropsSingle | PropsSingleRequired | PropsMulti | PropsMultiRequired | PropsRange | PropsRangeRequired | {
4
+ mode?: undefined;
5
+ required?: undefined;
6
+ });
7
+ export declare const Calendar: ({ className, classNames, showOutsideDays, ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Calendar';
@@ -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
+ selected?: boolean;
14
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
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>, {}, {}>;
@@ -1,7 +1,11 @@
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;
1
+ import { PropsSingle } from '../Calendar';
2
+ import { TextFieldProps } from '../TextField';
3
+ export type DatePickerProps = Omit<PropsSingle, 'onSelect' | 'mode'> & {
4
+ label?: string;
5
+ disabled?: boolean;
6
+ onSelect?: (date: Date | undefined) => void;
7
+ selectMonth?: boolean;
8
+ selectYear?: boolean;
9
+ calendarClassName?: string;
10
+ } & Pick<TextFieldProps, 'error' | 'helperText' | 'className'>;
11
+ export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +1 @@
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
- selected?: boolean;
14
- component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
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>, {}, {}>;
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 @@
1
+ export declare const StyledDialogActions: import('@emotion/styled').StyledComponent<import('@mui/material').DialogActionsProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,10 @@
1
+ import { TextFieldProps } from '../TextField';
2
+ export type PeriodPickerProps = {
3
+ disabled?: boolean;
4
+ value?: Date | null;
5
+ min?: Date;
6
+ max?: Date;
7
+ onSelect?: (date: Date | null) => void;
8
+ type?: 'month' | 'quarter';
9
+ } & Pick<TextFieldProps, 'error' | 'helperText' | 'label' | 'disabled' | 'placeholder' | 'className'>;
10
+ export declare const PeriodPicker: (props: PeriodPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ type YearsDropdownProps = {
2
+ value: Date;
3
+ onSelect?: (date: Date) => void;
4
+ minDate: Date;
5
+ maxDate: Date;
6
+ disabled?: boolean;
7
+ };
8
+ export declare function YearsDropdown({ value, onSelect, minDate, maxDate, disabled, }: YearsDropdownProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './YearsDropdown';
@@ -0,0 +1,2 @@
1
+ export declare const MONTHS: string[];
2
+ export declare const QUARTERS: string[];
@@ -0,0 +1 @@
1
+ export * from './PeriodPicker';
@@ -0,0 +1,3 @@
1
+ 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
+ export declare const MonthsWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const QuartersWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ export declare const getQuarter: (month: number) => number;
2
+ export declare const getMonth: (quarter: number) => number;
3
+ export declare const getQuarterLabel: (date?: Date | null) => string;
@@ -30,8 +30,8 @@ export * from './DashboardLayout';
30
30
  export * from './DataGrid';
31
31
  export * from './DataGridActionCell';
32
32
  export * from './DataGridPagination';
33
- export * from './DateField';
34
33
  export * from './DatePicker';
34
+ export * from './Calendar';
35
35
  export * from './Description';
36
36
  export * from './DescriptionList';
37
37
  export * from './DescriptionTooltip';
@@ -71,6 +71,7 @@ export * from './OverflowTypography';
71
71
  export * from './PageLayout';
72
72
  export * from './Pagination';
73
73
  export * from './Paper';
74
+ export * from './PeriodPicker';
74
75
  export * from './Placeholder';
75
76
  export * from './Popover';
76
77
  export * from './Profile';