
    AHj                    X    d Z ddlmZ ddlmZ ddlmZ ddlmZ ed   Z	 G d de      Z
y	)
zProvides a simple Label widget.    )annotations)Literal)
VisualType)Static)successerrorwarningprimary	secondaryaccentc            
      f     e Zd ZdZdZ	 dddddddddd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d	 fdZ xZS )
Labelz?A simple label widget for displaying text-oriented renderables.a  
    Label {
        width: auto;
        height: auto;
        min-height: 1;

        &.success {
            color: $text-success;
            background: $success-muted;
        }
        &.error {
            color: $text-error;
            background: $error-muted;
        }
        &.warning {
            color: $text-warning;
            background: $warning-muted;
        }
        &.primary {
            color: $text-primary;
            background: $primary-muted;
        }
        &.secondary {
            color: $text-secondary;
            background: $secondary-muted;
        }
        &.accent {
            color: $text-accent;
            background: $accent-muted;
        }
    }
    NFT)variantexpandshrinkmarkupnameidclassesdisabledc          
     \    t         
|   ||||||||	       |r| j                  |       y y )N)r   r   r   r   r   r   r   )super__init__	add_class)selfcontentr   r   r   r   r   r   r   r   	__class__s             N/root/tools/cai/cai_env/lib/python3.12/site-packages/textual/widgets/_label.pyr   zLabel.__init__1   sE     	 	 		
 NN7#     ) )r   r   r   zLabelVariant | Noner   boolr   r!   r   r!   r   
str | Noner   r"   r   r"   r   r!   returnNone)__name__
__module____qualname____doc__DEFAULT_CSSr   __classcell__)r   s   @r   r   r      s    IKF !$ (,"$$ %	$
 $ $ $ $ $ $ $ 
$ $r   r   N)r(   
__future__r   typingr   textual.visualr   textual.widgets._staticr   LabelVariantr    r   r   <module>r1      s+    % "  % *VW<$F <$r   