@majoo-ui/react 1.61.24 → 1.61.25-rc.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.
Files changed (133) hide show
  1. package/index.d.ts +1 -5
  2. package/index.esm.js +24547 -26991
  3. package/package.json +4 -4
  4. package/{colors → src/colors}/index.d.ts +1 -1
  5. package/{components → src/components}/accordion/Accordion.d.ts +35 -35
  6. package/{components → src/components}/accordion/index.d.ts +1 -1
  7. package/{components → src/components}/barChart/BarChart.d.ts +82 -82
  8. package/{components → src/components}/barChart/index.d.ts +1 -1
  9. package/{components → src/components}/breadcrumb/index.d.ts +7 -7
  10. package/{components → src/components}/button/index.d.ts +2 -2
  11. package/{components → src/components}/card/index.d.ts +2 -2
  12. package/{components → src/components}/chart/index.d.ts +1 -1
  13. package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
  14. package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
  15. package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
  16. package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
  17. package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
  18. package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
  19. package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
  20. package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
  21. package/{components → src/components}/chart/utils/index.d.ts +18 -18
  22. package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
  23. package/{components → src/components}/checkboxTable/index.d.ts +1 -1
  24. package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
  25. package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
  26. package/{components → src/components}/contentEditor/index.d.ts +1 -1
  27. package/{components → src/components}/contextMenu/index.d.ts +1 -1
  28. package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
  29. package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
  30. package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
  31. package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
  32. package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
  33. package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
  34. package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
  35. package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
  36. package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
  37. package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
  38. package/{components → src/components}/datePicker/components/index.d.ts +6 -6
  39. package/{components → src/components}/datePicker/index.d.ts +7 -7
  40. package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
  41. package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
  42. package/{components → src/components}/devicePreview/index.d.ts +2 -2
  43. package/{components → src/components}/dialog/index.d.ts +2 -2
  44. package/{components → src/components}/editableTable/Columns.d.ts +59 -59
  45. package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
  46. package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
  47. package/{components → src/components}/editableTable/faker.d.ts +16 -16
  48. package/{components → src/components}/editableTable/index.d.ts +2 -2
  49. package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
  50. package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
  51. package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
  52. package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
  53. package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
  54. package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
  55. package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
  56. package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
  57. package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
  58. package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
  59. package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
  60. package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
  61. package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
  62. package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
  63. package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
  64. package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
  65. package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
  66. package/{components → src/components}/form/components/index.d.ts +27 -27
  67. package/{components → src/components}/form/index.d.ts +1 -1
  68. package/{components → src/components}/heading/index.d.ts +2 -2
  69. package/{components → src/components}/image/index.d.ts +2 -2
  70. package/{components → src/components}/index.d.ts +53 -53
  71. package/{components → src/components}/link/index.d.ts +1 -1
  72. package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
  73. package/{components → src/components}/loadingBar/index.d.ts +1 -1
  74. package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
  75. package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
  76. package/{components → src/components}/mapPicker/index.d.ts +2 -2
  77. package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
  78. package/{components → src/components}/modalDialog/index.d.ts +2 -2
  79. package/{components → src/components}/pageDialog/index.d.ts +1 -1
  80. package/{components → src/components}/paragraph/index.d.ts +2 -2
  81. package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
  82. package/{components → src/components}/pieChart/index.d.ts +1 -1
  83. package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
  84. package/{components → src/components}/progressIndicator/index.d.ts +1 -1
  85. package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
  86. package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
  87. package/{components → src/components}/scrollSync/index.d.ts +2 -2
  88. package/{components → src/components}/scrollSync/utils.d.ts +3 -3
  89. package/{components → src/components}/separator/index.d.ts +2 -2
  90. package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
  91. package/{components → src/components}/skeleton/index.d.ts +1 -1
  92. package/{components → src/components}/stepWizard/index.d.ts +45 -45
  93. package/{components → src/components}/table/MobileTable.d.ts +39 -39
  94. package/{components → src/components}/table/index.d.ts +3 -3
  95. package/{components → src/components}/tableOfContent/index.d.ts +57 -57
  96. package/{components → src/components}/tagList/TagList.d.ts +21 -21
  97. package/{components → src/components}/tagList/index.d.ts +1 -1
  98. package/{components → src/components}/text/index.d.ts +2 -2
  99. package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
  100. package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
  101. package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
  102. package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
  103. package/{foundations → src/foundations}/space/Space.d.ts +2 -2
  104. package/{hooks → src/hooks}/index.d.ts +2 -2
  105. package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
  106. package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
  107. package/src/index.d.ts +5 -0
  108. package/{layout → src/layout}/box/index.d.ts +1 -1
  109. package/{layout → src/layout}/flex/index.d.ts +2 -2
  110. package/{layout → src/layout}/grid/index.d.ts +2 -2
  111. package/{layout → src/layout}/index.d.ts +4 -4
  112. package/{type → src/type}/base.types.d.ts +11 -11
  113. package/src/type/stitches.types.d.ts +1 -0
  114. package/{utils → src/utils}/request.d.ts +14 -14
  115. package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
  116. package/{utils → src/utils}/variant.d.ts +4 -4
  117. package/components/alert-backup/index.backup.d.ts +0 -1
  118. package/components/button/Button.d.ts +0 -163
  119. package/components/card/Card.d.ts +0 -531
  120. package/components/contextMenu/ContextMenu.d.ts +0 -404
  121. package/components/datePicker/components/DateNumber.d.ts +0 -104
  122. package/components/devicePreview/DevicePreview.d.ts +0 -161
  123. package/components/dialog/Dialog.d.ts +0 -402
  124. package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
  125. package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
  126. package/components/heading/Heading.d.ts +0 -100
  127. package/components/link/Link.d.ts +0 -109
  128. package/components/modalDialog/ModalDialog.d.ts +0 -836
  129. package/components/pageDialog/PageDialog.d.ts +0 -810
  130. package/components/table/Table.d.ts +0 -1529
  131. package/config/stitches.config.d.ts +0 -645
  132. package/foundations/typography/Typography.d.ts +0 -396
  133. package/type/stitches.types.d.ts +0 -1
