singularity-components 0.1.81 → 0.1.83

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
@@ -20338,12 +20350,13 @@ var bgColor = {
20338
20350
  var layoutVariants = classVarianceAuthority.cva("sg:grid sg:grid-cols-1 sg:gap-4", {
20339
20351
  variants: {
20340
20352
  type: {
20341
- full: "sg:w-full sg:px-4",
20353
+ full: "sg:w-full",
20354
+ wide: "sg:w-full sg:px-4",
20342
20355
  col: "sg:mx-auto sg:max-w-[768px] sg:px-4 sg:md:px-0"
20343
20356
  },
20344
20357
  cols: {
20345
20358
  "100": "",
20346
- "66-33": "sg:md:grid-cols-2",
20359
+ "66-33": "sg:md:grid-cols-[2fr_1fr]",
20347
20360
  "50-50": "sg:md:grid-cols-2",
20348
20361
  "33-33-33": "sg:md:grid-cols-3",
20349
20362
  "25-25-25-25": "sg:md:grid-cols-4"