cindy-ai-chatbot 1.1.4 → 1.1.5
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/App.d.ts +2 -0
- package/dist/components/AgenticAI/components/Loader.d.ts +1 -0
- package/dist/components/AgenticAI/components/MainCard.d.ts +26 -0
- package/dist/components/AgenticAI/components/agentic-ai-assistant.d.ts +15 -0
- package/dist/components/AgenticAI/components/agentic-ai.d.ts +17 -0
- package/dist/components/AgenticAI/components/agentic-chatbot-ai.d.ts +31 -0
- package/dist/components/AgenticAI/components/authentication-modal.d.ts +8 -0
- package/dist/components/AgenticAI/components/delete-recent-conversation-modal.tsx.d.ts +9 -0
- package/dist/components/AgenticAI/components/edit-recent-conversation-modal.d.ts +11 -0
- package/dist/components/AgenticAI/components/threedotmenu.d.ts +6 -0
- package/dist/components/AgenticAI/components/toast.d.ts +11 -0
- package/dist/components/AgenticAI/config/http-common.d.ts +11 -0
- package/dist/components/AgenticAI/providers/AIBotProvider.d.ts +52 -0
- package/dist/components/AgenticCindyChatBot.d.ts +0 -0
- package/dist/components/AiDialogHeader/index.d.ts +14 -0
- package/dist/components/AnswerContainer/index.d.ts +20 -0
- package/dist/components/Chatbot/index.d.ts +22 -0
- package/dist/components/CindyChatBot.d.ts +29 -0
- package/dist/components/Graph/Bar/index.d.ts +8 -0
- package/dist/components/Graph/Donut/index.d.ts +8 -0
- package/dist/components/Graph/Echart/BarEchart/index.d.ts +8 -0
- package/dist/components/Graph/Echart/DonutEchart/index.d.ts +8 -0
- package/dist/components/Graph/Echart/LineEchart/index.d.ts +8 -0
- package/dist/components/Graph/Echart/PieEchart/index.d.ts +8 -0
- package/dist/components/Graph/Line/index.d.ts +8 -0
- package/dist/components/Graph/Pie/index.d.ts +8 -0
- package/dist/components/LoadingContainer/index.d.ts +3 -0
- package/dist/components/QuestionContainer/index.d.ts +7 -0
- package/dist/components/Sidebar/Sidebar.d.ts +12 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/config/http-common.d.ts +16 -0
- package/dist/esm/types/components/AgenticAI/components/agentic-ai-assistant.d.ts +2 -0
- package/dist/esm/types/components/AgenticAI/components/agentic-chatbot-ai.d.ts +1 -0
- package/dist/esm/types/components/CindyChatBot.d.ts +1 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/providers/AIBotProvider.d.ts +77 -0
- package/dist/providers/AuthContext.d.ts +55 -0
- package/dist/providers/PrimeReactProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.d.ts +11 -0
- package/dist/reportWebVitals.d.ts +3 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/utils/assetUtils.d.ts +7 -0
- package/dist/utils/toast.d.ts +3 -0
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Loader: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type MessageType = {
|
|
3
|
+
id: string;
|
|
4
|
+
content: string;
|
|
5
|
+
timestamp: Date;
|
|
6
|
+
type: 'user' | 'assistant';
|
|
7
|
+
};
|
|
8
|
+
export type SecurityCard = {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
query: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
category: 'vulnerabilities' | 'scans' | 'compliance' | 'comparison' | 'general';
|
|
15
|
+
};
|
|
16
|
+
export type AgentType = 'devops' | 'secops' | 'sreops';
|
|
17
|
+
export interface SecurityAssistantProps {
|
|
18
|
+
setMessage: (message: string) => void;
|
|
19
|
+
onSendMessage: () => void;
|
|
20
|
+
setSend: any;
|
|
21
|
+
type: string;
|
|
22
|
+
quickActions?: SecurityCard[];
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const SecurityAssistant: React.FC<SecurityAssistantProps>;
|
|
26
|
+
export default SecurityAssistant;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AgenticAiAssistantProps {
|
|
3
|
+
userName?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
sidebarClassName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
app_type: string;
|
|
9
|
+
base_url: string;
|
|
10
|
+
cindy_url: string;
|
|
11
|
+
HTTP: any;
|
|
12
|
+
closeChat?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const AgenticAiAssistant: React.FC<AgenticAiAssistantProps>;
|
|
15
|
+
export default AgenticAiAssistant;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AgenticAIProps {
|
|
3
|
+
app_type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
base_url: string;
|
|
7
|
+
access_token_key: string;
|
|
8
|
+
refresh_token_key: string;
|
|
9
|
+
token_refresh_route: string;
|
|
10
|
+
closeChat?: () => void;
|
|
11
|
+
isZoomed: boolean;
|
|
12
|
+
setIsZoomed: any;
|
|
13
|
+
HTTP: any;
|
|
14
|
+
cindy_url: string;
|
|
15
|
+
}
|
|
16
|
+
declare const AgenticAI: React.FC<AgenticAIProps>;
|
|
17
|
+
export default AgenticAI;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ChatbotProps {
|
|
3
|
+
graphItems?: any;
|
|
4
|
+
aiIconSrc?: string;
|
|
5
|
+
cindyLogoSrc?: string;
|
|
6
|
+
cindyLogoHeight?: number;
|
|
7
|
+
cindyLogoWidth?: number;
|
|
8
|
+
cindyLogoAlt?: string;
|
|
9
|
+
expandedStyle?: any;
|
|
10
|
+
dialogStyle?: any;
|
|
11
|
+
position?: string;
|
|
12
|
+
dialogContentClassName?: string;
|
|
13
|
+
headerStyle?: object;
|
|
14
|
+
headerTitle?: string;
|
|
15
|
+
headerSubtitle?: string;
|
|
16
|
+
headerTitleStyle?: object;
|
|
17
|
+
headerSubtitleStyle?: object;
|
|
18
|
+
helpText?: string;
|
|
19
|
+
sendButtonStyle?: object;
|
|
20
|
+
app_type: string;
|
|
21
|
+
title: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
base_url: string;
|
|
24
|
+
access_token_key: string;
|
|
25
|
+
refresh_token_key: string;
|
|
26
|
+
token_refresh_route: string;
|
|
27
|
+
cindy_url: string;
|
|
28
|
+
HTTP: any;
|
|
29
|
+
}
|
|
30
|
+
declare const AgenticChatBot: React.FC<ChatbotProps>;
|
|
31
|
+
export default AgenticChatBot;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface DeleteRecentConversationProps {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
onSubmit?: () => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
selectedConversation: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const DeleteRecentConversation: React.FC<DeleteRecentConversationProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface EditRecentConversationProps {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
onSubmit?: () => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
selectedConversation: any;
|
|
7
|
+
tempTitle: string;
|
|
8
|
+
setTempTitle: React.Dispatch<React.SetStateAction<string>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const EditRecentConversation: React.FC<EditRecentConversationProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ToastType = 'success' | 'error' | 'warn' | 'info';
|
|
3
|
+
interface ToastConfig {
|
|
4
|
+
severity: ToastType;
|
|
5
|
+
summary: string;
|
|
6
|
+
detail: string;
|
|
7
|
+
life?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const CustomToast: React.FC;
|
|
10
|
+
export declare const showToast: (config: ToastConfig) => void;
|
|
11
|
+
export default CustomToast;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Cookies from 'js-cookie';
|
|
2
|
+
interface TokenResponse {
|
|
3
|
+
access: string;
|
|
4
|
+
refresh: string;
|
|
5
|
+
}
|
|
6
|
+
declare let ACCESS_TOKEN: string;
|
|
7
|
+
declare let REFRESH_TOKEN: string;
|
|
8
|
+
export declare const COOKIE: Cookies.CookiesStatic<string>;
|
|
9
|
+
export declare const createHTTPInstance: (baseURL: string, accessTokenKey: string, refreshTokenKey: string, tokenRefreshRoute: string) => any;
|
|
10
|
+
export declare const handleHttpError: (error: any) => Promise<never>;
|
|
11
|
+
export { ACCESS_TOKEN, REFRESH_TOKEN, type TokenResponse, };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { JSX } from "react";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface GraphData {
|
|
4
|
+
title: string;
|
|
5
|
+
labels: string[];
|
|
6
|
+
values: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface PromptAndRespponse {
|
|
9
|
+
id: string;
|
|
10
|
+
question: string;
|
|
11
|
+
answer: string | null;
|
|
12
|
+
time: Date | null;
|
|
13
|
+
answerTime: Date | null;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
conversationId: string | null;
|
|
16
|
+
isCancelled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface AIBotContextType {
|
|
19
|
+
opneChatModal: boolean;
|
|
20
|
+
setOpenChatModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
21
|
+
isResize: boolean;
|
|
22
|
+
setIsResize: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23
|
+
question: string;
|
|
24
|
+
setQuestion: React.Dispatch<React.SetStateAction<string>>;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
isAgent: boolean;
|
|
27
|
+
converse: string;
|
|
28
|
+
setConverse: any;
|
|
29
|
+
setIsAgent: any;
|
|
30
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
31
|
+
prompts: PromptAndRespponse[];
|
|
32
|
+
setPrompts: React.Dispatch<React.SetStateAction<PromptAndRespponse[]>>;
|
|
33
|
+
getTextAnswer: (task_id: string) => Promise<void>;
|
|
34
|
+
getTaskID: (question_id: string, payload: any, setMessage: any, setRecentActions: any, setRecentTitle: any, setRecentUuid: any, recentTitle: any) => Promise<void>;
|
|
35
|
+
getTaskAgent: (question_id: string, payload: any, setMessage: any, setRecentActions: any, setRecentTitle: any, setRecentUuid: any, recentTitle: any) => Promise<void>;
|
|
36
|
+
getSpinalAnswer: (question: string, question_id: string, filterData: any, pageName: string, slugName: string) => Promise<void>;
|
|
37
|
+
getGraphTaskID: (question: string, question_id: string, chart_type: string, filterData: any) => Promise<void>;
|
|
38
|
+
messageContainerRef: React.MutableRefObject<any>;
|
|
39
|
+
selectedDropDownGraph: any;
|
|
40
|
+
setselectedDropDownGraph: React.Dispatch<any>;
|
|
41
|
+
getQuestionList: (body: any) => Promise<void>;
|
|
42
|
+
currentQuestionList: any[];
|
|
43
|
+
setCurrentQuestionList: React.Dispatch<React.SetStateAction<any[]>>;
|
|
44
|
+
HTTP: any;
|
|
45
|
+
}
|
|
46
|
+
interface AIBotProviderProps {
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
HTTP: any;
|
|
49
|
+
}
|
|
50
|
+
export declare function AIBotProvider({ children, HTTP }: AIBotProviderProps): JSX.Element;
|
|
51
|
+
export declare const useAIBotContext: () => AIBotContextType;
|
|
52
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AiDialogHeaderProps {
|
|
3
|
+
cindyLogoSrc?: string;
|
|
4
|
+
cindyLogoHeight?: number;
|
|
5
|
+
cindyLogoWidth?: number;
|
|
6
|
+
cindyLogoAlt?: string;
|
|
7
|
+
headerStyle?: object;
|
|
8
|
+
headerTitle?: string;
|
|
9
|
+
headerSubtitle?: string;
|
|
10
|
+
headerTitleStyle?: object;
|
|
11
|
+
headerSubtitleStyle?: object;
|
|
12
|
+
}
|
|
13
|
+
declare const AiDialogHeader: React.FC<AiDialogHeaderProps>;
|
|
14
|
+
export default AiDialogHeader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GraphData } from '../../providers/AIBotProvider';
|
|
3
|
+
interface AnswerContainerProps {
|
|
4
|
+
answer: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
suggested_questions: string[];
|
|
7
|
+
isGraphType: boolean;
|
|
8
|
+
graphType: string | null;
|
|
9
|
+
graphData: GraphData | null;
|
|
10
|
+
date: Date | null;
|
|
11
|
+
pageName?: string;
|
|
12
|
+
slugName?: string;
|
|
13
|
+
spinalQuestions?: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare const SuggestionQuestion: ({ question, onClickSuggestion }: {
|
|
16
|
+
question?: string | undefined;
|
|
17
|
+
onClickSuggestion?: ((_question: string) => void) | undefined;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const AnswerContainer: React.FC<AnswerContainerProps>;
|
|
20
|
+
export default AnswerContainer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ChatbotProps {
|
|
3
|
+
graphItems?: any;
|
|
4
|
+
aiIconSrc?: string;
|
|
5
|
+
cindyLogoSrc?: string;
|
|
6
|
+
cindyLogoHeight?: number;
|
|
7
|
+
cindyLogoWidth?: number;
|
|
8
|
+
cindyLogoAlt?: string;
|
|
9
|
+
expandedStyle?: any;
|
|
10
|
+
dialogStyle?: any;
|
|
11
|
+
position?: string;
|
|
12
|
+
dialogContentClassName?: string;
|
|
13
|
+
headerStyle?: object;
|
|
14
|
+
headerTitle?: string;
|
|
15
|
+
headerSubtitle?: string;
|
|
16
|
+
headerTitleStyle?: object;
|
|
17
|
+
headerSubtitleStyle?: object;
|
|
18
|
+
helpText?: string;
|
|
19
|
+
sendButtonStyle?: object;
|
|
20
|
+
}
|
|
21
|
+
declare const Chatbot: React.FC<ChatbotProps>;
|
|
22
|
+
export default Chatbot;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AgenticCindyChatBotProps {
|
|
3
|
+
app_type: string;
|
|
4
|
+
title: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
base_url: string;
|
|
7
|
+
access_token_key: string;
|
|
8
|
+
refresh_token_key: string;
|
|
9
|
+
token_refresh_route: string;
|
|
10
|
+
cindy_url: string;
|
|
11
|
+
aiIconSrc?: string;
|
|
12
|
+
cindyLogoSrc?: string;
|
|
13
|
+
cindyLogoHeight?: number;
|
|
14
|
+
cindyLogoWidth?: number;
|
|
15
|
+
cindyLogoAlt?: string;
|
|
16
|
+
expandedStyle?: any;
|
|
17
|
+
dialogStyle?: any;
|
|
18
|
+
position?: string;
|
|
19
|
+
dialogContentClassName?: string;
|
|
20
|
+
headerStyle?: object;
|
|
21
|
+
headerTitle?: string;
|
|
22
|
+
headerSubtitle?: string;
|
|
23
|
+
headerTitleStyle?: object;
|
|
24
|
+
headerSubtitleStyle?: object;
|
|
25
|
+
helpText?: string;
|
|
26
|
+
sendButtonStyle?: object;
|
|
27
|
+
}
|
|
28
|
+
declare const CindyChatBot: React.FC<AgenticCindyChatBotProps>;
|
|
29
|
+
export default CindyChatBot;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SidebarProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
defaultExpanded?: boolean;
|
|
5
|
+
expandedWidth?: string;
|
|
6
|
+
collapsedWidth?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
setIsExpanded: (isExpanded: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
12
|
+
export default Sidebar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "secondary" | "default" | "outline" | "destructive" | "ghost" | null | undefined;
|
|
5
|
+
size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Cookies from "js-cookie";
|
|
2
|
+
declare const SLUG = "slug";
|
|
3
|
+
declare const SESSION = "session";
|
|
4
|
+
declare let HTTP: any;
|
|
5
|
+
declare const setConfigValues: (config: {
|
|
6
|
+
refreshTokenName: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
logoutRoute: string;
|
|
9
|
+
checkTokenRoute: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
declare const parseJWT: (token: string) => any;
|
|
12
|
+
declare const setCookies: (access: string, refresh: string) => void;
|
|
13
|
+
declare const deleteCookies: () => Promise<void>;
|
|
14
|
+
declare const hasTokenExpired: (token: string | number) => boolean;
|
|
15
|
+
declare const refreshAccessToken: () => Promise<any>;
|
|
16
|
+
export { HTTP, SLUG, SESSION, Cookies, setCookies, deleteCookies, parseJWT, refreshAccessToken, hasTokenExpired, setConfigValues, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMediaQuery(query: string): boolean;
|