@public-ui/preact 4.0.0-alpha.0 → 4.0.0-alpha.10
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/README.md +24 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/package.json +6 -8
package/README.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# KoliBri - Preact-Adapter
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@public-ui/preact)
|
|
4
|
+
[](https://github.com/public-ui/kolibri/blob/main/LICENSE)
|
|
5
|
+
[](https://www.npmjs.com/package/@public-ui/preact)
|
|
6
|
+
[](https://github.com/public-ui/kolibri/issues)
|
|
7
|
+
[](https://github.com/public-ui/kolibri/pulls)
|
|
8
|
+
[](https://bundlephobia.com/result?p=@public-ui/preact)
|
|
9
|
+

|
|
10
|
+
|
|
3
11
|
The [Preact](https://github.com/preactjs/preact) adapter is a wrapper around the React adapter. Please refer to the [React adapter documentation](../react/README.md) for more information.
|
|
4
12
|
|
|
5
13
|
⚠️ Preact support is currently considered experimental.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @public-ui/preact
|
|
19
|
+
pnpm add @public-ui/preact
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { h } from 'preact';
|
|
26
|
+
import { KolButton } from '@public-ui/preact';
|
|
27
|
+
|
|
28
|
+
export const App = () => <KolButton _label="Hello World" />;
|
|
29
|
+
```
|
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const react = require('@public-ui/react');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: react['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(react).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
|
|
9
16
|
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@public-ui/react';
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@public-ui/react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/preact",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.10",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -44,18 +44,16 @@
|
|
|
44
44
|
"wcag",
|
|
45
45
|
"preact"
|
|
46
46
|
],
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"@public-ui/react": "4.0.0-alpha.0"
|
|
49
|
-
},
|
|
50
47
|
"devDependencies": {
|
|
51
48
|
"react": "18.3.1",
|
|
52
49
|
"react-dom": "18.3.1",
|
|
53
|
-
"typescript": "5.
|
|
54
|
-
"unbuild": "
|
|
55
|
-
"@public-ui/components": "4.0.0-alpha.
|
|
50
|
+
"typescript": "5.9.3",
|
|
51
|
+
"unbuild": "3.6.1",
|
|
52
|
+
"@public-ui/components": "4.0.0-alpha.10"
|
|
56
53
|
},
|
|
57
54
|
"peerDependencies": {
|
|
58
|
-
"preact": ">=10.
|
|
55
|
+
"preact": ">=10.28.0",
|
|
56
|
+
"@public-ui/react": "4.0.0-alpha.10"
|
|
59
57
|
},
|
|
60
58
|
"sideEffects": false,
|
|
61
59
|
"type": "module",
|