@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,31 @@
|
|
|
1
|
+
import type { LoaderDefinitionFunction } from 'webpack';
|
|
2
|
+
import type { BabelTransformSourceMap } from "../../../../compiler/transform/index.js";
|
|
3
|
+
import { type PluginOptions } from "../../../utils/index.js";
|
|
4
|
+
export type WebpackLoaderOptions = PluginOptions & {
|
|
5
|
+
compilerId: string;
|
|
6
|
+
};
|
|
7
|
+
export type WebpackLoaderContext = ThisParameterType<LoaderDefinitionFunction<WebpackLoaderOptions>>;
|
|
8
|
+
export type WebpackLoaderResult = {
|
|
9
|
+
code: string;
|
|
10
|
+
sourcemap: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type WebpackLoaderTransformArgs<State> = {
|
|
13
|
+
code: string;
|
|
14
|
+
entry: State;
|
|
15
|
+
filePath: string;
|
|
16
|
+
inputMap: BabelTransformSourceMap;
|
|
17
|
+
loaderContext: WebpackLoaderContext;
|
|
18
|
+
options: WebpackLoaderOptions;
|
|
19
|
+
};
|
|
20
|
+
export type WebpackLoaderFilterArgs<State> = {
|
|
21
|
+
entry: State;
|
|
22
|
+
filePath: string;
|
|
23
|
+
options: WebpackLoaderOptions;
|
|
24
|
+
};
|
|
25
|
+
export type MaybePromise<T> = Promise<T> | T;
|
|
26
|
+
export declare function createWebpackLoader<State>(args: {
|
|
27
|
+
getEntry: (compilerId: string, options: WebpackLoaderOptions) => State | null | undefined;
|
|
28
|
+
missingCompilerMessage: string;
|
|
29
|
+
shouldTransform?: (args: WebpackLoaderFilterArgs<State>) => boolean;
|
|
30
|
+
transform: (args: WebpackLoaderTransformArgs<State>) => MaybePromise<WebpackLoaderResult | null>;
|
|
31
|
+
}): LoaderDefinitionFunction<WebpackLoaderOptions>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EntryNormalized } from 'webpack';
|
|
2
|
+
import type { PluginCompiler } from "../../utils/index.js";
|
|
3
|
+
export type WebpackLoaderState = {
|
|
4
|
+
transform: PluginCompiler['transform'];
|
|
5
|
+
};
|
|
6
|
+
export declare const webpackRegistry: {
|
|
7
|
+
setEntry<T>(id: string, entry: T): void;
|
|
8
|
+
getEntry<T>(id: string): T | null;
|
|
9
|
+
};
|
|
10
|
+
export declare function getTransformLoaderPath(): string;
|
|
11
|
+
export declare function getStylePackageDistPath(): string;
|
|
12
|
+
export declare function createWebpackRuntimeModuleSource(extract: boolean, cssFilePath: string | null, options?: {
|
|
13
|
+
runtimeImportPath?: string | null;
|
|
14
|
+
sidecarUrl?: string | null;
|
|
15
|
+
}): string;
|
|
16
|
+
export declare function replaceWebpackCssMarker(source: string, marker: string, css: string): string;
|
|
17
|
+
export declare function hasWebpackCssMarker(source: string, marker: string): boolean;
|
|
18
|
+
export declare function prependWebpackRuntimeEntry(entry: EntryNormalized, runtimeFilePath: string): EntryNormalized;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function injectDevCssLink(source: string, cssUrl: string | null): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { NextConfigFunction, NextConfigInput, PluginOptions } from "./types.js";
|
|
2
|
+
export { CssPropPresets } from "../utils/index.js";
|
|
3
|
+
export type { CompilerCssPropOptions } from "../utils/index.js";
|
|
4
|
+
export default plugin;
|
|
5
|
+
export declare function plugin(nextConfig?: NextConfigInput, options?: PluginOptions): NextConfigFunction;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
import type { OmitProps } from "../../utils/type.js";
|
|
3
|
+
import type { PluginOptions as BasePluginOptions } from "../utils/index.js";
|
|
4
|
+
export type PluginOptions = OmitProps<BasePluginOptions, 'devSourcemap'>;
|
|
5
|
+
export type MaybePromise<T> = Promise<T> | T;
|
|
6
|
+
export type NextConfigContext = {
|
|
7
|
+
defaultConfig: NextConfig;
|
|
8
|
+
};
|
|
9
|
+
export type NextConfigFunction = (phase: string, context: NextConfigContext) => MaybePromise<NextConfig>;
|
|
10
|
+
export type NextConfigInput = NextConfig | NextConfigFunction;
|
|
11
|
+
type WebpackConfigHook = NonNullable<NextConfig['webpack']>;
|
|
12
|
+
export type WebpackConfiguration = Parameters<WebpackConfigHook>[0];
|
|
13
|
+
export type WebpackConfigContext = Parameters<WebpackConfigHook>[1];
|
|
14
|
+
export type TurbopackConfig = NonNullable<NextConfig['turbopack']>;
|
|
15
|
+
export type TurbopackRules = NonNullable<TurbopackConfig['rules']>;
|
|
16
|
+
export type TurbopackResolveAlias = NonNullable<TurbopackConfig['resolveAlias']>;
|
|
17
|
+
export type TurbopackLoaderItem = {
|
|
18
|
+
loader: string;
|
|
19
|
+
options?: unknown;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Compilation, Compiler, WebpackPluginInstance } from 'webpack';
|
|
2
|
+
import type { Compiler as PluginCompiler } from "../../compiler/index.js";
|
|
3
|
+
import type { ImportSource } from "../../compiler/utils/import_source.js";
|
|
4
|
+
import type { BuildConfig, BuildDevConfig } from "../../config/build.js";
|
|
5
|
+
import type { FileCssCache } from "../utils/cache/index.js";
|
|
6
|
+
import type { PluginOptions as BasePluginOptions } from "../utils/compiler.js";
|
|
7
|
+
import type { TransformFilter } from "../utils/filter.js";
|
|
8
|
+
import type { SourcemapSidecar } from "../utils/sidecar/index.js";
|
|
9
|
+
import type { PluginOptions, WebpackConfiguration } from "./types.js";
|
|
10
|
+
export declare const nextRegistry: {
|
|
11
|
+
setEntry<T>(id: string, entry: T): void;
|
|
12
|
+
getEntry<T>(id: string): T | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const PRECOLLECT_CACHE_DIRS: {
|
|
15
|
+
dev: string;
|
|
16
|
+
prod: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const NEXT_COMPILER_IDS: {
|
|
19
|
+
turbopack: string;
|
|
20
|
+
webpackServer: string;
|
|
21
|
+
webpackClient: string;
|
|
22
|
+
};
|
|
23
|
+
export type { PluginCompiler };
|
|
24
|
+
export type NextLoaderState = {
|
|
25
|
+
compiler: PluginCompiler;
|
|
26
|
+
filter: TransformFilter;
|
|
27
|
+
dev: boolean;
|
|
28
|
+
isServer: boolean;
|
|
29
|
+
configHash: string;
|
|
30
|
+
devCssHref: string | null;
|
|
31
|
+
cssEntryImportPath: string;
|
|
32
|
+
cssCache: Pick<FileCssCache, 'setFileCss'> | null;
|
|
33
|
+
};
|
|
34
|
+
export type NextWebpackEntryValue = string | string[] | {
|
|
35
|
+
import?: string | string[];
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
export declare function getTransformLoaderPath(): string;
|
|
39
|
+
export declare function getNextCacheDir(rootDir: string, cacheDir?: string): string;
|
|
40
|
+
export declare function getNextPrecollectCacheSubdir(dev: boolean): string;
|
|
41
|
+
export declare function createNextBuildConfig(options: PluginOptions): BuildConfig;
|
|
42
|
+
export declare function createNextBuildDevConfig(options: PluginOptions): BuildDevConfig | null;
|
|
43
|
+
export declare function createNextConfigHash(buildConfig: BuildConfig, dev: boolean, importSources?: readonly ImportSource[] | null): string;
|
|
44
|
+
export declare function createSerializableImportSources(importSources: readonly ImportSource[] | null | undefined): ImportSource[] | undefined;
|
|
45
|
+
export declare function resolveNextCompilerOptions(options: PluginOptions, sidecar: SourcemapSidecar | null, buildConfig: BuildConfig, buildDevConfig: BuildDevConfig | null, dev: boolean): BasePluginOptions;
|
|
46
|
+
export declare function removeUndefinedValues<T>(value: T): T;
|
|
47
|
+
export declare function prependClientEntry(entry: unknown, moduleId: string): unknown;
|
|
48
|
+
export declare function prependEntryValue(entry: NextWebpackEntryValue, moduleId: string): NextWebpackEntryValue;
|
|
49
|
+
export declare function isAppLayoutFile(filePath: string): boolean;
|
|
50
|
+
export declare function hasCssMarker(source: string, marker: string): boolean;
|
|
51
|
+
export declare function replaceCssMarker(source: string, marker: string, css: string): string;
|
|
52
|
+
export declare function addAliases(config: WebpackConfiguration, aliases: Record<string, string>): void;
|
|
53
|
+
export declare function addWebpackPlugin(config: WebpackConfiguration, plugin: WebpackPluginInstance): void;
|
|
54
|
+
export declare function replaceCssMarkerAsset(args: {
|
|
55
|
+
compiler: Compiler;
|
|
56
|
+
compilation: Compilation;
|
|
57
|
+
css: string;
|
|
58
|
+
marker: string;
|
|
59
|
+
}): boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type CompilerExtractCssArgs, type CssExtractRule } from "../../../compiler/extract/index.js";
|
|
2
|
+
export type FileCssCacheRule = CssExtractRule;
|
|
3
|
+
export type FileCssCacheRecord = {
|
|
4
|
+
filePath: string;
|
|
5
|
+
contentHash: string;
|
|
6
|
+
configHash: string;
|
|
7
|
+
rules: FileCssCacheRule[];
|
|
8
|
+
updatedAt: number;
|
|
9
|
+
};
|
|
10
|
+
export type SetFileCssArgs = {
|
|
11
|
+
filePath: string;
|
|
12
|
+
contentHash: string;
|
|
13
|
+
configHash: string;
|
|
14
|
+
rules: FileCssCacheRule[];
|
|
15
|
+
};
|
|
16
|
+
export type GetFileCssArgs = CompilerExtractCssArgs & {
|
|
17
|
+
configHash?: string;
|
|
18
|
+
};
|
|
19
|
+
export type FileCssCacheArgs = {
|
|
20
|
+
cacheDir: string;
|
|
21
|
+
cacheSubdir: string;
|
|
22
|
+
};
|
|
23
|
+
export type FileCssCache = ReturnType<typeof createFileCssCache>;
|
|
24
|
+
export declare function createFileCssCache(args: FileCssCacheArgs): {
|
|
25
|
+
rootDir: string;
|
|
26
|
+
filesDir: string;
|
|
27
|
+
setFileCss: (item: SetFileCssArgs) => void;
|
|
28
|
+
getCss: (args?: GetFileCssArgs) => string;
|
|
29
|
+
getRules: (args?: GetFileCssArgs) => CssExtractRule[];
|
|
30
|
+
clear: () => void;
|
|
31
|
+
invalidateFile: (filePath: string) => void;
|
|
32
|
+
};
|
|
33
|
+
export declare function createFileCssContentHash(code: string): string;
|
|
34
|
+
export declare function createFileCssConfigHash(config: unknown): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PluginCompiler } from "../compiler.js";
|
|
2
|
+
export declare function getPluginCacheFilePath(compiler: PluginCompiler, fileName: string): string;
|
|
3
|
+
export declare function writeCacheFile(cacheDir: string, fileName: string, content: string): string;
|
|
4
|
+
export declare function writePluginCacheFile(compiler: PluginCompiler, fileName: string, content: string): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Compiler, CompilerCssOptions, CompilerOptions, CompilerRuntimeMode } from "../../compiler/index.js";
|
|
2
|
+
import type { PluginCssOutputOptions } from "./cssOutput.js";
|
|
3
|
+
import { type TransformFilterOptions } from "./filter.js";
|
|
4
|
+
import type { BundlerSourceMap } from "./sourcemap.js";
|
|
5
|
+
export type PluginCssOptions = CompilerCssOptions;
|
|
6
|
+
export { CssPropPresets } from "../../compiler/index.js";
|
|
7
|
+
export type { CompilerCssPropOptions } from "../../compiler/index.js";
|
|
8
|
+
export type PluginOptions = CompilerOptions & TransformFilterOptions & {
|
|
9
|
+
cacheDir?: string;
|
|
10
|
+
cssOutput?: PluginCssOutputOptions;
|
|
11
|
+
};
|
|
12
|
+
export type PluginCompiler = ReturnType<typeof createPluginCompiler>;
|
|
13
|
+
export type PluginCompilerArgs = {
|
|
14
|
+
dev: boolean;
|
|
15
|
+
projectDir: string;
|
|
16
|
+
cacheDir: string;
|
|
17
|
+
options: PluginOptions;
|
|
18
|
+
runtimeMode: CompilerRuntimeMode | null;
|
|
19
|
+
};
|
|
20
|
+
export declare function createCompilerId(name?: string): string;
|
|
21
|
+
export declare function getPluginCacheDir(projectDir: string, cacheDir?: string): string;
|
|
22
|
+
export declare function createPluginCompiler(args: PluginCompilerArgs): {
|
|
23
|
+
projectDir: string;
|
|
24
|
+
cacheDir: string;
|
|
25
|
+
dev: boolean;
|
|
26
|
+
compiler: {
|
|
27
|
+
compileDebug: (args: import("../../compiler/index.js").TransformDebugArgs) => import("../../compiler/index.js").TransformDebugResult | null;
|
|
28
|
+
compileDebugRSC: (args: import("../../compiler/index.js").TransformDebugArgs) => import("../../compiler/index.js").TransformDebugRscResult | null;
|
|
29
|
+
compileExtract: (args: import("../../compiler/index.js").TransformExtractArgs) => import("../../compiler/index.js").TransformExtractResult | null;
|
|
30
|
+
getExtractedCss: () => string;
|
|
31
|
+
invalidateFile: (_info: import("../../compiler/index.js").CompilerInvalidateFileInfo) => void;
|
|
32
|
+
};
|
|
33
|
+
filter: import("./filter.js").TransformFilter;
|
|
34
|
+
transform: (code: string, id: string, sourcemap?: BundlerSourceMap | null) => {
|
|
35
|
+
code: string;
|
|
36
|
+
map: string | null;
|
|
37
|
+
rules: unknown;
|
|
38
|
+
} | null;
|
|
39
|
+
};
|
|
40
|
+
export declare function invalidateFiles(compiler: Compiler, filePaths: Iterable<string>): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PLUGIN_NAME = "fluentic-style";
|
|
2
|
+
export declare const PLUGIN_CACHE_DIR = "node_modules/.cache/fluentic-style";
|
|
3
|
+
export declare const EXTRACTED_CSS_MARKER = ".__fluentic_style_css_marker__{--fluentic-style:0}";
|
|
4
|
+
export declare const BUNDLE_CSS_FILE = "bundle.css";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Targets, TransformOptions } from 'lightningcss';
|
|
2
|
+
export type CssOutputTargets = Targets | string | string[];
|
|
3
|
+
export type CssOutputOptions = {
|
|
4
|
+
targets?: CssOutputTargets;
|
|
5
|
+
vendorPrefixes?: boolean;
|
|
6
|
+
minify?: boolean;
|
|
7
|
+
lightningcss?: Partial<Omit<TransformOptions<Record<string, never>>, 'code' | 'filename' | 'minify' | 'targets'>>;
|
|
8
|
+
};
|
|
9
|
+
export type PluginCssOutputOptions = boolean | CssOutputOptions;
|
|
10
|
+
export declare function transformCssOutput(css: string, options: PluginCssOutputOptions | undefined, filename: string): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const DEFAULT_TRANSFORM_INCLUDE_PATTERN = "\\.[cm]?[jt]sx?$";
|
|
2
|
+
export declare const DEFAULT_TRANSFORM_INCLUDE: RegExp;
|
|
3
|
+
export declare const DEFAULT_TRANSFORM_EXCLUDE: RegExp;
|
|
4
|
+
export type FilterPattern = string | RegExp | Array<string | RegExp>;
|
|
5
|
+
export type TransformFilterOptions = {
|
|
6
|
+
include?: FilterPattern;
|
|
7
|
+
exclude?: FilterPattern;
|
|
8
|
+
};
|
|
9
|
+
export type TransformFilter = {
|
|
10
|
+
(id: string): boolean;
|
|
11
|
+
clear(): void;
|
|
12
|
+
};
|
|
13
|
+
export declare function normalizeModuleId(id: string): string;
|
|
14
|
+
export declare function createTransformFilter(options?: TransformFilterOptions): TransformFilter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./cache/index.js";
|
|
2
|
+
export * from "./compiler.js";
|
|
3
|
+
export * from "./constants.js";
|
|
4
|
+
export * from "./cssMarker.js";
|
|
5
|
+
export * from "./cssOutput.js";
|
|
6
|
+
export * from "./filter.js";
|
|
7
|
+
export * from "./injection.js";
|
|
8
|
+
export * from "./runtimeEntry.js";
|
|
9
|
+
export * from "./sourcemap.js";
|
|
10
|
+
export * from "./virtual.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function shouldInjectModuleImport(code: string, moduleId: string): boolean;
|
|
2
|
+
export declare function injectModuleImport(code: string, moduleId: string): string;
|
|
3
|
+
export declare function injectCodeAfterDirectivePrologue(code: string, injectedCode: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatError(msg: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CompilerRuntimeMode } from "../../compiler/index.js";
|
|
2
|
+
import type { BuildConfig, BuildDevConfig } from "../../config/build.js";
|
|
3
|
+
import type { PluginOptions } from "./compiler.js";
|
|
4
|
+
export declare function getStyleRuntimeMode(dev: boolean, rsc?: boolean): CompilerRuntimeMode;
|
|
5
|
+
export declare function getPluginBuildConfig(options: PluginOptions, dev?: boolean): BuildConfig;
|
|
6
|
+
export declare function getPluginBuildDevConfig(options: PluginOptions): BuildDevConfig | null;
|
|
7
|
+
export declare function getStyleEntryDefines(buildConfig: BuildConfig, buildDevConfig: BuildDevConfig | null, sidecarUrl: string | null, stringify?: boolean): Record<string, string>;
|
|
8
|
+
export declare function createStyleEntryGlobalSource(buildConfig: BuildConfig, buildDevConfig: BuildDevConfig | null, sidecarUrl: string | null): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sidecar.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Server } from 'node:http';
|
|
2
|
+
export declare const SIDECAR_HOST = "127.0.0.1";
|
|
3
|
+
export type CreateSidecarServerArgs = {
|
|
4
|
+
projectDir: string;
|
|
5
|
+
routes: Map<string, string>;
|
|
6
|
+
handlers?: Map<string, SidecarRouteHandler>;
|
|
7
|
+
};
|
|
8
|
+
export type SidecarRouteResponse = {
|
|
9
|
+
body: string | Buffer;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
};
|
|
12
|
+
export type SidecarRouteHandler = () => SidecarRouteResponse | null | Promise<SidecarRouteResponse | null>;
|
|
13
|
+
export type StartSidecarServerArgs = {
|
|
14
|
+
host?: string;
|
|
15
|
+
portFilePath: string;
|
|
16
|
+
server: Server;
|
|
17
|
+
};
|
|
18
|
+
export declare function createSidecarServer(args: CreateSidecarServerArgs): Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
19
|
+
export declare function startSidecarServer(args: StartSidecarServerArgs): Promise<number>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type SidecarRouteHandler } from "./server.js";
|
|
2
|
+
export type SourcemapSidecar = {
|
|
3
|
+
cacheDir: string;
|
|
4
|
+
projectDir: string;
|
|
5
|
+
ensureStarted(): Promise<void>;
|
|
6
|
+
getBaseUrl(): string | null;
|
|
7
|
+
getRouteUrl(routePath: string): string;
|
|
8
|
+
getSourceUrl(filePath: string, relativePath?: string | null): string;
|
|
9
|
+
registerSource(filePath: string, routePath: string): string;
|
|
10
|
+
registerRoute(routePath: string, handler: SidecarRouteHandler): string;
|
|
11
|
+
};
|
|
12
|
+
export type SourcemapSidecarArgs = {
|
|
13
|
+
cacheDir: string;
|
|
14
|
+
projectDir: string;
|
|
15
|
+
routes?: Record<string, SidecarRouteHandler>;
|
|
16
|
+
};
|
|
17
|
+
export declare function getSourcemapSidecar(args: SourcemapSidecarArgs): SourcemapSidecar;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type GetPortFilePathArgs = {
|
|
2
|
+
cacheDir: string;
|
|
3
|
+
};
|
|
4
|
+
export type GetRoutePathArgs = {
|
|
5
|
+
filePath: string;
|
|
6
|
+
projectDir: string;
|
|
7
|
+
relativePath?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type CreateSourceUrlArgs = {
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
routePath: string;
|
|
12
|
+
};
|
|
13
|
+
export type NormalizeRoutePathArgs = {
|
|
14
|
+
routePath: string;
|
|
15
|
+
};
|
|
16
|
+
export type ReadCachedPortArgs = {
|
|
17
|
+
filePath: string;
|
|
18
|
+
};
|
|
19
|
+
export type WriteCachedPortArgs = {
|
|
20
|
+
filePath: string;
|
|
21
|
+
port: number;
|
|
22
|
+
};
|
|
23
|
+
export type IsPortUnavailableErrorArgs = {
|
|
24
|
+
error: unknown;
|
|
25
|
+
};
|
|
26
|
+
export declare function getPortFilePath(args: GetPortFilePathArgs): string;
|
|
27
|
+
export declare function getRoutePath(args: GetRoutePathArgs): string;
|
|
28
|
+
export declare function normalizeSidecarRoutePath(args: NormalizeRoutePathArgs): string;
|
|
29
|
+
export declare function createSourceUrl(args: CreateSourceUrlArgs): string;
|
|
30
|
+
export declare function getRequestPathname(url: string | undefined): string | null;
|
|
31
|
+
export declare function readCachedPort(args: ReadCachedPortArgs): number | null;
|
|
32
|
+
export declare function writeCachedPort(args: WriteCachedPortArgs): void;
|
|
33
|
+
export declare function isPortUnavailableError(args: IsPortUnavailableErrorArgs): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CompilerOptions, DevSourcemapMode } from "../../compiler/index.js";
|
|
2
|
+
import type { BabelTransformSourceMap } from "../../compiler/transform/index.js";
|
|
3
|
+
import { type GetSourcemapFilePathFn } from "../../compiler/utils/sourcemap.js";
|
|
4
|
+
import type { SourcemapSidecar } from "./sidecar/index.js";
|
|
5
|
+
export type BundlerSourceMap = BabelTransformSourceMap | undefined;
|
|
6
|
+
export declare function parseBundlerSourceMap(map: string | null | undefined): any;
|
|
7
|
+
export declare function resolveDevSourcemapMode(mode: DevSourcemapMode | undefined, dev: boolean): DevSourcemapMode;
|
|
8
|
+
export declare function resolvePluginSourcemapFilePath(getSourcemapFilePath: GetSourcemapFilePathFn | undefined, sourcemapSidecar: SourcemapSidecar | null): GetSourcemapFilePathFn;
|
|
9
|
+
export declare function resolvePluginSourcemapOptions<T extends CompilerOptions>(options: T, sourcemapSidecar: SourcemapSidecar | null): T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const RUNTIME_MODULE_ID = "virtual:fluentic-style";
|
|
2
|
+
export declare const CSS_MODULE_ID = "virtual:fluentic-style.css";
|
|
3
|
+
export declare const RESOLVED_RUNTIME_MODULE_ID = "\0virtual:fluentic-style";
|
|
4
|
+
export declare const RESOLVED_CSS_MODULE_ID = "\0virtual:fluentic-style.css";
|
|
5
|
+
export declare const VIRTUAL_MODULE_REQUEST_PATTERN: string;
|
|
6
|
+
export declare const VIRTUAL_MODULE_REQUEST_REGEX: RegExp;
|
|
7
|
+
export declare function createRuntimeModuleSource(extract: boolean, cssModuleId?: string | null): string;
|
|
8
|
+
export declare function createRuntimeImport(): string;
|
|
9
|
+
export declare function prependRuntimeImport(code: string): string;
|
|
10
|
+
export declare function isVirtualModuleRequest(id: string, moduleId: string): boolean;
|
|
11
|
+
export declare function getVirtualModuleId(id: string): "\0virtual:fluentic-style" | "\0virtual:fluentic-style.css" | null;
|
|
12
|
+
export declare function loadVirtualModule(id: string, extract: boolean, cssModuleId: string | null): string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TailwindSelectors } from "../selectors.js";
|
|
2
|
+
import type { TailwindStyleConfig, TailwindTheme } from "../types.js";
|
|
3
|
+
import type { TailwindClassNameFor } from "./types.js";
|
|
4
|
+
export declare function createTailwindClassNamePreset<const Theme extends TailwindTheme>(config: TailwindStyleConfig<Theme>): {
|
|
5
|
+
selectors: typeof TailwindSelectors;
|
|
6
|
+
transform: ReturnType<typeof createTailwindClassNameTransform<Theme>>;
|
|
7
|
+
};
|
|
8
|
+
export declare function createTailwindClassNameTransform<const Theme extends TailwindTheme = TailwindTheme>(config?: TailwindStyleConfig<Theme>): import("../../../index.js").ClassNameTransform<TailwindClassNameFor<Theme>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TOKEN_ID } from "../../../style/token.js";
|
|
2
|
+
import type { TailwindTheme } from "../types.js";
|
|
3
|
+
type ScaleKey = string | number;
|
|
4
|
+
type ScaleLeaf = ((...args: any[]) => unknown) | {
|
|
5
|
+
readonly [TOKEN_ID]: string;
|
|
6
|
+
};
|
|
7
|
+
type KebabCaseRest<Value extends string> = Value extends `${infer Head}${infer Tail}` ? Head extends Lowercase<Head> ? `${Head}${KebabCaseRest<Tail>}` : `-${Lowercase<Head>}${KebabCaseRest<Tail>}` : Value;
|
|
8
|
+
type KebabCase<Value extends string> = Value extends `${infer Head}${infer Tail}` ? `${Lowercase<Head>}${KebabCaseRest<Tail>}` : Value;
|
|
9
|
+
type ScaleClassKey<Key extends ScaleKey> = Key extends string ? KebabCase<Key> : `${Key}`;
|
|
10
|
+
type KnownScaleKeys<Scale> = keyof NonNullable<Scale> extends infer Key ? Key extends ScaleKey ? string extends Key ? never : number extends Key ? never : Key : never : never;
|
|
11
|
+
type ScaleClassPath<Scale> = Scale extends unknown ? NonNullable<Scale> extends infer ResolvedScale ? {
|
|
12
|
+
[Key in Extract<KnownScaleKeys<ResolvedScale>, ScaleKey>]: ResolvedScale[Key] extends ScaleLeaf ? ScaleClassKey<Key> : ResolvedScale[Key] extends Record<ScaleKey, unknown> ? `${ScaleClassKey<Key>}-${Extract<ScaleClassPath<ResolvedScale[Key]>, string>}` : ScaleClassKey<Key>;
|
|
13
|
+
}[Extract<KnownScaleKeys<ResolvedScale>, ScaleKey>] : never : never;
|
|
14
|
+
type ScaleValue<Scale> = ScaleClassPath<Scale>;
|
|
15
|
+
type ArbitraryValue = `[${string}]`;
|
|
16
|
+
type ColorLiteral = 'transparent' | 'current' | 'black' | 'white';
|
|
17
|
+
type LengthLiteral = 'auto' | 'full' | 'screen' | 'min' | 'max' | 'fit' | '0';
|
|
18
|
+
type ArbitraryClassName = `[${string}:${string}]`;
|
|
19
|
+
type TailwindStaticClassName = 'block' | 'inline-block' | 'inline-flex' | 'flex' | 'grid' | 'hidden' | 'relative' | 'absolute' | 'fixed' | 'sticky' | 'items-start' | 'items-end' | 'items-center' | 'items-baseline' | 'items-stretch' | 'justify-start' | 'justify-end' | 'justify-center' | 'justify-between' | 'justify-around' | 'justify-evenly' | 'flex-row' | 'flex-row-reverse' | 'flex-col' | 'flex-col-reverse' | 'flex-wrap' | 'flex-wrap-reverse' | 'shrink-0' | 'overflow-hidden' | 'overflow-auto' | 'overflow-x-hidden' | 'overflow-x-auto' | 'overflow-y-hidden' | 'overflow-y-auto' | 'cursor-pointer' | 'outline-none' | 'whitespace-nowrap' | 'min-w-0' | 'justify-self-end';
|
|
20
|
+
type TailwindSpacingClassName<Theme extends TailwindTheme> = `gap-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `gap-x-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `gap-y-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `mt-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `m-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `mx-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `my-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `p-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `px-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `py-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `pt-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `pr-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `pb-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `pl-${ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}`;
|
|
21
|
+
type TailwindSizeClassName<Theme extends TailwindTheme> = `w-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `max-w-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `min-w-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `min-h-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `h-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}` | `size-${ScaleValue<Theme['sizes']> | ScaleValue<Theme['spacing']> | ArbitraryValue | LengthLiteral}`;
|
|
22
|
+
type TailwindColorClassName<Theme extends TailwindTheme> = `bg-${ScaleValue<Theme['colors']> | ArbitraryValue | ColorLiteral}` | `text-${ScaleValue<Theme['colors']> | ArbitraryValue | ColorLiteral}` | `border-${ScaleValue<Theme['colors']> | ArbitraryValue | ColorLiteral}` | `outline-${ScaleValue<Theme['colors']> | ArbitraryValue | ColorLiteral}`;
|
|
23
|
+
type TailwindTypographyClassName<Theme extends TailwindTheme> = `text-${ScaleValue<Theme['fontSizes']> | ArbitraryValue}` | `font-${ScaleValue<Theme['fontWeights']> | ArbitraryValue}` | `leading-${ScaleValue<Theme['lineHeights']> | ArbitraryValue}`;
|
|
24
|
+
type TailwindVisualClassName<Theme extends TailwindTheme> = `rounded-${ScaleValue<Theme['radii']> | ArbitraryValue}` | `shadow-${ScaleValue<Theme['shadows']> | ArbitraryValue}` | `border-${string}`;
|
|
25
|
+
export type TailwindClassNameFor<Theme extends TailwindTheme> = TailwindStaticClassName | TailwindSpacingClassName<Theme> | TailwindSizeClassName<Theme> | TailwindColorClassName<Theme> | TailwindTypographyClassName<Theme> | TailwindVisualClassName<Theme> | ArbitraryClassName;
|
|
26
|
+
export type TailwindClassName = TailwindClassNameFor<TailwindTheme>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const TailwindResponsiveSelectors: {
|
|
2
|
+
sm: import("../../selector/index.js").Selector<"@media (min-width: 640px)", string>;
|
|
3
|
+
md: import("../../selector/index.js").Selector<"@media (min-width: 768px)", string>;
|
|
4
|
+
lg: import("../../selector/index.js").Selector<"@media (min-width: 1024px)", string>;
|
|
5
|
+
xl: import("../../selector/index.js").Selector<"@media (min-width: 1280px)", string>;
|
|
6
|
+
xxl: import("../../selector/index.js").Selector<"@media (min-width: 1536px)", string>;
|
|
7
|
+
};
|
|
8
|
+
export declare const TailwindDarkSelector: import("../../selector/index.js").Selector<":where(.dark, .dark *)", string>;
|
|
9
|
+
export declare const TailwindSelectors: {
|
|
10
|
+
dark: import("../../selector/index.js").Selector<":where(.dark, .dark *)", string>;
|
|
11
|
+
sm: import("../../selector/index.js").Selector<"@media (min-width: 640px)", string>;
|
|
12
|
+
md: import("../../selector/index.js").Selector<"@media (min-width: 768px)", string>;
|
|
13
|
+
lg: import("../../selector/index.js").Selector<"@media (min-width: 1024px)", string>;
|
|
14
|
+
xl: import("../../selector/index.js").Selector<"@media (min-width: 1280px)", string>;
|
|
15
|
+
xxl: import("../../selector/index.js").Selector<"@media (min-width: 1536px)", string>;
|
|
16
|
+
media: import("../../selector/index.js").Selector<"@media $$", string>;
|
|
17
|
+
container: import("../../selector/index.js").Selector<"@container $$", string>;
|
|
18
|
+
supports: import("../../selector/index.js").Selector<"@supports $$", string>;
|
|
19
|
+
attr: import("../../selector/index.js").Selector<"$", string>;
|
|
20
|
+
select: import("../../selector/index.js").Selector<"$$", string>;
|
|
21
|
+
merge: import("../../selector/index.js").Selector<"...", string>;
|
|
22
|
+
not: import("../../selector/index.js").Selector<":not($$)", string>;
|
|
23
|
+
is: import("../../selector/index.js").Selector<":is($$)", string>;
|
|
24
|
+
where: import("../../selector/index.js").Selector<":where($$)", string>;
|
|
25
|
+
has: import("../../selector/index.js").Selector<":has($$)", string>;
|
|
26
|
+
nthChild: import("../../selector/index.js").Selector<":nth-child($)", string>;
|
|
27
|
+
nthLastChild: import("../../selector/index.js").Selector<":nth-last-child($)", string>;
|
|
28
|
+
nthOfType: import("../../selector/index.js").Selector<":nth-of-type($)", string>;
|
|
29
|
+
nthLastOfType: import("../../selector/index.js").Selector<":nth-last-of-type($)", string>;
|
|
30
|
+
lang: import("../../selector/index.js").Selector<":lang($)", string>;
|
|
31
|
+
dir: import("../../selector/index.js").Selector<":dir($)", string>;
|
|
32
|
+
before: import("../../selector/index.js").Selector<"::before", string>;
|
|
33
|
+
after: import("../../selector/index.js").Selector<"::after", string>;
|
|
34
|
+
hover: import("../../selector/index.js").Selector<":hover", string>;
|
|
35
|
+
active: import("../../selector/index.js").Selector<":active", string>;
|
|
36
|
+
focus: import("../../selector/index.js").Selector<":focus", string>;
|
|
37
|
+
focusVisible: import("../../selector/index.js").Selector<":focus-visible", string>;
|
|
38
|
+
focusWithin: import("../../selector/index.js").Selector<":focus-within", string>;
|
|
39
|
+
visited: import("../../selector/index.js").Selector<":visited", string>;
|
|
40
|
+
link: import("../../selector/index.js").Selector<":link", string>;
|
|
41
|
+
anyLink: import("../../selector/index.js").Selector<":any-link", string>;
|
|
42
|
+
target: import("../../selector/index.js").Selector<":target", string>;
|
|
43
|
+
disabled: import("../../selector/index.js").Selector<":disabled", string>;
|
|
44
|
+
enabled: import("../../selector/index.js").Selector<":enabled", string>;
|
|
45
|
+
checked: import("../../selector/index.js").Selector<":checked", string>;
|
|
46
|
+
indeterminate: import("../../selector/index.js").Selector<":indeterminate", string>;
|
|
47
|
+
invalid: import("../../selector/index.js").Selector<":invalid", string>;
|
|
48
|
+
valid: import("../../selector/index.js").Selector<":valid", string>;
|
|
49
|
+
required: import("../../selector/index.js").Selector<":required", string>;
|
|
50
|
+
optional: import("../../selector/index.js").Selector<":optional", string>;
|
|
51
|
+
readOnly: import("../../selector/index.js").Selector<":read-only", string>;
|
|
52
|
+
readWrite: import("../../selector/index.js").Selector<":read-write", string>;
|
|
53
|
+
inRange: import("../../selector/index.js").Selector<":in-range", string>;
|
|
54
|
+
outOfRange: import("../../selector/index.js").Selector<":out-of-range", string>;
|
|
55
|
+
default: import("../../selector/index.js").Selector<":default", string>;
|
|
56
|
+
placeholderShown: import("../../selector/index.js").Selector<":placeholder-shown", string>;
|
|
57
|
+
autofill: import("../../selector/index.js").Selector<":autofill", string>;
|
|
58
|
+
empty: import("../../selector/index.js").Selector<":empty", string>;
|
|
59
|
+
root: import("../../selector/index.js").Selector<":root", string>;
|
|
60
|
+
firstChild: import("../../selector/index.js").Selector<":first-child", string>;
|
|
61
|
+
lastChild: import("../../selector/index.js").Selector<":last-child", string>;
|
|
62
|
+
onlyChild: import("../../selector/index.js").Selector<":only-child", string>;
|
|
63
|
+
firstOfType: import("../../selector/index.js").Selector<":first-of-type", string>;
|
|
64
|
+
lastOfType: import("../../selector/index.js").Selector<":last-of-type", string>;
|
|
65
|
+
onlyOfType: import("../../selector/index.js").Selector<":only-of-type", string>;
|
|
66
|
+
fullscreen: import("../../selector/index.js").Selector<":fullscreen", string>;
|
|
67
|
+
modal: import("../../selector/index.js").Selector<":modal", string>;
|
|
68
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MergeTailwindTheme, TailwindDefaultTheme, TailwindStyleConfig, TailwindStyleTransformOptions, TailwindTheme } from "../types.js";
|
|
2
|
+
import type { TailwindExtendedStyle, TailwindStyle } from "./types.js";
|
|
3
|
+
export declare function createTailwindStyleTransform<const Theme extends TailwindTheme = TailwindTheme>(config?: TailwindStyleConfig<Theme>): import("../../../index.js").StyleTransform<TailwindStyle<Theme>>;
|
|
4
|
+
export declare function createTailwindExtendedStyleTransform<const Theme extends TailwindTheme = TailwindTheme>(config?: TailwindStyleConfig<Theme>): import("../../../index.js").StyleTransform<TailwindExtendedStyle<Theme>>;
|
|
5
|
+
export declare const defaultTailwindStyleConfig: TailwindStyleConfig<TailwindDefaultTheme>;
|
|
6
|
+
export declare function createTailwindStyleConfig<const Theme extends TailwindTheme>(options: TailwindStyleTransformOptions<Theme>): TailwindStyleConfig<Theme>;
|
|
7
|
+
export declare function createDefaultedTailwindStyleConfig<const Theme extends TailwindTheme>(options: TailwindStyleTransformOptions<Theme>): TailwindStyleConfig<MergeTailwindTheme<TailwindDefaultTheme, Theme>>;
|
|
8
|
+
export declare function mergeTailwindStyleConfig<const BaseTheme extends TailwindTheme, const OverrideTheme extends TailwindTheme>(base: TailwindStyleConfig<BaseTheme>, override: TailwindStyleConfig<OverrideTheme>): TailwindStyleConfig<BaseTheme & OverrideTheme>;
|