singularity-components 0.1.81 → 0.1.82

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/main.cjs CHANGED
@@ -20032,10 +20032,22 @@ var __iconNode1609 = [
20032
20032
  ];
20033
20033
  var ZoomOut = createLucideIcon("zoom-out", __iconNode1609);
20034
20034
  function cn(...inputs) {
20035
- const twMergeWithPrefix = tailwindMerge.extendTailwindMerge({
20036
- prefix: "sg:"
20037
- });
20038
- return twMergeWithPrefix(tailwindMerge.twMerge(clsx2.clsx(inputs)));
20035
+ const classString = clsx2.clsx(inputs);
20036
+ const allOriginalClasses = classString.split(/\s+/).filter(Boolean);
20037
+ const prefixedClasses = allOriginalClasses.filter((c) => c.startsWith("sg:"));
20038
+ const unprefixedClasses = allOriginalClasses.filter(
20039
+ (c) => !c.startsWith("sg:")
20040
+ );
20041
+ const allClassesWithRemovedPrefix = allOriginalClasses.map(
20042
+ (c) => c.replace("sg:", "")
20043
+ );
20044
+ const mergedClasses = tailwindMerge.twMerge(allClassesWithRemovedPrefix).split(/\s+/).filter(Boolean);
20045
+ return mergedClasses.map((c) => {
20046
+ if (prefixedClasses.includes("sg:" + c) && !unprefixedClasses.includes(c)) {
20047
+ return "sg:" + c;
20048
+ }
20049
+ return c;
20050
+ }).join(" ");
20039
20051
  }
20040
20052
  function Accordion({
20041
20053
  ...props