
    ^h                     z    S r SSKJrJrJrJr  SSKJrJr  SSK	J
r
  / SQr\ " S S	\5      5       r " S
 S\5      rg)zContains the Layout class    )UnicodeInstanceCaselessStrEnumvalidate   )Widgetregister   ) __jupyter_widgets_base_version__)inheritinitialunsetc                     ^  \ rS rSrSr\" S5      R                  SS9r\" S5      R                  SS9r\" \	5      R                  SS9r
\" S5      R                  SS9r\" / SQ\-   SS	S
9R                  SS9r\" / SQ\-   SSS
9R                  SS9r\" / SQ\-   SSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" / SQ\-   SSS
9R                  SS9r\" / SQ\-   SSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSSS
9R                  SS9r\" SSS S
9R                  SS9r\" SSS!S
9R                  SS9r \" SSS"S
9R                  SS9r!\" SSS#S
9R                  SS9r"\" SSS$S
9R                  SS9r#\" SSS%S
9R                  SS9r$\" SSS&S
9R                  SS9r%\" SSS'S
9R                  SS9r&\" S(S)/\-   SS*S
9R                  SS9r'\" SSS+S
9R                  SS9r(\" / S,QSS-S
9R                  SS9r)\" SSS.S
9R                  SS9r*\" SSS/S
9R                  SS9r+\" / S0Q\-   SS1S
9R                  SS9r,\" SSS2S
9R                  SS9r-\" SSS3S
9R                  SS9r.\" SSS4S
9R                  SS9r/\" SSS5S
9R                  SS9r0\" SSS6S
9R                  SS9r1\" SSS7S
9R                  SS9r2\" SSS8S
9R                  SS9r3\" SSS9S
9R                  SS9r4U 4S: jr5S; r6S< r7\8" \6\75      r9S=r:U =r;$ )>Layout   a  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 border top CSS attribute.zThe border right CSS attribute.z The border bottom CSS attribute.zThe border left CSS attribute.zThe bottom 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.zThe order CSS attribute.zThe padding CSS attribute.zThe right CSS attribute.zThe top CSS attribute.visiblehiddenz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.c                    > SU;   a/  UR                  S5      nS H  nUR                  SU 3U5        M     [        TU ]  " S0 UD6  g )Nbordertoprightbottomleftborder_ )pop
setdefaultsuper__init__)selfkwargsr(   side	__class__s       Z/home/james-whalen/.local/lib/python3.13/site-packages/ipywidgets/widgets/widget_layout.pyr3   Layout.__init__P   sL    vZZ)F:!!GD6"2F; ; 	"6"    c                     SnS H8  n[        U SU-   5      (       d    gU[        U SU-   5      pUb  Uc  M1  X:w  d  M8    g   U$ )zv
`border` property getter. Return the common value of all side
borders if they are identical. Otherwise return None.

Nr)   r.   )hasattrgetattr)r4   foundr6   olds       r8   _get_borderLayout._get_borderX   sR     6D4T!122i$.> ?}U\ 7 r:   c                 6    S H  n[        U SU-   U5        M     g)z?
`border` property setter. Set all 4 sides to `border` string.
r)   r.   N)setattr)r4   r(   r6   s      r8   _set_borderLayout._set_borderg   s     7DD)d*F3 7r:   r/   )<__name__
__module____qualname____firstlineno____doc__r   tag
_view_name_view_moduler   _view_module_version_model_namer   CSS_PROPERTIESalign_contentalign_items
align_self
border_topborder_rightborder_bottomborder_leftr,   displayflex	flex_flowheightjustify_contentjustify_itemsr-   margin
max_height	max_width
min_height	min_widthoverfloworderpaddingr+   r*   
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_arear3   r@   rD   propertyr(   __static_attributes____classcell__r7   s   @r8   r   r      s    &***5J2377T7BL"#CDHHdHS-(,,$,7K $ %35C%DPT[} @C  @C  IM  @C  @N ! #!/#0<@Ggiililrviliw   ")+9":FJQprruru{ru  sA $5TUYY_cYdJ4D7XY]]cg]hLDT8Z[__ei_jM$46VW[[ae[fKTd1LMQQW[Q\Fdt2NOSSY]S^G4D/HIMMSWMXD4RSWW]aWbITd1LMQQW[Q\F% ')+9':FJQuwwzwz  AEwz  xF #$H>$Y@BBE#4#. 4D/HIMMSWMXDTd1LMQQW[Q\F$5TUYY_cYdJ4RSWW]aWbI$5TUYY_cYdJ4RSWW]aWbIt3PQUU[_U`HDT0JKOOUYOZEdt2NOSSY]S^GDT0JKOOUYOZE
$4.F
G
K
KQU
K
VC )X!6~!ERV]|}  B  B  HL  B  MJDT0JKOOUYOZE !S`d  lK  L  P  P  VZ  P  [Jdt:^_ccimcnO<bcggmqgr$%PR`%`mq  y\  ]  a  a  gk  a  lNTd9\]aagkalNt3PQUU[_U`H $=deiiosit#DT@jkoouyoz!$4>fgkkqukvt3PQUU[_U`H$46VW[[ae[fK4RSWW]aWbI#4 k;/Fr:   r   c                   ,   ^  \ rS rSr\rU 4S jrSrU =r$ )LayoutTraitTypeq   c                    > [        U[        5      (       a  [        TU ]  XR                  " S0 UD65      $ [        TU ]  X5      $ )Nr/   )
isinstancedictr2   r   klass)r4   objvaluer7   s      r8   r   LayoutTraitType.validateu   s<    eT""7#C)<e)<==7#C//r:   r/   )	rF   rG   rH   rI   r   r~   r   ru   rv   rw   s   @r8   ry   ry   q   s    E0 0r:   ry   N)rJ   	traitletsr   r   r   r   widgetr   r	   _versionr   rP   r   ry   r/   r:   r8   <module>r      sD      B B $ 7.	a0V a0 
a0H0h 0r:   