morya-ui 0.4.1 → 0.4.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 (166) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/dist/Button-BaYLh91a.js +326 -0
  3. package/dist/{Checkbox-BKt8hdhV.js → Checkbox-LxCFF19I.js} +1 -1
  4. package/dist/{DatePicker-CSoMFEvh.js → DatePicker-DGPNukEW.js} +3 -3
  5. package/dist/{Empty-iNcc0G-q.js → Empty-2_f_FgyK.js} +1 -1
  6. package/dist/{FlyoutSubmenu-C1RfFRzH.js → FlyoutSubmenu-Da6AcoM4.js} +1 -1
  7. package/dist/{Input-DQHYqvNk.js → Input-NspPDc2R.js} +2 -2
  8. package/dist/{Loading-BPpR-jGa.js → Loading-BK4dQPCS.js} +10 -10
  9. package/dist/{Pagination-DLphD6LC.js → Pagination-tdrlaZ3u.js} +2 -2
  10. package/dist/{Popover-B_2c9NWs.js → Popover-BumMfUpV.js} +2 -2
  11. package/dist/{ProgressSpinner-B_OJG_0l.js → ProgressSpinner-BQ1tLioO.js} +1 -1
  12. package/dist/{Radio-Bxd806ys.js → Radio-BCn2OVCF.js} +1 -1
  13. package/dist/{Segmented-BRMSmXCl.js → Segmented-ppmDmku5.js} +1 -1
  14. package/dist/{Select-DxMlpgc5.js → Select-CN1tM76U.js} +4 -4
  15. package/dist/{Textarea-BBvpgIQL.js → Textarea-Ch1KCXEv.js} +2 -2
  16. package/dist/{Tooltip-BJp-ZMqQ.js → Tooltip-DKsXxU_B.js} +2 -2
  17. package/dist/alert/index.js +2 -2
  18. package/dist/auto-complete/index.js +3 -3
  19. package/dist/block-ui/index.js +1 -1
  20. package/dist/breadcrumb/index.js +1 -1
  21. package/dist/button/index.js +9 -9
  22. package/dist/button/style.css +464 -775
  23. package/dist/button/style.js +1 -0
  24. package/dist/calendar/index.js +3 -3
  25. package/dist/carousel/index.js +2 -4
  26. package/dist/carousel/style.css +457 -775
  27. package/dist/cascade-select/index.js +4 -4
  28. package/dist/checkbox/index.js +1 -1
  29. package/dist/chip/index.js +1 -1
  30. package/dist/command-menu/index.js +3 -3
  31. package/dist/components/Button/Button.vue.d.ts +15 -22
  32. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  33. package/dist/components/Button/ButtonGroup.vue.d.ts +1 -1
  34. package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
  35. package/dist/components/Button/buttonHelpers.d.ts +25 -0
  36. package/dist/components/Button/buttonHelpers.d.ts.map +1 -0
  37. package/dist/components/Button/index.d.ts +2 -1
  38. package/dist/components/Button/index.d.ts.map +1 -1
  39. package/dist/components/Button/styles.css +463 -781
  40. package/dist/components/Button/types.d.ts +67 -61
  41. package/dist/components/Button/types.d.ts.map +1 -1
  42. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  43. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -2
  44. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  45. package/dist/components/ConfirmDialog/types.d.ts +2 -2
  46. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  47. package/dist/components/ConfirmDialog/useConfirm.d.ts +1 -1
  48. package/dist/components/ConfirmDialog/useConfirm.d.ts.map +1 -1
  49. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  50. package/dist/components/ConfirmPopup/types.d.ts +3 -3
  51. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  52. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  53. package/dist/components/Dialog/types.d.ts +3 -3
  54. package/dist/components/Dialog/types.d.ts.map +1 -1
  55. package/dist/components/Dialog/useModal.d.ts +2 -2
  56. package/dist/components/Dialog/useModal.d.ts.map +1 -1
  57. package/dist/components/Divider/Divider.vue.d.ts +1 -1
  58. package/dist/components/Mentions/Mentions.vue.d.ts +1 -1
  59. package/dist/components/Message/styles.css +4 -2
  60. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  61. package/dist/components/QRCode/QRCode.vue.d.ts.map +1 -1
  62. package/dist/components/Select/Select.vue.d.ts +1 -1
  63. package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -1
  64. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  65. package/dist/components/SplitButton/types.d.ts +3 -3
  66. package/dist/components/SplitButton/types.d.ts.map +1 -1
  67. package/dist/components/Table/Table.vue.d.ts +4 -4
  68. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  69. package/dist/components/Table/render/TableThead.vue.d.ts +2 -0
  70. package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
  71. package/dist/components/Table/state/internal.d.ts +1 -0
  72. package/dist/components/Table/state/internal.d.ts.map +1 -1
  73. package/dist/components/Table/styles.css +9 -0
  74. package/dist/components/Tag/Tag.vue.d.ts +1 -1
  75. package/dist/components/Tour/Tour.vue.d.ts.map +1 -1
  76. package/dist/{config-COgrsSV2.js → config-CB_TiIvg.js} +11 -4
  77. package/dist/config-provider/index.js +1 -1
  78. package/dist/config-provider/style.css +457 -775
  79. package/dist/confirm-dialog/index.js +45 -39
  80. package/dist/confirm-dialog/style.css +457 -775
  81. package/dist/confirm-popup/index.js +17 -14
  82. package/dist/confirm-popup/style.css +457 -775
  83. package/dist/context-menu/index.js +3 -3
  84. package/dist/data-view/index.js +3 -3
  85. package/dist/date-picker/index.js +1 -1
  86. package/dist/descriptions/index.js +1 -1
  87. package/dist/dialog/index.js +68 -55
  88. package/dist/dialog/style.css +457 -775
  89. package/dist/drawer/index.js +3 -3
  90. package/dist/dropdown/index.js +4 -4
  91. package/dist/empty/index.js +1 -1
  92. package/dist/file-upload/index.js +1 -1
  93. package/dist/flex/index.js +1 -1
  94. package/dist/form/index.js +1 -1
  95. package/dist/gallery/index.js +1 -1
  96. package/dist/image/index.js +1 -1
  97. package/dist/index.d.ts +1 -1
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +4018 -3908
  100. package/dist/input/index.js +1 -1
  101. package/dist/input-color/index.js +2 -2
  102. package/dist/input-number/index.js +2 -2
  103. package/dist/input-otp/index.js +2 -2
  104. package/dist/input-password/index.js +2 -2
  105. package/dist/input-tags/index.js +2 -2
  106. package/dist/layout/index.js +1 -1
  107. package/dist/list/index.js +4 -4
  108. package/dist/listbox/index.js +2 -2
  109. package/dist/loading/index.js +1 -1
  110. package/dist/locale-CR2PIaxt.js +21 -0
  111. package/dist/mega-menu/index.js +3 -3
  112. package/dist/mentions/index.js +3 -3
  113. package/dist/menu/index.js +4 -4
  114. package/dist/menubar/index.js +3 -3
  115. package/dist/message/index.js +3 -3
  116. package/dist/message/style.css +4 -2
  117. package/dist/order-list/index.js +1 -1
  118. package/dist/page/index.js +4 -7
  119. package/dist/page/style.css +457 -775
  120. package/dist/pagination/index.js +1 -1
  121. package/dist/panel/index.js +1 -1
  122. package/dist/pick-list/index.js +1 -1
  123. package/dist/popover/index.js +1 -1
  124. package/dist/progress-spinner/index.js +1 -1
  125. package/dist/qr-code/index.js +3 -3
  126. package/dist/qr-code/style.css +457 -775
  127. package/dist/radio/index.js +1 -1
  128. package/dist/rating/index.js +2 -2
  129. package/dist/result/index.js +1 -1
  130. package/dist/scroll-top/index.js +2 -2
  131. package/dist/segmented/index.js +1 -1
  132. package/dist/select/index.js +1 -1
  133. package/dist/select-button/index.js +1 -1
  134. package/dist/shared/componentDefaults.d.ts +6 -0
  135. package/dist/shared/componentDefaults.d.ts.map +1 -1
  136. package/dist/sidebar/index.js +1 -1
  137. package/dist/slider/index.js +2 -2
  138. package/dist/space/index.js +1 -1
  139. package/dist/speed-dial/index.js +3 -3
  140. package/dist/split-button/index.js +7 -10
  141. package/dist/split-button/style.css +463 -781
  142. package/dist/splitter/index.js +1 -1
  143. package/dist/status/index.js +1 -1
  144. package/dist/styles.css +1 -1
  145. package/dist/switch/index.js +1 -1
  146. package/dist/table/index.js +1628 -1622
  147. package/dist/table/style.css +9 -0
  148. package/dist/tabs/index.js +1 -1
  149. package/dist/tag/index.js +2 -2
  150. package/dist/terminal/index.js +1 -1
  151. package/dist/textarea/index.js +1 -1
  152. package/dist/tiered-menu/index.js +3 -3
  153. package/dist/time-picker/index.js +1 -1
  154. package/dist/toast/index.js +3 -3
  155. package/dist/toast/style.css +457 -775
  156. package/dist/toggle-button/index.js +1 -1
  157. package/dist/tooltip/index.js +1 -1
  158. package/dist/tour/index.js +7 -8
  159. package/dist/tour/style.css +457 -775
  160. package/dist/tree/index.js +2 -2
  161. package/dist/tree-select/index.js +4 -4
  162. package/dist/typography/index.js +2 -2
  163. package/dist/{useMotionTransition-S2rlviyZ.js → useMotionTransition-D8JOR3ih.js} +1 -1
  164. package/package.json +1 -1
  165. package/dist/Button-TaJ0LKtP.js +0 -234
  166. package/dist/locale-Dnk0UIie.js +0 -21
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { a as t, t as n } from "../Icon-od9Ob-Ay.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-LxCFF19I.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-CR2PIaxt.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";
7
+ import { t as ne } from "../useMotionTransition-D8JOR3ih.js";
8
8
  import { t as a } from "../Icon-od9Ob-Ay.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-LxCFF19I.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-CB_TiIvg.js";
14
+ import { n as l } from "../locale-CR2PIaxt.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
@@ -1,8 +1,8 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../Icon-od9Ob-Ay.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-Ch1KCXEv.js";
5
+ import { n as i } from "../locale-CR2PIaxt.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-CB_TiIvg.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.2",
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 };