@choice-ui/react 1.4.3 → 1.4.6

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 (459) hide show
  1. package/dist/components/alert-dialog/dist/index.d.ts +20 -41
  2. package/dist/components/alert-dialog/dist/index.js +497 -0
  3. package/dist/components/alert-dialog/src/alert-dialog.js +1 -1
  4. package/dist/components/alert-dialog/src/hooks/use-alert-dialog.d.ts +1 -1
  5. package/dist/components/alert-dialog/src/index.d.ts +4 -5
  6. package/dist/components/alert-dialog/src/types.d.ts +11 -11
  7. package/dist/components/avatar/dist/index.js +4 -4
  8. package/dist/components/avatar/src/avatar.js +4 -4
  9. package/dist/components/badge/src/badge.js +2 -2
  10. package/dist/components/badge/src/index.d.ts +2 -1
  11. package/dist/components/button/dist/index.js +4 -4
  12. package/dist/components/button/src/button.js +4 -4
  13. package/dist/components/calendar/dist/index.d.ts +296 -296
  14. package/dist/components/calendar/dist/index.js +57 -56
  15. package/dist/components/calendar/src/date-range-input/date-range-input.d.ts +5 -5
  16. package/dist/components/calendar/src/time-calendar/time-calendar.d.ts +3 -3
  17. package/dist/components/calendar/src/time-calendar/time-calendar.js +2 -2
  18. package/dist/components/calendar/src/time-input/time-input.d.ts +9 -9
  19. package/dist/components/calendar/src/time-input/time-input.js +4 -4
  20. package/dist/components/calendar/src/types.d.ts +165 -165
  21. package/dist/components/calendar/src/utils/constants.js +32 -31
  22. package/dist/components/calendar/src/utils/date-comparisons.d.ts +34 -34
  23. package/dist/components/calendar/src/utils/locale.d.ts +12 -12
  24. package/dist/components/calendar/src/utils/month.d.ts +3 -3
  25. package/dist/components/calendar/src/utils/month.js +1 -1
  26. package/dist/components/calendar/src/utils/parsers/month-names.js +3 -3
  27. package/dist/components/calendar/src/utils/parsers/numeric-utils.d.ts +20 -20
  28. package/dist/components/calendar/src/utils/parsers/numeric-utils.js +8 -8
  29. package/dist/components/calendar/src/utils/parsers/parsers.d.ts +17 -17
  30. package/dist/components/calendar/src/utils/parsers/parsers.js +2 -2
  31. package/dist/components/calendar/src/utils/parsers/prediction.d.ts +7 -7
  32. package/dist/components/calendar/src/utils/parsers/relative-dates.js +6 -6
  33. package/dist/components/calendar/src/utils/quarter.d.ts +13 -13
  34. package/dist/components/calendar/src/utils/quarter.js +6 -6
  35. package/dist/components/calendar/src/utils/time.d.ts +8 -8
  36. package/dist/components/calendar/src/utils/year.d.ts +3 -3
  37. package/dist/components/calendar/src/utils/year.js +3 -3
  38. package/dist/components/checkbox/dist/index.d.ts +1 -12
  39. package/dist/components/checkbox/dist/index.js +9 -9
  40. package/dist/components/checkbox/src/checkbox-label.js +2 -2
  41. package/dist/components/checkbox/src/checkbox.js +6 -5
  42. package/dist/components/checkbox/src/context.js +1 -1
  43. package/dist/components/checkbox/src/index.d.ts +0 -3
  44. package/dist/components/chip/dist/index.js +6 -6
  45. package/dist/components/chip/src/chip.js +6 -6
  46. package/dist/components/chip/src/index.d.ts +2 -1
  47. package/dist/components/chips-input/dist/index.js +270 -0
  48. package/dist/components/chips-input/src/index.d.ts +2 -1
  49. package/dist/components/code-block/dist/index.d.ts +14 -32
  50. package/dist/components/code-block/dist/index.js +211 -147
  51. package/dist/components/code-block/src/code-block.d.ts +8 -1
  52. package/dist/components/code-block/src/code-block.js +14 -3
  53. package/dist/components/code-block/src/components/code-block-code.js +31 -5
  54. package/dist/components/code-block/src/components/code-block-header.js +45 -10
  55. package/dist/components/code-block/src/index.d.ts +3 -9
  56. package/dist/components/combobox/dist/index.d.ts +21 -2
  57. package/dist/components/combobox/dist/index.js +16 -13
  58. package/dist/components/combobox/src/combobox-trigger.d.ts +1 -1
  59. package/dist/components/combobox/src/combobox-trigger.js +7 -4
  60. package/dist/components/combobox/src/combobox.d.ts +20 -1
  61. package/dist/components/combobox/src/combobox.js +10 -10
  62. package/dist/components/command/dist/index.d.ts +65 -4
  63. package/dist/components/command/src/command.js +6 -5
  64. package/dist/components/command/src/components/command-divider.d.ts +4 -1
  65. package/dist/components/command/src/components/command-group.d.ts +16 -1
  66. package/dist/components/command/src/components/command-group.js +56 -54
  67. package/dist/components/command/src/components/command-input.js +3 -3
  68. package/dist/components/command/src/components/command-item.d.ts +1 -1
  69. package/dist/components/command/src/components/command-item.js +117 -115
  70. package/dist/components/command/src/components/command-loading.d.ts +8 -0
  71. package/dist/components/command/src/components/command-loading.js +1 -1
  72. package/dist/components/command/src/context/create-command-context.js +1 -1
  73. package/dist/components/command/src/hooks/use-schedule-layout-effect.d.ts +1 -1
  74. package/dist/components/command/src/hooks/use-value.js +2 -2
  75. package/dist/components/command/src/index.d.ts +16 -8
  76. package/dist/components/command/src/tv.d.ts +30 -0
  77. package/dist/components/command/src/tv.js +10 -0
  78. package/dist/components/command/src/types.d.ts +8 -0
  79. package/dist/components/command/src/utils/constants.d.ts +1 -1
  80. package/dist/components/command/src/utils/constants.js +1 -1
  81. package/dist/components/command/src/utils/helpers.d.ts +0 -1
  82. package/dist/components/command/src/utils/helpers.js +1 -3
  83. package/dist/components/command/src/utils/index.d.ts +1 -0
  84. package/dist/components/comments/src/comment-input/components/comment-input-mention-popover.js +4 -2
  85. package/dist/components/comments/src/comments.js +1 -1
  86. package/dist/components/context-input/dist/index.d.ts +47 -251
  87. package/dist/components/context-input/src/components/mention-menu.d.ts +5 -4
  88. package/dist/components/context-input/src/components/mention-menu.js +19 -4
  89. package/dist/components/context-input/src/components/mention.d.ts +2 -2
  90. package/dist/components/context-input/src/components/slate-editor.js +4 -2
  91. package/dist/components/context-input/src/context-input.js +31 -16
  92. package/dist/components/context-input/src/extensions/with-mentions.d.ts +1 -1
  93. package/dist/components/context-input/src/extensions/with-mentions.js +10 -9
  94. package/dist/components/context-input/src/hooks/use-context-input.js +87 -46
  95. package/dist/components/context-input/src/hooks/use-mentions.d.ts +11 -10
  96. package/dist/components/context-input/src/hooks/use-mentions.js +147 -128
  97. package/dist/components/context-input/src/index.d.ts +4 -5
  98. package/dist/components/context-input/src/types.d.ts +12 -12
  99. package/dist/components/context-input/src/utils/mention-spacing.d.ts +16 -16
  100. package/dist/components/context-input/src/utils/slate-converters.d.ts +6 -6
  101. package/dist/components/context-input/src/utils/slate-converters.js +2 -2
  102. package/dist/components/context-input/src/utils/text-extraction.js +7 -1
  103. package/dist/components/context-menu/src/context-menu.js +10 -4
  104. package/dist/components/dialog/dist/index.js +1 -2
  105. package/dist/components/dialog/src/dialog.js +0 -1
  106. package/dist/components/dialog/src/hooks/use-floating-dialog.js +1 -1
  107. package/dist/components/dialog/src/index.d.ts +3 -2
  108. package/dist/components/dropdown/dist/index.d.ts +1 -2
  109. package/dist/components/dropdown/dist/index.js +23 -8
  110. package/dist/components/dropdown/src/dropdown.d.ts +1 -2
  111. package/dist/components/dropdown/src/dropdown.js +23 -8
  112. package/dist/components/emoji-picker/dist/index.d.ts +33 -1
  113. package/dist/components/emoji-picker/dist/index.js +3 -1
  114. package/dist/components/emoji-picker/src/emoji-picker.d.ts +1 -1
  115. package/dist/components/emoji-picker/src/emoji-picker.js +3 -1
  116. package/dist/components/emoji-picker/src/index.d.ts +3 -1
  117. package/dist/components/form/dist/index.d.ts +93 -98
  118. package/dist/components/form/src/adapters/base-adapter.d.ts +3 -3
  119. package/dist/components/form/src/adapters/checkbox-adapter.d.ts +1 -1
  120. package/dist/components/form/src/adapters/chips-input-adapter.d.ts +9 -0
  121. package/dist/components/form/src/adapters/chips-input-adapter.js +38 -0
  122. package/dist/components/form/src/adapters/index.d.ts +8 -7
  123. package/dist/components/form/src/adapters/input-adapter.d.ts +1 -1
  124. package/dist/components/form/src/adapters/multi-select-adapter.d.ts +1 -1
  125. package/dist/components/form/src/adapters/numeric-input-adapter.d.ts +1 -1
  126. package/dist/components/form/src/adapters/raido-group-adapter.d.ts +1 -7
  127. package/dist/components/form/src/adapters/range-adapter.d.ts +1 -7
  128. package/dist/components/form/src/adapters/segmented-adapter.d.ts +1 -7
  129. package/dist/components/form/src/adapters/select-adapter.d.ts +1 -1
  130. package/dist/components/form/src/adapters/switch-adapter.d.ts +1 -1
  131. package/dist/components/form/src/adapters/textarea-adapter.d.ts +1 -1
  132. package/dist/components/form/src/index.d.ts +18 -16
  133. package/dist/components/form/src/index.js +16 -13
  134. package/dist/components/form/src/types.d.ts +58 -51
  135. package/dist/components/hint/dist/index.d.ts +10 -54
  136. package/dist/components/hint/src/components/info-content.d.ts +3 -5
  137. package/dist/components/hint/src/components/info-content.js +14 -6
  138. package/dist/components/hint/src/components/info-trigger.d.ts +2 -3
  139. package/dist/components/hint/src/components/info-trigger.js +4 -2
  140. package/dist/components/hint/src/context/hint-context.d.ts +2 -0
  141. package/dist/components/hint/src/context/hint-context.js +1 -1
  142. package/dist/components/hint/src/hint.d.ts +7 -7
  143. package/dist/components/hint/src/hint.js +24 -29
  144. package/dist/components/hint/src/hooks/use-hint.d.ts +4 -2
  145. package/dist/components/hint/src/hooks/use-hint.js +12 -4
  146. package/dist/components/hint/src/index.d.ts +3 -3
  147. package/dist/components/hint/src/tv.d.ts +33 -0
  148. package/dist/components/hint/src/tv.js +11 -0
  149. package/dist/components/icon-button/dist/index.js +2 -2
  150. package/dist/components/icon-button/src/icon-button.js +2 -2
  151. package/dist/components/index.d.ts +3 -0
  152. package/dist/components/input/dist/index.js +4 -4
  153. package/dist/components/input/src/input.js +3 -3
  154. package/dist/components/input/src/tv.js +1 -1
  155. package/dist/components/kbd/dist/index.js +4 -4
  156. package/dist/components/kbd/src/kbd.js +4 -4
  157. package/dist/components/label/dist/index.js +3 -3
  158. package/dist/components/label/src/tv.js +3 -3
  159. package/dist/components/link-button/dist/index.js +3 -3
  160. package/dist/components/link-button/src/link-button.js +3 -3
  161. package/dist/components/list/src/components/list-content.js +2 -2
  162. package/dist/components/list/src/components/list-divider.js +3 -3
  163. package/dist/components/list/src/components/list-item.js +5 -5
  164. package/dist/components/list/src/components/list-label.js +2 -2
  165. package/dist/components/list/src/components/list-sub-trigger.js +4 -4
  166. package/dist/components/list/src/list.js +2 -2
  167. package/dist/components/md-input/dist/index.d.ts +8 -104
  168. package/dist/components/md-input/src/components/extensions/md-input-mention.d.ts +6 -4
  169. package/dist/components/md-input/src/components/extensions/md-input-mention.js +23 -6
  170. package/dist/components/md-input/src/components/md-input-container.js +1 -0
  171. package/dist/components/md-input/src/components/md-input-editor.js +4 -1
  172. package/dist/components/md-input/src/components/md-input-footer.js +5 -1
  173. package/dist/components/md-input/src/components/toolbar/default-actions.d.ts +2 -2
  174. package/dist/components/md-input/src/components/toolbar/toolbar-button.d.ts +1 -0
  175. package/dist/components/md-input/src/components/toolbar/toolbar-button.js +1 -7
  176. package/dist/components/md-input/src/components/toolbar/toolbar.d.ts +2 -2
  177. package/dist/components/md-input/src/hooks/use-markdown-mentions.d.ts +5 -4
  178. package/dist/components/md-input/src/hooks/use-markdown-mentions.js +31 -4
  179. package/dist/components/md-input/src/index.d.ts +1 -4
  180. package/dist/components/md-input/src/md-input.js +18 -14
  181. package/dist/components/md-input/src/tv.d.ts +3 -0
  182. package/dist/components/md-input/src/tv.js +2 -1
  183. package/dist/components/md-input/src/types.d.ts +18 -16
  184. package/dist/components/md-render/dist/index.d.ts +1 -4
  185. package/dist/components/md-render/dist/index.js +8 -9
  186. package/dist/components/md-render/src/components/markdown-components.js +3 -3
  187. package/dist/components/md-render/src/index.d.ts +0 -1
  188. package/dist/components/md-render/src/md-render.js +5 -4
  189. package/dist/components/md-render/src/tv.js +1 -1
  190. package/dist/components/menubar/dist/index.d.ts +50 -0
  191. package/dist/components/menubar/src/components/index.d.ts +3 -0
  192. package/dist/components/menubar/src/components/menubar-divider.d.ts +8 -0
  193. package/dist/components/menubar/src/components/menubar-divider.js +24 -0
  194. package/dist/components/menubar/src/components/menubar-item.d.ts +8 -0
  195. package/dist/components/menubar/src/components/menubar-item.js +195 -0
  196. package/dist/components/menubar/src/components/menubar-trigger.d.ts +8 -0
  197. package/dist/components/menubar/src/components/menubar-trigger.js +45 -0
  198. package/dist/components/menubar/src/context/index.d.ts +1 -0
  199. package/dist/components/menubar/src/context/menubar-context.d.ts +34 -0
  200. package/dist/components/menubar/src/context/menubar-context.js +13 -0
  201. package/dist/components/menubar/src/index.d.ts +3 -0
  202. package/dist/components/menubar/src/menubar.d.ts +22 -0
  203. package/dist/components/menubar/src/menubar.js +177 -0
  204. package/dist/components/menubar/src/tv.d.ts +108 -0
  205. package/dist/components/menubar/src/tv.js +72 -0
  206. package/dist/components/menubar/tsup.config.d.ts +2 -0
  207. package/dist/components/menus/dist/index.d.ts +144 -143
  208. package/dist/components/menus/dist/index.js +50 -49
  209. package/dist/components/menus/src/components/menu-button.js +2 -2
  210. package/dist/components/menus/src/components/menu-checkbox.d.ts +1 -2
  211. package/dist/components/menus/src/components/menu-checkbox.js +2 -2
  212. package/dist/components/menus/src/components/menu-divider.js +3 -3
  213. package/dist/components/menus/src/components/menu-item.js +5 -5
  214. package/dist/components/menus/src/components/menu-label.js +2 -2
  215. package/dist/components/menus/src/components/menu-scroll-arrow.d.ts +2 -2
  216. package/dist/components/menus/src/components/menu-scroll-arrow.js +13 -3
  217. package/dist/components/menus/src/components/menu-search.js +3 -3
  218. package/dist/components/menus/src/components/menu-trigger.js +4 -4
  219. package/dist/components/menus/src/context/menu-context-item.d.ts +6 -6
  220. package/dist/components/menus/src/context/menu-context-item.js +2 -2
  221. package/dist/components/menus/src/context/menu-context-sub-trigger.js +4 -19
  222. package/dist/components/menus/src/context/menu-context.d.ts +2 -2
  223. package/dist/components/menus/src/hooks/use-menu-base-refs.d.ts +12 -12
  224. package/dist/components/menus/src/hooks/use-menu-children.d.ts +16 -16
  225. package/dist/components/menus/src/hooks/use-menu-floating.d.ts +22 -22
  226. package/dist/components/menus/src/hooks/use-menu-refs.d.ts +8 -8
  227. package/dist/components/menus/src/hooks/use-menu-refs.js +2 -2
  228. package/dist/components/menus/src/hooks/use-menu-scroll-height.d.ts +11 -11
  229. package/dist/components/menus/src/hooks/use-menu-scroll.d.ts +18 -18
  230. package/dist/components/menus/src/hooks/use-menu-selection.d.ts +21 -21
  231. package/dist/components/menus/src/hooks/use-menu-state.d.ts +11 -11
  232. package/dist/components/menus/src/hooks/use-menu-state.js +4 -4
  233. package/dist/components/menus/src/hooks/use-menu-touch.d.ts +11 -11
  234. package/dist/components/menus/src/hooks/use-menu-tree.d.ts +15 -15
  235. package/dist/components/menus/src/index.d.ts +5 -0
  236. package/dist/components/menus/src/menus.js +2 -2
  237. package/dist/components/menus/src/tv.d.ts +15 -0
  238. package/dist/components/menus/src/tv.js +8 -2
  239. package/dist/components/modal/dist/index.d.ts +3 -1
  240. package/dist/components/modal/dist/index.js +18 -11
  241. package/dist/components/modal/src/components/modal-content.js +2 -2
  242. package/dist/components/modal/src/components/modal-footer.js +2 -2
  243. package/dist/components/modal/src/components/modal-header.d.ts +3 -1
  244. package/dist/components/modal/src/components/modal-header.js +12 -5
  245. package/dist/components/modal/src/modal.js +2 -2
  246. package/dist/components/multi-select/dist/index.js +13 -11
  247. package/dist/components/multi-select/src/components/multi-select-trigger.js +8 -8
  248. package/dist/components/multi-select/src/multi-select.js +5 -3
  249. package/dist/components/numeric-input/dist/index.d.ts +10 -117
  250. package/dist/components/numeric-input/dist/index.js +18 -24
  251. package/dist/components/numeric-input/src/components/numeric-input-element.js +2 -2
  252. package/dist/components/numeric-input/src/components/numeric-input-menu-trigger.d.ts +1 -1
  253. package/dist/components/numeric-input/src/components/numeric-input-menu-trigger.js +2 -2
  254. package/dist/components/numeric-input/src/components/numeric-input-variable.d.ts +1 -2
  255. package/dist/components/numeric-input/src/components/numeric-input-variable.js +3 -3
  256. package/dist/components/numeric-input/src/hooks/use-input-interactions.d.ts +3 -3
  257. package/dist/components/numeric-input/src/hooks/use-numeric-input.d.ts +3 -3
  258. package/dist/components/numeric-input/src/hooks/use-numeric-value-processing.d.ts +3 -3
  259. package/dist/components/numeric-input/src/hooks/use-step-calculation.d.ts +6 -6
  260. package/dist/components/numeric-input/src/index.d.ts +5 -4
  261. package/dist/components/numeric-input/src/numeric-input.js +9 -9
  262. package/dist/components/numeric-input/src/utils/error-handler.d.ts +8 -8
  263. package/dist/components/numeric-input/src/utils/expression-evaluator.d.ts +11 -11
  264. package/dist/components/numeric-input/src/utils/input-parser.d.ts +8 -8
  265. package/dist/components/numeric-input/src/utils/numeric-value-processor.d.ts +6 -6
  266. package/dist/components/numeric-input/src/utils/pattern-parser.d.ts +7 -7
  267. package/dist/components/numeric-input/src/utils/value-comparator.d.ts +16 -16
  268. package/dist/components/numeric-input/src/utils/value-processor.d.ts +14 -14
  269. package/dist/components/pagination/src/components/pagination-items-per-page.js +1 -1
  270. package/dist/components/pagination/src/components/pagination-navigation.js +5 -5
  271. package/dist/components/pagination/src/components/pagination-root.js +3 -3
  272. package/dist/components/pagination/src/components/pagination-spinner.js +20 -19
  273. package/dist/components/pagination/src/context/index.d.ts +1 -0
  274. package/dist/components/popover/dist/index.d.ts +2 -4
  275. package/dist/components/popover/dist/index.js +25 -33
  276. package/dist/components/popover/src/components/popover-header.js +1 -1
  277. package/dist/components/popover/src/hooks/use-drag.d.ts +3 -3
  278. package/dist/components/popover/src/hooks/use-floating-popover.d.ts +0 -2
  279. package/dist/components/popover/src/hooks/use-floating-popover.js +16 -13
  280. package/dist/components/popover/src/index.d.ts +2 -1
  281. package/dist/components/popover/src/popover.d.ts +1 -2
  282. package/dist/components/popover/src/popover.js +11 -21
  283. package/dist/components/progress/src/index.d.ts +4 -2
  284. package/dist/components/radio/dist/index.d.ts +1 -17
  285. package/dist/components/radio/dist/index.js +7 -10
  286. package/dist/components/radio/src/context.js +1 -1
  287. package/dist/components/radio/src/index.d.ts +0 -4
  288. package/dist/components/radio/src/radio-label.js +2 -2
  289. package/dist/components/radio/src/radio.js +4 -4
  290. package/dist/components/range/dist/index.js +16 -16
  291. package/dist/components/range/src/index.d.ts +4 -2
  292. package/dist/components/range/src/range-tuple.js +10 -10
  293. package/dist/components/range/src/range.js +6 -6
  294. package/dist/components/rich-input/dist/index.d.ts +12 -366
  295. package/dist/components/rich-input/src/components/rich-input-editable-component.d.ts +2 -2
  296. package/dist/components/rich-input/src/components/rich-input-viewport.d.ts +2 -2
  297. package/dist/components/rich-input/src/hooks/use-editor-config.d.ts +1 -1
  298. package/dist/components/rich-input/src/hooks/use-editor-effects.js +3 -0
  299. package/dist/components/rich-input/src/hooks/use-floating-ui.js +1 -1
  300. package/dist/components/rich-input/src/hooks/use-keyboard-shortcuts.d.ts +9 -9
  301. package/dist/components/rich-input/src/hooks/use-rich-input.d.ts +2 -2
  302. package/dist/components/rich-input/src/hooks/use-rich-input.js +40 -17
  303. package/dist/components/rich-input/src/hooks/use-selection-events.js +1 -2
  304. package/dist/components/rich-input/src/index.d.ts +3 -5
  305. package/dist/components/rich-input/src/rich-input-base.js +1 -1
  306. package/dist/components/rich-input/src/utils/custom-options.js +1 -1
  307. package/dist/components/rich-input/src/utils/editor-utils.js +1 -1
  308. package/dist/components/rich-input/src/utils/markdown-to-slate.d.ts +2 -2
  309. package/dist/components/rich-input/src/utils/slate-to-markdown.d.ts +1 -1
  310. package/dist/components/rich-input/src/utils/slate-to-markdown.js +9 -0
  311. package/dist/components/scroll-area/dist/index.d.ts +19 -19
  312. package/dist/components/scroll-area/dist/index.js +24 -24
  313. package/dist/components/scroll-area/src/components/scroll-area-corner.js +2 -2
  314. package/dist/components/scroll-area/src/components/scroll-area-root.js +3 -3
  315. package/dist/components/scroll-area/src/components/scroll-area-scrollbar.js +2 -2
  316. package/dist/components/scroll-area/src/components/scroll-area-thumb.js +2 -2
  317. package/dist/components/scroll-area/src/hooks/use-scroll-performance-monitor.d.ts +6 -6
  318. package/dist/components/scroll-area/src/hooks/use-scroll-performance-monitor.js +3 -3
  319. package/dist/components/scroll-area/src/hooks/use-scroll-state-and-visibility.d.ts +1 -1
  320. package/dist/components/scroll-area/src/hooks/use-scroll-state-and-visibility.js +3 -3
  321. package/dist/components/scroll-area/src/hooks/use-scrollbar.d.ts +2 -2
  322. package/dist/components/scroll-area/src/hooks/use-thumb.d.ts +2 -2
  323. package/dist/components/scroll-area/src/tv.d.ts +18 -18
  324. package/dist/components/scroll-area/src/tv.js +12 -12
  325. package/dist/components/scroll-area/src/types.d.ts +8 -8
  326. package/dist/components/scroll-area/src/utils/index.d.ts +3 -3
  327. package/dist/components/search-input/dist/index.js +3 -3
  328. package/dist/components/search-input/src/index.d.ts +2 -1
  329. package/dist/components/search-input/src/search-input.js +3 -3
  330. package/dist/components/segmented/dist/index.js +5 -5
  331. package/dist/components/segmented/src/segmented-item.js +3 -3
  332. package/dist/components/segmented/src/segmented.js +2 -2
  333. package/dist/components/select/dist/index.js +4 -4
  334. package/dist/components/select/src/select.js +4 -4
  335. package/dist/components/separator/dist/index.d.ts +26 -0
  336. package/dist/components/separator/src/index.d.ts +2 -0
  337. package/dist/components/separator/src/separator.d.ts +22 -0
  338. package/dist/components/separator/src/separator.js +33 -0
  339. package/dist/components/separator/src/tv.d.ts +76 -0
  340. package/dist/components/separator/src/tv.js +25 -0
  341. package/dist/components/separator/tsup.config.d.ts +2 -0
  342. package/dist/components/skeleton/dist/index.d.ts +1 -28
  343. package/dist/components/skeleton/src/context/skeleton-context.js +1 -1
  344. package/dist/components/skeleton/src/hooks/use-skeleton.d.ts +1 -2
  345. package/dist/components/skeleton/src/hooks/use-skeleton.js +1 -1
  346. package/dist/components/skeleton/src/index.d.ts +1 -3
  347. package/dist/components/skeleton/src/skeleton.d.ts +0 -13
  348. package/dist/components/skeleton/src/skeleton.js +4 -6
  349. package/dist/components/skeleton/src/tv.d.ts +18 -12
  350. package/dist/components/skeleton/src/tv.js +10 -6
  351. package/dist/components/slot/dist/index.d.ts +10 -10
  352. package/dist/components/slot/dist/index.js +4 -2
  353. package/dist/components/slot/src/slot.d.ts +12 -12
  354. package/dist/components/slot/src/slot.js +6 -3
  355. package/dist/components/stackflow/src/context.js +1 -1
  356. package/dist/components/stackflow/src/index.d.ts +2 -1
  357. package/dist/components/switch/dist/index.d.ts +2 -2
  358. package/dist/components/switch/dist/index.js +6 -7
  359. package/dist/components/switch/src/index.d.ts +2 -1
  360. package/dist/components/switch/src/switch.js +6 -6
  361. package/dist/components/table/dist/index.d.ts +679 -0
  362. package/dist/components/table/index.d.ts +1 -0
  363. package/dist/components/table/src/components/column-resizer.d.ts +8 -0
  364. package/dist/components/table/src/components/column-resizer.js +58 -0
  365. package/dist/components/table/src/components/drag-guide.d.ts +6 -0
  366. package/dist/components/table/src/components/drag-guide.js +64 -0
  367. package/dist/components/table/src/components/index.d.ts +12 -0
  368. package/dist/components/table/src/components/resize-guide.d.ts +5 -0
  369. package/dist/components/table/src/components/resize-guide.js +25 -0
  370. package/dist/components/table/src/components/table-body.d.ts +6 -0
  371. package/dist/components/table/src/components/table-body.js +335 -0
  372. package/dist/components/table/src/components/table-cell.d.ts +6 -0
  373. package/dist/components/table/src/components/table-cell.js +89 -0
  374. package/dist/components/table/src/components/table-column.d.ts +5 -0
  375. package/dist/components/table/src/components/table-column.js +269 -0
  376. package/dist/components/table/src/components/table-empty.d.ts +8 -0
  377. package/dist/components/table/src/components/table-empty.js +10 -0
  378. package/dist/components/table/src/components/table-footer.d.ts +7 -0
  379. package/dist/components/table/src/components/table-footer.js +15 -0
  380. package/dist/components/table/src/components/table-header.d.ts +3 -0
  381. package/dist/components/table/src/components/table-header.js +88 -0
  382. package/dist/components/table/src/components/table-root.d.ts +3 -0
  383. package/dist/components/table/src/components/table-root.js +317 -0
  384. package/dist/components/table/src/components/table-row.d.ts +23 -0
  385. package/dist/components/table/src/components/table-row.js +166 -0
  386. package/dist/components/table/src/components/table-value.d.ts +6 -0
  387. package/dist/components/table/src/components/table-value.js +8 -0
  388. package/dist/components/table/src/context.d.ts +121 -0
  389. package/dist/components/table/src/context.js +63 -0
  390. package/dist/components/table/src/hooks/index.d.ts +4 -0
  391. package/dist/components/table/src/hooks/use-column-order.d.ts +26 -0
  392. package/dist/components/table/src/hooks/use-column-order.js +95 -0
  393. package/dist/components/table/src/hooks/use-column-resize.d.ts +17 -0
  394. package/dist/components/table/src/hooks/use-column-resize.js +75 -0
  395. package/dist/components/table/src/hooks/use-consecutive-selection-style.d.ts +12 -0
  396. package/dist/components/table/src/hooks/use-consecutive-selection-style.js +28 -0
  397. package/dist/components/table/src/hooks/use-table.d.ts +35 -0
  398. package/dist/components/table/src/hooks/use-table.js +245 -0
  399. package/dist/components/table/src/index.d.ts +4 -0
  400. package/dist/components/table/src/table.d.ts +88 -0
  401. package/dist/components/table/src/table.js +24 -0
  402. package/dist/components/table/src/tv.d.ts +176 -0
  403. package/dist/components/table/src/tv.js +97 -0
  404. package/dist/components/table/src/types.d.ts +292 -0
  405. package/dist/components/table/tsup.config.d.ts +2 -0
  406. package/dist/components/tabs/dist/index.js +4 -3
  407. package/dist/components/tabs/src/tabs.d.ts +2 -2
  408. package/dist/components/tabs/src/tabs.js +5 -4
  409. package/dist/components/text-field/dist/index.d.ts +1 -1
  410. package/dist/components/text-field/dist/index.js +10 -10
  411. package/dist/components/text-field/src/components/field-addon.d.ts +1 -2
  412. package/dist/components/text-field/src/index.d.ts +3 -1
  413. package/dist/components/text-field/src/text-field.js +10 -10
  414. package/dist/components/textarea/dist/index.d.ts +33 -5
  415. package/dist/components/textarea/dist/index.js +32 -7
  416. package/dist/components/textarea/src/components/autosize/index.d.ts +6 -1
  417. package/dist/components/textarea/src/components/autosize/index.js +31 -6
  418. package/dist/components/textarea/src/textarea.js +1 -1
  419. package/dist/components/textarea/src/types.d.ts +33 -5
  420. package/dist/components/toggle-button/dist/index.d.ts +26 -2
  421. package/dist/components/toggle-button/src/context.d.ts +11 -0
  422. package/dist/components/toggle-button/src/context.js +13 -0
  423. package/dist/components/toggle-button/src/index.d.ts +2 -0
  424. package/dist/components/toggle-button/src/toggle-button.js +4 -4
  425. package/dist/components/toggle-button/src/toggle-group.d.ts +26 -0
  426. package/dist/components/toggle-button/src/toggle-group.js +156 -0
  427. package/dist/components/toggle-button/src/tv.d.ts +67 -3
  428. package/dist/components/toggle-button/src/tv.js +45 -14
  429. package/dist/components/tooltip/dist/index.d.ts +10 -43
  430. package/dist/components/tooltip/dist/index.js +35 -33
  431. package/dist/components/tooltip/src/components/tooltip-arrow.js +1 -1
  432. package/dist/components/tooltip/src/components/tooltip-content.js +5 -4
  433. package/dist/components/tooltip/src/context/index.d.ts +1 -0
  434. package/dist/components/tooltip/src/hooks/use-tooltip.js +3 -3
  435. package/dist/components/tooltip/src/index.d.ts +2 -4
  436. package/dist/components/tooltip/src/tooltip.d.ts +7 -1
  437. package/dist/components/tooltip/src/tooltip.js +6 -1
  438. package/dist/components/tooltip/src/tv.js +1 -1
  439. package/dist/components/virtualized-grid/dist/index.d.ts +2 -2
  440. package/dist/components/virtualized-grid/src/use-item-pool.js +14 -26
  441. package/dist/components/virtualized-grid/src/use-virtualized-grid.d.ts +1 -1
  442. package/dist/components/virtualized-grid/src/use-virtualized-grid.js +14 -8
  443. package/dist/components/virtualized-grid/src/utility.d.ts +1 -1
  444. package/dist/components/virtualized-grid/src/utility.js +37 -31
  445. package/dist/components/virtualized-grid/src/virtualized-grid.js +27 -17
  446. package/dist/context/choice-ui-provider.d.ts +35 -0
  447. package/dist/context/choice-ui-provider.js +14 -0
  448. package/dist/context/index.d.ts +2 -0
  449. package/dist/index.d.ts +1 -0
  450. package/dist/index.js +53 -177
  451. package/package.json +1 -1
  452. package/dist/components/code-block/src/index.js +0 -15
  453. package/dist/components/rich-input/src/hooks/use-mouse-events.js +0 -113
  454. package/dist/components/rich-input/src/hooks/use-validation.js +0 -80
  455. package/dist/components/rich-input/src/utils/markdown-to-slate.js +0 -219
  456. /package/dist/components/command/src/{command-score.d.ts → utils/command-score.d.ts} +0 -0
  457. /package/dist/components/command/src/{command-score.js → utils/command-score.js} +0 -0
  458. /package/dist/components/pagination/src/{components → context}/pagination-context.d.ts +0 -0
  459. /package/dist/components/pagination/src/{components → context}/pagination-context.js +0 -0
