@poppyui/core 0.3.1-next.2cc89e5 → 0.4.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/CHANGELOG.md +112 -0
  2. package/package.json +5 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,112 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ Sections are generated from Conventional Commits when a release publishes
9
+ (`scripts/changelog.js`); do not add entries by hand. The commit subject (or a
10
+ `Changelog:` trailer in the commit body) is the entry text.
11
+
12
+ ## [0.4.0] - 2026-11-19
13
+
14
+ ### Added
15
+
16
+ - CHANGELOG.md ships in the package (`@poppyui/core/CHANGELOG.md`); release notes are now generated from commits, and each release gets a GitHub Release. ([a9ce4fa](https://github.com/poppyui-dev/poppyui/commit/a9ce4fa3a4e9689341c701764055c3bf81ed9598))
17
+
18
+ ### Fixed
19
+
20
+ - Accordion fills its container so width stays fixed when items toggle ([2cc89e5](https://github.com/poppyui-dev/poppyui/commit/2cc89e5ed57739b533a7508b1b447f356f7e732d))
21
+
22
+ ## [0.3.0] - 2026-11-19
23
+
24
+ ### Added
25
+
26
+ - `.input` can wrap icons and a nested bare `<input>` (search, email, password, etc.); the wrapper keeps the border, focus ring and size modifiers.
27
+ - High-level design doc (`docs/HLD.md`) for the `feature` / `main` release model (`next` vs `latest`, manual promote).
28
+
29
+ ### Changed
30
+
31
+ - Promoting `feature` → `main` now auto-bumps `package.json` from conventional commits (`feat` → minor, `fix`/`perf` → patch, breaking → major), rolls the changelog, publishes `latest`, and syncs the release commit back to `feature`. Do not bump the version by hand. Publish runs in the promote workflow itself (a bot push to `main` cannot start a new Actions run).
32
+ - CI: pushes to the long-lived `feature` branch publish an npm `next` snapshot (`X.Y.Z-next.<sha>`); `latest` still only publishes from `main`. The same CI workflow’s **Run workflow** button on `feature` fast-forwards `main` (no separate promote pipeline). PRs target `feature` only.
33
+ - `AGENTS.md`: agents work directly on `feature` and create a branch only when the maintainer asks.
34
+ - `AGENTS.md`: agents stage only the files they changed and ask before committing any other modified or untracked files.
35
+ - Contributor tooling: a Cursor rule asks the agent to end replies with a DO list of user actions.
36
+ - Contributor tooling: `pnpm build-link` builds core and links it into a sibling `../app` checkout to preview unreleased CSS locally (CI keeps using `pnpm build`).
37
+ - `AGENTS.md`: "build core" means `pnpm build-link`; agents must not commit the site's linked `pnpm-workspace.yaml` override / `pnpm-lock.yaml`.
38
+ - `pnpm build-link` now links via `pnpm link` (a `pnpm-workspace.yaml` override in the site) instead of rewriting the site's `package.json`.
39
+
40
+ ### Fixed
41
+
42
+ - `.skeleton` now fills its container's width by default, so a bare skeleton no longer collapses to zero width inside a centered flex or grid parent. Set `inline-size` to override.
43
+ - `.alert` (and alerts inside `.toast`) now vertically centers its content, so an inline action such as a Close button lines up with the message text.
44
+
45
+ ## [0.2.0] - 2026-11-18
46
+
47
+ ### Added
48
+
49
+ - `--color-field` theme token for the surface of inputs, textareas, selects, checkboxes and radios; override it to restyle every form control at once.
50
+ - Snapshot builds: maintainers can publish any branch as `X.Y.Z-next.<sha>` under the npm `next` tag to try unreleased changes; `latest` and normal installs are unaffected.
51
+
52
+ ### Fixed
53
+
54
+ - In the dark theme, inputs, textareas, selects, checkboxes and radios no longer look like black holes on cards and fieldsets; they now sit slightly lighter than the surface behind them.
55
+ - Checked and indeterminate `.checkbox` now shows its check mark or dash; before, the box filled with color but the mark had zero size.
56
+ - `.card` no longer collapses to zero width inside flex or grid layouts; container queries stay on `.card-side` only.
57
+
58
+ ### Changed
59
+
60
+ - README now lists all 30 components, links to the docs at poppyui.com, pins the CDN URL to a version, and includes a TypeScript snippet for `commandfor` / `command` / `closedby` in React.
61
+ - CI runs once per push instead of twice for branches with an open pull request.
62
+ - Contributor guide (`AGENTS.md`) now says when a change belongs in the core package versus the poppyui.com site, and that core fixes reach the site only through an npm release.
63
+
64
+ ## [0.1.1] - 2026-11-18
65
+
66
+ ### Security
67
+
68
+ - Releases are published to npm only from `main`, by GitHub Actions with npm Trusted Publishing (no long-lived npm token), and carry signed provenance. Every other branch and pull request runs tests, build and a publish dry run.
69
+
70
+ ### Fixed
71
+
72
+ - CI no longer hangs after the Playwright tests finish; jobs also time out after 15 minutes.
73
+ - The CI publish dry run no longer fails when the current version is already on npm; it checks the package contents instead.
74
+
75
+ ## [0.1.0] - 2026-11-18
76
+
77
+ ### Removed
78
+
79
+ - Demo apps moved out of the core repo; the Angular demo now lives in `poppyui-dev/app`.
80
+
81
+ ### Changed
82
+
83
+ - The npm package is published as `@poppyui/core` (npm rejected `poppyui` as too similar to `poppy-ui`). Install with `pnpm add @poppyui/core` and import `@poppyui/core`, `@poppyui/core/min`, `@poppyui/core/core.css` or `@poppyui/core/components/*`.
84
+ - Test page moved from `demo/vanilla` to `tests/fixture`; `pnpm dev` serves it at http://localhost:5173.
85
+
86
+ ### Added
87
+
88
+ - `AGENTS.md` with contributor and agent rules, including the requirement that every commit updates this changelog.
89
+ - `CHANGELOG.md` following Keep a Changelog.
90
+ - pnpm is the project package manager, documented in `AGENTS.md`.
91
+ - Lightning CSS build to `dist/` (`poppy.css`, `poppy.min.css`, `core.css`, `components/*.css`) and package exports `@poppyui/core`, `@poppyui/core/min`, `@poppyui/core/core.css`, `@poppyui/core/components/*`.
92
+ - Design tokens (`oklch` colors, radius, spacing, type, motion) and light/dark themes, switched with `data-theme` on any ancestor.
93
+ - Poppins as the default font family (`--font-sans`). It is not bundled; load it yourself.
94
+ - Minimal base reset with a `:focus-visible` ring.
95
+ - All rules in `@layer poppy.*`, so consumer CSS wins without `!important`.
96
+ - `.btn`: variants `btn-primary`, `btn-secondary`, `btn-ghost`, `btn-outline`, `btn-danger`; sizes `btn-sm`, `btn-lg`; `btn-loading` and `:disabled` states.
97
+ - `.modal`: native `<dialog>` opened with Invoker Commands, with `::backdrop` styling and `@starting-style` enter/exit animations. Zero JS.
98
+ - `.dropdown`: `popover` menu placed with CSS anchor positioning (flips when there is no room), with a bottom-sheet fallback. Zero JS.
99
+ - Plain HTML demo in `demo/vanilla` (no framework, no build step) with a theme toggle and a nested-theme example, run with `pnpm demo:vanilla`.
100
+ - Playwright + axe tests: axe scans in both themes, Esc and focus trapping for the modal, and light dismiss and placement for the dropdown.
101
+ - PoppyUI poppy favicon for both demos (SVG, plus a 16/32/48 px `.ico` for the Angular demo), regenerated with `pnpm favicon`.
102
+ - The Angular demo's brand mark in the header and footers now uses the same poppy as the favicon.
103
+ - README with quickstarts (CDN, React, Angular) and a Baseline browser-support table.
104
+ - Angular demo app in `demo/angular` that consumes `poppyui` exactly as an installed package would, run with `pnpm demo:angular`.
105
+ - Landing page in the Angular demo that showcases every component, the platform features behind them, nested themes and per-framework setup.
106
+ - `/components` page in the Angular demo with live examples and copyable markup for button, modal and dropdown; the "Components" links now open it.
107
+ - Shared layout in the Angular demo (`src/app/shared/layout`) so every page has the same header, nav, install chip and theme menu; nav links to landing sections scroll to them from any page.
108
+ - Status color tokens `--color-success`, `--color-warning`, `--color-info` (and `-content` pairs) in both themes.
109
+ - Data display components: `.alert`, `.avatar`, `.badge`, `.card`, `.divider`, `.kbd`, `.loading`, `.progress` (native `<progress>`), `.skeleton`, `.stat`/`.stats`, `.table`, `.tooltip`.
110
+ - Form components: `.input`, `.textarea`, `.select`, `.checkbox`, `.radio`, `.toggle` (`role="switch"`), `.range`, and `.field`/`.fieldset` layout with `:user-invalid` error messages.
111
+ - Navigation and layout components: `.accordion` (exclusive `<details name>`), zero-JS `.tabs`, `.breadcrumbs`, `.menu`, `.steps`, `.drawer` (`<dialog>` side sheet), `.join`, `.navbar`, `.toast`.
112
+ - Component gallery at `/components` in the Angular demo: live miniatures of every component, search (press `/`) and category filters; the full docs moved to `/components/docs`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poppyui/core",
3
- "version": "0.3.1-next.2cc89e5",
3
+ "version": "0.4.0",
4
4
  "description": "Framework-agnostic, CSS-first design system. Semantic classes on plain HTML; behavior from the platform.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,14 +25,16 @@
25
25
  ],
26
26
  "files": [
27
27
  "dist",
28
- "src"
28
+ "src",
29
+ "CHANGELOG.md"
29
30
  ],
30
31
  "exports": {
31
32
  ".": "./dist/poppy.css",
32
33
  "./min": "./dist/poppy.min.css",
33
34
  "./core.css": "./dist/core.css",
34
35
  "./components/*": "./dist/components/*",
35
- "./package.json": "./package.json"
36
+ "./package.json": "./package.json",
37
+ "./CHANGELOG.md": "./CHANGELOG.md"
36
38
  },
37
39
  "scripts": {
38
40
  "dev": "vite",