@majoo-ui/react 1.49.3 → 1.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,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;
@@ -0,0 +1,2 @@
1
+ export { default as InputCounter } from './InputCounter';
2
+ export * from './InputCounter';
@@ -21,3 +21,4 @@ export { default as InputCreatable } from './InputCreatable/InputCreatable';
21
21
  export { default as InputResourceList } from './InputResourceList/InputResourceList';
22
22
  export * from './InputCombobox';
23
23
  export * from './InputOTP';
24
+ export * from './InputCounter';
@@ -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
  * &nbsp;&nbsp;&nbsp;&nbsp;groupKey?: number;<br/>
984
1183
  * &nbsp;&nbsp;&nbsp;&nbsp;(define the header node)<br/>
985
1184
  * &nbsp;&nbsp;&nbsp;&nbsp;headerRender?: (row: Row) => React.ReactNode;<br/>
1185
+ * &nbsp;&nbsp;&nbsp;&nbsp;(define the footer node)<br/>
1186
+ * &nbsp;&nbsp;&nbsp;&nbsp;footerRender?: (row: Row) => React.ReactNode;<br/>
1187
+ * &nbsp;&nbsp;&nbsp;&nbsp;(if true, the header and the footer will be visible when the data sorted)<br/>
1188
+ * &nbsp;&nbsp;&nbsp;&nbsp;showGroupingWhenSorted?: boolean;<br/>
986
1189
  * }
987
1190
  */
988
1191
  rowGroup?: RowGroup;