11"""Lemcal booking integration for Reflex applications."""
22
3- import reflex as rx
43from typing import Any
54
5+ import reflex as rx
66
77LEMCAL_SCRIPT_URL = "https://cdn.lemcal.com/lemcal-integrations.min.js"
88
99
1010def get_lemcal_script () -> rx .Component :
1111 """Generate Lemcal script component for a Reflex application.
12-
12+
1313 Returns:
1414 rx.Component: Script component needed for Lemcal integration
1515 """
@@ -32,15 +32,15 @@ def lemcal_button(
3232 Wraps provided child (or a default button) in a div with the Lemcal
3333 integration class and data attributes so that the external script can
3434 attach the booking behavior.
35-
35+
3636 Args:
3737 child: Custom component to wrap (defaults to a button with label)
3838 label: Default button text if no child provided
3939 class_name: Additional CSS classes to apply
4040 user_id: Lemcal user ID for booking integration
4141 meeting_type: Lemcal meeting type ID for booking integration
4242 **props: Additional props to pass to the wrapper div
43-
43+
4444 Returns:
4545 rx.Component: Lemcal button wrapper component
4646 """
@@ -64,17 +64,17 @@ def lemcal_calendar(
6464 ** props : Any ,
6565) -> rx .Component :
6666 """Lemcal booking calendar embed component.
67-
67+
6868 Creates a div with the Lemcal calendar integration class and data attributes.
6969 Optionally refreshes the Lemcal integration when the component mounts.
70-
70+
7171 Args:
7272 user_id: Lemcal user ID for booking integration
7373 meeting_type: Lemcal meeting type ID for booking integration
7474 class_name: Additional CSS classes to apply
7575 refresh_on_mount: Whether to call window.lemcal.refresh() on mount
7676 **props: Additional props to pass to the wrapper div
77-
77+
7878 Returns:
7979 rx.Component: Lemcal calendar embed component
8080 """
@@ -86,8 +86,8 @@ def lemcal_calendar(
8686 },
8787 ** props ,
8888 }
89-
89+
9090 if refresh_on_mount :
9191 calendar_props ["on_mount" ] = rx .call_function ("window.lemcal.refresh" )
92-
92+
9393 return rx .el .div (** calendar_props )
0 commit comments