@phcdevworks/spectre-ui 1.4.0 → 1.6.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,445 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the versioning
5
+ reflects package releases published to npm.
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Changed
10
+
11
+ - Clarified Spectre layer documentation so the UI package remains Layer 2,
12
+ `@phcdevworks/spectre-components` is the Layer 3 web-component package, and
13
+ framework adapters such as `@phcdevworks/spectre-ui-astro` remain downstream
14
+ delivery packages.
15
+ - Added root Copilot support guidance to match the Spectre AI instruction
16
+ structure used by `@phcdevworks/spectre-tokens`.
17
+ - Corrected README automation wording so Jules' bounded maintenance commit
18
+ authority matches `JULES.md`.
19
+ - Removed a stale `.agents/jules.md` reference from shared agent guidance.
20
+ - Updated shared agent guidance to reference the root Copilot support file.
21
+
22
+ ## [1.5.0] - 2026-05-04
23
+
24
+ Release Title: Token Alignment and Variant Parity
25
+
26
+ ### Added
27
+
28
+ - **Badge Variants**: Added `accent` variant support and `fullWidth`
29
+ structural support across the Badge recipe and component CSS contract.
30
+ - **IconBox Variants**: Added `accent` variant support mapped directly to
31
+ upstream button accent token intent.
32
+ - **Rating Variants**: Added `pill` and `fullWidth` recipe support, plus the
33
+ public `RatingSize` type export.
34
+ - **Verification Examples**: Added IconBox accent verification fixtures for
35
+ local visual contract checks.
36
+
37
+ ### Changed
38
+
39
+ - **Token Alignment**: Synchronized component roles with current published
40
+ `@phcdevworks/spectre-tokens` package metadata through `^2.5.0`.
41
+ - **Dark Mode Roles**: Refined dark-mode Badge, IconBox, PricingCard, and
42
+ Testimonial role mappings using existing Spectre token values.
43
+ - **Contract Coverage**: Expanded recipe, CSS contract, entrypoint, and
44
+ aesthetic audit coverage for the new variants and token-role mappings.
45
+ - **Dependencies**: Updated Spectre tokens, ESLint, PostCSS,
46
+ TypeScript ESLint, and related lockfile metadata.
47
+
48
+ ### Fixed
49
+
50
+ - **Recipe Exports**: Updated the export snapshot and root recipe barrel to keep
51
+ the public type inventory aligned with source exports.
52
+ - **CSS Contract**: Increased the component entrypoint size budget to account
53
+ for the added token-backed variant selectors.
54
+
55
+ ## [1.4.0] - 2026-04-25
56
+
57
+ Release Title: Contract Manifest and Variant Parity
58
+
59
+ ### Added
60
+
61
+ - **Component Variants**: Added `ghost` support for `Badge`; `ghost`,
62
+ `neutral`, and `secondary` support for `IconBox`; and `fullHeight` structural
63
+ support for `PricingCard` and `Testimonial`.
64
+ - **Input States**: Added explicit boolean recipe flags for `Input` disabled
65
+ and loading classes while preserving the existing state-option contract.
66
+ - **Contract Manifest**: Added `ui-contract.manifest.json` as a machine-readable
67
+ inventory of CSS entry points, root exports, Tailwind exports, and recipe
68
+ family contracts.
69
+ - **Contract Validation**: Added README parity validation, Tailwind subpath
70
+ export validation, built-package smoke tests, recipe parity checks, and CSS
71
+ entry point manifest cross-checks.
72
+ - **Verification Docs**: Added local verification guidance, a contract coverage
73
+ map, and example-boundary documentation for maintainers.
74
+
75
+ ### Changed
76
+
77
+ - **Token Alignment**: Synchronized component role mappings with
78
+ `@phcdevworks/spectre-tokens` releases through `^2.4.0`.
79
+ - **Public Exports**: Formalized `spectreIndexStylesPath` as part of the root
80
+ package contract and simplified Spectre token re-exports.
81
+ - **CI Verification**: Expanded `npm run ci:verify` to include README, Tailwind,
82
+ and strengthened CSS contract validation.
83
+ - **Dependencies**: Updated the npm package manager pin, Tailwind CSS, Vite,
84
+ Vitest, TypeScript ESLint packages, Rollup lockfile metadata, and related
85
+ lockfile entries.
86
+
87
+ ### Fixed
88
+
89
+ - **Token Roles**: Corrected IconBox warning, testimonial quote/title, and
90
+ pricing-card featured-price role mappings to current published token intent.
91
+ - **Test Coverage**: Filled variant and contract test gaps for Badge, IconBox,
92
+ PricingCard, Testimonial, Tailwind exports, package smoke behavior, and README
93
+ parity.
94
+ - **CI Script Order**: Adjusted verification ordering so generated artifacts are
95
+ available before Tailwind and CSS contract checks run.
96
+
97
+ ## [1.3.0] - 2026-04-18
98
+
99
+ Release Title: Contract Coverage Expansion and Interaction Parity
100
+
101
+ ### Added
102
+
103
+ - **Component States**: Added interactive state support for `Rating`,
104
+ `PricingCard`, and `Testimonial`, plus active-state support for `Card` and
105
+ `Input`.
106
+ - **IconBox Variants**: Added `pill` variant support for `IconBox` in both
107
+ recipe output and component CSS contract.
108
+ - **Contract Enforcement**: Added and expanded CSS contract tests for generated
109
+ selectors, interaction states, size-variant selectors, entrypoint boundaries,
110
+ token-role guards, and Spectre-prefixed CSS variable enforcement.
111
+ - **Governance Docs**: Added hardening planning and tracking documents
112
+ (`ROADMAP.md`, `TODO.md`) and expanded repository guidance for contract
113
+ parity.
114
+
115
+ ### Changed
116
+
117
+ - **Token Alignment**: Synchronized with published
118
+ `@phcdevworks/spectre-tokens` updates and tightened local token-mapping
119
+ coverage.
120
+ - **CSS Quality**: Improved component CSS rules and selector consistency to
121
+ align structural styles with recipe-emitted class contracts.
122
+ - **Dependencies**: Updated `@phcdevworks/spectre-tokens`, ESLint, PostCSS,
123
+ TypeScript, Prettier, and related development tooling.
124
+ - **Testing Surface**: Standardized tests on public package exports and refined
125
+ contract/aesthetic validation paths.
126
+
127
+ ### Fixed
128
+
129
+ - **Selector Matching**: Corrected generated-class selector matching regex and
130
+ eliminated false negatives in CSS contract tests.
131
+ - **IconBox Warning Role**: Updated warning text tone mapping to the intended
132
+ `warning-800` token-backed color role.
133
+
134
+ ## [1.2.0] - 2026-04-11
135
+
136
+ Release Title: Interactive State Parity and Validation Governance
137
+
138
+ ### Added
139
+
140
+ - **Component States**: Added programmatic focus support to Button, focused and active support to Badge, and interactive, hovered, focused, and active parity for IconBox.
141
+ - **Rating Variants**: Added sm, md, and lg size variants to Rating recipes and structural CSS for size-driven rendering.
142
+ - **Validation Governance**: Added export snapshot checks, CSS entry-point validation, runtime validation, token freshness checks, and a Buildkite pipeline alongside the existing GitHub Actions workflow.
143
+
144
+ ### Changed
145
+
146
+ - **Token Alignment**: Synchronized the UI layer with published @phcdevworks/spectre-tokens releases through 2.2.0, including the weekly alignment pass for 2.1.2 and the subsequent dependency bump to 2.2.0.
147
+ - **Release Tooling**: Consolidated the release verification flow under npm run ci:verify, added a pretest build step, pinned the Node runtime contract in .nvmrc and package.json, and tightened package-manager expectations with engine-strict.
148
+ - **Documentation**: Expanded README export guidance, clarified dependency and synchronization rules, and aligned contributor guidance with the stricter validation flow.
149
+ - **Dependencies**: Refreshed Node, ESLint, Vitest, Vite, and related build tooling to match the current validation and packaging contract.
150
+
151
+ ### Fixed
152
+
153
+ - **Component Behavior**: Corrected IconBox hover opacity and ensured active, focus, and hover state classes render consistently across recipe-driven and structural component usage.
154
+ - **Contract Coverage**: Extended tests for CTA and accent button states, Tailwind preset deep merging, testimonial and pricing selectors, and scoped Tailwind package imports.
155
+
156
+ ## [1.1.2] - 2026-04-05
157
+
158
+ Release Title: State Parity and Package Contract Hardening
159
+
160
+ ### Added
161
+
162
+ - **Component States**: Added `loading` state support for `Card` and
163
+ `PricingCard`, plus explicit `hovered` and `focused` recipe parity for
164
+ `Card` and `Input`.
165
+ - **Recipe APIs**: Expanded state flags across `Badge`, `Button`, `Card`, and
166
+ `Input` so adapters can opt into hover, focus, and active contract classes
167
+ without inventing local styling logic.
168
+ - **Validation**: Added a GitHub Actions CI workflow that runs `npm run lint`,
169
+ `npm run build`, and `npm test` for pull requests and pushes to `main`.
170
+ - **Examples**: Added a visual examples index and focused verification fixtures
171
+ for card, pricing, and badge state checks.
172
+
173
+ ### Changed
174
+
175
+ - **Token Alignment**: Synchronized the UI layer with the published
176
+ `@phcdevworks/spectre-tokens@2.1.1` package, restoring CTA button mappings to
177
+ upstream tokens and aligning featured pricing-card roles with token intent.
178
+ - **Packaging**: Reworked CSS bundling so every exported CSS entry point emits
179
+ a real standalone artifact with token context, and marked exported CSS files
180
+ as runtime side effects in `package.json`.
181
+ - **Typing & Tooling**: Tightened recipe option typing with `keyof`-based
182
+ unions, improved Tailwind theme type safety, and refreshed TypeScript and
183
+ ESLint-related tooling.
184
+ - **Documentation**: Updated README setup examples and expanded package
185
+ guidance around examples, exported CSS entry points, and validation
186
+ expectations.
187
+
188
+ ### Fixed
189
+
190
+ - **Badge States**: Added forced hovered-state support for interactive `Badge`
191
+ variants so recipe-driven state previews stay in sync with CSS behavior.
192
+ - **Contract Coverage**: Extended tests to cover standalone CSS entry points,
193
+ rating selectors, and state-parity regressions across the updated recipes.
194
+
195
+ ## [1.1.1] - 2026-03-29
196
+
197
+ Release Title: Loading States and Package Refinement
198
+
199
+ ### Added
200
+
201
+ - **Component States**: Added `loading` state support for `Badge`, `IconBox`,
202
+ `Input`, `Rating`, and `Testimonial` recipes and CSS classes.
203
+ - **Component States**: Added `disabled` state support for `Rating` and
204
+ `Testimonial` components.
205
+
206
+ ### Changed
207
+
208
+ - **Tailwind Preset**: Tightened `createSpectreTailwindPreset` typing so the
209
+ merged preset and theme preserve Tailwind config types during DTS builds.
210
+ - **Dependencies**: Updated Tailwind CSS to `4.2.2`, Vitest to `4.1.2`,
211
+ `@phcdevworks/spectre-tokens` to `2.1.1`, and refreshed supporting build and
212
+ lint dependencies.
213
+ - **Documentation**: Reworked `README.md` for clearer package ownership, setup,
214
+ exports, and usage examples.
215
+ - **Maintenance**: Refined repository guidance in `AGENTS.md`, refreshed VS
216
+ Code and Dependabot configuration, and normalized formatting across docs,
217
+ examples, and config files.
218
+
219
+ ## [1.1.0] - 2026-03-22
220
+
221
+ Release Title: Disabled States and Layer Alignment
222
+
223
+ ### Added
224
+
225
+ - **Component States**: Implemented `disabled` states across `Card`, `Badge`,
226
+ `IconBox`, and `PricingCard` components for improved accessibility and
227
+ interactivity.
228
+ - **Pill Variant**: Added `pill` variant support for `Input` components.
229
+ - **Project Structure**: Introduced `.keep` files for `skills` directory and
230
+ unified workspace configuration.
231
+ - **Arsenal Sync**: Synchronized design tokens from
232
+ `@phcdevworks/spectre-tokens` v2.x ecosystem.
233
+
234
+ ### Changed
235
+
236
+ - **Dependencies**: Bumping `@phcdevworks/spectre-tokens` to `v2.1.0` for latest
237
+ design token features.
238
+ - **Maintenance**: Standardized project configurations (ESLint, Prettier,
239
+ .npmignore) across the Spectre suite.
240
+ - **ESLint**: Migrated `eslint.config.js` to `eslint.config.ts` for type-safe
241
+ linting with `import.meta.dirname` support.
242
+ - **Documentation**: Refined Layer 2 Blueprint terminology in `AGENTS.md` and
243
+ clarified 'Blueprint' vs 'DNA' definitions in `README.md`.
244
+ - **Infrastructure**: Removed legacy devcontainer configurations and tidied VS
245
+ Code workspace settings.
246
+
247
+ ## [1.0.0] - 2026-03-16
248
+
249
+ Release Title: Blueprint Foundation Release
250
+
251
+ ### Added
252
+
253
+ - **Specialized Recipes**: Introduced `PricingCard`, `Testimonial`, and `Rating`
254
+ class generators for complex UI patterns.
255
+ - **Architectural Foundation**: Officially established as Layer 2 (The
256
+ Blueprint) of the Spectre 8-Layer Arsenal.
257
+
258
+ ### Changed
259
+
260
+ - **Dependencies**: Updated `@phcdevworks/spectre-tokens` to `v2.0.0`.
261
+ - **Maintenance**: Refactored `CHANGELOG.md` to follow industry best practices
262
+ and improved scannability.
263
+ - **Documentation**: Revitalized `README.md` and `CONTRIBUTING.md` with updated
264
+ architecture maps and Quick Start guides.
265
+
266
+ ## [0.4.1] - 2026-01-14
267
+
268
+ Release Title: Input Tokens and Utility Cleanup
269
+
270
+ ### Changed
271
+
272
+ - **Z-Index & Animations**: Refactored CSS variables to include a standardized
273
+ z-index scale and animation utility custom properties.
274
+ - **Input Components**: Refactored input role tokens and updated component
275
+ styles to use a new CSS variable structure, including helper text and error
276
+ message utilities.
277
+ - **Dependencies**: Updated dependencies in `package-lock.json`.
278
+
279
+ ### Fixed
280
+
281
+ - **Documentation**: Fixed broken link in the contributing guide.
282
+
283
+ ## [0.4.0] - 2026-01-03
284
+
285
+ Release Title: Semantic CSS System Refresh
286
+
287
+ ### Changed
288
+
289
+ - **System Architecture**: Refactored CSS variables and backgrounds for
290
+ consistency, removing legacy fallback values to enforce strict token usage.
291
+ - **Component Refinement**: Reworked core component styles (Buttons, Badges,
292
+ Cards, Inputs, Icon Boxes) with a new semantic custom property structure.
293
+ - **States & Interactivity**: Enhanced handling for focus, hover, and disabled
294
+ states across all components.
295
+ - **Tailwind Integration**: Updated Tailwind utility paths and submodule exports
296
+ for better ESM/CJS compatibility.
297
+ - **Documentation**: Revamped README with corrected API examples and design
298
+ philosophy.
299
+ - **Examples**: Refactored `vanilla.html` to fully leverage the theme's CSS
300
+ variables instead of hardcoded values.
301
+
302
+ ## [0.3.0] - 2025-12-24
303
+
304
+ Release Title: Bundled CSS Distribution
305
+
306
+ ### Changed
307
+
308
+ - **Build Pipeline**: Migrated from direct CSS imports to a PostCSS-driven build
309
+ process for bundling `index.css`.
310
+ - **Distribution**: All CSS bundles (`base`, `components`, `utilities`, `index`)
311
+ are now unified in the `dist/` directory.
312
+
313
+ ### Documentation
314
+
315
+ - **Maintenance**: Expanded build and release instructions for maintainers and
316
+ contributors.
317
+
318
+ ## [0.2.2] - 2025-12-23
319
+
320
+ Release Title: Public API Tightening
321
+
322
+ ### Changed
323
+
324
+ - **Public API**: Removed internal `spectreTokens` export to reduce bundle size
325
+ and prevent leakage of raw token data.
326
+
327
+ ## [0.2.1] - 2025-12-23
328
+
329
+ Release Title: Tailwind Export Refinement
330
+
331
+ ### Changed
332
+
333
+ - **Tailwind Exports**: Refactored Tailwind theme and preset exports for better
334
+ tree-shaking and developer experience.
335
+
336
+ ## [0.2.0] - 2025-12-20
337
+
338
+ Release Title: Primitive Expansion and Tailwind Control
339
+
340
+ ### Added
341
+
342
+ - **Primitives**: Introduced Badge and IconBox primitives with associated class
343
+ recipes and CSS.
344
+ - **Customization**: Added `createSpectreTailwindPreset` for advanced Tailwind
345
+ configuration control.
346
+
347
+ ### Changed
348
+
349
+ - **Internal Logic**: Improved token resolution for isomorphic (Node and
350
+ browser) environments.
351
+ - **Utilities**: Refactored class utilities and added strict option validation.
352
+
353
+ ## [0.1.0] - 2025-12-13
354
+
355
+ Release Title: Community Standards and Variant Growth
356
+
357
+ ### Added
358
+
359
+ - **Compliance & Community**: Added issue templates, code of conduct, security
360
+ policy, and pull request templates.
361
+ - **Variants**: Introduced the `success` variant for Button recipes.
362
+
363
+ ### Changed
364
+
365
+ - **Core Refactor**: Standardized CSS constants, class generators, and Tailwind
366
+ theme mapping logic.
367
+ - **Types**: Refactored TypeScript definitions for better type inference in
368
+ consuming applications.
369
+
370
+ ## [0.0.5] - 2025-12-08
371
+
372
+ Release Title: Canonical CSS Bundle
373
+
374
+ ### Added
375
+
376
+ - **Distribution**: Introduced the canonical `index.css` bundle.
377
+
378
+ ## [0.0.4] - 2025-12-07
379
+
380
+ Release Title: Contract Testing and Utility Growth
381
+
382
+ ### Added
383
+
384
+ - **Testing Suite**: Integrated Vitest and added comprehensive contract tests
385
+ for component CSS selectors and recipe outputs.
386
+ - **Utilities**: Added new semantic color roles and utility classes.
387
+
388
+ ### Changed
389
+
390
+ - **Design System**: Refined CSS variables and enhanced theme color mapping
391
+ logic.
392
+
393
+ ## [0.0.3] - 2025-12-06
394
+
395
+ Release Title: Surface Roles and Package Metadata
396
+
397
+ ### Added
398
+
399
+ - **Surface Tokens**: Added CSS variables for semantic surface colors and text
400
+ roles.
401
+ - **Meta**: Added funding information and expanded package metadata.
402
+
403
+ ## [0.0.2] - 2025-12-04
404
+
405
+ Release Title: Recipe API Alignment and Token Decoupling
406
+
407
+ ### Changed
408
+
409
+ - **API Consistency**: Refactored Card, Input, and Button recipe APIs for
410
+ unified developer experience.
411
+ - **Token Decoupling**: Migrated to external `@phcdevworks/spectre-tokens`
412
+ package.
413
+
414
+ ## [0.0.1] - 2025-11-27
415
+
416
+ Release Title: Initial Blueprint Release
417
+
418
+ ### Added
419
+
420
+ - **Initial Release**: Comprehensive implementation of the Spectre Blueprint
421
+ package.
422
+ - **Features**: Includes TypeScript build pipeline, Tailwind preset, recipe
423
+ helpers, and precompiled CSS modules.
424
+
425
+ [unreleased]: https://github.com/phcdevworks/spectre-ui/compare/1.5.0...HEAD
426
+ [1.5.0]: https://github.com/phcdevworks/spectre-ui/compare/1.4.0...1.5.0
427
+ [1.4.0]: https://github.com/phcdevworks/spectre-ui/compare/1.3.0...1.4.0
428
+ [1.3.0]: https://github.com/phcdevworks/spectre-ui/compare/1.2.0...1.3.0
429
+ [1.2.0]: https://github.com/phcdevworks/spectre-ui/compare/1.1.2...1.2.0
430
+ [1.1.2]: https://github.com/phcdevworks/spectre-ui/compare/1.1.1...1.1.2
431
+ [1.1.1]: https://github.com/phcdevworks/spectre-ui/compare/1.1.0...1.1.1
432
+ [1.1.0]: https://github.com/phcdevworks/spectre-ui/compare/1.0.0...1.1.0
433
+ [1.0.0]: https://github.com/phcdevworks/spectre-ui/compare/0.4.1...1.0.0
434
+ [0.4.1]: https://github.com/phcdevworks/spectre-ui/compare/0.4.0...0.4.1
435
+ [0.4.0]: https://github.com/phcdevworks/spectre-ui/compare/0.3.0...0.4.0
436
+ [0.3.0]: https://github.com/phcdevworks/spectre-ui/compare/0.2.2...0.3.0
437
+ [0.2.2]: https://github.com/phcdevworks/spectre-ui/compare/0.2.1...0.2.2
438
+ [0.2.1]: https://github.com/phcdevworks/spectre-ui/compare/0.2.0...0.2.1
439
+ [0.2.0]: https://github.com/phcdevworks/spectre-ui/compare/0.1.0...0.2.0
440
+ [0.1.0]: https://github.com/phcdevworks/spectre-ui/compare/0.0.5...0.1.0
441
+ [0.0.5]: https://github.com/phcdevworks/spectre-ui/compare/0.0.4...0.0.5
442
+ [0.0.4]: https://github.com/phcdevworks/spectre-ui/compare/0.0.3...0.0.4
443
+ [0.0.3]: https://github.com/phcdevworks/spectre-ui/compare/0.0.2...0.0.3
444
+ [0.0.2]: https://github.com/phcdevworks/spectre-ui/compare/0.0.1...0.0.2
445
+ [0.0.1]: https://github.com/phcdevworks/spectre-ui/tree/0.0.1