myoperator-ui 0.0.182-beta.1 → 0.0.182-beta.3
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/index.js +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -292,12 +292,21 @@ function prefixClassString(classString, prefix) {
|
|
|
292
292
|
const variantMatch = cls.match(/^(([a-z][a-z0-9]*(-[a-z0-9]+)*:)|((data|aria|group|peer)(\/[a-z0-9-]+)?-?\[[^\]]+\]:))+/);
|
|
293
293
|
if (variantMatch) {
|
|
294
294
|
const variants = variantMatch[0];
|
|
295
|
-
|
|
295
|
+
let utility = cls.slice(variants.length);
|
|
296
296
|
if (!utility) return cls;
|
|
297
|
+
const isImportant = utility.startsWith("!");
|
|
298
|
+
if (isImportant) utility = utility.slice(1);
|
|
297
299
|
if (utility.startsWith("-")) {
|
|
298
|
-
return `${variants}-${prefix}${utility.slice(1)}`;
|
|
300
|
+
return `${variants}${isImportant ? "!" : ""}-${prefix}${utility.slice(1)}`;
|
|
301
|
+
}
|
|
302
|
+
return `${variants}${isImportant ? "!" : ""}${prefix}${utility}`;
|
|
303
|
+
}
|
|
304
|
+
if (cls.startsWith("!") && cls.length > 1) {
|
|
305
|
+
const rest = cls.slice(1);
|
|
306
|
+
if (rest.startsWith("-") && rest.length > 1) {
|
|
307
|
+
return `!-${prefix}${rest.slice(1)}`;
|
|
299
308
|
}
|
|
300
|
-
return
|
|
309
|
+
return `!${prefix}${rest}`;
|
|
301
310
|
}
|
|
302
311
|
if (cls.startsWith("-") && cls.length > 1) {
|
|
303
312
|
return `-${prefix}${cls.slice(1)}`;
|
|
@@ -10676,7 +10685,7 @@ const TalkToUsModal: React.FC<TalkToUsModalProps> = ({
|
|
|
10676
10685
|
<DialogContent
|
|
10677
10686
|
size="sm"
|
|
10678
10687
|
hideCloseButton
|
|
10679
|
-
className={cn("p-0", className)}
|
|
10688
|
+
className={cn("!p-0 !gap-0", className)}
|
|
10680
10689
|
>
|
|
10681
10690
|
<div className="flex flex-col items-center gap-6 px-[60px] py-10 text-center">
|
|
10682
10691
|
{/* Icon + Text section */}
|