@temboplus/frontend-react-core 0.1.3-beta.24 → 0.1.3-beta.25

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.
Files changed (30) hide show
  1. package/dist/alerts/index.cjs.js +1 -1
  2. package/dist/alerts/index.js +1 -1
  3. package/dist/dialogs/index.cjs.js +1 -1
  4. package/dist/dialogs/index.js +1 -1
  5. package/dist/features/notifications/toast-config.js +5 -5
  6. package/dist/index.cjs.js +1 -1
  7. package/dist/index.esm.js +1 -1
  8. package/dist/notifications/index.cjs.js +1 -1
  9. package/dist/notifications/index.js +1 -1
  10. package/dist/tembo-notify-BANZoRx_.js +3 -0
  11. package/dist/tembo-notify-BANZoRx_.js.map +1 -0
  12. package/dist/tembo-notify-CcyMGDyM.js +3 -0
  13. package/dist/tembo-notify-CcyMGDyM.js.map +1 -0
  14. package/dist/theme/index.cjs.js +1 -1
  15. package/dist/theme/index.js +1 -1
  16. package/dist/theme/tokens/colors.d.ts +31 -12
  17. package/dist/theme/tokens/colors.js +53 -47
  18. package/dist/{theme-provider-CWdiDiea.js → theme-provider-CLcBN-Em.js} +2 -2
  19. package/dist/{theme-provider-CWdiDiea.js.map → theme-provider-CLcBN-Em.js.map} +1 -1
  20. package/dist/{theme-provider-Bq-Em1rT.js → theme-provider-CVKGGvT_.js} +2 -2
  21. package/dist/{theme-provider-Bq-Em1rT.js.map → theme-provider-CVKGGvT_.js.map} +1 -1
  22. package/dist/{theme-provider-DyfoES-9.js → theme-provider-DhAlLxja.js} +2 -2
  23. package/dist/{theme-provider-DyfoES-9.js.map → theme-provider-DhAlLxja.js.map} +1 -1
  24. package/dist/{theme-provider-BSuJM4gv.js → theme-provider-r4sQCiu2.js} +2 -2
  25. package/dist/{theme-provider-BSuJM4gv.js.map → theme-provider-r4sQCiu2.js.map} +1 -1
  26. package/package.json +1 -1
  27. package/dist/tembo-notify-CCYaoFRk.js +0 -3
  28. package/dist/tembo-notify-CCYaoFRk.js.map +0 -1
  29. package/dist/tembo-notify-CQymjSW8.js +0 -3
  30. package/dist/tembo-notify-CQymjSW8.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../theme-provider-DyfoES-9.js"),r=require("antd");require("../theme-provider-CWdiDiea.js"),require("lodash");var s=require("../InfoCircleOutlined-DR9DmuN-.js"),n=require("../CloseCircleOutlined-CMilRURi.js");require("react");const{Text:t}=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.main};case"warning":return{background:u.semantic.warning.subtle,border:u.semantic.warning.main,iconColor:u.semantic.warning.main,textColor:u.semantic.warning.main};case"error":return{background:u.semantic.error.subtle,border:u.semantic.error.main,iconColor:u.semantic.error.main,textColor:u.semantic.error.main};default:return{background:u.semantic.info.subtle,border:u.semantic.info.main,iconColor:u.semantic.info.main,textColor:u.semantic.info.main}}})(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(n.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(t,{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(t,{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})]})]})})};
