@3squared/forge-ui-3 0.12.1 → 0.13.0

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.
@@ -1133,6 +1133,7 @@ const bt = { key: 0 }, ft = {
1133
1133
  onConfirm: { type: [Function, null], default: null },
1134
1134
  submitButtonType: { default: "button" },
1135
1135
  cancelButtonType: { default: "button" },
1136
+ size: { default: "md" },
1136
1137
  header: { default: "Header" },
1137
1138
  footer: {},
1138
1139
  visible: { type: Boolean },
@@ -1196,7 +1197,10 @@ const bt = { key: 0 }, ft = {
1196
1197
  root: [
1197
1198
  "modal modal-dialog modal-content h-auto m-0",
1198
1199
  {
1199
- "mw-100 vh-100 vw-100 top-0 start-0": a.value
1200
+ "mw-100 vh-100 vw-100 top-0 start-0": a.value,
1201
+ "modal-sm": o.size === "sm",
1202
+ "modal-lg": o.size === "lg",
1203
+ "modal-xl": o.size === "xl"
1200
1204
  }
1201
1205
  ]
1202
1206
  }));
@@ -1,4 +1,5 @@
1
1
  import { DialogPassThroughOptions, DialogProps, DialogSlots } from 'primevue/dialog';
2
+ import { Size } from '../types/forge-types.ts';
2
3
 
3
4
  export interface ForgeModalProps extends DialogProps {
4
5
  cancelText?: string;
@@ -7,6 +8,7 @@ export interface ForgeModalProps extends DialogProps {
7
8
  onConfirm?: Function | null;
8
9
  submitButtonType?: 'button' | 'reset' | 'submit';
9
10
  cancelButtonType?: 'button' | 'reset' | 'submit';
11
+ size?: Size | 'xl';
10
12
  }
11
13
  declare function __VLS_template(): Partial<Record<NonNullable<keyof DialogSlots>, (_: any) => any>> & {
12
14
  loader?(_: {}): any;
@@ -19,6 +21,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
19
21
  style: {
20
22
  type: import('vue').PropType<any>;
21
23
  };
24
+ size: {
25
+ type: import('vue').PropType<"sm" | "md" | "lg" | "xl">;
26
+ default: string;
27
+ };
22
28
  pt: {
23
29
  type: import('vue').PropType<object | DialogPassThroughOptions<any>>;
24
30
  };
@@ -139,6 +145,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
139
145
  style: {
140
146
  type: import('vue').PropType<any>;
141
147
  };
148
+ size: {
149
+ type: import('vue').PropType<"sm" | "md" | "lg" | "xl">;
150
+ default: string;
151
+ };
142
152
  pt: {
143
153
  type: import('vue').PropType<object | DialogPassThroughOptions<any>>;
144
154
  };
@@ -252,6 +262,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
252
262
  type: import('vue').PropType<string>;
253
263
  };
254
264
  }>>, {
265
+ size: "sm" | "md" | "lg" | "xl";
255
266
  closable: boolean;
256
267
  header: string;
257
268
  submitText: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@3squared/forge-ui-3",
3
3
  "repository": "https://github.com/3Squared/ForgeUI-3",
4
4
  "description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
5
- "version": "0.12.1",
5
+ "version": "0.13.0",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "contributors": [