@regardio/react 1.0.2 → 1.1.0

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 +34 -32
  2. package/package.json +9 -11
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
1
  # @regardio/react
2
2
 
3
- > Reusable React components from Regardio's projects, released into the wild.
3
+ > Reusable React components from Regardio's projects, shared outward.
4
4
 
5
- Part of Regardio's ongoing mission to provide valuable building blocks for achieving personal and shared aims. We build reusable tools, and commonly used React components from our projects live here for everyone to use.
5
+ Components that have carried real Regardio work, gathered here so other projects don't have to reinvent them. Accessible defaults, Tailwind-aware styling, and a surface shaped by actual use.
6
6
 
7
- ## ⚠️ Pre-release Notice
7
+ ## Pre-release notice
8
8
 
9
- **This package is currently in pre-release (v0.x).** While we use these components in production across our own projects, the API may still change between minor versions. We recommend:
9
+ This package is currently at v0.x. The components run in production across Regardio's own projects, but the API may still move between minor versions. A few habits that help:
10
10
 
11
- - Pinning to exact versions in your `package.json`
12
- - Reviewing changelogs before upgrading
13
- - Expecting potential breaking changes until v1.0
11
+ - Pin to exact versions in `package.json`
12
+ - Read the changelog before upgrading
13
+ - Expect the occasional breaking change until v1.0
14
14
 
15
- ## Why This Package?
15
+ ## What it's for
16
16
 
17
- We created `@regardio/react` to:
17
+ `@regardio/react` exists so a handful of steady components don't have to be rebuilt in every new app:
18
18
 
19
- - **Share battle-tested components** — These components power real Regardio projects and have been refined through actual use
20
- - **Reduce duplication** Instead of copying components between projects, we maintain them in one place
21
- - **Provide sensible defaults** — Components come pre-configured with accessibility, responsive design, and TailwindCSS integration
22
- - **Enable tree-shaking** — Import only what you need; unused components won't bloat your bundle
19
+ - **Shared, well-used pieces** — refined through actual product work, not sketched on a whiteboard
20
+ - **One home, not many copies** components live here instead of drifting apart across projects
21
+ - **Sensible defaults** — accessibility, responsive behaviour, and Tailwind integration come along for the ride
22
+ - **Tree-shakeable** — bring in what's needed, leave the rest out of the bundle
23
23
 
24
24
  ## Installation
25
25
 
@@ -27,9 +27,7 @@ We created `@regardio/react` to:
27
27
  pnpm add @regardio/react
28
28
  ```
29
29
 
30
- ### Peer Dependencies
31
-
32
- This package requires:
30
+ ### Peer dependencies
33
31
 
34
32
  - `react` >= 19.0.0
35
33
  - `react-dom` >= 19.0.0
@@ -38,7 +36,7 @@ This package requires:
38
36
 
39
37
  ## Usage
40
38
 
41
- Import components, hooks, and utilities directly from their paths for optimal tree-shaking:
39
+ Import components, hooks, and utilities directly from their paths so tree-shaking does its work:
42
40
 
43
41
  ```tsx
44
42
  import { Box } from '@regardio/react/box';
@@ -46,15 +44,15 @@ import { Link } from '@regardio/react/link';
46
44
  import { useNonce } from '@regardio/react/hooks/use-nonce';
47
45
  ```
48
46
 
49
- ### TailwindCSS Integration
47
+ ### TailwindCSS integration
50
48
 
51
- Components use TailwindCSS for styling. Import the base styles in your app:
49
+ Components are styled with Tailwind. Pull the base styles in once, from your app:
52
50
 
53
51
  ```tsx
54
52
  import '@regardio/react/tailwind.css';
