@latte-macchiat-io/latte-vanilla-components 0.0.175 → 0.0.177

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.
Files changed (155) hide show
  1. package/package.json +12 -23
  2. package/src/assets/styles/default-theme.ts +312 -0
  3. package/src/components/Button/stories.ts +127 -0
  4. package/src/components/Columns/stories.ts +35 -0
  5. package/src/components/Icon/path.ts +36 -0
  6. package/src/components/Icon/stories.ts +29 -0
  7. package/src/components/Main/stories.ts +33 -0
  8. package/src/components/Section/stories.ts +64 -0
  9. package/{dist/types/index.d.ts → src/index.ts} +38 -0
  10. package/src/styles/mediaqueries.ts +17 -0
  11. package/src/theme/baseThemeValues.ts +160 -0
  12. package/src/theme/index.ts +6 -0
  13. package/src/theme/utils.ts +76 -0
  14. package/src/types/theme.ts +295 -0
  15. package/src/types/withClassName.ts +3 -0
  16. package/src/utils/cookie.ts +24 -0
  17. package/src/utils/deep-merge-objects.ts +15 -0
  18. package/src/utils/use-breakpoint-key.ts +30 -0
  19. package/src/utils/use-window-size.ts +37 -0
  20. package/dist/components/Actions/Actions.css.ts +0 -113
  21. package/dist/components/Button/Button.css.ts +0 -119
  22. package/dist/components/Carousel/Carousel.css.ts +0 -179
  23. package/dist/components/Columns/Columns.css.ts +0 -185
  24. package/dist/components/ConsentCookie/ConsentCookie.css.ts +0 -167
  25. package/dist/components/Footer/Footer.css.ts +0 -108
  26. package/dist/components/Form/Form.css.ts +0 -64
  27. package/dist/components/Form/Row/Row.css.ts +0 -70
  28. package/dist/components/Form/TextField/Input/Input.css.ts +0 -106
  29. package/dist/components/Form/TextField/Label/Label.css.ts +0 -58
  30. package/dist/components/Form/TextField/TextField.css.ts +0 -139
  31. package/dist/components/Form/TextField/Textarea/Textarea.css.ts +0 -121
  32. package/dist/components/Header/Header.css.ts +0 -111
  33. package/dist/components/Header/HeaderOverlay/styles.css.ts +0 -33
  34. package/dist/components/Header/ToggleNav/styles.css.ts +0 -40
  35. package/dist/components/Icon/Icon.css.ts +0 -102
  36. package/dist/components/KeyNumber/KeyNumber.css.ts +0 -158
  37. package/dist/components/LanguageSwitcher/LanguageSwitcher.css.ts +0 -120
  38. package/dist/components/Logo/Logo.css.ts +0 -98
  39. package/dist/components/Main/Main.css.ts +0 -62
  40. package/dist/components/Modal/Modal.css.ts +0 -203
  41. package/dist/components/Nav/Nav.css.ts +0 -123
  42. package/dist/components/NavLegal/NavLegal.css.ts +0 -121
  43. package/dist/components/NavSocial/NavSocial.css.ts +0 -121
  44. package/dist/components/Section/Section.css.ts +0 -101
  45. package/dist/components/Video/Video.css.ts +0 -210
  46. package/dist/components/VideoFullWidth/VideoFullWidth.css.ts +0 -50
  47. package/dist/index.cjs.js +0 -2
  48. package/dist/index.es.js +0 -6813
  49. package/dist/styles/sprinkles.css.ts +0 -84
  50. package/dist/theme/contract.css.ts +0 -83
  51. package/dist/types/components/Actions/Actions.css.d.ts +0 -74
  52. package/dist/types/components/Actions/Actions.d.ts +0 -7
  53. package/dist/types/components/Actions/export.d.ts +0 -0
  54. package/dist/types/components/Actions/stories.d.ts +0 -0
  55. package/dist/types/components/Button/Button.css.d.ts +0 -65
  56. package/dist/types/components/Button/Button.d.ts +0 -8
  57. package/dist/types/components/Button/export.d.ts +0 -0
  58. package/dist/types/components/Button/stories.d.ts +0 -0
  59. package/dist/types/components/Carousel/Carousel.css.d.ts +0 -33
  60. package/dist/types/components/Carousel/Carousel.d.ts +0 -15
  61. package/dist/types/components/Carousel/export.d.ts +0 -0
  62. package/dist/types/components/Columns/Columns.css.d.ts +0 -104
  63. package/dist/types/components/Columns/Columns.d.ts +0 -8
  64. package/dist/types/components/Columns/export.d.ts +0 -0
  65. package/dist/types/components/Columns/stories.d.ts +0 -0
  66. package/dist/types/components/ConsentCookie/ConsentCookie.css.d.ts +0 -15
  67. package/dist/types/components/ConsentCookie/ConsentCookie.d.ts +0 -17
  68. package/dist/types/components/ConsentCookie/export.d.ts +0 -0
  69. package/dist/types/components/ConsentCookie/stories.d.ts +0 -0
  70. package/dist/types/components/Footer/Footer.css.d.ts +0 -50
  71. package/dist/types/components/Footer/Footer.d.ts +0 -7
  72. package/dist/types/components/Footer/export.d.ts +0 -0
  73. package/dist/types/components/Footer/stories.d.ts +0 -6
  74. package/dist/types/components/Form/Form.css.d.ts +0 -46
  75. package/dist/types/components/Form/Form.d.ts +0 -7
  76. package/dist/types/components/Form/Row/Row.css.d.ts +0 -51
  77. package/dist/types/components/Form/Row/Row.d.ts +0 -9
  78. package/dist/types/components/Form/Row/index.d.ts +0 -0
  79. package/dist/types/components/Form/Row/stories.d.ts +0 -0
  80. package/dist/types/components/Form/TextField/Input/Input.css.d.ts +0 -32
  81. package/dist/types/components/Form/TextField/Input/Input.d.ts +0 -10
  82. package/dist/types/components/Form/TextField/Input/export.d.ts +0 -0
  83. package/dist/types/components/Form/TextField/Label/Label.css.d.ts +0 -23
  84. package/dist/types/components/Form/TextField/Label/Label.d.ts +0 -9
  85. package/dist/types/components/Form/TextField/Label/export.d.ts +0 -0
  86. package/dist/types/components/Form/TextField/TextField.css.d.ts +0 -19
  87. package/dist/types/components/Form/TextField/TextField.d.ts +0 -21
  88. package/dist/types/components/Form/TextField/Textarea/Textarea.css.d.ts +0 -56
  89. package/dist/types/components/Form/TextField/Textarea/Textarea.d.ts +0 -8
  90. package/dist/types/components/Form/TextField/Textarea/export.d.ts +0 -0
  91. package/dist/types/components/Form/TextField/Textarea/stories.d.ts +0 -0
  92. package/dist/types/components/Form/TextField/export.d.ts +0 -0
  93. package/dist/types/components/Form/export.d.ts +0 -0
  94. package/dist/types/components/Header/Header.css.d.ts +0 -36
  95. package/dist/types/components/Header/Header.d.ts +0 -11
  96. package/dist/types/components/Header/HeaderOverlay/index.d.ts +0 -7
  97. package/dist/types/components/Header/HeaderOverlay/styles.css.d.ts +0 -5
  98. package/dist/types/components/Header/ToggleNav/index.d.ts +0 -9
  99. package/dist/types/components/Header/ToggleNav/styles.css.d.ts +0 -5
  100. package/dist/types/components/Header/export.d.ts +0 -0
  101. package/dist/types/components/Header/stories.d.ts +0 -6
  102. package/dist/types/components/Icon/Icon.css.d.ts +0 -45
  103. package/dist/types/components/Icon/Icon.d.ts +0 -12
  104. package/dist/types/components/Icon/export.d.ts +0 -0
  105. package/dist/types/components/Icon/path.d.ts +0 -19
  106. package/dist/types/components/Icon/stories.d.ts +0 -0
  107. package/dist/types/components/KeyNumber/KeyNumber.css.d.ts +0 -40
  108. package/dist/types/components/KeyNumber/KeyNumber.d.ts +0 -15
  109. package/dist/types/components/KeyNumber/export.d.ts +0 -0
  110. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.css.d.ts +0 -18
  111. package/dist/types/components/LanguageSwitcher/LanguageSwitcher.d.ts +0 -16
  112. package/dist/types/components/LanguageSwitcher/export.d.ts +0 -0
  113. package/dist/types/components/Logo/Logo.css.d.ts +0 -54
  114. package/dist/types/components/Logo/Logo.d.ts +0 -8
  115. package/dist/types/components/Logo/export.d.ts +0 -0
  116. package/dist/types/components/Logo/stories.d.ts +0 -6
  117. package/dist/types/components/Main/Main.css.d.ts +0 -32
  118. package/dist/types/components/Main/Main.d.ts +0 -7
  119. package/dist/types/components/Main/export.d.ts +0 -0
  120. package/dist/types/components/Main/stories.d.ts +0 -0
  121. package/dist/types/components/Modal/Modal.css.d.ts +0 -82
  122. package/dist/types/components/Modal/Modal.d.ts +0 -15
  123. package/dist/types/components/Modal/export.d.ts +0 -0
  124. package/dist/types/components/Modal/types.d.ts +0 -5
  125. package/dist/types/components/Nav/Nav.css.d.ts +0 -52
  126. package/dist/types/components/Nav/Nav.d.ts +0 -7
  127. package/dist/types/components/Nav/export.d.ts +0 -0
  128. package/dist/types/components/Nav/stories.d.ts +0 -6
  129. package/dist/types/components/NavLegal/NavLegal.css.d.ts +0 -57
  130. package/dist/types/components/NavLegal/NavLegal.d.ts +0 -7
  131. package/dist/types/components/NavLegal/export.d.ts +0 -0
  132. package/dist/types/components/NavLegal/stories.d.ts +0 -6
  133. package/dist/types/components/NavLegal/types.d.ts +0 -1
  134. package/dist/types/components/NavSocial/NavSocial.css.d.ts +0 -30
  135. package/dist/types/components/NavSocial/NavSocial.d.ts +0 -15
  136. package/dist/types/components/NavSocial/export.d.ts +0 -0
  137. package/dist/types/components/NavSocial/stories.d.ts +0 -0
  138. package/dist/types/components/NavSocial/types.d.ts +0 -1
  139. package/dist/types/components/Section/Section.css.d.ts +0 -60
  140. package/dist/types/components/Section/Section.d.ts +0 -7
  141. package/dist/types/components/Section/export.d.ts +0 -0
  142. package/dist/types/components/Section/stories.d.ts +0 -0
  143. package/dist/types/components/ToRemove/ToRemove.d.ts +0 -1
  144. package/dist/types/components/Video/Video.css.d.ts +0 -43
  145. package/dist/types/components/Video/Video.d.ts +0 -17
  146. package/dist/types/components/Video/export.d.ts +0 -0
  147. package/dist/types/components/VideoFullWidth/VideoFullWidth.css.d.ts +0 -18
  148. package/dist/types/components/VideoFullWidth/VideoFullWidth.d.ts +0 -14
  149. package/dist/types/components/VideoFullWidth/export.d.ts +0 -0
  150. package/dist/types/utils/cookie.d.ts +0 -2
  151. package/dist/types/utils/deep-merge-objects.d.ts +0 -2
  152. package/dist/types/utils/theme.css.d.ts +0 -173
  153. package/dist/types/utils/use-breakpoint-key.d.ts +0 -1
  154. package/dist/types/utils/use-window-size.d.ts +0 -5
  155. package/dist/utils/theme.css.ts +0 -129
