effcss 2.2.0 → 3.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/README.md +150 -97
- package/dist/build/define-provider.min.js +2 -2
- package/dist/consumer.js +7 -0
- package/dist/index.js +7 -1
- package/dist/types/src/_provider/_process/atrules.d.ts +148 -0
- package/dist/types/src/_provider/_process/base.d.ts +12 -0
- package/dist/types/src/_provider/_process/color.d.ts +97 -0
- package/dist/types/src/_provider/_process/pseudo.d.ts +146 -0
- package/dist/types/src/_provider/_process/units.d.ts +16 -0
- package/dist/types/src/_provider/_process/utils.d.ts +1 -0
- package/dist/types/src/_provider/manage.d.ts +96 -1
- package/dist/types/src/_provider/process.d.ts +93 -17
- package/dist/types/src/common.d.ts +172 -0
- package/dist/types/src/consumer.d.ts +7 -0
- package/dist/types/src/index.d.ts +123 -2
- package/package.json +49 -60
- package/dist/constants.js +0 -1
- package/dist/types/src/constants.d.ts +0 -89
- package/dist/types/src/types.d.ts +0 -561
- package/dist/types/src/utils/browser.d.ts +0 -123
- package/dist/types/src/utils/common.d.ts +0 -75
- package/dist/types/vitest.config.d.ts +0 -2
- package/dist/utils/browser.js +0 -1
- package/dist/utils/common.js +0 -1
|
@@ -1,5 +1,126 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createProcessor } from './_provider/process';
|
|
2
|
+
import type { TProviderSettings } from './common';
|
|
3
|
+
import { createScope } from './common';
|
|
4
|
+
type TResolveAttr = ReturnType<ReturnType<typeof createScope>>['attr'];
|
|
5
|
+
/**
|
|
6
|
+
* StyleSheet maker
|
|
7
|
+
*/
|
|
8
|
+
export type TStyleSheetMaker = Parameters<ReturnType<typeof createProcessor>['compile']>[0]['maker'];
|
|
9
|
+
/**
|
|
10
|
+
* Style target
|
|
11
|
+
*/
|
|
12
|
+
type TStyleTarget = string | TStyleSheetMaker;
|
|
13
|
+
/**
|
|
14
|
+
* Style provider
|
|
15
|
+
* @description
|
|
16
|
+
* Basic interface for style provider component.
|
|
17
|
+
*/
|
|
18
|
+
export interface IStyleProvider {
|
|
19
|
+
/**
|
|
20
|
+
* Get prefix
|
|
21
|
+
*/
|
|
22
|
+
get prefix(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Get mode
|
|
25
|
+
*/
|
|
26
|
+
get mode(): string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Get hydrate
|
|
29
|
+
*/
|
|
30
|
+
get hydrate(): boolean | null;
|
|
31
|
+
/**
|
|
32
|
+
* Get theme value
|
|
33
|
+
*/
|
|
34
|
+
get theme(): string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Set theme value
|
|
37
|
+
* @param val - theme value
|
|
38
|
+
*/
|
|
39
|
+
set theme(val: string);
|
|
40
|
+
/**
|
|
41
|
+
* Get provider settings
|
|
42
|
+
*/
|
|
43
|
+
get settings(): Partial<TProviderSettings>;
|
|
44
|
+
/**
|
|
45
|
+
* Set provider settings
|
|
46
|
+
*/
|
|
47
|
+
set settings(val: Partial<TProviderSettings>);
|
|
48
|
+
/**
|
|
49
|
+
* Use stylesheet
|
|
50
|
+
* @param maker - stylesheet maker
|
|
51
|
+
* @returns {@link TResolveAttr | attribute resolver}
|
|
52
|
+
*/
|
|
53
|
+
use(maker: TStyleSheetMaker, key?: string): TResolveAttr;
|
|
54
|
+
/**
|
|
55
|
+
* Use public stylesheet makers
|
|
56
|
+
* @param makers - stylesheet makers
|
|
57
|
+
*/
|
|
58
|
+
usePublic(makers: Record<string, TStyleSheetMaker>): Record<string, TResolveAttr>;
|
|
59
|
+
/**
|
|
60
|
+
* Use private stylesheet makers
|
|
61
|
+
* @param makers - stylesheet makers
|
|
62
|
+
*/
|
|
63
|
+
usePrivate(makers: TStyleSheetMaker[]): TResolveAttr[];
|
|
64
|
+
/**
|
|
65
|
+
* Resolve stylesheet
|
|
66
|
+
* @param key - stylesheet key
|
|
67
|
+
* @returns BEM attribute resolver for stylesheet
|
|
68
|
+
*/
|
|
69
|
+
resolve(key?: string): TResolveAttr;
|
|
70
|
+
/**
|
|
71
|
+
* Prepare CSS from config
|
|
72
|
+
* @param maker - stylesheet maker
|
|
73
|
+
* @param key - stylesheet key
|
|
74
|
+
*/
|
|
75
|
+
css(maker: TStyleSheetMaker, key: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* Resolve target key
|
|
78
|
+
* @param param - style target
|
|
79
|
+
*/
|
|
80
|
+
key(target: TStyleTarget): string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Is stylesheet on
|
|
83
|
+
* @param key - stylesheet key
|
|
84
|
+
*/
|
|
85
|
+
status(key: TStyleTarget): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Switch stylesheet/stylesheets on
|
|
88
|
+
* @param target - target stylesheet maker or key
|
|
89
|
+
*/
|
|
90
|
+
on(...targets: TStyleTarget[]): boolean | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Switch stylesheet/stylesheets off
|
|
93
|
+
* @param target - target stylesheet maker or key
|
|
94
|
+
*/
|
|
95
|
+
off(...targets: TStyleTarget[]): boolean | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Get CSS stylesheets
|
|
98
|
+
* @param targets - target stylesheet makers and/or keys
|
|
99
|
+
*/
|
|
100
|
+
stylesheets(targets?: TStyleTarget[]): (CSSStyleSheet | undefined)[];
|
|
101
|
+
/**
|
|
102
|
+
* String representation that allows save or send current state
|
|
103
|
+
*/
|
|
104
|
+
toString(): string;
|
|
105
|
+
}
|
|
106
|
+
export type TBaseStyleSheet = {
|
|
107
|
+
/**
|
|
108
|
+
* Main block
|
|
109
|
+
*/
|
|
110
|
+
'': {
|
|
111
|
+
/**
|
|
112
|
+
* Main block modifiers
|
|
113
|
+
*/
|
|
114
|
+
'': {
|
|
115
|
+
/**
|
|
116
|
+
* Theme
|
|
117
|
+
*/
|
|
118
|
+
theme: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
2
122
|
/**
|
|
3
123
|
* Define style provider custom element
|
|
4
124
|
*/
|
|
5
|
-
export declare function defineProvider(
|
|
125
|
+
export declare function defineProvider(settings?: Partial<TProviderSettings>): boolean;
|
|
126
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,66 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"web components",
|
|
12
|
-
"ui",
|
|
13
|
-
"typescript",
|
|
14
|
-
"css",
|
|
15
|
-
"css-in-js"
|
|
16
|
-
],
|
|
17
|
-
"author": "Marat Sabitov",
|
|
18
|
-
"license": "Apache 2.0",
|
|
19
|
-
"main": "dist/index.js",
|
|
20
|
-
"types": "dist/types/src/types.d.ts",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": {
|
|
23
|
-
"types": "./dist/types/src/index.d.ts",
|
|
24
|
-
"import": "./dist/index.js",
|
|
25
|
-
"require": "./dist/index.js"
|
|
2
|
+
"name": "effcss",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Self-confident CSS-in-JS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rollup -c",
|
|
8
|
+
"test": "vitest"
|
|
26
9
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
"keywords": [
|
|
11
|
+
"web components",
|
|
12
|
+
"ui",
|
|
13
|
+
"typescript",
|
|
14
|
+
"css",
|
|
15
|
+
"css-in-js"
|
|
16
|
+
],
|
|
17
|
+
"author": "Marat Sabitov",
|
|
18
|
+
"license": "Apache 2.0",
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"types": "dist/types/src/types.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/types/src/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./consumer": {
|
|
28
|
+
"types": "./dist/types/src/consumer.d.ts",
|
|
29
|
+
"import": "./dist/consumer.js",
|
|
30
|
+
"require": "./dist/consumer.js"
|
|
31
|
+
}
|
|
30
32
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
35
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
36
|
+
"@vitest/browser": "^2.1.9",
|
|
37
|
+
"playwright": "^1.50.1",
|
|
38
|
+
"rollup": "^4.30.1",
|
|
39
|
+
"rollup-plugin-cleaner": "^1.0.0",
|
|
40
|
+
"tslib": "^2.8.1",
|
|
41
|
+
"typescript": "^5.7.3",
|
|
42
|
+
"vitest": "^2.1.9"
|
|
34
43
|
},
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
"files": [
|
|
45
|
+
"LICENSE",
|
|
46
|
+
"README.md",
|
|
47
|
+
"package.json",
|
|
48
|
+
"dist"
|
|
49
|
+
],
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://gitverse.ru/msabitov/effcss"
|
|
38
53
|
},
|
|
39
|
-
"
|
|
40
|
-
"types": "./dist/types/src/types.d.ts",
|
|
41
|
-
"import": "./dist/types/src/types.d.ts"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
47
|
-
"@vitest/browser": "^2.1.9",
|
|
48
|
-
"playwright": "^1.50.1",
|
|
49
|
-
"rollup": "^4.30.1",
|
|
50
|
-
"rollup-plugin-cleaner": "^1.0.0",
|
|
51
|
-
"tslib": "^2.8.1",
|
|
52
|
-
"typescript": "^5.7.3",
|
|
53
|
-
"vitest": "^2.1.9"
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"LICENSE",
|
|
57
|
-
"README.md",
|
|
58
|
-
"package.json",
|
|
59
|
-
"dist"
|
|
60
|
-
],
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "https://gitverse.ru/msabitov/effcss"
|
|
64
|
-
},
|
|
65
|
-
"homepage": "https://effcss.surge.sh"
|
|
54
|
+
"homepage": "https://effcss.surge.sh"
|
|
66
55
|
}
|
package/dist/constants.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=(...s)=>s.join(","),e="rem",t="-",r=" ",i="-x",a="-y",l="down",n="horizontal",o="vertical",c="text",b=c+t,p="font",m=p+t,f="column",d=f+t,g="max-",x="min-",h="content",u=h+"s",w="-items",$="self",v="inline",y="block",z="size",k="-radius",_="direction",j="outline",q="style",A=t+q,C="end",G=t+C,R="start",B=t+R,D="center",E="word",F="line",H="break",I=H+t,J="wrap",K="no"+J,L="rule",M="object",N="top",O=t+N,P="left",Q=t+P,S="bottom",T=t+S,U="right",V=t+U,W="width",X=t+W,Y="color",Z=t+Y,ss="overflow",es="align",ts="type",rs="transform",is="all",as="height",ls="normal",ns="opacity",os="visibility",cs="scale",bs="box",ps=t+bs,ms="border",fs="position",ds="none",gs="auto",xs="fill",hs="stroke",us="reverse",ws="space",$s="fixed",vs="origin",ys="alpha",zs="luminance",ks="clip",_s="zoom",js="scroll",qs="padding",As="margin",Cs="both",Gs="mode",Rs="repeat",Bs="light",Ds="linear",Es="hidden",Fs="shadow",Hs="behavior",Is="orientation",Js="name",Ks="after",Ls="before",Ms="image",Ns="list"+A,Os=Ns+t+ts,Ps=Ns+t+fs,Qs=Ns+t+Ms,Ss=Y+"-scheme",Ts=ms+T,Us=ms+Q,Vs=ms+V,Ws=ms+O,Xs=ms+t+y,Ys=ms+t+v,Zs=Xs+B,se=Xs+G,ee=Ys+B,te=Ys+G,re=ms+X,ie=Ts+X,ae=Us+X,le=Vs+X,ne=Ws+X,oe=Xs+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=Cs+ba,xa=b+"decoration",ha=xa+t+Y,ua=xa+t+"thickness",wa=xa+t+q,$a=xa+t+F,va="white-"+ws,ya=b+rs,za=b+es,ka=o+t+es,_a=b+ss,ja=b+Is,qa=b+"rendering",Aa=b+Fs,Ca=b+"emphasis",Ga=Ca+Z,Ra=Ca+t+fs,Ba=Ca+A,Da=b+J,Ea=Da+t+Gs,Fa=Da+A,Ha=E+t+H,Ia=m+z,Ja=m+"weight",Ka=m+"family",La=m+q,Ma=m+"synthesis",Na=m+"variant",Oa=Na+t+Mr+"s",Pa=Na+"-caps",Qa=Na+"-numeric",Sa=Na+t+fs,Ta=Na+"-east-asian",Ua=Na+"-ligatures",Va=Na+"-settings",Wa="writing-"+Gs,Xa=F+t+as,Ya=F+t+H,Za=F+"-through",sl="over"+F,el="under"+F,tl="pre",rl=tl+t+F,il=tl+t+J,al=I+ws+"s",ll=I+is,nl=I+E,ol=I+Ks,cl=I+Ls,bl=n+"-tb",pl=o+"-lr",ml=o+"-rl",fl="keep-"+is,dl="pointer",gl="pan",xl=gl+i,hl=gl+Q,ul=gl+V,wl=gl+a,$l=gl+t+l,vl="pinch-"+_s,yl=o+t+c,zl="grab",kl=zl+"bing",_l="resize",jl="col-"+_l,ql="row-"+_l,Al="n-"+_l,Cl="e-"+_l,Gl="s-"+_l,Rl="w-"+_l,Bl="ne-"+_l,Dl="ew-"+_l,El="nw-"+_l,Fl="se-"+_l,Hl="sw-"+_l,Il="ns-"+_l,Jl="nesw-"+_l,Kl="nwse-"+_l,Ll=_s+t+"in",Ml=_s+t+"out",Nl=dl+"-events",Ol=js+t+fs,Pl="caret"+Z,Ql="accent"+Z,Sl="filter",Tl="backdrop-"+Sl,Ul="background",Vl=Ul+t,Wl=Vl+Ms,Xl=Vl+Y,Yl=Vl+ks,Zl=Vl+vs,sn=Vl+fs,en=sn+i,tn=sn+a,rn=Vl+Rs,an=Vl+z,ln=Vl+"blend-"+Gs,nn=Vl+"attachment",on="gradient",cn=Ds+t+on,bn="radial-"+on,pn="conic-"+on,mn=h+t+os,fn=hs+X,dn=hs+t+ns,gn=xs+t+L,xn=xs+t+ns,hn=Y+"-dodge",un=Y+"-burn",wn="hard-"+Bs,$n="soft-"+Bs,vn=Y+"-mix",yn="revert",zn=yn+"-layer",kn="container",_n=kn+t+ts,jn=kn+t+Js,qn=":first-",An=":last-",Cn=":only-",Gn="child",Rn="of-type",Bn=":nth-child",Dn="prefers-",En=Dn+Ss,Fn="@media",Hn=Y+"-gamut",In=Dn+"contrast",Jn="scripting",Kn="::"+Ks,Ln="::"+Ls,Mn="sideways",Nn=Mn+V,On={0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},Pn=[...Array(12).keys()].reduce(((s,e)=>(s[e]=e,s)),{}),Qn={u:{ini:"initial",inh:"inherit",u:"unset",r:yn,rl:zn},rep:{rx:ot,ry:ct,r:Rs,s:ws,ro:"round",nr:bt},cnt:{n:ls,s:z,is:qi},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},cu:{c:"currentColor",t:"transparent"},ff:{def:"Roboto, sans-serif",h:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},fst:{i:"italic",n:ls,o:"oblique"},lsp:{no:0,s:.05,m:.1,l:.2},ws:{n:ls,nw:K,p:tl,pl:rl,pw:il,bs:al},wb:{n:ls,ba:ll,ka:fl,bw:nl},wm:{htb:bl,vlr:pl,vrl:ml},hyp:{no:ds,m:"manual",a:gs},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:Za,o:sl,u:el},tor:{m:"mixed",u:"upright",sr:Nn,s:Mn,ugo:"use-glyph-"+Is},ta:{l:P,c:D,j:yt,r:U,s:R,e:C},fr:On,coef:Pn,rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},usz:{a:"auto",no:0,min:hi,max:ui,fit:xi},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},csz:{cv:"cover",cn:"contain",a:gs,f:xs,sd:Ze},box:{c:rt,p:et,b:tt,f:it,s:at,v:lt,nc:nt,t:c},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},z:{s:.8,m:1,l:1.2},pers:{s:10,m:15,l:20},ali:{s:R,e:C,c:D,st:"stretch",sb:or,sa:cr,se:br,b:"baseline",fs:nr,fe:lr,no:ds},dis:{g:wt,ig:pr,f:zt,if:jt,b:y,i:v},ca:Pn,co:Pn,ra:Pn,ro:Pn,fd:{r:$t,rr:rr,c:f,cr:ir},fb:On,fo:Pn,fg:Pn,fs:Pn,fw:{w:J,nw:K,wr:ar},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lb:{a:gs,any:"anywhere",n:ls,l:"loose",s:"strict"},ls:{no:ds,dt:"dotted",i:ai,h:Es,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},ov:{h:Es,s:js,a:gs,c:ks,e:"ellipsis"},v:{h:Es,v:"visible",c:"collapse",a:gs},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},zi:{min:-1,1:1,2:2,3:3,4:4,5:5,max:10},ttf:{l:Ds,e:Pr,ei:Qr,eo:Tr,eio:Sr,ss:Vr,se:Wr},tp:{col:s(Y,Xl,ze,ha),icon:s(xs,hs),flt:s(Sl,Tl),ind:s(qs,As),sz:s(W,$i,vi,as,yi,zi),esz:s(ji,ki,_i,Ci,qi,Ai),o:ns,b:ms,f:zt,g:wt,pos:s(fs,P,N,S,U),tf:s(rs,Xr,cs,Yr,"skew",Zr)},tb:{ad:"allow-discrete",n:ls},aic:{inf:"infinite",1:1,2:2,3:3,4:4,5:5},wc:{a:gs,sp:Ol,c:u,tf:rs,o:ns,i:ai,tfi:s(rs,ai)},afm:{no:ds,f:"forwards",b:"backwards",both:Cs},adir:{r:us,a:Mr,ar:Nr},aps:{r:"running",p:"paused"},pe:{a:gs,no:ds,all:is,f:xs,s:hs},cur:{h:"help",a:gs,p:dl,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:c,vt:yl,cp:"copy",m:"move",g:zl,gng:kl,cr:jl,rr:ql,nr:Al,er:Cl,sr:Gl,wr:Rl,ner:Bl,ewr:Dl,nwr:El,ser:Fl,swr:Hl,nsr:Il,neswr:Jl,nwser:Kl,zi:Ll,zo:Ml},res:{n:ds,v:o,h:n,b:Cs},toa:{a:gs,no:ds,px:xl,pl:hl,pr:ul,py:wl,pu:"pan-up",pd:$l,pz:vl,m:"manipulation"},us:{n:ds,t:c,all:is,a:gs},sb:{a:gs,s:"smooth"},sss:{n:ls,a:"always"},sst:{n:ds,x:"x",y:"y",b:y,i:v,both:Cs,xm:aa,ym:la,bm:na,im:oa,bothm:ca,xp:pa,yp:ma,bp:fa,ip:da,bothp:ga},pos:{r:"relative",a:"absolute",f:$s,s:"static"},posv:{b:S,t:N,c:D,l:P,r:U,lt:ei,rt:ti,lb:ri,rb:ii},cf:{a:gs,b:"balance"},cs:{no:ds,all:is},mc:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mt:{a:ys,l:zs},mm:{a:ys,l:zs,m:"match-source"},bgbm:{n:ls,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Bs+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:Y,lum:"luminosity",cd:hn,cb:un,hl:wn,sl:$n},bga:{s:js,f:$s,l:"local"}},Sn={a:kr,an:jr,adur:Gr,adel:Rr,aps:Br,afm:Dr,adir:Ar,aic:Cr,atf:qr,tn:Er,tdur:Kr,tdel:Lr,tb:Hr,tp:Ir,ttf:Jr,ba:ol,bb:cl,bor:ms,bw:re,br:de,bs:Ee,bls:Fe,brs:He,bts:Ie,bbs:Je,bbls:Ke,bis:Le,bbss:Me,bbes:Ne,biss:Oe,bies:Pe,brw:le,blw:ae,btw:ne,bbw:ie,btlr:he,btrr:ue,bbrr:xe,bblr:ge,biw:ce,bblw:oe,bbew:pe,bbsw:be,bisw:me,biew:fe,besr:ye,beer:ve,bssr:$e,bser:we,bc:ze,blc:ke,brc:_e,btc:je,bbc:qe,bblc:Ae,bic:Ce,bbsc:Ge,bbec:Re,bisc:Be,biec:De,bg:Ul,bgi:Wl,bgc:Xl,c:Y,cmix:vn,csh:Ss,acc:Ql,ctc:Pl,st:hs,stw:fn,sto:dn,fi:xs,fir:gn,fio:xn,flt:Sl,bf:Tl,dis:"display",g:wt,jc:Bt,ji:Dt,ai:Et,pi:_t,ac:Ft,gt:It,gtr:Jt,gtc:Kt,gp:vt,rg:Lt,cg:Mt,as:Ht,js:Nt,gr:Ot,gre:Pt,grs:Qt,gc:St,gce:Tt,gcs:Ut,fx:zt,fxd:Gt,fxw:Rt,fxs:Ct,fxg:At,fxb:qt,ord:"order",dir:_,m:As,ml:gt,mr:ht,mt:xt,mb:ut,p:qs,pl:pt,pr:ft,pt:mt,pb:dt,out:j,oc:Qe,ow:Se,os:Te,oo:Ue,l:P,r:U,t:N,b:S,ins:ai,ib:bi,ibe:pi,ibs:mi,ii:fi,iie:di,iis:gi,wc:"will-change",app:"appearance",pe:Nl,cur:"cursor",toa:"touch-action",us:"user-select",res:_l,lis:Ns,lisp:Ps,lisi:Qs,list:Os,sb:Gi,ssa:sa,sss:ea,sst:ta,sm:Ri,sml:Ei,smr:Fi,smt:Bi,smb:Di,sp:Ni,spl:Qi,spr:Si,spt:Oi,spb:Pi,smbl:Hi,smbe:Ii,smbs:Ji,smi:Ki,smie:Li,smis:Mi,spbl:Ti,spbe:Ui,spbs:Vi,spi:Wi,spie:Xi,spis:Yi,osb:ra,ar:"aspect-ratio",w:W,maxw:$i,minw:vi,h:as,minh:zi,maxh:yi,bl:ki,maxb:_i,minb:ji,i:qi,mini:Ci,maxi:Ai,per:Zr,pero:si,rot:Yr,sc:cs,tf:rs,tfb:ni,tfo:oi,tfs:ci,tr:Xr,z:_s,lts:"letter-spacing",lh:Xa,lb:Ya,f:p,fst:La,ff:Ka,fwg:Ja,fsz:Ia,fsn:Ma,fv:Na,fva:Oa,fvc:Pa,fvea:Ta,fvl:Ua,fvn:Qa,fvs:Va,fvp:Sa,tt:ya,td:xa,tdt:ua,tds:wa,tdl:$a,ta:za,to:_a,trg:qa,ts:Aa,te:Ca,tep:Ra,tec:Ga,tes:Ba,tw:Da,twm:Ea,tws:Fa,va:ka,ws:va,tor:ja,wb:Ha,wm:Wa,hyp:"hyphens",bsz:wi,bsh:st,pos:fs,cf:Wt,crs:Zt,crc:Yt,crw:sr,cs:er,cw:tr,cc:Vt,bgcl:Yl,bgp:sn,bgpx:en,bgpy:tn,bgbm:ln,bgo:Zl,bgr:rn,bga:nn,bgsz:an,mcl:fr,mcm:dr,mm:gr,mo:xr,mp:hr,mre:ur,msz:wr,mtp:$r,obf:Xe,obp:Ye,con:h,ov:ss,ovx:Ve,ovy:We,v:os,cv:mn,o:ns,zi:"z-index",lgr:cn,rgr:bn,cgr:pn,inf:"infinite",cnt:_n,cnn:jn,$:":root",$u:"*",$h:":hover",$f:":focus",$fv:":focus-visible",$a:":active",$v:":visited",$val:":valid",$inv:":invalid",$e:":empty",$d:":disabled",$r:":required",$o:":optional",$m:":modal",$l:":link",$fc:qn+Gn,$lc:An+Gn,$oc:Cn+Gn,$1:Bn+"(odd)",$2:Bn+"(even)",$ft:qn+Rn,$lt:An+Rn,$ot:Cn+Rn,$bef:Ln,$aft:Kn,$bd:"::backdrop",$ba:`&${Ln},&${Kn}`,$pl:":placeholder",$light:Fn+`(${En}: light)`,$dark:Fn+`(${En}: dark)`,$red_m:Fn+"(prefers-reduced-motion: reduce)",$ori_l:Fn+`(${Is}: landscape)`,$ori_p:Fn+`(${Is}: portrait)`,$gam_srgb:Fn+`(${Hn}: srgb)`,$gam_p3:Fn+`(${Hn}: p3)`,$gam_rec:Fn+`(${Hn}: rec2020)`,$con_no:Fn+`(${In}: no-preference)`,$con_m:Fn+`(${In}: more)`,$con_l:Fn+`(${In}: less)`,$con_c:Fn+`(${In}: custom)`,$scr_no:Fn+`(${Jn}: none)`,$scr_ini:Fn+`(${Jn}: initial-only)`,$scr_en:Fn+`(${Jn}: enabled)`,$ss:"@starting-style",$ns:"@namespace"},Tn={xs:30+e,sm:40+e,md:48+e,lg:64+e,xl:80+e},Un={xs:10+e,sm:20+e,md:30+e,lg:40+e,xl:48+e},Vn={$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}",$$u:{$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}"}},Wn={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}}},Xn="{1}rem",Yn="{1}deg",Zn="span {1}",so={fb:"calc(100% * {1})",ra:Zn,ca:Zn,sz:Xn,sp:Xn,rad:Xn,th:Xn,bp:Xn,cbp:Xn,fsz:Xn,lsp:Xn,tr:Xn,pers:Xn,sk:Yn,rot:Yn,time:"{1}ms"},eo="eff",to="effcss",ro="effcss_init",io="style-provider",ao="effcsschanges";export{ao as EVENT_NAME,eo as PREFIX,io as PROVIDER_TAG_NAME,to as SETTINGS_SCRIPT_ID,ro as STYLES_SCRIPT_CLS,Un as containerBP,Sn as keys,Tn as mediaBP,Vn as rootStyle,Qn as sets,Wn as themes,so as units};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export declare const sets: Record<string, Record<string, string | number>>;
|
|
2
|
-
export declare const keys: Record<string, string>;
|
|
3
|
-
/**
|
|
4
|
-
* Media breakpoints
|
|
5
|
-
*/
|
|
6
|
-
export declare const mediaBP: {
|
|
7
|
-
xs: string;
|
|
8
|
-
sm: string;
|
|
9
|
-
md: string;
|
|
10
|
-
lg: string;
|
|
11
|
-
xl: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Container breakpoints
|
|
15
|
-
*/
|
|
16
|
-
export declare const containerBP: {
|
|
17
|
-
xs: string;
|
|
18
|
-
sm: string;
|
|
19
|
-
md: string;
|
|
20
|
-
lg: string;
|
|
21
|
-
xl: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Default root styles
|
|
25
|
-
*/
|
|
26
|
-
export declare const rootStyle: {
|
|
27
|
-
$c: string;
|
|
28
|
-
$fsz: string;
|
|
29
|
-
$ff: string;
|
|
30
|
-
$$u: {
|
|
31
|
-
$c: string;
|
|
32
|
-
$fsz: string;
|
|
33
|
-
$ff: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Default style params
|
|
38
|
-
*/
|
|
39
|
-
export declare const themes: {
|
|
40
|
-
/**
|
|
41
|
-
* Light mode
|
|
42
|
-
*/
|
|
43
|
-
light: {
|
|
44
|
-
lig: {
|
|
45
|
-
def: number;
|
|
46
|
-
c: number;
|
|
47
|
-
s: number;
|
|
48
|
-
m: number;
|
|
49
|
-
l: number;
|
|
50
|
-
n: number;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Dark mode
|
|
55
|
-
*/
|
|
56
|
-
dark: {
|
|
57
|
-
lig: {
|
|
58
|
-
def: number;
|
|
59
|
-
n: number;
|
|
60
|
-
s: number;
|
|
61
|
-
m: number;
|
|
62
|
-
l: number;
|
|
63
|
-
c: number;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare const units: Record<string, string>;
|
|
68
|
-
/**
|
|
69
|
-
* Prefix which will be used for private stylesheets
|
|
70
|
-
*/
|
|
71
|
-
export declare const PREFIX = "eff";
|
|
72
|
-
/**
|
|
73
|
-
* Id for special script element,
|
|
74
|
-
* which contains provider settings
|
|
75
|
-
*/
|
|
76
|
-
export declare const SETTINGS_SCRIPT_ID = "effcss";
|
|
77
|
-
/**
|
|
78
|
-
* ClassName for special script elements,
|
|
79
|
-
* which contain initial stylesheet configs
|
|
80
|
-
*/
|
|
81
|
-
export declare const STYLES_SCRIPT_CLS = "effcss_init";
|
|
82
|
-
/**
|
|
83
|
-
* Name of the custom style provider element
|
|
84
|
-
*/
|
|
85
|
-
export declare const PROVIDER_TAG_NAME = "style-provider";
|
|
86
|
-
/**
|
|
87
|
-
* Custom event name that fires when styles changes
|
|
88
|
-
*/
|
|
89
|
-
export declare const EVENT_NAME = "effcsschanges";
|