@fluentic/style 0.1.0-beta.2 → 0.1.0-beta.20
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 +228 -16
- package/README.md +182 -49
- package/atomic/className.ts +33 -12
- package/atomic/debug/className/className.ts +10 -15
- package/atomic/element.ts +2 -2
- package/atomic/layer/layer.ts +7 -3
- package/atomic/rule.ts +20 -6
- package/atomic/scope.ts +19 -0
- package/atomic/theme.ts +41 -2
- package/atomic/token.ts +13 -3
- package/atomic/utils/{css.ts → cssIdent.ts} +0 -20
- package/atomic/utils/cssVar.ts +19 -0
- package/atomic/utils/debug.ts +1 -1
- package/atomic/utils/hash.ts +1 -65
- package/atomic/utils/selector.ts +40 -1
- package/atomic/utils/types.ts +4 -2
- package/builder/classname/class_name_builder.ts +68 -24
- package/builder/classname/fns.ts +2 -2
- package/builder/classname/types.ts +7 -0
- package/builder/data/const.ts +10 -1
- package/builder/data/create.ts +46 -0
- package/builder/data/data.ts +26 -1
- package/builder/data/index.ts +0 -1
- package/builder/data/is.ts +23 -0
- package/builder/data/merge/scope.ts +27 -19
- package/builder/data/merge/style.ts +115 -46
- package/builder/data/state.ts +17 -2
- package/builder/extract/index.ts +1 -0
- package/builder/extract/sheet.ts +30 -0
- package/builder/extract/token.ts +40 -14
- package/builder/extract/utils.ts +2 -0
- package/builder/extract/withTokens.ts +2 -1
- package/builder/selector_override.noop.ts +11 -0
- package/builder/selector_override.ts +31 -0
- package/builder/selector_override_core.ts +99 -0
- package/builder/style_builder.ts +127 -3
- package/builder/style_data.ts +25 -0
- package/builder/style_fns.ts +24 -24
- package/builder/token/data.ts +30 -0
- package/builder/token/index.ts +3 -0
- package/builder/token/name.ts +54 -0
- package/builder/token/symbols.ts +6 -0
- package/builder/types/alias.ts +34 -6
- package/builder/types/fns.ts +13 -5
- package/builder/types/types.ts +32 -2
- package/builder/utils.ts +1 -0
- package/compiler/compiler/cache_identity.ts +115 -0
- package/compiler/compiler/compiler.ts +123 -18
- package/compiler/compiler/constants.ts +6 -0
- package/compiler/compiler/index.ts +1 -0
- package/compiler/compiler/persistent_cache.ts +310 -0
- package/compiler/compiler/types.ts +16 -1
- package/compiler/cssProp.ts +21 -0
- package/compiler/extract/collector.ts +2 -2
- package/compiler/extract/extract.ts +24 -45
- package/compiler/extract/types.ts +6 -0
- package/compiler/index.ts +1 -0
- package/compiler/transform/cssProp/index.ts +1 -0
- package/compiler/transform/cssProp/plugin.ts +161 -0
- package/compiler/transform/debug/plugin.ts +107 -1
- package/compiler/transform/debug/transform.ts +2 -1
- package/compiler/transform/evaluator/evaluator.ts +223 -38
- package/compiler/transform/evaluator/lazy_bindings.ts +63 -0
- package/compiler/transform/evaluator/metadata_cache.ts +124 -0
- package/compiler/transform/evaluator/tracer.ts +151 -89
- package/compiler/transform/extract/chain/chain.ts +794 -84
- package/compiler/transform/extract/chain/extract_chain.ts +28 -4
- package/compiler/transform/extract/chain/types.ts +3 -1
- package/compiler/transform/extract/plugin.ts +159 -42
- package/compiler/transform/extract/transform.ts +2 -1
- package/compiler/transform/extract/utils/imports.ts +8 -1
- package/compiler/transform/extract/utils/replacement.ts +92 -5
- package/compiler/transform/extract/utils/state.ts +8 -2
- package/compiler/transform/extract/utils/theme.ts +6 -6
- package/compiler/transform/extract/utils/token.ts +107 -0
- package/compiler/transform/index.ts +1 -0
- package/compiler/transform/syntax/isStaticStyleValue.ts +15 -9
- package/compiler/transform/syntax/static_ids.ts +1 -1
- package/compiler/transform/utils/babel.ts +1 -1
- package/compiler/utils/check_diagnostics.ts +18 -0
- package/compiler/utils/constants.ts +10 -5
- package/compiler/utils/file_resolver.ts +27 -1
- package/compiler/utils/import_source.ts +17 -7
- package/compiler/utils/imports.ts +11 -1
- package/config/build.ts +9 -2
- package/config/config/check.ts +25 -0
- package/config/config/css.ts +36 -1
- package/config/config/debug.ts +24 -1
- package/config/config/dev.ts +8 -0
- package/config/configure.ts +23 -2
- package/config/document.ts +23 -0
- package/css/globalSheet.ts +66 -0
- package/css/index.ts +5 -0
- package/css/sheet.ts +173 -0
- package/css/styleTarget.ts +251 -0
- package/dev/config.ts +2 -3
- package/dev/utils.ts +3 -3
- package/dialect/namedTokens.ts +30 -8
- package/dist/adapter/preact.js +2 -0
- package/dist/adapter/react.js +2 -0
- package/dist/adapter/solid.js +2 -0
- package/dist/className-CC5PHcXI.js +311 -0
- package/dist/className-CC5PHcXI.js.map +1 -0
- package/dist/{style-DUztHzBz.js → combine-CtR6MyD4.js} +402 -733
- package/dist/combine-CtR6MyD4.js.map +1 -0
- package/dist/compiler/index.mjs +2 -2
- package/dist/{compiler-BXcGyZUP.mjs → compiler-oXXProzz.mjs} +3092 -850
- package/dist/compiler-oXXProzz.mjs.map +1 -0
- package/dist/config/index.js +2 -2
- package/dist/config-BK7oK4Hx.js +57 -0
- package/dist/config-BK7oK4Hx.js.map +1 -0
- package/dist/config-BWFlaJ_v.js +6 -0
- package/dist/config-BWFlaJ_v.js.map +1 -0
- package/dist/config-BsF-QRgz.js +6 -0
- package/dist/{config-DcYrUB-M.js.map → config-BsF-QRgz.js.map} +1 -1
- package/dist/{config-C1k9vUrM.js → config-DKaGtG9O.js} +9 -7
- package/dist/config-DKaGtG9O.js.map +1 -0
- package/dist/config-IFmsTOQp.js +1 -0
- package/dist/css-B-7-Do-J.js +4541 -0
- package/dist/css-B-7-Do-J.js.map +1 -0
- package/dist/{css-CohHH2tn.js → css-BmIytNon.js} +185 -14
- package/dist/css-BmIytNon.js.map +1 -0
- package/dist/css-CYnQKnPu.js +563 -0
- package/dist/css-CYnQKnPu.js.map +1 -0
- package/dist/css.js +2 -2
- package/dist/{css_extra-DQdCrYoC.js → css_extra-Br7eDCrf.js} +2 -2
- package/dist/{css_extra-9BZ_jVET.js.map → css_extra-Br7eDCrf.js.map} +1 -1
- package/dist/{css_extra-9BZ_jVET.js → css_extra-qzi_eFFf.js} +2 -2
- package/dist/{css_extra-DQdCrYoC.js.map → css_extra-qzi_eFFf.js.map} +1 -1
- package/dist/data-D6dD67li.js +786 -0
- package/dist/data-D6dD67li.js.map +1 -0
- package/dist/debug-Bo43rBKc.js +73 -0
- package/dist/debug-Bo43rBKc.js.map +1 -0
- package/dist/dev/rsc.js +138 -28
- package/dist/dev/rsc.js.map +1 -1
- package/dist/{dev-C2u78xuv.js → dev-_DW5n4U4.js} +9 -10
- package/dist/dev-_DW5n4U4.js.map +1 -0
- package/dist/dev.js +1 -1
- package/dist/dialect/extracted/index.js +1 -1
- package/dist/dialect/index.js +1 -1
- package/dist/{elementMarker-BKzZyg5V.js → elementMarker-u0d2LH8r.js} +582 -61
- package/dist/elementMarker-u0d2LH8r.js.map +1 -0
- package/dist/entry/dev/adapter/preact.js +12 -0
- package/dist/entry/dev/adapter/preact.js.map +1 -0
- package/dist/entry/dev/adapter/react.js +12 -0
- package/dist/entry/dev/adapter/react.js.map +1 -0
- package/dist/entry/dev/adapter/solid.js +12 -0
- package/dist/entry/dev/adapter/solid.js.map +1 -0
- package/dist/entry/dev/css.js +3 -3
- package/dist/entry/dev/jsx-dev-runtime.js +2 -2
- package/dist/entry/dev/jsx-runtime.js +2 -2
- package/dist/entry/dev.js +13 -12
- package/dist/entry/prod/adapter/preact.js +12 -0
- package/dist/entry/prod/adapter/preact.js.map +1 -0
- package/dist/entry/prod/adapter/react.js +12 -0
- package/dist/entry/prod/adapter/react.js.map +1 -0
- package/dist/entry/prod/adapter/solid.js +12 -0
- package/dist/entry/prod/adapter/solid.js.map +1 -0
- package/dist/entry/prod/css.js +3 -3
- package/dist/entry/prod/extract.js +251 -3
- package/dist/entry/prod/extract.js.map +1 -0
- package/dist/entry/prod/jsx-dev-runtime.js +2 -2
- package/dist/entry/prod/jsx-runtime.js +2 -2
- package/dist/entry/prod/runtime.js +3 -4
- package/dist/entry/prod.js +84 -1201
- package/dist/entry/prod.js.map +1 -1
- package/dist/entry/rsc-dev/adapter/preact.js +13 -0
- package/dist/entry/rsc-dev/adapter/preact.js.map +1 -0
- package/dist/entry/rsc-dev/adapter/react.js +13 -0
- package/dist/entry/rsc-dev/adapter/react.js.map +1 -0
- package/dist/entry/rsc-dev/adapter/solid.js +13 -0
- package/dist/entry/rsc-dev/adapter/solid.js.map +1 -0
- package/dist/entry/rsc-dev/css.js +4 -3
- package/dist/entry/rsc-dev/dev.js +135 -32
- package/dist/entry/rsc-dev/dev.js.map +1 -1
- package/dist/entry/rsc-dev/jsx-dev-runtime.js +5 -4
- package/dist/entry/rsc-dev/jsx-dev-runtime.js.map +1 -1
- package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
- package/dist/entry/rsc-dev.js +298 -616
- package/dist/entry/rsc-dev.js.map +1 -1
- package/dist/entry/rsc-prod/adapter/preact.js +2 -0
- package/dist/entry/rsc-prod/adapter/react.js +2 -0
- package/dist/entry/rsc-prod/adapter/solid.js +2 -0
- package/dist/entry/rsc-prod/css.js +9 -3
- package/dist/entry/rsc-prod/css.js.map +1 -0
- package/dist/entry/rsc-prod/jsx-dev-runtime.js +2 -2
- package/dist/entry/rsc-prod/jsx-runtime.js +2 -2
- package/dist/entry/rsc-prod/runtime.js +3 -4
- package/dist/entry/rsc-prod.js +251 -10
- package/dist/entry/rsc-prod.js.map +1 -0
- package/dist/{rules-Dz7Pu2K6.js → env-C8lKN1dB.js} +727 -147
- package/dist/env-C8lKN1dB.js.map +1 -0
- package/dist/{getClassName-C6690_nr.js → getClassName-BraU01Hd.js} +60 -15
- package/dist/getClassName-BraU01Hd.js.map +1 -0
- package/dist/getClassName-C35yO40s.js +548 -0
- package/dist/getClassName-C35yO40s.js.map +1 -0
- package/dist/getClassName-CfkGcBZy.js +49 -0
- package/dist/getClassName-CfkGcBZy.js.map +1 -0
- package/dist/{utils-D4YWF2K0.js → getClassName-i4oy2Up_.js} +27 -65
- package/dist/getClassName-i4oy2Up_.js.map +1 -0
- package/dist/{global-zaCE-g1C.js → global-DGcWZODV.js} +7 -8
- package/dist/global-DGcWZODV.js.map +1 -0
- package/dist/globalSheet-2ozCV1Zm.js +1091 -0
- package/dist/globalSheet-2ozCV1Zm.js.map +1 -0
- package/dist/hash-CGO13tOn.js +407 -0
- package/dist/hash-CGO13tOn.js.map +1 -0
- package/dist/index.js +10 -10
- package/dist/jsx/jsx-dev-runtime.js +2 -2
- package/dist/jsx/jsx-dev-runtime.server.js +3 -3
- package/dist/jsx/jsx-dev-runtime.server.js.map +1 -1
- package/dist/jsx/jsx-runtime.js +2 -2
- package/dist/jsx/jsx-runtime.server.js +4 -4
- package/dist/jsx/jsx-runtime.server.js.map +1 -1
- package/dist/jsx-C-v1b99-.js +39 -0
- package/dist/jsx-C-v1b99-.js.map +1 -0
- package/dist/{jsx_dev_runtime-DXlSD6kV.js → jsx_dev_runtime-Bd7FO7C1.js} +2 -3
- package/dist/{jsx_dev_runtime-DXlSD6kV.js.map → jsx_dev_runtime-Bd7FO7C1.js.map} +1 -1
- package/dist/jsx_runtime-BxumFGUy.js +13 -0
- package/dist/jsx_runtime-BxumFGUy.js.map +1 -0
- package/dist/{jsx_runtime-DPWo5qvV.js → jsx_runtime-gO4GQFcW.js} +3 -3
- package/dist/{jsx_runtime-CMdEXGNZ.js.map → jsx_runtime-gO4GQFcW.js.map} +1 -1
- package/dist/{loader-DCT1Q9yi.mjs → loader-A15L-NVK.mjs} +13 -14
- package/dist/loader-A15L-NVK.mjs.map +1 -0
- package/dist/{misc-o8pviMUi.mjs → misc-CRRQr1DT.mjs} +35 -8
- package/dist/misc-CRRQr1DT.mjs.map +1 -0
- package/dist/{namedTokens-BUa6raTb.js → namedTokens-paLD-Pdk.js} +15 -9
- package/dist/namedTokens-paLD-Pdk.js.map +1 -0
- package/dist/plugin/farm/index.mjs +5 -4
- package/dist/plugin/farm/index.mjs.map +1 -1
- package/dist/plugin/nextjs/index.mjs +153 -33
- package/dist/plugin/nextjs/index.mjs.map +1 -1
- package/dist/plugin/nextjs/loader.mjs +7 -5
- package/dist/plugin/nextjs/loader.mjs.map +1 -1
- package/dist/plugin/parcel/index.cjs +2 -0
- package/dist/plugin/parcel/index.mjs +3 -1
- package/dist/plugin/parcel/optimizer.cjs +3 -2
- package/dist/plugin/parcel/optimizer.cjs.map +1 -1
- package/dist/plugin/parcel/optimizer.mjs +3 -2
- package/dist/plugin/parcel/optimizer.mjs.map +1 -1
- 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 +3 -2
- package/dist/plugin/rspack/index.mjs.map +1 -1
- package/dist/plugin/vite/index.mjs +26 -23
- package/dist/plugin/vite/index.mjs.map +1 -1
- package/dist/plugin/webpack/index.mjs +3 -2
- package/dist/plugin/webpack/loader.mjs +2 -2
- package/dist/presets/tailwind/index.js +32 -8
- package/dist/presets/tailwind/index.js.map +1 -1
- package/dist/{assert-BGdigdr5.js → presets-DSanixJV.js} +106 -2
- package/dist/presets-DSanixJV.js.map +1 -0
- package/dist/{registry-D3x1EDJm.mjs → registry-D2C6hTdx.mjs} +2 -2
- package/dist/{registry-D3x1EDJm.mjs.map → registry-D2C6hTdx.mjs.map} +1 -1
- package/dist/resolveClassNameRuntime-Cp8_UcxF.js +63 -0
- package/dist/resolveClassNameRuntime-Cp8_UcxF.js.map +1 -0
- package/dist/scope-Dg83Az-2.js +601 -0
- package/dist/scope-Dg83Az-2.js.map +1 -0
- package/dist/selector/index.js +1 -2
- package/dist/server.js +91 -17
- package/dist/server.js.map +1 -1
- package/dist/{shared-B_gJf5uj.cjs → shared-B7Nw_dcx.cjs} +3152 -891
- package/dist/shared-B7Nw_dcx.cjs.map +1 -0
- package/dist/{shared-uAzFeq0x.mjs → shared-BmJmaxu8.mjs} +5 -5
- package/dist/shared-BmJmaxu8.mjs.map +1 -0
- package/dist/sheet-CHnDkjn4.js +56 -0
- package/dist/sheet-CHnDkjn4.js.map +1 -0
- package/dist/sheet-PVxRQrOp.js +7 -0
- package/dist/sheet-PVxRQrOp.js.map +1 -0
- package/dist/sheet-ueNBw_2u.js +1 -0
- package/dist/{sidecar-BUO1hKXu.mjs → sidecar-DVegwGec.mjs} +3 -3
- package/dist/{sidecar-BUO1hKXu.mjs.map → sidecar-DVegwGec.mjs.map} +1 -1
- package/dist/{style-BkeAZl0n.js → style-B1tkE8zl.js} +329 -129
- package/dist/style-B1tkE8zl.js.map +1 -0
- package/dist/styleStore-BK2XBS8n.js +45 -0
- package/dist/styleStore-BK2XBS8n.js.map +1 -0
- package/dist/styleStore-D4umgIwQ.js +3457 -0
- package/dist/styleStore-D4umgIwQ.js.map +1 -0
- package/dist/token-BX5jRxMb.js +110 -0
- package/dist/token-BX5jRxMb.js.map +1 -0
- package/dist/token-CS0iRIIa.js +140 -0
- package/dist/token-CS0iRIIa.js.map +1 -0
- package/dist/{trace-D0IL6JT8.js → trace-DZYKSwdB.js} +2 -2
- package/dist/{trace-D0IL6JT8.js.map → trace-DZYKSwdB.js.map} +1 -1
- package/dist/{trace-DR7_Rpkg.js → trace-EEKXwKSr.js} +3 -3
- package/dist/{trace-DR7_Rpkg.js.map → trace-EEKXwKSr.js.map} +1 -1
- package/dist/{transform-BTJOg8Hg.js → transform-BZ4jPwy3.js} +2 -2
- package/dist/transform-BZ4jPwy3.js.map +1 -0
- 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 +7 -0
- package/dist/types/atomic/utils/types.d.ts +8 -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 +27 -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 +10 -0
- package/dist/types/builder/data/selector.d.ts +8 -0
- package/dist/types/builder/data/state.d.ts +100 -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 +12 -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 +8 -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/cache_identity.d.ts +4 -0
- package/dist/types/compiler/compiler/compiler.d.ts +40 -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/persistent_cache.d.ts +14 -0
- package/dist/types/compiler/compiler/types.d.ts +64 -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 +29 -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 +58 -0
- package/dist/types/compiler/transform/evaluator/index.d.ts +3 -0
- package/dist/types/compiler/transform/evaluator/lazy_bindings.d.ts +22 -0
- package/dist/types/compiler/transform/evaluator/metadata_cache.d.ts +13 -0
- package/dist/types/compiler/transform/evaluator/tracer.d.ts +15 -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 +21 -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 +11 -0
- package/dist/types/compiler/transform/extract/utils/slot.d.ts +4 -0
- package/dist/types/compiler/transform/extract/utils/state.d.ts +36 -0
- package/dist/types/compiler/transform/extract/utils/theme.d.ts +9 -0
- package/dist/types/compiler/transform/extract/utils/token.d.ts +4 -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/check_diagnostics.d.ts +7 -0
- package/dist/types/compiler/utils/constants.d.ts +70 -0
- package/dist/types/compiler/utils/file_resolver.d.ts +16 -0
- package/dist/types/compiler/utils/import_source.d.ts +34 -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 +29 -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 +14 -0
- package/dist/types/config/constants.d.ts +1 -0
- package/dist/types/config/document.d.ts +3 -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/globalSheet.d.ts +24 -0
- package/dist/types/css/index.d.ts +12 -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 +8 -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 +3 -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 +97 -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 +79 -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 +51 -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 +25 -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 +14 -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 +6 -0
- package/dist/types/runtime/rsc/dev.d.ts +11 -0
- package/dist/types/runtime/rsc/getClassName.d.ts +27 -0
- package/dist/types/runtime/rsc/globalSheet.d.ts +22 -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 +10 -0
- package/dist/types/runtime/rsc/styleStore.d.ts +7 -0
- package/dist/types/runtime/sheet/document.d.ts +3 -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 +31 -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 +25 -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/ordered.d.ts +4 -0
- package/dist/types/sheet/ordering.d.ts +15 -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 +37 -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 +9 -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 +22 -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-0UTYm294.js +42 -0
- package/dist/utils-0UTYm294.js.map +1 -0
- package/dist/utils-CO1ZXzKK.mjs +182 -0
- package/dist/utils-CO1ZXzKK.mjs.map +1 -0
- package/dist/{utils-DQGa0uzS.mjs → utils-CxYxZSSk.mjs} +3 -3
- package/dist/{utils-DQGa0uzS.mjs.map → utils-CxYxZSSk.mjs.map} +1 -1
- package/dist/utils-D1duUYV9.js +72 -0
- package/dist/utils-D1duUYV9.js.map +1 -0
- package/dist/utils-DxCpyV2E.js +62 -0
- package/dist/utils-DxCpyV2E.js.map +1 -0
- package/dist/{utils-BsbfH6cd.js → utils-ymEmGz-T.js} +1274 -608
- package/dist/utils-ymEmGz-T.js.map +1 -0
- package/dist/utils.js +4 -4
- package/dist/utils.js.map +1 -1
- package/dist/{webpack-Fb9xF5jS.mjs → webpack-DF165M2x.mjs} +7 -7
- package/dist/webpack-DF165M2x.mjs.map +1 -0
- package/entry/dev/adapter/preact.ts +8 -0
- package/entry/dev/adapter/react.ts +8 -0
- package/entry/dev/adapter/solid.ts +8 -0
- package/entry/dev/sheet.ts +4 -2
- package/entry/prod/adapter/preact.ts +8 -0
- package/entry/prod/adapter/react.ts +8 -0
- package/entry/prod/adapter/solid.ts +8 -0
- package/entry/prod/config_debug.ts +2 -0
- package/entry/prod/index.ts +1 -1
- package/entry/prod/runtime.ts +3 -1
- package/entry/rsc_dev/adapter/preact.ts +9 -0
- package/entry/rsc_dev/adapter/react.ts +9 -0
- package/entry/rsc_dev/adapter/solid.ts +9 -0
- package/entry/rsc_dev/css.ts +2 -0
- package/entry/rsc_prod/adapter/preact.ts +1 -0
- package/entry/rsc_prod/adapter/react.ts +1 -0
- package/entry/rsc_prod/adapter/solid.ts +1 -0
- package/entry/rsc_prod/config_debug.ts +6 -0
- package/entry/rsc_prod/index.ts +1 -1
- package/entry/shared/config_debug.ts +9 -0
- package/entry/shared/config_dev.ts +9 -7
- package/index.ts +1 -0
- package/jsx/rsc/jsx_dev_runtime.ts +11 -2
- package/jsx/rsc/jsx_runtime.ts +14 -3
- package/jsx/types/index.ts +1 -0
- package/jsx/types/preact.ts +14 -0
- package/jsx/{types.ts → types/react.ts} +2 -2
- package/jsx/types/solid.ts +15 -0
- package/package.json +179 -74
- package/plugin/bundler/farm/plugin.ts +3 -1
- package/plugin/bundler/parcel/optimizer.ts +1 -0
- package/plugin/bundler/parcel/plugin.ts +2 -0
- package/plugin/bundler/parcel/shared.ts +1 -1
- package/plugin/bundler/rspack/plugin.ts +1 -0
- package/plugin/bundler/vite/plugin.ts +23 -25
- package/plugin/bundler/vite/state.ts +7 -8
- package/plugin/bundler/webpack/plugin.ts +4 -3
- package/plugin/bundler/webpack/shared/loader.ts +13 -7
- package/plugin/nextjs/loader.ts +18 -2
- package/plugin/nextjs/plugin.ts +248 -35
- package/plugin/nextjs/types.ts +1 -2
- package/plugin/nextjs/utils.ts +122 -1
- package/plugin/utils/compiler.ts +3 -2
- package/plugin/utils/filter.ts +65 -1
- package/plugin/utils/runtimeEntry.ts +3 -2
- package/presets/tailwind/classname/transform.ts +32 -1
- package/presets/tailwind/style/transform.ts +9 -3
- package/runtime/adapter/utils.ts +120 -0
- package/runtime/core/cache/combine.ts +76 -28
- package/runtime/core/cache/combineRuntime.ts +4 -0
- package/runtime/core/cache/index.ts +2 -1
- package/runtime/core/cache/item.ts +32 -13
- package/runtime/core/cache/itemWithResolver.ts +44 -0
- package/runtime/core/cache/pool.ts +15 -30
- package/runtime/core/cache/prop.ts +10 -8
- package/runtime/core/cache/result.ts +2 -2
- package/runtime/core/cache/stateItem.ts +19 -1
- package/runtime/core/cache/token.ts +20 -0
- package/runtime/core/cache/tokenValues.ts +19 -11
- package/runtime/core/combinedStyle.ts +4 -4
- package/runtime/core/elementMarker.ts +9 -3
- package/runtime/extract/combineStyle.ts +211 -0
- package/runtime/extract/getClassName.ts +61 -16
- package/runtime/extract/index.ts +3 -1
- package/runtime/extract/token.ts +41 -0
- package/runtime/extract/tokenResolver.ts +17 -0
- package/runtime/rsc/constants.ts +3 -0
- package/runtime/rsc/dev.ts +31 -15
- package/runtime/rsc/getClassName.ts +10 -0
- package/runtime/rsc/globalSheet.ts +130 -0
- package/runtime/rsc/observer.ts +125 -15
- package/runtime/rsc/styleStore.ts +10 -19
- package/runtime/sheet/document.ts +28 -0
- package/runtime/sheet/global-prod.ts +3 -5
- package/runtime/sheet/global.ts +3 -5
- package/runtime/sheet/rule.ts +18 -12
- package/runtime/sheet/rules.ts +11 -3
- package/runtime/style/scope.ts +0 -24
- package/runtime/style/style.ts +181 -6
- package/runtime/types.ts +3 -3
- package/sheet/dev/dev_layer.ts +76 -17
- package/sheet/dev/dev_sort.ts +70 -18
- package/sheet/dev/index.ts +23 -3
- package/sheet/ordered.ts +225 -0
- package/sheet/ordering.ts +156 -0
- package/sheet/prod.ts +39 -12
- package/sheet/types.ts +7 -0
- package/sheet/utils/layer.ts +34 -0
- package/style/classname.ts +12 -6
- package/style/important.ts +21 -0
- package/style/index.ts +2 -0
- package/style/style.ts +17 -5
- package/style/theme.ts +0 -1
- package/style/token.ts +28 -21
- package/style/tokens.ts +20 -13
- package/style/transform.ts +5 -4
- package/style/types.ts +6 -4
- package/style/utils/expose.ts +4 -3
- package/style/value.ts +26 -11
- package/style/valueRef.ts +1 -1
- package/style/weight.ts +21 -0
- package/utils/global.ts +1 -3
- package/utils/symbol.ts +3 -0
- package/utils/trace.ts +1 -0
- package/dist/assert-BGdigdr5.js.map +0 -1
- package/dist/className-Cuh2JNxO.js +0 -263
- package/dist/className-Cuh2JNxO.js.map +0 -1
- package/dist/className-W2kDyeVl.js +0 -144
- package/dist/className-W2kDyeVl.js.map +0 -1
- package/dist/compiler-BXcGyZUP.mjs.map +0 -1
- package/dist/config-C1k9vUrM.js.map +0 -1
- package/dist/config-CLYMN3_p.js +0 -26
- package/dist/config-CLYMN3_p.js.map +0 -1
- package/dist/config-DcYrUB-M.js +0 -6
- package/dist/config-oI_yS50f.js +0 -1
- package/dist/css-CELBp6Gu.js +0 -58
- package/dist/css-CELBp6Gu.js.map +0 -1
- package/dist/css-CohHH2tn.js.map +0 -1
- package/dist/css-D_DL1yOz.js +0 -237
- package/dist/css-D_DL1yOz.js.map +0 -1
- package/dist/css-DfH4Gb1c.js +0 -805
- package/dist/css-DfH4Gb1c.js.map +0 -1
- package/dist/data-Ze8GNiJm.js +0 -483
- package/dist/data-Ze8GNiJm.js.map +0 -1
- package/dist/debug-BefbXMq1.js +0 -15
- package/dist/debug-BefbXMq1.js.map +0 -1
- package/dist/debug-DLmUG3Vh.js +0 -172
- package/dist/debug-DLmUG3Vh.js.map +0 -1
- package/dist/debug-OG2wSB5R.js +0 -15
- package/dist/debug-OG2wSB5R.js.map +0 -1
- package/dist/dev-4TqJORRn.js +0 -75
- package/dist/dev-4TqJORRn.js.map +0 -1
- package/dist/dev-C2u78xuv.js.map +0 -1
- package/dist/elementMarker-BKzZyg5V.js.map +0 -1
- package/dist/extract-B9j4TBkU.js +0 -2
- package/dist/extract-CzWJeQi8.js +0 -121
- package/dist/extract-CzWJeQi8.js.map +0 -1
- package/dist/getClassName-C6690_nr.js.map +0 -1
- package/dist/global-C7GsCW6Y.js +0 -14
- package/dist/global-C7GsCW6Y.js.map +0 -1
- package/dist/global-zaCE-g1C.js.map +0 -1
- package/dist/hash-Bycpk3MR.js +0 -160
- package/dist/hash-Bycpk3MR.js.map +0 -1
- package/dist/jsx-Berx-L-r.js +0 -39
- package/dist/jsx-Berx-L-r.js.map +0 -1
- package/dist/jsx-DsMajv_M.js +0 -38
- package/dist/jsx-DsMajv_M.js.map +0 -1
- package/dist/jsx_runtime-CMdEXGNZ.js +0 -13
- package/dist/jsx_runtime-DPWo5qvV.js.map +0 -1
- package/dist/layer-DiNeeTgG.js +0 -94
- package/dist/layer-DiNeeTgG.js.map +0 -1
- package/dist/loader-DCT1Q9yi.mjs.map +0 -1
- package/dist/misc-o8pviMUi.mjs.map +0 -1
- package/dist/namedTokens-BUa6raTb.js.map +0 -1
- package/dist/presets-BhXa232U.js +0 -108
- package/dist/presets-BhXa232U.js.map +0 -1
- package/dist/property-BzZSTVIh.js +0 -406
- package/dist/property-BzZSTVIh.js.map +0 -1
- package/dist/rules-Dz7Pu2K6.js.map +0 -1
- package/dist/runtime-B3jHW9B1.js +0 -32
- package/dist/runtime-B3jHW9B1.js.map +0 -1
- package/dist/shared-B_gJf5uj.cjs.map +0 -1
- package/dist/shared-uAzFeq0x.mjs.map +0 -1
- package/dist/sheet-DasbRnvy.js +0 -7
- package/dist/sheet-DasbRnvy.js.map +0 -1
- package/dist/style-B0F1sgRZ.js +0 -5
- package/dist/style-BkeAZl0n.js.map +0 -1
- package/dist/style-CYXTs1iu.js +0 -771
- package/dist/style-CYXTs1iu.js.map +0 -1
- package/dist/style-DUztHzBz.js.map +0 -1
- package/dist/styleStore-BGJ2ZYtK.js +0 -2009
- package/dist/styleStore-BGJ2ZYtK.js.map +0 -1
- package/dist/styleStore-DVDp-gI-.js +0 -55
- package/dist/styleStore-DVDp-gI-.js.map +0 -1
- package/dist/token-CA1j7suG.js +0 -273
- package/dist/token-CA1j7suG.js.map +0 -1
- package/dist/token-CKXUECuU.js +0 -76
- package/dist/token-CKXUECuU.js.map +0 -1
- package/dist/token-DTOyFLmp.js +0 -58
- package/dist/token-DTOyFLmp.js.map +0 -1
- package/dist/transform-BTJOg8Hg.js.map +0 -1
- package/dist/utils-BsbfH6cd.js.map +0 -1
- package/dist/utils-CpA-dSpY.mjs +0 -97
- package/dist/utils-CpA-dSpY.mjs.map +0 -1
- package/dist/utils-D4YWF2K0.js.map +0 -1
- package/dist/utils-R6QadAsY.js +0 -170
- package/dist/utils-R6QadAsY.js.map +0 -1
- package/dist/value-CJG6EWe8.js +0 -85
- package/dist/value-CJG6EWe8.js.map +0 -1
- package/dist/value-D-ZcRzLA.js +0 -42
- package/dist/value-D-ZcRzLA.js.map +0 -1
- package/dist/value-DBtSe-9B.js +0 -1000
- package/dist/value-DBtSe-9B.js.map +0 -1
- package/dist/valueRef-CsLVJwjA.js +0 -16
- package/dist/valueRef-CsLVJwjA.js.map +0 -1
- package/dist/webpack-Fb9xF5jS.mjs.map +0 -1
- package/dist/withTokens-LRidu3Vc.js +0 -95
- package/dist/withTokens-LRidu3Vc.js.map +0 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { type SelectorsRecord } from "../builder/index.js";
|
|
2
|
+
import type { ClassNameFn } from "../builder/classname/index.js";
|
|
3
|
+
import { PrioritySelectors } from "../selector/presets/index.js";
|
|
4
|
+
import type { Type } from "../utils/type.js";
|
|
5
|
+
import type { ClassNameTransform, StyleTransform } from "./transform.js";
|
|
6
|
+
import type { CSSProperties } from "./types.js";
|
|
7
|
+
export type StyleFnMeta = {
|
|
8
|
+
mode: 'StyleObject';
|
|
9
|
+
selectors: SelectorsRecord;
|
|
10
|
+
transform: StyleTransform | null;
|
|
11
|
+
} | {
|
|
12
|
+
mode: 'ClassName';
|
|
13
|
+
selectors: SelectorsRecord;
|
|
14
|
+
transform: ClassNameTransform;
|
|
15
|
+
};
|
|
16
|
+
export declare const style: import("../builder/types/fns.js").StyleSelfFn<CSSProperties, {
|
|
17
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
18
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
19
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
20
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
21
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
22
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
23
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
24
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
25
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
26
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
27
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
28
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
29
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
30
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
31
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
32
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
33
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
34
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
35
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
36
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
37
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
38
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
39
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
40
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
41
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
42
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
43
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
44
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
45
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
46
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
47
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
48
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
49
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
50
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
51
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
52
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
53
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
54
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
55
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
56
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
57
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
58
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
59
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
60
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
61
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
62
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
63
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
64
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
65
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
66
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
67
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
68
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
69
|
+
}> & {
|
|
70
|
+
(style?: import("./types.js").StyleObject<CSSProperties> | undefined): import("../builder/data/index.js").StyleData<CSSProperties> & import("../builder/types/fns.js").StyleSelectorFns<CSSProperties, {
|
|
71
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
72
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
73
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
74
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
75
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
76
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
77
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
78
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
79
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
80
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
81
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
82
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
83
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
84
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
85
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
86
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
87
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
88
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
89
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
90
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
91
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
92
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
93
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
94
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
95
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
96
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
97
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
98
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
99
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
100
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
101
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
102
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
103
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
104
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
105
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
106
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
107
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
108
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
109
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
110
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
111
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
112
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
113
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
114
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
115
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
116
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
117
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
118
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
119
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
120
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
121
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
122
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
123
|
+
}> & import("../utils/type.js").Collapse;
|
|
124
|
+
slot: import("../builder/types/fns.js").SlotSelfFn<CSSProperties, {
|
|
125
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
126
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
127
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
128
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
129
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
130
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
131
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
132
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
133
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
134
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
135
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
136
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
137
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
138
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
139
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
140
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
141
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
142
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
143
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
144
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
145
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
146
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
147
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
148
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
149
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
150
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
151
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
152
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
153
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
154
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
155
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
156
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
157
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
158
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
159
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
160
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
161
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
162
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
163
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
164
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
165
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
166
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
167
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
168
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
169
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
170
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
171
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
172
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
173
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
174
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
175
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
176
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
177
|
+
}>;
|
|
178
|
+
scope: import("../builder/index.js").ScopeSelfFn<{
|
|
179
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
180
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
181
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
182
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
183
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
184
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
185
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
186
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
187
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
188
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
189
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
190
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
191
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
192
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
193
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
194
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
195
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
196
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
197
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
198
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
199
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
200
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
201
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
202
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
203
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
204
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
205
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
206
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
207
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
208
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
209
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
210
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
211
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
212
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
213
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
214
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
215
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
216
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
217
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
218
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
219
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
220
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
221
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
222
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
223
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
224
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
225
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
226
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
227
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
228
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
229
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
230
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
231
|
+
}> & import("../builder/data/index.js").BuilderData<unknown, 4> & ((slot: import("../builder/data/index.js").SlotData<any>) => import("../builder/data/index.js").ScopeTargetData) & import("../builder/types/fns.js").ScopeSelectorFns<{
|
|
232
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
233
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
234
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
235
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
236
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
237
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
238
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
239
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
240
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
241
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
242
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
243
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
244
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
245
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
246
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
247
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
248
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
249
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
250
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
251
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
252
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
253
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
254
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
255
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
256
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
257
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
258
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
259
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
260
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
261
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
262
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
263
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
264
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
265
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
266
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
267
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
268
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
269
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
270
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
271
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
272
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
273
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
274
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
275
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
276
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
277
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
278
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
279
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
280
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
281
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
282
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
283
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
284
|
+
} & import("../utils/type.js").Collapse>;
|
|
285
|
+
weight: <const T>(value: T, weight: number) => import("./weight.js").StyleWeightValue<T>;
|
|
286
|
+
important: <const T>(value: T, native?: boolean) => import("./important.js").StyleImportantValue<T>;
|
|
287
|
+
raw: <T extends import("./types.js").StyleObject<CSSProperties>>(style: T) => T;
|
|
288
|
+
plain: <T extends import("./types.js").PlainStyleObject<CSSProperties>>(style: T) => T;
|
|
289
|
+
keyframes: <T extends import("./keyframes.js").StyleKeyframesObject<CSSProperties>>(frames: T) => import("./valueRef.js").AtRuleRef;
|
|
290
|
+
merge: <Target>(target: Target, ...styles: import("../builder/index.js").MergeRuleStyleData[]) => Target;
|
|
291
|
+
selector: {
|
|
292
|
+
(selector: import("../builder/selector_override_core.js").ManualSelectorInput): import("../builder/index.js").SelectorBuilder<CSSProperties, {
|
|
293
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
294
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
295
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
296
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
297
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
298
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
299
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
300
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
301
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
302
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
303
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
304
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
305
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
306
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
307
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
308
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
309
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
310
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
311
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
312
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
313
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
314
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
315
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
316
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
317
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
318
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
319
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
320
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
321
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
322
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
323
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
324
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
325
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
326
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
327
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
328
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
329
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
330
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
331
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
332
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
333
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
334
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
335
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
336
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
337
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
338
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
339
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
340
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
341
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
342
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
343
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
344
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
345
|
+
}>;
|
|
346
|
+
(selector: import("../builder/selector_override_core.js").ManualSelectorInput, style: import("../builder/index.js").SelectorOverrideStyleData<CSSProperties>): import("../builder/index.js").SelectorOverrideBuilder<CSSProperties, {
|
|
347
|
+
hover: import("../selector/index.js").Selector<":hover", string>;
|
|
348
|
+
active: import("../selector/index.js").Selector<":active", string>;
|
|
349
|
+
focus: import("../selector/index.js").Selector<":focus", string>;
|
|
350
|
+
focusVisible: import("../selector/index.js").Selector<":focus-visible", string>;
|
|
351
|
+
focusWithin: import("../selector/index.js").Selector<":focus-within", string>;
|
|
352
|
+
visited: import("../selector/index.js").Selector<":visited", string>;
|
|
353
|
+
link: import("../selector/index.js").Selector<":link", string>;
|
|
354
|
+
anyLink: import("../selector/index.js").Selector<":any-link", string>;
|
|
355
|
+
target: import("../selector/index.js").Selector<":target", string>;
|
|
356
|
+
disabled: import("../selector/index.js").Selector<":disabled", string>;
|
|
357
|
+
enabled: import("../selector/index.js").Selector<":enabled", string>;
|
|
358
|
+
checked: import("../selector/index.js").Selector<":checked", string>;
|
|
359
|
+
indeterminate: import("../selector/index.js").Selector<":indeterminate", string>;
|
|
360
|
+
invalid: import("../selector/index.js").Selector<":invalid", string>;
|
|
361
|
+
valid: import("../selector/index.js").Selector<":valid", string>;
|
|
362
|
+
required: import("../selector/index.js").Selector<":required", string>;
|
|
363
|
+
optional: import("../selector/index.js").Selector<":optional", string>;
|
|
364
|
+
readOnly: import("../selector/index.js").Selector<":read-only", string>;
|
|
365
|
+
readWrite: import("../selector/index.js").Selector<":read-write", string>;
|
|
366
|
+
inRange: import("../selector/index.js").Selector<":in-range", string>;
|
|
367
|
+
outOfRange: import("../selector/index.js").Selector<":out-of-range", string>;
|
|
368
|
+
default: import("../selector/index.js").Selector<":default", string>;
|
|
369
|
+
placeholderShown: import("../selector/index.js").Selector<":placeholder-shown", string>;
|
|
370
|
+
autofill: import("../selector/index.js").Selector<":autofill", string>;
|
|
371
|
+
empty: import("../selector/index.js").Selector<":empty", string>;
|
|
372
|
+
root: import("../selector/index.js").Selector<":root", string>;
|
|
373
|
+
firstChild: import("../selector/index.js").Selector<":first-child", string>;
|
|
374
|
+
lastChild: import("../selector/index.js").Selector<":last-child", string>;
|
|
375
|
+
onlyChild: import("../selector/index.js").Selector<":only-child", string>;
|
|
376
|
+
firstOfType: import("../selector/index.js").Selector<":first-of-type", string>;
|
|
377
|
+
lastOfType: import("../selector/index.js").Selector<":last-of-type", string>;
|
|
378
|
+
onlyOfType: import("../selector/index.js").Selector<":only-of-type", string>;
|
|
379
|
+
fullscreen: import("../selector/index.js").Selector<":fullscreen", string>;
|
|
380
|
+
modal: import("../selector/index.js").Selector<":modal", string>;
|
|
381
|
+
before: import("../selector/index.js").Selector<"::before", string>;
|
|
382
|
+
after: import("../selector/index.js").Selector<"::after", string>;
|
|
383
|
+
not: import("../selector/index.js").Selector<":not($$)", string>;
|
|
384
|
+
is: import("../selector/index.js").Selector<":is($$)", string>;
|
|
385
|
+
where: import("../selector/index.js").Selector<":where($$)", string>;
|
|
386
|
+
has: import("../selector/index.js").Selector<":has($$)", string>;
|
|
387
|
+
nthChild: import("../selector/index.js").Selector<":nth-child($)", string>;
|
|
388
|
+
nthLastChild: import("../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
389
|
+
nthOfType: import("../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
390
|
+
nthLastOfType: import("../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
391
|
+
lang: import("../selector/index.js").Selector<":lang($)", string>;
|
|
392
|
+
dir: import("../selector/index.js").Selector<":dir($)", string>;
|
|
393
|
+
attr: import("../selector/index.js").Selector<"$", string>;
|
|
394
|
+
select: import("../selector/index.js").Selector<"$$", string>;
|
|
395
|
+
merge: import("../selector/index.js").Selector<"...", string>;
|
|
396
|
+
media: import("../selector/index.js").Selector<"@media $$", string>;
|
|
397
|
+
container: import("../selector/index.js").Selector<"@container $$", string>;
|
|
398
|
+
supports: import("../selector/index.js").Selector<"@supports $$", string>;
|
|
399
|
+
}>;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
export type StyleFn<Style = any, Selectors extends SelectorsRecord = any> = ReturnType<typeof createStyleFn<Style, Selectors>>['style'];
|
|
403
|
+
export declare function createStyleFn<Style = CSSProperties, const Selectors extends SelectorsRecord = typeof PrioritySelectors>(args: {
|
|
404
|
+
style?: Type<Style>;
|
|
405
|
+
selectors: Selectors;
|
|
406
|
+
transform?: StyleTransform<Style> | null;
|
|
407
|
+
}): {
|
|
408
|
+
style: import("../builder/types/fns.js").StyleSelfFn<Style, Selectors> & {
|
|
409
|
+
(style?: import("./types.js").StyleObject<Style> | undefined): import("../builder/data/index.js").StyleData<Style> & import("../builder/types/fns.js").StyleSelectorFns<Style, Selectors> & import("../utils/type.js").Collapse;
|
|
410
|
+
slot: import("../builder/types/fns.js").SlotSelfFn<Style, Selectors>;
|
|
411
|
+
scope: import("../builder/index.js").ScopeSelfFn<Selectors> & import("../builder/data/index.js").BuilderData<unknown, 4> & ((slot: import("../builder/data/index.js").SlotData<any>) => import("../builder/data/index.js").ScopeTargetData) & import("../builder/types/fns.js").ScopeSelectorFns<Selectors & import("../utils/type.js").Collapse>;
|
|
412
|
+
weight: <const T>(value: T, weight: number) => import("./weight.js").StyleWeightValue<T>;
|
|
413
|
+
important: <const T>(value: T, native?: boolean) => import("./important.js").StyleImportantValue<T>;
|
|
414
|
+
raw: <T extends import("./types.js").StyleObject<Style>>(style: T) => T;
|
|
415
|
+
plain: <T extends import("./types.js").PlainStyleObject<Style>>(style: T) => T;
|
|
416
|
+
keyframes: <T extends import("./keyframes.js").StyleKeyframesObject<Style>>(frames: T) => import("./valueRef.js").AtRuleRef;
|
|
417
|
+
merge: <Target>(target: Target, ...styles: import("../builder/index.js").MergeRuleStyleData[]) => Target;
|
|
418
|
+
selector: {
|
|
419
|
+
(selector: import("../builder/selector_override_core.js").ManualSelectorInput): import("../builder/index.js").SelectorBuilder<Style, Selectors>;
|
|
420
|
+
(selector: import("../builder/selector_override_core.js").ManualSelectorInput, style: import("../builder/index.js").SelectorOverrideStyleData<Style>): import("../builder/index.js").SelectorOverrideBuilder<Style, Selectors>;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
export type StyleFnWithMeta = StyleFn | ClassNameFn<any, any>;
|
|
425
|
+
export declare function assignStyleFnMeta<T extends object>(styleFn: T, meta: StyleFnMeta): T;
|
|
426
|
+
export declare function getStyleFnMeta(styleFn: StyleFnWithMeta): StyleFnMeta;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ThemeData } from "../builder/data/data.js";
|
|
2
|
+
import type { StyleTokenOverride } from "./token.js";
|
|
3
|
+
export type TokenTheme = ThemeData;
|
|
4
|
+
export declare function resetStyleThemeIdCounter(): void;
|
|
5
|
+
export declare function createTheme(tokens: readonly StyleTokenOverride[]): TokenTheme;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DebugData } from "../builder/data/debug.js";
|
|
2
|
+
export { getStyleTokenId, getStyleTokenName, getStyleTokenVarName, isStyleTokenData, isStyleTokenOverrideData, } from "../builder/token/data.js";
|
|
3
|
+
export { TOKEN_ID, TOKEN_NAME, TOKEN_OVERRIDE, TOKEN_VAR_NAME } from "../builder/token/symbols.js";
|
|
4
|
+
import { TOKEN_ID, TOKEN_NAME, TOKEN_OVERRIDE, TOKEN_VAR_NAME } from "../builder/token/symbols.js";
|
|
5
|
+
export declare const TOKEN_DEBUG: unique symbol;
|
|
6
|
+
export type StyleTokenData<T = unknown> = {
|
|
7
|
+
[TOKEN_ID]: string;
|
|
8
|
+
[TOKEN_NAME]?: string | null;
|
|
9
|
+
[TOKEN_VAR_NAME]?: string | null;
|
|
10
|
+
[TOKEN_OVERRIDE]?: false;
|
|
11
|
+
value: T;
|
|
12
|
+
ref: StyleTokenData<T> | null;
|
|
13
|
+
};
|
|
14
|
+
export type StyleTokenOverride<T = unknown> = {
|
|
15
|
+
[TOKEN_ID]: string;
|
|
16
|
+
[TOKEN_OVERRIDE]: true;
|
|
17
|
+
[TOKEN_DEBUG]?: DebugData | null;
|
|
18
|
+
[TOKEN_NAME]?: string | null;
|
|
19
|
+
[TOKEN_VAR_NAME]?: string | null;
|
|
20
|
+
value: T;
|
|
21
|
+
ref: StyleTokenData<T> | null;
|
|
22
|
+
};
|
|
23
|
+
export type StyleToken<T = unknown> = StyleTokenData<T> & {
|
|
24
|
+
(value: T | StyleTokenData<T>, debug?: DebugData): StyleTokenOverride<T>;
|
|
25
|
+
};
|
|
26
|
+
export declare function resetStyleTokenIdCounter(): void;
|
|
27
|
+
export declare function createStyleToken<T>(value: T | StyleToken<T>, stableId?: string, debugName?: string | null): StyleToken<T>;
|
|
28
|
+
export declare function createStyleTokenOverride<T>(token: StyleTokenData<T>, value: T | StyleTokenData<T>, debug?: DebugData | null): StyleTokenOverride<T>;
|
|
29
|
+
export declare function getStyleTokenOverrideDebug(token: StyleTokenOverride): DebugData | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleToken } from "./token.js";
|
|
2
|
+
import type { InferValue, ValueBase } from "./value.js";
|
|
3
|
+
export type TokenTuple<T extends readonly ValueBase[]> = {
|
|
4
|
+
[P in T[number]]: StyleToken<InferValue<P>>;
|
|
5
|
+
};
|
|
6
|
+
export type TokenRecord<T extends object> = {
|
|
7
|
+
[P in keyof T]: T[P] extends StyleToken<infer V> ? StyleToken<V> : T[P] extends readonly unknown[] ? StyleToken<T[P]> : T[P] extends object ? TokenRecord<T[P]> : T[P] extends ValueBase ? StyleToken<InferValue<T[P]>> : StyleToken<T[P]>;
|
|
8
|
+
};
|
|
9
|
+
export declare function createTokens<const T extends readonly ValueBase[]>(values: T): TokenTuple<T>;
|
|
10
|
+
export declare function createTokens<T extends object>(values: T): TokenRecord<T>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CSSPropertiesRaw } from "../atomic/utils/types.js";
|
|
2
|
+
import type { StyleObject, StyleValue } from "./types.js";
|
|
3
|
+
declare const CLASS_NAME_VALUE: unique symbol;
|
|
4
|
+
export type ClassNameValue<Value = unknown> = {
|
|
5
|
+
readonly [CLASS_NAME_VALUE]: true;
|
|
6
|
+
readonly value: Value;
|
|
7
|
+
readonly className: string;
|
|
8
|
+
};
|
|
9
|
+
export type TransformStyleObject<Style = unknown> = {
|
|
10
|
+
[P in keyof Style]: StyleValue<Style[P] | ClassNameValue<Style[P]>>;
|
|
11
|
+
};
|
|
12
|
+
export type StyleTransform<Style = unknown> = {
|
|
13
|
+
transform(style: StyleObject<Style>): TransformStyleObject<CSSPropertiesRaw>;
|
|
14
|
+
};
|
|
15
|
+
export type ClassNameTransform<ClassName extends string = string> = {
|
|
16
|
+
transform(className: ClassName): TransformStyleObject<CSSPropertiesRaw>;
|
|
17
|
+
};
|
|
18
|
+
export declare function classNameValue<const Value>(value: Value, className: string): ClassNameValue<Value>;
|
|
19
|
+
export declare function isClassNameValue(value: unknown): value is ClassNameValue;
|
|
20
|
+
export declare function styleTransform<Style>(options: StyleTransform<Style>): StyleTransform<Style>;
|
|
21
|
+
export declare function classNameTransform<ClassName extends string>(options: ClassNameTransform<ClassName>): ClassNameTransform<ClassName>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CSSProperties } from "../atomic/utils/types.js";
|
|
2
|
+
import type { StyleImportantValue } from "./important.js";
|
|
3
|
+
import type { StyleTokenData } from "./token.js";
|
|
4
|
+
import type { AtRuleRef } from "./valueRef.js";
|
|
5
|
+
import type { StyleWeightValue } from "./weight.js";
|
|
6
|
+
export type { CSSProperties };
|
|
7
|
+
type StyleTokenize<T> = Exclude<T extends unknown ? StyleTokenData<T> : never, StyleTokenData<undefined>>;
|
|
8
|
+
type Important<T> = StyleImportantValue<Exclude<T, null | undefined>>;
|
|
9
|
+
type Weight<T> = StyleWeightValue<Exclude<T, null | undefined>>;
|
|
10
|
+
type Value<T> = T | Weight<T> | Important<T>;
|
|
11
|
+
type PlainValue<T> = T | Weight<T> | Important<T>;
|
|
12
|
+
export type StyleValue<T> = Value<T | StyleTokenize<T> | AtRuleRef>;
|
|
13
|
+
export type AtRuleStyleValue<T> = T | StyleTokenize<T>;
|
|
14
|
+
export type StyleObject<T = unknown> = {
|
|
15
|
+
[P in keyof T]: StyleValue<T[P]>;
|
|
16
|
+
};
|
|
17
|
+
export type AtRuleStyleObject<T = unknown> = {
|
|
18
|
+
[P in keyof T]: AtRuleStyleValue<T[P]>;
|
|
19
|
+
};
|
|
20
|
+
export type PlainStyleObject<T = unknown> = {
|
|
21
|
+
[P in keyof T]: PlainValue<T[P]>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnyBuilderData, SelectorData, SlotData } from "../../builder/data/index.js";
|
|
2
|
+
import { type StyleTokenData } from "../token.js";
|
|
3
|
+
type ExposedStyleItem<T> = T extends StyleTokenData ? T : T extends SlotData ? T : T extends SelectorData ? T : T extends AnyBuilderData ? never : T extends readonly unknown[] ? never : T extends object ? ExposedStyle<T> : never;
|
|
4
|
+
export type ExposedStyle<T> = {
|
|
5
|
+
[K in keyof T as ExposedStyleItem<T[K]> extends never ? never : K]: ExposedStyleItem<T[K]>;
|
|
6
|
+
};
|
|
7
|
+
export declare function exposeStyle<T extends object>(styles: T): ExposedStyle<T>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./expose.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DebugData } from "../builder/data/debug.js";
|
|
2
|
+
import { type StyleToken, type StyleTokenOverride } from "./token.js";
|
|
3
|
+
export type ValueBase = string | number;
|
|
4
|
+
export type InferValue<T extends ValueBase> = T extends string ? string : T extends number ? number : ValueBase;
|
|
5
|
+
export type StyleValueFn<T extends ValueBase, Value extends ValueBase> = {
|
|
6
|
+
(value: T): StyleToken<Value>;
|
|
7
|
+
(value: T, provide: Value | StyleToken<Value>): StyleTokenOverride<Value>;
|
|
8
|
+
(value: T, provide: Value | StyleToken<Value>, debug: DebugData): StyleTokenOverride<Value>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createToken<T>(value: T | StyleToken<T>): StyleToken<T>;
|
|
11
|
+
export declare function createValues<const T extends ValueBase>(values: readonly T[]): StyleValueFn<T, InferValue<T>>;
|
|
12
|
+
export declare function createValues<const T extends ValueBase>(type: NumberConstructor, values: readonly T[]): StyleValueFn<T, number>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StyleTokenData } from "./token.js";
|
|
2
|
+
export declare const AT_RULE_REF: unique symbol;
|
|
3
|
+
export type AtRuleRefData = {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
css: string | null;
|
|
7
|
+
tokens?: readonly StyleTokenData[];
|
|
8
|
+
};
|
|
9
|
+
export type AtRuleRef = AtRuleRefData & {
|
|
10
|
+
[AT_RULE_REF]: true;
|
|
11
|
+
};
|
|
12
|
+
export declare function createAtRuleRef(data: AtRuleRefData): AtRuleRef;
|
|
13
|
+
export declare function isAtRuleRef(value: unknown): value is AtRuleRef;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const STYLE_WEIGHT: unique symbol;
|
|
2
|
+
export type StyleWeightValue<T = unknown> = {
|
|
3
|
+
readonly [STYLE_WEIGHT]: true;
|
|
4
|
+
readonly value: T;
|
|
5
|
+
readonly weight: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function weightValue<T>(value: T, weight: number): StyleWeightValue<T>;
|
|
8
|
+
export declare function isStyleWeightValue(value: unknown): value is StyleWeightValue;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getGlobalData<T>(key: string): T | undefined;
|
|
2
|
+
export declare function globalData<T>(key: string, data: () => T): NonNullable<T>;
|
|
3
|
+
export declare function setGlobalData<T>(key: string, data: T): void;
|
|
4
|
+
export declare function clearGlobalData(key: string): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type StableId = {
|
|
2
|
+
name: string | null;
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export type IdCounter = {
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function createIdCounter(name: string): {
|
|
9
|
+
value: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function resetIdCounter(idCounter: IdCounter): void;
|
|
12
|
+
export declare function getId(idCounter: IdCounter, stableId: StableId | null): StableId;
|