
    ge>                         d Z ddlmZmZmZmZ ddlmZmZ ddl	m
Z
 g dZe G d d	e                      Z G d
 de          ZdS )zContains the Layout class    )UnicodeInstanceCaselessStrEnumvalidate   )Widgetregister   ) __jupyter_widgets_base_version__)inheritinitialunsetc                      e Zd ZdZ ed                              d          Z ed                              d          Z ee                              d          Z	 ed                              d          Z
 eg dez   dd	                              d          Z eg d
ez   dd	                              d          Z eg dez   dd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eg dez   dd	                              d          Z eg dez   dd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eddd	                              d          Z eg d ez   dd!	                              d          Z eg d ez   dd"	                              d          Z  eddd#	                              d          Z! eddd$	                              d          Z" eddd%	                              d          Z# eddd&	                              d          Z$ ed'd(gez   dd)	                              d          Z% eddd*	                              d          Z& eg d+dd,	                              d          Z' eddd-	                              d          Z( eddd.	                              d          Z) eg d/ez   dd0	                              d          Z* eddd1	                              d          Z+ eddd2	                              d          Z, eddd3	                              d          Z- eddd4	                              d          Z. eddd5	                              d          Z/ eddd6	                              d          Z0 eddd7	                              d          Z1 eddd8	                              d          Z2 e3d9d:          d;             Z4dS )<Layouta  Layout specification

    Defines a layout that can be expressed using CSS.  Supports a subset of
    https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

    When a property is also accessible via a shorthand property, we only
    expose the shorthand.

    For example:
    - ``flex-grow``, ``flex-shrink`` and ``flex-basis`` are bound to ``flex``.
    - ``flex-wrap`` and ``flex-direction`` are bound to ``flex-flow``.
    - ``margin-[top/bottom/left/right]`` values are bound to ``margin``, etc.
    
LayoutViewT)syncz@jupyter-widgets/baseLayoutModel)
flex-startflex-endcenterspace-betweenspace-aroundzspace-evenlystretchz The align-content CSS attribute.)
allow_nonehelp)r   r   r   baseliner   zThe align-items CSS attribute.)autor   r   r   r   r   zThe align-self CSS attribute.NzThe bottom CSS attribute.zThe border CSS attribute.zThe display CSS attribute.zThe flex CSS attribute.zThe flex-flow CSS attribute.zThe height CSS attribute.)r   r   r   r   r   z"The justify-content CSS attribute.)r   r   r   z The justify-items CSS attribute.zThe left CSS attribute.zThe margin CSS attribute.zThe max-height CSS attribute.zThe max-width CSS attribute.zThe min-height CSS attribute.zThe min-width CSS attribute.zThe overflow CSS attribute.)visiblehiddenscrollr   z*The overflow-x CSS attribute (deprecated).z*The overflow-y CSS attribute (deprecated).zThe order CSS attribute.zThe padding CSS attribute.zThe right CSS attribute.zThe top CSS attribute.r   r   zThe visibility CSS attribute.zThe width CSS attribute.)containcoverfillz
scale-downnonezThe object-fit CSS attribute.z"The object-position CSS attribute.z$The grid-auto-columns CSS attribute.)columnrowz	row densezcolumn densez!The grid-auto-flow CSS attribute.z!The grid-auto-rows CSS attribute.zThe grid-gap CSS attribute.z%The grid-template-rows CSS attribute.z(The grid-template-columns CSS attribute.z&The grid-template-areas CSS attribute.zThe grid-row CSS attribute.zThe grid-column CSS attribute.zThe grid-area CSS attribute.
overflow_x
overflow_yc                 \    |j         dd l}|                    dt                     |j         S )Nr   zLayout properties overflow_x and overflow_y have been deprecated and will be dropped in a future release. Please use the overflow shorthand property instead)valuewarningswarnDeprecationWarning)selfproposalr+   s      @lib/python3.11/site-packages/ipywidgets/widgets/widget_layout.py_validate_overflowszLayout._validate_overflowsP   sA    >%OOOMM  y  {M  N  N  N~    )5__name__
__module____qualname____doc__r   tag
_view_name_view_moduler   _view_module_version_model_namer   CSS_PROPERTIESalign_contentalign_items
align_selfbottomborderdisplayflex	flex_flowheightjustify_contentjustify_itemsleftmargin
max_height	max_width
min_height	min_widthoverflowr'   r(   orderpaddingrighttop
visibilitywidth
object_fitobject_positiongrid_auto_columnsgrid_auto_flowgrid_auto_rowsgrid_gapgrid_template_rowsgrid_template_columnsgrid_template_areasgrid_rowgrid_column	grid_arear   r1    r2   r0   r   r      s|         &&***55J723377T7BBL"7#CDDHHdHSS'-((,,$,77K $O %3 %3 %35C%DPT[}   @C  @C  IM  @C  @N  @N !/ # # #!/#0<@Ggi i iililrviliwiw   ") ") ")+9":FJQpr r rruru{ru  sA  sA WTd1LMMMQQW[Q\\FWTd1LMMMQQW[Q\\Fgdt2NOOOSSY]S^^G74D/HIIIMMSWMXXD4RSSSWW]aWbbIWTd1LMMMQQW[Q\\F%o ') ') ')+9':FJQuw w wwzwz  AEwz  xF  xF #O$H$H$H>$Y@B B BBE#4#.. 74D/HIIIMMSWMXXDWTd1LMMMQQW[Q\\F$5TUUUYY_cYddJ4RSSSWW]aWbbI$5TUUUYY_cYddJ4RSSSWW]aWbbIwt3PQQQUU[_U``H !H!H!H>!Yfj  r^  _  _  _  c  c  im  c  n  nJ !H!H!H>!Yfj  r^  _  _  _  c  c  im  c  n  nJGDT0JKKKOOUYOZZEgdt2NOOOSSY]S^^GGDT0JKKKOOUYOZZE
'$4.F
G
G
G
K
KQU
K
V
VC )X!6~!ERV]|}}}  B  B  HL  B  M  MJGDT0JKKKOOUYOZZE !S!S!S`d  lK  L  L  L  P  P  VZ  P  [  [Jgdt:^___ccimcnnO<bcccggmqgrr$_%P%P%PR`%`mq  y\  ]  ]  ]  a  a  gk  a  l  lNWTd9\]]]aagkallNwt3PQQQUU[_U``H $=deeeiiositt#GDT@jkkkoouyozz!'$4>fgggkkqukvvwt3PQQQUU[_U``H'$46VWWW[[ae[ffK4RSSSWW]aWbbIXlL))  *)  r2   r   c                   "     e Zd ZeZ fdZ xZS )LayoutTraitTypec                     t          |t                    r4t          t          |                               | | j        di |          S t          t          |                               ||          S )Nra   )
isinstancedictsuperrc   r   klass)r.   objr*   	__class__s      r0   r   zLayoutTraitType.validate\   sh    eT"" 	E$//88jdj>Q>Q5>Q>QRRR$//88eDDDr2   )r3   r4   r5   r   rh   r   __classcell__)rj   s   @r0   rc   rc   X   sF        EE E E E E E E E Er2   rc   N)r6   	traitletsr   r   r   r   widgetr   r	   _versionr   r<   r   rc   ra   r2   r0   <module>ro      s       B B B B B B B B B B B B $ $ $ $ $ $ $ $ 7 7 7 7 7 7...	H H H H HV H H 
HVE E E E Eh E E E E Er2   