@arbisoft/react-design-tool 1.0.11 → 1.0.13
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/README.md +2 -2
- package/dist/cjs/index.js +33 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +33 -35
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -595,7 +595,7 @@ var _templateObject$u;
|
|
|
595
595
|
var StudioWrapper = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteral(["\n background-color: ", ";\n display: flex;\n flex: 1;\n flex-direction: row;\n overflow: hidden;\n height: 100%;\n width: 100%;\n position: relative;\n"])), theme.color.white);
|
|
596
596
|
|
|
597
597
|
var propTypes$z = {
|
|
598
|
-
selectedSideBarItem: PropTypes.object,
|
|
598
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
599
599
|
onClickPill: PropTypes.func,
|
|
600
600
|
languageLocale: PropTypes.string,
|
|
601
601
|
disableWhiteLabel: PropTypes.bool,
|
|
@@ -606,7 +606,6 @@ var _templateObject$t;
|
|
|
606
606
|
var SideBarWrapper$1 = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteral(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n width: 100px;\n overflow: auto;\n"])), theme.color.white);
|
|
607
607
|
|
|
608
608
|
var propTypes$y = {
|
|
609
|
-
key: PropTypes.string,
|
|
610
609
|
isSelected: PropTypes.bool,
|
|
611
610
|
onClick: PropTypes.func,
|
|
612
611
|
icon: PropTypes.node,
|
|
@@ -641,10 +640,9 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
641
640
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
642
641
|
icon = _ref.icon,
|
|
643
642
|
text = _ref.text,
|
|
644
|
-
pillActiveColor = _ref.pillActiveColor
|
|
645
|
-
id = _ref.id;
|
|
643
|
+
pillActiveColor = _ref.pillActiveColor;
|
|
646
644
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
647
|
-
key:
|
|
645
|
+
key: Date.now(),
|
|
648
646
|
isSelected: isSelected,
|
|
649
647
|
onClick: function onClick() {
|
|
650
648
|
return _onClick();
|
|
@@ -1879,7 +1877,7 @@ var SideBar = function SideBar(_ref) {
|
|
|
1879
1877
|
return null;
|
|
1880
1878
|
}
|
|
1881
1879
|
return /*#__PURE__*/React.createElement(SideBarPill, {
|
|
1882
|
-
key:
|
|
1880
|
+
key: Date.now(),
|
|
1883
1881
|
id: item === null || item === void 0 ? void 0 : item.id,
|
|
1884
1882
|
isSelected: selectedSideBarItem === (item === null || item === void 0 ? void 0 : item.id),
|
|
1885
1883
|
onClick: function onClick() {
|
|
@@ -1945,7 +1943,7 @@ var propTypes$x = {
|
|
|
1945
1943
|
defaultTextProps: PropTypes.object,
|
|
1946
1944
|
onChangeTextProperty: PropTypes.func,
|
|
1947
1945
|
onSetPageSize: PropTypes.func,
|
|
1948
|
-
selectedPageSize: PropTypes.string,
|
|
1946
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
1949
1947
|
loadingImages: PropTypes.bool,
|
|
1950
1948
|
loadingFonts: PropTypes.bool,
|
|
1951
1949
|
uploadImageCallBack: PropTypes.func,
|
|
@@ -1993,7 +1991,7 @@ var propTypes$w = {
|
|
|
1993
1991
|
selectedTab: PropTypes.string,
|
|
1994
1992
|
onSetBackgroundColor: PropTypes.func,
|
|
1995
1993
|
canvasBackgroundColor: PropTypes.string,
|
|
1996
|
-
canvasBackgroundImage: PropTypes.string,
|
|
1994
|
+
canvasBackgroundImage: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
1997
1995
|
onSetBackgroundImage: PropTypes.func,
|
|
1998
1996
|
shapeStrokeColor: PropTypes.string,
|
|
1999
1997
|
shapeStrokeWidth: PropTypes.number,
|
|
@@ -2021,7 +2019,7 @@ var propTypes$w = {
|
|
|
2021
2019
|
defaultTextProps: PropTypes.object,
|
|
2022
2020
|
onChangeTextProperty: PropTypes.func,
|
|
2023
2021
|
onSetPageSize: PropTypes.func,
|
|
2024
|
-
selectedPageSize: PropTypes.object,
|
|
2022
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2025
2023
|
translation: PropTypes.object,
|
|
2026
2024
|
uploadImageCallBack: PropTypes.func,
|
|
2027
2025
|
setLoadingUploadImage: PropTypes.func,
|
|
@@ -2047,7 +2045,7 @@ var propTypes$v = {
|
|
|
2047
2045
|
backgroundImageOpacity: PropTypes.number,
|
|
2048
2046
|
onChangeBackgroundImageOpacity: PropTypes.func,
|
|
2049
2047
|
onSetPageSize: PropTypes.func,
|
|
2050
|
-
selectedPageSize: PropTypes.object,
|
|
2048
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2051
2049
|
languageLocale: PropTypes.string,
|
|
2052
2050
|
uploadImageCallBack: PropTypes.func,
|
|
2053
2051
|
setLoadingUploadImage: PropTypes.func,
|
|
@@ -2057,16 +2055,16 @@ var propTypes$v = {
|
|
|
2057
2055
|
};
|
|
2058
2056
|
|
|
2059
2057
|
var propTypes$u = {
|
|
2060
|
-
height: PropTypes.string,
|
|
2061
|
-
paddingTop: PropTypes.string,
|
|
2062
|
-
paddingBottom: PropTypes.string,
|
|
2063
|
-
paddingLeft: PropTypes.string,
|
|
2064
|
-
paddingRight: PropTypes.string,
|
|
2058
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2059
|
+
paddingTop: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2060
|
+
paddingBottom: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2061
|
+
paddingLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2062
|
+
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2065
2063
|
children: PropTypes.node,
|
|
2066
|
-
marginLeft: PropTypes.string,
|
|
2067
|
-
marginRight: PropTypes.string,
|
|
2064
|
+
marginLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2065
|
+
marginRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2068
2066
|
justifyContent: PropTypes.string,
|
|
2069
|
-
gap: PropTypes.string,
|
|
2067
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2070
2068
|
onClick: PropTypes.func,
|
|
2071
2069
|
disabled: PropTypes.bool,
|
|
2072
2070
|
tooltip: PropTypes.string,
|
|
@@ -2204,15 +2202,15 @@ var ToolBarButtonWrapper = function ToolBarButtonWrapper(_ref) {
|
|
|
2204
2202
|
ToolBarButtonWrapper.propTypes = propTypes$u;
|
|
2205
2203
|
|
|
2206
2204
|
var propTypes$s = {
|
|
2207
|
-
left: PropTypes.
|
|
2205
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2208
2206
|
right: PropTypes.bool,
|
|
2209
2207
|
center: PropTypes.bool,
|
|
2210
|
-
gap: PropTypes.string,
|
|
2211
|
-
paddingLeft: PropTypes.string,
|
|
2212
|
-
paddingRight: PropTypes.string,
|
|
2208
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2209
|
+
paddingLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2210
|
+
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2213
2211
|
list: PropTypes.array,
|
|
2214
2212
|
onSelect: PropTypes.func,
|
|
2215
|
-
fontPicker: PropTypes.
|
|
2213
|
+
fontPicker: PropTypes.any,
|
|
2216
2214
|
tooltip: PropTypes.string
|
|
2217
2215
|
};
|
|
2218
2216
|
|
|
@@ -2682,7 +2680,7 @@ var propTypes$q = {
|
|
|
2682
2680
|
pickerWidth: PropTypes.number,
|
|
2683
2681
|
leftChild: PropTypes.node,
|
|
2684
2682
|
rightChild: PropTypes.node,
|
|
2685
|
-
gap: PropTypes.number,
|
|
2683
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2686
2684
|
showLeftChild: PropTypes.bool,
|
|
2687
2685
|
varient: PropTypes.string,
|
|
2688
2686
|
fontFamily: PropTypes.string,
|
|
@@ -3053,11 +3051,11 @@ TemplateToolBar.propTypes = propTypes$v;
|
|
|
3053
3051
|
|
|
3054
3052
|
var propTypes$o = {
|
|
3055
3053
|
fontFamily: PropTypes.string,
|
|
3056
|
-
fontSize: PropTypes.string,
|
|
3054
|
+
fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3057
3055
|
color: PropTypes.string,
|
|
3058
3056
|
textDecoration: PropTypes.string,
|
|
3059
3057
|
fontStyle: PropTypes.string,
|
|
3060
|
-
fontWeight: PropTypes.string,
|
|
3058
|
+
fontWeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3061
3059
|
textAlign: PropTypes.string,
|
|
3062
3060
|
textOpacity: PropTypes.number,
|
|
3063
3061
|
onChangeTextProperty: PropTypes.func,
|
|
@@ -3074,9 +3072,9 @@ var RowContainer$3 = styled.div(_templateObject2$f || (_templateObject2$f = _tag
|
|
|
3074
3072
|
|
|
3075
3073
|
var propTypes$n = {
|
|
3076
3074
|
tabsData: PropTypes.arrayOf(PropTypes.object),
|
|
3077
|
-
height: PropTypes.number,
|
|
3078
|
-
tabPadding: PropTypes.string,
|
|
3079
|
-
marginRight: PropTypes.number,
|
|
3075
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3076
|
+
tabPadding: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3077
|
+
marginRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3080
3078
|
disabled: PropTypes.bool,
|
|
3081
3079
|
tooltipPosition: PropTypes.string
|
|
3082
3080
|
};
|
|
@@ -3603,7 +3601,7 @@ var ZoomPercentage = styled.p(_templateObject5$1 || (_templateObject5$1 = _tagge
|
|
|
3603
3601
|
|
|
3604
3602
|
var propTypes$h = {
|
|
3605
3603
|
varient: PropTypes.oneOf(Object.values(ButtonVarients)),
|
|
3606
|
-
left: PropTypes.
|
|
3604
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
3607
3605
|
text: PropTypes.string,
|
|
3608
3606
|
marginBottom: PropTypes.number,
|
|
3609
3607
|
marginTop: PropTypes.number,
|
|
@@ -5078,7 +5076,7 @@ var Editor = function Editor(_ref) {
|
|
|
5078
5076
|
Editor.propTypes = propTypes$x;
|
|
5079
5077
|
|
|
5080
5078
|
var propTypes$b = {
|
|
5081
|
-
selectedSideBarItem: PropTypes.string,
|
|
5079
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5082
5080
|
helperSideBarVisible: PropTypes.bool,
|
|
5083
5081
|
onCollapse: PropTypes.func,
|
|
5084
5082
|
onAddShape: PropTypes.func,
|
|
@@ -5091,7 +5089,7 @@ var propTypes$b = {
|
|
|
5091
5089
|
toggleQrLogo: PropTypes.func,
|
|
5092
5090
|
addQrLogo: PropTypes.func,
|
|
5093
5091
|
elements: PropTypes.array,
|
|
5094
|
-
qrLogo: PropTypes.string,
|
|
5092
|
+
qrLogo: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5095
5093
|
onAddTextToCanvas: PropTypes.func,
|
|
5096
5094
|
oncreateNewTemplate: PropTypes.func,
|
|
5097
5095
|
languageLocale: PropTypes.string,
|
|
@@ -5104,7 +5102,7 @@ var propTypes$b = {
|
|
|
5104
5102
|
|
|
5105
5103
|
var propTypes$a = {
|
|
5106
5104
|
onCollapse: PropTypes.func,
|
|
5107
|
-
selectedSideBarItem: PropTypes.string,
|
|
5105
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5108
5106
|
languageLocale: PropTypes.string
|
|
5109
5107
|
};
|
|
5110
5108
|
|
|
@@ -5158,7 +5156,7 @@ var propTypes$9 = {
|
|
|
5158
5156
|
|
|
5159
5157
|
var propTypes$8 = {
|
|
5160
5158
|
title: PropTypes.string,
|
|
5161
|
-
left: PropTypes.
|
|
5159
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5162
5160
|
hideIcon: PropTypes.bool,
|
|
5163
5161
|
marginTop: PropTypes.number,
|
|
5164
5162
|
marginBottom: PropTypes.number,
|
|
@@ -5503,7 +5501,7 @@ var propTypes$4 = {
|
|
|
5503
5501
|
toggleQrLogo: PropTypes.func,
|
|
5504
5502
|
addQrLogo: PropTypes.func,
|
|
5505
5503
|
elements: PropTypes.array,
|
|
5506
|
-
qrLogo: PropTypes.object,
|
|
5504
|
+
qrLogo: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5507
5505
|
languageLocale: PropTypes.string
|
|
5508
5506
|
};
|
|
5509
5507
|
|