myoperator-ui 0.0.182-beta.2 → 0.0.182

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -5
  2. 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
- const utility = cls.slice(variants.length);
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 `${variants}${prefix}${utility}`;
309
+ return `!${prefix}${rest}`;
301
310
  }
302
311
  if (cls.startsWith("-") && cls.length > 1) {
303
312
  return `-${prefix}${cls.slice(1)}`;
@@ -10623,6 +10632,7 @@ export type { PricingToggleProps, PricingToggleTab } from "./types";
10623
10632
  {
10624
10633
  name: "talk-to-us-modal.tsx",
10625
10634
  content: prefixTailwindClasses(`import * as React from "react";
10635
+ import { cn } from "../../../lib/utils";
10626
10636
  import { MyOperatorChatIcon } from "./icon";
10627
10637
  import { Button } from "../button";
10628
10638
  import {
@@ -10675,8 +10685,7 @@ const TalkToUsModal: React.FC<TalkToUsModalProps> = ({
10675
10685
  <DialogContent
10676
10686
  size="sm"
10677
10687
  hideCloseButton
10678
- className={className}
10679
- style={{ padding: 0 }}
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 */}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.182-beta.2",
3
+ "version": "0.0.182",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",