@kalyx/react 1.0.0-rc.1 → 1.0.0-rc.10
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/CHANGELOG.md +273 -0
- package/README.md +2 -2
- package/dist/index.cjs +775 -363
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -7
- package/dist/index.d.ts +80 -7
- package/dist/index.js +764 -368
- package/dist/index.js.map +1 -1
- package/package.json +18 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,278 @@
|
|
|
1
1
|
# @kalyx/react
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.10
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4629384: chore(oss): unify node engines to >=20 and add public repository metadata
|
|
8
|
+
- `@kalyx/react` and `@kalyx/core` now require Node `>=20`, matching the root workspace and CI. This was the de-facto requirement; only the published manifests still claimed `>=18`.
|
|
9
|
+
- Root `package.json` now exposes `homepage`, `repository`, and `bugs` so `npm info` and the npm registry page link back to the GitHub repo.
|
|
10
|
+
- `.github/PULL_REQUEST_TEMPLATE.md` bundle ceiling updated `15KB → 16 KB` to match the post-rc.8 limit advertised in README and CI.
|
|
11
|
+
- `.gitignore` ignores `.codegraph/`, `.serena/`, and `.tmp-*/` (MCP server caches and worktree scratchpads).
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 63fb80a: fix(datetimepicker): close composition-API gap and expose missing public types
|
|
16
|
+
- `<DateTimePicker.Root>` now accepts `withSeconds` and `filterTime` props (was silently hard-coded to `withSeconds: false`, `filterTime: undefined`)
|
|
17
|
+
- `currentTime` no longer calls `DateFnsAdapter.today()` during render when `value` is null — eliminates the UTC-midnight hydration mismatch risk
|
|
18
|
+
- Public API now re-exports `CalendarWeek`, `CalendarGrid`, `CalendarOptions`, `WeekStartsOn`, `WeekdayInfo`, every `{Picker}Labels` type, and the four `DEFAULT_*_LABELS` runtime constants per CLAUDE.md §6
|
|
19
|
+
|
|
20
|
+
- 4178a92: fix(timepicker, rangepicker): hydration-safe time fallback and memoized preset resolution
|
|
21
|
+
- `<TimePicker.Root>` no longer calls `DateFnsAdapter.today()` during render when `value` is null. The displayed `currentTime` now falls back to a stable `{ hours: 0, minutes: 0, seconds: 0 }` and `today()` is resolved at event time inside `setTime`. Removes the UTC-midnight SSR/CSR hydration mismatch risk.
|
|
22
|
+
- `<RangePicker.Preset>` memoizes the resolved preset range. Previously `resolvePreset` (and `adapter.today()`) ran twice per render per preset — once in the click handler and once in the `isActive` getter — turning a 5-preset row into 10 `today()` allocations per render. No behavioral change.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [4629384]
|
|
25
|
+
- @kalyx/core@1.0.0-rc.10
|
|
26
|
+
|
|
27
|
+
## 1.0.0-rc.9
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 1a77283: docs: clarify `TimePicker.filterTime` polarity. The predicate returns `true` to mark a slot **unselectable** — same polarity as MUI X's `shouldDisableTime`, and the **inverse** of react-datepicker's `filterTime` (which returns `true` to _keep_ a slot). Earlier JSDoc/changelog called it "equivalent to react-datepicker's `filterTime`", which is misleading because the polarity is reversed; react-datepicker migrators must invert their predicate. No runtime behavior change — JSDoc, the published package description (≤16 KB), and docs only.
|
|
32
|
+
|
|
33
|
+
## 1.0.0-rc.8
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- 0d3b845: `TimePicker.Root` gains a programmatic **`filterTime`** prop — `(hours: number, minutes: number) => boolean` returning `true` for any slot that should be unselectable. Equivalent to `react-datepicker`'s `filterTime` and MUI X's `shouldDisableTime`, covering use cases the static `step` prop can't (business-hours-only, lunch breaks, blackout slots, per-day variations).
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
<TimePicker
|
|
41
|
+
value={time}
|
|
42
|
+
onChange={setTime}
|
|
43
|
+
step={15}
|
|
44
|
+
// Business hours only: 09:00–11:45 and 13:00–17:45 (no lunch slot)
|
|
45
|
+
filterTime={(h, m) => h < 9 || h >= 18 || h === 12}
|
|
46
|
+
>
|
|
47
|
+
<TimePicker.Input />
|
|
48
|
+
<TimePicker.HourList />
|
|
49
|
+
<TimePicker.MinuteList />
|
|
50
|
+
</TimePicker>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Behavior:
|
|
54
|
+
- **`MinuteList`** — minutes for which `filterTime(currentHour, minute)` returns `true` get `aria-disabled="true"` and reject click/Enter.
|
|
55
|
+
- **`HourList`** — an hour is marked `aria-disabled="true"` only when `filterTime` returns `true` for **every** step minute within it. Hours with at least one open minute remain selectable.
|
|
56
|
+
- 12-hour mode — the predicate always receives 24-hour values (`0`–`23`) regardless of the picker's display format.
|
|
57
|
+
|
|
58
|
+
**Note**: `DateTimePicker` does not yet wire this through — combine `DatePicker.Root` + `TimePicker.Root` manually if you need both date and time-slot filtering in the same picker.
|
|
59
|
+
|
|
60
|
+
Bundle ceiling raised 15 → 16 KB (PR #N follows the 12→13→14→15 cadence — each raise tied to a documented feature; CLAUDE.md §2 records the chain). Measured 15.01 KB ESM / 15.16 KB CJS at this commit, ~4× smaller than react-datepicker.
|
|
61
|
+
|
|
62
|
+
## 1.0.0-rc.7
|
|
63
|
+
|
|
64
|
+
### Minor Changes
|
|
65
|
+
|
|
66
|
+
- 0eca2e8: Two new `DatePicker.Calendar` / `RangePicker.Calendar` props plus an ISO-week utility:
|
|
67
|
+
- **`showWeekNumber`** — render an ISO 8601 week-number column (1–53) on the left of the grid. The column uses `<th scope="row" aria-hidden="true">` so it doesn't participate in the WAI-ARIA grid data region; keyboard navigation across date cells is unchanged. New className slots: `weekNumberHeader`, `weekNumber`.
|
|
68
|
+
- **`fixedWeeks`** — when true, always render 6 rows (42 cells) regardless of the month. Useful for popover layouts that need a stable height across month navigation.
|
|
69
|
+
|
|
70
|
+
Both also accepted on `CalendarOptions` (the `getCalendarDays` core util gains `fixedWeeks`).
|
|
71
|
+
|
|
72
|
+
New core export: **`getISOWeekNumber(iso)`** — pure UTC computation, no date-fns dep. Anchored to the Thursday of the week (so the same week always returns the same number regardless of `weekStartsOn`).
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
<DatePicker value={date} onChange={setDate}>
|
|
76
|
+
<DatePicker.Input />
|
|
77
|
+
<DatePicker.Popover>
|
|
78
|
+
<DatePicker.Calendar showWeekNumber fixedWeeks />
|
|
79
|
+
</DatePicker.Popover>
|
|
80
|
+
</DatePicker>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Bundle impact: +0.46 KB ESM gzip (13.96 → 14.42 KB). Still well under the 15 KB ceiling.
|
|
84
|
+
|
|
85
|
+
- d62c84e: `DisabledRule` gains a programmatic `filter` variant — pass any predicate `(iso: ISODateString) => boolean` to disable arbitrary days that don't fit the declarative `before` / `after` / `dayOfWeek` / `date` rules.
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
const holidays = new Set(['2026-01-01T00:00:00.000Z', '2026-12-25T00:00:00.000Z']);
|
|
89
|
+
|
|
90
|
+
<DatePicker
|
|
91
|
+
disabled={[
|
|
92
|
+
{ dayOfWeek: [0, 6] }, // weekends
|
|
93
|
+
{ filter: (iso) => holidays.has(iso) }, // holidays
|
|
94
|
+
]}
|
|
95
|
+
>
|
|
96
|
+
…
|
|
97
|
+
</DatePicker>;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The new variant slots into the existing `isDateDisabled` evaluation (short-circuits on first match) and works with keyboard-navigation disabled-skip in `DatePicker.Calendar` / `RangePicker.Calendar` with no further changes. Equivalent to `react-datepicker`'s `filterDate` prop and MUI X DatePicker's `shouldDisableDate`. Bundle impact: 0 KB (still 13.96 KB ESM gzip).
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- b40080d: Internal: sync the `tsup` onSuccess bundle-size budget from `13 KB` to `15 KB` so the per-build warning matches the actual CI gate (`scripts/check-bundle-size.js`, `pr-check.yml`, `release.yml`). No runtime change; the published artifact is byte-identical.
|
|
105
|
+
|
|
106
|
+
This was a leftover from the 13 → 14 → 15 KB ceiling raises during RC (PR #46 / PR #48); only the tsup-side TARGET_KB was missed during those bumps, so local `pnpm build` printed a spurious `⚠️` even though CI passed.
|
|
107
|
+
|
|
108
|
+
- Updated dependencies [0eca2e8]
|
|
109
|
+
- Updated dependencies [d62c84e]
|
|
110
|
+
- @kalyx/core@1.0.0-rc.7
|
|
111
|
+
|
|
112
|
+
## 1.0.0-rc.6
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- abc56ac: Security: pin transitive `fast-uri` to `>=3.1.2` and `@babel/plugin-transform-modules-systemjs` to `>=7.29.4` via `pnpm.overrides`.
|
|
117
|
+
|
|
118
|
+
Resolves three Code Scanning alerts on `pnpm-lock.yaml`:
|
|
119
|
+
- `fast-uri@3.1.0` — [GHSA-v39h-62p7-jpjc](https://osv.dev/GHSA-v39h-62p7-jpjc) (CVE-2026-6322), first patched in `3.1.2`.
|
|
120
|
+
- `fast-uri@3.1.0` — [GHSA-q3j6-qgpj-74h6](https://osv.dev/GHSA-q3j6-qgpj-74h6) (CVE-2026-6321), first patched in `3.1.1`.
|
|
121
|
+
- `@babel/plugin-transform-modules-systemjs@7.29.0` — [GHSA-fv7c-fp4j-7gwp](https://osv.dev/GHSA-fv7c-fp4j-7gwp) (CVE-2026-44728), first patched in `7.29.4` on the 7.x line.
|
|
122
|
+
|
|
123
|
+
All three packages are transitive build-time dependencies (ajv → fast-uri, Babel preset-env → systemjs plugin); no public API impact.
|
|
124
|
+
|
|
125
|
+
- Updated dependencies [abc56ac]
|
|
126
|
+
- @kalyx/core@1.0.0-rc.6
|
|
127
|
+
|
|
128
|
+
## 1.0.0-rc.5
|
|
129
|
+
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- 9f3cf9b: WAI-ARIA grid keyboard navigation for the four 3×4 picker grids
|
|
133
|
+
(`DatePicker.MonthGrid`, `DatePicker.YearGrid`, `MonthPicker.Grid`,
|
|
134
|
+
`YearPicker.Grid`).
|
|
135
|
+
|
|
136
|
+
Before, these grids declared `role="grid"` but had no key handler — keyboard
|
|
137
|
+
users could not select a month or year, in violation of CLAUDE.md §7.
|
|
138
|
+
|
|
139
|
+
Now each grid implements:
|
|
140
|
+
- **Arrow keys** — ±1 column / ±3 rows, clamped to grid bounds.
|
|
141
|
+
- **Home / End** — first / last cell of the current row.
|
|
142
|
+
- **PageUp / PageDown** — previous / next year (or decade for year grids).
|
|
143
|
+
- **Enter / Space** — commit the focused cell (drilldown grids switch view via
|
|
144
|
+
`onSelect`; commit grids close the popover via `ctx.selectDate`).
|
|
145
|
+
- **Roving tabIndex** — only the focused cell has `tabIndex=0`; the
|
|
146
|
+
`data-focused` attribute follows.
|
|
147
|
+
- **Auto-refocus** — DOM focus moves with `focusedIndex` so PageUp/Down lands
|
|
148
|
+
the user back on the same column position. Cells use stable index keys so
|
|
149
|
+
the buttons persist across page nav.
|
|
150
|
+
|
|
151
|
+
Component-level integration tests added per CLAUDE.md §7 across `DatePicker`,
|
|
152
|
+
`RangePicker`, `DateTimePicker`, and `WeekPicker`: leap-year (Feb 29 2024)
|
|
153
|
+
click commit, `before`/`after` rule click block, `dayOfWeek` rule click block
|
|
154
|
+
plus visual `aria-disabled`, and keyboard ArrowLeft skip-disabled.
|
|
155
|
+
|
|
156
|
+
**Bundle target raised to 14 KB** — full grid keyboard nav (state + handlers
|
|
157
|
+
- auto-refocus) added ~1.4 KB gzip across the four grids. Measured 12.85 KB
|
|
158
|
+
ESM / 13.64 KB CJS at this point. README, docs, `scripts/check-bundle-size.js`,
|
|
159
|
+
PR template, and CI gate updated to ≤14 KB.
|
|
160
|
+
|
|
161
|
+
**Internal:** new shared `useGridState` hook in
|
|
162
|
+
`packages/react/src/components/_shared/grid-keyboard.ts` (not exported from
|
|
163
|
+
the package public API) consolidates keyboard handling and roving-focus
|
|
164
|
+
state across all four grids.
|
|
165
|
+
|
|
166
|
+
- 9b19df4: `MonthPicker.Grid` and `YearPicker.Grid` now respect `before` / `after`
|
|
167
|
+
disabled rules — months/years that fall entirely outside the allowed range
|
|
168
|
+
are rendered with the `disabled` HTML attribute, `aria-disabled="true"`, the
|
|
169
|
+
new `monthDisabled` / `yearDisabled` className slots, and are skipped during
|
|
170
|
+
keyboard navigation.
|
|
171
|
+
|
|
172
|
+
This was deliberately deferred from PR #46 to keep that bundle under 14 KB;
|
|
173
|
+
it lands now with a 14 → 15 KB ceiling bump.
|
|
174
|
+
|
|
175
|
+
Behavioral details:
|
|
176
|
+
- A month is "fully disabled" only when every day in it is excluded by a
|
|
177
|
+
`before` or `after` rule. `date` and `dayOfWeek` rules can never disable a
|
|
178
|
+
whole month, so they remain a per-day concern.
|
|
179
|
+
- A year follows the same rule against `[Jan 1 00:00:00, Dec 31 23:59:59.999]`.
|
|
180
|
+
- Click and keyboard `Enter` / `Space` on a disabled cell are no-ops.
|
|
181
|
+
- Initial focus and post-PageUp/PageDown focus both re-anchor to the first
|
|
182
|
+
enabled cell when the natural target is itself disabled. (A `disabled`
|
|
183
|
+
HTML button can't receive DOM focus, so without the re-anchor the user
|
|
184
|
+
would silently lose keyboard navigation.)
|
|
185
|
+
|
|
186
|
+
**Internal:** `useGridState` regains its optional `disabledFlags` parameter
|
|
187
|
+
plus a focus re-anchor effect; `isRangeFullyDisabled` is reintroduced as an
|
|
188
|
+
internal helper. Neither is exposed in the package public API.
|
|
189
|
+
|
|
190
|
+
**Bundle target:** raised 14 → 15 KB (measured 13.96 KB ESM / 14.21 KB CJS).
|
|
191
|
+
Same precedent as the 12 → 13 KB and 13 → 14 KB bumps when prior feature
|
|
192
|
+
work landed. Updated `scripts/check-bundle-size.js`, `pr-check.yml`, READMEs,
|
|
193
|
+
CLAUDE.md, PR template, and `check-bundle.md`.
|
|
194
|
+
|
|
195
|
+
## 1.0.0-rc.4
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- df97687: P1 audit follow-ups for v1.0-rc:
|
|
200
|
+
- **SSR hydration safety in 4 commit/drilldown grids** — `DatePicker.MonthGrid`, `DatePicker.YearGrid`, `MonthPicker.Grid`, and `YearPicker.Grid` previously called `adapter.today()` directly inside their render bodies, producing a server/client clock-mismatch hydration warning across day boundaries (and intermittently wrong "today" highlights in tz-different SSR setups). Today is now snapshotted via `useState(null)` + post-mount `useEffect`, so the server output and the first client render agree, and the highlight settles on the first effect tick.
|
|
201
|
+
- **`AmPmToggle` now follows the WAI-ARIA radiogroup pattern** — Arrow / Home / End / Space / Enter move and commit selection between AM and PM, and `tabIndex` is roving (only the checked radio is in the tab order). Previously both buttons were tabbable and arrow keys were ignored.
|
|
202
|
+
- **`DatePicker.Preset` / `RangePicker.Preset` now use `aria-pressed`** instead of `role="option"` + `aria-selected`. `role="option"` is invalid outside `role="listbox"` / `role="combobox"`, so axe was flagging the previous markup. Active state still appears on `data-active` for CSS targeting.
|
|
203
|
+
- **`RangePicker.Calendar` no longer advertises `aria-multiselectable="true"`** — a date range is one selection (two endpoints), not a multi-select grid.
|
|
204
|
+
- **Test stability** — `useRangePicker` `respects disabled rules` test pinned to April 2026 via `defaultValue` so the calendar grid contains the expected weekend day regardless of the system clock (was failing once the clock crossed into May).
|
|
205
|
+
- **`labels.ts` test coverage** — first unit tests for the default-label exports.
|
|
206
|
+
|
|
207
|
+
Behavioral notes for users (none of these are breaking for code that follows the documented `data-*` styling contract):
|
|
208
|
+
- If you targeted Preset buttons via `[aria-selected="true"]` in CSS, switch to `[aria-pressed="true"]` or `[data-active]`.
|
|
209
|
+
- If you targeted the range grid via `[aria-multiselectable]`, that attribute is gone; use `[role="grid"]` on the calendar root instead.
|
|
210
|
+
|
|
211
|
+
- Updated dependencies [df97687]
|
|
212
|
+
- @kalyx/core@1.0.0-rc.4
|
|
213
|
+
|
|
214
|
+
## 1.0.0-rc.3
|
|
215
|
+
|
|
216
|
+
### Patch Changes
|
|
217
|
+
|
|
218
|
+
- 3587b13: Replace deprecated `MutableRefObject<T>` with `RefObject<T>` in context types.
|
|
219
|
+
|
|
220
|
+
`@types/react@19` marks `MutableRefObject` as deprecated (`Use 'RefObject' instead`). In React 19 `RefObject<T>` is itself mutable, so the swap is type-equivalent for the existing `referenceRef` usage in `DatePickerContext` and `RangePickerContext`.
|
|
221
|
+
|
|
222
|
+
No runtime change. No public API surface change.
|
|
223
|
+
|
|
224
|
+
- Updated dependencies [3587b13]
|
|
225
|
+
- @kalyx/core@1.0.0-rc.3
|
|
226
|
+
|
|
227
|
+
## 1.0.0-rc.2
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- aadb512: Security: pin transitive `postcss` to `>=8.5.10` via `pnpm.overrides`.
|
|
232
|
+
|
|
233
|
+
Two `postcss` versions in `pnpm-lock.yaml` (`8.4.31` from a `postcss-load-config` chain and `8.5.9` from the `tsup` chain) were affected by [GHSA-qx2v-qp2m-jg93](https://osv.dev/GHSA-qx2v-qp2m-jg93) (CVSS 6.1 — improper newline handling that lets crafted input bypass quote escapes). Both are now resolved to `8.5.10`+. The OSV scanner workflow (which auto-creates issues #23 / #24 / #27) now reports zero advisories.
|
|
234
|
+
|
|
235
|
+
- 21f3c1f: Resolve v1.0-rc release-blocking defects (P0):
|
|
236
|
+
- **`"use client"` directive** — bundle is now marked as a React Server Component client boundary via tsup banner. Next.js App Router consumers no longer have to wrap each import.
|
|
237
|
+
- **Stable `today()`/`now()` initialization** — `viewMonth`/`focusedDate` `useState` calls in `DatePicker`/`RangePicker`/`DateTimePicker` Roots now use lazy initializers, so the adapter isn't called on every render.
|
|
238
|
+
- **`@kalyx/core` version sync** — bumped from `1.0.0-rc.0` to `1.0.0-rc.1` to match `@kalyx/react`.
|
|
239
|
+
- **`@kalyx/core` package contents** — `LICENSE` and `CHANGELOG.md` are now included in the npm tarball (`files` field).
|
|
240
|
+
- **Form auto-submit blocked when calendar open** — pressing Enter inside `DatePicker.Input`/`RangePicker.Input`/`DateTimePicker.Input` while the popover is open no longer submits the surrounding `<form>`.
|
|
241
|
+
- **`aria-haspopup="dialog"` on Trigger** — completes the WAI-ARIA combobox/dialog pattern.
|
|
242
|
+
- **Disabled cells skipped during keyboard navigation** — Calendar arrow keys / PageUp/Down / Home / End now step over disabled days and stop only when no enabled day is reachable.
|
|
243
|
+
|
|
244
|
+
- 733c0a1: Follow-up to the v1.0-rc audit series:
|
|
245
|
+
- **Fix WebKit Enter regression** — `DatePicker.Input` now commits the calendar's currently focused day on Enter when the popover is open and no text was typed. WebKit doesn't always shift focus from the input to the day button on `input.click()`, so the previous behavior (preventDefault but no commit) left the popover dangling. Other browsers also benefit when the user presses Enter immediately after opening.
|
|
246
|
+
- **Consolidate parsing path** — extract the parse-and-commit logic into a single `commitText` helper used by `onChange`, `onBlur`, `onCompositionEnd`, and Enter. Removes ~60 bytes of duplicated logic.
|
|
247
|
+
- **Bundle target raised to 13 KB** — the v1.0-rc accessibility / API additions (IME composition, popover focus-out, hidden form input, `aria-rowindex`/`colindex`, `displayName`, keyboard skip-disabled) accumulated to 12.07 KB gzip; the 12 KB ceiling was 0.07 KB tight. README, docs, `tsup.config.ts`, and `scripts/check-bundle-size.js` updated to ≤13 KB. Still ~3× smaller than `react-datepicker`.
|
|
248
|
+
|
|
249
|
+
- 3228533: P1 v1.0-rc API/a11y/docs improvements:
|
|
250
|
+
- **Popover focus-out close** — `usePopover` now closes the popover when focus leaves the floating layer and the reference element (Tab through). Matches the Radix/Ark dismissable layer pattern.
|
|
251
|
+
- **`name` prop + hidden form input** — `DatePicker.Input` accepts a `name` prop. When set, a hidden `<input type="hidden">` is rendered alongside the visible input so the value participates in native form submission and integrates with `react-hook-form` Controller-less flows.
|
|
252
|
+
- **IME composition handling** — `DatePicker.Input` now defers parsing during IME composition (`compositionstart` / `compositionend`). Previously, partial Korean / Japanese / Chinese input was repeatedly re-parsed and the user's text disappeared.
|
|
253
|
+
- **README parity** — Korean README now has the "Styling with Tailwind CSS" and "Using data attributes" sections that were missing. Version table and bundle-size claim corrected to `v1.0.0-rc.1` / `11.57 KB`.
|
|
254
|
+
- **Package metadata** — `peerDependenciesMeta`, `engines.node`, and `publishConfig.provenance` added to both `@kalyx/react` and `@kalyx/core`.
|
|
255
|
+
- **`@kalyx/react` description** — corrected from "under 10 KB gzipped" (false claim) to "≤12 KB gzipped".
|
|
256
|
+
|
|
257
|
+
- e8519d0: Performance: memoize hot paths to avoid wasted recomputation:
|
|
258
|
+
- `DatePicker.Calendar` and `RangePicker.Calendar` now `useMemo` their `getCalendarDays` and `getWeekdayNames` results. Previously the 42-cell grid and 7 weekday tuples were rebuilt every parent re-render even when none of the inputs changed.
|
|
259
|
+
- `TimePicker.HourList` and `TimePicker.MinuteList` `useMemo` their `generateHours(format)` / `generateMinutes(step)` arrays so the listbox identity is stable across renders.
|
|
260
|
+
- `usePopover` middleware (`offset` / `flip` / `shift`) is now hoisted to a module-level constant, eliminating Floating UI's repeated middleware-array reconciliation.
|
|
261
|
+
|
|
262
|
+
- b6129ed: P2 polish for v1.0-rc:
|
|
263
|
+
- **Calendar grid `aria-rowindex` / `aria-colindex` / `aria-rowcount` / `aria-colcount`** — `DatePicker.Calendar` and `RangePicker.Calendar` now expose grid coordinates so screenreaders announce position ("row 3 of 6, column 4 of 7") during keyboard navigation.
|
|
264
|
+
- **`displayName` on all `forwardRef` components** — `DatePicker.Input`, `DatePicker.Trigger`, `RangePicker.Input`, `TimePicker.Input`, `DateTimePicker.Input` now render with their public dot-notation name in React DevTools.
|
|
265
|
+
- **JSDoc on `DatePicker.Input` and `DatePicker.Trigger`** — public API surface for the most-used components has explanatory docstrings.
|
|
266
|
+
- **`addYears` leap-day regression tests** — locked the date-fns clamp behavior (2024-02-29 + 1y → 2025-02-28, not March 1).
|
|
267
|
+
- **DST fall-back ambiguous-hour regression test** — captures the current behavior of `setTimeInTimezone` for 2026-11-01 01:30 America/New_York so silent drift surfaces as a test failure.
|
|
268
|
+
- **Test count claim corrected** — root and core `CLAUDE.md` previously claimed "1,000+ unit tests"; actual count is ~140 in core, 374 across the workspace.
|
|
269
|
+
|
|
270
|
+
- Updated dependencies [aadb512]
|
|
271
|
+
- Updated dependencies [21f3c1f]
|
|
272
|
+
- Updated dependencies [3228533]
|
|
273
|
+
- Updated dependencies [b6129ed]
|
|
274
|
+
- @kalyx/core@1.0.0-rc.2
|
|
275
|
+
|
|
3
276
|
## 1.0.0-rc.1
|
|
4
277
|
|
|
5
278
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @kalyx/react
|
|
2
2
|
|
|
3
|
-
> The headless React DatePicker, finally complete. Zero CSS · SSR-safe ·
|
|
3
|
+
> The headless React DatePicker, finally complete. Zero CSS · SSR-safe · ~14 KB gzip (≤ 15 KB ceiling).
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@kalyx/react)
|
|
6
|
-
[](https://kalyx-docs.vercel.app/docs/api/react#bundle-size)
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
[](https://github.com/jiji-hoon96/kalyx/blob/main/LICENSE)
|
|
9
9
|
|