@fluentic/style 0.1.0-beta.10 → 0.1.0-beta.12
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 +12 -0
- package/compiler/compiler/compiler.ts +8 -4
- package/compiler/utils/file_resolver.ts +2 -1
- package/dist/compiler/index.mjs +1 -1
- package/dist/{compiler-C3CEGGtI.mjs → compiler-mCfMhtX4.mjs} +2 -3
- package/dist/{compiler-C3CEGGtI.mjs.map → compiler-mCfMhtX4.mjs.map} +1 -1
- package/dist/{loader-_-VjzlrX.mjs → loader-DUS2i9Zb.mjs} +3 -3
- package/dist/loader-DUS2i9Zb.mjs.map +1 -0
- package/dist/{misc-B76PUnWe.mjs → misc-vGtt_SX7.mjs} +2 -2
- package/dist/{misc-B76PUnWe.mjs.map → misc-vGtt_SX7.mjs.map} +1 -1
- package/dist/plugin/farm/index.mjs +3 -3
- package/dist/plugin/nextjs/index.mjs +34 -18
- 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/{registry-w8ET5R7v.mjs → registry-BJqMbdMu.mjs} +2 -2
- package/dist/{registry-w8ET5R7v.mjs.map → registry-BJqMbdMu.mjs.map} +1 -1
- package/dist/{shared-PK52rW6T.cjs → shared-BRUPuZdH.cjs} +2 -3
- package/dist/{shared-PK52rW6T.cjs.map → shared-BRUPuZdH.cjs.map} +1 -1
- package/dist/{shared-C_cYxNzz.mjs → shared-DDzZd0tM.mjs} +4 -4
- package/dist/{shared-C_cYxNzz.mjs.map → shared-DDzZd0tM.mjs.map} +1 -1
- package/dist/{sidecar-BhvmXYsD.mjs → sidecar-BTT0veLU.mjs} +3 -3
- package/dist/{sidecar-BhvmXYsD.mjs.map → sidecar-BTT0veLU.mjs.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 +22 -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 +23 -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 +29 -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-DND33M6y.mjs → utils-D4UympcZ.mjs} +3 -3
- package/dist/{utils-DND33M6y.mjs.map → utils-D4UympcZ.mjs.map} +1 -1
- package/dist/{utils-NdisireF.mjs → utils-D75HPJWv.mjs} +4 -4
- package/dist/{utils-NdisireF.mjs.map → utils-D75HPJWv.mjs.map} +1 -1
- package/dist/{webpack-D7QO0bKN.mjs → webpack-_BpgAUEy.mjs} +5 -5
- package/dist/{webpack-D7QO0bKN.mjs.map → webpack-_BpgAUEy.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 +48 -28
- package/dist/loader-_-VjzlrX.mjs.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StyleData } from "../data/index.js";
|
|
2
|
+
import type { ClassNameSelectorFns, ClassNameSelfFn } from "./fns.js";
|
|
3
|
+
export type WeightedClassName<ClassName extends string = string> = {
|
|
4
|
+
readonly className: ClassName;
|
|
5
|
+
readonly weight: number;
|
|
6
|
+
};
|
|
7
|
+
export type ImportantClassName<ClassName extends string = string> = {
|
|
8
|
+
readonly className: ClassName;
|
|
9
|
+
readonly important: true;
|
|
10
|
+
};
|
|
11
|
+
export type ClassNameItem<ClassName extends string = string> = ClassName | false | null | undefined | WeightedClassName<ClassName> | ImportantClassName<ClassName> | readonly ClassNameItem<ClassName>[];
|
|
12
|
+
export type ClassNameMergeData<ClassName extends string = string> = ClassNameBuilder<ClassName, any> | StyleData | readonly (ClassNameBuilder<ClassName, any> | StyleData)[];
|
|
13
|
+
export type ClassNameBuilderFns<ClassName extends string, Selectors> = ClassNameSelectorFns<ClassName, Selectors> & {};
|
|
14
|
+
export type ClassNameBuilder<ClassName extends string, Selectors> = StyleData & ClassNameBuilderFns<ClassName, Selectors>;
|
|
15
|
+
export type ClassNameFn<ClassName extends string, Selectors> = ClassNameSelfFn<ClassName, Selectors> & {
|
|
16
|
+
weight(className: ClassName, weight: number): WeightedClassName<ClassName>;
|
|
17
|
+
important(className: ClassName): ImportantClassName<ClassName>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const BUILDER_TYPE: unique symbol;
|
|
2
|
+
export declare const BUILDER_STATE: unique symbol;
|
|
3
|
+
export declare const BUILDER_CALLSITE: unique symbol;
|
|
4
|
+
export declare const BUILDER_SLOT_ID: unique symbol;
|
|
5
|
+
export declare const BUILDER_SCOPE_ID: unique symbol;
|
|
6
|
+
export declare const BUILDER_SCOPE: unique symbol;
|
|
7
|
+
export declare const BUILDER_SELECTOR: unique symbol;
|
|
8
|
+
export declare const BUILDER_SHEET_OPTIONS: unique symbol;
|
|
9
|
+
export declare const BUILDER_TYPE_STYLE = 1;
|
|
10
|
+
export declare const BUILDER_TYPE_SLOT = 2;
|
|
11
|
+
export declare const BUILDER_TYPE_SLOT_OVERRIDE = 3;
|
|
12
|
+
export declare const BUILDER_TYPE_SCOPE = 4;
|
|
13
|
+
export declare const BUILDER_TYPE_SCOPE_TARGET = 5;
|
|
14
|
+
export declare const BUILDER_TYPE_THEME = 6;
|
|
15
|
+
export declare const BUILDER_TYPE_SELECTOR = 7;
|
|
16
|
+
export declare const BUILDER_TYPE_SELECTOR_OVERRIDE = 8;
|
|
17
|
+
export declare const BUILDER_TYPE_SHEET = 9;
|
|
18
|
+
export declare const ITEM_RUNTIME_DEV = -1;
|
|
19
|
+
export declare const ITEM_RUNTIME_DEV_PLUGIN = -2;
|
|
20
|
+
export declare const ITEM_RUNTIME_PROD = -3;
|
|
21
|
+
export declare const ITEM_RUNTIME_PROD_PLUGIN = -4;
|
|
22
|
+
export declare const ITEM_VALUE_TYPE_VARIABLE = 1;
|
|
23
|
+
export declare const ITEM_VALUE_TYPE_STYLE_DATA = 2;
|
|
24
|
+
export declare const ITEM_VALUE_NUMBER_PX = 1;
|
|
25
|
+
export declare const ITEM_VALUE_TYPE_AT_RULE_REF = 3;
|
|
26
|
+
export declare const SHEET_SELECTOR_ANCHOR = "\0sheet";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import { BUILDER_TYPE_SCOPE } from "./const.js";
|
|
3
|
+
import type { BuilderCallsite, BuilderData, CreateSheetOptions, ScopeData, ScopeTargetData, SelectorData, SelectorOverrideData, SheetData, SlotData, SlotOverrideData, StyleData, ThemeData } from "./data.js";
|
|
4
|
+
import type { ItemSelector } from "./state.js";
|
|
5
|
+
export declare function createStyleData<Style>(callsite: BuilderCallsite | null): StyleData<Style>;
|
|
6
|
+
export declare function createSheetData<Style>(callsite: BuilderCallsite | null, options?: CreateSheetOptions): SheetData<Style>;
|
|
7
|
+
export declare function createSlotData<Style>(callsite: BuilderCallsite | null, slotId: string): SlotData<Style>;
|
|
8
|
+
export declare function createSlotOverrideData<Style>(callsite: BuilderCallsite | null, slotId: string): SlotOverrideData<Style>;
|
|
9
|
+
export declare function createSelectorOverrideData<Style>(callsite: BuilderCallsite | null, selectors: readonly ItemSelector[]): SelectorOverrideData<Style>;
|
|
10
|
+
export declare function createSelectorData<Style>(callsite: BuilderCallsite | null, selectors: readonly ItemSelector[]): SelectorData<Style>;
|
|
11
|
+
export declare function createScopeData(callsite: BuilderCallsite | null): BuilderData<unknown, typeof BUILDER_TYPE_SCOPE>;
|
|
12
|
+
export declare function createScopeTargetData(scope: ScopeData, slot: SlotData<any>): ScopeTargetData;
|
|
13
|
+
export declare function createThemeData(callsite: BuilderCallsite | null, id: string, className: string, tokens: readonly StyleTokenOverride[]): ThemeData;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import type { TraceCallsite } from "../../utils/trace.js";
|
|
3
|
+
import type { BUILDER_CALLSITE, BUILDER_SCOPE, BUILDER_SCOPE_ID, BUILDER_SELECTOR, BUILDER_SHEET_OPTIONS, BUILDER_SLOT_ID, BUILDER_STATE, BUILDER_TYPE, BUILDER_TYPE_SCOPE, BUILDER_TYPE_SCOPE_TARGET, BUILDER_TYPE_SELECTOR, BUILDER_TYPE_SELECTOR_OVERRIDE, BUILDER_TYPE_SHEET, BUILDER_TYPE_SLOT, BUILDER_TYPE_SLOT_OVERRIDE, BUILDER_TYPE_STYLE, BUILDER_TYPE_THEME } from "./const.js";
|
|
4
|
+
import type { BuilderState, ItemSelector } from "./state.js";
|
|
5
|
+
export type BuilderCallsite = TraceCallsite;
|
|
6
|
+
export type BuilderData<Style = unknown, Type = unknown> = {
|
|
7
|
+
[BUILDER_TYPE]: Type;
|
|
8
|
+
[BUILDER_STATE]: BuilderState<Style>;
|
|
9
|
+
[BUILDER_CALLSITE]: BuilderCallsite | null;
|
|
10
|
+
};
|
|
11
|
+
export type AnyBuilderData<Style = unknown> = StyleData<Style> | SlotData<Style> | SlotOverrideData<Style> | SelectorData<Style> | SelectorOverrideData<Style> | SheetData<Style> | ScopeData | ScopeTargetData | ThemeData;
|
|
12
|
+
export type StyleData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_STYLE> & {};
|
|
13
|
+
export type SlotData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_SLOT> & {
|
|
14
|
+
[BUILDER_SLOT_ID]: string;
|
|
15
|
+
};
|
|
16
|
+
export type SlotOverrideData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_SLOT_OVERRIDE> & {
|
|
17
|
+
[BUILDER_SLOT_ID]: string;
|
|
18
|
+
};
|
|
19
|
+
export type SelectorData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_SELECTOR> & {
|
|
20
|
+
[BUILDER_SELECTOR]: readonly ItemSelector[];
|
|
21
|
+
};
|
|
22
|
+
export type SelectorOverrideData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_SELECTOR_OVERRIDE> & {
|
|
23
|
+
[BUILDER_SELECTOR]: readonly ItemSelector[];
|
|
24
|
+
};
|
|
25
|
+
export type SheetData<Style = unknown> = BuilderData<Style, typeof BUILDER_TYPE_SHEET> & {
|
|
26
|
+
[BUILDER_SHEET_OPTIONS]: CreateSheetOptions;
|
|
27
|
+
};
|
|
28
|
+
export type CreateSheetOptions = {
|
|
29
|
+
layer?: boolean;
|
|
30
|
+
weight?: number;
|
|
31
|
+
};
|
|
32
|
+
export type ScopeData = BuilderData<unknown, typeof BUILDER_TYPE_SCOPE> & {
|
|
33
|
+
(slot: SlotData<any>): ScopeTargetData;
|
|
34
|
+
};
|
|
35
|
+
export type ScopeTargetData = {
|
|
36
|
+
[BUILDER_TYPE]: typeof BUILDER_TYPE_SCOPE_TARGET;
|
|
37
|
+
[BUILDER_SCOPE]: ScopeData;
|
|
38
|
+
[BUILDER_SCOPE_ID]: string;
|
|
39
|
+
};
|
|
40
|
+
export type ThemeData = BuilderData<unknown, typeof BUILDER_TYPE_THEME> & {
|
|
41
|
+
id: string;
|
|
42
|
+
className: string;
|
|
43
|
+
tokens: readonly StyleTokenOverride[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type TraceCallsite } from "../../utils/trace.js";
|
|
2
|
+
export declare const LOC_LINE = 0;
|
|
3
|
+
export declare const LOC_COL = 1;
|
|
4
|
+
export declare const TRACE_STYLE = 0;
|
|
5
|
+
export declare const TRACE_VALUE = 1;
|
|
6
|
+
export declare const LABEL_SHORT = 0;
|
|
7
|
+
export declare const LABEL_LONG = 1;
|
|
8
|
+
export declare const LABEL_FILE = 2;
|
|
9
|
+
export type DebugLoc = [
|
|
10
|
+
line: number,
|
|
11
|
+
column: number,
|
|
12
|
+
trace?: number,
|
|
13
|
+
sourceUrl?: string,
|
|
14
|
+
sourceContent?: string
|
|
15
|
+
];
|
|
16
|
+
type DebugLabel = [
|
|
17
|
+
short: string,
|
|
18
|
+
long: string,
|
|
19
|
+
file: string
|
|
20
|
+
];
|
|
21
|
+
export type DebugData = {
|
|
22
|
+
$$debug: true;
|
|
23
|
+
loc: DebugLoc;
|
|
24
|
+
label: DebugLabel;
|
|
25
|
+
fields?: Record<string, DebugLoc | Record<number, DebugLoc>>;
|
|
26
|
+
classNames?: Record<string, DebugLoc>;
|
|
27
|
+
vars?: Record<string, string>;
|
|
28
|
+
sourceUrl: string;
|
|
29
|
+
code?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function isDebugData(value: unknown): value is DebugData;
|
|
32
|
+
export declare function getDebugCallsiteId(debug: DebugData): string | null;
|
|
33
|
+
export declare function getTraceCallsiteId(callsite: TraceCallsite): string;
|
|
34
|
+
export declare function getDebugCallsite(debug: DebugData): TraceCallsite;
|
|
35
|
+
export declare function getDebugFieldCallsite(debug: DebugData | null, field: string): TraceCallsite | null;
|
|
36
|
+
export declare function getDebugFieldVarName(debug: DebugData | null, field: string): string | null;
|
|
37
|
+
export declare function getDebugFieldLoc(debug: DebugData | null, field: string): DebugLoc | null;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StyleValue } from "../../style/types.js";
|
|
2
|
+
import { type ScopeData, type ScopeTargetData, type SelectorData, type SelectorOverrideData, type SheetData, type SlotData, type SlotOverrideData, type StyleData, type ThemeData } from "./data.js";
|
|
3
|
+
export declare function getSlotId(data: SlotData | SlotOverrideData): string;
|
|
4
|
+
export declare function getScopeTargetSlotId(data: ScopeTargetData): string;
|
|
5
|
+
export declare function getScopeTargetScope(data: ScopeTargetData): ScopeData;
|
|
6
|
+
export declare function getSelectorSelectors(data: SelectorData | SelectorOverrideData): readonly import("./state.js").ItemSelector[];
|
|
7
|
+
export declare function isStyleValue<T>(value: unknown): value is StyleValue<T>;
|
|
8
|
+
export declare function isStyleData<Style>(value: unknown): value is StyleData<Style>;
|
|
9
|
+
export declare function isSlotData<Style>(value: unknown): value is SlotData<Style>;
|
|
10
|
+
export declare function isSlotOverrideData<Style>(value: unknown): value is SlotOverrideData<Style>;
|
|
11
|
+
export declare function isSelectorData<Style>(value: unknown): value is SelectorData<Style>;
|
|
12
|
+
export declare function isSelectorOverrideData<Style>(value: unknown): value is SelectorOverrideData<Style>;
|
|
13
|
+
export declare function isSheetData<Style>(value: unknown): value is SheetData<Style>;
|
|
14
|
+
export declare function isScopeData(value: unknown): value is ScopeData;
|
|
15
|
+
export declare function isScopeTargetData(value: unknown): value is ScopeTargetData;
|
|
16
|
+
export declare function isThemeData(value: unknown): value is ThemeData;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type StyleTokenOverride } from "../../../style/token.js";
|
|
2
|
+
import type { BuilderCallsite, ScopeData, SlotOverrideData } from "../data.js";
|
|
3
|
+
import { type DebugData } from "../debug.js";
|
|
4
|
+
import type { ItemSelector } from "../state.js";
|
|
5
|
+
export type ScopeItem = SlotOverrideData<any> | ScopeData | StyleTokenOverride | false | null | undefined;
|
|
6
|
+
export type ScopeItems = ScopeItem | ScopeItem[];
|
|
7
|
+
export declare function mergeScopeData(scope: ScopeData, callsite: BuilderCallsite | null, items: ScopeItems | null, debug: DebugData | null, parentSelector: ItemSelector | null, scopeAtRule: ItemSelector | null): ScopeData;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StyleObject } from "../../../style/types.js";
|
|
2
|
+
import type { BuilderCallsite, BuilderData, StyleData } from "../data.js";
|
|
3
|
+
import { type DebugData } from "../debug.js";
|
|
4
|
+
import type { BuilderType, ItemSelector } from "../state.js";
|
|
5
|
+
export type CreateData<Data extends BuilderData> = (callsite: BuilderCallsite | null, data: Data) => Data;
|
|
6
|
+
export declare function mergeBuilderData<Data extends BuilderData>(create: CreateData<Data>, callsite: BuilderCallsite | null, source: Data, style: StyleObject | StyleData | null, debug: DebugData | null, selector: ItemSelector | null, atRule: ItemSelector[] | null, type: BuilderType): Data;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BuilderData } from "../data.js";
|
|
2
|
+
import type { DebugData } from "../debug.js";
|
|
3
|
+
import type { ItemRuntimeType, StateItem, StateLookup } from "../state.js";
|
|
4
|
+
export declare function cloneData<Data extends BuilderData, Source extends BuilderData>(data: Data, source: Source, debug: DebugData | null, merge?: boolean): [runtimeType: ItemRuntimeType, data: Data, items: StateItem[], lookup: StateLookup];
|
|
5
|
+
export declare function logInvalidData(message: string, data: object): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SELECTOR_BASE = "";
|
|
2
|
+
export declare const SELECTOR_ARG = "$";
|
|
3
|
+
export declare const SELECTOR_ARGS = "$$";
|
|
4
|
+
export declare const SELECTOR_MERGE = "...";
|
|
5
|
+
export declare const SELECTOR_AT_RULE = "@";
|
|
6
|
+
export declare const SELECTOR_MEDIA = "@media";
|
|
7
|
+
export declare const SELECTOR_CONTAINER = "@container";
|
|
8
|
+
export declare function normalizeSelectorArg(arg: string): string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { StyleTokenData, StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import type { AtRuleRefData } from "../../style/valueRef.js";
|
|
3
|
+
import type { UniqueSymbol } from "../../utils/type.js";
|
|
4
|
+
import type { BUILDER_TYPE_SCOPE, BUILDER_TYPE_SELECTOR, BUILDER_TYPE_SELECTOR_OVERRIDE, BUILDER_TYPE_SHEET, BUILDER_TYPE_SLOT, BUILDER_TYPE_SLOT_OVERRIDE, BUILDER_TYPE_STYLE, BUILDER_TYPE_THEME, ITEM_RUNTIME_DEV, ITEM_RUNTIME_DEV_PLUGIN, ITEM_RUNTIME_PROD, ITEM_RUNTIME_PROD_PLUGIN, ITEM_VALUE_NUMBER_PX, ITEM_VALUE_TYPE_AT_RULE_REF, ITEM_VALUE_TYPE_STYLE_DATA, ITEM_VALUE_TYPE_VARIABLE } from "./const.js";
|
|
5
|
+
import type { BuilderCallsite } from "./data.js";
|
|
6
|
+
import type { DebugData } from "./debug.js";
|
|
7
|
+
export type BuilderType = typeof BUILDER_TYPE_STYLE | typeof BUILDER_TYPE_SLOT | typeof BUILDER_TYPE_SLOT_OVERRIDE | typeof BUILDER_TYPE_SCOPE | typeof BUILDER_TYPE_SELECTOR | typeof BUILDER_TYPE_SELECTOR_OVERRIDE | typeof BUILDER_TYPE_SHEET | typeof BUILDER_TYPE_THEME;
|
|
8
|
+
export type ExtractedItemValueMode = typeof ITEM_VALUE_NUMBER_PX;
|
|
9
|
+
export type ItemRuntimeType = typeof ITEM_RUNTIME_DEV | typeof ITEM_RUNTIME_DEV_PLUGIN | typeof ITEM_RUNTIME_PROD | typeof ITEM_RUNTIME_PROD_PLUGIN;
|
|
10
|
+
export type ExtractedItemValue = [type: typeof ITEM_VALUE_TYPE_VARIABLE, variable: string, value: unknown, valueMode?: ExtractedItemValueMode] | [type: typeof ITEM_VALUE_TYPE_STYLE_DATA, data: ExtractedStyleItem[]] | [type: typeof ITEM_VALUE_TYPE_AT_RULE_REF, ref: AtRuleRefData];
|
|
11
|
+
export type ExtracteItemData = [
|
|
12
|
+
dedupe: string,
|
|
13
|
+
className: string,
|
|
14
|
+
value?: ExtractedItemValue
|
|
15
|
+
];
|
|
16
|
+
export type ExtractedStyleItem = ExtracteItemData | [
|
|
17
|
+
type: typeof BUILDER_TYPE_STYLE,
|
|
18
|
+
...ExtracteItemData
|
|
19
|
+
];
|
|
20
|
+
export type ExtractedSheetItem = ExtracteItemData | [
|
|
21
|
+
type: typeof BUILDER_TYPE_SHEET,
|
|
22
|
+
...ExtracteItemData
|
|
23
|
+
];
|
|
24
|
+
export type ExtractedSlotItem = ExtracteItemData | [
|
|
25
|
+
type: typeof BUILDER_TYPE_SLOT,
|
|
26
|
+
slotId: string,
|
|
27
|
+
...ExtracteItemData
|
|
28
|
+
];
|
|
29
|
+
export type ExtractedSlotOverrideItem = ExtracteItemData | [
|
|
30
|
+
type: typeof BUILDER_TYPE_SLOT_OVERRIDE,
|
|
31
|
+
slotId: string,
|
|
32
|
+
...ExtracteItemData
|
|
33
|
+
];
|
|
34
|
+
export type ExtractedScopeItem = [
|
|
35
|
+
type: typeof BUILDER_TYPE_SCOPE,
|
|
36
|
+
slotId: string,
|
|
37
|
+
dedupe: string,
|
|
38
|
+
className: string,
|
|
39
|
+
valueOrHasParentSelector?: 1 | ExtractedItemValue,
|
|
40
|
+
hasParentSelector?: 1
|
|
41
|
+
];
|
|
42
|
+
export type RuntimeItemData = {
|
|
43
|
+
runtime: ItemRuntimeType;
|
|
44
|
+
callsite: BuilderCallsite | null;
|
|
45
|
+
debug: DebugData | null;
|
|
46
|
+
debugField: string | null;
|
|
47
|
+
dedupe: string;
|
|
48
|
+
className: string;
|
|
49
|
+
property: string;
|
|
50
|
+
weight: number | null;
|
|
51
|
+
important: boolean;
|
|
52
|
+
value: ItemValue;
|
|
53
|
+
transformClassName?: string | null;
|
|
54
|
+
variable?: ExtractedItemValue;
|
|
55
|
+
token?: StyleTokenData | null;
|
|
56
|
+
selector: ItemSelector | null;
|
|
57
|
+
atRule: ItemSelector[] | null;
|
|
58
|
+
};
|
|
59
|
+
export type RuntimeStyleItem = RuntimeItemData & {
|
|
60
|
+
type: typeof BUILDER_TYPE_STYLE;
|
|
61
|
+
};
|
|
62
|
+
export type RuntimeSlotItem = RuntimeItemData & {
|
|
63
|
+
type: typeof BUILDER_TYPE_SLOT;
|
|
64
|
+
slotId: string;
|
|
65
|
+
};
|
|
66
|
+
export type RuntimeSlotOverrideItem = RuntimeItemData & {
|
|
67
|
+
type: typeof BUILDER_TYPE_SLOT_OVERRIDE;
|
|
68
|
+
slotId: string;
|
|
69
|
+
};
|
|
70
|
+
export type RuntimeScopeItem = RuntimeItemData & {
|
|
71
|
+
type: typeof BUILDER_TYPE_SCOPE;
|
|
72
|
+
slotId: string;
|
|
73
|
+
parentSelector: ItemSelector | null;
|
|
74
|
+
};
|
|
75
|
+
export type ExtractedItem = ExtractedStyleItem | ExtractedSheetItem | ExtractedSlotItem | ExtractedSlotOverrideItem | ExtractedScopeItem;
|
|
76
|
+
export type RuntimeItem = RuntimeStyleItem | RuntimeSlotItem | RuntimeSlotOverrideItem | RuntimeScopeItem;
|
|
77
|
+
export type ItemSelector = string | [selector: string, weight: number];
|
|
78
|
+
export type ItemValue = string;
|
|
79
|
+
export type StateItem = ExtractedItem | RuntimeItem | StyleTokenOverride;
|
|
80
|
+
export type StateLookup = Record<string, /* key */ number>;
|
|
81
|
+
export type BuilderState<Style> = {
|
|
82
|
+
[UniqueSymbol]?: Style;
|
|
83
|
+
items: StateItem[];
|
|
84
|
+
lookup?: StateLookup;
|
|
85
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import { BUILDER_TYPE_SCOPE } from "../data/const.js";
|
|
3
|
+
import type { ScopeData } from "../data/data.js";
|
|
4
|
+
import type { ExtractedItemValue } from "../data/state.js";
|
|
5
|
+
export type ExtractedScopeTuple = [
|
|
6
|
+
type: typeof BUILDER_TYPE_SCOPE,
|
|
7
|
+
slotId: string,
|
|
8
|
+
dedupe: string,
|
|
9
|
+
className: string,
|
|
10
|
+
valueOrHasParentSelector?: ExtractedItemValue | 1,
|
|
11
|
+
hasParentSelector?: 1
|
|
12
|
+
];
|
|
13
|
+
export type ExtractedScopeItem = ExtractedScopeTuple | StyleTokenOverride;
|
|
14
|
+
export declare function createExtractedScope(items: ExtractedScopeItem[]): ScopeData;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import type { CreateSheetOptions, SheetData } from "../data/data.js";
|
|
3
|
+
import type { ExtractedItemValue } from "../data/state.js";
|
|
4
|
+
export type ExtractedSheetTuple = [
|
|
5
|
+
dedupe: string,
|
|
6
|
+
className: string,
|
|
7
|
+
value?: ExtractedItemValue
|
|
8
|
+
];
|
|
9
|
+
export type ExtractedSheetItem = ExtractedSheetTuple | StyleTokenOverride;
|
|
10
|
+
export declare function createExtractedSheet(items: ExtractedSheetItem[], options?: CreateSheetOptions): SheetData;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SlotData, SlotOverrideData } from "../data/data.js";
|
|
2
|
+
import type { ExtractedItemValue } from "../data/state.js";
|
|
3
|
+
export type ExtractedSlotTuple = [
|
|
4
|
+
dedupe: string,
|
|
5
|
+
className: string,
|
|
6
|
+
value?: ExtractedItemValue
|
|
7
|
+
];
|
|
8
|
+
export declare function createExtractedSlot(slotId: string, items: ExtractedSlotTuple[]): SlotData;
|
|
9
|
+
export declare function createExtractedSlotOverride(slotId: string, items: ExtractedSlotTuple[]): SlotOverrideData;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleData } from "../data/data.js";
|
|
2
|
+
import type { ExtractedItemValue } from "../data/state.js";
|
|
3
|
+
export type ExtractedStyleTuple = [
|
|
4
|
+
dedupe: string,
|
|
5
|
+
className: string,
|
|
6
|
+
value?: ExtractedItemValue
|
|
7
|
+
];
|
|
8
|
+
export type ExtractedStyleMergePart = ExtractedStyleTuple[] | StyleData;
|
|
9
|
+
export declare function createExtractedStyle(items: ExtractedStyleTuple[]): StyleData;
|
|
10
|
+
export declare function createExtractedStyleMerge(...parts: ExtractedStyleMergePart[]): StyleData;
|
|
11
|
+
export declare function getExtractedStyleItems(style: StyleData): ExtractedStyleTuple[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StyleToken, StyleTokenData } from "../../style/token.js";
|
|
2
|
+
export type ExtractedTokenInput = {
|
|
3
|
+
id: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
ref?: StyleTokenData | null;
|
|
6
|
+
};
|
|
7
|
+
export declare function createExtractedToken(id: string, value: unknown, ref?: StyleTokenData | null, name?: string | null, varName?: string | null): StyleToken<unknown>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BUILDER_CALLSITE, BUILDER_SCOPE, BUILDER_SCOPE_ID, BUILDER_SLOT_ID, BUILDER_STATE, BUILDER_TYPE, type BUILDER_TYPE_SHEET, type BUILDER_TYPE_SLOT, type BUILDER_TYPE_SLOT_OVERRIDE, type BUILDER_TYPE_STYLE } from "../data/const.js";
|
|
2
|
+
import type { ExtractedItemValue, StateItem } from "../data/state.js";
|
|
3
|
+
type ExtractedTuple = [
|
|
4
|
+
dedupe: string,
|
|
5
|
+
className: string,
|
|
6
|
+
value?: ExtractedItemValue
|
|
7
|
+
];
|
|
8
|
+
type ExtractedItemType = typeof BUILDER_TYPE_STYLE | typeof BUILDER_TYPE_SHEET | typeof BUILDER_TYPE_SLOT | typeof BUILDER_TYPE_SLOT_OVERRIDE;
|
|
9
|
+
type ExtractedDataShape = {
|
|
10
|
+
[BUILDER_TYPE]: number;
|
|
11
|
+
[BUILDER_STATE]: {
|
|
12
|
+
items: StateItem[];
|
|
13
|
+
lookup: {};
|
|
14
|
+
};
|
|
15
|
+
[BUILDER_CALLSITE]: null;
|
|
16
|
+
[BUILDER_SLOT_ID]?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function createExtractedData(type: number, slotId?: string): ExtractedDataShape;
|
|
19
|
+
export declare function copyExtractedData(target: object, source: ExtractedDataShape): void;
|
|
20
|
+
export declare function createExtractedScopeTarget(scope: object, slot: {
|
|
21
|
+
[BUILDER_SLOT_ID]: string;
|
|
22
|
+
}): {
|
|
23
|
+
[BUILDER_TYPE]: number;
|
|
24
|
+
[BUILDER_SCOPE]: object;
|
|
25
|
+
[BUILDER_SCOPE_ID]: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function normalizeExtractedItems(type: ExtractedItemType, slotId: string | null, items: ExtractedTuple[]): StateItem[];
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import type { ScopeData, ScopeTargetData, SheetData, SlotData, SlotOverrideData, StyleData } from "../data/index.js";
|
|
3
|
+
export type ExtractedTokenBoundData<T = ExtractedTokenBoundValue> = {
|
|
4
|
+
data: T;
|
|
5
|
+
tokens: readonly StyleTokenOverride[];
|
|
6
|
+
};
|
|
7
|
+
export type ExtractedTokenBoundValue = StyleData | SheetData | SlotData | SlotOverrideData | ScopeData | ScopeTargetData;
|
|
8
|
+
export declare function withTokens<T extends ExtractedTokenBoundValue>(data: T, tokens: readonly StyleTokenOverride[]): T;
|
|
9
|
+
export declare function isExtractedTokenBoundData(value: unknown): value is ExtractedTokenBoundValue;
|
|
10
|
+
export declare function getExtractedTokenBoundData<T extends ExtractedTokenBoundValue>(value: T): ExtractedTokenBoundData<T>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ItemSelector } from "./data/index.js";
|
|
2
|
+
import { type ManualSelectorInput } from "./selector_override_core.js";
|
|
3
|
+
export type { ManualSelectorInput } from "./selector_override_core.js";
|
|
4
|
+
export { setSheetSelectorOptions } from "./selector_override_core.js";
|
|
5
|
+
export declare function normalizeManualSelectors(input: ManualSelectorInput): ItemSelector[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ItemSelector } from "./data/index.js";
|
|
2
|
+
import type { CreateSheetOptions } from "./data/index.js";
|
|
3
|
+
export type ManualSelectorInput = string | readonly string[];
|
|
4
|
+
export declare function normalizeManualSelectors(input: ManualSelectorInput, assertManualSelector: (selector: string) => void): ItemSelector[];
|
|
5
|
+
export declare function assertManualSelectorSyntax(selector: string): void;
|
|
6
|
+
export declare function setSheetSelectorOptions(selector: ItemSelector, options: CreateSheetOptions): ItemSelector;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleTransform } from "../style/index.js";
|
|
2
|
+
import type { StyleObject } from "../style/types.js";
|
|
3
|
+
import { BUILDER_SLOT_ID, type SlotData, type StyleData } from "./data/index.js";
|
|
4
|
+
import { type ManualSelectorInput } from "./selector_override.js";
|
|
5
|
+
import type { SelectorBuilder, SelectorOverrideBuilder, SelectorsRecord } from "./types/index.js";
|
|
6
|
+
import type { ScopeSelfFn, SlotSelfFn, StyleSelfFn } from "./types/fns.js";
|
|
7
|
+
export declare function createStyleBuilder<Style, Selectors extends SelectorsRecord>(selectors: Selectors, transform: StyleTransform<Style> | null): StyleSelfFn<Style, Selectors> & StyleData<Style> & import("./types/fns.js").StyleSelectorFns<Style, Selectors>;
|
|
8
|
+
export declare function createSlotBuilder<Style, Selectors extends SelectorsRecord>(selectors: Selectors, transform: StyleTransform<Style> | null): SlotSelfFn<Style, Selectors> & import("./data/index.js").BuilderData<Style, 2> & {
|
|
9
|
+
[BUILDER_SLOT_ID]: string;
|
|
10
|
+
} & ((style?: StyleObject<Style> | undefined) => import("./types/index.js").SlotOverrideBuilder<Style, Selectors>) & import("./types/fns.js").SlotSelectorFns<Style, Selectors>;
|
|
11
|
+
export declare function createSelectorBuilder<Style, Selectors extends SelectorsRecord>(selectors: Selectors, transform: StyleTransform<Style> | null): {
|
|
12
|
+
(selector: ManualSelectorInput): SelectorBuilder<Style, Selectors>;
|
|
13
|
+
(selector: ManualSelectorInput, style: StyleObject<Style> | StyleData<Style>): SelectorOverrideBuilder<Style, Selectors>;
|
|
14
|
+
};
|
|
15
|
+
export declare function createScopeBuilder<Selectors extends SelectorsRecord>(selectors: Selectors): ScopeSelfFn<Selectors> & import("./data/index.js").BuilderData<unknown, 4> & ((slot: SlotData<any>) => import("./data/index.js").ScopeTargetData) & import("./types/fns.js").ScopeSelectorFns<Selectors>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StyleObject } from "../style/types.js";
|
|
2
|
+
import { type BuilderCallsite, type BuilderData, type DebugData, type ItemSelector, type SelectorOverrideData, type SheetData, type SlotData, type SlotOverrideData, type StyleData } from "./data/index.js";
|
|
3
|
+
export type MergeData<Data extends BuilderData> = (data: Data, callsite: BuilderCallsite | null, style: StyleObject | StyleData | null, debug: DebugData | null, selector: ItemSelector | null, atRule: ItemSelector[] | null) => Data;
|
|
4
|
+
export declare const mergeStyleData: MergeData<StyleData>;
|
|
5
|
+
export declare const mergeSheetData: MergeData<SheetData>;
|
|
6
|
+
export declare const mergeSlotData: MergeData<SlotData>;
|
|
7
|
+
export declare const mergeSlotOverrideData: MergeData<SlotOverrideData>;
|
|
8
|
+
export declare const mergeSelectorOverrideData: MergeData<SelectorOverrideData>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Selector } from "../selector/index.js";
|
|
2
|
+
import type { StyleTransform } from "../style/index.js";
|
|
3
|
+
import { type BuilderCallsite, type BuilderData, type ScopeData } from "./data/index.js";
|
|
4
|
+
import type { MergeData } from "./style_data.js";
|
|
5
|
+
import type { SelectorsRecord } from "./types/index.js";
|
|
6
|
+
type Fns = Record<string, Function>;
|
|
7
|
+
type CreateFnResult<Data extends BuilderData> = (data: Data, fns: Fns) => Data;
|
|
8
|
+
type CloneScope = (source: ScopeData, callsite: BuilderCallsite | null) => ScopeData;
|
|
9
|
+
type CreateFn = (fns: Fns, fnName: string, selector: Selector) => Function | undefined;
|
|
10
|
+
export declare const createDefaultFnResult: <Data extends BuilderData>(data: Data, fns: Fns) => any;
|
|
11
|
+
export declare function createStyleFns<Data extends BuilderData>(mergeData: MergeData<Data>, selectors: SelectorsRecord, fnPrefix: string, transform: (StyleTransform | null) | undefined, createFnResult: CreateFnResult<Data> | null): Fns;
|
|
12
|
+
export declare function createScopeFns(selectors: SelectorsRecord, fnPrefix: string, cloneScope: CloneScope): Fns;
|
|
13
|
+
export declare function createFns(selectors: SelectorsRecord, fnPrefix: string, createFn: CreateFn): Fns;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleToken, StyleTokenData, StyleTokenOverride } from "../../style/token.js";
|
|
2
|
+
import { TOKEN_VAR_NAME } from "./symbols.js";
|
|
3
|
+
export type ExtractedStyleTokenVarName = {
|
|
4
|
+
[TOKEN_VAR_NAME]?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function isStyleTokenData<T = unknown>(value: unknown): value is StyleToken<T>;
|
|
7
|
+
export declare function isStyleTokenOverrideData<T = unknown>(value: unknown): value is StyleTokenOverride<T>;
|
|
8
|
+
export declare function getStyleTokenId<T>(token: StyleTokenData<T> | StyleTokenOverride<T>): string;
|
|
9
|
+
export declare function getStyleTokenName<T>(token: StyleTokenData<T> | StyleTokenOverride<T>): string | null;
|
|
10
|
+
export declare function getStyleTokenVarName<T>(token: StyleTokenData<T> | StyleTokenOverride<T>): string | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function getStyleTokenNameFromId(id: string | undefined): string | null;
|
|
2
|
+
export declare function getChildStyleTokenName(name: string | null | undefined, child: string | null | undefined): string | null;
|
|
3
|
+
export declare function normalizeStyleTokenName(value: string | null | undefined): string | null;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AtRuleRef, PlainStyleObject, StyleKeyframesObject, StyleObject, StyleWeightValue } from "../../style/index.js";
|
|
2
|
+
import type { StyleImportantValue } from "../../style/important.js";
|
|
3
|
+
import type { Collapse } from "../../utils/type.js";
|
|
4
|
+
import type { BUILDER_SELECTOR, BUILDER_SLOT_ID } from "../data/index.js";
|
|
5
|
+
import type { ManualSelectorInput } from "../selector_override.js";
|
|
6
|
+
import type { ScopeSelfFn, SlotSelfFn, StyleSelfFn } from "./fns.js";
|
|
7
|
+
import type { MergeRuleStyleData, SelectorOverrideStyleData } from "./types.js";
|
|
8
|
+
import type { SelectorBuilder, SelectorOverrideBuilder, SlotOverrideBuilder } from "./types.js";
|
|
9
|
+
export declare function styleRule<Style, Selectors>(): import("../data/index.js").StyleData<Style> & import("./fns.js").StyleSelectorFns<Style, Selectors> & Collapse;
|
|
10
|
+
export declare function slotRule<Style, Selectors>(): import("../data/index.js").BuilderData<Style, 2> & {
|
|
11
|
+
[BUILDER_SLOT_ID]: string;
|
|
12
|
+
} & ((style?: StyleObject<Style> | undefined) => SlotOverrideBuilder<Style, Selectors>) & import("./fns.js").SlotSelectorFns<Style, Selectors> & Collapse;
|
|
13
|
+
export declare function slotOverrideRule<Style, Selectors>(): import("../data/index.js").BuilderData<Style, 3> & {
|
|
14
|
+
[BUILDER_SLOT_ID]: string;
|
|
15
|
+
} & import("./fns.js").SlotOverrideSelectorFns<Style, Selectors> & Collapse;
|
|
16
|
+
export declare function selectorOverrideRule<Style, Selectors>(): import("../data/index.js").BuilderData<Style, 8> & {
|
|
17
|
+
[BUILDER_SELECTOR]: readonly import("../data/index.js").ItemSelector[];
|
|
18
|
+
} & ((style?: SelectorOverrideStyleData<Style> | undefined) => SelectorOverrideBuilder<Style, Selectors>) & import("./fns.js").SelectorOverrideSelectorFns<Style, Selectors> & Collapse;
|
|
19
|
+
export declare function scopeRule<Selectors>(): import("../data/index.js").BuilderData<unknown, 4> & ((slot: import("../data/index.js").SlotData<any>) => import("../data/index.js").ScopeTargetData) & import("./fns.js").ScopeSelectorFns<Selectors> & Collapse;
|
|
20
|
+
export declare function typeAliases<Style, Selectors>(): {
|
|
21
|
+
StyleRule: import("../data/index.js").StyleData<Style> & import("./fns.js").StyleSelectorFns<Style, Selectors> & Collapse;
|
|
22
|
+
SlotRule: import("../data/index.js").BuilderData<Style, 2> & {
|
|
23
|
+
[BUILDER_SLOT_ID]: string;
|
|
24
|
+
} & ((style?: StyleObject<Style> | undefined) => SlotOverrideBuilder<Style, Selectors>) & import("./fns.js").SlotSelectorFns<Style, Selectors> & Collapse;
|
|
25
|
+
SlotOverrideRule: import("../data/index.js").BuilderData<Style, 3> & {
|
|
26
|
+
[BUILDER_SLOT_ID]: string;
|
|
27
|
+
} & import("./fns.js").SlotOverrideSelectorFns<Style, Selectors> & Collapse;
|
|
28
|
+
SelectorOverrideRule: import("../data/index.js").BuilderData<Style, 8> & {
|
|
29
|
+
[BUILDER_SELECTOR]: readonly import("../data/index.js").ItemSelector[];
|
|
30
|
+
} & ((style?: SelectorOverrideStyleData<Style> | undefined) => SelectorOverrideBuilder<Style, Selectors>) & import("./fns.js").SelectorOverrideSelectorFns<Style, Selectors> & Collapse;
|
|
31
|
+
ScopeRule: import("../data/index.js").BuilderData<unknown, 4> & ((slot: import("../data/index.js").SlotData<any>) => import("../data/index.js").ScopeTargetData) & import("./fns.js").ScopeSelectorFns<Selectors> & Collapse;
|
|
32
|
+
StyleFn: StyleSelfFn<Style, Selectors> & {
|
|
33
|
+
(style?: StyleObject<Style> | undefined): import("../data/index.js").StyleData<Style> & import("./fns.js").StyleSelectorFns<Style, Selectors> & Collapse;
|
|
34
|
+
slot: SlotSelfFn<Style, Selectors>;
|
|
35
|
+
scope: ScopeSelfFn<Selectors> & import("../data/index.js").BuilderData<unknown, 4> & ((slot: import("../data/index.js").SlotData<any>) => import("../data/index.js").ScopeTargetData) & import("./fns.js").ScopeSelectorFns<Selectors & Collapse>;
|
|
36
|
+
weight: <const T>(value: T, weight: number) => StyleWeightValue<T>;
|
|
37
|
+
important: <const T>(value: T) => StyleImportantValue<T>;
|
|
38
|
+
raw: <T extends StyleObject<Style>>(style: T) => T;
|
|
39
|
+
plain: <T extends PlainStyleObject<Style>>(style: T) => T;
|
|
40
|
+
keyframes: <T extends StyleKeyframesObject<Style>>(frames: T) => AtRuleRef;
|
|
41
|
+
merge: <Target>(target: Target, ...styles: MergeRuleStyleData[]) => Target;
|
|
42
|
+
selector: {
|
|
43
|
+
(selector: ManualSelectorInput): SelectorBuilder<Style, Selectors>;
|
|
44
|
+
(selector: ManualSelectorInput, style: SelectorOverrideStyleData<Style>): SelectorOverrideBuilder<Style, Selectors>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
SlotFn: SlotSelfFn<Style, Selectors>;
|
|
48
|
+
ScopeFn: ScopeSelfFn<Selectors> & import("../data/index.js").BuilderData<unknown, 4> & ((slot: import("../data/index.js").SlotData<any>) => import("../data/index.js").ScopeTargetData) & import("./fns.js").ScopeSelectorFns<Selectors & Collapse>;
|
|
49
|
+
ValueFn: <const T>(value: T, weight: number) => StyleWeightValue<T>;
|
|
50
|
+
ImportantFn: <const T>(value: T) => StyleImportantValue<T>;
|
|
51
|
+
RawFn: <T extends StyleObject<Style>>(style: T) => T;
|
|
52
|
+
PlainFn: <T extends PlainStyleObject<Style>>(style: T) => T;
|
|
53
|
+
KeyframesFn: <T extends StyleKeyframesObject<Style>>(frames: T) => AtRuleRef;
|
|
54
|
+
MergeFn: <Target>(target: Target, ...styles: MergeRuleStyleData[]) => Target;
|
|
55
|
+
SelectorFn: {
|
|
56
|
+
(selector: ManualSelectorInput): SelectorBuilder<Style, Selectors>;
|
|
57
|
+
(selector: ManualSelectorInput, style: SelectorOverrideStyleData<Style>): SelectorOverrideBuilder<Style, Selectors>;
|
|
58
|
+
};
|
|
59
|
+
};
|