1
+ "use strict";var e=require("../theme-provider-DhAlLxja.js"),r=require("antd");require("../theme-provider-CLcBN-Em.js"),require("lodash");var s=require("../InfoCircleOutlined-DR9DmuN-.js"),n=require("../CloseCircleOutlined-CMilRURi.js");require("react");const{Text:t}=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.main};case"warning":return{background:u.semantic.warning.subtle,border:u.semantic.warning.main,iconColor:u.semantic.warning.main,textColor:u.semantic.warning.main};case"error":return{background:u.semantic.error.subtle,border:u.semantic.error.main,iconColor:u.semantic.error.main,textColor:u.semantic.error.main};default:return{background:u.semantic.info.subtle,border:u.semantic.info.main,iconColor:u.semantic.info.main,textColor:u.semantic.info.main}}})(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(n.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(t,{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(t,{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,2 +1,2 @@
1
- import{u as e,j as r}from"../theme-provider-BSuJM4gv.js";import{Typography as n,Space as i,Flex as s}from"antd";import"../theme-provider-Bq-Em1rT.js";import"lodash";import{R as o,a as t,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.main};case"warning":return{background:f.semantic.warning.subtle,border:f.semantic.warning.main,iconColor:f.semantic.warning.main,textColor:f.semantic.warning.main};case"error":return{background:f.semantic.error.subtle,border:f.semantic.error.main,iconColor:f.semantic.error.main,textColor:f.semantic.error.main};default:return{background:f.semantic.info.subtle,border:f.semantic.info.main,iconColor:f.semantic.info.main,textColor:f.semantic.info.main}}})(n),b=u||(e=>{switch(e){case"success":return r.jsx(c,{});case"warning":return r.jsx(t,{});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(i,{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};
1
+ import{u as e,j as r}from"../theme-provider-r4sQCiu2.js";import{Typography as n,Space as i,Flex as s}from"antd";import"../theme-provider-CVKGGvT_.js";import"lodash";import{R as o,a as t,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.main};case"warning":return{background:f.semantic.warning.subtle,border:f.semantic.warning.main,iconColor:f.semantic.warning.main,textColor:f.semantic.warning.main};case"error":return{background:f.semantic.error.subtle,border:f.semantic.error.main,iconColor:f.semantic.error.main,textColor:f.semantic.error.main};default:return{background:f.semantic.info.subtle,border:f.semantic.info.main,iconColor:f.semantic.info.main,textColor:f.semantic.info.main}}})(n),b=u||(e=>{switch(e){case"success":return r.jsx(c,{});case"warning":return r.jsx(t,{});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(i,{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
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("../theme-provider-DyfoES-9.js"),t=require("antd"),n=require("@ebay/nice-modal-react");require("../theme-provider-CWdiDiea.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);
1
+ "use strict";var e=require("../theme-provider-DhAlLxja.js"),t=require("antd"),n=require("@ebay/nice-modal-react");require("../theme-provider-CLcBN-Em.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
2
  /**![question-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTYyMy42IDMxNi43QzU5My42IDI5MC40IDU1NCAyNzYgNTEyIDI3NnMtODEuNiAxNC41LTExMS42IDQwLjdDMzY5LjIgMzQ0IDM1MiAzODAuNyAzNTIgNDIwdjcuNmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQyMGMwLTQ0LjEgNDMuMS04MCA5Ni04MHM5NiAzNS45IDk2IDgwYzAgMzEuMS0yMiA1OS42LTU2LjEgNzIuNy0yMS4yIDguMS0zOS4yIDIyLjMtNTIuMSA0MC45LTEzLjEgMTktMTkuOSA0MS44LTE5LjkgNjQuOVY2MjBjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOHYtMjIuN2E0OC4zIDQ4LjMgMCAwMTMwLjktNDQuOGM1OS0yMi43IDk3LjEtNzQuNyA5Ny4xLTEzMi41LjEtMzkuMy0xNy4xLTc2LTQ4LjMtMTAzLjN6TTQ3MiA3MzJhNDAgNDAgMCAxMDgwIDAgNDAgNDAgMCAxMC04MCAweiIgLz48L3N2Zz4=) */"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
3
  /**![warning](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ2NCA3MjBhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0xNi0zMDR2MTg0YzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNDE2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHptNDc1LjcgNDQwbC00MTYtNzIwYy02LjItMTAuNy0xNi45LTE2LTI3LjctMTZzLTIxLjYgNS4zLTI3LjcgMTZsLTQxNiA3MjBDNTYgODc3LjQgNzEuNCA5MDQgOTYgOTA0aDgzMmMyNC42IDAgNDAtMjYuNiAyNy43LTQ4em0tNzgzLjUtMjcuOUw1MTIgMjM5LjlsMzM5LjggNTg4LjJIMTcyLjJ6IiAvPjwvc3ZnPg==) */"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,4 +1,4 @@
1
- import{j as e,u as t}from"../theme-provider-BSuJM4gv.js";import{Modal as n}from"antd";import s,{useModal as r}from"@ebay/nice-modal-react";import"../theme-provider-Bq-Em1rT.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);
1
+ import{j as e,u as t}from"../theme-provider-r4sQCiu2.js";import{Modal as n}from"antd";import s,{useModal as r}from"@ebay/nice-modal-react";import"../theme-provider-CVKGGvT_.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
2
  /**![question-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTYyMy42IDMxNi43QzU5My42IDI5MC40IDU1NCAyNzYgNTEyIDI3NnMtODEuNiAxNC41LTExMS42IDQwLjdDMzY5LjIgMzQ0IDM1MiAzODAuNyAzNTIgNDIwdjcuNmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQyMGMwLTQ0LjEgNDMuMS04MCA5Ni04MHM5NiAzNS45IDk2IDgwYzAgMzEuMS0yMiA1OS42LTU2LjEgNzIuNy0yMS4yIDguMS0zOS4yIDIyLjMtNTIuMSA0MC45LTEzLjEgMTktMTkuOSA0MS44LTE5LjkgNjQuOVY2MjBjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOHYtMjIuN2E0OC4zIDQ4LjMgMCAwMTMwLjktNDQuOGM1OS0yMi43IDk3LjEtNzQuNyA5Ny4xLTEzMi41LjEtMzkuMy0xNy4xLTc2LTQ4LjMtMTAzLjN6TTQ3MiA3MzJhNDAgNDAgMCAxMDgwIDAgNDAgNDAgMCAxMC04MCAweiIgLz48L3N2Zz4=) */"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
3
  /**![warning](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ2NCA3MjBhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0xNi0zMDR2MTg0YzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNDE2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHptNDc1LjcgNDQwbC00MTYtNzIwYy02LjItMTAuNy0xNi45LTE2LTI3LjctMTZzLTIxLjYgNS4zLTI3LjcgMTZsLTQxNiA3MjBDNTYgODc3LjQgNzEuNCA5MDQgOTYgOTA0aDgzMmMyNC42IDAgNDAtMjYuNiAyNy43LTQ4em0tNzgzLjUtMjcuOUw1MTIgMjM5LjlsMzM5LjggNTg4LjJIMTcyLjJ6IiAvPjwvc3ZnPg==) */"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
@@ -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.semantic.success.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.success.subtle, color: colors.semantic.success.main }), className: 'toast-success' });
33
+ const successConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CheckCircleOutlined, { style: { fontSize: 18, color: colors.semantic.success.main } })), 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.semantic.error.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.error.subtle, color: colors.semantic.error.main }), className: 'toast-error' });
37
+ const errorConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CloseCircleOutlined, { style: { fontSize: 18, color: colors.semantic.error.main } })), 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.semantic.warning.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.semantic.warning.subtle, color: colors.semantic.warning.main }), className: 'toast-warning' });
41
+ const warningConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(ExclamationCircleOutlined, { style: { fontSize: 18, color: colors.semantic.warning.main } })), 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.text.primary } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.overlay, color: colors.text.primary }), className: 'toast-info' });
46
+ const infoConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(InfoCircleOutlined, { style: { fontSize: 18, color: colors.semantic.info.main } })), 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.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' });
50
+ const loadingConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(LoadingOutlined, { style: { fontSize: 18, color: colors.neutral[4] } })), autoClose: false, closeButton: false, hideProgressBar: true, className: 'toast-loading' });
51
51
  return {
52
52
  loadingConfig,
53
53
  infoConfig,
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var n=require("./theme-provider-DyfoES-9.js"),e=require("@ebay/nice-modal-react"),t=require("tslib"),s=require("react"),i=require("react-toastify"),o=require("./tembo-notify-CQymjSW8.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,{})]})});
1
+ "use strict";var n=require("./theme-provider-DhAlLxja.js"),e=require("@ebay/nice-modal-react"),t=require("tslib"),s=require("react"),i=require("react-toastify"),o=require("./tembo-notify-BANZoRx_.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.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{j as n,u as t,T as o}from"./theme-provider-BSuJM4gv.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-CCYaoFRk.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};
1
+ import{j as n,u as t,T as o}from"./theme-provider-r4sQCiu2.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-CcyMGDyM.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
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../tembo-notify-CQymjSW8.js");require("tslib"),require("../theme-provider-DyfoES-9.js"),require("react"),require("react-toastify"),require("../InfoCircleOutlined-DR9DmuN-.js"),require("../CloseCircleOutlined-CMilRURi.js"),require("antd"),exports.TemboNotify=e.TemboNotify,exports.buildToastConfigs=e.buildToastConfigs;
1
+ "use strict";var e=require("../tembo-notify-BANZoRx_.js");require("tslib"),require("../theme-provider-DhAlLxja.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-CCYaoFRk.js";import"tslib";import"../theme-provider-BSuJM4gv.js";import"react";import"react-toastify";import"../InfoCircleOutlined-Hx86sClq.js";import"../CloseCircleOutlined-CSHx89Jn.js";import"antd";
1
+ export{T as TemboNotify,b as buildToastConfigs}from"../tembo-notify-CcyMGDyM.js";import"tslib";import"../theme-provider-r4sQCiu2.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
+ "use strict";var t=require("tslib"),s=require("./theme-provider-DhAlLxja.js"),i=require("react-toastify"),o=require("./InfoCircleOutlined-DR9DmuN-.js"),e=require("./CloseCircleOutlined-CMilRURi.js");function n(t){if(t&&t.__esModule)return t;var s=Object.create(null);return t&&Object.keys(t).forEach(function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(s,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}}),s.default=t,Object.freeze(s)}var r=n(require("react")),a={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 l(){return l=Object.assign?Object.assign.bind():function(t){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},l.apply(this,arguments)}const c=(t,s)=>r.createElement(o.Icon,l({},t,{ref:s,icon:a})),g=r.forwardRef(c);
2
+ /**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(g.displayName="LoadingOutlined");const u=(t,i)=>{const n={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:i.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:t.surface.overlay,color:t.text.primary,display:"flex",alignItems:"center",gap:8}},r=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(o.RefIcon$2,{style:{fontSize:18,color:t.semantic.success.main}}),className:"toast-success"}),a=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(e.RefIcon,{style:{fontSize:18,color:t.semantic.error.main}}),className:"toast-error"}),l=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(o.RefIcon$1,{style:{fontSize:18,color:t.semantic.warning.main}}),className:"toast-warning"}),c=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(o.RefIcon,{style:{fontSize:18,color:t.semantic.info.main}}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(g,{style:{fontSize:18,color:t.neutral[4]}}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:c,warningConfig:l,errorConfig:a,successConfig:r,baseConfig:n,colors:t}},f={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class d{static init(t,s){this.configs=u(t,s)}static getConfigs(){return this.configs}static formatMessage(t){if(t&&"object"==typeof t&&!("$$typeof"in t)){const i=!!t.title,o=!!t.description;return i&&o?s.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[s.jsxRuntimeExports.jsx("div",{style:{fontWeight:500,fontSize:14},children:t.title}),s.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.96},children:t.description})]}):i&&!o?s.jsxRuntimeExports.jsx("div",{style:{fontWeight:500,fontSize:14},children:t.title}):!i&&o?s.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:500},children:t.description}):""}return t}static buildOptions(s,i){const o=i||{},{duration:e,toastId:n,onClick:r,onClose:a}=o,l=t.__rest(o,["duration","toastId","onClick","onClose"]),c=null!=s?s:f;return Object.assign(Object.assign(Object.assign({},c),l),{toastId:n,autoClose:void 0!==e?e||!1:c.autoClose,onClick:r,onClose:a})}static getSuccessConfig(){var t,s;const i=this.getConfigs();return null!==(s=null!==(t=null==i?void 0:i.successConfig)&&void 0!==t?t:null==i?void 0:i.baseConfig)&&void 0!==s?s:void 0}static getErrorConfig(){var t,s;const i=this.getConfigs();return null!==(s=null!==(t=null==i?void 0:i.errorConfig)&&void 0!==t?t:null==i?void 0:i.baseConfig)&&void 0!==s?s:void 0}static getWarningConfig(){var t,s;const i=this.getConfigs();return null!==(s=null!==(t=null==i?void 0:i.warningConfig)&&void 0!==t?t:null==i?void 0:i.baseConfig)&&void 0!==s?s:void 0}static getInfoConfig(){var t,s;const i=this.getConfigs();return null!==(s=null!==(t=null==i?void 0:i.infoConfig)&&void 0!==t?t:null==i?void 0:i.baseConfig)&&void 0!==s?s:void 0}static getLoadingConfig(){var t,s;const i=this.getConfigs();return null!==(s=null!==(t=null==i?void 0:i.loadingConfig)&&void 0!==t?t:null==i?void 0:i.baseConfig)&&void 0!==s?s:void 0}static success(t,s){const o=this.formatMessage(t),e=this.buildOptions(this.getSuccessConfig(),s);return i.toast.success(o,e)}static error(t,s){const o=this.formatMessage(t),e=this.buildOptions(this.getErrorConfig(),s);return i.toast.error(o,e)}static warning(t,s){const o=this.formatMessage(t),e=this.buildOptions(this.getWarningConfig(),s);return i.toast.warning(o,e)}static info(t,s){const o=this.formatMessage(t),e=this.buildOptions(this.getInfoConfig(),s);return i.toast.info(o,e)}static loading(s,o){var e;const n=this.formatMessage(s),r=o||{},{toastId:a,onClick:l,onClose:c}=r,g=t.__rest(r,["toastId","onClick","onClose"]),u=null!==(e=this.getLoadingConfig())&&void 0!==e?e:f;return i.toast.loading(n,Object.assign(Object.assign(Object.assign({},u),g),{toastId:a,onClick:l,onClose:c}))}static update(t,s){var o,e;const n=this.getConfigs(),r=s.type&&n?{success:n.successConfig,error:n.errorConfig,warning:n.warningConfig,info:n.infoConfig}[s.type]:void 0,a=s.message?this.formatMessage(s.message):s.render;i.toast.update(t,Object.assign({render:a,type:s.type,isLoading:!1,autoClose:null!==(e=null!==(o=s.autoClose)&&void 0!==o?o:null==r?void 0:r.autoClose)&&void 0!==e?e:f.autoClose},null!=r?r:{}))}static dismiss(t){i.toast.dismiss(t)}static dismissAll(){i.toast.dismiss()}static isActive(t){return i.toast.isActive(t)}}d.configs=null,exports.TemboNotify=d,exports.buildToastConfigs=u;
3
+ //# sourceMappingURL=tembo-notify-BANZoRx_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tembo-notify-BANZoRx_.js","sources":["../node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js","../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js","../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar LoadingOutlined = { \"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\" };\nexport default LoadingOutlined;\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 LoadingOutlinedSvg from \"@ant-design/icons-svg/es/asn/LoadingOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst LoadingOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: LoadingOutlinedSvg\n}));\n\n/**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */\nconst RefIcon = /*#__PURE__*/React.forwardRef(LoadingOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'LoadingOutlined';\n}\nexport default RefIcon;",null,null],"names":["LoadingOutlined","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","LoadingOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","base","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","surface","overlay","color","text","primary","display","alignItems","gap","successConfig","_jsx","CheckCircleOutlined","semantic","success","main","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","neutral","FALLBACK_BASE_CONFIG","TemboNotify","init","configs","getConfigs","formatMessage","message","hasTitle","title","hasDescription","description","_jsxs","flexDirection","fontWeight","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"8fACIA,EAAkB,CAAEC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,kUAAsUC,KAAQ,UAAWC,MAAS,YCD/f,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD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OAAOkC,EAAAA,MAAMC,QAAQH,+CACd7E,GACAmE,GAAW,CACdH,UACAC,UACAC,YAER,CAEA,aAAOe,CAAOC,EAAQrB,WAMlB,MAAMb,EAAUhE,KAAKiE,aAEfkC,EACFtB,EAAQuB,MAAQpC,EACV,CACEjB,QAASiB,EAAQrB,cACjBS,MAAOY,EAAQd,YACfK,QAASS,EAAQX,cACjBK,KAAMM,EAAQR,YAChBqB,EAAQuB,WACRd,EAEJO,EAAUhB,EAAQV,QAClBnE,KAAKkE,cAAcW,EAAQV,SAC3BU,EAAQwB,OAEdN,QAAME,OAAOC,iBACTG,OAAQR,EACRO,KAAMvB,EAAQuB,KACdE,WAAW,EACXpF,UAEyB,QADrBsE,EAAiB,QAAjBV,EAAAD,EAAQ3D,iBAAS,IAAA4D,EAAAA,EACjBqB,eAAAA,EAAYjF,iBAAS,IAAAsE,EAAAA,EACrB3B,EAAqB3C,WACrBiF,QAAAA,EAAc,CAAA,GAE1B,CAEA,cAAOI,CAAQL,GACXH,EAAAA,MAAMQ,QAAQL,EAClB,CAEA,iBAAOM,GACHT,EAAAA,MAAMQ,SACV,CAEA,eAAOE,CAASP,GACZ,OAAOH,EAAAA,MAAMU,SAASP,EAC1B,EAxLepC,EAAAE,QAA+B","x_google_ignoreList":[0,1]}
@@ -0,0 +1,3 @@
1
+ import{__rest as s}from"tslib";import{j as i}from"./theme-provider-r4sQCiu2.js";import{toast as t}from"react-toastify";import{I as o,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 i=1;i<arguments.length;i++){var t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=t[o])}return s},g.apply(this,arguments)}const d=(s,i)=>l.createElement(o,g({},s,{ref:i,icon:c})),f=l.forwardRef(d);
2
+ /**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(f.displayName="LoadingOutlined");const u=(s,t)=>{const o={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:t.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({},o),{icon:i.jsx(n,{style:{fontSize:18,color:s.semantic.success.main}}),className:"toast-success"}),c=Object.assign(Object.assign({},o),{icon:i.jsx(r,{style:{fontSize:18,color:s.semantic.error.main}}),className:"toast-error"}),g=Object.assign(Object.assign({},o),{icon:i.jsx(e,{style:{fontSize:18,color:s.semantic.warning.main}}),className:"toast-warning"}),d=Object.assign(Object.assign({},o),{icon:i.jsx(a,{style:{fontSize:18,color:s.semantic.info.main}}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},o),{icon:i.jsx(f,{style:{fontSize:18,color:s.neutral[4]}}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:d,warningConfig:g,errorConfig:c,successConfig:l,baseConfig:o,colors:s}},C={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class v{static init(s,i){this.configs=u(s,i)}static getConfigs(){return this.configs}static formatMessage(s){if(s&&"object"==typeof s&&!("$$typeof"in s)){const t=!!s.title,o=!!s.description;return t&&o?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[i.jsx("div",{style:{fontWeight:500,fontSize:14},children:s.title}),i.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.96},children:s.description})]}):t&&!o?i.jsx("div",{style:{fontWeight:500,fontSize:14},children:s.title}):!t&&o?i.jsx("div",{style:{fontSize:13,fontWeight:500},children:s.description}):""}return s}static buildOptions(i,t){const o=t||{},{duration:n,toastId:e,onClick:a,onClose:r}=o,l=s(o,["duration","toastId","onClick","onClose"]),c=null!=i?i: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,i;const t=this.getConfigs();return null!==(i=null!==(s=null==t?void 0:t.successConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==i?i:void 0}static getErrorConfig(){var s,i;const t=this.getConfigs();return null!==(i=null!==(s=null==t?void 0:t.errorConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==i?i:void 0}static getWarningConfig(){var s,i;const t=this.getConfigs();return null!==(i=null!==(s=null==t?void 0:t.warningConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==i?i:void 0}static getInfoConfig(){var s,i;const t=this.getConfigs();return null!==(i=null!==(s=null==t?void 0:t.infoConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==i?i:void 0}static getLoadingConfig(){var s,i;const t=this.getConfigs();return null!==(i=null!==(s=null==t?void 0:t.loadingConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==i?i:void 0}static success(s,i){const o=this.formatMessage(s),n=this.buildOptions(this.getSuccessConfig(),i);return t.success(o,n)}static error(s,i){const o=this.formatMessage(s),n=this.buildOptions(this.getErrorConfig(),i);return t.error(o,n)}static warning(s,i){const o=this.formatMessage(s),n=this.buildOptions(this.getWarningConfig(),i);return t.warning(o,n)}static info(s,i){const o=this.formatMessage(s),n=this.buildOptions(this.getInfoConfig(),i);return t.info(o,n)}static loading(i,o){var n;const e=this.formatMessage(i),a=o||{},{toastId:r,onClick:l,onClose:c}=a,g=s(a,["toastId","onClick","onClose"]),d=null!==(n=this.getLoadingConfig())&&void 0!==n?n:C;return t.loading(e,Object.assign(Object.assign(Object.assign({},d),g),{toastId:r,onClick:l,onClose:c}))}static update(s,i){var o,n;const e=this.getConfigs(),a=i.type&&e?{success:e.successConfig,error:e.errorConfig,warning:e.warningConfig,info:e.infoConfig}[i.type]:void 0,r=i.message?this.formatMessage(i.message):i.render;t.update(s,Object.assign({render:r,type:i.type,isLoading:!1,autoClose:null!==(n=null!==(o=i.autoClose)&&void 0!==o?o:null==a?void 0:a.autoClose)&&void 0!==n?n:C.autoClose},null!=a?a:{}))}static dismiss(s){t.dismiss(s)}static dismissAll(){t.dismiss()}static isActive(s){return t.isActive(s)}}v.configs=null;export{v as T,u as b};
3
+ //# sourceMappingURL=tembo-notify-CcyMGDyM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tembo-notify-CcyMGDyM.js","sources":["../node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js","../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js","../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar LoadingOutlined = { \"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\" };\nexport default LoadingOutlined;\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 LoadingOutlinedSvg from \"@ant-design/icons-svg/es/asn/LoadingOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst LoadingOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: LoadingOutlinedSvg\n}));\n\n/**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */\nconst RefIcon = /*#__PURE__*/React.forwardRef(LoadingOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'LoadingOutlined';\n}\nexport default RefIcon;",null,null],"names":["LoadingOutlined","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","LoadingOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","base","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","surface","overlay","color","text","primary","display","alignItems","gap","successConfig","_jsx","CheckCircleOutlined","semantic","success","main","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","neutral","FALLBACK_BASE_CONFIG","TemboNotify","init","configs","getConfigs","formatMessage","message","hasTitle","title","hasDescription","description","_jsxs","flexDirection","fontWeight","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"+QACA,IAAIA,EAAkB,CAAEC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,kUAAsUC,KAAQ,UAAWC,MAAS,YCD/f,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,EAAkB,CAACyB,EAAOC,IAAqBC,EAAMC,cAAcC,EAAUnB,EAAS,CAAA,EAAIe,EAAO,CACrGC,IAAKA,EACLzB,KAAM6B,KAIFC,EAAuBJ,EAAMK,WAAWhC;4oBACjB,eAAzBiC,QAAQC,IAAIC,WACdJ,EAAQK,YAAc,yBCJXC,EAAoB,CAC7BC,EACAC,KAKA,MAAMC,EAA2B,CAC7BC,SAAU,YACVC,UAAW,IACXC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,MAAO,CACHC,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@ -1,2 +1,2 @@
1
- "use strict";var e=require("../theme-provider-CWdiDiea.js"),r=require("../theme-provider-DyfoES-9.js");require("react"),require("antd"),require("lodash"),exports.LegacyTemboThemeProvider=e.LegacyTemboThemeProvider,exports.buildColorPalette=e.buildColorPalette,exports.buildUIConstants=e.buildUIConstants,exports.defaultColorPalette=e.defaultColorPalette,exports.defaultUIConstants=e.defaultUIConstants,exports.useTemboTheme=e.useTemboTheme,exports.TemboThemeProvider=r.TemboThemeProvider,exports.useNewTemboTheme=r.useNewTemboTheme;
1
+ "use strict";var e=require("../theme-provider-CLcBN-Em.js"),r=require("../theme-provider-DhAlLxja.js");require("react"),require("antd"),require("lodash"),exports.LegacyTemboThemeProvider=e.LegacyTemboThemeProvider,exports.buildColorPalette=e.buildColorPalette,exports.buildUIConstants=e.buildUIConstants,exports.defaultColorPalette=e.defaultColorPalette,exports.defaultUIConstants=e.defaultUIConstants,exports.useTemboTheme=e.useTemboTheme,exports.TemboThemeProvider=r.TemboThemeProvider,exports.useNewTemboTheme=r.useNewTemboTheme;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,2 +1,2 @@
1
- export{L as LegacyTemboThemeProvider,b as buildColorPalette,c as buildUIConstants,d as defaultColorPalette,a as defaultUIConstants,u as useTemboTheme}from"../theme-provider-Bq-Em1rT.js";export{T as TemboThemeProvider,u as useNewTemboTheme}from"../theme-provider-BSuJM4gv.js";import"react";import"antd";import"lodash";
1
+ export{L as LegacyTemboThemeProvider,b as buildColorPalette,c as buildUIConstants,d as defaultColorPalette,a as defaultUIConstants,u as useTemboTheme}from"../theme-provider-CVKGGvT_.js";export{T as TemboThemeProvider,u as useNewTemboTheme}from"../theme-provider-r4sQCiu2.js";import"react";import"antd";import"lodash";
2
2
  //# sourceMappingURL=index.js.map
