@agentscope-ai/design 1.0.4
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/LICENSE +21 -0
- package/README.md +85 -0
- package/dist/antd/styles/button.style.d.ts +47 -0
- package/dist/antd/styles/button.style.js +32 -0
- package/dist/antd/styles/dropdown.style.d.ts +15 -0
- package/dist/antd/styles/dropdown.style.js +16 -0
- package/dist/antd/styles/index.style.d.ts +19 -0
- package/dist/antd/styles/index.style.js +50 -0
- package/dist/antd/styles/message.style.d.ts +5 -0
- package/dist/antd/styles/message.style.js +10 -0
- package/dist/antd/styles/notification.style.d.ts +46 -0
- package/dist/antd/styles/notification.style.js +29 -0
- package/dist/antd/styles/popover.style.d.ts +13 -0
- package/dist/antd/styles/popover.style.js +14 -0
- package/dist/antd/styles/radio.style.d.ts +7 -0
- package/dist/antd/styles/radio.style.js +10 -0
- package/dist/antd/styles/segment.style.d.ts +7 -0
- package/dist/antd/styles/segment.style.js +12 -0
- package/dist/antd/styles/select.style.d.ts +6 -0
- package/dist/antd/styles/select.style.js +11 -0
- package/dist/antd/styles/slider.style.d.ts +22 -0
- package/dist/antd/styles/slider.style.js +21 -0
- package/dist/antd/styles/table.style.d.ts +5 -0
- package/dist/antd/styles/table.style.js +10 -0
- package/dist/antd/styles/tooltip.style.d.ts +8 -0
- package/dist/antd/styles/tooltip.style.js +11 -0
- package/dist/antd/themes/bailianDarkTheme.json +173 -0
- package/dist/antd/themes/bailianTheme.json +170 -0
- package/dist/antd/themes/blackTheme.json +12 -0
- package/dist/antd/themes/carbonDarkTheme.json +172 -0
- package/dist/antd/themes/carbonTheme.json +170 -0
- package/dist/antd/themes/xConsoleTheme.json +26 -0
- package/dist/components/CComponents/Alert/demo/index.d.ts +2 -0
- package/dist/components/CComponents/Alert/demo/index.js +99 -0
- package/dist/components/commonComponents/Alert/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/Alert/demo/index.js +87 -0
- package/dist/components/commonComponents/AlertDialog/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/AlertDialog/demo/demo1.js +86 -0
- package/dist/components/commonComponents/AlertDialog/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/AlertDialog/demo/demo2.js +70 -0
- package/dist/components/commonComponents/AlertDialog/index.d.ts +25 -0
- package/dist/components/commonComponents/AlertDialog/index.js +143 -0
- package/dist/components/commonComponents/Avatar/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/Avatar/demo/index.js +25 -0
- package/dist/components/commonComponents/Avatar/index.d.ts +4 -0
- package/dist/components/commonComponents/Avatar/index.js +39 -0
- package/dist/components/commonComponents/Badge/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/Badge/demo/index.js +24 -0
- package/dist/components/commonComponents/Button/demo/demo1.d.ts +2 -0
- package/dist/components/commonComponents/Button/demo/demo1.js +103 -0
- package/dist/components/commonComponents/Button/demo/demo2.d.ts +2 -0
- package/dist/components/commonComponents/Button/demo/demo2.js +17 -0
- package/dist/components/commonComponents/Button/index.d.ts +18 -0
- package/dist/components/commonComponents/Button/index.js +78 -0
- package/dist/components/commonComponents/Card/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Card/demo/demo1.js +31 -0
- package/dist/components/commonComponents/Card/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Card/demo/demo2.js +46 -0
- package/dist/components/commonComponents/Card/index.d.ts +11 -0
- package/dist/components/commonComponents/Card/index.js +40 -0
- package/dist/components/commonComponents/Card/index.style.d.ts +58 -0
- package/dist/components/commonComponents/Card/index.style.js +44 -0
- package/dist/components/commonComponents/Checkbox/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Checkbox/demo/demo1.js +21 -0
- package/dist/components/commonComponents/Checkbox/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Checkbox/demo/demo2.js +25 -0
- package/dist/components/commonComponents/CodeBlock/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/CodeBlock/demo/demo1.js +34 -0
- package/dist/components/commonComponents/CodeBlock/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/CodeBlock/demo/demo2.js +14 -0
- package/dist/components/commonComponents/CodeBlock/index.d.ts +11 -0
- package/dist/components/commonComponents/CodeBlock/index.js +88 -0
- package/dist/components/commonComponents/CodeBlock/index.style.d.ts +46 -0
- package/dist/components/commonComponents/CodeBlock/index.style.js +59 -0
- package/dist/components/commonComponents/CollapsePanel/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/CollapsePanel/demo/demo1.js +27 -0
- package/dist/components/commonComponents/CollapsePanel/index.d.ts +38 -0
- package/dist/components/commonComponents/CollapsePanel/index.js +116 -0
- package/dist/components/commonComponents/CollapsePanel/index.style.d.ts +329 -0
- package/dist/components/commonComponents/CollapsePanel/index.style.js +96 -0
- package/dist/components/commonComponents/ConfigProvider/index.d.ts +25 -0
- package/dist/components/commonComponents/ConfigProvider/index.js +152 -0
- package/dist/components/commonComponents/Drawer/demo/demo1.d.ts +2 -0
- package/dist/components/commonComponents/Drawer/demo/demo1.js +106 -0
- package/dist/components/commonComponents/Drawer/demo/demo2.d.ts +2 -0
- package/dist/components/commonComponents/Drawer/demo/demo2.js +66 -0
- package/dist/components/commonComponents/Drawer/index.d.ts +3 -0
- package/dist/components/commonComponents/Drawer/index.js +30 -0
- package/dist/components/commonComponents/Drawer/index.style.d.ts +38 -0
- package/dist/components/commonComponents/Drawer/index.style.js +40 -0
- package/dist/components/commonComponents/Dropdown/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Dropdown/demo/demo1.js +33 -0
- package/dist/components/commonComponents/Dropdown/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Dropdown/demo/demo2.js +38 -0
- package/dist/components/commonComponents/Dropdown/index.d.ts +5 -0
- package/dist/components/commonComponents/Dropdown/index.js +20 -0
- package/dist/components/commonComponents/Dropdown/index.style.d.ts +7 -0
- package/dist/components/commonComponents/Dropdown/index.style.js +21 -0
- package/dist/components/commonComponents/Ellipsis/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/Ellipsis/demo/index.js +11 -0
- package/dist/components/commonComponents/EllipsisTip/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/EllipsisTip/demo/demo1.js +25 -0
- package/dist/components/commonComponents/EllipsisTip/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/EllipsisTip/demo/demo2.js +35 -0
- package/dist/components/commonComponents/EllipsisTip/index.d.ts +13 -0
- package/dist/components/commonComponents/EllipsisTip/index.js +30 -0
- package/dist/components/commonComponents/EllipsisTip/index.style.d.ts +10 -0
- package/dist/components/commonComponents/EllipsisTip/index.style.js +24 -0
- package/dist/components/commonComponents/Empty/demo/index.css +11 -0
- package/dist/components/commonComponents/Empty/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/Empty/demo/index.js +186 -0
- package/dist/components/commonComponents/Empty/index.d.ts +57 -0
- package/dist/components/commonComponents/Empty/index.js +112 -0
- package/dist/components/commonComponents/Empty/index.style.d.ts +80 -0
- package/dist/components/commonComponents/Empty/index.style.js +43 -0
- package/dist/components/commonComponents/FileIcon/demo/index.d.ts +1 -0
- package/dist/components/commonComponents/FileIcon/demo/index.js +42 -0
- package/dist/components/commonComponents/FileIcon/icons/common.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/epub.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/excel.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/html.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/image.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/md.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/mobi.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/pdf.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/ppt.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/txt.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/web.svg +1 -0
- package/dist/components/commonComponents/FileIcon/icons/word.svg +1 -0
- package/dist/components/commonComponents/FileIcon/index.d.ts +19 -0
- package/dist/components/commonComponents/FileIcon/index.js +89 -0
- package/dist/components/commonComponents/FileIcon/index.style.d.ts +61 -0
- package/dist/components/commonComponents/FileIcon/index.style.js +42 -0
- package/dist/components/commonComponents/Form/demo/api.d.ts +2 -0
- package/dist/components/commonComponents/Form/demo/api.js +22 -0
- package/dist/components/commonComponents/Form/demo/demo1.d.ts +2 -0
- package/dist/components/commonComponents/Form/demo/demo1.js +107 -0
- package/dist/components/commonComponents/Form/demo/demo2.d.ts +2 -0
- package/dist/components/commonComponents/Form/demo/demo2.js +52 -0
- package/dist/components/commonComponents/Form/demo/demo3.d.ts +2 -0
- package/dist/components/commonComponents/Form/demo/demo3.js +28 -0
- package/dist/components/commonComponents/Form/demo/demo4.d.ts +2 -0
- package/dist/components/commonComponents/Form/demo/demo4.js +29 -0
- package/dist/components/commonComponents/Form/demo/index.module.less +0 -0
- package/dist/components/commonComponents/Form/index.d.ts +27 -0
- package/dist/components/commonComponents/Form/index.js +84 -0
- package/dist/components/commonComponents/Form/index.style.d.ts +49 -0
- package/dist/components/commonComponents/Form/index.style.js +37 -0
- package/dist/components/commonComponents/HelpIcon/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/HelpIcon/demo/index.js +17 -0
- package/dist/components/commonComponents/HelpIcon/index.d.ts +9 -0
- package/dist/components/commonComponents/HelpIcon/index.js +35 -0
- package/dist/components/commonComponents/HelpIcon/index.style.d.ts +12 -0
- package/dist/components/commonComponents/HelpIcon/index.style.js +26 -0
- package/dist/components/commonComponents/IconButton/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/IconButton/demo/demo1.js +66 -0
- package/dist/components/commonComponents/IconButton/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/IconButton/demo/demo2.js +61 -0
- package/dist/components/commonComponents/IconButton/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/IconButton/demo/demo3.js +53 -0
- package/dist/components/commonComponents/IconButton/demo/demo4.d.ts +3 -0
- package/dist/components/commonComponents/IconButton/demo/demo4.js +55 -0
- package/dist/components/commonComponents/IconButton/index.d.ts +22 -0
- package/dist/components/commonComponents/IconButton/index.js +43 -0
- package/dist/components/commonComponents/IconFont/demo/demo1.d.ts +2 -0
- package/dist/components/commonComponents/IconFont/demo/demo1.js +49 -0
- package/dist/components/commonComponents/IconFont/demo/demo2.d.ts +2 -0
- package/dist/components/commonComponents/IconFont/demo/demo2.js +17 -0
- package/dist/components/commonComponents/IconFont/demo/demo3.d.ts +2 -0
- package/dist/components/commonComponents/IconFont/demo/demo3.js +17 -0
- package/dist/components/commonComponents/IconFont/demo/demo4.d.ts +2 -0
- package/dist/components/commonComponents/IconFont/demo/demo4.js +23 -0
- package/dist/components/commonComponents/IconFont/index.d.ts +29 -0
- package/dist/components/commonComponents/IconFont/index.js +57 -0
- package/dist/components/commonComponents/IconFont/index.style.d.ts +67 -0
- package/dist/components/commonComponents/IconFont/index.style.js +44 -0
- package/dist/components/commonComponents/Image/demo/demo1.d.ts +1 -0
- package/dist/components/commonComponents/Image/demo/demo1.js +8 -0
- package/dist/components/commonComponents/Image/index.d.ts +8 -0
- package/dist/components/commonComponents/Image/index.js +37 -0
- package/dist/components/commonComponents/Input/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/Input/demo/index.js +117 -0
- package/dist/components/commonComponents/Input/index.d.ts +13 -0
- package/dist/components/commonComponents/Input/index.js +34 -0
- package/dist/components/commonComponents/Input/index.style.d.ts +36 -0
- package/dist/components/commonComponents/Input/index.style.js +32 -0
- package/dist/components/commonComponents/InputNumber/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/InputNumber/demo/index.js +38 -0
- package/dist/components/commonComponents/InputSearch/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/InputSearch/demo/index.js +43 -0
- package/dist/components/commonComponents/Message/demo.d.ts +2 -0
- package/dist/components/commonComponents/Message/demo.js +53 -0
- package/dist/components/commonComponents/Message/index.d.ts +20 -0
- package/dist/components/commonComponents/Message/index.js +66 -0
- package/dist/components/commonComponents/Modal/demo/demo1.d.ts +2 -0
- package/dist/components/commonComponents/Modal/demo/demo1.js +137 -0
- package/dist/components/commonComponents/Modal/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Modal/demo/demo2.js +77 -0
- package/dist/components/commonComponents/Modal/demo/demo3.d.ts +2 -0
- package/dist/components/commonComponents/Modal/demo/demo3.js +57 -0
- package/dist/components/commonComponents/Modal/demo/demo4.d.ts +3 -0
- package/dist/components/commonComponents/Modal/demo/demo4.js +65 -0
- package/dist/components/commonComponents/Modal/index.css +1 -0
- package/dist/components/commonComponents/Modal/index.d.ts +15 -0
- package/dist/components/commonComponents/Modal/index.js +46 -0
- package/dist/components/commonComponents/Modal/index.style.d.ts +80 -0
- package/dist/components/commonComponents/Modal/index.style.js +58 -0
- package/dist/components/commonComponents/Notification/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Notification/demo/demo1.js +76 -0
- package/dist/components/commonComponents/Notification/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Notification/demo/demo2.js +50 -0
- package/dist/components/commonComponents/Notification/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/Notification/demo/demo3.js +46 -0
- package/dist/components/commonComponents/Notification/index.d.ts +20 -0
- package/dist/components/commonComponents/Notification/index.js +106 -0
- package/dist/components/commonComponents/Pagination/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Pagination/demo/demo1.js +14 -0
- package/dist/components/commonComponents/Pagination/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Pagination/demo/demo2.js +16 -0
- package/dist/components/commonComponents/Pagination/index.d.ts +12 -0
- package/dist/components/commonComponents/Pagination/index.js +59 -0
- package/dist/components/commonComponents/Pagination/index.style.d.ts +12 -0
- package/dist/components/commonComponents/Pagination/index.style.js +24 -0
- package/dist/components/commonComponents/Popconfirm/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/Popconfirm/demo/index.js +155 -0
- package/dist/components/commonComponents/Popconfirm/index.d.ts +5 -0
- package/dist/components/commonComponents/Popconfirm/index.js +29 -0
- package/dist/components/commonComponents/Popover/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Popover/demo/demo1.js +34 -0
- package/dist/components/commonComponents/Popover/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Popover/demo/demo2.js +183 -0
- package/dist/components/commonComponents/Popover/index.d.ts +4 -0
- package/dist/components/commonComponents/Popover/index.js +27 -0
- package/dist/components/commonComponents/Progress/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Progress/demo/demo1.js +15 -0
- package/dist/components/commonComponents/Radio/demo.d.ts +3 -0
- package/dist/components/commonComponents/Radio/demo.js +20 -0
- package/dist/components/commonComponents/Radio/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Radio/demo2.js +115 -0
- package/dist/components/commonComponents/RadioButton/demo/demo.d.ts +3 -0
- package/dist/components/commonComponents/RadioButton/demo/demo.js +166 -0
- package/dist/components/commonComponents/RadioButton/index.d.ts +21 -0
- package/dist/components/commonComponents/RadioButton/index.js +32 -0
- package/dist/components/commonComponents/RadioButton/index.style.d.ts +62 -0
- package/dist/components/commonComponents/RadioButton/index.style.js +49 -0
- package/dist/components/commonComponents/Select/demo/demo.d.ts +3 -0
- package/dist/components/commonComponents/Select/demo/demo.js +29 -0
- package/dist/components/commonComponents/Select/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Select/demo/demo2.js +30 -0
- package/dist/components/commonComponents/Skeleton/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Skeleton/demo/demo1.js +9 -0
- package/dist/components/commonComponents/SlateEditor/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/SlateEditor/demo/index.js +21 -0
- package/dist/components/commonComponents/SlateEditor/elements/S.d.ts +2 -0
- package/dist/components/commonComponents/SlateEditor/elements/S.js +18 -0
- package/dist/components/commonComponents/SlateEditor/elements/Var.d.ts +3 -0
- package/dist/components/commonComponents/SlateEditor/elements/Var.js +20 -0
- package/dist/components/commonComponents/SlateEditor/elements/index.d.ts +2 -0
- package/dist/components/commonComponents/SlateEditor/elements/index.js +2 -0
- package/dist/components/commonComponents/SlateEditor/elements/index.less +10 -0
- package/dist/components/commonComponents/SlateEditor/index.d.ts +39 -0
- package/dist/components/commonComponents/SlateEditor/index.js +272 -0
- package/dist/components/commonComponents/SlateEditor/index.style.d.ts +28 -0
- package/dist/components/commonComponents/SlateEditor/index.style.js +36 -0
- package/dist/components/commonComponents/SlateEditor/types.d.ts +56 -0
- package/dist/components/commonComponents/SlateEditor/types.js +1 -0
- package/dist/components/commonComponents/SlateEditor/utils/constant.d.ts +7 -0
- package/dist/components/commonComponents/SlateEditor/utils/constant.js +36 -0
- package/dist/components/commonComponents/SlateEditor/utils/editor.d.ts +68 -0
- package/dist/components/commonComponents/SlateEditor/utils/editor.js +558 -0
- package/dist/components/commonComponents/SlateEditor/utils/functions.d.ts +41 -0
- package/dist/components/commonComponents/SlateEditor/utils/functions.js +179 -0
- package/dist/components/commonComponents/SlateEditor/utils/index.d.ts +4 -0
- package/dist/components/commonComponents/SlateEditor/utils/index.js +4 -0
- package/dist/components/commonComponents/SlateEditor/utils/withEditor.d.ts +2 -0
- package/dist/components/commonComponents/SlateEditor/utils/withEditor.js +109 -0
- package/dist/components/commonComponents/Slider/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Slider/demo/demo1.js +35 -0
- package/dist/components/commonComponents/Slider/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Slider/demo/demo2.js +48 -0
- package/dist/components/commonComponents/SliderSelector/demo/index.d.ts +2 -0
- package/dist/components/commonComponents/SliderSelector/demo/index.js +41 -0
- package/dist/components/commonComponents/SliderSelector/index.d.ts +16 -0
- package/dist/components/commonComponents/SliderSelector/index.js +67 -0
- package/dist/components/commonComponents/SliderSelector/index.style.d.ts +38 -0
- package/dist/components/commonComponents/SliderSelector/index.style.js +37 -0
- package/dist/components/commonComponents/Spin/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Spin/demo1.js +30 -0
- package/dist/components/commonComponents/Spinner/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Spinner/demo/demo1.js +46 -0
- package/dist/components/commonComponents/Spinner/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Spinner/demo/demo2.js +69 -0
- package/dist/components/commonComponents/Spinner/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/Spinner/demo/demo3.js +59 -0
- package/dist/components/commonComponents/Spinner/index.d.ts +16 -0
- package/dist/components/commonComponents/Spinner/index.js +77 -0
- package/dist/components/commonComponents/Spinner/index.style.d.ts +82 -0
- package/dist/components/commonComponents/Spinner/index.style.js +60 -0
- package/dist/components/commonComponents/Switch/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Switch/demo/demo1.js +26 -0
- package/dist/components/commonComponents/Switch/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Switch/demo/demo2.js +27 -0
- package/dist/components/commonComponents/Switch/index.d.ts +11 -0
- package/dist/components/commonComponents/Switch/index.js +29 -0
- package/dist/components/commonComponents/Switch/index.style.d.ts +8 -0
- package/dist/components/commonComponents/Switch/index.style.js +23 -0
- package/dist/components/commonComponents/Table/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Table/demo/demo1.js +87 -0
- package/dist/components/commonComponents/Table/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Table/demo/demo2.js +98 -0
- package/dist/components/commonComponents/Table/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/Table/demo/demo3.js +378 -0
- package/dist/components/commonComponents/Tabs/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Tabs/demo/demo1.js +45 -0
- package/dist/components/commonComponents/Tabs/demo/demo2.d.ts +3 -0
- package/dist/components/commonComponents/Tabs/demo/demo2.js +43 -0
- package/dist/components/commonComponents/Tabs/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/Tabs/demo/demo3.js +32 -0
- package/dist/components/commonComponents/Tabs/index.d.ts +14 -0
- package/dist/components/commonComponents/Tabs/index.js +67 -0
- package/dist/components/commonComponents/Tabs/index.style.d.ts +23 -0
- package/dist/components/commonComponents/Tabs/index.style.js +30 -0
- package/dist/components/commonComponents/Tag/demo.d.ts +2 -0
- package/dist/components/commonComponents/Tag/demo.js +30 -0
- package/dist/components/commonComponents/Tag/index.d.ts +7 -0
- package/dist/components/commonComponents/Tag/index.js +36 -0
- package/dist/components/commonComponents/Tag/index.style.d.ts +26 -0
- package/dist/components/commonComponents/Tag/index.style.js +48 -0
- package/dist/components/commonComponents/Textarea/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Textarea/demo/demo1.js +36 -0
- package/dist/components/commonComponents/Tooltip/demo/index.d.ts +3 -0
- package/dist/components/commonComponents/Tooltip/demo/index.js +254 -0
- package/dist/components/commonComponents/Tooltip/index.d.ts +11 -0
- package/dist/components/commonComponents/Tooltip/index.js +35 -0
- package/dist/components/commonComponents/Tooltip/index.style.d.ts +24 -0
- package/dist/components/commonComponents/Tooltip/index.style.js +32 -0
- package/dist/components/commonComponents/Upload/demo/demo1.d.ts +3 -0
- package/dist/components/commonComponents/Upload/demo/demo1.js +43 -0
- package/dist/components/commonComponents/Upload/demo/demo2.d.ts +2 -0
- package/dist/components/commonComponents/Upload/demo/demo2.js +15 -0
- package/dist/components/commonComponents/Upload/demo/demo3.d.ts +3 -0
- package/dist/components/commonComponents/Upload/demo/demo3.js +145 -0
- package/dist/components/commonComponents/spark.style.d.ts +45 -0
- package/dist/components/commonComponents/spark.style.js +62 -0
- package/dist/config.d.ts +27 -0
- package/dist/config.js +56 -0
- package/dist/hooks/useGlobalStyle/demo/demo.d.ts +2 -0
- package/dist/hooks/useGlobalStyle/demo/demo.js +47 -0
- package/dist/hooks/useGlobalStyle/index.d.ts +8 -0
- package/dist/hooks/useGlobalStyle/index.js +51 -0
- package/dist/i18n/index.d.ts +33 -0
- package/dist/i18n/index.js +62 -0
- package/dist/i18n/strings/en-US.json +13 -0
- package/dist/i18n/strings/index.js +12 -0
- package/dist/i18n/strings/zh-CN.json +13 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +70 -0
- package/dist/libs/cookie.d.ts +9 -0
- package/dist/libs/cookie.js +19 -0
- package/dist/libs/createStyle/index.d.ts +1 -0
- package/dist/libs/createStyle/index.js +76 -0
- package/dist/libs/data/index.d.ts +15 -0
- package/dist/libs/data/index.js +76 -0
- package/dist/libs/delay/index.d.ts +6 -0
- package/dist/libs/delay/index.js +31 -0
- package/dist/libs/dom.d.ts +8 -0
- package/dist/libs/dom.js +37 -0
- package/dist/libs/env/index.d.ts +10 -0
- package/dist/libs/env/index.js +16 -0
- package/dist/libs/generateCssVars/index.d.ts +19 -0
- package/dist/libs/generateCssVars/index.js +39 -0
- package/dist/libs/loadStyle.d.ts +7 -0
- package/dist/libs/loadStyle.js +41 -0
- package/dist/libs/region/constant.d.ts +6 -0
- package/dist/libs/region/constant.js +154 -0
- package/dist/libs/region/index.d.ts +2 -0
- package/dist/libs/region/index.js +18 -0
- package/dist/libs/requestPop/index.d.ts +52 -0
- package/dist/libs/requestPop/index.js +89 -0
- package/dist/libs/requestPopSse/index.d.ts +35 -0
- package/dist/libs/requestPopSse/index.js +159 -0
- package/dist/libs/requestSse/index.d.ts +47 -0
- package/dist/libs/requestSse/index.js +196 -0
- package/dist/libs/requestSse/parse.d.ts +36 -0
- package/dist/libs/requestSse/parse.js +190 -0
- package/dist/libs/staticRenderer/index.d.ts +8 -0
- package/dist/libs/staticRenderer/index.js +58 -0
- package/dist/libs/string/index.d.ts +19 -0
- package/dist/libs/string/index.js +63 -0
- package/dist/libs/tokens.json +3 -0
- package/dist/libs/utils/index.d.ts +7 -0
- package/dist/libs/utils/index.js +69 -0
- package/dist/libs/waitFor/index.d.ts +25 -0
- package/dist/libs/waitFor/index.js +39 -0
- package/dist/typings.d.ts +14 -0
- package/package.json +173 -0
- package/scripts/init-migrate-config.js +68 -0
- package/scripts/migrate-from-bl.js +78 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["icon"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import { getCommonConfig } from "../../..";
|
|
11
|
+
import { ExclamationCircleOutlined } from "@agentscope-ai/icons-override-antd";
|
|
12
|
+
import { Popconfirm } from 'antd';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var SparkPopconfirm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
|
+
var commonConfig = getCommonConfig();
|
|
17
|
+
var antPrefix = commonConfig.antPrefix;
|
|
18
|
+
var icon = props.icon,
|
|
19
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
20
|
+
return /*#__PURE__*/_jsx(Popconfirm, _objectSpread(_objectSpread({}, rest), {}, {
|
|
21
|
+
ref: ref,
|
|
22
|
+
icon: icon || /*#__PURE__*/_jsx(ExclamationCircleOutlined, {
|
|
23
|
+
style: {
|
|
24
|
+
color: "var(--".concat(antPrefix, "-color-warning)")
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}));
|
|
28
|
+
});
|
|
29
|
+
export default SparkPopconfirm;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Button, Popover } from "../../../..";
|
|
2
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var content = /*#__PURE__*/_jsxs("div", {
|
|
8
|
+
children: [/*#__PURE__*/_jsx("p", {
|
|
9
|
+
children: "Content"
|
|
10
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
11
|
+
children: "Content"
|
|
12
|
+
})]
|
|
13
|
+
});
|
|
14
|
+
var App = function App() {
|
|
15
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/_jsx(DemoBlock, {
|
|
17
|
+
title: "\u666E\u901A\u7528\u6CD5",
|
|
18
|
+
children: /*#__PURE__*/_jsx(Popover, {
|
|
19
|
+
content: content,
|
|
20
|
+
title: "Title",
|
|
21
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
22
|
+
type: "primary",
|
|
23
|
+
children: "Hover me"
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
27
|
+
title: "\u6CA1\u6709\u8BBE\u7F6Eopen\u7684 \u7A7APopover\u5E38\u95ED",
|
|
28
|
+
children: /*#__PURE__*/_jsx(Popover, {
|
|
29
|
+
children: "\u7A7APopover"
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default App;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { Button, ConfigProvider, Popover } from "../../../..";
|
|
8
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
9
|
+
import { Segmented } from 'antd';
|
|
10
|
+
import React, { useMemo, useState } from 'react';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var text = /*#__PURE__*/_jsx("span", {
|
|
14
|
+
children: "Popover title"
|
|
15
|
+
});
|
|
16
|
+
var ButtonWidth = 80;
|
|
17
|
+
var content = /*#__PURE__*/_jsx("div", {
|
|
18
|
+
children: /*#__PURE__*/_jsxs("p", {
|
|
19
|
+
children: ["Conveniently initiate viral synergy without multi functional platforms.", ' ']
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
var App = function App() {
|
|
23
|
+
var _useState = useState('Show'),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
arrow = _useState2[0],
|
|
26
|
+
setArrow = _useState2[1];
|
|
27
|
+
var mergedArrow = useMemo(function () {
|
|
28
|
+
if (arrow === 'Hide') {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (arrow === 'Show') {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
pointAtCenter: true
|
|
36
|
+
};
|
|
37
|
+
}, [arrow]);
|
|
38
|
+
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
39
|
+
button: {
|
|
40
|
+
style: {
|
|
41
|
+
width: ButtonWidth,
|
|
42
|
+
margin: 4
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
children: /*#__PURE__*/_jsxs(DemoBlock, {
|
|
46
|
+
title: "\u7BAD\u5934\u5C55\u793A",
|
|
47
|
+
children: [/*#__PURE__*/_jsx(Segmented, {
|
|
48
|
+
options: ['Show', 'Hide', 'Center'],
|
|
49
|
+
onChange: function onChange(val) {
|
|
50
|
+
return setArrow(val);
|
|
51
|
+
},
|
|
52
|
+
style: {
|
|
53
|
+
marginBottom: 24
|
|
54
|
+
}
|
|
55
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
56
|
+
className: "demo",
|
|
57
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
58
|
+
style: {
|
|
59
|
+
marginInlineStart: ButtonWidth + 4,
|
|
60
|
+
whiteSpace: 'nowrap'
|
|
61
|
+
},
|
|
62
|
+
children: [/*#__PURE__*/_jsx(Popover, {
|
|
63
|
+
placement: "topLeft",
|
|
64
|
+
title: text,
|
|
65
|
+
content: content,
|
|
66
|
+
arrow: mergedArrow,
|
|
67
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
68
|
+
children: "TL"
|
|
69
|
+
})
|
|
70
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
71
|
+
placement: "top",
|
|
72
|
+
title: text,
|
|
73
|
+
content: content,
|
|
74
|
+
arrow: mergedArrow,
|
|
75
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
76
|
+
children: "Top"
|
|
77
|
+
})
|
|
78
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
79
|
+
placement: "topRight",
|
|
80
|
+
title: text,
|
|
81
|
+
content: content,
|
|
82
|
+
arrow: mergedArrow,
|
|
83
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
84
|
+
children: "TR"
|
|
85
|
+
})
|
|
86
|
+
})]
|
|
87
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
88
|
+
style: {
|
|
89
|
+
width: ButtonWidth,
|
|
90
|
+
float: 'inline-start'
|
|
91
|
+
},
|
|
92
|
+
children: [/*#__PURE__*/_jsx(Popover, {
|
|
93
|
+
placement: "leftTop",
|
|
94
|
+
title: text,
|
|
95
|
+
content: content,
|
|
96
|
+
arrow: mergedArrow,
|
|
97
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
98
|
+
children: "LT"
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
101
|
+
placement: "left",
|
|
102
|
+
title: text,
|
|
103
|
+
content: content,
|
|
104
|
+
arrow: mergedArrow,
|
|
105
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
106
|
+
children: "Left"
|
|
107
|
+
})
|
|
108
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
109
|
+
placement: "leftBottom",
|
|
110
|
+
title: text,
|
|
111
|
+
content: content,
|
|
112
|
+
arrow: mergedArrow,
|
|
113
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
114
|
+
children: "LB"
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
118
|
+
style: {
|
|
119
|
+
width: ButtonWidth,
|
|
120
|
+
marginInlineStart: ButtonWidth * 4 + 24
|
|
121
|
+
},
|
|
122
|
+
children: [/*#__PURE__*/_jsx(Popover, {
|
|
123
|
+
placement: "rightTop",
|
|
124
|
+
title: text,
|
|
125
|
+
content: content,
|
|
126
|
+
arrow: mergedArrow,
|
|
127
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
128
|
+
children: "RT"
|
|
129
|
+
})
|
|
130
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
131
|
+
placement: "right",
|
|
132
|
+
title: text,
|
|
133
|
+
content: content,
|
|
134
|
+
arrow: mergedArrow,
|
|
135
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
136
|
+
children: "Right"
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
139
|
+
placement: "rightBottom",
|
|
140
|
+
title: text,
|
|
141
|
+
content: content,
|
|
142
|
+
arrow: mergedArrow,
|
|
143
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
144
|
+
children: "RB"
|
|
145
|
+
})
|
|
146
|
+
})]
|
|
147
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
148
|
+
style: {
|
|
149
|
+
marginInlineStart: ButtonWidth,
|
|
150
|
+
clear: 'both',
|
|
151
|
+
whiteSpace: 'nowrap'
|
|
152
|
+
},
|
|
153
|
+
children: [/*#__PURE__*/_jsx(Popover, {
|
|
154
|
+
placement: "bottomLeft",
|
|
155
|
+
title: text,
|
|
156
|
+
content: content,
|
|
157
|
+
arrow: mergedArrow,
|
|
158
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
159
|
+
children: "BL"
|
|
160
|
+
})
|
|
161
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
162
|
+
placement: "bottom",
|
|
163
|
+
title: text,
|
|
164
|
+
content: content,
|
|
165
|
+
arrow: mergedArrow,
|
|
166
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
167
|
+
children: "Bottom"
|
|
168
|
+
})
|
|
169
|
+
}), /*#__PURE__*/_jsx(Popover, {
|
|
170
|
+
placement: "bottomRight",
|
|
171
|
+
title: text,
|
|
172
|
+
content: content,
|
|
173
|
+
arrow: mergedArrow,
|
|
174
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
175
|
+
children: "BR"
|
|
176
|
+
})
|
|
177
|
+
})]
|
|
178
|
+
})]
|
|
179
|
+
})]
|
|
180
|
+
})
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
export default App;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { getCommonConfig } from "../../../config";
|
|
8
|
+
import { findClosestBySelector } from "../../../libs/dom";
|
|
9
|
+
import { Popover } from 'antd';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var SparkPopover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
|
+
var isContentEmpty = props.content === '' || props.content === undefined || props.content === null;
|
|
14
|
+
var isTitleEmpty = props.title === '' || props.title === undefined || props.title === null;
|
|
15
|
+
var open = props.open !== undefined && props.open !== null ? props.open : isContentEmpty && isTitleEmpty ? false : undefined;
|
|
16
|
+
var _getCommonConfig = getCommonConfig(),
|
|
17
|
+
antPrefix = _getCommonConfig.antPrefix;
|
|
18
|
+
return /*#__PURE__*/_jsx(Popover, _objectSpread(_objectSpread({}, props), {}, {
|
|
19
|
+
arrow: props.arrow || false,
|
|
20
|
+
open: open,
|
|
21
|
+
ref: ref,
|
|
22
|
+
getPopupContainer: props.getPopupContainer || function (triggerNode) {
|
|
23
|
+
return findClosestBySelector(triggerNode, ".".concat(antPrefix, "-app")); // 默认放到App组件下,获取自定义css变量
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
export default SparkPopover;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Progress } from "../../../..";
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
var App = function App() {
|
|
6
|
+
return /*#__PURE__*/_jsx(Flex, {
|
|
7
|
+
gap: "small",
|
|
8
|
+
vertical: true,
|
|
9
|
+
children: /*#__PURE__*/_jsx(Progress, {
|
|
10
|
+
percent: 50,
|
|
11
|
+
showInfo: false
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export default App;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
2
|
+
import { Radio } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var App = function App() {
|
|
8
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
9
|
+
children: /*#__PURE__*/_jsxs(DemoBlock, {
|
|
10
|
+
title: "\u57FA\u672C\u4F7F\u7528",
|
|
11
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
12
|
+
children: "Radio"
|
|
13
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
14
|
+
disabled: true,
|
|
15
|
+
children: "Radio"
|
|
16
|
+
})]
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export default App;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
2
|
+
import { Flex, Radio } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var onChange = function onChange(e) {
|
|
8
|
+
console.log("radio checked:".concat(e.target.value));
|
|
9
|
+
};
|
|
10
|
+
var App = function App() {
|
|
11
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
12
|
+
children: [/*#__PURE__*/_jsx(DemoBlock, {
|
|
13
|
+
title: "buttonStyle=\"solid\"",
|
|
14
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
15
|
+
vertical: true,
|
|
16
|
+
gap: "middle",
|
|
17
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
18
|
+
onChange: onChange,
|
|
19
|
+
defaultValue: "a",
|
|
20
|
+
buttonStyle: "solid",
|
|
21
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
22
|
+
value: "a",
|
|
23
|
+
children: "Hangzhou"
|
|
24
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
25
|
+
value: "b",
|
|
26
|
+
disabled: true,
|
|
27
|
+
children: "Shanghai"
|
|
28
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
29
|
+
value: "c",
|
|
30
|
+
children: "Beijing"
|
|
31
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
32
|
+
value: "d",
|
|
33
|
+
children: "Chengdu"
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
38
|
+
title: "size=\"small\"",
|
|
39
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
40
|
+
vertical: true,
|
|
41
|
+
gap: "middle",
|
|
42
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
43
|
+
onChange: onChange,
|
|
44
|
+
defaultValue: "a",
|
|
45
|
+
size: "small",
|
|
46
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
47
|
+
value: "a",
|
|
48
|
+
children: "Hangzhou"
|
|
49
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
50
|
+
value: "b",
|
|
51
|
+
disabled: true,
|
|
52
|
+
children: "Shanghai"
|
|
53
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
54
|
+
value: "c",
|
|
55
|
+
children: "Beijing"
|
|
56
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
57
|
+
value: "d",
|
|
58
|
+
children: "Chengdu"
|
|
59
|
+
})]
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
63
|
+
title: "size=\"middle\"",
|
|
64
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
65
|
+
vertical: true,
|
|
66
|
+
gap: "middle",
|
|
67
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
68
|
+
onChange: onChange,
|
|
69
|
+
defaultValue: "a",
|
|
70
|
+
size: "middle",
|
|
71
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
72
|
+
value: "a",
|
|
73
|
+
children: "Hangzhou"
|
|
74
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
75
|
+
value: "b",
|
|
76
|
+
disabled: true,
|
|
77
|
+
children: "Shanghai"
|
|
78
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
79
|
+
value: "c",
|
|
80
|
+
children: "Beijing"
|
|
81
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
82
|
+
value: "d",
|
|
83
|
+
children: "Chengdu"
|
|
84
|
+
})]
|
|
85
|
+
})
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
88
|
+
title: "size=\"large\"",
|
|
89
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
90
|
+
vertical: true,
|
|
91
|
+
gap: "middle",
|
|
92
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
93
|
+
onChange: onChange,
|
|
94
|
+
defaultValue: "a",
|
|
95
|
+
size: "large",
|
|
96
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
97
|
+
value: "a",
|
|
98
|
+
children: "Hangzhou"
|
|
99
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
100
|
+
value: "b",
|
|
101
|
+
disabled: true,
|
|
102
|
+
children: "Shanghai"
|
|
103
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
104
|
+
value: "c",
|
|
105
|
+
children: "Beijing"
|
|
106
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
107
|
+
value: "d",
|
|
108
|
+
children: "Chengdu"
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
export default App;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
2
|
+
import { Flex, Radio } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import RadioButton from "../index";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
var onChange = function onChange(e) {
|
|
9
|
+
console.log("radio checked:".concat(e.target.value));
|
|
10
|
+
};
|
|
11
|
+
var App = function App() {
|
|
12
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
13
|
+
children: [/*#__PURE__*/_jsx(DemoBlock, {
|
|
14
|
+
title: "default: ghost=\"true\"",
|
|
15
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
16
|
+
vertical: true,
|
|
17
|
+
gap: "middle",
|
|
18
|
+
children: /*#__PURE__*/_jsx(RadioButton, {
|
|
19
|
+
onChange: onChange,
|
|
20
|
+
defaultValue: "a",
|
|
21
|
+
options: [{
|
|
22
|
+
value: 'a',
|
|
23
|
+
label: 'Hangzhou'
|
|
24
|
+
}, {
|
|
25
|
+
value: 'b',
|
|
26
|
+
label: 'Shanghai',
|
|
27
|
+
disabled: true
|
|
28
|
+
}, {
|
|
29
|
+
value: 'c',
|
|
30
|
+
label: 'Beijing'
|
|
31
|
+
}, {
|
|
32
|
+
value: 'd',
|
|
33
|
+
label: 'Chengdu'
|
|
34
|
+
}]
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
38
|
+
title: "buttonStyle=\"solid\" ghost=false",
|
|
39
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
40
|
+
vertical: true,
|
|
41
|
+
gap: "middle",
|
|
42
|
+
children: /*#__PURE__*/_jsx(RadioButton, {
|
|
43
|
+
onChange: onChange,
|
|
44
|
+
defaultValue: "a",
|
|
45
|
+
buttonStyle: "solid",
|
|
46
|
+
ghost: false,
|
|
47
|
+
options: [{
|
|
48
|
+
value: 'a',
|
|
49
|
+
label: 'Hangzhou'
|
|
50
|
+
}, {
|
|
51
|
+
value: 'b',
|
|
52
|
+
label: 'Shanghai',
|
|
53
|
+
disabled: true
|
|
54
|
+
}, {
|
|
55
|
+
value: 'c',
|
|
56
|
+
label: 'Beijing'
|
|
57
|
+
}, {
|
|
58
|
+
value: 'd',
|
|
59
|
+
label: 'Chengdu'
|
|
60
|
+
}]
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
64
|
+
title: "bordered",
|
|
65
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
66
|
+
vertical: true,
|
|
67
|
+
gap: "middle",
|
|
68
|
+
children: /*#__PURE__*/_jsx(RadioButton, {
|
|
69
|
+
onChange: onChange,
|
|
70
|
+
defaultValue: "a",
|
|
71
|
+
bordered: true,
|
|
72
|
+
options: [{
|
|
73
|
+
value: 'a',
|
|
74
|
+
label: 'Hangzhou'
|
|
75
|
+
}, {
|
|
76
|
+
value: 'b',
|
|
77
|
+
label: 'Shanghai',
|
|
78
|
+
disabled: true
|
|
79
|
+
}, {
|
|
80
|
+
value: 'c',
|
|
81
|
+
label: 'Beijing'
|
|
82
|
+
}, {
|
|
83
|
+
value: 'd',
|
|
84
|
+
label: 'Chengdu'
|
|
85
|
+
}]
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
89
|
+
title: "size=\"small\"",
|
|
90
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
91
|
+
vertical: true,
|
|
92
|
+
gap: "middle",
|
|
93
|
+
children: /*#__PURE__*/_jsxs(RadioButton, {
|
|
94
|
+
onChange: onChange,
|
|
95
|
+
defaultValue: "a",
|
|
96
|
+
size: "small",
|
|
97
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
98
|
+
value: "a",
|
|
99
|
+
children: "Hangzhou"
|
|
100
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
101
|
+
value: "b",
|
|
102
|
+
disabled: true,
|
|
103
|
+
children: "Shanghai"
|
|
104
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
105
|
+
value: "c",
|
|
106
|
+
children: "Beijing"
|
|
107
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
108
|
+
value: "d",
|
|
109
|
+
children: "Chengdu"
|
|
110
|
+
})]
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
114
|
+
title: "size=\"middle\"",
|
|
115
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
116
|
+
vertical: true,
|
|
117
|
+
gap: "middle",
|
|
118
|
+
children: /*#__PURE__*/_jsxs(RadioButton, {
|
|
119
|
+
onChange: onChange,
|
|
120
|
+
defaultValue: "a",
|
|
121
|
+
size: "middle",
|
|
122
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
123
|
+
value: "a",
|
|
124
|
+
children: "Hangzhou"
|
|
125
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
126
|
+
value: "b",
|
|
127
|
+
disabled: true,
|
|
128
|
+
children: "Shanghai"
|
|
129
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
130
|
+
value: "c",
|
|
131
|
+
children: "Beijing"
|
|
132
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
133
|
+
value: "d",
|
|
134
|
+
children: "Chengdu"
|
|
135
|
+
})]
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
139
|
+
title: "size=\"large\"",
|
|
140
|
+
children: /*#__PURE__*/_jsx(Flex, {
|
|
141
|
+
vertical: true,
|
|
142
|
+
gap: "middle",
|
|
143
|
+
children: /*#__PURE__*/_jsxs(RadioButton, {
|
|
144
|
+
onChange: onChange,
|
|
145
|
+
defaultValue: "a",
|
|
146
|
+
size: "large",
|
|
147
|
+
children: [/*#__PURE__*/_jsx(Radio.Button, {
|
|
148
|
+
value: "a",
|
|
149
|
+
children: "Hangzhou"
|
|
150
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
151
|
+
value: "b",
|
|
152
|
+
disabled: true,
|
|
153
|
+
children: "Shanghai"
|
|
154
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
155
|
+
value: "c",
|
|
156
|
+
children: "Beijing"
|
|
157
|
+
}), /*#__PURE__*/_jsx(Radio.Button, {
|
|
158
|
+
value: "d",
|
|
159
|
+
children: "Chengdu"
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
})
|
|
163
|
+
})]
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
export default App;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RadioGroupProps } from 'antd';
|
|
2
|
+
export interface SparkRadioButtonProps extends RadioGroupProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 边框
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @description 按钮背景色类型
|
|
10
|
+
* @default true
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
ghost?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description 间距
|
|
16
|
+
* @default 12 px
|
|
17
|
+
*/
|
|
18
|
+
gap?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: (props: SparkRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default _default;
|