@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
4 lines • 777 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
;const index=require("./index-8b802221.js"),validateAccessKey=(e,t)=>{index.watchString(e,"_accessKey",t)},options={hooks:{afterPatch:e=>{-1!==e&&0!==e&&index.a11yHint("Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(e,t)=>{index.watchNumber(e,"_tabIndex",t,options)},validateShortKey=(e,t)=>{index.watchString(e,"_shortKey",t)},validateAccessAndShortKey=(e,t)=>{if(e&&t)throw new Error("AccessKey and ShortKey are used. Only one is allowed.")};exports.validateAccessAndShortKey=validateAccessAndShortKey,exports.validateAccessKey=validateAccessKey,exports.validateShortKey=validateShortKey,exports.validateTabIndex=validateTabIndex;