musae 0.3.2 → 0.3.5

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 (403) hide show
  1. package/dist/components/avatar/context.d.ts +1 -1
  2. package/dist/components/avatar/group.d.ts +1 -1
  3. package/dist/components/avatar/index.d.ts +1 -1
  4. package/dist/components/badge/badge.d.ts +1 -1
  5. package/dist/components/bench/bench.cjs +8 -10
  6. package/dist/components/bench/bench.mjs +8 -10
  7. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  8. package/dist/components/breadcrumb/item.d.ts +1 -1
  9. package/dist/components/button/button.cjs +12 -11
  10. package/dist/components/button/button.d.ts +1 -1
  11. package/dist/components/button/button.mjs +7 -6
  12. package/dist/components/button/hooks.d.ts +2 -2
  13. package/dist/components/calendar/calendar.d.ts +1 -1
  14. package/dist/components/calendar/contribution.cjs +251 -0
  15. package/dist/components/calendar/contribution.d.ts +13 -0
  16. package/dist/components/calendar/contribution.mjs +249 -0
  17. package/dist/components/calendar/hooks.d.ts +1 -1
  18. package/dist/components/calendar/index.d.ts +2 -2
  19. package/dist/components/cascader/cascader.d.ts +1 -1
  20. package/dist/components/cascader/hooks.d.ts +1 -1
  21. package/dist/components/cascader/utils.d.ts +1 -1
  22. package/dist/components/checkbox/checkbox.d.ts +1 -1
  23. package/dist/components/checkbox/context.d.ts +1 -1
  24. package/dist/components/checkbox/group.d.ts +1 -1
  25. package/dist/components/checkbox/index.d.ts +2 -2
  26. package/dist/components/checkbox/styles.cjs +1 -1
  27. package/dist/components/checkbox/styles.d.ts +1 -1
  28. package/dist/components/checkbox/styles.mjs +1 -1
  29. package/dist/components/clock/clock.cjs +1 -2
  30. package/dist/components/clock/clock.d.ts +1 -1
  31. package/dist/components/clock/clock.mjs +1 -2
  32. package/dist/components/clock/column.cjs +9 -9
  33. package/dist/components/clock/column.d.ts +1 -1
  34. package/dist/components/clock/column.mjs +8 -8
  35. package/dist/components/collapse/collapse.d.ts +1 -1
  36. package/dist/components/collapse/context.d.ts +1 -1
  37. package/dist/components/collapse/hooks.d.ts +1 -1
  38. package/dist/components/collapse/item.d.ts +1 -1
  39. package/dist/components/config/context.d.ts +1 -1
  40. package/dist/components/config/hooks.d.ts +1 -1
  41. package/dist/components/config/provider.cjs +2 -2
  42. package/dist/components/config/provider.d.ts +1 -1
  43. package/dist/components/config/provider.mjs +2 -2
  44. package/dist/components/countdown/countdown.d.ts +2 -2
  45. package/dist/components/date-picker/date-picker.d.ts +1 -1
  46. package/dist/components/date-picker/hooks.d.ts +1 -1
  47. package/dist/components/date-range-picker/date-range-picker.d.ts +1 -1
  48. package/dist/components/date-range-picker/hooks.d.ts +1 -1
  49. package/dist/components/dialog/dialog.d.ts +1 -1
  50. package/dist/components/dialog/hooks.d.ts +1 -1
  51. package/dist/components/dialog/popup.d.ts +1 -1
  52. package/dist/components/divider/divider.d.ts +1 -1
  53. package/dist/components/divider/hooks.d.ts +1 -1
  54. package/dist/components/drawer/drawer.d.ts +1 -1
  55. package/dist/components/drawer/hooks.d.ts +1 -1
  56. package/dist/components/drawer/popup.cjs +51 -17
  57. package/dist/components/drawer/popup.d.ts +2 -2
  58. package/dist/components/drawer/popup.mjs +51 -17
  59. package/dist/components/{floating-action-button/floating-action-button.cjs → fab/fab.cjs} +2 -2
  60. package/dist/components/fab/fab.d.ts +4 -0
  61. package/dist/components/{floating-action-button/floating-action-button.mjs → fab/fab.mjs} +2 -2
  62. package/dist/components/{floating-action-button → fab}/floatable.d.ts +1 -1
  63. package/dist/components/fab/index.d.ts +2 -0
  64. package/dist/components/grid/col.d.ts +1 -1
  65. package/dist/components/grid/index.d.ts +2 -2
  66. package/dist/components/grid/row.d.ts +1 -1
  67. package/dist/components/highlight/highlight.d.ts +1 -1
  68. package/dist/components/i18n-button/i18n-button.cjs +11 -3
  69. package/dist/components/i18n-button/i18n-button.d.ts +2 -2
  70. package/dist/components/i18n-button/i18n-button.mjs +12 -4
  71. package/dist/components/icon/hoc.d.ts +2 -2
  72. package/dist/components/icon/icon.d.ts +1 -1
  73. package/dist/components/icon/icons/action/check-circle-outline.d.ts +1 -1
  74. package/dist/components/icon/icons/action/check-circle.d.ts +1 -1
  75. package/dist/components/icon/icons/action/code.d.ts +1 -1
  76. package/dist/components/icon/icons/action/delete.cjs +20 -0
  77. package/dist/components/icon/icons/action/delete.d.ts +3 -0
  78. package/dist/components/icon/icons/action/delete.mjs +18 -0
  79. package/dist/components/icon/icons/action/done-outline.d.ts +1 -1
  80. package/dist/components/icon/icons/action/done.d.ts +1 -1
  81. package/dist/components/icon/icons/action/index.cjs +7 -1
  82. package/dist/components/icon/icons/action/index.d.ts +18 -14
  83. package/dist/components/icon/icons/action/index.mjs +6 -2
  84. package/dist/components/icon/icons/action/open-in-new.d.ts +1 -1
  85. package/dist/components/icon/icons/action/swap-horiz.d.ts +1 -1
  86. package/dist/components/icon/icons/action/swap-vert.d.ts +1 -1
  87. package/dist/components/icon/icons/action/three-d-rotation.cjs +28 -0
  88. package/dist/components/icon/icons/action/three-d-rotation.d.ts +3 -0
  89. package/dist/components/icon/icons/action/three-d-rotation.mjs +26 -0
  90. package/dist/components/icon/icons/action/translate.d.ts +1 -1
  91. package/dist/components/icon/icons/action/visibility-off.d.ts +1 -1
  92. package/dist/components/icon/icons/action/visibility.d.ts +1 -1
  93. package/dist/components/icon/icons/action/zoom-in.d.ts +1 -1
  94. package/dist/components/icon/icons/action/zoom-out.d.ts +1 -1
  95. package/dist/components/icon/icons/alert/add-alert.d.ts +1 -1
  96. package/dist/components/icon/icons/alert/auto-delete.d.ts +1 -1
  97. package/dist/components/icon/icons/alert/error-outline.d.ts +1 -1
  98. package/dist/components/icon/icons/alert/error.d.ts +1 -1
  99. package/dist/components/icon/icons/alert/index.d.ts +7 -7
  100. package/dist/components/icon/icons/alert/notification-important.d.ts +1 -1
  101. package/dist/components/icon/icons/alert/warning-amber.d.ts +1 -1
  102. package/dist/components/icon/icons/alert/warning.d.ts +1 -1
  103. package/dist/components/icon/icons/content/clear.d.ts +1 -1
  104. package/dist/components/icon/icons/content/font-download.d.ts +1 -1
  105. package/dist/components/icon/icons/content/index.d.ts +5 -5
  106. package/dist/components/icon/icons/content/link-off.d.ts +1 -1
  107. package/dist/components/icon/icons/content/redo.d.ts +1 -1
  108. package/dist/components/icon/icons/content/undo.d.ts +1 -1
  109. package/dist/components/icon/icons/editor/attch-file.cjs +20 -0
  110. package/dist/components/icon/icons/editor/attch-file.d.ts +3 -0
  111. package/dist/components/icon/icons/editor/attch-file.mjs +18 -0
  112. package/dist/components/icon/icons/editor/checklist.d.ts +1 -1
  113. package/dist/components/icon/icons/editor/format-bold.d.ts +1 -1
  114. package/dist/components/icon/icons/editor/format-italic.d.ts +1 -1
  115. package/dist/components/icon/icons/editor/format-strikethrough.d.ts +1 -1
  116. package/dist/components/icon/icons/editor/format-underlined.d.ts +1 -1
  117. package/dist/components/icon/icons/editor/index.cjs +4 -1
  118. package/dist/components/icon/icons/editor/index.d.ts +12 -10
  119. package/dist/components/icon/icons/editor/index.mjs +4 -2
  120. package/dist/components/icon/icons/editor/insert-link.d.ts +1 -1
  121. package/dist/components/icon/icons/editor/notes.d.ts +1 -1
  122. package/dist/components/icon/icons/editor/subscript.d.ts +1 -1
  123. package/dist/components/icon/icons/editor/superscript.d.ts +1 -1
  124. package/dist/components/icon/icons/hardware/index.d.ts +6 -6
  125. package/dist/components/icon/icons/hardware/keyboard-arrow-down.d.ts +1 -1
  126. package/dist/components/icon/icons/hardware/keyboard-arrow-left.d.ts +1 -1
  127. package/dist/components/icon/icons/hardware/keyboard-arrow-right.d.ts +1 -1
  128. package/dist/components/icon/icons/hardware/keyboard-arrow-up.d.ts +1 -1
  129. package/dist/components/icon/icons/hardware/keyboard-double-arrow-left.d.ts +1 -1
  130. package/dist/components/icon/icons/hardware/keyboard-double-arrow-right.d.ts +1 -1
  131. package/dist/components/icon/icons/image/bedtime.d.ts +1 -1
  132. package/dist/components/icon/icons/image/edit.d.ts +1 -1
  133. package/dist/components/icon/icons/image/index.d.ts +11 -11
  134. package/dist/components/icon/icons/image/looks-five.d.ts +1 -1
  135. package/dist/components/icon/icons/image/looks-four.d.ts +1 -1
  136. package/dist/components/icon/icons/image/looks-one.d.ts +1 -1
  137. package/dist/components/icon/icons/image/looks-six.d.ts +1 -1
  138. package/dist/components/icon/icons/image/looks-three.d.ts +1 -1
  139. package/dist/components/icon/icons/image/looks-two.d.ts +1 -1
  140. package/dist/components/icon/icons/image/rotate-left.d.ts +1 -1
  141. package/dist/components/icon/icons/image/rotate-right.d.ts +1 -1
  142. package/dist/components/icon/icons/image/wb-sunny.d.ts +1 -1
  143. package/dist/components/icon/icons/index.cjs +6 -0
  144. package/dist/components/icon/icons/index.mjs +3 -0
  145. package/dist/components/icon/icons/mock/github.d.ts +1 -1
  146. package/dist/components/icon/icons/mock/index.d.ts +2 -2
  147. package/dist/components/icon/icons/mock/loading.d.ts +1 -1
  148. package/dist/components/icon/icons/navigation/cancel.d.ts +1 -1
  149. package/dist/components/icon/icons/navigation/check.d.ts +1 -1
  150. package/dist/components/icon/icons/navigation/close.d.ts +1 -1
  151. package/dist/components/icon/icons/navigation/index.d.ts +5 -5
  152. package/dist/components/icon/icons/navigation/more-horiz.d.ts +1 -1
  153. package/dist/components/icon/icons/navigation/unfold-more.d.ts +1 -1
  154. package/dist/components/icon/icons/toggle/index.d.ts +3 -3
  155. package/dist/components/icon/icons/toggle/star-half.d.ts +1 -1
  156. package/dist/components/icon/icons/toggle/star-outline.d.ts +1 -1
  157. package/dist/components/icon/icons/toggle/star.d.ts +1 -1
  158. package/dist/components/icon/index.d.ts +0 -5
  159. package/dist/components/image/hooks.d.ts +1 -1
  160. package/dist/components/image/image.cjs +2 -2
  161. package/dist/components/image/image.d.ts +1 -1
  162. package/dist/components/image/image.mjs +2 -2
  163. package/dist/components/image/index.d.ts +2 -2
  164. package/dist/components/image/preview/context.d.ts +1 -1
  165. package/dist/components/image/preview/group.d.ts +1 -1
  166. package/dist/components/image/preview/operations.d.ts +1 -1
  167. package/dist/components/image/preview/preview.d.ts +1 -1
  168. package/dist/components/input/hooks.d.ts +1 -1
  169. package/dist/components/input/index.d.ts +1 -2
  170. package/dist/components/input/input.d.ts +1 -1
  171. package/dist/components/kbd/kbd.d.ts +1 -1
  172. package/dist/components/kbd/utils.d.ts +1 -1
  173. package/dist/components/layout/footer.d.ts +1 -1
  174. package/dist/components/layout/header.d.ts +1 -1
  175. package/dist/components/layout/index.d.ts +1 -1
  176. package/dist/components/layout/layout.d.ts +1 -1
  177. package/dist/components/layout/main.d.ts +1 -1
  178. package/dist/components/layout/sider.d.ts +1 -1
  179. package/dist/components/loading/loading.d.ts +1 -1
  180. package/dist/components/menu/hooks.cjs +7 -7
  181. package/dist/components/menu/hooks.d.ts +1 -2
  182. package/dist/components/menu/hooks.mjs +8 -8
  183. package/dist/components/menu/item.d.ts +2 -3
  184. package/dist/components/message/hooks.d.ts +1 -1
  185. package/dist/components/message/messager.d.ts +1 -1
  186. package/dist/components/notification/holder.d.ts +1 -1
  187. package/dist/components/notification/hooks.d.ts +1 -1
  188. package/dist/components/notification/index.d.ts +1 -1
  189. package/dist/components/notification/notification.d.ts +1 -1
  190. package/dist/components/notification/notifier.d.ts +1 -1
  191. package/dist/components/number-input/number-input.d.ts +1 -1
  192. package/dist/components/otp-input/otp-input.d.ts +1 -1
  193. package/dist/components/pagination/pagination.cjs +1 -1
  194. package/dist/components/pagination/pagination.mjs +2 -2
  195. package/dist/components/picker/context.d.ts +1 -1
  196. package/dist/components/picker/picker.d.ts +1 -1
  197. package/dist/components/popconfirm/popconfirm.d.ts +1 -1
  198. package/dist/components/popover/hooks.d.ts +1 -1
  199. package/dist/components/popover/index.d.ts +1 -1
  200. package/dist/components/popover/popover.cjs +1 -1
  201. package/dist/components/popover/popover.d.ts +1 -1
  202. package/dist/components/popover/popover.mjs +1 -1
  203. package/dist/components/popper/dropdown.cjs +44 -22
  204. package/dist/components/popper/dropdown.d.ts +2 -2
  205. package/dist/components/popper/dropdown.mjs +46 -24
  206. package/dist/components/popper/hooks.cjs +88 -89
  207. package/dist/components/popper/hooks.d.ts +8 -14
  208. package/dist/components/popper/hooks.mjs +91 -91
  209. package/dist/components/popper/index.d.ts +0 -2
  210. package/dist/components/popper/popper.d.ts +1 -1
  211. package/dist/components/portal/portal.d.ts +1 -1
  212. package/dist/components/progress/circular.d.ts +1 -1
  213. package/dist/components/progress/linear.d.ts +1 -1
  214. package/dist/components/progress/progress.d.ts +1 -1
  215. package/dist/components/quote/quote.d.ts +1 -1
  216. package/dist/components/radio/context.d.ts +1 -1
  217. package/dist/components/radio/group.d.ts +1 -1
  218. package/dist/components/radio/index.d.ts +1 -1
  219. package/dist/components/radio/radio.d.ts +1 -1
  220. package/dist/components/rate/hooks.d.ts +1 -1
  221. package/dist/components/rate/rate.d.ts +1 -1
  222. package/dist/components/rate/star.d.ts +1 -1
  223. package/dist/components/rich-text-editor/dropdown.cjs +1 -1
  224. package/dist/components/rich-text-editor/dropdown.d.ts +1 -1
  225. package/dist/components/rich-text-editor/dropdown.mjs +1 -1
  226. package/dist/components/rich-text-editor/index.cjs +20 -2
  227. package/dist/components/rich-text-editor/index.d.ts +1 -1
  228. package/dist/components/rich-text-editor/index.mjs +20 -2
  229. package/dist/components/rich-text-editor/plugins/controlled-state/index.cjs +1 -2
  230. package/dist/components/rich-text-editor/plugins/controlled-state/index.d.ts +1 -1
  231. package/dist/components/rich-text-editor/plugins/controlled-state/index.mjs +1 -2
  232. package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.cjs +5 -4
  233. package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.d.ts +3 -3
  234. package/dist/components/rich-text-editor/plugins/markdown-shortcut/index.mjs +3 -4
  235. package/dist/components/rich-text-editor/rich-text-editor.cjs +13 -10
  236. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  237. package/dist/components/rich-text-editor/rich-text-editor.mjs +12 -9
  238. package/dist/components/ripple/hooks.d.ts +1 -1
  239. package/dist/components/ripple/ripple.d.ts +1 -1
  240. package/dist/components/select/hooks.d.ts +1 -1
  241. package/dist/components/select/select.cjs +4 -1
  242. package/dist/components/select/select.mjs +5 -2
  243. package/dist/components/select/selections.d.ts +1 -1
  244. package/dist/components/select/selector.d.ts +1 -1
  245. package/dist/components/select/utils.cjs +1 -3
  246. package/dist/components/select/utils.d.ts +2 -2
  247. package/dist/components/select/utils.mjs +2 -4
  248. package/dist/components/skeleton/skeleton.cjs +20 -46
  249. package/dist/components/skeleton/skeleton.d.ts +2 -2
  250. package/dist/components/skeleton/skeleton.mjs +20 -46
  251. package/dist/components/space/space.d.ts +1 -1
  252. package/dist/components/steps/context.d.ts +1 -1
  253. package/dist/components/steps/item.d.ts +1 -1
  254. package/dist/components/steps/steps.d.ts +1 -1
  255. package/dist/components/switch/switch.cjs +9 -8
  256. package/dist/components/switch/switch.d.ts +1 -1
  257. package/dist/components/switch/switch.mjs +9 -8
  258. package/dist/components/table/body.cjs +3 -1
  259. package/dist/components/table/body.mjs +3 -1
  260. package/dist/components/tabs/context.d.ts +1 -1
  261. package/dist/components/tabs/hooks.d.ts +2 -2
  262. package/dist/components/tabs/navigation.d.ts +1 -1
  263. package/dist/components/tabs/panels.d.ts +1 -1
  264. package/dist/components/tabs/tab.d.ts +1 -1
  265. package/dist/components/tabs/tabs.d.ts +1 -1
  266. package/dist/components/tag/tag.d.ts +1 -1
  267. package/dist/components/theme/hooks.cjs +6 -6
  268. package/dist/components/theme/hooks.d.ts +1 -1
  269. package/dist/components/theme/hooks.mjs +6 -6
  270. package/dist/components/theme/theme-provider.cjs +12 -6
  271. package/dist/components/theme/theme-provider.d.ts +2 -2
  272. package/dist/components/theme/theme-provider.mjs +12 -6
  273. package/dist/components/theme/tokens.stylex.cjs +7 -0
  274. package/dist/components/theme/tokens.stylex.d.ts +8 -6
  275. package/dist/components/theme/tokens.stylex.mjs +7 -1
  276. package/dist/components/time-picker/hooks.d.ts +1 -1
  277. package/dist/components/time-picker/panel.d.ts +1 -1
  278. package/dist/components/time-picker/time-picker.d.ts +1 -1
  279. package/dist/components/timeline/context.d.ts +1 -1
  280. package/dist/components/timeline/item.d.ts +1 -1
  281. package/dist/components/timeline/timeline.d.ts +1 -1
  282. package/dist/components/tooltip/tooltip.d.ts +1 -1
  283. package/dist/components/transfer/context.d.ts +1 -1
  284. package/dist/components/transfer/hooks.d.ts +1 -1
  285. package/dist/components/transfer/item.d.ts +1 -1
  286. package/dist/components/transfer/list.d.ts +1 -1
  287. package/dist/components/transfer/transfer.d.ts +1 -1
  288. package/dist/components/upload/upload.cjs +31 -6
  289. package/dist/components/upload/upload.d.ts +2 -2
  290. package/dist/components/upload/upload.mjs +31 -6
  291. package/dist/components/upload/uploadeds.cjs +119 -55
  292. package/dist/components/upload/uploadeds.d.ts +1 -1
  293. package/dist/components/upload/uploadeds.mjs +121 -57
  294. package/dist/components/upload/utils.cjs +9 -0
  295. package/dist/components/upload/utils.d.ts +6 -0
  296. package/dist/components/upload/utils.mjs +9 -0
  297. package/dist/components/visually-hidden/visually-hidden.d.ts +1 -1
  298. package/dist/components/waterfall/sequential.d.ts +1 -1
  299. package/dist/components/waterfall/waterfall.d.ts +1 -1
  300. package/dist/components/watermark/hooks.d.ts +1 -1
  301. package/dist/components/watermark/watermark.d.ts +1 -1
  302. package/dist/hooks/use-class-names.d.ts +8 -1
  303. package/dist/hooks/use-closable.cjs +0 -8
  304. package/dist/hooks/use-closable.mjs +0 -8
  305. package/dist/hooks/use-container.d.ts +1 -1
  306. package/dist/hooks/use-lazy-boolean.cjs +2 -2
  307. package/dist/hooks/use-lazy-boolean.mjs +2 -2
  308. package/dist/index.cjs +4 -2
  309. package/dist/index.d.ts +2 -2
  310. package/dist/index.mjs +2 -1
  311. package/dist/locale/context.d.ts +1 -1
  312. package/dist/locale/locales/en_US.cjs +5 -1
  313. package/dist/locale/locales/en_US.mjs +5 -1
  314. package/dist/locale/locales/zh_CN.cjs +5 -1
  315. package/dist/locale/locales/zh_CN.mjs +5 -1
  316. package/dist/locale/use-locale.d.ts +1 -1
  317. package/dist/styles.css +23 -12
  318. package/dist/{components/clock/types.d.ts → types/clock.d.ts} +1 -5
  319. package/dist/{components/config/types.d.ts → types/config.d.ts} +2 -2
  320. package/dist/{components/countdown/types.d.ts → types/countdown.d.ts} +3 -3
  321. package/dist/{components/date-picker/types.d.ts → types/date-picker.d.ts} +1 -1
  322. package/dist/{components/dialog/types.d.ts → types/dialog.d.ts} +2 -2
  323. package/dist/{components/divider/types.d.ts → types/divider.d.ts} +1 -1
  324. package/dist/{components/drawer/types.d.ts → types/drawer.d.ts} +6 -1
  325. package/dist/types/element.d.ts +1 -56
  326. package/dist/{components/floating-action-button/types.d.ts → types/fab.d.ts} +3 -3
  327. package/dist/types/form.d.ts +39 -1
  328. package/dist/{components/grid/types.d.ts → types/grid.d.ts} +1 -1
  329. package/dist/{components/i18n-button/types.d.ts → types/i18n-button.d.ts} +3 -2
  330. package/dist/types/locale.d.ts +6 -0
  331. package/dist/types/menu.d.ts +9 -4
  332. package/dist/{components/message/types.d.ts → types/message.d.ts} +1 -1
  333. package/dist/{components/popconfirm/types.d.ts → types/popconfirm.d.ts} +2 -2
  334. package/dist/{components/popper/types.d.ts → types/popper.d.ts} +2 -2
  335. package/dist/{components/quote/types.d.ts → types/quote.d.ts} +1 -1
  336. package/dist/{components/radio/types.d.ts → types/radio.d.ts} +1 -1
  337. package/dist/types/rich-text-editor.d.ts +2 -1
  338. package/dist/types/skeleton.d.ts +12 -0
  339. package/dist/{components/space/types.d.ts → types/space.d.ts} +1 -1
  340. package/dist/{components/theme/types.d.ts → types/theme.d.ts} +1 -1
  341. package/dist/types/tour.d.ts +1 -1
  342. package/dist/types/tree.d.ts +7 -2
  343. package/dist/{components/upload/types.d.ts → types/upload.d.ts} +59 -22
  344. package/dist/{components/waterfall/types.d.ts → types/waterfall.d.ts} +3 -3
  345. package/dist/utils/class-name.cjs +10 -1
  346. package/dist/utils/class-name.d.ts +24 -3
  347. package/dist/utils/class-name.mjs +11 -2
  348. package/dist/utils/colors.d.ts +1 -1
  349. package/dist/utils/component-token.cjs +2 -0
  350. package/dist/utils/component-token.d.ts +3 -1
  351. package/dist/utils/component-token.mjs +2 -0
  352. package/dist/utils/date.cjs +13 -0
  353. package/dist/utils/date.d.ts +6 -0
  354. package/dist/utils/date.mjs +13 -0
  355. package/package.json +25 -25
  356. package/dist/components/clock/hooks.cjs +0 -12
  357. package/dist/components/clock/hooks.d.ts +0 -2
  358. package/dist/components/clock/hooks.mjs +0 -12
  359. package/dist/components/clock/types.cjs +0 -6
  360. package/dist/components/clock/types.mjs +0 -8
  361. package/dist/components/floating-action-button/floating-action-button.d.ts +0 -4
  362. package/dist/components/floating-action-button/index.d.ts +0 -2
  363. package/dist/components/icon/icons/three-dimension-rotation.d.ts +0 -3
  364. package/dist/components/skeleton/types.d.ts +0 -19
  365. package/dist/utils/layer.cjs +0 -23
  366. package/dist/utils/layer.d.ts +0 -7
  367. package/dist/utils/layer.mjs +0 -23
  368. /package/dist/components/{floating-action-button → fab}/floatable.cjs +0 -0
  369. /package/dist/components/{floating-action-button → fab}/floatable.mjs +0 -0
  370. /package/dist/{components/avatar/types.d.ts → types/avatar.d.ts} +0 -0
  371. /package/dist/{components/badge/types.d.ts → types/badge.d.ts} +0 -0
  372. /package/dist/{components/breadcrumb/types.d.ts → types/breadcrumb.d.ts} +0 -0
  373. /package/dist/{components/button/types.d.ts → types/button.d.ts} +0 -0
  374. /package/dist/{components/calendar/types.d.ts → types/calendar.d.ts} +0 -0
  375. /package/dist/{components/cascader/types.d.ts → types/cascader.d.ts} +0 -0
  376. /package/dist/{components/checkbox/types.d.ts → types/checkbox.d.ts} +0 -0
  377. /package/dist/{components/collapse/types.d.ts → types/collapse.d.ts} +0 -0
  378. /package/dist/{components/date-range-picker/types.d.ts → types/date-range-picker.d.ts} +0 -0
  379. /package/dist/{components/highlight/types.d.ts → types/highlight.d.ts} +0 -0
  380. /package/dist/{components/icon/types.d.ts → types/icon.d.ts} +0 -0
  381. /package/dist/{components/image/types.d.ts → types/image.d.ts} +0 -0
  382. /package/dist/{components/input/types.d.ts → types/input.d.ts} +0 -0
  383. /package/dist/{components/kbd/types.d.ts → types/kbd.d.ts} +0 -0
  384. /package/dist/{components/layout/types.d.ts → types/layout.d.ts} +0 -0
  385. /package/dist/{components/loading/types.d.ts → types/loading.d.ts} +0 -0
  386. /package/dist/{components/notification/types.d.ts → types/notification.d.ts} +0 -0
  387. /package/dist/{components/number-input/types.d.ts → types/number-input.d.ts} +0 -0
  388. /package/dist/{components/otp-input/types.d.ts → types/otp-input.d.ts} +0 -0
  389. /package/dist/{components/popover/types.d.ts → types/popover.d.ts} +0 -0
  390. /package/dist/{components/portal/types.d.ts → types/portal.d.ts} +0 -0
  391. /package/dist/{components/progress/types.d.ts → types/progress.d.ts} +0 -0
  392. /package/dist/{components/rate/types.d.ts → types/rate.d.ts} +0 -0
  393. /package/dist/{components/ripple/types.d.ts → types/ripple.d.ts} +0 -0
  394. /package/dist/{components/steps/types.d.ts → types/steps.d.ts} +0 -0
  395. /package/dist/{components/switch/types.d.ts → types/switch.d.ts} +0 -0
  396. /package/dist/{components/tabs/types.d.ts → types/tabs.d.ts} +0 -0
  397. /package/dist/{components/tag/types.d.ts → types/tag.d.ts} +0 -0
  398. /package/dist/{components/time-picker/types.d.ts → types/time-picker.d.ts} +0 -0
  399. /package/dist/{components/timeline/types.d.ts → types/timeline.d.ts} +0 -0
  400. /package/dist/{components/tooltip/types.d.ts → types/tooltip.d.ts} +0 -0
  401. /package/dist/{components/transfer/types.d.ts → types/transfer.d.ts} +0 -0
  402. /package/dist/{components/visually-hidden/types.d.ts → types/visually-hidden.d.ts} +0 -0
  403. /package/dist/{components/watermark/types.d.ts → types/watermark.d.ts} +0 -0
