@kalyx/react 1.0.0-rc.3 → 1.0.0-rc.5

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/dist/index.d.cts CHANGED
@@ -515,6 +515,9 @@ interface TimePickerAmPmToggleProps extends Omit<HTMLAttributes<HTMLDivElement>,
515
515
  /**
516
516
  * TimePicker.AmPmToggle — AM/PM toggle shown only in 12-hour mode.
517
517
  * Returns null in 24-hour mode.
518
+ *
519
+ * Implements the WAI-ARIA radiogroup pattern: only the checked radio is in the
520
+ * tab order; ArrowLeft/Right/Up/Down + Home/End move selection between radios.
518
521
  */
519
522
  declare function TimePickerAmPmToggle({ classNames, ...props }: TimePickerAmPmToggleProps): react_jsx_runtime.JSX.Element | null;
520
523
 
@@ -689,9 +692,18 @@ interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'rol
689
692
  * Unlike `DatePicker.MonthGrid` (drilldown), this component commits the month selection
690
693
  * via `ctx.selectDate`, emitting the month-start ISO string.
691
694
  *
695
+ * Disabled state: a month is marked unselectable when every day in it is
696
+ * excluded by a `before`/`after` rule on the `disabled` prop. The cell is
697
+ * rendered with `disabled` + `aria-disabled` + the `monthDisabled` className,
698
+ * and keyboard navigation skips it.
699
+ *
692
700
  * @example
693
701
  * ```tsx
694
- * <MonthPicker value={month} onChange={setMonth} displayFormat="yyyy-MM">
702
+ * <MonthPicker
703
+ * value={month}
704
+ * onChange={setMonth}
705
+ * disabled={[{ before: '2026-04-01T00:00:00.000Z' }]}
706
+ * >
695
707
  * <MonthPicker.Input />
696
708
  * <MonthPicker.Popover>
697
709
  * <MonthPicker.Grid />
@@ -753,9 +765,18 @@ interface YearPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role
753
765
  * Unlike `DatePicker.YearGrid` (drilldown), this component commits the year selection via
754
766
  * `ctx.selectDate`, emitting the year-start ISO string (Jan 1 at UTC midnight).
755
767
  *
768
+ * Disabled state: a year is marked unselectable when every day in it is
769
+ * excluded by a `before`/`after` rule on the `disabled` prop. The cell is
770
+ * rendered with `disabled` + `aria-disabled` + the `yearDisabled` className,
771
+ * and keyboard navigation skips it.
772
+ *
756
773
  * @example
757
774
  * ```tsx
758
- * <YearPicker value={year} onChange={setYear}>
775
+ * <YearPicker
776
+ * value={year}
777
+ * onChange={setYear}
778
+ * disabled={[{ before: '2024-01-01T00:00:00.000Z' }]}
779
+ * >
759
780
  * <YearPicker.Input />
760
781
  * <YearPicker.Popover>
761
782
  * <YearPicker.Grid />
package/dist/index.d.ts CHANGED
@@ -515,6 +515,9 @@ interface TimePickerAmPmToggleProps extends Omit<HTMLAttributes<HTMLDivElement>,
515
515
  /**
516
516
  * TimePicker.AmPmToggle — AM/PM toggle shown only in 12-hour mode.
517
517
  * Returns null in 24-hour mode.
518
+ *
519
+ * Implements the WAI-ARIA radiogroup pattern: only the checked radio is in the
520
+ * tab order; ArrowLeft/Right/Up/Down + Home/End move selection between radios.
518
521
  */
519
522
  declare function TimePickerAmPmToggle({ classNames, ...props }: TimePickerAmPmToggleProps): react_jsx_runtime.JSX.Element | null;
520
523
 
@@ -689,9 +692,18 @@ interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'rol
689
692
  * Unlike `DatePicker.MonthGrid` (drilldown), this component commits the month selection
690
693
  * via `ctx.selectDate`, emitting the month-start ISO string.
691
694
  *
695
+ * Disabled state: a month is marked unselectable when every day in it is
696
+ * excluded by a `before`/`after` rule on the `disabled` prop. The cell is
697
+ * rendered with `disabled` + `aria-disabled` + the `monthDisabled` className,
698
+ * and keyboard navigation skips it.
699
+ *
692
700
  * @example
693
701
  * ```tsx
694
- * <MonthPicker value={month} onChange={setMonth} displayFormat="yyyy-MM">
702
+ * <MonthPicker
703
+ * value={month}
704
+ * onChange={setMonth}
705
+ * disabled={[{ before: '2026-04-01T00:00:00.000Z' }]}
706
+ * >
695
707
  * <MonthPicker.Input />
696
708
  * <MonthPicker.Popover>
697
709
  * <MonthPicker.Grid />
@@ -753,9 +765,18 @@ interface YearPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role
753
765
  * Unlike `DatePicker.YearGrid` (drilldown), this component commits the year selection via
754
766
  * `ctx.selectDate`, emitting the year-start ISO string (Jan 1 at UTC midnight).
755
767
  *
768
+ * Disabled state: a year is marked unselectable when every day in it is
769
+ * excluded by a `before`/`after` rule on the `disabled` prop. The cell is
770
+ * rendered with `disabled` + `aria-disabled` + the `yearDisabled` className,
771
+ * and keyboard navigation skips it.
772
+ *
756
773
  * @example
757
774
  * ```tsx
758
- * <YearPicker value={year} onChange={setYear}>
775
+ * <YearPicker
776
+ * value={year}
777
+ * onChange={setYear}
778
+ * disabled={[{ before: '2024-01-01T00:00:00.000Z' }]}
779
+ * >
759
780
  * <YearPicker.Input />
760
781
  * <YearPicker.Popover>
761
782
  * <YearPicker.Grid />