# -*- coding: utf-8 -*-importtypingasTimporttextwrapimportdataclassesfromfunc_args.apiimportREQ,OPTfrom..type_enumimportTypeEnumfrom..mark_or_nodeimportBase,BaseNodefrom..markdown_helpersimportstrip_double_empty_line,doc_content_to_markdownifT.TYPE_CHECKING:# pragma: no coverfrom.node_paragraphimportNodeParagraphfrom.node_headingimportNodeHeadingfrom.node_bullet_listimportNodeBulletListfrom.node_ordered_listimportNodeOrderedListfrom.node_block_cardimportNodeBlockCardfrom.node_media_groupimportNodeMediaGroupfrom.node_media_singleimportNodeMediaSinglefrom.node_code_blockimportNodeCodeBlockfrom.node_task_listimportNodeTaskListfrom.node_ruleimportNodeRulefrom.node_decision_listimportNodeDecisionListfrom.node_extensionimportNodeExtension
[docs]@dataclasses.dataclass(frozen=True)classNodePanelAttrs(Base):""" Attributes for :class:`NodePanel`. :param panelType: Required. The visual style of the panel. One of: "info", "note", "tip", "warning", "error", "success", "custom". :param panelIcon: Optional. Custom icon for the panel (used with "custom" type). :param panelIconId: Optional. ID of the custom icon. :param panelIconText: Optional. Alt text for the panel icon. :param panelColor: Optional. Custom background color for the panel (used with "custom" type). :param localId: Optional. A unique identifier for the node. """panelType:T.Literal["info","note","tip","warning","error","success","custom",]=REQpanelIcon:str=OPTpanelIconId:str=OPTpanelIconText:str=OPTpanelColor:str=OPTlocalId:str=OPT
[docs]@dataclasses.dataclass(frozen=True)classNodePanel(BaseNode):""" A container element for highlighting and visually distinguishing content. The panel node is a top-level block node that wraps content in a styled box to draw attention. Different panel types provide visual cues for different purposes: - **info**: General information (blue) - **note**: Additional notes (purple) - **tip**: Helpful tips (green) - **warning**: Caution notices (yellow) - **error**: Error messages (red) - **success**: Success messages (green) - **custom**: User-defined styling with custom icon and color Reference: https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/panel/ """type:str=TypeEnum.panel.valueattrs:NodePanelAttrs=REQcontent:list[T.Union["NodeParagraph","NodeHeading","NodeBulletList","NodeOrderedList","NodeBlockCard","NodeMediaGroup","NodeMediaSingle","NodeCodeBlock","NodeTaskList","NodeRule","NodeDecisionList","NodeExtension",]]=REQ