@agentscope-ai/design 1.0.6 → 1.0.8
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/lib/antd/docs/_readme.txt +1 -0
- package/lib/antd/styles/_readme.txt +1 -0
- package/lib/antd/styles/alert.style.d.ts +10 -0
- package/lib/antd/styles/alert.style.js +12 -0
- package/lib/antd/styles/button.style.d.ts +80 -0
- package/lib/antd/styles/button.style.js +47 -0
- package/lib/antd/styles/floatButton.style.d.ts +8 -0
- package/lib/antd/styles/floatButton.style.js +12 -0
- package/lib/antd/styles/index.style.js +54 -0
- package/lib/antd/styles/inputNumber.style.d.ts +18 -0
- package/lib/antd/styles/inputNumber.style.js +17 -0
- package/lib/antd/styles/radio.style.d.ts +24 -0
- package/lib/antd/styles/radio.style.js +18 -0
- package/lib/antd/styles/select.style.d.ts +31 -0
- package/lib/antd/styles/select.style.js +28 -0
- package/lib/antd/themes/_readme.txt +1 -0
- package/lib/antd/themes/bailianDarkTheme.json +90 -0
- package/lib/antd/themes/bailianTheme.json +90 -0
- package/lib/antd/themes/carbonDarkTheme.json +91 -0
- package/lib/antd/themes/carbonTheme.json +90 -0
- package/lib/antd/themes/generateThemeByToken.d.ts +10 -0
- package/lib/antd/themes/generateThemeByToken.js +201 -0
- package/lib/components/commonComponents/Alert/demo/demo1.js +9 -0
- package/lib/components/commonComponents/Alert/demo/demo2.js +27 -0
- package/lib/components/commonComponents/Alert/demo/demo3.js +9 -0
- package/lib/components/commonComponents/Alert/demo/demo4.js +10 -0
- package/lib/components/commonComponents/Alert/demo/demo5.js +15 -0
- package/lib/components/commonComponents/Alert/demo/demo6.js +29 -0
- package/lib/components/commonComponents/Anchor/demo/demo1.d.ts +7 -0
- package/lib/components/commonComponents/Anchor/demo/demo1.js +27 -0
- package/lib/components/commonComponents/Anchor/demo/demo2.d.ts +7 -0
- package/lib/components/commonComponents/Anchor/demo/demo2.js +31 -0
- package/lib/components/commonComponents/Anchor/index.d.ts +5 -0
- package/lib/components/commonComponents/Anchor/index.js +15 -0
- package/lib/components/commonComponents/Anchor/index.style.d.ts +14 -0
- package/lib/components/commonComponents/Anchor/index.style.js +23 -0
- package/lib/components/commonComponents/Avatar/demo/demo1.js +7 -0
- package/lib/components/commonComponents/Avatar/demo/demo2.js +27 -0
- package/lib/components/commonComponents/Avatar/demo/demo3.js +7 -0
- package/lib/components/commonComponents/Avatar/index.js +41 -0
- package/lib/components/commonComponents/Avatar/index.style.d.ts +7 -0
- package/lib/components/commonComponents/Avatar/index.style.js +21 -0
- package/lib/components/commonComponents/Breadcrumb/demo/demo1.js +15 -0
- package/lib/components/commonComponents/Breadcrumb/demo/demo2.js +25 -0
- package/lib/components/commonComponents/Breadcrumb/index.d.ts +33 -0
- package/lib/components/commonComponents/Breadcrumb/index.js +74 -0
- package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +117 -0
- package/lib/components/commonComponents/Breadcrumb/index.style.js +61 -0
- package/lib/components/commonComponents/Button/demo/demo1.js +38 -0
- package/lib/components/commonComponents/Button/demo/demo2.js +18 -0
- package/lib/components/commonComponents/Button/demo/demo3.js +16 -0
- package/lib/components/commonComponents/Button/demo/demo4.js +18 -0
- package/lib/components/commonComponents/Button/demo/demo5.js +18 -0
- package/lib/components/commonComponents/Button/demo/demo6.js +97 -0
- package/lib/components/commonComponents/Button/index.d.ts +34 -0
- package/lib/components/commonComponents/Button/index.js +116 -0
- package/lib/components/commonComponents/Card/demo/demo1.js +27 -0
- package/lib/components/commonComponents/Card/demo/demo2.js +25 -0
- package/lib/components/commonComponents/Card/index.d.ts +11 -0
- package/lib/components/commonComponents/Card/index.js +43 -0
- package/lib/components/commonComponents/Card/index.style.d.ts +71 -0
- package/lib/components/commonComponents/Card/index.style.js +46 -0
- package/lib/components/commonComponents/Checkbox/demo/demo1.js +30 -0
- package/lib/components/commonComponents/Checkbox/demo/demo2.js +14 -0
- package/lib/components/commonComponents/Checkbox/demo/demo3.js +26 -0
- package/lib/components/commonComponents/Checkbox/index.d.ts +28 -0
- package/lib/components/commonComponents/Checkbox/index.js +44 -0
- package/lib/components/commonComponents/Checkbox/index.style.d.ts +34 -0
- package/lib/components/commonComponents/Checkbox/index.style.js +38 -0
- package/lib/components/commonComponents/CodeBlock/demo/demo1.js +49 -0
- package/lib/components/commonComponents/CodeBlock/demo/demo2.js +19 -0
- package/lib/components/commonComponents/CodeBlock/demo/demo3.js +52 -0
- package/lib/components/commonComponents/CodeBlock/index.d.ts +31 -0
- package/lib/components/commonComponents/CodeBlock/index.js +94 -0
- package/lib/components/commonComponents/CodeBlock/index.style.d.ts +354 -0
- package/lib/components/commonComponents/CodeBlock/index.style.js +72 -0
- package/lib/components/commonComponents/Collapse/demo/demo1.js +24 -0
- package/lib/components/commonComponents/Collapse/demo/demo2.js +45 -0
- package/lib/components/commonComponents/Collapse/index.d.ts +3 -0
- package/lib/components/commonComponents/Collapse/index.js +14 -0
- package/lib/components/commonComponents/Collapse/index.style.d.ts +57 -0
- package/lib/components/commonComponents/Collapse/index.style.js +47 -0
- package/lib/components/commonComponents/CollapsePanel/demo/demo1.js +85 -0
- package/lib/components/commonComponents/CollapsePanel/index.d.ts +38 -0
- package/lib/components/commonComponents/CollapsePanel/index.js +119 -0
- package/lib/components/commonComponents/CollapsePanel/index.style.d.ts +287 -0
- package/lib/components/commonComponents/CollapsePanel/index.style.js +97 -0
- package/lib/components/commonComponents/ConfigProvider/index.js +151 -0
- package/lib/components/commonComponents/DatePicker/demo/demo1.js +28 -0
- package/lib/components/commonComponents/DatePicker/demo/demo2.js +34 -0
- package/lib/components/commonComponents/DatePicker/demo/demo3.js +49 -0
- package/lib/components/commonComponents/DatePicker/demo/demo4.js +38 -0
- package/lib/components/commonComponents/DatePicker/index.d.ts +7 -0
- package/lib/components/commonComponents/DatePicker/index.js +80 -0
- package/lib/components/commonComponents/DatePicker/index.style.d.ts +102 -0
- package/lib/components/commonComponents/DatePicker/index.style.js +61 -0
- package/lib/components/commonComponents/Descriptions/demo/demo1.js +32 -0
- package/lib/components/commonComponents/Descriptions/demo/demo2.js +33 -0
- package/lib/components/commonComponents/Descriptions/index.d.ts +3 -0
- package/lib/components/commonComponents/Descriptions/index.js +37 -0
- package/lib/components/commonComponents/Descriptions/index.style.d.ts +17 -0
- package/lib/components/commonComponents/Descriptions/index.style.js +29 -0
- package/lib/components/commonComponents/Drawer/Confirm.d.ts +46 -0
- package/lib/components/commonComponents/Drawer/Confirm.js +61 -0
- package/lib/components/commonComponents/Drawer/demo/demo1.js +49 -0
- package/lib/components/commonComponents/Drawer/demo/demo2.d.ts +7 -0
- package/lib/components/commonComponents/Drawer/demo/demo2.js +90 -0
- package/lib/components/commonComponents/Drawer/demo/demo3.js +64 -0
- package/lib/components/commonComponents/Drawer/demo/demo4.js +99 -0
- package/lib/components/commonComponents/Drawer/demo/demo5.js +73 -0
- package/lib/components/commonComponents/Drawer/index.d.ts +16 -0
- package/lib/components/commonComponents/Drawer/index.js +41 -0
- package/lib/components/commonComponents/Drawer/index.style.d.ts +84 -0
- package/lib/components/commonComponents/Drawer/index.style.js +54 -0
- package/lib/components/commonComponents/Dropdown/demo/demo1.d.ts +3 -0
- package/lib/components/commonComponents/Dropdown/demo/demo1.js +25 -0
- package/lib/components/commonComponents/Dropdown/demo/demo2.d.ts +6 -0
- package/lib/components/commonComponents/Dropdown/demo/demo2.js +45 -0
- package/lib/components/commonComponents/Dropdown/demo/demo3.d.ts +3 -0
- package/lib/components/commonComponents/Dropdown/demo/demo3.js +41 -0
- package/lib/components/commonComponents/Dropdown/demo/demo4.d.ts +7 -0
- package/lib/components/commonComponents/Dropdown/demo/demo4.js +31 -0
- package/lib/components/commonComponents/Dropdown/demo/demo5.d.ts +2 -0
- package/lib/components/commonComponents/Dropdown/demo/demo5.js +32 -0
- package/lib/components/commonComponents/Dropdown/index.js +48 -0
- package/lib/components/commonComponents/Dropdown/index.style.d.ts +78 -0
- package/lib/components/commonComponents/Dropdown/index.style.js +40 -0
- package/lib/components/commonComponents/EllipsisTip/demo/demo2-2.js +17 -0
- package/lib/components/commonComponents/Empty/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Empty/demo/demo1.js +10 -0
- package/lib/components/commonComponents/Empty/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Empty/demo/demo2.js +10 -0
- package/lib/components/commonComponents/Empty/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/Empty/demo/demo3.js +50 -0
- package/lib/components/commonComponents/Empty/index.d.ts +80 -0
- package/lib/components/commonComponents/Empty/index.js +271 -0
- package/lib/components/commonComponents/Empty/index.style.d.ts +113 -0
- package/lib/components/commonComponents/Empty/index.style.js +51 -0
- package/lib/components/commonComponents/Empty/svg/Illustrate.d.ts +14 -0
- package/lib/components/commonComponents/Empty/svg/Illustrate.js +99 -0
- package/lib/components/commonComponents/FileIcon/demo/demo.js +42 -0
- package/lib/components/commonComponents/FileIcon/index.d.ts +20 -0
- package/lib/components/commonComponents/FileIcon/index.js +97 -0
- package/lib/components/commonComponents/FloatButton/demo/demo1.js +14 -0
- package/lib/components/commonComponents/FloatButton/demo/demo2.js +15 -0
- package/lib/components/commonComponents/Form/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Form/demo/demo1.js +50 -0
- package/lib/components/commonComponents/Form/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Form/demo/demo2.js +53 -0
- package/lib/components/commonComponents/Form/index.style.d.ts +53 -0
- package/lib/components/commonComponents/Form/index.style.js +38 -0
- package/lib/components/commonComponents/HelpIcon/demo/demo.d.ts +2 -0
- package/lib/components/commonComponents/HelpIcon/index.js +39 -0
- package/lib/components/commonComponents/IconButton/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/IconButton/demo/demo1.js +43 -0
- package/lib/components/commonComponents/IconButton/demo/demo2.d.ts +3 -0
- package/lib/components/commonComponents/IconButton/demo/demo2.js +27 -0
- package/lib/components/commonComponents/IconButton/demo/demo3.d.ts +6 -0
- package/lib/components/commonComponents/IconButton/demo/demo3.js +30 -0
- package/lib/components/commonComponents/IconButton/index.js +49 -0
- package/lib/components/commonComponents/IconButton/index.style.d.ts +11 -0
- package/lib/components/commonComponents/IconButton/index.style.js +24 -0
- package/lib/components/commonComponents/IconFont/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/IconFont/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/IconFont/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/IconFont/demo/demo4.d.ts +2 -0
- package/lib/components/commonComponents/IconFont/index.js +44 -0
- package/lib/components/commonComponents/Image/demo/demo1.js +8 -0
- package/lib/components/commonComponents/Image/index.js +51 -0
- package/lib/components/commonComponents/Image/index.style.d.ts +22 -0
- package/lib/components/commonComponents/Image/index.style.js +30 -0
- package/lib/components/commonComponents/Input/demo/demo1.js +24 -0
- package/lib/components/commonComponents/Input/demo/demo2.js +24 -0
- package/lib/components/commonComponents/Input/demo/demo3.js +27 -0
- package/lib/components/commonComponents/Input/demo/demo4.js +40 -0
- package/lib/components/commonComponents/Input/demo/demo5.js +26 -0
- package/lib/components/commonComponents/Input/demo/demo6.js +45 -0
- package/lib/components/commonComponents/Input/demo/demo7.js +39 -0
- package/lib/components/commonComponents/Input/index.d.ts +18 -0
- package/lib/components/commonComponents/Input/index.style.d.ts +70 -0
- package/lib/components/commonComponents/Input/index.style.js +42 -0
- package/lib/components/commonComponents/InputNumber/demo/demo.js +32 -0
- package/lib/components/commonComponents/InputNumber/demo/demo1.js +39 -0
- package/lib/components/commonComponents/InputSearch/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/InputSearch/demo/demo1.js +13 -0
- package/lib/components/commonComponents/InputSearch/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/InputSearch/demo/demo2.js +28 -0
- package/lib/components/commonComponents/Message/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Message/demo/demo1.js +10 -0
- package/lib/components/commonComponents/Message/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Message/demo/demo2.js +41 -0
- package/lib/components/commonComponents/Message/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/Message/demo/demo3.js +34 -0
- package/lib/components/commonComponents/Message/index.d.ts +33 -0
- package/lib/components/commonComponents/Modal/demo/basic.d.ts +1 -0
- package/lib/components/commonComponents/Modal/demo/basic.js +49 -0
- package/lib/components/commonComponents/Modal/demo/styles.d.ts +1 -0
- package/lib/components/commonComponents/Modal/demo/styles.js +158 -0
- package/lib/components/commonComponents/Modal/demo/width.d.ts +1 -0
- package/lib/components/commonComponents/Modal/demo/width.js +68 -0
- package/lib/components/commonComponents/Modal/index.d.ts +28 -0
- package/lib/components/commonComponents/Modal/index.js +70 -0
- package/lib/components/commonComponents/Notification/demo/demo1.js +15 -0
- package/lib/components/commonComponents/Notification/demo/demo2.js +21 -0
- package/lib/components/commonComponents/Notification/demo/demo3.js +45 -0
- package/lib/components/commonComponents/Notification/demo/demo4.js +79 -0
- package/lib/components/commonComponents/Notification/index.d.ts +21 -0
- package/lib/components/commonComponents/Notification/index.js +108 -0
- package/lib/components/commonComponents/Pagination/demo/demo1.js +18 -0
- package/lib/components/commonComponents/Pagination/demo/demo2.js +21 -0
- package/lib/components/commonComponents/Pagination/index.d.ts +11 -0
- package/lib/components/commonComponents/Pagination/index.js +81 -0
- package/lib/components/commonComponents/Pagination/index.style.d.ts +49 -0
- package/lib/components/commonComponents/Pagination/index.style.js +42 -0
- package/lib/components/commonComponents/Popover/demo/demo1.js +26 -0
- package/lib/components/commonComponents/Progress/demo/demo1.js +17 -0
- package/lib/components/commonComponents/PromptsEditor/VarRender.d.ts +6 -0
- package/lib/components/commonComponents/PromptsEditor/VarRender.js +84 -0
- package/lib/components/commonComponents/PromptsEditor/VarSelectInput.d.ts +6 -0
- package/lib/components/commonComponents/PromptsEditor/VarSelectInput.js +60 -0
- package/lib/components/commonComponents/PromptsEditor/demo/basic.d.ts +1 -0
- package/lib/components/commonComponents/PromptsEditor/demo/basic.js +30 -0
- package/lib/components/commonComponents/PromptsEditor/index.d.ts +42 -0
- package/lib/components/commonComponents/PromptsEditor/index.js +134 -0
- package/lib/components/commonComponents/Radio/demo/demo1.js +25 -0
- package/lib/components/commonComponents/RadioButton/demo/demo1.js +28 -0
- package/lib/components/commonComponents/RadioButton/demo/demo2.js +58 -0
- package/lib/components/commonComponents/RadioButton/demo/demo3.js +31 -0
- package/lib/components/commonComponents/RadioButton/demo/demo4.js +30 -0
- package/lib/components/commonComponents/RadioButton/demo/demo5.js +30 -0
- package/lib/components/commonComponents/RadioButton/index.d.ts +23 -0
- package/lib/components/commonComponents/RadioButton/index.style.d.ts +72 -0
- package/lib/components/commonComponents/RadioButton/index.style.js +63 -0
- package/lib/components/commonComponents/Result/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo1.js +10 -0
- package/lib/components/commonComponents/Result/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo2.js +10 -0
- package/lib/components/commonComponents/Result/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo3.js +10 -0
- package/lib/components/commonComponents/Result/demo/demo4.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo4.js +10 -0
- package/lib/components/commonComponents/Result/demo/demo5.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo5.js +10 -0
- package/lib/components/commonComponents/Result/demo/demo6.d.ts +2 -0
- package/lib/components/commonComponents/Result/demo/demo6.js +10 -0
- package/lib/components/commonComponents/Result/index.d.ts +10 -0
- package/lib/components/commonComponents/Result/index.js +19 -0
- package/lib/components/commonComponents/Result/index.style.d.ts +3 -0
- package/lib/components/commonComponents/Result/index.style.js +16 -0
- package/lib/components/commonComponents/Select/demo/demo1.js +74 -0
- package/lib/components/commonComponents/Select/demo/demo2.js +78 -0
- package/lib/components/commonComponents/Skeleton/demo/demo1.js +19 -0
- package/lib/components/commonComponents/SlateEditor/demo/demo.d.ts +2 -0
- package/lib/components/commonComponents/SlateEditor/elements/Var.d.ts +2 -0
- package/lib/components/commonComponents/SlateEditor/elements/Var.js +21 -0
- package/lib/components/commonComponents/SlateEditor/elements/index.style.d.ts +14 -0
- package/lib/components/commonComponents/SlateEditor/elements/index.style.js +21 -0
- package/lib/components/commonComponents/Slider/demo/demo1.js +22 -0
- package/lib/components/commonComponents/Slider/demo/demo2.js +24 -0
- package/lib/components/commonComponents/Slider/demo/demo3.js +24 -0
- package/lib/components/commonComponents/Slider/slider.input.js +76 -0
- package/lib/components/commonComponents/SliderSelector/demo/demo.d.ts +2 -0
- package/lib/components/commonComponents/SliderSelector/index.js +71 -0
- package/lib/components/commonComponents/Spinner/demo/demo1.js +23 -0
- package/lib/components/commonComponents/Spinner/demo/demo2.js +77 -0
- package/lib/components/commonComponents/Spinner/demo/demo3.js +62 -0
- package/lib/components/commonComponents/Spinner/demo/demo4.js +93 -0
- package/lib/components/commonComponents/Spinner/index.d.ts +53 -0
- package/lib/components/commonComponents/Spinner/index.js +115 -0
- package/lib/components/commonComponents/Spinner/index.style.d.ts +79 -0
- package/lib/components/commonComponents/Spinner/index.style.js +61 -0
- package/lib/components/commonComponents/Statistic/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Statistic/demo/demo1.js +18 -0
- package/lib/components/commonComponents/Statistic/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Statistic/demo/demo2.js +28 -0
- package/lib/components/commonComponents/Statistic/index.d.ts +3 -0
- package/lib/components/commonComponents/Statistic/index.js +14 -0
- package/lib/components/commonComponents/Statistic/index.style.d.ts +15 -0
- package/lib/components/commonComponents/Statistic/index.style.js +26 -0
- package/lib/components/commonComponents/Steps/demo/demo1.js +34 -0
- package/lib/components/commonComponents/Steps/demo/demo2.js +37 -0
- package/lib/components/commonComponents/Steps/demo/demo3.js +35 -0
- package/lib/components/commonComponents/Steps/index.d.ts +3 -0
- package/lib/components/commonComponents/Steps/index.js +48 -0
- package/lib/components/commonComponents/Steps/index.style.d.ts +162 -0
- package/lib/components/commonComponents/Steps/index.style.js +78 -0
- package/lib/components/commonComponents/Switch/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Switch/demo/demo1.js +35 -0
- package/lib/components/commonComponents/Switch/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Switch/demo/demo2.js +35 -0
- package/lib/components/commonComponents/Switch/index.d.ts +11 -0
- package/lib/components/commonComponents/Switch/index.js +33 -0
- package/lib/components/commonComponents/Switch/index.style.d.ts +25 -0
- package/lib/components/commonComponents/Switch/index.style.js +33 -0
- package/lib/components/commonComponents/Table/demo/demo1.js +133 -0
- package/lib/components/commonComponents/Table/demo/demo2.js +147 -0
- package/lib/components/commonComponents/Table/demo/demo3.js +152 -0
- package/lib/components/commonComponents/Table/demo/demo4.js +141 -0
- package/lib/components/commonComponents/Table/index.d.ts +2 -0
- package/lib/components/commonComponents/Table/index.js +39 -0
- package/lib/components/commonComponents/Table/index.style.d.ts +52 -0
- package/lib/components/commonComponents/Table/index.style.js +32 -0
- package/lib/components/commonComponents/Tabs/demo/demo1.js +24 -0
- package/lib/components/commonComponents/Tabs/demo/demo2.d.ts +3 -0
- package/lib/components/commonComponents/Tabs/demo/demo2.js +50 -0
- package/lib/components/commonComponents/Tabs/demo/demo3.d.ts +3 -0
- package/lib/components/commonComponents/Tabs/demo/demo3.js +49 -0
- package/lib/components/commonComponents/Tabs/index.d.ts +15 -0
- package/lib/components/commonComponents/Tabs/index.js +70 -0
- package/lib/components/commonComponents/Tabs/index.style.d.ts +55 -0
- package/lib/components/commonComponents/Tabs/index.style.js +44 -0
- package/lib/components/commonComponents/Tag/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Tag/demo/demo1.js +26 -0
- package/lib/components/commonComponents/Tag/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Tag/demo/demo2.js +13 -0
- package/lib/components/commonComponents/Tag/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/Tag/demo/demo3.js +32 -0
- package/lib/components/commonComponents/Tag/index.d.ts +18 -0
- package/lib/components/commonComponents/Tag/index.js +37 -0
- package/lib/components/commonComponents/Tag/index.style.d.ts +56 -0
- package/lib/components/commonComponents/Tag/index.style.js +58 -0
- package/lib/components/commonComponents/Textarea/demo/demo1.d.ts +3 -0
- package/lib/components/commonComponents/TimePicker/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/TimePicker/demo/demo1.js +27 -0
- package/lib/components/commonComponents/TimePicker/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/TimePicker/demo/demo2.js +26 -0
- package/lib/components/commonComponents/TimePicker/index.d.ts +7 -0
- package/lib/components/commonComponents/TimePicker/index.js +70 -0
- package/lib/components/commonComponents/TimePicker/index.style.d.ts +71 -0
- package/lib/components/commonComponents/TimePicker/index.style.js +50 -0
- package/lib/components/commonComponents/Tooltip/demo/demo1.d.ts +3 -0
- package/lib/components/commonComponents/Tooltip/demo/demo1.js +12 -0
- package/lib/components/commonComponents/Tooltip/demo/demo2.d.ts +3 -0
- package/lib/components/commonComponents/Tooltip/demo/demo2.js +28 -0
- package/lib/components/commonComponents/Tooltip/index.d.ts +12 -0
- package/lib/components/commonComponents/Tooltip/index.js +38 -0
- package/lib/components/commonComponents/Upload/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Upload/demo/demo1.js +23 -0
- package/lib/components/commonComponents/Upload/demo/demo2.d.ts +2 -0
- package/lib/components/commonComponents/Upload/demo/demo2.js +50 -0
- package/lib/components/commonComponents/Upload/demo/demo3.d.ts +2 -0
- package/lib/components/commonComponents/Upload/demo/demo3.js +108 -0
- package/lib/components/commonComponents/Upload/index.d.ts +8 -0
- package/lib/components/commonComponents/Upload/index.js +38 -0
- package/lib/components/commonComponents/Upload/index.style.d.ts +125 -0
- package/lib/components/commonComponents/Upload/index.style.js +90 -0
- package/lib/components/commonComponents/spark.style.d.ts +45 -0
- package/lib/hooks/useGlobalStyle/demo/demo.d.ts +2 -0
- package/lib/i18n/strings/en-US.json +14 -0
- package/lib/i18n/strings/zh-CN.json +14 -0
- package/lib/index.d.ts +81 -0
- package/lib/index.js +88 -0
- package/lib/libs/env/index.d.ts +6 -0
- package/llms/all.llms.txt +4235 -0
- package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +74 -0
- package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +71 -0
- package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +61 -0
- package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +89 -0
- package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +99 -0
- package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +79 -0
- package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +88 -0
- package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +34 -0
- package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +76 -0
- package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +75 -0
- package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +227 -0
- package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +60 -0
- package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +87 -0
- package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +87 -0
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +100 -0
- package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +70 -0
- package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +383 -0
- package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +68 -0
- package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +118 -0
- package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +168 -0
- package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +66 -0
- package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +114 -0
- package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +154 -0
- package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +118 -0
- package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +62 -0
- package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +56 -0
- package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +64 -0
- package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +75 -0
- package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +94 -0
- package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +63 -0
- package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +120 -0
- package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +71 -0
- package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +83 -0
- package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +38 -0
- package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +77 -0
- package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +82 -0
- package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +58 -0
- package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +228 -0
- package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +95 -0
- package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +57 -0
- package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +104 -0
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +63 -0
- package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +105 -0
- package/llms/index.llms.txt +45 -0
- package/package.json +26 -18
- package/scripts/index.js +110 -0
- package/dist/antd/styles/button.style.d.ts +0 -47
- package/dist/antd/styles/button.style.js +0 -32
- package/dist/antd/styles/index.style.js +0 -51
- package/dist/antd/styles/radio.style.d.ts +0 -7
- package/dist/antd/styles/radio.style.js +0 -10
- package/dist/antd/styles/select.style.d.ts +0 -21
- package/dist/antd/styles/select.style.js +0 -16
- package/dist/antd/themes/bailianDarkTheme.json +0 -180
- package/dist/antd/themes/bailianTheme.json +0 -177
- package/dist/antd/themes/blackTheme.json +0 -12
- package/dist/antd/themes/carbonDarkTheme.json +0 -179
- package/dist/antd/themes/carbonTheme.json +0 -177
- package/dist/antd/themes/xConsoleTheme.json +0 -26
- package/dist/components/CComponents/Alert/demo/index.js +0 -99
- package/dist/components/commonComponents/Alert/demo/index.js +0 -87
- package/dist/components/commonComponents/Avatar/demo/index.js +0 -25
- package/dist/components/commonComponents/Avatar/index.js +0 -39
- package/dist/components/commonComponents/Breadcrumb/demo/demo1.js +0 -23
- package/dist/components/commonComponents/Button/demo/demo1.js +0 -103
- package/dist/components/commonComponents/Button/demo/demo2.js +0 -17
- package/dist/components/commonComponents/Button/index.d.ts +0 -21
- package/dist/components/commonComponents/Button/index.js +0 -91
- package/dist/components/commonComponents/Card/demo/demo1.js +0 -31
- package/dist/components/commonComponents/Card/demo/demo2.js +0 -46
- package/dist/components/commonComponents/Card/index.d.ts +0 -11
- package/dist/components/commonComponents/Card/index.js +0 -40
- package/dist/components/commonComponents/Card/index.style.d.ts +0 -58
- package/dist/components/commonComponents/Card/index.style.js +0 -44
- package/dist/components/commonComponents/Checkbox/demo/demo1.js +0 -21
- package/dist/components/commonComponents/Checkbox/demo/demo2.js +0 -25
- package/dist/components/commonComponents/CodeBlock/demo/demo1.js +0 -34
- package/dist/components/commonComponents/CodeBlock/demo/demo2.js +0 -14
- package/dist/components/commonComponents/CodeBlock/index.d.ts +0 -11
- package/dist/components/commonComponents/CodeBlock/index.js +0 -88
- package/dist/components/commonComponents/CodeBlock/index.style.d.ts +0 -46
- package/dist/components/commonComponents/CodeBlock/index.style.js +0 -59
- package/dist/components/commonComponents/CollapsePanel/demo/demo1.js +0 -27
- package/dist/components/commonComponents/CollapsePanel/index.d.ts +0 -38
- package/dist/components/commonComponents/CollapsePanel/index.js +0 -116
- package/dist/components/commonComponents/CollapsePanel/index.style.d.ts +0 -329
- package/dist/components/commonComponents/CollapsePanel/index.style.js +0 -96
- package/dist/components/commonComponents/ConfigProvider/index.js +0 -135
- package/dist/components/commonComponents/Drawer/demo/demo1.js +0 -106
- package/dist/components/commonComponents/Drawer/demo/demo2.js +0 -66
- package/dist/components/commonComponents/Drawer/index.d.ts +0 -3
- package/dist/components/commonComponents/Drawer/index.js +0 -36
- package/dist/components/commonComponents/Drawer/index.style.d.ts +0 -47
- package/dist/components/commonComponents/Drawer/index.style.js +0 -42
- package/dist/components/commonComponents/Dropdown/demo/demo1.js +0 -33
- package/dist/components/commonComponents/Dropdown/demo/demo2.js +0 -38
- package/dist/components/commonComponents/Dropdown/index.js +0 -17
- package/dist/components/commonComponents/Dropdown/index.style.d.ts +0 -7
- package/dist/components/commonComponents/Dropdown/index.style.js +0 -21
- package/dist/components/commonComponents/Ellipsis/demo/index.js +0 -11
- package/dist/components/commonComponents/EllipsisTip/demo/demo2.js +0 -35
- package/dist/components/commonComponents/Empty/demo/index.css +0 -11
- package/dist/components/commonComponents/Empty/demo/index.d.ts +0 -3
- package/dist/components/commonComponents/Empty/demo/index.js +0 -186
- package/dist/components/commonComponents/Empty/index.d.ts +0 -57
- package/dist/components/commonComponents/Empty/index.js +0 -118
- package/dist/components/commonComponents/Empty/index.style.d.ts +0 -65
- package/dist/components/commonComponents/Empty/index.style.js +0 -42
- package/dist/components/commonComponents/FileIcon/demo/index.js +0 -42
- package/dist/components/commonComponents/FileIcon/index.d.ts +0 -19
- package/dist/components/commonComponents/FileIcon/index.js +0 -89
- package/dist/components/commonComponents/FloatButton/demo/demo1.js +0 -11
- package/dist/components/commonComponents/FloatButton/demo/demo2.js +0 -11
- package/dist/components/commonComponents/Form/demo/api.js +0 -22
- package/dist/components/commonComponents/Form/demo/demo1.js +0 -107
- package/dist/components/commonComponents/Form/demo/demo2.js +0 -52
- package/dist/components/commonComponents/Form/demo/demo3.js +0 -28
- package/dist/components/commonComponents/Form/demo/demo4.js +0 -29
- package/dist/components/commonComponents/Form/demo/index.module.less +0 -0
- package/dist/components/commonComponents/Form/index.style.d.ts +0 -51
- package/dist/components/commonComponents/Form/index.style.js +0 -37
- package/dist/components/commonComponents/HelpIcon/index.js +0 -40
- package/dist/components/commonComponents/IconButton/demo/demo1.js +0 -57
- package/dist/components/commonComponents/IconButton/demo/demo2.js +0 -61
- package/dist/components/commonComponents/IconButton/demo/demo3.js +0 -53
- package/dist/components/commonComponents/IconButton/demo/demo4.js +0 -55
- package/dist/components/commonComponents/IconButton/index.js +0 -47
- package/dist/components/commonComponents/IconButton/index.style.d.ts +0 -16
- package/dist/components/commonComponents/IconButton/index.style.js +0 -25
- package/dist/components/commonComponents/IconFont/index.js +0 -57
- package/dist/components/commonComponents/Image/demo/demo1.js +0 -8
- package/dist/components/commonComponents/Image/index.js +0 -37
- package/dist/components/commonComponents/Input/demo/index.js +0 -117
- package/dist/components/commonComponents/Input/index.d.ts +0 -13
- package/dist/components/commonComponents/Input/index.style.d.ts +0 -43
- package/dist/components/commonComponents/Input/index.style.js +0 -36
- package/dist/components/commonComponents/InputNumber/demo/index.js +0 -38
- package/dist/components/commonComponents/InputSearch/demo/index.js +0 -43
- package/dist/components/commonComponents/Message/demo/demo1.js +0 -53
- package/dist/components/commonComponents/Message/demo/demo2.js +0 -66
- package/dist/components/commonComponents/Message/index.d.ts +0 -29
- package/dist/components/commonComponents/Modal/demo/demo1.js +0 -137
- package/dist/components/commonComponents/Modal/demo/demo2.js +0 -77
- package/dist/components/commonComponents/Modal/demo/demo3.js +0 -57
- package/dist/components/commonComponents/Modal/demo/demo4.js +0 -65
- package/dist/components/commonComponents/Modal/index.css +0 -1
- package/dist/components/commonComponents/Modal/index.d.ts +0 -15
- package/dist/components/commonComponents/Modal/index.js +0 -67
- package/dist/components/commonComponents/Notification/demo/demo1.js +0 -76
- package/dist/components/commonComponents/Notification/demo/demo2.js +0 -50
- package/dist/components/commonComponents/Notification/demo/demo3.js +0 -46
- package/dist/components/commonComponents/Notification/index.d.ts +0 -20
- package/dist/components/commonComponents/Notification/index.js +0 -106
- package/dist/components/commonComponents/Pagination/demo/demo1.js +0 -16
- package/dist/components/commonComponents/Pagination/demo/demo2.js +0 -17
- package/dist/components/commonComponents/Pagination/index.d.ts +0 -12
- package/dist/components/commonComponents/Pagination/index.js +0 -59
- package/dist/components/commonComponents/Pagination/index.style.d.ts +0 -12
- package/dist/components/commonComponents/Pagination/index.style.js +0 -24
- package/dist/components/commonComponents/Popover/demo/demo1.js +0 -34
- package/dist/components/commonComponents/Popover/demo/demo2.js +0 -183
- package/dist/components/commonComponents/Progress/demo/demo1.js +0 -15
- package/dist/components/commonComponents/Radio/demo.js +0 -20
- package/dist/components/commonComponents/Radio/demo2.js +0 -115
- package/dist/components/commonComponents/RadioButton/demo/demo.js +0 -166
- package/dist/components/commonComponents/RadioButton/index.d.ts +0 -21
- package/dist/components/commonComponents/RadioButton/index.style.d.ts +0 -62
- package/dist/components/commonComponents/RadioButton/index.style.js +0 -49
- package/dist/components/commonComponents/Select/demo/demo.js +0 -29
- package/dist/components/commonComponents/Select/demo/demo2.js +0 -30
- package/dist/components/commonComponents/Skeleton/demo/demo1.js +0 -9
- package/dist/components/commonComponents/SlateEditor/elements/Var.d.ts +0 -3
- package/dist/components/commonComponents/SlateEditor/elements/Var.js +0 -20
- package/dist/components/commonComponents/SlateEditor/elements/index.less +0 -10
- package/dist/components/commonComponents/Slider/demo/demo1.js +0 -35
- package/dist/components/commonComponents/Slider/demo/demo2.js +0 -48
- package/dist/components/commonComponents/Slider/demo/demo3.js +0 -44
- package/dist/components/commonComponents/Slider/slider.input.js +0 -73
- package/dist/components/commonComponents/SliderSelector/index.js +0 -67
- package/dist/components/commonComponents/Spin/demo1.js +0 -30
- package/dist/components/commonComponents/Spinner/demo/demo1.js +0 -46
- package/dist/components/commonComponents/Spinner/demo/demo2.js +0 -69
- package/dist/components/commonComponents/Spinner/demo/demo3.js +0 -59
- package/dist/components/commonComponents/Spinner/index.d.ts +0 -16
- package/dist/components/commonComponents/Spinner/index.js +0 -77
- package/dist/components/commonComponents/Spinner/index.style.d.ts +0 -82
- package/dist/components/commonComponents/Spinner/index.style.js +0 -60
- package/dist/components/commonComponents/Switch/demo/demo1.js +0 -26
- package/dist/components/commonComponents/Switch/demo/demo2.js +0 -27
- package/dist/components/commonComponents/Switch/index.d.ts +0 -11
- package/dist/components/commonComponents/Switch/index.js +0 -29
- package/dist/components/commonComponents/Switch/index.style.d.ts +0 -8
- package/dist/components/commonComponents/Switch/index.style.js +0 -23
- package/dist/components/commonComponents/Table/demo/demo1.js +0 -87
- package/dist/components/commonComponents/Table/demo/demo2.js +0 -98
- package/dist/components/commonComponents/Table/demo/demo3.js +0 -378
- package/dist/components/commonComponents/Tabs/demo/demo1.js +0 -45
- package/dist/components/commonComponents/Tabs/demo/demo2.js +0 -43
- package/dist/components/commonComponents/Tabs/demo/demo3.js +0 -32
- package/dist/components/commonComponents/Tabs/index.d.ts +0 -14
- package/dist/components/commonComponents/Tabs/index.js +0 -67
- package/dist/components/commonComponents/Tabs/index.style.d.ts +0 -23
- package/dist/components/commonComponents/Tabs/index.style.js +0 -30
- package/dist/components/commonComponents/Tag/demo1.js +0 -33
- package/dist/components/commonComponents/Tag/demo2.js +0 -40
- package/dist/components/commonComponents/Tag/index.d.ts +0 -7
- package/dist/components/commonComponents/Tag/index.js +0 -36
- package/dist/components/commonComponents/Tag/index.style.d.ts +0 -37
- package/dist/components/commonComponents/Tag/index.style.js +0 -52
- package/dist/components/commonComponents/Tooltip/demo/index.js +0 -254
- package/dist/components/commonComponents/Tooltip/index.d.ts +0 -11
- package/dist/components/commonComponents/Tooltip/index.js +0 -35
- package/dist/components/commonComponents/Upload/demo/demo1.js +0 -43
- package/dist/components/commonComponents/Upload/demo/demo2.js +0 -15
- package/dist/components/commonComponents/Upload/demo/demo3.d.ts +0 -3
- package/dist/components/commonComponents/Upload/demo/demo3.js +0 -145
- package/dist/components/commonComponents/spark.style.d.ts +0 -45
- package/dist/i18n/strings/en-US.json +0 -13
- package/dist/i18n/strings/zh-CN.json +0 -13
- package/dist/index.d.ts +0 -68
- package/dist/index.js +0 -70
- package/dist/libs/env/index.d.ts +0 -6
- package/scripts/init-migrate-config.js +0 -68
- package/scripts/migrate-from-bl.js +0 -78
- /package/{dist → lib}/antd/styles/breadcrumb.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/breadcrumb.style.js +0 -0
- /package/{dist → lib}/antd/styles/dropdown.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/dropdown.style.js +0 -0
- /package/{dist → lib}/antd/styles/index.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/message.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/message.style.js +0 -0
- /package/{dist → lib}/antd/styles/notification.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/notification.style.js +0 -0
- /package/{dist → lib}/antd/styles/popover.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/popover.style.js +0 -0
- /package/{dist → lib}/antd/styles/segment.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/segment.style.js +0 -0
- /package/{dist → lib}/antd/styles/slider.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/slider.style.js +0 -0
- /package/{dist → lib}/antd/styles/table.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/table.style.js +0 -0
- /package/{dist → lib}/antd/styles/tooltip.style.d.ts +0 -0
- /package/{dist → lib}/antd/styles/tooltip.style.js +0 -0
- /package/{dist/components/commonComponents/Button → lib/components/commonComponents/Alert}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Button → lib/components/commonComponents/Alert}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Form → lib/components/commonComponents/Alert}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/Form → lib/components/commonComponents/Alert}/demo/demo4.d.ts +0 -0
- /package/{dist/components/CComponents/Alert/demo/index.d.ts → lib/components/commonComponents/Alert/demo/demo5.d.ts} +0 -0
- /package/{dist/components/commonComponents/Alert/demo/index.d.ts → lib/components/commonComponents/Alert/demo/demo6.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/demo/demo1.js +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/demo/demo2.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/demo/demo2.js +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/AlertDialog/index.style.js +0 -0
- /package/{dist/components/commonComponents/Drawer → lib/components/commonComponents/Avatar}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Drawer → lib/components/commonComponents/Avatar}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/IconFont → lib/components/commonComponents/Avatar}/demo/demo3.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Avatar/index.d.ts +0 -0
- /package/{dist/components/commonComponents/Radio → lib/components/commonComponents/Badge/demo}/demo.d.ts +0 -0
- /package/{dist/components/commonComponents/Badge/demo/index.js → lib/components/commonComponents/Badge/demo/demo.js} +0 -0
- /package/{dist → lib}/components/commonComponents/Breadcrumb/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Card → lib/components/commonComponents/Breadcrumb}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Form → lib/components/commonComponents/Button}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Form → lib/components/commonComponents/Button}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Modal → lib/components/commonComponents/Button}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/IconFont → lib/components/commonComponents/Button}/demo/demo4.d.ts +0 -0
- /package/{dist/components/commonComponents/Ellipsis/demo/index.d.ts → lib/components/commonComponents/Button/demo/demo5.d.ts} +0 -0
- /package/{dist/components/commonComponents/Form/demo/api.d.ts → lib/components/commonComponents/Button/demo/demo6.d.ts} +0 -0
- /package/{dist/components/commonComponents/IconFont → lib/components/commonComponents/Card}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/IconFont → lib/components/commonComponents/Card}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Card → lib/components/commonComponents/Checkbox}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Checkbox/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/IconButton → lib/components/commonComponents/Checkbox}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/Checkbox → lib/components/commonComponents/CodeBlock}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/CodeBlock/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Notification → lib/components/commonComponents/CodeBlock}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/Message → lib/components/commonComponents/Collapse}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Message → lib/components/commonComponents/Collapse}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/CodeBlock → lib/components/commonComponents/CollapsePanel}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/ConfigProvider/index.d.ts +0 -0
- /package/{dist/components/commonComponents/Modal → lib/components/commonComponents/DatePicker}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Tag → lib/components/commonComponents/DatePicker/demo}/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/HelpIcon/demo/index.d.ts → lib/components/commonComponents/DatePicker/demo/demo3.d.ts} +0 -0
- /package/{dist/components/commonComponents/Input/demo/index.d.ts → lib/components/commonComponents/DatePicker/demo/demo4.d.ts} +0 -0
- /package/{dist/components/commonComponents/Tag → lib/components/commonComponents/Descriptions/demo}/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Upload → lib/components/commonComponents/Descriptions}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/InputSearch/demo/index.d.ts → lib/components/commonComponents/Drawer/demo/demo1.d.ts} +0 -0
- /package/{dist/components/commonComponents/SlateEditor/demo/index.d.ts → lib/components/commonComponents/Drawer/demo/demo3.d.ts} +0 -0
- /package/{dist/components/commonComponents/SliderSelector/demo/index.d.ts → lib/components/commonComponents/Drawer/demo/demo4.d.ts} +0 -0
- /package/{dist/hooks/useGlobalStyle/demo/demo.d.ts → lib/components/commonComponents/Drawer/demo/demo5.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/Dropdown/index.d.ts +0 -0
- /package/{dist/components/commonComponents/CollapsePanel → lib/components/commonComponents/EllipsisTip}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/EllipsisTip/demo/demo1.js +0 -0
- /package/{dist/components/commonComponents/Avatar/demo/index.d.ts → lib/components/commonComponents/EllipsisTip/demo/demo2-2.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/EllipsisTip/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/EllipsisTip/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/EllipsisTip/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/EllipsisTip/index.style.js +0 -0
- /package/{dist/components/commonComponents/FileIcon/demo/index.d.ts → lib/components/commonComponents/FileIcon/demo/demo.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/common.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/epub.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/excel.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/html.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/image.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/md.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/mobi.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/pdf.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/ppt.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/txt.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/web.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/icons/word.svg +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/FileIcon/index.style.js +0 -0
- /package/{dist/components/commonComponents/Dropdown → lib/components/commonComponents/FloatButton}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Dropdown → lib/components/commonComponents/FloatButton}/demo/demo2.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Form/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Form/index.js +0 -0
- /package/{dist/components/commonComponents/HelpIcon/demo/index.js → lib/components/commonComponents/HelpIcon/demo/demo.js} +0 -0
- /package/{dist → lib}/components/commonComponents/HelpIcon/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/HelpIcon/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/HelpIcon/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/IconButton/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/demo/demo1.js +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/demo/demo2.js +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/demo/demo3.js +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/demo/demo4.js +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/IconFont/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/Image/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Image/index.d.ts +0 -0
- /package/{dist/components/commonComponents/EllipsisTip → lib/components/commonComponents/Input}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/EllipsisTip → lib/components/commonComponents/Input}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Slider → lib/components/commonComponents/Input}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/IconButton → lib/components/commonComponents/Input}/demo/demo4.d.ts +0 -0
- /package/{dist/components/commonComponents/Badge/demo/index.d.ts → lib/components/commonComponents/Input/demo/demo5.d.ts} +0 -0
- /package/{dist/components/commonComponents/FloatButton/demo/demo1.d.ts → lib/components/commonComponents/Input/demo/demo6.d.ts} +0 -0
- /package/{dist/components/commonComponents/FloatButton/demo/demo2.d.ts → lib/components/commonComponents/Input/demo/demo7.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/Input/index.js +0 -0
- /package/{dist/components/commonComponents/RadioButton → lib/components/commonComponents/InputNumber}/demo/demo.d.ts +0 -0
- /package/{dist/components/commonComponents/IconButton → lib/components/commonComponents/InputNumber}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Message/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/Modal/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Modal/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/Notification/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/IconButton → lib/components/commonComponents/Notification}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Spinner → lib/components/commonComponents/Notification}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/Modal → lib/components/commonComponents/Notification}/demo/demo4.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Pagination/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Modal → lib/components/commonComponents/Pagination}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/InputNumber/demo/index.d.ts → lib/components/commonComponents/Popconfirm/demo/demo.d.ts} +0 -0
- /package/{dist/components/commonComponents/Popconfirm/demo/index.js → lib/components/commonComponents/Popconfirm/demo/demo.js} +0 -0
- /package/{dist → lib}/components/commonComponents/Popconfirm/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Popconfirm/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/Popover/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Popover/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Popover/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/Progress/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Skeleton → lib/components/commonComponents/Radio}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Slider → lib/components/commonComponents/RadioButton}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Notification → lib/components/commonComponents/RadioButton}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Table → lib/components/commonComponents/RadioButton}/demo/demo3.d.ts +0 -0
- /package/{dist/components/commonComponents/Pagination/demo/demo2.d.ts → lib/components/commonComponents/RadioButton/demo/demo4.d.ts} +0 -0
- /package/{dist/components/commonComponents/Popconfirm/demo/index.d.ts → lib/components/commonComponents/RadioButton/demo/demo5.d.ts} +0 -0
- /package/{dist → lib}/components/commonComponents/RadioButton/index.js +0 -0
- /package/{dist/components/commonComponents/Spin → lib/components/commonComponents/Select/demo}/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Select/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Spinner → lib/components/commonComponents/Skeleton}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/SlateEditor/demo/index.js → lib/components/commonComponents/SlateEditor/demo/demo.js} +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/elements/S.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/elements/S.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/elements/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/elements/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/types.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/types.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/constant.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/constant.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/editor.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/editor.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/functions.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/functions.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/withEditor.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SlateEditor/utils/withEditor.js +0 -0
- /package/{dist/components/commonComponents/Switch → lib/components/commonComponents/Slider}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Popover → lib/components/commonComponents/Slider}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Tabs → lib/components/commonComponents/Slider}/demo/demo3.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Slider/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Slider/index.js +0 -0
- /package/{dist → lib}/components/commonComponents/Slider/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Slider/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/Slider/slider.input.d.ts +0 -0
- /package/{dist/components/commonComponents/SliderSelector/demo/index.js → lib/components/commonComponents/SliderSelector/demo/demo.js} +0 -0
- /package/{dist → lib}/components/commonComponents/SliderSelector/index.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SliderSelector/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/SliderSelector/index.style.js +0 -0
- /package/{dist/components/commonComponents/Select/demo/demo.d.ts → lib/components/commonComponents/Spinner/demo/demo1.d.ts} +0 -0
- /package/{dist/components/commonComponents/Radio → lib/components/commonComponents/Spinner/demo}/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Slider/demo/demo2.d.ts → lib/components/commonComponents/Spinner/demo/demo3.d.ts} +0 -0
- /package/{dist/components/commonComponents/Spinner/demo/demo2.d.ts → lib/components/commonComponents/Spinner/demo/demo4.d.ts} +0 -0
- /package/{dist/components/commonComponents/Table → lib/components/commonComponents/Steps}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Switch → lib/components/commonComponents/Steps}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Table/demo/demo2.d.ts → lib/components/commonComponents/Steps/demo/demo3.d.ts} +0 -0
- /package/{dist/components/commonComponents/Tabs → lib/components/commonComponents/Table}/demo/demo1.d.ts +0 -0
- /package/{dist/components/commonComponents/Tabs → lib/components/commonComponents/Table}/demo/demo2.d.ts +0 -0
- /package/{dist/components/commonComponents/Textarea/demo/demo1.d.ts → lib/components/commonComponents/Table/demo/demo3.d.ts} +0 -0
- /package/{dist/components/commonComponents/Tooltip/demo/index.d.ts → lib/components/commonComponents/Table/demo/demo4.d.ts} +0 -0
- /package/{dist/components/commonComponents/Upload → lib/components/commonComponents/Tabs}/demo/demo1.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Textarea/demo/demo1.js +0 -0
- /package/{dist → lib}/components/commonComponents/Tooltip/index.style.d.ts +0 -0
- /package/{dist → lib}/components/commonComponents/Tooltip/index.style.js +0 -0
- /package/{dist → lib}/components/commonComponents/spark.style.js +0 -0
- /package/{dist → lib}/config.d.ts +0 -0
- /package/{dist → lib}/config.js +0 -0
- /package/{dist → lib}/hooks/useGlobalStyle/demo/demo.js +0 -0
- /package/{dist → lib}/hooks/useGlobalStyle/index.d.ts +0 -0
- /package/{dist → lib}/hooks/useGlobalStyle/index.js +0 -0
- /package/{dist → lib}/i18n/index.d.ts +0 -0
- /package/{dist → lib}/i18n/index.js +0 -0
- /package/{dist → lib}/i18n/strings/index.js +0 -0
- /package/{dist → lib}/libs/cookie.d.ts +0 -0
- /package/{dist → lib}/libs/cookie.js +0 -0
- /package/{dist → lib}/libs/createStyle/index.d.ts +0 -0
- /package/{dist → lib}/libs/createStyle/index.js +0 -0
- /package/{dist → lib}/libs/data/index.d.ts +0 -0
- /package/{dist → lib}/libs/data/index.js +0 -0
- /package/{dist → lib}/libs/delay/index.d.ts +0 -0
- /package/{dist → lib}/libs/delay/index.js +0 -0
- /package/{dist → lib}/libs/dom.d.ts +0 -0
- /package/{dist → lib}/libs/dom.js +0 -0
- /package/{dist → lib}/libs/env/index.js +0 -0
- /package/{dist → lib}/libs/generateCssVars/index.d.ts +0 -0
- /package/{dist → lib}/libs/generateCssVars/index.js +0 -0
- /package/{dist → lib}/libs/loadStyle.d.ts +0 -0
- /package/{dist → lib}/libs/loadStyle.js +0 -0
- /package/{dist → lib}/libs/region/constant.d.ts +0 -0
- /package/{dist → lib}/libs/region/constant.js +0 -0
- /package/{dist → lib}/libs/region/index.d.ts +0 -0
- /package/{dist → lib}/libs/region/index.js +0 -0
- /package/{dist → lib}/libs/requestPop/index.d.ts +0 -0
- /package/{dist → lib}/libs/requestPop/index.js +0 -0
- /package/{dist → lib}/libs/requestPopSse/index.d.ts +0 -0
- /package/{dist → lib}/libs/requestPopSse/index.js +0 -0
- /package/{dist → lib}/libs/requestSse/index.d.ts +0 -0
- /package/{dist → lib}/libs/requestSse/index.js +0 -0
- /package/{dist → lib}/libs/requestSse/parse.d.ts +0 -0
- /package/{dist → lib}/libs/requestSse/parse.js +0 -0
- /package/{dist → lib}/libs/staticRenderer/index.d.ts +0 -0
- /package/{dist → lib}/libs/staticRenderer/index.js +0 -0
- /package/{dist → lib}/libs/string/index.d.ts +0 -0
- /package/{dist → lib}/libs/string/index.js +0 -0
- /package/{dist → lib}/libs/tokens.json +0 -0
- /package/{dist → lib}/libs/utils/index.d.ts +0 -0
- /package/{dist → lib}/libs/utils/index.js +0 -0
- /package/{dist → lib}/libs/waitFor/index.d.ts +0 -0
- /package/{dist → lib}/libs/waitFor/index.js +0 -0
- /package/{dist → lib}/typings.d.ts +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
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 React from 'react';
|
|
9
|
+
import common from "./icons/common.svg";
|
|
10
|
+
import epub from "./icons/epub.svg";
|
|
11
|
+
import excel from "./icons/excel.svg";
|
|
12
|
+
import html from "./icons/html.svg";
|
|
13
|
+
import image from "./icons/image.svg";
|
|
14
|
+
import md from "./icons/md.svg";
|
|
15
|
+
import mobi from "./icons/mobi.svg";
|
|
16
|
+
import pdf from "./icons/pdf.svg";
|
|
17
|
+
import ppt from "./icons/ppt.svg";
|
|
18
|
+
import txt from "./icons/txt.svg";
|
|
19
|
+
import web from "./icons/web.svg";
|
|
20
|
+
import word from "./icons/word.svg";
|
|
21
|
+
import useIndexStyle from "./index.style";
|
|
22
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
var maps = {
|
|
25
|
+
common: common,
|
|
26
|
+
epub: epub,
|
|
27
|
+
excel: excel,
|
|
28
|
+
html: html,
|
|
29
|
+
image: image,
|
|
30
|
+
md: md,
|
|
31
|
+
mobi: mobi,
|
|
32
|
+
pdf: pdf,
|
|
33
|
+
ppt: ppt,
|
|
34
|
+
txt: txt,
|
|
35
|
+
web: web,
|
|
36
|
+
word: word
|
|
37
|
+
};
|
|
38
|
+
function getSize(size) {
|
|
39
|
+
var retSize = size;
|
|
40
|
+
var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'];
|
|
41
|
+
var unitIndex = 0;
|
|
42
|
+
while (retSize >= 1024 && unitIndex < units.length - 1) {
|
|
43
|
+
retSize /= 1024;
|
|
44
|
+
unitIndex++;
|
|
45
|
+
}
|
|
46
|
+
return "".concat(retSize.toFixed(0), " ").concat(units[unitIndex]);
|
|
47
|
+
}
|
|
48
|
+
export function FileCard(props) {
|
|
49
|
+
var commonConfig = getCommonConfig();
|
|
50
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
51
|
+
useIndexStyle();
|
|
52
|
+
var _props$width = props.width,
|
|
53
|
+
width = _props$width === void 0 ? 140 : _props$width,
|
|
54
|
+
_props$iconSize = props.iconSize,
|
|
55
|
+
iconSize = _props$iconSize === void 0 ? 32 : _props$iconSize;
|
|
56
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
57
|
+
className: "".concat(sparkPrefix, "-file-card"),
|
|
58
|
+
style: {
|
|
59
|
+
width: width
|
|
60
|
+
},
|
|
61
|
+
children: [/*#__PURE__*/_jsx(FileIcon, {
|
|
62
|
+
type: props.type,
|
|
63
|
+
size: iconSize,
|
|
64
|
+
src: props.src
|
|
65
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
66
|
+
className: "".concat(sparkPrefix, "-file-card-info"),
|
|
67
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
68
|
+
className: "".concat(sparkPrefix, "-file-card-name"),
|
|
69
|
+
children: props.name
|
|
70
|
+
}), (props.size || props.desc) && /*#__PURE__*/_jsx("div", {
|
|
71
|
+
className: "".concat(sparkPrefix, "-file-card-size"),
|
|
72
|
+
children: props.desc || getSize(props.size)
|
|
73
|
+
})]
|
|
74
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
75
|
+
style: {
|
|
76
|
+
flex: 1
|
|
77
|
+
}
|
|
78
|
+
}), props.children]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export default function FileIcon(props) {
|
|
82
|
+
var _props$size = props.size,
|
|
83
|
+
size = _props$size === void 0 ? 40 : _props$size,
|
|
84
|
+
_props$type = props.type,
|
|
85
|
+
type = _props$type === void 0 ? 'common' : _props$type,
|
|
86
|
+
src = props.src,
|
|
87
|
+
_props$style = props.style,
|
|
88
|
+
style = _props$style === void 0 ? {} : _props$style;
|
|
89
|
+
return /*#__PURE__*/_jsx("img", {
|
|
90
|
+
style: _objectSpread({
|
|
91
|
+
display: 'block',
|
|
92
|
+
width: size,
|
|
93
|
+
height: size
|
|
94
|
+
}, style),
|
|
95
|
+
src: src || maps[type] || 'common'
|
|
96
|
+
});
|
|
97
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SparkProblemLine } from '@agentscope-ai/icons';
|
|
2
|
+
import { FloatButton } 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(FloatButton, {
|
|
7
|
+
icon: /*#__PURE__*/_jsx(SparkProblemLine, {}),
|
|
8
|
+
style: {
|
|
9
|
+
insetInlineEnd: '50%',
|
|
10
|
+
transform: 'translateX(50%)'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export default App;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SparkProblemLine } from '@agentscope-ai/icons';
|
|
2
|
+
import { FloatButton } 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(FloatButton, {
|
|
7
|
+
icon: /*#__PURE__*/_jsx(SparkProblemLine, {}),
|
|
8
|
+
type: "primary",
|
|
9
|
+
style: {
|
|
10
|
+
insetInlineEnd: '50%',
|
|
11
|
+
transform: 'translateX(50%)'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export default App;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { Form, Input, Radio, Switch } from "../../../..";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export default (function () {
|
|
11
|
+
var _Form$useForm = Form.useForm(),
|
|
12
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
13
|
+
form = _Form$useForm2[0];
|
|
14
|
+
var open = Form.useWatch('switch', form);
|
|
15
|
+
return /*#__PURE__*/_jsxs(Form, {
|
|
16
|
+
layout: "vertical",
|
|
17
|
+
form: form,
|
|
18
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
19
|
+
label: "Your title",
|
|
20
|
+
name: "input",
|
|
21
|
+
tooltip: "One World, one dream.",
|
|
22
|
+
children: /*#__PURE__*/_jsx(Input, {
|
|
23
|
+
placeholder: "Type here..."
|
|
24
|
+
})
|
|
25
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
26
|
+
label: "Radio",
|
|
27
|
+
name: "radio",
|
|
28
|
+
required: true,
|
|
29
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
30
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
31
|
+
value: "1",
|
|
32
|
+
children: "Option 1"
|
|
33
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
34
|
+
value: "2",
|
|
35
|
+
children: "Option 2"
|
|
36
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
37
|
+
value: "3",
|
|
38
|
+
children: "Option 3"
|
|
39
|
+
})]
|
|
40
|
+
})
|
|
41
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
42
|
+
label: "Switch",
|
|
43
|
+
name: "switch",
|
|
44
|
+
required: true,
|
|
45
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
|
46
|
+
label: open ? 'Opening' : 'Closed'
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { Form, Input, Radio, Switch } from "../../../..";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export default (function () {
|
|
11
|
+
var _Form$useForm = Form.useForm(),
|
|
12
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
13
|
+
form = _Form$useForm2[0];
|
|
14
|
+
var open = Form.useWatch('switch', form);
|
|
15
|
+
return /*#__PURE__*/_jsxs(Form, {
|
|
16
|
+
layout: "horizontal",
|
|
17
|
+
form: form,
|
|
18
|
+
labelCol: {
|
|
19
|
+
flex: '100px'
|
|
20
|
+
},
|
|
21
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
22
|
+
label: "Your title",
|
|
23
|
+
name: "input",
|
|
24
|
+
tooltip: "One World, one dream.",
|
|
25
|
+
children: /*#__PURE__*/_jsx(Input, {
|
|
26
|
+
placeholder: "Type here..."
|
|
27
|
+
})
|
|
28
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
29
|
+
label: "Radio",
|
|
30
|
+
name: "radio",
|
|
31
|
+
required: true,
|
|
32
|
+
children: /*#__PURE__*/_jsxs(Radio.Group, {
|
|
33
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
34
|
+
value: "1",
|
|
35
|
+
children: "Option 1"
|
|
36
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
37
|
+
value: "2",
|
|
38
|
+
children: "Option 2"
|
|
39
|
+
}), /*#__PURE__*/_jsx(Radio, {
|
|
40
|
+
value: "3",
|
|
41
|
+
children: "Option 3"
|
|
42
|
+
})]
|
|
43
|
+
})
|
|
44
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
45
|
+
label: "Switch",
|
|
46
|
+
name: "switch",
|
|
47
|
+
required: true,
|
|
48
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
|
49
|
+
label: open ? 'Opening' : 'Closed'
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare function getIndexStyleData(params: any): {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
[x: string]: {
|
|
4
|
+
color: string;
|
|
5
|
+
lineHeight: number;
|
|
6
|
+
marginTop: number;
|
|
7
|
+
fontSize: string;
|
|
8
|
+
textAlign?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
textAlign: string;
|
|
11
|
+
color?: undefined;
|
|
12
|
+
lineHeight?: undefined;
|
|
13
|
+
marginTop?: undefined;
|
|
14
|
+
fontSize?: undefined;
|
|
15
|
+
};
|
|
16
|
+
fontWeight?: undefined;
|
|
17
|
+
whiteSpace?: undefined;
|
|
18
|
+
fontSize?: undefined;
|
|
19
|
+
lineHeight?: undefined;
|
|
20
|
+
color?: undefined;
|
|
21
|
+
gap?: undefined;
|
|
22
|
+
minHeight?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
fontWeight: number;
|
|
25
|
+
whiteSpace: string;
|
|
26
|
+
fontSize: string;
|
|
27
|
+
lineHeight: string;
|
|
28
|
+
color: string;
|
|
29
|
+
gap: string;
|
|
30
|
+
minHeight?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
[x: string]: {
|
|
33
|
+
marginRight: string;
|
|
34
|
+
};
|
|
35
|
+
fontWeight?: undefined;
|
|
36
|
+
whiteSpace?: undefined;
|
|
37
|
+
fontSize?: undefined;
|
|
38
|
+
lineHeight?: undefined;
|
|
39
|
+
color?: undefined;
|
|
40
|
+
gap?: undefined;
|
|
41
|
+
minHeight?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
minHeight: string;
|
|
44
|
+
fontWeight?: undefined;
|
|
45
|
+
whiteSpace?: undefined;
|
|
46
|
+
fontSize?: undefined;
|
|
47
|
+
lineHeight?: undefined;
|
|
48
|
+
color?: undefined;
|
|
49
|
+
gap?: undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
53
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,38 @@
|
|
|
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(_defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-form"), _defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-required-mark"), {
|
|
13
|
+
color: "var(--".concat(antPrefix, "-color-error)"),
|
|
14
|
+
lineHeight: 1,
|
|
15
|
+
marginTop: 0,
|
|
16
|
+
fontSize: '16px'
|
|
17
|
+
}), ".".concat(antPrefix, "-form-item .").concat(antPrefix, "-form-item-label"), {
|
|
18
|
+
textAlign: 'left'
|
|
19
|
+
})), ".".concat(antPrefix, "-form-item .").concat(antPrefix, "-form-item-label > label"), {
|
|
20
|
+
fontWeight: 500,
|
|
21
|
+
whiteSpace: 'normal',
|
|
22
|
+
fontSize: '13px',
|
|
23
|
+
lineHeight: '20px',
|
|
24
|
+
color: "var(--".concat(antPrefix, "-color-text)"),
|
|
25
|
+
gap: '4px'
|
|
26
|
+
}), ".".concat(sparkPrefix, "-form-label-margin-small"), _defineProperty({}, ".".concat(antPrefix, "-form-item-label > label"), {
|
|
27
|
+
marginRight: '8px'
|
|
28
|
+
})), ".".concat(antPrefix, "-col"), {
|
|
29
|
+
minHeight: 'unset'
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
var useIndexStyle = createStyle(function (_ref2) {
|
|
33
|
+
var css = _ref2.css,
|
|
34
|
+
params = _objectWithoutProperties(_ref2, _excluded);
|
|
35
|
+
var result = css(getIndexStyleData(params));
|
|
36
|
+
return result;
|
|
37
|
+
});
|
|
38
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 classNames from 'classnames';
|
|
9
|
+
import IconButton from "../IconButton";
|
|
10
|
+
import useIconFontStyle from "../IconFont/index.style";
|
|
11
|
+
import Tooltip from "../Tooltip";
|
|
12
|
+
import useIndexStyle from "./index.style";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export default function HelpIcon(props) {
|
|
15
|
+
useIconFontStyle();
|
|
16
|
+
useIndexStyle();
|
|
17
|
+
var style = props.style,
|
|
18
|
+
content = props.content,
|
|
19
|
+
className = props.className,
|
|
20
|
+
popoverProps = props.popoverProps;
|
|
21
|
+
var _getCommonConfig = getCommonConfig(),
|
|
22
|
+
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
23
|
+
return /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
|
|
24
|
+
title: content,
|
|
25
|
+
overlayInnerStyle: {
|
|
26
|
+
maxWidth: 376
|
|
27
|
+
},
|
|
28
|
+
trigger: 'hover',
|
|
29
|
+
style: style
|
|
30
|
+
}, popoverProps), {}, {
|
|
31
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
32
|
+
className: classNames("".concat(sparkPrefix, "-help-icon"), className),
|
|
33
|
+
icon: "spark-info-line",
|
|
34
|
+
shape: "circle",
|
|
35
|
+
bordered: false,
|
|
36
|
+
size: "small"
|
|
37
|
+
})
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IconButton } from "../../../..";
|
|
2
|
+
import { SparkPlusLine, SparkSearchLine, SparkSettingLine } from '@agentscope-ai/icons';
|
|
3
|
+
import { Flex } from 'antd';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export default (function () {
|
|
7
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
8
|
+
gap: 16,
|
|
9
|
+
vertical: true,
|
|
10
|
+
children: [/*#__PURE__*/_jsxs(Flex, {
|
|
11
|
+
gap: 16,
|
|
12
|
+
justify: "center",
|
|
13
|
+
align: "center",
|
|
14
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
15
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {}),
|
|
16
|
+
bordered: false
|
|
17
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
18
|
+
icon: /*#__PURE__*/_jsx(SparkSettingLine, {}),
|
|
19
|
+
bordered: false
|
|
20
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
21
|
+
icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
|
|
22
|
+
bordered: false
|
|
23
|
+
})]
|
|
24
|
+
}), /*#__PURE__*/_jsxs(Flex, {
|
|
25
|
+
gap: 16,
|
|
26
|
+
justify: "center",
|
|
27
|
+
align: "center",
|
|
28
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
29
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {}),
|
|
30
|
+
disabled: true,
|
|
31
|
+
bordered: false
|
|
32
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
33
|
+
icon: /*#__PURE__*/_jsx(SparkSettingLine, {}),
|
|
34
|
+
disabled: true,
|
|
35
|
+
bordered: false
|
|
36
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
37
|
+
icon: /*#__PURE__*/_jsx(SparkSearchLine, {}),
|
|
38
|
+
disabled: true,
|
|
39
|
+
bordered: false
|
|
40
|
+
})]
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import { IconButton } from "../../../..";
|
|
4
|
+
import { SparkPlusLine } from '@agentscope-ai/icons';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
var Demo2 = function Demo2() {
|
|
8
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
9
|
+
justify: "center",
|
|
10
|
+
align: "center",
|
|
11
|
+
gap: 16,
|
|
12
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
13
|
+
size: "large",
|
|
14
|
+
shape: "default",
|
|
15
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
16
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
17
|
+
size: "middle",
|
|
18
|
+
shape: "default",
|
|
19
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
20
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
21
|
+
size: "small",
|
|
22
|
+
shape: "default",
|
|
23
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export default Demo2;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import { IconButton } from "../../../..";
|
|
4
|
+
import { SparkPlusLine } from '@agentscope-ai/icons';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* IconButton 演示组件 - 展示不同尺寸的圆形按钮
|
|
8
|
+
*/
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
var Demo3 = function Demo3() {
|
|
12
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
13
|
+
align: "center",
|
|
14
|
+
justify: "center",
|
|
15
|
+
gap: 16,
|
|
16
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
17
|
+
size: "large",
|
|
18
|
+
shape: "circle",
|
|
19
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
20
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
21
|
+
shape: "circle",
|
|
22
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
23
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
24
|
+
size: "small",
|
|
25
|
+
shape: "circle",
|
|
26
|
+
icon: /*#__PURE__*/_jsx(SparkPlusLine, {})
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export default Demo3;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 = ["className", "iconType", "bordered"];
|
|
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 IconFont from "../IconFont";
|
|
11
|
+
import { Button, getCommonConfig } from "../../..";
|
|
12
|
+
import classNames from 'classnames';
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import useIndexStyle from "./index.style";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
export default (function (props) {
|
|
17
|
+
var className = props.className,
|
|
18
|
+
iconType = props.iconType,
|
|
19
|
+
_props$bordered = props.bordered,
|
|
20
|
+
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
21
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
22
|
+
var config = getCommonConfig();
|
|
23
|
+
var iconfont = config.iconfont;
|
|
24
|
+
useIndexStyle();
|
|
25
|
+
var icon = useMemo(function () {
|
|
26
|
+
if (iconType) {
|
|
27
|
+
return /*#__PURE__*/_jsx(IconFont, {
|
|
28
|
+
type: iconType,
|
|
29
|
+
size: props.size
|
|
30
|
+
});
|
|
31
|
+
} else if (typeof props.icon === 'string') {
|
|
32
|
+
return /*#__PURE__*/_jsx(IconFont, {
|
|
33
|
+
type: props.icon,
|
|
34
|
+
size: props.size
|
|
35
|
+
});
|
|
36
|
+
} else {
|
|
37
|
+
return props.icon;
|
|
38
|
+
}
|
|
39
|
+
}, [props.icon, iconType, iconfont]);
|
|
40
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
|
|
41
|
+
className: classNames(className, "".concat(config.sparkPrefix, "-icon-button")),
|
|
42
|
+
style: {
|
|
43
|
+
lineHeight: 1
|
|
44
|
+
},
|
|
45
|
+
type: bordered ? 'default' : 'text'
|
|
46
|
+
}, restProps), {}, {
|
|
47
|
+
icon: icon
|
|
48
|
+
}));
|
|
49
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getIndexStyleData(params: any): {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
[x: string]: {
|
|
4
|
+
display: string;
|
|
5
|
+
justifyContent: string;
|
|
6
|
+
alignItems: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
11
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,24 @@
|
|
|
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({}, ".".concat(sparkPrefix, "-icon-button.").concat(antPrefix, "-btn"), _defineProperty({}, ".".concat(antPrefix, "-btn-icon"), {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
alignItems: 'center'
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
var useIndexStyle = createStyle(function (_ref2) {
|
|
19
|
+
var css = _ref2.css,
|
|
20
|
+
params = _objectWithoutProperties(_ref2, _excluded);
|
|
21
|
+
var result = css(getIndexStyleData(params));
|
|
22
|
+
return result;
|
|
23
|
+
});
|
|
24
|
+
export default useIndexStyle;
|