@yoka-ui/ui 1.0.10-test → 1.1.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 +68 -62
- package/LICENSE +21 -0
- package/README.md +40 -189
- package/dist/es/assets/image/skills.zip +0 -0
- package/dist/es/business/AiChat/aichat-logo.svg +1 -0
- package/dist/es/business/AiChat/index.d.ts +3 -3
- package/dist/es/business/AiChat/index.js +322 -137
- package/dist/es/business/AiChat/index.js.map +3 -3
- package/dist/es/business/AiChat/index.module.less +24 -0
- package/dist/es/business/AiChat/intentRecognizer.js.map +1 -1
- package/dist/es/business/AiChat/navigationManager.js +6 -6
- package/dist/es/business/AiChat/navigationManager.js.map +2 -2
- package/dist/es/business/AiChat/sse.d.ts +15 -0
- package/dist/es/business/AiChat/sse.js +118 -7
- package/dist/es/business/AiChat/sse.js.map +2 -2
- package/dist/es/business/AiChat/type.d.ts +22 -23
- package/dist/es/business/AiChat/useAiChat.js +105 -75
- package/dist/es/business/AiChat/useAiChat.js.map +3 -3
- package/dist/es/business/AiChat/useTaskWorkflow.d.ts +1 -2
- package/dist/es/business/AiChat/useTaskWorkflow.js +2 -36
- package/dist/es/business/AiChat/useTaskWorkflow.js.map +2 -2
- package/dist/es/business/DrawerPageInfo/index.js.map +1 -1
- package/dist/es/business/Editor/index.d.ts +1 -1
- package/dist/es/business/Editor/index.js.map +2 -2
- package/dist/es/business/Empty/index.js +1 -1
- package/dist/es/business/Empty/index.js.map +1 -1
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +3 -3
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
- package/dist/es/business/ModCommonFilter/index.d.ts +1 -1
- package/dist/es/business/ModCommonFilter/index.js.map +2 -2
- package/dist/es/business/YkCharts/Area.d.ts +18 -0
- package/dist/es/business/YkCharts/Area.js +336 -0
- package/dist/es/business/YkCharts/Area.js.map +7 -0
- package/dist/es/business/YkCharts/Bar.d.ts +21 -0
- package/dist/es/business/YkCharts/Bar.js +316 -0
- package/dist/es/business/YkCharts/Bar.js.map +7 -0
- package/dist/es/business/YkCharts/BarProperty.d.ts +21 -0
- package/dist/es/business/YkCharts/BarProperty.js +357 -0
- package/dist/es/business/YkCharts/BarProperty.js.map +7 -0
- package/dist/es/business/YkCharts/BarTotal.d.ts +21 -0
- package/dist/es/business/YkCharts/BarTotal.js +292 -0
- package/dist/es/business/YkCharts/BarTotal.js.map +7 -0
- package/dist/es/business/YkCharts/Line.d.ts +21 -0
- package/dist/es/business/YkCharts/Line.js +342 -0
- package/dist/es/business/YkCharts/Line.js.map +7 -0
- package/dist/es/business/YkCharts/Pie.d.ts +19 -0
- package/dist/es/business/YkCharts/Pie.js +107 -0
- package/dist/es/business/YkCharts/Pie.js.map +7 -0
- package/dist/es/business/YkCharts/PieProperty.d.ts +18 -0
- package/dist/es/business/YkCharts/PieProperty.js +180 -0
- package/dist/es/business/YkCharts/PieProperty.js.map +7 -0
- package/dist/es/business/YkCharts/Pies.d.ts +26 -0
- package/dist/es/business/YkCharts/Pies.js +352 -0
- package/dist/es/business/YkCharts/Pies.js.map +7 -0
- package/dist/es/business/YkCharts/constants.d.ts +1 -0
- package/dist/es/business/YkCharts/constants.js +47 -0
- package/dist/es/business/YkCharts/constants.js.map +7 -0
- package/dist/es/business/YkCharts/hooks.d.ts +4 -0
- package/dist/es/business/YkCharts/hooks.js +37 -0
- package/dist/es/business/YkCharts/hooks.js.map +7 -0
- package/dist/es/business/YkCharts/index.d.ts +9 -0
- package/dist/es/business/YkCharts/index.js +20 -0
- package/dist/es/business/YkCharts/index.js.map +7 -0
- package/dist/es/business/YkCharts/index.module.less +164 -0
- package/dist/es/business/YkCharts/tooltip.less +92 -0
- package/dist/es/business/YkCharts/transformData.js +16 -0
- package/dist/es/business/YkCharts/transformData.js.map +7 -0
- package/dist/es/business/YkCharts/typing.d.ts +74 -0
- package/dist/es/business/YkCharts/typing.js +1 -0
- package/dist/es/business/YkCharts/typing.js.map +7 -0
- package/dist/es/business/YkCharts/utils.d.ts +4 -0
- package/dist/es/business/YkCharts/utils.js +109 -0
- package/dist/es/business/YkCharts/utils.js.map +7 -0
- package/dist/es/business/YkCharts/variables.less +13 -0
- package/dist/es/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
- package/dist/es/business/YkLoginModule/SmsLoginForm.js +178 -0
- package/dist/es/business/YkLoginModule/SmsLoginForm.js.map +7 -0
- package/dist/es/business/YkLoginModule/index.d.ts +48 -0
- package/dist/es/business/YkLoginModule/index.js +198 -0
- package/dist/es/business/YkLoginModule/index.js.map +7 -0
- package/dist/es/business/YkLoginModule/styles.module.less +169 -0
- package/dist/es/business/YkPorjectSelect/index.d.ts +1 -1
- package/dist/es/business/YkPorjectSelect/index.js +2 -2
- package/dist/es/business/YkPorjectSelect/index.js.map +2 -2
- package/dist/es/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
- package/dist/es/business/YkSqlEdit/index.d.ts +20 -0
- package/dist/es/business/YkSqlEdit/index.js +180 -0
- package/dist/es/business/YkSqlEdit/index.js.map +7 -0
- package/dist/es/business/YkSqlEdit/sql-language.d.ts +11 -0
- package/dist/es/business/YkSqlEdit/sql-language.js +1460 -0
- package/dist/es/business/YkSqlEdit/sql-language.js.map +7 -0
- package/dist/es/components/DebounceInput/index.js.map +2 -2
- package/dist/es/components/MultipleSelect/index.d.ts +14 -0
- package/dist/es/components/MultipleSelect/index.js +1 -1
- package/dist/es/components/MultipleSelect/index.js.map +2 -2
- package/dist/es/components/RefreshButton/index.js.map +2 -2
- package/dist/es/components/SearchWithHistory/index.js +1 -1
- package/dist/es/components/SearchWithHistory/index.js.map +2 -2
- package/dist/es/components/TextWithToolTip/index.d.ts +1 -1
- package/dist/es/components/TextWithToolTip/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/index.d.ts +1 -24
- package/dist/es/components/TreeTransfer/index.js +8 -8
- package/dist/es/components/TreeTransfer/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/utils/index.d.ts +1 -1
- package/dist/es/components/TreeTransfer/utils/index.js.map +2 -2
- package/dist/es/components/YKMarkdown/index.d.ts +11 -0
- package/dist/es/components/YKMarkdown/index.js +236 -0
- package/dist/es/components/YKMarkdown/index.js.map +7 -0
- package/dist/es/components/YKMarkdown/index.module.less +83 -0
- package/dist/es/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
- package/dist/es/components/YkDateRangePicker/index.d.ts +9 -1
- package/dist/es/components/YkDateRangePicker/index.js +127 -61
- package/dist/es/components/YkDateRangePicker/index.js.map +2 -2
- package/dist/es/components/YkDateRangePicker/index.module.less +33 -9
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +23 -3
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/index.d.ts +2 -2
- package/dist/es/components/YkRangeDateWithVS/index.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/index.module.less +22 -4
- package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +1 -1
- package/dist/es/components/YkRangeTimeWithRecent/index.js.map +2 -2
- package/dist/es/creative/ArcCheckbox/index.d.ts +12 -0
- package/dist/es/creative/ArcCheckbox/index.js +49 -0
- package/dist/es/creative/ArcCheckbox/index.js.map +7 -0
- package/dist/es/creative/ArcCheckbox/index.module.less +102 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js.map +1 -1
- package/dist/es/creative/ButtonWithProgress/index.d.ts +1 -1
- package/dist/es/creative/ButtonWithProgress/index.js.map +2 -2
- package/dist/es/creative/GlassSegmentedRadio/index.d.ts +24 -0
- package/dist/es/creative/GlassSegmentedRadio/index.js +75 -0
- package/dist/es/creative/GlassSegmentedRadio/index.js.map +7 -0
- package/dist/es/creative/GlassSegmentedRadio/index.module.less +241 -0
- package/dist/es/creative/SkillsWriter/index.d.ts +3 -0
- package/dist/es/creative/SkillsWriter/index.js +191 -0
- package/dist/es/creative/SkillsWriter/index.js.map +7 -0
- package/dist/es/creative/SkillsWriter/index.module.less +21 -0
- package/dist/es/index.d.ts +32 -24
- package/dist/es/index.js +90 -80
- package/dist/es/index.js.map +2 -2
- package/dist/es/index.less +45 -0
- package/dist/es/layout/FlexGrid/index.d.ts +1 -1
- package/dist/es/layout/FlexGrid/index.js.map +2 -2
- package/dist/es/layout/YkContainer/index.js.map +1 -1
- package/dist/es/layout/YkDrawer/index.d.ts +1 -1
- package/dist/es/layout/YkDrawer/index.js.map +2 -2
- package/dist/es/ui/LabelSelect/demo.js +1 -1
- package/dist/es/ui/LabelSelect/demo.js.map +2 -2
- package/dist/es/ui/LabelSelect/index.d.ts +1 -1
- package/dist/es/ui/LabelSelect/index.js +1 -1
- package/dist/es/ui/LabelSelect/index.js.map +2 -2
- package/dist/es/ui/LogicOperator/index.d.ts +1 -1
- package/dist/es/ui/LogicOperator/index.js.map +2 -2
- package/dist/es/ui/YkButton/index.d.ts +1 -1
- package/dist/es/ui/YkButton/index.js.map +2 -2
- package/dist/es/ui/YkCard/index.d.ts +1 -1
- package/dist/es/ui/YkCard/index.js +1 -1
- package/dist/es/ui/YkCard/index.js.map +2 -2
- package/dist/es/ui/YkCheckbox/index.d.ts +1 -1
- package/dist/es/ui/YkCheckbox/index.js.map +2 -2
- package/dist/es/ui/YkDescriptions/index.d.ts +1 -1
- package/dist/es/ui/YkDescriptions/index.js.map +2 -2
- package/dist/es/ui/YkPagination/index.d.ts +1 -1
- package/dist/es/ui/YkPagination/index.js.map +2 -2
- package/dist/es/ui/YkRadio/index.d.ts +1 -1
- package/dist/es/ui/YkRadio/index.js.map +2 -2
- package/dist/es/ui/YkSegmented/index.d.ts +1 -1
- package/dist/es/ui/YkSegmented/index.js.map +2 -2
- package/dist/es/ui/YkSelect/index.d.ts +1 -1
- package/dist/es/ui/YkSelect/index.js.map +2 -2
- package/dist/es/ui/YkSpin/index.d.ts +1 -1
- package/dist/es/ui/YkSpin/index.js.map +2 -2
- package/dist/es/ui/YkStatistic/index.d.ts +1 -1
- package/dist/es/ui/YkStatistic/index.js.map +2 -2
- package/dist/es/ui/YkSwitch/index.d.ts +1 -1
- package/dist/es/ui/YkSwitch/index.js.map +2 -2
- package/dist/es/ui/YkTabs/index.d.ts +1 -1
- package/dist/es/ui/YkTabs/index.js.map +2 -2
- package/dist/es/ui/YkTooltip/index.d.ts +1 -1
- package/dist/es/ui/YkTooltip/index.js.map +2 -2
- package/dist/es/utils/styleUtils.js.map +2 -2
- package/dist/es/utils/ykStorybookDoc.d.ts +15 -0
- package/dist/es/utils/ykStorybookDoc.js +24 -2
- package/dist/es/utils/ykStorybookDoc.js.map +2 -2
- package/dist/lib/assets/image/skills.zip +0 -0
- package/dist/lib/business/AiChat/aichat-logo.svg +1 -0
- package/dist/lib/business/AiChat/index.d.ts +3 -3
- package/dist/lib/business/AiChat/index.js +311 -129
- package/dist/lib/business/AiChat/index.js.map +3 -3
- package/dist/lib/business/AiChat/index.module.less +24 -0
- package/dist/lib/business/AiChat/intentRecognizer.js.map +1 -1
- package/dist/lib/business/AiChat/navigationManager.js +6 -6
- package/dist/lib/business/AiChat/navigationManager.js.map +2 -2
- package/dist/lib/business/AiChat/sse.d.ts +15 -0
- package/dist/lib/business/AiChat/sse.js +117 -7
- package/dist/lib/business/AiChat/sse.js.map +2 -2
- package/dist/lib/business/AiChat/type.d.ts +22 -23
- package/dist/lib/business/AiChat/type.js.map +1 -1
- package/dist/lib/business/AiChat/useAiChat.js +104 -74
- package/dist/lib/business/AiChat/useAiChat.js.map +3 -3
- package/dist/lib/business/AiChat/useTaskWorkflow.d.ts +1 -2
- package/dist/lib/business/AiChat/useTaskWorkflow.js +0 -34
- package/dist/lib/business/AiChat/useTaskWorkflow.js.map +2 -2
- package/dist/lib/business/DrawerPageInfo/index.js.map +1 -1
- package/dist/lib/business/Editor/index.d.ts +1 -1
- package/dist/lib/business/Editor/index.js.map +2 -2
- package/dist/lib/business/Empty/index.js +1 -1
- package/dist/lib/business/Empty/index.js.map +1 -1
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +3 -3
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +4 -4
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +3 -3
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/index.d.ts +1 -1
- package/dist/lib/business/ModCommonFilter/index.js.map +2 -2
- package/dist/lib/business/YkCharts/Area.d.ts +18 -0
- package/dist/lib/business/YkCharts/Area.js +346 -0
- package/dist/lib/business/YkCharts/Area.js.map +7 -0
- package/dist/lib/business/YkCharts/Bar.d.ts +21 -0
- package/dist/lib/business/YkCharts/Bar.js +323 -0
- package/dist/lib/business/YkCharts/Bar.js.map +7 -0
- package/dist/lib/business/YkCharts/BarProperty.d.ts +21 -0
- package/dist/lib/business/YkCharts/BarProperty.js +370 -0
- package/dist/lib/business/YkCharts/BarProperty.js.map +7 -0
- package/dist/lib/business/YkCharts/BarTotal.d.ts +21 -0
- package/dist/lib/business/YkCharts/BarTotal.js +298 -0
- package/dist/lib/business/YkCharts/BarTotal.js.map +7 -0
- package/dist/lib/business/YkCharts/Line.d.ts +21 -0
- package/dist/lib/business/YkCharts/Line.js +349 -0
- package/dist/lib/business/YkCharts/Line.js.map +7 -0
- package/dist/lib/business/YkCharts/Pie.d.ts +19 -0
- package/dist/lib/business/YkCharts/Pie.js +117 -0
- package/dist/lib/business/YkCharts/Pie.js.map +7 -0
- package/dist/lib/business/YkCharts/PieProperty.d.ts +18 -0
- package/dist/lib/business/YkCharts/PieProperty.js +193 -0
- package/dist/lib/business/YkCharts/PieProperty.js.map +7 -0
- package/dist/lib/business/YkCharts/Pies.d.ts +26 -0
- package/dist/lib/business/YkCharts/Pies.js +341 -0
- package/dist/lib/business/YkCharts/Pies.js.map +7 -0
- package/dist/lib/business/YkCharts/constants.d.ts +1 -0
- package/dist/lib/business/YkCharts/constants.js +71 -0
- package/dist/lib/business/YkCharts/constants.js.map +7 -0
- package/dist/lib/business/YkCharts/hooks.d.ts +4 -0
- package/dist/lib/business/YkCharts/hooks.js +62 -0
- package/dist/lib/business/YkCharts/hooks.js.map +7 -0
- package/dist/lib/business/YkCharts/index.d.ts +9 -0
- package/dist/lib/business/YkCharts/index.js +61 -0
- package/dist/lib/business/YkCharts/index.js.map +7 -0
- package/dist/lib/business/YkCharts/index.module.less +164 -0
- package/dist/lib/business/YkCharts/tooltip.less +92 -0
- package/dist/lib/business/YkCharts/transformData.js +40 -0
- package/dist/lib/business/YkCharts/transformData.js.map +7 -0
- package/dist/lib/business/YkCharts/typing.d.ts +74 -0
- package/dist/lib/business/YkCharts/typing.js +18 -0
- package/dist/lib/business/YkCharts/typing.js.map +7 -0
- package/dist/lib/business/YkCharts/utils.d.ts +4 -0
- package/dist/lib/business/YkCharts/utils.js +143 -0
- package/dist/lib/business/YkCharts/utils.js.map +7 -0
- package/dist/lib/business/YkCharts/variables.less +13 -0
- package/dist/lib/business/YkLoginModule/SmsLoginForm.d.ts +25 -0
- package/dist/lib/business/YkLoginModule/SmsLoginForm.js +171 -0
- package/dist/lib/business/YkLoginModule/SmsLoginForm.js.map +7 -0
- package/dist/lib/business/YkLoginModule/index.d.ts +48 -0
- package/dist/lib/business/YkLoginModule/index.js +206 -0
- package/dist/lib/business/YkLoginModule/index.js.map +7 -0
- package/dist/lib/business/YkLoginModule/styles.module.less +169 -0
- package/dist/lib/business/YkPorjectSelect/index.d.ts +1 -1
- package/dist/lib/business/YkPorjectSelect/index.js +3 -3
- package/dist/lib/business/YkPorjectSelect/index.js.map +2 -2
- package/dist/lib/business/YkSqlEdit/code-mirror-custom.module.less +154 -0
- package/dist/lib/business/YkSqlEdit/index.d.ts +20 -0
- package/dist/lib/business/YkSqlEdit/index.js +202 -0
- package/dist/lib/business/YkSqlEdit/index.js.map +7 -0
- package/dist/lib/business/YkSqlEdit/sql-language.d.ts +11 -0
- package/dist/lib/business/YkSqlEdit/sql-language.js +1493 -0
- package/dist/lib/business/YkSqlEdit/sql-language.js.map +7 -0
- package/dist/lib/components/DebounceInput/index.js.map +2 -2
- package/dist/lib/components/MultipleSelect/index.d.ts +14 -0
- package/dist/lib/components/MultipleSelect/index.js +1 -1
- package/dist/lib/components/MultipleSelect/index.js.map +2 -2
- package/dist/lib/components/RefreshButton/index.js.map +2 -2
- package/dist/lib/components/SearchWithHistory/index.js +1 -1
- package/dist/lib/components/SearchWithHistory/index.js.map +2 -2
- package/dist/lib/components/TextWithToolTip/index.d.ts +1 -1
- package/dist/lib/components/TextWithToolTip/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/index.d.ts +1 -24
- package/dist/lib/components/TreeTransfer/index.js +3 -3
- package/dist/lib/components/TreeTransfer/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/utils/index.d.ts +1 -1
- package/dist/lib/components/TreeTransfer/utils/index.js.map +2 -2
- package/dist/lib/components/YKMarkdown/index.d.ts +11 -0
- package/dist/lib/components/YKMarkdown/index.js +188 -0
- package/dist/lib/components/YKMarkdown/index.js.map +7 -0
- package/dist/lib/components/YKMarkdown/index.module.less +83 -0
- package/dist/lib/components/YkDateRangePicker/YkDateRangePicker.mdx +194 -0
- package/dist/lib/components/YkDateRangePicker/index.d.ts +9 -1
- package/dist/lib/components/YkDateRangePicker/index.js +127 -61
- package/dist/lib/components/YkDateRangePicker/index.js.map +2 -2
- package/dist/lib/components/YkDateRangePicker/index.module.less +33 -9
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js +22 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/index.d.ts +2 -2
- package/dist/lib/components/YkRangeDateWithVS/index.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/index.module.less +22 -4
- package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +1 -1
- package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +2 -2
- package/dist/lib/creative/ArcCheckbox/index.d.ts +12 -0
- package/dist/lib/creative/ArcCheckbox/index.js +50 -0
- package/dist/lib/creative/ArcCheckbox/index.js.map +7 -0
- package/dist/lib/creative/ArcCheckbox/index.module.less +102 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +1 -1
- package/dist/lib/creative/ButtonWithProgress/index.d.ts +1 -1
- package/dist/lib/creative/ButtonWithProgress/index.js.map +2 -2
- package/dist/lib/creative/GlassSegmentedRadio/index.d.ts +24 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.js +78 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.js.map +7 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.module.less +241 -0
- package/dist/lib/creative/SkillsWriter/index.d.ts +3 -0
- package/dist/lib/creative/SkillsWriter/index.js +200 -0
- package/dist/lib/creative/SkillsWriter/index.js.map +7 -0
- package/dist/lib/creative/SkillsWriter/index.module.less +21 -0
- package/dist/lib/index.d.ts +32 -24
- package/dist/lib/index.js +39 -24
- package/dist/lib/index.js.map +2 -2
- package/dist/lib/index.less +45 -0
- package/dist/lib/layout/FlexGrid/index.d.ts +1 -1
- package/dist/lib/layout/FlexGrid/index.js.map +2 -2
- package/dist/lib/layout/YkContainer/index.js.map +1 -1
- package/dist/lib/layout/YkDrawer/index.d.ts +1 -1
- package/dist/lib/layout/YkDrawer/index.js.map +2 -2
- package/dist/lib/ui/LabelSelect/demo.js +1 -1
- package/dist/lib/ui/LabelSelect/demo.js.map +2 -2
- package/dist/lib/ui/LabelSelect/index.d.ts +1 -1
- package/dist/lib/ui/LabelSelect/index.js +1 -1
- package/dist/lib/ui/LabelSelect/index.js.map +2 -2
- package/dist/lib/ui/LogicOperator/index.d.ts +1 -1
- package/dist/lib/ui/LogicOperator/index.js.map +2 -2
- package/dist/lib/ui/YkButton/index.d.ts +1 -1
- package/dist/lib/ui/YkButton/index.js.map +2 -2
- package/dist/lib/ui/YkCard/index.d.ts +1 -1
- package/dist/lib/ui/YkCard/index.js.map +2 -2
- package/dist/lib/ui/YkCheckbox/index.d.ts +1 -1
- package/dist/lib/ui/YkCheckbox/index.js.map +2 -2
- package/dist/lib/ui/YkDescriptions/index.d.ts +1 -1
- package/dist/lib/ui/YkDescriptions/index.js.map +2 -2
- package/dist/lib/ui/YkPagination/index.d.ts +1 -1
- package/dist/lib/ui/YkPagination/index.js.map +2 -2
- package/dist/lib/ui/YkRadio/index.d.ts +1 -1
- package/dist/lib/ui/YkRadio/index.js.map +2 -2
- package/dist/lib/ui/YkSegmented/index.d.ts +1 -1
- package/dist/lib/ui/YkSegmented/index.js.map +2 -2
- package/dist/lib/ui/YkSelect/index.d.ts +1 -1
- package/dist/lib/ui/YkSelect/index.js.map +2 -2
- package/dist/lib/ui/YkSpin/index.d.ts +1 -1
- package/dist/lib/ui/YkSpin/index.js.map +2 -2
- package/dist/lib/ui/YkStatistic/index.d.ts +1 -1
- package/dist/lib/ui/YkStatistic/index.js.map +2 -2
- package/dist/lib/ui/YkSwitch/index.d.ts +1 -1
- package/dist/lib/ui/YkSwitch/index.js.map +2 -2
- package/dist/lib/ui/YkTabs/index.d.ts +1 -1
- package/dist/lib/ui/YkTabs/index.js.map +2 -2
- package/dist/lib/ui/YkTooltip/index.d.ts +1 -1
- package/dist/lib/ui/YkTooltip/index.js.map +2 -2
- package/dist/lib/utils/styleUtils.js.map +2 -2
- package/dist/lib/utils/ykStorybookDoc.d.ts +15 -0
- package/dist/lib/utils/ykStorybookDoc.js +23 -1
- package/dist/lib/utils/ykStorybookDoc.js.map +2 -2
- package/package.json +151 -144
|
@@ -1,92 +1,98 @@
|
|
|
1
1
|
# @yoka-ui/ui 具名导出表
|
|
2
2
|
|
|
3
3
|
> **自动生成**:`pnpm run generate:yoka-llms`(源文件 `src/index.tsx`)
|
|
4
|
-
> **包版本**:`1.
|
|
5
|
-
> **生成时间**:`2026-04-
|
|
4
|
+
> **包版本**:`1.1.1`
|
|
5
|
+
> **生成时间**:`2026-04-29T10:16:03.287Z`
|
|
6
6
|
> 请勿手动编辑本文件;修改导出请改 `src/index.tsx` 后重新运行上述命令。
|
|
7
7
|
|
|
8
8
|
## 使用约定(给 LLM / 业务开发者)
|
|
9
9
|
|
|
10
|
-
- **包名**:`@yoka-ui/ui`(npm 公网);可选 Git 安装:`@yoka-ui/ui`: `git+http://gitlab.sh.com/web/yoka-ui.git#v1.
|
|
11
|
-
-
|
|
10
|
+
- **包名**:`@yoka-ui/ui`(npm 公网);可选 Git 安装:`@yoka-ui/ui`: `git+http://gitlab.sh.com/web/yoka-ui.git#v1.1.1` 等,以实际 tag 为准
|
|
11
|
+
- **导入**:仅使用下表中的**具名**导出(组件/值与 `export type` 类型),与发布产物 `dist/es/index.d.ts` 一致;勿臆造未列出符号。
|
|
12
12
|
- **全局样式(常用)**:业务入口引入一行,例如 `import '@yoka-ui/ui/dist/index.less'`(若以 README / 实际产物路径为准)。
|
|
13
13
|
- **技术栈**:React 18、Ant Design 5;复杂表单/表格优先使用库内封装(`InputTheme`、`TableTheme`、`ModCommonFilter` 等),需要原生 antd API 时查阅 [Ant Design 文档](https://ant.design) 或本仓库 `@Docs/llms.txt`(克隆源码时可用)。
|
|
14
14
|
|
|
15
15
|
## 导出清单(按 `src/index.tsx` 分区)
|
|
16
16
|
|
|
17
|
-
### Export
|
|
17
|
+
### Export business components
|
|
18
18
|
|
|
19
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
20
|
-
| --- | --- |
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `YkRadioBtnSpecial` | `./ui/YkRadioBtnSpecial` |
|
|
30
|
-
| `YkSegmented` | `./ui/YkSegmented` |
|
|
31
|
-
| `YkSelect` | `./ui/YkSelect` |
|
|
32
|
-
| `YkSpin` | `./ui/YkSpin` |
|
|
33
|
-
| `YkStatistic` | `./ui/YkStatistic` |
|
|
34
|
-
| `YkSwitch` | `./ui/YkSwitch` |
|
|
35
|
-
| `YkTabs` | `./ui/YkTabs` |
|
|
36
|
-
| `YkTooltip` | `./ui/YkTooltip` |
|
|
19
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `AiChat` | 组件 | `./business/AiChat` |
|
|
22
|
+
| `DrawerPageInfo` | 组件 | `./business/DrawerPageInfo` |
|
|
23
|
+
| `Editor` | 组件 | `./business/Editor` |
|
|
24
|
+
| `Empty` | 组件 | `./business/Empty` |
|
|
25
|
+
| `ModCommonFilter` | 组件 | `./business/ModCommonFilter` |
|
|
26
|
+
| `YkLoginModule` | 组件 | `./business/YkLoginModule` |
|
|
27
|
+
| `YkPorjectSelect` | 组件 | `./business/YkPorjectSelect` |
|
|
28
|
+
| `YkSqlEdit` | 组件 | `./business/YkSqlEdit` |
|
|
37
29
|
|
|
38
|
-
### Export
|
|
30
|
+
### Export common components
|
|
39
31
|
|
|
40
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
41
|
-
| --- | --- |
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
32
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| `Clock` | 组件 | `./components/Clock` |
|
|
35
|
+
| `DebounceInput` | 组件 | `./components/DebounceInput` |
|
|
36
|
+
| `MultipleSelect` | 组件 | `./components/MultipleSelect` |
|
|
37
|
+
| `NumericInput` | 组件 | `./components/NumericInput` |
|
|
38
|
+
| `RefreshButton` | 组件 | `./components/RefreshButton` |
|
|
39
|
+
| `SearchWithHistory` | 组件 | `./components/SearchWithHistory` |
|
|
40
|
+
| `TextWithInput` | 组件 | `./components/TextWithInput` |
|
|
41
|
+
| `TextWithToolTip` | 组件 | `./components/TextWithToolTip` |
|
|
42
|
+
| `TreeTransfer` | 组件 | `./components/TreeTransfer` |
|
|
43
|
+
| `YkDateRangePicker` | 组件 | `./components/YkDateRangePicker` |
|
|
44
|
+
| `YkRangeDateWithVS` | 组件 | `./components/YkRangeDateWithVS` |
|
|
45
|
+
| `YkRangeTimeWithRecent` | 组件 | `./components/YkRangeTimeWithRecent` |
|
|
50
46
|
|
|
51
47
|
### Export creative components
|
|
52
48
|
|
|
53
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
54
|
-
| --- | --- |
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
49
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
50
|
+
| --- | --- | --- |
|
|
51
|
+
| `ArcCheckboxProps` | 类型 | `./creative/ArcCheckbox` |
|
|
52
|
+
| `ArcCheckbox` | 组件 | `./creative/ArcCheckbox` |
|
|
53
|
+
| `ButtonRadioWithInfo` | 组件 | `./creative/ButtonRadioWithInfo` |
|
|
54
|
+
| `ButtonWithProgress` | 组件 | `./creative/ButtonWithProgress` |
|
|
55
|
+
| `GlassSegmentedRadio` | 组件 | `./creative/GlassSegmentedRadio` |
|
|
57
56
|
|
|
58
|
-
### Export
|
|
57
|
+
### Export layout
|
|
59
58
|
|
|
60
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
61
|
-
| --- | --- |
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
59
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
60
|
+
| --- | --- | --- |
|
|
61
|
+
| `FlexGrid` | 组件 | `./layout/FlexGrid` |
|
|
62
|
+
| `YkContainer` | 组件 | `./layout/YkContainer` |
|
|
63
|
+
| `YkDrawer` | 组件 | `./layout/YkDrawer` |
|
|
64
64
|
|
|
65
|
-
### Export
|
|
65
|
+
### Export theme components
|
|
66
66
|
|
|
67
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
68
|
-
| --- | --- |
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `YkDrawer` | `./layout/YkDrawer` |
|
|
67
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| `InputTheme` | 组件 | `./Themes/InputTheme` |
|
|
70
|
+
| `TableTheme` | 组件 | `./Themes/TableTheme` |
|
|
72
71
|
|
|
73
|
-
### Export
|
|
72
|
+
### Export all UI components
|
|
74
73
|
|
|
75
|
-
| 导出符号 | 源码 `from` 路径 |
|
|
76
|
-
| --- | --- |
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
74
|
+
| 导出符号 | 类别 | 源码 `from` 路径 |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| `LabelSelect` | 组件 | `./ui/LabelSelect` |
|
|
77
|
+
| `LogicOperator` | 组件 | `./ui/LogicOperator` |
|
|
78
|
+
| `YkButton` | 组件 | `./ui/YkButton` |
|
|
79
|
+
| `YkCard` | 组件 | `./ui/YkCard` |
|
|
80
|
+
| `YkCheckbox` | 组件 | `./ui/YkCheckbox` |
|
|
81
|
+
| `YkDescriptions` | 组件 | `./ui/YkDescriptions` |
|
|
82
|
+
| `YkPagination` | 组件 | `./ui/YkPagination` |
|
|
83
|
+
| `YkRadio` | 组件 | `./ui/YkRadio` |
|
|
84
|
+
| `YkRadioBtnSpecial` | 组件 | `./ui/YkRadioBtnSpecial` |
|
|
85
|
+
| `YkSegmented` | 组件 | `./ui/YkSegmented` |
|
|
86
|
+
| `YkSelect` | 组件 | `./ui/YkSelect` |
|
|
87
|
+
| `YkSpin` | 组件 | `./ui/YkSpin` |
|
|
88
|
+
| `YkStatistic` | 组件 | `./ui/YkStatistic` |
|
|
89
|
+
| `YkSwitch` | 组件 | `./ui/YkSwitch` |
|
|
90
|
+
| `YkTabs` | 组件 | `./ui/YkTabs` |
|
|
91
|
+
| `YkTooltip` | 组件 | `./ui/YkTooltip` |
|
|
86
92
|
|
|
87
93
|
## 纯符号列表(便于检索)
|
|
88
94
|
|
|
89
95
|
```
|
|
90
|
-
|
|
96
|
+
AiChat, DrawerPageInfo, Editor, Empty, ModCommonFilter, YkLoginModule, YkPorjectSelect, YkSqlEdit, Clock, DebounceInput, MultipleSelect, NumericInput, RefreshButton, SearchWithHistory, TextWithInput, TextWithToolTip, TreeTransfer, YkDateRangePicker, YkRangeDateWithVS, YkRangeTimeWithRecent, ArcCheckboxProps, ArcCheckbox, ButtonRadioWithInfo, ButtonWithProgress, GlassSegmentedRadio, FlexGrid, YkContainer, YkDrawer, InputTheme, TableTheme, LabelSelect, LogicOperator, YkButton, YkCard, YkCheckbox, YkDescriptions, YkPagination, YkRadio, YkRadioBtnSpecial, YkSegmented, YkSelect, YkSpin, YkStatistic, YkSwitch, YkTabs, YkTooltip
|
|
91
97
|
```
|
|
92
98
|
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 web
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
数据部前端组件库 - 基于 React 18 + Ant Design 5 的企业级 UI 组件解决方案
|
|
4
|
-
|
|
5
|
-
**npm 包名**:[`@yoka-ui/ui`](https://www.npmjs.com/package/@yoka-ui/ui)(公网 registry,与 npm 组织 **[yoka-ui](https://www.npmjs.com/org/yoka-ui)** 对应;历史曾用 `@yoka/ui` 等请改为本包名。)
|
|
6
|
-
|
|
7
|
-
## 安装使用
|
|
1
|
+
## 安装与使用
|
|
8
2
|
|
|
9
3
|
### 安装组件库
|
|
10
4
|
|
|
11
5
|
```bash
|
|
12
|
-
# npm
|
|
6
|
+
# npm
|
|
7
|
+
npm i @yoka-ui/ui
|
|
8
|
+
|
|
9
|
+
# 或 pnpm
|
|
13
10
|
pnpm add @yoka-ui/ui
|
|
11
|
+
```
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
pnpm add git+http://gitlab.sh.com/web/yoka-ui.git
|
|
13
|
+
### (推荐)配置 Cursor / IDE 规则
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
pnpm add git+http://gitlab.sh.com/web/yoka-ui.git#v1.0.9
|
|
15
|
+
在项目的 Cursor rules 中创建文件 `yoka-ui.mdc`,用于约束导入方式与文档入口(导出清单、LLM 索引等):
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
```md
|
|
18
|
+
---
|
|
19
|
+
description: 使用 @yoka-ui/ui 时的导入与文档约定
|
|
20
|
+
globs: "**/*.{ts,tsx}"
|
|
21
|
+
alwaysApply: false
|
|
22
|
+
---
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
# @yoka-ui/ui
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
26
|
+
- **导入**:仅从 `@yoka-ui/ui` 做**具名** `import`,勿使用未在导出表中出现的符号。
|
|
27
|
+
- **导出清单(权威)**:以安装包内 `node_modules/@yoka-ui/ui/@Docs-yoka/exports.generated.md` 为准,与发布产物类型一致;该文件由 yoka-ui 在导出变更后重新生成。
|
|
28
|
+
- **LLM / 助手入口**:同目录 `node_modules/@yoka-ui/ui/@Docs-yoka/llms.txt`(索引、外链与使用规则摘要)。
|
|
29
|
+
- **API**:不确定 props 时查组件库 Storybook / 源码示例或 README,勿臆造 API;原生 antd 行为对照 [Ant Design 文档](https://ant.design)。
|
|
30
|
+
- **全局样式**:业务入口按需引入,常见为 `import '@yoka-ui/ui/dist/index.less'`(以 `@yoka-ui/ui` 的 README 与当前产物路径为准)。
|
|
33
31
|
```
|
|
34
32
|
|
|
35
33
|
### 基础用法
|
|
36
34
|
|
|
37
35
|
```tsx
|
|
38
|
-
import { YkButton, YkCard } from
|
|
39
|
-
import
|
|
36
|
+
import { YkButton, YkCard } from "@yoka-ui/ui";
|
|
37
|
+
import "@yoka-ui/ui/dist/index.less"; // 引入样式
|
|
40
38
|
|
|
41
39
|
function App() {
|
|
42
40
|
return (
|
|
@@ -47,13 +45,14 @@ function App() {
|
|
|
47
45
|
}
|
|
48
46
|
```
|
|
49
47
|
|
|
50
|
-
###
|
|
48
|
+
### 导入约定(重要)
|
|
51
49
|
|
|
52
50
|
```tsx
|
|
53
|
-
//
|
|
54
|
-
import {
|
|
51
|
+
// 仅从包入口做“具名导入”
|
|
52
|
+
import { YkPorjectSelect } from "@yoka-ui/ui";
|
|
55
53
|
|
|
56
|
-
//
|
|
54
|
+
// 具体有哪些符号可用,以 @Docs-yoka/exports.generated.md 为准
|
|
55
|
+
// node_modules/@yoka-ui/ui/@Docs-yoka/exports.generated.md
|
|
57
56
|
```
|
|
58
57
|
|
|
59
58
|
## 组件列表
|
|
@@ -116,176 +115,28 @@ import { YkButton } from '@yoka-ui/ui';
|
|
|
116
115
|
| TextWithInput | 可编辑文本 |
|
|
117
116
|
| TextWithToolTip | 带提示的文本 |
|
|
118
117
|
| TreeTransfer | 树形穿梭框 |
|
|
118
|
+
| **YkDateRangePicker** | **带「紧凑预设 tag」与「完整 RangePicker」双模式切换的日期范围选择器;8 个内置快捷预设;受控组件;仅允许过去 7 天** |
|
|
119
119
|
| **YkRangeDateWithVS** | **主时间区间 + 可选「日期对比」(日/周/月 Tab、里程碑、节假日、`rangeDisplayLabel` 等);内置 `ConfigProvider` 中文 locale 与 dayjs `zh-cn`(周一起算)** |
|
|
120
120
|
| **YkRangeTimeWithRecent** | **时间范围 + 「最近 N 天/周/月」动态语义(Popover + `RangePicker`);内置中文 locale 与 dayjs `zh-cn`;触发区依赖全局 `iconfont`(如 `icon-date`)** |
|
|
121
121
|
|
|
122
122
|
### 业务组件 (`src/business/`)
|
|
123
123
|
|
|
124
|
-
| 组件 | 说明
|
|
125
|
-
| --------------- |
|
|
126
|
-
| DrawerPageInfo | 抽屉页面信息
|
|
127
|
-
| Editor | 富文本编辑器
|
|
128
|
-
| Empty | 空状态
|
|
129
|
-
| ModCommonFilter | 通用筛选器
|
|
130
|
-
|
|
|
124
|
+
| 组件 | 说明 |
|
|
125
|
+
| --------------- | -------------------------------------------------------------------- |
|
|
126
|
+
| DrawerPageInfo | 抽屉页面信息 |
|
|
127
|
+
| Editor | 富文本编辑器 |
|
|
128
|
+
| Empty | 空状态 |
|
|
129
|
+
| ModCommonFilter | 通用筛选器 |
|
|
130
|
+
| YkLoginModule | 登录组件(当前支持:扫码 / 短信验证码;Tabs 由 `tabs` 配置) |
|
|
131
|
+
| YkPorjectSelect | 项目选择器(搜索、关注、在营/关服 Tab、最近访问等) |
|
|
132
|
+
| YkSqlEdit | SQL 编辑器(CodeMirror 6:动态参数 `{{...}}` 高亮、关键词/函数补全) |
|
|
131
133
|
|
|
132
134
|
**导出说明**:业务项目里 `import { ... } from '@yoka-ui/ui'` 可用的符号以 `[src/index.tsx](src/index.tsx)` 为准。若某组件已在源码目录中实现但尚未在入口文件中 `export`,需先在组件库补齐导出并发布后,再在业务侧引用。
|
|
133
135
|
|
|
134
136
|
### LLM / 助手文档(`@Docs-yoka`)
|
|
135
137
|
|
|
136
138
|
- 入口索引:[`@Docs-yoka/llms.txt`](@Docs-yoka/llms.txt)(导航 + 使用约定,结构对齐仓库内 Ant Design [@Docs/llms.txt](@Docs/llms.txt) 思路)。
|
|
137
|
-
- **具名导出表**:[`@Docs-yoka/exports.generated.md`](@Docs-yoka/exports.generated.md) 由脚本根据 `src/index.tsx` 自动生成;修改导出后请执行
|
|
139
|
+
- **具名导出表**:[`@Docs-yoka/exports.generated.md`](@Docs-yoka/exports.generated.md) 由脚本根据 `src/index.tsx` 自动生成;修改导出后请执行
|
|
140
|
+
#### `pnpm run generate:yoka-llms`
|
|
141
|
+
(发版时 `prepack` 会执行一次以保证包内为最新)。
|
|
138
142
|
- 安装 npm 包后路径示例:`node_modules/@yoka-ui/ui/@Docs-yoka/llms.txt`(需 `package.json` 的 `files` 包含 `@Docs-yoka`)。
|
|
139
|
-
|
|
140
|
-
## 开发指南
|
|
141
|
-
|
|
142
|
-
### 环境要求
|
|
143
|
-
|
|
144
|
-
- Node.js >= 18
|
|
145
|
-
- pnpm >= 9 (推荐) 或 npm/yarn
|
|
146
|
-
|
|
147
|
-
### 安装依赖
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
pnpm install
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### 开发组件
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
# 启动 Storybook(推荐)
|
|
157
|
-
pnpm dev
|
|
158
|
-
|
|
159
|
-
# 或直接
|
|
160
|
-
pnpm storybook
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
访问 [http://localhost:6006](http://localhost:6006) 查看组件文档
|
|
164
|
-
|
|
165
|
-
### 构建发布
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
# 构建生产版本
|
|
169
|
-
pnpm build
|
|
170
|
-
|
|
171
|
-
# 发布新版本
|
|
172
|
-
pnpm release
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
发布流程:
|
|
176
|
-
|
|
177
|
-
1. 运行 `pnpm release` 或手动打 tag
|
|
178
|
-
2. `git tag v1.0.9`
|
|
179
|
-
3. `git push origin v1.0.9`
|
|
180
|
-
4. 消费项目通过 `pnpm add git+...#v1.0.9` 更新
|
|
181
|
-
|
|
182
|
-
### 代码规范
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
# 代码格式化和检查
|
|
186
|
-
pnpm format # 格式化代码
|
|
187
|
-
pnpm lint # 检查代码
|
|
188
|
-
pnpm lint:fix # 自动修复
|
|
189
|
-
|
|
190
|
-
# 测试
|
|
191
|
-
pnpm test # 运行测试
|
|
192
|
-
pnpm test:watch # 监听模式
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### 提交代码
|
|
196
|
-
|
|
197
|
-
使用 commitlint 规范提交:
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
pnpm commit
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## 项目结构
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
src/
|
|
207
|
-
├── ui/ # UI 基础组件
|
|
208
|
-
│ └── YkButton/
|
|
209
|
-
│ ├── index.tsx # 组件主文件
|
|
210
|
-
│ ├── index.stories.tsx # Storybook 文档
|
|
211
|
-
│ └── index.module.less # 样式文件
|
|
212
|
-
├── components/ # 功能组件(含 YkRangeDateWithVS、YkRangeTimeWithRecent 等)
|
|
213
|
-
├── business/ # 业务组件
|
|
214
|
-
├── creative/ # 创意组件
|
|
215
|
-
└── Themes/ # 主题配置
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
时间筛选相关 Storybook 入口示例:`功能组件/YkRangeDateWithVS 时间区间与对比`、`功能组件/YkRangeTimeWithRecent 时间范围与最近N天`。
|
|
219
|
-
|
|
220
|
-
## 组件开发规范
|
|
221
|
-
|
|
222
|
-
### 新增组件
|
|
223
|
-
|
|
224
|
-
1. 在对应目录创建组件文件夹
|
|
225
|
-
2. 创建 `index.tsx` 主文件
|
|
226
|
-
3. 创建 `index.stories.tsx` 文档
|
|
227
|
-
4. 在 `src/index.tsx` 中导出
|
|
228
|
-
|
|
229
|
-
### 代码示例
|
|
230
|
-
|
|
231
|
-
```tsx
|
|
232
|
-
// src/ui/YourComponent/index.tsx
|
|
233
|
-
import React from 'react';
|
|
234
|
-
import { Button } from 'antd';
|
|
235
|
-
import './index.less';
|
|
236
|
-
|
|
237
|
-
export interface YourComponentProps {
|
|
238
|
-
text: string;
|
|
239
|
-
onClick?: () => void;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
const YourComponent: React.FC<YourComponentProps> = ({ text, onClick }) => {
|
|
243
|
-
return <Button onClick={onClick}>{text}</Button>;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
YourComponent.defaultProps = {
|
|
247
|
-
text: '默认文本',
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
export default YourComponent;
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
```tsx
|
|
254
|
-
// src/ui/YourComponent/index.stories.tsx
|
|
255
|
-
import React from 'react';
|
|
256
|
-
import { Story, Meta } from '@storybook/react';
|
|
257
|
-
import YourComponent from './index';
|
|
258
|
-
|
|
259
|
-
export default {
|
|
260
|
-
title: 'UI/YourComponent',
|
|
261
|
-
component: YourComponent,
|
|
262
|
-
} as Meta;
|
|
263
|
-
|
|
264
|
-
const Template: Story<typeof YourComponent> = (args) => <YourComponent {...args} />;
|
|
265
|
-
|
|
266
|
-
export const Primary = Template.bind({});
|
|
267
|
-
Primary.args = {
|
|
268
|
-
text: '按钮文本',
|
|
269
|
-
};
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
## 技术栈
|
|
273
|
-
|
|
274
|
-
- **React**: 18.3.1
|
|
275
|
-
- **Ant Design**: 5.29.2
|
|
276
|
-
- **构建工具**: father 4.6.15 + esbuild 0.27.3
|
|
277
|
-
- **组件文档**: Storybook 10.1.11
|
|
278
|
-
- **样式方案**: Less + CSS Modules
|
|
279
|
-
- **代码规范**: ESLint + Prettier + Husky
|
|
280
|
-
|
|
281
|
-
## 注意事项
|
|
282
|
-
|
|
283
|
-
1. **样式引入**: 使用组件前需引入 `@yoka-ui/ui/dist/index.less`
|
|
284
|
-
2. **Less 支持**: 确保项目支持 Less,可使用 `less-loader`
|
|
285
|
-
3. **CSS Modules**:`css-loader` 对 `*.module.less` 建议配置 `exportLocalsConvention: 'as-is'`(与源码类名一致)。若使用默认的 `camel-case-only`,部分含连续大写的类名与 `styles.xxx` 可能对不齐;本库相关样式已统一为 `ykRangeDateWithVs`\* 等与默认导出一致的形式。
|
|
286
|
-
4. **版本兼容性**: React 18 + Ant Design 5
|
|
287
|
-
5. **YkRangeDateWithVS / YkRangeTimeWithRecent**:组件内部已挂载 Ant Design `locale={zh_CN}`,并注册 `dayjs` 中文语言包(一周从周一开始),日历/周月面板默认中文;业务侧一般无需再包一层中文 `ConfigProvider`。两类组件的部分图标来自业务全局 **iconfont**(如 `icon-date`、`icon-riqi1`、`icon-guanbi1` 等),需在消费项目中引入对应字体样式。
|
|
288
|
-
|
|
289
|
-
## 许可证
|
|
290
|
-
|
|
291
|
-
MIT - 仅供内部项目使用
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_5864_85390)" fill="none"><path d="M11.2812 5.49104C11.2403 5.13024 10.9353 4.85751 10.5722 4.85714C10.2091 4.85677 9.90345 5.12887 9.86185 5.48959C9.59131 7.83515 8.89003 9.48448 7.75868 10.6158C6.62734 11.7472 4.97801 12.4485 2.63244 12.719C2.27173 12.7606 1.99963 13.0662 2 13.4293C2.00037 13.7924 2.2731 14.0975 2.63389 14.1383C4.94069 14.3996 6.62508 15.1006 7.78328 16.2379C8.93713 17.3709 9.65305 19.0198 9.85994 21.3489C9.89271 21.7178 10.2019 22.0004 10.5722 22C10.9425 21.9996 11.2511 21.7162 11.2831 21.3473C11.4813 19.0565 12.1966 17.3729 13.3562 16.2133C14.5157 15.0537 16.1994 14.3385 18.4902 14.1402C18.8591 14.1083 19.1424 13.7997 19.1429 13.4294C19.1433 13.0591 18.8606 12.7499 18.4918 12.7171C16.1627 12.5102 14.5137 11.7943 13.3807 10.6404C12.2435 9.48222 11.5425 7.79783 11.2812 5.49104Z" fill="#1E96EB"></path><path d="M18.9427 2.24651C18.9268 2.1062 18.8082 2.00014 18.667 2C18.5257 1.99986 18.4069 2.10567 18.3907 2.24595C18.2855 3.15811 18.0128 3.79952 17.5728 4.23949C17.1329 4.67946 16.4914 4.95218 15.5793 5.05739C15.439 5.07356 15.3332 5.19241 15.3333 5.33362C15.3335 5.47482 15.4395 5.59345 15.5798 5.60935C16.4769 5.71096 17.132 5.98357 17.5824 6.42584C18.0311 6.86644 18.3095 7.50771 18.39 8.41347C18.4027 8.55691 18.523 8.66683 18.667 8.66667C18.811 8.6665 18.931 8.55632 18.9434 8.41284C19.0205 7.52199 19.2987 6.86723 19.7496 6.41629C20.2006 5.96534 20.8553 5.68719 21.7462 5.61008C21.8896 5.59766 21.9998 5.47765 22 5.33365C22.0002 5.18964 21.8902 5.06939 21.7468 5.05664C20.841 4.97619 20.1998 4.69777 19.7592 4.24905C19.3169 3.79864 19.0443 3.1436 18.9427 2.24651Z" fill="#1E96EB"></path></g><defs><clipPath id="clip0_5864_85390"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>
|
|
@@ -9,8 +9,8 @@ export interface AiChatProps extends AiChatConfig, Partial<EnhancedAiChatConfig>
|
|
|
9
9
|
}
|
|
10
10
|
declare const AiChat: FC<AiChatProps>;
|
|
11
11
|
export default AiChat;
|
|
12
|
+
export { generateSuggestions, isTaskCreationIntent, parseTaskDescription, recognizeIntent } from './intentRecognizer';
|
|
13
|
+
export { delay, NavigationManager } from './navigationManager';
|
|
14
|
+
export type { AiChatConfig, ChatSession, EnhancedAiChatConfig, Intent, IntentType, Message, NavigationOptions, Task, TaskCategory, TaskCreationResult, TaskPriority, TaskStatus, UseAiChatOptions, UseAiChatReturn, } from './type';
|
|
12
15
|
export { useAiChat } from './useAiChat';
|
|
13
16
|
export { useTaskWorkflow } from './useTaskWorkflow';
|
|
14
|
-
export { recognizeIntent, generateSuggestions, isTaskCreationIntent, parseTaskDescription } from './intentRecognizer';
|
|
15
|
-
export { NavigationManager, delay } from './navigationManager';
|
|
16
|
-
export type { AiChatConfig, ChatSession, Message, UseAiChatOptions, UseAiChatReturn, Intent, IntentType, Task, TaskCategory, TaskPriority, TaskStatus, TaskCreationResult, NavigationOptions, EnhancedAiChatConfig, } from './type';
|