@scalably/ui 0.9.12 → 0.9.14
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.esm.js +15 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -726,6 +726,8 @@ interface BaseProps$1 {
|
|
|
726
726
|
isDateMarked?: (date: Date) => boolean;
|
|
727
727
|
showTime?: boolean;
|
|
728
728
|
minuteStep?: number;
|
|
729
|
+
/** Show the Cancel/Apply footer actions. Defaults to true. */
|
|
730
|
+
showFooterActions?: boolean;
|
|
729
731
|
onCancel?: () => void;
|
|
730
732
|
onApply?: (value: Date | {
|
|
731
733
|
from: Date | null;
|
|
@@ -832,6 +834,12 @@ type BaseProps = {
|
|
|
832
834
|
containerClassName?: string;
|
|
833
835
|
placeholder?: string;
|
|
834
836
|
autoWidth?: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* When true, the picker keeps an internal "draft" selection and only commits
|
|
839
|
+
* it to `onChange` / `onApply` when the user clicks Apply. The input display
|
|
840
|
+
* remains tied to the controlled `value` prop.
|
|
841
|
+
*/
|
|
842
|
+
commitOnApply?: boolean;
|
|
835
843
|
/** Additional classes for the internal DatePicker surface. */
|
|
836
844
|
datePickerClassName?: string;
|
|
837
845
|
format?: (value: Date | {
|
|
@@ -841,7 +849,7 @@ type BaseProps = {
|
|
|
841
849
|
parse?: (text: string) => Date | null;
|
|
842
850
|
onOpenChange?: (open: boolean) => void;
|
|
843
851
|
closeOnSelect?: boolean;
|
|
844
|
-
} & Pick<DatePickerProps, "minDate" | "maxDate" | "isDateDisabled" | "isDateMarked" | "showTime" | "minuteStep" | "locale" | "labels" | "weekdayLabels" | "monthLabels" | "formatHeaderDate">;
|
|
852
|
+
} & Pick<DatePickerProps, "minDate" | "maxDate" | "isDateDisabled" | "isDateMarked" | "showTime" | "minuteStep" | "locale" | "labels" | "showFooterActions" | "weekdayLabels" | "monthLabels" | "formatHeaderDate">;
|
|
845
853
|
type SingleValue = Date | null;
|
|
846
854
|
interface SingleProps extends Omit<InputProps, "value" | "onChange" | "type" | "defaultValue">, BaseProps {
|
|
847
855
|
mode?: "single";
|
package/dist/index.d.ts
CHANGED
|
@@ -726,6 +726,8 @@ interface BaseProps$1 {
|
|
|
726
726
|
isDateMarked?: (date: Date) => boolean;
|
|
727
727
|
showTime?: boolean;
|
|
728
728
|
minuteStep?: number;
|
|
729
|
+
/** Show the Cancel/Apply footer actions. Defaults to true. */
|
|
730
|
+
showFooterActions?: boolean;
|
|
729
731
|
onCancel?: () => void;
|
|
730
732
|
onApply?: (value: Date | {
|
|
731
733
|
from: Date | null;
|
|
@@ -832,6 +834,12 @@ type BaseProps = {
|
|
|
832
834
|
containerClassName?: string;
|
|
833
835
|
placeholder?: string;
|
|
834
836
|
autoWidth?: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* When true, the picker keeps an internal "draft" selection and only commits
|
|
839
|
+
* it to `onChange` / `onApply` when the user clicks Apply. The input display
|
|
840
|
+
* remains tied to the controlled `value` prop.
|
|
841
|
+
*/
|
|
842
|
+
commitOnApply?: boolean;
|
|
835
843
|
/** Additional classes for the internal DatePicker surface. */
|
|
836
844
|
datePickerClassName?: string;
|
|
837
845
|
format?: (value: Date | {
|
|
@@ -841,7 +849,7 @@ type BaseProps = {
|
|
|
841
849
|
parse?: (text: string) => Date | null;
|
|
842
850
|
onOpenChange?: (open: boolean) => void;
|
|
843
851
|
closeOnSelect?: boolean;
|
|
844
|
-
} & Pick<DatePickerProps, "minDate" | "maxDate" | "isDateDisabled" | "isDateMarked" | "showTime" | "minuteStep" | "locale" | "labels" | "weekdayLabels" | "monthLabels" | "formatHeaderDate">;
|
|
852
|
+
} & Pick<DatePickerProps, "minDate" | "maxDate" | "isDateDisabled" | "isDateMarked" | "showTime" | "minuteStep" | "locale" | "labels" | "showFooterActions" | "weekdayLabels" | "monthLabels" | "formatHeaderDate">;
|
|
845
853
|
type SingleValue = Date | null;
|
|
846
854
|
interface SingleProps extends Omit<InputProps, "value" | "onChange" | "type" | "defaultValue">, BaseProps {
|
|
847
855
|
mode?: "single";
|