morya-ui 0.2.9 → 0.3.0

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 (431) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/{Button-DO5oukfg.js → Button-B5X_R4Md.js} +2 -2
  3. package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
  4. package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
  5. package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
  6. package/dist/{Icon-B6IBrJ5S.js → Icon-lcN1rS87.js} +109 -105
  7. package/dist/{Pagination-CUwCtWhz.js → Pagination-CVrH8Ypi.js} +3 -3
  8. package/dist/Popover-BQ07q4VV.js +179 -0
  9. package/dist/ProgressSpinner-BeWVF6Jv.js +105 -0
  10. package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
  11. package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
  12. package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
  13. package/dist/Tooltip-D5DO0B3z.js +105 -0
  14. package/dist/VirtualScroller-CHoFCmpP.js +75 -0
  15. package/dist/accordion/index.js +42 -39
  16. package/dist/accordion/style.css +267 -17
  17. package/dist/auto-complete/index.js +185 -124
  18. package/dist/auto-complete/style.css +433 -56
  19. package/dist/auto-complete/style.js +2 -0
  20. package/dist/avatar/index.js +2 -2
  21. package/dist/avatar/style.css +229 -22
  22. package/dist/badge/index.js +25 -20
  23. package/dist/badge/style.css +249 -24
  24. package/dist/block-ui/index.js +26 -13
  25. package/dist/block-ui/style.css +224 -17
  26. package/dist/breadcrumb/index.js +2 -2
  27. package/dist/breadcrumb/style.css +224 -17
  28. package/dist/button/index.js +2 -2
  29. package/dist/button/style.css +225 -18
  30. package/dist/card/index.js +1 -1
  31. package/dist/card/style.css +224 -17
  32. package/dist/carousel/index.js +3 -3
  33. package/dist/carousel/style.css +225 -18
  34. package/dist/cascade-select/index.js +172 -143
  35. package/dist/cascade-select/style.css +448 -61
  36. package/dist/cascade-select/style.js +1 -0
  37. package/dist/checkbox/index.js +2 -2
  38. package/dist/checkbox/style.css +224 -17
  39. package/dist/chip/index.js +2 -2
  40. package/dist/chip/style.css +232 -19
  41. package/dist/command-menu/index.js +58 -45
  42. package/dist/command-menu/style.css +230 -21
  43. package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
  44. package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
  45. package/dist/components/Accordion/styles.css +43 -0
  46. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
  47. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  48. package/dist/components/AutoComplete/styles.css +9 -35
  49. package/dist/components/AutoComplete/types.d.ts +8 -0
  50. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  51. package/dist/components/Avatar/styles.css +4 -4
  52. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  53. package/dist/components/Badge/styles.css +25 -7
  54. package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
  55. package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
  56. package/dist/components/BlockUI/types.d.ts +3 -0
  57. package/dist/components/BlockUI/types.d.ts.map +1 -1
  58. package/dist/components/Button/index.d.ts.map +1 -1
  59. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  60. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  61. package/dist/components/CascadeSelect/styles.css +39 -38
  62. package/dist/components/CascadeSelect/types.d.ts +3 -0
  63. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  64. package/dist/components/Chip/styles.css +7 -1
  65. package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
  66. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  67. package/dist/components/CommandMenu/styles.css +2 -0
  68. package/dist/components/CommandMenu/types.d.ts +3 -0
  69. package/dist/components/CommandMenu/types.d.ts.map +1 -1
  70. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
  71. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  72. package/dist/components/ConfigProvider/types.d.ts +1 -1
  73. package/dist/components/ConfigProvider/types.d.ts.map +1 -1
  74. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
  75. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  76. package/dist/components/ConfirmDialog/types.d.ts +3 -0
  77. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  78. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
  79. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  80. package/dist/components/ConfirmPopup/types.d.ts +3 -0
  81. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  82. package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
  83. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  84. package/dist/components/ContextMenu/styles.css +2 -0
  85. package/dist/components/ContextMenu/types.d.ts +3 -0
  86. package/dist/components/ContextMenu/types.d.ts.map +1 -1
  87. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  88. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  89. package/dist/components/DatePicker/types.d.ts +3 -0
  90. package/dist/components/DatePicker/types.d.ts.map +1 -1
  91. package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
  92. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  93. package/dist/components/Dialog/index.d.ts.map +1 -1
  94. package/dist/components/Dialog/styles.css +190 -4
  95. package/dist/components/Dialog/types.d.ts +3 -0
  96. package/dist/components/Dialog/types.d.ts.map +1 -1
  97. package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
  98. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  99. package/dist/components/Drawer/styles.css +189 -4
  100. package/dist/components/Drawer/types.d.ts +3 -0
  101. package/dist/components/Drawer/types.d.ts.map +1 -1
  102. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -0
  103. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  104. package/dist/components/Dropdown/styles.css +4 -0
  105. package/dist/components/Dropdown/types.d.ts +3 -0
  106. package/dist/components/Dropdown/types.d.ts.map +1 -1
  107. package/dist/components/Empty/index.d.ts.map +1 -1
  108. package/dist/components/Empty/styles.css +6 -6
  109. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  110. package/dist/components/Fieldset/styles.css +17 -6
  111. package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
  112. package/dist/components/FloatLabel/styles.css +19 -7
  113. package/dist/components/Form/styles.css +21 -0
  114. package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
  115. package/dist/components/Icon/index.d.ts.map +1 -1
  116. package/dist/components/Icon/styles.css +1 -1
  117. package/dist/components/Input/index.d.ts.map +1 -1
  118. package/dist/components/Input/styles.css +19 -2
  119. package/dist/components/InputTags/styles.css +3 -1
  120. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  121. package/dist/components/Layout/styles.css +26 -16
  122. package/dist/components/Layout/types.d.ts +4 -2
  123. package/dist/components/Layout/types.d.ts.map +1 -1
  124. package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
  125. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  126. package/dist/components/Listbox/styles.css +10 -0
  127. package/dist/components/Listbox/types.d.ts +5 -0
  128. package/dist/components/Listbox/types.d.ts.map +1 -1
  129. package/dist/components/Loading/Loading.vue.d.ts +2 -0
  130. package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
  131. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
  132. package/dist/components/Loading/loading.d.ts.map +1 -1
  133. package/dist/components/Loading/styles.css +25 -17
  134. package/dist/components/Loading/types.d.ts +3 -0
  135. package/dist/components/Loading/types.d.ts.map +1 -1
  136. package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
  137. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  138. package/dist/components/MegaMenu/styles.css +1 -0
  139. package/dist/components/MegaMenu/types.d.ts +3 -0
  140. package/dist/components/MegaMenu/types.d.ts.map +1 -1
  141. package/dist/components/Menu/Menu.vue.d.ts +3 -1
  142. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  143. package/dist/components/Menu/styles.css +10 -9
  144. package/dist/components/Menu/types.d.ts +3 -0
  145. package/dist/components/Menu/types.d.ts.map +1 -1
  146. package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
  147. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  148. package/dist/components/Menubar/styles.css +4 -0
  149. package/dist/components/Menubar/types.d.ts +3 -0
  150. package/dist/components/Menubar/types.d.ts.map +1 -1
  151. package/dist/components/Message/Message.vue.d.ts +2 -0
  152. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  153. package/dist/components/Message/types.d.ts +3 -0
  154. package/dist/components/Message/types.d.ts.map +1 -1
  155. package/dist/components/MeterGroup/styles.css +2 -2
  156. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  157. package/dist/components/Panel/styles.css +21 -6
  158. package/dist/components/Popover/Popover.vue.d.ts +2 -0
  159. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  160. package/dist/components/Popover/types.d.ts +3 -0
  161. package/dist/components/Popover/types.d.ts.map +1 -1
  162. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  163. package/dist/components/ProgressBar/styles.css +30 -8
  164. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
  165. package/dist/components/ProgressSpinner/styles.css +3 -3
  166. package/dist/components/Result/index.d.ts.map +1 -1
  167. package/dist/components/Result/styles.css +17 -17
  168. package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
  169. package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
  170. package/dist/components/Scrollbar/styles.css +3 -3
  171. package/dist/components/Select/Select.vue.d.ts +10 -3
  172. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  173. package/dist/components/Select/index.d.ts.map +1 -1
  174. package/dist/components/Select/styles.css +13 -91
  175. package/dist/components/Select/types.d.ts +8 -0
  176. package/dist/components/Select/types.d.ts.map +1 -1
  177. package/dist/components/Sidebar/styles.css +8 -10
  178. package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
  179. package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
  180. package/dist/components/Slider/Slider.vue.d.ts +1 -1
  181. package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
  182. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  183. package/dist/components/SpeedDial/types.d.ts +3 -0
  184. package/dist/components/SpeedDial/types.d.ts.map +1 -1
  185. package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
  186. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  187. package/dist/components/SplitButton/types.d.ts +3 -0
  188. package/dist/components/SplitButton/types.d.ts.map +1 -1
  189. package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
  190. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  191. package/dist/components/Splitter/index.d.ts +1 -1
  192. package/dist/components/Splitter/index.d.ts.map +1 -1
  193. package/dist/components/Splitter/styles.css +12 -0
  194. package/dist/components/Splitter/types.d.ts +9 -3
  195. package/dist/components/Splitter/types.d.ts.map +1 -1
  196. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  197. package/dist/components/Status/index.d.ts.map +1 -1
  198. package/dist/components/Status/styles.css +18 -16
  199. package/dist/components/Switch/Switch.vue.d.ts +1 -1
  200. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  201. package/dist/components/Table/styles.css +8 -8
  202. package/dist/components/Tag/styles.css +4 -2
  203. package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
  204. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  205. package/dist/components/TieredMenu/styles.css +2 -0
  206. package/dist/components/TieredMenu/types.d.ts +3 -0
  207. package/dist/components/TieredMenu/types.d.ts.map +1 -1
  208. package/dist/components/Toast/Toast.vue.d.ts +2 -0
  209. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  210. package/dist/components/Toast/types.d.ts +3 -0
  211. package/dist/components/Toast/types.d.ts.map +1 -1
  212. package/dist/components/Toolbar/styles.css +1 -0
  213. package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
  214. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  215. package/dist/components/Tooltip/types.d.ts +3 -0
  216. package/dist/components/Tooltip/types.d.ts.map +1 -1
  217. package/dist/components/Tree/styles.css +1 -1
  218. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  219. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  220. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
  221. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  222. package/dist/components/TreeSelect/styles.css +5 -57
  223. package/dist/components/TreeSelect/types.d.ts +3 -0
  224. package/dist/components/TreeSelect/types.d.ts.map +1 -1
  225. package/dist/components/TreeTable/styles.css +1 -1
  226. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
  227. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  228. package/dist/components/VirtualScroller/index.d.ts +1 -1
  229. package/dist/components/VirtualScroller/index.d.ts.map +1 -1
  230. package/dist/components/VirtualScroller/types.d.ts +5 -0
  231. package/dist/components/VirtualScroller/types.d.ts.map +1 -1
  232. package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
  233. package/dist/config-provider/index.js +5 -3
  234. package/dist/config-provider/style.css +243 -19
  235. package/dist/confirm-dialog/index.js +87 -74
  236. package/dist/confirm-dialog/style.css +415 -22
  237. package/dist/confirm-popup/index.js +82 -68
  238. package/dist/confirm-popup/style.css +225 -18
  239. package/dist/context-menu/index.js +112 -99
  240. package/dist/context-menu/style.css +230 -21
  241. package/dist/data-view/index.js +4 -4
  242. package/dist/data-view/style.css +227 -20
  243. package/dist/date-picker/index.js +166 -152
  244. package/dist/date-picker/style.css +225 -18
  245. package/dist/dialog/index.js +76 -63
  246. package/dist/dialog/style.css +415 -22
  247. package/dist/divider/style.css +224 -17
  248. package/dist/dock/index.js +3 -3
  249. package/dist/dock/style.css +225 -18
  250. package/dist/drawer/index.js +72 -61
  251. package/dist/drawer/style.css +414 -22
  252. package/dist/dropdown/index.js +145 -131
  253. package/dist/dropdown/style.css +232 -21
  254. package/dist/empty/index.js +3 -3
  255. package/dist/empty/style.css +231 -24
  256. package/dist/fieldset/index.js +19 -19
  257. package/dist/fieldset/style.css +242 -24
  258. package/dist/file-upload/index.js +3 -3
  259. package/dist/file-upload/style.css +225 -18
  260. package/dist/flex/index.js +2 -2
  261. package/dist/flex/style.css +224 -17
  262. package/dist/float-label/index.js +1 -1
  263. package/dist/float-label/style.css +243 -24
  264. package/dist/fluid/index.js +1 -1
  265. package/dist/fluid/style.css +224 -17
  266. package/dist/form/index.js +2 -2
  267. package/dist/form/style.css +245 -17
  268. package/dist/gallery/index.js +4 -4
  269. package/dist/gallery/style.css +228 -21
  270. package/dist/grid/index.js +1 -1
  271. package/dist/grid/style.css +224 -17
  272. package/dist/icon/index.js +1 -1
  273. package/dist/icon/style.css +225 -18
  274. package/dist/{icon-iOBeyIRp.js → icon-DWXkh-RM.js} +1 -1
  275. package/dist/icon-field/index.js +2 -2
  276. package/dist/icon-field/style.css +243 -19
  277. package/dist/index.d.ts +5 -5
  278. package/dist/index.d.ts.map +1 -1
  279. package/dist/index.js +5283 -4578
  280. package/dist/inplace/index.js +1 -1
  281. package/dist/inplace/style.css +224 -17
  282. package/dist/input/index.js +4 -4
  283. package/dist/input/style.css +244 -20
  284. package/dist/input-color/index.js +3 -3
  285. package/dist/input-color/style.css +224 -17
  286. package/dist/input-group/index.js +1 -1
  287. package/dist/input-group/style.css +224 -17
  288. package/dist/input-number/index.js +4 -4
  289. package/dist/input-number/style.css +225 -18
  290. package/dist/input-otp/index.js +3 -3
  291. package/dist/input-otp/style.css +224 -17
  292. package/dist/input-password/index.js +4 -4
  293. package/dist/input-password/style.css +225 -18
  294. package/dist/input-tags/index.js +4 -4
  295. package/dist/input-tags/style.css +228 -19
  296. package/dist/knob/index.js +1 -1
  297. package/dist/knob/style.css +224 -17
  298. package/dist/label/index.js +1 -1
  299. package/dist/label/style.css +224 -17
  300. package/dist/layout/index.js +7 -7
  301. package/dist/layout/style.css +254 -37
  302. package/dist/listbox/index.js +142 -87
  303. package/dist/listbox/style.css +265 -20
  304. package/dist/listbox/style.js +1 -0
  305. package/dist/loading/index.js +195 -156
  306. package/dist/loading/style.css +249 -34
  307. package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
  308. package/dist/mega-menu/index.js +131 -119
  309. package/dist/mega-menu/style.css +226 -18
  310. package/dist/menu/index.js +278 -261
  311. package/dist/menu/style.css +238 -30
  312. package/dist/menubar/index.js +145 -133
  313. package/dist/menubar/style.css +232 -21
  314. package/dist/message/index.js +120 -107
  315. package/dist/message/style.css +225 -18
  316. package/dist/meter-group/index.js +1 -1
  317. package/dist/meter-group/style.css +226 -19
  318. package/dist/order-list/index.js +4 -4
  319. package/dist/order-list/style.css +225 -18
  320. package/dist/page/index.js +3 -3
  321. package/dist/page/style.css +225 -18
  322. package/dist/pagination/index.js +1 -1
  323. package/dist/pagination/style.css +225 -18
  324. package/dist/panel/index.js +31 -31
  325. package/dist/panel/style.css +246 -24
  326. package/dist/pick-list/index.js +4 -4
  327. package/dist/pick-list/style.css +225 -18
  328. package/dist/popover/index.js +1 -1
  329. package/dist/popover/style.css +224 -17
  330. package/dist/progress-bar/index.js +5 -2
  331. package/dist/progress-bar/style.css +254 -25
  332. package/dist/progress-spinner/index.js +1 -1
  333. package/dist/progress-spinner/style.css +227 -20
  334. package/dist/radio/index.js +2 -2
  335. package/dist/radio/style.css +224 -17
  336. package/dist/rating/index.js +4 -4
  337. package/dist/rating/style.css +225 -18
  338. package/dist/result/index.js +3 -3
  339. package/dist/result/style.css +242 -35
  340. package/dist/scroll-top/index.js +4 -4
  341. package/dist/scroll-top/style.css +228 -21
  342. package/dist/scrollbar/index.js +1 -1
  343. package/dist/scrollbar/style.css +227 -20
  344. package/dist/select/index.js +247 -152
  345. package/dist/select/style.css +450 -114
  346. package/dist/select/style.js +2 -0
  347. package/dist/select-button/index.js +2 -2
  348. package/dist/select-button/style.css +224 -17
  349. package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
  350. package/dist/shared/componentDefaults.d.ts +62 -0
  351. package/dist/shared/componentDefaults.d.ts.map +1 -1
  352. package/dist/shared/config.d.ts +13 -2
  353. package/dist/shared/config.d.ts.map +1 -1
  354. package/dist/shared/styles/control-suffix.css +13 -2
  355. package/dist/shared/styles/select-overlay.css +167 -0
  356. package/dist/shared/useFloatingViewportSync.d.ts +10 -0
  357. package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
  358. package/dist/shared/usePauseOffscreen.d.ts +14 -0
  359. package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
  360. package/dist/sidebar/index.js +4 -4
  361. package/dist/sidebar/style.css +233 -28
  362. package/dist/skeleton/index.js +34 -19
  363. package/dist/skeleton/style.css +224 -17
  364. package/dist/slider/index.js +3 -3
  365. package/dist/slider/style.css +224 -17
  366. package/dist/space/index.js +2 -2
  367. package/dist/space/style.css +224 -17
  368. package/dist/speed-dial/index.js +112 -98
  369. package/dist/speed-dial/style.css +225 -18
  370. package/dist/split-button/index.js +106 -92
  371. package/dist/split-button/style.css +225 -18
  372. package/dist/splitter/index.js +94 -80
  373. package/dist/splitter/style.css +236 -17
  374. package/dist/status/index.js +30 -26
  375. package/dist/status/style.css +243 -34
  376. package/dist/stepper/index.js +2 -2
  377. package/dist/stepper/style.css +225 -18
  378. package/dist/styles/base.css +128 -5
  379. package/dist/styles.css +1 -1
  380. package/dist/switch/index.js +2 -2
  381. package/dist/switch/style.css +224 -17
  382. package/dist/table/index.js +11 -15
  383. package/dist/table/style.css +239 -32
  384. package/dist/tabs/index.js +4 -4
  385. package/dist/tabs/style.css +228 -21
  386. package/dist/tag/index.js +3 -3
  387. package/dist/tag/style.css +229 -20
  388. package/dist/terminal/index.js +3 -3
  389. package/dist/terminal/style.css +224 -17
  390. package/dist/textarea/index.js +4 -4
  391. package/dist/textarea/style.css +225 -18
  392. package/dist/theme/index.d.ts +4 -0
  393. package/dist/theme/index.d.ts.map +1 -1
  394. package/dist/theme/motionPresets.d.ts +30 -0
  395. package/dist/theme/motionPresets.d.ts.map +1 -0
  396. package/dist/theme/styles.css +96 -12
  397. package/dist/theme/tokens.d.ts +17 -0
  398. package/dist/theme/tokens.d.ts.map +1 -1
  399. package/dist/theme/useMotion.d.ts.map +1 -1
  400. package/dist/theme/useMotionTransition.d.ts +19 -0
  401. package/dist/theme/useMotionTransition.d.ts.map +1 -0
  402. package/dist/tiered-menu/index.js +81 -67
  403. package/dist/tiered-menu/style.css +230 -21
  404. package/dist/timeline/index.js +3 -3
  405. package/dist/timeline/style.css +228 -21
  406. package/dist/toast/index.js +49 -36
  407. package/dist/toast/style.css +225 -18
  408. package/dist/toggle-button/index.js +3 -3
  409. package/dist/toggle-button/style.css +225 -18
  410. package/dist/toolbar/index.js +1 -1
  411. package/dist/toolbar/style.css +225 -17
  412. package/dist/tooltip/index.js +1 -1
  413. package/dist/tooltip/style.css +224 -17
  414. package/dist/tree/index.js +5 -8
  415. package/dist/tree/style.css +226 -19
  416. package/dist/tree-select/index.js +227 -203
  417. package/dist/tree-select/style.css +415 -81
  418. package/dist/tree-select/style.js +1 -0
  419. package/dist/tree-table/index.js +4 -4
  420. package/dist/tree-table/style.css +226 -19
  421. package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
  422. package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
  423. package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
  424. package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
  425. package/dist/virtual-scroller/index.js +2 -56
  426. package/dist/virtual-scroller/style.css +227 -20
  427. package/package.json +2 -1
  428. package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
  429. package/dist/Popover-Dq_p0vib.js +0 -166
  430. package/dist/ProgressSpinner-DuBpPkna.js +0 -90
  431. package/dist/Tooltip-CU1xFt_N.js +0 -93
