UNPKG

@public-ui/components

Version:

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

4 lines 663 B
/*! * KoliBri - The accessible HTML-Standard */ import{i as isArray,a as isObjectLike,b as baseGetTag}from"./isArray-7a60fa7f.js";import{h,F as Fragment}from"./index-136f59ac.js";var stringTag="[object String]";function isString(e){return"string"==typeof e||!isArray(e)&&isObjectLike(e)&&baseGetTag(e)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:e,label:t})=>{const n=e;let[a,...r]=t.split(n);return 0===r.length&&(e=n.toUpperCase(),[a,...r]=t.split(n)),0===r.length&&(e=n.toLowerCase(),[a,...r]=t.split(n)),h(Fragment,null,a,r.length?h(Fragment,null,h("u",null,e),r.join(n)):null)};export{KolInternalUnderlinedBadgeTextFc as K,isString as i};