@up42/up-components 0.8.3 → 0.9.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.
@@ -3,6 +3,6 @@ import { ChipProps as MUIChipProps } from '@mui/material';
3
3
  import { MUIGlobalOmit } from '@global/utils/types';
4
4
  export declare type ChipProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
5
5
  /**
6
- * Documentation: https://up-components.up42.dev/?path=/docs/data-display-chip
6
+ * @deprecated Please use [Tags](https://up-components.up42.dev/?path=/docs/data-display-tag) instead
7
7
  */
8
- export declare const Chip: ({ label, ...props }: ChipProps) => JSX.Element;
8
+ export declare const Chip: ({ label, sx, ...props }: ChipProps) => JSX.Element;
@@ -1,2 +1,72 @@
1
- import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
- export declare const MuiChip: OverridesStyleRules;
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
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ChipProps as MUIChipProps } from '@mui/material';
3
+ import { MUIGlobalOmit } from '@global/utils/types';
4
+ export declare type TagProps = MUIGlobalOmit<Omit<MUIChipProps, 'size'>>;
5
+ /**
6
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-tag
7
+ * @beta this component is still in development
8
+ */
9
+ export declare const Tag: ({ color, ...props }: TagProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ export declare const MuiChip: OverridesStyleRules;
@@ -0,0 +1 @@
1
+ export {};
@@ -75,3 +75,4 @@ export { default as KeyboardArrowUp } from '@mui/icons-material/KeyboardArrowUp'
75
75
  export { default as KeyboardArrowDown } from '@mui/icons-material/KeyboardArrowDown';
76
76
  export { default as KeyboardArrowLeft } from '@mui/icons-material/KeyboardArrowLeft';
77
77
  export { default as KeyboardArrowRight } from '@mui/icons-material/KeyboardArrowRight';
78
+ export { default as Balance } from '@mui/icons-material/Balance';
@@ -37,6 +37,8 @@ export { PageHeader, type PageHeaderProps } from './components/PageHeader/PageHe
37
37
  export { NotFound } from './components/NotFound/NotFound';
38
38
  export { Loading, type LoadingProps } from './components/Loading/Loading';
39
39
  export { Icon, type IconProps } from './components/Icon/Icon';
40
+ export { Badge, type BadgeProps } from './components/Badge/Badge';
41
+ export { Tag, type TagProps } from './components/Tag/Tag';
40
42
  export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
41
43
  export { CodeBox, type CodeBoxProps } from './components/CodeBox/CodeBox';
42
44
  export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, TableFooter, TablePagination, TableSortLabel, type TableProps, type TableBodyProps, type TableCellProps, type TableHeadProps, type TableContainerProps, type TableRowProps, type TableFooterProps, type TablePaginationProps, type TableSortLabelProps, } from './components/Table/Table';
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, 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, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, IconButtonProps, PopoverProps as PopoverProps$1, SvgIconProps } 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, 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, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, IconButtonProps, PopoverProps as PopoverProps$1, SvgIconProps, BadgeProps as BadgeProps$1 } 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';
@@ -35,6 +35,7 @@ import KeyboardArrowUp from '@mui/icons-material/KeyboardArrowUp';
35
35
  import KeyboardArrowDown from '@mui/icons-material/KeyboardArrowDown';
36
36
  import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';
37
37
  import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
38
+ import Balance from '@mui/icons-material/Balance';
38
39
  import { TableProps as TableProps$1 } from '@mui/material/Table';
39
40
  import { TableBodyProps as TableBodyProps$1 } from '@mui/material/TableBody';
40
41
  import { TableCellProps as TableCellProps$1 } from '@mui/material/TableCell';
@@ -114,9 +115,9 @@ declare const Typography: React__default.ForwardRefExoticComponent<Pick<{
114
115
 
115
116
  declare type ChipProps = MUIGlobalOmit<Omit<ChipProps$1, 'size'>>;
116
117
  /**
117
- * Documentation: https://up-components.up42.dev/?path=/docs/data-display-chip
118
+ * @deprecated Please use [Tags](https://up-components.up42.dev/?path=/docs/data-display-tag) instead
118
119
  */
119
- declare const Chip: ({ label, ...props }: ChipProps) => JSX.Element;
120
+ declare const Chip: ({ label, sx, ...props }: ChipProps) => JSX.Element;
120
121
 
121
122
  declare type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt' | 'imgProps' | 'sizes' | 'src' | 'srcSet' | 'variant'>, {
122
123
  firstName?: string;
@@ -1633,6 +1634,7 @@ declare const icons_KeyboardArrowUp: typeof KeyboardArrowUp;
1633
1634
  declare const icons_KeyboardArrowDown: typeof KeyboardArrowDown;
1634
1635
  declare const icons_KeyboardArrowLeft: typeof KeyboardArrowLeft;
1635
1636
  declare const icons_KeyboardArrowRight: typeof KeyboardArrowRight;
1637
+ declare const icons_Balance: typeof Balance;
1636
1638
  declare namespace icons {
1637
1639
  export {
1638
1640
  SvgAppWindowCode as AppWindowCode,
@@ -1712,6 +1714,7 @@ declare namespace icons {
1712
1714
  icons_KeyboardArrowDown as KeyboardArrowDown,
1713
1715
  icons_KeyboardArrowLeft as KeyboardArrowLeft,
1714
1716
  icons_KeyboardArrowRight as KeyboardArrowRight,
1717
+ icons_Balance as Balance,
1715
1718
  };
1716
1719
  }
1717
1720
 
@@ -1724,6 +1727,19 @@ declare type IconProps = {
1724
1727
  */
1725
1728
  declare const Icon: ({ name, ...props }: IconProps) => JSX.Element;
1726
1729
 
1730
+ declare type BadgeProps = MUIGlobalOmit<BadgeProps$1>;
1731
+ /**
1732
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-badge
1733
+ */
1734
+ declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
1735
+
1736
+ declare type TagProps = MUIGlobalOmit<Omit<ChipProps$1, 'size'>>;
1737
+ /**
1738
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-tag
1739
+ * @beta this component is still in development
1740
+ */
1741
+ declare const Tag: ({ color, ...props }: TagProps) => JSX.Element;
1742
+
1727
1743
  declare type DocumentationPopoverProps = {
1728
1744
  heading: string;
1729
1745
  /**
@@ -1858,4 +1874,4 @@ declare type ContextState = {
1858
1874
  */
1859
1875
  declare const useAlert: () => ContextState;
1860
1876
 
1861
- export { Alert, AlertProps, Avatar, AvatarProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CreateAlertProps, DataGrid, DataGridProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, 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, 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, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, theme, useAlert, useQueryParams, useRemotePagination };
1877
+ export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, CodeBox, CodeBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CreateAlertProps, DataGrid, DataGridProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, 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, 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, theme, useAlert, useQueryParams, useRemotePagination };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",