elvish-css 1.0.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/LICENSE +21 -0
- package/README.md +518 -0
- package/dist/elvish.css +2194 -0
- package/dist/elvish.d.ts +78 -0
- package/dist/elvish.esm.js +2185 -0
- package/dist/elvish.iife.js +2169 -0
- package/dist/elvish.min.css +9 -0
- package/dist/elvish.umd.js +2173 -0
- package/elvish.css +28 -0
- package/elvish.js +81 -0
- package/global/global.css +16 -0
- package/global/modern.css +305 -0
- package/global/reset.css +507 -0
- package/global/tokens.css +154 -0
- package/global/transitions.css +288 -0
- package/global/transitions.js +289 -0
- package/global/utilities.css +151 -0
- package/package.json +61 -0
- package/primitives/adleithian/adleithian.css +16 -0
- package/primitives/adleithian/adleithian.js +63 -0
- package/primitives/bau/bau.css +86 -0
- package/primitives/bau/bau.js +127 -0
- package/primitives/enedh/enedh.css +38 -0
- package/primitives/enedh/enedh.js +110 -0
- package/primitives/esgal/esgal.css +39 -0
- package/primitives/esgal/esgal.js +115 -0
- package/primitives/fano/fano.css +28 -0
- package/primitives/fano/fano.js +108 -0
- package/primitives/gant-thala/gant-thala.css +32 -0
- package/primitives/gant-thala/gant-thala.js +69 -0
- package/primitives/glan-tholl/glan-tholl.css +71 -0
- package/primitives/glan-tholl/glan-tholl.js +147 -0
- package/primitives/glan-veleg/glan-veleg.css +45 -0
- package/primitives/glan-veleg/glan-veleg.js +138 -0
- package/primitives/gonath/gonath.css +57 -0
- package/primitives/gonath/gonath.js +113 -0
- package/primitives/gwistindor/gwistindor.css +52 -0
- package/primitives/gwistindor/gwistindor.js +96 -0
- package/primitives/hath/hath.css +39 -0
- package/primitives/hath/hath.js +107 -0
- package/primitives/him/him.css +43 -0
- package/primitives/him/him.js +169 -0
- package/primitives/miriant/miriant.css +75 -0
- package/primitives/miriant/miriant.js +158 -0
- package/primitives/thann/thann.css +57 -0
- package/primitives/thann/thann.js +96 -0
- package/primitives/tiniath/tiniath.css +16 -0
- package/primitives/tiniath/tiniath.js +88 -0
- package/primitives/vircantie/vircantie.css +24 -0
- package/primitives/vircantie/vircantie.js +83 -0
package/dist/elvish.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Elvish CSS Layout System
|
|
3
|
+
* TypeScript declarations
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Transition options
|
|
7
|
+
export interface TransitionOptions {
|
|
8
|
+
duration?: number;
|
|
9
|
+
easing?: string;
|
|
10
|
+
types?: string[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Transition functions
|
|
14
|
+
export function transition(callback: () => void, options?: TransitionOptions): Promise<void>;
|
|
15
|
+
export function transitionTo(element: HTMLElement, changes: {
|
|
16
|
+
attrs?: Record<string, string | null>;
|
|
17
|
+
addClass?: string[];
|
|
18
|
+
removeClass?: string[];
|
|
19
|
+
toggleClass?: string[];
|
|
20
|
+
style?: Record<string, string>;
|
|
21
|
+
}, options?: TransitionOptions): Promise<void>;
|
|
22
|
+
export function transitionTheme(theme: 'light' | 'dark' | 'auto', options?: TransitionOptions): Promise<void>;
|
|
23
|
+
export function transitionRatio(ratio: 'golden' | 'silver' | 'fifth', options?: TransitionOptions): Promise<void>;
|
|
24
|
+
export function transitionLayout(primitive: HTMLElement, attrs: Record<string, string>, options?: TransitionOptions): Promise<void>;
|
|
25
|
+
export function crossfade(outElement: HTMLElement, inElement: HTMLElement, options?: TransitionOptions): Promise<void>;
|
|
26
|
+
export function setTransitionName(element: HTMLElement, name: string): void;
|
|
27
|
+
export function clearTransitionName(element: HTMLElement): void;
|
|
28
|
+
export function nameTransitionGroup(elements: NodeListOf<Element> | HTMLElement[], prefix?: string): void;
|
|
29
|
+
export function enableAutoNaming(container: HTMLElement, transitionClass?: string): void;
|
|
30
|
+
export function disableAutoNaming(container: HTMLElement): void;
|
|
31
|
+
export function skipTransition(): void;
|
|
32
|
+
export function supportsViewTransitions(): boolean;
|
|
33
|
+
export function getActiveTransition(): ViewTransition | null;
|
|
34
|
+
|
|
35
|
+
// Layout primitives
|
|
36
|
+
export class HathLayout extends HTMLElement {}
|
|
37
|
+
export class BauLayout extends HTMLElement {}
|
|
38
|
+
export class EnedhLayout extends HTMLElement {}
|
|
39
|
+
export class TiniathLayout extends HTMLElement {}
|
|
40
|
+
export class GlanVelegLayout extends HTMLElement {}
|
|
41
|
+
export class GwistindorLayout extends HTMLElement {}
|
|
42
|
+
export class EsgalLayout extends HTMLElement {}
|
|
43
|
+
export class VircantieLayout extends HTMLElement {}
|
|
44
|
+
export class GantThalaLayout extends HTMLElement {}
|
|
45
|
+
export class GlanThollLayout extends HTMLElement {}
|
|
46
|
+
export class FanoLayout extends HTMLElement {}
|
|
47
|
+
export class ThannLayout extends HTMLElement {}
|
|
48
|
+
export class AdleithianLayout extends HTMLElement {}
|
|
49
|
+
export class HimLayout extends HTMLElement {}
|
|
50
|
+
export class MiriantLayout extends HTMLElement {}
|
|
51
|
+
export class GonathLayout extends HTMLElement {}
|
|
52
|
+
|
|
53
|
+
// Constants
|
|
54
|
+
export const VERSION: string;
|
|
55
|
+
export const PRIMITIVES: Record<string, string>;
|
|
56
|
+
export const SINDARIN: Record<string, string>;
|
|
57
|
+
|
|
58
|
+
// Custom element tag names
|
|
59
|
+
declare global {
|
|
60
|
+
interface HTMLElementTagNameMap {
|
|
61
|
+
'i-hath': HathLayout;
|
|
62
|
+
'i-bau': BauLayout;
|
|
63
|
+
'i-enedh': EnedhLayout;
|
|
64
|
+
'i-tiniath': TiniathLayout;
|
|
65
|
+
'i-glan-veleg': GlanVelegLayout;
|
|
66
|
+
'i-gwistindor': GwistindorLayout;
|
|
67
|
+
'i-esgal': EsgalLayout;
|
|
68
|
+
'i-vircantie': VircantieLayout;
|
|
69
|
+
'i-gant-thala': GantThalaLayout;
|
|
70
|
+
'i-glan-tholl': GlanThollLayout;
|
|
71
|
+
'i-fano': FanoLayout;
|
|
72
|
+
'i-thann': ThannLayout;
|
|
73
|
+
'i-adleithian': AdleithianLayout;
|
|
74
|
+
'i-him': HimLayout;
|
|
75
|
+
'i-miriant': MiriantLayout;
|
|
76
|
+
'i-gonath': GonathLayout;
|
|
77
|
+
}
|
|
78
|
+
}
|