@webx-ui/core 0.40.2 → 0.41.0

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.
@@ -31,6 +31,12 @@ export interface SortableListProps<T = unknown> {
31
31
  size?: SortableListSize;
32
32
  /** Drops the frame, for a list that already sits in a card. */
33
33
  plain?: boolean;
34
+ /**
35
+ * Tints the row under the pointer, and the row that holds the current item (`.is-current` or
36
+ * `aria-current` inside it), with the rules either side of a tinted row taken away — a tint
37
+ * cut by a line above and below reads as two rows.
38
+ */
39
+ hoverable?: boolean;
34
40
  /** Shown when there is nothing in the list. */
35
41
  emptyText?: string;
36
42
  /** What the grip is called, before the name of the row it holds. */
package/dist/index.js CHANGED
@@ -10761,6 +10761,7 @@ const Tb = ["disabled", "title", "aria-label"], Bb = {
10761
10761
  disabled: { type: Boolean, default: !1 },
10762
10762
  size: { default: "md" },
10763
10763
  plain: { type: Boolean, default: !1 },
10764
+ hoverable: { type: Boolean, default: !1 },
10764
10765
  emptyText: { default: "Nothing here yet" },
10765
10766
  dragLabel: { default: "Reorder" },
10766
10767
  ariaLabel: { default: void 0 }
@@ -10777,7 +10778,12 @@ const Tb = ["disabled", "title", "aria-label"], Bb = {
10777
10778
  }), m = f(() => [
10778
10779
  "wx-sortable-list",
10779
10780
  `wx-sortable-list--${t.size}`,
10780
- { "is-plain": t.plain, "is-disabled": t.disabled, "is-headed": r.value }
10781
+ {
10782
+ "is-plain": t.plain,
10783
+ "is-hoverable": t.hoverable,
10784
+ "is-disabled": t.disabled,
10785
+ "is-headed": r.value
10786
+ }
10781
10787
  ]);
10782
10788
  function c(C, x) {
10783
10789
  if (typeof t.itemKey == "function") return t.itemKey(C, x);
@@ -10939,7 +10945,7 @@ const Tb = ["disabled", "title", "aria-label"], Bb = {
10939
10945
  T("div", Pg, F(M.value), 1)
10940
10946
  ], 2));
10941
10947
  }
10942
- }), ws = /* @__PURE__ */ pe(Vg, [["__scopeId", "data-v-df51b75d"]]), Rg = se({
10948
+ }), ws = /* @__PURE__ */ pe(Vg, [["__scopeId", "data-v-56a97022"]]), Rg = se({
10943
10949
  name: "WxFormScope",
10944
10950
  props: {
10945
10951
  errors: { type: Object, required: !0 }