@yoka-ui/ui 1.0.1
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 +93 -0
- package/@Docs-yoka/llms.txt +23 -0
- package/README.md +113 -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 +733 -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 +16 -0
- package/dist/es/business/AiChat/sse.js +171 -0
- package/dist/es/business/AiChat/sse.js.map +7 -0
- package/dist/es/business/AiChat/type.d.ts +156 -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 +268 -0
- package/dist/es/business/AiChat/useAiChat.js.map +7 -0
- package/dist/es/business/AiChat/useTaskWorkflow.d.ts +25 -0
- package/dist/es/business/AiChat/useTaskWorkflow.js +196 -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/YkDateRangePicker.mdx +180 -0
- package/dist/es/components/YkDateRangePicker/index.d.ts +61 -0
- package/dist/es/components/YkDateRangePicker/index.js +317 -0
- package/dist/es/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/es/components/YkDateRangePicker/index.module.less +304 -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 +576 -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 +566 -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 +43 -0
- package/dist/es/index.js +87 -0
- package/dist/es/index.js.map +7 -0
- package/dist/es/index.less +35 -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 +723 -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 +16 -0
- package/dist/lib/business/AiChat/sse.js +171 -0
- package/dist/lib/business/AiChat/sse.js.map +7 -0
- package/dist/lib/business/AiChat/type.d.ts +156 -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 +252 -0
- package/dist/lib/business/AiChat/useAiChat.js.map +7 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +25 -0
- package/dist/lib/business/AiChat/useTaskWorkflow.js +182 -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/YkDateRangePicker.mdx +180 -0
- package/dist/lib/components/YkDateRangePicker/index.d.ts +61 -0
- package/dist/lib/components/YkDateRangePicker/index.js +338 -0
- package/dist/lib/components/YkDateRangePicker/index.js.map +7 -0
- package/dist/lib/components/YkDateRangePicker/index.module.less +304 -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 +587 -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 +566 -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 +43 -0
- package/dist/lib/index.js +161 -0
- package/dist/lib/index.js.map +7 -0
- package/dist/lib/index.less +35 -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 +148 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/creative/ButtonWithProgress/index.tsx
|
|
30
|
+
var ButtonWithProgress_exports = {};
|
|
31
|
+
__export(ButtonWithProgress_exports, {
|
|
32
|
+
default: () => ButtonWithProgress_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ButtonWithProgress_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var ButtonWithProgress = ({
|
|
40
|
+
children,
|
|
41
|
+
progress = 0,
|
|
42
|
+
progressColor = "#000000",
|
|
43
|
+
progressing = false,
|
|
44
|
+
subtitle = "",
|
|
45
|
+
disabled,
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}) => {
|
|
49
|
+
const buttonProps = (0, import_react.useMemo)(() => {
|
|
50
|
+
return {
|
|
51
|
+
...props,
|
|
52
|
+
disabled: disabled || progressing,
|
|
53
|
+
className: (0, import_classnames.default)("button-with-progress", className)
|
|
54
|
+
};
|
|
55
|
+
}, [props, disabled, progressing, className]);
|
|
56
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { ...buttonProps }, /* @__PURE__ */ import_react.default.createElement("div", { className: "button-content" }, children && /* @__PURE__ */ import_react.default.createElement("div", { className: "button-main-text" }, children), subtitle && /* @__PURE__ */ import_react.default.createElement("div", { className: "button-subtitle" }, subtitle)), progress && progressing ? /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: (0, import_classnames.default)("progress-bar", {
|
|
60
|
+
animate: progressing && !disabled
|
|
61
|
+
}),
|
|
62
|
+
style: {
|
|
63
|
+
backgroundColor: progressColor,
|
|
64
|
+
animationDuration: `${progress / 1e3}s`
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
) : null);
|
|
68
|
+
};
|
|
69
|
+
var ButtonWithProgress_default = ButtonWithProgress;
|
|
70
|
+
//# 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;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAoC;AACpC,wBAAuB;AACvB,mBAA+B;AAC/B,mBAAO;AASP,IAAM,qBAAwD,CAAC;AAAA,EAC7D;AAAA,EACA,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,kBAAc,sBAAQ,MAAM;AAChC,WAAO;AAAA,MACL,GAAG;AAAA,MACH,UAAU,YAAY;AAAA,MACtB,eAAW,kBAAAA,SAAW,wBAAwB,SAAS;AAAA,IACzD;AAAA,EACF,GAAG,CAAC,OAAO,UAAU,aAAa,SAAS,CAAC;AAE5C,SACE,6BAAAC,QAAA,cAAC,sBAAQ,GAAG,eACV,6BAAAA,QAAA,cAAC,SAAI,WAAU,oBACZ,YAAY,6BAAAA,QAAA,cAAC,SAAI,WAAU,sBAAoB,QAAS,GACxD,YAAY,6BAAAA,QAAA,cAAC,SAAI,WAAU,qBAAmB,QAAS,CAC1D,GACC,YAAY,cACX,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,kBAAAD,SAAW,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": ["classNames", "React"]
|
|
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,43 @@
|
|
|
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 type { DateRangeValue, YkDateRangePickerProps, YkDateRangePickerRef } from './components/YkDateRangePicker';
|
|
25
|
+
export { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';
|
|
26
|
+
export { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';
|
|
27
|
+
export { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';
|
|
28
|
+
export { default as ButtonWithProgress } from './creative/ButtonWithProgress';
|
|
29
|
+
export { default as InputTheme } from './Themes/InputTheme';
|
|
30
|
+
export { default as TableTheme } from './Themes/TableTheme';
|
|
31
|
+
export { default as FlexGrid } from './layout/FlexGrid';
|
|
32
|
+
export { default as YkContainer } from './layout/YkContainer';
|
|
33
|
+
export { default as YkDrawer } from './layout/YkDrawer';
|
|
34
|
+
export { default as Clock } from './components/Clock';
|
|
35
|
+
export { default as DebounceInput } from './components/DebounceInput';
|
|
36
|
+
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
37
|
+
export { default as NumericInput } from './components/NumericInput';
|
|
38
|
+
export { default as RefreshButton } from './components/RefreshButton';
|
|
39
|
+
export { default as SearchWithHistory } from './components/SearchWithHistory';
|
|
40
|
+
export { default as TextWithInput } from './components/TextWithInput';
|
|
41
|
+
export { default as TextWithToolTip } from './components/TextWithToolTip';
|
|
42
|
+
export { default as TreeTransfer } from './components/TreeTransfer';
|
|
43
|
+
export { default as AiChat } from './business/AiChat';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/index.tsx
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
AiChat: () => import_AiChat.default,
|
|
33
|
+
ButtonRadioWithInfo: () => import_ButtonRadioWithInfo.default,
|
|
34
|
+
ButtonWithProgress: () => import_ButtonWithProgress.default,
|
|
35
|
+
Clock: () => import_Clock.default,
|
|
36
|
+
DebounceInput: () => import_DebounceInput.default,
|
|
37
|
+
DrawerPageInfo: () => import_DrawerPageInfo.default,
|
|
38
|
+
Editor: () => import_Editor.default,
|
|
39
|
+
Empty: () => import_Empty.default,
|
|
40
|
+
FlexGrid: () => import_FlexGrid.default,
|
|
41
|
+
InputTheme: () => import_InputTheme.default,
|
|
42
|
+
LabelSelect: () => import_LabelSelect.default,
|
|
43
|
+
LogicOperator: () => import_LogicOperator.default,
|
|
44
|
+
ModCommonFilter: () => import_ModCommonFilter.default,
|
|
45
|
+
MultipleSelect: () => import_MultipleSelect.default,
|
|
46
|
+
NumericInput: () => import_NumericInput.default,
|
|
47
|
+
RefreshButton: () => import_RefreshButton.default,
|
|
48
|
+
SearchWithHistory: () => import_SearchWithHistory.default,
|
|
49
|
+
TableTheme: () => import_TableTheme.default,
|
|
50
|
+
TextWithInput: () => import_TextWithInput.default,
|
|
51
|
+
TextWithToolTip: () => import_TextWithToolTip.default,
|
|
52
|
+
TreeTransfer: () => import_TreeTransfer.default,
|
|
53
|
+
YkButton: () => import_YkButton.default,
|
|
54
|
+
YkCard: () => import_YkCard.default,
|
|
55
|
+
YkCheckbox: () => import_YkCheckbox.default,
|
|
56
|
+
YkContainer: () => import_YkContainer.default,
|
|
57
|
+
YkDateRangePicker: () => import_YkDateRangePicker.default,
|
|
58
|
+
YkDescriptions: () => import_YkDescriptions.default,
|
|
59
|
+
YkDrawer: () => import_YkDrawer.default,
|
|
60
|
+
YkPagination: () => import_YkPagination.default,
|
|
61
|
+
YkPorjectSelect: () => import_YkPorjectSelect.default,
|
|
62
|
+
YkRadio: () => import_YkRadio.default,
|
|
63
|
+
YkRadioBtnSpecial: () => import_YkRadioBtnSpecial.default,
|
|
64
|
+
YkRangeDateWithVS: () => import_YkRangeDateWithVS.default,
|
|
65
|
+
YkRangeTimeWithRecent: () => import_YkRangeTimeWithRecent.default,
|
|
66
|
+
YkSegmented: () => import_YkSegmented.default,
|
|
67
|
+
YkSelect: () => import_YkSelect.default,
|
|
68
|
+
YkSpin: () => import_YkSpin.default,
|
|
69
|
+
YkStatistic: () => import_YkStatistic.default,
|
|
70
|
+
YkSwitch: () => import_YkSwitch.default,
|
|
71
|
+
YkTabs: () => import_YkTabs.default,
|
|
72
|
+
YkTooltip: () => import_YkTooltip.default
|
|
73
|
+
});
|
|
74
|
+
module.exports = __toCommonJS(src_exports);
|
|
75
|
+
var import_reset = require("antd/dist/reset.css");
|
|
76
|
+
var import_LabelSelect = __toESM(require("./ui/LabelSelect"));
|
|
77
|
+
var import_LogicOperator = __toESM(require("./ui/LogicOperator"));
|
|
78
|
+
var import_YkButton = __toESM(require("./ui/YkButton"));
|
|
79
|
+
var import_YkCard = __toESM(require("./ui/YkCard"));
|
|
80
|
+
var import_YkCheckbox = __toESM(require("./ui/YkCheckbox"));
|
|
81
|
+
var import_YkDescriptions = __toESM(require("./ui/YkDescriptions"));
|
|
82
|
+
var import_YkPagination = __toESM(require("./ui/YkPagination"));
|
|
83
|
+
var import_YkRadio = __toESM(require("./ui/YkRadio"));
|
|
84
|
+
var import_YkRadioBtnSpecial = __toESM(require("./ui/YkRadioBtnSpecial"));
|
|
85
|
+
var import_YkSegmented = __toESM(require("./ui/YkSegmented"));
|
|
86
|
+
var import_YkSelect = __toESM(require("./ui/YkSelect"));
|
|
87
|
+
var import_YkSpin = __toESM(require("./ui/YkSpin"));
|
|
88
|
+
var import_YkStatistic = __toESM(require("./ui/YkStatistic"));
|
|
89
|
+
var import_YkSwitch = __toESM(require("./ui/YkSwitch"));
|
|
90
|
+
var import_YkTabs = __toESM(require("./ui/YkTabs"));
|
|
91
|
+
var import_YkTooltip = __toESM(require("./ui/YkTooltip"));
|
|
92
|
+
var import_DrawerPageInfo = __toESM(require("./business/DrawerPageInfo"));
|
|
93
|
+
var import_Editor = __toESM(require("./business/Editor"));
|
|
94
|
+
var import_Empty = __toESM(require("./business/Empty"));
|
|
95
|
+
var import_ModCommonFilter = __toESM(require("./business/ModCommonFilter"));
|
|
96
|
+
var import_YkPorjectSelect = __toESM(require("./business/YkPorjectSelect"));
|
|
97
|
+
var import_YkDateRangePicker = __toESM(require("./components/YkDateRangePicker"));
|
|
98
|
+
var import_YkRangeDateWithVS = __toESM(require("./components/YkRangeDateWithVS"));
|
|
99
|
+
var import_YkRangeTimeWithRecent = __toESM(require("./components/YkRangeTimeWithRecent"));
|
|
100
|
+
var import_ButtonRadioWithInfo = __toESM(require("./creative/ButtonRadioWithInfo"));
|
|
101
|
+
var import_ButtonWithProgress = __toESM(require("./creative/ButtonWithProgress"));
|
|
102
|
+
var import_InputTheme = __toESM(require("./Themes/InputTheme"));
|
|
103
|
+
var import_TableTheme = __toESM(require("./Themes/TableTheme"));
|
|
104
|
+
var import_FlexGrid = __toESM(require("./layout/FlexGrid"));
|
|
105
|
+
var import_YkContainer = __toESM(require("./layout/YkContainer"));
|
|
106
|
+
var import_YkDrawer = __toESM(require("./layout/YkDrawer"));
|
|
107
|
+
var import_Clock = __toESM(require("./components/Clock"));
|
|
108
|
+
var import_DebounceInput = __toESM(require("./components/DebounceInput"));
|
|
109
|
+
var import_MultipleSelect = __toESM(require("./components/MultipleSelect"));
|
|
110
|
+
var import_NumericInput = __toESM(require("./components/NumericInput"));
|
|
111
|
+
var import_RefreshButton = __toESM(require("./components/RefreshButton"));
|
|
112
|
+
var import_SearchWithHistory = __toESM(require("./components/SearchWithHistory"));
|
|
113
|
+
var import_TextWithInput = __toESM(require("./components/TextWithInput"));
|
|
114
|
+
var import_TextWithToolTip = __toESM(require("./components/TextWithToolTip"));
|
|
115
|
+
var import_TreeTransfer = __toESM(require("./components/TreeTransfer"));
|
|
116
|
+
var import_AiChat = __toESM(require("./business/AiChat"));
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
AiChat,
|
|
120
|
+
ButtonRadioWithInfo,
|
|
121
|
+
ButtonWithProgress,
|
|
122
|
+
Clock,
|
|
123
|
+
DebounceInput,
|
|
124
|
+
DrawerPageInfo,
|
|
125
|
+
Editor,
|
|
126
|
+
Empty,
|
|
127
|
+
FlexGrid,
|
|
128
|
+
InputTheme,
|
|
129
|
+
LabelSelect,
|
|
130
|
+
LogicOperator,
|
|
131
|
+
ModCommonFilter,
|
|
132
|
+
MultipleSelect,
|
|
133
|
+
NumericInput,
|
|
134
|
+
RefreshButton,
|
|
135
|
+
SearchWithHistory,
|
|
136
|
+
TableTheme,
|
|
137
|
+
TextWithInput,
|
|
138
|
+
TextWithToolTip,
|
|
139
|
+
TreeTransfer,
|
|
140
|
+
YkButton,
|
|
141
|
+
YkCard,
|
|
142
|
+
YkCheckbox,
|
|
143
|
+
YkContainer,
|
|
144
|
+
YkDateRangePicker,
|
|
145
|
+
YkDescriptions,
|
|
146
|
+
YkDrawer,
|
|
147
|
+
YkPagination,
|
|
148
|
+
YkPorjectSelect,
|
|
149
|
+
YkRadio,
|
|
150
|
+
YkRadioBtnSpecial,
|
|
151
|
+
YkRangeDateWithVS,
|
|
152
|
+
YkRangeTimeWithRecent,
|
|
153
|
+
YkSegmented,
|
|
154
|
+
YkSelect,
|
|
155
|
+
YkSpin,
|
|
156
|
+
YkStatistic,
|
|
157
|
+
YkSwitch,
|
|
158
|
+
YkTabs,
|
|
159
|
+
YkTooltip
|
|
160
|
+
});
|
|
161
|
+
//# 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 type { DateRangeValue, YkDateRangePickerProps, YkDateRangePickerRef } 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\nexport { default as AiChat } from './business/AiChat';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAO;AAGP,yBAAuC;AACvC,2BAAyC;AACzC,sBAAoC;AACpC,oBAAkC;AAClC,wBAAsC;AACtC,4BAA0C;AAC1C,0BAAwC;AACxC,qBAAmC;AACnC,+BAA6C;AAC7C,yBAAuC;AACvC,sBAAoC;AACpC,oBAAkC;AAClC,yBAAuC;AACvC,sBAAoC;AACpC,oBAAkC;AAClC,uBAAqC;AAGrC,4BAA0C;AAC1C,oBAAkC;AAClC,mBAAiC;AACjC,6BAA2C;AAC3C,6BAA2C;AAC3C,+BAA6C;AAE7C,+BAA6C;AAC7C,mCAAiD;AAGjD,iCAA+C;AAC/C,gCAA8C;AAG9C,wBAAsC;AACtC,wBAAsC;AAGtC,sBAAoC;AACpC,yBAAuC;AACvC,sBAAoC;AAGpC,mBAAiC;AACjC,2BAAyC;AACzC,4BAA0C;AAC1C,0BAAwC;AACxC,2BAAyC;AACzC,+BAA6C;AAC7C,2BAAyC;AACzC,6BAA2C;AAC3C,0BAAwC;AAExC,oBAAkC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Yoka UI 聚合样式入口
|
|
3
|
+
* 由 scripts/generate-index-less.cjs 自动生成
|
|
4
|
+
* 包含所有组件的 .less 样式文件
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// 自动聚合的样式文件
|
|
8
|
+
@import "../../src/Themes/TableTheme/index.less";
|
|
9
|
+
@import "../../src/assets/less/ant-reset.less";
|
|
10
|
+
@import "../../src/assets/less/index.less";
|
|
11
|
+
@import "../../src/assets/less/variables.less";
|
|
12
|
+
@import "../../src/business/DrawerPageInfo/index.module.less";
|
|
13
|
+
@import "../../src/business/Editor/index.less";
|
|
14
|
+
@import "../../src/business/ModCommonFilter/components/FilterButton/index.module.less";
|
|
15
|
+
@import "../../src/business/ModCommonFilter/components/PopoverContent/index.module.less";
|
|
16
|
+
@import "../../src/business/ModCommonFilter/index.module.less";
|
|
17
|
+
@import "../../src/business/YkPorjectSelect/index.module.less";
|
|
18
|
+
@import "../../src/components/DebounceInput/index.module.less";
|
|
19
|
+
@import "../../src/components/MultipleSelect/index.module.less";
|
|
20
|
+
@import "../../src/components/SearchWithHistory/index.module.less";
|
|
21
|
+
@import "../../src/components/TreeTransfer/components/TreeTransferPanel/index.less";
|
|
22
|
+
@import "../../src/components/TreeTransfer/index.less";
|
|
23
|
+
@import "../../src/components/YkDateRangePicker/index.module.less";
|
|
24
|
+
@import "../../src/components/YkRangeDateWithVS/index.module.less";
|
|
25
|
+
@import "../../src/components/YkRangeTimeWithRecent/index.module.less";
|
|
26
|
+
@import "../../src/creative/ButtonRadioWithInfo/index.less";
|
|
27
|
+
@import "../../src/creative/ButtonWithProgress/index.less";
|
|
28
|
+
@import "../../src/layout/YkDrawer/index.module.less";
|
|
29
|
+
@import "../../src/ui/LogicOperator/index.module.less";
|
|
30
|
+
@import "../../src/ui/YkCard/index.module.less";
|
|
31
|
+
@import "../../src/ui/YkCheckbox/index.module.less";
|
|
32
|
+
@import "../../src/ui/YkPagination/index.module.less";
|
|
33
|
+
@import "../../src/ui/YkRadio/index.module.less";
|
|
34
|
+
@import "../../src/ui/YkRadioBtnSpecial/index.module.less";
|
|
35
|
+
@import "../../src/ui/YkTabs/index.module.less";
|
|
@@ -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,77 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/layout/FlexGrid/index.tsx
|
|
30
|
+
var FlexGrid_exports = {};
|
|
31
|
+
__export(FlexGrid_exports, {
|
|
32
|
+
default: () => FlexGrid_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(FlexGrid_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var defaultColSpan = {
|
|
39
|
+
/** <576px:每行 1 个 */
|
|
40
|
+
xs: 24,
|
|
41
|
+
/** ≥576px:每行 2 个 */
|
|
42
|
+
sm: 12,
|
|
43
|
+
/** ≥768px:每行 3 个 */
|
|
44
|
+
md: 8,
|
|
45
|
+
/** ≥992px:每行 4 个 */
|
|
46
|
+
lg: 6,
|
|
47
|
+
xl: 6,
|
|
48
|
+
xxl: 6
|
|
49
|
+
};
|
|
50
|
+
var FlexGrid = ({
|
|
51
|
+
children = null,
|
|
52
|
+
gutter = [16, 16],
|
|
53
|
+
colSpan,
|
|
54
|
+
rowProps,
|
|
55
|
+
className,
|
|
56
|
+
style
|
|
57
|
+
}) => {
|
|
58
|
+
const span = { ...defaultColSpan, ...colSpan };
|
|
59
|
+
const nodes = import_react.default.Children.toArray(children).filter((c) => c != null);
|
|
60
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
61
|
+
import_antd.Row,
|
|
62
|
+
{
|
|
63
|
+
gutter,
|
|
64
|
+
wrap: true,
|
|
65
|
+
align: "stretch",
|
|
66
|
+
className: (0, import_classnames.default)("yoka-flex-grid", className),
|
|
67
|
+
style,
|
|
68
|
+
...rowProps
|
|
69
|
+
},
|
|
70
|
+
nodes.map((child, index) => {
|
|
71
|
+
const key = import_react.default.isValidElement(child) && child.key != null ? String(child.key) : `flex-grid-${index}`;
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { key, xs: span.xs, sm: span.sm, md: span.md, lg: span.lg, xl: span.xl, xxl: span.xxl }, /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { vertical: true, style: { width: "100%", minHeight: "100%" }, className: "yoka-flex-grid-cell" }, child));
|
|
73
|
+
})
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
var FlexGrid_default = import_react.default.memo(FlexGrid);
|
|
77
|
+
//# 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;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyC;AACzC,wBAAuB;AACvB,mBAAkB;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,EAAE,GAAG,gBAAgB,GAAG,QAAQ;AAC7C,QAAM,QAAQ,aAAAA,QAAM,SAAS,QAAQ,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;AAEtE,SACE,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAI;AAAA,MACJ,OAAM;AAAA,MACN,eAAW,kBAAAC,SAAW,kBAAkB,SAAS;AAAA,MACjD;AAAA,MACC,GAAG;AAAA;AAAA,IAEH,MAAM,IAAI,CAAC,OAAO,UAAU;AAC3B,YAAM,MAAM,aAAAD,QAAM,eAAe,KAAK,KAAK,MAAM,OAAO,OAAO,OAAO,MAAM,GAAG,IAAI,aAAa;AAChG,aACE,6BAAAA,QAAA,cAAC,mBAAI,KAAU,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,KAAK,KAAK,OACxF,6BAAAA,QAAA,cAAC,oBAAK,UAAQ,MAAC,OAAO,EAAE,OAAO,QAAQ,WAAW,OAAO,GAAG,WAAU,yBACnE,KACH,CACF;AAAA,IAEJ,CAAC;AAAA,EACH;AAEJ;AAEA,IAAO,mBAAQ,aAAAA,QAAM,KAAK,QAAQ;",
|
|
6
|
+
"names": ["React", "classNames"]
|
|
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 __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/layout/YkContainer/index.tsx
|
|
30
|
+
var YkContainer_exports = {};
|
|
31
|
+
__export(YkContainer_exports, {
|
|
32
|
+
default: () => YkContainer_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(YkContainer_exports);
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var headerBarStyle = {
|
|
38
|
+
position: "sticky",
|
|
39
|
+
top: 0,
|
|
40
|
+
zIndex: 10,
|
|
41
|
+
display: "flex",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
justifyContent: "space-between",
|
|
44
|
+
gap: 12,
|
|
45
|
+
minHeight: 60,
|
|
46
|
+
padding: "10px 20px",
|
|
47
|
+
boxSizing: "border-box",
|
|
48
|
+
background: "#fff"
|
|
49
|
+
};
|
|
50
|
+
var titleStyle = {
|
|
51
|
+
margin: 0,
|
|
52
|
+
fontSize: 18,
|
|
53
|
+
fontWeight: 600,
|
|
54
|
+
lineHeight: "24px",
|
|
55
|
+
color: "#3b82fe"
|
|
56
|
+
};
|
|
57
|
+
var YkContainer = import_react.default.forwardRef(
|
|
58
|
+
({ className, style, children, title, headerLeft, headerRight, showHeader = true, ...rest }, ref) => /* @__PURE__ */ import_react.default.createElement(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
className: (0, import_classnames.default)("yoka-container", className),
|
|
63
|
+
style: {
|
|
64
|
+
display: "flex",
|
|
65
|
+
flexDirection: "column",
|
|
66
|
+
gap: 10,
|
|
67
|
+
padding: "0 10px 10px",
|
|
68
|
+
boxSizing: "border-box",
|
|
69
|
+
...style
|
|
70
|
+
},
|
|
71
|
+
...rest
|
|
72
|
+
},
|
|
73
|
+
showHeader ? /* @__PURE__ */ import_react.default.createElement("header", { style: headerBarStyle, className: "yoka-yk-container-header" }, /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center" } }, headerLeft !== void 0 && headerLeft !== null ? headerLeft : title != null && title !== "" ? /* @__PURE__ */ import_react.default.createElement("div", { style: titleStyle }, title) : null), headerRight ? /* @__PURE__ */ import_react.default.createElement("div", { style: { flexShrink: 0, display: "flex", alignItems: "center" } }, headerRight) : null) : null,
|
|
74
|
+
children
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
YkContainer.displayName = "YkContainer";
|
|
78
|
+
var YkContainer_default = YkContainer;
|
|
79
|
+
//# sourceMappingURL=index.js.map
|