@equinor/apollo-components 4.0.1 → 4.0.3
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.mts +7 -44
- package/dist/index.d.ts +7 -44
- package/dist/index.js +306 -390
- package/dist/index.mjs +306 -393
- package/package.json +33 -26
package/dist/index.d.mts
CHANGED
|
@@ -7,10 +7,8 @@ export { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, Col
|
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
8
|
import * as _equinor_eds_core_react from '@equinor/eds-core-react';
|
|
9
9
|
import { CellProps, TypographyProps as TypographyProps$1 } from '@equinor/eds-core-react';
|
|
10
|
-
import * as _equinor_eds_core_react_dist_types_components_Table_Table_types from '@equinor/eds-core-react/dist/types/components/Table/Table.types';
|
|
11
10
|
import { SetRequired } from 'type-fest';
|
|
12
11
|
import * as styled_components from 'styled-components';
|
|
13
|
-
import { Variants } from '@equinor/eds-core-react/dist/types/components/types';
|
|
14
12
|
import { FieldError } from 'react-hook-form';
|
|
15
13
|
|
|
16
14
|
interface AppShellProps {
|
|
@@ -208,19 +206,7 @@ type TableCellProps<T> = {
|
|
|
208
206
|
type StyledStickyCellProps = {
|
|
209
207
|
backgroundColor?: string;
|
|
210
208
|
};
|
|
211
|
-
declare const StyledStickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(
|
|
212
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
213
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
214
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
215
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
216
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
217
|
-
}) | (Omit<{
|
|
218
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
219
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
220
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
221
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
222
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
223
|
-
}), _equinor_eds_core_react.CellProps> & styled_components_dist_types.BaseObject, StyledStickyCellProps>> & string;
|
|
209
|
+
declare const StyledStickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(_equinor_eds_core_react.CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, _equinor_eds_core_react.CellProps> & styled_components_dist_types.BaseObject, StyledStickyCellProps>> & string;
|
|
224
210
|
declare function DynamicCell<T>({ cell, cellConfig }: TableCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
225
211
|
|
|
226
212
|
interface HeaderCellProps<TData, TValue> {
|
|
@@ -239,39 +225,15 @@ declare function HierarchyCell<T>(cell: CellContext<T, any>, options?: Hierarchy
|
|
|
239
225
|
interface PopoverCellProps {
|
|
240
226
|
id: string;
|
|
241
227
|
value: string;
|
|
242
|
-
title?:
|
|
228
|
+
title?: ReactNode;
|
|
243
229
|
}
|
|
244
230
|
declare function PopoverCell(props: PopoverCellProps): react_jsx_runtime.JSX.Element;
|
|
245
231
|
|
|
246
232
|
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef<T, any>;
|
|
247
233
|
|
|
248
234
|
declare const leftCellShadow: styled_components.RuleSet<object>;
|
|
249
|
-
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(Omit<{
|
|
250
|
-
|
|
251
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
252
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
253
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
254
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
255
|
-
}) | (Omit<{
|
|
256
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
257
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
258
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
259
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
260
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
261
|
-
}), CellProps>> & string & Omit<react.ForwardRefExoticComponent<CellProps & react.RefAttributes<HTMLTableCellElement>>, keyof react.Component<any, {}, any>>;
|
|
262
|
-
declare const StickyHeaderCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(Omit<{
|
|
263
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
264
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
265
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
266
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
267
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
268
|
-
}) | (Omit<{
|
|
269
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
270
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
271
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
272
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
273
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
274
|
-
}), CellProps> & styled_components_dist_types.BaseObject, CellProps>> & string;
|
|
235
|
+
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, CellProps>> & string & Omit<react.ForwardRefExoticComponent<CellProps & react.RefAttributes<HTMLTableCellElement>>, keyof react.Component<any, {}, any>>;
|
|
236
|
+
declare const StickyHeaderCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, CellProps> & styled_components_dist_types.BaseObject, CellProps>> & string;
|
|
275
237
|
|
|
276
238
|
type TypographyProps = {
|
|
277
239
|
truncate?: boolean;
|
|
@@ -320,6 +282,7 @@ declare function useSetFormMeta<T extends FormMeta>(): (newValues: Partial<T>) =
|
|
|
320
282
|
declare function removeFormMeta<T extends FormMeta>(withFormMeta: T): Omit<T, keyof FormMeta>;
|
|
321
283
|
declare function addFormMeta<T>(withoutFormMeta: T): T & FormMeta;
|
|
322
284
|
|
|
285
|
+
type Variants = 'error' | 'warning' | 'success';
|
|
323
286
|
interface GetHelperTextPropsProps {
|
|
324
287
|
error?: {
|
|
325
288
|
message?: string;
|
|
@@ -332,7 +295,7 @@ interface GetHelperTextPropsProps {
|
|
|
332
295
|
interface GetHelperTextProps {
|
|
333
296
|
variant?: Variants;
|
|
334
297
|
helperText?: string;
|
|
335
|
-
helperIcon:
|
|
298
|
+
helperIcon: ReactNode | null;
|
|
336
299
|
}
|
|
337
300
|
interface EditableCellBaseProps<T extends FormMeta, Value> extends CellContext<T, Value> {
|
|
338
301
|
/**
|
|
@@ -378,4 +341,4 @@ declare function EditableTextFieldCell<T extends FormMeta>({ error: errorFromPro
|
|
|
378
341
|
declare const WARNING_PREFIX = "WARNING";
|
|
379
342
|
declare function getHelperTextProps({ error, warning, helperText, }: GetHelperTextPropsProps): GetHelperTextProps;
|
|
380
343
|
|
|
381
|
-
export { AppShell, AppSidebar, type CellConfig, CheckboxCell, ChipsCell, ColumnSelect, DataTable, type DataTableProps, DynamicCell, type EditableCellBaseProps, EditableCheckboxCell, EditableDateCell, type EditableDateCellProps, EditableDropdownSingleCell, type EditableDropdownSingleCellProps, EditableNumberCell, EditableTextAreaCell, EditableTextFieldCell, type FormMeta, type GetHelperTextProps, type GetHelperTextPropsProps, type HTMLPropsRef, HeaderCell, HierarchyCell, type InfiniteScrollConfig, type Option, PopoverCell, type RowConfig, type RowSelectionMode, SelectColumnDef, type SortConfig, StickyCell, StickyHeaderCell, StyledStickyCell, TableHeader, type TableLayout, type TableRowWrapper, type TableRowWrapperProps, type TruncateMode, TypographyCustom, type TypographyProps, WARNING_PREFIX, type WithoutFormMeta, addFormMeta, capitalizeHeader, enableOrUndefined, getColumnHeader, getFunctionValueOrDefault, getHelperTextProps, getIsFirstRightPinnedColumn, getIsLastLeftPinnedColumn, getTotalRight, leftCellShadow, prependSelectColumn, prependSelectColumnIfEnabled, removeFormMeta, stopPropagation, stringToHslColor, useEditMode, useGetIsNew, useHasRemoteChange, useSetFormMeta };
|
|
344
|
+
export { AppShell, AppSidebar, type CellConfig, CheckboxCell, ChipsCell, ColumnSelect, DataTable, type DataTableProps, DynamicCell, type EditableCellBaseProps, EditableCheckboxCell, EditableDateCell, type EditableDateCellProps, EditableDropdownSingleCell, type EditableDropdownSingleCellProps, EditableNumberCell, EditableTextAreaCell, EditableTextFieldCell, type FormMeta, type GetHelperTextProps, type GetHelperTextPropsProps, type HTMLPropsRef, HeaderCell, HierarchyCell, type InfiniteScrollConfig, type Option, PopoverCell, type RowConfig, type RowSelectionMode, SelectColumnDef, type SortConfig, StickyCell, StickyHeaderCell, StyledStickyCell, TableHeader, type TableLayout, type TableRowWrapper, type TableRowWrapperProps, type TruncateMode, TypographyCustom, type TypographyProps, type Variants, WARNING_PREFIX, type WithoutFormMeta, addFormMeta, capitalizeHeader, enableOrUndefined, getColumnHeader, getFunctionValueOrDefault, getHelperTextProps, getIsFirstRightPinnedColumn, getIsLastLeftPinnedColumn, getTotalRight, leftCellShadow, prependSelectColumn, prependSelectColumnIfEnabled, removeFormMeta, stopPropagation, stringToHslColor, useEditMode, useGetIsNew, useHasRemoteChange, useSetFormMeta };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,8 @@ export { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, Col
|
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
8
|
import * as _equinor_eds_core_react from '@equinor/eds-core-react';
|
|
9
9
|
import { CellProps, TypographyProps as TypographyProps$1 } from '@equinor/eds-core-react';
|
|
10
|
-
import * as _equinor_eds_core_react_dist_types_components_Table_Table_types from '@equinor/eds-core-react/dist/types/components/Table/Table.types';
|
|
11
10
|
import { SetRequired } from 'type-fest';
|
|
12
11
|
import * as styled_components from 'styled-components';
|
|
13
|
-
import { Variants } from '@equinor/eds-core-react/dist/types/components/types';
|
|
14
12
|
import { FieldError } from 'react-hook-form';
|
|
15
13
|
|
|
16
14
|
interface AppShellProps {
|
|
@@ -208,19 +206,7 @@ type TableCellProps<T> = {
|
|
|
208
206
|
type StyledStickyCellProps = {
|
|
209
207
|
backgroundColor?: string;
|
|
210
208
|
};
|
|
211
|
-
declare const StyledStickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(
|
|
212
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
213
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
214
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
215
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
216
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
217
|
-
}) | (Omit<{
|
|
218
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
219
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
220
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
221
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
222
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
223
|
-
}), _equinor_eds_core_react.CellProps> & styled_components_dist_types.BaseObject, StyledStickyCellProps>> & string;
|
|
209
|
+
declare const StyledStickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(_equinor_eds_core_react.CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, _equinor_eds_core_react.CellProps> & styled_components_dist_types.BaseObject, StyledStickyCellProps>> & string;
|
|
224
210
|
declare function DynamicCell<T>({ cell, cellConfig }: TableCellProps<T>): react_jsx_runtime.JSX.Element;
|
|
225
211
|
|
|
226
212
|
interface HeaderCellProps<TData, TValue> {
|
|
@@ -239,39 +225,15 @@ declare function HierarchyCell<T>(cell: CellContext<T, any>, options?: Hierarchy
|
|
|
239
225
|
interface PopoverCellProps {
|
|
240
226
|
id: string;
|
|
241
227
|
value: string;
|
|
242
|
-
title?:
|
|
228
|
+
title?: ReactNode;
|
|
243
229
|
}
|
|
244
230
|
declare function PopoverCell(props: PopoverCellProps): react_jsx_runtime.JSX.Element;
|
|
245
231
|
|
|
246
232
|
declare function SelectColumnDef<T>(props: SetRequired<DataTableProps<T>, 'rowSelection'>['rowSelection']): ColumnDef<T, any>;
|
|
247
233
|
|
|
248
234
|
declare const leftCellShadow: styled_components.RuleSet<object>;
|
|
249
|
-
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(Omit<{
|
|
250
|
-
|
|
251
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
252
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
253
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
254
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
255
|
-
}) | (Omit<{
|
|
256
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
257
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
258
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
259
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
260
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
261
|
-
}), CellProps>> & string & Omit<react.ForwardRefExoticComponent<CellProps & react.RefAttributes<HTMLTableCellElement>>, keyof react.Component<any, {}, any>>;
|
|
262
|
-
declare const StickyHeaderCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(Omit<{
|
|
263
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
264
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
265
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
266
|
-
} & react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
267
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
268
|
-
}) | (Omit<{
|
|
269
|
-
variant?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Variants;
|
|
270
|
-
color?: _equinor_eds_core_react_dist_types_components_Table_Table_types.Colors;
|
|
271
|
-
sort?: React.AriaAttributes["aria-sort"];
|
|
272
|
-
} & react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>, "ref"> & {
|
|
273
|
-
ref?: ((instance: HTMLTableCellElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLTableCellElement> | null | undefined;
|
|
274
|
-
}), CellProps> & styled_components_dist_types.BaseObject, CellProps>> & string;
|
|
235
|
+
declare const StickyCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<(CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, CellProps>> & string & Omit<react.ForwardRefExoticComponent<CellProps & react.RefAttributes<HTMLTableCellElement>>, keyof react.Component<any, {}, any>>;
|
|
236
|
+
declare const StickyHeaderCell: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<(CellProps & react.RefAttributes<HTMLTableCellElement>) & styled_components_dist_types.BaseObject, CellProps> & styled_components_dist_types.BaseObject, CellProps>> & string;
|
|
275
237
|
|
|
276
238
|
type TypographyProps = {
|
|
277
239
|
truncate?: boolean;
|
|
@@ -320,6 +282,7 @@ declare function useSetFormMeta<T extends FormMeta>(): (newValues: Partial<T>) =
|
|
|
320
282
|
declare function removeFormMeta<T extends FormMeta>(withFormMeta: T): Omit<T, keyof FormMeta>;
|
|
321
283
|
declare function addFormMeta<T>(withoutFormMeta: T): T & FormMeta;
|
|
322
284
|
|
|
285
|
+
type Variants = 'error' | 'warning' | 'success';
|
|
323
286
|
interface GetHelperTextPropsProps {
|
|
324
287
|
error?: {
|
|
325
288
|
message?: string;
|
|
@@ -332,7 +295,7 @@ interface GetHelperTextPropsProps {
|
|
|
332
295
|
interface GetHelperTextProps {
|
|
333
296
|
variant?: Variants;
|
|
334
297
|
helperText?: string;
|
|
335
|
-
helperIcon:
|
|
298
|
+
helperIcon: ReactNode | null;
|
|
336
299
|
}
|
|
337
300
|
interface EditableCellBaseProps<T extends FormMeta, Value> extends CellContext<T, Value> {
|
|
338
301
|
/**
|
|
@@ -378,4 +341,4 @@ declare function EditableTextFieldCell<T extends FormMeta>({ error: errorFromPro
|
|
|
378
341
|
declare const WARNING_PREFIX = "WARNING";
|
|
379
342
|
declare function getHelperTextProps({ error, warning, helperText, }: GetHelperTextPropsProps): GetHelperTextProps;
|
|
380
343
|
|
|
381
|
-
export { AppShell, AppSidebar, type CellConfig, CheckboxCell, ChipsCell, ColumnSelect, DataTable, type DataTableProps, DynamicCell, type EditableCellBaseProps, EditableCheckboxCell, EditableDateCell, type EditableDateCellProps, EditableDropdownSingleCell, type EditableDropdownSingleCellProps, EditableNumberCell, EditableTextAreaCell, EditableTextFieldCell, type FormMeta, type GetHelperTextProps, type GetHelperTextPropsProps, type HTMLPropsRef, HeaderCell, HierarchyCell, type InfiniteScrollConfig, type Option, PopoverCell, type RowConfig, type RowSelectionMode, SelectColumnDef, type SortConfig, StickyCell, StickyHeaderCell, StyledStickyCell, TableHeader, type TableLayout, type TableRowWrapper, type TableRowWrapperProps, type TruncateMode, TypographyCustom, type TypographyProps, WARNING_PREFIX, type WithoutFormMeta, addFormMeta, capitalizeHeader, enableOrUndefined, getColumnHeader, getFunctionValueOrDefault, getHelperTextProps, getIsFirstRightPinnedColumn, getIsLastLeftPinnedColumn, getTotalRight, leftCellShadow, prependSelectColumn, prependSelectColumnIfEnabled, removeFormMeta, stopPropagation, stringToHslColor, useEditMode, useGetIsNew, useHasRemoteChange, useSetFormMeta };
|
|
344
|
+
export { AppShell, AppSidebar, type CellConfig, CheckboxCell, ChipsCell, ColumnSelect, DataTable, type DataTableProps, DynamicCell, type EditableCellBaseProps, EditableCheckboxCell, EditableDateCell, type EditableDateCellProps, EditableDropdownSingleCell, type EditableDropdownSingleCellProps, EditableNumberCell, EditableTextAreaCell, EditableTextFieldCell, type FormMeta, type GetHelperTextProps, type GetHelperTextPropsProps, type HTMLPropsRef, HeaderCell, HierarchyCell, type InfiniteScrollConfig, type Option, PopoverCell, type RowConfig, type RowSelectionMode, SelectColumnDef, type SortConfig, StickyCell, StickyHeaderCell, StyledStickyCell, TableHeader, type TableLayout, type TableRowWrapper, type TableRowWrapperProps, type TruncateMode, TypographyCustom, type TypographyProps, type Variants, WARNING_PREFIX, type WithoutFormMeta, addFormMeta, capitalizeHeader, enableOrUndefined, getColumnHeader, getFunctionValueOrDefault, getHelperTextProps, getIsFirstRightPinnedColumn, getIsLastLeftPinnedColumn, getTotalRight, leftCellShadow, prependSelectColumn, prependSelectColumnIfEnabled, removeFormMeta, stopPropagation, stringToHslColor, useEditMode, useGetIsNew, useHasRemoteChange, useSetFormMeta };
|