@temboplus/frontend-react-core 0.1.3-beta.16 → 0.1.3-beta.19
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 +1 -1
- package/dist/dialogs/index.js +1 -1
- package/dist/features/alerts/alert.js +4 -4
- package/dist/features/notifications/toast-config.js +4 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/notifications/index.cjs.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/tembo-notify-2LdAvsMr.js +3 -0
- package/dist/tembo-notify-2LdAvsMr.js.map +1 -0
- package/dist/tembo-notify-CRIa7y8h.js +3 -0
- package/dist/tembo-notify-CRIa7y8h.js.map +1 -0
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/theme-config.js +15 -1
- package/dist/theme/tokens/colors.d.ts +10 -1
- package/dist/theme/tokens/colors.js +96 -88
- package/dist/theme-provider-BX8M54Ue.js +11 -0
- package/dist/theme-provider-BX8M54Ue.js.map +1 -0
- package/dist/{theme-provider-CAYLAupF.js → theme-provider-BnND6lJb.js} +2 -2
- package/dist/{theme-provider-CAYLAupF.js.map → theme-provider-BnND6lJb.js.map} +1 -1
- package/dist/{theme-provider-CHXEa7OM.js → theme-provider-CSTiVwXk.js} +2 -2
- package/dist/{theme-provider-CHXEa7OM.js.map → theme-provider-CSTiVwXk.js.map} +1 -1
- package/dist/theme-provider-DL9X1dBR.js +11 -0
- package/dist/theme-provider-DL9X1dBR.js.map +1 -0
- package/package.json +1 -1
- package/dist/tembo-notify-C5_QZYZD.js +0 -3
- package/dist/tembo-notify-C5_QZYZD.js.map +0 -1
- package/dist/tembo-notify-DcTCXDpG.js +0 -3
- package/dist/tembo-notify-DcTCXDpG.js.map +0 -1
- package/dist/theme-provider-CAoTOVjC.js +0 -11
- package/dist/theme-provider-CAoTOVjC.js.map +0 -1
- package/dist/theme-provider-Z0VeuZ9j.js +0 -11
- package/dist/theme-provider-Z0VeuZ9j.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-DL9X1dBR.js"),r=require("antd");require("../theme-provider-CSTiVwXk.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 +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","useNewTemboTheme","alertColors","alertType","background","semantic","success","subtle","border","main","iconColor","textColor","
|
|
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","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,UAA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C,EAAAA,kBAAAA,KAACC,EAAAA,OAAMC,UAAU,WAAWC,KAAM1C,EAAQ,EAAI,EAAGI,MAAO,CAAE4B,MAAO,QAAQW,SAAA,CAEpE3C,GACGuC,EAAAA,kBAAAA,KAACK,EAAAA,KAAI,CAACC,IAAK,EAAGC,MAAM,SAAQH,SAAA,CACvBxC,GACGoB,EAAAA,kBAAAA,IAAA,MAAA,CACInB,MAAO,CACH2C,MAAOvC,EAAYQ,UACnBgC,SAAU,GACVC,WAAY,GACfN,SAEArB,IAvEJ,iBAAVtB,EAEHuB,EAAAA,kBAAAA,IAAC3B,GACGsD,QAAM,EACN9C,MAAO,CACH4C,SAAU,GACVD,MAAOvC,EAAYS,UACnBgC,WAAY,KACfN,SAEA3C,IAINA,KAiEEC,GACGsC,EAAAA,kBAAAA,KAACK,OAAI,CAACC,IAAK,EAAGC,MAAM,aAAYH,SAAA,EAC1B3C,GAASG,GACPoB,EAAAA,kBAAAA,IAAA,MAAA,CACInB,MAAO,CACH2C,MAAOvC,EAAYQ,UACnBgC,SAAU,GACVC,WAAY,EACZE,UAAW,GACdR,SAEArB,IAxEE,iBAAhBrB,EAEHsB,EAAAA,kBAAAA,IAAC3B,EAAI,CACDQ,MAAO,CACH4C,SAAU,GACVD,MAAO1C,EAAO+C,KAAKC,UACnBJ,WAAY,IACZK,YAAatD,GAASG,EAAW0B,EAAY,GAChDc,SAEA1C,IAOTsB,EAAAA,kBAAAA,IAAA,MAAA,CACInB,MAAO,CACH4C,SAAU,GACVD,MAAO1C,EAAO+C,KAAKC,UACnBJ,WAAY,IACZK,YAAatD,GAASG,EAAW0B,EAAY,GAChDc,SAEA1C"}
|
package/dist/alerts/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as e,j as r}from"../theme-provider-
|
|
1
|
+
import{u as e,j as r}from"../theme-provider-BX8M54Ue.js";import{Typography as n,Space as i,Flex as s}from"antd";import"../theme-provider-BnND6lJb.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
|
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","useNewTemboTheme","alertColors","alertType","background","semantic","success","subtle","border","main","iconColor","textColor","
|
|
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","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,QAAQG,MAE3C,IAAK,UACD,MAAO,CACHL,WAAYL,EAAOM,SAASO,QAAQL,OACpCC,OAAQT,EAAOM,SAASO,QAAQH,KAChCC,UAAWX,EAAOM,SAASO,QAAQH,KACnCE,UAAWZ,EAAOM,SAASO,QAAQH,MAE3C,IAAK,QACD,MAAO,CACHL,WAAYL,EAAOM,SAASQ,MAAMN,OAClCC,OAAQT,EAAOM,SAASQ,MAAMJ,KAC9BC,UAAWX,EAAOM,SAASQ,MAAMJ,KACjCE,UAAWZ,EAAOM,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AY,EACZE,UAAW,GACdR,SAEArB,IAxEE,iBAAhBrB,EAEHsB,EAAAA,IAAC5B,EAAI,CACDS,MAAO,CACH4C,SAAU,GACVD,MAAO1C,EAAO+C,KAAKC,UACnBJ,WAAY,IACZK,YAAatD,GAASG,EAAW0B,EAAY,GAChDc,SAEA1C,IAOTsB,EAAAA,IAAA,MAAA,CACInB,MAAO,CACH4C,SAAU,GACVD,MAAO1C,EAAO+C,KAAKC,UACnBJ,WAAY,IACZK,YAAatD,GAASG,EAAW0B,EAAY,GAChDc,SAEA1C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("../theme-provider-
|
|
1
|
+
"use strict";var e=require("../theme-provider-DL9X1dBR.js"),t=require("antd"),n=require("@ebay/nice-modal-react");require("../theme-provider-CSTiVwXk.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
|
/** */"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
|
/** */"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
|
package/dist/dialogs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,u as t}from"../theme-provider-
|
|
1
|
+
import{j as e,u as t}from"../theme-provider-BX8M54Ue.js";import{Modal as n}from"antd";import s,{useModal as r}from"@ebay/nice-modal-react";import"../theme-provider-BnND6lJb.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
|
/** */"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
|
/** */"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
|
|
@@ -12,21 +12,21 @@ export const TemboAlert = ({ type = 'info', message: title, description, icon, s
|
|
|
12
12
|
background: colors.semantic.success.subtle,
|
|
13
13
|
border: colors.semantic.success.main,
|
|
14
14
|
iconColor: colors.semantic.success.main,
|
|
15
|
-
textColor: colors.semantic.success.
|
|
15
|
+
textColor: colors.semantic.success.main,
|
|
16
16
|
};
|
|
17
17
|
case 'warning':
|
|
18
18
|
return {
|
|
19
19
|
background: colors.semantic.warning.subtle,
|
|
20
20
|
border: colors.semantic.warning.main,
|
|
21
21
|
iconColor: colors.semantic.warning.main,
|
|
22
|
-
textColor: colors.semantic.warning.
|
|
22
|
+
textColor: colors.semantic.warning.main,
|
|
23
23
|
};
|
|
24
24
|
case 'error':
|
|
25
25
|
return {
|
|
26
26
|
background: colors.semantic.error.subtle,
|
|
27
27
|
border: colors.semantic.error.main,
|
|
28
28
|
iconColor: colors.semantic.error.main,
|
|
29
|
-
textColor: colors.semantic.error.
|
|
29
|
+
textColor: colors.semantic.error.main,
|
|
30
30
|
};
|
|
31
31
|
case 'info':
|
|
32
32
|
default:
|
|
@@ -34,7 +34,7 @@ export const TemboAlert = ({ type = 'info', message: title, description, icon, s
|
|
|
34
34
|
background: colors.semantic.info.subtle,
|
|
35
35
|
border: colors.semantic.info.main,
|
|
36
36
|
iconColor: colors.semantic.info.main,
|
|
37
|
-
textColor: colors.semantic.info.
|
|
37
|
+
textColor: colors.semantic.info.main,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -30,20 +30,20 @@ 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.
|
|
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' });
|
|
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.
|
|
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' });
|
|
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.
|
|
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' });
|
|
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.
|
|
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' });
|
|
47
47
|
/**
|
|
48
48
|
* LOADING (unchanged)
|
|
49
49
|
*/
|
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-DL9X1dBR.js"),e=require("@ebay/nice-modal-react"),t=require("tslib"),s=require("react"),i=require("react-toastify"),o=require("./tembo-notify-CRIa7y8h.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-
|
|
1
|
+
import{j as n,u as t,T as o}from"./theme-provider-BX8M54Ue.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-2LdAvsMr.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-
|
|
1
|
+
"use strict";var e=require("../tembo-notify-CRIa7y8h.js");require("tslib"),require("../theme-provider-DL9X1dBR.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-2LdAvsMr.js";import"tslib";import"../theme-provider-BX8M54Ue.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-BX8M54Ue.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.main}),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.main}),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.main}),className:"toast-warning"}),d=Object.assign(Object.assign({},i),{icon:t.jsx(a,{style:{fontSize:18,color:s.text.primary}}),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-2LdAvsMr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-2LdAvsMr.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/** */\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","subtle","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","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","info","loading","update","id","typeConfig","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,EAAQyB,OAEdP,EAAMG,OAAOC,iBACTG,OAAQT,EACRQ,KAAMxB,EAAQwB,KACdE,WAAW,EACXrF,UAEyB,QADrBsE,EAAiB,QAAjBV,EAAAD,EAAQ3D,iBAAS,IAAA4D,EAAAA,EACjBsB,eAAAA,EAAYlF,iBAAS,IAAAsE,EAAAA,EACrB3B,EAAqB3C,WACrBkF,QAAAA,EAAc,CAAA,GAE1B,CAEA,cAAOI,CAAQL,GACXJ,EAAMS,QAAQL,EAClB,CAEA,iBAAOM,GACHV,EAAMS,SACV,CAEA,eAAOE,CAASP,GACZ,OAAOJ,EAAMW,SAASP,EAC1B,EAxLerC,EAAAE,QAA+B","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var t=require("tslib"),s=require("./theme-provider-DL9X1dBR.js"),e=require("react-toastify"),o=require("./InfoCircleOutlined-DR9DmuN-.js"),i=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(e){if("default"!==e){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:function(){return t[e]}})}}),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 c(){return c=Object.assign?Object.assign.bind():function(t){for(var s=1;s<arguments.length;s++){var e=arguments[s];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},c.apply(this,arguments)}const l=(t,s)=>r.createElement(o.Icon,c({},t,{ref:s,icon:a})),g=r.forwardRef(l);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(g.displayName="LoadingOutlined");const u=(t,e)=>{const n={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:e.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}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:t.semantic.success.subtle,color:t.semantic.success.main}),className:"toast-success"}),a=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(i.RefIcon,{style:{fontSize:18,color:t.semantic.error.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:t.semantic.error.subtle,color:t.semantic.error.main}),className:"toast-error"}),c=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(o.RefIcon$1,{style:{fontSize:18,color:t.semantic.warning.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:t.semantic.warning.subtle,color:t.semantic.warning.main}),className:"toast-warning"}),l=Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(o.RefIcon,{style:{fontSize:18,color:t.text.primary}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:t.surface.overlay,color:t.text.primary}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},n),{icon:s.jsxRuntimeExports.jsx(g,{style:{fontSize:18,color:t.neutral[4]}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:t.surface.overlay,color:t.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:l,warningConfig:c,errorConfig:a,successConfig:r,baseConfig:n,colors:t}},d={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class f{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 e=!!t.title,o=!!t.description;return e&&o?s.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[s.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14},children:t.title}),s.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.95},children:t.description})]}):e&&!o?s.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14},children:t.title}):!e&&o?s.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:500},children:t.description}):""}return t}static buildOptions(s,e){const o=e||{},{duration:i,toastId:n,onClick:r,onClose:a}=o,c=t.__rest(o,["duration","toastId","onClick","onClose"]),l=null!=s?s:d;return Object.assign(Object.assign(Object.assign({},l),c),{toastId:n,autoClose:void 0!==i?i||!1:l.autoClose,onClick:r,onClose:a})}static getSuccessConfig(){var t,s;const e=this.getConfigs();return null!==(s=null!==(t=null==e?void 0:e.successConfig)&&void 0!==t?t:null==e?void 0:e.baseConfig)&&void 0!==s?s:void 0}static getErrorConfig(){var t,s;const e=this.getConfigs();return null!==(s=null!==(t=null==e?void 0:e.errorConfig)&&void 0!==t?t:null==e?void 0:e.baseConfig)&&void 0!==s?s:void 0}static getWarningConfig(){var t,s;const e=this.getConfigs();return null!==(s=null!==(t=null==e?void 0:e.warningConfig)&&void 0!==t?t:null==e?void 0:e.baseConfig)&&void 0!==s?s:void 0}static getInfoConfig(){var t,s;const e=this.getConfigs();return null!==(s=null!==(t=null==e?void 0:e.infoConfig)&&void 0!==t?t:null==e?void 0:e.baseConfig)&&void 0!==s?s:void 0}static getLoadingConfig(){var t,s;const e=this.getConfigs();return null!==(s=null!==(t=null==e?void 0:e.loadingConfig)&&void 0!==t?t:null==e?void 0:e.baseConfig)&&void 0!==s?s:void 0}static success(t,s){const o=this.formatMessage(t),i=this.buildOptions(this.getSuccessConfig(),s);return e.toast.success(o,i)}static error(t,s){const o=this.formatMessage(t),i=this.buildOptions(this.getErrorConfig(),s);return e.toast.error(o,i)}static warning(t,s){const o=this.formatMessage(t),i=this.buildOptions(this.getWarningConfig(),s);return e.toast.warning(o,i)}static info(t,s){const o=this.formatMessage(t),i=this.buildOptions(this.getInfoConfig(),s);return e.toast.info(o,i)}static loading(s,o){var i;const n=this.formatMessage(s),r=o||{},{toastId:a,onClick:c,onClose:l}=r,g=t.__rest(r,["toastId","onClick","onClose"]),u=null!==(i=this.getLoadingConfig())&&void 0!==i?i:d;return e.toast.loading(n,Object.assign(Object.assign(Object.assign({},u),g),{toastId:a,onClick:c,onClose:l}))}static update(t,s){var o,i;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;e.toast.update(t,Object.assign({render:a,type:s.type,isLoading:!1,autoClose:null!==(i=null!==(o=s.autoClose)&&void 0!==o?o:null==r?void 0:r.autoClose)&&void 0!==i?i:d.autoClose},null!=r?r:{}))}static dismiss(t){e.toast.dismiss(t)}static dismissAll(){e.toast.dismiss()}static isActive(t){return e.toast.isActive(t)}}f.configs=null,exports.TemboNotify=f,exports.buildToastConfigs=u;
|
|
3
|
+
//# sourceMappingURL=tembo-notify-CRIa7y8h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-CRIa7y8h.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/** */\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","subtle","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","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","info","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,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,OAAUnB,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,E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cC,GAC7BqB,EAAgDX,GAAW,CAAA,GAA3DG,QAAEA,EAAOC,QAAEA,EAAOC,QAAEA,GAAOM,EAAKL,EAAWC,EAAAA,OAAAI,EAA3C,CAAA,UAAA,UAAA,YACAxE,EAAoC,QAAvB8D,EAAA9E,KAAK4F,0BAAkB,IAAAd,EAAAA,EAAIjB,EAE9C,OAAOkC,EAAAA,MAAME,QAAQJ,+CACd7E,GACAmE,GAAW,CACdH,UACAC,UACAC,YAER,CAEA,aAAOgB,CAAOC,EAAQtB,WAMlB,MAAMb,EAAUhE,KAAKiE,aAEfmC,EACFvB,EAAQwB,MAAQrC,EACV,CACEjB,QAASiB,EAAQrB,cACjBU,MAAOW,EAAQb,YACfK,QAASQ,EAAQV,cACjB0C,KAAMhC,EAAQP,YAChBoB,EAAQwB,WACRf,EAEJO,EAAUhB,EAAQV,QAClBnE,KAAKkE,cAAcW,EAAQV,SAC3BU,EAAQyB,OAEdP,QAAMG,OAAOC,iBACTG,OAAQT,EACRQ,KAAMxB,EAAQwB,KACdE,WAAW,EACXrF,UAEyB,QADrBsE,EAAiB,QAAjBV,EAAAD,EAAQ3D,iBAAS,IAAA4D,EAAAA,EACjBsB,eAAAA,EAAYlF,iBAAS,IAAAsE,EAAAA,EACrB3B,EAAqB3C,WACrBkF,QAAAA,EAAc,CAAA,GAE1B,CAEA,cAAOI,CAAQL,GACXJ,EAAAA,MAAMS,QAAQL,EAClB,CAEA,iBAAOM,GACHV,EAAAA,MAAMS,SACV,CAEA,eAAOE,CAASP,GACZ,OAAOJ,EAAAA,MAAMW,SAASP,EAC1B,EAxLerC,EAAAE,QAA+B","x_google_ignoreList":[0,1]}
|
package/dist/theme/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../theme-provider-
|
|
1
|
+
"use strict";var e=require("../theme-provider-CSTiVwXk.js"),r=require("../theme-provider-DL9X1dBR.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
|
package/dist/theme/index.js
CHANGED
|
@@ -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-
|
|
1
|
+
export{L as LegacyTemboThemeProvider,b as buildColorPalette,c as buildUIConstants,d as defaultColorPalette,a as defaultUIConstants,u as useTemboTheme}from"../theme-provider-BnND6lJb.js";export{T as TemboThemeProvider,u as useNewTemboTheme}from"../theme-provider-BX8M54Ue.js";import"react";import"antd";import"lodash";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -220,7 +220,7 @@ export const buildAntDTheme = (colors, constants) => {
|
|
|
220
220
|
Input: {
|
|
221
221
|
colorBgContainer: colors.surface.input,
|
|
222
222
|
colorBorder: colors.border.default,
|
|
223
|
-
colorText: colors.text.
|
|
223
|
+
colorText: colors.text.input,
|
|
224
224
|
colorTextPlaceholder: colors.text.tertiary,
|
|
225
225
|
// Icons
|
|
226
226
|
colorIcon: colors.text.tertiary,
|
|
@@ -232,6 +232,9 @@ export const buildAntDTheme = (colors, constants) => {
|
|
|
232
232
|
activeBg: colors.surface.card,
|
|
233
233
|
activeBorderColor: colors.accent.default,
|
|
234
234
|
activeShadow: `0 0 0 2px ${colors.accent.subtle}`,
|
|
235
|
+
// Error/warning focus rings
|
|
236
|
+
errorActiveShadow: `0 0 0 2px ${colors.semantic.error.subtle}`,
|
|
237
|
+
warningActiveShadow: `0 0 0 2px ${colors.semantic.warning.subtle}`,
|
|
235
238
|
// Disabled
|
|
236
239
|
colorBgContainerDisabled: colors.surface.nested,
|
|
237
240
|
colorTextDisabled: colors.text.disabled,
|
|
@@ -243,19 +246,26 @@ export const buildAntDTheme = (colors, constants) => {
|
|
|
243
246
|
paddingBlock: constants.spacing[2],
|
|
244
247
|
paddingInline: constants.spacing[3],
|
|
245
248
|
paddingInlineLG: constants.spacing[4],
|
|
249
|
+
// Font weight - 500 for input text
|
|
250
|
+
fontWeightStrong: constants.typography.fontWeight.medium,
|
|
246
251
|
},
|
|
247
252
|
InputNumber: {
|
|
248
253
|
colorBgContainer: colors.surface.input,
|
|
254
|
+
colorText: colors.text.input,
|
|
255
|
+
colorTextPlaceholder: colors.text.tertiary,
|
|
249
256
|
colorIcon: colors.text.tertiary,
|
|
250
257
|
colorIconHover: colors.text.secondary,
|
|
251
258
|
activeBorderColor: colors.accent.default,
|
|
252
259
|
activeShadow: `0 0 0 2px ${colors.accent.subtle}`,
|
|
253
260
|
borderRadius: constants.radius.input,
|
|
254
261
|
handleVisible: true,
|
|
262
|
+
fontWeightStrong: constants.typography.fontWeight.medium,
|
|
255
263
|
},
|
|
256
264
|
Select: {
|
|
257
265
|
colorBgContainer: colors.surface.input,
|
|
258
266
|
colorBgElevated: colors.surface.overlay,
|
|
267
|
+
colorText: colors.text.input,
|
|
268
|
+
colorTextPlaceholder: colors.text.tertiary,
|
|
259
269
|
colorIcon: colors.text.tertiary,
|
|
260
270
|
colorIconHover: colors.text.secondary,
|
|
261
271
|
// Focus - blue accent
|
|
@@ -271,9 +281,12 @@ export const buildAntDTheme = (colors, constants) => {
|
|
|
271
281
|
borderRadiusSM: constants.radius.input,
|
|
272
282
|
// Dropdown has shadow
|
|
273
283
|
boxShadowSecondary: constants.shadow.popover,
|
|
284
|
+
fontWeightStrong: constants.typography.fontWeight.medium,
|
|
274
285
|
},
|
|
275
286
|
DatePicker: {
|
|
276
287
|
colorBgContainer: colors.surface.input,
|
|
288
|
+
colorText: colors.text.input,
|
|
289
|
+
colorTextPlaceholder: colors.text.tertiary,
|
|
277
290
|
colorIcon: colors.text.tertiary,
|
|
278
291
|
colorIconHover: colors.text.secondary,
|
|
279
292
|
activeBorderColor: colors.accent.default,
|
|
@@ -282,6 +295,7 @@ export const buildAntDTheme = (colors, constants) => {
|
|
|
282
295
|
cellActiveWithRangeBg: colors.accent.subtle,
|
|
283
296
|
colorPrimary: colors.accent.default,
|
|
284
297
|
borderRadius: constants.radius.input,
|
|
298
|
+
fontWeightStrong: constants.typography.fontWeight.medium,
|
|
285
299
|
},
|
|
286
300
|
// ========================================
|
|
287
301
|
// FORM CONTROLS - Use accent for selected state
|
|
@@ -5,15 +5,23 @@
|
|
|
5
5
|
* - Primary actions: Near-black (light) / Near-white (dark)
|
|
6
6
|
* - All UI elements use neutral scale
|
|
7
7
|
* - Blue accent for links and focus states
|
|
8
|
-
* - Modern, vibrant semantic colors
|
|
8
|
+
* - Modern, vibrant semantic colors with AAA contrast
|
|
9
|
+
*
|
|
10
|
+
* Semantic color definitions:
|
|
11
|
+
* - main: For icons, borders, full backgrounds, text on subtle backgrounds
|
|
12
|
+
* - subtle: For light/dark background fills
|
|
13
|
+
* - contrast: For icons & text on main backgrounds
|
|
9
14
|
*/
|
|
10
15
|
export type ThemeMode = 'light' | 'dark';
|
|
11
16
|
/**
|
|
12
17
|
* Color scale interface
|
|
13
18
|
*/
|
|
14
19
|
export interface ColorScale {
|
|
20
|
+
/** Main color - for icons, borders, solid backgrounds, text on subtle */
|
|
15
21
|
main: string;
|
|
22
|
+
/** Subtle background - for alert/badge backgrounds */
|
|
16
23
|
subtle: string;
|
|
24
|
+
/** Contrast color - for text/icons on main backgrounds */
|
|
17
25
|
contrast: string;
|
|
18
26
|
}
|
|
19
27
|
/**
|
|
@@ -73,6 +81,7 @@ export interface ColorPalette {
|
|
|
73
81
|
tertiary: string;
|
|
74
82
|
disabled: string;
|
|
75
83
|
inverse: string;
|
|
84
|
+
input: string;
|
|
76
85
|
};
|
|
77
86
|
action: {
|
|
78
87
|
default: string;
|