@pageboard/html 0.13.0 → 0.13.2

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/elements/tab.js CHANGED
@@ -40,6 +40,7 @@ exports.tab_item = {
40
40
  menu: 'widget',
41
41
  context: 'tabs_container_items/',
42
42
  contents: "inline*",
43
+ tag: 'a.item',
43
44
  html: '<a class="item">Tab Item</a>'
44
45
  };
45
46
 
package/elements/table.js CHANGED
@@ -206,6 +206,9 @@ exports.table_head_cell = {
206
206
  contents: "block+",
207
207
  tag: 'th',
208
208
  inplace: true,
209
- html: '<th class="[align|post: aligned] [width|as:colnums|post: wide]" rowspan="[rowspan]" colspan="[colspan]"></th>'
209
+ html: '<th class="[align|post: aligned] [width|as:colnums|post: wide]" rowspan="[rowspan]" colspan="[colspan]"></th>',
210
+ stylesheets: [
211
+ "../ui/table.css"
212
+ ]
210
213
  };
211
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/form.js CHANGED
@@ -126,7 +126,7 @@ class HTMLElementForm extends Page.create(HTMLFormElement) {
126
126
  // ?toggle=<name> for toggling hidden state
127
127
  if (toggle) state.vars.toggle = true;
128
128
  this.disabled = this.hidden = !masked;
129
- } else if (this.name) {
129
+ } else {
130
130
  this.disabled = this.hidden = masked;
131
131
  }
132
132
  }
@@ -8,6 +8,7 @@
8
8
  position: relative;
9
9
  border: 1px solid gray;
10
10
  border-radius: 4px;
11
+ text-align: center;
11
12
  }
12
13
  .field.button > .radio > input + label:hover {
13
14
  opacity:1;
package/ui/table.css ADDED
@@ -0,0 +1,7 @@
1
+ table tr:has(input:checked) {
2
+ background-color:rgba(0 0 0 / 10%);
3
+ }
4
+
5
+ .ui.compact.table td {
6
+ padding: 0 0.7em;
7
+ }