@lark-apaas/miaoda-core 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +8 -0
  3. package/lib/apis/components/AppContainer.d.ts +1 -0
  4. package/lib/apis/components/AppContainer.js +2 -0
  5. package/lib/apis/components/ErrorRender.d.ts +1 -0
  6. package/lib/apis/components/ErrorRender.js +2 -0
  7. package/lib/apis/components/NotFoundRender.d.ts +1 -0
  8. package/lib/apis/components/NotFoundRender.js +2 -0
  9. package/lib/apis/components/SidebarNav.d.ts +1 -0
  10. package/lib/apis/components/SidebarNav.js +2 -0
  11. package/lib/apis/components/User.d.ts +1 -0
  12. package/lib/apis/components/User.js +1 -0
  13. package/lib/apis/components/Welcome.d.ts +1 -0
  14. package/lib/apis/components/Welcome.js +2 -0
  15. package/lib/apis/constants/img-resources/avatar.d.ts +11 -0
  16. package/lib/apis/constants/img-resources/avatar.js +12 -0
  17. package/lib/apis/constants/img-resources/banner.d.ts +24 -0
  18. package/lib/apis/constants/img-resources/banner.js +25 -0
  19. package/lib/apis/constants/img-resources/cover.d.ts +36 -0
  20. package/lib/apis/constants/img-resources/cover.js +37 -0
  21. package/lib/apis/dataloom.d.ts +1 -0
  22. package/lib/apis/dataloom.js +2 -0
  23. package/lib/apis/hooks/useAppInfo.d.ts +1 -0
  24. package/lib/apis/hooks/useAppInfo.js +1 -0
  25. package/lib/apis/hooks/useCurrentUserProfile.d.ts +1 -0
  26. package/lib/apis/hooks/useCurrentUserProfile.js +1 -0
  27. package/lib/apis/logger.d.ts +1 -0
  28. package/lib/apis/logger.js +1 -0
  29. package/lib/apis/tools/generateImage.d.ts +1 -0
  30. package/lib/apis/tools/generateImage.js +1 -0
  31. package/lib/apis/tools/generateTextStream.d.ts +1 -0
  32. package/lib/apis/tools/generateTextStream.js +1 -0
  33. package/lib/apis/tools/getAppInfo.d.ts +1 -0
  34. package/lib/apis/tools/getAppInfo.js +1 -0
  35. package/lib/apis/tools/getCurrentUserProfile.d.ts +1 -0
  36. package/lib/apis/tools/getCurrentUserProfile.js +1 -0
  37. package/lib/apis/tools/storage.d.ts +1 -0
  38. package/lib/apis/tools/storage.js +4 -0
  39. package/lib/apis/udt-types.d.ts +16 -0
  40. package/lib/apis/udt-types.js +0 -0
  41. package/lib/apis/utils/registerChinaMap.d.ts +1 -0
  42. package/lib/apis/utils/registerChinaMap.js +103319 -0
  43. package/lib/components/AppContainer/IframeBridge.d.ts +4 -0
  44. package/lib/components/AppContainer/IframeBridge.js +92 -0
  45. package/lib/components/AppContainer/LogInterceptor.d.ts +1 -0
  46. package/lib/components/AppContainer/LogInterceptor.js +44 -0
  47. package/lib/components/AppContainer/PageHoc.d.ts +4 -0
  48. package/lib/components/AppContainer/PageHoc.js +40 -0
  49. package/lib/components/AppContainer/api-proxy/core.d.ts +188 -0
  50. package/lib/components/AppContainer/api-proxy/core.js +290 -0
  51. package/lib/components/AppContainer/dayjsPlugins.d.ts +1 -0
  52. package/lib/components/AppContainer/dayjsPlugins.js +69 -0
  53. package/lib/components/AppContainer/index.d.ts +7 -0
  54. package/lib/components/AppContainer/index.js +65 -0
  55. package/lib/components/AppContainer/sonner.css +101 -0
  56. package/lib/components/AppContainer/sonner.d.ts +8 -0
  57. package/lib/components/AppContainer/sonner.js +26 -0
  58. package/lib/components/AppContainer/utils/api-panel.d.ts +11 -0
  59. package/lib/components/AppContainer/utils/api-panel.js +21 -0
  60. package/lib/components/AppContainer/utils/childApi.d.ts +5 -0
  61. package/lib/components/AppContainer/utils/childApi.js +26 -0
  62. package/lib/components/AppContainer/utils/listenHot.d.ts +1 -0
  63. package/lib/components/AppContainer/utils/listenHot.js +43 -0
  64. package/lib/components/ErrorRender/index.d.ts +5 -0
  65. package/lib/components/ErrorRender/index.js +79 -0
  66. package/lib/components/NotFoundRender/index.d.ts +3 -0
  67. package/lib/components/NotFoundRender/index.js +59 -0
  68. package/lib/components/SidebarNav/DrawerNav.d.ts +3 -0
  69. package/lib/components/SidebarNav/DrawerNav.js +64 -0
  70. package/lib/components/SidebarNav/DropdownNav.d.ts +3 -0
  71. package/lib/components/SidebarNav/DropdownNav.js +40 -0
  72. package/lib/components/SidebarNav/Sidebar.d.ts +3 -0
  73. package/lib/components/SidebarNav/Sidebar.js +33 -0
  74. package/lib/components/SidebarNav/index.d.ts +5 -0
  75. package/lib/components/SidebarNav/index.js +61 -0
  76. package/lib/components/User/UserDisplay.d.ts +9 -0
  77. package/lib/components/User/UserDisplay.js +39 -0
  78. package/lib/components/User/UserProfile/UserProfile.css +34 -0
  79. package/lib/components/User/UserProfile/UserProfile.d.ts +6 -0
  80. package/lib/components/User/UserProfile/UserProfile.js +41 -0
  81. package/lib/components/User/UserProfile/UserProfileContainer.d.ts +4 -0
  82. package/lib/components/User/UserProfile/UserProfileContainer.js +8 -0
  83. package/lib/components/User/UserProfile/UserProfileSkeleton.d.ts +3 -0
  84. package/lib/components/User/UserProfile/UserProfileSkeleton.js +36 -0
  85. package/lib/components/User/UserProfile/UserProfileUI.d.ts +8 -0
  86. package/lib/components/User/UserProfile/UserProfileUI.js +113 -0
  87. package/lib/components/User/UserProfile/index.d.ts +1 -0
  88. package/lib/components/User/UserProfile/index.js +2 -0
  89. package/lib/components/User/UserProfile/type.d.ts +8 -0
  90. package/lib/components/User/UserProfile/type.js +0 -0
  91. package/lib/components/User/UserProfile/utils.d.ts +5 -0
  92. package/lib/components/User/UserProfile/utils.js +26 -0
  93. package/lib/components/User/UserSelect.css +11 -0
  94. package/lib/components/User/UserSelect.d.ts +11 -0
  95. package/lib/components/User/UserSelect.js +172 -0
  96. package/lib/components/User/UserWithAvatar.d.ts +3 -0
  97. package/lib/components/User/UserWithAvatar.js +41 -0
  98. package/lib/components/User/index.d.ts +7 -0
  99. package/lib/components/User/index.js +5 -0
  100. package/lib/components/User/type.d.ts +13 -0
  101. package/lib/components/User/type.js +0 -0
  102. package/lib/components/Welcome/index.d.ts +3 -0
  103. package/lib/components/Welcome/index.js +17 -0
  104. package/lib/components/common/LogoInfo.d.ts +5 -0
  105. package/lib/components/common/LogoInfo.js +30 -0
  106. package/lib/components/common/NavItem.d.ts +20 -0
  107. package/lib/components/common/NavItem.js +112 -0
  108. package/lib/components/common/NavMenu.d.ts +9 -0
  109. package/lib/components/common/NavMenu.js +50 -0
  110. package/lib/components/common/UserAvatarLayout.d.ts +4 -0
  111. package/lib/components/common/UserAvatarLayout.js +41 -0
  112. package/lib/components/common/UserAvatarMenu.d.ts +4 -0
  113. package/lib/components/common/UserAvatarMenu.js +58 -0
  114. package/lib/components/common/index.d.ts +9 -0
  115. package/lib/components/common/index.js +10 -0
  116. package/lib/components/index.d.ts +8 -0
  117. package/lib/components/index.js +6 -0
  118. package/lib/components/theme/ThemeProvider.d.ts +20 -0
  119. package/lib/components/theme/ThemeProvider.js +75 -0
  120. package/lib/components/theme/constants.d.ts +48 -0
  121. package/lib/components/theme/constants.js +557 -0
  122. package/lib/components/theme/index.d.ts +4 -0
  123. package/lib/components/theme/index.js +5 -0
  124. package/lib/components/theme/miaoDarkTheme.d.ts +2 -0
  125. package/lib/components/theme/miaoDarkTheme.js +310 -0
  126. package/lib/components/theme/miaoLightTheme.d.ts +2 -0
  127. package/lib/components/theme/miaoLightTheme.js +296 -0
  128. package/lib/components/theme/ui-config.d.ts +1 -0
  129. package/lib/components/theme/ui-config.js +2 -0
  130. package/lib/components/theme/util.d.ts +20 -0
  131. package/lib/components/theme/util.js +188 -0
  132. package/lib/font-family.css +40 -0
  133. package/lib/hooks/index.d.ts +5 -0
  134. package/lib/hooks/index.js +5 -0
  135. package/lib/hooks/useAppInfo.d.ts +6 -0
  136. package/lib/hooks/useAppInfo.js +21 -0
  137. package/lib/hooks/useCurrentUserProfile.d.ts +12 -0
  138. package/lib/hooks/useCurrentUserProfile.js +58 -0
  139. package/lib/hooks/useIsMobile.d.ts +1 -0
  140. package/lib/hooks/useIsMobile.js +20 -0
  141. package/lib/hooks/useLogout.d.ts +4 -0
  142. package/lib/hooks/useLogout.js +37 -0
  143. package/lib/hooks/useTheme.d.ts +4 -0
  144. package/lib/hooks/useTheme.js +8 -0
  145. package/lib/hooks/useUpdatingRef.d.ts +1 -0
  146. package/lib/hooks/useUpdatingRef.js +7 -0
  147. package/lib/index.css +5 -0
  148. package/lib/index.d.ts +4 -0
  149. package/lib/index.js +5 -0
  150. package/lib/inspector.dev.css +10 -0
  151. package/lib/integrations/dataloom.d.ts +2 -0
  152. package/lib/integrations/dataloom.js +32 -0
  153. package/lib/integrations/generateImage.d.ts +1 -0
  154. package/lib/integrations/generateImage.js +47 -0
  155. package/lib/integrations/generateTextStream.d.ts +21 -0
  156. package/lib/integrations/generateTextStream.js +98 -0
  157. package/lib/integrations/getAppInfo.d.ts +2 -0
  158. package/lib/integrations/getAppInfo.js +14 -0
  159. package/lib/integrations/getCurrentUserProfile.d.ts +6 -0
  160. package/lib/integrations/getCurrentUserProfile.js +5 -0
  161. package/lib/logger/index.d.ts +6 -0
  162. package/lib/logger/index.js +54 -0
  163. package/lib/override.css +29 -0
  164. package/lib/tailwind-theme.css +335 -0
  165. package/lib/theme-layer.css +3 -0
  166. package/lib/types/common.d.ts +4 -0
  167. package/lib/types/common.js +0 -0
  168. package/lib/types/iframe-events.d.ts +55 -0
  169. package/lib/types/iframe-events.js +0 -0
  170. package/lib/types/index.d.ts +43 -0
  171. package/lib/types/index.js +0 -0
  172. package/lib/utils/copyToClipboard.d.ts +6 -0
  173. package/lib/utils/copyToClipboard.js +32 -0
  174. package/lib/utils/getAppId.d.ts +6 -0
  175. package/lib/utils/getAppId.js +11 -0
  176. package/lib/utils/getCsrfToken.d.ts +5 -0
  177. package/lib/utils/getCsrfToken.js +10 -0
  178. package/lib/utils/getEnvPath.d.ts +4 -0
  179. package/lib/utils/getEnvPath.js +4 -0
  180. package/lib/utils/getInitialInfo.d.ts +20 -0
  181. package/lib/utils/getInitialInfo.js +32 -0
  182. package/lib/utils/getParentOrigin.d.ts +5 -0
  183. package/lib/utils/getParentOrigin.js +7 -0
  184. package/lib/utils/getUserProfile.d.ts +47 -0
  185. package/lib/utils/getUserProfile.js +39 -0
  186. package/lib/utils/postMessage.d.ts +8 -0
  187. package/lib/utils/postMessage.js +11 -0
  188. package/lib/utils/url.d.ts +8 -0
  189. package/lib/utils/url.js +22 -0
  190. package/lib/utils/utils.d.ts +20 -0
  191. package/lib/utils/utils.js +22 -0
  192. package/package.json +134 -0
