create-prisma-php-app 1.26.528 → 1.26.530

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.
@@ -47,17 +47,21 @@ class PHPX implements IPHPX
47
47
  /**
48
48
  * Combines and returns the CSS classes for the component.
49
49
  *
50
- * This method merges the optional base CSS class with additional classes
51
- * defined in the component's `$class` property. If no base class is provided,
52
- * only the component's `$class` property will be used. It ensures that there
53
- * are no duplicate classes and the classes are properly formatted.
50
+ * This method merges the provided classes, which can be either strings or arrays of strings,
51
+ * with the component's `$class` property. It uses the `Utils::mergeClasses` method to ensure
52
+ * that the resulting CSS class string is optimized, with duplicate or conflicting classes removed.
54
53
  *
55
- * @param string|null $baseClass The optional base CSS class to be merged. Defaults to `null`.
56
- * @return string The merged CSS class string.
54
+ * ### Features:
55
+ * - Accepts multiple arguments as strings or arrays of strings.
56
+ * - Automatically merges the provided classes with `$this->class`.
57
+ * - Ensures the final CSS class string is well-formatted and free of conflicts.
58
+ *
59
+ * @param string|array ...$classes The CSS classes to be merged. Each argument can be a string or an array of strings.
60
+ * @return string A single CSS class string with the merged and optimized classes, including `$this->class`.
57
61
  */
58
- protected function getMergeClasses(?string $baseClass = null): string
62
+ protected function getMergeClasses(string|array ...$classes): string
59
63
  {
60
- return TwMerge::mergeClasses($baseClass, $this->class);
64
+ return TwMerge::mergeClasses($classes, $this->class);
61
65
  }
62
66
 
63
67
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.26.528",
3
+ "version": "1.26.530",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",