@@ -8,25 +8,25 @@ import * as React$1 from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
 
10
10
  /**
11
- * 日期格式字符串
11
+ * Date format string
12
12
  *
13
- * 支持所有 date-fns 格式字符串,常用格式示例:
13
+ * Supports all date-fns format strings, common format examples:
14
14
  *
15
- * **年份**:
16
- * - yyyy: 2025 (4位年份)
17
- * - yy: 25 (2位年份)
15
+ * **Year**:
16
+ * - yyyy: 2025 (4-digit year)
17
+ * - yy: 25 (2-digit year)
18
18
  *
19
- * **月份**:
20
- * - MMMM: December (完整月份名)
21
- * - MMM: Dec (缩写月份名)
22
- * - MM: 12 (2位数字月份)
23
- * - M: 12 (1-2位数字月份)
19
+ * **Month**:
20
+ * - MMMM: December (full month name)
21
+ * - MMM: Dec (abbreviated month name)
22
+ * - MM: 12 (2-digit month)
23
+ * - M: 12 (1-2 digit month)
24
24
  *
25
- * **日期**:
26
- * - dd: 31 (2位日期)
27
- * - d: 31 (1-2位日期)
25
+ * **Date**:
26
+ * - dd: 31 (2-digit date)
27
+ * - d: 31 (1-2 digit date)
28
28
  *
29
- * **常用组合**:
29
+ * **Common combinations**:
30
30
  * - "yyyy-MM-dd" → 2025-12-31
31
31
  * - "yy-MM-dd" → 25-12-31
32
32
  * - "yyyy年MM月dd日" → 2025年12月31日
@@ -40,112 +40,112 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
40
40
  */
