@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
15 lines • 523 B
JavaScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import clsx from 'clsx';
import mergeWith from 'lodash/mergeWith';
export var mergeClasses = function (classes1, classes2) {
return mergeWith(classes1 || {}, classes2 || {}, function (className1, className2) {
return clsx(className1, className2);
});
};
export default mergeClasses;
//# sourceMappingURL=mergeClasses.js.map