@cleartrip/ct-platform-text-badge 3.0.0-beta.1 → 3.0.0
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.
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime");function d(e){return e&&e.__esModule?e:{default:e}}var n=d(require("classnames"));var a={badge__container:"index-module_badge__container__x4Efs",default:"index-module_default__-QwPa","badge-text":"index-module_badge-text__L6lUY",dark:"index-module_dark__D2A4J",light:"index-module_light__qcydF"};!function(e,t){void 0===t&&(t={});var d=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===d&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".index-module_badge__container__x4Efs{width:max-content}.index-module_badge__container__x4Efs.index-module_default__-QwPa .index-module_badge-text__L6lUY{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__x4Efs.index-module_dark__D2A4J{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_dark__D2A4J .index-module_badge-text__L6lUY{color:#fff;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}.index-module_badge__container__x4Efs.index-module_light__qcydF{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_light__qcydF .index-module_badge-text__L6lUY{color:#1a1a1a;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}");exports.TextBadge=function(d){var i=d.title,_=d.variant,o=void 0===_?"DEFAULT":_,r=d.style,l=void 0===r?{}:r;return t.jsx("div",{children:t.jsx("div",e.__assign({className:n.default(a.badge__container,a[null==o?void 0:o.toLowerCase()]),style:e.__assign({},l)},{children:t.jsx("p",e.__assign({className:a["badge-text"]},{children:i}))}))})};
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime");function d(e){return e&&e.__esModule?e:{default:e}}var n=d(require("classnames"));var a={badge__container:"index-module_badge__container__x4Efs",default:"index-module_default__-QwPa","badge-text":"index-module_badge-text__L6lUY",dark:"index-module_dark__D2A4J",light:"index-module_light__qcydF"};!function(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===d&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".index-module_badge__container__x4Efs{width:max-content}.index-module_badge__container__x4Efs.index-module_default__-QwPa .index-module_badge-text__L6lUY{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__x4Efs.index-module_dark__D2A4J{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_dark__D2A4J .index-module_badge-text__L6lUY{color:#fff;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}.index-module_badge__container__x4Efs.index-module_light__qcydF{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_light__qcydF .index-module_badge-text__L6lUY{color:#1a1a1a;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}");exports.TextBadge=function(d){var i=d.title,_=d.variant,o=void 0===_?"DEFAULT":_,r=d.style,l=void 0===r?{}:r;return t.jsx("div",{children:t.jsx("div",e.__assign({className:n.default(a.badge__container,a[null==o?void 0:o.toLowerCase()]),style:e.__assign({},l)},{children:t.jsx("p",e.__assign({className:a["badge-text"]},{children:i}))}))})};
|
2
2
|
//# sourceMappingURL=ct-platform-text-badge.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ct-platform-text-badge.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TextBadge/src/TextBadge.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","title","_b","variant","_c","_jsx","jsx","children","__assign","className","classNames","Style","toLowerCase"],"mappings":"4WAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,
|
1
|
+
{"version":3,"file":"ct-platform-text-badge.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TextBadge/src/TextBadge.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","title","_b","variant","_c","_jsx","jsx","children","__assign","className","classNames","Style","toLowerCase"],"mappings":"4WAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,k9BClB4C,SAACe,GACzC,IAAAC,EAAKD,EAAAC,MACLC,EAAmBF,EAAAG,QAAnBA,OAAU,IAAAD,EAAA,UAASA,EACnBE,EAAUJ,EAAAT,MAAVA,OAAK,IAAAa,EAAG,CAAE,EAAAA,EAEV,OACIC,EACIC,IAAA,MAAA,CAAAC,SAAAF,EAAAA,IAAA,MAAAG,EAAAA,SAAA,CACIC,UAAWC,UACPC,EAAwB,iBACxBA,EAAMR,aAAO,EAAPA,EAASS,gBAEnBrB,oBAAYA,IAAK,CAAAgB,SAEjBF,sBAAGI,UAAWE,EAAM,eAAgB,CAAAJ,SAAAN,SAIpD","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import d from"classnames";var n={badge__container:"index-module_badge__container__x4Efs",default:"index-module_default__-QwPa","badge-text":"index-module_badge-text__L6lUY",dark:"index-module_dark__D2A4J",light:"index-module_light__qcydF"};!function(e,t){void 0===t&&(t={});var d=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===d&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_badge__container__x4Efs{width:max-content}.index-module_badge__container__x4Efs.index-module_default__-QwPa .index-module_badge-text__L6lUY{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__x4Efs.index-module_dark__D2A4J{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_dark__D2A4J .index-module_badge-text__L6lUY{color:#fff;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}.index-module_badge__container__x4Efs.index-module_light__qcydF{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_light__qcydF .index-module_badge-text__L6lUY{color:#1a1a1a;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}");var i=function(i){var a=i.title,o=i.variant,_=void 0===o?"DEFAULT":o,r=i.style,l=void 0===r?{}:r;return t("div",{children:t("div",e({className:d(n.badge__container,n[null==_?void 0:_.toLowerCase()]),style:e({},l)},{children:t("p",e({className:n["badge-text"]},{children:a}))}))})};export{i as TextBadge};
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import d from"classnames";var n={badge__container:"index-module_badge__container__x4Efs",default:"index-module_default__-QwPa","badge-text":"index-module_badge-text__L6lUY",dark:"index-module_dark__D2A4J",light:"index-module_light__qcydF"};!function(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===d&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_badge__container__x4Efs{width:max-content}.index-module_badge__container__x4Efs.index-module_default__-QwPa .index-module_badge-text__L6lUY{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__x4Efs.index-module_dark__D2A4J{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_dark__D2A4J .index-module_badge-text__L6lUY{color:#fff;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}.index-module_badge__container__x4Efs.index-module_light__qcydF{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__x4Efs.index-module_light__qcydF .index-module_badge-text__L6lUY{color:#1a1a1a;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.4px;line-height:12px;margin:0;text-transform:uppercase}");var i=function(i){var a=i.title,o=i.variant,_=void 0===o?"DEFAULT":o,r=i.style,l=void 0===r?{}:r;return t("div",{children:t("div",e({className:d(n.badge__container,n[null==_?void 0:_.toLowerCase()]),style:e({},l)},{children:t("p",e({className:n["badge-text"]},{children:a}))}))})};export{i as TextBadge};
|
2
2
|
//# sourceMappingURL=ct-platform-text-badge.esm.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ct-platform-text-badge.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TextBadge/src/TextBadge.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TextBadge","_a","title","_b","variant","_c","_jsx","children","__assign","className","classNames","Style","toLowerCase"],"mappings":"0TAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,
|
1
|
+
{"version":3,"file":"ct-platform-text-badge.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TextBadge/src/TextBadge.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TextBadge","_a","title","_b","variant","_c","_jsx","children","__assign","className","classNames","Style","toLowerCase"],"mappings":"0TAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,g8BClBM,IAAAe,EAAsC,SAACC,GACzC,IAAAC,EAAKD,EAAAC,MACLC,EAAmBF,EAAAG,QAAnBA,OAAU,IAAAD,EAAA,UAASA,EACnBE,EAAUJ,EAAAV,MAAVA,OAAK,IAAAc,EAAG,CAAE,EAAAA,EAEV,OACIC,EACI,MAAA,CAAAC,SAAAD,EAAA,MAAAE,EAAA,CACIC,UAAWC,EACPC,EAAwB,iBACxBA,EAAMP,aAAO,EAAPA,EAASQ,gBAEnBrB,WAAYA,IAAK,CAAAgB,SAEjBD,SAAGG,UAAWE,EAAM,eAAgB,CAAAJ,SAAAL,SAIpD","x_google_ignoreList":[0]}
|