@cakemail-org/ui-components-v2 2.1.56 → 2.1.58
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/dist/assets/scss/general.scss +0 -1
- package/dist/cjs/components/icon/types.d.ts +1 -0
- package/dist/cjs/components/icons/44/emptyList.d.ts +4 -0
- package/dist/cjs/index.js +10 -4
- package/dist/cjs/models/popups/types.d.ts +1 -3
- package/dist/esm/components/icon/types.d.ts +1 -0
- package/dist/esm/components/icons/44/emptyList.d.ts +4 -0
- package/dist/esm/index.js +10 -4
- package/dist/esm/models/popups/types.d.ts +1 -3
- package/package.json +1 -1
|
@@ -107,6 +107,7 @@ export declare enum EIconName {
|
|
|
107
107
|
"Uptime32" = "Uptime32",
|
|
108
108
|
"CreateWidget44" = "CreateWidget44",
|
|
109
109
|
"EmptyFolder44" = "EmptyFolder44",
|
|
110
|
+
"EmptyList44" = "EmptyList44",
|
|
110
111
|
"CreateForm44" = "CreateForm44",
|
|
111
112
|
"Stats44" = "Stats44",
|
|
112
113
|
"Upload44" = "Upload44"
|
package/dist/cjs/index.js
CHANGED
|
@@ -301,7 +301,8 @@ var Button = /** @class */ (function (_super) {
|
|
|
301
301
|
};
|
|
302
302
|
Button.prototype.render = function () {
|
|
303
303
|
var isDisabled = typeof this.props.disabled === "boolean" ? this.props.disabled : this.state.disabled;
|
|
304
|
-
|
|
304
|
+
var _a = this.props, className = _a.className, iconOnly = _a.iconOnly; _a.animated; var rest = __rest(_a, ["className", "iconOnly", "animated"]);
|
|
305
|
+
return React.createElement(LoadingButton, __assign({}, rest, { className: "".concat(className, " ").concat(iconOnly ? "iconOnly" : ""), disabled: isDisabled, loading: this.state.isLoading, onClick: this.handleOnClick, color: this.props.color }), this.props.children);
|
|
305
306
|
};
|
|
306
307
|
return Button;
|
|
307
308
|
}(React.Component));
|
|
@@ -1347,6 +1348,13 @@ function EmptyFolder(props) {
|
|
|
1347
1348
|
React.createElement("path", { d: "M26.0002 20.5V18.5H24.0002V20.5H26.0002Z" }));
|
|
1348
1349
|
}
|
|
1349
1350
|
|
|
1351
|
+
function EmptyList44(props) {
|
|
1352
|
+
return React.createElement(SvgIcon, __assign({}, props, { width: "46", height: "44", viewBox: "0 0 46 44" }),
|
|
1353
|
+
React.createElement("path", { className: "noFill", d: "M42.2808 30C43.2976 27.5343 43.8584 24.8327 43.8584 22C43.8584 10.402 34.4564 1 22.8584 1C11.2604 1 1.8584 10.402 1.8584 22C1.8584 33.598 11.2604 43 22.8584 43C25.6182 43 28.2536 42.4676 30.6677 41.5", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1354
|
+
React.createElement("path", { className: "noFill", d: "M7.8584 7L32.8584 32", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1355
|
+
React.createElement("path", { className: "noFill", d: "M37.8584 31V43M43.8584 37H31.8584", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", fill: "none" }));
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1350
1358
|
function Stats44(props) {
|
|
1351
1359
|
return React.createElement(SvgIcon, __assign({}, props, { width: "44", height: "44", viewBox: "0 0 44 44" }),
|
|
1352
1360
|
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 28.5H2V42.5H14V28.5H16V42.5H28V28.5H30V42.5H42V28.5H44V42.5V44.5H42H30H28H16H14H2H0V42.5V28.5Z" }),
|
|
@@ -1490,6 +1498,7 @@ function Icon(_a) {
|
|
|
1490
1498
|
Uptime32: Uptime32,
|
|
1491
1499
|
CreateWidget44: CreateWidget44,
|
|
1492
1500
|
EmptyFolder44: EmptyFolder,
|
|
1501
|
+
EmptyList44: EmptyList44,
|
|
1493
1502
|
CreateForm44: CreateForm44,
|
|
1494
1503
|
Stats44: Stats44,
|
|
1495
1504
|
Upload44: Upload44,
|
|
@@ -11087,7 +11096,6 @@ function InlineTextEdit(_a) {
|
|
|
11087
11096
|
offsetWidthOfSpan = 150;
|
|
11088
11097
|
}
|
|
11089
11098
|
var offsetHeightOfSpan = ((_c = spanRef === null || spanRef === void 0 ? void 0 : spanRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) || 20;
|
|
11090
|
-
console.log("offsetWidthOfSpan", value);
|
|
11091
11099
|
var classes = classNames("inlineTextEdit-component-v2", {
|
|
11092
11100
|
"editing": editing,
|
|
11093
11101
|
"disabled": disabled
|
|
@@ -17799,9 +17807,7 @@ exports.EPopupPosition = void 0;
|
|
|
17799
17807
|
EPopupPosition["center"] = "classic-center";
|
|
17800
17808
|
EPopupPosition["top_right"] = "classic-top-right";
|
|
17801
17809
|
EPopupPosition["top_left"] = "classic-top-left";
|
|
17802
|
-
EPopupPosition["top_center"] = "classic-top-center";
|
|
17803
17810
|
EPopupPosition["bottom_left"] = "classic-bottom-left";
|
|
17804
|
-
EPopupPosition["bottom_center"] = "classic-bottom-center";
|
|
17805
17811
|
EPopupPosition["bottom_right"] = "classic-bottom-right";
|
|
17806
17812
|
EPopupPosition["drawer_left"] = "drawer-left";
|
|
17807
17813
|
EPopupPosition["drawer_right"] = "drawer-right";
|
|
@@ -40,7 +40,7 @@ export type TPopupTargeting = {
|
|
|
40
40
|
utm_params: Record<string, string> | null;
|
|
41
41
|
};
|
|
42
42
|
export type TPopupContent = {
|
|
43
|
-
position: EPopupPosition
|
|
43
|
+
position: EPopupPosition;
|
|
44
44
|
json?: Record<string, any>;
|
|
45
45
|
};
|
|
46
46
|
export declare enum EPopupTriggerType {
|
|
@@ -74,9 +74,7 @@ export declare enum EPopupPosition {
|
|
|
74
74
|
center = "classic-center",
|
|
75
75
|
top_right = "classic-top-right",
|
|
76
76
|
top_left = "classic-top-left",
|
|
77
|
-
top_center = "classic-top-center",
|
|
78
77
|
bottom_left = "classic-bottom-left",
|
|
79
|
-
bottom_center = "classic-bottom-center",
|
|
80
78
|
bottom_right = "classic-bottom-right",
|
|
81
79
|
drawer_left = "drawer-left",
|
|
82
80
|
drawer_right = "drawer-right",
|
|
@@ -107,6 +107,7 @@ export declare enum EIconName {
|
|
|
107
107
|
"Uptime32" = "Uptime32",
|
|
108
108
|
"CreateWidget44" = "CreateWidget44",
|
|
109
109
|
"EmptyFolder44" = "EmptyFolder44",
|
|
110
|
+
"EmptyList44" = "EmptyList44",
|
|
110
111
|
"CreateForm44" = "CreateForm44",
|
|
111
112
|
"Stats44" = "Stats44",
|
|
112
113
|
"Upload44" = "Upload44"
|
package/dist/esm/index.js
CHANGED
|
@@ -281,7 +281,8 @@ var Button = /** @class */ (function (_super) {
|
|
|
281
281
|
};
|
|
282
282
|
Button.prototype.render = function () {
|
|
283
283
|
var isDisabled = typeof this.props.disabled === "boolean" ? this.props.disabled : this.state.disabled;
|
|
284
|
-
|
|
284
|
+
var _a = this.props, className = _a.className, iconOnly = _a.iconOnly; _a.animated; var rest = __rest(_a, ["className", "iconOnly", "animated"]);
|
|
285
|
+
return React__default.createElement(LoadingButton, __assign({}, rest, { className: "".concat(className, " ").concat(iconOnly ? "iconOnly" : ""), disabled: isDisabled, loading: this.state.isLoading, onClick: this.handleOnClick, color: this.props.color }), this.props.children);
|
|
285
286
|
};
|
|
286
287
|
return Button;
|
|
287
288
|
}(Component));
|
|
@@ -1327,6 +1328,13 @@ function EmptyFolder(props) {
|
|
|
1327
1328
|
React__default.createElement("path", { d: "M26.0002 20.5V18.5H24.0002V20.5H26.0002Z" }));
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1331
|
+
function EmptyList44(props) {
|
|
1332
|
+
return React__default.createElement(SvgIcon, __assign({}, props, { width: "46", height: "44", viewBox: "0 0 46 44" }),
|
|
1333
|
+
React__default.createElement("path", { className: "noFill", d: "M42.2808 30C43.2976 27.5343 43.8584 24.8327 43.8584 22C43.8584 10.402 34.4564 1 22.8584 1C11.2604 1 1.8584 10.402 1.8584 22C1.8584 33.598 11.2604 43 22.8584 43C25.6182 43 28.2536 42.4676 30.6677 41.5", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1334
|
+
React__default.createElement("path", { className: "noFill", d: "M7.8584 7L32.8584 32", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1335
|
+
React__default.createElement("path", { className: "noFill", d: "M37.8584 31V43M43.8584 37H31.8584", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", fill: "none" }));
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1330
1338
|
function Stats44(props) {
|
|
1331
1339
|
return React__default.createElement(SvgIcon, __assign({}, props, { width: "44", height: "44", viewBox: "0 0 44 44" }),
|
|
1332
1340
|
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 28.5H2V42.5H14V28.5H16V42.5H28V28.5H30V42.5H42V28.5H44V42.5V44.5H42H30H28H16H14H2H0V42.5V28.5Z" }),
|
|
@@ -1470,6 +1478,7 @@ function Icon(_a) {
|
|
|
1470
1478
|
Uptime32: Uptime32,
|
|
1471
1479
|
CreateWidget44: CreateWidget44,
|
|
1472
1480
|
EmptyFolder44: EmptyFolder,
|
|
1481
|
+
EmptyList44: EmptyList44,
|
|
1473
1482
|
CreateForm44: CreateForm44,
|
|
1474
1483
|
Stats44: Stats44,
|
|
1475
1484
|
Upload44: Upload44,
|
|
@@ -11067,7 +11076,6 @@ function InlineTextEdit(_a) {
|
|
|
11067
11076
|
offsetWidthOfSpan = 150;
|
|
11068
11077
|
}
|
|
11069
11078
|
var offsetHeightOfSpan = ((_c = spanRef === null || spanRef === void 0 ? void 0 : spanRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) || 20;
|
|
11070
|
-
console.log("offsetWidthOfSpan", value);
|
|
11071
11079
|
var classes = classNames("inlineTextEdit-component-v2", {
|
|
11072
11080
|
"editing": editing,
|
|
11073
11081
|
"disabled": disabled
|
|
@@ -17779,9 +17787,7 @@ var EPopupPosition;
|
|
|
17779
17787
|
EPopupPosition["center"] = "classic-center";
|
|
17780
17788
|
EPopupPosition["top_right"] = "classic-top-right";
|
|
17781
17789
|
EPopupPosition["top_left"] = "classic-top-left";
|
|
17782
|
-
EPopupPosition["top_center"] = "classic-top-center";
|
|
17783
17790
|
EPopupPosition["bottom_left"] = "classic-bottom-left";
|
|
17784
|
-
EPopupPosition["bottom_center"] = "classic-bottom-center";
|
|
17785
17791
|
EPopupPosition["bottom_right"] = "classic-bottom-right";
|
|
17786
17792
|
EPopupPosition["drawer_left"] = "drawer-left";
|
|
17787
17793
|
EPopupPosition["drawer_right"] = "drawer-right";
|
|
@@ -40,7 +40,7 @@ export type TPopupTargeting = {
|
|
|
40
40
|
utm_params: Record<string, string> | null;
|
|
41
41
|
};
|
|
42
42
|
export type TPopupContent = {
|
|
43
|
-
position: EPopupPosition
|
|
43
|
+
position: EPopupPosition;
|
|
44
44
|
json?: Record<string, any>;
|
|
45
45
|
};
|
|
46
46
|
export declare enum EPopupTriggerType {
|
|
@@ -74,9 +74,7 @@ export declare enum EPopupPosition {
|
|
|
74
74
|
center = "classic-center",
|
|
75
75
|
top_right = "classic-top-right",
|
|
76
76
|
top_left = "classic-top-left",
|
|
77
|
-
top_center = "classic-top-center",
|
|
78
77
|
bottom_left = "classic-bottom-left",
|
|
79
|
-
bottom_center = "classic-bottom-center",
|
|
80
78
|
bottom_right = "classic-bottom-right",
|
|
81
79
|
drawer_left = "drawer-left",
|
|
82
80
|
drawer_right = "drawer-right",
|