ehscan-react-components 0.1.38 → 0.1.40
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 -0
- package/dist/AddBox.js +1 -1
- package/dist/style/addbox.css +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/AddBox.js
CHANGED
|
@@ -6,6 +6,6 @@ export const AddBox = ({ value, onChange }) => {
|
|
|
6
6
|
const addRow = () => onChange([...value, { id: Date.now(), title: "" }]);
|
|
7
7
|
const removeRow = (id) => onChange(value.filter((entry) => entry.id !== id));
|
|
8
8
|
const changeTxt = (id, newTitle) => onChange(newTitle, id);
|
|
9
|
-
const btnRow = (item) => (_jsxs("div", { className: "ext-add-content-row", children: [_jsx("div", { className: "ext-add-content-row-bullet", children: "\u2022" }), _jsx("input", { className: "ext-addbox-input", type: "text", placeholder: "...", value: item.title, onChange: (e) => changeTxt(item.id, e.target.value), spellCheck: false }), _jsx("div", { className: "ext-addbox-textarea-tag-erase", onClick: () => removeRow(item.id), children: closeBtn() })] }, item.id));
|
|
9
|
+
const btnRow = (item) => (_jsxs("div", { className: "ext-add-content-row", children: [_jsx("div", { className: "ext-add-content-row-bullet", children: "\u2022" }), _jsx("input", { id: `inputAddBox-${item.id}`, className: "ext-addbox-input", type: "text", placeholder: "...", value: item.title, onChange: (e) => changeTxt(item.id, e.target.value), spellCheck: false }), _jsx("div", { className: "ext-addbox-textarea-tag-erase", onClick: () => removeRow(item.id), children: closeBtn() })] }, item.id));
|
|
10
10
|
return (_jsxs("div", { className: "ext-add-inputbox", children: [_jsxs("div", { className: "ext-add-inputbox-title", children: [_jsx("div", { className: "ext-add-inputbox-title-txt", children: "title" }), _jsx("div", { className: "ext-add-inputbox-title-plus-wrapper", children: _jsx("div", { className: "ext-add-inputbox-title-plus", onClick: addRow, children: plusBtn() }) })] }), _jsx("div", { className: "ext-add-inputbox-body", children: value.map((item) => btnRow(item)) })] }));
|
|
11
11
|
};
|
package/dist/style/addbox.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
border-radius: var(--ext-add-inputbox-border-radius, 10px);
|
|
5
5
|
user-select: none;
|
|
6
|
-
border:2px solid white
|
|
6
|
+
border: var(--ext-add-inputbox-border, 2px solid white);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.ext-add-inputbox-title{
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ext-add-inputbox-body{
|
|
61
|
-
padding: 20px 10px 10px 10px;
|
|
61
|
+
padding: var(--ext-add-inputbox-body-padding, 20px 10px 10px 10px);
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: 7px;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.ext-add-content-row:hover{
|
|
80
|
-
|
|
80
|
+
background-color: var(--ext-add-content-row-hover-bck-clr, whitesmoke);
|
|
81
81
|
cursor: pointer;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ext-addbox-textarea-tag-erase:hover{
|
|
98
|
-
background-color: darkgray;
|
|
98
|
+
background-color: var(--ext-addbox-textarea-tag-erase-hover-bck-clr, darkgray);
|
|
99
99
|
cursor: pointer;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
|
|
109
109
|
.ext-addbox-input:focus {
|
|
110
110
|
background: #f0f4ff;
|
|
111
|
-
border: 1px dashed darkgrey;
|
|
111
|
+
border: var(--ext-addbox-input-focus-border, 1px dashed darkgrey);
|
|
112
112
|
}
|