solid-baseui 0.1.0-alpha.2 → 0.1.0-alpha.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.
- package/CHANGELOG.md +24 -0
- package/README.md +18 -54
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Distribution
|
|
6
|
+
|
|
7
|
+
- Publish the current WIP release under npm's `latest` tag so the default
|
|
8
|
+
`solid-baseui` installation resolves to alpha.4.
|
|
9
|
+
- Update the README installation command and release status accordingly.
|
|
10
|
+
|
|
11
|
+
No runtime, API, or dependency changes from alpha.3.
|
|
12
|
+
|
|
13
|
+
## 0.1.0-alpha.3
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
- Replace the README warning banner with "WIP: An unofficial port of Base UI for
|
|
18
|
+
SolidJS" and use the same wording for the npm package description.
|
|
19
|
+
- Refresh the Status section with the current release, all 38 implemented
|
|
20
|
+
component families, verification results, and development focus.
|
|
21
|
+
- Simplify the alpha installation guidance.
|
|
22
|
+
- Keep alpha.2 event-composition migration details in the changelog rather than
|
|
23
|
+
the README.
|
|
24
|
+
|
|
25
|
+
No runtime, API, or dependency changes from alpha.2.
|
|
26
|
+
|
|
3
27
|
## 0.1.0-alpha.2
|
|
4
28
|
|
|
5
29
|
### Breaking Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# solid-baseui
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
> **Work in progress — alpha, unannounced, and not stable.**
|
|
5
|
-
> Published to reserve the name and to be used in the author's own projects.
|
|
6
|
-
> Expect breaking changes without notice, incomplete verification, and no
|
|
7
|
-
> support. Do not adopt this in production.
|
|
3
|
+
> WIP: An unofficial port of Base UI for SolidJS
|
|
8
4
|
|
|
9
5
|
A native Solid 2 port of [Base UI](https://base-ui.com/). It preserves Base UI's
|
|
10
6
|
observable behavior and accessibility contracts while replacing React-specific
|
|
@@ -15,11 +11,10 @@ maintained by MUI or the Base UI team, nor by the SolidJS core team.
|
|
|
15
11
|
|
|
16
12
|
## Install
|
|
17
13
|
|
|
18
|
-
Install
|
|
19
|
-
There is no stable release:
|
|
14
|
+
Install the current release:
|
|
20
15
|
|
|
21
16
|
```bash
|
|
22
|
-
bun add solid-baseui
|
|
17
|
+
bun add solid-baseui
|
|
23
18
|
```
|
|
24
19
|
|
|
25
20
|
Peer dependencies:
|
|
@@ -166,54 +161,23 @@ root, `solid-baseui/use-render`, and `solid-baseui/types`.
|
|
|
166
161
|
|
|
167
162
|
See [CHANGELOG.md](./CHANGELOG.md) for this alpha's changes.
|
|
168
163
|
|
|
169
|
-
## Migrating To 0.1.0-alpha.2
|
|
170
|
-
|
|
171
|
-
Version `0.1.0-alpha.2` changes the internal event-composition API to direct handlers:
|
|
172
|
-
|
|
173
|
-
```tsx
|
|
174
|
-
import type { JSX } from "@solidjs/web";
|
|
175
|
-
import { omit } from "solid-js";
|
|
176
|
-
import {
|
|
177
|
-
composeEventHandlers,
|
|
178
|
-
liveEventHandler,
|
|
179
|
-
} from "solid-baseui/internals/composeEventHandlers";
|
|
180
|
-
|
|
181
|
-
function CustomButton(props: JSX.ButtonHTMLAttributes<HTMLButtonElement>) {
|
|
182
|
-
const others = omit(props, "onClick");
|
|
183
|
-
const onClick = composeEventHandlers<HTMLButtonElement, MouseEvent>(
|
|
184
|
-
liveEventHandler(() => props.onClick),
|
|
185
|
-
(event) => event.preventBaseUIHandler(),
|
|
186
|
-
);
|
|
187
|
-
return <button type="button" onClick={onClick} {...others} />;
|
|
188
|
-
}
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Fixed handlers need no outer function. Use `liveEventHandler` only when a callback
|
|
192
|
-
prop or handler selection can change; it creates a deferred source for the composer,
|
|
193
|
-
not a standalone DOM handler. Sources resolve in order at event time, including
|
|
194
|
-
Solid's `[handler, data]` tuples. Base UI cancellation stops later handlers and
|
|
195
|
-
source resolution; native `preventDefault` has its separate meaning.
|
|
196
|
-
|
|
197
|
-
This is a breaking change from alpha.1. Bare `() => handler` arguments must be
|
|
198
|
-
converted to direct handlers or explicit live sources. Handler return values are
|
|
199
|
-
ignored, so an old accessor can still typecheck without doing the intended work.
|
|
200
|
-
|
|
201
164
|
## Status
|
|
202
165
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
[`BASE_UI_PORTING_INVENTORY.md`](./BASE_UI_PORTING_INVENTORY.md)
|
|
166
|
+
| Area | Status |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| Current release | `0.1.0-alpha.4`, available from `solid-baseui` |
|
|
169
|
+
| Components | All 38 component families implemented and exported |
|
|
170
|
+
| Framework | Native Solid 2, using the RC.6 runtime and compiler |
|
|
171
|
+
| Verification | Typecheck, lint, unit, SSR, hydration, and Chromium/Firefox/WebKit suites passing |
|
|
172
|
+
| Current focus | Stabilization, performance, and real-application integrations |
|
|
173
|
+
|
|
174
|
+
The latest release includes the completed Tooltip, Combobox, Autocomplete, and
|
|
175
|
+
Drawer verification work. The optional `unstable-use-media-query` utility remains
|
|
176
|
+
outside the 38-component scope and is not implemented.
|
|
177
|
+
|
|
178
|
+
See [`knowledge/README.md`](./knowledge/README.md) for verification scope and
|
|
179
|
+
remaining work, and [`BASE_UI_PORTING_INVENTORY.md`](./BASE_UI_PORTING_INVENTORY.md)
|
|
180
|
+
for the upstream porting inventory.
|
|
217
181
|
|
|
218
182
|
## Solid API decisions
|
|
219
183
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-baseui",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
|
+
"description": "WIP: An unofficial port of Base UI for SolidJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/lib/client/index.js",
|
|
7
7
|
"types": "./dist/lib/types/index.d.ts",
|