Compare commits

..

No commits in common. "c5a38cf4aca476990927e90655d5dde2975d4778" and "a5d288c55823e4436f5a492ddf7f59fecdd14935" have entirely different histories.

7 changed files with 699 additions and 638 deletions

View File

@ -1,7 +1,7 @@
# Preact Components 🧵 # Holllo Preact Components 🧵
> **Holllo's Preact component library.** > **Holllo's Preact component library.**
## License ## License
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Holllo/preact-components/src/branch/main/LICENSE) for more information. Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Holllo/holllo-preact-components/src/branch/main/LICENSE) for more information.

View File

@ -1,12 +1,12 @@
{ {
"name": "@holllo/preact-components", "name": "@holllo/gram",
"description": "Holllo's Preact component library.", "description": "Opinionated component library using HTM & Preact.",
"license": "AGPL-3.0-or-later", "license": "GPL-3.0-or-later",
"version": "0.2.2", "version": "0.2.1",
"author": "Holllo <helllo@holllo.org>", "author": "Holllo <helllo@holllo.cc>",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.bauke.xyz/Holllo/preact-components" "url": "https://github.com/Holllo/gram"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
@ -15,15 +15,15 @@
"test:snapshots": "ava --update-snapshots" "test:snapshots": "ava --update-snapshots"
}, },
"devDependencies": { "devDependencies": {
"@happy-dom/global-registrator": "^6.0.4", "@happy-dom/global-registrator": "^2.47.3",
"ava": "^4.3.3", "ava": "^4.0.1",
"c8": "^7.12.0", "c8": "^7.11.0",
"htm": "^3.1.1", "htm": "^3.1.0",
"preact": "^10.11.0", "preact": "^10.6.6",
"preact-render-to-string": "^5.2.4", "preact-render-to-string": "^5.1.20",
"ts-node": "^10.9.1", "ts-node": "^10.6.0",
"typescript": "^4.8.4", "typescript": "^4.6.2",
"xo": "^0.52.3" "xo": "^0.48.0"
}, },
"peerDependencies": { "peerDependencies": {
"htm": "3.x", "htm": "3.x",
@ -65,10 +65,6 @@
}, },
"xo": { "xo": {
"prettier": true, "prettier": true,
"rules": {
"@typescript-eslint/consistent-type-imports": "off",
"n/file-extension-in-import": "off"
},
"space": true "space": true
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact'; import {render} from 'preact';
import {ConfirmButton, ConfirmButtonProps} from '../../source/index.js'; import {ConfirmButton, ConfirmButtonProps} from '../../source/gram.js';
import {sleep} from '../utilities.js'; import {sleep} from '../utilities.js';
test.before(() => { test.before(() => {

View File

@ -3,7 +3,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact'; import {render} from 'preact';
import {FeedbackButton, FeedbackButtonProps} from '../../source/index.js'; import {FeedbackButton, FeedbackButtonProps} from '../../source/gram.js';
import {sleep} from '../utilities.js'; import {sleep} from '../utilities.js';
test.before(() => { test.before(() => {

View File

@ -2,7 +2,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact-render-to-string'; import {render} from 'preact-render-to-string';
import {PrivacyLink} from '../../source/index.js'; import {PrivacyLink} from '../../source/gram.js';
test('PrivacyLink', (t) => { test('PrivacyLink', (t) => {
t.snapshot(render(html`<${PrivacyLink} />`), 'Empty'); t.snapshot(render(html`<${PrivacyLink} />`), 'Empty');