oolib 2.218.5 → 2.220.0

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.
@@ -147,6 +147,8 @@ export namespace icons {
147
147
  export { Folder };
148
148
  export { Users };
149
149
  export { Power };
150
+ export { ListChecks };
151
+ export { ArrowElbowDownLeft };
150
152
  export { OkeGoogleIcon };
151
153
  export { LetterH };
152
154
  export { IndexIcon };
@@ -361,6 +363,8 @@ import { NotebookIcon as Notebook } from '@phosphor-icons/react';
361
363
  import { FolderIcon as Folder } from '@phosphor-icons/react';
362
364
  import { UsersIcon as Users } from '@phosphor-icons/react';
363
365
  import { PowerIcon as Power } from '@phosphor-icons/react';
366
+ import { ListChecksIcon as ListChecks } from '@phosphor-icons/react';
367
+ import { ArrowElbowDownLeftIcon as ArrowElbowDownLeft } from '@phosphor-icons/react';
364
368
  import { OkeGoogleIcon } from "./custom";
365
369
  import { LetterH } from "./custom";
366
370
  import { IndexIcon } from "./custom";
@@ -152,6 +152,8 @@ exports.icons = {
152
152
  Folder: react_1.FolderIcon,
153
153
  Users: react_1.UsersIcon,
154
154
  Power: react_1.PowerIcon,
155
+ ListChecks: react_1.ListChecksIcon,
156
+ ArrowElbowDownLeft: react_1.ArrowElbowDownLeftIcon,
155
157
  //custom icons
156
158
  OkeGoogleIcon: custom_1.OkeGoogleIcon,
157
159
  LetterH: custom_1.LetterH,
@@ -18,7 +18,7 @@ exports.InlineAlert = void 0;
18
18
  var react_1 = __importDefault(require("react"));
19
19
  var colors_1 = require("../../themes/colors");
20
20
  var utilsOolib_1 = require("../../../utilsOolib");
21
- var success = colors_1.colors.success, error = colors_1.colors.error,
21
+ var green = colors_1.colors.green, red = colors_1.colors.red,
22
22
  // invertRed,
23
23
  white = colors_1.colors.white,
24
24
  // invertGreen,
@@ -38,8 +38,8 @@ var InlineAlert = function (_a) {
38
38
  var text = _a.text, link = _a.link, _b = _a.type, type = _b === void 0 ? 'neutral' : _b, style = _a.style, invert = _a.invert;
39
39
  var localize = (0, utilsOolib_1.useLocale)();
40
40
  var typeColor = {
41
- success: { normal: success },
42
- danger: { normal: error },
41
+ success: { normal: green },
42
+ danger: { normal: red },
43
43
  neutral: { normal: black },
44
44
  neutralInactive: { normal: grey70 },
45
45
  };
@@ -42,7 +42,7 @@ var styled_components_1 = __importStar(require("styled-components"));
42
42
  var mixins_1 = require("../../../themes/mixins");
43
43
  var themes_1 = require("../../themes");
44
44
  var getDynamicColors_1 = require("../../themes/utils/getDynamicColors");
45
- var onSecondary = themes_1.colors.onSecondary, white = themes_1.colors.white, black = themes_1.colors.black, grey80 = themes_1.colors.grey80, grey40 = themes_1.colors.grey40, grey10 = themes_1.colors.grey10, errorColor = themes_1.colors.error, redBG = themes_1.colors.redBG;
45
+ var onSecondary = themes_1.colors.onSecondary, white = themes_1.colors.white, black = themes_1.colors.black, grey80 = themes_1.colors.grey80, grey40 = themes_1.colors.grey40, grey10 = themes_1.colors.grey10, errorColor = themes_1.colors.red, redBG = themes_1.colors.redBG;
46
46
  exports.wrapperStyles = {
47
47
  style1: (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n :first-of-type {\n border-radius: 1px 0 0 2px;\n }\n :last-of-type {\n border-radius: 0 2px 2px 0;\n }\n\n background-color: white;\n color: ", ";\n \n ", " \n\n ", "\n\n ", "\n\n \n "], ["\n :first-of-type {\n border-radius: 1px 0 0 2px;\n }\n :last-of-type {\n border-radius: 0 2px 2px 0;\n }\n\n background-color: white;\n color: ", ";\n \n ", " \n\n ", "\n\n ", "\n\n \n "])), function (_a) {
48
48
  var error = _a.error, active = _a.active, disabled = _a.disabled;
@@ -1,7 +1,7 @@
1
1
  export function getTagDisplayStyles({ colorPreset }: {
2
2
  colorPreset: any;
3
3
  }): {
4
- backgroundColor: string;
4
+ backgroundColor: any;
5
5
  backdropFilter?: undefined;
6
6
  } | {
7
7
  backgroundColor: string;
@@ -208,7 +208,7 @@ function TextInput(_a) {
208
208
  (clearBtn && clearBtnEnabled) && (react_1.default.createElement(Buttons_1.ButtonSecondaryCompact, { onClick: function () { return onChange(id, ""); }, value: (clearBtn === null || clearBtn === void 0 ? void 0 : clearBtn.text) || "Clear", disabled: !clearBtnEnabled, style: { marginRight: size === "S" ? '-0.4rem' : '-0.2rem' } /** so that it stays ahead of the before element inside InputContainerStyled */ })),
209
209
  actionBtn && (react_1.default.createElement(Buttons_1.ButtonPrimaryCompact, { value: (actionBtn === null || actionBtn === void 0 ? void 0 : actionBtn.text) || "Action", onClick: actionBtnEnabaled && actionBtn.onClick, disabled: !actionBtnEnabaled, style: { marginRight: size === "S" ? '-0.4rem' : '-0.2rem' } /** so that it stays ahead of the before element inside InputContainerStyled */ }))),
210
210
  displayValidationMsg && (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.msg) && (react_1.default.createElement(index_styled_1.MsgContainerStyled, { status: validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type },
211
- (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "error" && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { size: 12, icon: "WarningDiamond", weight: "fill", color: themes_1.colors.error })),
211
+ (validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "error" && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { size: 12, icon: "WarningDiamond", weight: "fill", color: themes_1.colors.red })),
212
212
  react_1.default.createElement(Typo2_1.UI_HELPTEXT, null,
213
213
  react_1.default.createElement("div", { style: { display: 'flex' } },
214
214
  !((validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type) === "success") && validationStatus.msg,
@@ -42,7 +42,7 @@ var styled_components_1 = __importStar(require("styled-components"));
42
42
  var themes_1 = require("../../themes");
43
43
  var globalStyles_1 = require("../../themes/globalStyles");
44
44
  var getColorValue = function (status) {
45
- return status === "error" ? themes_1.colors.error : status === "success" && themes_1.colors.green;
45
+ return status === "error" ? themes_1.colors.red : status === "success" && themes_1.colors.green;
46
46
  };
47
47
  exports.MsgContainerStyled = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 2px;\n display: flex;\n align-items: center;\n gap: 2px;\n ", "\n"], ["\n margin-top: 2px;\n display: flex;\n align-items: center;\n gap: 2px;\n ", "\n"])), function (_a) {
48
48
  var status = _a.status;
@@ -23,7 +23,7 @@ var Tags_1 = require("../../Tags");
23
23
  var styled_2 = require("./styled");
24
24
  var ImagePlaceholder_1 = require("../../ImagePlaceholder");
25
25
  var Star = icons_1.icons.Star, CrownSimple = icons_1.icons.CrownSimple;
26
- var success = themes_1.colors.success, white = themes_1.colors.white;
26
+ var white = themes_1.colors.white;
27
27
  var CardLabelTag = function (_a) {
28
28
  var label = _a.label, isEmbedPresent = _a.isEmbedPresent, isHighlightPresent = _a.isHighlightPresent, labelTagColorPreset = _a.labelTagColorPreset, bothTagsDisplayTogether = _a.bothTagsDisplayTogether;
29
29
  return label ? (react_1.default.createElement(styled_2.StyledCardLabelWrapper, { isEmbedPresent: isEmbedPresent, isHighlightPresent: isHighlightPresent, bothTagsDisplayTogether: bothTagsDisplayTogether },
@@ -28,11 +28,12 @@ export declare const colors: {
28
28
  white: string;
29
29
  yellow: string;
30
30
  blue: string;
31
+ bronze: string;
31
32
  yellowBG: string;
32
33
  yellowStroke: string;
33
- bronze: string;
34
- success: string;
35
- error: string;
34
+ red: string;
35
+ redBG: string;
36
+ redText: string;
36
37
  hintHover: string;
37
38
  hint: string;
38
39
  purple: string;
@@ -41,9 +42,8 @@ export declare const colors: {
41
42
  shadowHover: string;
42
43
  green: string;
43
44
  greenBG: string;
45
+ greenText: string;
44
46
  greenStroke: string;
45
- redBG: string;
46
- red: string;
47
47
  };
48
48
  export interface Colors2Type {
49
49
  primary: string;
@@ -34,19 +34,18 @@ var yellow = "#DA9A0F";
34
34
  var yellowBG = "#FFF7DC";
35
35
  var yellowStroke = "#FFE09A";
36
36
  var bronze = "#B27120";
37
+ var red = "#E21114";
37
38
  var redBG = "#FFE3E3";
38
- var red = "#800";
39
- // const green = "#159300";
40
- var purple = "#8E13E9";
39
+ var redText = "#880000";
40
+ var purple = "#9D13E8";
41
41
  var purple8 = "#8E13E914";
42
- var error = "#C41717";
43
- var success = "#53AC00";
44
42
  var shadowDefault = "#0000000f";
45
43
  var shadowHover = "#0000001f";
46
44
  var hintHover = "#F4E8C3";
47
45
  var hint = "#B77222";
48
- var green = '#53AC00';
46
+ var green = "#53AC00";
49
47
  var greenBG = '#E8F6DA';
48
+ var greenText = '#3D7E00';
50
49
  var greenStroke = '#C4DAAF';
51
50
  exports.dataVizColors = [
52
51
  "#FF665D",
@@ -96,11 +95,12 @@ exports.colors = {
96
95
  white: white,
97
96
  yellow: yellow,
98
97
  blue: blue,
98
+ bronze: bronze,
99
99
  yellowBG: yellowBG,
100
100
  yellowStroke: yellowStroke,
101
- bronze: bronze,
102
- success: success,
103
- error: error,
101
+ red: red,
102
+ redBG: redBG,
103
+ redText: redText,
104
104
  hintHover: hintHover,
105
105
  hint: hint,
106
106
  purple: purple,
@@ -109,7 +109,6 @@ exports.colors = {
109
109
  shadowHover: shadowHover,
110
110
  green: green,
111
111
  greenBG: greenBG,
112
+ greenText: greenText,
112
113
  greenStroke: greenStroke,
113
- redBG: redBG,
114
- red: red,
115
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.218.5",
3
+ "version": "2.220.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",