@una-ui/nuxt 0.61.0 → 1.0.0-alpha.2

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.
Files changed (127) hide show
  1. package/dist/module.d.mts +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +5 -3
  4. package/dist/runtime/components/alert/Alert.vue +94 -0
  5. package/dist/runtime/components/alert/Alert.vue.d.ts +32 -0
  6. package/dist/runtime/components/alert/AlertClose.vue +58 -0
  7. package/dist/runtime/components/alert/AlertClose.vue.d.ts +18 -0
  8. package/dist/runtime/components/alert/AlertDescription.vue +22 -0
  9. package/dist/runtime/components/alert/AlertDescription.vue.d.ts +15 -0
  10. package/dist/runtime/components/alert/AlertTitle.vue +22 -0
  11. package/dist/runtime/components/alert/AlertTitle.vue.d.ts +15 -0
  12. package/dist/runtime/components/alert-dialog/AlertDialog.vue +2 -2
  13. package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +1 -0
  14. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
  15. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +2 -2
  16. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +1 -0
  17. package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
  18. package/dist/runtime/components/combobox/Combobox.vue +2 -1
  19. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  20. package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
  21. package/dist/runtime/components/elements/Skeleton.vue +1 -1
  22. package/dist/runtime/components/elements/Skeleton.vue.d.ts +3 -1
  23. package/dist/runtime/components/elements/avatar/Avatar.vue +17 -15
  24. package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +6 -4
  25. package/dist/runtime/components/elements/card/Card.vue +15 -4
  26. package/dist/runtime/components/elements/card/Card.vue.d.ts +6 -4
  27. package/dist/runtime/components/elements/card/CardAction.vue +19 -0
  28. package/dist/runtime/components/elements/card/CardAction.vue.d.ts +13 -0
  29. package/dist/runtime/components/elements/card/CardContent.vue +1 -0
  30. package/dist/runtime/components/elements/card/CardDescription.vue +1 -0
  31. package/dist/runtime/components/elements/card/CardFooter.vue +1 -0
  32. package/dist/runtime/components/elements/card/CardHeader.vue +1 -0
  33. package/dist/runtime/components/elements/card/CardTitle.vue +1 -0
  34. package/dist/runtime/components/elements/dialog/Dialog.vue +73 -62
  35. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +12 -9
  36. package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -0
  37. package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
  38. package/dist/runtime/components/elements/dialog/DialogContent.vue +3 -2
  39. package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +1 -0
  40. package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -0
  41. package/dist/runtime/components/elements/dialog/DialogFooter.vue +1 -0
  42. package/dist/runtime/components/elements/dialog/DialogHeader.vue +1 -0
  43. package/dist/runtime/components/elements/dialog/DialogOverlay.vue +1 -0
  44. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +2 -2
  45. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +1 -0
  46. package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -0
  47. package/dist/runtime/components/elements/dialog/DialogTrigger.vue +16 -0
  48. package/dist/runtime/components/elements/dialog/DialogTrigger.vue.d.ts +13 -0
  49. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
  50. package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
  51. package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
  52. package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
  53. package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
  54. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +2 -2
  55. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -0
  56. package/dist/runtime/components/forms/Checkbox.vue +2 -2
  57. package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -0
  58. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  59. package/dist/runtime/components/forms/Input.vue.d.ts +6 -6
  60. package/dist/runtime/components/forms/Slider.vue +12 -11
  61. package/dist/runtime/components/forms/Slider.vue.d.ts +1 -0
  62. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  63. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
  64. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  65. package/dist/runtime/components/misc/ThemeSwitcher.vue +101 -32
  66. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
  67. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +1 -1
  68. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
  69. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  70. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
  71. package/dist/runtime/components/number-field/NumberField.vue.d.ts +1 -1
  72. package/dist/runtime/components/number-field/NumberFieldDecrement.vue.d.ts +1 -1
  73. package/dist/runtime/components/number-field/NumberFieldIncrement.vue.d.ts +1 -1
  74. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  75. package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
  76. package/dist/runtime/components/sheet/Sheet.vue +11 -5
  77. package/dist/runtime/components/sheet/Sheet.vue.d.ts +7 -4
  78. package/dist/runtime/components/sheet/SheetClose.vue +1 -0
  79. package/dist/runtime/components/sheet/SheetContent.vue +6 -5
  80. package/dist/runtime/components/sheet/SheetContent.vue.d.ts +4 -2
  81. package/dist/runtime/components/sheet/SheetDescription.vue +1 -0
  82. package/dist/runtime/components/sheet/SheetFooter.vue +1 -0
  83. package/dist/runtime/components/sheet/SheetHeader.vue +1 -0
  84. package/dist/runtime/components/sheet/SheetOverlay.vue +23 -0
  85. package/dist/runtime/components/sheet/SheetOverlay.vue.d.ts +12 -0
  86. package/dist/runtime/components/sheet/SheetTitle.vue +1 -0
  87. package/dist/runtime/components/sheet/SheetTrigger.vue +4 -1
  88. package/dist/runtime/components/sidebar/Sidebar.vue +8 -3
  89. package/dist/runtime/components/sidebar/SidebarContent.vue +1 -0
  90. package/dist/runtime/components/sidebar/SidebarFooter.vue +1 -0
  91. package/dist/runtime/components/sidebar/SidebarGroup.vue +1 -0
  92. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -0
  93. package/dist/runtime/components/sidebar/SidebarGroupContent.vue +1 -0
  94. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -0
  95. package/dist/runtime/components/sidebar/SidebarHeader.vue +1 -0
  96. package/dist/runtime/components/sidebar/SidebarInput.vue +1 -0
  97. package/dist/runtime/components/sidebar/SidebarInset.vue +1 -0
  98. package/dist/runtime/components/sidebar/SidebarMenu.vue +1 -0
  99. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -0
  100. package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +1 -0
  101. package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
  102. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -0
  103. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
  104. package/dist/runtime/components/sidebar/SidebarMenuItem.vue +1 -0
  105. package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +1 -0
  106. package/dist/runtime/components/sidebar/SidebarMenuSub.vue +1 -0
  107. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +3 -1
  108. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
  109. package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +2 -0
  110. package/dist/runtime/components/sidebar/SidebarProvider.vue +1 -0
  111. package/dist/runtime/components/sidebar/SidebarRail.vue +1 -0
  112. package/dist/runtime/components/sidebar/SidebarSeparator.vue +1 -0
  113. package/dist/runtime/components/sidebar/SidebarTrigger.vue +1 -0
  114. package/dist/runtime/composables/useUnaSettings.js +22 -9
  115. package/dist/runtime/composables/useUnaThemes.d.ts +5 -5
  116. package/dist/runtime/composables/useUnaThemes.js +48 -98
  117. package/dist/runtime/plugins/theme.client.js +13 -0
  118. package/dist/runtime/plugins/theme.server.js +12 -0
  119. package/dist/runtime/types/alert-dialog.d.ts +2 -2
  120. package/dist/runtime/types/alert.d.ts +30 -15
  121. package/dist/runtime/types/card.d.ts +5 -0
  122. package/dist/runtime/types/dialog.d.ts +8 -3
  123. package/dist/runtime/types/index.d.ts +10 -2
  124. package/dist/runtime/types/sheet.d.ts +2 -2
  125. package/package.json +9 -9
  126. package/dist/runtime/components/elements/Alert.vue +0 -127
  127. package/dist/runtime/components/elements/Alert.vue.d.ts +0 -22