@@ -1,100 +1,100 @@
1
- /// <reference types="react" />
2
- import { LabelProps } from 'recharts';
3
- import { CSS } from '../../config/stitches.config';
4
- import './styles.css';
5
- interface PieChartData {
6
- name: string;
7
- total: number;
8
- color: string;
9
- }
10
- interface PieChartLegend {
11
- show?: boolean;
12
- showTotal?: boolean;
13
- position?: 'right' | 'bottom' | 'left';
14
- height?: number;
15
- }
16
- interface PieChartTooltip {
17
- label?: (number: any) => string;
18
- render?: () => JSX.Element;
19
- }
20
- interface PieChartLabel {
21
- show?: boolean;
22
- dataKey?: string;
23
- position?: LabelProps['position'];
24
- formatter?: (string: any) => string;
25
- render?: (any: any) => JSX.Element;
26
- }
27
- interface PieChartProps {
28
- /**
29
- * Section title of the chart.
30
- */
31
- title?: string;
32
- /**
33
- * Subtitle of the chart.
34
- */
35
- subtitle?: string;
36
- /**
37
- * Datasets of the chart.
38
- */
39
- data: PieChartData[];
40
- /**
41
- * Additional css property.
42
- */
43
- css?: CSS;
44
- /**
45
- * Avatar url address.
46
- */
47
- avatarURL?: string;
48
- /**
49
- * Acronym text if avatar not valid.
50
- */
51
- avatarAcronym?: string;
52
- /**
53
- * Validitiy of avatar.
54
- */
55
- validAvatar?: boolean;
56
- /**
57
- * Datasets of chart legend.
58
- */
59
- legend?: PieChartLegend;
60
- /**
61
- * Responsive state.
62
- */
63
- isMobile?: boolean;
64
- /**
65
- * Customize tooltip label.
66
- */
67
- tooltip?: PieChartTooltip;
68
- /**
69
- * Label config of chart.
70
- */
71
- label?: PieChartLabel;
72
- /**
73
- * Custom outer radius size.
74
- */
75
- outerRadius?: number;
76
- /**
77
- * Custom inner radius size.
78
- */
79
- innerRadius?: number;
80
- }
81
- declare const PieChartComponent: {
82
- ({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, outerRadius, innerRadius, }: PieChartProps): JSX.Element;
83
- defaultProps: {
84
- data: never[];
85
- avatarURL: undefined;
86
- avatarAcronym: string;
87
- validAvatar: boolean;
88
- legend: {
89
- show: boolean;
90
- showTotal: boolean;
91
- data: never[];
92
- position: string;
93
- height: number;
94
- };
95
- isMobile: boolean;
96
- outerRadius: number;
97
- innerRadius: number;
98
- };
99
- };
100
- export default PieChartComponent;
1
+ /// <reference types="react" />
2
+ import { LabelProps } from 'recharts';
3
+ import { CSS } from '../../config/stitches.config';
4
+ import './styles.css';
5
+ interface PieChartData {
6
+ name: string;
7
+ total: number;
8
+ color: string;
9
+ }
10
+ interface PieChartLegend {
11
+ show?: boolean;
12
+ showTotal?: boolean;
13
+ position?: 'right' | 'bottom' | 'left';
14
+ height?: number;
15
+ }
16
+ interface PieChartTooltip {
17
+ label?: (number: any) => string;
18
+ render?: () => JSX.Element;
19
+ }
20
+ interface PieChartLabel {
21
+ show?: boolean;
22
+ dataKey?: string;
23
+ position?: LabelProps['position'];
24
+ formatter?: (string: any) => string;
25
+ render?: (any: any) => JSX.Element;
26
+ }
27
+ interface PieChartProps {
28
+ /**
29
+ * Section title of the chart.
30
+ */
31
+ title?: string;
32
+ /**
33
+ * Subtitle of the chart.
34
+ */
35
+ subtitle?: string;
36
+ /**
37
+ * Datasets of the chart.
38
+ */
39
+ data: PieChartData[];
40
+ /**
41
+ * Additional css property.
42
+ */
43
+ css?: CSS;
44
+ /**
45
+ * Avatar url address.
46
+ */
47
+ avatarURL?: string;
48
+ /**
49
+ * Acronym text if avatar not valid.
50
+ */
51
+ avatarAcronym?: string;
52
+ /**
53
+ * Validitiy of avatar.
54
+ */
55
+ validAvatar?: boolean;
56
+ /**
57
+ * Datasets of chart legend.
58
+ */
59
+ legend?: PieChartLegend;
60
+ /**
61
+ * Responsive state.
62
+ */
63
+ isMobile?: boolean;
64
+ /**
65
+ * Customize tooltip label.
66
+ */
67
+ tooltip?: PieChartTooltip;
68
+ /**
69
+ * Label config of chart.
70
+ */
71
+ label?: PieChartLabel;
72
+ /**
73
+ * Custom outer radius size.
74
+ */
75
+ outerRadius?: number;
76
+ /**
77
+ * Custom inner radius size.
78
+ */
79
+ innerRadius?: number;
80
+ }
81
+ declare const PieChartComponent: {
82
+ ({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, outerRadius, innerRadius, }: PieChartProps): JSX.Element;
83
+ defaultProps: {
84
+ data: never[];
85
+ avatarURL: undefined;
86
+ avatarAcronym: string;
87
+ validAvatar: boolean;
88
+ legend: {
89
+ show: boolean;
90
+ showTotal: boolean;
91
+ data: never[];
92
+ position: string;
93
+ height: number;
94
+ };
95
+ isMobile: boolean;
96
+ outerRadius: number;
97
+ innerRadius: number;
98
+ };
99
+ };
100
+ export default PieChartComponent;
@@ -1 +1 @@
1
- export { default as PieChart } from './PieChart';
1
+ export { default as PieChart } from './PieChart';
@@ -1,17 +1,17 @@
1
- import React from 'react';
2
- interface ProgressListData {
3
- progress: number;
4
- title?: string | (() => HTMLElement | React.ReactElement | JSX.Element);
5
- icon?: React.ReactElement | undefined;
6
- render?: () => JSX.Element | JSX.Element;
7
- }
8
- interface ProgressIndicatorProps {
9
- direction?: 'horizontal' | 'vertical';
10
- progress: number;
11
- progressError?: number;
12
- progressList: ProgressListData[];
13
- width?: number;
14
- gap?: number;
15
- }
16
- export default function ProgressIndicator(props: ProgressIndicatorProps): JSX.Element;
17
- export {};
1
+ import React from 'react';
2
+ interface ProgressListData {
3
+ progress: number;
4
+ title?: string | (() => HTMLElement | React.ReactElement | JSX.Element);
5
+ icon?: React.ReactElement | undefined;
6
+ render?: () => JSX.Element | JSX.Element;
7
+ }
8
+ interface ProgressIndicatorProps {
9
+ direction?: 'horizontal' | 'vertical';
10
+ progress: number;
11
+ progressError?: number;
12
+ progressList: ProgressListData[];
13
+ width?: number;
14
+ gap?: number;
15
+ }
16
+ export default function ProgressIndicator(props: ProgressIndicatorProps): JSX.Element;
17
+ export {};
@@ -1 +1 @@
1
- export { default as ProgressIndicator } from './ProgressIndicator';
1
+ export { default as ProgressIndicator } from './ProgressIndicator';
@@ -1,45 +1,45 @@
1
- import React, { FC } from 'react';
2
- import { ScrollConfig } from './ScrollSyncNode';
3
- export interface ScrollSyncProps {
4
- children: React.ReactNode;
5
- /**syncing enable control */
6
- disabled?: boolean;
7
- /** In case we want scroll to be proportionally applied regardless of the width and/or height*/
8
- proportional?: boolean;
9
- }
10
- /**
11
- * node should be scrollable
12
- */
13
- declare type Node = (EventTarget & HTMLElement) | null;
14
- /**
15
- * node should be scrollable
16
- */
17
- interface SyncableElement {
18
- node: Node;
19
- scroll: ScrollConfig;
20
- }
21
- interface ScrollingSyncerContextValues {
22
- /**
23
- * register node to be synced with other scrolled nodes
24
- */
25
- registerNode: (node: SyncableElement, groups: string[]) => void;
26
- /**
27
- * unregister node to stop syncing with other scrolled nodes
28
- */
29
- unregisterNode: (node: SyncableElement, group: string[]) => void;
30
- /**
31
- * scroll handler for each node.onScroll
32
- */
33
- onScroll: (e: React.UIEvent<HTMLElement>, groups: string[]) => void;
34
- }
35
- /**
36
- * ScrollingSyncerContext is the context to be handling scrolled nodes
37
- */
38
- export declare const ScrollingSyncerContext: React.Context<ScrollingSyncerContextValues>;
39
- /**
40
- * ScrollSync component is a context based component,
41
- * that wrappes children to be .Provided with context utils and eventsHandlers
42
- * @param props ScrollSyncProps
43
- */
44
- export declare const ScrollSync: FC<ScrollSyncProps>;
45
- export default ScrollSync;
1
+ import React, { FC } from 'react';
2
+ import { ScrollConfig } from './ScrollSyncNode';
3
+ export interface ScrollSyncProps {
4
+ children: React.ReactNode;
5
+ /**syncing enable control */
6
+ disabled?: boolean;
7
+ /** In case we want scroll to be proportionally applied regardless of the width and/or height*/
8
+ proportional?: boolean;
9
+ }
10
+ /**
11
+ * node should be scrollable
12
+ */
13
+ type Node = (EventTarget & HTMLElement) | null;
14
+ /**
15
+ * node should be scrollable
16
+ */
17
+ interface SyncableElement {
18
+ node: Node;
19
+ scroll: ScrollConfig;
20
+ }
21
+ interface ScrollingSyncerContextValues {
22
+ /**
23
+ * register node to be synced with other scrolled nodes
24
+ */
25
+ registerNode: (node: SyncableElement, groups: string[]) => void;
26
+ /**
27
+ * unregister node to stop syncing with other scrolled nodes
28
+ */
29
+ unregisterNode: (node: SyncableElement, group: string[]) => void;
30
+ /**
31
+ * scroll handler for each node.onScroll
32
+ */
33
+ onScroll: (e: React.UIEvent<HTMLElement>, groups: string[]) => void;
34
+ }
35
+ /**
36
+ * ScrollingSyncerContext is the context to be handling scrolled nodes
37
+ */
38
+ export declare const ScrollingSyncerContext: React.Context<ScrollingSyncerContextValues>;
39
+ /**
40
+ * ScrollSync component is a context based component,
41
+ * that wrappes children to be .Provided with context utils and eventsHandlers
42
+ * @param props ScrollSyncProps
43
+ */
44
+ export declare const ScrollSync: FC<ScrollSyncProps>;
45
+ export default ScrollSync;
@@ -1,32 +1,32 @@
1
- import React from 'react';
2
- /**
3
- * ScrollSyncNode Component
4
- *
5
- * Wrap your content in it to keep its scroll position in sync with other panes
6
- */
7
- export declare type ScrollConfig = 'all' | 'vertical-only' | 'horizontal-only';
8
- export declare type LockAxis = 'X' | 'Y' | 'XY' | null;
9
- interface ScrollSyncNodeProps {
10
- /**
11
- * Children
12
- */
13
- children: React.ReactElement;
14
- /**
15
- * Groups to make the children attached to
16
- */
17
- group?: string | string[];
18
- /**
19
- * If the scrolling is enabled or not
20
- */
21
- scroll?: ScrollConfig;
22
- /**
23
- * Prevent scroll on current node if axis is locked
24
- */
25
- selfLockAxis?: LockAxis;
26
- /**
27
- * Callback for scroll handling
28
- */
29
- onScroll?: (e: React.UIEvent<HTMLElement>) => void;
30
- }
31
- export declare const ScrollSyncNode: React.ForwardRefExoticComponent<ScrollSyncNodeProps & React.RefAttributes<EventTarget & HTMLElement>>;
32
- export default ScrollSyncNode;
1
+ import React from 'react';
2
+ /**
3
+ * ScrollSyncNode Component
4
+ *
5
+ * Wrap your content in it to keep its scroll position in sync with other panes
6
+ */
7
+ export type ScrollConfig = 'all' | 'vertical-only' | 'horizontal-only';
8
+ export type LockAxis = 'X' | 'Y' | 'XY' | null;
9
+ interface ScrollSyncNodeProps {
10
+ /**
11
+ * Children
12
+ */
13
+ children: React.ReactElement;
14
+ /**
15
+ * Groups to make the children attached to
16
+ */
17
+ group?: string | string[];
18
+ /**
19
+ * If the scrolling is enabled or not
20
+ */
21
+ scroll?: ScrollConfig;
22
+ /**
23
+ * Prevent scroll on current node if axis is locked
24
+ */
25
+ selfLockAxis?: LockAxis;
26
+ /**
27
+ * Callback for scroll handling
28
+ */
29
+ onScroll?: (e: React.UIEvent<HTMLElement>) => void;
30
+ }
31
+ export declare const ScrollSyncNode: React.ForwardRefExoticComponent<ScrollSyncNodeProps & React.RefAttributes<EventTarget & HTMLElement>>;
32
+ export default ScrollSyncNode;
@@ -1,2 +1,2 @@
1
- export { default as ScrollSync } from './ScrollSync';
2
- export { default as ScrollSyncNode } from './ScrollSyncNode';
1
+ export { default as ScrollSync } from './ScrollSync';
2
+ export { default as ScrollSyncNode } from './ScrollSyncNode';
@@ -1,3 +1,3 @@
1
- import { LockAxis } from "./ScrollSyncNode";
2
- export declare const toArray: (groups: string | string[]) => string[];
3
- export declare const getMovingAxis: (e: WheelEvent) => LockAxis;
1
+ import { LockAxis } from "./ScrollSyncNode";
2
+ export declare const toArray: (groups: string | string[]) => string[];
3
+ export declare const getMovingAxis: (e: WheelEvent) => LockAxis;
@@ -1,2 +1,2 @@
1
- export * from './Separator';
2
- export { default as Separator } from './Separator';
1
+ export * from './Separator';
2
+ export { default as Separator } from './Separator';
@@ -1,19 +1,19 @@
1
- /// <reference types="react" />
2
- import { CSS } from '../../config/stitches.config';
3
- import 'react-loading-skeleton/dist/skeleton.css';
4
- interface SkeletonProps {
5
- css?: CSS;
6
- variant?: 'group' | 'single';
7
- color?: 'primary' | 'secondary';
8
- width?: string | number;
9
- patternCount?: number;
10
- }
11
- declare function Skeleton(props: SkeletonProps): JSX.Element;
12
- declare namespace Skeleton {
13
- var defaultProps: {
14
- variant: string;
15
- color: string;
16
- width: string;
17
- };
18
- }
19
- export default Skeleton;
1
+ /// <reference types="react" />
2
+ import { CSS } from '../../config/stitches.config';
3
+ import 'react-loading-skeleton/dist/skeleton.css';
4
+ interface SkeletonProps {
5
+ css?: CSS;
6
+ variant?: 'group' | 'single';
7
+ color?: 'primary' | 'secondary';
8
+ width?: string | number;
9
+ patternCount?: number;
10
+ }
11
+ declare function Skeleton(props: SkeletonProps): JSX.Element;
12
+ declare namespace Skeleton {
13
+ var defaultProps: {
14
+ variant: string;
15
+ color: string;
16
+ width: string;
17
+ };
18
+ }
19
+ export default Skeleton;
@@ -1 +1 @@
1
- export { default as Skeleton } from './Skeleton';
1
+ export { default as Skeleton } from './Skeleton';
@@ -1,45 +1,45 @@
1
- import * as React from 'react';
2
- import type * as Stitches from '@stitches/react';
3
- declare type DataContents = {
4
- title: string;
5
- withTolltip?: boolean;
6
- tooltipsContents?: string;
7
- hidden: boolean;
8
- };
9
- declare type Transitions = {
10
- enterRight?: string;
11
- enterLeft?: string;
12
- exitRight?: string;
13
- exitLeft?: string;
14
- intro?: string;
15
- };
16
- interface IStepWizardProps {
17
- initialStep: number;
18
- navContents: Array<DataContents>;
19
- isMobile?: boolean;
20
- cssNav?: Stitches.CSS;
21
- children: React.ReactNode;
22
- transitions?: Transitions;
23
- onStepChange?: (stepChange: {
24
- prevStep: number;
25
- activeStep: number;
26
- }) => void;
27
- setSw: () => void;
28
- scrollTop?: boolean;
29
- forbidClickNav: boolean;
30
- hide?: boolean;
31
- onChangeVisibility?: (isHide: boolean) => void;
32
- onNavClicked?: () => void;
33
- hideCheckedIcon?: boolean;
34
- appendContent?: JSX.Element;
35
- isLazyMount?: boolean;
36
- }
37
- declare const StepWizard: {
38
- (props: IStepWizardProps): JSX.Element;
39
- defaultProps: {
40
- isLazyMount: boolean;
41
- };
42
- };
43
- export default StepWizard;
44
- export { StepWizardContext } from './StepWizard';
45
- export { StepWizard };
1
+ import * as React from 'react';
2
+ import type * as Stitches from '@stitches/react';
3
+ type DataContents = {
4
+ title: string;
5
+ withTolltip?: boolean;
6
+ tooltipsContents?: string;
7
+ hidden: boolean;
8
+ };
9
+ type Transitions = {
10
+ enterRight?: string;
11
+ enterLeft?: string;
12
+ exitRight?: string;
13
+ exitLeft?: string;
14
+ intro?: string;
15
+ };
16
+ interface IStepWizardProps {
17
+ initialStep: number;
18
+ navContents: Array<DataContents>;
19
+ isMobile?: boolean;
20
+ cssNav?: Stitches.CSS;
21
+ children: React.ReactNode;
22
+ transitions?: Transitions;
23
+ onStepChange?: (stepChange: {
24
+ prevStep: number;
25
+ activeStep: number;
26
+ }) => void;
27
+ setSw: () => void;
28
+ scrollTop?: boolean;
29
+ forbidClickNav: boolean;
30
+ hide?: boolean;
31
+ onChangeVisibility?: (isHide: boolean) => void;
32
+ onNavClicked?: () => void;
33
+ hideCheckedIcon?: boolean;
34
+ appendContent?: JSX.Element;
35
+ isLazyMount?: boolean;
36
+ }
37
+ declare const StepWizard: {
38
+ (props: IStepWizardProps): JSX.Element;
39
+ defaultProps: {
40
+ isLazyMount: boolean;
41
+ };
42
+ };
43
+ export default StepWizard;
44
+ export { StepWizardContext } from './StepWizard';
45
+ export { StepWizard };
@@ -1,39 +1,39 @@
1
- import React from 'react';
2
- import { CSS } from '../../config/stitches.config';
3
- import { EmptyDataProps, RowGroup, Decoration } from './Table';
4
- import { TableInstance } from 'react-table';
5
- interface CustomRowsStyle {
6
- predicate: boolean;
7
- css?: CSS;
8
- hideRowMenuColumn?: boolean;
9
- }
10
- interface IRowVirtualizer {
11
- virtualItems: {
12
- start: number;
13
- end: number;
14
- }[];
15
- totalSize: number;
16
- }
17
- interface MobileTableProps {
18
- instance: TableInstance<object>;
19
- totalData: number;
20
- isInfiniteScroll: boolean;
21
- footer: JSX.Element;
22
- infiniteScrollWrapper: (children: JSX.Element) => JSX.Element;
23
- isLoading: boolean;
24
- customEmptyDataProps: EmptyDataProps;
25
- rowGroup?: RowGroup;
26
- hiddenColumns?: string[];
27
- css?: CSS;
28
- customRowsStyle?: (e: any) => CustomRowsStyle[];
29
- cellAlign?: 'top' | 'center' | 'bottom';
30
- renderContextMenu: () => JSX.Element;
31
- handleRowClick: (row: object, index: number) => void;
32
- additionalExceptionIds: string[];
33
- hideHeader?: boolean;
34
- decoration?: Decoration;
35
- rowVirtualizer: IRowVirtualizer;
36
- virtualized?: boolean;
37
- }
38
- declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
39
- export default MobileTable;
1
+ import React from 'react';
2
+ import { CSS } from '../../config/stitches.config';
3
+ import { EmptyDataProps, RowGroup, Decoration } from './Table';
4
+ import { TableInstance } from 'react-table';
5
+ interface CustomRowsStyle {
6
+ predicate: boolean;
7
+ css?: CSS;
8
+ hideRowMenuColumn?: boolean;
9
+ }
10
+ interface IRowVirtualizer {
11
+ virtualItems: {
12
+ start: number;
13
+ end: number;
14
+ }[];
15
+ totalSize: number;
16
+ }
17
+ interface MobileTableProps {
18
+ instance: TableInstance<object>;
19
+ totalData: number;
20
+ isInfiniteScroll: boolean;
21
+ footer: JSX.Element;
22
+ infiniteScrollWrapper: (children: JSX.Element) => JSX.Element;
23
+ isLoading: boolean;
24
+ customEmptyDataProps: EmptyDataProps;
25
+ rowGroup?: RowGroup;
26
+ hiddenColumns?: string[];
27
+ css?: CSS;
28
+ customRowsStyle?: (e: any) => CustomRowsStyle[];
29
+ cellAlign?: 'top' | 'center' | 'bottom';
30
+ renderContextMenu: () => JSX.Element;
31
+ handleRowClick: (row: object, index: number) => void;
32
+ additionalExceptionIds: string[];
33
+ hideHeader?: boolean;
34
+ decoration?: Decoration;
35
+ rowVirtualizer: IRowVirtualizer;
36
+ virtualized?: boolean;
37
+ }
38
+ declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
39
+ export default MobileTable;
@@ -1,3 +1,3 @@
1
- export * from './Table';
2
- export * from './components';
3
- export { default as MobileTable } from './MobileTable';
1
+ export * from './Table';
2
+ export * from './components';
3
+ export { default as MobileTable } from './MobileTable';