@up42/up-components 4.5.0 → 4.7.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/README.md +8 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/CodeSnippet/Pre.d.ts +7 -1
- package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +2 -1
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +1 -8
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +1 -3
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +1 -10
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +1 -7
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +1 -5
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/CodeSnippet/Pre.d.ts +7 -1
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +2 -1
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +1 -8
- package/dist/esm/types/components/FormInput/FormInput.d.ts +1 -3
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +1 -10
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +1 -7
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +1 -5
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +30 -60
- package/package.json +9 -6
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { StyledComponent } from '@emotion/styled';
|
|
4
|
+
export declare const Pre: StyledComponent<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
sx: SxProps<Theme>;
|
|
8
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, object>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
|
|
2
|
-
export {
|
|
2
|
+
export { GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from '@mui/x-data-grid-premium';
|
|
3
|
+
export type { GridColDef, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from '@mui/x-data-grid-premium';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
5
6
|
export type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
|
|
@@ -10,11 +10,4 @@ export type FormCheckboxProps = FormBaseProps & CheckboxProps & {
|
|
|
10
10
|
/**
|
|
11
11
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
12
12
|
*/
|
|
13
|
-
export declare const FormCheckbox: React.ForwardRefExoticComponent<Omit<
|
|
14
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").CheckboxProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
16
|
-
data: {
|
|
17
|
-
value: string | number;
|
|
18
|
-
label?: React.ReactNode;
|
|
19
|
-
}[];
|
|
20
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
13
|
+
export declare const FormCheckbox: React.ForwardRefExoticComponent<Omit<FormCheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -5,6 +5,4 @@ export type FormInputProps = FormBaseProps & InputProps;
|
|
|
5
5
|
/**
|
|
6
6
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
7
7
|
*/
|
|
8
|
-
export declare const FormInput: React.ForwardRefExoticComponent<Omit<
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & InputProps, "ref"> & React.RefAttributes<unknown>>;
|
|
8
|
+
export declare const FormInput: React.ForwardRefExoticComponent<Omit<FormInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -13,13 +13,4 @@ export type FormRadioProps = FormBaseProps & RadioGroupProps & {
|
|
|
13
13
|
/**
|
|
14
14
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
15
15
|
*/
|
|
16
|
-
export declare const FormRadio: React.ForwardRefExoticComponent<Omit<
|
|
17
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & RadioGroupProps & {
|
|
19
|
-
inputRef?: RadioProps['inputRef'];
|
|
20
|
-
data: {
|
|
21
|
-
value: string | number;
|
|
22
|
-
label?: string;
|
|
23
|
-
message?: string;
|
|
24
|
-
}[];
|
|
25
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
16
|
+
export declare const FormRadio: React.ForwardRefExoticComponent<Omit<FormRadioProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -11,11 +11,5 @@ export type FormSelectProps = FormBaseProps & SelectProps<string | number> & {
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
13
13
|
*/
|
|
14
|
-
export declare const FormSelect: React.ForwardRefExoticComponent<Omit<
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SelectProps<string | number>, "variant"> & {
|
|
17
|
-
withBorder?: boolean | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
options: Option[];
|
|
20
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
14
|
+
export declare const FormSelect: React.ForwardRefExoticComponent<Omit<FormSelectProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
15
|
export {};
|
|
@@ -8,8 +8,4 @@ export declare const BaseFormSwitch: ({ component, disabled, label, error, formC
|
|
|
8
8
|
/**
|
|
9
9
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form--docs
|
|
10
10
|
*/
|
|
11
|
-
export declare const FormSwitch: React.ForwardRefExoticComponent<Omit<
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & Pick<import("@mui/material").StandardTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "label" | "id" | "disabled" | "required" | "error" | "focused" | "helperText"> & Omit<import("@mui/material").SwitchProps, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple"> & {
|
|
14
|
-
formControlLabel?: string | undefined;
|
|
15
|
-
}, "ref"> & React.RefAttributes<unknown>>;
|
|
11
|
+
export declare const FormSwitch: React.ForwardRefExoticComponent<Omit<FormSwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -49,7 +49,8 @@ export { DocumentationPopover, type DocumentationPopoverProps, } from './compone
|
|
|
49
49
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
50
50
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|
|
51
51
|
export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, TableFooter, TablePagination, TableSortLabel, type TableProps, type TableBodyProps, type TableCellProps, type TableHeadProps, type TableContainerProps, type TableRowProps, type TableFooterProps, type TablePaginationProps, type TableSortLabelProps, } from './components/Table/Table';
|
|
52
|
-
export { DataGrid, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector,
|
|
52
|
+
export { DataGrid, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from './components/DataGrid/DataGrid';
|
|
53
|
+
export type { GridColDef, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
|
|
53
54
|
export { capitalize } from './utils/helpers/capitalize';
|
|
54
55
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
55
56
|
export { formatNumber } from './utils/helpers/formatNumber';
|