@smitch/breeze 2.2.2 → 2.2.4

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 (2) hide show
  1. package/README.md +49 -137
  2. package/package.json +10 -7
package/README.md CHANGED
@@ -3,23 +3,19 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@smitch/breeze?color=cb0000&logo=npm)](https://www.npmjs.com/package/@smitch/breeze)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@smitch/breeze?color=success)](https://www.npmjs.com/package/@smitch/breeze)
5
5
 
6
- A Next.js/React UI component library.
6
+ A Next.js/React UI component library built with React 19, Next.js 15, and Tailwind CSS 3.
7
7
 
8
- Live demo: https://breezeui.site
8
+ Live demo: [https://breezeui.site](https://breezeui.site)
9
9
 
10
10
  - [Breeze UI](#breeze-ui)
11
11
  - [Overview](#overview)
12
12
  - [Features](#features)
13
13
  - [Getting Started](#getting-started)
14
- - [1. Install Next.js and React](#1-install-nextjs-and-react)
14
+ - [1. Installation](#1-installation)
15
15
  - [2. Configure Tailwind 3](#2-configure-tailwind-3)
16
- - [2. Configure `tailwind.config.js`](#2-configure-tailwindconfigjs)
17
- - [Installation](#installation)
18
- - [Compatibility](#compatibility)
19
- - [Supported stacks \& compatibility matrix](#supported-stacks--compatibility-matrix)
20
- - [Node / environment](#node--environment)
21
- - [Troubleshooting](#troubleshooting)
22
- - [Peer dependencies](#peer-dependencies)
16
+ - [1. Generate Tailwind Config Files](#1-generate-tailwind-config-files)
17
+ - [2. Configure `tailwind.config.js`](#2-configure-tailwindconfigjs)
18
+ - [3. Add Tailwind Directives to CSS](#3-add-tailwind-directives-to-css)
23
19
  - [Basic Usage](#basic-usage)
24
20
  - [Charts Usage](#charts-usage)
25
21
  - [Chart Usage Example](#chart-usage-example)
@@ -36,7 +32,7 @@ Live demo: https://breezeui.site
36
32
  - [Media](#media)
37
33
  - [Typography](#typography)
38
34
  - [Data Visualization](#data-visualization)
39
- - [Time](#time)
35
+ - [DateTime](#datetime)
40
36
  - [Maps](#maps)
41
37
  - [Social Media](#social-media)
42
38
  - [Author](#author)
@@ -49,55 +45,49 @@ library is designed to streamline the development process and ensure consistency
49
45
  ## Features
50
46
 
51
47
  - Reusable UI components
52
- - Charts
53
- - Maps
54
- - Built with React 19, Next.js 15 and TailwindCSS 3
48
+ - Charts (Bar, Line, Pie, etc.)
49
+ - Maps (Markers, Polygons, etc.)
50
+ - Built with React 19, Next.js 15, and Tailwind CSS 3
51
+ - Dark mode support via Tailwind's `selector` strategy
55
52
 
56
53
  ## Getting Started
57
54
 
58
- To use Breeze UI in your Next.js/React project, follow these steps:
55
+ To use Breeze UI in your Next.js/React project, follow these steps. Note: Tailwind CSS 3 is a peer
56
+ dependency—install it if not already present (`npm install -D tailwindcss postcss autoprefixer`).
59
57
 
60
- ### 1. Install Next.js and React
61
-
62
- If you haven't set up your Next.js project yet, start by initializing it:
58
+ ### 1. Installation
63
59
 
64
60
  ```bash
65
- npx create-next-app@latest
61
+ npm install @smitch/breeze
66
62
  ```
67
63
 
68
- When prompted:
69
-
70
- - **Use TypeScript?**: Select **Yes** to enable TypeScript in your project.
71
- - **Use TailwindCSS?**: Select **Yes** to install and configure TailwindCSS automatically.
64
+ ### 2. Configure Tailwind 3
72
65
 
73
- Next.js will then generate the necessary configuration for both **TypeScript** and **TailwindCSS**,
74
- including `tsconfig.json`, `tailwind.config.js`, and PostCSS setup.
66
+ To ensure Breeze UI works correctly, configure Tailwind CSS v3. All releases use v3.x.
75
67
 
76
- ### 2. Configure Tailwind 3
68
+ ### 1. Generate Tailwind Config Files
77
69
 
78
- To ensure that **Breeze UI** works correctly, you need to configure **TailwindCSS**. Follow the
79
- steps below:
70
+ ```js
71
+ npx tailwindcss init -p
72
+ ```
80
73
 
81
- Note: All current Breeze releases utilize TailwindCSS v3.
74
+ This creates `tailwind.config.js` and `postcss.config.js` (pre-filled with Tailwind + Autoprefixer).
82
75
 
83
- #### 2. Configure `tailwind.config.js`
76
+ ### 2. Configure `tailwind.config.js`
84
77
 
85
- Update your `tailwind.config.js` file to match the configuration below:
78
+ Update your `tailwind.config.js` to include Breeze's content path and theme.
86
79
 
87
80
  ```js
88
81
  import type { Config } from "tailwindcss";
89
- /* Import colors if using Tailwind's color palette */
90
82
  import colors from "tailwindcss/colors";
91
83
 
92
84
  const config: Config = {
93
85
  /* The selector strategy replaced the class strategy in Tailwind CSS v3.4.1.*/
94
86
  darkMode: "selector",
95
87
  content: [
96
- "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
97
- "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
98
88
  "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
99
89
  /* IMPORTANT: Add this line: */
100
- "./node_modules/@smitch/Breeze/**/*.js",
90
+ "./node_modules/@smitch/breeze/**/*.js",
101
91
  ],
102
92
  theme: {
103
93
  extend: {
@@ -161,106 +151,36 @@ const config: Config = {
161
151
  export default config;
162
152
  ```
163
153
 
164
- ## Installation
165
-
166
- ```bash
167
- npm install @smitch/breeze
168
- ```
169
-
170
- ## Compatibility
171
-
172
- ### Supported stacks & compatibility matrix
173
-
174
- Use the table below to pick the Breeze major line that matches your app's React / Next.js and
175
- Tailwind versions. This helps avoid peer dependency conflicts.
176
-
177
- - Breeze v4.x (current):
178
-
179
- - React: 19.x
180
- - Next.js: 15.x
181
- - Tailwind: 3.x
182
- - Install: `npm install @smitch/breeze`
183
-
184
- - Breeze v3.x:
185
- - React: 18.x
186
- - Next.js: 14.x (and other releases built on React 18)
187
- - Tailwind: 3.x
188
- - Install: `npm install @smitch/Breeze@^3`
189
-
190
- ### Node / environment
191
-
192
- - Recommended Node: use an LTS release (Node 18/20+ recommended depending on your Next version).
193
-
194
- ### Troubleshooting
195
-
196
- - If a feature (charts, maps) fails because a peer package is missing, install the optional peers
197
- indicated in the Peer dependencies section (e.g., `chart.js`, `react-chartjs-2`, `leaflet`).
198
-
199
- ## Peer dependencies
200
-
201
- Breeze is a component library and expects the host app to provide framework/runtime dependencies.
202
- Below are the packages you should have installed in your project when using `@smitch/Breeze`.
154
+ ### 3. Add Tailwind Directives to CSS
203
155
 
204
- Required (framework)
156
+ Add to your global CSS file (e.g., `globals.css` in App Router):
205
157
 
206
- ```bash
207
- npm install react react-dom next
208
- ```
209
-
210
- Optional (feature-specific — install only if you use the feature)
211
-
212
- Charts (optional)
213
-
214
- If you use the chart components, install the Chart.js runtime and the React wrapper:
215
-
216
- ```bash
217
- npm install chart.js react-chartjs-2
218
- ```
219
-
220
- Maps (optional — Leaflet)
221
-
222
- If you use the map components, install Leaflet and React Leaflet:
223
-
224
- ```bash
225
- npm install leaflet react-leaflet
226
- ```
227
-
228
- TypeScript notes:
229
-
230
- - For some setups you may want `@types/leaflet` (install if your build complains about Leaflet
231
- types):
232
-
233
- ```bash
234
- npm install -D @types/leaflet
158
+ ```css
159
+ @tailwind base;
160
+ @tailwind components;
161
+ @tailwind utilities;
235
162
  ```
236
163
 
237
164
  ## Basic Usage
238
165
 
239
- Now, you can import and use any Breeze UI [component](#components) in your Next.js project:
166
+ Import and use [components](#components):
240
167
 
241
168
  ```jsx
242
- import { Button } from "@smitch/Breeze";
169
+ import { Button } from "@smitch/breeze";
243
170
 
244
171
  const App = () => <Button>Click me</Button>;
245
172
 
246
173
  export default App;
247
174
  ```
248
175
 
249
- ## Charts Usage
176
+ For charts/maps, see below.
250
177
 
251
- Charts available include:
178
+ ## Charts Usage
252
179
 
253
- - BarChart
254
- - BubbleChart
255
- - LineChart
256
- - PieChart
257
- - DoughnutChart
258
- - ScatterChart
259
- - RadarChart
260
- - PolarAreaChart
261
- - MixedChart
180
+ Charts include: BarChart, BubbleChart, LineChart, PieChart, DoughnutChart, ScatterChart, RadarChart,
181
+ PolarAreaChart, MixedChart.
262
182
 
263
- Charts require Chart.js and the React wrapper:
183
+ Install deps:
264
184
 
265
185
  ```bash
266
186
  npm install chart.js react-chartjs-2
@@ -269,7 +189,7 @@ npm install chart.js react-chartjs-2
269
189
  ### Chart Usage Example
270
190
 
271
191
  ```jsx
272
- import { BarChart } from "@smitch/Breeze/charts";
192
+ import { BarChart } from "@smitch/breeze/charts";
273
193
 
274
194
  const App = () => {
275
195
  return (
@@ -287,8 +207,7 @@ const App = () => {
287
207
  data: [22, 25, 20, 18, 24],
288
208
  backgroundColor: 'rgba(255, 99, 132, 0.6)',
289
209
  borderWidth: 0,
290
- },
291
- ...
210
+ }
292
211
  ],
293
212
  labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
294
213
  }}
@@ -303,15 +222,9 @@ export default App;
303
222
 
304
223
  ## Map Usage
305
224
 
306
- Map options include:
307
-
308
- - MapMarker
309
- - MapCircle
310
- - MapPolygon
311
- - MapLine
312
- - MapRectangle
225
+ Map components: MapMarker, MapCircle, MapPolygon, MapLine, MapRectangle.
313
226
 
314
- Install Leaflet and React Leaflet (and leaflet.fullscreen if fullscreen control required):
227
+ Install deps:
315
228
 
316
229
  ```bash
317
230
  npm install leaflet react-leaflet leaflet.fullscreen
@@ -326,7 +239,7 @@ npm install -D @types/leaflet @types/leaflet.fullscreen
326
239
  #### Static Map
327
240
 
328
241
  ```jsx
329
- import { Map } from "@smitch/Breeze/map";
242
+ import { Map } from "@smitch/breeze/map";
330
243
 
331
244
  const App = () => {
332
245
  return (
@@ -348,7 +261,7 @@ export default App;
348
261
  #### Map with marker
349
262
 
350
263
  ```jsx
351
- import { Map, MapMarker } from "@smitch/Breeze/map";
264
+ import { Map, MapMarker } from "@smitch/breeze/map";
352
265
 
353
266
  const App = () => {
354
267
  return (
@@ -392,7 +305,7 @@ export default App;
392
305
  - <a href='https://breezeui.site/?path=/docs/inputs-file-upload--docs'>File Upload</a>
393
306
  - <a href='https://breezeui.site/?path=/docs/inputs-input--docs'>Input</a>
394
307
  - <a href='https://breezeui.site/?path=/docs/inputs-password-input--docs'>Password Input</a>
395
- - <a href='https://breezeui.site/?path=/docs/inputs-radiog-roup--docs'>Radio Group</a>
308
+ - <a href='https://breezeui.site/?path=/docs/inputs-radio-group--docs'>Radio Group</a>
396
309
  - <a href='https://breezeui.site/?path=/docs/inputs-range-input--docs'>Range Input</a>
397
310
  - <a href='https://breezeui.site/?path=/docs/inputs-search-input--docs'>Search Input</a>
398
311
  - <a href='https://breezeui.site/?path=/docs/inputs-select--docs'>Select</a>
@@ -437,9 +350,8 @@ export default App;
437
350
  - <a href='https://breezeui.site/?path=/docs/media-hero--docs'>Hero</a>
438
351
  - <a href='https://breezeui.site/?path=/docs/media-icon--docs'>Icon</a>
439
352
  - <a href='https://breezeui.site/?path=/docs/media-modal--docs'>Modal</a>
440
- - <a href='https://breezeui.site/?path=/docs/media-placeholder--docs'>PlaceHolder</a>
441
- - <a href='https://breezeui.site/?path=/docs/media-twitter-embed--docs'>Twitter Embed</a>
442
- - <a href='https://breezeui.site/?path=/docs/media-twitter-embed--docs'>Twitter Timeline</a>
353
+ - <a href='https://breezeui.site/?path=/docs/media-image-placeholder--docs'>Image PlaceHolder</a>
354
+ - <a href='https://breezeui.site/?path=/docs/media-x-embed--docs'>X Embed</a>
443
355
  - <a href='https://breezeui.site/?path=/docs/media-video--docs'>Video</a>
444
356
  - <a href='https://breezeui.site/?path=/docs/media-video-player--docs'>Video Player</a>
445
357
  - <a href='https://breezeui.site/?path=/docs/media-youtube-embed--docs'>YouTube Embed</a>
@@ -467,9 +379,9 @@ export default App;
467
379
  Chart</a>
468
380
  - <a href='https://breezeui.site/?path=/docs/data-visualization-stat-bar--docs'>Stat Bar</a>
469
381
 
470
- ### Time
382
+ ### DateTime
471
383
 
472
- - <a href='https://breezeui.site/?path=/docs/time-clock--docs'>Clock</a>
384
+ - <a href='https://breezeui.site/?path=/docs/datetime-clock--docs'>Clock</a>
473
385
 
474
386
  ### Maps
475
387
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smitch/breeze",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "A lightweight, Tailwind-powered React/Next.js UI component library.",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [
@@ -22,18 +22,21 @@
22
22
  "dependencies": {
23
23
  "@smitch/js-lib": "^0.3.22",
24
24
  "react-icons": "^5.5.0",
25
- "tailwind-merge": "^2.5.4",
26
- "@tailwindcss/forms": "^0.5.9",
27
- "@tailwindcss/typography": "^0.5.15",
28
- "prismjs": "^1.30.0"
25
+ "prismjs": "^1.30.0",
26
+ "tailwind-merge": "^2.5.4"
29
27
  },
30
28
  "peerDependencies": {
31
29
  "react": ">=19",
32
30
  "react-dom": "^19.0.0",
33
31
  "next": ">=15",
34
- "tailwindcss": ">=3"
32
+ "tailwindcss": ">=3",
33
+ "@tailwindcss/forms": "^0.5.9",
34
+ "@tailwindcss/typography": "^0.5.15"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/prismjs": "^1.26.5"
38
- }
38
+ },
39
+ "types": "index.d.ts",
40
+ "typings": "index.d.ts",
41
+ "sideEffects": false
39
42
  }