@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,32 @@
|
|
|
1
|
+
import { Tabs } from "../../../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
+
var onChange = function onChange(key) {
|
|
6
|
+
console.log(key);
|
|
7
|
+
};
|
|
8
|
+
var items = [{
|
|
9
|
+
key: '1',
|
|
10
|
+
label: 'Tab 1',
|
|
11
|
+
children: 'Content of Tab Pane 1'
|
|
12
|
+
}, {
|
|
13
|
+
key: '2',
|
|
14
|
+
label: 'Tab 2',
|
|
15
|
+
children: 'Content of Tab Pane 2'
|
|
16
|
+
}, {
|
|
17
|
+
key: '3',
|
|
18
|
+
label: 'Tab 3',
|
|
19
|
+
children: 'Content of Tab Pane 3'
|
|
20
|
+
}];
|
|
21
|
+
var App = function App() {
|
|
22
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
23
|
+
children: /*#__PURE__*/_jsx(Tabs, {
|
|
24
|
+
defaultActiveKey: "1",
|
|
25
|
+
items: items,
|
|
26
|
+
onChange: onChange,
|
|
27
|
+
type: "segmented",
|
|
28
|
+
centered: true
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export default App;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabsProps } from 'antd';
|
|
3
|
+
export interface SparkTabsProps extends Omit<TabsProps, 'type'> {
|
|
4
|
+
/**
|
|
5
|
+
* @description 当Spark组件和antd组件重名时,是否使用Spark组件而不是antd的组件。会覆盖ConfigProvider里的replaceAntd属性
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
type?: 'line' | 'card' | 'editable-card' | 'segmented';
|
|
9
|
+
}
|
|
10
|
+
declare const SparkTabs: {
|
|
11
|
+
(props: SparkTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
TabPane: import("react").FC<import("antd").TabPaneProps>;
|
|
13
|
+
};
|
|
14
|
+
export default SparkTabs;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 = ["type", "centered"];
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
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."); }
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
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; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
import { getCommonConfig } from "../../../config";
|
|
17
|
+
import { Segmented, Tabs } from 'antd';
|
|
18
|
+
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
|
|
19
|
+
import classNames from 'classnames';
|
|
20
|
+
import useIndexStyle from "./index.style";
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
var SparkTabs = function SparkTabs(props) {
|
|
23
|
+
var type = props.type,
|
|
24
|
+
centered = props.centered,
|
|
25
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
var _getCommonConfig = getCommonConfig(),
|
|
27
|
+
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
28
|
+
var _useMergedState = useMergedState(function () {
|
|
29
|
+
var _restProps$items$;
|
|
30
|
+
return (_restProps$items$ = restProps.items[0]) === null || _restProps$items$ === void 0 ? void 0 : _restProps$items$.key;
|
|
31
|
+
}, {
|
|
32
|
+
value: restProps.activeKey,
|
|
33
|
+
defaultValue: restProps.defaultActiveKey
|
|
34
|
+
}),
|
|
35
|
+
_useMergedState2 = _slicedToArray(_useMergedState, 2),
|
|
36
|
+
mergedActiveKey = _useMergedState2[0],
|
|
37
|
+
setMergedActiveKey = _useMergedState2[1];
|
|
38
|
+
useIndexStyle();
|
|
39
|
+
if (type === 'segmented') {
|
|
40
|
+
return /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
41
|
+
activeKey: mergedActiveKey,
|
|
42
|
+
renderTabBar: function renderTabBar(tabProps) {
|
|
43
|
+
var options = props.items.map(function (item) {
|
|
44
|
+
return {
|
|
45
|
+
label: item.label,
|
|
46
|
+
value: item.key,
|
|
47
|
+
disabled: item.disabled
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
return /*#__PURE__*/_jsx(Segmented, {
|
|
51
|
+
options: options,
|
|
52
|
+
onChange: function onChange(value) {
|
|
53
|
+
var _props$onChange;
|
|
54
|
+
setMergedActiveKey(value);
|
|
55
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
|
|
56
|
+
},
|
|
57
|
+
className: classNames("".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({}, "".concat(sparkPrefix, "-segmented-tab-bar-centered"), centered)),
|
|
58
|
+
value: tabProps.activeKey,
|
|
59
|
+
size: props.size
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
return /*#__PURE__*/_jsx(Tabs, _objectSpread({}, restProps));
|
|
65
|
+
};
|
|
66
|
+
SparkTabs.TabPane = Tabs.TabPane;
|
|
67
|
+
export default SparkTabs;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare function getIndexStyleData(params: any): {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
display: string;
|
|
4
|
+
marginBottom?: undefined;
|
|
5
|
+
background?: undefined;
|
|
6
|
+
alignSelf?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
[x: string]: string | {
|
|
9
|
+
alignSelf: string;
|
|
10
|
+
} | {
|
|
11
|
+
[x: string]: {
|
|
12
|
+
fontWeight: number;
|
|
13
|
+
};
|
|
14
|
+
alignSelf?: undefined;
|
|
15
|
+
};
|
|
16
|
+
marginBottom: string;
|
|
17
|
+
background: string;
|
|
18
|
+
alignSelf: string;
|
|
19
|
+
display?: undefined;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
23
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var _excluded = ["css"];
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
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
|
+
import createStyle from "../../../libs/createStyle";
|
|
9
|
+
export function getIndexStyleData(params) {
|
|
10
|
+
var sparkPrefix = params.sparkPrefix,
|
|
11
|
+
antPrefix = params.antPrefix;
|
|
12
|
+
return _defineProperty(_defineProperty({}, ".".concat(antPrefix, "-tabs-nav::before"), {
|
|
13
|
+
display: 'none!important'
|
|
14
|
+
}), ".".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty(_defineProperty({
|
|
15
|
+
marginBottom: '16px',
|
|
16
|
+
background: "var(--".concat(antPrefix, "-color-fill-tertiary)"),
|
|
17
|
+
alignSelf: 'baseline'
|
|
18
|
+
}, "&.".concat(sparkPrefix, "-segmented-tab-bar-centered"), {
|
|
19
|
+
alignSelf: 'center'
|
|
20
|
+
}), ".".concat(antPrefix, "-segmented-item-selected"), _defineProperty({}, ".".concat(antPrefix, "-segmented-item-label"), {
|
|
21
|
+
fontWeight: 500
|
|
22
|
+
})));
|
|
23
|
+
}
|
|
24
|
+
var useIndexStyle = createStyle(function (_ref2) {
|
|
25
|
+
var css = _ref2.css,
|
|
26
|
+
params = _objectWithoutProperties(_ref2, _excluded);
|
|
27
|
+
var result = css(getIndexStyleData(params));
|
|
28
|
+
return result;
|
|
29
|
+
});
|
|
30
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Tag } from "../../..";
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export default (function () {
|
|
6
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
7
|
+
align: "center",
|
|
8
|
+
vertical: true,
|
|
9
|
+
gap: 50,
|
|
10
|
+
children: [/*#__PURE__*/_jsx(Tag, {
|
|
11
|
+
color: "purple",
|
|
12
|
+
children: "purple"
|
|
13
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
14
|
+
color: "pink",
|
|
15
|
+
children: "pink"
|
|
16
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
17
|
+
color: "yellow",
|
|
18
|
+
children: "yellow"
|
|
19
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
20
|
+
color: "teal",
|
|
21
|
+
children: "teal"
|
|
22
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
23
|
+
color: "blue",
|
|
24
|
+
children: "blue"
|
|
25
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
26
|
+
color: "mauve",
|
|
27
|
+
children: "mauve"
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagProps } from 'antd';
|
|
3
|
+
export interface SparkTagProps extends TagProps {
|
|
4
|
+
size?: 'small' | 'middle';
|
|
5
|
+
}
|
|
6
|
+
declare const SparkTag: import("react").ForwardRefExoticComponent<SparkTagProps & import("react").RefAttributes<any>>;
|
|
7
|
+
export default SparkTag;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 = ["children", "className", "bordered", "color", "size"];
|
|
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 "../../../config";
|
|
11
|
+
import { Tag } from 'antd';
|
|
12
|
+
import classNames from 'classnames';
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import useIndexStyle from "./index.style";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
var SparkTag = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
17
|
+
var children = props.children,
|
|
18
|
+
className = props.className,
|
|
19
|
+
_props$bordered = props.bordered,
|
|
20
|
+
bordered = _props$bordered === void 0 ? false : _props$bordered,
|
|
21
|
+
color = props.color,
|
|
22
|
+
_props$size = props.size,
|
|
23
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
24
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
useIndexStyle();
|
|
26
|
+
var commonConfig = getCommonConfig();
|
|
27
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
28
|
+
return /*#__PURE__*/_jsx(Tag, _objectSpread(_objectSpread({
|
|
29
|
+
className: classNames("".concat(sparkPrefix, "-tag ").concat(sparkPrefix, "-tag-").concat(color, " ").concat(sparkPrefix, "-tag-").concat(size), className),
|
|
30
|
+
bordered: bordered
|
|
31
|
+
}, restProps), {}, {
|
|
32
|
+
ref: ref,
|
|
33
|
+
children: children
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
export default SparkTag;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare function getIndexStyleData(params: any): {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
fontWeight: number;
|
|
4
|
+
fontSize?: undefined;
|
|
5
|
+
lineHeight?: undefined;
|
|
6
|
+
padding?: undefined;
|
|
7
|
+
color?: undefined;
|
|
8
|
+
background?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
fontSize: string;
|
|
11
|
+
lineHeight: string;
|
|
12
|
+
padding: string;
|
|
13
|
+
fontWeight?: undefined;
|
|
14
|
+
color?: undefined;
|
|
15
|
+
background?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
color: string;
|
|
18
|
+
background: string;
|
|
19
|
+
fontWeight?: undefined;
|
|
20
|
+
fontSize?: undefined;
|
|
21
|
+
lineHeight?: undefined;
|
|
22
|
+
padding?: undefined;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
26
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var _excluded = ["css"];
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
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
|
+
import createStyle from "../../../libs/createStyle";
|
|
9
|
+
export function getIndexStyleData(params) {
|
|
10
|
+
var antPrefix = params.antPrefix,
|
|
11
|
+
sparkPrefix = params.sparkPrefix;
|
|
12
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-tag"), {
|
|
13
|
+
fontWeight: 500
|
|
14
|
+
}), ".".concat(sparkPrefix, "-tag-small"), {
|
|
15
|
+
fontSize: '12px',
|
|
16
|
+
lineHeight: '20px',
|
|
17
|
+
padding: '0 4px'
|
|
18
|
+
}), ".".concat(sparkPrefix, "-tag-middle"), {
|
|
19
|
+
fontSize: '14px',
|
|
20
|
+
lineHeight: '24px',
|
|
21
|
+
padding: '0 6px'
|
|
22
|
+
}), ".".concat(sparkPrefix, "-tag-purple"), {
|
|
23
|
+
color: "var(--".concat(antPrefix, "-color-purple)"),
|
|
24
|
+
background: "var(--".concat(antPrefix, "-color-purple-bg)")
|
|
25
|
+
}), ".".concat(sparkPrefix, "-tag-pink"), {
|
|
26
|
+
color: "var(--".concat(antPrefix, "-color-pink)"),
|
|
27
|
+
background: "var(--".concat(antPrefix, "-color-pink-bg)")
|
|
28
|
+
}), ".".concat(sparkPrefix, "-tag-yellow"), {
|
|
29
|
+
color: "var(--".concat(antPrefix, "-color-yellow)"),
|
|
30
|
+
background: "var(--".concat(antPrefix, "-color-yellow-bg)")
|
|
31
|
+
}), ".".concat(sparkPrefix, "-tag-teal"), {
|
|
32
|
+
color: "var(--".concat(antPrefix, "-color-teal)"),
|
|
33
|
+
background: "var(--".concat(antPrefix, "-color-teal-bg)")
|
|
34
|
+
}), ".".concat(sparkPrefix, "-tag-blue"), {
|
|
35
|
+
color: "var(--".concat(antPrefix, "-color-blue)"),
|
|
36
|
+
background: "var(--".concat(antPrefix, "-color-blue-bg)")
|
|
37
|
+
}), ".".concat(sparkPrefix, "-tag-mauve"), {
|
|
38
|
+
color: "var(--".concat(antPrefix, "-color-mauve)"),
|
|
39
|
+
background: "var(--".concat(antPrefix, "-color-mauve-bg)")
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
var useIndexStyle = createStyle(function (_ref2) {
|
|
43
|
+
var css = _ref2.css,
|
|
44
|
+
params = _objectWithoutProperties(_ref2, _excluded);
|
|
45
|
+
var result = css(getIndexStyleData(params));
|
|
46
|
+
return result;
|
|
47
|
+
});
|
|
48
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Input } from "../../../..";
|
|
2
|
+
import { theme } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var TextArea = Input.TextArea;
|
|
8
|
+
var App = function App() {
|
|
9
|
+
var token = theme.useToken();
|
|
10
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
11
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
12
|
+
style: {
|
|
13
|
+
fontSize: '13px',
|
|
14
|
+
fontWeight: '500',
|
|
15
|
+
lineHeight: '20px',
|
|
16
|
+
/* 中性色/color-text */
|
|
17
|
+
color: token.token.colorText,
|
|
18
|
+
marginBottom: '8px'
|
|
19
|
+
},
|
|
20
|
+
children: "Your Title"
|
|
21
|
+
}), /*#__PURE__*/_jsx(TextArea, {
|
|
22
|
+
rows: 4,
|
|
23
|
+
placeholder: "Type your message here"
|
|
24
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
25
|
+
style: {
|
|
26
|
+
fontSize: '12px',
|
|
27
|
+
fontWeight: 'normal',
|
|
28
|
+
lineHeight: '18px',
|
|
29
|
+
color: token.token.colorTextSecondary,
|
|
30
|
+
marginTop: '8px'
|
|
31
|
+
},
|
|
32
|
+
children: "Your message will be copied to the support team."
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export default App;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { Button, ConfigProvider, Tooltip } from "../../../..";
|
|
2
|
+
import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
|
|
3
|
+
import { Flex } from 'antd';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var text = /*#__PURE__*/_jsx("span", {
|
|
8
|
+
children: "Distinctively monetize cost effective networks for cross-media bandwidth"
|
|
9
|
+
});
|
|
10
|
+
var buttonWidth = 80;
|
|
11
|
+
var App = function App() {
|
|
12
|
+
return /*#__PURE__*/_jsxs(ConfigProvider, {
|
|
13
|
+
button: {
|
|
14
|
+
style: {
|
|
15
|
+
width: buttonWidth,
|
|
16
|
+
margin: 4
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
children: [/*#__PURE__*/_jsx(DemoBlock, {
|
|
20
|
+
title: "\u9ED8\u8BA4\u6DF1\u8272\u80CC\u666F",
|
|
21
|
+
children: /*#__PURE__*/_jsxs(Flex, {
|
|
22
|
+
vertical: true,
|
|
23
|
+
justify: "center",
|
|
24
|
+
align: "center",
|
|
25
|
+
className: "demo",
|
|
26
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
27
|
+
justify: "center",
|
|
28
|
+
align: "center",
|
|
29
|
+
style: {
|
|
30
|
+
whiteSpace: 'nowrap'
|
|
31
|
+
},
|
|
32
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
33
|
+
placement: "topLeft",
|
|
34
|
+
title: text,
|
|
35
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
36
|
+
children: "TL"
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
39
|
+
placement: "top",
|
|
40
|
+
title: text,
|
|
41
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
42
|
+
children: "Top"
|
|
43
|
+
})
|
|
44
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
45
|
+
placement: "topRight",
|
|
46
|
+
title: text,
|
|
47
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
48
|
+
children: "TR"
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
52
|
+
style: {
|
|
53
|
+
width: buttonWidth * 5 + 32
|
|
54
|
+
},
|
|
55
|
+
justify: "space-between",
|
|
56
|
+
align: "center",
|
|
57
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
58
|
+
align: "center",
|
|
59
|
+
vertical: true,
|
|
60
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
61
|
+
placement: "leftTop",
|
|
62
|
+
title: text,
|
|
63
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
64
|
+
children: "LT"
|
|
65
|
+
})
|
|
66
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
67
|
+
placement: "left",
|
|
68
|
+
title: text,
|
|
69
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
70
|
+
children: "Left"
|
|
71
|
+
})
|
|
72
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
73
|
+
placement: "leftBottom",
|
|
74
|
+
title: text,
|
|
75
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
76
|
+
children: "LB"
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
80
|
+
align: "center",
|
|
81
|
+
vertical: true,
|
|
82
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
83
|
+
placement: "rightTop",
|
|
84
|
+
title: text,
|
|
85
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
86
|
+
children: "RT"
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
89
|
+
placement: "right",
|
|
90
|
+
title: text,
|
|
91
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
92
|
+
children: "Right"
|
|
93
|
+
})
|
|
94
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
95
|
+
placement: "rightBottom",
|
|
96
|
+
title: text,
|
|
97
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
98
|
+
children: "RB"
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
103
|
+
justify: "center",
|
|
104
|
+
align: "center",
|
|
105
|
+
style: {
|
|
106
|
+
whiteSpace: 'nowrap'
|
|
107
|
+
},
|
|
108
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
109
|
+
placement: "bottomLeft",
|
|
110
|
+
title: text,
|
|
111
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
112
|
+
children: "BL"
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
115
|
+
placement: "bottom",
|
|
116
|
+
title: text,
|
|
117
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
118
|
+
children: "Bottom"
|
|
119
|
+
})
|
|
120
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
121
|
+
placement: "bottomRight",
|
|
122
|
+
title: text,
|
|
123
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
124
|
+
children: "BR"
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
}), /*#__PURE__*/_jsx(DemoBlock, {
|
|
130
|
+
title: "mode=\"light\" \u4EAE\u8272\u80CC\u666F",
|
|
131
|
+
children: /*#__PURE__*/_jsxs(Flex, {
|
|
132
|
+
vertical: true,
|
|
133
|
+
justify: "center",
|
|
134
|
+
align: "center",
|
|
135
|
+
className: "demo",
|
|
136
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
137
|
+
justify: "center",
|
|
138
|
+
align: "center",
|
|
139
|
+
style: {
|
|
140
|
+
whiteSpace: 'nowrap'
|
|
141
|
+
},
|
|
142
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
143
|
+
mode: "light",
|
|
144
|
+
placement: "topLeft",
|
|
145
|
+
title: text,
|
|
146
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
147
|
+
children: "TL"
|
|
148
|
+
})
|
|
149
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
150
|
+
mode: "light",
|
|
151
|
+
placement: "top",
|
|
152
|
+
title: text,
|
|
153
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
154
|
+
children: "Top"
|
|
155
|
+
})
|
|
156
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
157
|
+
mode: "light",
|
|
158
|
+
placement: "topRight",
|
|
159
|
+
title: text,
|
|
160
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
161
|
+
children: "TR"
|
|
162
|
+
})
|
|
163
|
+
})]
|
|
164
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
165
|
+
style: {
|
|
166
|
+
width: buttonWidth * 5 + 32
|
|
167
|
+
},
|
|
168
|
+
justify: "space-between",
|
|
169
|
+
align: "center",
|
|
170
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
171
|
+
align: "center",
|
|
172
|
+
vertical: true,
|
|
173
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
174
|
+
mode: "light",
|
|
175
|
+
placement: "leftTop",
|
|
176
|
+
title: text,
|
|
177
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
178
|
+
children: "LT"
|
|
179
|
+
})
|
|
180
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
181
|
+
mode: "light",
|
|
182
|
+
placement: "left",
|
|
183
|
+
title: text,
|
|
184
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
185
|
+
children: "Left"
|
|
186
|
+
})
|
|
187
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
188
|
+
mode: "light",
|
|
189
|
+
placement: "leftBottom",
|
|
190
|
+
title: text,
|
|
191
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
192
|
+
children: "LB"
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
196
|
+
align: "center",
|
|
197
|
+
vertical: true,
|
|
198
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
199
|
+
mode: "light",
|
|
200
|
+
placement: "rightTop",
|
|
201
|
+
title: text,
|
|
202
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
203
|
+
children: "RT"
|
|
204
|
+
})
|
|
205
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
206
|
+
mode: "light",
|
|
207
|
+
placement: "right",
|
|
208
|
+
title: text,
|
|
209
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
210
|
+
children: "Right"
|
|
211
|
+
})
|
|
212
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
213
|
+
mode: "light",
|
|
214
|
+
placement: "rightBottom",
|
|
215
|
+
title: text,
|
|
216
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
217
|
+
children: "RB"
|
|
218
|
+
})
|
|
219
|
+
})]
|
|
220
|
+
})]
|
|
221
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
222
|
+
justify: "center",
|
|
223
|
+
align: "center",
|
|
224
|
+
style: {
|
|
225
|
+
whiteSpace: 'nowrap'
|
|
226
|
+
},
|
|
227
|
+
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
228
|
+
mode: "light",
|
|
229
|
+
placement: "bottomLeft",
|
|
230
|
+
title: text,
|
|
231
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
232
|
+
children: "BL"
|
|
233
|
+
})
|
|
234
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
235
|
+
mode: "light",
|
|
236
|
+
placement: "bottom",
|
|
237
|
+
title: text,
|
|
238
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
239
|
+
children: "Bottom"
|
|
240
|
+
})
|
|
241
|
+
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
242
|
+
mode: "light",
|
|
243
|
+
placement: "bottomRight",
|
|
244
|
+
title: text,
|
|
245
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
246
|
+
children: "BR"
|
|
247
|
+
})
|
|
248
|
+
})]
|
|
249
|
+
})]
|
|
250
|
+
})
|
|
251
|
+
})]
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
export default App;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TooltipProps } from 'antd';
|
|
3
|
+
export type SparkTooltipProps = TooltipProps & {
|
|
4
|
+
/**
|
|
5
|
+
* @description 颜色模式
|
|
6
|
+
* @default 'light'
|
|
7
|
+
*/
|
|
8
|
+
mode?: 'dark' | 'light';
|
|
9
|
+
};
|
|
10
|
+
declare const SparkTooltip: import("react").ForwardRefExoticComponent<SparkTooltipProps & import("react").RefAttributes<any>>;
|
|
11
|
+
export default SparkTooltip;
|