@mtn-ui/components 0.0.7 → 0.0.10

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 (45) hide show
  1. package/dist/button/index.js +1 -1
  2. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-C2Vc6-OE.js → Button.vue_vue_type_script_setup_true_lang-C7ip0O23.js} +73 -66
  3. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-C2Vc6-OE.js.map → Button.vue_vue_type_script_setup_true_lang-C7ip0O23.js.map} +1 -1
  4. package/dist/index/index.js +24199 -14623
  5. package/dist/index/index.js.map +1 -1
  6. package/dist/index/style.css +1 -1
  7. package/dist/resolver/index.js +8 -6
  8. package/dist/resolver/index.js.map +1 -1
  9. package/dist/types/base-modal/BaseModal.d.ts +25 -0
  10. package/dist/types/base-modal/index.d.ts +1 -0
  11. package/dist/types/button/Button.d.ts +1 -1
  12. package/dist/types/confirm-button/ConfirmButton.d.ts +10 -1
  13. package/dist/types/confirm-button/types.d.ts +1 -1
  14. package/dist/types/copy-text/CopyText.d.ts +45 -0
  15. package/dist/types/copy-text/index.d.ts +2 -0
  16. package/dist/types/copy-text/types.d.ts +15 -0
  17. package/dist/types/delete-button/DeleteButton.d.ts +8 -0
  18. package/dist/types/delete-button/types.d.ts +1 -1
  19. package/dist/types/dict-badge/types.d.ts +1 -1
  20. package/dist/types/dict-checkbox/types.d.ts +1 -1
  21. package/dist/types/dict-radio/types.d.ts +1 -1
  22. package/dist/types/dict-select/types.d.ts +1 -1
  23. package/dist/types/dict-tag/types.d.ts +1 -1
  24. package/dist/types/form/Form.d.ts +34 -0
  25. package/dist/types/form/context.d.ts +19 -0
  26. package/dist/types/form/index.d.ts +2 -0
  27. package/dist/types/form-item/types.d.ts +1 -1
  28. package/dist/types/form-renderer/types.d.ts +8 -0
  29. package/dist/types/index.d.ts +10 -1
  30. package/dist/types/section-title/SectionTitle.d.ts +42 -0
  31. package/dist/types/section-title/index.d.ts +2 -0
  32. package/dist/types/section-title/types.d.ts +12 -0
  33. package/dist/types/section-title/variants.d.ts +7 -0
  34. package/dist/types/table/Table.d.ts +84 -0
  35. package/dist/types/table/components/TableColumnConfigurator.d.ts +50 -0
  36. package/dist/types/table/components/TableDensityControl.d.ts +34 -0
  37. package/dist/types/table/components/TableSearchBar.d.ts +46 -0
  38. package/dist/types/table/components/TableToolbar.d.ts +48 -0
  39. package/dist/types/table/index.d.ts +5 -0
  40. package/dist/types/table/types.d.ts +97 -0
  41. package/dist/types/table-action-group/TableActionGroup.d.ts +33 -0
  42. package/dist/types/table-action-group/TableActionItem.d.ts +16 -0
  43. package/dist/types/table-action-group/index.d.ts +2 -0
  44. package/dist/types/table-action-group/types.d.ts +25 -0
  45. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { _ as n, b as o, c as s } from "../chunks/Button.vue_vue_type_script_setup_true_lang-C2Vc6-OE.js";
