nightshade 1.0.0 → 1.0.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.
@@ -0,0 +1,157 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ };
5
+ title: {
6
+ type: StringConstructor;
7
+ };
8
+ icon: {
9
+ type: StringConstructor;
10
+ };
11
+ iconPos: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ kind: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ hoverKind: {
20
+ type: StringConstructor;
21
+ };
22
+ customTag: {
23
+ type: StringConstructor;
24
+ };
25
+ href: {
26
+ type: StringConstructor;
27
+ };
28
+ debounce: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ disabled: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ size: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ square: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ block: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ round: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ outline: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ pseudoFocus: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ pseudoHover: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ pseudoActive: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>, {}, {
69
+ hover: boolean;
70
+ blocked: boolean;
71
+ }, {
72
+ tagName(): string;
73
+ actualKind(): string;
74
+ }, {
75
+ onUiActivate(): void;
76
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
77
+ label: {
78
+ type: StringConstructor;
79
+ };
80
+ title: {
81
+ type: StringConstructor;
82
+ };
83
+ icon: {
84
+ type: StringConstructor;
85
+ };
86
+ iconPos: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ kind: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ hoverKind: {
95
+ type: StringConstructor;
96
+ };
97
+ customTag: {
98
+ type: StringConstructor;
99
+ };
100
+ href: {
101
+ type: StringConstructor;
102
+ };
103
+ debounce: {
104
+ type: NumberConstructor;
105
+ default: number;
106
+ };
107
+ disabled: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ size: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ square: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ block: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ round: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ outline: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ pseudoFocus: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
135
+ pseudoHover: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ pseudoActive: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ }>> & Readonly<{}>, {
144
+ iconPos: string;
145
+ kind: string;
146
+ debounce: number;
147
+ disabled: boolean;
148
+ size: string;
149
+ square: boolean;
150
+ block: boolean;
151
+ round: boolean;
152
+ outline: boolean;
153
+ pseudoFocus: boolean;
154
+ pseudoHover: boolean;
155
+ pseudoActive: boolean;
156
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
157
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ dir: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ align: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ dir: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ align: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ dir: string;
21
+ align: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ size: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ size: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ size: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -0,0 +1,85 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ dir: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ align: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ anchorRef: {
11
+ type: StringConstructor;
12
+ };
13
+ anchorDir: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ overlayEnabled: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ overlayShown: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ }>, {}, {
26
+ pos: {
27
+ x: number;
28
+ y: number;
29
+ };
30
+ actualDir: string;
31
+ actualAlign: string;
32
+ ready: boolean;
33
+ }, {
34
+ bubbleStyle(): {
35
+ left: string;
36
+ top: string;
37
+ 'pointer-events': string;
38
+ };
39
+ }, {
40
+ hide(): void;
41
+ calcPos(): void;
42
+ calcDirAlign(): void;
43
+ getAnchorEl(): any;
44
+ findRef(component: any, refKey: any): any;
45
+ onResize(): void;
46
+ onWindowKeyDown(event: any): void;
47
+ enableOverlay(): void;
48
+ disableOverlay(): void;
49
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("mouseenter" | "mouseleave" | "hide" | "ready")[], "mouseenter" | "mouseleave" | "hide" | "ready", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
+ dir: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ align: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ anchorRef: {
59
+ type: StringConstructor;
60
+ };
61
+ anchorDir: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ overlayEnabled: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ overlayShown: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ }>> & Readonly<{
74
+ onMouseenter?: ((...args: any[]) => any) | undefined;
75
+ onMouseleave?: ((...args: any[]) => any) | undefined;
76
+ onHide?: ((...args: any[]) => any) | undefined;
77
+ onReady?: ((...args: any[]) => any) | undefined;
78
+ }>, {
79
+ dir: string;
80
+ align: string;
81
+ anchorDir: string;
82
+ overlayEnabled: boolean;
83
+ overlayShown: boolean;
84
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
85
+ export default _default;
@@ -0,0 +1,47 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ tagName: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ align: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ justify: {
11
+ type: StringConstructor;
12
+ };
13
+ gap: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ wrap: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
+ tagName: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ align: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ justify: {
31
+ type: StringConstructor;
32
+ };
33
+ gap: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ wrap: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ }>> & Readonly<{}>, {
42
+ tagName: string;
43
+ align: string;
44
+ gap: string;
45
+ wrap: boolean;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,110 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ tagName: {
3
+ default: string;
4
+ };
5
+ label: {
6
+ type: StringConstructor;
7
+ };
8
+ size: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ fixedHeight: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ round: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ block: {
21
+ type: BooleanConstructor;
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ invalid: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ pseudoFocus: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ pseudoHover: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
+ tagName: {
41
+ default: string;
42
+ };
43
+ label: {
44
+ type: StringConstructor;
45
+ };
46
+ size: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ fixedHeight: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ round: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ block: {
59
+ type: BooleanConstructor;
60
+ };
61
+ disabled: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ invalid: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ pseudoFocus: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ pseudoHover: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ }>> & Readonly<{}>, {
78
+ invalid: boolean;
79
+ disabled: boolean;
80
+ size: string;
81
+ block: boolean;
82
+ round: boolean;
83
+ pseudoFocus: boolean;
84
+ pseudoHover: boolean;
85
+ tagName: string;
86
+ fixedHeight: boolean;
87
+ }, {}, {
88
+ Tab: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
89
+ dir: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ label: {
94
+ type: StringConstructor;
95
+ };
96
+ }>, {}, {}, {
97
+ orientation(): "v" | "h";
98
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
99
+ dir: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ label: {
104
+ type: StringConstructor;
105
+ };
106
+ }>> & Readonly<{}>, {
107
+ dir: string;
108
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
109
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
110
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {
2
+ onInput(ev: any): void;
3
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "update:modelValue")[], "blur" | "focus" | "input" | "update:modelValue", import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ onBlur?: ((...args: any[]) => any) | undefined;
5
+ onFocus?: ((...args: any[]) => any) | undefined;
6
+ onInput?: ((...args: any[]) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
+ }>, {} | {
9
+ [x: string]: any;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {
2
+ effectiveRows(): any;
3
+ }, {
4
+ onInput(ev: any): void;
5
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "update:modelValue")[], "blur" | "focus" | "input" | "update:modelValue", import('vue').PublicProps, Readonly<{}> & Readonly<{
6
+ onBlur?: ((...args: any[]) => any) | undefined;
7
+ onFocus?: ((...args: any[]) => any) | undefined;
8
+ onInput?: ((...args: any[]) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
10
+ }>, {} | {
11
+ [x: string]: any;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ dir: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ };
9
+ }>, {}, {}, {
10
+ orientation(): "v" | "h";
11
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ dir: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ label: {
17
+ type: StringConstructor;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ dir: string;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ dir: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ dir: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ type: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }>> & Readonly<{}>, {
20
+ type: string;
21
+ dir: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
+ export default _default;
@@ -0,0 +1,38 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ tagName: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ align: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ justify: {
11
+ type: StringConstructor;
12
+ };
13
+ gap: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ tagName: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ align: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ justify: {
27
+ type: StringConstructor;
28
+ };
29
+ gap: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ }>> & Readonly<{}>, {
34
+ tagName: string;
35
+ align: string;
36
+ gap: string;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { default as Btn } from './Btn.vue';
2
+ import { default as Bubble } from './Bubble.vue';
3
+ import { default as Circle } from './Circle.vue';
4
+ import { default as ContextPopup } from './ContextPopup.vue';
5
+ import { default as HGroup } from './HGroup.vue';
6
+ import { default as HStack } from './HStack.vue';
7
+ import { default as InputBase } from './InputBase.vue';
8
+ import { default as InputText } from './InputText.vue';
9
+ import { default as InputTextarea } from './InputTextarea.vue';
10
+ import { default as Sizer } from './Sizer.vue';
11
+ import { default as Tab } from './Tab.vue';
12
+ import { default as TabCap } from './TabCap.vue';
13
+ import { default as VGroup } from './VGroup.vue';
14
+ export { Btn, Bubble, Circle, ContextPopup, HGroup, HStack, InputBase, InputText, InputTextarea, Sizer, Tab, TabCap, VGroup, };
@@ -0,0 +1,4 @@
1
+ import * as components from './components/index.js';
2
+ export * from './components/index.js';
3
+ export * from './utils/index.js';
4
+ export { components, };
@@ -0,0 +1,13 @@
1
+ export type ThemeToken = 'light' | 'dark' | 'auto';
2
+ export declare class ThemeManager {
3
+ currentTheme: ThemeToken;
4
+ init(): void;
5
+ setTheme(theme: ThemeToken): void;
6
+ toggleTheme(): void;
7
+ protected applyTheme(): void;
8
+ protected loadTheme(): void;
9
+ protected saveTheme(): void;
10
+ protected listenForSystemThemeChanges(): void;
11
+ protected getLocalStorageTheme(): ThemeToken;
12
+ protected getSystemTheme(): ThemeToken;
13
+ }
@@ -0,0 +1,3 @@
1
+ import { Point } from './point.js';
2
+ export type AnchorDir = 'middle' | 'top' | 'bottom' | 'left' | 'right';
3
+ export declare function getAnchorPoint(el: HTMLElement, dir: AnchorDir): Point;
@@ -0,0 +1,4 @@
1
+ export * from './dom.js';
2
+ export * from './plugins.js';
3
+ export * from './point.js';
4
+ export * from './ThemeManager.js';
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'vue';
2
+ export declare const themePlugin: Plugin;
@@ -0,0 +1,4 @@
1
+ export interface Point {
2
+ x: number;
3
+ y: number;
4
+ }
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "nightshade",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Vue UI library & design system",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/bundle.js",
8
- "./components": "./dist/components.js",
9
8
  "./components.css": "./dist/components.css",
10
- "./utils": "./dist/utils.js",
11
- "./stylesheets/*": "./stylesheets/*"
9
+ "./stylesheets.css": "./stylesheets/full.css",
10
+ "./stylesheets/*": "./stylesheets/*",
11
+ "./utils": "./dist/utils.js"
12
12
  },
13
+ "types": "./dist/lib/index.d.ts",
13
14
  "files": [
14
15
  "dist",
15
16
  "stylesheets"
@@ -32,6 +33,7 @@
32
33
  "@vitejs/plugin-vue": "^5.2.1",
33
34
  "eslint": "^9.17.0",
34
35
  "typescript": "^5.7.2",
35
- "vite": "^6.0.7"
36
+ "vite": "^6.2.2",
37
+ "vite-plugin-dts": "^4.5.3"
36
38
  }
37
39
  }