dce-reactkit 3.6.11 → 3.6.12

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.
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Merges a list of class names into a class name, intelligently handling spaces
3
3
  * @author Gabe Abrams
4
- * @param classNames the list of class names to merge
4
+ * @param classNames the list of class names to merge (or falsey values to
5
+ * ignore)
5
6
  * @returns the merged class name
6
7
  */
7
- declare const combineClassNames: (classNames: string[]) => string;
8
+ declare const combineClassNames: (classNames: (string | undefined | null | false)[]) => string;
8
9
  export default combineClassNames;
package/dist/esm/index.js CHANGED
@@ -41150,11 +41150,16 @@ const AutoscrollToBottomContainer = (props) => {
41150
41150
  /**
41151
41151
  * Merges a list of class names into a class name, intelligently handling spaces
41152
41152
  * @author Gabe Abrams
41153
- * @param classNames the list of class names to merge
41153
+ * @param classNames the list of class names to merge (or falsey values to
41154
+ * ignore)
41154
41155
  * @returns the merged class name
41155
41156
  */
41156
41157
  const combineClassNames = (classNames) => {
41157
41158
  return (classNames
41159
+ // Turn falsey values into empty strings
41160
+ .map((className) => {
41161
+ return className || '';
41162
+ })
41158
41163
  // Trim whitespace
41159
41164
  .map((className) => {
41160
41165
  return className.trim();