blue-react 8.6.2 → 8.6.4
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/dist/components/Search.js +18 -7
- package/dist/style.css +24 -15
- package/dist/style.min.css +4 -4
- package/dist/style.scss +1 -1
- package/dist/styles/_action-menu.scss +1 -1
- package/dist/styles/_search.scss +1 -0
- package/dist/styles/_variables.scss +1 -1
- package/dist/styles/mixins/_action-menu.scss +2 -2
- package/dist/styles/mixins/_sidebar.scss +5 -1
- package/package.json +1 -1
|
@@ -68,8 +68,8 @@ function Search(props) {
|
|
|
68
68
|
(0, _react.useEffect)(function () {
|
|
69
69
|
if (props.value) setValue(props.value);
|
|
70
70
|
}, [props.value]);
|
|
71
|
-
return /*#__PURE__*/_react.default.createElement("form", {
|
|
72
|
-
className: "blue-search " + (body ? "blue-search-body " : "") + (focus ? "focus " : "") + (sidebar ? "blue-search-sidebar " : "") + className,
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("form", {
|
|
72
|
+
className: "blue-search " + (body ? "blue-search-body " : "") + (focus ? "focus " : "") + (sidebar ? "blue-search-sidebar blue-sidebar-visible-on-open " : "") + className,
|
|
73
73
|
onSubmit: function onSubmit(event) {
|
|
74
74
|
event.preventDefault();
|
|
75
75
|
toggleSidebar();
|
|
@@ -142,12 +142,23 @@ function Search(props) {
|
|
|
142
142
|
viewBox: "0 0 16 16"
|
|
143
143
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
144
144
|
d: "M4.646 4.646a.5.5 0 01.708 0L8 7.293l2.646-2.647a.5.5 0 01.708.708L8.707 8l2.647 2.646a.5.5 0 01-.708.708L8 8.707l-2.646 2.647a.5.5 0 01-.708-.708L7.293 8 4.646 5.354a.5.5 0 010-.708z"
|
|
145
|
-
}))))), sidebar && /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
146
|
-
href: "#",
|
|
145
|
+
})))))), sidebar && /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
147
146
|
className: "blue-search-btn",
|
|
148
|
-
icon: icon,
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
icon: icon || /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("svg", {
|
|
148
|
+
width: "1em",
|
|
149
|
+
height: "1em",
|
|
150
|
+
viewBox: "0 0 16 16",
|
|
151
|
+
className: "bi bi-search mt-n1",
|
|
152
|
+
fill: "currentColor",
|
|
153
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
154
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
155
|
+
fillRule: "evenodd",
|
|
156
|
+
d: "M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"
|
|
157
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
158
|
+
fillRule: "evenodd",
|
|
159
|
+
d: "M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"
|
|
160
|
+
}))),
|
|
161
|
+
onClick: function onClick() {
|
|
151
162
|
toggleSidebar();
|
|
152
163
|
setTimeout(function () {
|
|
153
164
|
var _document$querySelect;
|