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