@yourgoods/ui-smart 0.3.0 → 0.4.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-hqiCAvmA.js +777 -0
- package/dist/ProfilePasswordDialog-CwshEPVD.js +272 -0
- package/dist/ProfilePhoneDialog-B9ivxKlS.js +799 -0
- package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewEmailContent.vue.d.ts +2 -0
- package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewPhoneContent.vue.d.ts +2 -0
- package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewPhoneContent.vue.d.ts +2 -0
- package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldPhoneContent.vue.d.ts +2 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/{index-rDbP74yn.js → index-BAX9rbeD.js} +249 -224
- package/dist/index.js +1 -1
- package/dist/locales/index.d.ts +6 -2
- package/dist/{useRateLimitToast-D3SdHQJl.js → useRateLimitToast-BROS1T6Q.js} +12 -11
- package/dist/utils/formatPhone.d.ts +5 -0
- package/package.json +1 -1
- package/dist/ProfileEmailDialog-rL4YTLa1.js +0 -777
- package/dist/ProfilePasswordDialog-DmfK_fyQ.js +0 -269
- package/dist/ProfilePhoneDialog-Df3-2osj.js +0 -778
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { _ as r } from "./index-
|
|
2
|
+
import { _ as r } from "./index-BAX9rbeD.js";
|
|
3
3
|
export {
|
|
4
4
|
r as PEditUserContact
|
|
5
5
|
};
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export declare const translations: {
|
|
|
13
13
|
readonly '\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 email': "Некорректный email";
|
|
14
14
|
readonly '\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430': "Некорректный номер телефона";
|
|
15
15
|
readonly '\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435': "Обязательное поле";
|
|
16
|
-
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043E\
|
|
16
|
+
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u043E\u0442\u043E': "Загрузить фото";
|
|
17
|
+
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u0444\u043E\u0442\u043E': "Загрузить другое фото";
|
|
18
|
+
readonly '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u043E\u0442\u043E. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0444\u043E\u0440\u043C\u0430\u0442 (JPEG/PNG) \u0438 \u0440\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430 (\u0434\u043E 10 \u041C\u0431)': "Не удалось загрузить фото. Проверьте формат (JPEG/PNG) и размер файла (до 10 Мб)";
|
|
17
19
|
readonly Формат: "Формат";
|
|
18
20
|
readonly до: "до";
|
|
19
21
|
readonly '\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430': "Номер телефона";
|
|
@@ -77,7 +79,9 @@ export declare const translations: {
|
|
|
77
79
|
readonly '\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 email': "Invalid email format";
|
|
78
80
|
readonly '\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430': "Invalid phone number";
|
|
79
81
|
readonly '\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435': "Required field";
|
|
80
|
-
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043E\
|
|
82
|
+
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u043E\u0442\u043E': "Upload photo";
|
|
83
|
+
readonly '\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u0444\u043E\u0442\u043E': "Upload another photo";
|
|
84
|
+
readonly '\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u043E\u0442\u043E. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0444\u043E\u0440\u043C\u0430\u0442 (JPEG/PNG) \u0438 \u0440\u0430\u0437\u043C\u0435\u0440 \u0444\u0430\u0439\u043B\u0430 (\u0434\u043E 10 \u041C\u0431)': "Failed to upload photo. Check the format (JPEG/PNG) and file size (up to 10 MB)";
|
|
81
85
|
readonly Формат: "Format";
|
|
82
86
|
readonly до: "up to";
|
|
83
87
|
readonly '\u041D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430': "Phone number";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as r, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as l, createVNode as E, unref as F, computed as T, renderSlot as m, createCommentVNode as
|
|
2
|
-
import { PLoader as
|
|
3
|
-
import { g as
|
|
1
|
+
import { ref as r, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as l, createVNode as E, unref as F, computed as T, renderSlot as m, createCommentVNode as $, createElementVNode as o, toDisplayString as y, createTextVNode as p } from "vue";
|
|
2
|
+
import { PLoader as w } from "@profeat/ui-kit";
|
|
3
|
+
import { g as R, p as h } from "./index-BAX9rbeD.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")}`;
|
|
@@ -29,29 +29,29 @@ const S = /* @__PURE__ */ L({
|
|
|
29
29
|
return (t, a) => (v(), f("div", {
|
|
30
30
|
class: l(t.$style.loaderOverlay)
|
|
31
31
|
}, [
|
|
32
|
-
E(F(
|
|
32
|
+
E(F(w), {
|
|
33
33
|
class: "relative m-auto",
|
|
34
34
|
size: "normal"
|
|
35
35
|
})
|
|
36
36
|
], 2));
|
|
37
37
|
}
|
|
38
|
-
}), B = "_loaderOverlay_cpu73_1",
|
|
38
|
+
}), B = "_loaderOverlay_cpu73_1", b = {
|
|
39
39
|
loaderOverlay: B
|
|
40
40
|
}, g = (e, t) => {
|
|
41
41
|
const a = e.__vccOpts || e;
|
|
42
42
|
for (const [s, u] of t)
|
|
43
43
|
a[s] = u;
|
|
44
44
|
return a;
|
|
45
|
-
},
|
|
46
|
-
$style:
|
|
47
|
-
}, z = /* @__PURE__ */ g(S, [["__cssModules",
|
|
45
|
+
}, A = {
|
|
46
|
+
$style: b
|
|
47
|
+
}, z = /* @__PURE__ */ g(S, [["__cssModules", A], ["__scopeId", "data-v-9e697525"]]);
|
|
48
48
|
function j(e) {
|
|
49
49
|
const t = r("edit"), a = T(() => e.value === "edit" && t.value === "edit");
|
|
50
50
|
return {
|
|
51
51
|
modeFlowFromBack: t,
|
|
52
52
|
isEditFlow: a,
|
|
53
53
|
getFlow: async (u) => {
|
|
54
|
-
const i = (await
|
|
54
|
+
const i = (await R("/users/profile/session/flow", { params: { field: u } })).data.data;
|
|
55
55
|
return t.value = i.mode, i.mode;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -94,7 +94,7 @@ function N(e, t, a, s, u, n) {
|
|
|
94
94
|
}, "пишите в Telegram.", 2)
|
|
95
95
|
])
|
|
96
96
|
], 2)
|
|
97
|
-
]) :
|
|
97
|
+
]) : $("", !0) : m(e.$slots, "active", { key: 0 }, () => [
|
|
98
98
|
o("div", O, [
|
|
99
99
|
o("span", {
|
|
100
100
|
class: l([e.defaultClass, { [e.activeClass]: e.isRepeat }]),
|
|
@@ -121,7 +121,8 @@ function J(e) {
|
|
|
121
121
|
if (!s) return;
|
|
122
122
|
const { attemptsLeft: u } = s, n = {
|
|
123
123
|
2: "Осталось 2 попытки. После исчерпания лимита ввод кода будет заблокирован на 5 минут",
|
|
124
|
-
1: "Осталась 1 попытка. После следующей ошибки ввод кода будет заблокирован на 5 минут"
|
|
124
|
+
1: "Осталась 1 попытка. После следующей ошибки ввод кода будет заблокирован на 5 минут",
|
|
125
|
+
0: "Достигнут лимит попыток ввода кода. Попробуйте снова через 5 минут"
|
|
125
126
|
};
|
|
126
127
|
n[u] && e("on-toast", {
|
|
127
128
|
color: "error",
|