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
@@ -1,3 +1,4 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
1
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
4
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
@@ -11,7 +12,7 @@ import { ClickableLinkPlugin } from '@lexical/react/LexicalClickableLinkPlugin';
11
12
  import { ListPlugin } from '@lexical/react/LexicalListPlugin';
12
13
  import CheckListPlugin from './plugins/check-list/index.mjs';
13
14
  import ControlledStatePlugin from './plugins/controlled-state/index.mjs';
14
- import { useIdentity, useDefault } from '@aiszlab/relax';
15
+ import { useIdentity, useDefault, clsx } from '@aiszlab/relax';
15
16
  import { useMessage } from '../message/hooks.mjs';
16
17
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
17
18
  import { useTheme } from '../theme/hooks.mjs';
@@ -23,13 +24,13 @@ import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
23
24
  import { CodeNode } from '@lexical/code';
24
25
  import { CheckableListItemNode, replacement } from './nodes/checkable-list-item.mjs';
25
26
  import ToolbarPlugin from './plugins/toolbar/index.mjs';
26
- import MarkdownShortcutPlugin, { TRANSFORMERS } from './plugins/markdown-shortcut/index.mjs';
27
+ import MarkdownShortcutPlugin from './plugins/markdown-shortcut/index.mjs';
27
28
  import { typography } from '../theme/theme.mjs';
28
29
  import '../checkbox/index.mjs';
29
- import { $convertFromMarkdownString } from '@lexical/markdown';
30
+ import { $convertFromMarkdownString, TRANSFORMERS } from '@lexical/markdown';
30
31
  import styles$1 from '../checkbox/styles.mjs';
31
32
 
