oolib 2.30.5 → 2.31.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.
@@ -1,4 +1,4 @@
1
- export function TagDisplay({ display, style, invert, M, XS, tagColor, textColor, variant }: {
1
+ export function TagDisplay({ display, style, invert, M, XS, tagColor, textColor, variant, }: {
2
2
  display: any;
3
3
  style: any;
4
4
  invert: any;
@@ -8,10 +8,9 @@ export function TagDisplay({ display, style, invert, M, XS, tagColor, textColor,
8
8
  textColor: any;
9
9
  variant?: string;
10
10
  }): any;
11
- export function TagClear({ id, display, value, M, XS, invert, onClick, variant, grey, }: {
11
+ export function TagClear({ id, display, M, XS, invert, onClick, variant, grey, }: {
12
12
  id: any;
13
13
  display: any;
14
- value: any;
15
14
  M: any;
16
15
  XS: any;
17
16
  invert: any;
@@ -40,23 +40,23 @@ var index_styled_1 = require("./index.styled");
40
40
  var icons_1 = require("../../icons");
41
41
  var getTypoComp = function (size) { return size === 'XS' ?
42
42
  function (props) { return react_1.default.createElement(index_styled_1.STYLED_ELLIPSIS_SANS_2, __assign({}, props)); }
43
- : function (props) { return react_1.default.createElement(index_styled_1.STYLED_ELLIPSIS_SANS_3, __assign({}, props)); }; };
43
+ : function (props) { return react_1.default.createElement(index_styled_1.STYLED_ELLIPSIS_SANS_3, __assign({ semibold: true }, props)); }; };
44
44
  function TagDisplay(_a) {
45
- var display = _a.display, style = _a.style, invert = _a.invert, M = _a.M, XS = _a.XS, tagColor = _a.tagColor, textColor = _a.textColor, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b;
46
- var size = M ? 'M' : XS ? 'XS' : 'S';
45
+ var display = _a.display, style = _a.style, invert = _a.invert, M = _a.M, XS = _a.XS, tagColor = _a.tagColor, textColor = _a.textColor, _b = _a.variant, variant = _b === void 0 ? "primary" : _b;
46
+ var size = M ? "M" : XS ? "XS" : "S";
47
47
  var TYPO_COMP = getTypoComp(size);
48
48
  return (react_1.default.createElement(index_styled_1.StyledTagDisplay, { variant: variant, invert: invert, textColor: textColor, tagColor: tagColor, size: size, style: style },
49
- react_1.default.createElement(TYPO_COMP, { semibold: true }, display)));
49
+ react_1.default.createElement(TYPO_COMP, null, display)));
50
50
  }
51
51
  exports.TagDisplay = TagDisplay;
52
52
  function TagClear(_a) {
53
- var id = _a.id, display = _a.display, value = _a.value, M = _a.M, XS = _a.XS, invert = _a.invert, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, grey = _a.grey;
53
+ var id = _a.id, display = _a.display, M = _a.M, XS = _a.XS, invert = _a.invert, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, grey = _a.grey;
54
54
  var XIconCom = icons_1.icons['X'];
55
55
  var size = M ? 'M' : XS ? 'XS' : 'S';
56
56
  var TYPO_COMP = getTypoComp(size);
57
57
  return (react_1.default.createElement(index_styled_1.StyledTagClear, { invert: invert, size: size, grey: grey, variant: variant },
58
58
  react_1.default.createElement(TYPO_COMP, null, display),
59
- react_1.default.createElement(index_styled_1.StyledTagClearIconWrapper, { invert: invert, grey: grey, variant: variant, onClick: function () { return onClick(id, { display: display, value: value }); } },
59
+ react_1.default.createElement(index_styled_1.StyledTagClearIconWrapper, { invert: invert, grey: grey, variant: variant, onClick: onClick },
60
60
  react_1.default.createElement(XIconCom, { size: size === 'XS' ? '12' : '15', weight: 'bold' }))));
61
61
  }
62
62
  exports.TagClear = TagClear;
@@ -75,7 +75,7 @@ function TagSelect(_a) {
75
75
  var size = M ? 'M' : XS ? 'XS' : 'S';
76
76
  var TYPO_COMP = getTypoComp(size);
77
77
  return (react_1.default.createElement(index_styled_1.StyledTagSelect, { disabled: disabled, invert: invert, onClick: function () { return !onMouseDown && !disabled && handleOnClick(); }, selected: selected, size: size, style: style, onMouseDown: function (ev) { return !disabled && onMouseDown && onMouseDown(ev); } },
78
- react_1.default.createElement(TYPO_COMP, { semibold: true }, display)));
78
+ react_1.default.createElement(TYPO_COMP, null, display)));
79
79
  }
80
80
  exports.TagSelect = TagSelect;
81
81
  function TagLink(_a) {
@@ -42,7 +42,7 @@ var SIZES = {
42
42
  };
43
43
  var commonStyle = function (_a) {
44
44
  var size = _a.size;
45
- return "\n padding: 0 1rem;\n position: relative;\n display: inline-flex;\n column-gap: 1rem;\n align-items: center;\n border-radius:0.2rem;\n white-space: nowrap;\n\theight: ".concat(SIZES[size], ";\n max-width: 100%;\n");
45
+ return "\n padding: ".concat(size === "XS" ? "0 .5rem" : "0 1rem", ";\n position: relative;\n display: inline-flex;\n column-gap: 1rem;\n align-items: ").concat(size === "XS" ? "baseline" : "center", ";\n border-radius:0.2rem;\n white-space: nowrap;\n\theight: ").concat(SIZES[size], ";\n max-width: 100%;\n");
46
46
  };
47
47
  var blueHover = function (_a) {
48
48
  var invert = _a.invert, colors = _a.colors;
@@ -71,7 +71,7 @@ var StyledTagDisplay = styled_components_1.default.div(templateObject_7 || (temp
71
71
  : !invert
72
72
  ? greyColor15
73
73
  : greyColor80, textColor ? textColor : !invert ? greyColor80 : greyColor40) : //secondary
74
- (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "], ["\n background: none;\n border: ", " solid\n ", ";\n color: ", ";\n "])), size === "XS" ? "1px" : "2px", tagColor ? tagColor : !invert ? greyColor15 : greyColor80, textColor ? textColor : !invert ? greyColor80 : greyColor15);
74
+ (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: none;\n border: ", " solid\n /* border: 2px solid */\n ", ";\n color: ", ";\n "], ["\n background: none;\n border: ", " solid\n /* border: 2px solid */\n ", ";\n color: ", ";\n "])), size === "XS" ? "1px" : "2px", tagColor ? tagColor : !invert ? size === "XS" ? greyColor100 : greyColor15 : greyColor80, textColor ? textColor : !invert ? size === "XS" ? greyColor100 : greyColor80 : greyColor15);
75
75
  });
76
76
  exports.StyledTagDisplay = StyledTagDisplay;
77
77
  var StyledTagClear = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n\n \t", "\n\t//overrides of commonStyle\n\tpadding-right: 0;\n\tgap: 0.5rem;\n\t//--\n\n\t", "\n \n\t\n\t", "\n"], ["\n\n \t", "\n\t//overrides of commonStyle\n\tpadding-right: 0;\n\tgap: 0.5rem;\n\t//--\n\n\t", "\n \n\t\n\t", "\n"])), function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.30.5",
3
+ "version": "2.31.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",