sprintify-ui 0.0.91 → 0.0.93

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.
@@ -1,5 +1,5 @@
1
1
  import Sl from "axios";
2
- import { defineComponent as H, inject as ke, resolveComponent as _e, openBlock as b, createBlock as te, withCtx as U, createElementVNode as v, normalizeClass as N, withModifiers as Ge, renderSlot as Q, createElementBlock as T, createCommentVNode as K, toDisplayString as G, h as Ee, unref as h, computed as C, ref as D, watch as Ae, Teleport as Et, createVNode as R, Transition as Re, TransitionGroup as Hr, Fragment as he, renderList as we, normalizeStyle as De, onMounted as xe, onBeforeMount as $l, withDirectives as Ne, vShow as tt, normalizeProps as Ze, guardReactiveProps as Xe, mergeProps as st, resolveDynamicComponent as Nt, createTextVNode as Ue, onBeforeUnmount as qt, cloneVNode as Bl, provide as ye, watchEffect as He, nextTick as qe, onUnmounted as ot, reactive as Cl, isRef as jt, withKeys as An, vModelText as Tn, useSlots as _l, createStaticVNode as Kr, getCurrentInstance as Il, pushScopeId as El, popScopeId as Al, createSlots as Tl, vModelSelect as Sn, readonly as on } from "vue";
2
+ import { defineComponent as H, inject as ke, resolveComponent as _e, openBlock as b, createBlock as te, withCtx as U, createElementVNode as v, normalizeClass as N, withModifiers as Ge, renderSlot as Q, createElementBlock as T, createCommentVNode as K, toDisplayString as G, h as Ee, unref as h, computed as C, ref as D, watch as Ae, Teleport as Et, createVNode as R, Transition as Re, TransitionGroup as Hr, Fragment as he, renderList as we, normalizeStyle as je, onMounted as xe, onBeforeMount as $l, withDirectives as Ne, vShow as tt, normalizeProps as Ze, guardReactiveProps as Xe, mergeProps as st, resolveDynamicComponent as Nt, createTextVNode as Ue, onBeforeUnmount as qt, cloneVNode as Bl, provide as ye, watchEffect as He, nextTick as qe, onUnmounted as ot, reactive as Cl, isRef as jt, withKeys as An, vModelText as Tn, useSlots as _l, createStaticVNode as Kr, getCurrentInstance as Il, pushScopeId as El, popScopeId as Al, createSlots as Tl, vModelSelect as Sn, readonly as on } from "vue";
3
3
  import { useI18n as nt, createI18n as Ll } from "vue-i18n";
4
4
  import { defineStore as Xn } from "pinia";
5
5
  import xr from "qs";
@@ -1739,7 +1739,7 @@ Available fill gap methods: `).concat(Z, "."));
1739
1739
  if (B) {
1740
1740
  var Z = a(B);
1741
1741
  Z.map(function(ae) {
1742
- d.fillGapSelectors.indexOf(ae) === -1 && (d.fillGapSelectors.push(ae), d.scroll || je(ae));
1742
+ d.fillGapSelectors.indexOf(ae) === -1 && (d.fillGapSelectors.push(ae), d.scroll || Fe(ae));
1743
1743
  });
1744
1744
  }
1745
1745
  }, ee = function(B) {
@@ -1778,13 +1778,13 @@ Available fill gap methods: `).concat(Z, "."));
1778
1778
  s(B) && B.getAttribute("data-scroll-lock-locked") === "true" && (B.style.overflow = B.getAttribute("data-scroll-lock-saved-inline-overflow-property"), B.style.overflowY = B.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"), B.removeAttribute("data-scroll-lock-saved-overflow-property"), B.removeAttribute("data-scroll-lock-saved-inline-overflow-property"), B.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"), B.removeAttribute("data-scroll-lock-locked"));
