@latte-macchiat-io/latte-vanilla-components 0.0.480 → 0.0.481
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.
package/package.json
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { globalStyle, style } from '@vanilla-extract/css';
|
|
2
|
+
import { themeContract } from '../../../theme/contract.css';
|
|
3
|
+
import { generateResponsiveMedia } from '../../../utils/generateResponsiveMedia';
|
|
2
4
|
|
|
3
5
|
export const collapseExpandItem = style({
|
|
4
6
|
gap: 0,
|
|
5
7
|
display: 'flex',
|
|
6
|
-
borderRadius: 20,
|
|
7
8
|
flexDirection: 'column',
|
|
8
9
|
transition: 'gap 0.3s ease-out',
|
|
9
|
-
// backgroundColor: brandColorGreyXXLight,
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
border: themeContract.expandCollapse.item.border,
|
|
12
|
+
borderRadius: themeContract.expandCollapse.item.borderRadius,
|
|
13
|
+
backgroundColor: themeContract.expandCollapse.item.backgroundColor,
|
|
14
|
+
|
|
15
|
+
'@media': generateResponsiveMedia({
|
|
16
|
+
padding: themeContract.expandCollapse.item.padding,
|
|
17
|
+
}),
|
|
14
18
|
});
|
|
15
19
|
|
|
16
20
|
export const collapseExpandItemOpen = style({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
'@media': generateResponsiveMedia({
|
|
22
|
+
gap: themeContract.expandCollapse.item.gap,
|
|
23
|
+
}),
|
|
20
24
|
});
|
|
21
25
|
|
|
22
26
|
export const collapseExpandItemTitle = style({
|
|
@@ -33,6 +37,7 @@ export const collapseExpandItemTitle = style({
|
|
|
33
37
|
});
|
|
34
38
|
|
|
35
39
|
export const collapseExpandTitleIcon = style({
|
|
40
|
+
margin: 0,
|
|
36
41
|
transition: 'transform 0.3s ease-out',
|
|
37
42
|
|
|
38
43
|
// '@media': generateResponsiveMedia({
|
|
@@ -19,17 +19,47 @@ const themeExpandCollapseBase = {
|
|
|
19
19
|
'2xl': '50px',
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
+
|
|
23
|
+
item: {
|
|
24
|
+
border: '',
|
|
25
|
+
borderRadius: '',
|
|
26
|
+
|
|
27
|
+
gap: {
|
|
28
|
+
mobile: '15px',
|
|
29
|
+
sm: '15px',
|
|
30
|
+
md: '30px',
|
|
31
|
+
lg: '30px',
|
|
32
|
+
xl: '50px',
|
|
33
|
+
'2xl': '50px',
|
|
34
|
+
},
|
|
35
|
+
padding: {
|
|
36
|
+
mobile: '15px',
|
|
37
|
+
sm: '15px',
|
|
38
|
+
md: '30px',
|
|
39
|
+
lg: '30px',
|
|
40
|
+
xl: '50px',
|
|
41
|
+
'2xl': '50px',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
22
44
|
},
|
|
23
45
|
};
|
|
24
46
|
|
|
25
47
|
export const themeExpandCollapseLight = {
|
|
26
48
|
expandCollapse: {
|
|
27
49
|
...themeExpandCollapseBase.expandCollapse,
|
|
50
|
+
item: {
|
|
51
|
+
...themeExpandCollapseBase.expandCollapse.item,
|
|
52
|
+
backgroundColor: '',
|
|
53
|
+
},
|
|
28
54
|
},
|
|
29
55
|
};
|
|
30
56
|
|
|
31
57
|
export const themeExpandCollapseDark = {
|
|
32
58
|
expandCollapse: {
|
|
33
59
|
...themeExpandCollapseBase.expandCollapse,
|
|
60
|
+
item: {
|
|
61
|
+
...themeExpandCollapseBase.expandCollapse.item,
|
|
62
|
+
backgroundColor: '',
|
|
63
|
+
},
|
|
34
64
|
},
|
|
35
65
|
};
|
|
@@ -1289,5 +1289,28 @@ export const themeContract = createGlobalThemeContract({
|
|
|
1289
1289
|
'2xl': 'latte-expandCollapse-list-gap-2xl',
|
|
1290
1290
|
},
|
|
1291
1291
|
},
|
|
1292
|
+
item: {
|
|
1293
|
+
border: 'latte-expandCollapse-item-border',
|
|
1294
|
+
borderRadius: 'latte-expandCollapse-item-borderRadius',
|
|
1295
|
+
backgroundColor: 'latte-expandCollapse-item-backgroundColor',
|
|
1296
|
+
|
|
1297
|
+
padding: {
|
|
1298
|
+
mobile: 'latte-expandCollapse-item-padding-mobile',
|
|
1299
|
+
sm: 'latte-expandCollapse-item-padding-sm',
|
|
1300
|
+
md: 'latte-expandCollapse-item-padding-md',
|
|
1301
|
+
lg: 'latte-expandCollapse-item-padding-lg',
|
|
1302
|
+
xl: 'latte-expandCollapse-item-padding-xl',
|
|
1303
|
+
'2xl': 'latte-expandCollapse-item-padding-2xl',
|
|
1304
|
+
},
|
|
1305
|
+
|
|
1306
|
+
gap: {
|
|
1307
|
+
mobile: 'latte-expandCollapse-item-gap-mobile',
|
|
1308
|
+
sm: 'latte-expandCollapse-item-gap-sm',
|
|
1309
|
+
md: 'latte-expandCollapse-item-gap-md',
|
|
1310
|
+
lg: 'latte-expandCollapse-item-gap-lg',
|
|
1311
|
+
xl: 'latte-expandCollapse-item-gap-xl',
|
|
1312
|
+
'2xl': 'latte-expandCollapse-item-gap-2xl',
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1292
1315
|
},
|
|
1293
1316
|
});
|