UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

4 lines 601 B
/*! * KoliBri - The accessible HTML-Standard */ import{c as watchBoolean,N as watchNumber,w as watchValidator}from"./common.js";const validateHasCounter=(a,t,e)=>{watchBoolean(a,"_hasCounter",t,e)},validateMaxLength=(a,t,e={})=>{watchNumber(a,"_maxLength",t,Object.assign({min:0},e))},maxLengthBehaviorPropTypeOptions=["hard","soft"],validateMaxLengthBehavior=(a,t)=>{watchValidator(a,"_maxLengthBehavior",(a=>"string"==typeof a&&maxLengthBehaviorPropTypeOptions.includes(a)),new Set(["String {hard, soft}"]),t)};export{validateHasCounter as a,validateMaxLength as b,validateMaxLengthBehavior as v};