@latte-macchiat-io/latte-vanilla-components 0.0.296 → 0.0.298

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.296",
3
+ "version": "0.0.298",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -4,26 +4,26 @@ import { queries } from '../../styles/mediaqueries';
4
4
  import { themeContract } from '../../theme/contract.css';
5
5
  import { generateResponsiveMedia } from '../../utils/generateResponsiveMedia';
6
6
 
7
+ export const columnsBase = style({
8
+ display: 'grid',
9
+ width: '100%',
10
+ gridTemplateColumns: '1fr', // Mobile : une seule colonne
11
+
12
+ '@media': {
13
+ ...generateResponsiveMedia({
14
+ gap: themeContract.columns.gap,
15
+ }),
16
+
17
+ [queries.sm]: {
18
+ gridAutoFlow: 'row',
19
+ gridTemplateColumns: 'var(--columns)', // desktop : prend la variable CSS
20
+ },
21
+ },
22
+ });
23
+
7
24
  export const columnsRecipe = recipe(
8
25
  {
9
- base: [
10
- {
11
- display: 'grid',
12
- width: '100%',
13
- gridTemplateColumns: '1fr', // Mobile : une seule colonne
14
-
15
- '@media': {
16
- ...generateResponsiveMedia({
17
- gap: themeContract.columns.gap,
18
- }),
19
-
20
- [queries.sm]: {
21
- gridAutoFlow: 'row',
22
- gridTemplateColumns: 'var(--columns)', // desktop : prend la variable CSS
23
- },
24
- },
25
- },
26
- ],
26
+ base: [columnsBase],
27
27
 
28
28
  variants: {
29
29
  align: {
@@ -46,7 +46,10 @@ export const columnsRecipe = recipe(
46
46
  'columns'
47
47
  );
48
48
 
49
- globalStyle(`${columnsRecipe} > div`, {
49
+ globalStyle(`${columnsBase} > div`, {
50
+ display: 'flex',
51
+ flexDirection: 'column',
52
+
50
53
  '@media': {
51
54
  ...generateResponsiveMedia({
52
55
  gap: themeContract.columns.gap,