@leaflink/stash 42.8.1 → 43.0.1

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 (133) hide show
  1. package/README.md +1 -1
  2. package/dist/AddressSelect.js +9 -10
  3. package/dist/AddressSelect.js.map +1 -1
  4. package/dist/Alert.js +9 -9
  5. package/dist/Alert.js.map +1 -1
  6. package/dist/AppSidebar.js +11 -11
  7. package/dist/AppSidebar.js.map +1 -1
  8. package/dist/Avatar.js +33 -32
  9. package/dist/Avatar.js.map +1 -1
  10. package/dist/Avatar.vue.d.ts +16 -95
  11. package/dist/Badge.js +2 -2
  12. package/dist/Badge.js.map +1 -1
  13. package/dist/Checkbox.js +4 -4
  14. package/dist/Checkbox.js.map +1 -1
  15. package/dist/{Checkbox.vue_vue_type_style_index_0_scoped_0cd31c8f_lang-4ed993c7.js → Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js} +1 -1
  16. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +1 -0
  17. package/dist/Chip.js +32 -30
  18. package/dist/Chip.js.map +1 -1
  19. package/dist/Chip.vue.d.ts +16 -95
  20. package/dist/ConfirmationCodeInput.js +23 -23
  21. package/dist/ConfirmationCodeInput.js.map +1 -1
  22. package/dist/ContextSwitcher.js +2 -2
  23. package/dist/ContextSwitcher.js.map +1 -1
  24. package/dist/Copy.js +1 -1
  25. package/dist/Copy.js.map +1 -1
  26. package/dist/DataView.js +1 -1
  27. package/dist/DataViewFilters.js +23 -24
  28. package/dist/DataViewFilters.js.map +1 -1
  29. package/dist/DataViewSortButton.js +11 -11
  30. package/dist/DataViewSortButton.js.map +1 -1
  31. package/dist/DataViewToolbar.js +1 -1
  32. package/dist/Dialog.js +10 -10
  33. package/dist/Dialog.js.map +1 -1
  34. package/dist/Dropdown.js +7 -7
  35. package/dist/Dropdown.js.map +1 -1
  36. package/dist/FilterChip.js +2 -3
  37. package/dist/FilterChip.js.map +1 -1
  38. package/dist/FilterDrawerItem.js +5 -6
  39. package/dist/FilterDrawerItem.js.map +1 -1
  40. package/dist/FilterDropdown.js +3 -4
  41. package/dist/FilterDropdown.js.map +1 -1
  42. package/dist/FilterSelect.js +26 -27
  43. package/dist/FilterSelect.js.map +1 -1
  44. package/dist/Filters.js +3 -4
  45. package/dist/Filters.js.map +1 -1
  46. package/dist/HttpError.js +18 -18
  47. package/dist/HttpError.js.map +1 -1
  48. package/dist/IconLabel.js +12 -13
  49. package/dist/IconLabel.js.map +1 -1
  50. package/dist/IconLabel.vue.d.ts +9 -75
  51. package/dist/Illustration.js +1 -1
  52. package/dist/Illustration.js.map +1 -1
  53. package/dist/Illustration.vue.d.ts +19 -14
  54. package/dist/InputOptions.js +7 -8
  55. package/dist/InputOptions.js.map +1 -1
  56. package/dist/LicenseChip.js +32 -26
  57. package/dist/LicenseChip.js.map +1 -1
  58. package/dist/LicenseChip.vue.d.ts +2 -4
  59. package/dist/ListItem.js +1 -1
  60. package/dist/ListView.js +30 -31
  61. package/dist/ListView.js.map +1 -1
  62. package/dist/MenuItem.js +4 -4
  63. package/dist/MenuItem.js.map +1 -1
  64. package/dist/Metric.js +1 -1
  65. package/dist/Metric.js.map +1 -1
  66. package/dist/Metric.vue.d.ts +8 -74
  67. package/dist/Modal.js +13 -13
  68. package/dist/Modal.js.map +1 -1
  69. package/dist/Module.js +1 -1
  70. package/dist/Module.js.map +1 -1
  71. package/dist/ModuleFooter.js +1 -1
  72. package/dist/ModuleFooter.js.map +1 -1
  73. package/dist/ModuleHeader.js +1 -1
  74. package/dist/ModuleHeader.js.map +1 -1
  75. package/dist/PageNavigation.js +28 -29
  76. package/dist/PageNavigation.js.map +1 -1
  77. package/dist/Paginate.js +1 -1
  78. package/dist/Paginate.js.map +1 -1
  79. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +11 -0
  80. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +1 -0
  81. package/dist/QuickAction.js +14 -14
  82. package/dist/QuickAction.js.map +1 -1
  83. package/dist/RadioGroup.js +73 -71
  84. package/dist/RadioGroup.js.map +1 -1
  85. package/dist/RadioNew.js +4 -4
  86. package/dist/SearchBar.js +15 -15
  87. package/dist/SearchBar.js.map +1 -1
  88. package/dist/Select.js +92 -93
  89. package/dist/Select.js.map +1 -1
  90. package/dist/SelectStatus.js +53 -51
  91. package/dist/SelectStatus.js.map +1 -1
  92. package/dist/SelectStatus.vue.d.ts +52 -1
  93. package/dist/Step.js +28 -28
  94. package/dist/Step.js.map +1 -1
  95. package/dist/Tab.js +1 -1
  96. package/dist/Table.js +2 -2
  97. package/dist/TableCell.js +2 -2
  98. package/dist/TableHeaderCell.js +2 -2
  99. package/dist/TableHeaderRow.js +2 -2
  100. package/dist/TableRow.js +2 -2
  101. package/dist/Tabs.js +2 -2
  102. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js → Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js} +3 -3
  103. package/dist/Tabs.vue_vue_type_script_setup_true_lang-56e85faa.js.map +1 -0
  104. package/dist/Textarea.js +1 -1
  105. package/dist/Textarea.js.map +1 -1
  106. package/dist/Toast.js +1 -1
  107. package/dist/Toasts.js +1 -1
  108. package/dist/ToastsPlugin.js +1 -1
  109. package/dist/colorScheme.d.ts +3 -16
  110. package/dist/components.css +1 -1
  111. package/dist/index.d.ts +64 -25
  112. package/dist/index.js +188 -186
  113. package/dist/index.js.map +1 -1
  114. package/dist/statusLevels-a8b041f4.js +7 -0
  115. package/dist/statusLevels-a8b041f4.js.map +1 -0
  116. package/dist/tailwind-base.d.ts +0 -10
  117. package/dist/tailwind-base.js +22 -20
  118. package/dist/tailwind-base.js.map +1 -1
  119. package/dist/utils/colorScheme.js +1 -1
  120. package/dist/utils/colorScheme.js.map +1 -1
  121. package/package.json +1 -1
  122. package/styles/base.css +2 -2
  123. package/tailwind-base.ts +22 -21
  124. package/types/colors.ts +84 -26
  125. package/types/statusLevels.ts +4 -4
  126. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0cd31c8f_lang-4ed993c7.js.map +0 -1
  127. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js +0 -11
  128. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-e579235f.js.map +0 -1
  129. package/dist/Tabs.vue_vue_type_script_setup_true_lang-aca4f8b8.js.map +0 -1
  130. package/dist/colors-13e95ebf.js +0 -6
  131. package/dist/colors-13e95ebf.js.map +0 -1
  132. package/dist/statusLevels-aabf1e3c.js +0 -7
  133. package/dist/statusLevels-aabf1e3c.js.map +0 -1
