oolib 2.215.0 → 2.215.2

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.
@@ -51,6 +51,7 @@ export namespace icons {
51
51
  export { Wrench };
52
52
  export { CheckSquare };
53
53
  export { CheckSquareOffset };
54
+ export { RadioButton };
54
55
  export { Cards };
55
56
  export { SignOut };
56
57
  export { Swap };
@@ -104,6 +105,7 @@ export namespace icons {
104
105
  export { LightbulbFilament };
105
106
  export { Keyboard };
106
107
  export { TextAa };
108
+ export { TextT };
107
109
  export { ThumbsUp };
108
110
  export { ChatText };
109
111
  export { SlackLogo };
@@ -138,6 +140,7 @@ export namespace icons {
138
140
  export { Stack };
139
141
  export { Sparkle };
140
142
  export { Chat };
143
+ export { Numpad };
141
144
  export { OkeGoogleIcon };
142
145
  export { LetterH };
143
146
  export { IndexIcon };
@@ -256,6 +259,7 @@ import { GearSixIcon as GearSix } from '@phosphor-icons/react';
256
259
  import { WrenchIcon as Wrench } from '@phosphor-icons/react';
257
260
  import { CheckSquareIcon as CheckSquare } from '@phosphor-icons/react';
258
261
  import { CheckSquareOffsetIcon as CheckSquareOffset } from '@phosphor-icons/react';
262
+ import { RadioButtonIcon as RadioButton } from '@phosphor-icons/react';
259
263
  import { CardsIcon as Cards } from '@phosphor-icons/react';
260
264
  import { SignOutIcon as SignOut } from '@phosphor-icons/react';
261
265
  import { SwapIcon as Swap } from '@phosphor-icons/react';
@@ -309,6 +313,7 @@ import { BinocularsIcon as Binoculars } from '@phosphor-icons/react';
309
313
  import { LightbulbFilamentIcon as LightbulbFilament } from '@phosphor-icons/react';
310
314
  import { KeyboardIcon as Keyboard } from '@phosphor-icons/react';
311
315
  import { TextAaIcon as TextAa } from '@phosphor-icons/react';
316
+ import { TextTIcon as TextT } from '@phosphor-icons/react';
312
317
  import { ThumbsUpIcon as ThumbsUp } from '@phosphor-icons/react';
313
318
  import { ChatTextIcon as ChatText } from '@phosphor-icons/react';
314
319
  import { SlackLogoIcon as SlackLogo } from '@phosphor-icons/react';
@@ -343,6 +348,7 @@ import { SlidersHorizontalIcon as SlidersHorizontal } from '@phosphor-icons/reac
343
348
  import { StackIcon as Stack } from '@phosphor-icons/react';
344
349
  import { SparkleIcon as Sparkle } from '@phosphor-icons/react';
345
350
  import { ChatIcon as Chat } from '@phosphor-icons/react';
351
+ import { NumpadIcon as Numpad } from '@phosphor-icons/react';
346
352
  import { OkeGoogleIcon } from "./custom";
347
353
  import { LetterH } from "./custom";
348
354
  import { IndexIcon } from "./custom";
@@ -56,6 +56,7 @@ exports.icons = {
56
56
  Wrench: react_1.WrenchIcon,
57
57
  CheckSquare: react_1.CheckSquareIcon,
58
58
  CheckSquareOffset: react_1.CheckSquareOffsetIcon,
59
+ RadioButton: react_1.RadioButtonIcon,
59
60
  Cards: react_1.CardsIcon,
60
61
  SignOut: react_1.SignOutIcon,
61
62
  Swap: react_1.SwapIcon,
@@ -109,6 +110,7 @@ exports.icons = {
109
110
  LightbulbFilament: react_1.LightbulbFilamentIcon,
110
111
  Keyboard: react_1.KeyboardIcon,
111
112
  TextAa: react_1.TextAaIcon,
113
+ TextT: react_1.TextTIcon,
112
114
  ThumbsUp: react_1.ThumbsUpIcon,
113
115
  ChatText: react_1.ChatTextIcon,
114
116
  SlackLogo: react_1.SlackLogoIcon,
@@ -143,6 +145,7 @@ exports.icons = {
143
145
  Stack: react_1.StackIcon,
144
146
  Sparkle: react_1.SparkleIcon,
145
147
  Chat: react_1.ChatIcon,
148
+ Numpad: react_1.NumpadIcon,
146
149
  //custom icons
147
150
  OkeGoogleIcon: custom_1.OkeGoogleIcon,
148
151
  LetterH: custom_1.LetterH,
@@ -27,6 +27,7 @@ var SelectDropdown = function (_a) {
27
27
  value: value,
28
28
  isTagsStyle: false,
29
29
  });
30
+ console.log({ selectConfig: selectConfig, value: value });
30
31
  var showElem = function (elem) {
31
32
  if (selectConfig === "all")
32
33
  return true;
@@ -37,7 +38,7 @@ var SelectDropdown = function (_a) {
37
38
  var genSelectComp = function () { return (react_1.default.createElement(styled_1.StyledSelectWrapper, { tabIndex: 0, S: S, isPlaceholder: (Array.isArray(value) && (value === null || value === void 0 ? void 0 : value.length) < 1) || !value, disabled: disabled, style: selectStyleOverride, variant: variant, showOptions: showOptions, className: "StyledSelectWrapper_styleOverrideHandle" },
38
39
  react_1.default.createElement("div", { style: { display: "flex", gap: "1rem", alignItems: "center", zIndex: 1, padding: S ? "0.4rem 0" : "1rem 0" } },
39
40
  showElem('color') && (0, genColor_1.genColor)({ color: value === null || value === void 0 ? void 0 : value.color }),
40
- showElem("icon") && (0, genIcon_1.genIcon)({ icon: value === null || value === void 0 ? void 0 : value.icon, S: S }),
41
+ showElem("icon") && (0, genIcon_1.genIcon)({ icon: value === null || value === void 0 ? void 0 : value.icon, S: S, weight: value === null || value === void 0 ? void 0 : value.iconWeight }),
41
42
  showElem("display") && (react_1.default.createElement(TypoComp
42
43
  // semibold={
43
44
  // dropdownSelectText.desc && showElem("desc") ? true : undefined
@@ -1,11 +1,44 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
5
38
  Object.defineProperty(exports, "__esModule", { value: true });
6
39
  exports.ListItem = void 0;
7
40
  var react_1 = __importDefault(require("react"));
8
- var styled_components_1 = require("styled-components");
41
+ var styled_components_1 = __importStar(require("styled-components"));
9
42
  var TextLoader_1 = require("../../../../components/LoadersAndProgress/TextLoader");
10
43
  // import { genProfileImg } from "../../Dropdowns/utils/genProfileImg";
11
44
  var genIcon_1 = require("../../Dropdowns/utils/genIcon");
@@ -41,7 +74,7 @@ var ListItem = function (_a) {
41
74
  return null;
42
75
  };
43
76
  return (react_1.default.createElement(styled_1.StyledListItemWrapper, { index: index, isSelected: isSelected, isFocussed: isFocussed, className: "OKE-Dropdown__option", ref: function (el) { return isFocussed && el && scrollFocussedOpIntoView(el); }, onClick: handleClick, S: S, style: { pointerEvents: disabled && "none", cursor: !disabled && "pointer" } },
44
- react_1.default.createElement("div", { ref: observerRef, style: {
77
+ react_1.default.createElement(styled_1.StyledWrapper, { ref: observerRef, style: {
45
78
  display: "flex",
46
79
  alignItems: desc ? "flex-start" : "center",
47
80
  gap: icon ? "0.6rem" : "0.8rem",
@@ -63,7 +96,7 @@ var ListItem = function (_a) {
63
96
  }),
64
97
  color && (0, genColor_1.genColor)({ color: color }))),
65
98
  react_1.default.createElement("div", null,
66
- react_1.default.createElement(TypoComp, { semibold: desc ? true : false, className: "OKE-Dropdown__optionText ".concat(optionsClassName || ""), style: { color: disabled ? grey40 : grey80 } }, (0, getText_1.getText)(display)),
99
+ react_1.default.createElement(TypoComp, { title: (0, getText_1.getText)(display), semibold: desc ? true : false, className: "OKE-Dropdown__optionText ".concat(optionsClassName || ""), style: { color: disabled ? grey40 : grey80 } }, (0, getText_1.getText)(display)),
67
100
  desc && (react_1.default.createElement(Typo2_1.UI_CAPTION_DF, { className: "OKE-Dropdown__optionDesc", style: { color: disabled ? grey40 : grey60, marginTop: "0.2rem" } }, (0, getText_1.getText)(desc))))),
68
101
  react_1.default.createElement(styled_1.StyledRightSection, null,
69
102
  alignCheckbox === "right" && renderCheckBox(),
@@ -1,2 +1,3 @@
1
1
  export const StyledListItemWrapper: import("styled-components").StyledComponent<"li", any, {}, never>;
2
2
  export const StyledRightSection: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,44 +3,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || (function () {
23
- var ownKeys = function(o) {
24
- ownKeys = Object.getOwnPropertyNames || function (o) {
25
- var ar = [];
26
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
- return ar;
28
- };
29
- return ownKeys(o);
30
- };
31
- return function (mod) {
32
- if (mod && mod.__esModule) return mod;
33
- var result = {};
34
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
- __setModuleDefault(result, mod);
36
- return result;
37
- };
38
- })();
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
39
9
  Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.StyledRightSection = exports.StyledListItemWrapper = void 0;
41
- var styled_components_1 = __importStar(require("styled-components"));
10
+ exports.StyledWrapper = exports.StyledRightSection = exports.StyledListItemWrapper = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
42
12
  var themes_1 = require("../../../themes");
43
13
  var getDynamicColors_1 = require("../../../themes/utils/getDynamicColors");
14
+ var mixins_1 = require("../../../../themes/mixins");
44
15
  var grey10 = themes_1.colors.grey10;
45
16
  exports.StyledListItemWrapper = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n /* padding: ", "; */\n padding: 0.8rem;\n border-radius: 0.4rem;\n gap: 1rem;\n\n justify-content: space-between;\n\n \n background-color: ", ";\n\n .OKE-Dropdown__optionText{\n color: ", "\n } \n\n .OKE-Dropdown__optionIcon{\n color: ", "\n } \n\n &:hover{\n background-color: ", ";\n\n }\n\n \n\n &:first-of-type {\n /* margin-top: 0.4rem; */\n }\n\n &:last-of-type {\n /* margin-bottom: 0.4rem; */\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-top: 0.2rem;\n flex-shrink: 0;\n }\n"], ["\n display: flex;\n align-items: center;\n /* padding: ", "; */\n padding: 0.8rem;\n border-radius: 0.4rem;\n gap: 1rem;\n\n justify-content: space-between;\n\n \n background-color: ", ";\n\n .OKE-Dropdown__optionText{\n color: ", "\n } \n\n .OKE-Dropdown__optionIcon{\n color: ", "\n } \n\n &:hover{\n background-color: ", ";\n\n }\n\n \n\n &:first-of-type {\n /* margin-top: 0.4rem; */\n }\n\n &:last-of-type {\n /* margin-bottom: 0.4rem; */\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-top: 0.2rem;\n flex-shrink: 0;\n }\n"])), function (_a) {
46
17
  var S = _a.S;
@@ -59,4 +30,5 @@ exports.StyledListItemWrapper = styled_components_1.default.li(templateObject_1
59
30
  return "".concat(grey10);
60
31
  });
61
32
  exports.StyledRightSection = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 0.1rem;\n display: flex;\n gap: 0.5rem;\n align-self: flex-start;\n justify-content: space-between;\n"], ["\n margin-top: 0.1rem;\n display: flex;\n gap: 0.5rem;\n align-self: flex-start;\n justify-content: space-between;\n"])));
62
- var templateObject_1, templateObject_2;
33
+ exports.StyledWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), mixins_1.ellipsis);
34
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -30,11 +30,13 @@ export declare const colors: {
30
30
  blue: string;
31
31
  yellowBG: string;
32
32
  yellowStroke: string;
33
+ bronze: string;
33
34
  success: string;
34
35
  error: string;
35
36
  hintHover: string;
36
37
  hint: string;
37
38
  purple: string;
39
+ purple8: string;
38
40
  shadowDefault: string;
39
41
  shadowHover: string;
40
42
  green: string;
@@ -33,10 +33,12 @@ var blue = "#2F55FF";
33
33
  var yellow = "#DA9A0F";
34
34
  var yellowBG = "#FFF7DC";
35
35
  var yellowStroke = "#FFE09A";
36
+ var bronze = "#B27120";
36
37
  var redBG = "#FFE3E3";
37
38
  var red = "#800";
38
39
  // const green = "#159300";
39
- var purple = "#9D13E8";
40
+ var purple = "#8E13E9";
41
+ var purple8 = "#8E13E914";
40
42
  var error = "#C41717";
41
43
  var success = "#53AC00";
42
44
  var shadowDefault = "#0000000f";
@@ -96,11 +98,13 @@ exports.colors = {
96
98
  blue: blue,
97
99
  yellowBG: yellowBG,
98
100
  yellowStroke: yellowStroke,
101
+ bronze: bronze,
99
102
  success: success,
100
103
  error: error,
101
104
  hintHover: hintHover,
102
105
  hint: hint,
103
106
  purple: purple,
107
+ purple8: purple8,
104
108
  shadowDefault: shadowDefault,
105
109
  shadowHover: shadowHover,
106
110
  green: green,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.215.0",
3
+ "version": "2.215.2",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",