package/package.json CHANGED
@@ -1,29 +1,21 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.175",
3
+ "version": "0.0.177",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
6
+ "main": "./src/index.ts",
7
+ "types": "./src/index.ts",
8
8
  "sideEffects": false,
9
9
  "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js"
13
- },
14
- "./css": {
15
- "types": "./dist/css/index.d.ts",
16
- "import": "./dist/css/index.js"
17
- },
18
- "./themes/*": {
19
- "types": "./dist/themes/*.d.ts",
20
- "import": "./dist/themes/*.js"
21
- },
22
- "./*.css.ts": "./src/*.css.ts"
10
+ ".": "./src/index.ts",
11
+ "./*.css.ts": "./src/*.css.ts",
12
+ "./src/*": "./src/*"
23
13
  },
24
14
  "files": [
25
- "dist",
26
- "src/**/*.css.ts"
15
+ "src/**/*.css.ts",
16
+ "src/**/*.ts",
17
+ "!src/**/*.stories.ts",
18
+ "!src/**/*.test.ts"
27
19
  ],
28
20
  "peerDependencies": {
29
21
  "@vanilla-extract/css": "^1.17.4",
@@ -53,7 +45,6 @@
53
45
  "@vanilla-extract/dynamic": "^2.1.5",
54
46
  "@vanilla-extract/recipes": "^0.5.7",
55
47
  "@vanilla-extract/sprinkles": "^1.6.5",
56
- "@vitejs/plugin-react": "^5.0.2",
57
48
  "clsx": "^2.1.1",
58
49
  "eslint": "^9.15.0",
59
50
  "eslint-config-prettier": "^10.0.1",
@@ -63,9 +54,7 @@
63
54
  "prettier": "^3.4.2",
64
55
  "storybook": "^8.5.2",
65
56
  "typescript": "5.6.3",
66
- "typescript-eslint": "^8.21.0",
67
- "vite": "^7.1.4",
68
- "vite-plugin-dts": "^4.5.4"
57
+ "typescript-eslint": "^8.21.0"
69
58
  },
