@onereach/ui-components 2.67.0 → 2.67.1-beta.1985.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.
Files changed (46) hide show
  1. package/dist/bundled/v2/{OrConfirm-bd862fdc.js → OrConfirm-b18c2ef4.js} +13 -0
  2. package/dist/bundled/v2/{OrModal-eedde1b4.js → OrModal-55fe6ad6.js} +13 -0
  3. package/dist/bundled/v2/components/index.js +2 -2
  4. package/dist/bundled/v2/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
  5. package/dist/bundled/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
  6. package/dist/bundled/v2/components/or-confirm-v3/index.js +1 -1
  7. package/dist/bundled/v2/components/or-modal-v3/OrModal.stories3.d.ts +5 -0
  8. package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +11 -0
  9. package/dist/bundled/v2/components/or-modal-v3/index.js +1 -1
  10. package/dist/bundled/v2/index.js +2 -2
  11. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-84a04cfd.js → OrConfirm.vue_vue_type_script_lang-25aa633b.js} +13 -0
  12. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-a3a4e6ce.js → OrModal.vue_vue_type_script_lang-86c2d8d6.js} +13 -0
  13. package/dist/bundled/v3/components/index.js +2 -2
  14. package/dist/bundled/v3/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
  15. package/dist/bundled/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
  16. package/dist/bundled/v3/components/or-confirm-v3/index.js +1 -1
  17. package/dist/bundled/v3/components/or-modal-v3/OrModal.stories3.d.ts +5 -0
  18. package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +11 -0
  19. package/dist/bundled/v3/components/or-modal-v3/index.js +1 -1
  20. package/dist/bundled/v3/index.js +4 -4
  21. package/dist/esm/v2/{OrConfirm-7afbef04.js → OrConfirm-cd42379c.js} +13 -0
  22. package/dist/esm/v2/{OrModal-a7b04967.js → OrModal-b40d9a17.js} +13 -0
  23. package/dist/esm/v2/components/index.js +2 -2
  24. package/dist/esm/v2/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
  25. package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
  26. package/dist/esm/v2/components/or-confirm-v3/index.js +1 -1
  27. package/dist/esm/v2/components/or-modal-v3/OrModal.stories3.d.ts +5 -0
  28. package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +11 -0
  29. package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
  30. package/dist/esm/v2/index.js +2 -2
  31. package/dist/esm/v3/{OrConfirm-4efec964.js → OrConfirm-1d4be431.js} +13 -0
  32. package/dist/esm/v3/{OrModal-892d7155.js → OrModal-794ff3f6.js} +13 -0
  33. package/dist/esm/v3/components/index.js +2 -2
  34. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.stories3.d.ts +5 -0
  35. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +11 -0
  36. package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
  37. package/dist/esm/v3/components/or-modal-v3/OrModal.stories3.d.ts +5 -0
  38. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +11 -0
  39. package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
  40. package/dist/esm/v3/index.js +2 -2
  41. package/package.json +2 -3
  42. package/src/components/or-confirm-v3/OrConfirm.stories3.ts +68 -0
  43. package/src/components/or-confirm-v3/OrConfirm.vue +12 -0
  44. package/src/components/or-modal-v3/OrModal.docs.mdx +1 -1
  45. package/src/components/or-modal-v3/OrModal.stories3.ts +72 -0
  46. package/src/components/or-modal-v3/OrModal.vue +12 -0
@@ -108,6 +108,10 @@ var script = defineComponent({
108
108
  type: String,
109
109
  required: false,
110
110
  default: null
111
+ },
112
+ isOpen: {
113
+ type: Boolean,
114
+ default: false
111
115
  }
112
116
  },
113
117
  emits: ['open', 'close', 'confirm'],