@@ -60,9 +60,22 @@
60
60
  --m-z-toast: calc(var(--m-z-base) + 100);
61
61
  --m-z-popper: 40;
62
62
 
63
- --m-control-affix-size: 2rem;
63
+ /* Affix hitbox tracks control height so small/compact shells do not overflow */
64
+ --m-control-affix-size: calc(
65
+ var(--m-control-height-medium) - 2 * var(--m-border-width)
66
+ );
64
67
  --m-control-affix-gap: 2.35rem;
65
68
  --m-control-affix-padding: 2.5rem;
69
+ --m-meter-track-height: var(--m-space-5);
70
+ --m-tree-toggler-size: var(--m-checkbox-control-size);
71
+ --m-nav-rail-width: 12.5rem;
72
+ --m-nav-rail-collapsed-width: 4rem;
73
+ --m-layout-header-height: calc(
74
+ var(--m-control-height-medium) + 2 * var(--m-space-3)
75
+ );
76
+ --m-layout-footer-height: calc(
77
+ var(--m-control-height-medium) + 2 * var(--m-space-2)
78
+ );
66
79
  --m-space-1: 0.25rem;
67
80
  --m-space-2: 0.5rem;
68
81
  --m-space-3: 0.75rem;
@@ -80,7 +93,7 @@
80
93
  --m-motion-ease: cubic-bezier(0.2, 0, 0, 1);