@@ -0,0 +1,310 @@
1
+ const defaultPrimaryPresets = {
2
+ colorPrimary: '#336df4',
3
+ colorPrimaryBg: '#152340',
4
+ colorPrimaryBgHover: '#173166',
5
+ colorPrimaryBorder: '#336df4',
6
+ colorPrimaryBorderHover: '#888888',
7
+ colorPrimaryHover: '#4c88ff',
8
+ colorPrimaryActive: '#75a4ff',
9
+ colorPrimaryTextHover: '#3370eb',
10
+ colorPrimaryText: '#4c88ff',
11
+ colorPrimaryTextActive: '#75a4ff',
12
+ colorPrimaryFill: 'rgba(255, 255, 255, 0.22)',
13
+ colorPrimaryFillSecondary: 'rgba(255, 255, 255, 0.16)',
14
+ colorPrimaryFillTertiary: 'rgba(255, 255, 255, 0.08)',
15
+ colorPrimaryFillQuaternary: 'rgba(255, 255, 255, 0.02)'
16
+ };
17
+ const darkToken = {
18
+ blue: '#8ae8ff',
19
+ purple: '#bd54c6',
20
+ cyan: '#95f3d9',
21
+ green: '#62c473',
22
+ magenta: '#e34ba9',
23
+ pink: '#EB2F96',
24
+ red: '#f4416c',
25
+ orange: '#ff9927',
26
+ yellow: '#ffef5c',
27
+ volcano: '#ec5e41',
28
+ geekblue: '#0072f5',
29
+ gold: '#ffb224',
30
+ lime: '#c4f042',
31
+ colorPrimary: '#336df4',
32
+ colorSuccess: '#51ba43',
33
+ colorWarning: '#f3871b',
34
+ colorError: '#f05b56',
35
+ colorInfo: '#336df4',
36
+ colorLink: '#4c88ff',
37
+ colorTextBase: '#ebebeb',
38
+ colorBgBase: '#000',
39
+ fontFamily: '"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
40
+ fontFamilyCode: 'Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
41
+ fontSize: 14,
42
+ lineWidth: 1,
43
+ lineType: 'solid',
44
+ motionUnit: 0.1,
45
+ motionBase: 0,
46
+ motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
47
+ motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
48
+ motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
49
+ motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
50
+ motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
51
+ motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
52
+ motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
53
+ motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
54
+ borderRadius: 6,
55
+ sizeUnit: 4,
56
+ sizeStep: 4,
57
+ sizePopupArrow: 16,
58
+ controlHeight: 36,
59
+ zIndexBase: 0,
60
+ zIndexPopupBase: 1000,
61
+ opacityImage: 1,
62
+ wireframe: false,
63
+ motion: true,
64
+ borderRadiusLG: 8,
65
+ borderRadiusSM: 4,
66
+ colorText: '#ebebeb',
67
+ colorTextSecondary: '#a6a6a6',
68
+ colorTextTertiary: '#757575',
69
+ colorTextQuaternary: '#5f5f5f',
70
+ colorFill: 'rgba(255, 255, 255, 0.16)',
71
+ colorFillSecondary: 'rgba(255, 255, 255, 0.10)',
72
+ colorFillTertiary: 'rgba(255, 255, 255, 0.06)',
73
+ colorFillQuaternary: 'rgba(255, 255, 255, 0.02)',
74
+ colorBgSolid: 'rgba(255,255,255,0.95)',
75
+ colorBgSolidHover: 'rgb(255,255,255)',
76
+ colorBgSolidActive: 'rgba(255,255,255,0.9)',
77
+ colorBgLayout: '#000000',
78
+ colorBgContainer: '#0d0d0d',
79
+ colorBgElevated: '#1a1a1a',
80
+ colorBgSpotlight: '#2d2d2d',
81
+ colorBgBlur: 'rgba(255,255,255,0.04)',
82
+ colorBorder: '#505050',
83
+ colorBorderSecondary: '#ebebeb26',
84
+ colorPrimaryBg: '#152340',
85
+ colorPrimaryBgHover: '#173166',
86
+ colorPrimaryBorder: '#336df4',
87
+ colorPrimaryBorderHover: '#888888',
88
+ colorPrimaryHover: '#4c88ff',
89
+ colorPrimaryActive: '#75a4ff',
90
+ colorPrimaryTextHover: '#3370eb',
91
+ colorPrimaryText: '#4c88ff',
92
+ colorPrimaryTextActive: '#75a4ff',
93
+ colorSuccessBg: '#0e2b0a',
94
+ colorSuccessBgHover: '#173b12',
95
+ colorSuccessBorder: '#2f7526',
96
+ colorSuccessBorderHover: '#35872a',
97
+ colorSuccessHover: '#419e34',
98
+ colorSuccessActive: '#69cc5c',
99
+ colorSuccessTextHover: '#419e34',
100
+ colorSuccessText: '#51ba43',
101
+ colorSuccessTextActive: '#69cc5c',
102
+ colorErrorBg: '#3d1a19',
103
+ colorErrorBgHover: '#591f1d',
104
+ colorErrorBgFilledHover: '#441e1f',
105
+ colorErrorBgActive: '#5b2526',
106
+ colorErrorBorder: '#b33a37',
107
+ colorErrorBorderHover: '#d14642',
108
+ colorErrorHover: '#f05b56',
109
+ colorErrorActive: '#f89e9b',
110
+ colorErrorTextHover: '#d14642',
111
+ colorErrorText: '#f05b56',
112
+ colorErrorTextActive: '#f89e9b',
113
+ colorWarningBg: '#33210b',
114
+ colorWarningBgHover: '#4a2b10',
115
+ colorWarningBorder: '#a15317',
116
+ colorWarningBorderHover: '#b85e1a',
117
+ colorWarningHover: '#db7018',
118
+ colorWarningActive: '#f89e44',
119
+ colorWarningTextHover: '#db7018',
120
+ colorWarningText: '#f3871b',
121
+ colorWarningTextActive: '#f89e44',
122
+ colorInfoBg: '#002126',
123
+ colorInfoBgHover: '#00363f',
124
+ colorInfoBorder: '#006675',
125
+ colorInfoBorderHover: '#008093',
126
+ colorInfoHover: '#b8f0ff',
127
+ colorInfoActive: '#47b3ca',
128
+ colorInfoTextHover: '#b8f0ff',
129
+ colorInfoText: '#8ae8ff',
130
+ colorInfoTextActive: '#47b3ca',
131
+ colorLinkHover: '#3370eb',
132
+ colorLinkActive: '#75a4ff',
133
+ colorBgMask: 'rgba(0, 0, 0, 0.44)',
134
+ colorWhite: '#fff',
135
+ fontSizeSM: 12,
136
+ fontSizeLG: 16,
137
+ fontSizeXL: 18,
138
+ fontSizeHeading1: 30,
139
+ fontSizeHeading2: 24,
140
+ fontSizeHeading3: 20,
141
+ fontSizeHeading4: 18,
142
+ fontSizeHeading5: 16,
143
+ lineHeight: 1.5714285714285714,
144
+ lineHeightLG: 1.5,
145
+ lineHeightSM: 1.6666666666666667,
146
+ fontHeight: 22,
147
+ fontHeightLG: 24,
148
+ fontHeightSM: 20,
149
+ lineHeightHeading1: 1.2105263157894737,
150
+ lineHeightHeading2: 1.2666666666666666,
151
+ lineHeightHeading3: 1.3333333333333333,
152
+ lineHeightHeading4: 1.4,
153
+ lineHeightHeading5: 1.5,
154
+ sizeXXL: 48,
155
+ sizeXL: 32,
156
+ sizeLG: 24,
157
+ sizeMD: 20,
158
+ sizeMS: 16,
159
+ size: 16,
160
+ sizeSM: 12,
161
+ sizeXS: 8,
162
+ sizeXXS: 4,
163
+ controlHeightSM: 27,
164
+ controlHeightXS: 18,
165
+ controlHeightLG: 45,
166
+ motionDurationFast: '0.1s',
167
+ motionDurationMid: '0.2s',
168
+ motionDurationSlow: '0.3s',
169
+ lineWidthBold: 2,
170
+ borderRadiusOuter: 4,
171
+ colorPrimaryFill: 'rgba(255, 255, 255, 0.22)',
172
+ colorPrimaryFillSecondary: 'rgba(255, 255, 255, 0.16)',
173
+ colorPrimaryFillTertiary: 'rgba(255, 255, 255, 0.08)',
174
+ colorPrimaryFillQuaternary: 'rgba(255, 255, 255, 0.02)',
175
+ colorSuccessFill: 'rgba(177, 255, 0, 0.31)',
176
+ colorSuccessFillSecondary: 'rgba(168, 250, 0, 0.22)',
177
+ colorSuccessFillTertiary: 'rgba(154, 254, 0, 0.13)',
178
+ colorSuccessFillQuaternary: 'rgba(100, 200, 0, 0.02)',
179
+ colorWarningFill: 'rgba(252, 174, 0, 0.42)',
180
+ colorWarningFillSecondary: 'rgba(248, 166, 0, 0.29)',
181
+ colorWarningFillTertiary: 'rgba(247, 159, 0, 0.17)',
182
+ colorWarningFillQuaternary: 'rgba(233, 100, 0, 0.03)',
183
+ colorErrorFill: 'rgba(255, 0, 106, 0.47)',
184
+ colorErrorFillSecondary: 'rgba(253, 0, 103, 0.34)',
185
+ colorErrorFillTertiary: 'rgba(255, 0, 95, 0.22)',
186
+ colorErrorFillQuaternary: 'rgba(250, 0, 50, 0.06)',
187
+ colorInfoFill: 'rgba(0, 223, 254, 0.35)',
188
+ colorInfoFillSecondary: 'rgba(0, 216, 252, 0.25)',
189
+ colorInfoFillTertiary: 'rgba(0, 220, 253, 0.15)',
190
+ colorInfoFillQuaternary: 'rgba(0, 167, 200, 0.03)',
191
+ boxShadow: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
192
+ boxShadowSecondary: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
193
+ boxShadowTertiary: '\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ',
194
+ colorTextLightSolid: '#fff',
195
+ colorFillContent: 'rgba(255, 255, 255, 0.10)',
196
+ colorFillContentHover: 'rgba(255, 255, 255, 0.16)',
197
+ colorFillAlter: 'rgba(255, 255, 255, 0.02)',
198
+ colorBgContainerDisabled: 'rgba(255, 255, 255, 0.06)',
199
+ colorBorderBg: '#0d0d0d',
200
+ colorSplit: 'rgba(230,230,230,0.06)',
201
+ colorTextPlaceholder: '#555555',
202
+ colorTextDisabled: '#555555',
203
+ colorTextHeading: '#ffffff',
204
+ colorTextLabel: '#aaaaaa',
205
+ colorTextDescription: '#6f6f6f',
206
+ colorHighlight: '#f4416c',
207
+ colorBgTextHover: 'rgba(255, 255, 255, 0.10)',
208
+ colorBgTextActive: 'rgba(255, 255, 255, 0.16)',
209
+ colorIcon: '#6f6f6f',
210
+ colorIconHover: '#ffffff',
211
+ colorErrorOutline: 'rgba(57,0,21,0.97)',
212
+ colorWarningOutline: 'rgba(43,27,0,0.97)',
213
+ fontSizeIcon: 12,
214
+ lineWidthFocus: 3,
215
+ controlOutlineWidth: 2,
216
+ controlInteractiveSize: 18,
217
+ controlItemBgHover: 'rgba(255, 255, 255, 0.06)',
218
+ controlItemBgActive: '#111111',
219
+ controlItemBgActiveHover: '#333333',
220
+ controlItemBgActiveDisabled: 'rgba(255, 255, 255, 0.16)',
221
+ controlTmpOutline: 'rgba(255, 255, 255, 0.02)',
222
+ controlOutline: 'rgba(213,213,213,0.02)',
223
+ fontWeightStrong: 600,
224
+ opacityLoading: 0.65,
225
+ linkDecoration: 'none',
226
+ linkHoverDecoration: 'none',
227
+ linkFocusDecoration: 'none',
228
+ controlPaddingHorizontal: 12,
229
+ controlPaddingHorizontalSM: 8,
230
+ paddingXXS: 4,
231
+ paddingXS: 8,
232
+ paddingSM: 12,
233
+ padding: 16,
234
+ paddingMD: 20,
235
+ paddingLG: 24,
236
+ paddingXL: 32,
237
+ paddingContentHorizontalLG: 24,
238
+ paddingContentVerticalLG: 16,
239
+ paddingContentHorizontal: 16,
240
+ paddingContentVertical: 12,
241
+ paddingContentHorizontalSM: 16,
242
+ paddingContentVerticalSM: 8,
243
+ marginXXS: 4,
244
+ marginXS: 8,
245
+ marginSM: 12,
246
+ margin: 16,
247
+ marginMD: 20,
248
+ marginLG: 24,
249
+ marginXL: 32,
250
+ marginXXL: 48,
251
+ screenXS: 480,
252
+ screenXSMin: 480,
253
+ screenXSMax: 575,
254
+ screenSM: 576,
255
+ screenSMMin: 576,
256
+ screenSMMax: 767,
257
+ screenMD: 768,
258
+ screenMDMin: 768,
259
+ screenMDMax: 991,
260
+ screenLG: 992,
261
+ screenLGMin: 992,
262
+ screenLGMax: 1199,
263
+ screenXL: 1200,
264
+ screenXLMin: 1200,
265
+ screenXLMax: 1599,
266
+ screenXXL: 1600,
267
+ screenXXLMin: 1600,
268
+ boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',
269
+ boxShadowCard: '\n 0 1px 2px -2px rgba(0,0,0,0.16),\n 0 3px 6px 0 rgba(0,0,0,0.12),\n 0 5px 12px 4px rgba(0,0,0,0.09)\n ',
270
+ boxShadowDrawerRight: '\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
271
+ boxShadowDrawerLeft: '\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
272
+ boxShadowDrawerUp: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
273
+ boxShadowDrawerDown: '\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
274
+ boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
275
+ boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
276
+ boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
277
+ boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
278
+ Button: {
279
+ contentFontSizeSM: 12
280
+ },
281
+ DatePicker: {},
282
+ Input: {},
283
+ InputNumber: {},
284
+ Mentions: {},
285
+ Select: {},
286
+ themeMode: 'dark',
287
+ appearance: 'dark',
288
+ isDarkMode: true,
289
+ browserPrefers: 'light',
290
+ prefixCls: 'antd',
291
+ iconPrefixCls: 'anticon'
292
+ };
293
+ const defaultDarkTheme = {
294
+ cssVar: true,
295
+ token: {
296
+ ...darkToken,
297
+ ...defaultPrimaryPresets
298
+ },
299
+ components: {
300
+ Tag: {
301
+ lineType: 'none'
302
+ },
303
+ Button: {
304
+ dangerShadow: '0',
305
+ defaultShadow: '0',
306
+ primaryShadow: '0'
307
+ }
308
+ }
309
+ };
310
+ export { defaultDarkTheme };
@@ -0,0 +1,2 @@
1
+ import { type ThemeConfig } from 'antd';
2
+ export declare const defaultLightTheme: ThemeConfig;
@@ -0,0 +1,296 @@
1
+ const defaultPrimaryPresets = {
2
+ colorPrimary: '#1456f0',
3
+ colorPrimaryBg: '#f0f4ff',
4
+ colorPrimaryBgHover: '#e0e9ff',
5
+ colorPrimaryBorder: '#336df4',
6
+ colorPrimaryBorderHover: '#5083fb',
7
+ colorPrimaryHover: '#336df4',
8
+ colorPrimaryActive: '#0442d2',
9
+ colorPrimaryTextHover: '#336df4',
10
+ colorPrimaryText: '#1456f0',
11
+ colorPrimaryTextActive: '#0442d2',
12
+ colorPrimaryFill: 'rgba(0, 0, 0, 0.36)',
13
+ colorPrimaryFillSecondary: 'rgba(0, 0, 0, 0.22)',
14
+ colorPrimaryFillTertiary: 'rgba(0, 0, 0, 0.16)',
15
+ colorPrimaryFillQuaternary: 'rgba(0, 0, 0, 0.08)'
16
+ };
17
+ const lightToken = {
18
+ blue: '#7AA2FF',
19
+ purple: '#B791FA',
20
+ cyan: '#2DBEAB',
21
+ green: '#32A645',
22
+ magenta: '#EB78B8',
23
+ pink: '#EB2F96',
24
+ red: '#FF7570',
25
+ orange: '#FF811A',
26
+ yellow: '#FFC60A',
27
+ volcano: '#FFE928',
28
+ geekblue: '#25B0E7',
29
+ gold: '#DE81DE',
30
+ lime: '#91AD00',
31
+ colorSuccess: '#32a645',
32
+ colorError: '#f54a45',
33
+ colorInfo: '#1456f0',
34
+ colorLink: '#1456f0',
35
+ colorTextBase: '#1f2329',
36
+ colorBgBase: '#fff',
37
+ fontFamily: '"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
38
+ fontFamilyCode: 'Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
39
+ lineWidth: 1,
40
+ lineType: 'solid',
41
+ motionUnit: 0.1,
42
+ motionBase: 0,
43
+ motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
44
+ motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
45
+ motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
46
+ motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
47
+ motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
48
+ motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
49
+ motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
50
+ motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
51
+ borderRadius: 6,
52
+ sizePopupArrow: 16,
53
+ controlHeight: 36,
54
+ zIndexBase: 0,
55
+ zIndexPopupBase: 1000,
56
+ opacityImage: 1,
57
+ wireframe: false,
58
+ motion: true,
59
+ borderRadiusLG: 8,
60
+ borderRadiusSM: 4,
61
+ colorText: '#1f2329',
62
+ colorTextSecondary: '#646a73',
63
+ colorTextTertiary: '#8f959e',
64
+ colorTextQuaternary: '#bbbfc4',
65
+ colorFill: '#1f23291f',
66
+ colorFillSecondary: '#1f23290f',
67
+ colorFillTertiary: '#1f232908',
68
+ colorFillQuaternary: '#1f232905',
69
+ colorBgSolid: 'rgb(0,0,0)',
70
+ colorBgSolidHover: 'rgba(0,0,0,0.75)',
71
+ colorBgSolidActive: 'rgba(0,0,0,0.95)',
72
+ colorBgSpotlight: '#eff0f1',
73
+ colorBgBlur: 'transparent',
74
+ colorBorder: '#d0d3d6',
75
+ colorBorderSecondary: '#dee0e3',
76
+ colorSuccessBg: '#e4fae1',
77
+ colorSuccessBgHover: '#d0f5ce',
78
+ colorSuccessBorder: '#32a645',
79
+ colorSuccessBorderHover: '#258832',
80
+ colorSuccessHover: '#71c179',
81
+ colorSuccessActive: '#258832',
82
+ colorSuccessTextHover: '#35bd4b',
83
+ colorSuccessText: '#32a645',
84
+ colorSuccessTextActive: '#258832',
85
+ colorErrorBg: '#fef0f0',
86
+ colorErrorBgHover: '#fee3e2',
87
+ colorErrorBgFilledHover: '#ffdfdc',
88
+ colorErrorBgActive: '#ffccc7',
89
+ colorErrorBorder: '#f54a45',
90
+ colorErrorBorderHover: '#e22e28',
91
+ colorErrorHover: '#f54a45',
92
+ colorErrorActive: '#a53716',
93
+ colorErrorTextHover: '#ff7570',
94
+ colorErrorText: '#f54a45',
95
+ colorErrorTextActive: '#de332c',
96
+ colorWarningBg: '#fff3e5',
97
+ colorWarningBgHover: '#fee7cd',
98
+ colorWarningBorder: '#ed6d0c',
99
+ colorWarningBorderHover: '#c25705',
100
+ colorWarningHover: '#ffc368',
101
+ colorWarningActive: '#c25705',
102
+ colorWarningTextHover: '#ff9d4c',
103
+ colorWarningText: '#ff811a',
104
+ colorWarningTextActive: '#ed6d0c',
105
+ colorInfoBg: '#fcfbff',
106
+ colorInfoBgHover: '#f1f5ff',
107
+ colorInfoBorder: '#cedfff',
108
+ colorInfoBorderHover: '#e2ebff',
109
+ colorInfoHover: '#4c90ff',
110
+ colorInfoActive: '#005ae0',
111
+ colorInfoTextHover: '#4c90ff',
112
+ colorInfoText: '#0072f5',
113
+ colorInfoTextActive: '#005ae0',
114
+ colorLinkHover: '#336df4',
115
+ colorLinkActive: '#0442d2',
116
+ colorBgMask: '#1f232966',
117
+ colorWhite: '#fff',
118
+ fontSizeSM: 12,
119
+ fontSizeLG: 16,
120
+ fontSizeXL: 18,
121
+ fontSizeHeading1: 30,
122
+ fontSizeHeading2: 24,
123
+ fontSizeHeading3: 20,
124
+ fontSizeHeading4: 18,
125
+ fontSizeHeading5: 16,
126
+ lineHeight: 1.5714285714285714,
127
+ lineHeightLG: 1.5,
128
+ lineHeightSM: 1.6666666666666667,
129
+ fontHeight: 22,
130
+ fontHeightLG: 24,
131
+ fontHeightSM: 20,
132
+ lineHeightHeading1: 1.2105263157894737,
133
+ lineHeightHeading2: 1.2666666666666666,
134
+ lineHeightHeading3: 1.3333333333333333,
135
+ lineHeightHeading4: 1.4,
136
+ lineHeightHeading5: 1.5,
137
+ sizeXXL: 48,
138
+ sizeXL: 32,
139
+ sizeLG: 24,
140
+ sizeMD: 20,
141
+ sizeMS: 16,
142
+ size: 16,
143
+ sizeSM: 12,
144
+ sizeXS: 8,
145
+ sizeXXS: 4,
146
+ controlHeightSM: 27,
147
+ controlHeightXS: 18,
148
+ controlHeightLG: 45,
149
+ motionDurationFast: '0.1s',
150
+ motionDurationMid: '0.2s',
151
+ motionDurationSlow: '0.3s',
152
+ lineWidthBold: 2,
153
+ borderRadiusOuter: 4,
154
+ colorSuccessFill: 'rgba(40, 174, 1, 0.26)',
155
+ colorSuccessFillSecondary: 'rgba(60, 190, 10, 0.14)',
156
+ colorSuccessFillTertiary: 'rgba(84, 205, 12, 0.10)',
157
+ colorSuccessFillQuaternary: 'rgba(117, 230, 5, 0.06)',
158
+ colorWarningFill: 'rgba(255, 134, 5, 0.20)',
159
+ colorWarningFillSecondary: 'rgba(255, 117, 5, 0.16)',
160
+ colorWarningFillTertiary: 'rgba(255,155,55,0.08)',
161
+ colorWarningFillQuaternary: 'rgba(255,145,55,0.04)',
162
+ colorErrorFill: 'rgba(255, 42, 3, 0.20)',
163
+ colorErrorFillSecondary: 'rgba(255, 35, 2, 0.12)',
164
+ colorErrorFillTertiary: 'rgba(255, 44, 11, 0.06)',
165
+ colorErrorFillQuaternary: 'rgba(255, 55, 30, 0.04)',
166
+ colorInfoFill: 'rgba(10, 95, 255, 0.2)',
167
+ colorInfoFillSecondary: 'rgba(13, 88, 255, 0.12)',
168
+ colorInfoFillTertiary: 'rgba(22, 88, 255, 0.06)',
169
+ colorInfoFillQuaternary: 'rgba(105, 55, 255, 0.02)',
170
+ boxShadow: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
171
+ boxShadowSecondary: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
172
+ boxShadowTertiary: '\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ',
173
+ colorTextLightSolid: '#fff',
174
+ colorFillContent: 'rgba(0, 0, 0, 0.06)',
175
+ colorFillContentHover: 'rgba(0, 0, 0, 0.12)',
176
+ colorFillAlter: 'rgba(0, 0, 0, 0.015)',
177
+ colorBgContainerDisabled: 'rgba(0, 0, 0, 0.03)',
178
+ colorBorderBg: '#ffffff',
179
+ colorSplit: 'rgba(12,12,12,0.07)',
180
+ colorTextPlaceholder: '#bbbbbb',
181
+ colorTextDisabled: '#bbbbbb',
182
+ colorTextHeading: '#080808',
183
+ colorTextLabel: '#666666',
184
+ colorTextDescription: '#999999',
185
+ colorHighlight: '#ec5e41',
186
+ colorBgTextHover: 'rgba(0, 0, 0, 0.06)',
187
+ colorBgTextActive: 'rgba(0, 0, 0, 0.12)',
188
+ colorIcon: '#999999',
189
+ colorIconHover: '#080808',
190
+ colorErrorOutline: 'rgba(255,55,30,0.04)',
191
+ colorWarningOutline: 'rgba(255,55,255,0.01)',
192
+ fontSizeIcon: 12,
193
+ lineWidthFocus: 3,
194
+ controlOutlineWidth: 2,
195
+ controlInteractiveSize: 18,
196
+ controlItemBgHover: 'rgba(0, 0, 0, 0.03)',
197
+ controlItemBgActive: '#f5f5f5',
198
+ controlItemBgActiveHover: '#eeeeee',
199
+ controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.12)',
200
+ controlTmpOutline: 'rgba(0, 0, 0, 0.015)',
201
+ controlOutline: 'rgba(5,5,5,0.04)',
202
+ fontWeightStrong: 600,
203
+ opacityLoading: 0.65,
204
+ linkDecoration: 'none',
205
+ linkHoverDecoration: 'none',
206
+ linkFocusDecoration: 'none',
207
+ controlPaddingHorizontal: 12,
208
+ controlPaddingHorizontalSM: 8,
209
+ paddingXXS: 4,
210
+ paddingXS: 8,
211
+ paddingSM: 12,
212
+ padding: 16,
213
+ paddingMD: 20,
214
+ paddingLG: 24,
215
+ paddingXL: 32,
216
+ paddingContentHorizontalLG: 24,
217
+ paddingContentVerticalLG: 16,
218
+ paddingContentHorizontal: 16,
219
+ paddingContentVertical: 12,
220
+ paddingContentHorizontalSM: 16,
221
+ paddingContentVerticalSM: 8,
222
+ marginXXS: 4,
223
+ marginXS: 8,
224
+ marginSM: 12,
225
+ margin: 16,
226
+ marginMD: 20,
227
+ marginLG: 24,
228
+ marginXL: 32,
229
+ marginXXL: 48,
230
+ screenXS: 480,
231
+ screenXSMin: 480,
232
+ screenXSMax: 575,
233
+ screenSM: 576,
234
+ screenSMMin: 576,
235
+ screenSMMax: 767,
236
+ screenMD: 768,
237
+ screenMDMin: 768,
238
+ screenMDMax: 991,
239
+ screenLG: 992,
240
+ screenLGMin: 992,
241
+ screenLGMax: 1199,
242
+ screenXL: 1200,
243
+ screenXLMin: 1200,
244
+ screenXLMax: 1599,
245
+ screenXXL: 1600,
246
+ screenXXLMin: 1600,
247
+ boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',
248
+ boxShadowCard: '\n 0 1px 2px -2px rgba(0,0,0,0.16),\n 0 3px 6px 0 rgba(0,0,0,0.12),\n 0 5px 12px 4px rgba(0,0,0,0.09)\n ',
249
+ boxShadowDrawerRight: '\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
250
+ boxShadowDrawerLeft: '\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
251
+ boxShadowDrawerUp: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
252
+ boxShadowDrawerDown: '\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
253
+ boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
254
+ boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
255
+ boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
256
+ boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
257
+ Button: {
258
+ contentFontSizeSM: 12
259
+ },
260
+ DatePicker: {},
261
+ Input: {},
262
+ InputNumber: {},
263
+ Mentions: {},
264
+ Select: {},
265
+ themeMode: 'light',
266
+ appearance: 'light',
267
+ isDarkMode: false,
268
+ browserPrefers: 'light',
269
+ prefixCls: 'antd',
270
+ iconPrefixCls: 'anticon',
271
+ colorPrimaryBgHover: '#e0e9ff',
272
+ colorWarning: '#ed6d0c',
273
+ colorBgLayout: '#f5f6f7'
274
+ };
275
+ const defaultLightTheme = {
276
+ cssVar: true,
277
+ token: {
278
+ ...lightToken,
279
+ ...defaultPrimaryPresets
280
+ },
281
+ components: {
282
+ Tag: {
283
+ lineType: 'none',
284
+ algorithm: true
285
+ },
286
+ Tooltip: {
287
+ colorBgSpotlight: 'rgb(31,35,41)'
288
+ },
289
+ Button: {
290
+ dangerShadow: '0',
291
+ defaultShadow: '0',
292
+ primaryShadow: '0'
293
+ }
294
+ }
295
+ };
296
+ export { defaultLightTheme };
@@ -0,0 +1 @@
1
+ export { defaultUIConfig, type UIComponentConfig, } from '@lark-apaas/miaoda-inspector';
@@ -0,0 +1,2 @@
1
+ import { defaultUIConfig } from "@lark-apaas/miaoda-inspector";
2
+ export { defaultUIConfig };
@@ -0,0 +1,20 @@
1
+ import { type ThemeConfig } from 'antd';
2
+ import { UIComponentConfig } from './ui-config';
3
+ export type IThemeMode = 'dark' | 'light' | 'system';
4
+ export interface IThemeTokenMeta {
5
+ /**
6
+ * 品牌色
7
+ */
8
+ colorPrimary: string;
9
+ /**
10
+ * 边框圆角
11
+ */
12
+ borderRadius: number;
13
+ /**
14
+ * 疏密度(间距)
15
+ */
16
+ spacing: number;
17
+ }
18
+ export declare const generateTailwindRadiusToken: (radiusRemValue: number) => UIComponentConfig;
19
+ export declare function generateLightTheme(override?: Partial<IThemeTokenMeta>): ThemeConfig;
20
+ export declare function generateDarkTheme(override?: Partial<IThemeTokenMeta>): ThemeConfig;