@up42/up-components 5.2.2 → 5.3.1
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/cjs/index.js +2 -2
- package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +2 -2
- package/dist/cjs/types/components/EditTagsButton/EditTagsButton.d.ts +4 -1
- package/dist/cjs/types/components/TagsList/Tags.d.ts +2 -1
- package/dist/cjs/types/components/TagsList/TagsList.d.ts +5 -1
- package/dist/cjs/types/components/TagsList/useCalculateTagsOverflow.d.ts +4 -3
- package/dist/cjs/types/index.d.ts +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +2 -2
- package/dist/esm/types/components/EditTagsButton/EditTagsButton.d.ts +4 -1
- package/dist/esm/types/components/TagsList/Tags.d.ts +2 -1
- package/dist/esm/types/components/TagsList/TagsList.d.ts +5 -1
- package/dist/esm/types/components/TagsList/useCalculateTagsOverflow.d.ts +4 -3
- package/dist/esm/types/index.d.ts +3 -3
- package/dist/index.d.ts +11 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
|
|
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';
|
|
2
|
+
export { GridRow, GridCell, GridEditInputCell, GridCellModes, 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, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from '@mui/x-data-grid-premium';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
6
6
|
export type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
|
|
@@ -10,4 +10,7 @@ export type EditTagsButtonProps = {
|
|
|
10
10
|
sx?: SxProps<Theme>;
|
|
11
11
|
variant?: ButtonProps['variant'];
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-edittagsbutton--docs
|
|
15
|
+
*/
|
|
16
|
+
export declare const EditTagsButton: React.ForwardRefExoticComponent<EditTagsButtonProps & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
export type TagItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
onDelete?: (e: unknown) => void;
|
|
6
|
+
};
|
|
3
7
|
export type TagsListProps = {
|
|
4
|
-
tags: string[];
|
|
8
|
+
tags: string[] | TagItem[];
|
|
5
9
|
onTagsUpdate?: (tags: string[]) => Promise<void>;
|
|
6
10
|
isUpdatingTags?: boolean;
|
|
7
11
|
sx?: SxProps<Theme>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TagItem } from './TagsList';
|
|
2
3
|
type UseCalculateTagsOverflowProps = {
|
|
3
|
-
tags:
|
|
4
|
+
tags: TagItem[];
|
|
4
5
|
parentContainerRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
5
6
|
tagsMeasurementRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
6
7
|
hiddenTagCount: number;
|
|
@@ -9,7 +10,7 @@ type UseCalculateTagsOverflowProps = {
|
|
|
9
10
|
};
|
|
10
11
|
type UseCalculateTagsOverflowReturn = {
|
|
11
12
|
measurementContainerWidth: number;
|
|
12
|
-
visibleTags:
|
|
13
|
+
visibleTags: TagItem[];
|
|
13
14
|
};
|
|
14
15
|
export declare const TAG_GAP: string;
|
|
15
16
|
/**
|
|
@@ -21,7 +22,7 @@ export declare const TAG_GAP: string;
|
|
|
21
22
|
* - State management for measurement and visibility
|
|
22
23
|
* - Window and container resize handling with debounced ResizeObserver handler
|
|
23
24
|
*
|
|
24
|
-
* @param tags - The array of tag
|
|
25
|
+
* @param tags - The array of tag objects to display
|
|
25
26
|
* @param parentContainerRef - Reference to the parent container for width measurement
|
|
26
27
|
* @param tagsMeasurementRef - Reference to the measurement container for width measurement
|
|
27
28
|
* @param hiddenTagCount - Current number of hidden tags
|
|
@@ -49,15 +49,15 @@ export { FeatureCard, type FeatureCardProps } from './components/FeatureCard/Fea
|
|
|
49
49
|
export { FeatureCardHeader, type FeatureCardHeaderProps } from './components/FeatureCardHeader/FeatureCardHeader';
|
|
50
50
|
export { FeatureCardHeaderActions, type IconAction, type MenuAction, type FeatureCardHeaderActionsProps, } from './components/FeatureCardHeaderActions/FeatureCardHeaderActions';
|
|
51
51
|
export { StatusLight, type StatusLightProps } from './components/StatusLight/StatusLight';
|
|
52
|
-
export { TagsList, type TagsListProps } from './components/TagsList/TagsList';
|
|
52
|
+
export { TagsList, type TagsListProps, type TagItem } from './components/TagsList/TagsList';
|
|
53
53
|
export { EditTagsButton, type EditTagsButtonProps } from './components/EditTagsButton/EditTagsButton';
|
|
54
54
|
export { FeatureFlagCheckbox, type FeatureFlagCheckboxProps, } from './components/FeatureFlagCheckbox/FeatureFlagCheckbox';
|
|
55
55
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
56
56
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
57
57
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|
|
58
58
|
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';
|
|
59
|
-
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';
|
|
60
|
-
export type { GridColDef, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
|
|
59
|
+
export { DataGrid, GridRow, GridCell, GridEditInputCell, GridCellModes, 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';
|
|
60
|
+
export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
|
|
61
61
|
export { capitalize } from './utils/helpers/capitalize';
|
|
62
62
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
63
63
|
export { formatNumber } from './utils/helpers/formatNumber';
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { TablePaginationProps as TablePaginationProps$1 } from '@mui/material/Ta
|
|
|
21
21
|
import { TableSortLabelProps as TableSortLabelProps$1 } from '@mui/material/TableSortLabel';
|
|
22
22
|
import { TableFooterProps as TableFooterProps$1 } from '@mui/material/TableFooter';
|
|
23
23
|
import { DataGridPremiumProps } from '@mui/x-data-grid-premium';
|
|
24
|
-
export { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, GridCell, GridColDef, GridColumnHeaderParams, GridEditCellProps, GridFooter, GridInitialState, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPreProcessEditCellProps, GridRenderCellParams, GridRow, GridRowCount, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSelectedRowCount, GridSortModel, GridTreeNodeWithRender, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, useGridApiContext, useGridApiRef, useGridSelector } from '@mui/x-data-grid-premium';
|
|
24
|
+
export { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, GridCell, GridCellModes, GridCellModesModel, GridCellParams, GridColDef, GridColumnHeaderParams, GridEditCellProps, GridEditInputCell, GridFooter, GridInitialState, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPreProcessEditCellProps, GridRenderCellParams, GridRenderEditCellParams, GridRow, GridRowCount, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSelectedRowCount, GridSortModel, GridTreeNodeWithRender, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, useGridApiContext, useGridApiRef, useGridSelector } from '@mui/x-data-grid-premium';
|
|
25
25
|
|
|
26
26
|
interface UpComponentsProviderProps extends Omit<ThemeProviderProps, 'theme'> {
|
|
27
27
|
licenseKey: string;
|
|
@@ -5321,8 +5321,12 @@ type StatusLightProps = {
|
|
|
5321
5321
|
*/
|
|
5322
5322
|
declare const StatusLight: ({ label, variant, color, size, sx, }: StatusLightProps) => React__default.JSX.Element;
|
|
5323
5323
|
|
|
5324
|
+
type TagItem = {
|
|
5325
|
+
label: string;
|
|
5326
|
+
onDelete?: (e: unknown) => void;
|
|
5327
|
+
};
|
|
5324
5328
|
type TagsListProps = {
|
|
5325
|
-
tags: string[];
|
|
5329
|
+
tags: string[] | TagItem[];
|
|
5326
5330
|
onTagsUpdate?: (tags: string[]) => Promise<void>;
|
|
5327
5331
|
isUpdatingTags?: boolean;
|
|
5328
5332
|
sx?: SxProps<Theme>;
|
|
@@ -5341,7 +5345,10 @@ type EditTagsButtonProps = {
|
|
|
5341
5345
|
sx?: SxProps<Theme>;
|
|
5342
5346
|
variant?: ButtonProps$2['variant'];
|
|
5343
5347
|
};
|
|
5344
|
-
|
|
5348
|
+
/**
|
|
5349
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-entry-edittagsbutton--docs
|
|
5350
|
+
*/
|
|
5351
|
+
declare const EditTagsButton: React__default.ForwardRefExoticComponent<EditTagsButtonProps & React__default.RefAttributes<unknown>>;
|
|
5345
5352
|
|
|
5346
5353
|
type FeatureFlagCheckboxProps = {
|
|
5347
5354
|
label: string;
|
|
@@ -5641,4 +5648,4 @@ type ContextState = {
|
|
|
5641
5648
|
declare const useAlert: () => ContextState;
|
|
5642
5649
|
|
|
5643
5650
|
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, Link, Loading, Logo, NotFound, PageContainer, PageHeader, Radio, Select, Slider, StatusLight, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, TagsList, Typography, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination, useToggle };
|
|
5644
|
-
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagProps, TagsListProps, TypographyProps, UseToggleResult };
|
|
5651
|
+
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, TypographyProps, UseToggleResult };
|