morya-ui 0.4.1 → 0.4.3

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 (252) hide show
  1. package/CHANGELOG.md +60 -1
  2. package/dist/Button-Bjsth0ct.js +326 -0
  3. package/dist/{Card-B1CB9Trm.js → Card-Ct5vJmoV.js} +1 -1
  4. package/dist/{Checkbox-BKt8hdhV.js → Checkbox-Bo26OGHP.js} +1 -1
  5. package/dist/{DatePicker-CSoMFEvh.js → DatePicker-CsMGzCqY.js} +4 -4
  6. package/dist/{Empty-iNcc0G-q.js → Empty-rMhOPi79.js} +2 -2
  7. package/dist/{FlyoutSubmenu-C1RfFRzH.js → FlyoutSubmenu-C0id6-Sb.js} +1 -1
  8. package/dist/{Icon-od9Ob-Ay.js → Icon-CmHjx7W8.js} +1 -1
  9. package/dist/{Input-DQHYqvNk.js → Input-CxSTVp9E.js} +3 -3
  10. package/dist/{Loading-BPpR-jGa.js → Loading-D_qRwfKv.js} +11 -11
  11. package/dist/{Pagination-DLphD6LC.js → Pagination-CnGOpp0m.js} +3 -3
  12. package/dist/{Popover-B_2c9NWs.js → Popover-D1uZ1N9Z.js} +2 -2
  13. package/dist/{ProgressSpinner-B_OJG_0l.js → ProgressSpinner-hmR23xpi.js} +2 -2
  14. package/dist/{Radio-Bxd806ys.js → Radio-CZAyelC_.js} +1 -1
  15. package/dist/{Segmented-BRMSmXCl.js → Segmented-BpdO7arR.js} +2 -2
  16. package/dist/{Select-DxMlpgc5.js → Select-CySmusHs.js} +5 -5
  17. package/dist/{Textarea-BBvpgIQL.js → Textarea-DskjTCcz.js} +3 -3
  18. package/dist/{Tooltip-BJp-ZMqQ.js → Tooltip-DSfkflHp.js} +2 -2
  19. package/dist/alert/index.js +15 -15
  20. package/dist/alert/style.css +1 -1
  21. package/dist/auto-complete/index.js +4 -4
  22. package/dist/avatar/index.js +1 -1
  23. package/dist/badge/index.js +24 -24
  24. package/dist/badge/style.css +0 -1
  25. package/dist/block-ui/index.js +1 -1
  26. package/dist/breadcrumb/index.js +1 -1
  27. package/dist/button/index.js +9 -9
  28. package/dist/button/style.css +464 -775
  29. package/dist/button/style.js +1 -0
  30. package/dist/calendar/index.js +3 -3
  31. package/dist/card/index.js +1 -1
  32. package/dist/carousel/index.js +2 -4
  33. package/dist/carousel/style.css +457 -775
  34. package/dist/cascade-select/index.js +5 -5
  35. package/dist/checkbox/index.js +1 -1
  36. package/dist/chip/index.js +35 -35
  37. package/dist/chip/style.css +1 -1
  38. package/dist/command-menu/index.js +5 -5
  39. package/dist/components/Alert/Alert.vue.d.ts +2 -2
  40. package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
  41. package/dist/components/Alert/index.d.ts +1 -1
  42. package/dist/components/Alert/index.d.ts.map +1 -1
  43. package/dist/components/Alert/styles.css +1 -1
  44. package/dist/components/Alert/types.d.ts +3 -3
  45. package/dist/components/Alert/types.d.ts.map +1 -1
  46. package/dist/components/Badge/Badge.vue.d.ts +2 -2
  47. package/dist/components/Badge/index.d.ts +1 -1
  48. package/dist/components/Badge/index.d.ts.map +1 -1
  49. package/dist/components/Badge/styles.css +0 -1
  50. package/dist/components/Badge/types.d.ts +3 -4
  51. package/dist/components/Badge/types.d.ts.map +1 -1
  52. package/dist/components/Button/Button.vue.d.ts +15 -22
  53. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  54. package/dist/components/Button/ButtonGroup.vue.d.ts +1 -1
  55. package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
  56. package/dist/components/Button/buttonHelpers.d.ts +25 -0
  57. package/dist/components/Button/buttonHelpers.d.ts.map +1 -0
  58. package/dist/components/Button/index.d.ts +2 -1
  59. package/dist/components/Button/index.d.ts.map +1 -1
  60. package/dist/components/Button/styles.css +463 -781
  61. package/dist/components/Button/types.d.ts +63 -61
  62. package/dist/components/Button/types.d.ts.map +1 -1
  63. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  64. package/dist/components/Chip/index.d.ts +1 -1
  65. package/dist/components/Chip/index.d.ts.map +1 -1
  66. package/dist/components/Chip/styles.css +1 -1
  67. package/dist/components/Chip/types.d.ts +3 -3
  68. package/dist/components/Chip/types.d.ts.map +1 -1
  69. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -2
  70. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  71. package/dist/components/ConfirmDialog/types.d.ts +3 -3
  72. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  73. package/dist/components/ConfirmDialog/useConfirm.d.ts +1 -1
  74. package/dist/components/ConfirmDialog/useConfirm.d.ts.map +1 -1
  75. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  76. package/dist/components/ConfirmPopup/types.d.ts +3 -3
  77. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  78. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  79. package/dist/components/Dialog/styles.css +2 -3
  80. package/dist/components/Dialog/types.d.ts +4 -5
  81. package/dist/components/Dialog/types.d.ts.map +1 -1
  82. package/dist/components/Dialog/useModal.d.ts +2 -2
  83. package/dist/components/Dialog/useModal.d.ts.map +1 -1
  84. package/dist/components/Divider/Divider.vue.d.ts +1 -1
  85. package/dist/components/Mentions/Mentions.vue.d.ts +1 -1
  86. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  87. package/dist/components/Message/index.d.ts +1 -1
  88. package/dist/components/Message/index.d.ts.map +1 -1
  89. package/dist/components/Message/message.d.ts +4 -0
  90. package/dist/components/Message/message.d.ts.map +1 -1
  91. package/dist/components/Message/styles.css +7 -9
  92. package/dist/components/Message/types.d.ts +4 -4
  93. package/dist/components/Message/types.d.ts.map +1 -1
  94. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  95. package/dist/components/Page/PageStat.vue.d.ts +2 -2
  96. package/dist/components/Page/index.d.ts +1 -1
  97. package/dist/components/Page/index.d.ts.map +1 -1
  98. package/dist/components/Page/styles.css +2 -2
  99. package/dist/components/Page/types.d.ts +2 -2
  100. package/dist/components/Page/types.d.ts.map +1 -1
  101. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  102. package/dist/components/ProgressBar/styles.css +1 -1
  103. package/dist/components/ProgressBar/types.d.ts +2 -7
  104. package/dist/components/ProgressBar/types.d.ts.map +1 -1
  105. package/dist/components/QRCode/QRCode.vue.d.ts.map +1 -1
  106. package/dist/components/Select/Select.vue.d.ts +1 -1
  107. package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -1
  108. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  109. package/dist/components/SplitButton/types.d.ts +3 -3
  110. package/dist/components/SplitButton/types.d.ts.map +1 -1
  111. package/dist/components/Status/Status.vue.d.ts +2 -2
  112. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  113. package/dist/components/Status/index.d.ts +1 -1
  114. package/dist/components/Status/index.d.ts.map +1 -1
  115. package/dist/components/Status/styles.css +0 -1
  116. package/dist/components/Status/types.d.ts +4 -5
  117. package/dist/components/Status/types.d.ts.map +1 -1
  118. package/dist/components/Table/Table.vue.d.ts +4 -4
  119. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  120. package/dist/components/Table/render/TableThead.vue.d.ts +2 -0
  121. package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
  122. package/dist/components/Table/state/internal.d.ts +1 -0
  123. package/dist/components/Table/state/internal.d.ts.map +1 -1
  124. package/dist/components/Table/styles.css +9 -0
  125. package/dist/components/Tag/Tag.vue.d.ts +3 -3
  126. package/dist/components/Tag/index.d.ts +1 -1
  127. package/dist/components/Tag/index.d.ts.map +1 -1
  128. package/dist/components/Tag/styles.css +0 -1
  129. package/dist/components/Tag/types.d.ts +4 -5
  130. package/dist/components/Tag/types.d.ts.map +1 -1
  131. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  132. package/dist/components/Timeline/index.d.ts +1 -1
  133. package/dist/components/Timeline/index.d.ts.map +1 -1
  134. package/dist/components/Timeline/styles.css +2 -4
  135. package/dist/components/Timeline/types.d.ts +3 -3
  136. package/dist/components/Timeline/types.d.ts.map +1 -1
  137. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  138. package/dist/components/Toast/index.d.ts +1 -1
  139. package/dist/components/Toast/index.d.ts.map +1 -1
  140. package/dist/components/Toast/styles.css +1 -3
  141. package/dist/components/Toast/toast.d.ts +4 -0
  142. package/dist/components/Toast/toast.d.ts.map +1 -1
  143. package/dist/components/Toast/types.d.ts +5 -5
  144. package/dist/components/Toast/types.d.ts.map +1 -1
  145. package/dist/components/Toast/useNotification.d.ts +3 -2
  146. package/dist/components/Toast/useNotification.d.ts.map +1 -1
  147. package/dist/components/Tour/Tour.vue.d.ts.map +1 -1
  148. package/dist/{config-COgrsSV2.js → config-BEpyhJi3.js} +12 -5
  149. package/dist/config-provider/index.js +1 -1
  150. package/dist/config-provider/style.css +457 -775
  151. package/dist/confirm-dialog/index.js +62 -59
  152. package/dist/confirm-dialog/style.css +459 -778
  153. package/dist/confirm-popup/index.js +18 -15
  154. package/dist/confirm-popup/style.css +457 -775
  155. package/dist/context-menu/index.js +5 -5
  156. package/dist/data-view/index.js +3 -3
  157. package/dist/date-picker/index.js +1 -1
  158. package/dist/descriptions/index.js +1 -1
  159. package/dist/dialog/index.js +126 -116
  160. package/dist/dialog/style.css +459 -778
  161. package/dist/dock/index.js +2 -2
  162. package/dist/drawer/index.js +4 -4
  163. package/dist/dropdown/index.js +6 -6
  164. package/dist/empty/index.js +1 -1
  165. package/dist/fieldset/index.js +1 -1
  166. package/dist/file-upload/index.js +2 -2
  167. package/dist/flex/index.js +1 -1
  168. package/dist/form/index.js +2 -2
  169. package/dist/gallery/index.js +2 -2
  170. package/dist/icon/index.js +1 -1
  171. package/dist/{icon-COrt_N8A.js → icon-H8prbteT.js} +1 -1
  172. package/dist/image/index.js +2 -2
  173. package/dist/index.d.ts +12 -12
  174. package/dist/index.d.ts.map +1 -1
  175. package/dist/index.js +4478 -4380
  176. package/dist/input/index.js +1 -1
  177. package/dist/input-color/index.js +2 -2
  178. package/dist/input-number/index.js +3 -3
  179. package/dist/input-otp/index.js +2 -2
  180. package/dist/input-password/index.js +4 -4
  181. package/dist/input-tags/index.js +3 -3
  182. package/dist/layout/index.js +2 -2
  183. package/dist/list/index.js +4 -4
  184. package/dist/listbox/index.js +2 -2
  185. package/dist/loading/index.js +1 -1
  186. package/dist/locale-CZddM-tH.js +21 -0
  187. package/dist/mega-menu/index.js +5 -5
  188. package/dist/mentions/index.js +4 -4
  189. package/dist/menu/index.js +6 -6
  190. package/dist/menubar/index.js +5 -5
  191. package/dist/message/index.js +116 -117
  192. package/dist/message/style.css +7 -9
  193. package/dist/order-list/index.js +2 -2
  194. package/dist/page/index.js +9 -11
  195. package/dist/page/style.css +459 -777
  196. package/dist/pagination/index.js +1 -1
  197. package/dist/panel/index.js +3 -3
  198. package/dist/pick-list/index.js +2 -2
  199. package/dist/popover/index.js +1 -1
  200. package/dist/progress-bar/index.js +33 -34
  201. package/dist/progress-bar/style.css +1 -1
  202. package/dist/progress-spinner/index.js +1 -1
  203. package/dist/qr-code/index.js +4 -4
  204. package/dist/qr-code/style.css +457 -775
  205. package/dist/radio/index.js +1 -1
  206. package/dist/rating/index.js +3 -3
  207. package/dist/result/index.js +2 -2
  208. package/dist/scroll-top/index.js +3 -3
  209. package/dist/segmented/index.js +1 -1
  210. package/dist/select/index.js +1 -1
  211. package/dist/select-button/index.js +1 -1
  212. package/dist/shared/componentDefaults.d.ts +6 -0
  213. package/dist/shared/componentDefaults.d.ts.map +1 -1
  214. package/dist/shared/types.d.ts +7 -20
  215. package/dist/shared/types.d.ts.map +1 -1
  216. package/dist/sidebar/index.js +3 -3
  217. package/dist/slider/index.js +2 -2
  218. package/dist/space/index.js +1 -1
  219. package/dist/speed-dial/index.js +5 -5
  220. package/dist/split-button/index.js +9 -12
  221. package/dist/split-button/style.css +463 -781
  222. package/dist/splitter/index.js +1 -1
  223. package/dist/status/index.js +30 -31
  224. package/dist/status/style.css +0 -1
  225. package/dist/stepper/index.js +1 -1
  226. package/dist/styles.css +1 -1
  227. package/dist/switch/index.js +1 -1
  228. package/dist/table/index.js +1629 -1623
  229. package/dist/table/style.css +9 -0
  230. package/dist/tabs/index.js +2 -2
  231. package/dist/tag/index.js +52 -52
  232. package/dist/tag/style.css +0 -1
  233. package/dist/terminal/index.js +1 -1
  234. package/dist/textarea/index.js +1 -1
  235. package/dist/tiered-menu/index.js +4 -4
  236. package/dist/time-picker/index.js +1 -1
  237. package/dist/timeline/index.js +67 -72
  238. package/dist/timeline/style.css +2 -4
  239. package/dist/toast/index.js +135 -136
  240. package/dist/toast/style.css +458 -778
  241. package/dist/toggle-button/index.js +3 -3
  242. package/dist/tooltip/index.js +1 -1
  243. package/dist/tour/index.js +8 -9
  244. package/dist/tour/style.css +457 -775
  245. package/dist/tree/index.js +3 -3
  246. package/dist/tree-select/index.js +5 -5
  247. package/dist/{types-DGuu4Eg4.js → types-DBQfGctj.js} +1 -4
  248. package/dist/typography/index.js +3 -3
  249. package/dist/{useMotionTransition-S2rlviyZ.js → useMotionTransition-DqL_SEML.js} +1 -1
  250. package/package.json +1 -1
  251. package/dist/Button-TaJ0LKtP.js +0 -234
  252. package/dist/locale-Dnk0UIie.js +0 -21
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
- import { a as t, t as n } from "../Icon-od9Ob-Ay.js";
2
+ import { a as t, t as n } from "../Icon-CmHjx7W8.js";
3
3
  import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
