@cleartrip/ct-platform-text-badge 3.1.0-beta.14 → 3.1.0-beta.15
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__TTaFo",default:"index-module_default__xxg-i","badge-text":"index-module_badge-text__cCm83",dark:"index-module_dark__B2Owj",light:"index-module_light__pRIut","no-border":"index-module_no-border__QiIw4","badge__container--wrapper-for-border":"index-module_badge__container--wrapper-for-border__mJ2jI"};!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__TTaFo{width:max-content}.index-module_badge__container__TTaFo.index-module_default__xxg-i .index-module_badge-text__cCm83{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__TTaFo.index-module_dark__B2Owj{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__TTaFo.index-module_dark__B2Owj .index-module_badge-text__cCm83{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__TTaFo.index-module_light__pRIut{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__TTaFo.index-module_light__pRIut .index-module_badge-text__cCm83{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__TTaFo.index-module_no-border__QiIw4{background:transparent;border:none}.index-module_badge__container--wrapper-for-border__mJ2jI{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 a=n.title,i=n.variant,r=void 0===i?"DEFAULT":i,_=n.style,l=void 0===_?{}:_,s=n.textStyle,x=void 0===s?{}:s,u=n.borderColorInBlendMode,c=void 0!==u&&u;return d.jsxs(d.Fragment,{children:[c?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==r?void 0:r.toLowerCase()])},{children:d.jsx("p",e.__assign({className:o["badge-text"],style:x},{children:a}))})),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==r?void 0:r.toLowerCase()]),style:l},{children:d.jsx("p",e.__assign({className:o["badge-text"],style:x},{children:a}))}))})," "]})};
|
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 t}from"react/jsx-runtime";import n from"classnames";var r={badge__container:"index-module_badge__container__TTaFo",default:"index-module_default__xxg-i","badge-text":"index-module_badge-text__cCm83",dark:"index-module_dark__B2Owj",light:"index-module_light__pRIut","no-border":"index-module_no-border__QiIw4","badge__container--wrapper-for-border":"index-module_badge__container--wrapper-for-border__mJ2jI"};!function(e,d){void 0===d&&(d={});var o=d.insertAt;if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".index-module_badge__container__TTaFo{width:max-content}.index-module_badge__container__TTaFo.index-module_default__xxg-i .index-module_badge-text__cCm83{color:#b3b3b3;font-size:10px;font-style:normal;font-weight:500;line-height:14px;margin:0}.index-module_badge__container__TTaFo.index-module_dark__B2Owj{background:#1a1a1a;border-radius:4px;padding:2px 4px}.index-module_badge__container__TTaFo.index-module_dark__B2Owj .index-module_badge-text__cCm83{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__TTaFo.index-module_light__pRIut{background:#fff;border:1px solid #e6e6e6;border-radius:4px;padding:2px 4px}.index-module_badge__container__TTaFo.index-module_light__pRIut .index-module_badge-text__cCm83{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__TTaFo.index-module_no-border__QiIw4{background:transparent;border:none}.index-module_badge__container--wrapper-for-border__mJ2jI{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":_,m=i.style,x=void 0===m?{}:m,c=i.textStyle,s=void 0===c?{}:c,p=i.borderColorInBlendMode;return d(o,{children:[void 0!==p&&p?d("div",e({style:e({position:"relative",width:"fit-content"},x)},{children:[t("div",e({className:n(r.badge__container,r["no-border"],r[null==l?void 0:l.toLowerCase()])},{children:t("p",e({className:r["badge-text"],style:s},{children:a}))})),t("div",{className:r["badge__container--wrapper-for-border"]})]})):t("div",{children:t("div",e({className:n(r.badge__container,r[null==l?void 0:l.toLowerCase()]),style:x},{children:t("p",e({className:r["badge-text"],style:s},{children:a}))}))})," "]})};export{i as TextBadge};
|
2
2
|
//# sourceMappingURL=ct-platform-text-badge.esm.js.map
|