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

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.298",
3
+ "version": "0.0.300",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -19,12 +19,12 @@ const levelToSize: Record<AllowedHeading, NonNullable<HeadingProps['size']>> = {
19
19
  h6: 'xs',
20
20
  };
21
21
 
22
- export const Heading = ({ as, size, align, className, children }: HeadingProps) => {
22
+ export const Heading = ({ as, size, className, children }: HeadingProps) => {
23
23
  const Component = as;
24
24
  const resolvedSize = size ?? levelToSize[as];
25
25
 
26
26
  return (
27
- <Component className={clsx(headingRecipe({ size: resolvedSize, align, as }), className)}>
27
+ <Component className={clsx(headingRecipe({ size: resolvedSize, as }), className)}>
28
28
  {parse(typeof children === 'string' ? children : '')}
29
29
  </Component>
30
30
  );
@@ -101,18 +101,11 @@ export const headingRecipe = recipe(
101
101
  },
102
102
  },
103
103
  },
104
-
105
- align: {
106
- left: { textAlign: 'left' },
107
- center: { textAlign: 'center' },
108
- right: { textAlign: 'right' },
109
- },
110
104
  },
111
105
 
112
106
  defaultVariants: {
113
107
  as: 'h2',
114
108
  size: 'xl',
115
- align: 'left',
116
109
  },
117
110
  },
118
111
  'heading'
@@ -22,12 +22,7 @@ export const navSocialRecipe = recipe(
22
22
  'nav-social'
23
23
  );
24
24
 
25
- export const navSocialLink = style(
26
- {
27
- padding: 10,
28
- },
29
- 'nav-social-link'
30
- );
25
+ export const navSocialLink = style({}, 'nav-social-link');
31
26
 
32
27
  globalStyle(`${navSocialLink} svg path`, {
33
28
  transition: themeContract.navSocial.transition,