1
+ import { _ as n, b as o, c as s } from "../chunks/Button.vue_vue_type_script_setup_true_lang-C7ip0O23.js";
2
2
  export {
3
3
  n as Button,
4
4
  o as buttonVariants,
@@ -80,10 +80,13 @@ function ti(e, t, r, n) {
80
80
  return n;
81
81
  }
82
82
  function Af(e) {
83
+ return typeof e == "number" ? `${e}px` : e;
84
+ }
85
+ function Pf(e) {
83
86
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0;
84
87
  return typeof e == "function" ? e(t) : e ?? r;
85
88
  }
86
- function Pf(e) {
89
+ function jf(e) {
87
90
  let t;
88
91
  const r = new Promise((o) => {
89
92
  t = e(() => {
@@ -148,13 +151,13 @@ const ri = (e) => e != null && e !== "", ni = (e, t) => {
148
151
  }
149
152
  }
150
153
  }), r);
151
- }, jf = (e, t) => e[t] !== void 0, ii = Symbol("skipFlatten"), re = function() {
154
+ }, If = (e, t) => e[t] !== void 0, ii = Symbol("skipFlatten"), re = function() {
152
155
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
153
156
  const r = Array.isArray(e) ? e : [e], n = [];
154
157
  return r.forEach((o) => {
155
158
  Array.isArray(o) ? n.push(...re(o, t)) : o && o.type === Ie ? o.key === ii ? n.push(o) : n.push(...re(o.children, t)) : o && Ye(o) ? t && !oo(o) ? n.push(o) : t || n.push(o) : ri(o) && n.push(o);
156
159
  }), n;
157
- }, If = function(e) {
160
+ }, _f = function(e) {
158
161
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
159
162
  if (Ye(e))
160
163
  return e.type === Ie ? t === "default" ? re(e.children) : [] : e.children && e.children[t] ? re(e.children[t](r)) : [];
@@ -168,7 +171,7 @@ const ri = (e) => e != null && e !== "", ni = (e, t) => {
168
171
  for (; r && !r.tagName; )
169
172
  r = r.nextSibling;
170
173
  return r;
171
- }, _f = (e) => {
174
+ }, Mf = (e) => {
172
175
  const t = {};
173
176
  if (e.$ && e.$.vnode) {
174
177
  const r = e.$.vnode.props || {};
@@ -188,7 +191,7 @@ const ri = (e) => e != null && e !== "", ni = (e, t) => {
188
191
  });
189
192
  }
190
193
  return t;
191
- }, Mf = function(e) {
194
+ }, Hf = function(e) {
192
195
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, o;
193
196
  if (e.$) {
194
197
  const a = e[t];
@@ -203,15 +206,15 @@ const ri = (e) => e != null && e !== "", ni = (e, t) => {
203
206
  }
204
207
  return Array.isArray(o) && (o = re(o), o = o.length === 1 ? o[0] : o, o = o.length === 0 ? void 0 : o), o;
205
208
  };
206
- function Hf() {
209
+ function Bf() {
207
210
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = {};
208
211
  return e.$ ? r = d(d({}, r), e.$attrs) : r = d(d({}, r), e.props), oi(r)[t ? "onEvents" : "events"];
209
212
  }
210
- function Bf(e, t) {
213
+ function Nf(e, t) {
211
214
  let n = ((Ye(e) ? e.props : e.$attrs) || {}).style || {};
212
215
  return typeof n == "string" && (n = ai(n, t)), n;
213
216
  }
214
- function Nf(e) {
217
+ function Rf(e) {
215
218
  return e.length === 1 && e[0].type === Ie;
216
219
  }
217
220
  function oo(e) {
@@ -224,10 +227,10 @@ function ao() {
224
227
  Array.isArray(r) ? t.push(...r) : (r == null ? void 0 : r.type) === Ie ? t.push(...ao(r.children)) : t.push(r);
225
228
  }), t.filter((r) => !oo(r));
226
229
  }
227
- function Rf(e) {
230
+ function Df(e) {
228
231
  return Array.isArray(e) && e.length === 1 && (e = e[0]), e && e.__v_isVNode && typeof e.type != "symbol";
229
232
  }
230
- function Df(e, t) {
233
+ function zf(e, t) {
231
234
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
232
235
  var n, o;
233
236
  return (n = t[r]) !== null && n !== void 0 ? n : (o = e[r]) === null || o === void 0 ? void 0 : o.call(e);
@@ -286,7 +289,7 @@ function ze(e) {
286
289
  default: e
287
290
  };
288
291
  }
289
- function zf(e) {
292
+ function kf(e) {
290
293
  return {
291
294
  type: Function,
292
295
  default: e
@@ -316,12 +319,12 @@ function li(e, t) {
316
319
  default: t
317
320
  } : nr(t);
318
321
  }
319
- const ci = "anticon", uo = Symbol("GlobalFormContextKey"), kf = (e) => {
322
+ const ci = "anticon", uo = Symbol("GlobalFormContextKey"), Ff = (e) => {
320
323
  be(uo, e);
321
- }, Ff = () => X(uo, {
324
+ }, Lf = () => X(uo, {
322
325
  validateMessages: m(() => {
323
326
  })
324
- }), Lf = () => ({
327
+ }), Wf = () => ({
325
328
  iconPrefixCls: String,
326
329
  getTargetContainer: {
327
330
  type: Function
@@ -377,7 +380,7 @@ const ci = "anticon", uo = Symbol("GlobalFormContextKey"), kf = (e) => {
377
380
  iconPrefixCls: m(() => ci),
378
381
  getPopupContainer: m(() => () => document.body),
379
382
  direction: m(() => "ltr")
380
- }, si = () => X(_r, fo), Wf = (e) => be(_r, e), po = Symbol("DisabledContextKey"), Mr = () => X(po, ie(void 0)), Vf = (e) => {
383
+ }, si = () => X(_r, fo), Vf = (e) => be(_r, e), po = Symbol("DisabledContextKey"), Mr = () => X(po, ie(void 0)), Gf = (e) => {
381
384
  const t = Mr();
382
385
  return be(po, m(() => {
383
386
  var r;
@@ -615,7 +618,7 @@ const ci = "anticon", uo = Symbol("GlobalFormContextKey"), kf = (e) => {
615
618
  };
616
619
  }
617
620
  });
618
- function Gf(e, t, r) {
621
+ function Xf(e, t, r) {
619
622
  const n = X("localeData", {});
620
623
  return [m(() => {
621
624
  const {
@@ -959,7 +962,7 @@ function To(e, t, r) {
959
962
  function Br(e, t) {
960
963
  To(Ei, e, t);
961
964
  }
962
- function Xf(e, t) {
965
+ function Uf(e, t) {
963
966
  To(Oi, e, t);
964
967
  }
965
968
  function Pi() {
@@ -2676,11 +2679,11 @@ function Gl(e) {
2676
2679
  boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
2677
2680
  }), n);
2678
2681
  }
2679
- const Uf = {
2682
+ const qf = {
2680
2683
  overflow: "hidden",
2681
2684
  whiteSpace: "nowrap",
2682
2685
  textOverflow: "ellipsis"
2683
- }, qf = (e) => ({
2686
+ }, Kf = (e) => ({
2684
2687
  boxSizing: "border-box",
2685
2688
  margin: 0,
2686
2689
  padding: 0,
@@ -2691,7 +2694,7 @@ const Uf = {
2691
2694
  listStyle: "none",
2692
2695
  // font-feature-settings: @font-feature-settings-base;
2693
2696
  fontFamily: e.fontFamily
2694
- }), Kf = () => ({
2697
+ }), Yf = () => ({
2695
2698
  display: "inline-flex",
2696
2699
  alignItems: "center",
2697
2700
  color: "inherit",
@@ -2710,7 +2713,7 @@ const Uf = {
2710
2713
  svg: {
2711
2714
  display: "inline-block"
2712
2715
  }
2713
- }), Yf = () => ({
2716
+ }), Qf = () => ({
2714
2717
  // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
2715
2718
  "&::before": {
2716
2719
  display: "table",
@@ -2865,7 +2868,7 @@ const Jl = ji(Wl), Zl = {
2865
2868
  immediate: !0,
2866
2869
  deep: !0
2867
2870
  });
2868
- }, Qf = M({
2871
+ }, Jf = M({
2869
2872
  props: {
2870
2873
  value: H()
2871
2874
  },
@@ -3139,12 +3142,12 @@ const Ne = so(kr), Go = (e) => {
3139
3142
  }
3140
3143
  })(e.componentName);
3141
3144
  };
3142
- function Jf(e) {
3145
+ function Zf(e) {
3143
3146
  return C(Go, {
3144
3147
  componentName: e
3145
3148
  }, null);
3146
3149
  }
3147
- const Xo = Symbol("SizeContextKey"), Uo = () => X(Xo, ie(void 0)), Zf = (e) => {
3150
+ const Xo = Symbol("SizeContextKey"), Uo = () => X(Xo, ie(void 0)), ed = (e) => {
3148
3151
  const t = Uo();
3149
3152
  return be(Xo, m(() => e.value || t.value)), e;
3150
3153
  }, Me = ((e, t) => {
@@ -4292,7 +4295,7 @@ const Du = () => ({
4292
4295
  compactDirection: m(() => r == null ? void 0 : r.compactDirection),
4293
4296
  compactItemClassnames: n
4294
4297
  };
4295
- }, ed = M({
4298
+ }, td = M({
4296
4299
  name: "NoCompactStyle",
4297
4300
  setup(e, t) {
4298
4301
  let {
@@ -4326,7 +4329,7 @@ const Du = () => ({
4326
4329
  return (n = r.default) === null || n === void 0 ? void 0 : n.call(r);
4327
4330
  };
4328
4331
  }
4329
- }), td = M({
4332
+ }), rd = M({
4330
4333
  name: "ASpaceCompact",
4331
4334
  inheritAttrs: !1,
4332
4335
  props: ku(),
@@ -4604,7 +4607,7 @@ const Ju = M({
4604
4607
  };
4605
4608
  }
4606
4609
  });
4607
- function rd(e) {
4610
+ function nd(e) {
4608
4611
  return e === "danger" ? {
4609
4612
  danger: !0
4610
4613
  } : {
@@ -5363,7 +5366,7 @@ const Ea = Ra(
5363
5366
  mtnVariant: "none"
5364
5367
  }
5365
5368
  }
5366
- ), nd = Ea, od = /* @__PURE__ */ M({
5369
+ ), od = Ea, ad = /* @__PURE__ */ M({
5367
5370
  inheritAttrs: !1,
5368
5371
  __name: "Button",
5369
5372
  props: {
@@ -5431,14 +5434,14 @@ export {
5431
5434
  lr as A,
5432
5435
  wo as B,
5433
5436
  ze as C,
5434
- If as D,
5435
- Hf as E,
5436
- jf as F,
5437
- Mf as G,
5438
- Rf as H,
5437
+ _f as D,
5438
+ Bf as E,
5439
+ If as F,
5440
+ Hf as G,
5441
+ Df as H,
5439
5442
  ni as I,
5440
5443
  Br as J,
5441
- Xf as K,
5444
+ Uf as K,
5442
5445
  fe as L,
5443
5446
  yr as M,
5444
5447
  He as N,
@@ -5454,49 +5457,53 @@ export {
5454
5457
  _s as X,
5455
5458
  Bn as Y,
5456
5459
  ua as Z,
5457
- od as _,
5460
+ ad as _,
5458
5461
  d as a,
5459
- qf as a0,
5460
- Uf as a1,
5462
+ Kf as a0,
5463
+ qf as a1,
5461
5464
  tt as a2,
5462
- Kf as a3,
5465
+ Yf as a3,
5463
5466
  _t as a4,
5464
5467
  Vu as a5,
5465
5468
  Me as a6,
5466
5469
  zu as a7,
5467
5470
  Mr as a8,
5468
5471
  Go as a9,
5469
- Ff as aA,
5472
+ Lf as aA,
5470
5473
  si as aB,
5471
- Pf as aC,
5472
- Af as aD,
5474
+ jf as aC,
5475
+ Pf as aD,
5473
5476
  Ue as aE,
5474
5477
  bn as aF,
5475
5478
  Zl as aG,
5476
5479
  ci as aH,
5477
5480
  ji as aI,
5478
5481
  Dr as aJ,
5479
- Wf as aK,
5480
- kf as aL,
5482
+ Vf as aK,
5483
+ Ff as aL,
5481
5484
  di as aM,
5482
- Lf as aN,
5483
- Qf as aO,
5484
- Jf as aP,
5485
+ Wf as aN,
5486
+ Jf as aO,
5487
+ Zf as aP,
5485
5488
  Of as aQ,
5486
5489
  Ju as aR,
5487
5490
  cn as aS,
5488
- ed as aT,
5489
- rd as aU,
5490
- Mu as aV,
5491
- td as aW,
5492
- zf as aa,
5491
+ td as aT,
5492
+ oi as aU,
5493
+ ui as aV,
5494
+ nd as aW,
5495
+ Mu as aX,
5496
+ rd as aY,
5497
+ Af as aZ,
5498
+ Ne as a_,
5499
+ kf as aa,
5493
5500
  ln as ab,
5494
5501
  li as ac,
5495
5502
  Mt as ad,
5496
- Df as ae,
5503
+ zf as ae,
5497
5504
  H as af,
5498
- Nf as ag,
5499
- Bf as ah,
5505
+ Rf as ag,
5506
+ Nf as ah,
5500
5507
  so as ai,
5501
5508
  nr as aj,
5502
5509
  ii as ak,
@@ -5507,21 +5514,21 @@ export {
5507
5514
  ri as ap,
5508
5515
  ql as aq,
5509
5516
  B as ar,
5510
- Yf as as,
5517
+ Qf as as,
5511
5518
  an as at,
5512
5519
  no as au,
5513
5520
  Oi as av,
5514
- Gf as aw,
5521
+ Xf as aw,
5515
5522
  or as ax,
5516
- Zf as ay,
5517
- Vf as az,
5518
- nd as b,
5523
+ ed as ay,
5524
+ Gf as az,
5525
+ od as b,
5519
5526
  xf as c,
5520
- ge as d,
5521
- re as e,
5527
+ Ei as d,
5528
+ ge as e,
5522
5529
  er as f,
5523
- Ze as g,
5524
- tr as h,
5530
+ re as g,
5531
+ Ze as h,
5525
5532
  ao as i,
5526
5533
  $o as j,
5527
5534
  xi as k,
@@ -5536,9 +5543,9 @@ export {
5536
5543
  de as t,
5537
5544
  Lr as u,
5538
5545
  $c as v,
5539
- Ei as w,
5546
+ tr as w,
5540
5547
  rr as x,
5541
- _f as y,
5548
+ Mf as y,
5542
5549
  et as z
5543
5550
  };
5544
- //# sourceMappingURL=Button.vue_vue_type_script_setup_true_lang-C2Vc6-OE.js.map
5551
+ //# sourceMappingURL=Button.vue_vue_type_script_setup_true_lang-C7ip0O23.js.map