sprintify-ui 0.8.0 → 0.8.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.
@@ -25202,7 +25202,7 @@ const nM = ["align", "colspan"], lb = /* @__PURE__ */ ye({
25202
25202
  head: !0
25203
25203
  };
25204
25204
  }), c = ee(null), { isFirstColumn: d } = rb(c), { isLastColumn: f } = ib(c), h = N(() => {
25205
- const p = ob(s.value), g = "bg-white text-slate-500 border-b border-slate-300 group", m = e != null && e.value.fixedHeader ? "sticky top-0 z-[2]" : "", v = d.value ? "duration-300 transition-[border] border-r border-r-transparent" : "", y = e != null && e.value.fixedColumn && (i != null && i.value) && d.value ? "sticky z-[3] left-0 border-r-slate-200" : "", w = e != null && e.value.flush && d.value ? "pl-0" : "", u = e != null && e.value.flush && f.value ? "pr-0" : "";
25205
+ const p = ob(s.value), g = "bg-white text-slate-500 border-b border-slate-300 group", m = e != null && e.value.fixedHeader ? "sticky top-0 z-[2]" : "", v = d.value ? "border-r border-r-transparent" : "", y = e != null && e.value.fixedColumn && (i != null && i.value) && d.value ? "sticky z-[3] left-0 border-r-slate-200" : "", w = e != null && e.value.flush && d.value ? "pl-0" : "", u = e != null && e.value.flush && f.value ? "pr-0" : "";
25206
25206
  return wt(
25207
25207
  p,
25208
25208
  g,
@@ -25301,7 +25301,7 @@ const nM = ["align", "colspan"], lb = /* @__PURE__ */ ye({
25301
25301
  const k = Yt(r.value);
25302
25302
  return f.value && (k.href = void 0, k.to = void 0, k.target = void 0, k.onClick = void 0), wl(k, c);
25303
25303
  }), p = N(() => !!h.value.onClick || !!h.value.href || !!h.value.to), g = ee(!1), m = N(() => f.value ? g.value : ((i == null ? void 0 : i.value) ?? !1) && ((l == null ? void 0 : l.value) ?? !0)), v = N(() => {
25304
- const k = ob(d.value), x = "relative bg-white border-b border-slate-200 group-last/row:border-b-0", T = p.value ? "cursor-pointer" : "", A = p.value && m.value ? "bg-slate-50" : "", S = w.value ? "duration-300 transition-[border] border-r border-r-transparent" : "", D = t != null && t.value.fixedColumn && (o != null && o.value) && w.value ? "sticky z-[1] left-0 border-r-slate-200" : "", R = t != null && t.value.flush && w.value ? "pl-0" : "", B = t != null && t.value.flush && u.value ? "pr-0" : "";
25304
+ const k = ob(d.value), x = "relative bg-white border-b border-slate-200 group-last/row:border-b-0", T = p.value ? "cursor-pointer" : "", A = p.value && m.value ? "bg-slate-50" : "", S = w.value ? "border-r border-r-transparent" : "", D = t != null && t.value.fixedColumn && (o != null && o.value) && w.value ? "sticky z-[1] left-0 border-r-slate-200" : "", R = t != null && t.value.flush && w.value ? "pl-0" : "", B = t != null && t.value.flush && u.value ? "pr-0" : "";
25305
25305
  return wt(
25306
25306
  k,
25307
25307
  x,
@@ -25716,8 +25716,9 @@ const nM = ["align", "colspan"], lb = /* @__PURE__ */ ye({
25716
25716
  class: de([ne == 0 ? "flex items-center gap-4" : ""])
25717
25717
  }, [
25718
25718
  ne == 0 ? (I(), Q(Ke, { key: 0 }, [
25719
- C(v) ? (I(), Q("div", {
25719
+ C(v) ? (I(), Q("button", {
25720
25720
  key: 0,
25721
+ type: "button",
25721
25722
  class: "relative z-[1] || flex h-5 w-5 shrink-0 grow-0 appearance-none items-center justify-center rounded-full border border-slate-300 bg-white text-slate-400 shadow duration-100 hover:text-slate-600 hover:shadow-md",
25722
25723
  onClick: Yn((me) => D(Z), ["stop"])
25723
25724
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -119,8 +119,9 @@
119
119
  >
120
120
  <div :class="[columnIndex == 0 ? 'flex items-center gap-4' : '']">
121
121
  <template v-if="columnIndex == 0">
122
- <div
122
+ <button
123
123
  v-if="showDetailRowIcon"
124
+ type="button"
124
125
  class="relative z-[1] || flex h-5 w-5 shrink-0 grow-0 appearance-none items-center justify-center rounded-full border border-slate-300 bg-white text-slate-400 shadow duration-100 hover:text-slate-600 hover:shadow-md"
125
126
  @click.stop="toggleDetails(row)"
126
127
  >
@@ -132,7 +133,7 @@
132
133
  'rotate-180': isVisibleDetailRow(row)
133
134
  }"
134
135
  />
135
- </div>
136
+ </button>
136
137
 
137
138
  <div
138
139
  v-if="checkable"
@@ -130,7 +130,7 @@ const classes = computed(() => {
130
130
  const baseTd = 'relative bg-white border-b border-slate-200 group-last/row:border-b-0';
131
131
  const click = clickable.value ? 'cursor-pointer' : '';
132
132
  const hover = clickable.value && hoverInternal.value ? 'bg-slate-50' : '';
133
- const firstCol = isFirstColumn.value ? 'duration-300 transition-[border] border-r border-r-transparent' : '';
133
+ const firstCol = isFirstColumn.value ? 'border-r border-r-transparent' : '';
134
134
  const horizontalScrolling = baseTable?.value.fixedColumn && baseTableHorizontalScrolling?.value && isFirstColumn.value ? 'sticky z-[1] left-0 border-r-slate-200' : '';
135
135
  const flushLeft = baseTable?.value.flush && isFirstColumn.value ? 'pl-0' : '';
136
136
  const flushRight = baseTable?.value.flush && isLastColumn.value ? 'pr-0' : '';
@@ -67,7 +67,7 @@ const classes = computed(() => {
67
67
  const base = cellClasses(cellConfig.value);
68
68
  const baseTh = 'bg-white text-slate-500 border-b border-slate-300 group';
69
69
  const sticky = baseTable?.value.fixedHeader ? 'sticky top-0 z-[2]' : '';
70
- const firstCol = isFirstColumn.value ? 'duration-300 transition-[border] border-r border-r-transparent' : '';
70
+ const firstCol = isFirstColumn.value ? 'border-r border-r-transparent' : '';
71
71
  const horizontalScrolling = baseTable?.value.fixedColumn && baseTableHorizontalScrolling?.value && isFirstColumn.value ? 'sticky z-[3] left-0 border-r-slate-200' : '';
72
72
  const flushLeft = baseTable?.value.flush && isFirstColumn.value ? 'pl-0' : '';
73
73
  const flushRight = baseTable?.value.flush && isLastColumn.value ? 'pr-0' : '';