@majoo-ui/react 1.49.3-rc.5 → 1.50.1-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.
- package/README.md +7 -7
- package/components/form/components/InputCounter/InputCounter.d.ts +34 -0
- package/components/form/components/InputCounter/index.d.ts +2 -0
- package/components/form/components/index.d.ts +1 -0
- package/components/pageDialog/PageDialog.d.ts +8 -8
- package/components/stepWizard/index.d.ts +2 -0
- package/components/table/Table.d.ts +203 -0
- package/{index.esm.css → index.css} +247 -247
- package/{index.esm.js → index.js} +1285 -5019
- package/package.json +5 -7
- package/index.umd.css +0 -248
- package/index.umd.js +0 -30838
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
React
|
|
2
|
-
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
4
|
-
|
|
5
|
-
Running unit tests
|
|
6
|
-
|
|
7
|
-
Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
|
|
1
|
+
React
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
Running unit tests
|
|
6
|
+
|
|
7
|
+
Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../../../../config/stitches.config';
|
|
3
|
+
interface CounterProps {
|
|
4
|
+
/**
|
|
5
|
+
* Counter value.
|
|
6
|
+
*/
|
|
7
|
+
value?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Change event handler.
|
|
10
|
+
*/
|
|
11
|
+
onChange?: (e: number) => void;
|
|
12
|
+
/**
|
|
13
|
+
* minimum value of a counter.
|
|
14
|
+
*/
|
|
15
|
+
min?: number;
|
|
16
|
+
/**
|
|
17
|
+
* maximum value of a counter.
|
|
18
|
+
*/
|
|
19
|
+
max?: number;
|
|
20
|
+
/**
|
|
21
|
+
* allow counter to return negative value.
|
|
22
|
+
*/
|
|
23
|
+
allowNegative?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* disabled state of a counter.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Additional css style.
|
|
30
|
+
*/
|
|
31
|
+
css?: CSS;
|
|
32
|
+
}
|
|
33
|
+
declare const InputCounter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<unknown>>;
|
|
34
|
+
export default InputCounter;
|
|
@@ -54,7 +54,7 @@ export declare const PageDialogFooter: import("@stitches/react/types/styled-comp
|
|
|
54
54
|
}) => {
|
|
55
55
|
marginBottom: {
|
|
56
56
|
readonly [$$ScaleValue]: "space";
|
|
57
|
-
};
|
|
57
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
58
58
|
};
|
|
59
59
|
ml: (value: {
|
|
60
60
|
readonly [$$ScaleValue]: "space";
|
|
@@ -150,7 +150,7 @@ export declare const PageDialogTitle: import("@stitches/react/types/styled-compo
|
|
|
150
150
|
}) => {
|
|
151
151
|
marginBottom: {
|
|
152
152
|
readonly [$$ScaleValue]: "space";
|
|
153
|
-
};
|
|
153
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
154
154
|
};
|
|
155
155
|
ml: (value: {
|
|
156
156
|
readonly [$$ScaleValue]: "space";
|
|
@@ -246,7 +246,7 @@ export declare const PageDialogContent: import("@stitches/react/types/styled-com
|
|
|
246
246
|
}) => {
|
|
247
247
|
marginBottom: {
|
|
248
248
|
readonly [$$ScaleValue]: "space";
|
|
249
|
-
};
|
|
249
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
250
250
|
};
|
|
251
251
|
ml: (value: {
|
|
252
252
|
readonly [$$ScaleValue]: "space";
|
|
@@ -342,7 +342,7 @@ export declare const PageDialogTrigger: import("@stitches/react/types/styled-com
|
|
|
342
342
|
}) => {
|
|
343
343
|
marginBottom: {
|
|
344
344
|
readonly [$$ScaleValue]: "space";
|
|
345
|
-
};
|
|
345
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
346
346
|
};
|
|
347
347
|
ml: (value: {
|
|
348
348
|
readonly [$$ScaleValue]: "space";
|
|
@@ -467,7 +467,7 @@ export declare const PageDialog: {
|
|
|
467
467
|
}) => {
|
|
468
468
|
marginBottom: {
|
|
469
469
|
readonly [$$ScaleValue]: "space";
|
|
470
|
-
};
|
|
470
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
471
471
|
};
|
|
472
472
|
ml: (value: {
|
|
473
473
|
readonly [$$ScaleValue]: "space";
|
|
@@ -563,7 +563,7 @@ export declare const PageDialog: {
|
|
|
563
563
|
}) => {
|
|
564
564
|
marginBottom: {
|
|
565
565
|
readonly [$$ScaleValue]: "space";
|
|
566
|
-
};
|
|
566
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
567
567
|
};
|
|
568
568
|
ml: (value: {
|
|
569
569
|
readonly [$$ScaleValue]: "space";
|
|
@@ -659,7 +659,7 @@ export declare const PageDialog: {
|
|
|
659
659
|
}) => {
|
|
660
660
|
marginBottom: {
|
|
661
661
|
readonly [$$ScaleValue]: "space";
|
|
662
|
-
};
|
|
662
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
663
663
|
};
|
|
664
664
|
ml: (value: {
|
|
665
665
|
readonly [$$ScaleValue]: "space";
|
|
@@ -755,7 +755,7 @@ export declare const PageDialog: {
|
|
|
755
755
|
}) => {
|
|
756
756
|
marginBottom: {
|
|
757
757
|
readonly [$$ScaleValue]: "space";
|
|
758
|
-
};
|
|
758
|
+
}; /** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
759
759
|
};
|
|
760
760
|
ml: (value: {
|
|
761
761
|
readonly [$$ScaleValue]: "space";
|
|
@@ -27,6 +27,8 @@ interface IStepWizardProps {
|
|
|
27
27
|
setSw: () => void;
|
|
28
28
|
scrollTop?: boolean;
|
|
29
29
|
forbidClickNav: boolean;
|
|
30
|
+
hide?: boolean;
|
|
31
|
+
onChangeVisibility?: (isHide: boolean) => void;
|
|
30
32
|
}
|
|
31
33
|
declare const StepWizard: (props: IStepWizardProps) => JSX.Element;
|
|
32
34
|
export default StepWizard;
|
|
@@ -584,6 +584,203 @@ export declare const TableBody: import("@stitches/react/types/styled-component")
|
|
|
584
584
|
backgroundColor: string;
|
|
585
585
|
};
|
|
586
586
|
}>>;
|
|
587
|
+
export declare const TableRow: import("@stitches/react/types/styled-component").StyledComponent<"tr", {
|
|
588
|
+
subRow?: boolean | "true" | undefined;
|
|
589
|
+
}, {
|
|
590
|
+
sm: "(min-width: 359px)";
|
|
591
|
+
md: "(min-width: 767px)";
|
|
592
|
+
lg: "(min-width: 1023px)";
|
|
593
|
+
xl: "(min-width: 1199px)";
|
|
594
|
+
'2xl': "(min-width: 1399px)";
|
|
595
|
+
'3xl': "(min-width: 1600px)";
|
|
596
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
597
|
+
sm: "(min-width: 359px)";
|
|
598
|
+
md: "(min-width: 767px)";
|
|
599
|
+
lg: "(min-width: 1023px)";
|
|
600
|
+
xl: "(min-width: 1199px)";
|
|
601
|
+
'2xl': "(min-width: 1399px)";
|
|
602
|
+
'3xl': "(min-width: 1600px)";
|
|
603
|
+
}, {
|
|
604
|
+
colors: unknown;
|
|
605
|
+
space: unknown;
|
|
606
|
+
shadows: unknown;
|
|
607
|
+
fontSizes: unknown;
|
|
608
|
+
fonts: unknown;
|
|
609
|
+
lineHeights: unknown;
|
|
610
|
+
letterSpacings: unknown;
|
|
611
|
+
radii: unknown;
|
|
612
|
+
sizes: unknown;
|
|
613
|
+
zIndices: unknown;
|
|
614
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
615
|
+
m: (value: {
|
|
616
|
+
readonly [$$ScaleValue]: "space";
|
|
617
|
+
}) => {
|
|
618
|
+
margin: {
|
|
619
|
+
readonly [$$ScaleValue]: "space";
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
mt: (value: {
|
|
623
|
+
readonly [$$ScaleValue]: "space";
|
|
624
|
+
}) => {
|
|
625
|
+
marginTop: {
|
|
626
|
+
readonly [$$ScaleValue]: "space";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
mr: (value: {
|
|
630
|
+
readonly [$$ScaleValue]: "space";
|
|
631
|
+
}) => {
|
|
632
|
+
marginRight: {
|
|
633
|
+
readonly [$$ScaleValue]: "space";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
mb: (value: {
|
|
637
|
+
readonly [$$ScaleValue]: "space";
|
|
638
|
+
}) => {
|
|
639
|
+
marginBottom: {
|
|
640
|
+
readonly [$$ScaleValue]: "space";
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
ml: (value: {
|
|
644
|
+
readonly [$$ScaleValue]: "space";
|
|
645
|
+
}) => {
|
|
646
|
+
marginLeft: {
|
|
647
|
+
readonly [$$ScaleValue]: "space";
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
mx: (value: {
|
|
651
|
+
readonly [$$ScaleValue]: "space";
|
|
652
|
+
}) => {
|
|
653
|
+
marginLeft: {
|
|
654
|
+
readonly [$$ScaleValue]: "space";
|
|
655
|
+
};
|
|
656
|
+
marginRight: {
|
|
657
|
+
readonly [$$ScaleValue]: "space";
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
my: (value: {
|
|
661
|
+
readonly [$$ScaleValue]: "space";
|
|
662
|
+
}) => {
|
|
663
|
+
marginTop: {
|
|
664
|
+
readonly [$$ScaleValue]: "space";
|
|
665
|
+
};
|
|
666
|
+
marginBottom: {
|
|
667
|
+
readonly [$$ScaleValue]: "space";
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
size: (value: {
|
|
671
|
+
readonly [$$PropertyValue]: "width";
|
|
672
|
+
}) => {
|
|
673
|
+
width: {
|
|
674
|
+
readonly [$$PropertyValue]: "width";
|
|
675
|
+
};
|
|
676
|
+
height: {
|
|
677
|
+
readonly [$$PropertyValue]: "width";
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
subtleColor: (value: string) => {
|
|
681
|
+
color: string;
|
|
682
|
+
backgroundColor: string;
|
|
683
|
+
};
|
|
684
|
+
}>>;
|
|
685
|
+
export declare const TableCell: import("@stitches/react/types/styled-component").StyledComponent<"td", {
|
|
686
|
+
subCell?: boolean | "true" | undefined;
|
|
687
|
+
headerSubCell?: boolean | "true" | undefined;
|
|
688
|
+
}, {
|
|
689
|
+
sm: "(min-width: 359px)";
|
|
690
|
+
md: "(min-width: 767px)";
|
|
691
|
+
lg: "(min-width: 1023px)";
|
|
692
|
+
xl: "(min-width: 1199px)";
|
|
693
|
+
'2xl': "(min-width: 1399px)";
|
|
694
|
+
'3xl': "(min-width: 1600px)";
|
|
695
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
696
|
+
sm: "(min-width: 359px)";
|
|
697
|
+
md: "(min-width: 767px)";
|
|
698
|
+
lg: "(min-width: 1023px)";
|
|
699
|
+
xl: "(min-width: 1199px)";
|
|
700
|
+
'2xl': "(min-width: 1399px)";
|
|
701
|
+
'3xl': "(min-width: 1600px)";
|
|
702
|
+
}, {
|
|
703
|
+
colors: unknown;
|
|
704
|
+
space: unknown;
|
|
705
|
+
shadows: unknown;
|
|
706
|
+
fontSizes: unknown;
|
|
707
|
+
fonts: unknown;
|
|
708
|
+
lineHeights: unknown;
|
|
709
|
+
letterSpacings: unknown;
|
|
710
|
+
radii: unknown;
|
|
711
|
+
sizes: unknown;
|
|
712
|
+
zIndices: unknown;
|
|
713
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
714
|
+
m: (value: {
|
|
715
|
+
readonly [$$ScaleValue]: "space";
|
|
716
|
+
}) => {
|
|
717
|
+
margin: {
|
|
718
|
+
readonly [$$ScaleValue]: "space";
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
mt: (value: {
|
|
722
|
+
readonly [$$ScaleValue]: "space";
|
|
723
|
+
}) => {
|
|
724
|
+
marginTop: {
|
|
725
|
+
readonly [$$ScaleValue]: "space";
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
mr: (value: {
|
|
729
|
+
readonly [$$ScaleValue]: "space";
|
|
730
|
+
}) => {
|
|
731
|
+
marginRight: {
|
|
732
|
+
readonly [$$ScaleValue]: "space";
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
mb: (value: {
|
|
736
|
+
readonly [$$ScaleValue]: "space";
|
|
737
|
+
}) => {
|
|
738
|
+
marginBottom: {
|
|
739
|
+
readonly [$$ScaleValue]: "space";
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
ml: (value: {
|
|
743
|
+
readonly [$$ScaleValue]: "space";
|
|
744
|
+
}) => {
|
|
745
|
+
marginLeft: {
|
|
746
|
+
readonly [$$ScaleValue]: "space";
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
mx: (value: {
|
|
750
|
+
readonly [$$ScaleValue]: "space";
|
|
751
|
+
}) => {
|
|
752
|
+
marginLeft: {
|
|
753
|
+
readonly [$$ScaleValue]: "space";
|
|
754
|
+
};
|
|
755
|
+
marginRight: {
|
|
756
|
+
readonly [$$ScaleValue]: "space";
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
my: (value: {
|
|
760
|
+
readonly [$$ScaleValue]: "space";
|
|
761
|
+
}) => {
|
|
762
|
+
marginTop: {
|
|
763
|
+
readonly [$$ScaleValue]: "space";
|
|
764
|
+
};
|
|
765
|
+
marginBottom: {
|
|
766
|
+
readonly [$$ScaleValue]: "space";
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
size: (value: {
|
|
770
|
+
readonly [$$PropertyValue]: "width";
|
|
771
|
+
}) => {
|
|
772
|
+
width: {
|
|
773
|
+
readonly [$$PropertyValue]: "width";
|
|
774
|
+
};
|
|
775
|
+
height: {
|
|
776
|
+
readonly [$$PropertyValue]: "width";
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
subtleColor: (value: string) => {
|
|
780
|
+
color: string;
|
|
781
|
+
backgroundColor: string;
|
|
782
|
+
};
|
|
783
|
+
}>>;
|
|
587
784
|
export declare const TableFoot: import("@stitches/react/types/styled-component").StyledComponent<"tfoot", {}, {
|
|
588
785
|
sm: "(min-width: 359px)";
|
|
589
786
|
md: "(min-width: 767px)";
|
|
@@ -889,6 +1086,8 @@ interface FetchDataParams {
|
|
|
889
1086
|
export interface RowGroup {
|
|
890
1087
|
groupKey: string;
|
|
891
1088
|
headerRender?: (row: Row<object>) => React.ReactNode;
|
|
1089
|
+
footerRender?: (row: Row<object>) => React.ReactNode;
|
|
1090
|
+
showGroupingWhenSorted?: boolean;
|
|
892
1091
|
}
|
|
893
1092
|
interface CustomRowsStyle {
|
|
894
1093
|
predicate: boolean;
|
|
@@ -983,6 +1182,10 @@ export interface TableProps {
|
|
|
983
1182
|
* groupKey?: number;<br/>
|
|
984
1183
|
* (define the header node)<br/>
|
|
985
1184
|
* headerRender?: (row: Row) => React.ReactNode;<br/>
|
|
1185
|
+
* (define the footer node)<br/>
|
|
1186
|
+
* footerRender?: (row: Row) => React.ReactNode;<br/>
|
|
1187
|
+
* (if true, the header and the footer will be visible when the data sorted)<br/>
|
|
1188
|
+
* showGroupingWhenSorted?: boolean;<br/>
|
|
986
1189
|
* }
|
|
987
1190
|
*/
|
|
988
1191
|
rowGroup?: RowGroup;
|