81
94
  --m-motion-enter: 180ms;
82
95
  --m-motion-exit: 130ms;
83
- --m-motion-distance: 0.5rem;
96
+ --m-motion-distance: 1rem;
84
97
  --m-motion-spin: 1s;
85
98
  --m-motion-spin-dash: 1.5s;
86
99
  --m-motion-spin-fast: 0.8s;
@@ -89,6 +102,11 @@
89
102
  --m-motion-pulse: 1.2s;
90
103
  --m-motion-scrollbar-show: 340ms;
91
104
  --m-motion-scrollbar-hide: 120ms;
105
+ --m-motion-loading-aurora: 3s;
106
+ --m-motion-loading-bounce: 0.6s;
107
+ --m-motion-loading-pulse: 1.8s;
108
+ --m-motion-loading-stardust: 1.6s;
109
+ --m-motion-loading-circular-rotate: 2s;
92
110
  --m-dataview-grid-min: 10rem;
93
111
  --m-tree-indent: 0.7rem;
94
112
  --m-tree-indent-padding: var(--m-space-3);
@@ -135,6 +153,20 @@
135
153
  --m-motion-enter: 100ms;
136
154
  --m-motion-exit: 80ms;
137
155
  --m-motion-distance: 0;
156
+ /* Looping indicators: keep a short pulse so state is still perceptible */
157
+ --m-motion-spin: 0ms;
158
+ --m-motion-spin-dash: 0ms;
159
+ --m-motion-spin-fast: 0ms;
160
+ --m-motion-spin-medium: 0ms;
161
+ --m-motion-skeleton: 0ms;
162
+ --m-motion-pulse: 0ms;
163
+ --m-motion-scrollbar-show: 160ms;
164
+ --m-motion-scrollbar-hide: 80ms;
165
+ --m-motion-loading-aurora: 0ms;
166
+ --m-motion-loading-bounce: 0ms;
167
+ --m-motion-loading-pulse: 0ms;
168
+ --m-motion-loading-stardust: 0ms;
169
+ --m-motion-loading-circular-rotate: 0ms;
138
170
  }
