@majoo-ui/react 1.61.24 → 1.61.25-rc.2
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/index.d.ts +1 -5
- package/index.esm.js +24546 -26967
- package/package.json +4 -4
- package/{colors → src/colors}/index.d.ts +1 -1
- package/{components → src/components}/accordion/Accordion.d.ts +35 -35
- package/{components → src/components}/accordion/index.d.ts +1 -1
- package/{components → src/components}/barChart/BarChart.d.ts +82 -82
- package/{components → src/components}/barChart/index.d.ts +1 -1
- package/{components → src/components}/breadcrumb/index.d.ts +7 -7
- package/{components → src/components}/button/index.d.ts +2 -2
- package/{components → src/components}/card/index.d.ts +2 -2
- package/{components → src/components}/chart/index.d.ts +1 -1
- package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
- package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
- package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
- package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
- package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
- package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
- package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
- package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
- package/{components → src/components}/chart/utils/index.d.ts +18 -18
- package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
- package/{components → src/components}/checkboxTable/index.d.ts +1 -1
- package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
- package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
- package/{components → src/components}/contentEditor/index.d.ts +1 -1
- package/{components → src/components}/contextMenu/index.d.ts +1 -1
- package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
- package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
- package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
- package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
- package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
- package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
- package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
- package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
- package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
- package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
- package/{components → src/components}/datePicker/components/index.d.ts +6 -6
- package/{components → src/components}/datePicker/index.d.ts +7 -7
- package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
- package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
- package/{components → src/components}/devicePreview/index.d.ts +2 -2
- package/{components → src/components}/dialog/index.d.ts +2 -2
- package/{components → src/components}/editableTable/Columns.d.ts +59 -59
- package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
- package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
- package/{components → src/components}/editableTable/faker.d.ts +16 -16
- package/{components → src/components}/editableTable/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
- package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
- package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
- package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
- package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
- package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
- package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
- package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
- package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
- package/{components → src/components}/form/components/index.d.ts +27 -27
- package/{components → src/components}/form/index.d.ts +1 -1
- package/{components → src/components}/heading/index.d.ts +2 -2
- package/{components → src/components}/image/index.d.ts +2 -2
- package/{components → src/components}/index.d.ts +53 -53
- package/{components → src/components}/link/index.d.ts +1 -1
- package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
- package/{components → src/components}/loadingBar/index.d.ts +1 -1
- package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
- package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
- package/{components → src/components}/mapPicker/index.d.ts +2 -2
- package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
- package/{components → src/components}/modalDialog/index.d.ts +2 -2
- package/{components → src/components}/pageDialog/index.d.ts +1 -1
- package/{components → src/components}/paragraph/index.d.ts +2 -2
- package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
- package/{components → src/components}/pieChart/index.d.ts +1 -1
- package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
- package/{components → src/components}/progressIndicator/index.d.ts +1 -1
- package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
- package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
- package/{components → src/components}/scrollSync/index.d.ts +2 -2
- package/{components → src/components}/scrollSync/utils.d.ts +3 -3
- package/{components → src/components}/separator/index.d.ts +2 -2
- package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
- package/{components → src/components}/skeleton/index.d.ts +1 -1
- package/{components → src/components}/stepWizard/index.d.ts +45 -45
- package/{components → src/components}/table/MobileTable.d.ts +39 -39
- package/{components → src/components}/table/index.d.ts +3 -3
- package/{components → src/components}/tableOfContent/index.d.ts +57 -57
- package/{components → src/components}/tagList/TagList.d.ts +21 -21
- package/{components → src/components}/tagList/index.d.ts +1 -1
- package/{components → src/components}/text/index.d.ts +2 -2
- package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
- package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
- package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
- package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
- package/{foundations → src/foundations}/space/Space.d.ts +2 -2
- package/{hooks → src/hooks}/index.d.ts +2 -2
- package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
- package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
- package/src/index.d.ts +5 -0
- package/{layout → src/layout}/box/index.d.ts +1 -1
- package/{layout → src/layout}/flex/index.d.ts +2 -2
- package/{layout → src/layout}/grid/index.d.ts +2 -2
- package/{layout → src/layout}/index.d.ts +4 -4
- package/{type → src/type}/base.types.d.ts +11 -11
- package/src/type/stitches.types.d.ts +1 -0
- package/{utils → src/utils}/request.d.ts +14 -14
- package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
- package/{utils → src/utils}/variant.d.ts +4 -4
- package/components/alert-backup/index.backup.d.ts +0 -1
- package/components/button/Button.d.ts +0 -163
- package/components/card/Card.d.ts +0 -531
- package/components/contextMenu/ContextMenu.d.ts +0 -404
- package/components/datePicker/components/DateNumber.d.ts +0 -104
- package/components/devicePreview/DevicePreview.d.ts +0 -161
- package/components/dialog/Dialog.d.ts +0 -402
- package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
- package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
- package/components/heading/Heading.d.ts +0 -100
- package/components/link/Link.d.ts +0 -109
- package/components/modalDialog/ModalDialog.d.ts +0 -836
- package/components/pageDialog/PageDialog.d.ts +0 -810
- package/components/table/Table.d.ts +0 -1529
- package/config/stitches.config.d.ts +0 -645
- package/foundations/typography/Typography.d.ts +0 -396
- package/type/stitches.types.d.ts +0 -1
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
interface ScrollSpyProps {
|
|
3
|
-
/**
|
|
4
|
-
* Each direct child Element should contain an id.
|
|
5
|
-
*/
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* ref to your navigation container containing items with data-to-scrollspy-id attributes.
|
|
9
|
-
*/
|
|
10
|
-
navContainerRef?: MutableRefObject<HTMLDivElement | null>;
|
|
11
|
-
/**
|
|
12
|
-
* If you want to spy only on a particular scrollable container (Element) then pass its ref to this prop.
|
|
13
|
-
*/
|
|
14
|
-
parentScrollContainerRef?: MutableRefObject<HTMLDivElement | null>;
|
|
15
|
-
/**
|
|
16
|
-
* In milliseconds to throttle the onscroll event. Lower the number, better the response time, higher the performance cost.
|
|
17
|
-
*/
|
|
18
|
-
scrollThrottle?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Executes this function whenever you scroll to a new ScrollSpy child Element, callback returns the id of that Element as well.
|
|
21
|
-
*/
|
|
22
|
-
onUpdateCallback?: (id: string) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Spy will be fired when it has been scrolled offsetTop beyond 50% to the top of the containing element.
|
|
25
|
-
*/
|
|
26
|
-
offsetTop?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Spy will be fired when it has been scrolled offsetBottom beyond 50% to the bottom of the containing element.
|
|
29
|
-
*/
|
|
30
|
-
offsetBottom?: number;
|
|
31
|
-
/**
|
|
32
|
-
* To customize the string after data-.
|
|
33
|
-
*/
|
|
34
|
-
useDataAttribute?: string;
|
|
35
|
-
/**
|
|
36
|
-
* To customize the class added when the Element in view.
|
|
37
|
-
*/
|
|
38
|
-
activeClass?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Set to false if you want your spy to be active only if more than50% of that div is in the viewport.
|
|
41
|
-
*/
|
|
42
|
-
useBoxMethod?: boolean;
|
|
43
|
-
}
|
|
44
|
-
declare const TableOfContentPage: {
|
|
45
|
-
(props: ScrollSpyProps): JSX.Element;
|
|
46
|
-
defaultProps: {
|
|
47
|
-
scrollThrottle: number;
|
|
48
|
-
offsetTop: number;
|
|
49
|
-
offsetBottom: number;
|
|
50
|
-
useDataAttribute: string;
|
|
51
|
-
activeClass: string;
|
|
52
|
-
useBoxMethod: boolean;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export { default as TableOfContent } from './TableOfContent';
|
|
56
|
-
export * from './TableOfContent';
|
|
57
|
-
export { TableOfContentPage };
|
|
1
|
+
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
interface ScrollSpyProps {
|
|
3
|
+
/**
|
|
4
|
+
* Each direct child Element should contain an id.
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* ref to your navigation container containing items with data-to-scrollspy-id attributes.
|
|
9
|
+
*/
|
|
10
|
+
navContainerRef?: MutableRefObject<HTMLDivElement | null>;
|
|
11
|
+
/**
|
|
12
|
+
* If you want to spy only on a particular scrollable container (Element) then pass its ref to this prop.
|
|
13
|
+
*/
|
|
14
|
+
parentScrollContainerRef?: MutableRefObject<HTMLDivElement | null>;
|
|
15
|
+
/**
|
|
16
|
+
* In milliseconds to throttle the onscroll event. Lower the number, better the response time, higher the performance cost.
|
|
17
|
+
*/
|
|
18
|
+
scrollThrottle?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Executes this function whenever you scroll to a new ScrollSpy child Element, callback returns the id of that Element as well.
|
|
21
|
+
*/
|
|
22
|
+
onUpdateCallback?: (id: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Spy will be fired when it has been scrolled offsetTop beyond 50% to the top of the containing element.
|
|
25
|
+
*/
|
|
26
|
+
offsetTop?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Spy will be fired when it has been scrolled offsetBottom beyond 50% to the bottom of the containing element.
|
|
29
|
+
*/
|
|
30
|
+
offsetBottom?: number;
|
|
31
|
+
/**
|
|
32
|
+
* To customize the string after data-.
|
|
33
|
+
*/
|
|
34
|
+
useDataAttribute?: string;
|
|
35
|
+
/**
|
|
36
|
+
* To customize the class added when the Element in view.
|
|
37
|
+
*/
|
|
38
|
+
activeClass?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Set to false if you want your spy to be active only if more than50% of that div is in the viewport.
|
|
41
|
+
*/
|
|
42
|
+
useBoxMethod?: boolean;
|
|
43
|
+
}
|
|
44
|
+
declare const TableOfContentPage: {
|
|
45
|
+
(props: ScrollSpyProps): JSX.Element;
|
|
46
|
+
defaultProps: {
|
|
47
|
+
scrollThrottle: number;
|
|
48
|
+
offsetTop: number;
|
|
49
|
+
offsetBottom: number;
|
|
50
|
+
useDataAttribute: string;
|
|
51
|
+
activeClass: string;
|
|
52
|
+
useBoxMethod: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export { default as TableOfContent } from './TableOfContent';
|
|
56
|
+
export * from './TableOfContent';
|
|
57
|
+
export { TableOfContentPage };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface SelectedItem {
|
|
3
|
-
id: string | number;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
interface TagListProps {
|
|
7
|
-
/**
|
|
8
|
-
* List of selected item.
|
|
9
|
-
*/
|
|
10
|
-
selectedItems: SelectedItem[];
|
|
11
|
-
/**
|
|
12
|
-
* onRemoveItem event handler.
|
|
13
|
-
*/
|
|
14
|
-
onRemoveItem?: (SelectedItem: any) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Custom counter label.
|
|
17
|
-
*/
|
|
18
|
-
counterLabel?: string;
|
|
19
|
-
}
|
|
20
|
-
declare function TagList({ selectedItems, onRemoveItem, counterLabel }: TagListProps): JSX.Element;
|
|
21
|
-
export default TagList;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SelectedItem {
|
|
3
|
+
id: string | number;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
interface TagListProps {
|
|
7
|
+
/**
|
|
8
|
+
* List of selected item.
|
|
9
|
+
*/
|
|
10
|
+
selectedItems: SelectedItem[];
|
|
11
|
+
/**
|
|
12
|
+
* onRemoveItem event handler.
|
|
13
|
+
*/
|
|
14
|
+
onRemoveItem?: (SelectedItem: any) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Custom counter label.
|
|
17
|
+
*/
|
|
18
|
+
counterLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
declare function TagList({ selectedItems, onRemoveItem, counterLabel }: TagListProps): JSX.Element;
|
|
21
|
+
export default TagList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TagList } from './TagList';
|
|
1
|
+
export { default as TagList } from './TagList';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Text';
|
|
2
|
-
export { default as Text } from './Text';
|
|
1
|
+
export * from './Text';
|
|
2
|
+
export { default as Text } from './Text';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PixelCrop } from 'react-image-crop';
|
|
2
|
-
export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<void>;
|
|
1
|
+
import { PixelCrop } from 'react-image-crop';
|
|
2
|
+
export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PixelCrop } from 'react-image-crop';
|
|
2
|
-
export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any, type: any): Promise<unknown>;
|
|
1
|
+
import { PixelCrop } from 'react-image-crop';
|
|
2
|
+
export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any, type: any): Promise<unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function Spaces(): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function Spaces(): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function Spaces(): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function Spaces(): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function Space(): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function Space(): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './useListOption/useListOption';
|
|
2
|
-
export * from './useToggle/useToggle';
|
|
1
|
+
export * from './useListOption/useListOption';
|
|
2
|
+
export * from './useToggle/useToggle';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface ITransform<T> {
|
|
2
|
-
name: string;
|
|
3
|
-
value: any;
|
|
4
|
-
rec: T;
|
|
5
|
-
key: any;
|
|
6
|
-
isDisabled: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
|
|
1
|
+
export interface ITransform<T> {
|
|
2
|
+
name: string;
|
|
3
|
+
value: any;
|
|
4
|
+
rec: T;
|
|
5
|
+
key: any;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
|
|
1
|
+
export declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
|
package/src/index.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Box } from './Box';
|
|
1
|
+
export { default as Box } from './Box';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Flex';
|
|
2
|
-
export { default as Flex } from './Flex';
|
|
1
|
+
export * from './Flex';
|
|
2
|
+
export { default as Flex } from './Flex';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Grid';
|
|
2
|
-
export { default as Grid } from './Grid';
|
|
1
|
+
export * from './Grid';
|
|
2
|
+
export { default as Grid } from './Grid';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './box';
|
|
2
|
-
export * from './flex';
|
|
3
|
-
export * from './grid';
|
|
4
|
-
export * from './pageContainer';
|
|
1
|
+
export * from './box';
|
|
2
|
+
export * from './flex';
|
|
3
|
+
export * from './grid';
|
|
4
|
+
export * from './pageContainer';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CSS } from '../config/stitches.config';
|
|
2
|
-
export
|
|
3
|
-
/**
|
|
4
|
-
* Change the component to the HTML tag or custom component of the only child.
|
|
5
|
-
* This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
6
|
-
*/
|
|
7
|
-
asChild?: boolean;
|
|
8
|
-
css?: CSS;
|
|
9
|
-
};
|
|
10
|
-
export
|
|
11
|
-
export
|
|
1
|
+
import { CSS } from '../config/stitches.config';
|
|
2
|
+
export type BaseRadixProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Change the component to the HTML tag or custom component of the only child.
|
|
5
|
+
* This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
|
|
6
|
+
*/
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
css?: CSS;
|
|
9
|
+
};
|
|
10
|
+
export type BaseRadixNoCss = Omit<BaseRadixProps, 'css'>;
|
|
11
|
+
export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NumericalSizingLiteral = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare function upload({ url, file, customBody, tokenKey, token, progress, reqKey, resKey, onError, onSuccess, onProgress, }: {
|
|
2
|
-
url: any;
|
|
3
|
-
file: any;
|
|
4
|
-
customBody: any;
|
|
5
|
-
tokenKey: any;
|
|
6
|
-
token: any;
|
|
7
|
-
progress: any;
|
|
8
|
-
reqKey: any;
|
|
9
|
-
resKey: any;
|
|
10
|
-
onError: any;
|
|
11
|
-
onSuccess: any;
|
|
12
|
-
onProgress: any;
|
|
13
|
-
}): Promise<unknown>;
|
|
14
|
-
export declare const catchError: (e: any) => string;
|
|
1
|
+
export declare function upload({ url, file, customBody, tokenKey, token, progress, reqKey, resKey, onError, onSuccess, onProgress, }: {
|
|
2
|
+
url: any;
|
|
3
|
+
file: any;
|
|
4
|
+
customBody: any;
|
|
5
|
+
tokenKey: any;
|
|
6
|
+
token: any;
|
|
7
|
+
progress: any;
|
|
8
|
+
reqKey: any;
|
|
9
|
+
resKey: any;
|
|
10
|
+
onError: any;
|
|
11
|
+
onSuccess: any;
|
|
12
|
+
onProgress: any;
|
|
13
|
+
}): Promise<unknown>;
|
|
14
|
+
export declare const catchError: (e: any) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useNavigatorOnLine: () => boolean;
|
|
2
|
-
export default useNavigatorOnLine;
|
|
1
|
+
declare const useNavigatorOnLine: () => boolean;
|
|
2
|
+
export default useNavigatorOnLine;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSS } from "../config/stitches.config";
|
|
2
|
-
import { NumericalSizingLiteral } from "../type/stitches.types";
|
|
3
|
-
export declare function seqNumberVariants(variantFn: (value: number) => CSS, max: number): Record<NumericalSizingLiteral, CSS>;
|
|
4
|
-
export declare const range1: (n: any, fromOne: any) => number[];
|
|
1
|
+
import { CSS } from "../config/stitches.config";
|
|
2
|
+
import { NumericalSizingLiteral } from "../type/stitches.types";
|
|
3
|
+
export declare function seqNumberVariants(variantFn: (value: number) => CSS, max: number): Record<NumericalSizingLiteral, CSS>;
|
|
4
|
+
export declare const range1: (n: any, fromOne: any) => number[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type * as Stitches from '@stitches/react';
|
|
3
|
-
import { CSS } from '../../config/stitches.config';
|
|
4
|
-
export declare const ButtonPrimitive: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
5
|
-
buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
|
|
6
|
-
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
7
|
-
iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
8
|
-
hidden?: boolean | "true" | undefined;
|
|
9
|
-
withIcon?: boolean | "true" | undefined;
|
|
10
|
-
mobileOnly?: boolean | "true" | undefined;
|
|
11
|
-
desktopOnly?: boolean | "true" | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
sm: "(min-width: 359px)";
|
|
14
|
-
md: "(min-width: 767px)";
|
|
15
|
-
lg: "(min-width: 1023px)";
|
|
16
|
-
xl: "(min-width: 1199px)";
|
|
17
|
-
'2xl': "(min-width: 1399px)";
|
|
18
|
-
'3xl': "(min-width: 1600px)";
|
|
19
|
-
}, import("@stitches/react/types/css-util").CSS<{
|
|
20
|
-
sm: "(min-width: 359px)";
|
|
21
|
-
md: "(min-width: 767px)";
|
|
22
|
-
lg: "(min-width: 1023px)";
|
|
23
|
-
xl: "(min-width: 1199px)";
|
|
24
|
-
'2xl': "(min-width: 1399px)";
|
|
25
|
-
'3xl': "(min-width: 1600px)";
|
|
26
|
-
}, {
|
|
27
|
-
colors: unknown;
|
|
28
|
-
space: unknown;
|
|
29
|
-
shadows: unknown;
|
|
30
|
-
fontSizes: unknown;
|
|
31
|
-
fonts: unknown;
|
|
32
|
-
lineHeights: unknown;
|
|
33
|
-
letterSpacings: unknown;
|
|
34
|
-
radii: unknown;
|
|
35
|
-
sizes: unknown;
|
|
36
|
-
zIndices: unknown;
|
|
37
|
-
toastPosition: unknown;
|
|
38
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
39
|
-
m: (value: {
|
|
40
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
41
|
-
}) => {
|
|
42
|
-
margin: {
|
|
43
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
mt: (value: {
|
|
47
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
48
|
-
}) => {
|
|
49
|
-
marginTop: {
|
|
50
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
mr: (value: {
|
|
54
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
55
|
-
}) => {
|
|
56
|
-
marginRight: {
|
|
57
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
mb: (value: {
|
|
61
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
62
|
-
}) => {
|
|
63
|
-
marginBottom: {
|
|
64
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
ml: (value: {
|
|
68
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
69
|
-
}) => {
|
|
70
|
-
marginLeft: {
|
|
71
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
mx: (value: {
|
|
75
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
76
|
-
}) => {
|
|
77
|
-
marginLeft: {
|
|
78
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
79
|
-
};
|
|
80
|
-
marginRight: {
|
|
81
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
my: (value: {
|
|
85
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
86
|
-
}) => {
|
|
87
|
-
marginTop: {
|
|
88
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
89
|
-
};
|
|
90
|
-
marginBottom: {
|
|
91
|
-
readonly [Stitches.$$ScaleValue]: "space";
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
size: (value: {
|
|
95
|
-
readonly [Stitches.$$PropertyValue]: "width";
|
|
96
|
-
}) => {
|
|
97
|
-
width: {
|
|
98
|
-
readonly [Stitches.$$PropertyValue]: "width";
|
|
99
|
-
};
|
|
100
|
-
height: {
|
|
101
|
-
readonly [Stitches.$$PropertyValue]: "width";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
subtleColor: (value: string) => {
|
|
105
|
-
color: string;
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
};
|
|
108
|
-
}>>;
|
|
109
|
-
interface AdditionalButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
110
|
-
/**
|
|
111
|
-
* Specify whether the button should be disabled, or not
|
|
112
|
-
*/
|
|
113
|
-
disabled?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Specify whether the button should be displayed as block and 100% width , or not
|
|
116
|
-
*/
|
|
117
|
-
block?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Specify the button width
|
|
120
|
-
*/
|
|
121
|
-
width?: string | number;
|
|
122
|
-
/**
|
|
123
|
-
* Specify the button left icon component
|
|
124
|
-
*/
|
|
125
|
-
leftIcon?: React.ReactNode;
|
|
126
|
-
/**
|
|
127
|
-
* Specify the button right icon component
|
|
128
|
-
*/
|
|
129
|
-
rightIcon?: React.ReactNode;
|
|
130
|
-
/**
|
|
131
|
-
* Specify whether the Button children is icon only , or not
|
|
132
|
-
*/
|
|
133
|
-
icon?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Additional css styles
|
|
136
|
-
*/
|
|
137
|
-
css?: CSS;
|
|
138
|
-
/**
|
|
139
|
-
* If the condition is true, the button will only be displayed in mobile view
|
|
140
|
-
*/
|
|
141
|
-
mobileOnly?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* If the condition is true, the button will only be displayed in desktop view
|
|
144
|
-
*/
|
|
145
|
-
desktopOnly?: boolean;
|
|
146
|
-
}
|
|
147
|
-
export declare const Button: React.ForwardRefExoticComponent<import("@stitches/react/types/styled-component").TransformProps<{
|
|
148
|
-
buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
|
|
149
|
-
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
150
|
-
iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
151
|
-
hidden?: boolean | "true" | undefined;
|
|
152
|
-
withIcon?: boolean | "true" | undefined;
|
|
153
|
-
mobileOnly?: boolean | "true" | undefined;
|
|
154
|
-
desktopOnly?: boolean | "true" | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
sm: "(min-width: 359px)";
|
|
157
|
-
md: "(min-width: 767px)";
|
|
158
|
-
lg: "(min-width: 1023px)";
|
|
159
|
-
xl: "(min-width: 1199px)";
|
|
160
|
-
'2xl': "(min-width: 1399px)";
|
|
161
|
-
'3xl': "(min-width: 1600px)";
|
|
162
|
-
}> & AdditionalButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
163
|
-
export default Button;
|