@latte-macchiat-io/latte-vanilla-components 0.0.555 → 0.0.556

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.555",
3
+ "version": "0.0.556",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,4 +1,4 @@
1
- import { style } from '@vanilla-extract/css';
1
+ import { globalStyle, style } from '@vanilla-extract/css';
2
2
  import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
3
3
 
4
4
  import { themeContract } from '../../../theme/contract.css';
@@ -7,6 +7,7 @@ export const checkboxRecipe = recipe(
7
7
  {
8
8
  base: {
9
9
  display: 'flex',
10
+ flexWrap: 'wrap',
10
11
  alignItems: 'center',
11
12
  gap: themeContract.space.sm,
12
13
  transition: 'all 0.2s ease-in-out',
@@ -15,8 +16,8 @@ export const checkboxRecipe = recipe(
15
16
  variants: {
16
17
  labelPosition: {
17
18
  left: {
18
- flexDirection: 'row-reverse',
19
19
  justifyContent: 'flex-end',
20
+ flexDirection: 'row-reverse',
20
21
  },
21
22
  right: {
22
23
  flexDirection: 'row',
@@ -55,8 +56,19 @@ export const checkboxLabel = style({
55
56
  color: themeContract.form.textField.color,
56
57
  });
57
58
 
58
- export const messageContainer = style({});
59
+ export const messageContainer = style({
60
+ width: '100%',
61
+ display: 'flex',
62
+ flexDirection: 'column',
63
+ gap: themeContract.space.xs,
64
+ });
59
65
 
60
66
  export const errorMessage = style({});
61
67
 
68
+ globalStyle(`${messageContainer} span`, {
69
+ fontSize: '0.9em',
70
+ color: themeContract.colors.error,
71
+ fontFamily: themeContract.fonts.body,
72
+ });
73
+
62
74
  export type CheckboxVariants = RecipeVariants<typeof checkboxRecipe>;