@yoka-ui/ui 1.0.10-test
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/@Docs-yoka/exports.generated.md +92 -0
- package/@Docs-yoka/llms.txt +23 -0
- package/README.md +291 -0
- package/dist/es/Themes/InputTheme/index.d.ts +6 -0
- package/dist/es/Themes/InputTheme/index.js +22 -0
- package/dist/es/Themes/InputTheme/index.js.map +7 -0
- package/dist/es/Themes/TableTheme/index.d.ts +7 -0
- package/dist/es/Themes/TableTheme/index.js +31 -0
- package/dist/es/Themes/TableTheme/index.js.map +7 -0
- package/dist/es/Themes/TableTheme/index.less +46 -0
- package/dist/es/assets/image/YKUI-logo.png +0 -0
- package/dist/es/assets/less/ant-reset.less +402 -0
- package/dist/es/assets/less/index.less +1 -0
- package/dist/es/assets/less/variables.less +16 -0
- package/dist/es/business/AiChat/MarkdownRender.d.ts +9 -0
- package/dist/es/business/AiChat/MarkdownRender.js +72 -0
- package/dist/es/business/AiChat/MarkdownRender.js.map +7 -0
- package/dist/es/business/AiChat/index.d.ts +16 -0
- package/dist/es/business/AiChat/index.js +521 -0
- package/dist/es/business/AiChat/index.js.map +7 -0
- package/dist/es/business/AiChat/intentRecognizer.d.ts +33 -0
- package/dist/es/business/AiChat/intentRecognizer.js +166 -0
- package/dist/es/business/AiChat/intentRecognizer.js.map +7 -0
- package/dist/es/business/AiChat/navigationManager.d.ts +94 -0
- package/dist/es/business/AiChat/navigationManager.js +208 -0
- package/dist/es/business/AiChat/navigationManager.js.map +7 -0
- package/dist/es/business/AiChat/sse.d.ts +1 -0
- package/dist/es/business/AiChat/sse.js +60 -0
- package/dist/es/business/AiChat/sse.js.map +7 -0
- package/dist/es/business/AiChat/type.d.ts +157 -0
- package/dist/es/business/AiChat/type.js +1 -0
- package/dist/es/business/AiChat/type.js.map +7 -0
- package/dist/es/business/AiChat/useAiChat.d.ts +2 -0
- package/dist/es/business/AiChat/useAiChat.js +238 -0
- package/dist/es/business/AiChat/useAiChat.js.map +7 -0
- package/dist/es/business/AiChat/useTaskWorkflow.d.ts +26 -0
- package/dist/es/business/AiChat/useTaskWorkflow.js +230 -0
- package/dist/es/business/AiChat/useTaskWorkflow.js.map +7 -0
- package/dist/es/business/DrawerPageInfo/index.d.ts +35 -0
- package/dist/es/business/DrawerPageInfo/index.js +133 -0
- package/dist/es/business/DrawerPageInfo/index.js.map +7 -0
- package/dist/es/business/DrawerPageInfo/index.module.less +87 -0
- package/dist/es/business/DrawerPageInfo/test.png +0 -0
- package/dist/es/business/Editor/index.d.ts +11 -0
- package/dist/es/business/Editor/index.js +86 -0
- package/dist/es/business/Editor/index.js.map +7 -0
- package/dist/es/business/Editor/index.less +31 -0
- package/dist/es/business/Empty/empty.png +0 -0
- package/dist/es/business/Empty/index.d.ts +19 -0
- package/dist/es/business/Empty/index.js +51 -0
- package/dist/es/business/Empty/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/assets/images/empty.png +0 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.d.ts +13 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.js +51 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconClose.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.d.ts +13 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.js +51 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/IconXiala.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.d.ts +25 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.js +30 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/FilterButton/index.module.less +97 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.d.ts +18 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +74 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.d.ts +37 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +216 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.d.ts +26 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +102 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.d.ts +51 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.js +71 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/components/PopoverContent/index.module.less +260 -0
- package/dist/es/business/ModCommonFilter/index.d.ts +53 -0
- package/dist/es/business/ModCommonFilter/index.js +129 -0
- package/dist/es/business/ModCommonFilter/index.js.map +7 -0
- package/dist/es/business/ModCommonFilter/index.module.less +7 -0
- package/dist/es/business/ModCommonFilter/typing.d.ts +20 -0
- package/dist/es/business/ModCommonFilter/typing.js +1 -0
- package/dist/es/business/ModCommonFilter/typing.js.map +7 -0
- package/dist/es/business/YkPorjectSelect/icon-product.png +0 -0
- package/dist/es/business/YkPorjectSelect/index.d.ts +51 -0
- package/dist/es/business/YkPorjectSelect/index.js +260 -0
- package/dist/es/business/YkPorjectSelect/index.js.map +7 -0
- package/dist/es/business/YkPorjectSelect/index.module.less +334 -0
- package/dist/es/business/YkPorjectSelect/product-close.png +0 -0
- package/dist/es/components/Clock/index.d.ts +19 -0
- package/dist/es/components/Clock/index.js +55 -0
- package/dist/es/components/Clock/index.js.map +7 -0
- package/dist/es/components/DebounceInput/index.d.ts +16 -0
- package/dist/es/components/DebounceInput/index.js +77 -0
- package/dist/es/components/DebounceInput/index.js.map +7 -0
- package/dist/es/components/DebounceInput/index.module.less +23 -0
- package/dist/es/components/MultipleSelect/index.d.ts +23 -0
- package/dist/es/components/MultipleSelect/index.js +249 -0
- package/dist/es/components/MultipleSelect/index.js.map +7 -0
- package/dist/es/components/MultipleSelect/index.module.less +174 -0
- package/dist/es/components/NumericInput/index.d.ts +19 -0
- package/dist/es/components/NumericInput/index.js +56 -0
- package/dist/es/components/NumericInput/index.js.map +7 -0
- package/dist/es/components/RefreshButton/index.d.ts +8 -0
- package/dist/es/components/RefreshButton/index.js +21 -0
- package/dist/es/components/RefreshButton/index.js.map +7 -0
- package/dist/es/components/SearchWithHistory/index.d.ts +21 -0
- package/dist/es/components/SearchWithHistory/index.js +115 -0
- package/dist/es/components/SearchWithHistory/index.js.map +7 -0
- package/dist/es/components/SearchWithHistory/index.module.less +64 -0
- package/dist/es/components/TextWithInput/index.d.ts +15 -0
- package/dist/es/components/TextWithInput/index.js +35 -0
- package/dist/es/components/TextWithInput/index.js.map +7 -0
- package/dist/es/components/TextWithToolTip/index.d.ts +17 -0
- package/dist/es/components/TextWithToolTip/index.js +118 -0
- package/dist/es/components/TextWithToolTip/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +28 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +161 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.less +151 -0
- package/dist/es/components/TreeTransfer/index.d.ts +28 -0
- package/dist/es/components/TreeTransfer/index.js +210 -0
- package/dist/es/components/TreeTransfer/index.js.map +7 -0
- package/dist/es/components/TreeTransfer/index.less +69 -0
- package/dist/es/components/TreeTransfer/types.d.ts +122 -0
- package/dist/es/components/TreeTransfer/types.js +6 -0
- package/dist/es/components/TreeTransfer/types.js.map +7 -0
- package/dist/es/components/TreeTransfer/utils/index.d.ts +120 -0
- package/dist/es/components/TreeTransfer/utils/index.js +195 -0
- package/dist/es/components/TreeTransfer/utils/index.js.map +7 -0
- package/dist/es/components/YkDateRangePicker/index.d.ts +57 -0
- package/dist/es/components/YkDateRangePicker/index.js +261 -0
- package/dist/es/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/es/components/YkDateRangePicker/index.module.less +281 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +16 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +193 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +31 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +556 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +16 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js +55 -0
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/index.d.ts +62 -0
- package/dist/es/components/YkRangeDateWithVS/index.js +130 -0
- package/dist/es/components/YkRangeDateWithVS/index.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/index.module.less +548 -0
- package/dist/es/components/YkRangeDateWithVS/styles.d.ts +2 -0
- package/dist/es/components/YkRangeDateWithVS/styles.js +18 -0
- package/dist/es/components/YkRangeDateWithVS/styles.js.map +7 -0
- package/dist/es/components/YkRangeDateWithVS/typing.d.ts +15 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.d.ts +48 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.js +288 -0
- package/dist/es/components/YkRangeTimeWithRecent/constants.js.map +7 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +26 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.js +647 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.js.map +7 -0
- package/dist/es/components/YkRangeTimeWithRecent/index.module.less +263 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.d.ts +17 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js +103 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js.map +7 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.less +106 -0
- package/dist/es/creative/ButtonWithProgress/index.d.ts +11 -0
- package/dist/es/creative/ButtonWithProgress/index.js +79 -0
- package/dist/es/creative/ButtonWithProgress/index.js.map +7 -0
- package/dist/es/creative/ButtonWithProgress/index.less +66 -0
- package/dist/es/global.less +12 -0
- package/dist/es/index.d.ts +41 -0
- package/dist/es/index.js +85 -0
- package/dist/es/index.js.map +7 -0
- package/dist/es/layout/FlexGrid/index.d.ts +25 -0
- package/dist/es/layout/FlexGrid/index.js +63 -0
- package/dist/es/layout/FlexGrid/index.js.map +7 -0
- package/dist/es/layout/YkContainer/index.d.ts +27 -0
- package/dist/es/layout/YkContainer/index.js +79 -0
- package/dist/es/layout/YkContainer/index.js.map +7 -0
- package/dist/es/layout/YkDrawer/index.d.ts +22 -0
- package/dist/es/layout/YkDrawer/index.js +160 -0
- package/dist/es/layout/YkDrawer/index.js.map +7 -0
- package/dist/es/layout/YkDrawer/index.module.less +45 -0
- package/dist/es/ui/LabelSelect/demo.d.ts +3 -0
- package/dist/es/ui/LabelSelect/demo.js +83 -0
- package/dist/es/ui/LabelSelect/demo.js.map +7 -0
- package/dist/es/ui/LabelSelect/index.d.ts +41 -0
- package/dist/es/ui/LabelSelect/index.js +136 -0
- package/dist/es/ui/LabelSelect/index.js.map +7 -0
- package/dist/es/ui/LogicOperator/index.d.ts +10 -0
- package/dist/es/ui/LogicOperator/index.js +12 -0
- package/dist/es/ui/LogicOperator/index.js.map +7 -0
- package/dist/es/ui/LogicOperator/index.module.less +97 -0
- package/dist/es/ui/YkButton/index.d.ts +9 -0
- package/dist/es/ui/YkButton/index.js +59 -0
- package/dist/es/ui/YkButton/index.js.map +7 -0
- package/dist/es/ui/YkCard/index.d.ts +4 -0
- package/dist/es/ui/YkCard/index.js +79 -0
- package/dist/es/ui/YkCard/index.js.map +7 -0
- package/dist/es/ui/YkCard/index.module.less +30 -0
- package/dist/es/ui/YkCheckbox/index.d.ts +4 -0
- package/dist/es/ui/YkCheckbox/index.js +45 -0
- package/dist/es/ui/YkCheckbox/index.js.map +7 -0
- package/dist/es/ui/YkCheckbox/index.module.less +22 -0
- package/dist/es/ui/YkDescriptions/index.d.ts +4 -0
- package/dist/es/ui/YkDescriptions/index.js +41 -0
- package/dist/es/ui/YkDescriptions/index.js.map +7 -0
- package/dist/es/ui/YkPagination/index.d.ts +4 -0
- package/dist/es/ui/YkPagination/index.js +63 -0
- package/dist/es/ui/YkPagination/index.js.map +7 -0
- package/dist/es/ui/YkPagination/index.module.less +22 -0
- package/dist/es/ui/YkRadio/index.d.ts +4 -0
- package/dist/es/ui/YkRadio/index.js +51 -0
- package/dist/es/ui/YkRadio/index.js.map +7 -0
- package/dist/es/ui/YkRadio/index.module.less +22 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.d.ts +15 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.js +23 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.js.map +7 -0
- package/dist/es/ui/YkRadioBtnSpecial/index.module.less +112 -0
- package/dist/es/ui/YkSegmented/index.d.ts +4 -0
- package/dist/es/ui/YkSegmented/index.js +41 -0
- package/dist/es/ui/YkSegmented/index.js.map +7 -0
- package/dist/es/ui/YkSelect/index.d.ts +7 -0
- package/dist/es/ui/YkSelect/index.js +54 -0
- package/dist/es/ui/YkSelect/index.js.map +7 -0
- package/dist/es/ui/YkSpin/index.d.ts +4 -0
- package/dist/es/ui/YkSpin/index.js +41 -0
- package/dist/es/ui/YkSpin/index.js.map +7 -0
- package/dist/es/ui/YkStatistic/index.d.ts +4 -0
- package/dist/es/ui/YkStatistic/index.js +41 -0
- package/dist/es/ui/YkStatistic/index.js.map +7 -0
- package/dist/es/ui/YkSwitch/index.d.ts +4 -0
- package/dist/es/ui/YkSwitch/index.js +51 -0
- package/dist/es/ui/YkSwitch/index.js.map +7 -0
- package/dist/es/ui/YkTabs/index.d.ts +12 -0
- package/dist/es/ui/YkTabs/index.js +75 -0
- package/dist/es/ui/YkTabs/index.js.map +7 -0
- package/dist/es/ui/YkTabs/index.module.less +11 -0
- package/dist/es/ui/YkTooltip/index.d.ts +4 -0
- package/dist/es/ui/YkTooltip/index.js +50 -0
- package/dist/es/ui/YkTooltip/index.js.map +7 -0
- package/dist/es/utils/styleUtils.d.ts +18 -0
- package/dist/es/utils/styleUtils.js +57 -0
- package/dist/es/utils/styleUtils.js.map +7 -0
- package/dist/es/utils/ykStorybookDoc.d.ts +17 -0
- package/dist/es/utils/ykStorybookDoc.js +18 -0
- package/dist/es/utils/ykStorybookDoc.js.map +7 -0
- package/dist/lib/Themes/InputTheme/index.d.ts +6 -0
- package/dist/lib/Themes/InputTheme/index.js +52 -0
- package/dist/lib/Themes/InputTheme/index.js.map +7 -0
- package/dist/lib/Themes/TableTheme/index.d.ts +7 -0
- package/dist/lib/Themes/TableTheme/index.js +61 -0
- package/dist/lib/Themes/TableTheme/index.js.map +7 -0
- package/dist/lib/Themes/TableTheme/index.less +46 -0
- package/dist/lib/assets/image/YKUI-logo.png +0 -0
- package/dist/lib/assets/less/ant-reset.less +402 -0
- package/dist/lib/assets/less/index.less +1 -0
- package/dist/lib/assets/less/variables.less +16 -0
- package/dist/lib/business/AiChat/MarkdownRender.d.ts +9 -0
- package/dist/lib/business/AiChat/MarkdownRender.js +102 -0
- package/dist/lib/business/AiChat/MarkdownRender.js.map +7 -0
- package/dist/lib/business/AiChat/index.d.ts +16 -0
- package/dist/lib/business/AiChat/index.js +514 -0
- package/dist/lib/business/AiChat/index.js.map +7 -0
- package/dist/lib/business/AiChat/intentRecognizer.d.ts +33 -0
- package/dist/lib/business/AiChat/intentRecognizer.js +193 -0
- package/dist/lib/business/AiChat/intentRecognizer.js.map +7 -0
- package/dist/lib/business/AiChat/navigationManager.d.ts +94 -0
- package/dist/lib/business/AiChat/navigationManager.js +214 -0
- package/dist/lib/business/AiChat/navigationManager.js.map +7 -0
- package/dist/lib/business/AiChat/sse.d.ts +1 -0
- package/dist/lib/business/AiChat/sse.js +61 -0
- package/dist/lib/business/AiChat/sse.js.map +7 -0
- package/dist/lib/business/AiChat/type.d.ts +157 -0
- package/dist/lib/business/AiChat/type.js +18 -0
- package/dist/lib/business/AiChat/type.js.map +7 -0
- package/dist/lib/business/AiChat/useAiChat.d.ts +2 -0
- package/dist/lib/business/AiChat/useAiChat.js +222 -0
- package/dist/lib/business/AiChat/useAiChat.js.map +7 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +26 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.js +216 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.js.map +7 -0
- package/dist/lib/business/DrawerPageInfo/index.d.ts +35 -0
- package/dist/lib/business/DrawerPageInfo/index.js +163 -0
- package/dist/lib/business/DrawerPageInfo/index.js.map +7 -0
- package/dist/lib/business/DrawerPageInfo/index.module.less +87 -0
- package/dist/lib/business/DrawerPageInfo/test.png +0 -0
- package/dist/lib/business/Editor/index.d.ts +11 -0
- package/dist/lib/business/Editor/index.js +99 -0
- package/dist/lib/business/Editor/index.js.map +7 -0
- package/dist/lib/business/Editor/index.less +31 -0
- package/dist/lib/business/Empty/empty.png +0 -0
- package/dist/lib/business/Empty/index.d.ts +19 -0
- package/dist/lib/business/Empty/index.js +65 -0
- package/dist/lib/business/Empty/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/assets/images/empty.png +0 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.d.ts +13 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.js +50 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconClose.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.d.ts +13 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.js +50 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/IconXiala.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.d.ts +25 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.js +60 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/FilterButton/index.module.less +97 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.d.ts +18 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +69 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.d.ts +37 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +211 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.d.ts +26 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +97 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.d.ts +51 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.js +101 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/index.module.less +260 -0
- package/dist/lib/business/ModCommonFilter/index.d.ts +53 -0
- package/dist/lib/business/ModCommonFilter/index.js +143 -0
- package/dist/lib/business/ModCommonFilter/index.js.map +7 -0
- package/dist/lib/business/ModCommonFilter/index.module.less +7 -0
- package/dist/lib/business/ModCommonFilter/typing.d.ts +20 -0
- package/dist/lib/business/ModCommonFilter/typing.js +18 -0
- package/dist/lib/business/ModCommonFilter/typing.js.map +7 -0
- package/dist/lib/business/YkPorjectSelect/icon-product.png +0 -0
- package/dist/lib/business/YkPorjectSelect/index.d.ts +51 -0
- package/dist/lib/business/YkPorjectSelect/index.js +235 -0
- package/dist/lib/business/YkPorjectSelect/index.js.map +7 -0
- package/dist/lib/business/YkPorjectSelect/index.module.less +334 -0
- package/dist/lib/business/YkPorjectSelect/product-close.png +0 -0
- package/dist/lib/components/Clock/index.d.ts +19 -0
- package/dist/lib/components/Clock/index.js +85 -0
- package/dist/lib/components/Clock/index.js.map +7 -0
- package/dist/lib/components/DebounceInput/index.d.ts +16 -0
- package/dist/lib/components/DebounceInput/index.js +107 -0
- package/dist/lib/components/DebounceInput/index.js.map +7 -0
- package/dist/lib/components/DebounceInput/index.module.less +23 -0
- package/dist/lib/components/MultipleSelect/index.d.ts +23 -0
- package/dist/lib/components/MultipleSelect/index.js +279 -0
- package/dist/lib/components/MultipleSelect/index.js.map +7 -0
- package/dist/lib/components/MultipleSelect/index.module.less +174 -0
- package/dist/lib/components/NumericInput/index.d.ts +19 -0
- package/dist/lib/components/NumericInput/index.js +67 -0
- package/dist/lib/components/NumericInput/index.js.map +7 -0
- package/dist/lib/components/RefreshButton/index.d.ts +8 -0
- package/dist/lib/components/RefreshButton/index.js +51 -0
- package/dist/lib/components/RefreshButton/index.js.map +7 -0
- package/dist/lib/components/SearchWithHistory/index.d.ts +21 -0
- package/dist/lib/components/SearchWithHistory/index.js +145 -0
- package/dist/lib/components/SearchWithHistory/index.js.map +7 -0
- package/dist/lib/components/SearchWithHistory/index.module.less +64 -0
- package/dist/lib/components/TextWithInput/index.d.ts +15 -0
- package/dist/lib/components/TextWithInput/index.js +65 -0
- package/dist/lib/components/TextWithInput/index.js.map +7 -0
- package/dist/lib/components/TextWithToolTip/index.d.ts +17 -0
- package/dist/lib/components/TextWithToolTip/index.js +134 -0
- package/dist/lib/components/TextWithToolTip/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +28 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +191 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.less +151 -0
- package/dist/lib/components/TreeTransfer/index.d.ts +28 -0
- package/dist/lib/components/TreeTransfer/index.js +214 -0
- package/dist/lib/components/TreeTransfer/index.js.map +7 -0
- package/dist/lib/components/TreeTransfer/index.less +69 -0
- package/dist/lib/components/TreeTransfer/types.d.ts +122 -0
- package/dist/lib/components/TreeTransfer/types.js +30 -0
- package/dist/lib/components/TreeTransfer/types.js.map +7 -0
- package/dist/lib/components/TreeTransfer/utils/index.d.ts +120 -0
- package/dist/lib/components/TreeTransfer/utils/index.js +208 -0
- package/dist/lib/components/TreeTransfer/utils/index.js.map +7 -0
- package/dist/lib/components/YkDateRangePicker/index.d.ts +57 -0
- package/dist/lib/components/YkDateRangePicker/index.js +282 -0
- package/dist/lib/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/lib/components/YkDateRangePicker/index.module.less +281 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +16 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +223 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +31 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +567 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +16 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js +85 -0
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/index.d.ts +62 -0
- package/dist/lib/components/YkRangeDateWithVS/index.js +140 -0
- package/dist/lib/components/YkRangeDateWithVS/index.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/index.module.less +548 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.d.ts +2 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.js +48 -0
- package/dist/lib/components/YkRangeDateWithVS/styles.js.map +7 -0
- package/dist/lib/components/YkRangeDateWithVS/typing.d.ts +15 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.d.ts +48 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.js +333 -0
- package/dist/lib/components/YkRangeTimeWithRecent/constants.js.map +7 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +26 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.js +647 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +7 -0
- package/dist/lib/components/YkRangeTimeWithRecent/index.module.less +263 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.d.ts +17 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js +102 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +7 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.less +106 -0
- package/dist/lib/creative/ButtonWithProgress/index.d.ts +11 -0
- package/dist/lib/creative/ButtonWithProgress/index.js +70 -0
- package/dist/lib/creative/ButtonWithProgress/index.js.map +7 -0
- package/dist/lib/creative/ButtonWithProgress/index.less +66 -0
- package/dist/lib/global.less +12 -0
- package/dist/lib/index.d.ts +41 -0
- package/dist/lib/index.js +158 -0
- package/dist/lib/index.js.map +7 -0
- package/dist/lib/layout/FlexGrid/index.d.ts +25 -0
- package/dist/lib/layout/FlexGrid/index.js +77 -0
- package/dist/lib/layout/FlexGrid/index.js.map +7 -0
- package/dist/lib/layout/YkContainer/index.d.ts +27 -0
- package/dist/lib/layout/YkContainer/index.js +79 -0
- package/dist/lib/layout/YkContainer/index.js.map +7 -0
- package/dist/lib/layout/YkDrawer/index.d.ts +22 -0
- package/dist/lib/layout/YkDrawer/index.js +152 -0
- package/dist/lib/layout/YkDrawer/index.js.map +7 -0
- package/dist/lib/layout/YkDrawer/index.module.less +45 -0
- package/dist/lib/ui/LabelSelect/demo.d.ts +3 -0
- package/dist/lib/ui/LabelSelect/demo.js +113 -0
- package/dist/lib/ui/LabelSelect/demo.js.map +7 -0
- package/dist/lib/ui/LabelSelect/index.d.ts +41 -0
- package/dist/lib/ui/LabelSelect/index.js +124 -0
- package/dist/lib/ui/LabelSelect/index.js.map +7 -0
- package/dist/lib/ui/LogicOperator/index.d.ts +10 -0
- package/dist/lib/ui/LogicOperator/index.js +42 -0
- package/dist/lib/ui/LogicOperator/index.js.map +7 -0
- package/dist/lib/ui/LogicOperator/index.module.less +97 -0
- package/dist/lib/ui/YkButton/index.d.ts +9 -0
- package/dist/lib/ui/YkButton/index.js +55 -0
- package/dist/lib/ui/YkButton/index.js.map +7 -0
- package/dist/lib/ui/YkCard/index.d.ts +4 -0
- package/dist/lib/ui/YkCard/index.js +76 -0
- package/dist/lib/ui/YkCard/index.js.map +7 -0
- package/dist/lib/ui/YkCard/index.module.less +30 -0
- package/dist/lib/ui/YkCheckbox/index.d.ts +4 -0
- package/dist/lib/ui/YkCheckbox/index.js +42 -0
- package/dist/lib/ui/YkCheckbox/index.js.map +7 -0
- package/dist/lib/ui/YkCheckbox/index.module.less +22 -0
- package/dist/lib/ui/YkDescriptions/index.d.ts +4 -0
- package/dist/lib/ui/YkDescriptions/index.js +41 -0
- package/dist/lib/ui/YkDescriptions/index.js.map +7 -0
- package/dist/lib/ui/YkPagination/index.d.ts +4 -0
- package/dist/lib/ui/YkPagination/index.js +60 -0
- package/dist/lib/ui/YkPagination/index.js.map +7 -0
- package/dist/lib/ui/YkPagination/index.module.less +22 -0
- package/dist/lib/ui/YkRadio/index.d.ts +4 -0
- package/dist/lib/ui/YkRadio/index.js +51 -0
- package/dist/lib/ui/YkRadio/index.js.map +7 -0
- package/dist/lib/ui/YkRadio/index.module.less +22 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.d.ts +15 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.js +53 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.js.map +7 -0
- package/dist/lib/ui/YkRadioBtnSpecial/index.module.less +112 -0
- package/dist/lib/ui/YkSegmented/index.d.ts +4 -0
- package/dist/lib/ui/YkSegmented/index.js +41 -0
- package/dist/lib/ui/YkSegmented/index.js.map +7 -0
- package/dist/lib/ui/YkSelect/index.d.ts +7 -0
- package/dist/lib/ui/YkSelect/index.js +54 -0
- package/dist/lib/ui/YkSelect/index.js.map +7 -0
- package/dist/lib/ui/YkSpin/index.d.ts +4 -0
- package/dist/lib/ui/YkSpin/index.js +41 -0
- package/dist/lib/ui/YkSpin/index.js.map +7 -0
- package/dist/lib/ui/YkStatistic/index.d.ts +4 -0
- package/dist/lib/ui/YkStatistic/index.js +41 -0
- package/dist/lib/ui/YkStatistic/index.js.map +7 -0
- package/dist/lib/ui/YkSwitch/index.d.ts +4 -0
- package/dist/lib/ui/YkSwitch/index.js +51 -0
- package/dist/lib/ui/YkSwitch/index.js.map +7 -0
- package/dist/lib/ui/YkTabs/index.d.ts +12 -0
- package/dist/lib/ui/YkTabs/index.js +70 -0
- package/dist/lib/ui/YkTabs/index.js.map +7 -0
- package/dist/lib/ui/YkTabs/index.module.less +11 -0
- package/dist/lib/ui/YkTooltip/index.d.ts +4 -0
- package/dist/lib/ui/YkTooltip/index.js +45 -0
- package/dist/lib/ui/YkTooltip/index.js.map +7 -0
- package/dist/lib/utils/styleUtils.d.ts +18 -0
- package/dist/lib/utils/styleUtils.js +84 -0
- package/dist/lib/utils/styleUtils.js.map +7 -0
- package/dist/lib/utils/ykStorybookDoc.d.ts +17 -0
- package/dist/lib/utils/ykStorybookDoc.js +41 -0
- package/dist/lib/utils/ykStorybookDoc.js.map +7 -0
- package/package.json +147 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/creative/ButtonWithProgress/index.tsx
|
|
34
|
+
import { Button } from "antd";
|
|
35
|
+
import classNames from "classnames";
|
|
36
|
+
import React, { useMemo } from "react";
|
|
37
|
+
import "./index.less";
|
|
38
|
+
var ButtonWithProgress = (_a) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
children,
|
|
41
|
+
progress = 0,
|
|
42
|
+
progressColor = "#000000",
|
|
43
|
+
progressing = false,
|
|
44
|
+
subtitle = "",
|
|
45
|
+
disabled,
|
|
46
|
+
className
|
|
47
|
+
} = _b, props = __objRest(_b, [
|
|
48
|
+
"children",
|
|
49
|
+
"progress",
|
|
50
|
+
"progressColor",
|
|
51
|
+
"progressing",
|
|
52
|
+
"subtitle",
|
|
53
|
+
"disabled",
|
|
54
|
+
"className"
|
|
55
|
+
]);
|
|
56
|
+
const buttonProps = useMemo(() => {
|
|
57
|
+
return __spreadProps(__spreadValues({}, props), {
|
|
58
|
+
disabled: disabled || progressing,
|
|
59
|
+
className: classNames("button-with-progress", className)
|
|
60
|
+
});
|
|
61
|
+
}, [props, disabled, progressing, className]);
|
|
62
|
+
return /* @__PURE__ */ React.createElement(Button, __spreadValues({}, buttonProps), /* @__PURE__ */ React.createElement("div", { className: "button-content" }, children && /* @__PURE__ */ React.createElement("div", { className: "button-main-text" }, children), subtitle && /* @__PURE__ */ React.createElement("div", { className: "button-subtitle" }, subtitle)), progress && progressing ? /* @__PURE__ */ React.createElement(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: classNames("progress-bar", {
|
|
66
|
+
animate: progressing && !disabled
|
|
67
|
+
}),
|
|
68
|
+
style: {
|
|
69
|
+
backgroundColor: progressColor,
|
|
70
|
+
animationDuration: `${progress / 1e3}s`
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
) : null);
|
|
74
|
+
};
|
|
75
|
+
var ButtonWithProgress_default = ButtonWithProgress;
|
|
76
|
+
export {
|
|
77
|
+
ButtonWithProgress_default as default
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/creative/ButtonWithProgress/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import { Button, ButtonProps } from 'antd';\nimport classNames from 'classnames';\nimport React, { useMemo } from 'react';\nimport './index.less';\n\nexport interface ButtonWithProgressProps extends ButtonProps {\n progress?: number;\n progressColor?: string;\n progressing?: boolean;\n subtitle?: string;\n}\n\nconst ButtonWithProgress: React.FC<ButtonWithProgressProps> = ({\n children,\n progress = 0,\n progressColor = '#000000',\n progressing = false,\n subtitle = '',\n disabled,\n className,\n ...props\n}) => {\n const buttonProps = useMemo(() => {\n return {\n ...props,\n disabled: disabled || progressing,\n className: classNames('button-with-progress', className),\n };\n }, [props, disabled, progressing, className]);\n\n return (\n <Button {...buttonProps}>\n <div className='button-content'>\n {children && <div className='button-main-text'>{children}</div>}\n {subtitle && <div className='button-subtitle'>{subtitle}</div>}\n </div>\n {progress && progressing ? (\n <div\n className={classNames('progress-bar', {\n animate: progressing && !disabled,\n })}\n style={{\n backgroundColor: progressColor,\n animationDuration: `${progress / 1000}s`,\n }}\n />\n ) : null}\n </Button>\n );\n};\n\nexport default ButtonWithProgress;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,cAA2B;AACpC,OAAO,gBAAgB;AACvB,OAAO,SAAS,eAAe;AAC/B,OAAO;AASP,IAAM,qBAAwD,CAAC,OASzD;AATyD,eAC7D;AAAA;AAAA,IACA,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,WAAW;AAAA,IACX;AAAA,IACA;AAAA,EAnBF,IAY+D,IAQ1D,kBAR0D,IAQ1D;AAAA,IAPH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,cAAc,QAAQ,MAAM;AAChC,WAAO,iCACF,QADE;AAAA,MAEL,UAAU,YAAY;AAAA,MACtB,WAAW,WAAW,wBAAwB,SAAS;AAAA,IACzD;AAAA,EACF,GAAG,CAAC,OAAO,UAAU,aAAa,SAAS,CAAC;AAE5C,SACE,oCAAC,2BAAW,cACV,oCAAC,SAAI,WAAU,oBACZ,YAAY,oCAAC,SAAI,WAAU,sBAAoB,QAAS,GACxD,YAAY,oCAAC,SAAI,WAAU,qBAAmB,QAAS,CAC1D,GACC,YAAY,cACX;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,WAAW,gBAAgB;AAAA,QACpC,SAAS,eAAe,CAAC;AAAA,MAC3B,CAAC;AAAA,MACD,OAAO;AAAA,QACL,iBAAiB;AAAA,QACjB,mBAAmB,GAAG,WAAW;AAAA,MACnC;AAAA;AAAA,EACF,IACE,IACN;AAEJ;AAEA,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.button-with-progress {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
height: auto !important;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
.button-content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
line-height: 1.5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.button-main-text {
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.button-subtitle {
|
|
24
|
+
margin-top: 2px;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
line-height: 20px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Primary 类型按钮的副标题颜色
|
|
31
|
+
&.ant-btn-primary .button-subtitle {
|
|
32
|
+
color: rgba(255, 255, 255, 0.65);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 默认类型按钮的副标题颜色
|
|
36
|
+
&.ant-btn-default .button-subtitle {
|
|
37
|
+
color: rgba(0, 0, 0, 0.45);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// 其他类型按钮的副标题颜色
|
|
41
|
+
&:not(.ant-btn-primary):not(.ant-btn-default) .button-subtitle {
|
|
42
|
+
color: rgba(0, 0, 0, 0.45);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.progress-bar {
|
|
46
|
+
position: absolute;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
height: 2px;
|
|
50
|
+
|
|
51
|
+
&.animate {
|
|
52
|
+
animation-name: progress-bar;
|
|
53
|
+
animation-timing-function: linear;
|
|
54
|
+
animation-fill-mode: forwards;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes progress-bar {
|
|
59
|
+
from {
|
|
60
|
+
width: 0%;
|
|
61
|
+
}
|
|
62
|
+
to {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import 'antd/dist/reset.css';
|
|
2
|
+
export { default as LabelSelect } from './ui/LabelSelect';
|
|
3
|
+
export { default as LogicOperator } from './ui/LogicOperator';
|
|
4
|
+
export { default as YkButton } from './ui/YkButton';
|
|
5
|
+
export { default as YkCard } from './ui/YkCard';
|
|
6
|
+
export { default as YkCheckbox } from './ui/YkCheckbox';
|
|
7
|
+
export { default as YkDescriptions } from './ui/YkDescriptions';
|
|
8
|
+
export { default as YkPagination } from './ui/YkPagination';
|
|
9
|
+
export { default as YkRadio } from './ui/YkRadio';
|
|
10
|
+
export { default as YkRadioBtnSpecial } from './ui/YkRadioBtnSpecial';
|
|
11
|
+
export { default as YkSegmented } from './ui/YkSegmented';
|
|
12
|
+
export { default as YkSelect } from './ui/YkSelect';
|
|
13
|
+
export { default as YkSpin } from './ui/YkSpin';
|
|
14
|
+
export { default as YkStatistic } from './ui/YkStatistic';
|
|
15
|
+
export { default as YkSwitch } from './ui/YkSwitch';
|
|
16
|
+
export { default as YkTabs } from './ui/YkTabs';
|
|
17
|
+
export { default as YkTooltip } from './ui/YkTooltip';
|
|
18
|
+
export { default as DrawerPageInfo } from './business/DrawerPageInfo';
|
|
19
|
+
export { default as Editor } from './business/Editor';
|
|
20
|
+
export { default as Empty } from './business/Empty';
|
|
21
|
+
export { default as ModCommonFilter } from './business/ModCommonFilter';
|
|
22
|
+
export { default as YkPorjectSelect } from './business/YkPorjectSelect';
|
|
23
|
+
export { default as YkDateRangePicker } from './components/YkDateRangePicker';
|
|
24
|
+
export { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';
|
|
25
|
+
export { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';
|
|
26
|
+
export { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';
|
|
27
|
+
export { default as ButtonWithProgress } from './creative/ButtonWithProgress';
|
|
28
|
+
export { default as InputTheme } from './Themes/InputTheme';
|
|
29
|
+
export { default as TableTheme } from './Themes/TableTheme';
|
|
30
|
+
export { default as FlexGrid } from './layout/FlexGrid';
|
|
31
|
+
export { default as YkContainer } from './layout/YkContainer';
|
|
32
|
+
export { default as YkDrawer } from './layout/YkDrawer';
|
|
33
|
+
export { default as Clock } from './components/Clock';
|
|
34
|
+
export { default as DebounceInput } from './components/DebounceInput';
|
|
35
|
+
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
36
|
+
export { default as NumericInput } from './components/NumericInput';
|
|
37
|
+
export { default as RefreshButton } from './components/RefreshButton';
|
|
38
|
+
export { default as SearchWithHistory } from './components/SearchWithHistory';
|
|
39
|
+
export { default as TextWithInput } from './components/TextWithInput';
|
|
40
|
+
export { default as TextWithToolTip } from './components/TextWithToolTip';
|
|
41
|
+
export { default as TreeTransfer } from './components/TreeTransfer';
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
import "antd/dist/reset.css";
|
|
3
|
+
import { default as default2 } from "./ui/LabelSelect";
|
|
4
|
+
import { default as default3 } from "./ui/LogicOperator";
|
|
5
|
+
import { default as default4 } from "./ui/YkButton";
|
|
6
|
+
import { default as default5 } from "./ui/YkCard";
|
|
7
|
+
import { default as default6 } from "./ui/YkCheckbox";
|
|
8
|
+
import { default as default7 } from "./ui/YkDescriptions";
|
|
9
|
+
import { default as default8 } from "./ui/YkPagination";
|
|
10
|
+
import { default as default9 } from "./ui/YkRadio";
|
|
11
|
+
import { default as default10 } from "./ui/YkRadioBtnSpecial";
|
|
12
|
+
import { default as default11 } from "./ui/YkSegmented";
|
|
13
|
+
import { default as default12 } from "./ui/YkSelect";
|
|
14
|
+
import { default as default13 } from "./ui/YkSpin";
|
|
15
|
+
import { default as default14 } from "./ui/YkStatistic";
|
|
16
|
+
import { default as default15 } from "./ui/YkSwitch";
|
|
17
|
+
import { default as default16 } from "./ui/YkTabs";
|
|
18
|
+
import { default as default17 } from "./ui/YkTooltip";
|
|
19
|
+
import { default as default18 } from "./business/DrawerPageInfo";
|
|
20
|
+
import { default as default19 } from "./business/Editor";
|
|
21
|
+
import { default as default20 } from "./business/Empty";
|
|
22
|
+
import { default as default21 } from "./business/ModCommonFilter";
|
|
23
|
+
import { default as default22 } from "./business/YkPorjectSelect";
|
|
24
|
+
import { default as default23 } from "./components/YkDateRangePicker";
|
|
25
|
+
import { default as default24 } from "./components/YkRangeDateWithVS";
|
|
26
|
+
import { default as default25 } from "./components/YkRangeTimeWithRecent";
|
|
27
|
+
import { default as default26 } from "./creative/ButtonRadioWithInfo";
|
|
28
|
+
import { default as default27 } from "./creative/ButtonWithProgress";
|
|
29
|
+
import { default as default28 } from "./Themes/InputTheme";
|
|
30
|
+
import { default as default29 } from "./Themes/TableTheme";
|
|
31
|
+
import { default as default30 } from "./layout/FlexGrid";
|
|
32
|
+
import { default as default31 } from "./layout/YkContainer";
|
|
33
|
+
import { default as default32 } from "./layout/YkDrawer";
|
|
34
|
+
import { default as default33 } from "./components/Clock";
|
|
35
|
+
import { default as default34 } from "./components/DebounceInput";
|
|
36
|
+
import { default as default35 } from "./components/MultipleSelect";
|
|
37
|
+
import { default as default36 } from "./components/NumericInput";
|
|
38
|
+
import { default as default37 } from "./components/RefreshButton";
|
|
39
|
+
import { default as default38 } from "./components/SearchWithHistory";
|
|
40
|
+
import { default as default39 } from "./components/TextWithInput";
|
|
41
|
+
import { default as default40 } from "./components/TextWithToolTip";
|
|
42
|
+
import { default as default41 } from "./components/TreeTransfer";
|
|
43
|
+
export {
|
|
44
|
+
default26 as ButtonRadioWithInfo,
|
|
45
|
+
default27 as ButtonWithProgress,
|
|
46
|
+
default33 as Clock,
|
|
47
|
+
default34 as DebounceInput,
|
|
48
|
+
default18 as DrawerPageInfo,
|
|
49
|
+
default19 as Editor,
|
|
50
|
+
default20 as Empty,
|
|
51
|
+
default30 as FlexGrid,
|
|
52
|
+
default28 as InputTheme,
|
|
53
|
+
default2 as LabelSelect,
|
|
54
|
+
default3 as LogicOperator,
|
|
55
|
+
default21 as ModCommonFilter,
|
|
56
|
+
default35 as MultipleSelect,
|
|
57
|
+
default36 as NumericInput,
|
|
58
|
+
default37 as RefreshButton,
|
|
59
|
+
default38 as SearchWithHistory,
|
|
60
|
+
default29 as TableTheme,
|
|
61
|
+
default39 as TextWithInput,
|
|
62
|
+
default40 as TextWithToolTip,
|
|
63
|
+
default41 as TreeTransfer,
|
|
64
|
+
default4 as YkButton,
|
|
65
|
+
default5 as YkCard,
|
|
66
|
+
default6 as YkCheckbox,
|
|
67
|
+
default31 as YkContainer,
|
|
68
|
+
default23 as YkDateRangePicker,
|
|
69
|
+
default7 as YkDescriptions,
|
|
70
|
+
default32 as YkDrawer,
|
|
71
|
+
default8 as YkPagination,
|
|
72
|
+
default22 as YkPorjectSelect,
|
|
73
|
+
default9 as YkRadio,
|
|
74
|
+
default10 as YkRadioBtnSpecial,
|
|
75
|
+
default24 as YkRangeDateWithVS,
|
|
76
|
+
default25 as YkRangeTimeWithRecent,
|
|
77
|
+
default11 as YkSegmented,
|
|
78
|
+
default12 as YkSelect,
|
|
79
|
+
default13 as YkSpin,
|
|
80
|
+
default14 as YkStatistic,
|
|
81
|
+
default15 as YkSwitch,
|
|
82
|
+
default16 as YkTabs,
|
|
83
|
+
default17 as YkTooltip
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["// Auto-inject Ant Design styles per project_specification_memory #6eafc28d\nimport 'antd/dist/reset.css';\n\n// Export all UI components\nexport { default as LabelSelect } from './ui/LabelSelect';\nexport { default as LogicOperator } from './ui/LogicOperator';\nexport { default as YkButton } from './ui/YkButton';\nexport { default as YkCard } from './ui/YkCard';\nexport { default as YkCheckbox } from './ui/YkCheckbox';\nexport { default as YkDescriptions } from './ui/YkDescriptions';\nexport { default as YkPagination } from './ui/YkPagination';\nexport { default as YkRadio } from './ui/YkRadio';\nexport { default as YkRadioBtnSpecial } from './ui/YkRadioBtnSpecial';\nexport { default as YkSegmented } from './ui/YkSegmented';\nexport { default as YkSelect } from './ui/YkSelect';\nexport { default as YkSpin } from './ui/YkSpin';\nexport { default as YkStatistic } from './ui/YkStatistic';\nexport { default as YkSwitch } from './ui/YkSwitch';\nexport { default as YkTabs } from './ui/YkTabs';\nexport { default as YkTooltip } from './ui/YkTooltip';\n\n// Export business components\nexport { default as DrawerPageInfo } from './business/DrawerPageInfo';\nexport { default as Editor } from './business/Editor';\nexport { default as Empty } from './business/Empty';\nexport { default as ModCommonFilter } from './business/ModCommonFilter';\nexport { default as YkPorjectSelect } from './business/YkPorjectSelect';\nexport { default as YkDateRangePicker } from './components/YkDateRangePicker';\nexport { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';\nexport { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';\n\n// Export creative components\nexport { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';\nexport { default as ButtonWithProgress } from './creative/ButtonWithProgress';\n\n// Export theme components\nexport { default as InputTheme } from './Themes/InputTheme';\nexport { default as TableTheme } from './Themes/TableTheme';\n\n// Export layout\nexport { default as FlexGrid } from './layout/FlexGrid';\nexport { default as YkContainer } from './layout/YkContainer';\nexport { default as YkDrawer } from './layout/YkDrawer';\n\n// Export common components\nexport { default as Clock } from './components/Clock';\nexport { default as DebounceInput } from './components/DebounceInput';\nexport { default as MultipleSelect } from './components/MultipleSelect';\nexport { default as NumericInput } from './components/NumericInput';\nexport { default as RefreshButton } from './components/RefreshButton';\nexport { default as SearchWithHistory } from './components/SearchWithHistory';\nexport { default as TextWithInput } from './components/TextWithInput';\nexport { default as TextWithToolTip } from './components/TextWithToolTip';\nexport { default as TreeTransfer } from './components/TreeTransfer';\n"],
|
|
5
|
+
"mappings": ";AACA,OAAO;AAGP,SAAoB,WAAXA,gBAA8B;AACvC,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,gBAA2B;AACpC,SAAoB,WAAXA,gBAAyB;AAClC,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAA+B;AACxC,SAAoB,WAAXA,gBAA0B;AACnC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAA4B;AAGrC,SAAoB,WAAXA,iBAAiC;AAC1C,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAAwB;AACjC,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAwC;AAGjD,SAAoB,WAAXA,iBAAsC;AAC/C,SAAoB,WAAXA,iBAAqC;AAG9C,SAAoB,WAAXA,iBAA6B;AACtC,SAAoB,WAAXA,iBAA6B;AAGtC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AAGpC,SAAoB,WAAXA,iBAAwB;AACjC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAAiC;AAC1C,SAAoB,WAAXA,iBAA+B;AACxC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAA+B;",
|
|
6
|
+
"names": ["default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RowProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/** Col 在各断点下的 span(24 栅格),与 [Ant Design Grid](https://ant-design.antgroup.com/components/grid-cn) 一致 */
|
|
4
|
+
export type FlexGridColSpan = {
|
|
5
|
+
xs?: number;
|
|
6
|
+
sm?: number;
|
|
7
|
+
md?: number;
|
|
8
|
+
lg?: number;
|
|
9
|
+
xl?: number;
|
|
10
|
+
xxl?: number;
|
|
11
|
+
};
|
|
12
|
+
export type FlexGridProps = {
|
|
13
|
+
/** 每一子节点占一格;多个并列子元素时请使用数组或 Fragment 包一层 */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/** 同 antd Row `gutter`,默认 `[16, 16]` */
|
|
16
|
+
gutter?: RowProps['gutter'];
|
|
17
|
+
/** 覆盖默认断点 span;例如 `{ lg: 12 }` 可改为大屏每行 2 列 */
|
|
18
|
+
colSpan?: FlexGridColSpan;
|
|
19
|
+
/** 透传到 antd `Row`(勿再传 `children`) */
|
|
20
|
+
rowProps?: Omit<RowProps, 'children'>;
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
};
|
|
24
|
+
declare const _default: React.NamedExoticComponent<FlexGridProps>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// src/layout/FlexGrid/index.tsx
|
|
19
|
+
import { Col, Flex, Row } from "antd";
|
|
20
|
+
import classNames from "classnames";
|
|
21
|
+
import React from "react";
|
|
22
|
+
var defaultColSpan = {
|
|
23
|
+
/** <576px:每行 1 个 */
|
|
24
|
+
xs: 24,
|
|
25
|
+
/** ≥576px:每行 2 个 */
|
|
26
|
+
sm: 12,
|
|
27
|
+
/** ≥768px:每行 3 个 */
|
|
28
|
+
md: 8,
|
|
29
|
+
/** ≥992px:每行 4 个 */
|
|
30
|
+
lg: 6,
|
|
31
|
+
xl: 6,
|
|
32
|
+
xxl: 6
|
|
33
|
+
};
|
|
34
|
+
var FlexGrid = ({
|
|
35
|
+
children = null,
|
|
36
|
+
gutter = [16, 16],
|
|
37
|
+
colSpan,
|
|
38
|
+
rowProps,
|
|
39
|
+
className,
|
|
40
|
+
style
|
|
41
|
+
}) => {
|
|
42
|
+
const span = __spreadValues(__spreadValues({}, defaultColSpan), colSpan);
|
|
43
|
+
const nodes = React.Children.toArray(children).filter((c) => c != null);
|
|
44
|
+
return /* @__PURE__ */ React.createElement(
|
|
45
|
+
Row,
|
|
46
|
+
__spreadValues({
|
|
47
|
+
gutter,
|
|
48
|
+
wrap: true,
|
|
49
|
+
align: "stretch",
|
|
50
|
+
className: classNames("yoka-flex-grid", className),
|
|
51
|
+
style
|
|
52
|
+
}, rowProps),
|
|
53
|
+
nodes.map((child, index) => {
|
|
54
|
+
const key = React.isValidElement(child) && child.key != null ? String(child.key) : `flex-grid-${index}`;
|
|
55
|
+
return /* @__PURE__ */ React.createElement(Col, { key, xs: span.xs, sm: span.sm, md: span.md, lg: span.lg, xl: span.xl, xxl: span.xxl }, /* @__PURE__ */ React.createElement(Flex, { vertical: true, style: { width: "100%", minHeight: "100%" }, className: "yoka-flex-grid-cell" }, child));
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
var FlexGrid_default = React.memo(FlexGrid);
|
|
60
|
+
export {
|
|
61
|
+
FlexGrid_default as default
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layout/FlexGrid/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import { Col, Flex, Row, RowProps } from 'antd';\nimport classNames from 'classnames';\nimport React from 'react';\n\n/** Col 在各断点下的 span(24 栅格),与 [Ant Design Grid](https://ant-design.antgroup.com/components/grid-cn) 一致 */\nexport type FlexGridColSpan = {\n xs?: number;\n sm?: number;\n md?: number;\n lg?: number;\n xl?: number;\n xxl?: number;\n};\n\nconst defaultColSpan: Required<FlexGridColSpan> = {\n /** <576px:每行 1 个 */\n xs: 24,\n /** ≥576px:每行 2 个 */\n sm: 12,\n /** ≥768px:每行 3 个 */\n md: 8,\n /** ≥992px:每行 4 个 */\n lg: 6,\n xl: 6,\n xxl: 6,\n};\n\nexport type FlexGridProps = {\n /** 每一子节点占一格;多个并列子元素时请使用数组或 Fragment 包一层 */\n children?: React.ReactNode;\n /** 同 antd Row `gutter`,默认 `[16, 16]` */\n gutter?: RowProps['gutter'];\n /** 覆盖默认断点 span;例如 `{ lg: 12 }` 可改为大屏每行 2 列 */\n colSpan?: FlexGridColSpan;\n /** 透传到 antd `Row`(勿再传 `children`) */\n rowProps?: Omit<RowProps, 'children'>;\n className?: string;\n style?: React.CSSProperties;\n};\n\n/**\n * 响应式弹性栅格:基于 antd `Row` / `Col`(24 栅格),大屏默认每行 4 格,随宽度递减为 3 / 2 / 1;\n * 格子内用 antd [Flex](https://ant-design.antgroup.com/components/flex-cn) 撑满宽度,便于卡片等同高布局。\n */\nconst FlexGrid: React.FC<FlexGridProps> = ({\n children = null,\n gutter = [16, 16],\n colSpan,\n rowProps,\n className,\n style,\n}) => {\n const span = { ...defaultColSpan, ...colSpan };\n const nodes = React.Children.toArray(children).filter((c) => c != null);\n\n return (\n <Row\n gutter={gutter}\n wrap\n align=\"stretch\"\n className={classNames('yoka-flex-grid', className)}\n style={style}\n {...rowProps}\n >\n {nodes.map((child, index) => {\n const key = React.isValidElement(child) && child.key != null ? String(child.key) : `flex-grid-${index}`;\n return (\n <Col key={key} xs={span.xs} sm={span.sm} md={span.md} lg={span.lg} xl={span.xl} xxl={span.xxl}>\n <Flex vertical style={{ width: '100%', minHeight: '100%' }} className=\"yoka-flex-grid-cell\">\n {child}\n </Flex>\n </Col>\n );\n })}\n </Row>\n );\n};\n\nexport default React.memo(FlexGrid);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA,SAAS,KAAK,MAAM,WAAqB;AACzC,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAYlB,IAAM,iBAA4C;AAAA;AAAA,EAEhD,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AACP;AAmBA,IAAM,WAAoC,CAAC;AAAA,EACzC,WAAW;AAAA,EACX,SAAS,CAAC,IAAI,EAAE;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,OAAO,kCAAK,iBAAmB;AACrC,QAAM,QAAQ,MAAM,SAAS,QAAQ,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;AAEtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAI;AAAA,MACJ,OAAM;AAAA,MACN,WAAW,WAAW,kBAAkB,SAAS;AAAA,MACjD;AAAA,OACI;AAAA,IAEH,MAAM,IAAI,CAAC,OAAO,UAAU;AAC3B,YAAM,MAAM,MAAM,eAAe,KAAK,KAAK,MAAM,OAAO,OAAO,OAAO,MAAM,GAAG,IAAI,aAAa;AAChG,aACE,oCAAC,OAAI,KAAU,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,KAAK,KAAK,OACxF,oCAAC,QAAK,UAAQ,MAAC,OAAO,EAAE,OAAO,QAAQ,WAAW,OAAO,GAAG,WAAU,yBACnE,KACH,CACF;AAAA,IAEJ,CAAC;AAAA,EACH;AAEJ;AAEA,IAAO,mBAAQ,MAAM,KAAK,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type YkContainerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
3
|
+
/** 页头左侧标题,字号 18px、颜色 #3b82fe;存在 `headerLeft` 时不展示 */
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
/** 自定义页头左侧,优先级高于 `title` */
|
|
6
|
+
headerLeft?: React.ReactNode;
|
|
7
|
+
/** 页头右侧插槽 */
|
|
8
|
+
headerRight?: React.ReactNode;
|
|
9
|
+
/** 是否展示页头,默认 true */
|
|
10
|
+
showHeader?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 页面内容区布局容器(语义上类似 Pro PageContainer 的内容包裹层):
|
|
14
|
+
* 顶部可选固定(sticky)页头,左右插槽;下方区域左右与底部留白 10px、顶部与页头间距 10px;
|
|
15
|
+
* 子元素纵向排列,间距 10px。
|
|
16
|
+
*/
|
|
17
|
+
declare const YkContainer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
18
|
+
/** 页头左侧标题,字号 18px、颜色 #3b82fe;存在 `headerLeft` 时不展示 */
|
|
19
|
+
title?: React.ReactNode;
|
|
20
|
+
/** 自定义页头左侧,优先级高于 `title` */
|
|
21
|
+
headerLeft?: React.ReactNode;
|
|
22
|
+
/** 页头右侧插槽 */
|
|
23
|
+
headerRight?: React.ReactNode;
|
|
24
|
+
/** 是否展示页头,默认 true */
|
|
25
|
+
showHeader?: boolean;
|
|
26
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export default YkContainer;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/layout/YkContainer/index.tsx
|
|
31
|
+
import classNames from "classnames";
|
|
32
|
+
import React from "react";
|
|
33
|
+
var headerBarStyle = {
|
|
34
|
+
position: "sticky",
|
|
35
|
+
top: 0,
|
|
36
|
+
zIndex: 10,
|
|
37
|
+
display: "flex",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
justifyContent: "space-between",
|
|
40
|
+
gap: 12,
|
|
41
|
+
minHeight: 60,
|
|
42
|
+
padding: "10px 20px",
|
|
43
|
+
boxSizing: "border-box",
|
|
44
|
+
background: "#fff"
|
|
45
|
+
};
|
|
46
|
+
var titleStyle = {
|
|
47
|
+
margin: 0,
|
|
48
|
+
fontSize: 18,
|
|
49
|
+
fontWeight: 600,
|
|
50
|
+
lineHeight: "24px",
|
|
51
|
+
color: "#3b82fe"
|
|
52
|
+
};
|
|
53
|
+
var YkContainer = React.forwardRef(
|
|
54
|
+
(_a, ref) => {
|
|
55
|
+
var _b = _a, { className, style, children, title, headerLeft, headerRight, showHeader = true } = _b, rest = __objRest(_b, ["className", "style", "children", "title", "headerLeft", "headerRight", "showHeader"]);
|
|
56
|
+
return /* @__PURE__ */ React.createElement(
|
|
57
|
+
"div",
|
|
58
|
+
__spreadValues({
|
|
59
|
+
ref,
|
|
60
|
+
className: classNames("yoka-container", className),
|
|
61
|
+
style: __spreadValues({
|
|
62
|
+
display: "flex",
|
|
63
|
+
flexDirection: "column",
|
|
64
|
+
gap: 10,
|
|
65
|
+
padding: "0 10px 10px",
|
|
66
|
+
boxSizing: "border-box"
|
|
67
|
+
}, style)
|
|
68
|
+
}, rest),
|
|
69
|
+
showHeader ? /* @__PURE__ */ React.createElement("header", { style: headerBarStyle, className: "yoka-yk-container-header" }, /* @__PURE__ */ React.createElement("div", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center" } }, headerLeft !== void 0 && headerLeft !== null ? headerLeft : title != null && title !== "" ? /* @__PURE__ */ React.createElement("div", { style: titleStyle }, title) : null), headerRight ? /* @__PURE__ */ React.createElement("div", { style: { flexShrink: 0, display: "flex", alignItems: "center" } }, headerRight) : null) : null,
|
|
70
|
+
children
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
YkContainer.displayName = "YkContainer";
|
|
75
|
+
var YkContainer_default = YkContainer;
|
|
76
|
+
export {
|
|
77
|
+
YkContainer_default as default
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/layout/YkContainer/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import classNames from 'classnames';\nimport React from 'react';\n\nexport type YkContainerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {\n /** 页头左侧标题,字号 18px、颜色 #3b82fe;存在 `headerLeft` 时不展示 */\n title?: React.ReactNode;\n /** 自定义页头左侧,优先级高于 `title` */\n headerLeft?: React.ReactNode;\n /** 页头右侧插槽 */\n headerRight?: React.ReactNode;\n /** 是否展示页头,默认 true */\n showHeader?: boolean;\n};\n\nconst headerBarStyle: React.CSSProperties = {\n position: 'sticky',\n top: 0,\n zIndex: 10,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n minHeight: 60,\n padding: '10px 20px',\n boxSizing: 'border-box',\n background: '#fff',\n};\n\nconst titleStyle: React.CSSProperties = {\n margin: 0,\n fontSize: 18,\n fontWeight: 600,\n lineHeight: '24px',\n color: '#3b82fe',\n};\n\n/**\n * 页面内容区布局容器(语义上类似 Pro PageContainer 的内容包裹层):\n * 顶部可选固定(sticky)页头,左右插槽;下方区域左右与底部留白 10px、顶部与页头间距 10px;\n * 子元素纵向排列,间距 10px。\n */\nconst YkContainer = React.forwardRef<HTMLDivElement, YkContainerProps>(\n ({ className, style, children, title, headerLeft, headerRight, showHeader = true, ...rest }, ref) => (\n <div\n ref={ref}\n className={classNames('yoka-container', className)}\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 10,\n padding: '0 10px 10px',\n boxSizing: 'border-box',\n ...style,\n }}\n {...rest}\n >\n {showHeader ? (\n <header style={headerBarStyle} className=\"yoka-yk-container-header\">\n <div style={{ flex: 1, minWidth: 0, display: 'flex', alignItems: 'center' }}>\n {headerLeft !== undefined && headerLeft !== null ? (\n headerLeft\n ) : title != null && title !== '' ? (\n <div style={titleStyle}>{title}</div>\n ) : null}\n </div>\n {headerRight ? (\n <div style={{ flexShrink: 0, display: 'flex', alignItems: 'center' }}>{headerRight}</div>\n ) : null}\n </header>\n ) : null}\n {children}\n </div>\n ),\n);\n\nYkContainer.displayName = 'YkContainer';\n\nexport default YkContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAalB,IAAM,iBAAsC;AAAA,EAC1C,UAAU;AAAA,EACV,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd;AAEA,IAAM,aAAkC;AAAA,EACtC,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AACT;AAOA,IAAM,cAAc,MAAM;AAAA,EACxB,CAAC,IAA4F,QAAK;AAAjG,iBAAE,aAAW,OAAO,UAAU,OAAO,YAAY,aAAa,aAAa,KA1C9E,IA0CG,IAAoF,iBAApF,IAAoF,CAAlF,aAAW,SAAO,YAAU,SAAO,cAAY,eAAa;AAC7D;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,WAAW,kBAAkB,SAAS;AAAA,QACjD,OAAO;AAAA,UACL,SAAS;AAAA,UACT,eAAe;AAAA,UACf,KAAK;AAAA,UACL,SAAS;AAAA,UACT,WAAW;AAAA,WACR;AAAA,SAED;AAAA,MAEH,aACC,oCAAC,YAAO,OAAO,gBAAgB,WAAU,8BACvC,oCAAC,SAAI,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,QAAQ,YAAY,SAAS,KACvE,eAAe,UAAa,eAAe,OAC1C,aACE,SAAS,QAAQ,UAAU,KAC7B,oCAAC,SAAI,OAAO,cAAa,KAAM,IAC7B,IACN,GACC,cACC,oCAAC,SAAI,OAAO,EAAE,YAAY,GAAG,SAAS,QAAQ,YAAY,SAAS,KAAI,WAAY,IACjF,IACN,IACE;AAAA,MACH;AAAA,IACH;AAAA;AAEJ;AAEA,YAAY,cAAc;AAE1B,IAAO,sBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DrawerProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/** 预设尺寸(px):左右抽屉为 `width`,上下抽屉为 `height` */
|
|
4
|
+
export declare const YK_DRAWER_SIZE_PX: {
|
|
5
|
+
readonly small: 378;
|
|
6
|
+
readonly medium: 550;
|
|
7
|
+
readonly large: 736;
|
|
8
|
+
readonly xlarge: 1000;
|
|
9
|
+
};
|
|
10
|
+
export type YkDrawerSize = keyof typeof YK_DRAWER_SIZE_PX;
|
|
11
|
+
export type YkDrawerMaskEffect = 'blur' | 'dimmed' | 'none';
|
|
12
|
+
export type YkDrawerPlacement = NonNullable<DrawerProps['placement']>;
|
|
13
|
+
export type YkDrawerProps = Omit<DrawerProps, 'size'> & {
|
|
14
|
+
/** 预设宽高;不配 `width`/`height` 时按 `placement` 自动套用 */
|
|
15
|
+
drawerSize?: YkDrawerSize;
|
|
16
|
+
/** 遮罩:`blur` 毛玻璃+浅遮罩,`dimmed` 默认变暗,`none` 透明(仍拦截点击背后) */
|
|
17
|
+
maskEffect?: YkDrawerMaskEffect;
|
|
18
|
+
/** 是否展示外侧关闭标签(参考 DrawerPageInfo),默认 true;仅 **left/right** 生效,top/bottom 不展示外侧钮、使用 antd 默认关闭;为 true 且为左右抽屉时关闭内置标题栏关闭钮 */
|
|
19
|
+
showOuterClose?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.NamedExoticComponent<YkDrawerProps>;
|
|
22
|
+
export default _default;
|