@una-ui/nuxt-edge 1.0.0-alpha.0-29175673.d3dde76 → 1.0.0-alpha.0-29176511.c6828ac

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": "@una-ui/nuxt-edge",
3
3
  "configKey": "una",
4
- "version": "1.0.0-alpha.0-29175673.d3dde76",
4
+ "version": "1.0.0-alpha.0-29176511.c6828ac",
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-edge";
11
- const version = "1.0.0-alpha.0-29175673.d3dde76";
11
+ const version = "1.0.0-alpha.0-29176511.c6828ac";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -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>;
@@ -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>;
@@ -24,8 +24,8 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogProps, {}, {
24
24
  }, string, import("vue").PublicProps, Readonly<NDialogProps> & Readonly<{
25
25
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
26
26
  }>, {
27
- overlay: boolean;
28
27
  dismissible: boolean;
28
+ overlay: boolean;
29
29
  showClose: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -18,8 +18,8 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
20
  }>, {
21
- overlay: boolean;
22
21
  dismissible: boolean;
22
+ overlay: boolean;
23
23
  showClose: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -18,8 +18,8 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
20
  }>, {
21
- overlay: boolean;
22
21
  dismissible: boolean;
22
+ overlay: boolean;
23
23
  showClose: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -26,8 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<NSheetProps, {}, {}
26
26
  }, string, import("vue").PublicProps, Readonly<NSheetProps> & Readonly<{
27
27
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
28
  }>, {
29
- overlay: boolean;
30
29
  dismissible: boolean;
30
+ overlay: boolean;
31
31
  showClose: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,7 +1,7 @@
1
1
  import type { AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogOverlayProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps } from 'reka-ui';
2
2
  import type { HTMLAttributes } from 'vue';
3
3
  import type { NButtonProps } from './button.js';
4
- export interface NAlertDialogProps extends AlertDialogProps, Pick<NAlertDialogContentProps, 'preventClose' | 'overlay' | '_alertDialogCancel' | '_alertDialogAction' | '_alertDialogOverlay'> {
4
+ export interface NAlertDialogProps extends AlertDialogProps, Pick<NAlertDialogContentProps, 'dismissible' | 'overlay' | '_alertDialogCancel' | '_alertDialogAction' | '_alertDialogOverlay'> {
5
5
  /**
6
6
  * The title of the dialog.
7
7
  */
@@ -40,7 +40,7 @@ export interface NAlertDialogContentProps extends AlertDialogContentProps, BaseE
40
40
  *
41
41
  * @default true
42
42
  */
43
- preventClose?: boolean;
43
+ dismissible?: boolean;
44
44
  /**
45
45
  * Show overlay.
46
46
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt-edge",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.0-29175673.d3dde76",
4
+ "version": "1.0.0-alpha.0-29176511.c6828ac",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -41,8 +41,8 @@
41
41
  "@nuxt/kit": "^3.17.5",
42
42
  "@nuxtjs/color-mode": "^3.5.2",
43
43
  "@tanstack/vue-table": "^8.21.3",
44
- "@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@1.0.0-alpha.0-29175673.d3dde76",
45
- "@una-ui/preset": "npm:@una-ui/preset-edge@1.0.0-alpha.0-29175673.d3dde76",
44
+ "@una-ui/extractor-vue-script": "npm:@una-ui/extractor-vue-script-edge@1.0.0-alpha.0-29176511.c6828ac",
45
+ "@una-ui/preset": "npm:@una-ui/preset-edge@1.0.0-alpha.0-29176511.c6828ac",
46
46
  "@unocss/core": "^66.2.0",
47
47
  "@unocss/nuxt": "^66.2.0",
48
48
  "@unocss/preset-attributify": "^66.2.0",