@@ -0,0 +1,249 @@
1
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
+ import dayjs from 'dayjs';
3
+ import React, { useMemo } from 'react';
4
+ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
5
+ import { useTheme } from '../theme/hooks.mjs';
6
+ import { typography } from '../theme/theme.mjs';
7
+ import Tooltip from '../tooltip/tooltip.mjs';
8
+ import { min } from '@aiszlab/relax';
9
+ import { firstSundayInMonth } from '../../utils/date.mjs';
10
+
11
+ var styles = {
12
+ calendar: {
13
+ variables: function variables(props) {
14
+ return [{
15
+ "--cell-size": "musaex-1erll0c",
16
+ "--cell-color": "musaex-1utc1yc",
17
+ $$css: true
18
+ }, {
19
+ "----cell-color": props.color != null ? props.color : "initial"
20
+ }];
21
+ },
22
+ "default": {
23
+ borderCollapse: "musaex-1vathgz",
24
+ borderSpacing: "musaex-g5hwcv",
25
+ $$css: true
26
+ },
27
+ scrollable: {
28
+ maxWidth: "musaex-193iq5w",
29
+ overflow: "musaex-ysyzu8",
30
+ overflowX: null,
31
+ overflowY: null,
32
+ $$css: true
33
+ }
34
+ },
35
+ cell: {
36
+ "default": {
37
+ minWidth: "musaex-1q6qbx2",
38
+ minHeight: "musaex-189dakb",
39
+ padding: "musaex-1717udv",
40
+ paddingInline: null,
41
+ paddingStart: null,
42
+ paddingLeft: null,
43
+ paddingEnd: null,
44
+ paddingRight: null,
45
+ paddingBlock: null,
46
+ paddingTop: null,
47
+ paddingBottom: null,
48
+ borderRadius: "musaex-llun4g",
49
+ borderStartStartRadius: null,
50
+ borderStartEndRadius: null,
51
+ borderEndStartRadius: null,
52
+ borderEndEndRadius: null,
53
+ borderTopLeftRadius: null,
54
+ borderTopRightRadius: null,
55
+ borderBottomLeftRadius: null,
56
+ borderBottomRightRadius: null,
57
+ cursor: "musaex-1ypdohk",
58
+ backgroundColor: "musaex-1204rnj",
59
+ $$css: true
60
+ }
61
+ },
62
+ weekday: {
63
+ cell: {
64
+ padding: "musaex-1717udv",
65
+ paddingInline: null,
66
+ paddingStart: null,
67
+ paddingLeft: null,
68
+ paddingEnd: null,
69
+ paddingRight: null,
70
+ paddingBlock: null,
71
+ paddingTop: null,
72
+ paddingBottom: null,
73
+ $$css: true
74
+ },
75
+ "default": {
76
+ height: "musaex-sahybl",
77
+ overflow: "musaex-1rea2x4",
78
+ overflowX: null,
79
+ overflowY: null,
80
+ display: "musaex-78zum5",
81
+ alignItems: "musaex-6s0dn4",
82
+ $$css: true
83
+ }
84
+ },
85
+ month: {
86
+ cell: {
87
+ padding: "musaex-1717udv",
88
+ paddingInline: null,
89
+ paddingStart: null,
90
+ paddingLeft: null,
91
+ paddingEnd: null,
92
+ paddingRight: null,
93
+ paddingBlock: null,
94
+ paddingTop: null,
95
+ paddingBottom: null,
96
+ position: "musaex-1n2onr6",
97
+ $$css: true
98
+ },
99
+ leading: {
100
+ visibility: "musaex-lshs6z",
101
+ $$css: true
102
+ },
103
+ "default": {
104
+ position: "musaex-10l6tqk",
105
+ top: "musaex-13vifvy",
106
+ insetInlineStart: "musaex-1o0tod",
107
+ left: null,
108
+ right: null,
109
+ $$css: true
110
+ }
111
+ }
112
+ };
113
+ /**
114
+ * @description
115
+ * contribution calendar
116
+ * inspired by github
117
+ */
118
+ var ContributionCalendar = function ContributionCalendar(_ref) {
119
+ var year = _ref.year;
120
+ _ref.gaps;
121
+ var _ref$dataSource = _ref.dataSource,
122
+ dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource;
123
+ var theme = useTheme();
124
+ var _useMemo = useMemo(function () {
125
+ var _to = min([dayjs().subtract(1, "day"), dayjs("".concat(year, "-12-31"))], function (_value) {
126
+ return _value.valueOf();
127
+ });
128
+ var _from = _to.subtract(1, "year").add(1, "day");
129
+ return [_from, _to];
130
+ }, [year]),
131
+ _useMemo2 = _slicedToArray(_useMemo, 2),
132
+ from = _useMemo2[0],
133
+ to = _useMemo2[1];
134
+ var _useMemo3 = useMemo(function () {
135
+ return [from.startOf("week"), to.endOf("week")];
136
+ }, [from, to]),
137
+ _useMemo4 = _slicedToArray(_useMemo3, 2),
138
+ start = _useMemo4[0],
139
+ end = _useMemo4[1];
140
+ var columns = useMemo(function () {
141
+ return end.diff(start, "week") + 1;
142
+ }, [start, end]);
143
+ var months = useMemo(function () {
144
+ return Array.from({
145
+ length: 13
146
+ }).reduce(function (prev, _, monthAt) {
147
+ var _month = from.clone().add(monthAt, "month");
148
+ var _from = monthAt > 0 ? firstSundayInMonth(_month) : _month.startOf("month");
149
+ var _to = _from.clone().endOf("month");
150
+ prev.push({
151
+ start: Math.max(_from.diff(start, "week"), 0),
152
+ end: Math.min(_to.diff(start, "week") + 1, columns),
153
+ month: _from.format("MMM")
154
+ });
155
+ return prev;
156
+ }, []);
157
+ }, [from, start, columns]);
158
+ var heats = useMemo(function () {
159
+ return dataSource.reduce(function (prev, _ref2) {
160
+ var _ref3 = _slicedToArray(_ref2, 2),
161
+ date = _ref3[0],
162
+ count = _ref3[1];
163
+ return prev.set(date, count);
164
+ }, new Map());
165
+ }, [dataSource]);
166
+ var styled = {
167
+ scrollable: _stylex.props(styles.calendar.scrollable),
168
+ calendar: _stylex.props(styles.calendar.variables({
169
+ color: theme.colors.primary
170
+ }), styles.calendar["default"]),
171
+ cell: _stylex.props(styles.cell["default"]),
172
+ weekday: {
173
+ cell: _stylex.props(styles.weekday.cell, typography.body.small),
174
+ "default": _stylex.props(styles.weekday["default"])
175
+ },
176
+ month: {
177
+ cell: _stylex.props(styles.month.cell, typography.body.small),
178
+ "default": _stylex.props(styles.month["default"]),
179
+ leading: _stylex.props(styles.month.cell, typography.body.small, styles.month.leading)
180
+ }
181
+ };
182
+ return /*#__PURE__*/React.createElement("div", {
183
+ className: styled.scrollable.className,
184
+ style: styled.scrollable.style
185
+ }, /*#__PURE__*/React.createElement("table", {
186
+ className: styled.calendar.className,
187
+ style: styled.calendar.style
188
+ }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
189
+ className: styled.month.leading.className,
190
+ style: styled.month.leading.style
191
+ }, "W/M"), months.map(function (_ref4, _key, _months) {
192
+ var start = _ref4.start,
193
+ end = _ref4.end,
194
+ month = _ref4.month;
195
+ var colSpan = end - start;
196
+ if (colSpan === 0) return null;
197
+ // render headers
198
+ // if col span is less than 2, skip render label
199
+ // ISSUE: if leading month has rendered, the trailing month will be rendered twice
200
+ var skip = colSpan < 2 || _months.length - 1 === _key && _months[0].end - _months[0].start >= 2;
201
+ return /*#__PURE__*/React.createElement("th", {
202
+ key: _key,
203
+ colSpan: colSpan,
204
+ className: styled.month.cell.className,
205
+ style: styled.month.cell.style
206
+ }, !skip && (/*#__PURE__*/React.createElement("div", {
207
+ className: styled.month["default"].className,
208
+ style: styled.month["default"].style
209
+ }, month)));
210
+ }))), /*#__PURE__*/React.createElement("tbody", null, Array.from({
211
+ length: 7
212
+ }).map(function (_, weekday) {
213
+ return /*#__PURE__*/React.createElement("tr", {
214
+ key: weekday
215
+ }, /*#__PURE__*/React.createElement("td", {
216
+ className: styled.weekday.cell.className,
217
+ style: styled.weekday.cell.style
218
+ }, /*#__PURE__*/React.createElement("div", {
219
+ className: styled.weekday["default"].className,
220
+ style: styled.weekday["default"].style
221
+ }, [1, 3, 5].includes(weekday) && (/*#__PURE__*/React.createElement("span", null, dayjs().day(weekday).format("ddd"))))), Array.from({
222
+ length: columns
223
+ }).map(function (_, column) {
224
+ var gap = column * 7 + weekday;
225
+ var _at = start.add(gap, "day");
226
+ if (column === 0 && !_at.isAfter(from)) {
227
+ return /*#__PURE__*/React.createElement("td", {
228
+ key: column
229
+ });
230
+ }
231
+ if (column === columns - 1 && _at.isAfter(to)) {
232
+ return /*#__PURE__*/React.createElement("td", {
233
+ key: column
234
+ });
235
+ }
236
+ var date = _at.format("YYYY-MM-DD");
237
+ var count = heats.get(date);
238
+ return /*#__PURE__*/React.createElement(Tooltip, {
239
+ key: column,
240
+ title: "".concat(count, " contributions at ").concat(_at.format("YYYY-MM-DD"))
241
+ }, /*#__PURE__*/React.createElement("td", {
242
+ className: styled.cell.className,
243
+ style: styled.cell.style
244
+ }));
245
+ }));
246
+ }))));
247
+ };
248
+
249
+ export { ContributionCalendar as default };
@@ -1,7 +1,7 @@
1
1
  import dayjs, { type Dayjs } from "dayjs";
