@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,154 @@
|
|
|
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 transitionAlign_exports = {};
|
|
25
|
+
__export(transitionAlign_exports, { alignTransitionContributions: () => alignTransitionContributions });
|
|
26
|
+
module.exports = __toCommonJS(transitionAlign_exports);
|
|
27
|
+
var import_transition = require("./transition.native.js");
|
|
28
|
+
var timingLonghands = /* @__PURE__ */ new Set(["transitionDuration", "transitionTimingFunction"]);
|
|
29
|
+
function listText(values) {
|
|
30
|
+
return values.join(", ");
|
|
31
|
+
}
|
|
32
|
+
function alignTransitionContributions(contributions, presetNames) {
|
|
33
|
+
var state = {
|
|
34
|
+
global: null,
|
|
35
|
+
preset: null,
|
|
36
|
+
lists: {}
|
|
37
|
+
};
|
|
38
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
39
|
+
try {
|
|
40
|
+
for (var _iterator = contributions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
41
|
+
var contribution = _step.value;
|
|
42
|
+
if (contribution.prop === "transition") {
|
|
43
|
+
var parsed = (0, import_transition.parseTransition)(contribution.value, presetNames);
|
|
44
|
+
if (!parsed.ok) return parsed;
|
|
45
|
+
state.global = null;
|
|
46
|
+
state.preset = null;
|
|
47
|
+
state.lists = {};
|
|
48
|
+
if (parsed.value.kind === "global") {
|
|
49
|
+
state.global = parsed.value.value;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
var entries = parsed.value.entries;
|
|
53
|
+
var presetEntry = entries.find(function(entry) {
|
|
54
|
+
return entry.timing.type === "preset";
|
|
55
|
+
});
|
|
56
|
+
if (presetEntry) {
|
|
57
|
+
state.preset = presetEntry.timing;
|
|
58
|
+
state.lists.transitionProperty = listText(entries.map(function(entry) {
|
|
59
|
+
return entry.property;
|
|
60
|
+
}));
|
|
61
|
+
state.lists.transitionDelay = listText(entries.map(function(entry) {
|
|
62
|
+
return entry.delay;
|
|
63
|
+
}));
|
|
64
|
+
state.lists.transitionBehavior = listText(entries.map(function(entry) {
|
|
65
|
+
return entry.behavior;
|
|
66
|
+
}));
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
state.lists.transitionProperty = listText(entries.map(function(entry) {
|
|
70
|
+
return entry.property;
|
|
71
|
+
}));
|
|
72
|
+
state.lists.transitionDuration = listText(entries.map(function(entry) {
|
|
73
|
+
return entry.timing.duration;
|
|
74
|
+
}));
|
|
75
|
+
state.lists.transitionTimingFunction = listText(entries.map(function(entry) {
|
|
76
|
+
return entry.timing.timingFunction;
|
|
77
|
+
}));
|
|
78
|
+
state.lists.transitionDelay = listText(entries.map(function(entry) {
|
|
79
|
+
return entry.delay;
|
|
80
|
+
}));
|
|
81
|
+
state.lists.transitionBehavior = listText(entries.map(function(entry) {
|
|
82
|
+
return entry.behavior;
|
|
83
|
+
}));
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (state.global) {
|
|
87
|
+
return {
|
|
88
|
+
ok: false,
|
|
89
|
+
diagnostics: [{
|
|
90
|
+
code: "transition-invalid-list",
|
|
91
|
+
token: contribution.prop,
|
|
92
|
+
message: `"${contribution.prop}" cannot override the CSS-wide transition "${state.global}" per longhand; restate the whole transition`
|
|
93
|
+
}]
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (state.preset && timingLonghands.has(contribution.prop)) {
|
|
97
|
+
return {
|
|
98
|
+
ok: false,
|
|
99
|
+
diagnostics: [{
|
|
100
|
+
code: "transition-invalid-list",
|
|
101
|
+
token: contribution.prop,
|
|
102
|
+
message: `"${contribution.prop}" cannot partially override the "${state.preset.name}" preset \u2014 a preset's timing is not decomposable into CSS components; restate \`transition\` with CSS timing or change the preset`
|
|
103
|
+
}]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
state.lists[contribution.prop] = contribution.value;
|
|
107
|
+
}
|
|
108
|
+
} catch (err) {
|
|
109
|
+
_didIteratorError = true;
|
|
110
|
+
_iteratorError = err;
|
|
111
|
+
} finally {
|
|
112
|
+
try {
|
|
113
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
114
|
+
_iterator.return();
|
|
115
|
+
}
|
|
116
|
+
} finally {
|
|
117
|
+
if (_didIteratorError) {
|
|
118
|
+
throw _iteratorError;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (state.global) {
|
|
123
|
+
return {
|
|
124
|
+
ok: true,
|
|
125
|
+
value: {
|
|
126
|
+
kind: "global",
|
|
127
|
+
value: state.global
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (state.preset) {
|
|
132
|
+
var zipped = (0, import_transition.parseTransitionLonghands)({
|
|
133
|
+
transitionProperty: state.lists.transitionProperty,
|
|
134
|
+
transitionDelay: state.lists.transitionDelay,
|
|
135
|
+
transitionBehavior: state.lists.transitionBehavior
|
|
136
|
+
});
|
|
137
|
+
if (!zipped.ok || zipped.value.kind !== "transition") return zipped;
|
|
138
|
+
var preset = state.preset;
|
|
139
|
+
var entries1 = zipped.value.entries.map(function(entry) {
|
|
140
|
+
return {
|
|
141
|
+
...entry,
|
|
142
|
+
timing: preset
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
return {
|
|
146
|
+
ok: true,
|
|
147
|
+
value: {
|
|
148
|
+
kind: "transition",
|
|
149
|
+
entries: entries1
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return (0, import_transition.parseTransitionLonghands)(state.lists);
|
|
154
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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 transitionAlign_exports = {};
|
|
25
|
+
__export(transitionAlign_exports, { alignTransitionContributions: () => alignTransitionContributions });
|
|
26
|
+
module.exports = __toCommonJS(transitionAlign_exports);
|
|
27
|
+
var import_transition = require("./transition.native.js");
|
|
28
|
+
var timingLonghands = /* @__PURE__ */ new Set(["transitionDuration", "transitionTimingFunction"]);
|
|
29
|
+
function listText(values) {
|
|
30
|
+
return values.join(", ");
|
|
31
|
+
}
|
|
32
|
+
function alignTransitionContributions(contributions, presetNames) {
|
|
33
|
+
var state = {
|
|
34
|
+
global: null,
|
|
35
|
+
preset: null,
|
|
36
|
+
lists: {}
|
|
37
|
+
};
|
|
38
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
39
|
+
try {
|
|
40
|
+
for (var _iterator = contributions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
41
|
+
var contribution = _step.value;
|
|
42
|
+
if (contribution.prop === "transition") {
|
|
43
|
+
var parsed = (0, import_transition.parseTransition)(contribution.value, presetNames);
|
|
44
|
+
if (!parsed.ok) return parsed;
|
|
45
|
+
state.global = null;
|
|
46
|
+
state.preset = null;
|
|
47
|
+
state.lists = {};
|
|
48
|
+
if (parsed.value.kind === "global") {
|
|
49
|
+
state.global = parsed.value.value;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
var entries = parsed.value.entries;
|
|
53
|
+
var presetEntry = entries.find(function(entry) {
|
|
54
|
+
return entry.timing.type === "preset";
|
|
55
|
+
});
|
|
56
|
+
if (presetEntry) {
|
|
57
|
+
state.preset = presetEntry.timing;
|
|
58
|
+
state.lists.transitionProperty = listText(entries.map(function(entry) {
|
|
59
|
+
return entry.property;
|
|
60
|
+
}));
|
|
61
|
+
state.lists.transitionDelay = listText(entries.map(function(entry) {
|
|
62
|
+
return entry.delay;
|
|
63
|
+
}));
|
|
64
|
+
state.lists.transitionBehavior = listText(entries.map(function(entry) {
|
|
65
|
+
return entry.behavior;
|
|
66
|
+
}));
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
state.lists.transitionProperty = listText(entries.map(function(entry) {
|
|
70
|
+
return entry.property;
|
|
71
|
+
}));
|
|
72
|
+
state.lists.transitionDuration = listText(entries.map(function(entry) {
|
|
73
|
+
return entry.timing.duration;
|
|
74
|
+
}));
|
|
75
|
+
state.lists.transitionTimingFunction = listText(entries.map(function(entry) {
|
|
76
|
+
return entry.timing.timingFunction;
|
|
77
|
+
}));
|
|
78
|
+
state.lists.transitionDelay = listText(entries.map(function(entry) {
|
|
79
|
+
return entry.delay;
|
|
80
|
+
}));
|
|
81
|
+
state.lists.transitionBehavior = listText(entries.map(function(entry) {
|
|
82
|
+
return entry.behavior;
|
|
83
|
+
}));
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (state.global) {
|
|
87
|
+
return {
|
|
88
|
+
ok: false,
|
|
89
|
+
diagnostics: [{
|
|
90
|
+
code: "transition-invalid-list",
|
|
91
|
+
token: contribution.prop,
|
|
92
|
+
message: `"${contribution.prop}" cannot override the CSS-wide transition "${state.global}" per longhand; restate the whole transition`
|
|
93
|
+
}]
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (state.preset && timingLonghands.has(contribution.prop)) {
|
|
97
|
+
return {
|
|
98
|
+
ok: false,
|
|
99
|
+
diagnostics: [{
|
|
100
|
+
code: "transition-invalid-list",
|
|
101
|
+
token: contribution.prop,
|
|
102
|
+
message: `"${contribution.prop}" cannot partially override the "${state.preset.name}" preset \u2014 a preset's timing is not decomposable into CSS components; restate \`transition\` with CSS timing or change the preset`
|
|
103
|
+
}]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
state.lists[contribution.prop] = contribution.value;
|
|
107
|
+
}
|
|
108
|
+
} catch (err) {
|
|
109
|
+
_didIteratorError = true;
|
|
110
|
+
_iteratorError = err;
|
|
111
|
+
} finally {
|
|
112
|
+
try {
|
|
113
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
114
|
+
_iterator.return();
|
|
115
|
+
}
|
|
116
|
+
} finally {
|
|
117
|
+
if (_didIteratorError) {
|
|
118
|
+
throw _iteratorError;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (state.global) {
|
|
123
|
+
return {
|
|
124
|
+
ok: true,
|
|
125
|
+
value: {
|
|
126
|
+
kind: "global",
|
|
127
|
+
value: state.global
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (state.preset) {
|
|
132
|
+
var zipped = (0, import_transition.parseTransitionLonghands)({
|
|
133
|
+
transitionProperty: state.lists.transitionProperty,
|
|
134
|
+
transitionDelay: state.lists.transitionDelay,
|
|
135
|
+
transitionBehavior: state.lists.transitionBehavior
|
|
136
|
+
});
|
|
137
|
+
if (!zipped.ok || zipped.value.kind !== "transition") return zipped;
|
|
138
|
+
var preset = state.preset;
|
|
139
|
+
var entries1 = zipped.value.entries.map(function(entry) {
|
|
140
|
+
return {
|
|
141
|
+
...entry,
|
|
142
|
+
timing: preset
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
return {
|
|
146
|
+
ok: true,
|
|
147
|
+
value: {
|
|
148
|
+
kind: "transition",
|
|
149
|
+
entries: entries1
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return (0, import_transition.parseTransitionLonghands)(state.lists);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
//# sourceMappingURL=transitionAlign.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitionAlign.native.js","names":[],"sources":["cjs/transitionAlign.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar transitionAlign_exports = {};\n__export(transitionAlign_exports, {\n alignTransitionContributions: () => alignTransitionContributions\n});\nmodule.exports = __toCommonJS(transitionAlign_exports);\nvar import_transition = require(\"./transition\");\nvar timingLonghands = /* @__PURE__ */ new Set([\n \"transitionDuration\",\n \"transitionTimingFunction\"\n]);\nfunction listText(values) {\n return values.join(\", \");\n}\nfunction alignTransitionContributions(contributions, presetNames) {\n var state = {\n global: null,\n preset: null,\n lists: {}\n };\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = contributions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var contribution = _step.value;\n if (contribution.prop === \"transition\") {\n var parsed = (0, import_transition.parseTransition)(contribution.value, presetNames);\n if (!parsed.ok) return parsed;\n state.global = null;\n state.preset = null;\n state.lists = {};\n if (parsed.value.kind === \"global\") {\n state.global = parsed.value.value;\n continue;\n }\n var entries = parsed.value.entries;\n var presetEntry = entries.find(function(entry) {\n return entry.timing.type === \"preset\";\n });\n if (presetEntry) {\n state.preset = presetEntry.timing;\n state.lists.transitionProperty = listText(entries.map(function(entry) {\n return entry.property;\n }));\n state.lists.transitionDelay = listText(entries.map(function(entry) {\n return entry.delay;\n }));\n state.lists.transitionBehavior = listText(entries.map(function(entry) {\n return entry.behavior;\n }));\n continue;\n }\n state.lists.transitionProperty = listText(entries.map(function(entry) {\n return entry.property;\n }));\n state.lists.transitionDuration = listText(entries.map(function(entry) {\n return entry.timing.duration;\n }));\n state.lists.transitionTimingFunction = listText(entries.map(function(entry) {\n return entry.timing.timingFunction;\n }));\n state.lists.transitionDelay = listText(entries.map(function(entry) {\n return entry.delay;\n }));\n state.lists.transitionBehavior = listText(entries.map(function(entry) {\n return entry.behavior;\n }));\n continue;\n }\n if (state.global) {\n return {\n ok: false,\n diagnostics: [\n {\n code: \"transition-invalid-list\",\n token: contribution.prop,\n message: `\"${contribution.prop}\" cannot override the CSS-wide transition \"${state.global}\" per longhand; restate the whole transition`\n }\n ]\n };\n }\n if (state.preset && timingLonghands.has(contribution.prop)) {\n return {\n ok: false,\n diagnostics: [\n {\n code: \"transition-invalid-list\",\n token: contribution.prop,\n message: `\"${contribution.prop}\" cannot partially override the \"${state.preset.name}\" preset \\u2014 a preset's timing is not decomposable into CSS components; restate \\`transition\\` with CSS timing or change the preset`\n }\n ]\n };\n }\n state.lists[contribution.prop] = contribution.value;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (state.global) {\n return {\n ok: true,\n value: {\n kind: \"global\",\n value: state.global\n }\n };\n }\n if (state.preset) {\n var zipped = (0, import_transition.parseTransitionLonghands)({\n transitionProperty: state.lists.transitionProperty,\n transitionDelay: state.lists.transitionDelay,\n transitionBehavior: state.lists.transitionBehavior\n });\n if (!zipped.ok || zipped.value.kind !== \"transition\") return zipped;\n var preset = state.preset;\n var entries1 = zipped.value.entries.map(function(entry) {\n return {\n ...entry,\n timing: preset\n };\n });\n return {\n ok: true,\n value: {\n kind: \"transition\",\n entries: entries1\n }\n };\n }\n return (0, import_transition.parseTransitionLonghands)(state.lists);\n}\n//# sourceMappingURL=transitionAlign.js.map\n"],"mappings":"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"}
|
|
@@ -0,0 +1,217 @@
|
|
|
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 transitionLegacy_exports = {};
|
|
23
|
+
__export(transitionLegacy_exports, { migrateLegacyTransition: () => migrateLegacyTransition });
|
|
24
|
+
module.exports = __toCommonJS(transitionLegacy_exports);
|
|
25
|
+
var import_transition = require("./transition.cjs");
|
|
26
|
+
const legacyControlKeys = /* @__PURE__ */ new Set([
|
|
27
|
+
"default",
|
|
28
|
+
"enter",
|
|
29
|
+
"exit",
|
|
30
|
+
"delay",
|
|
31
|
+
"stiffness",
|
|
32
|
+
"damping",
|
|
33
|
+
"mass",
|
|
34
|
+
"tension",
|
|
35
|
+
"friction",
|
|
36
|
+
"velocity",
|
|
37
|
+
"overshootClamping",
|
|
38
|
+
"duration",
|
|
39
|
+
"bounciness",
|
|
40
|
+
"speed"
|
|
41
|
+
]);
|
|
42
|
+
const springConfigKeys = /* @__PURE__ */ new Set([
|
|
43
|
+
"stiffness",
|
|
44
|
+
"damping",
|
|
45
|
+
"mass",
|
|
46
|
+
"tension",
|
|
47
|
+
"friction",
|
|
48
|
+
"velocity",
|
|
49
|
+
"overshootClamping",
|
|
50
|
+
"duration",
|
|
51
|
+
"bounciness",
|
|
52
|
+
"speed"
|
|
53
|
+
]);
|
|
54
|
+
function migrateLegacyTransition(input, presetNames) {
|
|
55
|
+
if (typeof input === "string") return (0, import_transition.parseTransition)(input, presetNames);
|
|
56
|
+
const inputIsTuple = Array.isArray(input);
|
|
57
|
+
const options = inputIsTuple ? input[1] : input;
|
|
58
|
+
const defaultValue = inputIsTuple ? input[0] : options.default;
|
|
59
|
+
const diagnostics = [];
|
|
60
|
+
const delay = options.delay === void 0 ? void 0 : typeof options.delay === "number" && Number.isFinite(options.delay) ? `${options.delay}ms` : null;
|
|
61
|
+
if (delay === null) {
|
|
62
|
+
diagnostics.push({
|
|
63
|
+
code: "transition-invalid-token",
|
|
64
|
+
token: String(options.delay),
|
|
65
|
+
message: "legacy transition delay must be a finite number of milliseconds"
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const resolveTiming = (rawValue, field) => {
|
|
69
|
+
const parsed = (0, import_transition.parseTransition)(rawValue, presetNames);
|
|
70
|
+
if (!parsed.ok) {
|
|
71
|
+
for (let index = 0; index < parsed.diagnostics.length; index++) {
|
|
72
|
+
const diagnostic = parsed.diagnostics[index];
|
|
73
|
+
diagnostics.push({
|
|
74
|
+
...diagnostic,
|
|
75
|
+
message: `legacy transition ${field}: ${diagnostic.message}`
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (parsed.value.kind !== "transition" || parsed.value.entries.length !== 1 || parsed.value.entries[0].property !== "all") {
|
|
81
|
+
diagnostics.push({
|
|
82
|
+
code: "transition-invalid-token",
|
|
83
|
+
token: rawValue,
|
|
84
|
+
message: `legacy transition ${field} must be a preset or CSS timing value`
|
|
85
|
+
});
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
return parsed.value.entries[0];
|
|
89
|
+
};
|
|
90
|
+
let defaultTransition;
|
|
91
|
+
if (defaultValue !== void 0) {
|
|
92
|
+
if (typeof defaultValue === "string") {
|
|
93
|
+
defaultTransition = resolveTiming(defaultValue, "default");
|
|
94
|
+
} else {
|
|
95
|
+
diagnostics.push({
|
|
96
|
+
code: "transition-invalid-token",
|
|
97
|
+
token: String(defaultValue),
|
|
98
|
+
message: "legacy transition default must be a preset or CSS timing value"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const resolveLifecycle = (field) => {
|
|
103
|
+
const rawValue = options[field];
|
|
104
|
+
if (rawValue === void 0) return;
|
|
105
|
+
if (typeof rawValue === "string") return resolveTiming(rawValue, field);
|
|
106
|
+
diagnostics.push({
|
|
107
|
+
code: "transition-invalid-token",
|
|
108
|
+
token: String(rawValue),
|
|
109
|
+
message: `legacy transition ${field} must be a preset or CSS timing value`
|
|
110
|
+
});
|
|
111
|
+
return;
|
|
112
|
+
};
|
|
113
|
+
const enter = resolveLifecycle("enter");
|
|
114
|
+
const exit = resolveLifecycle("exit");
|
|
115
|
+
const config = {};
|
|
116
|
+
for (const key of springConfigKeys) {
|
|
117
|
+
if (options[key] !== void 0) config[key] = options[key];
|
|
118
|
+
}
|
|
119
|
+
const hasConfig = Object.keys(config).length > 0;
|
|
120
|
+
const entries = [];
|
|
121
|
+
if (defaultTransition) {
|
|
122
|
+
if (defaultTransition.timing.type === "css" && hasConfig) {
|
|
123
|
+
diagnostics.push({
|
|
124
|
+
code: "transition-invalid-token",
|
|
125
|
+
token: String(defaultValue),
|
|
126
|
+
message: "spring overrides cannot be applied to CSS transition timing"
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
entries.push({
|
|
130
|
+
...defaultTransition,
|
|
131
|
+
delay: delay ?? defaultTransition.delay,
|
|
132
|
+
timing: defaultTransition.timing.type === "preset" && hasConfig ? {
|
|
133
|
+
...defaultTransition.timing,
|
|
134
|
+
config
|
|
135
|
+
} : defaultTransition.timing
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
for (const [property, rawValue] of Object.entries(options)) {
|
|
139
|
+
if (legacyControlKeys.has(property)) continue;
|
|
140
|
+
let transition;
|
|
141
|
+
let propertyConfig;
|
|
142
|
+
if (typeof rawValue === "string") {
|
|
143
|
+
transition = resolveTiming(rawValue, property);
|
|
144
|
+
if (!transition) continue;
|
|
145
|
+
} else if (rawValue && typeof rawValue === "object" && !Array.isArray(rawValue)) {
|
|
146
|
+
propertyConfig = rawValue;
|
|
147
|
+
if (propertyConfig.type === void 0) {
|
|
148
|
+
transition = defaultTransition;
|
|
149
|
+
} else if (typeof propertyConfig.type === "string") {
|
|
150
|
+
transition = resolveTiming(propertyConfig.type, property);
|
|
151
|
+
if (!transition) continue;
|
|
152
|
+
} else {
|
|
153
|
+
diagnostics.push({
|
|
154
|
+
code: "transition-invalid-token",
|
|
155
|
+
token: property,
|
|
156
|
+
message: `legacy transition property "${property}" has a non-string type`
|
|
157
|
+
});
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
diagnostics.push({
|
|
162
|
+
code: "transition-invalid-token",
|
|
163
|
+
token: property,
|
|
164
|
+
message: `legacy transition property "${property}" needs a preset, CSS timing value, or default`
|
|
165
|
+
});
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if (!transition) {
|
|
169
|
+
diagnostics.push({
|
|
170
|
+
code: "transition-invalid-token",
|
|
171
|
+
token: property,
|
|
172
|
+
message: `legacy transition property "${property}" needs a preset, CSS timing value, or default`
|
|
173
|
+
});
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
const propertyOverrides = propertyConfig ? Object.fromEntries(Object.entries(propertyConfig).filter(([key]) => key !== "type")) : void 0;
|
|
177
|
+
const hasPropertyOverrides = propertyOverrides !== void 0 && Object.keys(propertyOverrides).length > 0;
|
|
178
|
+
if (hasPropertyOverrides && transition.timing.type === "css") {
|
|
179
|
+
diagnostics.push({
|
|
180
|
+
code: "transition-invalid-token",
|
|
181
|
+
token: property,
|
|
182
|
+
message: `legacy transition property "${property}" cannot apply spring overrides to CSS timing`
|
|
183
|
+
});
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
entries.push({
|
|
187
|
+
...transition,
|
|
188
|
+
property,
|
|
189
|
+
timing: transition.timing.type === "preset" && propertyOverrides && hasPropertyOverrides ? {
|
|
190
|
+
...transition.timing,
|
|
191
|
+
config: propertyOverrides
|
|
192
|
+
} : transition.timing,
|
|
193
|
+
delay: delay ?? transition.delay
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
if (diagnostics.length) return {
|
|
197
|
+
ok: false,
|
|
198
|
+
diagnostics
|
|
199
|
+
};
|
|
200
|
+
const value = {
|
|
201
|
+
kind: "transition",
|
|
202
|
+
entries,
|
|
203
|
+
...enter ? { enter: {
|
|
204
|
+
...enter,
|
|
205
|
+
delay: delay ?? enter.delay
|
|
206
|
+
} } : {},
|
|
207
|
+
...exit ? { exit: {
|
|
208
|
+
...exit,
|
|
209
|
+
delay: delay ?? exit.delay
|
|
210
|
+
} } : {},
|
|
211
|
+
...hasConfig ? { config } : {}
|
|
212
|
+
};
|
|
213
|
+
return {
|
|
214
|
+
ok: true,
|
|
215
|
+
value
|
|
216
|
+
};
|
|
217
|
+
}
|