@fluentic/style 0.1.0-beta.11 → 0.1.0-beta.13
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 +16 -0
- package/atomic/layer/layer.ts +7 -3
- package/builder/data/data.ts +1 -1
- package/builder/selector_override_core.ts +7 -1
- package/compiler/compiler/compiler.ts +8 -4
- package/compiler/extract/extract.ts +14 -9
- package/compiler/extract/types.ts +2 -1
- package/compiler/transform/extract/chain/chain.ts +7 -4
- package/compiler/transform/extract/chain/extract_chain.ts +14 -0
- package/compiler/transform/extract/utils/replacement.ts +6 -1
- package/compiler/utils/file_resolver.ts +2 -1
- package/config/config/css.ts +19 -0
- package/css/sheet.ts +3 -2
- package/dist/{combine-Bww7VnSr.js → combine-yuoQ_qpx.js} +2 -2
- package/dist/{combine-Bww7VnSr.js.map → combine-yuoQ_qpx.js.map} +1 -1
- package/dist/compiler/index.mjs +1 -1
- package/dist/{compiler-C3CEGGtI.mjs → compiler-BEHxZYjz.mjs} +35 -16
- package/dist/compiler-BEHxZYjz.mjs.map +1 -0
- package/dist/config/index.js +2 -2
- package/dist/{config-CDjbHwb-.js → config-B5nEd-TV.js} +2 -2
- package/dist/{config-CDjbHwb-.js.map → config-B5nEd-TV.js.map} +1 -1
- package/dist/{config-C5VWvTav.js → config-BWGBkVrM.js} +4 -4
- package/dist/{config-C5VWvTav.js.map → config-BWGBkVrM.js.map} +1 -1
- package/dist/{config-BKP5LOkt.js → config-Bqe8Y-4_.js} +2 -2
- package/dist/{config-BKP5LOkt.js.map → config-Bqe8Y-4_.js.map} +1 -1
- package/dist/{config-DNEnHEf3.js → config-DggQEE-4.js} +3 -3
- package/dist/{config-DNEnHEf3.js.map → config-DggQEE-4.js.map} +1 -1
- package/dist/{createTransformElement-D8fXZ3wA.js → createTransformElement-B2jSnugo.js} +2 -2
- package/dist/{createTransformElement-D8fXZ3wA.js.map → createTransformElement-B2jSnugo.js.map} +1 -1
- package/dist/{css-CFxNrYt3.js → css-BQRIvzwZ.js} +41 -20
- package/dist/css-BQRIvzwZ.js.map +1 -0
- package/dist/{css-BDn0epJ8.js → css-CGMAis1n.js} +7 -7
- package/dist/css-CGMAis1n.js.map +1 -0
- package/dist/{css-DWBWsyxZ.js → css-D7eTqvMH.js} +9 -2
- package/dist/{css-DWBWsyxZ.js.map → css-D7eTqvMH.js.map} +1 -1
- package/dist/{css-DEYgrj76.js → css-p_5ZNny_.js} +12 -12
- package/dist/css-p_5ZNny_.js.map +1 -0
- package/dist/css.js +1 -1
- package/dist/{css_extra-nTq_Gw0E.js → css_extra-DuVzUIYx.js} +2 -2
- package/dist/{css_extra-nTq_Gw0E.js.map → css_extra-DuVzUIYx.js.map} +1 -1
- package/dist/{data-CDrS1Bq4.js → data-QXDBLlWs.js} +7 -7
- package/dist/{data-CDrS1Bq4.js.map → data-QXDBLlWs.js.map} +1 -1
- package/dist/{debug-YuhEIQVO.js → debug-0iaVEC7z.js} +3 -3
- package/dist/{debug-YuhEIQVO.js.map → debug-0iaVEC7z.js.map} +1 -1
- package/dist/{debug-BkVbf0Cz.js → debug-CkgcZDaX.js} +2 -2
- package/dist/{debug-BkVbf0Cz.js.map → debug-CkgcZDaX.js.map} +1 -1
- package/dist/dev/rsc.js +7 -7
- package/dist/dev/rsc.js.map +1 -1
- package/dist/{dev-0imWmSVb.js → dev-DocaGP3_.js} +7 -7
- package/dist/{dev-0imWmSVb.js.map → dev-DocaGP3_.js.map} +1 -1
- package/dist/dev.js +1 -1
- package/dist/dialect/extracted/index.js +1 -1
- package/dist/dialect/index.js +1 -1
- package/dist/{elementMarker-kvpMjB49.js → elementMarker-DZjd1NuA.js} +35 -21
- package/dist/elementMarker-DZjd1NuA.js.map +1 -0
- package/dist/entry/dev/adapter/preact.js +1 -1
- package/dist/entry/dev/adapter/react.js +1 -1
- package/dist/entry/dev/adapter/solid.js +1 -1
- package/dist/entry/dev/css.js +2 -2
- package/dist/entry/dev/jsx-dev-runtime.js +2 -2
- package/dist/entry/dev/jsx-runtime.js +2 -2
- package/dist/entry/dev.js +11 -11
- package/dist/entry/prod/css.js +2 -2
- package/dist/entry/prod.js +2 -2
- package/dist/entry/rsc-dev/adapter/preact.js +1 -1
- package/dist/entry/rsc-dev/adapter/react.js +1 -1
- package/dist/entry/rsc-dev/adapter/solid.js +1 -1
- package/dist/entry/rsc-dev/css.js +2 -2
- package/dist/entry/rsc-dev/dev.js +6 -6
- package/dist/entry/rsc-dev/dev.js.map +1 -1
- package/dist/entry/rsc-dev/jsx-dev-runtime.js +2 -2
- package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
- package/dist/entry/rsc-dev.js +5 -5
- package/dist/entry/rsc-prod/css.js +2 -2
- package/dist/entry/rsc-prod.js +2 -2
- package/dist/{env-Cz8frh6e.js → env-DJyXPJ9q.js} +40 -19
- package/dist/env-DJyXPJ9q.js.map +1 -0
- package/dist/getClassName-9CsXbNls.js.map +1 -1
- package/dist/{getClassName-DGm-VNDo.js → getClassName-BB_L7U_v.js} +5 -5
- package/dist/{getClassName-DGm-VNDo.js.map → getClassName-BB_L7U_v.js.map} +1 -1
- package/dist/{getClassName-Dtc4yyYI.js → getClassName-BIqt1S41.js} +4 -4
- package/dist/{getClassName-Dtc4yyYI.js.map → getClassName-BIqt1S41.js.map} +1 -1
- package/dist/{global-CAc9OjKx.js → global-CBQGormL.js} +2 -2
- package/dist/{global-CAc9OjKx.js.map → global-CBQGormL.js.map} +1 -1
- package/dist/index.js +9 -9
- package/dist/jsx/jsx-dev-runtime.js +1 -1
- package/dist/jsx/jsx-dev-runtime.server.js +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.server.js +1 -1
- package/dist/{jsx-CVxpkS04.js → jsx-BCufpzdb.js} +4 -4
- package/dist/{jsx-CVxpkS04.js.map → jsx-BCufpzdb.js.map} +1 -1
- package/dist/{jsx_runtime-6Qa1lmz2.js → jsx_runtime-Bu_A8mr4.js} +2 -2
- package/dist/{jsx_runtime-6Qa1lmz2.js.map → jsx_runtime-Bu_A8mr4.js.map} +1 -1
- package/dist/{loader-_-VjzlrX.mjs → loader-vMHuD1zT.mjs} +3 -3
- package/dist/loader-vMHuD1zT.mjs.map +1 -0
- package/dist/{misc-B76PUnWe.mjs → misc-9EGKYkZo.mjs} +2 -2
- package/dist/{misc-B76PUnWe.mjs.map → misc-9EGKYkZo.mjs.map} +1 -1
- package/dist/{namedTokens-5AayGokX.js → namedTokens-DnpyC5XT.js} +3 -3
- package/dist/{namedTokens-5AayGokX.js.map → namedTokens-DnpyC5XT.js.map} +1 -1
- package/dist/plugin/farm/index.mjs +3 -3
- package/dist/plugin/nextjs/index.mjs +4 -4
- package/dist/plugin/nextjs/index.mjs.map +1 -1
- package/dist/plugin/nextjs/loader.mjs +4 -4
- package/dist/plugin/parcel/index.cjs +1 -1
- package/dist/plugin/parcel/index.mjs +2 -2
- package/dist/plugin/parcel/optimizer.cjs +1 -1
- package/dist/plugin/parcel/optimizer.mjs +2 -2
- package/dist/plugin/parcel/resolver.cjs +1 -1
- package/dist/plugin/parcel/resolver.mjs +2 -2
- package/dist/plugin/parcel/runtime.cjs +1 -1
- package/dist/plugin/parcel/runtime.mjs +1 -1
- package/dist/plugin/parcel/transformer.cjs +1 -1
- package/dist/plugin/parcel/transformer.mjs +2 -2
- package/dist/plugin/rspack/index.mjs +2 -2
- package/dist/plugin/vite/index.mjs +3 -3
- package/dist/plugin/webpack/index.mjs +2 -2
- package/dist/plugin/webpack/loader.mjs +2 -2
- package/dist/presets/tailwind/index.js +3 -3
- package/dist/{registry-w8ET5R7v.mjs → registry-DVB7n6V-.mjs} +2 -2
- package/dist/{registry-w8ET5R7v.mjs.map → registry-DVB7n6V-.mjs.map} +1 -1
- package/dist/{resolveClassNameRuntime-CJjlUP93.js → resolveClassNameRuntime-DvH6j_4N.js} +2 -2
- package/dist/{resolveClassNameRuntime-CJjlUP93.js.map → resolveClassNameRuntime-DvH6j_4N.js.map} +1 -1
- package/dist/{rules-DaMaMHgb.js → rules-znG9bsKI.js} +8 -8
- package/dist/{rules-DaMaMHgb.js.map → rules-znG9bsKI.js.map} +1 -1
- package/dist/server.js +13 -13
- package/dist/{shared-PK52rW6T.cjs → shared-DaEDCb8I.cjs} +35 -16
- package/dist/shared-DaEDCb8I.cjs.map +1 -0
- package/dist/{shared-C_cYxNzz.mjs → shared-O-5Fcsxa.mjs} +4 -4
- package/dist/{shared-C_cYxNzz.mjs.map → shared-O-5Fcsxa.mjs.map} +1 -1
- package/dist/sheet-SlZRjOmw.js +7 -0
- package/dist/{sheet-CxkO1Hwt.js.map → sheet-SlZRjOmw.js.map} +1 -1
- package/dist/{sidecar-BhvmXYsD.mjs → sidecar-DiYLwXbk.mjs} +3 -3
- package/dist/{sidecar-BhvmXYsD.mjs.map → sidecar-DiYLwXbk.mjs.map} +1 -1
- package/dist/{style-CAhAnRni.js → style-CtXEZqgx.js} +10 -10
- package/dist/{style-CAhAnRni.js.map → style-CtXEZqgx.js.map} +1 -1
- package/dist/{styleStore-BzLZwpwy.js → styleStore-BImBZdt6.js} +6 -4
- package/dist/styleStore-BImBZdt6.js.map +1 -0
- package/dist/{styleStore-DaIJ4OPV.js → styleStore-CBan0gHQ.js} +9 -7
- package/dist/styleStore-CBan0gHQ.js.map +1 -0
- package/dist/{token-D33mKTka.js → token-DyLO6Hnf.js} +2 -2
- package/dist/{token-D33mKTka.js.map → token-DyLO6Hnf.js.map} +1 -1
- package/dist/{trace-c2WmBbmX.js → trace-Bsh-Kkg_.js} +2 -2
- package/dist/{trace-c2WmBbmX.js.map → trace-Bsh-Kkg_.js.map} +1 -1
- package/dist/{trace-B3dpTRJp.js → trace-C1_6fM21.js} +3 -3
- package/dist/{trace-B3dpTRJp.js.map → trace-C1_6fM21.js.map} +1 -1
- package/dist/{transform-DSpimwwC.js → transform-8TIMiF5A.js} +2 -2
- package/dist/{transform-DSpimwwC.js.map → transform-8TIMiF5A.js.map} +1 -1
- package/dist/types/adapter/preact.d.ts +1 -0
- package/dist/types/adapter/react.d.ts +1 -0
- package/dist/types/adapter/solid.d.ts +1 -0
- package/dist/types/atomic/atRule/counterStyle.d.ts +10 -0
- package/dist/types/atomic/atRule/fontFace.d.ts +10 -0
- package/dist/types/atomic/atRule/fontPaletteValues.d.ts +10 -0
- package/dist/types/atomic/atRule/fontSrc.d.ts +1 -0
- package/dist/types/atomic/atRule/keyframes.d.ts +13 -0
- package/dist/types/atomic/atRule/positionTry.d.ts +13 -0
- package/dist/types/atomic/atRule/property.d.ts +13 -0
- package/dist/types/atomic/atRule/utils.d.ts +5 -0
- package/dist/types/atomic/className.d.ts +11 -0
- package/dist/types/atomic/debug/className/className.d.ts +9 -0
- package/dist/types/atomic/debug/className/index.d.ts +1 -0
- package/dist/types/atomic/debug/property/data.d.ts +3 -0
- package/dist/types/atomic/debug/property/index.d.ts +1 -0
- package/dist/types/atomic/debug/property/property.d.ts +5 -0
- package/dist/types/atomic/debug/selector.d.ts +2 -0
- package/dist/types/atomic/debug/value.d.ts +5 -0
- package/dist/types/atomic/element.d.ts +5 -0
- package/dist/types/atomic/layer/index.d.ts +3 -0
- package/dist/types/atomic/layer/layer.d.ts +12 -0
- package/dist/types/atomic/layer/types.d.ts +30 -0
- package/dist/types/atomic/layer/utils.d.ts +4 -0
- package/dist/types/atomic/property/index.d.ts +2 -0
- package/dist/types/atomic/property/presets.d.ts +4 -0
- package/dist/types/atomic/property/property.d.ts +3 -0
- package/dist/types/atomic/property/type_maps.d.ts +31 -0
- package/dist/types/atomic/property/types.d.ts +4 -0
- package/dist/types/atomic/rule.d.ts +5 -0
- package/dist/types/atomic/scope.d.ts +3 -0
- package/dist/types/atomic/theme.d.ts +7 -0
- package/dist/types/atomic/token.d.ts +7 -0
- package/dist/types/atomic/utils/cssIdent.d.ts +2 -0
- package/dist/types/atomic/utils/cssVar.d.ts +3 -0
- package/dist/types/atomic/utils/debug.d.ts +4 -0
- package/dist/types/atomic/utils/format.d.ts +5 -0
- package/dist/types/atomic/utils/hash.d.ts +1 -0
- package/dist/types/atomic/utils/selector.d.ts +6 -0
- package/dist/types/atomic/utils/types.d.ts +7 -0
- package/dist/types/atomic/value/index.d.ts +2 -0
- package/dist/types/atomic/value/unitless.d.ts +1 -0
- package/dist/types/atomic/value/value.d.ts +2 -0
- package/dist/types/atomic/var.d.ts +4 -0
- package/dist/types/builder/classname/class_name_builder.d.ts +4 -0
- package/dist/types/builder/classname/fns.d.ts +48 -0
- package/dist/types/builder/classname/index.d.ts +3 -0
- package/dist/types/builder/classname/types.d.ts +18 -0
- package/dist/types/builder/data/check_selector.d.ts +2 -0
- package/dist/types/builder/data/const.d.ts +26 -0
- package/dist/types/builder/data/create.d.ts +13 -0
- package/dist/types/builder/data/data.d.ts +44 -0
- package/dist/types/builder/data/debug.d.ts +38 -0
- package/dist/types/builder/data/index.d.ts +8 -0
- package/dist/types/builder/data/is.d.ts +16 -0
- package/dist/types/builder/data/merge/index.d.ts +2 -0
- package/dist/types/builder/data/merge/scope.d.ts +7 -0
- package/dist/types/builder/data/merge/style.d.ts +6 -0
- package/dist/types/builder/data/merge/utils.d.ts +5 -0
- package/dist/types/builder/data/selector.d.ts +8 -0
- package/dist/types/builder/data/state.d.ts +85 -0
- package/dist/types/builder/extract/index.d.ts +7 -0
- package/dist/types/builder/extract/scope.d.ts +14 -0
- package/dist/types/builder/extract/sheet.d.ts +10 -0
- package/dist/types/builder/extract/slot.d.ts +9 -0
- package/dist/types/builder/extract/style.d.ts +11 -0
- package/dist/types/builder/extract/theme.d.ts +2 -0
- package/dist/types/builder/extract/token.d.ts +7 -0
- package/dist/types/builder/extract/utils.d.ts +28 -0
- package/dist/types/builder/extract/withTokens.d.ts +10 -0
- package/dist/types/builder/index.d.ts +2 -0
- package/dist/types/builder/selector_override.d.ts +5 -0
- package/dist/types/builder/selector_override_core.d.ts +6 -0
- package/dist/types/builder/style_builder.d.ts +15 -0
- package/dist/types/builder/style_data.d.ts +8 -0
- package/dist/types/builder/style_fns.d.ts +14 -0
- package/dist/types/builder/token/data.d.ts +10 -0
- package/dist/types/builder/token/name.d.ts +3 -0
- package/dist/types/builder/token/symbols.d.ts +4 -0
- package/dist/types/builder/types/alias.d.ts +59 -0
- package/dist/types/builder/types/fns.d.ts +115 -0
- package/dist/types/builder/types/index.d.ts +1 -0
- package/dist/types/builder/types/types.d.ts +22 -0
- package/dist/types/builder/utils.d.ts +9 -0
- package/dist/types/compiler/compiler/cache.d.ts +24 -0
- package/dist/types/compiler/compiler/compiler.d.ts +28 -0
- package/dist/types/compiler/compiler/constants.d.ts +6 -0
- package/dist/types/compiler/compiler/index.d.ts +4 -0
- package/dist/types/compiler/compiler/types.d.ts +53 -0
- package/dist/types/compiler/cssProp.d.ts +8 -0
- package/dist/types/compiler/extract/collector.d.ts +8 -0
- package/dist/types/compiler/extract/extract.d.ts +6 -0
- package/dist/types/compiler/extract/index.d.ts +3 -0
- package/dist/types/compiler/extract/types.d.ts +23 -0
- package/dist/types/compiler/index.d.ts +3 -0
- package/dist/types/compiler/transform/cssProp/index.d.ts +1 -0
- package/dist/types/compiler/transform/cssProp/plugin.d.ts +13 -0
- package/dist/types/compiler/transform/debug/index.d.ts +2 -0
- package/dist/types/compiler/transform/debug/plugin.d.ts +34 -0
- package/dist/types/compiler/transform/debug/transform.d.ts +7 -0
- package/dist/types/compiler/transform/debug/utils/debug_data.d.ts +11 -0
- package/dist/types/compiler/transform/debug/utils/source_url.d.ts +2 -0
- package/dist/types/compiler/transform/evaluator/evaluator.d.ts +41 -0
- package/dist/types/compiler/transform/evaluator/index.d.ts +3 -0
- package/dist/types/compiler/transform/evaluator/tracer.d.ts +8 -0
- package/dist/types/compiler/transform/evaluator/types.d.ts +21 -0
- package/dist/types/compiler/transform/extract/chain/chain.d.ts +18 -0
- package/dist/types/compiler/transform/extract/chain/extract_chain.d.ts +19 -0
- package/dist/types/compiler/transform/extract/chain/index.d.ts +3 -0
- package/dist/types/compiler/transform/extract/chain/types.d.ts +32 -0
- package/dist/types/compiler/transform/extract/index.d.ts +2 -0
- package/dist/types/compiler/transform/extract/plugin.d.ts +20 -0
- package/dist/types/compiler/transform/extract/transform.d.ts +10 -0
- package/dist/types/compiler/transform/extract/utils/imports.d.ts +3 -0
- package/dist/types/compiler/transform/extract/utils/replacement.d.ts +9 -0
- package/dist/types/compiler/transform/extract/utils/slot.d.ts +4 -0
- package/dist/types/compiler/transform/extract/utils/state.d.ts +34 -0
- package/dist/types/compiler/transform/extract/utils/theme.d.ts +9 -0
- package/dist/types/compiler/transform/extract/utils/token.d.ts +1 -0
- package/dist/types/compiler/transform/index.d.ts +5 -0
- package/dist/types/compiler/transform/syntax/index.d.ts +5 -0
- package/dist/types/compiler/transform/syntax/isStaticStyleValue.d.ts +2 -0
- package/dist/types/compiler/transform/syntax/isStyleChainCall.d.ts +2 -0
- package/dist/types/compiler/transform/syntax/static_ids.d.ts +16 -0
- package/dist/types/compiler/transform/syntax/types.d.ts +4 -0
- package/dist/types/compiler/transform/syntax/utils.d.ts +5 -0
- package/dist/types/compiler/transform/utils/babel.d.ts +21 -0
- package/dist/types/compiler/transform/utils/import.d.ts +2 -0
- package/dist/types/compiler/transform/utils/path.d.ts +1 -0
- package/dist/types/compiler/transform/utils/selector.d.ts +18 -0
- package/dist/types/compiler/utils/constants.d.ts +68 -0
- package/dist/types/compiler/utils/file_resolver.d.ts +12 -0
- package/dist/types/compiler/utils/import_source.d.ts +28 -0
- package/dist/types/compiler/utils/imports.d.ts +6 -0
- package/dist/types/compiler/utils/path.d.ts +4 -0
- package/dist/types/compiler/utils/sourcemap.d.ts +36 -0
- package/dist/types/config/build.d.ts +20 -0
- package/dist/types/config/config/check.d.ts +11 -0
- package/dist/types/config/config/css.d.ts +28 -0
- package/dist/types/config/config/css_extra.d.ts +13 -0
- package/dist/types/config/config/debug.d.ts +14 -0
- package/dist/types/config/config/dev.d.ts +36 -0
- package/dist/types/config/config/runtime.d.ts +10 -0
- package/dist/types/config/configure.d.ts +12 -0
- package/dist/types/config/constants.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/types.d.ts +47 -0
- package/dist/types/config/utils.d.ts +2 -0
- package/dist/types/css/counterStyle.d.ts +4 -0
- package/dist/types/css/fontFace.d.ts +5 -0
- package/dist/types/css/fontPaletteValues.d.ts +4 -0
- package/dist/types/css/index.d.ts +9 -0
- package/dist/types/css/keyframes.d.ts +4 -0
- package/dist/types/css/positionTry.d.ts +4 -0
- package/dist/types/css/property.d.ts +7 -0
- package/dist/types/css/sheet.d.ts +7 -0
- package/dist/types/css/styleTarget.d.ts +9 -0
- package/dist/types/css/utils.d.ts +19 -0
- package/dist/types/dev/config.d.ts +6 -0
- package/dist/types/dev/fns.d.ts +14 -0
- package/dist/types/dev/index.d.ts +2 -0
- package/dist/types/dev/trace.d.ts +8 -0
- package/dist/types/dev/utils.d.ts +5 -0
- package/dist/types/dialect/extracted/index.d.ts +1 -0
- package/dist/types/dialect/index.d.ts +1 -0
- package/dist/types/dialect/namedTokens.d.ts +9 -0
- package/dist/types/entry/dev/adapter/preact.d.ts +1 -0
- package/dist/types/entry/dev/adapter/react.d.ts +1 -0
- package/dist/types/entry/dev/adapter/solid.d.ts +1 -0
- package/dist/types/entry/dev/config.d.ts +2 -0
- package/dist/types/entry/dev/css.d.ts +2 -0
- package/dist/types/entry/dev/index.d.ts +3 -0
- package/dist/types/entry/dev/jsx_dev_runtime.d.ts +3 -0
- package/dist/types/entry/dev/sheet.d.ts +1 -0
- package/dist/types/entry/prod/adapter/preact.d.ts +1 -0
- package/dist/types/entry/prod/adapter/react.d.ts +1 -0
- package/dist/types/entry/prod/adapter/solid.d.ts +1 -0
- package/dist/types/entry/prod/config.d.ts +2 -0
- package/dist/types/entry/prod/config_debug.d.ts +2 -0
- package/dist/types/entry/prod/css.d.ts +2 -0
- package/dist/types/entry/prod/extract.d.ts +1 -0
- package/dist/types/entry/prod/index.d.ts +2 -0
- package/dist/types/entry/prod/jsx_runtime.d.ts +2 -0
- package/dist/types/entry/prod/runtime.d.ts +8 -0
- package/dist/types/entry/rsc_dev/adapter/preact.d.ts +1 -0
- package/dist/types/entry/rsc_dev/adapter/react.d.ts +1 -0
- package/dist/types/entry/rsc_dev/adapter/solid.d.ts +1 -0
- package/dist/types/entry/rsc_dev/config.d.ts +2 -0
- package/dist/types/entry/rsc_dev/css.d.ts +2 -0
- package/dist/types/entry/rsc_dev/index.d.ts +2 -0
- package/dist/types/entry/rsc_dev/server.d.ts +10 -0
- package/dist/types/entry/rsc_prod/adapter/preact.d.ts +1 -0
- package/dist/types/entry/rsc_prod/adapter/react.d.ts +1 -0
- package/dist/types/entry/rsc_prod/adapter/solid.d.ts +1 -0
- package/dist/types/entry/rsc_prod/config.d.ts +2 -0
- package/dist/types/entry/rsc_prod/config_debug.d.ts +2 -0
- package/dist/types/entry/rsc_prod/css.d.ts +2 -0
- package/dist/types/entry/rsc_prod/index.d.ts +2 -0
- package/dist/types/entry/rsc_prod/jsx_runtime.d.ts +2 -0
- package/dist/types/entry/rsc_prod/runtime.d.ts +4 -0
- package/dist/types/entry/rsc_prod/server.d.ts +6 -0
- package/dist/types/entry/shared/config.d.ts +1 -0
- package/dist/types/entry/shared/config_debug.d.ts +1 -0
- package/dist/types/entry/shared/config_dev.d.ts +1 -0
- package/dist/types/entry/shared/dev.d.ts +1 -0
- package/dist/types/entry/shared/prod.d.ts +1 -0
- package/dist/types/entry/shared/utils.d.ts +2 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/jsx/extracted/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/rsc/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/rsc_extracted/jsx_runtime.d.ts +2 -0
- package/dist/types/jsx/runtime/jsx_dev_runtime.d.ts +6 -0
- package/dist/types/jsx/runtime/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/types/index.d.ts +1 -0
- package/dist/types/jsx/types/preact.d.ts +12 -0
- package/dist/types/jsx/types/react.d.ts +10 -0
- package/dist/types/jsx/types/solid.d.ts +12 -0
- package/dist/types/jsx/utils.d.ts +19 -0
- package/dist/types/plugin/bundler/farm/index.d.ts +1 -0
- package/dist/types/plugin/bundler/farm/plugin.d.ts +91 -0
- package/dist/types/plugin/bundler/parcel/index.d.ts +1 -0
- package/dist/types/plugin/bundler/parcel/optimizer.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/plugin.d.ts +6 -0
- package/dist/types/plugin/bundler/parcel/resolver.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/runtime.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/shared.d.ts +37 -0
- package/dist/types/plugin/bundler/parcel/transformer.d.ts +3 -0
- package/dist/types/plugin/bundler/rspack/index.d.ts +1 -0
- package/dist/types/plugin/bundler/rspack/plugin.d.ts +7 -0
- package/dist/types/plugin/bundler/vite/index.d.ts +1 -0
- package/dist/types/plugin/bundler/vite/plugin.d.ts +6 -0
- package/dist/types/plugin/bundler/vite/state.d.ts +55 -0
- package/dist/types/plugin/bundler/webpack/index.d.ts +1 -0
- package/dist/types/plugin/bundler/webpack/loader.d.ts +2 -0
- package/dist/types/plugin/bundler/webpack/plugin.d.ts +11 -0
- package/dist/types/plugin/bundler/webpack/shared/loader.d.ts +31 -0
- package/dist/types/plugin/bundler/webpack/shared/registry.d.ts +4 -0
- package/dist/types/plugin/bundler/webpack/utils.d.ts +18 -0
- package/dist/types/plugin/nextjs/constants.d.ts +3 -0
- package/dist/types/plugin/nextjs/html.d.ts +1 -0
- package/dist/types/plugin/nextjs/index.d.ts +2 -0
- package/dist/types/plugin/nextjs/loader.d.ts +3 -0
- package/dist/types/plugin/nextjs/plugin.d.ts +5 -0
- package/dist/types/plugin/nextjs/types.d.ts +21 -0
- package/dist/types/plugin/nextjs/utils.d.ts +59 -0
- package/dist/types/plugin/utils/cache/css_cache.d.ts +34 -0
- package/dist/types/plugin/utils/cache/file.d.ts +4 -0
- package/dist/types/plugin/utils/cache/index.d.ts +2 -0
- package/dist/types/plugin/utils/compiler.d.ts +40 -0
- package/dist/types/plugin/utils/constants.d.ts +4 -0
- package/dist/types/plugin/utils/cssMarker.d.ts +4 -0
- package/dist/types/plugin/utils/cssOutput.d.ts +10 -0
- package/dist/types/plugin/utils/filter.d.ts +14 -0
- package/dist/types/plugin/utils/imports.d.ts +3 -0
- package/dist/types/plugin/utils/index.d.ts +10 -0
- package/dist/types/plugin/utils/injection.d.ts +3 -0
- package/dist/types/plugin/utils/misc.d.ts +1 -0
- package/dist/types/plugin/utils/runtimeEntry.d.ts +8 -0
- package/dist/types/plugin/utils/sidecar/index.d.ts +1 -0
- package/dist/types/plugin/utils/sidecar/server.d.ts +19 -0
- package/dist/types/plugin/utils/sidecar/sidecar.d.ts +17 -0
- package/dist/types/plugin/utils/sidecar/utils.d.ts +33 -0
- package/dist/types/plugin/utils/sourcemap.d.ts +9 -0
- package/dist/types/plugin/utils/virtual.d.ts +12 -0
- package/dist/types/presets/tailwind/classname/index.d.ts +2 -0
- package/dist/types/presets/tailwind/classname/transform.d.ts +8 -0
- package/dist/types/presets/tailwind/classname/types.d.ts +27 -0
- package/dist/types/presets/tailwind/index.d.ts +5 -0
- package/dist/types/presets/tailwind/selectors.d.ts +68 -0
- package/dist/types/presets/tailwind/style/index.d.ts +2 -0
- package/dist/types/presets/tailwind/style/transform.d.ts +8 -0
- package/dist/types/presets/tailwind/style/types.d.ts +149 -0
- package/dist/types/presets/tailwind/theme.d.ts +477 -0
- package/dist/types/presets/tailwind/types.d.ts +53 -0
- package/dist/types/runtime/adapter/utils.d.ts +12 -0
- package/dist/types/runtime/core/cache/combine.d.ts +6 -0
- package/dist/types/runtime/core/cache/combineRuntime.d.ts +1 -0
- package/dist/types/runtime/core/cache/item.d.ts +15 -0
- package/dist/types/runtime/core/cache/itemWithResolver.d.ts +4 -0
- package/dist/types/runtime/core/cache/pool.d.ts +16 -0
- package/dist/types/runtime/core/cache/prop.d.ts +19 -0
- package/dist/types/runtime/core/cache/propCache.d.ts +12 -0
- package/dist/types/runtime/core/cache/resolvedItem.d.ts +5 -0
- package/dist/types/runtime/core/cache/result.d.ts +9 -0
- package/dist/types/runtime/core/cache/stateItem.d.ts +8 -0
- package/dist/types/runtime/core/cache/token.d.ts +2 -0
- package/dist/types/runtime/core/cache/tokenValues.d.ts +26 -0
- package/dist/types/runtime/core/cache/utils/tree.d.ts +12 -0
- package/dist/types/runtime/core/cache/utils/walk.d.ts +1 -0
- package/dist/types/runtime/core/className.d.ts +18 -0
- package/dist/types/runtime/core/combinedStyle.d.ts +20 -0
- package/dist/types/runtime/core/createTransformElement.d.ts +4 -0
- package/dist/types/runtime/core/elementMarker.d.ts +12 -0
- package/dist/types/runtime/core/elementMarkerData.d.ts +7 -0
- package/dist/types/runtime/core/getClassName.d.ts +4 -0
- package/dist/types/runtime/core/getSheetRules.d.ts +3 -0
- package/dist/types/runtime/core/getToken.d.ts +3 -0
- package/dist/types/runtime/core/index.d.ts +5 -0
- package/dist/types/runtime/core/jsx.d.ts +1 -0
- package/dist/types/runtime/core/resolveClassNameRuntime.d.ts +8 -0
- package/dist/types/runtime/env.d.ts +2 -0
- package/dist/types/runtime/extract/combineStyle.d.ts +27 -0
- package/dist/types/runtime/extract/getClassName.d.ts +10 -0
- package/dist/types/runtime/extract/index.d.ts +6 -0
- package/dist/types/runtime/extract/jsx.d.ts +10 -0
- package/dist/types/runtime/extract/token.d.ts +5 -0
- package/dist/types/runtime/extract/tokenResolver.d.ts +2 -0
- package/dist/types/runtime/rsc/constants.d.ts +4 -0
- package/dist/types/runtime/rsc/dev.d.ts +6 -0
- package/dist/types/runtime/rsc/getClassName.d.ts +24 -0
- package/dist/types/runtime/rsc/index.d.ts +1 -0
- package/dist/types/runtime/rsc/jsx.d.ts +1 -0
- package/dist/types/runtime/rsc/observer.d.ts +5 -0
- package/dist/types/runtime/rsc/styleStore.d.ts +5 -0
- package/dist/types/runtime/sheet/element.d.ts +2 -0
- package/dist/types/runtime/sheet/global.d.ts +3 -0
- package/dist/types/runtime/sheet/index.d.ts +3 -0
- package/dist/types/runtime/sheet/insert.d.ts +5 -0
- package/dist/types/runtime/sheet/rule.d.ts +8 -0
- package/dist/types/runtime/sheet/rules.d.ts +10 -0
- package/dist/types/runtime/sheet/theme.d.ts +5 -0
- package/dist/types/runtime/style/index.d.ts +3 -0
- package/dist/types/runtime/style/scope.d.ts +4 -0
- package/dist/types/runtime/style/style.d.ts +27 -0
- package/dist/types/runtime/style/token.d.ts +1 -0
- package/dist/types/runtime/types.d.ts +28 -0
- package/dist/types/selector/assert.d.ts +13 -0
- package/dist/types/selector/index.d.ts +5 -0
- package/dist/types/selector/presets/default.d.ts +108 -0
- package/dist/types/selector/presets/index.d.ts +3 -0
- package/dist/types/selector/presets/minimal.d.ts +46 -0
- package/dist/types/selector/presets/selectors.d.ts +62 -0
- package/dist/types/selector/selector.d.ts +12 -0
- package/dist/types/selector/types.d.ts +12 -0
- package/dist/types/selector/validate.d.ts +5 -0
- package/dist/types/sheet/dev/dev_layer.d.ts +4 -0
- package/dist/types/sheet/dev/dev_sort.d.ts +2 -0
- package/dist/types/sheet/dev/index.d.ts +5 -0
- package/dist/types/sheet/dev/utils.d.ts +26 -0
- package/dist/types/sheet/index.d.ts +4 -0
- package/dist/types/sheet/prod.d.ts +2 -0
- package/dist/types/sheet/sheet.d.ts +2 -0
- package/dist/types/sheet/sourcemap.d.ts +11 -0
- package/dist/types/sheet/types.d.ts +30 -0
- package/dist/types/sheet/utils/dom.d.ts +5 -0
- package/dist/types/sheet/utils/index.d.ts +4 -0
- package/dist/types/sheet/utils/layer.d.ts +10 -0
- package/dist/types/sheet/utils/noop.d.ts +2 -0
- package/dist/types/sheet/utils/rule.d.ts +3 -0
- package/dist/types/sheet/utils/sourcemap.d.ts +12 -0
- package/dist/types/style/classname.d.ts +15 -0
- package/dist/types/style/important.d.ts +8 -0
- package/dist/types/style/index.d.ts +12 -0
- package/dist/types/style/keyframes.d.ts +10 -0
- package/dist/types/style/style.d.ts +426 -0
- package/dist/types/style/theme.d.ts +5 -0
- package/dist/types/style/token.d.ts +29 -0
- package/dist/types/style/tokens.d.ts +10 -0
- package/dist/types/style/transform.d.ts +21 -0
- package/dist/types/style/types.d.ts +22 -0
- package/dist/types/style/utils/expose.d.ts +8 -0
- package/dist/types/style/utils/index.d.ts +1 -0
- package/dist/types/style/value.d.ts +12 -0
- package/dist/types/style/valueRef.d.ts +13 -0
- package/dist/types/style/weight.d.ts +9 -0
- package/dist/types/utils/global.d.ts +4 -0
- package/dist/types/utils/hash.d.ts +3 -0
- package/dist/types/utils/id.d.ts +12 -0
- package/dist/types/utils/object.d.ts +10 -0
- package/dist/types/utils/symbol.d.ts +1 -0
- package/dist/types/utils/trace.d.ts +21 -0
- package/dist/types/utils/type.d.ts +11 -0
- package/dist/{utils-H1VInWpd.js → utils-10MTZOuB.js} +31 -15
- package/dist/utils-10MTZOuB.js.map +1 -0
- package/dist/{utils-NdisireF.mjs → utils-BBN9msTv.mjs} +4 -4
- package/dist/{utils-NdisireF.mjs.map → utils-BBN9msTv.mjs.map} +1 -1
- package/dist/{utils-DND33M6y.mjs → utils-Bjh9pO87.mjs} +3 -3
- package/dist/{utils-DND33M6y.mjs.map → utils-Bjh9pO87.mjs.map} +1 -1
- package/dist/{utils-DZK0mfmY.js → utils-DoKJnvxk.js} +3 -3
- package/dist/{utils-DZK0mfmY.js.map → utils-DoKJnvxk.js.map} +1 -1
- package/dist/utils.js +3 -3
- package/dist/{value-CK0-Xbov.js → value-Dg6ALjjj.js} +2 -2
- package/dist/{value-CK0-Xbov.js.map → value-Dg6ALjjj.js.map} +1 -1
- package/dist/{webpack-D7QO0bKN.mjs → webpack-C1j49Psk.mjs} +5 -5
- package/dist/{webpack-D7QO0bKN.mjs.map → webpack-C1j49Psk.mjs.map} +1 -1
- package/jsx/types/solid.ts +8 -25
- package/package.json +76 -72
- package/plugin/bundler/webpack/shared/loader.ts +4 -0
- package/plugin/nextjs/plugin.ts +7 -8
- package/runtime/rsc/observer.ts +4 -1
- package/runtime/rsc/styleStore.ts +6 -2
- package/runtime/sheet/rule.ts +2 -2
- package/sheet/dev/dev_layer.ts +7 -3
- package/sheet/dev/dev_sort.ts +18 -11
- package/sheet/prod.ts +7 -3
- package/sheet/types.ts +2 -1
- package/sheet/utils/layer.ts +2 -1
- package/dist/compiler-C3CEGGtI.mjs.map +0 -1
- package/dist/css-BDn0epJ8.js.map +0 -1
- package/dist/css-CFxNrYt3.js.map +0 -1
- package/dist/css-DEYgrj76.js.map +0 -1
- package/dist/elementMarker-kvpMjB49.js.map +0 -1
- package/dist/env-Cz8frh6e.js.map +0 -1
- package/dist/loader-_-VjzlrX.mjs.map +0 -1
- package/dist/shared-PK52rW6T.cjs.map +0 -1
- package/dist/sheet-CxkO1Hwt.js +0 -7
- package/dist/styleStore-BzLZwpwy.js.map +0 -1
- package/dist/styleStore-DaIJ4OPV.js.map +0 -1
- package/dist/utils-H1VInWpd.js.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const PseudoSelectors: {
|
|
2
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
3
|
+
active: import("../index.js").Selector<":active", string>;
|
|
4
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
5
|
+
focusVisible: import("../index.js").Selector<":focus-visible", string>;
|
|
6
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
7
|
+
visited: import("../index.js").Selector<":visited", string>;
|
|
8
|
+
link: import("../index.js").Selector<":link", string>;
|
|
9
|
+
anyLink: import("../index.js").Selector<":any-link", string>;
|
|
10
|
+
target: import("../index.js").Selector<":target", string>;
|
|
11
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
12
|
+
enabled: import("../index.js").Selector<":enabled", string>;
|
|
13
|
+
checked: import("../index.js").Selector<":checked", string>;
|
|
14
|
+
indeterminate: import("../index.js").Selector<":indeterminate", string>;
|
|
15
|
+
invalid: import("../index.js").Selector<":invalid", string>;
|
|
16
|
+
valid: import("../index.js").Selector<":valid", string>;
|
|
17
|
+
required: import("../index.js").Selector<":required", string>;
|
|
18
|
+
optional: import("../index.js").Selector<":optional", string>;
|
|
19
|
+
readOnly: import("../index.js").Selector<":read-only", string>;
|
|
20
|
+
readWrite: import("../index.js").Selector<":read-write", string>;
|
|
21
|
+
inRange: import("../index.js").Selector<":in-range", string>;
|
|
22
|
+
outOfRange: import("../index.js").Selector<":out-of-range", string>;
|
|
23
|
+
default: import("../index.js").Selector<":default", string>;
|
|
24
|
+
placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
|
|
25
|
+
autofill: import("../index.js").Selector<":autofill", string>;
|
|
26
|
+
empty: import("../index.js").Selector<":empty", string>;
|
|
27
|
+
root: import("../index.js").Selector<":root", string>;
|
|
28
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
29
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
30
|
+
onlyChild: import("../index.js").Selector<":only-child", string>;
|
|
31
|
+
firstOfType: import("../index.js").Selector<":first-of-type", string>;
|
|
32
|
+
lastOfType: import("../index.js").Selector<":last-of-type", string>;
|
|
33
|
+
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
34
|
+
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
35
|
+
modal: import("../index.js").Selector<":modal", string>;
|
|
36
|
+
};
|
|
37
|
+
export declare const PseudoElementSelectors: {
|
|
38
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
39
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
40
|
+
};
|
|
41
|
+
export declare const PseudoArgSelectors: {
|
|
42
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
43
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
44
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
45
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
46
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
47
|
+
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
48
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
49
|
+
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
50
|
+
lang: import("../index.js").Selector<":lang($)", string>;
|
|
51
|
+
dir: import("../index.js").Selector<":dir($)", string>;
|
|
52
|
+
};
|
|
53
|
+
export declare const ArgSelectors: {
|
|
54
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
55
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
56
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
57
|
+
};
|
|
58
|
+
export declare const AtRuleSelectors: {
|
|
59
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
60
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
61
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Selector, SelectorAssert, SelectorAssertFn } from "./types.js";
|
|
2
|
+
type SelectorArgs = [] | [SelectorAssert | null] | [number] | [number, SelectorAssert | null];
|
|
3
|
+
type SelectorAssertArg<Assert> = Assert extends SelectorAssertFn<infer Arg> ? Arg extends string ? Arg : string : string;
|
|
4
|
+
type SelectorArg<Args extends SelectorArgs> = Args extends [infer Assert] ? SelectorAssertArg<Assert> : Args extends [number, infer Assert] ? SelectorAssertArg<Assert> : string;
|
|
5
|
+
export declare function selector<const T extends string, const Args extends SelectorArgs>(selector: T, ...args: Args): Selector<T, SelectorArg<Args>>;
|
|
6
|
+
type SelectorString<T extends Selector> = T extends Selector<infer T> ? T : unknown;
|
|
7
|
+
type PrioritySelectors<Selectors extends Record<string, Selector>> = {
|
|
8
|
+
[P in keyof Selectors as SelectorString<Selectors[P]> extends `@${string}` | `${string}...${string}` ? never : P]: Selectors[P];
|
|
9
|
+
};
|
|
10
|
+
export declare function selectorPriority<Selectors extends Record<string, Selector>>(selectors: Selectors, values: (keyof PrioritySelectors<Selectors>)[] | PrioritySelectors<Selectors>): Selectors;
|
|
11
|
+
export declare function createSelectorAssert<const Arg extends string = string>(fn: (arg: Arg) => void): SelectorAssertFn<Arg>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const SelectorAssertArgSymbol: unique symbol;
|
|
2
|
+
export type Selector<T extends string = string, Arg extends string = string> = {
|
|
3
|
+
selector: T;
|
|
4
|
+
priority: number | null;
|
|
5
|
+
assert: SelectorType | SelectorAssertFn<Arg> | null;
|
|
6
|
+
};
|
|
7
|
+
export type SelectorAssert<Arg extends string = string> = SelectorType | SelectorAssertFn<Arg>;
|
|
8
|
+
export type SelectorAssertFn<Arg extends string = string> = {
|
|
9
|
+
(arg: string): void;
|
|
10
|
+
readonly [SelectorAssertArgSymbol]?: Arg;
|
|
11
|
+
};
|
|
12
|
+
export type SelectorType = 'local' | 'arg' | 'tag' | 'attr' | 'value' | 'media' | 'supports' | 'container';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function isLocalSelector(selector: string): boolean;
|
|
2
|
+
export declare function isPseudoArgSelector(selector: string): boolean;
|
|
3
|
+
export declare function isTagSelector(selector: string): boolean;
|
|
4
|
+
export declare function isAttrArg(value: string): boolean;
|
|
5
|
+
export declare function isRawValue(value: string): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SheetOptions, StyleSheet } from "../types.js";
|
|
2
|
+
import { getDevSourcemapTags, refreshDevSourcemapTags } from "./utils.js";
|
|
3
|
+
export { getDevSourcemapTags, refreshDevSourcemapTags };
|
|
4
|
+
export declare function createDevLayerSheet(options?: SheetOptions): StyleSheet;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SheetOptions, StyleSheet } from "../types.js";
|
|
2
|
+
export { createDevLayerSheet, getDevSourcemapTags, refreshDevSourcemapTags } from "./dev_layer.js";
|
|
3
|
+
export { createDevSortSheet } from "./dev_sort.js";
|
|
4
|
+
export declare function createDevSheet(options?: SheetOptions): StyleSheet;
|
|
5
|
+
export declare function refreshDevStyleTags(): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SourcemapRule } from "../sourcemap.js";
|
|
2
|
+
import type { SheetRule } from "../types.js";
|
|
3
|
+
export type DevRuleTag = {
|
|
4
|
+
tag: HTMLStyleElement;
|
|
5
|
+
rules: SourcemapRule[];
|
|
6
|
+
sourceMapNode: Text | null;
|
|
7
|
+
insertBeforeNode: Text | null;
|
|
8
|
+
count: number;
|
|
9
|
+
updateSourceMap(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare function getDevSourcemapTags(): DevRuleTag[];
|
|
12
|
+
export declare function refreshDevSourcemapTags(): void;
|
|
13
|
+
export declare function pruneDevSourcemapTags(): void;
|
|
14
|
+
export declare function createDevTag(document: Document, previous: HTMLStyleElement | null, options: {
|
|
15
|
+
sourcemap: boolean;
|
|
16
|
+
nonce?: string | null;
|
|
17
|
+
className?: string;
|
|
18
|
+
before?: HTMLStyleElement | Text | null;
|
|
19
|
+
top?: boolean;
|
|
20
|
+
wrapper?: {
|
|
21
|
+
before: string;
|
|
22
|
+
after: string;
|
|
23
|
+
sourceMapLineOffset: number;
|
|
24
|
+
};
|
|
25
|
+
}): DevRuleTag;
|
|
26
|
+
export declare function insertDevRule(document: Document, item: DevRuleTag, fragment: DocumentFragment, css: string, rule: SheetRule | null): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DebugData } from "../builder/data/debug.js";
|
|
2
|
+
import type { SheetCallsite } from "./types.js";
|
|
3
|
+
export type SourcemapRule = {
|
|
4
|
+
css: string;
|
|
5
|
+
callsite: SheetCallsite | null;
|
|
6
|
+
debug?: DebugData | null;
|
|
7
|
+
debugField?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function getRuleCallsite(callsite: SheetCallsite | null | undefined, debug: DebugData | null | undefined, debugField?: string | null): SheetCallsite | null;
|
|
10
|
+
export declare function createSourceMapComment(rules: SourcemapRule[]): string;
|
|
11
|
+
export declare function getSourcemapRuleCallsite(rule: SourcemapRule): SheetCallsite | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { LayerPriority } from "../atomic/layer/index.js";
|
|
2
|
+
import type { DebugData } from "../builder/data/debug.js";
|
|
3
|
+
import type { NamedSheetLayer } from "../config/config/css.js";
|
|
4
|
+
import type { TraceCallsite } from "../utils/trace.js";
|
|
5
|
+
export type SheetCallsite = Pick<TraceCallsite, 'filePath' | 'sourceUrl' | 'sourceContent' | 'line' | 'column'>;
|
|
6
|
+
export type SheetRule = {
|
|
7
|
+
css: string;
|
|
8
|
+
key?: string | null;
|
|
9
|
+
priority?: LayerPriority | null;
|
|
10
|
+
important?: boolean;
|
|
11
|
+
layer?: 'style' | 'sheet' | false | NamedSheetLayer;
|
|
12
|
+
callsite?: SheetCallsite | null;
|
|
13
|
+
debug?: DebugData | null;
|
|
14
|
+
debugField?: string | null;
|
|
15
|
+
};
|
|
16
|
+
export type SheetOptions = {
|
|
17
|
+
document?: Document | null;
|
|
18
|
+
dev?: boolean;
|
|
19
|
+
maxRules?: number;
|
|
20
|
+
nonce?: string | null;
|
|
21
|
+
sourcemap?: boolean;
|
|
22
|
+
tagName?: string;
|
|
23
|
+
top?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type StyleSheet = {
|
|
26
|
+
updateLayers(layers: readonly string[]): void;
|
|
27
|
+
insert(rule: SheetRule | string): void;
|
|
28
|
+
flush(): void;
|
|
29
|
+
destroy?(): void;
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function resolveDocument(documentOverride?: Document | null): Document | null;
|
|
2
|
+
export declare function createStyleTag(document: Document, name: string, nonce?: string | null): HTMLStyleElement;
|
|
3
|
+
export declare function appendStyleTag(document: Document, tag: HTMLStyleElement): void;
|
|
4
|
+
export declare function insertStyleTagAfter(document: Document, tag: HTMLStyleElement, previous: HTMLStyleElement | null): void;
|
|
5
|
+
export declare function insertStyleTagAtTop(document: Document, tag: HTMLStyleElement): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LayerPriority } from "../../atomic/layer/index.js";
|
|
2
|
+
export declare function createSheetLayerState(): {
|
|
3
|
+
getName: (priority: LayerPriority) => string;
|
|
4
|
+
getNames: () => string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function getSheetRulePriority(priority: LayerPriority | null | undefined): LayerPriority;
|
|
7
|
+
export declare function getSheetRuleLayerPriority(priority: LayerPriority | null | undefined, important: boolean | null | undefined): LayerPriority;
|
|
8
|
+
export declare function getStyleLayerName(): string;
|
|
9
|
+
export declare function getSheetLayerName(): string;
|
|
10
|
+
export declare function getSheetLayerNames(layerState: ReturnType<typeof createSheetLayerState>, hasSheetLayer: boolean, namedLayers?: ReadonlySet<string>): string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SourceMapSource = {
|
|
2
|
+
filePath: string;
|
|
3
|
+
sourceUrl?: string;
|
|
4
|
+
sourceContent?: string;
|
|
5
|
+
line: number;
|
|
6
|
+
column: number;
|
|
7
|
+
};
|
|
8
|
+
export type SourceMapRule = {
|
|
9
|
+
css: string;
|
|
10
|
+
source: SourceMapSource | null;
|
|
11
|
+
};
|
|
12
|
+
export declare function createSourceMapComment(rules: SourceMapRule[]): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ClassNameFn } from "../builder/classname/index.js";
|
|
2
|
+
import type { SelectorsRecord } from "../builder/types/index.js";
|
|
3
|
+
import { PrioritySelectors } from "../selector/presets/index.js";
|
|
4
|
+
import type { Type } from "../utils/type.js";
|
|
5
|
+
import type { ClassNameTransform } from "./transform.js";
|
|
6
|
+
export type { ClassNameBuilder, ClassNameFn, ClassNameItem, WeightedClassName } from "../builder/classname/index.js";
|
|
7
|
+
export type { ClassNameTransform } from "./transform.js";
|
|
8
|
+
type InferClassName<Transform> = Transform extends ClassNameTransform<infer ClassName> ? ClassName : never;
|
|
9
|
+
export declare function createClassNameFn<const Selectors extends SelectorsRecord = typeof PrioritySelectors, const Transform extends ClassNameTransform<any> = ClassNameTransform<string>, ClassName extends string = InferClassName<Transform>>(args: {
|
|
10
|
+
className?: Type<ClassName>;
|
|
11
|
+
selectors: Selectors;
|
|
12
|
+
transform: Transform;
|
|
13
|
+
}): {
|
|
14
|
+
className: ClassNameFn<ClassName, Selectors>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const STYLE_IMPORTANT: unique symbol;
|
|
2
|
+
export type StyleImportantValue<T = unknown> = {
|
|
3
|
+
readonly [STYLE_IMPORTANT]: true;
|
|
4
|
+
readonly value: T;
|
|
5
|
+
};
|
|
6
|
+
export declare function importantValue<T>(value: T): StyleImportantValue<T>;
|
|
7
|
+
export declare function isStyleImportantValue(value: unknown): value is StyleImportantValue;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./classname.js";
|
|
2
|
+
export * from "./important.js";
|
|
3
|
+
export * from "./keyframes.js";
|
|
4
|
+
export * from "./style.js";
|
|
5
|
+
export * from "./theme.js";
|
|
6
|
+
export * from "./token.js";
|
|
7
|
+
export * from "./tokens.js";
|
|
8
|
+
export * from "./transform.js";
|
|
9
|
+
export * from "./types.js";
|
|
10
|
+
export * from "./value.js";
|
|
11
|
+
export * from "./valueRef.js";
|
|
12
|
+
export * from "./weight.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KeyframeSelector, KeyframesObject } from "../atomic/atRule/keyframes.js";
|
|
2
|
+
import { createKeyframes } from "../css/index.js";
|
|
3
|
+
import type { StableId } from "../utils/id.js";
|
|
4
|
+
import type { StyleTransform } from "./transform.js";
|
|
5
|
+
import type { CSSProperties, StyleObject } from "./types.js";
|
|
6
|
+
export type StyleKeyframesObject<Style = CSSProperties> = {
|
|
7
|
+
[Selector in KeyframeSelector]?: StyleObject<Style>;
|
|
8
|
+
};
|
|
9
|
+
export declare function transformKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null): KeyframesObject;
|
|
10
|
+
export declare function createStyleKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null, stableId?: StableId): ReturnType<typeof createKeyframes>;
|