Skip to content

Commit cb0f612

Browse files
Version Packages
1 parent a34fe84 commit cb0f612

3 files changed

Lines changed: 26 additions & 25 deletions

File tree

.changeset/date-picker.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @tailor-platform/app-shell
22

3+
## 1.8.0
4+
5+
### Minor Changes
6+
7+
- a4f735c: Add DateField, DatePicker, and Calendar components (@internationalized/date + Base UI implementation)
8+
9+
Introduces three accessible date-input components, implemented on `@internationalized/date` (value layer) and Base UI (`Popover`) with hand-rolled segmented-input and calendar-grid behaviour:
10+
11+
- `DateField` — segmented date/time input with label, description, and error message
12+
- `DatePicker` — date field with a popover calendar
13+
- `Calendar` — standalone calendar grid
14+
15+
All three accept `LocalizedString` labels/descriptions and resolve locale + timezone from the AppShell context. The `@internationalized/date` value types (`CalendarDate`, `CalendarDateTime`, `ZonedDateTime`, …) and helpers (`today`, `parseDate`, `getLocalTimeZone`, …) are re-exported from `@tailor-platform/app-shell`.
16+
17+
New AppShell context hooks:
18+
19+
- `useResolvedLocale()` — full BCP-47 locale (e.g. `"en-GB"`) plus the language code
20+
- `useTimeZone()` — the configured IANA timezone, falling back to the user's local timezone
21+
22+
AppShell now accepts an optional `timeZone` prop.
23+
24+
> This is the **`@internationalized/date` + Base UI** variant — the lighter foundation tracked in the design proposal (§9). Net-new dependency is just `@internationalized/date` (~11 KB gz); Base UI is already in the bundle. Public API and accessibility contract are identical to the react-aria variant.
25+
>
26+
> **Known limitation:** the segmented input is built from `role="spinbutton"` elements that aren't `contentEditable`, so on-screen-keyboard typing on touch devices is limited — the calendar popover is the touch-friendly path (desktop keyboard entry works fully). The APG behaviour is unit-tested but not yet screen-reader-audited.
27+
328
## 1.7.0
429

530
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tailor-platform/app-shell",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "An opinionated React application framework for building ERP applications on Tailor Platform",
55
"keywords": [
66
"app-shell",

0 commit comments

Comments
 (0)