@douyinfe/semi-ui 2.53.0 → 2.53.2
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/umd/semi-ui.js
CHANGED
|
@@ -22737,8 +22737,9 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22737
22737
|
}
|
|
22738
22738
|
};
|
|
22739
22739
|
this.handleResizeEventTriggered = entries => {
|
|
22740
|
+
var _a, _b, _c, _d;
|
|
22740
22741
|
if (this.props.observerProperty === ObserverProperty.All) {
|
|
22741
|
-
this.props.onResize(entries);
|
|
22742
|
+
(_b = (_a = this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries);
|
|
22742
22743
|
} else {
|
|
22743
22744
|
const finalEntries = [];
|
|
22744
22745
|
for (const entry of entries) {
|
|
@@ -22753,7 +22754,7 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22753
22754
|
}
|
|
22754
22755
|
}
|
|
22755
22756
|
if (finalEntries.length > 0) {
|
|
22756
|
-
this.props.onResize(finalEntries);
|
|
22757
|
+
(_d = (_c = this.props).onResize) === null || _d === void 0 ? void 0 : _d.call(_c, finalEntries);
|
|
22757
22758
|
}
|
|
22758
22759
|
}
|
|
22759
22760
|
};
|
|
@@ -28192,7 +28193,7 @@ const badge_constants_cssClasses = {
|
|
|
28192
28193
|
PREFIX: `${BASE_CLASS_PREFIX}-badge`
|
|
28193
28194
|
};
|
|
28194
28195
|
const badge_constants_strings = {
|
|
28195
|
-
TYPE_SET: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
28196
|
+
TYPE_SET: ['success', 'primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
28196
28197
|
THEME_SET: ['solid', 'light', 'inverted'],
|
|
28197
28198
|
POS_SET: ['leftTop', 'leftBottom', 'rightTop', 'rightBottom']
|
|
28198
28199
|
};
|
|
@@ -85883,11 +85884,16 @@ class TimePickerFoundation extends foundation {
|
|
|
85883
85884
|
__prevTimeZone
|
|
85884
85885
|
} = props;
|
|
85885
85886
|
let dates = this.parseValue(value);
|
|
85886
|
-
|
|
85887
|
+
let invalid = dates.some(d => isNaN(Number(d)));
|
|
85887
85888
|
if (!invalid) {
|
|
85888
85889
|
if (this.isValidTimeZone(timeZone)) {
|
|
85889
85890
|
dates = dates.map(date => utcToZonedTime(this.isValidTimeZone(__prevTimeZone) ? zonedTimeToUtc(date, __prevTimeZone) : date, timeZone));
|
|
85890
85891
|
}
|
|
85892
|
+
invalid = dates.some(d => this.isDisabledHMS({
|
|
85893
|
+
hours: d.getHours(),
|
|
85894
|
+
minutes: d.getMinutes(),
|
|
85895
|
+
seconds: d.getSeconds()
|
|
85896
|
+
}));
|
|
85891
85897
|
}
|
|
85892
85898
|
const inputValue = this.formatValue(dates);
|
|
85893
85899
|
this.setState({
|