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