@targoninc/jess-components 0.0.12 → 0.0.14
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 +6 -4
- package/package.json +2 -2
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(
|
|
657
|
-
this.
|
|
658
|
-
this.wrapProperty("popover", "");
|
|
659
|
+
popover(popover) {
|
|
660
|
+
this.wrapProperty("popover", popover);
|
|
659
661
|
return this;
|
|
660
662
|
}
|
|
661
663
|
}
|
|
@@ -697,7 +699,7 @@ function getDisabledClass(config) {
|
|
|
697
699
|
}
|
|
698
700
|
function button(config) {
|
|
699
701
|
config.classes ??= [];
|
|
700
|
-
return create("button").applyGenericConfig(config).onclick(config.onclick).classes(getDisabledClass(config)).attributes("tabindex", config.tabindex ?? "0").children(when(config.icon, () => create("div").children(icon(config.icon)).build()), when(config.text, () => text({
|
|
702
|
+
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({
|
|
701
703
|
text: config.text
|
|
702
704
|
}))).build();
|
|
703
705
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targoninc/jess-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14",
|
|
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.
|
|
20
|
+
"@targoninc/jess": "^0.0.15"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/bun": "latest",
|