@canaia/ui-kit 0.0.10-alpha.9 → 0.0.11-alpha.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/canaia-ui-kit.es.js +28807 -14883
- package/dist/canaia-ui-kit.umd.js +203 -100
- package/dist/src/components/Alert/customIso.d.ts +2 -0
- package/dist/src/components/AudioButtons/AudioButtons.d.ts +3 -0
- package/dist/src/components/AudioButtons/index.d.ts +2 -0
- package/dist/src/components/BackNavigation/BackNavigation.d.ts +3 -0
- package/dist/src/components/BackNavigation/index.d.ts +2 -0
- package/dist/src/components/Banner/Banner.d.ts +3 -0
- package/dist/src/components/Banner/index.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +3 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/ChatAssistant/ChatAssistant.d.ts +3 -0
- package/dist/src/components/ChatAssistant/helper/ThreeDotsSpinner.d.ts +3 -0
- package/dist/src/components/ChatAssistant/index.d.ts +2 -0
- package/dist/src/components/ChatAssistantWithoutFeedback/ChatWithoutFeedback.d.ts +3 -0
- package/dist/src/components/ChatAssistantWithoutFeedback/index.d.ts +2 -0
- package/dist/src/components/ChatInput/ChatInput.d.ts +3 -0
- package/dist/src/components/ChatInput/index.d.ts +2 -0
- package/dist/src/components/ChatUser/ChatUser.d.ts +3 -0
- package/dist/src/components/ChatUser/index.d.ts +2 -0
- package/dist/src/components/Checkbox/CheckBox.d.ts +3 -0
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/CustomBox/CustomBox.d.ts +3 -0
- package/dist/src/components/CustomBox/index.d.ts +2 -0
- package/dist/src/components/Header/Header.d.ts +1 -1
- package/dist/src/components/Input/Input.d.ts +3 -0
- package/dist/src/components/Input/index.d.ts +2 -0
- package/dist/src/components/InputPhone.tsx/index.d.ts +2 -0
- package/dist/src/components/InputPhone.tsx/inputPhone.d.ts +3 -0
- package/dist/src/components/Metric/Metric.d.ts +3 -0
- package/dist/src/components/Metric/index.d.ts +2 -0
- package/dist/src/components/ModalConfirmation/ModalConfirmation.d.ts +3 -0
- package/dist/src/components/ModalConfirmation/ModalConfirmation.types.d.ts +11 -0
- package/dist/src/components/ModalConfirmation/index.d.ts +2 -0
- package/dist/src/components/ModalEliminate/ModalEliminate.d.ts +3 -0
- package/dist/src/components/ModalEliminate/assets/Eliminate-icon.d.ts +5 -0
- package/dist/src/components/ModalEliminate/index.d.ts +2 -0
- package/dist/src/components/ModalFeedback/ModalFeedback.d.ts +3 -0
- package/dist/src/components/ModalFeedback/ModalFeedback.types.d.ts +10 -0
- package/dist/src/components/ModalFeedback/index.d.ts +2 -0
- package/dist/src/components/ModalInactivity/ModalInactivity.d.ts +3 -0
- package/dist/src/components/ModalInactivity/ModalInactivity.types.d.ts +11 -0
- package/dist/src/components/ModalInactivity/assets/warning-icon.d.ts +6 -0
- package/dist/src/components/ModalInactivity/index.d.ts +2 -0
- package/dist/src/components/ModalPermission/ModalPermission.d.ts +3 -0
- package/dist/src/components/ModalPermission/ModalPermission.types.d.ts +11 -0
- package/dist/src/components/ModalPermission/assets/warning-icon.d.ts +6 -0
- package/dist/src/components/ModalPermission/index.d.ts +2 -0
- package/dist/src/components/ModalPremium/ModalPremium.d.ts +3 -0
- package/dist/src/components/ModalPremium/index.d.ts +2 -0
- package/dist/src/components/MultiHeaderAccordion/MultiHeaderAccordion.d.ts +3 -0
- package/dist/src/components/MultiHeaderAccordion/MultiHeaderAccordion.types.d.ts +10 -0
- package/dist/src/components/MultiHeaderAccordion/index.d.ts +2 -0
- package/dist/src/components/MultiInput/MultiInput.d.ts +3 -0
- package/dist/src/components/MultiInput/MultiInput.types.d.ts +14 -0
- package/dist/src/components/MultiInput/index.d.ts +2 -0
- package/dist/src/components/NegativeModal/NegativeModal.d.ts +3 -0
- package/dist/src/components/NegativeModal/NegativeModal.types.d.ts +9 -0
- package/dist/src/components/NegativeModal/index.d.ts +2 -0
- package/dist/src/components/PositiveModal/PositiveModal.d.ts +3 -0
- package/dist/src/components/PositiveModal/PositiveModal.types.d.ts +12 -0
- package/dist/src/components/PositiveModal/index.d.ts +2 -0
- package/dist/src/components/ProgressBar/CustomProgressBar.d.ts +3 -0
- package/dist/src/components/ProgressBar/index.d.ts +2 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/dist/src/components/SegmentedControl/index.d.ts +2 -0
- package/dist/src/components/Select/Select.d.ts +1 -1
- package/dist/src/components/SideBarCustom/SideBarCustom.d.ts +3 -0
- package/dist/src/components/SideBarCustom/assets/logoCanaia.d.ts +6 -0
- package/dist/src/components/SideBarCustom/index.d.ts +2 -0
- package/dist/src/components/SingleChoice/SingleChoice.d.ts +3 -0
- package/dist/src/components/SingleChoice/index.d.ts +2 -0
- package/dist/src/components/Switch/Switch.d.ts +3 -0
- package/dist/src/components/Switch/index.d.ts +2 -0
- package/dist/src/components/Tabs/Tabs.d.ts +3 -0
- package/dist/src/components/Tabs/index.d.ts +2 -0
- package/dist/src/components/TabsOptions/TabsOptions.d.ts +3 -0
- package/dist/src/components/TabsOptions/TabsOptions.types.d.ts +8 -0
- package/dist/src/components/TabsOptions/index.d.ts +2 -0
- package/dist/src/components/Tags/Tags.d.ts +3 -0
- package/dist/src/components/Tags/index.d.ts +2 -0
- package/dist/src/components/Textarea/Textarea.d.ts +1 -1
- package/dist/src/icons/RobotCanaia/RobotCanaia.d.ts +7 -0
- package/dist/src/icons/SuccessTick/RobotDescription.d.ts +6 -0
- package/dist/src/icons/SuccessTick/SuccessTick.d.ts +6 -0
- package/dist/src/index.d.ts +31 -0
- package/dist/src/theme/chat.d.ts +44 -0
- package/dist/src/theme/fonts/index.d.ts +2 -0
- package/dist/src/theme/styles.d.ts +44 -1
- package/dist/style.css +1 -1
- package/package.json +7 -4
- package/dist/src/theme/fonts/fonts.d.ts +0 -6
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CustomChatAssistant } from './ChatAssistant.types';
|
|
2
|
+
declare const ChatAssistant: ({ message, colorTextMessage, color, isError, thumbUp, thumbDown, withFeedback, onThumbUp, onThumbDown, toastSuccessMsg, isTyping, colorCopyIcon, colorThumbUp, colorThumbDown, }: CustomChatAssistant) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ChatAssistant;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ChatWithoutFeedbackProps } from './ChatWithoutFeedback.types';
|
|
2
|
+
declare const ChatWithoutFeedback: ({ message, colorTextMessage, isError, toastSuccessMsg, isTyping, colorCopyIcon, }: ChatWithoutFeedbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ChatWithoutFeedback;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CustomHeaderProps } from './Header.type';
|
|
2
|
-
declare const Header: ({ platform, color,
|
|
2
|
+
declare const Header: ({ platform, color, onLogOutClick, onLogoClick, userName, logoutName, isProduction, showMenuItems, menuAppRef, menuSettingsRef, menuOptions, ...props }: CustomHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Header;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ModalInactivityProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
text?: string;
|
|
5
|
+
textButton?: string;
|
|
6
|
+
backgroundButton?: string;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
8
|
+
closeOnEsc?: boolean;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
onLoginClick?: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ModalPermissionProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
text?: string;
|
|
5
|
+
textButton?: string;
|
|
6
|
+
backgroundButton?: string;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
8
|
+
closeOnEsc?: boolean;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
onBackClick?: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface MultiInputFormProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
placeholders?: string[];
|
|
5
|
+
values: string[];
|
|
6
|
+
onChange?: (index: number, val: string) => void;
|
|
7
|
+
dropdown?: boolean;
|
|
8
|
+
info?: boolean;
|
|
9
|
+
infoText?: string;
|
|
10
|
+
product?: "info" | "elevate" | "others";
|
|
11
|
+
isRequired?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PositiveModalProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
description: string;
|
|
5
|
+
buttonText: string;
|
|
6
|
+
product?: string;
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
secondButton?: boolean;
|
|
10
|
+
optionalFunction?: () => void;
|
|
11
|
+
optionalButtonText?: string;
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextAreaComponentProps } from './Textarea.types';
|
|
2
|
-
declare const TextareaCustom:
|
|
2
|
+
declare const TextareaCustom: import('react').ForwardRefExoticComponent<TextAreaComponentProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
3
3
|
export default TextareaCustom;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,12 +5,43 @@ export { default as PhotoUpload } from './components/PhotoUpload';
|
|
|
5
5
|
export { default as Steps } from './components/Steps';
|
|
6
6
|
export { default as DragAndDrop } from './components/DragAndDrop';
|
|
7
7
|
export { default as Text } from './components/Text';
|
|
8
|
+
export { default as Input } from './components/Input';
|
|
9
|
+
export { default as InputPhone } from './components/InputPhone.tsx';
|
|
10
|
+
export { default as MultiInput } from './components/MultiInput';
|
|
8
11
|
export { default as Toast } from './components/Toast';
|
|
9
12
|
export { default as useCustomToast } from './components/Toast/useCustomToast';
|
|
13
|
+
export { default as ChatUser } from './components/ChatUser';
|
|
14
|
+
export { default as ChatAssistant } from './components/ChatAssistant';
|
|
10
15
|
export { default as Header } from './components/Header';
|
|
16
|
+
export { default as ChatInput } from './components/ChatInput';
|
|
11
17
|
export { default as SideBar } from './components/SideBar';
|
|
12
18
|
export { default as ModalCustom } from './components/ModalCustom';
|
|
19
|
+
export { default as ModalConfirmation } from './components/ModalConfirmation';
|
|
13
20
|
export { default as AccordionCustom } from './components/Accordion';
|
|
14
21
|
export { default as MenuListCustom } from './components/MenuList';
|
|
15
22
|
export { default as TextareaCustom } from './components/Textarea';
|
|
16
23
|
export { default as StatusCustom } from './components/Status';
|
|
24
|
+
export { default as CustomProgressBar } from './components/ProgressBar';
|
|
25
|
+
export { default as CustomBox } from './components/CustomBox';
|
|
26
|
+
export { default as MetricCustom } from './components/Metric';
|
|
27
|
+
export { default as CardCustom } from './components/Card';
|
|
28
|
+
export { default as Spinner } from './components/SpinnerLogo';
|
|
29
|
+
export { default as SegmentedControl } from './components/SegmentedControl';
|
|
30
|
+
export { default as AudioButtons } from './components/AudioButtons';
|
|
31
|
+
export { default as Tabs } from './components/Tabs';
|
|
32
|
+
export { default as SwitchCustom } from './components/Switch';
|
|
33
|
+
export { default as TagSelector } from './components/Tags';
|
|
34
|
+
export { default as CustomCheckBox } from './components/Checkbox';
|
|
35
|
+
export { default as TabsOptions } from './components/TabsOptions';
|
|
36
|
+
export { default as ModalFeedback } from './components/ModalFeedback';
|
|
37
|
+
export { default as PositiveModal } from './components/PositiveModal';
|
|
38
|
+
export { default as NegativeModal } from './components/NegativeModal';
|
|
39
|
+
export { default as ChatWithoutFeedback } from './components/ChatAssistantWithoutFeedback';
|
|
40
|
+
export { default as ModalPremium } from './components/ModalPremium';
|
|
41
|
+
export { default as BackNavigation } from './components/BackNavigation';
|
|
42
|
+
export { default as Banner } from './components/Banner';
|
|
43
|
+
export { default as SingleChoice } from './components/SingleChoice';
|
|
44
|
+
export { default as MultiHeaderAccordion } from './components/MultiHeaderAccordion';
|
|
45
|
+
export { default as SideBarCustom } from './components/SideBarCustom';
|
|
46
|
+
export { default as ModalInactivity } from './components/ModalInactivity';
|
|
47
|
+
export { default as ModalPermission } from './components/ModalPermission';
|
package/dist/src/theme/chat.d.ts
CHANGED
|
@@ -62,5 +62,49 @@ declare const chat: {
|
|
|
62
62
|
".cs-typing-indicator__dot": {
|
|
63
63
|
backgroundColor: string;
|
|
64
64
|
};
|
|
65
|
+
".chat-assistant__wrapper h1": {
|
|
66
|
+
fontSize: string;
|
|
67
|
+
};
|
|
68
|
+
".chat-assistant__wrapper h2": {
|
|
69
|
+
fontSize: string;
|
|
70
|
+
};
|
|
71
|
+
".chat-assistant__wrapper h3": {
|
|
72
|
+
fontSize: string;
|
|
73
|
+
};
|
|
74
|
+
".chat-assistant__wrapper h4": {
|
|
75
|
+
fontSize: string;
|
|
76
|
+
};
|
|
77
|
+
".chat-assistant__wrapper h5": {
|
|
78
|
+
fontSize: string;
|
|
79
|
+
};
|
|
80
|
+
".chat-assistant__wrapper h6": {
|
|
81
|
+
fontSize: string;
|
|
82
|
+
};
|
|
83
|
+
".chat-assistant__wrapper a": {
|
|
84
|
+
color: string;
|
|
85
|
+
textDecoration: string;
|
|
86
|
+
};
|
|
87
|
+
".chat-assistant__wrapper table": {
|
|
88
|
+
borderCollapse: string;
|
|
89
|
+
marginTop: string;
|
|
90
|
+
width: string;
|
|
91
|
+
};
|
|
92
|
+
".chat-assistant__wrapper table th, .chat-assistant__wrapper table td ": {
|
|
93
|
+
border: string;
|
|
94
|
+
padding: string;
|
|
95
|
+
};
|
|
96
|
+
".chat-assistant__wrapper img": {
|
|
97
|
+
maxWidth: string;
|
|
98
|
+
};
|
|
99
|
+
".chat-assistant__wrapper hr": {
|
|
100
|
+
border: string;
|
|
101
|
+
borderTop: string;
|
|
102
|
+
margin: string;
|
|
103
|
+
};
|
|
104
|
+
".chat-assistant__wrapper blockquote": {
|
|
105
|
+
fontStyle: string;
|
|
106
|
+
paddingLeft: string;
|
|
107
|
+
color: string;
|
|
108
|
+
};
|
|
65
109
|
};
|
|
66
110
|
export default chat;
|