@up42/up-components 1.1.1 → 1.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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ChipProps as MUIChipProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
- export declare type TagProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
4
+ export declare type TagProps = MUIGlobalOmit<Omit<MUIChipProps, 'size' | 'avatar'>>;
5
5
  /**
6
6
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-tag--docs
7
7
  */
@@ -5,7 +5,6 @@ export { UpComponentsProvider } from './global/providers/UpComponentsProvider/Up
5
5
  export { theme } from './global/theme';
6
6
  export { Button, type ButtonProps } from './components/Button/Button';
7
7
  export { Typography, type TypographyProps } from './components/Typography/Typography';
8
- export { Chip, type ChipProps } from './components/Chip/Chip';
9
8
  export { Avatar, type AvatarProps } from './components/Avatar/Avatar';
10
9
  export { Container, type ContainerProps } from './components/Container/Container';
11
10
  export { Box, type BoxProps } from './components/Box/Box';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export { default as tokens } from '@up42/design-system-tokens/dist/json/tokens.json';
3
3
  import * as _mui_material from '@mui/material';
4
- import { BoxProps as BoxProps$1, TextFieldProps, ChipProps as ChipProps$1, AvatarProps as AvatarProps$1, ContainerProps as ContainerProps$1, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, SliderProps as SliderProps$1, LinkProps as LinkProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ModalProps as ModalProps$1, CardProps, AlertProps as AlertProps$1, TooltipProps as TooltipProps$1, SxProps, Theme, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, IconButtonProps, PopoverProps as PopoverProps$1, SvgIconProps, BadgeProps as BadgeProps$1 } from '@mui/material';
4
+ import { BoxProps as BoxProps$1, TextFieldProps, AvatarProps as AvatarProps$1, ContainerProps as ContainerProps$1, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, SliderProps as SliderProps$1, LinkProps as LinkProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ModalProps as ModalProps$1, CardProps, AlertProps as AlertProps$1, TooltipProps as TooltipProps$1, SxProps, Theme, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, IconButtonProps, PopoverProps as PopoverProps$1, SvgIconProps, BadgeProps as BadgeProps$1, ChipProps } from '@mui/material';
5
5
  export * from '@mui/material';
6
6
  import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
7
7
  import * as React from 'react';
