@yourgoods/ui-smart 0.26.0 → 0.27.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.
- package/dist/{ProfileEmailDialog-BJpDhZ6y.js → ProfileEmailDialog-CuypS4yP.js} +2 -2
- package/dist/{ProfilePasswordDialog-OWUlDzvO.js → ProfilePasswordDialog-C75BskVd.js} +1 -1
- package/dist/{ProfilePhoneDialog-C-kh71vy.js → ProfilePhoneDialog-DwZZo5pp.js} +2 -2
- package/dist/{index-Dih8zVja.js → index-Dn5O67gI.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/modules/api/profile/check-availability.d.ts +1 -1
- package/dist/{useRateLimitToast-CcobVhF0.js → useRateLimitToast-BZpGrnoZ.js} +8 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as S, reactive as ae, watch as J, computed as M, toRefs as ce, createElementBlock as x, openBlock as w, createElementVNode as B, createCommentVNode as O, toDisplayString as le, createVNode as k, unref as m, isRef as te, withCtx as Y, createTextVNode as de, Fragment as Oe, createBlock as _, resolveDynamicComponent as ye, onMounted as De } from "vue";
|
|
2
|
-
import { T as ve, c as Se, u as Ue, a as Fe, P as he, b as Re } from "./useRateLimitToast-
|
|
3
|
-
import { C as z, _ as ze, B as We, p as H, g as je } from "./index-
|
|
2
|
+
import { T as ve, c as Se, u as Ue, a as Fe, P as he, b as Re } from "./useRateLimitToast-BZpGrnoZ.js";
|
|
3
|
+
import { C as z, _ as ze, B as We, p as H, g as je } from "./index-Dn5O67gI.js";
|
|
4
4
|
import { PInput as Q, IconMailMd as pe, PButton as re, IconEyeMd as be, IconEyeClosedMd as Te, PDialog as He, PTopBar as _e, IconCrossMd as qe } from "@profeat/ui-kit";
|
|
5
5
|
const Ke = { class: "dialogDefaultContainerInsideContent" }, Ge = { class: "dialogDefaultContainerTextHint" }, Ye = {
|
|
6
6
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ye, ref as a, reactive as _, computed as u, watch as Z, onMounted as Ce, createElementBlock as S, openBlock as g, Fragment as ge, createVNode as n, unref as o, withCtx as m, createCommentVNode as ee, createElementVNode as r, toDisplayString as V, createBlock as B, resolveDynamicComponent as $, createTextVNode as z } from "vue";
|
|
2
|
-
import { C as I, p as D, g as Ve } from "./index-
|
|
2
|
+
import { C as I, p as D, g as Ve } from "./index-Dn5O67gI.js";
|
|
3
3
|
import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
|
|
4
4
|
function ke(b) {
|
|
5
5
|
return { showPasswordRateLimitToast: (P) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as b, openBlock as v, createElementVNode as U, defineComponent as pe, reactive as he, watch as oe, ref as D, toRefs as ge, computed as I, createCommentVNode as $, createVNode as S, toDisplayString as K, createBlock as X, createTextVNode as ee, unref as u, isRef as le, withCtx as _, onMounted as Ue, Fragment as je } from "vue";
|
|
2
|
-
import { T as ye, c as De, a as qe, u as We, P as Ie, b as He } from "./useRateLimitToast-
|
|
2
|
+
import { T as ye, c as De, a as qe, u as We, P as Ie, b as He } from "./useRateLimitToast-BZpGrnoZ.js";
|
|
3
3
|
import { IconTelegramSm as Ce, PInput as se, IconPhoneMd as Ke, IconMailMd as Ae, PButton as Ne, PDialog as Ge, PTopBar as Je, IconCrossMd as Qe, PTeleportContainer as Xe } from "@profeat/ui-kit";
|
|
4
|
-
import { C as H, t as Le, p as ae, g as Oe } from "./index-
|
|
4
|
+
import { C as H, t as Le, p as ae, g as Oe } from "./index-Dn5O67gI.js";
|
|
5
5
|
const Ye = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -213,9 +213,9 @@ const Ze = {
|
|
|
213
213
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
214
214
|
setup(m, { emit: r }) {
|
|
215
215
|
const n = r, s = h(!0), { currentDialog: g, dialogPayload: v, closeDialog: U } = H(), l = {
|
|
216
|
-
email: J(() => import("./ProfileEmailDialog-
|
|
217
|
-
phone: J(() => import("./ProfilePhoneDialog-
|
|
218
|
-
password: J(() => import("./ProfilePasswordDialog-
|
|
216
|
+
email: J(() => import("./ProfileEmailDialog-CuypS4yP.js")),
|
|
217
|
+
phone: J(() => import("./ProfilePhoneDialog-DwZZo5pp.js")),
|
|
218
|
+
password: J(() => import("./ProfilePasswordDialog-C75BskVd.js"))
|
|
219
219
|
}, d = ({ email: y }) => {
|
|
220
220
|
n("update-email-field", y);
|
|
221
221
|
}, p = ({ phone: y }) => {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-wrapper[data-v-c43c8b01] .p-avatar__overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]:hover .p-avatar__overlay{opacity:1!important}.avatar-wrapper[data-v-c43c8b01] .wide-img .overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]:hover .wide-img .overlay{opacity:1!important}.icon-locked{pointer-events:auto;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.input-wrapper{position:relative;width:100%}.dialogTitle{z-index:10;width:100%;font-size:16px;font-weight:600;line-height:24px;text-align:center;color:#2b3238}.dialogDefaultContainer{display:flex;align-items:flex-start;flex-direction:column;width:100%;gap:32px;margin-top:16px;padding:10px 16px}.dialogDefaultContainerTextHint{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#1b1b1b}.dialogDefaultContainerRateLimitText{font-weight:600;font-size:14px;line-height:20px;color:#d0dbe4}.dialogDefaultContainerInsideContent{width:100%;display:flex;flex-direction:column;gap:24px}.dialogDefaultContainerRateLimitTextActive{color:#1c7ef1;cursor:pointer}.dialogDefaultContainerSendCodeBySmsText{color:#1c7ef1;cursor:pointer;font-size:14px;font-weight:600;display:flex;align-items:center;text-align:center}.chip{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:4px;height:24px;font-size:12px;font-weight:600;color:#1b1b1b;padding:4px;line-height:16px;background-color:#b6d7ff4d;border-radius:4px;text-align:center;margin-left:5px}.cross{cursor:pointer;text-align:end}.finalLimitWrapper{display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:12px;width:440px;min-height:94px;background:#e4606026;border-radius:8px}.finalLimitText{text-align:center;font-family:Inter,sans-serif;font-size:14px;line-height:20px;color:#5d7285}.finalLimitLink{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:20px;color:#1c7ef1;text-align:center;cursor:pointer;text-decoration:none}.finalLimitLink:hover{text-decoration:underline}.toastWrapper{position:fixed;bottom:1rem;right:1rem;z-index:9999}.toast{width:100%}.base-container{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.25rem;width:490px;height:428px}.icon-disabled{pointer-events:none;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.centered-overlay{position:absolute;left:50%;top:50%;z-index:1000;height:100%;width:100%;transform:translate(-50%,-50%)}.buttons-container{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.buttons-container PButton{flex:1 1 100%}._loaderOverlay_cpu73_1[data-v-9e697525]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#ffffffb3;border-radius:16px;z-index:99}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { a as o } from "./index-
|
|
2
|
+
import { a as o } from "./index-Dn5O67gI.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PEditUserContact
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const checkAvailability: (email?: string, phone?: string) => Promise<any
|
|
1
|
+
export declare const checkAvailability: (email?: string, phone?: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as l, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as r, createVNode as E, unref as F, computed as T, renderSlot as
|
|
1
|
+
import { ref as l, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as r, createVNode as E, unref as F, computed as T, renderSlot as d, createCommentVNode as $, createElementVNode as o, toDisplayString as y, createTextVNode as p } from "vue";
|
|
2
2
|
import { PLoader as w } from "@profeat/ui-kit";
|
|
3
|
-
import { _ as g, g as R, p as h } from "./index-
|
|
3
|
+
import { _ as g, g as R, p as h } from "./index-Dn5O67gI.js";
|
|
4
4
|
function C(e) {
|
|
5
5
|
const t = Math.floor(e / 60), a = e % 60;
|
|
6
6
|
return `${String(t).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
|
|
@@ -9,11 +9,11 @@ function x() {
|
|
|
9
9
|
let e = null;
|
|
10
10
|
const t = l(0), a = l(!1), s = l("00:00"), u = l(0), n = l(0), i = l(!1);
|
|
11
11
|
return {
|
|
12
|
-
startTimer: (c,
|
|
12
|
+
startTimer: (c, m) => {
|
|
13
13
|
e && clearInterval(e), i.value = !1, t.value = c, a.value = c > 0, s.value = C(c);
|
|
14
14
|
const k = Date.now() + c * 1e3;
|
|
15
15
|
e = setInterval(() => {
|
|
16
|
-
t.value > 1 ? (t.value = Math.max(0, Math.round((k - Date.now()) / 1e3)), s.value = C(t.value)) : (clearInterval(e), t.value = 0, a.value = !1, i.value = !0,
|
|
16
|
+
t.value > 1 ? (t.value = Math.max(0, Math.round((k - Date.now()) / 1e3)), s.value = C(t.value)) : (clearInterval(e), t.value = 0, a.value = !1, i.value = !0, m && typeof m == "function" && m());
|
|
17
17
|
}, 1e3);
|
|
18
18
|
},
|
|
19
19
|
isShowRateTimers: a,
|
|
@@ -69,7 +69,7 @@ const M = L({
|
|
|
69
69
|
}, O = { key: 1 }, _ = { style: { display: "flex", "align-items": "center", "justify-content": "space-between" } }, I = { style: { display: "inline" } };
|
|
70
70
|
function N(e, t, a, s, u, n) {
|
|
71
71
|
return e.loading ? (v(), f("div", D)) : (v(), f("div", O, [
|
|
72
|
-
e.isFinalLimit ? e.isFinalLimit && e.rateLimitText !== "Повторить" ?
|
|
72
|
+
e.isFinalLimit ? e.isFinalLimit && e.rateLimitText !== "Повторить" ? d(e.$slots, "final", { key: 1 }, () => [
|
|
73
73
|
o("div", {
|
|
74
74
|
class: r(e.finalWrapperClass)
|
|
75
75
|
}, [
|
|
@@ -89,13 +89,13 @@ function N(e, t, a, s, u, n) {
|
|
|
89
89
|
}, "пишите в Telegram.", 2)
|
|
90
90
|
])
|
|
91
91
|
], 2)
|
|
92
|
-
]) : $("", !0) :
|
|
92
|
+
]) : $("", !0) : d(e.$slots, "active", { key: 0 }, () => [
|
|
93
93
|
o("div", _, [
|
|
94
94
|
o("span", {
|
|
95
95
|
class: r([e.defaultClass, { [e.activeClass]: e.isRepeat }]),
|
|
96
96
|
onClick: t[0] || (t[0] = (i) => e.isRepeat && e.onSendAgain())
|
|
97
97
|
}, y(e.isRepeat ? "Повторить" : `Повторить через ${e.rateLimitText}`), 3),
|
|
98
|
-
|
|
98
|
+
d(e.$slots, "extra")
|
|
99
99
|
])
|
|
100
100
|
])
|
|
101
101
|
]));
|
|
@@ -106,7 +106,7 @@ const G = /* @__PURE__ */ g(M, [["render", N]]), H = async (e, t) => {
|
|
|
106
106
|
email: e,
|
|
107
107
|
phone: t
|
|
108
108
|
});
|
|
109
|
-
return console.log(a.data), a
|
|
109
|
+
return console.log(a.data), a;
|
|
110
110
|
} catch (a) {
|
|
111
111
|
throw console.error("Ошибка проверки доступности", a), a;
|
|
112
112
|
}
|