@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
13 lines (12 loc) • 519 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
export const inputDateTypeOptions = ['date', 'datetime-local', 'month', 'time', 'week'];
const isInputDateTypePropType = (value) => {
return typeof value === 'string' && inputDateTypeOptions.includes(value);
};
export const validateTypeInputDate = (component, value) => {
watchValidator(component, '_type', isInputDateTypePropType, new Set(inputDateTypeOptions), value);
};
//# sourceMappingURL=type-input-date.js.map