@temboplus/frontend-react-core 0.1.3-beta.0 → 0.1.3-beta.10

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.
Files changed (86) hide show
  1. package/dist/InfoCircleOutlined-B7d2aRfV.js +7 -0
  2. package/dist/InfoCircleOutlined-B7d2aRfV.js.map +1 -0
  3. package/dist/InfoCircleOutlined-DYs90hdV.js +7 -0
  4. package/dist/InfoCircleOutlined-DYs90hdV.js.map +1 -0
  5. package/dist/ZoomOutOutlined-CW-jqBMI.js +2 -0
  6. package/dist/ZoomOutOutlined-CW-jqBMI.js.map +1 -0
  7. package/dist/ZoomOutOutlined-Pw8hpWWK.js +2 -0
  8. package/dist/ZoomOutOutlined-Pw8hpWWK.js.map +1 -0
  9. package/dist/alerts/index.cjs.js +2 -0
  10. package/dist/alerts/index.cjs.js.map +1 -0
  11. package/dist/alerts/index.d.ts +1 -0
  12. package/dist/alerts/index.js +2 -0
  13. package/dist/alerts/index.js.map +1 -0
  14. package/dist/dialogs/index.cjs.js +2 -0
  15. package/dist/dialogs/index.cjs.js.map +1 -0
  16. package/dist/dialogs/index.d.ts +1 -0
  17. package/dist/dialogs/index.js +2 -0
  18. package/dist/dialogs/index.js.map +1 -0
  19. package/dist/features/alerts/alert.d.ts +12 -0
  20. package/dist/features/alerts/alert.js +95 -0
  21. package/dist/features/alerts/index.d.ts +1 -0
  22. package/dist/features/alerts/index.js +1 -0
  23. package/dist/features/dialogs/index.d.ts +1 -0
  24. package/dist/features/dialogs/index.js +1 -0
  25. package/dist/features/dialogs/modal-provider.d.ts +3 -0
  26. package/dist/features/dialogs/modal-provider.js +6 -0
  27. package/dist/features/dialogs/tembo-confirm.d.ts +63 -0
  28. package/dist/features/dialogs/tembo-confirm.js +111 -0
  29. package/dist/features/input-validation/account-name-validator.d.ts +13 -0
  30. package/dist/features/input-validation/account-name-validator.js +28 -0
  31. package/dist/features/input-validation/account-number-validator.d.ts +13 -0
  32. package/dist/features/input-validation/account-number-validator.js +65 -0
  33. package/dist/{antd-validators.d.ts → features/input-validation/amount-validator.d.ts} +1 -62
  34. package/dist/features/input-validation/amount-validator.js +100 -0
  35. package/dist/features/input-validation/index.d.ts +5 -0
  36. package/dist/features/input-validation/index.js +5 -0
  37. package/dist/features/input-validation/phone-number-validator.d.ts +25 -0
  38. package/dist/features/input-validation/phone-number-validator.js +79 -0
  39. package/dist/features/input-validation/swift-code-validator.d.ts +13 -0
  40. package/dist/features/input-validation/swift-code-validator.js +38 -0
  41. package/dist/features/notifications/index.d.ts +3 -0
  42. package/dist/features/notifications/index.js +3 -0
  43. package/dist/features/notifications/tembo-notify.d.ts +50 -0
  44. package/dist/features/notifications/tembo-notify.js +140 -0
  45. package/dist/features/notifications/toast-config.d.ts +12 -0
  46. package/dist/features/notifications/toast-config.js +60 -0
  47. package/dist/features/notifications/toast-container.d.ts +19 -0
  48. package/dist/features/notifications/toast-container.js +89 -0
  49. package/dist/index.cjs.js +1 -1
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.esm.js +1 -1
  53. package/dist/index.esm.js.map +1 -1
  54. package/dist/index.js +1 -0
  55. package/dist/notifications/index.cjs.js +2 -0
  56. package/dist/notifications/index.cjs.js.map +1 -0
  57. package/dist/notifications/index.d.ts +1 -0
  58. package/dist/notifications/index.js +2 -0
  59. package/dist/notifications/index.js.map +1 -0
  60. package/dist/providers.d.ts +37 -0
  61. package/dist/providers.js +32 -0
  62. package/dist/tembo-notify-Bp14qngd.js +2 -0
  63. package/dist/tembo-notify-Bp14qngd.js.map +1 -0
  64. package/dist/tembo-notify-h5Xn66oA.js +2 -0
  65. package/dist/tembo-notify-h5Xn66oA.js.map +1 -0
  66. package/dist/theme/colors.d.ts +278 -0
  67. package/dist/theme/colors.js +212 -0
  68. package/dist/theme/constants.d.ts +143 -0
  69. package/dist/theme/constants.js +82 -0
  70. package/dist/theme/index.cjs.js +2 -0
  71. package/dist/theme/index.cjs.js.map +1 -0
  72. package/dist/theme/index.d.ts +3 -0
  73. package/dist/theme/index.js +2 -0
  74. package/dist/theme/index.js.map +1 -0
  75. package/dist/theme/theme-provider.d.ts +99 -0
  76. package/dist/theme/theme-provider.js +404 -0
  77. package/dist/theme-provider-Ca4P0Hcp.js +11 -0
  78. package/dist/theme-provider-Ca4P0Hcp.js.map +1 -0
  79. package/dist/theme-provider-RhAw3jw_.js +11 -0
  80. package/dist/theme-provider-RhAw3jw_.js.map +1 -0
  81. package/dist/validation/index.cjs.js +2 -0
  82. package/dist/validation/index.cjs.js.map +1 -0
  83. package/dist/validation/index.d.ts +1 -0
  84. package/dist/validation/index.js +2 -0
  85. package/dist/validation/index.js.map +1 -0
  86. package/package.json +31 -7
