oolib 2.217.3 → 2.218.1

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.
@@ -221,6 +221,18 @@ var getEmptyStatesConfig = function (_a) {
221
221
  title: 'Type something in the searchbar above to start searching through your data',
222
222
  subtitle: "",
223
223
  };
224
+ case "globalSearch_noDataSources":
225
+ return {
226
+ align: "center",
227
+ image: {
228
+ src: "searchListing",
229
+ style: {
230
+ opacity: 0.6,
231
+ },
232
+ },
233
+ title: "No data sources present on the platform",
234
+ subtitle: "",
235
+ };
224
236
  case "searchDashBoardListing":
225
237
  return {
226
238
  align: "center",
@@ -140,8 +140,11 @@ export namespace icons {
140
140
  export { Stack };
141
141
  export { Sparkle };
142
142
  export { Chat };
143
+ export { Chats };
143
144
  export { Numpad };
144
145
  export { Hash };
146
+ export { Notebook };
147
+ export { Folder };
145
148
  export { OkeGoogleIcon };
146
149
  export { LetterH };
147
150
  export { IndexIcon };
@@ -349,8 +352,11 @@ import { SlidersHorizontalIcon as SlidersHorizontal } from '@phosphor-icons/reac
349
352
  import { StackIcon as Stack } from '@phosphor-icons/react';
350
353
  import { SparkleIcon as Sparkle } from '@phosphor-icons/react';
351
354
  import { ChatIcon as Chat } from '@phosphor-icons/react';
355
+ import { ChatsIcon as Chats } from '@phosphor-icons/react';
352
356
  import { NumpadIcon as Numpad } from '@phosphor-icons/react';
353
357
  import { HashIcon as Hash } from '@phosphor-icons/react';
358
+ import { NotebookIcon as Notebook } from '@phosphor-icons/react';
359
+ import { FolderIcon as Folder } from '@phosphor-icons/react';
354
360
  import { OkeGoogleIcon } from "./custom";
355
361
  import { LetterH } from "./custom";
356
362
  import { IndexIcon } from "./custom";
@@ -145,8 +145,11 @@ exports.icons = {
145
145
  Stack: react_1.StackIcon,
146
146
  Sparkle: react_1.SparkleIcon,
147
147
  Chat: react_1.ChatIcon,
148
+ Chats: react_1.ChatsIcon,
148
149
  Numpad: react_1.NumpadIcon,
149
150
  Hash: react_1.HashIcon,
151
+ Notebook: react_1.NotebookIcon,
152
+ Folder: react_1.FolderIcon,
150
153
  //custom icons
151
154
  OkeGoogleIcon: custom_1.OkeGoogleIcon,
152
155
  LetterH: custom_1.LetterH,
@@ -1,9 +1,10 @@
1
- export function genIcon({ icon, weight, disabled, S, color, className }: {
1
+ export function genIcon({ icon, weight, disabled, S, color, className, size }: {
2
2
  icon: any;
3
3
  weight?: string;
4
4
  disabled: any;
5
5
  S: any;
6
6
  color: any;
7
7
  className?: string;
8
+ size: any;
8
9
  }): React.JSX.Element;
9
10
  import React from "react";
@@ -11,7 +11,7 @@ var _EXPORTS_1 = require("../../../../utils/_EXPORTS");
11
11
  var mixins_1 = require("../../../../themes/mixins");
12
12
  var grey40 = themes_1.colors.grey40;
13
13
  var genIcon = function (_a) {
14
- var icon = _a.icon, _b = _a.weight, weight = _b === void 0 ? "bold" : _b, disabled = _a.disabled, S = _a.S, color = _a.color, _c = _a.className, className = _c === void 0 ? '' : _c;
14
+ var icon = _a.icon, _b = _a.weight, weight = _b === void 0 ? "bold" : _b, disabled = _a.disabled, S = _a.S, color = _a.color, _c = _a.className, className = _c === void 0 ? '' : _c, size = _a.size;
15
15
  if (!icon)
16
16
  return null;
17
17
  var IconComp = icons_1.icons[icon];
@@ -19,6 +19,6 @@ var genIcon = function (_a) {
19
19
  return null;
20
20
  var screenWidth = (0, _EXPORTS_1.useScreenWidth)();
21
21
  var isMobile = screenWidth <= (0, mixins_1.getBreakPoint)("sm");
22
- return react_1.default.createElement(IconComp, { className: className, size: isMobile ? 18 : 16, style: { color: disabled ? grey40 : (color || undefined) }, weight: weight });
22
+ return react_1.default.createElement(IconComp, { className: className, size: size || isMobile ? 18 : 16, style: { color: disabled ? grey40 : (color || undefined) }, weight: weight });
23
23
  };
24
24
  exports.genIcon = genIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.217.3",
3
+ "version": "2.218.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",