41
41
  type DateDataFormat = string;
42
42
  /**
43
- * 时间格式字符串
43
+ * Time format string
44
44
  *
45
- * 支持所有 date-fns 时间格式字符串,常用格式示例:
45
+ * Supports all date-fns time format strings, common format examples:
46
46
  *
47
- * **24小时制**:
48
- * - "HH:mm" → 09:30, 14:45 (2位小时)
49
- * - "H:mm" → 9:30, 14:45 (1-2位小时)
50
- * - "HH:mm:ss" → 09:30:15 (带秒)
51
- * - "HHmm" → 0930, 1445 (紧凑格式)
47
+ * **24-hour format**:
48
+ * - "HH:mm" → 09:30, 14:45 (2-digit hour)
49
+ * - "H:mm" → 9:30, 14:45 (1-2 digit hour)
50
+ * - "HH:mm:ss" → 09:30:15 (with seconds)
51
+ * - "HHmm" → 0930, 1445 (compact format)
52
52
  *
53
- * **12小时制**:
53
+ * **12-hour format**:
54
54
  * - "h:mm a" → 9:30 AM, 2:45 PM
55
- * - "hh:mm a" → 09:30 AM, 02:45 PM (2位小时)
56
- * - "h:mm aa" → 9:30 A.M., 2:45 P.M. (完整AM/PM)
57
- * - "h:mm:ss a" → 9:30:15 AM (带秒)
55
+ * - "hh:mm a" → 09:30 AM, 02:45 PM (2-digit hour)
56
+ * - "h:mm aa" → 9:30 A.M., 2:45 P.M. (full AM/PM)
57
+ * - "h:mm:ss a" → 9:30:15 AM (with seconds)
58
58
  *
59
59
  * @see https://date-fns.org/v2.29.3/docs/format
60
60
  */
