@pisell/private-materials 6.7.2 → 6.7.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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/webPosLogin/WebPosLogin.js +11 -15
- package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/es/plus/webPosLogin/WebPosLoginCpt.less +0 -1
- package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
- package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
- package/es/pro/Login2.0/Login2.js +9 -3
- package/es/pro/Login2.0/index.less +0 -12
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/webPosLogin/WebPosLogin.js +22 -29
- package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/lib/plus/webPosLogin/WebPosLoginCpt.less +0 -1
- package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
- package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
- package/lib/pro/Login2.0/Login2.js +19 -9
- package/lib/pro/Login2.0/index.less +0 -12
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/package.json +2 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* 媒体轮播项
|
|
4
|
+
* @description 媒体展示区的轮播内容配置
|
|
5
|
+
*/
|
|
6
|
+
export interface CarouselItem {
|
|
7
|
+
/** 内容类型:图片或视频 */
|
|
8
|
+
type: 'image' | 'video' | 'logo';
|
|
9
|
+
/** 资源URL */
|
|
10
|
+
url: string;
|
|
11
|
+
/** 背景颜色 */
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
/** logo样式 */
|
|
14
|
+
logoStyle?: React.CSSProperties;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 媒体配置
|
|
18
|
+
* @description 媒体展示区域的配置
|
|
19
|
+
*/
|
|
20
|
+
export interface MediaConfig {
|
|
21
|
+
/** 轮播内容列表(图片/视频) */
|
|
22
|
+
carouselItems?: CarouselItem[];
|
|
23
|
+
/** 默认Logo(当无轮播时显示) */
|
|
24
|
+
logo?: string;
|
|
25
|
+
/** 品牌标语 */
|
|
26
|
+
slogan?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 视频播放状态
|
|
30
|
+
*/
|
|
31
|
+
export declare type VideoPlayState = 'idle' | 'playing' | 'paused' | 'ended' | 'error';
|
|
32
|
+
/**
|
|
33
|
+
* MediaDisplay 媒体展示组件 Props
|
|
34
|
+
*/
|
|
35
|
+
export interface MediaDisplayProps {
|
|
36
|
+
/** 品牌配置 */
|
|
37
|
+
config?: MediaConfig;
|
|
38
|
+
/** 自定义类名 */
|
|
39
|
+
className?: string;
|
|
40
|
+
/** 是否全屏模式 */
|
|
41
|
+
fullscreen?: boolean;
|
|
42
|
+
/** 视频是否静音,默认 true */
|
|
43
|
+
muted?: boolean;
|
|
44
|
+
/** 视频是否循环播放,默认 false */
|
|
45
|
+
loop?: boolean;
|
|
46
|
+
/** 视频播放结束回调 */
|
|
47
|
+
onVideoEnded?: () => void;
|
|
48
|
+
/** 视频播放状态变化回调 */
|
|
49
|
+
onVideoStateChange?: (state: VideoPlayState) => void;
|
|
50
|
+
/** 是否可以关闭(用于控制视频结束后是否允许关闭) */
|
|
51
|
+
canClose?: boolean;
|
|
52
|
+
/** 关闭回调(视频结束且 canClose 为 true 时触发) */
|
|
53
|
+
onClose?: () => void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/plus/webPosLogin/components/MediaDisplay/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -1030,17 +1030,27 @@ var Login2 = ({
|
|
|
1030
1030
|
),
|
|
1031
1031
|
showPasswordField && /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-form-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "remember_me", valuePropName: "checked", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_materials.Checkbox, { defaultChecked: rememberMe }, import_utils.locales.getText("pisell-login2-remember-me"))), /* @__PURE__ */ import_react.default.createElement("a", { className: "login2-link", onClick: handleForgotPasswordClick }, import_utils.locales.getText("pisell-login2-forgot-password"))),
|
|
1032
1032
|
/* @__PURE__ */ import_react.default.createElement(
|
|
1033
|
-
|
|
1033
|
+
import_antd.ConfigProvider,
|
|
1034
1034
|
{
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
onClick: handleFormSubmit,
|
|
1041
|
-
className: "login2-submit-button"
|
|
1035
|
+
theme: {
|
|
1036
|
+
token: {
|
|
1037
|
+
colorPrimary: (ui == null ? void 0 : ui.themeColor) || "#7F56D9"
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1042
1040
|
},
|
|
1043
|
-
|
|
1041
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
1042
|
+
import_materials.Button,
|
|
1043
|
+
{
|
|
1044
|
+
type: "primary",
|
|
1045
|
+
size: "large",
|
|
1046
|
+
block: true,
|
|
1047
|
+
htmlType: "button",
|
|
1048
|
+
loading,
|
|
1049
|
+
onClick: handleFormSubmit,
|
|
1050
|
+
className: "login2-submit-button"
|
|
1051
|
+
},
|
|
1052
|
+
isPasswordStep ? import_utils.locales.getText("pisell-login2-login-button") : isEmail ? import_utils.locales.getText("pisell-login2-continue-with-email") : import_utils.locales.getText("pisell-login2-continue-with-phone")
|
|
1053
|
+
)
|
|
1044
1054
|
),
|
|
1045
1055
|
showPasswordField && /* @__PURE__ */ import_react.default.createElement(
|
|
1046
1056
|
import_materials.Button,
|
|
@@ -325,18 +325,6 @@
|
|
|
325
325
|
font-weight: 600;
|
|
326
326
|
color: #ffffff;
|
|
327
327
|
|
|
328
|
-
&:hover:not(:disabled) {
|
|
329
|
-
background: #6941c6;
|
|
330
|
-
border-color: #6941c6;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
&:focus {
|
|
334
|
-
background: var(--theme-color, #7f56d9);
|
|
335
|
-
border-color: var(--theme-color, #7f56d9);
|
|
336
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05),
|
|
337
|
-
0px 0px 0px 4px rgba(127, 86, 217, 0.1);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
328
|
&:disabled {
|
|
341
329
|
background: #f2f4f7;
|
|
342
330
|
border-color: #f2f4f7;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.4",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
|
-
"@pisell/materials": "6.7.1",
|
|
65
64
|
"@pisell/utils": "3.0.2",
|
|
65
|
+
"@pisell/materials": "6.7.1",
|
|
66
66
|
"@pisell/date-picker": "3.0.7",
|
|
67
67
|
"@pisell/icon": "0.0.11"
|
|
68
68
|
},
|