@data-c/ui 0.0.64-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;
@@ -116,6 +105,33 @@ declare namespace DataTableOptions {
116
105
  };
117
106
  }
118
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
+
119
135
  interface FormContainerProps {
120
136
  children: ReactNode;
121
137
  onSubmitForm?: (formValues: any) => void;
@@ -137,6 +153,18 @@ interface LabelValueProps {
137
153
  }
138
154
  declare function LabelValue(props: LabelValueProps): JSX.Element;
139
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
+
140
168
  interface TooltipProps extends TooltipProps$2 {
141
169
  type: 'warning' | 'info';
142
170
  }
@@ -147,27 +175,6 @@ declare const Tooltip: {
147
175
  };
148
176
  };
149
177
 
150
- declare function FilterControl(): JSX.Element;
151
-
152
- interface FilterProps {
153
- children: ReactNode;
154
- triggerButtonLabel?: string;
155
- triggerButtonProps?: ButtonProps$1;
156
- title?: string;
157
- onApplyFilters?: (filters: any) => void;
158
- }
159
- declare function FilterContainer(props: FilterProps): JSX.Element;
160
- declare namespace FilterContainer {
161
- var defaultProps: {
162
- triggerButtonLabel: string;
163
- triggerButtonProps: {
164
- variant: string;
165
- startIcon: JSX.Element;
166
- };
167
- title: string;
168
- };
169
- }
170
-
171
178
  declare module '@mui/material/styles' {
172
179
  interface Components {
173
180
  [key: string]: any;
@@ -175,4 +182,4 @@ declare module '@mui/material/styles' {
175
182
  }
176
183
  declare const theme: _mui_material_styles.Theme;
177
184
 
178
- 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 };