@temboplus/frontend-react-core 0.1.3-beta.13 → 0.1.3-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alerts/index.cjs.js +1 -1
- package/dist/alerts/index.cjs.js.map +1 -1
- package/dist/alerts/index.js +1 -1
- package/dist/alerts/index.js.map +1 -1
- package/dist/dialogs/index.cjs.js +3 -3
- package/dist/dialogs/index.cjs.js.map +1 -1
- package/dist/dialogs/index.js +3 -3
- package/dist/dialogs/index.js.map +1 -1
- package/dist/features/alerts/alert.js +18 -18
- package/dist/features/dialogs/tembo-confirm.js +11 -11
- package/dist/features/notifications/tembo-notify.d.ts +3 -2
- package/dist/features/notifications/toast-config.d.ts +4 -3
- package/dist/features/notifications/toast-config.js +7 -7
- package/dist/features/notifications/toast-container.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/notifications/index.cjs.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/tembo-notify-60Hk7l5W.js +3 -0
- package/dist/tembo-notify-60Hk7l5W.js.map +1 -0
- package/dist/tembo-notify-BEEB2wEp.js +3 -0
- package/dist/tembo-notify-BEEB2wEp.js.map +1 -0
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/theme-config.d.ts +10 -3
- package/dist/theme/theme-config.js +138 -286
- package/dist/theme/theme-provider.d.ts +3 -3
- package/dist/theme/theme-provider.js +5 -7
- package/dist/theme/tokens/{color.d.ts → colors.d.ts} +32 -17
- package/dist/theme/tokens/{color.js → colors.js} +65 -46
- package/dist/theme/tokens/constants.d.ts +15 -42
- package/dist/theme/tokens/constants.js +43 -40
- package/dist/theme-provider-BJjIEVwv.js +2 -0
- package/dist/theme-provider-BJjIEVwv.js.map +1 -0
- package/dist/theme-provider-CpPw8sUs.js +11 -0
- package/dist/theme-provider-CpPw8sUs.js.map +1 -0
- package/dist/theme-provider-D3-cveEd.js +2 -0
- package/dist/theme-provider-D3-cveEd.js.map +1 -0
- package/dist/theme-provider-xDEswLd1.js +11 -0
- package/dist/theme-provider-xDEswLd1.js.map +1 -0
- package/package.json +1 -1
- package/dist/tembo-notify-CW2KXwZW.js +0 -3
- package/dist/tembo-notify-CW2KXwZW.js.map +0 -1
- package/dist/tembo-notify-EJeawMJ_.js +0 -3
- package/dist/tembo-notify-EJeawMJ_.js.map +0 -1
- package/dist/theme-provider-BVd_oFrl.js +0 -11
- package/dist/theme-provider-BVd_oFrl.js.map +0 -1
- package/dist/theme-provider-dbf4ZeQO.js +0 -11
- package/dist/theme-provider-dbf4ZeQO.js.map +0 -1
package/dist/alerts/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../theme-provider-
|
|
1
|
+
"use strict";var e=require("../theme-provider-xDEswLd1.js"),r=require("antd");require("../theme-provider-BJjIEVwv.js"),require("lodash");var s=require("../InfoCircleOutlined-DR9DmuN-.js"),t=require("../CloseCircleOutlined-CMilRURi.js");require("react");const{Text:n}=r.Typography;exports.TemboAlert=({type:i="info",message:o,description:c,icon:a,showIcon:l=!0,style:x})=>{const{colors:u,constants:d}=e.useNewTemboTheme(),m=(e=>{switch(e){case"success":return{background:u.semantic.success.subtle,border:u.semantic.success.main,iconColor:u.semantic.success.main,textColor:u.semantic.success.contrast};case"warning":return{background:u.semantic.warning.subtle,border:u.semantic.warning.main,iconColor:u.semantic.warning.main,textColor:u.semantic.warning.contrast};case"error":return{background:u.semantic.error.subtle,border:u.semantic.error.main,iconColor:u.semantic.error.main,textColor:u.semantic.error.contrast};default:return{background:u.semantic.info.subtle,border:u.semantic.info.main,iconColor:u.semantic.info.main,textColor:u.semantic.info.contrast}}})(i),p=a||(r=>{switch(r){case"success":return e.jsxRuntimeExports.jsx(s.RefIcon$2,{});case"warning":return e.jsxRuntimeExports.jsx(s.RefIcon$1,{});case"error":return e.jsxRuntimeExports.jsx(t.RefIcon,{});default:return e.jsxRuntimeExports.jsx(s.RefIcon,{})}})(i),g=l?22:0;return e.jsxRuntimeExports.jsx("div",{style:Object.assign({width:"100%",padding:"12px 16px",backgroundColor:m.background,borderRadius:d.radius.sm,borderLeft:`3px solid ${m.border}`},x),children:e.jsxRuntimeExports.jsxs(r.Space,{direction:"vertical",size:o?6:0,style:{width:"100%"},children:[o&&e.jsxRuntimeExports.jsxs(r.Flex,{gap:8,align:"center",children:[l&&e.jsxRuntimeExports.jsx("div",{style:{color:m.iconColor,fontSize:14,lineHeight:1},children:p}),"string"==typeof o?e.jsxRuntimeExports.jsx(n,{strong:!0,style:{fontSize:13,color:m.textColor,lineHeight:1.4},children:o}):o]}),c&&e.jsxRuntimeExports.jsxs(r.Flex,{gap:8,align:"flex-start",children:[!o&&l&&e.jsxRuntimeExports.jsx("div",{style:{color:m.iconColor,fontSize:14,lineHeight:1,marginTop:1},children:p}),"string"==typeof c?e.jsxRuntimeExports.jsx(n,{style:{fontSize:12,color:u.text.secondary,lineHeight:1.5,paddingLeft:o&&l?g:0},children:c}):e.jsxRuntimeExports.jsx("div",{style:{fontSize:12,color:u.text.secondary,lineHeight:1.5,paddingLeft:o&&l?g:0},children:c})]})]})})};
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../src/features/alerts/alert.tsx"],"sourcesContent":[null],"names":["Text","Typography","type","message","title","description","icon","showIcon","style","colors","constants","
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/features/alerts/alert.tsx"],"sourcesContent":[null],"names":["Text","Typography","type","message","title","description","icon","showIcon","style","colors","constants","useNewTemboTheme","alertColors","alertType","background","semantic","success","subtle","border","main","iconColor","textColor","contrast","warning","error","info","getAlertColors","alertIcon","_jsx","CheckCircleOutlined","ExclamationCircleOutlined","CloseCircleOutlined","InfoCircleOutlined","getDefaultIcon","iconWidth","Object","assign","width","padding","backgroundColor","borderRadius","radius","sm","borderLeft","_jsxs","Space","direction","size","children","Flex","gap","align","color","fontSize","lineHeight","strong","marginTop","text","secondary","paddingLeft"],"mappings":"6PAUA,MAAMA,KAAEA,GAASC,EAAAA,8BAaoC,EACjDC,OAAO,OACPC,QAASC,EACTC,cACAC,OACAC,YAAW,EACXC,YAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,qBAkDxBC,EAhDiB,CAACC,IACpB,OAAQA,GACJ,IAAK,UACD,MAAO,CACHC,WAAYL,EAAOM,SAASC,QAAQC,OACpCC,OAAQT,EAAOM,SAASC,QAAQG,KAChCC,UAAWX,EAAOM,SAASC,QAAQG,KACnCE,UAAWZ,EAAOM,SAASC,QAAQM,UAE3C,IAAK,UACD,MAAO,CACHR,WAAYL,EAAOM,SAASQ,QAAQN,OACpCC,OAAQT,EAAOM,SAASQ,QAAQJ,KAChCC,UAAWX,EAAOM,SAASQ,QAAQJ,KACnCE,UAAWZ,EAAOM,SAASQ,QAAQD,UAE3C,IAAK,QACD,MAAO,CACHR,WAAYL,EAAOM,SAASS,MAAMP,OAClCC,OAAQT,EAAOM,SAASS,MAAML,KAC9BC,UAAWX,EAAOM,SAASS,MAAML,KACjCE,UAAWZ,EAAOM,SAASS,MAAMF,UAGzC,QACI,MAAO,CACHR,WAAYL,EAAOM,SAASU,KAAKR,OACjCC,OAAQT,EAAOM,SAASU,KAAKN,KAC7BC,UAAWX,EAAOM,SAASU,KAAKN,KAChCE,UAAWZ,EAAOM,SAASU,KAAKH,YAmB5BI,CAAexB,GAC7ByB,EAAYrB,GAfK,CAACO,IACpB,OAAQA,GACJ,IAAK,UACD,OAAOe,EAAAA,kBAAAA,IAACC,EAAAA,UAAmB,IAC/B,IAAK,UACD,OAAOD,EAAAA,kBAAAA,IAACE,EAAAA,UAAyB,IACrC,IAAK,QACD,OAAOF,EAAAA,kBAAAA,IAACG,EAAAA,QAAmB,IAE/B,QACI,OAAOH,EAAAA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AY,IACZK,YAAavD,GAASG,EAAW2B,EAAY,GAChDc,SAEA3C"}
|
package/dist/alerts/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as e,j as r}from"../theme-provider-CpPw8sUs.js";import{Typography as n,Space as t,Flex as s}from"antd";import"../theme-provider-D3-cveEd.js";import"lodash";import{R as o,a as i,b as c}from"../InfoCircleOutlined-Hx86sClq.js";import{R as a}from"../CloseCircleOutlined-CSHx89Jn.js";import"react";const{Text:l}=n,d=({type:n="info",message:d,description:m,icon:u,showIcon:g=!0,style:x})=>{const{colors:f,constants:p}=e(),h=(e=>{switch(e){case"success":return{background:f.semantic.success.subtle,border:f.semantic.success.main,iconColor:f.semantic.success.main,textColor:f.semantic.success.contrast};case"warning":return{background:f.semantic.warning.subtle,border:f.semantic.warning.main,iconColor:f.semantic.warning.main,textColor:f.semantic.warning.contrast};case"error":return{background:f.semantic.error.subtle,border:f.semantic.error.main,iconColor:f.semantic.error.main,textColor:f.semantic.error.contrast};default:return{background:f.semantic.info.subtle,border:f.semantic.info.main,iconColor:f.semantic.info.main,textColor:f.semantic.info.contrast}}})(n),b=u||(e=>{switch(e){case"success":return r.jsx(c,{});case"warning":return r.jsx(i,{});case"error":return r.jsx(a,{});default:return r.jsx(o,{})}})(n),j=g?22:0;return r.jsx("div",{style:Object.assign({width:"100%",padding:"12px 16px",backgroundColor:h.background,borderRadius:p.radius.sm,borderLeft:`3px solid ${h.border}`},x),children:r.jsxs(t,{direction:"vertical",size:d?6:0,style:{width:"100%"},children:[d&&r.jsxs(s,{gap:8,align:"center",children:[g&&r.jsx("div",{style:{color:h.iconColor,fontSize:14,lineHeight:1},children:b}),"string"==typeof d?r.jsx(l,{strong:!0,style:{fontSize:13,color:h.textColor,lineHeight:1.4},children:d}):d]}),m&&r.jsxs(s,{gap:8,align:"flex-start",children:[!d&&g&&r.jsx("div",{style:{color:h.iconColor,fontSize:14,lineHeight:1,marginTop:1},children:b}),"string"==typeof m?r.jsx(l,{style:{fontSize:12,color:f.text.secondary,lineHeight:1.5,paddingLeft:d&&g?j:0},children:m}):r.jsx("div",{style:{fontSize:12,color:f.text.secondary,lineHeight:1.5,paddingLeft:d&&g?j:0},children:m})]})]})})};export{d as TemboAlert};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/alerts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/features/alerts/alert.tsx"],"sourcesContent":[null],"names":["Text","Typography","TemboAlert","type","message","title","description","icon","showIcon","style","colors","constants","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/features/alerts/alert.tsx"],"sourcesContent":[null],"names":["Text","Typography","TemboAlert","type","message","title","description","icon","showIcon","style","colors","constants","useNewTemboTheme","alertColors","alertType","background","semantic","success","subtle","border","main","iconColor","textColor","contrast","warning","error","info","getAlertColors","alertIcon","_jsx","CheckCircleOutlined","ExclamationCircleOutlined","CloseCircleOutlined","InfoCircleOutlined","getDefaultIcon","iconWidth","Object","assign","width","padding","backgroundColor","borderRadius","radius","sm","borderLeft","_jsxs","Space","direction","size","children","Flex","gap","align","color","fontSize","lineHeight","strong","marginTop","text","secondary","paddingLeft"],"mappings":"8SAUA,MAAMA,KAAEA,GAASC,EAaJC,EAAwC,EACjDC,OAAO,OACPC,QAASC,EACTC,cACAC,OACAC,YAAW,EACXC,YAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,IAkDxBC,EAhDiB,CAACC,IACpB,OAAQA,GACJ,IAAK,UACD,MAAO,CACHC,WAAYL,EAAOM,SAASC,QAAQC,OACpCC,OAAQT,EAAOM,SAASC,QAAQG,KAChCC,UAAWX,EAAOM,SAASC,QAAQG,KACnCE,UAAWZ,EAAOM,SAASC,QAAQM,UAE3C,IAAK,UACD,MAAO,CACHR,WAAYL,EAAOM,SAASQ,QAAQN,OACpCC,OAAQT,EAAOM,SAASQ,QAAQJ,KAChCC,UAAWX,EAAO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iC,WAAY,KACfN,SAEA5C,IAINA,KAiEEC,GACGuC,EAAAA,KAACK,EAAI,CAACC,IAAK,EAAGC,MAAM,aAAYH,SAAA,EAC1B5C,GAASG,GACPqB,EAAAA,IAAA,MAAA,CACIpB,MAAO,CACH4C,MAAOxC,EAAYQ,UACnBiC,SAAU,GACVC,WAAY,EACZE,UAAW,GACdR,SAEArB,IAxEE,iBAAhBtB,EAEHuB,EAAAA,IAAC7B,EAAI,CACDS,MAAO,CACH6C,SAAU,GACVD,MAAO3C,EAAOgD,KAAKC,UACnBJ,WAAY,IACZK,YAAavD,GAASG,EAAW2B,EAAY,GAChDc,SAEA3C,IAOTuB,EAAAA,IAAA,MAAA,CACIpB,MAAO,CACH6C,SAAU,GACVD,MAAO3C,EAAOgD,KAAKC,UACnBJ,WAAY,IACZK,YAAavD,GAASG,EAAW2B,EAAY,GAChDc,SAEA3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("../theme-provider-
|
|
2
|
-
/** */"production"!==process.env.NODE_ENV&&(x.displayName="QuestionCircleOutlined");var d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},j.apply(this,arguments)}const p=(e,t)=>
|
|
3
|
-
/** */"production"!==process.env.NODE_ENV&&(f.displayName="WarningOutlined");const g=
|
|
1
|
+
"use strict";var e=require("../theme-provider-xDEswLd1.js"),t=require("antd"),n=require("@ebay/nice-modal-react");require("../theme-provider-BJjIEVwv.js"),require("lodash");var s=require("../InfoCircleOutlined-DR9DmuN-.js"),r=require("react");function o(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=o(n),a=c(r),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},u.apply(this,arguments)}const m=(e,t)=>a.createElement(s.Icon,u({},e,{ref:t,icon:l})),x=a.forwardRef(m);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(x.displayName="QuestionCircleOutlined");var d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},j.apply(this,arguments)}const p=(e,t)=>a.createElement(s.Icon,j({},e,{ref:t,icon:d})),f=a.forwardRef(p);
|
|
3
|
+
/** */"production"!==process.env.NODE_ENV&&(f.displayName="WarningOutlined");const g=i.default.create(s=>{var r,o,c;const i=n.useModal();return e.jsxRuntimeExports.jsx(t.Modal,{open:i.visible,title:s.title,onOk:async()=>{s.onOk&&await s.onOk(),i.resolve(!0),i.remove()},onCancel:()=>{s.onCancel&&s.onCancel(),i.resolve(!1),i.remove()},okText:null!==(r=s.okText)&&void 0!==r?r:"OK",cancelText:null!==(o=s.cancelText)&&void 0!==o?o:"Cancel",okButtonProps:{danger:s.okDanger,type:null!==(c=s.okType)&&void 0!==c?c:"primary"},centered:!0,destroyOnClose:!0,children:e.jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:12,alignItems:"flex-start"},children:[s.icon&&e.jsxRuntimeExports.jsx("div",{style:{fontSize:22,marginTop:2},children:s.icon}),e.jsxRuntimeExports.jsx("div",{style:{flex:1},children:s.content})]})})});const h=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(s.RefIcon$1,{style:{color:t.semantic.error.main}})},v=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(f,{style:{color:t.semantic.warning.main}})},b=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(s.RefIcon,{style:{color:t.semantic.info.main}})},O=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(s.RefIcon$2,{style:{color:t.semantic.success.main}})},y=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(x,{style:{color:t.neutral[4]}})};exports.ConfirmDialog=g,exports.TemboConfirm=class{static async danger(t){return i.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(h,{}),okDanger:!0,okType:"primary"}))}static async warning(t){return i.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(v,{})}))}static async info(t){return i.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(b,{})}))}static async success(t){return i.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(O,{})}))}static async confirm(t){return i.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(y,{})}))}};
|
|
4
4
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnClose","_jsxs","style","display","gap","alignItems","fontSize","marginTop","flex","content","DangerIcon","colors","
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnClose","_jsxs","style","display","gap","alignItems","fontSize","marginTop","flex","content","DangerIcon","colors","useNewTemboTheme","ExclamationCircleOutlined","color","semantic","error","main","WarningIcon","warning","InfoIcon","InfoCircleOutlined","info","SuccessIcon","CheckCircleOutlined","success","QuestionIcon","neutral","show","confirm"],"mappings":"qlBACIA,EAAyB,CAAEC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,kLAAqL,CAAEL,IAAO,OAAQC,MAAS,CAAEI,EAAK,saAA0aC,KAAQ,kBAAmBC,MAAS,YCDx0B,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,GAAU,CAAE,OAAOL,CAAQ,EAAUJ,EAASa,MAAMC,KAAMR,UAAY,CAOlV,MAAMhB,EAAyB,CAACyB,EAAOC,IAAqBC,EAAMC,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Ba,GAAK,CACRxB,KAAM2C,EAAAA,kBAAAA,IAAC+B,EAAU,IACjBf,UAAU,EACVG,OAAQ,YAEhB,CAKA,oBAAaqB,CAAQ3D,GACjB,OAAOe,EAAAA,QAAUqD,KAAKtD,EAAa5B,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAC5Ba,GAAK,CACRxB,KAAM2C,EAAAA,kBAAAA,IAACuC,EAAW,CAAA,KAE1B,CAKA,iBAAaI,CAAK9D,GACd,OAAOe,EAAAA,QAAUqD,KAAKtD,EAAa5B,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAC5Ba,GAAK,CACRxB,KAAM2C,EAAAA,kBAAAA,IAACyC,EAAQ,CAAA,KAEvB,CAKA,oBAAaK,CAAQjE,GACjB,OAAOe,EAAAA,QAAUqD,KAAKtD,EAAa5B,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAC5Ba,GAAK,CACRxB,KAAM2C,EAAAA,kBAAAA,IAAC4C,EAAW,CAAA,KAE1B,CAKA,oBAAaM,CAAQrE,GACjB,OAAOe,EAAAA,QAAUqD,KAAKtD,EAAa5B,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EAC5Ba,GAAK,CACRxB,KAAM2C,EAAAA,kBAAAA,IAAC+C,EAAY,CAAA,KAE3B","x_google_ignoreList":[0,1,2,3]}
|
package/dist/dialogs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,u as
|
|
2
|
-
/** */"production"!==process.env.NODE_ENV&&(u.displayName="QuestionCircleOutlined");var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var
|
|
3
|
-
/** */"production"!==process.env.NODE_ENV&&(
|
|
1
|
+
import{j as e,u as t}from"../theme-provider-CpPw8sUs.js";import{Modal as n}from"antd";import s,{useModal as r}from"@ebay/nice-modal-react";import"../theme-provider-D3-cveEd.js";import"lodash";import{I as o,a as c,R as a,b as i}from"../InfoCircleOutlined-Hx86sClq.js";import*as l from"react";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},p.apply(this,arguments)}const d=(e,t)=>l.createElement(o,p({},e,{ref:t,icon:m})),u=l.forwardRef(d);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(u.displayName="QuestionCircleOutlined");var g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},j.apply(this,arguments)}const f=(e,t)=>l.createElement(o,j({},e,{ref:t,icon:g})),v=l.forwardRef(f);
|
|
3
|
+
/** */"production"!==process.env.NODE_ENV&&(v.displayName="WarningOutlined");const h=s.create(t=>{var s,o,c;const a=r();return e.jsx(n,{open:a.visible,title:t.title,onOk:async()=>{t.onOk&&await t.onOk(),a.resolve(!0),a.remove()},onCancel:()=>{t.onCancel&&t.onCancel(),a.resolve(!1),a.remove()},okText:null!==(s=t.okText)&&void 0!==s?s:"OK",cancelText:null!==(o=t.cancelText)&&void 0!==o?o:"Cancel",okButtonProps:{danger:t.okDanger,type:null!==(c=t.okType)&&void 0!==c?c:"primary"},centered:!0,destroyOnClose:!0,children:e.jsxs("div",{style:{display:"flex",gap:12,alignItems:"flex-start"},children:[t.icon&&e.jsx("div",{style:{fontSize:22,marginTop:2},children:t.icon}),e.jsx("div",{style:{flex:1},children:t.content})]})})});class y{static async danger(t){return s.show(h,Object.assign(Object.assign({},t),{icon:e.jsx(O,{}),okDanger:!0,okType:"primary"}))}static async warning(t){return s.show(h,Object.assign(Object.assign({},t),{icon:e.jsx(x,{})}))}static async info(t){return s.show(h,Object.assign(Object.assign({},t),{icon:e.jsx(b,{})}))}static async success(t){return s.show(h,Object.assign(Object.assign({},t),{icon:e.jsx(w,{})}))}static async confirm(t){return s.show(h,Object.assign(Object.assign({},t),{icon:e.jsx(C,{})}))}}const O=()=>{const{colors:n}=t();return e.jsx(c,{style:{color:n.semantic.error.main}})},x=()=>{const{colors:n}=t();return e.jsx(v,{style:{color:n.semantic.warning.main}})},b=()=>{const{colors:n}=t();return e.jsx(a,{style:{color:n.semantic.info.main}})},w=()=>{const{colors:n}=t();return e.jsx(i,{style:{color:n.semantic.success.main}})},C=()=>{const{colors:n}=t();return e.jsx(u,{style:{color:n.neutral[4]}})};export{h as ConfirmDialog,y as TemboConfirm};
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnClose","_jsxs","style","display","gap","alignItems","fontSize","marginTop","flex","content","TemboConfirm","show","DangerIcon","warning","WarningIcon","info","InfoIcon","success","SuccessIcon","confirm","QuestionIcon","colors","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnClose","_jsxs","style","display","gap","alignItems","fontSize","marginTop","flex","content","TemboConfirm","show","DangerIcon","warning","WarningIcon","info","InfoIcon","success","SuccessIcon","confirm","QuestionIcon","colors","useNewTemboTheme","ExclamationCircleOutlined","color","semantic","error","main","InfoCircleOutlined","CheckCircleOutlined","neutral"],"mappings":"mSACA,IAAIA,EAAyB,CAAEC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,kLAAqL,CAAEL,IAAO,OAAQC,MAAS,CAAEI,EAAK,saAA0aC,KAAQ,kBAAmBC,MAAS,YCDx0B,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,GAAU,CAAE,OAAOL,CAAQ,EAAUJ,EAASa,MAAMC,KAAMR,UAAY,CAOlV,MAAMhB,EAAyB,CAACyB,EAAOC,IAAqBC,EAAMC,cAAcC,EAAUnB,EAAS,CAAA,EAAIe,EAAO,CAC5GC,IAAKA,EACLzB,KAAM6B,KAIFC,EAAuBJ,EAAMK,WAAWhC;ghCACjB,eAAzBiC,QAAQC,IAAIC,WACdJ,EAAQK,YAAc,0BCdxB,IAAIC,EAAkB,CAAEpC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,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qB,KACvB,MAAMK,OAAEA,GAAWC,IACnB,OAAO3C,MAACiD,EAAkB,CAAC1B,MAAO,CAAEsB,MAAOH,EAAOI,SAASV,KAAKY,SAG9DT,EAAwB,KAC1B,MAAMG,OAAEA,GAAWC,IACnB,OAAO3C,MAACkD,EAAmB,CAAC3B,MAAO,CAAEsB,MAAOH,EAAOI,SAASR,QAAQU,SAGlEP,EAAyB,KAC3B,MAAMC,OAAEA,GAAWC,IACnB,OAAO3C,EAAAA,IAAC5C,EAAsB,CAACmE,MAAO,CAAEsB,MAAOH,EAAOS,QAAQ","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Space, Flex, Typography } from 'antd';
|
|
3
3
|
import { InfoCircleOutlined, CheckCircleOutlined, ExclamationCircleOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
|
4
|
-
import {
|
|
4
|
+
import { useNewTemboTheme } from '../../theme/index.js';
|
|
5
5
|
const { Text } = Typography;
|
|
6
6
|
export const TemboAlert = ({ type = 'info', message: title, description, icon, showIcon = true, style, }) => {
|
|
7
|
-
const { colors, constants } =
|
|
7
|
+
const { colors, constants } = useNewTemboTheme();
|
|
8
8
|
const getAlertColors = (alertType) => {
|
|
9
9
|
switch (alertType) {
|
|
10
10
|
case 'success':
|
|
11
11
|
return {
|
|
12
|
-
background: colors.success.
|
|
13
|
-
border: colors.success.main,
|
|
14
|
-
iconColor: colors.success.main,
|
|
15
|
-
textColor: colors.success.
|
|
12
|
+
background: colors.semantic.success.subtle,
|
|
13
|
+
border: colors.semantic.success.main,
|
|
14
|
+
iconColor: colors.semantic.success.main,
|
|
15
|
+
textColor: colors.semantic.success.contrast,
|
|
16
16
|
};
|
|
17
17
|
case 'warning':
|
|
18
18
|
return {
|
|
19
|
-
background: colors.warning.
|
|
20
|
-
border: colors.warning.main,
|
|
21
|
-
iconColor: colors.warning.main,
|
|
22
|
-
textColor: colors.warning.
|
|
19
|
+
background: colors.semantic.warning.subtle,
|
|
20
|
+
border: colors.semantic.warning.main,
|
|
21
|
+
iconColor: colors.semantic.warning.main,
|
|
22
|
+
textColor: colors.semantic.warning.contrast,
|
|
23
23
|
};
|
|
24
24
|
case 'error':
|
|
25
25
|
return {
|
|
26
|
-
background: colors.error.
|
|
27
|
-
border: colors.error.main,
|
|
28
|
-
iconColor: colors.error.main,
|
|
29
|
-
textColor: colors.error.
|
|
26
|
+
background: colors.semantic.error.subtle,
|
|
27
|
+
border: colors.semantic.error.main,
|
|
28
|
+
iconColor: colors.semantic.error.main,
|
|
29
|
+
textColor: colors.semantic.error.contrast,
|
|
30
30
|
};
|
|
31
31
|
case 'info':
|
|
32
32
|
default:
|
|
33
33
|
return {
|
|
34
|
-
background: colors.info.
|
|
35
|
-
border: colors.info.main,
|
|
36
|
-
iconColor: colors.info.main,
|
|
37
|
-
textColor: colors.info.
|
|
34
|
+
background: colors.semantic.info.subtle,
|
|
35
|
+
border: colors.semantic.info.main,
|
|
36
|
+
iconColor: colors.semantic.info.main,
|
|
37
|
+
textColor: colors.semantic.info.contrast,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Modal } from 'antd';
|
|
3
3
|
import NiceModal, { useModal } from '@ebay/nice-modal-react';
|
|
4
4
|
import { ExclamationCircleOutlined, QuestionCircleOutlined, InfoCircleOutlined, WarningOutlined, CheckCircleOutlined, } from '@ant-design/icons';
|
|
5
|
-
import {
|
|
5
|
+
import { useNewTemboTheme } from '../../theme/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Base confirmation dialog using NiceModal
|
|
8
8
|
*/
|
|
@@ -90,22 +90,22 @@ export class TemboConfirm {
|
|
|
90
90
|
}
|
|
91
91
|
// Icon wrapper components that use the theme hook
|
|
92
92
|
const DangerIcon = () => {
|
|
93
|
-
const { colors } =
|
|
94
|
-
return _jsx(ExclamationCircleOutlined, { style: { color: colors.error.main } });
|
|
93
|
+
const { colors } = useNewTemboTheme();
|
|
94
|
+
return _jsx(ExclamationCircleOutlined, { style: { color: colors.semantic.error.main } });
|
|
95
95
|
};
|
|
96
96
|
const WarningIcon = () => {
|
|
97
|
-
const { colors } =
|
|
98
|
-
return _jsx(WarningOutlined, { style: { color: colors.warning.main } });
|
|
97
|
+
const { colors } = useNewTemboTheme();
|
|
98
|
+
return _jsx(WarningOutlined, { style: { color: colors.semantic.warning.main } });
|
|
99
99
|
};
|
|
100
100
|
const InfoIcon = () => {
|
|
101
|
-
const { colors } =
|
|
102
|
-
return _jsx(InfoCircleOutlined, { style: { color: colors.info.main } });
|
|
101
|
+
const { colors } = useNewTemboTheme();
|
|
102
|
+
return _jsx(InfoCircleOutlined, { style: { color: colors.semantic.info.main } });
|
|
103
103
|
};
|
|
104
104
|
const SuccessIcon = () => {
|
|
105
|
-
const { colors } =
|
|
106
|
-
return _jsx(CheckCircleOutlined, { style: { color: colors.success.main } });
|
|
105
|
+
const { colors } = useNewTemboTheme();
|
|
106
|
+
return _jsx(CheckCircleOutlined, { style: { color: colors.semantic.success.main } });
|
|
107
107
|
};
|
|
108
108
|
const QuestionIcon = () => {
|
|
109
|
-
const { colors } =
|
|
110
|
-
return _jsx(QuestionCircleOutlined, { style: { color: colors.
|
|
109
|
+
const { colors } = useNewTemboTheme();
|
|
110
|
+
return _jsx(QuestionCircleOutlined, { style: { color: colors.neutral[4] } });
|
|
111
111
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ToastOptions, ToastContent, Id } from 'react-toastify';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorPalette } from '../../theme/tokens/colors.js';
|
|
3
|
+
import { UIConstants } from '../../theme/tokens/constants.js';
|
|
3
4
|
/**
|
|
4
5
|
* Message input - can be simple string or object with title and description
|
|
5
6
|
*/
|
|
@@ -18,7 +19,7 @@ export interface NotifyOptions extends Omit<ToastOptions, 'type'> {
|
|
|
18
19
|
*/
|
|
19
20
|
export declare class TemboNotify {
|
|
20
21
|
private static configs;
|
|
21
|
-
static init(colors:
|
|
22
|
+
static init(colors: ColorPalette, constants: UIConstants): void;
|
|
22
23
|
private static getConfigs;
|
|
23
24
|
/**
|
|
24
25
|
* Format message content for display
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ToastOptions } from 'react-toastify';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ColorPalette } from '../../theme/tokens/colors.js';
|
|
3
|
+
import { UIConstants } from '../../theme/tokens/constants.js';
|
|
4
|
+
export declare const buildToastConfigs: (colors: ColorPalette, constants: UIConstants) => {
|
|
4
5
|
loadingConfig: ToastOptions<unknown>;
|
|
5
6
|
infoConfig: ToastOptions<unknown>;
|
|
6
7
|
warningConfig: ToastOptions<unknown>;
|
|
7
8
|
errorConfig: ToastOptions<unknown>;
|
|
8
9
|
successConfig: ToastOptions<unknown>;
|
|
9
10
|
baseConfig: ToastOptions<unknown>;
|
|
10
|
-
colors:
|
|
11
|
+
colors: ColorPalette;
|
|
11
12
|
};
|
|
12
13
|
export type ToastConfigs = ReturnType<typeof buildToastConfigs>;
|
|
@@ -13,14 +13,14 @@ export const buildToastConfigs = (colors, constants) => {
|
|
|
13
13
|
draggable: true,
|
|
14
14
|
closeButton: false,
|
|
15
15
|
style: {
|
|
16
|
-
fontFamily: constants.typography.fontFamily,
|
|
16
|
+
fontFamily: constants.typography.fontFamily.base,
|
|
17
17
|
fontSize: 14,
|
|
18
18
|
borderRadius: 10,
|
|
19
19
|
padding: '10px 14px',
|
|
20
20
|
boxShadow: '0 12px 24px rgba(15, 23, 42, 0.12)',
|
|
21
21
|
border: 'none',
|
|
22
22
|
minHeight: 56,
|
|
23
|
-
backgroundColor: colors.surface.
|
|
23
|
+
backgroundColor: colors.surface.overlay,
|
|
24
24
|
color: colors.text.primary,
|
|
25
25
|
display: 'flex',
|
|
26
26
|
alignItems: 'center',
|
|
@@ -30,24 +30,24 @@ export const buildToastConfigs = (colors, constants) => {
|
|
|
30
30
|
/**
|
|
31
31
|
* SUCCESS → success colors
|
|
32
32
|
*/
|
|
33
|
-
const successConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CheckCircleOutlined, { style: { fontSize: 18, color: colors.success.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.success.
|
|
33
|
+
const successConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CheckCircleOutlined, { style: { fontSize: 18, color: colors.semantic.success.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.success.subtle, color: colors.semantic.success.contrast }), className: 'toast-success' });
|
|
34
34
|
/**
|
|
35
35
|
* ERROR → error colors
|
|
36
36
|
*/
|
|
37
|
-
const errorConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CloseCircleOutlined, { style: { fontSize: 18, color: colors.error.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.error.
|
|
37
|
+
const errorConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CloseCircleOutlined, { style: { fontSize: 18, color: colors.semantic.error.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.error.subtle, color: colors.semantic.error.contrast }), className: 'toast-error' });
|
|
38
38
|
/**
|
|
39
39
|
* WARNING → warning colors
|
|
40
40
|
*/
|
|
41
|
-
const warningConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(ExclamationCircleOutlined, { style: { fontSize: 18, color: colors.warning.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.warning.
|
|
41
|
+
const warningConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(ExclamationCircleOutlined, { style: { fontSize: 18, color: colors.semantic.warning.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.warning.subtle, color: colors.semantic.warning.contrast }), className: 'toast-warning' });
|
|
42
42
|
/**
|
|
43
43
|
* INFO → *white background*, blue accents only
|
|
44
44
|
* (no colored background)
|
|
45
45
|
*/
|
|
46
|
-
const infoConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(InfoCircleOutlined, { style: { fontSize: 18, color: colors.info.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.
|
|
46
|
+
const infoConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(InfoCircleOutlined, { style: { fontSize: 18, color: colors.semantic.info.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.overlay, color: colors.text.primary }), className: 'toast-info' });
|
|
47
47
|
/**
|
|
48
48
|
* LOADING (unchanged)
|
|
49
49
|
*/
|
|
50
|
-
const loadingConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(LoadingOutlined, { style: { fontSize: 18, color: colors.
|
|
50
|
+
const loadingConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(LoadingOutlined, { style: { fontSize: 18, color: colors.neutral[4] } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.overlay, color: colors.text.primary }), autoClose: false, closeButton: false, hideProgressBar: true, className: 'toast-loading' });
|
|
51
51
|
return {
|
|
52
52
|
loadingConfig,
|
|
53
53
|
infoConfig,
|
|
@@ -2,14 +2,14 @@ import { __rest } from "tslib";
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
import { ToastContainer, } from 'react-toastify';
|
|
5
|
-
import { useTemboTheme } from '../../theme/index.js';
|
|
6
5
|
import { TemboNotify } from './tembo-notify.js';
|
|
6
|
+
import { useNewTemboTheme } from '../../theme/theme-provider.js';
|
|
7
7
|
/**
|
|
8
8
|
* Toast container with Tembo styling
|
|
9
9
|
*/
|
|
10
10
|
const TemboToastContainer = (_a) => {
|
|
11
11
|
var { showCloseButton = false, showProgressBar = false } = _a, rest = __rest(_a, ["showCloseButton", "showProgressBar"]);
|
|
12
|
-
const { colors, constants } =
|
|
12
|
+
const { colors, constants } = useNewTemboTheme();
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
TemboNotify.init(colors, constants);
|
|
15
15
|
}, [colors, constants]);
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=require("./theme-provider-
|
|
1
|
+
"use strict";var n=require("./theme-provider-xDEswLd1.js"),e=require("@ebay/nice-modal-react"),t=require("tslib"),s=require("react"),i=require("react-toastify"),o=require("./tembo-notify-BEEB2wEp.js");function r(n){return n&&n.__esModule?n:{default:n}}require("antd"),require("./InfoCircleOutlined-DR9DmuN-.js"),require("./CloseCircleOutlined-CMilRURi.js");var a=r(e);const l=e=>n.jsxRuntimeExports.jsx(a.default.Provider,{children:e.children}),d=e=>{var{showCloseButton:r=!1,showProgressBar:a=!1}=e,l=t.__rest(e,["showCloseButton","showProgressBar"]);const{colors:d,constants:c}=n.useNewTemboTheme();return s.useEffect(()=>{o.TemboNotify.init(d,c)},[d,c]),n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(i.ToastContainer,Object.assign({closeButton:r,hideProgressBar:!a},l)),n.jsxRuntimeExports.jsx("style",{children:`\n .Toastify__toast {\n font-family: ${c.typography.fontFamily};\n line-height: 1.5;\n display: flex;\n align-items: center; /* center icon + content */\n }\n\n .Toastify__toast-body {\n padding: 0;\n margin: 0;\n display: flex;\n align-items: flex-start;\n }\n\n .Toastify__toast-icon {\n width: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-inline-end: 6px; /* tighter spacing */\n }\n\n .Toastify__progress-bar {\n display: none;\n }\n\n .Toastify__close-button {\n opacity: 0.5;\n transition: opacity 0.2s ease;\n }\n\n .Toastify__close-button:hover {\n opacity: 1;\n }\n\n /* Force progress bar hidden in case someone enables it unintentionally */\n .Toastify__progress-bar {\n display: none;\n }\n\n /* Smooth entrance animation */\n @keyframes toastSlideIn {\n from {\n transform: translateX(110%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n .Toastify__toast--top-right {\n animation: toastSlideIn 0.3s ease-out;\n }\n\n /* Optional: full-width mobile behaviour */\n @media (max-width: 480px) {\n .Toastify__toast-container--top-right {\n right: 0;\n left: 0;\n padding: 0;\n width: 100vw;\n }\n\n .Toastify__toast {\n margin-bottom: 0;\n border-radius: 0;\n }\n }\n `})]})};exports.TemboUIProviders=({children:e,mode:t,antdThemeOverrides:s})=>n.jsxRuntimeExports.jsx(n.TemboThemeProvider,{mode:t,antdThemeOverrides:s,children:n.jsxRuntimeExports.jsxs(l,{children:[e,n.jsxRuntimeExports.jsx(d,{})]})});
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","useNewTemboTheme","useEffect","TemboNotify","init","_jsxs","_Fragment","ToastContainer","Object","assign","closeButton","hideProgressBar","typography","fontFamily","mode","antdThemeOverrides","TemboThemeProvider"],"mappings":"gXAGA,MAAMA,EAAmDC,GAC9CC,EAAAA,kBAAAA,IAACC,EAAAA,QAAUC,mBAAUH,EAAMI,WCsBhCC,EAA2DC,IAAA,IAAAC,gBAC7DA,GAAkB,EAAKC,gBACvBA,GAAkB,GAAKF,EACpBG,EAAIC,EAAAA,OAAAJ,EAHsD,CAAA,kBAAA,oBAK7D,MAAMK,OAAEA,EAAMC,UAAEA,GAAcC,qBAM9B,OAJAC,EAAAA,UAAU,KACNC,cAAYC,KAAKL,EAAQC,IAC1B,CAACD,EAAQC,IAGRK,EAAAA,kBAAAA,KAAAC,EAAAA,kBAAAA,SAAA,CAAAd,SAAA,CACIH,EAAAA,kBAAAA,IAACkB,EAAAA,eAAcC,OAAAC,OAAA,CACXC,YAAaf,EACbgB,iBAAkBf,GACdC,IAGRR,EAAAA,kBAAAA,IAAA,QAAA,CAAAG,SAAQ,0EAEeQ,EAAUY,WAAWC,ovECtCW,EAC/DrB,WACAsB,OACAC,wBAGI1B,EAAAA,kBAAAA,IAAC2B,EAAAA,mBAAkB,CACfF,KAAMA,EACNC,mBAAoBA,WAEpBV,EAAAA,kBAAAA,KAAClB,EAAkB,CAAAK,SAAA,CACdA,EACDH,EAAAA,kBAAAA,IAACI,EAAmB"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as n,u as t,T as o}from"./theme-provider-
|
|
1
|
+
import{j as n,u as t,T as o}from"./theme-provider-CpPw8sUs.js";import e from"@ebay/nice-modal-react";import{__rest as i}from"tslib";import{useEffect as s}from"react";import{ToastContainer as r}from"react-toastify";import{T as a}from"./tembo-notify-60Hk7l5W.js";import"antd";import"./InfoCircleOutlined-Hx86sClq.js";import"./CloseCircleOutlined-CSHx89Jn.js";const l=t=>n.jsx(e.Provider,{children:t.children}),m=o=>{var{showCloseButton:e=!1,showProgressBar:l=!1}=o,m=i(o,["showCloseButton","showProgressBar"]);const{colors:d,constants:c}=t();return s(()=>{a.init(d,c)},[d,c]),n.jsxs(n.Fragment,{children:[n.jsx(r,Object.assign({closeButton:e,hideProgressBar:!l},m)),n.jsx("style",{children:`\n .Toastify__toast {\n font-family: ${c.typography.fontFamily};\n line-height: 1.5;\n display: flex;\n align-items: center; /* center icon + content */\n }\n\n .Toastify__toast-body {\n padding: 0;\n margin: 0;\n display: flex;\n align-items: flex-start;\n }\n\n .Toastify__toast-icon {\n width: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-inline-end: 6px; /* tighter spacing */\n }\n\n .Toastify__progress-bar {\n display: none;\n }\n\n .Toastify__close-button {\n opacity: 0.5;\n transition: opacity 0.2s ease;\n }\n\n .Toastify__close-button:hover {\n opacity: 1;\n }\n\n /* Force progress bar hidden in case someone enables it unintentionally */\n .Toastify__progress-bar {\n display: none;\n }\n\n /* Smooth entrance animation */\n @keyframes toastSlideIn {\n from {\n transform: translateX(110%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n .Toastify__toast--top-right {\n animation: toastSlideIn 0.3s ease-out;\n }\n\n /* Optional: full-width mobile behaviour */\n @media (max-width: 480px) {\n .Toastify__toast-container--top-right {\n right: 0;\n left: 0;\n padding: 0;\n width: 100vw;\n }\n\n .Toastify__toast {\n margin-bottom: 0;\n border-radius: 0;\n }\n }\n `})]})},d=({children:t,mode:e,antdThemeOverrides:i})=>n.jsx(o,{mode:e,antdThemeOverrides:i,children:n.jsxs(l,{children:[t,n.jsx(m,{})]})});export{d as TemboUIProviders};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","useNewTemboTheme","useEffect","TemboNotify","init","_jsxs","_Fragment","ToastContainer","Object","assign","closeButton","hideProgressBar","typography","fontFamily","TemboUIProviders","mode","antdThemeOverrides","TemboThemeProvider"],"mappings":"qWAGA,MAAMA,EAAmDC,GAC9CC,EAAAA,IAACC,EAAUC,mBAAUH,EAAMI,WCsBhCC,EAA2DC,IAAA,IAAAC,gBAC7DA,GAAkB,EAAKC,gBACvBA,GAAkB,GAAKF,EACpBG,EAAIC,EAAAJ,EAHsD,CAAA,kBAAA,oBAK7D,MAAMK,OAAEA,EAAMC,UAAEA,GAAcC,IAM9B,OAJAC,EAAU,KACNC,EAAYC,KAAKL,EAAQC,IAC1B,CAACD,EAAQC,IAGRK,EAAAA,KAAAC,EAAAA,SAAA,CAAAd,SAAA,CACIH,EAAAA,IAACkB,EAAcC,OAAAC,OAAA,CACXC,YAAaf,EACbgB,iBAAkBf,GACdC,IAGRR,EAAAA,IAAA,QAAA,CAAAG,SAAQ,0EAEeQ,EAAUY,WAAWC,2tECtC3CC,EAAsD,EAC/DtB,WACAuB,OACAC,wBAGI3B,EAAAA,IAAC4B,EAAkB,CACfF,KAAMA,EACNC,mBAAoBA,WAEpBX,EAAAA,KAAClB,EAAkB,CAAAK,SAAA,CACdA,EACDH,EAAAA,IAACI,EAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../tembo-notify-
|
|
1
|
+
"use strict";var e=require("../tembo-notify-BEEB2wEp.js");require("tslib"),require("../theme-provider-xDEswLd1.js"),require("react"),require("react-toastify"),require("../InfoCircleOutlined-DR9DmuN-.js"),require("../CloseCircleOutlined-CMilRURi.js"),require("antd"),exports.TemboNotify=e.TemboNotify,exports.buildToastConfigs=e.buildToastConfigs;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as TemboNotify,b as buildToastConfigs}from"../tembo-notify-
|
|
1
|
+
export{T as TemboNotify,b as buildToastConfigs}from"../tembo-notify-60Hk7l5W.js";import"tslib";import"../theme-provider-CpPw8sUs.js";import"react";import"react-toastify";import"../InfoCircleOutlined-Hx86sClq.js";import"../CloseCircleOutlined-CSHx89Jn.js";import"antd";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{__rest as s}from"tslib";import{j as t}from"./theme-provider-CpPw8sUs.js";import{toast as o}from"react-toastify";import{I as i,b as n,a as e,R as a}from"./InfoCircleOutlined-Hx86sClq.js";import{R as r}from"./CloseCircleOutlined-CSHx89Jn.js";import*as l from"react";var c={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function g(){return g=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(s[i]=o[i])}return s},g.apply(this,arguments)}const d=(s,t)=>l.createElement(i,g({},s,{ref:t,icon:c})),u=l.forwardRef(d);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(u.displayName="LoadingOutlined");const f=(s,o)=>{const i={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:o.typography.fontFamily.base,fontSize:14,borderRadius:10,padding:"10px 14px",boxShadow:"0 12px 24px rgba(15, 23, 42, 0.12)",border:"none",minHeight:56,backgroundColor:s.surface.overlay,color:s.text.primary,display:"flex",alignItems:"center",gap:8}},l=Object.assign(Object.assign({},i),{icon:t.jsx(n,{style:{fontSize:18,color:s.semantic.success.main}}),style:Object.assign(Object.assign({},i.style),{backgroundColor:s.semantic.success.subtle,color:s.semantic.success.contrast}),className:"toast-success"}),c=Object.assign(Object.assign({},i),{icon:t.jsx(r,{style:{fontSize:18,color:s.semantic.error.main}}),style:Object.assign(Object.assign({},i.style),{backgroundColor:s.semantic.error.subtle,color:s.semantic.error.contrast}),className:"toast-error"}),g=Object.assign(Object.assign({},i),{icon:t.jsx(e,{style:{fontSize:18,color:s.semantic.warning.main}}),style:Object.assign(Object.assign({},i.style),{backgroundColor:s.semantic.warning.subtle,color:s.semantic.warning.contrast}),className:"toast-warning"}),d=Object.assign(Object.assign({},i),{icon:t.jsx(a,{style:{fontSize:18,color:s.semantic.info.main}}),style:Object.assign(Object.assign({},i.style),{backgroundColor:s.surface.overlay,color:s.text.primary}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},i),{icon:t.jsx(u,{style:{fontSize:18,color:s.neutral[4]}}),style:Object.assign(Object.assign({},i.style),{backgroundColor:s.surface.overlay,color:s.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:d,warningConfig:g,errorConfig:c,successConfig:l,baseConfig:i,colors:s}},C={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class b{static init(s,t){this.configs=f(s,t)}static getConfigs(){return this.configs}static formatMessage(s){if(s&&"object"==typeof s&&!("$$typeof"in s)){const o=!!s.title,i=!!s.description;return o&&i?t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}),t.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.95},children:s.description})]}):o&&!i?t.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}):!o&&i?t.jsx("div",{style:{fontSize:13,fontWeight:500},children:s.description}):""}return s}static buildOptions(t,o){const i=o||{},{duration:n,toastId:e,onClick:a,onClose:r}=i,l=s(i,["duration","toastId","onClick","onClose"]),c=null!=t?t:C;return Object.assign(Object.assign(Object.assign({},c),l),{toastId:e,autoClose:void 0!==n?n||!1:c.autoClose,onClick:a,onClose:r})}static getSuccessConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.successConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getErrorConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.errorConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getWarningConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.warningConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getInfoConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.infoConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getLoadingConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.loadingConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static success(s,t){const i=this.formatMessage(s),n=this.buildOptions(this.getSuccessConfig(),t);return o.success(i,n)}static error(s,t){const i=this.formatMessage(s),n=this.buildOptions(this.getErrorConfig(),t);return o.error(i,n)}static warning(s,t){const i=this.formatMessage(s),n=this.buildOptions(this.getWarningConfig(),t);return o.warning(i,n)}static info(s,t){const i=this.formatMessage(s),n=this.buildOptions(this.getInfoConfig(),t);return o.info(i,n)}static loading(t,i){var n;const e=this.formatMessage(t),a=i||{},{toastId:r,onClick:l,onClose:c}=a,g=s(a,["toastId","onClick","onClose"]),d=null!==(n=this.getLoadingConfig())&&void 0!==n?n:C;return o.loading(e,Object.assign(Object.assign(Object.assign({},d),g),{toastId:r,onClick:l,onClose:c}))}static update(s,t){var i,n;const e=this.getConfigs(),a=t.type&&e?{success:e.successConfig,error:e.errorConfig,warning:e.warningConfig,info:e.infoConfig}[t.type]:void 0,r=t.message?this.formatMessage(t.message):t.render;o.update(s,Object.assign({render:r,type:t.type,isLoading:!1,autoClose:null!==(n=null!==(i=t.autoClose)&&void 0!==i?i:null==a?void 0:a.autoClose)&&void 0!==n?n:C.autoClose},null!=a?a:{}))}static dismiss(s){o.dismiss(s)}static dismissAll(){o.dismiss()}static isActive(s){return o.isActive(s)}}b.configs=null;export{b as T,f as b};
|
|
3
|
+
//# sourceMappingURL=tembo-notify-60Hk7l5W.js.map
|