@plumeria/core 0.9.2 → 0.9.4

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/types/css.d.ts DELETED
@@ -1,279 +0,0 @@
1
- import type { CSSProperties, CSSHTML, CreateStyleType, CreateTheme, CreateVars, CreateKeyframes, ReturnType, CreateStyle } from 'zss-engine';
2
- declare class css {
3
- static create<T extends Record<string, CSSProperties>>(object: CreateStyleType<T>): ReturnType<T>;
4
- static global(object: CSSHTML): void;
5
- static defineVars<const T extends CreateVars>(object: T): { [K in keyof T]: `var(--${string & K})`; };
6
- static defineTheme<const T extends CreateTheme>(object: T): { [K in keyof T]: `var(--${string & K})`; };
7
- static keyframes(object: CreateKeyframes): string;
8
- static media: {
9
- dark: "@media (prefers-color-scheme: dark)";
10
- light: "@media (prefers-color-scheme: light)";
11
- range: <S extends string>(range: S) => `@media (${S})`;
12
- maxWidth: <V extends string | number>(value: V) => `@media (max-width: ${V}px)`;
13
- maxHeight: <V extends string | number>(value: V) => `@media (max-height: ${V}px)`;
14
- minWidth: <V extends string | number>(value: V) => `@media (min-width: ${V}px)`;
15
- minHeight: <V extends string | number>(value: V) => `@media (min-height: ${V}px)`;
16
- };
17
- static container: {
18
- range: <S extends string>(range: S) => `@container (${S})`;
19
- maxWidth: <V extends string | number>(value: V) => V extends number ? `@container (max-width: ${V}px)` : `@container (max-width: ${V})`;
20
- maxHeight: <V extends string | number>(value: V) => V extends number ? `@container (max-height: ${V}px)` : `@container (max-height: ${V})`;
21
- minWidth: <V extends string | number>(value: V) => V extends number ? `@container (min-width: ${V}px)` : `@container (min-width: ${V})`;
22
- minHeight: <V extends string | number>(value: V) => V extends number ? `@container (min-height: ${V}px)` : `@container (min-height: ${V})`;
23
- };
24
- static pseudo: {
25
- fn: {
26
- cue: <S extends string>(str: S) => `::cue(${S})`;
27
- dir: <S extends string>(str: S) => `:dir(${S})`;
28
- has: <S extends string>(str: S) => `:has(${S})`;
29
- host: <S extends string>(str: S) => `:host(${S})`;
30
- hostContext: <S extends string>(str: S) => `:host-context(${S})`;
31
- is: <S extends string>(str: S) => `:is(${S})`;
32
- lang: <S extends string>(str: S) => `:lang(${S})`;
33
- nthChild: <S extends string>(str: S) => `:nth-child(${S})`;
34
- nthLastChild: <S extends string>(str: S) => `:nth-last-child(${S})`;
35
- nthLastOfType: <S extends string>(str: S) => `:nth-last-of-type(${S})`;
36
- nthOfType: <S extends string>(str: S) => `:nth-of-type(${S})`;
37
- not: <S extends string>(str: S) => `:not(${S})`;
38
- state: <S extends string>(str: S) => `:state(${S})`;
39
- where: <S extends string>(str: S) => `:where(${S})`;
40
- highlight: <S extends string>(str: S) => `::highlight(${S})`;
41
- part: <S extends string>(str: S) => `::part(${S})`;
42
- slotted: <S extends string>(str: S) => `::slotted(${S})`;
43
- viewTransitionImagePair: <S extends string>(str: S) => `::view-transition-image-pair(${S})`;
44
- viewTransitionGroup: <S extends string>(str: S) => `::view-transition-group(${S})`;
45
- viewTransitionOld: <S extends string>(str: S) => `::view-transition-old(${S})`;
46
- viewTransitionNew: <S extends string>(str: S) => `::view-transition-new(${S})`;
47
- };
48
- active: ":active";
49
- anyLink: ":any-link";
50
- autoFill: ":autofill";
51
- buffering: ":buffering";
52
- checked: ":checked";
53
- default: ":default";
54
- defined: ":defined";
55
- disabled: ":disabled";
56
- empty: ":empty";
57
- enabled: ":enabled";
58
- first: ":first";
59
- firstChild: ":first-child";
60
- firstOfType: ":first-of-type";
61
- focus: ":focus";
62
- focusVisible: ":focus-visible";
63
- focusWithin: ":focus-within";
64
- fullscreen: ":fullscreen";
65
- future: ":future";
66
- hasSlotted: ":has-slotted";
67
- host: ":host";
68
- hover: ":hover";
69
- inRange: ":in-range";
70
- indeterminate: ":indeterminate";
71
- invalid: ":invalid";
72
- lastChild: ":last-child";
73
- lastOfType: ":last-of-type";
74
- left: ":left";
75
- link: ":link";
76
- modal: ":modal";
77
- muted: ":muted";
78
- onlyChild: ":only-child";
79
- onlyOfType: ":only-of-type";
80
- open: ":open";
81
- optional: ":optional";
82
- outOfRange: ":out-of-range";
83
- past: ":past";
84
- paused: ":paused";
85
- pictureInPicture: ":picture-in-picture";
86
- placeholderShown: ":placeholder-shown";
87
- playing: ":playing";
88
- popoverOpen: ":popover-open";
89
- readOnly: ":read-only";
90
- readWrite: ":read-write";
91
- required: ":required";
92
- right: ":right";
93
- root: ":root";
94
- scope: ":scope";
95
- seeking: ":seeking";
96
- stalled: ":stalled";
97
- target: ":target";
98
- userInvalid: ":user-invalid";
99
- userValid: ":user-valid";
100
- valid: ":valid";
101
- visited: ":visited";
102
- volumeLocked: ":volume-locked";
103
- after: "::after";
104
- backdrop: "::backdrop";
105
- before: "::before";
106
- cue: "::cue";
107
- detailsContent: "::details-content";
108
- firstSelectorButton: "::first-selector-button";
109
- firstLetter: "::first-letter";
110
- firstLine: "::first-line";
111
- grammarError: "::grammar-error";
112
- marker: "::marker";
113
- placeholder: "::placeholder";
114
- selection: "::selection";
115
- spellingError: "::spellingError";
116
- targetText: "::target-text";
117
- viewTransition: "::view-transition";
118
- };
119
- static color: {
120
- lighten: (color: string, amount: string | number) => `color-mix(in srgb, ${string}, white ${number}%)`;
121
- darken: (color: string, amount: string | number) => `color-mix(in srgb, ${string}, black ${number}%)`;
122
- primary: "#0070f3";
123
- secondary: "#ff4081";
124
- success: "#2e7d32";
125
- warning: "#ed6c02";
126
- error: "#d32f2f";
127
- aliceblue: "aliceblue";
128
- antiquewhite: "antiquewhite";
129
- aqua: "aqua";
130
- aquamarine: "aquamarine";
131
- azure: "azure";
132
- beige: "beige";
133
- bisque: "bisque";
134
- black: "black";
135
- blanchedalmond: "blanchedalmond";
136
- blue: "blue";
137
- blueviolet: "blueviolet";
138
- brown: "brown";
139
- burlywood: "burlywood";
140
- cadetblue: "cadetblue";
141
- chartreuse: "chartreuse";
142
- chocolate: "chocolate";
143
- coral: "coral";
144
- cornflowerblue: "cornflowerblue";
145
- cornsilk: "cornsilk";
146
- crimson: "crimson";
147
- cyan: "cyan";
148
- darkblue: "darkblue";
149
- darkcyan: "darkcyan";
150
- darkgoldenrod: "darkgoldenrod";
151
- darkgray: "darkgray";
152
- darkgreen: "darkgreen";
153
- darkgrey: "darkgrey";
154
- darkkhaki: "darkkhaki";
155
- darkmagenta: "darkmagenta";
156
- darkolivegreen: "darkolivegreen";
157
- darkorange: "darkorange";
158
- darkorchid: "darkorchid";
159
- darkred: "darkred";
160
- darksalmon: "darksalmon";
161
- darkseagreen: "darkseagreen";
162
- darkslateblue: "darkslateblue";
163
- darkslategray: "darkslategray";
164
- darkslategrey: "darkslategrey";
165
- darkturquoise: "darkturquoise";
166
- darkviolet: "darkviolet";
167
- deeppink: "deeppink";
168
- deepskyblue: "deepskyblue";
169
- dimgray: "dimgray";
170
- dimgrey: "dimgrey";
171
- dodgerblue: "dodgerblue";
172
- firebrick: "firebrick";
173
- floralwhite: "floralwhite";
174
- forestgreen: "forestgreen";
175
- fuchsia: "fuchsia";
176
- gainsboro: "gainsboro";
177
- ghostwhite: "ghostwhite";
178
- gold: "gold";
179
- goldenrod: "goldenrod";
180
- gray: "gray";
181
- green: "green";
182
- greenyellow: "greenyellow";
183
- grey: "grey";
184
- honeydew: "honeydew";
185
- hotpink: "hotpink";
186
- indianred: "indianred";
187
- indigo: "indigo";
188
- ivory: "ivory";
189
- khaki: "khaki";
190
- lavender: "lavender";
191
- lavenderblush: "lavenderblush";
192
- lawngreen: "lawngreen";
193
- lemonchiffon: "lemonchiffon";
194
- lightblue: "lightblue";
195
- lightcoral: "lightcoral";
196
- lightcyan: "lightcyan";
197
- lightgoldenrodyellow: "lightgoldenrodyellow";
198
- lightgray: "lightgray";
199
- lightgreen: "lightgreen";
200
- lightgrey: "lightgrey";
201
- lightpink: "lightpink";
202
- lightsalmon: "lightsalmon";
203
- lightseagreen: "lightseagreen";
204
- lightskyblue: "lightskyblue";
205
- lightslategray: "lightslategray";
206
- lightslategrey: "lightslategrey";
207
- lightsteelblue: "lightsteelblue";
208
- lightyellow: "lightyellow";
209
- lime: "lime";
210
- limegreen: "limegreen";
211
- linen: "linen";
212
- magenta: "magenta";
213
- maroon: "maroon";
214
- mediumaquamarine: "mediumaquamarine";
215
- mediumblue: "mediumblue";
216
- mediumorchid: "mediumorchid";
217
- mediumpurple: "mediumpurple";
218
- mediumseagreen: "mediumseagreen";
219
- mediumslateblue: "mediumslateblue";
220
- mediumspringgreen: "mediumspringgreen";
221
- mediumturquoise: "mediumturquoise";
222
- mediumvioletred: "mediumvioletred";
223
- midnightblue: "midnightblue";
224
- mintcream: "mintcream";
225
- mistyrose: "mistyrose";
226
- moccasin: "moccasin";
227
- navajowhite: "navajowhite";
228
- navy: "navy";
229
- oldlace: "oldlace";
230
- olive: "olive";
231
- olivedrab: "olivedrab";
232
- orange: "orange";
233
- orangered: "orangered";
234
- orchid: "orchid";
235
- palegoldenrod: "palegoldenrod";
236
- palegreen: "palegreen";
237
- paleturquoise: "paleturquoise";
238
- palevioletred: "palevioletred";
239
- papayawhip: "papayawhip";
240
- peachpuff: "peachpuff";
241
- peru: "peru";
242
- pink: "pink";
243
- plum: "plum";
244
- powderblue: "powderblue";
245
- purple: "purple";
246
- rebeccapurple: "rebeccapurple";
247
- red: "red";
248
- rosybrown: "rosybrown";
249
- royalblue: "royalblue";
250
- saddlebrown: "saddlebrown";
251
- salmon: "salmon";
252
- sandybrown: "sandybrown";
253
- seagreen: "seagreen";
254
- seashell: "seashell";
255
- sienna: "sienna";
256
- silver: "silver";
257
- skyblue: "skyblue";
258
- slateblue: "slateblue";
259
- slategray: "slategray";
260
- slategrey: "slategrey";
261
- snow: "snow";
262
- springgreen: "springgreen";
263
- steelblue: "steelblue";
264
- tan: "tan";
265
- teal: "teal";
266
- thistle: "thistle";
267
- tomato: "tomato";
268
- transparent: "transparent";
269
- turquoise: "turquoise";
270
- violet: "violet";
271
- wheat: "wheat";
272
- white: "white";
273
- whitesmoke: "whitesmoke";
274
- yellow: "yellow";
275
- yellowgreen: "yellowgreen";
276
- };
277
- }
278
- export default css;
279
- export type { CSSProperties, CSSHTML, CreateStyle };
package/types/cx.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const cx: (...strings: Array<string | null | undefined | false>) => string & ":";
2
- export default cx;
package/types/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { default as css } from './css';
2
- export { default as cx } from './cx';
3
- export { default as rx } from './rx';
4
- export type { CreateStyle, CSSProperties, CSSHTML } from './css';
@@ -1,10 +0,0 @@
1
- declare let resolvePromise_1: (value: string) => void;
2
- declare let globalPromise_1: Promise<string>;
3
- declare function initPromise_1(): void;
4
- export declare function buildCreate(filePath: string): Promise<void>;
5
- export { resolvePromise_1, globalPromise_1, initPromise_1 };
6
- declare let resolvePromise_2: (value: string) => void;
7
- declare let globalPromise_2: Promise<string>;
8
- declare function initPromise_2(): void;
9
- export declare function buildGlobal(filePath: string): Promise<void>;
10
- export { resolvePromise_2, globalPromise_2, initPromise_2 };
package/types/rx.d.ts DELETED
@@ -1,9 +0,0 @@
1
- declare const rx: (className: string, varSet: {
2
- [key: `--${string}`]: string;
3
- }) => {
4
- className: string;
5
- style: {
6
- [k: string]: string;
7
- };
8
- };
9
- export default rx;