@@ -152,6 +156,15 @@ var script = defineComponent({
152
156
  }
153
157
  // Events
154
158
  watch(isActive, value => emit(value ? 'open' : 'close'));
159
+ watch(() => props.isOpen, newIsOpen => {
160
+ if (newIsOpen) {
161
+ open();
162
+ } else {
163
+ close();
164
+ }
165
+ }, {
166
+ immediate: true
167
+ });
155
168
  watch(escape, val => {
156
169
  if (val) close();
157
170
  });
@@ -54,6 +54,10 @@ var script = defineComponent({
54
54
  size: {
55
55
  type: String,
56
56
  default: ModalSize.M
57
+ },
58
+ isOpen: {
59
+ type: Boolean,
60
+ default: false
57
61
  }
58
62
  },
59
63
  emits: ['open', 'close'],
@@ -72,6 +76,15 @@ var script = defineComponent({
72
76
  watch(isActive, value => {
73
77
  context.emit(value ? 'open' : 'close');
74
78
  });
79
+ watch(() => props.isOpen, newIsOpen => {
80
+ if (newIsOpen) {
81
+ open();
82
+ } else {
83
+ close();
84
+ }
85
+ }, {
86
+ immediate: true
87
+ });
75
88
  // Methods
76
89
  function open() {
77
90
  isActive.value = true;
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-edc7a1f5.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-a1a37e83.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-bd862fdc.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-b18c2ef4.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
24
24
  export { O as OrError } from '../OrError-31503e4c.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-c55ec019.js';
@@ -52,7 +52,7 @@ export { O as OrMenuItemV3 } from '../OrMenuItem-1360f2e7.js';
52
52
  export { O as OrMenuV3 } from '../OrMenu-2f8555ac.js';
53
53
  export { P as MenuPlacement, O as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-cf702ae7.js';
54
54
  export { O as OrModal, a as OrModalSizes } from '../OrModal-a5411b0d.js';
55
- export { M as ModalSize, _ as OrModalV3 } from '../OrModal-eedde1b4.js';
55
+ export { M as ModalSize, _ as OrModalV3 } from '../OrModal-55fe6ad6.js';
56
56
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-3909aaf2.js';
57
57
  export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-13259dff.js';
58
58
  export { _ as OrOverflowMenu } from '../OrOverflowMenu-711e460e.js';
@@ -35,3 +35,8 @@ export declare const ConfirmButtonColor: StoryFn<import("vue").ComponentOptions<
35
35
  } | string[], {} & {}, {
36
36
  [x: number]: string;
37
37
  } | {}, true>)>;
38
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
39
+ [x: string]: ((...args: any[]) => any) | null;
40
+ } | string[], {} & {}, {
41
+ [x: number]: string;
42
+ } | {}, true>)>;
@@ -82,6 +82,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
82
82
  required: false;
83
83
  default: null;
84
84
  };
85
+ isOpen: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  }, import("@vue/composition-api").ExtractPropTypes<{
86
90
  titleText: {
87
91
  type: StringConstructor;
@@ -133,6 +137,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
133
137
  required: false;
134
138
  default: null;
135
139
  };
140
+ isOpen: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
136
144
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
137
145
  titleText: string;
138
146
  confirmButtonText: string;
@@ -144,6 +152,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
144
152
  textConfirmationLabel: string;
145
153
  textConfirmationPlaceholder: string;
146
154
  textConfirmationError: string;
155
+ isOpen: boolean;
147
156
  } & {} & {
148
157
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
149
158
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -187,6 +196,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
187
196
  textConfirmationLabel: string;
188
197
  textConfirmationPlaceholder: string;
189
198
  textConfirmationError: string;
199
+ isOpen: boolean;
190
200
  } & {} & {
191
201
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
192
202
  }, {
@@ -200,5 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
200
210
  textConfirmationLabel: string;
201
211
  textConfirmationPlaceholder: string;
202
212
  textConfirmationError: string;
213
+ isOpen: boolean;
203
214
  }, true>);
204
215
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-bd862fdc.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-b18c2ef4.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -10,3 +10,8 @@ export declare const Modal: StoryFn<import("vue").ComponentOptions<import("vue")
10
10
  } | string[], {} & {}, {
11
11
  [x: number]: string;
12
12
  } | {}, true>)>;
13
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
14
+ [x: string]: ((...args: any[]) => any) | null;
15
+ } | string[], {} & {}, {
16
+ [x: number]: string;
17
+ } | {}, true>)>;
@@ -13,13 +13,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
13
13
  type: PropType<ModalSize>;
14
14
  default: ModalSize;
15
15
  };
16
+ isOpen: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
16
20
  }, import("@vue/composition-api").ExtractPropTypes<{
17
21
  size: {
18
22
  type: PropType<ModalSize>;
19
23
  default: ModalSize;
20
24
  };
25
+ isOpen: {
26
+ type: PropType<boolean>;
27
+ default: boolean;
28
+ };
21
29
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
22
30
  size: ModalSize;
31
+ isOpen: boolean;
23
32
  } & {} & {
24
33
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
25
34
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -32,9 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
41
  close: () => void;
33
42
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
34
43
  size: ModalSize;
44
+ isOpen: boolean;
35
45
  } & {} & {
36
46
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
37
47
  }, {
38
48
  size: ModalSize;
49
+ isOpen: boolean;
39
50
  }, true>);
40
51
  export default _default;
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-eedde1b4.js';
1
+ export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-55fe6ad6.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -24,7 +24,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-edc7a1f5.js';
24
24
  export { O as OrCollapse } from './OrCollapse-3aa9a9b7.js';
25
25
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-a1a37e83.js';
26
26
  export { _ as OrConfirm } from './OrConfirm-56d01cff.js';
27
- export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-bd862fdc.js';
27
+ export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-b18c2ef4.js';
28
28
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-e212f892.js';
29
29
  export { O as OrError } from './OrError-31503e4c.js';
30
30
  export { _ as OrErrorTagV3 } from './OrErrorTag-c55ec019.js';
@@ -57,7 +57,7 @@ export { O as OrMenuItemV3 } from './OrMenuItem-1360f2e7.js';
57
57
  export { O as OrMenuV3 } from './OrMenu-2f8555ac.js';
