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/dist/sprintify-ui.es.js +435 -426
- package/package.json +1 -1
- package/src/components/BaseTable.vue +8 -1
- package/src/components/BaseTableCell.vue +16 -10
- package/src/components/BaseTableHead.vue +4 -0
- package/src/components/BaseTableHeader.vue +14 -8
- package/src/components/BaseTableRow.vue +4 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
});
|
|
@@ -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
|
});
|