UNPKG

@salesforce-ux/design-system

Version:
1 lines 4.28 kB
var SLDS;!function(){"use strict";var e,t,n,r={1594:function(e){e.exports=React},1738:function(e,t,n){n.r(t),n.d(t,{getContents:function(){return h},getElement:function(){return d}});var r=n(1594),o=n.n(r),a=n(5671),l=n(6547),u=n(806),i=[{id:"default",label:"Default",element:o().createElement("div",{className:"slds-box slds-theme_default"},o().createElement("p",null,"This is a ",o().createElement("strong",null,"default")," theme and here is a"," ",o().createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"link"),"."))},{id:"shade",label:"Shade",element:o().createElement("div",{className:"slds-box slds-theme_shade"},o().createElement("p",null,"This is a ",o().createElement("strong",null,"default")," theme and here is a"," ",o().createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"link"),"."))},{id:"texture",label:"Shade with texture",element:o().createElement("div",{className:"slds-box slds-theme_shade slds-theme_alert-texture"},o().createElement("p",null,"This theme has the ",o().createElement("strong",null,"alert texture")," added to the default theme and has a"," ",o().createElement("a",{href:"#",onClick:function(e){return e.preventDefault()}},"link"),"."))}],c=a.XB.h2,f=a.XB.h3,s=a.XB.p,d=function(){return(0,r.createElement)(a.Ay,{},(0,r.createElement)("div",{className:"doc lead"},"Themes apply a set of color styles to an area."),c({id:"About-Themes"},"About Themes"),s({},"Use a color theme to apply color to the background and text. Some color themes apply a background image or texture."),c({id:"Base"},"Base"),(0,r.createElement)(l.A,null,(0,u.NO)(i,"default")),c({id:"Examples"},"Examples"),f({id:"Shade"},"Shade"),(0,r.createElement)(l.A,null,(0,u.NO)(i,"shade")),f({id:"Texture"},"Texture"),(0,r.createElement)(l.A,null,(0,u.NO)(i,"texture")))},h=function(){return(0,a.Qr)(d())}},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,a),n.exports}a.m=r,a.amdO={},e=[],a.O=function(t,n,r,o){if(!n){var l=1/0;for(f=0;f<e.length;f++){n=e[f][0],r=e[f][1],o=e[f][2];for(var u=!0,i=0;i<n.length;i++)(!1&o||l>=o)&&Object.keys(a.O).every(function(e){return a.O[e](n[i])})?n.splice(i--,1):(u=!1,o<l&&(l=o));if(u){e.splice(f--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var f=e.length;f>0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[n,r,o]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var l={};t=t||[null,n({}),n([]),n(n)];for(var u=2&r&&e;("object"==typeof u||"function"==typeof u)&&!~t.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(t){l[t]=function(){return e[t]}});return l.default=function(){return e},a.d(o,l),o},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.e=function(){return Promise.resolve()},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=2229,function(){var e={2229:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,l=n[0],u=n[1],i=n[2],c=0;if(l.some(function(t){return 0!==e[t]})){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(i)var f=i(a)}for(t&&t(n);c<l.length;c++)o=l[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(f)},n=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),a.nc=void 0;var l=a.O(void 0,[3540],function(){return a(1738)});l=a.O(l),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/utilities/themes/docs.mdx.js"]=l}();