@up42/up-components 4.5.0 → 4.6.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.
@@ -1,2 +1,8 @@
1
1
  /// <reference types="react" />
2
- export declare const Pre: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}>;
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,5 @@
1
1
  import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
2
- export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridRowParams, type GridRowSelectionModel, type GridRowsProp, type GridSortModel, 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';
2
+ export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridRowParams, type GridRowSelectionModel, type GridRowsProp, type GridSortModel, type GridTreeNodeWithRender, 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
3
  import React from 'react';
4
4
  import { MUIGlobalOmit } from '@global/utils/types';
5
5
  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<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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>>;