@latte-macchiat-io/latte-vanilla-components 0.0.249 → 0.0.250

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.249",
3
+ "version": "0.0.250",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,5 +1,6 @@
1
1
  const themeHeaderBase = {
2
2
  header: {
3
+ isFixed: 'true',
3
4
  fontSize: '1.2em',
4
5
  height: {
5
6
  mobile: '15px',
@@ -8,9 +8,7 @@ export type SectionProps = React.HTMLAttributes<HTMLDivElement> &
8
8
  };
9
9
 
10
10
  export const Section = ({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, className, children, style }: SectionProps) => (
11
- <section
12
- style={style}
13
- className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom, isHeaderFixed: true }), className)}>
11
+ <section style={style} className={clsx(sectionRecipe({ align, isDark, variant, isFullHeight, withPaddingTop, withPaddingBottom }), className)}>
14
12
  <div className={sectionContent}>{children}</div>
15
13
  </section>
16
14
  );
@@ -106,6 +106,7 @@ export const sectionRecipe = recipe(
106
106
  align: 'left',
107
107
  isDark: false,
108
108
  isFullHeight: false,
109
+ isHeaderFixed: themeContract.header.isFixed ? true : false,
109
110
  withPaddingTop: true,
110
111
  withPaddingBottom: true,
111
112
  variant: 'transparent',
@@ -3,6 +3,14 @@ const themeVideoBase = {
3
3
  playButton: {
4
4
  border: 'none',
5
5
  borderRadius: '1000px',
6
+ iconSize: {
7
+ mobile: '50px',
8
+ sm: '50px',
9
+ md: '50px',
10
+ lg: '75px',
11
+ xl: '75px',
12
+ '2xl': '75px',
13
+ },
6
14
  iconColor: '#FF7377',
7
15
  backgroundColor: '#FF7377',
8
16
  width: {
@@ -25,6 +33,14 @@ const themeVideoBase = {
25
33
  pauseButton: {
26
34
  border: 'none',
27
35
  borderRadius: '1000px',
36
+ iconSize: {
37
+ mobile: '50px',
38
+ sm: '50px',
39
+ md: '50px',
40
+ lg: '75px',
41
+ xl: '75px',
42
+ '2xl': '75px',
43
+ },
28
44
  iconColor: '#FF7377',
29
45
  backgroundColor: '#FF7377',
30
46
  width: {
@@ -47,6 +63,14 @@ const themeVideoBase = {
47
63
  soundButton: {
48
64
  border: 'none',
49
65
  borderRadius: '1000px',
66
+ iconSize: {
67
+ mobile: '50px',
68
+ sm: '50px',
69
+ md: '50px',
70
+ lg: '75px',
71
+ xl: '75px',
72
+ '2xl': '75px',
73
+ },
50
74
  iconColor: '#FF7377',
51
75
  backgroundColor: '#FF7377',
52
76
  width: {
@@ -69,6 +93,14 @@ const themeVideoBase = {
69
93
  closeButton: {
70
94
  border: 'none',
71
95
  borderRadius: '1000px',
96
+ iconSize: {
97
+ mobile: '50px',
98
+ sm: '50px',
99
+ md: '50px',
100
+ lg: '75px',
101
+ xl: '75px',
102
+ '2xl': '75px',
103
+ },
72
104
  iconColor: '#FF7377',
73
105
  backgroundColor: '#FF7377',
74
106
  width: {
@@ -149,6 +149,7 @@ export const themeContract = createGlobalThemeContract({
149
149
  },
150
150
  },
151
151
  header: {
152
+ isFixed: 'latte-header-isFixed',
152
153
  fontSize: 'latte-header-fontSize',
153
154
  backgroundColor: 'latte-header-backgroundColor',
154
155
  height: {