@up42/up-components 4.3.1 → 4.5.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/FormDatePickers/FormDateRangePickerList/FormDateRangePickerList.d.ts +6 -1
- 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/FormDatePickers/FormDateRangePickerList/FormDateRangePickerList.d.ts +6 -1
- 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 +21 -3
- package/package.json +1 -1
|
@@ -24,8 +24,13 @@ export type FormDateRangePickerListProps = {
|
|
|
24
24
|
* Defines the maximum number of days after the "start date" that the "end date" can be selected.
|
|
25
25
|
*/
|
|
26
26
|
maxEndDateOffset?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the text to display in the action button to add a new Date Range.
|
|
29
|
+
* It defaults to "Add new date".
|
|
30
|
+
*/
|
|
31
|
+
addButtonText?: string;
|
|
27
32
|
} & DatePickerWrapperProps & Omit<DateRangePickerProps<DatePickerDateType | Date>, 'value' | 'onChange'>;
|
|
28
33
|
/**
|
|
29
34
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepickerlist--docs
|
|
30
35
|
*/
|
|
31
|
-
export declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, ...props }: FormDateRangePickerListProps) => React.JSX.Element;
|
|
36
|
+
export declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, addButtonText, ...props }: FormDateRangePickerListProps) => React.JSX.Element;
|
|
@@ -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';
|
package/dist/index.d.ts
CHANGED
|
@@ -231,11 +231,16 @@ type FormDateRangePickerListProps = {
|
|
|
231
231
|
* Defines the maximum number of days after the "start date" that the "end date" can be selected.
|
|
232
232
|
*/
|
|
233
233
|
maxEndDateOffset?: number;
|
|
234
|
+
/**
|
|
235
|
+
* Defines the text to display in the action button to add a new Date Range.
|
|
236
|
+
* It defaults to "Add new date".
|
|
237
|
+
*/
|
|
238
|
+
addButtonText?: string;
|
|
234
239
|
} & DatePickerWrapperProps & Omit<DateRangePickerProps<DatePickerDateType | Date>, 'value' | 'onChange'>;
|
|
235
240
|
/**
|
|
236
241
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepickerlist--docs
|
|
237
242
|
*/
|
|
238
|
-
declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, ...props }: FormDateRangePickerListProps) => React__default.JSX.Element;
|
|
243
|
+
declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, addButtonText, ...props }: FormDateRangePickerListProps) => React__default.JSX.Element;
|
|
239
244
|
|
|
240
245
|
type RadioProps = MUIGlobalOmit<RadioProps$1>;
|
|
241
246
|
/**
|
|
@@ -5041,6 +5046,19 @@ type IllustrationProps = {
|
|
|
5041
5046
|
*/
|
|
5042
5047
|
declare function Illustration({ name, size, sx, ...props }: IllustrationProps): React__default.JSX.Element;
|
|
5043
5048
|
|
|
5049
|
+
type LogoProps = {
|
|
5050
|
+
variant?: 'dark' | 'light';
|
|
5051
|
+
/**
|
|
5052
|
+
* use isKSA to toggle between KSA and INT logo versions
|
|
5053
|
+
*/
|
|
5054
|
+
isKSA?: boolean;
|
|
5055
|
+
size?: 'small' | 'medium';
|
|
5056
|
+
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox' | 'fontSize'>;
|
|
5057
|
+
/**
|
|
5058
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-display-logos--docs
|
|
5059
|
+
*/
|
|
5060
|
+
declare function Logo({ variant, isKSA, size, sx, ...props }: LogoProps): React__default.JSX.Element;
|
|
5061
|
+
|
|
5044
5062
|
type BadgeProps = MUIGlobalOmit<BadgeProps$1>;
|
|
5045
5063
|
/**
|
|
5046
5064
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-badge--docs
|
|
@@ -5354,5 +5372,5 @@ type ContextState = {
|
|
|
5354
5372
|
*/
|
|
5355
5373
|
declare const useAlert: () => ContextState;
|
|
5356
5374
|
|
|
5357
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, Link, Loading, NotFound, PageContainer, PageHeader, Radio, Select, Slider, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, Typography, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination };
|
|
5358
|
-
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagProps, TypographyProps };
|
|
5375
|
+
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, 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, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, Typography, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination };
|
|
5376
|
+
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagProps, TypographyProps };
|