61
61
  type TimeDataFormat = string;
62
62
 
63
63
  /**
64
- * 时间对象(小时和分钟)
64
+ * Time object (hour and minute)
65
65
  */
66
66
  interface Time {
67
67
  hour: number;
68
68
  minute: number;
69
69
  }
70
70
  /**
71
- * 时间布局模式
71
+ * Time layout mode
72
72
  */
73
73
  type TimeLayout = "single" | "dual";
74
74
  /**
75
- * 时间输入解析结果
75
+ * Time input parsing result
76
76
  */
77
77
  interface TimeInputValue {
78
- /** 解析错误信息 */
78
+ /** Parsing error message */
79
79
  error: string | null;
80
- /** 格式化后的显示值 */
80
+ /** Formatted display value */
81
81
  formatted: string;
82
- /** 原始输入值 */
82
+ /** Original input value */
83
83
  input: string;
84
- /** 是否为有效时间 */
84
+ /** Whether it is a valid time */
85
85
  isValid: boolean;
86
- /** 解析后的时间 Date 对象 */
86
+ /** Parsed time Date object */
87
87
  time: Date | null;
88
88
  }
89
89
  /**
90
- * 时间解析选项
90
+ * Time parsing options
91
91
  */
92
92
  interface TimeParserOptions {
93
- /** 时间格式 */
93
+ /** Time format */
94
94
  format: TimeDataFormat;
95
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
95
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
96
96
  locale?: Locale | string;
97
- /** 严格模式 */
97
+ /** Strict mode */
98
98
  strict?: boolean;
99
99
  }
100
100
  /**
101
- * 时间组件的基础属性
101
+ * Time component base properties
102
102
  */
103
103
  interface BaseTimeProps {
104
- /** 默认值 */
104
+ /** Default value */
105
105
  defaultValue?: Date | null;
106
- /** 是否禁用 */
106
+ /** Whether it is disabled */
107
107
  disabled?: boolean;
108
- /** 时间格式,支持所有 date-fns 格式字符串 */
108
+ /** Time format, supports all date-fns format strings */
109
109
  format?: TimeDataFormat;
110
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
110
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
111
111
  locale?: Locale | string;
112
- /** 最大时间 */
112
+ /** Maximum time */
113
113
  maxTime?: Date;
114
- /** 最小时间 */
114
+ /** Minimum time */
115
115
  minTime?: Date;
116
- /** 时间变化回调 */
116
+ /** Time change callback */
117
117
  onChange?: (time: Date | null) => void;
118
- /** 是否只读(禁用选择但不改变样式) */
118
+ /** Whether it is read-only (disable selection but do not change style) */
119
119
  readOnly?: boolean;
120
- /** 当前选中的时间 */
120
+ /** Currently selected time */
121
121
  value?: Date | null;
122
122
  }
123
123
  /**
124
- * 时间步长相关属性
124
+ * Time step related properties
125
125
  */
