@ni/ok-components 0.2.7 → 0.2.8
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.
- package/dist/all-components-bundle.js +420 -341
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +30 -7
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +1 -0
- package/dist/esm/all-components.js +1 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/icon-dynamic/index.d.ts +23 -0
- package/dist/esm/icon-dynamic/index.js +59 -0
- package/dist/esm/icon-dynamic/index.js.map +1 -0
- package/dist/esm/icon-dynamic/styles.d.ts +1 -0
- package/dist/esm/icon-dynamic/styles.js +20 -0
- package/dist/esm/icon-dynamic/styles.js.map +1 -0
- package/dist/esm/icon-dynamic/template.d.ts +2 -0
- package/dist/esm/icon-dynamic/template.js +3 -0
- package/dist/esm/icon-dynamic/template.js.map +1 -0
- package/dist/esm/utilities/style/user-select.d.ts +5 -0
- package/dist/esm/utilities/style/user-select.js +10 -0
- package/dist/esm/utilities/style/user-select.js.map +1 -0
- package/package.json +1 -1
|
@@ -16154,8 +16154,8 @@ const JQ=Mt`
|
|
|
16154
16154
|
`,QQ=Q`<slot></slot>`
|
|
16155
16155
|
const t0=class extends Ve{}.compose({baseName:"rectangle",template:QQ,styles:JQ})
|
|
16156
16156
|
Mi.getOrCreate().withPrefix("spright").register(t0())
|
|
16157
|
-
const e0=Mt`
|
|
16158
|
-
${
|
|
16157
|
+
const e0=t=>`${Po(t)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`,n0=Mt`
|
|
16158
|
+
${e0("inline-block")}
|
|
16159
16159
|
|
|
16160
16160
|
:host {
|
|
16161
16161
|
border: 2px solid ${$l};
|
|
@@ -16177,9 +16177,32 @@ const e0=Mt`
|
|
|
16177
16177
|
:host([disabled]) slot {
|
|
16178
16178
|
color: ${yc};
|
|
16179
16179
|
}
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
const
|
|
16184
|
-
|
|
16180
|
+
`,i0=Q`<slot></slot>`
|
|
16181
|
+
const o0=class extends Ve{}.compose({baseName:"button",template:i0,styles:n0})
|
|
16182
|
+
Mi.getOrCreate().withPrefix("ok").register(o0())
|
|
16183
|
+
const s0=Et`
|
|
16184
|
+
user-select: none;
|
|
16185
|
+
-webkit-user-select: none;
|
|
16186
|
+
`,r0=Mt`
|
|
16187
|
+
${e0("inline-flex")}
|
|
16188
|
+
|
|
16189
|
+
:host {
|
|
16190
|
+
align-items: center;
|
|
16191
|
+
${s0}
|
|
16192
|
+
width: ${jl};
|
|
16193
|
+
height: ${jl};
|
|
16194
|
+
}
|
|
16195
|
+
|
|
16196
|
+
img {
|
|
16197
|
+
width: 100%;
|
|
16198
|
+
height: 100%;
|
|
16199
|
+
}
|
|
16200
|
+
`,a0=Q`<img aria-hidden="true" src=${t=>t.url}>`
|
|
16201
|
+
class l0 extends im{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-icon-dynamic-"
|
|
16202
|
+
if(!t.startsWith(n))throw new Error(`Icon tag name must start with '${n}', provided name: ${t}`)
|
|
16203
|
+
const i=t.substring(16)
|
|
16204
|
+
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}`)
|
|
16205
|
+
const o=`IconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,s=`icon-dynamic-${i}`,r={[o]:class extends l0{constructor(){super(e)}}}[o].compose({baseName:s,template:a0,styles:r0})
|
|
16206
|
+
Mi.getOrCreate().withPrefix("ok").register(r())}}const c0=l0.compose({baseName:"icon-dynamic",template:Q`<template></template>`,styles:Mt`${e0("none")}`})
|
|
16207
|
+
Mi.getOrCreate().withPrefix("ok").register(c0())}()
|
|
16185
16208
|
//# sourceMappingURL=all-components-bundle.min.js.map
|