Skip to content

Commit 8528591

Browse files
committed
chore(core): UIDatePicker's values, measured on iOS 26.2
The inline calendar (day selection, the animated selection's spring, the title following a drag, the release rule, the chevron step and retarget, the disabled chevron at a bound, the month/year toggle), the compact popover's springs, and the wheels' rules (the AM/PM column following the hour, looping time columns, minutes that do not carry, the turn back onto a bound, the day clamped to the month, the minute interval), each with its source. The table is registered as the `datePicker` motion table: its springs, durations and curves are motion roles a theme may retune, listed by `astryx docs motion` (regenerated role table and docs-topics golden).
1 parent 5ab7421 commit 8528591

8 files changed

Lines changed: 450 additions & 4 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@astryxdesign/core': patch
3+
'@astryxdesign/cli': patch
4+
---
5+
6+
[chore] Internal: UIDatePicker's values measured on iOS 26.2 join the UIKit constants table. For the inline calendar they cover how a day tap selects, the animated selection's spring, the title following a drag, the month grid's release rule, the chevron's step and its retarget, the disabled chevron at a bound, and the month/year toggle's fades and chevron turn. For the wheels they cover the AM/PM column following the hour, the looping hour and minute columns, minutes that do not carry, the turn back onto a bound, the day clamped to the month and the minute interval. The compact popover's springs are included too. Each value comes with its source. Not exported from the package entry point; no component reads it yet.
7+
8+
The table's springs, durations and curves are motion roles a theme may retune, so `astryx docs motion` lists seven more roles: `datePicker.calendar.selection.programmaticSpring`, `datePicker.calendar.monthYearToggle.fadeMs`, `datePicker.compact.present`, `datePicker.compact.dismiss`, `datePicker.compact.labelDimMs`, `datePicker.wheels.columnTurn.durationMs` and `datePicker.wheels.columnTurn.curve`.
9+
10+
@vjeux

‎packages/cli/assets/docs/motion.doc.mjs‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,48 @@ const calmTheme = defineTheme({
184184
headers: ['Role', 'CSS variable', 'Kind', 'Default'],
185185
rows: [
186186
// motion-roles:start (generated by scripts/generate-motion-roles.mjs)
187+
[
188+
'datePicker.calendar.monthYearToggle.fadeMs',
189+
'--motion-date-picker-calendar-month-year-toggle-fade-ms',
190+
'duration',
191+
'250ms',
192+
],
193+
[
194+
'datePicker.calendar.selection.programmaticSpring',
195+
'--motion-date-picker-calendar-selection-programmatic-spring',
196+
'spring',
197+
'0.3s 0',
198+
],
199+
[
200+
'datePicker.compact.dismiss',
201+
'--motion-date-picker-compact-dismiss',
202+
'spring',
203+
'0.35s 0.15',
204+
],
205+
[
206+
'datePicker.compact.labelDimMs',
207+
'--motion-date-picker-compact-label-dim-ms',
208+
'duration',
209+
'470ms',
210+
],
211+
[
212+
'datePicker.compact.present',
213+
'--motion-date-picker-compact-present',
214+
'spring',
215+
'0.32s 0.2',
216+
],
217+
[
218+
'datePicker.wheels.columnTurn.curve',
219+
'--motion-date-picker-wheels-column-turn-curve',
220+
'curve',
221+
'cubic-bezier(0.37, 0, 0.63, 1)',
222+
],
223+
[
224+
'datePicker.wheels.columnTurn.durationMs',
225+
'--motion-date-picker-wheels-column-turn-duration-ms',
226+
'duration',
227+
'300ms',
228+
],
187229
[
188230
'navigation.transitionMs',
189231
'--motion-navigation-transition-ms',

‎packages/cli/test/__golden__/no-icon-set/docs-topics.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"touch-motion",
202202
"best-practices"
203203
],
204-
"skeleton": "a86303e70a6cb63931e8e29c3b470b94f8edcc0b15576a907680a376213faddc",
204+
"skeleton": "7f3e41e04a81e8a94af59e755d943a5de167c9bf57ac8b0ba562c9a80ebe6d5d",
205205
"mentions": []
206206
},
207207
"principles": {

‎packages/core/src/motion/MEASUREMENTS.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,22 @@ match the probe.
249249
| M-SH21 | SheetProbe on iPad, iOS 27 `preferredPlacement` each case, RTL | present | placement geometry and motion | B, C |
250250
| M-SH22 | SheetProbe iOS 26 `preferredTransition = .zoom` from a bar button | present, dismiss | morph geometry per frame | A, C |
251251

252+
## Date picker (UIDatePicker)
253+
254+
Values the DateInput, DateTimeInput and TimeInput touch surfaces read from
255+
their own table (`uikit/datePicker.ts`); the month grid is a paging scroll view
256+
and the wheels are UIPickerView's, so those parts use the paging and picker
257+
values.
258+
259+
Done (UIKit lab, iOS 26.2 simulator, Oct 23 2026; in the date picker's table):
260+
a day tap and `setDate(_:animated:)`, the title following the drag, the release
261+
rule, the chevron step and its retarget, the chevron at a bound, the month/year
262+
toggle's fades and chevron turn, the month/year wheels, the compact popover's
263+
springs, the AM/PM column following the hour, the looping time columns, the
264+
minutes not carrying, the turn back onto a bound, the day clamped to the month,
265+
and the year-and-month mode; the AM/PM column's turn and the disabled chevron
266+
followed on Oct 24 2026.
267+
252268
## Context menu (UIContextMenuInteraction)
253269

254270
Values the context menu reads from its own table (`uikit/contextMenu.ts`);

‎packages/core/src/motion/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ from the package entry point; components import it by path.
1616
| `uikit/scroll.ts` | UIScrollView: deceleration rates, rubber band, bounce-back spring, paging, `delaysContentTouches`, scroll to top. |
1717
| `uikit/timing.ts` | Non-spring clocks and curves: press highlight, Core Animation's named curves, keyboard, Reduced Motion cross-fade. |
1818
| `uikit/navigation.ts` | UINavigationController: push velocity, parallax, dimming, transition clock, interactive pop finish rule. |
19+
| `uikit/datePicker.ts` | UIDatePicker: the inline calendar’s selection, month paging and chevrons, the month/year toggle, and the wheels’ rules. |
1920
| `uikit/gestures.ts` | Gesture recognizer thresholds, the velocity filter and the haptic stand-ins, as typed entries the gesture system reads. |
2021
| `roles.ts` | Motion roles: each spring, duration and curve of a registered table, named by its path, and its CSS variable. |
2122
| `resolveMotion.ts` | A role's value under an element's theme, read once when a motion starts. |

0 commit comments

Comments
 (0)