58
58
  export { P as MenuPlacement, O as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-cf702ae7.js';
59
59
  export { O as OrModal, a as OrModalSizes } from './OrModal-a5411b0d.js';
60
- export { M as ModalSize, _ as OrModalV3 } from './OrModal-eedde1b4.js';
60
+ export { M as ModalSize, _ as OrModalV3 } from './OrModal-55fe6ad6.js';
61
61
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-3909aaf2.js';
62
62
  export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-13259dff.js';
63
63
  export { _ as OrOverflowMenu } from './OrOverflowMenu-711e460e.js';
@@ -139,6 +139,10 @@ var script = defineComponent({
139
139
  type: String,
140
140
  required: false,
141
141
  default: null
142
+ },
143
+ isOpen: {
144
+ type: Boolean,
145
+ default: false
142
146
  }
143
147
  },
144
148
  emits: ['open', 'close', 'confirm'],
@@ -183,6 +187,15 @@ var script = defineComponent({
183
187
  }
184
188
  // Events
185
189
  watch(isActive, value => emit(value ? 'open' : 'close'));
190
+ watch(() => props.isOpen, newIsOpen => {
191
+ if (newIsOpen) {
192
+ open();
193
+ } else {
194
+ close();
195
+ }
196
+ }, {
197
+ immediate: true
198
+ });
186
199
  watch(escape, val => {
187
200
  if (val) close();
188
201
  });
@@ -54,6 +54,10 @@ var script = defineComponent({
54
54
  size: {
55
55
  type: String,
56
56
  default: ModalSize.M
57
+ },
58
+ isOpen: {
59
+ type: Boolean,
60
+ default: false
57
61
  }
58
62
  },
59
63
  emits: ['open', 'close'],
@@ -72,6 +76,15 @@ var script = defineComponent({
72
76
  watch(isActive, value => {
73
77
  context.emit(value ? 'open' : 'close');
74
78
  });
79
+ watch(() => props.isOpen, newIsOpen => {
80
+ if (newIsOpen) {
81
+ open();
82
+ } else {
83
+ close();
84
+ }
85
+ }, {
86
+ immediate: true
87
+ });
75
88
  // Methods
76
89
  function open() {
77
90
  isActive.value = true;
@@ -19,7 +19,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
22
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-84a04cfd.js';
22
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-25aa633b.js';
23
23
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
24
24
  export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
25
25
  export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-d77f6b12.js';
@@ -52,7 +52,7 @@ export { s as OrMenuItemV3 } from '../OrMenuItem.vue_vue_type_script_lang-837c00
52
52
  export { s as OrMenuV3 } from '../OrMenu.vue_vue_type_script_lang-ae4e9c15.js';
53
53
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover.vue_vue_type_script_lang-b6b78855.js';
54
54
  export { s as OrModal, O as OrModalSizes } from '../OrModal.vue_vue_type_script_lang-a1ed2ebb.js';
55
- export { M as ModalSize, s as OrModalV3 } from '../OrModal.vue_vue_type_script_lang-a3a4e6ce.js';
55
+ export { M as ModalSize, s as OrModalV3 } from '../OrModal.vue_vue_type_script_lang-86c2d8d6.js';
56
56
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification.vue_vue_type_script_lang-07163a83.js';
57
57
  export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification.vue_vue_type_script_lang-1f1b88b2.js';
58
58
  export { s as OrOverflowMenu } from '../OrOverflowMenu.vue_vue_type_script_lang-0397533d.js';
@@ -35,3 +35,8 @@ export declare const ConfirmButtonColor: StoryFn<import("vue").ComponentOptions<
35
35
  } | string[], {} & {}, {
36
36
  [x: number]: string;
37
37
  } | {}, true>)>;
38
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
39
+ [x: string]: ((...args: any[]) => any) | null;
40
+ } | string[], {} & {}, {
41
+ [x: number]: string;
42
+ } | {}, true>)>;
@@ -82,6 +82,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
82
82
  required: false;
83
83
  default: null;
84
84
  };
85
+ isOpen: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  }, import("@vue/composition-api").ExtractPropTypes<{
86
90
  titleText: {
87
91
  type: StringConstructor;
@@ -133,6 +137,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
133
137
  required: false;
134
138
  default: null;
135
139
  };
140
+ isOpen: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
136
144
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
137
145
  titleText: string;
138
146
  confirmButtonText: string;
@@ -144,6 +152,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
144
152
  textConfirmationLabel: string;
145
153
  textConfirmationPlaceholder: string;
146
154
  textConfirmationError: string;
155
+ isOpen: boolean;
147
156
  } & {} & {
148
157
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
149
158
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -187,6 +196,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
187
196
  textConfirmationLabel: string;
188
197
  textConfirmationPlaceholder: string;
189
198
  textConfirmationError: string;
199
+ isOpen: boolean;
190
200
  } & {} & {
191
201
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
192
202
  }, {
@@ -200,5 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
200
210
  textConfirmationLabel: string;
201
211
  textConfirmationPlaceholder: string;
202
212
  textConfirmationError: string;
213
+ isOpen: boolean;
203
214
  }, true>);
204
215
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-84a04cfd.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-25aa633b.js';
2
2
  import 'vue';
3
3
  import '@vueuse/core';
4
4
  import '../../index-01519e46.js';
