@targoninc/jess-components 0.0.11 → 0.0.13

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
@@ -72,6 +72,9 @@ function isSignal(obj) {
72
72
  return obj?.type === "jess-signal";
73
73
  }
74
74
  function asSignal(obj) {
75
+ if (!isSignal(obj)) {
76
+ return signal(obj);
77
+ }
75
78
  return obj;
76
79
  }
77
80
  function create(tag) {
@@ -653,9 +656,8 @@ class DomNode {
653
656
  this.wrapProperty("novalidate", novalidate);
654
657
  return this;
655
658
  }
656
- popover(id) {
657
- this.id(id);
658
- this.wrapProperty("popover", "");
659
+ popover(popover) {
660
+ this.wrapProperty("popover", popover);
659
661
  return this;
660
662
  }
661
663
  }
@@ -54,7 +54,7 @@ export interface TextConfig extends BaseComponentConfig {
54
54
  export interface IconConfig extends BaseComponentConfig {
55
55
  icon: StringOrSignal;
56
56
  adaptive?: boolean;
57
- isUrl?: boolean;
57
+ isUrl?: TypeOrSignal<boolean>;
58
58
  onclick?: Function;
59
59
  }
60
60
  export interface SelectOption extends BaseComponentConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/jess-components",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -17,7 +17,7 @@
17
17
  "prepublishOnly": "bun run build"
18
18
  },
19
19
  "dependencies": {
20
- "@targoninc/jess": "^0.0.12"
20
+ "@targoninc/jess": "^0.0.15"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/bun": "latest",