@agility/plenum-ui 1.3.33 → 1.3.35
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/lib/components/Button/Button.d.ts +9 -1
- package/lib/components/Forms/TextInputAddon/TextInputAddon.d.ts +3 -1
- package/lib/components/Forms/TextInputAddon/TextInputAddon.stories.d.ts +3 -3
- package/lib/index.esm.js +29 -8
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +29 -8
- package/lib/index.js.map +1 -1
- package/lib/tailwind.css +4 -0
- package/package.json +1 -1
- package/setupTests.js +3 -3
- package/tsconfig.json +2 -2
- package/libxxx/common/brandCfg.d.ts +0 -3
- package/libxxx/common/index.d.ts +0 -3
- package/libxxx/common/storyCfg.d.ts +0 -5
- package/libxxx/components/Avatar/Avatar.d.ts +0 -27
- package/libxxx/components/Avatar/Avatar.stories.d.ts +0 -6
- package/libxxx/components/Avatar/Avatar.test.d.ts +0 -1
- package/libxxx/components/Avatar/index.d.ts +0 -1
- package/libxxx/components/Button/Button.d.ts +0 -45
- package/libxxx/components/Button/Button.stories.d.ts +0 -10
- package/libxxx/components/Button/Button.test.d.ts +0 -1
- package/libxxx/components/Button/index.d.ts +0 -1
- package/libxxx/components/ButtonDropdown/ButtonDropdown.d.ts +0 -11
- package/libxxx/components/ButtonDropdown/ButtonDropdown.stories.d.ts +0 -8
- package/libxxx/components/ButtonDropdown/index.d.ts +0 -1
- package/libxxx/components/Combobox/Combobox.d.ts +0 -34
- package/libxxx/components/Combobox/Combobox.stories.d.ts +0 -14
- package/libxxx/components/Combobox/Combobox.test.d.ts +0 -1
- package/libxxx/components/Combobox/index.d.ts +0 -1
- package/libxxx/components/Dropdown/Dropdown.d.ts +0 -25
- package/libxxx/components/Dropdown/Dropdown.stories.d.ts +0 -9
- package/libxxx/components/Dropdown/Dropdown.test.d.ts +0 -1
- package/libxxx/components/Dropdown/data.d.ts +0 -3
- package/libxxx/components/Dropdown/index.d.ts +0 -1
- package/libxxx/components/Forms/BaseField/BaseField.d.ts +0 -34
- package/libxxx/components/Forms/BaseField/BaseField.stories.d.ts +0 -6
- package/libxxx/components/Forms/BaseField/BaseField.test.d.ts +0 -1
- package/libxxx/components/Forms/BaseField/index.d.ts +0 -1
- package/libxxx/components/Forms/Checkbox/Checkbox.d.ts +0 -23
- package/libxxx/components/Forms/Checkbox/Checkbox.stories.d.ts +0 -13
- package/libxxx/components/Forms/Checkbox/Checkbox.test.d.ts +0 -1
- package/libxxx/components/Forms/Checkbox/index.d.ts +0 -1
- package/libxxx/components/Forms/InputCounter/InputCounter.d.ts +0 -9
- package/libxxx/components/Forms/InputCounter/InputCounter.stories.d.ts +0 -6
- package/libxxx/components/Forms/InputCounter/InputCounter.test.d.ts +0 -1
- package/libxxx/components/Forms/InputCounter/index.d.ts +0 -1
- package/libxxx/components/Forms/InputLabel/InputLabel.d.ts +0 -14
- package/libxxx/components/Forms/InputLabel/InputLabel.stories.d.ts +0 -6
- package/libxxx/components/Forms/InputLabel/InputLabel.test.d.ts +0 -1
- package/libxxx/components/Forms/InputLabel/index.d.ts +0 -1
- package/libxxx/components/Forms/Radio/Radio.d.ts +0 -27
- package/libxxx/components/Forms/Radio/Radio.stories.d.ts +0 -12
- package/libxxx/components/Forms/Radio/Radio.test.d.ts +0 -1
- package/libxxx/components/Forms/Radio/index.d.ts +0 -1
- package/libxxx/components/Forms/Select/Select.d.ts +0 -27
- package/libxxx/components/Forms/Select/Select.stories.d.ts +0 -11
- package/libxxx/components/Forms/Select/Select.test.d.ts +0 -1
- package/libxxx/components/Forms/Select/index.d.ts +0 -1
- package/libxxx/components/Forms/TextInput/TextInput.d.ts +0 -37
- package/libxxx/components/Forms/TextInput/TextInput.stories.d.ts +0 -12
- package/libxxx/components/Forms/TextInput/index.d.ts +0 -1
- package/libxxx/components/Forms/TextInputAddon/InputCta/InputCta.d.ts +0 -16
- package/libxxx/components/Forms/TextInputAddon/InputCta/InputCta.stories.d.ts +0 -6
- package/libxxx/components/Forms/TextInputAddon/InputCta/InputCta.test.d.ts +0 -1
- package/libxxx/components/Forms/TextInputAddon/InputCta/index.d.ts +0 -1
- package/libxxx/components/Forms/TextInputAddon/TextInputAddon.d.ts +0 -52
- package/libxxx/components/Forms/TextInputAddon/TextInputAddon.stories.d.ts +0 -12
- package/libxxx/components/Forms/TextInputAddon/index.d.ts +0 -1
- package/libxxx/components/Forms/TextInputSelect/InputSelect/InputSelect.d.ts +0 -13
- package/libxxx/components/Forms/TextInputSelect/InputSelect/InputSelect.stories.d.ts +0 -6
- package/libxxx/components/Forms/TextInputSelect/InputSelect/InputSelect.test.d.ts +0 -1
- package/libxxx/components/Forms/TextInputSelect/InputSelect/index.d.ts +0 -1
- package/libxxx/components/Forms/TextInputSelect/TextInputSelect.d.ts +0 -48
- package/libxxx/components/Forms/TextInputSelect/TextInputSelect.stories.d.ts +0 -8
- package/libxxx/components/Forms/TextInputSelect/index.d.ts +0 -1
- package/libxxx/components/Forms/Textarea/Textarea.d.ts +0 -32
- package/libxxx/components/Forms/Textarea/Textarea.stories.d.ts +0 -12
- package/libxxx/components/Forms/Textarea/Textarea.test.d.ts +0 -1
- package/libxxx/components/Forms/Textarea/index.d.ts +0 -1
- package/libxxx/components/Switch/Switch.d.ts +0 -11
- package/libxxx/components/Switch/Switch.stories.d.ts +0 -9
- package/libxxx/components/Switch/Switch.test.d.ts +0 -1
- package/libxxx/components/Switch/index.d.ts +0 -1
- package/libxxx/components/TreeView/TreeView.d.ts +0 -36
- package/libxxx/components/TreeView/TreeView.stories.d.ts +0 -6
- package/libxxx/components/TreeView/TreeView.test.d.ts +0 -1
- package/libxxx/components/TreeView/index.d.ts +0 -1
- package/libxxx/components/TreeView V1/TreeItem/TreeItem.d.ts +0 -16
- package/libxxx/components/TreeView V1/TreeItem/TreeItem.stories.d.ts +0 -9
- package/libxxx/components/TreeView V1/TreeItem/TreeItem.test.d.ts +0 -1
- package/libxxx/components/TreeView V1/TreeItem/index.d.ts +0 -1
- package/libxxx/components/TreeView V1/TreeView.d.ts +0 -6
- package/libxxx/components/TreeView V1/TreeView.stories.d.ts +0 -6
- package/libxxx/components/TreeView V1/TreeView.test.d.ts +0 -1
- package/libxxx/components/TreeView V1/context.d.ts +0 -9
- package/libxxx/components/TreeView V1/index.d.ts +0 -1
- package/libxxx/components/TreeView V1/sampleData.d.ts +0 -71
- package/libxxx/components/TreeView V1/types/tree.types.d.ts +0 -21
- package/libxxx/index.d.ts +0 -14
- package/libxxx/page/TreeNavigation/CustomNode/CustomNode.d.ts +0 -3
- package/libxxx/page/TreeNavigation/CustomNode/CustomNode.test.d.ts +0 -1
- package/libxxx/page/TreeNavigation/CustomNode/index.d.ts +0 -1
- package/libxxx/page/TreeNavigation/TreeNavigation.d.ts +0 -8
- package/libxxx/page/TreeNavigation/TreeNavigation.stories.d.ts +0 -6
- package/libxxx/page/TreeNavigation/hooks/useFetch.d.ts +0 -14
- package/libxxx/page/TreeNavigation/index.d.ts +0 -1
- package/libxxx/util/DynamicIcons.d.ts +0 -10
- package/libxxx/util/Loader.d.ts +0 -6
- package/libxxx/util/useID.d.ts +0 -1
package/lib/tailwind.css
CHANGED
package/package.json
CHANGED
package/setupTests.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line
|
|
2
|
-
const Enzyme = require(
|
|
2
|
+
const Enzyme = require("enzyme")
|
|
3
3
|
// eslint-disable-next-line
|
|
4
|
-
const Adapter = require(
|
|
4
|
+
const Adapter = require("@wojtekmaj/enzyme-adapter-react-17")
|
|
5
5
|
|
|
6
|
-
Enzyme.configure({ adapter: new Adapter() })
|
|
6
|
+
Enzyme.configure({ adapter: new Adapter() })
|
package/tsconfig.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"outDir": "lib",
|
|
5
5
|
"lib": ["dom", "dom.iterable", "esnext", "es6"],
|
|
6
6
|
"declaration": true,
|
|
7
|
-
"declarationDir": "
|
|
7
|
+
"declarationDir": "lib",
|
|
8
8
|
"allowJs": true,
|
|
9
9
|
"skipLibCheck": true,
|
|
10
10
|
"esModuleInterop": true,
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"jsx": "react"
|
|
20
20
|
},
|
|
21
21
|
"include": ["src"],
|
|
22
|
-
"exclude": ["node_modules", "
|
|
22
|
+
"exclude": ["node_modules", "lib"]
|
|
23
23
|
}
|
package/libxxx/common/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface AvatarProps {
|
|
3
|
-
/**
|
|
4
|
-
* source url for the avatar
|
|
5
|
-
*/
|
|
6
|
-
src?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Initials we use as fallback if no src is passed
|
|
9
|
-
*/
|
|
10
|
-
initials?: string;
|
|
11
|
-
/**
|
|
12
|
-
* optional status
|
|
13
|
-
*/
|
|
14
|
-
status?: 'offline' | 'online' | 'busy';
|
|
15
|
-
/**
|
|
16
|
-
* avatar picture size (also affects status indicator)
|
|
17
|
-
*/
|
|
18
|
-
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
19
|
-
/**
|
|
20
|
-
* avatar img alt
|
|
21
|
-
*/
|
|
22
|
-
alt?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Avatar component that shows profile image or name initials of the user
|
|
26
|
-
*/
|
|
27
|
-
export declare const Avatar: FC<AvatarProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { AvatarProps } from './Avatar';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AvatarIcon: Story<AvatarProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Avatar';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IconName } from "../../util/DynamicIcons";
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* Is this the principal call to action on the page?
|
|
6
|
-
*/
|
|
7
|
-
type?: "primary" | "secondary" | "alternative" | "danger";
|
|
8
|
-
/**
|
|
9
|
-
* How large should the button be?
|
|
10
|
-
*/
|
|
11
|
-
size?: "sm" | "base" | "lg";
|
|
12
|
-
/**
|
|
13
|
-
* Button contents
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
/**
|
|
17
|
-
* An optional icon
|
|
18
|
-
*/
|
|
19
|
-
icon?: IconName;
|
|
20
|
-
/**
|
|
21
|
-
* Optional click handler
|
|
22
|
-
*/
|
|
23
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
24
|
-
/**
|
|
25
|
-
* If button should be disabled
|
|
26
|
-
*/
|
|
27
|
-
isDisabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Shows loading indicator
|
|
30
|
-
*/
|
|
31
|
-
isLoading?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* If button should be of type submit
|
|
34
|
-
*/
|
|
35
|
-
isSubmit?: boolean;
|
|
36
|
-
isWidthFull?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Add on classes
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
|
-
iconObj?: React.ReactNode;
|
|
42
|
-
title?: string;
|
|
43
|
-
}
|
|
44
|
-
declare const _Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
45
|
-
export { _Button as Button };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { ButtonProps } from './Button';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Primary: Story<ButtonProps>;
|
|
7
|
-
export declare const Secondary: Story<ButtonProps>;
|
|
8
|
-
export declare const Alternative: Story<ButtonProps>;
|
|
9
|
-
export declare const Danger: Story<ButtonProps>;
|
|
10
|
-
export declare const Loading: Story<ButtonProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Button';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { ButtonProps } from "../Button/Button";
|
|
3
|
-
import { DropdownProps } from "../Dropdown";
|
|
4
|
-
export interface ButtonDropDownProps {
|
|
5
|
-
button: ButtonProps;
|
|
6
|
-
dropDown: DropdownProps;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Primary UI component for user interaction
|
|
10
|
-
*/
|
|
11
|
-
export declare const ButtonDropDown: FC<ButtonDropDownProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { ButtonDropDownProps } from './ButtonDropdown';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Primary: Story<ButtonDropDownProps>;
|
|
7
|
-
export declare const Secondary: Story<ButtonDropDownProps>;
|
|
8
|
-
export declare const Alternative: Story<ButtonDropDownProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ButtonDropdown';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ComboboxProps<T extends Record<string, unknown>> {
|
|
3
|
-
/** Label */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** ID */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Array of items to display */
|
|
8
|
-
items: T[];
|
|
9
|
-
/** the item property to use as the key */
|
|
10
|
-
keyProperty: string;
|
|
11
|
-
/** the item property to use as the display */
|
|
12
|
-
displayProperty: string;
|
|
13
|
-
/** Placeholder */
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
/** Callback to trigger on change */
|
|
16
|
-
onChange?(value: T | undefined): void;
|
|
17
|
-
/** Select disabled state */
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/** Select error state */
|
|
20
|
-
isError?: boolean;
|
|
21
|
-
/** Select required state */
|
|
22
|
-
isRequired?: boolean;
|
|
23
|
-
/** Message shown under field */
|
|
24
|
-
message?: string;
|
|
25
|
-
displayValue?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Whether this item is nullable or not.
|
|
28
|
-
*
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
* @memberof ComboboxProps
|
|
31
|
-
*/
|
|
32
|
-
nullable?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare const Combobox: <T extends Record<string, unknown>>({ label, items, displayProperty, displayValue, keyProperty, onChange, placeholder, message, isDisabled, isError, isRequired, id, nullable }: ComboboxProps<T>) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { ComboboxProps } from './Combobox';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
interface ComboItem {
|
|
7
|
-
[value: string]: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const AllVariations: Story<ComboboxProps<ComboItem>>;
|
|
10
|
-
export declare const Default: Story<ComboboxProps<ComboItem>>;
|
|
11
|
-
export declare const Label: Story<ComboboxProps<ComboItem>>;
|
|
12
|
-
export declare const Disabled: Story<ComboboxProps<ComboItem>>;
|
|
13
|
-
export declare const Required: Story<ComboboxProps<ComboItem>>;
|
|
14
|
-
export declare const Error: Story<ComboboxProps<ComboItem>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Combobox';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { FC, JSXElementConstructor } from "react";
|
|
2
|
-
import { IconName } from "../../util/DynamicIcons";
|
|
3
|
-
export declare type ItemProp = {
|
|
4
|
-
icon?: IconName;
|
|
5
|
-
iconObj?: React.ReactNode;
|
|
6
|
-
label: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
onClick?(): void;
|
|
9
|
-
isEmphasized?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export interface DropdownProps {
|
|
12
|
-
/** Prop comment */
|
|
13
|
-
items: ItemProp[][];
|
|
14
|
-
IconElement: JSXElementConstructor<unknown>;
|
|
15
|
-
label?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
menuClassName?: string;
|
|
18
|
-
itemsClassName?: string;
|
|
19
|
-
itemClassName?: string;
|
|
20
|
-
activeItemClassName?: string;
|
|
21
|
-
yPosition?: "top" | "bottom";
|
|
22
|
-
xPosition?: "left" | "right";
|
|
23
|
-
}
|
|
24
|
-
/** Comment */
|
|
25
|
-
export declare const Dropdown: FC<DropdownProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { DropdownProps } from './Dropdown';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<DropdownProps>;
|
|
7
|
-
export declare const Default: Story<DropdownProps>;
|
|
8
|
-
export declare const Icon: Story<DropdownProps>;
|
|
9
|
-
export declare const Label: Story<DropdownProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Dropdown';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type Type = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
3
|
-
export interface BaseFieldProps {
|
|
4
|
-
/** Input type*/
|
|
5
|
-
type: Type;
|
|
6
|
-
/** Input ID */
|
|
7
|
-
id: string;
|
|
8
|
-
/** Input Name */
|
|
9
|
-
name: string;
|
|
10
|
-
/** placeholder for the input */
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
/** Disabled state */
|
|
13
|
-
isDisabled?: boolean;
|
|
14
|
-
/** Readonly state */
|
|
15
|
-
isReadonly?: boolean;
|
|
16
|
-
/** Set value */
|
|
17
|
-
value?: string;
|
|
18
|
-
/** Set default value */
|
|
19
|
-
defaultValue?: string;
|
|
20
|
-
/** Max length of input character */
|
|
21
|
-
maxLength?: number;
|
|
22
|
-
/** Input style classes */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Callback on change */
|
|
25
|
-
onChange?(value: string): void;
|
|
26
|
-
/** Callback on onFocus */
|
|
27
|
-
onFocus?(): void;
|
|
28
|
-
/** Callback on onBlur */
|
|
29
|
-
onBlur?(): void;
|
|
30
|
-
/** Callback to get the value for the immediate parent component */
|
|
31
|
-
onValueChange?(value: string): void;
|
|
32
|
-
}
|
|
33
|
-
declare const _BaseField: React.ForwardRefExoticComponent<BaseFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
34
|
-
export { _BaseField as BaseField };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { BaseFieldProps } from './BaseField';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const BaseFieldComponent: Story<BaseFieldProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './BaseField';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface CheckboxProps {
|
|
3
|
-
/** Checkbox label */
|
|
4
|
-
label: string;
|
|
5
|
-
/** Checkbox ID */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Disabled state */
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
/** value */
|
|
10
|
-
value?: string;
|
|
11
|
-
/** Check state */
|
|
12
|
-
isChecked?: boolean;
|
|
13
|
-
/** If field is required */
|
|
14
|
-
isRequired?: boolean;
|
|
15
|
-
/** Error state */
|
|
16
|
-
isError?: boolean;
|
|
17
|
-
/** Message or description */
|
|
18
|
-
message?: string;
|
|
19
|
-
/** Callback on input change */
|
|
20
|
-
onChange?(value: string, isChecked: boolean): void;
|
|
21
|
-
}
|
|
22
|
-
/** Comment */
|
|
23
|
-
export declare const Checkbox: FC<CheckboxProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { CheckboxProps } from './Checkbox';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<CheckboxProps>;
|
|
7
|
-
export declare const Default: Story<CheckboxProps>;
|
|
8
|
-
export declare const Description: Story<CheckboxProps>;
|
|
9
|
-
export declare const Required: Story<CheckboxProps>;
|
|
10
|
-
export declare const Checked: Story<CheckboxProps>;
|
|
11
|
-
export declare const ErrorState: Story<CheckboxProps>;
|
|
12
|
-
export declare const Disabled: Story<CheckboxProps>;
|
|
13
|
-
export declare const Events: Story<CheckboxProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Checkbox';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface InputCounterProps {
|
|
3
|
-
/** Counter limit */
|
|
4
|
-
limit: number;
|
|
5
|
-
/** Counter current number */
|
|
6
|
-
current: number;
|
|
7
|
-
}
|
|
8
|
-
/** Primary UI component for user interaction */
|
|
9
|
-
export declare const InputCounter: FC<InputCounterProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputCounterProps } from './InputCounter';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Counter: Story<InputCounterProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputCounter';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface InputLabelProps {
|
|
3
|
-
/** Prop comment */
|
|
4
|
-
isPlaceholder?: boolean;
|
|
5
|
-
id: string;
|
|
6
|
-
isRequired?: boolean;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
isError?: boolean;
|
|
9
|
-
isActive?: boolean;
|
|
10
|
-
isFocused?: boolean;
|
|
11
|
-
label?: string;
|
|
12
|
-
}
|
|
13
|
-
/** Comment */
|
|
14
|
-
export declare const InputLabel: FC<InputLabelProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputLabelProps } from './InputLabel';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const InputLabelComponent: Story<InputLabelProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputLabel';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface RadioProps {
|
|
3
|
-
/** group name */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** Radio label */
|
|
6
|
-
label: string;
|
|
7
|
-
/** Radio ID */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** Disabled state */
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
/** Check state */
|
|
12
|
-
isChecked?: boolean;
|
|
13
|
-
/** If field is required */
|
|
14
|
-
isRequired?: boolean;
|
|
15
|
-
/** Error state */
|
|
16
|
-
isError?: boolean;
|
|
17
|
-
/** Message or description */
|
|
18
|
-
message?: string;
|
|
19
|
-
/** value */
|
|
20
|
-
value?: string;
|
|
21
|
-
/** Callback on input change */
|
|
22
|
-
onChange?(value: string, isChecked: boolean): void;
|
|
23
|
-
/** Callback on click */
|
|
24
|
-
onClick?(value: string, isChecked: boolean): void;
|
|
25
|
-
}
|
|
26
|
-
/** Comment */
|
|
27
|
-
export declare const Radio: FC<RadioProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { RadioProps } from './Radio';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<RadioProps>;
|
|
7
|
-
export declare const Default: Story<RadioProps>;
|
|
8
|
-
export declare const Description: Story<RadioProps>;
|
|
9
|
-
export declare const Required: Story<RadioProps>;
|
|
10
|
-
export declare const Checked: Story<RadioProps>;
|
|
11
|
-
export declare const ErrorState: Story<RadioProps>;
|
|
12
|
-
export declare const Disabled: Story<RadioProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Radio';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export declare type SimpleSelectOptions = {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
export interface SimpleSelectProps {
|
|
7
|
-
/** Label */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Select ID prop */
|
|
10
|
-
id?: string;
|
|
11
|
-
/** Select name prop */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** List of options to display in the select menu */
|
|
14
|
-
options: SimpleSelectOptions[];
|
|
15
|
-
/** Select name prop */
|
|
16
|
-
onChange?(value: string): void;
|
|
17
|
-
/** Select disabled state */
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/** Select error state */
|
|
20
|
-
isError?: boolean;
|
|
21
|
-
/** Select required state */
|
|
22
|
-
isRequired?: boolean;
|
|
23
|
-
value?: string;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
/** Comment */
|
|
27
|
-
export declare const Select: FC<SimpleSelectProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { SimpleSelectProps } from './Select';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<SimpleSelectProps>;
|
|
7
|
-
export declare const Base: Story<SimpleSelectProps>;
|
|
8
|
-
export declare const Label: Story<SimpleSelectProps>;
|
|
9
|
-
export declare const Disabled: Story<SimpleSelectProps>;
|
|
10
|
-
export declare const Required: Story<SimpleSelectProps>;
|
|
11
|
-
export declare const Error: Story<SimpleSelectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Select';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare type Type = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
3
|
-
export interface TextInputProps {
|
|
4
|
-
/** Input type*/
|
|
5
|
-
type: Type;
|
|
6
|
-
/** Input ID */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** Input Name */
|
|
9
|
-
name?: string;
|
|
10
|
-
/** Label for the input */
|
|
11
|
-
label?: string;
|
|
12
|
-
/** Force the focus state on the input */
|
|
13
|
-
isFocused?: boolean;
|
|
14
|
-
/** Error state */
|
|
15
|
-
isError?: boolean;
|
|
16
|
-
/** If field is required */
|
|
17
|
-
isRequired?: boolean;
|
|
18
|
-
/** Disabled state */
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/** Readonly state */
|
|
21
|
-
isReadonly?: boolean;
|
|
22
|
-
/** Set default value */
|
|
23
|
-
defaultValue?: string;
|
|
24
|
-
/** Message shown under the text field */
|
|
25
|
-
message?: string;
|
|
26
|
-
/** Input character counter */
|
|
27
|
-
isShowCounter?: boolean;
|
|
28
|
-
/** Max length of input character */
|
|
29
|
-
maxLength?: number;
|
|
30
|
-
/** Callback on change */
|
|
31
|
-
onChange?(value: string): void;
|
|
32
|
-
/** input value */
|
|
33
|
-
value?: string;
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
36
|
-
declare const _TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
37
|
-
export { _TextInput as TextInput };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TextInputProps } from './TextInput';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<TextInputProps>;
|
|
7
|
-
export declare const Default: Story<TextInputProps>;
|
|
8
|
-
export declare const Message: Story<TextInputProps>;
|
|
9
|
-
export declare const Counter: Story<TextInputProps>;
|
|
10
|
-
export declare const Required: Story<TextInputProps>;
|
|
11
|
-
export declare const Error: Story<TextInputProps>;
|
|
12
|
-
export declare const Disabled: Story<TextInputProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextInput';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IconName } from '../../../../util/DynamicIcons';
|
|
3
|
-
export interface InputCtaProps {
|
|
4
|
-
/** Icon name */
|
|
5
|
-
icon?: IconName;
|
|
6
|
-
/** CTA label */
|
|
7
|
-
ctaLabel?: string;
|
|
8
|
-
/** Alignment */
|
|
9
|
-
align: 'left' | 'right';
|
|
10
|
-
/** Show the CTA without Background color and a border seperator */
|
|
11
|
-
isClear?: boolean;
|
|
12
|
-
/** Onclick callback */
|
|
13
|
-
onClickHandler?(): void;
|
|
14
|
-
}
|
|
15
|
-
/** Comment */
|
|
16
|
-
export declare const InputCta: FC<InputCtaProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputCtaProps } from './InputCta';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const InputCtaComponent: Story<InputCtaProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputCta';
|