@yoka-ui/ui 1.0.10-test → 1.1.0

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 (385) hide show
  1. package/@Docs-yoka/exports.generated.md +68 -62
  2. package/README.md +40 -189
  3. package/dist/es/assets/image/skills.zip +0 -0
  4. package/dist/es/business/AiChat/index.d.ts +3 -3
  5. package/dist/es/business/AiChat/index.js +331 -119
  6. package/dist/es/business/AiChat/index.js.map +3 -3
  7. package/dist/es/business/AiChat/intentRecognizer.js.map +1 -1
  8. package/dist/es/business/AiChat/navigationManager.js +6 -6
  9. package/dist/es/business/AiChat/navigationManager.js.map +2 -2
  10. package/dist/es/business/AiChat/sse.d.ts +15 -0
  11. package/dist/es/business/AiChat/sse.js +118 -7
  12. package/dist/es/business/AiChat/sse.js.map +2 -2
  13. package/dist/es/business/AiChat/type.d.ts +22 -23
  14. package/dist/es/business/AiChat/useAiChat.js +105 -75
  15. package/dist/es/business/AiChat/useAiChat.js.map +3 -3
  16. package/dist/es/business/AiChat/useTaskWorkflow.d.ts +1 -2
  17. package/dist/es/business/AiChat/useTaskWorkflow.js +2 -36
  18. package/dist/es/business/AiChat/useTaskWorkflow.js.map +2 -2
  19. package/dist/es/business/DrawerPageInfo/index.js.map +1 -1
  20. package/dist/es/business/Editor/index.d.ts +1 -1
  21. package/dist/es/business/Editor/index.js.map +2 -2
  22. package/dist/es/business/Empty/index.js +1 -1
  23. package/dist/es/business/Empty/index.js.map +1 -1
  24. package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +2 -2
  25. package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
  26. package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +3 -3
  27. package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
  28. package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +2 -2
  29. package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
  30. package/dist/es/business/ModCommonFilter/index.d.ts +1 -1
  31. package/dist/es/business/ModCommonFilter/index.js.map +2 -2
  32. package/dist/es/business/YkCharts/Area.d.ts +18 -0
  33. package/dist/es/business/YkCharts/Area.js +336 -0
  34. package/dist/es/business/YkCharts/Area.js.map +7 -0
  35. package/dist/es/business/YkCharts/Bar.d.ts +21 -0
  36. package/dist/es/business/YkCharts/Bar.js +316 -0
  37. package/dist/es/business/YkCharts/Bar.js.map +7 -0
  38. package/dist/es/business/YkCharts/BarProperty.d.ts +21 -0
  39. package/dist/es/business/YkCharts/BarProperty.js +357 -0
  40. package/dist/es/business/YkCharts/BarProperty.js.map +7 -0
  41. package/dist/es/business/YkCharts/BarTotal.d.ts +21 -0
  42. package/dist/es/business/YkCharts/BarTotal.js +292 -0
  43. package/dist/es/business/YkCharts/BarTotal.js.map +7 -0
  44. package/dist/es/business/YkCharts/Line.d.ts +21 -0
  45. package/dist/es/business/YkCharts/Line.js +342 -0
  46. package/dist/es/business/YkCharts/Line.js.map +7 -0
  47. package/dist/es/business/YkCharts/Pie.d.ts +19 -0
  48. package/dist/es/business/YkCharts/Pie.js +107 -0
  49. package/dist/es/business/YkCharts/Pie.js.map +7 -0
  50. package/dist/es/business/YkCharts/PieProperty.d.ts +18 -0
  51. package/dist/es/business/YkCharts/PieProperty.js +180 -0
  52. package/dist/es/business/YkCharts/PieProperty.js.map +7 -0
  53. package/dist/es/business/YkCharts/Pies.d.ts +26 -0
  54. package/dist/es/business/YkCharts/Pies.js +352 -0
  55. package/dist/es/business/YkCharts/Pies.js.map +7 -0
  56. package/dist/es/business/YkCharts/constants.d.ts +1 -0
  57. package/dist/es/business/YkCharts/constants.js +47 -0
  58. package/dist/es/business/YkCharts/constants.js.map +7 -0
  59. package/dist/es/business/YkCharts/hooks.d.ts +4 -0
  60. package/dist/es/business/YkCharts/hooks.js +37 -0
  61. package/dist/es/business/YkCharts/hooks.js.map +7 -0
  62. package/dist/es/business/YkCharts/index.d.ts +9 -0
  63. package/dist/es/business/YkCharts/index.js +20 -0
  64. package/dist/es/business/YkCharts/index.js.map +7 -0
  65. package/dist/es/business/YkCharts/index.module.less +164 -0
  66. package/dist/es/business/YkCharts/tooltip.less +92 -0
  67. package/dist/es/business/YkCharts/transformData.js +16 -0
  68. package/dist/es/business/YkCharts/transformData.js.map +7 -0
  69. package/dist/es/business/YkCharts/typing.d.ts +74 -0
  70. package/dist/es/business/YkCharts/typing.js +1 -0
  71. package/dist/es/business/YkCharts/typing.js.map +7 -0
  72. package/dist/es/business/YkCharts/utils.d.ts +4 -0
  73. package/dist/es/business/YkCharts/utils.js +109 -0
  74. package/dist/es/business/YkCharts/utils.js.map +7 -0
  75. package/dist/es/business/YkCharts/variables.less +13 -0
  76. package/dist/es/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
  77. package/dist/es/business/YkLoginModule/SmsLoginForm.js +178 -0
  78. package/dist/es/business/YkLoginModule/SmsLoginForm.js.map +7 -0
  79. package/dist/es/business/YkLoginModule/index.d.ts +48 -0
  80. package/dist/es/business/YkLoginModule/index.js +198 -0
  81. package/dist/es/business/YkLoginModule/index.js.map +7 -0
  82. package/dist/es/business/YkLoginModule/styles.module.less +169 -0
  83. package/dist/es/business/YkPorjectSelect/index.d.ts +1 -1
  84. package/dist/es/business/YkPorjectSelect/index.js +2 -2
  85. package/dist/es/business/YkPorjectSelect/index.js.map +2 -2
  86. package/dist/es/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
  87. package/dist/es/business/YkSqlEdit/index.d.ts +20 -0
  88. package/dist/es/business/YkSqlEdit/index.js +180 -0
  89. package/dist/es/business/YkSqlEdit/index.js.map +7 -0
  90. package/dist/es/business/YkSqlEdit/sql-language.d.ts +11 -0
  91. package/dist/es/business/YkSqlEdit/sql-language.js +1460 -0
  92. package/dist/es/business/YkSqlEdit/sql-language.js.map +7 -0
  93. package/dist/es/components/DebounceInput/index.js.map +2 -2
  94. package/dist/es/components/MultipleSelect/index.d.ts +14 -0
  95. package/dist/es/components/MultipleSelect/index.js +1 -1
  96. package/dist/es/components/MultipleSelect/index.js.map +2 -2
  97. package/dist/es/components/RefreshButton/index.js.map +2 -2
  98. package/dist/es/components/SearchWithHistory/index.js +1 -1
  99. package/dist/es/components/SearchWithHistory/index.js.map +2 -2
  100. package/dist/es/components/TextWithToolTip/index.d.ts +1 -1
  101. package/dist/es/components/TextWithToolTip/index.js.map +2 -2
  102. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
  103. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
  104. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
  105. package/dist/es/components/TreeTransfer/index.d.ts +1 -24
  106. package/dist/es/components/TreeTransfer/index.js +8 -8
  107. package/dist/es/components/TreeTransfer/index.js.map +2 -2
  108. package/dist/es/components/TreeTransfer/utils/index.d.ts +1 -1
  109. package/dist/es/components/TreeTransfer/utils/index.js.map +2 -2
  110. package/dist/es/components/YKMarkdown/index.d.ts +11 -0
  111. package/dist/es/components/YKMarkdown/index.js +236 -0
  112. package/dist/es/components/YKMarkdown/index.js.map +7 -0
  113. package/dist/es/components/YKMarkdown/index.module.less +83 -0
  114. package/dist/es/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
  115. package/dist/es/components/YkDateRangePicker/index.d.ts +9 -1
  116. package/dist/es/components/YkDateRangePicker/index.js +127 -61
  117. package/dist/es/components/YkDateRangePicker/index.js.map +2 -2
  118. package/dist/es/components/YkDateRangePicker/index.module.less +33 -9
  119. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
  120. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
  121. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
  122. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
  123. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +23 -3
  124. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
  125. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
  126. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
  127. package/dist/es/components/YkRangeDateWithVS/index.d.ts +2 -2
  128. package/dist/es/components/YkRangeDateWithVS/index.js.map +2 -2
  129. package/dist/es/components/YkRangeDateWithVS/index.module.less +22 -4
  130. package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +1 -1
  131. package/dist/es/components/YkRangeTimeWithRecent/index.js.map +2 -2
  132. package/dist/es/creative/ArcCheckbox/index.d.ts +12 -0
  133. package/dist/es/creative/ArcCheckbox/index.js +49 -0
  134. package/dist/es/creative/ArcCheckbox/index.js.map +7 -0
  135. package/dist/es/creative/ArcCheckbox/index.module.less +102 -0
  136. package/dist/es/creative/ButtonRadioWithInfo/index.js.map +1 -1
  137. package/dist/es/creative/ButtonWithProgress/index.d.ts +1 -1
  138. package/dist/es/creative/ButtonWithProgress/index.js.map +2 -2
  139. package/dist/es/creative/GlassSegmentedRadio/index.d.ts +24 -0
  140. package/dist/es/creative/GlassSegmentedRadio/index.js +75 -0
  141. package/dist/es/creative/GlassSegmentedRadio/index.js.map +7 -0
  142. package/dist/es/creative/GlassSegmentedRadio/index.module.less +241 -0
  143. package/dist/es/creative/SkillsWriter/index.d.ts +3 -0
  144. package/dist/es/creative/SkillsWriter/index.js +191 -0
  145. package/dist/es/creative/SkillsWriter/index.js.map +7 -0
  146. package/dist/es/creative/SkillsWriter/index.module.less +21 -0
  147. package/dist/es/index.d.ts +32 -24
  148. package/dist/es/index.js +90 -80
  149. package/dist/es/index.js.map +2 -2
  150. package/dist/es/index.less +44 -0
  151. package/dist/es/layout/FlexGrid/index.d.ts +1 -1
  152. package/dist/es/layout/FlexGrid/index.js.map +2 -2
  153. package/dist/es/layout/YkContainer/index.js.map +1 -1
  154. package/dist/es/layout/YkDrawer/index.d.ts +1 -1
  155. package/dist/es/layout/YkDrawer/index.js.map +2 -2
  156. package/dist/es/ui/LabelSelect/demo.js +1 -1
  157. package/dist/es/ui/LabelSelect/demo.js.map +2 -2
  158. package/dist/es/ui/LabelSelect/index.d.ts +1 -1
  159. package/dist/es/ui/LabelSelect/index.js +1 -1
  160. package/dist/es/ui/LabelSelect/index.js.map +2 -2
  161. package/dist/es/ui/LogicOperator/index.d.ts +1 -1
  162. package/dist/es/ui/LogicOperator/index.js.map +2 -2
  163. package/dist/es/ui/YkButton/index.d.ts +1 -1
  164. package/dist/es/ui/YkButton/index.js.map +2 -2
  165. package/dist/es/ui/YkCard/index.d.ts +1 -1
  166. package/dist/es/ui/YkCard/index.js +1 -1
  167. package/dist/es/ui/YkCard/index.js.map +2 -2
  168. package/dist/es/ui/YkCheckbox/index.d.ts +1 -1
  169. package/dist/es/ui/YkCheckbox/index.js.map +2 -2
  170. package/dist/es/ui/YkDescriptions/index.d.ts +1 -1
  171. package/dist/es/ui/YkDescriptions/index.js.map +2 -2
  172. package/dist/es/ui/YkPagination/index.d.ts +1 -1
  173. package/dist/es/ui/YkPagination/index.js.map +2 -2
  174. package/dist/es/ui/YkRadio/index.d.ts +1 -1
  175. package/dist/es/ui/YkRadio/index.js.map +2 -2
  176. package/dist/es/ui/YkSegmented/index.d.ts +1 -1
  177. package/dist/es/ui/YkSegmented/index.js.map +2 -2
  178. package/dist/es/ui/YkSelect/index.d.ts +1 -1
  179. package/dist/es/ui/YkSelect/index.js.map +2 -2
  180. package/dist/es/ui/YkSpin/index.d.ts +1 -1
  181. package/dist/es/ui/YkSpin/index.js.map +2 -2
  182. package/dist/es/ui/YkStatistic/index.d.ts +1 -1
  183. package/dist/es/ui/YkStatistic/index.js.map +2 -2
  184. package/dist/es/ui/YkSwitch/index.d.ts +1 -1
  185. package/dist/es/ui/YkSwitch/index.js.map +2 -2
  186. package/dist/es/ui/YkTabs/index.d.ts +1 -1
  187. package/dist/es/ui/YkTabs/index.js.map +2 -2
  188. package/dist/es/ui/YkTooltip/index.d.ts +1 -1
  189. package/dist/es/ui/YkTooltip/index.js.map +2 -2
  190. package/dist/es/utils/styleUtils.js.map +2 -2
  191. package/dist/es/utils/ykStorybookDoc.d.ts +15 -0
  192. package/dist/es/utils/ykStorybookDoc.js +24 -2
  193. package/dist/es/utils/ykStorybookDoc.js.map +2 -2
  194. package/dist/lib/assets/image/skills.zip +0 -0
  195. package/dist/lib/business/AiChat/index.d.ts +3 -3
  196. package/dist/lib/business/AiChat/index.js +320 -111
  197. package/dist/lib/business/AiChat/index.js.map +3 -3
  198. package/dist/lib/business/AiChat/intentRecognizer.js.map +1 -1
  199. package/dist/lib/business/AiChat/navigationManager.js +6 -6
  200. package/dist/lib/business/AiChat/navigationManager.js.map +2 -2
  201. package/dist/lib/business/AiChat/sse.d.ts +15 -0
  202. package/dist/lib/business/AiChat/sse.js +117 -7
  203. package/dist/lib/business/AiChat/sse.js.map +2 -2
  204. package/dist/lib/business/AiChat/type.d.ts +22 -23
  205. package/dist/lib/business/AiChat/type.js.map +1 -1
  206. package/dist/lib/business/AiChat/useAiChat.js +104 -74
  207. package/dist/lib/business/AiChat/useAiChat.js.map +3 -3
  208. package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +1 -2
  209. package/dist/lib/business/AiChat/useTaskWorkflow.js +0 -34
  210. package/dist/lib/business/AiChat/useTaskWorkflow.js.map +2 -2
  211. package/dist/lib/business/DrawerPageInfo/index.js.map +1 -1
  212. package/dist/lib/business/Editor/index.d.ts +1 -1
  213. package/dist/lib/business/Editor/index.js.map +2 -2
  214. package/dist/lib/business/Empty/index.js +1 -1
  215. package/dist/lib/business/Empty/index.js.map +1 -1
  216. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +3 -3
  217. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
  218. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +4 -4
  219. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
  220. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +3 -3
  221. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
  222. package/dist/lib/business/ModCommonFilter/index.d.ts +1 -1
  223. package/dist/lib/business/ModCommonFilter/index.js.map +2 -2
  224. package/dist/lib/business/YkCharts/Area.d.ts +18 -0
  225. package/dist/lib/business/YkCharts/Area.js +346 -0
  226. package/dist/lib/business/YkCharts/Area.js.map +7 -0
  227. package/dist/lib/business/YkCharts/Bar.d.ts +21 -0
  228. package/dist/lib/business/YkCharts/Bar.js +323 -0
  229. package/dist/lib/business/YkCharts/Bar.js.map +7 -0
  230. package/dist/lib/business/YkCharts/BarProperty.d.ts +21 -0
  231. package/dist/lib/business/YkCharts/BarProperty.js +370 -0
  232. package/dist/lib/business/YkCharts/BarProperty.js.map +7 -0
  233. package/dist/lib/business/YkCharts/BarTotal.d.ts +21 -0
  234. package/dist/lib/business/YkCharts/BarTotal.js +298 -0
  235. package/dist/lib/business/YkCharts/BarTotal.js.map +7 -0
  236. package/dist/lib/business/YkCharts/Line.d.ts +21 -0
  237. package/dist/lib/business/YkCharts/Line.js +349 -0
  238. package/dist/lib/business/YkCharts/Line.js.map +7 -0
  239. package/dist/lib/business/YkCharts/Pie.d.ts +19 -0
  240. package/dist/lib/business/YkCharts/Pie.js +117 -0
  241. package/dist/lib/business/YkCharts/Pie.js.map +7 -0
  242. package/dist/lib/business/YkCharts/PieProperty.d.ts +18 -0
  243. package/dist/lib/business/YkCharts/PieProperty.js +193 -0
  244. package/dist/lib/business/YkCharts/PieProperty.js.map +7 -0
  245. package/dist/lib/business/YkCharts/Pies.d.ts +26 -0
  246. package/dist/lib/business/YkCharts/Pies.js +341 -0
  247. package/dist/lib/business/YkCharts/Pies.js.map +7 -0
  248. package/dist/lib/business/YkCharts/constants.d.ts +1 -0
  249. package/dist/lib/business/YkCharts/constants.js +71 -0
  250. package/dist/lib/business/YkCharts/constants.js.map +7 -0
  251. package/dist/lib/business/YkCharts/hooks.d.ts +4 -0
  252. package/dist/lib/business/YkCharts/hooks.js +62 -0
  253. package/dist/lib/business/YkCharts/hooks.js.map +7 -0
  254. package/dist/lib/business/YkCharts/index.d.ts +9 -0
  255. package/dist/lib/business/YkCharts/index.js +61 -0
  256. package/dist/lib/business/YkCharts/index.js.map +7 -0
  257. package/dist/lib/business/YkCharts/index.module.less +164 -0
  258. package/dist/lib/business/YkCharts/tooltip.less +92 -0
  259. package/dist/lib/business/YkCharts/transformData.js +40 -0
  260. package/dist/lib/business/YkCharts/transformData.js.map +7 -0
  261. package/dist/lib/business/YkCharts/typing.d.ts +74 -0
  262. package/dist/lib/business/YkCharts/typing.js +18 -0
  263. package/dist/lib/business/YkCharts/typing.js.map +7 -0
  264. package/dist/lib/business/YkCharts/utils.d.ts +4 -0
  265. package/dist/lib/business/YkCharts/utils.js +143 -0
  266. package/dist/lib/business/YkCharts/utils.js.map +7 -0
  267. package/dist/lib/business/YkCharts/variables.less +13 -0
  268. package/dist/lib/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
  269. package/dist/lib/business/YkLoginModule/SmsLoginForm.js +171 -0
  270. package/dist/lib/business/YkLoginModule/SmsLoginForm.js.map +7 -0
  271. package/dist/lib/business/YkLoginModule/index.d.ts +48 -0
  272. package/dist/lib/business/YkLoginModule/index.js +206 -0
  273. package/dist/lib/business/YkLoginModule/index.js.map +7 -0
  274. package/dist/lib/business/YkLoginModule/styles.module.less +169 -0
  275. package/dist/lib/business/YkPorjectSelect/index.d.ts +1 -1
  276. package/dist/lib/business/YkPorjectSelect/index.js +3 -3
  277. package/dist/lib/business/YkPorjectSelect/index.js.map +2 -2
  278. package/dist/lib/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
  279. package/dist/lib/business/YkSqlEdit/index.d.ts +20 -0
  280. package/dist/lib/business/YkSqlEdit/index.js +202 -0
  281. package/dist/lib/business/YkSqlEdit/index.js.map +7 -0
  282. package/dist/lib/business/YkSqlEdit/sql-language.d.ts +11 -0
  283. package/dist/lib/business/YkSqlEdit/sql-language.js +1493 -0
  284. package/dist/lib/business/YkSqlEdit/sql-language.js.map +7 -0
  285. package/dist/lib/components/DebounceInput/index.js.map +2 -2
  286. package/dist/lib/components/MultipleSelect/index.d.ts +14 -0
  287. package/dist/lib/components/MultipleSelect/index.js +1 -1
  288. package/dist/lib/components/MultipleSelect/index.js.map +2 -2
  289. package/dist/lib/components/RefreshButton/index.js.map +2 -2
  290. package/dist/lib/components/SearchWithHistory/index.js +1 -1
  291. package/dist/lib/components/SearchWithHistory/index.js.map +2 -2
  292. package/dist/lib/components/TextWithToolTip/index.d.ts +1 -1
  293. package/dist/lib/components/TextWithToolTip/index.js.map +2 -2
  294. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
  295. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
  296. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
  297. package/dist/lib/components/TreeTransfer/index.d.ts +1 -24
  298. package/dist/lib/components/TreeTransfer/index.js +3 -3
  299. package/dist/lib/components/TreeTransfer/index.js.map +2 -2
  300. package/dist/lib/components/TreeTransfer/utils/index.d.ts +1 -1
  301. package/dist/lib/components/TreeTransfer/utils/index.js.map +2 -2
  302. package/dist/lib/components/YKMarkdown/index.d.ts +11 -0
  303. package/dist/lib/components/YKMarkdown/index.js +188 -0
  304. package/dist/lib/components/YKMarkdown/index.js.map +7 -0
  305. package/dist/lib/components/YKMarkdown/index.module.less +83 -0
  306. package/dist/lib/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
  307. package/dist/lib/components/YkDateRangePicker/index.d.ts +9 -1
  308. package/dist/lib/components/YkDateRangePicker/index.js +127 -61
  309. package/dist/lib/components/YkDateRangePicker/index.js.map +2 -2
  310. package/dist/lib/components/YkDateRangePicker/index.module.less +33 -9
  311. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
  312. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
  313. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
  314. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
  315. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +22 -2
  316. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
  317. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
  318. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
  319. package/dist/lib/components/YkRangeDateWithVS/index.d.ts +2 -2
  320. package/dist/lib/components/YkRangeDateWithVS/index.js.map +2 -2
  321. package/dist/lib/components/YkRangeDateWithVS/index.module.less +22 -4
  322. package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +1 -1
  323. package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +2 -2
  324. package/dist/lib/creative/ArcCheckbox/index.d.ts +12 -0
  325. package/dist/lib/creative/ArcCheckbox/index.js +50 -0
  326. package/dist/lib/creative/ArcCheckbox/index.js.map +7 -0
  327. package/dist/lib/creative/ArcCheckbox/index.module.less +102 -0
  328. package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +1 -1
  329. package/dist/lib/creative/ButtonWithProgress/index.d.ts +1 -1
  330. package/dist/lib/creative/ButtonWithProgress/index.js.map +2 -2
  331. package/dist/lib/creative/GlassSegmentedRadio/index.d.ts +24 -0
  332. package/dist/lib/creative/GlassSegmentedRadio/index.js +78 -0
  333. package/dist/lib/creative/GlassSegmentedRadio/index.js.map +7 -0
  334. package/dist/lib/creative/GlassSegmentedRadio/index.module.less +241 -0
  335. package/dist/lib/creative/SkillsWriter/index.d.ts +3 -0
  336. package/dist/lib/creative/SkillsWriter/index.js +200 -0
  337. package/dist/lib/creative/SkillsWriter/index.js.map +7 -0
  338. package/dist/lib/creative/SkillsWriter/index.module.less +21 -0
  339. package/dist/lib/index.d.ts +32 -24
  340. package/dist/lib/index.js +39 -24
  341. package/dist/lib/index.js.map +2 -2
  342. package/dist/lib/index.less +44 -0
  343. package/dist/lib/layout/FlexGrid/index.d.ts +1 -1
  344. package/dist/lib/layout/FlexGrid/index.js.map +2 -2
  345. package/dist/lib/layout/YkContainer/index.js.map +1 -1
  346. package/dist/lib/layout/YkDrawer/index.d.ts +1 -1
  347. package/dist/lib/layout/YkDrawer/index.js.map +2 -2
  348. package/dist/lib/ui/LabelSelect/demo.js +1 -1
  349. package/dist/lib/ui/LabelSelect/demo.js.map +2 -2
  350. package/dist/lib/ui/LabelSelect/index.d.ts +1 -1
  351. package/dist/lib/ui/LabelSelect/index.js +1 -1
  352. package/dist/lib/ui/LabelSelect/index.js.map +2 -2
  353. package/dist/lib/ui/LogicOperator/index.d.ts +1 -1
  354. package/dist/lib/ui/LogicOperator/index.js.map +2 -2
  355. package/dist/lib/ui/YkButton/index.d.ts +1 -1
  356. package/dist/lib/ui/YkButton/index.js.map +2 -2
  357. package/dist/lib/ui/YkCard/index.d.ts +1 -1
  358. package/dist/lib/ui/YkCard/index.js.map +2 -2
  359. package/dist/lib/ui/YkCheckbox/index.d.ts +1 -1
  360. package/dist/lib/ui/YkCheckbox/index.js.map +2 -2
  361. package/dist/lib/ui/YkDescriptions/index.d.ts +1 -1
  362. package/dist/lib/ui/YkDescriptions/index.js.map +2 -2
  363. package/dist/lib/ui/YkPagination/index.d.ts +1 -1
  364. package/dist/lib/ui/YkPagination/index.js.map +2 -2
  365. package/dist/lib/ui/YkRadio/index.d.ts +1 -1
  366. package/dist/lib/ui/YkRadio/index.js.map +2 -2
  367. package/dist/lib/ui/YkSegmented/index.d.ts +1 -1
  368. package/dist/lib/ui/YkSegmented/index.js.map +2 -2
  369. package/dist/lib/ui/YkSelect/index.d.ts +1 -1
  370. package/dist/lib/ui/YkSelect/index.js.map +2 -2
  371. package/dist/lib/ui/YkSpin/index.d.ts +1 -1
  372. package/dist/lib/ui/YkSpin/index.js.map +2 -2
  373. package/dist/lib/ui/YkStatistic/index.d.ts +1 -1
  374. package/dist/lib/ui/YkStatistic/index.js.map +2 -2
  375. package/dist/lib/ui/YkSwitch/index.d.ts +1 -1
  376. package/dist/lib/ui/YkSwitch/index.js.map +2 -2
  377. package/dist/lib/ui/YkTabs/index.d.ts +1 -1
  378. package/dist/lib/ui/YkTabs/index.js.map +2 -2
  379. package/dist/lib/ui/YkTooltip/index.d.ts +1 -1
  380. package/dist/lib/ui/YkTooltip/index.js.map +2 -2
  381. package/dist/lib/utils/styleUtils.js.map +2 -2
  382. package/dist/lib/utils/ykStorybookDoc.d.ts +15 -0
  383. package/dist/lib/utils/ykStorybookDoc.js +23 -1
  384. package/dist/lib/utils/ykStorybookDoc.js.map +2 -2
  385. package/package.json +152 -144
