@fluentic/style 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/LICENSE +21 -0
- package/README.md +409 -0
- package/atomic/atRule/counterStyle.ts +35 -0
- package/atomic/atRule/fontFace.ts +37 -0
- package/atomic/atRule/fontPaletteValues.ts +36 -0
- package/atomic/atRule/fontSrc.ts +13 -0
- package/atomic/atRule/keyframes.ts +43 -0
- package/atomic/atRule/positionTry.ts +73 -0
- package/atomic/atRule/property.ts +39 -0
- package/atomic/atRule/utils.ts +81 -0
- package/atomic/className.ts +93 -0
- package/atomic/debug/className/className.ts +33 -0
- package/atomic/debug/className/index.ts +1 -0
- package/atomic/debug/property/data.ts +59 -0
- package/atomic/debug/property/index.ts +1 -0
- package/atomic/debug/property/property.ts +59 -0
- package/atomic/debug/selector.ts +88 -0
- package/atomic/debug/value.ts +53 -0
- package/atomic/element.ts +29 -0
- package/atomic/layer/README.md +116 -0
- package/atomic/layer/index.ts +3 -0
- package/atomic/layer/layer.ts +95 -0
- package/atomic/layer/types.ts +37 -0
- package/atomic/layer/utils.ts +51 -0
- package/atomic/property/index.ts +2 -0
- package/atomic/property/presets.ts +34 -0
- package/atomic/property/property.ts +13 -0
- package/atomic/property/type_maps.ts +389 -0
- package/atomic/property/types.ts +7 -0
- package/atomic/rule.ts +116 -0
- package/atomic/theme.ts +48 -0
- package/atomic/token.ts +53 -0
- package/atomic/utils/css.ts +49 -0
- package/atomic/utils/debug.ts +37 -0
- package/atomic/utils/format.ts +192 -0
- package/atomic/utils/selector.ts +14 -0
- package/atomic/utils/types.ts +11 -0
- package/atomic/value/index.ts +2 -0
- package/atomic/value/unitless.ts +47 -0
- package/atomic/value/value.ts +17 -0
- package/atomic/var.ts +19 -0
- package/builder/data/check_selector.noop.ts +8 -0
- package/builder/data/check_selector.ts +30 -0
- package/builder/data/const.ts +25 -0
- package/builder/data/create.ts +96 -0
- package/builder/data/data.ts +63 -0
- package/builder/data/debug.ts +113 -0
- package/builder/data/index.ts +9 -0
- package/builder/data/is.ts +68 -0
- package/builder/data/merge/index.ts +2 -0
- package/builder/data/merge/scope.ts +300 -0
- package/builder/data/merge/style.ts +284 -0
- package/builder/data/merge/utils.ts +35 -0
- package/builder/data/selector.ts +11 -0
- package/builder/data/state.ts +134 -0
- package/builder/extract/index.ts +6 -0
- package/builder/extract/scope.ts +30 -0
- package/builder/extract/slot.ts +36 -0
- package/builder/extract/style.ts +89 -0
- package/builder/extract/theme.ts +16 -0
- package/builder/extract/token.ts +41 -0
- package/builder/extract/utils.ts +95 -0
- package/builder/extract/withTokens.ts +64 -0
- package/builder/index.ts +2 -0
- package/builder/style_builder.ts +234 -0
- package/builder/style_data.ts +81 -0
- package/builder/style_fns.ts +611 -0
- package/builder/types/alias.ts +83 -0
- package/builder/types/fns.ts +185 -0
- package/builder/types/index.ts +1 -0
- package/builder/types/types.ts +51 -0
- package/builder/utils.ts +19 -0
- package/compiler/compiler/cache.ts +155 -0
- package/compiler/compiler/compiler.ts +173 -0
- package/compiler/compiler/index.ts +3 -0
- package/compiler/compiler/types.ts +62 -0
- package/compiler/extract/collector.ts +25 -0
- package/compiler/extract/extract.ts +51 -0
- package/compiler/extract/index.ts +3 -0
- package/compiler/extract/types.ts +35 -0
- package/compiler/index.ts +2 -0
- package/compiler/transform/debug/index.ts +2 -0
- package/compiler/transform/debug/plugin.ts +1347 -0
- package/compiler/transform/debug/transform.ts +47 -0
- package/compiler/transform/debug/utils/debug_data.ts +187 -0
- package/compiler/transform/debug/utils/source_url.ts +29 -0
- package/compiler/transform/evaluator/evaluator.ts +1138 -0
- package/compiler/transform/evaluator/index.ts +3 -0
- package/compiler/transform/evaluator/tracer.ts +607 -0
- package/compiler/transform/evaluator/types.ts +22 -0
- package/compiler/transform/extract/chain/chain.ts +2343 -0
- package/compiler/transform/extract/chain/extract_chain.ts +89 -0
- package/compiler/transform/extract/chain/index.ts +3 -0
- package/compiler/transform/extract/chain/types.ts +37 -0
- package/compiler/transform/extract/index.ts +2 -0
- package/compiler/transform/extract/plugin.ts +665 -0
- package/compiler/transform/extract/transform.ts +45 -0
- package/compiler/transform/extract/utils/imports.ts +132 -0
- package/compiler/transform/extract/utils/replacement.ts +349 -0
- package/compiler/transform/extract/utils/slot.ts +186 -0
- package/compiler/transform/extract/utils/state.ts +48 -0
- package/compiler/transform/extract/utils/theme.ts +86 -0
- package/compiler/transform/extract/utils/token.ts +1 -0
- package/compiler/transform/index.ts +5 -0
- package/compiler/transform/syntax/index.ts +5 -0
- package/compiler/transform/syntax/isStaticStyleValue.ts +44 -0
- package/compiler/transform/syntax/isStyleChainCall.ts +16 -0
- package/compiler/transform/syntax/static_ids.ts +282 -0
- package/compiler/transform/syntax/types.ts +7 -0
- package/compiler/transform/syntax/utils.ts +31 -0
- package/compiler/transform/utils/babel.ts +100 -0
- package/compiler/transform/utils/import.ts +47 -0
- package/compiler/transform/utils/path.ts +13 -0
- package/compiler/transform/utils/selector.ts +252 -0
- package/compiler/utils/constants.ts +69 -0
- package/compiler/utils/file_resolver.ts +72 -0
- package/compiler/utils/import_source.ts +200 -0
- package/compiler/utils/imports.ts +24 -0
- package/compiler/utils/path.ts +40 -0
- package/compiler/utils/sourcemap.ts +61 -0
- package/config/build.ts +32 -0
- package/config/config/css.ts +32 -0
- package/config/config/css_extra.ts +22 -0
- package/config/config/debug.ts +26 -0
- package/config/config/dev.ts +145 -0
- package/config/config/runtime.ts +29 -0
- package/config/configure.ts +28 -0
- package/config/constants.ts +1 -0
- package/config/index.ts +2 -0
- package/config/types.ts +56 -0
- package/config/utils.ts +5 -0
- package/css/counterStyle.ts +20 -0
- package/css/fontFace.ts +25 -0
- package/css/fontPaletteValues.ts +20 -0
- package/css/index.ts +8 -0
- package/css/keyframes.ts +20 -0
- package/css/positionTry.ts +20 -0
- package/css/property.ts +32 -0
- package/css/utils.ts +56 -0
- package/dev/config.ts +16 -0
- package/dev/fns.ts +48 -0
- package/dev/index.ts +2 -0
- package/dev/trace.ts +413 -0
- package/dev/utils.ts +528 -0
- package/dist/assert-h_Zkqc4E.js +105 -0
- package/dist/assert-h_Zkqc4E.js.map +1 -0
- package/dist/className-C1Ht5Wvv.js +144 -0
- package/dist/className-C1Ht5Wvv.js.map +1 -0
- package/dist/className-DC2Cq8p3.js +251 -0
- package/dist/className-DC2Cq8p3.js.map +1 -0
- package/dist/compiler/index.mjs +2 -0
- package/dist/compiler-DweanHoB.mjs +6847 -0
- package/dist/compiler-DweanHoB.mjs.map +1 -0
- package/dist/config/index.js +3 -0
- package/dist/config-BryWDfQX.js +25 -0
- package/dist/config-BryWDfQX.js.map +1 -0
- package/dist/config-DKHXWhe1.js +1 -0
- package/dist/config-Di2VYYKV.js +6 -0
- package/dist/config-Di2VYYKV.js.map +1 -0
- package/dist/config-DloHOG6I.js +13 -0
- package/dist/config-DloHOG6I.js.map +1 -0
- package/dist/css-BowBszUt.js +243 -0
- package/dist/css-BowBszUt.js.map +1 -0
- package/dist/css-ByOrugEX.js +805 -0
- package/dist/css-ByOrugEX.js.map +1 -0
- package/dist/css-DcazYor9.js +235 -0
- package/dist/css-DcazYor9.js.map +1 -0
- package/dist/css.js +2 -0
- package/dist/css_extra-DlOnsnR1.js +8 -0
- package/dist/css_extra-DlOnsnR1.js.map +1 -0
- package/dist/css_extra-oIi3UEPK.js +8 -0
- package/dist/css_extra-oIi3UEPK.js.map +1 -0
- package/dist/data-_te7t0M4.js +473 -0
- package/dist/data-_te7t0M4.js.map +1 -0
- package/dist/debug-BAw63qX6.js +15 -0
- package/dist/debug-BAw63qX6.js.map +1 -0
- package/dist/debug-DGki_v7g.js +15 -0
- package/dist/debug-DGki_v7g.js.map +1 -0
- package/dist/debug-n2aZQBSa.js +172 -0
- package/dist/debug-n2aZQBSa.js.map +1 -0
- package/dist/dev/rsc.js +183 -0
- package/dist/dev/rsc.js.map +1 -0
- package/dist/dev-CcphAa3R.js +376 -0
- package/dist/dev-CcphAa3R.js.map +1 -0
- package/dist/dev-DfBbuLeE.js +71 -0
- package/dist/dev-DfBbuLeE.js.map +1 -0
- package/dist/dev.js +2 -0
- package/dist/elementMarker-Bu7gDAkE.js +800 -0
- package/dist/elementMarker-Bu7gDAkE.js.map +1 -0
- package/dist/entry/dev/css.js +3 -0
- package/dist/entry/dev/jsx-dev-runtime.js +3 -0
- package/dist/entry/dev/jsx-runtime.js +3 -0
- package/dist/entry/dev.js +10 -0
- package/dist/entry/prod/css.js +3 -0
- package/dist/entry/prod/extract.js +3 -0
- package/dist/entry/prod/jsx-dev-runtime.js +3 -0
- package/dist/entry/prod/jsx-runtime.js +3 -0
- package/dist/entry/prod/runtime.js +5 -0
- package/dist/entry/prod.js +1230 -0
- package/dist/entry/prod.js.map +1 -0
- package/dist/entry/rsc-dev/css.js +3 -0
- package/dist/entry/rsc-dev/dev.js +544 -0
- package/dist/entry/rsc-dev/dev.js.map +1 -0
- package/dist/entry/rsc-dev/jsx-dev-runtime.js +12 -0
- package/dist/entry/rsc-dev/jsx-dev-runtime.js.map +1 -0
- package/dist/entry/rsc-dev/jsx-runtime.js +3 -0
- package/dist/entry/rsc-dev.js +1429 -0
- package/dist/entry/rsc-dev.js.map +1 -0
- package/dist/entry/rsc-prod/css.js +3 -0
- package/dist/entry/rsc-prod/jsx-dev-runtime.js +3 -0
- package/dist/entry/rsc-prod/jsx-runtime.js +3 -0
- package/dist/entry/rsc-prod/runtime.js +5 -0
- package/dist/entry/rsc-prod.js +10 -0
- package/dist/extract-CzWJeQi8.js +121 -0
- package/dist/extract-CzWJeQi8.js.map +1 -0
- package/dist/extract-DEwSDJ9Z.js +2 -0
- package/dist/format-3nKBE_5t.js +144 -0
- package/dist/format-3nKBE_5t.js.map +1 -0
- package/dist/getClassName-BlvXHYuf.js +260 -0
- package/dist/getClassName-BlvXHYuf.js.map +1 -0
- package/dist/global-CvfmFLsK.js +11 -0
- package/dist/global-CvfmFLsK.js.map +1 -0
- package/dist/index.js +9 -0
- package/dist/jsx/jsx-dev-runtime.js +12 -0
- package/dist/jsx/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx/jsx-dev-runtime.server.js +11 -0
- package/dist/jsx/jsx-dev-runtime.server.js.map +1 -0
- package/dist/jsx/jsx-runtime.js +13 -0
- package/dist/jsx/jsx-runtime.js.map +1 -0
- package/dist/jsx/jsx-runtime.server.js +12 -0
- package/dist/jsx/jsx-runtime.server.js.map +1 -0
- package/dist/jsx-CwTeyUxr.js +39 -0
- package/dist/jsx-CwTeyUxr.js.map +1 -0
- package/dist/jsx-D2BksHSv.js +38 -0
- package/dist/jsx-D2BksHSv.js.map +1 -0
- package/dist/jsx_dev_runtime-B6xs4by8.js +12 -0
- package/dist/jsx_dev_runtime-B6xs4by8.js.map +1 -0
- package/dist/jsx_runtime-04xfnsi7.js +13 -0
- package/dist/jsx_runtime-04xfnsi7.js.map +1 -0
- package/dist/jsx_runtime-iHLDwpcW.js +12 -0
- package/dist/jsx_runtime-iHLDwpcW.js.map +1 -0
- package/dist/layer-D1SaH07m.js +94 -0
- package/dist/layer-D1SaH07m.js.map +1 -0
- package/dist/loader-DS61nRqr.mjs +81 -0
- package/dist/loader-DS61nRqr.mjs.map +1 -0
- package/dist/misc-B9kqEb2N.mjs +360 -0
- package/dist/misc-B9kqEb2N.mjs.map +1 -0
- package/dist/plugin/farm/index.mjs +176 -0
- package/dist/plugin/farm/index.mjs.map +1 -0
- package/dist/plugin/nextjs/index.mjs +282 -0
- package/dist/plugin/nextjs/index.mjs.map +1 -0
- package/dist/plugin/nextjs/loader.mjs +162 -0
- package/dist/plugin/nextjs/loader.mjs.map +1 -0
- package/dist/plugin/parcel/index.cjs +9 -0
- package/dist/plugin/parcel/index.mjs +5 -0
- package/dist/plugin/parcel/optimizer.cjs +28 -0
- package/dist/plugin/parcel/optimizer.cjs.map +1 -0
- package/dist/plugin/parcel/optimizer.mjs +29 -0
- package/dist/plugin/parcel/optimizer.mjs.map +1 -0
- package/dist/plugin/parcel/resolver.cjs +17 -0
- package/dist/plugin/parcel/resolver.cjs.map +1 -0
- package/dist/plugin/parcel/resolver.mjs +18 -0
- package/dist/plugin/parcel/resolver.mjs.map +1 -0
- package/dist/plugin/parcel/runtime.cjs +17 -0
- package/dist/plugin/parcel/runtime.cjs.map +1 -0
- package/dist/plugin/parcel/runtime.mjs +17 -0
- package/dist/plugin/parcel/runtime.mjs.map +1 -0
- package/dist/plugin/parcel/transformer.cjs +41 -0
- package/dist/plugin/parcel/transformer.cjs.map +1 -0
- package/dist/plugin/parcel/transformer.mjs +41 -0
- package/dist/plugin/parcel/transformer.mjs.map +1 -0
- package/dist/plugin/rspack/index.mjs +11 -0
- package/dist/plugin/rspack/index.mjs.map +1 -0
- package/dist/plugin/vite/index.mjs +176 -0
- package/dist/plugin/vite/index.mjs.map +1 -0
- package/dist/plugin/webpack/index.mjs +2 -0
- package/dist/plugin/webpack/loader.mjs +19 -0
- package/dist/plugin/webpack/loader.mjs.map +1 -0
- package/dist/presets-Bye3ea2x.js +139 -0
- package/dist/presets-Bye3ea2x.js.map +1 -0
- package/dist/property-CnLFt5kx.js +406 -0
- package/dist/property-CnLFt5kx.js.map +1 -0
- package/dist/registry-CyIj8LYK.mjs +22 -0
- package/dist/registry-CyIj8LYK.mjs.map +1 -0
- package/dist/rules-9HSO1pxL.js +767 -0
- package/dist/rules-9HSO1pxL.js.map +1 -0
- package/dist/runtime-CYqNCiaM.js +53 -0
- package/dist/runtime-CYqNCiaM.js.map +1 -0
- package/dist/selector/index.js +3 -0
- package/dist/server.js +63 -0
- package/dist/server.js.map +1 -0
- package/dist/shared-BAL9peIw.cjs +7646 -0
- package/dist/shared-BAL9peIw.cjs.map +1 -0
- package/dist/shared-CCpq1zqA.mjs +132 -0
- package/dist/shared-CCpq1zqA.mjs.map +1 -0
- package/dist/sidecar-4u6GnlQG.mjs +236 -0
- package/dist/sidecar-4u6GnlQG.mjs.map +1 -0
- package/dist/style-4rFUy-zW.js +752 -0
- package/dist/style-4rFUy-zW.js.map +1 -0
- package/dist/style-B1UUqjj5.js +743 -0
- package/dist/style-B1UUqjj5.js.map +1 -0
- package/dist/style-Cw3NtvR0.js +5 -0
- package/dist/style-DNqQ6H-7.js +1255 -0
- package/dist/style-DNqQ6H-7.js.map +1 -0
- package/dist/styleStore-Dea_WVbr.js +2000 -0
- package/dist/styleStore-Dea_WVbr.js.map +1 -0
- package/dist/styleStore-DyNXBcUK.js +54 -0
- package/dist/styleStore-DyNXBcUK.js.map +1 -0
- package/dist/token-CKXUECuU.js +76 -0
- package/dist/token-CKXUECuU.js.map +1 -0
- package/dist/token-u_tM-mtg.js +204 -0
- package/dist/token-u_tM-mtg.js.map +1 -0
- package/dist/trace-Bu_qOqRy.js +245 -0
- package/dist/trace-Bu_qOqRy.js.map +1 -0
- package/dist/trace-CU0rvNYr.js +244 -0
- package/dist/trace-CU0rvNYr.js.map +1 -0
- package/dist/utils-BbehLOby.js +2415 -0
- package/dist/utils-BbehLOby.js.map +1 -0
- package/dist/utils-C7xfDxtM.mjs +97 -0
- package/dist/utils-C7xfDxtM.mjs.map +1 -0
- package/dist/utils-CWNHx4EC.js +170 -0
- package/dist/utils-CWNHx4EC.js.map +1 -0
- package/dist/utils-CdI6vZsP.js +37 -0
- package/dist/utils-CdI6vZsP.js.map +1 -0
- package/dist/utils-D7FAOyg6.js +129 -0
- package/dist/utils-D7FAOyg6.js.map +1 -0
- package/dist/utils-DMFgOOtA.mjs +49 -0
- package/dist/utils-DMFgOOtA.mjs.map +1 -0
- package/dist/utils.js +26 -0
- package/dist/utils.js.map +1 -0
- package/dist/value-BR4e2MKt.js +910 -0
- package/dist/value-BR4e2MKt.js.map +1 -0
- package/dist/value-E8rEv2Oe.js +136 -0
- package/dist/value-E8rEv2Oe.js.map +1 -0
- package/dist/valueRef-lshFk1Cs.js +16 -0
- package/dist/valueRef-lshFk1Cs.js.map +1 -0
- package/dist/webpack-CxS2FDYU.mjs +107 -0
- package/dist/webpack-CxS2FDYU.mjs.map +1 -0
- package/dist/withTokens-LRidu3Vc.js +95 -0
- package/dist/withTokens-LRidu3Vc.js.map +1 -0
- package/entry/dev/config.ts +2 -0
- package/entry/dev/css.ts +3 -0
- package/entry/dev/index.ts +3 -0
- package/entry/dev/jsx_dev_runtime.ts +3 -0
- package/entry/dev/jsx_runtime.ts +3 -0
- package/entry/prod/config.ts +2 -0
- package/entry/prod/css.ts +3 -0
- package/entry/prod/extract.ts +1 -0
- package/entry/prod/index.ts +3 -0
- package/entry/prod/jsx_dev_runtime.ts +3 -0
- package/entry/prod/jsx_runtime.ts +3 -0
- package/entry/prod/runtime.ts +14 -0
- package/entry/rsc_dev/config.ts +6 -0
- package/entry/rsc_dev/css.ts +3 -0
- package/entry/rsc_dev/dev.ts +5 -0
- package/entry/rsc_dev/index.ts +3 -0
- package/entry/rsc_dev/jsx_dev_runtime.ts +3 -0
- package/entry/rsc_dev/jsx_runtime.ts +3 -0
- package/entry/rsc_dev/server.ts +11 -0
- package/entry/rsc_prod/config.ts +6 -0
- package/entry/rsc_prod/css.ts +3 -0
- package/entry/rsc_prod/index.ts +3 -0
- package/entry/rsc_prod/jsx_dev_runtime.ts +3 -0
- package/entry/rsc_prod/jsx_runtime.ts +3 -0
- package/entry/rsc_prod/runtime.ts +12 -0
- package/entry/rsc_prod/server.ts +13 -0
- package/entry/shared/config.ts +5 -0
- package/entry/shared/dev.ts +19 -0
- package/entry/shared/prod.ts +4 -0
- package/index.ts +36 -0
- package/jsx/extracted/jsx_dev_runtime.ts +11 -0
- package/jsx/extracted/jsx_runtime.ts +12 -0
- package/jsx/rsc/jsx_dev_runtime.ts +11 -0
- package/jsx/rsc/jsx_runtime.ts +12 -0
- package/jsx/rsc_extracted/jsx_dev_runtime.ts +2 -0
- package/jsx/rsc_extracted/jsx_runtime.ts +2 -0
- package/jsx/runtime/jsx_dev_runtime.ts +11 -0
- package/jsx/runtime/jsx_runtime.ts +12 -0
- package/jsx/types.ts +8 -0
- package/jsx/utils.ts +59 -0
- package/package.json +298 -0
- package/plugin/bundler/farm/index.ts +1 -0
- package/plugin/bundler/farm/plugin.ts +320 -0
- package/plugin/bundler/parcel/config.json +19 -0
- package/plugin/bundler/parcel/index.ts +1 -0
- package/plugin/bundler/parcel/optimizer.ts +36 -0
- package/plugin/bundler/parcel/plugin.ts +4 -0
- package/plugin/bundler/parcel/resolver.ts +36 -0
- package/plugin/bundler/parcel/runtime.ts +23 -0
- package/plugin/bundler/parcel/shared.ts +234 -0
- package/plugin/bundler/parcel/transformer.ts +67 -0
- package/plugin/bundler/rspack/index.ts +1 -0
- package/plugin/bundler/rspack/plugin.ts +14 -0
- package/plugin/bundler/vite/index.ts +1 -0
- package/plugin/bundler/vite/plugin.ts +133 -0
- package/plugin/bundler/vite/state.ts +153 -0
- package/plugin/bundler/webpack/index.ts +1 -0
- package/plugin/bundler/webpack/loader.ts +19 -0
- package/plugin/bundler/webpack/plugin.ts +240 -0
- package/plugin/bundler/webpack/shared/index.ts +2 -0
- package/plugin/bundler/webpack/shared/loader.ts +155 -0
- package/plugin/bundler/webpack/shared/registry.ts +16 -0
- package/plugin/bundler/webpack/utils.ts +96 -0
- package/plugin/nextjs/constants.ts +7 -0
- package/plugin/nextjs/html.ts +62 -0
- package/plugin/nextjs/index.ts +2 -0
- package/plugin/nextjs/loader.ts +222 -0
- package/plugin/nextjs/plugin.ts +532 -0
- package/plugin/nextjs/types.ts +33 -0
- package/plugin/nextjs/utils.ts +210 -0
- package/plugin/utils/cache/css_cache.ts +146 -0
- package/plugin/utils/cache/file.ts +40 -0
- package/plugin/utils/cache/index.ts +2 -0
- package/plugin/utils/compiler.ts +94 -0
- package/plugin/utils/constants.ts +7 -0
- package/plugin/utils/cssMarker.ts +14 -0
- package/plugin/utils/cssOutput.ts +65 -0
- package/plugin/utils/filter.ts +98 -0
- package/plugin/utils/imports.ts +5 -0
- package/plugin/utils/index.ts +10 -0
- package/plugin/utils/injection.ts +28 -0
- package/plugin/utils/misc.ts +5 -0
- package/plugin/utils/runtimeEntry.ts +57 -0
- package/plugin/utils/sidecar/index.ts +1 -0
- package/plugin/utils/sidecar/server.ts +143 -0
- package/plugin/utils/sidecar/sidecar.ts +167 -0
- package/plugin/utils/sidecar/utils.ts +109 -0
- package/plugin/utils/sourcemap.ts +52 -0
- package/plugin/utils/virtual.ts +81 -0
- package/runtime/core/cache/combine.ts +102 -0
- package/runtime/core/cache/index.ts +5 -0
- package/runtime/core/cache/item.ts +231 -0
- package/runtime/core/cache/pool.ts +310 -0
- package/runtime/core/cache/prop.ts +283 -0
- package/runtime/core/cache/propCache.ts +62 -0
- package/runtime/core/cache/resolvedItem.ts +31 -0
- package/runtime/core/cache/result.ts +115 -0
- package/runtime/core/cache/stateItem.ts +208 -0
- package/runtime/core/cache/tokenValues.ts +150 -0
- package/runtime/core/cache/utils/tree.ts +57 -0
- package/runtime/core/cache/utils/walk.ts +24 -0
- package/runtime/core/className.ts +101 -0
- package/runtime/core/combinedStyle.ts +101 -0
- package/runtime/core/createTransformElement.ts +39 -0
- package/runtime/core/elementMarker.ts +189 -0
- package/runtime/core/elementMarkerData.ts +27 -0
- package/runtime/core/getClassName.ts +47 -0
- package/runtime/core/getSheetRules.ts +7 -0
- package/runtime/core/getToken.ts +14 -0
- package/runtime/core/index.ts +5 -0
- package/runtime/core/jsx.ts +4 -0
- package/runtime/core/resolveClassNameRuntime.ts +33 -0
- package/runtime/env.ts +7 -0
- package/runtime/extract/getClassName.ts +476 -0
- package/runtime/extract/index.ts +4 -0
- package/runtime/extract/jsx.ts +55 -0
- package/runtime/index.ts +12 -0
- package/runtime/rsc/constants.ts +6 -0
- package/runtime/rsc/dev.ts +38 -0
- package/runtime/rsc/getClassName.ts +98 -0
- package/runtime/rsc/index.ts +3 -0
- package/runtime/rsc/jsx.ts +4 -0
- package/runtime/rsc/observer.ts +238 -0
- package/runtime/rsc/styleStore.ts +82 -0
- package/runtime/sheet/element.ts +13 -0
- package/runtime/sheet/global-noop.ts +13 -0
- package/runtime/sheet/global-prod.ts +13 -0
- package/runtime/sheet/global.ts +13 -0
- package/runtime/sheet/index.ts +3 -0
- package/runtime/sheet/insert.ts +37 -0
- package/runtime/sheet/rule.ts +77 -0
- package/runtime/sheet/rules.ts +131 -0
- package/runtime/sheet/theme.ts +34 -0
- package/runtime/style/index.ts +3 -0
- package/runtime/style/scope.ts +65 -0
- package/runtime/style/style.ts +34 -0
- package/runtime/style/token.ts +1 -0
- package/runtime/types.ts +42 -0
- package/selector/assert.ts +131 -0
- package/selector/index.ts +5 -0
- package/selector/presets/default.ts +27 -0
- package/selector/presets/index.ts +3 -0
- package/selector/presets/minimal.ts +37 -0
- package/selector/presets/selectors.ts +85 -0
- package/selector/selector.ts +68 -0
- package/selector/types.ts +24 -0
- package/selector/validate.ts +91 -0
- package/sheet/dev/dev_layer.ts +151 -0
- package/sheet/dev/dev_sort.ts +249 -0
- package/sheet/dev/index.ts +129 -0
- package/sheet/dev/utils.ts +130 -0
- package/sheet/index.ts +4 -0
- package/sheet/prod.ts +109 -0
- package/sheet/sheet.ts +10 -0
- package/sheet/sourcemap.ts +70 -0
- package/sheet/types.ts +31 -0
- package/sheet/utils/dom.ts +71 -0
- package/sheet/utils/index.ts +4 -0
- package/sheet/utils/layer.ts +14 -0
- package/sheet/utils/noop.ts +11 -0
- package/sheet/utils/rule.ts +3 -0
- package/sheet/utils/sourcemap.ts +221 -0
- package/style/index.ts +9 -0
- package/style/keyframes.ts +40 -0
- package/style/style.ts +112 -0
- package/style/theme.ts +36 -0
- package/style/token.ts +101 -0
- package/style/tokens.ts +64 -0
- package/style/transform.ts +9 -0
- package/style/types.ts +32 -0
- package/style/utils/expose.ts +43 -0
- package/style/utils/index.ts +1 -0
- package/style/value.ts +103 -0
- package/style/valueRef.ts +25 -0
- package/utils/global.ts +44 -0
- package/utils/hash.ts +22 -0
- package/utils/id.ts +20 -0
- package/utils/object.ts +87 -0
- package/utils/trace.ts +211 -0
- package/utils/type.ts +22 -0
package/dev/utils.ts
ADDED
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import { CSS_CONFIG } from '../config/config/css';
|
|
2
|
+
import { CSS_EXTRA_CONFIG } from '../config/config/css_extra';
|
|
3
|
+
import { DEBUG_CONFIG } from '../config/config/debug';
|
|
4
|
+
import { DEV_CONFIG, getBuildDevConfig, setDevUtilsRuntimeOptions } from '../config/config/dev';
|
|
5
|
+
import { RUNTIME_CONFIG } from '../config/config/runtime';
|
|
6
|
+
import type { SourcemapLocationMode, StylePriorityMode } from '../config/types';
|
|
7
|
+
import { clearElementMarkers } from '../runtime/core/elementMarker';
|
|
8
|
+
import { refreshDevSourcemapTags, refreshDevStyleTags } from '../sheet/dev';
|
|
9
|
+
import {
|
|
10
|
+
createDevUtilsObject,
|
|
11
|
+
DefaultUtilsName,
|
|
12
|
+
getDevUtilsTarget,
|
|
13
|
+
getTraceStartMessage,
|
|
14
|
+
parseElementMarker,
|
|
15
|
+
parsePriorityMode,
|
|
16
|
+
parseSourcemapTrace as parseSourcemapMode,
|
|
17
|
+
StorageKeys,
|
|
18
|
+
} from './fns';
|
|
19
|
+
|
|
20
|
+
const noopStorage = {
|
|
21
|
+
getItem: () => null,
|
|
22
|
+
removeItem: () => undefined,
|
|
23
|
+
setItem: () => undefined,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const getStorage = () => {
|
|
27
|
+
const storage = globalThis.localStorage as Storage | undefined;
|
|
28
|
+
|
|
29
|
+
return storage && typeof storage.getItem === 'function'
|
|
30
|
+
? storage
|
|
31
|
+
: noopStorage;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type StyleDevUtilsOptions = {
|
|
35
|
+
name?: string;
|
|
36
|
+
silent?: boolean;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export function enableStyleDevUtils(options: StyleDevUtilsOptions = {}) {
|
|
40
|
+
const name = options.name ?? DefaultUtilsName;
|
|
41
|
+
if (!name) return;
|
|
42
|
+
|
|
43
|
+
applyPersistentDevConfig();
|
|
44
|
+
|
|
45
|
+
const target = getDevUtilsTarget();
|
|
46
|
+
if (!target) return;
|
|
47
|
+
|
|
48
|
+
target[name] = getUtils(name);
|
|
49
|
+
|
|
50
|
+
if (!options.silent) logCssDevUtilsEnabled(name);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function getUtils(displayName: string) {
|
|
54
|
+
const setPriorityModeUtils = createDevUtilsObject({
|
|
55
|
+
toLayer() {
|
|
56
|
+
setPriorityMode('layer');
|
|
57
|
+
return null;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
toSort() {
|
|
61
|
+
setPriorityMode('sort');
|
|
62
|
+
return null;
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const setSourcemapModeUtils = createDevUtilsObject({
|
|
67
|
+
toStyle() {
|
|
68
|
+
setSourcemapMode('style');
|
|
69
|
+
return null;
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
toValue() {
|
|
73
|
+
setSourcemapMode('value');
|
|
74
|
+
return null;
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const setElementMarkerUtils = createDevUtilsObject({
|
|
79
|
+
toOn() {
|
|
80
|
+
setElementMarkerMode(true);
|
|
81
|
+
return null;
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
toOff() {
|
|
85
|
+
setElementMarkerMode(false);
|
|
86
|
+
return null;
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const startupMessageUtils = createDevUtilsObject({
|
|
91
|
+
on() {
|
|
92
|
+
getStorage().removeItem(StorageKeys.startupMessage);
|
|
93
|
+
return null;
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
off() {
|
|
97
|
+
getStorage().setItem(StorageKeys.startupMessage, 'off');
|
|
98
|
+
return null;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const baseUtils = createDevUtilsObject({
|
|
103
|
+
usage() {
|
|
104
|
+
logUsage(displayName);
|
|
105
|
+
return null;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
info() {
|
|
109
|
+
logInfo(displayName);
|
|
110
|
+
return null;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
getConfig() {
|
|
114
|
+
const config = {
|
|
115
|
+
runtime: RUNTIME_CONFIG,
|
|
116
|
+
dev: DEV_CONFIG,
|
|
117
|
+
debug: DEBUG_CONFIG,
|
|
118
|
+
css: CSS_CONFIG,
|
|
119
|
+
cssExtra: CSS_EXTRA_CONFIG,
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
console.log(config);
|
|
123
|
+
return null;
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
reset() {
|
|
127
|
+
resetDevUtils();
|
|
128
|
+
return null;
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
setPriorityMode: setPriorityModeUtils,
|
|
132
|
+
|
|
133
|
+
setElementMarker: setElementMarkerUtils,
|
|
134
|
+
|
|
135
|
+
startupMessage: startupMessageUtils,
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
const pluginUtils = createDevUtilsObject({
|
|
139
|
+
...baseUtils,
|
|
140
|
+
setSourcemapMode: setSourcemapModeUtils,
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
if (enableRuntimeTraceSourcemap()) {
|
|
144
|
+
return createDevUtilsObject({
|
|
145
|
+
...baseUtils,
|
|
146
|
+
traceSourcemap() {
|
|
147
|
+
traceSourcemap();
|
|
148
|
+
return logTraceStart();
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return pluginUtils;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function enableRuntimeTraceSourcemap() {
|
|
157
|
+
return DEV_CONFIG.isDev && !RUNTIME_CONFIG.isPlugin;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function setSourcemapMode(mode: SourcemapLocationMode) {
|
|
161
|
+
setDevUtilsRuntimeOptions({ sourcemapMode: mode });
|
|
162
|
+
|
|
163
|
+
saveDevConfig();
|
|
164
|
+
refreshDevSourcemapTags();
|
|
165
|
+
|
|
166
|
+
logSourcemapMode(mode);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function setPriorityMode(mode: StylePriorityMode) {
|
|
170
|
+
setDevUtilsRuntimeOptions({ priorityMode: mode });
|
|
171
|
+
|
|
172
|
+
saveDevConfig();
|
|
173
|
+
refreshDevStyleTags();
|
|
174
|
+
|
|
175
|
+
logPriorityMode(mode);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function setElementMarkerMode(enabled: boolean) {
|
|
179
|
+
const wasEnabled = DEV_CONFIG.isElementClassNameEnabled;
|
|
180
|
+
|
|
181
|
+
if (enabled && isElementMarkerDisabledByPlugin()) {
|
|
182
|
+
logElementMarkerDisabledByPlugin();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
setDevUtilsRuntimeOptions({ elementClassName: enabled });
|
|
187
|
+
|
|
188
|
+
if (!enabled) clearElementMarkers();
|
|
189
|
+
saveDevConfig();
|
|
190
|
+
|
|
191
|
+
logElementMarkerMode(enabled);
|
|
192
|
+
|
|
193
|
+
if (enabled && !wasEnabled) {
|
|
194
|
+
logElementMarkerReload();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function applyPersistentDevConfig() {
|
|
199
|
+
const storage = getStorage();
|
|
200
|
+
|
|
201
|
+
const priorityMode = parsePriorityMode(storage.getItem(StorageKeys.priorityMode));
|
|
202
|
+
const sourcemapMode = parseSourcemapMode(storage.getItem(StorageKeys.sourcemapMode));
|
|
203
|
+
const elementClassName = parseElementMarker(storage.getItem(StorageKeys.elementMarker));
|
|
204
|
+
const isDisabledByPlugin = isElementMarkerDisabledByPlugin();
|
|
205
|
+
|
|
206
|
+
if (elementClassName === true && isDisabledByPlugin) {
|
|
207
|
+
logElementMarkerDisabledByPlugin();
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (
|
|
211
|
+
!priorityMode &&
|
|
212
|
+
!sourcemapMode &&
|
|
213
|
+
elementClassName === null
|
|
214
|
+
) return;
|
|
215
|
+
|
|
216
|
+
setDevUtilsRuntimeOptions({
|
|
217
|
+
priorityMode,
|
|
218
|
+
sourcemapMode,
|
|
219
|
+
elementClassName: elementClassName === true && isDisabledByPlugin ? null : elementClassName,
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
if (elementClassName === false) clearElementMarkers();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function writeStoredDevConfig() {
|
|
226
|
+
const storage = getStorage();
|
|
227
|
+
|
|
228
|
+
storage.setItem(
|
|
229
|
+
StorageKeys.priorityMode,
|
|
230
|
+
DEV_CONFIG.stylePriorityMode,
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
storage.setItem(
|
|
234
|
+
StorageKeys.sourcemapMode,
|
|
235
|
+
DEV_CONFIG.sourcemapLocationMode,
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
storage.setItem(
|
|
239
|
+
StorageKeys.elementMarker,
|
|
240
|
+
DEV_CONFIG.isElementClassNameEnabled ? 'true' : 'false',
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function removeStoredDevConfig() {
|
|
245
|
+
const storage = getStorage();
|
|
246
|
+
|
|
247
|
+
storage.removeItem(StorageKeys.priorityMode);
|
|
248
|
+
storage.removeItem(StorageKeys.sourcemapMode);
|
|
249
|
+
storage.removeItem(StorageKeys.elementMarker);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function saveDevConfig() {
|
|
253
|
+
writeStoredDevConfig();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function resetDevUtils() {
|
|
257
|
+
removeStoredDevConfig();
|
|
258
|
+
setDevUtilsRuntimeOptions(null);
|
|
259
|
+
|
|
260
|
+
refreshDevStyleTags();
|
|
261
|
+
refreshDevSourcemapTags();
|
|
262
|
+
clearElementMarkers();
|
|
263
|
+
logReset();
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
async function traceSourcemap() {
|
|
267
|
+
const trace = await import('./trace');
|
|
268
|
+
|
|
269
|
+
const result = await trace.traceDevSourcemaps();
|
|
270
|
+
|
|
271
|
+
logTraceCompleted(result);
|
|
272
|
+
|
|
273
|
+
return result;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function logTraceStart() {
|
|
277
|
+
return getTraceStartMessage();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function logTraceCompleted(result: {
|
|
281
|
+
tags: number;
|
|
282
|
+
rules: number;
|
|
283
|
+
remapped: number;
|
|
284
|
+
unresolved: number;
|
|
285
|
+
}) {
|
|
286
|
+
console.log(
|
|
287
|
+
'\x1b[32m✔\x1b[0m \x1b[1m\x1b[36m[sourcemap]\x1b[0m trace completed ' +
|
|
288
|
+
`\x1b[2m(tags:${result.tags} rules:${result.rules} remapped:${result.remapped} unresolved:${result.unresolved})\x1b[0m`,
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function logSourcemapMode(mode: SourcemapLocationMode) {
|
|
293
|
+
const message = `sourcemap trace mode: ${mode}`;
|
|
294
|
+
|
|
295
|
+
console.log(
|
|
296
|
+
`\x1b[32m✔\x1b[0m \x1b[1m\x1b[36m[sourcemap]\x1b[0m ${message}`,
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function logPriorityMode(mode: StylePriorityMode) {
|
|
301
|
+
const message = `priority mode: ${mode}`;
|
|
302
|
+
|
|
303
|
+
console.log(
|
|
304
|
+
`\x1b[32m✔\x1b[0m \x1b[1m\x1b[36m[priority]\x1b[0m ${message}`,
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function logElementMarkerMode(enabled: boolean) {
|
|
309
|
+
console.log(
|
|
310
|
+
`\x1b[32m✔\x1b[0m \x1b[1m\x1b[36m[element-marker]\x1b[0m ${enabled ? 'on' : 'off'}`,
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function logElementMarkerReload() {
|
|
315
|
+
console.log(
|
|
316
|
+
'\x1b[33m!\x1b[0m \x1b[1m\x1b[36m[element-marker]\x1b[0m reload the page to mark already-rendered elements',
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
function logElementMarkerDisabledByPlugin() {
|
|
321
|
+
console.log(
|
|
322
|
+
'\x1b[33m!\x1b[0m \x1b[1m\x1b[36m[element-marker]\x1b[0m disabled by plugin options',
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function logReset() {
|
|
327
|
+
console.log(
|
|
328
|
+
'\x1b[32m✔\x1b[0m \x1b[1m\x1b[36m[dev-utils]\x1b[0m reset saved preferences',
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function logUsage(displayName: string) {
|
|
333
|
+
console.group(`%c[${displayName}] usage`, 'font-weight:700;color:#a21caf');
|
|
334
|
+
logUsageRows(displayName);
|
|
335
|
+
console.groupEnd();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function logInfo(displayName: string) {
|
|
339
|
+
console.group(`%c[${displayName}] info`, 'font-weight:700;color:#7c3aed');
|
|
340
|
+
logInfoRows();
|
|
341
|
+
console.groupEnd();
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function logUsageRows(displayName: string) {
|
|
345
|
+
const commands = getUsageCommands(displayName);
|
|
346
|
+
|
|
347
|
+
for (const [command, description] of commands) {
|
|
348
|
+
console.log(`%c${command}%c // ${description}`, 'color:#0891b2', 'color:#64748b');
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function logInfoRows() {
|
|
353
|
+
const rows: string[][] = [
|
|
354
|
+
['Priority', getPriorityModeValue(), getPriorityModeDetail()],
|
|
355
|
+
['Sourcemap', getSourcemapLabel(), getSourcemapDetail()],
|
|
356
|
+
['ClassNames', getClassNameLabel(), getClassNameDetail()],
|
|
357
|
+
['ElementMark', getElementMarkerLabel(), getElementMarkerDetail()],
|
|
358
|
+
['CSS', getCssModeLabel(), getCssModeDetail()],
|
|
359
|
+
['Runtime', getRuntimeModeLabel(), getRuntimeDetail()],
|
|
360
|
+
['Plugin', getPluginLabel(), getPluginDetail()],
|
|
361
|
+
];
|
|
362
|
+
|
|
363
|
+
for (const [label, value, detail] of rows) {
|
|
364
|
+
if (!detail) {
|
|
365
|
+
console.log(
|
|
366
|
+
`%c${label.padEnd(12)}%c${value}`,
|
|
367
|
+
'font-weight:700;color:#7c3aed',
|
|
368
|
+
'font-weight:700;color:#111827',
|
|
369
|
+
);
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
console.log(
|
|
374
|
+
`%c${label.padEnd(12)}%c${value}%c ${detail}`,
|
|
375
|
+
'font-weight:700;color:#7c3aed',
|
|
376
|
+
'font-weight:700;color:#111827',
|
|
377
|
+
'color:#64748b',
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function getRuntimeModeLabel() {
|
|
383
|
+
return DEV_CONFIG.isDev ? 'dev' : 'prod';
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
function getRuntimeDetail() {
|
|
387
|
+
const details = [
|
|
388
|
+
RUNTIME_CONFIG.isRSC ? 'RSC runtime.' : 'Client runtime.',
|
|
389
|
+
RUNTIME_CONFIG.isHoist ? 'Hoisting is enabled.' : 'Hoisting is disabled.',
|
|
390
|
+
];
|
|
391
|
+
|
|
392
|
+
return details.join(' / ');
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function getPluginLabel() {
|
|
396
|
+
return RUNTIME_CONFIG.isPlugin ? 'active' : 'none';
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function getPluginDetail() {
|
|
400
|
+
return RUNTIME_CONFIG.isPlugin
|
|
401
|
+
? 'Build metadata is available.'
|
|
402
|
+
: 'Only runtime helpers are available.';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function getCssModeLabel() {
|
|
406
|
+
return RUNTIME_CONFIG.isExtracted ? 'extracted' : 'runtime';
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
function getCssModeDetail() {
|
|
410
|
+
if (DEV_CONFIG.stylePriorityMode === 'layer') {
|
|
411
|
+
const layer = CSS_CONFIG.layer
|
|
412
|
+
? 'Rules are wrapped in the configured CSS layer.'
|
|
413
|
+
: 'Rules are not wrapped in an output CSS layer.';
|
|
414
|
+
|
|
415
|
+
return `${layer} Priority sublayers control order.`;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
return CSS_CONFIG.layer
|
|
419
|
+
? 'Sorted rules are wrapped in the configured CSS layer.'
|
|
420
|
+
: 'Sorted rules are emitted without an output CSS layer.';
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
function getPriorityModeValue() {
|
|
424
|
+
return DEV_CONFIG.stylePriorityMode;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function getPriorityModeDetail() {
|
|
428
|
+
return DEV_CONFIG.stylePriorityMode === 'layer'
|
|
429
|
+
? 'Cascade layers control priority.'
|
|
430
|
+
: 'Rules are ordered by priority.';
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
function getSourcemapLabel() {
|
|
434
|
+
return DEV_CONFIG.isSourcemapEnabled ? DEV_CONFIG.sourcemapLocationMode : 'off';
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function getSourcemapDetail() {
|
|
438
|
+
if (!DEV_CONFIG.isSourcemapEnabled) {
|
|
439
|
+
return 'Sourcemaps are disabled.';
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
if (enableRuntimeTraceSourcemap()) {
|
|
443
|
+
return 'Run traceSourcemap() to trace runtime callsites.';
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return DEV_CONFIG.sourcemapLocationMode === 'style'
|
|
447
|
+
? 'Spread or merged values trace to the style site.'
|
|
448
|
+
: 'Spread or merged values trace to the value source.';
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
function getClassNameLabel() {
|
|
452
|
+
const labels = [
|
|
453
|
+
DEBUG_CONFIG.isDebugClassNameEnabled ? 'debug' : '',
|
|
454
|
+
DEV_CONFIG.isLocalClassNameEnabled ? 'local' : '',
|
|
455
|
+
].filter(Boolean);
|
|
456
|
+
|
|
457
|
+
return labels.length > 0 ? labels.join(' + ') : 'hashed';
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function getClassNameDetail() {
|
|
461
|
+
return [
|
|
462
|
+
DEBUG_CONFIG.isDebugClassNameEnabled ? 'Friendly names are enabled.' : 'Compact names are enabled.',
|
|
463
|
+
DEV_CONFIG.isLocalClassNameEnabled ? 'Names are callsite-scoped.' : 'Names use global hashes.',
|
|
464
|
+
].join(' / ');
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function getElementMarkerLabel() {
|
|
468
|
+
return DEV_CONFIG.isElementClassNameEnabled ? 'on' : 'off';
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function getElementMarkerDetail() {
|
|
472
|
+
if (isElementMarkerDisabledByPlugin()) return 'Disabled by plugin options.';
|
|
473
|
+
if (!DEV_CONFIG.isElementClassNameEnabled) return 'Element marker classes are disabled.';
|
|
474
|
+
|
|
475
|
+
return CSS_CONFIG.elementClassNameFormat
|
|
476
|
+
? `Format ${CSS_CONFIG.elementClassNameFormat}`
|
|
477
|
+
: '';
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
function isElementMarkerDisabledByPlugin() {
|
|
481
|
+
return getBuildDevConfig()?.isElementClassNameEnabled === false;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
function getUsageCommands(displayName: string) {
|
|
485
|
+
const commands = [
|
|
486
|
+
[`${displayName}.usage()`, 'Print this help text'],
|
|
487
|
+
[`${displayName}.info()`, 'Print current debug status'],
|
|
488
|
+
[`${displayName}.getConfig()`, 'Print current runtime config'],
|
|
489
|
+
[`${displayName}.reset()`, 'Reset saved local debug preferences'],
|
|
490
|
+
[`${displayName}.startupMessage.on()`, 'Show the initial helper message'],
|
|
491
|
+
[`${displayName}.startupMessage.off()`, 'Hide the initial helper message'],
|
|
492
|
+
[`${displayName}.setElementMarker.toOn()`, 'Add element source marker classes'],
|
|
493
|
+
[`${displayName}.setElementMarker.toOff()`, 'Stop adding element source marker classes'],
|
|
494
|
+
[`${displayName}.setPriorityMode.toLayer()`, 'Use layer priority mode'],
|
|
495
|
+
[`${displayName}.setPriorityMode.toSort()`, 'Use sorted priority mode'],
|
|
496
|
+
];
|
|
497
|
+
|
|
498
|
+
if (!enableRuntimeTraceSourcemap()) {
|
|
499
|
+
commands.push(
|
|
500
|
+
[`${displayName}.setSourcemapMode.toStyle()`, 'Map spread or merged values to the style site'],
|
|
501
|
+
[`${displayName}.setSourcemapMode.toValue()`, 'Map spread or merged values to the value source'],
|
|
502
|
+
);
|
|
503
|
+
} else {
|
|
504
|
+
commands.push([`${displayName}.traceSourcemap()`, 'Trace runtime sourcemaps']);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return commands;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function logCssDevUtilsEnabled(displayName: string) {
|
|
511
|
+
console.groupCollapsed(
|
|
512
|
+
`%c✨ %c[${displayName}] %cpriority=%c${DEV_CONFIG.stylePriorityMode}%c sourcemap=%c${DEV_CONFIG.sourcemapLocationMode}%c marker=%c${getElementMarkerLabel()}%c │ %cFor usage run %c${displayName}.usage()`,
|
|
513
|
+
'color:#eab308',
|
|
514
|
+
'font-weight:700;color:#a21caf',
|
|
515
|
+
'font-weight:700;color:#475569',
|
|
516
|
+
'font-weight:800;color:#d97706',
|
|
517
|
+
'font-weight:700;color:#475569',
|
|
518
|
+
'font-weight:800;color:#059669',
|
|
519
|
+
'font-weight:700;color:#475569',
|
|
520
|
+
'font-weight:800;color:#0f766e',
|
|
521
|
+
'color:#94a3b8',
|
|
522
|
+
'font-weight:700;color:#475569',
|
|
523
|
+
'font-weight:800;color:#0891b2',
|
|
524
|
+
);
|
|
525
|
+
|
|
526
|
+
logInfoRows();
|
|
527
|
+
console.groupEnd();
|
|
528
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SelectorType, parse } from "css-what";
|
|
2
|
+
//#region selector/validate.ts
|
|
3
|
+
function isLocalSelector(selector) {
|
|
4
|
+
const groups = parseSelector(selector);
|
|
5
|
+
if (!groups || groups.length !== 1) return false;
|
|
6
|
+
return isSelectorGroupsSelf(groups, false);
|
|
7
|
+
}
|
|
8
|
+
function isPseudoArgSelector(selector) {
|
|
9
|
+
const groups = parseSelector(selector);
|
|
10
|
+
if (!groups || groups.length !== 1) return false;
|
|
11
|
+
return isSelectorGroupsSelf(groups, true);
|
|
12
|
+
}
|
|
13
|
+
function isTagSelector(selector) {
|
|
14
|
+
const groups = parseSelector(selector);
|
|
15
|
+
if (!groups || groups.length !== 1) return false;
|
|
16
|
+
const group = groups[0];
|
|
17
|
+
return group.length === 1 && group[0].type === SelectorType.Tag;
|
|
18
|
+
}
|
|
19
|
+
function isAttrArg(value) {
|
|
20
|
+
if (!value) return false;
|
|
21
|
+
if (value.includes("[") || value.includes("]")) return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
function isRawValue(value) {
|
|
25
|
+
if (!value) return false;
|
|
26
|
+
if (value.includes("{") || value.includes("}")) return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function parseSelector(selector) {
|
|
30
|
+
try {
|
|
31
|
+
return parse(selector);
|
|
32
|
+
} catch {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function isSelectorGroupsSelf(groups, allowTag) {
|
|
37
|
+
for (let i = 0; i < groups.length; i++) {
|
|
38
|
+
const group = groups[i];
|
|
39
|
+
for (let j = 0; j < group.length; j++) {
|
|
40
|
+
const token = group[j];
|
|
41
|
+
if (!isAllowedSelectorType(token.type, allowTag)) return false;
|
|
42
|
+
if (token.type === SelectorType.Pseudo && Array.isArray(token.data) && !isSelectorGroupsSelf(token.data, allowTag)) return false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function isAllowedSelectorType(type, allowTag) {
|
|
48
|
+
return type === SelectorType.Attribute || type === SelectorType.Pseudo || type === SelectorType.PseudoElement || allowTag && type === SelectorType.Tag;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region selector/assert.ts
|
|
52
|
+
function assertSelector(type, value) {
|
|
53
|
+
assertSelectorNotEmpty(value);
|
|
54
|
+
if (!type) return;
|
|
55
|
+
if (typeof type === "function") return type(value);
|
|
56
|
+
switch (type) {
|
|
57
|
+
case "local": return assertLocalSelector(value);
|
|
58
|
+
case "arg": return assertPseudoArgSelector(value);
|
|
59
|
+
case "tag": return assertTagSelector(value);
|
|
60
|
+
case "attr": return assertAttrSelector(value);
|
|
61
|
+
case "value": return assertRawValue(value);
|
|
62
|
+
case "media": return assertMediaQuery(value);
|
|
63
|
+
case "supports": return assertSupportsQuery(value);
|
|
64
|
+
case "container": return assertContainerQuery(value);
|
|
65
|
+
default: throw new Error("unsupported selector type: " + value);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function assertEnumSelector(...input) {
|
|
69
|
+
const values = Array.isArray(input[0]) ? input[0] : input;
|
|
70
|
+
const fn = (arg) => {
|
|
71
|
+
if (!values.includes(arg)) throw new Error(`value must be one of: ${values.join(", ")}`);
|
|
72
|
+
};
|
|
73
|
+
return fn;
|
|
74
|
+
}
|
|
75
|
+
function assertSelectorNotEmpty(value) {
|
|
76
|
+
if (!value) throw new Error("selector cannot be empty");
|
|
77
|
+
}
|
|
78
|
+
function assertLocalSelector(value) {
|
|
79
|
+
if (!isLocalSelector(value)) throw new Error("selector must target the current element only and cannot contain tags, combinators, or multiple selectors");
|
|
80
|
+
}
|
|
81
|
+
function assertPseudoArgSelector(value) {
|
|
82
|
+
if (!isPseudoArgSelector(value)) throw new Error("pseudo selector argument must contain only tags or selectors targeting the current element");
|
|
83
|
+
}
|
|
84
|
+
function assertTagSelector(value) {
|
|
85
|
+
if (!isTagSelector(value)) throw new Error("selector must be a single tag selector");
|
|
86
|
+
}
|
|
87
|
+
function assertAttrSelector(value) {
|
|
88
|
+
if (!isAttrArg(value)) throw new Error("attribute selector value must not include \"[\" or \"]\"");
|
|
89
|
+
}
|
|
90
|
+
function assertRawValue(value) {
|
|
91
|
+
if (!isRawValue(value)) throw new Error("value must not contain \"{\" or \"}\"");
|
|
92
|
+
}
|
|
93
|
+
function assertMediaQuery(value) {
|
|
94
|
+
if (!isRawValue(value)) throw new Error("media query must not contain \"{\" or \"}\"");
|
|
95
|
+
}
|
|
96
|
+
function assertSupportsQuery(value) {
|
|
97
|
+
if (!isRawValue(value)) throw new Error("supports query must not contain \"{\" or \"}\"");
|
|
98
|
+
}
|
|
99
|
+
function assertContainerQuery(value) {
|
|
100
|
+
if (!isRawValue(value)) throw new Error("container query must not contain \"{\" or \"}\"");
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { assertMediaQuery as a, assertSelector as c, assertTagSelector as d, isAttrArg as f, isTagSelector as g, isRawValue as h, assertLocalSelector as i, assertSelectorNotEmpty as l, isPseudoArgSelector as m, assertContainerQuery as n, assertPseudoArgSelector as o, isLocalSelector as p, assertEnumSelector as r, assertRawValue as s, assertAttrSelector as t, assertSupportsQuery as u };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=assert-h_Zkqc4E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-h_Zkqc4E.js","names":[],"sources":["../selector/validate.ts","../selector/assert.ts"],"sourcesContent":["import { parse, SelectorType } from 'css-what';\nimport type { Selector } from 'css-what';\n\ntype SelectorGroup = Selector[];\ntype SelectorGroups = SelectorGroup[];\n\nexport function isLocalSelector(selector: string) {\n const groups = parseSelector(selector);\n\n if (!groups || groups.length !== 1) return false;\n\n return isSelectorGroupsSelf(groups, false);\n}\n\nexport function isPseudoArgSelector(selector: string) {\n const groups = parseSelector(selector);\n\n if (!groups || groups.length !== 1) return false;\n\n return isSelectorGroupsSelf(groups, true);\n}\n\nexport function isTagSelector(selector: string) {\n const groups = parseSelector(selector);\n\n if (!groups || groups.length !== 1) return false;\n\n const group = groups[0];\n\n return group.length === 1 && group[0].type === SelectorType.Tag;\n}\n\nexport function isAttrArg(value: string) {\n if (!value) return false;\n\n // reject already wrapped attrs: attr('data-x'), not attr('[data-x]')\n if (value.includes('[') || value.includes(']')) return false;\n\n // cheap sanity only\n return true;\n}\n\nexport function isRawValue(value: string) {\n if (!value) return false;\n\n // avoid accidentally accepting whole rules\n if (value.includes('{') || value.includes('}')) return false;\n\n return true;\n}\n\nfunction parseSelector(selector: string): SelectorGroups | undefined {\n try {\n return parse(selector);\n } catch {\n return undefined;\n }\n}\n\nfunction isSelectorGroupsSelf(groups: SelectorGroups, allowTag: boolean) {\n for (let i = 0; i < groups.length; i++) {\n const group = groups[i];\n\n for (let j = 0; j < group.length; j++) {\n const token = group[j];\n\n if (!isAllowedSelectorType(token.type, allowTag)) {\n return false;\n }\n\n if (\n token.type === SelectorType.Pseudo &&\n Array.isArray(token.data) &&\n !isSelectorGroupsSelf(token.data, allowTag)\n ) {\n return false;\n }\n }\n }\n\n return true;\n}\n\nfunction isAllowedSelectorType(type: SelectorType, allowTag: boolean) {\n return (\n type === SelectorType.Attribute ||\n type === SelectorType.Pseudo ||\n type === SelectorType.PseudoElement ||\n (allowTag && type === SelectorType.Tag)\n );\n}\n","import type { SelectorAssert, SelectorAssertFn } from './types';\nimport { isAttrArg, isLocalSelector, isPseudoArgSelector, isRawValue, isTagSelector } from './validate';\n\nexport function assertSelector(type: SelectorAssert | null, value: string) {\n assertSelectorNotEmpty(value);\n\n if (!type) return;\n\n if (typeof type === 'function') {\n return type(value);\n }\n\n switch (type) {\n case 'local':\n return assertLocalSelector(value);\n\n case 'arg':\n return assertPseudoArgSelector(value);\n\n case 'tag':\n return assertTagSelector(value);\n\n case 'attr':\n return assertAttrSelector(value);\n\n case 'value':\n return assertRawValue(value);\n\n case 'media':\n return assertMediaQuery(value);\n\n case 'supports':\n return assertSupportsQuery(value);\n\n case 'container':\n return assertContainerQuery(value);\n\n default:\n throw new Error('unsupported selector type: ' + value);\n }\n}\n\nexport function assertEnumSelector<const Values extends readonly string[]>(\n values: Values,\n): SelectorAssertFn<Values[number]>;\nexport function assertEnumSelector<const Values extends readonly string[]>(\n ...values: Values\n): SelectorAssertFn<Values[number]>;\nexport function assertEnumSelector(\n ...input: [readonly string[]] | string[]\n) {\n const values = Array.isArray(input[0]) ? input[0] : input;\n\n const fn = (arg: string) => {\n if (!values.includes(arg)) {\n throw new Error(`value must be one of: ${values.join(', ')}`);\n }\n };\n\n return fn as SelectorAssertFn<string>;\n}\n\nexport function assertSelectorNotEmpty(value: string) {\n if (!value) {\n throw new Error('selector cannot be empty');\n }\n}\n\nexport function assertLocalSelector(value: string) {\n if (!isLocalSelector(value)) {\n throw new Error(\n 'selector must target the current element only and cannot contain tags, combinators, or multiple selectors',\n );\n }\n}\n\nexport function assertPseudoArgSelector(value: string) {\n if (!isPseudoArgSelector(value)) {\n throw new Error(\n 'pseudo selector argument must contain only tags or selectors targeting the current element',\n );\n }\n}\n\nexport function assertTagSelector(value: string) {\n if (!isTagSelector(value)) {\n throw new Error(\n 'selector must be a single tag selector',\n );\n }\n}\n\nexport function assertAttrSelector(value: string) {\n if (!isAttrArg(value)) {\n throw new Error(\n 'attribute selector value must not include \"[\" or \"]\"',\n );\n }\n}\n\nexport function assertRawValue(value: string) {\n if (!isRawValue(value)) {\n throw new Error(\n 'value must not contain \"{\" or \"}\"',\n );\n }\n}\n\nexport function assertMediaQuery(value: string) {\n if (!isRawValue(value)) {\n throw new Error(\n 'media query must not contain \"{\" or \"}\"',\n );\n }\n}\n\nexport function assertSupportsQuery(value: string) {\n if (!isRawValue(value)) {\n throw new Error(\n 'supports query must not contain \"{\" or \"}\"',\n );\n }\n}\n\nexport function assertContainerQuery(value: string) {\n if (!isRawValue(value)) {\n throw new Error(\n 'container query must not contain \"{\" or \"}\"',\n );\n }\n}\n"],"mappings":"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"}
|