@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,27 @@
|
|
|
1
|
+
import { TimePicker } from "../../../..";
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
dayjs.extend(customParseFormat);
|
|
8
|
+
var onChange = function onChange(time, timeString) {
|
|
9
|
+
console.log(time, timeString);
|
|
10
|
+
};
|
|
11
|
+
export default (function () {
|
|
12
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
13
|
+
vertical: true,
|
|
14
|
+
gap: 16,
|
|
15
|
+
style: {
|
|
16
|
+
width: 240
|
|
17
|
+
},
|
|
18
|
+
children: [/*#__PURE__*/_jsx(TimePicker, {
|
|
19
|
+
onChange: onChange
|
|
20
|
+
}), /*#__PURE__*/_jsx(TimePicker, {
|
|
21
|
+
disabled: true
|
|
22
|
+
}), /*#__PURE__*/_jsx(TimePicker, {
|
|
23
|
+
status: "error",
|
|
24
|
+
defaultValue: dayjs('17:12:30', 'HH:mm:ss')
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TimePicker } from "../../../..";
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
dayjs.extend(customParseFormat);
|
|
8
|
+
var RangePicker = TimePicker.RangePicker;
|
|
9
|
+
export default (function () {
|
|
10
|
+
var startTime = dayjs('17:12:30', 'HH:mm:ss');
|
|
11
|
+
var endTime = dayjs('18:12:30', 'HH:mm:ss');
|
|
12
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
13
|
+
vertical: true,
|
|
14
|
+
gap: 16,
|
|
15
|
+
style: {
|
|
16
|
+
width: 240
|
|
17
|
+
},
|
|
18
|
+
children: [/*#__PURE__*/_jsx(RangePicker, {}), /*#__PURE__*/_jsx(RangePicker, {
|
|
19
|
+
disabled: true,
|
|
20
|
+
allowEmpty: true
|
|
21
|
+
}), /*#__PURE__*/_jsx(RangePicker, {
|
|
22
|
+
status: "error",
|
|
23
|
+
defaultValue: [startTime, endTime]
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimePickerProps, TimeRangePickerProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type CompoundedComponent = React.FC<TimePickerProps> & {
|
|
4
|
+
RangePicker: React.FC<TimeRangePickerProps>;
|
|
5
|
+
};
|
|
6
|
+
declare const TimePicker: CompoundedComponent;
|
|
7
|
+
export default TimePicker;
|
|
@@ -0,0 +1,70 @@
|
|
|
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", "popupClassName"],
|
|
3
|
+
_excluded2 = ["className", "popupClassName"];
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
import { getCommonConfig } from "../../../config";
|
|
12
|
+
import { SparkTimestampLine } from '@agentscope-ai/icons';
|
|
13
|
+
import { TimePicker as AntdTimePicker, ConfigProvider, theme } from 'antd';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import useIndexStyle from "./index.style";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
var TimePicker = function TimePicker(props) {
|
|
19
|
+
var className = props.className,
|
|
20
|
+
popupClassName = props.popupClassName,
|
|
21
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
22
|
+
var _theme$useToken = theme.useToken(),
|
|
23
|
+
token = _theme$useToken.token;
|
|
24
|
+
var commonConfig = getCommonConfig();
|
|
25
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
26
|
+
useIndexStyle();
|
|
27
|
+
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
28
|
+
theme: {
|
|
29
|
+
components: {
|
|
30
|
+
DatePicker: {
|
|
31
|
+
activeBorderColor: token.colorPrimary
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
children: /*#__PURE__*/_jsx(AntdTimePicker, _objectSpread({
|
|
36
|
+
suffixIcon: /*#__PURE__*/_jsx(SparkTimestampLine, {}),
|
|
37
|
+
className: classNames("".concat(sparkPrefix, "-picker"), className),
|
|
38
|
+
popupClassName: classNames("".concat(sparkPrefix, "-picker-dropdown"), popupClassName)
|
|
39
|
+
}, restProps))
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var RangePicker = function RangePicker(props) {
|
|
43
|
+
var className = props.className,
|
|
44
|
+
popupClassName = props.popupClassName,
|
|
45
|
+
restProps = _objectWithoutProperties(props, _excluded2);
|
|
46
|
+
var _theme$useToken2 = theme.useToken(),
|
|
47
|
+
token = _theme$useToken2.token;
|
|
48
|
+
var commonConfig = getCommonConfig();
|
|
49
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
50
|
+
useIndexStyle();
|
|
51
|
+
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
52
|
+
theme: {
|
|
53
|
+
components: {
|
|
54
|
+
DatePicker: {
|
|
55
|
+
activeBorderColor: token.colorPrimary
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
children: /*#__PURE__*/_jsx(AntdTimePicker.RangePicker, _objectSpread({
|
|
60
|
+
suffixIcon: /*#__PURE__*/_jsx(SparkTimestampLine, {}),
|
|
61
|
+
className: classNames("".concat(sparkPrefix, "-picker"), className),
|
|
62
|
+
popupClassName: classNames("".concat(sparkPrefix, "-picker-dropdown"), popupClassName),
|
|
63
|
+
popupStyle: {
|
|
64
|
+
padding: 0
|
|
65
|
+
}
|
|
66
|
+
}, restProps))
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
TimePicker.RangePicker = RangePicker;
|
|
70
|
+
export default TimePicker;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare function getIndexStyleData(params: any): {
|
|
2
|
+
[x: string]: {
|
|
3
|
+
[x: string]: string | {
|
|
4
|
+
[x: string]: string | {
|
|
5
|
+
color: string;
|
|
6
|
+
};
|
|
7
|
+
color: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
marginLeft?: undefined;
|
|
11
|
+
marginRight?: undefined;
|
|
12
|
+
display?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
marginLeft: string;
|
|
15
|
+
color: string;
|
|
16
|
+
borderColor?: undefined;
|
|
17
|
+
backgroundColor?: undefined;
|
|
18
|
+
marginRight?: undefined;
|
|
19
|
+
display?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
marginRight: string;
|
|
22
|
+
color?: undefined;
|
|
23
|
+
borderColor?: undefined;
|
|
24
|
+
backgroundColor?: undefined;
|
|
25
|
+
marginLeft?: undefined;
|
|
26
|
+
display?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
[x: string]: string | {
|
|
29
|
+
width: string;
|
|
30
|
+
height: string;
|
|
31
|
+
background: string;
|
|
32
|
+
".anticon": {
|
|
33
|
+
display: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
display: string;
|
|
37
|
+
color?: undefined;
|
|
38
|
+
borderColor?: undefined;
|
|
39
|
+
backgroundColor?: undefined;
|
|
40
|
+
marginLeft?: undefined;
|
|
41
|
+
marginRight?: undefined;
|
|
42
|
+
};
|
|
43
|
+
borderColor: string;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
} | {
|
|
46
|
+
[x: string]: {
|
|
47
|
+
border: string;
|
|
48
|
+
display?: undefined;
|
|
49
|
+
color?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
display: string;
|
|
52
|
+
border?: undefined;
|
|
53
|
+
color?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
[x: string]: {
|
|
56
|
+
background: string;
|
|
57
|
+
};
|
|
58
|
+
border?: undefined;
|
|
59
|
+
display?: undefined;
|
|
60
|
+
color?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
color: string;
|
|
63
|
+
border?: undefined;
|
|
64
|
+
display?: undefined;
|
|
65
|
+
};
|
|
66
|
+
borderColor?: undefined;
|
|
67
|
+
backgroundColor?: undefined;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
71
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var _excluded = ["css"];
|
|
2
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import createStyle from "../../../libs/createStyle";
|
|
9
|
+
export function getIndexStyleData(params) {
|
|
10
|
+
var sparkPrefix = params.sparkPrefix,
|
|
11
|
+
antPrefix = params.antPrefix;
|
|
12
|
+
return _defineProperty(_defineProperty({}, ".".concat(sparkPrefix, "-picker"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
13
|
+
borderColor: "var(--".concat(antPrefix, "-color-border-secondary)"),
|
|
14
|
+
backgroundColor: "var(--".concat(antPrefix, "-color-bg-base)")
|
|
15
|
+
}, "&.".concat(antPrefix, "-picker-disabled"), _defineProperty({
|
|
16
|
+
color: "var(--".concat(antPrefix, "-color-text-quaternary)"),
|
|
17
|
+
borderColor: "var(--".concat(antPrefix, "-color-border-secondary) !important"),
|
|
18
|
+
backgroundColor: "var(--".concat(antPrefix, "-color-fill-tertiary) !important")
|
|
19
|
+
}, ".".concat(antPrefix, "-picker-suffix"), {
|
|
20
|
+
color: "var(--".concat(antPrefix, "-color-text-quaternary) !important")
|
|
21
|
+
})), ".".concat(antPrefix, "-picker-suffix"), {
|
|
22
|
+
marginLeft: '8px',
|
|
23
|
+
color: "var(--".concat(antPrefix, "-color-text-tertiary) !important")
|
|
24
|
+
}), ".".concat(antPrefix, "-picker-clear"), {
|
|
25
|
+
marginRight: '3px'
|
|
26
|
+
}), ".".concat(antPrefix, "-picker-range-separator"), _defineProperty({
|
|
27
|
+
display: 'flex'
|
|
28
|
+
}, ".".concat(antPrefix, "-picker-separator"), _defineProperty({
|
|
29
|
+
width: '8px',
|
|
30
|
+
height: '1px',
|
|
31
|
+
background: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
32
|
+
}, '.anticon', {
|
|
33
|
+
display: 'none'
|
|
34
|
+
})))), ".".concat(sparkPrefix, "-picker-dropdown"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-picker-panel-container"), {
|
|
35
|
+
border: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
|
|
36
|
+
}), ".".concat(antPrefix, "-picker-range-arrow"), {
|
|
37
|
+
display: 'none !important'
|
|
38
|
+
}), ".".concat(antPrefix, "-picker-time-panel-column >li.").concat(antPrefix, "-picker-time-panel-cell-selected"), _defineProperty({}, ".".concat(antPrefix, "-picker-time-panel-cell-inner"), {
|
|
39
|
+
background: "var(--".concat(antPrefix, "-color-primary-bg)")
|
|
40
|
+
})), ".".concat(antPrefix, "-picker-now-btn"), {
|
|
41
|
+
color: "var(--".concat(antPrefix, "-color-primary)")
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
var useIndexStyle = createStyle(function (_ref2) {
|
|
45
|
+
var css = _ref2.css,
|
|
46
|
+
params = _objectWithoutProperties(_ref2, _excluded);
|
|
47
|
+
var result = css(getIndexStyleData(params));
|
|
48
|
+
return result;
|
|
49
|
+
});
|
|
50
|
+
export default useIndexStyle;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Button, Tooltip } from "../../../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var App = function App() {
|
|
5
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
6
|
+
title: "This is a tooltip",
|
|
7
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
8
|
+
children: "Hover here"
|
|
9
|
+
})
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export default App;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Button, Tooltip } from "../../../..";
|
|
2
|
+
import { Flex } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
var App = function App() {
|
|
7
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
8
|
+
title: /*#__PURE__*/_jsxs(Flex, {
|
|
9
|
+
align: "center",
|
|
10
|
+
gap: 8,
|
|
11
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
12
|
+
children: "This is a tooltip"
|
|
13
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
14
|
+
type: "link",
|
|
15
|
+
style: {
|
|
16
|
+
height: 20,
|
|
17
|
+
lineHeight: '20px',
|
|
18
|
+
padding: 0
|
|
19
|
+
},
|
|
20
|
+
children: "Operation"
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
24
|
+
children: "Hover here"
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export default App;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TooltipProps } from 'antd';
|
|
3
|
+
export interface SparkTooltipProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 颜色模式
|
|
6
|
+
* @descriptionEn color mode
|
|
7
|
+
* @default 'light'
|
|
8
|
+
*/
|
|
9
|
+
mode?: 'dark' | 'light';
|
|
10
|
+
}
|
|
11
|
+
declare const SparkTooltip: import("react").ForwardRefExoticComponent<(SparkTooltipProps & TooltipProps) & import("react").RefAttributes<any>>;
|
|
12
|
+
export default SparkTooltip;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 = ["mode", "arrow", "overlayClassName", "getPopupContainer", "align"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import { getCommonConfig } from "../../../config";
|
|
11
|
+
import { findClosestBySelector } from "../../../libs/dom";
|
|
12
|
+
import { Tooltip } from 'antd';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { forwardRef } from 'react';
|
|
15
|
+
import useIndexStyle from "./index.style";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
|
+
useIndexStyle();
|
|
19
|
+
var _props$mode = props.mode,
|
|
20
|
+
mode = _props$mode === void 0 ? 'dark' : _props$mode,
|
|
21
|
+
arrow = props.arrow,
|
|
22
|
+
overlayClassName = props.overlayClassName,
|
|
23
|
+
getPopupContainer = props.getPopupContainer,
|
|
24
|
+
align = props.align,
|
|
25
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
var _getCommonConfig = getCommonConfig(),
|
|
27
|
+
sparkPrefix = _getCommonConfig.sparkPrefix,
|
|
28
|
+
antPrefix = _getCommonConfig.antPrefix;
|
|
29
|
+
return /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
30
|
+
arrow: arrow !== null && arrow !== void 0 ? arrow : false,
|
|
31
|
+
overlayClassName: classNames(overlayClassName, mode === 'light' && "".concat(sparkPrefix, "-tooltip-light")),
|
|
32
|
+
getPopupContainer: getPopupContainer || function (triggerNode) {
|
|
33
|
+
return findClosestBySelector(triggerNode, ".".concat(antPrefix, "-app")); // 默认放到App组件下,获取自定义css变量
|
|
34
|
+
},
|
|
35
|
+
ref: ref
|
|
36
|
+
}));
|
|
37
|
+
});
|
|
38
|
+
export default SparkTooltip;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Upload } from "../../../..";
|
|
2
|
+
import { SparkUploadLine } 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__*/_jsx(Upload, {
|
|
8
|
+
listType: "picture-card",
|
|
9
|
+
beforeUpload: function beforeUpload() {
|
|
10
|
+
return Upload.LIST_IGNORE;
|
|
11
|
+
},
|
|
12
|
+
children: /*#__PURE__*/_jsxs(Flex, {
|
|
13
|
+
vertical: true,
|
|
14
|
+
gap: 8,
|
|
15
|
+
align: "center",
|
|
16
|
+
children: [/*#__PURE__*/_jsx(SparkUploadLine, {
|
|
17
|
+
style: {
|
|
18
|
+
fontSize: '24px'
|
|
19
|
+
}
|
|
20
|
+
}), "Upload"]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
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, message, Upload } from "../../../..";
|
|
8
|
+
import { SparkUploadLine } from '@agentscope-ai/icons';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
var Dragger = Upload.Dragger;
|
|
12
|
+
var commonConfig = getCommonConfig();
|
|
13
|
+
var antPrefix = commonConfig.antPrefix;
|
|
14
|
+
var props = {
|
|
15
|
+
name: 'file',
|
|
16
|
+
multiple: true,
|
|
17
|
+
action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload',
|
|
18
|
+
onChange: function onChange(info) {
|
|
19
|
+
var status = info.file.status;
|
|
20
|
+
if (status !== 'uploading') {
|
|
21
|
+
console.log(info.file, info.fileList);
|
|
22
|
+
}
|
|
23
|
+
if (status === 'done') {
|
|
24
|
+
message.success("".concat(info.file.name, " file uploaded successfully."));
|
|
25
|
+
} else if (status === 'error') {
|
|
26
|
+
message.error("".concat(info.file.name, " file upload failed."));
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
onDrop: function onDrop(e) {
|
|
30
|
+
console.log('Dropped files', e.dataTransfer.files);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export default (function () {
|
|
34
|
+
return /*#__PURE__*/_jsxs(Dragger, _objectSpread(_objectSpread({}, props), {}, {
|
|
35
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
36
|
+
className: "".concat(antPrefix, "-upload-icon"),
|
|
37
|
+
children: /*#__PURE__*/_jsx(SparkUploadLine, {
|
|
38
|
+
style: {
|
|
39
|
+
fontSize: '24px'
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
43
|
+
className: "".concat(antPrefix, "-upload-text"),
|
|
44
|
+
children: "Click or drag file to this area"
|
|
45
|
+
}), /*#__PURE__*/_jsx("p", {
|
|
46
|
+
className: "".concat(antPrefix, "-upload-hint"),
|
|
47
|
+
children: "I am a description of upload things"
|
|
48
|
+
})]
|
|
49
|
+
}));
|
|
50
|
+
});
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { FileIcon, Upload, getCommonConfig } from "../../../..";
|
|
14
|
+
import { SparkDeleteLine, SparkFalseLine } from '@agentscope-ai/icons';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
var _getCommonConfig = getCommonConfig(),
|
|
17
|
+
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
18
|
+
var fileTypeMap = {
|
|
19
|
+
epub: ['.epub'],
|
|
20
|
+
excel: ['.xls', '.xlsx', '.xlsm', '.xlsb'],
|
|
21
|
+
html: ['.html', '.htm'],
|
|
22
|
+
image: ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.svg'],
|
|
23
|
+
md: ['.md', '.markdown'],
|
|
24
|
+
mobi: ['.mobi'],
|
|
25
|
+
pdf: ['.pdf'],
|
|
26
|
+
ppt: ['.ppt', '.pptx', '.pps', '.ppsx'],
|
|
27
|
+
txt: ['.txt'],
|
|
28
|
+
web: ['.web'],
|
|
29
|
+
word: ['.doc', '.docx']
|
|
30
|
+
};
|
|
31
|
+
var getFileType = function getFileType(fileName) {
|
|
32
|
+
var fileTypeEntries = Object.entries(fileTypeMap);
|
|
33
|
+
for (var _i = 0, _fileTypeEntries = fileTypeEntries; _i < _fileTypeEntries.length; _i++) {
|
|
34
|
+
var _fileTypeEntries$_i = _slicedToArray(_fileTypeEntries[_i], 2),
|
|
35
|
+
type = _fileTypeEntries$_i[0],
|
|
36
|
+
extensions = _fileTypeEntries$_i[1];
|
|
37
|
+
if (extensions.some(function (ext) {
|
|
38
|
+
return fileName.endsWith(ext);
|
|
39
|
+
})) {
|
|
40
|
+
return type;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return 'common';
|
|
44
|
+
};
|
|
45
|
+
var fileList = [{
|
|
46
|
+
uid: '0',
|
|
47
|
+
name: '1.pdf',
|
|
48
|
+
status: 'done',
|
|
49
|
+
response: 'good'
|
|
50
|
+
}, {
|
|
51
|
+
uid: '-1',
|
|
52
|
+
name: '2.pdf',
|
|
53
|
+
status: 'uploading',
|
|
54
|
+
percent: 60
|
|
55
|
+
}, {
|
|
56
|
+
uid: '-2',
|
|
57
|
+
name: '3.pdf',
|
|
58
|
+
status: 'error',
|
|
59
|
+
response: 'Server Error 500'
|
|
60
|
+
}];
|
|
61
|
+
var props = {
|
|
62
|
+
showUploadList: {
|
|
63
|
+
showRemoveIcon: function showRemoveIcon(file) {
|
|
64
|
+
return file.status !== 'removed';
|
|
65
|
+
},
|
|
66
|
+
removeIcon: function removeIcon(file) {
|
|
67
|
+
return file.status === 'uploading' ? /*#__PURE__*/_jsx(SparkFalseLine, {
|
|
68
|
+
style: {
|
|
69
|
+
fontSize: '20px'
|
|
70
|
+
}
|
|
71
|
+
}) : /*#__PURE__*/_jsx(SparkDeleteLine, {
|
|
72
|
+
style: {
|
|
73
|
+
fontSize: '20px'
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
iconRender: function iconRender(file) {
|
|
79
|
+
var isError = file.status === 'error' || file.status === 'removed';
|
|
80
|
+
var fileType = getFileType(file.name || '');
|
|
81
|
+
var style = {};
|
|
82
|
+
if (isError) {
|
|
83
|
+
style = {
|
|
84
|
+
filter: 'grayscale(1)',
|
|
85
|
+
opacity: 0.4
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return /*#__PURE__*/_jsx(FileIcon, {
|
|
89
|
+
type: fileType,
|
|
90
|
+
style: style
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
progress: {
|
|
94
|
+
size: {
|
|
95
|
+
width: 134,
|
|
96
|
+
height: 4
|
|
97
|
+
},
|
|
98
|
+
showInfo: false
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
export default (function () {
|
|
102
|
+
return /*#__PURE__*/_jsx(Upload, _objectSpread({
|
|
103
|
+
className: "".concat(sparkPrefix, "-custom-uploaded"),
|
|
104
|
+
action: "https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload",
|
|
105
|
+
listType: "picture",
|
|
106
|
+
defaultFileList: fileList
|
|
107
|
+
}, props));
|
|
108
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DraggerProps, UploadProps } from 'antd';
|
|
3
|
+
type CompoundedComponent = React.FC<UploadProps> & {
|
|
4
|
+
Dragger: React.FC<DraggerProps>;
|
|
5
|
+
LIST_IGNORE: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Upload: CompoundedComponent;
|
|
8
|
+
export default Upload;
|
|
@@ -0,0 +1,38 @@
|
|
|
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"],
|
|
3
|
+
_excluded2 = ["className"];
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
import { getCommonConfig } from "../../../config";
|
|
12
|
+
import { Upload as AntdUpload } from 'antd';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import useIndexStyle from "./index.style";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
var Upload = function Upload(props) {
|
|
17
|
+
var className = props.className,
|
|
18
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
19
|
+
var commonConfig = getCommonConfig();
|
|
20
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
21
|
+
useIndexStyle();
|
|
22
|
+
return /*#__PURE__*/_jsx(AntdUpload, _objectSpread({
|
|
23
|
+
className: classNames("".concat(sparkPrefix, "-upload"), className)
|
|
24
|
+
}, restProps));
|
|
25
|
+
};
|
|
26
|
+
var Dragger = function Dragger(props) {
|
|
27
|
+
var className = props.className,
|
|
28
|
+
restProps = _objectWithoutProperties(props, _excluded2);
|
|
29
|
+
var commonConfig = getCommonConfig();
|
|
30
|
+
var sparkPrefix = commonConfig.sparkPrefix;
|
|
31
|
+
useIndexStyle();
|
|
32
|
+
return /*#__PURE__*/_jsx(AntdUpload.Dragger, _objectSpread({
|
|
33
|
+
className: classNames("".concat(sparkPrefix, "-upload"), className)
|
|
34
|
+
}, restProps));
|
|
35
|
+
};
|
|
36
|
+
Upload.Dragger = Dragger;
|
|
37
|
+
Upload.LIST_IGNORE = AntdUpload.LIST_IGNORE;
|
|
38
|
+
export default Upload;
|