4
- import { t as i } from "../Checkbox-BKt8hdhV.js";
4
+ import { t as i } from "../Checkbox-Bo26OGHP.js";
5
5
  import { a, c as ee, d as o, f as s, i as c, l, o as u, p as d, r as te, s as ne, t as f } from "../treeQuery-CnHkyYOA.js";
6
- import { n as re } from "../locale-Dnk0UIie.js";
6
+ import { n as re } from "../locale-CZddM-tH.js";
7
7
  import "./style.js";
8
8
  import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, defineComponent as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as ie, renderSlot as ae, resolveDynamicComponent as oe, toDisplayString as k, unref as A, useAttrs as se, useSlots as ce, watch as j, withModifiers as M } from "vue";
9
9
  //#region src/components/Tree/context.ts
@@ -4,14 +4,14 @@ import { t as r } from "../overlayPlacement-qwEJPVS4.js";
4
4
  import { t as i } from "../useFieldFeedback-C5qIqYMK.js";
5
5
  import { t as ee } from "../useFloatingViewportSync-wLLKIGUA.js";
6
6
  import { t as te } from "../useMId-BXFYayPP.js";
7
- import { t as ne } from "../useMotionTransition-S2rlviyZ.js";
8
- import { t as a } from "../Icon-od9Ob-Ay.js";
7
+ import { t as ne } from "../useMotionTransition-DqL_SEML.js";
8
+ import { t as a } from "../Icon-CmHjx7W8.js";
9
9
  import { t as re } from "../Scrollbar-DTeJ8P5b.js";
