@lobehub/ui 6.0.0-beta.7 → 6.0.0-beta.9

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 (675) hide show
  1. package/es/Accordion/Accordion.mjs +3 -3
  2. package/es/Accordion/Accordion.mjs.map +1 -1
  3. package/es/Accordion/atoms.mjs +2 -2
  4. package/es/Accordion/atoms.mjs.map +1 -1
  5. package/es/Accordion/style.d.mts +1 -1
  6. package/es/ActionIcon/ActionIcon.mjs +2 -2
  7. package/es/ActionIcon/ActionIcon.mjs.map +1 -1
  8. package/es/Alert/Alert.mjs +5 -5
  9. package/es/Alert/Alert.mjs.map +1 -1
  10. package/es/AutoComplete/AutoComplete.mjs +5 -5
  11. package/es/AutoComplete/AutoComplete.mjs.map +1 -1
  12. package/es/AutoComplete/style.mjs +2 -2
  13. package/es/AutoComplete/style.mjs.map +1 -1
  14. package/es/Avatar/Avatar.mjs +2 -2
  15. package/es/Avatar/Avatar.mjs.map +1 -1
  16. package/es/Avatar/AvatarGroup/index.mjs +2 -2
  17. package/es/Avatar/AvatarGroup/index.mjs.map +1 -1
  18. package/es/Breadcrumb/Breadcrumb.mjs +2 -2
  19. package/es/Breadcrumb/Breadcrumb.mjs.map +1 -1
  20. package/es/Button/Button.mjs +1 -1
  21. package/es/Button/Button.mjs.map +1 -1
  22. package/es/Button/style.d.mts +8 -1
  23. package/es/Button/style.mjs +41 -18
  24. package/es/Button/style.mjs.map +1 -1
  25. package/es/Checkbox/Checkbox.mjs +3 -3
  26. package/es/Checkbox/Checkbox.mjs.map +1 -1
  27. package/es/CodeDiff/DiffPanel.mjs +4 -4
  28. package/es/CodeDiff/DiffPanel.mjs.map +1 -1
  29. package/es/CodeEditor/CodeEditor.mjs +4 -4
  30. package/es/CodeEditor/CodeEditor.mjs.map +1 -1
  31. package/es/ColorPicker/ColorInputs.mjs +136 -0
  32. package/es/ColorPicker/ColorInputs.mjs.map +1 -0
  33. package/es/ColorPicker/ColorPanel.mjs +145 -0
  34. package/es/ColorPicker/ColorPanel.mjs.map +1 -0
  35. package/es/ColorPicker/ColorPicker.mjs +62 -199
  36. package/es/ColorPicker/ColorPicker.mjs.map +1 -1
  37. package/es/ColorPicker/SaturationArea.mjs +2 -1
  38. package/es/ColorPicker/SaturationArea.mjs.map +1 -1
  39. package/es/ColorPicker/Swatch.mjs +24 -0
  40. package/es/ColorPicker/Swatch.mjs.map +1 -0
  41. package/es/ColorPicker/Swatches.mjs +66 -0
  42. package/es/ColorPicker/Swatches.mjs.map +1 -0
  43. package/es/ColorPicker/Trigger.mjs +112 -0
  44. package/es/ColorPicker/Trigger.mjs.map +1 -0
  45. package/es/ColorPicker/color.mjs +25 -1
  46. package/es/ColorPicker/color.mjs.map +1 -1
  47. package/es/ColorPicker/recent.mjs +25 -0
  48. package/es/ColorPicker/recent.mjs.map +1 -0
  49. package/es/ColorPicker/style.mjs +269 -70
  50. package/es/ColorPicker/style.mjs.map +1 -1
  51. package/es/ColorPicker/type.d.mts +15 -0
  52. package/es/ContextMenu/ContextMenuHost.mjs +2 -2
  53. package/es/ContextMenu/ContextMenuHost.mjs.map +1 -1
  54. package/es/ContextMenu/ContextMenuTrigger.mjs +2 -2
  55. package/es/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  56. package/es/ContextMenu/renderItems.mjs +3 -3
  57. package/es/ContextMenu/renderItems.mjs.map +1 -1
  58. package/es/DatePicker/DatePicker.d.mts +9 -2
  59. package/es/DatePicker/DatePicker.mjs +15 -85
  60. package/es/DatePicker/DatePicker.mjs.map +1 -1
  61. package/es/DatePicker/DateRangePicker.d.mts +3 -2
  62. package/es/DatePicker/DateRangePicker.mjs +3 -125
  63. package/es/DatePicker/DateRangePicker.mjs.map +1 -1
  64. package/es/DatePicker/DayjsDatePicker.d.mts +12 -0
  65. package/es/DatePicker/DayjsDatePicker.mjs +19 -0
  66. package/es/DatePicker/DayjsDatePicker.mjs.map +1 -0
  67. package/es/DatePicker/DayjsDateRangePicker.d.mts +7 -0
  68. package/es/DatePicker/DayjsDateRangePicker.mjs +8 -0
  69. package/es/DatePicker/DayjsDateRangePicker.mjs.map +1 -0
  70. package/es/DatePicker/PurePanel.mjs +65 -0
  71. package/es/DatePicker/PurePanel.mjs.map +1 -0
  72. package/es/DatePicker/RangePicker.mjs +121 -0
  73. package/es/DatePicker/RangePicker.mjs.map +1 -0
  74. package/es/DatePicker/SinglePicker.mjs +134 -0
  75. package/es/DatePicker/SinglePicker.mjs.map +1 -0
  76. package/es/DatePicker/core/PickerInput/Popup/Footer.mjs +57 -0
  77. package/es/DatePicker/core/PickerInput/Popup/Footer.mjs.map +1 -0
  78. package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs +57 -0
  79. package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs.map +1 -0
  80. package/es/DatePicker/core/PickerInput/Popup/PresetPanel.mjs +29 -0
  81. package/es/DatePicker/core/PickerInput/Popup/PresetPanel.mjs.map +1 -0
  82. package/es/DatePicker/core/PickerInput/Popup/index.mjs +133 -0
  83. package/es/DatePicker/core/PickerInput/Popup/index.mjs.map +1 -0
  84. package/es/DatePicker/core/PickerInput/RangePicker.d.mts +51 -0
  85. package/es/DatePicker/core/PickerInput/RangePicker.mjs +343 -0
  86. package/es/DatePicker/core/PickerInput/RangePicker.mjs.map +1 -0
  87. package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs +27 -0
  88. package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs.map +1 -0
  89. package/es/DatePicker/core/PickerInput/Selector/Icon.mjs +19 -0
  90. package/es/DatePicker/core/PickerInput/Selector/Icon.mjs.map +1 -0
  91. package/es/DatePicker/core/PickerInput/Selector/Input.mjs +237 -0
  92. package/es/DatePicker/core/PickerInput/Selector/Input.mjs.map +1 -0
  93. package/es/DatePicker/core/PickerInput/Selector/MaskFormat.mjs +70 -0
  94. package/es/DatePicker/core/PickerInput/Selector/MaskFormat.mjs.map +1 -0
  95. package/es/DatePicker/core/PickerInput/Selector/RangeSelector.d.mts +8 -0
  96. package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs +136 -0
  97. package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs.map +1 -0
  98. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs +28 -0
  99. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs.map +1 -0
  100. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.mjs +69 -0
  101. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.mjs.map +1 -0
  102. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs +111 -0
  103. package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs.map +1 -0
  104. package/es/DatePicker/core/PickerInput/Selector/hooks/useClearIcon.mjs +18 -0
  105. package/es/DatePicker/core/PickerInput/Selector/hooks/useClearIcon.mjs.map +1 -0
  106. package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs +108 -0
  107. package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs.map +1 -0
  108. package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs +11 -0
  109. package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs.map +1 -0
  110. package/es/DatePicker/core/PickerInput/Selector/util.mjs +20 -0
  111. package/es/DatePicker/core/PickerInput/Selector/util.mjs.map +1 -0
  112. package/es/DatePicker/core/PickerInput/SinglePicker.d.mts +55 -0
  113. package/es/DatePicker/core/PickerInput/SinglePicker.mjs +318 -0
  114. package/es/DatePicker/core/PickerInput/SinglePicker.mjs.map +1 -0
  115. package/es/DatePicker/core/PickerInput/context.mjs +7 -0
  116. package/es/DatePicker/core/PickerInput/context.mjs.map +1 -0
  117. package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs +30 -0
  118. package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs.map +1 -0
  119. package/es/DatePicker/core/PickerInput/hooks/useDelayState.mjs +37 -0
  120. package/es/DatePicker/core/PickerInput/hooks/useDelayState.mjs.map +1 -0
  121. package/es/DatePicker/core/PickerInput/hooks/useDisabledBoundary.mjs +18 -0
  122. package/es/DatePicker/core/PickerInput/hooks/useDisabledBoundary.mjs.map +1 -0
  123. package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs +20 -0
  124. package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs.map +1 -0
  125. package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs +31 -0
  126. package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs.map +1 -0
  127. package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs +98 -0
  128. package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs.map +1 -0
  129. package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs +41 -0
  130. package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs.map +1 -0
  131. package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs +34 -0
  132. package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs.map +1 -0
  133. package/es/DatePicker/core/PickerInput/hooks/useHoverStore.mjs +35 -0
  134. package/es/DatePicker/core/PickerInput/hooks/useHoverStore.mjs.map +1 -0
  135. package/es/DatePicker/core/PickerInput/hooks/useInputReadOnly.mjs +9 -0
  136. package/es/DatePicker/core/PickerInput/hooks/useInputReadOnly.mjs.map +1 -0
  137. package/es/DatePicker/core/PickerInput/hooks/useInvalidate.mjs +36 -0
  138. package/es/DatePicker/core/PickerInput/hooks/useInvalidate.mjs.map +1 -0
  139. package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs +27 -0
  140. package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs.map +1 -0
  141. package/es/DatePicker/core/PickerInput/hooks/useOpen.mjs +18 -0
  142. package/es/DatePicker/core/PickerInput/hooks/useOpen.mjs.map +1 -0
  143. package/es/DatePicker/core/PickerInput/hooks/usePickerRef.mjs +19 -0
  144. package/es/DatePicker/core/PickerInput/hooks/usePickerRef.mjs.map +1 -0
  145. package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs +20 -0
  146. package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs.map +1 -0
  147. package/es/DatePicker/core/PickerInput/hooks/useRangeDisabledDate.mjs +24 -0
  148. package/es/DatePicker/core/PickerInput/hooks/useRangeDisabledDate.mjs.map +1 -0
  149. package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs +107 -0
  150. package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs.map +1 -0
  151. package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs +144 -0
  152. package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs.map +1 -0
  153. package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs +219 -0
  154. package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs.map +1 -0
  155. package/es/DatePicker/core/PickerInput/hooks/useShowNow.mjs +11 -0
  156. package/es/DatePicker/core/PickerInput/hooks/useShowNow.mjs.map +1 -0
  157. package/es/DatePicker/core/PickerPanel/DatePanel/index.mjs +131 -0
  158. package/es/DatePicker/core/PickerPanel/DatePanel/index.mjs.map +1 -0
  159. package/es/DatePicker/core/PickerPanel/DateTimePanel/index.mjs +35 -0
  160. package/es/DatePicker/core/PickerPanel/DateTimePanel/index.mjs.map +1 -0
  161. package/es/DatePicker/core/PickerPanel/DecadePanel/index.mjs +84 -0
  162. package/es/DatePicker/core/PickerPanel/DecadePanel/index.mjs.map +1 -0
  163. package/es/DatePicker/core/PickerPanel/MonthPanel/index.mjs +73 -0
  164. package/es/DatePicker/core/PickerPanel/MonthPanel/index.mjs.map +1 -0
  165. package/es/DatePicker/core/PickerPanel/PanelBody.mjs +95 -0
  166. package/es/DatePicker/core/PickerPanel/PanelBody.mjs.map +1 -0
  167. package/es/DatePicker/core/PickerPanel/PanelHeader.mjs +130 -0
  168. package/es/DatePicker/core/PickerPanel/PanelHeader.mjs.map +1 -0
  169. package/es/DatePicker/core/PickerPanel/QuarterPanel/index.mjs +64 -0
  170. package/es/DatePicker/core/PickerPanel/QuarterPanel/index.mjs.map +1 -0
  171. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs +108 -0
  172. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs.map +1 -0
  173. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/geometry.mjs +44 -0
  174. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/geometry.mjs.map +1 -0
  175. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs +157 -0
  176. package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs.map +1 -0
  177. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs +100 -0
  178. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs.map +1 -0
  179. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs +71 -0
  180. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs.map +1 -0
  181. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs +62 -0
  182. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs.map +1 -0
  183. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs +200 -0
  184. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs.map +1 -0
  185. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/util.mjs +25 -0
  186. package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/util.mjs.map +1 -0
  187. package/es/DatePicker/core/PickerPanel/TimePanel/index.mjs +31 -0
  188. package/es/DatePicker/core/PickerPanel/TimePanel/index.mjs.map +1 -0
  189. package/es/DatePicker/core/PickerPanel/WeekPanel/index.mjs +34 -0
  190. package/es/DatePicker/core/PickerPanel/WeekPanel/index.mjs.map +1 -0
  191. package/es/DatePicker/core/PickerPanel/YearPanel/index.mjs +92 -0
  192. package/es/DatePicker/core/PickerPanel/YearPanel/index.mjs.map +1 -0
  193. package/es/DatePicker/core/PickerPanel/context.mjs +48 -0
  194. package/es/DatePicker/core/PickerPanel/context.mjs.map +1 -0
  195. package/es/DatePicker/core/PickerPanel/index.d.mts +1 -0
  196. package/es/DatePicker/core/PickerPanel/index.mjs +175 -0
  197. package/es/DatePicker/core/PickerPanel/index.mjs.map +1 -0
  198. package/es/DatePicker/core/PickerPopup.mjs +118 -0
  199. package/es/DatePicker/core/PickerPopup.mjs.map +1 -0
  200. package/es/DatePicker/core/generate/dayjs.mjs +109 -0
  201. package/es/DatePicker/core/generate/dayjs.mjs.map +1 -0
  202. package/es/DatePicker/core/generate/index.d.mts +40 -0
  203. package/es/DatePicker/core/hooks/react.mjs +58 -0
  204. package/es/DatePicker/core/hooks/react.mjs.map +1 -0
  205. package/es/DatePicker/core/hooks/useLocale.mjs +51 -0
  206. package/es/DatePicker/core/hooks/useLocale.mjs.map +1 -0
  207. package/es/DatePicker/core/hooks/useSemantic.mjs +20 -0
  208. package/es/DatePicker/core/hooks/useSemantic.mjs.map +1 -0
  209. package/es/DatePicker/core/hooks/useSyncState.mjs +25 -0
  210. package/es/DatePicker/core/hooks/useSyncState.mjs.map +1 -0
  211. package/es/DatePicker/core/hooks/useTimeConfig.mjs +173 -0
  212. package/es/DatePicker/core/hooks/useTimeConfig.mjs.map +1 -0
  213. package/es/DatePicker/core/hooks/useTimeInfo.mjs +110 -0
  214. package/es/DatePicker/core/hooks/useTimeInfo.mjs.map +1 -0
  215. package/es/DatePicker/core/hooks/useToggleDates.mjs +21 -0
  216. package/es/DatePicker/core/hooks/useToggleDates.mjs.map +1 -0
  217. package/es/DatePicker/core/index.d.mts +5 -0
  218. package/es/DatePicker/core/index.mjs +9 -0
  219. package/es/DatePicker/core/index.mjs.map +1 -0
  220. package/es/DatePicker/core/interface.d.mts +325 -0
  221. package/es/DatePicker/core/locale/common.mjs +11 -0
  222. package/es/DatePicker/core/locale/common.mjs.map +1 -0
  223. package/es/DatePicker/core/locale/en_US.mjs +39 -0
  224. package/es/DatePicker/core/locale/en_US.mjs.map +1 -0
  225. package/es/DatePicker/core/utils/common.mjs +73 -0
  226. package/es/DatePicker/core/utils/common.mjs.map +1 -0
  227. package/es/DatePicker/core/utils/dateUtil.mjs +106 -0
  228. package/es/DatePicker/core/utils/dateUtil.mjs.map +1 -0
  229. package/es/DatePicker/core/utils/miscUtil.mjs +46 -0
  230. package/es/DatePicker/core/utils/miscUtil.mjs.map +1 -0
  231. package/es/DatePicker/core/utils/uiUtil.mjs +9 -0
  232. package/es/DatePicker/core/utils/uiUtil.mjs.map +1 -0
  233. package/es/DatePicker/dateGenerateConfig.mjs +52 -0
  234. package/es/DatePicker/dateGenerateConfig.mjs.map +1 -0
  235. package/es/DatePicker/generateConfig.mjs +12 -0
  236. package/es/DatePicker/generateConfig.mjs.map +1 -0
  237. package/es/DatePicker/generatePicker.d.mts +12 -0
  238. package/es/DatePicker/generatePicker.mjs +22 -0
  239. package/es/DatePicker/generatePicker.mjs.map +1 -0
  240. package/es/DatePicker/index.d.mts +8 -3
  241. package/es/DatePicker/index.mjs +5 -1
  242. package/es/DatePicker/legacyDate.mjs +58 -0
  243. package/es/DatePicker/legacyDate.mjs.map +1 -0
  244. package/es/DatePicker/locale.d.mts +15 -0
  245. package/es/DatePicker/locale.mjs +143 -0
  246. package/es/DatePicker/locale.mjs.map +1 -0
  247. package/es/DatePicker/semantic.mjs +29 -0
  248. package/es/DatePicker/semantic.mjs.map +1 -0
  249. package/es/DatePicker/style.mjs +3 -155
  250. package/es/DatePicker/style.mjs.map +1 -1
  251. package/es/DatePicker/type.d.mts +294 -27
  252. package/es/DatePicker/usePanelKeyboard.mjs +230 -0
  253. package/es/DatePicker/usePanelKeyboard.mjs.map +1 -0
  254. package/es/DatePicker/usePickerShared.mjs +106 -0
  255. package/es/DatePicker/usePickerShared.mjs.map +1 -0
  256. package/es/DatePicker/usePresetActive.mjs +49 -0
  257. package/es/DatePicker/usePresetActive.mjs.map +1 -0
  258. package/es/DraggablePanel/atoms.mjs +5 -5
  259. package/es/DraggablePanel/atoms.mjs.map +1 -1
  260. package/es/DraggableSideNav/DraggableSideNav.mjs +3 -3
  261. package/es/DraggableSideNav/DraggableSideNav.mjs.map +1 -1
  262. package/es/Drawer/Drawer.mjs +2 -2
  263. package/es/Drawer/Drawer.mjs.map +1 -1
  264. package/es/Drawer/atoms.mjs +6 -6
  265. package/es/Drawer/atoms.mjs.map +1 -1
  266. package/es/DropdownMenu/atoms.mjs +22 -22
  267. package/es/DropdownMenu/atoms.mjs.map +1 -1
  268. package/es/DropdownMenu/sharedStyle.mjs +2 -2
  269. package/es/DropdownMenu/sharedStyle.mjs.map +1 -1
  270. package/es/EditorSlashMenu/atoms.mjs +12 -12
  271. package/es/EditorSlashMenu/atoms.mjs.map +1 -1
  272. package/es/EmojiPicker/EmojiPicker.mjs +7 -7
  273. package/es/EmojiPicker/EmojiPicker.mjs.map +1 -1
  274. package/es/EmojiPicker/loadEmojiData.mjs +6 -0
  275. package/es/EmojiPicker/loadEmojiData.mjs.map +1 -0
  276. package/es/FloatingPanel/FloatingPanel.mjs +2 -2
  277. package/es/FloatingPanel/FloatingPanel.mjs.map +1 -1
  278. package/es/FormKit/List.mjs +2 -2
  279. package/es/FormKit/List.mjs.map +1 -1
  280. package/es/Highlighter/FullFeatured.mjs +2 -2
  281. package/es/Highlighter/FullFeatured.mjs.map +1 -1
  282. package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +2 -2
  283. package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs.map +1 -1
  284. package/es/Highlighter/SyntaxHighlighter/index.mjs +4 -4
  285. package/es/Highlighter/SyntaxHighlighter/index.mjs.map +1 -1
  286. package/es/Highlighter/style.mjs +2 -2
  287. package/es/Highlighter/style.mjs.map +1 -1
  288. package/es/HtmlPreview/HtmlPreview.mjs +2 -2
  289. package/es/HtmlPreview/HtmlPreview.mjs.map +1 -1
  290. package/es/Icon/Icon.mjs +2 -2
  291. package/es/Icon/Icon.mjs.map +1 -1
  292. package/es/List/ListRow.mjs +3 -3
  293. package/es/List/ListRow.mjs.map +1 -1
  294. package/es/Markdown/Markdown.mjs +2 -2
  295. package/es/Markdown/Markdown.mjs.map +1 -1
  296. package/es/Markdown/Typography.mjs +2 -2
  297. package/es/Markdown/Typography.mjs.map +1 -1
  298. package/es/Mermaid/FullFeatured.mjs +2 -2
  299. package/es/Mermaid/FullFeatured.mjs.map +1 -1
  300. package/es/Mermaid/SyntaxMermaid/index.mjs +4 -4
  301. package/es/Mermaid/SyntaxMermaid/index.mjs.map +1 -1
  302. package/es/Modal/atoms.mjs +6 -6
  303. package/es/Modal/atoms.mjs.map +1 -1
  304. package/es/Pagination/Pagination.mjs +181 -41
  305. package/es/Pagination/Pagination.mjs.map +1 -1
  306. package/es/Pagination/helpers.mjs +3 -3
  307. package/es/Pagination/helpers.mjs.map +1 -1
  308. package/es/Pagination/index.d.mts +2 -2
  309. package/es/Pagination/marker.stylex.mjs +9 -0
  310. package/es/Pagination/marker.stylex.mjs.map +1 -0
  311. package/es/Pagination/style.mjs +74 -4
  312. package/es/Pagination/style.mjs.map +1 -1
  313. package/es/Pagination/type.d.mts +41 -3
  314. package/es/Popover/PopoverInGroup.mjs +2 -2
  315. package/es/Popover/PopoverInGroup.mjs.map +1 -1
  316. package/es/Popover/atoms.mjs +6 -6
  317. package/es/Popover/atoms.mjs.map +1 -1
  318. package/es/ProTable/ProTable.d.mts +11 -0
  319. package/es/ProTable/ProTable.mjs +208 -0
  320. package/es/ProTable/ProTable.mjs.map +1 -0
  321. package/es/ProTable/hooks/useColumnRequest.mjs +55 -0
  322. package/es/ProTable/hooks/useColumnRequest.mjs.map +1 -0
  323. package/es/ProTable/hooks/useColumnsState.mjs +37 -0
  324. package/es/ProTable/hooks/useColumnsState.mjs.map +1 -0
  325. package/es/ProTable/hooks/useDelayedFlag.mjs +18 -0
  326. package/es/ProTable/hooks/useDelayedFlag.mjs.map +1 -0
  327. package/es/ProTable/hooks/useDensity.mjs +15 -0
  328. package/es/ProTable/hooks/useDensity.mjs.map +1 -0
  329. package/es/ProTable/hooks/useFetchData.mjs +97 -0
  330. package/es/ProTable/hooks/useFetchData.mjs.map +1 -0
  331. package/es/ProTable/hooks/useFullscreen.mjs +22 -0
  332. package/es/ProTable/hooks/useFullscreen.mjs.map +1 -0
  333. package/es/ProTable/hooks/usePageInfo.mjs +35 -0
  334. package/es/ProTable/hooks/usePageInfo.mjs.map +1 -0
  335. package/es/ProTable/hooks/useProColumns.mjs +123 -0
  336. package/es/ProTable/hooks/useProColumns.mjs.map +1 -0
  337. package/es/ProTable/hooks/useProLoading.mjs +19 -0
  338. package/es/ProTable/hooks/useProLoading.mjs.map +1 -0
  339. package/es/ProTable/hooks/useProLocale.mjs +22 -0
  340. package/es/ProTable/hooks/useProLocale.mjs.map +1 -0
  341. package/es/ProTable/hooks/useProRequest.mjs +137 -0
  342. package/es/ProTable/hooks/useProRequest.mjs.map +1 -0
  343. package/es/ProTable/hooks/useRowCache.mjs +11 -0
  344. package/es/ProTable/hooks/useRowCache.mjs.map +1 -0
  345. package/es/ProTable/hooks/useSearchForm.mjs +141 -0
  346. package/es/ProTable/hooks/useSearchForm.mjs.map +1 -0
  347. package/es/ProTable/hooks/useTableBindings.mjs +39 -0
  348. package/es/ProTable/hooks/useTableBindings.mjs.map +1 -0
  349. package/es/ProTable/hooks/useTableSelection.mjs +14 -0
  350. package/es/ProTable/hooks/useTableSelection.mjs.map +1 -0
  351. package/es/ProTable/index.d.mts +4 -0
  352. package/es/ProTable/index.d.ts +1 -0
  353. package/es/ProTable/index.js +1 -0
  354. package/es/ProTable/index.mjs +3 -0
  355. package/es/ProTable/locale.d.mts +15 -0
  356. package/es/ProTable/locale.mjs +66 -0
  357. package/es/ProTable/locale.mjs.map +1 -0
  358. package/es/ProTable/parts/ColumnSetting.mjs +155 -0
  359. package/es/ProTable/parts/ColumnSetting.mjs.map +1 -0
  360. package/es/ProTable/parts/FieldControl.mjs +117 -0
  361. package/es/ProTable/parts/FieldControl.mjs.map +1 -0
  362. package/es/ProTable/parts/KeywordInput.mjs +19 -0
  363. package/es/ProTable/parts/KeywordInput.mjs.map +1 -0
  364. package/es/ProTable/parts/LightFilter.mjs +70 -0
  365. package/es/ProTable/parts/LightFilter.mjs.map +1 -0
  366. package/es/ProTable/parts/OptionPopover.mjs +17 -0
  367. package/es/ProTable/parts/OptionPopover.mjs.map +1 -0
  368. package/es/ProTable/parts/SearchForm.mjs +180 -0
  369. package/es/ProTable/parts/SearchForm.mjs.map +1 -0
  370. package/es/ProTable/parts/SearchSection.mjs +33 -0
  371. package/es/ProTable/parts/SearchSection.mjs.map +1 -0
  372. package/es/ProTable/parts/TableAlert.mjs +38 -0
  373. package/es/ProTable/parts/TableAlert.mjs.map +1 -0
  374. package/es/ProTable/parts/Toolbar.mjs +50 -0
  375. package/es/ProTable/parts/Toolbar.mjs.map +1 -0
  376. package/es/ProTable/parts/ToolbarOptions.mjs +103 -0
  377. package/es/ProTable/parts/ToolbarOptions.mjs.map +1 -0
  378. package/es/ProTable/parts/renderValue.mjs +118 -0
  379. package/es/ProTable/parts/renderValue.mjs.map +1 -0
  380. package/es/ProTable/style.mjs +278 -0
  381. package/es/ProTable/style.mjs.map +1 -0
  382. package/es/ProTable/type.d.mts +397 -0
  383. package/es/ProTable/utils.mjs +152 -0
  384. package/es/ProTable/utils.mjs.map +1 -0
  385. package/es/Radio/Radio.mjs +3 -3
  386. package/es/Radio/Radio.mjs.map +1 -1
  387. package/es/ScrollArea/atoms.mjs +4 -4
  388. package/es/ScrollArea/atoms.mjs.map +1 -1
  389. package/es/Segmented/Segmented.mjs +3 -3
  390. package/es/Segmented/Segmented.mjs.map +1 -1
  391. package/es/Segmented/atoms.mjs +2 -2
  392. package/es/Segmented/atoms.mjs.map +1 -1
  393. package/es/Select/Select.mjs +22 -13
  394. package/es/Select/Select.mjs.map +1 -1
  395. package/es/Select/atoms.mjs +4 -4
  396. package/es/Select/atoms.mjs.map +1 -1
  397. package/es/Select/helpers.mjs +8 -1
  398. package/es/Select/helpers.mjs.map +1 -1
  399. package/es/Select/hooks.mjs +8 -4
  400. package/es/Select/hooks.mjs.map +1 -1
  401. package/es/Select/renderOptions.mjs +2 -2
  402. package/es/Select/renderOptions.mjs.map +1 -1
  403. package/es/Select/type.d.mts +7 -0
  404. package/es/Switch/Switch.mjs +2 -2
  405. package/es/Switch/Switch.mjs.map +1 -1
  406. package/es/Switch/atoms.mjs +2 -2
  407. package/es/Switch/atoms.mjs.map +1 -1
  408. package/es/Table/Column.d.mts +8 -0
  409. package/es/Table/Column.mjs +6 -0
  410. package/es/Table/Column.mjs.map +1 -0
  411. package/es/Table/ColumnGroup.d.mts +11 -0
  412. package/es/Table/ColumnGroup.mjs +6 -0
  413. package/es/Table/ColumnGroup.mjs.map +1 -0
  414. package/es/Table/Table.d.mts +16 -2
  415. package/es/Table/Table.mjs +149 -118
  416. package/es/Table/Table.mjs.map +1 -1
  417. package/es/Table/atoms/cells.d.mts +42 -0
  418. package/es/Table/atoms/cells.mjs +72 -0
  419. package/es/Table/atoms/cells.mjs.map +1 -0
  420. package/es/Table/atoms/index.d.mts +3 -0
  421. package/es/Table/atoms/layout.d.mts +44 -0
  422. package/es/Table/atoms/layout.mjs +62 -0
  423. package/es/Table/atoms/layout.mjs.map +1 -0
  424. package/es/Table/constants.mjs +16 -0
  425. package/es/Table/constants.mjs.map +1 -0
  426. package/es/Table/engine/fixed.d.mts +1 -0
  427. package/es/Table/engine/fixed.mjs +53 -0
  428. package/es/Table/engine/fixed.mjs.map +1 -0
  429. package/es/Table/engine/types.d.mts +1 -0
  430. package/es/Table/engine/useTableEngine.mjs +180 -0
  431. package/es/Table/engine/useTableEngine.mjs.map +1 -0
  432. package/es/Table/index.d.mts +7 -2
  433. package/es/Table/index.mjs +4 -1
  434. package/es/Table/internal.d.mts +3 -0
  435. package/es/Table/pipeline/columnUtils.d.mts +5 -0
  436. package/es/Table/pipeline/columnUtils.mjs +58 -0
  437. package/es/Table/pipeline/columnUtils.mjs.map +1 -0
  438. package/es/Table/pipeline/convertChildrenToColumns.mjs +24 -0
  439. package/es/Table/pipeline/convertChildrenToColumns.mjs.map +1 -0
  440. package/es/Table/pipeline/normalizeColumns.mjs +140 -0
  441. package/es/Table/pipeline/normalizeColumns.mjs.map +1 -0
  442. package/es/Table/pipeline/selectionUtils.d.mts +9 -0
  443. package/es/Table/pipeline/selectionUtils.mjs +115 -0
  444. package/es/Table/pipeline/selectionUtils.mjs.map +1 -0
  445. package/es/Table/pipeline/useBreakpoint.mjs +36 -0
  446. package/es/Table/pipeline/useBreakpoint.mjs.map +1 -0
  447. package/es/Table/pipeline/useExpandable.mjs +45 -0
  448. package/es/Table/pipeline/useExpandable.mjs.map +1 -0
  449. package/es/Table/pipeline/useFilter.mjs +52 -0
  450. package/es/Table/pipeline/useFilter.mjs.map +1 -0
  451. package/es/Table/pipeline/useSelection.mjs +302 -0
  452. package/es/Table/pipeline/useSelection.mjs.map +1 -0
  453. package/es/Table/pipeline/useSorter.mjs +146 -0
  454. package/es/Table/pipeline/useSorter.mjs.map +1 -0
  455. package/es/Table/pipeline/useTableLocale.mjs +30 -0
  456. package/es/Table/pipeline/useTableLocale.mjs.map +1 -0
  457. package/es/Table/pipeline/useTableState.mjs +118 -0
  458. package/es/Table/pipeline/useTableState.mjs.map +1 -0
  459. package/es/Table/pipeline/useVirtualLayout.mjs +80 -0
  460. package/es/Table/pipeline/useVirtualLayout.mjs.map +1 -0
  461. package/es/Table/render/Body.mjs +150 -0
  462. package/es/Table/render/Body.mjs.map +1 -0
  463. package/es/Table/render/BodyCell.mjs +87 -0
  464. package/es/Table/render/BodyCell.mjs.map +1 -0
  465. package/es/Table/render/CellShell.mjs +84 -0
  466. package/es/Table/render/CellShell.mjs.map +1 -0
  467. package/es/Table/render/ExpandIcon.mjs +28 -0
  468. package/es/Table/render/ExpandIcon.mjs.map +1 -0
  469. package/es/Table/render/FilterDropdown.mjs +139 -0
  470. package/es/Table/render/FilterDropdown.mjs.map +1 -0
  471. package/es/Table/render/FilterPanel.mjs +152 -0
  472. package/es/Table/render/FilterPanel.mjs.map +1 -0
  473. package/es/Table/render/FixedFrost.mjs +113 -0
  474. package/es/Table/render/FixedFrost.mjs.map +1 -0
  475. package/es/Table/render/FixedHolder.mjs +51 -0
  476. package/es/Table/render/FixedHolder.mjs.map +1 -0
  477. package/es/Table/render/Header.mjs +184 -0
  478. package/es/Table/render/Header.mjs.map +1 -0
  479. package/es/Table/render/LoadingSkeleton.mjs +78 -0
  480. package/es/Table/render/LoadingSkeleton.mjs.map +1 -0
  481. package/es/Table/render/PaginationBar.mjs +71 -0
  482. package/es/Table/render/PaginationBar.mjs.map +1 -0
  483. package/es/Table/render/SelectionCells.mjs +111 -0
  484. package/es/Table/render/SelectionCells.mjs.map +1 -0
  485. package/es/Table/render/StickyScrollBar.mjs +99 -0
  486. package/es/Table/render/StickyScrollBar.mjs.map +1 -0
  487. package/es/Table/render/Summary.d.mts +16 -0
  488. package/es/Table/render/Summary.mjs +58 -0
  489. package/es/Table/render/Summary.mjs.map +1 -0
  490. package/es/Table/render/TableView.mjs +215 -0
  491. package/es/Table/render/TableView.mjs.map +1 -0
  492. package/es/Table/render/VirtualBody.mjs +101 -0
  493. package/es/Table/render/VirtualBody.mjs.map +1 -0
  494. package/es/Table/render/context.mjs +15 -0
  495. package/es/Table/render/context.mjs.map +1 -0
  496. package/es/Table/render/filterUtils.mjs +22 -0
  497. package/es/Table/render/filterUtils.mjs.map +1 -0
  498. package/es/Table/render/tableHelpers.mjs +27 -0
  499. package/es/Table/render/tableHelpers.mjs.map +1 -0
  500. package/es/Table/render/useColGroups.mjs +23 -0
  501. package/es/Table/render/useColGroups.mjs.map +1 -0
  502. package/es/Table/render/useScrollSync.mjs +104 -0
  503. package/es/Table/render/useScrollSync.mjs.map +1 -0
  504. package/es/Table/render/useViewContexts.mjs +134 -0
  505. package/es/Table/render/useViewContexts.mjs.map +1 -0
  506. package/es/Table/semantic.mjs +45 -0
  507. package/es/Table/semantic.mjs.map +1 -0
  508. package/es/Table/store/createTableStore.d.mts +1 -0
  509. package/es/Table/store/createTableStore.mjs +40 -0
  510. package/es/Table/store/createTableStore.mjs.map +1 -0
  511. package/es/Table/store/hooks.mjs +24 -0
  512. package/es/Table/store/hooks.mjs.map +1 -0
  513. package/es/Table/style.mjs +175 -90
  514. package/es/Table/style.mjs.map +1 -1
  515. package/es/Table/type.d.mts +467 -37
  516. package/es/Table/useTableController.mjs +293 -0
  517. package/es/Table/useTableController.mjs.map +1 -0
  518. package/es/Tabs/Tabs.mjs +2 -2
  519. package/es/Tabs/Tabs.mjs.map +1 -1
  520. package/es/Tabs/atoms.mjs +2 -2
  521. package/es/Tabs/atoms.mjs.map +1 -1
  522. package/es/Tag/Tag.mjs +2 -2
  523. package/es/Tag/Tag.mjs.map +1 -1
  524. package/es/Text/Text.mjs +2 -2
  525. package/es/Text/Text.mjs.map +1 -1
  526. package/es/Text/style.d.mts +3 -3
  527. package/es/Text/style.mjs +3 -3
  528. package/es/Text/style.mjs.map +1 -1
  529. package/es/ToggleGroup/ToggleGroup.mjs +3 -3
  530. package/es/ToggleGroup/ToggleGroup.mjs.map +1 -1
  531. package/es/ToggleGroup/atoms.mjs +2 -2
  532. package/es/ToggleGroup/atoms.mjs.map +1 -1
  533. package/es/Tooltip/TooltipGroup.mjs +3 -3
  534. package/es/Tooltip/TooltipGroup.mjs.map +1 -1
  535. package/es/Tooltip/TooltipStandalone.mjs +3 -3
  536. package/es/Tooltip/TooltipStandalone.mjs.map +1 -1
  537. package/es/Tree/Tree.mjs +2 -2
  538. package/es/Tree/Tree.mjs.map +1 -1
  539. package/es/Tree/TreeNode.mjs +2 -2
  540. package/es/Tree/TreeNode.mjs.map +1 -1
  541. package/es/Video/Video.mjs +2 -2
  542. package/es/Video/Video.mjs.map +1 -1
  543. package/es/awesome/Features/FeatureItem.mjs +2 -2
  544. package/es/awesome/Features/FeatureItem.mjs.map +1 -1
  545. package/es/awesome/Hero/Hero.mjs +3 -3
  546. package/es/awesome/Hero/Hero.mjs.map +1 -1
  547. package/es/awesome/InstallBanner/InstallBanner.mjs +2 -2
  548. package/es/awesome/InstallBanner/InstallBanner.mjs.map +1 -1
  549. package/es/awesome/LandingHero/LandingHero.mjs +3 -3
  550. package/es/awesome/LandingHero/LandingHero.mjs.map +1 -1
  551. package/es/awesome/LogoMarquee/LogoMarquee.mjs +2 -2
  552. package/es/awesome/LogoMarquee/LogoMarquee.mjs.map +1 -1
  553. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +4 -4
  554. package/es/awesome/TypewriterEffect/TypewriterEffect.mjs.map +1 -1
  555. package/es/awesome/landingActions.mjs +2 -2
  556. package/es/awesome/landingActions.mjs.map +1 -1
  557. package/es/chat/ChatItem/ChatItem.mjs +2 -2
  558. package/es/chat/ChatItem/ChatItem.mjs.map +1 -1
  559. package/es/chat/EditableMessage/EditableMessage.mjs +3 -3
  560. package/es/chat/EditableMessage/EditableMessage.mjs.map +1 -1
  561. package/es/chat/EditableMessageList/EditableMessageList.mjs +1 -1
  562. package/es/chat/MessageInput/MessageInput.mjs +3 -3
  563. package/es/chat/MessageInput/MessageInput.mjs.map +1 -1
  564. package/es/dashboard/AuthLayout/AuthLayout.mjs +8 -4
  565. package/es/dashboard/AuthLayout/AuthLayout.mjs.map +1 -1
  566. package/es/dashboard/AuthLayout/style.mjs +14 -3
  567. package/es/dashboard/AuthLayout/style.mjs.map +1 -1
  568. package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs +2 -2
  569. package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs.map +1 -1
  570. package/es/dashboard/AuthTools/AuthThemeSwitch.mjs +2 -2
  571. package/es/dashboard/AuthTools/AuthThemeSwitch.mjs.map +1 -1
  572. package/es/dashboard/ConsoleNav/ConsoleNav.mjs +3 -3
  573. package/es/dashboard/ConsoleNav/ConsoleNav.mjs.map +1 -1
  574. package/es/dashboard/ConsoleNav/style.mjs +2 -2
  575. package/es/dashboard/ConsoleNav/style.mjs.map +1 -1
  576. package/es/dashboard/ConsoleShell/style.mjs +1 -1
  577. package/es/dashboard/ConsoleShell/style.mjs.map +1 -1
  578. package/es/dashboard/FilterSidebar/FilterSidebar.mjs +1 -1
  579. package/es/dashboard/FilterSidebar/style.mjs +2 -2
  580. package/es/dashboard/FilterSidebar/style.mjs.map +1 -1
  581. package/es/dashboard/FilterStrip/style.mjs +1 -1
  582. package/es/dashboard/FilterStrip/style.mjs.map +1 -1
  583. package/es/dashboard/MetricStrip/MetricCell.mjs +25 -14
  584. package/es/dashboard/MetricStrip/MetricCell.mjs.map +1 -1
  585. package/es/dashboard/MetricStrip/style.mjs +14 -1
  586. package/es/dashboard/MetricStrip/style.mjs.map +1 -1
  587. package/es/dashboard/MetricStrip/type.d.mts +2 -0
  588. package/es/dashboard/PageSkeleton/style.mjs +2 -1
  589. package/es/dashboard/PageSkeleton/style.mjs.map +1 -1
  590. package/es/dashboard/StatCard/StatCard.d.mts +1 -1
  591. package/es/dashboard/StatCard/StatCard.mjs +2 -1
  592. package/es/dashboard/StatCard/StatCard.mjs.map +1 -1
  593. package/es/dashboard/StatCard/type.d.mts +2 -0
  594. package/es/dashboard/Surface/Surface.mjs +3 -4
  595. package/es/dashboard/Surface/Surface.mjs.map +1 -1
  596. package/es/dashboard/Surface/link.mjs +1 -1
  597. package/es/dashboard/Surface/link.mjs.map +1 -1
  598. package/es/dashboard/Surface/style.mjs +15 -14
  599. package/es/dashboard/Surface/style.mjs.map +1 -1
  600. package/es/dashboard/index.mjs +2 -2
  601. package/es/eslint/noBaseUiSubpath.mjs +2 -1
  602. package/es/eslint/noBaseUiSubpath.mjs.map +1 -1
  603. package/es/i18n/resources/en/colorPicker.d.mts +5 -0
  604. package/es/i18n/resources/en/colorPicker.mjs +5 -0
  605. package/es/i18n/resources/en/colorPicker.mjs.map +1 -1
  606. package/es/i18n/resources/en/datePicker.d.mts +54 -0
  607. package/es/i18n/resources/en/datePicker.mjs +55 -1
  608. package/es/i18n/resources/en/datePicker.mjs.map +1 -1
  609. package/es/i18n/resources/en/index.d.mts +4 -3
  610. package/es/i18n/resources/en/index.mjs +3 -1
  611. package/es/i18n/resources/en/index.mjs.map +1 -1
  612. package/es/i18n/resources/en/table.d.mts +23 -0
  613. package/es/i18n/resources/en/table.mjs +24 -0
  614. package/es/i18n/resources/en/table.mjs.map +1 -0
  615. package/es/i18n/resources/zhCn/colorPicker.d.mts +5 -0
  616. package/es/i18n/resources/zhCn/colorPicker.mjs +5 -0
  617. package/es/i18n/resources/zhCn/colorPicker.mjs.map +1 -1
  618. package/es/i18n/resources/zhCn/datePicker.d.mts +54 -0
  619. package/es/i18n/resources/zhCn/datePicker.mjs +55 -1
  620. package/es/i18n/resources/zhCn/datePicker.mjs.map +1 -1
  621. package/es/i18n/resources/zhCn/index.d.mts +4 -3
  622. package/es/i18n/resources/zhCn/index.mjs +4 -2
  623. package/es/i18n/resources/zhCn/index.mjs.map +1 -1
  624. package/es/i18n/resources/zhCn/table.d.mts +23 -0
  625. package/es/i18n/resources/zhCn/table.mjs +24 -0
  626. package/es/i18n/resources/zhCn/table.mjs.map +1 -0
  627. package/es/i18n/types.d.mts +3 -2
  628. package/es/index.d.mts +15 -6
  629. package/es/index.mjs +12 -6
  630. package/es/internal/overflow/OverflowList.mjs +71 -0
  631. package/es/internal/overflow/OverflowList.mjs.map +1 -0
  632. package/es/mdx/Callout/index.mjs +2 -2
  633. package/es/mdx/Callout/index.mjs.map +1 -1
  634. package/es/mdx/Cards/Card.mjs +2 -2
  635. package/es/mdx/Cards/Card.mjs.map +1 -1
  636. package/es/mdx/Cards/index.mjs +2 -2
  637. package/es/mdx/Cards/index.mjs.map +1 -1
  638. package/es/mdx/Mdx/index.mjs +2 -2
  639. package/es/mdx/Mdx/index.mjs.map +1 -1
  640. package/es/mdx/Steps/index.mjs +2 -2
  641. package/es/mdx/Steps/index.mjs.map +1 -1
  642. package/es/mdx/mdxComponents/Pre.mjs +5 -5
  643. package/es/mdx/mdxComponents/Pre.mjs.map +1 -1
  644. package/es/storybook/StoryBook/style.mjs +2 -0
  645. package/es/storybook/StoryBook/style.mjs.map +1 -1
  646. package/es/style.css +2966 -957
  647. package/es/styles/stylex/props.mjs +2 -2
  648. package/es/styles/stylex/props.mjs.map +1 -1
  649. package/es/styles/theme/themeCss.mjs +15 -0
  650. package/es/styles/theme/themeCss.mjs.map +1 -1
  651. package/es/theme.css +8 -0
  652. package/package.json +6 -1
  653. package/es/DatePicker/CalendarPanel.mjs +0 -189
  654. package/es/DatePicker/CalendarPanel.mjs.map +0 -1
  655. package/es/DatePicker/PickerShell.mjs +0 -43
  656. package/es/DatePicker/PickerShell.mjs.map +0 -1
  657. package/es/DatePicker/calendar.d.mts +0 -4
  658. package/es/DatePicker/calendar.mjs +0 -46
  659. package/es/DatePicker/calendar.mjs.map +0 -1
  660. package/es/Table/FilterMenu.mjs +0 -45
  661. package/es/Table/FilterMenu.mjs.map +0 -1
  662. package/es/Table/TableBody.mjs +0 -67
  663. package/es/Table/TableBody.mjs.map +0 -1
  664. package/es/Table/TableHead.mjs +0 -58
  665. package/es/Table/TableHead.mjs.map +0 -1
  666. package/es/Table/features.mjs +0 -12
  667. package/es/Table/features.mjs.map +0 -1
  668. package/es/Table/fixedOffsets.mjs +0 -29
  669. package/es/Table/fixedOffsets.mjs.map +0 -1
  670. package/es/Table/marker.stylex.mjs +0 -9
  671. package/es/Table/marker.stylex.mjs.map +0 -1
  672. package/es/Table/toColumnDefs.mjs +0 -26
  673. package/es/Table/toColumnDefs.mjs.map +0 -1
  674. package/es/Table/useTableState.mjs +0 -99
  675. package/es/Table/useTableState.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClearIcon.mjs","names":["React"],"sources":["../../../../../src/DatePicker/core/PickerInput/Selector/ClearIcon.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport PickerContext from '../context';\n\nexport interface ClearIconProps extends React.HtmlHTMLAttributes<HTMLElement> {\n icon?: React.ReactNode;\n onClear: VoidFunction;\n}\n\nexport default function ClearIcon({ icon, onClear, ...restProps }: ClearIconProps) {\n const { prefixCls, classNames, styles, locale } = React.use(PickerContext);\n\n return (\n <button\n {...restProps}\n aria-label={locale.clear}\n className={clsx(`${prefixCls}-clear`, classNames.suffix)}\n style={styles.suffix}\n type=\"button\"\n onClick={(e) => {\n e.stopPropagation();\n onClear();\n }}\n onMouseDown={(e) => {\n e.preventDefault();\n }}\n >\n {icon}\n </button>\n );\n}\n"],"mappings":";;;;;AAUA,SAAwB,UAAU,EAAE,MAAM,SAAS,GAAG,aAA6B;CACjF,MAAM,EAAE,WAAW,YAAY,QAAQ,WAAWA,QAAM,IAAI,aAAa;CAEzE,OACE,oBAAC,UAAD;EACE,GAAI;EACJ,cAAY,OAAO;EACnB,WAAW,KAAK,GAAG,UAAU,SAAS,WAAW,MAAM;EACvD,OAAO,OAAO;EACd,MAAK;EACL,UAAU,MAAM;GACd,EAAE,gBAAgB;GAClB,QAAQ;EACV;EACA,cAAc,MAAM;GAClB,EAAE,eAAe;EACnB;EAEC,UAAA;CACK,CAAA;AAEZ"}