139
171
 
140
172
  :root[data-m-motion="none"] {
@@ -143,6 +175,64 @@
143
175
  --m-motion-enter: 0ms;
144
176
  --m-motion-exit: 0ms;
145
177
  --m-motion-distance: 0;
178
+ --m-motion-spin: 0ms;
179
+ --m-motion-spin-dash: 0ms;
180
+ --m-motion-spin-fast: 0ms;
181
+ --m-motion-spin-medium: 0ms;
182
+ --m-motion-skeleton: 0ms;
183
+ --m-motion-pulse: 0ms;
184
+ --m-motion-scrollbar-show: 0ms;
185
+ --m-motion-scrollbar-hide: 0ms;
186
+ --m-motion-loading-aurora: 0ms;
187
+ --m-motion-loading-bounce: 0ms;
188
+ --m-motion-loading-pulse: 0ms;
189
+ --m-motion-loading-stardust: 0ms;
190
+ --m-motion-loading-circular-rotate: 0ms;
191
+ }
192
+
193
+ /*
194
+ * Global motion policy (complements per-component rules):
195
+ * - `reduced` / OS prefers-reduced-motion: keep short paint transitions; stop loops
196
+ * and layout/transform size animation.
197
+ * - `none`: zero all transition/animation durations.
198
+ */
199
+ @media (prefers-reduced-motion: reduce) {
200
+ html:not([data-m-ignore-reduced-motion]) *,
201
+ html:not([data-m-ignore-reduced-motion]) *::before,
202
+ html:not([data-m-ignore-reduced-motion]) *::after {
203
+ animation-duration: 0.01ms !important;
204
+ animation-iteration-count: 1 !important;
205
+ transition-property: background-color, border-color, color, opacity, box-shadow,
206
+ outline, fill, stroke, stroke-dashoffset !important;
207
+ }
208
+ }
209
+
210
+ [data-m-motion="reduced"] *,
211
+ [data-m-motion="reduced"] *::before,
212
+ [data-m-motion="reduced"] *::after {
213
+ animation-duration: 0.01ms !important;
214
+ animation-iteration-count: 1 !important;
215
+ transition-property: background-color, border-color, color, opacity, box-shadow, outline,
216
+ fill, stroke, stroke-dashoffset !important;
217
+ }
218
+
219
+ [data-m-motion="none"] *,
220
+ [data-m-motion="none"] *::before,
221
+ [data-m-motion="none"] *::after {
222
+ animation-duration: 0.01ms !important;
223
+ animation-iteration-count: 1 !important;
224
+ transition-duration: 0.01ms !important;
225
+ scroll-behavior: auto !important;
226
+ }
227
+
228
+ /* Off-screen looping indicators (usePauseOffscreen → data-m-anim-paused) */
229
+ [data-m-anim-paused],
230
+ [data-m-anim-paused]::before,
231
+ [data-m-anim-paused]::after,
232
+ [data-m-anim-paused] *,
233
+ [data-m-anim-paused] *::before,
234
+ [data-m-anim-paused] *::after {
235
+ animation-play-state: paused !important;
146
236
  }
