@latte-macchiat-io/latte-vanilla-components 0.0.547 → 0.0.549

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.547",
3
+ "version": "0.0.549",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -18,7 +18,7 @@ import {
18
18
  } from './styles.css';
19
19
 
20
20
  import { defaultBreakpoints } from '../../styles/mediaqueries';
21
- import { getResponsiveValue, parseResponsiveNumber } from '../../utils/getResponsiveValue';
21
+ import { getResponsiveValue, parseResponsiveNumber } from '../../styles/utils/getResponsiveValue';
22
22
  import { cn } from '../../utils/styleOverride';
23
23
  import { useWindowSize } from '../../utils/useWindowSize';
24
24
 
@@ -3,9 +3,9 @@ import { calc } from '@vanilla-extract/css-utils';
3
3
  import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
4
4
 
5
5
  import { mediaQuery } from '../../styles/mediaqueries';
6
+ import { addPixelsToBreakpoints } from '../../styles/utils/addPixelsToBreakpoints';
6
7
  import { generateResponsiveMedia } from '../../styles/utils/generateResponsiveMedia';
7
8
  import { themeContract } from '../../theme/contract.css';
8
- import { addPixelsToBreakpoints } from '../../utils/addPixelsToBreakpoints';
9
9
 
10
10
  export const videoRecipe = recipe(
11
11
  {
@@ -1,4 +1,4 @@
1
- import { Breakpoints } from '../styles/mediaqueries';
1
+ import { Breakpoints } from '../mediaqueries';
2
2
 
3
3
  export function addPixelsToBreakpoints(map: Record<Breakpoints, string>, pixels: number) {
4
4
  return Object.fromEntries(Object.entries(map).map(([bp, value]) => [bp, `calc(${value} + ${pixels}px)`])) as Record<Breakpoints, string>;
@@ -1,6 +1,6 @@
1
- import { breakpoints } from '../styles/mediaqueries';
1
+ import { defaultBreakpoints } from '../mediaqueries';
2
2
 
3
- type BreakpointKey = keyof typeof breakpoints;
3
+ type BreakpointKey = keyof typeof defaultBreakpoints;
4
4
  type ResponsiveValue = string | number;
5
5
  type ResponsiveMap = Partial<Record<BreakpointKey, ResponsiveValue>>;
6
6
 
@@ -24,7 +24,7 @@ export const getResponsiveValue = (values: ResponsiveValue | ResponsiveMap, widt
24
24
 
25
25
  // ✅ Iterate breakpoints in order and update if current width passes threshold
26
26
  for (const bp of bpOrder) {
27
- const bpMin = breakpoints[bp];
27
+ const bpMin = defaultBreakpoints[bp];
28
28
  const bpValue = values[bp];
29
29
 
30
30
  if (width !== undefined && width >= bpMin && bpValue !== undefined) {