@@ -0,0 +1,212 @@
1
+ import { merge } from "lodash";
2
+ /**
3
+ * Base color values for light theme
4
+ * These are the actual color values that get mapped to the palette
5
+ */
6
+ const lightModeColors = {
7
+ neutral: {
8
+ 0: '#ffffff',
9
+ 1: '#fafafa',
10
+ 2: '#f5f5f5',
11
+ 3: '#f0f0f0',
12
+ 4: '#e5e5e5',
13
+ 5: '#d4d4d4',
14
+ 6: '#b3b3b3',
15
+ 7: '#999999',
16
+ 8: '#666666',
17
+ 9: '#1a1a1a',
18
+ 10: '#000000',
19
+ },
20
+ };
21
+ /**
22
+ * Base color values for dark theme
23
+ * Inverted neutral scale for dark mode
24
+ */
25
+ const darkModeColors = {
26
+ neutral: {
27
+ 0: '#000000',
28
+ 1: '#1a1a1a',
29
+ 2: '#666666',
30
+ 3: '#999999',
31
+ 4: '#b3b3b3',
32
+ 5: '#d4d4d4',
33
+ 6: '#e5e5e5',
34
+ 7: '#f0f0f0',
35
+ 8: '#f5f5f5',
36
+ 9: '#fafafa',
37
+ 10: '#ffffff',
38
+ },
39
+ };
40
+ /**
41
+ * Build default color palette for a given theme mode
42
+ *
43
+ * @param mode - 'light' or 'dark'
44
+ * @returns Complete color palette with theme-aware neutral scale
45
+ */
46
+ const buildDefaultPalette = (mode) => {
47
+ const modeColors = mode === 'light' ? lightModeColors : darkModeColors;
48
+ return {
49
+ primary: {
50
+ main: '#000000',
51
+ hover: '#1a1a1a',
52
+ active: '#000000',
53
+ light: '#666666',
54
+ lighter: '#999999',
55
+ contrast: '#FFFFFF',
56
+ },
57
+ action: {
58
+ main: '#1a6985',
59
+ hover: '#145268',
60
+ active: '#0f3d4f',
61
+ light: '#e8f2f5',
62
+ lighter: '#f4f9fa',
63
+ disabled: '#a3c9d6',
64
+ contrast: '#FFFFFF',
65
+ },
66
+ absolute: {
67
+ white: '#ffffff',
68
+ black: '#000000',
69
+ },
70
+ neutral: {
71
+ // Numeric scale (theme-aware)
72
+ 0: modeColors.neutral[0],
73
+ 1: modeColors.neutral[1],
74
+ 2: modeColors.neutral[2],
75
+ 3: modeColors.neutral[3],
76
+ 4: modeColors.neutral[4],
77
+ 5: modeColors.neutral[5],
78
+ 6: modeColors.neutral[6],
79
+ 7: modeColors.neutral[7],
80
+ 8: modeColors.neutral[8],
81
+ 9: modeColors.neutral[9],
82
+ 10: modeColors.neutral[10],
83
+ // Convenient aliases (map to numeric scale)
84
+ brightest: modeColors.neutral[0],
85
+ lightest: modeColors.neutral[1],
86
+ lighter: modeColors.neutral[2],
87
+ light: modeColors.neutral[3],
88
+ medium: modeColors.neutral[5],
89
+ dark: modeColors.neutral[7],
90
+ darker: modeColors.neutral[8],
91
+ darkest: modeColors.neutral[9],
92
+ dimmest: modeColors.neutral[10],
93
+ },
94
+ success: {
95
+ main: '#10b981',
96
+ bg: '#ecfdf5',
97
+ border: '#a7f3d0',
98
+ text: '#047857',
99
+ },
100
+ error: {
101
+ main: '#ef4444',
102
+ bg: '#fef2f2',
103
+ border: '#fecaca',
104
+ text: '#dc2626',
105
+ },
106
+ warning: {
107
+ main: '#f59e0b',
108
+ bg: '#fffbeb',
109
+ border: '#fde68a',
110
+ text: '#d97706',
111
+ },
112
+ info: {
113
+ main: '#1a6985',
114
+ bg: '#e8f2f5',
115
+ border: '#b8d9e6',
116
+ text: '#0f3d4f',
117
+ },
118
+ surface: {
119
+ background: modeColors.neutral[0],
120
+ main: modeColors.neutral[0],
121
+ elevated: modeColors.neutral[0],
122
+ hover: modeColors.neutral[1],
123
+ subtle: modeColors.neutral[1],
124
+ },
125
+ text: {
126
+ primary: modeColors.neutral[10],
127
+ secondary: modeColors.neutral[8],
128
+ tertiary: modeColors.neutral[7],
129
+ quaternary: modeColors.neutral[6],
130
+ disabled: modeColors.neutral[5],
131
+ inverse: modeColors.neutral[0],
132
+ },
133
+ border: {
134
+ main: modeColors.neutral[4],
135
+ light: modeColors.neutral[3],
136
+ strong: modeColors.neutral[5],
137
+ divider: modeColors.neutral[4],
138
+ },
139
+ components: {
140
+ button: {
141
+ primary: {
142
+ bg: '#1a6985',
143
+ hover: '#145268',
144
+ text: '#FFFFFF',
145
+ },
146
+ default: {
147
+ bg: modeColors.neutral[0],
148
+ border: modeColors.neutral[5],
149
+ text: modeColors.neutral[10],
150
+ hover: modeColors.neutral[1],
151
+ },
152
+ },
153
+ input: {
154
+ bg: modeColors.neutral[0],
155
+ border: modeColors.neutral[5],
156
+ borderHover: modeColors.neutral[7],
157
+ borderFocus: '#1a6985',
158
+ placeholder: modeColors.neutral[7],
159
+ },
160
+ table: {
161
+ bg: modeColors.neutral[0],
162
+ headerBg: modeColors.neutral[1],
163
+ headerText: modeColors.neutral[10],
164
+ border: modeColors.neutral[4],
165
+ rowHover: modeColors.neutral[1],
166
+ },
167
+ sidebar: {
168
+ bg: '#000000',
169
+ hover: 'rgba(255, 255, 255, 0.08)',
170
+ selected: 'rgba(255, 255, 255, 0.12)',
171
+ text: '#FFFFFF',
172
+ textSecondary: 'rgba(255, 255, 255, 0.65)',
173
+ },
174
+ },
175
+ utility: {
176
+ transparent: 'transparent',
177
+ link: '#1a6985',
178
+ linkHover: '#145268',
179
+ linkActive: '#0f3d4f',
180
+ },
181
+ };
182
+ };
183
+ /**
184
+ * Default color palette for light theme
185
+ */
186
+ export const defaultColorPalette = buildDefaultPalette('light');
187
+ /**
188
+ * Build a complete color palette by merging overrides with defaults
189
+ * Performs deep merge to allow partial nested overrides
190
+ *
191
+ * @param overrides - Partial color palette overrides
192
+ * @param mode - Theme mode ('light' or 'dark')
193
+ * @returns Complete color palette with overrides applied
194
+ */
195
+ export const buildColorPalette = (overrides, mode = 'light') => {
196
+ const basePalette = buildDefaultPalette(mode);
197
+ if (!overrides)
198
+ return basePalette;
199
+ const merged = merge({}, basePalette, overrides);
200
+ // After merging, ensure neutral aliases are synced with numeric values
201
+ // This handles cases where overrides might change the numeric scale
202
+ merged.neutral.brightest = merged.neutral[0];
203
+ merged.neutral.lightest = merged.neutral[1];
204
+ merged.neutral.lighter = merged.neutral[2];
205
+ merged.neutral.light = merged.neutral[3];
206
+ merged.neutral.medium = merged.neutral[5];
207
+ merged.neutral.dark = merged.neutral[7];
208
+ merged.neutral.darker = merged.neutral[8];
209
+ merged.neutral.darkest = merged.neutral[9];
210
+ merged.neutral.dimmest = merged.neutral[10];
211
+ return merged;
212
+ };
@@ -0,0 +1,143 @@
1
+ /**
2
+ * Tembo UI Constants
3
+ *
4
+ * Non-color design tokens for typography, spacing, sizing, shadows, and animations.
5
+ * Separated from colors for better organization and independent theming.
6
+ *
7
+ * @example
8
+ * const { constants } = useTemboTheme();
9
+ * style={{ borderRadius: constants.radius.base, padding: constants.spacing.md }}
10
+ */
11
+ export interface TemboUIConstants {
12
+ /**
13
+ * Typography tokens
14
+ * Font families, sizes, weights, and line heights
15
+ */
16
+ typography: {
17
+ /** Primary font stack used throughout the application */
18
+ fontFamily: string;
19
+ /** Font size scale - use 'base' (14px) for body text */
20
+ fontSize: {
21
+ xs: number;
22
+ sm: number;
23
+ /** Default body text size (14px) */
24
+ base: number;
25
+ lg: number;
26
+ xl: number;
27
+ };
28
+ fontWeight: {
29
+ normal: number;
30
+ medium: number;
31
+ semibold: number;
32
+ bold: number;
33
+ };
34
+ lineHeight: {
35
+ /** Tight line height for headings */
36
+ tight: number;
37
+ /** Default line height for body text */
38
+ base: number;
39
+ /** Relaxed line height for large text blocks */
40
+ relaxed: number;
41
+ };
42
+ };
43
+ /**
44
+ * Spacing scale
45
+ * Consistent spacing values for margins, padding, and gaps
46
+ * Based on 4px grid system
47
+ */
48
+ spacing: {
49
+ xs: number;
50
+ sm: number;
51
+ md: number;
52
+ lg: number;
53
+ xl: number;
54
+ '2xl': number;
55
+ '3xl': number;
56
+ };
57
+ /**
58
+ * Border radius tokens
59
+ * Consistent corner rounding across components
60
+ */
61
+ radius: {
62
+ none: number;
63
+ sm: number;
64
+ /** Default border radius (12px) */
65
+ base: number;
66
+ md: number;
67
+ lg: number;
68
+ xl: number;
69
+ /** Fully rounded (pill shape) */
70
+ full: number;
71
+ /** Button-specific radius for pill-shaped buttons */
72
+ button: number;
73
+ /** Input field radius */
74
+ input: number;
75
+ /** Card radius */
76
+ card: number;
77
+ };
78
+ /**
79
+ * Box shadow tokens
80
+ * Elevation and depth through shadows
81
+ */
82
+ shadow: {
83
+ /** Subtle shadow for slight elevation */
84
+ sm: string;
85
+ /** Default shadow for cards and containers */
86
+ base: string;
87
+ /** Medium shadow for elevated content */
88
+ md: string;
89
+ /** Large shadow for modals and important elements */
90
+ lg: string;
91
+ /** Extra large shadow for maximum elevation */
92
+ xl: string;
93
+ /** Semantic: Card shadow (typically subtle) */
94
+ card: string;
95
+ /** Semantic: Elevated content like popovers */
96
+ elevated: string;
97
+ /** Semantic: Dropdown menus */
98
+ dropdown: string;
99
+ };
100
+ /**
101
+ * Z-index layers
102
+ * Stacking order for overlays and floating elements
103
+ */
104
+ zIndex: {
105
+ dropdown: number;
106
+ modal: number;
107
+ popover: number;
108
+ tooltip: number;
109
+ notification: number;
110
+ };
111
+ /**
112
+ * Transition timing
113
+ * Animation durations for consistent motion
114
+ */
115
+ transition: {
116
+ /** Quick interactions (150ms) */
117
+ fast: string;
118
+ /** Default transitions (200ms) */
119
+ base: string;
120
+ /** Slower, more deliberate animations (300ms) */
121
+ slow: string;
122
+ };
123
+ }
124
+ /**
125
+ * Partial UI constants overrides
126
+ */
127
+ export type TemboUIConstantsOverrides = DeepPartial<TemboUIConstants>;
128
+ /**
129
+ * Default UI constants
130
+ * Professional, accessible defaults suitable for most applications
131
+ */
132
+ export declare const defaultUIConstants: TemboUIConstants;
133
+ /**
134
+ * Build complete UI constants by merging overrides with defaults
135
+ *
136
+ * @param overrides - Partial UI constants overrides
137
+ * @returns Complete UI constants with overrides applied
138
+ */
139
+ export declare const buildUIConstants: (overrides?: TemboUIConstantsOverrides) => TemboUIConstants;
140
+ type DeepPartial<T> = {
141
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
142
+ };
143
+ export {};
@@ -0,0 +1,82 @@
1
+ import { merge } from 'lodash';
2
+ /**
3
+ * Default UI constants
4
+ * Professional, accessible defaults suitable for most applications
5
+ */
6
+ export const defaultUIConstants = {
7
+ typography: {
8
+ fontFamily: "Avenir, MarkPro, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
9
+ fontSize: {
10
+ xs: 12,
11
+ sm: 13,
12
+ base: 14,
13
+ lg: 16,
14
+ xl: 18,
15
+ },
16
+ fontWeight: {
17
+ normal: 400,
18
+ medium: 500,
19
+ semibold: 600,
20
+ bold: 700,
21
+ },
22
+ lineHeight: {
23
+ tight: 1.25,
24
+ base: 1.5715,
25
+ relaxed: 1.75,
26
+ },
27
+ },
28
+ spacing: {
29
+ xs: 4,
30
+ sm: 8,
31
+ md: 12,
32
+ lg: 16,
33
+ xl: 24,
34
+ '2xl': 32,
35
+ '3xl': 48,
36
+ },
37
+ radius: {
38
+ none: 0,
39
+ sm: 8,
40
+ base: 12,
41
+ md: 14,
42
+ lg: 16,
43
+ xl: 20,
44
+ full: 9999,
45
+ button: 24,
46
+ input: 10,
47
+ card: 16,
48
+ },
49
+ shadow: {
50
+ sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
51
+ base: '0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08)',
52
+ md: '0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)',
53
+ lg: '0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)',
54
+ xl: '0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08)',
55
+ card: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
56
+ elevated: '0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)',
57
+ dropdown: '0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)',
58
+ },
59
+ zIndex: {
60
+ dropdown: 1000,
61
+ modal: 1050,
62
+ popover: 1060,
63
+ tooltip: 1070,
64
+ notification: 1080,
65
+ },
66
+ transition: {
67
+ fast: '150ms cubic-bezier(0.4, 0, 0.2, 1)',
68
+ base: '200ms cubic-bezier(0.4, 0, 0.2, 1)',
69
+ slow: '300ms cubic-bezier(0.4, 0, 0.2, 1)',
70
+ },
71
+ };
72
+ /**
73
+ * Build complete UI constants by merging overrides with defaults
74
+ *
75
+ * @param overrides - Partial UI constants overrides
76
+ * @returns Complete UI constants with overrides applied
77
+ */
78
+ export const buildUIConstants = (overrides) => {
79
+ if (!overrides)
80
+ return defaultUIConstants;
81
+ return merge(defaultUIConstants, overrides);
82
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("../theme-provider-RhAw3jw_.js");require("react"),require("antd"),require("lodash"),exports.TemboThemeProvider=e.TemboThemeProvider,exports.buildColorPalette=e.buildColorPalette,exports.buildUIConstants=e.buildUIConstants,exports.defaultColorPalette=e.defaultColorPalette,exports.defaultUIConstants=e.defaultUIConstants,exports.useTemboTheme=e.useTemboTheme;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./colors.js";
2
+ export * from "./constants.js";
3
+ export * from "./theme-provider.js";
@@ -0,0 +1,2 @@
1
+ export{T as TemboThemeProvider,b as buildColorPalette,c as buildUIConstants,d as defaultColorPalette,a as defaultUIConstants,u as useTemboTheme}from"../theme-provider-Ca4P0Hcp.js";import"react";import"antd";import"lodash";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import React from 'react';
2
+ import type { ThemeConfig } from 'antd';
3
+ import { TemboColorPalette, TemboColorOverrides, ThemeMode } from './colors.js';
4
+ import { TemboUIConstants, TemboUIConstantsOverrides } from './constants.js';
5
+ /**
6
+ * Shape of the theme context exposed via useTemboTheme()
7
+ */
8
+ export interface TemboThemeContextValue {
9
+ colors: TemboColorPalette;
10
+ constants: TemboUIConstants;
11
+ mode: ThemeMode;
12
+ }
13
+ /**
14
+ * Props for TemboThemeProvider
15
+ *
16
+ * @example
17
+ * // Basic usage
18
+ * <TemboThemeProvider>
19
+ * <App />
20
+ * </TemboThemeProvider>
21
+ *
22
+ * @example
23
+ * // With dark mode
24
+ * <TemboThemeProvider mode="dark">
25
+ * <App />
26
+ * </TemboThemeProvider>
27
+ *
28
+ * @example
29
+ * // With color overrides
30
+ * <TemboThemeProvider
31
+ * colors={{
32
+ * primary: { main: '#007bff' },
33
+ * action: { main: '#28a745' }
34
+ * }}
35
+ * >
36
+ * <App />
37
+ * </TemboThemeProvider>
38
+ *
39
+ * @example
40
+ * // With all customizations
41
+ * <TemboThemeProvider
42
+ * mode="dark"
43
+ * colors={{ primary: { main: '#007bff' } }}
44
+ * constants={{ radius: { base: 8 } }}
45
+ * themeOverrides={{
46
+ * components: {
47
+ * Button: { controlHeight: 40 }
48
+ * }
49
+ * }}
50
+ * >
51
+ * <App />
52
+ * </TemboThemeProvider>
53
+ */
54
+ export interface TemboThemeProviderProps {
55
+ children: React.ReactNode;
56
+ /** Theme mode - 'light' or 'dark' */
57
+ mode?: ThemeMode;
58
+ /** Color palette overrides - supports deep partial overrides */
59
+ colors?: TemboColorOverrides;
60
+ /** UI constants overrides - supports deep partial overrides */
61
+ constants?: TemboUIConstantsOverrides;
62
+ /** Raw Ant Design ThemeConfig overrides for advanced customization */
63
+ themeOverrides?: Partial<ThemeConfig>;
64
+ }
65
+ /**
66
+ * TemboThemeProvider
67
+ *
68
+ * Wraps your application to provide theming through React context and Ant Design's ConfigProvider.
69
+ * Merges default colors/constants with host overrides and configures Ant Design components.
70
+ * Supports light and dark mode through the mode prop.
71
+ *
72
+ * All child components can access theme values via the useTemboTheme() hook.
73
+ */
74
+ export declare const TemboThemeProvider: React.FC<TemboThemeProviderProps>;
75
+ /**
76
+ * Hook to access the active Tembo theme
77
+ *
78
+ * Returns the merged color palette, UI constants, and current theme mode.
79
+ * Components should always use this hook instead of importing defaults directly.
80
+ *
81
+ * @returns Theme context containing colors, constants, and mode
82
+ *
83
+ * @example
84
+ * function MyComponent() {
85
+ * const { colors, constants, mode } = useTemboTheme();
86
+ *
87
+ * return (
88
+ * <div style={{
89
+ * color: colors.text.primary,
90
+ * padding: constants.spacing.md,
91
+ * borderRadius: constants.radius.base,
92
+ * backgroundColor: colors.neutral.lightest
93
+ * }}>
94
+ * Current theme: {mode}
95
+ * </div>
96
+ * );
97
+ * }
98
+ */
99
+ export declare const useTemboTheme: () => TemboThemeContextValue;