@data-c/ui 0.0.63-alpha.0 → 0.0.65-alpha.0

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/dist/index.d.ts CHANGED
@@ -19,6 +19,8 @@ interface CheckboxProps extends CheckboxProps$1 {
19
19
  }
20
20
  declare function Checkbox(props: CheckboxProps): JSX.Element;
21
21
 
22
+ declare function ColorsGrid(): JSX.Element;
23
+
22
24
  declare function CurrencyTextField(props: Omit<TextFieldProps, 'onChange'> & {
23
25
  onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: any) => void;
24
26
  }): JSX.Element;
@@ -51,19 +53,6 @@ declare namespace DeleteContainer {
51
53
  var defaultProps: DialogProps;
52
54
  }
53
55
 
54
- interface Flag {
55
- isFlagged: boolean;
56
- type: 'success' | 'error' | 'warning' | 'info' | 'primary' | 'secondary';
57
- }
58
- declare function Flag(props: Flag): JSX.Element | null;
59
-
60
- interface PageTitleProps {
61
- title: string;
62
- children?: ReactNode;
63
- onBack?: () => void;
64
- }
65
- declare function PageTitle(props: PageTitleProps): JSX.Element;
66
-
67
56
  interface DataTableProps extends Omit<MUIDataTableProps, 'title'> {
68
57
  error?: string;
69
58
  isLoading?: boolean;
@@ -85,6 +74,7 @@ interface ExtraOptionsProps {
85
74
  icon: string;
86
75
  iconButtonProps?: IconButtonProps;
87
76
  tooltip?: TooltipProps$1;
77
+ visible?: boolean;
88
78
  }
89
79
  interface DataTableOptionsProps<T> {
90
80
  onClick(event: string, value: T): any;
@@ -115,6 +105,33 @@ declare namespace DataTableOptions {
115
105
  };
116
106
  }
117
107
 
108
+ declare function FilterControl(): JSX.Element;
109
+
110
+ interface FilterProps {
111
+ children: ReactNode;
112
+ triggerButtonLabel?: string;
113
+ triggerButtonProps?: ButtonProps$1;
114
+ title?: string;
115
+ onApplyFilters?: (filters: any) => void;
116
+ }
117
+ declare function FilterContainer(props: FilterProps): JSX.Element;
118
+ declare namespace FilterContainer {
119
+ var defaultProps: {
120
+ triggerButtonLabel: string;
121
+ triggerButtonProps: {
122
+ variant: string;
123
+ startIcon: JSX.Element;
124
+ };
125
+ title: string;
126
+ };
127
+ }
128
+
129
+ interface Flag {
130
+ isFlagged: boolean;
131
+ type: 'success' | 'error' | 'warning' | 'info' | 'primary' | 'secondary';
132
+ }
133
+ declare function Flag(props: Flag): JSX.Element | null;
134
+
118
135
  interface FormContainerProps {
119
136
  children: ReactNode;
120
137
  onSubmitForm?: (formValues: any) => void;
@@ -136,6 +153,18 @@ interface LabelValueProps {
136
153
  }
137
154
  declare function LabelValue(props: LabelValueProps): JSX.Element;
138
155
 
156
+ interface PageTitleProps {
157
+ title: string;
158
+ children?: ReactNode;
159
+ onBack?: () => void;
160
+ }
161
+ declare function PageTitle(props: PageTitleProps): JSX.Element;
162
+
163
+ type SearchTextFieldProps = {
164
+ onSearch: (query: string) => void;
165
+ } & Omit<TextFieldProps, 'onChange'>;
166
+ declare function SearchTextField(props: SearchTextFieldProps): JSX.Element;
167
+
139
168
  interface TooltipProps extends TooltipProps$2 {
140
169
  type: 'warning' | 'info';
141
170
  }
@@ -146,27 +175,6 @@ declare const Tooltip: {
146
175
  };
147
176
  };
148
177
 
149
- declare function FilterControl(): JSX.Element;
150
-
151
- interface FilterProps {
152
- children: ReactNode;
153
- triggerButtonLabel?: string;
154
- triggerButtonProps?: ButtonProps$1;
155
- title?: string;
156
- onApplyFilters?: (filters: any) => void;
157
- }
158
- declare function FilterContainer(props: FilterProps): JSX.Element;
159
- declare namespace FilterContainer {
160
- var defaultProps: {
161
- triggerButtonLabel: string;
162
- triggerButtonProps: {
163
- variant: string;
164
- startIcon: JSX.Element;
165
- };
166
- title: string;
167
- };
168
- }
169
-
170
178
  declare module '@mui/material/styles' {
171
179
  interface Components {
172
180
  [key: string]: any;
@@ -174,4 +182,4 @@ declare module '@mui/material/styles' {
174
182
  }
175
183
  declare const theme: _mui_material_styles.Theme;
176
184
 
177
- export { Button, ButtonContainer, ButtonContainerProps, Checkbox, CheckboxProps, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog, DialogProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, LabelValue, LabelValueProps, OptionStyles, PageTitle, Tooltip, TooltipProps, theme };
185
+ export { Button, ButtonContainer, ButtonContainerProps, Checkbox, CheckboxProps, ColorsGrid, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog, DialogProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, LabelValue, LabelValueProps, OptionStyles, PageTitle, SearchTextField, Tooltip, TooltipProps, theme };