Skip to content

Commit 06f8a4b

Browse files
authored
refactor: rename lumo-utilities to lumo-utility (#2144)
Renamed style group based on feedback from PO
1 parent ed882b8 commit 06f8a4b

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed

packages/vaadin-lumo-styles/all-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export * from './sizing.js';
88
export * from './spacing.js';
99
export * from './style.js';
1010
export * from './typography.js';
11-
export * from './utilities/index.js';
11+
export * from './utility.js';

packages/vaadin-lumo-styles/all-imports.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ import './style.js';
2727
export * from './style.js';
2828
import './typography.js';
2929
export * from './typography.js';
30-
import './utilities/index.js';
31-
export * from './utilities/index.js';
30+
import './utility.js';
31+
export * from './utility.js';

packages/vaadin-lumo-styles/utilities/index.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/vaadin-lumo-styles/utilities/index.js

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { CSSResult } from 'lit';
2+
3+
export const utility: CSSResult;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* @license
3+
* Copyright (c) 2021 Vaadin Ltd.
4+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5+
*/
6+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/register-styles';
7+
import { accessibility } from './utilities/accessibility.js';
8+
import { background } from './utilities/background.js';
9+
import { border } from './utilities/border.js';
10+
import { shadows } from './utilities/shadows.js';
11+
import { flexboxAndGrid } from './utilities/flexbox-grid.js';
12+
import { layout } from './utilities/layout.js';
13+
import { sizing } from './utilities/sizing.js';
14+
import { spacing } from './utilities/spacing.js';
15+
import { typography } from './utilities/typography.js';
16+
17+
/* prettier-ignore */
18+
export const utility = css`
19+
${accessibility}
20+
${background}
21+
${border}
22+
${shadows}
23+
${flexboxAndGrid}
24+
${layout}
25+
${sizing}
26+
${spacing}
27+
${typography}
28+
`;
29+
30+
registerStyles('', utility, { moduleId: 'lumo-utility' });

0 commit comments

Comments
 (0)