@temboplus/frontend-react-core 0.1.3-beta.24 → 0.1.3-beta.26
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.js +1 -1
- package/dist/dialogs/index.cjs.js +3 -3
- package/dist/dialogs/index.cjs.js.map +1 -1
- package/dist/dialogs/index.js +3 -3
- package/dist/dialogs/index.js.map +1 -1
- package/dist/features/dialogs/tembo-confirm.js +3 -3
- package/dist/features/notifications/toast-config.js +5 -5
- 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-BJ5ZQ2Fn.js +3 -0
- package/dist/tembo-notify-BJ5ZQ2Fn.js.map +1 -0
- package/dist/tembo-notify-CTCIkaq3.js +3 -0
- package/dist/tembo-notify-CTCIkaq3.js.map +1 -0
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens/colors.d.ts +38 -12
- package/dist/theme/tokens/colors.js +53 -47
- package/dist/{theme-provider-CWdiDiea.js → theme-provider-C2y-8Jxe.js} +2 -2
- package/dist/{theme-provider-CWdiDiea.js.map → theme-provider-C2y-8Jxe.js.map} +1 -1
- package/dist/{theme-provider-Bq-Em1rT.js → theme-provider-D9dppQsU.js} +2 -2
- package/dist/{theme-provider-Bq-Em1rT.js.map → theme-provider-D9dppQsU.js.map} +1 -1
- package/dist/theme-provider-DCFA3aRi.js +11 -0
- package/dist/{theme-provider-DyfoES-9.js.map → theme-provider-DCFA3aRi.js.map} +1 -1
- package/dist/theme-provider-DmsvxR9f.js +11 -0
- package/dist/{theme-provider-BSuJM4gv.js.map → theme-provider-DmsvxR9f.js.map} +1 -1
- package/package.json +1 -1
- package/dist/tembo-notify-CCYaoFRk.js +0 -3
- package/dist/tembo-notify-CCYaoFRk.js.map +0 -1
- package/dist/tembo-notify-CQymjSW8.js +0 -3
- package/dist/tembo-notify-CQymjSW8.js.map +0 -1
- package/dist/theme-provider-BSuJM4gv.js +0 -11
- package/dist/theme-provider-DyfoES-9.js +0 -11
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-DCFA3aRi.js"),r=require("antd");require("../theme-provider-C2y-8Jxe.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
|
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-DmsvxR9f.js";import{Typography as n,Space as i,Flex as s}from"antd";import"../theme-provider-D9dppQsU.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-
|
|
2
|
-
/** */"production"!==process.env.NODE_ENV&&(
|
|
3
|
-
/** */"production"!==process.env.NODE_ENV&&(
|
|
1
|
+
"use strict";var e=require("../theme-provider-DCFA3aRi.js"),t=require("antd"),n=require("@ebay/nice-modal-react");require("../theme-provider-C2y-8Jxe.js"),require("lodash");var r=require("../InfoCircleOutlined-DR9DmuN-.js"),s=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 r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=o(n),i=c(s),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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const m=(e,t)=>i.createElement(r.Icon,u({},e,{ref:t,icon:l})),d=i.forwardRef(m);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(d.displayName="QuestionCircleOutlined");var j={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 p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}const f=(e,t)=>i.createElement(r.Icon,p({},e,{ref:t,icon:j})),x=i.forwardRef(f);
|
|
3
|
+
/** */"production"!==process.env.NODE_ENV&&(x.displayName="WarningOutlined");const g=a.default.create(r=>{var s,o,c;const a=n.useModal();return e.jsxRuntimeExports.jsx(t.Modal,{open:a.visible,title:r.title,onOk:async()=>{r.onOk&&await r.onOk(),a.resolve(!0),a.remove()},onCancel:()=>{r.onCancel&&r.onCancel(),a.resolve(!1),a.remove()},okText:null!==(s=r.okText)&&void 0!==s?s:"OK",cancelText:null!==(o=r.cancelText)&&void 0!==o?o:"Cancel",okButtonProps:{danger:r.okDanger,type:null!==(c=r.okType)&&void 0!==c?c:"primary"},centered:!0,destroyOnHidden:!0,children:e.jsxRuntimeExports.jsxs(t.Flex,{align:"start",gap:"middle",children:[r.icon&&r.icon,r.content]})})});const b=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(r.RefIcon$1,{style:{color:t.semantic.error.main}})},h=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(x,{style:{color:t.semantic.warning.main}})},O=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(r.RefIcon,{style:{color:t.semantic.info.main}})},v=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(r.RefIcon$2,{style:{color:t.semantic.success.main}})},y=()=>{const{colors:t}=e.useNewTemboTheme();return e.jsxRuntimeExports.jsx(d,{style:{color:t.neutral[4]}})};exports.ConfirmDialog=g,exports.TemboConfirm=class{static async danger(t){return a.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(b,{}),okDanger:!0,okType:"primary"}))}static async warning(t){return a.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(h,{})}))}static async info(t){return a.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(O,{})}))}static async success(t){return a.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(v,{})}))}static async confirm(t){return a.default.show(g,Object.assign(Object.assign({},t),{icon:e.jsxRuntimeExports.jsx(y,{})}))}};
|
|
4
4
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnHidden","_jsxs","Flex","align","gap","content","DangerIcon","colors","useNewTemboTheme","ExclamationCircleOutlined","style","color","semantic","error","main","WarningIcon","warning","InfoIcon","InfoCircleOutlined","info","SuccessIcon","CheckCircleOutlined","success","QuestionIcon","neutral","show","confirm"],"mappings":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List":[0,1,2,3]}
|
package/dist/dialogs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,u as
|
|
2
|
-
/** */"production"!==process.env.NODE_ENV&&(
|
|
3
|
-
/** */"production"!==process.env.NODE_ENV&&(
|
|
1
|
+
import{j as e,u as n}from"../theme-provider-DmsvxR9f.js";import{Modal as t,Flex as s}from"antd";import r,{useModal as o}from"@ebay/nice-modal-react";import"../theme-provider-D9dppQsU.js";import"lodash";import{I as c,a,R as i,b as l}from"../InfoCircleOutlined-Hx86sClq.js";import*as m from"react";var u={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 n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},p.apply(this,arguments)}const d=(e,n)=>m.createElement(c,p({},e,{ref:n,icon:u})),g=m.forwardRef(d);
|
|
2
|
+
/** */"production"!==process.env.NODE_ENV&&(g.displayName="QuestionCircleOutlined");var j={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 h(){return h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},h.apply(this,arguments)}const v=(e,n)=>m.createElement(c,h({},e,{ref:n,icon:j})),O=m.forwardRef(v);
|
|
3
|
+
/** */"production"!==process.env.NODE_ENV&&(O.displayName="WarningOutlined");const f=r.create(n=>{var r,c,a;const i=o();return e.jsx(t,{open:i.visible,title:n.title,onOk:async()=>{n.onOk&&await n.onOk(),i.resolve(!0),i.remove()},onCancel:()=>{n.onCancel&&n.onCancel(),i.resolve(!1),i.remove()},okText:null!==(r=n.okText)&&void 0!==r?r:"OK",cancelText:null!==(c=n.cancelText)&&void 0!==c?c:"Cancel",okButtonProps:{danger:n.okDanger,type:null!==(a=n.okType)&&void 0!==a?a:"primary"},centered:!0,destroyOnHidden:!0,children:e.jsxs(s,{align:"start",gap:"middle",children:[n.icon&&n.icon,n.content]})})});class y{static async danger(n){return r.show(f,Object.assign(Object.assign({},n),{icon:e.jsx(b,{}),okDanger:!0,okType:"primary"}))}static async warning(n){return r.show(f,Object.assign(Object.assign({},n),{icon:e.jsx(x,{})}))}static async info(n){return r.show(f,Object.assign(Object.assign({},n),{icon:e.jsx(w,{})}))}static async success(n){return r.show(f,Object.assign(Object.assign({},n),{icon:e.jsx(k,{})}))}static async confirm(n){return r.show(f,Object.assign(Object.assign({},n),{icon:e.jsx(C,{})}))}}const b=()=>{const{colors:t}=n();return e.jsx(a,{style:{color:t.semantic.error.main}})},x=()=>{const{colors:t}=n();return e.jsx(O,{style:{color:t.semantic.warning.main}})},w=()=>{const{colors:t}=n();return e.jsx(i,{style:{color:t.semantic.info.main}})},k=()=>{const{colors:t}=n();return e.jsx(l,{style:{color:t.semantic.success.main}})},C=()=>{const{colors:t}=n();return e.jsx(g,{style:{color:t.neutral[4]}})};export{f as ConfirmDialog,y as TemboConfirm};
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","../../node_modules/@ant-design/icons-svg/es/asn/WarningOutlined.js","../../node_modules/@ant-design/icons/es/icons/WarningOutlined.js","../../src/features/dialogs/tembo-confirm.tsx"],"sourcesContent":["// This icon file is generated automatically.\nvar QuestionCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z\" } }] }, \"name\": \"question-circle\", \"theme\": \"outlined\" };\nexport default QuestionCircleOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport QuestionCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/QuestionCircleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst QuestionCircleOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: QuestionCircleOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(QuestionCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'QuestionCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar WarningOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z\" } }] }, \"name\": \"warning\", \"theme\": \"outlined\" };\nexport default WarningOutlined;\n","function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningOutlinedSvg from \"@ant-design/icons-svg/es/asn/WarningOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nconst WarningOutlined = (props, ref) => /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningOutlinedSvg\n}));\n\n/** */\nconst RefIcon = /*#__PURE__*/React.forwardRef(WarningOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'WarningOutlined';\n}\nexport default RefIcon;",null],"names":["QuestionCircleOutlined","icon","tag","attrs","viewBox","focusable","children","d","name","theme","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","props","ref","React","createElement","AntdIcon","QuestionCircleOutlinedSvg","RefIcon","forwardRef","process","env","NODE_ENV","displayName","WarningOutlined","WarningOutlinedSvg","ConfirmDialog","NiceModal","create","modal","useModal","_jsx","Modal","open","visible","title","onOk","async","resolve","remove","onCancel","okText","_a","cancelText","_b","okButtonProps","danger","okDanger","type","_c","okType","centered","destroyOnHidden","_jsxs","Flex","align","gap","content","TemboConfirm","show","DangerIcon","warning","WarningIcon","info","InfoIcon","success","SuccessIcon","confirm","QuestionIcon","colors","useNewTemboTheme","ExclamationCircleOutlined","style","color","semantic","error","main","InfoCircleOutlined","CheckCircleOutlined","neutral"],"mappings":"wSACA,IAAIA,EAAyB,CAAEC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,kLAAqL,CAAEL,IAAO,OAAQC,MAAS,CAAEI,EAAK,saAA0aC,KAAQ,kBAAmBC,MAAS,YCDx0B,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,GAAU,CAAE,OAAOL,CAAQ,EAAUJ,EAASa,MAAMC,KAAMR,UAAY,CAOlV,MAAMhB,EAAyB,CAACyB,EAAOC,IAAqBC,EAAMC,cAAcC,EAAUnB,EAAS,CAAA,EAAIe,EAAO,CAC5GC,IAAKA,EACLzB,KAAM6B,KAIFC,EAAuBJ,EAAMK,WAAWhC;ghCACjB,eAAzBiC,QAAQC,IAAIC,WACdJ,EAAQK,YAAc,0BCdxB,IAAIC,EAAkB,CAAEpC,KAAQ,CAAEC,IAAO,MAAOC,MAAS,CAAEC,QAAW,gBAAiBC,UAAa,SAAWC,SAAY,CAAC,CAAEJ,IAAO,OAAQC,MAAS,CAAEI,EAAK,6SAAiTC,KAAQ,UAAWC,MAAS,YCD1e,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAA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,3]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Modal } from 'antd';
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Flex, Modal } from 'antd';
|
|
3
3
|
import NiceModal, { useModal } from '@ebay/nice-modal-react';
|
|
4
4
|
import { ExclamationCircleOutlined, QuestionCircleOutlined, InfoCircleOutlined, WarningOutlined, CheckCircleOutlined, } from '@ant-design/icons';
|
|
5
5
|
import { useNewTemboTheme } from '../../theme/index.js';
|
|
@@ -26,7 +26,7 @@ export const ConfirmDialog = NiceModal.create((props) => {
|
|
|
26
26
|
return (_jsx(Modal, { open: modal.visible, title: props.title, onOk: handleOk, onCancel: handleCancel, okText: (_a = props.okText) !== null && _a !== void 0 ? _a : 'OK', cancelText: (_b = props.cancelText) !== null && _b !== void 0 ? _b : 'Cancel', okButtonProps: {
|
|
27
27
|
danger: props.okDanger,
|
|
28
28
|
type: (_c = props.okType) !== null && _c !== void 0 ? _c : 'primary',
|
|
29
|
-
}, centered: true,
|
|
29
|
+
}, centered: true, destroyOnHidden: true, children: _jsxs(Flex, { align: 'start', gap: "middle", children: [props.icon && (props.icon), props.content] }) }));
|
|
30
30
|
});
|
|
31
31
|
/**
|
|
32
32
|
* TemboConfirm - Unified confirmation dialog system
|
|
@@ -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 } })),
|
|
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 } })),
|
|
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 } })),
|
|
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.
|
|
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] } })),
|
|
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-
|
|
1
|
+
"use strict";var n=require("./theme-provider-DCFA3aRi.js"),e=require("@ebay/nice-modal-react"),t=require("tslib"),s=require("react"),i=require("react-toastify"),o=require("./tembo-notify-BJ5ZQ2Fn.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-DmsvxR9f.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-CTCIkaq3.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-BJ5ZQ2Fn.js");require("tslib"),require("../theme-provider-DCFA3aRi.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-CTCIkaq3.js";import"tslib";import"../theme-provider-DmsvxR9f.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-DCFA3aRi.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
|
+
/** */"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-BJ5ZQ2Fn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-BJ5ZQ2Fn.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","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,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,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d,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-DmsvxR9f.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
|
+
/** */"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-CTCIkaq3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-CTCIkaq3.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","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,IAA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AAA9E,KAAK4F,0BAAkB,IAAAd,EAAAA,EAAIjB,EAE9C,OAAOkC,EAAMC,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,EAAME,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,EAAMQ,QAAQL,EAClB,CAEA,iBAAOM,GACHT,EAAMQ,SACV,CAEA,eAAOE,CAASP,GACZ,OAAOH,EAAMU,SAASP,EAC1B,EAxLepC,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-C2y-8Jxe.js"),r=require("../theme-provider-DCFA3aRi.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-D9dppQsU.js";export{T as TemboThemeProvider,u as useNewTemboTheme}from"../theme-provider-DmsvxR9f.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
|
-
|
|
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,21 +83,29 @@ export interface ColorPalette {
|
|
|
65
83
|
};
|
|
66
84
|
/**
|
|
67
85
|
* Secondary colors - for badges, labels, tags, highlights
|
|
68
|
-
* Each with
|
|
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:
|
|
72
|
-
green:
|
|
73
|
-
blue:
|
|
74
|
-
orange:
|
|
90
|
+
purple: SecondaryColorScale;
|
|
91
|
+
green: SecondaryColorScale;
|
|
92
|
+
blue: SecondaryColorScale;
|
|
93
|
+
orange: SecondaryColorScale;
|
|
75
94
|
};
|
|
76
95
|
surface: {
|
|
96
|
+
/** Main backgrounds */
|
|
77
97
|
page: string;
|
|
98
|
+
/**Elevated surfaces */
|
|
78
99
|
card: string;
|
|
100
|
+
/**Modals, dropdowns */
|
|
79
101
|
overlay: string;
|
|
102
|
+
/**Input fields */
|
|
80
103
|
input: string;
|
|
104
|
+
/** Hover states */
|
|
81
105
|
interactive: string;
|
|
106
|
+
/** Selected states */
|
|
82
107
|
selected: string;
|
|
108
|
+
/** Nested backgrounds */
|
|
83
109
|
nested: string;
|
|
84
110
|
};
|
|
85
111
|
border: {
|
|
@@ -116,12 +142,12 @@ export type ColorOverrides = {
|
|
|
116
142
|
error?: Partial<ColorScale>;
|
|
117
143
|
warning?: Partial<ColorScale>;
|
|
118
144
|
info?: Partial<ColorScale>;
|
|
145
|
+
pending?: Partial<ColorScale>;
|
|
119
146
|
};
|
|
120
147
|
secondary?: {
|
|
121
|
-
purple?: Partial<
|
|
122
|
-
green?: Partial<
|
|
123
|
-
blue?: Partial<
|
|
124
|
-
|
|
125
|
-
yellow?: Partial<ColorScale>;
|
|
148
|
+
purple?: Partial<SecondaryColorScale>;
|
|
149
|
+
green?: Partial<SecondaryColorScale>;
|
|
150
|
+
blue?: Partial<SecondaryColorScale>;
|
|
151
|
+
orange?: Partial<SecondaryColorScale>;
|
|
126
152
|
};
|
|
127
153
|
};
|