rsuite 6.0.0-canary-20250403 → 6.0.0-canary-20250424

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 (1527) hide show
  1. package/AutoComplete/styles/index.css +32 -78
  2. package/AutoComplete/styles/index.less +0 -0
  3. package/Avatar/styles/index.css +0 -0
  4. package/Avatar/styles/index.less +0 -0
  5. package/AvatarGroup/styles/index.css +0 -0
  6. package/AvatarGroup/styles/index.less +0 -0
  7. package/Badge/styles/index.css +0 -0
  8. package/Badge/styles/index.less +0 -0
  9. package/Badge/styles/variables.less +0 -0
  10. package/Box/styles/index.css +0 -0
  11. package/Box/styles/index.less +0 -0
  12. package/Breadcrumb/styles/index.css +0 -0
  13. package/Breadcrumb/styles/index.less +0 -0
  14. package/Button/styles/index.css +4 -6
  15. package/Button/styles/index.less +0 -0
  16. package/Button/styles/mixin.less +0 -0
  17. package/Button/styles/variables.less +0 -0
  18. package/ButtonGroup/styles/index.css +0 -0
  19. package/ButtonGroup/styles/index.less +0 -0
  20. package/ButtonToolbar/styles/index.css +0 -0
  21. package/ButtonToolbar/styles/index.less +0 -0
  22. package/CHANGELOG.md +15 -0
  23. package/Calendar/styles/index.css +8 -16
  24. package/Calendar/styles/index.less +0 -0
  25. package/Card/styles/index.css +0 -0
  26. package/Card/styles/index.less +0 -0
  27. package/CardGroup/styles/index.css +0 -0
  28. package/CardGroup/styles/index.less +0 -0
  29. package/Carousel/styles/index.css +0 -0
  30. package/Carousel/styles/index.less +0 -0
  31. package/CascadeTree/styles/index.css +8 -16
  32. package/CascadeTree/styles/index.less +0 -0
  33. package/Cascader/styles/index.css +36 -86
  34. package/Center/styles/index.css +0 -0
  35. package/Center/styles/index.less +0 -0
  36. package/CheckPicker/styles/index.css +32 -73
  37. package/CheckPicker/styles/index.less +0 -0
  38. package/CheckTree/styles/index.css +34 -77
  39. package/CheckTree/styles/index.less +0 -0
  40. package/CheckTreePicker/styles/index.css +34 -77
  41. package/CheckTreePicker/styles/index.less +0 -0
  42. package/Checkbox/styles/index.css +7 -9
  43. package/Checkbox/styles/index.less +1 -1
  44. package/Checkbox/styles/mixin.less +0 -0
  45. package/CheckboxGroup/styles/index.css +0 -0
  46. package/CheckboxGroup/styles/index.less +0 -0
  47. package/Col/styles/index.css +0 -0
  48. package/Col/styles/index.less +0 -0
  49. package/DateInput/styles/index.css +6 -16
  50. package/DatePicker/styles/index.css +38 -88
  51. package/DatePicker/styles/index.less +0 -0
  52. package/DateRangeInput/styles/index.css +6 -16
  53. package/DateRangePicker/styles/index.css +38 -88
  54. package/DateRangePicker/styles/index.less +0 -0
  55. package/Divider/styles/index.css +2 -2
  56. package/Divider/styles/index.less +2 -2
  57. package/Drawer/styles/index.css +0 -0
  58. package/Drawer/styles/index.less +0 -0
  59. package/Dropdown/styles/index.css +6 -10
  60. package/Dropdown/styles/index.less +0 -0
  61. package/Dropdown/styles/mixin.less +0 -0
  62. package/FlexboxGrid/styles/index.css +0 -0
  63. package/FlexboxGrid/styles/index.less +0 -0
  64. package/Form/styles/index.css +0 -0
  65. package/Form/styles/index.less +0 -0
  66. package/FormControl/styles/index.css +2 -2
  67. package/FormControl/styles/index.less +2 -2
  68. package/FormControlLabel/styles/index.css +0 -0
  69. package/FormControlLabel/styles/index.less +0 -0
  70. package/FormErrorMessage/styles/animation.less +0 -0
  71. package/FormErrorMessage/styles/index.css +0 -0
  72. package/FormErrorMessage/styles/index.less +0 -0
  73. package/FormGroup/styles/index.css +0 -0
  74. package/FormGroup/styles/index.less +0 -0
  75. package/FormHelpText/styles/index.css +0 -0
  76. package/FormHelpText/styles/index.less +0 -0
  77. package/FormStack/styles/index.css +0 -0
  78. package/FormStack/styles/index.less +0 -0
  79. package/Grid/styles/columns.less +0 -0
  80. package/Grid/styles/grid-framework.less +0 -0
  81. package/Grid/styles/index.css +0 -0
  82. package/Grid/styles/index.less +0 -0
  83. package/Grid/styles/mixin.less +0 -0
  84. package/Grid/styles/row.less +0 -0
  85. package/Grid/styles/variables.less +0 -0
  86. package/Heading/styles/index.css +0 -0
  87. package/Heading/styles/index.less +0 -0
  88. package/Heading/styles/variables.less +0 -0
  89. package/Highlight/styles/index.css +0 -0
  90. package/Highlight/styles/index.less +0 -0
  91. package/IconButton/styles/index.css +4 -6
  92. package/IconButton/styles/index.less +0 -0
  93. package/Image/styles/index.css +0 -0
  94. package/Image/styles/index.less +0 -0
  95. package/InlineEdit/styles/index.css +0 -0
  96. package/InlineEdit/styles/index.less +0 -0
  97. package/Input/styles/index.css +6 -16
  98. package/Input/styles/index.less +0 -6
  99. package/Input/styles/mixin.less +2 -7
  100. package/Input/styles/variables.less +0 -0
  101. package/InputGroup/styles/index.css +7 -13
  102. package/InputGroup/styles/index.less +3 -4
  103. package/InputNumber/styles/index.css +36 -42
  104. package/InputNumber/styles/index.less +1 -67
  105. package/InputPicker/styles/index.css +32 -78
  106. package/InputPicker/styles/index.less +0 -0
  107. package/Kbd/styles/index.css +0 -0
  108. package/Kbd/styles/index.less +0 -0
  109. package/Kbd/styles/mixin.less +0 -0
  110. package/Kbd/styles/variables.less +0 -0
  111. package/Link/styles/index.css +0 -0
  112. package/Link/styles/index.less +0 -0
  113. package/List/styles/index.css +0 -0
  114. package/List/styles/index.less +0 -0
  115. package/Loader/styles/index.css +0 -0
  116. package/Loader/styles/index.less +0 -0
  117. package/Loader/styles/mixin.less +0 -0
  118. package/Loader/styles/variables.less +0 -0
  119. package/Menu/styles/index.css +0 -0
  120. package/Menu/styles/index.less +0 -0
  121. package/Message/styles/index.css +5 -15
  122. package/Message/styles/index.less +4 -3
  123. package/Modal/styles/index.css +0 -0
  124. package/Modal/styles/index.less +0 -0
  125. package/MultiCascadeTree/styles/index.css +38 -87
  126. package/MultiCascadeTree/styles/index.less +0 -0
  127. package/MultiCascader/styles/index.css +38 -87
  128. package/MultiCascader/styles/index.less +0 -0
  129. package/Nav/styles/index.css +8 -14
  130. package/Nav/styles/index.less +0 -0
  131. package/Navbar/styles/index.css +16 -40
  132. package/Navbar/styles/index.less +0 -0
  133. package/Notification/styles/index.css +0 -0
  134. package/Notification/styles/index.less +0 -0
  135. package/NumberInput/package.json +7 -0
  136. package/NumberInput/styles/index.css +1402 -0
  137. package/NumberInput/styles/index.less +74 -0
  138. package/{InputNumber → NumberInput}/styles/mixin.less +0 -0
  139. package/Pagination/styles/index.css +36 -84
  140. package/Pagination/styles/index.less +0 -0
  141. package/Pagination/styles/pagination-group.less +0 -0
  142. package/Panel/styles/index.css +0 -0
  143. package/Panel/styles/index.less +0 -0
  144. package/PanelGroup/styles/index.css +0 -0
  145. package/PanelGroup/styles/index.less +0 -0
  146. package/PasswordInput/package.json +7 -0
  147. package/PasswordInput/styles/index.css +169 -0
  148. package/PasswordInput/styles/index.less +1 -0
  149. package/PasswordStrengthMeter/package.json +7 -0
  150. package/PasswordStrengthMeter/styles/index.css +33 -0
  151. package/PasswordStrengthMeter/styles/index.less +39 -0
  152. package/PinInput/package.json +7 -0
  153. package/PinInput/styles/index.css +212 -0
  154. package/PinInput/styles/index.less +66 -0
  155. package/Placeholder/styles/index.css +0 -0
  156. package/Placeholder/styles/index.less +0 -0
  157. package/Popover/styles/index.css +0 -0
  158. package/Popover/styles/index.less +0 -0
  159. package/Popover/styles/mixins.less +0 -0
  160. package/Progress/styles/index.css +0 -0
  161. package/Progress/styles/index.less +0 -0
  162. package/README.md +0 -0
  163. package/Radio/styles/index.css +7 -9
  164. package/Radio/styles/index.less +1 -1
  165. package/Radio/styles/mixin.less +0 -0
  166. package/RadioGroup/styles/index.css +0 -0
  167. package/RadioGroup/styles/index.less +0 -0
  168. package/RadioTile/styles/index.css +0 -0
  169. package/RadioTile/styles/index.less +0 -0
  170. package/RangeSlider/styles/index.css +2 -0
  171. package/Rate/styles/index.css +48 -34
  172. package/Rate/styles/index.less +32 -21
  173. package/Row/styles/index.css +0 -0
  174. package/Row/styles/index.less +0 -0
  175. package/SelectPicker/styles/index.css +32 -78
  176. package/SelectPicker/styles/index.less +0 -0
  177. package/Sidebar/styles/index.css +0 -0
  178. package/Sidebar/styles/index.less +0 -0
  179. package/Sidenav/styles/index.css +30 -67
  180. package/Sidenav/styles/index.less +0 -0
  181. package/Sidenav/styles/mixin.less +0 -0
  182. package/Slider/styles/index.css +2 -0
  183. package/Slider/styles/index.less +2 -0
  184. package/Stack/styles/index.css +0 -0
  185. package/Stack/styles/index.less +0 -0
  186. package/Stat/styles/index.css +4 -6
  187. package/Stat/styles/index.less +0 -0
  188. package/StatGroup/styles/index.css +0 -0
  189. package/StatGroup/styles/index.less +0 -0
  190. package/Steps/styles/index.css +0 -0
  191. package/Steps/styles/index.less +0 -0
  192. package/Table/styles/index.css +0 -0
  193. package/Table/styles/index.less +0 -0
  194. package/Tabs/styles/index.css +8 -14
  195. package/Tag/styles/index.css +0 -15
  196. package/Tag/styles/index.less +0 -0
  197. package/TagGroup/styles/index.css +0 -0
  198. package/TagGroup/styles/index.less +0 -0
  199. package/TagInput/styles/index.css +34 -79
  200. package/TagInput/styles/index.less +0 -0
  201. package/TagPicker/styles/index.css +34 -79
  202. package/TagPicker/styles/index.less +0 -0
  203. package/Text/styles/index.css +0 -0
  204. package/Text/styles/index.less +0 -0
  205. package/Text/styles/variables.less +0 -0
  206. package/Textarea/package.json +7 -0
  207. package/Textarea/styles/index.css +6 -0
  208. package/Textarea/styles/index.less +7 -0
  209. package/TimePicker/styles/index.css +38 -88
  210. package/TimeRangePicker/styles/index.css +38 -88
  211. package/Timeline/stories/styles.less +0 -0
  212. package/Timeline/styles/index.css +0 -0
  213. package/Timeline/styles/index.less +0 -0
  214. package/Toggle/styles/index.css +9 -13
  215. package/Toggle/styles/index.less +3 -4
  216. package/Tooltip/styles/index.css +0 -0
  217. package/Tooltip/styles/index.less +0 -0
  218. package/Tooltip/styles/mixins.less +0 -0
  219. package/Tree/styles/indent-line.less +0 -0
  220. package/Tree/styles/index.css +34 -82
  221. package/Tree/styles/index.less +0 -0
  222. package/Tree/styles/toggle.less +0 -0
  223. package/TreePicker/styles/index.css +34 -82
  224. package/Uploader/styles/index.css +6 -10
  225. package/Uploader/styles/index.less +0 -0
  226. package/cjs/Accordion/Accordion.js +2 -2
  227. package/cjs/Accordion/AccordionPanel.js +0 -0
  228. package/cjs/Accordion/index.js +0 -0
  229. package/cjs/Affix/Affix.js +1 -2
  230. package/cjs/Affix/index.js +0 -0
  231. package/cjs/Animation/Bounce.js +1 -2
  232. package/cjs/Animation/Collapse.js +1 -2
  233. package/cjs/Animation/Fade.js +1 -2
  234. package/cjs/Animation/Slide.js +1 -2
  235. package/cjs/Animation/Transition.js +0 -0
  236. package/cjs/Animation/index.js +0 -0
  237. package/cjs/Animation/utils.js +0 -0
  238. package/cjs/AutoComplete/AutoComplete.d.ts +2 -2
  239. package/cjs/AutoComplete/AutoComplete.js +1 -2
  240. package/cjs/AutoComplete/Combobox.js +0 -0
  241. package/cjs/AutoComplete/index.js +0 -0
  242. package/cjs/Avatar/Avatar.js +1 -2
  243. package/cjs/Avatar/index.js +0 -0
  244. package/cjs/AvatarGroup/AvatarGroup.js +1 -2
  245. package/cjs/AvatarGroup/index.js +0 -0
  246. package/cjs/Badge/Badge.js +1 -2
  247. package/cjs/Badge/index.js +0 -0
  248. package/cjs/Box/index.js +0 -0
  249. package/cjs/Breadcrumb/Breadcrumb.js +1 -2
  250. package/cjs/Breadcrumb/BreadcrumbItem.js +0 -0
  251. package/cjs/Breadcrumb/index.js +0 -0
  252. package/cjs/Button/Button.d.ts +2 -2
  253. package/cjs/Button/Button.js +1 -2
  254. package/cjs/Button/index.js +0 -0
  255. package/cjs/ButtonGroup/ButtonGroup.d.ts +2 -2
  256. package/cjs/ButtonGroup/ButtonGroup.js +1 -2
  257. package/cjs/ButtonGroup/ButtonGroupContext.js +0 -0
  258. package/cjs/ButtonGroup/index.js +0 -0
  259. package/cjs/ButtonToolbar/ButtonToolbar.js +1 -2
  260. package/cjs/ButtonToolbar/index.js +0 -0
  261. package/cjs/Calendar/Calendar.js +4 -4
  262. package/cjs/Calendar/CalendarBody.js +1 -4
  263. package/cjs/Calendar/CalendarContainer.js +1 -1
  264. package/cjs/Calendar/CalendarHeader.js +3 -3
  265. package/cjs/Calendar/CalendarProvider.d.ts +1 -1
  266. package/cjs/Calendar/CalendarProvider.js +0 -0
  267. package/cjs/Calendar/Grid/Grid.js +0 -0
  268. package/cjs/Calendar/Grid/GridCell.js +1 -2
  269. package/cjs/Calendar/Grid/GridHeaderRow.js +1 -2
  270. package/cjs/Calendar/Grid/GridRow.d.ts +2 -0
  271. package/cjs/Calendar/Grid/GridRow.js +5 -4
  272. package/cjs/Calendar/MonthDropdown/MonthDropdown.js +0 -0
  273. package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
  274. package/cjs/Calendar/TimeDropdown/TimeDropdown.js +0 -0
  275. package/cjs/Calendar/hooks/useCalendar.d.ts +24 -2
  276. package/cjs/Calendar/hooks/useCalendar.js +34 -1
  277. package/cjs/Calendar/index.js +0 -0
  278. package/cjs/Card/Card.js +1 -2
  279. package/cjs/Card/CardBody.js +0 -0
  280. package/cjs/Card/CardFooter.js +0 -0
  281. package/cjs/Card/CardHeader.js +0 -0
  282. package/cjs/Card/index.js +0 -0
  283. package/cjs/CardGroup/CardGroup.js +1 -2
  284. package/cjs/CardGroup/index.js +0 -0
  285. package/cjs/Carousel/Carousel.js +1 -2
  286. package/cjs/Carousel/index.js +0 -0
  287. package/cjs/CascadeTree/CascadeTree.js +1 -2
  288. package/cjs/CascadeTree/SearchView.js +1 -2
  289. package/cjs/CascadeTree/TreeView.js +1 -2
  290. package/cjs/CascadeTree/hooks/useSearch.js +0 -0
  291. package/cjs/CascadeTree/hooks/useSelect.js +0 -0
  292. package/cjs/CascadeTree/index.js +0 -0
  293. package/cjs/CascadeTree/types.js +0 -0
  294. package/cjs/CascadeTree/utils.js +0 -0
  295. package/cjs/Cascader/Cascader.js +1 -2
  296. package/cjs/Cascader/index.js +0 -0
  297. package/cjs/Cascader/useActive.js +0 -0
  298. package/cjs/Center/Center.js +0 -0
  299. package/cjs/Center/index.js +0 -0
  300. package/cjs/CheckPicker/CheckPicker.js +1 -2
  301. package/cjs/CheckPicker/index.js +0 -0
  302. package/cjs/CheckTree/CheckTree.js +1 -2
  303. package/cjs/CheckTree/CheckTreeNode.js +1 -2
  304. package/cjs/CheckTree/CheckTreeView.js +1 -2
  305. package/cjs/CheckTree/index.js +0 -0
  306. package/cjs/CheckTreePicker/CheckTreePicker.js +1 -2
  307. package/cjs/CheckTreePicker/hooks/useFocusState.js +0 -0
  308. package/cjs/CheckTreePicker/index.js +0 -0
  309. package/cjs/Checkbox/Checkbox.js +1 -2
  310. package/cjs/Checkbox/index.js +0 -0
  311. package/cjs/CheckboxGroup/CheckboxGroup.js +1 -2
  312. package/cjs/CheckboxGroup/CheckboxGroupContext.js +0 -0
  313. package/cjs/CheckboxGroup/index.js +0 -0
  314. package/cjs/Col/index.js +0 -0
  315. package/cjs/Container/Container.js +1 -2
  316. package/cjs/Container/index.js +0 -0
  317. package/cjs/Content/Content.js +0 -0
  318. package/cjs/Content/index.js +0 -0
  319. package/cjs/CustomProvider/CustomProvider.d.ts +1 -271
  320. package/cjs/CustomProvider/CustomProvider.js +2 -3
  321. package/cjs/CustomProvider/index.d.ts +1 -6
  322. package/cjs/CustomProvider/index.js +3 -12
  323. package/cjs/DOMHelper/index.js +0 -0
  324. package/cjs/DateInput/DateField.js +0 -0
  325. package/cjs/DateInput/DateInput.js +1 -2
  326. package/cjs/DateInput/hooks/useDateInputState.js +2 -2
  327. package/cjs/DateInput/hooks/useKeyboardInputEvent.js +0 -0
  328. package/cjs/DateInput/index.js +0 -0
  329. package/cjs/DateInput/utils.js +0 -0
  330. package/cjs/DatePicker/DatePicker.js +2 -3
  331. package/cjs/DatePicker/PredefinedRanges.js +0 -0
  332. package/cjs/DatePicker/Toolbar.js +0 -0
  333. package/cjs/DatePicker/hooks/useFocus.js +1 -2
  334. package/cjs/DatePicker/index.js +0 -0
  335. package/cjs/DatePicker/types.js +0 -0
  336. package/cjs/DatePicker/utils.js +0 -0
  337. package/cjs/DateRangeInput/DateRangeInput.js +1 -2
  338. package/cjs/DateRangeInput/index.js +0 -0
  339. package/cjs/DateRangePicker/Calendar.js +0 -0
  340. package/cjs/DateRangePicker/DateRangePicker.js +2 -3
  341. package/cjs/DateRangePicker/Header.js +3 -3
  342. package/cjs/DateRangePicker/hooks/useDateDisabled.js +0 -0
  343. package/cjs/DateRangePicker/index.js +0 -0
  344. package/cjs/DateRangePicker/types.js +0 -0
  345. package/cjs/DateRangePicker/utils.d.ts +1 -1
  346. package/cjs/DateRangePicker/utils.js +1 -1
  347. package/cjs/Divider/Divider.d.ts +3 -2
  348. package/cjs/Divider/Divider.js +3 -4
  349. package/cjs/Divider/index.js +0 -0
  350. package/cjs/Drawer/Drawer.js +1 -2
  351. package/cjs/Drawer/DrawerActions.js +0 -0
  352. package/cjs/Drawer/DrawerBody.js +0 -0
  353. package/cjs/Drawer/DrawerFooter.js +0 -0
  354. package/cjs/Drawer/DrawerHeader.js +0 -0
  355. package/cjs/Drawer/DrawerTitle.js +0 -0
  356. package/cjs/Drawer/index.js +0 -0
  357. package/cjs/Dropdown/Dropdown.js +1 -2
  358. package/cjs/Dropdown/DropdownContext.js +0 -0
  359. package/cjs/Dropdown/DropdownItem.js +0 -0
  360. package/cjs/Dropdown/DropdownMenu.js +1 -2
  361. package/cjs/Dropdown/DropdownSeparator.js +0 -0
  362. package/cjs/Dropdown/DropdownToggle.js +0 -0
  363. package/cjs/Dropdown/index.js +0 -0
  364. package/cjs/Dropdown/types.js +0 -0
  365. package/cjs/FlexboxGrid/FlexboxGrid.js +1 -2
  366. package/cjs/FlexboxGrid/FlexboxGridItem.js +0 -0
  367. package/cjs/FlexboxGrid/index.js +0 -0
  368. package/cjs/Footer/Footer.js +0 -0
  369. package/cjs/Footer/index.js +0 -0
  370. package/cjs/Form/Form.js +1 -2
  371. package/cjs/Form/FormContext.js +0 -0
  372. package/cjs/Form/index.js +0 -0
  373. package/cjs/FormControl/FormControl.js +1 -2
  374. package/cjs/FormControl/index.js +0 -0
  375. package/cjs/FormControlLabel/FormControlLabel.js +1 -2
  376. package/cjs/FormControlLabel/index.js +0 -0
  377. package/cjs/FormErrorMessage/FormErrorMessage.js +1 -2
  378. package/cjs/FormErrorMessage/index.js +0 -0
  379. package/cjs/FormGroup/FormGroup.js +1 -2
  380. package/cjs/FormGroup/index.js +0 -0
  381. package/cjs/FormHelpText/FormHelpText.js +1 -2
  382. package/cjs/FormHelpText/index.js +0 -0
  383. package/cjs/FormStack/FormStack.js +1 -2
  384. package/cjs/FormStack/index.js +0 -0
  385. package/cjs/Grid/Col.js +1 -2
  386. package/cjs/Grid/Grid.js +1 -2
  387. package/cjs/Grid/Row.js +1 -2
  388. package/cjs/Grid/index.js +0 -0
  389. package/cjs/Grid/types.js +0 -0
  390. package/cjs/Grid/utils/styles.js +0 -0
  391. package/cjs/Header/Header.js +0 -0
  392. package/cjs/Header/index.js +0 -0
  393. package/cjs/Heading/Heading.js +1 -2
  394. package/cjs/Heading/index.js +0 -0
  395. package/cjs/HeadingGroup/HeadingGroup.js +0 -0
  396. package/cjs/HeadingGroup/index.js +0 -0
  397. package/cjs/Highlight/Highlight.js +2 -3
  398. package/cjs/Highlight/index.js +0 -0
  399. package/cjs/IconButton/IconButton.js +1 -2
  400. package/cjs/IconButton/index.js +0 -0
  401. package/cjs/Image/Image.js +14 -14
  402. package/cjs/Image/ImageWrapper.js +0 -0
  403. package/cjs/Image/hooks/useImage.d.ts +2 -0
  404. package/cjs/Image/hooks/useImage.js +19 -43
  405. package/cjs/Image/index.js +0 -0
  406. package/cjs/InlineEdit/EditableControls.js +0 -0
  407. package/cjs/InlineEdit/InlineEdit.js +4 -3
  408. package/cjs/InlineEdit/index.js +0 -0
  409. package/cjs/InlineEdit/renderChildren.js +0 -0
  410. package/cjs/InlineEdit/useEditState.d.ts +2 -0
  411. package/cjs/InlineEdit/useEditState.js +8 -0
  412. package/cjs/Input/Input.d.ts +3 -12
  413. package/cjs/Input/Input.js +13 -74
  414. package/cjs/Input/index.js +0 -0
  415. package/cjs/InputGroup/InputGroup.js +1 -2
  416. package/cjs/InputGroup/InputGroupAddon.js +0 -0
  417. package/cjs/InputGroup/InputGroupButton.js +0 -0
  418. package/cjs/InputGroup/index.js +0 -0
  419. package/cjs/InputNumber/index.d.ts +12 -2
  420. package/cjs/InputNumber/index.js +11 -4
  421. package/cjs/InputPicker/InputAutosize.js +0 -0
  422. package/cjs/InputPicker/InputPicker.js +1 -2
  423. package/cjs/InputPicker/InputSearch.js +0 -0
  424. package/cjs/InputPicker/TagList.js +0 -0
  425. package/cjs/InputPicker/TextBox.js +0 -0
  426. package/cjs/InputPicker/hooks/useData.js +0 -0
  427. package/cjs/InputPicker/hooks/useInput.js +0 -0
  428. package/cjs/InputPicker/hooks/useMaxWidth.js +0 -0
  429. package/cjs/InputPicker/index.js +0 -0
  430. package/cjs/InputPicker/utils.d.ts +1 -1
  431. package/cjs/Kbd/Kbd.js +1 -2
  432. package/cjs/Kbd/index.js +0 -0
  433. package/cjs/Link/ExternalLinkIcon.js +0 -0
  434. package/cjs/Link/Link.js +1 -2
  435. package/cjs/Link/index.js +0 -0
  436. package/cjs/List/List.js +1 -2
  437. package/cjs/List/ListItem.js +0 -0
  438. package/cjs/List/helper/useSortHelper.js +0 -0
  439. package/cjs/List/helper/utils.js +0 -0
  440. package/cjs/List/index.js +0 -0
  441. package/cjs/Loader/Loader.js +1 -2
  442. package/cjs/Loader/index.js +0 -0
  443. package/cjs/MaskedInput/MaskedInput.js +2 -2
  444. package/cjs/MaskedInput/TextMask.js +0 -0
  445. package/cjs/MaskedInput/conformToMask.js +0 -0
  446. package/cjs/MaskedInput/index.js +0 -0
  447. package/cjs/Menu/Menu.js +0 -0
  448. package/cjs/Menu/MenuContext.js +0 -0
  449. package/cjs/Menu/MenuItem.js +0 -0
  450. package/cjs/Menu/MenuSeparator.js +0 -0
  451. package/cjs/Menu/index.js +0 -0
  452. package/cjs/Message/Message.js +1 -2
  453. package/cjs/Message/index.js +0 -0
  454. package/cjs/Modal/Modal.js +1 -2
  455. package/cjs/Modal/ModalBody.js +0 -0
  456. package/cjs/Modal/ModalDialog.js +0 -0
  457. package/cjs/Modal/ModalFooter.js +0 -0
  458. package/cjs/Modal/ModalHeader.js +1 -2
  459. package/cjs/Modal/ModalTitle.js +0 -0
  460. package/cjs/Modal/index.js +0 -0
  461. package/cjs/Modal/utils.js +0 -0
  462. package/cjs/MultiCascadeTree/MultiCascadeTree.js +1 -2
  463. package/cjs/MultiCascadeTree/SearchView.js +1 -2
  464. package/cjs/MultiCascadeTree/TreeView.js +1 -2
  465. package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +0 -0
  466. package/cjs/MultiCascadeTree/hooks/useSearch.js +0 -0
  467. package/cjs/MultiCascadeTree/hooks/useSelect.js +0 -0
  468. package/cjs/MultiCascadeTree/index.js +0 -0
  469. package/cjs/MultiCascadeTree/types.js +0 -0
  470. package/cjs/MultiCascadeTree/utils.js +0 -0
  471. package/cjs/MultiCascader/MultiCascader.js +1 -2
  472. package/cjs/MultiCascader/index.js +0 -0
  473. package/cjs/Nav/AdaptiveNavItem.js +0 -0
  474. package/cjs/Nav/Nav.js +1 -2
  475. package/cjs/Nav/NavDropdown.js +0 -0
  476. package/cjs/Nav/NavDropdownItem.js +0 -0
  477. package/cjs/Nav/NavDropdownMenu.js +1 -2
  478. package/cjs/Nav/NavDropdownToggle.js +0 -0
  479. package/cjs/Nav/NavItem.js +0 -0
  480. package/cjs/Nav/NavMegaMenu.d.ts +5 -0
  481. package/cjs/Nav/NavMegaMenu.js +5 -0
  482. package/cjs/Nav/NavMenu.js +0 -0
  483. package/cjs/Nav/index.js +0 -0
  484. package/cjs/Navbar/Navbar.d.ts +1 -1
  485. package/cjs/Navbar/Navbar.js +1 -2
  486. package/cjs/Navbar/NavbarBrand.js +0 -0
  487. package/cjs/Navbar/NavbarContent.js +0 -0
  488. package/cjs/Navbar/NavbarContext.js +0 -0
  489. package/cjs/Navbar/NavbarDrawer.js +0 -0
  490. package/cjs/Navbar/NavbarDropdown.js +0 -0
  491. package/cjs/Navbar/NavbarDropdownItem.js +0 -0
  492. package/cjs/Navbar/NavbarDropdownMenu.js +1 -2
  493. package/cjs/Navbar/NavbarDropdownToggle.js +0 -0
  494. package/cjs/Navbar/NavbarItem.js +0 -0
  495. package/cjs/Navbar/NavbarMegaMenu.js +0 -0
  496. package/cjs/Navbar/NavbarToggle.d.ts +8 -3
  497. package/cjs/Navbar/NavbarToggle.js +9 -14
  498. package/cjs/Navbar/index.js +0 -0
  499. package/cjs/Notification/Notification.js +1 -2
  500. package/cjs/Notification/index.js +0 -0
  501. package/cjs/{InputNumber/InputNumber.d.ts → NumberInput/NumberInput.d.ts} +20 -8
  502. package/cjs/NumberInput/NumberInput.js +162 -0
  503. package/cjs/NumberInput/hooks/useEvents.d.ts +22 -0
  504. package/cjs/NumberInput/hooks/useEvents.js +114 -0
  505. package/cjs/NumberInput/hooks/useNumberInputValue.d.ts +7 -0
  506. package/cjs/NumberInput/hooks/useNumberInputValue.js +34 -0
  507. package/cjs/NumberInput/hooks/useWheelHandler.d.ts +5 -0
  508. package/cjs/NumberInput/hooks/useWheelHandler.js +25 -0
  509. package/cjs/NumberInput/index.d.ts +4 -0
  510. package/cjs/NumberInput/index.js +11 -0
  511. package/cjs/NumberInput/utils/number.d.ts +17 -0
  512. package/cjs/NumberInput/utils/number.js +67 -0
  513. package/cjs/Pagination/LimitPicker.d.ts +2 -2
  514. package/cjs/Pagination/LimitPicker.js +0 -0
  515. package/cjs/Pagination/Pagination.d.ts +2 -2
  516. package/cjs/Pagination/Pagination.js +1 -2
  517. package/cjs/Pagination/PaginationButton.js +0 -0
  518. package/cjs/Pagination/PaginationGroup.js +1 -2
  519. package/cjs/Pagination/index.js +0 -0
  520. package/cjs/Panel/AccordionButton.js +0 -0
  521. package/cjs/Panel/Panel.js +1 -2
  522. package/cjs/Panel/PanelBody.js +0 -0
  523. package/cjs/Panel/PanelHeader.js +0 -0
  524. package/cjs/Panel/index.js +0 -0
  525. package/cjs/PanelGroup/PanelGroup.js +1 -2
  526. package/cjs/PanelGroup/index.js +0 -0
  527. package/cjs/PasswordInput/PasswordInput.d.ts +18 -0
  528. package/cjs/PasswordInput/PasswordInput.js +72 -0
  529. package/cjs/PasswordInput/index.d.ts +4 -0
  530. package/cjs/PasswordInput/index.js +11 -0
  531. package/cjs/PasswordStrengthMeter/PasswordStrengthMeter.d.ts +12 -0
  532. package/cjs/PasswordStrengthMeter/PasswordStrengthMeter.js +49 -0
  533. package/cjs/PasswordStrengthMeter/index.d.ts +4 -0
  534. package/cjs/PasswordStrengthMeter/index.js +11 -0
  535. package/cjs/PinInput/PinInput.d.ts +36 -0
  536. package/cjs/PinInput/PinInput.js +224 -0
  537. package/cjs/PinInput/hooks/usePinInputRefs.d.ts +12 -0
  538. package/cjs/PinInput/hooks/usePinInputRefs.js +62 -0
  539. package/cjs/PinInput/hooks/usePinValue.d.ts +14 -0
  540. package/cjs/PinInput/hooks/usePinValue.js +73 -0
  541. package/cjs/PinInput/index.d.ts +4 -0
  542. package/cjs/PinInput/index.js +9 -0
  543. package/cjs/Placeholder/Placeholder.js +0 -0
  544. package/cjs/Placeholder/PlaceholderGraph.js +1 -2
  545. package/cjs/Placeholder/PlaceholderGrid.js +1 -2
  546. package/cjs/Placeholder/PlaceholderParagraph.js +1 -2
  547. package/cjs/Placeholder/index.js +0 -0
  548. package/cjs/Popover/Popover.js +1 -2
  549. package/cjs/Popover/index.js +0 -0
  550. package/cjs/Progress/Progress.js +0 -0
  551. package/cjs/Progress/ProgressCircle.js +1 -2
  552. package/cjs/Progress/ProgressLine.js +1 -2
  553. package/cjs/Progress/index.js +0 -0
  554. package/cjs/Radio/Radio.js +1 -2
  555. package/cjs/Radio/index.js +0 -0
  556. package/cjs/RadioGroup/RadioGroup.js +1 -2
  557. package/cjs/RadioGroup/index.js +0 -0
  558. package/cjs/RadioTile/RadioTile.js +1 -2
  559. package/cjs/RadioTile/index.js +0 -0
  560. package/cjs/RadioTileGroup/RadioTileGroup.js +1 -2
  561. package/cjs/RadioTileGroup/index.js +0 -0
  562. package/cjs/RangeSlider/RangeSlider.js +2 -3
  563. package/cjs/RangeSlider/index.js +0 -0
  564. package/cjs/Rate/Character.d.ts +4 -3
  565. package/cjs/Rate/Character.js +19 -15
  566. package/cjs/Rate/Rate.d.ts +10 -2
  567. package/cjs/Rate/Rate.js +48 -44
  568. package/cjs/Rate/index.js +0 -0
  569. package/cjs/Rate/types.d.ts +8 -0
  570. package/cjs/{CustomProvider → Rate}/types.js +0 -0
  571. package/cjs/Rate/useRatingStates.d.ts +20 -0
  572. package/cjs/Rate/useRatingStates.js +48 -0
  573. package/cjs/Rate/utils.d.ts +14 -3
  574. package/cjs/Rate/utils.js +50 -9
  575. package/cjs/Row/index.js +0 -0
  576. package/cjs/Schema/Schema.js +0 -0
  577. package/cjs/Schema/index.js +0 -0
  578. package/cjs/SelectPicker/SelectPicker.js +1 -2
  579. package/cjs/SelectPicker/index.js +0 -0
  580. package/cjs/Sidebar/Sidebar.js +1 -2
  581. package/cjs/Sidebar/index.js +0 -0
  582. package/cjs/Sidenav/ExpandedSidenavDropdown.js +0 -0
  583. package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +0 -0
  584. package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
  585. package/cjs/Sidenav/Sidenav.js +1 -2
  586. package/cjs/Sidenav/SidenavBody.js +0 -0
  587. package/cjs/Sidenav/SidenavDropdown.js +0 -0
  588. package/cjs/Sidenav/SidenavDropdownCollapse.js +0 -0
  589. package/cjs/Sidenav/SidenavDropdownItem.js +0 -0
  590. package/cjs/Sidenav/SidenavDropdownMenu.js +1 -2
  591. package/cjs/Sidenav/SidenavDropdownToggle.js +0 -0
  592. package/cjs/Sidenav/SidenavFooter.js +0 -0
  593. package/cjs/Sidenav/SidenavGroupLabel.js +0 -0
  594. package/cjs/Sidenav/SidenavHeader.js +0 -0
  595. package/cjs/Sidenav/SidenavItem.js +0 -0
  596. package/cjs/Sidenav/SidenavToggle.js +0 -0
  597. package/cjs/Sidenav/index.js +0 -0
  598. package/cjs/Slider/Graduated.js +0 -0
  599. package/cjs/Slider/Handle.js +0 -0
  600. package/cjs/Slider/Input.js +0 -0
  601. package/cjs/Slider/Mark.js +0 -0
  602. package/cjs/Slider/ProgressBar.js +0 -0
  603. package/cjs/Slider/Slider.d.ts +5 -1
  604. package/cjs/Slider/Slider.js +13 -14
  605. package/cjs/Slider/index.js +0 -0
  606. package/cjs/Slider/useDrag.js +0 -0
  607. package/cjs/Stack/HStack.js +0 -0
  608. package/cjs/Stack/Stack.js +1 -2
  609. package/cjs/Stack/StackItem.js +0 -0
  610. package/cjs/Stack/VStack.js +0 -0
  611. package/cjs/Stack/index.js +0 -0
  612. package/cjs/Stat/Stat.js +1 -2
  613. package/cjs/Stat/StatHelpText.js +0 -0
  614. package/cjs/Stat/StatLabel.js +0 -0
  615. package/cjs/Stat/StatTrend.js +0 -0
  616. package/cjs/Stat/StatValue.js +2 -2
  617. package/cjs/Stat/StatValueUnit.js +0 -0
  618. package/cjs/Stat/index.js +0 -0
  619. package/cjs/StatGroup/StatGroup.js +1 -2
  620. package/cjs/StatGroup/index.js +0 -0
  621. package/cjs/Steps/StepItem.js +0 -0
  622. package/cjs/Steps/Steps.js +1 -2
  623. package/cjs/Steps/index.js +0 -0
  624. package/cjs/Table/Table.js +2 -2
  625. package/cjs/Table/index.js +0 -0
  626. package/cjs/Tabs/Tab.js +0 -0
  627. package/cjs/Tabs/TabPanel.js +0 -0
  628. package/cjs/Tabs/Tabs.js +1 -2
  629. package/cjs/Tabs/index.js +0 -0
  630. package/cjs/Tag/Tag.js +1 -2
  631. package/cjs/Tag/index.js +0 -0
  632. package/cjs/TagGroup/TagGroup.js +0 -0
  633. package/cjs/TagGroup/index.js +0 -0
  634. package/cjs/TagInput/TagInput.js +2 -2
  635. package/cjs/TagInput/index.js +0 -0
  636. package/cjs/TagPicker/TagPicker.js +2 -2
  637. package/cjs/TagPicker/index.js +0 -0
  638. package/cjs/Text/Text.js +1 -2
  639. package/cjs/Text/index.js +0 -0
  640. package/cjs/Textarea/Textarea.d.ts +32 -0
  641. package/cjs/Textarea/Textarea.js +50 -0
  642. package/cjs/Textarea/index.d.ts +4 -0
  643. package/cjs/Textarea/index.js +11 -0
  644. package/cjs/TimePicker/TimePicker.d.ts +1 -2
  645. package/cjs/TimePicker/TimePicker.js +2 -2
  646. package/cjs/TimePicker/index.js +0 -0
  647. package/cjs/TimeRangePicker/TimeRangePicker.js +2 -2
  648. package/cjs/TimeRangePicker/index.js +0 -0
  649. package/cjs/Timeline/Timeline.js +1 -2
  650. package/cjs/Timeline/TimelineItem.js +0 -0
  651. package/cjs/Timeline/index.js +0 -0
  652. package/cjs/Toggle/Toggle.d.ts +1 -0
  653. package/cjs/Toggle/Toggle.js +1 -2
  654. package/cjs/Toggle/index.js +0 -0
  655. package/cjs/Tooltip/Tooltip.js +1 -2
  656. package/cjs/Tooltip/index.js +0 -0
  657. package/cjs/Tree/IndentLine.js +0 -0
  658. package/cjs/Tree/Tree.js +1 -2
  659. package/cjs/Tree/TreeNode.js +1 -2
  660. package/cjs/Tree/TreeNodeToggle.js +1 -2
  661. package/cjs/Tree/TreeView.js +1 -2
  662. package/cjs/Tree/hooks/useFlattenTree.js +0 -0
  663. package/cjs/Tree/hooks/useFocusTree.js +1 -2
  664. package/cjs/Tree/hooks/useTreeNodeRefs.js +0 -0
  665. package/cjs/Tree/hooks/useTreeSearch.js +0 -0
  666. package/cjs/Tree/index.js +0 -0
  667. package/cjs/Tree/types.js +0 -0
  668. package/cjs/TreePicker/TreePicker.js +1 -2
  669. package/cjs/TreePicker/hooks/useFocusState.js +0 -0
  670. package/cjs/TreePicker/index.js +0 -0
  671. package/cjs/Uploader/UploadFileItem.js +0 -0
  672. package/cjs/Uploader/UploadTrigger.js +0 -0
  673. package/cjs/Uploader/Uploader.js +1 -2
  674. package/cjs/Uploader/index.js +0 -0
  675. package/cjs/Uploader/utils/ajaxUpload.js +0 -0
  676. package/cjs/VisuallyHidden/VisuallyHidden.js +0 -0
  677. package/cjs/VisuallyHidden/index.js +0 -0
  678. package/cjs/Whisper/Whisper.js +2 -2
  679. package/cjs/Whisper/index.js +0 -0
  680. package/cjs/index.d.ts +5 -0
  681. package/cjs/index.js +30 -0
  682. package/cjs/internals/Box/Box.js +0 -0
  683. package/cjs/internals/Box/index.d.ts +1 -0
  684. package/cjs/internals/Box/index.js +1 -0
  685. package/cjs/internals/Box/utils.js +0 -0
  686. package/cjs/internals/Burger/Burger.d.ts +16 -0
  687. package/cjs/internals/Burger/Burger.js +46 -0
  688. package/cjs/internals/Burger/index.d.ts +4 -0
  689. package/cjs/internals/Burger/index.js +11 -0
  690. package/cjs/internals/CloseButton/CloseButton.js +1 -2
  691. package/cjs/internals/Disclosure/Disclosure.js +0 -0
  692. package/cjs/internals/InputBase/InputBase.d.ts +45 -0
  693. package/cjs/internals/InputBase/InputBase.js +96 -0
  694. package/cjs/internals/InputBase/index.d.ts +3 -0
  695. package/cjs/internals/InputBase/index.js +8 -0
  696. package/cjs/internals/Menu/Menu.js +1 -2
  697. package/cjs/internals/Menu/MenuItem.js +0 -0
  698. package/cjs/internals/Menu/Menubar.js +2 -2
  699. package/cjs/internals/Menu/useMenu.js +0 -0
  700. package/cjs/internals/Menu/useRenderMenuItem.js +0 -0
  701. package/cjs/internals/Overlay/Modal.js +0 -0
  702. package/cjs/internals/Overlay/Overlay.js +0 -0
  703. package/cjs/internals/Overlay/OverlayProvider.js +0 -0
  704. package/cjs/internals/Overlay/OverlayTrigger.js +0 -0
  705. package/cjs/internals/Overlay/Position.js +0 -0
  706. package/cjs/internals/Overlay/index.js +0 -0
  707. package/cjs/internals/Overlay/positionUtils.js +0 -0
  708. package/cjs/internals/Overlay/types.js +0 -0
  709. package/cjs/internals/Picker/ListCheckItem.js +0 -0
  710. package/cjs/internals/Picker/ListItem.js +0 -0
  711. package/cjs/internals/Picker/ListItemGroup.js +0 -0
  712. package/cjs/internals/Picker/Listbox.js +0 -0
  713. package/cjs/internals/Picker/PickerDrawer.js +0 -0
  714. package/cjs/internals/Picker/PickerIndicator.js +1 -2
  715. package/cjs/internals/Picker/PickerPopup.js +0 -0
  716. package/cjs/internals/Picker/PickerToggle.js +0 -0
  717. package/cjs/internals/Picker/PickerToggleTrigger.js +0 -0
  718. package/cjs/internals/Picker/SelectedElement.js +0 -0
  719. package/cjs/internals/Picker/ToggleButton.js +0 -0
  720. package/cjs/internals/Picker/hooks/index.js +0 -0
  721. package/cjs/internals/Picker/hooks/useCombobox.d.ts +1 -1
  722. package/cjs/internals/Picker/hooks/useCombobox.js +0 -0
  723. package/cjs/internals/Picker/hooks/useFocusItemValue.js +0 -0
  724. package/cjs/internals/Picker/hooks/usePickerRef.js +0 -0
  725. package/cjs/internals/Picker/index.js +0 -0
  726. package/cjs/internals/Picker/types.js +0 -0
  727. package/cjs/internals/Plaintext/Plaintext.js +1 -2
  728. package/cjs/internals/Provider/CustomContext.d.ts +253 -0
  729. package/cjs/internals/Provider/CustomContext.js +8 -0
  730. package/cjs/internals/Provider/types.d.ts +236 -0
  731. package/cjs/internals/Provider/types.js +4 -0
  732. package/cjs/internals/Ripple/Ripple.js +1 -2
  733. package/cjs/internals/SafeAnchor/SafeAnchor.js +2 -2
  734. package/cjs/internals/SafeAnchor/index.js +0 -0
  735. package/cjs/internals/ScrollView/ScrollView.js +0 -0
  736. package/cjs/internals/SearchBox/SearchBox.js +0 -0
  737. package/cjs/internals/StyledBox/StyledBox.js +0 -0
  738. package/cjs/internals/StyledBox/index.js +0 -0
  739. package/cjs/internals/Tree/TreeView.js +0 -0
  740. package/cjs/internals/Tree/utils/getPathTowardsItem.js +0 -0
  741. package/cjs/internals/Windowing/AutoSizer.js +0 -0
  742. package/cjs/internals/Windowing/List.js +2 -2
  743. package/cjs/internals/constants/index.js +0 -0
  744. package/cjs/internals/hooks/index.d.ts +1 -0
  745. package/cjs/internals/hooks/index.js +3 -1
  746. package/cjs/{CustomProvider → internals/hooks}/useCustom.d.ts +4 -4
  747. package/cjs/{CustomProvider → internals/hooks}/useCustom.js +5 -5
  748. package/cjs/internals/hooks/useElementResize.js +0 -0
  749. package/cjs/internals/hooks/useEnsuredRef.js +0 -0
  750. package/cjs/internals/hooks/useFocus.js +0 -0
  751. package/cjs/internals/hooks/useInternalId.js +0 -0
  752. package/cjs/internals/hooks/usePortal.js +0 -0
  753. package/cjs/internals/hooks/useRootClose.js +0 -0
  754. package/cjs/internals/hooks/useStyles.js +2 -2
  755. package/cjs/internals/hooks/useTimeout.js +0 -0
  756. package/cjs/internals/hooks/useToggleCaret.js +2 -2
  757. package/cjs/internals/hooks/useUniqueId.js +0 -0
  758. package/cjs/internals/hooks/useUpdateEffect.js +0 -0
  759. package/cjs/internals/hooks/useWillUnmount.js +0 -0
  760. package/cjs/internals/index.d.ts +4 -0
  761. package/cjs/internals/index.js +13 -1
  762. package/cjs/{CustomProvider → internals/intl}/FormattedDate.js +2 -2
  763. package/cjs/{CustomProvider → internals/intl}/FormattedNumber.js +2 -2
  764. package/cjs/internals/symbols.js +0 -0
  765. package/cjs/internals/types/animation.js +0 -0
  766. package/cjs/internals/types/colours.js +0 -0
  767. package/cjs/internals/types/date.js +0 -0
  768. package/cjs/internals/types/dom.js +0 -0
  769. package/cjs/internals/types/form.js +0 -0
  770. package/cjs/internals/types/html.d.ts +2 -0
  771. package/cjs/internals/types/html.js +0 -0
  772. package/cjs/internals/types/index.js +0 -0
  773. package/cjs/internals/types/picker.d.ts +2 -2
  774. package/cjs/internals/types/picker.js +0 -0
  775. package/cjs/internals/types/placement.js +0 -0
  776. package/cjs/internals/types/shared.js +0 -0
  777. package/cjs/internals/types/sizes.d.ts +2 -0
  778. package/cjs/internals/types/sizes.js +2 -1
  779. package/cjs/internals/types/utils.js +0 -0
  780. package/cjs/internals/utils/BrowserDetection.js +0 -0
  781. package/cjs/internals/utils/colours.js +0 -0
  782. package/cjs/internals/utils/date/copyTime.js +0 -0
  783. package/cjs/internals/utils/date/disableTime.js +0 -0
  784. package/cjs/internals/utils/date/getWeekStartDates.d.ts +0 -1
  785. package/cjs/internals/utils/date/getWeekStartDates.js +2 -4
  786. package/cjs/internals/utils/date/index.js +0 -0
  787. package/cjs/internals/utils/html/dom.js +0 -0
  788. package/cjs/internals/utils/html/events.js +0 -0
  789. package/cjs/internals/utils/html/htmlPropsUtils.js +0 -0
  790. package/cjs/internals/utils/html/index.js +0 -0
  791. package/cjs/internals/utils/html/safeSetSelection.js +0 -0
  792. package/cjs/internals/utils/index.js +0 -0
  793. package/cjs/internals/utils/placement.js +0 -0
  794. package/cjs/internals/utils/react/ReactChildren.js +0 -0
  795. package/cjs/internals/utils/react/ReactIs.js +0 -0
  796. package/cjs/internals/utils/react/createComponent.js +15 -4
  797. package/cjs/internals/utils/react/deprecateComponent.js +0 -0
  798. package/cjs/internals/utils/react/forwardRef.js +0 -0
  799. package/cjs/internals/utils/react/getDOMNode.js +0 -0
  800. package/cjs/internals/utils/react/index.js +0 -0
  801. package/cjs/internals/utils/react/mergeRefs.js +0 -0
  802. package/cjs/internals/utils/sizes.js +0 -0
  803. package/cjs/internals/utils/string/getSafeRegExpString.js +0 -0
  804. package/cjs/internals/utils/string/getStringLength.js +0 -0
  805. package/cjs/internals/utils/string/index.js +0 -0
  806. package/cjs/internals/utils/string/stringifyReactNode.js +0 -0
  807. package/cjs/internals/utils/string/tplTransform.js +0 -0
  808. package/cjs/internals/utils/style-sheet/css.js +0 -0
  809. package/cjs/internals/utils/style-sheet/index.js +0 -0
  810. package/cjs/internals/utils/style-sheet/prefix.js +0 -0
  811. package/cjs/internals/utils/style-sheet/responsive.js +0 -0
  812. package/cjs/internals/utils/style-sheet/styles.js +0 -0
  813. package/cjs/locales/ar_EG.js +0 -0
  814. package/cjs/locales/ca_ES.js +0 -0
  815. package/cjs/locales/cs_CZ.js +0 -0
  816. package/cjs/locales/da_DK.js +0 -0
  817. package/cjs/locales/de_DE.js +0 -0
  818. package/cjs/locales/en_GB.js +0 -0
  819. package/cjs/locales/en_US.js +0 -0
  820. package/cjs/locales/es_AR.js +0 -0
  821. package/cjs/locales/es_ES.js +0 -0
  822. package/cjs/locales/fa_IR.js +0 -0
  823. package/cjs/locales/fi_FI.js +0 -0
  824. package/cjs/locales/fr_FR.js +0 -0
  825. package/cjs/locales/hu_HU.js +0 -0
  826. package/cjs/locales/it_IT.js +0 -0
  827. package/cjs/locales/ja_JP.js +0 -0
  828. package/cjs/locales/kk_KZ.js +0 -0
  829. package/cjs/locales/ko_KR.js +0 -0
  830. package/cjs/locales/ne_NP.js +0 -0
  831. package/cjs/locales/nl_NL.js +0 -0
  832. package/cjs/locales/pl_PL.js +0 -0
  833. package/cjs/locales/pt_BR.js +0 -0
  834. package/cjs/locales/ru_RU.js +0 -0
  835. package/cjs/locales/sv_SE.js +0 -0
  836. package/cjs/locales/tr_TR.js +0 -0
  837. package/cjs/locales/zh_CN.js +0 -0
  838. package/cjs/locales/zh_TW.js +0 -0
  839. package/cjs/toaster/ToastContainer.js +0 -0
  840. package/cjs/toaster/hooks/useDelayedClosure.js +0 -0
  841. package/cjs/toaster/index.js +0 -0
  842. package/cjs/toaster/render.js +0 -0
  843. package/cjs/toaster/toaster.js +0 -0
  844. package/cjs/useBreakpointValue/index.js +0 -0
  845. package/cjs/useBreakpointValue/useBreakpointValue.d.ts +1 -1
  846. package/cjs/useBreakpointValue/useBreakpointValue.js +1 -1
  847. package/cjs/useMediaQuery/breakpoints.js +0 -0
  848. package/cjs/useMediaQuery/index.js +0 -0
  849. package/cjs/useMediaQuery/types.js +0 -0
  850. package/cjs/useMediaQuery/useMediaQuery.js +0 -0
  851. package/cjs/useToaster/index.js +0 -0
  852. package/cjs/useToaster/useToaster.js +2 -5
  853. package/dist/rsuite-no-reset-rtl.css +334 -308
  854. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  855. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  856. package/dist/rsuite-no-reset.css +334 -308
  857. package/dist/rsuite-no-reset.min.css +1 -1
  858. package/dist/rsuite-no-reset.min.css.map +1 -1
  859. package/dist/rsuite-rtl.css +334 -308
  860. package/dist/rsuite-rtl.min.css +1 -1
  861. package/dist/rsuite-rtl.min.css.map +1 -1
  862. package/dist/rsuite.css +334 -308
  863. package/dist/rsuite.js +527 -230
  864. package/dist/rsuite.js.map +1 -1
  865. package/dist/rsuite.min.css +1 -1
  866. package/dist/rsuite.min.css.map +1 -1
  867. package/dist/rsuite.min.js +1 -1
  868. package/dist/rsuite.min.js.map +1 -1
  869. package/esm/Accordion/Accordion.js +1 -1
  870. package/esm/Accordion/AccordionPanel.js +0 -0
  871. package/esm/Accordion/index.js +0 -0
  872. package/esm/Affix/Affix.js +1 -2
  873. package/esm/Affix/index.js +0 -0
  874. package/esm/Animation/Bounce.js +1 -2
  875. package/esm/Animation/Collapse.js +1 -2
  876. package/esm/Animation/Fade.js +1 -2
  877. package/esm/Animation/Slide.js +1 -2
  878. package/esm/Animation/Transition.js +0 -0
  879. package/esm/Animation/index.js +0 -0
  880. package/esm/Animation/utils.js +0 -0
  881. package/esm/AutoComplete/AutoComplete.d.ts +2 -2
  882. package/esm/AutoComplete/AutoComplete.js +1 -2
  883. package/esm/AutoComplete/Combobox.js +0 -0
  884. package/esm/AutoComplete/index.js +0 -0
  885. package/esm/Avatar/Avatar.js +1 -2
  886. package/esm/Avatar/index.js +0 -0
  887. package/esm/AvatarGroup/AvatarGroup.js +1 -2
  888. package/esm/AvatarGroup/index.js +0 -0
  889. package/esm/Badge/Badge.js +1 -2
  890. package/esm/Badge/index.js +0 -0
  891. package/esm/Box/index.js +0 -0
  892. package/esm/Breadcrumb/Breadcrumb.js +1 -2
  893. package/esm/Breadcrumb/BreadcrumbItem.js +0 -0
  894. package/esm/Breadcrumb/index.js +0 -0
  895. package/esm/Button/Button.d.ts +2 -2
  896. package/esm/Button/Button.js +1 -2
  897. package/esm/Button/index.js +0 -0
  898. package/esm/ButtonGroup/ButtonGroup.d.ts +2 -2
  899. package/esm/ButtonGroup/ButtonGroup.js +1 -2
  900. package/esm/ButtonGroup/ButtonGroupContext.js +0 -0
  901. package/esm/ButtonGroup/index.js +0 -0
  902. package/esm/ButtonToolbar/ButtonToolbar.js +1 -2
  903. package/esm/ButtonToolbar/index.js +0 -0
  904. package/esm/Calendar/Calendar.js +3 -4
  905. package/esm/Calendar/CalendarBody.js +1 -4
  906. package/esm/Calendar/CalendarContainer.js +1 -1
  907. package/esm/Calendar/CalendarHeader.js +1 -1
  908. package/esm/Calendar/CalendarProvider.d.ts +1 -1
  909. package/esm/Calendar/CalendarProvider.js +0 -0
  910. package/esm/Calendar/Grid/Grid.js +0 -0
  911. package/esm/Calendar/Grid/GridCell.js +1 -2
  912. package/esm/Calendar/Grid/GridHeaderRow.js +1 -2
  913. package/esm/Calendar/Grid/GridRow.d.ts +2 -0
  914. package/esm/Calendar/Grid/GridRow.js +5 -4
  915. package/esm/Calendar/MonthDropdown/MonthDropdown.js +0 -0
  916. package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +1 -2
  917. package/esm/Calendar/TimeDropdown/TimeDropdown.js +0 -0
  918. package/esm/Calendar/hooks/useCalendar.d.ts +24 -2
  919. package/esm/Calendar/hooks/useCalendar.js +35 -2
  920. package/esm/Calendar/index.js +0 -0
  921. package/esm/Card/Card.js +1 -2
  922. package/esm/Card/CardBody.js +0 -0
  923. package/esm/Card/CardFooter.js +0 -0
  924. package/esm/Card/CardHeader.js +0 -0
  925. package/esm/Card/index.js +0 -0
  926. package/esm/CardGroup/CardGroup.js +1 -2
  927. package/esm/CardGroup/index.js +0 -0
  928. package/esm/Carousel/Carousel.js +1 -2
  929. package/esm/Carousel/index.js +0 -0
  930. package/esm/CascadeTree/CascadeTree.js +1 -2
  931. package/esm/CascadeTree/SearchView.js +1 -2
  932. package/esm/CascadeTree/TreeView.js +1 -2
  933. package/esm/CascadeTree/hooks/useSearch.js +0 -0
  934. package/esm/CascadeTree/hooks/useSelect.js +0 -0
  935. package/esm/CascadeTree/index.js +0 -0
  936. package/esm/CascadeTree/types.js +0 -0
  937. package/esm/CascadeTree/utils.js +0 -0
  938. package/esm/Cascader/Cascader.js +1 -2
  939. package/esm/Cascader/index.js +0 -0
  940. package/esm/Cascader/useActive.js +0 -0
  941. package/esm/Center/Center.js +0 -0
  942. package/esm/Center/index.js +0 -0
  943. package/esm/CheckPicker/CheckPicker.js +1 -2
  944. package/esm/CheckPicker/index.js +0 -0
  945. package/esm/CheckTree/CheckTree.js +1 -2
  946. package/esm/CheckTree/CheckTreeNode.js +1 -2
  947. package/esm/CheckTree/CheckTreeView.js +1 -2
  948. package/esm/CheckTree/index.js +0 -0
  949. package/esm/CheckTreePicker/CheckTreePicker.js +1 -2
  950. package/esm/CheckTreePicker/hooks/useFocusState.js +0 -0
  951. package/esm/CheckTreePicker/index.js +0 -0
  952. package/esm/Checkbox/Checkbox.js +1 -2
  953. package/esm/Checkbox/index.js +0 -0
  954. package/esm/CheckboxGroup/CheckboxGroup.js +1 -2
  955. package/esm/CheckboxGroup/CheckboxGroupContext.js +0 -0
  956. package/esm/CheckboxGroup/index.js +0 -0
  957. package/esm/Col/index.js +0 -0
  958. package/esm/Container/Container.js +1 -2
  959. package/esm/Container/index.js +0 -0
  960. package/esm/Content/Content.js +0 -0
  961. package/esm/Content/index.js +0 -0
  962. package/esm/CustomProvider/CustomProvider.d.ts +1 -271
  963. package/esm/CustomProvider/CustomProvider.js +1 -1
  964. package/esm/CustomProvider/index.d.ts +1 -6
  965. package/esm/CustomProvider/index.js +0 -6
  966. package/esm/DOMHelper/index.js +0 -0
  967. package/esm/DateInput/DateField.js +0 -0
  968. package/esm/DateInput/DateInput.js +1 -2
  969. package/esm/DateInput/hooks/useDateInputState.js +1 -1
  970. package/esm/DateInput/hooks/useKeyboardInputEvent.js +0 -0
  971. package/esm/DateInput/index.js +0 -0
  972. package/esm/DateInput/utils.js +0 -0
  973. package/esm/DatePicker/DatePicker.js +2 -3
  974. package/esm/DatePicker/PredefinedRanges.js +0 -0
  975. package/esm/DatePicker/Toolbar.js +0 -0
  976. package/esm/DatePicker/hooks/useFocus.js +1 -2
  977. package/esm/DatePicker/index.js +0 -0
  978. package/esm/DatePicker/types.js +0 -0
  979. package/esm/DatePicker/utils.js +0 -0
  980. package/esm/DateRangeInput/DateRangeInput.js +1 -2
  981. package/esm/DateRangeInput/index.js +0 -0
  982. package/esm/DateRangePicker/Calendar.js +0 -0
  983. package/esm/DateRangePicker/DateRangePicker.js +2 -3
  984. package/esm/DateRangePicker/Header.js +1 -1
  985. package/esm/DateRangePicker/hooks/useDateDisabled.js +0 -0
  986. package/esm/DateRangePicker/index.js +0 -0
  987. package/esm/DateRangePicker/types.js +0 -0
  988. package/esm/DateRangePicker/utils.d.ts +1 -1
  989. package/esm/DateRangePicker/utils.js +1 -1
  990. package/esm/Divider/Divider.d.ts +3 -2
  991. package/esm/Divider/Divider.js +3 -4
  992. package/esm/Divider/index.js +0 -0
  993. package/esm/Drawer/Drawer.js +1 -2
  994. package/esm/Drawer/DrawerActions.js +0 -0
  995. package/esm/Drawer/DrawerBody.js +0 -0
  996. package/esm/Drawer/DrawerFooter.js +0 -0
  997. package/esm/Drawer/DrawerHeader.js +0 -0
  998. package/esm/Drawer/DrawerTitle.js +0 -0
  999. package/esm/Drawer/index.js +0 -0
  1000. package/esm/Dropdown/Dropdown.js +1 -2
  1001. package/esm/Dropdown/DropdownContext.js +0 -0
  1002. package/esm/Dropdown/DropdownItem.js +0 -0
  1003. package/esm/Dropdown/DropdownMenu.js +1 -2
  1004. package/esm/Dropdown/DropdownSeparator.js +0 -0
  1005. package/esm/Dropdown/DropdownToggle.js +0 -0
  1006. package/esm/Dropdown/index.js +0 -0
  1007. package/esm/Dropdown/types.js +0 -0
  1008. package/esm/FlexboxGrid/FlexboxGrid.js +1 -2
  1009. package/esm/FlexboxGrid/FlexboxGridItem.js +0 -0
  1010. package/esm/FlexboxGrid/index.js +0 -0
  1011. package/esm/Footer/Footer.js +0 -0
  1012. package/esm/Footer/index.js +0 -0
  1013. package/esm/Form/Form.js +1 -2
  1014. package/esm/Form/FormContext.js +0 -0
  1015. package/esm/Form/index.js +0 -0
  1016. package/esm/FormControl/FormControl.js +1 -2
  1017. package/esm/FormControl/index.js +0 -0
  1018. package/esm/FormControlLabel/FormControlLabel.js +1 -2
  1019. package/esm/FormControlLabel/index.js +0 -0
  1020. package/esm/FormErrorMessage/FormErrorMessage.js +1 -2
  1021. package/esm/FormErrorMessage/index.js +0 -0
  1022. package/esm/FormGroup/FormGroup.js +1 -2
  1023. package/esm/FormGroup/index.js +0 -0
  1024. package/esm/FormHelpText/FormHelpText.js +1 -2
  1025. package/esm/FormHelpText/index.js +0 -0
  1026. package/esm/FormStack/FormStack.js +1 -2
  1027. package/esm/FormStack/index.js +0 -0
  1028. package/esm/Grid/Col.js +1 -2
  1029. package/esm/Grid/Grid.js +1 -2
  1030. package/esm/Grid/Row.js +1 -2
  1031. package/esm/Grid/index.js +0 -0
  1032. package/esm/Grid/types.js +0 -0
  1033. package/esm/Grid/utils/styles.js +0 -0
  1034. package/esm/Header/Header.js +0 -0
  1035. package/esm/Header/index.js +0 -0
  1036. package/esm/Heading/Heading.js +1 -2
  1037. package/esm/Heading/index.js +0 -0
  1038. package/esm/HeadingGroup/HeadingGroup.js +0 -0
  1039. package/esm/HeadingGroup/index.js +0 -0
  1040. package/esm/Highlight/Highlight.js +2 -3
  1041. package/esm/Highlight/index.js +0 -0
  1042. package/esm/IconButton/IconButton.js +1 -2
  1043. package/esm/IconButton/index.js +0 -0
  1044. package/esm/Image/Image.js +14 -14
  1045. package/esm/Image/ImageWrapper.js +0 -0
  1046. package/esm/Image/hooks/useImage.d.ts +2 -0
  1047. package/esm/Image/hooks/useImage.js +20 -43
  1048. package/esm/Image/index.js +0 -0
  1049. package/esm/InlineEdit/EditableControls.js +0 -0
  1050. package/esm/InlineEdit/InlineEdit.js +4 -3
  1051. package/esm/InlineEdit/index.js +0 -0
  1052. package/esm/InlineEdit/renderChildren.js +0 -0
  1053. package/esm/InlineEdit/useEditState.d.ts +2 -0
  1054. package/esm/InlineEdit/useEditState.js +8 -0
  1055. package/esm/Input/Input.d.ts +3 -12
  1056. package/esm/Input/Input.js +13 -75
  1057. package/esm/Input/index.js +0 -0
  1058. package/esm/InputGroup/InputGroup.js +1 -2
  1059. package/esm/InputGroup/InputGroupAddon.js +0 -0
  1060. package/esm/InputGroup/InputGroupButton.js +0 -0
  1061. package/esm/InputGroup/index.js +0 -0
  1062. package/esm/InputNumber/index.d.ts +12 -2
  1063. package/esm/InputNumber/index.js +8 -1
  1064. package/esm/InputPicker/InputAutosize.js +0 -0
  1065. package/esm/InputPicker/InputPicker.js +1 -2
  1066. package/esm/InputPicker/InputSearch.js +0 -0
  1067. package/esm/InputPicker/TagList.js +0 -0
  1068. package/esm/InputPicker/TextBox.js +0 -0
  1069. package/esm/InputPicker/hooks/useData.js +0 -0
  1070. package/esm/InputPicker/hooks/useInput.js +0 -0
  1071. package/esm/InputPicker/hooks/useMaxWidth.js +0 -0
  1072. package/esm/InputPicker/index.js +0 -0
  1073. package/esm/InputPicker/utils.d.ts +1 -1
  1074. package/esm/Kbd/Kbd.js +1 -2
  1075. package/esm/Kbd/index.js +0 -0
  1076. package/esm/Link/ExternalLinkIcon.js +0 -0
  1077. package/esm/Link/Link.js +1 -2
  1078. package/esm/Link/index.js +0 -0
  1079. package/esm/List/List.js +1 -2
  1080. package/esm/List/ListItem.js +0 -0
  1081. package/esm/List/helper/useSortHelper.js +0 -0
  1082. package/esm/List/helper/utils.js +0 -0
  1083. package/esm/List/index.js +0 -0
  1084. package/esm/Loader/Loader.js +1 -2
  1085. package/esm/Loader/index.js +0 -0
  1086. package/esm/MaskedInput/MaskedInput.js +1 -1
  1087. package/esm/MaskedInput/TextMask.js +0 -0
  1088. package/esm/MaskedInput/conformToMask.js +0 -0
  1089. package/esm/MaskedInput/index.js +0 -0
  1090. package/esm/Menu/Menu.js +0 -0
  1091. package/esm/Menu/MenuContext.js +0 -0
  1092. package/esm/Menu/MenuItem.js +0 -0
  1093. package/esm/Menu/MenuSeparator.js +0 -0
  1094. package/esm/Menu/index.js +0 -0
  1095. package/esm/Message/Message.js +1 -2
  1096. package/esm/Message/index.js +0 -0
  1097. package/esm/Modal/Modal.js +1 -2
  1098. package/esm/Modal/ModalBody.js +0 -0
  1099. package/esm/Modal/ModalDialog.js +0 -0
  1100. package/esm/Modal/ModalFooter.js +0 -0
  1101. package/esm/Modal/ModalHeader.js +1 -2
  1102. package/esm/Modal/ModalTitle.js +0 -0
  1103. package/esm/Modal/index.js +0 -0
  1104. package/esm/Modal/utils.js +0 -0
  1105. package/esm/MultiCascadeTree/MultiCascadeTree.js +1 -2
  1106. package/esm/MultiCascadeTree/SearchView.js +1 -2
  1107. package/esm/MultiCascadeTree/TreeView.js +1 -2
  1108. package/esm/MultiCascadeTree/hooks/useCascadeValue.js +0 -0
  1109. package/esm/MultiCascadeTree/hooks/useSearch.js +0 -0
  1110. package/esm/MultiCascadeTree/hooks/useSelect.js +0 -0
  1111. package/esm/MultiCascadeTree/index.js +0 -0
  1112. package/esm/MultiCascadeTree/types.js +0 -0
  1113. package/esm/MultiCascadeTree/utils.js +0 -0
  1114. package/esm/MultiCascader/MultiCascader.js +1 -2
  1115. package/esm/MultiCascader/index.js +0 -0
  1116. package/esm/Nav/AdaptiveNavItem.js +0 -0
  1117. package/esm/Nav/Nav.js +1 -2
  1118. package/esm/Nav/NavDropdown.js +0 -0
  1119. package/esm/Nav/NavDropdownItem.js +0 -0
  1120. package/esm/Nav/NavDropdownMenu.js +1 -2
  1121. package/esm/Nav/NavDropdownToggle.js +0 -0
  1122. package/esm/Nav/NavItem.js +0 -0
  1123. package/esm/Nav/NavMegaMenu.d.ts +5 -0
  1124. package/esm/Nav/NavMegaMenu.js +5 -0
  1125. package/esm/Nav/NavMenu.js +0 -0
  1126. package/esm/Nav/index.js +0 -0
  1127. package/esm/Navbar/Navbar.d.ts +1 -1
  1128. package/esm/Navbar/Navbar.js +1 -2
  1129. package/esm/Navbar/NavbarBrand.js +0 -0
  1130. package/esm/Navbar/NavbarContent.js +0 -0
  1131. package/esm/Navbar/NavbarContext.js +0 -0
  1132. package/esm/Navbar/NavbarDrawer.js +0 -0
  1133. package/esm/Navbar/NavbarDropdown.js +0 -0
  1134. package/esm/Navbar/NavbarDropdownItem.js +0 -0
  1135. package/esm/Navbar/NavbarDropdownMenu.js +1 -2
  1136. package/esm/Navbar/NavbarDropdownToggle.js +0 -0
  1137. package/esm/Navbar/NavbarItem.js +0 -0
  1138. package/esm/Navbar/NavbarMegaMenu.js +0 -0
  1139. package/esm/Navbar/NavbarToggle.d.ts +8 -3
  1140. package/esm/Navbar/NavbarToggle.js +10 -15
  1141. package/esm/Navbar/index.js +0 -0
  1142. package/esm/Notification/Notification.js +1 -2
  1143. package/esm/Notification/index.js +0 -0
  1144. package/esm/{InputNumber/InputNumber.d.ts → NumberInput/NumberInput.d.ts} +20 -8
  1145. package/esm/NumberInput/NumberInput.js +157 -0
  1146. package/esm/NumberInput/hooks/useEvents.d.ts +22 -0
  1147. package/esm/NumberInput/hooks/useEvents.js +110 -0
  1148. package/esm/NumberInput/hooks/useNumberInputValue.d.ts +7 -0
  1149. package/esm/NumberInput/hooks/useNumberInputValue.js +29 -0
  1150. package/esm/NumberInput/hooks/useWheelHandler.d.ts +5 -0
  1151. package/esm/NumberInput/hooks/useWheelHandler.js +21 -0
  1152. package/esm/NumberInput/index.d.ts +4 -0
  1153. package/esm/NumberInput/index.js +8 -0
  1154. package/esm/NumberInput/utils/number.d.ts +17 -0
  1155. package/esm/NumberInput/utils/number.js +59 -0
  1156. package/esm/Pagination/LimitPicker.d.ts +2 -2
  1157. package/esm/Pagination/LimitPicker.js +0 -0
  1158. package/esm/Pagination/Pagination.d.ts +2 -2
  1159. package/esm/Pagination/Pagination.js +1 -2
  1160. package/esm/Pagination/PaginationButton.js +0 -0
  1161. package/esm/Pagination/PaginationGroup.js +1 -2
  1162. package/esm/Pagination/index.js +0 -0
  1163. package/esm/Panel/AccordionButton.js +0 -0
  1164. package/esm/Panel/Panel.js +1 -2
  1165. package/esm/Panel/PanelBody.js +0 -0
  1166. package/esm/Panel/PanelHeader.js +0 -0
  1167. package/esm/Panel/index.js +0 -0
  1168. package/esm/PanelGroup/PanelGroup.js +1 -2
  1169. package/esm/PanelGroup/index.js +0 -0
  1170. package/esm/PasswordInput/PasswordInput.d.ts +18 -0
  1171. package/esm/PasswordInput/PasswordInput.js +67 -0
  1172. package/esm/PasswordInput/index.d.ts +4 -0
  1173. package/esm/PasswordInput/index.js +8 -0
  1174. package/esm/PasswordStrengthMeter/PasswordStrengthMeter.d.ts +12 -0
  1175. package/esm/PasswordStrengthMeter/PasswordStrengthMeter.js +44 -0
  1176. package/esm/PasswordStrengthMeter/index.d.ts +4 -0
  1177. package/esm/PasswordStrengthMeter/index.js +8 -0
  1178. package/esm/PinInput/PinInput.d.ts +36 -0
  1179. package/esm/PinInput/PinInput.js +219 -0
  1180. package/esm/PinInput/hooks/usePinInputRefs.d.ts +12 -0
  1181. package/esm/PinInput/hooks/usePinInputRefs.js +58 -0
  1182. package/esm/PinInput/hooks/usePinValue.d.ts +14 -0
  1183. package/esm/PinInput/hooks/usePinValue.js +69 -0
  1184. package/esm/PinInput/index.d.ts +4 -0
  1185. package/esm/PinInput/index.js +4 -0
  1186. package/esm/Placeholder/Placeholder.js +0 -0
  1187. package/esm/Placeholder/PlaceholderGraph.js +1 -2
  1188. package/esm/Placeholder/PlaceholderGrid.js +1 -2
  1189. package/esm/Placeholder/PlaceholderParagraph.js +1 -2
  1190. package/esm/Placeholder/index.js +0 -0
  1191. package/esm/Popover/Popover.js +1 -2
  1192. package/esm/Popover/index.js +0 -0
  1193. package/esm/Progress/Progress.js +0 -0
  1194. package/esm/Progress/ProgressCircle.js +1 -2
  1195. package/esm/Progress/ProgressLine.js +1 -2
  1196. package/esm/Progress/index.js +0 -0
  1197. package/esm/Radio/Radio.js +1 -2
  1198. package/esm/Radio/index.js +0 -0
  1199. package/esm/RadioGroup/RadioGroup.js +1 -2
  1200. package/esm/RadioGroup/index.js +0 -0
  1201. package/esm/RadioTile/RadioTile.js +1 -2
  1202. package/esm/RadioTile/index.js +0 -0
  1203. package/esm/RadioTileGroup/RadioTileGroup.js +1 -2
  1204. package/esm/RadioTileGroup/index.js +0 -0
  1205. package/esm/RangeSlider/RangeSlider.js +1 -2
  1206. package/esm/RangeSlider/index.js +0 -0
  1207. package/esm/Rate/Character.d.ts +4 -3
  1208. package/esm/Rate/Character.js +20 -16
  1209. package/esm/Rate/Rate.d.ts +10 -2
  1210. package/esm/Rate/Rate.js +50 -44
  1211. package/esm/Rate/index.js +0 -0
  1212. package/esm/Rate/types.d.ts +8 -0
  1213. package/esm/{CustomProvider → Rate}/types.js +0 -0
  1214. package/esm/Rate/useRatingStates.d.ts +20 -0
  1215. package/esm/Rate/useRatingStates.js +43 -0
  1216. package/esm/Rate/utils.d.ts +14 -3
  1217. package/esm/Rate/utils.js +46 -7
  1218. package/esm/Row/index.js +0 -0
  1219. package/esm/Schema/Schema.js +0 -0
  1220. package/esm/Schema/index.js +0 -0
  1221. package/esm/SelectPicker/SelectPicker.js +1 -2
  1222. package/esm/SelectPicker/index.js +0 -0
  1223. package/esm/Sidebar/Sidebar.js +1 -2
  1224. package/esm/Sidebar/index.js +0 -0
  1225. package/esm/Sidenav/ExpandedSidenavDropdown.js +0 -0
  1226. package/esm/Sidenav/ExpandedSidenavDropdownItem.js +0 -0
  1227. package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +1 -2
  1228. package/esm/Sidenav/Sidenav.js +1 -2
  1229. package/esm/Sidenav/SidenavBody.js +0 -0
  1230. package/esm/Sidenav/SidenavDropdown.js +0 -0
  1231. package/esm/Sidenav/SidenavDropdownCollapse.js +0 -0
  1232. package/esm/Sidenav/SidenavDropdownItem.js +0 -0
  1233. package/esm/Sidenav/SidenavDropdownMenu.js +1 -2
  1234. package/esm/Sidenav/SidenavDropdownToggle.js +0 -0
  1235. package/esm/Sidenav/SidenavFooter.js +0 -0
  1236. package/esm/Sidenav/SidenavGroupLabel.js +0 -0
  1237. package/esm/Sidenav/SidenavHeader.js +0 -0
  1238. package/esm/Sidenav/SidenavItem.js +0 -0
  1239. package/esm/Sidenav/SidenavToggle.js +0 -0
  1240. package/esm/Sidenav/index.js +0 -0
  1241. package/esm/Slider/Graduated.js +0 -0
  1242. package/esm/Slider/Handle.js +0 -0
  1243. package/esm/Slider/Input.js +0 -0
  1244. package/esm/Slider/Mark.js +0 -0
  1245. package/esm/Slider/ProgressBar.js +0 -0
  1246. package/esm/Slider/Slider.d.ts +5 -1
  1247. package/esm/Slider/Slider.js +12 -13
  1248. package/esm/Slider/index.js +0 -0
  1249. package/esm/Slider/useDrag.js +0 -0
  1250. package/esm/Stack/HStack.js +0 -0
  1251. package/esm/Stack/Stack.js +1 -2
  1252. package/esm/Stack/StackItem.js +0 -0
  1253. package/esm/Stack/VStack.js +0 -0
  1254. package/esm/Stack/index.js +0 -0
  1255. package/esm/Stat/Stat.js +1 -2
  1256. package/esm/Stat/StatHelpText.js +0 -0
  1257. package/esm/Stat/StatLabel.js +0 -0
  1258. package/esm/Stat/StatTrend.js +0 -0
  1259. package/esm/Stat/StatValue.js +1 -1
  1260. package/esm/Stat/StatValueUnit.js +0 -0
  1261. package/esm/Stat/index.js +0 -0
  1262. package/esm/StatGroup/StatGroup.js +1 -2
  1263. package/esm/StatGroup/index.js +0 -0
  1264. package/esm/Steps/StepItem.js +0 -0
  1265. package/esm/Steps/Steps.js +1 -2
  1266. package/esm/Steps/index.js +0 -0
  1267. package/esm/Table/Table.js +1 -1
  1268. package/esm/Table/index.js +0 -0
  1269. package/esm/Tabs/Tab.js +0 -0
  1270. package/esm/Tabs/TabPanel.js +0 -0
  1271. package/esm/Tabs/Tabs.js +1 -2
  1272. package/esm/Tabs/index.js +0 -0
  1273. package/esm/Tag/Tag.js +1 -2
  1274. package/esm/Tag/index.js +0 -0
  1275. package/esm/TagGroup/TagGroup.js +0 -0
  1276. package/esm/TagGroup/index.js +0 -0
  1277. package/esm/TagInput/TagInput.js +1 -1
  1278. package/esm/TagInput/index.js +0 -0
  1279. package/esm/TagPicker/TagPicker.js +1 -1
  1280. package/esm/TagPicker/index.js +0 -0
  1281. package/esm/Text/Text.js +1 -2
  1282. package/esm/Text/index.js +0 -0
  1283. package/esm/Textarea/Textarea.d.ts +32 -0
  1284. package/esm/Textarea/Textarea.js +45 -0
  1285. package/esm/Textarea/index.d.ts +4 -0
  1286. package/esm/Textarea/index.js +8 -0
  1287. package/esm/TimePicker/TimePicker.d.ts +1 -2
  1288. package/esm/TimePicker/TimePicker.js +1 -1
  1289. package/esm/TimePicker/index.js +0 -0
  1290. package/esm/TimeRangePicker/TimeRangePicker.js +1 -1
  1291. package/esm/TimeRangePicker/index.js +0 -0
  1292. package/esm/Timeline/Timeline.js +1 -2
  1293. package/esm/Timeline/TimelineItem.js +0 -0
  1294. package/esm/Timeline/index.js +0 -0
  1295. package/esm/Toggle/Toggle.d.ts +1 -0
  1296. package/esm/Toggle/Toggle.js +1 -2
  1297. package/esm/Toggle/index.js +0 -0
  1298. package/esm/Tooltip/Tooltip.js +1 -2
  1299. package/esm/Tooltip/index.js +0 -0
  1300. package/esm/Tree/IndentLine.js +0 -0
  1301. package/esm/Tree/Tree.js +1 -2
  1302. package/esm/Tree/TreeNode.js +1 -2
  1303. package/esm/Tree/TreeNodeToggle.js +1 -2
  1304. package/esm/Tree/TreeView.js +1 -2
  1305. package/esm/Tree/hooks/useFlattenTree.js +0 -0
  1306. package/esm/Tree/hooks/useFocusTree.js +1 -2
  1307. package/esm/Tree/hooks/useTreeNodeRefs.js +0 -0
  1308. package/esm/Tree/hooks/useTreeSearch.js +0 -0
  1309. package/esm/Tree/index.js +0 -0
  1310. package/esm/Tree/types.js +0 -0
  1311. package/esm/TreePicker/TreePicker.js +1 -2
  1312. package/esm/TreePicker/hooks/useFocusState.js +0 -0
  1313. package/esm/TreePicker/index.js +0 -0
  1314. package/esm/Uploader/UploadFileItem.js +0 -0
  1315. package/esm/Uploader/UploadTrigger.js +0 -0
  1316. package/esm/Uploader/Uploader.js +1 -2
  1317. package/esm/Uploader/index.js +0 -0
  1318. package/esm/Uploader/utils/ajaxUpload.js +0 -0
  1319. package/esm/VisuallyHidden/VisuallyHidden.js +0 -0
  1320. package/esm/VisuallyHidden/index.js +0 -0
  1321. package/esm/Whisper/Whisper.js +1 -1
  1322. package/esm/Whisper/index.js +0 -0
  1323. package/esm/index.d.ts +5 -0
  1324. package/esm/index.js +5 -0
  1325. package/esm/internals/Box/Box.js +0 -0
  1326. package/esm/internals/Box/index.d.ts +1 -0
  1327. package/esm/internals/Box/index.js +1 -0
  1328. package/esm/internals/Box/utils.js +0 -0
  1329. package/esm/internals/Burger/Burger.d.ts +16 -0
  1330. package/esm/internals/Burger/Burger.js +41 -0
  1331. package/esm/internals/Burger/index.d.ts +4 -0
  1332. package/esm/internals/Burger/index.js +8 -0
  1333. package/esm/internals/CloseButton/CloseButton.js +1 -2
  1334. package/esm/internals/Disclosure/Disclosure.js +0 -0
  1335. package/esm/internals/InputBase/InputBase.d.ts +45 -0
  1336. package/esm/internals/InputBase/InputBase.js +89 -0
  1337. package/esm/internals/InputBase/index.d.ts +3 -0
  1338. package/esm/internals/InputBase/index.js +3 -0
  1339. package/esm/internals/Menu/Menu.js +1 -1
  1340. package/esm/internals/Menu/MenuItem.js +0 -0
  1341. package/esm/internals/Menu/Menubar.js +1 -1
  1342. package/esm/internals/Menu/useMenu.js +0 -0
  1343. package/esm/internals/Menu/useRenderMenuItem.js +0 -0
  1344. package/esm/internals/Overlay/Modal.js +0 -0
  1345. package/esm/internals/Overlay/Overlay.js +0 -0
  1346. package/esm/internals/Overlay/OverlayProvider.js +0 -0
  1347. package/esm/internals/Overlay/OverlayTrigger.js +0 -0
  1348. package/esm/internals/Overlay/Position.js +0 -0
  1349. package/esm/internals/Overlay/index.js +0 -0
  1350. package/esm/internals/Overlay/positionUtils.js +0 -0
  1351. package/esm/internals/Overlay/types.js +0 -0
  1352. package/esm/internals/Picker/ListCheckItem.js +0 -0
  1353. package/esm/internals/Picker/ListItem.js +0 -0
  1354. package/esm/internals/Picker/ListItemGroup.js +0 -0
  1355. package/esm/internals/Picker/Listbox.js +0 -0
  1356. package/esm/internals/Picker/PickerDrawer.js +0 -0
  1357. package/esm/internals/Picker/PickerIndicator.js +1 -2
  1358. package/esm/internals/Picker/PickerPopup.js +0 -0
  1359. package/esm/internals/Picker/PickerToggle.js +0 -0
  1360. package/esm/internals/Picker/PickerToggleTrigger.js +0 -0
  1361. package/esm/internals/Picker/SelectedElement.js +0 -0
  1362. package/esm/internals/Picker/ToggleButton.js +0 -0
  1363. package/esm/internals/Picker/hooks/index.js +0 -0
  1364. package/esm/internals/Picker/hooks/useCombobox.d.ts +1 -1
  1365. package/esm/internals/Picker/hooks/useCombobox.js +0 -0
  1366. package/esm/internals/Picker/hooks/useFocusItemValue.js +0 -0
  1367. package/esm/internals/Picker/hooks/usePickerRef.js +0 -0
  1368. package/esm/internals/Picker/index.js +0 -0
  1369. package/esm/internals/Picker/types.js +0 -0
  1370. package/esm/internals/Plaintext/Plaintext.js +1 -2
  1371. package/esm/internals/Provider/CustomContext.d.ts +253 -0
  1372. package/esm/internals/Provider/CustomContext.js +3 -0
  1373. package/esm/internals/Provider/types.d.ts +236 -0
  1374. package/esm/internals/Provider/types.js +2 -0
  1375. package/esm/internals/Ripple/Ripple.js +1 -2
  1376. package/esm/internals/SafeAnchor/SafeAnchor.js +1 -1
  1377. package/esm/internals/SafeAnchor/index.js +0 -0
  1378. package/esm/internals/ScrollView/ScrollView.js +0 -0
  1379. package/esm/internals/SearchBox/SearchBox.js +0 -0
  1380. package/esm/internals/StyledBox/StyledBox.js +0 -0
  1381. package/esm/internals/StyledBox/index.js +0 -0
  1382. package/esm/internals/Tree/TreeView.js +0 -0
  1383. package/esm/internals/Tree/utils/getPathTowardsItem.js +0 -0
  1384. package/esm/internals/Windowing/AutoSizer.js +0 -0
  1385. package/esm/internals/Windowing/List.js +1 -1
  1386. package/esm/internals/constants/index.js +0 -0
  1387. package/esm/internals/hooks/index.d.ts +1 -0
  1388. package/esm/internals/hooks/index.js +1 -0
  1389. package/esm/{CustomProvider → internals/hooks}/useCustom.d.ts +4 -4
  1390. package/esm/{CustomProvider → internals/hooks}/useCustom.js +4 -4
  1391. package/esm/internals/hooks/useElementResize.js +0 -0
  1392. package/esm/internals/hooks/useEnsuredRef.js +0 -0
  1393. package/esm/internals/hooks/useFocus.js +0 -0
  1394. package/esm/internals/hooks/useInternalId.js +0 -0
  1395. package/esm/internals/hooks/usePortal.js +0 -0
  1396. package/esm/internals/hooks/useRootClose.js +0 -0
  1397. package/esm/internals/hooks/useStyles.js +1 -1
  1398. package/esm/internals/hooks/useTimeout.js +0 -0
  1399. package/esm/internals/hooks/useToggleCaret.js +1 -1
  1400. package/esm/internals/hooks/useUniqueId.js +0 -0
  1401. package/esm/internals/hooks/useUpdateEffect.js +0 -0
  1402. package/esm/internals/hooks/useWillUnmount.js +0 -0
  1403. package/esm/internals/index.d.ts +4 -0
  1404. package/esm/internals/index.js +5 -0
  1405. package/esm/{CustomProvider → internals/intl}/FormattedDate.js +1 -1
  1406. package/esm/{CustomProvider → internals/intl}/FormattedNumber.js +1 -1
  1407. package/esm/internals/symbols.js +0 -0
  1408. package/esm/internals/types/animation.js +0 -0
  1409. package/esm/internals/types/colours.js +0 -0
  1410. package/esm/internals/types/date.js +0 -0
  1411. package/esm/internals/types/dom.js +0 -0
  1412. package/esm/internals/types/form.js +0 -0
  1413. package/esm/internals/types/html.d.ts +2 -0
  1414. package/esm/internals/types/html.js +0 -0
  1415. package/esm/internals/types/index.js +0 -0
  1416. package/esm/internals/types/picker.d.ts +2 -2
  1417. package/esm/internals/types/picker.js +0 -0
  1418. package/esm/internals/types/placement.js +0 -0
  1419. package/esm/internals/types/shared.js +0 -0
  1420. package/esm/internals/types/sizes.d.ts +2 -0
  1421. package/esm/internals/types/sizes.js +3 -1
  1422. package/esm/internals/types/utils.js +0 -0
  1423. package/esm/internals/utils/BrowserDetection.js +0 -0
  1424. package/esm/internals/utils/colours.js +0 -0
  1425. package/esm/internals/utils/date/copyTime.js +0 -0
  1426. package/esm/internals/utils/date/disableTime.js +0 -0
  1427. package/esm/internals/utils/date/getWeekStartDates.d.ts +0 -1
  1428. package/esm/internals/utils/date/getWeekStartDates.js +2 -4
  1429. package/esm/internals/utils/date/index.js +0 -0
  1430. package/esm/internals/utils/html/dom.js +0 -0
  1431. package/esm/internals/utils/html/events.js +0 -0
  1432. package/esm/internals/utils/html/htmlPropsUtils.js +0 -0
  1433. package/esm/internals/utils/html/index.js +0 -0
  1434. package/esm/internals/utils/html/safeSetSelection.js +0 -0
  1435. package/esm/internals/utils/index.js +0 -0
  1436. package/esm/internals/utils/placement.js +0 -0
  1437. package/esm/internals/utils/react/ReactChildren.js +0 -0
  1438. package/esm/internals/utils/react/ReactIs.js +0 -0
  1439. package/esm/internals/utils/react/createComponent.js +12 -2
  1440. package/esm/internals/utils/react/deprecateComponent.js +0 -0
  1441. package/esm/internals/utils/react/forwardRef.js +0 -0
  1442. package/esm/internals/utils/react/getDOMNode.js +0 -0
  1443. package/esm/internals/utils/react/index.js +0 -0
  1444. package/esm/internals/utils/react/mergeRefs.js +0 -0
  1445. package/esm/internals/utils/sizes.js +0 -0
  1446. package/esm/internals/utils/string/getSafeRegExpString.js +0 -0
  1447. package/esm/internals/utils/string/getStringLength.js +0 -0
  1448. package/esm/internals/utils/string/index.js +0 -0
  1449. package/esm/internals/utils/string/stringifyReactNode.js +0 -0
  1450. package/esm/internals/utils/string/tplTransform.js +0 -0
  1451. package/esm/internals/utils/style-sheet/css.js +0 -0
  1452. package/esm/internals/utils/style-sheet/index.js +0 -0
  1453. package/esm/internals/utils/style-sheet/prefix.js +0 -0
  1454. package/esm/internals/utils/style-sheet/responsive.js +0 -0
  1455. package/esm/internals/utils/style-sheet/styles.js +0 -0
  1456. package/esm/locales/ar_EG.js +0 -0
  1457. package/esm/locales/ca_ES.js +0 -0
  1458. package/esm/locales/cs_CZ.js +0 -0
  1459. package/esm/locales/da_DK.js +0 -0
  1460. package/esm/locales/de_DE.js +0 -0
  1461. package/esm/locales/en_GB.js +0 -0
  1462. package/esm/locales/en_US.js +0 -0
  1463. package/esm/locales/es_AR.js +0 -0
  1464. package/esm/locales/es_ES.js +0 -0
  1465. package/esm/locales/fa_IR.js +0 -0
  1466. package/esm/locales/fi_FI.js +0 -0
  1467. package/esm/locales/fr_FR.js +0 -0
  1468. package/esm/locales/hu_HU.js +0 -0
  1469. package/esm/locales/it_IT.js +0 -0
  1470. package/esm/locales/ja_JP.js +0 -0
  1471. package/esm/locales/kk_KZ.js +0 -0
  1472. package/esm/locales/ko_KR.js +0 -0
  1473. package/esm/locales/ne_NP.js +0 -0
  1474. package/esm/locales/nl_NL.js +0 -0
  1475. package/esm/locales/pl_PL.js +0 -0
  1476. package/esm/locales/pt_BR.js +0 -0
  1477. package/esm/locales/ru_RU.js +0 -0
  1478. package/esm/locales/sv_SE.js +0 -0
  1479. package/esm/locales/tr_TR.js +0 -0
  1480. package/esm/locales/zh_CN.js +0 -0
  1481. package/esm/locales/zh_TW.js +0 -0
  1482. package/esm/toaster/ToastContainer.js +0 -0
  1483. package/esm/toaster/hooks/useDelayedClosure.js +0 -0
  1484. package/esm/toaster/index.js +0 -0
  1485. package/esm/toaster/render.js +0 -0
  1486. package/esm/toaster/toaster.js +0 -0
  1487. package/esm/useBreakpointValue/index.js +0 -0
  1488. package/esm/useBreakpointValue/useBreakpointValue.d.ts +1 -1
  1489. package/esm/useBreakpointValue/useBreakpointValue.js +1 -1
  1490. package/esm/useMediaQuery/breakpoints.js +0 -0
  1491. package/esm/useMediaQuery/index.js +0 -0
  1492. package/esm/useMediaQuery/types.js +0 -0
  1493. package/esm/useMediaQuery/useMediaQuery.js +0 -0
  1494. package/esm/useToaster/index.js +0 -0
  1495. package/esm/useToaster/useToaster.js +1 -3
  1496. package/internals/Box/styles/index.less +0 -0
  1497. package/internals/Burger/styles/index.less +67 -0
  1498. package/internals/CloseButton/styles/index.less +0 -10
  1499. package/internals/Picker/styles/index.less +13 -10
  1500. package/internals/Picker/styles/mixin.less +3 -3
  1501. package/internals/Ripple/styles/index.less +0 -0
  1502. package/internals/ScrollView/styles/index.less +0 -0
  1503. package/package.json +4 -3
  1504. package/styles/color-modes/dark.less +8 -11
  1505. package/styles/color-modes/high-contrast.less +5 -8
  1506. package/styles/color-modes/light.less +6 -9
  1507. package/styles/common.less +0 -0
  1508. package/styles/index.less +5 -1
  1509. package/styles/mixins/combobox.less +0 -0
  1510. package/styles/mixins/hacks.less +0 -0
  1511. package/styles/mixins/listbox.less +0 -0
  1512. package/styles/mixins/utilities.less +2 -5
  1513. package/styles/normalize.less +0 -0
  1514. package/styles/root.less +0 -0
  1515. package/styles/scaffolding.less +0 -0
  1516. package/styles/typography.less +0 -0
  1517. package/styles/variables.less +0 -0
  1518. package/toaster/styles/index.css +0 -0
  1519. package/toaster/styles/index.less +0 -0
  1520. package/cjs/CustomProvider/types.d.ts +0 -228
  1521. package/cjs/InputNumber/InputNumber.js +0 -300
  1522. package/esm/CustomProvider/types.d.ts +0 -228
  1523. package/esm/InputNumber/InputNumber.js +0 -293
  1524. /package/cjs/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
  1525. /package/cjs/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
  1526. /package/esm/{CustomProvider → internals/intl}/FormattedDate.d.ts +0 -0
  1527. /package/esm/{CustomProvider → internals/intl}/FormattedNumber.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import { type SelectPickerProps } from '../SelectPicker';