147
237
 
148
238
  /* Global density: scales spacing + control heights (Vuetify-inspired, WD tokens) */
@@ -158,6 +248,8 @@
158
248
  --m-control-affix-padding: 2.15rem;
159
249
  --m-control-affix-gap: 2rem;
160
250
  --m-checkbox-control-size: 1rem;
251
+ --m-nav-rail-width: 15rem;
252
+ --m-nav-rail-collapsed-width: 3.25rem;
161
253
  --m-space-1: 0.2rem;
162
254
  --m-space-2: 0.4rem;
163
255
  --m-space-3: 0.6rem;
@@ -185,6 +277,8 @@
185
277
  --m-control-affix-padding: 2.85rem;
186
278
  --m-control-affix-gap: 2.65rem;
187
279
  --m-checkbox-control-size: 1.25rem;
280
+ --m-nav-rail-width: 18rem;
281
+ --m-nav-rail-collapsed-width: 4.5rem;
188
282
  --m-space-1: 0.3rem;
189
283
  --m-space-2: 0.6rem;
190
284
  --m-space-3: 0.9rem;
@@ -215,11 +309,6 @@
215
309
  --m-layout-footer-height: 2.5rem;
216
310
  }
217
311
 
218
- [data-m-density="compact"] .m-layout-sider {
219
- --m-layout-sider-width: 15rem;
220
- --m-layout-sider-collapsed-width: 3.25rem;
221
- }
222
-
223
312
  [data-m-density="spacious"] .m-layout-header {
224
313
  --m-layout-header-height: 4rem;
225
314
  }
@@ -228,11 +317,6 @@
228
317
  --m-layout-footer-height: 3.5rem;
229
318
  }
230
319
 
231
- [data-m-density="spacious"] .m-layout-sider {
232
- --m-layout-sider-width: 18rem;
233
- --m-layout-sider-collapsed-width: 4.5rem;
234
- }
235
-
236
320
  [data-theme="dark"] {
237
321
  --m-color-primary: #60a5fa;
238
322
  --m-color-primary-hover: #93c5fd;
@@ -319,6 +403,8 @@
319
403
  .m-datepicker,
320
404
  .m-listbox,
321
405
  .m-togglebutton,
406
+ .m-select,
407
+ .m-textarea,
322
408
  .m-selectbutton,
323
409
  .m-inputotp,
324
410
  .m-knob,
@@ -488,7 +574,7 @@
488
574
  .m-scale-fade-enter-from,
489
575
  .m-scale-fade-leave-to {
490
576
  opacity: 0;
491
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.98);
577
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
492
578
  }
493
579
 
494
580
  .m-slide-fade-enter-active {
@@ -509,20 +595,101 @@
509
595
  transform: translateY(calc(var(--m-motion-distance) * -1));
510
596
  }
511
597
 
