@ghostly-solutions/ui 0.3.9 → 0.3.10
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/dist/chunk-h6zev10f.js +11 -0
- package/dist/components/dialog/dialog.d.ts +2 -1
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/spotlight/index.d.ts +1 -1
- package/dist/components/spotlight/index.d.ts.map +1 -1
- package/dist/components/spotlight/spotlight.d.ts +50 -17
- package/dist/components/spotlight/spotlight.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-media-query.d.ts +3 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/lib/hotkey.d.ts +80 -1
- package/dist/lib/hotkey.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-gv8xjarq.js +0 -11
package/dist/lib/hotkey.d.ts
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
|
+
declare const Key: {
|
|
2
|
+
readonly Mod: "mod";
|
|
3
|
+
readonly Ctrl: "ctrl";
|
|
4
|
+
readonly Control: "control";
|
|
5
|
+
readonly Alt: "alt";
|
|
6
|
+
readonly Option: "option";
|
|
7
|
+
readonly Shift: "shift";
|
|
8
|
+
readonly Meta: "meta";
|
|
9
|
+
readonly Cmd: "cmd";
|
|
10
|
+
readonly Command: "command";
|
|
11
|
+
readonly Enter: "enter";
|
|
12
|
+
readonly Return: "return";
|
|
13
|
+
readonly Escape: "escape";
|
|
14
|
+
readonly Esc: "esc";
|
|
15
|
+
readonly Backspace: "backspace";
|
|
16
|
+
readonly Delete: "delete";
|
|
17
|
+
readonly Del: "del";
|
|
18
|
+
readonly Tab: "tab";
|
|
19
|
+
readonly Space: "space";
|
|
20
|
+
readonly ArrowUp: "arrowup";
|
|
21
|
+
readonly ArrowDown: "arrowdown";
|
|
22
|
+
readonly ArrowLeft: "arrowleft";
|
|
23
|
+
readonly ArrowRight: "arrowright";
|
|
24
|
+
readonly Up: "up";
|
|
25
|
+
readonly Down: "down";
|
|
26
|
+
readonly Left: "left";
|
|
27
|
+
readonly Right: "right";
|
|
28
|
+
readonly Plus: "plus";
|
|
29
|
+
readonly A: "a";
|
|
30
|
+
readonly B: "b";
|
|
31
|
+
readonly C: "c";
|
|
32
|
+
readonly D: "d";
|
|
33
|
+
readonly E: "e";
|
|
34
|
+
readonly F: "f";
|
|
35
|
+
readonly G: "g";
|
|
36
|
+
readonly H: "h";
|
|
37
|
+
readonly I: "i";
|
|
38
|
+
readonly J: "j";
|
|
39
|
+
readonly K: "k";
|
|
40
|
+
readonly L: "l";
|
|
41
|
+
readonly M: "m";
|
|
42
|
+
readonly N: "n";
|
|
43
|
+
readonly O: "o";
|
|
44
|
+
readonly P: "p";
|
|
45
|
+
readonly Q: "q";
|
|
46
|
+
readonly R: "r";
|
|
47
|
+
readonly S: "s";
|
|
48
|
+
readonly T: "t";
|
|
49
|
+
readonly U: "u";
|
|
50
|
+
readonly V: "v";
|
|
51
|
+
readonly W: "w";
|
|
52
|
+
readonly X: "x";
|
|
53
|
+
readonly Y: "y";
|
|
54
|
+
readonly Z: "z";
|
|
55
|
+
readonly D0: "0";
|
|
56
|
+
readonly D1: "1";
|
|
57
|
+
readonly D2: "2";
|
|
58
|
+
readonly D3: "3";
|
|
59
|
+
readonly D4: "4";
|
|
60
|
+
readonly D5: "5";
|
|
61
|
+
readonly D6: "6";
|
|
62
|
+
readonly D7: "7";
|
|
63
|
+
readonly D8: "8";
|
|
64
|
+
readonly D9: "9";
|
|
65
|
+
readonly F1: "f1";
|
|
66
|
+
readonly F2: "f2";
|
|
67
|
+
readonly F3: "f3";
|
|
68
|
+
readonly F4: "f4";
|
|
69
|
+
readonly F5: "f5";
|
|
70
|
+
readonly F6: "f6";
|
|
71
|
+
readonly F7: "f7";
|
|
72
|
+
readonly F8: "f8";
|
|
73
|
+
readonly F9: "f9";
|
|
74
|
+
readonly F10: "f10";
|
|
75
|
+
readonly F11: "f11";
|
|
76
|
+
readonly F12: "f12";
|
|
77
|
+
};
|
|
78
|
+
type HotkeyToken = (typeof Key)[keyof typeof Key];
|
|
79
|
+
declare function hotkey(...tokens: [HotkeyToken, ...HotkeyToken[]]): string;
|
|
1
80
|
interface HotkeyDefinition {
|
|
2
81
|
key: string;
|
|
3
82
|
mod: boolean;
|
|
@@ -11,5 +90,5 @@ declare function parseHotkey(combo: string): HotkeyDefinition;
|
|
|
11
90
|
declare function matchHotkey(event: KeyboardEvent, def: HotkeyDefinition): boolean;
|
|
12
91
|
declare function formatHotkey(combo: string, isMac?: boolean): string;
|
|
13
92
|
declare function formatHotkeyTokens(combo: string, isMac?: boolean): string[];
|
|
14
|
-
export { parseHotkey, matchHotkey, formatHotkey, formatHotkeyTokens, MODIFIER_KEYS, type HotkeyDefinition, };
|
|
93
|
+
export { Key, type HotkeyToken, hotkey, parseHotkey, matchHotkey, formatHotkey, formatHotkeyTokens, MODIFIER_KEYS, type HotkeyDefinition, };
|
|
15
94
|
//# sourceMappingURL=hotkey.d.ts.map
|
package/dist/lib/hotkey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkey.d.ts","sourceRoot":"","sources":["../../src/lib/hotkey.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACd;AAED,QAAA,MAAM,aAAa,aAUjB,CAAC;AAuEH,iBAAS,WAAW,CAAC,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Y,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAS5D;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAOpE;AAED,OAAO,EACN,GAAG,EACH,KAAK,WAAW,EAChB,MAAM,EACN,WAAW,EACX,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,KAAK,gBAAgB,GACrB,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B as
|
|
1
|
+
import{A as k,B as H,C as A,D as d,E as x,F as M,G as v,I as g,J as V,a as e,b as t,d as o,e as r,f as a,i as m,j as p,k as s,l as T,m as S,n as i,o as h,p as n,q as l,r as y,s as C,t as E,u as c,v as f,w as O,x as R,y as P,z as _}from"./chunk-h6zev10f.js";import{cva as I}from"class-variance-authority";export{A as writeThemeStateToBrowserStorage,R as serializeThemeState,M as resolveThemeState,d as resolveColorScheme,_ as readThemeStateFromCookieHeader,H as readThemeStateFromBrowserStorage,P as parseThemeState,m as parseHotkey,O as normalizeThemeState,p as matchHotkey,v as getThemeRootProps,x as getSystemColorScheme,T as formatHotkeyTokens,s as formatHotkey,a as detectPlatform,I as cva,V as createThemesCss,k as createThemeSetCookieHeader,g as createThemeCss,f as createThemeContract,r as createOptionalContext,o as createContext,t as composeRefs,e as cn,c as THEME_COOKIE_NAME,h as THEME_COLOR_SCHEME_ATTR,i as THEME_ATTR,l as STORAGE_VERSION,C as STORAGE_THEME_STATE_KEY,y as STORAGE_PREFIX,E as STORAGE_DENSITY_KEY,n as DARK_CLASS,S as ColorScheme};
|