@fluentic/style 0.1.0-beta.11 → 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 +6 -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 +4 -4
- package/dist/plugin/nextjs/index.mjs.map +1 -1
- package/dist/plugin/nextjs/loader.mjs +4 -4
- package/dist/plugin/parcel/index.cjs +1 -1
- package/dist/plugin/parcel/index.mjs +2 -2
- package/dist/plugin/parcel/optimizer.cjs +1 -1
- package/dist/plugin/parcel/optimizer.mjs +2 -2
- package/dist/plugin/parcel/resolver.cjs +1 -1
- package/dist/plugin/parcel/resolver.mjs +2 -2
- package/dist/plugin/parcel/runtime.cjs +1 -1
- package/dist/plugin/parcel/runtime.mjs +1 -1
- package/dist/plugin/parcel/transformer.cjs +1 -1
- package/dist/plugin/parcel/transformer.mjs +2 -2
- package/dist/plugin/rspack/index.mjs +2 -2
- package/dist/plugin/vite/index.mjs +3 -3
- package/dist/plugin/webpack/index.mjs +2 -2
- package/dist/plugin/webpack/loader.mjs +2 -2
- package/dist/{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 +7 -8
- package/dist/loader-_-VjzlrX.mjs.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SelectorAssert, SelectorAssertFn } from "./types.js";
|
|
2
|
+
export declare function assertSelector(type: SelectorAssert | null, value: string): void;
|
|
3
|
+
export declare function assertEnumSelector<const Values extends readonly string[]>(values: Values): SelectorAssertFn<Values[number]>;
|
|
4
|
+
export declare function assertEnumSelector<const Values extends readonly string[]>(...values: Values): SelectorAssertFn<Values[number]>;
|
|
5
|
+
export declare const assertSelectorNotEmpty: SelectorAssertFn<string>;
|
|
6
|
+
export declare const assertLocalSelector: SelectorAssertFn<string>;
|
|
7
|
+
export declare const assertPseudoArgSelector: SelectorAssertFn<string>;
|
|
8
|
+
export declare const assertTagSelector: SelectorAssertFn<string>;
|
|
9
|
+
export declare const assertAttrSelector: SelectorAssertFn<string>;
|
|
10
|
+
export declare const assertRawValue: SelectorAssertFn<string>;
|
|
11
|
+
export declare const assertMediaQuery: SelectorAssertFn<string>;
|
|
12
|
+
export declare const assertSupportsQuery: SelectorAssertFn<string>;
|
|
13
|
+
export declare const assertContainerQuery: SelectorAssertFn<string>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const Selectors: {
|
|
2
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
3
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
4
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
5
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
6
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
7
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
8
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
9
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
10
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
11
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
12
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
13
|
+
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
14
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
15
|
+
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
16
|
+
lang: import("../index.js").Selector<":lang($)", string>;
|
|
17
|
+
dir: import("../index.js").Selector<":dir($)", string>;
|
|
18
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
19
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
20
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
21
|
+
active: import("../index.js").Selector<":active", string>;
|
|
22
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
23
|
+
focusVisible: import("../index.js").Selector<":focus-visible", string>;
|
|
24
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
25
|
+
visited: import("../index.js").Selector<":visited", string>;
|
|
26
|
+
link: import("../index.js").Selector<":link", string>;
|
|
27
|
+
anyLink: import("../index.js").Selector<":any-link", string>;
|
|
28
|
+
target: import("../index.js").Selector<":target", string>;
|
|
29
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
30
|
+
enabled: import("../index.js").Selector<":enabled", string>;
|
|
31
|
+
checked: import("../index.js").Selector<":checked", string>;
|
|
32
|
+
indeterminate: import("../index.js").Selector<":indeterminate", string>;
|
|
33
|
+
invalid: import("../index.js").Selector<":invalid", string>;
|
|
34
|
+
valid: import("../index.js").Selector<":valid", string>;
|
|
35
|
+
required: import("../index.js").Selector<":required", string>;
|
|
36
|
+
optional: import("../index.js").Selector<":optional", string>;
|
|
37
|
+
readOnly: import("../index.js").Selector<":read-only", string>;
|
|
38
|
+
readWrite: import("../index.js").Selector<":read-write", string>;
|
|
39
|
+
inRange: import("../index.js").Selector<":in-range", string>;
|
|
40
|
+
outOfRange: import("../index.js").Selector<":out-of-range", string>;
|
|
41
|
+
default: import("../index.js").Selector<":default", string>;
|
|
42
|
+
placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
|
|
43
|
+
autofill: import("../index.js").Selector<":autofill", string>;
|
|
44
|
+
empty: import("../index.js").Selector<":empty", string>;
|
|
45
|
+
root: import("../index.js").Selector<":root", string>;
|
|
46
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
47
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
48
|
+
onlyChild: import("../index.js").Selector<":only-child", string>;
|
|
49
|
+
firstOfType: import("../index.js").Selector<":first-of-type", string>;
|
|
50
|
+
lastOfType: import("../index.js").Selector<":last-of-type", string>;
|
|
51
|
+
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
52
|
+
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
53
|
+
modal: import("../index.js").Selector<":modal", string>;
|
|
54
|
+
};
|
|
55
|
+
export declare const PrioritySelectors: {
|
|
56
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
57
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
58
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
59
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
60
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
61
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
62
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
63
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
64
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
65
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
66
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
67
|
+
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
68
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
69
|
+
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
70
|
+
lang: import("../index.js").Selector<":lang($)", string>;
|
|
71
|
+
dir: import("../index.js").Selector<":dir($)", string>;
|
|
72
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
73
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
74
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
75
|
+
active: import("../index.js").Selector<":active", string>;
|
|
76
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
77
|
+
focusVisible: import("../index.js").Selector<":focus-visible", string>;
|
|
78
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
79
|
+
visited: import("../index.js").Selector<":visited", string>;
|
|
80
|
+
link: import("../index.js").Selector<":link", string>;
|
|
81
|
+
anyLink: import("../index.js").Selector<":any-link", string>;
|
|
82
|
+
target: import("../index.js").Selector<":target", string>;
|
|
83
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
84
|
+
enabled: import("../index.js").Selector<":enabled", string>;
|
|
85
|
+
checked: import("../index.js").Selector<":checked", string>;
|
|
86
|
+
indeterminate: import("../index.js").Selector<":indeterminate", string>;
|
|
87
|
+
invalid: import("../index.js").Selector<":invalid", string>;
|
|
88
|
+
valid: import("../index.js").Selector<":valid", string>;
|
|
89
|
+
required: import("../index.js").Selector<":required", string>;
|
|
90
|
+
optional: import("../index.js").Selector<":optional", string>;
|
|
91
|
+
readOnly: import("../index.js").Selector<":read-only", string>;
|
|
92
|
+
readWrite: import("../index.js").Selector<":read-write", string>;
|
|
93
|
+
inRange: import("../index.js").Selector<":in-range", string>;
|
|
94
|
+
outOfRange: import("../index.js").Selector<":out-of-range", string>;
|
|
95
|
+
default: import("../index.js").Selector<":default", string>;
|
|
96
|
+
placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
|
|
97
|
+
autofill: import("../index.js").Selector<":autofill", string>;
|
|
98
|
+
empty: import("../index.js").Selector<":empty", string>;
|
|
99
|
+
root: import("../index.js").Selector<":root", string>;
|
|
100
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
101
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
102
|
+
onlyChild: import("../index.js").Selector<":only-child", string>;
|
|
103
|
+
firstOfType: import("../index.js").Selector<":first-of-type", string>;
|
|
104
|
+
lastOfType: import("../index.js").Selector<":last-of-type", string>;
|
|
105
|
+
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
106
|
+
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
107
|
+
modal: import("../index.js").Selector<":modal", string>;
|
|
108
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const MinimalSelectors: {
|
|
2
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
3
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
4
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
5
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
6
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
7
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
8
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
9
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
10
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
11
|
+
active: import("../index.js").Selector<":active", string>;
|
|
12
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
13
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
14
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
15
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
16
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
17
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
18
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
19
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
20
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
21
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
22
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
23
|
+
};
|
|
24
|
+
export declare const MinimalPrioritySelectors: {
|
|
25
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
26
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
27
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
28
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
29
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
30
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
31
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
32
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
33
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
34
|
+
active: import("../index.js").Selector<":active", string>;
|
|
35
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
36
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
37
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
38
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
39
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
40
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
41
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
42
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
43
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
44
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
45
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
46
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const PseudoSelectors: {
|
|
2
|
+
hover: import("../index.js").Selector<":hover", string>;
|
|
3
|
+
active: import("../index.js").Selector<":active", string>;
|
|
4
|
+
focus: import("../index.js").Selector<":focus", string>;
|
|
5
|
+
focusVisible: import("../index.js").Selector<":focus-visible", string>;
|
|
6
|
+
focusWithin: import("../index.js").Selector<":focus-within", string>;
|
|
7
|
+
visited: import("../index.js").Selector<":visited", string>;
|
|
8
|
+
link: import("../index.js").Selector<":link", string>;
|
|
9
|
+
anyLink: import("../index.js").Selector<":any-link", string>;
|
|
10
|
+
target: import("../index.js").Selector<":target", string>;
|
|
11
|
+
disabled: import("../index.js").Selector<":disabled", string>;
|
|
12
|
+
enabled: import("../index.js").Selector<":enabled", string>;
|
|
13
|
+
checked: import("../index.js").Selector<":checked", string>;
|
|
14
|
+
indeterminate: import("../index.js").Selector<":indeterminate", string>;
|
|
15
|
+
invalid: import("../index.js").Selector<":invalid", string>;
|
|
16
|
+
valid: import("../index.js").Selector<":valid", string>;
|
|
17
|
+
required: import("../index.js").Selector<":required", string>;
|
|
18
|
+
optional: import("../index.js").Selector<":optional", string>;
|
|
19
|
+
readOnly: import("../index.js").Selector<":read-only", string>;
|
|
20
|
+
readWrite: import("../index.js").Selector<":read-write", string>;
|
|
21
|
+
inRange: import("../index.js").Selector<":in-range", string>;
|
|
22
|
+
outOfRange: import("../index.js").Selector<":out-of-range", string>;
|
|
23
|
+
default: import("../index.js").Selector<":default", string>;
|
|
24
|
+
placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
|
|
25
|
+
autofill: import("../index.js").Selector<":autofill", string>;
|
|
26
|
+
empty: import("../index.js").Selector<":empty", string>;
|
|
27
|
+
root: import("../index.js").Selector<":root", string>;
|
|
28
|
+
firstChild: import("../index.js").Selector<":first-child", string>;
|
|
29
|
+
lastChild: import("../index.js").Selector<":last-child", string>;
|
|
30
|
+
onlyChild: import("../index.js").Selector<":only-child", string>;
|
|
31
|
+
firstOfType: import("../index.js").Selector<":first-of-type", string>;
|
|
32
|
+
lastOfType: import("../index.js").Selector<":last-of-type", string>;
|
|
33
|
+
onlyOfType: import("../index.js").Selector<":only-of-type", string>;
|
|
34
|
+
fullscreen: import("../index.js").Selector<":fullscreen", string>;
|
|
35
|
+
modal: import("../index.js").Selector<":modal", string>;
|
|
36
|
+
};
|
|
37
|
+
export declare const PseudoElementSelectors: {
|
|
38
|
+
before: import("../index.js").Selector<"::before", string>;
|
|
39
|
+
after: import("../index.js").Selector<"::after", string>;
|
|
40
|
+
};
|
|
41
|
+
export declare const PseudoArgSelectors: {
|
|
42
|
+
not: import("../index.js").Selector<":not($$)", string>;
|
|
43
|
+
is: import("../index.js").Selector<":is($$)", string>;
|
|
44
|
+
where: import("../index.js").Selector<":where($$)", string>;
|
|
45
|
+
has: import("../index.js").Selector<":has($$)", string>;
|
|
46
|
+
nthChild: import("../index.js").Selector<":nth-child($)", string>;
|
|
47
|
+
nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
|
|
48
|
+
nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
|
|
49
|
+
nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
|
|
50
|
+
lang: import("../index.js").Selector<":lang($)", string>;
|
|
51
|
+
dir: import("../index.js").Selector<":dir($)", string>;
|
|
52
|
+
};
|
|
53
|
+
export declare const ArgSelectors: {
|
|
54
|
+
attr: import("../index.js").Selector<"$", string>;
|
|
55
|
+
select: import("../index.js").Selector<"$$", string>;
|
|
56
|
+
merge: import("../index.js").Selector<"...", string>;
|
|
57
|
+
};
|
|
58
|
+
export declare const AtRuleSelectors: {
|
|
59
|
+
media: import("../index.js").Selector<"@media $$", string>;
|
|
60
|
+
container: import("../index.js").Selector<"@container $$", string>;
|
|
61
|
+
supports: import("../index.js").Selector<"@supports $$", string>;
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Selector, SelectorAssert, SelectorAssertFn } from "./types.js";
|
|
2
|
+
type SelectorArgs = [] | [SelectorAssert | null] | [number] | [number, SelectorAssert | null];
|
|
3
|
+
type SelectorAssertArg<Assert> = Assert extends SelectorAssertFn<infer Arg> ? Arg extends string ? Arg : string : string;
|
|
4
|
+
type SelectorArg<Args extends SelectorArgs> = Args extends [infer Assert] ? SelectorAssertArg<Assert> : Args extends [number, infer Assert] ? SelectorAssertArg<Assert> : string;
|
|
5
|
+
export declare function selector<const T extends string, const Args extends SelectorArgs>(selector: T, ...args: Args): Selector<T, SelectorArg<Args>>;
|
|
6
|
+
type SelectorString<T extends Selector> = T extends Selector<infer T> ? T : unknown;
|
|
7
|
+
type PrioritySelectors<Selectors extends Record<string, Selector>> = {
|
|
8
|
+
[P in keyof Selectors as SelectorString<Selectors[P]> extends `@${string}` | `${string}...${string}` ? never : P]: Selectors[P];
|
|
9
|
+
};
|
|
10
|
+
export declare function selectorPriority<Selectors extends Record<string, Selector>>(selectors: Selectors, values: (keyof PrioritySelectors<Selectors>)[] | PrioritySelectors<Selectors>): Selectors;
|
|
11
|
+
export declare function createSelectorAssert<const Arg extends string = string>(fn: (arg: Arg) => void): SelectorAssertFn<Arg>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const SelectorAssertArgSymbol: unique symbol;
|
|
2
|
+
export type Selector<T extends string = string, Arg extends string = string> = {
|
|
3
|
+
selector: T;
|
|
4
|
+
priority: number | null;
|
|
5
|
+
assert: SelectorType | SelectorAssertFn<Arg> | null;
|
|
6
|
+
};
|
|
7
|
+
export type SelectorAssert<Arg extends string = string> = SelectorType | SelectorAssertFn<Arg>;
|
|
8
|
+
export type SelectorAssertFn<Arg extends string = string> = {
|
|
9
|
+
(arg: string): void;
|
|
10
|
+
readonly [SelectorAssertArgSymbol]?: Arg;
|
|
11
|
+
};
|
|
12
|
+
export type SelectorType = 'local' | 'arg' | 'tag' | 'attr' | 'value' | 'media' | 'supports' | 'container';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function isLocalSelector(selector: string): boolean;
|
|
2
|
+
export declare function isPseudoArgSelector(selector: string): boolean;
|
|
3
|
+
export declare function isTagSelector(selector: string): boolean;
|
|
4
|
+
export declare function isAttrArg(value: string): boolean;
|
|
5
|
+
export declare function isRawValue(value: string): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SheetOptions, StyleSheet } from "../types.js";
|
|
2
|
+
import { getDevSourcemapTags, refreshDevSourcemapTags } from "./utils.js";
|
|
3
|
+
export { getDevSourcemapTags, refreshDevSourcemapTags };
|
|
4
|
+
export declare function createDevLayerSheet(options?: SheetOptions): StyleSheet;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SheetOptions, StyleSheet } from "../types.js";
|
|
2
|
+
export { createDevLayerSheet, getDevSourcemapTags, refreshDevSourcemapTags } from "./dev_layer.js";
|
|
3
|
+
export { createDevSortSheet } from "./dev_sort.js";
|
|
4
|
+
export declare function createDevSheet(options?: SheetOptions): StyleSheet;
|
|
5
|
+
export declare function refreshDevStyleTags(): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SourcemapRule } from "../sourcemap.js";
|
|
2
|
+
import type { SheetRule } from "../types.js";
|
|
3
|
+
export type DevRuleTag = {
|
|
4
|
+
tag: HTMLStyleElement;
|
|
5
|
+
rules: SourcemapRule[];
|
|
6
|
+
sourceMapNode: Text | null;
|
|
7
|
+
insertBeforeNode: Text | null;
|
|
8
|
+
count: number;
|
|
9
|
+
updateSourceMap(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare function getDevSourcemapTags(): DevRuleTag[];
|
|
12
|
+
export declare function refreshDevSourcemapTags(): void;
|
|
13
|
+
export declare function pruneDevSourcemapTags(): void;
|
|
14
|
+
export declare function createDevTag(document: Document, previous: HTMLStyleElement | null, options: {
|
|
15
|
+
sourcemap: boolean;
|
|
16
|
+
nonce?: string | null;
|
|
17
|
+
className?: string;
|
|
18
|
+
before?: HTMLStyleElement | Text | null;
|
|
19
|
+
top?: boolean;
|
|
20
|
+
wrapper?: {
|
|
21
|
+
before: string;
|
|
22
|
+
after: string;
|
|
23
|
+
sourceMapLineOffset: number;
|
|
24
|
+
};
|
|
25
|
+
}): DevRuleTag;
|
|
26
|
+
export declare function insertDevRule(document: Document, item: DevRuleTag, fragment: DocumentFragment, css: string, rule: SheetRule | null): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DebugData } from "../builder/data/debug.js";
|
|
2
|
+
import type { SheetCallsite } from "./types.js";
|
|
3
|
+
export type SourcemapRule = {
|
|
4
|
+
css: string;
|
|
5
|
+
callsite: SheetCallsite | null;
|
|
6
|
+
debug?: DebugData | null;
|
|
7
|
+
debugField?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function getRuleCallsite(callsite: SheetCallsite | null | undefined, debug: DebugData | null | undefined, debugField?: string | null): SheetCallsite | null;
|
|
10
|
+
export declare function createSourceMapComment(rules: SourcemapRule[]): string;
|
|
11
|
+
export declare function getSourcemapRuleCallsite(rule: SourcemapRule): SheetCallsite | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LayerPriority } from "../atomic/layer/index.js";
|
|
2
|
+
import type { DebugData } from "../builder/data/debug.js";
|
|
3
|
+
import type { TraceCallsite } from "../utils/trace.js";
|
|
4
|
+
export type SheetCallsite = Pick<TraceCallsite, 'filePath' | 'sourceUrl' | 'sourceContent' | 'line' | 'column'>;
|
|
5
|
+
export type SheetRule = {
|
|
6
|
+
css: string;
|
|
7
|
+
key?: string | null;
|
|
8
|
+
priority?: LayerPriority | null;
|
|
9
|
+
important?: boolean;
|
|
10
|
+
layer?: 'style' | 'sheet' | false;
|
|
11
|
+
callsite?: SheetCallsite | null;
|
|
12
|
+
debug?: DebugData | null;
|
|
13
|
+
debugField?: string | null;
|
|
14
|
+
};
|
|
15
|
+
export type SheetOptions = {
|
|
16
|
+
document?: Document | null;
|
|
17
|
+
dev?: boolean;
|
|
18
|
+
maxRules?: number;
|
|
19
|
+
nonce?: string | null;
|
|
20
|
+
sourcemap?: boolean;
|
|
21
|
+
tagName?: string;
|
|
22
|
+
top?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type StyleSheet = {
|
|
25
|
+
updateLayers(layers: readonly string[]): void;
|
|
26
|
+
insert(rule: SheetRule | string): void;
|
|
27
|
+
flush(): void;
|
|
28
|
+
destroy?(): void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function resolveDocument(documentOverride?: Document | null): Document | null;
|
|
2
|
+
export declare function createStyleTag(document: Document, name: string, nonce?: string | null): HTMLStyleElement;
|
|
3
|
+
export declare function appendStyleTag(document: Document, tag: HTMLStyleElement): void;
|
|
4
|
+
export declare function insertStyleTagAfter(document: Document, tag: HTMLStyleElement, previous: HTMLStyleElement | null): void;
|
|
5
|
+
export declare function insertStyleTagAtTop(document: Document, tag: HTMLStyleElement): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LayerPriority } from "../../atomic/layer/index.js";
|
|
2
|
+
export declare function createSheetLayerState(): {
|
|
3
|
+
getName: (priority: LayerPriority) => string;
|
|
4
|
+
getNames: () => string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function getSheetRulePriority(priority: LayerPriority | null | undefined): LayerPriority;
|
|
7
|
+
export declare function getSheetRuleLayerPriority(priority: LayerPriority | null | undefined, important: boolean | null | undefined): LayerPriority;
|
|
8
|
+
export declare function getStyleLayerName(): string;
|
|
9
|
+
export declare function getSheetLayerName(): string;
|
|
10
|
+
export declare function getSheetLayerNames(layerState: ReturnType<typeof createSheetLayerState>, hasSheetLayer: boolean): string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SourceMapSource = {
|
|
2
|
+
filePath: string;
|
|
3
|
+
sourceUrl?: string;
|
|
4
|
+
sourceContent?: string;
|
|
5
|
+
line: number;
|
|
6
|
+
column: number;
|
|
7
|
+
};
|
|
8
|
+
export type SourceMapRule = {
|
|
9
|
+
css: string;
|
|
10
|
+
source: SourceMapSource | null;
|
|
11
|
+
};
|
|
12
|
+
export declare function createSourceMapComment(rules: SourceMapRule[]): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ClassNameFn } from "../builder/classname/index.js";
|
|
2
|
+
import type { SelectorsRecord } from "../builder/types/index.js";
|
|
3
|
+
import { PrioritySelectors } from "../selector/presets/index.js";
|
|
4
|
+
import type { Type } from "../utils/type.js";
|
|
5
|
+
import type { ClassNameTransform } from "./transform.js";
|
|
6
|
+
export type { ClassNameBuilder, ClassNameFn, ClassNameItem, WeightedClassName } from "../builder/classname/index.js";
|
|
7
|
+
export type { ClassNameTransform } from "./transform.js";
|
|
8
|
+
type InferClassName<Transform> = Transform extends ClassNameTransform<infer ClassName> ? ClassName : never;
|
|
9
|
+
export declare function createClassNameFn<const Selectors extends SelectorsRecord = typeof PrioritySelectors, const Transform extends ClassNameTransform<any> = ClassNameTransform<string>, ClassName extends string = InferClassName<Transform>>(args: {
|
|
10
|
+
className?: Type<ClassName>;
|
|
11
|
+
selectors: Selectors;
|
|
12
|
+
transform: Transform;
|
|
13
|
+
}): {
|
|
14
|
+
className: ClassNameFn<ClassName, Selectors>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const STYLE_IMPORTANT: unique symbol;
|
|
2
|
+
export type StyleImportantValue<T = unknown> = {
|
|
3
|
+
readonly [STYLE_IMPORTANT]: true;
|
|
4
|
+
readonly value: T;
|
|
5
|
+
};
|
|
6
|
+
export declare function importantValue<T>(value: T): StyleImportantValue<T>;
|
|
7
|
+
export declare function isStyleImportantValue(value: unknown): value is StyleImportantValue;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./classname.js";
|
|
2
|
+
export * from "./important.js";
|
|
3
|
+
export * from "./keyframes.js";
|
|
4
|
+
export * from "./style.js";
|
|
5
|
+
export * from "./theme.js";
|
|
6
|
+
export * from "./token.js";
|
|
7
|
+
export * from "./tokens.js";
|
|
8
|
+
export * from "./transform.js";
|
|
9
|
+
export * from "./types.js";
|
|
10
|
+
export * from "./value.js";
|
|
11
|
+
export * from "./valueRef.js";
|
|
12
|
+
export * from "./weight.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KeyframeSelector, KeyframesObject } from "../atomic/atRule/keyframes.js";
|
|
2
|
+
import { createKeyframes } from "../css/index.js";
|
|
3
|
+
import type { StableId } from "../utils/id.js";
|
|
4
|
+
import type { StyleTransform } from "./transform.js";
|
|
5
|
+
import type { CSSProperties, StyleObject } from "./types.js";
|
|
6
|
+
export type StyleKeyframesObject<Style = CSSProperties> = {
|
|
7
|
+
[Selector in KeyframeSelector]?: StyleObject<Style>;
|
|
8
|
+
};
|
|
9
|
+
export declare function transformKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null): KeyframesObject;
|
|
10
|
+
export declare function createStyleKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null, stableId?: StableId): ReturnType<typeof createKeyframes>;
|