@up42/up-components 0.0.21 → 0.1.2
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/README.md +152 -2
- package/dist/cjs/index.js +1 -150
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +9 -0
- package/dist/cjs/types/{global/overrides/avatar.d.ts → components/Avatar/Avatar.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Avatar/Avatar.stories.d.ts +7 -0
- package/dist/cjs/types/components/Avatar/Avatar.test.d.ts +1 -0
- package/dist/cjs/types/components/Box/Box.d.ts +5 -0
- package/dist/cjs/types/components/Box/Box.stories.d.ts +5 -0
- package/dist/cjs/types/components/Box/Box.test.d.ts +1 -0
- package/dist/cjs/types/components/Button/Button.d.ts +2 -3
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/cjs/types/{global/overrides/form/checkbox.d.ts → components/Checkbox/Checkbox.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +4 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/cjs/types/components/Chip/Chip.d.ts +5 -0
- package/dist/cjs/types/components/Chip/Chip.overrides.d.ts +2 -0
- package/dist/cjs/types/components/Chip/Chip.stories.d.ts +5 -0
- package/dist/cjs/types/components/Chip/Chip.test.d.ts +1 -0
- package/dist/cjs/types/components/Container/Container.d.ts +27 -0
- package/dist/cjs/types/components/Container/Container.overrides.d.ts +2 -0
- package/dist/cjs/types/components/Container/Container.stories.d.ts +5 -0
- package/dist/cjs/types/components/Container/Container.test.d.ts +1 -0
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.d.ts +13 -0
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.stories.d.ts +8 -0
- package/dist/cjs/types/components/FormCheckbox/FormCheckbox.test.d.ts +1 -0
- package/dist/cjs/types/components/FormInput/FormInput.d.ts +9 -0
- package/dist/cjs/types/components/FormInput/FormInput.stories.d.ts +7 -0
- package/dist/cjs/types/components/FormInput/FormInput.test.d.ts +1 -0
- package/dist/cjs/types/components/FormRadio/FormRadio.d.ts +14 -0
- package/dist/cjs/types/components/FormRadio/FormRadio.stories.d.ts +8 -0
- package/dist/cjs/types/components/FormRadio/FormRadio.test.d.ts +1 -0
- package/dist/cjs/types/components/FormSelect/FormSelect.d.ts +13 -0
- package/dist/cjs/types/components/FormSelect/FormSelect.stories.d.ts +7 -0
- package/dist/cjs/types/components/FormSelect/FormSelect.test.d.ts +1 -0
- package/dist/cjs/types/components/FormSwitch/FormSwitch.d.ts +8 -0
- package/dist/cjs/types/components/FormSwitch/FormSwitch.stories.d.ts +6 -0
- package/dist/cjs/types/components/FormSwitch/FormSwitch.test.d.ts +1 -0
- package/dist/cjs/types/components/Input/Input.d.ts +7 -0
- package/dist/{esm/types/global/overrides/form/input.d.ts → cjs/types/components/Input/Input.overrides.d.ts} +1 -0
- package/dist/cjs/types/components/Input/Input.stories.d.ts +6 -0
- package/dist/cjs/types/components/Input/Input.test.d.ts +1 -0
- package/dist/cjs/types/components/Radio/Radio.d.ts +5 -0
- package/dist/cjs/types/{global/overrides/form/radio.d.ts → components/Radio/Radio.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Radio/Radio.stories.d.ts +4 -0
- package/dist/cjs/types/components/Radio/Radio.test.d.ts +1 -0
- package/dist/cjs/types/components/Select/Select.d.ts +5 -0
- package/dist/cjs/types/components/Select/Select.overrides.d.ts +2 -0
- package/dist/cjs/types/components/Select/Select.stories.d.ts +6 -0
- package/dist/cjs/types/components/Select/Select.test.d.ts +1 -0
- package/dist/cjs/types/components/Switch/Switch.d.ts +7 -0
- package/dist/cjs/types/{global/overrides/form/switch.d.ts → components/Switch/Switch.overrides.d.ts} +0 -0
- package/dist/cjs/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/cjs/types/components/Switch/Switch.test.d.ts +1 -0
- package/dist/cjs/types/components/Typography/Typography.d.ts +2 -3
- package/dist/cjs/types/components/index.d.ts +16 -4
- package/dist/cjs/types/global/UpComponentsProvider/UpComponentsProvider.d.ts +3 -0
- package/dist/cjs/types/global/overrides/index.d.ts +0 -6
- package/dist/cjs/types/global/theme.d.ts +1 -2
- package/dist/cjs/types/global/tokens/colors/colors.components.d.ts +5 -0
- package/dist/cjs/types/global/tokens/components/CodeSnippet.d.ts +6 -0
- package/dist/cjs/types/global/tokens/components/CopyToClipboard.d.ts +4 -0
- package/dist/cjs/types/global/tokens/components/Header.d.ts +5 -0
- package/dist/cjs/types/global/tokens/components/Table.d.ts +9 -0
- package/dist/cjs/types/global/tokens/spacing/spacing.components.d.ts +5 -0
- package/dist/cjs/types/global/tokens/typogrpahy/typography.components.d.ts +4 -0
- package/dist/cjs/types/index.d.ts +6 -4
- package/dist/esm/index.js +2 -137
- package/dist/esm/types/components/Avatar/Avatar.d.ts +9 -0
- package/dist/esm/types/{global/overrides/avatar.d.ts → components/Avatar/Avatar.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Avatar/Avatar.stories.d.ts +7 -0
- package/dist/esm/types/components/Avatar/Avatar.test.d.ts +1 -0
- package/dist/esm/types/components/Box/Box.d.ts +5 -0
- package/dist/esm/types/components/Box/Box.stories.d.ts +5 -0
- package/dist/esm/types/components/Box/Box.test.d.ts +1 -0
- package/dist/esm/types/components/Button/Button.d.ts +2 -3
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/esm/types/{global/overrides/form/checkbox.d.ts → components/Checkbox/Checkbox.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +4 -0
- package/dist/esm/types/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/esm/types/components/Chip/Chip.d.ts +5 -0
- package/dist/esm/types/components/Chip/Chip.overrides.d.ts +2 -0
- package/dist/esm/types/components/Chip/Chip.stories.d.ts +5 -0
- package/dist/esm/types/components/Chip/Chip.test.d.ts +1 -0
- package/dist/esm/types/components/Container/Container.d.ts +27 -0
- package/dist/esm/types/components/Container/Container.overrides.d.ts +2 -0
- package/dist/esm/types/components/Container/Container.stories.d.ts +5 -0
- package/dist/esm/types/components/Container/Container.test.d.ts +1 -0
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.d.ts +13 -0
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.stories.d.ts +8 -0
- package/dist/esm/types/components/FormCheckbox/FormCheckbox.test.d.ts +1 -0
- package/dist/esm/types/components/FormInput/FormInput.d.ts +9 -0
- package/dist/esm/types/components/FormInput/FormInput.stories.d.ts +7 -0
- package/dist/esm/types/components/FormInput/FormInput.test.d.ts +1 -0
- package/dist/esm/types/components/FormRadio/FormRadio.d.ts +14 -0
- package/dist/esm/types/components/FormRadio/FormRadio.stories.d.ts +8 -0
- package/dist/esm/types/components/FormRadio/FormRadio.test.d.ts +1 -0
- package/dist/esm/types/components/FormSelect/FormSelect.d.ts +13 -0
- package/dist/esm/types/components/FormSelect/FormSelect.stories.d.ts +7 -0
- package/dist/esm/types/components/FormSelect/FormSelect.test.d.ts +1 -0
- package/dist/esm/types/components/FormSwitch/FormSwitch.d.ts +8 -0
- package/dist/esm/types/components/FormSwitch/FormSwitch.stories.d.ts +6 -0
- package/dist/esm/types/components/FormSwitch/FormSwitch.test.d.ts +1 -0
- package/dist/esm/types/components/Input/Input.d.ts +7 -0
- package/dist/{cjs/types/global/overrides/form/input.d.ts → esm/types/components/Input/Input.overrides.d.ts} +1 -0
- package/dist/esm/types/components/Input/Input.stories.d.ts +6 -0
- package/dist/esm/types/components/Input/Input.test.d.ts +1 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +5 -0
- package/dist/esm/types/{global/overrides/form/radio.d.ts → components/Radio/Radio.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Radio/Radio.stories.d.ts +4 -0
- package/dist/esm/types/components/Radio/Radio.test.d.ts +1 -0
- package/dist/esm/types/components/Select/Select.d.ts +5 -0
- package/dist/esm/types/components/Select/Select.overrides.d.ts +2 -0
- package/dist/esm/types/components/Select/Select.stories.d.ts +6 -0
- package/dist/esm/types/components/Select/Select.test.d.ts +1 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +7 -0
- package/dist/esm/types/{global/overrides/form/switch.d.ts → components/Switch/Switch.overrides.d.ts} +0 -0
- package/dist/esm/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/esm/types/components/Switch/Switch.test.d.ts +1 -0
- package/dist/esm/types/components/Typography/Typography.d.ts +2 -3
- package/dist/esm/types/components/index.d.ts +16 -4
- package/dist/esm/types/global/UpComponentsProvider/UpComponentsProvider.d.ts +3 -0
- package/dist/esm/types/global/overrides/index.d.ts +0 -6
- package/dist/esm/types/global/theme.d.ts +1 -2
- package/dist/esm/types/global/tokens/colors/colors.components.d.ts +5 -0
- package/dist/esm/types/global/tokens/components/CodeSnippet.d.ts +6 -0
- package/dist/esm/types/global/tokens/components/CopyToClipboard.d.ts +4 -0
- package/dist/esm/types/global/tokens/components/Header.d.ts +5 -0
- package/dist/esm/types/global/tokens/components/Table.d.ts +9 -0
- package/dist/esm/types/global/tokens/spacing/spacing.components.d.ts +5 -0
- package/dist/esm/types/global/tokens/typogrpahy/typography.components.d.ts +4 -0
- package/dist/esm/types/index.d.ts +6 -4
- package/dist/index.d.ts +114 -27
- package/package.json +21 -2
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/global/UpComponentsProvider/index.d.ts +0 -4
- package/dist/cjs/types/global/overrides/container.d.ts +0 -2
- package/dist/cjs/types/tokens/colors.stories.d.ts +0 -5
- package/dist/cjs/types/tokens/elevation.stories.d.ts +0 -5
- package/dist/cjs/types/tokens/grid.stories.d.ts +0 -5
- package/dist/cjs/types/tokens/spacing.stories.d.ts +0 -5
- package/dist/cjs/types/tokens/typography.stories.d.ts +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/global/UpComponentsProvider/index.d.ts +0 -4
- package/dist/esm/types/global/overrides/container.d.ts +0 -2
- package/dist/esm/types/tokens/colors.stories.d.ts +0 -5
- package/dist/esm/types/tokens/elevation.stories.d.ts +0 -5
- package/dist/esm/types/tokens/grid.stories.d.ts +0 -5
- package/dist/esm/types/tokens/spacing.stories.d.ts +0 -5
- package/dist/esm/types/tokens/typography.stories.d.ts +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
export declare const Chip: ({ label, ...props }: ChipProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: Story<Omit<Omit<import("@mui/material").ChipProps<"div", {}>, "size">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation">>;
|
|
5
|
+
export declare const ColorVariants: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContainerProps as MUIContainerProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type ContainerProps = MUIGlobalOmit<Omit<MUIContainerProps, 'maxWidth'>, {
|
|
5
|
+
/**
|
|
6
|
+
* Determine the max-width of the container.
|
|
7
|
+
*/
|
|
8
|
+
size?: 'small' | 'medium' | 'large' | 'fluid';
|
|
9
|
+
/**
|
|
10
|
+
* The component used for the root node.
|
|
11
|
+
* Either a string to use a HTML element or a component.
|
|
12
|
+
*/
|
|
13
|
+
component?: React.ElementType;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* In order to maximize the available horizontal space of the UI we use a central column system layout.
|
|
17
|
+
*
|
|
18
|
+
* The header of a page is always `fluid`. The content section will use one of the following layouts:
|
|
19
|
+
*
|
|
20
|
+
* - `small`: 6 columns.
|
|
21
|
+
* - `medium`: 8 columns.
|
|
22
|
+
* - `large`: 12 columns.
|
|
23
|
+
* - `fluid`: full width (maps).
|
|
24
|
+
*
|
|
25
|
+
* To now more about the requirements please check here: https://up42.atlassian.net/browse/B2B-215.
|
|
26
|
+
*/
|
|
27
|
+
export declare const Container: ({ component, size, children, ...props }: ContainerProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
3
|
+
import { CheckboxProps } from '../Checkbox/Checkbox';
|
|
4
|
+
export declare type FormCheckboxProps = MUIGlobalOmit<CheckboxProps, {
|
|
5
|
+
data: {
|
|
6
|
+
value: string | number;
|
|
7
|
+
label?: string;
|
|
8
|
+
}[];
|
|
9
|
+
label?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const FormCheckbox: ({ id, required, data, label, error, helperText }: FormCheckboxProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { FormCheckboxProps } from './FormCheckbox';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Primary: Story<React.PropsWithChildren<FormCheckboxProps>>;
|
|
7
|
+
export declare const Required: Story<React.PropsWithChildren<FormCheckboxProps>>;
|
|
8
|
+
export declare const withError: Story<React.PropsWithChildren<FormCheckboxProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps } from '../Input/Input';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type FormInputProps = MUIGlobalOmit<InputProps, {
|
|
5
|
+
label?: string;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
helperText?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const FormInput: ({ id, required, label, error, helperText, ...props }: FormInputProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { FormInputProps } from './FormInput';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<FormInputProps>;
|
|
6
|
+
export declare const Required: Story<FormInputProps>;
|
|
7
|
+
export declare const withError: Story<FormInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioGroupProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type FormRadioProps = MUIGlobalOmit<RadioGroupProps, {
|
|
5
|
+
data: {
|
|
6
|
+
value: string | number;
|
|
7
|
+
label?: string;
|
|
8
|
+
}[];
|
|
9
|
+
helperText?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const FormRadio: ({ id, helperText, label, error, required, name, data }: FormRadioProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { FormRadioProps } from './FormRadio';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Primary: Story<React.PropsWithChildren<FormRadioProps>>;
|
|
7
|
+
export declare const Required: Story<React.PropsWithChildren<FormRadioProps>>;
|
|
8
|
+
export declare const withError: Story<React.PropsWithChildren<FormRadioProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
3
|
+
import { SelectProps } from '../Select/Select';
|
|
4
|
+
export declare type FormSelectProps = MUIGlobalOmit<SelectProps, {
|
|
5
|
+
options: {
|
|
6
|
+
value: string | number;
|
|
7
|
+
text: string;
|
|
8
|
+
}[];
|
|
9
|
+
label?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const FormSelect: ({ id, required, options, label, error, placeholder, helperText, }: FormSelectProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { FormSelectProps } from './FormSelect';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<FormSelectProps>;
|
|
6
|
+
export declare const Required: Story<FormSelectProps>;
|
|
7
|
+
export declare const withError: Story<FormSelectProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SwitchProps } from '../Switch/Switch';
|
|
3
|
+
export interface FormSwitchProps extends SwitchProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const FormSwitch: ({ id, label, checked }: FormSwitchProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { FormSwitchProps } from './FormSwitch';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Primary: Story<React.PropsWithChildren<FormSwitchProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type InputProps = MUIGlobalOmit<TextFieldProps> & {
|
|
5
|
+
type?: HTMLInputTypeAttribute;
|
|
6
|
+
};
|
|
7
|
+
export declare const Input: ({ type, ...otherProps }: InputProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { InputProps } from './Input';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<InputProps>;
|
|
6
|
+
export declare const Password: Story<InputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioProps as MUIRadioProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type RadioProps = MUIGlobalOmit<MUIRadioProps>;
|
|
5
|
+
export declare const Radio: (props: RadioProps) => JSX.Element;
|
package/dist/cjs/types/{global/overrides/form/radio.d.ts → components/Radio/Radio.overrides.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: Story<Omit<import("@mui/material").RadioProps, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps as MUISelectProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type SelectProps = MUIGlobalOmit<Omit<MUISelectProps, 'variant' | 'label'>>;
|
|
5
|
+
export declare const Select: (props: SelectProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: Story<Omit<Omit<import("@mui/material").SelectProps<unknown>, "label" | "variant">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation">>;
|
|
5
|
+
export declare const Disabled: Story<Omit<Omit<import("@mui/material").SelectProps<unknown>, "label" | "variant">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation">>;
|
|
6
|
+
export declare const Error: Story<Omit<Omit<import("@mui/material").SelectProps<unknown>, "label" | "variant">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SwitchProps as MUISwitchProps } from '@mui/material';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
|
+
export declare type SwitchProps = MUIGlobalOmit<MUISwitchProps, {
|
|
5
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
package/dist/cjs/types/{global/overrides/form/switch.d.ts → components/Switch/Switch.overrides.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TypographyProps as MUITypographyProps } from '@mui/material/Typography';
|
|
3
|
-
import { MUIGlobalOmit } from 'global/utils/types';
|
|
3
|
+
import { MUIGlobalOmit } from '../../global/utils/types';
|
|
4
4
|
export declare type TypographyProps = MUIGlobalOmit<MUITypographyProps, {
|
|
5
5
|
component?: React.ElementType;
|
|
6
6
|
}>;
|
|
7
|
-
declare const Typography:
|
|
8
|
-
export default Typography;
|
|
7
|
+
export declare const Typography: ({ children, ...props }: TypographyProps) => JSX.Element;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
1
|
+
export { Button } from './Button/Button';
|
|
2
|
+
export { Typography } from './Typography/Typography';
|
|
3
|
+
export { Chip } from './Chip/Chip';
|
|
4
|
+
export { Avatar } from './Avatar/Avatar';
|
|
5
|
+
export { Container } from './Container/Container';
|
|
6
|
+
export { Box } from './Box/Box';
|
|
7
|
+
export { Checkbox } from './Checkbox/Checkbox';
|
|
8
|
+
export { FormCheckbox } from './FormCheckbox/FormCheckbox';
|
|
9
|
+
export { Radio } from './Radio/Radio';
|
|
10
|
+
export { FormRadio } from './FormRadio/FormRadio';
|
|
11
|
+
export { Switch } from './Switch/Switch';
|
|
12
|
+
export { FormSwitch } from './FormSwitch/FormSwitch';
|
|
13
|
+
export { Select } from './Select/Select';
|
|
14
|
+
export { FormSelect } from './FormSelect/FormSelect';
|
|
15
|
+
export { Input } from './Input/Input';
|
|
16
|
+
export { FormInput } from './FormInput/FormInput';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
export * from './avatar';
|
|
2
|
-
export * from './container';
|
|
3
1
|
export * from './menuItem';
|
|
4
2
|
export * from './tab';
|
|
5
3
|
export * from './tablePagination';
|
|
6
4
|
export * from './tabs';
|
|
7
|
-
export * from './form/checkbox';
|
|
8
|
-
export * from './form/input';
|
|
9
5
|
export * from './form/label';
|
|
10
|
-
export * from './form/radio';
|
|
11
|
-
export * from './form/switch';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const theme: import("@mui/material").Theme;
|
|
2
|
-
export default theme;
|
|
1
|
+
export declare const theme: import("@mui/material").Theme;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Table: {
|
|
3
|
+
Wrapper: ({ rows, columns }: {
|
|
4
|
+
rows: React.ReactNode;
|
|
5
|
+
columns: string[];
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
Cell: import("@emotion/styled").StyledComponent<import("@mui/material/TableCell/TableCell").TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
|
+
Row: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/TableRow/TableRow").TableRowTypeMap<{}, "tr">>;
|
|
9
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
import tokens from '@up42/design-system-tokens/dist/json/tokens.json';
|
|
2
|
+
export * from '@mui/material';
|
|
3
|
+
export { tokens };
|
|
4
|
+
export { UpComponentsProvider } from './global/UpComponentsProvider/UpComponentsProvider';
|
|
5
|
+
export { theme } from './global/theme';
|
|
6
|
+
export { Button, Typography, Chip, Avatar, Container, Box, Switch, FormSwitch, Checkbox, FormCheckbox, Radio, FormRadio, Select, FormSelect, Input, FormInput, } from './components';
|