@@ -10,3 +10,8 @@ export declare const Modal: StoryFn<import("vue").ComponentOptions<import("vue")
10
10
  } | string[], {} & {}, {
11
11
  [x: number]: string;
12
12
  } | {}, true>)>;
13
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
14
+ [x: string]: ((...args: any[]) => any) | null;
15
+ } | string[], {} & {}, {
16
+ [x: number]: string;
17
+ } | {}, true>)>;
@@ -13,13 +13,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
13
13
  type: PropType<ModalSize>;
14
14
  default: ModalSize;
15
15
  };
16
+ isOpen: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
16
20
  }, import("@vue/composition-api").ExtractPropTypes<{
17
21
  size: {
18
22
  type: PropType<ModalSize>;
19
23
  default: ModalSize;
20
24
  };
25
+ isOpen: {
26
+ type: PropType<boolean>;
27
+ default: boolean;
28
+ };
21
29
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
22
30
  size: ModalSize;
31
+ isOpen: boolean;
23
32
  } & {} & {
24
33
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
25
34
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -32,9 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
41
  close: () => void;
33
42
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
34
43
  size: ModalSize;
44
+ isOpen: boolean;
35
45
  } & {} & {
36
46
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
37
47
  }, {
38
48
  size: ModalSize;
49
+ isOpen: boolean;
39
50
  }, true>);
40
51
  export default _default;
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, s as OrModalV3 } from '../../OrModal.vue_vue_type_script_lang-a3a4e6ce.js';
1
+ export { M as ModalSize, s as OrModalV3 } from '../../OrModal.vue_vue_type_script_lang-86c2d8d6.js';
2
2
  import 'vue';
3
3
  import '../../OrBottomSheet.vue_vue_type_script_lang-9b8931d3.js';
4
4
  import '@vueuse/core';
@@ -13,8 +13,8 @@ import './OrButton-ec723bb7.js';
13
13
  export { s as OrButtonV2 } from './OrButton.vue_vue_type_script_lang-ffc66d00.js';
14
14
  import './OrIconButton-e637158e.js';
15
15
  export { s as OrIconButton } from './OrIconButton.vue_vue_type_script_lang-40547ab0.js';
16
- import { s as script$c } from './OrConfirm.vue_vue_type_script_lang-84a04cfd.js';
17
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm.vue_vue_type_script_lang-84a04cfd.js';
16
+ import { s as script$c } from './OrConfirm.vue_vue_type_script_lang-25aa633b.js';
17
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm.vue_vue_type_script_lang-25aa633b.js';
18
18
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton.vue_vue_type_script_lang-8cc3e128.js';
19
19
  import { s as script$6 } from './OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
20
20
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
@@ -65,8 +65,8 @@ export { s as OrMenuItemV3 } from './OrMenuItem.vue_vue_type_script_lang-837c00e
65
65
  import { s as script$L } from './OrTabs.vue_vue_type_script_lang-ed590ff8.js';
66
66
  export { s as OrTabsV3, T as TabsVariant } from './OrTabs.vue_vue_type_script_lang-ed590ff8.js';
67
67
  export { s as OrMenuV3 } from './OrMenu.vue_vue_type_script_lang-ae4e9c15.js';
68
- import { s as script$l } from './OrModal.vue_vue_type_script_lang-a3a4e6ce.js';
69
- export { M as ModalSize, s as OrModalV3 } from './OrModal.vue_vue_type_script_lang-a3a4e6ce.js';
68
+ import { s as script$l } from './OrModal.vue_vue_type_script_lang-86c2d8d6.js';
69
+ export { M as ModalSize, s as OrModalV3 } from './OrModal.vue_vue_type_script_lang-86c2d8d6.js';
70
70
  import { s as script$m } from './OrNotification.vue_vue_type_script_lang-07163a83.js';
71
71
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification.vue_vue_type_script_lang-07163a83.js';
72
72
  import { s as script$n } from './OrNotification.vue_vue_type_script_lang-1f1b88b2.js';
@@ -107,6 +107,10 @@ var script = defineComponent({
107
107
  type: String,
108
108
  required: false,
109
109
  default: null
110
+ },
111
+ isOpen: {
112
+ type: Boolean,
113
+ default: false
110
114
  }
111
115
  },
112
116
  emits: ['open', 'close', 'confirm'],
