UNPKG

@salesforce-ux/design-system

Version:
1 lines 49.3 kB
var SLDS="object"==typeof SLDS?SLDS:{};SLDS["__internal/chunked/docs/./ui/components/popovers/docs.mdx.js"]=function(e){function t(t){for(var l,o,i=t[0],r=t[1],c=t[2],m=0,u=[];m<i.length;m++)o=i[m],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&u.push(s[o][0]),s[o]=0;for(l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l]);for(d&&d(t);u.length;)u.shift()();return n.push.apply(n,c||[]),a()}function a(){for(var e,t=0;t<n.length;t++){for(var a=n[t],l=!0,i=1;i<a.length;i++){var r=a[i];0!==s[r]&&(l=!1)}l&&(n.splice(t--,1),e=o(o.s=a[0]))}return e}var l={},s={56:0},n=[];function o(t){if(l[t])return l[t].exports;var a=l[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=l,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)o.d(a,l,function(t){return e[t]}.bind(null,l));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/assets/scripts/bundle/";var i=this.webpackJsonpSLDS___internal_chunked_docs=this.webpackJsonpSLDS___internal_chunked_docs||[],r=i.push.bind(i);i.push=t,i=i.slice();for(var c=0;c<i.length;c++)t(i[c]);var d=r;return n.push([719,0]),a()}({0:function(e,t){e.exports=React},20:function(e,t){e.exports=ReactDOM},22:function(e,t){e.exports=JSBeautify},719:function(e,t,a){"use strict";a.r(t),a.d(t,"getElement",(function(){return X})),a.d(t,"getContents",(function(){return Z}));var l=a(0),s=a.n(l),n=a(4),o=a(2),i=(a(27),a(14)),r=a(28),c=a(45),d=a(38),m=a(9),u=function(e){return e.symbol?s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small",sprite:"utility",symbol:"favorite"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))):s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")},p=(d.a,d.a,d.a,d.a,d.a,d.a,d.a,d.a,a(7)),b=function(e){return s.a.createElement("section",{"aria-label":"Dialog title","aria-describedby":"popover-body-id",className:"slds-popover slds-nubbin_".concat(e.nubbinPosition),role:"dialog"},s.a.createElement(p.b,{className:"slds-button_icon slds-button_icon-small slds-float_right slds-popover__close",symbol:"close",assistiveText:"Close dialog",title:"Close dialog"}),s.a.createElement("div",{id:"popover-body-id",className:"slds-popover__body"},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum, quaerat? Accusamus excepturi eos, molestias expedita distinctio eligendi ut esse quasi!")))},h=[{context:"Nubbins",id:"left",label:"Nubbin Left",element:s.a.createElement(b,{nubbinPosition:"left"})},{context:"Nubbins",id:"left-top",label:"Nubbin Left (top)",element:s.a.createElement(b,{nubbinPosition:"left-top"})},{context:"Nubbins",id:"left-top-corner",label:"Nubbin Left (top corner)",element:s.a.createElement(b,{nubbinPosition:"left-top-corner"})},{context:"Nubbins",id:"left-bottom",label:"Nubbin Left (bottom)",element:s.a.createElement(b,{nubbinPosition:"left-bottom"})},{context:"Nubbins",id:"left-bottom-corner",label:"Nubbin Left (bottom corner)",element:s.a.createElement(b,{nubbinPosition:"left-bottom-corner"})},{context:"Nubbins",id:"top",label:"Nubbin Top",element:s.a.createElement(b,{nubbinPosition:"top"})},{context:"Nubbins",id:"top-left",label:"Nubbin Top (left)",element:s.a.createElement(b,{nubbinPosition:"top-left"})},{context:"Nubbins",id:"top-left-corner",label:"Nubbin Top (left corner)",element:s.a.createElement(b,{nubbinPosition:"top-left-corner"})},{context:"Nubbins",id:"top-right",label:"Nubbin Top (right)",element:s.a.createElement(b,{nubbinPosition:"top-right"})},{context:"Nubbins",id:"top-right-corner",label:"Nubbin Top (right corner)",element:s.a.createElement(b,{nubbinPosition:"top-right-corner"})},{context:"Nubbins",id:"right",label:"Nubbin Right",element:s.a.createElement(b,{nubbinPosition:"right"})},{context:"Nubbins",id:"right-top",label:"Nubbin Right (top)",element:s.a.createElement(b,{nubbinPosition:"right-top"})},{context:"Nubbins",id:"right-top-corner",label:"Nubbin Right (top corner)",element:s.a.createElement(b,{nubbinPosition:"right-top-corner"})},{context:"Nubbins",id:"right-bottom",label:"Nubbin Right (bottom)",element:s.a.createElement(b,{nubbinPosition:"right-bottom"})},{context:"Nubbins",id:"right-bottom-corner",label:"Nubbin Right (bottom corner)",element:s.a.createElement(b,{nubbinPosition:"right-bottom-corner"})},{context:"Nubbins",id:"bottom",label:"Nubbin Bottom",element:s.a.createElement(b,{nubbinPosition:"bottom"})},{context:"Nubbins",id:"bottom-left",label:"Nubbin Bottom (left)",element:s.a.createElement(b,{nubbinPosition:"bottom-left"})},{context:"Nubbins",id:"bottom-left-corner",label:"Nubbin Bottom (left corner)",element:s.a.createElement(b,{nubbinPosition:"bottom-left-corner"})},{context:"Nubbins",id:"bottom-right",label:"Nubbin Bottom (right)",element:s.a.createElement(b,{nubbinPosition:"bottom-right"})},{context:"Nubbins",id:"bottom-right-corner",label:"Nubbin Bottom (right corner)",element:s.a.createElement(b,{nubbinPosition:"bottom-right-corner"})}],E=a(72),f=a(51),g=a(1),_=g.d.uniqueId("dialog-heading-id-"),v=[{context:"Warning",id:"warning-default",label:"Warning – default",element:s.a.createElement(f.a,{className:"slds-popover_warning slds-nubbin_bottom-left",headingId:_,bodyClassName:"slds-popover_warning__body",header:s.a.createElement(E.b,{headingId:_,title:"Just a heads up…",symbol:"warning",iconDefault:!0}),closeButton:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},title:"Learn More"},"Learn More")))}],N=[{context:"Warning",id:"with-top-nubbin",label:"Warning With Top Nubbin",element:s.a.createElement(f.a,{className:"slds-popover_warning slds-nubbin_top",bodyClassName:"slds-popover_warning__body",headingId:_,header:s.a.createElement(E.b,{headingId:_,title:"Just a heads up…",symbol:"warning",iconDefault:!0}),closeButton:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},title:"Learn More"},"Learn More")))},{context:"Warning",id:"with-footer",label:"Warning With Footer",element:s.a.createElement(f.a,{className:"slds-popover_warning slds-nubbin_bottom-left",bodyClassName:"slds-popover_warning__body",headingId:_,header:s.a.createElement(E.b,{headingId:_,title:"Just a heads up…",symbol:"warning",iconDefault:!0}),footer:s.a.createElement(E.a,{isNeutral:!0}),closeButton:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},title:"Learn More"},"Learn More")))},{context:"Warning",id:"with-footer-brand-button",label:"Warning With Footer containing Brand button",element:s.a.createElement(f.a,{className:"slds-popover_warning slds-nubbin_bottom-left",bodyClassName:"slds-popover_warning__body",headingId:_,header:s.a.createElement(E.b,{headingId:_,title:"Just a heads up…",symbol:"warning",iconDefault:!0}),footer:s.a.createElement(E.a,{isBrand:!0}),closeButton:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},title:"Learn More"},"Learn More")))}],x=g.d.uniqueId("dialog-heading-id-"),y=function(e){return s.a.createElement("header",{className:"slds-popover__header slds-p-vertical_medium"},s.a.createElement("h2",{id:x,className:"slds-text-heading_medium"},e.title))},k=function(e){return s.a.createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},e.steps?s.a.createElement("span",{className:"slds-text-title"},"Step 2 of 4"):null,e.skipButton?s.a.createElement("button",{className:"slds-button slds-button_inverse slds-col_bump-left"},"Skip"):null,e.setupButton?s.a.createElement("button",{className:"slds-button slds-button_success slds-col_bump-left"},"Setup Email"):null,e.nextButton?s.a.createElement("button",{className:"slds-button slds-button_brand slds-col_bump-left"},"Next"):null,e.learnMoreButton?s.a.createElement("button",{className:"slds-button slds-button_neutral slds-col_bump-left"},"Learn More"):null)},O=[{context:"Walkthrough",id:"walkthrough-default",label:"Walkthrough default [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,nextButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))}],j=[{context:"Walkthrough",id:"micro-setup-dark",label:"Micro Setup [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,setupButton:!0,nextButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",id:"micro-setup-alternate-dark",label:"Micro Setup - Alternate [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0,setupButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",id:"micro-setup-in-page-dark",label:"Micro Setup - In Page [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_bottom",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",id:"micro-setup-inline-form-dark",label:"Micro Setup - Inline Form [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0,nextButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),s.a.createElement("div",{className:"slds-form-element slds-p-top_small"},s.a.createElement("label",{className:"slds-form-element__label slds-assistive-text",htmlFor:"email-text-input-01"},"Email Address"),s.a.createElement("div",{className:"slds-form-element__control"},s.a.createElement("input",{id:"email-text-input-01",className:"slds-input",type:"text",placeholder:"Email Address"}))))},{context:"Walkthrough",id:"action-popover-dark",label:"Action Popover [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",title:"Dialog Title",closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",{className:"slds-text-heading_small"},"Text that describes the action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))},{context:"Walkthrough",id:"action-popover-heading-dark",label:"Action Popover - With Heading [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:x,className:"slds-text-heading_small"},"Action title"),s.a.createElement("p",null,"Text that describes the action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))},{context:"Walkthrough",id:"action-popover-with-link-dark",label:"Action Popover - With Link [dark]",element:s.a.createElement(f.a,{className:"slds-popover_dark slds-nubbin_left",headingId:x,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:x,className:"slds-text-heading_small"},"Action title"),s.a.createElement("p",null,"Text that describes the action"),s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Take Action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))},{context:"Walkthrough",deprecated:!0,id:"micro-setup",label:"Deprecated – Micro Setup",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,setupButton:!0,nextButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",deprecated:!0,id:"micro-setup-alternate",label:"Deprecated – Micro Setup - Alternate",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0,setupButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",deprecated:!0,id:"micro-setup-in-page",label:"Deprecated – Micro Setup - In Page",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-nubbin_bottom",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))},{context:"Walkthrough",deprecated:!0,id:"micro-setup-inline-form",label:"Deprecated – Micro Setup - Inline Form",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-nubbin_left",headingId:x,header:s.a.createElement(y,{title:"Walkthrough title"}),footer:s.a.createElement(k,{steps:!0,skipButton:!0,nextButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),s.a.createElement("div",{className:"slds-form-element slds-p-top_small"},s.a.createElement("label",{className:"slds-form-element__label slds-assistive-text",htmlFor:"email-text-input-01"},"Email Address"),s.a.createElement("div",{className:"slds-form-element__control"},s.a.createElement("input",{id:"email-text-input-01",className:"slds-input",type:"text",placeholder:"Email Address"}))))},{context:"Walkthrough",deprecated:!0,id:"action-popover",label:"Deprecated – Action Popover",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-popover_walkthrough-alt slds-nubbin_left",title:"Dialog Title",closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",{className:"slds-text-heading_small"},"Text that describes the action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))},{context:"Walkthrough",deprecated:!0,id:"action-popover-heading",label:"Deprecated – Action Popover - With Heading",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-popover_walkthrough-alt slds-nubbin_left",headingId:x,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:x,className:"slds-text-heading_small"},"Action title"),s.a.createElement("p",null,"Text that describes the action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))},{context:"Walkthrough",deprecated:!0,id:"action-popover-with-link",label:"Deprecated – Action Popover - With Link",element:s.a.createElement(f.a,{className:"slds-popover_walkthrough slds-popover_walkthrough-alt slds-nubbin_left",headingId:x,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"touch_action"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:x,className:"slds-text-heading_small"},"Action title"),s.a.createElement("p",null,"Text that describes the action"),s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Take Action"),s.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},"Step 3 of 4"))))}],w=g.d.uniqueId("dialog-heading-id-"),P=[{context:"Feature",id:"feature-default",label:"Feature default [dark]",element:s.a.createElement(d.a,{className:"slds-popover_dark slds-nubbin_left",title:"Dialog Title",closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",{className:"slds-text-heading_small"},"Shelly, it seems you frequent this record. Try favoriting it for easy access."))))}],S=[{context:"Feature",id:"icon-text-dark",label:"With icon and text [dark]",element:s.a.createElement(d.a,{className:"slds-popover_dark slds-nubbin_left",title:"Dialog Title",closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"favorite"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",{className:"slds-text-heading_small"},"Shelly, it seems you frequent this record. Try favoriting it for easy access."))))},{context:"Feature",id:"icon-header-text-link-dark",label:"With icon, header, text, and link [dark]",element:s.a.createElement(d.a,{className:"slds-popover_dark slds-nubbin_left",headingId:w,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"smiley_and_people"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Learn More")))))},{context:"Feature",id:"icon-header-text-dark",label:"With icon, header, and text [dark]",element:s.a.createElement(d.a,{className:"slds-popover_dark slds-nubbin_left",headingId:w,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"description"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))))},{context:"Feature",id:"icon-header-text-footer-dark",label:"With icon, header, text, and footer [dark]",element:s.a.createElement(d.a,{className:"slds-popover_dark slds-nubbin_left",headingId:w,footer:s.a.createElement(k,{learnMoreButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"favorite"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))))},{context:"Feature",deprecated:!0,id:"icon-text",label:"Deprecated – With icon and text",element:s.a.createElement(d.a,{className:"slds-popover_walkthrough slds-popover_feature slds-nubbin_left",title:"Dialog Title",closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"favorite"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("p",{className:"slds-text-heading_small"},"Shelly, it seems you frequent this record. Try favoriting it for easy access."))))},{context:"Feature",deprecated:!0,id:"icon-header-text-link",label:"Deprecated – With icon, header, text, and link",element:s.a.createElement(d.a,{className:"slds-popover_walkthrough slds-popover_feature slds-nubbin_left",headingId:w,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"smiley_and_people"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."," ",s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Learn More")))))},{context:"Feature",deprecated:!0,id:"icon-header-text",label:"Deprecated – With icon, header, and text",element:s.a.createElement(d.a,{className:"slds-popover_walkthrough slds-popover_feature slds-nubbin_left",headingId:w,closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"description"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))))},{context:"Feature",deprecated:!0,id:"icon-header-text-footer",label:"Deprecated – With icon, header, text, and footer",element:s.a.createElement(d.a,{className:"slds-popover_walkthrough slds-popover_feature slds-nubbin_left",headingId:w,footer:s.a.createElement(k,{learnMoreButton:!0}),closeButton:!0,inverse:!0},s.a.createElement("div",{className:"slds-media"},s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:"description of icon when needed"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small slds-icon-text-default",sprite:"utility",symbol:"favorite"}),s.a.createElement("span",{className:"slds-assistive-text"},"Description of icon"))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:w,className:"slds-text-heading_small"},"Feature title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))))}],W=a(81),B=s.a.createElement("span",{className:"slds-icon_container slds-icon-standard-opportunity"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small",sprite:"standard",symbol:"opportunity"}),s.a.createElement("span",{className:"slds-assistive-text"},"Opportunities")),L=s.a.createElement("span",{className:"slds-icon_container slds-icon-standard-case"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small",sprite:"standard",symbol:"case"}),s.a.createElement("span",{className:"slds-assistive-text"},"Cases")),D=function(){return s.a.createElement("dd",{className:"slds-m-top_x-small slds-text-align_right"},s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},title:"View all Opportunities"},"View All"))},T=[{id:"panels-default",label:"Panels – default",element:s.a.createElement("section",{"aria-labelledby":"panel-heading-id",className:"slds-popover slds-popover_panel slds-nubbin_left-top",role:"dialog"},s.a.createElement(p.b,{className:"slds-button_icon slds-button_icon-small slds-float_right slds-popover__close",symbol:"close",assistiveText:"Close dialog",title:"Close dialog"}),s.a.createElement("div",{className:"slds-popover__header"},s.a.createElement("header",{className:"slds-media slds-media_center slds-m-bottom_small"},s.a.createElement("span",{className:"slds-icon_container slds-icon-standard-account slds-media__figure"},s.a.createElement(m.a,{className:"slds-icon slds-icon_small",sprite:"standard",symbol:"account"})),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{className:"slds-text-heading_medium slds-hyphenate",id:"panel-heading-id"},s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Tesla Motors")))),s.a.createElement("footer",{className:"slds-grid slds-wrap slds-grid_pull-padded"},s.a.createElement("div",{className:"slds-p-horizontal_small slds-size_1-of-2 slds-p-bottom_x-small"},s.a.createElement("dl",null,s.a.createElement("dt",null,s.a.createElement("p",{className:"slds-popover_panel__label slds-truncate",title:"Billing Address"},"Billing Address")),s.a.createElement("dd",null,s.a.createElement("p",{className:"slds-truncate",title:"3500 Deer Creek Rd."},"3500 Deer Creek Rd."),s.a.createElement("p",{className:"slds-truncate",title:"Palo Alto, CA 94304"},"Palo Alto, CA 94304")))),s.a.createElement("div",{className:"slds-p-horizontal_small slds-size_1-of-2 slds-p-bottom_x-small"},s.a.createElement("dl",null,s.a.createElement("dt",null,s.a.createElement("p",{className:"slds-popover_panel__label slds-truncate",title:"Phone"},"Phone")),s.a.createElement("dd",null,s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"212-345-3485")))),s.a.createElement("div",{className:"slds-p-horizontal_small slds-size_1-of-2 slds-p-bottom_x-small"},s.a.createElement("dl",null,s.a.createElement("dt",null,s.a.createElement("p",{className:"slds-popover_panel__label slds-truncate",title:"Website"},"Website")),s.a.createElement("dd",null,s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"teslamotors.com")))),s.a.createElement("div",{className:"slds-p-horizontal_small slds-size_1-of-2 slds-p-bottom_x-small"},s.a.createElement("dl",null,s.a.createElement("dt",null,s.a.createElement("p",{className:"slds-popover_panel__label slds-truncate",title:"Account Owner"},"Account Owner")),s.a.createElement("dd",null,s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Jeff Maguire")))))),s.a.createElement("div",{className:"slds-popover__body"},s.a.createElement("dl",{className:"slds-popover__body-list"},s.a.createElement("dt",{className:"slds-m-bottom_small"},s.a.createElement(W.a,{figureLeft:B,flavor:"center"},s.a.createElement("p",{className:"slds-text-heading_small slds-hyphenate"},"Opportunities (2+)"))),s.a.createElement("dd",{className:"slds-m-top_x-small"},s.a.createElement("p",{className:"slds-truncate",title:"Tesla - Mule ESB"},s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Tesla - Mule ESB")),s.a.createElement("dl",{className:"slds-list_horizontal slds-wrap slds-text-body_small"},s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Value"},"Value"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"$500,000"},"$500,000"),s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Close Date"},"Close Date"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"Dec 15, 2015"},"Dec 15, 2015"))),s.a.createElement("dd",{className:"slds-m-top_x-small"},s.a.createElement("p",{className:"slds-truncate",title:"Tesla - Anypoint Studios"},s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Tesla - Anypoint Studios")),s.a.createElement("dl",{className:"slds-list_horizontal slds-wrap slds-text-body_small"},s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Value"},"Value"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"$60,000"},"$60,000"),s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Close Date"},"Close Date"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"Jan 15, 2016"},"Jan 15, 2016"))),s.a.createElement(D,null)),s.a.createElement("dl",{className:"slds-popover__body-list"},s.a.createElement("dt",{className:"slds-m-bottom_small"},s.a.createElement(W.a,{figureLeft:L,flavor:"center"},s.a.createElement("p",{className:"slds-text-heading_small slds-hyphenate"},"Cases (1)"))),s.a.createElement("dd",{className:"slds-m-top_x-small"},s.a.createElement("p",{className:"slds-truncate",title:"Tesla - Anypoint Studios"},s.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"Tesla - Anypoint Studios")),s.a.createElement("dl",{className:"slds-list_horizontal slds-wrap slds-text-body_small"},s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Value"},"Value"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"$60,000"},"$60,000"),s.a.createElement("dt",{className:"slds-item_label slds-text-color_weak slds-truncate",title:"Close Date"},"Close Date"),s.a.createElement("dd",{className:"slds-item_detail slds-text-color_weak slds-truncate",title:"Jan 15, 2016"},"Jan 15, 2016"))),s.a.createElement(D,null))))}],A=a(5),C=a.n(A),F="height: 13rem;",I=g.d.uniqueId("dialog-heading-id-"),M=function(e){return s.a.createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},e.dismissButtonLabel&&s.a.createElement("button",{className:"slds-button slds-button_neutral slds-col_bump-right"},e.dismissButtonLabel),e.actionLinkText&&s.a.createElement("span",{className:"slds-popover_prompt__action-link"},s.a.createElement("a",{href:"#",className:"slds-button"},e.actionLinkText)),e.brandButtonLabel&&s.a.createElement("button",{className:"slds-button slds-button_brand"},e.brandButtonLabel))},q=function(e){var t={"slds-popover_prompt_top":"top"===e.position,"slds-popover_prompt_top-right":"top-right"===e.position,"slds-popover_prompt_top-left":"top-left"===e.position,"slds-popover_prompt_bottom":"bottom"===e.position,"slds-popover_prompt_bottom-left":"bottom-left"===e.position,"slds-popover_prompt_bottom-right":"bottom-right"===e.position};return s.a.createElement(d.a,{className:C()("slds-popover_prompt",t,e.className),bodyClassName:e.bodyClassName,headingId:I,footer:e.showFooter&&s.a.createElement(M,{dismissButtonLabel:"Dismiss",actionLinkText:"Learn More",brandButtonLabel:"Save"}),closeButton:!0},s.a.createElement("div",{className:"slds-media"},e.symbol&&s.a.createElement("div",{className:"slds-media__figure"},s.a.createElement("span",{className:"slds-icon_container",title:e.assistiveText},s.a.createElement(m.a,{className:C()("slds-icon slds-icon_small slds-icon-text-default",e.iconClassName),sprite:"utility",symbol:e.symbol}),s.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText))),s.a.createElement("div",{className:"slds-media__body"},s.a.createElement("h2",{id:I,className:"slds-popover_prompt__heading"},"Prompt title"),s.a.createElement("p",null,"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."))))},R=[{context:"Prompt",id:"prompt-default",label:"Prompt – default",element:s.a.createElement(q,{symbol:"prompt"})}],z=[{context:"Prompt",id:"top-left",label:"Positioned: top left",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"top-left"})},{context:"Prompt",id:"top-center",label:"Positioned: top center",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"top"})},{context:"Prompt",id:"top-right",label:"Positioned: top right",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"top-right"})},{context:"Prompt",id:"bottom-right",label:"Positioned: bottom right",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"bottom-right"})},{context:"Prompt",id:"bottom-center",label:"Positioned: bottom center",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"bottom"})},{context:"Prompt",id:"bottom-left",label:"Positioned: bottom left",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",showFooter:!0,position:"bottom-left"})},{context:"Prompt",id:"brand-with-footer",label:"Prompt: branded with footer",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",position:"top",showFooter:!0,className:"slds-popover_brand",iconClassName:"slds-popover__icon"})},{context:"Prompt",id:"brand-without-footer",label:"Prompt: branded without footer",demoStyles:F,storybookStyles:!0,element:s.a.createElement(q,{symbol:"prompt",position:"top",className:"slds-popover_brand slds-popover_brand-bottom",iconClassName:"slds-popover__icon"})}],H=a(40),J=n.c.code,V=n.c.h2,$=n.c.h3,U=n.c.h4,Y=n.c.li,G=n.c.p,K=n.c.strong,Q=n.c.ul,X=function(){return Object(l.createElement)(n.b,{},Object(l.createElement)("div",{className:"doc lead"},"A popover is a non-modal dialog. The component should be paired with a clickable trigger element and contain at least one focusable element."),Object(l.createElement)(o.a,{exampleOnly:!0},Object(g.f)(h,"bottom")),V({id:"About-Popovers"},"About Popovers"),G({},"A popover is used to display contextual information to the user."),G({},"A popover can accept the following nubbin position classes, ",J({},".slds-nubbin_left"),", ",J({},".slds-nubbin_left-top"),", ",J({},".slds-nubbin_left-bottom"),", ",J({},".slds-nubbin_top-left"),", ",J({},".slds-nubbin_top-right"),", ",J({},".slds-nubbin_right-top"),", ",J({},".slds-nubbin_right-bottom"),", ",J({},".slds-nubbin_bottom-left"),", ",J({},".slds-nubbin_bottom-right"),"."),$({id:"Accessibility"},"Accessibility"),U({id:"Notable-features"},"Notable features"),Q({},Y({},"Popovers ",K({},"must")," come with a triggering button"),Y({},"They ",K({},"must")," have at least one focusable element inside"),Y({},"They ",K({},"should")," be implemented as a keyboard focus trap"),Y({},"When triggered, user focus should be placed on the first focusable element that isn't the close button. If the close button is the only focusable element, focus should be placed there"),Y({},"Pressing the Escape the key as well as clicking the close button should close the Popover"),Y({},"User focus should be placed back on the triggering button when the popover is closed")),G({},"Panel Popovers can be shown on mouse hover but for keyboard or screen reader users, a button should be present ",K({},"in addition")," and next to the hover trigger. This is due to the focus moving and trapping nature of non-modal dialogs. You ",K({},"should not")," move a user's focus without their expressed intent."),U({id:"Notable-attributes"},"Notable attributes"),Q({},Y({},"The Popover element should have ",J({},'role="dialog"')," applied"),Y({},"The ",J({},"dialog")," should be labelled, this can be achieved in two ways:",Q({},Y({},"Apply the ",J({},"aria-labelledby")," attribute to the ",J({},"dialog")," element and set the value to be the ID of the main Heading element in the Popover (if it provides a good and meaningful title to the ",J({},"dialog"),")"),Y({},"If no Heading element is present, use the ",J({},"aria-label")," attribute and set the value to be a meaningful title of the ",J({},"dialog")))),Y({},"The ",J({},"dialog")," should be described where possible. This can be achieved by applying the ",J({},"aria-describedby")," attribute to the ",J({},"dialog")," element and set the value to be the id of the Popover body"),Y({},"The triggering element ",K({},"must")," have ",J({},'aria-haspopup="true"')," when the popover is opened and ",J({},'aria-haspopup="false"')," when the popover is closed")),V({id:"Base"},"Base"),Object(l.createElement)(o.a,null,Object(g.f)(d.b)),$({id:"With-Header"},"With Header"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"header")),$({id:"With-Footer"},"With Footer"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"footer")),$({id:"With-Badge"},"With Badge"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"badge")),$({id:"Scrolling-region-with-max-height"},"Scrolling region with max-height"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"scrolling")),V({id:"Widths"},"Widths"),$({id:"Small"},"Small"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"width-small")),$({id:"Medium"},"Medium"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"width-medium")),$({id:"Large"},"Large"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"width-large")),$({id:"Full-Width"},"Full Width"),Object(l.createElement)(o.a,null,Object(g.f)(d.c,"width-full-width")),V({id:"Nubbins"},"Nubbins"),$({id:"Left"},"Left"),Object(l.createElement)(c.a,null,Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Left"),Object(l.createElement)(o.a,null,Object(g.f)(h,"left"))),Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Left Top"),Object(l.createElement)(o.a,null,Object(g.f)(h,"left-top"))),Object(l.createElement)(r.a,{columnCount:"1"},Object(l.createElement)("strong",null,"Left Bottom"),Object(l.createElement)(o.a,null,Object(g.f)(h,"left-bottom")))),$({id:"Right"},"Right"),Object(l.createElement)(c.a,null,Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Right"),Object(l.createElement)(o.a,null,Object(g.f)(h,"right"))),Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Right Top"),Object(l.createElement)(o.a,null,Object(g.f)(h,"right-top"))),Object(l.createElement)(r.a,{columnCount:"1"},Object(l.createElement)("strong",null,"Right Bottom"),Object(l.createElement)(o.a,null,Object(g.f)(h,"right-bottom")))),$({id:"Top"},"Top"),Object(l.createElement)(c.a,null,Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Top"),Object(l.createElement)(o.a,null,Object(g.f)(h,"top"))),Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Top Left"),Object(l.createElement)(o.a,null,Object(g.f)(h,"top-left"))),Object(l.createElement)(r.a,{columnCount:"1"},Object(l.createElement)("strong",null,"Top Right"),Object(l.createElement)(o.a,null,Object(g.f)(h,"top-right")))),$({id:"Bottom"},"Bottom"),Object(l.createElement)(c.a,null,Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Bottom"),Object(l.createElement)(o.a,null,Object(g.f)(h,"bottom"))),Object(l.createElement)(r.a,null,Object(l.createElement)("strong",null,"Bottom Left"),Object(l.createElement)(o.a,null,Object(g.f)(h,"bottom-left"))),Object(l.createElement)(r.a,{columnCount:"1"},Object(l.createElement)("strong",null,"Bottom Right"),Object(l.createElement)(o.a,null,Object(g.f)(h,"bottom-right")))),V({id:"Feedback-States"},"Feedback States"),$({id:"Error"},"Error"),Object(l.createElement)(o.a,null,Object(g.f)(E.c)),U({id:"With-Footer-2"},"With Footer"),Object(l.createElement)(o.a,null,Object(g.f)(E.d,"with-footer")),U({id:"With-Bullet-List"},"With Bullet List"),Object(l.createElement)(o.a,null,Object(g.f)(E.d,"with-bullet-list")),$({id:"Warning"},"Warning"),Object(l.createElement)(o.a,null,Object(g.f)(v)),U({id:"With-Footer-3"},"With Footer"),Object(l.createElement)(o.a,null,Object(g.f)(N,"with-footer")),V({id:"Examples"},"Examples"),$({id:"Walkthrough"},"Walkthrough"),Object(l.createElement)(o.a,null,Object(g.f)(O)),U({id:"Micro-Setup"},"Micro Setup"),Object(l.createElement)(o.a,null,Object(g.f)(j,"micro-setup-dark")),U({id:"Micro-Setup-Alternate"},"Micro Setup - Alternate"),Object(l.createElement)(o.a,null,Object(g.f)(j,"micro-setup-alternate-dark")),U({id:"Micro-Setup-In-Page"},"Micro Setup - In Page"),Object(l.createElement)(o.a,null,Object(g.f)(j,"micro-setup-in-page-dark")),U({id:"Micro-Setup-Inline-Form"},"Micro Setup - Inline Form"),Object(l.createElement)(o.a,null,Object(g.f)(j,"micro-setup-inline-form-dark")),U({id:"Action"},"Action"),Object(l.createElement)(o.a,null,Object(g.f)(j,"action-popover-dark")),U({id:"Action-With-Heading"},"Action - With Heading"),Object(l.createElement)(o.a,null,Object(g.f)(j,"action-popover-heading-dark")),U({id:"Action-With-Link"},"Action - With Link"),Object(l.createElement)(o.a,null,Object(g.f)(j,"action-popover-with-link-dark")),$({id:"Feature"},"Feature"),Object(l.createElement)(o.a,null,Object(g.f)(P)),U({id:"With-icon-and-text"},"With icon and text"),Object(l.createElement)(o.a,null,Object(g.f)(S,"icon-text-dark")),U({id:"With-icon-header-and-text"},"With icon, header, and text"),Object(l.createElement)(o.a,null,Object(g.f)(S,"icon-header-text-dark")),U({id:"With-icon-header-text-and-link"},"With icon, header, text and link"),Object(l.createElement)(o.a,null,Object(g.f)(S,"icon-header-text-link-dark")),U({id:"With-icon-header-text-and-footer"},"With icon, header, text and footer"),Object(l.createElement)(o.a,null,Object(g.f)(S,"icon-header-text-footer-dark")),$({id:"Record-Preview-Panel"},"Record Preview Panel"),Object(l.createElement)(o.a,null,Object(g.f)(T)),$({id:"Prompt"},"Prompt"),Object(l.createElement)(o.a,null,Object(g.f)(R)),U({id:"Positioned-top-left"},"Positioned top left"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"top-left")),U({id:"Positioned-top-center"},"Positioned top center"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"top-center")),U({id:"Positioned-top-right"},"Positioned top right"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"top-right")),U({id:"Positioned-bottom-right"},"Positioned bottom right"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"bottom-right")),U({id:"Positioned-bottom-center"},"Positioned bottom center"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"bottom-center")),U({id:"Positioned-bottom-left"},"Positioned bottom left"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"bottom-left")),U({id:"With-brand-color-and-footer"},"With brand color and footer"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"brand-with-footer")),U({id:"With-brand-color-no-footer"},"With brand color - no footer"),Object(l.createElement)(o.a,{demoStyles:"height: 250px;"},Object(g.f)(z,"brand-without-footer")),V({id:"Styling-Hooks-Overview"},"Styling Hooks Overview"),Object(l.createElement)(i.a,{header:"A Note About z-index"},Object(l.createElement)("p",null,"By default, Popovers use the ",Object(l.createElement)("code",null,"$z-index-dialog")," (",Object(l.createElement)("a",{href:"/design-tokens/#category-z-index"},"value of 6000"),") token. This allows the Popover to appear above the element that triggered it, and in the vast majority of cases should work well out of the box. However, depending on where the Popover code lives when it's triggered, layout issues could arise."),Object(l.createElement)("p",null,"For this particular use case, the ",Object(l.createElement)("code",null,"--slds-c-popover-position-zindex")," ",Object(l.createElement)("a",{href:"/platforms/lightning/styling-hooks/"},"Styling Hook")," allows developers to change the z-index value. ",Object(l.createElement)("strong",null,"Please note"),": when this value is changed, the responsibility is on the developer to maintain the CSS stacking order.")),Object(l.createElement)(H.a,{name:"popovers",type:"component"}))},Z=function(){return Object(n.a)(X())}}});