U
    ×Zßfù  ã                   @   s$   d dl mZmZ G dd„ deƒZdS )é    )Ú	ComponentÚ_explicitize_argsc                
       s\   e Zd ZdZg ZdgZdZd Zee	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
e	j
f	‡ fdd„	ƒZ‡  ZS )Ú	Clipboardaà  A Clipboard component.
    The Clipboard component copies text to the clipboard

    Keyword arguments:

    - id (string; optional):
        The ID used to identify this component.

    - className (string; optional):
        The class  name of the icon element.

    - content (string; optional):
        The text to be copied to the clipboard if the `target_id` is None.

    - html_content (string; optional):
        The clipboard html text be copied to the clipboard if the
        `target_id` is None.

    - 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.

    - n_clicks (number; default 0):
        The number of times copy button was clicked.

    - style (dict; optional):
        The icon's styles.

    - target_id (string | dict; optional):
        The id of target component containing text to copy to the
        clipboard. The inner text of the `children` prop will be copied to
        the clipboard.  If none, then the text from the  `value` prop will
        be copied.

    - title (string; optional):
        The text shown as a tooltip when hovering over the copy icon.ÚchildrenZdash_core_componentsc
              	      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 ƒ}tt| ƒj	f |Ž d S )NÚidÚ	classNameÚcontentÚhtml_contentÚloading_stateÚn_clicksÚstyleÚ	target_idÚtitleÚ_explicit_argsc                    s   i | ]}|ˆ | “qS © r   )Ú.0Úk©Z_localsr   ú6/tmp/pip-unpacked-wheel-47crqvv_/dash/dcc/Clipboard.pyÚ
<dictcomp>e   s      z&Clipboard.__init__.<locals>.<dictcomp>)
Z_prop_namesZ_valid_wildcard_attributesZavailable_propertiesZavailable_wildcard_propertiesÚpopÚlocalsÚupdateÚsuperr   Ú__init__)Úselfr   r   r   r   r	   r   r   r   r
   Úkwargsr   Úargs©Ú	__class__r   r   r   <   s6    ÷÷

zClipboard.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_children_propsZ_base_nodesÚ
_namespaceÚ_typer   r   Ú	UNDEFINEDr   Ú__classcell__r   r   r   r   r      s    0ör   N)Zdash.development.base_componentr   r   r   r   r   r   r   Ú<module>   s   