sprintify-ui 0.0.128 → 0.0.130

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.
@@ -44,6 +44,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
44
44
  default: boolean;
45
45
  type: BooleanConstructor;
46
46
  };
47
+ showNotificationOnSuccess: {
48
+ default: boolean;
49
+ type: BooleanConstructor;
50
+ };
47
51
  }, {
48
52
  submit: () => void;
49
53
  errors: Ref<Record<string, string[]>>;
@@ -94,6 +98,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
94
98
  default: boolean;
95
99
  type: BooleanConstructor;
96
100
  };
101
+ showNotificationOnSuccess: {
102
+ default: boolean;
103
+ type: BooleanConstructor;
104
+ };
97
105
  }>> & {
98
106
  onError?: ((...args: any[]) => any) | undefined;
99
107
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -105,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
105
113
  errorHandler: (error: AxiosError) => void;
106
114
  loadingMaskClass: string;
107
115
  showNotificationOnError: boolean;
116
+ showNotificationOnSuccess: boolean;
108
117
  }>, {
109
118
  default: (_: {
110
119
  errors: Record<string, string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.128",
3
+ "version": "0.0.130",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -17,14 +17,14 @@
17
17
  >
18
18
  <slot v-if="loading" name="loading">
19
19
  <div
20
- class="absolute inset-0 flex items-center justify-center w-full h-full"
20
+ class="absolute inset-0 flex h-full w-full items-center justify-center"
21
21
  >
22
22
  <div
23
- class="absolute inset-0 w-full h-full opacity-80"
23
+ class="absolute inset-0 h-full w-full opacity-80"
24
24
  :class="loadingMaskClass"
25
25
  />
26
26
  <svg
27
- class="relative w-6 h-6 text-blue-600 animate-spin"
27
+ class="relative h-6 w-6 animate-spin text-blue-600"
28
28
  viewBox="0 0 24 24"
29
29
  >
30
30
  <path
@@ -101,6 +101,10 @@ const props = defineProps({
101
101
  default: true,
102
102
  type: Boolean,
103
103
  },
104
+ showNotificationOnSuccess: {
105
+ default: true,
106
+ type: Boolean,
107
+ },
104
108
  });
105
109
 
106
110
  const i18n = useI18n();
@@ -242,11 +246,13 @@ function successHandler(response: AxiosResponse<any, any>) {
242
246
  return;
243
247
  }
244
248
 
245
- notifications.push({
246
- color: 'success',
247
- title: i18n.t('sui.success'),
248
- text: message,
249
- });
249
+ if (props.showNotificationOnSuccess) {
250
+ notifications.push({
251
+ color: 'success',
252
+ title: i18n.t('sui.success'),
253
+ text: message,
254
+ });
255
+ }
250
256
  }
251
257
  }
252
258
 
@@ -121,7 +121,8 @@
121
121
  <div class="z-10 hidden xl:fixed xl:inset-y-0 xl:flex xl:w-64 xl:flex-col">
122
122
  <!-- Sidebar component, swap this element with another sidebar if you like -->
123
123
  <div
124
- class="flex min-h-0 flex-1 flex-col"
124
+ data-scroll-lock-scrollable
125
+ class="flex min-h-0 flex-1 flex-col overflow-y-auto"
125
126
  :class="[dark ? 'bg-slate-800' : 'bg-white shadow']"
126
127
  >
127
128
  <div