@@ -1,92 +1,98 @@
1
1
  # @yoka-ui/ui 具名导出表
2
2
 
3
3
  > **自动生成**:`pnpm run generate:yoka-llms`(源文件 `src/index.tsx`)
4
- > **包版本**:`1.0.10-test`
5
- > **生成时间**:`2026-04-09T05:37:35.374Z`
4
+ > **包版本**:`1.1.0`
5
+ > **生成时间**:`2026-04-27T11:44:30.343Z`
6
6
  > 请勿手动编辑本文件;修改导出请改 `src/index.tsx` 后重新运行上述命令。
7
7
 
8
8
  ## 使用约定(给 LLM / 业务开发者)
9
9
 
10
- - **包名**:`@yoka-ui/ui`(npm 公网);可选 Git 安装:`@yoka-ui/ui`: `git+http://gitlab.sh.com/web/yoka-ui.git#v1.0.10-test` 等,以实际 tag 为准
11
- - **导入**:仅使用下表中的**具名**导出,与发布产物 `dist/es/index.d.ts` 一致;勿臆造未列出符号。
10
+ - **包名**:`@yoka-ui/ui`(npm 公网);可选 Git 安装:`@yoka-ui/ui`: `git+http://gitlab.sh.com/web/yoka-ui.git#v1.1.0` 等,以实际 tag 为准
11
+ - **导入**:仅使用下表中的**具名**导出(组件/值与 `export type` 类型),与发布产物 `dist/es/index.d.ts` 一致;勿臆造未列出符号。
12
12
  - **全局样式(常用)**:业务入口引入一行,例如 `import '@yoka-ui/ui/dist/index.less'`(若以 README / 实际产物路径为准)。
