import "./pisell-materials.tw.css";

// ==================== 命名空间导出（推荐使用）====================
// 新的命名空间组织方式，提供更好的组件分组和查找体验
// 同时保留所有原有单独导出，确保向后兼容

/**
 * PisellFields - 字段组件命名空间
 * @example
 * import { PisellFields } from '@pisell/materials';
 * <PisellFields.SingleLineText value="hello" />
 * <PisellFields.Currency value={1000} currencySymbol="$" />
 */
export { default as PisellFields } from "./components/PisellFields";
/**
 * PisellMetrics - 指标展示组件命名空间
 * @example
 * import { PisellMetrics } from '@pisell/materials';
 * <PisellMetrics.MetricCard title="Total Sales" value={1580} />
 */
export { default as PisellMetrics } from "./components/PisellMetrics";
/**
 * PisellLayouts - 布局组件命名空间
 * @example
 * import { PisellLayouts } from '@pisell/materials';
 * <PisellLayouts.BasicGrid columns={3}>{children}</PisellLayouts.BasicGrid>
 */
export { default as PisellLayouts } from "./components/PisellLayouts";
// ==================== Ant Design 组件重导出 ====================
// 直接从 antd 导出的基础组件，用于兼容性
export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col,
// Collapse,
ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from 'antd';
export { default as PisellCards } from "./components/PisellCards";
export { default as GraphicTextCard } from "./components/PisellCards/components/GraphicTextCard";
export { default as MultilevelCard } from "./components/PisellCards/components/MultilevelCard";
export { default as PisellImageCard } from "./components/PisellCards/components/PisellImageCard";
export { default as TabCard } from "./components/PisellCards/components/TabCard";
export { default as TextCard } from "./components/PisellCards/components/TextCard";
export { default as PisellProcedure } from "./components/PisellProcedure";
// 类型已在 PisellLayouts 命名空间中导出
export { default as PisellSteps } from "./components/PisellSteps";
export { default as PisellSuperTabs } from "./components/PisellSuperTabs";
// ==================== Tabbar 组件 (底部导航栏) ====================
// 移动端底部导航栏组件
export { default as PisellTabbar } from "./components/PisellTabbar";
export { default as PisellTabbarTemplate1 } from "./components/PisellTabbar/template/Template1";
export { default as PisellTabbar2 } from "./components/PisellTabbar2";
export { default as AppVersionControl } from "./components/appVersionControl";
// ==================== 基础 UI 组件 ====================
// 基础交互组件，对 Ant Design 组件的增强封装
export { default as AutoComplete } from "./components/auto-complete";
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
export { default as Badge } from "./components/badge";
export { default as BatchEditor } from "./components/batch-editor";
export { default as Button } from "./components/button";
export { default as ButtonGroupEdit } from "./components/buttonGroupEdit";
export { default as ButtonGroupPreview } from "./components/buttonGroupPreview";
export { default as Calendar } from "./components/calendar";
export { default as CardMetricItem } from "./components/cardMetricItem";
export { default as CardPro } from "./components/cardPro";
export { default as Cascader } from "./components/cascader";
export { default as Checkbox } from "./components/checkbox";

// ==================== 数据展示组件 (Data Display) ====================
// 用于展示各类数据指标、统计信息
// 类型已在 PisellMetrics 命名空间中导出
export { PisellHierarchicalSummaryList, HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS } from "./components/pisellHierarchicalSummaryList";
export { default as PisellDateTimeDisplay } from "./components/pisellDateTimeDisplay";
export { PisellTimeRangeDisplay } from "./components/pisellTimeRangeDisplay";
export { PisellTimeNavigator, getHorizontalAxisSlotCount, getRangeBounds, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, pickReferenceDateContainingNow, DEFAULT_CALENDAR_SLOT_STEP_MINUTES } from "./components/pisellTimeNavigator";
export { PisellReservationSchedule } from "./components/pisellReservationSchedule";
export { PisellReservationScheduleBand, formatScheduleAtLabel } from "./components/pisellReservationScheduleBand";
export { pisellTimeNavigatorLocales } from "./components/pisellTimeNavigator";
export { default as PisellStatisticList } from "./components/pisellStatisticList";
export { default as PisellEmpty } from "./components/pisellEmpty";
export { default as PisellText } from "./components/pisellText";
export { default as PisellTags } from "./components/pisellTags";
export { default as PisellAvatar } from "./components/pisellAvatar";
export { default as PisellCountdown } from "./components/pisellCountdown";
export { default as AutoResizeText } from "./components/auto-resize-text";