@@ -151,6 +155,15 @@ var script = defineComponent({
151
155
  }
152
156
  // Events
153
157
  watch(isActive, value => emit(value ? 'open' : 'close'));
158
+ watch(() => props.isOpen, newIsOpen => {
159
+ if (newIsOpen) {
160
+ open();
161
+ } else {
162
+ close();
163
+ }
164
+ }, {
165
+ immediate: true
166
+ });
154
167
  watch(escape, val => {
155
168
  if (val) close();
156
169
  });
@@ -54,6 +54,10 @@ var script = defineComponent({
54
54
  size: {
55
55
  type: String,
56
56
  default: ModalSize.M
57
+ },
58
+ isOpen: {
59
+ type: Boolean,
60
+ default: false
57
61
  }
58
62
  },
59
63
  emits: ['open', 'close'],
@@ -72,6 +76,15 @@ var script = defineComponent({
72
76
  watch(isActive, value => {
73
77
  context.emit(value ? 'open' : 'close');
74
78
  });
79
+ watch(() => props.isOpen, newIsOpen => {
80
+ if (newIsOpen) {
81
+ open();
82
+ } else {
83
+ close();
84
+ }
85
+ }, {
86
+ immediate: true
87
+ });
75
88
  // Methods
76
89
  function open() {
77
90
  isActive.value = true;
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-41dd5f9b.js';
19
19
  export { _ as OrCollapse } from '../OrCollapse-4d892ca3.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-75abefdd.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-d7112dd3.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-7afbef04.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-cd42379c.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-349df9b2.js';
24
24
  export { _ as OrError } from '../OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-c14e0298.js';
@@ -52,7 +52,7 @@ export { _ as OrMenuItemV3 } from '../OrMenuItem-9034aece.js';
52
52
  export { _ as OrMenuV3 } from '../OrMenu-bb81644d.js';
53
53
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-9080fc00.js';
54
54
  export { _ as OrModal, O as OrModalSizes } from '../OrModal-97e83549.js';
55
- export { M as ModalSize, _ as OrModalV3 } from '../OrModal-a7b04967.js';
55
+ export { M as ModalSize, _ as OrModalV3 } from '../OrModal-b40d9a17.js';
56
56
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-a9231a83.js';
57
57
  export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-999059f3.js';
58
58
  export { _ as OrOverflowMenu } from '../OrOverflowMenu-10a4166a.js';
@@ -35,3 +35,8 @@ export declare const ConfirmButtonColor: StoryFn<import("vue").ComponentOptions<
35
35
  } | string[], {} & {}, {
36
36
  [x: number]: string;
37
37
  } | {}, true>)>;
38
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
39
+ [x: string]: ((...args: any[]) => any) | null;
40
+ } | string[], {} & {}, {
41
+ [x: number]: string;
42
+ } | {}, true>)>;
@@ -82,6 +82,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
82
82
  required: false;
83
83
  default: null;
84
84
  };
85
+ isOpen: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  }, import("@vue/composition-api").ExtractPropTypes<{
86
90
  titleText: {
87
91
  type: StringConstructor;
@@ -133,6 +137,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
133
137
  required: false;
134
138
  default: null;
135
139
  };
140
+ isOpen: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
136
144
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
137
145
  titleText: string;
138
146
  confirmButtonText: string;
@@ -144,6 +152,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
144
152
  textConfirmationLabel: string;
145
153
  textConfirmationPlaceholder: string;
146
154
  textConfirmationError: string;
155
+ isOpen: boolean;
147
156
  } & {} & {
148
157
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
149
158
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -187,6 +196,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
187
196
  textConfirmationLabel: string;
188
197
  textConfirmationPlaceholder: string;
189
198
  textConfirmationError: string;
199
+ isOpen: boolean;
190
200
  } & {} & {
191
201
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
192
202
  }, {
@@ -200,5 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
200
210
  textConfirmationLabel: string;
201
211
  textConfirmationPlaceholder: string;
202
212
  textConfirmationError: string;
213
+ isOpen: boolean;
203
214
  }, true>);
204
215
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-7afbef04.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-cd42379c.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrButton-eb895669.js';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -10,3 +10,8 @@ export declare const Modal: StoryFn<import("vue").ComponentOptions<import("vue")
10
10
  } | string[], {} & {}, {
11
11
  [x: number]: string;
12
12
  } | {}, true>)>;
13
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
14
+ [x: string]: ((...args: any[]) => any) | null;
15
+ } | string[], {} & {}, {
16
+ [x: number]: string;
17
+ } | {}, true>)>;
@@ -13,13 +13,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
13
13
  type: PropType<ModalSize>;
14
14
  default: ModalSize;
15
15
  };
16
+ isOpen: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
16
20
  }, import("@vue/composition-api").ExtractPropTypes<{
17
21
  size: {
18
22
  type: PropType<ModalSize>;
19
23
  default: ModalSize;
20
24
  };
25
+ isOpen: {
26
+ type: PropType<boolean>;
27
+ default: boolean;
28
+ };
21
29
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
22
30
  size: ModalSize;
31
+ isOpen: boolean;
23
32
  } & {} & {
24
33
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
25
34
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -32,9 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
41
  close: () => void;
33
42
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
34
43
  size: ModalSize;
44
+ isOpen: boolean;
35
45
  } & {} & {
36
46
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
37
47
  }, {
38
48
  size: ModalSize;
49
+ isOpen: boolean;
39
50
  }, true>);
40
51
  export default _default;
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-a7b04967.js';
1
+ export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-b40d9a17.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-41dd5f9b.js';
19
19
  export { _ as OrCollapse } from './OrCollapse-4d892ca3.js';
20
20
  export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-75abefdd.js';
21
21
  export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-7afbef04.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-cd42379c.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-349df9b2.js';
24
24
  export { _ as OrError } from './OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from './OrErrorTag-c14e0298.js';
