diff --git a/gradle.properties b/gradle.properties index b3fa4a3cb4519..f43ec15ebc527 100644 --- a/gradle.properties +++ b/gradle.properties @@ -109,7 +109,7 @@ mui-system.npm.version=5.16.13 mui-lab.npm.version=5.0.0-alpha.175 # https://www.npmjs.com/package/@mui/x-date-pickers -muix-date-pickers.npm.version=5.0.20 +muix-date-pickers.npm.version=7.23.2 # https://www.npmjs.com/package/@mui/x-tree-view muix-tree-view.npm.version=7.23.2 diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.kt deleted file mode 100644 index 3c4e3007a9ca3..0000000000000 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.kt +++ /dev/null @@ -1,116 +0,0 @@ -// Automatically generated - do not modify! - -@file:JsModule("@mui/x-date-pickers/CalendarPicker") - -package muix.pickers - -import js.array.ReadonlyArray -import js.core.Void -import js.promise.Promise -import web.cssom.ClassName - -external interface CalendarPickerProps : react.PropsWithClassName { - var autoFocus: Boolean? - - override var className: ClassName? - - var classes: CalendarPickerClasses? - - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: CalendarPickerSlotsComponentsProps? - - var date: TDate? - - /** - * Default calendar month displayed when `value={null}`. - */ - var defaultCalendarMonth: TDate? - - /** - * If `true`, the picker and text field are disabled. - * @default false - */ - var disabled: Boolean? - - /** - * Callback fired on view change. - * @param {CalendarPickerView} view The new view. - */ - var onViewChange: ((view: CalendarPickerView) -> Unit)? - - /** - * Callback fired on date change - */ - var onChange: PickerOnChangeFn - - /** - * Initially open view. - * @default 'day' - */ - var openTo: CalendarPickerView? - - /** - * Make picker read only. - * @default false - */ - var readOnly: Boolean? - - /** - * Disable heavy animations. - * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent) - */ - var reduceAnimations: Boolean? - - /** - * Component displaying when passed `loading` true. - * @returns {React.ReactNode} The node to render when loading. - * @default () => ... - */ - var renderLoading: (() -> react.ReactNode)? - - /** - * Controlled open view. - */ - var view: CalendarPickerView? - - /** - * Views for calendar picker. - * @default ['year', 'day'] - */ - var views: ReadonlyArray? - - /** - * Callback firing on year change @DateIOType. - * @template TDate - * @param {TDate} year The new year. - */ - var onYearChange: ((year: TDate) -> Unit)? - - /** - * Callback firing on month change @DateIOType. - * @template TDate - * @param {TDate} month The new month. - * @returns {void|Promise} - - */ - var onMonthChange: ((month: TDate) -> Promise?)? - - var focusedView: CalendarPickerView? - - var onFocusedViewChange: ((view: CalendarPickerView) -> (newHasFocus: Boolean) -> Unit)? -} - -external interface CalendarPickerSlotsComponent - -external interface CalendarPickerSlotsComponentsProps : react.Props - - -external val CalendarPicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.kt deleted file mode 100644 index 554d16bd6af5d..0000000000000 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.kt +++ /dev/null @@ -1,161 +0,0 @@ -// Automatically generated - do not modify! - -@file:JsModule("@mui/x-date-pickers/ClockPicker") - -package muix.pickers - -import web.cssom.ClassName - -external interface ClockPickerProps : react.PropsWithClassName { - override var className: ClassName? - - /** - * Set to `true` if focus should be moved to clock picker. - */ - var autoFocus: Boolean? - - /** - * Override or extend the styles applied to the component. - */ - var classes: ClockPickerClasses? - - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: ClockPickerSlotsComponentsProps? - - /** - * Selected date @DateIOType. - */ - var date: TDate? - - /** - * Get clock number aria-text for hours. - * @param {string} hours The hours to format. - * @returns {string} the formatted hours text. - * @default (hours: string) => `${hours} hours` - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - */ - var getHoursClockNumberText: ((hours: String) -> String)? - - /** - * Get clock number aria-text for minutes. - * @param {string} minutes The minutes to format. - * @returns {string} the formatted minutes text. - * @default (minutes: string) => `${minutes} minutes` - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - */ - var getMinutesClockNumberText: ((minutes: String) -> String)? - - /** - * Get clock number aria-text for seconds. - * @param {string} seconds The seconds to format. - * @returns {string} the formatted seconds text. - * @default (seconds: string) => `${seconds} seconds` - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - */ - var getSecondsClockNumberText: ((seconds: String) -> String)? - - /** - * Left arrow icon aria-label text. - * @default 'open previous view' - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - */ - var leftArrowButtonText: String? - - /** - * On change callback @DateIOType. - */ - var onChange: PickerOnChangeFn - - /** - * Right arrow icon aria-label text. - * @default 'open next view' - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - */ - var rightArrowButtonText: String? - - var showViewSwitcher: Boolean? - - /** - * Controlled open view. - */ - var view: dynamic - - /** - * Views for calendar picker. - * @default ['hours', 'minutes'] - */ - var views: dynamic - - /** - * Callback fired on view change. - * @param {ClockPickerView} view The new view. - */ - var onViewChange: ((view: ClockPickerView) -> Unit)? - - /** - * Initially open view. - * @default 'hours' - */ - var openTo: dynamic - - /** - * If `true`, the picker and text field are disabled. - * @default false - */ - var disabled: Boolean? - - /** - * Make picker read only. - * @default false - */ - var readOnly: Boolean? -} - -external interface ExportedClockPickerProps : react.Props { - /** - * 12h/24h view for hour selection clock. - * @default false - */ - var ampm: Boolean? - - /** - * Display ampm controls under the clock (instead of in the toolbar). - * @default false - */ - var ampmInClock: Boolean? - - /** - * Accessible text that helps user to understand which time and view is selected. - * @template TDate - * @param {ClockPickerView} view The current view rendered. - * @param {TDate | null} time The current time. - * @param {MuiPickersAdapter} adapter The current date adapter. - * @returns {string} The clock label. - * @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization/. - * @default ( - * view: ClockView, - * time: TDate | null, - * adapter: MuiPickersAdapter, - * ) => - * `Select ${view}. ${ - * time === null ? 'No time selected' : `Selected time is ${adapter.format(time, 'fullTime')}` - * }` - */ - var getClockLabelText: ((view: ClockPickerView, time: TDate?, adapter: Any /* MuiPickersAdapter */) -> String)? -} - -external interface ClockPickerSlotsComponent - -external interface ClockPickerSlotsComponentsProps : react.Props - - -external val ClockPicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.classes.kt similarity index 62% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.classes.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.classes.kt index d0a6be17f53c0..ee4bbf520e303 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPicker.classes.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.classes.kt @@ -1,12 +1,12 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/CalendarPicker") +@file:JsModule("@mui/x-date-pickers/DateCalendar") package muix.pickers import web.cssom.ClassName -sealed external interface CalendarPickerClasses { +sealed external interface DateCalendarClasses { /** Styles applied to the root element. */ val root: ClassName @@ -14,4 +14,4 @@ sealed external interface CalendarPickerClasses { val viewTransitionContainer: ClassName } -external val calendarPickerClasses: CalendarPickerClasses +external val dateCalendarClasses: DateCalendarClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.kt new file mode 100644 index 0000000000000..dae3b20653e31 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/DateCalendar") + +package muix.pickers + + +external val DateCalendar: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.types.kt new file mode 100644 index 0000000000000..1a26b5fed4bfe --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateCalendar.types.kt @@ -0,0 +1,107 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface DateCalendarProps : + react.PropsWithClassName, + mui.system.PropsWithSx { + /** + * The selected value. + * Used when the component is controlled. + */ + var value: TDate? + + /** + * The default selected value. + * Used when the component is not controlled. + */ + var defaultValue: TDate? + + /** + * The date used to generate the new value when both `value` and `defaultValue` are empty. + * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. + */ + var referenceDate: TDate? + + override var className: ClassName? + + /** + * Override or extend the styles applied to the component. + */ + var classes: DateCalendarClasses? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + override var sx: SxProps? + + /** + * Overridable component slots. + * @default {} + */ + var slots: DateCalendarSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DateCalendarSlotProps? +} + +external interface DateCalendarSlots { + /** + * Custom component for calendar header. + * Check the [PickersCalendarHeader](https://mui.com/x/api/date-pickers/pickers-calendar-header/) component. + * @default PickersCalendarHeader + */ + var calendarHeader: react.ElementType>? +} + +external interface DateCalendarSlotProps : react.Props { + var calendarHeader: react.Props? +} + +external interface ExportedDateCalendarProps : react.Props { + /** + * If `true`, the picker and text field are disabled. + * @default false + */ + var disabled: Boolean? + + /** + * Make picker read only. + * @default false + */ + var readOnly: Boolean? + + /** + * If `true`, disable heavy animations. + * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13 + */ + var reduceAnimations: Boolean? + + /** + * Component displaying when passed `loading` true. + * @returns {React.ReactNode} The node to render when loading. + * @default () => ... + */ + var renderLoading: (() -> react.ReactNode)? + + /** + * Callback fired on year change. + * @template TDate + * @param {TDate} year The new year. + */ + var onYearChange: ((year: TDate) -> Unit)? + + /** + * Callback fired on month change. + * @template TDate + * @param {TDate} month The new month. + */ + var onMonthChange: ((month: TDate) -> Unit)? +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateField.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateField.kt index 2cf73cfc9f9b5..d062fbf150769 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateField.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateField.kt @@ -6,5 +6,14 @@ package muix.pickers external interface DateFieldProps : react.Props - +/** + * Demos: + * + * - [DateField](http://mui.com/x/react-date-pickers/date-field/) + * - [Fields](https://mui.com/x/react-date-pickers/fields/) + * + * API: + * + * - [DateField API](https://mui.com/x/api/date-pickers/date-field/) + */ external val DateField: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.kt index b82bd02d7a010..63cf0ec41deb2 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.kt @@ -4,30 +4,14 @@ package muix.pickers -external interface DatePickerProps : react.Props { - /** - * CSS media query when `Mobile` mode will be changed to `Desktop`. - * @default '@media (pointer: fine)' - * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") - */ - var desktopModeMediaQuery: String? - - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: DatePickerSlotsComponentsProps? -} - -external interface DatePickerSlotsComponent - -external interface DatePickerSlotsComponentsProps : react.Props - - -external val DatePicker: react.FC +/** + * Demos: + * + * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/) + */ +external val DatePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.types.kt new file mode 100644 index 0000000000000..05a20abcbd816 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DatePicker.types.kt @@ -0,0 +1,34 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DatePickerProps : react.Props { + /** + * CSS media query when `Mobile` mode will be changed to `Desktop`. + * @default '@media (pointer: fine)' + * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") + */ + var desktopModeMediaQuery: String? + + /** + * Overridable component slots. + * @default {} + */ + var slots: DatePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DatePickerSlotProps? + + /** + * Years rendered per row. + * @default 4 on desktop, 3 on mobile + */ + var yearsPerRow: dynamic +} + +external interface DatePickerSlots + +external interface DatePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.kt index acd17c791ef58..5649739b70ed8 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.kt @@ -4,30 +4,14 @@ package muix.pickers -external interface DateTimePickerProps : react.Props { - /** - * CSS media query when `Mobile` mode will be changed to `Desktop`. - * @default '@media (pointer: fine)' - * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") - */ - var desktopModeMediaQuery: String? - - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: DateTimePickerSlotsComponentsProps? -} - -external interface DateTimePickerSlotsComponent - -external interface DateTimePickerSlotsComponentsProps : react.Props - - -external val DateTimePicker: react.FC +/** + * Demos: + * + * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [DateTimePicker API](https://mui.com/x/api/date-pickers/date-time-picker/) + */ +external val DateTimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.types.kt new file mode 100644 index 0000000000000..e8ed8b3f93565 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DateTimePicker.types.kt @@ -0,0 +1,34 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DateTimePickerProps : react.Props { + /** + * CSS media query when `Mobile` mode will be changed to `Desktop`. + * @default '@media (pointer: fine)' + * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") + */ + var desktopModeMediaQuery: String? + + /** + * Overridable component slots. + * @default {} + */ + var slots: DateTimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DateTimePickerSlotProps? + + /** + * Years rendered per row. + * @default 4 on desktop, 3 on mobile + */ + var yearsPerRow: dynamic +} + +external interface DateTimePickerSlots + +external interface DateTimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.classes.kt similarity index 62% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.classes.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.classes.kt index e43739ebe7954..9b8180014efb4 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.classes.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.classes.kt @@ -1,12 +1,12 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/CalendarPickerSkeleton") +@file:JsModule("@mui/x-date-pickers/DayCalendarSkeleton") package muix.pickers import web.cssom.ClassName -sealed external interface CalendarPickerSkeletonClasses { +sealed external interface DayCalendarSkeletonClasses { /** Styles applied to the root element. */ val root: ClassName @@ -17,4 +17,4 @@ sealed external interface CalendarPickerSkeletonClasses { val daySkeleton: ClassName } -external val calendarPickerSkeletonClasses: CalendarPickerSkeletonClasses +external val dayCalendarSkeletonClasses: DayCalendarSkeletonClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.kt similarity index 65% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.kt index a4279a0014d43..e62efb3eb3eb3 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/CalendarPickerSkeleton.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DayCalendarSkeleton.kt @@ -1,19 +1,19 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/CalendarPickerSkeleton") +@file:JsModule("@mui/x-date-pickers/DayCalendarSkeleton") package muix.pickers import mui.material.styles.Theme import mui.system.SxProps -external interface CalendarPickerSkeletonProps : +external interface DayCalendarSkeletonProps : react.dom.html.HTMLAttributes, mui.system.PropsWithSx { /** * Override or extend the styles applied to the component. */ - var classes: CalendarPickerSkeletonClasses? + var classes: DayCalendarSkeletonClasses? /** * The system prop that allows defining system overrides as well as additional CSS styles. @@ -22,13 +22,12 @@ external interface CalendarPickerSkeletonProps : } /** - * * Demos: * - * - [Date Picker](https://mui.com/x/react-date-pickers/date-picker/) + * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/) * * API: * * - [CalendarPickerSkeleton API](https://mui.com/x/api/date-pickers/calendar-picker-skeleton/) */ -external val CalendarPickerSkeleton: react.FC +external val DayCalendarSkeleton: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.kt index a657ec3305706..50435f64248c6 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface DesktopDatePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: DesktopDatePickerSlotsComponentsProps? -} - -external interface DesktopDatePickerSlotsComponent - -external interface DesktopDatePickerSlotsComponentsProps : react.Props - - -external val DesktopDatePicker: react.FC +/** + * Demos: + * + * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/) + */ +external val DesktopDatePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.types.kt new file mode 100644 index 0000000000000..ad23d58db319d --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDatePicker.types.kt @@ -0,0 +1,27 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DesktopDatePickerProps : react.Props { + /** + * Overridable component slots. + * @default {} + */ + var slots: DesktopDatePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DesktopDatePickerSlotProps? + + /** + * Years rendered per row. + * @default 4 + */ + var yearsPerRow: dynamic +} + +external interface DesktopDatePickerSlots + +external interface DesktopDatePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.kt index fe70191c4164e..676419b8215e7 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface DesktopDateTimePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: DesktopDateTimePickerSlotsComponentsProps? -} - -external interface DesktopDateTimePickerSlotsComponent - -external interface DesktopDateTimePickerSlotsComponentsProps : react.Props - - -external val DesktopDateTimePicker: react.FC +/** + * Demos: + * + * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [DesktopDateTimePicker API](https://mui.com/x/api/date-pickers/desktop-date-time-picker/) + */ +external val DesktopDateTimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.types.kt new file mode 100644 index 0000000000000..9ed7af949ec0e --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopDateTimePicker.types.kt @@ -0,0 +1,32 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DesktopDateTimePickerProps : react.Props { + /** + * Overridable component slots. + * @default {} + */ + var slots: DesktopDateTimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DesktopDateTimePickerSlotProps? + + /** + * Available views. + */ + var views: dynamic + + /** + * Years rendered per row. + * @default 4 + */ + var yearsPerRow: dynamic +} + +external interface DesktopDateTimePickerSlots + +external interface DesktopDateTimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.kt index f7e4352f41171..2e8236dd6d921 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface DesktopTimePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: DesktopTimePickerSlotsComponentsProps? -} - -external interface DesktopTimePickerSlotsComponent - -external interface DesktopTimePickerSlotsComponentsProps : react.Props - - -external val DesktopTimePicker: react.FC +/** + * Demos: + * + * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [DesktopTimePicker API](https://mui.com/x/api/date-pickers/desktop-time-picker/) + */ +external val DesktopTimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.types.kt new file mode 100644 index 0000000000000..d6cb79e1adcaf --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DesktopTimePicker.types.kt @@ -0,0 +1,26 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DesktopTimePickerProps : react.Props { + /** + * Available views. + */ + var views: dynamic + + /** + * Overridable component slots. + * @default {} + */ + var slots: DesktopTimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DesktopTimePickerSlotProps? +} + +external interface DesktopTimePickerSlots + +external interface DesktopTimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.classes.kt new file mode 100644 index 0000000000000..9f5b6cfa78570 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.classes.kt @@ -0,0 +1,20 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/DigitalClock") + +package muix.pickers + +import web.cssom.ClassName + +sealed external interface DigitalClockClasses { + /** Styles applied to the root element. */ + val root: ClassName + + /** Styles applied to the list (by default: MenuList) element. */ + val list: ClassName + + /** Styles applied to the list item (by default: MenuItem) element. */ + val item: ClassName +} + +external val digitalClockClasses: DigitalClockClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.kt new file mode 100644 index 0000000000000..f9e9789985238 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/DigitalClock") + +package muix.pickers + + +external val DigitalClock: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.types.kt new file mode 100644 index 0000000000000..e96aec5cdddb0 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/DigitalClock.types.kt @@ -0,0 +1,42 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface DigitalClockProps : react.Props { + /** + * Available views. + * @default ['hours'] + */ + var views: dynamic + + /** + * Override or extend the styles applied to the component. + */ + var classes: DigitalClockClasses? + + /** + * Overrideable component slots. + * @default {} + */ + var slots: DigitalClockSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: DigitalClockSlotProps? +} + +external interface ExportedDigitalClockProps : react.Props + +external interface DigitalClockSlots { + /** + * Component responsible for rendering a single digital clock item. + * @default MenuItem from '@mui/material' + */ + var digitalClockItem: react.ElementType<*>? +} + +external interface DigitalClockSlotProps : react.Props { + var digitalClockItem: react.Props? +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/LocalizationProvider.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/LocalizationProvider.kt index 134469f25f92d..0a54ad59ad2d5 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/LocalizationProvider.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/LocalizationProvider.kt @@ -4,11 +4,14 @@ package muix.pickers -external interface LocalizationProviderProps : react.PropsWithChildren { +external interface LocalizationProviderProps : react.PropsWithChildren { override var children: react.ReactNode? - /** DateIO adapter class function */ - var dateAdapter: DateAdapter /* new (...args: any) => MuiPickersAdapter */ + /** + * Date library adapter class function. + * @see See the localization provider {@link https://mui.com/x/react-date-pickers/getting-started/#setup-your-date-library-adapter date adapter setup section} for more details. + */ + var dateAdapter: DateAdapter? /* new (...args: any) => MuiPickersAdapter */ /** Formats that are used for any child pickers */ var dateFormats: dynamic @@ -21,12 +24,8 @@ external interface LocalizationProviderProps : react.PropsWithChildren { */ var dateLibInstance: Any? - /** Locale for the date library you are using - * @deprecated Use `adapterLocale` instead - */ - var locale: dynamic - - /** Locale for the date library you are using + /** + * Locale for the date library you are using */ var adapterLocale: dynamic @@ -45,4 +44,4 @@ external interface MuiPickersAdapterContextValue { } -external val LocalizationProvider: react.FC +external val LocalizationProvider: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.kt index ff832aba3ec10..3dd510d57f52f 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface MobileDatePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: MobileDatePickerSlotsComponentsProps? -} - -external interface MobileDatePickerSlotsComponent - -external interface MobileDatePickerSlotsComponentsProps : react.Props - - -external val MobileDatePicker: react.FC +/** + * Demos: + * + * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/) + */ +external val MobileDatePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.types.kt new file mode 100644 index 0000000000000..4fb2bda7968a0 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDatePicker.types.kt @@ -0,0 +1,27 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface MobileDatePickerProps : react.Props { + /** + * Overridable component slots. + * @default {} + */ + var slots: MobileDatePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: MobileDatePickerSlotProps? + + /** + * Years rendered per row. + * @default 3 + */ + var yearsPerRow: dynamic +} + +external interface MobileDatePickerSlots + +external interface MobileDatePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.kt index 28e798d47aca8..890108e5e02b6 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface MobileDateTimePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: MobileDateTimePickerSlotsComponentsProps? -} - -external interface MobileDateTimePickerSlotsComponent - -external interface MobileDateTimePickerSlotsComponentsProps : react.Props - - -external val MobileDateTimePicker: react.FC +/** + * Demos: + * + * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [MobileDateTimePicker API](https://mui.com/x/api/date-pickers/mobile-date-time-picker/) + */ +external val MobileDateTimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.types.kt new file mode 100644 index 0000000000000..5e46640196083 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileDateTimePicker.types.kt @@ -0,0 +1,21 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface MobileDateTimePickerProps : react.Props { + /** + * Overridable component slots. + * @default {} + */ + var slots: MobileDateTimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: MobileDateTimePickerSlotProps? +} + +external interface MobileDateTimePickerSlots + +external interface MobileDateTimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.kt index 9346f6bcdf2cf..7d448782586f8 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.kt @@ -4,23 +4,14 @@ package muix.pickers -external interface MobileTimePickerProps : react.Props { - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: MobileTimePickerSlotsComponentsProps? -} - -external interface MobileTimePickerSlotsComponent - -external interface MobileTimePickerSlotsComponentsProps : react.Props - - -external val MobileTimePicker: react.FC +/** + * Demos: + * + * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [MobileTimePicker API](https://mui.com/x/api/date-pickers/mobile-time-picker/) + */ +external val MobileTimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.types.kt new file mode 100644 index 0000000000000..0d9ced993a060 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MobileTimePicker.types.kt @@ -0,0 +1,21 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface MobileTimePickerProps : react.Props { + /** + * Overridable component slots. + * @default {} + */ + var slots: MobileTimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: MobileTimePickerSlotProps? +} + +external interface MobileTimePickerSlots + +external interface MobileTimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.classes.kt similarity index 51% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.classes.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.classes.kt index 068a982f32fa7..1b2d9ac0c0692 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.classes.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.classes.kt @@ -1,14 +1,14 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/MonthPicker") +@file:JsModule("@mui/x-date-pickers/MonthCalendar") package muix.pickers import web.cssom.ClassName -sealed external interface MonthPickerClasses { +sealed external interface MonthCalendarClasses { /** Styles applied to the root element. */ val root: ClassName } -external val monthPickerClasses: MonthPickerClasses +external val monthCalendarClasses: MonthCalendarClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.kt new file mode 100644 index 0000000000000..5ff1d3d15b570 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/MonthCalendar") + +package muix.pickers + + +external val MonthCalendar: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.types.kt new file mode 100644 index 0000000000000..59063983850d5 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthCalendar.types.kt @@ -0,0 +1,102 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface MonthCalendarProps : + react.PropsWithClassName, + mui.system.PropsWithSx { + var autoFocus: Boolean? + + override var className: ClassName? + + /** + * Override or extend the styles applied to the component. + */ + var classes: MonthCalendarClasses? + + /** + * Overridable component slots. + * @default {} + */ + var slots: MonthCalendarSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: MonthCalendarSlotProps? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + override var sx: SxProps? + + /** If `true` picker is disabled */ + var disabled: Boolean? + + /** + * The selected value. + * Used when the component is controlled. + */ + var value: TDate? + + /** + * The default selected value. + * Used when the component is not controlled. + */ + var defaultValue: TDate? + + /** + * The date used to generate the new value when both `value` and `defaultValue` are empty. + * @default The closest valid month using the validation props, except callbacks such as `shouldDisableMonth`. + */ + var referenceDate: TDate? + + /** + * Callback fired when the value changes. + * @template TDate + * @param {TDate} value The new value. + */ + var onChange: ((value: TDate) -> Unit)? + + /** If `true` picker is readonly */ + var readOnly: Boolean? + + /** + * If `true`, today's date is rendering without highlighting with circle. + * @default false + */ + var disableHighlightToday: Boolean? + + var onMonthFocus: ((month: Number) -> Unit)? + + var hasFocus: Boolean? + + var onFocusedViewChange: ((hasFocus: Boolean) -> Unit)? + + var gridLabelId: String? +} + +external interface MonthCalendarSlots { + /** + * Button displayed to render a single month in the `month` view. + * @default MonthCalendarButton + */ + var monthButton: react.ElementType<*>? +} + +external interface MonthCalendarSlotProps : react.Props { + var monthButton: react.Props? +} + +external interface ExportedMonthCalendarProps : react.Props { + /** + * Months rendered per row. + * @default 3 + */ + var monthsPerRow: dynamic +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.kt deleted file mode 100644 index 803bef38f78db..0000000000000 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MonthPicker.kt +++ /dev/null @@ -1,57 +0,0 @@ -// Automatically generated - do not modify! - -@file:JsModule("@mui/x-date-pickers/MonthPicker") - -package muix.pickers - -import mui.material.styles.Theme -import mui.system.SxProps -import web.cssom.ClassName - -external interface MonthPickerProps : - react.PropsWithClassName, - mui.system.PropsWithSx { - /** - * className applied to the root element. - */ - override var className: ClassName? - - /** - * Override or extend the styles applied to the component. - */ - var classes: MonthPickerClasses? - - /** Date value for the MonthPicker */ - var date: TDate? - - /** If `true` picker is disabled */ - var disabled: Boolean? - - /** Callback fired on date change. */ - var onChange: dynamic - - /** If `true` picker is readonly */ - var readOnly: Boolean? - - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - override var sx: SxProps? - - /** - * If `true`, today's date is rendering without highlighting with circle. - * @default false - */ - var disableHighlightToday: Boolean? - - var autoFocus: Boolean? - - var onMonthFocus: ((month: Number) -> Unit)? - - var hasFocus: Boolean? - - var onFocusedViewChange: ((newHasFocus: Boolean) -> Unit)? -} - - -external val MonthPicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.classes.kt new file mode 100644 index 0000000000000..76929052dfe58 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.classes.kt @@ -0,0 +1,14 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/MultiSectionDigitalClock") + +package muix.pickers + +import web.cssom.ClassName + +sealed external interface MultiSectionDigitalClockClasses { + /** Styles applied to the root element. */ + val root: ClassName +} + +external val multiSectionDigitalClockClasses: MultiSectionDigitalClockClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.kt new file mode 100644 index 0000000000000..eedff113908ba --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/MultiSectionDigitalClock") + +package muix.pickers + + +external val MultiSectionDigitalClock: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.types.kt new file mode 100644 index 0000000000000..b184b07a1c96d --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/MultiSectionDigitalClock.types.kt @@ -0,0 +1,58 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface MultiSectionDigitalClockProps : react.Props { + /** + * Available views. + * @default ['hours', 'minutes'] + */ + var views: dynamic + + /** + * Override or extend the styles applied to the component. + */ + var classes: MultiSectionDigitalClockClasses? + + /** + * Overrideable component slots. + * @default {} + */ + var slots: MultiSectionDigitalClockSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: MultiSectionDigitalClockSlotProps? +} + +external interface MultiSectionDigitalClockOption { + var isDisabled: ((value: TValue) -> Boolean)? + + var isSelected: (value: TValue) -> Boolean + + var isFocused: (value: TValue) -> Boolean + + var label: String + + var value: TValue + + var ariaLabel: String +} + +external interface ExportedMultiSectionDigitalClockProps : react.Props + +external interface MultiSectionDigitalClockViewProps : react.Props + +external interface MultiSectionDigitalClockSlots { + /** + * Component responsible for rendering a single multi section digital clock section item. + * @default MenuItem from '@mui/material' + */ + var digitalClockSectionItem: react.ElementType<*>? +} + +external interface MultiSectionDigitalClockSlotProps : react.Props { + var digitalClockSectionItem: react.Props? +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersActionBar.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersActionBar.kt index cd6241fcafb71..3eeb27061d54f 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersActionBar.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersActionBar.kt @@ -1,7 +1,5 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/PickersActionBar") - package muix.pickers external interface PickersActionBarProps : react.Props { @@ -20,6 +18,3 @@ external interface PickersActionBarProps : react.Props { var onSetToday: () -> Unit } - - -external val PickersActionBar: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.classes.kt new file mode 100644 index 0000000000000..d84410d74540d --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.classes.kt @@ -0,0 +1,26 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/PickersCalendarHeader") + +package muix.pickers + +import web.cssom.ClassName + +sealed external interface PickersCalendarHeaderClasses { + /** Styles applied to the root element. */ + val root: ClassName + + /** Styles applied to the label container element. */ + val labelContainer: ClassName + + /** Styles applied to the label element. */ + val label: ClassName + + /** Styles applied to the switch view button element. */ + val switchViewButton: ClassName + + /** Styles applied to the switch view icon element. */ + val switchViewIcon: ClassName +} + +external val pickersCalendarHeaderClasses: PickersCalendarHeaderClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.kt new file mode 100644 index 0000000000000..9e4d280055d38 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.kt @@ -0,0 +1,18 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/PickersCalendarHeader") + +package muix.pickers + +/** + * Demos: + * + * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/) + * - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/) + * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/) + * + * API: + * + * - [PickersCalendarHeader API](https://mui.com/x/api/date-pickers/pickers-calendar-header/) + */ +external val PickersCalendarHeader: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.types.kt new file mode 100644 index 0000000000000..2691f74757c5a --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersCalendarHeader.types.kt @@ -0,0 +1,76 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import mui.material.SlideDirection +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface PickersCalendarHeaderProps : + react.PropsWithClassName, + mui.system.PropsWithSx { + /** + * Overridable component slots. + * @default {} + */ + var slots: PickersCalendarHeaderSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: PickersCalendarHeaderSlotProps? + + var currentMonth: TDate + + var disabled: Boolean? + + var views: dynamic + + var onMonthChange: (date: TDate, slideDirection: SlideDirection) -> Unit + + var view: dynamic + + var reduceAnimations: Boolean + + var onViewChange: ((view: mui.system.Union /* 'year' | 'month' | 'day' */) -> Unit)? + + /** + * Id of the calendar text element. + * It is used to establish an `aria-labelledby` relationship with the calendar `grid` element. + */ + var labelId: String? + + /** + * Override or extend the styles applied to the component. + */ + var classes: PickersCalendarHeaderClasses? + + override var className: ClassName? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + override var sx: SxProps? +} + +external interface PickersCalendarHeaderSlots { + /** + * Button displayed to switch between different calendar views. + * @default IconButton + */ + var switchViewButton: react.ElementType<*>? + + /** + * Icon displayed in the SwitchViewButton. Rotated by 180° when the open view is `year`. + * @default ArrowDropDown + */ + var switchViewIcon: react.ElementType<*>? +} + +external interface PickersCalendarHeaderSlotProps : react.Props { + var switchViewButton: react.Props? + + var switchViewIcon: react.Props? +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersDay.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersDay.kt index 0f295d9ef18fd..11a1af9876307 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersDay.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersDay.kt @@ -8,12 +8,7 @@ package muix.pickers -import mui.material.styles.Theme -import mui.system.SxProps - -external interface PickersDayProps : - mui.material.ButtonBaseProps, - mui.system.PropsWithSx { +external interface PickersDayProps : react.Props { /** * Override or extend the styles applied to the component. */ @@ -30,12 +25,6 @@ external interface PickersDayProps : */ var disabled: Boolean? - /** - * If `true`, today's date is rendering without highlighting with circle. - * @default false - */ - var disableHighlightToday: Boolean? - /** * If `true`, days are rendering without margin. Useful for displaying linked range of days. * @default false @@ -50,13 +39,27 @@ external interface PickersDayProps : var onKeyDown: ((event: react.dom.events.KeyboardEvent, day: TDate) -> Unit)? - var onDaySelect: (day: TDate, isFinish: PickerSelectionState) -> Unit + var onMouseEnter: ((event: react.dom.events.MouseEvent, day: TDate) -> Unit)? + + var onDaySelect: (day: TDate) -> Unit /** * If `true`, day is outside of month and will be hidden. */ var outsideCurrentMonth: Boolean + /** + * If `true`, day is the first visible cell of the month. + * Either the first day of the month or the first day of the week depending on `showDaysOutsideCurrentMonth`. + */ + var isFirstVisibleCell: Boolean + + /** + * If `true`, day is the last visible cell of the month. + * Either the last day of the month or the last day of the week depending on `showDaysOutsideCurrentMonth`. + */ + var isLastVisibleCell: Boolean + /** * If `true`, renders as selected. * @default false @@ -64,21 +67,30 @@ external interface PickersDayProps : var selected: Boolean? /** - * If `true`, days that have `outsideCurrentMonth={true}` are displayed. + * If `true`, renders as today date. * @default false */ - var showDaysOutsideCurrentMonth: Boolean? + var today: Boolean? +} +external interface ExportedPickersDayProps : react.Props { /** - * If `true`, renders as today date. + * If `true`, today's date is rendering without highlighting with circle. * @default false */ - var today: Boolean? + var disableHighlightToday: Boolean? /** - * The system prop that allows defining system overrides as well as additional CSS styles. + * If `true`, days outside the current month are rendered: + * + * - if `fixedWeekNumber` is defined, renders days to have the weeks requested. + * + * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month. + * + * - ignored if `calendars` equals more than `1` on range pickers. + * @default false */ - override var sx: SxProps? + var showDaysOutsideCurrentMonth: Boolean? } diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.classes.kt new file mode 100644 index 0000000000000..b0e3a8b905545 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.classes.kt @@ -0,0 +1,20 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/PickersSectionList") + +package muix.pickers + +import web.cssom.ClassName + +sealed external interface PickersSectionListClasses { + /** Styles applied to the root element. */ + val root: ClassName + + /** Styles applied to the container of a section. */ + val section: ClassName + + /** Styles applied to the content of a section. */ + val sectionContent: ClassName +} + +external val pickersSectionListClasses: PickersSectionListClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.kt new file mode 100644 index 0000000000000..5c8f61a3e83cb --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.kt @@ -0,0 +1,16 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/PickersSectionList") + +package muix.pickers + +/** + * Demos: + * + * - [Custom field](https://mui.com/x/react-date-pickers/custom-field/) + * + * API: + * + * - [PickersSectionList API](https://mui.com/x/api/date-pickers/pickers-section-list/) + */ +external val PickersSectionList: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.ext.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.ext.kt new file mode 100644 index 0000000000000..a4410932bb539 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.ext.kt @@ -0,0 +1,15 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import seskar.js.JsValue + +sealed external interface PickersSectionListPosition { + companion object { + @JsValue("before") + val before: PickersSectionListPosition + + @JsValue("after") + val after: PickersSectionListPosition + } +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.kt new file mode 100644 index 0000000000000..e5994790a1288 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/PickersSectionList.types.kt @@ -0,0 +1,79 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import web.dom.Element +import web.html.HTMLElement + +external interface PickersSectionListProps : react.Props { + /** + * Overridable component slots. + */ + var slots: PickersSectionListSlots? + + /** + * The props used for each component slot. + */ + var slotProps: PickersSectionListSlotProps? + + /** + * Override or extend the styles applied to the component. + */ + var classes: PickersSectionListClasses? +} + +external interface PickersSectionListSlots { + var root: react.ElementType<*> + + var section: react.ElementType<*> + + var sectionSeparator: react.ElementType<*> + + var sectionContent: react.ElementType<*> +} + +external interface PickersSectionListSlotProps : react.Props { + var root: react.Props? + + var section: react.Props? + + var sectionSeparator: react.Props? + + var sectionContent: react.Props? +} + +external interface PickersSectionElement { + var container: dynamic + + var content: dynamic + + var before: dynamic + + var after: dynamic +} + +external interface PickersSectionListRef { + var getRoot: () -> HTMLElement + + var getSectionContainer: (sectionIndex: Number) -> HTMLElement + + var getSectionContent: (sectionIndex: Number) -> HTMLElement + + var getSectionIndexFromDOMElement: (element: Element?) -> Number? +} + +external interface ExportedPickersSectionListProps : react.Props { + /** + * The elements to render. + * Each element contains the prop to edit a section of the value. + */ + var elements: dynamic + + var sectionListRef: react.Ref + + /** + * If true, the whole element is editable. + * Useful when all the sections are selected. + */ + var contentEditable: Boolean +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDatePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDatePicker.kt index a54cd29d3edfd..3fac72161aa52 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDatePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDatePicker.kt @@ -6,9 +6,14 @@ package muix.pickers external interface StaticDatePickerProps : react.Props -external interface StaticDatePickerSlotsComponent - -external interface StaticDatePickerSlotsComponentsProps : react.Props - - +/** + * Demos: + * + * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [StaticDatePicker API](https://mui.com/x/api/date-pickers/static-date-picker/) + */ external val StaticDatePicker: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDateTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDateTimePicker.kt index 92af6538f27d2..52c4f6ba25556 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDateTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticDateTimePicker.kt @@ -6,9 +6,14 @@ package muix.pickers external interface StaticDateTimePickerProps : react.Props -external interface StaticDateTimePickerSlotsComponent - -external interface StaticDateTimePickerSlotsComponentsProps : react.Props - - +/** + * Demos: + * + * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [StaticDateTimePicker API](https://mui.com/x/api/date-pickers/static-date-time-picker/) + */ external val StaticDateTimePicker: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticTimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticTimePicker.kt index 316d303665258..34a62153cfc49 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticTimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/StaticTimePicker.kt @@ -6,9 +6,14 @@ package muix.pickers external interface StaticTimePickerProps : react.Props -external interface StaticTimePickerSlotsComponents - -external interface StaticTimePickerSlotsComponentsProps : react.Props - - +/** + * Demos: + * + * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [StaticTimePicker API](https://mui.com/x/api/date-pickers/static-time-picker/) + */ external val StaticTimePicker: react.FC diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.classes.kt similarity index 63% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.classes.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.classes.kt index 5cee619f8531a..0cb899ae98012 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/ClockPicker.classes.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.classes.kt @@ -1,12 +1,12 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/ClockPicker") +@file:JsModule("@mui/x-date-pickers/TimeClock") package muix.pickers import web.cssom.ClassName -sealed external interface ClockPickerClasses { +sealed external interface TimeClockClasses { /** Styles applied to the root element. */ val root: ClassName @@ -14,4 +14,4 @@ sealed external interface ClockPickerClasses { val arrowSwitcher: ClassName } -external val clockPickerClasses: ClockPickerClasses +external val timeClockClasses: TimeClockClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.kt new file mode 100644 index 0000000000000..a46aa317dc5de --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/TimeClock") + +package muix.pickers + + +external val TimeClock: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.types.kt new file mode 100644 index 0000000000000..d9ddd911eb8a5 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimeClock.types.kt @@ -0,0 +1,42 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface TimeClockProps : react.Props { + /** + * Available views. + * @default ['hours', 'minutes'] + */ + var views: dynamic + + /** + * Override or extend the styles applied to the component. + */ + var classes: TimeClockClasses? + + /** + * Overridable component slots. + * @default {} + */ + var slots: TimeClockSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: TimeClockSlotProps? + + var showViewSwitcher: Boolean? +} + +external interface ExportedTimeClockProps : react.Props { + /** + * Display ampm controls under the clock (instead of in the toolbar). + * @default false + */ + var ampmInClock: Boolean? +} + +external interface TimeClockSlots + +external interface TimeClockSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.kt index bcdf424ff07ae..fa7d6128c4f5b 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.kt @@ -4,30 +4,14 @@ package muix.pickers -external interface TimePickerProps : react.Props { - /** - * CSS media query when `Mobile` mode will be changed to `Desktop`. - * @default '@media (pointer: fine)' - * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") - */ - var desktopModeMediaQuery: String? - - /** - * Overrideable components. - * @default {} - */ - var components: dynamic - - /** - * The props used for each component slot. - * @default {} - */ - var componentsProps: TimePickerSlotsComponentsProps? -} - -external interface TimePickerSlotsComponent - -external interface TimePickerSlotsComponentsProps : react.Props - - -external val TimePicker: react.FC +/** + * Demos: + * + * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/) + * - [Validation](https://mui.com/x/react-date-pickers/validation/) + * + * API: + * + * - [TimePicker API](https://mui.com/x/api/date-pickers/time-picker/) + */ +external val TimePicker: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.types.kt new file mode 100644 index 0000000000000..cf97165cd867b --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/TimePicker.types.kt @@ -0,0 +1,28 @@ +// Automatically generated - do not modify! + +package muix.pickers + +external interface TimePickerProps : react.Props { + /** + * CSS media query when `Mobile` mode will be changed to `Desktop`. + * @default '@media (pointer: fine)' + * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm") + */ + var desktopModeMediaQuery: String? + + /** + * Overridable component slots. + * @default {} + */ + var slots: TimePickerSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: TimePickerSlotProps? +} + +external interface TimePickerSlots + +external interface TimePickerSlotProps : react.Props diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.classes.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.classes.kt similarity index 52% rename from kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.classes.kt rename to kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.classes.kt index 8066fb5b42fe4..351cc828b50c6 100644 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.classes.kt +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.classes.kt @@ -1,14 +1,14 @@ // Automatically generated - do not modify! -@file:JsModule("@mui/x-date-pickers/YearPicker") +@file:JsModule("@mui/x-date-pickers/YearCalendar") package muix.pickers import web.cssom.ClassName -sealed external interface YearPickerClasses { +sealed external interface YearCalendarClasses { /** Styles applied to the root element. */ val root: ClassName } -external val yearPickerClasses: YearPickerClasses +external val yearCalendarClasses: YearCalendarClasses diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.kt new file mode 100644 index 0000000000000..84e85232d25e8 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.kt @@ -0,0 +1,8 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-date-pickers/YearCalendar") + +package muix.pickers + + +external val YearCalendar: react.FC> diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.types.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.types.kt new file mode 100644 index 0000000000000..69bf4367feab8 --- /dev/null +++ b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearCalendar.types.kt @@ -0,0 +1,109 @@ +// Automatically generated - do not modify! + +package muix.pickers + +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface YearCalendarProps : + react.PropsWithClassName, + mui.system.PropsWithSx { + var autoFocus: Boolean? + + override var className: ClassName? + + /** + * Override or extend the styles applied to the component. + */ + var classes: YearCalendarClasses? + + /** + * Overridable component slots. + * @default {} + */ + var slots: YearCalendarSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: YearCalendarSlotProps? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + override var sx: SxProps? + + /** If `true` picker is disabled */ + var disabled: Boolean? + + /** + * The selected value. + * Used when the component is controlled. + */ + var value: TDate? + + /** + * The default selected value. + * Used when the component is not controlled. + */ + var defaultValue: TDate? + + /** + * The date used to generate the new value when both `value` and `defaultValue` are empty. + * @default The closest valid year using the validation props, except callbacks such as `shouldDisableYear`. + */ + var referenceDate: TDate? + + /** + * Callback fired when the value changes. + * @template TDate + * @param {TDate} value The new value. + */ + var onChange: ((value: TDate) -> Unit)? + + /** If `true` picker is readonly */ + var readOnly: Boolean? + + /** + * If `true`, today's date is rendering without highlighting with circle. + * @default false + */ + var disableHighlightToday: Boolean? + + var onYearFocus: ((year: Number) -> Unit)? + + var hasFocus: Boolean? + + var onFocusedViewChange: ((hasFocus: Boolean) -> Unit)? + + var gridLabelId: String? +} + +external interface YearCalendarSlots { + /** + * Button displayed to render a single year in the `year` view. + * @default YearCalendarButton + */ + var yearButton: react.ElementType<*>? +} + +external interface YearCalendarSlotProps : react.Props { + var yearButton: react.Props? +} + +external interface ExportedYearCalendarProps : react.Props { + /** + * Years are displayed in ascending (chronological) order by default. + * If `desc`, years are displayed in descending order. + * @default 'asc' + */ + var yearsOrder: mui.system.Union? /* 'asc' | 'desc' */ + + /** + * Years rendered per row. + * @default 3 + */ + var yearsPerRow: dynamic +} diff --git a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.kt b/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.kt deleted file mode 100644 index e95b2532c319d..0000000000000 --- a/kotlin-muix-date-pickers/src/jsMain/generated/muix/pickers/YearPicker.kt +++ /dev/null @@ -1,40 +0,0 @@ -// Automatically generated - do not modify! - -@file:JsModule("@mui/x-date-pickers/YearPicker") - -package muix.pickers - -import web.cssom.ClassName - -external interface YearPickerProps : react.PropsWithClassName { - var autoFocus: Boolean? - - override var className: ClassName? - - var classes: YearPickerClasses? - - var date: TDate? - - var disabled: Boolean? - - var onChange: dynamic - - var onFocusedDayChange: ((day: TDate) -> Unit)? - - var readOnly: Boolean? - - /** - * If `true`, today's date is rendering without highlighting with circle. - * @default false - */ - var disableHighlightToday: Boolean? - - var onYearFocus: ((year: Number) -> Unit)? - - var hasFocus: Boolean? - - var onFocusedViewChange: ((newHasFocus: Boolean) -> Unit)? -} - - -external val YearPicker: react.FC>