@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
4 lines • 659 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import{i as isArray,a as isObjectLike,b as baseGetTag}from"./isArray.js";import{h,Fragment}from"@stencil/core/internal/client";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[r,...i]=t.split(n);return 0===i.length&&(e=n.toUpperCase(),[r,...i]=t.split(n)),0===i.length&&(e=n.toLowerCase(),[r,...i]=t.split(n)),h(Fragment,null,r,i.length?h(Fragment,null,h("u",null,e),i.join(n)):null)};export{KolInternalUnderlinedBadgeTextFc as K,isString as i};