@@ -52,7 +52,7 @@ export { _ as OrMenuItemV3 } from './OrMenuItem-9034aece.js';
52
52
  export { _ as OrMenuV3 } from './OrMenu-bb81644d.js';
53
53
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-9080fc00.js';
54
54
  export { _ as OrModal, O as OrModalSizes } from './OrModal-97e83549.js';
55
- export { M as ModalSize, _ as OrModalV3 } from './OrModal-a7b04967.js';
55
+ export { M as ModalSize, _ as OrModalV3 } from './OrModal-b40d9a17.js';
56
56
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-a9231a83.js';
57
57
  export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-999059f3.js';
58
58
  export { _ as OrOverflowMenu } from './OrOverflowMenu-10a4166a.js';
@@ -107,6 +107,10 @@ var script = defineComponent({
107
107
  type: String,
108
108
  required: false,
109
109
  default: null
110
+ },
111
+ isOpen: {
112
+ type: Boolean,
113
+ default: false
110
114
  }
111
115
  },
112
116
  emits: ['open', 'close', 'confirm'],
@@ -151,6 +155,15 @@ var script = defineComponent({
151
155
  }
152
156
  // Events
153
157
  watch(isActive, value => emit(value ? 'open' : 'close'));
158
+ watch(() => props.isOpen, newIsOpen => {
159
+ if (newIsOpen) {
160
+ open();
161
+ } else {
162
+ close();
163
+ }
164
+ }, {
165
+ immediate: true
166
+ });
154
167
  watch(escape, val => {
155
168
  if (val) close();
156
169
  });
@@ -54,6 +54,10 @@ var script = defineComponent({
54
54
  size: {
55
55
  type: String,
56
56
  default: ModalSize.M
57
+ },
58
+ isOpen: {
59
+ type: Boolean,
60
+ default: false
57
61
  }
58
62
  },
59
63
  emits: ['open', 'close'],
@@ -72,6 +76,15 @@ var script = defineComponent({
72
76
  watch(isActive, value => {
73
77
  context.emit(value ? 'open' : 'close');
74
78
  });
79
+ watch(() => props.isOpen, newIsOpen => {
80
+ if (newIsOpen) {
81
+ open();
82
+ } else {
83
+ close();
84
+ }
85
+ }, {
86
+ immediate: true
87
+ });
75
88
  // Methods
76
89
  function open() {
77
90
  isActive.value = true;
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-ee19a5e6.js';
16
16
  export { s as OrCollapse } from '../OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-189cb097.js';
18
18
  export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-4efec964.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-1d4be431.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from '../OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from '../OrErrorTag-bbfd3ca6.js';
@@ -47,7 +47,7 @@ export { s as OrMenuItemV3 } from '../OrMenuItem-60afcdcb.js';
47
47
  export { s as OrMenuV3 } from '../OrMenu-75ef8635.js';
48
48
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-3525c670.js';
49
49
  export { s as OrModal, O as OrModalSizes } from '../OrModal-8b074b0c.js';
50
- export { M as ModalSize, s as OrModalV3 } from '../OrModal-892d7155.js';
50
+ export { M as ModalSize, s as OrModalV3 } from '../OrModal-794ff3f6.js';
51
51
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-e85a4956.js';
52
52
  export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification-0764ca9b.js';
53
53
  export { s as OrOverflowMenu } from '../OrOverflowMenu-e82cbcbe.js';
@@ -35,3 +35,8 @@ export declare const ConfirmButtonColor: StoryFn<import("vue").ComponentOptions<
35
35
  } | string[], {} & {}, {
36
36
  [x: number]: string;
37
37
  } | {}, true>)>;
38
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
39
+ [x: string]: ((...args: any[]) => any) | null;
40
+ } | string[], {} & {}, {
41
+ [x: number]: string;
42
+ } | {}, true>)>;
@@ -82,6 +82,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
82
82
  required: false;
83
83
  default: null;
84
84
  };
85
+ isOpen: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  }, import("@vue/composition-api").ExtractPropTypes<{
86
90
  titleText: {
87
91
  type: StringConstructor;
@@ -133,6 +137,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
133
137
  required: false;
134
138
  default: null;
135
139
  };
140
+ isOpen: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
136
144
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
137
145
  titleText: string;
138
146
  confirmButtonText: string;
@@ -144,6 +152,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
144
152
  textConfirmationLabel: string;
145
153
  textConfirmationPlaceholder: string;
146
154
  textConfirmationError: string;
155
+ isOpen: boolean;
147
156
  } & {} & {
148
157
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
149
158
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -187,6 +196,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
187
196
  textConfirmationLabel: string;
188
197
  textConfirmationPlaceholder: string;
189
198
  textConfirmationError: string;
199
+ isOpen: boolean;
190
200
  } & {} & {
191
201
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
192
202
  }, {
@@ -200,5 +210,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
200
210
  textConfirmationLabel: string;
201
211
  textConfirmationPlaceholder: string;
202
212
  textConfirmationError: string;
213
+ isOpen: boolean;
203
214
  }, true>);
204
215
  export default _default;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-4efec964.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-1d4be431.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrButton-12b36e89.js';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -10,3 +10,8 @@ export declare const Modal: StoryFn<import("vue").ComponentOptions<import("vue")