package/dist/Select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { computed as T, unref as F, ref as k, shallowRef as bt, watch as Q, getCurrentScope as xt, onScopeDispose as _t, shallowReadonly as oe, defineComponent as Et, useAttrs as St, useSlots as Ct, nextTick as Ne, onMounted as Rt, onUnmounted as Ot, openBlock as B, createBlock as Re, normalizeClass as ue, createSlots as kt, withCtx as fe, createElementVNode as z, createElementBlock as I, Fragment as Oe, renderList as ke, toDisplayString as le, withDirectives as de, withKeys as je, createCommentVNode as pe, renderSlot as Te, createTextVNode as me, withModifiers as he, createVNode as se, Teleport as Tt, Transition as Bt, normalizeStyle as At, vModelText as Lt, vShow as Ve, pushScopeId as Mt, popScopeId as Dt } from "vue";
1
+ import { computed as T, unref as F, ref as k, shallowRef as bt, watch as Q, getCurrentScope as xt, onScopeDispose as _t, shallowReadonly as oe, defineComponent as Et, useAttrs as St, useSlots as Ct, nextTick as Ne, onMounted as Rt, onUnmounted as Ot, openBlock as B, createBlock as Re, normalizeClass as ue, createSlots as kt, withCtx as fe, createElementVNode as z, createElementBlock as I, Fragment as Oe, renderList as ke, toDisplayString as le, withDirectives as de, withKeys as je, createCommentVNode as pe, renderSlot as Te, createTextVNode as he, withModifiers as me, createVNode as se, Teleport as Tt, Transition as Bt, normalizeStyle as At, vModelText as Lt, vShow as Ve, pushScopeId as Mt, popScopeId as Dt } from "vue";
2
2
  import Ft from "lodash-es/debounce";
3
3
  import Pt from "lodash-es/isEmpty";
4
4
  import qe from "lodash-es/isEqual";
@@ -18,7 +18,6 @@ import "./_commonjsHelpers-10dfc225.js";
18
18
  import "./utils/helpers.js";
19
19
  import "lodash-es/camelCase";
20
20
  import "lodash-es/isFinite";
21
- import "./colors-13e95ebf.js";
22
21
  import "./utils/colorScheme.js";
23
22
  import "./index-79ce320f.js";
24
23
  import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
@@ -122,7 +121,7 @@ function Ye(e, n, t) {
122
121
  reference: o,
123
122
  floating: l
124
123
  } = e;
125
- const s = Fe(n), i = nt(n), c = tt(i), r = Z(n), u = s === "y", p = o.x + o.width / 2 - l.width / 2, h = o.y + o.height / 2 - l.height / 2, g = o[c] / 2 - l[c] / 2;
124
+ const s = Fe(n), i = nt(n), c = tt(i), r = Z(n), u = s === "y", p = o.x + o.width / 2 - l.width / 2, m = o.y + o.height / 2 - l.height / 2, g = o[c] / 2 - l[c] / 2;
126
125
  let d;
