@uzum-tech/ui 2.0.2 → 2.0.4

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.
@@ -1,4 +1,4 @@
1
- import { computed, defineComponent, getCurrentInstance, h, ref } from 'vue';
1
+ import { defineComponent, getCurrentInstance, h, ref } from 'vue';
2
2
  import { configProviderInjectionKey } from "../config-provider/src/context.mjs";
3
3
  import useExposeProxy from "./composable/use-expose-proxy.mjs";
4
4
  function findConfig(instance) {
@@ -22,18 +22,20 @@ export function wrap(component) {
22
22
  const instance = getCurrentInstance();
23
23
  const config = instance ? findConfig(instance) : null;
24
24
  const componentRef = ref(null);
25
- const mergedProps = computed(() => {
26
- var _a, _b, _c;
27
- if (!config) return props;
28
- const defaults = (_c = (_b = (_a = config.mergedComponentPropsRef) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b[component.name]) !== null && _c !== void 0 ? _c : {};
29
- return Object.assign(Object.assign({}, defaults), props);
30
- });
31
25
  if (ctx.expose) {
32
26
  ctx.expose(useExposeProxy(componentRef));
33
27
  }
34
- return () => h(component, Object.assign(Object.assign({
35
- ref: componentRef
36
- }, mergedProps.value), ctx.attrs), ctx.slots);
28
+ return () => {
29
+ var _a, _b, _c;
30
+ let finalProps = props;
31
+ if (config) {
32
+ const defaults = (_c = (_b = (_a = config.mergedComponentPropsRef) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b[component.name]) !== null && _c !== void 0 ? _c : {};
33
+ finalProps = Object.assign(Object.assign({}, defaults), props);
34
+ }
35
+ return h(component, Object.assign(Object.assign({
36
+ ref: componentRef
37
+ }, finalProps), ctx.attrs), ctx.slots);
38
+ };
37
39
  }
38
40
  });
39
41
  wrapped.__wrapped__ = true;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare const notificationEnvOptions: {
3
3
  readonly duration: NumberConstructor;
4
+ readonly pauseOnVisibilityChange: BooleanConstructor;
4
5
  readonly onClose: PropType<() => Promise<boolean> | boolean | any>;
5
6
  readonly onLeave: PropType<() => void>;
6
7
  readonly onAfterEnter: PropType<() => void>;
@@ -41,6 +42,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
41
42
  required: true;
42
43
  };
43
44
  duration: NumberConstructor;
45
+ pauseOnVisibilityChange: BooleanConstructor;
44
46
  onClose: PropType<() => Promise<boolean> | boolean | any>;
45
47
  onLeave: PropType<() => void>;
46
48
  onAfterEnter: PropType<() => void>;
@@ -87,6 +89,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
87
89
  required: true;
88
90
  };
89
91
  duration: NumberConstructor;
92
+ pauseOnVisibilityChange: BooleanConstructor;
90
93
  onClose: PropType<() => Promise<boolean> | boolean | any>;
91
94
  onLeave: PropType<() => void>;
92
95
  onAfterEnter: PropType<() => void>;
@@ -116,5 +119,6 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
116
119
  type: "default" | "error" | "warning" | "success" | "info" | "primary";
117
120
  closable: boolean;
118
121
  keepAliveOnHover: boolean;
122
+ pauseOnVisibilityChange: boolean;
119
123
  hideIcon: boolean;
120
124
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,9 +1,10 @@
1
- import { defineComponent, h, inject, nextTick, onMounted, ref, Transition } from 'vue';
1
+ import { defineComponent, h, inject, nextTick, onBeforeUnmount, onMounted, ref, Transition } from 'vue';
2
2
  import { keep } from "../../_utils/index.mjs";
3
3
  import { notificationProviderInjectionKey } from "./context.mjs";
4
4
  import { Notification, notificationPropKeys, notificationProps } from "./Notification.mjs";
