@warp-ds/css 2.0.0-v2.2 → 2.0.1-next.1

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,12 +1,9 @@
1
1
  import * as components from './index.js';
2
2
 
3
- const getClasses = () =>
4
- Object.values(components)
5
- .map((e) => {
6
- if (typeof e === 'object')
7
- return Object.values(e).map((e) => e.split(/\s/));
8
- return e.split(/\s/);
9
- })
10
- .flat(Infinity);
11
-
12
- export const classes = [...new Set(getClasses())];
3
+ export const classes = [
4
+ ...new Set(
5
+ Object.values(components)
6
+ .map((e) => (typeof e === 'object' ? Object.values(e).map((e) => e.split(/\s/)) : e.split(/\s/)))
7
+ .flat(Infinity),
8
+ ),
9
+ ];