sprintify-ui 0.0.138 → 0.0.139
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
CHANGED
|
@@ -3085,7 +3085,7 @@ const ra = /* @__PURE__ */ pt(oc, [["render", sc]]), uc = { class: "relative w-f
|
|
|
3085
3085
|
};
|
|
3086
3086
|
}
|
|
3087
3087
|
return {};
|
|
3088
|
-
}), o = G(() => i.size == "base" ? "px-2.5 py-0.5 text-xs" : i.size == "lg" ? "px-3 py-0.5 text-sm" : "px-2.5 py-0.5 text-xs"), l = G(() => i.size == "base" ? "h-3 w-3 mr-1 -ml-0.5" : i.size == "lg" ? "h-4 w-4 mr-1 -ml-0.5" : "h-3 w-3 mr-1 -ml-0.5");
|
|
3088
|
+
}), o = G(() => i.size == "sm" ? "px-2 py-px text-[11px]" : i.size == "base" ? "px-2.5 py-0.5 text-xs" : i.size == "lg" ? "px-3 py-0.5 text-sm" : "px-2.5 py-0.5 text-xs"), l = G(() => i.size == "sm" ? "h-2.5 w-2.5 mr-1 -ml-px" : i.size == "base" ? "h-3 w-3 mr-1 -ml-0.5" : i.size == "lg" ? "h-4 w-4 mr-1 -ml-0.5" : "h-3 w-3 mr-1 -ml-0.5");
|
|
3089
3089
|
return (a, u) => (U(), J("span", {
|
|
3090
3090
|
class: ue(["inline-flex items-center rounded-full font-medium", [$(n), $(o)]]),
|
|
3091
3091
|
style: Ze($(r))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
contrast: 'low' | 'high';
|
|
3
3
|
color: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | string;
|
|
4
|
-
size: 'base' | 'lg';
|
|
4
|
+
size: 'sm' | 'base' | 'lg';
|
|
5
5
|
icon?: string | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
contrast: string;
|
|
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
contrast: 'low' | 'high';
|
|
13
13
|
color: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | string;
|
|
14
|
-
size: 'base' | 'lg';
|
|
14
|
+
size: 'sm' | 'base' | 'lg';
|
|
15
15
|
icon?: string | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
contrast: string;
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
}>>>, {
|
|
22
22
|
color: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | string;
|
|
23
23
|
icon: string;
|
|
24
|
-
size: 'base' | 'lg';
|
|
24
|
+
size: 'sm' | 'base' | 'lg';
|
|
25
25
|
contrast: 'low' | 'high';
|
|
26
26
|
}>, {
|
|
27
27
|
default: (_: {}) => any;
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ const props = withDefaults(
|
|
|
26
26
|
| 'purple'
|
|
27
27
|
| 'pink'
|
|
28
28
|
| string;
|
|
29
|
-
size: 'base' | 'lg';
|
|
29
|
+
size: 'sm' | 'base' | 'lg';
|
|
30
30
|
icon?: string;
|
|
31
31
|
}>(),
|
|
32
32
|
{
|
|
@@ -118,6 +118,9 @@ const colorStyle = computed((): Record<string, string> => {
|
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
const sizeClasses = computed(() => {
|
|
121
|
+
if (props.size == 'sm') {
|
|
122
|
+
return 'px-2 py-px text-[11px]';
|
|
123
|
+
}
|
|
121
124
|
if (props.size == 'base') {
|
|
122
125
|
return 'px-2.5 py-0.5 text-xs';
|
|
123
126
|
}
|
|
@@ -128,6 +131,9 @@ const sizeClasses = computed(() => {
|
|
|
128
131
|
});
|
|
129
132
|
|
|
130
133
|
const iconSizeClasses = computed(() => {
|
|
134
|
+
if (props.size == 'sm') {
|
|
135
|
+
return 'h-2.5 w-2.5 mr-1 -ml-px';
|
|
136
|
+
}
|
|
131
137
|
if (props.size == 'base') {
|
|
132
138
|
return 'h-3 w-3 mr-1 -ml-0.5';
|
|
133
139
|
}
|