@kalyx/react 1.0.0-rc.1 → 1.0.0-rc.11
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 +308 -0
- package/README.md +2 -2
- package/dist/index.cjs +821 -385
- 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 +810 -390
- package/dist/index.js.map +1 -1
- package/package.json +18 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,313 @@
|
|
|
1
1
|
# @kalyx/react
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 19ac1c0: fix(core): allow `generateMinutes` step values up to 60
|
|
8
|
+
|
|
9
|
+
`generateMinutes(step)` rejected any step above 30, which prevented legitimate cases like `step=45` (quarter-and-three-quarters past the hour) and `step=60` (on-the-hour only). The slot-generation loop already works for any 1–60 integer, so the upper bound is now 60 with the same error message format. Steps `0`, `61+`, and negative values still throw. No callers in `@kalyx/react` relied on the previous narrower bound.
|
|
10
|
+
|
|
11
|
+
- eafc3c1: fix(input): drop stale typed text when the parent re-sets value externally
|
|
12
|
+
|
|
13
|
+
`<DatePicker.Input>` and `<TimePicker.Input>` keep half-typed text in a local `inputText` state while the user is editing — without it, parse-failed input would vanish on every keystroke. The state was reset only when the user committed via blur/Enter, which left a real gap:
|
|
14
|
+
|
|
15
|
+
If the value changed from anywhere else (parent re-rendered with a new `value`, a calendar click, a `Preset`, a custom-Hook `setRange`, an HourList option), the Input kept rendering the user's stale text. Source-of-truth and visible value diverged silently.
|
|
16
|
+
|
|
17
|
+
A `useEffect` keyed on `ctx.value` now resets `inputText` whenever the source-of-truth changes. The Input goes back to formatting the new value normally. For DatePicker the reset is skipped while an IME composition is in flight (Korean/Japanese/Chinese), so an in-flight character is never wiped mid-stroke.
|
|
18
|
+
|
|
19
|
+
Impact: `DatePicker`, `MonthPicker`, `YearPicker` (the last two reuse `DatePickerInput`), and `TimePicker` all get the fix. `RangePicker`/`WeekPicker`/`DateTimePicker` Inputs are read-only or non-editable and already track context directly, so they were never affected.
|
|
20
|
+
|
|
21
|
+
- 23bc187: docs(i18n): translate Korean intro and stop bumping demo apps on every patch
|
|
22
|
+
- `apps/docs-site/i18n/ko/.../intro.md` is now fully translated to Korean. Previously the file lived in the `i18n/ko/` tree but the body was the verbatim English copy, so Korean docs visitors saw English content on the landing page.
|
|
23
|
+
- `.changeset/config.json` `ignore` now includes the two demo workspaces (`@kalyx/docs`, `docs-site`). Changesets used to bump them on every release because they depend on `@kalyx/react`, polluting their CHANGELOG with `Updated dependencies` entries and adding noise to release PRs. Demo apps aren't published — they don't need versioning.
|
|
24
|
+
|
|
25
|
+
- c8a6609: fix(rangepicker): announce next selection target and final range to screen readers
|
|
26
|
+
|
|
27
|
+
`<RangePicker.Calendar>` now announces context-aware messages through its existing `role="status"` live region:
|
|
28
|
+
- After the first click (start), it announces `<formatted-date>. Now select end date.` so screen-reader users know the next click commits the other endpoint.
|
|
29
|
+
- After the second click (end), it announces `Range selected: <start> – <end>` instead of just the bare date — matching the swap-if-before behaviour so the announcement always reflects what was committed.
|
|
30
|
+
- Week-mode commits now share the same `Range selected: ...` prefix for consistency.
|
|
31
|
+
|
|
32
|
+
The two new strings are wired through `RangePickerLabels.selectingEnd` and `RangePickerLabels.rangeSelected` with English defaults, and they are fully overridable via the existing `labels` prop for i18n. `@kalyx/core` gets a `minor` bump because `RangePickerLabels` gained required fields (with defaults supplied by `DEFAULT_RANGEPICKER_LABELS`); any consumer constructing a literal `RangePickerLabels` from scratch will need to add the two keys.
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [19ac1c0]
|
|
35
|
+
- Updated dependencies [c8a6609]
|
|
36
|
+
- @kalyx/core@1.0.0-rc.11
|
|
37
|
+
|
|
38
|
+
## 1.0.0-rc.10
|
|
39
|
+
|
|
40
|
+
### Minor Changes
|
|
41
|
+
|
|
42
|
+
- 4629384: chore(oss): unify node engines to >=20 and add public repository metadata
|
|
43
|
+
- `@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`.
|
|
44
|
+
- Root `package.json` now exposes `homepage`, `repository`, and `bugs` so `npm info` and the npm registry page link back to the GitHub repo.
|
|
45
|
+
- `.github/PULL_REQUEST_TEMPLATE.md` bundle ceiling updated `15KB → 16 KB` to match the post-rc.8 limit advertised in README and CI.
|
|
46
|
+
- `.gitignore` ignores `.codegraph/`, `.serena/`, and `.tmp-*/` (MCP server caches and worktree scratchpads).
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- 63fb80a: fix(datetimepicker): close composition-API gap and expose missing public types
|
|
51
|
+
- `<DateTimePicker.Root>` now accepts `withSeconds` and `filterTime` props (was silently hard-coded to `withSeconds: false`, `filterTime: undefined`)
|
|
52
|
+
- `currentTime` no longer calls `DateFnsAdapter.today()` during render when `value` is null — eliminates the UTC-midnight hydration mismatch risk
|
|
53
|
+
- 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
|
|
54
|
+
|
|
55
|
+
- 4178a92: fix(timepicker, rangepicker): hydration-safe time fallback and memoized preset resolution
|
|
56
|
+
- `<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.
|
|
57
|
+
- `<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.
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [4629384]
|
|
60
|
+
- @kalyx/core@1.0.0-rc.10
|
|
61
|
+
|
|
62
|
+
## 1.0.0-rc.9
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 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.
|
|
67
|
+
|
|
68
|
+
## 1.0.0-rc.8
|
|
69
|
+
|
|
70
|
+
### Minor Changes
|
|
71
|
+
|
|
72
|
+
- 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).
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
<TimePicker
|
|
76
|
+
value={time}
|
|
77
|
+
onChange={setTime}
|
|
78
|
+
step={15}
|
|
79
|
+
// Business hours only: 09:00–11:45 and 13:00–17:45 (no lunch slot)
|
|
80
|
+
filterTime={(h, m) => h < 9 || h >= 18 || h === 12}
|
|
81
|
+
>
|
|
82
|
+
<TimePicker.Input />
|
|
83
|
+
<TimePicker.HourList />
|
|
84
|
+
<TimePicker.MinuteList />
|
|
85
|
+
</TimePicker>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Behavior:
|
|
89
|
+
- **`MinuteList`** — minutes for which `filterTime(currentHour, minute)` returns `true` get `aria-disabled="true"` and reject click/Enter.
|
|
90
|
+
- **`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.
|
|
91
|
+
- 12-hour mode — the predicate always receives 24-hour values (`0`–`23`) regardless of the picker's display format.
|
|
92
|
+
|
|
93
|
+
**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.
|
|
94
|
+
|
|
95
|
+
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.
|
|
96
|
+
|
|
97
|
+
## 1.0.0-rc.7
|
|
98
|
+
|
|
99
|
+
### Minor Changes
|
|
100
|
+
|
|
101
|
+
- 0eca2e8: Two new `DatePicker.Calendar` / `RangePicker.Calendar` props plus an ISO-week utility:
|
|
102
|
+
- **`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`.
|
|
103
|
+
- **`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.
|
|
104
|
+
|
|
105
|
+
Both also accepted on `CalendarOptions` (the `getCalendarDays` core util gains `fixedWeeks`).
|
|
106
|
+
|
|
107
|
+
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`).
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
<DatePicker value={date} onChange={setDate}>
|
|
111
|
+
<DatePicker.Input />
|
|
112
|
+
<DatePicker.Popover>
|
|
113
|
+
<DatePicker.Calendar showWeekNumber fixedWeeks />
|
|
114
|
+
</DatePicker.Popover>
|
|
115
|
+
</DatePicker>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Bundle impact: +0.46 KB ESM gzip (13.96 → 14.42 KB). Still well under the 15 KB ceiling.
|
|
119
|
+
|
|
120
|
+
- 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.
|
|
121
|
+
|
|
122
|
+
```tsx
|
|
123
|
+
const holidays = new Set(['2026-01-01T00:00:00.000Z', '2026-12-25T00:00:00.000Z']);
|
|
124
|
+
|
|
125
|
+
<DatePicker
|
|
126
|
+
disabled={[
|
|
127
|
+
{ dayOfWeek: [0, 6] }, // weekends
|
|
128
|
+
{ filter: (iso) => holidays.has(iso) }, // holidays
|
|
129
|
+
]}
|
|
130
|
+
>
|
|
131
|
+
…
|
|
132
|
+
</DatePicker>;
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
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).
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- 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.
|
|
140
|
+
|
|
141
|
+
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.
|
|
142
|
+
|
|
143
|
+
- Updated dependencies [0eca2e8]
|
|
144
|
+
- Updated dependencies [d62c84e]
|
|
145
|
+
- @kalyx/core@1.0.0-rc.7
|
|
146
|
+
|
|
147
|
+
## 1.0.0-rc.6
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- abc56ac: Security: pin transitive `fast-uri` to `>=3.1.2` and `@babel/plugin-transform-modules-systemjs` to `>=7.29.4` via `pnpm.overrides`.
|
|
152
|
+
|
|
153
|
+
Resolves three Code Scanning alerts on `pnpm-lock.yaml`:
|
|
154
|
+
- `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`.
|
|
155
|
+
- `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`.
|
|
156
|
+
- `@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.
|
|
157
|
+
|
|
158
|
+
All three packages are transitive build-time dependencies (ajv → fast-uri, Babel preset-env → systemjs plugin); no public API impact.
|
|
159
|
+
|
|
160
|
+
- Updated dependencies [abc56ac]
|
|
161
|
+
- @kalyx/core@1.0.0-rc.6
|
|
162
|
+
|
|
163
|
+
## 1.0.0-rc.5
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- 9f3cf9b: WAI-ARIA grid keyboard navigation for the four 3×4 picker grids
|
|
168
|
+
(`DatePicker.MonthGrid`, `DatePicker.YearGrid`, `MonthPicker.Grid`,
|
|
169
|
+
`YearPicker.Grid`).
|
|
170
|
+
|
|
171
|
+
Before, these grids declared `role="grid"` but had no key handler — keyboard
|
|
172
|
+
users could not select a month or year, in violation of CLAUDE.md §7.
|
|
173
|
+
|
|
174
|
+
Now each grid implements:
|
|
175
|
+
- **Arrow keys** — ±1 column / ±3 rows, clamped to grid bounds.
|
|
176
|
+
- **Home / End** — first / last cell of the current row.
|
|
177
|
+
- **PageUp / PageDown** — previous / next year (or decade for year grids).
|
|
178
|
+
- **Enter / Space** — commit the focused cell (drilldown grids switch view via
|
|
179
|
+
`onSelect`; commit grids close the popover via `ctx.selectDate`).
|
|
180
|
+
- **Roving tabIndex** — only the focused cell has `tabIndex=0`; the
|
|
181
|
+
`data-focused` attribute follows.
|
|
182
|
+
- **Auto-refocus** — DOM focus moves with `focusedIndex` so PageUp/Down lands
|
|
183
|
+
the user back on the same column position. Cells use stable index keys so
|
|
184
|
+
the buttons persist across page nav.
|
|
185
|
+
|
|
186
|
+
Component-level integration tests added per CLAUDE.md §7 across `DatePicker`,
|
|
187
|
+
`RangePicker`, `DateTimePicker`, and `WeekPicker`: leap-year (Feb 29 2024)
|
|
188
|
+
click commit, `before`/`after` rule click block, `dayOfWeek` rule click block
|
|
189
|
+
plus visual `aria-disabled`, and keyboard ArrowLeft skip-disabled.
|
|
190
|
+
|
|
191
|
+
**Bundle target raised to 14 KB** — full grid keyboard nav (state + handlers
|
|
192
|
+
- auto-refocus) added ~1.4 KB gzip across the four grids. Measured 12.85 KB
|
|
193
|
+
ESM / 13.64 KB CJS at this point. README, docs, `scripts/check-bundle-size.js`,
|
|
194
|
+
PR template, and CI gate updated to ≤14 KB.
|
|
195
|
+
|
|
196
|
+
**Internal:** new shared `useGridState` hook in
|
|
197
|
+
`packages/react/src/components/_shared/grid-keyboard.ts` (not exported from
|
|
198
|
+
the package public API) consolidates keyboard handling and roving-focus
|
|
199
|
+
state across all four grids.
|
|
200
|
+
|
|
201
|
+
- 9b19df4: `MonthPicker.Grid` and `YearPicker.Grid` now respect `before` / `after`
|
|
202
|
+
disabled rules — months/years that fall entirely outside the allowed range
|
|
203
|
+
are rendered with the `disabled` HTML attribute, `aria-disabled="true"`, the
|
|
204
|
+
new `monthDisabled` / `yearDisabled` className slots, and are skipped during
|
|
205
|
+
keyboard navigation.
|
|
206
|
+
|
|
207
|
+
This was deliberately deferred from PR #46 to keep that bundle under 14 KB;
|
|
208
|
+
it lands now with a 14 → 15 KB ceiling bump.
|
|
209
|
+
|
|
210
|
+
Behavioral details:
|
|
211
|
+
- A month is "fully disabled" only when every day in it is excluded by a
|
|
212
|
+
`before` or `after` rule. `date` and `dayOfWeek` rules can never disable a
|
|
213
|
+
whole month, so they remain a per-day concern.
|
|
214
|
+
- A year follows the same rule against `[Jan 1 00:00:00, Dec 31 23:59:59.999]`.
|
|
215
|
+
- Click and keyboard `Enter` / `Space` on a disabled cell are no-ops.
|
|
216
|
+
- Initial focus and post-PageUp/PageDown focus both re-anchor to the first
|
|
217
|
+
enabled cell when the natural target is itself disabled. (A `disabled`
|
|
218
|
+
HTML button can't receive DOM focus, so without the re-anchor the user
|
|
219
|
+
would silently lose keyboard navigation.)
|
|
220
|
+
|
|
221
|
+
**Internal:** `useGridState` regains its optional `disabledFlags` parameter
|
|
222
|
+
plus a focus re-anchor effect; `isRangeFullyDisabled` is reintroduced as an
|
|
223
|
+
internal helper. Neither is exposed in the package public API.
|
|
224
|
+
|
|
225
|
+
**Bundle target:** raised 14 → 15 KB (measured 13.96 KB ESM / 14.21 KB CJS).
|
|
226
|
+
Same precedent as the 12 → 13 KB and 13 → 14 KB bumps when prior feature
|
|
227
|
+
work landed. Updated `scripts/check-bundle-size.js`, `pr-check.yml`, READMEs,
|
|
228
|
+
CLAUDE.md, PR template, and `check-bundle.md`.
|
|
229
|
+
|
|
230
|
+
## 1.0.0-rc.4
|
|
231
|
+
|
|
232
|
+
### Patch Changes
|
|
233
|
+
|
|
234
|
+
- df97687: P1 audit follow-ups for v1.0-rc:
|
|
235
|
+
- **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.
|
|
236
|
+
- **`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.
|
|
237
|
+
- **`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.
|
|
238
|
+
- **`RangePicker.Calendar` no longer advertises `aria-multiselectable="true"`** — a date range is one selection (two endpoints), not a multi-select grid.
|
|
239
|
+
- **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).
|
|
240
|
+
- **`labels.ts` test coverage** — first unit tests for the default-label exports.
|
|
241
|
+
|
|
242
|
+
Behavioral notes for users (none of these are breaking for code that follows the documented `data-*` styling contract):
|
|
243
|
+
- If you targeted Preset buttons via `[aria-selected="true"]` in CSS, switch to `[aria-pressed="true"]` or `[data-active]`.
|
|
244
|
+
- If you targeted the range grid via `[aria-multiselectable]`, that attribute is gone; use `[role="grid"]` on the calendar root instead.
|
|
245
|
+
|
|
246
|
+
- Updated dependencies [df97687]
|
|
247
|
+
- @kalyx/core@1.0.0-rc.4
|
|
248
|
+
|
|
249
|
+
## 1.0.0-rc.3
|
|
250
|
+
|
|
251
|
+
### Patch Changes
|
|
252
|
+
|
|
253
|
+
- 3587b13: Replace deprecated `MutableRefObject<T>` with `RefObject<T>` in context types.
|
|
254
|
+
|
|
255
|
+
`@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`.
|
|
256
|
+
|
|
257
|
+
No runtime change. No public API surface change.
|
|
258
|
+
|
|
259
|
+
- Updated dependencies [3587b13]
|
|
260
|
+
- @kalyx/core@1.0.0-rc.3
|
|
261
|
+
|
|
262
|
+
## 1.0.0-rc.2
|
|
263
|
+
|
|
264
|
+
### Patch Changes
|
|
265
|
+
|
|
266
|
+
- aadb512: Security: pin transitive `postcss` to `>=8.5.10` via `pnpm.overrides`.
|
|
267
|
+
|
|
268
|
+
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.
|
|
269
|
+
|
|
270
|
+
- 21f3c1f: Resolve v1.0-rc release-blocking defects (P0):
|
|
271
|
+
- **`"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.
|
|
272
|
+
- **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.
|
|
273
|
+
- **`@kalyx/core` version sync** — bumped from `1.0.0-rc.0` to `1.0.0-rc.1` to match `@kalyx/react`.
|
|
274
|
+
- **`@kalyx/core` package contents** — `LICENSE` and `CHANGELOG.md` are now included in the npm tarball (`files` field).
|
|
275
|
+
- **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>`.
|
|
276
|
+
- **`aria-haspopup="dialog"` on Trigger** — completes the WAI-ARIA combobox/dialog pattern.
|
|
277
|
+
- **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.
|
|
278
|
+
|
|
279
|
+
- 733c0a1: Follow-up to the v1.0-rc audit series:
|
|
280
|
+
- **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.
|
|
281
|
+
- **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.
|
|
282
|
+
- **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`.
|
|
283
|
+
|
|
284
|
+
- 3228533: P1 v1.0-rc API/a11y/docs improvements:
|
|
285
|
+
- **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.
|
|
286
|
+
- **`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.
|
|
287
|
+
- **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.
|
|
288
|
+
- **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`.
|
|
289
|
+
- **Package metadata** — `peerDependenciesMeta`, `engines.node`, and `publishConfig.provenance` added to both `@kalyx/react` and `@kalyx/core`.
|
|
290
|
+
- **`@kalyx/react` description** — corrected from "under 10 KB gzipped" (false claim) to "≤12 KB gzipped".
|
|
291
|
+
|
|
292
|
+
- e8519d0: Performance: memoize hot paths to avoid wasted recomputation:
|
|
293
|
+
- `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.
|
|
294
|
+
- `TimePicker.HourList` and `TimePicker.MinuteList` `useMemo` their `generateHours(format)` / `generateMinutes(step)` arrays so the listbox identity is stable across renders.
|
|
295
|
+
- `usePopover` middleware (`offset` / `flip` / `shift`) is now hoisted to a module-level constant, eliminating Floating UI's repeated middleware-array reconciliation.
|
|
296
|
+
|
|
297
|
+
- b6129ed: P2 polish for v1.0-rc:
|
|
298
|
+
- **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.
|
|
299
|
+
- **`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.
|
|
300
|
+
- **JSDoc on `DatePicker.Input` and `DatePicker.Trigger`** — public API surface for the most-used components has explanatory docstrings.
|
|
301
|
+
- **`addYears` leap-day regression tests** — locked the date-fns clamp behavior (2024-02-29 + 1y → 2025-02-28, not March 1).
|
|
302
|
+
- **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.
|
|
303
|
+
- **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.
|
|
304
|
+
|
|
305
|
+
- Updated dependencies [aadb512]
|
|
306
|
+
- Updated dependencies [21f3c1f]
|
|
307
|
+
- Updated dependencies [3228533]
|
|
308
|
+
- Updated dependencies [b6129ed]
|
|
309
|
+
- @kalyx/core@1.0.0-rc.2
|
|
310
|
+
|
|
3
311
|
## 1.0.0-rc.1
|
|
4
312
|
|
|
5
313
|
### 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
|
|