@douyinfe/semi-ui 2.53.0 → 2.53.1
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
|
@@ -28192,7 +28192,7 @@ const badge_constants_cssClasses = {
|
|
|
28192
28192
|
PREFIX: `${BASE_CLASS_PREFIX}-badge`
|
|
28193
28193
|
};
|
|
28194
28194
|
const badge_constants_strings = {
|
|
28195
|
-
TYPE_SET: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
28195
|
+
TYPE_SET: ['success', 'primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
28196
28196
|
THEME_SET: ['solid', 'light', 'inverted'],
|
|
28197
28197
|
POS_SET: ['leftTop', 'leftBottom', 'rightTop', 'rightBottom']
|
|
28198
28198
|
};
|
|
@@ -85883,11 +85883,16 @@ class TimePickerFoundation extends foundation {
|
|
|
85883
85883
|
__prevTimeZone
|
|
85884
85884
|
} = props;
|
|
85885
85885
|
let dates = this.parseValue(value);
|
|
85886
|
-
|
|
85886
|
+
let invalid = dates.some(d => isNaN(Number(d)));
|
|
85887
85887
|
if (!invalid) {
|
|
85888
85888
|
if (this.isValidTimeZone(timeZone)) {
|
|
85889
85889
|
dates = dates.map(date => utcToZonedTime(this.isValidTimeZone(__prevTimeZone) ? zonedTimeToUtc(date, __prevTimeZone) : date, timeZone));
|
|
85890
85890
|
}
|
|
85891
|
+
invalid = dates.some(d => this.isDisabledHMS({
|
|
85892
|
+
hours: d.getHours(),
|
|
85893
|
+
minutes: d.getMinutes(),
|
|
85894
|
+
seconds: d.getSeconds()
|
|
85895
|
+
}));
|
|
85891
85896
|
}
|
|
85892
85897
|
const inputValue = this.formatValue(dates);
|
|
85893
85898
|
this.setState({
|