10
10
  } | string[], {} & {}, {
11
11
  [x: number]: string;
12
12
  } | {}, true>)>;
13
+ export declare const UsingIsOpenProp: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
14
+ [x: string]: ((...args: any[]) => any) | null;
15
+ } | string[], {} & {}, {
16
+ [x: number]: string;
17
+ } | {}, true>)>;
@@ -13,13 +13,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
13
13
  type: PropType<ModalSize>;
14
14
  default: ModalSize;
15
15
  };
16
+ isOpen: {
17
+ type: PropType<boolean>;
18
+ default: boolean;
19
+ };
16
20
  }, import("@vue/composition-api").ExtractPropTypes<{
17
21
  size: {
18
22
  type: PropType<ModalSize>;
19
23
  default: ModalSize;
20
24
  };
25
+ isOpen: {
26
+ type: PropType<boolean>;
27
+ default: boolean;
28
+ };
21
29
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
22
30
  size: ModalSize;
31
+ isOpen: boolean;
23
32
  } & {} & {
24
33
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
25
34
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -32,9 +41,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
41
  close: () => void;
33
42
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
34
43
  size: ModalSize;
44
+ isOpen: boolean;
35
45
  } & {} & {
36
46
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
37
47
  }, {
38
48
  size: ModalSize;
49
+ isOpen: boolean;
39
50
  }, true>);
40
51
  export default _default;
@@ -1,4 +1,4 @@
1
- export { M as ModalSize, s as OrModalV3 } from '../../OrModal-892d7155.js';
1
+ export { M as ModalSize, s as OrModalV3 } from '../../OrModal-794ff3f6.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.js';
16
16
  export { s as OrCollapse } from './OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
18
18
  export { s as OrConfirm } from './OrConfirm-f39bd784.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-4efec964.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-1d4be431.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-bbfd3ca6.js';
@@ -47,7 +47,7 @@ export { s as OrMenuItemV3 } from './OrMenuItem-60afcdcb.js';
47
47
  export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
48
48
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
49
49
  export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
50
- export { M as ModalSize, s as OrModalV3 } from './OrModal-892d7155.js';
50
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-794ff3f6.js';
51
51
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
52
52
  export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-0764ca9b.js';
53
53
  export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.67.0",
3
+ "version": "2.67.1-beta.1985.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -122,6 +122,5 @@
122
122
  "types": "./dist/bundled/v3/components/*/index.d.ts",
123
123
  "default": "./dist/bundled/v3/components/*/index.js"
124
124
  }
125
- },
126
- "gitHead": "9ff819514bf6e4ada6c046de3e0ddc2e9e241b48"
125
+ }
127
126
  }
@@ -6,6 +6,7 @@ import OrConfirm from './OrConfirm.vue';
6
6
  import { ConfirmType } from './props';
7
7
  import { OrButtonV3 as OrButton } from '../or-button-v3';
8
8
  import { ref } from 'vue-demi';
9
+ import { useArgs } from '@storybook/client-api';
9
10
 
