@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 +2 -2
- package/dist/cjs/index.js +16 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +16 -15
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -566,7 +566,7 @@ var palette = {
|
|
|
566
566
|
gray_F5F6F6: '#F5F6F6',
|
|
567
567
|
gray_A1A1A1: '#A1A1A1',
|
|
568
568
|
gray_F0F2F7: '#F0F2F7',
|
|
569
|
-
gray_333: '#
|
|
569
|
+
gray_333: '#333333',
|
|
570
570
|
gray_EFEFEF: '#EFEFEF',
|
|
571
571
|
gray_9DA1A7: '#9DA1A7',
|
|
572
572
|
green_80D965: '#80D965',
|
|
@@ -640,9 +640,10 @@ var SideBarPill = function SideBarPill(_ref) {
|
|
|
640
640
|
_onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
641
641
|
icon = _ref.icon,
|
|
642
642
|
text = _ref.text,
|
|
643
|
-
pillActiveColor = _ref.pillActiveColor
|
|
643
|
+
pillActiveColor = _ref.pillActiveColor,
|
|
644
|
+
id = _ref.id;
|
|
644
645
|
return /*#__PURE__*/React.createElement(SideBarItem, {
|
|
645
|
-
key:
|
|
646
|
+
key: id,
|
|
646
647
|
isSelected: isSelected,
|
|
647
648
|
onClick: function onClick() {
|
|
648
649
|
return _onClick();
|
|
@@ -814,7 +815,7 @@ var textList = [{
|
|
|
814
815
|
text: '+ Heading 1',
|
|
815
816
|
fontFamily: 'Open Sans',
|
|
816
817
|
fontSize: 18,
|
|
817
|
-
color: '#
|
|
818
|
+
color: '#333333',
|
|
818
819
|
fontWeight: theme.fontWeights[700],
|
|
819
820
|
textDecoration: 'normal',
|
|
820
821
|
fontStyle: 'normal',
|
|
@@ -824,7 +825,7 @@ var textList = [{
|
|
|
824
825
|
text: '+ Heading 2',
|
|
825
826
|
fontFamily: 'Open Sans',
|
|
826
827
|
fontSize: 16,
|
|
827
|
-
color: '#
|
|
828
|
+
color: '#333333',
|
|
828
829
|
fontWeight: theme.fontWeights[700],
|
|
829
830
|
textDecoration: 'normal',
|
|
830
831
|
fontStyle: 'normal',
|
|
@@ -834,7 +835,7 @@ var textList = [{
|
|
|
834
835
|
// text: 'What problem are you facing in this meeting room?',
|
|
835
836
|
// fontFamily: 'Open Sans Condensed',
|
|
836
837
|
// fontSize: 18,
|
|
837
|
-
// color: '#
|
|
838
|
+
// color: '#333333',
|
|
838
839
|
// fontWeight: theme.fontWeights[700],
|
|
839
840
|
// textDecoration: 'normal',
|
|
840
841
|
// fontStyle: 'normal',
|
|
@@ -844,7 +845,7 @@ var textList = [{
|
|
|
844
845
|
text: 'Scan this QR code from your mobile to report the issue',
|
|
845
846
|
fontFamily: 'Open Sans',
|
|
846
847
|
fontSize: 16,
|
|
847
|
-
color: '#
|
|
848
|
+
color: '#333333',
|
|
848
849
|
fontWeight: theme.fontWeights[400],
|
|
849
850
|
textDecoration: 'normal',
|
|
850
851
|
fontStyle: 'normal',
|
|
@@ -863,7 +864,7 @@ var textList = [{
|
|
|
863
864
|
text: 'www.domain.com',
|
|
864
865
|
fontFamily: 'Plus Jakarta Sans',
|
|
865
866
|
fontSize: 10,
|
|
866
|
-
color: '#
|
|
867
|
+
color: '#333333',
|
|
867
868
|
fontWeight: theme.fontWeights[400],
|
|
868
869
|
textDecoration: 'normal',
|
|
869
870
|
fontStyle: 'normal',
|
|
@@ -1877,7 +1878,7 @@ var SideBar = function SideBar(_ref) {
|
|
|
1877
1878
|
return null;
|
|
1878
1879
|
}
|
|
1879
1880
|
return /*#__PURE__*/React.createElement(SideBarPill, {
|
|
1880
|
-
key:
|
|
1881
|
+
key: item === null || item === void 0 ? void 0 : item.id,
|
|
1881
1882
|
id: item === null || item === void 0 ? void 0 : item.id,
|
|
1882
1883
|
isSelected: selectedSideBarItem === (item === null || item === void 0 ? void 0 : item.id),
|
|
1883
1884
|
onClick: function onClick() {
|
|
@@ -2220,7 +2221,7 @@ var IconWrapper$3 = styled.img(_templateObject2$i || (_templateObject2$i = _tagg
|
|
|
2220
2221
|
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"])));
|
|
2221
2222
|
|
|
2222
2223
|
// Individual option in the dropdown
|
|
2223
|
-
var DropDownOption = styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n padding: 8px 16px;\n cursor: pointer;\n font-size: 14px;\n color: #
|
|
2224
|
+
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"])));
|
|
2224
2225
|
|
|
2225
2226
|
var DropDown = function DropDown(_ref) {
|
|
2226
2227
|
var left = _ref.left,
|
|
@@ -4091,8 +4092,7 @@ var propTypes$c = {
|
|
|
4091
4092
|
onTransform: PropTypes.func,
|
|
4092
4093
|
onChangeTextContent: PropTypes.func,
|
|
4093
4094
|
onChangeTextProperty: PropTypes.func,
|
|
4094
|
-
onDragMove: PropTypes.func
|
|
4095
|
-
key: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
4095
|
+
onDragMove: PropTypes.func
|
|
4096
4096
|
};
|
|
4097
4097
|
|
|
4098
4098
|
var TextEditor = function TextEditor(_ref) {
|
|
@@ -4167,7 +4167,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4167
4167
|
onClick = _ref.onClick,
|
|
4168
4168
|
_onDragEnd = _ref.onDragEnd,
|
|
4169
4169
|
onTransformEnd = _ref.onTransformEnd,
|
|
4170
|
-
|
|
4170
|
+
id = _ref.id,
|
|
4171
4171
|
onTransform = _ref.onTransform,
|
|
4172
4172
|
onChangeTextContent = _ref.onChangeTextContent,
|
|
4173
4173
|
onChangeTextProperty = _ref.onChangeTextProperty,
|
|
@@ -4241,7 +4241,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4241
4241
|
if (!isFontLoaded) {
|
|
4242
4242
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
4243
4243
|
ref: textRef,
|
|
4244
|
-
key:
|
|
4244
|
+
key: id
|
|
4245
4245
|
}, element, {
|
|
4246
4246
|
id: element.id,
|
|
4247
4247
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4255,7 +4255,7 @@ var EditableText = function EditableText(_ref) {
|
|
|
4255
4255
|
}
|
|
4256
4256
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, _extends({
|
|
4257
4257
|
ref: textRef,
|
|
4258
|
-
key:
|
|
4258
|
+
key: id
|
|
4259
4259
|
}, element, {
|
|
4260
4260
|
id: element.id,
|
|
4261
4261
|
fontVariant: element === null || element === void 0 ? void 0 : element.fontWeight,
|
|
@@ -4922,6 +4922,7 @@ var Editor = function Editor(_ref) {
|
|
|
4922
4922
|
case elementTypes.text:
|
|
4923
4923
|
return /*#__PURE__*/React.createElement(EditableText, {
|
|
4924
4924
|
key: el.id,
|
|
4925
|
+
id: el.id,
|
|
4925
4926
|
element: el,
|
|
4926
4927
|
onClick: function onClick() {
|
|
4927
4928
|
return handleSelect(el);
|