@trinityui/design-system 1.0.3 → 1.0.4
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/CHANGELOG.md +18 -0
- package/dist/Legend.js +1455 -0
- package/dist/accessibility.d.ts +119 -0
- package/dist/accessibility.d.ts.map +1 -0
- package/dist/assets/index.d.ts +234 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +104 -0
- package/dist/components/AI/AIActions.d.ts.map +1 -0
- package/dist/components/AI/AIAvatar.d.ts +32 -0
- package/dist/components/AI/AIAvatar.d.ts.map +1 -0
- package/dist/components/AI/AIChat.d.ts +142 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +97 -0
- package/dist/components/AI/AIContainer.d.ts.map +1 -0
- package/dist/components/AI/AIExplainability.d.ts +46 -0
- package/dist/components/AI/AIExplainability.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +43 -0
- package/dist/components/AI/AILabel.d.ts.map +1 -0
- package/dist/components/AI/AIMessage.d.ts +93 -0
- package/dist/components/AI/AIMessage.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +53 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -0
- package/dist/components/AI/AIResponseRenderer.d.ts +50 -0
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +66 -0
- package/dist/components/AI/AISources.d.ts.map +1 -0
- package/dist/components/AI/AISourcesPanel.d.ts +84 -0
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -0
- package/dist/components/AI/AITextBlock.d.ts +56 -0
- package/dist/components/AI/AITextBlock.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +104 -0
- package/dist/components/AI/AIVisuals.d.ts.map +1 -0
- package/dist/components/AI/AIVoiceInput.d.ts +66 -0
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +52 -0
- package/dist/components/AI/ChatHeader.d.ts.map +1 -0
- package/dist/components/AI/ChatHistoryList.d.ts +80 -0
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -0
- package/dist/components/AI/ChatThread.d.ts +74 -0
- package/dist/components/AI/ChatThread.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +147 -0
- package/dist/components/AI/InsightEngine.d.ts.map +1 -0
- package/dist/components/AI/InsightEngineInput.d.ts +94 -0
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts +114 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -0
- package/dist/components/AI/UserAvatar.d.ts +24 -0
- package/dist/components/AI/UserAvatar.d.ts.map +1 -0
- package/dist/components/AI/UserMessage.d.ts +26 -0
- package/dist/components/AI/UserMessage.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +39 -0
- package/dist/components/AI/index.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +132 -0
- package/dist/components/AI/tokens.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +6 -0
- package/dist/components/AI/types/index.d.ts.map +1 -0
- package/dist/components/AI/types/response.d.ts +312 -0
- package/dist/components/AI/types/response.d.ts.map +1 -0
- package/dist/components/AppLayout/AIFab.d.ts +50 -0
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -0
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +32 -0
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -0
- package/dist/components/AppLayout/AppLayout.d.ts +154 -0
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -0
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +141 -0
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -0
- package/dist/components/AppLayout/ResizablePanel.d.ts +52 -0
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +53 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -0
- package/dist/components/AppLayout/index.d.ts +27 -0
- package/dist/components/AppLayout/index.d.ts.map +1 -0
- package/dist/components/Charts/AreaChart.d.ts +38 -0
- package/dist/components/Charts/AreaChart.d.ts.map +1 -0
- package/dist/components/Charts/BarChart.d.ts +47 -0
- package/dist/components/Charts/BarChart.d.ts.map +1 -0
- package/dist/components/Charts/ChartWrapper.d.ts +48 -0
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -0
- package/dist/components/Charts/ComposedChart.d.ts +34 -0
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -0
- package/dist/components/Charts/CustomLegend.d.ts +69 -0
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -0
- package/dist/components/Charts/CustomTooltip.d.ts +55 -0
- package/dist/components/Charts/CustomTooltip.d.ts.map +1 -0
- package/dist/components/Charts/LineChart.d.ts +36 -0
- package/dist/components/Charts/LineChart.d.ts.map +1 -0
- package/dist/components/Charts/PieChart.d.ts +52 -0
- package/dist/components/Charts/PieChart.d.ts.map +1 -0
- package/dist/components/Charts/RadialChart.d.ts +51 -0
- package/dist/components/Charts/RadialChart.d.ts.map +1 -0
- package/dist/components/Charts/ScatterChart.d.ts +55 -0
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -0
- package/dist/components/Charts/Sparkline.d.ts +44 -0
- package/dist/components/Charts/Sparkline.d.ts.map +1 -0
- package/dist/components/Charts/index.d.ts +48 -0
- package/dist/components/Charts/index.d.ts.map +1 -0
- package/dist/components/Charts/tokens.d.ts +200 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -0
- package/dist/components/Charts/types.d.ts +595 -0
- package/dist/components/Charts/types.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +99 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +3 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +76 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +60 -0
- package/dist/components/DataCard/DataCard.d.ts.map +1 -0
- package/dist/components/DataCard/index.d.ts +2 -0
- package/dist/components/DataCard/index.d.ts.map +1 -0
- package/dist/components/DataTable/CellRenderers.d.ts +78 -0
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +36 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/InlineAddRow.d.ts +27 -0
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +6 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/DataTable/tokens.d.ts +132 -0
- package/dist/components/DataTable/tokens.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +334 -0
- package/dist/components/DataTable/types.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +63 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -0
- package/dist/components/DiffViewer/index.d.ts +3 -0
- package/dist/components/DiffViewer/index.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +78 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -0
- package/dist/components/DockLayout/index.d.ts +3 -0
- package/dist/components/DockLayout/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +93 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/FilterBar/FilterBar.d.ts +76 -0
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -0
- package/dist/components/FilterBar/index.d.ts +2 -0
- package/dist/components/FilterBar/index.d.ts.map +1 -0
- package/dist/components/Footer.d.ts +30 -0
- package/dist/components/Footer.d.ts.map +1 -0
- package/dist/components/Icon.d.ts +67 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/IllustratedMessage.d.ts +99 -0
- package/dist/components/IllustratedMessage.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +89 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -0
- package/dist/components/LandingPage/LandingPage.d.ts +126 -0
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -0
- package/dist/components/LandingPage/index.d.ts +11 -0
- package/dist/components/LandingPage/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +181 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +91 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +52 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/dist/components/RichTextEditor/index.d.ts +3 -0
- package/dist/components/RichTextEditor/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +66 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/SimpleTable/SimpleTable.d.ts +93 -0
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -0
- package/dist/components/SimpleTable/index.d.ts +3 -0
- package/dist/components/SimpleTable/index.d.ts.map +1 -0
- package/dist/components/SplitPane/SplitPane.d.ts +52 -0
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -0
- package/dist/components/SplitPane/index.d.ts +3 -0
- package/dist/components/SplitPane/index.d.ts.map +1 -0
- package/dist/components/StatusIndicator/Badge.d.ts +71 -0
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -0
- package/dist/components/StatusIndicator/Chip.d.ts +64 -0
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -0
- package/dist/components/StatusIndicator/Indicators.d.ts +81 -0
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -0
- package/dist/components/StatusIndicator/Legend.d.ts +42 -0
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -0
- package/dist/components/StatusIndicator/Shapes.d.ts +32 -0
- package/dist/components/StatusIndicator/Shapes.d.ts.map +1 -0
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +183 -0
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -0
- package/dist/components/StatusIndicator/index.d.ts +55 -0
- package/dist/components/StatusIndicator/index.d.ts.map +1 -0
- package/dist/components/StatusIndicator/types.d.ts +37 -0
- package/dist/components/StatusIndicator/types.d.ts.map +1 -0
- package/dist/components/Timeline/Timeline.d.ts +89 -0
- package/dist/components/Timeline/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/Timeline/index.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +124 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/TopNavHeader.d.ts +55 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -0
- package/dist/components/TopNavWithSidebar.d.ts +64 -0
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -0
- package/dist/components/TransferList/TransferList.d.ts +62 -0
- package/dist/components/TransferList/TransferList.d.ts.map +1 -0
- package/dist/components/TransferList/index.d.ts +3 -0
- package/dist/components/TransferList/index.d.ts.map +1 -0
- package/dist/components/TreeView/TreeView.d.ts +89 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -0
- package/dist/components/TreeView/index.d.ts +3 -0
- package/dist/components/TreeView/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +119 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +27 -0
- package/dist/components/internal/index.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +85 -0
- package/dist/components/navigation/components.d.ts.map +1 -0
- package/dist/components/navigation/hooks.d.ts +65 -0
- package/dist/components/navigation/hooks.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +28 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/styled.d.ts +13 -0
- package/dist/components/navigation/styled.d.ts.map +1 -0
- package/dist/components/navigation/types.d.ts +58 -0
- package/dist/components/navigation/types.d.ts.map +1 -0
- package/dist/components/shared/TrinityLogoSvg.d.ts +29 -0
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -0
- package/dist/components/shared.d.ts +92 -0
- package/dist/components/shared.d.ts.map +1 -0
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +66 -0
- package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -0
- package/dist/components/templates/Dashboard/index.d.ts +2 -0
- package/dist/components/templates/Dashboard/index.d.ts.map +1 -0
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +88 -0
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -0
- package/dist/components/templates/ListDetail/index.d.ts +2 -0
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -0
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +78 -0
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -0
- package/dist/components/templates/Settings/index.d.ts +2 -0
- package/dist/components/templates/Settings/index.d.ts.map +1 -0
- package/dist/components/templates/index.d.ts +5 -0
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/essentials.d.ts +49 -0
- package/dist/essentials.d.ts.map +1 -0
- package/dist/essentials.js +256 -0
- package/dist/form.d.ts +212 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/hierarchy.d.ts +371 -0
- package/dist/hierarchy.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +54 -0
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -0
- package/dist/hooks.d.ts +217 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/index.d.ts +111 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2293 -3731
- package/dist/presets/analytics.d.ts +197 -0
- package/dist/presets/analytics.d.ts.map +1 -0
- package/dist/presets/crm.d.ts +67 -0
- package/dist/presets/crm.d.ts.map +1 -0
- package/dist/presets/index.d.ts +21 -0
- package/dist/presets/index.d.ts.map +1 -0
- package/dist/presets/portal.d.ts +67 -0
- package/dist/presets/portal.d.ts.map +1 -0
- package/dist/theme.d.ts +221 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/tokens.d.ts +4760 -0
- package/dist/tokens.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debounces a value, returning the debounced value after the specified delay.
|
|
3
|
+
*
|
|
4
|
+
* @param value - The value to debounce
|
|
5
|
+
* @param delay - Delay in milliseconds
|
|
6
|
+
* @returns The debounced value
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const [searchTerm, setSearchTerm] = useState('');
|
|
11
|
+
* const debouncedSearch = useDebounce(searchTerm, 300);
|
|
12
|
+
*
|
|
13
|
+
* useEffect(() => {
|
|
14
|
+
* // This will only run 300ms after user stops typing
|
|
15
|
+
* fetchResults(debouncedSearch);
|
|
16
|
+
* }, [debouncedSearch]);
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDebounce<T>(value: T, delay: number): T;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a debounced version of the callback function.
|
|
22
|
+
*
|
|
23
|
+
* @param callback - The function to debounce
|
|
24
|
+
* @param delay - Delay in milliseconds
|
|
25
|
+
* @returns Debounced function
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const debouncedSave = useDebouncedCallback((value) => {
|
|
30
|
+
* saveToServer(value);
|
|
31
|
+
* }, 500);
|
|
32
|
+
*
|
|
33
|
+
* <input onChange={(e) => debouncedSave(e.target.value)} />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function useDebouncedCallback<T extends (...args: unknown[]) => unknown>(callback: T, delay: number): (...args: Parameters<T>) => void;
|
|
37
|
+
interface UseClipboardOptions {
|
|
38
|
+
/** Duration to show success state in ms */
|
|
39
|
+
successDuration?: number;
|
|
40
|
+
/** Callback on successful copy */
|
|
41
|
+
onSuccess?: (text: string) => void;
|
|
42
|
+
/** Callback on error */
|
|
43
|
+
onError?: (error: Error) => void;
|
|
44
|
+
}
|
|
45
|
+
interface UseClipboardReturn {
|
|
46
|
+
/** Copy text to clipboard */
|
|
47
|
+
copy: (text: string) => Promise<boolean>;
|
|
48
|
+
/** Whether last copy was successful */
|
|
49
|
+
copied: boolean;
|
|
50
|
+
/** Error if copy failed */
|
|
51
|
+
error: Error | null;
|
|
52
|
+
/** Reset the copied state */
|
|
53
|
+
reset: () => void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Hook for copying text to clipboard with feedback.
|
|
57
|
+
*
|
|
58
|
+
* @param options - Configuration options
|
|
59
|
+
* @returns Clipboard utilities
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* const { copy, copied, error } = useClipboard({ successDuration: 2000 });
|
|
64
|
+
*
|
|
65
|
+
* <Button onClick={() => copy('Hello World!')}>
|
|
66
|
+
* {copied ? 'Copied!' : 'Copy'}
|
|
67
|
+
* </Button>
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare function useClipboard(options?: UseClipboardOptions): UseClipboardReturn;
|
|
71
|
+
type SetValue<T> = T | ((prevValue: T) => T);
|
|
72
|
+
/**
|
|
73
|
+
* Hook for persisting state in localStorage.
|
|
74
|
+
*
|
|
75
|
+
* @param key - localStorage key
|
|
76
|
+
* @param initialValue - Initial value if key doesn't exist
|
|
77
|
+
* @returns [value, setValue, removeValue]
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* const [theme, setTheme, removeTheme] = useLocalStorage('theme', 'light');
|
|
82
|
+
*
|
|
83
|
+
* // Use like useState
|
|
84
|
+
* setTheme('dark');
|
|
85
|
+
* setTheme((prev) => prev === 'light' ? 'dark' : 'light');
|
|
86
|
+
*
|
|
87
|
+
* // Remove from storage
|
|
88
|
+
* removeTheme();
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
export declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: SetValue<T>) => void, () => void];
|
|
92
|
+
interface BreakpointFlags {
|
|
93
|
+
/** Screen is extra small (< 600px) */
|
|
94
|
+
isXs: boolean;
|
|
95
|
+
/** Screen is small (>= 600px) */
|
|
96
|
+
isSm: boolean;
|
|
97
|
+
/** Screen is medium (>= 900px) */
|
|
98
|
+
isMd: boolean;
|
|
99
|
+
/** Screen is large (>= 1200px) */
|
|
100
|
+
isLg: boolean;
|
|
101
|
+
/** Screen is extra large (>= 1536px) */
|
|
102
|
+
isXl: boolean;
|
|
103
|
+
/** Screen is mobile sized (< 600px) */
|
|
104
|
+
isMobile: boolean;
|
|
105
|
+
/** Screen is tablet sized (600px - 899px) */
|
|
106
|
+
isTablet: boolean;
|
|
107
|
+
/** Screen is desktop sized (>= 900px) */
|
|
108
|
+
isDesktop: boolean;
|
|
109
|
+
/** Current breakpoint name */
|
|
110
|
+
current: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Hook for responsive design using Trinity breakpoints.
|
|
114
|
+
*
|
|
115
|
+
* @returns Breakpoint flags and utilities
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* const { isMobile, isDesktop, current } = useTrinityBreakpoints();
|
|
120
|
+
*
|
|
121
|
+
* return (
|
|
122
|
+
* <Box sx={{ p: isMobile ? 2 : 4 }}>
|
|
123
|
+
* {isDesktop && <Sidebar />}
|
|
124
|
+
* <Content />
|
|
125
|
+
* </Box>
|
|
126
|
+
* );
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
export declare function useTrinityBreakpoints(): BreakpointFlags;
|
|
130
|
+
/**
|
|
131
|
+
* Hook for boolean toggle state.
|
|
132
|
+
*
|
|
133
|
+
* @param initialValue - Initial boolean value
|
|
134
|
+
* @returns [value, toggle, setValue]
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```tsx
|
|
138
|
+
* const [isOpen, toggle, setIsOpen] = useToggle(false);
|
|
139
|
+
*
|
|
140
|
+
* <Button onClick={toggle}>Toggle</Button>
|
|
141
|
+
* <Button onClick={() => setIsOpen(true)}>Open</Button>
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
export declare function useToggle(initialValue?: boolean): [boolean, () => void, (value: boolean) => void];
|
|
145
|
+
/**
|
|
146
|
+
* Hook to get the previous value of a state.
|
|
147
|
+
*
|
|
148
|
+
* @param value - Current value
|
|
149
|
+
* @returns Previous value (undefined on first render)
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```tsx
|
|
153
|
+
* const [count, setCount] = useState(0);
|
|
154
|
+
* const prevCount = usePrevious(count);
|
|
155
|
+
*
|
|
156
|
+
* console.log(`Changed from ${prevCount} to ${count}`);
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
export declare function usePrevious<T>(value: T): T | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Hook to detect clicks outside of a referenced element.
|
|
162
|
+
*
|
|
163
|
+
* @param ref - React ref to the element
|
|
164
|
+
* @param handler - Callback when click outside is detected
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```tsx
|
|
168
|
+
* const ref = useRef<HTMLDivElement>(null);
|
|
169
|
+
*
|
|
170
|
+
* useOnClickOutside(ref, () => {
|
|
171
|
+
* setIsOpen(false);
|
|
172
|
+
* });
|
|
173
|
+
*
|
|
174
|
+
* <div ref={ref}>Dropdown content</div>
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
export declare function useOnClickOutside<T extends HTMLElement>(ref: React.RefObject<T>, handler: (event: MouseEvent | TouchEvent) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* Hook to detect when a specific key is pressed.
|
|
180
|
+
*
|
|
181
|
+
* @param targetKey - Key to listen for (e.g., 'Escape', 'Enter')
|
|
182
|
+
* @param handler - Optional callback when key is pressed
|
|
183
|
+
* @returns Whether the key is currently pressed
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```tsx
|
|
187
|
+
* // With callback
|
|
188
|
+
* useKeyPress('Escape', () => setIsOpen(false));
|
|
189
|
+
*
|
|
190
|
+
* // Check if pressed
|
|
191
|
+
* const isEnterPressed = useKeyPress('Enter');
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
export declare function useKeyPress(targetKey: string, handler?: (event: KeyboardEvent) => void): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Hook for declarative setInterval.
|
|
197
|
+
*
|
|
198
|
+
* @param callback - Function to call on each interval
|
|
199
|
+
* @param delay - Interval delay in ms, or null to pause
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```tsx
|
|
203
|
+
* const [count, setCount] = useState(0);
|
|
204
|
+
*
|
|
205
|
+
* // Increment every second
|
|
206
|
+
* useInterval(() => {
|
|
207
|
+
* setCount((c) => c + 1);
|
|
208
|
+
* }, 1000);
|
|
209
|
+
*
|
|
210
|
+
* // Pause by passing null
|
|
211
|
+
* useInterval(callback, isRunning ? 1000 : null);
|
|
212
|
+
* ```
|
|
213
|
+
*/
|
|
214
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
215
|
+
export { useTrinityPalette, getTrinityPalette } from './hooks/useTrinityPalette';
|
|
216
|
+
export type { TrinityPalette, TrinityStatusColor, TrinityInteractive, TrinityBorder } from './hooks/useTrinityPalette';
|
|
217
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAczD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAC5E,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CA6BlC;AAMD,UAAU,mBAAmB;IAC3B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,UAAU,kBAAkB;IAC1B,6BAA6B;IAC7B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB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CAUtD;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EACrD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EACvB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,GAChD,IAAI,CAkBN;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GACvC,OAAO,CA2BT;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAiB5E;AAGD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACjF,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export { default as TopNavHeader } from './components/TopNavHeader';
|
|
2
|
+
export { default as TopNavWithSidebar } from './components/TopNavWithSidebar';
|
|
3
|
+
export { default as Footer } from './components/Footer';
|
|
4
|
+
export { TrinityLogo, SearchBar, ClientMenu, AppsMenu, UserMenu, HeaderActions, } from './components/navigation';
|
|
5
|
+
export type { App, Client, NavItem, UserInfo, SearchConfig, BaseNavProps, TrinityLogoProps, SearchBarProps, ClientMenuProps, AppsMenuProps, UserMenuProps, HeaderActionsProps, } from './components/navigation';
|
|
6
|
+
export { AppLayout, ResizablePanel, InsightEnginePanel } from './components/AppLayout';
|
|
7
|
+
/** @deprecated Use AppLayout with navStyle/aiTrigger props instead */
|
|
8
|
+
export { AIFabLayout } from './components/AppLayout';
|
|
9
|
+
export type { AppLayoutProps, NavStyle, AITrigger, ResizablePanelProps, InsightEnginePanelProps, ChatMessage, } from './components/AppLayout';
|
|
10
|
+
export { PageHeader } from './components/PageHeader';
|
|
11
|
+
export type { PageHeaderProps, BreadcrumbItem } from './components/PageHeader';
|
|
12
|
+
export { SplitPane } from './components/SplitPane';
|
|
13
|
+
export type { SplitPaneProps } from './components/SplitPane';
|
|
14
|
+
export { DockLayout } from './components/DockLayout';
|
|
15
|
+
export type { DockLayoutProps, DockPanel, DockZone } from './components/DockLayout';
|
|
16
|
+
export { InsightEngine } from './components/AI/InsightEngine';
|
|
17
|
+
export type { InsightEngineProps } from './components/AI/InsightEngine';
|
|
18
|
+
export { ChatThread } from './components/AI/ChatThread';
|
|
19
|
+
export type { ChatThreadProps } from './components/AI/ChatThread';
|
|
20
|
+
export { ChatHeader } from './components/AI/ChatHeader';
|
|
21
|
+
export type { ChatHeaderProps, ChatViewMode } from './components/AI/ChatHeader';
|
|
22
|
+
export { ChatHistoryList } from './components/AI/ChatHistoryList';
|
|
23
|
+
export type { ChatHistoryListProps, ChatHistoryItem } from './components/AI/ChatHistoryList';
|
|
24
|
+
export { InsightEngineInput } from './components/AI/InsightEngineInput';
|
|
25
|
+
export type { InsightEngineInputProps } from './components/AI/InsightEngineInput';
|
|
26
|
+
/** @deprecated Use InsightEngineInput instead */
|
|
27
|
+
export { QueryInput } from './components/AI/QueryInput';
|
|
28
|
+
/** @deprecated Use InsightEngineInputProps instead */
|
|
29
|
+
export type { QueryInputProps } from './components/AI/QueryInput';
|
|
30
|
+
export { AIVoiceOverlay, AIListeningIndicator } from './components/AI/AIVoiceInput';
|
|
31
|
+
export type { AIVoiceOverlayProps, AIListeningIndicatorProps } from './components/AI/AIVoiceInput';
|
|
32
|
+
export { AIResponseRenderer } from './components/AI/AIResponseRenderer';
|
|
33
|
+
export type { AIResponseRendererProps } from './components/AI/AIResponseRenderer';
|
|
34
|
+
export { AITextBlock } from './components/AI/AITextBlock';
|
|
35
|
+
export type { AITextBlockProps } from './components/AI/AITextBlock';
|
|
36
|
+
export { AIMessage } from './components/AI/AIMessage';
|
|
37
|
+
export type { AIMessageProps } from './components/AI/AIMessage';
|
|
38
|
+
export { UserMessage } from './components/AI/UserMessage';
|
|
39
|
+
export type { UserMessageProps } from './components/AI/UserMessage';
|
|
40
|
+
export { UserAvatar } from './components/AI/UserAvatar';
|
|
41
|
+
export type { UserAvatarProps } from './components/AI/UserAvatar';
|
|
42
|
+
export { AILabel } from './components/AI/AILabel';
|
|
43
|
+
export type { AILabelProps, AILabelSize, AILabelVariant } from './components/AI/AILabel';
|
|
44
|
+
export { AIAvatar } from './components/AI/AIAvatar';
|
|
45
|
+
export type { AIAvatarProps } from './components/AI/AIAvatar';
|
|
46
|
+
export { AIExplainability } from './components/AI/AIExplainability';
|
|
47
|
+
export type { AIExplainabilityProps } from './components/AI/AIExplainability';
|
|
48
|
+
export { AISource, AISourcesSection } from './components/AI/AISources';
|
|
49
|
+
export type { AISourceProps, AISourcesSectionProps } from './components/AI/AISources';
|
|
50
|
+
export { AISourcesPanel } from './components/AI/AISourcesPanel';
|
|
51
|
+
export type { AISourcesPanelProps, AISourceCategory, AISourceItem } from './components/AI/AISourcesPanel';
|
|
52
|
+
export { AIRelatedQuestions } from './components/AI/AIRelatedQuestions';
|
|
53
|
+
export type { AIRelatedQuestionsProps } from './components/AI/AIRelatedQuestions';
|
|
54
|
+
export { AISuggestedAction, AICircularAction, AIActionsGroup } from './components/AI/AIActions';
|
|
55
|
+
export type { AISuggestedActionProps, AICircularActionProps, AIActionsGroupProps } from './components/AI/AIActions';
|
|
56
|
+
export { AIContainer, AIExpandableSection, AIPersonaCard } from './components/AI/AIContainer';
|
|
57
|
+
export type { AIContainerProps, AIExpandableSectionProps, AIPersonaCardProps } from './components/AI/AIContainer';
|
|
58
|
+
export { GradientText, StatCard, GradientIconBadge, AIShimmer } from './components/AI/AIVisuals';
|
|
59
|
+
export type { GradientTextProps, StatCardProps, GradientIconBadgeProps, AIShimmerProps } from './components/AI/AIVisuals';
|
|
60
|
+
export { AIChatMessage, AIChatInput, AITypingIndicator, AIQuickReply } from './components/AI/AIChat';
|
|
61
|
+
export type { AIChatMessageProps, AIChatInputProps, AITypingIndicatorProps, AIQuickReplyProps, MessageRole } from './components/AI/AIChat';
|
|
62
|
+
export { aiTokens } from './components/AI/tokens';
|
|
63
|
+
export { DataTable } from './components/DataTable';
|
|
64
|
+
export type { DataTableProps, TrinityColumnDef, RowAction } from './components/DataTable';
|
|
65
|
+
export { DataCard } from './components/DataCard';
|
|
66
|
+
export type { DataCardProps, TrendDirection } from './components/DataCard';
|
|
67
|
+
export { DiffViewer } from './components/DiffViewer';
|
|
68
|
+
export type { DiffViewerProps, DiffViewMode, DiffLine, DiffHunk } from './components/DiffViewer';
|
|
69
|
+
export { Timeline } from './components/Timeline';
|
|
70
|
+
export type { TimelineProps, TimelineItem } from './components/Timeline';
|
|
71
|
+
export { TreeView } from './components/TreeView';
|
|
72
|
+
export type { TreeViewProps, TreeNode, TreeNodeRenderProps } from './components/TreeView';
|
|
73
|
+
export { TransferList } from './components/TransferList';
|
|
74
|
+
export type { TransferListProps, TransferListItem } from './components/TransferList';
|
|
75
|
+
export { SearchInput } from './components/SearchInput';
|
|
76
|
+
export type { SearchInputProps, SearchSuggestion } from './components/SearchInput';
|
|
77
|
+
export { FilterBar } from './components/FilterBar';
|
|
78
|
+
export type { FilterBarProps, FilterConfig, FilterValue, FilterPreset } from './components/FilterBar';
|
|
79
|
+
export { Combobox } from './components/Combobox';
|
|
80
|
+
export type { ComboboxProps, ComboboxOption } from './components/Combobox';
|
|
81
|
+
export { FileUpload } from './components/FileUpload';
|
|
82
|
+
export type { FileUploadProps, UploadFile, FileUploadVariant } from './components/FileUpload';
|
|
83
|
+
export { RichTextEditor } from './components/RichTextEditor';
|
|
84
|
+
export type { RichTextEditorProps, ToolbarItem, HeadingLevel, TextAlign } from './components/RichTextEditor';
|
|
85
|
+
export { CommandPalette } from './components/CommandPalette';
|
|
86
|
+
export type { CommandPaletteProps, CommandItem, CommandGroup } from './components/CommandPalette';
|
|
87
|
+
export { Modal, ConfirmDialog, useConfirmDialog } from './components/Modal';
|
|
88
|
+
export type { ModalProps, ConfirmDialogProps, ModalVariant } from './components/Modal';
|
|
89
|
+
export { ToastProvider, useToast, Toast } from './components/Toast';
|
|
90
|
+
export type { ToastProps, ToastSeverity, ToastPosition, ToastProviderProps, ToastOptions } from './components/Toast';
|
|
91
|
+
export { IllustratedMessage, UploadDropZone } from './components/IllustratedMessage';
|
|
92
|
+
export type { IllustrationType, IllustratedMessageSize, IllustratedMessageProps, UploadDropZoneProps, } from './components/IllustratedMessage';
|
|
93
|
+
export { StatusIndicator, StatusLegend } from './components/StatusIndicator';
|
|
94
|
+
export type { StatusType, SeverityLevel, StatusShape, StatusSize, StatusConfig, StatusLegendProps, StatusLegendItem, } from './components/StatusIndicator';
|
|
95
|
+
export { Icon, IconProvider } from './components/Icon';
|
|
96
|
+
export type { IconLibrary, IconSize, IconContextType, TrinityIconProps } from './components/Icon';
|
|
97
|
+
export { LineChart, BarChart, AreaChart, PieChart, DonutChart, ScatterChart, BubbleChart, RadialBarChart, GaugeChart, ComposedChart, Sparkline, ChartWrapper, CustomTooltip, SimpleTooltip, CustomLegend, InteractiveLegend, PieLegend, } from './components/Charts';
|
|
98
|
+
export type { DataPoint, NamedDataPoint, TimeSeriesDataPoint, MultiSeriesDataPoint, PieDataPoint, ScatterDataPoint, SeriesConfig, AxisConfig, LegendConfig, LegendPosition, LegendAlign, TooltipConfig, ReferenceLineConfig, ReferenceAreaConfig, BaseChartProps, LineChartProps, BarChartProps, BarChartLayout, BarChartVariant, AreaChartProps, PieChartProps, ScatterChartProps, ComposedChartProps, ComposedSeriesConfig, ComposedChartReferenceLineConfig, RadialBarChartProps, GaugeChartProps, SparklineProps, } from './components/Charts';
|
|
99
|
+
export { useDebounce, useDebouncedCallback, useClipboard, useLocalStorage, useTrinityBreakpoints, useToggle, usePrevious, useOnClickOutside, useKeyPress, useInterval, } from './hooks';
|
|
100
|
+
export { useFocusTrap, useReducedMotion, useAriaLive, useRovingTabIndex, SkipLink, VisuallyHidden, } from './accessibility';
|
|
101
|
+
export type { UseFocusTrapOptions, UseFocusTrapReturn, SkipLinkProps, UseAriaLiveOptions, UseAriaLiveReturn, VisuallyHiddenProps, NavigationDirection, UseRovingTabIndexOptions, UseRovingTabIndexReturn, } from './accessibility';
|
|
102
|
+
export { FormProvider, useForm, useFormField, required, email, minLength, maxLength, pattern, min, max, custom, } from './form';
|
|
103
|
+
export type { ValidationRule, FieldState, FieldConfig, FormState, FormContextValue, FormProviderProps, UseFormFieldOptions, UseFormFieldReturn, } from './form';
|
|
104
|
+
export * from './hierarchy';
|
|
105
|
+
export { tokens, baseTokens, semanticTokens, componentTokens, darkModeTokens, } from './tokens';
|
|
106
|
+
export type { TrinityTokens, TrinityBaseColors, TrinitySpacing, TrinityFontSize, TrinityFontWeight, TrinityLineHeight, TrinityLetterSpacing, TrinityBorderRadius, TrinityBorderWidth, TrinityShadows, TrinityZIndex, TrinityDuration, TrinityEasing, TrinityOpacity, TrinityBreakpoints, TrinitySemanticColors, TrinitySemanticSpacing, TrinitySemanticBorders, TrinitySemanticShadows, TrinitySemanticMotion, TrinityComponentTokens, TrinityDarkModeTokens, TrinityOverlayEffects, TrinityOnDarkEffects, TrinityShadowEffects, TrinityFocusEffects, TrinityStateEffects, TrinitySemanticEffects, TrinityIconSize, TrinityMicroTypography, TrinityDataTypography, TrinityInlineSpacing, TrinityStackSpacing, TrinityDensityContext, TrinityDensity, TrinitySemanticRadiusExtended, TokenDomain, DomainTokenMeta, } from './tokens';
|
|
107
|
+
export { createTrinityTheme, createTrinityThemePreset, lightTheme, darkTheme, generateCssVariables, generateDarkModeCssVariables, injectTrinityCssVariables, injectDarkModeCssVariables, getContrastRatio, validateAccessibility, brandColors, accessibleCombinations, useTrinityTokens, } from './theme';
|
|
108
|
+
export type { TrinityThemePresetOptions, TrinityThemePreset, UseTrinityTokensResult, } from './theme';
|
|
109
|
+
export { crmPreset, crmLightTheme, crmDarkTheme, crmConfig, portalPreset, portalLightTheme, portalDarkTheme, portalConfig, analyticsPreset, analyticsLightTheme, analyticsDarkTheme, analyticsConfig, dataVizColors, } from './presets';
|
|
110
|
+
export type { GradientIconName, BackgroundCategory, GradientTheme } from './assets';
|
|
111
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,aAAa,GACd,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,GAAG,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvF,sEAAsE;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EACV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,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