@kalyx/react 0.2.2 → 0.4.0
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 +45 -0
- package/dist/index.cjs +330 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -5
- package/dist/index.d.ts +42 -5
- package/dist/index.js +331 -269
- package/dist/index.js.map +1 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @kalyx/react
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 104bbf2: feat: full `displayTimezone` support across all pickers (v0.4)
|
|
8
|
+
|
|
9
|
+
All four pickers (`DatePicker`, `RangePicker`, `TimePicker`, `DateTimePicker`) and their corresponding hooks (`useDatePicker`, `useRangePicker`, `useTimePicker`) now accept a `displayTimezone` prop/option.
|
|
10
|
+
|
|
11
|
+
When set, the value stored via `onChange` is the **civil midnight of the selected day in the target timezone** (in UTC-ISO form), eliminating the classic "day off by one" bug that affects picker libraries bound to `new Date()`. Input formatting, calendar highlighting, and the time-of-day controls all follow the display timezone — including DST-aware offsets for zones like `America/New_York` and `Europe/London`.
|
|
12
|
+
|
|
13
|
+
`DateFnsAdapter` now honors the `timezone` argument on `format`, `isSameDay`, `startOfDay`, and `today` (previously declared-but-ignored). Core also exposes new helpers:
|
|
14
|
+
|
|
15
|
+
- `civilMidnightFromUtcDay(iso, tz)`
|
|
16
|
+
- `getTimeInTimezone(iso, tz)`
|
|
17
|
+
- `setTimeInTimezone(iso, partial, tz)`
|
|
18
|
+
|
|
19
|
+
No breaking changes — omitting `displayTimezone` keeps the existing UTC semantics.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [b3a8897]
|
|
24
|
+
- Updated dependencies [104bbf2]
|
|
25
|
+
- @kalyx/core@0.4.0
|
|
26
|
+
|
|
27
|
+
## 0.3.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- 669391b: Improve code quality, performance, and stability
|
|
32
|
+
|
|
33
|
+
- Enforce UTC timezone suffix in ISO regex
|
|
34
|
+
- Extract shared usePopover and useListboxNavigation hooks
|
|
35
|
+
- Add Intl.DateTimeFormat caching for locale/timezone utilities
|
|
36
|
+
- Memoize disabledRules to prevent unnecessary context re-creation
|
|
37
|
+
- Add try-catch around adapter.format() for error resilience
|
|
38
|
+
- Cancel requestAnimationFrame on unmount in listbox navigation
|
|
39
|
+
- Remove unused parseInputValue format parameter
|
|
40
|
+
- Boost test coverage: 87% → 92%
|
|
41
|
+
- Fix bundle size measurement to report both ESM and CJS
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [669391b]
|
|
46
|
+
- @kalyx/core@0.3.0
|
|
47
|
+
|
|
3
48
|
## 0.2.2
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|