@@ -11,10 +11,16 @@
11
11
  * - main: For icons, borders, full backgrounds, text on subtle backgrounds
12
12
  * - subtle: For light/dark background fills
13
13
  * - contrast: For icons & text on main backgrounds
14
+ *
15
+ * Secondary color definitions:
16
+ * - subtlest: Barely visible tint (for large background areas)
17
+ * - subtle: Soft but visible tint (for badges, highlights)
18
+ * - main: Strong accent color (for icons, borders, emphasis)
19
+ * - contrast: High contrast (for text on main backgrounds only)
14
20
  */
15
21
  export type ThemeMode = 'light' | 'dark';
16
22
  /**
17
- * Color scale interface
23
+ * Color scale interface (for semantic colors)
18
24
  */
19
25
  export interface ColorScale {
20
26
  /** Main color - for icons, borders, solid backgrounds, text on subtle */
@@ -23,7 +29,19 @@ export interface ColorScale {
23
29
  subtle: string;
24
30
  /** Contrast color - for text/icons on main backgrounds */
25
31
  contrast: string;
26
- subtlest?: string;
32
+ }
33
+ /**
34
+ * Secondary color scale interface (4-step scale)
35
+ */
36
+ export interface SecondaryColorScale {
37
+ /** Subtlest background - barely visible tint, highest luminosity */
38
+ subtlest: string;
39
+ /** Subtle background - soft tint, still very light/dark */
40
+ subtle: string;
41
+ /** Main accent - vibrant color for icons, borders */
42
+ main: string;
43
+ /** Contrast - for text on main backgrounds only */
44
+ contrast: string;
27
45
  }
28
46
  /**
29
47
  * Complete color palette
@@ -65,13 +83,14 @@ export interface ColorPalette {
65
83
  };
66
84
  /**
67
85
  * Secondary colors - for badges, labels, tags, highlights
68
- * Each with proper contrast for light/dark modes
86
+ * Each with 4-step scale: subtlest, subtle, main, contrast
87
+ * Text colors (primary/secondary/tertiary) work on both subtlest and subtle backgrounds
69
88
  */
70
89
  secondary: {
71
- purple: ColorScale;
72
- green: ColorScale;
73
- blue: ColorScale;
74
- orange: ColorScale;
90
+ purple: SecondaryColorScale;
91
+ green: SecondaryColorScale;
92
+ blue: SecondaryColorScale;
93
+ orange: SecondaryColorScale;
75
94
  };
76
95
  surface: {
77
96
  page: string;
@@ -116,12 +135,12 @@ export type ColorOverrides = {
116
135
  error?: Partial<ColorScale>;
117
136
  warning?: Partial<ColorScale>;
118
137
  info?: Partial<ColorScale>;
138
+ pending?: Partial<ColorScale>;
119
139
  };
120
140
  secondary?: {
121
- purple?: Partial<ColorScale>;
122
- green?: Partial<ColorScale>;
123
- blue?: Partial<ColorScale>;
124
- violet?: Partial<ColorScale>;
125
- yellow?: Partial<ColorScale>;
141
+ purple?: Partial<SecondaryColorScale>;
142
+ green?: Partial<SecondaryColorScale>;
143
+ blue?: Partial<SecondaryColorScale>;
144
+ orange?: Partial<SecondaryColorScale>;
126
145
  };
127
146
  };
@@ -11,6 +11,12 @@
11
11
  * - main: For icons, borders, full backgrounds, text on subtle backgrounds
12
12
  * - subtle: For light/dark background fills
13
13
  * - contrast: For icons & text on main backgrounds
14
+ *
15
+ * Secondary color definitions:
16
+ * - subtlest: Barely visible tint (for large background areas)
17
+ * - subtle: Soft but visible tint (for badges, highlights)
18
+ * - main: Strong accent color (for icons, borders, emphasis)
19
+ * - contrast: High contrast (for text on main backgrounds only)
14
20
  */
15
21
  // ============================================
16
22
  // NEUTRAL SCALE CONSTANTS
@@ -116,36 +122,36 @@ const buildLightModeColors = () => {
116
122
  contrast: '#FFFFFF', // White text on blue
117
123
  },
118
124
  pending: {
119
- main: '#64748B', // Slate gray-blue
125
+ main: '#64748B', // Slate gray-blue - 4.5:1 contrast ✅
120
126
  subtle: '#F8FAFC', // Very light slate
121
127
  contrast: '#FFFFFF', // White text
122
128
  }
123
129
  },