126
126
  interface StepProps {
127
- /** Meta/Ctrl + 按键的步长(分钟),默认60分钟 */
127
+ /** Meta/Ctrl + key step (minutes), default 60 minutes */
128
128
  metaStep?: number;
129
- /** Shift + 按键的步长(分钟),默认15分钟 */
129
+ /** Shift + key step (minutes), default 15 minutes */
130
130
  shiftStep?: number;
131
- /** 基础步长(分钟),默认1分钟 */
131
+ /** Base step (minutes), default 1 minute */
132
132
  step?: number;
133
133
  }
134
134
  /**
135
- * 时间交互功能属性
135
+ * Time interaction properties
136
136
  */
137
137
  interface TimeInteractionProps {
138
- /** 是否启用解析缓存 */
138
+ /** Whether to enable parsing cache */
139
139
  enableCache?: boolean;
140
- /** 是否启用键盘导航(默认启用) */
140
+ /** Whether to enable keyboard navigation (default enabled) */
141
141
  enableKeyboardNavigation?: boolean;
142
- /** 是否启用性能分析 */
142
+ /** Whether to enable performance analysis */
143
143
  enableProfiling?: boolean;
144
- /** 按下 Enter 键的回调 */
144
+ /** Callback when Enter key is pressed */
145
145
  onEnterKeyDown?: () => void;
146
146
  }
147
147
  /**
148
- * 时间选项项
148
+ * Time option item
149
149
  */