127
126
  switch (r) {
128
127
  case "top":
@@ -140,13 +139,13 @@ function Ye(e, n, t) {
140
139
  case "right":
141
140
  d = {
142
141
  x: o.x + o.width,
143
- y: h
142
+ y: m
144
143
  };
145
144
  break;
146
145
  case "left":
147
146
  d = {
148
147
  x: o.x - l.width,
149
- y: h
148
+ y: m
150
149
  };
151
150
  break;
152
151
  default:
@@ -178,7 +177,7 @@ const en = async (e, n, t) => {
178
177
  strategy: l
179
178
  }), {
180
179
  x: p,
181
- y: h
180
+ y: m
182
181
  } = Ye(u, o, r), g = o, d = {}, f = 0;
183
182
  for (let b = 0; b < c.length; b++) {
184
183
  const {
@@ -191,7 +190,7 @@ const en = async (e, n, t) => {
191
190
  reset: C
192
191
  } = await v({
193
192
  x: p,
194
- y: h,
193
+ y: m,
195
194
  initialPlacement: o,
196
195
  placement: g,
197
196
  strategy: l,
@@ -203,7 +202,7 @@ const en = async (e, n, t) => {
203
202
  floating: n
204
203
  }
205
204
  });
206
- if (p = y ?? p, h = E ?? h, d = {
205
+ if (p = y ?? p, m = E ?? m, d = {
207
206
  ...d,
208
207
  [_]: {
209
208
  ...d[_],
@@ -216,14 +215,14 @@ const en = async (e, n, t) => {
216
215
  strategy: l
217
216
  }) : C.rects), {
218
217
  x: p,
219
- y: h
218
+ y: m
220
219
  } = Ye(u, g, r)), b = -1;
221
220
  continue;
222
221
  }
223
222
  }
224
223
  return {
225
224
  x: p,
226
- y: h,
225
+ y: m,
227
226
  placement: g,
228
227
  strategy: l,
229
228
  middlewareData: d
@@ -242,15 +241,15 @@ async function ot(e, n) {
242
241
  } = e, {
243
242
  boundary: u = "clippingAncestors",
244
243
  rootBoundary: p = "viewport",
245
- elementContext: h = "floating",
244
+ elementContext: m = "floating",
246
245
  altBoundary: g = !1,
247
246
  padding: d = 0
248
- } = De(n, e), f = Zt(d), _ = c[g ? h === "floating" ? "reference" : "floating" : h], v = Me(await s.getClippingRect({
247
+ } = De(n, e), f = Zt(d), _ = c[g ? m === "floating" ? "reference" : "floating" : m], v = Me(await s.getClippingRect({
249
248
  element: (t = await (s.isElement == null ? void 0 : s.isElement(_))) == null || t ? _ : _.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
250
249
  boundary: u,
251
250
  rootBoundary: p,
252
251
  strategy: r
253
- })), y = h === "floating" ? {
252
+ })), y = m === "floating" ? {
254
253
  ...i.floating,
255
254
  x: o,
256
255
  y: l
@@ -287,7 +286,7 @@ const tn = function(e) {
287
286
  elements: u
288
287
  } = n, {
289
288
  mainAxis: p = !0,
290
- crossAxis: h = !0,
289
+ crossAxis: m = !0,
291
290
  fallbackPlacements: g,
292
291
  fallbackStrategy: d = "bestFit",
293
292
  fallbackAxisSideDirection: f = "none",
@@ -300,7 +299,7 @@ const tn = function(e) {
300
299
  !g && f !== "none" && R.push(...Jt(c, b, f, E));
301
300
  const C = [c, ...R], O = await ot(n, _), x = [];
302
301
  let M = ((o = s.flip) == null ? void 0 : o.overflows) || [];
303
- if (p && x.push(O[v]), h) {
302
+ if (p && x.push(O[v]), m) {
304
303
  const K = Xt(l, i, E);
305
304
  x.push(O[K[0]], O[K[1]]);
306
305
  }
@@ -349,20 +348,20 @@ async function nn(e, n) {
349
348
  placement: t,
350
349
  platform: o,
351
350
  elements: l
352
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Z(t), c = we(t), r = Fe(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, p = s && r ? -1 : 1, h = De(n, e);
351
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Z(t), c = we(t), r = Fe(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, p = s && r ? -1 : 1, m = De(n, e);
353
352
  let {
354
353
  mainAxis: g,
355
354
  crossAxis: d,
356
355
  alignmentAxis: f
357
- } = typeof h == "number" ? {
358
- mainAxis: h,
356
+ } = typeof m == "number" ? {
357
+ mainAxis: m,
359
358
  crossAxis: 0,
360
359
  alignmentAxis: null
361
360
  } : {
362
361
  mainAxis: 0,
363
362
  crossAxis: 0,
364
363
  alignmentAxis: null,
365
- ...h
364
+ ...m
366
365
  };
367
366
  return c && typeof f == "number" && (d = c === "end" ? f * -1 : f), r ? {
368
367
  x: d * p,
@@ -408,7 +407,7 @@ const on = function(e) {
408
407
  apply: i = () => {
409
408
  },
410
409
  ...c
411
- } = De(e, n), r = await ot(n, c), u = Z(t), p = we(t), h = Fe(t) === "y", {
410
+ } = De(e, n), r = await ot(n, c), u = Z(t), p = we(t), m = Fe(t) === "y", {
412
411
  width: g,
413
412
  height: d
414
413
  } = o.floating;
@@ -416,7 +415,7 @@ const on = function(e) {
416
415
  u === "top" || u === "bottom" ? (f = u, b = p === (await (l.isRTL == null ? void 0 : l.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = u, f = p === "end" ? "top" : "bottom");
417
416
  const _ = d - r[f], v = g - r[b], y = !n.middlewareData.shift;
418
417
  let E = _, R = v;
419
- if (h) {
418
+ if (m) {
420
419
  const O = g - r.left - r.right;
421
420
  R = p || y ? ge(v, O) : O;
422
421
  } else {
@@ -425,7 +424,7 @@ const on = function(e) {
425
424
  }
426
425
  if (y && !p) {
427
426
  const O = N(r.left, 0), x = N(r.right, 0), M = N(r.top, 0), D = N(r.bottom, 0);
428
- h ? R = g - 2 * (O !== 0 || x !== 0 ? O + x : N(r.left, r.right)) : E = d - 2 * (M !== 0 || D !== 0 ? M + D : N(r.top, r.bottom));
427
+ m ? R = g - 2 * (O !== 0 || x !== 0 ? O + x : N(r.left, r.right)) : E = d - 2 * (M !== 0 || D !== 0 ? M + D : N(r.top, r.bottom));
429
428
  }
430
429
  await i({
431
430
  ...n,
@@ -574,18 +573,18 @@ function ee(e, n, t, o) {
574
573
  let i = X(1);
575
574
  n && (o ? U(o) && (i = re(o)) : i = re(e));
576
575
  const c = cn(s, t, o) ? rt(s) : X(0);
577
- let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, p = l.width / i.x, h = l.height / i.y;
576
+ let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, p = l.width / i.x, m = l.height / i.y;
578
577
  if (s) {
579
578
  const g = P(s), d = o && U(o) ? P(o) : o;
580
579
  let f = g.frameElement;
581
580
  for (; f && o && d !== g; ) {
582
581
  const b = re(f), _ = f.getBoundingClientRect(), v = V(f), y = _.left + (f.clientLeft + parseFloat(v.paddingLeft)) * b.x, E = _.top + (f.clientTop + parseFloat(v.paddingTop)) * b.y;
583
- r *= b.x, u *= b.y, p *= b.x, h *= b.y, r += y, u += E, f = P(f).frameElement;
582
+ r *= b.x, u *= b.y, p *= b.x, m *= b.y, r += y, u += E, f = P(f).frameElement;
584
583
  }
585
584
  }
586
585
  return Me({
587
586
  width: p,
588
- height: h,
587
+ height: m,
589
588
  x: r,
590
589
  y: u
591
590
  });
@@ -647,7 +646,7 @@ function pn(e, n) {
647
646
  y: r
648
647
  };
649
648
  }
650
- function mn(e, n) {
649
+ function hn(e, n) {
651
650
  const t = ee(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = W(e) ? re(e) : X(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, r = l * s.x, u = o * s.y;
652
651
  return {
653
652
  width: i,
@@ -663,7 +662,7 @@ function Je(e, n, t) {
663
662
  else if (n === "document")
664
663
  o = dn(j(e));
665
664
  else if (U(n))
666
- o = mn(n, t);
665
+ o = hn(n, t);
667
666
  else {
668
667
  const l = rt(e);
669
668
  o = {
@@ -678,7 +677,7 @@ function ct(e, n) {
678
677
  const t = ae(e);
679
678
  return t === n || !U(t) || Pe(t) ? !1 : V(t).position === "fixed" || ct(t, n);
680
679
  }
681
- function hn(e, n) {
680
+ function mn(e, n) {
682
681
  const t = n.get(e);
683
682
  if (t)
684
683
  return t;
@@ -698,9 +697,9 @@ function vn(e) {
698
697
  rootBoundary: o,
699
698
  strategy: l
700
699
  } = e;
701
- const i = [...t === "clippingAncestors" ? hn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, p) => {
702
- const h = Je(n, p, l);
703
- return u.top = N(h.top, u.top), u.right = ge(h.right, u.right), u.bottom = ge(h.bottom, u.bottom), u.left = N(h.left, u.left), u;
700
+ const i = [...t === "clippingAncestors" ? mn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, p) => {
701
+ const m = Je(n, p, l);
702
+ return u.top = N(m.top, u.top), u.right = ge(m.right, u.right), u.bottom = ge(m.bottom, u.bottom), u.left = N(m.left, u.left), u;
704
703
  }, Je(n, c, l));
705
704
  return {
706
705
  width: r.right - r.left,
@@ -786,12 +785,12 @@ function _n(e, n) {
786
785
  const {
787
786
  left: u,
788
787
  top: p,
789
- width: h,
788
+ width: m,
790
789
  height: g
791
790
  } = e.getBoundingClientRect();
792
- if (c || n(), !h || !g)
791
+ if (c || n(), !m || !g)
793
792
  return;
794
- const d = Be(p), f = Be(l.clientWidth - (u + h)), b = Be(l.clientHeight - (p + g)), _ = Be(u), y = {
793
+ const d = Be(p), f = Be(l.clientWidth - (u + m)), b = Be(l.clientHeight - (p + g)), _ = Be(u), y = {
795
794
  rootMargin: -d + "px " + -f + "px " + -b + "px " + -_ + "px",
796
795
  threshold: N(0, ge(1, r)) || 1
797
796
  };
@@ -834,7 +833,7 @@ function En(e, n, t, o) {
834
833
  passive: !0
835
834
  }), s && v.addEventListener("resize", t);
836
835
  });
837
- const h = u && c ? _n(u, t) : null;
836
+ const m = u && c ? _n(u, t) : null;
838
837
  let g = -1, d = null;
839
838
  i && (d = new ResizeObserver((v) => {
840
839
  let [y] = v;
@@ -851,7 +850,7 @@ function En(e, n, t, o) {
851
850
  return t(), () => {
852
851
  p.forEach((v) => {
853
852
  l && v.removeEventListener("scroll", t), s && v.removeEventListener("resize", t);
854
- }), h && h(), d && d.disconnect(), d = null, r && cancelAnimationFrame(f);
853
+ }), m && m(), d && d.disconnect(), d = null, r && cancelAnimationFrame(f);
855
854
  };
856
855
  }
857
856
  const Sn = (e, n, t) => {
@@ -892,7 +891,7 @@ function Cn(e, n, t) {
892
891
  }), r = T(() => {
893
892
  var x;
894
893
  return (x = F(t.transform)) != null ? x : !0;
895
- }), u = T(() => Ze(e.value)), p = T(() => Ze(n.value)), h = k(0), g = k(0), d = k(c.value), f = k(i.value), b = bt({}), _ = k(!1), v = T(() => {
894
+ }), u = T(() => Ze(e.value)), p = T(() => Ze(n.value)), m = k(0), g = k(0), d = k(c.value), f = k(i.value), b = bt({}), _ = k(!1), v = T(() => {
896
895
  const x = {
897
896
  position: d.value,
898
897
  left: "0",
@@ -900,7 +899,7 @@ function Cn(e, n, t) {
900
899
  };
901
900
  if (!p.value)
902
901
  return x;
903
- const M = et(p.value, h.value), D = et(p.value, g.value);
902
+ const M = et(p.value, m.value), D = et(p.value, g.value);
904
903
  return r.value ? {
905
904
  ...x,
906
905
  transform: "translate(" + M + "px, " + D + "px)",
@@ -920,7 +919,7 @@ function Cn(e, n, t) {
920
919
  placement: i.value,
921
920
  strategy: c.value
922
921
  }).then((x) => {
923
- h.value = x.x, g.value = x.y, d.value = x.strategy, f.value = x.placement, b.value = x.middlewareData, _.value = !0;
922
+ m.value = x.x, g.value = x.y, d.value = x.strategy, f.value = x.placement, b.value = x.middlewareData, _.value = !0;
924
923
  });
925
924
  }
926
925
  function R() {
@@ -946,7 +945,7 @@ function Cn(e, n, t) {
946
945
  }), Q(l, O, {
947
946
  flush: "sync"
948
947
  }), xt() && _t(R), {
949
- x: oe(h),
948
+ x: oe(m),
950
949
  y: oe(g),
951
950
  strategy: oe(d),
952
951
  placement: oe(f),
@@ -956,12 +955,12 @@ function Cn(e, n, t) {
956
955
  update: E
957
956
  };
958
957
  }
959
- const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], kn = ["selected", "value"], Tn = /* @__PURE__ */ Rn(() => /* @__PURE__ */ z("option", { value: "" }, null, -1)), Bn = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], An = ["id"], Ln = ["onKeypress", "onMousedown"], Mn = {
958
+ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], kn = ["selected", "value"], Tn = /* @__PURE__ */ Rn(() => /* @__PURE__ */ z("option", { value: "" }, null, -1)), Bn = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], An = ["id"], Ln = ["onKeypress", "onMousedown"], Mn = {
960
959
  key: 0,
961
960
  class: "stash-select__total"
962
961
  }, Dn = {
963
962
  key: 0,
964
- class: "tw-flex tw-items-center tw-pr-1.5 tw-border-b tw-border-blue"
963
+ class: "tw-flex tw-items-center tw-pr-1.5 tw-border-b tw-border-blue-500"
965
964
  }, Fn = ["data-test", "placeholder"], Pn = { class: "stash-select__options options tw-my-1.5 tw-bg-white tw-border-white tw-w-full" }, In = ["data-test", "onClick", "onMouseenter"], Nn = { class: "tw-m-1.5 tw-p-1.5 tw-cursor-default" }, Vn = {
966
965
  class: "tw-m-1.5 tw-p-1.5 tw-cursor-default",
967
966
  "data-test": "stash-select|no-options"
@@ -1009,15 +1008,15 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1009
1008
  },
1010
1009
  emits: ["update:model-value", "clear", "add", "remove", "opened", "closed"],
1011
1010
  setup(e, { emit: n }) {
1012
- const t = e, o = 6, l = 300, s = St(), i = Ct(), c = k(null), r = k(null), u = k(null), p = k(null), h = k(null), g = k(0), d = k(0), f = k([]), b = k(() => []), _ = k(""), v = k(-1), y = k(!1), E = k({}), R = k(!1), { floatingStyles: C } = Cn(c, u, {
1011
+ const t = e, o = 6, l = 300, s = St(), i = Ct(), c = k(null), r = k(null), u = k(null), p = k(null), m = k(null), g = k(0), d = k(0), f = k([]), b = k(() => []), _ = k(""), v = k(-1), y = k(!1), E = k({}), R = k(!1), { floatingStyles: C } = Cn(c, u, {
1013
1012
  whileElementsMounted: En,
1014
1013
  placement: t.menuPlacement,
1015
1014
  middleware: [
1016
1015
  tn(),
1017
1016
  on(({ rects: a }) => t.menuPlacement.includes("bottom") && g.value > d.value ? g.value - a.reference.height + o : o),
1018
1017
  ln({
1019
- apply({ availableHeight: a, elements: m, rects: S }) {
1020
- t.enableTeleport && Object.assign(m.floating.style, {
1018
+ apply({ availableHeight: a, elements: h, rects: S }) {
1019
+ t.enableTeleport && Object.assign(h.floating.style, {
1021
1020
  maxWidth: `${S.reference.width}px`,
1022
1021
  maxHeight: `${Math.min(a, l)}px`
1023
1022
  });
@@ -1026,16 +1025,16 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1026
1025
  ]
1027
1026
  }), O = T(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), x = T(() => {
1028
1027
  let a = (R.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
1029
- return It(a[0]) || (a = a.map((m, S) => ({ name: m, id: S }))), a;
1028
+ return It(a[0]) || (a = a.map((h, S) => ({ name: h, id: S }))), a;
1030
1029
  }), M = T(() => t.searchLoading || Object.keys(E.value).length > 0), D = T(() => t.disableFiltering || !(_.value || "").trim() ? x.value : b.value(_.value)), xe = T(() => g.value <= d.value), _e = T(
1031
1030
  () => !y.value && !t.single && !xe.value && f.value.length
1032
1031
  ), K = T(() => [f.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Ee = T(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1033
- Q(_, (a, m) => m !== a && Ce(-1)), Q(f, () => ce(), { deep: !0 }), Q(
1032
+ Q(_, (a, h) => h !== a && Ce(-1)), Q(f, () => ce(), { deep: !0 }), Q(
1034
1033
  () => t.modelValue,
1035
1034
  (a) => {
1036
1035
  if (Array.isArray(a)) {
1037
- const m = a.filter(Boolean);
1038
- qe(m, f.value) || (f.value = m);
1036
+ const h = a.filter(Boolean);
1037
+ qe(h, f.value) || (f.value = h);
1039
1038
  return;
1040
1039
  }
1041
1040
  if (!Pt(a)) {
@@ -1053,7 +1052,7 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1053
1052
  fieldNames: t.searchBy.length ? t.searchBy : [t.displayBy],
1054
1053
  trackBy: t.trackBy
1055
1054
  });
1056
- b.value = (m) => a(m, { fuzzy: t.useFuzzySearch });
1055
+ b.value = (h) => a(h, { fuzzy: t.useFuzzySearch });
1057
1056
  },
1058
1057
  { immediate: !0 }
1059
1058
  );
@@ -1070,13 +1069,13 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1070
1069
  $(S);
1071
1070
  return;
1072
1071
  }
1073
- const m = [...a.target.selectedOptions];
1072
+ const h = [...a.target.selectedOptions];
1074
1073
  for (const S of [...f.value])
1075
- m.find((L) => {
1074
+ h.find((L) => {
1076
1075
  var w;
1077
1076
  return L.value === ((w = S[t.trackBy]) == null ? void 0 : w.toString());
1078
1077
  }) || H(S);
1079
- for (const S of m) {
1078
+ for (const S of h) {
1080
1079
  const A = x.value.find(
1081
1080
  (L) => {
1082
1081
  var w;
@@ -1088,16 +1087,16 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1088
1087
  }, H = (a) => {
1089
1088
  if (t.disabled || Ee.value && f.value.length === 1)
1090
1089
  return;
1091
- const m = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1092
- if (m === -1) {
1090
+ const h = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1091
+ if (h === -1) {
1093
1092
  console.warn("ll-select: could not find option to remove", a);
1094
1093
  return;
1095
1094
  }
1096
- f.value.splice(m, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, m);
1095
+ f.value.splice(h, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, h);
1097
1096
  }, Se = () => {
1098
1097
  y.value || (ce(), y.value = !0, n("opened"), O.value && Ne(() => {
1099
- var a, m;
1100
- (m = (a = h.value) == null ? void 0 : a.inputEl) == null || m.focus();
1098
+ var a, h;
1099
+ (h = (a = m.value) == null ? void 0 : a.inputEl) == null || h.focus();
1101
1100
  }));
1102
1101
  }, te = () => {
1103
1102
  var a;
@@ -1126,8 +1125,8 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1126
1125
  return;
1127
1126
  a.preventDefault(), dt(a);
1128
1127
  }, Ke = Ft(function() {
1129
- mt();
1130
- }, $t.FAST), mt = async function() {
1128
+ ht();
1129
+ }, $t.FAST), ht = async function() {
1131
1130
  if (!t.onSearch)
1132
1131
  return;
1133
1132
  const a = Nt("search-request-");
@@ -1136,33 +1135,33 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1136
1135
  } finally {
1137
1136
  delete E.value[a];
1138
1137
  }
1139
- }, ht = (a, m) => [
1138
+ }, mt = (a, h) => [
1140
1139
  {
1141
1140
  "stash-select__option": !0,
1142
1141
  "stash-select__option--disabled": a && typeof a == "object" && "disabled" in a && (a == null ? void 0 : a.disabled),
1143
- "stash-select__option--highlighted": v.value === m,
1142
+ "stash-select__option--highlighted": v.value === h,
1144
1143
  "stash-select__option--selected": ne(a)
1145
1144
  },
1146
1145
  // @deprecated
1147
1146
  {
1148
- "is-highlighted": v.value === m,
1147
+ "is-highlighted": v.value === h,
1149
1148
  "is-selected": ne(a)
1150
1149
  }
1151
- ], ne = (a) => a == null ? !1 : f.value.some((m) => (m == null ? void 0 : m[t.trackBy]) === a[t.trackBy]);
1150
+ ], ne = (a) => a == null ? !1 : f.value.some((h) => (h == null ? void 0 : h[t.trackBy]) === a[t.trackBy]);
1152
1151
  function Ue(a) {
1153
1152
  var A, L;
1154
1153
  if (!a)
1155
1154
  return !1;
1156
- const m = (A = r.value) == null ? void 0 : A.contains(a), S = (L = u.value) == null ? void 0 : L.contains(a);
1157
- return m || S;
1155
+ const h = (A = r.value) == null ? void 0 : A.contains(a), S = (L = u.value) == null ? void 0 : L.contains(a);
1156
+ return h || S;
1158
1157
  }
1159
1158
  function vt(a) {
1160
- const m = a.relatedTarget;
1161
- !Ue(m) && m && te();
1159
+ const h = a.relatedTarget;
1160
+ !Ue(h) && h && te();
1162
1161
  }
1163
1162
  function gt(a) {
1164
- const m = a.target;
1165
- Ue(m) || te();
1163
+ const h = a.target;
1164
+ Ue(h) || te();
1166
1165
  }
1167
1166
  const yt = () => {
1168
1167
  Ce(-1);
@@ -1175,7 +1174,7 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1175
1174
  window.addEventListener("resize", ce), ce();
1176
1175
  }), Ot(() => {
1177
1176
  window.removeEventListener("resize", ce);
1178
- }), (a, m) => (B(), Re(Wt, {
1177
+ }), (a, h) => (B(), Re(Wt, {
1179
1178
  id: t.id,
1180
1179
  class: ue(["input ll-select stash-select", F(s).class]),
1181
1180
  "data-test": "stash-select",
@@ -1236,7 +1235,7 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1236
1235
  class: "input-field stash-select__content",
1237
1236
  tabindex: "0",
1238
1237
  onFocusin: Se,
1239
- onFocusinOnce: m[4] || (m[4] = (w) => R.value = !0),
1238
+ onFocusinOnce: h[4] || (h[4] = (w) => R.value = !0),
1240
1239
  onFocusout: vt,
1241
1240
  onKeydown: Se,
1242
1241
  onMouseleave: yt
@@ -1255,12 +1254,12 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1255
1254
  class: ue(["stash-select__selected tw-pl-1.5 tw-mr-0", { "tw-truncate": !t.noTruncate }])
1256
1255
  }, [
1257
1256
  Te(a.$slots, "selected", { option: w }, () => [
1258
- me(le(w[t.displayBy] || w) + " ", 1),
1257
+ he(le(w[t.displayBy] || w) + " ", 1),
1259
1258
  z("button", {
1260
1259
  tabindex: "-1",
1261
1260
  class: "stash-select__remove",
1262
- onKeypress: je(he((J) => H(w), ["prevent"]), ["enter"]),
1263
- onMousedown: he((J) => H(w), ["prevent", "stop"])
1261
+ onKeypress: je(me((J) => H(w), ["prevent"]), ["enter"]),
1262
+ onMousedown: me((J) => H(w), ["prevent", "stop"])
1264
1263
  }, [
1265
1264
  se(ve, {
1266
1265
  icon: "close",
@@ -1274,14 +1273,14 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1274
1273
  class: "tw-inline-block"
1275
1274
  }, [
1276
1275
  se(Xe, {
1277
- "bg-color": "blue",
1276
+ "bg-color": "blue-500",
1278
1277
  "is-removable": "",
1279
1278
  "text-color": "white",
1280
1279
  class: "stash-select__chip",
1281
1280
  onRemove: (J) => H(w)
1282
1281
  }, {
1283
1282
  default: fe(() => [
1284
- me(le(w[t.displayBy] || w), 1)
1283
+ he(le(w[t.displayBy] || w), 1)
1285
1284
  ]),
1286
1285
  _: 2
1287
1286
  }, 1032, ["onRemove"])
@@ -1289,14 +1288,14 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1289
1288
  ], 512),
1290
1289
  _e.value ? (B(), I("div", Mn, [
1291
1290
  se(Xe, {
1292
- "bg-color": "blue",
1291
+ "bg-color": "blue-500",
1293
1292
  "is-removable": "",
1294
1293
  "text-color": "white",
1295
1294
  class: "stash-select__chip",
1296
1295
  onRemove: G
1297
1296
  }, {
1298
1297
  default: fe(() => [
1299
- me(le(K.value), 1)
1298
+ he(le(K.value), 1)
1300
1299
  ]),
1301
1300
  _: 1
1302
1301
  })
@@ -1306,7 +1305,7 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1306
1305
  class: "stash-select__icon",
1307
1306
  "data-test": "stash-select|toggle-icon",
1308
1307
  name: t.icon,
1309
- onMousedown: m[0] || (m[0] = he((w) => y.value && te(), ["prevent"]))
1308
+ onMousedown: h[0] || (h[0] = me((w) => y.value && te(), ["prevent"]))
1310
1309
  }, null, 8, ["name"])) : pe("", !0),
1311
1310
  (B(), Re(Tt, {
1312
1311
  to: t.teleportTo,
@@ -1319,44 +1318,44 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1319
1318
  ref: u,
1320
1319
  class: "stash-select__border-selector border-selector tw-shadow tw-w-full",
1321
1320
  style: At(F(C)),
1322
- onClick: m[3] || (m[3] = he(() => {
1321
+ onClick: h[3] || (h[3] = me(() => {
1323
1322
  }, ["stop"]))
1324
1323
  }, [
1325
1324
  O.value ? (B(), I("div", Dn, [
1326
1325
  de(z("input", {
1327
1326
  ref_key: "searchRef",
1328
- ref: h,
1329
- "onUpdate:modelValue": m[1] || (m[1] = (w) => _.value = w),
1327
+ ref: m,
1328
+ "onUpdate:modelValue": h[1] || (h[1] = (w) => _.value = w),
1330
1329
  type: "text",
1331
1330
  autocomplete: "off",
1332
1331
  class: "stash-select__search",
1333
1332
  "data-test": F(s)["data-test"] ? F(s)["data-test"] + "-search" : "stash-select|search",
1334
1333
  placeholder: t.searchPlaceholder,
1335
1334
  spellcheck: !1,
1336
- onInput: m[2] || (m[2] = //@ts-ignore
1335
+ onInput: h[2] || (h[2] = //@ts-ignore
1337
1336
  (...w) => F(Ke) && F(Ke)(...w))
1338
1337
  }, null, 40, Fn), [
1339
1338
  [Lt, _.value]
1340
1339
  ]),
1341
1340
  se(ve, {
1342
1341
  name: "search",
1343
- class: "tw-text-ice"
1342
+ class: "tw-text-ice-500"
1344
1343
  })
1345
1344
  ])) : pe("", !0),
1346
1345
  z("ul", Pn, [
1347
1346
  (B(!0), I(Oe, null, ke(D.value, (w, J) => (B(), I("li", {
1348
1347
  key: `option-${w[t.trackBy]}`,
1349
1348
  "data-test": w[t.trackBy],
1350
- class: ue(ht(w, J)),
1349
+ class: ue(mt(w, J)),
1351
1350
  onClick: (wt) => $(w),
1352
- onMouseenter: he((wt) => Ce(J), ["self"])
1351
+ onMouseenter: me((wt) => Ce(J), ["self"])
1353
1352
  }, [
1354
1353
  Te(a.$slots, "option", { option: w }, () => [
1355
- me(le(w[t.displayBy] || w), 1)
1354
+ he(le(w[t.displayBy] || w), 1)
1356
1355
  ], !0),
1357
1356
  ne(w) && !t.hideCheck ? (B(), Re(ve, {
1358
1357
  key: 0,
1359
- class: "tw-text-blue tw-ml-auto",
1358
+ class: "tw-text-blue-500 tw-ml-auto",
1360
1359
  name: "check"
1361
1360
  })) : pe("", !0)
1362
1361
  ], 42, In))), 128)),
@@ -1364,14 +1363,14 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1364
1363
  se(ve, {
1365
1364
  "data-test": "stash-select|options-loading",
1366
1365
  name: "working",
1367
- class: "tw-text-ice fx-spin"
1366
+ class: "tw-text-ice-500 fx-spin"
1368
1367
  })
1369
1368
  ], 512), [
1370
1369
  [Ve, t.loading || M.value]
1371
1370
  ]),
1372
1371
  de(z("li", Vn, [
1373
1372
  Te(a.$slots, "no-options", {}, () => [
1374
- me(" No options ")
1373
+ he(" No options ")
1375
1374
  ], !0)
1376
1375
  ], 512), [
1377
1376
  [Ve, !t.loading && !M.value && !D.value.length]
@@ -1401,8 +1400,8 @@ const Rn = (e) => (Mt("data-v-7e8a1bc4"), e = e(), Dt(), e), On = ["id", "aria-e
1401
1400
  ]), 1032, ["id", "add-bottom-space", "class", "error-text", "hint-text", "label", "show-optional-in-label"]));
1402
1401
  }
1403
1402
  });
1404
- const mo = /* @__PURE__ */ Kt($n, [["__scopeId", "data-v-7e8a1bc4"]]);
1403
+ const po = /* @__PURE__ */ Kt($n, [["__scopeId", "data-v-75b25f64"]]);
1405
1404
  export {
1406
- mo as default
1405
+ po as default
1407
1406
  };
1408
1407
  //# sourceMappingURL=Select.js.map