@fluentic/style 0.1.0-beta.13 → 0.1.0-beta.15
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 +22 -0
- package/README.md +3 -2
- package/atomic/className.ts +4 -0
- package/atomic/rule.ts +15 -7
- package/atomic/token.ts +10 -1
- package/atomic/utils/selector.ts +12 -3
- package/builder/classname/class_name_builder.ts +1 -1
- package/builder/data/const.ts +2 -0
- package/builder/data/data.ts +1 -1
- package/builder/data/merge/scope.ts +7 -0
- package/builder/data/merge/style.ts +12 -3
- package/builder/data/state.ts +1 -0
- package/builder/extract/token.ts +10 -0
- package/builder/selector_override.ts +1 -1
- package/builder/selector_override_core.ts +17 -3
- package/builder/types/alias.ts +1 -1
- package/compiler/extract/extract.ts +21 -75
- package/compiler/extract/types.ts +4 -1
- package/compiler/transform/debug/plugin.ts +22 -0
- package/compiler/transform/evaluator/evaluator.ts +87 -10
- package/compiler/transform/evaluator/tracer.ts +4 -0
- package/compiler/transform/extract/chain/chain.ts +82 -22
- package/compiler/transform/extract/chain/extract_chain.ts +2 -0
- package/compiler/transform/extract/plugin.ts +81 -29
- package/compiler/transform/extract/utils/imports.ts +8 -1
- package/compiler/transform/extract/utils/replacement.ts +17 -5
- package/compiler/transform/extract/utils/state.ts +2 -0
- package/compiler/transform/extract/utils/token.ts +107 -0
- package/compiler/transform/utils/babel.ts +1 -1
- package/compiler/utils/constants.ts +2 -0
- package/config/config/css.ts +5 -3
- package/config/configure.ts +4 -0
- package/config/document.ts +23 -0
- package/css/globalSheet.ts +66 -0
- package/css/index.ts +4 -1
- package/css/sheet.ts +34 -14
- package/dialect/namedTokens.ts +13 -8
- package/dist/{className-yhJCGT0F.js → className-CC5PHcXI.js} +9 -2
- package/dist/className-CC5PHcXI.js.map +1 -0
- package/dist/{combine-yuoQ_qpx.js → combine-BpOQWCtM.js} +5 -5
- package/dist/combine-BpOQWCtM.js.map +1 -0
- package/dist/compiler/index.mjs +1 -1
- package/dist/{compiler-BEHxZYjz.mjs → compiler-AOb_VaKQ.mjs} +626 -188
- package/dist/compiler-AOb_VaKQ.mjs.map +1 -0
- package/dist/config/index.js +2 -2
- package/dist/{config-B5nEd-TV.js → config-B70LIQhi.js} +2 -2
- package/dist/{config-B5nEd-TV.js.map → config-B70LIQhi.js.map} +1 -1
- package/dist/{config-BWGBkVrM.js → config-BF-mxuPk.js} +4 -4
- package/dist/{config-BWGBkVrM.js.map → config-BF-mxuPk.js.map} +1 -1
- package/dist/config-B_OQYZSm.js +57 -0
- package/dist/config-B_OQYZSm.js.map +1 -0
- package/dist/{css-BQRIvzwZ.js → css-C7tcD3IO.js} +615 -213
- package/dist/css-C7tcD3IO.js.map +1 -0
- package/dist/css-Cdxkur4h.js +414 -0
- package/dist/css-Cdxkur4h.js.map +1 -0
- package/dist/{css-p_5ZNny_.js → css-RohOR3Vq.js} +112 -73
- package/dist/css-RohOR3Vq.js.map +1 -0
- package/dist/css.js +2 -2
- package/dist/css_extra-BC1Z_hDy.js +8 -0
- package/dist/{css_extra-DuVzUIYx.js.map → css_extra-BC1Z_hDy.js.map} +1 -1
- package/dist/{css_extra-DuVzUIYx.js → css_extra-CuzJtAR_.js} +2 -2
- package/dist/css_extra-CuzJtAR_.js.map +1 -0
- package/dist/{data-QXDBLlWs.js → data-Bw3Xod5J.js} +28 -20
- package/dist/data-Bw3Xod5J.js.map +1 -0
- package/dist/{debug-CkgcZDaX.js → debug-CVO3xx4C.js} +24 -3
- package/dist/debug-CVO3xx4C.js.map +1 -0
- package/dist/dev/rsc.js +134 -25
- package/dist/dev/rsc.js.map +1 -1
- package/dist/{dev-DocaGP3_.js → dev-BnQXPLQB.js} +6 -7
- package/dist/{dev-DocaGP3_.js.map → dev-BnQXPLQB.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-BrHXg161.js} +334 -54
- package/dist/elementMarker-BrHXg161.js.map +1 -0
- 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 +3 -3
- 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/adapter/preact.js +1 -1
- package/dist/entry/prod/adapter/react.js +1 -1
- package/dist/entry/prod/adapter/solid.js +1 -1
- package/dist/entry/prod/css.js +3 -3
- package/dist/entry/prod/extract.js +10 -1
- package/dist/entry/prod/extract.js.map +1 -1
- package/dist/entry/prod.js +3 -3
- 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 +4 -3
- package/dist/entry/rsc-dev/dev.js +129 -24
- package/dist/entry/rsc-dev/dev.js.map +1 -1
- package/dist/entry/rsc-dev/jsx-dev-runtime.js +5 -4
- package/dist/entry/rsc-dev/jsx-dev-runtime.js.map +1 -1
- package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
- package/dist/entry/rsc-dev.js +8 -7
- package/dist/entry/rsc-dev.js.map +1 -1
- package/dist/entry/rsc-prod/css.js +4 -4
- package/dist/entry/rsc-prod.js +14 -5
- package/dist/entry/rsc-prod.js.map +1 -1
- package/dist/{rules-znG9bsKI.js → env-D6daex-9.js} +64 -20
- package/dist/env-D6daex-9.js.map +1 -0
- package/dist/{getClassName-DtkplEIt.js → getClassName-5yYUibKw.js} +2 -2
- package/dist/{getClassName-DtkplEIt.js.map → getClassName-5yYUibKw.js.map} +1 -1
- package/dist/getClassName-9CsXbNls.js.map +1 -1
- package/dist/{getClassName-BIqt1S41.js → getClassName-B3azD1TO.js} +6 -4
- package/dist/getClassName-B3azD1TO.js.map +1 -0
- package/dist/{getClassName-BB_L7U_v.js → getClassName-m5DOkMFQ.js} +4 -5
- package/dist/{getClassName-BB_L7U_v.js.map → getClassName-m5DOkMFQ.js.map} +1 -1
- package/dist/global-DeIYtcdl.js +36 -0
- package/dist/global-DeIYtcdl.js.map +1 -0
- package/dist/{css-CGMAis1n.js → globalSheet-CdgVpvCb.js} +185 -426
- package/dist/globalSheet-CdgVpvCb.js.map +1 -0
- package/dist/{debug-0iaVEC7z.js → hash-DCJkLls_.js} +168 -6
- package/dist/hash-DCJkLls_.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 +3 -3
- package/dist/jsx/jsx-dev-runtime.server.js.map +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.server.js +4 -4
- package/dist/jsx/jsx-runtime.server.js.map +1 -1
- package/dist/{jsx-BCufpzdb.js → jsx-CvloSSpb.js} +4 -4
- package/dist/{jsx-BCufpzdb.js.map → jsx-CvloSSpb.js.map} +1 -1
- package/dist/jsx_runtime-pt7DOZOE.js +13 -0
- package/dist/jsx_runtime-pt7DOZOE.js.map +1 -0
- package/dist/{loader-vMHuD1zT.mjs → loader-fAuIjIik.mjs} +3 -3
- package/dist/{loader-vMHuD1zT.mjs.map → loader-fAuIjIik.mjs.map} +1 -1
- package/dist/{misc-9EGKYkZo.mjs → misc-CyZgGtc9.mjs} +3 -3
- package/dist/{misc-9EGKYkZo.mjs.map → misc-CyZgGtc9.mjs.map} +1 -1
- package/dist/{namedTokens-DnpyC5XT.js → namedTokens-DwgmUMBM.js} +13 -9
- package/dist/namedTokens-DwgmUMBM.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 +7 -5
- package/dist/plugin/nextjs/loader.mjs.map +1 -1
- 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-BMijh1CM.mjs} +2 -2
- package/dist/{registry-DVB7n6V-.mjs.map → registry-BMijh1CM.mjs.map} +1 -1
- package/dist/{resolveClassNameRuntime-DvH6j_4N.js → resolveClassNameRuntime-B6vKNL5y.js} +2 -2
- package/dist/{resolveClassNameRuntime-DvH6j_4N.js.map → resolveClassNameRuntime-B6vKNL5y.js.map} +1 -1
- package/dist/server.js +87 -17
- package/dist/server.js.map +1 -1
- package/dist/{shared-O-5Fcsxa.mjs → shared-BfASWZo1.mjs} +4 -4
- package/dist/{shared-O-5Fcsxa.mjs.map → shared-BfASWZo1.mjs.map} +1 -1
- package/dist/{shared-DaEDCb8I.cjs → shared-DY0kuBcN.cjs} +622 -184
- package/dist/shared-DY0kuBcN.cjs.map +1 -0
- package/dist/sheet-B-5idGtZ.js +9 -0
- package/dist/sheet-B-5idGtZ.js.map +1 -0
- package/dist/{config-Bqe8Y-4_.js → sheet-C6ymGhKV.js} +23 -2
- package/dist/sheet-C6ymGhKV.js.map +1 -0
- package/dist/sheet-D4f9KYPf.js +1 -0
- package/dist/{sidecar-DiYLwXbk.mjs → sidecar-cCzTDkzg.mjs} +3 -3
- package/dist/{sidecar-DiYLwXbk.mjs.map → sidecar-cCzTDkzg.mjs.map} +1 -1
- package/dist/{style-CtXEZqgx.js → style-a6ccye6R.js} +12 -13
- package/dist/style-a6ccye6R.js.map +1 -0
- package/dist/styleStore-Ceoaqa5U.js +45 -0
- package/dist/styleStore-Ceoaqa5U.js.map +1 -0
- package/dist/{env-DJyXPJ9q.js → styleStore-D1IEmq1v.js} +439 -63
- package/dist/styleStore-D1IEmq1v.js.map +1 -0
- package/dist/{token-DyLO6Hnf.js → token-Ci73NE6h.js} +5 -33
- package/dist/token-Ci73NE6h.js.map +1 -0
- package/dist/{trace-C1_6fM21.js → trace-DDsvwdF0.js} +3 -3
- package/dist/{trace-C1_6fM21.js.map → trace-DDsvwdF0.js.map} +1 -1
- package/dist/{trace-Bsh-Kkg_.js → trace-uHVvnYiw.js} +2 -2
- package/dist/{trace-Bsh-Kkg_.js.map → trace-uHVvnYiw.js.map} +1 -1
- package/dist/{transform-8TIMiF5A.js → transform-BkxIouPX.js} +2 -2
- package/dist/{transform-8TIMiF5A.js.map → transform-BkxIouPX.js.map} +1 -1
- package/dist/types/atomic/className.d.ts +2 -2
- package/dist/types/atomic/utils/selector.d.ts +2 -1
- package/dist/types/builder/data/const.d.ts +1 -0
- package/dist/types/builder/data/data.d.ts +1 -1
- package/dist/types/builder/data/merge/utils.d.ts +6 -1
- package/dist/types/builder/data/state.d.ts +17 -2
- package/dist/types/builder/extract/token.d.ts +6 -1
- package/dist/types/builder/selector_override.d.ts +1 -1
- package/dist/types/builder/selector_override_core.d.ts +2 -0
- package/dist/types/builder/style_fns.d.ts +1 -1
- package/dist/types/builder/types/alias.d.ts +2 -2
- package/dist/types/builder/utils.d.ts +1 -1
- package/dist/types/compiler/extract/types.d.ts +7 -1
- package/dist/types/compiler/transform/evaluator/evaluator.d.ts +18 -1
- package/dist/types/compiler/transform/extract/chain/extract_chain.d.ts +2 -0
- 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 +2 -0
- package/dist/types/compiler/utils/import_source.d.ts +8 -2
- package/dist/types/config/config/css.d.ts +2 -1
- package/dist/types/config/configure.d.ts +2 -0
- package/dist/types/config/document.d.ts +3 -0
- package/dist/types/css/globalSheet.d.ts +24 -0
- package/dist/types/css/index.d.ts +4 -1
- package/dist/types/css/sheet.d.ts +3 -2
- package/dist/types/entry/rsc_dev/css.d.ts +1 -0
- 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/rsc/constants.d.ts +2 -0
- package/dist/types/runtime/rsc/dev.d.ts +5 -0
- package/dist/types/runtime/rsc/getClassName.d.ts +3 -0
- package/dist/types/runtime/rsc/globalSheet.d.ts +22 -0
- package/dist/types/runtime/rsc/observer.d.ts +5 -0
- package/dist/types/runtime/rsc/styleStore.d.ts +2 -0
- package/dist/types/runtime/sheet/document.d.ts +3 -0
- 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/sheet/ordered.d.ts +4 -0
- package/dist/types/sheet/ordering.d.ts +15 -0
- package/dist/types/sheet/types.d.ts +7 -0
- package/dist/types/style/important.d.ts +2 -1
- package/dist/types/style/style.d.ts +95 -95
- package/dist/{utils-BBN9msTv.mjs → utils-BO6Ix8t5.mjs} +4 -4
- package/dist/{utils-BBN9msTv.mjs.map → utils-BO6Ix8t5.mjs.map} +1 -1
- package/dist/{utils-DoKJnvxk.js → utils-CB70kIh6.js} +3 -3
- package/dist/{utils-DoKJnvxk.js.map → utils-CB70kIh6.js.map} +1 -1
- package/dist/{utils-Bjh9pO87.mjs → utils-EG9gh2g3.mjs} +3 -3
- package/dist/{utils-Bjh9pO87.mjs.map → utils-EG9gh2g3.mjs.map} +1 -1
- package/dist/{utils-10MTZOuB.js → utils-sG7IWYP6.js} +1091 -643
- package/dist/utils-sG7IWYP6.js.map +1 -0
- package/dist/utils.js +3 -3
- package/dist/{value-Dg6ALjjj.js → value-B-ThmbY-.js} +47 -6
- package/dist/value-B-ThmbY-.js.map +1 -0
- package/dist/{webpack-C1j49Psk.mjs → webpack-WXAJ3IYn.mjs} +5 -5
- package/dist/{webpack-C1j49Psk.mjs.map → webpack-WXAJ3IYn.mjs.map} +1 -1
- package/entry/dev/sheet.ts +4 -1
- package/entry/rsc_dev/css.ts +2 -0
- package/jsx/rsc/jsx_dev_runtime.ts +11 -2
- package/jsx/rsc/jsx_runtime.ts +14 -3
- package/package.json +5 -4
- package/plugin/nextjs/loader.ts +18 -2
- package/runtime/core/elementMarker.ts +9 -3
- package/runtime/extract/getClassName.ts +1 -1
- package/runtime/rsc/constants.ts +3 -0
- package/runtime/rsc/dev.ts +31 -15
- package/runtime/rsc/getClassName.ts +6 -0
- package/runtime/rsc/globalSheet.ts +130 -0
- package/runtime/rsc/observer.ts +118 -15
- package/runtime/rsc/styleStore.ts +12 -36
- package/runtime/sheet/document.ts +28 -0
- package/runtime/sheet/global-prod.ts +3 -5
- package/runtime/sheet/global.ts +3 -5
- package/runtime/sheet/rule.ts +4 -2
- package/runtime/sheet/rules.ts +3 -0
- package/sheet/dev/dev_sort.ts +5 -1
- package/sheet/dev/index.ts +23 -3
- package/sheet/ordered.ts +188 -0
- package/sheet/ordering.ts +138 -0
- package/sheet/prod.ts +17 -5
- package/sheet/types.ts +4 -0
- package/style/important.ts +3 -1
- package/style/style.ts +1 -1
- package/style/token.ts +2 -0
- package/utils/trace.ts +1 -0
- package/dist/className-yhJCGT0F.js.map +0 -1
- package/dist/combine-yuoQ_qpx.js.map +0 -1
- package/dist/compiler-BEHxZYjz.mjs.map +0 -1
- package/dist/config-Bqe8Y-4_.js.map +0 -1
- package/dist/config-DggQEE-4.js +0 -36
- package/dist/config-DggQEE-4.js.map +0 -1
- package/dist/createTransformElement-B2jSnugo.js +0 -34
- package/dist/createTransformElement-B2jSnugo.js.map +0 -1
- package/dist/css-BQRIvzwZ.js.map +0 -1
- package/dist/css-CGMAis1n.js.map +0 -1
- package/dist/css-D7eTqvMH.js +0 -57
- package/dist/css-D7eTqvMH.js.map +0 -1
- package/dist/css-p_5ZNny_.js.map +0 -1
- package/dist/data-QXDBLlWs.js.map +0 -1
- package/dist/debug-0iaVEC7z.js.map +0 -1
- package/dist/debug-CkgcZDaX.js.map +0 -1
- package/dist/elementMarker-DZjd1NuA.js.map +0 -1
- package/dist/env-DJyXPJ9q.js.map +0 -1
- package/dist/getClassName-BIqt1S41.js.map +0 -1
- package/dist/global-CBQGormL.js +0 -14
- package/dist/global-CBQGormL.js.map +0 -1
- package/dist/hash-Cr-LCWDt.js +0 -166
- package/dist/hash-Cr-LCWDt.js.map +0 -1
- package/dist/jsx_runtime-Bu_A8mr4.js +0 -12
- package/dist/jsx_runtime-Bu_A8mr4.js.map +0 -1
- package/dist/namedTokens-DnpyC5XT.js.map +0 -1
- package/dist/rules-znG9bsKI.js.map +0 -1
- package/dist/shared-DaEDCb8I.cjs.map +0 -1
- package/dist/sheet-SlZRjOmw.js +0 -7
- package/dist/sheet-SlZRjOmw.js.map +0 -1
- package/dist/style-CtXEZqgx.js.map +0 -1
- package/dist/styleStore-BImBZdt6.js +0 -57
- package/dist/styleStore-BImBZdt6.js.map +0 -1
- package/dist/styleStore-CBan0gHQ.js +0 -60
- package/dist/styleStore-CBan0gHQ.js.map +0 -1
- package/dist/token-DyLO6Hnf.js.map +0 -1
- package/dist/utils-10MTZOuB.js.map +0 -1
- package/dist/value-Dg6ALjjj.js.map +0 -1
|
@@ -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,33 +263,33 @@ 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
|
-
important: <const T>(value: T) => import("./important.js").StyleImportantValue<T>;
|
|
286
|
+
important: <const T>(value: T, native?: boolean) => import("./important.js").StyleImportantValue<T>;
|
|
287
287
|
raw: <T extends import("./types.js").StyleObject<CSSProperties>>(style: T) => T;
|
|
288
288
|
plain: <T extends import("./types.js").PlainStyleObject<CSSProperties>>(style: T) => T;
|
|
289
289
|
keyframes: <T extends import("./keyframes.js").StyleKeyframesObject<CSSProperties>>(frames: T) => import("./valueRef.js").AtRuleRef;
|
|
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
|
};
|
|
@@ -410,7 +410,7 @@ export declare function createStyleFn<Style = CSSProperties, const Selectors ext
|
|
|
410
410
|
slot: import("../builder/types/fns.js").SlotSelfFn<Style, Selectors>;
|
|
411
411
|
scope: import("../builder/index.js").ScopeSelfFn<Selectors> & 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<Selectors & import("../utils/type.js").Collapse>;
|
|
412
412
|
weight: <const T>(value: T, weight: number) => import("./weight.js").StyleWeightValue<T>;
|
|
413
|
-
important: <const T>(value: T) => import("./important.js").StyleImportantValue<T>;
|
|
413
|
+
important: <const T>(value: T, native?: boolean) => import("./important.js").StyleImportantValue<T>;
|
|
414
414
|
raw: <T extends import("./types.js").StyleObject<Style>>(style: T) => T;
|
|
415
415
|
plain: <T extends import("./types.js").PlainStyleObject<Style>>(style: T) => T;
|
|
416
416
|
keyframes: <T extends import("./keyframes.js").StyleKeyframesObject<Style>>(frames: T) => import("./valueRef.js").AtRuleRef;
|
|
@@ -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-AOb_VaKQ.mjs";
|
|
2
|
+
import { f as resolvePluginSourcemapOptions, h as getPluginBuildDevConfig, m as getPluginBuildConfig } from "./misc-CyZgGtc9.mjs";
|
|
3
|
+
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-BMijh1CM.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-BO6Ix8t5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-BBN9msTv.mjs","names":[],"sources":["../plugin/nextjs/constants.ts","../plugin/nextjs/utils.ts"],"sourcesContent":["import { STYLE_IMPORTS } from '../utils/imports';\n\nexport const DEV_CSS_ROUTE = '/__fluentic/dev.css';\n\nexport const LOADER_IMPORT_PATH = STYLE_IMPORTS.Plugin + '/nextjs/loader';\n\nexport const CSS_ENTRY_IMPORT_PATH = STYLE_IMPORTS.Plugin + '/nextjs/bundle.css';\n","import { createHash } from 'node:crypto';\nimport fs from 'node:fs';\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport type { Compilation, Compiler, WebpackPluginInstance } from 'webpack';\nimport type { Compiler as PluginCompiler } from '../../compiler';\nimport type { ImportSource } from '../../compiler/utils/import_source';\nimport { normalizePath } from '../../compiler/utils/path';\nimport type { BuildConfig, BuildDevConfig } from '../../config/build';\nimport { getStyleFnMeta } from '../../style/style';\nimport { createWebpackRegistry } from '../bundler/webpack/shared/registry';\nimport type { FileCssCache } from '../utils/cache';\nimport type { PluginOptions as BasePluginOptions } from '../utils/compiler';\nimport type { TransformFilter } from '../utils/filter';\nimport { getPluginBuildConfig, getPluginBuildDevConfig } from '../utils/runtimeEntry';\nimport type { SourcemapSidecar } from '../utils/sidecar';\nimport { resolvePluginSourcemapOptions } from '../utils/sourcemap';\nimport { LOADER_IMPORT_PATH } from './constants';\nimport type { PluginOptions, WebpackConfiguration } from './types';\n\nexport const nextRegistry = createWebpackRegistry('nextjs.registry');\n\nexport const PRECOLLECT_CACHE_DIRS = {\n dev: 'nextjs/precollect/dev',\n prod: 'nextjs/precollect/prod',\n};\n\nexport const NEXT_COMPILER_IDS = {\n turbopack: 'nextjs:turbopack',\n webpackServer: 'nextjs:webpack-server',\n webpackClient: 'nextjs:webpack-client',\n};\n\nexport type { PluginCompiler };\n\nexport type NextLoaderState = {\n compiler: PluginCompiler;\n filter: TransformFilter;\n dev: boolean;\n isServer: boolean;\n configHash: string;\n devCssHref: string | null;\n cssEntryImportPath: string;\n cssCache: Pick<FileCssCache, 'setFileCss'> | null;\n};\n\nexport type NextWebpackEntryValue = string | string[] | {\n import?: string | string[];\n [key: string]: unknown;\n};\n\nexport function getTransformLoaderPath() {\n return createRequire(import.meta.url).resolve(LOADER_IMPORT_PATH);\n}\n\nexport function getNextCacheDir(rootDir: string, cacheDir?: string) {\n return cacheDir ?? path.join(rootDir, '.next/cache/fluentic-style');\n}\n\nexport function getNextPrecollectCacheSubdir(dev: boolean) {\n return dev ? PRECOLLECT_CACHE_DIRS.dev : PRECOLLECT_CACHE_DIRS.prod;\n}\n\nexport function createNextBuildConfig(options: PluginOptions): BuildConfig {\n return getPluginBuildConfig(options);\n}\n\nexport function createNextBuildDevConfig(options: PluginOptions): BuildDevConfig | null {\n return getPluginBuildDevConfig(options);\n}\n\nexport function createNextConfigHash(\n buildConfig: BuildConfig,\n dev: boolean,\n importSources?: readonly ImportSource[] | null,\n) {\n const values = [\n createPackageCacheIdentity(),\n dev ? 'dev' : 'prod',\n buildConfig.hoist ? 'hoist' : 'no-hoist',\n JSON.stringify(createSerializableImportSources(importSources)),\n ];\n\n return createHash('sha256').update(values.join('\\0')).digest('hex');\n}\n\nfunction createPackageCacheIdentity() {\n const require = createRequire(import.meta.url);\n let entryPath = '';\n\n try {\n entryPath = require.resolve('@fluentic/style/plugin/nextjs');\n } catch {\n entryPath = fileURLToPath(import.meta.url);\n }\n\n const packageInfo = findPackageInfo(entryPath);\n const parts = [\n packageInfo.version,\n normalizePath(packageInfo.packageRoot),\n normalizePath(entryPath),\n getStatIdentity(packageInfo.packageJsonPath),\n getStatIdentity(entryPath),\n ];\n\n return parts.join('\\0');\n}\n\nfunction findPackageInfo(entryPath: string) {\n let current = path.dirname(entryPath);\n\n while (true) {\n const packageJsonPath = path.join(current, 'package.json');\n\n try {\n const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) as {\n name?: string;\n version?: string;\n };\n\n if (pkg.name === '@fluentic/style') {\n return {\n packageRoot: current,\n packageJsonPath,\n version: pkg.version ?? '',\n };\n }\n } catch {\n // Keep walking toward the filesystem root.\n }\n\n const parent = path.dirname(current);\n if (parent === current) break;\n current = parent;\n }\n\n return {\n packageRoot: path.dirname(entryPath),\n packageJsonPath: '',\n version: '',\n };\n}\n\nfunction getStatIdentity(filePath: string) {\n if (!filePath) return '';\n\n try {\n const stat = fs.statSync(filePath);\n return `${stat.size}:${stat.mtimeMs}`;\n } catch {\n return '';\n }\n}\n\nexport function createSerializableImportSources(\n importSources: readonly ImportSource[] | null | undefined,\n): ImportSource[] | undefined {\n if (!importSources?.length) return undefined;\n\n const result: ImportSource[] = [];\n\n for (const entry of importSources) {\n if (entry.check) continue;\n\n const source = serializeImportSourcePattern(entry.source);\n const name = entry.name;\n const meta = entry.meta ?? (entry.styleFn ? getStyleFnMeta(entry.styleFn) : null);\n\n if (!meta) continue;\n if (entry.source !== undefined && source === undefined) continue;\n\n result.push(removeUndefinedValues({\n source,\n name,\n meta,\n }));\n }\n\n return result.length ? result : undefined;\n}\n\nfunction serializeImportSourcePattern(\n source: ImportSource['source'],\n): string | string[] | undefined {\n if (source === undefined) return undefined;\n\n if (Array.isArray(source)) {\n const result: string[] = [];\n\n for (const item of source) {\n if (typeof item !== 'string') return undefined;\n result.push(item);\n }\n\n return result;\n }\n\n return typeof source === 'string' ? source : undefined;\n}\n\nexport function resolveNextCompilerOptions(\n options: PluginOptions,\n sidecar: SourcemapSidecar | null,\n buildConfig: BuildConfig,\n buildDevConfig: BuildDevConfig | null,\n dev: boolean,\n): BasePluginOptions {\n const resolved = resolvePluginSourcemapOptions({\n ...options,\n devSourcemap: dev ? 'sidecarServer' : 'sourceUrl',\n }, sidecar);\n\n return {\n ...resolved,\n css: {\n ...resolved.css,\n ...buildConfig.css,\n },\n dev: {\n ...resolved.dev,\n ...buildDevConfig,\n },\n };\n}\n\nexport function removeUndefinedValues<T>(value: T): T {\n if (Array.isArray(value)) {\n return value.map((item) => removeUndefinedValues(item)) as T;\n }\n\n if (!value || typeof value !== 'object') {\n return value;\n }\n\n const result: Record<string, unknown> = {};\n\n for (const [key, item] of Object.entries(value)) {\n if (item !== undefined) {\n result[key] = removeUndefinedValues(item);\n }\n }\n\n return result as T;\n}\n\nexport function prependClientEntry(entry: unknown, moduleId: string) {\n if (typeof entry === 'function') {\n return async () => prependClientEntry(await entry(), moduleId);\n }\n\n if (!entry || typeof entry !== 'object') return entry;\n\n const result: Record<string, unknown> = {};\n\n for (const [key, value] of Object.entries(entry)) {\n result[key] = prependEntryValue(value as NextWebpackEntryValue, moduleId);\n }\n\n return result;\n}\n\nexport function prependEntryValue(entry: NextWebpackEntryValue, moduleId: string): NextWebpackEntryValue {\n if (typeof entry === 'string') {\n return entry === moduleId ? entry : [moduleId, entry];\n }\n\n if (Array.isArray(entry)) {\n return entry.includes(moduleId) ? entry : [moduleId, ...entry];\n }\n\n const imports = entry.import;\n if (!imports) return { ...entry, import: moduleId };\n\n return {\n ...entry,\n import: Array.isArray(imports)\n ? imports.includes(moduleId) ? imports : [moduleId, ...imports]\n : imports === moduleId\n ? imports\n : [moduleId, imports],\n };\n}\n\nexport function isAppLayoutFile(filePath: string) {\n return /\\/app\\/(?:[^/]+\\/)*layout\\.[cm]?[jt]sx?$/.test(normalizePath(filePath));\n}\n\nexport function hasCssMarker(source: string, marker: string) {\n return source.includes(marker);\n}\n\nexport function replaceCssMarker(source: string, marker: string, css: string) {\n return source.split(marker).join(css);\n}\n\nexport function addAliases(config: WebpackConfiguration, aliases: Record<string, string>) {\n if (!config.resolve) config.resolve = {};\n if (!config.resolve.alias) config.resolve.alias = {};\n Object.assign(config.resolve.alias, aliases);\n}\n\nexport function addWebpackPlugin(config: WebpackConfiguration, plugin: WebpackPluginInstance) {\n if (!config.plugins) config.plugins = [];\n config.plugins.push(plugin);\n}\n\nexport function replaceCssMarkerAsset(args: {\n compiler: Compiler;\n compilation: Compilation;\n css: string;\n marker: string;\n}) {\n for (const asset of args.compilation.getAssets()) {\n if (!asset.name.endsWith('.css')) continue;\n\n const source = asset.source.source().toString();\n if (!hasCssMarker(source, args.marker)) continue;\n\n args.compilation.updateAsset(\n asset.name,\n new args.compiler.webpack.sources.RawSource(\n replaceCssMarker(source, args.marker, args.css),\n ),\n );\n\n return true;\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;;AAEA,MAAa,gBAAgB;AAE7B,MAAa,qBAAqB,cAAc,SAAS;AAEzD,MAAa,wBAAwB,cAAc,SAAS;;;ACe5D,MAAa,eAAe,sBAAsB,iBAAiB;AAEnE,MAAa,wBAAwB;CACnC,KAAK;CACL,MAAM;AACR;AAEA,MAAa,oBAAoB;CAC/B,WAAW;CACX,eAAe;CACf,eAAe;AACjB;AAoBA,SAAgB,yBAAyB;CACvC,OAAO,cAAc,OAAO,KAAK,GAAG,EAAE,QAAQ,kBAAkB;AAClE;AAEA,SAAgB,gBAAgB,SAAiB,UAAmB;CAClE,OAAO,YAAY,KAAK,KAAK,SAAS,4BAA4B;AACpE;AAEA,SAAgB,6BAA6B,KAAc;CACzD,OAAO,MAAM,sBAAsB,MAAM,sBAAsB;AACjE;AAEA,SAAgB,sBAAsB,SAAqC;CACzE,OAAO,qBAAqB,OAAO;AACrC;AAEA,SAA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ts"],"sourcesContent":["import { STYLE_IMPORTS } from '../utils/imports';\n\nexport const DEV_CSS_ROUTE = '/__fluentic/dev.css';\n\nexport const LOADER_IMPORT_PATH = STYLE_IMPORTS.Plugin + '/nextjs/loader';\n\nexport const CSS_ENTRY_IMPORT_PATH = STYLE_IMPORTS.Plugin + '/nextjs/bundle.css';\n","import { createHash } from 'node:crypto';\nimport fs from 'node:fs';\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport type { Compilation, Compiler, WebpackPluginInstance } from 'webpack';\nimport type { Compiler as PluginCompiler } from '../../compiler';\nimport type { ImportSource } from '../../compiler/utils/import_source';\nimport { normalizePath } from '../../compiler/utils/path';\nimport type { BuildConfig, BuildDevConfig } from '../../config/build';\nimport { getStyleFnMeta } from '../../style/style';\nimport { createWebpackRegistry } from '../bundler/webpack/shared/registry';\nimport type { FileCssCache } from '../utils/cache';\nimport type { PluginOptions as BasePluginOptions } from '../utils/compiler';\nimport type { TransformFilter } from '../utils/filter';\nimport { getPluginBuildConfig, getPluginBuildDevConfig } from '../utils/runtimeEntry';\nimport type { SourcemapSidecar } from '../utils/sidecar';\nimport { resolvePluginSourcemapOptions } from '../utils/sourcemap';\nimport { LOADER_IMPORT_PATH } from './constants';\nimport type { PluginOptions, WebpackConfiguration } from './types';\n\nexport const nextRegistry = createWebpackRegistry('nextjs.registry');\n\nexport const PRECOLLECT_CACHE_DIRS = {\n dev: 'nextjs/precollect/dev',\n prod: 'nextjs/precollect/prod',\n};\n\nexport const NEXT_COMPILER_IDS = {\n turbopack: 'nextjs:turbopack',\n webpackServer: 'nextjs:webpack-server',\n webpackClient: 'nextjs:webpack-client',\n};\n\nexport type { PluginCompiler };\n\nexport type NextLoaderState = {\n compiler: PluginCompiler;\n filter: TransformFilter;\n dev: boolean;\n isServer: boolean;\n configHash: string;\n devCssHref: string | null;\n cssEntryImportPath: string;\n cssCache: Pick<FileCssCache, 'setFileCss'> | null;\n};\n\nexport type NextWebpackEntryValue = string | string[] | {\n import?: string | string[];\n [key: string]: unknown;\n};\n\nexport function getTransformLoaderPath() {\n return createRequire(import.meta.url).resolve(LOADER_IMPORT_PATH);\n}\n\nexport function getNextCacheDir(rootDir: string, cacheDir?: string) {\n return cacheDir ?? path.join(rootDir, '.next/cache/fluentic-style');\n}\n\nexport function getNextPrecollectCacheSubdir(dev: boolean) {\n return dev ? PRECOLLECT_CACHE_DIRS.dev : PRECOLLECT_CACHE_DIRS.prod;\n}\n\nexport function createNextBuildConfig(options: PluginOptions): BuildConfig {\n return getPluginBuildConfig(options);\n}\n\nexport function createNextBuildDevConfig(options: PluginOptions): BuildDevConfig | null {\n return getPluginBuildDevConfig(options);\n}\n\nexport function createNextConfigHash(\n buildConfig: BuildConfig,\n dev: boolean,\n importSources?: readonly ImportSource[] | null,\n) {\n const values = [\n createPackageCacheIdentity(),\n dev ? 'dev' : 'prod',\n buildConfig.hoist ? 'hoist' : 'no-hoist',\n JSON.stringify(createSerializableImportSources(importSources)),\n ];\n\n return createHash('sha256').update(values.join('\\0')).digest('hex');\n}\n\nfunction createPackageCacheIdentity() {\n const require = createRequire(import.meta.url);\n let entryPath = '';\n\n try {\n entryPath = require.resolve('@fluentic/style/plugin/nextjs');\n } catch {\n entryPath = fileURLToPath(import.meta.url);\n }\n\n const packageInfo = findPackageInfo(entryPath);\n const parts = [\n packageInfo.version,\n normalizePath(packageInfo.packageRoot),\n normalizePath(entryPath),\n getStatIdentity(packageInfo.packageJsonPath),\n getStatIdentity(entryPath),\n ];\n\n return parts.join('\\0');\n}\n\nfunction findPackageInfo(entryPath: string) {\n let current = path.dirname(entryPath);\n\n while (true) {\n const packageJsonPath = path.join(current, 'package.json');\n\n try {\n const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) as {\n name?: string;\n version?: string;\n };\n\n if (pkg.name === '@fluentic/style') {\n return {\n packageRoot: current,\n packageJsonPath,\n version: pkg.version ?? '',\n };\n }\n } catch {\n // Keep walking toward the filesystem root.\n }\n\n const parent = path.dirname(current);\n if (parent === current) break;\n current = parent;\n }\n\n return {\n packageRoot: path.dirname(entryPath),\n packageJsonPath: '',\n version: '',\n };\n}\n\nfunction getStatIdentity(filePath: string) {\n if (!filePath) return '';\n\n try {\n const stat = fs.statSync(filePath);\n return `${stat.size}:${stat.mtimeMs}`;\n } catch {\n return '';\n }\n}\n\nexport function createSerializableImportSources(\n importSources: readonly ImportSource[] | null | undefined,\n): ImportSource[] | undefined {\n if (!importSources?.length) return undefined;\n\n const result: ImportSource[] = [];\n\n for (const entry of importSources) {\n if (entry.check) continue;\n\n const source = serializeImportSourcePattern(entry.source);\n const name = entry.name;\n const meta = entry.meta ?? (entry.styleFn ? getStyleFnMeta(entry.styleFn) : null);\n\n if (!meta) continue;\n if (entry.source !== undefined && source === undefined) continue;\n\n result.push(removeUndefinedValues({\n source,\n name,\n meta,\n }));\n }\n\n return result.length ? result : undefined;\n}\n\nfunction serializeImportSourcePattern(\n source: ImportSource['source'],\n): string | string[] | undefined {\n if (source === undefined) return undefined;\n\n if (Array.isArray(source)) {\n const result: string[] = [];\n\n for (const item of source) {\n if (typeof item !== 'string') return undefined;\n result.push(item);\n }\n\n return result;\n }\n\n return typeof source === 'string' ? source : undefined;\n}\n\nexport function resolveNextCompilerOptions(\n options: PluginOptions,\n sidecar: SourcemapSidecar | null,\n buildConfig: BuildConfig,\n buildDevConfig: BuildDevConfig | null,\n dev: boolean,\n): BasePluginOptions {\n const resolved = resolvePluginSourcemapOptions({\n ...options,\n devSourcemap: dev ? 'sidecarServer' : 'sourceUrl',\n }, sidecar);\n\n return {\n ...resolved,\n css: {\n ...resolved.css,\n ...buildConfig.css,\n },\n dev: {\n ...resolved.dev,\n ...buildDevConfig,\n },\n };\n}\n\nexport function removeUndefinedValues<T>(value: T): T {\n if (Array.isArray(value)) {\n return value.map((item) => removeUndefinedValues(item)) as T;\n }\n\n if (!value || typeof value !== 'object') {\n return value;\n }\n\n const result: Record<string, unknown> = {};\n\n for (const [key, item] of Object.entries(value)) {\n if (item !== undefined) {\n result[key] = removeUndefinedValues(item);\n }\n }\n\n return result as T;\n}\n\nexport function prependClientEntry(entry: unknown, moduleId: string) {\n if (typeof entry === 'function') {\n return async () => prependClientEntry(await entry(), moduleId);\n }\n\n if (!entry || typeof entry !== 'object') return entry;\n\n const result: Record<string, unknown> = {};\n\n for (const [key, value] of Object.entries(entry)) {\n result[key] = prependEntryValue(value as NextWebpackEntryValue, moduleId);\n }\n\n return result;\n}\n\nexport function prependEntryValue(entry: NextWebpackEntryValue, moduleId: string): NextWebpackEntryValue {\n if (typeof entry === 'string') {\n return entry === moduleId ? entry : [moduleId, entry];\n }\n\n if (Array.isArray(entry)) {\n return entry.includes(moduleId) ? entry : [moduleId, ...entry];\n }\n\n const imports = entry.import;\n if (!imports) return { ...entry, import: moduleId };\n\n return {\n ...entry,\n import: Array.isArray(imports)\n ? imports.includes(moduleId) ? imports : [moduleId, ...imports]\n : imports === moduleId\n ? imports\n : [moduleId, imports],\n };\n}\n\nexport function isAppLayoutFile(filePath: string) {\n return /\\/app\\/(?:[^/]+\\/)*layout\\.[cm]?[jt]sx?$/.test(normalizePath(filePath));\n}\n\nexport function hasCssMarker(source: string, marker: string) {\n return source.includes(marker);\n}\n\nexport function replaceCssMarker(source: string, marker: string, css: string) {\n return source.split(marker).join(css);\n}\n\nexport function addAliases(config: WebpackConfiguration, aliases: Record<string, string>) {\n if (!config.resolve) config.resolve = {};\n if (!config.resolve.alias) config.resolve.alias = {};\n Object.assign(config.resolve.alias, aliases);\n}\n\nexport function addWebpackPlugin(config: WebpackConfiguration, plugin: WebpackPluginInstance) {\n if (!config.plugins) config.plugins = [];\n config.plugins.push(plugin);\n}\n\nexport function replaceCssMarkerAsset(args: {\n compiler: Compiler;\n compilation: Compilation;\n css: string;\n marker: string;\n}) {\n for (const asset of args.compilation.getAssets()) {\n if (!asset.name.endsWith('.css')) continue;\n\n const source = asset.source.source().toString();\n if (!hasCssMarker(source, args.marker)) continue;\n\n args.compilation.updateAsset(\n asset.name,\n new args.compiler.webpack.sources.RawSource(\n replaceCssMarker(source, args.marker, args.css),\n ),\n );\n\n return true;\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;;AAEA,MAAa,gBAAgB;AAE7B,MAAa,qBAAqB,cAAc,SAAS;AAEzD,MAAa,wBAAwB,cAAc,SAAS;;;ACe5D,MAAa,eAAe,sBAAsB,iBAAiB;AAEnE,MAAa,wBAAwB;CACnC,KAAK;CACL,MAAM;AACR;AAEA,MAAa,oBAAoB;CAC/B,WAAW;CACX,eAAe;CACf,eAAe;AACjB;AAoBA,SAAgB,yBAAyB;CACvC,OAAO,cAAc,OAAO,KAAK,GAAG,EAAE,QAAQ,kBAAkB;AAClE;AAEA,SAAgB,gBAAgB,SAAiB,UAAmB;CAClE,OAAO,YAAY,KAAK,KAAK,SAAS,4BAA4B;AACpE;AAEA,SAAgB,6BAA6B,KAAc;CACzD,OAAO,MAAM,sBAAsB,MAAM,sBAAsB;AACjE;AAEA,SAAgB,sBAAsB,SAAqC;CACzE,OAAO,qBAAqB,OAAO;AACrC;AAEA,SAAgB,yBAAyB,SAA+C;CACtF,OAAO,wBAAwB,OAAO;AACxC;AAEA,SAAgB,qBACd,aACA,KACA,eACA;CACA,MAAM,SAAS;EACb,2BAA2B;EAC3B,MAAM,QAAQ;EACd,YAAY,QAAQ,UAAU;EAC9B,KAAK,UAAU,gCAAgC,aAAa,CAAC;CAC/D;CAEA,OAAO,WAAW,QAAQ,EAAE,OAAO,OAAO,KAAK,IAAI,CAAC,EAAE,OAAO,KAAK;AACpE;AAEA,SAAS,6BAA6B;CACpC,MAAM,UAAU,cAAc,OAAO,KAAK,GAAG;CAC7C,IAAI,YAAY;CAEhB,IAAI;EACF,YAAY,QAAQ,QAAQ,+BAA+B;CAC7D,QAAQ;EACN,YAAY,cAAc,OAAO,KAAK,GAAG;CAC3C;CAEA,MAAM,cAAc,gBAAgB,SAAS;CAS7C,OAAO;EAPL,YAAY;EACZ,c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,QAAQ,OAAO,OAAO,QAAQ,QAAQ,CAAC;CACnD,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO;AAC7C;AAEA,SAAgB,iBAAiB,QAA8B,QAA+B;CAC5F,IAAI,CAAC,OAAO,SAAS,OAAO,UAAU,CAAC;CACvC,OAAO,QAAQ,KAAK,MAAM;AAC5B;AAEA,SAAgB,sBAAsB,MAKnC;CACD,KAAK,MAAM,SAAS,KAAK,YAAY,UAAU,GAAG;EAChD,IAAI,CAAC,MAAM,KAAK,SAAS,MAAM,GAAG;EAElC,MAAM,SAAS,MAAM,OAAO,OAAO,EAAE,SAAS;EAC9C,IAAI,CAAC,aAAa,QAAQ,KAAK,MAAM,GAAG;EAExC,KAAK,YAAY,YACf,MAAM,MACN,IAAI,KAAK,SAAS,QAAQ,QAAQ,UAChC,iBAAiB,QAAQ,KAAK,QAAQ,KAAK,GAAG,CAChD,CACF;EAEA,OAAO;CACT;CAEA,OAAO;AACT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getClassName } from "./getClassName-
|
|
2
|
-
import {
|
|
1
|
+
import { t as getClassName } from "./getClassName-B3azD1TO.js";
|
|
2
|
+
import { a as createTransformElement } from "./globalSheet-CdgVpvCb.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-CB70kIh6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-CB70kIh6.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-AOb_VaKQ.mjs";
|
|
2
|
+
import { n as STYLE_IMPORTS, t as createWebpackRegistry } from "./registry-BMijh1CM.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-EG9gh2g3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-EG9gh2g3.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,Q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