U
    ×Zßfæ  ã                   @   s$   d dl mZmZ G dd„ deƒZdS )é    )Ú	ComponentÚ_explicitize_argsc                
       sZ   e Zd ZdZg ZdgZdZd Zede	j
e	je	je	je	je	je	je	jf	‡ fdd„	ƒZ‡  ZS )ÚLinkaY  A Link component.
    Link allows you to create a clickable link within a multi-page app.

    For links with destinations outside the current app, `html.A` is a better
    component to use.

    Keyword arguments:

    - children (a list of or a singular dash component, string or number; optional):
        The children of this component.

    - href (string; required):
        The URL of a linked resource.

    - target (string; optional):
        Specifies where to open the link reference.

    - refresh (boolean; default False):
        Controls whether or not the page will refresh when the link is
        clicked.

    - title (string; optional):
        Adds the title attribute to your link, which can contain
        supplementary information.

    - className (string; optional):
        Often used with CSS to style elements with common properties.

    - style (dict; optional):
        Defines CSS styles which will override styles previously set.

    - id (string; optional):
        The ID of this component, used to identify dash components in
        callbacks. The ID needs to be unique across all of the components
        in an app.

    - loading_state (dict; optional):
        Object that holds the loading state object coming from
        dash-renderer.

        `loading_state` is a dict with keys:

        - component_name (string; optional):
            Holds the name of the component that is loading.

        - is_loading (boolean; optional):
            Determines if the component is loading or not.

        - prop_name (string; optional):
            Holds which property is loading.ÚchildrenZdash_core_componentsNc
              	      s¨   ddddddddd	g	| _ g | _ddddddddd	g	| _g | _|
 d
¡}tƒ ‰ ˆ  |
¡ ‡ fdd„|D ƒ}dD ]}||krltd| d ƒ‚qltt	| ƒj
f d|i|—Ž d S )Nr   ÚhrefÚtargetÚrefreshÚtitleÚ	classNameÚstyleÚidÚloading_stateÚ_explicit_argsc                    s   i | ]}|d kr|ˆ | “qS )r   © )Ú.0Úk©Z_localsr   ú1/tmp/pip-unpacked-wheel-47crqvv_/dash/dcc/Link.pyÚ
<dictcomp>h   s       z!Link.__init__.<locals>.<dictcomp>)r   zRequired argument `z` was not specified.)Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiesÚpopÚlocalsÚupdateÚ	TypeErrorÚsuperr   Ú__init__)Úselfr   r   r   r   r	   r
   r   r   r   Úkwargsr   Úargsr   ©Ú	__class__r   r   r   ?   s<    ÷÷

zLink.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_children_propsZ_base_nodesÚ
_namespaceÚ_typer   r   ZREQUIREDÚ	UNDEFINEDr   Ú__classcell__r   r   r   r   r      s    3ör   N)Zdash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   