10
10
  import { t as ie } from "../useMenuKeyboard-BedmYE4W.js";
11
- import { t as o } from "../Checkbox-BKt8hdhV.js";
11
+ import { t as o } from "../Checkbox-Bo26OGHP.js";
12
12
  import { a as ae, c as oe, d as se, f as ce, l as s, n as le, p as ue, u as c } from "../treeQuery-CnHkyYOA.js";
13
- import { c as de, o as fe } from "../config-COgrsSV2.js";
14
- import { n as l } from "../locale-Dnk0UIie.js";
13
+ import { l as de, o as fe } from "../config-BEpyhJi3.js";
14
+ import { n as l } from "../locale-CZddM-tH.js";
15
15
  import "./style.js";
16
16
  import { Fragment as u, Teleport as pe, Transition as me, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as he, createVNode as g, defineComponent as _, mergeProps as ge, nextTick as _e, normalizeClass as v, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as y, ref as b, renderList as x, renderSlot as be, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as we, withCtx as T, withDirectives as Te, withModifiers as E } from "vue";
17
17
  //#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
@@ -8,8 +8,5 @@ function t(e) {
8
8
  function n(e) {
9
9
  return e === "small" ? "sm" : e === "large" ? "lg" : "md";
10
10
  }
11
- function r(e) {
12
- return e === "warning" ? "warn" : e;
13
- }
14
11
  //#endregion
15
- export { e as i, t as n, n as r, r as t };
12
+ export { n, e as r, t };
@@ -1,8 +1,8 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
- import { t } from "../Icon-od9Ob-Ay.js";
2
+ import { t } from "../Icon-CmHjx7W8.js";
3
3
  import { t as n } from "../vnode-PJWBO7_h.js";
4
- import { t as r } from "../Textarea-BBvpgIQL.js";
5
- import { n as i } from "../locale-Dnk0UIie.js";
4
+ import { t as r } from "../Textarea-DskjTCcz.js";
5
+ import { n as i } from "../locale-CZddM-tH.js";
6
6
  import "./style.js";
7
7
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useAttrs as w, useSlots as T, watch as E, withCtx as D, withKeys as O, withModifiers as k } from "vue";
8
8
  //#region src/components/Typography/decoration.ts