// ==================== 布局组件 (Layout) ====================
// 页面布局和容器组件
export { default as ClassicLayout } from "./components/classicLayout";
export { default as Collapse } from "./components/collapse";
// ==================== 其他组件 ====================
// 其他特殊用途组件
export { default as Component } from "./components/component";
export { default as ConfigProvider } from "./components/config-provider";
export { default as CropPhoto } from "./components/cropPhoto";
export { default as PisellContainer } from "./components/pisellContainer";
export { default as PisellRow } from "./components/pisellRow";
export { default as PisellBasicGrid } from "./components/PisellBasicGrid";
// 类型已在 PisellLayouts 命名空间中导出
export { default as PisellScrollView } from "./components/PisellScrollView";
export { PisellFloorMapLayout, FloorMapLayoutProvider, useFloorMapLayoutContext, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, mergeFloorMapLayoutPropsFromContext, getFigmaTableCardFromMerged, renderFigmaStyleTableCard, renderFigmaStyleRoundTableCard, getRenderItemByKindTable, getRenderItemByKindRoundTable, FloorMapImageElement, FloorMapBuiltinShapeElement, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_BUILTIN_SHAPES, getFloorMapBuiltinShapeDef, FLOOR_MAP_STAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FloorMapSelectionZoneElement, isSelectionZoneItem, computeSelectionZoneMemberIds, renderFloorMapFallbackPlaceholder, isFloorMapImageElementKind, isFloorMapBuiltinShapeElementKind,
/**
 * 「图元名作为资源标题」相关工具：业务方（如 private-materials 的预约模块）
 * 通过包根 `@pisell/materials` 引用，必须在顶层 index 显式 re-export，
 * 否则只在子模块 index 出现时，babel/swc 编译后会得到 `undefined`，
 * 调用时报 "Object(...) is not a function"。
 */
NAME_AS_TITLE_EXT_KEY, isElementNameAsTitleEnabled, buildNameAsTitleExtensionsPatch, resolveSceneElementDisplayTitle, findFloorMapRowByDataBinding, getFloorMapBindingPlaceholderReason, createShopFloorPlanClient, useShopFloorPlanSubscription, wrapFloorMapOnSaveWithRemotePersist, pickFloorPlanDetail, mergeFloorPlanViewRemote, shopLayoutToSceneElements, sceneElementsToShopLayout, buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, viewConfigToLayoutPayload, inferCanvasSizeFromScene, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, isFloorPlanDuplicateCodeError, parseLayoutFieldToViewConfigPatch, SHOP_FLOOR_PLAN_DUPLICATE_CODE, getFloorMapResourcePickerCardMeta, getFloorMapCardPickerCategoryConfig, floorMapResourcePickerRecordSearchText, getFloorMapDisplayLocale, initFloorMapLayoutLocales, floorMapLayoutLocales } from "./components/pisellFloorMapLayout";
// 类型已在 PisellLayouts 命名空间中导出
export { parseNestedPathSegments } from "./components/pisellFloorMapLayout";
export { default as PisellViewGrid } from "./components/pisellViewGrid";

// ==================== 表格组件 (Table) ====================
// 表格及相关数据处理组件
export { default as Table } from "./components/table";
export { default as PisellGridView } from "./components/pisellGridPro/GridView";
export { default as PisellToolBar } from "./components/pisellGridPro/ToolBar";
export { default as PisellGridPro } from "./components/pisellGridPro";
export { default as RecordView } from "./components/record-view";