5
5
  export const notificationEnvOptions = Object.assign(Object.assign({}, notificationProps), {
6
6
  duration: Number,
7
+ pauseOnVisibilityChange: Boolean,
7
8
  onClose: Function,
8
9
  onLeave: Function,
9
10
  onAfterEnter: Function,
@@ -34,10 +35,42 @@ export const NotificationEnvironment = defineComponent({
34
35
  } = inject(notificationProviderInjectionKey);
35
36
  const showRef = ref(true);
36
37
  let timerId = null;
38
+ let remainingDuration = null;
39
+ let timerStartedAt = null;
40
+ let timerPausedForVisibility = false;
41
+ function clearTimer() {
42
+ if (timerId !== null) {
43
+ window.clearTimeout(timerId);
44
+ timerId = null;
45
+ }
46
+ }
37
47
  function hide() {
38
48
  showRef.value = false;
39
- if (timerId) {
40
- window.clearTimeout(timerId);
49
+ clearTimer();
50
+ }
51
+ function startTimer(duration) {
52
+ clearTimer();
53
+ remainingDuration = duration;
54
+ timerStartedAt = Date.now();
55
+ timerId = window.setTimeout(hide, duration);
56
+ }
57
+ function handleVisibilityChange() {
58
+ if (document.visibilityState === 'hidden') {
59
+ if (timerId !== null) {
60
+ clearTimer();
61
+ if (timerStartedAt !== null && remainingDuration !== null) {
62
+ remainingDuration = Math.max(0, remainingDuration - (Date.now() - timerStartedAt));
63
+ }
64
+ timerStartedAt = null;
65
+ timerPausedForVisibility = true;
66
+ }
67
+ } else if (timerPausedForVisibility) {
68
+ timerPausedForVisibility = false;
69
+ if (remainingDuration !== null && remainingDuration > 0) {
70
+ startTimer(remainingDuration);
71
+ } else {
72
+ hide();
73
+ }
41
74
  }
42
75
  }
43
76
  function handleBeforeEnter(el) {
@@ -95,15 +128,12 @@ export const NotificationEnvironment = defineComponent({
95
128
  duration
96
129
  } = props;
97
130
  if (duration) {
98
- timerId = window.setTimeout(hide, duration);
131
+ startTimer(duration);
99
132
  }
100
133
  }
101
134
  function handleMouseenter(e) {
102
135
  if (e.currentTarget !== e.target) return;
103
- if (timerId !== null) {
104
- window.clearTimeout(timerId);
105
- timerId = null;
106
- }
136
+ clearTimer();
107
137
  }
108
138
  function handleMouseleave(e) {
109
139
  if (e.currentTarget !== e.target) return;
@@ -124,9 +154,15 @@ export const NotificationEnvironment = defineComponent({
124
154
  }
125
155
  onMounted(() => {
126
156
  if (props.duration) {
127
- timerId = window.setTimeout(hide, props.duration);
157
+ startTimer(props.duration);
158
+ }
159
+ if (props.pauseOnVisibilityChange) {
160
+ document.addEventListener('visibilitychange', handleVisibilityChange);
128
161
  }
129
162
  });
163
+ onBeforeUnmount(() => {
164
+ document.removeEventListener('visibilitychange', handleVisibilityChange);
165
+ });
130
166
  return {
131
167
  show: showRef,
132
168
  hide,
@@ -741,6 +741,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
741
741
  type?: "default" | "error" | "warning" | "success" | "info" | "primary" | undefined;
742
742
  closable?: boolean | undefined;
743
743
  keepAliveOnHover?: boolean | undefined;
744
+ pauseOnVisibilityChange?: boolean | undefined;
744
745
  hideIcon?: boolean | undefined;
745
746
  avatar?: (() => import("vue").VNodeChild) | undefined;
746
747
  content?: string | (() => import("vue").VNodeChild) | undefined;
@@ -766,6 +767,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
766
767
  type?: "default" | "error" | "warning" | "success" | "info" | "primary" | undefined;
767
768
  closable?: boolean | undefined;
768
769
  keepAliveOnHover?: boolean | undefined;
770
+ pauseOnVisibilityChange?: boolean | undefined;
769
771
  hideIcon?: boolean | undefined;
770
772
  avatar?: (() => import("vue").VNodeChild) | undefined;
771
773
  content?: string | (() => import("vue").VNodeChild) | undefined;
@@ -1,3 +1,2 @@
1
- import type { CNode } from 'css-render';
2
- declare const _default: CNode;
1
+ declare const _default: import("css-render").CNode;
3
2
  export default _default;
@@ -31,12 +31,16 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
31
31
  export default c([cB('notification-container', `
32
32
  z-index: 4000;
33
33
  position: fixed;
34
+ left: 0;
35
+ right: 0;
34
36
  overflow: visible;
35
37
  display: flex;
36
38
  flex-direction: column;
37
39
  align-items: flex-end;
40
+ pointer-events: none;
38
41
  `, [c('>', [cB('scrollbar', `
39
- width: initial;
42
+ width: -moz-fit-content;
43
+ width: fit-content;
40
44
  overflow: visible;
41
45
  height: -moz-fit-content !important;
42
46
  height: fit-content !important;
@@ -62,8 +66,7 @@ export default c([cB('notification-container', `
62
66
  margin-bottom: 0;
63
67
  margin-top: 12px;
64
68
  `)]), cM('top, bottom', `
65
- left: 50%;
66
- transform: translateX(-50%);
69
+ align-items: center;
67
70
  `, [cB('notification-wrapper', [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
68
71
  transform: scale(0.85);
69
72
  `), c('&.notification-transition-leave-from, &.notification-transition-enter-to', `
@@ -72,15 +75,11 @@ export default c([cB('notification-container', `
72
75
  transform-origin: top center;
73
76
  `)]), cM('bottom', [cB('notification-wrapper', `
74
77
  transform-origin: bottom center;
75
- `)]), cM('top-right', `
76
- right: 0;
77
- `, [placementTransformStyle('top-right')]), cM('top-left', `
78
- left: 0;
79
- `, [placementTransformStyle('top-left')]), cM('bottom-right', `
80
- right: 0;
81
- `, [placementTransformStyle('bottom-right')]), cM('bottom-left', `
82
- left: 0;
83
- `, [placementTransformStyle('bottom-left')]), cM('scrollable', [cM('top-right', `
78
+ `)]), cM('top-right, bottom-right', `
79
+ align-items: flex-end;
80
+ `), cM('top-left, bottom-left', `
81
+ align-items: flex-start;
82
+ `), cM('scrollable', [cM('top-right', `
84
83
  top: 0;
85
84
  `), cM('top-left', `
86
85
  top: 0;
@@ -117,6 +116,7 @@ export default c([cB('notification-container', `
117
116
  `)]), cB('notification', `
118
117
  background-color: var(--u-color);
119
118
  color: var(--u-text-color);
119
+ pointer-events: auto;
120
120
  transition:
121
121
  background-color .3s var(--u-bezier),
122
122
  color .3s var(--u-bezier),
@@ -214,14 +214,4 @@ export default c([cB('notification-container', `
214
214
  color: var(--u-text-color);
215
215
  `, [c('&:first-child', {
216
216
  margin: 0
217
- })])])])])]);
218
- function placementTransformStyle(placement) {
219
- const direction = placement.split('-')[1];
220
- const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
221
- const transformXLeave = '0';
222
- return cB('notification-wrapper', [c('&.notification-transition-enter-from, &.notification-transition-leave-to', `
223
- transform: translate(${transformXEnter}, 0);
224
- `), c('&.notification-transition-leave-from, &.notification-transition-enter-to', `
225
- transform: translate(${transformXLeave}, 0);
226
- `)]);
227
- }
217
+ })])])])])]);
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.0.2";
1
+ declare const _default: "2.0.4";
2
2
  export default _default;
package/es/version.mjs CHANGED
@@ -1 +1 @@
1
- export default '2.0.2';
1
+ export default '2.0.4';
@@ -30,17 +30,18 @@ function wrap(component) {
30
30
  const instance = (0, vue_1.getCurrentInstance)();
31
31
  const config = instance ? findConfig(instance) : null;
32
32
  const componentRef = (0, vue_1.ref)(null);
33
- const mergedProps = (0, vue_1.computed)(() => {
34
- var _a, _b, _c;
35
- if (!config)
36
- return props;
37
- const defaults = (_c = (_b = (_a = config.mergedComponentPropsRef) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b[component.name]) !== null && _c !== void 0 ? _c : {};
38
- return Object.assign(Object.assign({}, defaults), props);
39
- });
40
33
  if (ctx.expose) {
41
34
  ctx.expose((0, use_expose_proxy_1.default)(componentRef));
42
35
  }
43
- return () => (0, vue_1.h)(component, Object.assign(Object.assign({ ref: componentRef }, mergedProps.value), ctx.attrs), ctx.slots);
36
+ return () => {
37
+ var _a, _b, _c;
38
+ let finalProps = props;
39
+ if (config) {
40
+ const defaults = (_c = (_b = (_a = config.mergedComponentPropsRef) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b[component.name]) !== null && _c !== void 0 ? _c : {};
41
+ finalProps = Object.assign(Object.assign({}, defaults), props);
42
+ }
43
+ return (0, vue_1.h)(component, Object.assign(Object.assign({ ref: componentRef }, finalProps), ctx.attrs), ctx.slots);
44
+ };
44
45
  }
45
46
  });
46
47
  wrapped.__wrapped__ = true;
@@ -1,6 +1,7 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare const notificationEnvOptions: {
3
3
  readonly duration: NumberConstructor;
4
+ readonly pauseOnVisibilityChange: BooleanConstructor;
4
5
  readonly onClose: PropType<() => Promise<boolean> | boolean | any>;
5
6
  readonly onLeave: PropType<() => void>;
6
7
  readonly onAfterEnter: PropType<() => void>;
@@ -41,6 +42,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
41
42
  required: true;
42
43
  };
43
44
  duration: NumberConstructor;
45
+ pauseOnVisibilityChange: BooleanConstructor;
44
46
  onClose: PropType<() => Promise<boolean> | boolean | any>;
45
47
  onLeave: PropType<() => void>;
46
48
  onAfterEnter: PropType<() => void>;
@@ -87,6 +89,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
87
89
  required: true;
88
90
  };
89
91
  duration: NumberConstructor;
92
+ pauseOnVisibilityChange: BooleanConstructor;
90
93
  onClose: PropType<() => Promise<boolean> | boolean | any>;
91
94
  onLeave: PropType<() => void>;
92
95
  onAfterEnter: PropType<() => void>;
@@ -116,5 +119,6 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<Extr
116
119
  type: "default" | "error" | "warning" | "success" | "info" | "primary";
117
120
  closable: boolean;
118
121
  keepAliveOnHover: boolean;
122
+ pauseOnVisibilityChange: boolean;
119
123
  hideIcon: boolean;
120
124
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -5,7 +5,7 @@ const vue_1 = require("vue");
5
5
  const _utils_1 = require("../../_utils");
6
6
  const context_1 = require("./context");
7
7
  const Notification_1 = require("./Notification");
8
- exports.notificationEnvOptions = Object.assign(Object.assign({}, Notification_1.notificationProps), { duration: Number, onClose: Function, onLeave: Function, onAfterEnter: Function, onAfterLeave: Function,
8
+ exports.notificationEnvOptions = Object.assign(Object.assign({}, Notification_1.notificationProps), { duration: Number, pauseOnVisibilityChange: Boolean, onClose: Function, onLeave: Function, onAfterEnter: Function, onAfterLeave: Function,
9
9
  /** @deprecated */
10
10
  onHide: Function,
11
11
  /** @deprecated */
@@ -27,10 +27,44 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
27
27
  const { wipTransitionCountRef } = (0, vue_1.inject)(context_1.notificationProviderInjectionKey);
28
28
  const showRef = (0, vue_1.ref)(true);
29
29
  let timerId = null;
30
+ let remainingDuration = null;
31
+ let timerStartedAt = null;
32
+ let timerPausedForVisibility = false;
33
+ function clearTimer() {
34
+ if (timerId !== null) {
35
+ window.clearTimeout(timerId);
36
+ timerId = null;
37
+ }
38
+ }
30
39
  function hide() {
31
40
  showRef.value = false;
32
- if (timerId) {
33
- window.clearTimeout(timerId);
41
+ clearTimer();
42
+ }
43
+ function startTimer(duration) {
44
+ clearTimer();
45
+ remainingDuration = duration;
46
+ timerStartedAt = Date.now();
47
+ timerId = window.setTimeout(hide, duration);
48
+ }
49
+ function handleVisibilityChange() {
50
+ if (document.visibilityState === 'hidden') {
51
+ if (timerId !== null) {
52
+ clearTimer();
53
+ if (timerStartedAt !== null && remainingDuration !== null) {
54
+ remainingDuration = Math.max(0, remainingDuration - (Date.now() - timerStartedAt));
55
+ }
56
+ timerStartedAt = null;
57
+ timerPausedForVisibility = true;
58
+ }
59
+ }
60
+ else if (timerPausedForVisibility) {
61
+ timerPausedForVisibility = false;
62
+ if (remainingDuration !== null && remainingDuration > 0) {
63
+ startTimer(remainingDuration);
64
+ }
65
+ else {
66
+ hide();
67
+ }
34
68
  }
35
69
  }
36
70
  function handleBeforeEnter(el) {
@@ -81,16 +115,13 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
81
115
  function setHideTimeout() {
82
116
  const { duration } = props;
83
117
  if (duration) {
84
- timerId = window.setTimeout(hide, duration);
118
+ startTimer(duration);
85
119
  }
86
120
  }
87
121
  function handleMouseenter(e) {
88
122
  if (e.currentTarget !== e.target)
89
123
  return;
90
- if (timerId !== null) {
91
- window.clearTimeout(timerId);
92
- timerId = null;
93
- }
124
+ clearTimer();
94
125
  }
95
126
  function handleMouseleave(e) {
96
127
  if (e.currentTarget !== e.target)
@@ -112,8 +143,14 @@ exports.NotificationEnvironment = (0, vue_1.defineComponent)({
112
143
  }
113
144
  (0, vue_1.onMounted)(() => {
114
145
  if (props.duration) {
115
- timerId = window.setTimeout(hide, props.duration);
146
+ startTimer(props.duration);
116
147
  }
148
+ if (props.pauseOnVisibilityChange) {
149
+ document.addEventListener('visibilitychange', handleVisibilityChange);
150
+ }
151
+ });
152
+ (0, vue_1.onBeforeUnmount)(() => {
153
+ document.removeEventListener('visibilitychange', handleVisibilityChange);
117
154
  });
118
155
  return {
119
156
  show: showRef,
@@ -741,6 +741,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
741
741
  type?: "default" | "error" | "warning" | "success" | "info" | "primary" | undefined;
742
742
  closable?: boolean | undefined;
743
743
  keepAliveOnHover?: boolean | undefined;
744
+ pauseOnVisibilityChange?: boolean | undefined;
744
745
  hideIcon?: boolean | undefined;
745
746
  avatar?: (() => import("vue").VNodeChild) | undefined;
746
747
  content?: string | (() => import("vue").VNodeChild) | undefined;
@@ -766,6 +767,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
766
767
  type?: "default" | "error" | "warning" | "success" | "info" | "primary" | undefined;
767
768
  closable?: boolean | undefined;
768
769
  keepAliveOnHover?: boolean | undefined;
770
+ pauseOnVisibilityChange?: boolean | undefined;
769
771
  hideIcon?: boolean | undefined;
770
772
  avatar?: (() => import("vue").VNodeChild) | undefined;
771
773
  content?: string | (() => import("vue").VNodeChild) | undefined;
@@ -1,3 +1,2 @@
1
- import type { CNode } from 'css-render';
2
- declare const _default: CNode;
1
+ declare const _default: import("css-render").CNode;
3
2
  export default _default;
@@ -36,12 +36,16 @@ const cssr_1 = require("../../../_utils/cssr");
36
36
  exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
37
37
  z-index: 4000;
38
38
  position: fixed;
39
+ left: 0;
40
+ right: 0;
39
41
  overflow: visible;
40
42
  display: flex;
41
43
  flex-direction: column;
42
44
  align-items: flex-end;
45
+ pointer-events: none;
43
46
  `, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar', `
44
- width: initial;
47
+ width: -moz-fit-content;
48
+ width: fit-content;
45
49
  overflow: visible;
46
50
  height: -moz-fit-content !important;
47
51
  height: fit-content !important;
@@ -67,8 +71,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
67
71
  margin-bottom: 0;
68
72
  margin-top: 12px;
69
73
  `)]), (0, cssr_1.cM)('top, bottom', `
70
- left: 50%;
71
- transform: translateX(-50%);
74
+ align-items: center;
72
75
  `, [(0, cssr_1.cB)('notification-wrapper', [(0, cssr_1.c)('&.notification-transition-enter-from, &.notification-transition-leave-to', `
73
76
  transform: scale(0.85);
74
77
  `), (0, cssr_1.c)('&.notification-transition-leave-from, &.notification-transition-enter-to', `
@@ -77,15 +80,11 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
77
80
  transform-origin: top center;
78
81
  `)]), (0, cssr_1.cM)('bottom', [(0, cssr_1.cB)('notification-wrapper', `
79
82
  transform-origin: bottom center;
80
- `)]), (0, cssr_1.cM)('top-right', `
81
- right: 0;
82
- `, [placementTransformStyle('top-right')]), (0, cssr_1.cM)('top-left', `
83
- left: 0;
84
- `, [placementTransformStyle('top-left')]), (0, cssr_1.cM)('bottom-right', `
85
- right: 0;
86
- `, [placementTransformStyle('bottom-right')]), (0, cssr_1.cM)('bottom-left', `
87
- left: 0;
88
- `, [placementTransformStyle('bottom-left')]), (0, cssr_1.cM)('scrollable', [(0, cssr_1.cM)('top-right', `
83
+ `)]), (0, cssr_1.cM)('top-right, bottom-right', `
84
+ align-items: flex-end;
85
+ `), (0, cssr_1.cM)('top-left, bottom-left', `
86
+ align-items: flex-start;
87
+ `), (0, cssr_1.cM)('scrollable', [(0, cssr_1.cM)('top-right', `
89
88
  top: 0;
90
89
  `), (0, cssr_1.cM)('top-left', `
91
90
  top: 0;
@@ -122,6 +121,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
122
121
  `)]), (0, cssr_1.cB)('notification', `
123
122
  background-color: var(--u-color);
124
123
  color: var(--u-text-color);
124
+ pointer-events: auto;
125
125
  transition:
126
126
  background-color .3s var(--u-bezier),
127
127
  color .3s var(--u-bezier),
@@ -219,14 +219,4 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
219
219
  color: var(--u-text-color);
220
220
  `, [(0, cssr_1.c)('&:first-child', {
221
221
  margin: 0
222
- })])])])])]);
223
- function placementTransformStyle(placement) {
224
- const direction = placement.split('-')[1];
225
- const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
226
- const transformXLeave = '0';
227
- return (0, cssr_1.cB)('notification-wrapper', [(0, cssr_1.c)('&.notification-transition-enter-from, &.notification-transition-leave-to', `
228
- transform: translate(${transformXEnter}, 0);
229
- `), (0, cssr_1.c)('&.notification-transition-leave-from, &.notification-transition-enter-to', `
230
- transform: translate(${transformXLeave}, 0);
231
- `)]);
232
- }
222
+ })])])])])]);
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.0.2";
1
+ declare const _default: "2.0.4";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.0.2';
3
+ exports.default = '2.0.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
5
5
  "author": {
6
6
  "name": "KapitalLab",
@@ -181,6 +181,9 @@
181
181
  "overrides": {
182
182
  "cssstyle": "5.2.1"
183
183
  },
184
+ "onlyBuiltDependencies": [
185
+ "esbuild"
186
+ ],
184
187
  "peerDependencyRules": {
185
188
  "ignoreMissing": [
186
189
  "@babel/core",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@uzum-tech/ui",
5
- "version": "2.0.2",
5
+ "version": "2.0.4",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {