@up42/up-components 4.4.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.
- 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 +1 -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/components/Logo/Logo.d.ts +14 -0
- package/dist/cjs/types/global/logos/index.d.ts +4 -0
- package/dist/cjs/types/index.d.ts +1 -0
- 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 +1 -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/components/Logo/Logo.d.ts +14 -0
- package/dist/esm/types/global/logos/index.d.ts +4 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +44 -61
- 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,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<
|
|
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>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIconProps } from '@mui/material';
|
|
3
|
+
export type LogoProps = {
|
|
4
|
+
variant?: 'dark' | 'light';
|
|
5
|
+
/**
|
|
6
|
+
* use isKSA to toggle between KSA and INT logo versions
|
|
7
|
+
*/
|
|
8
|
+
isKSA?: boolean;
|
|
9
|
+
size?: 'small' | 'medium';
|
|
10
|
+
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox' | 'fontSize'>;
|
|
11
|
+
/**
|
|
12
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-display-logos--docs
|
|
13
|
+
*/
|
|
14
|
+
export declare function Logo({ variant, isKSA, size, sx, ...props }: LogoProps): React.JSX.Element;
|
|
@@ -40,6 +40,7 @@ export { NotFound, type NotFoundProps } from './components/NotFound/NotFound';
|
|
|
40
40
|
export { Loading, type LoadingProps } from './components/Loading/Loading';
|
|
41
41
|
export { Icon, type IconProps } from './components/Icon/Icon';
|
|
42
42
|
export { Illustration, type IllustrationProps } from './components/Illustration/Illustration';
|
|
43
|
+
export { Logo, type LogoProps } from './components/Logo/Logo';
|
|
43
44
|
export { Badge, type BadgeProps } from './components/Badge/Badge';
|
|
44
45
|
export { Tag, type TagProps } from './components/Tag/Tag';
|
|
45
46
|
export { DateTime, type DateTimeProps } from './components/DateTime/DateTime';
|