@cleartrip/ct-platform-text-badge 3.1.0-beta.9 → 4.1.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.
- package/dist/TextBadge.d.ts.map +1 -1
- package/dist/TextBadge.types.d.ts +1 -4
- package/dist/TextBadge.types.d.ts.map +1 -1
- package/dist/ct-platform-text-badge.cjs.js +1 -1
- package/dist/ct-platform-text-badge.cjs.js.map +1 -1
- package/dist/ct-platform-text-badge.esm.js +1 -1
- package/dist/ct-platform-text-badge.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/TextBadge.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextBadge.d.ts","sourceRoot":"","sources":["../packages/components/TextBadge/src/TextBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
1
|
+
{"version":3,"file":"TextBadge.d.ts","sourceRoot":"","sources":["../packages/components/TextBadge/src/TextBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkBvC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import { CSSProperties } from 'react';
|
2
1
|
export interface TextBadgeProps {
|
3
2
|
title: string;
|
4
3
|
variant: 'DEFAULT' | 'DARK' | 'LIGHT';
|
5
|
-
style?:
|
6
|
-
textStyle?: CSSProperties;
|
7
|
-
borderColorInBlendMode?: boolean;
|
4
|
+
style?: object;
|
8
5
|
}
|
9
6
|
//# sourceMappingURL=TextBadge.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextBadge.types.d.ts","sourceRoot":"","sources":["../packages/components/TextBadge/src/TextBadge.types.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"TextBadge.types.d.ts","sourceRoot":"","sources":["../packages/components/TextBadge/src/TextBadge.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("tslib"),
|
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}))}))})};
|
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","
|
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,GAAgC,oBAAbC,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{
|
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};
|
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","
|
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,GAAgC,oBAAbC,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]}
|