70
59
  "engines": {
71
60
  "node": ">=20.9.0",
@@ -77,7 +66,7 @@
77
66
  ]
78
67
  },
79
68
  "scripts": {
80
- "build": "vite build",
69
+ "build": "echo \"Source-only distribution - no build needed\"",
81
70
  "test": "echo \"Error: no test specified\" && exit 1",
82
71
  "storybook": "storybook dev -p 6006",
83
72
  "build-storybook": "storybook build",
@@ -0,0 +1,312 @@
1
+ import { Theme } from '@/types/theme';
2
+
3
+ const brandFont = '"Goudy Bookletter 1911", sans-serif';
4
+ const defaultFont = '"Gill Sans", sans-serif';
5
+
6
+ const brandColorTerracotta = '#FF7377';
7
+
8
+ const brandColorBeigeDark = '#C8AE96';
9
+ const brandColorBeigeLight = '#FCEFE6';
10
+
11
+ const brandColorGrey = '#2E2E2E';
12
+ const brandColorGreyLight = '#CCCCCC';
13
+ const brandColorGreyMedium = ' #888888';
14
+ const brandColorBlack = '#000000';
15
+
16
+ const brandColor = brandColorTerracotta;
17
+
18
+ export const defaultTheme: Theme = {
19
+ global: {
20
+ maxWidth: 1200,
21
+ paddingLeft: [15, 15, 30, 30],
22
+ paddingRight: [15, 15, 30, 30],
23
+
24
+ brandFont: brandFont,
25
+ defaultFont: defaultFont,
26
+ },
27
+
28
+ colors: {
29
+ defaultText: brandColorBlack,
30
+ defaultLightText: brandColorBeigeLight,
31
+ defaultTitle: '',
32
+ defaultLink: brandColorBlack,
33
+ defaultIcon: brandColorBlack,
34
+ },
35
+
36
+ backgroundColors: {
37
+ modal: brandColorBeigeLight,
38
+ modalOverlay: 'rgba(0, 0, 0, 0.6)',
39
+ cookieConsent: brandColorBeigeLight,
40
+ },
41
+
42
+ borders: {
43
+ hr: `1px solid ${brandColorBeigeDark}`,
44
+ cookieConsent: `2px solid ${brandColorBlack}`,
45
+ },
46
+
47
+ borderRadius: {
48
+ modal: 30,
49
+ input: 30,
50
+ cookieConsent: 30,
51
+ },
52
+
53
+ widthSizes: {
54
+ modal: 600,
55
+ cookieConsent: 500,
56
+ },
57
+
58
+ transitions: {
59
+ global: 'all 0.3s ease-in-out',
60
+ },
61
+
62
+ actions: {
63
+ gap: [15, 15, 30, 30],
64
+ paddingTop: [15, 15, 30, 30],
65
+ paddingBottom: [15, 15, 30, 30],
66
+ },
67
+
68
+ button: {
69
+ minWidth: 80,
70
+ fontWeight: 400,
71
+ letterSpacing: 0.1,
72
+ color: {
73
+ primary: brandColorBeigeLight,
74
+ secondary: brandColorGrey,
75
+ disabled: brandColorGreyMedium,
76
+ },
77
+ backgroundColor: {
78
+ primary: brandColor,
79
+ secondary: brandColorBeigeDark,
80
+ disabled: brandColorGreyLight,
81
+ },
82
+ border: {
83
+ width: 2,
84
+ style: 'solid',
85
+ color: {
86
+ primary: brandColor,
87
+ secondary: brandColorBeigeDark,
88
+ disabled: brandColorGreyLight,
89
+ },
90
+ },
91
+ borderRadius: 50,
92
+ paddingTop: {
93
+ small: [5, 5, 10, 10, 15, 15],
94
+ medium: [10, 10, 15, 15, 20, 20],
95
+ large: [15, 15, 20, 20, 25, 25],
96
+ },
97
+ paddingBottom: {
98
+ small: [5, 5, 10, 10, 15, 15],
99
+ medium: [10, 10, 15, 15, 20, 20],
100
+ large: [15, 15, 20, 20, 25, 25],
101
+ },
102
+ paddingLeft: {
103
+ small: [5, 5, 10, 10, 15, 15],
104
+ medium: [10, 10, 15, 15, 20, 20],
105
+ large: [15, 15, 20, 20, 25, 25],
106
+ },
107
+ paddingRight: {
108
+ small: [5, 5, 10, 10, 15, 15],
109
+ medium: [10, 10, 15, 15, 20, 20],
110
+ large: [15, 15, 20, 20, 25, 25],
111
+ },
112
+ transition: 'all 0.3s ease-in-out',
113
+ },
114
+
115
+ columns: {
116
+ gap: 30,
117
+ },
118
+
119
+ keyNumber: {
120
+ paddingBottom: [5, 5, 10, 10, 15, 15],
121
+ },
122
+
123
+ form: {
124
+ width: 800,
125
+ padding: ['15px', '30px'],
126
+ backgroundColor: '',
127
+
128
+ row: {
129
+ gap: [30, 60],
130
+ padding: ['15px', '30px'],
131
+ },
132
+
133
+ label: {
134
+ font: brandFont,
135
+ fontWeight: 500,
136
+ color: brandColor,
137
+ paddingBottom: 5,
138
+ },
139
+
140
+ input: {
141
+ color: '',
142
+ borderRadius: 0,
143
+ padding: [5, 10],
144
+ font: defaultFont,
145
+ backgroundColor: '',
146
+ placeholder: {
147
+ color: '',
148
+ opacity: 1,
149
+ },
150
+ border: `2px solid ${brandColorBlack}`,
151
+ },
152
+
153
+ textarea: {
154
+ color: '',
155
+ borderRadius: 0,
156
+ padding: [5, 10],
157
+ font: defaultFont,
158
+ backgroundColor: '',
159
+ placeholder: {
160
+ color: '',
161
+ opacity: 1,
162
+ },
163
+ border: `2px solid ${brandColorBlack}`,
164
+ },
165
+
166
+ error: {
167
+ color: brandColorTerracotta,
168
+ },
169
+ },
170
+
171
+ header: {
172
+ gap: [15, 15, 15, 15],
173
+ height: [60, 60, 120, 120],
174
+ backgroundColor: brandColorBeigeLight,
175
+
176
+ paddingTop: [15, 30, 50, 100],
177
+ paddingLeft: [15, 30, 50, 100],
178
+ paddingRight: [15, 30, 50, 100],
179
+ paddingBottom: [15, 30, 50, 100],
180
+
181
+ overlayGap: [15, 15, 15, 15],
182
+ overlayBackgroundColor: brandColorBeigeLight,
183
+
184
+ toggleNavColor: brandColorBlack,
185
+ toggleNavOpenColor: brandColorBlack,
186
+ toggleNavBorderRadius: 5,
187
+ },
188
+
189
+ main: {
190
+ minHeight: '45vh',
191
+ backgroundColor: brandColorBeigeLight,
192
+ },
193
+
194
+ section: {
195
+ paddingTop: [15, 30, 50, 100],
196
+ paddingBottom: [15, 30, 50, 100],
197
+ },
198
+
199
+ footer: {
200
+ gap: [15, 15, 15, 15],
201
+ height: [60, 60, 120, 120],
202
+ backgroundColor: brandColorBeigeLight,
203
+
204
+ paddingTop: [15, 30, 50, 100],
205
+ paddingBottom: [15, 30, 50, 100],
206
+ },
207
+
208
+ modal: {
209
+ border: '',
210
+ borderRadius: 0,
211
+ width: [50, 50, 75, 75],
212
+ backgroundColor: brandColorBeigeLight,
213
+
214
+ overlayBlur: 0,
215
+ overlayOpacity: 0.5,
216
+ overlayBackgroundColor: brandColorBlack,
217
+
218
+ paddingTop: [15, 30, 50, 100],
219
+ paddingLeft: [15, 30, 50, 100],
220
+ paddingRight: [15, 30, 50, 100],
221
+ paddingBottom: [15, 30, 50, 100],
222
+ },
223
+
224
+ languageSwitcher: {
225
+ border: '',
226
+ borderRadius: 0,
227
+ color: brandColorBlack,
228
+ width: [150, 150, 200, 200],
229
+ backgroundColor: brandColorBeigeLight,
230
+
231
+ paddingTop: [15, 30, 50, 100],
232
+ paddingLeft: [15, 30, 50, 100],
233
+ paddingRight: [15, 30, 50, 100],
234
+ paddingBottom: [15, 30, 50, 100],
235
+ },
236
+
237
+ carousel: {
238
+ gap: [0, 0, 30, 60],
239
+ bullet: {
240
+ borderRadius: 0,
241
+ width: [12, 12, 12, 12],
242
+ height: [12, 12, 12, 12],
243
+ backgroundColor: brandColorBeigeLight,
244
+ },
245
+ },
246
+
247
+ video: {
248
+ playButton: {
249
+ border: '',
250
+ borderRadius: 0,
251
+ width: [50, 50, 75, 75],
252
+ height: [50, 50, 75, 75],
253
+ color: brandColorBlack,
254
+ backgroundColor: brandColorBeigeLight,
255
+ },
256
+ pauseButton: {
257
+ border: '',
258
+ borderRadius: 0,
259
+ width: [40, 40, 50, 50],
260
+ height: [40, 40, 50, 50],
261
+ color: brandColorBlack,
262
+ backgroundColor: brandColorBeigeLight,
263
+ },
264
+ soundButton: {
265
+ border: '',
266
+ borderRadius: 0,
267
+ width: [40, 40, 50, 50],
268
+ height: [40, 40, 50, 50],
269
+ color: brandColorBlack,
270
+ backgroundColor: brandColorBeigeLight,
271
+ },
272
+ closeButton: {
273
+ border: '',
274
+ borderRadius: 0,
275
+ width: [40, 40, 50, 50],
276
+ height: [40, 40, 50, 50],
277
+ color: brandColorBlack,
278
+ backgroundColor: brandColorBeigeLight,
279
+ },
280
+ },
281
+
282
+ consentCookie: {
283
+ borders: 0,
284
+ borderRadius: 0,
285
+ width: [50, 50, 75, 75],
286
+ backgroundColor: brandColorBeigeLight,
287
+
288
+ overlayBlur: 0,
289
+ overlayOpacity: 0.5,
290
+ overlayBackgroundColor: brandColorBlack,
291
+
292
+ paddingTop: [15, 30, 50, 100],
293
+ paddingLeft: [15, 30, 50, 100],
294
+ paddingRight: [15, 30, 50, 100],
295
+ paddingBottom: [15, 30, 50, 100],
296
+
297
+ actionsGap: 30,
298
+ actionsPaddingTop: [15, 100, 100, 100],
299
+ },
300
+
301
+ nav: {
302
+ gap: [15, 15, 15, 15],
303
+ },
304
+
305
+ navSocial: {
306
+ gap: [15, 15, 15, 15],
307
+ },
308
+
309
+ navLegal: {
310
+ gap: [15, 15, 15, 15],
311
+ },
312
+ };
@@ -0,0 +1,127 @@
1
+ // import type { Meta, StoryObj } from '@storybook/react';
2
+ // import { fn } from '@storybook/test';
3
+
4
+ // import { Button } from './export';
5
+ // import { Size, Style, Variant } from './types';
6
+ // import { buttonStyle } from './styles.css';
7
+ // import { defaultTheme } from '../../assets/styles/default-theme';
8
+
9
+ // // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
10
+ // const meta = {
11
+ // title: 'Latte Components / 3. Buttons / Button',
12
+ // component: Button,
13
+ // parameters: {
14
+ // // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
15
+ // layout: 'centered',
16
+ // },
17
+ // // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
18
+ // tags: ['autodocs'],
19
+ // // More on argTypes: https://storybook.js.org/docs/api/argtypes
20
+ // argTypes: {},
21
+ // // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
22
+ // args: { onClick: fn() },
23
+ // } satisfies Meta<typeof Button>;
24
+
25
+ // export default meta;
26
+ // type Story = StoryObj<typeof meta>;
27
+
28
+ // // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
29
+ // export const Default: Story = {
30
+ // args: {
31
+ // children: 'Button',
32
+ // theme: defaultTheme,
33
+ // className: buttonStyle,
34
+ // },
35
+ // };
36
+
37
+ // export const Primary: Story = {
38
+ // args: {
39
+ // children: 'Button',
40
+ // theme: defaultTheme,
41
+ // className: buttonStyle,
42
+ // variant: Variant.Primary,
43
+ // },
44
+ // };
45
+
46
+ // export const StyleOutline: Story = {
47
+ // args: {
48
+ // children: 'Button',
49
+ // theme: defaultTheme,
50
+ // style: Style.Outline,
51
+ // className: buttonStyle,
52
+ // },
53
+ // };
54
+
55
+ // export const Secondary: Story = {
56
+ // args: {
57
+ // children: 'Button',
58
+ // theme: defaultTheme,
59
+ // className: buttonStyle,
60
+ // variant: Variant.Secondary,
61
+ // },
62
+ // };
63
+
64
+ // export const SecondaryOutline: Story = {
65
+ // args: {
66
+ // children: 'Button',
67
+ // theme: defaultTheme,
68
+ // style: Style.Outline,
69
+ // className: buttonStyle,
70
+ // variant: Variant.Secondary,
71
+ // },
72
+ // };
73
+
74
+ // export const StaticColor: Story = {
75
+ // args: {
76
+ // children: 'Button',
77
+ // theme: defaultTheme,
78
+ // className: buttonStyle,
79
+ // staticColor: '#76D1F5',
80
+ // },
81
+ // };
82
+
83
+ // export const StaticColorOutline: Story = {
84
+ // args: {
85
+ // children: 'Button',
86
+ // theme: defaultTheme,
87
+ // style: Style.Outline,
88
+ // className: buttonStyle,
89
+ // staticColor: '#76D1F5',
90
+ // },
91
+ // };
92
+
93
+ // export const Disabled: Story = {
94
+ // args: {
95
+ // isDisabled: true,
96
+ // children: 'Button',
97
+ // theme: defaultTheme,
98
+ // className: buttonStyle,
99
+ // },
100
+ // };
101
+
102
+ // export const Pending: Story = {
103
+ // args: {
104
+ // isPending: true,
105
+ // theme: defaultTheme,
106
+ // children: 'Pending...',
107
+ // className: buttonStyle,
108
+ // },
109
+ // };
110
+
111
+ // export const SizeSmall: Story = {
112
+ // args: {
113
+ // size: Size.Small,
114
+ // children: 'Button',
115
+ // theme: defaultTheme,
116
+ // className: buttonStyle,
117
+ // },
118
+ // };
119
+
120
+ // export const SizeLarge: Story = {
121
+ // args: {
122
+ // size: Size.Large,
123
+ // children: 'Button',
124
+ // theme: defaultTheme,
125
+ // className: buttonStyle,
126
+ // },
127
+ // };
@@ -0,0 +1,35 @@
1
+ // import type { Meta, StoryObj } from '@storybook/react';
2
+ // import { Columns } from '.';
3
+ //
4
+ // // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
5
+ // const meta = {
6
+ // title: 'Latte Components / Layout / Columns',
7
+ // component: Columns,
8
+ // parameters: {
9
+ // // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
10
+ // layout: 'centered',
11
+ // },
12
+ // // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
13
+ // tags: ['autodocs'],
14
+ // // More on argTypes: https://storybook.js.org/docs/api/argtypes
15
+ // argTypes: {},
16
+ // // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
17
+ // } satisfies Meta<typeof Columns>;
18
+ //
19
+ // export default meta;
20
+ // type Story = StoryObj<typeof meta>;
21
+ //
22
+ // // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
23
+ // export const Default: Story = {
24
+ // args: {
25
+ // columns: [6, 6],
26
+ // children: '<div>Column 1</div> <div>Column 2</div>',
27
+ // },
28
+ // };
29
+ //
30
+ // export const Default3Col: Story = {
31
+ // args: {
32
+ // columns: [4, 4, 4],
33
+ // children: '<div>Column 1</div> <div>Column 2</div> <div>Column 3</div>',
34
+ // },
35
+ // };
@@ -0,0 +1,36 @@
1
+ const icons = {
2
+ caret:
3
+ 'M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0',
4
+ close:
5
+ 'M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4',
6
+ arrowBack:
7
+ 'M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1',
8
+ arrowForward:
9
+ 'M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1',
10
+
11
+ //video
12
+ play: 'M8 5v14l11-7z',
13
+ pause: 'M6 19h4V5H6zm8-14v14h4V5z',
14
+ volumeMute: 'M7 9v6h4l5 5V4l-5 5z',
15
+ volumeUp:
16
+ 'M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77',
17
+
18
+ // Social
19
+ socialFacebook:
20
+ 'M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z',
21
+ socialInstagram:
22
+ 'M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z',
23
+ socialPinterest:
24
+ 'M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z',
25
+ socialLinkedIn:
26
+ 'M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z',
27
+ socialSpotify: '',
28
+ socialTiktok:
29
+ 'M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z',
30
+ socialX:
31
+ 'M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z',
32
+ socialYoutube:
33
+ 'M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z',
34
+ };
35
+
36
+ export default icons;
@@ -0,0 +1,29 @@
1
+ // import type { Meta, StoryObj } from '@storybook/react';
2
+ // import { defaultTheme } from '../../assets/styles/default-theme';
3
+ // import { Icon } from '../../index';
4
+ //
5
+ // // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
+ // const meta = {
7
+ // title: 'Latte Components / 1. Global / Icon',
8
+ // component: Icon,
9
+ // parameters: {
10
+ // // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
11
+ // layout: 'centered',
12
+ // },
13
+ // // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
14
+ // tags: ['autodocs'],
15
+ // // More on argTypes: https://storybook.js.org/docs/api/argtypes
16
+ // argTypes: {},
17
+ // // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
18
+ // } satisfies Meta<typeof Icon>;
19
+ //
20
+ // export default meta;
21
+ // type Story = StoryObj<typeof meta>;
22
+ //
23
+ // // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
24
+ // export const Default: Story = {
25
+ // args: {
26
+ // icon: 'close',
27
+ // theme: defaultTheme,
28
+ // },
29
+ // };
@@ -0,0 +1,33 @@
1
+ // import type { Meta, StoryObj } from '@storybook/react';
2
+ //
3
+ // import { defaultTheme } from '../../assets/styles/default-theme';
4
+ // import { Main } from '.';
5
+ // import { mainStyle } from './styles.css';
6
+ //
7
+ // // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
8
+ // const meta = {
9
+ // title: 'Latte Components / Layout / Main',
10
+ // component: Main,
11
+ // parameters: {
12
+ // // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
13
+ // layout: 'centered',
14
+ // },
15
+ // // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
16
+ // tags: ['autodocs'],
17
+ // // More on argTypes: https://storybook.js.org/docs/api/argtypes
18
+ // argTypes: {},
19
+ // // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
20
+ // } satisfies Meta<typeof Main>;
21
+ //
22
+ // export default meta;
23
+ // type Story = StoryObj<typeof meta>;
24
+ //
25
+ // // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
26
+ // export const Default: Story = {
27
+ // args: {
28
+ // className: mainStyle,
29
+ // theme: defaultTheme,
30
+ // children:
31
+ // 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
32
+ // },
33
+ // };