@onereach/ui-components 4.2.6-beta.2605.0 → 4.2.6-beta.2606.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 (36) hide show
  1. package/dist/bundled/v2/components/OrModalV3/styles.js +1 -1
  2. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +8 -16
  3. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -2
  4. package/dist/bundled/v2/index.js +1 -1
  5. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-4789f3fe.js → OrToastContainer.vue_vue_type_script_lang-96bc2f19.js} +1 -6
  6. package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
  7. package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
  8. package/dist/bundled/v3/components/OrModalV3/styles.js +1 -1
  9. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +8 -8
  10. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -2
  11. package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
  12. package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
  13. package/dist/bundled/v3/components/index.js +2 -2
  14. package/dist/bundled/v3/index.js +3 -3
  15. package/dist/esm/v2/{OrModal-77d6cf30.js → OrModal-2275de89.js} +1 -1
  16. package/dist/esm/v2/components/index.js +2 -2
  17. package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
  18. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  19. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -2
  20. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
  21. package/dist/esm/v2/index.js +2 -2
  22. package/dist/esm/v2/{types-8b7876e8.js → types-707995c5.js} +5 -14
  23. package/dist/esm/v3/{OrModal-cb236842.js → OrModal-804eeee5.js} +1 -1
  24. package/dist/esm/v3/components/index.js +2 -2
  25. package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
  26. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  27. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -2
  28. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
  29. package/dist/esm/v3/index.js +2 -2
  30. package/dist/esm/v3/{types-ec8b4585.js → types-71d7c1df.js} +5 -10
  31. package/package.json +1 -1
  32. package/src/components/or-modal-v3/styles.ts +2 -2
  33. package/src/components/or-toast-v3/OrToast.stories3.ts +2 -2
  34. package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.stories3.ts +13 -56
  35. package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue +10 -15
  36. /package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-265f39e0.js → OrModal.vue_vue_type_script_lang-cfdecb8c.js} +0 -0
