@public-ui/preact 4.0.0-alpha.0 → 4.0.0-alpha.2

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # KoliBri - Preact-Adapter
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@public-ui/preact)](https://www.npmjs.com/package/@public-ui/preact)
4
+ [![license](https://img.shields.io/npm/l/@public-ui/preact)](https://github.com/public-ui/kolibri/blob/main/LICENSE)
5
+ [![downloads](https://img.shields.io/npm/dt/@public-ui/preact)](https://www.npmjs.com/package/@public-ui/preact)
6
+ [![issues](https://img.shields.io/github/issues/public-ui/kolibri)](https://github.com/public-ui/kolibri/issues)
7
+ [![pull requests](https://img.shields.io/github/issues-pr/public-ui/kolibri)](https://github.com/public-ui/kolibri/pulls)
8
+ [![size](https://img.shields.io/bundlephobia/min/@public-ui/preact)](https://bundlephobia.com/result?p=@public-ui/preact)
9
+ ![contributors](https://img.shields.io/github/contributors/public-ui/kolibri)
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
  });
@@ -0,0 +1 @@
1
+ export * from '@public-ui/react';
@@ -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.0",
3
+ "version": "4.0.0-alpha.2",
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.6.3",
54
- "unbuild": "1.2.1",
55
- "@public-ui/components": "4.0.0-alpha.0"
50
+ "typescript": "5.9.2",
51
+ "unbuild": "3.6.1",
52
+ "@public-ui/components": "4.0.0-alpha.2"
56
53
  },
57
54
  "peerDependencies": {
58
- "preact": ">=10.24.3"
55
+ "preact": ">=10.27.2",
56
+ "@public-ui/react": "4.0.0-alpha.2"
59
57
  },
60
58
  "sideEffects": false,
61
59
  "type": "module",