2
2
  import React from "react";
3
3
  import { Timespan } from "../../utils/timespan";
4
- import type { CalendarProps } from "./types";
4
+ import type { CalendarProps } from "musae/types/calendar";
5
5
  /**
6
6
  * @description
7
7
  * head cells
@@ -1,3 +1,3 @@
1
1
  import Calendar from "./calendar";
2
- import type { CalendarProps } from "./types";
3
- export { Calendar, type CalendarProps };
2
+ import ContributionCalendar from "./contribution";
3
+ export { Calendar, ContributionCalendar };
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { CascaderProps } from "./types";
2
+ import type { CascaderProps } from "musae/types/cascader";
3
3
  declare const Cascader: ({ mode, separator, options, complex, ...props }: CascaderProps) => React.JSX.Element;
4
4
  export default Cascader;
@@ -1,6 +1,6 @@
1
1
  import { type Dispatch, type SetStateAction } from "react";
2
2
  import type { MenuItem } from "musae/types/menu";
3
- import type { CascaderProps, ReadableOptions, ReadablePaths } from "./types";
3
+ import type { CascaderProps, ReadableOptions, ReadablePaths } from "musae/types/cascader";
4
4
  import type { Option } from "musae/types/option";
5
5
  /**
6
6
  * @description
@@ -1,4 +1,4 @@
1
- import type { KeyOrOption, Optionable, ReadBy, ReadableOption, ReadableOptions, ReadablePaths, Value, ValueOrValues } from "./types";
1
+ import type { KeyOrOption, Optionable, ReadBy, ReadableOption, ReadableOptions, ReadablePaths, Value, ValueOrValues } from "musae/types/cascader";
2
2
  import type { MenuItem } from "musae/types/menu";
3
3
  /**
4
4
  * @description
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { CheckboxProps } from "./types";
2
+ import type { CheckboxProps } from "musae/types/checkbox";
3
3
  import styles from "./styles";
4
4
  declare const Checkbox: ({ value, className, style, children, onChange, disabled, checked, }: CheckboxProps) => React.JSX.Element;
5
5
  export default Checkbox;
@@ -1,3 +1,3 @@
1
- import type { ContextValue } from "./types";
1
+ import type { ContextValue } from "musae/types/checkbox";
2
2
  declare const Context: import("react").Context<ContextValue | null>;
3
3
  export default Context;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { CheckboxGroupProps } from "./types";
2
+ import type { CheckboxGroupProps } from "musae/types/checkbox";
3
3
  declare const Group: ({ value: controlledValue, children, onChange, disabled, }: CheckboxGroupProps) => React.JSX.Element;
4
4
  export default Group;
@@ -1,5 +1,5 @@
1
1
  import styles from "./styles";
2
- export declare const Checkbox: (({ value, className, style, children, onChange, disabled, checked, }: import("./types").CheckboxProps) => import("react").JSX.Element) & {
3
- Group: ({ value: controlledValue, children, onChange, disabled, }: import("./types").CheckboxGroupProps) => import("react").JSX.Element;
2
+ export declare const Checkbox: (({ value, className, style, children, onChange, disabled, checked, }: import("../../types/checkbox").CheckboxProps) => import("react").JSX.Element) & {
3
+ Group: ({ value: controlledValue, children, onChange, disabled, }: import("../../types/checkbox").CheckboxGroupProps) => import("react").JSX.Element;
4
4
  };
5
5
  export { styles };
@@ -10,7 +10,7 @@ var styles = {
10
10
  $$css: true
11
11
  },
12
12
  disabled: {
13
- opacity: "musaex-niy1rt",
13
+ opacity: "musaex-1n1gcw9",
14
14
  cursor: "musaex-1h6gzvc",
15
15
  $$css: true
16
16
  },
@@ -7,7 +7,7 @@ declare const styles: {
7
7
  readonly userSelect: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"userSelect", "none">;
8
8
  }>;
9
9
  readonly disabled: Readonly<{
10
- readonly opacity: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"opacity", string>;
10
+ readonly opacity: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"opacity", number>;
11
11
  readonly cursor: import("@stylexjs/stylex/lib/StyleXTypes").StyleXClassNameFor<"cursor", "not-allowed">;
12
12
  }>;
13
13
  readonly variables: (props: {
@@ -8,7 +8,7 @@ var styles = {
8
8
  $$css: true
9
9
  },
10
10
  disabled: {
11
- opacity: "musaex-niy1rt",
11
+ opacity: "musaex-1n1gcw9",
12
12
  cursor: "musaex-1h6gzvc",
13
13
  $$css: true
14
14
  },
@@ -5,7 +5,6 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
5
5
  var React = require('react');
6
6
  var useClassNames = require('../../hooks/use-class-names.cjs');
7
7
  var className = require('../../utils/class-name.cjs');
8
- var types = require('./types.cjs');
9
8
  var column = require('./column.cjs');
10
9
  var relax = require('@aiszlab/relax');
11
10
  var divider = require('../divider/divider.cjs');
@@ -18,7 +17,7 @@ var Clock = function Clock(_ref) {
18
17
  var styled = {
19
18
  className: "musaex-78zum5 musaex-1m3v4wt musaex-13bbkc7"
20
19
  };
21
- var columns = [types.TimeUnit.Hour, types.TimeUnit.Minute, types.TimeUnit.Second];
20
+ var columns = ["hour", "minute", "second"];
22
21
  return /*#__PURE__*/React.createElement("div", {
23
22
  className: relax.clsx(classNames[className.ClockClassToken.Clock], styled.className),
24
23
  style: styled.style
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { ClockProps } from "./types";
2
+ import type { ClockProps } from "musae/types/clock";
3
3
  declare const Clock: ({ value, onChange }: ClockProps) => React.JSX.Element;
4
4
  export default Clock;
@@ -3,7 +3,6 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import React from 'react';
4
4
  import { useClassNames } from '../../hooks/use-class-names.mjs';
5
5
  import { ClockClassToken } from '../../utils/class-name.mjs';
6
- import { TimeUnit } from './types.mjs';
7
6
  import Column from './column.mjs';
8
7
  import { clsx } from '@aiszlab/relax';
9
8
  import Divider from '../divider/divider.mjs';
@@ -16,7 +15,7 @@ var Clock = function Clock(_ref) {
16
15
  var styled = {
17
16
  className: "musaex-78zum5 musaex-1m3v4wt musaex-13bbkc7"
18
17
  };
19
- var columns = [TimeUnit.Hour, TimeUnit.Minute, TimeUnit.Second];
18
+ var columns = ["hour", "minute", "second"];
20
19
  return /*#__PURE__*/React.createElement("div", {
21
20
  className: clsx(classNames[ClockClassToken.Clock], styled.className),
22
21
  style: styled.style
@@ -1,16 +1,20 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var React = require('react');
4
- var hooks = require('./hooks.cjs');
5
4
  var menu = require('../menu/menu.cjs');
6
5
  var useClassNames = require('../../hooks/use-class-names.cjs');
7
6
  var className = require('../../utils/class-name.cjs');
8
7
  var relax = require('@aiszlab/relax');
9
8
  var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
10
- var hooks$1 = require('../theme/hooks.cjs');
9
+ var hooks = require('../theme/hooks.cjs');
11
10
  var colors = require('../../utils/colors.cjs');
12
11
  var componentToken = require('../../utils/component-token.cjs');
13
12
 
13
+ var UNITS = {
14
+ hour: 24,
15
+ minute: 60,
16
+ second: 60
17
+ };
14
18
  var styles = {
15
19
  menu: function menu(props) {
16
20
  return [{
@@ -42,10 +46,10 @@ var Column = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
42
46
  var unit = _ref.unit,
43
47
  value = _ref.value,
44
48
  onChange = _ref.onChange;
45
- var timeUnit = hooks.useTimeUnit(unit);
49
+ var timeUnit = UNITS[unit];
46
50
  var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Clock);
47
51
  var menuRef = React.useRef(null);
48
- var theme = hooks$1.useTheme();
52
+ var theme = hooks.useTheme();
49
53
  var onClick = React.useCallback(function (key) {
50
54
  var _menuRef$current;
51
55
  onChange === null || onChange === void 0 || onChange(key);
@@ -59,10 +63,6 @@ var Column = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
59
63
  if (relax.isVoid(value)) return;
60
64
  (_menuRef$current2 = menuRef.current) === null || _menuRef$current2 === void 0 || _menuRef$current2.scrollTo(value || 0, 100);
61
65
  }, [value]);
62
- var selectedKeys = React.useMemo(function () {
63
- if (relax.isVoid(value)) return void 0;
64
- return [value];
65
- }, [value]);
66
66
  var styled = {
67
67
  menu: stylex.default.props(styles.menu({
68
68
  scrollbarThumbColor: theme.colors[colors.ColorToken.Secondary],
@@ -73,7 +73,7 @@ var Column = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
73
73
  }
74
74
  };
75
75
  return /*#__PURE__*/React.createElement(menu.default, {
76
- selectedKeys: selectedKeys,
76
+ selectedKeys: value,
77
77
  ref: menuRef,
78
78
  className: relax.clsx(styled.menu.className, classNames[className.ClockClassToken.Column]),
79
79
  style: styled.menu.style,
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { ColumnProps } from "./types";
2
+ import { ColumnProps } from "musae/types/clock";
3
3
  declare const Column: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<{}>>;
4
4
  export default Column;
@@ -1,5 +1,4 @@
1
- import React, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect, useMemo } from 'react';
2
- import { useTimeUnit } from './hooks.mjs';
1
+ import React, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect } from 'react';
3
2
  import Menu from '../menu/menu.mjs';
4
3
  import { useClassNames } from '../../hooks/use-class-names.mjs';
5
4
  import { ClockClassToken } from '../../utils/class-name.mjs';
@@ -9,6 +8,11 @@ import { useTheme } from '../theme/hooks.mjs';
9
8
  import { ColorToken } from '../../utils/colors.mjs';
10
9
  import { ComponentToken } from '../../utils/component-token.mjs';
11
10
 
11
+ var UNITS = {
12
+ hour: 24,
13
+ minute: 60,
14
+ second: 60
15
+ };
12
16
  var styles = {
13
17
  menu: function menu(props) {
14
18
  return [{
@@ -40,7 +44,7 @@ var Column = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
44
  var unit = _ref.unit,
41
45
  value = _ref.value,
42
46
  onChange = _ref.onChange;
43
- var timeUnit = useTimeUnit(unit);
47
+ var timeUnit = UNITS[unit];
44
48
  var classNames = useClassNames(ComponentToken.Clock);
45
49
  var menuRef = useRef(null);
46
50
  var theme = useTheme();
@@ -57,10 +61,6 @@ var Column = /*#__PURE__*/forwardRef(function (_ref, ref) {
57
61
  if (isVoid(value)) return;
58
62
  (_menuRef$current2 = menuRef.current) === null || _menuRef$current2 === void 0 || _menuRef$current2.scrollTo(value || 0, 100);
59
63
  }, [value]);
60
- var selectedKeys = useMemo(function () {
61
- if (isVoid(value)) return void 0;
62
- return [value];
63
- }, [value]);
64
64
  var styled = {
65
65
  menu: _stylex.props(styles.menu({
66
66
  scrollbarThumbColor: theme.colors[ColorToken.Secondary],
@@ -71,7 +71,7 @@ var Column = /*#__PURE__*/forwardRef(function (_ref, ref) {
71
71
  }
72
72
  };
73
73
  return /*#__PURE__*/React.createElement(Menu, {
74
- selectedKeys: selectedKeys,
74
+ selectedKeys: value,
75
75
  ref: menuRef,
76
76
  className: clsx(styled.menu.className, classNames[ClockClassToken.Column]),
77
77
  style: styled.menu.style,
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { CollapseProps } from "./types";
2
+ import type { CollapseProps } from "musae/types/collapse";
3
3
  declare const Collapse: ({ items, className, defaultActiveKey, activeKey, onChange, style, accordion, }: CollapseProps) => React.JSX.Element | null;
4
4
  export default Collapse;
@@ -1,4 +1,4 @@
1
- import type { ContextValue } from "./types";
1
+ import type { ContextValue } from "musae/types/collapse";
2
2
  /**
3
3
  * @description
4
4
  * `Collapse` Context
@@ -1,5 +1,5 @@
1
1
  import { type Key } from "react";
2
- import type { Value } from "./types";
2
+ import type { Value } from "musae/types/collapse";
3
3
  /**
4
4
  * @description
5
5
  * `Collapse` active key hook
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { CollapseItemProps } from "./types";
2
+ import type { CollapseItemProps } from "musae/types/collapse";
3
3
  declare const CollapseItem: ({ children, label, value }: CollapseItemProps) => React.JSX.Element;
4
4
  export default CollapseItem;
@@ -1,3 +1,3 @@
1
- import type { ContextValue } from "./types";
1
+ import type { ContextValue } from "musae/types/config";
2
2
  declare const Context: import("react").Context<ContextValue>;
3
3
  export default Context;
@@ -2,4 +2,4 @@
2
2
  * @description
3
3
  * configuration
4
4
  */
5
- export declare const useConfiguration: () => import("./types").ContextValue;
5
+ export declare const useConfiguration: () => import("../../types/config").ContextValue;
@@ -6,7 +6,7 @@ var holder = require('../notification/holder.cjs');
6
6
  var className = require('../../utils/class-name.cjs');
7
7
  var context$1 = require('../../locale/context.cjs');
8
8
  var zh_CN = require('../../locale/locales/zh_CN.cjs');
9
- var deepmerge = require('deepmerge');
9
+ var relax = require('@aiszlab/relax');
10
10
 
11
11
  var ConfigProvider = function ConfigProvider(_ref) {
12
12
  var children = _ref.children,
@@ -18,7 +18,7 @@ var ConfigProvider = function ConfigProvider(_ref) {
18
18
  return className.addPrefix(className.CLASS_NAMES, prefix);
19
19
  }, [prefix]);
20
20
  var locale = React.useMemo(function () {
21
- return deepmerge(zh_CN.default, _locale !== null && _locale !== void 0 ? _locale : {});
21
+ return relax.merge(zh_CN.default, _locale !== null && _locale !== void 0 ? _locale : {});
22
22
  }, [_locale]);
23
23
  return /*#__PURE__*/React.createElement(context.default.Provider, {
24
24
  value: {
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { ConfigProps } from "./types";
2
+ import type { ConfigProps } from "musae/types/config";
3
3
  declare const ConfigProvider: ({ children, prefix, locale: _locale }: ConfigProps) => React.JSX.Element;
4
4
  export default ConfigProvider;
@@ -4,7 +4,7 @@ import Holder from '../notification/holder.mjs';
4
4
  import { DEFAULT_CLASS_NAMES, addPrefix, CLASS_NAMES } from '../../utils/class-name.mjs';
5
5
  import { LocaleContext } from '../../locale/context.mjs';
6
6
  import zh_CN from '../../locale/locales/zh_CN.mjs';
7
- import deepmerge from 'deepmerge';
7
+ import { merge } from '@aiszlab/relax';
8
8
 
9
9
  var ConfigProvider = function ConfigProvider(_ref) {
10
10
  var children = _ref.children,
@@ -16,7 +16,7 @@ var ConfigProvider = function ConfigProvider(_ref) {
16
16
  return addPrefix(CLASS_NAMES, prefix);
17
17
  }, [prefix]);
18
18
  var locale = useMemo(function () {
19
- return deepmerge(zh_CN, _locale !== null && _locale !== void 0 ? _locale : {});
19
+ return merge(zh_CN, _locale !== null && _locale !== void 0 ? _locale : {});
20
20
  }, [_locale]);
21
21
  return /*#__PURE__*/React.createElement(Context.Provider, {
22
22
  value: {
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { CountableProps } from "./types";
3
- declare const Countdown: ({ count, children, interval: _interval, disabled, variant, color, shape, size, ripple, className, style, }: CountableProps) => React.JSX.Element;
2
+ import type { CountdownProps } from "musae/types/countdown";
3
+ declare const Countdown: ({ count, children, interval: _interval, disabled, variant, color, shape, size, ripple, className, style, }: CountdownProps) => React.JSX.Element;
4
4
  export default Countdown;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { DatePickerProps } from "./types";
2
+ import type { DatePickerProps } from "musae/types/date-picker";
3
3
  declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
4
4
  export default DatePicker;
@@ -1,4 +1,4 @@
1
- import type { DatePickerProps } from "./types";
1
+ import type { DatePickerProps } from "musae/types/date-picker";
2
2
  import { type RefObject } from "react";
3
3
  import type { PickerRef } from "musae/types/picker";
4
4
  /**
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { DateRangePickerProps } from "./types";
2
+ import type { DateRangePickerProps } from "musae/types/date-range-picker";
3
3
  declare const DateRangePicker: (props: DateRangePickerProps) => React.JSX.Element;
4
4
  export default DateRangePicker;
@@ -1,4 +1,4 @@
1
- import type { DateRangePickerProps } from "./types";
1
+ import type { DateRangePickerProps } from "musae/types/date-range-picker";
2
2
  import { type RefObject } from "react";
3
3
  import { Dayjs } from "dayjs";
4
4
  import type { PickerRef } from "musae/types/picker";
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { DialogProps } from "./types";
2
+ import type { DialogProps } from "musae/types/dialog";
3
3
  declare const Dialog: ({ open, closable, ...props }: DialogProps) => React.JSX.Element;
4
4
  export default Dialog;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { PopupProps } from "./types";
2
+ import type { PopupProps } from "musae/types/dialog";
3
3
  /**
4
4
  * @description
5
5
  * footer
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { PopupProps } from "./types";
2
+ import type { PopupProps } from "musae/types/dialog";
3
3
  declare const Popup: ({ onClose, open, closable, onClosed, className, ...props }: PopupProps) => React.JSX.Element;
4
4
  export default Popup;