@kalyx/react 1.0.0-rc.0 → 1.0.0-rc.2

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
@@ -198,6 +198,12 @@ declare function DatePickerPreset({ value: presetKey, date: directDate, children
198
198
  interface DatePickerInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'type'> {
199
199
  /** Date display format (defaults to parent's displayFormat) */
200
200
  format?: string;
201
+ /**
202
+ * Form field name. When set, a hidden `<input type="hidden" name={name} value={ISO}>`
203
+ * is rendered alongside the visible input so the value participates in native form
204
+ * submission (and integrates with `react-hook-form` Controller-less flows).
205
+ */
206
+ name?: string;
201
207
  }
202
208
 
203
209
  interface DatePickerTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
@@ -674,7 +680,7 @@ interface MonthPickerGridClassNames {
674
680
  monthCurrent?: string;
675
681
  monthDisabled?: string;
676
682
  }
677
- interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, "role"> {
683
+ interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
678
684
  classNames?: MonthPickerGridClassNames;
679
685
  }
680
686
  /**
package/dist/index.d.ts CHANGED
@@ -198,6 +198,12 @@ declare function DatePickerPreset({ value: presetKey, date: directDate, children
198
198
  interface DatePickerInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'type'> {
199
199
  /** Date display format (defaults to parent's displayFormat) */
200
200
  format?: string;
201
+ /**
202
+ * Form field name. When set, a hidden `<input type="hidden" name={name} value={ISO}>`
203
+ * is rendered alongside the visible input so the value participates in native form
204
+ * submission (and integrates with `react-hook-form` Controller-less flows).
205
+ */
206
+ name?: string;
201
207
  }
202
208
 
203
209
  interface DatePickerTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
@@ -674,7 +680,7 @@ interface MonthPickerGridClassNames {
674
680
  monthCurrent?: string;
675
681
  monthDisabled?: string;
676
682
  }
677
- interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, "role"> {
683
+ interface MonthPickerGridProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
678
684
  classNames?: MonthPickerGridClassNames;
679
685
  }
680
686
  /**