@tamagui/style-grammar 0.0.0-bootstrap.0 → 3.0.0-beta.643.1
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/LICENSE +21 -0
- package/README.md +33 -1
- package/dist/cjs/backgroundFamily.cjs +176 -0
- package/dist/cjs/backgroundFamily.native.cjs +195 -0
- package/dist/cjs/backgroundFamily.native.js +197 -0
- package/dist/cjs/backgroundFamily.native.js.map +1 -0
- package/dist/cjs/borderFamily.cjs +169 -0
- package/dist/cjs/borderFamily.native.cjs +247 -0
- package/dist/cjs/borderFamily.native.js +249 -0
- package/dist/cjs/borderFamily.native.js.map +1 -0
- package/dist/cjs/candidate.cjs +608 -0
- package/dist/cjs/candidate.native.cjs +821 -0
- package/dist/cjs/candidate.native.js +823 -0
- package/dist/cjs/candidate.native.js.map +1 -0
- package/dist/cjs/candidateTarget.cjs +50 -0
- package/dist/cjs/candidateTarget.native.cjs +88 -0
- package/dist/cjs/candidateTarget.native.js +90 -0
- package/dist/cjs/candidateTarget.native.js.map +1 -0
- package/dist/cjs/clauseCapability.cjs +130 -0
- package/dist/cjs/clauseCapability.native.cjs +152 -0
- package/dist/cjs/clauseCapability.native.js +154 -0
- package/dist/cjs/clauseCapability.native.js.map +1 -0
- package/dist/cjs/clausePrecedence.cjs +153 -0
- package/dist/cjs/clausePrecedence.native.cjs +204 -0
- package/dist/cjs/clausePrecedence.native.js +206 -0
- package/dist/cjs/clausePrecedence.native.js.map +1 -0
- package/dist/cjs/clauseSources.cjs +47 -0
- package/dist/cjs/clauseSources.native.cjs +49 -0
- package/dist/cjs/clauseSources.native.js +51 -0
- package/dist/cjs/clauseSources.native.js.map +1 -0
- package/dist/cjs/config.cjs +130 -0
- package/dist/cjs/config.native.cjs +185 -0
- package/dist/cjs/config.native.js +187 -0
- package/dist/cjs/config.native.js.map +1 -0
- package/dist/cjs/evaluateProgram.cjs +65 -0
- package/dist/cjs/evaluateProgram.native.cjs +70 -0
- package/dist/cjs/evaluateProgram.native.js +72 -0
- package/dist/cjs/evaluateProgram.native.js.map +1 -0
- package/dist/cjs/fontShorthand.cjs +207 -0
- package/dist/cjs/fontShorthand.native.cjs +260 -0
- package/dist/cjs/fontShorthand.native.js +262 -0
- package/dist/cjs/fontShorthand.native.js.map +1 -0
- package/dist/cjs/geometricShorthand.cjs +122 -0
- package/dist/cjs/geometricShorthand.native.cjs +128 -0
- package/dist/cjs/geometricShorthand.native.js +130 -0
- package/dist/cjs/geometricShorthand.native.js.map +1 -0
- package/dist/cjs/index.cjs +19 -0
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +23 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/lowerProgram.cjs +205 -0
- package/dist/cjs/lowerProgram.native.cjs +257 -0
- package/dist/cjs/lowerProgram.native.js +259 -0
- package/dist/cjs/lowerProgram.native.js.map +1 -0
- package/dist/cjs/mergeFlatValues.cjs +50 -0
- package/dist/cjs/mergeFlatValues.native.cjs +71 -0
- package/dist/cjs/mergeFlatValues.native.js +73 -0
- package/dist/cjs/mergeFlatValues.native.js.map +1 -0
- package/dist/cjs/modifierRegistry.cjs +246 -0
- package/dist/cjs/modifierRegistry.native.cjs +426 -0
- package/dist/cjs/modifierRegistry.native.js +428 -0
- package/dist/cjs/modifierRegistry.native.js.map +1 -0
- package/dist/cjs/payloadShape.cjs +69 -0
- package/dist/cjs/payloadShape.native.cjs +71 -0
- package/dist/cjs/payloadShape.native.js +73 -0
- package/dist/cjs/payloadShape.native.js.map +1 -0
- package/dist/cjs/programEligibility.cjs +46 -0
- package/dist/cjs/programEligibility.native.cjs +48 -0
- package/dist/cjs/programEligibility.native.js +50 -0
- package/dist/cjs/programEligibility.native.js.map +1 -0
- package/dist/cjs/programHash.cjs +86 -0
- package/dist/cjs/programHash.native.cjs +106 -0
- package/dist/cjs/programHash.native.js +108 -0
- package/dist/cjs/programHash.native.js.map +1 -0
- package/dist/cjs/programs.cjs +128 -0
- package/dist/cjs/programs.native.cjs +220 -0
- package/dist/cjs/programs.native.js +222 -0
- package/dist/cjs/programs.native.js.map +1 -0
- package/dist/cjs/registry.cjs +629 -0
- package/dist/cjs/registry.native.cjs +635 -0
- package/dist/cjs/registry.native.js +637 -0
- package/dist/cjs/registry.native.js.map +1 -0
- package/dist/cjs/resolvePayload.cjs +296 -0
- package/dist/cjs/resolvePayload.native.cjs +302 -0
- package/dist/cjs/resolvePayload.native.js +304 -0
- package/dist/cjs/resolvePayload.native.js.map +1 -0
- package/dist/cjs/runtime.cjs +50 -0
- package/dist/cjs/runtime.native.cjs +52 -0
- package/dist/cjs/runtime.native.js +54 -0
- package/dist/cjs/runtime.native.js.map +1 -0
- package/dist/cjs/safeAreaVariables.cjs +42 -0
- package/dist/cjs/safeAreaVariables.native.cjs +44 -0
- package/dist/cjs/safeAreaVariables.native.js +46 -0
- package/dist/cjs/safeAreaVariables.native.js.map +1 -0
- package/dist/cjs/scanFlatValue.cjs +181 -0
- package/dist/cjs/scanFlatValue.native.cjs +183 -0
- package/dist/cjs/scanFlatValue.native.js +185 -0
- package/dist/cjs/scanFlatValue.native.js.map +1 -0
- package/dist/cjs/serializePayload.cjs +149 -0
- package/dist/cjs/serializePayload.native.cjs +187 -0
- package/dist/cjs/serializePayload.native.js +189 -0
- package/dist/cjs/serializePayload.native.js.map +1 -0
- package/dist/cjs/stateModifiers.cjs +43 -0
- package/dist/cjs/stateModifiers.native.cjs +45 -0
- package/dist/cjs/stateModifiers.native.js +47 -0
- package/dist/cjs/stateModifiers.native.js.map +1 -0
- package/dist/cjs/states.cjs +97 -0
- package/dist/cjs/states.native.cjs +131 -0
- package/dist/cjs/states.native.js +133 -0
- package/dist/cjs/states.native.js.map +1 -0
- package/dist/cjs/table.cjs +54 -0
- package/dist/cjs/table.native.cjs +135 -0
- package/dist/cjs/table.native.js +137 -0
- package/dist/cjs/table.native.js.map +1 -0
- package/dist/cjs/textDecorationFamily.cjs +129 -0
- package/dist/cjs/textDecorationFamily.native.cjs +199 -0
- package/dist/cjs/textDecorationFamily.native.js +201 -0
- package/dist/cjs/textDecorationFamily.native.js.map +1 -0
- package/dist/cjs/tooling.cjs +26 -0
- package/dist/cjs/tooling.native.cjs +28 -0
- package/dist/cjs/tooling.native.js +30 -0
- package/dist/cjs/tooling.native.js.map +1 -0
- package/dist/cjs/toolingAnnotations.cjs +105 -0
- package/dist/cjs/toolingAnnotations.native.cjs +133 -0
- package/dist/cjs/toolingAnnotations.native.js +135 -0
- package/dist/cjs/toolingAnnotations.native.js.map +1 -0
- package/dist/cjs/toolingDiagnostics.cjs +459 -0
- package/dist/cjs/toolingDiagnostics.native.cjs +788 -0
- package/dist/cjs/toolingDiagnostics.native.js +790 -0
- package/dist/cjs/toolingDiagnostics.native.js.map +1 -0
- package/dist/cjs/toolingRegistry.cjs +159 -0
- package/dist/cjs/toolingRegistry.native.cjs +164 -0
- package/dist/cjs/toolingRegistry.native.js +166 -0
- package/dist/cjs/toolingRegistry.native.js.map +1 -0
- package/dist/cjs/transformFamily.cjs +425 -0
- package/dist/cjs/transformFamily.native.cjs +517 -0
- package/dist/cjs/transformFamily.native.js +519 -0
- package/dist/cjs/transformFamily.native.js.map +1 -0
- package/dist/cjs/transition.cjs +459 -0
- package/dist/cjs/transition.native.cjs +499 -0
- package/dist/cjs/transition.native.js +501 -0
- package/dist/cjs/transition.native.js.map +1 -0
- package/dist/cjs/transitionAlign.cjs +115 -0
- package/dist/cjs/transitionAlign.native.cjs +154 -0
- package/dist/cjs/transitionAlign.native.js +156 -0
- package/dist/cjs/transitionAlign.native.js.map +1 -0
- package/dist/cjs/transitionLegacy.cjs +217 -0
- package/dist/cjs/transitionLegacy.native.cjs +260 -0
- package/dist/cjs/transitionLegacy.native.js +262 -0
- package/dist/cjs/transitionLegacy.native.js.map +1 -0
- package/dist/cjs/transitionNative.cjs +281 -0
- package/dist/cjs/transitionNative.native.cjs +285 -0
- package/dist/cjs/transitionNative.native.js +287 -0
- package/dist/cjs/transitionNative.native.js.map +1 -0
- package/dist/cjs/unitlessNumbers.cjs +86 -0
- package/dist/cjs/unitlessNumbers.native.cjs +106 -0
- package/dist/cjs/unitlessNumbers.native.js +108 -0
- package/dist/cjs/unitlessNumbers.native.js.map +1 -0
- package/dist/cjs/v6ThemeNames.cjs +47 -0
- package/dist/cjs/v6ThemeNames.native.cjs +53 -0
- package/dist/cjs/v6ThemeNames.native.js +55 -0
- package/dist/cjs/v6ThemeNames.native.js.map +1 -0
- package/dist/cjs/valueParser.cjs +148 -0
- package/dist/cjs/valueParser.native.cjs +150 -0
- package/dist/cjs/valueParser.native.js +152 -0
- package/dist/cjs/valueParser.native.js.map +1 -0
- package/dist/cjs/valueTypes.cjs +38 -0
- package/dist/cjs/valueTypes.native.cjs +40 -0
- package/dist/cjs/valueTypes.native.js +42 -0
- package/dist/cjs/valueTypes.native.js.map +1 -0
- package/dist/esm/backgroundFamily.mjs +150 -0
- package/dist/esm/backgroundFamily.mjs.map +1 -0
- package/dist/esm/backgroundFamily.native.js +167 -0
- package/dist/esm/backgroundFamily.native.js.map +1 -0
- package/dist/esm/borderFamily.mjs +146 -0
- package/dist/esm/borderFamily.mjs.map +1 -0
- package/dist/esm/borderFamily.native.js +222 -0
- package/dist/esm/borderFamily.native.js.map +1 -0
- package/dist/esm/candidate.mjs +581 -0
- package/dist/esm/candidate.mjs.map +1 -0
- package/dist/esm/candidate.native.js +792 -0
- package/dist/esm/candidate.native.js.map +1 -0
- package/dist/esm/candidateTarget.mjs +29 -0
- package/dist/esm/candidateTarget.mjs.map +1 -0
- package/dist/esm/candidateTarget.native.js +65 -0
- package/dist/esm/candidateTarget.native.js.map +1 -0
- package/dist/esm/clauseCapability.mjs +107 -0
- package/dist/esm/clauseCapability.mjs.map +1 -0
- package/dist/esm/clauseCapability.native.js +127 -0
- package/dist/esm/clauseCapability.native.js.map +1 -0
- package/dist/esm/clausePrecedence.mjs +121 -0
- package/dist/esm/clausePrecedence.mjs.map +1 -0
- package/dist/esm/clausePrecedence.native.js +170 -0
- package/dist/esm/clausePrecedence.native.js.map +1 -0
- package/dist/esm/clauseSources.mjs +23 -0
- package/dist/esm/clauseSources.mjs.map +1 -0
- package/dist/esm/clauseSources.native.js +23 -0
- package/dist/esm/clauseSources.native.js.map +1 -0
- package/dist/esm/config.mjs +103 -0
- package/dist/esm/config.mjs.map +1 -0
- package/dist/esm/config.native.js +156 -0
- package/dist/esm/config.native.js.map +1 -0
- package/dist/esm/evaluateProgram.mjs +45 -0
- package/dist/esm/evaluateProgram.mjs.map +1 -0
- package/dist/esm/evaluateProgram.native.js +48 -0
- package/dist/esm/evaluateProgram.native.js.map +1 -0
- package/dist/esm/fontShorthand.mjs +184 -0
- package/dist/esm/fontShorthand.mjs.map +1 -0
- package/dist/esm/fontShorthand.native.js +235 -0
- package/dist/esm/fontShorthand.native.js.map +1 -0
- package/dist/esm/geometricShorthand.mjs +102 -0
- package/dist/esm/geometricShorthand.mjs.map +1 -0
- package/dist/esm/geometricShorthand.native.js +106 -0
- package/dist/esm/geometricShorthand.native.js.map +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.native.js +1 -0
- package/dist/esm/lowerProgram.mjs +182 -0
- package/dist/esm/lowerProgram.mjs.map +1 -0
- package/dist/esm/lowerProgram.native.js +232 -0
- package/dist/esm/lowerProgram.native.js.map +1 -0
- package/dist/esm/mergeFlatValues.mjs +27 -0
- package/dist/esm/mergeFlatValues.mjs.map +1 -0
- package/dist/esm/mergeFlatValues.native.js +46 -0
- package/dist/esm/mergeFlatValues.native.js.map +1 -0
- package/dist/esm/modifierRegistry.mjs +219 -0
- package/dist/esm/modifierRegistry.mjs.map +1 -0
- package/dist/esm/modifierRegistry.native.js +397 -0
- package/dist/esm/modifierRegistry.native.js.map +1 -0
- package/dist/esm/payloadShape.mjs +49 -0
- package/dist/esm/payloadShape.mjs.map +1 -0
- package/dist/esm/payloadShape.native.js +49 -0
- package/dist/esm/payloadShape.native.js.map +1 -0
- package/dist/esm/programEligibility.mjs +22 -0
- package/dist/esm/programEligibility.mjs.map +1 -0
- package/dist/esm/programEligibility.native.js +22 -0
- package/dist/esm/programEligibility.native.js.map +1 -0
- package/dist/esm/programHash.mjs +62 -0
- package/dist/esm/programHash.mjs.map +1 -0
- package/dist/esm/programHash.native.js +80 -0
- package/dist/esm/programHash.native.js.map +1 -0
- package/dist/esm/programs.mjs +103 -0
- package/dist/esm/programs.mjs.map +1 -0
- package/dist/esm/programs.native.js +193 -0
- package/dist/esm/programs.native.js.map +1 -0
- package/dist/esm/registry.mjs +595 -0
- package/dist/esm/registry.mjs.map +1 -0
- package/dist/esm/registry.native.js +599 -0
- package/dist/esm/registry.native.js.map +1 -0
- package/dist/esm/resolvePayload.mjs +273 -0
- package/dist/esm/resolvePayload.mjs.map +1 -0
- package/dist/esm/resolvePayload.native.js +277 -0
- package/dist/esm/resolvePayload.native.js.map +1 -0
- package/dist/esm/runtime.mjs +63 -0
- package/dist/esm/runtime.native.js +63 -0
- package/dist/esm/safeAreaVariables.mjs +18 -0
- package/dist/esm/safeAreaVariables.mjs.map +1 -0
- package/dist/esm/safeAreaVariables.native.js +18 -0
- package/dist/esm/safeAreaVariables.native.js.map +1 -0
- package/dist/esm/scanFlatValue.mjs +160 -0
- package/dist/esm/scanFlatValue.mjs.map +1 -0
- package/dist/esm/scanFlatValue.native.js +160 -0
- package/dist/esm/scanFlatValue.native.js.map +1 -0
- package/dist/esm/serializePayload.mjs +125 -0
- package/dist/esm/serializePayload.mjs.map +1 -0
- package/dist/esm/serializePayload.native.js +161 -0
- package/dist/esm/serializePayload.native.js.map +1 -0
- package/dist/esm/stateModifiers.mjs +19 -0
- package/dist/esm/stateModifiers.mjs.map +1 -0
- package/dist/esm/stateModifiers.native.js +19 -0
- package/dist/esm/stateModifiers.native.js.map +1 -0
- package/dist/esm/states.mjs +69 -0
- package/dist/esm/states.mjs.map +1 -0
- package/dist/esm/states.native.js +101 -0
- package/dist/esm/states.native.js.map +1 -0
- package/dist/esm/table.mjs +31 -0
- package/dist/esm/table.mjs.map +1 -0
- package/dist/esm/table.native.js +110 -0
- package/dist/esm/table.native.js.map +1 -0
- package/dist/esm/textDecorationFamily.mjs +106 -0
- package/dist/esm/textDecorationFamily.mjs.map +1 -0
- package/dist/esm/textDecorationFamily.native.js +174 -0
- package/dist/esm/textDecorationFamily.native.js.map +1 -0
- package/dist/esm/tooling.mjs +15 -0
- package/dist/esm/tooling.native.js +15 -0
- package/dist/esm/toolingAnnotations.mjs +85 -0
- package/dist/esm/toolingAnnotations.mjs.map +1 -0
- package/dist/esm/toolingAnnotations.native.js +111 -0
- package/dist/esm/toolingAnnotations.native.js.map +1 -0
- package/dist/esm/toolingDiagnostics.mjs +428 -0
- package/dist/esm/toolingDiagnostics.mjs.map +1 -0
- package/dist/esm/toolingDiagnostics.native.js +755 -0
- package/dist/esm/toolingDiagnostics.native.js.map +1 -0
- package/dist/esm/toolingRegistry.mjs +135 -0
- package/dist/esm/toolingRegistry.mjs.map +1 -0
- package/dist/esm/toolingRegistry.native.js +138 -0
- package/dist/esm/toolingRegistry.native.js.map +1 -0
- package/dist/esm/transformFamily.mjs +392 -0
- package/dist/esm/transformFamily.mjs.map +1 -0
- package/dist/esm/transformFamily.native.js +482 -0
- package/dist/esm/transformFamily.native.js.map +1 -0
- package/dist/esm/transition.mjs +434 -0
- package/dist/esm/transition.mjs.map +1 -0
- package/dist/esm/transition.native.js +472 -0
- package/dist/esm/transition.native.js.map +1 -0
- package/dist/esm/transitionAlign.mjs +95 -0
- package/dist/esm/transitionAlign.mjs.map +1 -0
- package/dist/esm/transitionAlign.native.js +132 -0
- package/dist/esm/transitionAlign.native.js.map +1 -0
- package/dist/esm/transitionLegacy.mjs +197 -0
- package/dist/esm/transitionLegacy.mjs.map +1 -0
- package/dist/esm/transitionLegacy.native.js +238 -0
- package/dist/esm/transitionLegacy.native.js.map +1 -0
- package/dist/esm/transitionNative.mjs +257 -0
- package/dist/esm/transitionNative.mjs.map +1 -0
- package/dist/esm/transitionNative.native.js +259 -0
- package/dist/esm/transitionNative.native.js.map +1 -0
- package/dist/esm/unitlessNumbers.mjs +65 -0
- package/dist/esm/unitlessNumbers.mjs.map +1 -0
- package/dist/esm/unitlessNumbers.native.js +83 -0
- package/dist/esm/unitlessNumbers.native.js.map +1 -0
- package/dist/esm/v6ThemeNames.mjs +23 -0
- package/dist/esm/v6ThemeNames.mjs.map +1 -0
- package/dist/esm/v6ThemeNames.native.js +27 -0
- package/dist/esm/v6ThemeNames.native.js.map +1 -0
- package/dist/esm/valueParser.mjs +125 -0
- package/dist/esm/valueParser.mjs.map +1 -0
- package/dist/esm/valueParser.native.js +125 -0
- package/dist/esm/valueParser.native.js.map +1 -0
- package/dist/esm/valueTypes.mjs +14 -0
- package/dist/esm/valueTypes.mjs.map +1 -0
- package/dist/esm/valueTypes.native.js +14 -0
- package/dist/esm/valueTypes.native.js.map +1 -0
- package/package.json +98 -4
- package/src/backgroundFamily.ts +182 -0
- package/src/borderFamily.ts +172 -0
- package/src/candidate.ts +691 -0
- package/src/candidateTarget.ts +67 -0
- package/src/clauseCapability.ts +209 -0
- package/src/clausePrecedence.ts +198 -0
- package/src/clauseSources.ts +29 -0
- package/src/config.ts +169 -0
- package/src/evaluateProgram.ts +91 -0
- package/src/fontShorthand.ts +177 -0
- package/src/geometricShorthand.ts +105 -0
- package/src/index.ts +1 -0
- package/src/lowerProgram.ts +398 -0
- package/src/modifierRegistry.ts +340 -0
- package/src/payloadShape.ts +92 -0
- package/src/programEligibility.ts +46 -0
- package/src/programHash.ts +128 -0
- package/src/programs.ts +95 -0
- package/src/registry.ts +367 -0
- package/src/resolvePayload.ts +480 -0
- package/src/runtime.ts +32 -0
- package/src/safeAreaVariables.ts +19 -0
- package/src/scanFlatValue.ts +327 -0
- package/src/serializePayload.ts +199 -0
- package/src/stateModifiers.ts +36 -0
- package/src/states.ts +128 -0
- package/src/table.ts +47 -0
- package/src/textDecorationFamily.ts +119 -0
- package/src/tooling.ts +8 -0
- package/src/toolingAnnotations.ts +151 -0
- package/src/toolingDiagnostics.ts +735 -0
- package/src/toolingRegistry.ts +130 -0
- package/src/transformFamily.ts +590 -0
- package/src/transition.ts +553 -0
- package/src/transitionAlign.ts +165 -0
- package/src/transitionLegacy.ts +237 -0
- package/src/transitionNative.ts +357 -0
- package/src/unitlessNumbers.ts +61 -0
- package/src/v6ThemeNames.ts +40 -0
- package/src/valueParser.ts +193 -0
- package/src/valueTypes.ts +136 -0
- package/types/backgroundFamily.d.ts +17 -0
- package/types/backgroundFamily.d.ts.map +11 -0
- package/types/borderFamily.d.ts +23 -0
- package/types/borderFamily.d.ts.map +11 -0
- package/types/candidate.d.ts +52 -0
- package/types/candidate.d.ts.map +11 -0
- package/types/candidateTarget.d.ts +32 -0
- package/types/candidateTarget.d.ts.map +11 -0
- package/types/clauseCapability.d.ts +69 -0
- package/types/clauseCapability.d.ts.map +11 -0
- package/types/clausePrecedence.d.ts +30 -0
- package/types/clausePrecedence.d.ts.map +11 -0
- package/types/clauseSources.d.ts +12 -0
- package/types/clauseSources.d.ts.map +11 -0
- package/types/config.d.ts +44 -0
- package/types/config.d.ts.map +11 -0
- package/types/evaluateProgram.d.ts +27 -0
- package/types/evaluateProgram.d.ts.map +11 -0
- package/types/fontShorthand.d.ts +25 -0
- package/types/fontShorthand.d.ts.map +11 -0
- package/types/geometricShorthand.d.ts +21 -0
- package/types/geometricShorthand.d.ts.map +11 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +11 -0
- package/types/lowerProgram.d.ts +73 -0
- package/types/lowerProgram.d.ts.map +11 -0
- package/types/mergeFlatValues.d.ts +14 -0
- package/types/mergeFlatValues.d.ts.map +11 -0
- package/types/modifierRegistry.d.ts +70 -0
- package/types/modifierRegistry.d.ts.map +11 -0
- package/types/payloadShape.d.ts +15 -0
- package/types/payloadShape.d.ts.map +11 -0
- package/types/programEligibility.d.ts +23 -0
- package/types/programEligibility.d.ts.map +11 -0
- package/types/programHash.d.ts +20 -0
- package/types/programHash.d.ts.map +11 -0
- package/types/programs.d.ts +18 -0
- package/types/programs.d.ts.map +11 -0
- package/types/registry.d.ts +24 -0
- package/types/registry.d.ts.map +11 -0
- package/types/resolvePayload.d.ts +75 -0
- package/types/resolvePayload.d.ts.map +11 -0
- package/types/runtime.d.ts +34 -0
- package/types/runtime.d.ts.map +11 -0
- package/types/safeAreaVariables.d.ts +5 -0
- package/types/safeAreaVariables.d.ts.map +11 -0
- package/types/scanFlatValue.d.ts +29 -0
- package/types/scanFlatValue.d.ts.map +11 -0
- package/types/serializePayload.d.ts +13 -0
- package/types/serializePayload.d.ts.map +11 -0
- package/types/stateModifiers.d.ts +14 -0
- package/types/stateModifiers.d.ts.map +11 -0
- package/types/states.d.ts +22 -0
- package/types/states.d.ts.map +11 -0
- package/types/table.d.ts +4 -0
- package/types/table.d.ts.map +11 -0
- package/types/textDecorationFamily.d.ts +23 -0
- package/types/textDecorationFamily.d.ts.map +11 -0
- package/types/tooling.d.ts +10 -0
- package/types/tooling.d.ts.map +11 -0
- package/types/toolingAnnotations.d.ts +29 -0
- package/types/toolingAnnotations.d.ts.map +11 -0
- package/types/toolingDiagnostics.d.ts +114 -0
- package/types/toolingDiagnostics.d.ts.map +11 -0
- package/types/toolingRegistry.d.ts +10 -0
- package/types/toolingRegistry.d.ts.map +11 -0
- package/types/transformFamily.d.ts +83 -0
- package/types/transformFamily.d.ts.map +11 -0
- package/types/transition.d.ts +65 -0
- package/types/transition.d.ts.map +11 -0
- package/types/transitionAlign.d.ts +15 -0
- package/types/transitionAlign.d.ts.map +11 -0
- package/types/transitionLegacy.d.ts +9 -0
- package/types/transitionLegacy.d.ts.map +11 -0
- package/types/transitionNative.d.ts +41 -0
- package/types/transitionNative.d.ts.map +11 -0
- package/types/unitlessNumbers.d.ts +3 -0
- package/types/unitlessNumbers.d.ts.map +11 -0
- package/types/v6ThemeNames.d.ts +7 -0
- package/types/v6ThemeNames.d.ts.map +11 -0
- package/types/valueParser.d.ts +36 -0
- package/types/valueParser.d.ts.map +11 -0
- package/types/valueTypes.d.ts +66 -0
- package/types/valueTypes.d.ts.map +11 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var transitionNative_exports = {};
|
|
23
|
+
__export(transitionNative_exports, {
|
|
24
|
+
nativeTransitionCapabilities: () => nativeTransitionCapabilities,
|
|
25
|
+
validateNativeTransition: () => validateNativeTransition
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(transitionNative_exports);
|
|
28
|
+
const bothPlatforms = ["android", "ios"];
|
|
29
|
+
const iosPlatform = ["ios"];
|
|
30
|
+
const nativeTransitionCapabilities = [
|
|
31
|
+
{
|
|
32
|
+
properties: [
|
|
33
|
+
"opacity",
|
|
34
|
+
"transform",
|
|
35
|
+
"x",
|
|
36
|
+
"y",
|
|
37
|
+
"rotate",
|
|
38
|
+
"scale",
|
|
39
|
+
"filter"
|
|
40
|
+
],
|
|
41
|
+
minimumReactNativeMinor: 82,
|
|
42
|
+
platforms: bothPlatforms,
|
|
43
|
+
interpolation: "continuous",
|
|
44
|
+
note: "baseline native-driver properties; filter animation landed in RN 0.82"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
properties: [
|
|
48
|
+
"backgroundColor",
|
|
49
|
+
"borderRadius",
|
|
50
|
+
"borderTopLeftRadius",
|
|
51
|
+
"borderTopRightRadius",
|
|
52
|
+
"borderBottomRightRadius",
|
|
53
|
+
"borderBottomLeftRadius",
|
|
54
|
+
"boxShadow",
|
|
55
|
+
"outlineColor",
|
|
56
|
+
"outlineOffset",
|
|
57
|
+
"outlineWidth",
|
|
58
|
+
"transformOrigin",
|
|
59
|
+
"zIndex"
|
|
60
|
+
],
|
|
61
|
+
minimumReactNativeMinor: 84,
|
|
62
|
+
platforms: bothPlatforms,
|
|
63
|
+
interpolation: "continuous",
|
|
64
|
+
note: "continuous properties explicitly recorded for the RN 0.84 backend"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
properties: [
|
|
68
|
+
"backfaceVisibility",
|
|
69
|
+
"isolation",
|
|
70
|
+
"mixBlendMode",
|
|
71
|
+
"outlineStyle",
|
|
72
|
+
"overflow",
|
|
73
|
+
"pointerEvents",
|
|
74
|
+
"position"
|
|
75
|
+
],
|
|
76
|
+
minimumReactNativeMinor: 84,
|
|
77
|
+
platforms: bothPlatforms,
|
|
78
|
+
interpolation: "discrete",
|
|
79
|
+
note: "the RN 0.84 backend can set these values, but native has no CSS allow-discrete transition semantics"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
properties: ["cursor"],
|
|
83
|
+
minimumReactNativeMinor: 84,
|
|
84
|
+
platforms: iosPlatform,
|
|
85
|
+
interpolation: "discrete",
|
|
86
|
+
note: "cursor is limited to auto and pointer on iOS 17 or newer"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
properties: ["width"],
|
|
90
|
+
minimumReactNativeMinor: 85,
|
|
91
|
+
platforms: bothPlatforms,
|
|
92
|
+
interpolation: "continuous",
|
|
93
|
+
note: "layout animation explicitly verified for the RN 0.85 shared backend"
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
function capabilityFor(property) {
|
|
97
|
+
for (let index = 0; index < nativeTransitionCapabilities.length; index++) {
|
|
98
|
+
const capability = nativeTransitionCapabilities[index];
|
|
99
|
+
for (let propertyIndex = 0; propertyIndex < capability.properties.length; propertyIndex++) {
|
|
100
|
+
if (capability.properties[propertyIndex] === property) return capability;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return void 0;
|
|
104
|
+
}
|
|
105
|
+
const baseFilterFunctions = /* @__PURE__ */ new Set(["brightness", "opacity"]);
|
|
106
|
+
const expandedAndroidFilterFunctions = /* @__PURE__ */ new Set([
|
|
107
|
+
"blur",
|
|
108
|
+
"contrast",
|
|
109
|
+
"drop-shadow",
|
|
110
|
+
"grayscale",
|
|
111
|
+
"hue-rotate",
|
|
112
|
+
"saturate"
|
|
113
|
+
]);
|
|
114
|
+
const filterFunctionPattern = /([a-z-]+)\s*\(/g;
|
|
115
|
+
function appendDiagnostics(target, source) {
|
|
116
|
+
for (let index = 0; index < source.length; index++) target.push(source[index]);
|
|
117
|
+
}
|
|
118
|
+
function validateFilter(value, target) {
|
|
119
|
+
filterFunctionPattern.lastIndex = 0;
|
|
120
|
+
for (let match = filterFunctionPattern.exec(value); match; match = filterFunctionPattern.exec(value)) {
|
|
121
|
+
const name = match[1];
|
|
122
|
+
if (baseFilterFunctions.has(name)) continue;
|
|
123
|
+
if (target.platform === "ios") {
|
|
124
|
+
return {
|
|
125
|
+
code: "native-transition-filter",
|
|
126
|
+
property: "filter",
|
|
127
|
+
message: `filter function "${name}()" is not supported on iOS`
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
if (!expandedAndroidFilterFunctions.has(name)) {
|
|
131
|
+
return {
|
|
132
|
+
code: "native-transition-filter",
|
|
133
|
+
property: "filter",
|
|
134
|
+
message: `filter function "${name}()" is not supported on Android`
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (target.reactNativeMinor < 83) {
|
|
138
|
+
return {
|
|
139
|
+
code: "native-transition-filter",
|
|
140
|
+
property: "filter",
|
|
141
|
+
message: `filter function "${name}()" requires React Native 0.83 or newer`
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if ((target.androidApi ?? 0) < 31) {
|
|
145
|
+
return {
|
|
146
|
+
code: "native-transition-filter",
|
|
147
|
+
property: "filter",
|
|
148
|
+
message: "expanded filter functions require Android API 31 or newer"
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return void 0;
|
|
153
|
+
}
|
|
154
|
+
function validateProperty(property, target, transitionedValues) {
|
|
155
|
+
const diagnostics = [];
|
|
156
|
+
if (property.startsWith("--")) {
|
|
157
|
+
diagnostics.push({
|
|
158
|
+
code: "native-transition-property",
|
|
159
|
+
property,
|
|
160
|
+
message: "CSS custom properties are not supported on native"
|
|
161
|
+
});
|
|
162
|
+
return diagnostics;
|
|
163
|
+
}
|
|
164
|
+
const capability = capabilityFor(property);
|
|
165
|
+
if (!capability) {
|
|
166
|
+
diagnostics.push({
|
|
167
|
+
code: "native-transition-property",
|
|
168
|
+
property,
|
|
169
|
+
message: `"${property}" transitions are not supported on native`
|
|
170
|
+
});
|
|
171
|
+
return diagnostics;
|
|
172
|
+
}
|
|
173
|
+
if (!capability.platforms.includes(target.platform)) {
|
|
174
|
+
diagnostics.push({
|
|
175
|
+
code: "native-transition-property",
|
|
176
|
+
property,
|
|
177
|
+
message: `"${property}" transitions are not supported on ${target.platform}`
|
|
178
|
+
});
|
|
179
|
+
return diagnostics;
|
|
180
|
+
}
|
|
181
|
+
if (target.reactNativeMinor < capability.minimumReactNativeMinor) {
|
|
182
|
+
diagnostics.push({
|
|
183
|
+
code: "native-transition-property",
|
|
184
|
+
property,
|
|
185
|
+
message: `"${property}" transitions require React Native 0.${capability.minimumReactNativeMinor} or newer`
|
|
186
|
+
});
|
|
187
|
+
return diagnostics;
|
|
188
|
+
}
|
|
189
|
+
if (capability.interpolation === "discrete") {
|
|
190
|
+
diagnostics.push({
|
|
191
|
+
code: "native-transition-property",
|
|
192
|
+
property,
|
|
193
|
+
message: `"${property}" is discrete and native has no allow-discrete transition semantics`
|
|
194
|
+
});
|
|
195
|
+
return diagnostics;
|
|
196
|
+
}
|
|
197
|
+
if (property === "filter") {
|
|
198
|
+
const value = transitionedValues.filter;
|
|
199
|
+
if (value === void 0) {
|
|
200
|
+
diagnostics.push({
|
|
201
|
+
code: "native-transition-filter",
|
|
202
|
+
property,
|
|
203
|
+
message: "filter transition validation requires the resolved destination value"
|
|
204
|
+
});
|
|
205
|
+
return diagnostics;
|
|
206
|
+
}
|
|
207
|
+
const diagnostic = validateFilter(value, target);
|
|
208
|
+
if (diagnostic) diagnostics.push(diagnostic);
|
|
209
|
+
}
|
|
210
|
+
return diagnostics;
|
|
211
|
+
}
|
|
212
|
+
function validateEntry(entry, target, transitionedValues) {
|
|
213
|
+
const diagnostics = [];
|
|
214
|
+
if (entry.property === "none") return diagnostics;
|
|
215
|
+
if (entry.behavior === "allow-discrete") {
|
|
216
|
+
diagnostics.push({
|
|
217
|
+
code: "native-transition-behavior",
|
|
218
|
+
property: entry.property,
|
|
219
|
+
message: "allow-discrete transition behavior is not supported on native"
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
if (entry.timing.type === "css") {
|
|
223
|
+
if (/^(?:steps|linear)\(/.test(entry.timing.timingFunction) || entry.timing.timingFunction === "step-start" || entry.timing.timingFunction === "step-end") {
|
|
224
|
+
diagnostics.push({
|
|
225
|
+
code: "native-transition-timing",
|
|
226
|
+
property: entry.property,
|
|
227
|
+
message: `timing function "${entry.timing.timingFunction}" is not supported on native`
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (Number.parseFloat(entry.delay) < 0) {
|
|
232
|
+
diagnostics.push({
|
|
233
|
+
code: "native-transition-delay",
|
|
234
|
+
property: entry.property,
|
|
235
|
+
message: `negative transition delay "${entry.delay}" is not supported on native`
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
if (entry.property !== "all") {
|
|
239
|
+
appendDiagnostics(diagnostics, validateProperty(entry.property, target, transitionedValues));
|
|
240
|
+
return diagnostics;
|
|
241
|
+
}
|
|
242
|
+
let hasProperty = false;
|
|
243
|
+
for (const property in transitionedValues) {
|
|
244
|
+
if (!Object.prototype.hasOwnProperty.call(transitionedValues, property)) continue;
|
|
245
|
+
hasProperty = true;
|
|
246
|
+
appendDiagnostics(diagnostics, validateProperty(property, target, transitionedValues));
|
|
247
|
+
}
|
|
248
|
+
if (!hasProperty) {
|
|
249
|
+
diagnostics.push({
|
|
250
|
+
code: "native-transition-property",
|
|
251
|
+
property: "all",
|
|
252
|
+
message: "\"all\" transition validation requires the concrete changed native properties"
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
return diagnostics;
|
|
256
|
+
}
|
|
257
|
+
function validateNativeTransition(transition, target, transitionedValues = {}) {
|
|
258
|
+
if (transition.kind === "global") {
|
|
259
|
+
return {
|
|
260
|
+
ok: false,
|
|
261
|
+
diagnostics: [{
|
|
262
|
+
code: "native-transition-css-global",
|
|
263
|
+
message: `CSS-wide value "${transition.value}" is not supported on native`
|
|
264
|
+
}]
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
const diagnostics = [];
|
|
268
|
+
if (transition.enter) {
|
|
269
|
+
appendDiagnostics(diagnostics, validateEntry(transition.enter, target, transitionedValues));
|
|
270
|
+
}
|
|
271
|
+
if (transition.exit) {
|
|
272
|
+
appendDiagnostics(diagnostics, validateEntry(transition.exit, target, transitionedValues));
|
|
273
|
+
}
|
|
274
|
+
for (let index = 0; index < transition.entries.length; index++) {
|
|
275
|
+
appendDiagnostics(diagnostics, validateEntry(transition.entries[index], target, transitionedValues));
|
|
276
|
+
}
|
|
277
|
+
return diagnostics.length ? {
|
|
278
|
+
ok: false,
|
|
279
|
+
diagnostics
|
|
280
|
+
} : { ok: true };
|
|
281
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var transitionNative_exports = {};
|
|
25
|
+
__export(transitionNative_exports, {
|
|
26
|
+
nativeTransitionCapabilities: () => nativeTransitionCapabilities,
|
|
27
|
+
validateNativeTransition: () => validateNativeTransition
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(transitionNative_exports);
|
|
30
|
+
var bothPlatforms = ["android", "ios"];
|
|
31
|
+
var iosPlatform = ["ios"];
|
|
32
|
+
var nativeTransitionCapabilities = [
|
|
33
|
+
{
|
|
34
|
+
properties: [
|
|
35
|
+
"opacity",
|
|
36
|
+
"transform",
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"rotate",
|
|
40
|
+
"scale",
|
|
41
|
+
"filter"
|
|
42
|
+
],
|
|
43
|
+
minimumReactNativeMinor: 82,
|
|
44
|
+
platforms: bothPlatforms,
|
|
45
|
+
interpolation: "continuous",
|
|
46
|
+
note: "baseline native-driver properties; filter animation landed in RN 0.82"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
properties: [
|
|
50
|
+
"backgroundColor",
|
|
51
|
+
"borderRadius",
|
|
52
|
+
"borderTopLeftRadius",
|
|
53
|
+
"borderTopRightRadius",
|
|
54
|
+
"borderBottomRightRadius",
|
|
55
|
+
"borderBottomLeftRadius",
|
|
56
|
+
"boxShadow",
|
|
57
|
+
"outlineColor",
|
|
58
|
+
"outlineOffset",
|
|
59
|
+
"outlineWidth",
|
|
60
|
+
"transformOrigin",
|
|
61
|
+
"zIndex"
|
|
62
|
+
],
|
|
63
|
+
minimumReactNativeMinor: 84,
|
|
64
|
+
platforms: bothPlatforms,
|
|
65
|
+
interpolation: "continuous",
|
|
66
|
+
note: "continuous properties explicitly recorded for the RN 0.84 backend"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
properties: [
|
|
70
|
+
"backfaceVisibility",
|
|
71
|
+
"isolation",
|
|
72
|
+
"mixBlendMode",
|
|
73
|
+
"outlineStyle",
|
|
74
|
+
"overflow",
|
|
75
|
+
"pointerEvents",
|
|
76
|
+
"position"
|
|
77
|
+
],
|
|
78
|
+
minimumReactNativeMinor: 84,
|
|
79
|
+
platforms: bothPlatforms,
|
|
80
|
+
interpolation: "discrete",
|
|
81
|
+
note: "the RN 0.84 backend can set these values, but native has no CSS allow-discrete transition semantics"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
properties: ["cursor"],
|
|
85
|
+
minimumReactNativeMinor: 84,
|
|
86
|
+
platforms: iosPlatform,
|
|
87
|
+
interpolation: "discrete",
|
|
88
|
+
note: "cursor is limited to auto and pointer on iOS 17 or newer"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
properties: ["width"],
|
|
92
|
+
minimumReactNativeMinor: 85,
|
|
93
|
+
platforms: bothPlatforms,
|
|
94
|
+
interpolation: "continuous",
|
|
95
|
+
note: "layout animation explicitly verified for the RN 0.85 shared backend"
|
|
96
|
+
}
|
|
97
|
+
];
|
|
98
|
+
function capabilityFor(property) {
|
|
99
|
+
for (var index = 0; index < nativeTransitionCapabilities.length; index++) {
|
|
100
|
+
var capability = nativeTransitionCapabilities[index];
|
|
101
|
+
for (var propertyIndex = 0; propertyIndex < capability.properties.length; propertyIndex++) {
|
|
102
|
+
if (capability.properties[propertyIndex] === property) return capability;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return void 0;
|
|
106
|
+
}
|
|
107
|
+
var baseFilterFunctions = /* @__PURE__ */ new Set(["brightness", "opacity"]);
|
|
108
|
+
var expandedAndroidFilterFunctions = /* @__PURE__ */ new Set([
|
|
109
|
+
"blur",
|
|
110
|
+
"contrast",
|
|
111
|
+
"drop-shadow",
|
|
112
|
+
"grayscale",
|
|
113
|
+
"hue-rotate",
|
|
114
|
+
"saturate"
|
|
115
|
+
]);
|
|
116
|
+
var filterFunctionPattern = /([a-z-]+)\s*\(/g;
|
|
117
|
+
function appendDiagnostics(target, source) {
|
|
118
|
+
for (var index = 0; index < source.length; index++) target.push(source[index]);
|
|
119
|
+
}
|
|
120
|
+
function validateFilter(value, target) {
|
|
121
|
+
filterFunctionPattern.lastIndex = 0;
|
|
122
|
+
for (var match = filterFunctionPattern.exec(value); match; match = filterFunctionPattern.exec(value)) {
|
|
123
|
+
var name = match[1];
|
|
124
|
+
if (baseFilterFunctions.has(name)) continue;
|
|
125
|
+
if (target.platform === "ios") {
|
|
126
|
+
return {
|
|
127
|
+
code: "native-transition-filter",
|
|
128
|
+
property: "filter",
|
|
129
|
+
message: `filter function "${name}()" is not supported on iOS`
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
if (!expandedAndroidFilterFunctions.has(name)) {
|
|
133
|
+
return {
|
|
134
|
+
code: "native-transition-filter",
|
|
135
|
+
property: "filter",
|
|
136
|
+
message: `filter function "${name}()" is not supported on Android`
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
if (target.reactNativeMinor < 83) {
|
|
140
|
+
return {
|
|
141
|
+
code: "native-transition-filter",
|
|
142
|
+
property: "filter",
|
|
143
|
+
message: `filter function "${name}()" requires React Native 0.83 or newer`
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
var _target_androidApi;
|
|
147
|
+
if (((_target_androidApi = target.androidApi) !== null && _target_androidApi !== void 0 ? _target_androidApi : 0) < 31) {
|
|
148
|
+
return {
|
|
149
|
+
code: "native-transition-filter",
|
|
150
|
+
property: "filter",
|
|
151
|
+
message: "expanded filter functions require Android API 31 or newer"
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return void 0;
|
|
156
|
+
}
|
|
157
|
+
function validateProperty(property, target, transitionedValues) {
|
|
158
|
+
var diagnostics = [];
|
|
159
|
+
if (property.startsWith("--")) {
|
|
160
|
+
diagnostics.push({
|
|
161
|
+
code: "native-transition-property",
|
|
162
|
+
property,
|
|
163
|
+
message: "CSS custom properties are not supported on native"
|
|
164
|
+
});
|
|
165
|
+
return diagnostics;
|
|
166
|
+
}
|
|
167
|
+
var capability = capabilityFor(property);
|
|
168
|
+
if (!capability) {
|
|
169
|
+
diagnostics.push({
|
|
170
|
+
code: "native-transition-property",
|
|
171
|
+
property,
|
|
172
|
+
message: `"${property}" transitions are not supported on native`
|
|
173
|
+
});
|
|
174
|
+
return diagnostics;
|
|
175
|
+
}
|
|
176
|
+
if (!capability.platforms.includes(target.platform)) {
|
|
177
|
+
diagnostics.push({
|
|
178
|
+
code: "native-transition-property",
|
|
179
|
+
property,
|
|
180
|
+
message: `"${property}" transitions are not supported on ${target.platform}`
|
|
181
|
+
});
|
|
182
|
+
return diagnostics;
|
|
183
|
+
}
|
|
184
|
+
if (target.reactNativeMinor < capability.minimumReactNativeMinor) {
|
|
185
|
+
diagnostics.push({
|
|
186
|
+
code: "native-transition-property",
|
|
187
|
+
property,
|
|
188
|
+
message: `"${property}" transitions require React Native 0.${capability.minimumReactNativeMinor} or newer`
|
|
189
|
+
});
|
|
190
|
+
return diagnostics;
|
|
191
|
+
}
|
|
192
|
+
if (capability.interpolation === "discrete") {
|
|
193
|
+
diagnostics.push({
|
|
194
|
+
code: "native-transition-property",
|
|
195
|
+
property,
|
|
196
|
+
message: `"${property}" is discrete and native has no allow-discrete transition semantics`
|
|
197
|
+
});
|
|
198
|
+
return diagnostics;
|
|
199
|
+
}
|
|
200
|
+
if (property === "filter") {
|
|
201
|
+
var value = transitionedValues.filter;
|
|
202
|
+
if (value === void 0) {
|
|
203
|
+
diagnostics.push({
|
|
204
|
+
code: "native-transition-filter",
|
|
205
|
+
property,
|
|
206
|
+
message: "filter transition validation requires the resolved destination value"
|
|
207
|
+
});
|
|
208
|
+
return diagnostics;
|
|
209
|
+
}
|
|
210
|
+
var diagnostic = validateFilter(value, target);
|
|
211
|
+
if (diagnostic) diagnostics.push(diagnostic);
|
|
212
|
+
}
|
|
213
|
+
return diagnostics;
|
|
214
|
+
}
|
|
215
|
+
function validateEntry(entry, target, transitionedValues) {
|
|
216
|
+
var diagnostics = [];
|
|
217
|
+
if (entry.property === "none") return diagnostics;
|
|
218
|
+
if (entry.behavior === "allow-discrete") {
|
|
219
|
+
diagnostics.push({
|
|
220
|
+
code: "native-transition-behavior",
|
|
221
|
+
property: entry.property,
|
|
222
|
+
message: "allow-discrete transition behavior is not supported on native"
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
if (entry.timing.type === "css") {
|
|
226
|
+
if (/^(?:steps|linear)\(/.test(entry.timing.timingFunction) || entry.timing.timingFunction === "step-start" || entry.timing.timingFunction === "step-end") {
|
|
227
|
+
diagnostics.push({
|
|
228
|
+
code: "native-transition-timing",
|
|
229
|
+
property: entry.property,
|
|
230
|
+
message: `timing function "${entry.timing.timingFunction}" is not supported on native`
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (Number.parseFloat(entry.delay) < 0) {
|
|
235
|
+
diagnostics.push({
|
|
236
|
+
code: "native-transition-delay",
|
|
237
|
+
property: entry.property,
|
|
238
|
+
message: `negative transition delay "${entry.delay}" is not supported on native`
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
if (entry.property !== "all") {
|
|
242
|
+
appendDiagnostics(diagnostics, validateProperty(entry.property, target, transitionedValues));
|
|
243
|
+
return diagnostics;
|
|
244
|
+
}
|
|
245
|
+
var hasProperty = false;
|
|
246
|
+
for (var property in transitionedValues) {
|
|
247
|
+
if (!Object.prototype.hasOwnProperty.call(transitionedValues, property)) continue;
|
|
248
|
+
hasProperty = true;
|
|
249
|
+
appendDiagnostics(diagnostics, validateProperty(property, target, transitionedValues));
|
|
250
|
+
}
|
|
251
|
+
if (!hasProperty) {
|
|
252
|
+
diagnostics.push({
|
|
253
|
+
code: "native-transition-property",
|
|
254
|
+
property: "all",
|
|
255
|
+
message: "\"all\" transition validation requires the concrete changed native properties"
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
return diagnostics;
|
|
259
|
+
}
|
|
260
|
+
function validateNativeTransition(transition, target) {
|
|
261
|
+
var transitionedValues = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
262
|
+
if (transition.kind === "global") {
|
|
263
|
+
return {
|
|
264
|
+
ok: false,
|
|
265
|
+
diagnostics: [{
|
|
266
|
+
code: "native-transition-css-global",
|
|
267
|
+
message: `CSS-wide value "${transition.value}" is not supported on native`
|
|
268
|
+
}]
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
var diagnostics = [];
|
|
272
|
+
if (transition.enter) {
|
|
273
|
+
appendDiagnostics(diagnostics, validateEntry(transition.enter, target, transitionedValues));
|
|
274
|
+
}
|
|
275
|
+
if (transition.exit) {
|
|
276
|
+
appendDiagnostics(diagnostics, validateEntry(transition.exit, target, transitionedValues));
|
|
277
|
+
}
|
|
278
|
+
for (var index = 0; index < transition.entries.length; index++) {
|
|
279
|
+
appendDiagnostics(diagnostics, validateEntry(transition.entries[index], target, transitionedValues));
|
|
280
|
+
}
|
|
281
|
+
return diagnostics.length ? {
|
|
282
|
+
ok: false,
|
|
283
|
+
diagnostics
|
|
284
|
+
} : { ok: true };
|
|
285
|
+
}
|