morya-ui 0.3.0 → 0.3.2

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 (309) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/Button-dMqRmoYa.js +222 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/Icon-od9Ob-Ay.js +393 -0
  6. package/dist/Loading-BSsRs6v9.js +420 -0
  7. package/dist/Pagination-CqpC5EAs.js +166 -0
  8. package/dist/Select-CKGrSoaC.js +572 -0
  9. package/dist/Skeleton-DCYdXAH2.js +59 -0
  10. package/dist/accordion/style.css +20 -71
  11. package/dist/auto-complete/index.js +118 -120
  12. package/dist/auto-complete/style.css +24 -88
  13. package/dist/avatar/index.js +1 -1
  14. package/dist/avatar/style.css +10 -67
  15. package/dist/badge/style.css +10 -68
  16. package/dist/block-ui/style.css +10 -68
  17. package/dist/breadcrumb/style.css +10 -61
  18. package/dist/button/index.js +1 -1
  19. package/dist/button/style.css +72 -78
  20. package/dist/card/index.js +1 -1
  21. package/dist/card/style.css +30 -67
  22. package/dist/carousel/index.js +72 -64
  23. package/dist/carousel/style.css +36 -82
  24. package/dist/cascade-select/index.js +1 -1
  25. package/dist/cascade-select/style.css +24 -81
  26. package/dist/checkbox/style.css +10 -61
  27. package/dist/chip/index.js +1 -1
  28. package/dist/chip/style.css +10 -67
  29. package/dist/command-menu/index.js +37 -39
  30. package/dist/command-menu/style.css +10 -75
  31. package/dist/components/Accordion/styles.css +10 -10
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/styles.css +0 -7
  34. package/dist/components/Badge/styles.css +0 -7
  35. package/dist/components/BlockUI/styles.css +0 -7
  36. package/dist/components/Button/Button.vue.d.ts +2 -0
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/styles.css +62 -11
  39. package/dist/components/Button/types.d.ts +4 -0
  40. package/dist/components/Button/types.d.ts.map +1 -1
  41. package/dist/components/Card/Card.vue.d.ts +2 -2
  42. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  43. package/dist/components/Card/index.d.ts +1 -1
  44. package/dist/components/Card/index.d.ts.map +1 -1
  45. package/dist/components/Card/styles.css +20 -6
  46. package/dist/components/Card/types.d.ts +4 -2
  47. package/dist/components/Card/types.d.ts.map +1 -1
  48. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  49. package/dist/components/Carousel/styles.css +26 -15
  50. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  51. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  52. package/dist/components/DataView/DataView.vue.d.ts +7 -7
  53. package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
  54. package/dist/components/DataView/styles.css +0 -20
  55. package/dist/components/Dialog/styles.css +3 -46
  56. package/dist/components/Dock/styles.css +0 -10
  57. package/dist/components/Drawer/styles.css +2 -51
  58. package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
  59. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  60. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
  61. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  62. package/dist/components/Dropdown/styles.css +24 -5
  63. package/dist/components/Fieldset/styles.css +0 -7
  64. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  65. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  66. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  67. package/dist/components/Gallery/styles.css +0 -8
  68. package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
  69. package/dist/components/Icon/icon-categories.d.ts.map +1 -1
  70. package/dist/components/Icon/icons-types.d.ts +4 -2
  71. package/dist/components/Icon/icons-types.d.ts.map +1 -1
  72. package/dist/components/Icon/icons.d.ts +250 -561
  73. package/dist/components/Icon/icons.d.ts.map +1 -1
  74. package/dist/components/Icon/index.d.ts +2 -2
  75. package/dist/components/Icon/index.d.ts.map +1 -1
  76. package/dist/components/Icon/styles.css +0 -6
  77. package/dist/components/Knob/styles.css +0 -6
  78. package/dist/components/Layout/styles.css +5 -14
  79. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  80. package/dist/components/Loading/styles.css +0 -16
  81. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  82. package/dist/components/Menu/styles.css +6 -7
  83. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  84. package/dist/components/Menubar/styles.css +4 -0
  85. package/dist/components/Message/styles.css +0 -13
  86. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  87. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  88. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  89. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  90. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  91. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  92. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  93. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  94. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  95. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  96. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  97. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  98. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  99. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  100. package/dist/components/Page/index.d.ts +2 -1
  101. package/dist/components/Page/index.d.ts.map +1 -1
  102. package/dist/components/Page/styles.css +239 -44
  103. package/dist/components/Page/types.d.ts +40 -0
  104. package/dist/components/Page/types.d.ts.map +1 -1
  105. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  106. package/dist/components/Pagination/styles.css +7 -10
  107. package/dist/components/Pagination/types.d.ts +1 -1
  108. package/dist/components/Pagination/types.d.ts.map +1 -1
  109. package/dist/components/Panel/styles.css +0 -7
  110. package/dist/components/Popover/styles.css +20 -17
  111. package/dist/components/ProgressBar/styles.css +0 -9
  112. package/dist/components/ProgressSpinner/styles.css +0 -7
  113. package/dist/components/ScrollTop/styles.css +0 -7
  114. package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
  115. package/dist/components/Scrollbar/styles.css +0 -8
  116. package/dist/components/Select/Select.vue.d.ts +10 -8
  117. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  118. package/dist/components/Select/selectOptions.d.ts +46 -0
  119. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  120. package/dist/components/Select/styles.css +35 -8
  121. package/dist/components/Select/types.d.ts +11 -1
  122. package/dist/components/Select/types.d.ts.map +1 -1
  123. package/dist/components/Sidebar/styles.css +0 -6
  124. package/dist/components/Skeleton/styles.css +0 -6
  125. package/dist/components/Slider/styles.css +9 -0
  126. package/dist/components/SplitButton/styles.css +5 -0
  127. package/dist/components/Status/styles.css +0 -7
  128. package/dist/components/Switch/styles.css +0 -7
  129. package/dist/components/Table/Table.vue.d.ts +26 -26
  130. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  131. package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
  132. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  133. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  134. package/dist/components/Table/styles.css +61 -44
  135. package/dist/components/Table/tableQuery.d.ts +30 -0
  136. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  137. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  138. package/dist/components/Tree/treeQuery.d.ts +31 -0
  139. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  140. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  141. package/dist/components/TreeSelect/styles.css +1 -1
  142. package/dist/config-provider/index.js +1 -1
  143. package/dist/config-provider/style.css +72 -72
  144. package/dist/confirm-dialog/index.js +2 -2
  145. package/dist/confirm-dialog/style.css +75 -124
  146. package/dist/confirm-popup/index.js +2 -2
  147. package/dist/confirm-popup/style.css +72 -78
  148. package/dist/context-menu/index.js +2 -2
  149. package/dist/context-menu/style.css +10 -75
  150. package/dist/data-view/index.js +47 -47
  151. package/dist/data-view/style.css +393 -174
  152. package/dist/data-view/style.js +1 -1
  153. package/dist/date-picker/index.js +1 -1
  154. package/dist/date-picker/style.css +10 -67
  155. package/dist/dialog/index.js +2 -2
  156. package/dist/dialog/style.css +75 -124
  157. package/dist/divider/style.css +10 -61
  158. package/dist/dock/index.js +2 -2
  159. package/dist/dock/style.css +10 -77
  160. package/dist/drawer/index.js +1 -1
  161. package/dist/drawer/style.css +12 -118
  162. package/dist/dropdown/index.js +110 -91
  163. package/dist/dropdown/style.css +34 -80
  164. package/dist/empty/index.js +5 -150
  165. package/dist/empty/style.css +10 -67
  166. package/dist/fieldset/index.js +1 -1
  167. package/dist/fieldset/style.css +10 -74
  168. package/dist/file-upload/index.js +148 -146
  169. package/dist/file-upload/style.css +10 -67
  170. package/dist/filterByQuery-Bczaxzih.js +17 -0
  171. package/dist/flex/style.css +10 -61
  172. package/dist/float-label/style.css +10 -61
  173. package/dist/fluid/style.css +10 -61
  174. package/dist/form/style.css +10 -61
  175. package/dist/gallery/index.js +1 -1
  176. package/dist/gallery/style.css +10 -83
  177. package/dist/grid/style.css +10 -61
  178. package/dist/icon/index.js +93 -39
  179. package/dist/icon/style.css +10 -67
  180. package/dist/icon-COrt_N8A.js +18 -0
  181. package/dist/icon-field/style.css +10 -61
  182. package/dist/index.d.ts +3 -2
  183. package/dist/index.d.ts.map +1 -1
  184. package/dist/index.js +5400 -5145
  185. package/dist/inplace/style.css +10 -61
  186. package/dist/input/index.js +1 -1
  187. package/dist/input/style.css +10 -67
  188. package/dist/input-color/style.css +10 -61
  189. package/dist/input-group/style.css +10 -61
  190. package/dist/input-number/index.js +1 -1
  191. package/dist/input-number/style.css +10 -67
  192. package/dist/input-otp/style.css +10 -61
  193. package/dist/input-password/index.js +1 -1
  194. package/dist/input-password/style.css +10 -67
  195. package/dist/input-tags/index.js +1 -1
  196. package/dist/input-tags/style.css +10 -67
  197. package/dist/knob/style.css +10 -67
  198. package/dist/label/style.css +10 -61
  199. package/dist/layout/index.js +1 -1
  200. package/dist/layout/style.css +15 -89
  201. package/dist/listbox/index.js +30 -32
  202. package/dist/listbox/style.css +10 -69
  203. package/dist/loading/index.js +32 -446
  204. package/dist/loading/style.css +10 -77
  205. package/dist/mega-menu/index.js +2 -2
  206. package/dist/mega-menu/style.css +10 -67
  207. package/dist/menu/index.js +265 -255
  208. package/dist/menu/style.css +36 -99
  209. package/dist/menubar/index.js +6 -3
  210. package/dist/menubar/style.css +14 -75
  211. package/dist/message/index.js +1 -1
  212. package/dist/message/style.css +10 -80
  213. package/dist/meter-group/style.css +10 -61
  214. package/dist/order-list/index.js +1 -1
  215. package/dist/order-list/style.css +10 -67
  216. package/dist/page/index.js +229 -70
  217. package/dist/page/style.css +1186 -113
  218. package/dist/page/style.js +3 -0
  219. package/dist/pagination/index.js +1 -1
  220. package/dist/pagination/style.css +210 -77
  221. package/dist/pagination/style.js +1 -0
  222. package/dist/panel/index.js +1 -1
  223. package/dist/panel/style.css +10 -74
  224. package/dist/pick-list/index.js +1 -1
  225. package/dist/pick-list/style.css +10 -67
  226. package/dist/popover/style.css +30 -78
  227. package/dist/progress-bar/style.css +10 -70
  228. package/dist/progress-spinner/index.js +105 -2
  229. package/dist/progress-spinner/style.css +10 -68
  230. package/dist/radio/style.css +10 -61
  231. package/dist/rating/index.js +1 -1
  232. package/dist/rating/style.css +10 -67
  233. package/dist/resolver-map.d.ts.map +1 -1
  234. package/dist/resolver.js +1 -0
  235. package/dist/result/index.js +1 -1
  236. package/dist/result/style.css +10 -67
  237. package/dist/scroll-top/index.js +1 -1
  238. package/dist/scroll-top/style.css +10 -82
  239. package/dist/scrollbar/style.css +10 -69
  240. package/dist/select/index.js +2 -478
  241. package/dist/select/style.css +59 -89
  242. package/dist/select-button/style.css +10 -61
  243. package/dist/shared/config.d.ts +2 -2
  244. package/dist/shared/filterByQuery.d.ts +14 -0
  245. package/dist/shared/filterByQuery.d.ts.map +1 -0
  246. package/dist/shared/menu/expand.d.ts +38 -0
  247. package/dist/shared/menu/expand.d.ts.map +1 -0
  248. package/dist/shared/menu/icon.d.ts.map +1 -1
  249. package/dist/shared/menu/index.d.ts +2 -0
  250. package/dist/shared/menu/index.d.ts.map +1 -1
  251. package/dist/shared/styles/select-overlay.css +14 -6
  252. package/dist/sidebar/index.js +2 -2
  253. package/dist/sidebar/style.css +10 -73
  254. package/dist/skeleton/index.js +2 -59
  255. package/dist/skeleton/style.css +10 -67
  256. package/dist/slider/style.css +19 -61
  257. package/dist/space/style.css +10 -61
  258. package/dist/speed-dial/index.js +2 -2
  259. package/dist/speed-dial/style.css +10 -67
  260. package/dist/split-button/index.js +1 -1
  261. package/dist/split-button/style.css +77 -78
  262. package/dist/splitter/style.css +10 -61
  263. package/dist/status/index.js +1 -1
  264. package/dist/status/style.css +10 -74
  265. package/dist/stepper/index.js +1 -1
  266. package/dist/stepper/style.css +10 -67
  267. package/dist/styles/base.css +5 -50
  268. package/dist/styles.css +1 -1
  269. package/dist/switch/style.css +10 -68
  270. package/dist/table/index.js +409 -373
  271. package/dist/table/style.css +457 -215
  272. package/dist/table/style.js +1 -1
  273. package/dist/tabs/index.js +1 -1
  274. package/dist/tabs/style.css +10 -75
  275. package/dist/tag/index.js +1 -1
  276. package/dist/tag/style.css +10 -67
  277. package/dist/terminal/style.css +10 -61
  278. package/dist/textarea/index.js +1 -1
  279. package/dist/textarea/style.css +10 -67
  280. package/dist/theme/styles.css +5 -11
  281. package/dist/theme/useMotion.d.ts +5 -1
  282. package/dist/theme/useMotion.d.ts.map +1 -1
  283. package/dist/tiered-menu/index.js +1 -1
  284. package/dist/tiered-menu/style.css +10 -75
  285. package/dist/timeline/index.js +1 -1
  286. package/dist/timeline/style.css +10 -75
  287. package/dist/toast/index.js +1 -1
  288. package/dist/toast/style.css +10 -67
  289. package/dist/toggle-button/index.js +2 -2
  290. package/dist/toggle-button/style.css +10 -67
  291. package/dist/toolbar/style.css +10 -61
  292. package/dist/tooltip/style.css +10 -61
  293. package/dist/tree/index.js +159 -173
  294. package/dist/tree/style.css +10 -67
  295. package/dist/tree-select/index.js +200 -213
  296. package/dist/tree-select/style.css +25 -82
  297. package/dist/tree-table/index.js +1 -1
  298. package/dist/tree-table/style.css +10 -67
  299. package/dist/treeQuery-CnHkyYOA.js +107 -0
  300. package/dist/virtual-scroller/style.css +10 -69
  301. package/package.json +1 -1
  302. package/dist/Button-B5X_R4Md.js +0 -156
  303. package/dist/Icon-lcN1rS87.js +0 -610
  304. package/dist/Pagination-CVrH8Ypi.js +0 -158
  305. package/dist/ProgressSpinner-BeWVF6Jv.js +0 -105
  306. package/dist/checkStrategy-CZzuUKDI.js +0 -63
  307. package/dist/components/Icon/icons-tabler.d.ts +0 -77
  308. package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
  309. package/dist/icon-DWXkh-RM.js +0 -27
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # morya-ui
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### 新功能
6
+
7
+ - add click ripple and a press-scale toggle
8
+ - replace quick jumper with a filterable Select
9
+ - refine ops layout primitives and P2 filter/stat APIs
10
+ - add shadow prop and remove hoverable
11
+
12
+ ### 修复
13
+
14
+ - Panel component change demo component width
15
+ - remove OS reduced-motion media queries from components
16
+ - control intensity via library preference only
17
+
18
+ ### 文档
19
+
20
+ - document impeccable and skills-cli companion install
21
+ - document library-only motion control
22
+
23
+ ### 变更
24
+
25
+ - extract filter and expanded-key helpers
26
+ - extract label filter helpers for option lists
27
+ - extract sort, filter, and selection helpers
28
+ - extract expand and visible-entry helpers
29
+ - extract option filter and multi-select helpers
30
+ - cover CommandMenu keys and FileUpload dropzone keyboard
31
+ - extract accept and size helpers
32
+ - polish overlay scale, press feedback, and scroll containment
33
+ - refresh snippets, generators, and golden page copies
34
+
35
+ ## 0.3.1
36
+
37
+ ### 新功能
38
+
39
+ - replace hand-drawn icons with a generated Tabler registry
40
+ - add option groups and header/footer slots
41
+ - add triangle icons and update icon rendering logic
42
+ - animate pages with a sliding track
43
+
44
+ ### 修复
45
+
46
+ - keep the range start thumb above the overlapping track
47
+ - keep submenus open on hover and align items with Select
48
+ - make the expanded-row loading line visible
49
+ - let popup menus grow with their content
50
+ - let the menu grow with its content
51
+ - close the gap in the sider bar trigger
52
+ - compact dropdown filter and keep menu width aligned
53
+ - shrink oversized multi-select tags
54
+
55
+ ### 文档
56
+
57
+ - describe the all-Tabler registry and the generator script
58
+ - complete component API tables and instance methods
59
+
60
+ ### 变更
61
+
62
+ - fix export order and prefer template literals in gallery demos
63
+ - resolve newly registered icons directly and drop dead aliases
64
+ - replace the custom loading overlay with MLoading
65
+ - update header and sort styles for improved layout
66
+
3
67
  ## 0.3.0
