@pisell/private-materials 6.3.93 → 6.3.95
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 +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
- package/es/components/schedules/model.d.ts +1 -9
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +3 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/es/plus/skuOptionsSelection/store/store.js +2 -1
- package/es/plus/skuOptionsSelection/types.d.ts +14 -0
- package/es/plus/skuOptionsSelection/types.js +4 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -2
- package/es/pro/Cards/components/SKUCard/index.d.ts +2 -56
- package/es/pro/Cards/components/SKUCard/index.js +51 -20
- package/es/pro/Cards/components/SKUCard/index.less +23 -2
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/locales.js +11 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Cards/components/SKUCard/types.js +1 -0
- package/es/pro/NumericStepper/index.d.ts +5 -0
- package/es/pro/NumericStepper/index.js +8 -2
- package/es/pro/NumericStepper/index.less +1 -9
- package/es/pro/Selector/BatchSelectorDemo.js +2 -12
- package/es/pro/Selector/Selector.js +6 -4
- package/es/pro/Selector/SelectorGroup.d.ts +1 -1
- package/es/pro/Selector/SelectorGroup.js +5 -1
- package/es/pro/Selector/components/Card/index.js +9 -7
- package/es/pro/Selector/components/Card/index.less +24 -15
- package/es/pro/Selector/components/Indicator/index.js +1 -1
- package/es/pro/Selector/components/Indicator/index.less +12 -12
- package/es/pro/Selector/components/Media/index.d.ts +1 -1
- package/es/pro/Selector/components/Media/index.less +1 -1
- package/es/pro/Selector/selectorGroup.less +9 -1
- package/es/pro/Selector/types.d.ts +10 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +8 -6
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/lib/plus/skuOptionsSelection/store/store.js +2 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +14 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +15 -9
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +9 -6
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -7
- package/lib/pro/Cards/components/SKUCard/index.d.ts +2 -56
- package/lib/pro/Cards/components/SKUCard/index.js +60 -15
- package/lib/pro/Cards/components/SKUCard/index.less +23 -2
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/locales.js +35 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Cards/components/SKUCard/types.js +17 -0
- package/lib/pro/NumericStepper/index.d.ts +5 -0
- package/lib/pro/NumericStepper/index.js +11 -3
- package/lib/pro/NumericStepper/index.less +1 -9
- package/lib/pro/Selector/BatchSelectorDemo.js +13 -19
- package/lib/pro/Selector/Selector.js +7 -1
- package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
- package/lib/pro/Selector/SelectorGroup.js +7 -1
- package/lib/pro/Selector/components/Card/index.js +10 -7
- package/lib/pro/Selector/components/Card/index.less +24 -15
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +12 -12
- package/lib/pro/Selector/components/Media/index.d.ts +1 -1
- package/lib/pro/Selector/components/Media/index.js +7 -4
- package/lib/pro/Selector/components/Media/index.less +1 -1
- package/lib/pro/Selector/selectorGroup.less +9 -1
- package/lib/pro/Selector/types.d.ts +10 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/lowcode/selector/meta.ts +15 -2
- package/lowcode/selector.group/meta.ts +15 -2
- package/lowcode/sku-options-selection/meta.ts +106 -2
- package/package.json +2 -2
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/device.d.ts +0 -9
- package/es/components/eftpos/hooks.d.ts +0 -34
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/device.d.ts +0 -9
- package/lib/components/eftpos/hooks.d.ts +0 -34
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/lib/test/setup.d.ts +0 -1
|
@@ -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/pro/Cards/components/SKUCard/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -37,6 +37,7 @@ var import_react = require("react");
|
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
39
|
var import_keyboards = require("../keyboards");
|
|
40
|
+
var import_useThemeTokens = __toESM(require("../../hooks/useThemeTokens"));
|
|
40
41
|
var import_index = require("./index.less");
|
|
41
42
|
var NumericStepper = ({
|
|
42
43
|
value,
|
|
@@ -55,13 +56,15 @@ var NumericStepper = ({
|
|
|
55
56
|
horizontalPadding = 0,
|
|
56
57
|
variant = "separated",
|
|
57
58
|
enableInput = true,
|
|
58
|
-
displayMaxWidth
|
|
59
|
+
displayMaxWidth,
|
|
60
|
+
theme
|
|
59
61
|
}) => {
|
|
60
62
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
61
63
|
const [internalValue, setInternalValue] = (0, import_react.useState)(
|
|
62
64
|
value !== void 0 ? value : defaultValue
|
|
63
65
|
);
|
|
64
66
|
const _isMobile = (0, import_react.useMemo)(() => (0, import_utils.isMobile)(), [import_utils.isMobile]);
|
|
67
|
+
const { colorPrimary } = (0, import_useThemeTokens.default)(theme);
|
|
65
68
|
const [tempValue, setTempValue] = (0, import_react.useState)("");
|
|
66
69
|
const currentValue = value !== void 0 ? value : internalValue;
|
|
67
70
|
(0, import_react.useEffect)(() => {
|
|
@@ -192,7 +195,9 @@ var NumericStepper = ({
|
|
|
192
195
|
if (isPlusOnly) {
|
|
193
196
|
return null;
|
|
194
197
|
}
|
|
195
|
-
const displayWrapperStyle = variant === "capsule" && displayMaxWidth ? {
|
|
198
|
+
const displayWrapperStyle = variant === "capsule" && displayMaxWidth ? {
|
|
199
|
+
maxWidth: typeof displayMaxWidth === "number" ? `${displayMaxWidth}px` : displayMaxWidth
|
|
200
|
+
} : {};
|
|
196
201
|
const displayElement = /* @__PURE__ */ React.createElement(
|
|
197
202
|
"span",
|
|
198
203
|
{
|
|
@@ -295,7 +300,10 @@ var NumericStepper = ({
|
|
|
295
300
|
"div",
|
|
296
301
|
{
|
|
297
302
|
className: stepperClasses,
|
|
298
|
-
style:
|
|
303
|
+
style: {
|
|
304
|
+
...(styles == null ? void 0 : styles.container) || {},
|
|
305
|
+
["--color-primary"]: colorPrimary
|
|
306
|
+
},
|
|
299
307
|
onClick: (e) => e.stopPropagation()
|
|
300
308
|
},
|
|
301
309
|
_minus,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// ========== 变量定义 ==========
|
|
2
|
-
@primary-color: #
|
|
3
|
-
@primary-hover: #6b46c1;
|
|
4
|
-
@primary-active: #553c9a;
|
|
2
|
+
@primary-color: var(--color-primary, #5d3f9f);
|
|
5
3
|
|
|
6
4
|
@text-color: #101828;
|
|
7
5
|
@text-secondary: #344054;
|
|
@@ -77,13 +75,7 @@
|
|
|
77
75
|
align-items: center;
|
|
78
76
|
display: flex;
|
|
79
77
|
height: 100%;
|
|
80
|
-
|
|
81
|
-
&:hover .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
82
|
-
background-color: @primary-hover;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
78
|
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
86
|
-
background-color: @primary-active;
|
|
87
79
|
transform: scale(0.95);
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -49,22 +49,21 @@ var dataSource = [
|
|
|
49
49
|
{ id: 1, title: "汉堡", value: "burger" },
|
|
50
50
|
{ id: 2, title: "披萨", value: "pizza" }
|
|
51
51
|
],
|
|
52
|
-
grid: {
|
|
53
|
-
columns: 2,
|
|
54
|
-
gutter: 16,
|
|
55
|
-
colConfig: {
|
|
56
|
-
span: 3
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
52
|
ruleConfig: {
|
|
60
53
|
required: 1,
|
|
61
54
|
autoValidate: true
|
|
62
55
|
},
|
|
63
56
|
titleProps: {
|
|
64
|
-
renderExtra: () => /* @__PURE__ */ import_react.default.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
renderExtra: () => /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
style: {
|
|
61
|
+
flex: 1,
|
|
62
|
+
textAlign: "right"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"额外内容"
|
|
66
|
+
)
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
69
|
{
|
|
@@ -124,10 +123,6 @@ var dataSource = [
|
|
|
124
123
|
cover: "https://file.mypisell-dev.com/pisel/image/9/52fe9ca4233877f2c06865d27b9fb7912022_12_01_13_32_47_147_00076174656__1080_1073__.jpeg"
|
|
125
124
|
}
|
|
126
125
|
],
|
|
127
|
-
grid: {
|
|
128
|
-
columns: 3,
|
|
129
|
-
gutter: 16
|
|
130
|
-
},
|
|
131
126
|
variant: "card",
|
|
132
127
|
itemProps: {
|
|
133
128
|
layout: "vertical",
|
|
@@ -252,7 +247,8 @@ var BatchSelectorDemo = () => {
|
|
|
252
247
|
padding: "0",
|
|
253
248
|
margin: "0 auto",
|
|
254
249
|
height: "100vh",
|
|
255
|
-
overflow: "auto"
|
|
250
|
+
overflow: "auto",
|
|
251
|
+
"--theme-color": "#5d3f9f"
|
|
256
252
|
},
|
|
257
253
|
ref: containerRef
|
|
258
254
|
},
|
|
@@ -632,9 +628,7 @@ var BatchSelectorDemo = () => {
|
|
|
632
628
|
{
|
|
633
629
|
type: "expr",
|
|
634
630
|
when: {
|
|
635
|
-
and: [
|
|
636
|
-
{ groupId: "31", op: "in", value: ["single", "double"] }
|
|
637
|
-
]
|
|
631
|
+
and: [{ groupId: "31", op: "in", value: ["single", "double"] }]
|
|
638
632
|
},
|
|
639
633
|
then: [
|
|
640
634
|
{
|
|
@@ -45,6 +45,7 @@ var import_NumericStepper = __toESM(require("../NumericStepper"));
|
|
|
45
45
|
var import_useSelectionController = __toESM(require("./hooks/useSelectionController"));
|
|
46
46
|
var import_usePresetProps = __toESM(require("./hooks/usePresetProps"));
|
|
47
47
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
48
|
+
var import_useThemeTokens = __toESM(require("../../hooks/useThemeTokens"));
|
|
48
49
|
var import_Item = __toESM(require("./Item"));
|
|
49
50
|
var import_selector = require("./selector.less");
|
|
50
51
|
var ATag = import_antd.Tag;
|
|
@@ -73,6 +74,7 @@ var Selector = (0, import_react.forwardRef)((props, ref) => {
|
|
|
73
74
|
valueType = "primitive",
|
|
74
75
|
variant = "default"
|
|
75
76
|
} = props;
|
|
77
|
+
const { colorPrimary, colorPrimaryBg } = (0, import_useThemeTokens.default)(props.theme);
|
|
76
78
|
const context = (0, import_useEngineContext.default)();
|
|
77
79
|
import_utils.locales.init(
|
|
78
80
|
import_locales.default,
|
|
@@ -328,7 +330,11 @@ var Selector = (0, import_react.forwardRef)((props, ref) => {
|
|
|
328
330
|
{
|
|
329
331
|
id: `pisell-pro-selector-${props.id}`,
|
|
330
332
|
className: (0, import_classnames.default)("pisell-pro-selector", props.className),
|
|
331
|
-
style:
|
|
333
|
+
style: {
|
|
334
|
+
...props.style || {},
|
|
335
|
+
["--color-primary"]: colorPrimary,
|
|
336
|
+
["--color-primary-bg"]: colorPrimaryBg
|
|
337
|
+
}
|
|
332
338
|
},
|
|
333
339
|
renderHeader(),
|
|
334
340
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SelectionValue, SelectorGroupProps } from './types';
|
|
2
|
+
import type { SelectionValue, SelectorGroupProps } from './types';
|
|
3
3
|
import './selectorGroup.less';
|
|
4
4
|
export declare type SelectorGroupRef = {
|
|
5
5
|
getValues: (includeHidden?: boolean) => Record<string, SelectionValue>;
|
|
@@ -38,6 +38,7 @@ var import_lodash = require("lodash");
|
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
39
|
var import_locales = __toESM(require("./locales"));
|
|
40
40
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
41
|
+
var import_useThemeTokens = __toESM(require("../../hooks/useThemeTokens"));
|
|
41
42
|
var import_Selector = __toESM(require("./Selector"));
|
|
42
43
|
var import_utils2 = require("./utils");
|
|
43
44
|
var import_IntersectionObserver = require("./components/IntersectionObserver");
|
|
@@ -59,6 +60,7 @@ var SelectorGroup = (0, import_react.forwardRef)(
|
|
|
59
60
|
preserve: preserveDefault = false,
|
|
60
61
|
style
|
|
61
62
|
} = props;
|
|
63
|
+
const { colorPrimary, colorPrimaryBg } = (0, import_useThemeTokens.default)(props.theme);
|
|
62
64
|
const [activeIndex, setActiveIndex] = (0, import_react.useState)(-1);
|
|
63
65
|
const isManualChangeIndexRef = (0, import_react.useRef)(false);
|
|
64
66
|
const containerRef = (0, import_react.useRef)(null);
|
|
@@ -511,7 +513,11 @@ var SelectorGroup = (0, import_react.forwardRef)(
|
|
|
511
513
|
`pisell-batch-selector-${_uniqueId}`
|
|
512
514
|
),
|
|
513
515
|
ref: containerRef,
|
|
514
|
-
style
|
|
516
|
+
style: {
|
|
517
|
+
...style || {},
|
|
518
|
+
["--color-primary"]: colorPrimary,
|
|
519
|
+
["--color-primary-bg"]: colorPrimaryBg
|
|
520
|
+
}
|
|
515
521
|
},
|
|
516
522
|
renderTabs(),
|
|
517
523
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -54,13 +54,16 @@ var Card = ({
|
|
|
54
54
|
className,
|
|
55
55
|
style
|
|
56
56
|
}) => {
|
|
57
|
-
const styleProps =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
const styleProps = (0, import_react.useMemo)(
|
|
58
|
+
() => ({
|
|
59
|
+
selected,
|
|
60
|
+
disabled,
|
|
61
|
+
hoverable,
|
|
62
|
+
variant,
|
|
63
|
+
layout
|
|
64
|
+
}),
|
|
65
|
+
[selected, disabled, hoverable, variant, layout]
|
|
66
|
+
);
|
|
64
67
|
const containerStyle = (0, import_react.useMemo)(() => {
|
|
65
68
|
if (!(styles == null ? void 0 : styles.container)) return style;
|
|
66
69
|
const customStyle = typeof styles.container === "function" ? styles.container(styleProps) : styles.container;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Card组件样式 */
|
|
2
2
|
.pisell-pro-card {
|
|
3
3
|
position: relative;
|
|
4
|
-
display:
|
|
4
|
+
display: flex;
|
|
5
5
|
border-radius: 8px;
|
|
6
6
|
transition: all 0.2s;
|
|
7
7
|
box-sizing: border-box;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* 布局样式 */
|
|
23
23
|
&-vertical {
|
|
24
24
|
border-radius: 12px;
|
|
25
|
+
flex-direction: column;
|
|
25
26
|
|
|
26
27
|
.pisell-pro-card_content {
|
|
27
28
|
flex: 1;
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
align-items: center;
|
|
33
34
|
justify-content: center;
|
|
34
35
|
margin: 0;
|
|
36
|
+
padding: 0;
|
|
35
37
|
height: 64px;
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -42,12 +44,18 @@
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
&-horizontal {
|
|
45
|
-
|
|
47
|
+
flex-direction: row;
|
|
46
48
|
align-items: center;
|
|
47
49
|
gap: 10px;
|
|
48
50
|
|
|
49
51
|
&.pisell-pro-card-actions-left {
|
|
50
|
-
|
|
52
|
+
.pisell-pro-card_actions {
|
|
53
|
+
order: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pisell-pro-card_content {
|
|
57
|
+
order: 1;
|
|
58
|
+
}
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
.pisell-pro-card_content {
|
|
@@ -61,6 +69,7 @@
|
|
|
61
69
|
margin: 0;
|
|
62
70
|
padding: 0;
|
|
63
71
|
height: 100%;
|
|
72
|
+
order: 1;
|
|
64
73
|
}
|
|
65
74
|
|
|
66
75
|
.pisell-pro-card_actions-item {
|
|
@@ -94,34 +103,34 @@
|
|
|
94
103
|
/* 选中状态 - outlined类型 */
|
|
95
104
|
&-selected&-selected-outlined {
|
|
96
105
|
&.pisell-pro-card-outlined {
|
|
97
|
-
border-color: #
|
|
98
|
-
background-color: #f9f5ff;
|
|
106
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
107
|
+
background-color: var(--color-primary-bg, #f9f5ff);
|
|
99
108
|
}
|
|
100
109
|
|
|
101
110
|
&.pisell-pro-card-borderless {
|
|
102
|
-
border-color: #
|
|
111
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
103
112
|
}
|
|
104
113
|
.pisell-pro-card_content {
|
|
105
|
-
color: #
|
|
114
|
+
color: var(--color-primary, #5d3f9f);
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
|
|
109
118
|
/* 选中状态 - outlined-bold类型(加粗边框,使用 outline 实现不影响布局) */
|
|
110
119
|
&-selected&-selected-outlined-bold {
|
|
111
120
|
&.pisell-pro-card-outlined {
|
|
112
|
-
border-color: #
|
|
113
|
-
background-color: #f9f5ff;
|
|
114
|
-
outline: 2px solid #
|
|
121
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
122
|
+
background-color: var(--color-primary-bg, #f9f5ff);
|
|
123
|
+
outline: 2px solid var(--color-primary, #5d3f9f);
|
|
115
124
|
outline-offset: -2px;
|
|
116
125
|
}
|
|
117
126
|
|
|
118
127
|
&.pisell-pro-card-borderless {
|
|
119
|
-
border-color: #
|
|
120
|
-
outline: 2px solid #
|
|
128
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
129
|
+
outline: 2px solid var(--color-primary, #5d3f9f);
|
|
121
130
|
outline-offset: -2px;
|
|
122
131
|
}
|
|
123
132
|
.pisell-pro-card_content {
|
|
124
|
-
color: #
|
|
133
|
+
color: var(--color-primary, #5d3f9f);
|
|
125
134
|
}
|
|
126
135
|
}
|
|
127
136
|
|
|
@@ -129,9 +138,9 @@
|
|
|
129
138
|
&-selected&-selected-filled {
|
|
130
139
|
&.pisell-pro-card-outlined,
|
|
131
140
|
&.pisell-pro-card-borderless {
|
|
132
|
-
background-color: #
|
|
141
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
133
142
|
color: #ffffff;
|
|
134
|
-
border-color: #
|
|
143
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
135
144
|
|
|
136
145
|
.pisell-pro-card_content {
|
|
137
146
|
color: #ffffff;
|
|
@@ -115,7 +115,7 @@ var Indicator = (props) => {
|
|
|
115
115
|
)
|
|
116
116
|
);
|
|
117
117
|
};
|
|
118
|
-
return /* @__PURE__ */ import_react.default.createElement("label", { className: classes, style: styles.container }, /* @__PURE__ */ import_react.default.createElement(
|
|
118
|
+
return /* @__PURE__ */ import_react.default.createElement("label", { className: classes, style: styles == null ? void 0 : styles.container }, /* @__PURE__ */ import_react.default.createElement(
|
|
119
119
|
"input",
|
|
120
120
|
{
|
|
121
121
|
type: mode === "single" ? "radio" : "checkbox",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
position: relative;
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
border: 1px solid #d0d5dd;
|
|
29
|
-
background-color: #ffffff;
|
|
30
29
|
display: flex;
|
|
31
30
|
align-items: center;
|
|
32
31
|
justify-content: center;
|
|
@@ -55,38 +54,39 @@
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
&-single.pisell-pro-indicator-outlined.pisell-pro-indicator-checked &-inner {
|
|
58
|
-
border-color: #
|
|
59
|
-
background-color:
|
|
57
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
58
|
+
background-color: var(--color-primary-bg, transparent);
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
&-single.pisell-pro-indicator-outlined &-dot {
|
|
63
62
|
width: 45%;
|
|
64
63
|
height: 45%;
|
|
65
|
-
background-color: #
|
|
64
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
66
65
|
border-radius: 50%;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
&-single.pisell-pro-indicator-filled.pisell-pro-indicator-checked &-inner {
|
|
70
|
-
border-color: #
|
|
71
|
-
background-color: #
|
|
69
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
70
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
&-single.pisell-pro-indicator-filled &-check-icon {
|
|
75
74
|
color: #ffffff;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
&-multiple.pisell-pro-indicator-outlined.pisell-pro-indicator-checked
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
&-multiple.pisell-pro-indicator-outlined.pisell-pro-indicator-checked
|
|
78
|
+
&-inner {
|
|
79
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
80
|
+
background-color: var(--color-primary-bg, transparent);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&-multiple.pisell-pro-indicator-outlined &-check-icon {
|
|
84
|
-
color: #
|
|
84
|
+
color: var(--color-primary, #5d3f9f);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&-multiple.pisell-pro-indicator-filled.pisell-pro-indicator-checked &-inner {
|
|
88
|
-
border-color: #
|
|
89
|
-
background-color: #
|
|
88
|
+
border-color: var(--color-primary, #5d3f9f);
|
|
89
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&-multiple.pisell-pro-indicator-filled &-check-icon {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
import type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType } from './types';
|
|
4
|
-
export type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType };
|
|
4
|
+
export type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType, };
|
|
5
5
|
declare const Media: React.FC<MediaProps>;
|
|
6
6
|
export default Media;
|
|
@@ -164,10 +164,13 @@ var Media = ({
|
|
|
164
164
|
const renderIndicator = () => {
|
|
165
165
|
if (!showIndicator || !indicator || !selected) return null;
|
|
166
166
|
if (import_react.default.isValidElement(indicator)) {
|
|
167
|
-
const clonedIndicator = import_react.default.cloneElement(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
const clonedIndicator = import_react.default.cloneElement(
|
|
168
|
+
indicator,
|
|
169
|
+
{
|
|
170
|
+
size: indicatorSize,
|
|
171
|
+
variant: "filled"
|
|
172
|
+
}
|
|
173
|
+
);
|
|
171
174
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
172
175
|
"div",
|
|
173
176
|
{
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
.pisell-batch-selector {
|
|
2
2
|
.pisell-product-select__tabs-wrapper {
|
|
3
3
|
padding: 16px 0;
|
|
4
|
+
|
|
5
|
+
.pisell-tabstruct-item--selected {
|
|
6
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pisell-tabstruct-selection {
|
|
10
|
+
background-color: var(--color-primary, #5d3f9f);
|
|
11
|
+
}
|
|
4
12
|
}
|
|
5
13
|
|
|
6
14
|
&__content {
|
|
@@ -13,4 +21,4 @@
|
|
|
13
21
|
padding-top: 16px;
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
|
-
}
|
|
24
|
+
}
|
|
@@ -158,6 +158,11 @@ export declare type HeaderProps = {
|
|
|
158
158
|
};
|
|
159
159
|
export interface SelectorProps<T = OptionKey> extends GroupItem {
|
|
160
160
|
className?: string;
|
|
161
|
+
theme?: {
|
|
162
|
+
token?: {
|
|
163
|
+
colorPrimary?: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
161
166
|
value?: SelectionValue<T>;
|
|
162
167
|
defaultValue?: SelectionValue<T>;
|
|
163
168
|
onChange?: (value: SelectionValue<T>) => void;
|
|
@@ -201,6 +206,11 @@ export interface SelectorGroupProps {
|
|
|
201
206
|
dataSource: GroupItem[];
|
|
202
207
|
defaultValue?: Record<string, SelectionValue>;
|
|
203
208
|
linkageRules?: ExprRule[] | Record<string, any>;
|
|
209
|
+
theme?: {
|
|
210
|
+
token?: {
|
|
211
|
+
colorPrimary?: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
204
214
|
onChange?: (values: Record<string, SelectionValue>) => void;
|
|
205
215
|
preserve?: boolean;
|
|
206
216
|
tabProps?: {
|
|
@@ -9,7 +9,7 @@ const EcoCustomerListMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/private-materials",
|
|
12
|
-
"version": "6.3.
|
|
12
|
+
"version": "6.3.94",
|
|
13
13
|
"exportName": "EcoCustomerList",
|
|
14
14
|
"main": "src/index.ts",
|
|
15
15
|
"destructuring": true,
|
package/lowcode/selector/meta.ts
CHANGED
|
@@ -303,11 +303,24 @@ export const SelectorPropsConfig: IPublicTypeFieldConfig[] = [
|
|
|
303
303
|
componentName: 'JsonSetter',
|
|
304
304
|
},
|
|
305
305
|
},
|
|
306
|
+
{
|
|
307
|
+
name: 'theme',
|
|
308
|
+
title: {
|
|
309
|
+
label: {
|
|
310
|
+
type: 'i18n',
|
|
311
|
+
'en-US': 'Theme',
|
|
312
|
+
'zh-CN': '主题',
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
setter: {
|
|
316
|
+
componentName: 'JsonSetter',
|
|
317
|
+
},
|
|
318
|
+
}
|
|
306
319
|
];
|
|
307
320
|
|
|
308
321
|
const SelectorMeta: IPublicTypeComponentMetadata = {
|
|
309
322
|
componentName: 'Selector',
|
|
310
|
-
title: '
|
|
323
|
+
title: 'Selector',
|
|
311
324
|
category: '表单',
|
|
312
325
|
docUrl: '',
|
|
313
326
|
screenshot: '',
|
|
@@ -342,7 +355,7 @@ const SelectorMeta: IPublicTypeComponentMetadata = {
|
|
|
342
355
|
|
|
343
356
|
const snippets: IPublicTypeSnippet[] = [
|
|
344
357
|
{
|
|
345
|
-
title: '
|
|
358
|
+
title: 'Selector',
|
|
346
359
|
screenshot: '',
|
|
347
360
|
schema: {
|
|
348
361
|
componentName: 'Selector',
|
|
@@ -6,7 +6,7 @@ function uuid() {
|
|
|
6
6
|
|
|
7
7
|
const SelectorGroupMeta = {
|
|
8
8
|
componentName: 'Selector.Group',
|
|
9
|
-
title: '
|
|
9
|
+
title: 'Selector Group',
|
|
10
10
|
category: '表单',
|
|
11
11
|
docUrl: '',
|
|
12
12
|
screenshot: '',
|
|
@@ -191,6 +191,19 @@ const SelectorGroupMeta = {
|
|
|
191
191
|
},
|
|
192
192
|
setter: 'StringSetter',
|
|
193
193
|
},
|
|
194
|
+
{
|
|
195
|
+
name: 'theme',
|
|
196
|
+
title: {
|
|
197
|
+
label: {
|
|
198
|
+
type: 'i18n',
|
|
199
|
+
'en-US': 'Theme',
|
|
200
|
+
'zh-CN': '主题',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
setter: {
|
|
204
|
+
componentName: 'JsonSetter',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
194
207
|
],
|
|
195
208
|
supports: {
|
|
196
209
|
style: true,
|
|
@@ -208,7 +221,7 @@ const SelectorGroupMeta = {
|
|
|
208
221
|
|
|
209
222
|
const snippets = [
|
|
210
223
|
{
|
|
211
|
-
title: '
|
|
224
|
+
title: 'Selector Group',
|
|
212
225
|
screenshot: '',
|
|
213
226
|
schema: {
|
|
214
227
|
componentName: 'Selector.Group',
|