@up42/up-components 8.1.0 → 8.2.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/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/ActionToolbar/ActionToolbar.d.ts +49 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/ActionToolbar/ActionToolbar.d.ts +49 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +52 -5
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
export type ActionToolbarProps = {
|
|
4
|
+
count: number;
|
|
5
|
+
singleLabel?: string;
|
|
6
|
+
multipleLabel?: string;
|
|
7
|
+
clearLabel?: string;
|
|
8
|
+
onClearSelection: () => void;
|
|
9
|
+
centerSlot?: ReactNode;
|
|
10
|
+
actionsSlot?: ReactNode;
|
|
11
|
+
color?: Color;
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
/**
|
|
14
|
+
* This property defines the position where the component will be displayed.
|
|
15
|
+
* It is not part of the styling properties since this is taken as a configuration property.
|
|
16
|
+
*/
|
|
17
|
+
position: 'bottom' | 'top';
|
|
18
|
+
/**
|
|
19
|
+
* This property defines the padding applied to the component in relation to the "position" property.
|
|
20
|
+
* It is not part of the styling properties since this is taken as a configuration property.
|
|
21
|
+
*/
|
|
22
|
+
padding: string;
|
|
23
|
+
};
|
|
24
|
+
declare const COLORS: {
|
|
25
|
+
readonly primary: {
|
|
26
|
+
readonly bgColor: string;
|
|
27
|
+
readonly borderColor: string;
|
|
28
|
+
readonly textColor: string;
|
|
29
|
+
readonly badgeColor: string;
|
|
30
|
+
readonly badgeText: string;
|
|
31
|
+
};
|
|
32
|
+
readonly info: {
|
|
33
|
+
readonly bgColor: string;
|
|
34
|
+
readonly borderColor: string;
|
|
35
|
+
readonly textColor: string;
|
|
36
|
+
readonly badgeColor: string;
|
|
37
|
+
readonly badgeText: string;
|
|
38
|
+
};
|
|
39
|
+
readonly warning: {
|
|
40
|
+
readonly bgColor: string;
|
|
41
|
+
readonly borderColor: string;
|
|
42
|
+
readonly textColor: string;
|
|
43
|
+
readonly badgeColor: string;
|
|
44
|
+
readonly badgeText: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type Color = keyof typeof COLORS;
|
|
48
|
+
export declare const ActionToolbar: ({ count, singleLabel, multipleLabel, clearLabel, onClearSelection, centerSlot, actionsSlot, color, sx, position, padding, }: ActionToolbarProps) => React.JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -63,6 +63,7 @@ export { DataGrid, GridRow, GridCell, GridEditInputCell, GridCellModes, GridFoot
|
|
|
63
63
|
export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
|
|
64
64
|
export { ToggleButton, type ToggleButtonProps } from './components/ToggleButton/ToggleButton';
|
|
65
65
|
export { FindUsersButton, LearnMoreButton, RoleBanner, type FindUsersButtonProps, type LearnMoreButtonProps, type RoleBannerProps, } from './components/RoleBanner/RoleBanner';
|
|
66
|
+
export { ActionToolbar, type ActionToolbarProps } from './components/ActionToolbar/ActionToolbar';
|
|
66
67
|
export { capitalize } from './utils/helpers/capitalize';
|
|
67
68
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
68
69
|
export { formatNumber } from './utils/helpers/formatNumber';
|
package/dist/index.d.ts
CHANGED
|
@@ -11255,7 +11255,7 @@ type FeatureCardHeaderActionsProps = {
|
|
|
11255
11255
|
};
|
|
11256
11256
|
declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React__default.JSX.Element;
|
|
11257
11257
|
|
|
11258
|
-
declare const COLORS: {
|
|
11258
|
+
declare const COLORS$1: {
|
|
11259
11259
|
primary: string;
|
|
11260
11260
|
secondary: string;
|
|
11261
11261
|
success: string;
|
|
@@ -11285,12 +11285,12 @@ declare const SIZES: {
|
|
|
11285
11285
|
};
|
|
11286
11286
|
};
|
|
11287
11287
|
type Variant = 'filled' | 'half';
|
|
11288
|
-
type Color = keyof typeof COLORS;
|
|
11288
|
+
type Color$1 = keyof typeof COLORS$1;
|
|
11289
11289
|
type Size = keyof typeof SIZES;
|
|
11290
11290
|
type StatusLightProps = {
|
|
11291
11291
|
label: string;
|
|
11292
11292
|
variant?: Variant;
|
|
11293
|
-
color?: Color;
|
|
11293
|
+
color?: Color$1;
|
|
11294
11294
|
size?: Size;
|
|
11295
11295
|
sx?: SxProps<Theme>;
|
|
11296
11296
|
};
|
|
@@ -11486,6 +11486,53 @@ declare function LearnMoreButton(props: LearnMoreButtonProps): React__default.JS
|
|
|
11486
11486
|
type FindUsersButtonProps = ButtonProps;
|
|
11487
11487
|
declare function FindUsersButton(props: FindUsersButtonProps): React__default.JSX.Element;
|
|
11488
11488
|
|
|
11489
|
+
type ActionToolbarProps = {
|
|
11490
|
+
count: number;
|
|
11491
|
+
singleLabel?: string;
|
|
11492
|
+
multipleLabel?: string;
|
|
11493
|
+
clearLabel?: string;
|
|
11494
|
+
onClearSelection: () => void;
|
|
11495
|
+
centerSlot?: ReactNode;
|
|
11496
|
+
actionsSlot?: ReactNode;
|
|
11497
|
+
color?: Color;
|
|
11498
|
+
sx?: SxProps<Theme>;
|
|
11499
|
+
/**
|
|
11500
|
+
* This property defines the position where the component will be displayed.
|
|
11501
|
+
* It is not part of the styling properties since this is taken as a configuration property.
|
|
11502
|
+
*/
|
|
11503
|
+
position: 'bottom' | 'top';
|
|
11504
|
+
/**
|
|
11505
|
+
* This property defines the padding applied to the component in relation to the "position" property.
|
|
11506
|
+
* It is not part of the styling properties since this is taken as a configuration property.
|
|
11507
|
+
*/
|
|
11508
|
+
padding: string;
|
|
11509
|
+
};
|
|
11510
|
+
declare const COLORS: {
|
|
11511
|
+
readonly primary: {
|
|
11512
|
+
readonly bgColor: string;
|
|
11513
|
+
readonly borderColor: string;
|
|
11514
|
+
readonly textColor: string;
|
|
11515
|
+
readonly badgeColor: string;
|
|
11516
|
+
readonly badgeText: string;
|
|
11517
|
+
};
|
|
11518
|
+
readonly info: {
|
|
11519
|
+
readonly bgColor: string;
|
|
11520
|
+
readonly borderColor: string;
|
|
11521
|
+
readonly textColor: string;
|
|
11522
|
+
readonly badgeColor: string;
|
|
11523
|
+
readonly badgeText: string;
|
|
11524
|
+
};
|
|
11525
|
+
readonly warning: {
|
|
11526
|
+
readonly bgColor: string;
|
|
11527
|
+
readonly borderColor: string;
|
|
11528
|
+
readonly textColor: string;
|
|
11529
|
+
readonly badgeColor: string;
|
|
11530
|
+
readonly badgeText: string;
|
|
11531
|
+
};
|
|
11532
|
+
};
|
|
11533
|
+
type Color = keyof typeof COLORS;
|
|
11534
|
+
declare const ActionToolbar: ({ count, singleLabel, multipleLabel, clearLabel, onClearSelection, centerSlot, actionsSlot, color, sx, position, padding, }: ActionToolbarProps) => React__default.JSX.Element;
|
|
11535
|
+
|
|
11489
11536
|
/**
|
|
11490
11537
|
* It should to be noted that this helper isn't equivalent to `text-transform: capitalize`.
|
|
11491
11538
|
* A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -11714,5 +11761,5 @@ type ContextState = {
|
|
|
11714
11761
|
*/
|
|
11715
11762
|
declare const useAlert: () => ContextState;
|
|
11716
11763
|
|
|
11717
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeBlock, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FilterPopover, FindUsersButton, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, LearnMoreButton, Link, Loading, Logo, NotFound, PageContainer, PageHeader, PageHeaderV2, Popover, Radio, RoleBanner, Select, Slider, StatusLight, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, TagsList, ToggleButton, Typography, UpComponentsProvider, analytics, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, generateQueryKey, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination, useToggle };
|
|
11718
|
-
export type { AlertProps, AnalyticsConfig, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeBlockProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FilterPopoverProps, FindUsersButtonProps, FormCheckboxProps, FormDatePickerDateType, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LearnMoreButtonProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PageHeaderV2Props, PaginatedResponse, PopoverProps, RadioProps, RoleBannerProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, ToggleButtonProps, TypographyProps, UseToggleResult };
|
|
11764
|
+
export { ActionToolbar, Alert, Avatar, Badge, Banner, Button, Checkbox, CodeBlock, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FilterPopover, FindUsersButton, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, LearnMoreButton, Link, Loading, Logo, NotFound, PageContainer, PageHeader, PageHeaderV2, Popover, Radio, RoleBanner, Select, Slider, StatusLight, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, TagsList, ToggleButton, Typography, UpComponentsProvider, analytics, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, generateQueryKey, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination, useToggle };
|
|
11765
|
+
export type { ActionToolbarProps, AlertProps, AnalyticsConfig, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeBlockProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FilterPopoverProps, FindUsersButtonProps, FormCheckboxProps, FormDatePickerDateType, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LearnMoreButtonProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PageHeaderV2Props, PaginatedResponse, PopoverProps, RadioProps, RoleBannerProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, ToggleButtonProps, TypographyProps, UseToggleResult };
|