@pisell/private-materials 6.12.303 → 6.12.305

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.
@@ -12,7 +12,7 @@ import { locales } from "@pisell/utils";
12
12
  import { Button, Collapse, PisellAlert } from "@pisell/materials";
13
13
  import classNames from "classnames";
14
14
  import { useMemoizedFn } from "ahooks";
15
- import IconFont from "@pisell/materials/src/components/iconfont";
15
+ import Iconfont$1 from "@pisell/materials/src/components/iconfont";
16
16
  import "./index.less";
17
17
  //#region src/components/shoppingCart/components/Cart/index.tsx
18
18
  locales.init(locales_default, localStorage.getItem("umi_locale") || "en");
@@ -145,7 +145,7 @@ const Cart = () => {
145
145
  return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-promotion-alert` }, /* @__PURE__ */ React.createElement("div", null, promotions === null || promotions === void 0 ? void 0 : promotions.map((item) => /* @__PURE__ */ React.createElement(PisellAlert, {
146
146
  description: locales.getText("pisell2.text.shopping-cart.marketing.alert")(item === null || item === void 0 ? void 0 : item.needQuantity, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(item === null || item === void 0 ? void 0 : item.strategyName)),
147
147
  type: "error",
148
- action: /* @__PURE__ */ React.createElement(Button, { onClick: () => handleOpenPromotionModal(item, "promotion") }, /* @__PURE__ */ React.createElement("span", null, locales.getText("pisell2.text.shopping-cart.marketing.browse.items")), /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-right" }))
148
+ action: /* @__PURE__ */ React.createElement(Button, { onClick: () => handleOpenPromotionModal(item, "promotion") }, /* @__PURE__ */ React.createElement("span", null, locales.getText("pisell2.text.shopping-cart.marketing.browse.items")), /* @__PURE__ */ React.createElement(Iconfont$1, { type: "pisell2-arrow-right" }))
149
149
  }))));
150
150
  }, [JSON.stringify(cartInfo), _isShowPromotionAlert]);
151
151
  return useMemo(() => {
@@ -135,10 +135,10 @@
135
135
  align-items: center;
136
136
  margin-bottom: 8px;
137
137
  text-align: center;
138
- text-transform: uppercase;
139
138
 
140
139
  span {
141
140
  font-size: 13px;
141
+ text-transform: uppercase;
142
142
  }
143
143
 
144
144
  strong {
@@ -1,10 +1,10 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import dayjs from "dayjs";
3
- import timezonePlugin from "dayjs/plugin/timezone";
4
- import utcPlugin from "dayjs/plugin/utc";
3
+ import timezone from "dayjs/plugin/timezone";
4
+ import utc from "dayjs/plugin/utc";
5
5
  //#region src/plus/saasDevice/devicePasscodes/model.ts
6
- dayjs.extend(utcPlugin);
7
- dayjs.extend(timezonePlugin);
6
+ dayjs.extend(utc);
7
+ dayjs.extend(timezone);
8
8
  const INITIAL_DEVICE_PASSCODE_STATE = {
9
9
  deviceIds: [],
10
10
  devicesById: {}
@@ -6,12 +6,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
6
6
  import { locales } from "@pisell/utils";
7
7
  import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
8
8
  import { useRequest } from "ahooks";
9
- import timezonePlugin from "dayjs/plugin/timezone";
10
- import utcPlugin from "dayjs/plugin/utc";
9
+ import timezone from "dayjs/plugin/timezone";
10
+ import utc from "dayjs/plugin/utc";
11
11
  import "./index.less";
12
12
  //#region src/plus/walletPassGallery/components/timelineSection/index.tsx
13
- dayjs.extend(timezonePlugin);
14
- dayjs.extend(utcPlugin);
13
+ dayjs.extend(timezone);
14
+ dayjs.extend(utc);
15
15
  const stateTimeUnix = 1723255863;
16
16
  const POLL_INTERVAL = 2e3;
17
17
  const POLL_MAX_TIMES = 5;
@@ -8,7 +8,7 @@ import React, { useEffect, useRef, useState } from "react";
8
8
  import { Form, message } from "antd";
9
9
  import { locales } from "@pisell/utils";
10
10
  import { Button as Button$1, Input as Input$1 } from "@pisell/materials";
11
- import IconFont from "@pisell/materials/src/components/iconfont";
11
+ import Iconfont$1 from "@pisell/materials/src/components/iconfont";
12
12
  //#region src/pro/Login2.0/components/ForgotPasswordFlow.tsx
13
13
  /** 统一的忘记密码流程:确认账号 → 验证码 → 设置密码。 */
14
14
  function ForgotPasswordFlow({ initialEmail = "", accountType, onSendCode, onVerifyCode, onResetPassword, onSendResetLink, onLoadPasswordRules, onResetSuccess, onLoadingChange, passwordOptions, emailMaxLength, onBack, loading = false, countdown = 0, countries = [], defaultPhoneCountry }) {
@@ -208,7 +208,7 @@ function ForgotPasswordFlow({ initialEmail = "", accountType, onSendCode, onVeri
208
208
  className: "back-button-top",
209
209
  onClick: handleExit,
210
210
  "aria-label": "Go back"
211
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, locales.getText("pisell-forgot-password-title")), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, locales.getText(isEmail ? "pisell-forgot-password-desc" : "pisell-forgot-password-desc-phone")), /* @__PURE__ */ React.createElement(Form, {
211
+ }, /* @__PURE__ */ React.createElement(Iconfont$1, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, locales.getText("pisell-forgot-password-title")), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, locales.getText(isEmail ? "pisell-forgot-password-desc" : "pisell-forgot-password-desc-phone")), /* @__PURE__ */ React.createElement(Form, {
212
212
  form,
213
213
  layout: "vertical",
214
214
  size: "large",
@@ -2,7 +2,7 @@ import { formatVerificationAccount } from "../shared/formatVerificationAccount.j
2
2
  import React, { useEffect, useRef, useState } from "react";
3
3
  import { locales } from "@pisell/utils";
4
4
  import { Button } from "@pisell/materials";
5
- import IconFont from "@pisell/materials/src/components/iconfont";
5
+ import Iconfont$1 from "@pisell/materials/src/components/iconfont";
6
6
  import "../steps/steps.less";
7
7
  //#region src/pro/Login2.0/components/LoginCodeInput.tsx
8
8
  /**
@@ -99,7 +99,7 @@ function LoginCodeInput({ account, accountType, codeLength = 4, onSubmit, onRese
99
99
  className: "back-button-top",
100
100
  onClick: onBack,
101
101
  "aria-label": "Go back"
102
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ React.createElement("br", null), displayAccount), /* @__PURE__ */ React.createElement("div", {
102
+ }, /* @__PURE__ */ React.createElement(Iconfont$1, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ React.createElement("br", null), displayAccount), /* @__PURE__ */ React.createElement("div", {
103
103
  className: "code-input-group",
104
104
  onPaste: handlePaste
105
105
  }, code.map((digit, index) => /* @__PURE__ */ React.createElement("input", {
@@ -2,7 +2,7 @@ import { formatVerificationAccount } from "../shared/formatVerificationAccount.j
2
2
  import React, { useEffect, useRef, useState } from "react";
3
3
  import { locales } from "@pisell/utils";
4
4
  import { Button } from "@pisell/materials";
5
- import IconFont from "@pisell/materials/src/components/iconfont";
5
+ import Iconfont$1 from "@pisell/materials/src/components/iconfont";
6
6
  //#region src/pro/Login2.0/steps/CodeInput.tsx
7
7
  /**
8
8
  * 验证码输入页面(对应图3)
@@ -98,7 +98,7 @@ function CodeInput({ flowData, codeLength = 4, onSubmit, onResend, onBack, count
98
98
  className: "back-button-top",
99
99
  onClick: onBack,
100
100
  "aria-label": "Go back"
101
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ React.createElement("br", null), displayAccount), /* @__PURE__ */ React.createElement("div", {
101
+ }, /* @__PURE__ */ React.createElement(Iconfont$1, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ React.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ React.createElement("br", null), displayAccount), /* @__PURE__ */ React.createElement("div", {
102
102
  className: "code-input-group",
103
103
  onPaste: handlePaste
104
104
  }, code.map((digit, index) => /* @__PURE__ */ React.createElement("input", {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { locales } from "@pisell/utils";
3
- import IconFont from "@pisell/materials/src/components/iconfont";
3
+ import Iconfont from "@pisell/materials/src/components/iconfont";
4
4
  //#region src/pro/Login2.0/steps/EmailAlreadyRegistered.tsx
5
5
  /**
6
6
  * 账号已注册错误页面(对应图2)
@@ -12,7 +12,7 @@ function EmailAlreadyRegistered({ flowData, onGoToLogin, onBack }) {
12
12
  className: "back-button-top",
13
13
  onClick: onBack,
14
14
  "aria-label": "Go back"
15
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("p", { className: "email-already-registered-message" }, message), /* @__PURE__ */ React.createElement("div", { className: "register-login-prompt" }, /* @__PURE__ */ React.createElement("span", { className: "prompt-text" }, locales.getText("pisell-register2-have-account"), " "), /* @__PURE__ */ React.createElement("button", {
15
+ }, /* @__PURE__ */ React.createElement(Iconfont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("p", { className: "email-already-registered-message" }, message), /* @__PURE__ */ React.createElement("div", { className: "register-login-prompt" }, /* @__PURE__ */ React.createElement("span", { className: "prompt-text" }, locales.getText("pisell-register2-have-account"), " "), /* @__PURE__ */ React.createElement("button", {
16
16
  className: "login-link",
17
17
  onClick: onGoToLogin
18
18
  }, locales.getText("pisell-register2-login-link")))));
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { locales } from "@pisell/utils";
3
- import IconFont from "@pisell/materials/src/components/iconfont";
3
+ import Iconfont from "@pisell/materials/src/components/iconfont";
4
4
  //#region src/pro/Login2.0/steps/WaitEmailLink.tsx
5
5
  /**
6
6
  * 等待邮件链接验证页面(对应图1)
@@ -12,11 +12,11 @@ function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown = 0,
12
12
  className: "back-button-top",
13
13
  onClick: onBack,
14
14
  "aria-label": "Go back"
15
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("div", { className: "register-step-title-verify-email" }, locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ React.createElement("div", { className: "register-step-desc-verify-email" }, locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ React.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ React.createElement("span", { className: "email-text" }, displayEmail), onEditEmail && /* @__PURE__ */ React.createElement("button", {
15
+ }, /* @__PURE__ */ React.createElement(Iconfont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("div", { className: "register-step-title-verify-email" }, locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ React.createElement("div", { className: "register-step-desc-verify-email" }, locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ React.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ React.createElement("span", { className: "email-text" }, displayEmail), onEditEmail && /* @__PURE__ */ React.createElement("button", {
16
16
  className: "edit-email-btn",
17
17
  onClick: onEditEmail,
18
18
  "aria-label": "Edit email"
19
- }, /* @__PURE__ */ React.createElement(IconFont, {
19
+ }, /* @__PURE__ */ React.createElement(Iconfont, {
20
20
  type: "pisell2-edit-05",
21
21
  style: {
22
22
  fontSize: "20px",
@@ -135,10 +135,10 @@
135
135
  align-items: center;
136
136
  margin-bottom: 8px;
137
137
  text-align: center;
138
- text-transform: uppercase;
139
138
 
140
139
  span {
141
140
  font-size: 13px;
141
+ text-transform: uppercase;
142
142
  }
143
143
 
144
144
  strong {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.303",
3
+ "version": "6.12.305",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -71,11 +71,11 @@
71
71
  "react-zoom-pan-pinch": "^3.7.0",
72
72
  "styled-components": "^6.0.0-rc.3",
73
73
  "use-sync-external-store": "^1.6.0",
74
+ "@pisell/icon": "0.0.11",
75
+ "@pisell/utils": "3.0.7",
74
76
  "@pisell/pi-payment-sdk": "0.0.3",
75
77
  "@pisell/date-picker": "3.0.12",
76
- "@pisell/materials": "6.12.78",
77
- "@pisell/icon": "0.0.11",
78
- "@pisell/utils": "3.0.7"
78
+ "@pisell/materials": "6.12.78"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "^18.0.0",