4
68
 
5
69
  ### 新功能
@@ -0,0 +1,222 @@
1
+ import { r as e, t } from "./types-DGuu4Eg4.js";
2
+ import { t as n } from "./Icon-od9Ob-Ay.js";
3
+ import { o as r } from "./config-CapALqt3.js";
4
+ import { Comment as i, Fragment as a, Text as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, useSlots as ee } from "vue";
5
+ //#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
6
+ var S = [
7
+ "type",
8
+ "disabled",
9
+ "autofocus",
10
+ "aria-busy",
11
+ "aria-label"
12
+ ], C = {
13
+ key: 2,
14
+ class: "m-button__label"
15
+ }, w = 560, T = 280, E = /* @__PURE__ */ p({
16
+ __name: "Button",
17
+ props: {
18
+ label: {},
19
+ icon: {},
20
+ iconPos: { default: "left" },
21
+ iconOnly: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ severity: {},
26
+ color: {},
27
+ raised: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ rounded: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ text: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ outlined: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ link: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ ghost: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ quaternary: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ plain: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ variant: {},
60
+ size: {},
61
+ fluid: {
62
+ type: Boolean,
63
+ default: !1
64
+ },
65
+ loading: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ disabled: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ badge: {},
74
+ badgeSeverity: { default: null },
75
+ autofocus: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ nativeType: { default: "button" },
80
+ ariaLabel: {},
81
+ ripple: {
82
+ type: Boolean,
83
+ default: !0
84
+ },
85
+ press: {
86
+ type: Boolean,
87
+ default: !0
88
+ }
89
+ },
90
+ emits: ["click"],
91
+ setup(p, { expose: E, emit: D }) {
92
+ let O = p, k = D, A = ee(), j = v(null), M = v(null), N = /* @__PURE__ */ new Set(), P = s(() => !!A.default?.().some((e) => Z(e))), F = s(() => P.value || !!O.label?.trim()), I = s(() => O.outlined || O.variant === "outlined"), L = s(() => O.text || O.variant === "text"), R = s(() => O.link || O.variant === "link"), z = s(() => O.ghost || O.variant === "ghost"), B = s(() => O.quaternary || O.variant === "quaternary"), V = s(() => O.fluid), H = r("Button", () => O.size), U = s(() => e(H.value)), W = s(() => O.iconOnly || !F.value && !!(O.icon || A.icon || O.loading)), G = s(() => t(O.severity) ?? "primary"), K = s(() => typeof O.icon == "string" ? O.icon : void 0), q = s(() => typeof O.icon == "string" || !O.icon ? void 0 : O.icon), J = s(() => [
93
+ "m-button",
94
+ `m-button--${G.value}`,
95
+ `m-button--${H.value}`,
96
+ `m-button--icon-${O.iconPos}`,
97
+ {
98
+ "m-button--raised": O.raised,
99
+ "m-button--rounded": O.rounded,
100
+ "m-button--text": L.value,
101
+ "m-button--outlined": I.value,
102
+ "m-button--link": R.value,
103
+ "m-button--ghost": z.value,
104
+ "m-button--quaternary": B.value,
105
+ "m-button--plain": O.plain,
106
+ "m-button--fluid": V.value,
107
+ "m-button--loading": O.loading,
108
+ "m-button--icon-only": W.value,
109
+ "m-button--custom": !!O.color,
110
+ "m-button--ripple": O.ripple,
111
+ "m-button--press": O.press
112
+ }
113
+ ]), Y = s(() => O.color ? { "--m-button-color": O.color } : void 0), X = s(() => ["m-button__badge", O.badgeSeverity ? `m-button__badge--${t(O.badgeSeverity)}` : "m-button__badge--contrast"]);
114
+ function Z(e) {
115
+ if (e == null || typeof e == "boolean") return !1;
116
+ if (typeof e == "string" || typeof e == "number") return String(e).trim().length > 0;
117
+ if (Array.isArray(e)) return e.some((e) => Z(e));
118
+ if (typeof e == "object" && "type" in e) {
119
+ let t = e;
120
+ return t.type === i ? !1 : t.type === o ? String(t.children ?? "").trim().length > 0 : t.type !== a || Z(t.children);
121
+ }
122
+ return !1;
123
+ }
124
+ function Q() {
125
+ return !O.ripple || typeof document > "u" || document.documentElement.dataset.mMotion === "none";
126
+ }
127
+ function te() {
128
+ return typeof document > "u" ? w : document.documentElement.dataset.mMotion === "reduced" ? T : w;
129
+ }
130
+ function $(e, t, n = !1) {
131
+ if (Q()) return;
132
+ let r = j.value, i = M.value;
133
+ if (!r || !i) return;
134
+ let a = r.getBoundingClientRect(), o = Math.ceil(Math.hypot(a.width, a.height) * 2), s = n ? a.width / 2 : e - a.left, c = n ? a.height / 2 : t - a.top, l = document.createElement("span");
135
+ l.className = "m-button__ripple-wave", l.style.width = `${o}px`, l.style.height = `${o}px`, l.style.left = `${s - o / 2}px`, l.style.top = `${c - o / 2}px`, i.appendChild(l);
136
+ let u = te(), d = () => {
137
+ l.remove();
138
+ };
139
+ if (typeof l.animate == "function") {
140
+ let e = l.animate([
141
+ {
142
+ transform: "scale(0)",
143
+ opacity: .42
144
+ },
145
+ {
146
+ transform: "scale(0.55)",
147
+ opacity: .22,
148
+ offset: .55
149
+ },
150
+ {
151
+ transform: "scale(1)",
152
+ opacity: 0
153
+ }
154
+ ], {
155
+ duration: u,
156
+ easing: "cubic-bezier(0.2, 0, 0, 1)",
157
+ fill: "forwards"
158
+ });
159
+ N.add(e), e.finished.then(() => {
160
+ N.delete(e), d();
161
+ }).catch(d);
162
+ return;
163
+ }
164
+ l.classList.add("m-button__ripple-wave--fallback"), window.setTimeout(d, u);
165
+ }
166
+ function ne(e) {
167
+ O.disabled || O.loading || e.button === 0 && $(e.clientX, e.clientY);
168
+ }
169
+ function re(e) {
170
+ O.disabled || O.loading || (e.detail === 0 && $(0, 0, !0), k("click", e));
171
+ }
172
+ function ie() {
173
+ j.value?.focus();
174
+ }
175
+ return g(() => {
176
+ for (let e of N) e.cancel();
177
+ N.clear();
178
+ }), E({
179
+ focus: ie,
180
+ ref: j
181
+ }), (e, t) => (_(), u("button", {
182
+ ref_key: "buttonElement",
183
+ ref: j,
184
+ class: m(J.value),
185
+ style: h(Y.value),
186
+ type: p.nativeType,
187
+ disabled: p.disabled || p.loading,
188
+ autofocus: p.autofocus || void 0,
189
+ "aria-busy": p.loading || void 0,
190
+ "aria-label": p.ariaLabel || (W.value ? p.label : void 0),
191
+ onPointerdown: ne,
192
+ onClick: re
193
+ }, [
194
+ p.ripple ? (_(), u("span", {
195
+ key: 0,
196
+ ref_key: "rippleLayer",
197
+ ref: M,
198
+ class: "m-button__ripple",
199
+ "aria-hidden": "true"
200
+ }, null, 512)) : l("", !0),
201
+ p.loading || p.icon || e.$slots.icon ? (_(), u("span", {
202
+ key: 1,
203
+ class: m(["m-button__icon", { "m-button__icon--loading": p.loading }]),
204
+ "aria-hidden": "true"
205
+ }, [p.loading ? y(e.$slots, "loadingicon", {}, () => [t[0] ||= d("span", { class: "m-button__spinner" }, null, -1)], void 0, 0) : y(e.$slots, "icon", { class: "m-button__icon-slot" }, () => [K.value ? (_(), c(n, {
206
+ key: 0,
207
+ name: K.value,
208
+ size: U.value
209
+ }, null, 8, ["name", "size"])) : q.value ? (_(), c(b(q.value), {
210
+ key: 1,
211
+ class: "m-button__icon-graphic"
212
+ })) : l("", !0)], void 0, 1)], 2)) : l("", !0),
213
+ F.value && !p.iconOnly ? (_(), u("span", C, [y(e.$slots, "default", {}, () => [f(x(p.label), 1)])])) : l("", !0),
214
+ p.badge != null && p.badge !== "" ? (_(), u("span", {
215
+ key: 3,
216
+ class: m(X.value)
217
+ }, x(p.badge), 3)) : l("", !0)
218
+ ], 46, S));
219
+ }
220
+ });
221
+ //#endregion
222
+ export { E as t };
@@ -28,16 +28,14 @@ var _ = ["aria-label"], v = {
28
28
  type: Boolean,
29
29
  default: !0
30
30
  },
