@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
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
var _excluded = ["iconSize"];
|
|
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 _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); }
|
|
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 { Button as AntdButton, ConfigProvider, theme } from 'antd';
|
|
11
|
-
import React, { forwardRef } from 'react';
|
|
12
|
-
import IconFont from "../IconFont";
|
|
13
|
-
import Popover from "../Popover";
|
|
14
|
-
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
|
-
var token = theme.useToken();
|
|
19
|
-
var iconSize = props.iconSize,
|
|
20
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
21
|
-
var buttonType = React.useMemo(function () {
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
if (restProps.type === 'primaryLess') return 'primary';
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
if (restProps.type === 'textCompact') return 'link';
|
|
26
|
-
return restProps.type;
|
|
27
|
-
}, [restProps.type]);
|
|
28
|
-
var icon = React.useMemo(function () {
|
|
29
|
-
if (restProps.loading && _typeof(restProps.loading) === 'object' && restProps.loading.icon) {
|
|
30
|
-
var _restProps$loading;
|
|
31
|
-
return (_restProps$loading = restProps.loading) === null || _restProps$loading === void 0 ? void 0 : _restProps$loading.icon;
|
|
32
|
-
}
|
|
33
|
-
if (restProps.iconType) return /*#__PURE__*/_jsx(IconFont, {
|
|
34
|
-
type: restProps.iconType,
|
|
35
|
-
size: iconSize !== null && iconSize !== void 0 ? iconSize : restProps.size
|
|
36
|
-
}); // 注意 size 也需要传入下去
|
|
37
|
-
if (restProps.icon) return /*#__PURE__*/React.cloneElement(restProps.icon, {
|
|
38
|
-
size: iconSize !== null && iconSize !== void 0 ? iconSize : restProps.size // 注意 size 也需要传入下去
|
|
39
|
-
});
|
|
40
|
-
return null;
|
|
41
|
-
}, [restProps.iconType, restProps.icon]);
|
|
42
|
-
var button = /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
43
|
-
ref: ref,
|
|
44
|
-
type: buttonType,
|
|
45
|
-
icon: icon,
|
|
46
|
-
style: _objectSpread({
|
|
47
|
-
fontWeight: 500,
|
|
48
|
-
lineHeight: 1
|
|
49
|
-
}, restProps.style)
|
|
50
|
-
}));
|
|
51
|
-
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
if (restProps.type === 'primaryLess') {
|
|
54
|
-
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
55
|
-
theme: {
|
|
56
|
-
token: {
|
|
57
|
-
colorPrimary: token.token.colorText,
|
|
58
|
-
colorPrimaryHover: token.token.colorTextSecondary,
|
|
59
|
-
colorPrimaryActive: token.token.colorTextBase
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
children: /*#__PURE__*/_jsx(Popover, {
|
|
63
|
-
content: restProps.tooltipContent,
|
|
64
|
-
children: button
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
} else if (restProps.type === 'textCompact') {
|
|
69
|
-
return /*#__PURE__*/_jsx(Popover, {
|
|
70
|
-
content: restProps.tooltipContent,
|
|
71
|
-
children: /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
72
|
-
ref: ref,
|
|
73
|
-
icon: icon,
|
|
74
|
-
color: "default",
|
|
75
|
-
variant: "link",
|
|
76
|
-
style: _objectSpread({
|
|
77
|
-
fontWeight: 500,
|
|
78
|
-
paddingLeft: 0,
|
|
79
|
-
paddingRight: 0,
|
|
80
|
-
lineHeight: 1
|
|
81
|
-
}, restProps.style)
|
|
82
|
-
}))
|
|
83
|
-
});
|
|
84
|
-
} else {
|
|
85
|
-
return /*#__PURE__*/_jsx(Popover, {
|
|
86
|
-
content: restProps.tooltipContent,
|
|
87
|
-
children: button
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
export default Button;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Card } from "../../../..";
|
|
2
|
-
import { Space, theme } from 'antd';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
var App = function App() {
|
|
6
|
-
var token = theme.useToken();
|
|
7
|
-
return /*#__PURE__*/_jsx(Space, {
|
|
8
|
-
direction: "vertical",
|
|
9
|
-
size: 16,
|
|
10
|
-
children: /*#__PURE__*/_jsx(Card, {
|
|
11
|
-
title: "Card title",
|
|
12
|
-
info: "info here",
|
|
13
|
-
style: {
|
|
14
|
-
width: 300
|
|
15
|
-
},
|
|
16
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
17
|
-
style: {
|
|
18
|
-
width: '100%',
|
|
19
|
-
height: 120,
|
|
20
|
-
/* 主题色/color-primary-bg */
|
|
21
|
-
background: token.token.colorPrimaryBg,
|
|
22
|
-
display: 'flex',
|
|
23
|
-
justifyContent: 'center',
|
|
24
|
-
alignItems: 'center'
|
|
25
|
-
},
|
|
26
|
-
children: "Content here"
|
|
27
|
-
})
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
export default App;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Card } from "../../../..";
|
|
2
|
-
import { Space } 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__*/_jsxs(Space, {
|
|
8
|
-
direction: "vertical",
|
|
9
|
-
size: 16,
|
|
10
|
-
children: [/*#__PURE__*/_jsxs(Card, {
|
|
11
|
-
title: "Default size card",
|
|
12
|
-
extra: /*#__PURE__*/_jsx("a", {
|
|
13
|
-
href: "#",
|
|
14
|
-
children: "More"
|
|
15
|
-
}),
|
|
16
|
-
style: {
|
|
17
|
-
width: 300
|
|
18
|
-
},
|
|
19
|
-
children: [/*#__PURE__*/_jsx("p", {
|
|
20
|
-
children: "Card content"
|
|
21
|
-
}), /*#__PURE__*/_jsx("p", {
|
|
22
|
-
children: "Card content"
|
|
23
|
-
}), /*#__PURE__*/_jsx("p", {
|
|
24
|
-
children: "Card content"
|
|
25
|
-
})]
|
|
26
|
-
}), /*#__PURE__*/_jsxs(Card, {
|
|
27
|
-
size: "small",
|
|
28
|
-
title: "Small size card",
|
|
29
|
-
extra: /*#__PURE__*/_jsx("a", {
|
|
30
|
-
href: "#",
|
|
31
|
-
children: "More"
|
|
32
|
-
}),
|
|
33
|
-
style: {
|
|
34
|
-
width: 300
|
|
35
|
-
},
|
|
36
|
-
children: [/*#__PURE__*/_jsx("p", {
|
|
37
|
-
children: "Card content"
|
|
38
|
-
}), /*#__PURE__*/_jsx("p", {
|
|
39
|
-
children: "Card content"
|
|
40
|
-
}), /*#__PURE__*/_jsx("p", {
|
|
41
|
-
children: "Card content"
|
|
42
|
-
})]
|
|
43
|
-
})]
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
export default App;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardProps } from 'antd';
|
|
3
|
-
export interface SparkCardProps extends CardProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 副标题
|
|
6
|
-
* @default ReactNode
|
|
7
|
-
*/
|
|
8
|
-
info?: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: (props: SparkCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["children"];
|
|
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 React from 'react';
|
|
11
|
-
import { getCommonConfig } from "../../../config";
|
|
12
|
-
import { Card } from 'antd';
|
|
13
|
-
import useIndexStyle from "./index.style";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
export default (function (props) {
|
|
17
|
-
var children = props.children,
|
|
18
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
19
|
-
useIndexStyle();
|
|
20
|
-
var commonConfig = getCommonConfig();
|
|
21
|
-
var sparkPrefix = commonConfig.sparkPrefix;
|
|
22
|
-
return /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({
|
|
23
|
-
className: "".concat(sparkPrefix, "-card")
|
|
24
|
-
}, restProps), {}, {
|
|
25
|
-
title: null,
|
|
26
|
-
children: /*#__PURE__*/_jsxs("div", {
|
|
27
|
-
className: "".concat(sparkPrefix, "-card-wrapper"),
|
|
28
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
29
|
-
className: "".concat(sparkPrefix, "-title"),
|
|
30
|
-
children: props.title
|
|
31
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
32
|
-
className: "".concat(sparkPrefix, "-info"),
|
|
33
|
-
children: props.info
|
|
34
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
35
|
-
className: "".concat(sparkPrefix, "-content"),
|
|
36
|
-
children: children
|
|
37
|
-
})]
|
|
38
|
-
})
|
|
39
|
-
}));
|
|
40
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export declare function getIndexStyleData(params: any): {
|
|
2
|
-
[x: string]: {
|
|
3
|
-
borderRadius: string;
|
|
4
|
-
backgroundColor: string;
|
|
5
|
-
border: string;
|
|
6
|
-
transition?: undefined;
|
|
7
|
-
'&:hover'?: undefined;
|
|
8
|
-
cursor?: undefined;
|
|
9
|
-
display?: undefined;
|
|
10
|
-
flexDirection?: undefined;
|
|
11
|
-
padding?: undefined;
|
|
12
|
-
gap?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
[x: string]: string | {
|
|
15
|
-
padding: number;
|
|
16
|
-
boxShadow?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
boxShadow: string;
|
|
19
|
-
padding?: undefined;
|
|
20
|
-
};
|
|
21
|
-
transition: string;
|
|
22
|
-
'&:hover': {
|
|
23
|
-
boxShadow: string;
|
|
24
|
-
};
|
|
25
|
-
cursor: string;
|
|
26
|
-
borderRadius?: undefined;
|
|
27
|
-
backgroundColor?: undefined;
|
|
28
|
-
border?: undefined;
|
|
29
|
-
display?: undefined;
|
|
30
|
-
flexDirection?: undefined;
|
|
31
|
-
padding?: undefined;
|
|
32
|
-
gap?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
[x: string]: string | {
|
|
35
|
-
fontSize: string;
|
|
36
|
-
fontWeight: number;
|
|
37
|
-
lineHeight: string;
|
|
38
|
-
color: string;
|
|
39
|
-
} | {
|
|
40
|
-
fontSize: string;
|
|
41
|
-
fontWeight: string;
|
|
42
|
-
lineHeight: string;
|
|
43
|
-
color: string;
|
|
44
|
-
};
|
|
45
|
-
display: string;
|
|
46
|
-
flexDirection: string;
|
|
47
|
-
padding: string;
|
|
48
|
-
gap: string;
|
|
49
|
-
borderRadius?: undefined;
|
|
50
|
-
backgroundColor?: undefined;
|
|
51
|
-
border?: undefined;
|
|
52
|
-
transition?: undefined;
|
|
53
|
-
'&:hover'?: undefined;
|
|
54
|
-
cursor?: undefined;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
58
|
-
export default useIndexStyle;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var _excluded = ["css"];
|
|
2
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import createStyle from "../../../libs/createStyle";
|
|
9
|
-
export function getIndexStyleData(params) {
|
|
10
|
-
var sparkPrefix = params.sparkPrefix,
|
|
11
|
-
antPrefix = params.antPrefix;
|
|
12
|
-
return _defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-card"), {
|
|
13
|
-
borderRadius: '6px',
|
|
14
|
-
backgroundColor: "var(--".concat(antPrefix, "-color-bg-base)"),
|
|
15
|
-
border: "1px solid var(--".concat(antPrefix, "-color-border-secondary)")
|
|
16
|
-
}), ".".concat(sparkPrefix, "-card"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "transition", 'box-shadow 0.4s ease'), ".".concat(antPrefix, "-card-body"), {
|
|
17
|
-
padding: 0
|
|
18
|
-
}), '&:hover', {
|
|
19
|
-
boxShadow: '0px 4px 6px 0px rgba(0, 0, 0, 0.08)'
|
|
20
|
-
}), "cursor", 'pointer')), ".".concat(sparkPrefix, "-card-wrapper"), _defineProperty(_defineProperty({
|
|
21
|
-
display: 'flex',
|
|
22
|
-
flexDirection: 'column',
|
|
23
|
-
padding: '12px 16px',
|
|
24
|
-
gap: '4px'
|
|
25
|
-
}, ".".concat(sparkPrefix, "-title"), {
|
|
26
|
-
fontSize: '14px',
|
|
27
|
-
fontWeight: 500,
|
|
28
|
-
lineHeight: '24px',
|
|
29
|
-
/* 中性色/color-text */
|
|
30
|
-
color: "var(--".concat(antPrefix, "-color-text)")
|
|
31
|
-
}), ".".concat(sparkPrefix, "-info"), {
|
|
32
|
-
fontSize: '12px',
|
|
33
|
-
fontWeight: 'normal',
|
|
34
|
-
lineHeight: '18px',
|
|
35
|
-
color: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
39
|
-
var css = _ref2.css,
|
|
40
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
41
|
-
var result = css(getIndexStyleData(params));
|
|
42
|
-
return result;
|
|
43
|
-
});
|
|
44
|
-
export default useIndexStyle;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Checkbox } from "../../../..";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
var onChange = function onChange(e) {
|
|
7
|
-
console.log("checked = ".concat(e.target.checked));
|
|
8
|
-
};
|
|
9
|
-
var App = function App() {
|
|
10
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
11
|
-
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
12
|
-
onChange: onChange,
|
|
13
|
-
children: "Accept terms and conditions"
|
|
14
|
-
}), /*#__PURE__*/_jsx(Checkbox, {
|
|
15
|
-
onChange: onChange,
|
|
16
|
-
disabled: true,
|
|
17
|
-
children: "Accept terms and conditions"
|
|
18
|
-
})]
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
export default App;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Checkbox, getCommonConfig } from "../../../..";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
var onChange = function onChange(e) {
|
|
7
|
-
console.log("checked = ".concat(e.target.checked));
|
|
8
|
-
};
|
|
9
|
-
var App = function App() {
|
|
10
|
-
var _getCommonConfig = getCommonConfig(),
|
|
11
|
-
antPrefix = _getCommonConfig.antPrefix;
|
|
12
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
13
|
-
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
14
|
-
onChange: onChange,
|
|
15
|
-
children: "Accept terms and conditions"
|
|
16
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
17
|
-
className: "ml-6 text-xs font-normal leading-5",
|
|
18
|
-
style: {
|
|
19
|
-
color: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
20
|
-
},
|
|
21
|
-
children: "You agree to our Terms of Service and Privacy Policy."
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export default App;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CodeBlock, CollapsePanel, IconFont, message } from "../../../..";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
var App = function App() {
|
|
7
|
-
var value = "function main() { \n ret = { \n \"result\": { \n \"key0\": params.city + params.date, \n \"key1\": [\"hello\", \"world\"], \n \"key2\": { \n // json_string\u662Fjson\u683C\u5F0F\u7684\u5B57\u7B26\u4E32 \n \"key21\": JSON.parse(params.json_string) \n }, \n }, \n } \n return ret\n }";
|
|
8
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
9
|
-
children: [/*#__PURE__*/_jsx(CollapsePanel, {
|
|
10
|
-
title: "\u4EE3\u7801\u5757",
|
|
11
|
-
collapsedHeight: 64,
|
|
12
|
-
expandedHeight: 200,
|
|
13
|
-
expandOnPanelClick: true,
|
|
14
|
-
extra: /*#__PURE__*/_jsx(IconFont, {
|
|
15
|
-
type: "spark-copy-line",
|
|
16
|
-
style: {
|
|
17
|
-
fontSize: '16px'
|
|
18
|
-
},
|
|
19
|
-
onClick: function onClick() {
|
|
20
|
-
navigator.clipboard.writeText(value);
|
|
21
|
-
message.success('复制成功!');
|
|
22
|
-
}
|
|
23
|
-
}),
|
|
24
|
-
children: /*#__PURE__*/_jsx(CodeBlock, {
|
|
25
|
-
language: 'javascript',
|
|
26
|
-
value: value
|
|
27
|
-
})
|
|
28
|
-
}), /*#__PURE__*/_jsx(CodeBlock, {
|
|
29
|
-
language: 'json',
|
|
30
|
-
value: '{"key0": "value0", "key1": "value1"}'
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
export default App;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CodeBlock } from "../../../..";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
var App = function App() {
|
|
6
|
-
var value = "function main() { \n ret = { \n \"result\": { \n \"key0\": params.city + params.date, \n \"key1\": [\"hello\", \"world\"], \n \"key2\": { \n // json_string\u662Fjson\u683C\u5F0F\u7684\u5B57\u7B26\u4E32 \n \"key21\": JSON.parse(params.json_string) \n }, \n }, \n } \n return ret\n }";
|
|
7
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
8
|
-
children: /*#__PURE__*/_jsx(CodeBlock, {
|
|
9
|
-
language: 'javascript',
|
|
10
|
-
value: value
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
export default App;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface CodeBlockProps {
|
|
2
|
-
language: string | string[];
|
|
3
|
-
value: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
theme?: 'dark' | 'light';
|
|
6
|
-
readOnly?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const langExtensionsMap: Record<string, any[]>;
|
|
9
|
-
export declare const beautifulJson: (val?: string, count?: number) => string;
|
|
10
|
-
declare const CodeMirrorWrapper: (props: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default CodeMirrorWrapper;
|
|
@@ -1,88 +0,0 @@
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread 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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
-
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; }
|
|
13
|
-
import { getCommonConfig } from "../../..";
|
|
14
|
-
import { cpp } from '@codemirror/lang-cpp';
|
|
15
|
-
import { css } from '@codemirror/lang-css';
|
|
16
|
-
import { go } from '@codemirror/lang-go';
|
|
17
|
-
import { html } from '@codemirror/lang-html';
|
|
18
|
-
import { java } from '@codemirror/lang-java';
|
|
19
|
-
import { javascript } from '@codemirror/lang-javascript';
|
|
20
|
-
import { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
21
|
-
import { php } from '@codemirror/lang-php';
|
|
22
|
-
import { python } from '@codemirror/lang-python';
|
|
23
|
-
import { yaml } from '@codemirror/lang-yaml';
|
|
24
|
-
import { linter, lintGutter } from '@codemirror/lint';
|
|
25
|
-
import { vscodeDark, vscodeLight } from '@uiw/codemirror-theme-vscode';
|
|
26
|
-
import CodeMirror from '@uiw/react-codemirror';
|
|
27
|
-
import cls from 'classnames';
|
|
28
|
-
import { omit } from 'lodash-es';
|
|
29
|
-
import { useMemo } from 'react';
|
|
30
|
-
import useIndexStyle from "./index.style";
|
|
31
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
export var langExtensionsMap = {
|
|
33
|
-
javascript: [javascript()],
|
|
34
|
-
jsx: [javascript()],
|
|
35
|
-
python: [python()],
|
|
36
|
-
json: [json()],
|
|
37
|
-
java: [java()],
|
|
38
|
-
yaml: [yaml()],
|
|
39
|
-
php: [php()],
|
|
40
|
-
go: [go()],
|
|
41
|
-
csharp: [cpp()],
|
|
42
|
-
css: [css()],
|
|
43
|
-
html: [html()],
|
|
44
|
-
curl: []
|
|
45
|
-
};
|
|
46
|
-
var lintExtensionsMap = {
|
|
47
|
-
javascript: [lintGutter()],
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
json: [lintGutter(), linter(jsonParseLinter())]
|
|
50
|
-
};
|
|
51
|
-
export var beautifulJson = function beautifulJson() {
|
|
52
|
-
var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '{}';
|
|
53
|
-
var count = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
54
|
-
var finalVal = val;
|
|
55
|
-
try {
|
|
56
|
-
finalVal = JSON.stringify(JSON.parse(val), null, count);
|
|
57
|
-
} catch (_unused) {}
|
|
58
|
-
return finalVal;
|
|
59
|
-
};
|
|
60
|
-
var CodeMirrorWrapper = function CodeMirrorWrapper(props) {
|
|
61
|
-
var commonConfig = getCommonConfig();
|
|
62
|
-
var sparkPrefix = commonConfig.sparkPrefix,
|
|
63
|
-
antPrefix = commonConfig.antPrefix,
|
|
64
|
-
isDarkMode = commonConfig.isDarkMode;
|
|
65
|
-
useIndexStyle({
|
|
66
|
-
sparkPrefix: sparkPrefix,
|
|
67
|
-
antPrefix: antPrefix
|
|
68
|
-
});
|
|
69
|
-
var getTheme = useMemo(function () {
|
|
70
|
-
if (props.theme === undefined) {
|
|
71
|
-
if (isDarkMode) {
|
|
72
|
-
return vscodeDark;
|
|
73
|
-
}
|
|
74
|
-
return vscodeLight;
|
|
75
|
-
}
|
|
76
|
-
return props.theme === 'dark' ? vscodeDark : vscodeLight;
|
|
77
|
-
}, [isDarkMode]);
|
|
78
|
-
var extensions = typeof props.language === 'string' ? [].concat(_toConsumableArray(langExtensionsMap[props.language] || []), _toConsumableArray(props.value && props.language in lintExtensionsMap ? lintExtensionsMap[props.language] : [])) : props.language.reduce(function (ext, lang) {
|
|
79
|
-
return [].concat(_toConsumableArray(ext), [langExtensionsMap[lang]]);
|
|
80
|
-
}, []);
|
|
81
|
-
return /*#__PURE__*/_jsx(CodeMirror, _objectSpread({
|
|
82
|
-
className: cls("".concat(sparkPrefix, "-code-block"), props.className),
|
|
83
|
-
extensions: extensions,
|
|
84
|
-
value: props.language === 'json' ? beautifulJson(props.value) : props.value,
|
|
85
|
-
theme: getTheme
|
|
86
|
-
}, omit(props, ['language', 'theme', 'extensions', 'value'])));
|
|
87
|
-
};
|
|
88
|
-
export default CodeMirrorWrapper;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export declare function getIndexStyleData(params: any): {
|
|
2
|
-
'.cm-theme': {
|
|
3
|
-
border: string;
|
|
4
|
-
borderRadius: string;
|
|
5
|
-
};
|
|
6
|
-
'.cm-gutters': {
|
|
7
|
-
borderRight: string;
|
|
8
|
-
};
|
|
9
|
-
'.cm-gutterElement': {
|
|
10
|
-
color: string;
|
|
11
|
-
};
|
|
12
|
-
'.cm-button': {
|
|
13
|
-
backgroundImage: string;
|
|
14
|
-
background: string;
|
|
15
|
-
border: string;
|
|
16
|
-
borderRadius: string;
|
|
17
|
-
'&:hover': {
|
|
18
|
-
color: string;
|
|
19
|
-
cursor: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
'.cm-search': {
|
|
23
|
-
background: string;
|
|
24
|
-
};
|
|
25
|
-
'.cm-panel.cm-search label': {
|
|
26
|
-
display: string;
|
|
27
|
-
alignItems: string;
|
|
28
|
-
};
|
|
29
|
-
'.cm-panel.cm-search [name=close]': {
|
|
30
|
-
right: string;
|
|
31
|
-
background: string;
|
|
32
|
-
fontSize: string;
|
|
33
|
-
color: string;
|
|
34
|
-
};
|
|
35
|
-
'.cm-textfield': {
|
|
36
|
-
borderRadius: string;
|
|
37
|
-
};
|
|
38
|
-
'.cm-panel.cm-search input[type=checkbox]': {
|
|
39
|
-
border: string;
|
|
40
|
-
};
|
|
41
|
-
'.cm-focused': {
|
|
42
|
-
outline: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
46
|
-
export default useIndexStyle;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var _excluded = ["css"];
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
import createStyle from "../../../libs/createStyle";
|
|
5
|
-
export function getIndexStyleData(params) {
|
|
6
|
-
var antPrefix = params.antPrefix,
|
|
7
|
-
sparkPrefix = params.sparkPrefix;
|
|
8
|
-
return {
|
|
9
|
-
'.cm-theme': {
|
|
10
|
-
border: 'none !important',
|
|
11
|
-
borderRadius: '0 !important'
|
|
12
|
-
},
|
|
13
|
-
'.cm-gutters': {
|
|
14
|
-
borderRight: 'none !important'
|
|
15
|
-
},
|
|
16
|
-
'.cm-gutterElement': {
|
|
17
|
-
color: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
18
|
-
},
|
|
19
|
-
'.cm-button': {
|
|
20
|
-
backgroundImage: 'none !important',
|
|
21
|
-
background: "var(--".concat(antPrefix, "-color-bg-base) !important"),
|
|
22
|
-
border: "1px solid var(--".concat(antPrefix, "-color-border-secondary) !important"),
|
|
23
|
-
borderRadius: '4px !important',
|
|
24
|
-
'&:hover': {
|
|
25
|
-
color: "var(--".concat(antPrefix, "-color-text-secondary)"),
|
|
26
|
-
cursor: 'pointer'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
'.cm-search': {
|
|
30
|
-
background: "var(--".concat(antPrefix, "-color-fill-secondary) !important")
|
|
31
|
-
},
|
|
32
|
-
'.cm-panel.cm-search label': {
|
|
33
|
-
display: 'inline-flex',
|
|
34
|
-
alignItems: 'center'
|
|
35
|
-
},
|
|
36
|
-
'.cm-panel.cm-search [name=close]': {
|
|
37
|
-
right: '8px !important',
|
|
38
|
-
background: 'none !important',
|
|
39
|
-
fontSize: '16px !important',
|
|
40
|
-
color: "var(--".concat(antPrefix, "-color-text-tertiary) !important")
|
|
41
|
-
},
|
|
42
|
-
'.cm-textfield': {
|
|
43
|
-
borderRadius: '4px'
|
|
44
|
-
},
|
|
45
|
-
'.cm-panel.cm-search input[type=checkbox]': {
|
|
46
|
-
border: "1px solid var(--".concat(antPrefix, "-color-border-secondary) !important")
|
|
47
|
-
},
|
|
48
|
-
'.cm-focused': {
|
|
49
|
-
outline: 'none !important'
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
var useIndexStyle = createStyle(function (_ref) {
|
|
54
|
-
var css = _ref.css,
|
|
55
|
-
params = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
-
var result = css(getIndexStyleData(params));
|
|
57
|
-
return result;
|
|
58
|
-
});
|
|
59
|
-
export default useIndexStyle;
|