150
150
  interface TimeOptionItem {
151
151
  disabled?: boolean;
@@ -153,78 +153,78 @@ interface TimeOptionItem {
153
153
  value: Time;
154
154
  }
155
155
  interface SmartInputOptions {
156
- /** 去抖延迟(毫秒) */
156
+ /** Debounce delay (milliseconds) */
157
157
  debounceMs?: number;
158
- /** 是否启用自动完成 */
158
+ /** Whether to enable auto complete */
159
159
  enableAutoComplete?: boolean;
160
- /** 是否启用键盘导航 */
160
+ /** Whether to enable keyboard navigation */
161
161
  enableKeyboardNavigation?: boolean;
162
- /** 是否启用实时验证 */
162
+ /** Whether to enable real-time validation */
163
163
  enableLiveValidation?: boolean;
164
- /** 是否显示解析预览 */
164
+ /** Whether to show parse preview */
165
165
  showParsePreview?: boolean;
166
166
  }
167
167
  /**
168
- * 日期范围对象
168
+ * Date range object
169
169
  */
170
170
  interface DateRange {
171
171
  end: Date;
172
172
  start: Date;
173
173
  }
174
174
  /**
175
- * 一周开始的日期
175
+ * Date of the week starts
176
176
  */
177
177
  type WeekStartsOn = Day;
178
178
  /**
179
- * 日期比较模式
179
+ * Date comparison mode
180
180
  */
181
181
  type DateComparisonMode$1 = "exact-time" | "date-only";
182
182
  /**
183
- * 日历选择值的类型
183
+ * Calendar selection value type
184
184
  */
185
185
  type CalendarValue = Date | Date[] | DateRange | null;
186
186
  /**
187
- * 选择模式
187
+ * Selection mode
188
188
  */
189
189
  type SelectionMode = "single" | "multiple" | "range";
190
190
  /**
191
- * 日期输入解析结果
191
+ * Date input parsing result
192
192
  */
193
193
  interface DateInputValue {
194
- /** 解析后的日期对象 */
194
+ /** Parsed date object */
195
195
  date: Date | null;
196
- /** 解析错误信息 */
196
+ /** Parsing error message */
197
197
  error: string | null;
198
- /** 格式化后的显示值 */
198
+ /** Formatted display value */
199
199
  formatted: string;
200
- /** 原始输入值 */
200
+ /** Original input value */
201
201
  input: string;
202
- /** 是否为有效日期 */
202
+ /** Whether it is a valid date */
203
203
  isValid: boolean;
204
204
  }
205
205
  /**
206
- * 日期解析选项
206
+ * Date parsing options
207
207
  */
208
208
  interface DateParserOptions {
209
- /** 是否启用自然语言解析 */
209
+ /** Whether to enable natural language parsing */
210
210
  enableNaturalLanguage?: boolean;
211
- /** 是否启用相对日期解析 */
211
+ /** Whether to enable relative date parsing */
212
212
  enableRelativeDate?: boolean;
213
- /** 是否启用智能修正 */
213
+ /** Whether to enable smart correction */
214
214
  enableSmartCorrection?: boolean;
215
- /** 日期格式 */
215
+ /** Date format */
216
216
  format: DateDataFormat;
217
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
217
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
218
218
  locale?: Locale | string;
219
- /** 最大日期 */
219
+ /** Maximum date */
220
220
  maxDate?: Date;
221
- /** 最小日期 */
221
+ /** Minimum date */
222
222
  minDate?: Date;
223
- /** 严格模式(不允许无效日期) */
223
+ /** Strict mode (not allowed invalid date) */
224
224
  strict?: boolean;
225
225
  }
226
226
  /**
227
- * 自然语言关键词映射
227
+ * Natural language keyword mapping
228
228
  */
229
229
  interface NaturalLanguageMap {
230
230
  afternoon: string[];
@@ -246,7 +246,7 @@ interface NaturalLanguageMap {
246
246
  yesterday: string[];
247
247
  }
248
248
  /**
249
- * 相对日期模式
249
+ * Relative date pattern
250
250
  */
251
251
  interface RelativeDatePattern {
252
252
  multiplier: number;
@@ -254,100 +254,100 @@ interface RelativeDatePattern {
254
254
  type: "day" | "week" | "month" | "year";
255
255
  }
256
256
  /**
257
- * 日期组件的基础属性
257
+ * Date component base properties
258
258
  */
259
259
  interface BaseDateProps {
260
- /** 默认值 */
260
+ /** Default value */
261
261
  defaultValue?: Date | null;
262
- /** 是否禁用 */
262
+ /** Whether it is disabled */
263
263
  disabled?: boolean;
264
- /** 日期格式,支持所有 date-fns 格式字符串 */
264
+ /** Date format, supports all date-fns format strings */
265
265
  format?: DateDataFormat;
266
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
266
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
267
267
  locale?: Locale | string;
268
- /** 最大日期 */
268
+ /** Maximum date */
269
269
  maxDate?: Date;
270
- /** 最小日期 */
270
+ /** Minimum date */
271
271
  minDate?: Date;
272
- /** 日期变化回调 */
272
+ /** Date change callback */
273
273
  onChange?: (date: Date | null) => void;
274
- /** 当前选中的日期 */
274
+ /** Currently selected date */
275
275
  value?: Date | null;
276
276
  }
277
277
  /**
278
- * 日期交互功能属性
278
+ * Date interaction properties
279
279
  */
280
280
  interface DateInteractionProps {
281
- /** 是否启用解析缓存 */
281
+ /** Whether to enable parsing cache */
282
282
  enableCache?: boolean;
283
- /** 是否启用键盘导航(默认启用) */
283
+ /** Whether to enable keyboard navigation (default enabled) */
284
284
  enableKeyboardNavigation?: boolean;
285
- /** 是否启用预测功能 */
285
+ /** Whether to enable prediction */
286
286
  enablePrediction?: boolean;
287
- /** 是否启用性能分析 */
287
+ /** Whether to enable performance analysis */
288
288
  enableProfiling?: boolean;
289
- /** 按下 Enter 键的回调 */
289
+ /** Callback when Enter key is pressed */
290
290
  onEnterKeyDown?: () => void;
291
291
  }
292
292
  /**
293
- * 月历组件的基础属性
293
+ * Month calendar component base properties
294
294
  */
295
295
  interface BaseCalendarProps {
296
296
  children?: React.ReactNode;
297
- /** 自定义类名 */
297
+ /** Custom class name */
298
298
  className?: string;
299
- /** 当前显示的月份 */
299
+ /** Currently displayed month */
300
300
  currentMonth?: Date;
301
- /** 日期比较模式 */
301
+ /** Date comparison mode */
302
302
  dateComparisonMode?: DateComparisonMode$1;
303
- /** 非受控模式的默认值 */
303
+ /** Non-controlled mode default value */
304
304
  defaultValue?: CalendarValue;
305
- /** 禁用的日期数组 */
305
+ /** Disabled dates array */
306
306
  disabledDates?: Date[];
307
- /** 是否固定6行显示(42天),默认true确保高度一致 */
307
+ /** Whether to fix 6 rows display (42 days), default true to ensure height consistency */
308
308
  fixedGrid?: boolean;
309
- /** 需要高亮的日期数组 */
309
+ /** Dates to highlight */
310
310
  highlightDates?: Date[];
311
- /** 是否高亮今天 */
311
+ /** Whether to highlight today */
312
312
  highlightToday?: boolean;
313
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
313
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
314
314
  locale?: Locale | string;
315
- /** 最大可选日期 */
315
+ /** Maximum可选日期 */
316
316
  maxDate?: Date;
317
- /** 最小可选日期 */
317
+ /** Minimum可选日期 */
318
318
  minDate?: Date;
319
- /** 值变更回调 */
319
+ /** Value change callback */
320
320
  onChange?: (value: CalendarValue) => void;
321
- /** 月份变更回调 */
321
+ /** Month change callback */
322
322
  onMonthChange?: (month: Date) => void;
323
- /** 是否只读(禁用选择但不改变样式) */
323
+ /** Whether it is read-only (disable selection but do not change style) */
324
324
  readOnly?: boolean;
325
- /** 选择模式,如果未指定,会根据 value 类型自动推断 */
325
+ /** Selection mode, if not specified, will be automatically inferred based on value type */
326
326
  selectionMode?: SelectionMode;
327
- /** 是否显示非当前月份的日期 */
327
+ /** Whether to show dates of non-current months */
328
328
  showOutsideDays?: boolean;
329
- /** 是否显示周数,默认false */
329
+ /** Whether to show week numbers, default false */
330
330
  showWeekNumbers?: boolean;
331
- /** 时区 */
331
+ /** Time zone */
332
332
  timeZone?: string;
333
- /** 受控模式的值 */
333
+ /** Controlled mode value */
334
334
  value?: CalendarValue;
335
- /** 一周开始的日期(0=周日, 1=周一) */
335
+ /** Week starts on (0=Sunday, 1=Monday) */
336
336
  weekStartsOn?: WeekStartsOn;
337
- /** 自定义星期名称 */
337
+ /** Custom weekday names */
338
338
  weekdayNames?: string[];
339
339
  }
340
340
  /**
341
- * 月历布局相关属性
341
+ * Month calendar layout related properties
342
342
  */
343
343
  interface CalendarLayoutProps {
344
- /** 方向 */
344
+ /** Direction */
345
345
  direction?: "horizontal" | "vertical";
346
- /** 变体样式 */
346
+ /** Variant style */
347
347
  variant?: "default" | "dark";
348
348
  }
349
349
  /**
350
- * 日历状态接口
350
+ * Calendar state interface
351
351
  */
352
352
  interface CalendarState {
353
353
  isSingleDay: boolean;
@@ -359,7 +359,7 @@ interface CalendarState {
359
359
  } | null;
360
360
  }
361
361
  /**
362
- * 季度对象
362
+ * Quarter object
363
363
  */
364
364
  interface Quarter {
365
365
  label: string;
@@ -368,7 +368,7 @@ interface Quarter {
368
368
  year: number;
369
369
  }
370
370
  /**
371
- * 季度项目状态
371
+ * Quarter item state
372
372
  */
373
373
  interface QuarterItem {
374
374
  isCurrent: boolean;
@@ -378,7 +378,7 @@ interface QuarterItem {
378
378
  quarter: Quarter;
379
379
  }
380
380
  /**
381
- * 年份项目状态
381
+ * Year item state
382
382
  */
383
383
  interface YearItem {
384
384
  isCurrent: boolean;
@@ -388,96 +388,96 @@ interface YearItem {
388
388
  year: Date;
389
389
  }
390
390
  /**
391
- * 季度组件的基础属性
391
+ * Quarter component base properties
392
392
  */
393
393
  interface BaseQuarterProps {
394
394
  children?: React.ReactNode;
395
- /** 当前显示的年份 */
395
+ /** Currently displayed year */
396
396
  currentYear?: number;
397
- /** 默认值 */
397
+ /** Default value */
398
398
  defaultValue?: Quarter;
399
- /** 是否禁用 */
399
+ /** Whether it is disabled */
400
400
  disabled?: boolean;
401
- /** 禁用的季度数组 */
401
+ /** Disabled quarters array */
402
402
  disabledQuarters?: Array<{
403
403
  quarter: number;
404
404
  year: number;
405
405
  }>;
406
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
406
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
407
407
  locale?: Locale | string;
408
- /** 最大可选年份 */
408
+ /** Maximum selectable year */
409
409
  maxYear?: number;
410
- /** 最小可选年份 */
410
+ /** Minimum selectable year */
411
411
  minYear?: number;
412
- /** 季度选择变化回调 */
412
+ /** Quarter change callback */
413
413
  onChange?: (quarter: Quarter | null) => void;
414
- /** 是否只读(禁用选择但不改变样式) */
414
+ /** Whether it is read-only (disable selection but do not change style) */
415
415
  readOnly?: boolean;
416
- /** 显示的年份 */
416
+ /** Displayed year */
417
417
  startYear?: number;
418
- /** 当前选中的季度 */
418
+ /** Currently selected quarter */
419
419
  value?: Quarter | null;
420
420
  }
421
421
  /**
422
- * 季度导航相关属性
422
+ * Quarter navigation related properties
423
423
  */
424
424
  interface QuarterNavigationProps {
425
- /** 年份范围导航回调 */
425
+ /** Year range navigation callback */
426
426
  onNavigate?: (direction: "prev" | "next", newYear: number) => void;
427
427
  }
428
428
  /**
429
- * 季度布局相关属性
429
+ * Quarter layout related properties
430
430
  */
431
431
  interface QuarterLayoutProps {
432
- /** 自定义类名 */
432
+ /** Custom class name */
433
433
  className?: string;
434
- /** 变体样式 */
434
+ /** Variant style */
435
435
  variant?: "default" | "dark";
436
436
  }
437
437
  /**
438
- * 年份组件的基础属性
438
+ * Year component base properties
439
439
  */
440
440
  interface BaseYearProps {
441
441
  children?: React.ReactNode;
442
- /** 当前显示的年份(用于高亮) */
442
+ /** Currently displayed year (for highlighting) */
443
443
  currentYear?: Date;
444
- /** 默认值 */
444
+ /** Default value */
445
445
  defaultValue?: Date;
446
- /** 是否禁用 */
446
+ /** Whether it is disabled */
447
447
  disabled?: boolean;
448
- /** 禁用的年份数组 */
448
+ /** Disabled years array */
449
449
  disabledYears?: Date[];
450
- /** 语言区域 - 支持 Locale 对象或字符串(如 "zh-CN", "en-US" */
450
+ /** Language environment - supports Locale object or string (e.g., "zh-CN", "en-US") */
451
451
  locale?: Locale | string;
452
- /** 最大可选年份 */
452
+ /** Maximum selectable year */
453
453
  maxYear?: Date;
454
- /** 最小可选年份 */
454
+ /** Minimum selectable year */
455
455
  minYear?: Date;
456
- /** 年份选择变化回调 */
456
+ /** Year change callback */
457
457
  onChange?: (year: Date | null) => void;
458
- /** 是否只读(禁用选择但不改变样式) */
458
+ /** Whether it is read-only (disable selection but do not change style) */
459
459
  readOnly?: boolean;
460
- /** 显示年份范围的起始年份,默认为当前年份-10 */
460
+ /** Displayed year range start year, default current year - 10 */
461
461
  startYear?: Date;
462
- /** 当前选中的年份 */
462
+ /** Currently selected year */
463
463
  value?: Date | null;
464
- /** 显示年份的数量,默认12 */
464
+ /** Displayed year count, default 12 */
465
465
  yearCount?: number;
466
466
  }
467
467
  /**
468
- * 年份导航相关属性
468
+ * Year navigation related properties
469
469
  */
470
470
  interface YearNavigationProps {
471
- /** 年份范围导航回调 */
471
+ /** Year range navigation callback */
472
472
  onNavigate?: (direction: "prev" | "next", newStartYear: Date) => void;
473
473
  }
474
474
  /**
475
- * 年份布局相关属性
475
+ * Year layout related properties
476
476
  */
477
477
  interface YearLayoutProps {
478
- /** 自定义类名 */
478
+ /** Custom class name */
479
479
  className?: string;
480
- /** 变体样式 */
480
+ /** Variant style */
481
481
  variant?: "default" | "dark";
482
482
  }
483
483
 
@@ -553,11 +553,11 @@ interface DateRangeInputProps extends Omit<TextFieldProps, "value" | "onChange"
553
553
  onStartChange?: (date: Date | null) => void;
554
554
  onStartFocus?: () => void;
555
555
  /**
556
- * 范围长度显示精度,控制范围计算的最小单位
557
- * @default 1 - 最小单位为1
558
- * @example 0.5 - 最小单位为0.5天(半天)
559
- * @example 0.1 - 最小单位为0.1天(2.4小时)
560
- * @example 0.25 - 最小单位为0.25天(6小时)
556
+ * Range length display precision, control the minimum unit of range calculation
557
+ * @default 1 - Minimum unit is 1 day
558
+ * @example 0.5 - Minimum unit is 0.5 days (half a day)
559
+ * @example 0.1 - Minimum unit is 0.1 days (2.4 hours)
560
+ * @example 0.25 - Minimum unit is 0.25 days (6 hours)
561
561
  */
562
562
  rangePrecision?: number;
563
563
  startDisabled?: boolean;
@@ -569,11 +569,11 @@ declare const DateRangeInput: (props: DateRangeInputProps) => react_jsx_runtime.
569
569
 
570
570
  interface TimeCalendarProps extends BaseTimeProps, StepProps {
571
571
  children?: React__default.ReactNode;
572
- /** 自定义类名 */
572
+ /** Custom class name */
573
573
  className?: string;
574
- /** 小时步进,默认1小时 */
574
+ /** Hour step, default 1 hour */
575
575
  hourStep?: number;
576
- /** 分钟步进,默认15分钟 */
576
+ /** Minute step, default 15 minutes */
577
577
  minuteStep?: number;
578
578
  }
579
579
  declare const TimeCalendar: React__default.NamedExoticComponent<TimeCalendarProps>;
@@ -583,16 +583,16 @@ interface TimeInputProps extends Omit<TextFieldProps, "value" | "onChange" | "fo
583
583
  suffixElement?: React__default.ReactNode;
584
584
  }
585
585
  /**
586
- * 高级时间输入组件
586
+ * Advanced time input component
587
587
  *
588
- * 特性:
589
- * - 🎯 智能时间解析:支持多种格式和自然语言
590
- * - ⌨️ 键盘导航:上键减少,下键增加(符合列表导航逻辑)
591
- * - 🔄 竞态保护:智能检测数据流方向,避免循环更新
592
- * - 🚀 性能优化:使用 useEventCallback 和缓存机制
593
- * - 🛡️ 类型安全:完整的 TypeScript 支持
594
- * - 🌍 国际化支持:可配置语言区域
595
- * - 📱 拖拽交互:支持通过前缀图标拖拽调整时间
588
+ * Features:
589
+ * - 🎯 Intelligent time parsing: support multiple formats and natural language
590
+ * - ⌨️ Keyboard navigation: up key decreases, down key increases (符合列表导航逻辑)
591
+ * - 🔄 Race protection: smartly detect data flow direction, avoid loop updates
592
+ * - 🚀 Performance optimization: use useEventCallback and caching mechanism
593
+ * - 🛡️ Type safety: complete TypeScript support
594
+ * - 🌍 Internationalization support: configurable language region
595
+ * - 📱 Drag interaction: support dragging adjustment through prefix icon
596
596
  */
597
597
  declare const TimeInput: React__default.ForwardRefExoticComponent<Omit<TimeInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
598
598
 
@@ -641,29 +641,29 @@ declare function generateCalendarDays(currentMonth: Date, weekStartsOn?: number,
641
641
  declare function formatMonthTitle(date: Date, locale?: Locale | string): string;
642
642
  declare function calculateWeekNumbers(calendarDays: Date[], locale?: Locale | string): number[];
643
643
  /**
644
- * 根据值类型推断选择模式
644
+ * Infer selection mode based on value type
645
645
  */
646
646
  declare function inferSelectionMode(value: CalendarValue): SelectionMode;
647
647
  /**
648
- * CalendarValue 推断应该显示的月份
648
+ * Infer month from CalendarValue
649
649
  */
650
650
  declare function inferMonthFromValue(value: CalendarValue): Date | null;
651
651
  /**
652
- * 比较两个 CalendarValue 是否相等(支持时区感知和比较精度)
652
+ * Compare two CalendarValue for equality (supports time zone aware and comparison precision)
653
653
  */
654
654
  declare function isCalendarValueEqual(a: CalendarValue, b: CalendarValue, timeZone?: string, dateComparisonMode?: "exact-time" | "date-only"): boolean;
655
655
 
656
656
  declare const LOCALE_MAP: Record<string, Locale>;
657
657
  /**
658
- * 🔧 安全的 locale 解析函数
658
+ * 🔧 Safe locale parsing function
659
659
  *
660
- * 支持以下输入格式:
661
- * - Locale 对象:直接返回
662
- * - 字符串:自动映射到对应的 Locale 对象
663
- * - 无效值:返回中文 locale (zhCN)
660
+ * Supports the following input formats:
661
+ * - Locale object: return directly
662
+ * - String: automatically map to the corresponding Locale object
663
+ * - Invalid value: return Chinese locale (zhCN)
664
664
  *
665
- * @param locale - 可以是 Locale 对象或字符串
666
- * @returns 解析后的 Locale 对象
665
+ * @param locale - Can be a Locale object or string
666
+ * @returns Parsed Locale object
667
667
  *
668
668
  * @example
669
669
  * ```ts
@@ -675,83 +675,83 @@ declare const LOCALE_MAP: Record<string, Locale>;
675
675
  */
676
676
  declare function resolveLocale(locale: Locale | string | undefined | null): Locale;
677
677
  /**
678
- * 🔍 获取所有支持的 locale 列表
679
- * @returns 支持的 locale 字符串数组
678
+ * 🔍 Get all supported locale list
679
+ * @returns Supported locale string array
680
680
  */
681
681
  declare function getSupportedLocales(): string[];
682
682
  /**
683
- * 🎯 检查是否为中文 locale
684
- * @param locale - Locale 对象或字符串
685
- * @returns 是否为中文
683
+ * 🎯 Check if it is a Chinese locale
684
+ * @param locale - Locale object or string
685
+ * @returns Whether it is a Chinese locale
686
686
  */
687
687
  declare function isChineseLocale(locale: Locale | string | undefined | null): boolean;
688
688
 
689
689
  /**
690
- * 日期比较精度模式
691
- * - 'exact-time': 精确时间比较(包含时、分、秒、毫秒)
692
- * - 'date-only': 仅日期比较(忽略时间部分,比较年、月、日)
690
+ * Date comparison precision mode
691
+ * - 'exact-time': Exact time comparison (includes hours, minutes, seconds, milliseconds)
692
+ * - 'date-only': Date only comparison (ignores time part, compares year, month, day)
693
693
  */
694
694
  type DateComparisonMode = "exact-time" | "date-only";
695
695
  /**
696
- * 时区感知的日期部分
696
+ * Time zone aware date parts
697
697
  */
698
698
  interface DateParts {
699
- /** 日期(1-31 */
699
+ /** Day (1-31) */
700
700
  day: number;
701
- /** 月份(0-11 */
701
+ /** Month (0-11) */
702
702
  month: number;
703
- /** 星期几(0-60为周日) */
703
+ /** Weekday (0-6, 0 is Sunday) */
704
704
  weekday: number;
705
- /** 年份 */
705
+ /** Year */
706
706
  year: number;
707
707
  }
708
708
  /**
709
- * 创建时区上下文选项(用于 date-fns 4.0+)
709
+ * Create time zone context options (for date-fns 4.0+)
710
710
  */
711
711
  declare function createTimeZoneContext(timeZone?: string): {
712
712
  in: (value: Date | number | string) => TZDate;
713
713
  } | undefined;
714
714
  /**
715
- * 时区感知的日期比较(仅比较日期部分)
715
+ * Time zone aware date comparison (only compares date part)
716
716
  *
717
- * @param date1 第一个日期
718
- * @param date2 第二个日期
719
- * @param timeZone 时区(可选,默认使用本地时区)
720
- * @returns 是否为同一天
717
+ * @param date1 First date
718
+ * @param date2 Second date
719
+ * @param timeZone Time zone (optional, default uses local timezone)
720
+ * @returns Whether they are the same day
721
721
  *
722
722
  * @example
723
723
  * ```typescript
724
724
  * const date1 = new Date('2025-01-15T23:30:00Z') // UTC
725
- * const date2 = new Date('2025-01-16T08:30:00+09:00') // JST (同一天)
725
+ * const date2 = new Date('2025-01-16T08:30:00+09:00') // JST (same day)
726
726
  * isSameDayInTimeZone(date1, date2, 'Asia/Tokyo') // true
727
727
  * ```
728
728
  */
729
729
  declare function isSameDayInTimeZone(date1: Date, date2: Date, timeZone?: string): boolean;
730
730
  /**
731
- * 时区感知的月份比较
731
+ * Time zone aware month comparison
732
732
  */
733
733
  declare function isSameMonthInTimeZone(date1: Date, date2: Date, timeZone?: string): boolean;
734
734
  /**
735
- * 时区感知的年份比较
735
+ * Time zone aware year comparison
736
736
  */
737
737
  declare function isSameYearInTimeZone(date1: Date, date2: Date, timeZone?: string): boolean;
738
738
  /**
739
- * 时区感知的星期比较
739
+ * Time zone aware week comparison
740
740
  */
741
741
  declare function isSameWeekInTimeZone(date1: Date, date2: Date, timeZone?: string): boolean;
742
742
  /**
743
- * 时区感知的今天判断
743
+ * Time zone aware today check
744
744
  */
745
745
  declare function isTodayInTimeZone(date: Date, timeZone?: string): boolean;
746
746
  /**
747
- * 判断日期是否在指定范围内(支持时区和比较模式)
747
+ * Check if date is within specified range (supports time zone and comparison mode)
748
748
  *
749
- * @param date 要检查的日期
750
- * @param rangeStart 范围开始日期
751
- * @param rangeEnd 范围结束日期
752
- * @param timeZone 时区(可选)
753
- * @param mode 比较模式(默认仅日期)
754
- * @returns 是否在范围内
749
+ * @param date Date to check
750
+ * @param rangeStart Range start date
751
+ * @param rangeEnd Range end date
752
+ * @param timeZone Time zone (optional)
753
+ * @param mode Comparison mode (default is date-only)
754
+ * @returns Whether it is within the range
755
755
  *
756
756
  * @example
757
757
  * ```typescript
@@ -764,16 +764,16 @@ declare function isTodayInTimeZone(date: Date, timeZone?: string): boolean;
764
764
  */
765
765
  declare function isWithinRange(date: Date, rangeStart: Date, rangeEnd: Date, timeZone?: string, mode?: DateComparisonMode): boolean;
766
766
  /**
767
- * 获取时区感知的详细日期部分
767
+ * Get time zone aware detailed date parts
768
768
  */
769
769
  declare function getDateParts(date: Date, timeZone?: string): DateParts;
770
770
  /**
771
- * 获取日期的唯一键(用于 Map/Set 等数据结构)
771
+ * Get the unique key of the date (for Map/Set etc. data structures)
772
772
  *
773
- * @param date 日期对象
774
- * @param timeZone 时区(可选)
775
- * @param includeTime 是否包含时间部分(默认false
776
- * @returns 格式化的日期键
773
+ * @param date Date object
774
+ * @param timeZone Time zone (optional)
775
+ * @param includeTime Whether to include time part (default is false)
776
+ * @returns Formatted date key
777
777
  *
778
778
  * @example
779
779
  * ```typescript
@@ -783,11 +783,11 @@ declare function getDateParts(date: Date, timeZone?: string): DateParts;
783
783
  */
784
784
  declare function getDateKey(date: Date, timeZone?: string, includeTime?: boolean): string;
785
785
  /**
786
- * 批量比较日期数组是否相等(时区感知)
786
+ * Batch compare date arrays for equality (time zone aware)
787
787
  */
788
788
  declare function areDatesEqual(dates1: Date[], dates2: Date[], timeZone?: string, mode?: DateComparisonMode): boolean;
789
789
  /**
790
- * 清除时区日期缓存(用于测试或内存管理)
790
+ * Clear time zone date cache (for testing or memory management)
791
791
  */
792
792
  declare function clearTimeZoneCache(): void;
793
793
 
@@ -823,33 +823,33 @@ declare function detectDateFormat(input: string): DateDataFormat;
823
823
  type ParseResult = Date | null;
824
824
  type DetailedParseResult = DateInputValue;
825
825
  interface ParseOptions {
826
- /** 是否返回详细信息 */
826
+ /** Whether to return detailed information */
827
827
  detailed?: boolean;
828
- /** 是否启用自然语言解析 */
828
+ /** Whether to enable natural language parsing */
829
829
  enableNaturalLanguage?: boolean;
830
- /** 是否启用相对日期解析 */
830
+ /** Whether to enable relative date parsing */
831
831
  enableRelativeDate?: boolean;
832
- /** 是否启用智能修正 */
832
+ /** Whether to enable smart correction */
833
833
  enableSmartCorrection?: boolean;
834
- /** 目标格式 */
834
+ /** Target format */
835
835
  format?: DateDataFormat;
836
- /** 语言环境 */
836
+ /** Language environment */
837
837
  locale?: Locale;
838
- /** 是否严格模式 */
838
+ /** Whether to strict mode */
839
839
  strict?: boolean;
840
840
  }
841
841
  /**
842
- * 统一的日期解析器 - 合并了原来的 tryRelaxedParsing smartParseDate
842
+ * Unified date parser - merged the original tryRelaxedParsing and smartParseDate
843
843
  *
844
- * 解析策略按优先级排序(修正为正确的优先级):
845
- * 1. 标准格式解析 - 严格按照指定格式解析
846
- * 2. 智能数字解析(核心功能) - 纯数字输入的智能猜测 [最重要]
847
- * 3. 快捷键解析 - today, tomorrow, yesterday
848
- * 4. 扩展相对日期解析 - "3 days ago", "next week"
849
- * 5. 自然语言解析 - "今天", "明天", "下周三"
850
- * 6. 相对日期解析 - "+3d", "-1w" 等简短格式
851
- * 7. 英文日期解析 - "Jan 15, 2024", "March 3rd"
852
- * 8. 常见格式尝试 - 尝试其他常用日期格式
844
+ * Parsing strategy sorted by priority (corrected to correct priority):
845
+ * 1. Standard format parsing - strictly parse according to the specified format
846
+ * 2. Intelligent numeric parsing (core function) - intelligent guess of pure numeric input [most important]
847
+ * 3. Shortcut parsing - today, tomorrow, yesterday, etc.
848
+ * 4. Extended relative date parsing - "3 days ago", "next week", etc.
849
+ * 5. Natural language parsing - "today", "tomorrow", "next Wednesday", etc.
850
+ * 6. Relative date parsing - "+3d", "-1w", etc. short format
851
+ * 7. English date parsing - "Jan 15, 2024", "March 3rd", etc.
852
+ * 8. Common format attempt - try other commonly used date formats
853
853
  */
854
854
  declare function parseDate(input: string, options: ParseOptions & {
855
855
  detailed: true;
@@ -869,139 +869,139 @@ declare const tryRelaxedParsing: (input: string, format: DateDataFormat, locale?
869
869
  declare const smartParseDate: (input: string, options: DateParserOptions) => DateInputValue;
870
870
 
871
871
  interface PredictionResult {
872
- /** 置信度 (0-1) */
872
+ /** Confidence (0-1) */
873
873
  confidence: number;
874
- /** 描述信息 */
874
+ /** Description */
875
875
  description: string;
876
- /** 预测的日期字符串 */
876
+ /** Predicted date string */
877
877
  prediction: string;
878
- /** 预测类型 */
878
+ /** Prediction type */
879
879
  type: "numeric" | "shortcut" | "relative" | "parsed";
880
880
  }
881
881
  /**
882
- * 增强的智能预测功能
883
- * 直接使用 parseDate 函数,确保预测结果与实际格式化100%一致
882
+ * Enhanced intelligent prediction function
883
+ * Directly use parseDate function, ensure prediction result is 100% consistent with actual formatting
884
884
  */
885
885
  declare function getEnhancedPrediction(input: string, targetFormat?: DateDataFormat): PredictionResult | null;
886
886
 
887
887
  /**
888
- * 数字解析统一工具函数
889
- * 用于消除parsers中的重复代码
888
+ * Unified numeric parsing tool functions
889
+ * Used to eliminate duplicate code in parsers
890
890
  */
891
- /** 提取纯数字字符串 */
891
+ /** Extract pure numeric string */
892
892
  declare function extractDigits(input: string): string;
893
- /** 数字段提取器 */
893
+ /** Numeric segment extractor */
894
894
  declare class DigitExtractor {
895
895
  private digits;
896
896
  constructor(digits: string);
897
- /** 提取指定位置的数字 */
897
+ /** Extract number at specified position */
898
898
  extract(start: number, length: number): number;
899
- /** 提取年份 (2) */
899
+ /** Extract year (first 2 digits) */
900
900
  getYear2(): number;
901
- /** 提取年份 (4) */
901
+ /** Extract year (first 4 digits) */
902
902
  getYear4(): number;
903
- /** 提取月份 (2) */
903
+ /** Extract month (first 2 digits) */
904
904
  getMonth(): number;
905
- /** 提取日期 (3-4位) */
905
+ /** Extract date (3-4th digits) */
906
906
  getDay(): number;
907
- /** 提取6位数字的各个部分 (YYMMDD格式) */
907
+ /** Extract each part of 6 digits (YYMMDD format) */
908
908
  getYYMMDD(): {
909
909
  day: number;
910
910
  month: number;
911
911
  year: number;
912
912
  };
913
- /** 提取8位数字的各个部分 (YYYYMMDD格式) */
913
+ /** Extract each part of 8 digits (YYYYMMDD format) */
914
914
  getYYYYMMDD(): {
915
915
  day: number;
916
916
  month: number;
917
917
  year: number;
918
918
  };
919
- /** 提取3位数字的各个部分 */
919
+ /** Extract each part of 3 digits */
920
920
  get3DigitParts(): {
921
921
  first: number;
922
922
  lastTwo: number;
923
923
  };
924
924
  }
925
- /** 年份转换工具 */
925
+ /** Year conversion tool */
926
926
  declare function convertTwoDigitYear(year: number): number;
927
- /** 检查是否为有效的月日组合 */
927
+ /** Check if it is a valid month and day combination */
928
928
  declare function isValidMonthDay(month: number, day: number): boolean;
929
- /** 检查3位数字是否可以解释为月日 */
929
+ /** Check if 3 digits can be interpreted as month and day */
930
930
  declare function canBeMonthDay(firstDigit: number, lastTwoDigits: number): boolean;
931
- /** 检查是否为合理的年份 */
931
+ /** Check if it is a reasonable year */
932
932
  declare function isReasonableYear(year: number): boolean;
933
- /** 数字解析结果 */
933
+ /** Numeric parsing result */
934
934
  interface NumericParseResult {
935
935
  day: number;
936
936
  formatted: string;
937
937
  month: number;
938
938
  year: number;
939
939
  }
940
- /** 通用的6位数字解析器 (YYMMDD) */
940
+ /** General 6-digit parser (YYMMDD) */
941
941
  declare function parseYYMMDD(digits: string, targetFormat: string): NumericParseResult | null;
942
- /** 通用的8位数字解析器 (YYYYMMDD) */
942
+ /** General 8-digit parser (YYYYMMDD) */
943
943
  declare function parseYYYYMMDD(digits: string, targetFormat: string): NumericParseResult | null;
944
- /** 智能的3位数字解析器 */
944
+ /** Intelligent 3-digit parser */
945
945
  declare function parse3Digits(digits: string, currentYear: number, targetFormat: string): NumericParseResult | null;
946
946
 
947
947
  declare const yearUtils: {
948
948
  extractYear(input: Date | number | undefined): number | undefined;
949
- /** 创建年份的开始日期 */
949
+ /** Create year start date */
950
950
  createYearDate(year: number): Date;
951
- /** 获取当前年份 */
951
+ /** Get current year */
952
952
  getCurrentYear(): number;
953
- /** 验证年份是否在有效范围内 */
953
+ /** Validate if year is in valid range */
954
954
  isYearInRange(year: number, minYear?: number, maxYear?: number): boolean;
955
955
  };
956
956
 
957
957
  declare const quarterUtils: {
958
- /** 安全地从各种输入中提取年份数字 */
958
+ /** Safely extract year number from various inputs */
959
959
  extractYear(input: Date | number | undefined): number | undefined;
960
- /** 获取当前年份 */
960
+ /** Get current year */
961
961
  getCurrentYear(): number;
962
- /** 获取当前季度数字 (1-4) */
962
+ /** Get current quarter number (1-4) */
963
963
  getCurrentQuarterNumber(): Quarter$1;
964
- /** 验证年份是否在有效范围内 */
964
+ /** Validate if year is in valid range */
965
965
  isYearInRange(year: number, minYear?: number, maxYear?: number): boolean;
966
- /** 创建季度的开始日期 */
966
+ /** Create quarter start date */
967
967
  createQuarterStartDate(quarter: number, year: number): Date;
968
- /** 创建季度的结束日期 */
968
+ /** Create quarter end date */
969
969
  createQuarterEndDate(quarter: number, year: number): Date;
970
970
  };
971
- /** 获取季度的月份名称 */
971
+ /** Get quarter month names */
972
972
  declare function getQuarterMonths(quarter: number, locale?: Locale | string): string[];
973
- /** 创建季度对象 */
973
+ /** Create quarter object */
974
974
  declare function createQuarter(quarter: Quarter$1, year: number, locale?: Locale | string): Quarter;
975
- /** 获取当前季度 */
975
+ /** Get current quarter */
976
976
  declare function getCurrentQuarter(year?: number, locale?: Locale | string): Quarter;
977
- /** 获取年份的所有季度 */
977
+ /** Get all quarters of a year */
978
978
  declare function getYearQuarters(year: number, locale?: Locale | string): Quarter[];
979
- /** 检查两个季度是否相等 */
979
+ /** Check if two quarters are equal */
980
980
  declare function isQuarterEqual(quarter1: Quarter, quarter2: Quarter): boolean;
981
- /** 格式化季度显示 */
981
+ /** Format quarter display */
982
982
  declare function formatQuarter(quarter: Quarter): string;
983
- /** 获取季度的日期范围 */
983
+ /** Get quarter date range */
984
984
  declare function getQuarterDateRange(quarter: Quarter): {
985
985
  end: Date;
986
986
  start: Date;
987
987
  };
988
988
 
989
989
  /**
990
- * Date 对象转换为时间字符串 (HH:mm)
990
+ * Convert Date object to time string (HH:mm)
991
991
  * @param date - Date 对象
992
- * @returns 时间字符串,格式为 "HH:mm",如果 date null 则返回 null
992
+ * @returns Time string, format is "HH:mm", if date is null then return null
993
993
  */
994
994
  declare function dateToTimeString(date: Date | null): string | null;
995
995
  /**
996
- * 将时间字符串转换为 Date 对象(今天的日期 + 指定时间)
997
- * @param timeStr - 时间字符串,格式为 "HH:mm"
998
- * @returns Date 对象,包含今天的日期和指定的时间
996
+ * Convert time string to Date object (today's date + specified time)
997
+ * @param timeStr - Time string, format is "HH:mm"
998
+ * @returns Date object, contains today's date and specified time
999
999
  */
1000
1000
  declare function timeStringToDate(timeStr: string): Date;
1001
1001
  /**
1002
- * 将任意 Date 值标准化为时间字符串格式
1003
- * @param value - Date 对象或 null
1004
- * @returns 标准化的时间字符串 (HH:mm) null
1002
+ * Normalize any Date value to time string format
1003
+ * @param value - Date object or null
1004
+ * @returns Normalized time string (HH:mm) or null
1005
1005
  */
1006
1006
  declare function normalizeTimeValue(value: Date | null | undefined): string | null;
1007
1007
  declare function smartParseTimeValue(input: string, options: TimeParserOptions): TimeInputValue;