@ni/ok-components 0.4.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17500,11 +17500,11 @@ const J1=_t`
17500
17500
  height: 100%;
17501
17501
  }
17502
17502
  `,Q1=J`<img aria-hidden="true" src=${t=>t.url}>`
17503
- class t2 extends Km{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-icon-dynamic-"
17503
+ class t2 extends Km{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-ts-icon-dynamic-"
17504
17504
  if(!t.startsWith(n))throw new Error(`Icon tag name must start with '${n}', provided name: ${t}`)
17505
- const i=t.substring(16)
17505
+ const i=t.substring(19)
17506
17506
  if(!/^[a-z][a-z]+$/.test(i))throw new Error(`Icon name must be lowercase [a-z] and at least two characters long, provided name: ${i}`)
17507
- const o=`IconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,r=`icon-dynamic-${i}`,s={[o]:class extends t2{constructor(){super(e)}}}[o].compose({baseName:r,template:Q1,styles:J1})
17508
- Mi.getOrCreate().withPrefix("ok").register(s())}}const e2=t2.compose({baseName:"icon-dynamic",template:J`<template></template>`,styles:_t`${z1("none")}`})
17507
+ const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,r=`ts-icon-dynamic-${i}`,s={[o]:class extends t2{constructor(){super(e)}}}[o].compose({baseName:r,template:Q1,styles:J1})
17508
+ Mi.getOrCreate().withPrefix("ok").register(s())}}const e2=t2.compose({baseName:"ts-icon-dynamic",template:J`<template></template>`,styles:_t`${z1("none")}`})
17509
17509
  Mi.getOrCreate().withPrefix("ok").register(e2())}()
17510
17510
  //# sourceMappingURL=all-components-bundle.min.js.map