Ë
    Eêñi¾  ã                  ó�   — d dl mZ d dlmZmZ d dlmZ d dlmZ	 d dl
mZ d dlmZ erd dlmZ d dlmZmZ d d	lmZ  G d
„ d«      Zy)é    )Úannotations)ÚTYPE_CHECKINGÚcast)Úcreate_layout_config)ÚText)Úgather_metrics)Ú
clean_text)ÚDeltaGenerator)ÚTextAlignmentÚWidth)ÚSupportsStrc                  óX   — e Zd Z ed«      ddddœ	 	 	 	 	 	 	 	 	 dd„«       Zed	d„«       Zy)
Ú	TextMixinÚtextNÚcontentÚleft)ÚhelpÚwidthÚtext_alignmentc               ó    — t        «       }t        |«      |_        |r||_        t	        ||d¬«      }| j
                  j                  d||¬«      S )a?	  Write text without Markdown or HTML parsing.

        For monospace text, use |st.code|_.

        .. |st.code| replace:: ``st.code``
        .. _st.code: https://docs.streamlit.io/develop/api-reference/text/st.code

        Parameters
        ----------
        body : str
            The string to display.

        help : str or None
            A tooltip that gets displayed next to the text. If this is ``None``
            (default), no tooltip is displayed.

            The tooltip can optionally contain GitHub-flavored Markdown,
            including the Markdown directives described in the ``body``
            parameter of ``st.markdown``.

        width : "content", "stretch", or int
            The width of the text element. This can be one of the following:

            - ``"content"`` (default): The width of the element matches the
              width of its content, but doesn't exceed the width of the parent
              container.
            - ``"stretch"``: The width of the element matches the width of the
              parent container.
            - An integer specifying the width in pixels: The element has a
              fixed width. If the specified width is greater than the width of
              the parent container, the width of the element matches the width
              of the parent container.

        text_alignment : "left", "center", "right", or "justify"
            The horizontal alignment of the text within the element. This can
            be one of the following:

            - ``"left"`` (default): Text is aligned to the left edge.
            - ``"center"``: Text is centered.
            - ``"right"``: Text is aligned to the right edge.
            - ``"justify"``: Text is justified (stretched to fill the available
              width with the last line left-aligned).

            .. note::
                For text alignment to have a visible effect, the element's
                width must be wider than its content. If you use
                ``width="content"`` with short text, the alignment may not be
                noticeable.

        Examples
        --------
        >>> import streamlit as st
        >>>
        >>> st.text("This is text\n[and more text](that's not a Markdown link).")

        .. output::
            https://doc-text.streamlit.app/
            height: 220px

        T)r   r   Úallow_content_widthr   )Úlayout_config)Ú	TextProtor	   Úbodyr   r   ÚdgÚ_enqueue)Úselfr   r   r   r   Ú
text_protor   s          úY/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/streamlit/elements/text.pyr   zTextMixin.text   sS   € ôJ “[ˆ
Ü$ TÓ*ˆ
ŒÙØ"ˆJŒOä,ØØ)Ø $ô
ˆð �w‰w×Ñ ¨
À-ÐÓPÐPó    c                ó   — t        d| «      S )zGet our DeltaGenerator.r
   )r   )r   s    r   r   zTextMixin.dgq   s   € ô Ð$ dÓ+Ð+r    )
r   r   r   z
str | Noner   r   r   r   Úreturnr
   )r"   r
   )Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   © r    r   r   r      sw   „ Ù�FÓð
  Ø Ø(.ñOQàðOQð ð	OQð
 ðOQð &ðOQð 
òOQó ðOQðb ò,ó ñ,r    r   N)Ú
__future__r   Útypingr   r   Ú#streamlit.elements.lib.layout_utilsr   Ústreamlit.proto.Text_pb2r   r   Ústreamlit.runtime.metrics_utilr   Ústreamlit.string_utilr	   Ústreamlit.delta_generatorr
   r   r   Ústreamlit.type_utilr   r   r'   r    r   ú<module>r0      s1   ðõ #ç &å DÝ 6Ý 9Ý ,áÝ8ßHÝ/÷V,ò V,r    