@@ -118,12 +118,6 @@ declare const Typography: React__default.ForwardRefExoticComponent<Pick<{
118
118
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2", string>> | undefined;
119
119
  } & _mui_material_OverridableComponent.CommonProps & Omit<any, keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "align" | "component" | "variant" | "innerRef" | ("color" | "fontSize" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "left" | "right" | "top" | "bottom" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, string | number | symbol> & React__default.RefAttributes<HTMLParagraphElement>>;
120
120
 
121
- declare type ChipProps = MUIGlobalOmit<Omit<ChipProps$1, 'size'>>;
122
- /**
123
- * @deprecated Please use [Tags](https://up-components.up42.com/?path=/docs/data-display-tag) instead--docs
124
- */
125
- declare const Chip: ({ label, sx, ...props }: ChipProps) => JSX.Element;
126
-
127
121
  declare type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt' | 'imgProps' | 'sizes' | 'src' | 'srcSet' | 'variant'>, {
128
122
  firstName?: string;
129
123
  lastName?: string;
@@ -1931,7 +1925,7 @@ declare type BadgeProps = MUIGlobalOmit<BadgeProps$1>;
1931
1925
  */
1932
1926
  declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
1933
1927
 
1934
- declare type TagProps = MUIGlobalOmit<Omit<ChipProps$1, 'size'>>;
1928
+ declare type TagProps = MUIGlobalOmit<Omit<ChipProps, 'size' | 'avatar'>>;
1935
1929
  /**
1936
1930
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-tag--docs
1937
1931
  */
@@ -2135,4 +2129,4 @@ declare type ContextState = {
2135
2129
  */
2136
2130
  declare const useAlert: () => ContextState;
2137
2131
 
2138
- export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeInline, CodeInlineProps, CodeSnippet, CodeSnippetItemProps, CodeSnippetProps, ContactBox, ContactBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DatePickerDateType, DateTime, DateTimeProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormDatePicker, FormDatePickerProps, FormDateRangePicker, FormDateRangePickerProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
2132
+ export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, CodeInline, CodeInlineProps, CodeSnippet, CodeSnippetItemProps, CodeSnippetProps, ContactBox, ContactBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DatePickerDateType, DateTime, DateTimeProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormDatePicker, FormDatePickerProps, FormDateRangePicker, FormDateRangePickerProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",
@@ -28,7 +28,7 @@
28
28
  "format": "prettier --write ./**/*.mdx"
29
29
  },
30
30
  "dependencies": {
31
- "@up42/design-system-tokens": "^5.0.4",
31
+ "@up42/design-system-tokens": "^5.0.6",
32
32
  "dayjs": "^1.11.7",
33
33
  "prismjs": "^1.29.0"
34
34
  },
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChipProps as MUIChipProps } from '@mui/material';
3
- import { MUIGlobalOmit } from '@global/utils/types';
4
- export declare type ChipProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
5
- /**
6
- * @deprecated Please use [Tags](https://up-components.up42.com/?path=/docs/data-display-tag) instead--docs
7
- */
8
- export declare const Chip: ({ label, sx, ...props }: ChipProps) => JSX.Element;
@@ -1,72 +0,0 @@
1
- export declare const MuiChip: {
2
- styleOverrides: {
3
- fontSize: string;
4
- fontWeight: number;
5
- borderRadius: number;
6
- fontFamily: string;
7
- '& .MuiChip-icon': {
8
- width: string;
9
- height: string;
10
- marginLeft: string;
11
- };
12
- '&.MuiChip-colorDefault': {
13
- backgroundColor: string;
14
- color: string;
15
- '&.MuiChip-clickable:hover': {
16
- backgroundColor: string;
17
- };
18
- };
19
- '&.MuiChip-colorPrimary': {
20
- backgroundColor: string;
21
- color: string;
22
- '&.MuiChip-clickable:hover': {
23
- backgroundColor: string;
24
- };
25
- '& .MuiChip-deleteIcon': {
26
- color: string;
27
- };
28
- };
29
- '&.MuiChip-colorSecondary': {
30
- backgroundColor: string;
31
- color: string;
32
- '& .MuiChip-deleteIcon': {
33
- color: string;
34
- };
35
- '&.MuiChip-clickable:hover': {
36
- backgroundColor: string;
37
- };
38
- };
39
- '&.MuiChip-colorError': {
40
- backgroundColor: string;
41
- color: string;
42
- '& .MuiChip-deleteIcon': {
43
- color: string;
44
- };
45
- '&.MuiChip-clickable:hover': {
46
- backgroundColor: string;
47
- };
48
- };
49
- '&.MuiChip-colorInfo': {
50
- backgroundColor: string;
51
- color: string;
52
- '& .MuiChip-deleteIcon': {
53
- color: string;
54
- };
55
- '&.MuiChip-clickable:hover': {
56
- backgroundColor: string;
57
- };
58
- };
59
- '&.MuiChip-colorSuccess': {
60
- backgroundColor: string;
61
- color: string;
62
- '&.MuiChip-clickable:hover': {
63
- backgroundColor: string;
64
- };
65
- };
66
- '&.MuiChip-colorWarning': {
67
- '&.MuiChip-clickable:hover': {
68
- backgroundColor: string;
69
- };
70
- };
71
- };
72
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChipProps as MUIChipProps } from '@mui/material';
3
- import { MUIGlobalOmit } from '@global/utils/types';
4
- export declare type ChipProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
5
- /**
6
- * @deprecated Please use [Tags](https://up-components.up42.com/?path=/docs/data-display-tag) instead--docs
7
- */
8
- export declare const Chip: ({ label, sx, ...props }: ChipProps) => JSX.Element;
@@ -1,72 +0,0 @@
1
- export declare const MuiChip: {
2
- styleOverrides: {
3
- fontSize: string;
4
- fontWeight: number;
5
- borderRadius: number;
6
- fontFamily: string;
7
- '& .MuiChip-icon': {
8
- width: string;
9
- height: string;
10
- marginLeft: string;
11
- };
12
- '&.MuiChip-colorDefault': {
13
- backgroundColor: string;
14
- color: string;
15
- '&.MuiChip-clickable:hover': {
16
- backgroundColor: string;
17
- };
18
- };
19
- '&.MuiChip-colorPrimary': {
20
- backgroundColor: string;
21
- color: string;
22
- '&.MuiChip-clickable:hover': {
23
- backgroundColor: string;
24
- };
25
- '& .MuiChip-deleteIcon': {
26
- color: string;
27
- };
28
- };
29
- '&.MuiChip-colorSecondary': {
30
- backgroundColor: string;
31
- color: string;
32
- '& .MuiChip-deleteIcon': {
33
- color: string;
34
- };
35
- '&.MuiChip-clickable:hover': {
36
- backgroundColor: string;
37
- };
38
- };
39
- '&.MuiChip-colorError': {
40
- backgroundColor: string;
41
- color: string;
42
- '& .MuiChip-deleteIcon': {
43
- color: string;
44
- };
45
- '&.MuiChip-clickable:hover': {
46
- backgroundColor: string;
47
- };
48
- };
49
- '&.MuiChip-colorInfo': {
50
- backgroundColor: string;
51
- color: string;
52
- '& .MuiChip-deleteIcon': {
53
- color: string;
54
- };
55
- '&.MuiChip-clickable:hover': {
56
- backgroundColor: string;
57
- };
58
- };
59
- '&.MuiChip-colorSuccess': {
60
- backgroundColor: string;
61
- color: string;
62
- '&.MuiChip-clickable:hover': {
63
- backgroundColor: string;
64
- };
65
- };
66
- '&.MuiChip-colorWarning': {
67
- '&.MuiChip-clickable:hover': {
68
- backgroundColor: string;
69
- };
70
- };
71
- };
72
- };
@@ -1 +0,0 @@
1
- export {};