@salesforce-ux/design-system
Version:
Salesforce Lightning Design System
1 lines • 6.03 kB
JavaScript
var SLDS;!function(){"use strict";var e,t={1594:function(e){e.exports=React},1630:function(e,t,n){n.r(t),n.d(t,{default:function(){return g},states:function(){return h}});var l=n(1594),r=n.n(l),s=n(4187),a=n.n(s),o=n(942),i=n.n(o),c=n(6955),m=function(e){var t=e.type,n=e.children,l=e.isLegacy,s=i()("warning"===t&&"slds-alert_warning","error"===t&&"slds-alert_error","offline"===t&&"slds-alert_offline"),a=i()(l&&"slds-theme_alert-texture","info"===t&&l&&"slds-theme_info","warning"===t&&l&&"slds-theme_warning","error"===t&&l&&"slds-theme_error","offline"===t&&l&&"slds-theme_offline");return r().createElement("div",{className:i()("slds-notify slds-notify_alert",s,a),role:"alert"},r().createElement("span",{className:"slds-assistive-text"},t),n,r().createElement("div",{className:"slds-notify__close"},r().createElement(c.A,{className:i()("warning"!==t&&"slds-button_icon-inverse"),symbol:"close",assistiveText:"Close",title:"Close",size:"small"})))};m.propTypes={type:a().oneOf(["info","warning","error","offline"]),children:a().node,isLegacy:a().bool},m.defaultProps={type:"info"};var f=m,d=n(538),u=n(6515),y=n(9214),g=[{id:"default",label:"Default",element:r().createElement(f,null,r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"user"}),r().createElement(y.A,{level:"2"},"Logged in as John Smith (johnsmith@acme.com). ",r().createElement(u.A,null,"Log out")))}],h=[{id:"theme-info",label:"Default (Theme Class - Deprecated)",element:r().createElement(f,{isLegacy:!0},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"user"}),r().createElement(y.A,{level:"2"},"Logged in as John Smith (johnsmith@acme.com). ",r().createElement(u.A,null,"Log out")))},{id:"warning",label:"Warning",element:r().createElement(f,{type:"warning"},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"warning"}),r().createElement(y.A,{level:"2"},"Your browser is outdated. Your Salesforce experience may be degraded."," ",r().createElement(u.A,null,"More Information")))},{id:"theme-warning",label:"Warning (Theme Class - Deprecated)",element:r().createElement(f,{type:"warning",isLegacy:!0},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"warning"}),r().createElement(y.A,{level:"2"},"Your browser is outdated. Your Salesforce experience may be degraded."," ",r().createElement(u.A,null,"More Information")))},{id:"error",label:"Error",element:r().createElement(f,{type:"error"},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"error"}),r().createElement(y.A,{level:"2"},"Your browser is currently not supported. Your Salesforce may be degraded."," ",r().createElement(u.A,null,"More Information")))},{id:"theme-error",label:"Error (Theme Class - Deprecated)",element:r().createElement(f,{type:"error",isLegacy:!0},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"error"}),r().createElement(y.A,{level:"2"},"Your browser is currently not supported. Your Salesforce may be degraded."," ",r().createElement(u.A,null,"More Information")))},{id:"offline",label:"Offline",element:r().createElement(f,{type:"offline"},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"offline"}),r().createElement(y.A,{level:"2"},"You are in offline mode. ",r().createElement(u.A,null,"More Information")))},{id:"theme-offline",label:"Offline (Theme Class - Deprecated)",element:r().createElement(f,{type:"offline",isLegacy:!0},r().createElement(d.UtilityIcon,{containerClassName:"slds-m-right_x-small",className:"slds-icon_x-small",assistiveText:!1,symbol:"offline"}),r().createElement(y.A,{level:"2"},"You are in offline mode. ",r().createElement(u.A,null,"More Information")))}]}},n={};function l(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,l),s.exports}l.m=t,l.amdO={},e=[],l.O=function(t,n,r,s){if(!n){var a=1/0;for(m=0;m<e.length;m++){n=e[m][0],r=e[m][1],s=e[m][2];for(var o=!0,i=0;i<n.length;i++)(!1&s||a>=s)&&Object.keys(l.O).every(function(e){return l.O[e](n[i])})?n.splice(i--,1):(o=!1,s<a&&(a=s));if(o){e.splice(m--,1);var c=r();void 0!==c&&(t=c)}}return t}s=s||0;for(var m=e.length;m>0&&e[m-1][2]>s;m--)e[m]=e[m-1];e[m]=[n,r,s]},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.j=752,function(){var e={518:0,752:0,1117:0,1252:0,1578:0,1974:0,2033:0,2274:0,2782:0,3140:0,4268:0,4583:0,4723:0,4924:0,6671:0,7217:0,7257:0,7385:0,7508:0,8167:0,8458:0};l.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,s,a=n[0],o=n[1],i=n[2],c=0;if(a.some(function(t){return 0!==e[t]})){for(r in o)l.o(o,r)&&(l.m[r]=o[r]);if(i)var m=i(l)}for(t&&t(n);c<a.length;c++)s=a[c],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(m)},n=self.webpackJsonpSLDS___internal_chunked_showcase=self.webpackJsonpSLDS___internal_chunked_showcase||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),l.nc=void 0;var r=l.O(void 0,[6790],function(){return l(1630)});r=l.O(r),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/showcase/./ui/components/alert/base/example.jsx.js"]=r}();