@ark-ui/solid 3.12.0 → 3.12.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/esm/index.js
CHANGED
|
@@ -2266,30 +2266,20 @@ const DatePickerYearSelect = props => {
|
|
|
2266
2266
|
const mergedProps = mergeProps$1(() => api().getYearSelectProps(), props);
|
|
2267
2267
|
return createComponent(ark.select, mergeProps(mergedProps, {
|
|
2268
2268
|
get children() {
|
|
2269
|
-
return createComponent(
|
|
2269
|
+
return createComponent(Index, {
|
|
2270
2270
|
get each() {
|
|
2271
|
-
return
|
|
2272
|
-
from: 1_000,
|
|
2273
|
-
to: 4_000
|
|
2274
|
-
});
|
|
2271
|
+
return api().getYears();
|
|
2275
2272
|
},
|
|
2276
2273
|
children: year => (() => {
|
|
2277
2274
|
var _el$ = _tmpl$$5();
|
|
2278
|
-
_el
|
|
2279
|
-
|
|
2275
|
+
insert(_el$, () => year().label);
|
|
2276
|
+
effect(() => _el$.value = year().value);
|
|
2280
2277
|
return _el$;
|
|
2281
2278
|
})()
|
|
2282
2279
|
});
|
|
2283
2280
|
}
|
|
2284
2281
|
}));
|
|
2285
2282
|
};
|
|
2286
|
-
function getYearsRange(range) {
|
|
2287
|
-
const years = [];
|
|
2288
|
-
for (let year = range.from; year <= range.to; year += 1) {
|
|
2289
|
-
years.push(year);
|
|
2290
|
-
}
|
|
2291
|
-
return years;
|
|
2292
|
-
}
|
|
2293
2283
|
|
|
2294
2284
|
var datePicker = /*#__PURE__*/Object.freeze({
|
|
2295
2285
|
__proto__: null,
|