124
- // Secondary colors - for badges, labels, tags
130
+ // Secondary colors - 4-step scale with strong main colors
125
131
  secondary: {
126
132
  purple: {
127
- subtlest: '#FDF4FF',
128
- subtle: '#F5E3FF',
129
- main: '#470047',
130
- contrast: '#FFFFFF',
133
+ subtlest: '#FDF4FF', // L: 98% - Almost white with faint purple
134
+ subtle: '#F5E3FF', // L: 93% - Soft purple background
135
+ main: '#470047', // Your dark magenta - 9.2:1 on subtlest ✅
136
+ contrast: '#FFFFFF', // White text on main
131
137
  },
132
138
  green: {
133
- subtlest: '#F0FDF4',
134
- subtle: '#DCFCE7',
135
- main: '#004700',
136
- contrast: '#FFFFFF',
139
+ subtlest: '#F0FDF4', // L: 98% - Almost white with faint green
140
+ subtle: '#DCFCE7', // L: 95% - Soft green background
141
+ main: '#004700', // Your dark green - 8.9:1 on subtlest ✅
142
+ contrast: '#FFFFFF', // White text on main
137
143
  },
138
144
  blue: {
139
- subtlest: '#F0F4FF',
140
- subtle: '#E0E7FF',
141
- main: '#0000D1',
142
- contrast: '#FFFFFF',
145
+ subtlest: '#F0F4FF', // L: 98% - Almost white with faint blue
146
+ subtle: '#E0E7FF', // L: 94% - Soft blue background
147
+ main: '#0000D1', // Your deep royal blue - 10.5:1 on subtlest ✅
148
+ contrast: '#FFFFFF', // White text on main
143
149
  },
144
150
  orange: {
145
- subtlest: '#FFFBEB',
146
- subtle: '#FEF3C7',
147
- main: '#472400',
148
- contrast: '#FFFFFF',
151
+ subtlest: '#FFFBEB', // L: 98% - Almost white with faint orange
152
+ subtle: '#FEF3C7', // L: 95% - Soft orange/amber background
153
+ main: '#472400', // Your dark brown-orange - 10.8:1 on subtlest ✅
154
+ contrast: '#FFFFFF', // White text on main
149
155
  },
150
156
  },