@@ -0,0 +1,19 @@
1
+ import PickerContext from "../context.mjs";
2
+ import { isReactRenderable } from "../../utils/common.mjs";
3
+ import * as React$1 from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { clsx } from "clsx";
6
+ //#region src/DatePicker/core/PickerInput/Selector/Icon.tsx
7
+ function Icon({ icon, ...restProps }) {
8
+ const { prefixCls, classNames, styles } = React$1.use(PickerContext);
9
+ return isReactRenderable(icon) ? /* @__PURE__ */ jsx("span", {
10
+ className: clsx(`${prefixCls}-suffix`, classNames.suffix),
11
+ style: styles.suffix,
12
+ ...restProps,
13
+ children: icon
14
+ }) : null;
15
+ }
16
+ //#endregion
17
+ export { Icon as default };
18
+
19
+ //# sourceMappingURL=Icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.mjs","names":["React"],"sources":["../../../../../src/DatePicker/core/PickerInput/Selector/Icon.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { isReactRenderable } from '../../utils/common';\nimport PickerContext from '../context';\n\nexport interface IconProps extends React.HtmlHTMLAttributes<HTMLElement> {\n icon?: React.ReactNode;\n}\n\nexport default function Icon({ icon, ...restProps }: IconProps) {\n const { prefixCls, classNames, styles } = React.use(PickerContext);\n\n return isReactRenderable(icon) ? (\n <span\n className={clsx(`${prefixCls}-suffix`, classNames.suffix)}\n style={styles.suffix}\n {...restProps}\n >\n {icon}\n </span>\n ) : null;\n}\n"],"mappings":";;;;;;AAUA,SAAwB,KAAK,EAAE,MAAM,GAAG,aAAwB;CAC9D,MAAM,EAAE,WAAW,YAAY,WAAWA,QAAM,IAAI,aAAa;CAEjE,OAAO,kBAAkB,IAAI,IAC3B,oBAAC,QAAD;EACE,WAAW,KAAK,GAAG,UAAU,UAAU,WAAW,MAAM;EACxD,OAAO,OAAO;EACd,GAAI;EAEH,UAAA;CACG,CAAA,IACJ;AACN"}
@@ -0,0 +1,237 @@
1
+ import { useEvent, useLayoutEffect as useLayoutEffect$1 } from "../../hooks/react.mjs";
2
+ import PickerContext from "../context.mjs";
3
+ import { raf } from "../../utils/common.mjs";
4
+ import { leftPad } from "../../utils/miscUtil.mjs";
5
+ import Icon from "./Icon.mjs";
6
+ import useLockEffect from "../hooks/useLockEffect.mjs";
7
+ import MaskFormat from "./MaskFormat.mjs";
8
+ import { getMaskRange } from "./util.mjs";
9
+ import * as React$1 from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { clsx } from "clsx";
12
+ //#region src/DatePicker/core/PickerInput/Selector/Input.tsx
13
+ const Input = ({ ref, ...props }) => {
14
+ const { className, active, showActiveCls = true, suffixIcon, format, validateFormat, onChange, onInput, helped, onHelp, onSubmit, onKeyDown, preserveInvalidOnBlur = false, invalid, clearIcon, ...restProps } = props;
15
+ const { value, onFocus, onBlur, onMouseUp } = props;
16
+ const { prefixCls, input: Component = "input", classNames, styles } = React$1.use(PickerContext);
17
+ const inputPrefixCls = `${prefixCls}-input`;
18
+ const [focused, setFocused] = React$1.useState(false);
19
+ const [internalInputValue, setInputValue] = React$1.useState(value);
20
+ const [focusCellText, setFocusCellText] = React$1.useState("");
21
+ const [focusCellIndex, setFocusCellIndex] = React$1.useState(null);
22
+ const [forceSelectionSyncMark, forceSelectionSync] = React$1.useState(null);
23
+ const inputValue = internalInputValue || "";
24
+ React$1.useEffect(() => {
25
+ setInputValue(value);
26
+ }, [value]);
27
+ const holderRef = React$1.useRef(null);
28
+ const inputRef = React$1.useRef(null);
29
+ const mouseDownRef = React$1.useRef(false);
30
+ React$1.useImperativeHandle(ref, () => ({
31
+ nativeElement: holderRef.current,
32
+ inputElement: inputRef.current,
33
+ focus: (options) => {
34
+ inputRef.current.focus(options);
35
+ },
36
+ blur: () => {
37
+ inputRef.current.blur();
38
+ }
39
+ }));
40
+ const maskFormat = React$1.useMemo(() => new MaskFormat(format || ""), [format]);
41
+ const [selectionStart, selectionEnd] = React$1.useMemo(() => {
42
+ if (helped) return [0, 0];
43
+ return maskFormat.getSelection(focusCellIndex);
44
+ }, [
45
+ maskFormat,
46
+ focusCellIndex,
47
+ helped
48
+ ]);
49
+ const onModify = (text) => {
50
+ if (text && text !== format && text !== value) onHelp();
51
+ };
52
+ /**
53
+ * Triggered by paste, keyDown and focus to show format
54
+ */
55
+ const triggerInputChange = useEvent((text) => {
56
+ if (validateFormat(text)) onChange(text);
57
+ setInputValue(text);
58
+ onModify(text);
59
+ });
60
+ const onInternalChange = (event) => {
61
+ if (!format) {
62
+ const text = event.target.value;
63
+ onModify(text);
64
+ setInputValue(text);
65
+ onChange(text);
66
+ }
67
+ };
68
+ const onFormatPaste = (event) => {
69
+ if (mouseDownRef.current) {
70
+ event.preventDefault();
71
+ return;
72
+ }
73
+ const pasteText = event.clipboardData.getData("text");
74
+ if (validateFormat(pasteText)) triggerInputChange(pasteText);
75
+ };
76
+ const onFormatMouseDown = () => {
77
+ mouseDownRef.current = true;
78
+ };
79
+ const onFormatMouseUp = (event) => {
80
+ const { selectionStart: start } = event.target;
81
+ const closeMaskIndex = maskFormat.getMaskCellIndex(start);
82
+ setFocusCellIndex(closeMaskIndex);
83
+ forceSelectionSync({});
84
+ onMouseUp?.(event);
85
+ mouseDownRef.current = false;
86
+ };
87
+ const onFormatFocus = (event) => {
88
+ setFocused(true);
89
+ setFocusCellIndex(0);
90
+ setFocusCellText("");
91
+ onFocus(event);
92
+ };
93
+ const onSharedBlur = (event) => {
94
+ onBlur(event);
95
+ };
96
+ const onFormatBlur = (event) => {
97
+ setFocused(false);
98
+ onSharedBlur(event);
99
+ };
100
+ useLockEffect(active, () => {
101
+ if (!active && !preserveInvalidOnBlur) setInputValue(value);
102
+ });
103
+ const onSharedKeyDown = (event) => {
104
+ if (event.key === "Enter" && validateFormat(inputValue)) onSubmit();
105
+ onKeyDown?.(event);
106
+ };
107
+ const onFormatKeyDown = (event) => {
108
+ if (mouseDownRef.current) {
109
+ event.preventDefault();
110
+ return;
111
+ }
112
+ onSharedKeyDown(event);
113
+ const { key } = event;
114
+ let nextCellText = null;
115
+ let nextFillText = null;
116
+ const maskCellLen = selectionEnd - selectionStart;
117
+ const cellFormat = format.slice(selectionStart, selectionEnd);
118
+ const offsetCellIndex = (offset) => {
119
+ setFocusCellIndex((idx) => {
120
+ let nextIndex = idx + offset;
121
+ nextIndex = Math.max(nextIndex, 0);
122
+ nextIndex = Math.min(nextIndex, maskFormat.size() - 1);
123
+ return nextIndex;
124
+ });
125
+ };
126
+ const offsetCellValue = (offset) => {
127
+ const [rangeStart, rangeEnd, rangeDefault] = getMaskRange(cellFormat);
128
+ const currentText = inputValue.slice(selectionStart, selectionEnd);
129
+ const currentTextNum = Number(currentText);
130
+ if (isNaN(currentTextNum)) return String(rangeDefault ? rangeDefault : offset > 0 ? rangeStart : rangeEnd);
131
+ const num = currentTextNum + offset;
132
+ const range = rangeEnd - rangeStart + 1;
133
+ return String(rangeStart + (range + num - rangeStart) % range);
134
+ };
135
+ switch (key) {
136
+ case "Backspace":
137
+ case "Delete":
138
+ nextCellText = "";
139
+ nextFillText = cellFormat;
140
+ break;
141
+ case "ArrowLeft":
142
+ nextCellText = "";
143
+ offsetCellIndex(-1);
144
+ break;
145
+ case "ArrowRight":
146
+ nextCellText = "";
147
+ offsetCellIndex(1);
148
+ break;
149
+ case "ArrowUp":
150
+ nextCellText = "";
151
+ nextFillText = offsetCellValue(1);
152
+ break;
153
+ case "ArrowDown":
154
+ nextCellText = "";
155
+ nextFillText = offsetCellValue(-1);
156
+ break;
157
+ default: if (!isNaN(Number(key))) {
158
+ nextCellText = focusCellText + key;
159
+ nextFillText = nextCellText;
160
+ }
161
+ }
162
+ if (nextCellText !== null) {
163
+ setFocusCellText(nextCellText);
164
+ if (nextCellText.length >= maskCellLen) {
165
+ offsetCellIndex(1);
166
+ setFocusCellText("");
167
+ }
168
+ }
169
+ if (nextFillText !== null) {
170
+ const nextFocusValue = inputValue.slice(0, selectionStart) + leftPad(nextFillText, maskCellLen) + inputValue.slice(selectionEnd);
171
+ triggerInputChange(nextFocusValue.slice(0, format.length));
172
+ }
173
+ forceSelectionSync({});
174
+ };
175
+ const rafRef = React$1.useRef(void 0);
176
+ useLayoutEffect$1(() => {
177
+ if (!focused || !format || mouseDownRef.current) return;
178
+ if (!maskFormat.match(inputValue)) {
179
+ triggerInputChange(format);
180
+ return;
181
+ }
182
+ inputRef.current.setSelectionRange(selectionStart, selectionEnd);
183
+ rafRef.current = raf(() => {
184
+ inputRef.current.setSelectionRange(selectionStart, selectionEnd);
185
+ });
186
+ return () => {
187
+ raf.cancel(rafRef.current);
188
+ };
189
+ }, [
190
+ maskFormat,
191
+ format,
192
+ focused,
193
+ inputValue,
194
+ focusCellIndex,
195
+ selectionStart,
196
+ selectionEnd,
197
+ forceSelectionSyncMark,
198
+ triggerInputChange
199
+ ]);
200
+ const inputProps = format ? {
201
+ onFocus: onFormatFocus,
202
+ onBlur: onFormatBlur,
203
+ onKeyDown: onFormatKeyDown,
204
+ onMouseDown: onFormatMouseDown,
205
+ onMouseUp: onFormatMouseUp,
206
+ onPaste: onFormatPaste
207
+ } : {};
208
+ return /* @__PURE__ */ jsxs("div", {
209
+ ref: holderRef,
210
+ className: clsx(inputPrefixCls, {
211
+ [`${inputPrefixCls}-active`]: active && showActiveCls,
212
+ [`${inputPrefixCls}-placeholder`]: helped
213
+ }, className),
214
+ children: [
215
+ /* @__PURE__ */ jsx(Component, {
216
+ "aria-invalid": invalid,
217
+ autoComplete: "off",
218
+ ref: inputRef,
219
+ ...restProps,
220
+ onKeyDown: onSharedKeyDown,
221
+ onBlur: onSharedBlur,
222
+ ...inputProps,
223
+ className: classNames.input,
224
+ style: styles.input,
225
+ value: inputValue,
226
+ onChange: onInternalChange
227
+ }),
228
+ /* @__PURE__ */ jsx(Icon, { icon: suffixIcon }),
229
+ clearIcon
230
+ ]
231
+ });
232
+ };
233
+ if (process.env.NODE_ENV !== "production") Input.displayName = "Input";
234
+ //#endregion
235
+ export { Input as default };
236
+
237
+ //# sourceMappingURL=Input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.mjs","names":["React"],"sources":["../../../../../src/DatePicker/core/PickerInput/Selector/Input.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { useEvent, useLayoutEffect } from '../../hooks/react';\nimport type { PickerRef } from '../../interface';\nimport { raf } from '../../utils/common';\nimport { leftPad } from '../../utils/miscUtil';\nimport PickerContext from '../context';\nimport useLockEffect from '../hooks/useLockEffect';\nimport Icon from './Icon';\nimport MaskFormat from './MaskFormat';\nimport { getMaskRange } from './util';\n\n// Format logic\n//\n// First time on focus:\n// 1. check if the text is valid, if not fill with format\n// 2. set highlight cell to the first cell\n// Cells\n// 1. Selection the index cell, set inner `cacheValue` to ''\n// 2. Key input filter non-number char, patch after the `cacheValue`\n// 1. Replace the `cacheValue` with input align the cell length\n// 2. Re-selection the mask cell\n// 3. If `cacheValue` match the limit length or cell format (like 1 ~ 12 month), go to next cell\n\nexport interface InputRef extends PickerRef {\n inputElement: HTMLInputElement;\n}\n\nexport interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n active?: boolean;\n clearIcon?: React.ReactNode;\n format?: string | null;\n /** Meaning current is from the hover cell getting the placeholder text */\n helped?: boolean;\n invalid?: boolean;\n onChange: (value: string) => void;\n /**\n * Trigger when input need additional help.\n * Like open the popup for interactive.\n */\n onHelp: () => void;\n onSubmit: VoidFunction;\n preserveInvalidOnBlur?: boolean;\n /** Used for single picker only */\n showActiveCls?: boolean;\n suffixIcon?: React.ReactNode;\n validateFormat: (value: string) => boolean;\n\n value?: string;\n}\n\nconst Input = ({ ref, ...props }: InputProps & { ref?: React.RefObject<InputRef | null> }) => {\n const {\n className,\n active,\n showActiveCls = true,\n suffixIcon,\n format,\n validateFormat,\n onChange,\n onInput,\n helped,\n onHelp,\n onSubmit,\n onKeyDown,\n preserveInvalidOnBlur = false,\n invalid,\n clearIcon,\n // Pass to input\n ...restProps\n } = props;\n const { value, onFocus, onBlur, onMouseUp } = props;\n\n const { prefixCls, input: Component = 'input', classNames, styles } = React.use(PickerContext);\n const inputPrefixCls = `${prefixCls}-input`;\n\n // ======================== Value =========================\n const [focused, setFocused] = React.useState(false);\n const [internalInputValue, setInputValue] = React.useState<string | undefined>(value);\n const [focusCellText, setFocusCellText] = React.useState<string>('');\n const [focusCellIndex, setFocusCellIndex] = React.useState<number | null>(null);\n const [forceSelectionSyncMark, forceSelectionSync] = React.useState<object | null>(null);\n\n const inputValue = internalInputValue || '';\n\n // Sync value if needed\n React.useEffect(() => {\n setInputValue(value);\n }, [value]);\n\n // ========================= Refs =========================\n const holderRef = React.useRef<HTMLDivElement>(null);\n const inputRef = React.useRef<HTMLInputElement>(null);\n // When mousedown get focus, defer selection to mouseUp so click position is used\n const mouseDownRef = React.useRef(false);\n\n React.useImperativeHandle(ref, () => ({\n nativeElement: holderRef.current!,\n inputElement: inputRef.current!,\n focus: (options) => {\n inputRef.current!.focus(options);\n },\n blur: () => {\n inputRef.current!.blur();\n },\n }));\n\n // ======================== Format ========================\n const maskFormat = React.useMemo(() => new MaskFormat(format || ''), [format]);\n\n const [selectionStart, selectionEnd] = React.useMemo(() => {\n if (helped) {\n return [0, 0];\n }\n\n return maskFormat.getSelection(focusCellIndex!);\n }, [maskFormat, focusCellIndex, helped]);\n\n // ======================== Modify ========================\n // When input modify content, trigger `onHelp` if is not the format\n const onModify = (text: string) => {\n if (text && text !== format && text !== value) {\n onHelp();\n }\n };\n\n // ======================== Change ========================\n /**\n * Triggered by paste, keyDown and focus to show format\n */\n const triggerInputChange = useEvent((text: string) => {\n if (validateFormat(text)) {\n onChange(text);\n }\n setInputValue(text);\n onModify(text);\n });\n\n // Directly trigger `onChange` if `format` is empty\n const onInternalChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {\n // Hack `onChange` with format to do nothing\n if (!format) {\n const text = event.target.value;\n\n onModify(text);\n setInputValue(text);\n onChange(text);\n }\n };\n\n const onFormatPaste: React.ClipboardEventHandler<HTMLInputElement> = (event) => {\n // Block paste until selection is set (after mouseUp when focus was by mousedown)\n if (mouseDownRef.current) {\n event.preventDefault();\n return;\n }\n\n // Get paste text\n const pasteText = event.clipboardData.getData('text');\n\n if (validateFormat(pasteText)) {\n triggerInputChange(pasteText);\n }\n };\n\n // ======================== Mouse =========================\n // When `mouseDown` get focus, it's better to not to change the selection\n // Since the up position maybe not is the first cell\n const onFormatMouseDown: React.MouseEventHandler<HTMLInputElement> = () => {\n mouseDownRef.current = true;\n };\n\n const onFormatMouseUp: React.MouseEventHandler<HTMLInputElement> = (event) => {\n const { selectionStart: start } = event.target as HTMLInputElement;\n\n const closeMaskIndex = maskFormat.getMaskCellIndex(start!);\n setFocusCellIndex(closeMaskIndex);\n\n // Force update the selection\n forceSelectionSync({});\n\n onMouseUp?.(event);\n\n mouseDownRef.current = false;\n };\n\n // ====================== Focus Blur ======================\n const onFormatFocus: React.FocusEventHandler<HTMLInputElement> = (event) => {\n setFocused(true);\n setFocusCellIndex(0);\n setFocusCellText('');\n\n onFocus!(event);\n };\n\n const onSharedBlur: React.FocusEventHandler<HTMLInputElement> = (event) => {\n onBlur!(event);\n };\n\n const onFormatBlur: React.FocusEventHandler<HTMLInputElement> = (event) => {\n setFocused(false);\n\n onSharedBlur(event);\n };\n\n // ======================== Active ========================\n // Check if blur need reset input value\n useLockEffect(active, () => {\n if (!active && !preserveInvalidOnBlur) {\n setInputValue(value);\n }\n });\n\n // ======================= Keyboard =======================\n const onSharedKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (event) => {\n if (event.key === 'Enter' && validateFormat(inputValue)) {\n onSubmit();\n }\n\n onKeyDown?.(event);\n };\n\n const onFormatKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (event) => {\n // Block key input until selection is set (after mouseUp when focus was by mousedown)\n if (mouseDownRef.current) {\n event.preventDefault();\n return;\n }\n\n onSharedKeyDown(event);\n\n const { key } = event;\n\n // Save the cache with cell text\n let nextCellText: string | null = null;\n\n // Fill in the input\n let nextFillText: string | null = null;\n\n const maskCellLen = selectionEnd - selectionStart;\n const cellFormat = format!.slice(selectionStart, selectionEnd);\n\n // Cell Index\n const offsetCellIndex = (offset: number) => {\n setFocusCellIndex((idx) => {\n let nextIndex = idx! + offset;\n nextIndex = Math.max(nextIndex, 0);\n nextIndex = Math.min(nextIndex, maskFormat.size() - 1);\n return nextIndex;\n });\n };\n\n // Range\n const offsetCellValue = (offset: number) => {\n const [rangeStart, rangeEnd, rangeDefault] = getMaskRange(cellFormat);\n\n const currentText = inputValue.slice(selectionStart, selectionEnd);\n const currentTextNum = Number(currentText);\n\n if (isNaN(currentTextNum)) {\n return String(rangeDefault ? rangeDefault : offset > 0 ? rangeStart : rangeEnd);\n }\n\n const num = currentTextNum + offset;\n const range = rangeEnd - rangeStart + 1;\n return String(rangeStart + ((range + num - rangeStart) % range));\n };\n\n switch (key) {\n // =============== Remove ===============\n case 'Backspace':\n case 'Delete': {\n nextCellText = '';\n nextFillText = cellFormat;\n break;\n }\n\n // =============== Arrows ===============\n // Left key\n case 'ArrowLeft': {\n nextCellText = '';\n offsetCellIndex(-1);\n break;\n }\n\n // Right key\n case 'ArrowRight': {\n nextCellText = '';\n offsetCellIndex(1);\n break;\n }\n\n // Up key\n case 'ArrowUp': {\n nextCellText = '';\n nextFillText = offsetCellValue(1);\n break;\n }\n\n // Down key\n case 'ArrowDown': {\n nextCellText = '';\n nextFillText = offsetCellValue(-1);\n break;\n }\n\n // =============== Number ===============\n default: {\n if (!isNaN(Number(key))) {\n nextCellText = focusCellText + key;\n nextFillText = nextCellText;\n }\n break;\n }\n }\n\n // Update cell text\n if (nextCellText !== null) {\n setFocusCellText(nextCellText);\n\n if (nextCellText.length >= maskCellLen) {\n // Go to next cell\n offsetCellIndex(1);\n setFocusCellText('');\n }\n }\n\n // Update the input text\n if (nextFillText !== null) {\n // Replace selection range with `nextCellText`\n const nextFocusValue =\n // before\n inputValue.slice(0, selectionStart) +\n // replace\n leftPad(nextFillText, maskCellLen) +\n // after\n inputValue.slice(selectionEnd);\n triggerInputChange(nextFocusValue.slice(0, format!.length));\n }\n\n // Always trigger selection sync after key down\n forceSelectionSync({});\n };\n\n // ======================== Format ========================\n const rafRef = React.useRef<number | undefined>(undefined);\n\n useLayoutEffect(() => {\n if (!focused || !format || mouseDownRef.current) {\n return;\n }\n\n // Reset with format if not match\n if (!maskFormat.match(inputValue)) {\n triggerInputChange(format);\n return;\n }\n\n // Match the selection range\n inputRef.current!.setSelectionRange(selectionStart, selectionEnd);\n\n // Chrome has the bug anchor position looks not correct but actually correct\n rafRef.current = raf(() => {\n inputRef.current!.setSelectionRange(selectionStart, selectionEnd);\n });\n\n return () => {\n raf.cancel(rafRef.current!);\n };\n }, [\n maskFormat,\n format,\n focused,\n inputValue,\n focusCellIndex,\n selectionStart,\n selectionEnd,\n forceSelectionSyncMark,\n triggerInputChange,\n ]);\n\n // ======================== Render ========================\n // Input props for format\n const inputProps: React.InputHTMLAttributes<HTMLInputElement> = format\n ? {\n onFocus: onFormatFocus,\n onBlur: onFormatBlur,\n onKeyDown: onFormatKeyDown,\n onMouseDown: onFormatMouseDown,\n onMouseUp: onFormatMouseUp,\n onPaste: onFormatPaste,\n }\n : {};\n\n return (\n <div\n ref={holderRef}\n className={clsx(\n inputPrefixCls,\n {\n [`${inputPrefixCls}-active`]: active && showActiveCls,\n [`${inputPrefixCls}-placeholder`]: helped,\n },\n className,\n )}\n >\n <Component\n aria-invalid={invalid}\n autoComplete=\"off\"\n ref={inputRef}\n {...restProps}\n onKeyDown={onSharedKeyDown}\n onBlur={onSharedBlur}\n // Replace with format\n {...inputProps}\n // Value\n className={classNames.input}\n style={styles.input}\n value={inputValue}\n onChange={onInternalChange}\n />\n <Icon icon={suffixIcon} />\n {clearIcon}\n </div>\n );\n};\n\nif (process.env.NODE_ENV !== 'production') {\n Input.displayName = 'Input';\n}\n\nexport default Input;\n"],"mappings":"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"}
@@ -0,0 +1,70 @@
1
+ //#region src/DatePicker/core/PickerInput/Selector/MaskFormat.ts
2
+ const FORMAT_KEYS = [
3
+ "YYYY",
4
+ "MM",
5
+ "DD",
6
+ "HH",
7
+ "mm",
8
+ "ss",
9
+ "SSS"
10
+ ];
11
+ const REPLACE_KEY = "顧";
12
+ var MaskFormat = class {
13
+ constructor(format) {
14
+ this.format = format;
15
+ const replaceKeys = FORMAT_KEYS.map((key) => `(${key})`).join("|");
16
+ const replaceReg = new RegExp(replaceKeys, "g");
17
+ this.maskFormat = format.replace(replaceReg, (key) => REPLACE_KEY.repeat(key.length));
18
+ const cellReg = new RegExp(`(${FORMAT_KEYS.join("|")})`);
19
+ const strCells = (format.split(cellReg) || []).filter((str) => str);
20
+ let offset = 0;
21
+ this.cells = strCells.map((text) => {
22
+ const mask = FORMAT_KEYS.includes(text);
23
+ const start = offset;
24
+ const end = offset + text.length;
25
+ offset = end;
26
+ return {
27
+ text,
28
+ mask,
29
+ start,
30
+ end
31
+ };
32
+ });
33
+ this.maskCells = this.cells.filter((cell) => cell.mask);
34
+ }
35
+ getSelection(maskCellIndex) {
36
+ const { start, end } = this.maskCells[maskCellIndex] || {};
37
+ return [start || 0, end || 0];
38
+ }
39
+ /** Check given text match format */
40
+ match(text) {
41
+ for (let i = 0; i < this.maskFormat.length; i += 1) {
42
+ const maskChar = this.maskFormat[i];
43
+ const textChar = text[i];
44
+ if (!textChar || maskChar !== REPLACE_KEY && maskChar !== textChar) return false;
45
+ }
46
+ return true;
47
+ }
48
+ /** Get mask cell count */
49
+ size() {
50
+ return this.maskCells.length;
51
+ }
52
+ getMaskCellIndex(anchorIndex) {
53
+ let closetDist = Number.MAX_SAFE_INTEGER;
54
+ let closetIndex = 0;
55
+ for (let i = 0; i < this.maskCells.length; i += 1) {
56
+ const { start, end } = this.maskCells[i];
57
+ if (anchorIndex >= start && anchorIndex <= end) return i;
58
+ const dist = Math.min(Math.abs(anchorIndex - start), Math.abs(anchorIndex - end));
59
+ if (dist < closetDist) {
60
+ closetDist = dist;
61
+ closetIndex = i;
62
+ }
63
+ }
64
+ return closetIndex;
65
+ }
66
+ };
67
+ //#endregion
68
+ export { MaskFormat as default };
69
+
70
+ //# sourceMappingURL=MaskFormat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaskFormat.mjs","names":[],"sources":["../../../../../src/DatePicker/core/PickerInput/Selector/MaskFormat.ts"],"sourcesContent":["const FORMAT_KEYS = ['YYYY', 'MM', 'DD', 'HH', 'mm', 'ss', 'SSS'];\n\nexport type FormatKey = (typeof FORMAT_KEYS)[number];\n\n// Use Chinese character to avoid conflict with the mask format\nconst REPLACE_KEY = '顧';\n\nexport interface Cell {\n end: number;\n mask: boolean;\n start: number;\n text: string;\n}\n\nexport default class MaskFormat {\n format: string;\n maskFormat: string;\n cells: Cell[];\n maskCells: Cell[];\n\n constructor(format: string) {\n this.format = format;\n\n // Generate mask format\n const replaceKeys = FORMAT_KEYS.map((key) => `(${key})`).join('|');\n const replaceReg = new RegExp(replaceKeys, 'g');\n\n this.maskFormat = format.replace(\n replaceReg,\n // Use Chinese character to avoid user use it in format\n (key: string) => REPLACE_KEY.repeat(key.length),\n );\n\n // Generate cells\n const cellReg = new RegExp(`(${FORMAT_KEYS.join('|')})`);\n const strCells = (format.split(cellReg) || []).filter((str) => str);\n\n let offset = 0;\n this.cells = strCells.map((text) => {\n const mask = FORMAT_KEYS.includes(text);\n\n const start = offset;\n const end = offset + text.length;\n offset = end;\n\n return {\n text,\n mask,\n start,\n end,\n };\n });\n\n // Mask cells\n this.maskCells = this.cells.filter((cell) => cell.mask);\n }\n\n getSelection(maskCellIndex: number): [start: number, end: number] {\n const { start, end } = this.maskCells[maskCellIndex] || {};\n return [start || 0, end || 0];\n }\n\n /** Check given text match format */\n match(text: string) {\n for (let i = 0; i < this.maskFormat.length; i += 1) {\n const maskChar = this.maskFormat[i];\n const textChar = text[i];\n\n if (!textChar || (maskChar !== REPLACE_KEY && maskChar !== textChar)) {\n return false;\n }\n }\n\n return true;\n }\n\n /** Get mask cell count */\n size() {\n return this.maskCells.length;\n }\n\n getMaskCellIndex(anchorIndex: number) {\n let closetDist = Number.MAX_SAFE_INTEGER;\n let closetIndex = 0;\n\n for (let i = 0; i < this.maskCells.length; i += 1) {\n const { start, end } = this.maskCells[i];\n if (anchorIndex >= start && anchorIndex <= end) {\n return i;\n }\n\n const dist = Math.min(Math.abs(anchorIndex - start), Math.abs(anchorIndex - end));\n if (dist < closetDist) {\n closetDist = dist;\n closetIndex = i;\n }\n }\n\n return closetIndex;\n }\n}\n"],"mappings":";AAAA,MAAM,cAAc;CAAC;CAAQ;CAAM;CAAM;CAAM;CAAM;CAAM;AAAK;AAKhE,MAAM,cAAc;AASpB,IAAqB,aAArB,MAAgC;CAM9B,YAAY,QAAgB;EAC1B,KAAK,SAAS;EAGd,MAAM,cAAc,YAAY,KAAK,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,GAAG;EACjE,MAAM,aAAa,IAAI,OAAO,aAAa,GAAG;EAE9C,KAAK,aAAa,OAAO,QACvB,aAEC,QAAgB,YAAY,OAAO,IAAI,MAAM,CAChD;EAGA,MAAM,UAAU,IAAI,OAAO,IAAI,YAAY,KAAK,GAAG,EAAE,EAAE;EACvD,MAAM,YAAY,OAAO,MAAM,OAAO,KAAK,CAAC,EAAA,CAAG,QAAQ,QAAQ,GAAG;EAElE,IAAI,SAAS;EACb,KAAK,QAAQ,SAAS,KAAK,SAAS;GAClC,MAAM,OAAO,YAAY,SAAS,IAAI;GAEtC,MAAM,QAAQ;GACd,MAAM,MAAM,SAAS,KAAK;GAC1B,SAAS;GAET,OAAO;IACL;IACA;IACA;IACA;GACF;EACF,CAAC;EAGD,KAAK,YAAY,KAAK,MAAM,QAAQ,SAAS,KAAK,IAAI;CACxD;CAEA,aAAa,eAAqD;EAChE,MAAM,EAAE,OAAO,QAAQ,KAAK,UAAU,kBAAkB,CAAC;EACzD,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;CAC9B;;CAGA,MAAM,MAAc;EAClB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,WAAW,QAAQ,KAAK,GAAG;GAClD,MAAM,WAAW,KAAK,WAAW;GACjC,MAAM,WAAW,KAAK;GAEtB,IAAI,CAAC,YAAa,aAAa,eAAe,aAAa,UACzD,OAAO;EAEX;EAEA,OAAO;CACT;;CAGA,OAAO;EACL,OAAO,KAAK,UAAU;CACxB;CAEA,iBAAiB,aAAqB;EACpC,IAAI,aAAa,OAAO;EACxB,IAAI,cAAc;EAElB,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,UAAU,QAAQ,KAAK,GAAG;GACjD,MAAM,EAAE,OAAO,QAAQ,KAAK,UAAU;GACtC,IAAI,eAAe,SAAS,eAAe,KACzC,OAAO;GAGT,MAAM,OAAO,KAAK,IAAI,KAAK,IAAI,cAAc,KAAK,GAAG,KAAK,IAAI,cAAc,GAAG,CAAC;GAChF,IAAI,OAAO,YAAY;IACrB,aAAa;IACb,cAAc;GAChB;EACF;EAEA,OAAO;CACT;AACF"}
@@ -0,0 +1,8 @@
1
+ import "react";
2
+ //#region src/DatePicker/core/PickerInput/Selector/RangeSelector.d.ts
3
+ export type SelectorIdType = string | {
4
+ start?: string;
5
+ end?: string;
6
+ };
7
+ //#endregion
8
+ //# sourceMappingURL=RangeSelector.d.mts.map
@@ -0,0 +1,136 @@
1
+ import { useEvent, useResizeObserver } from "../../hooks/react.mjs";
2
+ import PickerContext from "../context.mjs";
3
+ import { isReactRenderable } from "../../utils/common.mjs";
4
+ import ClearIcon from "./ClearIcon.mjs";
5
+ import useInputProps from "./hooks/useInputProps.mjs";
6
+ import useRootProps from "./hooks/useRootProps.mjs";
7
+ import Icon from "./Icon.mjs";
8
+ import Input from "./Input.mjs";
9
+ import * as React$1 from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { clsx } from "clsx";
12
+ //#region src/DatePicker/core/PickerInput/Selector/RangeSelector.tsx
13
+ function RangeSelector(props, ref) {
14
+ const { id, prefix, clearIcon, suffixIcon, separator = "~", activeIndex, activeHelp, allHelp, focused, onFocus, onBlur, onKeyDown, locale, generateConfig, placeholder, className, style, onClick, onClear, value, onChange, onSubmit, onInputChange, format, maskFormat, preserveInvalidOnBlur, onInvalid, disabled, invalid, inputReadOnly, direction, onOpenChange, onActiveInfo, placement, onMouseDown, required, "aria-required": ariaRequired, autoFocus, tabIndex, ...restProps } = props;
15
+ const rtl = direction === "rtl";
16
+ const { prefixCls, classNames, styles } = React$1.use(PickerContext);
17
+ const ids = React$1.useMemo(() => {
18
+ if (typeof id === "string") return [id];
19
+ const mergedId = id || {};
20
+ return [mergedId.start, mergedId.end];
21
+ }, [id]);
22
+ const rootRef = React$1.useRef(null);
23
+ const inputStartRef = React$1.useRef(null);
24
+ const inputEndRef = React$1.useRef(null);
25
+ const getInput = (index) => [inputStartRef, inputEndRef][index]?.current;
26
+ React$1.useImperativeHandle(ref, () => ({
27
+ nativeElement: rootRef.current,
28
+ startInput: inputStartRef.current.inputElement,
29
+ endInput: inputEndRef.current.inputElement,
30
+ focus: (options) => {
31
+ if (typeof options === "object") {
32
+ const { index = 0, ...rest } = options || {};
33
+ getInput(index)?.focus(rest);
34
+ } else getInput(options ?? 0)?.focus();
35
+ },
36
+ blur: () => {
37
+ getInput(0)?.blur();
38
+ getInput(1)?.blur();
39
+ }
40
+ }));
41
+ const rootProps = useRootProps(restProps);
42
+ const mergedPlaceholder = React$1.useMemo(() => Array.isArray(placeholder) ? placeholder : [placeholder, placeholder], [placeholder]);
43
+ const [getInputProps] = useInputProps({
44
+ ...props,
45
+ id: ids,
46
+ placeholder: mergedPlaceholder
47
+ });
48
+ const [activeBarStyle, setActiveBarStyle] = React$1.useState({
49
+ position: "absolute",
50
+ width: 0
51
+ });
52
+ const syncActiveOffset = useEvent(() => {
53
+ const input = getInput(activeIndex);
54
+ if (input) {
55
+ const inputRect = input.nativeElement.getBoundingClientRect();
56
+ const parentRect = rootRef.current.getBoundingClientRect();
57
+ const rectOffset = inputRect.left - parentRect.left;
58
+ setActiveBarStyle((ori) => ({
59
+ ...ori,
60
+ width: inputRect.width,
61
+ left: rectOffset
62
+ }));
63
+ onActiveInfo([
64
+ inputRect.left,
65
+ inputRect.right,
66
+ parentRect.width
67
+ ]);
68
+ }
69
+ });
70
+ React$1.useEffect(() => {
71
+ syncActiveOffset();
72
+ }, [activeIndex]);
73
+ useResizeObserver(rootRef, syncActiveOffset);
74
+ const showClear = isReactRenderable(clearIcon) && (value[0] && !disabled[0] || value[1] && !disabled[1]);
75
+ const startAutoFocus = autoFocus && !disabled[0];
76
+ const endAutoFocus = autoFocus && !startAutoFocus && !disabled[1];
77
+ return /* @__PURE__ */ jsxs("div", {
78
+ ...rootProps,
79
+ ref: rootRef,
80
+ style,
81
+ className: clsx(prefixCls, `${prefixCls}-range`, {
82
+ [`${prefixCls}-focused`]: focused,
83
+ [`${prefixCls}-disabled`]: disabled.every((i) => i),
84
+ [`${prefixCls}-invalid`]: invalid.some((i) => i),
85
+ [`${prefixCls}-rtl`]: rtl
86
+ }, className),
87
+ onClick,
88
+ onMouseDown: (e) => {
89
+ const { target } = e;
90
+ if (target !== inputStartRef.current.inputElement && target !== inputEndRef.current.inputElement) e.preventDefault();
91
+ onMouseDown?.(e);
92
+ },
93
+ children: [
94
+ isReactRenderable(prefix) && /* @__PURE__ */ jsx("div", {
95
+ className: clsx(`${prefixCls}-prefix`, classNames.prefix),
96
+ style: styles.prefix,
97
+ children: prefix
98
+ }),
99
+ /* @__PURE__ */ jsx(Input, {
100
+ ref: inputStartRef,
101
+ ...getInputProps(0),
102
+ autoFocus: startAutoFocus,
103
+ className: `${prefixCls}-input-start`,
104
+ "date-range": "start",
105
+ tabIndex
106
+ }),
107
+ /* @__PURE__ */ jsx("div", {
108
+ className: `${prefixCls}-range-separator`,
109
+ children: separator
110
+ }),
111
+ /* @__PURE__ */ jsx(Input, {
112
+ ref: inputEndRef,
113
+ ...getInputProps(1),
114
+ autoFocus: endAutoFocus,
115
+ className: `${prefixCls}-input-end`,
116
+ "date-range": "end",
117
+ tabIndex
118
+ }),
119
+ /* @__PURE__ */ jsx("div", {
120
+ className: `${prefixCls}-active-bar`,
121
+ style: activeBarStyle
122
+ }),
123
+ /* @__PURE__ */ jsx(Icon, { icon: suffixIcon }),
124
+ showClear && /* @__PURE__ */ jsx(ClearIcon, {
125
+ icon: clearIcon,
126
+ onClear
127
+ })
128
+ ]
129
+ });
130
+ }
131
+ const RefRangeSelector = React$1.forwardRef(RangeSelector);
132
+ if (process.env.NODE_ENV !== "production") RefRangeSelector.displayName = "RangeSelector";
133
+ //#endregion
134
+ export { RefRangeSelector as default };
135
+
136
+ //# sourceMappingURL=RangeSelector.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RangeSelector.mjs","names":["React"],"sources":["../../../../../src/DatePicker/core/PickerInput/Selector/RangeSelector.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { useEvent, useResizeObserver } from '../../hooks/react';\nimport type { RangePickerRef, SelectorProps } from '../../interface';\nimport { isReactRenderable } from '../../utils/common';\nimport PickerContext from '../context';\nimport ClearIcon from './ClearIcon';\nimport useInputProps from './hooks/useInputProps';\nimport useRootProps from './hooks/useRootProps';\nimport Icon from './Icon';\nimport Input, { type InputRef } from './Input';\n\nexport type SelectorIdType =\n | string\n | {\n start?: string;\n end?: string;\n };\n\nexport interface RangeSelectorRef extends RangePickerRef {\n endInput: HTMLInputElement;\n startInput: HTMLInputElement;\n}\n\nexport interface RangeSelectorProps<DateType = any> extends SelectorProps<DateType> {\n activeIndex: number | null;\n\n /** All the field show as `placeholder` */\n allHelp: boolean;\n\n disabled: [boolean, boolean];\n\n id?: SelectorIdType;\n // Invalid\n invalid: [boolean, boolean];\n\n // Offset\n /**\n * Trigger when the active bar offset position changed.\n * This is used for popup panel offset.\n */\n onActiveInfo: (\n info: [activeInputLeft: number, activeInputRight: number, selectorWidth: number],\n ) => void;\n\n onChange: (date: DateType, index?: number) => void;\n\n placeholder?: string | [string, string];\n\n placement?: string;\n separator?: React.ReactNode;\n value?: [start?: DateType | null, end?: DateType | null];\n}\n\nfunction RangeSelector<DateType extends object = any>(\n props: RangeSelectorProps<DateType>,\n ref: React.Ref<RangeSelectorRef>,\n) {\n const {\n id,\n\n prefix,\n clearIcon,\n suffixIcon,\n separator = '~',\n activeIndex,\n activeHelp,\n allHelp,\n\n focused,\n onFocus,\n onBlur,\n onKeyDown,\n locale,\n generateConfig,\n\n // Placeholder\n placeholder,\n\n // Style\n className,\n style,\n\n // Click\n onClick,\n onClear,\n\n // Change\n value,\n onChange,\n onSubmit,\n onInputChange,\n\n // Valid\n format,\n maskFormat,\n preserveInvalidOnBlur,\n onInvalid,\n\n // Disabled\n disabled,\n invalid,\n inputReadOnly,\n\n // Direction\n direction,\n\n // Open\n onOpenChange,\n\n // Offset\n onActiveInfo,\n placement,\n\n // Native\n onMouseDown,\n\n // Input\n required,\n 'aria-required': ariaRequired,\n autoFocus,\n tabIndex,\n\n ...restProps\n } = props;\n\n const rtl = direction === 'rtl';\n\n // ======================== Prefix ========================\n const { prefixCls, classNames, styles } = React.use(PickerContext);\n\n // ========================== Id ==========================\n const ids = React.useMemo(() => {\n if (typeof id === 'string') {\n return [id];\n }\n\n const mergedId = id || {};\n\n return [mergedId.start, mergedId.end];\n }, [id]);\n\n // ========================= Refs =========================\n const rootRef = React.useRef<HTMLDivElement>(null);\n const inputStartRef = React.useRef<InputRef>(null);\n const inputEndRef = React.useRef<InputRef>(null);\n\n const getInput = (index: number) => [inputStartRef, inputEndRef][index]?.current;\n\n React.useImperativeHandle(ref, () => ({\n nativeElement: rootRef.current!,\n startInput: inputStartRef.current!.inputElement,\n endInput: inputEndRef.current!.inputElement,\n focus: (options) => {\n if (typeof options === 'object') {\n const { index = 0, ...rest } = options || {};\n getInput(index)?.focus(rest);\n } else {\n getInput(options ?? 0)?.focus();\n }\n },\n blur: () => {\n getInput(0)?.blur();\n getInput(1)?.blur();\n },\n }));\n\n // ======================== Props =========================\n const rootProps = useRootProps(restProps);\n\n // ===================== Placeholder ======================\n const mergedPlaceholder = React.useMemo<[string | undefined, string | undefined]>(\n () => (Array.isArray(placeholder) ? placeholder : [placeholder, placeholder]),\n [placeholder],\n );\n\n // ======================== Inputs ========================\n const [getInputProps] = useInputProps({\n ...props,\n id: ids,\n placeholder: mergedPlaceholder,\n });\n\n // ====================== ActiveBar =======================\n const [activeBarStyle, setActiveBarStyle] = React.useState<React.CSSProperties>({\n position: 'absolute',\n width: 0,\n });\n\n const syncActiveOffset = useEvent(() => {\n const input = getInput(activeIndex!);\n if (input) {\n const inputRect = input.nativeElement.getBoundingClientRect();\n const parentRect = rootRef.current!.getBoundingClientRect();\n\n const rectOffset = inputRect.left - parentRect.left;\n setActiveBarStyle((ori) => ({\n ...ori,\n width: inputRect.width,\n left: rectOffset,\n }));\n onActiveInfo([inputRect.left, inputRect.right, parentRect.width]);\n }\n });\n\n React.useEffect(() => {\n syncActiveOffset();\n }, [activeIndex]);\n\n useResizeObserver(rootRef, syncActiveOffset);\n\n // ======================== Clear =========================\n const showClear =\n isReactRenderable(clearIcon) && ((value![0] && !disabled[0]) || (value![1] && !disabled[1]));\n\n // ======================= Disabled =======================\n const startAutoFocus = autoFocus && !disabled[0];\n const endAutoFocus = autoFocus && !startAutoFocus && !disabled[1];\n\n // ======================== Render ========================\n return (\n <div\n {...rootProps}\n ref={rootRef}\n style={style}\n className={clsx(\n prefixCls,\n `${prefixCls}-range`,\n {\n [`${prefixCls}-focused`]: focused,\n [`${prefixCls}-disabled`]: disabled.every((i) => i),\n [`${prefixCls}-invalid`]: invalid.some((i) => i),\n [`${prefixCls}-rtl`]: rtl,\n },\n className,\n )}\n onClick={onClick}\n // Not lose current input focus\n onMouseDown={(e) => {\n const { target } = e;\n if (\n target !== inputStartRef.current!.inputElement &&\n target !== inputEndRef.current!.inputElement\n ) {\n e.preventDefault();\n }\n\n onMouseDown?.(e);\n }}\n >\n {isReactRenderable(prefix) && (\n <div className={clsx(`${prefixCls}-prefix`, classNames.prefix)} style={styles.prefix}>\n {prefix}\n </div>\n )}\n <Input\n ref={inputStartRef}\n {...getInputProps(0)}\n autoFocus={startAutoFocus}\n className={`${prefixCls}-input-start`}\n date-range=\"start\"\n tabIndex={tabIndex}\n />\n <div className={`${prefixCls}-range-separator`}>{separator}</div>\n <Input\n ref={inputEndRef}\n {...getInputProps(1)}\n autoFocus={endAutoFocus}\n className={`${prefixCls}-input-end`}\n date-range=\"end\"\n tabIndex={tabIndex}\n />\n <div className={`${prefixCls}-active-bar`} style={activeBarStyle} />\n <Icon icon={suffixIcon} />\n {showClear && <ClearIcon icon={clearIcon} onClear={onClear} />}\n </div>\n );\n}\n\nconst RefRangeSelector = React.forwardRef<RangeSelectorRef, RangeSelectorProps>(RangeSelector);\n\nif (process.env.NODE_ENV !== 'production') {\n RefRangeSelector.displayName = 'RangeSelector';\n}\n\nexport default RefRangeSelector;\n"],"mappings":";;;;;;;;;;;;AAuDA,SAAS,cACP,OACA,KACA;CACA,MAAM,EACJ,IAEA,QACA,WACA,YACA,YAAY,KACZ,aACA,YACA,SAEA,SACA,SACA,QACA,WACA,QACA,gBAGA,aAGA,WACA,OAGA,SACA,SAGA,OACA,UACA,UACA,eAGA,QACA,YACA,uBACA,WAGA,UACA,SACA,eAGA,WAGA,cAGA,cACA,WAGA,aAGA,UACA,iBAAiB,cACjB,WACA,UAEA,GAAG,cACD;CAEJ,MAAM,MAAM,cAAc;CAG1B,MAAM,EAAE,WAAW,YAAY,WAAWA,QAAM,IAAI,aAAa;CAGjE,MAAM,MAAMA,QAAM,cAAc;EAC9B,IAAI,OAAO,OAAO,UAChB,OAAO,CAAC,EAAE;EAGZ,MAAM,WAAW,MAAM,CAAC;EAExB,OAAO,CAAC,SAAS,OAAO,SAAS,GAAG;CACtC,GAAG,CAAC,EAAE,CAAC;CAGP,MAAM,UAAUA,QAAM,OAAuB,IAAI;CACjD,MAAM,gBAAgBA,QAAM,OAAiB,IAAI;CACjD,MAAM,cAAcA,QAAM,OAAiB,IAAI;CAE/C,MAAM,YAAY,UAAkB,CAAC,eAAe,WAAW,CAAC,CAAC,MAAM,EAAE;CAEzE,QAAM,oBAAoB,YAAY;EACpC,eAAe,QAAQ;EACvB,YAAY,cAAc,QAAS;EACnC,UAAU,YAAY,QAAS;EAC/B,QAAQ,YAAY;GAClB,IAAI,OAAO,YAAY,UAAU;IAC/B,MAAM,EAAE,QAAQ,GAAG,GAAG,SAAS,WAAW,CAAC;IAC3C,SAAS,KAAK,CAAC,EAAE,MAAM,IAAI;GAC7B,OACE,SAAS,WAAW,CAAC,CAAC,EAAE,MAAM;EAElC;EACA,YAAY;GACV,SAAS,CAAC,CAAC,EAAE,KAAK;GAClB,SAAS,CAAC,CAAC,EAAE,KAAK;EACpB;CACF,EAAE;CAGF,MAAM,YAAY,aAAa,SAAS;CAGxC,MAAM,oBAAoBA,QAAM,cACvB,MAAM,QAAQ,WAAW,IAAI,cAAc,CAAC,aAAa,WAAW,GAC3E,CAAC,WAAW,CACd;CAGA,MAAM,CAAC,iBAAiB,cAAc;EACpC,GAAG;EACH,IAAI;EACJ,aAAa;CACf,CAAC;CAGD,MAAM,CAAC,gBAAgB,qBAAqBA,QAAM,SAA8B;EAC9E,UAAU;EACV,OAAO;CACT,CAAC;CAED,MAAM,mBAAmB,eAAe;EACtC,MAAM,QAAQ,SAAS,WAAY;EACnC,IAAI,OAAO;GACT,MAAM,YAAY,MAAM,cAAc,sBAAsB;GAC5D,MAAM,aAAa,QAAQ,QAAS,sBAAsB;GAE1D,MAAM,aAAa,UAAU,OAAO,WAAW;GAC/C,mBAAmB,SAAS;IAC1B,GAAG;IACH,OAAO,UAAU;IACjB,MAAM;GACR,EAAE;GACF,aAAa;IAAC,UAAU;IAAM,UAAU;IAAO,WAAW;GAAK,CAAC;EAClE;CACF,CAAC;CAED,QAAM,gBAAgB;EACpB,iBAAiB;CACnB,GAAG,CAAC,WAAW,CAAC;CAEhB,kBAAkB,SAAS,gBAAgB;CAG3C,MAAM,YACJ,kBAAkB,SAAS,MAAO,MAAO,MAAM,CAAC,SAAS,MAAQ,MAAO,MAAM,CAAC,SAAS;CAG1F,MAAM,iBAAiB,aAAa,CAAC,SAAS;CAC9C,MAAM,eAAe,aAAa,CAAC,kBAAkB,CAAC,SAAS;CAG/D,OACE,qBAAC,OAAD;EACE,GAAI;EACJ,KAAK;EACE;EACP,WAAW,KACT,WACA,GAAG,UAAU,SACb;IACG,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,aAAa,SAAS,OAAO,MAAM,CAAC;IACjD,GAAG,UAAU,YAAY,QAAQ,MAAM,MAAM,CAAC;IAC9C,GAAG,UAAU,QAAQ;EACxB,GACA,SACF;EACS;EAET,cAAc,MAAM;GAClB,MAAM,EAAE,WAAW;GACnB,IACE,WAAW,cAAc,QAAS,gBAClC,WAAW,YAAY,QAAS,cAEhC,EAAE,eAAe;GAGnB,cAAc,CAAC;EACjB;EA3BF,UAAA;GA6BG,kBAAkB,MAAM,KACvB,oBAAC,OAAD;IAAK,WAAW,KAAK,GAAG,UAAU,UAAU,WAAW,MAAM;IAAG,OAAO,OAAO;IAC3E,UAAA;GACE,CAAA;GAEP,oBAAC,OAAD;IACE,KAAK;IACL,GAAI,cAAc,CAAC;IACnB,WAAW;IACX,WAAW,GAAG,UAAU;IACxB,cAAW;IACD;GACX,CAAA;GACD,oBAAC,OAAD;IAAK,WAAW,GAAG,UAAU;IAAoB,UAAA;GAAe,CAAA;GAChE,oBAAC,OAAD;IACE,KAAK;IACL,GAAI,cAAc,CAAC;IACnB,WAAW;IACX,WAAW,GAAG,UAAU;IACxB,cAAW;IACD;GACX,CAAA;GACD,oBAAC,OAAD;IAAK,WAAW,GAAG,UAAU;IAAc,OAAO;GAAiB,CAAA;GACnE,oBAAC,MAAD,EAAM,MAAM,WAAa,CAAA;GACxB,aAAa,oBAAC,WAAD;IAAW,MAAM;IAAoB;GAAU,CAAA;EAC1D;;AAET;AAEA,MAAM,mBAAmBA,QAAM,WAAiD,aAAa;AAE7F,IAAI,QAAQ,IAAI,aAAa,cAC3B,iBAAiB,cAAc"}
@@ -0,0 +1,28 @@
1
+ import { useHoverSnapshot } from "../../hooks/useHoverStore.mjs";
2
+ import RefSingleSelector from "./index.mjs";
3
+ import * as React$1 from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.tsx
6
+ function HoverSelector({ calendarValue, hoverStore, ref, ...props }) {
7
+ const hover = useHoverSnapshot(hoverStore);
8
+ const { multiple } = props;
9
+ const value = React$1.useMemo(() => {
10
+ if (!multiple && hover.value) return [hover.value];
11
+ return calendarValue.filter((date) => date);
12
+ }, [
13
+ calendarValue,
14
+ hover.value,
15
+ multiple
16
+ ]);
17
+ return /* @__PURE__ */ jsx(RefSingleSelector, {
18
+ ...props,
19
+ activeHelp: !!hover.value,
20
+ allHelp: !!hover.value && hover.source === "preset",
21
+ ref,
22
+ value
23
+ });
24
+ }
25
+ //#endregion
26
+ export { HoverSelector as default };
27
+
28
+ //# sourceMappingURL=HoverSelector.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HoverSelector.mjs","names":["React","SingleSelector"],"sources":["../../../../../../src/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { PickerRef } from '../../../interface';\nimport { type HoverStore, useHoverSnapshot } from '../../hooks/useHoverStore';\nimport SingleSelector, { type SingleSelectorProps } from './index';\n\nexport interface HoverSelectorProps<DateType extends object> extends Omit<\n SingleSelectorProps<DateType>,\n 'activeHelp' | 'allHelp' | 'value'\n> {\n calendarValue: DateType[];\n hoverStore: HoverStore<DateType>;\n ref?: React.Ref<PickerRef>;\n}\n\nexport default function HoverSelector<DateType extends object = any>({\n calendarValue,\n hoverStore,\n ref,\n ...props\n}: HoverSelectorProps<DateType>) {\n const hover = useHoverSnapshot(hoverStore);\n const { multiple } = props;\n\n const value = React.useMemo(() => {\n if (!multiple && hover.value) return [hover.value];\n return calendarValue.filter((date) => date);\n }, [calendarValue, hover.value, multiple]);\n\n return (\n <SingleSelector\n {...props}\n activeHelp={!!hover.value}\n allHelp={!!hover.value && hover.source === 'preset'}\n ref={ref}\n value={value}\n />\n );\n}\n"],"mappings":";;;;;AAeA,SAAwB,cAA6C,EACnE,eACA,YACA,KACA,GAAG,SAC4B;CAC/B,MAAM,QAAQ,iBAAiB,UAAU;CACzC,MAAM,EAAE,aAAa;CAErB,MAAM,QAAQA,QAAM,cAAc;EAChC,IAAI,CAAC,YAAY,MAAM,OAAO,OAAO,CAAC,MAAM,KAAK;EACjD,OAAO,cAAc,QAAQ,SAAS,IAAI;CAC5C,GAAG;EAAC;EAAe,MAAM;EAAO;CAAQ,CAAC;CAEzC,OACE,oBAACC,mBAAD;EACE,GAAI;EACJ,YAAY,CAAC,CAAC,MAAM;EACpB,SAAS,CAAC,CAAC,MAAM,SAAS,MAAM,WAAW;EACtC;EACE;CACR,CAAA;AAEL"}
@@ -0,0 +1,69 @@
1
+ import { OverflowList } from "../../../../../internal/overflow/OverflowList.mjs";
2
+ import "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { clsx } from "clsx";
5
+ //#region src/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.tsx
6
+ function MultipleDates(props) {
7
+ const { prefixCls, value, onRemove, removeIcon = "×", formatDate, disabled, maxTagCount, tagRender, placeholder } = props;
8
+ const selectorCls = `${prefixCls}-selector`;
9
+ const selectionCls = `${prefixCls}-selection`;
10
+ const overflowCls = `${selectionCls}-overflow`;
11
+ function renderSelector(content, onClose) {
12
+ return /* @__PURE__ */ jsxs("span", {
13
+ className: clsx(`${selectionCls}-item`),
14
+ title: typeof content === "string" ? content : void 0,
15
+ children: [/* @__PURE__ */ jsx("span", {
16
+ className: `${selectionCls}-item-content`,
17
+ children: content
18
+ }), !disabled && onClose && /* @__PURE__ */ jsx("span", {
19
+ className: `${selectionCls}-item-remove`,
20
+ onClick: onClose,
21
+ onMouseDown: (e) => {
22
+ e.preventDefault();
23
+ },
24
+ children: removeIcon
25
+ })]
26
+ });
27
+ }
28
+ function renderItem(date) {
29
+ const displayLabel = formatDate(date);
30
+ const closable = !disabled;
31
+ const onClose = (event) => {
32
+ if (event) event.stopPropagation();
33
+ if (!disabled) onRemove(date);
34
+ };
35
+ if (tagRender) return tagRender({
36
+ label: displayLabel,
37
+ value: date,
38
+ disabled: !!disabled,
39
+ closable,
40
+ onClose
41
+ });
42
+ return renderSelector(displayLabel, onClose);
43
+ }
44
+ function renderRest(omittedValues) {
45
+ return renderSelector(`+ ${omittedValues.length} ...`);
46
+ }
47
+ return /* @__PURE__ */ jsxs("div", {
48
+ className: selectorCls,
49
+ children: [/* @__PURE__ */ jsx(OverflowList, {
50
+ data: value,
51
+ itemKey: (date) => formatDate(date),
52
+ maxCount: maxTagCount,
53
+ renderItem,
54
+ renderRest,
55
+ classNames: {
56
+ item: `${overflowCls}-item`,
57
+ rest: `${overflowCls}-item-rest`,
58
+ root: overflowCls
59
+ }
60
+ }), !value.length && /* @__PURE__ */ jsx("span", {
61
+ className: `${prefixCls}-selection-placeholder`,
62
+ children: placeholder
63
+ })]
64
+ });
65
+ }
66
+ //#endregion
67
+ export { MultipleDates as default };
68
+
69
+ //# sourceMappingURL=MultipleDates.mjs.map