@pisell/materials 1.0.1078 → 1.0.1079
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 +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/es/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/es/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TextCard/types.d.ts +277 -0
- package/es/components/PisellCards/components/index.d.ts +10 -0
- package/es/components/PisellCards/index.d.ts +17 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellFields/index.d.ts +37 -0
- package/es/components/PisellLayouts/index.d.ts +37 -0
- package/es/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar/index.d.ts +9 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/es/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/es/components/PisellTabbar2/components/index.d.ts +1 -0
- package/es/components/PisellTabbar2/index.d.ts +6 -0
- package/es/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar3/index.d.ts +6 -0
- package/es/components/Template/[ComponentName].d.ts +0 -0
- package/es/components/appVersionControl/index.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -15
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/filter/components/Dropdown/types.d.ts +13 -0
- package/es/components/filter/components/FilterButton/types.d.ts +24 -0
- package/es/components/filter/types.d.ts +48 -0
- package/es/components/hardwareErrorTip/demo.d.ts +3 -0
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
- package/es/components/hardwareErrorTip/index.d.ts +19 -0
- package/es/components/hardwareErrorTip/logCard/index.d.ts +28 -0
- package/es/components/hardwareErrorTip/types.d.ts +28 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBatchActionBar/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/es/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/es/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/es/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellExport/PisellExport.d.ts +9 -0
- package/es/components/pisellExport/PisellExport.stories.d.ts +45 -0
- package/es/components/pisellExport/index.d.ts +2 -0
- package/es/components/pisellExport/types.d.ts +63 -0
- package/es/components/pisellFilter/type.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +25 -0
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
- package/es/components/pisellFloorMapLayout/locales.d.ts +551 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +604 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellImport/PisellImport.d.ts +9 -0
- package/es/components/pisellImport/PisellImport.stories.d.ts +49 -0
- package/es/components/pisellImport/index.d.ts +2 -0
- package/es/components/pisellImport/types.d.ts +85 -0
- package/es/components/pisellList01/index.d.ts +17 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/es/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/es/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +21 -0
- package/es/components/pisellPhone/index.d.ts +8 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellPhone/utils/index.d.ts +6 -0
- package/es/components/pisellQuickFilter/type.d.ts +12 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
- package/es/components/pisellRecordBoard/types.d.ts +468 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/es/components/pisellReservationSchedule/types.d.ts +47 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +57 -0
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/es/components/pisellShellFrame/index.d.ts +2 -0
- package/es/components/pisellShellFrame/types.d.ts +56 -0
- package/es/components/pisellStatisticList/index.d.ts +22 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/es/components/pisellTimeNavigator/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +35 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/es/components/productCard/components/Header/Actions/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +85 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/types.d.ts +270 -0
- package/es/components/versionModal/index.d.ts +24 -0
- package/es/locales/en-US.d.ts +439 -0
- package/es/locales/index.d.ts +1 -0
- package/es/locales/ja.d.ts +360 -0
- package/es/locales/pt.d.ts +360 -0
- package/es/locales/zh-CN.d.ts +434 -0
- package/es/locales/zh-TW.d.ts +434 -0
- package/es/theme/pisell-components.d.ts +14 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/lib/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TextCard/types.d.ts +277 -0
- package/lib/components/PisellCards/components/index.d.ts +10 -0
- package/lib/components/PisellCards/index.d.ts +17 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellFields/index.d.ts +37 -0
- package/lib/components/PisellLayouts/index.d.ts +37 -0
- package/lib/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar/index.d.ts +9 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/lib/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
- package/lib/components/PisellTabbar2/index.d.ts +6 -0
- package/lib/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar3/index.d.ts +6 -0
- package/lib/components/Template/[ComponentName].d.ts +0 -0
- package/lib/components/appVersionControl/index.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -15
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
- package/lib/components/filter/types.d.ts +48 -0
- package/lib/components/hardwareErrorTip/demo.d.ts +3 -0
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
- package/lib/components/hardwareErrorTip/index.d.ts +19 -0
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +28 -0
- package/lib/components/hardwareErrorTip/types.d.ts +28 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBatchActionBar/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/lib/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/lib/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/lib/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellExport/PisellExport.d.ts +9 -0
- package/lib/components/pisellExport/PisellExport.stories.d.ts +45 -0
- package/lib/components/pisellExport/index.d.ts +2 -0
- package/lib/components/pisellExport/types.d.ts +63 -0
- package/lib/components/pisellFilter/type.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +25 -0
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
- package/lib/components/pisellFloorMapLayout/locales.d.ts +551 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +604 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellImport/PisellImport.d.ts +9 -0
- package/lib/components/pisellImport/PisellImport.stories.d.ts +49 -0
- package/lib/components/pisellImport/index.d.ts +2 -0
- package/lib/components/pisellImport/types.d.ts +85 -0
- package/lib/components/pisellList01/index.d.ts +17 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/lib/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +21 -0
- package/lib/components/pisellPhone/index.d.ts +8 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellPhone/utils/index.d.ts +6 -0
- package/lib/components/pisellQuickFilter/type.d.ts +12 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
- package/lib/components/pisellRecordBoard/types.d.ts +468 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +47 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +57 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/lib/components/pisellShellFrame/index.d.ts +2 -0
- package/lib/components/pisellShellFrame/types.d.ts +56 -0
- package/lib/components/pisellStatisticList/index.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +35 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/lib/components/productCard/components/Header/Actions/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +85 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/types.d.ts +270 -0
- package/lib/components/versionModal/index.d.ts +24 -0
- package/lib/locales/en-US.d.ts +439 -0
- package/lib/locales/index.d.ts +1 -0
- package/lib/locales/ja.d.ts +360 -0
- package/lib/locales/pt.d.ts +360 -0
- package/lib/locales/zh-CN.d.ts +434 -0
- package/lib/locales/zh-TW.d.ts +434 -0
- package/lib/theme/pisell-components.d.ts +14 -0
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/pisellAdjustPrice/index.d.ts +0 -5
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import TextCard from './TextCard';
|
|
3
|
+
/**
|
|
4
|
+
* TextCard 文本卡片组件
|
|
5
|
+
*
|
|
6
|
+
* 用于展示带图标、文本、标签和角标的信息项,常用于 Tab 项、列表项、菜单项等场景。
|
|
7
|
+
* 支持 6 种样式变体、3 种尺寸、4 种状态,以及丰富的自定义配置。
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof TextCard>;
|
|
10
|
+
export default meta;
|
|
11
|
+
declare type Story = StoryObj<typeof TextCard>;
|
|
12
|
+
/**
|
|
13
|
+
* 基础用法 - 默认渲染
|
|
14
|
+
*/
|
|
15
|
+
export declare const Default: Story;
|
|
16
|
+
/**
|
|
17
|
+
* 基础用法 - 多个卡片
|
|
18
|
+
*/
|
|
19
|
+
export declare const MultipleCards: Story;
|
|
20
|
+
/**
|
|
21
|
+
* ReactNode 文本
|
|
22
|
+
*/
|
|
23
|
+
export declare const ReactNodeText: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 样式变体 - 纯文本(text)
|
|
26
|
+
*/
|
|
27
|
+
export declare const VariantText: Story;
|
|
28
|
+
/**
|
|
29
|
+
* 样式变体 - 圆角背景(filled)
|
|
30
|
+
*/
|
|
31
|
+
export declare const VariantFilled: Story;
|
|
32
|
+
/**
|
|
33
|
+
* 样式变体 - 浅色背景(light)
|
|
34
|
+
*/
|
|
35
|
+
export declare const VariantLight: Story;
|
|
36
|
+
/**
|
|
37
|
+
* 样式变体 - 描边(outlined)
|
|
38
|
+
*/
|
|
39
|
+
export declare const VariantOutlined: Story;
|
|
40
|
+
/**
|
|
41
|
+
* 样式变体 - 渐变(gradient)
|
|
42
|
+
*/
|
|
43
|
+
export declare const VariantGradient: Story;
|
|
44
|
+
/**
|
|
45
|
+
* 样式变体 - 虚线(dashed)
|
|
46
|
+
*/
|
|
47
|
+
export declare const VariantDashed: Story;
|
|
48
|
+
/**
|
|
49
|
+
* 尺寸 - Small
|
|
50
|
+
*/
|
|
51
|
+
export declare const SizeSmall: Story;
|
|
52
|
+
/**
|
|
53
|
+
* 尺寸 - Default
|
|
54
|
+
*/
|
|
55
|
+
export declare const SizeDefault: Story;
|
|
56
|
+
/**
|
|
57
|
+
* 尺寸 - Large
|
|
58
|
+
*/
|
|
59
|
+
export declare const SizeLarge: Story;
|
|
60
|
+
/**
|
|
61
|
+
* 状态 - Active
|
|
62
|
+
*/
|
|
63
|
+
export declare const StateActive: Story;
|
|
64
|
+
/**
|
|
65
|
+
* 状态 - Disabled
|
|
66
|
+
*/
|
|
67
|
+
export declare const StateDisabled: Story;
|
|
68
|
+
/**
|
|
69
|
+
* 状态 - Loading
|
|
70
|
+
*/
|
|
71
|
+
export declare const StateLoading: Story;
|
|
72
|
+
/**
|
|
73
|
+
* 状态 - 优先级测试
|
|
74
|
+
*/
|
|
75
|
+
export declare const StatePriority: Story;
|
|
76
|
+
/**
|
|
77
|
+
* 图标 - 前置图标
|
|
78
|
+
*/
|
|
79
|
+
export declare const PrefixIcon: Story;
|
|
80
|
+
/**
|
|
81
|
+
* 图标 - 后置图标
|
|
82
|
+
*/
|
|
83
|
+
export declare const SuffixIcon: Story;
|
|
84
|
+
/**
|
|
85
|
+
* 图标 - 前后图标组合
|
|
86
|
+
*/
|
|
87
|
+
export declare const BothIcons: Story;
|
|
88
|
+
/**
|
|
89
|
+
* 图标 - 图标配置
|
|
90
|
+
*/
|
|
91
|
+
export declare const IconConfig: Story;
|
|
92
|
+
/**
|
|
93
|
+
* 标签 - 带标签
|
|
94
|
+
*/
|
|
95
|
+
export declare const WithTag: Story;
|
|
96
|
+
/**
|
|
97
|
+
* 角标 - 红点角标
|
|
98
|
+
*/
|
|
99
|
+
export declare const BadgeDot: Story;
|
|
100
|
+
/**
|
|
101
|
+
* 角标 - 数字角标
|
|
102
|
+
*/
|
|
103
|
+
export declare const BadgeNumber: Story;
|
|
104
|
+
/**
|
|
105
|
+
* 角标 - 文本角标
|
|
106
|
+
*/
|
|
107
|
+
export declare const BadgeText: Story;
|
|
108
|
+
/**
|
|
109
|
+
* 角标 - 不同位置(通过 offset 控制)
|
|
110
|
+
*/
|
|
111
|
+
export declare const BadgePositions: Story;
|
|
112
|
+
/**
|
|
113
|
+
* 插槽 - 前置插槽
|
|
114
|
+
*/
|
|
115
|
+
export declare const PrefixSlot: Story;
|
|
116
|
+
/**
|
|
117
|
+
* 插槽 - 后置插槽
|
|
118
|
+
*/
|
|
119
|
+
export declare const SuffixSlot: Story;
|
|
120
|
+
/**
|
|
121
|
+
* 文本配置 - 字体样式
|
|
122
|
+
*/
|
|
123
|
+
export declare const TextConfig: Story;
|
|
124
|
+
/**
|
|
125
|
+
* 宽度模式 - 自动宽度(auto)
|
|
126
|
+
*/
|
|
127
|
+
export declare const WidthModeAuto: Story;
|
|
128
|
+
/**
|
|
129
|
+
* 宽度模式 - 固定宽度(fixed)
|
|
130
|
+
*/
|
|
131
|
+
export declare const WidthModeFixed: Story;
|
|
132
|
+
/**
|
|
133
|
+
* 宽度模式 - 撑满容器(full)
|
|
134
|
+
*/
|
|
135
|
+
export declare const WidthModeFull: Story;
|
|
136
|
+
/**
|
|
137
|
+
* 交互 - 点击事件
|
|
138
|
+
*/
|
|
139
|
+
export declare const ClickInteraction: Story;
|
|
140
|
+
/**
|
|
141
|
+
* 交互 - 不可点击
|
|
142
|
+
*/
|
|
143
|
+
export declare const NotClickable: Story;
|
|
144
|
+
/**
|
|
145
|
+
* 综合示例 - 完整配置
|
|
146
|
+
*/
|
|
147
|
+
export declare const CompleteExample: Story;
|
|
148
|
+
/**
|
|
149
|
+
* 综合示例 - Tab 导航
|
|
150
|
+
*/
|
|
151
|
+
export declare const TabNavigation: Story;
|
|
152
|
+
/**
|
|
153
|
+
* 综合示例 - 垂直导航
|
|
154
|
+
*/
|
|
155
|
+
export declare const VerticalNavigation: Story;
|
|
156
|
+
/**
|
|
157
|
+
* 边界值 - 角标为 0
|
|
158
|
+
*/
|
|
159
|
+
export declare const BadgeZero: Story;
|
|
160
|
+
/**
|
|
161
|
+
* 边界值 - 角标特别大的数字
|
|
162
|
+
*/
|
|
163
|
+
export declare const BadgeLargeNumber: Story;
|
|
164
|
+
/**
|
|
165
|
+
* 边界值 - 特别长的文本
|
|
166
|
+
*/
|
|
167
|
+
export declare const VeryLongText: Story;
|
|
168
|
+
/**
|
|
169
|
+
* 边界值 - 特别长的文本(有宽度限制)
|
|
170
|
+
*/
|
|
171
|
+
export declare const VeryLongTextWithWidth: Story;
|
|
172
|
+
/**
|
|
173
|
+
* 边界值 - 特别长的文本(多行省略)
|
|
174
|
+
*/
|
|
175
|
+
export declare const VeryLongTextMultiLine: Story;
|
|
176
|
+
/**
|
|
177
|
+
* 边界值 - 角标大小和 offset 位置
|
|
178
|
+
*/
|
|
179
|
+
export declare const BadgeSizeAndOffset: Story;
|
|
180
|
+
/**
|
|
181
|
+
* 边界值 - 极长文本 + 角标大数字 + 图标
|
|
182
|
+
*/
|
|
183
|
+
export declare const VeryLongTextWithLargeBadgeAndIcon: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeWrapperProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* BadgeWrapper 角标包装组件
|
|
5
|
+
* 负责角标的渲染和定位,支持红点、数字、文本三种类型
|
|
6
|
+
* 位置通过 offset 控制,大小通过 size 控制
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // 红点角标
|
|
11
|
+
* <BadgeWrapper badge={{ type: 'dot' }}>
|
|
12
|
+
* <TextCard text="Item" />
|
|
13
|
+
* </BadgeWrapper>
|
|
14
|
+
*
|
|
15
|
+
* // 数字角标
|
|
16
|
+
* <BadgeWrapper badge={{ type: 'number', content: 99 }}>
|
|
17
|
+
* <TextCard text="Item" />
|
|
18
|
+
* </BadgeWrapper>
|
|
19
|
+
*
|
|
20
|
+
* // 文本角标
|
|
21
|
+
* <BadgeWrapper badge={{ type: 'text', content: 'New' }}>
|
|
22
|
+
* <TextCard text="Item" />
|
|
23
|
+
* </BadgeWrapper>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const BadgeWrapper: React.FC<BadgeWrapperProps>;
|
|
27
|
+
export default BadgeWrapper;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconWrapperProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* IconWrapper 图标包装组件
|
|
5
|
+
* 负责统一图标渲染逻辑,支持自定义图标大小和颜色
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <IconWrapper
|
|
10
|
+
* icon={<BellIcon />}
|
|
11
|
+
* position="prefix"
|
|
12
|
+
* config={{ size: 16, color: '#666' }}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const IconWrapper: React.FC<IconWrapperProps>;
|
|
17
|
+
export default IconWrapper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextContentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* TextContent 文本内容组件
|
|
5
|
+
* 负责渲染主文本内容,处理文本省略逻辑
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <TextContent
|
|
10
|
+
* text="这是一段很长的文本内容"
|
|
11
|
+
* textConfig={{
|
|
12
|
+
* maxLines: 2,
|
|
13
|
+
* ellipsis: true,
|
|
14
|
+
* fontSize: 14,
|
|
15
|
+
* color: '#333'
|
|
16
|
+
* }}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const TextContent: React.FC<TextContentProps>;
|
|
21
|
+
export default TextContent;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { PisellBasicCardProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 样式变体类型
|
|
5
|
+
*/
|
|
6
|
+
export declare type TextCardVariant = 'text' | 'filled' | 'outlined' | 'light' | 'gradient' | 'dashed';
|
|
7
|
+
/**
|
|
8
|
+
* 尺寸类型
|
|
9
|
+
*/
|
|
10
|
+
export declare type TextCardSize = 'small' | 'default' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* 宽度模式
|
|
13
|
+
*/
|
|
14
|
+
export declare type TextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
15
|
+
/**
|
|
16
|
+
* 图标配置
|
|
17
|
+
*/
|
|
18
|
+
export interface IconConfig {
|
|
19
|
+
/**
|
|
20
|
+
* 图标大小(单位:px)
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
/**
|
|
24
|
+
* 图标颜色
|
|
25
|
+
*/
|
|
26
|
+
color?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 标签配置
|
|
30
|
+
*/
|
|
31
|
+
export interface TagConfig {
|
|
32
|
+
/**
|
|
33
|
+
* 标签颜色
|
|
34
|
+
*/
|
|
35
|
+
color?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 标签自定义样式
|
|
38
|
+
*/
|
|
39
|
+
style?: CSSProperties;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 角标类型
|
|
43
|
+
*/
|
|
44
|
+
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
45
|
+
/**
|
|
46
|
+
* 角标大小
|
|
47
|
+
*/
|
|
48
|
+
export declare type BadgeSize = 'small' | 'default';
|
|
49
|
+
/**
|
|
50
|
+
* 角标配置
|
|
51
|
+
*/
|
|
52
|
+
export interface BadgeConfig {
|
|
53
|
+
/**
|
|
54
|
+
* 角标类型
|
|
55
|
+
* @default 'dot'
|
|
56
|
+
*/
|
|
57
|
+
type?: BadgeType;
|
|
58
|
+
/**
|
|
59
|
+
* 角标内容(数字或文本)
|
|
60
|
+
* 当 type 为 'number' 或 'text' 时有效
|
|
61
|
+
*/
|
|
62
|
+
content?: ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* 角标偏移量 [x, y]
|
|
65
|
+
* 正数向右/下偏移,负数向左/上偏移
|
|
66
|
+
*/
|
|
67
|
+
offset?: [number, number];
|
|
68
|
+
/**
|
|
69
|
+
* 角标颜色
|
|
70
|
+
*/
|
|
71
|
+
color?: string;
|
|
72
|
+
/**
|
|
73
|
+
* 角标自定义样式
|
|
74
|
+
*/
|
|
75
|
+
style?: CSSProperties;
|
|
76
|
+
/**
|
|
77
|
+
* 角标大小
|
|
78
|
+
*/
|
|
79
|
+
size?: BadgeSize;
|
|
80
|
+
/**
|
|
81
|
+
* 角标是否显示零值
|
|
82
|
+
*/
|
|
83
|
+
showZero?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* 角标其他属性
|
|
86
|
+
*/
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 文本配置
|
|
91
|
+
*/
|
|
92
|
+
export interface TextConfig {
|
|
93
|
+
/**
|
|
94
|
+
* 字体大小(单位:px)
|
|
95
|
+
*/
|
|
96
|
+
fontSize?: number;
|
|
97
|
+
/**
|
|
98
|
+
* 字体粗细
|
|
99
|
+
*/
|
|
100
|
+
fontWeight?: string | number;
|
|
101
|
+
/**
|
|
102
|
+
* 文本颜色
|
|
103
|
+
*/
|
|
104
|
+
color?: string;
|
|
105
|
+
/**
|
|
106
|
+
* 最大显示行数
|
|
107
|
+
* @default 1
|
|
108
|
+
*/
|
|
109
|
+
maxLines?: number;
|
|
110
|
+
/**
|
|
111
|
+
* 是否显示省略号
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
ellipsis?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 文本对齐方式
|
|
117
|
+
* @default 'left'
|
|
118
|
+
*/
|
|
119
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
120
|
+
flex?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* TextCard 组件 Props
|
|
124
|
+
* 基于 PisellBasicCardProps 扩展
|
|
125
|
+
* 注意:重写 onClick 为可选属性
|
|
126
|
+
*/
|
|
127
|
+
export interface TextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
128
|
+
/**
|
|
129
|
+
* 卡片显示的文本内容(必填)
|
|
130
|
+
*/
|
|
131
|
+
text: ReactNode;
|
|
132
|
+
/**
|
|
133
|
+
* 卡片样式变体
|
|
134
|
+
* @default 'text'
|
|
135
|
+
*/
|
|
136
|
+
variant?: TextCardVariant;
|
|
137
|
+
/**
|
|
138
|
+
* 卡片尺寸
|
|
139
|
+
* @default 'default'
|
|
140
|
+
*/
|
|
141
|
+
size?: TextCardSize;
|
|
142
|
+
/**
|
|
143
|
+
* 是否可点击
|
|
144
|
+
* @default true
|
|
145
|
+
*/
|
|
146
|
+
clickable?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* 前置图标
|
|
149
|
+
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
150
|
+
*/
|
|
151
|
+
prefixIcon?: ReactNode;
|
|
152
|
+
/**
|
|
153
|
+
* 后置图标
|
|
154
|
+
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
155
|
+
*/
|
|
156
|
+
suffixIcon?: ReactNode;
|
|
157
|
+
/**
|
|
158
|
+
* 图标配置
|
|
159
|
+
* 统一配置前置和后置图标的大小和颜色
|
|
160
|
+
*/
|
|
161
|
+
iconConfig?: IconConfig;
|
|
162
|
+
/**
|
|
163
|
+
* 后置标签
|
|
164
|
+
* 支持 ReactNode(如 antd Tag、Badge 等)
|
|
165
|
+
*/
|
|
166
|
+
tag?: ReactNode;
|
|
167
|
+
/**
|
|
168
|
+
* 标签配置
|
|
169
|
+
*/
|
|
170
|
+
tagConfig?: TagConfig;
|
|
171
|
+
/**
|
|
172
|
+
* 角标配置
|
|
173
|
+
* 用于显示红点、数字或文本提示
|
|
174
|
+
*/
|
|
175
|
+
badge?: BadgeConfig;
|
|
176
|
+
/**
|
|
177
|
+
* 前置插槽
|
|
178
|
+
* 用于替换前置图标,优先级高于 prefixIcon
|
|
179
|
+
*/
|
|
180
|
+
prefixSlot?: ReactNode;
|
|
181
|
+
/**
|
|
182
|
+
* 后置插槽
|
|
183
|
+
* 用于替换后置图标和标签,优先级高于 suffixIcon 和 tag
|
|
184
|
+
*/
|
|
185
|
+
suffixSlot?: ReactNode;
|
|
186
|
+
/**
|
|
187
|
+
* 文本配置
|
|
188
|
+
* 用于自定义文本样式和显示行为
|
|
189
|
+
*/
|
|
190
|
+
textConfig?: TextConfig;
|
|
191
|
+
/**
|
|
192
|
+
* 宽度模式
|
|
193
|
+
* - auto: 内容撑满,最大宽度 maxWidth
|
|
194
|
+
* - fixed: 固定宽度 width
|
|
195
|
+
* - full: 撑满父容器,最小宽度 28px
|
|
196
|
+
* @default 'auto'
|
|
197
|
+
*/
|
|
198
|
+
widthMode?: TextCardWidthMode;
|
|
199
|
+
/**
|
|
200
|
+
* 固定宽度值
|
|
201
|
+
* 当 widthMode='fixed' 时有效
|
|
202
|
+
*/
|
|
203
|
+
width?: number | string;
|
|
204
|
+
/**
|
|
205
|
+
* 最大宽度
|
|
206
|
+
* 当 widthMode='auto' 时有效
|
|
207
|
+
* @default 400
|
|
208
|
+
*/
|
|
209
|
+
maxWidth?: number | string;
|
|
210
|
+
/**
|
|
211
|
+
* 点击事件
|
|
212
|
+
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
213
|
+
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
214
|
+
*/
|
|
215
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
216
|
+
/**
|
|
217
|
+
* 自定义渲染函数
|
|
218
|
+
* 完全自定义组件的渲染内容
|
|
219
|
+
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
220
|
+
*/
|
|
221
|
+
render?: (props: TextCardProps) => ReactNode;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* TextContent 组件 Props
|
|
225
|
+
* 文本内容子组件
|
|
226
|
+
*/
|
|
227
|
+
export interface TextContentProps {
|
|
228
|
+
/**
|
|
229
|
+
* 文本内容
|
|
230
|
+
*/
|
|
231
|
+
text: ReactNode;
|
|
232
|
+
/**
|
|
233
|
+
* 文本配置
|
|
234
|
+
*/
|
|
235
|
+
textConfig?: TextConfig;
|
|
236
|
+
/**
|
|
237
|
+
* 自定义类名
|
|
238
|
+
*/
|
|
239
|
+
className?: string;
|
|
240
|
+
active?: PisellBasicCardProps['active'];
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* IconWrapper 组件 Props
|
|
244
|
+
* 图标包装子组件
|
|
245
|
+
*/
|
|
246
|
+
export interface IconWrapperProps {
|
|
247
|
+
/**
|
|
248
|
+
* 图标内容
|
|
249
|
+
*/
|
|
250
|
+
icon: ReactNode;
|
|
251
|
+
/**
|
|
252
|
+
* 图标配置
|
|
253
|
+
*/
|
|
254
|
+
config?: IconConfig;
|
|
255
|
+
/**
|
|
256
|
+
* 图标位置
|
|
257
|
+
*/
|
|
258
|
+
position: 'prefix' | 'suffix';
|
|
259
|
+
/**
|
|
260
|
+
* 自定义类名
|
|
261
|
+
*/
|
|
262
|
+
className?: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* BadgeWrapper 组件 Props
|
|
266
|
+
* 角标包装子组件
|
|
267
|
+
*/
|
|
268
|
+
export interface BadgeWrapperProps {
|
|
269
|
+
/**
|
|
270
|
+
* 角标配置
|
|
271
|
+
*/
|
|
272
|
+
badge?: BadgeConfig;
|
|
273
|
+
/**
|
|
274
|
+
* 子元素
|
|
275
|
+
*/
|
|
276
|
+
children: ReactNode;
|
|
277
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as GraphicTextCard } from './GraphicTextCard';
|
|
2
|
+
export { default as TextCard } from './TextCard';
|
|
3
|
+
export { default as TabCard } from './TabCard';
|
|
4
|
+
export { default as MultilevelCard } from './MultilevelCard';
|
|
5
|
+
export { default as PisellImageCard } from './PisellImageCard';
|
|
6
|
+
export type { GraphicTextCardProps } from './GraphicTextCard/types';
|
|
7
|
+
export type { TextCardProps } from './TextCard/types';
|
|
8
|
+
export type { TabCardProps } from './TabCard/types';
|
|
9
|
+
export type { MultilevelCardProps } from './MultilevelCard/types';
|
|
10
|
+
export type { PisellImageCardProps } from './PisellImageCard/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PisellEntityCard } from '../pisellEntityCard';
|
|
2
|
+
declare const PisellCards: {
|
|
3
|
+
TabCard: (props: any) => import("react").JSX.Element;
|
|
4
|
+
TextCard: (props: any) => import("react").JSX.Element;
|
|
5
|
+
GraphicTextCard: (props: import("./components/GraphicTextCard").GraphicTextCardProps) => import("react").JSX.Element;
|
|
6
|
+
MultilevelCard: (props: any) => import("react").JSX.Element;
|
|
7
|
+
PisellImageCard: (props: import("./components/PisellImageCard").PisellImageCardProps) => import("react").JSX.Element;
|
|
8
|
+
PisellEntityCard: typeof PisellEntityCard;
|
|
9
|
+
};
|
|
10
|
+
export default PisellCards;
|
|
11
|
+
export type { PisellBasicCardProps } from './types';
|
|
12
|
+
export type { TabCardProps, BadgeConfig } from './components/TabCard/types';
|
|
13
|
+
export type { TextCardProps } from './components/TextCard/types';
|
|
14
|
+
export type { GraphicTextCardProps, GraphicTextCardVariant, GraphicTextCardSize, GraphicConfig, } from './components/GraphicTextCard/types';
|
|
15
|
+
export type { MultilevelCardProps } from './components/MultilevelCard/types';
|
|
16
|
+
export type { PisellImageCardProps, ImageDataSource, ImageFillMode, } from './components/PisellImageCard/types';
|
|
17
|
+
export type { PisellEntityCardProps, EntityCardDensity, EntityCardLayout, EntityCardWidth, EntityCardMediaType, EntityCardMediaConfig, EntityCardSecondaryItem, EntityCardTagItem, EntityCardActionItem, EntityCardTagPosition, } from '../pisellEntityCard';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PisellContactBrief } from './PisellContactBrief';
|
|
3
|
+
declare const meta: Meta<typeof PisellContactBrief>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof PisellContactBrief>;
|
|
6
|
+
/** 默认:姓名 + 电话 + 邮箱,横向,有编辑图标 */
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
/** 无头像(占位) */
|
|
9
|
+
export declare const NoAvatar: Story;
|
|
10
|
+
/** 有头像 */
|
|
11
|
+
export declare const WithAvatar: Story;
|
|
12
|
+
/** 竖向布局 */
|
|
13
|
+
export declare const Vertical: Story;
|
|
14
|
+
/** 仅姓名 + 电话(无邮箱) */
|
|
15
|
+
export declare const NoEmail: Story;
|
|
16
|
+
/** 仅姓名 + 邮箱(无电话) */
|
|
17
|
+
export declare const NoPhone: Story;
|
|
18
|
+
/** 扩展字段:生日、地址 */
|
|
19
|
+
export declare const WithExtraFields: Story;
|
|
20
|
+
/** 左滑删除 */
|
|
21
|
+
export declare const SwipeToDelete: Story;
|
|
22
|
+
/** 编辑提交回调(仅日志) */
|
|
23
|
+
export declare const WithEditSubmit: Story;
|
|
24
|
+
/** 禁用态 */
|
|
25
|
+
export declare const Disabled: Story;
|
|
26
|
+
/** 主文案行数限制为 1 */
|
|
27
|
+
export declare const PrimaryLineClamp: Story;
|
|
28
|
+
/** 新建联系人按钮(CreateButton) */
|
|
29
|
+
export declare const CreateButtonOnly: Story;
|
|
30
|
+
/** 卡片 + 新建按钮(列表场景) */
|
|
31
|
+
export declare const ListWithCreateButton: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellContactBrief 组件导出
|
|
3
|
+
* 联系人简要卡片 + CreateButton(PisellContactBrief.CreateButton)
|
|
4
|
+
*/
|
|
5
|
+
export { PisellContactBrief } from './PisellContactBrief';
|
|
6
|
+
export type { PisellContactBriefProps, PisellContactBriefCreateButtonProps, PisellContactBriefComponent, ContactFormValues, ContactBriefExtraField, } from './types';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellContactBrief 多语言文案
|
|
3
|
+
* 中、英、繁;由业务 locales.init 合并或组件内 init 后使用 locales.getText(key)
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: {
|
|
6
|
+
en: {
|
|
7
|
+
'pisell.contact.brief.addContact': string;
|
|
8
|
+
'pisell.contact.brief.edit': string;
|
|
9
|
+
'pisell.contact.brief.delete': string;
|
|
10
|
+
'pisell.contact.brief.modal.title.create': string;
|
|
11
|
+
'pisell.contact.brief.modal.title.edit': string;
|
|
12
|
+
'pisell.contact.brief.modal.cancel': string;
|
|
13
|
+
'pisell.contact.brief.modal.save': string;
|
|
14
|
+
'pisell.contact.brief.modal.field.firstname': string;
|
|
15
|
+
'pisell.contact.brief.modal.field.lastname': string;
|
|
16
|
+
'pisell.contact.brief.modal.field.phone': string;
|
|
17
|
+
'pisell.contact.brief.modal.field.email': string;
|
|
18
|
+
'pisell.contact.brief.modal.field.phone.placeholder': string;
|
|
19
|
+
'pisell.contact.brief.modal.field.email.placeholder': string;
|
|
20
|
+
'pisell.contact.brief.modal.field.required': string;
|
|
21
|
+
};
|
|
22
|
+
'zh-CN': {
|
|
23
|
+
'pisell.contact.brief.addContact': string;
|
|
24
|
+
'pisell.contact.brief.edit': string;
|
|
25
|
+
'pisell.contact.brief.delete': string;
|
|
26
|
+
'pisell.contact.brief.modal.title.create': string;
|
|
27
|
+
'pisell.contact.brief.modal.title.edit': string;
|
|
28
|
+
'pisell.contact.brief.modal.cancel': string;
|
|
29
|
+
'pisell.contact.brief.modal.save': string;
|
|
30
|
+
'pisell.contact.brief.modal.field.firstname': string;
|
|
31
|
+
'pisell.contact.brief.modal.field.lastname': string;
|
|
32
|
+
'pisell.contact.brief.modal.field.phone': string;
|
|
33
|
+
'pisell.contact.brief.modal.field.email': string;
|
|
34
|
+
'pisell.contact.brief.modal.field.phone.placeholder': string;
|
|
35
|
+
'pisell.contact.brief.modal.field.email.placeholder': string;
|
|
36
|
+
'pisell.contact.brief.modal.field.required': string;
|
|
37
|
+
};
|
|
38
|
+
'zh-HK': {
|
|
39
|
+
'pisell.contact.brief.addContact': string;
|
|
40
|
+
'pisell.contact.brief.edit': string;
|
|
41
|
+
'pisell.contact.brief.delete': string;
|
|
42
|
+
'pisell.contact.brief.modal.title.create': string;
|
|
43
|
+
'pisell.contact.brief.modal.title.edit': string;
|
|
44
|
+
'pisell.contact.brief.modal.cancel': string;
|
|
45
|
+
'pisell.contact.brief.modal.save': string;
|
|
46
|
+
'pisell.contact.brief.modal.field.firstname': string;
|
|
47
|
+
'pisell.contact.brief.modal.field.lastname': string;
|
|
48
|
+
'pisell.contact.brief.modal.field.phone': string;
|
|
49
|
+
'pisell.contact.brief.modal.field.email': string;
|
|
50
|
+
'pisell.contact.brief.modal.field.phone.placeholder': string;
|
|
51
|
+
'pisell.contact.brief.modal.field.email.placeholder': string;
|
|
52
|
+
'pisell.contact.brief.modal.field.required': string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|