package/dist/module.d.mts CHANGED
@@ -4,10 +4,10 @@ export * from '../dist/runtime/types/index.js';
4
4
 
5
5
  declare module '@nuxt/schema' {
6
6
  interface AppConfigInput {
7
- una?: Partial<Omit<UnaSettings, 'primaryColors' | 'grayColors'>>;
7
+ una?: Partial<UnaSettings>;
8
8
  }
9
9
  interface AppConfig {
10
- una: Omit<UnaSettings, 'primaryColors' | 'grayColors'>;
10
+ una: UnaSettings;
11
11
  }
12
12
  }
13
13
  interface ModuleOptions {
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.61.0",
4
+ "version": "1.0.0-alpha.2",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'unocss';
8
8
  import 'unocss-preset-animations';
9
9
 
10
10
  const name = "@una-ui/nuxt";
11
- const version = "0.61.0";
11
+ const version = "1.0.0-alpha.2";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -33,8 +33,10 @@ const module = defineNuxtModule({
33
33
  ...{
34
34
  primary: "yellow",
35
35
  gray: "stone",
36
- radius: 0.5,
37
- fontSize: 16
36
+ radius: 0.625,
37
+ fontSize: 16,
38
+ theme: null,
39
+ themes: []
38
40
  },
39
41
  ...nuxt.options.appConfig.una || {}
40
42
  };
@@ -0,0 +1,94 @@
1
+ <script setup>
2
+ import { computed } from "vue";
3
+ import { cn } from "../../utils";
4
+ import Icon from "../elements/Icon.vue";
5
+ import AlertClose from "./AlertClose.vue";
6
+ import AlertDescription from "./AlertDescription.vue";
7
+ import AlertTitle from "./AlertTitle.vue";
8
+ const props = defineProps({
9
+ size: { type: null, required: false, default: "sm" },
10
+ class: { type: null, required: false },
11
+ alert: { type: null, required: false, default: "text-gray" },
12
+ icon: { type: [String, Boolean], required: false, default: false },
13
+ closable: { type: Boolean, required: false, default: false },
14
+ title: { type: String, required: false },
15
+ description: { type: String, required: false },
16
+ _alertTitle: { type: Object, required: false },
17
+ _alertDescription: { type: Object, required: false },
18
+ _alertClose: { type: Object, required: false },
19
+ una: { type: Object, required: false }
20
+ });
21
+ const emit = defineEmits(["close"]);
22
+ const alertClassVariants = computed(() => {
23
+ const icon2 = {
24
+ info: "alert-info-icon",
25
+ success: "alert-success-icon",
26
+ warning: "alert-warning-icon",
27
+ error: "alert-error-icon",
28
+ default: ""
29
+ };
30
+ const alertType = props.alert ? props.alert.includes("info") ? "info" : props.alert.includes("success") ? "success" : props.alert.includes("warning") ? "warning" : props.alert.includes("error") ? "error" : "default" : "default";
31
+ return {
32
+ icon: icon2[alertType]
33
+ };
34
+ });
35
+ const icon = computed(() => {
36
+ if (props.icon === "" || props.icon === void 0 || props.icon === true)
37
+ return alertClassVariants.value.icon;
38
+ return props.icon.toString();
39
+ });
40
+ </script>
41
+
42
+ <template>
43
+ <div
44
+ data-slot="alert"
45
+ role="alert"
46
+ :size
47
+ :class="cn(
48
+ 'alert',
49
+ props.una?.alert,
50
+ props.class
51
+ )"
52
+ :alert
53
+ >
54
+ <slot>
55
+ <slot v-if="$slots.icon || props.icon !== false" name="icon">
56
+ <Icon :name="icon" />
57
+ </slot>
58
+
59
+ <AlertTitle
60
+ v-if="title || $slots.title"
61
+ :size
62
+ :una
63
+ v-bind="props._alertTitle"
64
+ >
65
+ <slot name="title">
66
+ {{ title }}
67
+ </slot>
68
+ </AlertTitle>
69
+
70
+ <AlertDescription
71
+ v-if="description || $slots.description"
72
+ :size
73
+ :una
74
+ v-bind="props._alertDescription"
75
+ >
76
+ <slot name="description">
77
+ {{ description }}
78
+ </slot>
79
+ </AlertDescription>
80
+
81
+ <AlertClose
82
+ v-if="$slots.close || props.closable"
83
+ :size
84
+ v-bind="props._alertClose"
85
+ :una
86
+ @click="emit('close')"
87
+ >
88
+ <slot name="close" />
89
+ </AlertClose>
90
+
91
+ <slot v-if="$slots.actions" name="actions" />
92
+ </slot>
93
+ </div>
94
+ </template>
@@ -0,0 +1,32 @@
1
+ import type { NAlertProps } from '../../types/index.js';
2
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {}, __VLS_16: {}, __VLS_25: {}, __VLS_27: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ icon?: (props: typeof __VLS_3) => any;
7
+ } & {
8
+ title?: (props: typeof __VLS_11) => any;
9
+ } & {
10
+ description?: (props: typeof __VLS_16) => any;
11
+ } & {
12
+ close?: (props: typeof __VLS_25) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_27) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<NAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ close: () => any;
18
+ }, string, import("vue").PublicProps, Readonly<NAlertProps> & Readonly<{
19
+ onClose?: (() => any) | undefined;
20
+ }>, {
21
+ icon: string | boolean;
22
+ size: import("vue").HTMLAttributes["class"];
23
+ alert: import("vue").HTMLAttributes["class"];
24
+ closable: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,58 @@
1
+ <script setup>
2
+ import { cn } from "../../utils";
3
+ defineOptions({
4
+ inheritAttrs: false
5
+ });
6
+ const props = defineProps({
7
+ size: { type: null, required: false },
8
+ class: { type: null, required: false },
9
+ una: { type: Object, required: false },
10
+ type: { type: String, required: false },
11
+ loadingPlacement: { type: String, required: false },
12
+ icon: { type: Boolean, required: false, default: true },
13
+ disabled: { type: Boolean, required: false },
14
+ reverse: { type: Boolean, required: false },
15
+ loading: { type: Boolean, required: false },
16
+ block: { type: Boolean, required: false },
17
+ to: { type: null, required: false },
18
+ label: { type: String, required: false, default: "alert-close-icon" },
19
+ btn: { type: String, required: false, default: "~" },
20
+ leading: { type: String, required: false },
21
+ trailing: { type: String, required: false },
22
+ square: { type: null, required: false, default: "1.4285714285714286em" },
23
+ rounded: { type: null, required: false },
24
+ breadcrumbActive: { type: String, required: false },
25
+ breadcrumbInactive: { type: String, required: false },
26
+ paginationSelected: { type: String, required: false },
27
+ paginationUnselected: { type: String, required: false },
28
+ dropdownMenu: { type: String, required: false },
29
+ toggleOn: { type: String, required: false },
30
+ toggleOff: { type: String, required: false },
31
+ tabsActive: { type: String, required: false },
32
+ tabsInactive: { type: String, required: false },
33
+ navigationMenu: { type: String, required: false },
34
+ navigationMenuLink: { type: String, required: false },
35
+ ariaLabel: { type: String, required: false }
36
+ });
37
+ </script>
38
+
39
+ <template>
40
+ <div
41
+ data-slot="alert-close-wrapper"
42
+ :class="cn(
43
+ 'alert-close-wrapper',
44
+ props.una?.alertCloseWrapper
45
+ )"
46
+ >
47
+ <slot>
48
+ <NButton
49
+ v-bind="{ ...props, ...$attrs }"
50
+ :size
51
+ :class="cn(
52
+ props.btn === '~' && 'text-current hover:ring-1 hover:ring-current',
53
+ props.class
54
+ )"
55
+ />
56
+ </slot>
57
+ </div>
58
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { NAlertCloseProps } from '../../types/index.js';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NAlertCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAlertCloseProps> & Readonly<{}>, {
7
+ icon: boolean;
8
+ label: string;
9
+ btn: string;
10
+ square: import("vue").HTMLAttributes["class"];
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { cn } from "../../utils";
3
+ const props = defineProps({
4
+ size: { type: null, required: false, default: "sm" },
5
+ class: { type: null, required: false },
6
+ una: { type: Object, required: false }
7
+ });
8
+ </script>
9
+
10
+ <template>
11
+ <div
12
+ data-slot="alert-description"
13
+ :size
14
+ :class="cn(
15
+ 'alert-description',
16
+ props.una?.alertDescription,
17
+ props.class
18
+ )"
19
+ >
20
+ <slot />
21
+ </div>
22
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { NAlertDescriptionProps } from '../../types/index.js';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NAlertDescriptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAlertDescriptionProps> & Readonly<{}>, {
7
+ size: import("vue").HTMLAttributes["class"];
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { cn } from "../../utils";
3
+ const props = defineProps({
4
+ size: { type: null, required: false, default: "sm" },
5
+ class: { type: null, required: false },
6
+ una: { type: Object, required: false }
7
+ });
8
+ </script>
9
+
10
+ <template>
11
+ <div
12
+ data-slot="alert-title"
13
+ :size
14
+ :class="cn(
15
+ 'alert-title',
16
+ props.una?.alertTitle,
17
+ props.class
18
+ )"
19
+ >
20
+ <slot />
21
+ </div>
22
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { NAlertTitleProps } from '../../types/index.js';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NAlertTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAlertTitleProps> & Readonly<{}>, {
7
+ size: import("vue").HTMLAttributes["class"];
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -26,7 +26,7 @@ const props = defineProps({
26
26
  una: { type: Object, required: false },
27
27
  open: { type: Boolean, required: false },
28
28
  defaultOpen: { type: Boolean, required: false },
29
- preventClose: { type: Boolean, required: false },
29
+ dismissible: { type: Boolean, required: false, default: true },
30
30
  overlay: { type: Boolean, required: false, default: true },
31
31
  _alertDialogCancel: { type: Object, required: false },
32
32
  _alertDialogAction: { type: Object, required: false },
@@ -61,7 +61,7 @@ const forwarded = useForwardPropsEmits(rootProps, emits);
61
61
  <AlertDialogContent
62
62
  v-bind="_alertDialogContent"
63
63
  :_alert-dialog-overlay
64
- :prevent-close
64
+ :dismissible
65
65
  :una
66
66
  >
67
67
  <VisuallyHidden v-if="title === DEFAULT_TITLE || !!$slots.title || (description === DEFAULT_DESCRIPTION || !!$slots.description)">
@@ -34,6 +34,7 @@ declare const __VLS_component: import("vue").DefineComponent<NAlertDialogProps,
34
34
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
35
35
  onAction?: ((args_0: Event) => any) | undefined;
36
36
  }>, {
37
+ dismissible: boolean;
37
38
  overlay: boolean;
38
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
40
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -15,7 +15,7 @@ const props = defineProps({
15
15
  block: { type: Boolean, required: false },
16
16
  to: { type: null, required: false },
17
17
  label: { type: String, required: false, default: "Cancel" },
18
- btn: { type: String, required: false, default: "solid-gray" },
18
+ btn: { type: String, required: false, default: "outline-gray" },
19
19
  leading: { type: String, required: false },
20
20
  trailing: { type: String, required: false },
21
21
  size: { type: String, required: false },
@@ -12,7 +12,7 @@ defineOptions({
12
12
  inheritAttrs: false
13
13
  });
14
14
  const props = defineProps({
15
- preventClose: { type: Boolean, required: false },
15
+ dismissible: { type: Boolean, required: false, default: true },
16
16
  overlay: { type: Boolean, required: false, default: true },
17
17
  _alertDialogCancel: { type: Object, required: false },
18
18
  _alertDialogAction: { type: Object, required: false },
@@ -29,7 +29,7 @@ const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside"
29
29
  const delegatedProps = reactiveOmit(props, ["class", "una", "_alertDialogOverlay"]);
30
30
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
31
31
  const contentEvents = computed(() => {
32
- if (props.preventClose) {
32
+ if (!props.dismissible) {
33
33
  return {
34
34
  pointerDownOutside: (e) => e.preventDefault(),
35
35
  interactOutside: (e) => e.preventDefault(),
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<NAlertDialogContent
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
20
  }>, {
21
+ dismissible: boolean;
21
22
  overlay: boolean;
22
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
24
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
7
7
  };
8
8
  declare const __VLS_component: import("vue").DefineComponent<NAspectRatioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAspectRatioProps> & Readonly<{}>, {
9
- aspectRatio: string;
10
9
  rounded: import("vue").HTMLAttributes["class"];
10
+ aspectRatio: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
13
  export default _default;
@@ -206,8 +206,9 @@ function isItemSelected(item) {
206
206
  <slot name="input-wrapper" :model-value :open>
207
207
  <ComboboxInput
208
208
  v-if="$slots.trigger || $slots.triggerRoot"
209
+ input="~"
209
210
  :class="cn(
210
- 'border-0 border-b-1 rounded-none text-1em focus-visible:ring-0',
211
+ 'border-b-1 rounded-none text-1em',
211
212
  props._comboboxInput?.class
212
213
  )"
213
214
  leading="combobox-input-leading-icon"
@@ -20,7 +20,7 @@ const props = defineProps({
20
20
  block: { type: Boolean, required: false },
21
21
  to: { type: null, required: false },
22
22
  label: { type: String, required: false },
23
- btn: { type: String, required: false, default: "solid-white" },
23
+ btn: { type: String, required: false, default: "outline-gray" },
24
24
  leading: { type: String, required: false },
25
25
  trailing: { type: String, required: false },
26
26
  size: { type: String, required: false },
@@ -10,6 +10,9 @@ type __VLS_Slots = {} & {
10
10
  trailing?: (props: typeof __VLS_37) => any;
11
11
  };
12
12
  declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NButtonProps> & Readonly<{}>, {
13
+ type: "button" | "submit" | "reset";
14
+ loadingPlacement: "leading" | "trailing" | "label";
15
+ size: string;
13
16
  una: {
14
17
  btnDefaultVariant?: string;
15
18
  btn?: string;
@@ -21,9 +24,6 @@ declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {
21
24
  btnLoadingIcon?: string;
22
25
  };
23
26
  rounded: import("vue").HTMLAttributes["class"];
24
- size: string;
25
- type: "button" | "submit" | "reset";
26
- loadingPlacement: "leading" | "trailing" | "label";
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
29
  export default _default;
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { cn } from "../../utils";
3
3
  const props = defineProps({
4
- skeleton: { type: null, required: false },
4
+ skeleton: { type: null, required: false, default: "gray" },
5
5
  size: { type: null, required: false },
6
6
  rounded: { type: null, required: false },
7
7
  una: { type: Object, required: false },
@@ -3,7 +3,9 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NSkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<NSkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSkeletonProps> & Readonly<{}>, {
7
+ skeleton: import("vue").HTMLAttributes["class"];
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
9
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
10
  export default _default;
9
11
  type __VLS_WithSlots<T, S> = T & {
@@ -42,22 +42,24 @@ const props = defineProps({
42
42
  v-bind="{ ..._avatarRoot, ...$attrs }"
43
43
  >
44
44
  <slot>
45
- <AvatarImage
46
- v-if="src"
47
- :src
45
+ <slot name="image">
46
+ <AvatarImage
47
+ v-if="src"
48
+ :src
49
+ :una
50
+ :alt
51
+ v-bind="_avatarImage"
52
+ />
53
+ </slot>
54
+
55
+ <AvatarFallback
56
+ :label="label || alt?.split(' ').map((word) => word[0]).join('').slice(0, 2)"
57
+ :icon
58
+ v-bind="_avatarFallback"
48
59
  :una
49
- :alt
50
- v-bind="_avatarImage"
51
- />
60
+ >
61
+ <slot name="fallback" />
62
+ </AvatarFallback>
52
63
  </slot>
53
-
54
- <AvatarFallback
55
- :label="label || alt?.split(' ').map((word) => word[0]).join('').slice(0, 2)"
56
- :icon
57
- v-bind="_avatarFallback"
58
- :una
59
- >
60
- <slot name="fallback" />
61
- </AvatarFallback>
62
64
  </AvatarRoot>
63
65
  </template>
@@ -1,15 +1,17 @@
1
1
  import type { NAvatarProps } from '../../../types/index.js';
2
- declare var __VLS_6: {}, __VLS_14: {};
2
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_16: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  } & {
6
- fallback?: (props: typeof __VLS_14) => any;
6
+ image?: (props: typeof __VLS_8) => any;
7
+ } & {
8
+ fallback?: (props: typeof __VLS_16) => any;
7
9
  };
8
10
  declare const __VLS_component: import("vue").DefineComponent<NAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAvatarProps> & Readonly<{}>, {
9
- as: import("reka-ui").AsTag | import("vue").Component;
10
- rounded: import("vue").HTMLAttributes["class"];
11
11
  size: import("vue").HTMLAttributes["class"];
12
12
  square: import("vue").HTMLAttributes["class"];
13
+ rounded: import("vue").HTMLAttributes["class"];
14
+ as: import("reka-ui").AsTag | import("vue").Component;
13
15
  avatar: import("vue").HTMLAttributes["class"];
14
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
17
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { reactiveOmit } from "@vueuse/core";
3
3
  import { cn } from "../../../utils";
4
+ import CardAction from "./CardAction.vue";
4
5
  import CardContent from "./CardContent.vue";
5
6
  import CardDescription from "./CardDescription.vue";
6
7
  import CardFooter from "./CardFooter.vue";
@@ -10,7 +11,7 @@ defineOptions({
10
11
  inheritAttrs: false
11
12
  });
12
13
  const props = defineProps({
13
- card: { type: String, required: false, default: "outline-gray" },
14
+ card: { type: String, required: false, default: "solid-gray" },
14
15
  title: { type: String, required: false },
15
16
  description: { type: String, required: false },
16
17
  _cardContent: { type: Object, required: false },
@@ -18,6 +19,7 @@ const props = defineProps({
18
19
  _cardDescription: { type: Object, required: false },
19
20
  _cardHeader: { type: Object, required: false },
20
21
  _cardFooter: { type: Object, required: false },
22
+ _cardAction: { type: Object, required: false },
21
23
  una: { type: Object, required: false },
22
24
  class: { type: null, required: false }
23
25
  });
@@ -26,6 +28,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
26
28
 
27
29
  <template>
28
30
  <div
31
+ data-slot="card"
29
32
  v-bind="{ ...$attrs, delegatedProps }"
30
33
  :card="card"
31
34
  :class="cn(
@@ -33,7 +36,7 @@ const delegatedProps = reactiveOmit(props, ["class"]);
33
36
  props.class
34
37
  )"
35
38
  >
36
- <slot name="root">
39
+ <slot>
37
40
  <CardHeader
38
41
  v-if="$slots.header || $slots.title || $slots.description || title || description"
39
42
  v-bind="delegatedProps._cardHeader"
@@ -59,15 +62,23 @@ const delegatedProps = reactiveOmit(props, ["class"]);
59
62
  {{ description }}
60
63
  </slot>
61
64
  </CardDescription>
65
+
66
+ <CardAction
67
+ v-if="$slots.action"
68
+ v-bind="delegatedProps._cardAction"
69
+ :una
70
+ >
71
+ <slot name="action" />
72
+ </CardAction>
62
73
  </slot>
63
74
  </CardHeader>
64
75
 
65
76
  <CardContent
66
- v-if="$slots.default"
77
+ v-if="$slots.content"
67
78
  v-bind="delegatedProps._cardContent"
68
79
  :una
69
80
  >
70
- <slot />
81
+ <slot name="content" />
71
82
  </CardContent>
72
83
 
73
84
  <CardFooter
@@ -1,7 +1,7 @@
1
1
  import type { NCardProps } from '../../../types/card.js';
2
- declare var __VLS_1: {}, __VLS_6: {}, __VLS_11: {}, __VLS_16: {}, __VLS_21: {}, __VLS_26: {};
2
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_11: {}, __VLS_16: {}, __VLS_21: {}, __VLS_26: {}, __VLS_31: {};
3
3
  type __VLS_Slots = {} & {
4
- root?: (props: typeof __VLS_1) => any;
4
+ default?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
6
  header?: (props: typeof __VLS_6) => any;
7
7
  } & {
@@ -9,9 +9,11 @@ type __VLS_Slots = {} & {
9
9
  } & {
10
10
  description?: (props: typeof __VLS_16) => any;
11
11
  } & {
12
- default?: (props: typeof __VLS_21) => any;
12
+ action?: (props: typeof __VLS_21) => any;
13
13
  } & {
14
- footer?: (props: typeof __VLS_26) => any;
14
+ content?: (props: typeof __VLS_26) => any;
15
+ } & {
16
+ footer?: (props: typeof __VLS_31) => any;
15
17
  };
16
18
  declare const __VLS_component: import("vue").DefineComponent<NCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NCardProps> & Readonly<{}>, {
17
19
  card: string;
@@ -0,0 +1,19 @@
1
+ <script setup>
2
+ import { cn } from "../../../utils";
3
+ const props = defineProps({
4
+ una: { type: Object, required: false },
5
+ class: { type: null, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <div
11
+ data-slot="card-action"
12
+ :class="cn(
13
+ 'card-action',
14
+ props.class
15
+ )"
16
+ >
17
+ <slot />
18
+ </div>
19
+ </template>