@lilydesignsystem/react-headless 0.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.
- package/CHANGELOG.md +82 -0
- package/LICENSE.md +64 -0
- package/dist/index.d.ts +6040 -0
- package/dist/index.js +13313 -0
- package/index.md +1161 -0
- package/package.json +77 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Changelog — @lilydesignsystem/react-headless
|
|
2
|
+
|
|
3
|
+
The format is loosely based on [Keep a Changelog](https://keepachangelog.com/)
|
|
4
|
+
and the package follows [Semantic Versioning](https://semver.org/).
|
|
5
|
+
|
|
6
|
+
## 0.1.0 — 2026-09-16
|
|
7
|
+
|
|
8
|
+
**Package renamed: `lily-design-system-react-headless` → `@lilydesignsystem/react-headless`.** npm scoped packages
|
|
9
|
+
are registry-distinct from their unscoped counterparts, so this is a
|
|
10
|
+
new package with no publish history of its own — version reset to
|
|
11
|
+
`0.1.0` per this project's established rename precedent (the July
|
|
12
|
+
2026 `*-select` → `*-picker` rename). No code or behaviour change
|
|
13
|
+
relative to `lily-design-system-react-headless`'s last published version (`0.1.0`);
|
|
14
|
+
its full changelog continues below, now read as history prior to the
|
|
15
|
+
rescope. The old unscoped name is deprecated on the registry (never
|
|
16
|
+
unpublished), pointing consumers here.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 0.3.1 — 2026-08-26
|
|
21
|
+
|
|
22
|
+
Metadata-only patch; no code change. Ships the corrected package
|
|
23
|
+
metadata to the registry:
|
|
24
|
+
|
|
25
|
+
- `license` is the project SPDX menu (`MIT OR Apache-2.0 OR
|
|
26
|
+
GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause`), replacing the
|
|
27
|
+
single-license field that contradicted the repository's LICENSE.md.
|
|
28
|
+
- `repository`, `homepage`, and `bugs` point at the LilyDesignSystem
|
|
29
|
+
organisation and the documentation site.
|
|
30
|
+
The previous URLs pointed at `github.com/lily/…`, an unrelated
|
|
31
|
+
account — the repository link on the npm page led to a stranger's 404.
|
|
32
|
+
- `description` says "Targets WCAG 2.2 AAA." — the previous
|
|
33
|
+
"WCAG 2.2 AAA compliant" claimed a conformance no audit supports.
|
|
34
|
+
- `author` names the maintainer rather than a bare email address.
|
|
35
|
+
|
|
36
|
+
Also as of this release, 0.2.0 is marked deprecated on npm (it
|
|
37
|
+
declared a `main` that was never built; see 0.3.0's notes).
|
|
38
|
+
|
|
39
|
+
## 0.3.0 — 2026-08-23
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **The package had no entry point.** `package.json` declared
|
|
44
|
+
`"main": "index.js"` and no such file was ever built or shipped, so
|
|
45
|
+
every `import … from "@lilydesignsystem/react-headless"` failed at
|
|
46
|
+
resolution. 0.2.0 is broken on npm for this reason. The package now
|
|
47
|
+
builds a real `dist/` with tsup and points `main`/`types`/
|
|
48
|
+
`exports` at it.
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- A generated barrel (`index.ts`, written by `build.mjs`) exporting all
|
|
53
|
+
491 components in the catalog. It is generated rather than
|
|
54
|
+
hand-maintained because the catalog grows, and a hand-written list
|
|
55
|
+
silently omits new components.
|
|
56
|
+
- `build.mjs` — generates the barrel, builds `dist/`, and fails loudly if
|
|
57
|
+
the bundle comes out empty.
|
|
58
|
+
- A `files` allowlist.
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- **Tarball contents.** Previously the package shipped its entire working
|
|
63
|
+
tree — sources, tests, Storybook stories, docs and config. It now ships
|
|
64
|
+
only `dist/` plus the docs.
|
|
65
|
+
- `peerDependencies` now declares the framework it needs.
|
|
66
|
+
- The description said "236 components"; the catalog has 491.
|
|
67
|
+
|
|
68
|
+
### Also fixed (surfaced by building declarations for the first time)
|
|
69
|
+
|
|
70
|
+
Nine type errors that no build had ever exercised:
|
|
71
|
+
|
|
72
|
+
- Eight components destructured `children` and/or `label` without
|
|
73
|
+
declaring either on their props interface, so both resolved through the
|
|
74
|
+
`[key: string]: unknown` index signature: `ContentsList`, `ContentsNav`,
|
|
75
|
+
`EmojiCharacterPicker`, `Figure`, `FileManager`, `QrCodeImage`,
|
|
76
|
+
`Sonner`, `Sparkline`. The runtime behaviour was already correct — the
|
|
77
|
+
types simply did not describe it, and `aria-label={label}` typed as
|
|
78
|
+
`unknown` blocked declaration emit.
|
|
79
|
+
- `TreeList` held its root ref as `useRef<HTMLElement>` while attaching it
|
|
80
|
+
to an `<ol>`, which wants `Ref<HTMLOListElement>`.
|
|
81
|
+
|
|
82
|
+
All 2665 tests pass.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<!-- Synced from the canonical repository by bin/sync-special-files.
|
|
2
|
+
Do not edit here; edit the root copy and re-run the script.
|
|
3
|
+
Canonical: https://github.com/LilyDesignSystem/lily-design-system/blob/main/LICENSE.md -->
|
|
4
|
+
|
|
5
|
+
# License
|
|
6
|
+
|
|
7
|
+
Lily Design System™ is free open source software.
|
|
8
|
+
|
|
9
|
+
License is any of these, at your option, or contact us for custom license options.
|
|
10
|
+
|
|
11
|
+
* [MIT](https://opensource.org/license/mit) ([SPDX: MIT](https://spdx.org/licenses/MIT.html))
|
|
12
|
+
|
|
13
|
+
* [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([SPDX: Apache-2.0](https://spdx.org/licenses/Apache-2.0.html))
|
|
14
|
+
|
|
15
|
+
* [GNU General Public License v2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html) ([SPDX: GPL-2.0-only](https://spdx.org/licenses/GPL-2.0-only.html))
|
|
16
|
+
|
|
17
|
+
* [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) ([SPDX: GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html))
|
|
18
|
+
|
|
19
|
+
* [BSD 3-Clause License](https://opensource.org/license/bsd-3-clause) ([SPDX: BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html))
|
|
20
|
+
|
|
21
|
+
## SPDX
|
|
22
|
+
|
|
23
|
+
The machine-readable expression for the choice above is:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
SPDX-License-Identifier: MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Every package manifest in this repository should carry that expression, or a
|
|
30
|
+
single identifier from the list where the packaging format does not accept a
|
|
31
|
+
disjunction. You do not need permission to pick one: choose whichever member of
|
|
32
|
+
the list suits your project and comply with that one.
|
|
33
|
+
|
|
34
|
+
This applies to the whole repository — the component catalog, the seven headless
|
|
35
|
+
libraries, the seven example applications, the seven helper catalogs, the
|
|
36
|
+
`themes/` stylesheets, the `bin/` tooling, and the documentation.
|
|
37
|
+
|
|
38
|
+
## Scope note
|
|
39
|
+
|
|
40
|
+
This file supersedes an earlier `CC BY-NC-SA` notice. That notice was a content
|
|
41
|
+
license with a non-commercial clause, it was not an open-source license, and it
|
|
42
|
+
contradicted both the specification and the published packages. It should not be
|
|
43
|
+
relied on. If you obtained Lily under it and that raises a question for you,
|
|
44
|
+
contact <joel@joelparkerhenderson.com>.
|
|
45
|
+
|
|
46
|
+
## Trademarks
|
|
47
|
+
|
|
48
|
+
Lily™ and Lily Design System™ are trademarks. The trademarks are distinct from
|
|
49
|
+
the software license: a trademark claim (™) asserts use of the marks and is
|
|
50
|
+
independent of the licenses above. A license to the software is not a license to
|
|
51
|
+
the marks.
|
|
52
|
+
|
|
53
|
+
You may say your project uses Lily, is built with Lily, or is compatible with
|
|
54
|
+
Lily. Please do not use the marks as the name of your fork or product, or in a
|
|
55
|
+
way that suggests affiliation or endorsement. For any use beyond that, contact
|
|
56
|
+
<joel@joelparkerhenderson.com>.
|
|
57
|
+
|
|
58
|
+
## Third-party references
|
|
59
|
+
|
|
60
|
+
Lily's example applications and `themes/` stylesheets take visual reference from
|
|
61
|
+
public-sector design systems including NHS UK, GOV.UK, and USWDS. Lily is not
|
|
62
|
+
affiliated with, endorsed by, or connected to any of those organisations. Their
|
|
63
|
+
names and marks belong to them, and this license grants nothing in respect of
|
|
64
|
+
them.
|