@theh0n/ui 1.1.0 → 1.1.3

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.
@@ -0,0 +1,5 @@
1
+ import { DeepPartial, H0NTheme } from '../types';
2
+ export declare const defaultTheme: H0NTheme;
3
+ export declare function resolveTheme(overrides?: DeepPartial<H0NTheme>): H0NTheme;
4
+ export declare function applyTheme(theme: H0NTheme): void;
5
+ export declare function mapThemeToCssVariables(theme: H0NTheme): Record<string, string>;
@@ -0,0 +1,43 @@
1
+ import { Component } from 'vue';
2
+ export type DeepPartial<T> = {
3
+ [K in keyof T]?: T[K] extends Record<string, any> ? DeepPartial<T[K]> : T[K];
4
+ };
5
+ export interface H0nColorPalette {
6
+ primary: string;
7
+ secondary: string;
8
+ tertiary: string;
9
+ success: string;
10
+ warning: string;
11
+ danger: string;
12
+ text: string;
13
+ description: string;
14
+ }
15
+ export interface H0nBorderRadius {
16
+ sm: string;
17
+ md: string;
18
+ lg: string;
19
+ }
20
+ export interface H0NTheme {
21
+ colors: H0nColorPalette;
22
+ borderRadius: H0nBorderRadius;
23
+ fontFamily: string;
24
+ focusRingColor: string;
25
+ }
26
+ export interface H0NPluginOptions {
27
+ /**
28
+ * Toggle automatic global component registration.
29
+ */
30
+ autoRegisterComponents?: boolean;
31
+ /**
32
+ * Theme overrides that will extend the default palette.
33
+ */
34
+ theme?: DeepPartial<H0NTheme>;
35
+ }
36
+ export interface ResolvedH0nOptions {
37
+ autoRegisterComponents: boolean;
38
+ theme: H0NTheme;
39
+ }
40
+ export interface ComponentRegistryItem {
41
+ name: string;
42
+ component: Component;
43
+ }
@@ -0,0 +1 @@
1
+ export declare function createId(): string;
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@theh0n/ui",
3
- "version": "1.1.0",
4
- "description": "",
3
+ "version": "1.1.3",
4
+ "description": "H0N UI",
5
5
  "author": "blockh0n",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
- "Vue",
9
- "H0N"
8
+ "Vue"
10
9
  ],
11
10
  "files": [
12
11
  "dist",