@@ -6,7 +6,7 @@ const ModalRoot = [
6
6
  // Shape
7
7
  'md:rounded-md',
8
8
  // Spacing
9
- 'px-lg', 'py-lg', 'gap-md md:gap-lg',
9
+ 'px-md md:px-lg', 'py-md md:py-lg', 'gap-md md:gap-lg',
10
10
  // Typography
11
11
  'typography-body-2-regular',
12
12
  // Theme
@@ -1,12 +1,11 @@
1
1
  import { useToggle } from '@vueuse/core';
2
- import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
2
+ import { defineComponent, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
3
3
  import useQueue from '../OrToastV3/composable/useQueue.js';
4
4
  import useToastEventBus from '../OrToastV3/composable/useToastEventBus.js';
5
5
  import __vue_component__$2 from '../OrToastV3/OrToast.js';
6
6
  import { P as PositionsX, a as PositionsY, T as TransitionType } from '../../props-7be029c7.js';
7
7
  import { ToastContainer, ToastContainerPositions } from '../OrToastV3/styles.js';
8
8
  import __vue_component__$1 from '../OrTeleportV3/OrTeleport.js';
9
- import { useElevation } from '../../hooks/useElevation.js';
10
9
  import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
11
10
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
12
11
  import '../OrIconButtonV3/OrIconButton.js';
@@ -25,12 +24,13 @@ import '../OrBottomSheetV3/OrBottomSheet.js';
25
24
  import '../OrBottomSheetV3/styles.js';
26
25
  import '../OrOverlayV3/OrOverlay.js';
27
26
  import '../OrOverlayV3/styles.js';
27
+ import '../../hooks/useElevation.js';
28
+ import '../../utils/isVisible.js';
28
29
  import '../../hooks/useResponsive/useResponsive.js';
29
30
  import '../OrLoaderV3/OrLoader.js';
30
31
  import '../OrLoaderV3/props.js';
31
32
  import '../OrLoaderV3/styles.js';
32
33
  import 'portal-vue';
33
- import '../../utils/isVisible.js';
34
34
 
35
35
  var script = defineComponent({
36
36
  name: 'OrToastContainer',
@@ -56,8 +56,6 @@ var script = defineComponent({
56
56
  }
57
57
  },
58
58
  setup(props) {
59
- // Refs
60
- const root = ref();
61
59
  const {
62
60
  on,
63
61
  off
@@ -147,7 +145,6 @@ var script = defineComponent({
147
145
  off('toastUpdate', toastUpdate);
148
146
  off('toastCloseAll', clearAll);
149
147
  });
150
- useElevation(root, isActive);
151
148
  return {
152
149
  on,
153
150
  off,
@@ -160,7 +157,6 @@ var script = defineComponent({
160
157
  clearAll,
161
158
  getItem,
162
159
  queue,
163
- root,
164
160
  createToast,
165
161
  toastUpdate,
166
162
  toastRemove,
@@ -172,7 +168,7 @@ var script = defineComponent({
172
168
  }
173
169
  });
174
170
 
175
- var css_248z = ".or-toast--transition-slide-enter-active[data-v-9c5633de],.or-toast--transition-slide-leave-active[data-v-9c5633de]{transition:transform .4s ease}.or-toast--transition-slide-enter-from.or-toast--position-right[data-v-9c5633de],.or-toast--transition-slide-leave-to.or-toast--position-right[data-v-9c5633de]{transform:translateX(999px)}.or-toast--transition-slide-enter-from.or-toast--position-left[data-v-9c5633de],.or-toast--transition-slide-leave-to.or-toast--position-left[data-v-9c5633de]{transform:translateX(-999px)}.or-toast--transition-fade-enter-active[data-v-9c5633de],.or-toast--transition-fade-leave-active[data-v-9c5633de]{transition:opacity .4s ease}.or-toast--transition-fade-enter-from[data-v-9c5633de],.or-toast--transition-fade-leave-to[data-v-9c5633de]{opacity:0}";
171
+ var css_248z = ".or-toast-container[data-v-0eb6626c]{z-index:26}.or-toast--transition-slide-enter-active[data-v-0eb6626c],.or-toast--transition-slide-leave-active[data-v-0eb6626c]{transition:transform .4s ease}.or-toast--transition-slide-enter-from.or-toast--position-right[data-v-0eb6626c],.or-toast--transition-slide-leave-to.or-toast--position-right[data-v-0eb6626c]{transform:translateX(999px)}.or-toast--transition-slide-enter-from.or-toast--position-left[data-v-0eb6626c],.or-toast--transition-slide-leave-to.or-toast--position-left[data-v-0eb6626c]{transform:translateX(-999px)}.or-toast--transition-fade-enter-active[data-v-0eb6626c],.or-toast--transition-fade-leave-active[data-v-0eb6626c]{transition:opacity .4s ease}.or-toast--transition-fade-enter-from[data-v-0eb6626c],.or-toast--transition-fade-leave-to[data-v-0eb6626c]{opacity:0}";
176
172
  styleInject(css_248z);
177
173
 
178
174
  /* script */
@@ -182,14 +178,10 @@ var __vue_render__ = function () {
182
178
  var _vm = this;
183
179
  var _h = _vm.$createElement;
184
180
  var _c = _vm._self._c || _h;
185
- return _c('OrTeleport', {
186
- attrs: {
187
- "disabled": _vm.isActive
188
- }
189
- }, [_c('div', {
190
- ref: "root",
181
+ return _vm.isActive ? _c('OrTeleport', [_c('div', {
191
182
  class: _vm.classes
192
183
  }, [_c('TransitionGroup', {
184
+ class: ['contents'],
193
185
  attrs: {
194
186
  "name": _vm.transitionName
195
187
  },
@@ -214,14 +206,14 @@ var __vue_render__ = function () {
214
206
  }
215
207
  }
216
208
  }, 'OrToast', toastConfiguration.toastProps, false));
217
- }), 1)], 1)]);
209
+ }), 1)], 1)]) : _vm._e();
218
210
  };
219
211
  var __vue_staticRenderFns__ = [];
220
212
 
221
213
  /* style */
222
214
  const __vue_inject_styles__ = undefined;
223
215
  /* scoped */
224
- const __vue_scope_id__ = "data-v-9c5633de";
216
+ const __vue_scope_id__ = "data-v-0eb6626c";
225
217
  /* module identifier */
226
218
  const __vue_module_identifier__ = undefined;
227
219
  /* functional template */
@@ -15,7 +15,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
15
15
  clearAll: () => void;
16
16
  getItem: (condition: (i: ToastConfiguration, index: number, queue: import("@vue/composition-api").Ref<ToastConfiguration>[]) => boolean) => import("@vue/composition-api").Ref<ToastConfiguration>;
17
17
  queue: import("@vue/composition-api").ComputedRef<ToastConfiguration[]>;
18
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
19
18
  createToast: (toastConfiguration: ToastConfiguration) => void;
20
19
  toastUpdate: (toast: ToastConfiguration) => void;
21
20
  toastRemove: (toast: ToastConfiguration) => void;
@@ -67,7 +66,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
67
66
  clearAll: () => void;
68
67
  getItem: (condition: (i: ToastConfiguration, index: number, queue: import("@vue/composition-api").Ref<ToastConfiguration>[]) => boolean) => import("@vue/composition-api").Ref<ToastConfiguration>;
69
68
  queue: import("@vue/composition-api").ComputedRef<ToastConfiguration[]>;
70
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
71
69
  createToast: (toastConfiguration: ToastConfiguration) => void;
72
70
  toastUpdate: (toast: ToastConfiguration) => void;
73
71
  toastRemove: (toast: ToastConfiguration) => void;