0.9.1-alpha.68
Alpha@xaui/native@0.9.1-alpha.68
Patch Changes
-
13acb91: feat(time-field): a time, typed
TimeFieldis theDateField's sibling: the sameTextFieldroot, the same three text slots, and one representation — the digits, in order — thatmaskTimeis the only thing to turn into text. The hour cycle comes out ofIntl.The period is a toggle rather than two letters typed into the box, because the keyboard a time field opens is a number pad and cannot produce them.
TimeField.Periodrenders nothing on a twenty-four-hour field, so the same JSX serves both. -
e218df1: feat(time-picker): a field that opens a clock
TimePicker's trigger is aSelect's trigger and its panel is aBottomSheet— a clock face is close to three hundred points square, which beside a field on a phone is the screen. What it adds is the dial: two rings on a twenty-four hour face, sixty marks and twelve labels on the minutes, and the hours handing over to the minutes on the first press.The geometry is
utils/clock.ts, tested — the quarter turn that puts twelve at the top, the sign that keeps it above the centre in coordinates that grow downwards, and the conversion fromatan2's own convention.