@scalably/ui 0.7.10 → 0.7.12

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
@@ -846,12 +846,16 @@ interface SingleProps extends Omit<InputProps, "value" | "onChange" | "type" | "
846
846
  value?: SingleValue;
847
847
  defaultValue?: SingleValue;
848
848
  onChange?: (value: SingleValue) => void;
849
+ /** Called when the user clicks Apply in the date picker (commits the selection). */
850
+ onApply?: (value: SingleValue) => void;
849
851
  }
850
852
  interface RangeProps extends Omit<InputProps, "value" | "onChange" | "type" | "defaultValue">, BaseProps {
851
853
  mode: "range";
852
854
  value?: RangeValue;
853
855
  defaultValue?: RangeValue;
854
856
  onChange?: (value: RangeValue) => void;
857
+ /** Called when the user clicks Apply in the date picker (commits the selection). */
858
+ onApply?: (value: RangeValue) => void;
855
859
  }
856
860
  type DateInputProps = SingleProps | RangeProps;
857
861
  /**
package/dist/index.d.ts CHANGED
@@ -846,12 +846,16 @@ interface SingleProps extends Omit<InputProps, "value" | "onChange" | "type" | "
846
846
  value?: SingleValue;
847
847
  defaultValue?: SingleValue;
848
848
  onChange?: (value: SingleValue) => void;
849
+ /** Called when the user clicks Apply in the date picker (commits the selection). */
850
+ onApply?: (value: SingleValue) => void;
849
851
  }
850
852
  interface RangeProps extends Omit<InputProps, "value" | "onChange" | "type" | "defaultValue">, BaseProps {
851
853
  mode: "range";
852
854
  value?: RangeValue;
853
855
  defaultValue?: RangeValue;
854
856
  onChange?: (value: RangeValue) => void;
857
+ /** Called when the user clicks Apply in the date picker (commits the selection). */
858
+ onApply?: (value: RangeValue) => void;
855
859
  }
856
860
  type DateInputProps = SingleProps | RangeProps;
857
861
  /**