bianic-ui 2.12.0-alpha.0 → 2.12.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/dist/cjs/index.js +678 -219
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +1 -0
- package/dist/cjs/types/components/Button/PropInterfaceButton.d.ts +15 -10
- package/dist/cjs/types/components/Countdown/index.d.ts +11 -0
- package/dist/cjs/types/components/Forms/FileUploader/DropzoneFileUploader.d.ts +11 -0
- package/dist/cjs/types/components/Forms/FileUploader/SimpleFileUploader.d.ts +11 -0
- package/dist/cjs/types/components/Forms/FileUploader/index.d.ts +2 -0
- package/dist/cjs/types/components/Forms/FileUploader/useFileHandler.d.ts +35 -0
- package/dist/cjs/types/components/Forms/Radio/configs.d.ts +11 -6
- package/dist/cjs/types/components/Forms/Radio/index.d.ts +9 -14
- package/dist/cjs/types/components/Forms/TagLabelInput/configs.d.ts +13 -0
- package/dist/cjs/types/components/Forms/TagLabelInput/hooks/useLiveSearch.d.ts +9 -0
- package/dist/cjs/types/components/Forms/TagLabelInput/index.d.ts +31 -0
- package/dist/cjs/types/components/Forms/TagLabelInput/utils/dropdownUtils.d.ts +9 -0
- package/dist/cjs/types/components/Forms/TextArea/index.d.ts +1 -15
- package/dist/cjs/types/components/Forms/index.d.ts +2 -0
- package/dist/cjs/types/components/Stepper/Horizontal/index.d.ts +21 -0
- package/dist/cjs/types/components/Tooltip/PropsInterface.d.ts +1 -1
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/stories/Form/FileUploader/DropzoneFileUploader.stories.d.ts +12 -0
- package/dist/cjs/types/stories/Form/FileUploader/SimpleFileUploader.stories.d.ts +10 -0
- package/dist/cjs/types/stories/Form/Radio.stories.d.ts +1 -2
- package/dist/cjs/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +48 -0
- package/dist/cjs/types/stories/Form/TextArea/TextArea.stories.d.ts +1 -2
- package/dist/cjs/types/stories/HorizontalStepper/HorizontalStepper.stories.d.ts +9 -0
- package/dist/cjs/types/stories/Table/TableCell.stories.d.ts +17 -1
- package/dist/esm/index.js +677 -221
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +1 -0
- package/dist/esm/types/components/Button/PropInterfaceButton.d.ts +15 -10
- package/dist/esm/types/components/Countdown/index.d.ts +11 -0
- package/dist/esm/types/components/Forms/FileUploader/DropzoneFileUploader.d.ts +11 -0
- package/dist/esm/types/components/Forms/FileUploader/SimpleFileUploader.d.ts +11 -0
- package/dist/esm/types/components/Forms/FileUploader/index.d.ts +2 -0
- package/dist/esm/types/components/Forms/FileUploader/useFileHandler.d.ts +35 -0
- package/dist/esm/types/components/Forms/Radio/configs.d.ts +11 -6
- package/dist/esm/types/components/Forms/Radio/index.d.ts +9 -14
- package/dist/esm/types/components/Forms/TagLabelInput/configs.d.ts +13 -0
- package/dist/esm/types/components/Forms/TagLabelInput/hooks/useLiveSearch.d.ts +9 -0
- package/dist/esm/types/components/Forms/TagLabelInput/index.d.ts +31 -0
- package/dist/esm/types/components/Forms/TagLabelInput/utils/dropdownUtils.d.ts +9 -0
- package/dist/esm/types/components/Forms/TextArea/index.d.ts +1 -15
- package/dist/esm/types/components/Forms/index.d.ts +2 -0
- package/dist/esm/types/components/Stepper/Horizontal/index.d.ts +21 -0
- package/dist/esm/types/components/Tooltip/PropsInterface.d.ts +1 -1
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/stories/Form/FileUploader/DropzoneFileUploader.stories.d.ts +12 -0
- package/dist/esm/types/stories/Form/FileUploader/SimpleFileUploader.stories.d.ts +10 -0
- package/dist/esm/types/stories/Form/Radio.stories.d.ts +1 -2
- package/dist/esm/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +48 -0
- package/dist/esm/types/stories/Form/TextArea/TextArea.stories.d.ts +1 -2
- package/dist/esm/types/stories/HorizontalStepper/HorizontalStepper.stories.d.ts +9 -0
- package/dist/esm/types/stories/Table/TableCell.stories.d.ts +17 -1
- package/dist/index.d.ts +119 -40
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from './PropInterfaceButton';
|
|
3
|
+
export declare const BUTTON_VARIANT_UNION: string[];
|
|
3
4
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
5
|
export default Button;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from
|
|
2
|
-
export
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export type ButtonVariant = 'default' | 'danger' | 'info' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'success' | 'warning' | 'default-outlined' | 'danger-outlined' | 'info-outlined' | 'primary-outlined' | 'success-outlined' | 'warning-outlined' | 'form-group';
|
|
3
|
+
export type ButtonSize = 'lg' | 'md' | 'sm' | 'tn';
|
|
4
|
+
export type ButtonRadius = 'default' | 'full-rounded';
|
|
5
|
+
export interface ButtonStyleProps {
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
radius?: ButtonRadius;
|
|
9
|
+
minWidth?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'disabled'>, ButtonStyleProps {
|
|
3
12
|
className?: string;
|
|
4
13
|
disabled?: boolean;
|
|
5
|
-
iconRight?:
|
|
6
|
-
iconLeft?:
|
|
7
|
-
right?:
|
|
8
|
-
left?:
|
|
14
|
+
iconRight?: ReactNode;
|
|
15
|
+
iconLeft?: ReactNode;
|
|
16
|
+
right?: ReactNode;
|
|
17
|
+
left?: ReactNode;
|
|
9
18
|
label?: string;
|
|
10
|
-
radius?: 'default' | 'full-rounded';
|
|
11
|
-
size?: 'lg' | 'md' | 'sm' | 'tn';
|
|
12
|
-
minWidth?: number;
|
|
13
|
-
variant?: 'default' | 'danger' | 'info' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'success' | 'warning' | 'default-outlined' | 'danger-outlined' | 'info-outlined' | 'primary-outlined' | 'success-outlined' | 'warning-outlined' | 'form-group';
|
|
14
19
|
}
|
|
@@ -4,5 +4,16 @@ export interface CountdownProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
|
4
4
|
maxSeconds: number;
|
|
5
5
|
variant?: 'countdown' | 'success';
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* State Progression & Visualization Lifecycle (e.g., maxSeconds = 4):
|
|
9
|
+
*
|
|
10
|
+
* Timeline Step | Initial | T = 1s | T = 2s | T = 3s | T = 4s (End)
|
|
11
|
+
* ----------------------|---------|--------|--------|--------|-------------
|
|
12
|
+
* countdownPlaceholder | 4 | 4 | 3 | 2 | 1
|
|
13
|
+
* strokeDashoffset Ratio| 4 | 3 | 2 | 1 | 0 (Complete)
|
|
14
|
+
*
|
|
15
|
+
* Note: `maxSeconds` is displayed twice initially to account for the 1-second
|
|
16
|
+
* delay before the first numeric tick while the SVG stroke animation begins.
|
|
17
|
+
*/
|
|
7
18
|
declare const Countdown: React.ForwardRefExoticComponent<CountdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
19
|
export default Countdown;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SharedUploaderProps } from './useFileHandler';
|
|
3
|
+
export type DropzoneVariant = 'general' | 'image';
|
|
4
|
+
export interface DropzoneFileUploaderProps extends SharedUploaderProps {
|
|
5
|
+
variant?: DropzoneVariant;
|
|
6
|
+
label?: string;
|
|
7
|
+
helperText?: string;
|
|
8
|
+
onDownload?: (fileId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const DropzoneFileUploader: FC<DropzoneFileUploaderProps>;
|
|
11
|
+
export default DropzoneFileUploader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SharedUploaderProps } from './useFileHandler';
|
|
3
|
+
import { ButtonVariant } from '../../Button/PropInterfaceButton';
|
|
4
|
+
export type SimpleFileUploaderSize = 'tn' | 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface SimpleFileUploaderProps extends SharedUploaderProps {
|
|
6
|
+
size?: SimpleFileUploaderSize;
|
|
7
|
+
label?: string;
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
}
|
|
10
|
+
declare const SimpleFileUploader: React.FC<SimpleFileUploaderProps>;
|
|
11
|
+
export default SimpleFileUploader;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChangeEvent, DragEvent } from 'react';
|
|
2
|
+
export interface FileItem {
|
|
3
|
+
id: string;
|
|
4
|
+
file: File;
|
|
5
|
+
progress?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SharedUploaderProps {
|
|
8
|
+
accept?: string;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
value?: FileItem[];
|
|
13
|
+
onChange?: (files: FileItem[]) => void;
|
|
14
|
+
onRemove?: (fileId: string) => void;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
onError?: (error: {
|
|
17
|
+
file: File;
|
|
18
|
+
reason: 'MAX_SIZE_EXCEEDED' | 'INVALID_FILE_TYPE';
|
|
19
|
+
}) => void;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Comprehensive MIME type & file extension validator
|
|
24
|
+
*/
|
|
25
|
+
export declare const isValidFileType: (file: File, accept?: string) => boolean;
|
|
26
|
+
export declare const useFileHandler: ({ accept, multiple, maxSize, disabled, value, onChange, onError, }: Pick<SharedUploaderProps, "accept" | "multiple" | "maxSize" | "disabled" | "value" | "onChange" | "onError">) => {
|
|
27
|
+
inputRef: import("react").RefObject<HTMLInputElement>;
|
|
28
|
+
isDragging: boolean;
|
|
29
|
+
internalError: string | null;
|
|
30
|
+
handleDragOver: (e: DragEvent<HTMLDivElement>) => void;
|
|
31
|
+
handleDragLeave: (e: DragEvent<HTMLDivElement>) => void;
|
|
32
|
+
handleDrop: (e: DragEvent<HTMLDivElement>) => void;
|
|
33
|
+
handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
34
|
+
triggerClick: () => void;
|
|
35
|
+
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
declare const sizeConfig: {
|
|
2
|
-
md: {
|
|
3
|
-
checkSize:
|
|
4
|
-
labelSize:
|
|
2
|
+
readonly md: {
|
|
3
|
+
readonly checkSize: "w-[22px] h-[22px]";
|
|
4
|
+
readonly labelSize: "text-size-base";
|
|
5
5
|
};
|
|
6
|
-
sm: {
|
|
7
|
-
checkSize:
|
|
8
|
-
labelSize:
|
|
6
|
+
readonly sm: {
|
|
7
|
+
readonly checkSize: "w-4 h-4";
|
|
8
|
+
readonly labelSize: "text-size-sm";
|
|
9
|
+
};
|
|
10
|
+
readonly tn: {
|
|
11
|
+
readonly checkSize: "w-3 h-3";
|
|
12
|
+
readonly labelSize: "text-size-sm";
|
|
9
13
|
};
|
|
10
14
|
};
|
|
15
|
+
export type RadioSize = keyof typeof sizeConfig;
|
|
11
16
|
export default sizeConfig;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { type RadioSize } from './configs';
|
|
3
|
+
export interface RadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size' | 'type'> {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
size?: RadioSize;
|
|
5
6
|
id?: string;
|
|
7
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
8
|
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
checked?: boolean;
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
inputClassName?: string;
|
|
13
|
+
labelClassName?: string;
|
|
9
14
|
}
|
|
10
|
-
declare
|
|
11
|
-
declare namespace Radio {
|
|
12
|
-
var defaultProps: {
|
|
13
|
-
label: string;
|
|
14
|
-
size: string;
|
|
15
|
-
id: string;
|
|
16
|
-
onClick: () => void;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
checked: boolean;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
15
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
16
|
export default Radio;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeEvent, MouseEvent } from 'react';
|
|
2
|
+
import { LiveSearchHookProps } from '../../LiveSearch/types';
|
|
3
|
+
export declare const useLiveSearch: ({ value, setValue, onChangeText, dropContOnClickItem, }: LiveSearchHookProps) => {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
+
searchTerm: string;
|
|
7
|
+
handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
handleDropdownItemClick: (event: MouseEvent<HTMLDivElement>, clickedValue: any) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import { DropdownContainerProps } from '../Dropdown/DropdownContainer';
|
|
3
|
+
export interface TagOption {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
outlineColor?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export type TagValue = string | TagOption;
|
|
13
|
+
export interface TagLabelInputProps<T extends TagValue = TagValue> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'children'> {
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
description?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
dropContProps?: Omit<DropdownContainerProps, 'children'>;
|
|
18
|
+
id?: string;
|
|
19
|
+
isValid?: boolean | null;
|
|
20
|
+
label?: string;
|
|
21
|
+
onChange: (value: T[]) => void;
|
|
22
|
+
onChangeText?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
size?: 'md' | 'sm';
|
|
26
|
+
value: T[];
|
|
27
|
+
}
|
|
28
|
+
export declare const TagLabelInput: <T extends TagValue = TagValue>(props: TagLabelInputProps<T> & {
|
|
29
|
+
ref?: React.ForwardedRef<HTMLInputElement>;
|
|
30
|
+
}) => React.ReactElement;
|
|
31
|
+
export default TagLabelInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchVariant } from '../../LiveSearch/types';
|
|
3
|
+
export declare const isObjectWithLabel: (value: any) => boolean;
|
|
4
|
+
export declare const getItemLabel: (value: any) => string;
|
|
5
|
+
export declare const processDropdownChildren: (nodes: React.ReactNode, currentSearchTerm: string, includeAllIfNoSearch: boolean, searchVariant: SearchVariant | undefined, handleDropdownItemClick: (e: React.MouseEvent<HTMLDivElement>, value: any) => void, existingValues: any[]) => React.ReactNode;
|
|
6
|
+
export declare const processRenderedChildren: (children: React.ReactNode | undefined, searchTerm: string, searchVariant: SearchVariant, handleDropdownItemClick: (e: React.MouseEvent<HTMLDivElement>, value: any) => void, existingValues: []) => {
|
|
7
|
+
renderedChildren: React.ReactNode;
|
|
8
|
+
hasFilteredResults: boolean;
|
|
9
|
+
};
|
|
@@ -15,19 +15,5 @@ export interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'> {
|
|
|
15
15
|
autoComplete?: string;
|
|
16
16
|
isValid?: boolean | null;
|
|
17
17
|
}
|
|
18
|
-
declare
|
|
19
|
-
declare namespace TextArea {
|
|
20
|
-
var defaultProps: {
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
descText: string;
|
|
23
|
-
id: string;
|
|
24
|
-
size: string;
|
|
25
|
-
label: string;
|
|
26
|
-
placeholder: string;
|
|
27
|
-
required: boolean;
|
|
28
|
-
rows: number;
|
|
29
|
-
maxLength: undefined;
|
|
30
|
-
value: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
18
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
33
19
|
export default TextArea;
|
|
@@ -4,9 +4,11 @@ export { default as TextArea } from './TextArea';
|
|
|
4
4
|
export { default as Checkbox } from './Checkbox';
|
|
5
5
|
export { default as SelectInput } from './SelectInput';
|
|
6
6
|
export { default as LiveSearch } from './LiveSearch';
|
|
7
|
+
export { default as TagLabelInput } from './TagLabelInput';
|
|
7
8
|
export { default as Toggle } from './Toggle';
|
|
8
9
|
export { SegmentButtonItem, SegmentButtonGroup } from './SegmentButton';
|
|
9
10
|
export { FormGroup, FormGroupButton, FormGroupLabel } from './Group';
|
|
10
11
|
export { DropdownContainer, DropdownItem } from './Dropdown';
|
|
11
12
|
export { DatePicker, PickerCalendar, YearPicker } from './DatePicker';
|
|
12
13
|
export { default as FormLabel } from './Label/FormLabel';
|
|
14
|
+
export { SimpleFileUploader, DropzoneFileUploader } from './FileUploader';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type StepStatus = 'upcoming' | 'current' | 'processed';
|
|
3
|
+
export type StepperSize = 'sm' | 'md';
|
|
4
|
+
export interface Step {
|
|
5
|
+
id: string | number;
|
|
6
|
+
label?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface HorizontalStepperProps {
|
|
11
|
+
steps: Step[];
|
|
12
|
+
activeStep: number;
|
|
13
|
+
size?: StepperSize;
|
|
14
|
+
className?: string;
|
|
15
|
+
onStepClick?: (index: number) => void;
|
|
16
|
+
processedIcon?: React.ReactNode;
|
|
17
|
+
currentIcon?: React.ReactNode;
|
|
18
|
+
color?: string;
|
|
19
|
+
showLabels?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const HorizontalStepper: React.FC<HorizontalStepperProps>;
|
|
@@ -15,11 +15,11 @@ interface TooltipItemProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
content: ReactNode | string;
|
|
17
17
|
tooltipContainerRef: React.RefObject<HTMLDivElement>;
|
|
18
|
-
tooltipContainerStyle: React.CSSProperties;
|
|
19
18
|
style?: ComponentPropsWithRef<'div'>['style'];
|
|
20
19
|
zIndex: number;
|
|
21
20
|
bgColor?: string;
|
|
22
21
|
textColor?: string;
|
|
22
|
+
maxWidth?: string;
|
|
23
23
|
direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
24
24
|
}
|
|
25
25
|
export { TooltipProps, TooltipItemProps };
|
|
@@ -14,7 +14,7 @@ export { default as FileTree } from './FileTree';
|
|
|
14
14
|
export { default as TreeItem } from './FileTree/TreeItem';
|
|
15
15
|
export { default as useFileTree } from './FileTree/useFileTree';
|
|
16
16
|
export { MenuContainer, MenuItem } from './Menu';
|
|
17
|
-
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormLabel, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, YearPicker, } from './Forms';
|
|
17
|
+
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, TagLabelInput, Toggle, SegmentButtonItem, SegmentButtonGroup, FormLabel, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, YearPicker, SimpleFileUploader, DropzoneFileUploader } from './Forms';
|
|
18
18
|
export * from './Icons';
|
|
19
19
|
export { default as InfoPanel } from './InfoPanel';
|
|
20
20
|
export { default as Modal } from './Modal/Modal';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DropzoneFileUploader } from './../../../components';
|
|
3
|
+
declare const meta: Meta<typeof DropzoneFileUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DropzoneFileUploader>;
|
|
6
|
+
export declare const GeneralDropzone: Story;
|
|
7
|
+
export declare const ImageDropzone: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const WithUploadedFiles: Story;
|
|
10
|
+
export declare const WithMaxSizeLimit: Story;
|
|
11
|
+
export declare const FileTypeValidationDocument: Story;
|
|
12
|
+
export declare const FileTypeValidationImage: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SimpleFileUploader } from '../../../components';
|
|
3
|
+
declare const meta: Meta<typeof SimpleFileUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SimpleFileUploader>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Sizes: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const ControlledState: Story;
|
|
10
|
+
export declare const FileTypeValidation: Story;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { Radio } from '../../components';
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
|
-
component:
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("../../components/Forms/Radio").RadioProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
5
|
parameters: {
|
|
7
6
|
layout: string;
|
|
8
7
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: <T extends import("../../../components/Forms/TagLabelInput").TagValue = import("../../../components/Forms/TagLabelInput").TagValue>(props: import("../../../components/Forms/TagLabelInput").TagLabelInputProps<T> & {
|
|
6
|
+
ref?: React.ForwardedRef<HTMLInputElement>;
|
|
7
|
+
}) => React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
children: {
|
|
13
|
+
control: false;
|
|
14
|
+
};
|
|
15
|
+
onChange: {
|
|
16
|
+
action: string;
|
|
17
|
+
};
|
|
18
|
+
onChangeText: {
|
|
19
|
+
action: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
control: "radio";
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
isValid: {
|
|
26
|
+
control: "select";
|
|
27
|
+
options: (boolean | null)[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
/**
|
|
34
|
+
* Interactive Playground story using Storybook Controls
|
|
35
|
+
*/
|
|
36
|
+
export declare const Playground: Story;
|
|
37
|
+
/**
|
|
38
|
+
* Pre-populated controlled state example
|
|
39
|
+
*/
|
|
40
|
+
export declare const DefaultExample: Story;
|
|
41
|
+
/**
|
|
42
|
+
* Form Validation States (Success vs Error)
|
|
43
|
+
*/
|
|
44
|
+
export declare const ValidationStates: Story;
|
|
45
|
+
/**
|
|
46
|
+
* Disabled and ReadOnly states demonstrating height preservation
|
|
47
|
+
*/
|
|
48
|
+
export declare const DisabledAndReadOnly: Story;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { TextArea } from '../../../components';
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
|
-
component:
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("../../../components/Forms/TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6
5
|
parameters: {
|
|
7
6
|
layout: string;
|
|
8
7
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { HorizontalStepper } from '../../components/Stepper/Horizontal';
|
|
3
|
+
declare const meta: Meta<typeof HorizontalStepper>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HorizontalStepper>;
|
|
6
|
+
export declare const Medium: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Interactive: Story;
|
|
9
|
+
export declare const InteractiveCustomIcon: Story;
|
|
@@ -6,8 +6,24 @@ declare const meta: {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
argTypes: {
|
|
10
|
+
variant: {
|
|
11
|
+
control: "inline-radio";
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
className: {
|
|
15
|
+
control: "text";
|
|
16
|
+
};
|
|
17
|
+
children: {
|
|
18
|
+
control: "text";
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
control: "inline-radio";
|
|
22
|
+
options: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
10
25
|
};
|
|
11
26
|
export default meta;
|
|
12
27
|
type Story = StoryObj<typeof meta>;
|
|
13
28
|
export declare const Cell: Story;
|
|
29
|
+
export declare const CellBreakwordSimulation: Story;
|