@moonwitness/ui 0.0.0-stage → 0.1.0
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 +272 -2
- package/package.json +50 -4
- package/src/components.d.ts +588 -0
- package/src/components.js +2044 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +13 -0
- package/src/skins.d.ts +4 -0
- package/src/skins.js +20 -0
- package/src/styles.css +587 -0
- package/src/tailwind.css +24 -0
- package/src/theme.d.ts +71 -0
- package/src/theme.js +257 -0
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
export { skins, skinIds } from './skins.js';
|
|
4
|
+
export {
|
|
5
|
+
ThemeProvider,
|
|
6
|
+
ThemeScript,
|
|
7
|
+
getThemeInitScript,
|
|
8
|
+
useTheme,
|
|
9
|
+
resolveTheme,
|
|
10
|
+
normalizePreferences,
|
|
11
|
+
getThemeAttributes,
|
|
12
|
+
} from './theme.js';
|
|
13
|
+
export * from './components.js';
|
package/src/skins.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type SkinId = 'moonpunk' | 'moonriot' | 'moonzine' | 'moonhalftone' | 'moonglitch' | 'moonsmash' | 'moonink' | 'mooncrash' | 'moonpanel' | 'moonscrawl' | 'moonraw' | 'moonchrome' | 'classic' | 'moonquest' | 'moonledger';
|
|
2
|
+
export interface Skin { readonly id: SkinId; readonly name: string; readonly description: string }
|
|
3
|
+
export const skins: readonly Skin[];
|
|
4
|
+
export const skinIds: readonly SkinId[];
|
package/src/skins.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The stable Moonframe skin catalog. Appearance is a separate preference. */
|
|
2
|
+
export const skins = Object.freeze([
|
|
3
|
+
{ id: 'moonpunk', name: 'Moonpunk', description: 'Acid-lime ink slabs, offset shadows and a command rail.' },
|
|
4
|
+
{ id: 'moonriot', name: 'Moonriot', description: 'Angular editorial panels, signal red and split navigation.' },
|
|
5
|
+
{ id: 'moonzine', name: 'Moonzine', description: 'An independent magazine of paper layers and editorial type.' },
|
|
6
|
+
{ id: 'moonhalftone', name: 'Moonhalftone', description: 'Monochrome manga pacing, screened gutters and ink captions.' },
|
|
7
|
+
{ id: 'moonglitch', name: 'Moonglitch', description: 'A quiet telemetry console with technical rules and monospace data.' },
|
|
8
|
+
{ id: 'moonsmash', name: 'Moonsmash', description: 'Oversized focal typography and radial graphic impact.' },
|
|
9
|
+
{ id: 'moonink', name: 'Moonink', description: 'Expressive ink margins around a calm reading column.' },
|
|
10
|
+
{ id: 'mooncrash', name: 'Mooncrash', description: 'Industrial equipment plates, mechanical borders and numbered zones.' },
|
|
11
|
+
{ id: 'moonpanel', name: 'Moonpanel', description: 'A strict comic grid with caption bars and rectangular panels.' },
|
|
12
|
+
{ id: 'moonscrawl', name: 'Moonscrawl', description: 'A notebook workspace with ruled margins and sketch contours.' },
|
|
13
|
+
{ id: 'moonraw', name: 'Moonraw', description: 'Exposed structure, plain rectangles and content-first restraint.' },
|
|
14
|
+
{ id: 'moonchrome', name: 'Moonchrome', description: 'Metallic contours and luminous rims around quiet surfaces.' },
|
|
15
|
+
{ id: 'classic', name: 'Classic', description: 'Balanced rounded controls, soft elevation and familiar navigation.' },
|
|
16
|
+
{ id: 'moonquest', name: 'Moonquest', description: 'An adventure journal with framed records and inventory navigation.' },
|
|
17
|
+
{ id: 'moonledger', name: 'Moonledger', description: 'A precise enterprise workbench for dense records and filters.' },
|
|
18
|
+
].map(Object.freeze));
|
|
19
|
+
|
|
20
|
+
export const skinIds = Object.freeze(skins.map(({ id }) => id));
|