sprintify-ui 0.9.4 → 0.9.5

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.
@@ -7021,6 +7021,7 @@ const VT = {
7021
7021
  iconPosition: { default: "start" },
7022
7022
  size: { default: "md" },
7023
7023
  sizeBehavior: { default: ah.default },
7024
+ align: { default: "center" },
7024
7025
  color: { default: "" },
7025
7026
  to: { default: void 0 }
7026
7027
  },
@@ -7063,7 +7064,7 @@ const VT = {
7063
7064
  return {};
7064
7065
  }), u = A(() => {
7065
7066
  const p = ["flex items-center w-full"];
7066
- return i.loading && p.push("opacity-0"), i.icon && (s.value == "xs" || s.value == "sm" ? p.push("gap-0.5") : (s.value == "md" || s.value == "lg" || s.value == "xl") && p.push("gap-1")), o.value ? p.push("justify-center") : p.push("justify-between"), p;
7067
+ return i.loading && p.push("opacity-0"), i.icon && (s.value == "xs" || s.value == "sm" ? p.push("gap-0.5") : (s.value == "md" || s.value == "lg" || s.value == "xl") && p.push("gap-1")), i.align == "center" ? p.push("justify-center") : p.push("justify-between"), p;
7067
7068
  }), d = A(() => {
7068
7069
  const p = ["shrink-0"];
7069
7070
  return o.value || (i.iconPosition === "start" ? p.push("-translate-x-[20%]") : i.iconPosition === "end" && p.push("translate-x-[20%]")), s.value === "xs" ? p.push("h-3 w-3") : s.value === "sm" ? p.push("h-3.5 w-3.5") : s.value === "md" ? p.push("h-4 w-4") : s.value === "lg" ? p.push("h-5 w-5") : s.value === "xl" && p.push("h-6 w-6"), p;
@@ -44,6 +44,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
44
44
  iconPosition?: "start" | "end";
45
45
  size?: Size;
46
46
  sizeBehavior?: SizeBehavior;
47
+ align?: "center" | "between";
47
48
  color?: keyof typeof colors | string;
48
49
  to?: RouteLocationRaw;
49
50
  }, {
@@ -64,6 +65,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
64
65
  iconPosition?: "start" | "end";
65
66
  size?: Size;
66
67
  sizeBehavior?: SizeBehavior;
68
+ align?: "center" | "between";
67
69
  color?: keyof typeof colors | string;
68
70
  to?: RouteLocationRaw;
69
71
  }> & Readonly<{
@@ -84,6 +86,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
84
86
  loading: boolean;
85
87
  iconPosition: "start" | "end";
86
88
  sizeBehavior: SizeBehavior;
89
+ align: "center" | "between";
87
90
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
88
91
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
89
92
  export default _default;
@@ -277,6 +277,7 @@ declare function __VLS_template(): {
277
277
  readonly iconPosition?: ("start" | "end") | undefined;
278
278
  readonly size?: import("../utils/sizes.js").Size | undefined;
279
279
  readonly sizeBehavior?: import("../utils/sizeBehaviors.js").SizeBehavior | undefined;
280
+ readonly align?: ("center" | "between") | undefined;
280
281
  readonly color?: (("" | "danger" | "success" | "warning" | "primary" | "secondary" | "info" | "black" | "white" | "secondary-outline" | "success-outline" | "danger-outline" | "warning-outline" | "info-outline" | "slate-100" | "slate-100-outline" | "slate-200" | "slate-200-outline") | string) | undefined;
281
282
  readonly to?: import("vue-router").RouteLocationRaw | undefined;
282
283
  readonly onClick?: ((...args: any[]) => any) | undefined;
@@ -309,6 +310,7 @@ declare function __VLS_template(): {
309
310
  iconPosition?: "start" | "end";
310
311
  size?: import("../utils/sizes.js").Size;
311
312
  sizeBehavior?: import("../utils/sizeBehaviors.js").SizeBehavior;
313
+ align?: "center" | "between";
312
314
  color?: ("" | "danger" | "success" | "warning" | "primary" | "secondary" | "info" | "black" | "white" | "secondary-outline" | "success-outline" | "danger-outline" | "warning-outline" | "info-outline" | "slate-100" | "slate-100-outline" | "slate-200" | "slate-200-outline") | string;
313
315
  to?: import("vue-router").RouteLocationRaw;
314
316
  }> & Readonly<{
@@ -336,6 +338,7 @@ declare function __VLS_template(): {
336
338
  loading: boolean;
337
339
  iconPosition: "start" | "end";
338
340
  sizeBehavior: import("../utils/sizeBehaviors.js").SizeBehavior;
341
+ align: "center" | "between";
339
342
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
340
343
  beforeCreate?: (() => void) | (() => void)[];
341
344
  created?: (() => void) | (() => void)[];
@@ -369,6 +372,7 @@ declare function __VLS_template(): {
369
372
  loading: boolean;
370
373
  iconPosition: "start" | "end";
371
374
  sizeBehavior: import("../utils/sizeBehaviors.js").SizeBehavior;
375
+ align: "center" | "between";
372
376
  }> & Omit<Readonly<{
373
377
  as?: string;
374
378
  disabled?: boolean;
@@ -380,6 +384,7 @@ declare function __VLS_template(): {
380
384
  iconPosition?: "start" | "end";
381
385
  size?: import("../utils/sizes.js").Size;
382
386
  sizeBehavior?: import("../utils/sizeBehaviors.js").SizeBehavior;
387
+ align?: "center" | "between";
383
388
  color?: ("" | "danger" | "success" | "warning" | "primary" | "secondary" | "info" | "black" | "white" | "secondary-outline" | "success-outline" | "danger-outline" | "warning-outline" | "info-outline" | "slate-100" | "slate-100-outline" | "slate-200" | "slate-200-outline") | string;
384
389
  to?: import("vue-router").RouteLocationRaw;
385
390
  }> & Readonly<{
@@ -387,7 +392,7 @@ declare function __VLS_template(): {
387
392
  onMouseenter?: ((...args: any[]) => any) | undefined;
388
393
  onMouseleave?: ((...args: any[]) => any) | undefined;
389
394
  onMouseover?: ((...args: any[]) => any) | undefined;
390
- }>, "focus" | ("class" | "to" | "type" | "href" | "color" | "icon" | "size" | "disabled" | "as" | "loading" | "iconPosition" | "sizeBehavior")> & import("vue").ShallowUnwrapRef<{
395
+ }>, "focus" | ("class" | "to" | "type" | "href" | "color" | "icon" | "size" | "disabled" | "as" | "loading" | "iconPosition" | "sizeBehavior" | "align")> & import("vue").ShallowUnwrapRef<{
391
396
  focus: () => void;
392
397
  }> & {} & import("vue").ComponentCustomProperties & {} & {
393
398
  $slots: {
@@ -183,12 +183,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
183
183
  href: (row: CollectionItem) => string;
184
184
  meta: Record<string, any> | unknown[];
185
185
  width: number;
186
+ align: "left" | "center" | "right";
186
187
  field: string;
187
188
  padding: string;
188
189
  searchable: boolean;
189
190
  customKey: string | number;
190
191
  numeric: boolean;
191
- align: "left" | "center" | "right";
192
192
  sortable: boolean;
193
193
  ignoreRowInteractions: boolean;
194
194
  toggleDefault: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -95,6 +95,7 @@ const props = withDefaults(defineProps<{
95
95
  iconPosition?: 'start' | 'end';
96
96
  size?: Size;
97
97
  sizeBehavior?: SizeBehavior;
98
+ align?: 'center' | 'between';
98
99
  color?: keyof typeof colors | string;
99
100
  to?: RouteLocationRaw;
100
101
  }>(), {
@@ -109,6 +110,7 @@ const props = withDefaults(defineProps<{
109
110
  size: 'md',
110
111
  sizeBehavior: SizeBehavior.default,
111
112
  color: '',
113
+ align: 'center',
112
114
  to: undefined,
113
115
  });
114
116
 
@@ -190,7 +192,7 @@ const containerClass = computed(() => {
190
192
  }
191
193
  }
192
194
 
193
- if (iconOnly.value) {
195
+ if (props.align == 'center') {
194
196
  classes.push('justify-center');
195
197
  } else {
196
198
  classes.push('justify-between');