@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
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as createTransformElement } from "./createTransformElement-B2jSnugo.js";
|
|
1
|
+
import { $t as normalizePropertyName, Bt as getDebugFieldCallsite, Ct as GLOBAL_SHEET_SELECTOR_ANCHOR, E as getCssVarRawFallback, Et as createElementMarkerClassName, Gt as traceCallsite, Kt as traceError, Qt as normalizeDebugKeywordValue, Rt as getDebugCallsite, St as BUILDER_TYPE, T as getTokenVar, Tn as symbol, Ut as isDebugData, Vt as getDebugFieldVarName, X as isStyleTokenData, Xt as getIdentifierSafeHash, Z as isStyleTokenOverrideData, Zt as createNameFormatter, _t as BUILDER_SCOPE_ID, b as getSelectorText$1, bt as BUILDER_SLOT_ID, c as GLOBAL_SEED_ATTR, cn as hasOwn, dn as DEBUG_CONFIG, en as sanitizeDebugPropertyName, ft as isSlotData, gn as isSheetLayerOption, gt as BUILDER_SCOPE, hn as CSS_CONFIG_DEFAULT, ht as BUILDER_CALLSITE, i as IS_SERVER_RUNTIME, in as DEV_CONFIG, jt as splitElementMarkerStyleProp, lt as isSelectorData, mn as CSS_CONFIG, mt as isStyleData, n as getRscStyleRules, ot as getSelectorSelectors, p as collectStylePropSheetRules, pt as isSlotOverrideData, q as getStyleTokenId, r as serializeRscRules, s as GLOBAL_RULES_ATTR, st as isScopeData, un as hashString, ut as isSelectorOverrideData, v as shouldAppendCssPx, vt as BUILDER_SELECTOR, wn as globalData, wt as SHEET_SELECTOR_ANCHOR, x as hasSheetSelectorAnchor, xt as BUILDER_STATE, y as getSelectorHash, yn as CHECK_CONFIG, yt as BUILDER_SHEET_OPTIONS } from "./styleStore-D1IEmq1v.js";
|
|
2
|
+
import { t as getGlobalSheet } from "./sheet-C6ymGhKV.js";
|
|
3
|
+
import { Fragment, cache, cloneElement, createElement } from "react";
|
|
5
4
|
//#region builder/data/create.ts
|
|
6
5
|
function createStyleData(callsite) {
|
|
7
6
|
return {
|
|
@@ -259,10 +258,11 @@ function parseAtRule(rule) {
|
|
|
259
258
|
}
|
|
260
259
|
//#endregion
|
|
261
260
|
//#region atomic/className.ts
|
|
262
|
-
function getAtomicClassName(property, priority, important, value, selector, parentSelector, atRule, callsite, localClassName, debugClassName, classNameFormat, transformClassName, transformClassNameFormat, sheetClassNameFormat = null, hashLength = null) {
|
|
261
|
+
function getAtomicClassName(property, priority, important, value, selector, parentSelector, atRule, callsite, localClassName, debugClassName, classNameFormat, transformClassName, transformClassNameFormat, sheetClassNameFormat = null, hashLength = null, importantNative = false) {
|
|
263
262
|
let hash = property;
|
|
264
263
|
hash += "\n" + (priority || "");
|
|
265
264
|
if (important) hash += "\nimportant";
|
|
265
|
+
if (importantNative) hash += "\nnative-important";
|
|
266
266
|
hash += "\n" + value;
|
|
267
267
|
hash += "\n" + (selector ? getSelectorHash(selector) : "");
|
|
268
268
|
hash += "\n" + (parentSelector ? getSelectorHash(parentSelector) : "");
|
|
@@ -293,10 +293,11 @@ function getClassNameHashLength(options) {
|
|
|
293
293
|
if (options.debugClassName && options.isDev) return options.devHashLength ?? options.cssHashLength ?? 5;
|
|
294
294
|
return options.cssHashLength ?? 7;
|
|
295
295
|
}
|
|
296
|
-
function getClassNameDedupe(property, priority, important, selector, parentSelector, atRule) {
|
|
296
|
+
function getClassNameDedupe(property, priority, important, selector, parentSelector, atRule, importantNative = false) {
|
|
297
297
|
let hash = property;
|
|
298
298
|
hash += "\n" + (priority || "");
|
|
299
299
|
if (important) hash += "\nimportant";
|
|
300
|
+
if (importantNative) hash += "\nnative-important";
|
|
300
301
|
hash += "\n" + (selector ? getSelectorHash(selector) : "");
|
|
301
302
|
hash += "\n" + (parentSelector ? getSelectorHash(parentSelector) : "");
|
|
302
303
|
hash += "\n" + (atRule ? atRule.map(getSelectorHash).join("\n") : "");
|
|
@@ -376,8 +377,8 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
|
|
|
376
377
|
value = scopeItem.value;
|
|
377
378
|
weight = scopeItem.weight;
|
|
378
379
|
important = scopeItem.important;
|
|
379
|
-
dedupe = getClassNameDedupe(scopeItem.property, weight, important, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule);
|
|
380
|
-
className = getAtomicClassName(scopeItem.property, weight, important, value, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule, itemCallsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null);
|
|
380
|
+
dedupe = getClassNameDedupe(scopeItem.property, weight, important, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule, scopeItem.importantNative);
|
|
381
|
+
className = getAtomicClassName(scopeItem.property, weight, important, value, scopeItem.selector, scopeItem.parentSelector, scopeItem.atRule, itemCallsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null, null, scopeItem.importantNative);
|
|
381
382
|
scopeItem.dedupe = dedupe;
|
|
382
383
|
scopeItem.className = className;
|
|
383
384
|
scopeItem.callsite = itemCallsite;
|
|
@@ -416,6 +417,7 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
|
|
|
416
417
|
property: overrideItem.property,
|
|
417
418
|
weight: overrideItem.weight,
|
|
418
419
|
important: overrideItem.important,
|
|
420
|
+
importantNative: overrideItem.importantNative,
|
|
419
421
|
value: overrideItem.value,
|
|
420
422
|
transformClassName: overrideItem.transformClassName,
|
|
421
423
|
token: overrideItem.token,
|
|
@@ -429,8 +431,8 @@ function mergeScopeData(scope, callsite, items, debug, parentSelector, scopeAtRu
|
|
|
429
431
|
value = scopeItem.value;
|
|
430
432
|
weight = scopeItem.weight;
|
|
431
433
|
important = scopeItem.important;
|
|
432
|
-
dedupe = getClassNameDedupe(scopeItem.property, weight, important, scopeItem.selector, parentSelector, scopeItem.atRule);
|
|
433
|
-
className = getAtomicClassName(scopeItem.property, weight, important, value, scopeItem.selector, parentSelector, scopeItem.atRule, scopeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null);
|
|
434
|
+
dedupe = getClassNameDedupe(scopeItem.property, weight, important, scopeItem.selector, parentSelector, scopeItem.atRule, scopeItem.importantNative);
|
|
435
|
+
className = getAtomicClassName(scopeItem.property, weight, important, value, scopeItem.selector, parentSelector, scopeItem.atRule, scopeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, scopeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null, null, scopeItem.importantNative);
|
|
434
436
|
scopeItem.dedupe = dedupe;
|
|
435
437
|
scopeItem.className = className;
|
|
436
438
|
const lookupKey = getScopeLookupKey(slotId, dedupe);
|
|
@@ -498,10 +500,11 @@ function getTokenLookupKey(tokenId) {
|
|
|
498
500
|
//#endregion
|
|
499
501
|
//#region style/important.ts
|
|
500
502
|
const STYLE_IMPORTANT = symbol("style.important");
|
|
501
|
-
function importantValue(value) {
|
|
503
|
+
function importantValue(value, native = false) {
|
|
502
504
|
return {
|
|
503
505
|
[STYLE_IMPORTANT]: true,
|
|
504
|
-
value
|
|
506
|
+
value,
|
|
507
|
+
native
|
|
505
508
|
};
|
|
506
509
|
}
|
|
507
510
|
function isStyleImportantValue(value) {
|
|
@@ -564,6 +567,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
|
|
|
564
567
|
let value;
|
|
565
568
|
let weight;
|
|
566
569
|
let important;
|
|
570
|
+
let importantNative;
|
|
567
571
|
let itemCallsite;
|
|
568
572
|
let className;
|
|
569
573
|
let dedupe;
|
|
@@ -605,7 +609,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
|
|
|
605
609
|
}
|
|
606
610
|
} else for (const property in style) {
|
|
607
611
|
valueRaw = style[property];
|
|
608
|
-
[valueRaw, weight, important] = unwrapAuthoredStyleValue(valueRaw);
|
|
612
|
+
[valueRaw, weight, important, importantNative] = unwrapAuthoredStyleValue(valueRaw);
|
|
609
613
|
const sourceType = source[BUILDER_TYPE];
|
|
610
614
|
checkImportantUsage(valueRaw, important, sourceType === 9 || sourceType === 8);
|
|
611
615
|
transformClassName = null;
|
|
@@ -628,6 +632,7 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
|
|
|
628
632
|
property,
|
|
629
633
|
weight,
|
|
630
634
|
important,
|
|
635
|
+
importantNative,
|
|
631
636
|
value,
|
|
632
637
|
transformClassName,
|
|
633
638
|
variable: ref ? [3, ref] : variableName && token ? [
|
|
@@ -690,8 +695,8 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
|
|
|
690
695
|
value = runtimeItem.value;
|
|
691
696
|
weight = runtimeItem.weight;
|
|
692
697
|
important = runtimeItem.important;
|
|
693
|
-
dedupe = getClassNameDedupe(runtimeItem.property, weight, important, runtimeItem.selector, null, runtimeItem.atRule);
|
|
694
|
-
className = getAtomicClassName(runtimeItem.property, weight, important, value, runtimeItem.selector, null, runtimeItem.atRule, runtimeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, runtimeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null);
|
|
698
|
+
dedupe = getClassNameDedupe(runtimeItem.property, weight, important, runtimeItem.selector, null, runtimeItem.atRule, runtimeItem.importantNative);
|
|
699
|
+
className = getAtomicClassName(runtimeItem.property, weight, important, value, runtimeItem.selector, null, runtimeItem.atRule, runtimeItem.callsite, DEV_CONFIG.isLocalClassNameEnabled, DEBUG_CONFIG.isDebugClassNameEnabled, CSS_CONFIG.classNameFormat ?? null, runtimeItem.transformClassName ?? null, CSS_CONFIG.transformClassNameFormat ?? null, CSS_CONFIG.sheetClassNameFormat ?? null, null, runtimeItem.importantNative);
|
|
695
700
|
runtimeItem.dedupe = dedupe;
|
|
696
701
|
runtimeItem.className = className;
|
|
697
702
|
lookupIndex = lookup[dedupe];
|
|
@@ -703,9 +708,11 @@ function mergeBuilderData(create, callsite, source, style, debug, selector, atRu
|
|
|
703
708
|
function unwrapAuthoredStyleValue(value) {
|
|
704
709
|
let weight = null;
|
|
705
710
|
let important = false;
|
|
711
|
+
let native = false;
|
|
706
712
|
while (true) {
|
|
707
713
|
if (isStyleImportantValue(value)) {
|
|
708
714
|
important = true;
|
|
715
|
+
native ||= value.native === true;
|
|
709
716
|
value = value.value;
|
|
710
717
|
continue;
|
|
711
718
|
}
|
|
@@ -719,7 +726,8 @@ function unwrapAuthoredStyleValue(value) {
|
|
|
719
726
|
return [
|
|
720
727
|
value,
|
|
721
728
|
weight,
|
|
722
|
-
important
|
|
729
|
+
important,
|
|
730
|
+
native
|
|
723
731
|
];
|
|
724
732
|
}
|
|
725
733
|
function checkImportantUsage(value, important, isSheet) {
|
|
@@ -796,12 +804,6 @@ function normalizeSelectorArg(arg) {
|
|
|
796
804
|
return arg.includes("\n") ? arg.replace(/\n/g, "") : arg;
|
|
797
805
|
}
|
|
798
806
|
//#endregion
|
|
799
|
-
//#region runtime/core/getToken.ts
|
|
800
|
-
function getToken(value) {
|
|
801
|
-
if (isStyleTokenData(value)) return getTokenVar(value, CSS_CONFIG.tokenNameFormat ?? null);
|
|
802
|
-
return value;
|
|
803
|
-
}
|
|
804
|
-
//#endregion
|
|
805
807
|
//#region builder/style_data.ts
|
|
806
808
|
const mergeStyleCreate = (callsite) => {
|
|
807
809
|
return createStyleData(callsite);
|
|
@@ -860,9 +862,9 @@ function assertManualSelectorSyntax(selector) {
|
|
|
860
862
|
if (ampersandIndex === 0 && ampersandSelector && /^\s/.test(ampersandSelector)) throw new Error("selector cannot have whitespace after \"&\"; omit \"&\" for descendant selectors");
|
|
861
863
|
}
|
|
862
864
|
function setSheetSelectorOptions(selector, options) {
|
|
863
|
-
if (options.
|
|
865
|
+
if (options.specificity === void 0 && options.layer === void 0) return selector;
|
|
864
866
|
const text = Array.isArray(selector) ? selector[0] : selector;
|
|
865
|
-
const weighted = SHEET_SELECTOR_ANCHOR + (":" + (options.
|
|
867
|
+
const weighted = SHEET_SELECTOR_ANCHOR + (":" + (options.specificity ?? "") + ":" + (typeof options.layer === "string" ? JSON.stringify(options.layer) : options.layer === void 0 ? "" : options.layer ? "1" : "0")) + "\0" + text.slice(SHEET_SELECTOR_ANCHOR.length);
|
|
866
868
|
return Array.isArray(selector) ? [weighted, selector[1]] : weighted;
|
|
867
869
|
}
|
|
868
870
|
function normalizeManualSelector(selector, assertManualSelector) {
|
|
@@ -874,253 +876,35 @@ function normalizeManualSelector(selector, assertManualSelector) {
|
|
|
874
876
|
}
|
|
875
877
|
return [SHEET_SELECTOR_ANCHOR + (value.startsWith("&") ? value.slice(1) : " " + value)];
|
|
876
878
|
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
const name = formatter(format || defaultFormat, hash, info);
|
|
884
|
-
if (!prefix) return name;
|
|
885
|
-
return name.startsWith(prefix) ? name : prefix + name;
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
function buildNamedAtRuleCss(atRule, name, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
889
|
-
return `@${atRule} ${name} {${buildAtRuleDeclarationCss(descriptors, tokens, tokenLookup, tokenNameFormat, true)}}`;
|
|
890
|
-
}
|
|
891
|
-
function buildAtRuleDeclarationCss(style, tokens, tokenLookup, tokenNameFormat, rawValue, shouldInclude) {
|
|
892
|
-
let css = "";
|
|
893
|
-
for (const property in style) {
|
|
894
|
-
if (shouldInclude && !shouldInclude(property)) continue;
|
|
895
|
-
let value = style[property];
|
|
896
|
-
if (Array.isArray(value) && value.length === 2 && typeof value[0] === "number") value = value[1];
|
|
897
|
-
if (isStyleTokenData(value)) {
|
|
898
|
-
const tokenId = getStyleTokenId(value);
|
|
899
|
-
if (!tokenLookup.has(tokenId)) {
|
|
900
|
-
tokenLookup.add(tokenId);
|
|
901
|
-
tokens.push(value);
|
|
902
|
-
}
|
|
903
|
-
css += `${getCssPropertyName(property)}: ${getTokenVar(value, tokenNameFormat)};`;
|
|
904
|
-
continue;
|
|
905
|
-
}
|
|
906
|
-
const valueString = String(value ?? "");
|
|
907
|
-
css += `${getCssPropertyName(property)}: ${rawValue ? valueString : getCssPropertyValue(property, valueString)};`;
|
|
908
|
-
}
|
|
909
|
-
return css;
|
|
910
|
-
}
|
|
911
|
-
//#endregion
|
|
912
|
-
//#region atomic/atRule/counterStyle.ts
|
|
913
|
-
const COUNTER_STYLE_AT_RULE = "counter-style";
|
|
914
|
-
const formatCounterStyleName = createAtRuleNameFormatter("counter-style[-(name)]-$hash");
|
|
915
|
-
function buildCounterStyleCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
916
|
-
name = formatCounterStyleName(format, id, { name });
|
|
917
|
-
const css = buildNamedAtRuleCss(COUNTER_STYLE_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
|
|
918
|
-
return {
|
|
919
|
-
name,
|
|
920
|
-
css
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
//#endregion
|
|
924
|
-
//#region utils/id.ts
|
|
925
|
-
function createIdCounter(name) {
|
|
926
|
-
return globalData("idCounter." + name, () => ({ value: 0 }));
|
|
927
|
-
}
|
|
928
|
-
function getId(idCounter, stableId) {
|
|
929
|
-
return stableId || {
|
|
930
|
-
name: null,
|
|
931
|
-
id: String(idCounter.value++)
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
//#endregion
|
|
935
|
-
//#region css/utils.ts
|
|
936
|
-
function createNamedAtRuleRef(config) {
|
|
937
|
-
const { id, name } = getId(config.idCounter, config.stableId || null);
|
|
938
|
-
const tokens = [];
|
|
939
|
-
const tokenLookup = /* @__PURE__ */ new Set();
|
|
940
|
-
const css = config.buildCss(config.format || null, name, id, config.value, tokens, tokenLookup, CSS_CONFIG.tokenNameFormat || null);
|
|
941
|
-
return createAtRuleRef({
|
|
942
|
-
key: css.name,
|
|
943
|
-
value: css.name,
|
|
944
|
-
css: css.css,
|
|
945
|
-
tokens: tokens.length ? tokens : void 0
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
//#endregion
|
|
949
|
-
//#region css/counterStyle.ts
|
|
950
|
-
const idCounter$5 = createIdCounter("counterStyle");
|
|
951
|
-
function createCounterStyle(descriptors, stableId) {
|
|
952
|
-
return createNamedAtRuleRef({
|
|
953
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.counterStyle,
|
|
954
|
-
buildCss: buildCounterStyleCss,
|
|
955
|
-
value: descriptors,
|
|
956
|
-
idCounter: idCounter$5,
|
|
957
|
-
stableId
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
//#endregion
|
|
961
|
-
//#region atomic/atRule/fontFace.ts
|
|
962
|
-
const FONT_FACE_AT_RULE = "font-face";
|
|
963
|
-
const formatFontFaceName = createAtRuleNameFormatter("font[-(name)]-$hash");
|
|
964
|
-
function buildFontFaceCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
965
|
-
name = formatFontFaceName(format, id, { name });
|
|
966
|
-
let css = buildAtRuleDeclarationCss(descriptors, tokens, tokenLookup, tokenNameFormat, true, (property) => property !== "fontFamily");
|
|
967
|
-
css = `@${FONT_FACE_AT_RULE} { font-family: ${name}; ${css} }`;
|
|
968
|
-
return {
|
|
969
|
-
name,
|
|
970
|
-
css
|
|
971
|
-
};
|
|
972
|
-
}
|
|
973
|
-
//#endregion
|
|
974
|
-
//#region atomic/atRule/fontSrc.ts
|
|
975
|
-
function fontSrc(url, format) {
|
|
976
|
-
if (typeof url !== "string") throw new Error("fontSrc url must be a static string");
|
|
977
|
-
const src = `url("${escapeFontSrcPart(url)}")`;
|
|
978
|
-
return format ? `${src} format("${escapeFontSrcPart(format)}")` : src;
|
|
979
|
-
}
|
|
980
|
-
function escapeFontSrcPart(value) {
|
|
981
|
-
return value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
|
|
982
|
-
}
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region css/fontFace.ts
|
|
985
|
-
const idCounter$4 = createIdCounter("fontFace");
|
|
986
|
-
function createFontFace(descriptors, stableId) {
|
|
987
|
-
if (typeof descriptors.src !== "string") throw new Error("createFontFace \"src\" must be a static string");
|
|
988
|
-
return createNamedAtRuleRef({
|
|
989
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.fontFace,
|
|
990
|
-
buildCss: buildFontFaceCss,
|
|
991
|
-
value: descriptors,
|
|
992
|
-
idCounter: idCounter$4,
|
|
993
|
-
stableId
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
//#endregion
|
|
997
|
-
//#region atomic/atRule/fontPaletteValues.ts
|
|
998
|
-
const FONT_PALETTE_VALUES_AT_RULE = "font-palette-values";
|
|
999
|
-
const formatFontPaletteValuesName = createAtRuleNameFormatter("font-palettle[-(name)]-$hash", "--");
|
|
1000
|
-
function buildFontPaletteValuesCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
1001
|
-
name = formatFontPaletteValuesName(format, id, { name });
|
|
1002
|
-
const css = buildNamedAtRuleCss(FONT_PALETTE_VALUES_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
|
|
1003
|
-
return {
|
|
1004
|
-
name,
|
|
1005
|
-
css
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
//#endregion
|
|
1009
|
-
//#region css/fontPaletteValues.ts
|
|
1010
|
-
const idCounter$3 = createIdCounter("fontPaletteValues");
|
|
1011
|
-
function createFontPaletteValues(descriptors, stableId) {
|
|
1012
|
-
return createNamedAtRuleRef({
|
|
1013
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.fontPaletteValues,
|
|
1014
|
-
buildCss: buildFontPaletteValuesCss,
|
|
1015
|
-
value: descriptors,
|
|
1016
|
-
idCounter: idCounter$3,
|
|
1017
|
-
stableId
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
//#endregion
|
|
1021
|
-
//#region atomic/atRule/keyframes.ts
|
|
1022
|
-
const KEYFRAMES_AT_RULE = "keyframes";
|
|
1023
|
-
const formatKeyFramesName = createAtRuleNameFormatter("keyframes[-(name)]-$hash");
|
|
1024
|
-
function buildKeyframesCss(format, name, id, frames, tokens, tokenLookup, tokenNameFormat) {
|
|
1025
|
-
name = formatKeyFramesName(format, id, { name });
|
|
1026
|
-
let css = `@${KEYFRAMES_AT_RULE} ${name} {`;
|
|
1027
|
-
for (const selector in frames) {
|
|
1028
|
-
const frame = frames[selector];
|
|
1029
|
-
if (!frame) continue;
|
|
1030
|
-
css += selector + "{";
|
|
1031
|
-
css += buildAtRuleDeclarationCss(frame, tokens, tokenLookup, tokenNameFormat, false);
|
|
1032
|
-
css += "}";
|
|
1033
|
-
}
|
|
1034
|
-
css += "}";
|
|
1035
|
-
return {
|
|
1036
|
-
name,
|
|
1037
|
-
css
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
//#endregion
|
|
1041
|
-
//#region css/keyframes.ts
|
|
1042
|
-
const idCounter$2 = createIdCounter("keyframes");
|
|
1043
|
-
function createKeyframes(frames, stableId) {
|
|
1044
|
-
return createNamedAtRuleRef({
|
|
1045
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.keyframes,
|
|
1046
|
-
buildCss: buildKeyframesCss,
|
|
1047
|
-
value: frames,
|
|
1048
|
-
idCounter: idCounter$2,
|
|
1049
|
-
stableId
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
//#endregion
|
|
1053
|
-
//#region atomic/atRule/positionTry.ts
|
|
1054
|
-
const POSITION_TRY_AT_RULE = "position-try";
|
|
1055
|
-
const formatPositionTryName = createAtRuleNameFormatter("position-try[-(name)]-$hash", "--");
|
|
1056
|
-
function buildPositionTryCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
1057
|
-
name = formatPositionTryName(format, id, { name });
|
|
1058
|
-
const css = buildNamedAtRuleCss(POSITION_TRY_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
|
|
1059
|
-
return {
|
|
1060
|
-
name,
|
|
1061
|
-
css
|
|
1062
|
-
};
|
|
1063
|
-
}
|
|
1064
|
-
//#endregion
|
|
1065
|
-
//#region css/positionTry.ts
|
|
1066
|
-
const idCounter$1 = createIdCounter("positionTry");
|
|
1067
|
-
function createPositionTry(descriptors, stableId) {
|
|
1068
|
-
return createNamedAtRuleRef({
|
|
1069
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.positionTry,
|
|
1070
|
-
buildCss: buildPositionTryCss,
|
|
1071
|
-
value: descriptors,
|
|
1072
|
-
idCounter: idCounter$1,
|
|
1073
|
-
stableId
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
//#endregion
|
|
1077
|
-
//#region atomic/atRule/property.ts
|
|
1078
|
-
const PROPERTY_AT_RULE = "property";
|
|
1079
|
-
const formatPropertyName = createAtRuleNameFormatter("[-(name)]-$hash", "--");
|
|
1080
|
-
function buildPropertyCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
|
|
1081
|
-
name = formatPropertyName(format, id, { name });
|
|
1082
|
-
return {
|
|
1083
|
-
css: buildNamedAtRuleCss(PROPERTY_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat),
|
|
1084
|
-
name
|
|
1085
|
-
};
|
|
1086
|
-
}
|
|
1087
|
-
//#endregion
|
|
1088
|
-
//#region css/property.ts
|
|
1089
|
-
const idCounter = createIdCounter("property");
|
|
1090
|
-
function createProperty(nameOrDescriptors, descriptorsOrStableId) {
|
|
1091
|
-
const descriptors = typeof nameOrDescriptors === "string" ? descriptorsOrStableId : nameOrDescriptors;
|
|
1092
|
-
return createNamedAtRuleRef({
|
|
1093
|
-
idCounter,
|
|
1094
|
-
stableId: typeof nameOrDescriptors === "string" ? {
|
|
1095
|
-
name: nameOrDescriptors,
|
|
1096
|
-
id: nameOrDescriptors
|
|
1097
|
-
} : descriptorsOrStableId,
|
|
1098
|
-
format: CSS_EXTRA_CONFIG.namedRuleFormat.property,
|
|
1099
|
-
value: descriptors,
|
|
1100
|
-
buildCss: buildPropertyCss
|
|
1101
|
-
});
|
|
879
|
+
/** Convert a normalized explicit selector into an unscoped sheet selector. */
|
|
880
|
+
function setGlobalSheetSelectorOptions(selector, options) {
|
|
881
|
+
const suffix = (Array.isArray(selector) ? selector[0] : selector).slice(SHEET_SELECTOR_ANCHOR.length);
|
|
882
|
+
if (!suffix.startsWith(" ") || !suffix.trim()) throw new Error("createGlobalSheet requires explicit selectors without an ampersand anchor");
|
|
883
|
+
const global = GLOBAL_SHEET_SELECTOR_ANCHOR + JSON.stringify(options.layer ?? null) + "\0" + suffix.trimStart();
|
|
884
|
+
return Array.isArray(selector) ? [global, selector[1]] : global;
|
|
1102
885
|
}
|
|
1103
886
|
//#endregion
|
|
1104
887
|
//#region css/sheet.ts
|
|
1105
888
|
function createSheet(optionsOrItems, itemsOrDebug, debug) {
|
|
1106
|
-
const hasOptions =
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
889
|
+
const hasOptions = arguments.length >= 2 && !isDebugData(itemsOrDebug);
|
|
890
|
+
return buildSheet(hasOptions ? optionsOrItems : {}, hasOptions ? itemsOrDebug : optionsOrItems, hasOptions ? debug : itemsOrDebug);
|
|
891
|
+
}
|
|
892
|
+
function buildSheet(options, items, resolvedDebug, global = false) {
|
|
1110
893
|
assertCreateSheetOptions(options);
|
|
1111
894
|
const callsite = resolveCallsite(resolvedDebug);
|
|
1112
895
|
let data = createSheetData(callsite, options);
|
|
1113
|
-
if (items) data = mergeSheetItems(data, callsite, items);
|
|
896
|
+
if (items) data = mergeSheetItems(data, callsite, items, global);
|
|
1114
897
|
return data;
|
|
1115
898
|
}
|
|
1116
|
-
function mergeSheetItems(data, callsite, items) {
|
|
899
|
+
function mergeSheetItems(data, callsite, items, global = false) {
|
|
1117
900
|
if (!items) return data;
|
|
1118
901
|
if (Array.isArray(items)) {
|
|
1119
902
|
let next = data;
|
|
1120
|
-
for (let i = 0, len = items.length; i < len; i++) next = mergeSheetItems(next, callsite, items[i]);
|
|
903
|
+
for (let i = 0, len = items.length; i < len; i++) next = mergeSheetItems(next, callsite, items[i], global);
|
|
1121
904
|
return next;
|
|
1122
905
|
}
|
|
1123
906
|
if (isStyleTokenOverrideData(items)) {
|
|
907
|
+
if (global) throw new Error("createGlobalSheet requires token overrides inside an explicit selector");
|
|
1124
908
|
addSheetTokenOverride(data, items);
|
|
1125
909
|
return data;
|
|
1126
910
|
}
|
|
@@ -1129,17 +913,15 @@ function mergeSheetItems(data, callsite, items) {
|
|
|
1129
913
|
const selectors = getSelectorSelectors(selectorItem);
|
|
1130
914
|
const options = data[BUILDER_SHEET_OPTIONS];
|
|
1131
915
|
let next = data;
|
|
916
|
+
const sheetSelectors = selectors.map((selector) => global ? setGlobalSheetSelectorOptions(selector, options) : setSheetSelectorOptions(selector, options));
|
|
1132
917
|
if (isSelectorData(selectorItem)) return next;
|
|
1133
|
-
for (let i = 0, len = selectors.length; i < len; i++) next = mergeSheetData(next, callsite, getSelectorItemStyleData(selectorItem), null,
|
|
918
|
+
for (let i = 0, len = selectors.length; i < len; i++) next = mergeSheetData(next, callsite, getSelectorItemStyleData(selectorItem), null, sheetSelectors[i], null);
|
|
1134
919
|
return next;
|
|
1135
920
|
}
|
|
1136
|
-
function isCreateSheetOptions(value) {
|
|
1137
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
1138
|
-
return "layer" in value || "weight" in value || Object.keys(value).length === 0;
|
|
1139
|
-
}
|
|
1140
921
|
function assertCreateSheetOptions(options) {
|
|
922
|
+
if (!options || typeof options !== "object" || Object.keys(options).some((key) => key !== "layer" && key !== "specificity")) throw new Error("createSheet only supports layer and specificity options");
|
|
1141
923
|
if (!isSheetLayerOption(options.layer)) throw new Error("createSheet options.layer must be a boolean or a valid layer name");
|
|
1142
|
-
if (options.
|
|
924
|
+
if (options.specificity !== void 0 && (!Number.isInteger(options.specificity) || options.specificity < 0)) throw new Error("createSheet options.specificity must be a non-negative integer");
|
|
1143
925
|
}
|
|
1144
926
|
function addSheetTokenOverride(data, item) {
|
|
1145
927
|
const state = data[BUILDER_STATE];
|
|
@@ -1160,180 +942,157 @@ function getSheetTokenLookupKey(tokenId) {
|
|
|
1160
942
|
return "token\0" + tokenId;
|
|
1161
943
|
}
|
|
1162
944
|
//#endregion
|
|
1163
|
-
//#region
|
|
1164
|
-
function
|
|
1165
|
-
|
|
1166
|
-
sheet
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
function
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
945
|
+
//#region css/globalSheet.ts
|
|
946
|
+
function createGlobalSheet$1(optionsOrItems, items, debug) {
|
|
947
|
+
const rules = buildGlobalSheetRules(optionsOrItems, items, debug, arguments.length >= 2 && !isDebugData(items));
|
|
948
|
+
const sheet = getGlobalSheet();
|
|
949
|
+
sheet.updateLayers(CSS_CONFIG.layers ?? CSS_CONFIG_DEFAULT.layers ?? []);
|
|
950
|
+
for (const rule of rules) sheet.insert(rule);
|
|
951
|
+
sheet.flush();
|
|
952
|
+
}
|
|
953
|
+
function buildGlobalSheetRules(optionsOrItems, items, debug, hasOptions = arguments.length >= 2 && !isDebugData(items)) {
|
|
954
|
+
const options = hasOptions ? optionsOrItems : {};
|
|
955
|
+
if (!options || typeof options !== "object" || Object.keys(options).some((key) => key !== "layer" && key !== "order")) throw new Error("createGlobalSheet only supports layer and order options");
|
|
956
|
+
if (options.order !== void 0 && !Number.isFinite(options.order)) throw new Error("createGlobalSheet order must be a finite number");
|
|
957
|
+
const data = buildSheet({ layer: options.layer }, hasOptions ? items : optionsOrItems, isDebugData(items) ? items : debug, true);
|
|
958
|
+
const rules = collectStylePropSheetRules(data);
|
|
959
|
+
const site = isDebugData(items) || debug ? data[BUILDER_CALLSITE] : null;
|
|
960
|
+
const id = hashString(JSON.stringify(site ? [
|
|
961
|
+
site.filePath,
|
|
962
|
+
site.line,
|
|
963
|
+
site.column
|
|
964
|
+
] : [options, rules.map((rule) => rule.css)]));
|
|
965
|
+
const globals = [];
|
|
966
|
+
for (const rule of rules) globals.push({
|
|
967
|
+
...rule,
|
|
968
|
+
key: id + ":" + rule.key,
|
|
969
|
+
globalSheet: {
|
|
970
|
+
id,
|
|
971
|
+
order: options.order ?? 0
|
|
1179
972
|
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
return resolved.result;
|
|
1183
|
-
}
|
|
1184
|
-
function prependClassName(result, className) {
|
|
1185
|
-
if (!className) return;
|
|
1186
|
-
result.className = result.className ? `${className} ${result.className}` : className;
|
|
973
|
+
});
|
|
974
|
+
return globals;
|
|
1187
975
|
}
|
|
1188
|
-
createTransformElement(getClassName);
|
|
1189
976
|
//#endregion
|
|
1190
|
-
//#region
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
updateClasses(target, state.classNames, classNames);
|
|
1214
|
-
updateStyles(target, owner, state.styleValues, styleEntries);
|
|
1215
|
-
state.classNames = classNames;
|
|
1216
|
-
state.signature = signature;
|
|
1217
|
-
targets.set(target, state);
|
|
1218
|
-
},
|
|
1219
|
-
destroy() {
|
|
1220
|
-
targets.forEach((_, target) => clearTarget(targets, owner, target));
|
|
1221
|
-
}
|
|
977
|
+
//#region runtime/core/createTransformElement.ts
|
|
978
|
+
function createTransformElement(getClassName) {
|
|
979
|
+
return ({ type, props }) => {
|
|
980
|
+
if (!props || typeof type !== "string") return {
|
|
981
|
+
type,
|
|
982
|
+
props
|
|
983
|
+
};
|
|
984
|
+
if (!hasOwn(props, "css")) return {
|
|
985
|
+
type,
|
|
986
|
+
props
|
|
987
|
+
};
|
|
988
|
+
const { css, ...rest } = props;
|
|
989
|
+
if (!css) return {
|
|
990
|
+
type,
|
|
991
|
+
props: rest
|
|
992
|
+
};
|
|
993
|
+
const marker = splitElementMarkerStyleProp(css);
|
|
994
|
+
if (marker.styleProp) Object.assign(rest, getClassName(marker.styleProp, rest));
|
|
995
|
+
prependClassName(rest, createElementMarkerClassName(marker.debug));
|
|
996
|
+
return {
|
|
997
|
+
type,
|
|
998
|
+
props: rest
|
|
999
|
+
};
|
|
1222
1000
|
};
|
|
1223
1001
|
}
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
const [name, value] = styleEntries[i];
|
|
1228
|
-
signature += `\n${name}:${String(value)}`;
|
|
1229
|
-
}
|
|
1230
|
-
return signature;
|
|
1231
|
-
}
|
|
1232
|
-
function updateClasses(target, previous, next) {
|
|
1233
|
-
previous.forEach((className) => {
|
|
1234
|
-
if (!next.has(className)) removeClassName(target, className);
|
|
1235
|
-
});
|
|
1236
|
-
next.forEach((className) => {
|
|
1237
|
-
if (!previous.has(className)) addClassName(target, className);
|
|
1238
|
-
});
|
|
1002
|
+
function prependClassName(props, className) {
|
|
1003
|
+
if (!className) return;
|
|
1004
|
+
props.className = props.className ? `${className} ${props.className}` : className;
|
|
1239
1005
|
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region runtime/rsc/globalSheet.ts
|
|
1008
|
+
const seedComponent = globalData("runtime.rsc.global.seedComponent", () => ({ current: null }));
|
|
1009
|
+
/** Registered only by the Next loader, keeping the core RSC runtime framework-neutral. */
|
|
1010
|
+
function setGlobalSheetSeedComponent(component) {
|
|
1011
|
+
seedComponent.current = component;
|
|
1012
|
+
}
|
|
1013
|
+
const modules = globalData("runtime.rsc.global.modules", () => /* @__PURE__ */ new Map());
|
|
1014
|
+
const requestRegistry = globalData("runtime.rsc.global.request", () => cache(() => /* @__PURE__ */ new Map()));
|
|
1015
|
+
const delivered = globalData("runtime.rsc.global.delivered", () => cache(() => /* @__PURE__ */ new Map()));
|
|
1016
|
+
function resetGlobalSheetModule(filePath) {
|
|
1017
|
+
if (!IS_SERVER_RUNTIME) return;
|
|
1018
|
+
if (modules.has(filePath)) modules.set(filePath, []);
|
|
1019
|
+
}
|
|
1020
|
+
const createGlobalSheet = (...args) => {
|
|
1021
|
+
if (!IS_SERVER_RUNTIME) {
|
|
1022
|
+
createGlobalSheet$1(...args);
|
|
1253
1023
|
return;
|
|
1254
1024
|
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
|
|
1263
|
-
if (previousValues.get(name) !== nextValue) {
|
|
1264
|
-
setStyleValue(target, owner, name, nextValue);
|
|
1265
|
-
previousValues.set(name, nextValue);
|
|
1266
|
-
}
|
|
1025
|
+
const debug = isDebugData(args[1]) ? args[1] : args[2];
|
|
1026
|
+
const rules = buildGlobalSheetRules(...args);
|
|
1027
|
+
if (debug?.globalModule) {
|
|
1028
|
+
const existing = modules.get(debug.globalModule) ?? [];
|
|
1029
|
+
modules.set(debug.globalModule, [...existing, ...rules]);
|
|
1030
|
+
} else {
|
|
1031
|
+
const owner = "request:" + (debug ? debug.sourceUrl + ":" + debug.loc.join(":") : rules[0]?.key ?? "empty");
|
|
1032
|
+
requestRegistry().set(owner, rules);
|
|
1267
1033
|
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1034
|
+
};
|
|
1035
|
+
function getGlobalRuleBatches() {
|
|
1036
|
+
return [...modules, ...requestRegistry()].map(([owner, rules]) => ({
|
|
1037
|
+
owner,
|
|
1038
|
+
revision: hashString(JSON.stringify(rules)),
|
|
1039
|
+
rules
|
|
1040
|
+
}));
|
|
1041
|
+
}
|
|
1042
|
+
function serializeGlobalRuleBatches(batches) {
|
|
1043
|
+
return JSON.stringify(batches).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
1044
|
+
}
|
|
1045
|
+
function GlobalSheetPayload() {
|
|
1046
|
+
const cursor = delivered();
|
|
1047
|
+
return renderGlobalRuleBatches(getGlobalRuleBatches().filter((batch) => {
|
|
1048
|
+
if (cursor.get(batch.owner) === batch.revision) return false;
|
|
1049
|
+
cursor.set(batch.owner, batch.revision);
|
|
1050
|
+
return true;
|
|
1051
|
+
}));
|
|
1052
|
+
}
|
|
1053
|
+
function renderGlobalRuleBatches(batches) {
|
|
1054
|
+
if (!batches.length) return null;
|
|
1055
|
+
const payload = serializeGlobalRuleBatches(batches);
|
|
1056
|
+
const current = new Map(getGlobalRuleBatches().map((batch) => [batch.owner, batch]));
|
|
1057
|
+
for (const batch of batches) current.set(batch.owner, batch);
|
|
1058
|
+
const allBatches = [...current.values()];
|
|
1059
|
+
const css = serializeRscRules([...getRscStyleRules(), ...allBatches.flatMap((batch) => batch.rules)]);
|
|
1060
|
+
const id = hashString(payload + css);
|
|
1061
|
+
return createElement(Fragment, null, seedComponent.current ? createElement(seedComponent.current, {
|
|
1062
|
+
globalRules: allBatches,
|
|
1063
|
+
seedOnly: true
|
|
1064
|
+
}) : null, createElement("style", {
|
|
1065
|
+
[GLOBAL_SEED_ATTR]: id,
|
|
1066
|
+
href: "fluentic-global-" + id,
|
|
1067
|
+
precedence: "default",
|
|
1068
|
+
dangerouslySetInnerHTML: { __html: css.replace(/<\/style/gi, "<\\/style") },
|
|
1069
|
+
suppressHydrationWarning: true
|
|
1070
|
+
}), createElement("script", {
|
|
1071
|
+
type: "application/json",
|
|
1072
|
+
async: true,
|
|
1073
|
+
[GLOBAL_RULES_ATTR]: id,
|
|
1074
|
+
dangerouslySetInnerHTML: { __html: payload },
|
|
1075
|
+
suppressHydrationWarning: true
|
|
1076
|
+
}));
|
|
1077
|
+
}
|
|
1078
|
+
function withGlobalSheetPayload(element, type) {
|
|
1079
|
+
if (!IS_SERVER_RUNTIME || !DEV_CONFIG.isDev || typeof type === "string" && [
|
|
1080
|
+
"html",
|
|
1081
|
+
"head",
|
|
1082
|
+
"style",
|
|
1083
|
+
"script",
|
|
1084
|
+
"meta",
|
|
1085
|
+
"link",
|
|
1086
|
+
"title"
|
|
1087
|
+
].includes(type)) return element;
|
|
1088
|
+
if (typeof type === "string" && !modules.size && !requestRegistry().size) return element;
|
|
1089
|
+
if (type === "body") {
|
|
1090
|
+
const props = element.props;
|
|
1091
|
+
return cloneElement(element, {}, createElement(GlobalSheetPayload), props.children);
|
|
1326
1092
|
}
|
|
1327
|
-
return
|
|
1328
|
-
}
|
|
1329
|
-
function deleteSharedStateIfEmpty(target, state) {
|
|
1330
|
-
if (!state.classNames.size && !state.styleNames.size) sharedTargets.delete(target);
|
|
1331
|
-
}
|
|
1332
|
-
function restoreStyleValue(target, name, value) {
|
|
1333
|
-
if (value) target.style.setProperty(name, value);
|
|
1334
|
-
else target.style.removeProperty(name);
|
|
1093
|
+
return createElement(Fragment, element.key == null ? null : { key: element.key }, typeof type === "string" ? createElement(GlobalSheetPayload) : element, typeof type === "string" ? element : createElement(GlobalSheetPayload));
|
|
1335
1094
|
}
|
|
1336
1095
|
//#endregion
|
|
1337
|
-
export {
|
|
1096
|
+
export { styleTransform as A, createStyleData as B, weightValue as C, classNameTransform as D, isAtRuleRef as E, createScopeTargetData as F, createSelectorData as I, createSelectorOverrideData as L, isStyleImportantValue as M, mergeScopeData as N, classNameValue as O, createScopeData as P, createSlotData as R, isStyleWeightValue as S, createAtRuleRef as T, createThemeData as V, mergeSlotOverrideData as _, createTransformElement as a, SELECTOR_MEDIA as b, normalizeManualSelectors as c, FnPrefixSlot as d, FnPrefixStyle as f, mergeSlotData as g, mergeSelectorOverrideData as h, withGlobalSheetPayload as i, importantValue as j, isClassNameValue as k, FnPrefixScope as l, transformStyle as m, resetGlobalSheetModule as n, createSheet as o, resolveCallsite as p, setGlobalSheetSeedComponent as r, assertManualSelectorSyntax as s, createGlobalSheet as t, FnPrefixSelector as u, mergeStyleData as v, AT_RULE_REF as w, normalizeSelectorArg as x, SELECTOR_CONTAINER as y, createSlotOverrideData as z };
|
|
1338
1097
|
|
|
1339
|
-
//# sourceMappingURL=
|
|
1098
|
+
//# sourceMappingURL=globalSheet-CdgVpvCb.js.map
|