UNPKG

@salesforce-ux/design-system

Version:
1 lines 5.63 kB
var SLDS;!function(){"use strict";var e,n,t,l={1594:function(e){e.exports=React},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM},8211:function(e,n,t){t.r(n),t.d(n,{getContents:function(){return f},getElement:function(){return u}});var l=t(1594),r=t.n(l),i=t(5671),a=t(6547),o=t(806),s=[{id:"description-list",label:"Default",element:r().createElement("dl",null,r().createElement("dt",null,"First Label:"),r().createElement("dd",null,"Description for first label"),r().createElement("dt",null,"Second Label:"),r().createElement("dd",null,"Description for second label"))},{id:"description-list-horizontal",label:"Horizontal",element:r().createElement("dl",{className:"slds-dl_horizontal"},r().createElement("dt",{className:"slds-dl_horizontal__label"},"First Label:"),r().createElement("dd",{className:"slds-dl_horizontal__detail"},"Description for first label"),r().createElement("dt",{className:"slds-dl_horizontal__label"},"Second Label:"),r().createElement("dd",{className:"slds-dl_horizontal__detail"},"Second description"))},{id:"horizontal-narrow",label:"Horizontal - Within narrow region",element:r().createElement("div",{className:"slds-region_narrow",style:{width:"360px"}},r().createElement("dl",{className:"slds-dl_horizontal"},r().createElement("dt",{className:"slds-dl_horizontal__label"},"First Label:"),r().createElement("dd",{className:"slds-dl_horizontal__detail"},"Description for first label"),r().createElement("dt",{className:"slds-dl_horizontal__label"},"Second Label:"),r().createElement("dd",{className:"slds-dl_horizontal__detail"},"Second description")))},{id:"description-list-inline",label:"Inline",element:r().createElement("dl",{className:"slds-dl_inline"},r().createElement("dt",{className:"slds-dl_inline__label"},"First Label:"),r().createElement("dd",{className:"slds-dl_inline__detail"},"Description for first label"),r().createElement("dt",{className:"slds-dl_inline__label"},"Second Label:"),r().createElement("dd",{className:"slds-dl_inline__detail"},"Description for second label"))},{id:"inline-narrow",label:"Inline - Within narrow region",element:r().createElement("div",{className:"slds-region_narrow",style:{width:"360px"}},r().createElement("dl",{className:"slds-dl_inline"},r().createElement("dt",{className:"slds-dl_inline__label"},"First Label:"),r().createElement("dd",{className:"slds-dl_inline__detail"},"Description for first label"),r().createElement("dt",{className:"slds-dl_inline__label"},"Second Label:"),r().createElement("dd",{className:"slds-dl_inline__detail"},"Second description")))}],d=i.XB.h2,c=i.XB.h3,u=function(){return(0,l.createElement)(i.Ay,{},(0,l.createElement)("div",{className:"doc lead"},"A description list"),d({id:"Base"},"Base"),(0,l.createElement)(a.A,null,(0,o.NO)(s,"description-list")),d({id:"Examples"},"Examples"),c({id:"Inline"},"Inline"),(0,l.createElement)(a.A,null,(0,o.NO)(s,"description-list-inline")),c({id:"Inline-Narrow"},"Inline Narrow"),(0,l.createElement)(a.A,null,(0,o.NO)(s,"inline-narrow")),c({id:"Horizontal"},"Horizontal"),(0,l.createElement)(a.A,null,(0,o.NO)(s,"description-list-horizontal")),c({id:"Horizontal-Narrow"},"Horizontal Narrow"),(0,l.createElement)(a.A,null,(0,o.NO)(s,"horizontal-narrow")))},f=function(){return(0,i.Qr)(u())}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var t=r[e]={id:e,exports:{}};return l[e](t,t.exports,i),t.exports}i.m=l,i.amdO={},e=[],i.O=function(n,t,l,r){if(!t){var a=1/0;for(c=0;c<e.length;c++){t=e[c][0],l=e[c][1],r=e[c][2];for(var o=!0,s=0;s<t.length;s++)(!1&r||a>=r)&&Object.keys(i.O).every(function(e){return i.O[e](t[s])})?t.splice(s--,1):(o=!1,r<a&&(a=r));if(o){e.splice(c--,1);var d=l();void 0!==d&&(n=d)}}return n}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,l,r]},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,l){if(1&l&&(e=this(e)),8&l)return e;if("object"==typeof e&&e){if(4&l&&e.__esModule)return e;if(16&l&&"function"==typeof e.then)return e}var r=Object.create(null);i.r(r);var a={};n=n||[null,t({}),t([]),t(t)];for(var o=2&l&&e;("object"==typeof o||"function"==typeof o)&&!~n.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(function(n){a[n]=function(){return e[n]}});return a.default=function(){return e},i.d(r,a),r},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.e=function(){return Promise.resolve()},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=9200,function(){var e={9200:0};i.O.j=function(n){return 0===e[n]};var n=function(n,t){var l,r,a=t[0],o=t[1],s=t[2],d=0;if(a.some(function(n){return 0!==e[n]})){for(l in o)i.o(o,l)&&(i.m[l]=o[l]);if(s)var c=s(i)}for(n&&n(t);d<a.length;d++)r=a[d],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(c)},t=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}(),i.nc=void 0;var a=i.O(void 0,[3540],function(){return i(8211)});a=i.O(a),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/utilities/description-list/docs.mdx.js"]=a}();