tfy-web-components 0.0.21 → 0.0.22
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/components/atoms/Accordion.d.ts +10 -18
- package/dist/components/atoms/Switch.d.ts +1 -5
- package/dist/components/atoms/Tooltip.d.ts +3 -5
- package/dist/components/molecules/Markdown/ChatFileDownload.d.ts +17 -0
- package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +13 -0
- package/dist/components/molecules/Markdown/LimitedLinesMarkdown.d.ts +10 -0
- package/dist/components/molecules/Markdown/Markdown.d.ts +23 -0
- package/dist/components/molecules/Markdown/Markdown.utils.d.ts +8 -0
- package/dist/components/molecules/Markdown/MarkdownLazy.d.ts +16 -0
- package/dist/components/molecules/Markdown/MarkdownWithOpenUI.d.ts +31 -0
- package/dist/components/molecules/Markdown/OpenUiFenceBlock.d.ts +9 -0
- package/dist/components/molecules/Markdown/SandboxArtifactsFenceBlock.d.ts +9 -0
- package/dist/components/molecules/Markdown/codeFencing.d.ts +50 -0
- package/dist/components/molecules/Markdown/components.d.ts +59 -0
- package/dist/components/molecules/Markdown/index.d.ts +7 -0
- package/dist/components/molecules/Markdown/parseSandboxArtifacts.d.ts +15 -0
- package/dist/components/molecules/agent-chat/AskUserQuestionCard.d.ts +36 -0
- package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +9 -0
- package/dist/components/molecules/agent-chat/McpAuthCard.d.ts +16 -0
- package/dist/components/molecules/agent-chat/ReasoningCard.d.ts +16 -0
- package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +15 -0
- package/dist/components/molecules/agent-chat/StatusDot.d.ts +7 -0
- package/dist/components/molecules/agent-chat/SubAgentCard.d.ts +18 -0
- package/dist/components/molecules/agent-chat/ToolApprovalBlock.d.ts +36 -0
- package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +22 -0
- package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +17 -0
- package/dist/components/molecules/agent-chat/index.d.ts +22 -0
- package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +15 -0
- package/dist/components/molecules/monacoEditorCore/useFontReady.d.ts +1 -0
- package/dist/contexts/RootFontSizeContext.d.ts +7 -0
- package/dist/hooks/useContainerDimensions.d.ts +3 -0
- package/dist/index.d.ts +6 -0
- package/dist/tailwindPreset.d.ts +144 -140
- package/dist/types/enum.d.ts +7 -0
- package/dist/utils/classNames.d.ts +2 -0
- package/dist/utils/conversions.d.ts +1 -0
- package/dist/utils/getRootFontSize.d.ts +2 -0
- package/dist/utils/index.d.ts +5 -0
- package/package.json +1 -1
- package/dist/..d.ts +0 -77
- package/dist/Accordion.d.ts +0 -57
- package/dist/Alert.d.ts +0 -73
- package/dist/AudioPlayer.d.ts +0 -10
- package/dist/Avatar.d.ts +0 -19
- package/dist/Badge.d.ts +0 -47
- package/dist/Button.d.ts +0 -64
- package/dist/CopyField.d.ts +0 -82
- package/dist/CustomDrawer.d.ts +0 -37
- package/dist/Dialog.d.ts +0 -18
- package/dist/DropdownMenu.d.ts +0 -25
- package/dist/IconButton.d.ts +0 -17
- package/dist/IconProvider.d.ts +0 -41
- package/dist/ImagesPreview.d.ts +0 -12
- package/dist/Input.d.ts +0 -27
- package/dist/Markdown.d.ts +0 -103
- package/dist/Modal.d.ts +0 -12
- package/dist/Notification.d.ts +0 -12
- package/dist/Notify.d.ts +0 -4
- package/dist/OutlinedRadio.d.ts +0 -9
- package/dist/SimpleCodeEditor.d.ts +0 -63
- package/dist/Skeleton.d.ts +0 -7
- package/dist/Spinner.d.ts +0 -15
- package/dist/Switch.d.ts +0 -20
- package/dist/TabButton.d.ts +0 -20
- package/dist/TabPanel.d.ts +0 -14
- package/dist/ThumbsFeedback.d.ts +0 -18
- package/dist/ToggleButton.d.ts +0 -42
- package/dist/Tooltip.d.ts +0 -32
- package/dist/UserMessage.d.ts +0 -15
- package/dist/UserMessageEdit.d.ts +0 -16
- package/dist/agent-chat.d.ts +0 -222
- package/dist/animation.d.ts +0 -6
- package/dist/backgroundColor.d.ts +0 -5
- package/dist/backgroundImage.d.ts +0 -10
- package/dist/borderWidth.d.ts +0 -6
- package/dist/colors.d.ts +0 -195
- package/dist/components/molecules/Markdown.d.ts +0 -1
- package/dist/components/molecules/agent-chat.d.ts +0 -1
- package/dist/cursor.d.ts +0 -5
- package/dist/dropShadow.d.ts +0 -5
- package/dist/flexGrow.d.ts +0 -5
- package/dist/fontSize.d.ts +0 -8
- package/dist/height.d.ts +0 -8
- package/dist/keyframes.d.ts +0 -20
- package/dist/lightColorPlugin.d.ts +0 -3
- package/dist/maxHeight.d.ts +0 -6
- package/dist/screens.d.ts +0 -8
- package/dist/theme.d.ts +0 -58
- package/dist/transitionProperty.d.ts +0 -6
- package/dist/useTheme.d.ts +0 -32
- package/dist/utils.d.ts +0 -79
- package/dist/zIndex.d.ts +0 -5
package/dist/theme.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Apply theme mode to DOM without persisting to localStorage
|
|
3
|
-
* @param theme - 'light' or 'dark'
|
|
4
|
-
*/
|
|
5
|
-
export declare const applyThemeMode: (theme: ThemeMode) => void;
|
|
6
|
-
|
|
7
|
-
export declare const colors: any;
|
|
8
|
-
|
|
9
|
-
export declare const ensureThemeTokens: () => void;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Get system theme preference
|
|
13
|
-
* @returns 'light' or 'dark' based on system preference
|
|
14
|
-
*/
|
|
15
|
-
export declare const getSystemTheme: () => ThemeMode;
|
|
16
|
-
|
|
17
|
-
export declare const getTailwindColors: () => any;
|
|
18
|
-
|
|
19
|
-
export declare const getThemeMode: (tenantPrefered?: ThemeModePreference) => ThemeMode;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Initialize theme based on user preference
|
|
23
|
-
* Call this once when your app starts
|
|
24
|
-
* @param userPreference - User's theme preference from backend (defaults to 'system')
|
|
25
|
-
*/
|
|
26
|
-
export declare const initializeTheme: (userPreference?: ThemeModePreference) => ThemeMode;
|
|
27
|
-
|
|
28
|
-
export declare const injectThemes: (lightTheme: any, darkTheme: any) => void;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if current theme is dark mode
|
|
32
|
-
*/
|
|
33
|
-
export declare const isDarkMode: () => boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Resolve theme preference to actual theme mode
|
|
37
|
-
* @param preference - 'light', 'dark', or 'system'
|
|
38
|
-
* @returns 'light' or 'dark'
|
|
39
|
-
*/
|
|
40
|
-
export declare const resolveThemeMode: (preference: ThemeModePreference) => ThemeMode;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Set theme mode (with localStorage persistence)
|
|
44
|
-
* @param theme - 'light' or 'dark'
|
|
45
|
-
* @deprecated Use applyThemeMode for backend-managed themes
|
|
46
|
-
*/
|
|
47
|
-
export declare const setThemeMode: (theme: ThemeMode) => void;
|
|
48
|
-
|
|
49
|
-
export declare type ThemeMode = 'light' | 'dark';
|
|
50
|
-
|
|
51
|
-
export declare type ThemeModePreference = ThemeMode | 'system';
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Toggle between light and dark themes
|
|
55
|
-
*/
|
|
56
|
-
export declare const toggleThemeMode: () => ThemeMode;
|
|
57
|
-
|
|
58
|
-
export { }
|
package/dist/useTheme.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
declare type ThemeMode = 'light' | 'dark';
|
|
4
|
-
|
|
5
|
-
declare type ThemeModePreference = ThemeMode | 'system';
|
|
6
|
-
|
|
7
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
8
|
-
|
|
9
|
-
declare interface ThemeProviderProps {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Controlled theme. When provided, the consumer owns the source of truth:
|
|
13
|
-
* this provider reflects the value without persisting a preference or
|
|
14
|
-
* listening to system-theme changes. When omitted, it uses the stored
|
|
15
|
-
* preference and system preference as its fallback owner behavior.
|
|
16
|
-
*/
|
|
17
|
-
theme?: ThemeMode;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare const useTheme: () => UseThemeReturn;
|
|
21
|
-
export default useTheme;
|
|
22
|
-
export { useTheme }
|
|
23
|
-
|
|
24
|
-
export declare interface UseThemeReturn {
|
|
25
|
-
mode: ThemeMode;
|
|
26
|
-
preference: ThemeModePreference;
|
|
27
|
-
isDark: boolean;
|
|
28
|
-
setTheme: (preference: ThemeModePreference) => void;
|
|
29
|
-
toggleTheme: (theme: ThemeModePreference) => void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { }
|
package/dist/utils.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export declare function extendCustomTheme(customTheme: Record<string, any>): {
|
|
2
|
-
fontSize: {
|
|
3
|
-
'base-lg': string;
|
|
4
|
-
'sm-base': string;
|
|
5
|
-
'2xs': string;
|
|
6
|
-
'3xs': string;
|
|
7
|
-
};
|
|
8
|
-
screens: {
|
|
9
|
-
'2xl': string;
|
|
10
|
-
'3xl': string;
|
|
11
|
-
'4xl': string;
|
|
12
|
-
'5xl': string;
|
|
13
|
-
};
|
|
14
|
-
borderWidth: {
|
|
15
|
-
DEFAULT: string;
|
|
16
|
-
1: string;
|
|
17
|
-
};
|
|
18
|
-
dropShadow: (theme: (path: string) => string | undefined) => {
|
|
19
|
-
xl: string[];
|
|
20
|
-
};
|
|
21
|
-
backgroundImage: (theme: (path: string) => string | undefined) => {
|
|
22
|
-
'blue-red-gradient': string;
|
|
23
|
-
'white-indigo-gradient': string;
|
|
24
|
-
'chat-template': string;
|
|
25
|
-
'blue-linear-gradient': string;
|
|
26
|
-
'new-deployment-gradient': string;
|
|
27
|
-
'new-deployment-gradient-text': string;
|
|
28
|
-
};
|
|
29
|
-
backgroundColor: (theme: (path: string) => string | undefined) => {
|
|
30
|
-
app: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
zIndex: {
|
|
33
|
-
'-1': string;
|
|
34
|
-
};
|
|
35
|
-
flexGrow: {
|
|
36
|
-
5: string;
|
|
37
|
-
};
|
|
38
|
-
height: {
|
|
39
|
-
'screen-50': string;
|
|
40
|
-
'screen-60': string;
|
|
41
|
-
'screen-70': string;
|
|
42
|
-
'screen-75': string;
|
|
43
|
-
};
|
|
44
|
-
maxHeight: {
|
|
45
|
-
'screen-menu': string;
|
|
46
|
-
modal: string;
|
|
47
|
-
};
|
|
48
|
-
transitionProperty: {
|
|
49
|
-
position: string;
|
|
50
|
-
textColor: string;
|
|
51
|
-
};
|
|
52
|
-
keyframes: {
|
|
53
|
-
fadeOut: {
|
|
54
|
-
from: {
|
|
55
|
-
opacity: string;
|
|
56
|
-
};
|
|
57
|
-
to: {
|
|
58
|
-
opacity: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
fadeIn: {
|
|
62
|
-
from: {
|
|
63
|
-
opacity: string;
|
|
64
|
-
};
|
|
65
|
-
to: {
|
|
66
|
-
opacity: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
animation: {
|
|
71
|
-
fadeOut: string;
|
|
72
|
-
fadeIn: string;
|
|
73
|
-
};
|
|
74
|
-
cursor: {
|
|
75
|
-
drag: string;
|
|
76
|
-
};
|
|
77
|
-
} & Record<string, any>;
|
|
78
|
-
|
|
79
|
-
export { }
|