@latte-macchiat-io/latte-vanilla-components 0.0.190 → 0.0.191

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/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # 🥤 Latte Vanilla Components
1
+ # 🥤 Latte Vanilla Components [![npm version](https://img.shields.io/npm/v/@latte-macchiat-io/latte-vanilla-components?style=flat-square)](https://www.npmjs.com/package/@latte-macchiat-io/latte-vanilla-components)
2
2
 
3
- Beautiful, type-safe React components powered by Vanilla Extract CSS. Build modern interfaces with a professional design
4
- system that's both powerful and easy to use.
3
+ Beautiful, type-safe React components powered by Vanilla Extract CSS for amazing projects, with a touch of Vanilla 🥤
4
+
5
+ Intended for internal use by the 👩‍💻🧑‍💻 [latte-macchiat.io](https://latte-macchiat.io) team, we can't offer official support, but feel free to reach out
6
+ with questions, feedback or project ideas!
5
7
 
6
8
  ## ✨ Features
7
9
 
@@ -12,6 +14,14 @@ system that's both powerful and easy to use.
12
14
  - ⚡ **Developer Experience** - Hot reloading, IntelliSense, documentation
13
15
  - 🎯 **Production Ready** - Optimized builds, minimal bundle size
14
16
 
17
+ ## 🤓 Philosophy
18
+
19
+ This library is shipped as raw code (ESM + TypeScript) to be compiled in your project, allowing full
20
+ customization and tree-shaking. It is not a pre-built design system, but rather a set of building blocks
21
+ to create your own unique designs.
22
+
23
+ You will need to set up Vanilla Extract in your build system (Next.js, Vite, etc.) to use this library.
24
+
15
25
  ## 📦 Installation
16
26
 
17
27
  ```bash
@@ -30,7 +40,7 @@ yarn add @latte-macchiat-io/latte-vanilla-components
30
40
 
31
41
  ```typescript
32
42
  // src/styles/theme.css.ts
33
- import {createDarkTheme, createLightTheme} from "@latte-macchiat-io/latte-vanilla-components";
43
+ import { createDarkTheme, createLightTheme } from "@latte-macchiat-io/latte-vanilla-components";
34
44
 
35
45
  // Create and apply the default light theme (minimal setup)
36
46
  createLightTheme();
@@ -221,8 +231,8 @@ All components are mobile-first and responsive:
221
231
 
222
232
  ```typescript
223
233
  // next.config.js
224
- import type {NextConfig} from "next";
225
- import {createVanillaExtractPlugin} from "@vanilla-extract/next-plugin";
234
+ import type { NextConfig } from "next";
235
+ import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
226
236
 
227
237
  const nextConfig: NextConfig = {
228
238
  /* config options here */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.190",
3
+ "version": "0.0.191",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -2,8 +2,8 @@ import { clsx } from 'clsx';
2
2
  import { forwardRef, useEffect, useState } from 'react';
3
3
  import { consentActions, consentContent, type ConsentCookieVariants, consentRecipe } from './ConsentCookie.css';
4
4
  import { sprinkles, type Sprinkles } from '../../styles/sprinkles.css';
5
- import { getCookie, setCookie } from '../../utils/cookie';
6
5
  import { Button } from '../Button/Button';
6
+ import { getCookie, setCookie } from './cookie';
7
7
 
8
8
  // Declare window object including gtag to avoid TypeScript errors
9
9
  declare const window: Window &