blixify-ui-web 0.4.171 → 0.4.172
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/lib/components/advanced/infoWindow/index.js +2 -2
- package/lib/components/advanced/infoWindow/index.js.map +1 -1
- package/lib/components/display/alert/index.d.ts +2 -0
- package/lib/components/display/alert/index.d.ts.map +1 -1
- package/lib/components/display/alert/index.js +9 -8
- package/lib/components/display/alert/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ var InfoWindow = function (props) {
|
|
|
43
43
|
setIsHover(isHovering);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
return (react_2.default.createElement(react_1.Popover, { onMouseEnter: function () { return handleHover(true); }, onMouseLeave: function () { return handleHover(false); }, className: "relative", style: { height: btnHeight
|
|
46
|
+
return (react_2.default.createElement(react_1.Popover, { onMouseEnter: function () { return handleHover(true); }, onMouseLeave: function () { return handleHover(false); }, className: "relative", style: { height: btnHeight } },
|
|
47
47
|
react_2.default.createElement(react_2.default.Fragment, null,
|
|
48
48
|
react_2.default.createElement(react_1.PopoverButton, { ref: buttonRef, onClick: function () {
|
|
49
49
|
if (props.onClick)
|
|
@@ -51,7 +51,7 @@ var InfoWindow = function (props) {
|
|
|
51
51
|
setIsHover(!isHover);
|
|
52
52
|
}, className: "focus:outline-none h-min" }, props.icon),
|
|
53
53
|
react_2.default.createElement(react_1.Transition, { show: isHover, as: react_2.Fragment },
|
|
54
|
-
react_2.default.createElement(react_1.PopoverPanel, { anchor: props.type, className: "flex flex-col " }, props.content)))));
|
|
54
|
+
react_2.default.createElement(react_1.PopoverPanel, { anchor: props.type, className: "flex flex-col z-[51]" }, props.content)))));
|
|
55
55
|
};
|
|
56
56
|
exports.InfoWindow = InfoWindow;
|
|
57
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/advanced/infoWindow/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAK2B;AAC3B,6CAMe;AACf,8BAA4B;AAmBrB,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,IAAM,SAAS,GAAG,IAAA,cAAM,GAAO,CAAC;IAC1B,IAAA,KAAwB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAtC,OAAO,QAAA,EAAE,UAAU,QAAmB,CAAC;IACxC,IAAA,KAA4B,IAAA,gBAAQ,GAAE,EAArC,SAAS,QAAA,EAAE,YAAY,QAAc,CAAC;IAE7C,IAAA,iBAAS,EAAC;QACR,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,KAAK,CAAC,WAAW;YAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,WAAW,GAAG,UAAC,UAAmB;QACtC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,CAAC;YAC9B,UAAU,CAAC,UAAU,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,8BAAC,eAAO,IACN,YAAY,EAAE,cAAM,OAAA,WAAW,CAAC,IAAI,CAAC,EAAjB,CAAiB,EACrC,YAAY,EAAE,cAAM,OAAA,WAAW,CAAC,KAAK,CAAC,EAAlB,CAAkB,EACtC,SAAS,EAAC,UAAU,EACpB,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/advanced/infoWindow/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAK2B;AAC3B,6CAMe;AACf,8BAA4B;AAmBrB,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,IAAM,SAAS,GAAG,IAAA,cAAM,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/D,KAAK,CAAC,OAAO,CACD,CACJ,CACZ,CACK,CACX,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,UAAU,cA4CrB"}
|
|
@@ -8,7 +8,9 @@ interface Props {
|
|
|
8
8
|
text: string;
|
|
9
9
|
onClick: () => void;
|
|
10
10
|
}[];
|
|
11
|
+
addContent?: ReactElement;
|
|
11
12
|
color?: "green" | "yellow" | "orange" | "blue" | "purple" | "red" | "dark" | "muted";
|
|
13
|
+
className?: string;
|
|
12
14
|
}
|
|
13
15
|
export declare class Alert extends Component<Props> {
|
|
14
16
|
renderColorsConfig: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/display/alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,oBAAoB,CAAC;AAG5B,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAC;IACrD,KAAK,CAAC,EACF,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,MAAM,GACN,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/display/alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,oBAAoB,CAAC;AAG5B,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAC;IACrD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,KAAK,CAAC,EACF,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,MAAM,GACN,OAAO,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,KAAM,SAAQ,SAAS,CAAC,KAAK,CAAC;IACzC,kBAAkB;;;;;MA4DhB;IAEF,MAAM;CAwCP"}
|
|
@@ -57,25 +57,25 @@ var Alert = /** @class */ (function (_super) {
|
|
|
57
57
|
containerBgColor = "bg-green-50";
|
|
58
58
|
titleColor = "text-green-800";
|
|
59
59
|
descColor = "text-green-500";
|
|
60
|
-
actionBtnColor = "text-green-800 hover:text-green-900";
|
|
60
|
+
actionBtnColor = "!text-green-800 !hover:text-green-900";
|
|
61
61
|
break;
|
|
62
62
|
case "yellow":
|
|
63
63
|
containerBgColor = "bg-yellow-50";
|
|
64
|
-
titleColor = "text-yellow-
|
|
65
|
-
descColor = "text-yellow-
|
|
66
|
-
actionBtnColor = "text-yellow-
|
|
64
|
+
titleColor = "text-yellow-700";
|
|
65
|
+
descColor = "text-yellow-600";
|
|
66
|
+
actionBtnColor = "text-yellow-700 hover:text-yellow-800";
|
|
67
67
|
break;
|
|
68
68
|
case "orange":
|
|
69
69
|
containerBgColor = "bg-orange-50";
|
|
70
70
|
titleColor = "text-orange-700";
|
|
71
71
|
descColor = "text-orange-500";
|
|
72
|
-
actionBtnColor = "text-orange-700 hover:text-orange-800";
|
|
72
|
+
actionBtnColor = "!text-orange-700 !hover:text-orange-800";
|
|
73
73
|
break;
|
|
74
74
|
case "blue":
|
|
75
75
|
containerBgColor = "bg-blue-50";
|
|
76
76
|
titleColor = "text-blue-800";
|
|
77
77
|
descColor = "text-blue-500";
|
|
78
|
-
actionBtnColor = "text-blue-
|
|
78
|
+
actionBtnColor = "!text-blue-700 !hover:text-blue-800";
|
|
79
79
|
break;
|
|
80
80
|
case "purple":
|
|
81
81
|
containerBgColor = "bg-purple-50";
|
|
@@ -99,7 +99,7 @@ var Alert = /** @class */ (function (_super) {
|
|
|
99
99
|
containerBgColor = "bg-neutral-100";
|
|
100
100
|
titleColor = "text-neutral-800";
|
|
101
101
|
descColor = "text-neutral-600";
|
|
102
|
-
actionBtnColor = "text-neutral-800 hover:text-neutral-900";
|
|
102
|
+
actionBtnColor = "!text-neutral-800 !hover:text-neutral-900";
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -110,13 +110,14 @@ var Alert = /** @class */ (function (_super) {
|
|
|
110
110
|
Alert.prototype.render = function () {
|
|
111
111
|
var _a;
|
|
112
112
|
var _b = this.renderColorsConfig(), containerBgColor = _b.containerBgColor, titleColor = _b.titleColor, descColor = _b.descColor, actionBtnColor = _b.actionBtnColor;
|
|
113
|
-
return (react_1.default.createElement("div", { className: "p-4 rounded-md ".concat(containerBgColor) },
|
|
113
|
+
return (react_1.default.createElement("div", { className: "p-4 rounded-md ".concat(containerBgColor, " ").concat(this.props.className) },
|
|
114
114
|
react_1.default.createElement("div", { className: "flex gap-x-3" },
|
|
115
115
|
this.props.icon && react_1.default.createElement("div", { className: "shrink-0" }, this.props.icon),
|
|
116
116
|
react_1.default.createElement("div", null,
|
|
117
117
|
react_1.default.createElement("h3", { className: "text-sm font-medium ".concat(titleColor) }, this.props.title),
|
|
118
118
|
this.props.desc && (react_1.default.createElement("div", { className: "mt-2 text-sm ".concat(descColor) },
|
|
119
119
|
react_1.default.createElement("p", null, this.props.desc))),
|
|
120
|
+
this.props.addContent && (react_1.default.createElement("div", { className: "mt-2 text-sm" }, this.props.addContent)),
|
|
120
121
|
this.props.actionBtns && ((_a = this.props.actionBtns) === null || _a === void 0 ? void 0 : _a.length) > 0 && (react_1.default.createElement("div", { className: "mt-4 flex flex-wrap gap-x-4" }, this.props.actionBtns.map(function (eachBtn) { return (react_1.default.createElement("div", { key: eachBtn.text },
|
|
121
122
|
react_1.default.createElement(textButton_1.TextButton, { onClick: function () { return eachBtn.onClick(); }, text: eachBtn.text, className: "text-sm ".concat(actionBtnColor, " hover:underline") }))); })))))));
|
|
122
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/display/alert/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,8BAA4B;AAC5B,sDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/display/alert/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,8BAA4B;AAC5B,sDAAqD;AAoBrD;IAA2B,yBAAgB;IAA3C;;QACE,wBAAkB,GAAG;YACnB,IAAI,gBAAgB,GAAG,eAAe,CAAC;YACvC,IAAI,UAAU,GAAG,kBAAkB,CAAC;YACpC,IAAI,SAAS,GAAG,kBAAkB,CAAC;YACnC,IAAI,cAAc,GAAG,yCAAyC,CAAC;YAE/D,IAAI,KAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACrB,QAAQ,KAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;oBACzB,KAAK,OAAO;wBACV,gBAAgB,GAAG,aAAa,CAAC;wBACjC,UAAU,GAAG,gBAAgB,CAAC;wBAC9B,SAAS,GAAG,gBAAgB,CAAC;wBAC7B,cAAc,GAAG,uCAAuC,CAAC;wBACzD,MAAM;oBACR,KAAK,QAAQ;wBACX,gBAAgB,GAAG,cAAc,CAAC;wBAClC,UAAU,GAAG,iBAAiB,CAAC;wBAC/B,SAAS,GAAG,iBAAiB,CAAC;wBAC9B,cAAc,GAAG,uCAAuC,CAAC;wBACzD,MAAM;oBACR,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