@@ -1,4 +1,4 @@
1
- import { c as e, l as t } from "./config-COgrsSV2.js";
1
+ import { l as e, u as t } from "./config-BEpyhJi3.js";
2
2
  import { computed as n, toValue as r } from "vue";
3
3
  //#region src/theme/motionPresets.ts
4
4
  var i = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "morya-ui",
3
3
  "type": "module",
4
- "version": "0.4.1",
4
+ "version": "0.4.3",
5
5
  "description": "Open-source Vue 3 component library with design tokens, themes, and interactive docs.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://morya-space.github.io/morya-ui/",
@@ -1,234 +0,0 @@
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-COgrsSV2.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 S } from "vue";
5
- //#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
6
- var C = [
7
- "type",
8
- "disabled",
9
- "autofocus",
10
- "aria-busy",
11
- "aria-label"
12
- ], w = {
13
- key: 2,
14
- class: "m-button__label"
15
- }, T = 560, E = 280, D = /* @__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
- shape: { default: void 0 },
36
- text: {
37
- type: Boolean,
38
- default: !1
39
- },
40
- outlined: {
41
- type: Boolean,
42
- default: !1
43
- },
44
- dashed: {
45
- type: Boolean,
46
- default: !1
47
- },
48
- link: {
49
- type: Boolean,
50
- default: !1
51
- },
52
- underline: {
53
- type: Boolean,
54
- default: !0
55
- },
56
- ghost: {
57
- type: Boolean,
58
- default: !1
59
- },
60
- quaternary: {
61
- type: Boolean,
62
- default: !1
63
- },
64
- plain: {
65
- type: Boolean,
66
- default: !1
67
- },
68
- variant: {},
69
- size: {},
70
- fluid: {
71
- type: Boolean,
72
- default: !1
73
- },
74
- loading: {
75
- type: Boolean,
76
- default: !1
77
- },
78
- disabled: {
79
- type: Boolean,
80
- default: !1
81
- },
82
- badge: {},
83
- badgeSeverity: { default: null },
84
- autofocus: {
85
- type: Boolean,
86
- default: !1
87
- },
88
- nativeType: { default: "button" },
89
- ariaLabel: {},
90
- ripple: {
91
- type: Boolean,
92
- default: !1
93
- },
94
- press: {
95
- type: Boolean,
96
- default: !1
97
- }
98
- },
99
- emits: ["click"],
100
- setup(p, { expose: D, emit: ee }) {
101
- let O = p, k = ee, A = S(), j = v(null), M = v(null), N = /* @__PURE__ */ new Set(), te = s(() => !!A.default?.().some((e) => Q(e))), P = s(() => te.value || !!O.label?.trim()), F = s(() => O.outlined || O.variant === "outlined"), I = s(() => O.dashed || O.variant === "dashed"), 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 = s(() => O.shape ? O.shape : O.rounded ? "round" : "default"), U = r("Button", () => O.size), W = s(() => e(U.value)), G = s(() => O.iconOnly || !P.value && !!(O.icon || A.icon || O.loading)), K = s(() => t(O.severity) ?? "primary"), q = s(() => typeof O.icon == "string" ? O.icon : void 0), J = s(() => typeof O.icon == "string" || !O.icon ? void 0 : O.icon), Y = s(() => [
102
- "m-button",
103
- `m-button--${K.value}`,
104
- `m-button--${U.value}`,
105
- `m-button--icon-${O.iconPos}`,
106
- `m-button--shape-${H.value}`,
107
- {
108
- "m-button--raised": O.raised,
109
- "m-button--rounded": H.value === "round" || H.value === "circle",
110
- "m-button--text": L.value,
111
- "m-button--outlined": F.value && !I.value,
112
- "m-button--dashed": I.value,
113
- "m-button--link": R.value,
114
- "m-button--link-underline": R.value && O.underline,
115
- "m-button--ghost": z.value,
116
- "m-button--quaternary": B.value,
117
- "m-button--plain": O.plain,
118
- "m-button--fluid": V.value,
119
- "m-button--loading": O.loading,
120
- "m-button--icon-only": G.value,
121
- "m-button--custom": !!O.color,
122
- "m-button--ripple": O.ripple,
123
- "m-button--press": O.press
124
- }
125
- ]), X = s(() => O.color ? { "--m-button-color": O.color } : void 0), Z = s(() => ["m-button__badge", O.badgeSeverity ? `m-button__badge--${t(O.badgeSeverity)}` : "m-button__badge--contrast"]);
126
- function Q(e) {
127
- if (e == null || typeof e == "boolean") return !1;
128
- if (typeof e == "string" || typeof e == "number") return String(e).trim().length > 0;
129
- if (Array.isArray(e)) return e.some((e) => Q(e));
130
- if (typeof e == "object" && "type" in e) {
131
- let t = e;
132
- return t.type === i ? !1 : t.type === o ? String(t.children ?? "").trim().length > 0 : t.type !== a || Q(t.children);
133
- }
134
- return !1;
135
- }
136
- function ne() {
137
- return !O.ripple || typeof document > "u" || document.documentElement.dataset.mMotion === "none";
138
- }
139
- function re() {
140
- return typeof document > "u" ? T : document.documentElement.dataset.mMotion === "reduced" ? E : T;
141
- }
142
- function $(e, t, n = !1) {
143
- if (ne()) return;
144
- let r = j.value, i = M.value;
145
- if (!r || !i) return;
146
- 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");
147
- 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);
148
- let u = re(), d = () => {
149
- l.remove();
150
- };
151
- if (typeof l.animate == "function") {
152
- let e = l.animate([
153
- {
154
- transform: "scale(0)",
155
- opacity: .42
156
- },
157
- {
158
- transform: "scale(0.55)",
159
- opacity: .22,
160
- offset: .55
161
- },
162
- {
163
- transform: "scale(1)",
164
- opacity: 0
165
- }
166
- ], {
167
- duration: u,
168
- easing: "cubic-bezier(0.2, 0, 0, 1)",
169
- fill: "forwards"
170
- });
171
- N.add(e), e.finished.then(() => {
172
- N.delete(e), d();
173
- }).catch(d);
174
- return;
175
- }
176
- l.classList.add("m-button__ripple-wave--fallback"), window.setTimeout(d, u);
177
- }
178
- function ie(e) {
179
- O.disabled || O.loading || e.button === 0 && $(e.clientX, e.clientY);
180
- }
181
- function ae(e) {
182
- O.disabled || O.loading || (e.detail === 0 && $(0, 0, !0), k("click", e));
183
- }
184
- function oe() {
185
- j.value?.focus();
186
- }
187
- return g(() => {
188
- for (let e of N) e.cancel();
189
- N.clear();
190
- }), D({
191
- focus: oe,
192
- ref: j
193
- }), (e, t) => (_(), u("button", {
194
- ref_key: "buttonElement",
195
- ref: j,
196
- class: m(Y.value),
197
- style: h(X.value),
198
- type: p.nativeType,
199
- disabled: p.disabled || p.loading,
200
- autofocus: p.autofocus || void 0,
201
- "aria-busy": p.loading || void 0,
202
- "aria-label": p.ariaLabel || (G.value ? p.label : void 0),
203
- onPointerdown: ie,
204
- onClick: ae
205
- }, [
206
- p.ripple ? (_(), u("span", {
207
- key: 0,
208
- ref_key: "rippleLayer",
209
- ref: M,
210
- class: "m-button__ripple",
211
- "aria-hidden": "true"
212
- }, null, 512)) : l("", !0),
213
- p.loading || p.icon || e.$slots.icon ? (_(), u("span", {
214
- key: 1,
215
- class: m(["m-button__icon", { "m-button__icon--loading": p.loading }]),
216
- "aria-hidden": "true"
217
- }, [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" }, () => [q.value ? (_(), c(n, {
218
- key: 0,
219
- name: q.value,
220
- size: W.value
221
- }, null, 8, ["name", "size"])) : J.value ? (_(), c(b(J.value), {
222
- key: 1,
223
- class: "m-button__icon-graphic"
224
- })) : l("", !0)], void 0, 1)], 2)) : l("", !0),
225
- P.value && !p.iconOnly ? (_(), u("span", w, [y(e.$slots, "default", {}, () => [f(x(p.label), 1)])])) : l("", !0),
226
- p.badge != null && p.badge !== "" ? (_(), u("span", {
227
- key: 3,
228
- class: m(Z.value)
229
- }, x(p.badge), 3)) : l("", !0)
230
- ], 46, C));
231
- }
232
- });
233
- //#endregion
234
- export { D as t };
@@ -1,21 +0,0 @@
1
- import { c as e, u as t } from "./config-COgrsSV2.js";
2
- import { computed as n } from "vue";
3
- //#region src/locale/index.ts
4
- function r(e, t) {
5
- return e.replace(/\{(\w+)\}/g, (e, n) => String(t[n] ?? ""));
6
- }
7
- function i(e) {
8
- return {
9
- ...t,
10
- ...e,
11
- name: e?.name ?? t.name,
12
- weekdays: e?.weekdays?.length === 7 ? e.weekdays : t.weekdays,
13
- monthNames: e?.monthNames?.length === 12 ? e.monthNames : t.monthNames
14
- };
15
- }
16
- function a() {
17
- let t = e();
18
- return n(() => i(t.value.locale));
19
- }
20
- //#endregion
21
- export { a as n, r as t };