@up42/up-components 4.10.0 → 5.0.0-tokens.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/index.d.ts +0 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/index.d.ts +0 -2
- package/dist/index.d.ts +4 -37
- package/package.json +2 -2
- package/dist/cjs/types/components/FeatureCard/PlaceholderArea.d.ts +0 -4
- package/dist/cjs/types/components/FeatureCardHeader/FeatureCardHeader.d.ts +0 -11
- package/dist/cjs/types/components/FeatureCardHeaderActions/FeatureCardHeaderActions.d.ts +0 -21
- package/dist/esm/types/components/FeatureCard/PlaceholderArea.d.ts +0 -4
- package/dist/esm/types/components/FeatureCardHeader/FeatureCardHeader.d.ts +0 -11
- package/dist/esm/types/components/FeatureCardHeaderActions/FeatureCardHeaderActions.d.ts +0 -21
|
@@ -46,8 +46,6 @@ export { Tag, type TagProps } from './components/Tag/Tag';
|
|
|
46
46
|
export { DateTime, type DateTimeProps } from './components/DateTime/DateTime';
|
|
47
47
|
export { Divider, type DividerProps } from './components/Divider/Divider';
|
|
48
48
|
export { FeatureCard, type FeatureCardProps } from './components/FeatureCard/FeatureCard';
|
|
49
|
-
export { FeatureCardHeader, type FeatureCardHeaderProps } from './components/FeatureCardHeader/FeatureCardHeader';
|
|
50
|
-
export { FeatureCardHeaderActions, type IconAction, type MenuAction, type FeatureCardHeaderActionsProps, } from './components/FeatureCardHeaderActions/FeatureCardHeaderActions';
|
|
51
49
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
52
50
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
53
51
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|
package/dist/index.d.ts
CHANGED
|
@@ -4641,14 +4641,14 @@ declare namespace icons {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
}
|
|
4643
4643
|
|
|
4644
|
-
type IconProps
|
|
4644
|
+
type IconProps = {
|
|
4645
4645
|
name: keyof typeof icons;
|
|
4646
4646
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox'>;
|
|
4647
4647
|
/**
|
|
4648
4648
|
* Documentation: https://up-components.up42.com/?path=/docs/data-display-icon--docs
|
|
4649
4649
|
* Icons: https://up-components.up42.com/?path=/docs/icons--docs
|
|
4650
4650
|
*/
|
|
4651
|
-
declare const Icon: ({ name, ...props }: IconProps
|
|
4651
|
+
declare const Icon: ({ name, ...props }: IconProps) => React__default.JSX.Element;
|
|
4652
4652
|
|
|
4653
4653
|
var _path$4, _path2$4, _path3$4, _path4$4, _path5$4, _path6$4, _path7$4, _path8$4, _circle, _path9$3, _path0$3;
|
|
4654
4654
|
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
@@ -5124,39 +5124,6 @@ type FeatureCardProps = CardProps & {
|
|
|
5124
5124
|
};
|
|
5125
5125
|
declare const FeatureCard: ({ children, header, footer, banner, isSelectable, selected, isHoverable, hovered, ...props }: FeatureCardProps) => React__default.JSX.Element;
|
|
5126
5126
|
|
|
5127
|
-
type FeatureCardHeaderProps = {
|
|
5128
|
-
header: string;
|
|
5129
|
-
subheader?: string;
|
|
5130
|
-
imageUrl?: string;
|
|
5131
|
-
selected?: boolean;
|
|
5132
|
-
onSelectChange?: CheckboxProps['onChange'];
|
|
5133
|
-
isLoading?: boolean;
|
|
5134
|
-
};
|
|
5135
|
-
declare const FeatureCardHeader: ({ header, subheader, imageUrl, selected, onSelectChange, isLoading, }: FeatureCardHeaderProps) => React__default.JSX.Element;
|
|
5136
|
-
|
|
5137
|
-
type IconProps = {
|
|
5138
|
-
name: keyof typeof icons
|
|
5139
|
-
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox'>
|
|
5140
|
-
|
|
5141
|
-
type IconAction = {
|
|
5142
|
-
name: IconProps['name'];
|
|
5143
|
-
tooltip?: string;
|
|
5144
|
-
isActive?: boolean;
|
|
5145
|
-
onClick: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
5146
|
-
isDisabled?: boolean;
|
|
5147
|
-
sx?: SxProps;
|
|
5148
|
-
};
|
|
5149
|
-
type MenuAction = {
|
|
5150
|
-
label: string;
|
|
5151
|
-
onClick: (event: React__default.MouseEvent<HTMLLIElement>) => void;
|
|
5152
|
-
sx?: SxProps;
|
|
5153
|
-
};
|
|
5154
|
-
type FeatureCardHeaderActionsProps = {
|
|
5155
|
-
iconActions?: IconAction[];
|
|
5156
|
-
menuActions?: MenuAction[];
|
|
5157
|
-
};
|
|
5158
|
-
declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React__default.JSX.Element;
|
|
5159
|
-
|
|
5160
5127
|
type DocumentationPopoverProps = {
|
|
5161
5128
|
title: string;
|
|
5162
5129
|
children: React__default.ReactNode;
|
|
@@ -5404,5 +5371,5 @@ type ContextState = {
|
|
|
5404
5371
|
*/
|
|
5405
5372
|
declare const useAlert: () => ContextState;
|
|
5406
5373
|
|
|
5407
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, FeatureCard,
|
|
5408
|
-
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps,
|
|
5374
|
+
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, FeatureCard, 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 };
|
|
5375
|
+
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps, FeatureCardProps, 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": "
|
|
3
|
+
"version": "5.0.0-tokens.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"optimize-icons": "svgo -f src/global/icons"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@up42/design-system-tokens": "^
|
|
34
|
+
"@up42/design-system-tokens": "^7.0.0-tokens.1",
|
|
35
35
|
"dayjs": "^1.11.7",
|
|
36
36
|
"prismjs": "^1.29.0"
|
|
37
37
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckboxProps } from '../Checkbox/Checkbox';
|
|
3
|
-
export type FeatureCardHeaderProps = {
|
|
4
|
-
header: string;
|
|
5
|
-
subheader?: string;
|
|
6
|
-
imageUrl?: string;
|
|
7
|
-
selected?: boolean;
|
|
8
|
-
onSelectChange?: CheckboxProps['onChange'];
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const FeatureCardHeader: ({ header, subheader, imageUrl, selected, onSelectChange, isLoading, }: FeatureCardHeaderProps) => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
|
-
import { IconProps } from 'components/Icon/Icon';
|
|
4
|
-
export type IconAction = {
|
|
5
|
-
name: IconProps['name'];
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
sx?: SxProps;
|
|
11
|
-
};
|
|
12
|
-
export type MenuAction = {
|
|
13
|
-
label: string;
|
|
14
|
-
onClick: (event: React.MouseEvent<HTMLLIElement>) => void;
|
|
15
|
-
sx?: SxProps;
|
|
16
|
-
};
|
|
17
|
-
export type FeatureCardHeaderActionsProps = {
|
|
18
|
-
iconActions?: IconAction[];
|
|
19
|
-
menuActions?: MenuAction[];
|
|
20
|
-
};
|
|
21
|
-
export declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React.JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckboxProps } from '../Checkbox/Checkbox';
|
|
3
|
-
export type FeatureCardHeaderProps = {
|
|
4
|
-
header: string;
|
|
5
|
-
subheader?: string;
|
|
6
|
-
imageUrl?: string;
|
|
7
|
-
selected?: boolean;
|
|
8
|
-
onSelectChange?: CheckboxProps['onChange'];
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const FeatureCardHeader: ({ header, subheader, imageUrl, selected, onSelectChange, isLoading, }: FeatureCardHeaderProps) => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
|
-
import { IconProps } from 'components/Icon/Icon';
|
|
4
|
-
export type IconAction = {
|
|
5
|
-
name: IconProps['name'];
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
sx?: SxProps;
|
|
11
|
-
};
|
|
12
|
-
export type MenuAction = {
|
|
13
|
-
label: string;
|
|
14
|
-
onClick: (event: React.MouseEvent<HTMLLIElement>) => void;
|
|
15
|
-
sx?: SxProps;
|
|
16
|
-
};
|
|
17
|
-
export type FeatureCardHeaderActionsProps = {
|
|
18
|
-
iconActions?: IconAction[];
|
|
19
|
-
menuActions?: MenuAction[];
|
|
20
|
-
};
|
|
21
|
-
export declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React.JSX.Element;
|