xote 4.3.1 → 4.4.1
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/xote.cjs +1 -1
- package/dist/xote.mjs +311 -297
- package/dist/xote.umd.js +1 -1
- package/package.json +1 -1
- package/src/Xote__Component.res +15 -5
- package/src/Xote__Component.res.mjs +22 -7
- package/src/Xote__JSX.res +385 -13
- package/src/Xote__JSX.res.mjs +121 -9
package/src/Xote__JSX.res.mjs
CHANGED
|
@@ -71,13 +71,17 @@ function propsToAttrs(props) {
|
|
|
71
71
|
if (v$3 !== undefined) {
|
|
72
72
|
attrs.push(convertAttrValue("type", Primitive_option.valFromOption(v$3)));
|
|
73
73
|
}
|
|
74
|
-
let v$4 = props.
|
|
74
|
+
let v$4 = props.name;
|
|
75
75
|
if (v$4 !== undefined) {
|
|
76
|
-
attrs.push(convertAttrValue("
|
|
76
|
+
attrs.push(convertAttrValue("name", Primitive_option.valFromOption(v$4)));
|
|
77
77
|
}
|
|
78
|
-
let v$5 = props.
|
|
78
|
+
let v$5 = props.value;
|
|
79
79
|
if (v$5 !== undefined) {
|
|
80
|
-
attrs.push(convertAttrValue("
|
|
80
|
+
attrs.push(convertAttrValue("value", Primitive_option.valFromOption(v$5)));
|
|
81
|
+
}
|
|
82
|
+
let v$6 = props.placeholder;
|
|
83
|
+
if (v$6 !== undefined) {
|
|
84
|
+
attrs.push(convertAttrValue("placeholder", Primitive_option.valFromOption(v$6)));
|
|
81
85
|
}
|
|
82
86
|
let match = props.disabled;
|
|
83
87
|
if (match !== undefined && match) {
|
|
@@ -87,13 +91,121 @@ function propsToAttrs(props) {
|
|
|
87
91
|
if (match$1 !== undefined && match$1) {
|
|
88
92
|
attrs.push(Xote__Component.attr("checked", "true"));
|
|
89
93
|
}
|
|
90
|
-
let
|
|
91
|
-
if (
|
|
92
|
-
attrs.push(
|
|
94
|
+
let match$2 = props.required;
|
|
95
|
+
if (match$2 !== undefined && match$2) {
|
|
96
|
+
attrs.push(Xote__Component.attr("required", "true"));
|
|
93
97
|
}
|
|
94
|
-
let
|
|
98
|
+
let match$3 = props.readOnly;
|
|
99
|
+
if (match$3 !== undefined && match$3) {
|
|
100
|
+
attrs.push(Xote__Component.attr("readonly", "true"));
|
|
101
|
+
}
|
|
102
|
+
let v$7 = props.maxLength;
|
|
95
103
|
if (v$7 !== undefined) {
|
|
96
|
-
attrs.push(
|
|
104
|
+
attrs.push(Xote__Component.attr("maxlength", v$7.toString()));
|
|
105
|
+
}
|
|
106
|
+
let v$8 = props.minLength;
|
|
107
|
+
if (v$8 !== undefined) {
|
|
108
|
+
attrs.push(Xote__Component.attr("minlength", v$8.toString()));
|
|
109
|
+
}
|
|
110
|
+
let v$9 = props.min;
|
|
111
|
+
if (v$9 !== undefined) {
|
|
112
|
+
attrs.push(convertAttrValue("min", Primitive_option.valFromOption(v$9)));
|
|
113
|
+
}
|
|
114
|
+
let v$10 = props.max;
|
|
115
|
+
if (v$10 !== undefined) {
|
|
116
|
+
attrs.push(convertAttrValue("max", Primitive_option.valFromOption(v$10)));
|
|
117
|
+
}
|
|
118
|
+
let v$11 = props.step;
|
|
119
|
+
if (v$11 !== undefined) {
|
|
120
|
+
attrs.push(convertAttrValue("step", Primitive_option.valFromOption(v$11)));
|
|
121
|
+
}
|
|
122
|
+
let v$12 = props.pattern;
|
|
123
|
+
if (v$12 !== undefined) {
|
|
124
|
+
attrs.push(convertAttrValue("pattern", Primitive_option.valFromOption(v$12)));
|
|
125
|
+
}
|
|
126
|
+
let v$13 = props.autoComplete;
|
|
127
|
+
if (v$13 !== undefined) {
|
|
128
|
+
attrs.push(convertAttrValue("autocomplete", Primitive_option.valFromOption(v$13)));
|
|
129
|
+
}
|
|
130
|
+
let match$4 = props.multiple;
|
|
131
|
+
if (match$4 !== undefined && match$4) {
|
|
132
|
+
attrs.push(Xote__Component.attr("multiple", "true"));
|
|
133
|
+
}
|
|
134
|
+
let v$14 = props.accept;
|
|
135
|
+
if (v$14 !== undefined) {
|
|
136
|
+
attrs.push(convertAttrValue("accept", Primitive_option.valFromOption(v$14)));
|
|
137
|
+
}
|
|
138
|
+
let v$15 = props.rows;
|
|
139
|
+
if (v$15 !== undefined) {
|
|
140
|
+
attrs.push(Xote__Component.attr("rows", v$15.toString()));
|
|
141
|
+
}
|
|
142
|
+
let v$16 = props.cols;
|
|
143
|
+
if (v$16 !== undefined) {
|
|
144
|
+
attrs.push(Xote__Component.attr("cols", v$16.toString()));
|
|
145
|
+
}
|
|
146
|
+
let v$17 = props.for;
|
|
147
|
+
if (v$17 !== undefined) {
|
|
148
|
+
attrs.push(convertAttrValue("for", Primitive_option.valFromOption(v$17)));
|
|
149
|
+
}
|
|
150
|
+
let v$18 = props.href;
|
|
151
|
+
if (v$18 !== undefined) {
|
|
152
|
+
attrs.push(convertAttrValue("href", Primitive_option.valFromOption(v$18)));
|
|
153
|
+
}
|
|
154
|
+
let v$19 = props.target;
|
|
155
|
+
if (v$19 !== undefined) {
|
|
156
|
+
attrs.push(convertAttrValue("target", Primitive_option.valFromOption(v$19)));
|
|
157
|
+
}
|
|
158
|
+
let v$20 = props.src;
|
|
159
|
+
if (v$20 !== undefined) {
|
|
160
|
+
attrs.push(convertAttrValue("src", Primitive_option.valFromOption(v$20)));
|
|
161
|
+
}
|
|
162
|
+
let v$21 = props.alt;
|
|
163
|
+
if (v$21 !== undefined) {
|
|
164
|
+
attrs.push(convertAttrValue("alt", Primitive_option.valFromOption(v$21)));
|
|
165
|
+
}
|
|
166
|
+
let v$22 = props.width;
|
|
167
|
+
if (v$22 !== undefined) {
|
|
168
|
+
attrs.push(convertAttrValue("width", Primitive_option.valFromOption(v$22)));
|
|
169
|
+
}
|
|
170
|
+
let v$23 = props.height;
|
|
171
|
+
if (v$23 !== undefined) {
|
|
172
|
+
attrs.push(convertAttrValue("height", Primitive_option.valFromOption(v$23)));
|
|
173
|
+
}
|
|
174
|
+
let v$24 = props.role;
|
|
175
|
+
if (v$24 !== undefined) {
|
|
176
|
+
attrs.push(convertAttrValue("role", Primitive_option.valFromOption(v$24)));
|
|
177
|
+
}
|
|
178
|
+
let v$25 = props.tabIndex;
|
|
179
|
+
if (v$25 !== undefined) {
|
|
180
|
+
attrs.push(Xote__Component.attr("tabindex", v$25.toString()));
|
|
181
|
+
}
|
|
182
|
+
let v$26 = props["aria-label"];
|
|
183
|
+
if (v$26 !== undefined) {
|
|
184
|
+
attrs.push(convertAttrValue("aria-label", Primitive_option.valFromOption(v$26)));
|
|
185
|
+
}
|
|
186
|
+
let match$5 = props["aria-hidden"];
|
|
187
|
+
if (match$5 !== undefined) {
|
|
188
|
+
if (match$5) {
|
|
189
|
+
attrs.push(Xote__Component.attr("aria-hidden", "true"));
|
|
190
|
+
} else {
|
|
191
|
+
attrs.push(Xote__Component.attr("aria-hidden", "false"));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
let match$6 = props["aria-expanded"];
|
|
195
|
+
if (match$6 !== undefined) {
|
|
196
|
+
if (match$6) {
|
|
197
|
+
attrs.push(Xote__Component.attr("aria-expanded", "true"));
|
|
198
|
+
} else {
|
|
199
|
+
attrs.push(Xote__Component.attr("aria-expanded", "false"));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
let match$7 = props["aria-selected"];
|
|
203
|
+
if (match$7 !== undefined) {
|
|
204
|
+
if (match$7) {
|
|
205
|
+
attrs.push(Xote__Component.attr("aria-selected", "true"));
|
|
206
|
+
} else {
|
|
207
|
+
attrs.push(Xote__Component.attr("aria-selected", "false"));
|
|
208
|
+
}
|
|
97
209
|
}
|
|
98
210
|
let _dataObj = props.data;
|
|
99
211
|
if (_dataObj !== undefined) {
|