@ceed/ads 1.8.6 → 1.8.7
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/Accordions/Accordions.d.ts +1 -1
- package/dist/components/Accordions/index.d.ts +2 -2
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/components/Autocomplete/index.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +2 -2
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Box/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +5 -5
- package/dist/components/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -2
- package/dist/components/Calendar/hooks/use-calendar-props.d.ts +2 -2
- package/dist/components/Calendar/hooks/use-calendar.d.ts +11 -11
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Calendar/types.d.ts +2 -2
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Container/Container.d.ts +1 -1
- package/dist/components/Container/index.d.ts +2 -2
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +4 -4
- package/dist/components/DataTable/DataTable.d.ts +3 -3
- package/dist/components/DataTable/index.d.ts +3 -3
- package/dist/components/DataTable/types.d.ts +27 -20
- package/dist/components/DatePicker/DatePicker.d.ts +3 -3
- package/dist/components/DatePicker/index.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/components/DateRangePicker/index.d.ts +2 -2
- package/dist/components/DialogActions/DialogActions.d.ts +1 -1
- package/dist/components/DialogActions/index.d.ts +2 -2
- package/dist/components/DialogContent/DialogContent.d.ts +1 -1
- package/dist/components/DialogContent/index.d.ts +2 -2
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogFrame/index.d.ts +2 -2
- package/dist/components/DialogTitle/DialogTitle.d.ts +1 -1
- package/dist/components/DialogTitle/index.d.ts +2 -2
- package/dist/components/Divider/Divider.d.ts +3 -3
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/FilterMenu/FilterMenu.d.ts +2 -2
- package/dist/components/FilterMenu/components/Autocomplete.d.ts +2 -2
- package/dist/components/FilterMenu/components/CheckboxGroup.d.ts +2 -2
- package/dist/components/FilterMenu/components/CurrencyInput.d.ts +2 -2
- package/dist/components/FilterMenu/components/CurrencyRange.d.ts +2 -2
- package/dist/components/FilterMenu/components/DateRange.d.ts +2 -2
- package/dist/components/FilterMenu/components/PercentageInput.d.ts +2 -2
- package/dist/components/FilterMenu/components/PercentageRange.d.ts +2 -2
- package/dist/components/FilterMenu/components/RadioGroup.d.ts +2 -2
- package/dist/components/FilterMenu/index.d.ts +2 -2
- package/dist/components/FilterMenu/types.d.ts +18 -18
- package/dist/components/FormControl/FormControl.d.ts +1 -1
- package/dist/components/FormControl/index.d.ts +2 -2
- package/dist/components/FormHelperText/FormHelperText.d.ts +1 -1
- package/dist/components/FormHelperText/index.d.ts +2 -2
- package/dist/components/FormLabel/FormLabel.d.ts +1 -1
- package/dist/components/FormLabel/index.d.ts +2 -2
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/IconButton/IconButton.d.ts +4 -4
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/IconMenuButton/IconMenuButton.d.ts +6 -6
- package/dist/components/IconMenuButton/index.d.ts +2 -2
- package/dist/components/InfoSign/InfoSign.d.ts +4 -4
- package/dist/components/InfoSign/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/InsetDrawer/index.d.ts +2 -2
- package/dist/components/Markdown/Markdown.d.ts +6 -6
- package/dist/components/Markdown/index.d.ts +2 -2
- package/dist/components/Menu/Menu.d.ts +3 -3
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/MenuButton/MenuButton.d.ts +8 -8
- package/dist/components/MenuButton/index.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +3 -3
- package/dist/components/MonthPicker/index.d.ts +2 -2
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +3 -3
- package/dist/components/MonthRangePicker/index.d.ts +2 -2
- package/dist/components/NavigationGroup/NavigationGroup.d.ts +3 -3
- package/dist/components/NavigationGroup/index.d.ts +2 -2
- package/dist/components/NavigationItem/NavigationItem.d.ts +3 -3
- package/dist/components/NavigationItem/index.d.ts +2 -2
- package/dist/components/Navigator/Navigator.d.ts +3 -3
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/PercentageInput/PercentageInput.d.ts +4 -4
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +5 -5
- package/dist/components/ProfileMenu/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/RadioList/RadioList.d.ts +2 -2
- package/dist/components/RadioList/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +5 -5
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Sheet/Sheet.d.ts +1 -1
- package/dist/components/Sheet/index.d.ts +2 -2
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/index.d.ts +2 -2
- package/dist/components/Stepper/Stepper.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +3 -3
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +18 -18
- package/dist/components/ThemeProvider/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Typography/Typography.d.ts +3 -3
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Uploader/Uploader.d.ts +1 -1
- package/dist/components/index.d.ts +60 -60
- package/dist/index.cjs +1207 -2062
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1226 -2162
- package/dist/libs/rehype-accent/index.d.ts +2 -2
- package/framer/index.js +28 -28
- package/package.json +6 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export type * from
|
|
1
|
+
export * from './FilterMenu';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DateRangePickerProps } from
|
|
2
|
-
import type { CurrencyInputProps } from
|
|
3
|
-
import type { PercentageInputProps } from
|
|
4
|
-
import type { AutocompleteProps } from
|
|
1
|
+
import type { DateRangePickerProps } from '../DateRangePicker';
|
|
2
|
+
import type { CurrencyInputProps } from '../CurrencyInput';
|
|
3
|
+
import type { PercentageInputProps } from '../PercentageInput';
|
|
4
|
+
import type { AutocompleteProps } from '../Autocomplete';
|
|
5
5
|
type DateTime = string;
|
|
6
6
|
export interface FilterBaseItem<V = never> {
|
|
7
7
|
id: string;
|
|
@@ -11,36 +11,36 @@ export interface FilterBaseItem<V = never> {
|
|
|
11
11
|
onChange?: (value: V) => void;
|
|
12
12
|
}
|
|
13
13
|
export interface FilterCheckboxGroupItem extends FilterBaseItem<(string | number)[]> {
|
|
14
|
-
type:
|
|
14
|
+
type: 'checkbox-group';
|
|
15
15
|
options: {
|
|
16
16
|
label: string;
|
|
17
17
|
value: string | number;
|
|
18
18
|
}[];
|
|
19
19
|
}
|
|
20
20
|
export interface FilterRadioGroupItem extends FilterBaseItem<string | number> {
|
|
21
|
-
type:
|
|
21
|
+
type: 'radio-group';
|
|
22
22
|
options: {
|
|
23
23
|
label: string;
|
|
24
24
|
value: string | number;
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
|
-
export interface FilterDateRangeItem extends FilterBaseItem<[DateTime, DateTime]>, Pick<DateRangePickerProps,
|
|
28
|
-
type:
|
|
27
|
+
export interface FilterDateRangeItem extends FilterBaseItem<[DateTime, DateTime]>, Pick<DateRangePickerProps, 'minDate' | 'maxDate' | 'disableFuture' | 'disablePast' | 'format' | 'displayFormat' | 'inputReadOnly' | 'hideClearButton'> {
|
|
28
|
+
type: 'date-range';
|
|
29
29
|
}
|
|
30
|
-
export interface FilterCurrencyInputItem extends FilterBaseItem<number>, Pick<CurrencyInputProps,
|
|
31
|
-
type:
|
|
30
|
+
export interface FilterCurrencyInputItem extends FilterBaseItem<number>, Pick<CurrencyInputProps, 'max' | 'placeholder' | 'useMinorUnit' | 'currency'> {
|
|
31
|
+
type: 'currency-input';
|
|
32
32
|
}
|
|
33
|
-
export interface FilterCurrencyRangeItem extends FilterBaseItem<[number, number]>, Pick<CurrencyInputProps,
|
|
34
|
-
type:
|
|
33
|
+
export interface FilterCurrencyRangeItem extends FilterBaseItem<[number, number]>, Pick<CurrencyInputProps, 'max' | 'placeholder' | 'useMinorUnit' | 'currency'> {
|
|
34
|
+
type: 'currency-range';
|
|
35
35
|
}
|
|
36
|
-
export interface FilterPercentageInputItem extends FilterBaseItem<number>, Pick<PercentageInputProps,
|
|
37
|
-
type:
|
|
36
|
+
export interface FilterPercentageInputItem extends FilterBaseItem<number>, Pick<PercentageInputProps, 'useMinorUnit' | 'maxDecimalScale' | 'min' | 'max' | 'placeholder'> {
|
|
37
|
+
type: 'percentage-input';
|
|
38
38
|
}
|
|
39
|
-
export interface FilterPercentageRangeItem extends FilterBaseItem<[number, number]>, Pick<PercentageInputProps,
|
|
40
|
-
type:
|
|
39
|
+
export interface FilterPercentageRangeItem extends FilterBaseItem<[number, number]>, Pick<PercentageInputProps, 'useMinorUnit' | 'maxDecimalScale' | 'min' | 'max'> {
|
|
40
|
+
type: 'percentage-range';
|
|
41
41
|
}
|
|
42
|
-
export interface FilterAutocompleteItem extends FilterBaseItem<string | number>, Pick<AutocompleteProps<any, boolean>,
|
|
43
|
-
type:
|
|
42
|
+
export interface FilterAutocompleteItem extends FilterBaseItem<string | number>, Pick<AutocompleteProps<any, boolean>, 'options' | 'multiple' | 'placeholder'> {
|
|
43
|
+
type: 'autocomplete';
|
|
44
44
|
}
|
|
45
45
|
export type FilterItem = FilterCheckboxGroupItem | FilterRadioGroupItem | FilterDateRangeItem | FilterCurrencyInputItem | FilterCurrencyRangeItem | FilterPercentageInputItem | FilterPercentageRangeItem | FilterAutocompleteItem;
|
|
46
46
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const FormControl: import("@emotion/styled").StyledComponent<Omit<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").FormControlPropsColorOverrides> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormControl } from
|
|
2
|
-
export * from
|
|
1
|
+
import { FormControl } from './FormControl';
|
|
2
|
+
export * from './FormControl';
|
|
3
3
|
export default FormControl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormHelperText } from
|
|
2
|
-
export * from
|
|
1
|
+
import { FormHelperText } from './FormHelperText';
|
|
2
|
+
export * from './FormHelperText';
|
|
3
3
|
export default FormHelperText;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormLabel } from
|
|
2
|
-
export * from
|
|
1
|
+
import { FormLabel } from './FormLabel';
|
|
2
|
+
export * from './FormLabel';
|
|
3
3
|
export default FormLabel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Grid } from
|
|
1
|
+
import { Grid } from '@mui/joy';
|
|
2
2
|
export { Grid };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Grid } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Grid } from './Grid';
|
|
2
|
+
export * from './Grid';
|
|
3
3
|
export default Grid;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { ElementType } from
|
|
2
|
-
import { IconButtonProps as JoyIconButtonProps } from
|
|
3
|
-
import { MotionProps } from
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
import { IconButtonProps as JoyIconButtonProps } from '@mui/joy';
|
|
3
|
+
import { MotionProps } from 'framer-motion';
|
|
4
4
|
type PolymorphicProps<C extends ElementType> = {
|
|
5
5
|
component?: C;
|
|
6
6
|
ref?: React.Ref<any>;
|
|
7
7
|
} & Omit<React.ComponentPropsWithoutRef<C>, keyof JoyIconButtonProps>;
|
|
8
|
-
type IconButtonProps<C extends ElementType =
|
|
8
|
+
type IconButtonProps<C extends ElementType = 'button'> = JoyIconButtonProps & MotionProps & PolymorphicProps<C>;
|
|
9
9
|
declare const IconButton: <C extends React.ElementType = "button">(props: IconButtonProps<C> & {
|
|
10
10
|
ref?: React.Ref<any>;
|
|
11
11
|
}) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IconButton } from
|
|
2
|
-
export * from
|
|
1
|
+
import { IconButton } from './IconButton';
|
|
2
|
+
export * from './IconButton';
|
|
3
3
|
export default IconButton;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React, { AriaAttributes, ComponentProps, ElementType, ReactNode } from
|
|
2
|
-
import { MenuButtonProps } from
|
|
1
|
+
import React, { AriaAttributes, ComponentProps, ElementType, ReactNode } from 'react';
|
|
2
|
+
import { MenuButtonProps } from '@mui/joy';
|
|
3
3
|
declare function IconMenuButton<T extends ElementType, P extends ElementType>(props: {
|
|
4
|
-
size?: MenuButtonProps<T, P>[
|
|
4
|
+
size?: MenuButtonProps<T, P>['size'];
|
|
5
5
|
icon: ReactNode;
|
|
6
6
|
buttonComponent?: T;
|
|
7
7
|
buttonComponentProps?: ComponentProps<T> & AriaAttributes;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
loading?: boolean;
|
|
10
|
-
color?: MenuButtonProps<T, P>[
|
|
11
|
-
variant?: MenuButtonProps<T, P>[
|
|
10
|
+
color?: MenuButtonProps<T, P>['color'];
|
|
11
|
+
variant?: MenuButtonProps<T, P>['variant'];
|
|
12
12
|
items?: {
|
|
13
13
|
text: string;
|
|
14
14
|
component?: P;
|
|
15
15
|
componentProps?: ComponentProps<P>;
|
|
16
16
|
}[];
|
|
17
|
-
placement?:
|
|
17
|
+
placement?: 'bottom-start' | 'bottom' | 'bottom-end';
|
|
18
18
|
}): React.JSX.Element;
|
|
19
19
|
declare namespace IconMenuButton {
|
|
20
20
|
var displayName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IconMenuButton } from
|
|
2
|
-
export * from
|
|
1
|
+
import { IconMenuButton } from './IconMenuButton';
|
|
2
|
+
export * from './IconMenuButton';
|
|
3
3
|
export default IconMenuButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { TooltipProps as JoyTooltipProps } from
|
|
3
|
-
import { MotionProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TooltipProps as JoyTooltipProps } from '@mui/joy';
|
|
3
|
+
import { MotionProps } from 'framer-motion';
|
|
4
4
|
declare function InfoSign(props: {
|
|
5
5
|
message: string;
|
|
6
|
-
} & Pick<JoyTooltipProps,
|
|
6
|
+
} & Pick<JoyTooltipProps, 'placement'> & MotionProps): React.JSX.Element;
|
|
7
7
|
export { InfoSign };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InfoSign } from
|
|
2
|
-
export * from
|
|
1
|
+
import { InfoSign } from './InfoSign';
|
|
2
|
+
export * from './InfoSign';
|
|
3
3
|
export default InfoSign;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { type MotionProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type MotionProps } from 'framer-motion';
|
|
3
3
|
declare const Input: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
label?: React.ReactNode;
|
|
5
5
|
helperText?: React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Input } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Input } from './Input';
|
|
2
|
+
export * from './Input';
|
|
3
3
|
export default Input;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InsetDrawer } from
|
|
2
|
-
export * from
|
|
1
|
+
import { InsetDrawer } from './InsetDrawer';
|
|
2
|
+
export * from './InsetDrawer';
|
|
3
3
|
export default InsetDrawer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { type Options } from
|
|
3
|
-
import { MotionProps } from
|
|
4
|
-
import { TypographyProps } from
|
|
5
|
-
import { TypographySystem } from
|
|
6
|
-
import { TextColor } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Options } from 'react-markdown';
|
|
3
|
+
import { MotionProps } from 'framer-motion';
|
|
4
|
+
import { TypographyProps } from '@mui/joy';
|
|
5
|
+
import { TypographySystem } from '@mui/joy';
|
|
6
|
+
import { TextColor } from '@mui/joy/styles/types';
|
|
7
7
|
declare const Markdown: {
|
|
8
8
|
(props: {
|
|
9
9
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Markdown } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Markdown } from './Markdown';
|
|
2
|
+
export * from './Markdown';
|
|
3
3
|
export default Markdown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { MenuProps, MenuItemProps } from
|
|
3
|
-
import { MotionProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuProps, MenuItemProps } from '@mui/joy';
|
|
3
|
+
import { MotionProps } from 'framer-motion';
|
|
4
4
|
/**
|
|
5
5
|
* @todo [v1.0.0] Restructure menu component to:
|
|
6
6
|
* - Abstract the menu component.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Menu } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Menu } from './Menu';
|
|
2
|
+
export * from './Menu';
|
|
3
3
|
export default Menu;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React, { ComponentProps, ElementType } from
|
|
2
|
-
import { MenuButtonProps } from
|
|
1
|
+
import React, { ComponentProps, ElementType } from 'react';
|
|
2
|
+
import { MenuButtonProps } from '@mui/joy';
|
|
3
3
|
declare function MenuButton<T extends ElementType, P extends ElementType>(props: {
|
|
4
|
-
size?: MenuButtonProps<T, P>[
|
|
4
|
+
size?: MenuButtonProps<T, P>['size'];
|
|
5
5
|
buttonText: string;
|
|
6
6
|
buttonComponent?: T;
|
|
7
7
|
buttonComponentProps?: ComponentProps<T>;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
loading?: boolean;
|
|
10
|
-
color?: MenuButtonProps<T, P>[
|
|
11
|
-
variant?: MenuButtonProps<T, P>[
|
|
12
|
-
endDecorator?: MenuButtonProps<T, P>[
|
|
13
|
-
startDecorator?: MenuButtonProps<T, P>[
|
|
10
|
+
color?: MenuButtonProps<T, P>['color'];
|
|
11
|
+
variant?: MenuButtonProps<T, P>['variant'];
|
|
12
|
+
endDecorator?: MenuButtonProps<T, P>['endDecorator'];
|
|
13
|
+
startDecorator?: MenuButtonProps<T, P>['startDecorator'];
|
|
14
14
|
items?: {
|
|
15
15
|
text: string;
|
|
16
16
|
component?: P;
|
|
17
17
|
componentProps?: ComponentProps<P>;
|
|
18
18
|
}[];
|
|
19
19
|
showIcon?: boolean;
|
|
20
|
-
placement?:
|
|
20
|
+
placement?: 'bottom-start' | 'bottom' | 'bottom-end';
|
|
21
21
|
}): React.JSX.Element;
|
|
22
22
|
declare namespace MenuButton {
|
|
23
23
|
var displayName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MenuButton } from
|
|
2
|
-
export * from
|
|
1
|
+
import { MenuButton } from './MenuButton';
|
|
2
|
+
export * from './MenuButton';
|
|
3
3
|
export default MenuButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
3
|
onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Modal } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Modal } from './Modal';
|
|
2
|
+
export * from './Modal';
|
|
3
3
|
export default Modal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import Input from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Input from '../Input';
|
|
3
3
|
interface BaseMonthPickerProps {
|
|
4
4
|
value?: string;
|
|
5
5
|
defaultValue?: string;
|
|
@@ -23,6 +23,6 @@ interface BaseMonthPickerProps {
|
|
|
23
23
|
displayFormat?: string;
|
|
24
24
|
locale?: string;
|
|
25
25
|
}
|
|
26
|
-
export type MonthPickerProps = BaseMonthPickerProps & Omit<React.ComponentProps<typeof Input>,
|
|
26
|
+
export type MonthPickerProps = BaseMonthPickerProps & Omit<React.ComponentProps<typeof Input>, 'onChange' | 'value' | 'defaultValue'>;
|
|
27
27
|
declare const MonthPicker: React.ForwardRefExoticComponent<Omit<MonthPickerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
28
|
export { MonthPicker };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MonthPicker } from
|
|
2
|
-
export * from
|
|
1
|
+
import { MonthPicker } from './MonthPicker';
|
|
2
|
+
export * from './MonthPicker';
|
|
3
3
|
export default MonthPicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import Input from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Input from '../Input';
|
|
3
3
|
interface BaseMonthRangePickerProps {
|
|
4
4
|
value?: string;
|
|
5
5
|
defaultValue?: string;
|
|
@@ -21,6 +21,6 @@ interface BaseMonthRangePickerProps {
|
|
|
21
21
|
disablePast?: boolean;
|
|
22
22
|
format?: string;
|
|
23
23
|
}
|
|
24
|
-
export type MonthRangePickerProps = BaseMonthRangePickerProps & Omit<React.ComponentProps<typeof Input>,
|
|
24
|
+
export type MonthRangePickerProps = BaseMonthRangePickerProps & Omit<React.ComponentProps<typeof Input>, 'onChange' | 'value' | 'defaultValue'>;
|
|
25
25
|
declare const MonthRangePicker: React.ForwardRefExoticComponent<Omit<MonthRangePickerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
26
26
|
export { MonthRangePicker };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MonthRangePicker } from
|
|
2
|
-
export * from
|
|
1
|
+
import { MonthRangePicker } from './MonthRangePicker';
|
|
2
|
+
export * from './MonthRangePicker';
|
|
3
3
|
export default MonthRangePicker;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentProps, ReactNode } from
|
|
2
|
-
import { Accordion as JoyAccordion } from
|
|
3
|
-
declare function NavigationGroup(props: Omit<ComponentProps<typeof JoyAccordion>,
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Accordion as JoyAccordion } from '@mui/joy';
|
|
3
|
+
declare function NavigationGroup(props: Omit<ComponentProps<typeof JoyAccordion>, 'title'> & {
|
|
4
4
|
title: string | ReactNode;
|
|
5
5
|
startDecorator?: ReactNode;
|
|
6
6
|
children: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NavigationGroup } from
|
|
2
|
-
export * from
|
|
1
|
+
import { NavigationGroup } from './NavigationGroup';
|
|
2
|
+
export * from './NavigationGroup';
|
|
3
3
|
export default NavigationGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentProps, ReactNode } from
|
|
2
|
-
import { ListItem as JoyListItem } from
|
|
3
|
-
declare function NavigationItem(props: Omit<ComponentProps<typeof JoyListItem>,
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { ListItem as JoyListItem } from '@mui/joy';
|
|
3
|
+
declare function NavigationItem(props: Omit<ComponentProps<typeof JoyListItem>, 'onClick'> & {
|
|
4
4
|
id: string;
|
|
5
5
|
startDecorator?: ReactNode;
|
|
6
6
|
level?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NavigationItem } from
|
|
2
|
-
export * from
|
|
1
|
+
import { NavigationItem } from './NavigationItem';
|
|
2
|
+
export * from './NavigationItem';
|
|
3
3
|
export default NavigationItem;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type NavigatorItemProperty = {
|
|
3
3
|
id: string;
|
|
4
|
-
type:
|
|
4
|
+
type: 'item';
|
|
5
5
|
title: string | React.ReactNode;
|
|
6
6
|
startDecorator?: React.ReactNode;
|
|
7
7
|
selected?: boolean;
|
|
8
8
|
};
|
|
9
9
|
type NavigatorGroupProperty = {
|
|
10
|
-
type:
|
|
10
|
+
type: 'group';
|
|
11
11
|
title: string | React.ReactNode;
|
|
12
12
|
startDecorator?: React.ReactNode;
|
|
13
13
|
expanded?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const PaginationRoot: import("@emotion/styled").StyledComponent<Pick<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
|
|
@@ -20,7 +20,7 @@ interface PaginationProps extends React.ComponentProps<typeof PaginationRoot> {
|
|
|
20
20
|
};
|
|
21
21
|
rowCount: number;
|
|
22
22
|
onPageChange: (newPage: number) => void;
|
|
23
|
-
size?:
|
|
23
|
+
size?: 'sm' | 'md' | 'lg';
|
|
24
24
|
}
|
|
25
25
|
declare function Pagination(props: PaginationProps): React.JSX.Element;
|
|
26
26
|
declare namespace Pagination {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Pagination } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Pagination } from './Pagination';
|
|
2
|
+
export * from './Pagination';
|
|
3
3
|
export default Pagination;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { InputProps } from
|
|
3
|
-
import { MotionProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '@mui/joy';
|
|
3
|
+
import { MotionProps } from 'framer-motion';
|
|
4
4
|
interface BasePercentageInputProps {
|
|
5
5
|
value?: number;
|
|
6
6
|
defaultValue?: number;
|
|
@@ -21,6 +21,6 @@ interface BasePercentageInputProps {
|
|
|
21
21
|
min?: number;
|
|
22
22
|
max?: number;
|
|
23
23
|
}
|
|
24
|
-
export type PercentageInputProps = BasePercentageInputProps & Omit<InputProps,
|
|
24
|
+
export type PercentageInputProps = BasePercentageInputProps & Omit<InputProps, 'value' | 'defaultValue' | 'onChange'> & MotionProps;
|
|
25
25
|
declare const PercentageInput: React.ForwardRefExoticComponent<Omit<PercentageInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
26
26
|
export { PercentageInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ComponentProps } from
|
|
2
|
-
import { MenuItem } from
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
|
+
import { MenuItem } from '../Menu';
|
|
3
3
|
declare const ProfileMenuRoot: import("@emotion/styled").StyledComponent<Pick<{
|
|
4
4
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
@@ -31,11 +31,11 @@ interface BaseProfileMenuProps {
|
|
|
31
31
|
};
|
|
32
32
|
menuItems: ({
|
|
33
33
|
label: string;
|
|
34
|
-
} & Omit<ComponentProps<typeof MenuItem>,
|
|
34
|
+
} & Omit<ComponentProps<typeof MenuItem>, 'children'>)[];
|
|
35
35
|
getInitial?: (name: string) => string;
|
|
36
|
-
size?:
|
|
36
|
+
size?: 'sm' | 'md';
|
|
37
37
|
}
|
|
38
|
-
type ProfileMenuProps = BaseProfileMenuProps & Omit<ComponentProps<typeof ProfileMenuRoot>,
|
|
38
|
+
type ProfileMenuProps = BaseProfileMenuProps & Omit<ComponentProps<typeof ProfileMenuRoot>, 'size'>;
|
|
39
39
|
declare function ProfileMenu(props: ProfileMenuProps): React.JSX.Element;
|
|
40
40
|
declare namespace ProfileMenu {
|
|
41
41
|
var displayName: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProfileMenu } from
|
|
2
|
-
export * from
|
|
1
|
+
import { ProfileMenu } from './ProfileMenu';
|
|
2
|
+
export * from './ProfileMenu';
|
|
3
3
|
export { ProfileMenu };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Radio } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Radio } from './Radio';
|
|
2
|
+
export * from './Radio';
|
|
3
3
|
export default Radio;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ComponentProps, ReactNode } from
|
|
2
|
-
import { RadioGroup } from
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { RadioGroup } from '../Radio/Radio';
|
|
3
3
|
declare function RadioList(props: {
|
|
4
4
|
items: {
|
|
5
5
|
label: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RadioList } from
|
|
2
|
-
export * from
|
|
1
|
+
import { RadioList } from './RadioList';
|
|
2
|
+
export * from './RadioList';
|
|
3
3
|
export default RadioList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentProps } from
|
|
2
|
-
import { Select as JoySelect } from
|
|
3
|
-
import { SelectValue } from
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
|
+
import { Select as JoySelect } from '@mui/joy';
|
|
3
|
+
import { SelectValue } from '@mui/base';
|
|
4
4
|
declare const Option: import("framer-motion").CustomDomComponent<{
|
|
5
5
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").OptionPropsColorOverrides> | undefined;
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -21,13 +21,13 @@ type OptionType = {
|
|
|
21
21
|
type InferOptionValue<OptionValue> = OptionValue extends {
|
|
22
22
|
value: infer V;
|
|
23
23
|
} ? V : OptionValue;
|
|
24
|
-
interface CeedSelectProps<OptionValue extends OptionType, Multiple extends boolean = false> extends Omit<ComponentProps<typeof JoySelect<OptionValue, any, Multiple>>,
|
|
24
|
+
interface CeedSelectProps<OptionValue extends OptionType, Multiple extends boolean = false> extends Omit<ComponentProps<typeof JoySelect<OptionValue, any, Multiple>>, 'value' | 'onChange' | 'multiple'> {
|
|
25
25
|
options: OptionValue[];
|
|
26
26
|
label?: string;
|
|
27
27
|
helperText?: string;
|
|
28
28
|
error?: boolean;
|
|
29
29
|
value?: SelectValue<InferOptionValue<OptionValue>, Multiple>;
|
|
30
|
-
onChange?: (event: Omit<React.SyntheticEvent<HTMLElement>,
|
|
30
|
+
onChange?: (event: Omit<React.SyntheticEvent<HTMLElement>, 'target'> & {
|
|
31
31
|
target: {
|
|
32
32
|
name?: string;
|
|
33
33
|
value: InferOptionValue<OptionValue>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Select } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Select } from './Select';
|
|
2
|
+
export * from './Select';
|
|
3
3
|
export default Select;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const Sheet: import("framer-motion").CustomDomComponent<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").SheetPropsColorOverrides> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Sheet } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Sheet } from './Sheet';
|
|
2
|
+
export * from './Sheet';
|
|
3
3
|
export default Sheet;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Stack } from
|
|
1
|
+
import { Stack } from '@mui/joy';
|
|
2
2
|
export { Stack };
|