1779
1779
  }, ie = function() {
1780
1780
  d.fillGapSelectors.map(function(B) {
1781
- je(B);
1781
+ Fe(B);
1782
1782
  });
1783
1783
  }, pe = function() {
1784
1784
  d.fillGapSelectors.map(function(B) {
1785
1785
  Oe(B);
1786
1786
  });
1787
- }, je = function(B) {
1787
+ }, Fe = function(B) {
1788
1788
  var Z = document.querySelectorAll(B), ae = d.lockableSelectors.indexOf(B) !== -1;
1789
1789
  m(Z, function(ue) {
1790
1790
  Te(ue, ae);
@@ -1841,15 +1841,15 @@ Available fill gap methods: `).concat(Z, "."));
1841
1841
  down: Z - p > ue,
1842
1842
  left: ae + p < lt,
1843
1843
  right: ae - p > lt
1844
- }, xl = function wr(Fe) {
1844
+ }, xl = function wr(De) {
1845
1845
  var kl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1846
- if (Fe) {
1847
- var kn = E(Fe, ht, !1);
1848
- if (F(Fe))
1846
+ if (De) {
1847
+ var kn = E(De, ht, !1);
1848
+ if (F(De))
1849
1849
  return !1;
1850
- if (kl || O(Fe) && E(Fe, ht) || L(Fe, ht)) {
1850
+ if (kl || O(De) && E(De, ht) || L(De, ht)) {
1851
1851
  var Ht = !1;
1852
- I(Fe) && t(Fe) ? (ut.up && M(Fe) || ut.down && w(Fe)) && (Ht = !0) : M(Fe) && w(Fe) ? (ut.left && I(Fe) || ut.right && t(Fe)) && (Ht = !0) : (Ut.up && M(Fe) || Ut.down && w(Fe) || Ut.left && I(Fe) || Ut.right && t(Fe)) && (Ht = !0), Ht && (kn ? wr(kn, !0) : B.cancelable && B.preventDefault());
1852
+ I(De) && t(De) ? (ut.up && M(De) || ut.down && w(De)) && (Ht = !0) : M(De) && w(De) ? (ut.left && I(De) || ut.right && t(De)) && (Ht = !0) : (Ut.up && M(De) || Ut.down && w(De) || Ut.left && I(De) || Ut.right && t(De)) && (Ht = !0), Ht && (kn ? wr(kn, !0) : B.cancelable && B.preventDefault());
1853
1853
  } else
1854
1854
  wr(kn);
1855
1855
  } else
@@ -2108,7 +2108,7 @@ const Za = {
2108
2108
  }, [
2109
2109
  v("div", {
2110
2110
  class: "animate-shimmer absolute inset-0 -translate-x-full border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent",
2111
- style: De({
2111
+ style: je({
2112
2112
  animationDelay: e.delay
2113
2113
  })
2114
2114
  }, null, 4),
@@ -2708,7 +2708,7 @@ const ds = { class: "relative" }, fs = { class: "relative" }, ms = ["value", "pl
2708
2708
  h(l),
2709
2709
  e.detailsPosition == "left" ? "order-1 text-right" : "order-2 text-left"
2710
2710
  ]]),
2711
- style: De({
2711
+ style: je({
2712
2712
  marginLeft: e.detailsPosition == "right" ? h(o) : "0",
2713
2713
  marginRight: e.detailsPosition == "left" ? h(o) : "0"
2714
2714
  })
@@ -2760,7 +2760,7 @@ const ds = { class: "relative" }, fs = { class: "relative" }, ms = ["value", "pl
2760
2760
  class: "shrink-0",
2761
2761
  "aria-label": a.full_name + `
2762
2762
  ` + a.email,
2763
- style: De({
2763
+ style: je({
2764
2764
  marginLeft: s === 0 ? "0" : "-" + h(n)
2765
2765
  })
2766
2766
  }, [
@@ -2808,7 +2808,7 @@ const ds = { class: "relative" }, fs = { class: "relative" }, ms = ["value", "pl
2808
2808
  }), o = C(() => r.size == "base" ? "px-2.5 py-0.5 text-xs" : r.size == "lg" ? "px-3 py-0.5 text-sm" : "px-2.5 py-0.5 text-xs"), a = C(() => r.size == "base" ? "h-3 w-3 mr-1 -ml-0.5" : r.size == "lg" ? "h-4 w-4 mr-1 -ml-0.5" : "h-3 w-3 mr-1 -ml-0.5");
2809
2809
  return (s, i) => (b(), T("span", {
2810
2810
  class: N(["inline-flex items-center rounded-full font-medium", [h(n), h(o)]]),
2811
- style: De(h(l))
2811
+ style: je(h(l))
2812
2812
  }, [
2813
2813
  e.icon ? (b(), te(h(be), {
2814
2814
  key: 0,
@@ -3174,11 +3174,11 @@ const Qs = /* @__PURE__ */ ze(Us, [["render", Ws]]), Ys = ["type", "disabled", "
3174
3174
  }
3175
3175
  return (f, k) => (b(), T("div", {
3176
3176
  class: "flex flex-wrap",
3177
- style: De({ margin: "-" + e.spacing })
3177
+ style: je({ margin: "-" + e.spacing })
3178
3178
  }, [
3179
3179
  (b(!0), T(he, null, we(h(a), (y) => (b(), T("div", {
3180
3180
  key: y.value,
3181
- style: De({ padding: e.spacing })
3181
+ style: je({ padding: e.spacing })
3182
3182
  }, [
3183
3183
  v("button", {
3184
3184
  type: e.buttonType,
@@ -3859,13 +3859,13 @@ list should be an Array.`), u.length === 0)
3859
3859
  var q, P, X, ie, pe = this.length - x;
3860
3860
  switch ((!A || pe < (A = Number(A))) && (A = pe), V = String(V || "utf8").toLowerCase()) {
3861
3861
  case "hex":
3862
- q = function(je, Te, Oe, Ce) {
3862
+ q = function(Fe, Te, Oe, Ce) {
3863
3863
  Oe = Number(Oe) || 0;
3864
- var Be = je.length - Oe;
3864
+ var Be = Fe.length - Oe;
3865
3865
  (!Ce || Be < (Ce = Number(Ce))) && (Ce = Be), ee((Be = Te.length) % 2 == 0, "Invalid hex string"), Be / 2 < Ce && (Ce = Be / 2);
3866
3866
  for (var Je = 0; Je < Ce; Je++) {
3867
3867
  var kt = parseInt(Te.substr(2 * Je, 2), 16);
3868
- ee(!isNaN(kt), "Invalid hex string"), je[Oe + Je] = kt;
3868
+ ee(!isNaN(kt), "Invalid hex string"), Fe[Oe + Je] = kt;
3869
3869
  }
3870
3870
  return w._charsWritten = 2 * Je, Je;
3871
3871
  }(this, u, x, A);
@@ -3897,20 +3897,20 @@ list should be an Array.`), u.length === 0)
3897
3897
  return "";
3898
3898
  switch (u) {
3899
3899
  case "hex":
3900
- V = function(pe, je, Te) {
3900
+ V = function(pe, Fe, Te) {
3901
3901
  var Oe = pe.length;
3902
- (!je || je < 0) && (je = 0), (!Te || Te < 0 || Oe < Te) && (Te = Oe);
3903
- for (var Ce = "", Be = je; Be < Te; Be++)
3902
+ (!Fe || Fe < 0) && (Fe = 0), (!Te || Te < 0 || Oe < Te) && (Te = Oe);
3903
+ for (var Ce = "", Be = Fe; Be < Te; Be++)
3904
3904
  Ce += W(pe[Be]);
3905
3905
  return Ce;
3906
3906
  }(ie, x, A);
3907
3907
  break;
3908
3908
  case "utf8":
3909
3909
  case "utf-8":
3910
- V = function(pe, je, Te) {
3910
+ V = function(pe, Fe, Te) {
3911
3911
  var Oe = "", Ce = "";
3912
3912
  Te = Math.min(pe.length, Te);
3913
- for (var Be = je; Be < Te; Be++)
3913
+ for (var Be = Fe; Be < Te; Be++)
3914
3914
  pe[Be] <= 127 ? (Oe += oe(Ce) + String.fromCharCode(pe[Be]), Ce = "") : Ce += "%" + pe[Be].toString(16);
3915
3915
  return Oe + oe(Ce);
3916
3916
  }(ie, x, A);
@@ -3926,8 +3926,8 @@ list should be an Array.`), u.length === 0)
3926
3926
  case "ucs-2":
3927
3927
  case "utf16le":
3928
3928
  case "utf-16le":
3929
- V = function(pe, je, Te) {
3930
- for (var Oe = pe.slice(je, Te), Ce = "", Be = 0; Be < Oe.length; Be += 2)
3929
+ V = function(pe, Fe, Te) {
3930
+ for (var Oe = pe.slice(Fe, Te), Ce = "", Be = 0; Be < Oe.length; Be += 2)
3931
3931
  Ce += String.fromCharCode(Oe[Be] + 256 * Oe[Be + 1]);
3932
3932
  return Ce;
3933
3933
  }(ie, x, A);
@@ -5893,7 +5893,7 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
5893
5893
  }, {
5894
5894
  default: U(() => [
5895
5895
  Ne(v("div", {
5896
- style: De({
5896
+ style: je({
5897
5897
  maxWidth: h(s)
5898
5898
  }),
5899
5899
  class: N(["pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none", [h(o).animationClasses.value]])
@@ -6029,8 +6029,8 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
6029
6029
  const X = i.resolve({
6030
6030
  path: s.path,
6031
6031
  params: s.params
6032
- }), ie = $e.formatQueryString(P), pe = X.fullPath + "?" + ie, je = se();
6033
- if ($e.formatQueryString(je) != ie) {
6032
+ }), ie = $e.formatQueryString(P), pe = X.fullPath + "?" + ie, Fe = se();
6033
+ if ($e.formatQueryString(Fe) != ie) {
6034
6034
  if (!k.value) {
6035
6035
  i.replace(pe);
6036
6036
  return;
@@ -6086,7 +6086,7 @@ const Eu = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, Au = { class: "min
6086
6086
  }
6087
6087
  function ce(P = !1, X = !0) {
6088
6088
  var Je;
6089
- const ie = re.value.split(/[?#]/), pe = ie[0], je = (Je = ie[1]) != null ? Je : null, Te = $e.parseQueryString(je), Oe = kr(
6089
+ const ie = re.value.split(/[?#]/), pe = ie[0], Fe = (Je = ie[1]) != null ? Je : null, Te = $e.parseQueryString(Fe), Oe = kr(
6090
6090
  Ve(I.value),
6091
6091
  Ve(n.urlQuery),
6092
6092
  Ve(Te)
@@ -6612,7 +6612,7 @@ const Qo = /* @__PURE__ */ ze(Wu, [["render", Zu], ["__scopeId", "data-v-945515f
6612
6612
  v("div", tc, [
6613
6613
  v("div", {
6614
6614
  class: "overflow-x-auto overflow-y-auto",
6615
- style: De({ maxHeight: e.maxHeight ? e.maxHeight + "px" : void 0 })
6615
+ style: je({ maxHeight: e.maxHeight ? e.maxHeight + "px" : void 0 })
6616
6616
  }, [
6617
6617
  v("div", nc, [
6618
6618
  v("div", rc, [
@@ -6680,7 +6680,7 @@ const Qo = /* @__PURE__ */ ze(Wu, [["render", Zu], ["__scopeId", "data-v-945515f
6680
6680
  v("td", {
6681
6681
  colspan: h(O),
6682
6682
  class: N(["sticky z-[1] p-0", [oe]]),
6683
- style: De({
6683
+ style: je({
6684
6684
  top: $.value + "px"
6685
6685
  })
6686
6686
  }, [
@@ -7768,7 +7768,7 @@ const Pc = /* @__PURE__ */ ze(Mc, [["render", Dc]]), Vc = { class: "flex justify
7768
7768
  ref_key: "dropdown",
7769
7769
  ref: o,
7770
7770
  class: "z-menu",
7771
- style: De(h(z))
7771
+ style: je(h(z))
7772
7772
  }, [
7773
7773
  R(Re, {
7774
7774
  "enter-active-class": e.animated ? "duration-100 transition ease-out" : "",
@@ -9598,6 +9598,10 @@ const ef = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
9598
9598
  closeOnOutsideClick: {
9599
9599
  default: !0,
9600
9600
  type: Boolean
9601
+ },
9602
+ maxWidth: {
9603
+ default: "512px",
9604
+ type: String
9601
9605
  }
9602
9606
  },
9603
9607
  emits: ["update:modelValue"],
@@ -9660,12 +9664,15 @@ const ef = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
9660
9664
  default: U(() => [
9661
9665
  e.modelValue ? (b(), T("div", {
9662
9666
  key: 0,
9663
- class: N(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:max-w-lg sm:rounded-xl sm:shadow-xl", [h(o).animationClasses.value]])
9667
+ class: N(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl", [h(o).animationClasses.value]]),
9668
+ style: je({
9669
+ maxWidth: e.maxWidth
9670
+ })
9664
9671
  }, [
9665
9672
  Q(a.$slots, "default", {
9666
9673
  close: h(o).close
9667
9674
  })
9668
- ], 2)) : K("", !0)
9675
+ ], 6)) : K("", !0)
9669
9676
  ]),
9670
9677
  _: 3
9671
9678
  })
@@ -10016,7 +10023,7 @@ function sm(e, r, n, l, o, a) {
10016
10023
  v("circle", {
10017
10024
  stroke: "currentColor",
10018
10025
  "stroke-dasharray": `${e.circumference} ${e.circumference}`,
10019
- style: De({ strokeDashoffset: e.strokeDashoffset }),
10026
+ style: je({ strokeDashoffset: e.strokeDashoffset }),
10020
10027
  "stroke-width": e.stroke,
10021
10028
  fill: "transparent",
10022
10029
  r: e.normalizedRadius,
@@ -10028,7 +10035,7 @@ function sm(e, r, n, l, o, a) {
10028
10035
  "alignment-baseline": "middle",
10029
10036
  x: e.radius,
10030
10037
  y: e.radius + e.fontSize / 10,
10031
- style: De({ fontSize: e.fontSize + "px", fontWeight: 600 })
10038
+ style: je({ fontSize: e.fontSize + "px", fontWeight: 600 })
10032
10039
  }, G(Math.round(e.progress * 100)) + "% ", 13, am)
10033
10040
  ], 8, rm);
10034
10041
  }
@@ -10157,7 +10164,7 @@ const im = /* @__PURE__ */ ze(nm, [["render", sm], ["__scopeId", "data-v-e5ae83e
10157
10164
  ref_key: "content",
10158
10165
  ref: n,
10159
10166
  class: "overflow-hidden whitespace-pre-line",
10160
- style: De(h(l) ? void 0 : h(a))
10167
+ style: je(h(l) ? void 0 : h(a))
10161
10168
  }, [
10162
10169
  Q(i.$slots, "default")
10163
10170
  ], 4),
@@ -10518,7 +10525,7 @@ const Nm = /* @__PURE__ */ ze(Mm, [["render", Vm]]), qm = { class: "inline-flex
10518
10525
  "relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 ",
10519
10526
  h(a)
10520
10527
  ]),
10521
- style: De({
10528
+ style: je({
10522
10529
  width: h(k) + "px",
10523
10530
  height: h(m) + "px"
10524
10531
  }),
@@ -10527,7 +10534,7 @@ const Nm = /* @__PURE__ */ ze(Mm, [["render", Vm]]), qm = { class: "inline-flex
10527
10534
  default: U(() => [
10528
10535
  v("span", {
10529
10536
  "aria-hidden": "true",
10530
- style: De({
10537
+ style: je({
10531
10538
  height: h(s) + "px",
10532
10539
  width: h(s) + "px",
10533
10540
  transform: `translateX(${h(y)}px)`
@@ -10672,7 +10679,7 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
10672
10679
  ]);
10673
10680
  };
10674
10681
  }
10675
- }), rp = ["value", "name", "placeholder", "disabled", "required"], op = /* @__PURE__ */ H({
10682
+ }), rp = ["value", "name", "placeholder", "disabled", "required", "rows"], op = /* @__PURE__ */ H({
10676
10683
  __name: "BaseTextareaAutoresize",
10677
10684
  props: {
10678
10685
  modelValue: {
@@ -10695,6 +10702,10 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
10695
10702
  default: 100,
10696
10703
  type: Number
10697
10704
  },
10705
+ rows: {
10706
+ default: 1,
10707
+ type: Number
10708
+ },
10698
10709
  submitOnEnter: {
10699
10710
  default: !1,
10700
10711
  type: Boolean
@@ -10734,7 +10745,7 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
10734
10745
  ref_key: "wrapper",
10735
10746
  ref: k,
10736
10747
  class: "wrapper grid",
10737
- style: De({ maxHeight: e.maxHeight + "px" })
10748
+ style: je({ maxHeight: e.maxHeight + "px" })
10738
10749
  }, [
10739
10750
  v("textarea", {
10740
10751
  value: e.modelValue,
@@ -10746,8 +10757,8 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
10746
10757
  l,
10747
10758
  h(m) ? "border-red-500" : "border-slate-300"
10748
10759
  ]]),
10749
- style: De({ maxHeight: e.maxHeight + "px", gridArea: o }),
10750
- rows: "1",
10760
+ style: je({ maxHeight: e.maxHeight + "px", gridArea: o }),
10761
+ rows: e.rows,
10751
10762
  onInput: E,
10752
10763
  onKeyup: $,
10753
10764
  onKeydown: L,
@@ -10758,7 +10769,7 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
10758
10769
  l,
10759
10770
  h(m) ? "border-red-500" : "border-slate-300"
10760
10771
  ]]),
10761
- style: De({
10772
+ style: je({
10762
10773
  content: a,
10763
10774
  maxHeight: e.maxHeight + "px",
10764
10775
  gridArea: o
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  $data: {};
5
5
  $props: Partial<{
6
6
  modelValue: boolean;
7
+ maxWidth: string;
7
8
  backdropClass: string;
8
9
  closeOnOutsideClick: boolean;
9
10
  verticalAlign: string;
@@ -24,9 +25,13 @@ declare const _default: {
24
25
  default: boolean;
25
26
  type: BooleanConstructor;
26
27
  };
28
+ maxWidth: {
29
+ default: string;
30
+ type: StringConstructor;
31
+ };
27
32
  }>> & {
28
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "backdropClass" | "closeOnOutsideClick" | "verticalAlign">;
34
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "maxWidth" | "backdropClass" | "closeOnOutsideClick" | "verticalAlign">;
30
35
  $attrs: {
31
36
  [x: string]: unknown;
32
37
  };
@@ -57,10 +62,15 @@ declare const _default: {
57
62
  default: boolean;
58
63
  type: BooleanConstructor;
59
64
  };
65
+ maxWidth: {
66
+ default: string;
67
+ type: StringConstructor;
68
+ };
60
69
  }>> & {
61
70
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
71
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {
63
72
  modelValue: boolean;
73
+ maxWidth: string;
64
74
  backdropClass: string;
65
75
  closeOnOutsideClick: boolean;
66
76
  verticalAlign: string;
@@ -101,6 +111,10 @@ declare const _default: {
101
111
  default: boolean;
102
112
  type: BooleanConstructor;
103
113
  };
114
+ maxWidth: {
115
+ default: string;
116
+ type: StringConstructor;
117
+ };
104
118
  }>> & {
105
119
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
120
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -124,10 +138,15 @@ declare const _default: {
124
138
  default: boolean;
125
139
  type: BooleanConstructor;
126
140
  };
141
+ maxWidth: {
142
+ default: string;
143
+ type: StringConstructor;
144
+ };
127
145
  }>> & {
128
146
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
147
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
130
148
  modelValue: boolean;
149
+ maxWidth: string;
131
150
  backdropClass: string;
132
151
  closeOnOutsideClick: boolean;
133
152
  verticalAlign: string;
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
19
19
  default: number;
20
20
  type: NumberConstructor;
21
21
  };
22
+ rows: {
23
+ default: number;
24
+ type: NumberConstructor;
25
+ };
22
26
  /**
23
27
  * Setting this to true will trigger the 'submit' event while pressing Enter.
24
28
  * Users will be able to add a line break while pressing Shift + Enter.
@@ -56,6 +60,10 @@ declare const _default: import("vue").DefineComponent<{
56
60
  default: number;
57
61
  type: NumberConstructor;
58
62
  };
63
+ rows: {
64
+ default: number;
65
+ type: NumberConstructor;
66
+ };
59
67
  /**
60
68
  * Setting this to true will trigger the 'submit' event while pressing Enter.
61
69
  * Users will be able to add a line break while pressing Shift + Enter.
@@ -84,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
84
92
  disabled: boolean;
85
93
  hasError: boolean;
86
94
  maxHeight: number;
95
+ rows: number;
87
96
  submitOnEnter: boolean;
88
97
  }>;
89
98
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -51,7 +51,10 @@
51
51
  >
52
52
  <div
53
53
  v-if="modelValue"
54
- class="pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:max-w-lg sm:rounded-xl sm:shadow-xl"
54
+ class="pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl"
55
+ :style="{
56
+ maxWidth: maxWidth,
57
+ }"
55
58
  :class="[modal.animationClasses.value]"
56
59
  >
57
60
  <slot :close="modal.close" />
@@ -93,6 +96,10 @@ const props = defineProps({
93
96
  default: true,
94
97
  type: Boolean,
95
98
  },
99
+ maxWidth: {
100
+ default: '512px',
101
+ type: String,
102
+ },
96
103
  });
97
104
 
98
105
  const emit = defineEmits(['update:modelValue']);
@@ -16,7 +16,7 @@
16
16
  hasErrorInternal ? 'border-red-500' : 'border-slate-300',
17
17
  ]"
18
18
  :style="{ maxHeight: maxHeight + 'px', gridArea: BASE_GRID_AREA }"
19
- rows="1"
19
+ :rows="rows"
20
20
  @input="onInput"
21
21
  @keyup="onKeyUp"
22
22
  @keydown="onKeyDown"
@@ -72,6 +72,10 @@ const props = defineProps({
72
72
  default: 100,
73
73
  type: Number,
74
74
  },
75
+ rows: {
76
+ default: 1,
77
+ type: Number,
78
+ },
75
79
  /**
76
80
  * Setting this to true will trigger the 'submit' event while pressing Enter.
77
81
  * Users will be able to add a line break while pressing Shift + Enter.