// ==================== 表单组件 (Form) ====================
// 表单及表单项组件
export { default as PisellInput } from "./components/pisellInput";
export { getBankCardTypeImg } from "./components/pisellInput/components/BankCard/utils";
export { default as PisellDatePicker } from "./components/pisellDatePicker";
export { PisellMobileDateRangePicker } from "./components/pisellMobileDateRangePicker";
export { default as PisellCheckboxGroup } from "./components/pisellCheckboxGroup";
export { default as PisellCustomCheckboxGroup } from "./components/pisellCustomCheckboxGroup";
export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
export { default as PisellAdjustPrice } from "./components/pisellAdjustPrice";
export { default as PisellAdjustPriceInputNumber } from "./components/pisellAdjustPrice/PisellAdjustPriceInputNumber";
export { default as CustomSelect } from "./components/customSelect";
export { default as PisellUpload } from "./components/pisellUpload";
export { default as Translation } from "./components/translation";
export { PisellLookup } from "./components/pisellLookup";
export { PisellFind } from "./components/pisellFind";
// ==================== 数据源组件 (DataSource) ====================
// 数据源绑定相关组件，用于低代码场景
export { default as DataSourceForm } from "./components/dataSourceComponents/dataSourceForm";
export { default as FormGroup } from "./components/dataSourceComponents/dataSourceForm/group";
export { default as JsonWrapper } from "./components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider";
export { default as SubmitButton } from "./components/dataSourceComponents/dataSourceForm/submitButton";
export { default as DataSourceMenu } from "./components/dataSourceComponents/dataSourceMenu";
export { default as DataSourceImage } from "./components/dataSourceComponents/dataSourceShow/dataSourceImage";
export { default as DataSourceQRCode } from "./components/dataSourceComponents/dataSourceShow/dataSourceQRCode";
export { default as DataSourceTypography } from "./components/dataSourceComponents/dataSourceShow/dataSourceTypography";
export { default as DataSourceTable } from "./components/dataSourceComponents/dataSourceTable";
export { default as DataSourceWrapper } from "./components/dataSourceComponents/dataSourceWrapper";
export { default as PisellDataSourceContainer } from "./components/pisellDataSourceContainer";
export { default as PisellRecordBoard, useRecordBoardContext } from "./components/pisellRecordBoard";
export { useRecordBoardShellBodyMeta } from "./components/pisellRecordBoard/shellFrame";
export { PisellRecordBoardCalendarView, CalendarPersistProvider } from "./components/pisellRecordBoard/shellFrame/Calendar";
export { PisellRecordBoardResourceWallView, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from "./components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView";
export { getVenueWallStatusToneMap, diffVenueWallStatusToneOverrides } from "./components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils";
export { adaptColumnsForPhoneLayout, RECORD_BOARD_PHONE_GRID_CLASS } from "./components/pisellRecordBoard";
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from "./components/pisellRecordBoard";
export { PisellShellFrame } from "./components/pisellShellFrame";
export { default as FormItemCheckbox } from "./components/dataSourceComponents/fields/Checkbox";
export { default as FormItemColorPicker } from "./components/dataSourceComponents/fields/ColorPicker";
export { default as FormItemDatePicker } from "./components/dataSourceComponents/fields/DatePicker";
export { default as FormItemIconSelect } from "./components/dataSourceComponents/fields/IconSelect";
export { default as FormItemInput } from "./components/dataSourceComponents/fields/Input";
export { default as FormItemInputNumber } from "./components/dataSourceComponents/fields/InputNumber";
export { default as FormItemRadio } from "./components/dataSourceComponents/fields/Radio";
export { default as FormItemSelect } from "./components/dataSourceComponents/fields/Select";
export { default as FormItemSwitch } from "./components/dataSourceComponents/fields/Switch";
export { default as FormItemTimePicker } from "./components/dataSourceComponents/fields/TimePicker";
export { default as FormItemTranslation } from "./components/dataSourceComponents/fields/Translation";
export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
export { default as FormItemUpload } from "./components/dataSourceComponents/fields/Upload";
export { default as DatePicker } from "./components/date-picker";
export { default as Div } from "./components/div";
// ==================== 拖拽与排序组件 ====================
// 拖拽交互相关组件
export { default as DragSortTree } from "./components/drag-sort-tree";
export { default as Drawer } from "./components/drawer";
export { default as Dropdown } from "./components/dropdown";
// ==================== 筛选与排序组件 ====================
// 数据筛选、排序相关组件
export { default as Filter } from "./components/filter";
// ==================== 表单组件 (Form) ====================
// 表单及表单项组件
export { default as Form } from "./components/form";
export { default as Icon } from "./components/icon";
export { default as IconSelect } from "./components/iconSelect";
export { default as Iconfont } from "./components/iconfont";
export { default as Image } from "./components/image";
export { default as Input } from "./components/input";
export { default as InputNumberRange } from "./components/input-number-range";
export { default as Keyboard } from "./components/keyboard";
export { default as List } from "./components/list";
export { default as loginAndRegister } from "./components/login-and-register";
// ==================== 业务组件 ====================
// 特定业务场景的组件
export { default as LowCodePage } from "./components/lowCodePage";
export { default as Modal } from "./components/modal";
export { default as OrganizationTenantSwitcher } from "./components/organizationTenantSwitcher";
// ==================== 布局组件 (Layout) ====================
// 页面布局和容器组件
export { default as Page } from "./components/page";
export { default as PageHeader } from "./components/page-header";
export { default as SafeAreaTop } from "./components/SafeAreaTop";
// ==================== 配置与上下文 ====================
// 全局配置和上下文相关
export { default as PisellConfigProvider } from "./components/pisell-config-provider";
export { default as PisellContext, globalConfig } from "./components/pisell-config-provider/context";
export { default as usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig";
export { default as PisellAlert } from "./components/pisellAlert";
export { default as PisellAnchor } from "./components/pisellAnchor";
export { default as PisellAppCard } from "./components/pisellAppCard";
// ==================== 批量操作组件 ====================
// 批量操作相关组件
export { default as PisellBatchActionBar } from "./components/pisellBatchActionBar";
// ==================== 卡片组件 (Cards) ====================
// 卡片系列组件，用于列表、网格等场景的内容展示
export { default as PisellCard } from "./components/pisellCard";
export { default as PisellCardList } from "./components/pisellCardList";
export { PisellCurrency } from "./components/pisellCurrency";
// 类型已在 PisellMetrics 命名空间中导出
export { default as PisellDraggable } from "./components/pisellDraggable";
export { default as PisellDropSort } from "./components/pisellDropSort";
export { default as PisellDropdown } from "./components/pisellDropdown";
export { PisellEmail } from "./components/pisellEmail";
export { default as PisellFilter } from "./components/pisellFilter";
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
export { default as PisellHeaderProgressBar } from "./components/pisellHeaderProgressBar";
export { default as PisellImageCarousels } from "./components/pisellImageCarousels";
export { default as PisellLayout } from "./components/pisellLayout";
export { default as PisellContent } from "./components/pisellLayout/content";
export { default as PisellFooter } from "./components/pisellLayout/footer";
export { default as PisellHeader } from "./components/pisellLayout/header";
export { default as PisellSider } from "./components/pisellLayout/sider";
export { default as PisellList01 } from "./components/pisellList01";
export { default as PisellLoading } from "./components/pisellLoading";
export { PisellLongText } from "./components/pisellLongText";
export { default as DataSourceSubForm } from "./components/dataSourceComponents/dataSourceSubForm";
export { default as FormItemRecordListWrapper } from "./components/dataSourceComponents/fields/RecordListWrapper";
export { default as FormItemTabs } from "./components/dataSourceComponents/fields/Tabs";

// ==================== 导航组件 (Navigation) ====================
// 导航、菜单、标签页等组件
export { default as PisellMenu } from "./components/pisellMenu";
// ==================== 数据展示组件 (Data Display) ====================
// 用于展示各类数据指标、统计信息
export { default as PisellMetricCard } from "./components/pisellMetricCard";
//新增组件
// ==================== 反馈组件 (Feedback) ====================
// 用户反馈和提示类组件
export { default as PisellModal } from "./components/pisellModal";
export { PisellMultipleSelect } from "./components/pisellMultipleSelect";
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
export { PisellNumber } from "./components/pisellNumber";
export { PisellPercent } from "./components/pisellPercent";
export { PisellPhone } from "./components/pisellPhone";
export { default as PisellQRScanner } from "./components/pisellQRScanner";
export { default as PisellQrcode } from "./components/pisellQrcode";
export { default as PisellQuickFilter } from "./components/pisellQuickFilter";
export { PisellRating } from "./components/pisellRating";
export { default as PisellScan } from "./components/pisellScan";
export { default as PisellSectionHeaders } from "./components/pisellSectionHeaders";
// ==================== 字段组件 (Fields) ====================
// 表单字段组件，支持编辑态、只读态、禁用态三种视图模式
// 用于 Airtable 风格的数据表格和表单场景
// 注意：类型已在 PisellFields 命名空间中导出
export { PisellSingleLineText } from "./components/pisellSingleLineText";
export { PisellSingleSelect } from "./components/pisellSingleSelect";
export { default as PisellSort } from "./components/pisellSort";
export { default as PisellToast, useToast } from "./components/pisellToast";
export { default as PisellTooltip } from "./components/pisellTooltip";
export { PisellUrl } from "./components/pisellUrl";
// 类型已在 PisellLayouts 命名空间中导出
export { default as PisellWalletPassCard } from "./components/pisellWalletPassCard";
export { default as ProductCard } from "./components/productCard";
export { default as ProfileMenu } from "./components/profileMenu";
// ==================== 工具组件 (Utilities) ====================
// 二维码、扫码、虚拟键盘等工具类组件
export { default as QRCode } from "./components/qrcode";
export { default as Radio } from "./components/radio";
export { default as SectionFooters } from "./components/section-footers";
export { default as Segmented } from "./components/segmented";
export { default as Select } from "./components/select";
export { default as SelectTime } from "./components/select-time";
export { default as Skeleton } from "./components/skeleton";
export { default as Slider } from "./components/slider";
export { default as Sort } from "./components/sort";
export { default as SortableList } from "./components/sortableList";
// ==================== 表格组件 (Table) ====================
// 表格及相关数据处理组件
export { default as Tabs } from "./components/tabs";
export { default as TimePicker } from "./components/time-picker";
export { default as TreeSelect } from "./components/tree-select";
export { default as Typography } from "./components/typography";
export { default as Upload } from "./components/upload";
export { default as PublishVersionModal } from "./components/versionModal";
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
export { default as VirtualInput } from "./components/virtualInput";
export { default as WalletCard } from "./components/walletCard";