@luscii-healthtech/web-ui 2.63.1 → 2.63.2
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/web-ui.esm.js
CHANGED
|
@@ -2086,14 +2086,18 @@ toast.info = function (message) {
|
|
|
2086
2086
|
});
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
|
-
var css_248z$2 = ".title {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}";
|
|
2089
|
+
var css_248z$2 = ".title-avenir {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}\n\n.title-inter {\n font-family: \"Inter\", \"Roboto\", \"Helvetica\", sans-serif;\n}";
|
|
2090
2090
|
styleInject(css_248z$2);
|
|
2091
2091
|
|
|
2092
2092
|
var Title = function Title(props) {
|
|
2093
2093
|
var _props$color;
|
|
2094
2094
|
|
|
2095
|
-
var
|
|
2096
|
-
"font-bold", allowedColors[(_props$color = props.color) != null ? _props$color : "base"], {
|
|
2095
|
+
var isSmallTitle = props.type === "xs" || props.type === "sm";
|
|
2096
|
+
var containerClassName = classNames("font-bold", allowedColors[(_props$color = props.color) != null ? _props$color : "base"], {
|
|
2097
|
+
"title-inter": isSmallTitle,
|
|
2098
|
+
"title-avenir": !isSmallTitle //this is used to load the correct font from the css
|
|
2099
|
+
|
|
2100
|
+
}, {
|
|
2097
2101
|
"text-base": props.type === "xs",
|
|
2098
2102
|
"text-xl": props.type === "sm",
|
|
2099
2103
|
"text-2xl": props.type === "base",
|