@up42/up-components 4.9.0 → 4.11.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/components/FeatureCard/PlaceholderArea.d.ts +4 -0
- package/dist/cjs/types/components/FeatureCardHeader/FeatureCardHeader.d.ts +11 -0
- package/dist/cjs/types/components/StatusLight/StatusLight.d.ts +46 -0
- package/dist/cjs/types/components/StatusLight/StatusLight.test.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/FeatureCard/PlaceholderArea.d.ts +4 -0
- package/dist/esm/types/components/FeatureCardHeader/FeatureCardHeader.d.ts +11 -0
- package/dist/esm/types/components/StatusLight/StatusLight.d.ts +46 -0
- package/dist/esm/types/components/StatusLight/StatusLight.test.d.ts +1 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +56 -2
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const COLORS: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
error: string;
|
|
9
|
+
info: string;
|
|
10
|
+
neutral: string;
|
|
11
|
+
};
|
|
12
|
+
declare const SIZES: {
|
|
13
|
+
small: {
|
|
14
|
+
circle: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
};
|
|
19
|
+
medium: {
|
|
20
|
+
circle: string;
|
|
21
|
+
fontSize: string;
|
|
22
|
+
fontWeight: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
};
|
|
25
|
+
large: {
|
|
26
|
+
circle: string;
|
|
27
|
+
fontSize: string;
|
|
28
|
+
fontWeight: string;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type Variant = 'filled' | 'half';
|
|
33
|
+
type Color = keyof typeof COLORS;
|
|
34
|
+
type Size = keyof typeof SIZES;
|
|
35
|
+
export type StatusLightProps = {
|
|
36
|
+
label: string;
|
|
37
|
+
variant?: Variant;
|
|
38
|
+
color?: Color;
|
|
39
|
+
size?: Size;
|
|
40
|
+
sx?: SxProps<Theme>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-display-status-light--docs
|
|
44
|
+
*/
|
|
45
|
+
export declare const StatusLight: ({ label, variant, color, size, sx, }: StatusLightProps) => React.JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -46,7 +46,9 @@ 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';
|
|
49
50
|
export { FeatureCardHeaderActions, type IconAction, type MenuAction, type FeatureCardHeaderActionsProps, } from './components/FeatureCardHeaderActions/FeatureCardHeaderActions';
|
|
51
|
+
export { StatusLight, type StatusLightProps } from './components/StatusLight/StatusLight';
|
|
50
52
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
51
53
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
52
54
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|
package/dist/index.d.ts
CHANGED
|
@@ -5124,6 +5124,16 @@ 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
|
+
|
|
5127
5137
|
type IconProps = {
|
|
5128
5138
|
name: keyof typeof icons
|
|
5129
5139
|
} & Omit<SvgIconProps, 'children' | 'inheritViewBox' | 'shapeRendering' | 'viewBox'>
|
|
@@ -5147,6 +5157,50 @@ type FeatureCardHeaderActionsProps = {
|
|
|
5147
5157
|
};
|
|
5148
5158
|
declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React__default.JSX.Element;
|
|
5149
5159
|
|
|
5160
|
+
declare const COLORS: {
|
|
5161
|
+
primary: string;
|
|
5162
|
+
secondary: string;
|
|
5163
|
+
success: string;
|
|
5164
|
+
warning: string;
|
|
5165
|
+
error: string;
|
|
5166
|
+
info: string;
|
|
5167
|
+
neutral: string;
|
|
5168
|
+
};
|
|
5169
|
+
declare const SIZES: {
|
|
5170
|
+
small: {
|
|
5171
|
+
circle: string;
|
|
5172
|
+
fontSize: string;
|
|
5173
|
+
fontWeight: string;
|
|
5174
|
+
lineHeight: string;
|
|
5175
|
+
};
|
|
5176
|
+
medium: {
|
|
5177
|
+
circle: string;
|
|
5178
|
+
fontSize: string;
|
|
5179
|
+
fontWeight: string;
|
|
5180
|
+
lineHeight: string;
|
|
5181
|
+
};
|
|
5182
|
+
large: {
|
|
5183
|
+
circle: string;
|
|
5184
|
+
fontSize: string;
|
|
5185
|
+
fontWeight: string;
|
|
5186
|
+
lineHeight: string;
|
|
5187
|
+
};
|
|
5188
|
+
};
|
|
5189
|
+
type Variant = 'filled' | 'half';
|
|
5190
|
+
type Color = keyof typeof COLORS;
|
|
5191
|
+
type Size = keyof typeof SIZES;
|
|
5192
|
+
type StatusLightProps = {
|
|
5193
|
+
label: string;
|
|
5194
|
+
variant?: Variant;
|
|
5195
|
+
color?: Color;
|
|
5196
|
+
size?: Size;
|
|
5197
|
+
sx?: SxProps<Theme>;
|
|
5198
|
+
};
|
|
5199
|
+
/**
|
|
5200
|
+
* Documentation: https://up-components.up42.com/?path=/docs/data-display-status-light--docs
|
|
5201
|
+
*/
|
|
5202
|
+
declare const StatusLight: ({ label, variant, color, size, sx, }: StatusLightProps) => React__default.JSX.Element;
|
|
5203
|
+
|
|
5150
5204
|
type DocumentationPopoverProps = {
|
|
5151
5205
|
title: string;
|
|
5152
5206
|
children: React__default.ReactNode;
|
|
@@ -5394,5 +5448,5 @@ type ContextState = {
|
|
|
5394
5448
|
*/
|
|
5395
5449
|
declare const useAlert: () => ContextState;
|
|
5396
5450
|
|
|
5397
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, FeatureCard, FeatureCardHeaderActions, 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 };
|
|
5398
|
-
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagProps, TypographyProps };
|
|
5451
|
+
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, 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, StatusLight, 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 };
|
|
5452
|
+
export type { AlertProps, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DatePickerDateType, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FormCheckboxProps, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PaginatedResponse, RadioProps, SelectProps, SliderProps, StatusLightProps, 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.
|
|
3
|
+
"version": "4.11.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": "^6.0
|
|
34
|
+
"@up42/design-system-tokens": "^6.1.0",
|
|
35
35
|
"dayjs": "^1.11.7",
|
|
36
36
|
"prismjs": "^1.29.0"
|
|
37
37
|
},
|