@fluentic/style 0.1.0-beta.13 → 0.1.0-beta.14
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/CHANGELOG.md +10 -0
- package/README.md +3 -2
- package/atomic/token.ts +10 -1
- package/builder/extract/token.ts +10 -0
- package/compiler/transform/evaluator/evaluator.ts +83 -9
- package/compiler/transform/evaluator/tracer.ts +4 -0
- package/compiler/transform/extract/plugin.ts +30 -4
- package/compiler/transform/extract/utils/imports.ts +5 -1
- package/compiler/transform/extract/utils/replacement.ts +15 -3
- package/compiler/transform/extract/utils/state.ts +2 -0
- package/compiler/transform/extract/utils/token.ts +107 -0
- package/compiler/utils/constants.ts +1 -0
- package/dialect/namedTokens.ts +13 -8
- package/dist/{combine-yuoQ_qpx.js → combine-CC9bY-hu.js} +2 -2
- package/dist/{combine-yuoQ_qpx.js.map → combine-CC9bY-hu.js.map} +1 -1
- package/dist/compiler/index.mjs +1 -1
- package/dist/{compiler-BEHxZYjz.mjs → compiler-Ct5xGIeu.mjs} +164 -24
- package/dist/compiler-Ct5xGIeu.mjs.map +1 -0
- package/dist/config/index.js +2 -2
- package/dist/{config-DggQEE-4.js → config-BiiMS4rU.js} +3 -3
- package/dist/{config-DggQEE-4.js.map → config-BiiMS4rU.js.map} +1 -1
- package/dist/{config-B5nEd-TV.js → config-CCgsVvyR.js} +2 -2
- package/dist/{config-B5nEd-TV.js.map → config-CCgsVvyR.js.map} +1 -1
- package/dist/{config-BWGBkVrM.js → config-DZKR6gH1.js} +4 -4
- package/dist/{config-BWGBkVrM.js.map → config-DZKR6gH1.js.map} +1 -1
- package/dist/{config-Bqe8Y-4_.js → config-TyjNpRrV.js} +2 -2
- package/dist/{config-Bqe8Y-4_.js.map → config-TyjNpRrV.js.map} +1 -1
- package/dist/{createTransformElement-B2jSnugo.js → createTransformElement-BGznW-Mu.js} +2 -2
- package/dist/{createTransformElement-B2jSnugo.js.map → createTransformElement-BGznW-Mu.js.map} +1 -1
- package/dist/{css-CGMAis1n.js → css-BhoclXaw.js} +5 -5
- package/dist/{css-CGMAis1n.js.map → css-BhoclXaw.js.map} +1 -1
- package/dist/{css-p_5ZNny_.js → css-IecKRNxs.js} +11 -11
- package/dist/{css-p_5ZNny_.js.map → css-IecKRNxs.js.map} +1 -1
- package/dist/{css-BQRIvzwZ.js → css-WaHZ6gxv.js} +6 -2
- package/dist/css-WaHZ6gxv.js.map +1 -0
- package/dist/css.js +1 -1
- package/dist/{css_extra-DuVzUIYx.js → css_extra-DDeJc2Cu.js} +2 -2
- package/dist/{css_extra-DuVzUIYx.js.map → css_extra-DDeJc2Cu.js.map} +1 -1
- package/dist/{data-QXDBLlWs.js → data-BgZmL55Y.js} +7 -8
- package/dist/{data-QXDBLlWs.js.map → data-BgZmL55Y.js.map} +1 -1
- package/dist/{debug-CkgcZDaX.js → debug-D-1hhd0G.js} +27 -3
- package/dist/debug-D-1hhd0G.js.map +1 -0
- package/dist/dev/rsc.js +6 -6
- package/dist/{dev-DocaGP3_.js → dev-CBRbVaeq.js} +6 -7
- package/dist/{dev-DocaGP3_.js.map → dev-CBRbVaeq.js.map} +1 -1
- package/dist/dev.js +1 -1
- package/dist/dialect/extracted/index.js +1 -1
- package/dist/dialect/index.js +1 -1
- package/dist/{elementMarker-DZjd1NuA.js → elementMarker-CJcfpKL1.js} +5 -6
- package/dist/{elementMarker-DZjd1NuA.js.map → elementMarker-CJcfpKL1.js.map} +1 -1
- package/dist/entry/dev/adapter/preact.js +1 -1
- package/dist/entry/dev/adapter/react.js +1 -1
- package/dist/entry/dev/adapter/solid.js +1 -1
- package/dist/entry/dev/css.js +2 -2
- package/dist/entry/dev/jsx-dev-runtime.js +2 -2
- package/dist/entry/dev/jsx-runtime.js +2 -2
- package/dist/entry/dev.js +11 -11
- package/dist/entry/prod/css.js +2 -2
- package/dist/entry/prod/extract.js +10 -1
- package/dist/entry/prod/extract.js.map +1 -1
- package/dist/entry/prod.js +2 -2
- package/dist/entry/rsc-dev/adapter/preact.js +1 -1
- package/dist/entry/rsc-dev/adapter/react.js +1 -1
- package/dist/entry/rsc-dev/adapter/solid.js +1 -1
- package/dist/entry/rsc-dev/css.js +2 -2
- package/dist/entry/rsc-dev/dev.js +5 -5
- package/dist/entry/rsc-dev/jsx-dev-runtime.js +2 -2
- package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
- package/dist/entry/rsc-dev.js +5 -5
- package/dist/entry/rsc-prod/css.js +2 -2
- package/dist/entry/rsc-prod.js +12 -3
- package/dist/entry/rsc-prod.js.map +1 -1
- package/dist/{env-DJyXPJ9q.js → env-C8TRVSyb.js} +5 -1
- package/dist/env-C8TRVSyb.js.map +1 -0
- package/dist/getClassName-9CsXbNls.js.map +1 -1
- package/dist/{getClassName-BB_L7U_v.js → getClassName-BNe3Ycyy.js} +4 -5
- package/dist/{getClassName-BB_L7U_v.js.map → getClassName-BNe3Ycyy.js.map} +1 -1
- package/dist/{getClassName-BIqt1S41.js → getClassName-CeoxISNW.js} +4 -4
- package/dist/{getClassName-BIqt1S41.js.map → getClassName-CeoxISNW.js.map} +1 -1
- package/dist/getClassName-DtkplEIt.js.map +1 -1
- package/dist/{global-CBQGormL.js → global-CWYOol4o.js} +2 -2
- package/dist/{global-CBQGormL.js.map → global-CWYOol4o.js.map} +1 -1
- package/dist/global-UOHFwqHN.js +33 -0
- package/dist/global-UOHFwqHN.js.map +1 -0
- package/dist/{debug-0iaVEC7z.js → hash-DlXmmPPm.js} +167 -5
- package/dist/hash-DlXmmPPm.js.map +1 -0
- package/dist/index.js +9 -9
- package/dist/jsx/jsx-dev-runtime.js +1 -1
- package/dist/jsx/jsx-dev-runtime.server.js +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.server.js +1 -1
- package/dist/{jsx-BCufpzdb.js → jsx-8TwYuvgM.js} +4 -4
- package/dist/{jsx-BCufpzdb.js.map → jsx-8TwYuvgM.js.map} +1 -1
- package/dist/{jsx_runtime-Bu_A8mr4.js → jsx_runtime-CPojW0KD.js} +2 -2
- package/dist/{jsx_runtime-Bu_A8mr4.js.map → jsx_runtime-CPojW0KD.js.map} +1 -1
- package/dist/{loader-vMHuD1zT.mjs → loader-BVebGteg.mjs} +3 -3
- package/dist/{loader-vMHuD1zT.mjs.map → loader-BVebGteg.mjs.map} +1 -1
- package/dist/{misc-9EGKYkZo.mjs → misc-Bs2DgdG7.mjs} +2 -2
- package/dist/{misc-9EGKYkZo.mjs.map → misc-Bs2DgdG7.mjs.map} +1 -1
- package/dist/{namedTokens-DnpyC5XT.js → namedTokens-CwniouKk.js} +13 -9
- package/dist/namedTokens-CwniouKk.js.map +1 -0
- package/dist/plugin/farm/index.mjs +3 -3
- package/dist/plugin/nextjs/index.mjs +4 -4
- package/dist/plugin/nextjs/loader.mjs +4 -4
- package/dist/plugin/parcel/index.cjs +1 -1
- package/dist/plugin/parcel/index.mjs +2 -2
- package/dist/plugin/parcel/optimizer.cjs +1 -1
- package/dist/plugin/parcel/optimizer.mjs +2 -2
- package/dist/plugin/parcel/resolver.cjs +1 -1
- package/dist/plugin/parcel/resolver.mjs +2 -2
- package/dist/plugin/parcel/runtime.cjs +1 -1
- package/dist/plugin/parcel/runtime.mjs +1 -1
- package/dist/plugin/parcel/transformer.cjs +1 -1
- package/dist/plugin/parcel/transformer.mjs +2 -2
- package/dist/plugin/rspack/index.mjs +2 -2
- package/dist/plugin/vite/index.mjs +3 -3
- package/dist/plugin/webpack/index.mjs +2 -2
- package/dist/plugin/webpack/loader.mjs +2 -2
- package/dist/presets/tailwind/index.js +3 -3
- package/dist/{registry-DVB7n6V-.mjs → registry-D1n78rd7.mjs} +2 -2
- package/dist/{registry-DVB7n6V-.mjs.map → registry-D1n78rd7.mjs.map} +1 -1
- package/dist/{resolveClassNameRuntime-DvH6j_4N.js → resolveClassNameRuntime-BJcykzdl.js} +2 -2
- package/dist/{resolveClassNameRuntime-DvH6j_4N.js.map → resolveClassNameRuntime-BJcykzdl.js.map} +1 -1
- package/dist/{rules-znG9bsKI.js → rules-Dz-szpPu.js} +7 -8
- package/dist/{rules-znG9bsKI.js.map → rules-Dz-szpPu.js.map} +1 -1
- package/dist/server.js +13 -13
- package/dist/{shared-DaEDCb8I.cjs → shared-C9XQd8p_.cjs} +164 -24
- package/dist/shared-C9XQd8p_.cjs.map +1 -0
- package/dist/{shared-O-5Fcsxa.mjs → shared-D4-AKGn6.mjs} +4 -4
- package/dist/{shared-O-5Fcsxa.mjs.map → shared-D4-AKGn6.mjs.map} +1 -1
- package/dist/sheet-LU89fcH_.js +7 -0
- package/dist/{sheet-SlZRjOmw.js.map → sheet-LU89fcH_.js.map} +1 -1
- package/dist/{sidecar-DiYLwXbk.mjs → sidecar-CZTYX2vA.mjs} +3 -3
- package/dist/{sidecar-DiYLwXbk.mjs.map → sidecar-CZTYX2vA.mjs.map} +1 -1
- package/dist/{style-CtXEZqgx.js → style-CmXHCPF4.js} +10 -11
- package/dist/{style-CtXEZqgx.js.map → style-CmXHCPF4.js.map} +1 -1
- package/dist/{styleStore-CBan0gHQ.js → styleStore-B0x4Ahpx.js} +5 -5
- package/dist/{styleStore-CBan0gHQ.js.map → styleStore-B0x4Ahpx.js.map} +1 -1
- package/dist/{styleStore-BImBZdt6.js → styleStore-BrpgLNgc.js} +2 -2
- package/dist/{styleStore-BImBZdt6.js.map → styleStore-BrpgLNgc.js.map} +1 -1
- package/dist/{token-DyLO6Hnf.js → token-DMrBbat8.js} +5 -33
- package/dist/token-DMrBbat8.js.map +1 -0
- package/dist/{trace-C1_6fM21.js → trace-C7EzEj2Q.js} +3 -3
- package/dist/{trace-C1_6fM21.js.map → trace-C7EzEj2Q.js.map} +1 -1
- package/dist/{trace-Bsh-Kkg_.js → trace-DzCntvK4.js} +2 -2
- package/dist/{trace-Bsh-Kkg_.js.map → trace-DzCntvK4.js.map} +1 -1
- package/dist/{transform-8TIMiF5A.js → transform-CSZMklMb.js} +2 -2
- package/dist/{transform-8TIMiF5A.js.map → transform-CSZMklMb.js.map} +1 -1
- package/dist/types/builder/data/merge/utils.d.ts +6 -1
- package/dist/types/builder/data/state.d.ts +16 -2
- package/dist/types/builder/extract/token.d.ts +6 -1
- package/dist/types/builder/style_fns.d.ts +1 -1
- package/dist/types/builder/utils.d.ts +1 -1
- package/dist/types/compiler/transform/evaluator/evaluator.d.ts +18 -1
- package/dist/types/compiler/transform/extract/utils/replacement.d.ts +2 -0
- package/dist/types/compiler/transform/extract/utils/state.d.ts +1 -0
- package/dist/types/compiler/transform/extract/utils/token.d.ts +3 -0
- package/dist/types/compiler/transform/utils/selector.d.ts +1 -1
- package/dist/types/compiler/utils/constants.d.ts +1 -0
- package/dist/types/compiler/utils/import_source.d.ts +8 -2
- package/dist/types/plugin/bundler/farm/plugin.d.ts +8 -2
- package/dist/types/presets/tailwind/selectors.d.ts +24 -24
- package/dist/types/presets/tailwind/theme.d.ts +361 -361
- package/dist/types/runtime/core/cache/itemWithResolver.d.ts +1 -1
- package/dist/types/runtime/core/cache/stateItem.d.ts +8 -2
- package/dist/types/runtime/types.d.ts +4 -1
- package/dist/types/selector/presets/default.d.ts +28 -28
- package/dist/types/selector/presets/minimal.d.ts +10 -10
- package/dist/types/selector/selector.d.ts +15 -2
- package/dist/types/style/style.d.ts +93 -93
- package/dist/{utils-DoKJnvxk.js → utils-B7QcJ-Yw.js} +3 -3
- package/dist/{utils-DoKJnvxk.js.map → utils-B7QcJ-Yw.js.map} +1 -1
- package/dist/{utils-Bjh9pO87.mjs → utils-BYpkJ-uE.mjs} +3 -3
- package/dist/{utils-Bjh9pO87.mjs.map → utils-BYpkJ-uE.mjs.map} +1 -1
- package/dist/{utils-BBN9msTv.mjs → utils-CoMwEfhG.mjs} +4 -4
- package/dist/{utils-BBN9msTv.mjs.map → utils-CoMwEfhG.mjs.map} +1 -1
- package/dist/{utils-10MTZOuB.js → utils-D4KMqCu2.js} +7 -2
- package/dist/utils-D4KMqCu2.js.map +1 -0
- package/dist/utils.js +3 -3
- package/dist/{value-Dg6ALjjj.js → value-yd2SZ1XQ.js} +37 -3
- package/dist/value-yd2SZ1XQ.js.map +1 -0
- package/dist/{webpack-C1j49Psk.mjs → webpack-B6z1UHh9.mjs} +5 -5
- package/dist/{webpack-C1j49Psk.mjs.map → webpack-B6z1UHh9.mjs.map} +1 -1
- package/package.json +5 -4
- package/runtime/extract/getClassName.ts +1 -1
- package/style/token.ts +2 -0
- package/dist/compiler-BEHxZYjz.mjs.map +0 -1
- package/dist/css-BQRIvzwZ.js.map +0 -1
- package/dist/css-D7eTqvMH.js +0 -57
- package/dist/css-D7eTqvMH.js.map +0 -1
- package/dist/debug-0iaVEC7z.js.map +0 -1
- package/dist/debug-CkgcZDaX.js.map +0 -1
- package/dist/env-DJyXPJ9q.js.map +0 -1
- package/dist/hash-Cr-LCWDt.js +0 -166
- package/dist/hash-Cr-LCWDt.js.map +0 -1
- package/dist/namedTokens-DnpyC5XT.js.map +0 -1
- package/dist/shared-DaEDCb8I.cjs.map +0 -1
- package/dist/sheet-SlZRjOmw.js +0 -7
- package/dist/token-DyLO6Hnf.js.map +0 -1
- package/dist/utils-10MTZOuB.js.map +0 -1
- package/dist/value-Dg6ALjjj.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SheetData, SlotData, StyleData } from "../../../builder/data/data.js";
|
|
2
2
|
import { type StyleTokenValues, type TokenValueResolver } from "./tokenValues.js";
|
|
3
3
|
export declare function createResolvedStyleItemWithResolver<Data extends StyleData | SheetData | SlotData>(data: Data, tokens: StyleTokenValues | null, resolver: TokenValueResolver): import("./item.js").ResolvedStyleItem<Data>;
|
|
4
|
-
export declare function getDirectStyleItemWithResolver(item: StyleData | SheetData | SlotData, resolver: TokenValueResolver): import("./item.js").ResolvedStyleItem<
|
|
4
|
+
export declare function getDirectStyleItemWithResolver(item: StyleData | SheetData | SlotData, resolver: TokenValueResolver): import("./item.js").ResolvedStyleItem<StyleData | SheetData | SlotData>;
|
|
@@ -3,6 +3,12 @@ import type { AtRuleRefData } from "../../../style/valueRef.js";
|
|
|
3
3
|
import type { StyleTokenValues } from "./tokenValues.js";
|
|
4
4
|
export declare function getStateItemDedupe(item: StateItem): string;
|
|
5
5
|
export declare function getStateItemClassName(item: StateItem): string;
|
|
6
|
-
export declare function getStateItemVariableValue(item: StateItem, tokens: StyleTokenValues | null): [
|
|
6
|
+
export declare function getStateItemVariableValue(item: StateItem, tokens: StyleTokenValues | null): [
|
|
7
|
+
string,
|
|
8
|
+
unknown
|
|
9
|
+
] | null;
|
|
7
10
|
export declare function getStateItemAtRuleRef(item: StateItem): AtRuleRefData | null;
|
|
8
|
-
export declare function getStateItemAtRuleRefVariables(item: StateItem, tokens: StyleTokenValues | null): [
|
|
11
|
+
export declare function getStateItemAtRuleRefVariables(item: StateItem, tokens: StyleTokenValues | null): [
|
|
12
|
+
string,
|
|
13
|
+
unknown
|
|
14
|
+
][] | null;
|
|
@@ -17,7 +17,10 @@ export type RuntimeStyleAttributes = {
|
|
|
17
17
|
};
|
|
18
18
|
export type ElementDebugData = {
|
|
19
19
|
$$elementDebug: true;
|
|
20
|
-
loc: [
|
|
20
|
+
loc: [
|
|
21
|
+
line: number,
|
|
22
|
+
column: number
|
|
23
|
+
];
|
|
21
24
|
label: string;
|
|
22
25
|
sourceUrl: string;
|
|
23
26
|
code?: string;
|
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
export declare const Selectors: {
|
|
2
|
-
media: import("../index.js").Selector<"@media $$", string>;
|
|
3
|
-
container: import("../index.js").Selector<"@container $$", string>;
|
|
4
|
-
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
5
|
-
attr: import("../index.js").Selector<"$", string>;
|
|
6
|
-
select: import("../index.js").Selector<"$$", string>;
|
|
7
|
-
merge: import("../index.js").Selector<"...", string>;
|
|
8
|
-
not: import("../index.js").Selector<":not($$)", string>;
|
|
9
|
-
is: import("../index.js").Selector<":is($$)", string>;
|
|
10
|
-
where: import("../index.js").Selector<":where($$)", string>;
|
|
11
|
-
has: import("../index.js").Selector<":has($$)", string>;
|
|
12
|
-
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
13
|
-
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
14
|
-
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
15
|
-
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
16
|
-
lang: import("../index.js").Selector<":lang($)", string>;
|
|
17
|
-
dir: import("../index.js").Selector<":dir($)", string>;
|
|
18
|
-
before: import("../index.js").Selector<"::before", string>;
|
|
19
|
-
after: import("../index.js").Selector<"::after", string>;
|
|
20
2
|
hover: import("../index.js").Selector<":hover", string>;
|
|
21
3
|
active: import("../index.js").Selector<":active", string>;
|
|
22
4
|
focus: import("../index.js").Selector<":focus", string>;
|
|
@@ -51,14 +33,8 @@ export declare const Selectors: {
|
|
|
51
33
|
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
52
34
|
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
53
35
|
modal: import("../index.js").Selector<":modal", string>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
media: import("../index.js").Selector<"@media $$", string>;
|
|
57
|
-
container: import("../index.js").Selector<"@container $$", string>;
|
|
58
|
-
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
59
|
-
attr: import("../index.js").Selector<"$", string>;
|
|
60
|
-
select: import("../index.js").Selector<"$$", string>;
|
|
61
|
-
merge: import("../index.js").Selector<"...", string>;
|
|
36
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
37
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
62
38
|
not: import("../index.js").Selector<":not($$)", string>;
|
|
63
39
|
is: import("../index.js").Selector<":is($$)", string>;
|
|
64
40
|
where: import("../index.js").Selector<":where($$)", string>;
|
|
@@ -69,8 +45,14 @@ export declare const PrioritySelectors: {
|
|
|
69
45
|
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
70
46
|
lang: import("../index.js").Selector<":lang($)", string>;
|
|
71
47
|
dir: import("../index.js").Selector<":dir($)", string>;
|
|
72
|
-
|
|
73
|
-
|
|
48
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
49
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
50
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
51
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
52
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
53
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
54
|
+
};
|
|
55
|
+
export declare const PrioritySelectors: {
|
|
74
56
|
hover: import("../index.js").Selector<":hover", string>;
|
|
75
57
|
active: import("../index.js").Selector<":active", string>;
|
|
76
58
|
focus: import("../index.js").Selector<":focus", string>;
|
|
@@ -105,4 +87,22 @@ export declare const PrioritySelectors: {
|
|
|
105
87
|
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
106
88
|
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
107
89
|
modal: import("../index.js").Selector<":modal", string>;
|
|
90
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
91
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
92
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
93
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
94
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
95
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
96
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
97
|
+
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
98
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
99
|
+
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
100
|
+
lang: import("../index.js").Selector<":lang($)", string>;
|
|
101
|
+
dir: import("../index.js").Selector<":dir($)", string>;
|
|
102
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
103
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
104
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
105
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
106
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
107
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
108
108
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const MinimalSelectors: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
2
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
3
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
5
4
|
attr: import("../index.js").Selector<"$", string>;
|
|
6
5
|
select: import("../index.js").Selector<"$$", string>;
|
|
7
6
|
merge: import("../index.js").Selector<"...", string>;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
8
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
9
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
10
10
|
hover: import("../index.js").Selector<":hover", string>;
|
|
11
11
|
active: import("../index.js").Selector<":active", string>;
|
|
12
12
|
focus: import("../index.js").Selector<":focus", string>;
|
|
@@ -22,14 +22,14 @@ export declare const MinimalSelectors: {
|
|
|
22
22
|
has: import("../index.js").Selector<":has($$)", string>;
|
|
23
23
|
};
|
|
24
24
|
export declare const MinimalPrioritySelectors: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
25
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
26
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
28
27
|
attr: import("../index.js").Selector<"$", string>;
|
|
29
28
|
select: import("../index.js").Selector<"$$", string>;
|
|
30
29
|
merge: import("../index.js").Selector<"...", string>;
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
31
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
32
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
33
33
|
hover: import("../index.js").Selector<":hover", string>;
|
|
34
34
|
active: import("../index.js").Selector<":active", string>;
|
|
35
35
|
focus: import("../index.js").Selector<":focus", string>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { Selector, SelectorAssert, SelectorAssertFn } from "./types.js";
|
|
2
|
-
type SelectorArgs = [
|
|
2
|
+
type SelectorArgs = [
|
|
3
|
+
] | [
|
|
4
|
+
SelectorAssert | null
|
|
5
|
+
] | [
|
|
6
|
+
number
|
|
7
|
+
] | [
|
|
8
|
+
number,
|
|
9
|
+
SelectorAssert | null
|
|
10
|
+
];
|
|
3
11
|
type SelectorAssertArg<Assert> = Assert extends SelectorAssertFn<infer Arg> ? Arg extends string ? Arg : string : string;
|
|
4
|
-
type SelectorArg<Args extends SelectorArgs> = Args extends [
|
|
12
|
+
type SelectorArg<Args extends SelectorArgs> = Args extends [
|
|
13
|
+
infer Assert
|
|
14
|
+
] ? SelectorAssertArg<Assert> : Args extends [
|
|
15
|
+
number,
|
|
16
|
+
infer Assert
|
|
17
|
+
] ? SelectorAssertArg<Assert> : string;
|
|
5
18
|
export declare function selector<const T extends string, const Args extends SelectorArgs>(selector: T, ...args: Args): Selector<T, SelectorArg<Args>>;
|
|
6
19
|
type SelectorString<T extends Selector> = T extends Selector<infer T> ? T : unknown;
|
|
7
20
|
type PrioritySelectors<Selectors extends Record<string, Selector>> = {
|
|
@@ -14,24 +14,6 @@ export type StyleFnMeta = {
|
|
|
14
14
|
transform: ClassNameTransform;
|
|
15
15
|
};
|
|
16
16
|
export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSProperties, {
|
|
17
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
18
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
19
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
20
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
21
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
22
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
23
|
-
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
24
|
-
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
25
|
-
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
26
|
-
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
27
|
-
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
28
|
-
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
29
|
-
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
30
|
-
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
31
|
-
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
32
|
-
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
33
|
-
before: import("../selector/index.js").Selector<"::before", string>;
|
|
34
|
-
after: import("../selector/index.js").Selector<"::after", string>;
|
|
35
17
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
36
18
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
37
19
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -66,26 +48,26 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
66
48
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
67
49
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
68
50
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
51
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
52
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
53
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
54
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
55
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
56
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
57
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
58
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
59
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
60
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
61
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
62
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
63
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
64
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
65
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
66
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
67
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
68
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
69
69
|
}> & {
|
|
70
70
|
(style?: import("./types.js").StyleObject<CSSProperties> | undefined): import("../builder/data/index.js").StyleData<CSSProperties> & import("../builder/types/fns.js").StyleSelectorFns<CSSProperties, {
|
|
71
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
72
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
73
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
74
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
75
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
76
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
77
|
-
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
78
|
-
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
79
|
-
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
80
|
-
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
81
|
-
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
82
|
-
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
83
|
-
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
84
|
-
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
85
|
-
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
86
|
-
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
87
|
-
before: import("../selector/index.js").Selector<"::before", string>;
|
|
88
|
-
after: import("../selector/index.js").Selector<"::after", string>;
|
|
89
71
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
90
72
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
91
73
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -120,14 +102,8 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
120
102
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
121
103
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
122
104
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
126
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
127
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
128
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
129
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
130
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
105
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
106
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
131
107
|
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
132
108
|
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
133
109
|
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
@@ -138,8 +114,14 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
138
114
|
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
139
115
|
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
140
116
|
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
141
|
-
|
|
142
|
-
|
|
117
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
118
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
119
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
120
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
121
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
122
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
123
|
+
}> & import("../utils/type.js").Collapse;
|
|
124
|
+
slot: import("../builder/types/fns.js").SlotSelfFn<CSSProperties, {
|
|
143
125
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
144
126
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
145
127
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -174,14 +156,8 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
174
156
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
175
157
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
176
158
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
180
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
181
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
182
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
183
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
184
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
159
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
160
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
185
161
|
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
186
162
|
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
187
163
|
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
@@ -192,8 +168,14 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
192
168
|
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
193
169
|
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
194
170
|
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
195
|
-
|
|
196
|
-
|
|
171
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
172
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
173
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
174
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
175
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
176
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
177
|
+
}>;
|
|
178
|
+
scope: import("../builder/index.js").ScopeSelfFn<{
|
|
197
179
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
198
180
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
199
181
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -228,13 +210,8 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
228
210
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
229
211
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
230
212
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
234
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
235
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
236
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
237
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
213
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
214
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
238
215
|
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
239
216
|
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
240
217
|
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
@@ -245,8 +222,13 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
245
222
|
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
246
223
|
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
247
224
|
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
248
|
-
|
|
249
|
-
|
|
225
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
226
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
227
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
228
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
229
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
230
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
231
|
+
}> & import("../builder/data/index.js").BuilderData<unknown, 4> & ((slot: import("../builder/data/index.js").SlotData<any>) => import("../builder/data/index.js").ScopeTargetData) & import("../builder/types/fns.js").ScopeSelectorFns<{
|
|
250
232
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
251
233
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
252
234
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -281,6 +263,24 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
281
263
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
282
264
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
283
265
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
266
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
267
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
268
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
269
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
270
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
271
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
272
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
273
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
274
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
275
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
276
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
277
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
278
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
279
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
280
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
281
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
282
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
283
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
284
284
|
} & import("../utils/type.js").Collapse>;
|
|
285
285
|
weight: <const T>(value: T, weight: number) => import("./weight.js").StyleWeightValue<T>;
|
|
286
286
|
important: <const T>(value: T) => import("./important.js").StyleImportantValue<T>;
|
|
@@ -290,24 +290,6 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
290
290
|
merge: <Target>(target: Target, ...styles: import("../builder/index.js").MergeRuleStyleData[]) => Target;
|
|
291
291
|
selector: {
|
|
292
292
|
(selector: import("../builder/selector_override_core.js").ManualSelectorInput): import("../builder/index.js").SelectorBuilder<CSSProperties, {
|
|
293
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
294
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
295
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
296
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
297
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
298
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
299
|
-
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
300
|
-
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
301
|
-
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
302
|
-
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
303
|
-
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
304
|
-
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
305
|
-
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
306
|
-
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
307
|
-
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
308
|
-
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
309
|
-
before: import("../selector/index.js").Selector<"::before", string>;
|
|
310
|
-
after: import("../selector/index.js").Selector<"::after", string>;
|
|
311
293
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
312
294
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
313
295
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -342,14 +324,8 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
342
324
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
343
325
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
344
326
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
348
|
-
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
349
|
-
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
350
|
-
attr: import("../selector/index.js").Selector<"$", string>;
|
|
351
|
-
select: import("../selector/index.js").Selector<"$$", string>;
|
|
352
|
-
merge: import("../selector/index.js").Selector<"...", string>;
|
|
327
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
328
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
353
329
|
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
354
330
|
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
355
331
|
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
@@ -360,8 +336,14 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
360
336
|
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
361
337
|
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
362
338
|
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
363
|
-
|
|
364
|
-
|
|
339
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
340
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
341
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
342
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
343
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
344
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
345
|
+
}>;
|
|
346
|
+
(selector: import("../builder/selector_override_core.js").ManualSelectorInput, style: import("../builder/index.js").SelectorOverrideStyleData<CSSProperties>): import("../builder/index.js").SelectorOverrideBuilder<CSSProperties, {
|
|
365
347
|
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
366
348
|
active: import("../selector/index.js").Selector<":active", string>;
|
|
367
349
|
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
@@ -396,6 +378,24 @@ export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSPro
|
|
|
396
378
|
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
397
379
|
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
398
380
|
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
381
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
382
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
383
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
384
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
385
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
386
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
387
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
388
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
389
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
390
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
391
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
392
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
393
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
394
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
395
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
396
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
397
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
398
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
399
399
|
}>;
|
|
400
400
|
};
|
|
401
401
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getClassName } from "./getClassName-
|
|
2
|
-
import { t as createTransformElement } from "./createTransformElement-
|
|
1
|
+
import { t as getClassName } from "./getClassName-CeoxISNW.js";
|
|
2
|
+
import { t as createTransformElement } from "./createTransformElement-BGznW-Mu.js";
|
|
3
3
|
//#region runtime/rsc/jsx.ts
|
|
4
4
|
const transformElement = createTransformElement(getClassName);
|
|
5
5
|
//#endregion
|
|
@@ -39,4 +39,4 @@ function createJsx(fn, transformElement) {
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { transformElement as a, wrapFragment as i, createJsxDEV as n, wrapCreateElement as r, createJsx as t };
|
|
41
41
|
|
|
42
|
-
//# sourceMappingURL=utils-
|
|
42
|
+
//# sourceMappingURL=utils-B7QcJ-Yw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-B7QcJ-Yw.js","names":[],"sources":["../runtime/rsc/jsx.ts","../jsx/utils.ts"],"sourcesContent":["import { createTransformElement } from '../core/createTransformElement';\nimport { getClassName } from './getClassName';\n\nexport const transformElement = createTransformElement(getClassName);\n","import type { createElement, ElementType, Fragment } from 'react';\nimport type { jsxDEV } from 'react/jsx-dev-runtime';\nimport type { jsx, jsxs } from 'react/jsx-runtime';\n\nexport type FnJsxDEV = typeof jsxDEV;\nexport type FnJsx = typeof jsx;\nexport type FnJsxs = typeof jsxs;\nexport type FnCreateElement = typeof createElement;\n\nexport type TransformElementArgs = {\n type: ElementType;\n props: unknown;\n source?: unknown;\n};\n\nexport type TransformElement = {\n (args: TransformElementArgs): TransformElementArgs;\n};\n\nexport function wrapCreateElement(\n createElement: FnCreateElement,\n transformElement: TransformElement,\n): FnCreateElement {\n const fn = (type: ElementType, props: unknown, ...children: []) => {\n const result = transformElement({ type, props });\n\n return createElement(result.type, result.props, ...children);\n };\n\n return fn as FnCreateElement;\n}\n\nexport function wrapFragment(\n fragment: typeof Fragment,\n) {\n return fragment;\n}\n\nexport function createJsxDEV(\n fn: FnJsxDEV,\n transformElement: TransformElement,\n): FnJsxDEV {\n return (type, props, key, isStatic, source, self) => {\n const result = transformElement({ type, props, source });\n\n return fn(result.type, result.props, key, isStatic, source, self);\n };\n}\n\nexport function createJsx(\n fn: FnJsx,\n transformElement: TransformElement,\n): FnJsx {\n return (type, props, key) => {\n const result = transformElement({ type, props });\n\n return fn(result.type, result.props, key);\n };\n}\n"],"mappings":";;;AAGA,MAAa,mBAAmB,uBAAuB,YAAY;;;ACgBnE,SAAgB,kBACd,eACA,kBACiB;CACjB,MAAM,MAAM,MAAmB,OAAgB,GAAG,aAAiB;EACjE,MAAM,SAAS,iBAAiB;GAAE;GAAM;EAAM,CAAC;EAE/C,OAAO,cAAc,OAAO,MAAM,OAAO,OAAO,GAAG,QAAQ;CAC7D;CAEA,OAAO;AACT;AAEA,SAAgB,aACd,UACA;CACA,OAAO;AACT;AAEA,SAAgB,aACd,IACA,kBACU;CACV,QAAQ,MAAM,OAAO,KAAK,UAAU,QAAQ,SAAS;EACnD,MAAM,SAAS,iBAAiB;GAAE;GAAM;GAAO;EAAO,CAAC;EAEvD,OAAO,GAAG,OAAO,MAAM,OAAO,OAAO,KAAK,UAAU,QAAQ,IAAI;CAClE;AACF;AAEA,SAAgB,UACd,IACA,kBACO;CACP,QAAQ,MAAM,OAAO,QAAQ;EAC3B,MAAM,SAAS,iBAAiB;GAAE;GAAM;EAAM,CAAC;EAE/C,OAAO,GAAG,OAAO,MAAM,OAAO,OAAO,GAAG;CAC1C;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as normalizePath } from "./compiler-
|
|
2
|
-
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-
|
|
1
|
+
import { s as normalizePath } from "./compiler-Ct5xGIeu.mjs";
|
|
2
|
+
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-D1n78rd7.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region plugin/bundler/webpack/utils.ts
|
|
@@ -46,4 +46,4 @@ function prependEntryImport(entryImport, runtimeFilePath) {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
export { prependWebpackRuntimeEntry as a, hasWebpackCssMarker as i, getStylePackageDistPath as n, replaceWebpackCssMarker as o, getTransformLoaderPath as r, webpackRegistry as s, createWebpackRuntimeModuleSource as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=utils-
|
|
49
|
+
//# sourceMappingURL=utils-BYpkJ-uE.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-BYpkJ-uE.mjs","names":[],"sources":["../plugin/bundler/webpack/utils.ts"],"sourcesContent":["import { createRequire } from 'node:module';\nimport path from 'node:path';\nimport type { EntryNormalized } from 'webpack';\nimport { normalizePath } from '../../../compiler/utils/path';\nimport { SIDECAR_URL_GLOBAL_SYMBOL } from '../../../config/utils';\nimport type { PluginCompiler } from '../../utils';\nimport { STYLE_IMPORTS } from '../../utils/imports';\nimport { createWebpackRegistry } from './shared/registry';\n\ntype WebpackStaticEntry = Exclude<EntryNormalized, () => Promise<unknown>>;\ntype WebpackEntryDescription = WebpackStaticEntry[string];\n\nexport type WebpackLoaderState = {\n transform: PluginCompiler['transform'];\n};\n\nexport const webpackRegistry = createWebpackRegistry('webpack.registry');\n\nexport function getTransformLoaderPath() {\n return createRequire(import.meta.url).resolve(STYLE_IMPORTS.Plugin + '/webpack/loader');\n}\n\nexport function getStylePackageDistPath() {\n return path.resolve(path.dirname(getTransformLoaderPath()), '../..');\n}\n\nexport function createWebpackRuntimeModuleSource(\n extract: boolean,\n cssFilePath: string | null,\n options: {\n runtimeImportPath?: string | null;\n sidecarUrl?: string | null;\n } = {},\n) {\n return [\n extract && cssFilePath && `import ${JSON.stringify(normalizePath(cssFilePath))};`,\n options.sidecarUrl && options.runtimeImportPath && `import ${JSON.stringify(options.runtimeImportPath)};`,\n options.sidecarUrl &&\n `globalThis[Symbol.for(${JSON.stringify(SIDECAR_URL_GLOBAL_SYMBOL)})] = ${JSON.stringify(options.sidecarUrl)};`,\n '',\n ].filter(Boolean).join('\\n');\n}\n\nexport function replaceWebpackCssMarker(\n source: string,\n marker: string,\n css: string,\n) {\n return source.replace(marker, css);\n}\n\nexport function hasWebpackCssMarker(source: string, marker: string) {\n return source.includes(marker);\n}\n\nexport function prependWebpackRuntimeEntry(\n entry: EntryNormalized,\n runtimeFilePath: string,\n): EntryNormalized {\n if (typeof entry === 'function') {\n return async () => prependWebpackRuntimeStaticEntry(await entry(), runtimeFilePath);\n }\n\n return prependWebpackRuntimeStaticEntry(entry, runtimeFilePath);\n}\n\nfunction prependWebpackRuntimeStaticEntry(\n entry: WebpackStaticEntry,\n runtimeFilePath: string,\n): WebpackStaticEntry {\n const result: WebpackStaticEntry = {};\n\n for (const [key, value] of Object.entries(entry)) {\n result[key] = prependWebpackRuntimeEntryDescription(value, runtimeFilePath);\n }\n\n return result;\n}\n\nfunction prependWebpackRuntimeEntryDescription(\n entry: WebpackEntryDescription,\n runtimeFilePath: string,\n): WebpackEntryDescription {\n if (!entry.import) return entry;\n\n return {\n ...entry,\n import: prependEntryImport(entry.import, runtimeFilePath),\n };\n}\n\nfunction prependEntryImport(entryImport: string[], runtimeFilePath: string) {\n return entryImport.includes(runtimeFilePath)\n ? entryImport\n : [runtimeFilePath, ...entryImport];\n}\n"],"mappings":";;;;;AAgBA,MAAa,kBAAkB,sBAAsB,kBAAkB;AAEvE,SAAgB,yBAAyB;CACvC,OAAO,cAAc,OAAO,KAAK,GAAG,EAAE,QAAQ,cAAc,SAAS,iBAAiB;AACxF;AAEA,SAAgB,0BAA0B;CACxC,OAAO,KAAK,QAAQ,KAAK,QAAQ,uBAAuB,CAAC,GAAG,OAAO;AACrE;AAEA,SAAgB,iCACd,SACA,aACA,UAGI,CAAC,GACL;CACA,OAAO;EACL,WAAW,eAAe,UAAU,KAAK,UAAU,cAAc,WAAW,CAAC,EAAE;EAC/E,QAAQ,cAAc,QAAQ,qBAAqB,UAAU,KAAK,UAAU,QAAQ,iBAAiB,EAAE;EACvG,QAAQ,cACR,yBAAyB,KAAK,UAAA,4BAAmC,EAAE,OAAO,KAAK,UAAU,QAAQ,UAAU,EAAE;EAC7G;CACF,EAAE,OAAO,OAAO,EAAE,KAAK,IAAI;AAC7B;AAEA,SAAgB,wBACd,QACA,QACA,KACA;CACA,OAAO,OAAO,QAAQ,QAAQ,GAAG;AACnC;AAEA,SAAgB,oBAAoB,QAAgB,QAAgB;CAClE,OAAO,OAAO,SAAS,MAAM;AAC/B;AAEA,SAAgB,2BACd,OACA,iBACiB;CACjB,IAAI,OAAO,UAAU,YACnB,OAAO,YAAY,iCAAiC,MAAM,MAAM,GAAG,eAAe;CAGpF,OAAO,iCAAiC,OAAO,eAAe;AAChE;AAEA,SAAS,iCACP,OACA,iBACoB;CACpB,MAAM,SAA6B,CAAC;CAEpC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,OAAO,OAAO,sCAAsC,OAAO,eAAe;CAG5E,OAAO;AACT;AAEA,SAAS,sCACP,OACA,iBACyB;CACzB,IAAI,CAAC,MAAM,QAAQ,OAAO;CAE1B,OAAO;EACL,GAAG;EACH,QAAQ,mBAAmB,MAAM,QAAQ,eAAe;CAC1D;AACF;AAEA,SAAS,mBAAmB,aAAuB,iBAAyB;CAC1E,OAAO,YAAY,SAAS,eAAe,IACvC,cACA,CAAC,iBAAiB,GAAG,WAAW;AACtC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as getStyleFnMeta, s as normalizePath } from "./compiler-
|
|
2
|
-
import { f as resolvePluginSourcemapOptions, h as getPluginBuildDevConfig, m as getPluginBuildConfig } from "./misc-
|
|
3
|
-
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-
|
|
1
|
+
import { c as getStyleFnMeta, s as normalizePath } from "./compiler-Ct5xGIeu.mjs";
|
|
2
|
+
import { f as resolvePluginSourcemapOptions, h as getPluginBuildDevConfig, m as getPluginBuildConfig } from "./misc-Bs2DgdG7.mjs";
|
|
3
|
+
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-D1n78rd7.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -179,4 +179,4 @@ function replaceCssMarkerAsset(args) {
|
|
|
179
179
|
//#endregion
|
|
180
180
|
export { DEV_CSS_ROUTE as _, createNextBuildDevConfig as a, getNextCacheDir as c, isAppLayoutFile as d, nextRegistry as f, CSS_ENTRY_IMPORT_PATH as g, resolveNextCompilerOptions as h, createNextBuildConfig as i, getNextPrecollectCacheSubdir as l, replaceCssMarkerAsset as m, addAliases as n, createNextConfigHash as o, removeUndefinedValues as p, addWebpackPlugin as r, createSerializableImportSources as s, NEXT_COMPILER_IDS as t, getTransformLoaderPath as u, LOADER_IMPORT_PATH as v };
|
|
181
181
|
|
|
182
|
-
//# sourceMappingURL=utils-
|
|
182
|
+
//# sourceMappingURL=utils-CoMwEfhG.mjs.map
|