10
11
  export default {
11
12
  title: 'Components/Confirm',
@@ -81,6 +82,10 @@ export default {
81
82
  textConfirmationError: {
82
83
  control: { type: 'text' },
83
84
  },
85
+
86
+ isOpen: {
87
+ control: { type: 'boolean' },
88
+ },
84
89
  },
85
90
 
86
91
  parameters: {
@@ -143,6 +148,61 @@ const Template: StoryFn<typeof OrConfirm> = (args) => ({
143
148
  `,
144
149
  });
145
150
 
151
+ const TemplateIsOpen: StoryFn<typeof OrConfirm> = () => {
152
+ const [args, updateArgs] = useArgs();
153
+ return {
154
+ components: {
155
+ OrConfirm,
156
+ OrButton,
157
+ },
158
+
159
+ setup() {
160
+ const isOpen = ref(args.isOpen);
161
+ return {
162
+ args,
163
+ isOpen,
164
+ onOpen: action('open'),
165
+ onClose: () => {
166
+ isOpen.value = false;
167
+ updateArgs({
168
+ ...args,
169
+ isOpen: false,
170
+ });
171
+ action('close');
172
+ },
173
+ onConfirm: (event: any) => {
174
+ isOpen.value = false;
175
+ action('confirm')(event);
176
+ },
177
+ };
178
+ },
179
+
180
+ template: `
181
+ <div class="contents">
182
+ <OrButton @click="isOpen = true">Confirmation modal</OrButton>
183
+
184
+ <OrConfirm
185
+ v-bind="args"
186
+ :is-open="isOpen"
187
+ @open="onOpen"
188
+ @close="onClose"
189
+ @confirm="onConfirm"
190
+ >
191
+ <template #default v-if="args.default">
192
+ ${args.default}
193
+ </template>
194
+ <template #header v-if="args.header">
195
+ ${args.header}
196
+ </template>
197
+ <template #footer v-if="args.footer">
198
+ ${args.footer}
199
+ </template>
200
+ </OrConfirm>
201
+ </div>
202
+ `,
203
+ };
204
+ };
205
+
146
206
  export const Default = Template.bind({});
147
207
  Default.args = {
148
208
  titleText: 'Delete permanently',
@@ -192,3 +252,11 @@ ConfirmButtonColor.args = {
192
252
  confirmButtonText: 'Yes',
193
253
  cancelButtonText: 'No',
194
254
  };
255
+ export const UsingIsOpenProp = TemplateIsOpen.bind({});
256
+ UsingIsOpenProp.args = {
257
+ titleText: 'Confirm',
258
+ default: `Are you sure you want to <i>${Faker.hacker.verb()}</i> the <b>${Faker.hacker.noun()}</b>?`,
259
+ confirmType: ConfirmType.C,
260
+ confirmButtonText: 'Yes',
261
+ cancelButtonText: 'No',
262
+ };
@@ -139,6 +139,10 @@ export default defineComponent({
139
139
  required: false,
140
140
  default: null,
141
141
  },
142
+ isOpen: {
143
+ type: Boolean,
144
+ default: false,
145
+ },
142
146
  },
143
147
 
144
148
  emits: [
@@ -203,6 +207,14 @@ export default defineComponent({
203
207
  // Events
204
208
  watch(isActive, (value: boolean) => emit(value ? 'open' : 'close'));
205
209
 
210
+ watch(() => props.isOpen, (newIsOpen) => {
211
+ if (newIsOpen) {
212
+ open();
213
+ } else {
214
+ close();
215
+ }
216
+ }, { immediate: true });
217
+
206
218
  watch(escape, (val) => {
207
219
  if (val) close();
208
220
  });
@@ -7,4 +7,4 @@ import { OrModalV3 as OrModal } from '@onereach/ui-components';
7
7
  <DocsPage />
8
8
 
9
9
  ## Migration Guide from V1
10
- - removed properties `titleText`, `showClose`, `closeOnClickOutside`, `size`, `isOpen`, and `isWithoutOverlay`
10
+ - removed properties `titleText`, `showClose`, `closeOnClickOutside`, `size`, and `isWithoutOverlay`
@@ -44,6 +44,10 @@ export default {
44
44
  control: { type: 'select' },
45
45
  options: Object.values(ModalSize),
46
46
  },
47
+
48
+ isOpen: {
49
+ control: { type: 'boolean' },
50
+ },
47
51
  },
48
52
 
49
53
  parameters: {
@@ -120,3 +124,71 @@ Modal.args = {
120
124
  </div>
121
125
  `,
122
126
  };
127
+
128
+
129
+ const TemplateIsOpen: StoryFn<typeof OrModal> = (args) => ({
130
+ components: {
131
+ OrButton,
132
+ OrModal,
133
+ },
134
+
135
+ setup() {
136
+ const isOpen = ref(false);
137
+
138
+ function handleClose() {
139
+ isOpen.value = false;
140
+ action('close');
141
+ }
142
+
143
+ return {
144
+ args,
145
+ isOpen,
146
+ handleOpen: action('open'),
147
+ handleClose,
148
+ };
149
+ },
150
+
151
+ template: `
152
+ <div class="contents">
153
+ <OrButton @click="isOpen = true">Modal</OrButton>
154
+
155
+ <OrModal
156
+ v-bind="args"
157
+ :is-open="isOpen"
158
+ @open="handleOpen"
159
+ @close="handleClose"
160
+ >
161
+ <template #header>
162
+ ${args.header}
163
+ </template>
164
+
165
+ ${args.default}
166
+
167
+ <template #footer>
168
+ ${args.footer}
169
+ </template>
170
+ </OrModal>
171
+ </div>
172
+ `,
173
+ });
174
+
175
+ export const UsingIsOpenProp = TemplateIsOpen.bind({});
176
+
177
+ UsingIsOpenProp.args = {
178
+ // Slots
179
+ header: 'Upload Files',
180
+
181
+ default: `
182
+ <div class="flex items-center justify-center">
183
+ Content Area
184
+ </div>
185
+ `,
186
+
187
+ footer: `
188
+ <div class="flex items-center justify-end gap-[16px]">
189
+ <OrButton variant="outlined">Save</OrButton>
190
+ <OrButton>Upload</OrButton>
191
+ </div>
192
+ `,
193
+ };
194
+
@@ -53,6 +53,10 @@ export default defineComponent({
53
53
  type: String as PropType<ModalSize>,
54
54
  default: ModalSize.M,
55
55
  },
56
+ isOpen: {
57
+ type: Boolean as PropType<boolean>,
58
+ default: false,
59
+ },
56
60
  },
57
61
 
58
62
  emits: [
@@ -97,6 +101,14 @@ export default defineComponent({
97
101
  context.emit(value ? 'open' : 'close');
98
102
  });
99
103
 
104
+ watch(() => props.isOpen, (newIsOpen) => {
105
+ if (newIsOpen) {
106
+ open();
107
+ } else {
108
+ close();
109
+ }
110
+ }, { immediate: true });
111
+
100
112
  // Methods
101
113
  function open(): void {
102
114
  isActive.value = true;