598
+ /* Generic center zoom (opacity + scale on the transitioning root) */
599
+ .m-zoom-enter-active {
600
+ transition:
601
+ opacity var(--m-motion-enter) var(--m-motion-ease),
602
+ transform var(--m-motion-enter) var(--m-motion-ease);
603
+ }
604
+
605
+ .m-zoom-leave-active {
606
+ transition:
607
+ opacity var(--m-motion-exit) var(--m-motion-ease),
608
+ transform var(--m-motion-exit) var(--m-motion-ease);
609
+ }
610
+
611
+ .m-zoom-enter-from,
612
+ .m-zoom-leave-to {
613
+ opacity: 0;
614
+ transform: scale(0.9);
615
+ }
616
+
617
+ .m-slide-up-enter-active,
618
+ .m-slide-down-enter-active,
619
+ .m-slide-left-enter-active,
620
+ .m-slide-right-enter-active {
621
+ transition:
622
+ opacity var(--m-motion-enter) var(--m-motion-ease),
623
+ transform var(--m-motion-enter) var(--m-motion-ease);
624
+ }
625
+
626
+ .m-slide-up-leave-active,
627
+ .m-slide-down-leave-active,
628
+ .m-slide-left-leave-active,
629
+ .m-slide-right-leave-active {
630
+ transition:
631
+ opacity var(--m-motion-exit) var(--m-motion-ease),
632
+ transform var(--m-motion-exit) var(--m-motion-ease);
633
+ }
634
+
635
+ .m-slide-up-enter-from,
636
+ .m-slide-up-leave-to {
637
+ opacity: 0;
638
+ transform: translateY(var(--m-motion-distance));
639
+ }
640
+
641
+ .m-slide-down-enter-from,
642
+ .m-slide-down-leave-to {
643
+ opacity: 0;
644
+ transform: translateY(calc(var(--m-motion-distance) * -1));
645
+ }
646
+
647
+ .m-slide-left-enter-from,
648
+ .m-slide-left-leave-to {
649
+ opacity: 0;
650
+ transform: translateX(var(--m-motion-distance));
651
+ }
652
+
653
+ .m-slide-right-enter-from,
654
+ .m-slide-right-leave-to {
655
+ opacity: 0;
656
+ transform: translateX(calc(var(--m-motion-distance) * -1));
657
+ }
658
+
512
659
  @media (prefers-reduced-motion: reduce) {
513
660
  html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
514
661
  html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
515
662
  html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
516
663
  html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
517
664
  html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
518
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active {
665
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
666
+ html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
667
+ html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
668
+ html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
669
+ html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
670
+ html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
671
+ html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
672
+ html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
673
+ html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
674
+ html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
675
+ html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
519
676
  transition: none;
520
677
  }
521
678
 
522
679
  html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
523
680
  html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
524
681
  html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
525
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to {
682
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
683
+ html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
684
+ html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
685
+ html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
686
+ html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
687
+ html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
688
+ html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
689
+ html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
690
+ html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
691
+ html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
692
+ html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
526
693
  transform: none;
527
694
  }
528
695
  }
@@ -533,12 +700,32 @@
533
700
  [data-m-motion="reduced"] .m-scale-fade-leave-active,
534
701
  [data-m-motion="reduced"] .m-slide-fade-enter-active,
535
702
  [data-m-motion="reduced"] .m-slide-fade-leave-active,
703
+ [data-m-motion="reduced"] .m-zoom-enter-active,
704
+ [data-m-motion="reduced"] .m-zoom-leave-active,
705
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
706
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
707
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
708
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
709
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
710
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
711
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
712
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
536
713
  [data-m-motion="none"] .m-fade-enter-active,
537
714
  [data-m-motion="none"] .m-fade-leave-active,
538
715
  [data-m-motion="none"] .m-scale-fade-enter-active,
539
716
  [data-m-motion="none"] .m-scale-fade-leave-active,
540
717
  [data-m-motion="none"] .m-slide-fade-enter-active,
