sprintify-ui 0.6.57 → 0.6.59
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 +10 -6
- package/dist/types/src/components/BaseTableCell.vue.d.ts +9 -0
- package/dist/types/src/components/BaseTableHeader.vue.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/BaseTableCell.vue +3 -0
- package/src/components/BaseTableHeader.vue +3 -0
- package/src/services/table/classes.ts +1 -1
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -44265,13 +44265,13 @@ const BP = /* @__PURE__ */ Wi(TP, [["render", NP]]), PP = /* @__PURE__ */ j("spa
|
|
|
44265
44265
|
}
|
|
44266
44266
|
});
|
|
44267
44267
|
function Ab(n) {
|
|
44268
|
-
const t = "
|
|
44268
|
+
const t = "block", e = g5(n.spacing ?? "md"), r = n.flush ? "px-0" : "";
|
|
44269
44269
|
return kt([t, e, r]);
|
|
44270
44270
|
}
|
|
44271
44271
|
function g5(n) {
|
|
44272
44272
|
return n == "sm" ? "px-1 py-0.5" : n == "md" ? "px-2 py-2" : n == "lg" ? "px-4 py-3" : "";
|
|
44273
44273
|
}
|
|
44274
|
-
const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
44274
|
+
const v5 = ["align", "colspan"], y5 = /* @__PURE__ */ be({
|
|
44275
44275
|
inheritAttrs: !1,
|
|
44276
44276
|
__name: "BaseTableCell",
|
|
44277
44277
|
props: {
|
|
@@ -44280,6 +44280,7 @@ const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
|
44280
44280
|
target: { default: void 0 },
|
|
44281
44281
|
title: { default: void 0 },
|
|
44282
44282
|
align: { default: void 0 },
|
|
44283
|
+
colspan: { default: void 0 },
|
|
44283
44284
|
class: { type: [Array, String, null, Number, Boolean], default: void 0 }
|
|
44284
44285
|
},
|
|
44285
44286
|
setup(n) {
|
|
@@ -44303,7 +44304,8 @@ const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
|
44303
44304
|
});
|
|
44304
44305
|
return (c, p) => (B(), K("td", {
|
|
44305
44306
|
class: "p-0 border-b border-slate-200",
|
|
44306
|
-
align: c.align
|
|
44307
|
+
align: c.align,
|
|
44308
|
+
colspan: c.colspan
|
|
44307
44309
|
}, [
|
|
44308
44310
|
(B(), De(In(C(s)), {
|
|
44309
44311
|
class: de(C(d)),
|
|
@@ -44332,12 +44334,13 @@ const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
|
44332
44334
|
Ne(r.$slots, "default")
|
|
44333
44335
|
]));
|
|
44334
44336
|
}
|
|
44335
|
-
}), w5 = ["align"], x5 = /* @__PURE__ */ be({
|
|
44337
|
+
}), w5 = ["align", "colspan"], x5 = /* @__PURE__ */ be({
|
|
44336
44338
|
inheritAttrs: !1,
|
|
44337
44339
|
__name: "BaseTableHeader",
|
|
44338
44340
|
props: {
|
|
44339
44341
|
class: { type: [Array, String, null, Number, Boolean], default: void 0 },
|
|
44340
|
-
align: { default: void 0 }
|
|
44342
|
+
align: { default: void 0 },
|
|
44343
|
+
colspan: { default: void 0 }
|
|
44341
44344
|
},
|
|
44342
44345
|
setup(n) {
|
|
44343
44346
|
const t = n, e = pt("BaseTable");
|
|
@@ -44360,7 +44363,8 @@ const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
|
44360
44363
|
});
|
|
44361
44364
|
return (a, l) => (B(), K("th", {
|
|
44362
44365
|
class: "p-0 border-b border-slate-200",
|
|
44363
|
-
align: a.align
|
|
44366
|
+
align: a.align,
|
|
44367
|
+
colspan: a.colspan
|
|
44364
44368
|
}, [
|
|
44365
44369
|
j("div", {
|
|
44366
44370
|
class: de(C(o))
|
|
@@ -25,6 +25,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
type: import("vue").PropType<"left" | "right" | "center">;
|
|
26
26
|
default: undefined;
|
|
27
27
|
};
|
|
28
|
+
colspan: {
|
|
29
|
+
type: import("vue").PropType<number>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
28
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
33
|
class: {
|
|
30
34
|
type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
|
|
@@ -50,6 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
54
|
type: import("vue").PropType<"left" | "right" | "center">;
|
|
51
55
|
default: undefined;
|
|
52
56
|
};
|
|
57
|
+
colspan: {
|
|
58
|
+
type: import("vue").PropType<number>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
53
61
|
}>>, {
|
|
54
62
|
class: string | false | 0 | ClassNameValue[] | null;
|
|
55
63
|
title: string;
|
|
@@ -57,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
65
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
58
66
|
href: string;
|
|
59
67
|
align: "left" | "right" | "center";
|
|
68
|
+
colspan: number;
|
|
60
69
|
}, {}>, {
|
|
61
70
|
default?(_: {}): any;
|
|
62
71
|
}>;
|
|
@@ -8,6 +8,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
8
8
|
type: import("vue").PropType<"left" | "right" | "center">;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
|
+
colspan: {
|
|
12
|
+
type: import("vue").PropType<number>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
11
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
16
|
class: {
|
|
13
17
|
type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
|
|
@@ -17,9 +21,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
21
|
type: import("vue").PropType<"left" | "right" | "center">;
|
|
18
22
|
default: undefined;
|
|
19
23
|
};
|
|
24
|
+
colspan: {
|
|
25
|
+
type: import("vue").PropType<number>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
20
28
|
}>>, {
|
|
21
29
|
class: string | false | 0 | ClassNameValue[] | null;
|
|
22
30
|
align: "left" | "right" | "center";
|
|
31
|
+
colspan: number;
|
|
23
32
|
}, {}>, {
|
|
24
33
|
default?(_: {}): any;
|
|
25
34
|
}>;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<td
|
|
3
3
|
class="p-0 border-b border-slate-200"
|
|
4
4
|
:align="align"
|
|
5
|
+
:colspan="colspan"
|
|
5
6
|
>
|
|
6
7
|
<component
|
|
7
8
|
:is="componentName"
|
|
@@ -44,6 +45,7 @@ const props = withDefaults(defineProps<{
|
|
|
44
45
|
target?: '_blank' | '_self' | '_parent' | '_top',
|
|
45
46
|
title?: string,
|
|
46
47
|
align?: 'left' | 'center' | 'right',
|
|
48
|
+
colspan?: number,
|
|
47
49
|
class?: ClassNameValue,
|
|
48
50
|
}>(), {
|
|
49
51
|
href: undefined,
|
|
@@ -51,6 +53,7 @@ const props = withDefaults(defineProps<{
|
|
|
51
53
|
target: undefined,
|
|
52
54
|
title: undefined,
|
|
53
55
|
align: undefined,
|
|
56
|
+
colspan: undefined,
|
|
54
57
|
class: undefined,
|
|
55
58
|
});
|
|
56
59
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<th
|
|
3
3
|
class="p-0 border-b border-slate-200"
|
|
4
4
|
:align="align"
|
|
5
|
+
:colspan="colspan"
|
|
5
6
|
>
|
|
6
7
|
<div :class="classes">
|
|
7
8
|
<slot />
|
|
@@ -29,9 +30,11 @@ defineOptions({
|
|
|
29
30
|
const props = withDefaults(defineProps<{
|
|
30
31
|
class?: ClassNameValue,
|
|
31
32
|
align?: 'left' | 'center' | 'right',
|
|
33
|
+
colspan?: number,
|
|
32
34
|
}>(), {
|
|
33
35
|
class: undefined,
|
|
34
36
|
align: undefined,
|
|
37
|
+
colspan: undefined,
|
|
35
38
|
});
|
|
36
39
|
|
|
37
40
|
const cellConfig = computed<CellConfig>(() => {
|
|
@@ -2,7 +2,7 @@ import { twMerge } from "tailwind-merge";
|
|
|
2
2
|
import { CellConfig, CellSpacing } from "./types";
|
|
3
3
|
|
|
4
4
|
export function cellClasses(config: CellConfig): string {
|
|
5
|
-
const base = '
|
|
5
|
+
const base = 'block';
|
|
6
6
|
const space = spacing(config.spacing ?? 'md');
|
|
7
7
|
const flush = config.flush ? 'px-0' : '';
|
|
8
8
|
|