31
- hoverable: {
32
- type: Boolean,
33
- default: !1
34
- }
31
+ shadow: { default: "never" }
35
32
  },
36
33
  setup(c) {
37
34
  let C = c, w = h(), { rootAttrs: T } = e(w, () => C.pt), E = n(() => t(C.size)), D = n(() => `h${C.headingLevel}`), O = n(() => ["m-card", {
38
35
  "m-card--bordered": C.bordered,
39
36
  "m-card--borderless": !C.bordered,
40
- "m-card--hoverable": C.hoverable,
37
+ "m-card--shadow-hover": C.shadow === "hover",
38
+ "m-card--shadow-always": C.shadow === "always",
41
39
  "m-card--small": E.value === "small",
42
40
  "m-card--large": E.value === "large"
43
41
  }]);
@@ -0,0 +1,147 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./Icon-od9Ob-Ay.js";
3
+ import { t as n } from "./useMId-BXFYayPP.js";
4
+ import { n as r } from "./locale-Bzm2nbEp.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, defineComponent as l, mergeProps as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useSlots as _, watch as v } from "vue";
6
+ //#region src/components/Empty/illustrations/loaders.ts
7
+ var y = {
8
+ "no-content": () => import("./no-content-CwbqVPoN.js"),
9
+ "no-result": () => import("./no-result-pGce34BV.js"),
10
+ "no-message": () => import("./no-message-DnIEpMiO.js"),
11
+ "no-schedule": () => import("./no-schedule-Cl9Frt1Q.js"),
12
+ "no-issue": () => import("./no-issue-DMkU-Pnw.js"),
13
+ "network-error": () => import("./network-error-C6vl5a7S.js"),
14
+ "server-error": () => import("./server-error-D8zGMe5r.js"),
15
+ building: () => import("./building-DYLdXiQg.js"),
16
+ "churn-high": () => import("./churn-high-D1ELpZzW.js"),
17
+ "conversion-low": () => import("./conversion-low-CwZiQc2k.js"),
18
+ "activity-low": () => import("./activity-low-CgK9kHWr.js"),
19
+ "profile-unclear": () => import("./profile-unclear-CGs4PCfw.js"),
20
+ "input-irregular": () => import("./input-irregular-xSLDoNTS.js"),
21
+ "payment-cycle-long": () => import("./payment-cycle-long-Ba9FNStl.js")
22
+ };
23
+ async function b(e) {
24
+ return (await y[e]()).default;
25
+ }
26
+ //#endregion
27
+ //#region src/components/Empty/illustrations/defaultEmptyIcon.ts
28
+ var x = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 28 28\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 3.95118 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z\" fill=\"currentColor\"/><path d=\"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z\" fill=\"currentColor\"/></svg>", S = [
29
+ "no-content",
30
+ "no-result",
31
+ "no-message",
32
+ "no-schedule",
33
+ "no-issue"
34
+ ], C = [
35
+ "network-error",
36
+ "server-error",
37
+ "building"
38
+ ], w = /__MID_(\d+)__/g;
39
+ function T(e, t) {
40
+ return e.replace(w, (e, n) => `${t}-${n}`);
41
+ }
42
+ async function E(e, t) {
43
+ return T(await b(e), t);
44
+ }
45
+ //#endregion
46
+ //#region src/components/Empty/Empty.vue?vue&type=script&setup=true&lang.ts
47
+ var D = {
48
+ key: 0,
49
+ class: "m-empty__illustration",
50
+ "aria-hidden": "true"
51
+ }, O = ["src"], k = ["innerHTML"], A = ["innerHTML"], j = {
52
+ key: 1,
53
+ class: "m-empty__body"
54
+ }, M = {
55
+ key: 0,
56
+ class: "m-empty__title"
57
+ }, N = {
58
+ key: 1,
59
+ class: "m-empty__description"
60
+ }, P = {
61
+ key: 2,
62
+ class: "m-empty__extra"
63
+ }, F = /* @__PURE__ */ l({
64
+ inheritAttrs: !1,
65
+ __name: "Empty",
66
+ props: {
67
+ pt: {},
68
+ title: {},
69
+ description: {},
70
+ showDescription: {
71
+ type: Boolean,
72
+ default: !0
73
+ },
74
+ showIcon: {
75
+ type: Boolean,
76
+ default: !0
77
+ },
78
+ size: {},
79
+ icon: {},
80
+ illustration: {},
81
+ image: {},
82
+ simple: {
83
+ type: Boolean,
84
+ default: !1
85
+ }
86
+ },
87
+ setup(l) {
88
+ let y = l, b = g(), S = _(), { rootAttrs: C } = e(b, () => y.pt), w = r(), T = n("m-ill"), F = f(), I = 0;
89
+ function L(e) {
90
+ return e === "small" || e === "sm" ? "small" : e === "large" || e === "lg" ? "large" : "medium";
91
+ }
92
+ let R = i(() => L(y.size)), z = i(() => !!(S.image || y.image)), B = i(() => !!S.icon), V = i(() => {
93
+ if (y.showIcon) {
94
+ if (y.illustration) return y.illustration;
95
+ if (!(z.value || B.value) && y.icon === "search") return "no-result";
96
+ }
97
+ });
98
+ v(V, (e) => {
99
+ let t = ++I;
100
+ if (!e) {
101
+ F.value = void 0;
102
+ return;
103
+ }
104
+ E(e, T).then((e) => {
105
+ t === I && (F.value = e);
106
+ }, () => {
107
+ t === I && (F.value = void 0);
108
+ });
109
+ }, { immediate: !0 });
110
+ let H = i(() => y.showIcon && !!V.value && !!F.value && !z.value && !B.value), U = i(() => y.showIcon && !!y.icon && y.icon !== "search" && !V.value && !z.value && !B.value), W = i(() => y.showIcon && !V.value && !U.value && !z.value && !B.value), G = i(() => y.showIcon && (z.value || B.value || H.value || U.value || W.value)), K = i(() => y.description == null ? w.value.emptyMessage : y.description), q = i(() => S.title ? !0 : y.title != null && y.title !== ""), J = i(() => y.showDescription ? S.default ? !0 : !!K.value : !1), Y = i(() => [
111
+ "m-empty",
112
+ `m-empty--${R.value}`,
113
+ {
114
+ "m-empty--simple": y.simple,
115
+ "m-empty--default-icon": W.value
116
+ }
117
+ ]);
118
+ return (e, n) => (d(), s("div", u(h(C), {
119
+ class: Y.value,
120
+ role: "status"
121
+ }), [
122
+ G.value ? (d(), s("div", D, [z.value ? p(e.$slots, "image", {}, () => [l.image ? (d(), s("img", {
123
+ key: 0,
124
+ class: "m-empty__image",
125
+ src: l.image,
126
+ alt: ""
127
+ }, null, 8, O)) : o("", !0)], void 0, 0) : B.value ? p(e.$slots, "icon", {}, void 0, void 0, 1) : H.value && F.value ? (d(), s("div", {
128
+ key: 2,
129
+ class: "m-empty__glyph",
130
+ innerHTML: F.value
131
+ }, null, 8, k)) : U.value && l.icon ? (d(), a(t, {
132
+ key: 3,
133
+ class: "m-empty__icon",
134
+ name: l.icon,
135
+ size: "lg"
136
+ }, null, 8, ["name"])) : W.value ? (d(), s("div", {
137
+ key: 4,
138
+ class: "m-empty__default-icon",
139
+ innerHTML: h(x)
140
+ }, null, 8, A)) : o("", !0)])) : o("", !0),
141
+ q.value || J.value ? (d(), s("div", j, [q.value ? (d(), s("div", M, [p(e.$slots, "title", {}, () => [c(m(l.title), 1)])])) : o("", !0), J.value ? (d(), s("div", N, [p(e.$slots, "default", {}, () => [c(m(K.value), 1)])])) : o("", !0)])) : o("", !0),
142
+ h(S).extra ? (d(), s("div", P, [p(e.$slots, "extra")])) : o("", !0)
143
+ ], 16));
144
+ }
145
+ });
146
+ //#endregion
147
+ export { b as i, C as n, S as r, F as t };