mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["cac28fca"],{"0a7e76ba":function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("479180ec");var n=s("a9d1a279"),i=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Alert,{message:"Success Text",description:"Success Description Success Description Success Description",type:"success"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Info Text",description:"Info Description Info Description Info Description Info Description",type:"info"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Warning Text",description:"Warning Description Warning Description Warning Description Warning Description",type:"warning"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Error Text",description:"Error Description Error Description Error Description Error Description",type:"error"})]});},"0e834fee":function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return c;}});var t=s("f19d2b93");s("e46d1346");var n=s("5b220c3d"),i=s("a9d1a279");let{ErrorBoundary:o}=i.Alert,a=()=>{let[e,r]=(0,n.useState)();if(e)throw e;return(0,t.jsx)(i.Button,{danger:!0,onClick:()=>{r(Error("An Uncaught Error"));},children:"Click me to throw a error"});};var c=()=>(0,t.jsx)(o,{children:(0,t.jsx)(a,{})});},"2454f05d":function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("53e15da5");var n=s("a9d1a279"),i=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Alert,{message:"Success Text",type:"success"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Info Text",type:"info"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Warning Text",type:"warning"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Error Text",type:"error"})]});},49663782:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("2b1266c5");var n=s("a9d1a279"),i=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Alert,{message:"Success Tips",type:"success",showIcon:!0,action:(0,t.jsx)(n.Button,{size:"small",type:"text",children:"UNDO"}),closable:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Error Text",showIcon:!0,description:"Error Description Error Description Error Description Error Description",type:"error",action:(0,t.jsx)(n.Button,{size:"small",danger:!0,children:"Detail"})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Warning Text",type:"warning",action:(0,t.jsx)(n.Space,{children:(0,t.jsx)(n.Button,{type:"text",size:"small",children:"Done"})}),closable:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Info Text",description:"Info Description Info Description Info Description Info Description",type:"info",action:(0,t.jsxs)(n.Space,{direction:"vertical",children:[(0,t.jsx)(n.Button,{size:"small",type:"primary",children:"Accept"}),(0,t.jsx)(n.Button,{size:"small",danger:!0,ghost:!0,children:"Decline"})]}),closable:!0})]});},"86aff9ab":function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("528341f3");var n=s("a9d1a279"),i=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Alert,{message:"Warning text",banner:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Very long warning text warning text text text text text text text",banner:!0,closable:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{showIcon:!1,message:"Warning text without icon",banner:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{type:"error",message:"Error text",banner:!0})]});},87072025:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return o;}});var t=s("f19d2b93");s("9fbf2509");var n=s("5b220c3d"),i=s("a9d1a279"),o=()=>{let[e,r]=(0,n.useState)(!0);return(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(i.Alert,{message:"Alert Message Text",type:"success",closable:!0,afterClose:()=>{r(!1);}}),(0,t.jsx)("p",{children:"click the close button to see the effect"}),(0,t.jsx)(i.Switch,{onChange:r,checked:e,disabled:e})]});};},b14ecde5:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return a;}});var t=s("777fffbe"),n=s("f19d2b93");s("b03e9810");var i=s("a9d1a279"),o=t._(s("8461cc49")),a=()=>(0,n.jsx)(i.Alert,{banner:!0,message:(0,n.jsx)(o.default,{pauseOnHover:!0,gradient:!1,children:"I can be a React component, multiple React components, or just some text."})});},bc61fe82:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return a;}});var t=s("f19d2b93");s("b50a2fbc");var n=s("e22febe0"),i=s("a9d1a279");let o=(0,t.jsx)(n.SmileOutlined,{});var a=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Alert,{icon:o,message:"showIcon = false",type:"success"}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Success Tips",type:"success",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Informational Notes",type:"info",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Warning",type:"warning",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Error",type:"error",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Success Tips",description:"Detailed description and advice about successful copywriting.",type:"success",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Informational Notes",description:"Additional description and information about copywriting.",type:"info",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Warning",description:"This is a warning notice about copywriting.",type:"warning",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{icon:o,message:"Error",description:"This is an error message about copywriting.",type:"error",showIcon:!0})]});},c51cf553:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return a;}});var t=s("f19d2b93");s("9a44978c");var n=s("e22febe0"),i=s("a9d1a279");let o=(0,t.jsx)(n.SmileOutlined,{});var a=()=>(0,t.jsx)(i.ConfigProvider,{theme:{components:{Alert:{withDescriptionIconSize:32,withDescriptionPadding:16}}},children:(0,t.jsx)(i.Alert,{icon:o,message:"Success Tips",description:"Detailed description and advice about successful copywriting.",type:"success",showIcon:!0})});},da95a41c:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("8aa7bd83");var n=s("a9d1a279"),i=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Alert,{message:"Success Tips",type:"success",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Informational Notes",type:"info",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Error",type:"error",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Success Tips",description:"Detailed description and advice about successful copywriting.",type:"success",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Informational Notes",description:"Additional description and information about copywriting.",type:"info",showIcon:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Warning",description:"This is a warning notice about copywriting.",type:"warning",showIcon:!0,closable:!0}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Alert,{message:"Error",description:"This is an error message about copywriting.",type:"error",showIcon:!0})]});},f88d3978:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return i;}});var t=s("f19d2b93");s("beb2342a");var n=s("a9d1a279"),i=()=>(0,t.jsx)(n.Alert,{message:"Success Text",type:"success"});},fdd7b3a1:function(e,r,s){"use strict";s.d(r,"__esModule",{value:!0}),s.d(r,"default",{enumerable:!0,get:function(){return a;}});var t=s("f19d2b93");s("66700073");var n=s("e22febe0"),i=s("a9d1a279");let o=e=>{console.log(e,"I was closed.");};var a=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Alert,{message:"Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text",type:"warning",closable:!0,onClose:o}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{message:"Error Text",description:"Error Description Error Description Error Description Error Description Error Description Error Description",type:"error",closable:!0,onClose:o}),(0,t.jsx)("br",{}),(0,t.jsx)(i.Alert,{message:"Error Text",description:"Error Description Error Description Error Description Error Description Error Description Error Description",type:"error",closable:{"aria-label":"close",closeIcon:(0,t.jsx)(n.CloseSquareFilled,{})},onClose:o})]});}}]); |