@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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '../../config';
|
|
2
|
+
export { type ClassNameProps, type ClassNameResult } from '../../runtime/core';
|
|
3
|
+
export type { CombinedStyle } from '../../runtime/core';
|
|
4
|
+
export { getClassName } from '../../runtime/rsc/getClassName';
|
|
5
|
+
export { bindScope, type CombinedStyleFor, combineScope, combineStyle, getToken } from '../../runtime/style';
|
|
6
|
+
export type { StyleProp, StyleTheme, StyleTokenInput } from '../../runtime/types';
|
|
7
|
+
export * from '../../style';
|
|
8
|
+
export { type } from '../../utils/type';
|
|
9
|
+
|
|
10
|
+
export { createElement } from '../../jsx/rsc/jsx_runtime';
|
|
11
|
+
export * from '../../jsx/types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './config';
|
|
2
|
+
|
|
3
|
+
export { type ClassNameProps, type ClassNameResult, getClassName } from '../../runtime/extract';
|
|
4
|
+
export {
|
|
5
|
+
bindScope,
|
|
6
|
+
type CombinedStyle,
|
|
7
|
+
type CombinedStyleFor,
|
|
8
|
+
combineScope,
|
|
9
|
+
combineStyle,
|
|
10
|
+
getToken,
|
|
11
|
+
} from '../../runtime/extract';
|
|
12
|
+
export type { StyleProp, StyleTheme, StyleTokenInput } from '../../runtime/types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from '../../builder/extract';
|
|
2
|
+
export { type ClassNameProps, type ClassNameResult, getClassName } from '../../runtime/extract';
|
|
3
|
+
export {
|
|
4
|
+
bindScope,
|
|
5
|
+
type CombinedStyle,
|
|
6
|
+
type CombinedStyleFor,
|
|
7
|
+
combineScope,
|
|
8
|
+
combineStyle,
|
|
9
|
+
getToken,
|
|
10
|
+
} from '../../runtime/extract';
|
|
11
|
+
export type { StyleProp, StyleTheme, StyleTokenInput } from '../../runtime/types';
|
|
12
|
+
export * from '../../style';
|
|
13
|
+
export { type } from '../../utils/type';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { setBuildDevConfig } from '../../config/config/dev';
|
|
2
|
+
import { RUNTIME_CONFIG } from '../../config/config/runtime';
|
|
3
|
+
import { SIDECAR_URL_GLOBAL_SYMBOL } from '../../config/utils';
|
|
4
|
+
import { set } from '../../utils/object';
|
|
5
|
+
|
|
6
|
+
declare const FLUENTIC_STYLE_SIDECAR_SERVER_URL: string;
|
|
7
|
+
declare const FLUENTIC_STYLE_DEV_CONFIG: string;
|
|
8
|
+
|
|
9
|
+
set(
|
|
10
|
+
globalThis,
|
|
11
|
+
Symbol.for(SIDECAR_URL_GLOBAL_SYMBOL),
|
|
12
|
+
FLUENTIC_STYLE_SIDECAR_SERVER_URL || '',
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
setBuildDevConfig(
|
|
16
|
+
JSON.parse(FLUENTIC_STYLE_DEV_CONFIG),
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
RUNTIME_CONFIG.isPlugin = true;
|
package/index.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './config';
|
|
2
|
+
export * from './style';
|
|
3
|
+
export { type } from './utils/type';
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
type ClassNameProps,
|
|
7
|
+
type ClassNameResult,
|
|
8
|
+
type CombinedStyle,
|
|
9
|
+
getClassName,
|
|
10
|
+
getToken,
|
|
11
|
+
transformElement,
|
|
12
|
+
} from './runtime/core';
|
|
13
|
+
export {
|
|
14
|
+
//
|
|
15
|
+
bindScope,
|
|
16
|
+
type CombinedStyleFor,
|
|
17
|
+
combineScope,
|
|
18
|
+
combineStyle,
|
|
19
|
+
} from './runtime/style';
|
|
20
|
+
export type {
|
|
21
|
+
//
|
|
22
|
+
StyleProp,
|
|
23
|
+
StyleTheme,
|
|
24
|
+
StyleTokenInput,
|
|
25
|
+
} from './runtime/types';
|
|
26
|
+
|
|
27
|
+
export type {
|
|
28
|
+
//
|
|
29
|
+
CSS,
|
|
30
|
+
CSSProperties,
|
|
31
|
+
CSSPropertyName,
|
|
32
|
+
CSSValueExclude,
|
|
33
|
+
} from './atomic/utils/types';
|
|
34
|
+
|
|
35
|
+
export { createElement } from './jsx/runtime/jsx_runtime';
|
|
36
|
+
export * from './jsx/types';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-dev-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/extract/jsx';
|
|
4
|
+
import { createJsxDEV, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-dev-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsxDEV = createJsxDEV(react.jsxDEV, transformElement);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/extract/jsx';
|
|
4
|
+
import { createJsx, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsx = createJsx(react.jsx, transformElement);
|
|
12
|
+
export const jsxs = createJsx(react.jsxs, transformElement);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-dev-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/rsc/jsx';
|
|
4
|
+
import { createJsxDEV, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-dev-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsxDEV = createJsxDEV(react.jsxDEV, transformElement);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/rsc/jsx';
|
|
4
|
+
import { createJsx, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsx = createJsx(react.jsx, transformElement);
|
|
12
|
+
export const jsxs = createJsx(react.jsxs, transformElement);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-dev-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/core/jsx';
|
|
4
|
+
import { createJsxDEV, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-dev-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsxDEV = createJsxDEV(react.jsxDEV, transformElement);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
import { transformElement } from '../../runtime/core/jsx';
|
|
4
|
+
import { createJsx, wrapCreateElement, wrapFragment } from '../utils';
|
|
5
|
+
|
|
6
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
export const createElement = wrapCreateElement(reactCreateElement, transformElement);
|
|
9
|
+
|
|
10
|
+
export const Fragment = wrapFragment(react.Fragment);
|
|
11
|
+
export const jsx = createJsx(react.jsx, transformElement);
|
|
12
|
+
export const jsxs = createJsx(react.jsxs, transformElement);
|
package/jsx/types.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeStyleAttributes } from '../runtime/types';
|
|
2
|
+
|
|
3
|
+
export interface RuntimeAttributes extends RuntimeStyleAttributes {}
|
|
4
|
+
|
|
5
|
+
declare module 'react' {
|
|
6
|
+
interface HTMLAttributes<T> extends RuntimeAttributes {}
|
|
7
|
+
interface SVGAttributes<T> extends RuntimeAttributes {}
|
|
8
|
+
}
|
package/jsx/utils.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { createElement, ElementType, Fragment } from 'react';
|
|
2
|
+
import type { jsxDEV } from 'react/jsx-dev-runtime';
|
|
3
|
+
import type { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
export type FnJsxDEV = typeof jsxDEV;
|
|
6
|
+
export type FnJsx = typeof jsx;
|
|
7
|
+
export type FnJsxs = typeof jsxs;
|
|
8
|
+
export type FnCreateElement = typeof createElement;
|
|
9
|
+
|
|
10
|
+
export type TransformElementArgs = {
|
|
11
|
+
type: ElementType;
|
|
12
|
+
props: unknown;
|
|
13
|
+
source?: unknown;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type TransformElement = {
|
|
17
|
+
(args: TransformElementArgs): TransformElementArgs;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export function wrapCreateElement(
|
|
21
|
+
createElement: FnCreateElement,
|
|
22
|
+
transformElement: TransformElement,
|
|
23
|
+
): FnCreateElement {
|
|
24
|
+
const fn = (type: ElementType, props: unknown, ...children: []) => {
|
|
25
|
+
const result = transformElement({ type, props });
|
|
26
|
+
|
|
27
|
+
return createElement(result.type, result.props, ...children);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return fn as FnCreateElement;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function wrapFragment(
|
|
34
|
+
fragment: typeof Fragment,
|
|
35
|
+
) {
|
|
36
|
+
return fragment;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function createJsxDEV(
|
|
40
|
+
fn: FnJsxDEV,
|
|
41
|
+
transformElement: TransformElement,
|
|
42
|
+
): FnJsxDEV {
|
|
43
|
+
return (type, props, key, isStatic, source, self) => {
|
|
44
|
+
const result = transformElement({ type, props, source });
|
|
45
|
+
|
|
46
|
+
return fn(result.type, result.props, key, isStatic, source, self);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function createJsx(
|
|
51
|
+
fn: FnJsx,
|
|
52
|
+
transformElement: TransformElement,
|
|
53
|
+
): FnJsx {
|
|
54
|
+
return (type, props, key) => {
|
|
55
|
+
const result = transformElement({ type, props });
|
|
56
|
+
|
|
57
|
+
return fn(result.type, result.props, key);
|
|
58
|
+
};
|
|
59
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentic/style",
|
|
3
|
+
"version": "0.1.0-beta.0",
|
|
4
|
+
"description": "Type-safe styles that scale with your components.",
|
|
5
|
+
"homepage": "https://fluenticstack.com/style",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/fluentic-dev/style.git",
|
|
9
|
+
"directory": "packages/style"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/fluentic-dev/style/issues"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Fluentic",
|
|
16
|
+
"email": "omnidev@fluenticstack.com",
|
|
17
|
+
"url": "https://fluenticstack.com"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"react",
|
|
23
|
+
"css-in-js",
|
|
24
|
+
"atomic-css",
|
|
25
|
+
"design-system",
|
|
26
|
+
"component-library",
|
|
27
|
+
"styling",
|
|
28
|
+
"vite",
|
|
29
|
+
"nextjs",
|
|
30
|
+
"compiler"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./index.ts",
|
|
38
|
+
"react-server": "./dist/server.js",
|
|
39
|
+
"import": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./plugin/vite": {
|
|
42
|
+
"types": "./plugin/bundler/vite/index.ts",
|
|
43
|
+
"import": "./dist/plugin/vite/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./plugin/webpack": {
|
|
46
|
+
"types": "./plugin/bundler/webpack/index.ts",
|
|
47
|
+
"import": "./dist/plugin/webpack/index.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./plugin/webpack/loader": {
|
|
50
|
+
"types": "./plugin/bundler/webpack/loader.ts",
|
|
51
|
+
"import": "./dist/plugin/webpack/loader.mjs",
|
|
52
|
+
"default": "./dist/plugin/webpack/loader.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./plugin/rspack": {
|
|
55
|
+
"types": "./plugin/bundler/rspack/index.ts",
|
|
56
|
+
"import": "./dist/plugin/rspack/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./plugin/farm": {
|
|
59
|
+
"types": "./plugin/bundler/farm/index.ts",
|
|
60
|
+
"import": "./dist/plugin/farm/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"./plugin/parcel": {
|
|
63
|
+
"types": "./plugin/bundler/parcel/index.ts",
|
|
64
|
+
"import": "./dist/plugin/parcel/index.mjs",
|
|
65
|
+
"require": "./dist/plugin/parcel/index.cjs"
|
|
66
|
+
},
|
|
67
|
+
"./plugin/parcel/config": {
|
|
68
|
+
"default": "./plugin/bundler/parcel/config.json"
|
|
69
|
+
},
|
|
70
|
+
"./plugin/parcel/transformer": {
|
|
71
|
+
"types": "./plugin/bundler/parcel/transformer.ts",
|
|
72
|
+
"import": "./dist/plugin/parcel/transformer.mjs",
|
|
73
|
+
"require": "./dist/plugin/parcel/transformer.cjs",
|
|
74
|
+
"default": "./dist/plugin/parcel/transformer.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./plugin/parcel/resolver": {
|
|
77
|
+
"types": "./plugin/bundler/parcel/resolver.ts",
|
|
78
|
+
"import": "./dist/plugin/parcel/resolver.mjs",
|
|
79
|
+
"require": "./dist/plugin/parcel/resolver.cjs",
|
|
80
|
+
"default": "./dist/plugin/parcel/resolver.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./plugin/parcel/runtime": {
|
|
83
|
+
"types": "./plugin/bundler/parcel/runtime.ts",
|
|
84
|
+
"import": "./dist/plugin/parcel/runtime.mjs",
|
|
85
|
+
"require": "./dist/plugin/parcel/runtime.cjs",
|
|
86
|
+
"default": "./dist/plugin/parcel/runtime.mjs"
|
|
87
|
+
},
|
|
88
|
+
"./plugin/parcel/optimizer": {
|
|
89
|
+
"types": "./plugin/bundler/parcel/optimizer.ts",
|
|
90
|
+
"import": "./dist/plugin/parcel/optimizer.mjs",
|
|
91
|
+
"require": "./dist/plugin/parcel/optimizer.cjs",
|
|
92
|
+
"default": "./dist/plugin/parcel/optimizer.mjs"
|
|
93
|
+
},
|
|
94
|
+
"./plugin/nextjs": {
|
|
95
|
+
"types": "./plugin/nextjs/index.ts",
|
|
96
|
+
"import": "./dist/plugin/nextjs/index.mjs",
|
|
97
|
+
"default": "./dist/plugin/nextjs/index.mjs"
|
|
98
|
+
},
|
|
99
|
+
"./plugin/nextjs/loader": {
|
|
100
|
+
"types": "./plugin/nextjs/loader.ts",
|
|
101
|
+
"import": "./dist/plugin/nextjs/loader.mjs",
|
|
102
|
+
"default": "./dist/plugin/nextjs/loader.mjs"
|
|
103
|
+
},
|
|
104
|
+
"./plugin/jsx/jsx-runtime": {
|
|
105
|
+
"types": "./entry/prod/jsx_runtime.ts",
|
|
106
|
+
"react-server": "./dist/entry/rsc-prod/jsx-runtime.js",
|
|
107
|
+
"import": "./dist/entry/prod/jsx-runtime.js",
|
|
108
|
+
"default": "./dist/entry/prod/jsx-runtime.js"
|
|
109
|
+
},
|
|
110
|
+
"./plugin/jsx/jsx-dev-runtime": {
|
|
111
|
+
"types": "./entry/dev/jsx_dev_runtime.ts",
|
|
112
|
+
"react-server": "./dist/entry/rsc-dev/jsx-dev-runtime.js",
|
|
113
|
+
"import": "./dist/entry/dev/jsx-dev-runtime.js",
|
|
114
|
+
"default": "./dist/entry/dev/jsx-dev-runtime.js"
|
|
115
|
+
},
|
|
116
|
+
"./config": {
|
|
117
|
+
"types": "./config/index.ts",
|
|
118
|
+
"import": "./dist/config/index.js"
|
|
119
|
+
},
|
|
120
|
+
"./compiler": {
|
|
121
|
+
"types": "./compiler/index.ts",
|
|
122
|
+
"import": "./dist/compiler/index.mjs"
|
|
123
|
+
},
|
|
124
|
+
"./selector": {
|
|
125
|
+
"types": "./selector/index.ts",
|
|
126
|
+
"import": "./dist/selector/index.js"
|
|
127
|
+
},
|
|
128
|
+
"./dev": {
|
|
129
|
+
"types": "./dev/index.ts",
|
|
130
|
+
"import": "./dist/dev.js"
|
|
131
|
+
},
|
|
132
|
+
"./dev/rsc": {
|
|
133
|
+
"types": "./runtime/rsc/index.ts",
|
|
134
|
+
"import": "./dist/dev/rsc.js"
|
|
135
|
+
},
|
|
136
|
+
"./css": {
|
|
137
|
+
"types": "./css/index.ts",
|
|
138
|
+
"import": "./dist/css.js"
|
|
139
|
+
},
|
|
140
|
+
"./utils": {
|
|
141
|
+
"types": "./style/utils/index.ts",
|
|
142
|
+
"import": "./dist/utils.js"
|
|
143
|
+
},
|
|
144
|
+
"./builder/extract": {
|
|
145
|
+
"types": "./builder/extract/index.ts",
|
|
146
|
+
"import": "./dist/entry/prod/extract.js"
|
|
147
|
+
},
|
|
148
|
+
"./server/extracted": {
|
|
149
|
+
"types": "./entry/rsc_prod/server.ts",
|
|
150
|
+
"import": "./dist/entry/rsc-prod.js"
|
|
151
|
+
},
|
|
152
|
+
"./jsx-runtime/server/extracted": {
|
|
153
|
+
"types": "./entry/rsc_prod/jsx_runtime.ts",
|
|
154
|
+
"import": "./dist/entry/rsc-prod/jsx-runtime.js"
|
|
155
|
+
},
|
|
156
|
+
"./jsx/jsx-runtime": {
|
|
157
|
+
"types": "./jsx/runtime/jsx_runtime.ts",
|
|
158
|
+
"react-server": null,
|
|
159
|
+
"import": "./dist/jsx/jsx-runtime.js"
|
|
160
|
+
},
|
|
161
|
+
"./jsx/jsx-dev-runtime": {
|
|
162
|
+
"types": "./jsx/runtime/jsx_dev_runtime.ts",
|
|
163
|
+
"react-server": null,
|
|
164
|
+
"import": "./dist/jsx/jsx-dev-runtime.js"
|
|
165
|
+
},
|
|
166
|
+
"./entry/dev": {
|
|
167
|
+
"types": "./entry/dev/index.ts",
|
|
168
|
+
"import": "./dist/entry/dev.js"
|
|
169
|
+
},
|
|
170
|
+
"./entry/prod": {
|
|
171
|
+
"types": "./entry/prod/index.ts",
|
|
172
|
+
"import": "./dist/entry/prod.js"
|
|
173
|
+
},
|
|
174
|
+
"./entry/rsc-dev": {
|
|
175
|
+
"types": "./entry/rsc_dev/index.ts",
|
|
176
|
+
"import": "./dist/entry/rsc-dev.js"
|
|
177
|
+
},
|
|
178
|
+
"./entry/rsc-dev/dev": {
|
|
179
|
+
"types": "./runtime/rsc/index.ts",
|
|
180
|
+
"import": "./dist/entry/rsc-dev/dev.js"
|
|
181
|
+
},
|
|
182
|
+
"./entry/rsc-prod": {
|
|
183
|
+
"types": "./entry/rsc_prod/index.ts",
|
|
184
|
+
"import": "./dist/entry/rsc-prod.js"
|
|
185
|
+
},
|
|
186
|
+
"./entry/rsc-prod/runtime": {
|
|
187
|
+
"types": "./entry/rsc_prod/runtime.ts",
|
|
188
|
+
"import": "./dist/entry/rsc-prod/runtime.js"
|
|
189
|
+
},
|
|
190
|
+
"./entry/dev/css": {
|
|
191
|
+
"types": "./entry/dev/css.ts",
|
|
192
|
+
"import": "./dist/entry/dev/css.js"
|
|
193
|
+
},
|
|
194
|
+
"./entry/prod/css": {
|
|
195
|
+
"types": "./entry/prod/css.ts",
|
|
196
|
+
"import": "./dist/entry/prod/css.js"
|
|
197
|
+
},
|
|
198
|
+
"./entry/rsc-dev/css": {
|
|
199
|
+
"types": "./entry/rsc_dev/css.ts",
|
|
200
|
+
"import": "./dist/entry/rsc-dev/css.js"
|
|
201
|
+
},
|
|
202
|
+
"./entry/rsc-prod/css": {
|
|
203
|
+
"types": "./entry/rsc_prod/css.ts",
|
|
204
|
+
"import": "./dist/entry/rsc-prod/css.js"
|
|
205
|
+
},
|
|
206
|
+
"./entry/prod/runtime": {
|
|
207
|
+
"types": "./entry/prod/runtime.ts",
|
|
208
|
+
"import": "./dist/entry/prod/runtime.js"
|
|
209
|
+
},
|
|
210
|
+
"./entry/prod/extract": {
|
|
211
|
+
"types": "./entry/prod/extract.ts",
|
|
212
|
+
"import": "./dist/entry/prod/extract.js"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"files": [
|
|
216
|
+
"README.md",
|
|
217
|
+
"CHANGELOG.md",
|
|
218
|
+
"dist",
|
|
219
|
+
"atomic",
|
|
220
|
+
"builder",
|
|
221
|
+
"config",
|
|
222
|
+
"compiler",
|
|
223
|
+
"dev",
|
|
224
|
+
"jsx",
|
|
225
|
+
"plugin",
|
|
226
|
+
"entry",
|
|
227
|
+
"runtime",
|
|
228
|
+
"selector",
|
|
229
|
+
"sheet",
|
|
230
|
+
"atRule",
|
|
231
|
+
"css",
|
|
232
|
+
"style",
|
|
233
|
+
"utils",
|
|
234
|
+
"index.ts"
|
|
235
|
+
],
|
|
236
|
+
"scripts": {
|
|
237
|
+
"build": "tsdown",
|
|
238
|
+
"dev": "tsdown --watch",
|
|
239
|
+
"prepack": "node ../../scripts/sync-package-readme.mjs copy",
|
|
240
|
+
"postpack": "node ../../scripts/sync-package-readme.mjs clean",
|
|
241
|
+
"report:bundle": "node ./scripts/report-bundle.mjs",
|
|
242
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
243
|
+
"test": "tsx ./tests/run-tests.ts"
|
|
244
|
+
},
|
|
245
|
+
"dependencies": {
|
|
246
|
+
"@jridgewell/trace-mapping": "0.3.31",
|
|
247
|
+
"@parcel/config-default": "^2.16.1",
|
|
248
|
+
"css-what": "8.0.0",
|
|
249
|
+
"csstype": "3.2.3",
|
|
250
|
+
"lightningcss": "^1.32.0",
|
|
251
|
+
"oxc-resolver": "11.20.0",
|
|
252
|
+
"picomatch": "4.0.4"
|
|
253
|
+
},
|
|
254
|
+
"devDependencies": {
|
|
255
|
+
"@types/babel__core": "7.20.5",
|
|
256
|
+
"@types/picomatch": "4.0.3",
|
|
257
|
+
"@types/react": "19.2.14",
|
|
258
|
+
"react": "19.2.0",
|
|
259
|
+
"tsdown": "0.22.1",
|
|
260
|
+
"tsx": "4.20.6",
|
|
261
|
+
"typescript": "5.8.3",
|
|
262
|
+
"vite": "8.0.16",
|
|
263
|
+
"webpack": "5.107.2"
|
|
264
|
+
},
|
|
265
|
+
"peerDependencies": {
|
|
266
|
+
"@babel/core": ">=7",
|
|
267
|
+
"@farmfe/core": ">=1",
|
|
268
|
+
"@parcel/plugin": ">=2",
|
|
269
|
+
"@rspack/core": ">=1",
|
|
270
|
+
"next": ">=15",
|
|
271
|
+
"react": ">=16.14",
|
|
272
|
+
"vite": ">=5",
|
|
273
|
+
"webpack": ">=5"
|
|
274
|
+
},
|
|
275
|
+
"peerDependenciesMeta": {
|
|
276
|
+
"@babel/core": {
|
|
277
|
+
"optional": true
|
|
278
|
+
},
|
|
279
|
+
"@farmfe/core": {
|
|
280
|
+
"optional": true
|
|
281
|
+
},
|
|
282
|
+
"@parcel/plugin": {
|
|
283
|
+
"optional": true
|
|
284
|
+
},
|
|
285
|
+
"@rspack/core": {
|
|
286
|
+
"optional": true
|
|
287
|
+
},
|
|
288
|
+
"next": {
|
|
289
|
+
"optional": true
|
|
290
|
+
},
|
|
291
|
+
"vite": {
|
|
292
|
+
"optional": true
|
|
293
|
+
},
|
|
294
|
+
"webpack": {
|
|
295
|
+
"optional": true
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './plugin';
|