@fonixtree/magic-design 0.0.11 → 0.0.16
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/es/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/es/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/es/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/es/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/es/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/es/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +299 -0
- package/es/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/es/assets/fonts/magic-box-iconfont.js +1 -0
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -0
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/icon/index.js +68 -0
- package/es/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/es/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/es/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/es/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/es/assets/images/layout-icon/layout-search.png +0 -0
- package/es/assets/images/layout-icon/newsletter.svg +7 -0
- package/es/assets/less/button.less +9 -0
- package/es/assets/less/common.less +82 -0
- package/es/assets/less/cylon-antd.less +32534 -0
- package/es/assets/less/font.less +50 -0
- package/es/assets/less/global.less +8 -0
- package/es/assets/less/index.less +11 -0
- package/es/assets/less/input.less +8 -0
- package/es/assets/less/menu.less +21 -0
- package/es/assets/less/modal.less +16 -0
- package/es/assets/less/select.less +19 -0
- package/es/assets/less/slider.less +21 -0
- package/es/assets/less/switch.less +20 -0
- package/es/assets/less/table.less +40 -0
- package/es/assets/less/variables.less +4 -0
- package/es/common/AlignSelector/index.js +104 -0
- package/es/common/AlignSelector/index.less +28 -0
- package/es/common/Button/index.js +134 -0
- package/es/common/Button/index.less +68 -0
- package/es/common/ButtonIconLayout/index.js +103 -0
- package/es/common/ButtonIconLayout/index.less +53 -0
- package/{src/components → es}/common/Collapse/index.js +97 -36
- package/es/common/Collapse/index.less +97 -0
- package/es/common/ColorPicker/imgs/no-color.png +0 -0
- package/{src/components → es}/common/ColorPicker/index.js +50 -13
- package/es/common/ColorPicker/index.less +26 -0
- package/es/common/ColorPickerInput/imgs/code.png +0 -0
- package/es/common/ColorPickerInput/index.js +114 -0
- package/es/common/ColorPickerInput/index.less +50 -0
- package/es/common/CountDown/index.js +151 -0
- package/es/common/CountDown/index.less +23 -0
- package/es/common/Field/index.js +80 -0
- package/es/common/Field/index.less +37 -0
- package/es/common/FontStyles/index.js +178 -0
- package/es/common/FontStyles/index.less +63 -0
- package/es/common/GroupList/defaultImg.png +0 -0
- package/{src/components → es}/common/GroupList/index.js +76 -36
- package/es/common/GroupList/index.less +85 -0
- package/es/common/IconPicker/index.js +147 -0
- package/es/common/IconPicker/index.less +46 -0
- package/es/common/Iconfont/index.js +148 -0
- package/es/common/Iconfont/index.less +20 -0
- package/{src/components → es}/common/ImageModal/CommonModal/const.js +14 -8
- package/es/common/ImageModal/CommonModal/index.js +46 -0
- package/es/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/es/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/es/common/ImageModal/const.js +24 -0
- package/es/common/ImageModal/index.js +748 -0
- package/es/common/ImageModal/index.less +21 -0
- package/es/common/ImagePicker/index.js +162 -0
- package/es/common/ImagePicker/index.less +104 -0
- package/es/common/InputNumber/index.js +91 -0
- package/es/common/InputNumber/index.less +33 -0
- package/es/common/LayoutSelector/imgs/center.png +0 -0
- package/es/common/LayoutSelector/imgs/left.png +0 -0
- package/es/common/LayoutSelector/imgs/right.png +0 -0
- package/es/common/LayoutSelector/index.js +111 -0
- package/es/common/LayoutSelector/index.less +34 -0
- package/es/common/LinkModal/CatgTable/index.js +234 -0
- package/es/common/LinkModal/CouponTable/index.js +299 -0
- package/es/common/LinkModal/CustomTable/index.js +227 -0
- package/es/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/es/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/es/common/LinkModal/FunctionTable/index.js +221 -0
- package/es/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/es/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/es/common/LinkModal/index.js +136 -0
- package/es/common/LinkModal/index.less +108 -0
- package/es/common/NewImg/index.js +165 -0
- package/es/common/NewImg/index.less +0 -0
- package/es/common/ProductModal/index.js +760 -0
- package/es/common/ProductModal/index.less +238 -0
- package/es/common/ProductSource/index.js +250 -0
- package/es/common/ProductSource/index.less +12 -0
- package/{src/components → es}/common/RcCollapse/Collapse.js +81 -17
- package/es/common/RcCollapse/Panel.js +193 -0
- package/es/common/RcCollapse/PanelContent.js +59 -0
- package/es/common/RcCollapse/index.js +15 -0
- package/es/common/RcCollapse/index.less +108 -0
- package/es/common/RcCollapse/interface.js +1 -0
- package/es/common/RcCollapse/motion.less +12 -0
- package/{src/components → es}/common/RcCollapse/motionUtil.js +13 -6
- package/es/common/Slider/index.js +151 -0
- package/es/common/Slider/index.less +45 -0
- package/{src/components → es}/common/SwitchCollapse/index.js +74 -20
- package/es/common/SwitchCollapse/index.less +40 -0
- package/es/common/UrlPicker/index.js +119 -0
- package/es/common/UrlPicker/index.less +72 -0
- package/es/common/index.js +127 -0
- package/{src/components → es}/composite-comp/bol/components/Banner/defaultJSON.js +30 -20
- package/es/composite-comp/bol/components/Banner/index.js +89 -0
- package/{src/components → es}/composite-comp/bol/components/Button/defaultJSON.js +31 -10
- package/es/composite-comp/bol/components/Button/index.js +0 -0
- package/{src/components → es}/composite-comp/bol/components/Carousel/defaultJSON.js +36 -27
- package/{src/components → es}/composite-comp/bol/components/Divider/defaultJSON.js +11 -4
- package/{src/components → es}/composite-comp/bol/components/ImageGallery/defaultJSON.js +18 -8
- package/{src/components → es}/composite-comp/bol/components/ImageText/defaultJSON.js +31 -20
- package/{src/components → es}/composite-comp/bol/components/Newsletter/defaultJSON.js +35 -14
- package/{src/components → es}/composite-comp/bol/components/Tag/defaultJSON.js +32 -11
- package/{src/components → es}/composite-comp/bol/components/Text/defaultJSON.js +38 -14
- package/{src/components → es}/composite-comp/dito/components/FlashDeal/defaultJSON.js +17 -10
- package/{src/components → es}/composite-comp/dito/components/Recommend/defaultJSON.js +24 -14
- package/{src/components → es}/composite-comp/dito/components/SearchBar/defaultJSON.js +19 -7
- package/es/constants/component-types.js +87 -0
- package/es/constants/index.js +144 -0
- package/es/constants/layout.js +120 -0
- package/es/core/Designer/CompListPanel/index.js +156 -0
- package/es/core/Designer/CompListPanel/index.less +69 -0
- package/es/core/Designer/ConfigPanel/index.js +294 -0
- package/es/core/Designer/ConfigPanel/index.less +139 -0
- package/{src/components → es}/core/Designer/History/index.js +29 -20
- package/es/core/Designer/PageCompList/index.js +266 -0
- package/es/core/Designer/PageCompList/index.less +114 -0
- package/es/core/Designer/QuickMenuBar/index.js +176 -0
- package/es/core/Designer/QuickMenuBar/index.less +67 -0
- package/es/core/Designer/ViewArea/index.js +150 -0
- package/es/core/Designer/ViewArea/index.less +53 -0
- package/{src/components → es}/core/Designer/index.js +156 -66
- package/es/core/Designer/index.less +6 -0
- package/es/core/Renderer/index.js +82 -0
- package/es/decorator/compositeDecorator.js +130 -0
- package/es/decorator/index.js +23 -0
- package/{src/components → es}/decorator/metaDecorator.js +68 -19
- package/es/index.js +27 -0
- package/es/meta-comp/components/Button/index.js +189 -0
- package/es/meta-comp/components/Button/index.less +19 -0
- package/es/meta-comp/components/Image/index.js +183 -0
- package/{src/components → es}/meta-comp/components/Text/index.js +141 -48
- package/es/meta-comp/components/index.js +31 -0
- package/es/meta-comp/config-panels/BaseConfig.js +87 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/{src/components → es}/mobx/Store.js +23 -16
- package/es/mobx/index.js +36 -0
- package/es/utils/androidUtil.js +113 -0
- package/{src/components → es}/utils/businessUtil.js +48 -27
- package/{src/components → es}/utils/commonUtil.js +108 -42
- package/es/utils/compJsonUtil.js +240 -0
- package/es/utils/coreUtil.js +156 -0
- package/es/utils/currencyUtil.js +190 -0
- package/{src/components → es}/utils/dataTreeUtils.js +36 -24
- package/es/utils/dateUtil.js +70 -0
- package/es/utils/storeUtil.js +258 -0
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/lib/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/lib/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/lib/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +299 -0
- package/lib/assets/fonts/magic-box-iconfont.css.bak +299 -0
- package/lib/assets/fonts/magic-box-iconfont.js +1 -0
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -0
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/icon/index.js +68 -0
- package/lib/assets/images/layout-icon/carouselLayout1.png +0 -0
- package/lib/assets/images/layout-icon/carouselLayout2.png +0 -0
- package/lib/assets/images/layout-icon/dividerLayout.svg +4 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +18 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +9 -0
- package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
- package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
- package/lib/assets/images/layout-icon/layout-search.png +0 -0
- package/lib/assets/images/layout-icon/newsletter.svg +7 -0
- package/lib/assets/less/button.less +9 -0
- package/lib/assets/less/common.less +82 -0
- package/lib/assets/less/cylon-antd.less +32534 -0
- package/lib/assets/less/font.less +50 -0
- package/lib/assets/less/global.less +8 -0
- package/lib/assets/less/index.less +11 -0
- package/lib/assets/less/input.less +8 -0
- package/lib/assets/less/menu.less +21 -0
- package/lib/assets/less/modal.less +16 -0
- package/lib/assets/less/select.less +19 -0
- package/lib/assets/less/slider.less +21 -0
- package/lib/assets/less/switch.less +20 -0
- package/lib/assets/less/table.less +40 -0
- package/lib/assets/less/variables.less +4 -0
- package/lib/common/AlignSelector/index.js +104 -0
- package/lib/common/AlignSelector/index.less +28 -0
- package/lib/common/Button/index.js +134 -0
- package/lib/common/Button/index.less +68 -0
- package/lib/common/ButtonIconLayout/index.js +103 -0
- package/lib/common/ButtonIconLayout/index.less +53 -0
- package/lib/common/Collapse/index.js +384 -0
- package/lib/common/Collapse/index.less +97 -0
- package/lib/common/ColorPicker/imgs/no-color.png +0 -0
- package/lib/common/ColorPicker/index.js +131 -0
- package/lib/common/ColorPicker/index.less +26 -0
- package/lib/common/ColorPickerInput/imgs/code.png +0 -0
- package/lib/common/ColorPickerInput/index.js +114 -0
- package/lib/common/ColorPickerInput/index.less +50 -0
- package/lib/common/CountDown/index.js +151 -0
- package/lib/common/CountDown/index.less +23 -0
- package/lib/common/Field/index.js +80 -0
- package/lib/common/Field/index.less +37 -0
- package/lib/common/FontStyles/index.js +178 -0
- package/lib/common/FontStyles/index.less +63 -0
- package/lib/common/GroupList/defaultImg.png +0 -0
- package/lib/common/GroupList/index.js +210 -0
- package/lib/common/GroupList/index.less +85 -0
- package/lib/common/IconPicker/index.js +147 -0
- package/lib/common/IconPicker/index.less +46 -0
- package/lib/common/Iconfont/index.js +148 -0
- package/lib/common/Iconfont/index.less +20 -0
- package/lib/common/ImageModal/CommonModal/const.js +22 -0
- package/lib/common/ImageModal/CommonModal/index.js +46 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.js +80 -0
- package/lib/common/ImageModal/CommonSelPicCard/index.less +40 -0
- package/lib/common/ImageModal/const.js +24 -0
- package/lib/common/ImageModal/index.js +748 -0
- package/lib/common/ImageModal/index.less +21 -0
- package/lib/common/ImagePicker/index.js +162 -0
- package/lib/common/ImagePicker/index.less +104 -0
- package/lib/common/InputNumber/index.js +91 -0
- package/lib/common/InputNumber/index.less +33 -0
- package/lib/common/LayoutSelector/imgs/center.png +0 -0
- package/lib/common/LayoutSelector/imgs/left.png +0 -0
- package/lib/common/LayoutSelector/imgs/right.png +0 -0
- package/lib/common/LayoutSelector/index.js +111 -0
- package/lib/common/LayoutSelector/index.less +34 -0
- package/lib/common/LinkModal/CatgTable/index.js +234 -0
- package/lib/common/LinkModal/CouponTable/index.js +299 -0
- package/lib/common/LinkModal/CustomTable/index.js +227 -0
- package/lib/common/LinkModal/FilteredProductModal/index.js +640 -0
- package/lib/common/LinkModal/FilteredProductModal/index.less +113 -0
- package/lib/common/LinkModal/FunctionTable/index.js +221 -0
- package/lib/common/LinkModal/ProductDetailPage/index.js +433 -0
- package/lib/common/LinkModal/ProductDetailPage/index.less +21 -0
- package/lib/common/LinkModal/index.js +136 -0
- package/lib/common/LinkModal/index.less +108 -0
- package/lib/common/NewImg/index.js +165 -0
- package/lib/common/NewImg/index.less +0 -0
- package/lib/common/ProductModal/index.js +760 -0
- package/lib/common/ProductModal/index.less +238 -0
- package/lib/common/ProductSource/index.js +250 -0
- package/lib/common/ProductSource/index.less +12 -0
- package/lib/common/RcCollapse/Collapse.js +240 -0
- package/lib/common/RcCollapse/Panel.js +193 -0
- package/lib/common/RcCollapse/PanelContent.js +59 -0
- package/lib/common/RcCollapse/index.js +15 -0
- package/lib/common/RcCollapse/index.less +108 -0
- package/lib/common/RcCollapse/interface.js +1 -0
- package/lib/common/RcCollapse/motion.less +12 -0
- package/lib/common/RcCollapse/motionUtil.js +44 -0
- package/lib/common/Slider/index.js +151 -0
- package/lib/common/Slider/index.less +45 -0
- package/lib/common/SwitchCollapse/index.js +216 -0
- package/lib/common/SwitchCollapse/index.less +40 -0
- package/lib/common/UrlPicker/index.js +119 -0
- package/lib/common/UrlPicker/index.less +72 -0
- package/lib/common/index.js +127 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +268 -0
- package/lib/composite-comp/bol/components/Banner/index.js +89 -0
- package/lib/composite-comp/bol/components/Button/defaultJSON.js +114 -0
- package/lib/composite-comp/bol/components/Button/index.js +103 -0
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +295 -0
- package/lib/composite-comp/bol/components/Divider/defaultJSON.js +47 -0
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +74 -0
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +546 -0
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +135 -0
- package/lib/composite-comp/bol/components/Tag/defaultJSON.js +112 -0
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +149 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +183 -0
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +220 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +56 -0
- package/lib/constants/component-types.js +87 -0
- package/lib/constants/index.js +144 -0
- package/lib/constants/layout.js +120 -0
- package/lib/core/Designer/CompListPanel/index.js +156 -0
- package/lib/core/Designer/CompListPanel/index.less +69 -0
- package/lib/core/Designer/ConfigPanel/index.js +294 -0
- package/lib/core/Designer/ConfigPanel/index.less +139 -0
- package/lib/core/Designer/History/index.js +91 -0
- package/lib/core/Designer/PageCompList/index.js +266 -0
- package/lib/core/Designer/PageCompList/index.less +114 -0
- package/lib/core/Designer/QuickMenuBar/index.js +176 -0
- package/lib/core/Designer/QuickMenuBar/index.less +67 -0
- package/lib/core/Designer/ViewArea/index.js +150 -0
- package/lib/core/Designer/ViewArea/index.less +53 -0
- package/lib/core/Designer/index.js +454 -0
- package/lib/core/Designer/index.less +6 -0
- package/lib/core/Renderer/index.js +82 -0
- package/lib/decorator/compositeDecorator.js +130 -0
- package/lib/decorator/index.js +23 -0
- package/lib/decorator/metaDecorator.js +199 -0
- package/lib/index.js +27 -0
- package/lib/meta-comp/components/Button/index.js +189 -0
- package/lib/meta-comp/components/Button/index.less +0 -0
- package/lib/meta-comp/components/Image/index.js +183 -0
- package/lib/meta-comp/components/Text/index.js +478 -0
- package/lib/meta-comp/components/index.js +31 -0
- package/lib/meta-comp/config-panels/BaseConfig.js +87 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +356 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +395 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +358 -0
- package/lib/mobx/Store.js +95 -0
- package/lib/mobx/index.js +36 -0
- package/lib/utils/androidUtil.js +113 -0
- package/lib/utils/businessUtil.js +235 -0
- package/lib/utils/commonUtil.js +289 -0
- package/lib/utils/compJsonUtil.js +240 -0
- package/lib/utils/coreUtil.js +156 -0
- package/lib/utils/currencyUtil.js +190 -0
- package/lib/utils/dataTreeUtils.js +105 -0
- package/lib/utils/dateUtil.js +70 -0
- package/lib/utils/storeUtil.js +258 -0
- package/package.json +45 -6
- package/_virtual/__node-resolve_empty.js +0 -6
- package/_virtual/_cloneBuffer.js +0 -3
- package/_virtual/_commonjsHelpers.js +0 -24
- package/_virtual/_node-resolve_empty.js +0 -3
- package/_virtual/_nodeUtil.js +0 -3
- package/_virtual/_rollupPluginBabelHelpers.js +0 -18
- package/_virtual/index.js +0 -3
- package/_virtual/index2.js +0 -3
- package/_virtual/index3.js +0 -3
- package/_virtual/index4.js +0 -3
- package/_virtual/index5.js +0 -5
- package/_virtual/interopRequireDefault.js +0 -3
- package/_virtual/isBuffer.js +0 -3
- package/_virtual/react-is.development.js +0 -3
- package/_virtual/react-is.production.min.js +0 -3
- package/_virtual/rng-browser.js +0 -3
- package/_virtual/toArray.js +0 -3
- package/src/components/assets/images/layout-icon/carouselLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/carouselLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/dividerLayout.svg.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +0 -3
- package/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +0 -3
- package/src/components/assets/images/layout-icon/layout-search.png.js +0 -3
- package/src/components/assets/images/layout-icon/newsletter.svg.js +0 -3
- package/src/components/assets/less/cylon-antd.less.js +0 -3
- package/src/components/assets/less/index.less.js +0 -4
- package/src/components/common/AlignSelector/index.js +0 -65
- package/src/components/common/AlignSelector/index.less.js +0 -4
- package/src/components/common/Button/index.js +0 -75
- package/src/components/common/Button/index.less.js +0 -4
- package/src/components/common/ButtonIconLayout/index.js +0 -66
- package/src/components/common/ButtonIconLayout/index.less.js +0 -4
- package/src/components/common/Collapse/index.less.js +0 -4
- package/src/components/common/ColorPicker/index.less.js +0 -4
- package/src/components/common/ColorPickerInput/index.js +0 -76
- package/src/components/common/ColorPickerInput/index.less.js +0 -4
- package/src/components/common/CountDown/index.js +0 -110
- package/src/components/common/CountDown/index.less.js +0 -4
- package/src/components/common/Field/index.js +0 -43
- package/src/components/common/Field/index.less.js +0 -4
- package/src/components/common/FontStyles/index.js +0 -124
- package/src/components/common/FontStyles/index.less.js +0 -4
- package/src/components/common/GroupList/defaultImg.png.js +0 -3
- package/src/components/common/GroupList/index.less.js +0 -4
- package/src/components/common/IconPicker/index.js +0 -93
- package/src/components/common/IconPicker/index.less.js +0 -4
- package/src/components/common/Iconfont/index.js +0 -74
- package/src/components/common/Iconfont/index.less.js +0 -4
- package/src/components/common/ImageModal/CommonModal/index.js +0 -33
- package/src/components/common/ImageModal/CommonSelPicCard/index.js +0 -66
- package/src/components/common/ImageModal/CommonSelPicCard/index.less.js +0 -4
- package/src/components/common/ImageModal/const.js +0 -18
- package/src/components/common/ImageModal/index.js +0 -547
- package/src/components/common/ImageModal/index.less.js +0 -4
- package/src/components/common/ImagePicker/index.js +0 -124
- package/src/components/common/ImagePicker/index.less.js +0 -4
- package/src/components/common/InputNumber/index.js +0 -54
- package/src/components/common/InputNumber/index.less.js +0 -4
- package/src/components/common/LayoutSelector/imgs/center.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/left.png.js +0 -3
- package/src/components/common/LayoutSelector/imgs/right.png.js +0 -3
- package/src/components/common/LayoutSelector/index.js +0 -70
- package/src/components/common/LayoutSelector/index.less.js +0 -4
- package/src/components/common/LinkModal/CatgTable/index.js +0 -78
- package/src/components/common/LinkModal/CouponTable/index.js +0 -111
- package/src/components/common/LinkModal/CustomTable/index.js +0 -72
- package/src/components/common/LinkModal/FilteredProductModal/index.js +0 -463
- package/src/components/common/LinkModal/FilteredProductModal/index.less.js +0 -4
- package/src/components/common/LinkModal/FunctionTable/index.js +0 -66
- package/src/components/common/LinkModal/ProductDetailPage/index.js +0 -241
- package/src/components/common/LinkModal/ProductDetailPage/index.less.js +0 -4
- package/src/components/common/LinkModal/index.js +0 -112
- package/src/components/common/LinkModal/index.less.js +0 -4
- package/src/components/common/NewImg/index.js +0 -91
- package/src/components/common/ProductModal/index.js +0 -556
- package/src/components/common/ProductModal/index.less.js +0 -4
- package/src/components/common/ProductSource/index.js +0 -91
- package/src/components/common/ProductSource/index.less.js +0 -4
- package/src/components/common/RcCollapse/Panel.js +0 -146
- package/src/components/common/RcCollapse/PanelContent.js +0 -41
- package/src/components/common/RcCollapse/index.js +0 -6
- package/src/components/common/RcCollapse/index.less.js +0 -4
- package/src/components/common/Slider/index.js +0 -95
- package/src/components/common/Slider/index.less.js +0 -4
- package/src/components/common/SwitchCollapse/index.less.js +0 -4
- package/src/components/common/UrlPicker/index.js +0 -81
- package/src/components/common/UrlPicker/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +0 -3
- package/src/components/composite-comp/bol/components/Banner/index.js +0 -34
- package/src/components/composite-comp/bol/components/Banner/mobile/index.js +0 -176
- package/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Banner/pc/index.js +0 -254
- package/src/components/composite-comp/bol/components/Banner/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Button/index.js +0 -48
- package/src/components/composite-comp/bol/components/Button/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/components/Carousel/index.js +0 -37
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.js +0 -217
- package/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Carousel/pc/index.js +0 -208
- package/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Divider/index.js +0 -48
- package/src/components/composite-comp/bol/components/ImageGallery/index.js +0 -30
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +0 -47
- package/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/index.js +0 -33
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.js +0 -143
- package/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/ImageText/pc/index.js +0 -112
- package/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Newsletter/index.js +0 -65
- package/src/components/composite-comp/bol/components/Newsletter/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Tag/index.js +0 -52
- package/src/components/composite-comp/bol/components/Tag/index.less.js +0 -4
- package/src/components/composite-comp/bol/components/Text/index.js +0 -68
- package/src/components/composite-comp/bol/components/Text/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +0 -73
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +0 -200
- package/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +0 -35
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +0 -53
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +0 -175
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +0 -54
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +0 -153
- package/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +0 -66
- package/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +0 -91
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -74
- package/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +0 -170
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -143
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +0 -89
- package/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +0 -44
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +0 -88
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +0 -48
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +0 -85
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +0 -55
- package/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +0 -109
- package/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +0 -107
- package/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +0 -116
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +0 -79
- package/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +0 -70
- package/src/components/composite-comp/common/components/ImageLabel/index.js +0 -47
- package/src/components/composite-comp/common/components/ImageLabel/index.less.js +0 -4
- package/src/components/composite-comp/common/components/ProductItem/index.js +0 -121
- package/src/components/composite-comp/common/components/ProductItem/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +0 -89
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -182
- package/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +0 -4
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +0 -133
- package/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/FlashDeal/index.js +0 -31
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +0 -3
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +0 -233
- package/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/Recommend/index.js +0 -31
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.js +0 -317
- package/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +0 -3
- package/src/components/composite-comp/dito/components/SearchBar/index.js +0 -31
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +0 -89
- package/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +0 -121
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -102
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +0 -97
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +0 -89
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +0 -4
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +0 -3
- package/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -49
- package/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +0 -115
- package/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +0 -156
- package/src/components/constants/component-types.js +0 -48
- package/src/components/constants/index.js +0 -74
- package/src/components/constants/layout.js +0 -90
- package/src/components/core/Designer/CompListPanel/CompCard/index.js +0 -33
- package/src/components/core/Designer/CompListPanel/CompCard/index.less.js +0 -4
- package/src/components/core/Designer/CompListPanel/index.js +0 -109
- package/src/components/core/Designer/CompListPanel/index.less.js +0 -4
- package/src/components/core/Designer/ConfigPanel/index.js +0 -246
- package/src/components/core/Designer/ConfigPanel/index.less.js +0 -4
- package/src/components/core/Designer/PageCompList/index.js +0 -248
- package/src/components/core/Designer/PageCompList/index.less.js +0 -4
- package/src/components/core/Designer/QuickMenuBar/index.js +0 -130
- package/src/components/core/Designer/QuickMenuBar/index.less.js +0 -4
- package/src/components/core/Designer/ViewArea/index.js +0 -86
- package/src/components/core/Designer/ViewArea/index.less.js +0 -4
- package/src/components/core/Designer/index.less.js +0 -4
- package/src/components/core/Renderer/index.js +0 -55
- package/src/components/decorator/compositeDecorator.js +0 -94
- package/src/components/index.js +0 -4
- package/src/components/meta-comp/components/Button/index.js +0 -113
- package/src/components/meta-comp/components/Button/index.less.js +0 -4
- package/src/components/meta-comp/components/Image/index.js +0 -121
- package/src/components/meta-comp/components/Image/index.less.js +0 -4
- package/src/components/meta-comp/components/Text/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/BaseConfig.js +0 -47
- package/src/components/meta-comp/config-panels/ButtonConfig/index.js +0 -308
- package/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/ImageConfig/index.js +0 -179
- package/src/components/meta-comp/config-panels/ImageConfig/index.less.js +0 -4
- package/src/components/meta-comp/config-panels/TextConfig/index.js +0 -310
- package/src/components/meta-comp/config-panels/TextConfig/index.less.js +0 -4
- package/src/components/mobx/index.js +0 -12
- package/src/components/utils/androidUtil.js +0 -22
- package/src/components/utils/coreUtil.js +0 -108
- package/src/components/utils/currencyUtil.js +0 -110
- package/src/components/utils/dateUtil.js +0 -30
- package/src/components/utils/storeUtil.js +0 -113
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.m-button-icon-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
|
|
6
|
+
.item-wrap {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
width: 94px;
|
|
11
|
+
height: 50px;
|
|
12
|
+
background: #FFFFFF;
|
|
13
|
+
border: 1px solid #D2D9E5;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
margin-right: 12px;
|
|
16
|
+
margin-bottom: 12px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
// &:nth-child(3) {
|
|
20
|
+
// margin-right: 0;
|
|
21
|
+
// }
|
|
22
|
+
|
|
23
|
+
&.active {
|
|
24
|
+
border: 2px solid #2F54EB;
|
|
25
|
+
color: #232F46;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.vertical {
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
|
|
31
|
+
.el:first-child {
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.el:first-child {
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text {
|
|
41
|
+
font-family: 'Open Sans';
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
color: #232F46;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
img {
|
|
49
|
+
height: 20px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
@@ -1,12 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _mobx = require("../../mobx");
|
|
15
|
+
|
|
16
|
+
var _RcCollapse = _interopRequireWildcard(require("../RcCollapse"));
|
|
17
|
+
|
|
18
|
+
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
19
|
+
|
|
20
|
+
require("./index.less");
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
29
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
30
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
31
|
+
__proto__: []
|
|
32
|
+
} instanceof Array && function (d, b) {
|
|
33
|
+
d.__proto__ = b;
|
|
34
|
+
} || function (d, b) {
|
|
35
|
+
for (var p in b) {
|
|
36
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return _extendStatics(d, b);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return function (d, b) {
|
|
44
|
+
_extendStatics(d, b);
|
|
45
|
+
|
|
46
|
+
function __() {
|
|
47
|
+
this.constructor = d;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
10
69
|
|
|
11
70
|
var debug = require('debug')('worker:Collapse'); // @inject('store')
|
|
12
71
|
// @observer
|
|
@@ -43,10 +102,11 @@ function (_super) {
|
|
|
43
102
|
return (_a = src.metaOption) === null || _a === void 0 ? void 0 : _a.open;
|
|
44
103
|
});
|
|
45
104
|
|
|
46
|
-
if (first && !store.clickedMeta) {
|
|
47
|
-
store.setState({
|
|
105
|
+
if (first && !_mobx.store.clickedMeta) {
|
|
106
|
+
_mobx.store.setState({
|
|
48
107
|
clickedMeta: (_a = first.metaOption) === null || _a === void 0 ? void 0 : _a.id
|
|
49
108
|
});
|
|
109
|
+
|
|
50
110
|
actives.push(((_b = first.metaOption) === null || _b === void 0 ? void 0 : _b.id) || first.key);
|
|
51
111
|
}
|
|
52
112
|
} else {
|
|
@@ -114,14 +174,14 @@ function (_super) {
|
|
|
114
174
|
|
|
115
175
|
if (extraType === 'triangle') {
|
|
116
176
|
if (activeKey.includes(key)) {
|
|
117
|
-
return /*#__PURE__*/
|
|
177
|
+
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
118
178
|
color: "#8493AF",
|
|
119
179
|
size: 20,
|
|
120
180
|
type: "icon-up"
|
|
121
181
|
});
|
|
122
182
|
}
|
|
123
183
|
|
|
124
|
-
return /*#__PURE__*/
|
|
184
|
+
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
125
185
|
color: "#8493AF",
|
|
126
186
|
size: 20,
|
|
127
187
|
type: "icon-down"
|
|
@@ -131,14 +191,14 @@ function (_super) {
|
|
|
131
191
|
|
|
132
192
|
if (extraType === 'arrow') {
|
|
133
193
|
if (activeKey.includes(key)) {
|
|
134
|
-
return /*#__PURE__*/
|
|
194
|
+
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
135
195
|
color: "#8493AF",
|
|
136
196
|
size: 20,
|
|
137
197
|
type: "icon-outlined-up"
|
|
138
198
|
});
|
|
139
199
|
}
|
|
140
200
|
|
|
141
|
-
return /*#__PURE__*/
|
|
201
|
+
return /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
142
202
|
color: "#8493AF",
|
|
143
203
|
size: 20,
|
|
144
204
|
type: "icon-outlined-down"
|
|
@@ -147,9 +207,9 @@ function (_super) {
|
|
|
147
207
|
|
|
148
208
|
|
|
149
209
|
if (extraType === 'switch') {
|
|
150
|
-
return /*#__PURE__*/
|
|
210
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Switch, {
|
|
151
211
|
checked: (_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.open,
|
|
152
|
-
onChange: function (checked) {
|
|
212
|
+
onChange: function onChange(checked) {
|
|
153
213
|
return _this.onSwitchChange(checked, panel);
|
|
154
214
|
}
|
|
155
215
|
});
|
|
@@ -157,9 +217,9 @@ function (_super) {
|
|
|
157
217
|
|
|
158
218
|
|
|
159
219
|
if (extraType === 'checkbox') {
|
|
160
|
-
return /*#__PURE__*/
|
|
220
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
|
|
161
221
|
checked: panel.metaOption.open,
|
|
162
|
-
onChange: function (e) {
|
|
222
|
+
onChange: function onChange(e) {
|
|
163
223
|
return _this.onCheckBoxChange(e, panel);
|
|
164
224
|
}
|
|
165
225
|
});
|
|
@@ -173,7 +233,7 @@ function (_super) {
|
|
|
173
233
|
return;
|
|
174
234
|
}
|
|
175
235
|
|
|
176
|
-
store.setState({
|
|
236
|
+
_mobx.store.setState({
|
|
177
237
|
hoveredMeta: (_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id
|
|
178
238
|
});
|
|
179
239
|
};
|
|
@@ -183,7 +243,7 @@ function (_super) {
|
|
|
183
243
|
return;
|
|
184
244
|
}
|
|
185
245
|
|
|
186
|
-
store.setState({
|
|
246
|
+
_mobx.store.setState({
|
|
187
247
|
hoveredMeta: ''
|
|
188
248
|
});
|
|
189
249
|
};
|
|
@@ -199,14 +259,14 @@ function (_super) {
|
|
|
199
259
|
var activeStyle = showColor ? {
|
|
200
260
|
color: '#2F54EB'
|
|
201
261
|
} : {};
|
|
202
|
-
return /*#__PURE__*/
|
|
262
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
203
263
|
className: "header_wrap",
|
|
204
|
-
onMouseEnter: function () {
|
|
264
|
+
onMouseEnter: function onMouseEnter() {
|
|
205
265
|
return _this.headerMouseEnter(panel);
|
|
206
266
|
},
|
|
207
267
|
onMouseLeave: _this.headerMouseLeave,
|
|
208
268
|
style: __assign(__assign({}, headerStyle), activeStyle)
|
|
209
|
-
}, /*#__PURE__*/
|
|
269
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, name));
|
|
210
270
|
};
|
|
211
271
|
|
|
212
272
|
_this.panelCollapsible = function (panel) {
|
|
@@ -232,7 +292,7 @@ function (_super) {
|
|
|
232
292
|
|
|
233
293
|
var type = _this.props.type;
|
|
234
294
|
|
|
235
|
-
if (store.hoveredMeta === ((_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id) && type === 'switch') {
|
|
295
|
+
if (_mobx.store.hoveredMeta === ((_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id) && type === 'switch') {
|
|
236
296
|
return true;
|
|
237
297
|
}
|
|
238
298
|
|
|
@@ -247,7 +307,7 @@ function (_super) {
|
|
|
247
307
|
});
|
|
248
308
|
|
|
249
309
|
if (type === 'switch') {
|
|
250
|
-
store.setState({
|
|
310
|
+
_mobx.store.setState({
|
|
251
311
|
clickedMeta: value
|
|
252
312
|
});
|
|
253
313
|
}
|
|
@@ -263,10 +323,10 @@ function (_super) {
|
|
|
263
323
|
CommonCollapse.prototype.componentDidMount = function () {
|
|
264
324
|
var _this = this;
|
|
265
325
|
|
|
266
|
-
this.distroy = autorun(function () {
|
|
267
|
-
if (_this.props.type === 'switch' && store.clickedMeta) {
|
|
326
|
+
this.distroy = (0, _mobx.autorun)(function () {
|
|
327
|
+
if (_this.props.type === 'switch' && _mobx.store.clickedMeta) {
|
|
268
328
|
_this.setState({
|
|
269
|
-
activeKey: [store.clickedMeta]
|
|
329
|
+
activeKey: [_mobx.store.clickedMeta]
|
|
270
330
|
});
|
|
271
331
|
}
|
|
272
332
|
});
|
|
@@ -288,9 +348,9 @@ function (_super) {
|
|
|
288
348
|
source = _a.source,
|
|
289
349
|
headerSize = _a.headerSize,
|
|
290
350
|
divider = _a.divider;
|
|
291
|
-
return /*#__PURE__*/
|
|
292
|
-
className: "collapse_wrap "
|
|
293
|
-
}, /*#__PURE__*/
|
|
351
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
352
|
+
className: "collapse_wrap " + headerSize + "_header " + divider + "_divider"
|
|
353
|
+
}, /*#__PURE__*/_react["default"].createElement(_RcCollapse["default"], {
|
|
294
354
|
accordion: true,
|
|
295
355
|
activeKey: this.state.activeKey // destroyInactivePanel
|
|
296
356
|
,
|
|
@@ -298,7 +358,7 @@ function (_super) {
|
|
|
298
358
|
}, source.map(function (panel) {
|
|
299
359
|
var _a;
|
|
300
360
|
|
|
301
|
-
return /*#__PURE__*/
|
|
361
|
+
return /*#__PURE__*/_react["default"].createElement(_RcCollapse.Panel, {
|
|
302
362
|
key: ((_a = panel.metaOption) === null || _a === void 0 ? void 0 : _a.id) || panel.key,
|
|
303
363
|
collapsible: _this.panelCollapsible(panel),
|
|
304
364
|
extra: _this.getExtraInfo(panel),
|
|
@@ -315,9 +375,10 @@ function (_super) {
|
|
|
315
375
|
headerStyle: {},
|
|
316
376
|
divider: 'solid',
|
|
317
377
|
headerSize: 'default',
|
|
318
|
-
onRefresh: function () {}
|
|
378
|
+
onRefresh: function onRefresh() {}
|
|
319
379
|
};
|
|
320
380
|
return CommonCollapse;
|
|
321
|
-
}(
|
|
381
|
+
}(_react["default"].Component);
|
|
322
382
|
|
|
323
|
-
|
|
383
|
+
var _default = CommonCollapse;
|
|
384
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.collapse_wrap {
|
|
2
|
+
.rc-collapse {
|
|
3
|
+
.rc-collapse-item {
|
|
4
|
+
border-bottom: 1px solid #EDF0F4;
|
|
5
|
+
.rc-collapse-header {
|
|
6
|
+
padding: 0 5px;
|
|
7
|
+
margin: 0 -5px;
|
|
8
|
+
align-items:center;
|
|
9
|
+
.rc-collapse-header-text {
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
}
|
|
12
|
+
&.rc-collapse-header-hover {
|
|
13
|
+
background: #E9F0FF;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.rc-collapse-content {
|
|
17
|
+
.rc-collapse-content-box {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.header_wrap {
|
|
23
|
+
padding: 20px 0;
|
|
24
|
+
position: relative;
|
|
25
|
+
color: #232F46;
|
|
26
|
+
font-family: 'Open Sans';
|
|
27
|
+
font-style: normal;
|
|
28
|
+
box-sizing: content-box;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&.bold_divider {
|
|
32
|
+
.rc-collapse {
|
|
33
|
+
.rc-collapse-item {
|
|
34
|
+
border-bottom: 6px solid #EDF0F4;
|
|
35
|
+
border-radius: 2px;
|
|
36
|
+
&:last-child {
|
|
37
|
+
border-bottom: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&.solid_divider{
|
|
43
|
+
.rc-collapse {
|
|
44
|
+
.rc-collapse-item {
|
|
45
|
+
border-bottom: 1px solid #EDF0F4;
|
|
46
|
+
border-radius: 0px;
|
|
47
|
+
&:last-child {
|
|
48
|
+
border-bottom: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
&.dashed_divider{
|
|
54
|
+
.rc-collapse {
|
|
55
|
+
.rc-collapse-item {
|
|
56
|
+
border-bottom: 1px dashed #D2D9E5;
|
|
57
|
+
&:last-child {
|
|
58
|
+
border-bottom: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.large_header {
|
|
65
|
+
.header_wrap {
|
|
66
|
+
font-size: 18px !important;
|
|
67
|
+
line-height: 26px !important;
|
|
68
|
+
height: 26px !important;
|
|
69
|
+
font-weight: 700 !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&.middle_header {
|
|
73
|
+
.header_wrap{
|
|
74
|
+
font-size: 16px !important;
|
|
75
|
+
line-height: 24px !important;
|
|
76
|
+
height: 24px !important;
|
|
77
|
+
font-weight: 600 !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
&.small_header {
|
|
82
|
+
.header_wrap {
|
|
83
|
+
font-size: 14px !important;
|
|
84
|
+
line-height: 22px !important;
|
|
85
|
+
height: 22px !important;
|
|
86
|
+
font-weight: 700 !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&.default_header {
|
|
90
|
+
.header_wrap {
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
line-height: 24px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
Binary file
|
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactColor = require("react-color");
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
17
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
18
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
19
|
+
__proto__: []
|
|
20
|
+
} instanceof Array && function (d, b) {
|
|
21
|
+
d.__proto__ = b;
|
|
22
|
+
} || function (d, b) {
|
|
23
|
+
for (var p in b) {
|
|
24
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return function (d, b) {
|
|
32
|
+
_extendStatics(d, b);
|
|
33
|
+
|
|
34
|
+
function __() {
|
|
35
|
+
this.constructor = d;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39
|
+
};
|
|
40
|
+
}();
|
|
5
41
|
|
|
6
42
|
var ColorPicker =
|
|
7
43
|
/** @class */
|
|
@@ -12,7 +48,7 @@ function (_super) {
|
|
|
12
48
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13
49
|
|
|
14
50
|
_this.getRgbaStr = function (c) {
|
|
15
|
-
return "rgba("
|
|
51
|
+
return "rgba(" + c.r + ", " + c.g + ", " + c.b + ", " + c.a + ")";
|
|
16
52
|
};
|
|
17
53
|
|
|
18
54
|
_this.getHexStr = function (c) {
|
|
@@ -65,15 +101,15 @@ function (_super) {
|
|
|
65
101
|
visibility = _a.visibility,
|
|
66
102
|
onClose = _a.onClose;
|
|
67
103
|
var style = this.convertPlacement(placement);
|
|
68
|
-
return /*#__PURE__*/
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
105
|
className: "m-color-picker-panel",
|
|
70
106
|
style: style
|
|
71
|
-
}, visibility && /*#__PURE__*/
|
|
107
|
+
}, visibility && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
108
|
className: "panel-bg",
|
|
73
|
-
onClick: function () {
|
|
109
|
+
onClick: function onClick() {
|
|
74
110
|
return onClose();
|
|
75
111
|
}
|
|
76
|
-
}), /*#__PURE__*/
|
|
112
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactColor.SketchPicker, {
|
|
77
113
|
color: color,
|
|
78
114
|
disableAlpha: type == 'hex',
|
|
79
115
|
onChangeComplete: this.onChangeColor,
|
|
@@ -85,10 +121,11 @@ function (_super) {
|
|
|
85
121
|
visibility: false,
|
|
86
122
|
color: '#2F54EB',
|
|
87
123
|
type: 'hex',
|
|
88
|
-
onChangeColor: function () {},
|
|
89
|
-
onClose: function () {}
|
|
124
|
+
onChangeColor: function onChangeColor() {},
|
|
125
|
+
onClose: function onClose() {}
|
|
90
126
|
};
|
|
91
127
|
return ColorPicker;
|
|
92
|
-
}(
|
|
128
|
+
}(_react["default"].Component);
|
|
93
129
|
|
|
94
|
-
|
|
130
|
+
var _default = ColorPicker;
|
|
131
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.m-color-picker-panel {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
|
|
5
|
+
.panel-bg {
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 0;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sketch-picker {
|
|
15
|
+
.flexbox-fix:last-child {
|
|
16
|
+
>div>span>div {
|
|
17
|
+
border-radius: 50px !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
div[title="rgba(255,255,255,0)"] {
|
|
21
|
+
background: url('./imgs/no-color.png') !important;
|
|
22
|
+
background-size: 100% !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
require("./index.less");
|
|
13
|
+
|
|
14
|
+
var _ColorPicker = _interopRequireDefault(require("../ColorPicker"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
19
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
20
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
21
|
+
__proto__: []
|
|
22
|
+
} instanceof Array && function (d, b) {
|
|
23
|
+
d.__proto__ = b;
|
|
24
|
+
} || function (d, b) {
|
|
25
|
+
for (var p in b) {
|
|
26
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return _extendStatics(d, b);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return function (d, b) {
|
|
34
|
+
_extendStatics(d, b);
|
|
35
|
+
|
|
36
|
+
function __() {
|
|
37
|
+
this.constructor = d;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
+
};
|
|
42
|
+
}();
|
|
43
|
+
|
|
44
|
+
var ColorPickerInput =
|
|
45
|
+
/** @class */
|
|
46
|
+
function (_super) {
|
|
47
|
+
__extends(ColorPickerInput, _super);
|
|
48
|
+
|
|
49
|
+
function ColorPickerInput() {
|
|
50
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
|
|
52
|
+
_this.state = {
|
|
53
|
+
visibility: false
|
|
54
|
+
};
|
|
55
|
+
return _this;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
ColorPickerInput.prototype.render = function () {
|
|
59
|
+
var _a;
|
|
60
|
+
|
|
61
|
+
var _this = this;
|
|
62
|
+
|
|
63
|
+
var _b = this.props,
|
|
64
|
+
placement = _b.placement,
|
|
65
|
+
type = _b.type,
|
|
66
|
+
colorType = _b.colorType,
|
|
67
|
+
value = _b.value,
|
|
68
|
+
onChange = _b.onChange;
|
|
69
|
+
var visibility = this.state.visibility;
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
+
className: (0, _classnames["default"])('m-color-picker-input', (_a = {}, _a[type] = true, _a))
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "input-color",
|
|
74
|
+
onClick: function onClick() {
|
|
75
|
+
return _this.setState({
|
|
76
|
+
visibility: true
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
+
className: (0, _classnames["default"])('color-icon', {
|
|
81
|
+
transparent: value === ''
|
|
82
|
+
}),
|
|
83
|
+
style: {
|
|
84
|
+
background: value
|
|
85
|
+
}
|
|
86
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
+
className: "color-value"
|
|
88
|
+
}, value || 'Transparent')), /*#__PURE__*/_react["default"].createElement(_ColorPicker["default"], {
|
|
89
|
+
color: value,
|
|
90
|
+
onChangeColor: function onChangeColor(color) {
|
|
91
|
+
return onChange(color);
|
|
92
|
+
},
|
|
93
|
+
onClose: function onClose() {
|
|
94
|
+
return _this.setState({
|
|
95
|
+
visibility: false
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
placement: placement,
|
|
99
|
+
type: colorType,
|
|
100
|
+
visibility: visibility
|
|
101
|
+
}));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
ColorPickerInput.defaultProps = {
|
|
105
|
+
value: '#2F54EB',
|
|
106
|
+
onChange: function onChange() {},
|
|
107
|
+
colorType: 'hex',
|
|
108
|
+
type: 'default'
|
|
109
|
+
};
|
|
110
|
+
return ColorPickerInput;
|
|
111
|
+
}(_react["default"].Component);
|
|
112
|
+
|
|
113
|
+
var _default = ColorPickerInput;
|
|
114
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.m-color-picker-input {
|
|
2
|
+
.input-color {
|
|
3
|
+
height: 60px;
|
|
4
|
+
background: #FFFFFF;
|
|
5
|
+
border: 1px solid #D2D9E5;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
padding: 12px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
|
|
12
|
+
.color-icon {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
width: 36px;
|
|
15
|
+
height: 36px;
|
|
16
|
+
background-color: #000;
|
|
17
|
+
border-radius: 50px;
|
|
18
|
+
border: 1px solid #EDF0F4;
|
|
19
|
+
|
|
20
|
+
&.transparent {
|
|
21
|
+
background: url('./imgs/code.png') !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.color-value {
|
|
26
|
+
font-family: 'Open Sans';
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
color: #232F46;
|
|
31
|
+
margin-left: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.dot {
|
|
36
|
+
.input-color {
|
|
37
|
+
border: none;
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
|
|
40
|
+
.color-icon {
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.color-value {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|