@openwebf/react-cupertino-ui 0.3.33 → 0.3.35
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.mts +222 -1
- package/dist/index.d.ts +222 -1
- package/dist/index.js +136 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -668,6 +668,113 @@ declare const FlutterCupertinoSlider: React.ForwardRefExoticComponent<FlutterCup
|
|
|
668
668
|
children?: React.ReactNode;
|
|
669
669
|
} & React.RefAttributes<FlutterCupertinoSliderElement>>;
|
|
670
670
|
|
|
671
|
+
interface FlutterCupertinoSearchTextFieldProps {
|
|
672
|
+
/**
|
|
673
|
+
* Current text value of the search field.
|
|
674
|
+
*/
|
|
675
|
+
val?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Placeholder text shown when the field is empty.
|
|
678
|
+
* Defaults to the localized "Search" string if not provided.
|
|
679
|
+
*/
|
|
680
|
+
placeholder?: string;
|
|
681
|
+
/**
|
|
682
|
+
* Whether the field should autofocus when inserted.
|
|
683
|
+
* Default: false.
|
|
684
|
+
*/
|
|
685
|
+
autofocus?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* Whether the field is disabled (non-editable and dimmed).
|
|
688
|
+
* Default: false.
|
|
689
|
+
*/
|
|
690
|
+
disabled?: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Fired whenever the text changes.
|
|
693
|
+
* detail = current value.
|
|
694
|
+
*/
|
|
695
|
+
onInput?: (event: CustomEvent<string>) => void;
|
|
696
|
+
/**
|
|
697
|
+
* Fired when the user submits the field (e.g., presses the search button).
|
|
698
|
+
* detail = current value.
|
|
699
|
+
*/
|
|
700
|
+
onSubmit?: (event: CustomEvent<string>) => void;
|
|
701
|
+
/**
|
|
702
|
+
* Fired when the field gains focus.
|
|
703
|
+
*/
|
|
704
|
+
onFocus?: (event: CustomEvent<void>) => void;
|
|
705
|
+
/**
|
|
706
|
+
* Fired when the field loses focus.
|
|
707
|
+
*/
|
|
708
|
+
onBlur?: (event: CustomEvent<void>) => void;
|
|
709
|
+
/**
|
|
710
|
+
* Fired when the text is cleared via clear() or the suffix clear button.
|
|
711
|
+
*/
|
|
712
|
+
onClear?: (event: CustomEvent<void>) => void;
|
|
713
|
+
/**
|
|
714
|
+
* HTML id attribute
|
|
715
|
+
*/
|
|
716
|
+
id?: string;
|
|
717
|
+
/**
|
|
718
|
+
* Additional CSS styles
|
|
719
|
+
*/
|
|
720
|
+
style?: React.CSSProperties;
|
|
721
|
+
/**
|
|
722
|
+
* Children elements
|
|
723
|
+
*/
|
|
724
|
+
children?: React.ReactNode;
|
|
725
|
+
/**
|
|
726
|
+
* Additional CSS class names
|
|
727
|
+
*/
|
|
728
|
+
className?: string;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Element interface with methods accessible via ref
|
|
732
|
+
* @example
|
|
733
|
+
* ```tsx
|
|
734
|
+
* const ref = useRef<FlutterCupertinoSearchTextFieldElement>(null);
|
|
735
|
+
* // Call methods on the element
|
|
736
|
+
* ref.current?.finishRefresh('success');
|
|
737
|
+
* ```
|
|
738
|
+
*/
|
|
739
|
+
interface FlutterCupertinoSearchTextFieldElement extends WebFElementWithMethods<{
|
|
740
|
+
/**
|
|
741
|
+
* Programmatically focus the search field.
|
|
742
|
+
*/
|
|
743
|
+
focus(): void;
|
|
744
|
+
/**
|
|
745
|
+
* Programmatically blur (unfocus) the search field.
|
|
746
|
+
*/
|
|
747
|
+
blur(): void;
|
|
748
|
+
/**
|
|
749
|
+
* Clear the current value. Triggers the `clear` and `input` events.
|
|
750
|
+
*/
|
|
751
|
+
clear(): void;
|
|
752
|
+
}> {
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Properties for <flutter-cupertino-search-text-field>.
|
|
756
|
+
*
|
|
757
|
+
* @example
|
|
758
|
+
* ```tsx
|
|
759
|
+
* const ref = useRef<FlutterCupertinoSearchTextFieldElement>(null);
|
|
760
|
+
*
|
|
761
|
+
* <FlutterCupertinoSearchTextField
|
|
762
|
+
* ref={ref}
|
|
763
|
+
* // Add props here
|
|
764
|
+
* >
|
|
765
|
+
* Content
|
|
766
|
+
* </FlutterCupertinoSearchTextField>
|
|
767
|
+
*
|
|
768
|
+
* // Call methods on the element
|
|
769
|
+
* ref.current?.finishRefresh('success');
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
772
|
+
declare const FlutterCupertinoSearchTextField: React.ForwardRefExoticComponent<FlutterCupertinoSearchTextFieldProps & {
|
|
773
|
+
className?: string;
|
|
774
|
+
style?: React.CSSProperties;
|
|
775
|
+
children?: React.ReactNode;
|
|
776
|
+
} & React.RefAttributes<FlutterCupertinoSearchTextFieldElement>>;
|
|
777
|
+
|
|
671
778
|
interface FlutterCupertinoRadioProps {
|
|
672
779
|
/**
|
|
673
780
|
* Value represented by this radio button.
|
|
@@ -2854,6 +2961,120 @@ declare const FlutterCupertinoFormRow: React.ForwardRefExoticComponent<FlutterCu
|
|
|
2854
2961
|
children?: React.ReactNode;
|
|
2855
2962
|
} & React.RefAttributes<FlutterCupertinoFormRowElement>>;
|
|
2856
2963
|
|
|
2964
|
+
interface FlutterCupertinoDatePickerProps {
|
|
2965
|
+
/**
|
|
2966
|
+
* Display mode of the picker.
|
|
2967
|
+
* - 'time'
|
|
2968
|
+
* - 'date'
|
|
2969
|
+
* - 'dateAndTime'
|
|
2970
|
+
* - 'monthYear'
|
|
2971
|
+
* Default: 'dateAndTime'.
|
|
2972
|
+
*/
|
|
2973
|
+
mode?: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* Minimum selectable date/time, encoded as an ISO8601 string.
|
|
2976
|
+
* Example: '2024-01-01T00:00:00.000'.
|
|
2977
|
+
*/
|
|
2978
|
+
minimumDate?: string;
|
|
2979
|
+
/**
|
|
2980
|
+
* Maximum selectable date/time, encoded as an ISO8601 string.
|
|
2981
|
+
* Example: '2025-12-31T23:59:59.000'.
|
|
2982
|
+
*/
|
|
2983
|
+
maximumDate?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* Minimum year in 'date' / 'monthYear' modes.
|
|
2986
|
+
* Default: 1.
|
|
2987
|
+
*/
|
|
2988
|
+
minimumYear?: number;
|
|
2989
|
+
/**
|
|
2990
|
+
* Maximum year in 'date' / 'monthYear' modes.
|
|
2991
|
+
* When omitted, there is no upper limit.
|
|
2992
|
+
*/
|
|
2993
|
+
maximumYear?: number;
|
|
2994
|
+
/**
|
|
2995
|
+
* Minute interval for the minutes column.
|
|
2996
|
+
* Must be a positive factor of 60. Default: 1.
|
|
2997
|
+
*/
|
|
2998
|
+
minuteInterval?: number;
|
|
2999
|
+
/**
|
|
3000
|
+
* Whether to use 24-hour format for time display.
|
|
3001
|
+
* Default: false (12-hour with AM/PM).
|
|
3002
|
+
*/
|
|
3003
|
+
use24H?: boolean;
|
|
3004
|
+
/**
|
|
3005
|
+
* Whether to show the day of week in 'date' mode.
|
|
3006
|
+
* Default: false.
|
|
3007
|
+
*/
|
|
3008
|
+
showDayOfWeek?: boolean;
|
|
3009
|
+
/**
|
|
3010
|
+
* Initial value of the picker, encoded as an ISO8601 string.
|
|
3011
|
+
* When omitted, defaults to `DateTime.now()` at the time of first build.
|
|
3012
|
+
*/
|
|
3013
|
+
value?: string;
|
|
3014
|
+
/**
|
|
3015
|
+
* Fired whenever the selected date/time changes according to
|
|
3016
|
+
* the underlying widget's change reporting behavior.
|
|
3017
|
+
* detail = ISO8601 string of the selected DateTime.
|
|
3018
|
+
*/
|
|
3019
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
3020
|
+
/**
|
|
3021
|
+
* HTML id attribute
|
|
3022
|
+
*/
|
|
3023
|
+
id?: string;
|
|
3024
|
+
/**
|
|
3025
|
+
* Additional CSS styles
|
|
3026
|
+
*/
|
|
3027
|
+
style?: React.CSSProperties;
|
|
3028
|
+
/**
|
|
3029
|
+
* Children elements
|
|
3030
|
+
*/
|
|
3031
|
+
children?: React.ReactNode;
|
|
3032
|
+
/**
|
|
3033
|
+
* Additional CSS class names
|
|
3034
|
+
*/
|
|
3035
|
+
className?: string;
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* Element interface with methods accessible via ref
|
|
3039
|
+
* @example
|
|
3040
|
+
* ```tsx
|
|
3041
|
+
* const ref = useRef<FlutterCupertinoDatePickerElement>(null);
|
|
3042
|
+
* // Call methods on the element
|
|
3043
|
+
* ref.current?.finishRefresh('success');
|
|
3044
|
+
* ```
|
|
3045
|
+
*/
|
|
3046
|
+
interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{
|
|
3047
|
+
/**
|
|
3048
|
+
* Imperatively set the current value.
|
|
3049
|
+
* The argument must be an ISO8601 string (same format as `value`).
|
|
3050
|
+
*/
|
|
3051
|
+
setValue(value: string): void;
|
|
3052
|
+
}> {
|
|
3053
|
+
}
|
|
3054
|
+
/**
|
|
3055
|
+
* Properties for <flutter-cupertino-date-picker>.
|
|
3056
|
+
*
|
|
3057
|
+
* @example
|
|
3058
|
+
* ```tsx
|
|
3059
|
+
* const ref = useRef<FlutterCupertinoDatePickerElement>(null);
|
|
3060
|
+
*
|
|
3061
|
+
* <FlutterCupertinoDatePicker
|
|
3062
|
+
* ref={ref}
|
|
3063
|
+
* // Add props here
|
|
3064
|
+
* >
|
|
3065
|
+
* Content
|
|
3066
|
+
* </FlutterCupertinoDatePicker>
|
|
3067
|
+
*
|
|
3068
|
+
* // Call methods on the element
|
|
3069
|
+
* ref.current?.finishRefresh('success');
|
|
3070
|
+
* ```
|
|
3071
|
+
*/
|
|
3072
|
+
declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<FlutterCupertinoDatePickerProps & {
|
|
3073
|
+
className?: string;
|
|
3074
|
+
style?: React.CSSProperties;
|
|
3075
|
+
children?: React.ReactNode;
|
|
3076
|
+
} & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
|
|
3077
|
+
|
|
2857
3078
|
/**
|
|
2858
3079
|
* Properties for <flutter-cupertino-context-menu>.
|
|
2859
3080
|
* Wraps Flutter's CupertinoContextMenu.
|
|
@@ -3398,4 +3619,4 @@ declare const FlutterCupertinoActionSheet: React.ForwardRefExoticComponent<Flutt
|
|
|
3398
3619
|
children?: React.ReactNode;
|
|
3399
3620
|
} & React.RefAttributes<FlutterCupertinoActionSheetElement>>;
|
|
3400
3621
|
|
|
3401
|
-
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextFormFieldRow, type FlutterCupertinoTextFormFieldRowElement };
|
|
3622
|
+
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoDatePicker, type FlutterCupertinoDatePickerElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSearchTextField, type FlutterCupertinoSearchTextFieldElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextFormFieldRow, type FlutterCupertinoTextFormFieldRowElement };
|
package/dist/index.d.ts
CHANGED
|
@@ -668,6 +668,113 @@ declare const FlutterCupertinoSlider: React.ForwardRefExoticComponent<FlutterCup
|
|
|
668
668
|
children?: React.ReactNode;
|
|
669
669
|
} & React.RefAttributes<FlutterCupertinoSliderElement>>;
|
|
670
670
|
|
|
671
|
+
interface FlutterCupertinoSearchTextFieldProps {
|
|
672
|
+
/**
|
|
673
|
+
* Current text value of the search field.
|
|
674
|
+
*/
|
|
675
|
+
val?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Placeholder text shown when the field is empty.
|
|
678
|
+
* Defaults to the localized "Search" string if not provided.
|
|
679
|
+
*/
|
|
680
|
+
placeholder?: string;
|
|
681
|
+
/**
|
|
682
|
+
* Whether the field should autofocus when inserted.
|
|
683
|
+
* Default: false.
|
|
684
|
+
*/
|
|
685
|
+
autofocus?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* Whether the field is disabled (non-editable and dimmed).
|
|
688
|
+
* Default: false.
|
|
689
|
+
*/
|
|
690
|
+
disabled?: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Fired whenever the text changes.
|
|
693
|
+
* detail = current value.
|
|
694
|
+
*/
|
|
695
|
+
onInput?: (event: CustomEvent<string>) => void;
|
|
696
|
+
/**
|
|
697
|
+
* Fired when the user submits the field (e.g., presses the search button).
|
|
698
|
+
* detail = current value.
|
|
699
|
+
*/
|
|
700
|
+
onSubmit?: (event: CustomEvent<string>) => void;
|
|
701
|
+
/**
|
|
702
|
+
* Fired when the field gains focus.
|
|
703
|
+
*/
|
|
704
|
+
onFocus?: (event: CustomEvent<void>) => void;
|
|
705
|
+
/**
|
|
706
|
+
* Fired when the field loses focus.
|
|
707
|
+
*/
|
|
708
|
+
onBlur?: (event: CustomEvent<void>) => void;
|
|
709
|
+
/**
|
|
710
|
+
* Fired when the text is cleared via clear() or the suffix clear button.
|
|
711
|
+
*/
|
|
712
|
+
onClear?: (event: CustomEvent<void>) => void;
|
|
713
|
+
/**
|
|
714
|
+
* HTML id attribute
|
|
715
|
+
*/
|
|
716
|
+
id?: string;
|
|
717
|
+
/**
|
|
718
|
+
* Additional CSS styles
|
|
719
|
+
*/
|
|
720
|
+
style?: React.CSSProperties;
|
|
721
|
+
/**
|
|
722
|
+
* Children elements
|
|
723
|
+
*/
|
|
724
|
+
children?: React.ReactNode;
|
|
725
|
+
/**
|
|
726
|
+
* Additional CSS class names
|
|
727
|
+
*/
|
|
728
|
+
className?: string;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Element interface with methods accessible via ref
|
|
732
|
+
* @example
|
|
733
|
+
* ```tsx
|
|
734
|
+
* const ref = useRef<FlutterCupertinoSearchTextFieldElement>(null);
|
|
735
|
+
* // Call methods on the element
|
|
736
|
+
* ref.current?.finishRefresh('success');
|
|
737
|
+
* ```
|
|
738
|
+
*/
|
|
739
|
+
interface FlutterCupertinoSearchTextFieldElement extends WebFElementWithMethods<{
|
|
740
|
+
/**
|
|
741
|
+
* Programmatically focus the search field.
|
|
742
|
+
*/
|
|
743
|
+
focus(): void;
|
|
744
|
+
/**
|
|
745
|
+
* Programmatically blur (unfocus) the search field.
|
|
746
|
+
*/
|
|
747
|
+
blur(): void;
|
|
748
|
+
/**
|
|
749
|
+
* Clear the current value. Triggers the `clear` and `input` events.
|
|
750
|
+
*/
|
|
751
|
+
clear(): void;
|
|
752
|
+
}> {
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Properties for <flutter-cupertino-search-text-field>.
|
|
756
|
+
*
|
|
757
|
+
* @example
|
|
758
|
+
* ```tsx
|
|
759
|
+
* const ref = useRef<FlutterCupertinoSearchTextFieldElement>(null);
|
|
760
|
+
*
|
|
761
|
+
* <FlutterCupertinoSearchTextField
|
|
762
|
+
* ref={ref}
|
|
763
|
+
* // Add props here
|
|
764
|
+
* >
|
|
765
|
+
* Content
|
|
766
|
+
* </FlutterCupertinoSearchTextField>
|
|
767
|
+
*
|
|
768
|
+
* // Call methods on the element
|
|
769
|
+
* ref.current?.finishRefresh('success');
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
772
|
+
declare const FlutterCupertinoSearchTextField: React.ForwardRefExoticComponent<FlutterCupertinoSearchTextFieldProps & {
|
|
773
|
+
className?: string;
|
|
774
|
+
style?: React.CSSProperties;
|
|
775
|
+
children?: React.ReactNode;
|
|
776
|
+
} & React.RefAttributes<FlutterCupertinoSearchTextFieldElement>>;
|
|
777
|
+
|
|
671
778
|
interface FlutterCupertinoRadioProps {
|
|
672
779
|
/**
|
|
673
780
|
* Value represented by this radio button.
|
|
@@ -2854,6 +2961,120 @@ declare const FlutterCupertinoFormRow: React.ForwardRefExoticComponent<FlutterCu
|
|
|
2854
2961
|
children?: React.ReactNode;
|
|
2855
2962
|
} & React.RefAttributes<FlutterCupertinoFormRowElement>>;
|
|
2856
2963
|
|
|
2964
|
+
interface FlutterCupertinoDatePickerProps {
|
|
2965
|
+
/**
|
|
2966
|
+
* Display mode of the picker.
|
|
2967
|
+
* - 'time'
|
|
2968
|
+
* - 'date'
|
|
2969
|
+
* - 'dateAndTime'
|
|
2970
|
+
* - 'monthYear'
|
|
2971
|
+
* Default: 'dateAndTime'.
|
|
2972
|
+
*/
|
|
2973
|
+
mode?: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* Minimum selectable date/time, encoded as an ISO8601 string.
|
|
2976
|
+
* Example: '2024-01-01T00:00:00.000'.
|
|
2977
|
+
*/
|
|
2978
|
+
minimumDate?: string;
|
|
2979
|
+
/**
|
|
2980
|
+
* Maximum selectable date/time, encoded as an ISO8601 string.
|
|
2981
|
+
* Example: '2025-12-31T23:59:59.000'.
|
|
2982
|
+
*/
|
|
2983
|
+
maximumDate?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* Minimum year in 'date' / 'monthYear' modes.
|
|
2986
|
+
* Default: 1.
|
|
2987
|
+
*/
|
|
2988
|
+
minimumYear?: number;
|
|
2989
|
+
/**
|
|
2990
|
+
* Maximum year in 'date' / 'monthYear' modes.
|
|
2991
|
+
* When omitted, there is no upper limit.
|
|
2992
|
+
*/
|
|
2993
|
+
maximumYear?: number;
|
|
2994
|
+
/**
|
|
2995
|
+
* Minute interval for the minutes column.
|
|
2996
|
+
* Must be a positive factor of 60. Default: 1.
|
|
2997
|
+
*/
|
|
2998
|
+
minuteInterval?: number;
|
|
2999
|
+
/**
|
|
3000
|
+
* Whether to use 24-hour format for time display.
|
|
3001
|
+
* Default: false (12-hour with AM/PM).
|
|
3002
|
+
*/
|
|
3003
|
+
use24H?: boolean;
|
|
3004
|
+
/**
|
|
3005
|
+
* Whether to show the day of week in 'date' mode.
|
|
3006
|
+
* Default: false.
|
|
3007
|
+
*/
|
|
3008
|
+
showDayOfWeek?: boolean;
|
|
3009
|
+
/**
|
|
3010
|
+
* Initial value of the picker, encoded as an ISO8601 string.
|
|
3011
|
+
* When omitted, defaults to `DateTime.now()` at the time of first build.
|
|
3012
|
+
*/
|
|
3013
|
+
value?: string;
|
|
3014
|
+
/**
|
|
3015
|
+
* Fired whenever the selected date/time changes according to
|
|
3016
|
+
* the underlying widget's change reporting behavior.
|
|
3017
|
+
* detail = ISO8601 string of the selected DateTime.
|
|
3018
|
+
*/
|
|
3019
|
+
onChange?: (event: CustomEvent<string>) => void;
|
|
3020
|
+
/**
|
|
3021
|
+
* HTML id attribute
|
|
3022
|
+
*/
|
|
3023
|
+
id?: string;
|
|
3024
|
+
/**
|
|
3025
|
+
* Additional CSS styles
|
|
3026
|
+
*/
|
|
3027
|
+
style?: React.CSSProperties;
|
|
3028
|
+
/**
|
|
3029
|
+
* Children elements
|
|
3030
|
+
*/
|
|
3031
|
+
children?: React.ReactNode;
|
|
3032
|
+
/**
|
|
3033
|
+
* Additional CSS class names
|
|
3034
|
+
*/
|
|
3035
|
+
className?: string;
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* Element interface with methods accessible via ref
|
|
3039
|
+
* @example
|
|
3040
|
+
* ```tsx
|
|
3041
|
+
* const ref = useRef<FlutterCupertinoDatePickerElement>(null);
|
|
3042
|
+
* // Call methods on the element
|
|
3043
|
+
* ref.current?.finishRefresh('success');
|
|
3044
|
+
* ```
|
|
3045
|
+
*/
|
|
3046
|
+
interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{
|
|
3047
|
+
/**
|
|
3048
|
+
* Imperatively set the current value.
|
|
3049
|
+
* The argument must be an ISO8601 string (same format as `value`).
|
|
3050
|
+
*/
|
|
3051
|
+
setValue(value: string): void;
|
|
3052
|
+
}> {
|
|
3053
|
+
}
|
|
3054
|
+
/**
|
|
3055
|
+
* Properties for <flutter-cupertino-date-picker>.
|
|
3056
|
+
*
|
|
3057
|
+
* @example
|
|
3058
|
+
* ```tsx
|
|
3059
|
+
* const ref = useRef<FlutterCupertinoDatePickerElement>(null);
|
|
3060
|
+
*
|
|
3061
|
+
* <FlutterCupertinoDatePicker
|
|
3062
|
+
* ref={ref}
|
|
3063
|
+
* // Add props here
|
|
3064
|
+
* >
|
|
3065
|
+
* Content
|
|
3066
|
+
* </FlutterCupertinoDatePicker>
|
|
3067
|
+
*
|
|
3068
|
+
* // Call methods on the element
|
|
3069
|
+
* ref.current?.finishRefresh('success');
|
|
3070
|
+
* ```
|
|
3071
|
+
*/
|
|
3072
|
+
declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<FlutterCupertinoDatePickerProps & {
|
|
3073
|
+
className?: string;
|
|
3074
|
+
style?: React.CSSProperties;
|
|
3075
|
+
children?: React.ReactNode;
|
|
3076
|
+
} & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
|
|
3077
|
+
|
|
2857
3078
|
/**
|
|
2858
3079
|
* Properties for <flutter-cupertino-context-menu>.
|
|
2859
3080
|
* Wraps Flutter's CupertinoContextMenu.
|
|
@@ -3398,4 +3619,4 @@ declare const FlutterCupertinoActionSheet: React.ForwardRefExoticComponent<Flutt
|
|
|
3398
3619
|
children?: React.ReactNode;
|
|
3399
3620
|
} & React.RefAttributes<FlutterCupertinoActionSheetElement>>;
|
|
3400
3621
|
|
|
3401
|
-
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextFormFieldRow, type FlutterCupertinoTextFormFieldRowElement };
|
|
3622
|
+
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoDatePicker, type FlutterCupertinoDatePickerElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSearchTextField, type FlutterCupertinoSearchTextFieldElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextFormFieldRow, type FlutterCupertinoTextFormFieldRowElement };
|