13
13
  - **技术栈**:React 18、Ant Design 5;复杂表单/表格优先使用库内封装(`InputTheme`、`TableTheme`、`ModCommonFilter` 等),需要原生 antd API 时查阅 [Ant Design 文档](https://ant.design) 或本仓库 `@Docs/llms.txt`(克隆源码时可用)。
14
14
 
15
15
  ## 导出清单(按 `src/index.tsx` 分区)
16
16
 
17
- ### Export all UI components
17
+ ### Export business components
18
18
 
19
- | 导出符号 | 源码 `from` 路径 |
20
- | --- | --- |
21
- | `LabelSelect` | `./ui/LabelSelect` |
22
- | `LogicOperator` | `./ui/LogicOperator` |
23
- | `YkButton` | `./ui/YkButton` |
24
- | `YkCard` | `./ui/YkCard` |
25
- | `YkCheckbox` | `./ui/YkCheckbox` |
26
- | `YkDescriptions` | `./ui/YkDescriptions` |
27
- | `YkPagination` | `./ui/YkPagination` |
28
- | `YkRadio` | `./ui/YkRadio` |
29
- | `YkRadioBtnSpecial` | `./ui/YkRadioBtnSpecial` |
30
- | `YkSegmented` | `./ui/YkSegmented` |
31
- | `YkSelect` | `./ui/YkSelect` |
32
- | `YkSpin` | `./ui/YkSpin` |
33
- | `YkStatistic` | `./ui/YkStatistic` |
34
- | `YkSwitch` | `./ui/YkSwitch` |
35
- | `YkTabs` | `./ui/YkTabs` |
36
- | `YkTooltip` | `./ui/YkTooltip` |
19
+ | 导出符号 | 类别 | 源码 `from` 路径 |
20
+ | --- | --- | --- |
21
+ | `AiChat` | 组件 | `./business/AiChat` |
22
+ | `DrawerPageInfo` | 组件 | `./business/DrawerPageInfo` |
23
+ | `Editor` | 组件 | `./business/Editor` |
24
+ | `Empty` | 组件 | `./business/Empty` |
25
+ | `ModCommonFilter` | 组件 | `./business/ModCommonFilter` |
26
+ | `YkLoginModule` | 组件 | `./business/YkLoginModule` |
27
+ | `YkPorjectSelect` | 组件 | `./business/YkPorjectSelect` |
28
+ | `YkSqlEdit` | 组件 | `./business/YkSqlEdit` |
37
29
 
38
- ### Export business components
30
+ ### Export common components
39
31
 
40
- | 导出符号 | 源码 `from` 路径 |
41
- | --- | --- |
42
- | `DrawerPageInfo` | `./business/DrawerPageInfo` |
43
- | `Editor` | `./business/Editor` |
44
- | `Empty` | `./business/Empty` |
45
- | `ModCommonFilter` | `./business/ModCommonFilter` |
46
- | `YkPorjectSelect` | `./business/YkPorjectSelect` |
47
- | `YkDateRangePicker` | `./components/YkDateRangePicker` |
48
- | `YkRangeDateWithVS` | `./components/YkRangeDateWithVS` |
49
- | `YkRangeTimeWithRecent` | `./components/YkRangeTimeWithRecent` |
32
+ | 导出符号 | 类别 | 源码 `from` 路径 |
33
+ | --- | --- | --- |
34
+ | `Clock` | 组件 | `./components/Clock` |
35
+ | `DebounceInput` | 组件 | `./components/DebounceInput` |
36
+ | `MultipleSelect` | 组件 | `./components/MultipleSelect` |
37
+ | `NumericInput` | 组件 | `./components/NumericInput` |
38
+ | `RefreshButton` | 组件 | `./components/RefreshButton` |
39
+ | `SearchWithHistory` | 组件 | `./components/SearchWithHistory` |
40
+ | `TextWithInput` | 组件 | `./components/TextWithInput` |
41
+ | `TextWithToolTip` | 组件 | `./components/TextWithToolTip` |
42
+ | `TreeTransfer` | 组件 | `./components/TreeTransfer` |
43
+ | `YkDateRangePicker` | 组件 | `./components/YkDateRangePicker` |
44
+ | `YkRangeDateWithVS` | 组件 | `./components/YkRangeDateWithVS` |
45
+ | `YkRangeTimeWithRecent` | 组件 | `./components/YkRangeTimeWithRecent` |
50
46
 
51
47
  ### Export creative components
52
48
 
53
- | 导出符号 | 源码 `from` 路径 |
54
- | --- | --- |
55
- | `ButtonRadioWithInfo` | `./creative/ButtonRadioWithInfo` |
56
- | `ButtonWithProgress` | `./creative/ButtonWithProgress` |
49
+ | 导出符号 | 类别 | 源码 `from` 路径 |
50
+ | --- | --- | --- |
51
+ | `ArcCheckboxProps` | 类型 | `./creative/ArcCheckbox` |
52
+ | `ArcCheckbox` | 组件 | `./creative/ArcCheckbox` |
53
+ | `ButtonRadioWithInfo` | 组件 | `./creative/ButtonRadioWithInfo` |
54
+ | `ButtonWithProgress` | 组件 | `./creative/ButtonWithProgress` |
55
+ | `GlassSegmentedRadio` | 组件 | `./creative/GlassSegmentedRadio` |
57
56
 
58
- ### Export theme components
57
+ ### Export layout
59
58
 
60
- | 导出符号 | 源码 `from` 路径 |
61
- | --- | --- |
62
- | `InputTheme` | `./Themes/InputTheme` |
63
- | `TableTheme` | `./Themes/TableTheme` |
59
+ | 导出符号 | 类别 | 源码 `from` 路径 |
60
+ | --- | --- | --- |
61
+ | `FlexGrid` | 组件 | `./layout/FlexGrid` |
62
+ | `YkContainer` | 组件 | `./layout/YkContainer` |
63
+ | `YkDrawer` | 组件 | `./layout/YkDrawer` |
64
64
 
65
- ### Export layout
65
+ ### Export theme components
66
66
 
67
- | 导出符号 | 源码 `from` 路径 |
68
- | --- | --- |
69
- | `FlexGrid` | `./layout/FlexGrid` |
70
- | `YkContainer` | `./layout/YkContainer` |
71
- | `YkDrawer` | `./layout/YkDrawer` |
67
+ | 导出符号 | 类别 | 源码 `from` 路径 |
68
+ | --- | --- | --- |
69
+ | `InputTheme` | 组件 | `./Themes/InputTheme` |
70
+ | `TableTheme` | 组件 | `./Themes/TableTheme` |
72
71
 
73
- ### Export common components
72
+ ### Export all UI components
74
73
 
75
- | 导出符号 | 源码 `from` 路径 |
76
- | --- | --- |
77
- | `Clock` | `./components/Clock` |
78
- | `DebounceInput` | `./components/DebounceInput` |
79
- | `MultipleSelect` | `./components/MultipleSelect` |
80
- | `NumericInput` | `./components/NumericInput` |
81
- | `RefreshButton` | `./components/RefreshButton` |
82
- | `SearchWithHistory` | `./components/SearchWithHistory` |
83
- | `TextWithInput` | `./components/TextWithInput` |
84
- | `TextWithToolTip` | `./components/TextWithToolTip` |
85
- | `TreeTransfer` | `./components/TreeTransfer` |
74
+ | 导出符号 | 类别 | 源码 `from` 路径 |
75
+ | --- | --- | --- |
76
+ | `LabelSelect` | 组件 | `./ui/LabelSelect` |
77
+ | `LogicOperator` | 组件 | `./ui/LogicOperator` |
78
+ | `YkButton` | 组件 | `./ui/YkButton` |
79
+ | `YkCard` | 组件 | `./ui/YkCard` |
80
+ | `YkCheckbox` | 组件 | `./ui/YkCheckbox` |
81
+ | `YkDescriptions` | 组件 | `./ui/YkDescriptions` |
82
+ | `YkPagination` | 组件 | `./ui/YkPagination` |
83
+ | `YkRadio` | 组件 | `./ui/YkRadio` |
84
+ | `YkRadioBtnSpecial` | 组件 | `./ui/YkRadioBtnSpecial` |
85
+ | `YkSegmented` | 组件 | `./ui/YkSegmented` |
86
+ | `YkSelect` | 组件 | `./ui/YkSelect` |
87
+ | `YkSpin` | 组件 | `./ui/YkSpin` |
88
+ | `YkStatistic` | 组件 | `./ui/YkStatistic` |
89
+ | `YkSwitch` | 组件 | `./ui/YkSwitch` |
90
+ | `YkTabs` | 组件 | `./ui/YkTabs` |
91
+ | `YkTooltip` | 组件 | `./ui/YkTooltip` |
86
92
 
87
93
  ## 纯符号列表(便于检索)
88
94
 
89
95
  ```
90
- LabelSelect, LogicOperator, YkButton, YkCard, YkCheckbox, YkDescriptions, YkPagination, YkRadio, YkRadioBtnSpecial, YkSegmented, YkSelect, YkSpin, YkStatistic, YkSwitch, YkTabs, YkTooltip, DrawerPageInfo, Editor, Empty, ModCommonFilter, YkPorjectSelect, YkDateRangePicker, YkRangeDateWithVS, YkRangeTimeWithRecent, ButtonRadioWithInfo, ButtonWithProgress, InputTheme, TableTheme, FlexGrid, YkContainer, YkDrawer, Clock, DebounceInput, MultipleSelect, NumericInput, RefreshButton, SearchWithHistory, TextWithInput, TextWithToolTip, TreeTransfer
96
+ AiChat, DrawerPageInfo, Editor, Empty, ModCommonFilter, YkLoginModule, YkPorjectSelect, YkSqlEdit, Clock, DebounceInput, MultipleSelect, NumericInput, RefreshButton, SearchWithHistory, TextWithInput, TextWithToolTip, TreeTransfer, YkDateRangePicker, YkRangeDateWithVS, YkRangeTimeWithRecent, ArcCheckboxProps, ArcCheckbox, ButtonRadioWithInfo, ButtonWithProgress, GlassSegmentedRadio, FlexGrid, YkContainer, YkDrawer, InputTheme, TableTheme, LabelSelect, LogicOperator, YkButton, YkCard, YkCheckbox, YkDescriptions, YkPagination, YkRadio, YkRadioBtnSpecial, YkSegmented, YkSelect, YkSpin, YkStatistic, YkSwitch, YkTabs, YkTooltip
91
97
  ```
92
98
 
package/README.md CHANGED
@@ -1,42 +1,40 @@
1
- # @yoka-ui/ui
2
-
3
- 数据部前端组件库 - 基于 React 18 + Ant Design 5 的企业级 UI 组件解决方案
4
-
5
- **npm 包名**:[`@yoka-ui/ui`](https://www.npmjs.com/package/@yoka-ui/ui)(公网 registry,与 npm 组织 **[yoka-ui](https://www.npmjs.com/org/yoka-ui)** 对应;历史曾用 `@yoka/ui` 等请改为本包名。)
6
-
7
- ## 安装使用
1
+ ## 安装与使用
8
2
 
9
3
  ### 安装组件库
10
4
 
11
5
  ```bash
12
- # npm 公网(推荐与 CI 一致)
6
+ # npm
7
+ npm i @yoka-ui/ui
8
+
9
+ # 或 pnpm
13
10
  pnpm add @yoka-ui/ui
11
+ ```
14
12
 
15
- # 安装最新版本(GitLab 源码)
16
- pnpm add git+http://gitlab.sh.com/web/yoka-ui.git
13
+ ### (推荐)配置 Cursor / IDE 规则
17
14
 
18
- # 安装特定版本
19
- pnpm add git+http://gitlab.sh.com/web/yoka-ui.git#v1.0.9
15
+ 在项目的 Cursor rules 中创建文件 `yoka-ui.mdc`,用于约束导入方式与文档入口(导出清单、LLM 索引等):
20
16
 
21
- # 使用分支(仅推荐开发测试使用)
22
- pnpm add git+http://gitlab.sh.com/web/yoka-ui.git#main
23
- ```
17
+ ```md
18
+ ---
19
+ description: 使用 @yoka-ui/ui 时的导入与文档约定
20
+ globs: "**/*.{ts,tsx}"
21
+ alwaysApply: false
22
+ ---
24
23
 
25
- ### package.json 配置
24
+ # @yoka-ui/ui
26
25
 
27
- ```json
28
- {
29
- "dependencies": {
30
- "@yoka-ui/ui": "git+http://gitlab.sh.com/web/yoka-ui.git#v1.0.9"
31
- }
32
- }
26
+ - **导入**:仅从 `@yoka-ui/ui` 做**具名** `import`,勿使用未在导出表中出现的符号。
27
+ - **导出清单(权威)**:以安装包内 `node_modules/@yoka-ui/ui/@Docs-yoka/exports.generated.md` 为准,与发布产物类型一致;该文件由 yoka-ui 在导出变更后重新生成。
28
+ - **LLM / 助手入口**:同目录 `node_modules/@yoka-ui/ui/@Docs-yoka/llms.txt`(索引、外链与使用规则摘要)。
29
+ - **API**:不确定 props 时查组件库 Storybook / 源码示例或 README,勿臆造 API;原生 antd 行为对照 [Ant Design 文档](https://ant.design)。
30
+ - **全局样式**:业务入口按需引入,常见为 `import '@yoka-ui/ui/dist/index.less'`(以 `@yoka-ui/ui` 的 README 与当前产物路径为准)。
33
31
  ```
34
32
 
35
33
  ### 基础用法
36
34
 
37
35
  ```tsx
38
- import { YkButton, YkCard } from '@yoka-ui/ui';
39
- import '@yoka-ui/ui/dist/index.less'; // 引入样式
36
+ import { YkButton, YkCard } from "@yoka-ui/ui";
37
+ import "@yoka-ui/ui/dist/index.less"; // 引入样式
40
38
 
41
39
  function App() {
42
40
  return (
@@ -47,13 +45,14 @@ function App() {
47
45
  }
48
46
  ```
49
47
 
50
- ### 按需引入
48
+ ### 导入约定(重要)
51
49
 
52
50
  ```tsx
53
- // 完整引入
54
- import { YkButton } from '@yoka-ui/ui';
51
+ // 仅从包入口做“具名导入”
52
+ import { YkPorjectSelect } from "@yoka-ui/ui";
55
53
 
56
- // tree-shaking 会自动排除未使用的组件
54
+ // 具体有哪些符号可用,以 @Docs-yoka/exports.generated.md 为准
55
+ // node_modules/@yoka-ui/ui/@Docs-yoka/exports.generated.md
57
56
  ```
58
57
 
59
58
  ## 组件列表
@@ -116,176 +115,28 @@ import { YkButton } from '@yoka-ui/ui';
116
115
  | TextWithInput | 可编辑文本 |
117
116
  | TextWithToolTip | 带提示的文本 |
118
117
  | TreeTransfer | 树形穿梭框 |
118
+ | **YkDateRangePicker** | **带「紧凑预设 tag」与「完整 RangePicker」双模式切换的日期范围选择器;8 个内置快捷预设;受控组件;仅允许过去 7 天** |
119
119
  | **YkRangeDateWithVS** | **主时间区间 + 可选「日期对比」(日/周/月 Tab、里程碑、节假日、`rangeDisplayLabel` 等);内置 `ConfigProvider` 中文 locale 与 dayjs `zh-cn`(周一起算)** |
120
120
  | **YkRangeTimeWithRecent** | **时间范围 + 「最近 N 天/周/月」动态语义(Popover + `RangePicker`);内置中文 locale 与 dayjs `zh-cn`;触发区依赖全局 `iconfont`(如 `icon-date`)** |
121
121
 
122
122
  ### 业务组件 (`src/business/`)
123
123
 
124
- | 组件 | 说明 |
125
- | --------------- | --------------------------------------------------- |
126
- | DrawerPageInfo | 抽屉页面信息 |
127
- | Editor | 富文本编辑器 |
128
- | Empty | 空状态 |
129
- | ModCommonFilter | 通用筛选器 |
130
- | YkPorjectSelect | 项目选择器(搜索、关注、在营/关服 Tab、最近访问等) |
124
+ | 组件 | 说明 |
125
+ | --------------- | -------------------------------------------------------------------- |
126
+ | DrawerPageInfo | 抽屉页面信息 |
127
+ | Editor | 富文本编辑器 |
128
+ | Empty | 空状态 |
129
+ | ModCommonFilter | 通用筛选器 |
130
+ | YkLoginModule | 登录组件(当前支持:扫码 / 短信验证码;Tabs 由 `tabs` 配置) |
131
+ | YkPorjectSelect | 项目选择器(搜索、关注、在营/关服 Tab、最近访问等) |
132
+ | YkSqlEdit | SQL 编辑器(CodeMirror 6:动态参数 `{{...}}` 高亮、关键词/函数补全) |
131
133
 
132
134
  **导出说明**:业务项目里 `import { ... } from '@yoka-ui/ui'` 可用的符号以 `[src/index.tsx](src/index.tsx)` 为准。若某组件已在源码目录中实现但尚未在入口文件中 `export`,需先在组件库补齐导出并发布后,再在业务侧引用。
133
135
 
134
136
  ### LLM / 助手文档(`@Docs-yoka`)
135
137
 
136
138
  - 入口索引:[`@Docs-yoka/llms.txt`](@Docs-yoka/llms.txt)(导航 + 使用约定,结构对齐仓库内 Ant Design [@Docs/llms.txt](@Docs/llms.txt) 思路)。
137
- - **具名导出表**:[`@Docs-yoka/exports.generated.md`](@Docs-yoka/exports.generated.md) 由脚本根据 `src/index.tsx` 自动生成;修改导出后请执行 `pnpm run generate:yoka-llms`(发版时 `prepack` 会执行一次以保证包内为最新)。
139
+ - **具名导出表**:[`@Docs-yoka/exports.generated.md`](@Docs-yoka/exports.generated.md) 由脚本根据 `src/index.tsx` 自动生成;修改导出后请执行
140
+ #### `pnpm run generate:yoka-llms`
141
+ (发版时 `prepack` 会执行一次以保证包内为最新)。
138
142
  - 安装 npm 包后路径示例:`node_modules/@yoka-ui/ui/@Docs-yoka/llms.txt`(需 `package.json` 的 `files` 包含 `@Docs-yoka`)。
139
-
140
- ## 开发指南
141
-
142
- ### 环境要求
143
-
144
- - Node.js >= 18
145
- - pnpm >= 9 (推荐) 或 npm/yarn
146
-
147
- ### 安装依赖
148
-
149
- ```bash
150
- pnpm install
151
- ```
152
-
153
- ### 开发组件
154
-
155
- ```bash
156
- # 启动 Storybook(推荐)
157
- pnpm dev
158
-
159
- # 或直接
160
- pnpm storybook
161
- ```
162
-
163
- 访问 [http://localhost:6006](http://localhost:6006) 查看组件文档
164
-
165
- ### 构建发布
166
-
167
- ```bash
168
- # 构建生产版本
169
- pnpm build
170
-
171
- # 发布新版本
172
- pnpm release
173
- ```
174
-
175
- 发布流程:
176
-
177
- 1. 运行 `pnpm release` 或手动打 tag
178
- 2. `git tag v1.0.9`
179
- 3. `git push origin v1.0.9`
180
- 4. 消费项目通过 `pnpm add git+...#v1.0.9` 更新
181
-
182
- ### 代码规范
183
-
184
- ```bash
185
- # 代码格式化和检查
186
- pnpm format # 格式化代码
187
- pnpm lint # 检查代码
188
- pnpm lint:fix # 自动修复
189
-
190
- # 测试
191
- pnpm test # 运行测试
192
- pnpm test:watch # 监听模式
193
- ```
194
-
195
- ### 提交代码
196
-
197
- 使用 commitlint 规范提交:
198
-
199
- ```bash
200
- pnpm commit
201
- ```
202
-
203
- ## 项目结构
204
-
205
- ```
206
- src/
207
- ├── ui/ # UI 基础组件
208
- │ └── YkButton/
209
- │ ├── index.tsx # 组件主文件
210
- │ ├── index.stories.tsx # Storybook 文档
211
- │ └── index.module.less # 样式文件
212
- ├── components/ # 功能组件(含 YkRangeDateWithVS、YkRangeTimeWithRecent 等)
213
- ├── business/ # 业务组件
214
- ├── creative/ # 创意组件
215
- └── Themes/ # 主题配置
216
- ```
217
-
218
- 时间筛选相关 Storybook 入口示例:`功能组件/YkRangeDateWithVS 时间区间与对比`、`功能组件/YkRangeTimeWithRecent 时间范围与最近N天`。
219
-
220
- ## 组件开发规范
221
-
222
- ### 新增组件
223
-
224
- 1. 在对应目录创建组件文件夹
225
- 2. 创建 `index.tsx` 主文件
226
- 3. 创建 `index.stories.tsx` 文档
227
- 4. 在 `src/index.tsx` 中导出
228
-
229
- ### 代码示例
230
-
231
- ```tsx
232
- // src/ui/YourComponent/index.tsx
233
- import React from 'react';
234
- import { Button } from 'antd';
235
- import './index.less';
236
-
237
- export interface YourComponentProps {
238
- text: string;
239
- onClick?: () => void;
240
- }
241
-
242
- const YourComponent: React.FC<YourComponentProps> = ({ text, onClick }) => {
243
- return <Button onClick={onClick}>{text}</Button>;
244
- };
245
-
246
- YourComponent.defaultProps = {
247
- text: '默认文本',
248
- };
249
-
250
- export default YourComponent;
251
- ```
252
-
253
- ```tsx
254
- // src/ui/YourComponent/index.stories.tsx
255
- import React from 'react';
256
- import { Story, Meta } from '@storybook/react';
257
- import YourComponent from './index';
258
-
259
- export default {
260
- title: 'UI/YourComponent',
261
- component: YourComponent,
262
- } as Meta;
263
-
264
- const Template: Story<typeof YourComponent> = (args) => <YourComponent {...args} />;
265
-
266
- export const Primary = Template.bind({});
267
- Primary.args = {
268
- text: '按钮文本',
269
- };
270
- ```
271
-
272
- ## 技术栈
273
-
274
- - **React**: 18.3.1
275
- - **Ant Design**: 5.29.2
276
- - **构建工具**: father 4.6.15 + esbuild 0.27.3
277
- - **组件文档**: Storybook 10.1.11
278
- - **样式方案**: Less + CSS Modules
279
- - **代码规范**: ESLint + Prettier + Husky
280
-
281
- ## 注意事项
282
-
283
- 1. **样式引入**: 使用组件前需引入 `@yoka-ui/ui/dist/index.less`
284
- 2. **Less 支持**: 确保项目支持 Less,可使用 `less-loader`
285
- 3. **CSS Modules**:`css-loader` 对 `*.module.less` 建议配置 `exportLocalsConvention: 'as-is'`(与源码类名一致)。若使用默认的 `camel-case-only`,部分含连续大写的类名与 `styles.xxx` 可能对不齐;本库相关样式已统一为 `ykRangeDateWithVs`\* 等与默认导出一致的形式。
286
- 4. **版本兼容性**: React 18 + Ant Design 5
287
- 5. **YkRangeDateWithVS / YkRangeTimeWithRecent**:组件内部已挂载 Ant Design `locale={zh_CN}`,并注册 `dayjs` 中文语言包(一周从周一开始),日历/周月面板默认中文;业务侧一般无需再包一层中文 `ConfigProvider`。两类组件的部分图标来自业务全局 **iconfont**(如 `icon-date`、`icon-riqi1`、`icon-guanbi1` 等),需在消费项目中引入对应字体样式。
288
-
289
- ## 许可证
290
-
291
- MIT - 仅供内部项目使用
Binary file
@@ -9,8 +9,8 @@ export interface AiChatProps extends AiChatConfig, Partial<EnhancedAiChatConfig>
9
9
  }
10
10
  declare const AiChat: FC<AiChatProps>;
11
11
  export default AiChat;
12
+ export { generateSuggestions, isTaskCreationIntent, parseTaskDescription, recognizeIntent } from './intentRecognizer';
13
+ export { delay, NavigationManager } from './navigationManager';
14
+ export type { AiChatConfig, ChatSession, EnhancedAiChatConfig, Intent, IntentType, Message, NavigationOptions, Task, TaskCategory, TaskCreationResult, TaskPriority, TaskStatus, UseAiChatOptions, UseAiChatReturn, } from './type';
12
15
  export { useAiChat } from './useAiChat';
13
16
  export { useTaskWorkflow } from './useTaskWorkflow';
14
- export { recognizeIntent, generateSuggestions, isTaskCreationIntent, parseTaskDescription } from './intentRecognizer';
15
- export { NavigationManager, delay } from './navigationManager';
16
- export type { AiChatConfig, ChatSession, Message, UseAiChatOptions, UseAiChatReturn, Intent, IntentType, Task, TaskCategory, TaskPriority, TaskStatus, TaskCreationResult, NavigationOptions, EnhancedAiChatConfig, } from './type';