541
- [data-m-motion="none"] .m-slide-fade-leave-active {
718
+ [data-m-motion="none"] .m-slide-fade-leave-active,
719
+ [data-m-motion="none"] .m-zoom-enter-active,
720
+ [data-m-motion="none"] .m-zoom-leave-active,
721
+ [data-m-motion="none"] .m-slide-up-enter-active,
722
+ [data-m-motion="none"] .m-slide-up-leave-active,
723
+ [data-m-motion="none"] .m-slide-down-enter-active,
724
+ [data-m-motion="none"] .m-slide-down-leave-active,
725
+ [data-m-motion="none"] .m-slide-left-enter-active,
726
+ [data-m-motion="none"] .m-slide-left-leave-active,
727
+ [data-m-motion="none"] .m-slide-right-enter-active,
728
+ [data-m-motion="none"] .m-slide-right-leave-active {
542
729
  transition: none;
543
730
  }
544
731
 
@@ -546,10 +733,30 @@
546
733
  [data-m-motion="reduced"] .m-scale-fade-leave-to,
547
734
  [data-m-motion="reduced"] .m-slide-fade-enter-from,
548
735
  [data-m-motion="reduced"] .m-slide-fade-leave-to,
736
+ [data-m-motion="reduced"] .m-zoom-enter-from,
737
+ [data-m-motion="reduced"] .m-zoom-leave-to,
738
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
739
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
740
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
741
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
742
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
743
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
744
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
745
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
549
746
  [data-m-motion="none"] .m-scale-fade-enter-from,
550
747
  [data-m-motion="none"] .m-scale-fade-leave-to,
551
748
  [data-m-motion="none"] .m-slide-fade-enter-from,
552
- [data-m-motion="none"] .m-slide-fade-leave-to {
749
+ [data-m-motion="none"] .m-slide-fade-leave-to,
750
+ [data-m-motion="none"] .m-zoom-enter-from,
751
+ [data-m-motion="none"] .m-zoom-leave-to,
752
+ [data-m-motion="none"] .m-slide-up-enter-from,
753
+ [data-m-motion="none"] .m-slide-up-leave-to,
754
+ [data-m-motion="none"] .m-slide-down-enter-from,
755
+ [data-m-motion="none"] .m-slide-down-leave-to,
756
+ [data-m-motion="none"] .m-slide-left-enter-from,
757
+ [data-m-motion="none"] .m-slide-left-leave-to,
758
+ [data-m-motion="none"] .m-slide-right-enter-from,
759
+ [data-m-motion="none"] .m-slide-right-leave-to {
553
760
  transform: none;
554
761
  }
555
762
 
@@ -1987,10 +2194,27 @@
1987
2194
  display: flex;
1988
2195
  flex: 0 0 auto;
1989
2196
  font-size: var(--m-font-size-lg);
1990
- height: var(--m-control-affix-size);
2197
+ height: min(
2198
+ var(--m-control-affix-size),
2199
+ calc(var(--m-control-height-medium) - 2 * var(--m-border-width))
2200
+ );
1991
2201
  justify-content: center;
2202
+ max-height: 100%;
1992
2203
  padding: 0;
1993
- width: var(--m-control-affix-size);
2204
+ width: min(
2205
+ var(--m-control-affix-size),
2206
+ calc(var(--m-control-height-medium) - 2 * var(--m-border-width))
2207
+ );
2208
+ }
2209
+
2210
+ .m-input-field__control:has(.m-input--small) .m-input__clear {
2211
+ height: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
2212
+ width: calc(var(--m-control-height-small) - 2 * var(--m-border-width));
2213
+ }
2214
+
2215
+ .m-input-field__control:has(.m-input--large) .m-input__clear {
2216
+ height: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
2217
+ width: calc(var(--m-control-height-large) - 2 * var(--m-border-width));
1994
2218
  }
1995
2219
 
1996
2220
  .m-input__clear:hover:not(:disabled) {
@@ -1,21 +1,22 @@
1
- import { r as e } from "../useComponentAttrs-BTYEe61P.js";
2
- import { t } from "../Icon-B6IBrJ5S.js";
3
- import { t as n } from "../Button-DO5oukfg.js";
4
- import { n as r } from "../overlay-oR-5MDuE.js";
5
- import { t as i } from "../useModalOverlay-Beo3CEAt.js";
6
- import { t as a } from "../asyncGuard-CPGT_TKu.js";
7
- import { t as o } from "../lastPointer-CRxcUqdd.js";
8
- import { t as s } from "../overlayHost-78CGtMgR.js";
9
- import { c } from "../config-BdK5ccNT.js";
10
- import { n as l } from "../locale-B36KH7c3.js";
1
+ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "../Icon-lcN1rS87.js";
3
+ import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
4
+ import { t as r } from "../Button-B5X_R4Md.js";
5
+ import { n as i } from "../overlay-oR-5MDuE.js";
6
+ import { t as a } from "../useModalOverlay-Beo3CEAt.js";
7
+ import { t as o } from "../asyncGuard-CPGT_TKu.js";
8
+ import { t as s } from "../lastPointer-CRxcUqdd.js";
9
+ import { t as c } from "../overlayHost-78CGtMgR.js";
10
+ import { c as l } from "../config-CapALqt3.js";
11
+ import { n as u } from "../locale-Bzm2nbEp.js";
11
12
  import "./style.js";
12
- import { Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as b, normalizeClass as x, openBlock as S, ref as C, render as w, renderSlot as T, toDisplayString as E, toRef as D, unref as O, useAttrs as k, watch as A, withCtx as ee, withModifiers as te } from "vue";
13
+ import { Teleport as d, Transition as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, mergeProps as x, normalizeClass as S, openBlock as C, ref as w, render as T, renderSlot as E, toDisplayString as D, toRef as O, unref as k, useAttrs as ee, watch as te, withCtx as ne, withModifiers as re } from "vue";
13
14
  //#region src/components/ConfirmDialog/ConfirmDialog.vue?vue&type=script&setup=true&lang.ts
14
- var j = ["aria-label"], M = { class: "m-dialog__header" }, N = { class: "m-dialog__body m-confirmdialog__message" }, P = {
15
+ var ie = ["aria-label"], A = { class: "m-dialog__header" }, j = { class: "m-dialog__body m-confirmdialog__message" }, M = {
15
16
  key: 0,
16
17
  class: "m-dialog__type-icon",
17
18
  "aria-hidden": "true"
18
- }, F = { class: "m-confirmdialog__copy" }, I = { class: "m-dialog__footer m-confirmdialog__footer" }, L = /* @__PURE__ */ y({
19
+ }, N = { class: "m-confirmdialog__copy" }, P = { class: "m-dialog__footer m-confirmdialog__footer" }, F = /* @__PURE__ */ b({
19
20
  inheritAttrs: !1,
20
21
  __name: "ConfirmDialog",
21
22
  props: {
@@ -52,18 +53,27 @@ var j = ["aria-label"], M = { class: "m-dialog__header" }, N = { class: "m-dialo
52
53
  type: Boolean,
53
54
  default: !0
54
55
  },
55
- appendTo: {}
56
+ appendTo: {},
57
+ transition: {
58
+ type: [String, Boolean],
59
+ default: void 0
60
+ }
56
61
  },
57
62
  emits: [
58
63
  "update:modelValue",
59
64
  "accept",
60
65
  "reject"
61
66
  ],
62
- setup(s, { emit: y }) {
63
- let w = s, L = y, R = k(), { rootAttrs: z } = e(R, () => w.pt), B = c(), V = l(), H = C(null), U = f(() => r(w, B.value.appendTo)), W = f(() => w.header ?? V.value.confirm), G = f(() => w.acceptLabel ?? V.value.accept), K = f(() => w.rejectLabel ?? V.value.reject), q = C(o()), J = C(null), Y = f(() => J.value != null || w.loading), X = f(() => {
64
- let e = w.type;
67
+ setup(c, { emit: b }) {
68
+ let T = c, F = b, I = ee(), { rootAttrs: L } = e(I, () => T.pt), R = l(), z = u(), B = w(null), V = p(() => i(T, R.value.appendTo)), H = p(() => T.header ?? z.value.confirm), U = p(() => T.acceptLabel ?? z.value.accept), W = p(() => T.rejectLabel ?? z.value.reject), G = w(s()), K = w(null), { transitionName: q, transitionCss: J } = n({
69
+ role: "dialog",
70
+ local: () => T.transition,
71
+ componentName: "ConfirmDialog",
72
+ fallback: "zoom"
73
+ }), Y = p(() => K.value != null || T.loading), X = p(() => {
74
+ let e = T.type;
65
75
  return e === "warning" || e === "warn" ? "warn" : e;
66
- }), Z = f(() => {
76
+ }), Z = p(() => {
67
77
  switch (X.value) {
68
78
  case "success": return "check-circle";
69
79
  case "warn": return "warning";
@@ -71,111 +81,114 @@ var j = ["aria-label"], M = { class: "m-dialog__header" }, N = { class: "m-dialo
71
81
  case "info": return "info";
72
82
  default: return;
73
83
  }
74
- }), ne = f(() => ({
75
- "--m-dialog-origin-x": `${q.value.x}px`,
76
- "--m-dialog-origin-y": `${q.value.y}px`
84
+ }), ae = p(() => ({
85
+ "--m-dialog-origin-x": `${G.value.x}px`,
86
+ "--m-dialog-origin-y": `${G.value.y}px`
77
87
  }));
78
88
  function Q() {
79
- J.value = null, L("update:modelValue", !1);
89
+ K.value = null, F("update:modelValue", !1);
80
90
  }
81
- async function re() {
82
- if (!J.value) {
83
- J.value = "accept";
91
+ async function oe() {
92
+ if (!K.value) {
93
+ K.value = "accept";
84
94
  try {
85
- if (!await a(w.beforeAccept)) return;
86
- L("accept"), Q();
95
+ if (!await o(T.beforeAccept)) return;
96
+ F("accept"), Q();
87
97
  } finally {
88
- J.value === "accept" && (J.value = null);
98
+ K.value === "accept" && (K.value = null);
89
99
  }
90
100
  }
91
101
  }
92
102
  async function $() {
93
- if (!J.value) {
94
- J.value = "reject";
103
+ if (!K.value) {
104
+ K.value = "reject";
95
105
  try {
96
- if (!await a(w.beforeReject)) return;
97
- L("reject"), Q();
106
+ if (!await o(T.beforeReject)) return;
107
+ F("reject"), Q();
98
108
  } finally {
99
- J.value === "reject" && (J.value = null);
109
+ K.value === "reject" && (K.value = null);
100
110
  }
101
111
  }
102
112
  }
103
- function ie() {
104
- w.closeOnOutsideClick && $();
113
+ function se() {
114
+ T.closeOnOutsideClick && $();
105
115
  }
106
- return A(() => w.modelValue, (e) => {
107
- e && (q.value = o());
108
- }), i({
109
- open: D(w, "modelValue"),
110
- container: H,
111
- closeOnEsc: () => w.closeOnEsc,
112
- blockScroll: () => w.blockScroll,
116
+ return te(() => T.modelValue, (e) => {
117
+ e && (G.value = s());
118
+ }), a({
119
+ open: O(T, "modelValue"),
120
+ container: B,
121
+ closeOnEsc: () => T.closeOnEsc,
122
+ blockScroll: () => T.blockScroll,
113
123
  onEscape: () => {
114
124
  $();
115
125
  }
116
- }), (e, r) => (S(), p(u, {
117
- to: U.value.to,
118
- disabled: U.value.disabled
119
- }, [v(d, { name: "m-dialog" }, {
120
- default: ee(() => [s.modelValue ? (S(), h("div", b({ key: 0 }, O(z), {
126
+ }), (e, n) => (C(), m(d, {
127
+ to: V.value.to,
128
+ disabled: V.value.disabled
129
+ }, [y(f, {
130
+ name: k(q),
131
+ css: k(J)
132
+ }, {
133
+ default: ne(() => [c.modelValue ? (C(), g("div", x({ key: 0 }, k(L), {
121
134
  class: "m-dialog-backdrop m-dialog-backdrop--center m-dialog-backdrop--modal",
122
- style: ne.value
123
- }), [g("div", {
135
+ style: ae.value
136
+ }), [_("div", {
124
137
  class: "m-dialog-zoom",
125
- onClick: te(ie, ["self"])
126
- }, [g("section", {
138
+ onClick: re(se, ["self"])
139
+ }, [_("section", {
127
140
  ref_key: "dialogElement",
128
- ref: H,
129
- class: x(["m-dialog m-confirmdialog", { [`m-dialog--${X.value}`]: X.value }]),
141
+ ref: B,
142
+ class: S(["m-dialog m-confirmdialog", { [`m-dialog--${X.value}`]: X.value }]),
130
143
  role: "alertdialog",
131
144
  "aria-modal": "true",
132
- "aria-label": W.value,
145
+ "aria-label": H.value,
133
146
  tabindex: "-1"
134
147
  }, [
135
- g("header", M, [T(e.$slots, "header", {}, () => [g("h2", null, E(W.value), 1)])]),
136
- g("div", N, [Z.value ? (S(), h("span", P, [v(t, {
148
+ _("header", A, [E(e.$slots, "header", {}, () => [_("h2", null, D(H.value), 1)])]),
149
+ _("div", j, [Z.value ? (C(), g("span", M, [y(t, {
137
150
  name: Z.value,
138
151
  size: "sm"
139
- }, null, 8, ["name"])])) : m("", !0), g("div", F, [T(e.$slots, "default", {}, () => [_(E(s.message), 1)])])]),
140
- g("footer", I, [T(e.$slots, "footer", {}, () => [v(n, {
141
- label: K.value,
152
+ }, null, 8, ["name"])])) : h("", !0), _("div", N, [E(e.$slots, "default", {}, () => [v(D(c.message), 1)])])]),
153
+ _("footer", P, [E(e.$slots, "footer", {}, () => [y(r, {
154
+ label: W.value,
142
155
  severity: "secondary",
143
156
  disabled: Y.value,
144
- loading: J.value === "reject",
157
+ loading: K.value === "reject",
145
158
  onClick: $
146
159
  }, null, 8, [
147
160
  "label",
148
161
  "disabled",
149
162
  "loading"
150
- ]), v(n, {
151
- label: G.value,
152
- severity: s.acceptSeverity,
153
- disabled: Y.value && J.value !== "accept",
154
- loading: s.loading || J.value === "accept",
155
- onClick: re
163
+ ]), y(r, {
164
+ label: U.value,
165
+ severity: c.acceptSeverity,
166
+ disabled: Y.value && K.value !== "accept",
167
+ loading: c.loading || K.value === "accept",
168
+ onClick: oe
156
169
  }, null, 8, [
157
170
  "label",
158
171
  "severity",
159
172
  "disabled",
160
173
  "loading"
161
174
  ])])])
162
- ], 10, j)])], 16)) : m("", !0)]),
175
+ ], 10, ie)])], 16)) : h("", !0)]),
163
176
  _: 3
164
- })], 8, ["to", "disabled"]));
177
+ }, 8, ["name", "css"])], 8, ["to", "disabled"]));
165
178
  }
166
179
  });
167
180
  //#endregion
168
181
  //#region src/components/ConfirmDialog/useConfirm.ts
169
- function R() {
182
+ function I() {
170
183
  function e(e = {}) {
171
184
  return typeof document > "u" ? Promise.resolve(!1) : new Promise((t) => {
172
185
  let n = document.createElement("div");
173
186
  document.body.appendChild(n);
174
187
  let r = !1;
175
188
  function i(e) {
176
- r || (r = !0, w(null, n), n.remove(), t(e));
189
+ r || (r = !0, T(null, n), n.remove(), t(e));
177
190
  }
178
- let a = v(L, {
191
+ let a = y(F, {
179
192
  ...e,
180
193
  modelValue: !0,
181
194
  "onUpdate:modelValue": (e) => {
@@ -183,11 +196,11 @@ function R() {
183
196
  },
184
197
  onAccept: () => i(!0),
185
198
  onReject: () => i(!1)
186
- }), o = s();
187
- o && (a.appContext = o), w(a, n);
199
+ }), o = c();
200
+ o && (a.appContext = o), T(a, n);
188
201
  });
189
202
  }
190
203
  return { require: e };
191
204
  }
192
205
  //#endregion
193
- export { L as MConfirmDialog, R as useConfirm };
206
+ export { F as MConfirmDialog, I as useConfirm };