@targoninc/jess-components 0.0.36 → 0.0.37
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/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -774,8 +774,9 @@ function getDisabledClass(config) {
|
|
|
774
774
|
}
|
|
775
775
|
function button(config) {
|
|
776
776
|
config.classes ??= [];
|
|
777
|
-
return create("button").applyGenericConfig(config).onclick(config.onclick).classes(getDisabledClass(config)).attributes("tabindex", config.tabindex ?? "0").children(when(config.icon, () => create("div").classes("jess", "flex", "align-children").children(icon(config.icon)).build()), when(config.text, () => text({
|
|
778
|
-
text: config.text
|
|
777
|
+
return create("button").applyGenericConfig(config).onclick(config.onclick).classes(getDisabledClass(config)).attributes("tabindex", config.tabindex ?? "0").children(when(config.icon, () => create("div").classes("jess", "flex", "align-children").styles("pointer-events", "none").children(icon(config.icon)).build()), when(config.text, () => text({
|
|
778
|
+
text: config.text,
|
|
779
|
+
styles: ["pointer-events", "none"]
|
|
779
780
|
}))).build();
|
|
780
781
|
}
|
|
781
782
|
function input(config) {
|