blue-react 8.6.1 → 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.
@@ -289,9 +289,16 @@ var Layout = /*#__PURE__*/function (_Component) {
289
289
  hideSidebarMenu: false,
290
290
  unrouteable: false,
291
291
  disableTitleSet: false,
292
- sidebarToggleIconComponent: /*#__PURE__*/_react.default.createElement("span", {
293
- className: "bi-menu"
294
- }),
292
+ sidebarToggleIconComponent: /*#__PURE__*/_react.default.createElement("svg", {
293
+ xmlns: "http://www.w3.org/2000/svg",
294
+ width: "1em",
295
+ height: "1em",
296
+ fill: "currentColor",
297
+ viewBox: "0 0 16 16"
298
+ }, /*#__PURE__*/_react.default.createElement("path", {
299
+ fillRule: "evenodd",
300
+ d: "M2.5 12a.5.5 0 01.5-.5h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z"
301
+ })),
295
302
  statusIcons: {
296
303
  danger: /*#__PURE__*/_react.default.createElement("span", {
297
304
  className: "bi-error"
@@ -133,7 +133,8 @@ function MenuItem(props) {
133
133
  onDragOver: props.onDragOver,
134
134
  onDragLeave: props.onDragLeave,
135
135
  onDrop: props.onDrop,
136
- draggable: props.draggable
136
+ draggable: props.draggable,
137
+ "data-tooltip": props["data-tooltip"]
137
138
  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
138
139
  className: (0, _clsx.default)("blue-menu-item-icon", {
139
140
  hasIconForActive: iconForActive
@@ -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
- onClick: function onClick(event) {
150
- event.preventDefault();
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;