@shwfed/nuxt 0.11.54 → 0.11.55

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": "@shwfed/nuxt",
3
3
  "configKey": "shwfed",
4
- "version": "0.11.54",
4
+ "version": "0.11.55",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -101,7 +101,8 @@ const module$1 = defineNuxtModule({
101
101
  addComponentsDir({
102
102
  path: resolver.resolve(`runtime/components/ui/${dir}`),
103
103
  prefix: "Ui",
104
- pathPrefix: false
104
+ pathPrefix: false,
105
+ extensions: ["vue"]
105
106
  });
106
107
  }
107
108
  addComponent({
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  breakpoint?: string;
5
5
  showCloseButton?: boolean;
6
6
  dismissible?: boolean;
7
+ width?: string;
7
8
  };
8
9
  declare function close(): void;
9
10
  declare var __VLS_14: {
@@ -29,7 +29,8 @@ const props = defineProps({
29
29
  defaultOpen: { type: Boolean, required: false, default: false },
30
30
  breakpoint: { type: String, required: false, default: "(min-width: 640px)" },
31
31
  showCloseButton: { type: Boolean, required: false, default: true },
32
- dismissible: { type: Boolean, required: false, default: true }
32
+ dismissible: { type: Boolean, required: false, default: true },
33
+ width: { type: String, required: false }
33
34
  });
34
35
  const emit = defineEmits(["update:open", "after-close"]);
35
36
  const attrs = useAttrs();
@@ -98,6 +99,7 @@ function close() {
98
99
  <component
99
100
  :is="modalComponents.Content"
100
101
  v-bind="attrs"
102
+ :style="isDesktop && props.width ? { maxWidth: props.width } : void 0"
101
103
  :show-close-button="props.showCloseButton"
102
104
  @after-close="emit('after-close')"
103
105
  >
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  breakpoint?: string;
5
5
  showCloseButton?: boolean;
6
6
  dismissible?: boolean;
7
+ width?: string;
7
8
  };
8
9
  declare function close(): void;
9
10
  declare var __VLS_14: {
@@ -53,7 +53,8 @@ const renderedSessions = computed(() => {
53
53
  description: session.shell.description,
54
54
  showCloseButton: session.shell.showCloseButton,
55
55
  breakpoint: session.shell.breakpoint,
56
- dismissible: session.shell.dismissible
56
+ dismissible: session.shell.dismissible,
57
+ width: session.shell.width
57
58
  },
58
59
  descriptionSrOnly: session.shell.descriptionSrOnly,
59
60
  props: session.props,
@@ -75,6 +76,7 @@ const renderedSessions = computed(() => {
75
76
  :breakpoint="session.shell.breakpoint"
76
77
  :show-close-button="session.shell.showCloseButton"
77
78
  :dismissible="session.shell.dismissible"
79
+ :width="session.shell.width"
78
80
  @update:open="handleOpenUpdate(session.sessionId, $event)"
79
81
  @after-close="handleAfterClose(session.sessionId)"
80
82
  >
@@ -7,6 +7,7 @@ export type OverlayShellProps = Readonly<{
7
7
  showCloseButton?: boolean;
8
8
  breakpoint?: string;
9
9
  dismissible?: boolean;
10
+ width?: string;
10
11
  }>;
11
12
  export type OverlayBodyProps = Readonly<Record<string, unknown>>;
12
13
  export type OverlaySessionInput = Readonly<{
@@ -176,7 +176,8 @@ function createOverlayRuntime() {
176
176
  descriptionSrOnly,
177
177
  showCloseButton: options?.shell?.showCloseButton ?? definitionShell?.showCloseButton,
178
178
  breakpoint: options?.shell?.breakpoint ?? definitionShell?.breakpoint,
179
- dismissible: options?.shell?.dismissible ?? definitionShell?.dismissible
179
+ dismissible: options?.shell?.dismissible ?? definitionShell?.dismissible,
180
+ width: options?.shell?.width ?? definitionShell?.width
180
181
  },
181
182
  props: {
182
183
  ...options?.props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
- "version": "0.11.54",
3
+ "version": "0.11.55",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",