@kalyx/react 1.0.0-rc.8 → 1.0.0-rc.9
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 +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -497,9 +497,10 @@ interface TimePickerRootProps {
|
|
|
497
497
|
readOnly?: boolean;
|
|
498
498
|
/**
|
|
499
499
|
* Programmatic per-slot disable predicate. Returns `true` for any `(hours, minutes)` pair
|
|
500
|
-
* that should be unselectable
|
|
501
|
-
*
|
|
502
|
-
*
|
|
500
|
+
* that should be unselectable — same polarity as MUI X's `shouldDisableTime`, and the
|
|
501
|
+
* **inverse** of react-datepicker's `filterTime` (which returns `true` to *keep* a slot).
|
|
502
|
+
* Use cases: business hours, lunch breaks, blackout slots. Hours are disabled only when the
|
|
503
|
+
* predicate returns `true` for every step within the hour. Always receives 24-hour values.
|
|
503
504
|
*/
|
|
504
505
|
filterTime?: (hours: number, minutes: number) => boolean;
|
|
505
506
|
/** Override ARIA labels (defaults to English) */
|
package/dist/index.d.ts
CHANGED
|
@@ -497,9 +497,10 @@ interface TimePickerRootProps {
|
|
|
497
497
|
readOnly?: boolean;
|
|
498
498
|
/**
|
|
499
499
|
* Programmatic per-slot disable predicate. Returns `true` for any `(hours, minutes)` pair
|
|
500
|
-
* that should be unselectable
|
|
501
|
-
*
|
|
502
|
-
*
|
|
500
|
+
* that should be unselectable — same polarity as MUI X's `shouldDisableTime`, and the
|
|
501
|
+
* **inverse** of react-datepicker's `filterTime` (which returns `true` to *keep* a slot).
|
|
502
|
+
* Use cases: business hours, lunch breaks, blackout slots. Hours are disabled only when the
|
|
503
|
+
* predicate returns `true` for every step within the hour. Always receives 24-hour values.
|
|
503
504
|
*/
|
|
504
505
|
filterTime?: (hours: number, minutes: number) => boolean;
|
|
505
506
|
/** Override ARIA labels (defaults to English) */
|