55
53
  ```
56
54
 
57
- ## What's Included
55
+ ## What's inside
58
56
 
59
57
  ### Components
60
58
 
@@ -66,12 +64,12 @@ import '@regardio/react/tailwind.css';
66
64
  | `Carousel` | Embla-powered carousel with navigation controls |
67
65
  | `Countdown` | Dynamic countdown timer display |
68
66
  | `GenericError` | React Router error boundary with i18n support |
69
- | `Heading` | Semantic headings (h1-h6) with consistent styling |
70
- | `Highlight` | Text highlighting with customizable styles |
71
- | `IconButton` | Button optimized for icon-only content |
67
+ | `Heading` | Semantic headings (h1h6) with consistent styling |
68
+ | `Highlight` | Text highlighting with customisable styles |
69
+ | `IconButton` | Button shaped for icon-only content |
72
70
  | `If` | Conditional rendering utility component |
73
71
  | `Iframe` | Responsive iframe with sensible defaults |
74
- | `Item` | Grid item with theme colors and link support |
72
+ | `Item` | Grid item with theme colours and link support |
75
73
  | `LeafletMap` | Leaflet map integration |
76
74
  | `Link` | React Router link with external URL detection |
77
75
  | `List` | Compound list component with Root and Item |
@@ -99,16 +97,16 @@ import '@regardio/react/tailwind.css';
99
97
 
100
98
  | Utility | Description |
101
99
  |---------|-------------|
102
- | `author` | Author/contributor data formatting |
103
- | `isRouteActive` | Route matching utilities |
100
+ | `author` | Author and contributor data formatting |
101
+ | `isRouteActive` | Route matching helpers |
104
102
  | `locale` | Locale detection and formatting |
105
- | `text` | Typography processing (quotes, special chars) |
103
+ | `text` | Typography processing (quotes, special characters) |
106
104
 
107
- > **Note:** For Tailwind utilities like `cn`, `tv`, and `twMerge`, use `@regardio/tailwind/utils` instead.
105
+ > **Note:** For Tailwind utilities like `cn`, `tv`, and `twMerge`, reach for `@regardio/tailwind/utils`.
108
106
 
109
107
  ## Documentation
110
108
 
111
- See the [docs](./docs) folder for detailed documentation on each component, hook, and utility.
109
+ The [docs](./docs) folder has detailed notes on each component, hook, and utility.
112
110
 
113
111
  ## Storybook
114
112
 
@@ -120,12 +118,16 @@ pnpm storybook
120
118
 
121
119
  ## Contributing
122
120
 
123
- This package is primarily maintained for Regardio's internal use, but we welcome:
121
+ The package is maintained primarily for Regardio's own work, but contributions from elsewhere are welcome:
124
122
 
125
123
  - Bug reports and fixes
126
124
  - Documentation improvements
127
- - Feature suggestions (though we may not implement all requests)
125
+ - Feature suggestions (not every one will become an implementation)
128
126
 
129
127
  ## License
130
128
 
131
- **MIT License** — Free to use in commercial and open source projects.
129
+ **MIT** — free to use in commercial and open-source projects.
130
+
131
+ ---
132
+
133
+ *Part of the [Regardio Ensemble](https://regard.io/ensemble) toolkit for shared well-being.*
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "@regardio/react",
4
- "version": "1.0.2",
4
+ "version": "1.1.0",
5
5
  "private": false,
6
6
  "description": "Regardio React UI components",
7
7
  "keywords": [
@@ -200,8 +200,11 @@
200
200
  "embla-carousel": "8.6.0",
201
201
  "embla-carousel-react": "8.6.0",
202
202
  "markdown-to-jsx": "9.7.16",
203
- "@regardio/js": "1.0.2",
204
- "@regardio/tailwind": "1.0.2"
203
+ "react": "19.2.5",
204
+ "react-dom": "19.2.5",
205
+ "react-router": "7.14.2",
206
+ "@regardio/js": "1.1.0",
207
+ "@regardio/tailwind": "1.1.0"
205
208
  },
206
209
  "devDependencies": {
207
210
  "@storybook/addon-a11y": "10.3.5",
@@ -225,16 +228,11 @@
225
228
  "playwright": "1.59.1",
226
229
  "storybook": "10.3.5",
227
230
  "tailwindcss": "4.2.4",
228
- "tsdown": "0.21.9",
231
+ "tsdown": "0.21.10",
229
232
  "typescript": "6.0.3",
230
- "vite": "8.0.9",
233
+ "vite": "8.0.10",
231
234
  "vitest": "4.1.5",
232
- "@regardio/dev": "2.0.2"
233
- },
234
- "peerDependencies": {
235
- "react": "19.2.5",
236
- "react-dom": "19.2.5",
237
- "react-router": "7.14.2"
235
+ "@regardio/dev": "2.1.0"
238
236
  },
239
237
  "engines": {
240
238
  "node": ">=24"