151
157
  // Surface hierarchy - clearly mapped to neutral scale
@@ -153,7 +159,7 @@ const buildLightModeColors = () => {
153
159
  page: neutral[1], // Very light gray - main background
154
160
  card: neutral[0], // Pure white - elevated surfaces
155
161
  overlay: neutral[0], // Pure white - modals, dropdowns
156
- input: neutral[0], // Pure white - input fields (same as card for consistency)
162
+ input: neutral[0], // Pure white - input fields
157
163
  interactive: neutral[2], // Light gray - hover states
158
164
  selected: neutral[2], // Light gray - selected states
159
165
  nested: neutral[1], // Very light gray - nested backgrounds
@@ -166,16 +172,16 @@ const buildLightModeColors = () => {
166
172
  },
167
173
  // Text hierarchy - clearly mapped for professional fintech UI
168
174
  text: {
169
- primary: neutral[7], // Very dark gray - main text (10.4:1 AAA) - readable but not harsh
175
+ primary: neutral[7], // Very dark gray - main text (10.4:1 AAA)
170
176
  secondary: neutral[5], // Medium-dark gray - supporting text (3.9:1 AA)
171
177
  tertiary: neutral[4], // Medium gray - hints, captions (3.1:1)
172
178
  disabled: neutral[3], // Medium-light gray - disabled state
173
179
  inverse: neutral[0], // Pure white - text on dark backgrounds
174
- input: neutral[8], // Almost black - input text (17.9:1 AAA) - crisp and clear
180
+ input: neutral[8], // Almost black - input text (17.9:1 AAA)
175
181
  },
176
182
  // Action colors - clearly mapped to neutral scale
177
183
  action: {
178
- default: neutral[8], // Almost black - primary actions (bold but not pure black)
184
+ default: neutral[8], // Almost black - primary actions
179
185
  hover: neutral[7], // Very dark gray - action hover
180
186
  disabled: neutral[2], // Light gray - disabled actions
181
187
  contrast: neutral[0], // Pure white - text on actions
@@ -206,54 +212,54 @@ const buildDarkModeColors = () => {
206
212
  error: {
207
213
  main: '#F87171', // Bright red - 8.3:1 on dark ✅
208
214
  subtle: '#7F1D1D', // Dark red background
209
- contrast: '#450A0A', // Very dark red on bright red
215
+ contrast: '#450A0A', // Very dark red
210
216
  },
211
217
  success: {
212
218
  main: '#5EEAD4', // Bright teal - 12.5:1 on dark ✅
213
219
  subtle: '#134E4A', // Dark teal background
214
- contrast: '#0A3A35', // Very dark teal on bright teal
220
+ contrast: '#0A3A35', // Very dark teal
215
221
  },
216
222
  warning: {
217
223
  main: '#FB923C', // Bright orange - 9.5:1 on dark ✅
218
224
  subtle: '#7C2D12', // Dark orange background
219
- contrast: '#431407', // Very dark orange on bright orange
225
+ contrast: '#431407', // Very dark orange
220
226
  },
221
227
  info: {
222
228
  main: '#60A5FA', // Bright blue - 8.0:1 on dark ✅
223
229
  subtle: '#1E3A8A', // Dark blue background
224
- contrast: '#1E3A8A', // Dark blue on bright blue
230
+ contrast: '#1E3A8A', // Dark blue
225
231
  },
226
232
  pending: {
227
- main: '#64748B', // Slate gray-blue
228
- subtle: '#F8FAFC', // Very light slate
229
- contrast: '#FFFFFF', // White text
233
+ main: '#94A3B8', // Light slate - 6.5:1 on dark ✅
234
+ subtle: '#1E293B', // Dark slate
235
+ contrast: '#0F172A', // Very dark slate
230
236
  }
231
237
  },
232
- // Secondary colors - brighter for dark mode
238
+ // Secondary colors - bright main, dark backgrounds (inverted principle)
233
239
  secondary: {
234
240
  purple: {
235
- subtlest: '#2E0A2E', // Very dark purple (barely visible)
236
- subtle: '#4A1A4A', // Dark purple (subtle)
237
- main: '#E879F9', // Bright magenta (inverted principle)
241
+ subtlest: '#2E0A2E', // L: 14% - Very dark purple (barely visible)
242
+ subtle: '#4A1A4A', // L: 20% - Dark purple (subtle)
243
+ main: '#E879F9', // L: 70% - Bright magenta - 8.5:1 on subtlest ✅
238
244
  contrast: '#1A0A1A', // Very dark for text on bright
239
245
  },
240
246
  green: {
241
- subtlest: '#0A1F0A', // Very dark green
242
- subtle: '#1A3A1A', // Dark green
243
- main: '#4ADE80', // Bright green
244
- contrast: '#0A1A0A',
247
+ subtlest: '#0A1F0A', // L: 12% - Very dark green
248
+ subtle: '#1A3A1A', // L: 18% - Dark green
249
+ main: '#4ADE80', // L: 75% - Bright green - 10.2:1 on subtlest ✅
250
+ contrast: '#0A1A0A', // Very dark green
245
251
  },
246
252
  blue: {
247
- subtlest: '#0A0F2E', // Very dark blue
248
- subtle: '#1A1F4A', // Dark blue
249
- main: '#60A5FA', // Bright blue
250
- contrast: '#0A0F1A',
253
+ subtlest: '#0A0F2E', // L: 13% - Very dark blue
254
+ subtle: '#1A1F4A', // L: 19% - Dark blue
255
+ main: '#60A5FA', // L: 72% - Bright blue - 8.0:1 on subtlest ✅
256
+ contrast: '#0A0F1A', // Very dark blue
251
257
  },
252
258
  orange: {
253
- subtlest: '#1F1A0A', // Very dark orange
254
- subtle: '#3A2E1A', // Dark orange
255
- main: '#FB923C', // Bright orange
256
- contrast: '#1A0F0A',
259
+ subtlest: '#1F1A0A', // L: 10% - Very dark orange
260
+ subtle: '#3A2E1A', // L: 18% - Dark orange
261
+ main: '#FB923C', // L: 75% - Bright orange - 9.5:1 on subtlest ✅
262
+ contrast: '#1A0F0A', // Very dark orange
257
263
  },
258
264
  },
259
265
  // Surface hierarchy - clearly mapped to neutral scale
@@ -274,12 +280,12 @@ const buildDarkModeColors = () => {
274
280
  },
275
281
  // Text hierarchy - clearly mapped for professional fintech UI
276
282
  text: {
277
- primary: neutral[7], // Very light - main text (readable)
283
+ primary: neutral[7], // Very light - main text
278
284
  secondary: neutral[5], // Medium-light - supporting text
279
285
  tertiary: neutral[4], // Medium - hints, captions
280
286
  disabled: neutral[3], // Medium-dark - disabled state
281
287
  inverse: neutral[0], // Near black - text on light backgrounds
282
- input: neutral[8], // Almost white - input text (crisp and clear)
288
+ input: neutral[8], // Almost white - input text
283
289
  },
284
290
  // Action colors - clearly mapped to neutral scale
285
291
  action: {