32
- var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value"];
33
+ var _excluded = ["placeholder", "disabled", "defaultValue", "onChange", "value", "className", "style"];
33
34
  var styles = {
34
35
  shell: function shell(props) {
35
36
  return [{
@@ -79,7 +80,9 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
79
80
  defaultValue = _ref.defaultValue,
80
81
  onChange = _ref.onChange;
81
82
  _ref.value;
82
- var props = _objectWithoutProperties(_ref, _excluded);
83
+ var className = _ref.className,
84
+ style = _ref.style,
85
+ props = _objectWithoutProperties(_ref, _excluded);
83
86
  var _useIdentity = useIdentity(),
84
87
  _useIdentity2 = _slicedToArray(_useIdentity, 1),
85
88
  id = _useIdentity2[0];
@@ -103,7 +106,7 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
103
106
  codeBackgroundColor: theme.colors[ColorToken.SurfaceContainerHighest]
104
107
  })),
105
108
  editor: {
106
- className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-1y06zzy"
109
+ className: "musaex-1a2a7pz musaex-y0sash musaex-1vgzror musaex-igxgg9 musaex-ktxt4i"
107
110
  },
108
111
  h1: _stylex.props(typography.display.large),
109
112
  h2: _stylex.props(typography.display.medium),
@@ -173,7 +176,7 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
173
176
  // different value usage, use different serialization
174
177
  switch (_use) {
175
178
  case "markdown":
176
- $convertFromMarkdownString(defaultValue, TRANSFORMERS);
179
+ $convertFromMarkdownString(defaultValue, TRANSFORMERS, void 0, true);
177
180
  break;
178
181
  default:
179
182
  editor.setEditorState(editor.parseEditorState(defaultValue));
@@ -193,8 +196,8 @@ var RichTextEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
193
196
  return /*#__PURE__*/React.createElement(LexicalComposer, {
194
197
  initialConfig: initialConfig
195
198
  }, /*#__PURE__*/React.createElement("div", {
196
- className: styled.shell.className,
197
- style: styled.shell.style
199
+ className: clsx(className, styled.shell.className),
200
+ style: _objectSpread(_objectSpread({}, styled.shell.style), style)
198
201
  }, !disabled && /*#__PURE__*/React.createElement(ToolbarPlugin, null), /*#__PURE__*/React.createElement(RichTextPlugin, {
199
202
  contentEditable: /*#__PURE__*/React.createElement(ContentEditable, {
200
203
  className: styled.editor.className,
@@ -1,5 +1,5 @@
1
1
  import { type MouseEvent, type Key } from "react";
2
- import type { Ripple } from "./types";
2
+ import type { Ripple } from "musae/types/ripple";
3
3
  export declare function useRipple(): {
4
4
  ripples: Ripple[];
5
5
  add: (event: MouseEvent<HTMLElement>) => void;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { RippleProps } from "./types";
2
+ import { RippleProps } from "musae/types/ripple";
3
3
  declare const Ripple: ({ ripples, onClear }: RippleProps) => React.JSX.Element[];
4
4
  export default Ripple;
@@ -1,5 +1,5 @@
1
1
  import { type Key } from "react";
2
- import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "../../types/select";
2
+ import type { Mode, ReadableOptions, SelectProps, ValueOrValues } from "musae/types/select";
3
3
  import type { Option } from "musae/types/option";
4
4
  /**
5
5
  * @description
@@ -66,12 +66,15 @@ var Select = function Select(_ref) {
66
66
  className: "musaex-1pgy25r"
67
67
  }
68
68
  };
69
+ var selectedKeys = React.useMemo(function () {
70
+ return Array.from(readableValues.keys());
71
+ }, [readableValues]);
69
72
  return /*#__PURE__*/React.createElement(picker.default, _objectSpread({
70
73
  ref: ref,
71
74
  pickable: /*#__PURE__*/React.createElement(selections.default, {
72
75
  items: menuItems,
73
76
  onSelect: onChange,
74
- selectedKeys: Array.from(readableValues.keys())
77
+ selectedKeys: selectedKeys
75
78
  }),
76
79
  className: relax.clsx(classNames[className.SelectClassToken.Select], className$1, styled.picker.className),
77
80
  style: _objectSpread(_objectSpread({}, styled.picker.style), style),
@@ -1,5 +1,5 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
- import React, { useRef, useCallback } from 'react';
2
+ import React, { useRef, useCallback, useMemo } from 'react';
3
3
  import Picker from '../picker/picker.mjs';
4
4
  import { useOptions, useValue } from './hooks.mjs';
5
5
  import { SelectClassToken } from '../../utils/class-name.mjs';
@@ -64,12 +64,15 @@ var Select = function Select(_ref) {
64
64
  className: "musaex-1pgy25r"
65
65
  }
66
66
  };
67
+ var selectedKeys = useMemo(function () {
68
+ return Array.from(readableValues.keys());
69
+ }, [readableValues]);
67
70
  return /*#__PURE__*/React.createElement(Picker, _objectSpread({
68
71
  ref: ref,
69
72
  pickable: /*#__PURE__*/React.createElement(Selections, {
70
73
  items: menuItems,
71
74
  onSelect: onChange,
72
- selectedKeys: Array.from(readableValues.keys())
75
+ selectedKeys: selectedKeys
73
76
  }),
74
77
  className: clsx(classNames[SelectClassToken.Select], className, styled.picker.className),
75
78
  style: _objectSpread(_objectSpread({}, styled.picker.style), style),
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { SelectionsProps } from "../../types/select";
2
+ import type { SelectionsProps } from "musae/types/select";
3
3
  /**
4
4
  * @description
5
5
  * just display the selections for user selectable like options
@@ -1,4 +1,4 @@
1
1
  import { type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from "react";
2
- import type { SelectorProps, SelectorRef } from "../../types/select";
2
+ import type { SelectorProps, SelectorRef } from "musae/types/select";
3
3
  declare const Selector: ForwardRefExoticComponent<PropsWithoutRef<SelectorProps> & RefAttributes<SelectorRef>>;
4
4
  export default Selector;
@@ -11,10 +11,8 @@ var relax = require('@aiszlab/relax');
11
11
  var toValues = function toValues(valueOrValues) {
12
12
  // empty
13
13
  if (relax.isVoid(valueOrValues)) return [];
14
- // already array
15
- if (relax.isArray(valueOrValues)) return valueOrValues;
16
14
  // convert to array
17
- return [valueOrValues];
15
+ return relax.toArray(valueOrValues);
18
16
  };
19
17
  /**
20
18
  * @description
@@ -1,11 +1,11 @@
1
- import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "../../types/select";
1
+ import type { Filter, ReadableOptions, ToMenuItem, Value, ValueOrValues } from "musae/types/select";
2
2
  import type { Option } from "musae/types/option";
3
3
  import type { MenuItem } from "musae/types/menu";
4
4
  /**
5
5
  * @description
6
6
  * convert to value array
7
7
  */
8
- export declare const toValues: (valueOrValues?: ValueOrValues) => Value[];
8
+ export declare const toValues: (valueOrValues?: ValueOrValues) => (string | number | bigint | Pick<Option, "value" | "label">)[];
9
9
  /**
10
10
  * @description
11
11
  * convert to key
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _typeof from '@babel/runtime/helpers/typeof';
5
- import { isVoid, isArray } from '@aiszlab/relax';
5
+ import { isVoid, toArray } from '@aiszlab/relax';
6
6
 
7
7
  /**
8
8
  * @description
@@ -11,10 +11,8 @@ import { isVoid, isArray } from '@aiszlab/relax';
11
11
  var toValues = function toValues(valueOrValues) {
12
12
  // empty
13
13
  if (isVoid(valueOrValues)) return [];
14
- // already array
15
- if (isArray(valueOrValues)) return valueOrValues;
16
14
  // convert to array
17
- return [valueOrValues];
15
+ return toArray(valueOrValues);
18
16
  };
19
17
  /**
20
18
  * @description
@@ -6,53 +6,24 @@ var React = require('react');
6
6
  var useClassNames = require('../../hooks/use-class-names.cjs');
7
7
  var className = require('../../utils/class-name.cjs');
8
8
  var relax = require('@aiszlab/relax');
9
+ var tokens_stylex = require('../theme/tokens.stylex.cjs');
9
10
  var componentToken = require('../../utils/component-token.cjs');
11
+ var hooks = require('../theme/hooks.cjs');
12
+ var color = require('@aiszlab/fuzzy/color');
10
13
 
11
14
  var styles = {
12
- title: {
13
- width: "musaex-1fvqbsf",
14
- height: "musaex-1bti5vo",
15
- borderRadius: "musaex-ok3b7d",
16
- borderStartStartRadius: null,
17
- borderStartEndRadius: null,
18
- borderEndStartRadius: null,
19
- borderEndEndRadius: null,
20
- borderTopLeftRadius: null,
21
- borderTopRightRadius: null,
22
- borderBottomLeftRadius: null,
23
- borderBottomRightRadius: null,
24
- $$css: true
25
- },
26
- button: {
27
- width: "musaex-1lwsb27",
28
- height: "musaex-1bti5vo",
29
- borderRadius: "musaex-z7qqyb",
30
- borderStartStartRadius: null,
31
- borderStartEndRadius: null,
32
- borderEndStartRadius: null,
33
- borderEndEndRadius: null,
34
- borderTopLeftRadius: null,
35
- borderTopRightRadius: null,
36
- borderBottomLeftRadius: null,
37
- borderBottomRightRadius: null,
38
- $$css: true
39
- },
40
- avatar: {
41
- width: "musaex-rdd3y",
42
- height: "musaex-1bti5vo",
43
- borderRadius: "musaex-z7qqyb",
44
- borderStartStartRadius: null,
45
- borderStartEndRadius: null,
46
- borderEndStartRadius: null,
47
- borderEndEndRadius: null,
48
- borderTopLeftRadius: null,
49
- borderTopRightRadius: null,
50
- borderBottomLeftRadius: null,
51
- borderBottomRightRadius: null,
52
- $$css: true
15
+ variables: function variables(props) {
16
+ return [{
17
+ "--shadow": "musaex-36wvql",
18
+ "--lighter-shadow": "musaex-p8ugqh",
19
+ $$css: true
20
+ }, {
21
+ "----shadow": props.shadow != null ? props.shadow : "initial",
22
+ "----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
23
+ }];
53
24
  },
54
25
  skeleton: {
55
- background: "musaex-1csrv2e",
26
+ background: "musaex-uwpeme",
56
27
  backgroundAttachment: null,
57
28
  backgroundClip: null,
58
29
  backgroundColor: null,
@@ -66,7 +37,7 @@ var styles = {
66
37
  $$css: true
67
38
  },
68
39
  animation: {
69
- background: "musaex-1jvh8g2",
40
+ background: "musaex-1br516c",
70
41
  backgroundAttachment: null,
71
42
  backgroundClip: null,
72
43
  backgroundColor: null,
@@ -86,12 +57,15 @@ var styles = {
86
57
  };
87
58
  var Skeleton = function Skeleton(_ref) {
88
59
  var _ref$animation = _ref.animation,
89
- animation = _ref$animation === void 0 ? false : _ref$animation,
90
- variant = _ref.variant,
60
+ animation = _ref$animation === void 0 ? true : _ref$animation,
91
61
  className$1 = _ref.className,
92
62
  style = _ref.style;
93
63
  var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Skeleton);
94
- var styled = stylex.default.props(!!variant && styles[variant], animation && styles.animation);
64
+ var theme = hooks.useTheme();
65
+ var styled = stylex.default.props(styles.variables({
66
+ shadow: color.hexToRgba(theme.colors.shadow, tokens_stylex.OPACITY.thin),
67
+ lighterShadow: color.hexToRgba(theme.colors.shadow, tokens_stylex.OPACITY.thick)
68
+ }), styles.skeleton, animation && styles.animation);
95
69
  return /*#__PURE__*/React.createElement("div", {
96
70
  className: relax.clsx(classNames[className.SkeletonClassToken.Skeleton], className$1, styled.className),
97
71
  style: _objectSpread(_objectSpread({}, styled.style), style)
@@ -1,4 +1,4 @@
1
- import type { SkeletonProps } from "./types";
1
+ import type { SkeletonProps } from "musae/types/skeleton";
2
2
  import React from "react";
3
- declare const Skeleton: ({ animation, variant, className, style }: SkeletonProps) => React.JSX.Element;
3
+ declare const Skeleton: ({ animation, className, style }: SkeletonProps) => React.JSX.Element;
4
4
  export default Skeleton;
@@ -4,53 +4,24 @@ import React from 'react';
4
4
  import { useClassNames } from '../../hooks/use-class-names.mjs';
5
5
  import { SkeletonClassToken } from '../../utils/class-name.mjs';
6
6
  import { clsx } from '@aiszlab/relax';
7
+ import { OPACITY } from '../theme/tokens.stylex.mjs';
7
8
  import { ComponentToken } from '../../utils/component-token.mjs';
9
+ import { useTheme } from '../theme/hooks.mjs';
10
+ import { hexToRgba } from '@aiszlab/fuzzy/color';
8
11
 
9
12
  var styles = {
10
- title: {
11
- width: "musaex-1fvqbsf",
12
- height: "musaex-1bti5vo",
13
- borderRadius: "musaex-ok3b7d",
14
- borderStartStartRadius: null,
15
- borderStartEndRadius: null,
16
- borderEndStartRadius: null,
17
- borderEndEndRadius: null,
18
- borderTopLeftRadius: null,
19
- borderTopRightRadius: null,
20
- borderBottomLeftRadius: null,
21
- borderBottomRightRadius: null,
22
- $$css: true
23
- },
24
- button: {
25
- width: "musaex-1lwsb27",
26
- height: "musaex-1bti5vo",
27
- borderRadius: "musaex-z7qqyb",
28
- borderStartStartRadius: null,
29
- borderStartEndRadius: null,
30
- borderEndStartRadius: null,
31
- borderEndEndRadius: null,
32
- borderTopLeftRadius: null,
33
- borderTopRightRadius: null,
34
- borderBottomLeftRadius: null,
35
- borderBottomRightRadius: null,
36
- $$css: true
37
- },
38
- avatar: {
39
- width: "musaex-rdd3y",
40
- height: "musaex-1bti5vo",
41
- borderRadius: "musaex-z7qqyb",
42
- borderStartStartRadius: null,
43
- borderStartEndRadius: null,
44
- borderEndStartRadius: null,
45
- borderEndEndRadius: null,
46
- borderTopLeftRadius: null,
47
- borderTopRightRadius: null,
48
- borderBottomLeftRadius: null,
49
- borderBottomRightRadius: null,
50
- $$css: true
13
+ variables: function variables(props) {
14
+ return [{
15
+ "--shadow": "musaex-36wvql",
16
+ "--lighter-shadow": "musaex-p8ugqh",
17
+ $$css: true
18
+ }, {
19
+ "----shadow": props.shadow != null ? props.shadow : "initial",
20
+ "----lighter-shadow": props.lighterShadow != null ? props.lighterShadow : "initial"
21
+ }];
51
22
  },
52
23
  skeleton: {
53
- background: "musaex-1csrv2e",
24
+ background: "musaex-uwpeme",
54
25
  backgroundAttachment: null,
55
26
  backgroundClip: null,
56
27
  backgroundColor: null,
@@ -64,7 +35,7 @@ var styles = {
64
35
  $$css: true
65
36
  },
66
37
  animation: {
67
- background: "musaex-1jvh8g2",
38
+ background: "musaex-1br516c",
68
39
  backgroundAttachment: null,
69
40
  backgroundClip: null,
70
41
  backgroundColor: null,
@@ -84,12 +55,15 @@ var styles = {
84
55
  };
85
56
  var Skeleton = function Skeleton(_ref) {
86
57
  var _ref$animation = _ref.animation,
87
- animation = _ref$animation === void 0 ? false : _ref$animation,
88
- variant = _ref.variant,
58
+ animation = _ref$animation === void 0 ? true : _ref$animation,
89
59
  className = _ref.className,
90
60
  style = _ref.style;
91
61
  var classNames = useClassNames(ComponentToken.Skeleton);
92
- var styled = _stylex.props(!!variant && styles[variant], animation && styles.animation);
62
+ var theme = useTheme();
63
+ var styled = _stylex.props(styles.variables({
64
+ shadow: hexToRgba(theme.colors.shadow, OPACITY.thin),
65
+ lighterShadow: hexToRgba(theme.colors.shadow, OPACITY.thick)
66
+ }), styles.skeleton, animation && styles.animation);
93
67
  return /*#__PURE__*/React.createElement("div", {
94
68
  className: clsx(classNames[SkeletonClassToken.Skeleton], className, styled.className),
95
69
  style: _objectSpread(_objectSpread({}, styled.style), style)
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { SpaceProps } from "./types";
2
+ import type { SpaceProps } from "musae/types/space";
3
3
  declare const Space: ({ gutter, children, className, style, orientation, }: SpaceProps) => React.JSX.Element;
4
4
  export default Space;
@@ -1,2 +1,2 @@
1
- import type { ContextValue } from "./types";
1
+ import type { ContextValue } from "musae/types/steps";
2
2
  export declare const Context: import("react").Context<ContextValue>;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { StepItemProps } from "./types";
2
+ import type { StepItemProps } from "musae/types/steps";
3
3
  declare const Item: ({ leading, title, description, value }: StepItemProps) => React.JSX.Element;
4
4
  export default Item;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { StepsProps } from "./types";
2
+ import type { StepsProps } from "musae/types/steps";
3
3
  /**
4
4
  * @description
5
5
  * `Steps` component
@@ -5,12 +5,13 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
5
5
  var React = require('react');
6
6
  var relax = require('@aiszlab/relax');
7
7
  var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
8
+ var tokens_stylex = require('../theme/tokens.stylex.cjs');
8
9
  var hooks = require('../theme/hooks.cjs');
9
10
  var colors = require('../../utils/colors.cjs');
10
11
  var useClassNames = require('../../hooks/use-class-names.cjs');
11
12
  var className = require('../../utils/class-name.cjs');
12
- var layer = require('../../utils/layer.cjs');
13
13
  var componentToken = require('../../utils/component-token.cjs');
14
+ var color = require('@aiszlab/fuzzy/color');
14
15
  var check = require('../icon/icons/navigation/check.cjs');
15
16
  var close = require('../icon/icons/navigation/close.cjs');
16
17
 
@@ -139,7 +140,7 @@ var styles = {
139
140
  $$css: true
140
141
  },
141
142
  disabled: {
142
- opacity: "musaex-niy1rt",
143
+ opacity: "musaex-1n1gcw9",
143
144
  $$css: true
144
145
  },
145
146
  checked: function checked(props) {
@@ -258,28 +259,28 @@ var Switch = function Switch(_ref) {
258
259
  backgroundColor: theme.colors[colors.ColorToken.SurfaceContainerHighest],
259
260
  color: theme.colors[colors.ColorToken.OnSurfaceVariant]
260
261
  }, disabled && {
261
- borderColor: layer.layer(theme.colors[colors.ColorToken.OnSurface], "medium"),
262
- backgroundColor: layer.layer(theme.colors[colors.ColorToken.SurfaceVariant], "medium"),
263
- color: layer.layer(theme.colors[colors.ColorToken.OnSurface], "thicker")
262
+ borderColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
263
+ backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.SurfaceVariant], tokens_stylex.OPACITY.medium),
264
+ color: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
264
265
  })), isChecked && styles["switch"].checked(_objectSpread({
265
266
  backgroundColor: theme.colors[colors.ColorToken.Primary],
266
267
  color: theme.colors[colors.ColorToken.OnPrimary]
267
268
  }, disabled && {
268
- backgroundColor: layer.layer(theme.colors[colors.ColorToken.OnSurface], "medium"),
269
+ backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.medium),
269
270
  color: theme.colors[colors.ColorToken.Surface]
270
271
  })), disabled && styles["switch"].disabled),
271
272
  slider: stylex.default.props(styles.slider.normal(_objectSpread({
272
273
  backgroundColor: theme.colors[colors.ColorToken.OnSurfaceVariant],
273
274
  color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
274
275
  }, disabled && {
275
- backgroundColor: layer.layer(theme.colors[colors.ColorToken.OnSurface], "thicker"),
276
+ backgroundColor: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker),
276
277
  color: theme.colors[colors.ColorToken.SurfaceContainerHighest]
277
278
  })), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
278
279
  backgroundColor: theme.colors[colors.ColorToken.OnPrimary],
279
280
  color: theme.colors[colors.ColorToken.OnPrimaryContainer]
280
281
  }, disabled && {
281
282
  backgroundColor: theme.colors[colors.ColorToken.Surface],
282
- color: layer.layer(theme.colors[colors.ColorToken.OnSurface], "thicker")
283
+ color: color.hexToRgba(theme.colors[colors.ColorToken.OnSurface], tokens_stylex.OPACITY.thicker)
283
284
  }))),
284
285
  supporting: stylex.default.props(styles.supporting["default"], isChecked && styles.supporting.checked),
285
286
  leading: stylex.default.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { SwitchProps } from "./types";
2
+ import type { SwitchProps } from "musae/types/switch";
3
3
  declare const Switch: ({ value, style, className, icon, checkedChildren, uncheckedChildren, disabled, onChange, }: SwitchProps) => React.JSX.Element;
4
4
  export default Switch;
@@ -3,12 +3,13 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import React from 'react';
4
4
  import { useControlledState, useEvent, clsx } from '@aiszlab/relax';
5
5
  import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
6
+ import { OPACITY } from '../theme/tokens.stylex.mjs';
6
7
  import { useTheme } from '../theme/hooks.mjs';
7
8
  import { ColorToken } from '../../utils/colors.mjs';
8
9
  import { useClassNames } from '../../hooks/use-class-names.mjs';
9
10
  import { SwitchClassToken } from '../../utils/class-name.mjs';
10
- import { layer } from '../../utils/layer.mjs';
11
11
  import { ComponentToken } from '../../utils/component-token.mjs';
12
+ import { hexToRgba } from '@aiszlab/fuzzy/color';
12
13
  import Check from '../icon/icons/navigation/check.mjs';
13
14
  import Close from '../icon/icons/navigation/close.mjs';
14
15
 
@@ -137,7 +138,7 @@ var styles = {
137
138
  $$css: true
138
139
  },
139
140
  disabled: {
140
- opacity: "musaex-niy1rt",
141
+ opacity: "musaex-1n1gcw9",
141
142
  $$css: true
142
143
  },
143
144
  checked: function checked(props) {
@@ -256,28 +257,28 @@ var Switch = function Switch(_ref) {
256
257
  backgroundColor: theme.colors[ColorToken.SurfaceContainerHighest],
257
258
  color: theme.colors[ColorToken.OnSurfaceVariant]
258
259
  }, disabled && {
259
- borderColor: layer(theme.colors[ColorToken.OnSurface], "medium"),
260
- backgroundColor: layer(theme.colors[ColorToken.SurfaceVariant], "medium"),
261
- color: layer(theme.colors[ColorToken.OnSurface], "thicker")
260
+ borderColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
261
+ backgroundColor: hexToRgba(theme.colors[ColorToken.SurfaceVariant], OPACITY.medium),
262
+ color: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
262
263
  })), isChecked && styles["switch"].checked(_objectSpread({
263
264
  backgroundColor: theme.colors[ColorToken.Primary],
264
265
  color: theme.colors[ColorToken.OnPrimary]
265
266
  }, disabled && {
266
- backgroundColor: layer(theme.colors[ColorToken.OnSurface], "medium"),
267
+ backgroundColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.medium),
267
268
  color: theme.colors[ColorToken.Surface]
268
269
  })), disabled && styles["switch"].disabled),
269
270
  slider: _stylex.props(styles.slider.normal(_objectSpread({
270
271
  backgroundColor: theme.colors[ColorToken.OnSurfaceVariant],
271
272
  color: theme.colors[ColorToken.SurfaceContainerHighest]
272
273
  }, disabled && {
273
- backgroundColor: layer(theme.colors[ColorToken.OnSurface], "thicker"),
274
+ backgroundColor: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker),
274
275
  color: theme.colors[ColorToken.SurfaceContainerHighest]
275
276
  })), icon && styles.slider.icon, disabled && styles.slider.disabled, isChecked && styles.slider.checked(_objectSpread({
276
277
  backgroundColor: theme.colors[ColorToken.OnPrimary],
277
278
  color: theme.colors[ColorToken.OnPrimaryContainer]
278
279
  }, disabled && {
279
280
  backgroundColor: theme.colors[ColorToken.Surface],
280
- color: layer(theme.colors[ColorToken.OnSurface], "thicker")
281
+ color: hexToRgba(theme.colors[ColorToken.OnSurface], OPACITY.thicker)
281
282
  }))),
282
283
  supporting: _stylex.props(styles.supporting["default"], isChecked && styles.supporting.checked),
283
284
  leading: _stylex.props(styles.supporting.child, styles.leading["default"], isChecked && styles.leading.checked),
@@ -76,7 +76,9 @@ var Body = function Body() {
76
76
  }));
77
77
  var rows = table.getRowModel().rows;
78
78
  var _isEmpty = relax.isEmpty(rows);
79
- return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(empty.default, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
79
+ return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
80
+ colSpan: table.getAllColumns().length
81
+ }, /*#__PURE__*/React.createElement(empty.default, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
80
82
  return /*#__PURE__*/React.createElement("tr", {
81
83
  key: row.id
82
84
  }, row.getVisibleCells().map(function (cell) {
@@ -74,7 +74,9 @@ var Body = function Body() {
74
74
  }));
75
75
  var rows = table.getRowModel().rows;
76
76
  var _isEmpty = isEmpty(rows);
77
- return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(Empty, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
77
+ return /*#__PURE__*/React.createElement("tbody", null, _isEmpty && (/*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
78
+ colSpan: table.getAllColumns().length
79
+ }, /*#__PURE__*/React.createElement(Empty, null)))), !_isEmpty && table.getRowModel().rows.map(function (row) {
78
80
  return /*#__PURE__*/React.createElement("tr", {
79
81
  key: row.id
80
82
  }, row.getVisibleCells().map(function (cell) {
@@ -1,3 +1,3 @@
1
- import type { ContextValue } from "./types";
1
+ import type { ContextValue } from "musae/types/tabs";
2
2
  declare const Context: import("react").Context<ContextValue | null>;
3
3
  export default Context;
@@ -1,11 +1,11 @@
1
1
  import { type Key, type RefObject } from "react";
2
- import type { TabItem } from "./types";
2
+ import type { TabItem } from "musae/types/tabs";
3
3
  import type { Partialable } from "@aiszlab/relax/types";
4
4
  /**
5
5
  * @description
6
6
  * use tab context
7
7
  */
8
- export declare const useTabsContext: () => import("./types").ContextValue;
8
+ export declare const useTabsContext: () => import("musae/types/tabs").ContextValue;
9
9
  /**
10
10
  * @description
11
11
  * tabs
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { type NavigationProps } from "./types";
2
+ import { type NavigationProps } from "musae/types/tabs";
3
3
  declare const Navigation: ({ onChange }: NavigationProps) => React.JSX.Element;
4
4
  export default Navigation;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { type PanelsProps } from "./types";
2
+ import { type PanelsProps } from "musae/types/tabs";
3
3
  declare const Panels: ({ forceRender, destroyable, activatedKeys }: PanelsProps) => React.JSX.Element;
4
4
  export default Panels;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { TabItemProps } from "./types";
2
+ import type { TabItemProps } from "musae/types/tabs";
3
3
  declare const Tab: React.ForwardRefExoticComponent<TabItemProps & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default Tab;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { TabsProps } from "./types";
2
+ import type { TabsProps } from "musae/types/tabs";
3
3
  declare const Tabs: ({ items, className, style, activeKey: _activeKey, defaultActiveKey, forceRender, destroyable, }: TabsProps) => React.JSX.Element | null;
4
4
  export default Tabs;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import type { TagProps } from "./types";
2
+ import type { TagProps } from "musae/types/tag";
3
3
  declare const Tag: ({ children, size, className, style, closable, onClose, leading, }: TagProps) => React.JSX.Element;
4
4
  export default Tag;