@up42/up-components 4.11.0 → 5.0.0-tokens.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "4.11.0",
3
+ "version": "5.0.0-tokens.1",
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.1.0",
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,4 +0,0 @@
1
- import React from 'react';
2
- export declare const PlaceholderArea: ({ children }: {
3
- children: React.ReactNode;
4
- }) => 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;
@@ -1,46 +0,0 @@
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 {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const PlaceholderArea: ({ children }: {
3
- children: React.ReactNode;
4
- }) => 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;
@@ -1,46 +0,0 @@
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 {};