@solidrt/components 0.0.22 → 0.0.24
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/AGENTS.md +2 -2
- package/README.md +1 -3
- package/package.json +2 -2
- package/src/scroll-view.tsx +1 -1
- package/src/window.tsx +0 -4
package/AGENTS.md
CHANGED
|
@@ -28,7 +28,7 @@ Most components group props into two objects, plus top-level event handlers:
|
|
|
28
28
|
|
|
29
29
|
- `Window` - root surface; renders a core `<window>`, so `render()` accepts it.
|
|
30
30
|
Applies `layout` and `style.backgroundColor` only (a window cannot be
|
|
31
|
-
transformed or bordered). Also: `title`, `fullscreen
|
|
31
|
+
transformed or bordered). Also: `title`, `fullscreen`.
|
|
32
32
|
- `View` - general box; draws a background/border when the matching `style`
|
|
33
33
|
props are set.
|
|
34
34
|
- `Text` - text in a layout box; font fields go in `layout`, `color` in `style`.
|
|
@@ -37,7 +37,7 @@ Most components group props into two objects, plus top-level event handlers:
|
|
|
37
37
|
uncontrolled, plus `placeholder`, `maxLength`, `autoFocus`, `disabled`.
|
|
38
38
|
- `ScrollView` - scrollable region; vertical by default, `horizontal` to flip.
|
|
39
39
|
Wheel + drag, no momentum yet. Backed by `createScroll` from
|
|
40
|
-
`@solidrt/core
|
|
40
|
+
`@solidrt/core` (headless offset+clamp geometry).
|
|
41
41
|
- `Pressable` - pressable box; `onPress` on a primary press released inside,
|
|
42
42
|
`disabled` opts out. `children`/`style` can be functions of `{ pressed,
|
|
43
43
|
hovered }`. No pointer capture: a drag out cancels via onPointerLeave.
|
package/README.md
CHANGED
|
@@ -109,8 +109,6 @@ function App() {
|
|
|
109
109
|
| ------------ | ------------- | ------- | ------------------------------------ |
|
|
110
110
|
| `title` | `string` | - | Window title. |
|
|
111
111
|
| `fullscreen` | `boolean` | - | Open fullscreen. |
|
|
112
|
-
| `vsync` | `boolean` | - | Enable vsync. |
|
|
113
|
-
| `fps` | `boolean` | - | Show an FPS counter. |
|
|
114
112
|
| `layout` | `LayoutProps` | - | Layout properties. |
|
|
115
113
|
| `style` | `StyleProps` | - | Only `backgroundColor` is applied. |
|
|
116
114
|
| `children` | `any` | - | Content. |
|
|
@@ -291,7 +289,7 @@ Accepts all pointer event props, plus:
|
|
|
291
289
|
| `ref` | `(node: { id: number }) => void` | Reference to the outer box. |
|
|
292
290
|
| `children` | `any` | Scrollable content. |
|
|
293
291
|
|
|
294
|
-
The underlying geometry primitive `createScroll` is available from `@solidrt/core
|
|
292
|
+
The underlying geometry primitive `createScroll` is available from `@solidrt/core` for building custom scrollers.
|
|
295
293
|
|
|
296
294
|
### Pressable
|
|
297
295
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidrt/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Antoine van Wel",
|
|
6
6
|
"type": "module",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@solidjs/signals": "2.0.0-beta.15",
|
|
21
|
-
"@solidrt/core": "0.0.
|
|
21
|
+
"@solidrt/core": "0.0.24"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/scroll-view.tsx
CHANGED
package/src/window.tsx
CHANGED
|
@@ -5,8 +5,6 @@ export interface WindowProps extends PointerProps {
|
|
|
5
5
|
children?: any
|
|
6
6
|
title?: string
|
|
7
7
|
fullscreen?: boolean
|
|
8
|
-
vsync?: boolean
|
|
9
|
-
fps?: boolean
|
|
10
8
|
layout?: LayoutProps
|
|
11
9
|
style?: StyleProps
|
|
12
10
|
}
|
|
@@ -19,8 +17,6 @@ export function Window(props: WindowProps) {
|
|
|
19
17
|
{...props.layout}
|
|
20
18
|
title={props.title}
|
|
21
19
|
fullscreen={props.fullscreen}
|
|
22
|
-
vsync={props.vsync}
|
|
23
|
-
fps={props.fps}
|
|
24
20
|
onPointerEnter={props.onPointerEnter}
|
|
25
21
|
onPointerLeave={props.onPointerLeave}
|
|
26
22
|
onPointerDown={props.onPointerDown}
|