@ewanc26/ui 0.1.8 → 0.1.9
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 +2 -54
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,64 +1,12 @@
|
|
|
1
1
|
# @ewanc26/ui
|
|
2
2
|
|
|
3
|
-
Svelte UI component library
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
3
|
+
Svelte UI component library — layout components, cards, UI primitives, SEO helpers, stores, and a multi-theme configuration system.
|
|
6
4
|
|
|
7
5
|
```bash
|
|
8
6
|
pnpm add @ewanc26/ui
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## What's Exported
|
|
14
|
-
|
|
15
|
-
### Components
|
|
16
|
-
|
|
17
|
-
| Group | Components |
|
|
18
|
-
|-------|------------|
|
|
19
|
-
| Layout toggles | `ThemeToggle`, `WolfToggle` |
|
|
20
|
-
| Layout main | `DynamicLinks`, `ScrollToTop` |
|
|
21
|
-
| Cards | `ProfileCard`, `PostCard`, `BlueskyPostCard`, `LinkCard`, `MusicStatusCard`, `KibunStatusCard`, `TangledRepoCard` |
|
|
22
|
-
| UI primitives | `Card`, `InternalCard`, `Dropdown`, `Pagination`, `SearchBar`, `Tabs`, `PostsGroupedView`, `DocumentCard`, `BlogPostCard` |
|
|
23
|
-
| SEO | `MetaTags` |
|
|
24
|
-
|
|
25
|
-
### Stores
|
|
26
|
-
|
|
27
|
-
| Store | Type | Description |
|
|
28
|
-
|-------|------|-------------|
|
|
29
|
-
| `wolfMode` | `Writable<boolean>` | Wolf mode text transformation |
|
|
30
|
-
| `colorTheme` | `Writable<ColorTheme>` | Active colour theme |
|
|
31
|
-
| `colorThemeDropdownOpen` | `Writable<boolean>` | Theme picker open state |
|
|
32
|
-
| `happyMacStore` | `Writable<boolean>` | Happy Mac easter egg |
|
|
33
|
-
|
|
34
|
-
### Theme Configuration
|
|
35
|
-
|
|
36
|
-
12 themes across four categories (neutral, warm, cool, vibrant) using OKLCH colour values. Default: `slate`.
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
import { THEMES, DEFAULT_THEME, getTheme, getThemesByCategory, CATEGORY_LABELS } from '@ewanc26/ui';
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Helpers
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { getPostBadges, getBadgeClasses } from '@ewanc26/ui';
|
|
46
|
-
import { filterPosts, groupPostsByDate, getSortedMonths, getSortedYears, getAllTags } from '@ewanc26/ui';
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Types
|
|
50
|
-
|
|
51
|
-
```typescript
|
|
52
|
-
import type { SiteMetadata, NavItem, ColorTheme, ThemeDefinition, PostBadge, MonthData, GroupedPosts } from '@ewanc26/ui';
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Build
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
pnpm build # svelte-package
|
|
59
|
-
pnpm dev # svelte-package --watch
|
|
60
|
-
pnpm check # svelte-check
|
|
61
|
-
```
|
|
9
|
+
Full documentation at **[docs.ewancroft.uk](https://docs.ewancroft.uk/projects/ui)**.
|
|
62
10
|
|
|
63
11
|
## Licence
|
|
64
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ewanc26/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Svelte UI component library extracted from ewancroft.uk — pluggable layout, UI primitives, stores, and SEO components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"dist",
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "svelte-package -i src/lib -o dist",
|
|
29
|
-
"dev": "svelte-package -i src/lib -o dist --watch",
|
|
30
|
-
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
31
|
-
},
|
|
32
27
|
"peerDependencies": {
|
|
33
28
|
"@sveltejs/kit": ">=2.8.3",
|
|
34
29
|
"svelte": ">=5.0.0",
|
|
35
30
|
"tailwindcss": ">=4.0.0"
|
|
36
31
|
},
|
|
37
32
|
"dependencies": {
|
|
38
|
-
"@lucide/svelte": "^0.
|
|
33
|
+
"@lucide/svelte": "^0.577.0"
|
|
39
34
|
},
|
|
40
35
|
"optionalDependencies": {
|
|
41
36
|
"@ewanc26/atproto": ">=0.2.2"
|
|
42
37
|
},
|
|
43
38
|
"devDependencies": {
|
|
44
|
-
"@sveltejs/kit": "^2.
|
|
39
|
+
"@sveltejs/kit": "^2.55.0",
|
|
45
40
|
"@sveltejs/package": "^2.3.10",
|
|
46
41
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
47
|
-
"svelte": "^5.
|
|
48
|
-
"svelte-check": "^4.
|
|
42
|
+
"svelte": "^5.53.11",
|
|
43
|
+
"svelte-check": "^4.4.5",
|
|
49
44
|
"typescript": "^5.9.3"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "svelte-package -i src/lib -o dist",
|
|
48
|
+
"dev": "svelte-package -i src/lib -o dist --watch",
|
|
49
|
+
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|