@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/README.md
CHANGED
|
@@ -36,11 +36,11 @@ yarn add @arbisoft/react-design-tool
|
|
|
36
36
|
#### ⚠️ Important: Installation Guide for React 18 and Below
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
npm install @arbisoft/react-design-tool@1.0.
|
|
39
|
+
npm install @arbisoft/react-design-tool@1.0.13
|
|
40
40
|
```
|
|
41
41
|
OR
|
|
42
42
|
```bash
|
|
43
|
-
yarn add @arbisoft/react-design-tool@1.0.
|
|
43
|
+
yarn add @arbisoft/react-design-tool@1.0.13
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
## 🚀 Quick Start
|
package/dist/cjs/index.js
CHANGED
|
@@ -597,7 +597,7 @@ var _templateObject$u;
|
|
|
597
597
|
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);
|
|
598
598
|
|
|
599
599
|
var propTypes$z = {
|
|
600
|
-
selectedSideBarItem: PropTypes.object,
|
|
600
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
601
601
|
onClickPill: PropTypes.func,
|
|
602
602
|
languageLocale: PropTypes.string,
|
|
603
603
|
disableWhiteLabel: PropTypes.bool,
|
|
@@ -608,7 +608,6 @@ var _templateObject$t;
|
|
|
608
608
|
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);
|
|
609
609
|
|
|
610
610
|
var propTypes$y = {
|
|
611
|
-
key: PropTypes.string,
|
|
612
611
|
isSelected: PropTypes.bool,
|
|
613
612
|
onClick: PropTypes.func,
|
|
614
613
|
icon: PropTypes.node,
|
|
@@ -643,10 +642,9 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
643
642
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
644
643
|
icon = _ref.icon,
|
|
645
644
|
text = _ref.text,
|
|
646
|
-
pillActiveColor = _ref.pillActiveColor
|
|
647
|
-
id = _ref.id;
|
|
645
|
+
pillActiveColor = _ref.pillActiveColor;
|
|
648
646
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
649
|
-
key:
|
|
647
|
+
key: Date.now(),
|
|
650
648
|
isSelected: isSelected,
|
|
651
649
|
onClick: function onClick() {
|
|
652
650
|
return _onClick();
|
|
@@ -1881,7 +1879,7 @@ var SideBar = function SideBar(_ref) {
|
|
|
1881
1879
|
return null;
|
|
1882
1880
|
}
|
|
1883
1881
|
return /*#__PURE__*/React.createElement(SideBarPill, {
|
|
1884
|
-
key:
|
|
1882
|
+
key: Date.now(),
|
|
1885
1883
|
id: item === null || item === void 0 ? void 0 : item.id,
|
|
1886
1884
|
isSelected: selectedSideBarItem === (item === null || item === void 0 ? void 0 : item.id),
|
|
1887
1885
|
onClick: function onClick() {
|
|
@@ -1947,7 +1945,7 @@ var propTypes$x = {
|
|
|
1947
1945
|
defaultTextProps: PropTypes.object,
|
|
1948
1946
|
onChangeTextProperty: PropTypes.func,
|
|
1949
1947
|
onSetPageSize: PropTypes.func,
|
|
1950
|
-
selectedPageSize: PropTypes.string,
|
|
1948
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
1951
1949
|
loadingImages: PropTypes.bool,
|
|
1952
1950
|
loadingFonts: PropTypes.bool,
|
|
1953
1951
|
uploadImageCallBack: PropTypes.func,
|
|
@@ -1995,7 +1993,7 @@ var propTypes$w = {
|
|
|
1995
1993
|
selectedTab: PropTypes.string,
|
|
1996
1994
|
onSetBackgroundColor: PropTypes.func,
|
|
1997
1995
|
canvasBackgroundColor: PropTypes.string,
|
|
1998
|
-
canvasBackgroundImage: PropTypes.string,
|
|
1996
|
+
canvasBackgroundImage: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
1999
1997
|
onSetBackgroundImage: PropTypes.func,
|
|
2000
1998
|
shapeStrokeColor: PropTypes.string,
|
|
2001
1999
|
shapeStrokeWidth: PropTypes.number,
|
|
@@ -2023,7 +2021,7 @@ var propTypes$w = {
|
|
|
2023
2021
|
defaultTextProps: PropTypes.object,
|
|
2024
2022
|
onChangeTextProperty: PropTypes.func,
|
|
2025
2023
|
onSetPageSize: PropTypes.func,
|
|
2026
|
-
selectedPageSize: PropTypes.object,
|
|
2024
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2027
2025
|
translation: PropTypes.object,
|
|
2028
2026
|
uploadImageCallBack: PropTypes.func,
|
|
2029
2027
|
setLoadingUploadImage: PropTypes.func,
|
|
@@ -2049,7 +2047,7 @@ var propTypes$v = {
|
|
|
2049
2047
|
backgroundImageOpacity: PropTypes.number,
|
|
2050
2048
|
onChangeBackgroundImageOpacity: PropTypes.func,
|
|
2051
2049
|
onSetPageSize: PropTypes.func,
|
|
2052
|
-
selectedPageSize: PropTypes.object,
|
|
2050
|
+
selectedPageSize: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2053
2051
|
languageLocale: PropTypes.string,
|
|
2054
2052
|
uploadImageCallBack: PropTypes.func,
|
|
2055
2053
|
setLoadingUploadImage: PropTypes.func,
|
|
@@ -2059,16 +2057,16 @@ var propTypes$v = {
|
|
|
2059
2057
|
};
|
|
2060
2058
|
|
|
2061
2059
|
var propTypes$u = {
|
|
2062
|
-
height: PropTypes.string,
|
|
2063
|
-
paddingTop: PropTypes.string,
|
|
2064
|
-
paddingBottom: PropTypes.string,
|
|
2065
|
-
paddingLeft: PropTypes.string,
|
|
2066
|
-
paddingRight: PropTypes.string,
|
|
2060
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2061
|
+
paddingTop: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2062
|
+
paddingBottom: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2063
|
+
paddingLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2064
|
+
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2067
2065
|
children: PropTypes.node,
|
|
2068
|
-
marginLeft: PropTypes.string,
|
|
2069
|
-
marginRight: PropTypes.string,
|
|
2066
|
+
marginLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2067
|
+
marginRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2070
2068
|
justifyContent: PropTypes.string,
|
|
2071
|
-
gap: PropTypes.string,
|
|
2069
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2072
2070
|
onClick: PropTypes.func,
|
|
2073
2071
|
disabled: PropTypes.bool,
|
|
2074
2072
|
tooltip: PropTypes.string,
|
|
@@ -2206,15 +2204,15 @@ var ToolBarButtonWrapper = function ToolBarButtonWrapper(_ref) {
|
|
|
2206
2204
|
ToolBarButtonWrapper.propTypes = propTypes$u;
|
|
2207
2205
|
|
|
2208
2206
|
var propTypes$s = {
|
|
2209
|
-
left: PropTypes.
|
|
2207
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
2210
2208
|
right: PropTypes.bool,
|
|
2211
2209
|
center: PropTypes.bool,
|
|
2212
|
-
gap: PropTypes.string,
|
|
2213
|
-
paddingLeft: PropTypes.string,
|
|
2214
|
-
paddingRight: PropTypes.string,
|
|
2210
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2211
|
+
paddingLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2212
|
+
paddingRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2215
2213
|
list: PropTypes.array,
|
|
2216
2214
|
onSelect: PropTypes.func,
|
|
2217
|
-
fontPicker: PropTypes.
|
|
2215
|
+
fontPicker: PropTypes.any,
|
|
2218
2216
|
tooltip: PropTypes.string
|
|
2219
2217
|
};
|
|
2220
2218
|
|
|
@@ -2684,7 +2682,7 @@ var propTypes$q = {
|
|
|
2684
2682
|
pickerWidth: PropTypes.number,
|
|
2685
2683
|
leftChild: PropTypes.node,
|
|
2686
2684
|
rightChild: PropTypes.node,
|
|
2687
|
-
gap: PropTypes.number,
|
|
2685
|
+
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2688
2686
|
showLeftChild: PropTypes.bool,
|
|
2689
2687
|
varient: PropTypes.string,
|
|
2690
2688
|
fontFamily: PropTypes.string,
|
|
@@ -3055,11 +3053,11 @@ TemplateToolBar.propTypes = propTypes$v;
|
|
|
3055
3053
|
|
|
3056
3054
|
var propTypes$o = {
|
|
3057
3055
|
fontFamily: PropTypes.string,
|
|
3058
|
-
fontSize: PropTypes.string,
|
|
3056
|
+
fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3059
3057
|
color: PropTypes.string,
|
|
3060
3058
|
textDecoration: PropTypes.string,
|
|
3061
3059
|
fontStyle: PropTypes.string,
|
|
3062
|
-
fontWeight: PropTypes.string,
|
|
3060
|
+
fontWeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3063
3061
|
textAlign: PropTypes.string,
|
|
3064
3062
|
textOpacity: PropTypes.number,
|
|
3065
3063
|
onChangeTextProperty: PropTypes.func,
|
|
@@ -3076,9 +3074,9 @@ var RowContainer$3 = styled.div(_templateObject2$f || (_templateObject2$f = _tag
|
|
|
3076
3074
|
|
|
3077
3075
|
var propTypes$n = {
|
|
3078
3076
|
tabsData: PropTypes.arrayOf(PropTypes.object),
|
|
3079
|
-
height: PropTypes.number,
|
|
3080
|
-
tabPadding: PropTypes.string,
|
|
3081
|
-
marginRight: PropTypes.number,
|
|
3077
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3078
|
+
tabPadding: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3079
|
+
marginRight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3082
3080
|
disabled: PropTypes.bool,
|
|
3083
3081
|
tooltipPosition: PropTypes.string
|
|
3084
3082
|
};
|
|
@@ -3605,7 +3603,7 @@ var ZoomPercentage = styled.p(_templateObject5$1 || (_templateObject5$1 = _tagge
|
|
|
3605
3603
|
|
|
3606
3604
|
var propTypes$h = {
|
|
3607
3605
|
varient: PropTypes.oneOf(Object.values(ButtonVarients)),
|
|
3608
|
-
left: PropTypes.
|
|
3606
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
3609
3607
|
text: PropTypes.string,
|
|
3610
3608
|
marginBottom: PropTypes.number,
|
|
3611
3609
|
marginTop: PropTypes.number,
|
|
@@ -5080,7 +5078,7 @@ var Editor = function Editor(_ref) {
|
|
|
5080
5078
|
Editor.propTypes = propTypes$x;
|
|
5081
5079
|
|
|
5082
5080
|
var propTypes$b = {
|
|
5083
|
-
selectedSideBarItem: PropTypes.string,
|
|
5081
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5084
5082
|
helperSideBarVisible: PropTypes.bool,
|
|
5085
5083
|
onCollapse: PropTypes.func,
|
|
5086
5084
|
onAddShape: PropTypes.func,
|
|
@@ -5093,7 +5091,7 @@ var propTypes$b = {
|
|
|
5093
5091
|
toggleQrLogo: PropTypes.func,
|
|
5094
5092
|
addQrLogo: PropTypes.func,
|
|
5095
5093
|
elements: PropTypes.array,
|
|
5096
|
-
qrLogo: PropTypes.string,
|
|
5094
|
+
qrLogo: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5097
5095
|
onAddTextToCanvas: PropTypes.func,
|
|
5098
5096
|
oncreateNewTemplate: PropTypes.func,
|
|
5099
5097
|
languageLocale: PropTypes.string,
|
|
@@ -5106,7 +5104,7 @@ var propTypes$b = {
|
|
|
5106
5104
|
|
|
5107
5105
|
var propTypes$a = {
|
|
5108
5106
|
onCollapse: PropTypes.func,
|
|
5109
|
-
selectedSideBarItem: PropTypes.string,
|
|
5107
|
+
selectedSideBarItem: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5110
5108
|
languageLocale: PropTypes.string
|
|
5111
5109
|
};
|
|
5112
5110
|
|
|
@@ -5160,7 +5158,7 @@ var propTypes$9 = {
|
|
|
5160
5158
|
|
|
5161
5159
|
var propTypes$8 = {
|
|
5162
5160
|
title: PropTypes.string,
|
|
5163
|
-
left: PropTypes.
|
|
5161
|
+
left: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5164
5162
|
hideIcon: PropTypes.bool,
|
|
5165
5163
|
marginTop: PropTypes.number,
|
|
5166
5164
|
marginBottom: PropTypes.number,
|
|
@@ -5505,7 +5503,7 @@ var propTypes$4 = {
|
|
|
5505
5503
|
toggleQrLogo: PropTypes.func,
|
|
5506
5504
|
addQrLogo: PropTypes.func,
|
|
5507
5505
|
elements: PropTypes.array,
|
|
5508
|
-
qrLogo: PropTypes.object,
|
|
5506
|
+
qrLogo: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
5509
5507
|
languageLocale: PropTypes.string
|
|
5510
5508
|
};
|
|
5511
5509
|
|