@app-studio/web 0.3.69 → 0.6.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/bot/Bot.d.ts +4 -3
- package/dist/bot/DocuCode.d.ts +7 -2
- package/dist/bot/FileHandler.d.ts +5 -0
- package/dist/bot/OpenAIConnector.d.ts +2 -0
- package/dist/bot/prompt/1-project.d.ts +1 -1
- package/dist/bot/prompt/2-response.d.ts +1 -1
- package/dist/bot/prompt/3-comment.d.ts +1 -1
- package/dist/components/Button/Button/Button.props.d.ts +0 -60
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -71
- package/dist/components/Form/Checkbox/examples/index.d.ts +1 -0
- package/dist/components/Form/Checkbox/examples/infoText.d.ts +2 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +10 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +36 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +2 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.state.d.ts +2 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.type.d.ts +12 -0
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +4 -0
- package/dist/components/Form/ComboBox/ComboBox.d.ts +3 -0
- package/dist/components/Form/ComboBox/examples/default.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/index.d.ts +10 -0
- package/dist/components/Form/ComboBox/examples/label.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/left.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/onSelect.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/placeholder.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/right.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/searchEnabled.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/searchPlaceholder.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/showTick.d.ts +2 -0
- package/dist/components/Form/ComboBox/examples/styles.d.ts +2 -0
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +0 -3
- package/dist/components/Form/Label/Label/Label.props.d.ts +0 -24
- package/dist/components/Form/Select/Select/Select.props.d.ts +1 -0
- package/dist/components/Form/Select/Select/Select.state.d.ts +2 -0
- package/dist/components/Form/Select/examples/color.d.ts +2 -0
- package/dist/components/Form/Select/examples/index.d.ts +2 -1
- package/dist/components/Form/Select/examples/isScrollable.d.ts +2 -0
- package/dist/components/Form/TextField/examples/index.d.ts +1 -1
- package/dist/components/Formik/Formik.ComboBox.d.ts +6 -0
- package/dist/components/Formik/examples/FormikComboBox.d.ts +2 -0
- package/dist/components/Formik/examples/index.d.ts +1 -0
- package/dist/components/Formik/index.d.ts +1 -0
- package/dist/components/Layout/index.d.ts +4 -0
- package/dist/components/Message/Message/Message.layout.d.ts +1 -1
- package/dist/components/Message/Message/Message.props.d.ts +31 -107
- package/dist/components/Message/Message/Message.store.d.ts +2 -8
- package/dist/components/Message/Message/Message.style.d.ts +2 -2
- package/dist/components/Message/Message/Message.view.d.ts +2 -18
- package/dist/components/Message/examples/action.d.ts +2 -0
- package/dist/components/Message/examples/default.d.ts +2 -0
- package/dist/components/Message/examples/index.d.ts +9 -0
- package/dist/components/Message/examples/isClosable.d.ts +2 -0
- package/dist/components/Message/examples/showIcon.d.ts +2 -0
- package/dist/components/Message/examples/styles.d.ts +2 -0
- package/dist/components/Message/examples/subtitle.d.ts +2 -0
- package/dist/components/Message/examples/timeout.d.ts +2 -0
- package/dist/components/Message/examples/title.d.ts +2 -0
- package/dist/components/Message/examples/variant.d.ts +2 -0
- package/dist/components/Svg/Error.d.ts +8 -0
- package/dist/components/Svg/Info.d.ts +8 -0
- package/dist/components/Svg/Plus.d.ts +8 -0
- package/dist/components/Svg/Search.d.ts +8 -0
- package/dist/components/Svg/Success.d.ts +8 -0
- package/dist/components/Svg/Tick.d.ts +8 -0
- package/dist/components/Svg/index.d.ts +3 -0
- package/dist/components/Table/Table/Table.context.d.ts +16 -0
- package/dist/components/Table/Table/Table.props.d.ts +22 -0
- package/dist/components/Table/Table/Table.state.d.ts +5 -0
- package/dist/components/Table/Table/Table.type.d.ts +19 -0
- package/dist/components/Table/Table/Table.view.d.ts +11 -0
- package/dist/components/Table/Table.d.ts +13 -0
- package/dist/components/Table/examples/caption.d.ts +2 -0
- package/dist/components/Table/examples/data.d.ts +2 -0
- package/dist/components/Table/examples/default.d.ts +2 -0
- package/dist/components/Table/examples/footer.d.ts +2 -0
- package/dist/components/Table/examples/index.d.ts +5 -0
- package/dist/components/Table/examples/styles.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/pages/comboBox.page.d.ts +3 -0
- package/dist/pages/message.page.d.ts +2 -2
- package/dist/pages/table.page.d.ts +3 -0
- package/dist/utils/componentsPageImports.d.ts +6 -0
- package/dist/web.cjs.development.js +1044 -243
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +1039 -244
- package/dist/web.esm.js.map +1 -1
- package/package.json +7 -5
- package/dist/components/Form/Select/examples/Color.d.ts +0 -2
- package/dist/components/Message/Examples/CloseButtonMessage.d.ts +0 -2
- package/dist/components/Message/Examples/DefaultMessage.d.ts +0 -2
- package/dist/components/Message/Examples/VariantMessage.d.ts +0 -2
- package/dist/components/Message/Examples/index.d.ts +0 -3
- /package/dist/components/Form/TextField/examples/{ColorScheme.d.ts → colorScheme.d.ts} +0 -0
package/dist/bot/Bot.d.ts
CHANGED
|
@@ -5,9 +5,10 @@ export declare class Bot {
|
|
|
5
5
|
private readonly cache;
|
|
6
6
|
private readonly cacheKey;
|
|
7
7
|
constructor(cacheKey: string);
|
|
8
|
-
init(name: string, fileIds: string[],
|
|
9
|
-
addFiles(componentFolder: string): Promise<any>;
|
|
8
|
+
init(name: string, fileIds: string[], cachePath: string): Promise<Assistant>;
|
|
10
9
|
createFile(fileContent: string, fileName: string): Promise<any>;
|
|
11
|
-
|
|
10
|
+
addFile(filePath: string): Promise<any>;
|
|
11
|
+
response(assistantId: string, propsPath: string, componentFolder: string, componentName: string): Promise<any>;
|
|
12
|
+
isObject(value: any): boolean;
|
|
12
13
|
MarkdownGeneration(componentFolder: string, componentName: string, propsPath: string): Promise<void>;
|
|
13
14
|
}
|
package/dist/bot/DocuCode.d.ts
CHANGED
|
@@ -5,8 +5,13 @@ export declare class DocuCode {
|
|
|
5
5
|
private readonly cacheKey;
|
|
6
6
|
constructor(cacheKey: string);
|
|
7
7
|
commentCodeFile(filePath: string, assistantId: string): Promise<void>;
|
|
8
|
-
processComments(filePath: string, commentsJson: any): Promise<void>;
|
|
9
|
-
insertCommentIntoFile(filePath: string, line: number, comment: string): Promise<void>;
|
|
8
|
+
processComments(filePath: string, code: string, commentsJson: any): Promise<void>;
|
|
10
9
|
removeCommentsAndCleanFile(filePath: string): Promise<void>;
|
|
11
10
|
processDirectory(dirPath: string, assistantId: string): Promise<any>;
|
|
11
|
+
splitArrayToJSON(code: string): {
|
|
12
|
+
line: number;
|
|
13
|
+
code: string;
|
|
14
|
+
}[];
|
|
15
|
+
insertComments(code: string, comments: any[]): string;
|
|
16
|
+
compareStrings(line: string, codeSnippet: string): boolean;
|
|
12
17
|
}
|
|
@@ -15,5 +15,10 @@ export declare class FileHandler {
|
|
|
15
15
|
readComponentPropsFromJson: (filePath: string) => Record<string, any>;
|
|
16
16
|
uploadFile(filePath: string, purpose: 'fine-tune' | 'assistants'): Promise<string>;
|
|
17
17
|
deleteFile(fileId: string): Promise<boolean>;
|
|
18
|
+
deleteFiles(fileIds: string[]): Promise<{
|
|
19
|
+
fileId: string;
|
|
20
|
+
deleted: boolean;
|
|
21
|
+
error: null;
|
|
22
|
+
}[]>;
|
|
18
23
|
listFiles(): Promise<OpenAI.Files.FileObject[]>;
|
|
19
24
|
}
|
|
@@ -13,9 +13,11 @@ export declare class OpenAIConnector {
|
|
|
13
13
|
private readonly apiKey;
|
|
14
14
|
private readonly organization;
|
|
15
15
|
private readonly openai;
|
|
16
|
+
private readonly fileHandler;
|
|
16
17
|
constructor(apiKey: string, organization: string);
|
|
17
18
|
sendChatMessage(model: string, messages: MessageCreateParams[]): Promise<OpenAI.Chat.Completions.ChatCompletion>;
|
|
18
19
|
createAssistant(instructions: string, name: string, fileIds: string[]): Promise<Assistant>;
|
|
20
|
+
updateAssistantFiles(assistantId: string, newFileIds: string[]): Promise<Assistant>;
|
|
19
21
|
createAssistantFiles(assistantId: string, filesIds: string[]): Promise<Assistant>;
|
|
20
22
|
deleteAssistantFiles(assistantId: string, AssistantFileId: string): Promise<OpenAI.Beta.Assistants.Files.FileDeleteResponse>;
|
|
21
23
|
getAssistantFiles(assistantId: string): Promise<OpenAI.Beta.Assistants.Files.AssistantFilesPage>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ProjectPrompt: (
|
|
1
|
+
export declare const ProjectPrompt: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const RespondPrompt: () => string;
|
|
1
|
+
export declare const RespondPrompt: (props: string, view: string, type?: string | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CommentPrompt: (codeContent: string) => string;
|
|
1
|
+
export declare const CommentPrompt: (componentName: string, fileName: string, codeContent: string) => string;
|
|
@@ -3,85 +3,25 @@ import { Shadow } from 'app-studio';
|
|
|
3
3
|
import { Elevation } from '../../../utils/elevation';
|
|
4
4
|
import { IconPosition, Shape, Size, Variant, LoaderPosition, Effects } from './Button.type';
|
|
5
5
|
import { LoaderProps } from '../../Loader/Loader/Loader.props';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the properties for the Button component.
|
|
8
|
-
*/
|
|
9
6
|
export interface ButtonProps {
|
|
10
|
-
/**
|
|
11
|
-
* The content to be rendered inside the button.
|
|
12
|
-
*/
|
|
13
7
|
children?: React.ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Sets the background color of the button.
|
|
16
|
-
*/
|
|
17
8
|
colorScheme?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Specifies the external URL used when the variant is set to "link".
|
|
20
|
-
*/
|
|
21
9
|
externalHref?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Indicates whether the button is in a loading state.
|
|
24
|
-
*/
|
|
25
10
|
isLoading?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Indicates whether the button is in a loading state.
|
|
28
|
-
*/
|
|
29
11
|
loaderProps?: LoaderProps;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the position of the icon within the button.
|
|
32
|
-
*/
|
|
33
12
|
loaderPosition?: LoaderPosition;
|
|
34
|
-
/**
|
|
35
|
-
* The icon component rendered within the button.
|
|
36
|
-
*/
|
|
37
13
|
icon?: React.ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the position of the icon within the button.
|
|
40
|
-
*/
|
|
41
14
|
iconPosition?: IconPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Disables the button if set to true.
|
|
44
|
-
*/
|
|
45
15
|
isDisabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Adjusts the width of the button to take available space.
|
|
48
|
-
*/
|
|
49
16
|
isFilled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Adjusts the width of the button based on content size.
|
|
52
|
-
*/
|
|
53
17
|
isAuto?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Makes the icon container shape rounded if set to true.
|
|
56
|
-
*/
|
|
57
18
|
isIconRounded?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The event handler called when the button is clicked or pressed.
|
|
60
|
-
*/
|
|
61
19
|
onClick?: Function;
|
|
62
|
-
/**
|
|
63
|
-
* Specifies the size of the button's text and padding.
|
|
64
|
-
*/
|
|
65
20
|
size?: Size;
|
|
66
|
-
/**
|
|
67
|
-
* Sets a shadow effect applied to the button.
|
|
68
|
-
*/
|
|
69
21
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
70
|
-
/**
|
|
71
|
-
* Specifies the shape of the button's corners.
|
|
72
|
-
*/
|
|
73
22
|
shape?: Shape;
|
|
74
|
-
/**
|
|
75
|
-
* Descriptive label for accessibility (ARIA) purposes.
|
|
76
|
-
*/
|
|
77
23
|
ariaLabel?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the style variant of the button.
|
|
80
|
-
*/
|
|
81
24
|
variant?: Variant;
|
|
82
25
|
effect?: Effects;
|
|
83
|
-
/**
|
|
84
|
-
* Additional properties for the button component.
|
|
85
|
-
*/
|
|
86
26
|
[x: string]: any;
|
|
87
27
|
}
|
|
@@ -2,100 +2,30 @@ import React, { CSSProperties } from 'react';
|
|
|
2
2
|
import { Elevation } from 'src/utils/elevation';
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { CheckboxStyles, Size } from './Checkbox.type';
|
|
5
|
-
/**
|
|
6
|
-
* Represents the properties for a checkbox component.
|
|
7
|
-
*/
|
|
8
5
|
export interface CheckboxProps {
|
|
9
|
-
/**
|
|
10
|
-
* The identifier for the checkbox.
|
|
11
|
-
*/
|
|
12
6
|
id?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Custom icon to be displayed when the checkbox is checked.
|
|
15
|
-
*/
|
|
16
7
|
icon?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Indicates whether the checkbox has an error.
|
|
19
|
-
*/
|
|
20
8
|
error?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The name of the checkbox element.
|
|
23
|
-
*/
|
|
24
9
|
name?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The label of the checkbox.
|
|
27
|
-
*/
|
|
28
10
|
label?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Changes the background color of the checkbox.
|
|
31
|
-
*/
|
|
32
11
|
colorScheme?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Give control on the selected state of the checkbox component.
|
|
35
|
-
*/
|
|
36
12
|
isChecked?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Allows you to set the initial state of the checkbox without controlling its value
|
|
39
|
-
*/
|
|
40
13
|
defaultIsSelected?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* If true, the checkbox cannot be interacted with.
|
|
43
|
-
*/
|
|
44
14
|
isReadOnly?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* If true, the checkbox is disabled and cannot be selected.
|
|
47
|
-
*/
|
|
48
15
|
isDisabled?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Indicates that the checkbox is neither checked nor unchecked.
|
|
51
|
-
*/
|
|
52
16
|
isIndeterminate?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Label position
|
|
55
|
-
*/
|
|
56
17
|
labelPosition?: 'left' | 'right';
|
|
57
|
-
/**
|
|
58
|
-
* Handler function called when the controlled checkbox value changes.
|
|
59
|
-
*/
|
|
60
18
|
onChange?: Function;
|
|
61
|
-
/**
|
|
62
|
-
* Handler function called when the checkbox value changes on iOS and Android devices.
|
|
63
|
-
*/
|
|
64
19
|
onValueChange?: Function;
|
|
65
|
-
/**
|
|
66
|
-
* CSS styles
|
|
67
|
-
*/
|
|
68
20
|
styles?: CheckboxStyles;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the height and width of the checkbox.
|
|
71
|
-
*/
|
|
72
21
|
size?: Size;
|
|
73
|
-
/**
|
|
74
|
-
* Sets a shadow effect for the checkbox.
|
|
75
|
-
*/
|
|
76
22
|
shadow?: Shadow | Elevation | CSSProperties;
|
|
77
|
-
|
|
78
|
-
* Other additional properties.
|
|
79
|
-
*/
|
|
23
|
+
infoText?: string;
|
|
80
24
|
[x: string]: any;
|
|
81
25
|
}
|
|
82
26
|
export interface CheckboxViewProps extends CheckboxProps {
|
|
83
|
-
/**
|
|
84
|
-
* Indicates whether the checkbox is currently being hovered.
|
|
85
|
-
*/
|
|
86
27
|
isHovered?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* A function to set the hovered state of the checkbox.
|
|
89
|
-
* @param hovered - The hovered state to set.
|
|
90
|
-
*/
|
|
91
28
|
setIsHovered?: (hovered: boolean) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Indicates whether the checkbox is selected/checked.
|
|
94
|
-
*/
|
|
95
29
|
isChecked?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* A function to set the selected state of the checkbox.
|
|
98
|
-
* @param selected - The selected state to set.
|
|
99
|
-
*/
|
|
100
30
|
setIsChecked?: (selected: boolean) => void;
|
|
101
31
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ComboBoxContextType {
|
|
3
|
+
openDropdowns: {
|
|
4
|
+
[key: string]: boolean;
|
|
5
|
+
};
|
|
6
|
+
toggleDropdown: (id: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ComboBoxContext: import("react").Context<ComboBoxContextType>;
|
|
9
|
+
export declare const useComboBoxContext: () => ComboBoxContextType;
|
|
10
|
+
export default ComboBoxContext;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { ComboBoxStyles } from './ComboBox.type';
|
|
3
|
+
export interface ComboBoxProps {
|
|
4
|
+
id: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
items: ComboBoxItem[];
|
|
7
|
+
onSelect?: (item: ComboBoxItem) => void;
|
|
8
|
+
searchEnabled?: boolean;
|
|
9
|
+
left?: ReactNode;
|
|
10
|
+
right?: ReactNode;
|
|
11
|
+
label?: string;
|
|
12
|
+
showTick?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
styles?: ComboBoxStyles;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}
|
|
18
|
+
export interface ComboBoxItem {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface ComboBoxStateActions {
|
|
24
|
+
filteredItems: ComboBoxItem[];
|
|
25
|
+
setFilteredItems: Dispatch<SetStateAction<ComboBoxItem[]>>;
|
|
26
|
+
selectedItem: ComboBoxItem;
|
|
27
|
+
setSelectedItem: Dispatch<SetStateAction<ComboBoxItem>>;
|
|
28
|
+
highlightedIndex: number;
|
|
29
|
+
setHighlightedIndex: Dispatch<SetStateAction<number>>;
|
|
30
|
+
searchQuery: string;
|
|
31
|
+
setSearchQuery: Dispatch<SetStateAction<string>>;
|
|
32
|
+
isDropdownVisible: boolean;
|
|
33
|
+
setIsDropdownVisible: Dispatch<SetStateAction<boolean>>;
|
|
34
|
+
}
|
|
35
|
+
export interface ComboBoxViewProps extends ComboBoxProps, ComboBoxStateActions {
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type Styles = {
|
|
3
|
+
[key: string]: React.CSSProperties;
|
|
4
|
+
};
|
|
5
|
+
export declare type ComboBoxStyles = {
|
|
6
|
+
container?: React.CSSProperties;
|
|
7
|
+
label?: any;
|
|
8
|
+
dropdown?: React.CSSProperties;
|
|
9
|
+
item?: React.CSSProperties;
|
|
10
|
+
labelContainer?: React.CSSProperties;
|
|
11
|
+
text?: any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './default';
|
|
2
|
+
export * from './label';
|
|
3
|
+
export * from './left';
|
|
4
|
+
export * from './onSelect';
|
|
5
|
+
export * from './placeholder';
|
|
6
|
+
export * from './right';
|
|
7
|
+
export * from './searchEnabled';
|
|
8
|
+
export * from './searchPlaceholder';
|
|
9
|
+
export * from './showTick';
|
|
10
|
+
export * from './styles';
|
|
@@ -3,9 +3,6 @@ import { Elevation } from 'src/utils/elevation';
|
|
|
3
3
|
import { Shadow } from 'app-studio';
|
|
4
4
|
import { DatePickerStyles, Shape, Size, Variant } from './DatePicker.type';
|
|
5
5
|
export interface DatePickerProps {
|
|
6
|
-
/**
|
|
7
|
-
* The identifier for the DatePicker component.
|
|
8
|
-
*/
|
|
9
6
|
id?: string;
|
|
10
7
|
/**
|
|
11
8
|
* Custom icon to display when the DatePicker is checked.
|
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Headings, Sizes, TextWeights } from './Label.type';
|
|
3
3
|
export interface LabelProps {
|
|
4
|
-
/**
|
|
5
|
-
* The text content
|
|
6
|
-
*/
|
|
7
4
|
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Specify a heading html tag.
|
|
10
|
-
*/
|
|
11
5
|
heading?: Headings;
|
|
12
|
-
/**
|
|
13
|
-
* If true, the text is styled in italic
|
|
14
|
-
*/
|
|
15
6
|
isItalic?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Marks up a text to indicate that it is no longer valid
|
|
18
|
-
*/
|
|
19
7
|
isStriked?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If true, it underline the text
|
|
22
|
-
*/
|
|
23
8
|
isUnderlined?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Changes the text-size
|
|
26
|
-
*/
|
|
27
9
|
size?: Sizes | number;
|
|
28
|
-
/**
|
|
29
|
-
* Changes the font weight of the text
|
|
30
|
-
*/
|
|
31
10
|
weight?: TextWeights;
|
|
32
|
-
/**
|
|
33
|
-
* Other properties
|
|
34
|
-
*/
|
|
35
11
|
[x: string]: any;
|
|
36
12
|
}
|
|
@@ -9,6 +9,8 @@ export declare const useSelectState: ({ placeholder, isMulti, options, }: Select
|
|
|
9
9
|
setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
10
|
isFocused: boolean;
|
|
11
11
|
setIsFocused: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
highlightedIndex: number;
|
|
13
|
+
setHighlightedIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
12
14
|
};
|
|
13
15
|
export declare const useItemState: () => {
|
|
14
16
|
isHovered: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './color';
|
|
2
2
|
export * from './Default';
|
|
3
3
|
export * from './Disabled';
|
|
4
4
|
export * from './Error';
|
|
@@ -9,3 +9,4 @@ export * from './ReadOnlyInput';
|
|
|
9
9
|
export * from './Shadow';
|
|
10
10
|
export * from './SizeInput';
|
|
11
11
|
export * from './StylesInput';
|
|
12
|
+
export * from './isScrollable';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageLayoutProps } from './Message.props';
|
|
3
|
-
export declare const MessageLayout: ({ container,
|
|
3
|
+
export declare const MessageLayout: ({ container, theme, position, }: MessageLayoutProps) => React.JSX.Element | null;
|