nuxt-ui-elements-pro 0.1.7 → 0.1.8

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements-pro",
3
3
  "configKey": "uiElementsPro",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -79,12 +79,9 @@ const eventCalendar = (options) => ({
79
79
  dragSnapSlot: "",
80
80
  // Selection
81
81
  selectionOverlay: "",
82
- // Loading & empty states
82
+ // Loading state
83
83
  loadingOverlay: "absolute inset-0 z-30 flex items-center justify-center bg-default/60",
84
- loadingIcon: "size-8 text-muted animate-spin",
85
- emptyState: "flex flex-col items-center justify-center gap-2 py-14 text-center",
86
- emptyStateIcon: "size-10 text-muted/50",
87
- emptyStateText: "text-sm text-muted"
84
+ loadingIcon: "size-8 text-muted animate-spin"
88
85
  },
89
86
  variants: {
90
87
  color: {
@@ -132,8 +132,6 @@ export interface EventCalendarSlots {
132
132
  }) => any;
133
133
  /** Customize loading overlay */
134
134
  loading?: () => any;
135
- /** Customize empty state */
136
- empty?: () => any;
137
135
  }
138
136
  declare const _default: typeof __VLS_export;
139
137
  export default _default;
@@ -235,9 +235,6 @@ defineExpose({
235
235
  <template v-if="slots.loading" #loading>
236
236
  <slot name="loading" />
237
237
  </template>
238
- <template v-if="slots.empty" #empty>
239
- <slot name="empty" />
240
- </template>
241
238
  </EventCalendarMonthView>
242
239
 
243
240
  <!-- Week/Day time grid view -->
@@ -254,9 +251,6 @@ defineExpose({
254
251
  <template v-if="slots.loading" #loading>
255
252
  <slot name="loading" />
256
253
  </template>
257
- <template v-if="slots.empty" #empty>
258
- <slot name="empty" />
259
- </template>
260
254
  </EventCalendarTimeGrid>
261
255
 
262
256
  <!-- List view -->
@@ -132,8 +132,6 @@ export interface EventCalendarSlots {
132
132
  }) => any;
133
133
  /** Customize loading overlay */
134
134
  loading?: () => any;
135
- /** Customize empty state */
136
- empty?: () => any;
137
135
  }
138
136
  declare const _default: typeof __VLS_export;
139
137
  export default _default;
@@ -22,7 +22,6 @@ export interface EventCalendarMonthViewSlots {
22
22
  day: CalendarDay;
23
23
  }) => any;
24
24
  loading: () => any;
25
- empty: () => any;
26
25
  }
27
26
  declare const _default: typeof __VLS_export;
28
27
  export default _default;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { Primitive } from "reka-ui";
3
- import { computed, ref } from "vue";
3
+ import { ref } from "vue";
4
4
  import { useEventListener, onKeyStroke } from "@vueuse/core";
5
5
  import { useEventCalendarContext } from "../../composables/useEventCalendarContext";
6
6
  </script>
@@ -11,11 +11,6 @@ const props = defineProps({
11
11
  });
12
12
  defineSlots();
13
13
  const ctx = useEventCalendarContext();
14
- const isEmpty = computed(
15
- () => !ctx.loading.value && ctx.monthWeekLayouts.value.every(
16
- (layout) => layout.spanning.length === 0 && layout.singleDay.length === 0
17
- )
18
- );
19
14
  const expandedDay = ref(null);
20
15
  function openExpandDay(dateKey, e) {
21
16
  e.stopPropagation();
@@ -314,23 +309,6 @@ onKeyStroke("Escape", () => {
314
309
  <span class="sr-only">Loading events</span>
315
310
  </slot>
316
311
  </div>
317
-
318
- <!-- Empty state -->
319
- <div
320
- v-else-if="isEmpty"
321
- data-slot="emptyState"
322
- :class="ctx.ui.value.emptyState({ class: ctx.propUi.value?.emptyState })">
323
- <slot name="empty">
324
- <UIcon
325
- name="i-lucide-calendar-x2"
326
- data-slot="emptyStateIcon"
327
- :class="ctx.ui.value.emptyStateIcon({ class: ctx.propUi.value?.emptyStateIcon })"
328
- aria-hidden="true" />
329
- <p data-slot="emptyStateText" :class="ctx.ui.value.emptyStateText({ class: ctx.propUi.value?.emptyStateText })">
330
- No events
331
- </p>
332
- </slot>
333
- </div>
334
312
  </div>
335
313
  </Primitive>
336
314
  </template>
@@ -22,7 +22,6 @@ export interface EventCalendarMonthViewSlots {
22
22
  day: CalendarDay;
23
23
  }) => any;
24
24
  loading: () => any;
25
- empty: () => any;
26
25
  }
27
26
  declare const _default: typeof __VLS_export;
28
27
  export default _default;
@@ -19,7 +19,6 @@ export interface EventCalendarTimeGridSlots {
19
19
  date: CalendarDate;
20
20
  }) => any;
21
21
  loading: () => any;
22
- empty: () => any;
23
22
  }
24
23
  declare const _default: typeof __VLS_export;
25
24
  export default _default;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { Primitive } from "reka-ui";
3
- import { computed } from "vue";
3
+ import {} from "vue";
4
4
  import { useEventCalendarContext } from "../../composables/useEventCalendarContext";
5
5
  import { format } from "#std/date";
6
6
  </script>
@@ -11,11 +11,6 @@ const props = defineProps({
11
11
  });
12
12
  defineSlots();
13
13
  const ctx = useEventCalendarContext();
14
- const isEmpty = computed(
15
- () => !ctx.loading.value && ctx.timeGridDays.value.every(
16
- (day) => day.allDayEvents.length === 0 && day.timedEvents.length === 0
17
- )
18
- );
19
14
  </script>
20
15
 
21
16
  <template>
@@ -284,23 +279,6 @@ const isEmpty = computed(
284
279
  <span class="sr-only">Loading events</span>
285
280
  </slot>
286
281
  </div>
287
-
288
- <!-- Empty state -->
289
- <div
290
- v-else-if="isEmpty"
291
- data-slot="emptyState"
292
- :class="ctx.ui.value.emptyState({ class: ctx.propUi.value?.emptyState })">
293
- <slot name="empty">
294
- <UIcon
295
- name="i-lucide-calendar-x2"
296
- data-slot="emptyStateIcon"
297
- :class="ctx.ui.value.emptyStateIcon({ class: ctx.propUi.value?.emptyStateIcon })"
298
- aria-hidden="true" />
299
- <p data-slot="emptyStateText" :class="ctx.ui.value.emptyStateText({ class: ctx.propUi.value?.emptyStateText })">
300
- No events
301
- </p>
302
- </slot>
303
- </div>
304
282
  </div>
305
283
  </Primitive>
306
284
  </template>
@@ -19,7 +19,6 @@ export interface EventCalendarTimeGridSlots {
19
19
  date: CalendarDate;
20
20
  }) => any;
21
21
  loading: () => any;
22
- empty: () => any;
23
22
  }
24
23
  declare const _default: typeof __VLS_export;
25
24
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements-pro",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Pro components for nuxt-ui-elements",
5
5
  "license": "UNLICENSED",
6
6
  "files": [