sprintify-ui 0.8.24 → 0.8.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.8.24",
3
+ "version": "0.8.25",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -66,8 +66,15 @@ const props = withDefaults(defineProps<{
66
66
  });
67
67
 
68
68
  const classes = computed(() => {
69
+
70
+ const base = 'border-separate border-spacing-0 text-sm';
71
+
72
+ if (!props.class) {
73
+ return base;
74
+ }
75
+
69
76
  return twMerge(
70
- 'border-separate border-spacing-0 text-sm',
77
+ base,
71
78
  props.class,
72
79
  );
73
80
  });
@@ -154,17 +154,23 @@ const classes = computed(() => {
154
154
  const horizontalScrolling = baseTable?.value.fixedColumn && baseTableHorizontalScrolling?.value ? 'first:sticky first:z-[1] first:left-0 first:border-r-slate-200' : '';
155
155
  const flush = baseTable?.value.flush ? 'first:pl-0 last:pr-0' : '';
156
156
 
157
+ const internalClasses = [
158
+ base,
159
+ baseTd,
160
+ click,
161
+ backgroundColor,
162
+ borderColor,
163
+ firstCol,
164
+ horizontalScrolling,
165
+ flush,
166
+ ];
167
+
168
+ if (!props.class) {
169
+ return internalClasses;
170
+ }
171
+
157
172
  return twMerge(
158
- [
159
- base,
160
- baseTd,
161
- click,
162
- backgroundColor,
163
- borderColor,
164
- firstCol,
165
- horizontalScrolling,
166
- flush,
167
- ],
173
+ internalClasses,
168
174
  props.class,
169
175
  );
170
176
  });
@@ -26,6 +26,10 @@ provide('tableHead:props', computed(() => props));
26
26
  const classes = computed(() => {
27
27
  const base = '';
28
28
 
29
+ if (!props.class) {
30
+ return base;
31
+ }
32
+
29
33
  return twMerge(
30
34
  base,
31
35
  props.class,
@@ -65,15 +65,21 @@ const classes = computed(() => {
65
65
  const horizontalScrolling = baseTable?.value.fixedColumn && baseTableHorizontalScrolling?.value ? 'first:sticky first:z-[3] first:left-0 first:border-r-slate-200' : '';
66
66
  const flush = baseTable?.value.flush ? 'first:pl-0 last:pr-0' : '';
67
67
 
68
+ const internalClasses = [
69
+ base,
70
+ baseTh,
71
+ sticky,
72
+ firstCol,
73
+ horizontalScrolling,
74
+ flush,
75
+ ];
76
+
77
+ if (!props.class) {
78
+ return internalClasses;
79
+ }
80
+
68
81
  return twMerge(
69
- [
70
- base,
71
- baseTh,
72
- sticky,
73
- firstCol,
74
- horizontalScrolling,
75
- flush,
76
- ],
82
+ internalClasses,
77
83
  props.class,
78
84
  );
79
85
  });
@@ -53,6 +53,10 @@ onMounted(() => {
53
53
  const classes = computed(() => {
54
54
  const base = 'group/row';
55
55
 
56
+ if (!props.class) {
57
+ return base;
58
+ }
59
+
56
60
  return twMerge(
57
61
  base,
58
62
  props.class,