Ë
    úmxih  ã                  óp   — d dl mZ d dlmZmZ d dlmZmZmZ d dl	m
Z d dlmZ erd dlmZ  G d„ d«      Zy	)
é    )Úannotations)ÚTYPE_CHECKINGÚcast)ÚLayoutConfigÚ	SpaceSizeÚvalidate_space_size)ÚSpace)Úgather_metrics)ÚDeltaGeneratorc                  óF   — e Zd Z ed«      	 d	 	 	 dd„«       Zedd„«       Zy)Ú
SpaceMixinÚspacec                ó‚   — t        «       }t        |«       t        ||¬«      }| j                  j	                  d||¬«      S )a
  Add vertical or horizontal space.

        This command adds space in the direction of its parent container. In
        a vertical layout, it adds vertical space. In a horizontal layout, it
        adds horizontal space.

        Parameters
        ----------
        size : "xxsmall", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "stretch", or int
            The size of the space. This can be one of the following values:

            - ``"xxsmall"``: 0.25rem, matching the ``"xxsmall"`` gap in
              ``st.container`` and ``st.columns``.
            - ``"xsmall"``: 0.5rem, matching the ``"xsmall"`` gap in
              ``st.container`` and ``st.columns``.
            - ``"small"`` (default): 0.75rem, which is the height of a widget
              label. This is useful for aligning buttons with labeled widgets.
            - ``"medium"``: 2.5rem, which is the height of a button or
              (unlabeled) input field.
            - ``"large"``: 4.25rem, which is the height of a labeled input
              field or unlabeled media widget, like ``st.file_uploader``.
            - ``"xlarge"``: 6rem, matching the ``"xlarge"`` gap in
              ``st.container`` and ``st.columns``.
            - ``"xxlarge"``: 8rem, matching the ``"xxlarge"`` gap in
              ``st.container`` and ``st.columns``.
            - ``"stretch"``: Expands to fill remaining space in the container.
            - An integer: Fixed size in pixels.

        Examples
        --------
        **Example 1: Use vertical space to align elements**

        Use small spaces to replace label heights. Use medium spaces to replace
        two label heights or a button.

        >>> import streamlit as st
        >>>
        >>> left, middle, right = st.columns(3)
        >>>
        >>> left.space("medium")
        >>> left.button("Left button", width="stretch")
        >>>
        >>> middle.space("small")
        >>> middle.text_input("Middle input")
        >>>
        >>> right.audio_input("Right uploader")

        .. output::
            https://doc-space-vertical.streamlit.app/
            height: 260px

        **Example 2: Add horizontal space in a container**

        Use stretch space to float elements left and right.

        >>> import streamlit as st
        >>>
        >>> with st.container(horizontal=True):
        ...     st.button("Left")
        ...     st.space("stretch")
        ...     st.button("Right")

        .. output::
            https://doc-space-horizontal.streamlit.app/
            height: 200px

        )ÚwidthÚheightr   )Úlayout_config)Ú
SpaceProtor   r   ÚdgÚ_enqueue)ÚselfÚsizeÚspace_protor   s       úO/home/htdocs/ttos/venv/lib/python3.12/site-packages/streamlit/elements/space.pyr   zSpaceMixin.space    s>   € ôP !“lˆä˜DÔ!ô %¨4¸Ô=ˆà�w‰w×Ñ ¨ÀMÐÓRÐRó    c                ó   — t        d| «      S )zGet our DeltaGenerator.r   )r   )r   s    r   r   zSpaceMixin.dgv   s   € ô Ð$ dÓ+Ð+r   N)Úsmall)r   r   Úreturnr   )r   r   )Ú__name__Ú
__module__Ú__qualname__r
   r   Úpropertyr   © r   r   r   r      sM   „ Ù�GÓð "ðSSàðSSð 
òSSó ðSSðj ò,ó ñ,r   r   N)Ú
__future__r   Útypingr   r   Ú#streamlit.elements.lib.layout_utilsr   r   r   Ústreamlit.proto.Space_pb2r	   r   Ústreamlit.runtime.metrics_utilr
   Ústreamlit.delta_generatorr   r   r"   r   r   ú<module>r)      s1   ðõ #ç &÷ñ õ
 :Ý 9áÝ8÷Z,ò Z,r   