2
2
  import { PaginationLocale } from '../locales';
3
- import type { OnChangeCallback, Size } from '../internals/types';
3
+ import type { OnChangeCallback, BasicSize } from '../internals/types';
4
4
  interface LimitPickerProps extends Omit<SelectPickerProps<any>, 'locale' | 'disabled' | 'data'> {
5
5
  disabled?: boolean | ((eventKey: number | string) => boolean);
6
6
  limitOptions: number[];
7
7
  locale: PaginationLocale;
8
8
  limit: number;
9
- size?: Size;
9
+ size?: BasicSize;
10
10
  prefix: (input: string) => string;
11
11
  onChangeLimit: OnChangeCallback<any>;
12
12
  }
File without changes
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../internals/Box';
3
- import type { Size } from '../internals/types';
3
+ import type { BasicSize } from '../internals/types';
4
4
  import type { PaginationLocale } from '../locales';
5
5
  export interface PaginationProps extends BoxProps {
6
6
  /** Current page number */
@@ -30,7 +30,7 @@ export interface PaginationProps extends BoxProps {
30
30
  /** Custom locale */
31
31
  locale?: PaginationLocale;
32
32
  /** A pagination can have different sizes */
33
- size?: Size;
33
+ size?: BasicSize;
34
34
  /** callback function for pagination clicked */
35
35
  onSelect?: (eventKey: string | number, event: React.MouseEvent) => void;
36
36
  }
@@ -15,7 +15,6 @@ var _PaginationButton = _interopRequireDefault(require("./PaginationButton"));
15
15
  var _Box = _interopRequireDefault(require("../internals/Box"));
16
16
  var _utils = require("../internals/utils");
17
17
  var _hooks = require("../internals/hooks");
18
- var _CustomProvider = require("../CustomProvider");
19
18
  const icons = {
20
19
  more: /*#__PURE__*/_react.default.createElement(_More.default, null),
21
20
  first: /*#__PURE__*/_react.default.createElement(_PageTop.default, null),
@@ -31,7 +30,7 @@ const icons = {
31
30
  const Pagination = (0, _utils.forwardRef)((props, ref) => {
32
31
  const {
33
32
  propsWithDefaults
34
- } = (0, _CustomProvider.useCustom)('Pagination', props);
33
+ } = (0, _hooks.useCustom)('Pagination', props);
35
34
  const {
36
35
  as,
37
36
  className,
File without changes
@@ -14,7 +14,6 @@ var _LimitPicker = _interopRequireDefault(require("./LimitPicker"));
14
14
  var _Box = _interopRequireDefault(require("../internals/Box"));
15
15
  var _hooks = require("../internals/hooks");
16
16
  var _utils = require("../internals/utils");
17
- var _CustomProvider = require("../CustomProvider");
18
17
  /**
19
18
  * The layout of the paging component.
20
19
  */
@@ -61,7 +60,7 @@ const PaginationGroup = (0, _utils.forwardRef)((props, ref) => {
61
60
  const classes = merge(className, withPrefix(size));
62
61
  const {
63
62
  getLocale
64
- } = (0, _CustomProvider.useCustom)();
63
+ } = (0, _hooks.useCustom)();
65
64
  const locale = getLocale('Pagination', localeProp);
66
65
  const handleInputBlur = (0, _hooks.useEventCallback)(event => {
67
66
  const value = parseInt(event.target.value);
File without changes
File without changes
@@ -12,7 +12,6 @@ var _useExpanded = _interopRequireDefault(require("./hooks/useExpanded"));
12
12
  var _Box = _interopRequireDefault(require("../internals/Box"));
13
13
  var _utils = require("../internals/utils");
14
14
  var _hooks = require("../internals/hooks");
15
- var _CustomProvider = require("../CustomProvider");
16
15
  var _PanelGroup = require("../PanelGroup");
17
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -23,7 +22,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
23
22
  const Panel = (0, _utils.forwardRef)((props, ref) => {
24
23
  const {
25
24
  propsWithDefaults
26
- } = (0, _CustomProvider.useCustom)('Panel', props);
25
+ } = (0, _hooks.useCustom)('Panel', props);
27
26
  const {
28
27
  as,
29
28
  bodyFill,
File without changes
File without changes
File without changes
@@ -9,7 +9,6 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _Box = _interopRequireDefault(require("../internals/Box"));
10
10
  var _utils = require("../internals/utils");
11
11
  var _hooks = require("../internals/hooks");
12
- var _CustomProvider = require("../CustomProvider");
13
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
14
  const PanelGroupContext = exports.PanelGroupContext = /*#__PURE__*/_react.default.createContext({});
@@ -21,7 +20,7 @@ const PanelGroupContext = exports.PanelGroupContext = /*#__PURE__*/_react.defaul
21
20
  const PanelGroup = (0, _utils.forwardRef)((props, ref) => {
22
21
  const {
23
22
  propsWithDefaults
24
- } = (0, _CustomProvider.useCustom)('PanelGroup', props);
23
+ } = (0, _hooks.useCustom)('PanelGroup', props);
25
24
  const {
26
25
  as,
27
26
  accordion,
File without changes
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { InputProps } from '../Input';
3
+ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'plaintext'> {
4
+ /** Controls whether the password is visible */
5
+ visible?: boolean;
6
+ /** Default visibility state of the password */
7
+ defaultVisible?: boolean;
8
+ /** The icon element to display before the input field */
9
+ startIcon?: React.ReactNode;
10
+ /** The icon element to display after the input field */
11
+ endIcon?: React.ReactNode;
12
+ /** Custom icon for visibility toggle */
13
+ renderVisibilityIcon?: (visible: boolean) => React.ReactNode;
14
+ /** Callback function triggered when the password visibility changes */
15
+ onVisibleChange?: (visible: boolean) => void;
16
+ }
17
+ declare const PasswordInput: import("../internals/types").InternalRefForwardingComponent<"input", PasswordInputProps, never> & Record<string, never>;
18
+ export default PasswordInput;
@@ -0,0 +1,72 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _Input = _interopRequireDefault(require("../Input"));
10
+ var _InputGroup = _interopRequireDefault(require("../InputGroup"));
11
+ var _EyeClose = _interopRequireDefault(require("@rsuite/icons/EyeClose"));
12
+ var _Visible = _interopRequireDefault(require("@rsuite/icons/Visible"));
13
+ var _utils = require("../internals/utils");
14
+ var _hooks = require("../internals/hooks");
15
+ const PasswordInput = (0, _utils.forwardRef)((props, ref) => {
16
+ const {
17
+ propsWithDefaults
18
+ } = (0, _hooks.useCustom)('PasswordInput', props);
19
+ const {
20
+ classPrefix = 'password-input',
21
+ className,
22
+ visible: controlVisible,
23
+ size,
24
+ defaultVisible,
25
+ value,
26
+ defaultValue,
27
+ placeholder,
28
+ id,
29
+ name,
30
+ readOnly,
31
+ inputRef,
32
+ startIcon,
33
+ endIcon,
34
+ onChange,
35
+ onVisibleChange,
36
+ renderVisibilityIcon,
37
+ ...rest
38
+ } = propsWithDefaults;
39
+ const {
40
+ withPrefix,
41
+ merge
42
+ } = (0, _hooks.useStyles)(classPrefix);
43
+ const [visible, setVisible] = (0, _hooks.useControlled)(controlVisible, defaultVisible);
44
+ const classes = merge(className, withPrefix());
45
+ const handleToggleVisibility = (0, _hooks.useEventCallback)(() => {
46
+ setVisible(!visible);
47
+ onVisibleChange === null || onVisibleChange === void 0 || onVisibleChange(!visible);
48
+ });
49
+ return /*#__PURE__*/_react.default.createElement(_InputGroup.default, (0, _extends2.default)({
50
+ inside: true,
51
+ ref: ref,
52
+ size: size,
53
+ className: classes
54
+ }, rest), startIcon && /*#__PURE__*/_react.default.createElement(_InputGroup.default.Addon, null, startIcon), /*#__PURE__*/_react.default.createElement(_Input.default, {
55
+ type: visible ? 'text' : 'password',
56
+ value: value,
57
+ defaultValue: defaultValue,
58
+ onChange: onChange,
59
+ autoComplete: "off",
60
+ placeholder: placeholder,
61
+ readOnly: readOnly,
62
+ name: name,
63
+ id: id,
64
+ inputRef: inputRef
65
+ }), endIcon ? /*#__PURE__*/_react.default.createElement(_InputGroup.default.Addon, null, endIcon) : /*#__PURE__*/_react.default.createElement(_InputGroup.default.Button, {
66
+ tabIndex: -1,
67
+ onClick: handleToggleVisibility,
68
+ "aria-label": "Toggle password visibility"
69
+ }, (renderVisibilityIcon === null || renderVisibilityIcon === void 0 ? void 0 : renderVisibilityIcon(visible !== null && visible !== void 0 ? visible : false)) || (visible ? /*#__PURE__*/_react.default.createElement(_EyeClose.default, null) : /*#__PURE__*/_react.default.createElement(_Visible.default, null))));
70
+ });
71
+ PasswordInput.displayName = 'PasswordInput';
72
+ var _default = exports.default = PasswordInput;
@@ -0,0 +1,4 @@
1
+ import PasswordInput from './PasswordInput';
2
+ export type { PasswordInputProps } from './PasswordInput';
3
+ export { PasswordInput };
4
+ export default PasswordInput;
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _PasswordInput = _interopRequireDefault(require("./PasswordInput"));
8
+ exports.PasswordInput = _PasswordInput.default;
9
+ // export types
10
+ // export components
11
+ var _default = exports.default = _PasswordInput.default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../internals/Box';
3
+ export interface PasswordStrengthMeterProps extends BoxProps {
4
+ /** The strength level of the password (0-3) */
5
+ level?: 0 | 1 | 2 | 3;
6
+ /** Label to display below the strength meter */
7
+ label?: React.ReactNode;
8
+ /** Maximum number of segments in the strength meter */
9
+ max?: number;
10
+ }
11
+ declare const PasswordStrengthMeter: import("../internals/types").InternalRefForwardingComponent<"div", PasswordStrengthMeterProps, never> & Record<string, never>;
12
+ export default PasswordStrengthMeter;
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _Box = _interopRequireDefault(require("../internals/Box"));
10
+ var _Text = _interopRequireDefault(require("../Text"));
11
+ var _utils = require("../internals/utils");
12
+ var _hooks = require("../internals/hooks");
13
+ const PasswordStrengthMeter = (0, _utils.forwardRef)((props, ref) => {
14
+ const {
15
+ propsWithDefaults
16
+ } = (0, _hooks.useCustom)('PasswordStrengthMeter', props);
17
+ const {
18
+ classPrefix = 'password-strength-meter',
19
+ className,
20
+ level = 0,
21
+ max = 4,
22
+ label,
23
+ ...rest
24
+ } = propsWithDefaults;
25
+ const {
26
+ withPrefix,
27
+ merge,
28
+ prefix
29
+ } = (0, _hooks.useStyles)(classPrefix);
30
+ const classes = merge(className, withPrefix());
31
+ return /*#__PURE__*/_react.default.createElement(_Box.default, (0, _extends2.default)({
32
+ ref: ref,
33
+ className: classes
34
+ }, rest), /*#__PURE__*/_react.default.createElement("div", {
35
+ className: prefix('bar')
36
+ }, [...Array.from({
37
+ length: max
38
+ })].map((_, idx) => /*#__PURE__*/_react.default.createElement("div", {
39
+ key: idx,
40
+ "data-active": idx <= level,
41
+ className: prefix('segment')
42
+ }))), label && /*#__PURE__*/_react.default.createElement(_Text.default, {
43
+ as: "span",
44
+ muted: true,
45
+ size: "xs"
46
+ }, label));
47
+ });
48
+ PasswordStrengthMeter.displayName = 'PasswordStrengthMeter';
49
+ var _default = exports.default = PasswordStrengthMeter;
@@ -0,0 +1,4 @@
1
+ import PasswordStrengthMeter from './PasswordStrengthMeter';
2
+ export type { PasswordStrengthMeterProps } from './PasswordStrengthMeter';
3
+ export { PasswordStrengthMeter };
4
+ export default PasswordStrengthMeter;
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _PasswordStrengthMeter = _interopRequireDefault(require("./PasswordStrengthMeter"));
8
+ exports.PasswordStrengthMeter = _PasswordStrengthMeter.default;
9
+ // export types
10
+ // export components
11
+ var _default = exports.default = _PasswordStrengthMeter.default;
@@ -0,0 +1,36 @@
1
+ import { BoxProps } from '../internals/Box';
2
+ import type { BasicSize } from '../internals/types';
3
+ export interface PinInputProps extends BoxProps {
4
+ /** Whether input fields are attached (no gap between) */
5
+ attached?: boolean;
6
+ /** Whether to auto-focus the first input on mount */
7
+ autoFocus?: boolean;
8
+ /** Type of allowed input: number, alphabetic, alphanumeric, or custom regex */
9
+ type?: 'number' | 'alphabetic' | 'alphanumeric' | RegExp;
10
+ /** Default PIN value */
11
+ defaultValue?: string;
12
+ /** Whether to disable PIN input */
13
+ disabled?: boolean;
14
+ /** Number of PIN digits */
15
+ length?: number;
16
+ /** Whether to mask PIN input (like password) */
17
+ mask?: boolean;
18
+ /** Name for form submission */
19
+ name?: string;
20
+ /** Whether to optimize for one-time password (OTP) input */
21
+ otp?: boolean;
22
+ /** Placeholder for input fields */
23
+ placeholder?: string;
24
+ /** Whether the input is read-only */
25
+ readOnly?: boolean;
26
+ /** Input size */
27
+ size?: BasicSize;
28
+ /** PIN value */
29
+ value?: string;
30
+ /** Callback function when PIN input is completed */
31
+ onComplete?: (value: string) => void;
32
+ /** Callback function when PIN value changes */
33
+ onChange?: (value: string) => void;
34
+ }
35
+ declare const PinInput: import("../internals/types").InternalRefForwardingComponent<"div", PinInputProps, never> & Record<string, never>;
36
+ export default PinInput;
@@ -0,0 +1,224 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _Input = _interopRequireDefault(require("../Input"));
10
+ var _usePinInputRefs = _interopRequireDefault(require("./hooks/usePinInputRefs"));
11
+ var _usePinValue = _interopRequireDefault(require("./hooks/usePinValue"));
12
+ var _Box = require("../internals/Box");
13
+ var _Stack = require("../Stack");
14
+ var _utils = require("../internals/utils");
15
+ var _hooks = require("../internals/hooks");
16
+ /**
17
+ * Map `type` prop to regex for allowed keys
18
+ */
19
+ function getAllowedKeys(type) {
20
+ if (type instanceof RegExp) {
21
+ return type;
22
+ }
23
+ switch (type) {
24
+ case 'alphabetic':
25
+ return /[A-Za-z]/;
26
+ case 'alphanumeric':
27
+ return /[A-Za-z0-9]/;
28
+ default:
29
+ // number and any other fallback
30
+ return /\d/;
31
+ }
32
+ }
33
+ const PinInput = (0, _utils.forwardRef)((props, ref) => {
34
+ const {
35
+ propsWithDefaults
36
+ } = (0, _hooks.useCustom)('PinInput', props);
37
+ const {
38
+ type = 'number',
39
+ as,
40
+ autoFocus,
41
+ attached,
42
+ className,
43
+ classPrefix = 'pin-input',
44
+ defaultValue = '',
45
+ disabled,
46
+ length = 4,
47
+ mask,
48
+ name,
49
+ otp,
50
+ placeholder,
51
+ readOnly,
52
+ size = 'md',
53
+ value: controlValue,
54
+ onChange,
55
+ onComplete,
56
+ ...rest
57
+ } = propsWithDefaults;
58
+
59
+ // Regex for filtering input chars based on type prop
60
+ const allowedKeys = getAllowedKeys(type);
61
+
62
+ // Determine inputMode based on type prop
63
+ const inputModeValue = type === 'number' ? 'numeric' : 'text';
64
+
65
+ // Determine input type attribute based on type prop and mask
66
+ const inputTypeValue = mask ? 'password' : type === 'number' ? 'tel' : 'text';
67
+ const {
68
+ withPrefix,
69
+ prefix,
70
+ merge
71
+ } = (0, _hooks.useStyles)(classPrefix);
72
+
73
+ // Use our custom hook for handling input refs and focus behavior
74
+ const {
75
+ focusInput,
76
+ focusNextInput,
77
+ focusPrevInput,
78
+ getRefSetter
79
+ } = (0, _usePinInputRefs.default)(length, autoFocus);
80
+
81
+ // Use our custom hook for managing PIN values
82
+ const {
83
+ valueArray,
84
+ setDigit,
85
+ clearDigit,
86
+ updateValue
87
+ } = (0, _usePinValue.default)(controlValue, defaultValue, length, onChange, onComplete);
88
+
89
+ // Handle input change
90
+ const handleInputChange = (0, _hooks.useEventCallback)((inputValue, e, index) => {
91
+ // Safety check for event object
92
+ if (!e || !e.target) return;
93
+
94
+ // For single character input, use it directly
95
+ // For longer input (like paste or browser autofill), take the last character
96
+ const char = inputValue.length > 0 ? inputValue.charAt(inputValue.length - 1) : '';
97
+
98
+ // Filter by allowedKeys if provided
99
+ if (!allowedKeys.test(char)) {
100
+ return;
101
+ }
102
+
103
+ // Always allow overwriting the current value
104
+ // Update the value using our hook
105
+ setDigit(index, char);
106
+
107
+ // Focus the next input if we have a character and there's a next input
108
+ if (char && index < length - 1) {
109
+ // Use setTimeout to ensure the focus happens after the current event cycle
110
+ focusNextInput(index);
111
+ }
112
+
113
+ // If this is the last input and a character was entered, keep focus on it
114
+ if (char && index === length - 1) {
115
+ focusInput(index);
116
+ }
117
+ });
118
+
119
+ // Handle key down
120
+ const handleKeyDown = (0, _hooks.useEventCallback)((e, index) => {
121
+ // Safety check for event object
122
+ if (!e) return;
123
+ const target = e.target;
124
+ const inputValue = (target === null || target === void 0 ? void 0 : target.value) || '';
125
+
126
+ // Handle backspace
127
+ if (e.key === 'Backspace') {
128
+ if (inputValue === '') {
129
+ // Focus the previous input if the current one is empty
130
+ if (index > 0) {
131
+ clearDigit(index - 1);
132
+ focusPrevInput(index);
133
+ }
134
+ } else {
135
+ // Clear the current input but keep focus on it
136
+ clearDigit(index);
137
+ }
138
+ }
139
+ // Handle arrow keys
140
+ else if (e.key === 'ArrowLeft') {
141
+ focusPrevInput(index);
142
+ } else if (e.key === 'ArrowRight') {
143
+ focusNextInput(index);
144
+ }
145
+ // Allow only keys matching allowedKeys
146
+ else if (allowedKeys.test(e.key)) {
147
+ setDigit(index, e.key);
148
+
149
+ // Move focus to the next input if there is one
150
+ if (index < length - 1) {
151
+ setTimeout(() => {
152
+ focusNextInput(index);
153
+ }, 10);
154
+ }
155
+ }
156
+ });
157
+
158
+ // Handle paste
159
+ const handlePaste = (0, _hooks.useEventCallback)((e, index) => {
160
+ if (disabled || readOnly) return;
161
+
162
+ // Safety check for event object
163
+ if (!e || !e.clipboardData) return;
164
+ e.preventDefault();
165
+ const pastedData = e.clipboardData.getData('text') || '';
166
+
167
+ // Filter pasted data by allowedKeys
168
+ const filteredData = pastedData.split('').filter(ch => allowedKeys.test(ch)).join('');
169
+ if (filteredData) {
170
+ // Create a new value with pasted characters
171
+ const newValueArray = [...valueArray];
172
+ for (let i = 0; i < filteredData.length && index + i < length; i++) {
173
+ newValueArray[index + i] = filteredData[i];
174
+ }
175
+
176
+ // Update value with our hook
177
+ updateValue(newValueArray.join(''));
178
+
179
+ // Focus the input after the last pasted character or the last input
180
+ // Use setTimeout to ensure focus happens after DOM updates
181
+ const nextIndex = Math.min(index + filteredData.length, length - 1);
182
+ setTimeout(() => {
183
+ focusInput(nextIndex);
184
+ }, 10);
185
+ }
186
+ });
187
+ const classes = merge(className, withPrefix({
188
+ attached
189
+ }));
190
+ return /*#__PURE__*/_react.default.createElement(_Box.Box, (0, _extends2.default)({
191
+ as: as,
192
+ ref: ref,
193
+ className: classes
194
+ }, rest), /*#__PURE__*/_react.default.createElement("input", {
195
+ type: "hidden",
196
+ value: valueArray.join(''),
197
+ name: name,
198
+ "aria-label": "Pin input"
199
+ }), /*#__PURE__*/_react.default.createElement(_Stack.HStack, {
200
+ spacing: attached ? 0 : 8
201
+ }, Array.from({
202
+ length
203
+ }).map((_, index) => /*#__PURE__*/_react.default.createElement(_Input.default, {
204
+ key: index,
205
+ className: prefix('segment', {
206
+ masked: mask
207
+ }),
208
+ size: size,
209
+ value: valueArray[index] || '',
210
+ onChange: (v, e) => handleInputChange(v, e, index),
211
+ onKeyDown: e => handleKeyDown(e, index),
212
+ onPaste: e => handlePaste(e, index),
213
+ disabled: disabled,
214
+ readOnly: readOnly,
215
+ maxLength: 1,
216
+ autoComplete: otp ? 'one-time-code' : 'off',
217
+ inputMode: inputModeValue,
218
+ placeholder: placeholder,
219
+ type: inputTypeValue,
220
+ ref: getRefSetter(index)
221
+ }))));
222
+ });
223
+ PinInput.displayName = 'PinInput';
224
+ var _default = exports.default = PinInput;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * A hook that manages the refs and focus behavior for a PIN input component
4
+ */
5
+ export declare const usePinInputRefs: (length: number, autoFocus?: boolean) => {
6
+ inputRefs: import("react").RefObject<(HTMLInputElement | null)[]>;
7
+ focusInput: (index: number) => boolean;
8
+ focusNextInput: (currentIndex: number) => boolean;
9
+ focusPrevInput: (currentIndex: number) => boolean;
10
+ getRefSetter: (index: number) => (el: HTMLInputElement | null) => void;
11
+ };
12
+ export default usePinInputRefs;
@@ -0,0 +1,62 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ exports.__esModule = true;
5
+ exports.usePinInputRefs = exports.default = void 0;
6
+ var _react = require("react");
7
+ /**
8
+ * A hook that manages the refs and focus behavior for a PIN input component
9
+ */
10
+ const usePinInputRefs = (length, autoFocus) => {
11
+ // Create ref to store input elements
12
+ const inputRefs = (0, _react.useRef)([]);
13
+
14
+ // Initialize the refs array when length changes
15
+ (0, _react.useEffect)(() => {
16
+ inputRefs.current = inputRefs.current.slice(0, length);
17
+ }, [length]);
18
+
19
+ // Auto focus the first input on mount if autoFocus is true
20
+ (0, _react.useEffect)(() => {
21
+ if (autoFocus && inputRefs.current[0]) {
22
+ var _inputRefs$current$;
23
+ (_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
24
+ }
25
+ }, [autoFocus]);
26
+
27
+ // Focus a specific input by index
28
+ const focusInput = (0, _react.useCallback)(index => {
29
+ if (index >= 0 && index < length && inputRefs.current[index]) {
30
+ var _inputRefs$current$in;
31
+ (_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.focus();
32
+ return true;
33
+ }
34
+ return false;
35
+ }, [length]);
36
+
37
+ // Focus the next input
38
+ const focusNextInput = (0, _react.useCallback)(currentIndex => {
39
+ return focusInput(currentIndex + 1);
40
+ }, [focusInput]);
41
+
42
+ // Focus the previous input
43
+ const focusPrevInput = (0, _react.useCallback)(currentIndex => {
44
+ return focusInput(currentIndex - 1);
45
+ }, [focusInput]);
46
+
47
+ // Get ref setter for an input
48
+ const getRefSetter = (0, _react.useCallback)(index => {
49
+ return el => {
50
+ inputRefs.current[index] = el;
51
+ };
52
+ }, []);
53
+ return {
54
+ inputRefs,
55
+ focusInput,
56
+ focusNextInput,
57
+ focusPrevInput,
58
+ getRefSetter
59
+ };
60
+ };
61
+ exports.usePinInputRefs = usePinInputRefs;
62
+ var _default = exports.default = usePinInputRefs;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Hook for managing pin input value
3
+ * - Handles controlled/uncontrolled value
4
+ * - Normalizes value to array format
5
+ * - Manages array updates and modifications
6
+ */
7
+ export declare const usePinValue: (controlValue: string | undefined, defaultValue: string, length: number, onChange?: ((value: string) => void) | undefined, onComplete?: ((value: string) => void) | undefined) => {
8
+ value: string;
9
+ valueArray: string[];
10
+ setDigit: (index: number, digit: string) => void;
11
+ clearDigit: (index: number) => void;
12
+ updateValue: (newValue: string) => void;
13
+ };
14
+ export default usePinValue;