@targoninc/jess-components 0.0.33 → 0.0.35

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 CHANGED
@@ -816,7 +816,10 @@ function input(config) {
816
816
  validate(config.value);
817
817
  value = signal(config.value ?? "");
818
818
  }
819
- return create("div").classes("flex-v", "jess").children(create("label").classes("flex-v", "jess", getDisabledClass(config)).text(config.label ?? "").for(config.title).children(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) => {
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
+ icon: "info",
821
+ adaptive: true
822
+ })).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) => {
820
823
  touched.value = true;
821
824
  lastChange = Date.now();
822
825
  if (!isSignal(config.value)) {
@@ -34,6 +34,8 @@ export interface InputConfig<T> extends ChangeableConfig<T> {
34
34
  placeholder?: StringOrSignal;
35
35
  accept?: StringOrSignal;
36
36
  onkeydown?: EventHandler<KeyboardEvent>;
37
+ infoLink?: StringOrSignal;
38
+ infoText?: StringOrSignal;
37
39
  debounce?: number;
38
40
  }
39
41
  export interface TextareaConfig extends ChangeableConfig<string> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/jess-components",
3
3
  "type": "module",
4
- "version": "0.0.33",
4
+ "version": "0.0.35",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [