@rogieking/figui3 1.0.7 → 1.0.9
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/fig.css +2 -0
- package/fig.js +13 -0
- package/package.json +1 -1
package/fig.css
CHANGED
package/fig.js
CHANGED
|
@@ -956,6 +956,10 @@ class FigCheckbox extends HTMLElement {
|
|
|
956
956
|
case "checked":
|
|
957
957
|
this.checked = this.input.checked = this.hasAttribute("checked") ? true : false
|
|
958
958
|
break;
|
|
959
|
+
case "name":
|
|
960
|
+
case "value":
|
|
961
|
+
this.input.setAttribute(name, newValue)
|
|
962
|
+
break;
|
|
959
963
|
}
|
|
960
964
|
}
|
|
961
965
|
|
|
@@ -968,6 +972,15 @@ class FigCheckbox extends HTMLElement {
|
|
|
968
972
|
}
|
|
969
973
|
window.customElements.define('fig-checkbox', FigCheckbox);
|
|
970
974
|
|
|
975
|
+
/* Radio */
|
|
976
|
+
class FigRadio extends FigCheckbox {
|
|
977
|
+
constructor() {
|
|
978
|
+
super()
|
|
979
|
+
this.input.setAttribute("type", "radio")
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
window.customElements.define('fig-radio', FigRadio);
|
|
983
|
+
|
|
971
984
|
/* Switch */
|
|
972
985
|
class FigSwitch extends FigCheckbox {
|
|
973
986
|
render() {
|
package/package.json
CHANGED