@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.
@@ -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;
@@ -0,0 +1,4 @@
1
+ export { default as INTDark } from './int-dark.svg';
2
+ export { default as INTLight } from './int-light.svg';
3
+ export { default as KSADark } from './ksa-dark.svg';
4
+ export { default as KSALight } from './ksa-light.svg';
@@ -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';