@dreamtree-org/twreact-ui 1.0.67 → 1.0.69
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/index.esm.js +28 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +28 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -220,7 +220,7 @@ const Check = createLucideIcon$1("Check", [
|
|
|
220
220
|
*/
|
|
221
221
|
|
|
222
222
|
|
|
223
|
-
const ChevronDown
|
|
223
|
+
const ChevronDown = createLucideIcon$1("ChevronDown", [
|
|
224
224
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
225
225
|
]);
|
|
226
226
|
|
|
@@ -3696,7 +3696,7 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, forwardedRef
|
|
|
3696
3696
|
return _objectSpread$a(_objectSpread$a({}, prev), {}, _defineProperty$4({}, group.label, !prev[group.label]));
|
|
3697
3697
|
});
|
|
3698
3698
|
}
|
|
3699
|
-
}, /*#__PURE__*/React__default.createElement(ChevronDown
|
|
3699
|
+
}, /*#__PURE__*/React__default.createElement(ChevronDown, {
|
|
3700
3700
|
className: cn$1("h-4 w-4 text-gray-400 transition-transform", {
|
|
3701
3701
|
"rotate-180": collapsedGroups[group.label]
|
|
3702
3702
|
})
|
|
@@ -3805,7 +3805,7 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, forwardedRef
|
|
|
3805
3805
|
"aria-label": "Clear selection"
|
|
3806
3806
|
}, /*#__PURE__*/React__default.createElement(X, {
|
|
3807
3807
|
className: "h-4 w-4"
|
|
3808
|
-
})), /*#__PURE__*/React__default.createElement(ChevronDown
|
|
3808
|
+
})), /*#__PURE__*/React__default.createElement(ChevronDown, {
|
|
3809
3809
|
className: cn$1("h-4 w-4 text-gray-400 transition-transform", {
|
|
3810
3810
|
"rotate-180": isOpen
|
|
3811
3811
|
})
|
|
@@ -4645,7 +4645,7 @@ var Table = function Table(_ref) {
|
|
|
4645
4645
|
className: cn$1("h-3 w-3", {
|
|
4646
4646
|
"text-primary-600": sortConfig.key === column.key && sortConfig.direction === "asc"
|
|
4647
4647
|
})
|
|
4648
|
-
}), /*#__PURE__*/React__default.createElement(ChevronDown
|
|
4648
|
+
}), /*#__PURE__*/React__default.createElement(ChevronDown, {
|
|
4649
4649
|
className: cn$1("h-3 w-3 -mt-1", {
|
|
4650
4650
|
"text-primary-600": sortConfig.key === column.key && sortConfig.direction === "desc"
|
|
4651
4651
|
})
|
|
@@ -20439,59 +20439,64 @@ var Helpers = /*#__PURE__*/function () {
|
|
|
20439
20439
|
}
|
|
20440
20440
|
}]);
|
|
20441
20441
|
}();
|
|
20442
|
+
|
|
20443
|
+
// A serializable-safe TrackingPromise that *does not* put the promise or any methods in the redux action payload.
|
|
20444
|
+
// This class is only intended to be used locally (not as part of redux/store payloads).
|
|
20445
|
+
// DO NOT EVER put an instance of TrackingPromise directly in redux actions.
|
|
20442
20446
|
var TrackingPromise = /*#__PURE__*/function () {
|
|
20443
20447
|
function TrackingPromise(callback) {
|
|
20444
20448
|
var _this = this;
|
|
20445
20449
|
_classCallCheck$1(this, TrackingPromise);
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20450
|
+
this._state = "pending";
|
|
20451
|
+
this._callback = callback;
|
|
20452
|
+
this._promise = new Promise(function (resolve, reject) {
|
|
20453
|
+
_this._resolve = function (value) {
|
|
20454
|
+
_this._state = "fulfilled";
|
|
20455
|
+
resolve(value);
|
|
20456
|
+
};
|
|
20457
|
+
_this._reject = function (reason) {
|
|
20458
|
+
_this._state = "rejected";
|
|
20459
|
+
reject(reason);
|
|
20455
20460
|
};
|
|
20456
|
-
_this.
|
|
20461
|
+
_this._callback(_this._resolve, _this._reject);
|
|
20457
20462
|
});
|
|
20458
20463
|
}
|
|
20459
20464
|
return _createClass$1(TrackingPromise, [{
|
|
20460
20465
|
key: "resolve",
|
|
20461
20466
|
value: function resolve(value) {
|
|
20462
|
-
this.
|
|
20463
|
-
this.
|
|
20467
|
+
if (this._state !== "pending") return;
|
|
20468
|
+
this._resolve(value);
|
|
20464
20469
|
}
|
|
20465
20470
|
}, {
|
|
20466
20471
|
key: "reject",
|
|
20467
20472
|
value: function reject(reason) {
|
|
20468
|
-
this.
|
|
20469
|
-
this.
|
|
20473
|
+
if (this._state !== "pending") return;
|
|
20474
|
+
this._reject(reason);
|
|
20470
20475
|
}
|
|
20471
20476
|
}, {
|
|
20472
20477
|
key: "isFulfilled",
|
|
20473
20478
|
value: function isFulfilled() {
|
|
20474
|
-
return this.
|
|
20479
|
+
return this._state === "fulfilled";
|
|
20475
20480
|
}
|
|
20476
20481
|
}, {
|
|
20477
20482
|
key: "isRejected",
|
|
20478
20483
|
value: function isRejected() {
|
|
20479
|
-
return this.
|
|
20484
|
+
return this._state === "rejected";
|
|
20480
20485
|
}
|
|
20481
20486
|
}, {
|
|
20482
20487
|
key: "isPending",
|
|
20483
20488
|
value: function isPending() {
|
|
20484
|
-
return this.
|
|
20489
|
+
return this._state === "pending";
|
|
20485
20490
|
}
|
|
20486
20491
|
}, {
|
|
20487
20492
|
key: "then",
|
|
20488
20493
|
value: function then(onFulfilled, onRejected) {
|
|
20489
|
-
return this.
|
|
20494
|
+
return this._promise.then(onFulfilled, onRejected);
|
|
20490
20495
|
}
|
|
20491
20496
|
}, {
|
|
20492
20497
|
key: "catch",
|
|
20493
20498
|
value: function _catch(onRejected) {
|
|
20494
|
-
return this.
|
|
20499
|
+
return this._promise["catch"](onRejected);
|
|
20495
20500
|
}
|
|
20496
20501
|
}]);
|
|
20497
20502
|
}();
|