@arbisoft/react-design-tool 1.0.13 → 1.0.15

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.13
39
+ npm install @arbisoft/react-design-tool@1.0.15
40
40
  ```
41
41
  OR
42
42
  ```bash
43
- yarn add @arbisoft/react-design-tool@1.0.13
43
+ yarn add @arbisoft/react-design-tool@1.0.15
44
44
 
45
45
  ```
46
46
  ## 🚀 Quick Start
package/dist/cjs/index.js CHANGED
@@ -568,7 +568,7 @@ var palette = {
568
568
  gray_F5F6F6: '#F5F6F6',
569
569
  gray_A1A1A1: '#A1A1A1',
570
570
  gray_F0F2F7: '#F0F2F7',
571
- gray_333: '#333',
571
+ gray_333: '#333333',
572
572
  gray_EFEFEF: '#EFEFEF',
573
573
  gray_9DA1A7: '#9DA1A7',
574
574
  green_80D965: '#80D965',
@@ -642,9 +642,10 @@ var SideBarPill = function SideBarPill(_ref) {
642
642
  _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
643
643
  icon = _ref.icon,
644
644
  text = _ref.text,
645
- pillActiveColor = _ref.pillActiveColor;
645
+ pillActiveColor = _ref.pillActiveColor,
646
+ id = _ref.id;
646
647
  return /*#__PURE__*/React.createElement(SideBarItem, {
647
- key: Date.now(),
648
+ key: id,
648
649
  isSelected: isSelected,
649
650
  onClick: function onClick() {
650
651
  return _onClick();
@@ -816,7 +817,7 @@ var textList = [{
816
817
  text: '+ Heading 1',
817
818
  fontFamily: 'Open Sans',
818
819
  fontSize: 18,
819
- color: '#333',
820
+ color: '#333333',
820
821
  fontWeight: theme.fontWeights[700],
821
822
  textDecoration: 'normal',
822
823
  fontStyle: 'normal',
@@ -826,7 +827,7 @@ var textList = [{
826
827
  text: '+ Heading 2',
827
828
  fontFamily: 'Open Sans',
828
829
  fontSize: 16,
829
- color: '#333',
830
+ color: '#333333',
830
831
  fontWeight: theme.fontWeights[700],
831
832
  textDecoration: 'normal',
832
833
  fontStyle: 'normal',
@@ -836,7 +837,7 @@ var textList = [{
836
837
  // text: 'What problem are you facing in this meeting room?',
837
838
  // fontFamily: 'Open Sans Condensed',
838
839
  // fontSize: 18,
839
- // color: '#333',
840
+ // color: '#333333',
840
841
  // fontWeight: theme.fontWeights[700],
841
842
  // textDecoration: 'normal',
842
843
  // fontStyle: 'normal',
@@ -846,7 +847,7 @@ var textList = [{
846
847
  text: 'Scan this QR code from your mobile to report the issue',
847
848
  fontFamily: 'Open Sans',
848
849
  fontSize: 16,
849
- color: '#333',
850
+ color: '#333333',
850
851
  fontWeight: theme.fontWeights[400],
851
852
  textDecoration: 'normal',
852
853
  fontStyle: 'normal',
@@ -865,7 +866,7 @@ var textList = [{
865
866
  text: 'www.domain.com',
866
867
  fontFamily: 'Plus Jakarta Sans',
867
868
  fontSize: 10,
868
- color: '#333',
869
+ color: '#333333',
869
870
  fontWeight: theme.fontWeights[400],
870
871
  textDecoration: 'normal',
871
872
  fontStyle: 'normal',
@@ -1879,7 +1880,7 @@ var SideBar = function SideBar(_ref) {
1879
1880
  return null;
1880
1881
  }
1881
1882
  return /*#__PURE__*/React.createElement(SideBarPill, {
1882
- key: Date.now(),
1883
+ key: item === null || item === void 0 ? void 0 : item.id,
1883
1884
  id: item === null || item === void 0 ? void 0 : item.id,
1884
1885
  isSelected: selectedSideBarItem === (item === null || item === void 0 ? void 0 : item.id),
1885
1886
  onClick: function onClick() {
@@ -2222,7 +2223,7 @@ var IconWrapper$3 = styled.img(_templateObject2$i || (_templateObject2$i = _tagg
2222
2223
  var DropDownList = styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n top: 50;\n background-color: white;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n margin-top: 5px;\n z-index: 10;\n width: 100%;\n max-height: 200px;\n overflow-y: auto;\n z-index: 9999;\n"])));
2223
2224
 
2224
2225
  // Individual option in the dropdown
2225
- var DropDownOption = styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n padding: 8px 16px;\n cursor: pointer;\n font-size: 14px;\n color: #333;\n &:hover {\n background-color: #f0f0f0;\n }\n &:active {\n background-color: #e0e0e0;\n }\n"])));
2226
+ var DropDownOption = styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n padding: 8px 16px;\n cursor: pointer;\n font-size: 14px;\n color: #333333;\n &:hover {\n background-color: #f0f0f0;\n }\n &:active {\n background-color: #e0e0e0;\n }\n"])));
2226
2227
 
2227
2228
  var DropDown = function DropDown(_ref) {
2228
2229
  var left = _ref.left,
@@ -4093,8 +4094,7 @@ var propTypes$c = {
4093
4094
  onTransform: PropTypes.func,
4094
4095
  onChangeTextContent: PropTypes.func,
4095
4096
  onChangeTextProperty: PropTypes.func,
4096
- onDragMove: PropTypes.func,
4097
- key: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
4097
+ onDragMove: PropTypes.func
4098
4098
  };
4099
4099
 
4100
4100
  var TextEditor = function TextEditor(_ref) {
@@ -4169,7 +4169,7 @@ var EditableText = function EditableText(_ref) {
4169
4169
  onClick = _ref.onClick,
4170
4170
  _onDragEnd = _ref.onDragEnd,
4171
4171
  onTransformEnd = _ref.onTransformEnd,
4172
- key = _ref.key,
4172
+ id = _ref.id,
4173
4173
  onTransform = _ref.onTransform,
4174
4174
  onChangeTextContent = _ref.onChangeTextContent,
4175
4175
  onChangeTextProperty = _ref.onChangeTextProperty,
@@ -4243,7 +4243,7 @@ var EditableText = function EditableText(_ref) {
4243
4243
  if (!isFontLoaded) {
4244
4244
  return /*#__PURE__*/React.createElement(reactKonva.Text, _extends({
4245
4245
  ref: textRef,
4246
- key: key
4246
+ key: id
4247
4247
  }, element, {
4248
4248
  id: element.id,
4249
4249
  fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
@@ -4257,7 +4257,7 @@ var EditableText = function EditableText(_ref) {
4257
4257
  }
4258
4258
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(reactKonva.Text, _extends({
4259
4259
  ref: textRef,
4260
- key: key
4260
+ key: id
4261
4261
  }, element, {
4262
4262
  id: element.id,
4263
4263
  fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
@@ -4924,6 +4924,7 @@ var Editor = function Editor(_ref) {
4924
4924
  case elementTypes.text:
4925
4925
  return /*#__PURE__*/React.createElement(EditableText, {
4926
4926
  key: el.id,
4927
+ id: el.id,
4927
4928
  element: el,
4928
4929
  onClick: function onClick() {
4929
4930
  return handleSelect(el);