@yoka-ui/ui 1.0.10-test → 1.1.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 (390) hide show
  1. package/@Docs-yoka/exports.generated.md +68 -62
  2. package/LICENSE +21 -0
  3. package/README.md +40 -189
  4. package/dist/es/assets/image/skills.zip +0 -0
  5. package/dist/es/business/AiChat/aichat-logo.svg +1 -0
  6. package/dist/es/business/AiChat/index.d.ts +3 -3
  7. package/dist/es/business/AiChat/index.js +322 -137
  8. package/dist/es/business/AiChat/index.js.map +3 -3
  9. package/dist/es/business/AiChat/index.module.less +24 -0
  10. package/dist/es/business/AiChat/intentRecognizer.js.map +1 -1
  11. package/dist/es/business/AiChat/navigationManager.js +6 -6
  12. package/dist/es/business/AiChat/navigationManager.js.map +2 -2
  13. package/dist/es/business/AiChat/sse.d.ts +15 -0
  14. package/dist/es/business/AiChat/sse.js +118 -7
  15. package/dist/es/business/AiChat/sse.js.map +2 -2
  16. package/dist/es/business/AiChat/type.d.ts +22 -23
  17. package/dist/es/business/AiChat/useAiChat.js +105 -75
  18. package/dist/es/business/AiChat/useAiChat.js.map +3 -3
  19. package/dist/es/business/AiChat/useTaskWorkflow.d.ts +1 -2
  20. package/dist/es/business/AiChat/useTaskWorkflow.js +2 -36
  21. package/dist/es/business/AiChat/useTaskWorkflow.js.map +2 -2
  22. package/dist/es/business/DrawerPageInfo/index.js.map +1 -1
  23. package/dist/es/business/Editor/index.d.ts +1 -1
  24. package/dist/es/business/Editor/index.js.map +2 -2
  25. package/dist/es/business/Empty/index.js +1 -1
  26. package/dist/es/business/Empty/index.js.map +1 -1
  27. package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +2 -2
  28. package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
  29. package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +3 -3
  30. package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
  31. package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +2 -2
  32. package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
  33. package/dist/es/business/ModCommonFilter/index.d.ts +1 -1
  34. package/dist/es/business/ModCommonFilter/index.js.map +2 -2
  35. package/dist/es/business/YkCharts/Area.d.ts +18 -0
  36. package/dist/es/business/YkCharts/Area.js +336 -0
  37. package/dist/es/business/YkCharts/Area.js.map +7 -0
  38. package/dist/es/business/YkCharts/Bar.d.ts +21 -0
  39. package/dist/es/business/YkCharts/Bar.js +316 -0
  40. package/dist/es/business/YkCharts/Bar.js.map +7 -0
  41. package/dist/es/business/YkCharts/BarProperty.d.ts +21 -0
  42. package/dist/es/business/YkCharts/BarProperty.js +357 -0
  43. package/dist/es/business/YkCharts/BarProperty.js.map +7 -0
  44. package/dist/es/business/YkCharts/BarTotal.d.ts +21 -0
  45. package/dist/es/business/YkCharts/BarTotal.js +292 -0
  46. package/dist/es/business/YkCharts/BarTotal.js.map +7 -0
  47. package/dist/es/business/YkCharts/Line.d.ts +21 -0
  48. package/dist/es/business/YkCharts/Line.js +342 -0
  49. package/dist/es/business/YkCharts/Line.js.map +7 -0
  50. package/dist/es/business/YkCharts/Pie.d.ts +19 -0
  51. package/dist/es/business/YkCharts/Pie.js +107 -0
  52. package/dist/es/business/YkCharts/Pie.js.map +7 -0
  53. package/dist/es/business/YkCharts/PieProperty.d.ts +18 -0
  54. package/dist/es/business/YkCharts/PieProperty.js +180 -0
  55. package/dist/es/business/YkCharts/PieProperty.js.map +7 -0
  56. package/dist/es/business/YkCharts/Pies.d.ts +26 -0
  57. package/dist/es/business/YkCharts/Pies.js +352 -0
  58. package/dist/es/business/YkCharts/Pies.js.map +7 -0
  59. package/dist/es/business/YkCharts/constants.d.ts +1 -0
  60. package/dist/es/business/YkCharts/constants.js +47 -0
  61. package/dist/es/business/YkCharts/constants.js.map +7 -0
  62. package/dist/es/business/YkCharts/hooks.d.ts +4 -0
  63. package/dist/es/business/YkCharts/hooks.js +37 -0
  64. package/dist/es/business/YkCharts/hooks.js.map +7 -0
  65. package/dist/es/business/YkCharts/index.d.ts +9 -0
  66. package/dist/es/business/YkCharts/index.js +20 -0
  67. package/dist/es/business/YkCharts/index.js.map +7 -0
  68. package/dist/es/business/YkCharts/index.module.less +164 -0
  69. package/dist/es/business/YkCharts/tooltip.less +92 -0
  70. package/dist/es/business/YkCharts/transformData.js +16 -0
  71. package/dist/es/business/YkCharts/transformData.js.map +7 -0
  72. package/dist/es/business/YkCharts/typing.d.ts +74 -0
  73. package/dist/es/business/YkCharts/typing.js +1 -0
  74. package/dist/es/business/YkCharts/typing.js.map +7 -0
  75. package/dist/es/business/YkCharts/utils.d.ts +4 -0
  76. package/dist/es/business/YkCharts/utils.js +109 -0
  77. package/dist/es/business/YkCharts/utils.js.map +7 -0
  78. package/dist/es/business/YkCharts/variables.less +13 -0
  79. package/dist/es/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
  80. package/dist/es/business/YkLoginModule/SmsLoginForm.js +178 -0
  81. package/dist/es/business/YkLoginModule/SmsLoginForm.js.map +7 -0
  82. package/dist/es/business/YkLoginModule/index.d.ts +48 -0
  83. package/dist/es/business/YkLoginModule/index.js +198 -0
  84. package/dist/es/business/YkLoginModule/index.js.map +7 -0
  85. package/dist/es/business/YkLoginModule/styles.module.less +169 -0
  86. package/dist/es/business/YkPorjectSelect/index.d.ts +1 -1
  87. package/dist/es/business/YkPorjectSelect/index.js +2 -2
  88. package/dist/es/business/YkPorjectSelect/index.js.map +2 -2
  89. package/dist/es/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
  90. package/dist/es/business/YkSqlEdit/index.d.ts +20 -0
  91. package/dist/es/business/YkSqlEdit/index.js +180 -0
  92. package/dist/es/business/YkSqlEdit/index.js.map +7 -0
  93. package/dist/es/business/YkSqlEdit/sql-language.d.ts +11 -0
  94. package/dist/es/business/YkSqlEdit/sql-language.js +1460 -0
  95. package/dist/es/business/YkSqlEdit/sql-language.js.map +7 -0
  96. package/dist/es/components/DebounceInput/index.js.map +2 -2
  97. package/dist/es/components/MultipleSelect/index.d.ts +14 -0
  98. package/dist/es/components/MultipleSelect/index.js +1 -1
  99. package/dist/es/components/MultipleSelect/index.js.map +2 -2
  100. package/dist/es/components/RefreshButton/index.js.map +2 -2
  101. package/dist/es/components/SearchWithHistory/index.js +1 -1
  102. package/dist/es/components/SearchWithHistory/index.js.map +2 -2
  103. package/dist/es/components/TextWithToolTip/index.d.ts +1 -1
  104. package/dist/es/components/TextWithToolTip/index.js.map +2 -2
  105. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
  106. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
  107. package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
  108. package/dist/es/components/TreeTransfer/index.d.ts +1 -24
  109. package/dist/es/components/TreeTransfer/index.js +8 -8
  110. package/dist/es/components/TreeTransfer/index.js.map +2 -2
  111. package/dist/es/components/TreeTransfer/utils/index.d.ts +1 -1
  112. package/dist/es/components/TreeTransfer/utils/index.js.map +2 -2
  113. package/dist/es/components/YKMarkdown/index.d.ts +11 -0
  114. package/dist/es/components/YKMarkdown/index.js +236 -0
  115. package/dist/es/components/YKMarkdown/index.js.map +7 -0
  116. package/dist/es/components/YKMarkdown/index.module.less +83 -0
  117. package/dist/es/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
  118. package/dist/es/components/YkDateRangePicker/index.d.ts +9 -1
  119. package/dist/es/components/YkDateRangePicker/index.js +127 -61
  120. package/dist/es/components/YkDateRangePicker/index.js.map +2 -2
  121. package/dist/es/components/YkDateRangePicker/index.module.less +33 -9
  122. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
  123. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
  124. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
  125. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
  126. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +23 -3
  127. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
  128. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
  129. package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
  130. package/dist/es/components/YkRangeDateWithVS/index.d.ts +2 -2
  131. package/dist/es/components/YkRangeDateWithVS/index.js.map +2 -2
  132. package/dist/es/components/YkRangeDateWithVS/index.module.less +22 -4
  133. package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +1 -1
  134. package/dist/es/components/YkRangeTimeWithRecent/index.js.map +2 -2
  135. package/dist/es/creative/ArcCheckbox/index.d.ts +12 -0
  136. package/dist/es/creative/ArcCheckbox/index.js +49 -0
  137. package/dist/es/creative/ArcCheckbox/index.js.map +7 -0
  138. package/dist/es/creative/ArcCheckbox/index.module.less +102 -0
  139. package/dist/es/creative/ButtonRadioWithInfo/index.js.map +1 -1
  140. package/dist/es/creative/ButtonWithProgress/index.d.ts +1 -1
  141. package/dist/es/creative/ButtonWithProgress/index.js.map +2 -2
  142. package/dist/es/creative/GlassSegmentedRadio/index.d.ts +24 -0
  143. package/dist/es/creative/GlassSegmentedRadio/index.js +75 -0
  144. package/dist/es/creative/GlassSegmentedRadio/index.js.map +7 -0
  145. package/dist/es/creative/GlassSegmentedRadio/index.module.less +241 -0
  146. package/dist/es/creative/SkillsWriter/index.d.ts +3 -0
  147. package/dist/es/creative/SkillsWriter/index.js +191 -0
  148. package/dist/es/creative/SkillsWriter/index.js.map +7 -0
  149. package/dist/es/creative/SkillsWriter/index.module.less +21 -0
  150. package/dist/es/index.d.ts +32 -24
  151. package/dist/es/index.js +90 -80
  152. package/dist/es/index.js.map +2 -2
  153. package/dist/es/index.less +45 -0
  154. package/dist/es/layout/FlexGrid/index.d.ts +1 -1
  155. package/dist/es/layout/FlexGrid/index.js.map +2 -2
  156. package/dist/es/layout/YkContainer/index.js.map +1 -1
  157. package/dist/es/layout/YkDrawer/index.d.ts +1 -1
  158. package/dist/es/layout/YkDrawer/index.js.map +2 -2
  159. package/dist/es/ui/LabelSelect/demo.js +1 -1
  160. package/dist/es/ui/LabelSelect/demo.js.map +2 -2
  161. package/dist/es/ui/LabelSelect/index.d.ts +1 -1
  162. package/dist/es/ui/LabelSelect/index.js +1 -1
  163. package/dist/es/ui/LabelSelect/index.js.map +2 -2
  164. package/dist/es/ui/LogicOperator/index.d.ts +1 -1
  165. package/dist/es/ui/LogicOperator/index.js.map +2 -2
  166. package/dist/es/ui/YkButton/index.d.ts +1 -1
  167. package/dist/es/ui/YkButton/index.js.map +2 -2
  168. package/dist/es/ui/YkCard/index.d.ts +1 -1
  169. package/dist/es/ui/YkCard/index.js +1 -1
  170. package/dist/es/ui/YkCard/index.js.map +2 -2
  171. package/dist/es/ui/YkCheckbox/index.d.ts +1 -1
  172. package/dist/es/ui/YkCheckbox/index.js.map +2 -2
  173. package/dist/es/ui/YkDescriptions/index.d.ts +1 -1
  174. package/dist/es/ui/YkDescriptions/index.js.map +2 -2
  175. package/dist/es/ui/YkPagination/index.d.ts +1 -1
  176. package/dist/es/ui/YkPagination/index.js.map +2 -2
  177. package/dist/es/ui/YkRadio/index.d.ts +1 -1
  178. package/dist/es/ui/YkRadio/index.js.map +2 -2
  179. package/dist/es/ui/YkSegmented/index.d.ts +1 -1
  180. package/dist/es/ui/YkSegmented/index.js.map +2 -2
  181. package/dist/es/ui/YkSelect/index.d.ts +1 -1
  182. package/dist/es/ui/YkSelect/index.js.map +2 -2
  183. package/dist/es/ui/YkSpin/index.d.ts +1 -1
  184. package/dist/es/ui/YkSpin/index.js.map +2 -2
  185. package/dist/es/ui/YkStatistic/index.d.ts +1 -1
  186. package/dist/es/ui/YkStatistic/index.js.map +2 -2
  187. package/dist/es/ui/YkSwitch/index.d.ts +1 -1
  188. package/dist/es/ui/YkSwitch/index.js.map +2 -2
  189. package/dist/es/ui/YkTabs/index.d.ts +1 -1
  190. package/dist/es/ui/YkTabs/index.js.map +2 -2
  191. package/dist/es/ui/YkTooltip/index.d.ts +1 -1
  192. package/dist/es/ui/YkTooltip/index.js.map +2 -2
  193. package/dist/es/utils/styleUtils.js.map +2 -2
  194. package/dist/es/utils/ykStorybookDoc.d.ts +15 -0
  195. package/dist/es/utils/ykStorybookDoc.js +24 -2
  196. package/dist/es/utils/ykStorybookDoc.js.map +2 -2
  197. package/dist/lib/assets/image/skills.zip +0 -0
  198. package/dist/lib/business/AiChat/aichat-logo.svg +1 -0
  199. package/dist/lib/business/AiChat/index.d.ts +3 -3
  200. package/dist/lib/business/AiChat/index.js +311 -129
  201. package/dist/lib/business/AiChat/index.js.map +3 -3
  202. package/dist/lib/business/AiChat/index.module.less +24 -0
  203. package/dist/lib/business/AiChat/intentRecognizer.js.map +1 -1
  204. package/dist/lib/business/AiChat/navigationManager.js +6 -6
  205. package/dist/lib/business/AiChat/navigationManager.js.map +2 -2
  206. package/dist/lib/business/AiChat/sse.d.ts +15 -0
  207. package/dist/lib/business/AiChat/sse.js +117 -7
  208. package/dist/lib/business/AiChat/sse.js.map +2 -2
  209. package/dist/lib/business/AiChat/type.d.ts +22 -23
  210. package/dist/lib/business/AiChat/type.js.map +1 -1
  211. package/dist/lib/business/AiChat/useAiChat.js +104 -74
  212. package/dist/lib/business/AiChat/useAiChat.js.map +3 -3
  213. package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +1 -2
  214. package/dist/lib/business/AiChat/useTaskWorkflow.js +0 -34
  215. package/dist/lib/business/AiChat/useTaskWorkflow.js.map +2 -2
  216. package/dist/lib/business/DrawerPageInfo/index.js.map +1 -1
  217. package/dist/lib/business/Editor/index.d.ts +1 -1
  218. package/dist/lib/business/Editor/index.js.map +2 -2
  219. package/dist/lib/business/Empty/index.js +1 -1
  220. package/dist/lib/business/Empty/index.js.map +1 -1
  221. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +3 -3
  222. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
  223. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +4 -4
  224. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
  225. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +3 -3
  226. package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
  227. package/dist/lib/business/ModCommonFilter/index.d.ts +1 -1
  228. package/dist/lib/business/ModCommonFilter/index.js.map +2 -2
  229. package/dist/lib/business/YkCharts/Area.d.ts +18 -0
  230. package/dist/lib/business/YkCharts/Area.js +346 -0
  231. package/dist/lib/business/YkCharts/Area.js.map +7 -0
  232. package/dist/lib/business/YkCharts/Bar.d.ts +21 -0
  233. package/dist/lib/business/YkCharts/Bar.js +323 -0
  234. package/dist/lib/business/YkCharts/Bar.js.map +7 -0
  235. package/dist/lib/business/YkCharts/BarProperty.d.ts +21 -0
  236. package/dist/lib/business/YkCharts/BarProperty.js +370 -0
  237. package/dist/lib/business/YkCharts/BarProperty.js.map +7 -0
  238. package/dist/lib/business/YkCharts/BarTotal.d.ts +21 -0
  239. package/dist/lib/business/YkCharts/BarTotal.js +298 -0
  240. package/dist/lib/business/YkCharts/BarTotal.js.map +7 -0
  241. package/dist/lib/business/YkCharts/Line.d.ts +21 -0
  242. package/dist/lib/business/YkCharts/Line.js +349 -0
  243. package/dist/lib/business/YkCharts/Line.js.map +7 -0
  244. package/dist/lib/business/YkCharts/Pie.d.ts +19 -0
  245. package/dist/lib/business/YkCharts/Pie.js +117 -0
  246. package/dist/lib/business/YkCharts/Pie.js.map +7 -0
  247. package/dist/lib/business/YkCharts/PieProperty.d.ts +18 -0
  248. package/dist/lib/business/YkCharts/PieProperty.js +193 -0
  249. package/dist/lib/business/YkCharts/PieProperty.js.map +7 -0
  250. package/dist/lib/business/YkCharts/Pies.d.ts +26 -0
  251. package/dist/lib/business/YkCharts/Pies.js +341 -0
  252. package/dist/lib/business/YkCharts/Pies.js.map +7 -0
  253. package/dist/lib/business/YkCharts/constants.d.ts +1 -0
  254. package/dist/lib/business/YkCharts/constants.js +71 -0
  255. package/dist/lib/business/YkCharts/constants.js.map +7 -0
  256. package/dist/lib/business/YkCharts/hooks.d.ts +4 -0
  257. package/dist/lib/business/YkCharts/hooks.js +62 -0
  258. package/dist/lib/business/YkCharts/hooks.js.map +7 -0
  259. package/dist/lib/business/YkCharts/index.d.ts +9 -0
  260. package/dist/lib/business/YkCharts/index.js +61 -0
  261. package/dist/lib/business/YkCharts/index.js.map +7 -0
  262. package/dist/lib/business/YkCharts/index.module.less +164 -0
  263. package/dist/lib/business/YkCharts/tooltip.less +92 -0
  264. package/dist/lib/business/YkCharts/transformData.js +40 -0
  265. package/dist/lib/business/YkCharts/transformData.js.map +7 -0
  266. package/dist/lib/business/YkCharts/typing.d.ts +74 -0
  267. package/dist/lib/business/YkCharts/typing.js +18 -0
  268. package/dist/lib/business/YkCharts/typing.js.map +7 -0
  269. package/dist/lib/business/YkCharts/utils.d.ts +4 -0
  270. package/dist/lib/business/YkCharts/utils.js +143 -0
  271. package/dist/lib/business/YkCharts/utils.js.map +7 -0
  272. package/dist/lib/business/YkCharts/variables.less +13 -0
  273. package/dist/lib/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
  274. package/dist/lib/business/YkLoginModule/SmsLoginForm.js +171 -0
  275. package/dist/lib/business/YkLoginModule/SmsLoginForm.js.map +7 -0
  276. package/dist/lib/business/YkLoginModule/index.d.ts +48 -0
  277. package/dist/lib/business/YkLoginModule/index.js +206 -0
  278. package/dist/lib/business/YkLoginModule/index.js.map +7 -0
  279. package/dist/lib/business/YkLoginModule/styles.module.less +169 -0
  280. package/dist/lib/business/YkPorjectSelect/index.d.ts +1 -1
  281. package/dist/lib/business/YkPorjectSelect/index.js +3 -3
  282. package/dist/lib/business/YkPorjectSelect/index.js.map +2 -2
  283. package/dist/lib/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
  284. package/dist/lib/business/YkSqlEdit/index.d.ts +20 -0
  285. package/dist/lib/business/YkSqlEdit/index.js +202 -0
  286. package/dist/lib/business/YkSqlEdit/index.js.map +7 -0
  287. package/dist/lib/business/YkSqlEdit/sql-language.d.ts +11 -0
  288. package/dist/lib/business/YkSqlEdit/sql-language.js +1493 -0
  289. package/dist/lib/business/YkSqlEdit/sql-language.js.map +7 -0
  290. package/dist/lib/components/DebounceInput/index.js.map +2 -2
  291. package/dist/lib/components/MultipleSelect/index.d.ts +14 -0
  292. package/dist/lib/components/MultipleSelect/index.js +1 -1
  293. package/dist/lib/components/MultipleSelect/index.js.map +2 -2
  294. package/dist/lib/components/RefreshButton/index.js.map +2 -2
  295. package/dist/lib/components/SearchWithHistory/index.js +1 -1
  296. package/dist/lib/components/SearchWithHistory/index.js.map +2 -2
  297. package/dist/lib/components/TextWithToolTip/index.d.ts +1 -1
  298. package/dist/lib/components/TextWithToolTip/index.js.map +2 -2
  299. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
  300. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
  301. package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
  302. package/dist/lib/components/TreeTransfer/index.d.ts +1 -24
  303. package/dist/lib/components/TreeTransfer/index.js +3 -3
  304. package/dist/lib/components/TreeTransfer/index.js.map +2 -2
  305. package/dist/lib/components/TreeTransfer/utils/index.d.ts +1 -1
  306. package/dist/lib/components/TreeTransfer/utils/index.js.map +2 -2
  307. package/dist/lib/components/YKMarkdown/index.d.ts +11 -0
  308. package/dist/lib/components/YKMarkdown/index.js +188 -0
  309. package/dist/lib/components/YKMarkdown/index.js.map +7 -0
  310. package/dist/lib/components/YKMarkdown/index.module.less +83 -0
  311. package/dist/lib/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
  312. package/dist/lib/components/YkDateRangePicker/index.d.ts +9 -1
  313. package/dist/lib/components/YkDateRangePicker/index.js +127 -61
  314. package/dist/lib/components/YkDateRangePicker/index.js.map +2 -2
  315. package/dist/lib/components/YkDateRangePicker/index.module.less +33 -9
  316. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
  317. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
  318. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
  319. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
  320. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +22 -2
  321. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
  322. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
  323. package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
  324. package/dist/lib/components/YkRangeDateWithVS/index.d.ts +2 -2
  325. package/dist/lib/components/YkRangeDateWithVS/index.js.map +2 -2
  326. package/dist/lib/components/YkRangeDateWithVS/index.module.less +22 -4
  327. package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +1 -1
  328. package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +2 -2
  329. package/dist/lib/creative/ArcCheckbox/index.d.ts +12 -0
  330. package/dist/lib/creative/ArcCheckbox/index.js +50 -0
  331. package/dist/lib/creative/ArcCheckbox/index.js.map +7 -0
  332. package/dist/lib/creative/ArcCheckbox/index.module.less +102 -0
  333. package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +1 -1
  334. package/dist/lib/creative/ButtonWithProgress/index.d.ts +1 -1
  335. package/dist/lib/creative/ButtonWithProgress/index.js.map +2 -2
  336. package/dist/lib/creative/GlassSegmentedRadio/index.d.ts +24 -0
  337. package/dist/lib/creative/GlassSegmentedRadio/index.js +78 -0
  338. package/dist/lib/creative/GlassSegmentedRadio/index.js.map +7 -0
  339. package/dist/lib/creative/GlassSegmentedRadio/index.module.less +241 -0
  340. package/dist/lib/creative/SkillsWriter/index.d.ts +3 -0
  341. package/dist/lib/creative/SkillsWriter/index.js +200 -0
  342. package/dist/lib/creative/SkillsWriter/index.js.map +7 -0
  343. package/dist/lib/creative/SkillsWriter/index.module.less +21 -0
  344. package/dist/lib/index.d.ts +32 -24
  345. package/dist/lib/index.js +39 -24
  346. package/dist/lib/index.js.map +2 -2
  347. package/dist/lib/index.less +45 -0
  348. package/dist/lib/layout/FlexGrid/index.d.ts +1 -1
  349. package/dist/lib/layout/FlexGrid/index.js.map +2 -2
  350. package/dist/lib/layout/YkContainer/index.js.map +1 -1
  351. package/dist/lib/layout/YkDrawer/index.d.ts +1 -1
  352. package/dist/lib/layout/YkDrawer/index.js.map +2 -2
  353. package/dist/lib/ui/LabelSelect/demo.js +1 -1
  354. package/dist/lib/ui/LabelSelect/demo.js.map +2 -2
  355. package/dist/lib/ui/LabelSelect/index.d.ts +1 -1
  356. package/dist/lib/ui/LabelSelect/index.js +1 -1
  357. package/dist/lib/ui/LabelSelect/index.js.map +2 -2
  358. package/dist/lib/ui/LogicOperator/index.d.ts +1 -1
  359. package/dist/lib/ui/LogicOperator/index.js.map +2 -2
  360. package/dist/lib/ui/YkButton/index.d.ts +1 -1
  361. package/dist/lib/ui/YkButton/index.js.map +2 -2
  362. package/dist/lib/ui/YkCard/index.d.ts +1 -1
  363. package/dist/lib/ui/YkCard/index.js.map +2 -2
  364. package/dist/lib/ui/YkCheckbox/index.d.ts +1 -1
  365. package/dist/lib/ui/YkCheckbox/index.js.map +2 -2
  366. package/dist/lib/ui/YkDescriptions/index.d.ts +1 -1
  367. package/dist/lib/ui/YkDescriptions/index.js.map +2 -2
  368. package/dist/lib/ui/YkPagination/index.d.ts +1 -1
  369. package/dist/lib/ui/YkPagination/index.js.map +2 -2
  370. package/dist/lib/ui/YkRadio/index.d.ts +1 -1
  371. package/dist/lib/ui/YkRadio/index.js.map +2 -2
  372. package/dist/lib/ui/YkSegmented/index.d.ts +1 -1
  373. package/dist/lib/ui/YkSegmented/index.js.map +2 -2
  374. package/dist/lib/ui/YkSelect/index.d.ts +1 -1
  375. package/dist/lib/ui/YkSelect/index.js.map +2 -2
  376. package/dist/lib/ui/YkSpin/index.d.ts +1 -1
  377. package/dist/lib/ui/YkSpin/index.js.map +2 -2
  378. package/dist/lib/ui/YkStatistic/index.d.ts +1 -1
  379. package/dist/lib/ui/YkStatistic/index.js.map +2 -2
  380. package/dist/lib/ui/YkSwitch/index.d.ts +1 -1
  381. package/dist/lib/ui/YkSwitch/index.js.map +2 -2
  382. package/dist/lib/ui/YkTabs/index.d.ts +1 -1
  383. package/dist/lib/ui/YkTabs/index.js.map +2 -2
  384. package/dist/lib/ui/YkTooltip/index.d.ts +1 -1
  385. package/dist/lib/ui/YkTooltip/index.js.map +2 -2
  386. package/dist/lib/utils/styleUtils.js.map +2 -2
  387. package/dist/lib/utils/ykStorybookDoc.d.ts +15 -0
  388. package/dist/lib/utils/ykStorybookDoc.js +23 -1
  389. package/dist/lib/utils/ykStorybookDoc.js.map +2 -2
  390. package/package.json +151 -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.1`
5
+ > **生成时间**:`2026-04-29T10:16:03.287Z`
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.1` 等,以实际 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 web
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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
@@ -0,0 +1 @@
1
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_5864_85390)" fill="none"><path d="M11.2812 5.49104C11.2403 5.13024 10.9353 4.85751 10.5722 4.85714C10.2091 4.85677 9.90345 5.12887 9.86185 5.48959C9.59131 7.83515 8.89003 9.48448 7.75868 10.6158C6.62734 11.7472 4.97801 12.4485 2.63244 12.719C2.27173 12.7606 1.99963 13.0662 2 13.4293C2.00037 13.7924 2.2731 14.0975 2.63389 14.1383C4.94069 14.3996 6.62508 15.1006 7.78328 16.2379C8.93713 17.3709 9.65305 19.0198 9.85994 21.3489C9.89271 21.7178 10.2019 22.0004 10.5722 22C10.9425 21.9996 11.2511 21.7162 11.2831 21.3473C11.4813 19.0565 12.1966 17.3729 13.3562 16.2133C14.5157 15.0537 16.1994 14.3385 18.4902 14.1402C18.8591 14.1083 19.1424 13.7997 19.1429 13.4294C19.1433 13.0591 18.8606 12.7499 18.4918 12.7171C16.1627 12.5102 14.5137 11.7943 13.3807 10.6404C12.2435 9.48222 11.5425 7.79783 11.2812 5.49104Z" fill="#1E96EB"></path><path d="M18.9427 2.24651C18.9268 2.1062 18.8082 2.00014 18.667 2C18.5257 1.99986 18.4069 2.10567 18.3907 2.24595C18.2855 3.15811 18.0128 3.79952 17.5728 4.23949C17.1329 4.67946 16.4914 4.95218 15.5793 5.05739C15.439 5.07356 15.3332 5.19241 15.3333 5.33362C15.3335 5.47482 15.4395 5.59345 15.5798 5.60935C16.4769 5.71096 17.132 5.98357 17.5824 6.42584C18.0311 6.86644 18.3095 7.50771 18.39 8.41347C18.4027 8.55691 18.523 8.66683 18.667 8.66667C18.811 8.6665 18.931 8.55632 18.9434 8.41284C19.0205 7.52199 19.2987 6.86723 19.7496 6.41629C20.2006 5.96534 20.8553 5.68719 21.7462 5.61008C21.8896 5.59766 21.9998 5.47765 22 5.33365C22.0002 5.18964 21.8902 5.06939 21.7468 5.05664C20.841 4.97619 20.1998 4.69777 19.7592 4.24905C19.3169 3.79864 19.0443 3.1436 18.9427 2.24651Z" fill="#1E96EB"></path></g><defs><clipPath id="clip0_5864_85390"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>
@@ -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';