@latte-macchiat-io/latte-vanilla-components 0.0.449 → 0.0.450

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.449",
3
+ "version": "0.0.450",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -15,14 +15,14 @@ export type BoxProps = React.HTMLAttributes<HTMLDivElement> &
15
15
  background?: string;
16
16
  };
17
17
 
18
- export const Box = ({ align, vAlign, children, backgroundColor, isLight, className, direction, isReversed, paddingTop }: BoxProps) => {
18
+ export const Box = ({ align, vAlign, children, variant, isLight, className, direction, isReversed, paddingTop }: BoxProps) => {
19
19
  return (
20
20
  <div
21
21
  className={cn(
22
22
  box({
23
23
  align,
24
24
  direction,
25
- backgroundColor,
25
+ variant,
26
26
  isReversed,
27
27
  paddingTop,
28
28
  }),
@@ -41,7 +41,7 @@ export const box = recipe({
41
41
  base: [boxBase, boxAdjacent],
42
42
 
43
43
  variants: {
44
- backgroundColor: {
44
+ variant: {
45
45
  primary: {
46
46
  backgroundColor: themeContract.section.variant.primary.backgroundColor,
47
47
  },
@@ -105,7 +105,7 @@ export const box = recipe({
105
105
  align: 'left',
106
106
  paddingTop: 'small',
107
107
  direction: 'column',
108
- backgroundColor: 'primary',
108
+ variant: 'primary',
109
109
  },
110
110
  });
111
111