@cleartrip/ct-platform-text-badge 3.1.0-beta.15 → 3.1.0-beta.16
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"),d=require("react/jsx-runtime");function n(e){return e&&e.__esModule?e:{default:e}}var t=n(require("classnames"));var o={badge__container:"index-
|
1
|
+
"use strict";var e=require("tslib"),d=require("react/jsx-runtime");function n(e){return e&&e.__esModule?e:{default:e}}var t=n(require("classnames"));var o={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","no-border":"index-module_no-border__iL-h5","badge__container--wrapper-for-border":"index-module_badge__container--wrapper-for-border__nsh-a"};!function(e,d){void 0===d&&(d={});var n=d.insertAt;if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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}.index-module_badge__container__x4Efs.index-module_no-border__iL-h5{background:transparent;border:none}.index-module_badge__container--wrapper-for-border__nsh-a{border:1px solid #1a1a1a;border-radius:.25rem;box-sizing:border-box;height:100%;mix-blend-mode:color-burn;opacity:.2;position:absolute;top:0;width:100%}");exports.TextBadge=function(n){var r=n.title,a=n.variant,i=void 0===a?"DEFAULT":a,_=n.style,l=void 0===_?{}:_,s=n.textStyle,x=void 0===s?{}:s,c=n.borderColorInBlendMode,u=void 0!==c&&c;return d.jsxs(d.Fragment,{children:[u?d.jsxs("div",e.__assign({style:e.__assign({position:"relative",width:"fit-content"},l)},{children:[d.jsx("div",e.__assign({className:t.default(o.badge__container,o["no-border"],o[null==i?void 0:i.toLowerCase()])},{children:d.jsx("p",e.__assign({className:o["badge-text"],style:x},{children:r}))})),d.jsx("div",{className:o["badge__container--wrapper-for-border"]})]})):d.jsx("div",{children:d.jsx("div",e.__assign({className:t.default(o.badge__container,o[null==i?void 0:i.toLowerCase()]),style:l},{children:d.jsx("p",e.__assign({className:o["badge-text"],style:x},{children:r}))}))})," "]})};
|
2
2
|
//# sourceMappingURL=ct-platform-text-badge.cjs.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as d,Fragment as o,jsx as
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as d,Fragment as o,jsx as n}from"react/jsx-runtime";import t from"classnames";var r={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","no-border":"index-module_no-border__iL-h5","badge__container--wrapper-for-border":"index-module_badge__container--wrapper-for-border__nsh-a"};!function(e,d){void 0===d&&(d={});var o=d.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===o&&n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.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}.index-module_badge__container__x4Efs.index-module_no-border__iL-h5{background:transparent;border:none}.index-module_badge__container--wrapper-for-border__nsh-a{border:1px solid #1a1a1a;border-radius:.25rem;box-sizing:border-box;height:100%;mix-blend-mode:color-burn;opacity:.2;position:absolute;top:0;width:100%}");var i=function(i){var a=i.title,_=i.variant,l=void 0===_?"DEFAULT":_,x=i.style,s=void 0===x?{}:x,c=i.textStyle,m=void 0===c?{}:c,b=i.borderColorInBlendMode;return d(o,{children:[void 0!==b&&b?d("div",e({style:e({position:"relative",width:"fit-content"},s)},{children:[n("div",e({className:t(r.badge__container,r["no-border"],r[null==l?void 0:l.toLowerCase()])},{children:n("p",e({className:r["badge-text"],style:m},{children:a}))})),n("div",{className:r["badge__container--wrapper-for-border"]})]})):n("div",{children:n("div",e({className:t(r.badge__container,r[null==l?void 0:l.toLowerCase()]),style:s},{children:n("p",e({className:r["badge-text"],style:m},{children:a}))}))})," "]})};export{i as TextBadge};
|
2
2
|
//# sourceMappingURL=ct-platform-text-badge.esm.js.map
|