@targoninc/jess-components 0.0.35 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -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) {
@@ -816,7 +817,7 @@ function input(config) {
816
817
  validate(config.value);
817
818
  value = signal(config.value ?? "");
818
819
  }
819
- return create("div").classes("flex-v", "jess").children(create("label").classes("flex-v", "jess", getDisabledClass(config)).text(config.label ?? "").for(config.title).children(when(config.infoLink, create("a").text(config.infoText ?? config.infoLink).href(config.infoLink).classes("flex").children(icon({
820
+ return create("div").classes("flex-v", "jess").children(create("label").classes("flex-v", "jess", getDisabledClass(config)).text(config.label ?? "").for(config.title).children(when(config.infoLink, create("a").text(config.infoText ?? config.infoLink).href(config.infoLink).target("_blank").classes("flex").children(icon({
820
821
  icon: "info",
821
822
  adaptive: true
822
823
  })).build()), create("input").classes(invalidClass, passwordClass).applyGenericConfig(config).type(actualType).value(value).accept(config.accept ?? "").required(config.required ?? false).placeholder(config.placeholder ?? "").attributes("autofocus", config.autofocus ?? "").oninput((e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/jess-components",
3
3
  "type": "module",
4
- "version": "0.0.35",
4
+ "version": "0.0.37",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [