@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,459 @@
|
|
|
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 transition_exports = {};
|
|
23
|
+
__export(transition_exports, {
|
|
24
|
+
parseTransition: () => parseTransition,
|
|
25
|
+
parseTransitionLonghands: () => parseTransitionLonghands,
|
|
26
|
+
serializeTransition: () => serializeTransition
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(transition_exports);
|
|
29
|
+
const globalValues = /* @__PURE__ */ new Set([
|
|
30
|
+
"inherit",
|
|
31
|
+
"initial",
|
|
32
|
+
"revert",
|
|
33
|
+
"revert-layer",
|
|
34
|
+
"unset"
|
|
35
|
+
]);
|
|
36
|
+
const timingKeywords = /* @__PURE__ */ new Set([
|
|
37
|
+
"ease",
|
|
38
|
+
"linear",
|
|
39
|
+
"ease-in",
|
|
40
|
+
"ease-out",
|
|
41
|
+
"ease-in-out",
|
|
42
|
+
"step-start",
|
|
43
|
+
"step-end"
|
|
44
|
+
]);
|
|
45
|
+
const behaviorValues = /* @__PURE__ */ new Set(["normal", "allow-discrete"]);
|
|
46
|
+
const reservedPresetNames = /* @__PURE__ */ new Set([
|
|
47
|
+
...globalValues,
|
|
48
|
+
...timingKeywords,
|
|
49
|
+
...behaviorValues,
|
|
50
|
+
"all",
|
|
51
|
+
"none"
|
|
52
|
+
]);
|
|
53
|
+
const noPresetNames = /* @__PURE__ */ new Set();
|
|
54
|
+
const identifierPattern = /^-?(?:[_a-zA-Z]|[^\0-\x7f])(?:[-_a-zA-Z0-9]|[^\0-\x7f])*$/;
|
|
55
|
+
const timePattern = /^([+-]?(?:\d+(?:\.\d*)?|\.\d+))(ms|s)$/;
|
|
56
|
+
function splitTopLevel(input, separator) {
|
|
57
|
+
const values = [];
|
|
58
|
+
let start = 0;
|
|
59
|
+
let depth = 0;
|
|
60
|
+
let quote = "";
|
|
61
|
+
for (let index = 0; index < input.length; index++) {
|
|
62
|
+
const character = input[index];
|
|
63
|
+
if (quote) {
|
|
64
|
+
if (character === "\\") index++;
|
|
65
|
+
else if (character === quote) quote = "";
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (character === "\"" || character === "'") {
|
|
69
|
+
quote = character;
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (character === "(") {
|
|
73
|
+
depth++;
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (character === ")") {
|
|
77
|
+
depth--;
|
|
78
|
+
if (depth < 0) return null;
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (depth !== 0) continue;
|
|
82
|
+
const matches = separator === "," ? character === "," : /\s/.test(character);
|
|
83
|
+
if (!matches) continue;
|
|
84
|
+
const value = input.slice(start, index).trim();
|
|
85
|
+
if (value) values.push(value);
|
|
86
|
+
else if (separator === ",") values.push("");
|
|
87
|
+
start = index + 1;
|
|
88
|
+
if (separator === " ") {
|
|
89
|
+
while (start < input.length && /\s/.test(input[start])) start++;
|
|
90
|
+
index = start - 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (depth !== 0 || quote) return null;
|
|
94
|
+
values.push(input.slice(start).trim());
|
|
95
|
+
return values;
|
|
96
|
+
}
|
|
97
|
+
function isTime(value) {
|
|
98
|
+
return timePattern.test(value);
|
|
99
|
+
}
|
|
100
|
+
function isTimingFunction(value) {
|
|
101
|
+
if (timingKeywords.has(value)) return true;
|
|
102
|
+
if (/^cubic-bezier\(\s*[^)]+\s*\)$/.test(value)) {
|
|
103
|
+
const values = value.slice(value.indexOf("(") + 1, -1).split(",");
|
|
104
|
+
if (values.length !== 4) return false;
|
|
105
|
+
const numbers = [];
|
|
106
|
+
for (let index = 0; index < values.length; index++) {
|
|
107
|
+
const number = Number(values[index].trim());
|
|
108
|
+
if (!Number.isFinite(number)) return false;
|
|
109
|
+
numbers.push(number);
|
|
110
|
+
}
|
|
111
|
+
return numbers[0] >= 0 && numbers[0] <= 1 && numbers[2] >= 0 && numbers[2] <= 1;
|
|
112
|
+
}
|
|
113
|
+
if (/^steps\(\s*[^)]+\s*\)$/.test(value)) {
|
|
114
|
+
const parts = value.slice(value.indexOf("(") + 1, -1).split(",");
|
|
115
|
+
if (parts.length > 2) return false;
|
|
116
|
+
const count = Number(parts[0].trim());
|
|
117
|
+
if (!Number.isInteger(count) || count <= 0) return false;
|
|
118
|
+
const position = parts[1]?.trim();
|
|
119
|
+
if (position !== void 0 && !/^(jump-start|jump-end|jump-none|jump-both|start|end)$/.test(position)) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return position !== "jump-none" || count > 1;
|
|
123
|
+
}
|
|
124
|
+
if (/^linear\(\s*[^)]+\s*\)$/.test(value)) return true;
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
function parseSingleTransition(item) {
|
|
128
|
+
const tokens = splitTopLevel(item, " ");
|
|
129
|
+
if (tokens === null || tokens.length === 0) {
|
|
130
|
+
return {
|
|
131
|
+
code: "transition-invalid-token",
|
|
132
|
+
item,
|
|
133
|
+
message: `"${item}" is not a balanced CSS transition`
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
for (let index = 0; index < tokens.length; index++) {
|
|
137
|
+
if (!tokens[index]) {
|
|
138
|
+
return {
|
|
139
|
+
code: "transition-invalid-token",
|
|
140
|
+
item,
|
|
141
|
+
message: `"${item}" is not a balanced CSS transition`
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
let property;
|
|
146
|
+
let duration;
|
|
147
|
+
let delay;
|
|
148
|
+
let timingFunction;
|
|
149
|
+
let behavior;
|
|
150
|
+
for (const token of tokens) {
|
|
151
|
+
if (globalValues.has(token)) {
|
|
152
|
+
return {
|
|
153
|
+
code: "transition-invalid-list",
|
|
154
|
+
item,
|
|
155
|
+
token,
|
|
156
|
+
message: `CSS-wide value "${token}" must be the whole transition`
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (isTime(token)) {
|
|
160
|
+
if (duration === void 0) {
|
|
161
|
+
if (Number(token.match(timePattern)?.[1]) < 0) {
|
|
162
|
+
return {
|
|
163
|
+
code: "transition-invalid-duration",
|
|
164
|
+
item,
|
|
165
|
+
token,
|
|
166
|
+
message: `transition duration "${token}" cannot be negative`
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
duration = token;
|
|
170
|
+
} else if (delay === void 0) {
|
|
171
|
+
delay = token;
|
|
172
|
+
} else {
|
|
173
|
+
return {
|
|
174
|
+
code: "transition-duplicate-component",
|
|
175
|
+
item,
|
|
176
|
+
token,
|
|
177
|
+
message: `"${item}" has more than two time values`
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
if (isTimingFunction(token)) {
|
|
183
|
+
if (timingFunction !== void 0) {
|
|
184
|
+
return {
|
|
185
|
+
code: "transition-duplicate-component",
|
|
186
|
+
item,
|
|
187
|
+
token,
|
|
188
|
+
message: `"${item}" has more than one timing function`
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
timingFunction = token;
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
if (behaviorValues.has(token)) {
|
|
195
|
+
if (behavior !== void 0) {
|
|
196
|
+
return {
|
|
197
|
+
code: "transition-duplicate-component",
|
|
198
|
+
item,
|
|
199
|
+
token,
|
|
200
|
+
message: `"${item}" has more than one transition behavior`
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
behavior = token;
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
if (identifierPattern.test(token) || /^--[-_a-zA-Z0-9]+$/.test(token)) {
|
|
207
|
+
if (property !== void 0) {
|
|
208
|
+
return {
|
|
209
|
+
code: "transition-duplicate-component",
|
|
210
|
+
item,
|
|
211
|
+
token,
|
|
212
|
+
message: `"${item}" has more than one transition property`
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
property = token;
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
code: "transition-invalid-token",
|
|
220
|
+
item,
|
|
221
|
+
token,
|
|
222
|
+
message: `"${token}" is not valid in a CSS transition`
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
if (property === "none" && (duration !== void 0 || delay !== void 0 || timingFunction !== void 0 || behavior !== void 0)) {
|
|
226
|
+
return {
|
|
227
|
+
code: "transition-invalid-list",
|
|
228
|
+
item,
|
|
229
|
+
message: "\"none\" cannot be combined with other transition components"
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
property: property ?? "all",
|
|
234
|
+
timing: {
|
|
235
|
+
type: "css",
|
|
236
|
+
duration: duration ?? "0s",
|
|
237
|
+
timingFunction: timingFunction ?? "ease"
|
|
238
|
+
},
|
|
239
|
+
delay: delay ?? "0s",
|
|
240
|
+
behavior: behavior ?? "normal"
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function parseTransition(input, presetNames = noPresetNames) {
|
|
244
|
+
const value = input.trim();
|
|
245
|
+
if (!value) {
|
|
246
|
+
return {
|
|
247
|
+
ok: false,
|
|
248
|
+
diagnostics: [{
|
|
249
|
+
code: "transition-empty-item",
|
|
250
|
+
message: "transition cannot be empty"
|
|
251
|
+
}]
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
if (globalValues.has(value)) {
|
|
255
|
+
return {
|
|
256
|
+
ok: true,
|
|
257
|
+
value: {
|
|
258
|
+
kind: "global",
|
|
259
|
+
value
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
if (identifierPattern.test(value) && !reservedPresetNames.has(value) && presetNames.has(value)) {
|
|
264
|
+
return {
|
|
265
|
+
ok: true,
|
|
266
|
+
value: {
|
|
267
|
+
kind: "transition",
|
|
268
|
+
entries: [{
|
|
269
|
+
property: "all",
|
|
270
|
+
timing: {
|
|
271
|
+
type: "preset",
|
|
272
|
+
name: value
|
|
273
|
+
},
|
|
274
|
+
delay: "0s",
|
|
275
|
+
behavior: "normal"
|
|
276
|
+
}]
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
const items = splitTopLevel(value, ",");
|
|
281
|
+
if (items === null) {
|
|
282
|
+
return {
|
|
283
|
+
ok: false,
|
|
284
|
+
diagnostics: [{
|
|
285
|
+
code: "transition-invalid-token",
|
|
286
|
+
item: value,
|
|
287
|
+
message: `"${value}" is not a balanced CSS transition`
|
|
288
|
+
}]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const entries = [];
|
|
292
|
+
const diagnostics = [];
|
|
293
|
+
for (const item of items) {
|
|
294
|
+
if (!item) {
|
|
295
|
+
diagnostics.push({
|
|
296
|
+
code: "transition-empty-item",
|
|
297
|
+
message: "transition lists cannot contain an empty item"
|
|
298
|
+
});
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
const parsed = parseSingleTransition(item);
|
|
302
|
+
if ("code" in parsed) diagnostics.push(parsed);
|
|
303
|
+
else entries.push(parsed);
|
|
304
|
+
}
|
|
305
|
+
let hasNone = false;
|
|
306
|
+
for (let index = 0; index < entries.length; index++) {
|
|
307
|
+
if (entries[index].property === "none") {
|
|
308
|
+
hasNone = true;
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (hasNone && entries.length > 1) {
|
|
313
|
+
diagnostics.push({
|
|
314
|
+
code: "transition-invalid-list",
|
|
315
|
+
message: "\"none\" cannot be combined with other transition items"
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
return diagnostics.length ? {
|
|
319
|
+
ok: false,
|
|
320
|
+
diagnostics
|
|
321
|
+
} : {
|
|
322
|
+
ok: true,
|
|
323
|
+
value: {
|
|
324
|
+
kind: "transition",
|
|
325
|
+
entries
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function parseLonghandList(value, fallback) {
|
|
330
|
+
if (value === void 0) return [fallback];
|
|
331
|
+
const values = splitTopLevel(value, ",");
|
|
332
|
+
if (!values?.length) return null;
|
|
333
|
+
for (let index = 0; index < values.length; index++) {
|
|
334
|
+
if (!values[index]) return null;
|
|
335
|
+
}
|
|
336
|
+
return values;
|
|
337
|
+
}
|
|
338
|
+
function parseTransitionLonghands(input) {
|
|
339
|
+
const properties = parseLonghandList(input.transitionProperty, "all");
|
|
340
|
+
const durations = parseLonghandList(input.transitionDuration, "0s");
|
|
341
|
+
const timings = parseLonghandList(input.transitionTimingFunction, "ease");
|
|
342
|
+
const delays = parseLonghandList(input.transitionDelay, "0s");
|
|
343
|
+
const behaviors = parseLonghandList(input.transitionBehavior, "normal");
|
|
344
|
+
if (!properties || !durations || !timings || !delays || !behaviors) {
|
|
345
|
+
return {
|
|
346
|
+
ok: false,
|
|
347
|
+
diagnostics: [{
|
|
348
|
+
code: "transition-invalid-list",
|
|
349
|
+
message: "transition longhands must be non-empty comma-separated lists"
|
|
350
|
+
}]
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
const entries = [];
|
|
354
|
+
const diagnostics = [];
|
|
355
|
+
for (let index = 0; index < properties.length; index++) {
|
|
356
|
+
const property = properties[index];
|
|
357
|
+
const duration = durations[index % durations.length];
|
|
358
|
+
const timingFunction = timings[index % timings.length];
|
|
359
|
+
const delay = delays[index % delays.length];
|
|
360
|
+
const behavior = behaviors[index % behaviors.length];
|
|
361
|
+
if (globalValues.has(property) || globalValues.has(duration) || globalValues.has(timingFunction) || globalValues.has(delay) || globalValues.has(behavior)) {
|
|
362
|
+
diagnostics.push({
|
|
363
|
+
code: "transition-invalid-list",
|
|
364
|
+
message: "CSS-wide values cannot be mixed into transition longhand lists; use the transition shorthand global value"
|
|
365
|
+
});
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
if (!(identifierPattern.test(property) || /^--[-_a-zA-Z0-9]+$/.test(property))) {
|
|
369
|
+
diagnostics.push({
|
|
370
|
+
code: "transition-invalid-token",
|
|
371
|
+
token: property,
|
|
372
|
+
message: `"${property}" is not a transition property`
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
if (!isTime(duration) || Number(duration.match(timePattern)?.[1]) < 0) {
|
|
376
|
+
diagnostics.push({
|
|
377
|
+
code: "transition-invalid-duration",
|
|
378
|
+
token: duration,
|
|
379
|
+
message: `"${duration}" is not a non-negative transition duration`
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
if (!isTimingFunction(timingFunction)) {
|
|
383
|
+
diagnostics.push({
|
|
384
|
+
code: "transition-invalid-token",
|
|
385
|
+
token: timingFunction,
|
|
386
|
+
message: `"${timingFunction}" is not a transition timing function`
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
if (!isTime(delay)) {
|
|
390
|
+
diagnostics.push({
|
|
391
|
+
code: "transition-invalid-token",
|
|
392
|
+
token: delay,
|
|
393
|
+
message: `"${delay}" is not a transition delay`
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
if (!behaviorValues.has(behavior)) {
|
|
397
|
+
diagnostics.push({
|
|
398
|
+
code: "transition-invalid-token",
|
|
399
|
+
token: behavior,
|
|
400
|
+
message: `"${behavior}" is not a transition behavior`
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
entries.push({
|
|
404
|
+
property,
|
|
405
|
+
timing: {
|
|
406
|
+
type: "css",
|
|
407
|
+
duration,
|
|
408
|
+
timingFunction
|
|
409
|
+
},
|
|
410
|
+
delay,
|
|
411
|
+
behavior
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
let hasNone = false;
|
|
415
|
+
for (let index = 0; index < properties.length; index++) {
|
|
416
|
+
if (properties[index] === "none") {
|
|
417
|
+
hasNone = true;
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
if (hasNone && properties.length > 1) {
|
|
422
|
+
diagnostics.push({
|
|
423
|
+
code: "transition-invalid-list",
|
|
424
|
+
message: "\"none\" cannot be combined with other transition properties"
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
return diagnostics.length ? {
|
|
428
|
+
ok: false,
|
|
429
|
+
diagnostics
|
|
430
|
+
} : {
|
|
431
|
+
ok: true,
|
|
432
|
+
value: {
|
|
433
|
+
kind: "transition",
|
|
434
|
+
entries
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
function serializeTransition(value) {
|
|
439
|
+
if (value.kind === "global") return value.value;
|
|
440
|
+
if (value.enter || value.exit || value.config) return null;
|
|
441
|
+
for (let index = 0; index < value.entries.length; index++) {
|
|
442
|
+
if (value.entries[index].timing.type === "preset") return null;
|
|
443
|
+
}
|
|
444
|
+
let serialized = "";
|
|
445
|
+
for (let index = 0; index < value.entries.length; index++) {
|
|
446
|
+
const entry = value.entries[index];
|
|
447
|
+
if (index) serialized += ", ";
|
|
448
|
+
if (entry.timing.type !== "css") return null;
|
|
449
|
+
if (entry.property === "none") {
|
|
450
|
+
if (entry.timing.duration !== "0s" || entry.timing.timingFunction !== "ease" || entry.delay !== "0s" || entry.behavior !== "normal") {
|
|
451
|
+
return null;
|
|
452
|
+
}
|
|
453
|
+
serialized += "none";
|
|
454
|
+
continue;
|
|
455
|
+
}
|
|
456
|
+
serialized += `${entry.property} ${entry.timing.duration} ${entry.timing.timingFunction} ${entry.delay} ${entry.behavior}`;
|
|
457
|
+
}
|
|
458
|
+
return serialized;
|
|
459
|
+
}
|