@up42/up-components 4.4.0 → 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.
@@ -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';
package/dist/index.d.ts CHANGED
@@ -5046,6 +5046,19 @@ type IllustrationProps = {
5046
5046
  */
5047
5047
  declare function Illustration({ name, size, sx, ...props }: IllustrationProps): React__default.JSX.Element;
5048
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
+
5049
5062
  type BadgeProps = MUIGlobalOmit<BadgeProps$1>;
5050
5063
  /**
5051
5064
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-badge--docs
@@ -5359,5 +5372,5 @@ type ContextState = {
5359
5372
  */
5360
5373
  declare const useAlert: () => ContextState;
5361
5374
 
5362
- 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 };
5363
- 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",