@majoo-ui/react 1.46.3 → 1.46.5-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.
@@ -20,7 +20,7 @@ interface EditableTableProps<Data extends object> {
20
20
  /**
21
21
  * Additional align items of the rows.
22
22
  */
23
- align?: string;
23
+ align?: 'top' | 'center' | 'bottom';
24
24
  }
25
25
  interface RemoveProps {
26
26
  position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
@@ -33,108 +33,7 @@ declare namespace EditableTable {
33
33
  label: any;
34
34
  variants: any;
35
35
  }) => JSX.Element;
36
- var Input: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"input", {
37
- readOnly?: boolean | "true" | undefined;
38
- inputGroup?: boolean | "true" | undefined;
39
- size?: "sm" | "lg" | undefined;
40
- isInvalid?: boolean | "true" | undefined;
41
- isPicker?: boolean | "true" | undefined;
42
- }, {
43
- sm: "(min-width: 359px)";
44
- md: "(min-width: 767px)";
45
- lg: "(min-width: 1023px)";
46
- xl: "(min-width: 1199px)";
47
- '2xl': "(min-width: 1399px)";
48
- '3xl': "(min-width: 1600px)";
49
- }, import("@stitches/react/types/css-util").CSS<{
50
- sm: "(min-width: 359px)";
51
- md: "(min-width: 767px)";
52
- lg: "(min-width: 1023px)";
53
- xl: "(min-width: 1199px)";
54
- '2xl': "(min-width: 1399px)";
55
- '3xl': "(min-width: 1600px)";
56
- }, {
57
- colors: unknown;
58
- space: unknown;
59
- shadows: unknown;
60
- fontSizes: unknown;
61
- fonts: unknown;
62
- lineHeights: unknown;
63
- letterSpacings: unknown;
64
- radii: unknown;
65
- sizes: unknown;
66
- zIndices: unknown;
67
- }, import("@stitches/react/types/config").DefaultThemeMap, {
68
- m: (value: {
69
- readonly [$$ScaleValue]: "space";
70
- }) => {
71
- margin: {
72
- readonly [$$ScaleValue]: "space";
73
- };
74
- };
75
- mt: (value: {
76
- readonly [$$ScaleValue]: "space";
77
- }) => {
78
- marginTop: {
79
- readonly [$$ScaleValue]: "space";
80
- };
81
- };
82
- mr: (value: {
83
- readonly [$$ScaleValue]: "space";
84
- }) => {
85
- marginRight: {
86
- readonly [$$ScaleValue]: "space";
87
- };
88
- };
89
- mb: (value: {
90
- readonly [$$ScaleValue]: "space";
91
- }) => {
92
- marginBottom: {
93
- readonly [$$ScaleValue]: "space";
94
- };
95
- };
96
- ml: (value: {
97
- readonly [$$ScaleValue]: "space";
98
- }) => {
99
- marginLeft: {
100
- readonly [$$ScaleValue]: "space";
101
- };
102
- };
103
- mx: (value: {
104
- readonly [$$ScaleValue]: "space";
105
- }) => {
106
- marginLeft: {
107
- readonly [$$ScaleValue]: "space";
108
- };
109
- marginRight: {
110
- readonly [$$ScaleValue]: "space";
111
- };
112
- };
113
- my: (value: {
114
- readonly [$$ScaleValue]: "space";
115
- }) => {
116
- marginTop: {
117
- readonly [$$ScaleValue]: "space";
118
- };
119
- marginBottom: {
120
- readonly [$$ScaleValue]: "space";
121
- };
122
- };
123
- size: (value: {
124
- readonly [$$PropertyValue]: "width";
125
- }) => {
126
- width: {
127
- readonly [$$PropertyValue]: "width";
128
- };
129
- height: {
130
- readonly [$$PropertyValue]: "width";
131
- };
132
- };
133
- subtleColor: (value: string) => {
134
- color: string;
135
- backgroundColor: string;
136
- };
137
- }>>, {}, {
36
+ var Input: import("@stitches/react/types/styled-component").StyledComponent<any, {}, {
138
37
  sm: "(min-width: 359px)";
139
38
  md: "(min-width: 767px)";
140
39
  lg: "(min-width: 1023px)";
@@ -936,6 +936,10 @@ export interface TableProps {
936
936
  * If true, the left-side footer component is hidden.
937
937
  */
938
938
  hideDataInfo?: boolean;
939
+ /**
940
+ * Customizes the options of the rows per page select field.
941
+ */
942
+ rowsPerPageOptions?: number[];
939
943
  /**
940
944
  * Table empty data message.
941
945
  */
@@ -977,7 +981,7 @@ export interface TableProps {
977
981
  */
978
982
  rowGroup?: RowGroup;
979
983
  }
980
- export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, }: TableProps): JSX.Element;
984
+ export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, }: TableProps): JSX.Element;
981
985
  export interface TableColumnProps {
982
986
  /**
983
987
  * Required if accessor is a function<br/>