@pisell/materials 6.11.268 → 6.11.271
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/meta.js +3 -3
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +48 -48
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +48 -48
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -2
- package/es/components/PisellBrand/PisellBrand.d.ts +31 -0
- package/es/components/PisellBrand/PisellBrand.js +48 -0
- package/es/components/PisellBrand/README.md +68 -0
- package/es/components/PisellBrand/index.d.ts +1 -0
- package/es/components/PisellBrand/index.less +133 -0
- package/es/components/PisellBrand/locales.js +26 -0
- package/es/components/PisellBrand/logo.js +3 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -2
- package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -2
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +2 -2
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +2 -2
- package/es/components/PisellCards/index.d.ts +6 -5
- package/es/components/PisellGroupView/PisellGroupView.d.ts +2 -2
- package/es/components/PisellLayouts/index.d.ts +2 -2
- package/es/components/PisellMetrics/index.d.ts +2 -2
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +4 -4
- package/es/components/appVersionControl/index.d.ts +2 -2
- package/es/components/auto-complete-number/index.d.ts +2 -2
- package/es/components/badge/index.d.ts +2 -2
- package/es/components/batch-editor/index.d.ts +2 -2
- package/es/components/calendar/index.d.ts +3 -1
- package/es/components/cardMetricItem/index.d.ts +1 -1
- package/es/components/cardPro/index.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +3 -1
- package/es/components/classicLayout/index.d.ts +2 -2
- package/es/components/config-provider/index.d.ts +2 -3
- package/es/components/customSelect/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/es/components/date-picker/index.d.ts +3 -1
- package/es/components/drag-sort-tree/index.d.ts +2 -2
- package/es/components/dropdown/index.d.ts +3 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/list/index.d.ts +2 -2
- package/es/components/lowCodePage/index.d.ts +3 -2
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +3 -1
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
- package/es/components/pisellAdjustPrice/index.d.ts +2 -2
- package/es/components/pisellAlert/index.d.ts +1 -1
- package/es/components/pisellCard/index.d.ts +2 -2
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/es/components/pisellCountdown/index.d.ts +1 -1
- package/es/components/pisellDatePicker/index.d.ts +3 -1
- package/es/components/pisellDraggable/index.d.ts +1 -1
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellFilter/index.d.ts +2 -2
- package/es/components/pisellFloatingPanel/index.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/es/components/pisellGoodPassCard/index.d.ts +1 -1
- package/es/components/pisellGridPro/GridView/index.d.ts +2 -2
- package/es/components/pisellInformationEntry/index.d.ts +1 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -1
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -1
- package/es/components/pisellInput/index.d.ts +5 -5
- package/es/components/pisellLoading/index.d.ts +2 -2
- package/es/components/pisellLookup/PisellLookup.less +4 -1
- package/es/components/pisellLookup/components/LookupResultHost.js +6 -3
- package/es/components/pisellLookup/components/LookupTrigger.js +1 -0
- package/es/components/pisellModal/index.d.ts +2 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellSort/index.d.ts +2 -2
- package/es/components/pisellStatisticList/index.d.ts +1 -1
- package/es/components/pisellTags/index.d.ts +1 -1
- package/es/components/pisellText/index.d.ts +2 -2
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/es/components/pisellTooltip/index.d.ts +2 -2
- package/es/components/pisellUpload/index.d.ts +2 -2
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/types.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/variants/A12/index.js +7 -3
- package/es/components/productCard/cartSkuCard/variants/A12/index.less +31 -0
- package/es/components/qrcode/index.d.ts +3 -2
- package/es/components/radio/index.d.ts +3 -1
- package/es/components/section-footers/index.d.ts +3 -1
- package/es/components/segmented/index.d.ts +2 -2
- package/es/components/select-time/index.d.ts +2 -2
- package/es/components/skeleton/index.d.ts +3 -1
- package/es/components/slider/index.d.ts +3 -2
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +3 -1
- package/es/components/upload/index.d.ts +3 -1
- package/es/components/versionSelect/index.d.ts +1 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +2 -2
- package/es/components/virtual-keyboard/Number/index.d.ts +2 -2
- package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/es/components/virtual-keyboard/index.d.ts +1 -1
- package/es/hooks/useTranslationOriginal.js +2 -2
- package/es/index.d.ts +4 -1
- package/es/index.js +3 -1
- package/es/theme/provider/README.md +90 -0
- package/es/theme/provider/index.d.ts +14 -0
- package/es/theme/provider/index.js +25 -0
- package/es/theme/provider/tokens.d.ts +31 -0
- package/es/theme/provider/tokens.js +33 -0
- package/es/theme/tokens.js +0 -3
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -1
- package/lib/components/PisellBrand/PisellBrand.d.ts +31 -0
- package/lib/components/PisellBrand/PisellBrand.js +50 -0
- package/lib/components/PisellBrand/README.md +68 -0
- package/lib/components/PisellBrand/index.d.ts +1 -0
- package/lib/components/PisellBrand/index.less +133 -0
- package/lib/components/PisellBrand/locales.js +26 -0
- package/lib/components/PisellBrand/logo.js +3 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -1
- package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -1
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +2 -1
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +2 -1
- package/lib/components/PisellCards/index.d.ts +6 -5
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +2 -1
- package/lib/components/PisellLayouts/index.d.ts +2 -2
- package/lib/components/PisellMetrics/index.d.ts +2 -2
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +4 -4
- package/lib/components/appVersionControl/index.d.ts +2 -1
- package/lib/components/auto-complete-number/index.d.ts +2 -1
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/batch-editor/index.d.ts +2 -1
- package/lib/components/calendar/index.d.ts +4 -1
- package/lib/components/cardMetricItem/index.d.ts +1 -1
- package/lib/components/cardPro/index.d.ts +2 -1
- package/lib/components/checkbox/index.d.ts +4 -1
- package/lib/components/classicLayout/index.d.ts +2 -1
- package/lib/components/config-provider/index.d.ts +2 -1
- package/lib/components/customSelect/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +4 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/lib/components/date-picker/index.d.ts +4 -1
- package/lib/components/drag-sort-tree/index.d.ts +2 -1
- package/lib/components/dropdown/index.d.ts +3 -1
- package/lib/components/filter/index.d.ts +2 -1
- package/lib/components/keyboard/index.d.ts +1 -1
- package/lib/components/list/index.d.ts +2 -2
- package/lib/components/lowCodePage/index.d.ts +3 -1
- package/lib/components/page/index.d.ts +2 -1
- package/lib/components/page/index.js +7 -5
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +2 -1
- package/lib/components/pisellAlert/index.d.ts +1 -1
- package/lib/components/pisellCard/index.d.ts +2 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/lib/components/pisellCountdown/index.d.ts +1 -1
- package/lib/components/pisellDatePicker/index.d.ts +4 -1
- package/lib/components/pisellDraggable/index.d.ts +1 -1
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellFilter/index.d.ts +2 -1
- package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
- package/lib/components/pisellGridPro/GridView/index.d.ts +2 -1
- package/lib/components/pisellInformationEntry/index.d.ts +1 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +5 -5
- package/lib/components/pisellLoading/index.d.ts +2 -1
- package/lib/components/pisellLookup/PisellLookup.less +4 -1
- package/lib/components/pisellLookup/components/LookupResultHost.js +6 -3
- package/lib/components/pisellLookup/components/LookupTrigger.js +1 -0
- package/lib/components/pisellModal/index.d.ts +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -2
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellSort/index.d.ts +2 -1
- package/lib/components/pisellStatisticList/index.d.ts +1 -1
- package/lib/components/pisellTags/index.d.ts +1 -1
- package/lib/components/pisellText/index.d.ts +2 -2
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/lib/components/pisellTooltip/index.d.ts +2 -1
- package/lib/components/pisellUpload/index.d.ts +2 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/types.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/variants/A12/index.js +7 -3
- package/lib/components/productCard/cartSkuCard/variants/A12/index.less +31 -0
- package/lib/components/qrcode/index.d.ts +3 -1
- package/lib/components/radio/index.d.ts +4 -1
- package/lib/components/section-footers/index.d.ts +3 -1
- package/lib/components/segmented/index.d.ts +2 -1
- package/lib/components/select-time/index.d.ts +2 -1
- package/lib/components/skeleton/index.d.ts +4 -1
- package/lib/components/slider/index.d.ts +3 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +4 -1
- package/lib/components/upload/index.d.ts +4 -1
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +2 -1
- package/lib/components/virtual-keyboard/Number/index.d.ts +2 -1
- package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/index.d.ts +1 -1
- package/lib/hooks/useTranslationOriginal.js +2 -2
- package/lib/index.d.ts +4 -1
- package/lib/index.js +277 -272
- package/lib/theme/provider/README.md +90 -0
- package/lib/theme/provider/index.d.ts +14 -0
- package/lib/theme/provider/index.js +28 -0
- package/lib/theme/provider/tokens.d.ts +31 -0
- package/lib/theme/provider/tokens.js +34 -0
- package/lib/theme/tokens.js +0 -3
- package/package.json +3 -3
package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RecordBoardCalendarProps } from "../../types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
|
|
5
5
|
type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
|
|
@@ -10,6 +10,6 @@ type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
|
|
|
10
10
|
* 只做「占位与裁剪高度」;本组件根节点负责在同一 flex 列里向下传递 **min-height:0**,避免 `BookingCalendar`
|
|
11
11
|
* 撑破壳层(一层即可,历史上曾双包一层重复 flex+overflow)。
|
|
12
12
|
*/
|
|
13
|
-
declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): JSX.Element;
|
|
13
|
+
declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): React.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { PisellRecordBoardCalendarView, PisellRecordBoardCalendarViewProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellReservationScheduleProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/pisellReservationSchedule/PisellReservationSchedule.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* 营业日导航条:上一日、中间日期文案、下一日(深色条样式,适配预约顶栏)
|
|
6
6
|
*/
|
|
7
|
-
declare function PisellReservationSchedule(props: PisellReservationScheduleProps): JSX.Element;
|
|
7
|
+
declare function PisellReservationSchedule(props: PisellReservationScheduleProps): React.JSX.Element;
|
|
8
8
|
declare namespace PisellReservationSchedule {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellReservationScheduleBandProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* 预约顶栏组合:营业日切换 + 锚定到选中日的时间导航轴
|
|
6
6
|
*/
|
|
7
|
-
declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): JSX.Element;
|
|
7
|
+
declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): React.JSX.Element;
|
|
8
8
|
declare namespace PisellReservationScheduleBand {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -18,6 +18,6 @@ interface PisellRowProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
18
18
|
* @Author: zhiwei.Wang
|
|
19
19
|
* @Date: 2024-08-16 10:38
|
|
20
20
|
*/
|
|
21
|
-
declare const PisellRow: (props: PisellRowProps) => JSX.Element;
|
|
21
|
+
declare const PisellRow: (props: PisellRowProps) => React.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellRow, PisellRowProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellSortProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pisellSort/index.d.ts
|
|
5
|
-
declare const PisellSort: (props: PisellSortProps) => JSX.Element;
|
|
5
|
+
declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { PisellSort };
|
|
@@ -18,6 +18,6 @@ interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
18
18
|
}[];
|
|
19
19
|
}[];
|
|
20
20
|
}
|
|
21
|
-
declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
|
|
21
|
+
declare const PisellStatisticList: (props: PisellStatisticListProps) => React.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellStatisticList, PisellStatisticListProps };
|
|
@@ -9,6 +9,6 @@ interface PisellTagsProps extends React.DetailedHTMLProps<React.HTMLAttributes<H
|
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
color?: PisellTagsColor;
|
|
11
11
|
}
|
|
12
|
-
declare const PisellTags: (props: PisellTagsProps) => JSX.Element;
|
|
12
|
+
declare const PisellTags: (props: PisellTagsProps) => React.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { PisellTags, PisellTagsProps };
|
|
@@ -5,8 +5,8 @@ import React from "react";
|
|
|
5
5
|
//#region src/components/pisellText/index.d.ts
|
|
6
6
|
interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
7
7
|
declare const PisellText: {
|
|
8
|
-
(props: PisellTextProps): JSX.Element;
|
|
9
|
-
Amount: (props: AmountProps) => JSX.Element;
|
|
8
|
+
(props: PisellTextProps): React.JSX.Element;
|
|
9
|
+
Amount: (props: AmountProps) => React.JSX.Element;
|
|
10
10
|
Editable: React.FC<EditableProps>;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellTimeNavigatorProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/pisellTimeNavigator/PisellTimeNavigator.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* PisellTimeNavigator:可拖动的时间导航轴,时间范围内浏览、选择、控制
|
|
6
6
|
*/
|
|
7
|
-
declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): JSX.Element;
|
|
7
|
+
declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): React.JSX.Element;
|
|
8
8
|
declare namespace PisellTimeNavigator {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PisellContextType } from "../pisell-config-provider/context.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { TooltipPropsWithTitle } from "antd/es/tooltip";
|
|
4
4
|
|
|
5
5
|
//#region src/components/pisellTooltip/index.d.ts
|
|
@@ -7,6 +7,6 @@ interface PisellTooltipProps extends TooltipPropsWithTitle {
|
|
|
7
7
|
/** 平台 */
|
|
8
8
|
platform?: PisellContextType['platform'];
|
|
9
9
|
}
|
|
10
|
-
declare const PisellTooltip: (props: PisellTooltipProps) => JSX.Element;
|
|
10
|
+
declare const PisellTooltip: (props: PisellTooltipProps) => React.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { PisellTooltip };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { UploadProps } from "antd";
|
|
3
3
|
//#region src/components/pisellUpload/index.d.ts
|
|
4
4
|
interface PisellUploadProps extends UploadProps {
|
|
@@ -7,6 +7,6 @@ interface PisellUploadProps extends UploadProps {
|
|
|
7
7
|
text2?: string;
|
|
8
8
|
uploadType?: 'button' | 'drop' | 'custom';
|
|
9
9
|
}
|
|
10
|
-
declare const PisellUpload: (props: PisellUploadProps) => JSX.Element;
|
|
10
|
+
declare const PisellUpload: (props: PisellUploadProps) => React.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { PisellUpload };
|
|
@@ -144,6 +144,6 @@ interface PisellWalletPassCardProps {
|
|
|
144
144
|
onSetHolder?: (currentValue?: any) => void;
|
|
145
145
|
[key: string]: any;
|
|
146
146
|
}
|
|
147
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
147
|
+
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => React.JSX.Element;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { FormatOption, PisellWalletPassCard, PisellWalletPassCardProps };
|
|
@@ -47,6 +47,8 @@ interface CartSkuCardA12Presentation {
|
|
|
47
47
|
density?: 'compact' | 'comfortable';
|
|
48
48
|
optionColumns?: 1 | 2 | 3;
|
|
49
49
|
mediaFit?: 'cover' | 'contain';
|
|
50
|
+
/** Square media stays centered over a blurred image that fills the column. */
|
|
51
|
+
mediaShape?: 'stretch' | 'square';
|
|
50
52
|
contentAlign?: 'start' | 'center';
|
|
51
53
|
className?: string;
|
|
52
54
|
style?: CSSProperties;
|
|
@@ -111,13 +111,17 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
|
|
|
111
111
|
defaultQuantityControl
|
|
112
112
|
})) : defaultActionRail;
|
|
113
113
|
return /* @__PURE__ */ React.createElement("div", {
|
|
114
|
-
className: classNames(`${PREFIX}-a12`, `${PREFIX}-a12--${(presentation === null || presentation === void 0 ? void 0 : presentation.density) || "comfortable"}`, `${PREFIX}-a12--align-${(presentation === null || presentation === void 0 ? void 0 : presentation.contentAlign) || "start"}`, !isShowImage && `pisell-cart-sku-card-a12--without-media`, presentation === null || presentation === void 0 ? void 0 : presentation.className),
|
|
114
|
+
className: classNames(`${PREFIX}-a12`, `${PREFIX}-a12--${(presentation === null || presentation === void 0 ? void 0 : presentation.density) || "comfortable"}`, `${PREFIX}-a12--align-${(presentation === null || presentation === void 0 ? void 0 : presentation.contentAlign) || "start"}`, (presentation === null || presentation === void 0 ? void 0 : presentation.mediaShape) === "square" && `pisell-cart-sku-card-a12--square-media`, !isShowImage && `pisell-cart-sku-card-a12--without-media`, presentation === null || presentation === void 0 ? void 0 : presentation.className),
|
|
115
115
|
style
|
|
116
|
-
}, isShowImage ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__media` }, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.image) ? /* @__PURE__ */ React.createElement("
|
|
116
|
+
}, isShowImage ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__media` }, (presentation === null || presentation === void 0 ? void 0 : presentation.mediaShape) === "square" && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.image) ? /* @__PURE__ */ React.createElement("div", {
|
|
117
|
+
className: `${PREFIX}-a12__media-background`,
|
|
118
|
+
"aria-hidden": "true",
|
|
119
|
+
style: { backgroundImage: `url(${JSON.stringify(image.ali(dataSource.image, 320))})` }
|
|
120
|
+
}) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__media-frame` }, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.image) ? /* @__PURE__ */ React.createElement("img", {
|
|
117
121
|
alt: "",
|
|
118
122
|
src: image.ali(dataSource.image, 320),
|
|
119
123
|
style: { objectFit: (presentation === null || presentation === void 0 ? void 0 : presentation.mediaFit) || "cover" }
|
|
120
|
-
}) : /* @__PURE__ */ React.createElement("span", { "aria-hidden": "true" }, String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.name) || "").slice(0, 2))) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__content` }, display.eyebrow ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__eyebrow` }, display.eyebrow) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__name` }, dataSource === null || dataSource === void 0 ? void 0 : dataSource.name), weighingInfo ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__weighing` }, /* @__PURE__ */ React.createElement(Weighing, {
|
|
124
|
+
}) : /* @__PURE__ */ React.createElement("span", { "aria-hidden": "true" }, String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.name) || "").slice(0, 2)))) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__content` }, display.eyebrow ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__eyebrow` }, display.eyebrow) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__name` }, dataSource === null || dataSource === void 0 ? void 0 : dataSource.name), weighingInfo ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__weighing` }, /* @__PURE__ */ React.createElement(Weighing, {
|
|
121
125
|
dataSource: weighingInfo,
|
|
122
126
|
symbol
|
|
123
127
|
})) : null, specifications, contentFooter ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__content-footer` }, contentFooter) : null), actionRail);
|
|
@@ -59,6 +59,37 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
&__media-frame {
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: 0;
|
|
65
|
+
display: grid;
|
|
66
|
+
place-items: center;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__media-background {
|
|
70
|
+
position: absolute;
|
|
71
|
+
// Keep the blurred image edges outside the clipped media column.
|
|
72
|
+
inset: -64px;
|
|
73
|
+
background-position: center;
|
|
74
|
+
background-size: cover;
|
|
75
|
+
background-repeat: no-repeat;
|
|
76
|
+
filter: blur(32px) saturate(0.65);
|
|
77
|
+
opacity: 0.65;
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&--square-media &__media {
|
|
82
|
+
min-height: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--square-media &__media-frame {
|
|
86
|
+
position: relative;
|
|
87
|
+
inset: auto;
|
|
88
|
+
z-index: 1;
|
|
89
|
+
width: 100%;
|
|
90
|
+
aspect-ratio: 1 / 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
62
93
|
&__content {
|
|
63
94
|
display: flex;
|
|
64
95
|
min-width: 0;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
2
4
|
//#region src/components/section-footers/index.d.ts
|
|
3
5
|
interface SectionFooterProps {
|
|
4
6
|
left?: React.ReactNode;
|
|
@@ -6,6 +8,6 @@ interface SectionFooterProps {
|
|
|
6
8
|
right?: React.ReactNode;
|
|
7
9
|
className?: string;
|
|
8
10
|
}
|
|
9
|
-
declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
|
|
11
|
+
declare const SectionFooters: (props: SectionFooterProps) => _$react.JSX.Element;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { SectionFooters };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SegmentedProps } from "antd";
|
|
3
3
|
//#region src/components/segmented/index.d.ts
|
|
4
|
-
declare const Segmented$1: (props: SegmentedProps) => JSX.Element;
|
|
4
|
+
declare const Segmented$1: (props: SegmentedProps) => React.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Segmented$1 as Segmented };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time/index.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { PopoverProps, TimePickerProps } from "antd";
|
|
4
4
|
//#region src/components/select-time/index.d.ts
|
|
5
5
|
interface SelectTimeProps {
|
|
@@ -12,6 +12,6 @@ interface SelectTimeProps {
|
|
|
12
12
|
theme?: 'light' | 'dark';
|
|
13
13
|
className?: string;
|
|
14
14
|
}
|
|
15
|
-
declare const SelectTime: (props: SelectTimeProps) => JSX.Element;
|
|
15
|
+
declare const SelectTime: (props: SelectTimeProps) => React.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { SelectTime };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
2
4
|
//#region src/components/skeleton/index.d.ts
|
|
3
|
-
declare const Skeleton: (props: any) => JSX.Element;
|
|
5
|
+
declare const Skeleton: (props: any) => _$react.JSX.Element;
|
|
4
6
|
//#endregion
|
|
5
7
|
export { Skeleton };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
2
3
|
//#region src/components/slider/index.d.ts
|
|
3
|
-
declare const SliderOuter: (props: any) => JSX.Element;
|
|
4
|
+
declare const SliderOuter: (props: any) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { SliderOuter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from "react";
|
|
1
|
+
import React, { Component } from "react";
|
|
2
2
|
import { TabsProps } from "antd";
|
|
3
3
|
//#region src/components/tabs/index.d.ts
|
|
4
4
|
declare class Tabs$1 extends Component<any> {
|
|
@@ -12,7 +12,7 @@ declare class Tabs$1 extends Component<any> {
|
|
|
12
12
|
getActiveKey: () => any;
|
|
13
13
|
renderIconLabelTabBar: TabsProps['renderTabBar'];
|
|
14
14
|
filterHiddenTabs: (tabs: any[]) => any[];
|
|
15
|
-
render(): JSX.Element;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Tabs$1 as Tabs };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
2
4
|
//#region src/components/time-picker/index.d.ts
|
|
3
|
-
declare const TimePicker: (props: any) => JSX.Element;
|
|
5
|
+
declare const TimePicker: (props: any) => _$react.JSX.Element;
|
|
4
6
|
//#endregion
|
|
5
7
|
export { TimePicker };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AmountProps, RightItemsStyleProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/virtual-keyboard/Amount/index.d.ts
|
|
4
|
-
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
4
|
+
declare const Amount: (props: AmountProps) => React.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Amount };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NumberProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
//#region src/components/virtual-keyboard/Number/index.d.ts
|
|
4
|
-
declare const Number: (props: NumberProps) => JSX.Element;
|
|
4
|
+
declare const Number: (props: NumberProps) => React.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Number };
|
|
@@ -10,6 +10,6 @@ interface VirtualKeyboardTimeProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
10
10
|
onEnter?: (value: any) => void;
|
|
11
11
|
rightPanel?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare const VirtualKeyboardTime: (props: VirtualKeyboardTimeProps) => JSX.Element;
|
|
13
|
+
declare const VirtualKeyboardTime: (props: VirtualKeyboardTimeProps) => React.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { VirtualKeyboardTime, VirtualKeyboardTimeProps };
|
|
@@ -21,6 +21,6 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
primaryButtonBackgroundColor?: string;
|
|
22
22
|
primaryButtonTextColor?: string;
|
|
23
23
|
}
|
|
24
|
-
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
24
|
+
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => React.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { VirtualKeyboard };
|
|
@@ -7,9 +7,9 @@ const fallbackTranslationOriginal = (value) => {
|
|
|
7
7
|
};
|
|
8
8
|
const resolveTranslationOriginal = (value) => typeof value === "function" ? value : fallbackTranslationOriginal;
|
|
9
9
|
const useTranslationOriginal = () => {
|
|
10
|
-
var _context$appHelper;
|
|
10
|
+
var _context$appHelper, _context$appHelper2;
|
|
11
11
|
const context = useEngineContext();
|
|
12
|
-
return resolveTranslationOriginal(context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.translationOriginal);
|
|
12
|
+
return resolveTranslationOriginal((context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.translationOriginal) || (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.translation));
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { useTranslationOriginal as default };
|
package/es/index.d.ts
CHANGED
|
@@ -278,5 +278,8 @@ import { Amount } from "./components/virtual-keyboard/Amount/index.js";
|
|
|
278
278
|
import { Number } from "./components/virtual-keyboard/Number/index.js";
|
|
279
279
|
import { VirtualInput } from "./components/virtualInput/index.js";
|
|
280
280
|
import { WalletCard } from "./components/walletCard/index.js";
|
|
281
|
+
import { PisellColorToken, PisellTheme, PisellThemeConfig, PisellThemeVariables } from "./theme/provider/tokens.js";
|
|
282
|
+
import { PisellThemeProvider, PisellThemeProviderProps, usePisellTheme } from "./theme/provider/index.js";
|
|
283
|
+
import { PisellBrand } from "./components/PisellBrand/PisellBrand.js";
|
|
281
284
|
import { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber as InputNumber$1, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch as Switch$1, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from "antd";
|
|
282
|
-
export { type AdaptColumnsForPhoneLayoutOptions, Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, type CalendarPersistContextValue, type CalendarPersistKind, CalendarPersistProvider, Card, CardMetricItem, type PisellStatisticProps as CardMetricItemProps, _default$2 as CardPro, Carousel, type CartSkuCardA12Display, type CartSkuCardA12Presentation, type CartSkuCardA12Slots, type CartSkuCardVariant, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, type CompiledSelectionFlowModuleConfig, type CompiledSelectionFlowStep, Component, type CompoundedComponent, ConfigProvider, type CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, type DataSourceSubFormProps, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, type EnsureShopFloorPlanByCodeOptions, FIND_FALLBACK_SCANNER_COUNT_KEY, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, type FloorMapCanvasNameI18n, type FloorMapDataSourceRow, type FloorMapDataSources, type FloorMapEdge, type FloorMapEdgeAnchor, type FloorMapEdgeStatus, type FloorMapElementKindCategory, type FloorMapElementKindConfig, type FloorMapFullscreenMode, FloorMapImageElement, type FloorMapItemBase, type FloorMapLayoutContextValue, FloorMapLayoutProvider, type FloorMapLayoutProviderProps, type FloorMapMergedItem, type FloorMapRenderOptions, type FloorMapResourcePickerRecord, type FloorMapResourcePickerSlotProps, type FloorMapSceneElement, FloorMapSelectionZoneElement, type FloorMapViewConfig, type FloorMapViewportOverlayRenderArgs, type FlowModuleBeforeLeaveResult, type FlowModuleBeforeLeaveReturn, type FlowModuleDataMap, type FlowModuleHandle, type FlowModuleState, type FlowModuleStateMap, type FlowModuleStatus, type FlowModuleValidationResult, type FlowModuleValidationReturn, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, type GroupBlocks, type GroupModel, type GroupViewVariant, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, type ItemContext, type ItemLayout, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, type LookupInputRenderContext, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, type PisellCardPickerCardMeta, type PisellCardPickerCategoryConfig, type PisellCardPickerCategoryLevelConfig, type PisellCardPickerCategoryMode, type PisellCardPickerCategoryPath, type PisellCardPickerItem, type PisellCardPickerMode, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, PisellFields, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFloorMapLayout, type PisellFloorMapLayoutProps, type PisellFloorMapLayoutRef, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, MemoizedPisellGroupView as PisellGroupView, type PisellGroupViewProps, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, type PisellHierarchicalSummaryListAggregateConfig, type PisellHierarchicalSummaryListAggregateMode, type PisellHierarchicalSummaryListItem, type PisellHierarchicalSummaryListKey, type PisellHierarchicalSummaryListLevelConfig, type PisellHierarchicalSummaryListProps, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, type PisellLayoutProps, PisellLayouts, PisellList01, PisellLoading, _default$12 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellMetricCard, type PisellMetricCardProps, PisellMetrics, PisellMobileDateRangePicker, type PisellMobileDateRangePickerProps, PisellModal, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$13 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, ProcedureHeader as PisellProcedureHeader, type ProcedureHeaderProps as PisellProcedureHeaderProps, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$14 as PisellRating, type PisellRatingProps, PisellRecordBoard, PisellRecordBoardCalendarView, type PisellRecordBoardCalendarViewProps, PisellRecordBoardResourceWallView, PisellReservationSchedule, PisellReservationScheduleBand, type PisellReservationScheduleBandProps, type PisellReservationScheduleProps, PisellRow, type PisellRowProps, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, _default$15 as PisellSelectionFlow, type PisellSelectionFlowController, type PisellSelectionFlowProps, PisellShellFrame, type PisellShellFrameConfig, type PisellShellFrameProps, type PisellShellFrameScrollConfig, PisellSider, _default$16 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStatisticListProps, type PisellStatisticProps, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$17 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$18 as PisellTabbarTemplate1, type PisellTabbarTemplate1Direction, type PisellTabbarTemplate1Props, PisellTags, type PisellTagsProps, PisellText, PisellTimeNavigator, type PisellTimeNavigatorProps, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, _default$19 as PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type PostShopFloorPlanBody, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps$1 as ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, type PutShopFloorPlanBody, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, type RecordBoardBlockedTimeMergedRange, type RecordBoardBlockedTimePanelPayload, type RecordBoardBodyView, type RecordBoardBookingMoveDraft, type RecordBoardCalendarBlockedTimePayload, type RecordBoardCalendarBookingLike, type RecordBoardCalendarBookingRenderArgs, type RecordBoardCalendarDayOverlayBooking, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardCalendarResourceRenderArgs, type RecordBoardCalendarSelectedFreeSlot, type RecordBoardCalendarTimelineHeaderGroup, type RecordBoardCalendarTimelineHeaderRenderContext, type RecordBoardChildComponentProps, type RecordBoardColumnFilterConfig, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardCreateBookingDayGroup, type RecordBoardCreateBookingFromSelectionPayload, type RecordBoardFieldType, type RecordBoardFloorMapProps, type RecordBoardGetOptions, type RecordBoardGridProps, type RecordBoardLayoutType, type RecordBoardLayoutVariant, type RecordBoardOptionItem, type RecordBoardProps, type RecordBoardResourceWallCardModel, type RecordBoardResourceWallLayoutPersist, type RecordBoardResourceWallProps, type RecordBoardToolBarProps, _default$20 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, SectionFooters, Segmented, Select, SelectTime, SelectionFlowCompileError, type SelectionFlowCompileIssue, type SelectionFlowCompileIssueCode, type SelectionFlowContextValue, type SelectionFlowDraftAdapter, type SelectionFlowDraftChange, type SelectionFlowDraftUpdateMeta, type SelectionFlowMessageCode, type SelectionFlowMetadata, type SelectionFlowModuleAdapter, type SelectionFlowModuleConfig, type SelectionFlowModuleInput, type SelectionFlowModuleRegistry, type SelectionFlowPrepareStepsOptions, type SelectionFlowPrepareStepsResult, type SelectionFlowRef, type SelectionFlowRuntimeIssue, type SelectionFlowSnapshot, type SelectionFlowStepConfig, type SelectionFlowValidationFeedback, type ShopFloorPlanByCodeRequestOptions, type ShopFloorPlanDetail, type ShopFloorPlanHttpAdapter, type ShopFloorPlanLayoutItem, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarActionItem, type TabbarDataSource, _default$21 as Table, Tabs, Tag, Provider$4 as TextCard, type TimeNavigatorOrientation, type TimeNavigatorPassthroughProps, type TimeNavigatorValue, TimePicker$1 as TimePicker, type TimeRangeOption, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, type VenueWallAppearanceSlot, type VenueWallAppearanceTheme, type VenueWallStatusKey, type VenueWallStatusTone, type VenueWallStatusToneOverrides, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, compileSelectionFlow, compileSelectionFlowSteps, computeSelectionZoneMemberIds, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, _default$22 as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, hasSelectionDraftFieldValue, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionModuleType, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$23 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveFlowModuleAdapter, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useSelectionFlowContext, useShopFloorPlanSubscription, useToast, useTypedSelectionFlowContext, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
285
|
+
export { type AdaptColumnsForPhoneLayoutOptions, Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, type CalendarPersistContextValue, type CalendarPersistKind, CalendarPersistProvider, Card, CardMetricItem, type PisellStatisticProps as CardMetricItemProps, _default$2 as CardPro, Carousel, type CartSkuCardA12Display, type CartSkuCardA12Presentation, type CartSkuCardA12Slots, type CartSkuCardVariant, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, type CompiledSelectionFlowModuleConfig, type CompiledSelectionFlowStep, Component, type CompoundedComponent, ConfigProvider, type CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, type DataSourceSubFormProps, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, type EnsureShopFloorPlanByCodeOptions, FIND_FALLBACK_SCANNER_COUNT_KEY, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, type FloorMapCanvasNameI18n, type FloorMapDataSourceRow, type FloorMapDataSources, type FloorMapEdge, type FloorMapEdgeAnchor, type FloorMapEdgeStatus, type FloorMapElementKindCategory, type FloorMapElementKindConfig, type FloorMapFullscreenMode, FloorMapImageElement, type FloorMapItemBase, type FloorMapLayoutContextValue, FloorMapLayoutProvider, type FloorMapLayoutProviderProps, type FloorMapMergedItem, type FloorMapRenderOptions, type FloorMapResourcePickerRecord, type FloorMapResourcePickerSlotProps, type FloorMapSceneElement, FloorMapSelectionZoneElement, type FloorMapViewConfig, type FloorMapViewportOverlayRenderArgs, type FlowModuleBeforeLeaveResult, type FlowModuleBeforeLeaveReturn, type FlowModuleDataMap, type FlowModuleHandle, type FlowModuleState, type FlowModuleStateMap, type FlowModuleStatus, type FlowModuleValidationResult, type FlowModuleValidationReturn, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, type GroupBlocks, type GroupModel, type GroupViewVariant, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, type ItemContext, type ItemLayout, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, type LookupInputRenderContext, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellBrand, PisellCard, _default$9 as PisellCardList, type PisellCardPickerCardMeta, type PisellCardPickerCategoryConfig, type PisellCardPickerCategoryLevelConfig, type PisellCardPickerCategoryMode, type PisellCardPickerCategoryPath, type PisellCardPickerItem, type PisellCardPickerMode, PisellCards, PisellCheckboxGroup, type PisellColorToken, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, PisellFields, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFloorMapLayout, type PisellFloorMapLayoutProps, type PisellFloorMapLayoutRef, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, MemoizedPisellGroupView as PisellGroupView, type PisellGroupViewProps, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, type PisellHierarchicalSummaryListAggregateConfig, type PisellHierarchicalSummaryListAggregateMode, type PisellHierarchicalSummaryListItem, type PisellHierarchicalSummaryListKey, type PisellHierarchicalSummaryListLevelConfig, type PisellHierarchicalSummaryListProps, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, type PisellLayoutProps, PisellLayouts, PisellList01, PisellLoading, _default$12 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellMetricCard, type PisellMetricCardProps, PisellMetrics, PisellMobileDateRangePicker, type PisellMobileDateRangePickerProps, PisellModal, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$13 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, ProcedureHeader as PisellProcedureHeader, type ProcedureHeaderProps as PisellProcedureHeaderProps, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$14 as PisellRating, type PisellRatingProps, PisellRecordBoard, PisellRecordBoardCalendarView, type PisellRecordBoardCalendarViewProps, PisellRecordBoardResourceWallView, PisellReservationSchedule, PisellReservationScheduleBand, type PisellReservationScheduleBandProps, type PisellReservationScheduleProps, PisellRow, type PisellRowProps, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, _default$15 as PisellSelectionFlow, type PisellSelectionFlowController, type PisellSelectionFlowProps, PisellShellFrame, type PisellShellFrameConfig, type PisellShellFrameProps, type PisellShellFrameScrollConfig, PisellSider, _default$16 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStatisticListProps, type PisellStatisticProps, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$17 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$18 as PisellTabbarTemplate1, type PisellTabbarTemplate1Direction, type PisellTabbarTemplate1Props, PisellTags, type PisellTagsProps, PisellText, type PisellTheme, type PisellThemeConfig, PisellThemeProvider, type PisellThemeProviderProps, type PisellThemeVariables, PisellTimeNavigator, type PisellTimeNavigatorProps, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, _default$19 as PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type PostShopFloorPlanBody, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps$1 as ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, type PutShopFloorPlanBody, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, type RecordBoardBlockedTimeMergedRange, type RecordBoardBlockedTimePanelPayload, type RecordBoardBodyView, type RecordBoardBookingMoveDraft, type RecordBoardCalendarBlockedTimePayload, type RecordBoardCalendarBookingLike, type RecordBoardCalendarBookingRenderArgs, type RecordBoardCalendarDayOverlayBooking, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardCalendarResourceRenderArgs, type RecordBoardCalendarSelectedFreeSlot, type RecordBoardCalendarTimelineHeaderGroup, type RecordBoardCalendarTimelineHeaderRenderContext, type RecordBoardChildComponentProps, type RecordBoardColumnFilterConfig, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardCreateBookingDayGroup, type RecordBoardCreateBookingFromSelectionPayload, type RecordBoardFieldType, type RecordBoardFloorMapProps, type RecordBoardGetOptions, type RecordBoardGridProps, type RecordBoardLayoutType, type RecordBoardLayoutVariant, type RecordBoardOptionItem, type RecordBoardProps, type RecordBoardResourceWallCardModel, type RecordBoardResourceWallLayoutPersist, type RecordBoardResourceWallProps, type RecordBoardToolBarProps, _default$20 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, SectionFooters, Segmented, Select, SelectTime, SelectionFlowCompileError, type SelectionFlowCompileIssue, type SelectionFlowCompileIssueCode, type SelectionFlowContextValue, type SelectionFlowDraftAdapter, type SelectionFlowDraftChange, type SelectionFlowDraftUpdateMeta, type SelectionFlowMessageCode, type SelectionFlowMetadata, type SelectionFlowModuleAdapter, type SelectionFlowModuleConfig, type SelectionFlowModuleInput, type SelectionFlowModuleRegistry, type SelectionFlowPrepareStepsOptions, type SelectionFlowPrepareStepsResult, type SelectionFlowRef, type SelectionFlowRuntimeIssue, type SelectionFlowSnapshot, type SelectionFlowStepConfig, type SelectionFlowValidationFeedback, type ShopFloorPlanByCodeRequestOptions, type ShopFloorPlanDetail, type ShopFloorPlanHttpAdapter, type ShopFloorPlanLayoutItem, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarActionItem, type TabbarDataSource, _default$21 as Table, Tabs, Tag, Provider$4 as TextCard, type TimeNavigatorOrientation, type TimeNavigatorPassthroughProps, type TimeNavigatorValue, TimePicker$1 as TimePicker, type TimeRangeOption, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, type VenueWallAppearanceSlot, type VenueWallAppearanceTheme, type VenueWallStatusKey, type VenueWallStatusTone, type VenueWallStatusToneOverrides, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, compileSelectionFlow, compileSelectionFlowSteps, computeSelectionZoneMemberIds, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, _default$22 as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, hasSelectionDraftFieldValue, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionModuleType, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$23 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveFlowModuleAdapter, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, usePisellTheme, useRecordBoardContext, useRecordBoardShellBodyMeta, useSelectionFlowContext, useShopFloorPlanSubscription, useToast, useTypedSelectionFlowContext, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
package/es/index.js
CHANGED
|
@@ -85,6 +85,7 @@ import { useSelectionFlowContext, useTypedSelectionFlowContext } from "./compone
|
|
|
85
85
|
import ForwardedSelectionFlow from "./components/PisellSelectionFlow/PisellSelectionFlow.js";
|
|
86
86
|
import PisellSuperTabs_default from "./components/PisellSuperTabs/index.js";
|
|
87
87
|
import PisellQRScanner from "./components/pisellQRScanner/index.js";
|
|
88
|
+
import { PisellThemeProvider, usePisellTheme } from "./theme/provider/index.js";
|
|
88
89
|
import { PisellLookup } from "./components/pisellLookup/PisellLookup.js";
|
|
89
90
|
import { FIND_FALLBACK_SCANNER_COUNT_KEY, PisellFind } from "./components/pisellFind/index.js";
|
|
90
91
|
import Template1_default from "./components/PisellTabbar/template/Template1/index.js";
|
|
@@ -244,6 +245,7 @@ import Upload$1 from "./components/upload/index.js";
|
|
|
244
245
|
import Number from "./components/virtual-keyboard/Number/index.js";
|
|
245
246
|
import VirtualInput from "./components/virtualInput/index.js";
|
|
246
247
|
import WalletCard from "./components/walletCard/index.js";
|
|
248
|
+
import { PisellBrand } from "./components/PisellBrand/PisellBrand.js";
|
|
247
249
|
import "./pisell-materials.tw.css";
|
|
248
250
|
import { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber as InputNumber$1, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch as Switch$1, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from "antd";
|
|
249
|
-
export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, Translation as BaseTranslation, BatchEditor, Breadcrumb, Button, buttonGroupEdit_default as ButtonGroupEdit, buttonGroupPreview_default as ButtonGroupPreview, Calendar, CalendarPersistProvider, Card, CardMetricItem, cardPro_default as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, CropPhoto, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, dataSourceTable_default as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, Descriptions, div_default as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, FIND_FALLBACK_SCANNER_COUNT_KEY, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, FloorMapSelectionZoneElement, Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, Grid, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, icon_default as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, keyboard_default as Keyboard, List, LowCodePage, Mentions, Menu, Modal, Provider$1 as MultilevelCard, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, MemoizedPisellGroupView as PisellGroupView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, PisellLayouts, PisellList01, PisellLoading, PisellLongText_default as PisellLongText, PisellLookup, pisellMenu_default as PisellMenu, PisellMetricCard, PisellMetrics, PisellMobileDateRangePicker, PisellModal, PisellMultipleSelect, pisellNavigationMenu_default as PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, MemoizedPisellPercent as PisellPercent, PisellPhone_default as PisellPhone, Amount as PisellPriceKeyboard, PisellProcedure, ProcedureHeader as PisellProcedureHeader, PisellQRScanner, PisellQrcode, pisellQuickFilter as PisellQuickFilter, PisellRating_default as PisellRating, PisellRecordBoard, PisellRecordBoardCalendarView, PisellRecordBoardResourceWallView, PisellReservationSchedule, PisellReservationScheduleBand, PisellRow, PisellScan, PisellScrollView_default as PisellScrollView, PisellSectionHeaders, ForwardedSelectionFlow as PisellSelectionFlow, PisellShellFrame, PisellSider, PisellSingleLineText_default as PisellSingleLineText, PisellSingleSelect, PisellSort, PisellStatisticList, PisellSteps_default as PisellSteps, PisellSuperTabs_default as PisellSuperTabs, PisellTabbar_default as PisellTabbar, PisellTabbar as PisellTabbar2, Template1_default as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeNavigator, PisellTimeRangeDisplay, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, PisellUrl_default as PisellUrl, PisellViewGrid, PisellWalletPassCard, Popconfirm, Popover, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, record_view_default as RecordView, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, SectionFooters, Segmented, Select, SelectTime, SelectionFlowCompileError, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, table_default as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, compileSelectionFlow, compileSelectionFlowSteps, computeSelectionZoneMemberIds, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, locales_default as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, hasSelectionDraftFieldValue, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionModuleType, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default$1 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveFlowModuleAdapter, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useSelectionFlowContext, useShopFloorPlanSubscription, useToast, useTypedSelectionFlowContext, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
251
|
+
export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, Translation as BaseTranslation, BatchEditor, Breadcrumb, Button, buttonGroupEdit_default as ButtonGroupEdit, buttonGroupPreview_default as ButtonGroupPreview, Calendar, CalendarPersistProvider, Card, CardMetricItem, cardPro_default as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, CropPhoto, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, dataSourceTable_default as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, Descriptions, div_default as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, FIND_FALLBACK_SCANNER_COUNT_KEY, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, FloorMapSelectionZoneElement, Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, Grid, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, icon_default as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, keyboard_default as Keyboard, List, LowCodePage, Mentions, Menu, Modal, Provider$1 as MultilevelCard, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellBrand, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, MemoizedPisellGroupView as PisellGroupView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, PisellLayouts, PisellList01, PisellLoading, PisellLongText_default as PisellLongText, PisellLookup, pisellMenu_default as PisellMenu, PisellMetricCard, PisellMetrics, PisellMobileDateRangePicker, PisellModal, PisellMultipleSelect, pisellNavigationMenu_default as PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, MemoizedPisellPercent as PisellPercent, PisellPhone_default as PisellPhone, Amount as PisellPriceKeyboard, PisellProcedure, ProcedureHeader as PisellProcedureHeader, PisellQRScanner, PisellQrcode, pisellQuickFilter as PisellQuickFilter, PisellRating_default as PisellRating, PisellRecordBoard, PisellRecordBoardCalendarView, PisellRecordBoardResourceWallView, PisellReservationSchedule, PisellReservationScheduleBand, PisellRow, PisellScan, PisellScrollView_default as PisellScrollView, PisellSectionHeaders, ForwardedSelectionFlow as PisellSelectionFlow, PisellShellFrame, PisellSider, PisellSingleLineText_default as PisellSingleLineText, PisellSingleSelect, PisellSort, PisellStatisticList, PisellSteps_default as PisellSteps, PisellSuperTabs_default as PisellSuperTabs, PisellTabbar_default as PisellTabbar, PisellTabbar as PisellTabbar2, Template1_default as PisellTabbarTemplate1, PisellTags, PisellText, PisellThemeProvider, PisellTimeNavigator, PisellTimeRangeDisplay, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, PisellUrl_default as PisellUrl, PisellViewGrid, PisellWalletPassCard, Popconfirm, Popover, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, record_view_default as RecordView, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, SectionFooters, Segmented, Select, SelectTime, SelectionFlowCompileError, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, table_default as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, compileSelectionFlow, compileSelectionFlowSteps, computeSelectionZoneMemberIds, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, locales_default as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, hasSelectionDraftFieldValue, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionModuleType, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default$1 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveFlowModuleAdapter, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, usePisellTheme, useRecordBoardContext, useRecordBoardShellBodyMeta, useSelectionFlowContext, useShopFloorPlanSubscription, useToast, useTypedSelectionFlowContext, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Pisell 主题入口
|
|
2
|
+
|
|
3
|
+
`PisellThemeProvider` 提供一个独立的主题作用域,在自身 div 上输出 CSS 颜色变量,并通过 `usePisellTheme()` 提供相同的解析结果。它不依赖低代码引擎、Page 或宿主平台。
|
|
4
|
+
|
|
5
|
+
## Page
|
|
6
|
+
|
|
7
|
+
materials Page 自动使用 Provider,直接替代原有根 div,不增加 DOM 层级。
|
|
8
|
+
|
|
9
|
+
Page 将同一个 `theme` 传给 ConfigProvider 和 PisellThemeProvider,不另外组装 CSS 主题。`getGlobalToken` 不再固定 `colorPrimaryBg`、`colorPrimaryBgHover`、`colorPrimaryBorder`,由 AntD 根据主色派生。其他默认配置保持原样;调用方显式提供的派生 Token 仍优先。
|
|
10
|
+
|
|
11
|
+
这三个字段会同时影响已有 AntD 控件的选中背景、相关边框/焦点样式,以及本 Provider 输出的 CSS 变量。Page 和使用同一主题配置的 Storybook 均适用;默认紫色下这三个字段也采用算法色阶,不保证与原来的固定色值完全相同。
|
|
12
|
+
|
|
13
|
+
新增 `--pisell-color-*` 与 Context 的主色顺序为 Page 的 `theme.token.colorPrimary`、宿主 `appHelper.constants.themeColor`、默认色 `#5D3F9F`。显式派生颜色覆盖同样有效。
|
|
14
|
+
|
|
15
|
+
Page 原有 `--theme-color` 保持“宿主颜色 → 默认色”的规则,不随 Page 显式主题改变。日期选择器的原有更新条件同样保留。显式 Page 主色与店铺色不同时,新变量与旧变量可以不同,这是为了保留已有页面表现。
|
|
16
|
+
|
|
17
|
+
## 直接引用组件
|
|
18
|
+
|
|
19
|
+
POS 原来的直接引用方式保持不变。需要主题作用域时,宿主可以独立使用:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { PisellThemeProvider } from '@pisell/materials';
|
|
23
|
+
|
|
24
|
+
<PisellThemeProvider
|
|
25
|
+
theme={{ token: { colorPrimary: shopThemeColor } }}
|
|
26
|
+
className="shop-content"
|
|
27
|
+
>
|
|
28
|
+
<BusinessComponent />
|
|
29
|
+
</PisellThemeProvider>;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Provider 会渲染一个 div,可通过 className、style 和 ref 对接布局。嵌套 Provider 各自根据传入配置解析主题。未传主题的 Provider 使用默认主题;没有 Provider 时,`usePisellTheme()` 返回 null。
|
|
33
|
+
|
|
34
|
+
## 变量契约
|
|
35
|
+
|
|
36
|
+
复用当前 AntD 的主题算法,在 Token 对象中直接声明以下常用颜色字段,不输出全部 AntD 颜色。变量名按统一规则生成,与 AntD CSS 变量一致,仅前缀为 `pisell`:
|
|
37
|
+
|
|
38
|
+
| Token | CSS 变量 |
|
|
39
|
+
| ----------------------- | ----------------------------------- |
|
|
40
|
+
| colorText | --pisell-color-text |
|
|
41
|
+
| colorBorder | --pisell-color-border |
|
|
42
|
+
| colorPrimary | --pisell-color-primary |
|
|
43
|
+
| colorPrimaryBg | --pisell-color-primary-bg |
|
|
44
|
+
| colorPrimaryBgHover | --pisell-color-primary-bg-hover |
|
|
45
|
+
| colorPrimaryBorder | --pisell-color-primary-border |
|
|
46
|
+
| colorPrimaryBorderHover | --pisell-color-primary-border-hover |
|
|
47
|
+
| colorPrimaryHover | --pisell-color-primary-hover |
|
|
48
|
+
| colorPrimaryActive | --pisell-color-primary-active |
|
|
49
|
+
| colorPrimaryText | --pisell-color-primary-text |
|
|
50
|
+
| colorPrimaryTextHover | --pisell-color-primary-text-hover |
|
|
51
|
+
| colorPrimaryTextActive | --pisell-color-primary-text-active |
|
|
52
|
+
|
|
53
|
+
`colorText` 是中性正文色,可用于浅色选中背景上的文字;`colorPrimaryText` 是品牌色文字,不保证在 `colorPrimaryBg` 上有足够的对比度。
|
|
54
|
+
|
|
55
|
+
`colorBorder` 是中性边框色,适合常态控件轮廓;`colorPrimaryBorder` 是品牌色系的浅色边框,浅黄色或白色主色下不适合作为按钮唯一的轮廓。
|
|
56
|
+
|
|
57
|
+
不输出尺寸、其他中性色、状态色、组件 Token 或调用方临时增加的字段。标准 Token 名称和值的语义保持不变。
|
|
58
|
+
|
|
59
|
+
### 主色表面上的文字
|
|
60
|
+
|
|
61
|
+
额外提供一个 Pisell 自有语义 Token;它不是 AntD 标准字段,也不覆盖 AntD 的 `colorTextLightSolid`:
|
|
62
|
+
|
|
63
|
+
| Token | CSS 变量 | 对应背景 |
|
|
64
|
+
| ------------------ | ------------------------------ | ------------ |
|
|
65
|
+
| colorTextOnPrimary | --pisell-color-text-on-primary | colorPrimary |
|
|
66
|
+
|
|
67
|
+
当前在 `tokens.ts` 中将 `colorTextOnPrimary` 暂时固定为 `#ffffff`,不再根据主色自动选择黑/白文字。所有消费此变量的组件统一使用白字,包括浅色主色场景。
|
|
68
|
+
|
|
69
|
+
这与 `colorPrimaryText` 不同:后者表示作为文字使用的品牌色,前者表示写在主色背景上的文字颜色。消费者须配对使用:
|
|
70
|
+
|
|
71
|
+
```css
|
|
72
|
+
.primary-action {
|
|
73
|
+
background: var(--pisell-color-primary, #6941c6);
|
|
74
|
+
color: var(--pisell-color-text-on-primary, #fff);
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
这个固定值不保证所有主色及 hover / active 背景上的文字对比度;后续调整自动选色策略时,组件仍通过同一个变量接收结果。
|
|
79
|
+
|
|
80
|
+
本步提供变量,不批量替换已有白字。组件尚未消费对应前景变量时,文字颜色不会自动改变。
|
|
81
|
+
|
|
82
|
+
`cssVariables` 只包含 `--pisell-color-*`。独立 Provider 在 DOM 上额外提供 `--theme-color`,默认使用解析主色,但允许通过 style 保留既有值;Page 正是通过此方式保持原有规则。这个兼容变量不属于 Context 的标准 Token 契约,也不作为输入读取。不会读取或写入宿主的 `--ant-*`、`--ion-*` 变量,不会修改 `:root` 或 body。
|
|
83
|
+
|
|
84
|
+
主题值通过 `theme` 配置;style 中普通布局属性保留,Provider 管理的 `--pisell-color-*` 以解析结果为准,避免标准变量与 Context 不一致。输入颜色需为 AntD 算法可解析的颜色值,不传 `var(...)`。
|
|
85
|
+
|
|
86
|
+
## 本步职责
|
|
87
|
+
|
|
88
|
+
本模块负责主题解析、Context 和作用域内 CSS 变量输出。Page 原有 AntD 配置、业务组件样式和两个现有 `useThemeTokens` 的行为不在这里改写。因此建立入口后,尚未使用新变量的组件不会自动改色。
|
|
89
|
+
|
|
90
|
+
React Portal 的 Context 可以保留,但挂载到作用域外的 DOM 不会继承这些 CSS 变量。弹层适配应显式消费 `usePisellTheme().cssVariables`。LookupResultHost 已在 Modal、Drawer、Popup 的现有内容根节点注入这些变量;没有 Provider 时保留原有 style。其他弹层仍需在各自的 Portal 边界接入,不增加全局同步。跨包消费 Context 时,需保证 Provider 和 Consumer 引用同一个 materials 模块实例。
|