@teselagen/ui 0.4.6 → 0.4.8
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.
- package/index.cjs.js +60 -22
- package/index.es.js +60 -22
- package/package.json +1 -1
- package/src/TgSelect/index.js +37 -4
- package/src/TgSelect/style.css +20 -0
- package/src/style.css +14 -0
- package/src/utils/menuUtils.js +6 -4
- package/style.css +34 -0
package/index.cjs.js
CHANGED
|
@@ -14143,25 +14143,16 @@ var toString$5 = {}.toString;
|
|
|
14143
14143
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
14144
14144
|
return toString$5.call(it).slice(8, -1);
|
|
14145
14145
|
}, "_cof");
|
|
14146
|
-
var
|
|
14147
|
-
var
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
return _iobject;
|
|
14151
|
-
hasRequired_iobject = 1;
|
|
14152
|
-
var cof2 = _cof;
|
|
14153
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14154
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
14155
|
-
};
|
|
14156
|
-
return _iobject;
|
|
14157
|
-
}
|
|
14158
|
-
__name(require_iobject, "require_iobject");
|
|
14146
|
+
var cof$2 = _cof;
|
|
14147
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14148
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
14149
|
+
};
|
|
14159
14150
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
14160
14151
|
if (it == void 0)
|
|
14161
14152
|
throw TypeError("Can't call method on " + it);
|
|
14162
14153
|
return it;
|
|
14163
14154
|
}, "_defined");
|
|
14164
|
-
var IObject =
|
|
14155
|
+
var IObject = _iobject;
|
|
14165
14156
|
var defined$2 = _defined;
|
|
14166
14157
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
14167
14158
|
return IObject(defined$2(it));
|
|
@@ -14282,7 +14273,7 @@ function require_objectAssign() {
|
|
|
14282
14273
|
var gOPS2 = _objectGops;
|
|
14283
14274
|
var pIE2 = require_objectPie();
|
|
14284
14275
|
var toObject2 = _toObject;
|
|
14285
|
-
var IObject2 =
|
|
14276
|
+
var IObject2 = _iobject;
|
|
14286
14277
|
var $assign = Object.assign;
|
|
14287
14278
|
_objectAssign = !$assign || _fails(function() {
|
|
14288
14279
|
var A2 = {};
|
|
@@ -35926,8 +35917,9 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35926
35917
|
}
|
|
35927
35918
|
render() {
|
|
35928
35919
|
var _b2;
|
|
35929
|
-
|
|
35920
|
+
let _a2 = this.props, {
|
|
35930
35921
|
multi,
|
|
35922
|
+
asTag,
|
|
35931
35923
|
options,
|
|
35932
35924
|
unfilteredOptions,
|
|
35933
35925
|
value,
|
|
@@ -35940,6 +35932,10 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35940
35932
|
noResultsText,
|
|
35941
35933
|
noResults: _noResults,
|
|
35942
35934
|
inputProps,
|
|
35935
|
+
backgroundColor,
|
|
35936
|
+
doNotFillWidth,
|
|
35937
|
+
noToggle,
|
|
35938
|
+
small,
|
|
35943
35939
|
placeholder,
|
|
35944
35940
|
isLoading,
|
|
35945
35941
|
disallowClear,
|
|
@@ -35951,6 +35947,7 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35951
35947
|
renderCreateNewOption: _renderCreateNewOption = renderCreateNewOption$1
|
|
35952
35948
|
} = _a2, rest = __objRest(_a2, [
|
|
35953
35949
|
"multi",
|
|
35950
|
+
"asTag",
|
|
35954
35951
|
"options",
|
|
35955
35952
|
"unfilteredOptions",
|
|
35956
35953
|
"value",
|
|
@@ -35964,6 +35961,10 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35964
35961
|
"noResultsText",
|
|
35965
35962
|
"noResults",
|
|
35966
35963
|
"inputProps",
|
|
35964
|
+
"backgroundColor",
|
|
35965
|
+
"doNotFillWidth",
|
|
35966
|
+
"noToggle",
|
|
35967
|
+
"small",
|
|
35967
35968
|
"placeholder",
|
|
35968
35969
|
"isLoading",
|
|
35969
35970
|
"disallowClear",
|
|
@@ -35974,6 +35975,14 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35974
35975
|
"resetOnSelect",
|
|
35975
35976
|
"renderCreateNewOption"
|
|
35976
35977
|
]);
|
|
35978
|
+
if (asTag) {
|
|
35979
|
+
small = true;
|
|
35980
|
+
placeholder = " ";
|
|
35981
|
+
backgroundColor = "red";
|
|
35982
|
+
disallowClear = true;
|
|
35983
|
+
doNotFillWidth = true;
|
|
35984
|
+
noToggle = true;
|
|
35985
|
+
}
|
|
35977
35986
|
let noResults = _noResults;
|
|
35978
35987
|
if (noResults === void 0)
|
|
35979
35988
|
noResults = noResultsDefault;
|
|
@@ -35987,7 +35996,7 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
35987
35996
|
minimal: true,
|
|
35988
35997
|
onClick: this.handleClear
|
|
35989
35998
|
}
|
|
35990
|
-
), noResults !== null && /* @__PURE__ */ React$1.createElement(
|
|
35999
|
+
), noResults !== null && !noToggle && /* @__PURE__ */ React$1.createElement(
|
|
35991
36000
|
core$5.Button,
|
|
35992
36001
|
{
|
|
35993
36002
|
onClick: (e2) => {
|
|
@@ -36011,7 +36020,7 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
36011
36020
|
(opt) => opt && opt.value === (value2 && value2.value || value2)
|
|
36012
36021
|
);
|
|
36013
36022
|
});
|
|
36014
|
-
|
|
36023
|
+
const toRet = /* @__PURE__ */ React$1.createElement(
|
|
36015
36024
|
select.MultiSelect,
|
|
36016
36025
|
__spreadValues(__spreadValues({
|
|
36017
36026
|
onActiveItemChange: this.handleActiveItemChange,
|
|
@@ -36025,7 +36034,10 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
36025
36034
|
captureDismiss: true,
|
|
36026
36035
|
minimal: true,
|
|
36027
36036
|
className: classNames("tg-select", "tg-stop-dialog-form-enter", {
|
|
36028
|
-
"tg-single-select": !multi
|
|
36037
|
+
"tg-single-select": !multi,
|
|
36038
|
+
"tg-select-as-tag": asTag,
|
|
36039
|
+
"do-not-fill-width": doNotFillWidth,
|
|
36040
|
+
"tg-small": small
|
|
36029
36041
|
}),
|
|
36030
36042
|
wrapperTagName: "div",
|
|
36031
36043
|
canEscapeKeyClose: true,
|
|
@@ -36080,6 +36092,23 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
36080
36092
|
})
|
|
36081
36093
|
}), rest)
|
|
36082
36094
|
);
|
|
36095
|
+
if (backgroundColor) {
|
|
36096
|
+
return /* @__PURE__ */ React$1.createElement(
|
|
36097
|
+
"div",
|
|
36098
|
+
{
|
|
36099
|
+
style: {
|
|
36100
|
+
backgroundColor,
|
|
36101
|
+
borderRadius: "4px 4px 4px 4px",
|
|
36102
|
+
overflow: "hidden",
|
|
36103
|
+
width: "fit-content",
|
|
36104
|
+
color: "white",
|
|
36105
|
+
border: "2px solid white"
|
|
36106
|
+
}
|
|
36107
|
+
},
|
|
36108
|
+
toRet
|
|
36109
|
+
);
|
|
36110
|
+
}
|
|
36111
|
+
return toRet;
|
|
36083
36112
|
}
|
|
36084
36113
|
};
|
|
36085
36114
|
__name(_TgSelect, "TgSelect");
|
|
@@ -70926,9 +70955,18 @@ function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
|
70926
70955
|
const handleLinkClick = /* @__PURE__ */ __name((e2) => {
|
|
70927
70956
|
e2.target.closest(`.${core$5.Classes.POPOVER_DISMISS}`).click();
|
|
70928
70957
|
}, "handleLinkClick");
|
|
70929
|
-
return /* @__PURE__ */ React$1.createElement("li", { className: core$5.Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$1.createElement(
|
|
70930
|
-
|
|
70931
|
-
|
|
70958
|
+
return /* @__PURE__ */ React$1.createElement("li", { className: core$5.Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$1.createElement(
|
|
70959
|
+
Link,
|
|
70960
|
+
{
|
|
70961
|
+
onClick: handleLinkClick,
|
|
70962
|
+
to: navTo,
|
|
70963
|
+
className: classNames(core$5.Classes.MENU_ITEM, {
|
|
70964
|
+
[core$5.Classes.ACTIVE]: active3
|
|
70965
|
+
})
|
|
70966
|
+
},
|
|
70967
|
+
icon && /* @__PURE__ */ React$1.createElement(core$5.Icon, { icon }),
|
|
70968
|
+
/* @__PURE__ */ React$1.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)
|
|
70969
|
+
));
|
|
70932
70970
|
}
|
|
70933
70971
|
__name(MenuItemLink, "MenuItemLink");
|
|
70934
70972
|
const EnhancedMenuItem = compose(
|
package/index.es.js
CHANGED
|
@@ -14125,25 +14125,16 @@ var toString$5 = {}.toString;
|
|
|
14125
14125
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
14126
14126
|
return toString$5.call(it).slice(8, -1);
|
|
14127
14127
|
}, "_cof");
|
|
14128
|
-
var
|
|
14129
|
-
var
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
return _iobject;
|
|
14133
|
-
hasRequired_iobject = 1;
|
|
14134
|
-
var cof2 = _cof;
|
|
14135
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14136
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
14137
|
-
};
|
|
14138
|
-
return _iobject;
|
|
14139
|
-
}
|
|
14140
|
-
__name(require_iobject, "require_iobject");
|
|
14128
|
+
var cof$2 = _cof;
|
|
14129
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14130
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
14131
|
+
};
|
|
14141
14132
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
14142
14133
|
if (it == void 0)
|
|
14143
14134
|
throw TypeError("Can't call method on " + it);
|
|
14144
14135
|
return it;
|
|
14145
14136
|
}, "_defined");
|
|
14146
|
-
var IObject =
|
|
14137
|
+
var IObject = _iobject;
|
|
14147
14138
|
var defined$2 = _defined;
|
|
14148
14139
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
14149
14140
|
return IObject(defined$2(it));
|
|
@@ -14264,7 +14255,7 @@ function require_objectAssign() {
|
|
|
14264
14255
|
var gOPS2 = _objectGops;
|
|
14265
14256
|
var pIE2 = require_objectPie();
|
|
14266
14257
|
var toObject2 = _toObject;
|
|
14267
|
-
var IObject2 =
|
|
14258
|
+
var IObject2 = _iobject;
|
|
14268
14259
|
var $assign = Object.assign;
|
|
14269
14260
|
_objectAssign = !$assign || _fails(function() {
|
|
14270
14261
|
var A2 = {};
|
|
@@ -35908,8 +35899,9 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35908
35899
|
}
|
|
35909
35900
|
render() {
|
|
35910
35901
|
var _b2;
|
|
35911
|
-
|
|
35902
|
+
let _a2 = this.props, {
|
|
35912
35903
|
multi,
|
|
35904
|
+
asTag,
|
|
35913
35905
|
options,
|
|
35914
35906
|
unfilteredOptions,
|
|
35915
35907
|
value,
|
|
@@ -35922,6 +35914,10 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35922
35914
|
noResultsText,
|
|
35923
35915
|
noResults: _noResults,
|
|
35924
35916
|
inputProps,
|
|
35917
|
+
backgroundColor,
|
|
35918
|
+
doNotFillWidth,
|
|
35919
|
+
noToggle,
|
|
35920
|
+
small,
|
|
35925
35921
|
placeholder,
|
|
35926
35922
|
isLoading,
|
|
35927
35923
|
disallowClear,
|
|
@@ -35933,6 +35929,7 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35933
35929
|
renderCreateNewOption: _renderCreateNewOption = renderCreateNewOption$1
|
|
35934
35930
|
} = _a2, rest = __objRest(_a2, [
|
|
35935
35931
|
"multi",
|
|
35932
|
+
"asTag",
|
|
35936
35933
|
"options",
|
|
35937
35934
|
"unfilteredOptions",
|
|
35938
35935
|
"value",
|
|
@@ -35946,6 +35943,10 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35946
35943
|
"noResultsText",
|
|
35947
35944
|
"noResults",
|
|
35948
35945
|
"inputProps",
|
|
35946
|
+
"backgroundColor",
|
|
35947
|
+
"doNotFillWidth",
|
|
35948
|
+
"noToggle",
|
|
35949
|
+
"small",
|
|
35949
35950
|
"placeholder",
|
|
35950
35951
|
"isLoading",
|
|
35951
35952
|
"disallowClear",
|
|
@@ -35956,6 +35957,14 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35956
35957
|
"resetOnSelect",
|
|
35957
35958
|
"renderCreateNewOption"
|
|
35958
35959
|
]);
|
|
35960
|
+
if (asTag) {
|
|
35961
|
+
small = true;
|
|
35962
|
+
placeholder = " ";
|
|
35963
|
+
backgroundColor = "red";
|
|
35964
|
+
disallowClear = true;
|
|
35965
|
+
doNotFillWidth = true;
|
|
35966
|
+
noToggle = true;
|
|
35967
|
+
}
|
|
35959
35968
|
let noResults = _noResults;
|
|
35960
35969
|
if (noResults === void 0)
|
|
35961
35970
|
noResults = noResultsDefault;
|
|
@@ -35969,7 +35978,7 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35969
35978
|
minimal: true,
|
|
35970
35979
|
onClick: this.handleClear
|
|
35971
35980
|
}
|
|
35972
|
-
), noResults !== null && /* @__PURE__ */ React__default.createElement(
|
|
35981
|
+
), noResults !== null && !noToggle && /* @__PURE__ */ React__default.createElement(
|
|
35973
35982
|
Button,
|
|
35974
35983
|
{
|
|
35975
35984
|
onClick: (e2) => {
|
|
@@ -35993,7 +36002,7 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
35993
36002
|
(opt) => opt && opt.value === (value2 && value2.value || value2)
|
|
35994
36003
|
);
|
|
35995
36004
|
});
|
|
35996
|
-
|
|
36005
|
+
const toRet = /* @__PURE__ */ React__default.createElement(
|
|
35997
36006
|
MultiSelect,
|
|
35998
36007
|
__spreadValues(__spreadValues({
|
|
35999
36008
|
onActiveItemChange: this.handleActiveItemChange,
|
|
@@ -36007,7 +36016,10 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
36007
36016
|
captureDismiss: true,
|
|
36008
36017
|
minimal: true,
|
|
36009
36018
|
className: classNames("tg-select", "tg-stop-dialog-form-enter", {
|
|
36010
|
-
"tg-single-select": !multi
|
|
36019
|
+
"tg-single-select": !multi,
|
|
36020
|
+
"tg-select-as-tag": asTag,
|
|
36021
|
+
"do-not-fill-width": doNotFillWidth,
|
|
36022
|
+
"tg-small": small
|
|
36011
36023
|
}),
|
|
36012
36024
|
wrapperTagName: "div",
|
|
36013
36025
|
canEscapeKeyClose: true,
|
|
@@ -36062,6 +36074,23 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
36062
36074
|
})
|
|
36063
36075
|
}), rest)
|
|
36064
36076
|
);
|
|
36077
|
+
if (backgroundColor) {
|
|
36078
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
36079
|
+
"div",
|
|
36080
|
+
{
|
|
36081
|
+
style: {
|
|
36082
|
+
backgroundColor,
|
|
36083
|
+
borderRadius: "4px 4px 4px 4px",
|
|
36084
|
+
overflow: "hidden",
|
|
36085
|
+
width: "fit-content",
|
|
36086
|
+
color: "white",
|
|
36087
|
+
border: "2px solid white"
|
|
36088
|
+
}
|
|
36089
|
+
},
|
|
36090
|
+
toRet
|
|
36091
|
+
);
|
|
36092
|
+
}
|
|
36093
|
+
return toRet;
|
|
36065
36094
|
}
|
|
36066
36095
|
};
|
|
36067
36096
|
__name(_TgSelect, "TgSelect");
|
|
@@ -70908,9 +70937,18 @@ function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
|
70908
70937
|
const handleLinkClick = /* @__PURE__ */ __name((e2) => {
|
|
70909
70938
|
e2.target.closest(`.${Classes.POPOVER_DISMISS}`).click();
|
|
70910
70939
|
}, "handleLinkClick");
|
|
70911
|
-
return /* @__PURE__ */ React__default.createElement("li", { className: Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React__default.createElement(
|
|
70912
|
-
|
|
70913
|
-
|
|
70940
|
+
return /* @__PURE__ */ React__default.createElement("li", { className: Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React__default.createElement(
|
|
70941
|
+
Link,
|
|
70942
|
+
{
|
|
70943
|
+
onClick: handleLinkClick,
|
|
70944
|
+
to: navTo,
|
|
70945
|
+
className: classNames(Classes.MENU_ITEM, {
|
|
70946
|
+
[Classes.ACTIVE]: active3
|
|
70947
|
+
})
|
|
70948
|
+
},
|
|
70949
|
+
icon && /* @__PURE__ */ React__default.createElement(Icon, { icon }),
|
|
70950
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)
|
|
70951
|
+
));
|
|
70914
70952
|
}
|
|
70915
70953
|
__name(MenuItemLink, "MenuItemLink");
|
|
70916
70954
|
const EnhancedMenuItem = compose(
|
package/package.json
CHANGED
package/src/TgSelect/index.js
CHANGED
|
@@ -223,8 +223,9 @@ class TgSelect extends React.Component {
|
|
|
223
223
|
};
|
|
224
224
|
|
|
225
225
|
render() {
|
|
226
|
-
|
|
226
|
+
let {
|
|
227
227
|
multi,
|
|
228
|
+
asTag,
|
|
228
229
|
options,
|
|
229
230
|
unfilteredOptions,
|
|
230
231
|
value,
|
|
@@ -237,6 +238,10 @@ class TgSelect extends React.Component {
|
|
|
237
238
|
noResultsText,
|
|
238
239
|
noResults: _noResults,
|
|
239
240
|
inputProps,
|
|
241
|
+
backgroundColor,
|
|
242
|
+
doNotFillWidth,
|
|
243
|
+
noToggle,
|
|
244
|
+
small,
|
|
240
245
|
placeholder,
|
|
241
246
|
isLoading,
|
|
242
247
|
disallowClear,
|
|
@@ -248,6 +253,14 @@ class TgSelect extends React.Component {
|
|
|
248
253
|
renderCreateNewOption: _renderCreateNewOption = renderCreateNewOption,
|
|
249
254
|
...rest
|
|
250
255
|
} = this.props;
|
|
256
|
+
if (asTag) {
|
|
257
|
+
small = true;
|
|
258
|
+
placeholder = " ";
|
|
259
|
+
backgroundColor = "red";
|
|
260
|
+
disallowClear = true;
|
|
261
|
+
doNotFillWidth = true;
|
|
262
|
+
noToggle = true;
|
|
263
|
+
}
|
|
251
264
|
let noResults = _noResults;
|
|
252
265
|
|
|
253
266
|
// Null is also a valid value for a React Component, noResultsDefault should only be appplied when noResults is undefined
|
|
@@ -270,7 +283,7 @@ class TgSelect extends React.Component {
|
|
|
270
283
|
onClick={this.handleClear}
|
|
271
284
|
/>
|
|
272
285
|
)}
|
|
273
|
-
{noResults !== null && (
|
|
286
|
+
{noResults !== null && !noToggle && (
|
|
274
287
|
<Button
|
|
275
288
|
onClick={e => {
|
|
276
289
|
if (this.state.isOpen) {
|
|
@@ -301,7 +314,7 @@ class TgSelect extends React.Component {
|
|
|
301
314
|
opt => opt && opt.value === ((value && value.value) || value)
|
|
302
315
|
);
|
|
303
316
|
});
|
|
304
|
-
|
|
317
|
+
const toRet = (
|
|
305
318
|
<MultiSelect
|
|
306
319
|
onActiveItemChange={this.handleActiveItemChange}
|
|
307
320
|
closeOnSelect={!multi}
|
|
@@ -318,7 +331,10 @@ class TgSelect extends React.Component {
|
|
|
318
331
|
captureDismiss: true,
|
|
319
332
|
minimal: true,
|
|
320
333
|
className: classNames("tg-select", "tg-stop-dialog-form-enter", {
|
|
321
|
-
"tg-single-select": !multi
|
|
334
|
+
"tg-single-select": !multi,
|
|
335
|
+
"tg-select-as-tag": asTag,
|
|
336
|
+
"do-not-fill-width": doNotFillWidth,
|
|
337
|
+
"tg-small": small
|
|
322
338
|
}),
|
|
323
339
|
wrapperTagName: "div",
|
|
324
340
|
canEscapeKeyClose: true,
|
|
@@ -387,6 +403,23 @@ class TgSelect extends React.Component {
|
|
|
387
403
|
{...rest}
|
|
388
404
|
/>
|
|
389
405
|
);
|
|
406
|
+
if (backgroundColor) {
|
|
407
|
+
return (
|
|
408
|
+
<div
|
|
409
|
+
style={{
|
|
410
|
+
backgroundColor: backgroundColor,
|
|
411
|
+
borderRadius: "4px 4px 4px 4px",
|
|
412
|
+
overflow: "hidden",
|
|
413
|
+
width: "fit-content",
|
|
414
|
+
color: "white",
|
|
415
|
+
border: "2px solid white"
|
|
416
|
+
}}
|
|
417
|
+
>
|
|
418
|
+
{toRet}
|
|
419
|
+
</div>
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
return toRet;
|
|
390
423
|
}
|
|
391
424
|
}
|
|
392
425
|
|
package/src/TgSelect/style.css
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
min-width: 170px;
|
|
4
4
|
}
|
|
5
|
+
.tg-select.tg-select-as-tag .bp3-tag.bp3-minimal.bp3-intent-primary {
|
|
6
|
+
color: white !important;
|
|
7
|
+
}
|
|
8
|
+
.tg-select.do-not-fill-width {
|
|
9
|
+
width: auto;
|
|
10
|
+
min-width: 50px;
|
|
11
|
+
}
|
|
12
|
+
.tg-select.tg-small .bp3-input {
|
|
13
|
+
min-height: 25px;
|
|
14
|
+
height: 25px;
|
|
15
|
+
}
|
|
16
|
+
.tg-select.tg-small input {
|
|
17
|
+
line-height: 10.5px;
|
|
18
|
+
}
|
|
19
|
+
.tg-select.tg-small .bp3-tag-input .bp3-input-ghost {
|
|
20
|
+
line-height: 10.5px;
|
|
21
|
+
}
|
|
22
|
+
.tg-select.tg-small .bp3-tag-input .bp3-tag-input-values {
|
|
23
|
+
margin-top: 2px;
|
|
24
|
+
}
|
|
5
25
|
.tg-select input {
|
|
6
26
|
font-size: 14px;
|
|
7
27
|
}
|
package/src/style.css
CHANGED
|
@@ -246,3 +246,17 @@ button:not(:disabled):active {
|
|
|
246
246
|
.bp3-dialog-header .bp3-heading {
|
|
247
247
|
width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
|
|
248
248
|
}
|
|
249
|
+
|
|
250
|
+
/* to fix tooltip styling issue - https://github.com/palantir/blueprint/issues/3430 */
|
|
251
|
+
.bp3-popover[style*="transform-origin"][style*="bottom"] .bp3-popover-arrow {
|
|
252
|
+
transform: translate(0, -0.5px);
|
|
253
|
+
}
|
|
254
|
+
.bp3-popover[style*="transform-origin"][style*="left"] .bp3-popover-arrow {
|
|
255
|
+
transform: translate(0.5px, 0);
|
|
256
|
+
}
|
|
257
|
+
.bp3-popover[style*="transform-origin"][style*="top"] .bp3-popover-arrow {
|
|
258
|
+
transform: translate(0, 0.5px);
|
|
259
|
+
}
|
|
260
|
+
.bp3-popover[style*="transform-origin"][style*="right"] .bp3-popover-arrow {
|
|
261
|
+
transform: translate(-0.5px, 0);
|
|
262
|
+
}
|
package/src/utils/menuUtils.js
CHANGED
|
@@ -30,11 +30,13 @@ function MenuItemLink({ text, onClick, icon, navTo, active }) {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<li className={Classes.POPOVER_DISMISS} onClick={onClick}>
|
|
33
|
-
<Link
|
|
34
|
-
|
|
33
|
+
<Link
|
|
34
|
+
onClick={handleLinkClick}
|
|
35
|
+
to={navTo}
|
|
36
|
+
className={classNames(Classes.MENU_ITEM, {
|
|
35
37
|
[Classes.ACTIVE]: active
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
+
})}
|
|
39
|
+
>
|
|
38
40
|
{icon && <Icon icon={icon} />}
|
|
39
41
|
<div className="bp3-text-overflow-ellipsis bp3-fill">{text}</div>
|
|
40
42
|
</Link>
|
package/style.css
CHANGED
|
@@ -9064,6 +9064,20 @@ button:not(:disabled):active {
|
|
|
9064
9064
|
.bp3-dialog-header .bp3-heading {
|
|
9065
9065
|
width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
|
|
9066
9066
|
}
|
|
9067
|
+
|
|
9068
|
+
/* to fix tooltip styling issue - https://github.com/palantir/blueprint/issues/3430 */
|
|
9069
|
+
.bp3-popover[style*="transform-origin"][style*="bottom"] .bp3-popover-arrow {
|
|
9070
|
+
transform: translate(0, -0.5px);
|
|
9071
|
+
}
|
|
9072
|
+
.bp3-popover[style*="transform-origin"][style*="left"] .bp3-popover-arrow {
|
|
9073
|
+
transform: translate(0.5px, 0);
|
|
9074
|
+
}
|
|
9075
|
+
.bp3-popover[style*="transform-origin"][style*="top"] .bp3-popover-arrow {
|
|
9076
|
+
transform: translate(0, 0.5px);
|
|
9077
|
+
}
|
|
9078
|
+
.bp3-popover[style*="transform-origin"][style*="right"] .bp3-popover-arrow {
|
|
9079
|
+
transform: translate(-0.5px, 0);
|
|
9080
|
+
}
|
|
9067
9081
|
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
|
|
9068
9082
|
.rg-celleditor input {
|
|
9069
9083
|
border: none;
|
|
@@ -9072,6 +9086,26 @@ button:not(:disabled):active {
|
|
|
9072
9086
|
width: 100%;
|
|
9073
9087
|
min-width: 170px;
|
|
9074
9088
|
}
|
|
9089
|
+
.tg-select.tg-select-as-tag .bp3-tag.bp3-minimal.bp3-intent-primary {
|
|
9090
|
+
color: white !important;
|
|
9091
|
+
}
|
|
9092
|
+
.tg-select.do-not-fill-width {
|
|
9093
|
+
width: auto;
|
|
9094
|
+
min-width: 50px;
|
|
9095
|
+
}
|
|
9096
|
+
.tg-select.tg-small .bp3-input {
|
|
9097
|
+
min-height: 25px;
|
|
9098
|
+
height: 25px;
|
|
9099
|
+
}
|
|
9100
|
+
.tg-select.tg-small input {
|
|
9101
|
+
line-height: 10.5px;
|
|
9102
|
+
}
|
|
9103
|
+
.tg-select.tg-small .bp3-tag-input .bp3-input-ghost {
|
|
9104
|
+
line-height: 10.5px;
|
|
9105
|
+
}
|
|
9106
|
+
.tg-select.tg-small .bp3-tag-input .bp3-tag-input-values {
|
|
9107
|
+
margin-top: 2px;
|
|
9108
|
+
}
|
|
9075
9109
|
.tg-select input {
|
|
9076
9110
|
font-size: 14px;
|
|
9077
9111
|
}
|